@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250107.0 → 0.0.0-nightly-20250109.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/ckeditor5-metadata.json +11 -0
- package/dist/index-content.css +1 -0
- package/dist/index-editor.css +9 -0
- package/dist/index.css +18 -0
- package/dist/index.js +3 -3
- 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/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/lang/contexts.json +2 -0
- package/package.json +12 -10
- package/src/augmentation.d.ts +3 -1
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/commands/viewfinaldocumentcommand.d.ts +26 -0
- package/src/commands/viewfinaldocumentcommand.js +23 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/bookmark.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +22 -0
- package/src/trackchangesdata.d.ts +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangespreview.d.ts +31 -0
- package/src/trackchangespreview.js +23 -0
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/ui/view/trackchangespreviewview.d.ts +48 -0
- package/src/ui/view/trackchangespreviewview.js +23 -0
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
- package/theme/trackchangespreview.css +18 -0
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as Qt,Plugin as
|
|
24
|
-
_0x7b4ff5(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x25babf,_0x4fd5d9){super(),this['id']=_0x4fd5d9['id'],this['type']=_0x4fd5d9['type'],this['subType']=_0x4fd5d9['subType']||null,this['author']=_0x4fd5d9['author'],this['creator']=_0x4fd5d9['creator']||_0x4fd5d9['author'],this['isExternal']=Boolean(_0x4fd5d9['attributes']&&_0x4fd5d9['attributes']['@external']),this['data']=null,this['_model']=_0x25babf,this['_onAccept']=_0x4fd5d9['onAccept'],this['_onDiscard']=_0x4fd5d9['onDiscard'],this['_onAttributesChange']=_0x4fd5d9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4fd5d9['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x1bfb73=this;for(;_0x1bfb73['previous'];)_0x1bfb73=_0x1bfb73['previous'];return _0x1bfb73;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x3ab559){this['_markerNames']['add'](_0x3ab559);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3bf748=>this['_model']['markers']['get'](_0x3bf748))['filter'](_0x48b1e8=>_0x48b1e8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5bcc8b=>{for(const _0x5cb33a of this['getMarkers']())_0x5bcc8b['removeMarker'](_0x5cb33a);}),this['_markerNames']['clear']();}['removeMarker'](_0x6c8da5){this['_model']['change'](_0x587f5c=>{_0x587f5c['removeMarker'](_0x6c8da5);}),this['_markerNames']['delete'](_0x6c8da5);}['addRange'](_0x46baba){const _0x56830f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x56830f),this['_model']['change'](_0x388c64=>{_0x388c64['addMarker'](_0x56830f,{'range':_0x46baba,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x440af7){for(const _0x29a23a of this['getRanges']())if(_0x29a23a['isIntersecting'](_0x440af7))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4c4a02=>_0x4c4a02['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x510a9b,_0x1122f2)=>[..._0x510a9b,..._0x1122f2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2cb9b7=this['getRanges']();if(0x1!=_0x2cb9b7['length'])return null;const _0x3fe9cb=_0x2cb9b7[0x0],_0xca29fb=_0x3fe9cb['start']['nodeAfter'],_0x55f55f=_0x3fe9cb['end']['nodeBefore'];return _0xca29fb instanceof _0x32e0b3?_0xca29fb!=_0x55f55f?null:_0xca29fb:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x223498=[];let _0x33cfcf=this['head'];for(;_0x33cfcf;)_0x223498['push'](_0x33cfcf),_0x33cfcf=_0x33cfcf['next'];return _0x223498;}['setAttribute'](_0x3d2480,_0x47f8ee){const _0x24b9d5=_0xc231df(this['attributes']);_0x7b2fdb(_0x24b9d5,_0x3d2480,_0x47f8ee),_0x5400d1(_0x24b9d5,this['attributes'])||(this['attributes']=_0x24b9d5,this['_onAttributesChange'](_0x24b9d5));}['removeAttribute'](_0x43edb1){const _0x36eca0=_0xc231df(this['attributes']);_0x1a48b3(_0x36eca0,_0x43edb1),_0x5400d1(_0x36eca0,this['attributes'])||(this['attributes']=_0x36eca0,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x53896e()['substr'](0x1,0x5);}}function o(_0x2fc929,_0x1b39c9,_0x198674){const _0x17857a=_0x2fc929['t'],t=_0x2fc929['t'];switch(_0x1b39c9){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x198674);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x198674);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x198674);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x198674);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x198674);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x198674);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x198674);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x198674);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x198674);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x198674);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x198674);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x198674);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x198674);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x198674);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x198674);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x198674);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x198674);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x198674);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x198674);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x198674);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x198674);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x198674);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x198674);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x198674);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x198674);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x198674);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x198674);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x198674);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x198674);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x198674);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x198674);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x198674);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x198674);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x198674);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x198674);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x198674);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x198674);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x198674);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x198674);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x198674);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x198674);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x198674);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x198674);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x198674);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x198674);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x198674);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x198674);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x17857a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x198674);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x17857a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x198674);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x198674);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x198674);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x198674);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x198674);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1b39c9;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1c688e,_0x224074){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1c688e,this['_locale']=_0x224074;}['getDescriptions'](_0x4e87f7){const _0x121c79=[],_0x3c81b7=new Set(),_0x1ca133=new Set();for(let _0x41eada=0x0;_0x41eada<_0x4e87f7['length'];_0x41eada++){const _0x1805f5=_0x4e87f7[_0x41eada];if(!_0x1805f5['isInContent'])continue;const _0x3ac52e=this['_handleCustomCallbackDescription'](_0x1805f5);if(_0x3ac52e){if(null!=_0x1805f5['subType']){if(_0x3c81b7['has'](_0x1805f5['subType']))continue;_0x3c81b7['add'](_0x1805f5['subType']);}_0x121c79['push'](_0x3ac52e);}else{if('attribute'!=_0x1805f5['type'])'insertion'!=_0x1805f5['type']&&'deletion'!=_0x1805f5['type']||this['_handleInsertRemoveSuggestionDescription'](_0x121c79,_0x1805f5,_0x4e87f7[_0x41eada+0x1]);else{const _0x2d74c0=_0x1805f5['data']['key'];if(_0x1ca133['has'](_0x2d74c0))continue;_0x1ca133['add'](_0x1805f5['data']['key']),_0x2d74c0==m?this['_handleRenameSuggestionDescription'](_0x121c79,_0x1805f5):this['_handleAttributeSuggestionDescription'](_0x121c79,_0x1805f5);}}}return this['_resolveDescriptionItems'](_0x121c79);}['registerDescriptionCallback'](_0x2c729b){this['_customCallbacks']['push'](_0x2c729b);}['registerElementLabel'](_0xe43d15,_0x16dd84,_0x54a9ce=_0x508f82['normal']){'function'==typeof _0xe43d15?_0x2a851d(this['_itemLabelsCallbacks'],{'matchingCallback':_0xe43d15,'label':_0x16dd84,'priority':_0x54a9ce}):this['_itemLabels']['set'](_0xe43d15,_0x16dd84);}['registerAttributeLabel'](_0x3dab42,_0x208534){this['_attributeLabels']['set'](_0x3dab42,_0x208534);}['getItemLabel'](_0x25b830,_0x43e7c7=0x1){let _0x1b516e;for(const _0x25f657 of this['_itemLabelsCallbacks'])if(_0x25f657['matchingCallback'](_0x25b830)){_0x1b516e=_0x25f657['label'];break;}return _0x1b516e||(_0x1b516e=this['_itemLabels']['get'](_0x25b830['name'])),_0x1b516e?_0x1b516e(_0x43e7c7):0x1!==_0x43e7c7?_0x43e7c7+'\x20'+_0x25b830['name']+'s':''+_0x25b830['name'];}['_addDescriptionItems'](_0x102509,_0xf15df4){const _0x36bb28=_0xf15df4['getFirstRange']()['getWalker'](),_0x3204fe='insertion'==_0xf15df4['type']?'add':'remove';for(const _0x1896cd of _0x36bb28){const _0x183d1a=_0x1896cd['item'],_0x313545=_0x102509[_0x102509['length']-0x1];if(_0x183d1a['is']('$textProxy'))_0x313545&&_0x313545['type']['indexOf']('Container')>-0x1&&_0x102509['pop'](),_0x313545&&'text'==_0x313545['type']?_0x313545[_0x3204fe]+=_0x183d1a['data']:_0x102509['push']({'type':'text','add':'add'==_0x3204fe?_0x183d1a['data']:'','remove':'remove'==_0x3204fe?_0x183d1a['data']:''});else{if(this['_schema']['isObject'](_0x183d1a)){const _0x570d16=_0x183d1a;if(_0x313545&&_0x313545['type']['indexOf']('Container')>-0x1&&_0x102509['pop'](),'elementEnd'==_0x1896cd['type'])continue;_0x313545&&_0x313545['type']==_0x3204fe+'Object'&&_0x313545['element']['name']==_0x570d16['name']?_0x313545['quantity']++:_0x102509['push']({'type':_0x3204fe+'Object','element':_0x570d16,'quantity':0x1}),_0x36bb28['skip'](_0x5b35c8=>!('elementEnd'==_0x5b35c8['type']&&_0x5b35c8['item']==_0x183d1a));}else{if(this['_schema']['checkChild'](_0x183d1a,'$text')||_0x183d1a['is']('element','softBreak')){const _0x4fcfd0=_0x183d1a;if('add'==_0x3204fe&&'elementStart'==_0x1896cd['type']||'remove'==_0x3204fe&&'elementEnd'==_0x1896cd['type'])continue;if(_0x313545&&-0x1==_0x313545['type']['indexOf']('Container')){'text'==_0x313545['type']&&(_0x313545[_0x3204fe]+='\x0a');continue;}let _0xfe1f45;if(_0xfe1f45='add'==_0x3204fe?_0x4fcfd0['nextSibling']&&!this['_schema']['isObject'](_0x4fcfd0['nextSibling'])?_0x4fcfd0['nextSibling']:null:_0x4fcfd0['previousSibling']&&!this['_schema']['isObject'](_0x4fcfd0['previousSibling'])?_0x4fcfd0['previousSibling']:null,_0x4fcfd0['isEmpty']||_0xfe1f45&&_0xfe1f45['isEmpty']){const _0x3c04b5=_0xfe1f45&&_0xfe1f45['isEmpty']?_0xfe1f45:_0x4fcfd0;_0x313545&&_0x313545['type']==_0x3204fe+'EmptyContainer'&&_0x313545['element']['name']==_0x3c04b5['name']?_0x313545['quantity']++:_0x102509['push']({'type':_0x3204fe+'EmptyContainer','element':_0x3c04b5,'quantity':0x1});}else _0x102509['push']({'type':_0x3204fe+'Container','element':_0x4fcfd0});}}}}}['_resolveDescriptionItems'](_0x528779){const _0x3f2477=this['_locale'],_0x419433=[],_0x88e756=[],_0x249615=[];for(const _0x298953 of _0x528779)switch(_0x298953['type']){case'text':if(_0x298953['add']=_0x298953['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x298953['remove']=_0x298953['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x298953['add']&&''!=_0x298953['remove']){_0x419433['push']({'type':'replace','content':o(_0x3f2477,'REPLACE_TEXT',['\x22'+_0x298953['remove']+'\x22','\x22'+_0x298953['add']+'\x22'])});continue;}if(null!=_0x298953['add']['match'](/^ +$/)){_0x419433['push']({'type':'insertion','content':o(_0x3f2477,'*Insert:*\x20%0',o(_0x3f2477,'ELEMENT_SPACE',_0x298953['add']['length']))});continue;}if(null!=_0x298953['remove']['match'](/^ +$/)){_0x419433['push']({'type':'deletion','content':o(_0x3f2477,'*Remove:*\x20%0',o(_0x3f2477,'ELEMENT_SPACE',_0x298953['remove']['length']))});continue;}if(''!=_0x298953['add']){_0x419433['push']({'type':'insertion','content':o(_0x3f2477,'*Insert:*\x20%0','\x22'+_0x298953['add']+'\x22')});continue;}_0x419433['push']({'type':'deletion','content':o(_0x3f2477,'*Remove:*\x20%0','\x22'+_0x298953['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x419433['push']({'type':'insertion','content':o(_0x3f2477,'*Insert:*\x20%0',this['getItemLabel'](_0x298953['element'],_0x298953['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x419433['push']({'type':'deletion','content':o(_0x3f2477,'*Remove:*\x20%0',this['getItemLabel'](_0x298953['element'],_0x298953['quantity']))});continue;case'addContainer':_0x419433['push']({'type':'insertion','content':o(_0x3f2477,'*Split:*\x20%0',this['getItemLabel'](_0x298953['element'],_0x298953['quantity']))});continue;case'removeContainer':_0x419433['push']({'type':'deletion','content':o(_0x3f2477,'*Merge:*\x20%0',this['getItemLabel'](_0x298953['element'],_0x298953['quantity']))});continue;case'addFormat':_0x88e756['push'](_0x298953['key']);continue;case'removeFormat':_0x249615['push'](_0x298953['key']);continue;default:_0x419433['push'](_0x298953);}if(_0x88e756['length']){const _0x51cac0=_0x88e756['map'](_0x54825e=>this['_attributeLabels']['has'](_0x54825e)?this['_attributeLabels']['get'](_0x54825e):_0x54825e)['join'](',\x20');_0x419433['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x51cac0)});}if(_0x249615['length']){const _0x3dbdd8=_0x249615['map'](_0x2e6cff=>this['_attributeLabels']['has'](_0x2e6cff)?this['_attributeLabels']['get'](_0x2e6cff):_0x2e6cff)['join'](',\x20');_0x419433['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3dbdd8)});}return _0x419433;}['_handleCustomCallbackDescription'](_0x22829f){for(const _0x1294f9 of this['_customCallbacks']){const _0x3ecb59=_0x1294f9(_0x22829f);if(_0x3ecb59&&'type'in _0x3ecb59)return _0x3ecb59;}}['_handleAttributeSuggestionDescription'](_0x3b1fca,_0x340423){const _0x592f06=_0x340423['data'],_0x4f862a=void 0x0===_0x592f06['newValue']?'removeFormat':'addFormat';_0x3b1fca['push']({'type':_0x4f862a,'key':_0x592f06['key']});}['_handleRenameSuggestionDescription'](_0xe5f8cc,_0xdf0e45){_0xe5f8cc['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xdf0e45['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x8358eb,_0x3e0f72,_0x429d34){if(this['_addDescriptionItems'](_0x8358eb,_0x3e0f72),_0x429d34&&_0x429d34['getFirstRange']()&&!_0x3e0f72['getFirstRange']()['end']['isEqual'](_0x429d34['getFirstRange']()['start'])){const _0x9ad06c=_0x8358eb[_0x8358eb['length']-0x1],_0x50b99d='insertion'==_0x3e0f72['type']?'add':'remove';_0x9ad06c&&'text'==_0x9ad06c['type']&&(_0x9ad06c[_0x50b99d]+='\x0a');}}}class U extends _0x4ead4a{['afterInit'](){const _0x15aba5=this['editor'],_0x4ad609=_0x15aba5['plugins']['get']('TrackChangesEditing');_0x15aba5['commands']['get']('showAIAssistant')&&_0x4ad609['enableCommand']('showAIAssistant');}}class V extends _0x4ead4a{['afterInit'](){const _0x343425=this['editor'],_0x4d2fbd=_0x343425['locale'];if(!_0x343425['plugins']['has']('AlignmentEditing'))return;const _0x5a7dd9=_0x343425['plugins']['get']('TrackChangesEditing');_0x5a7dd9['enableDefaultAttributesIntegration']('alignment'),_0x5a7dd9['registerBlockAttribute']('alignment'),_0x5a7dd9['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4d2fbd,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ef8a3=this['editor'],_0x4378f8=_0x5ef8a3['locale'];_0x5ef8a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38bc02=>{if('formatBlock'!=_0x38bc02['type'])return;const {data:_0x499d50}=_0x38bc02;if(_0x499d50&&'alignment'==_0x499d50['commandName']){const _0x5e851f=_0x499d50['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4378f8,'*Format:*\x20%0',function(_0x31f3df){switch(_0x31f3df){case'left':return o(_0x4378f8,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4378f8,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4378f8,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4378f8,'FORMAT_JUSTIFY_TEXT');}}(_0x5e851f))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x4ead4a{['afterInit'](){const _0x3c662c=this['editor'],_0x2026c9=_0x3c662c['plugins']['get']('TrackChangesEditing'),_0x22e2ee=_0x3c662c['locale'];for(const _0x1f9730 of Zt){if(!_0x3c662c['plugins']['has'](_0x1f9730))continue;const _0x3e6c0b=_0x1f9730['slice'](0x0,-0x7)['toLowerCase'](),_0x29849a='FORMAT_'+_0x3e6c0b['toUpperCase']();_0x2026c9['enableDefaultAttributesIntegration'](_0x3e6c0b),_0x2026c9['registerInlineAttribute'](_0x3e6c0b),_0x2026c9['descriptionFactory']['registerAttributeLabel'](_0x3e6c0b,o(_0x22e2ee,_0x29849a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x921b1e=this['editor'],_0x55157e=_0x921b1e['locale'],_0x1be772=_0x921b1e['plugins']['get']('TrackChangesEditing');function _0xda9a92(_0x3a3bfb,_0x53f4a6){_0x1be772['descriptionFactory']['registerDescriptionCallback'](_0x54e250=>{if('formatInline'!=_0x54e250['type'])return;const {data:_0xe9ff51}=_0x54e250;return _0xe9ff51&&_0xe9ff51['commandName']===_0x3a3bfb?_0xe9ff51['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x55157e,'*Format:*\x20%0',_0x53f4a6)}:{'type':'format','content':o(_0x55157e,'*Remove\x20format:*\x20%0',_0x53f4a6)}:void 0x0;});}_0xda9a92('bold',o(_0x55157e,'FORMAT_BOLD')),_0xda9a92('italic',o(_0x55157e,'FORMAT_ITALIC')),_0xda9a92('underline',o(_0x55157e,'FORMAT_UNDERLINE')),_0xda9a92('code',o(_0x55157e,'FORMAT_CODE')),_0xda9a92('strikethrough',o(_0x55157e,'FORMAT_STRIKETHROUGH')),_0xda9a92('subscript',o(_0x55157e,'FORMAT_SUBSCRIPT')),_0xda9a92('superscript',o(_0x55157e,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4ead4a{['afterInit'](){const _0x560f3c=this['editor'],_0xfaa1ca=_0x560f3c['locale'];if(!_0x560f3c['plugins']['has']('BlockQuoteEditing'))return;const _0xe52ad1=_0x560f3c['plugins']['get']('TrackChangesEditing'),_0x5e0d96=this['editor']['commands']['get']('blockQuote');_0xe52ad1['enableCommand']('blockQuote',(_0x24fa17,_0x30d0e4={})=>{const _0x3121a4=this['editor']['model']['document']['selection'],_0x955968=_0x30d0e4&&void 0x0!==_0x30d0e4['forceValue']?_0x30d0e4['forceValue']:!_0x5e0d96['value'];let _0x294c34=[];if(_0x955968){const _0x2a9b52=Array['from'](_0x3121a4['getSelectedBlocks']())['filter'](_0x565339=>oo(_0x565339)||function(_0x5469bd,_0x2a16fa){const _0x5124fa=_0x2a16fa['checkChild'](_0x5469bd['parent'],'blockQuote'),_0x28aefa=_0x2a16fa['checkChild'](['$root','blockQuote'],_0x5469bd);return _0x5124fa&&_0x28aefa;}(_0x565339,this['editor']['model']['schema']));_0x294c34=to(_0x2a9b52,_0x560f3c['model']);}else{const _0x4abe3a=Array['from'](_0x3121a4['getSelectedBlocks']())['filter'](_0x11a16d=>oo(_0x11a16d));_0x294c34=to(_0x4abe3a,_0x560f3c['model']);}_0x560f3c['model']['change'](()=>{for(const _0x2609bd of _0x294c34)_0xe52ad1['markBlockFormat'](_0x2609bd,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x955968}]});});}),_0xe52ad1['descriptionFactory']['registerDescriptionCallback'](_0xaf8989=>{const {data:_0x3dd822}=_0xaf8989;if(_0x3dd822&&'blockQuote'==_0x3dd822['commandName']){const _0x180ba2=o(_0xfaa1ca,'ELEMENT_BLOCK_QUOTE');return _0x3dd822['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xfaa1ca,'*Set\x20format:*\x20%0',_0x180ba2)}:{'type':'format','content':o(_0xfaa1ca,'*Remove\x20format:*\x20%0',_0x180ba2)};}});}}function oo(_0x159bb8){return'blockQuote'==_0x159bb8['parent']['name'];}class L extends _0x4ead4a{['afterInit'](){const _0xa3b99b=this['editor'],_0x18d3b9=_0xa3b99b['locale'],_0x200841=_0xa3b99b['plugins']['get']('TrackChangesEditing');_0xa3b99b['plugins']['has']('BookmarkEditing')&&(_0x200841['enableCommand']('insertBookmark'),_0x200841['enableDefaultAttributesIntegration']('updateBookmark'),_0x200841['registerBlockAttribute']('bookmarkId'),_0x200841['descriptionFactory']['registerDescriptionCallback'](_0x586a1c=>{if('insertion'!=_0x586a1c['type']&&'deletion'!=_0x586a1c['type']&&'attribute'!=_0x586a1c['type'])return;const _0x4bb64d=_0x586a1c['getContainedElement']();if(null==_0x4bb64d)return;if(!_0x4bb64d['is']('element','bookmark'))return;const _0x36bcd5=_0x4bb64d['getAttribute']('bookmarkId');if('insertion'==_0x586a1c['type'])return{'type':'insertion','content':o(_0x18d3b9,'*Insert:*\x20%0','\x22'+_0x36bcd5+'\x22\x20'+o(_0x18d3b9,'ELEMENT_BOOKMARK'))};if('deletion'==_0x586a1c['type'])return{'type':'deletion','content':o(_0x18d3b9,'*Remove:*\x20%0','\x22'+_0x36bcd5+'\x22\x20'+o(_0x18d3b9,'ELEMENT_BOOKMARK'))};const {data:_0x1210cd}=_0x586a1c;if(!_0x1210cd||'bookmarkId'!=_0x1210cd['key'])return;return{'type':'format','content':o(_0x18d3b9,'*Set\x20bookmark:*\x20%0','\x22'+_0x1210cd['newValue']+'\x22')};}));}}class J extends _0x4ead4a{['afterInit'](){const _0x153420=this['editor'];_0x153420['plugins']['has']('CaseChange')&&(_0x153420['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x153420['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x153420['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x4ead4a{['afterInit'](){const _0x2466f0=this['editor'];_0x2466f0['commands']['get']('ckbox')&&_0x2466f0['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x4ead4a{['afterInit'](){const _0x3570f7=this['editor'];if(!_0x3570f7['plugins']['has']('CodeBlock'))return;const _0x1f5f7c=_0x3570f7['plugins']['get']('TrackChangesEditing'),_0x402784=_0x3570f7['locale'],_0x1ee40f=_0x3570f7['config']['get']('codeBlock')['languages'],_0x56f448=_0x3570f7['commands']['get']('codeBlock');_0x1f5f7c['enableCommand']('indentCodeBlock'),_0x1f5f7c['enableCommand']('outdentCodeBlock'),_0x1f5f7c['enableCommand']('codeBlock',(_0x3e3f7e,_0x469ece={})=>{const _0x248c3c=_0x3570f7['model'],_0x770e0d=_0x3570f7['model']['document']['selection'],_0x1d1c51=_0x469ece&&void 0x0!==_0x469ece['forceValue']?_0x469ece['forceValue']:!_0x56f448['value'];let _0x4371e2;_0x469ece['language']||(_0x469ece['language']=_0x1ee40f[0x0]['language']),_0x4371e2=_0x1d1c51?Array['from'](_0x770e0d['getSelectedBlocks']())['filter'](_0x1170b9=>eo(_0x1170b9)||function(_0x31b357,_0x18c753){if(_0x31b357['is']('rootElement')||_0x18c753['isLimit'](_0x31b357))return!0x1;return _0x18c753['checkChild'](_0x31b357['parent'],'codeBlock');}(_0x1170b9,_0x248c3c['schema'])):Array['from'](_0x770e0d['getSelectedBlocks']())['filter'](_0x70290e=>eo(_0x70290e));const _0x4d1f2c=to(_0x4371e2,_0x248c3c);_0x248c3c['change'](()=>{for(const _0x58274d of _0x4d1f2c)_0x1f5f7c['markBlockFormat'](_0x58274d,{'commandName':'codeBlock','commandParams':[{..._0x469ece,'forceValue':_0x1d1c51}],'formatGroupId':'blockName'});});}),(_0x1f5f7c['descriptionFactory']['registerElementLabel']('codeBlock',_0x33841f=>o(_0x402784,'ELEMENT_CODE_BLOCK',_0x33841f)),_0x1f5f7c['descriptionFactory']['registerDescriptionCallback'](_0x444c92=>{if('formatBlock'!=_0x444c92['type'])return;const _0x3bd146=_0x402784['t'],{data:_0x4a1e8c}=_0x444c92;if(!_0x4a1e8c||'codeBlock'!=_0x4a1e8c['commandName'])return;const _0xf67f23=_0x4a1e8c['commandParams'][0x0]['language'],_0x25a053=_0x3bd146(_0x1ee40f['find'](_0x58c4b4=>_0x58c4b4['language']===_0xf67f23)['label'])['toLowerCase']();return _0x4a1e8c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x402784,'*Set\x20format:*\x20%0',o(_0x402784,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x25a053+')')}:{'type':'format','content':o(_0x402784,'*Remove\x20format:*\x20%0',o(_0x402784,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xef54f9){return'codeBlock'==_0xef54f9['name'];}class z extends _0x4ead4a{['afterInit'](){const _0x2ea227=this['editor'];if(!_0x2ea227['plugins']['has']('CommentsEditing'))return;_0x2ea227['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x37fc4b,_0x49fbc9,_0x4870a3){const _0x448308=[];for(const _0x29696e of _0x49fbc9['getItems']())_0x29696e['hasAttribute'](_0x37fc4b)&&_0x448308['push'](_0x4870a3['createRangeOn'](_0x29696e));return _0x448308;}function Ne(_0x51d2b6,_0x5d5c5a,{showActiveMarker:_0x302a12=!0x0}={}){const _0x2b19a3=_0x51d2b6['plugins']['get']('TrackChangesEditing');return(_0x5a3174,_0x22f4dd,_0x12e6a6)=>{if(!_0x12e6a6['consumable']['test'](_0x22f4dd['markerRange'],_0x5a3174['name']))return;const _0x40a51c=_0x22f4dd['markerRange']['getWalker'](),_0x54706d=_0x22f4dd['markerRange']['start'],_0x50509b=_0x51d2b6['model']['schema'];let _0x6629a8=null,_0x9713ed=null,_0x154468=!0x1,_0x3d26b0=!0x1;for(const _0x2faff5 of _0x40a51c){const _0x272246=_0x2faff5['item'];_0x154468=_0x154468||_0x50509b['isContent'](_0x272246);const _0x354603=_0x12e6a6['mapper']['toViewElement'](_0x272246);if(_0x354603&&_0x354603['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2faff5['type']&&(_0x50509b['isBlock'](_0x272246)&&!_0x50509b['isLimit'](_0x272246)&&(_0x272246['nextSibling']||_0x54706d['isAtEnd']?_0x6629a8&&_0x6629a8['parent']==_0x272246||(_0x6629a8=_0x272246,_0x1c125e(_0x2faff5['previousPosition']),_0x3d26b0=!0x0):_0x9713ed=_0x9713ed||_0x2faff5['previousPosition']));}function _0x1c125e(_0x3ba7c4){const {authorId:_0x262be1}=_0x2b19a3['_splitMarkerName'](_0x22f4dd['markerName']),_0x576c76=_0x12e6a6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5d5c5a,'data-author-id':_0x262be1}),_0x4321cd=_0x12e6a6['mapper']['toViewPosition'](_0x3ba7c4);_0x302a12&&_0x2b19a3['activeMarkers']['includes'](_0x22f4dd['markerName'])&&_0x12e6a6['writer']['addClass']('ck-suggestion-marker--active',_0x576c76),_0x12e6a6['writer']['insert'](_0x4321cd,_0x576c76),_0x12e6a6['mapper']['bindElementToMarker'](_0x576c76,_0x22f4dd['markerName']);}_0x154468||_0x3d26b0||!_0x9713ed||_0x1c125e(_0x9713ed);};}class K extends _0x4ead4a{static get['requires'](){return[_0x53a2e9];}['init'](){const _0x43b74e=this['editor'],_0x553374=_0x43b74e['plugins']['get']('TrackChangesEditing');_0x553374['enableCommand']('delete');const _0x129425=_0x43b74e['commands']['get']('deleteForward');_0x553374['enableCommand']('deleteForward',(_0x18335d,_0x3cec0d={})=>{const _0xccb6d4=_0x43b74e['model']['createSelection'](_0x43b74e['model']['document']['selection']);_0xccb6d4['isCollapsed']&&_0x43b74e['model']['modifySelection'](_0xccb6d4,{'direction':'forward','unit':_0x3cec0d['unit']});const _0x1de296=_0xccb6d4['getFirstRange'](),_0x1734fe=_0x42c1a5['fromRange'](_0x1de296);let _0x3246f0;_0x18335d(_0x3cec0d),_0x3246f0='$graveyard'==_0x1734fe['root']['rootName']?_0x43b74e['model']['createRange'](_0x1de296['start']):_0x43b74e['model']['createRange'](_0x1734fe['start'],_0x1734fe['end']),_0x1734fe['detach'](),_0x43b74e['model']['enqueueChange'](_0x129425['buffer']['batch'],_0x8cac8=>{_0x129425['buffer']['lock'](),_0x8cac8['setSelection'](_0x8cac8['createRange'](_0x3246f0['end'])),_0x129425['buffer']['unlock']();});}),_0x43b74e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x43b74e,'merge'),{'priority':'high'}),_0x43b74e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3ba8f5,_0x380bcd,_0x235d01)=>{_0x235d01['options']['showSuggestionHighlights']&&Ne(_0x43b74e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3ba8f5,_0x380bcd,_0x235d01);},{'priority':'high'}),_0x43b74e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x447ed5,_0xfab1ef,_0x34bbf3)=>{const _0x2586e0=_0x34bbf3['mapper']['markerNameToElements'](_0xfab1ef['markerName']);if(_0x2586e0){for(const _0x1d89c6 of _0x2586e0)_0x1d89c6['is']('uiElement')&&(_0x34bbf3['mapper']['unbindElementFromMarkerName'](_0x1d89c6,_0xfab1ef['markerName']),_0x34bbf3['writer']['remove'](_0x1d89c6));}},{'priority':'high'});}}class W extends _0x4ead4a{['afterInit'](){const _0x5e8ce1=this['editor'];if(!_0x5e8ce1['plugins']['has']('ListEditing'))return;const _0x8e8a91=_0x5e8ce1['locale'],_0x105464=_0x5e8ce1['plugins']['get']('TrackChangesEditing'),_0x513b69=_0x5e8ce1['plugins']['has']('TodoListEditing'),_0x4fc178=!!_0x5e8ce1['config']['get']('list.multiBlock');function _0x3ae9e4(_0x13278a){return{'type':'format','content':''+o(_0x8e8a91,'*Set\x20format:*\x20%0',_0x13278a)};}function _0x4d8a6c(_0x2343df){return{'type':'format','content':''+o(_0x8e8a91,'*Remove\x20format:*\x20%0',_0x2343df)};}_0x105464['enableDefaultAttributesIntegration']('numberedList'),_0x105464['enableDefaultAttributesIntegration']('bulletedList'),_0x105464['enableDefaultAttributesIntegration']('customNumberedList'),_0x105464['enableDefaultAttributesIntegration']('customBulletedList'),_0x105464['enableDefaultAttributesIntegration']('indentList'),_0x105464['enableDefaultAttributesIntegration']('outdentList'),_0x105464['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x105464['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x105464['registerBlockAttribute']('listItemId'),_0x105464['registerBlockAttribute']('listType'),_0x105464['registerBlockAttribute']('listIndent'),_0x4fc178&&(_0x105464['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x105464['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x513b69&&(_0x105464['enableDefaultAttributesIntegration']('todoList'),_0x105464['enableDefaultAttributesIntegration']('checkTodoList'),_0x105464['registerBlockAttribute']('todoListChecked'),_0x105464['descriptionFactory']['registerDescriptionCallback'](_0x3a6912=>{const {data:_0x179933}=_0x3a6912;if(_0x179933&&'todoListChecked'==_0x179933['key'])return{'type':'format','content':_0x179933['newValue']?o(_0x8e8a91,'*Check\x20item*'):o(_0x8e8a91,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2541a0=>{if(_0x2541a0['batch']['isUndo'])return!0x1;let _0x3cd972=!0x1;const _0xe464f=_0x105464['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4773c0=>'todoListChecked'===_0x105464['_getAttributeKey'](_0x4773c0));for(const _0x2e2d17 of _0xe464f){'todo'!=_0x2e2d17['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x105464['_findSuggestions'](_0x2e2d17['getFirstRange'](),'attribute')['find'](_0x224fdc=>'listType'===_0x105464['_getAttributeKey'](_0x224fdc['suggestion']))||(_0x2541a0['removeMarker'](_0x2e2d17['getFirstMarker']()),_0x3cd972=!0x0));}return _0x3cd972;})),_0x105464['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x8e8a91,'FORMAT_INDENT'));const _0x1780fd={'type':'format','content':''};_0x105464['descriptionFactory']['registerDescriptionCallback'](_0x4cbbe3=>{const {data:_0x5081c2}=_0x4cbbe3;if(!_0x5081c2||'listType'!=_0x5081c2['key'])return;let _0x38a234=_0x4cbbe3['head'];for(;_0x38a234;){if(_0x38a234['data']&&(('listStyle'==_0x38a234['data']['key']||'listMarkerStyle'==_0x38a234['data']['key'])&&(_0x38a234['data']['newValue']&&'default'!=_0x38a234['data']['newValue']||'default'!=_0x38a234['data']['oldValue']&&!_0x5081c2['newValue'])||!_0x4fc178&&_0x38a234['data']['key']==m))return _0x1780fd;_0x38a234=_0x38a234['next'];}if(null==_0x5081c2['newValue'])switch(_0x5081c2['oldValue']){case'bulleted':return _0x4d8a6c(o(_0x8e8a91,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4d8a6c(o(_0x8e8a91,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4d8a6c(o(_0x8e8a91,'ELEMENT_TODO_LIST'));}switch(_0x5081c2['newValue']){case'bulleted':return _0x3ae9e4(o(_0x8e8a91,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3ae9e4(o(_0x8e8a91,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3ae9e4(o(_0x8e8a91,'ELEMENT_TODO_LIST'));}}),_0x105464['descriptionFactory']['registerDescriptionCallback'](_0x2a715f=>{const {data:_0x1ae7af}=_0x2a715f;if(_0x1ae7af&&'listIndent'==_0x1ae7af['key'])return null==_0x1ae7af['newValue']||null==_0x1ae7af['oldValue']&&0x0==_0x1ae7af['newValue']?_0x1780fd:void 0x0;}),_0x105464['descriptionFactory']['registerDescriptionCallback'](_0x173993=>{if('attribute'!=_0x173993['type'])return;const {data:_0x1a193b}=_0x173993;if(!_0x1a193b||'listItemId'!=_0x1a193b['key'])return;const _0x3b8b4b=Te(_0x173993);return'newValue'==_0x3b8b4b?{'type':'format','content':o(_0x8e8a91,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3b8b4b?{'type':'format','content':o(_0x8e8a91,'*Split:*\x20list\x20item')}:_0x1780fd;}),_0x5e8ce1['model']['document']['registerPostFixer'](_0x4f8e6f=>this['listItemIdFixer'](_0x4f8e6f)),_0x5e8ce1['model']['document']['registerPostFixer'](_0x44ca4d=>this['noTrackChangesFixer'](_0x44ca4d)),_0x5e8ce1['model']['document']['on']('change:data',(_0x1483f5,_0x2cde3d)=>{if(_0x2cde3d['isUndo']||!_0x2cde3d['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x554c0a){if(_0x554c0a['batch']['isUndo']||!_0x554c0a['batch']['isLocal'])return!0x1;let _0x314e5c=!0x1;const _0x28bc0e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19a2a8=>_0x19a2a8['data']&&'listItemId'==_0x19a2a8['data']['key'])['filter'](_0xd7883b=>_0xd7883b['data']['newValue']&&_0xd7883b['data']['oldValue']);for(const _0x51b5f0 of _0x28bc0e)Te(_0x51b5f0)||(_0x554c0a['removeMarker'](_0x51b5f0['getFirstMarker']()),_0x314e5c=!0x0);return _0x314e5c;}['noTrackChangesFixer'](_0x51f4f7){if(_0x51f4f7['batch']['isUndo']||!_0x51f4f7['batch']['isLocal'])return!0x1;const _0x80f5a2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x80f5a2['trackChangesCommand']['value'])return!0x1;let _0x1cc3bd=!0x1;const _0x6c8fb3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3a728c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x19821b=>'attribute'==_0x19821b['type'])['filter'](_0x15694e=>_0x6c8fb3['includes'](_0x15694e['attributeKey']));if(0x0==_0x3a728c['length'])return _0x1cc3bd;for(const _0x5ba5ba of _0x3a728c){const _0x2f2843=_0x80f5a2['_findSuggestions'](_0x5ba5ba['range'],'attribute')['filter'](_0x43fb07=>!_0x43fb07['meta']['isNextTo'])['map'](_0x37ac24=>_0x37ac24['suggestion'])['filter'](_0x45b3cb=>{const _0x2226af=_0x80f5a2['_getAttributeKey'](_0x45b3cb);return _0x6c8fb3['includes'](_0x2226af);});if(_0x2f2843['length']){for(const _0x2bd5c0 of _0x2f2843)_0x51f4f7['removeMarker'](_0x2bd5c0['getFirstMarker']());_0x1cc3bd=!0x0;}}return _0x1cc3bd;}['assureChains'](){const _0x225266=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30ac29=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5c625b;const _0xd3d5ef=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x351da4=>{if(_0x351da4['data']['oldRange']||!_0x351da4['data']['newRange'])return null;if(!_0x351da4['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1a7aee}=_0x225266['_splitMarkerName'](_0x351da4['name']);if(!_0x225266['hasSuggestion'](_0x1a7aee))return null;const _0x157446=_0x225266['getSuggestion'](_0x1a7aee);return _0x30ac29['includes'](_0x157446['data']['key']);})['map'](_0x5c3f4c=>{const {id:_0xc73115}=_0x225266['_splitMarkerName'](_0x5c3f4c['name']),_0x49415c=_0x225266['getSuggestion'](_0xc73115);return _0x5c625b=_0x49415c['attributes']['groupId'],_0x49415c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xd3d5ef['size'])return;const _0x570bfb=_0x225266['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8537b9=>'attribute'==_0x8537b9['type']&&_0x8537b9['data']&&_0x30ac29['includes'](_0x8537b9['data']['key'])&&_0x8537b9['attributes']['groupId']!=_0x5c625b)['map'](_0xb46f72=>({'listItem':_0xb46f72['getFirstRange']()['start']['nodeAfter'],'groupId':_0xb46f72['attributes']['groupId']})),_0x304de8=new Set();for(const {groupId:_0x528573,listItem:_0xbb9fdc}of _0x570bfb)_0xd3d5ef['has'](_0xbb9fdc)&&_0x304de8['add'](_0x528573);for(const _0x5af4e8 of _0x225266['getSuggestions']())_0x304de8['has'](_0x5af4e8['attributes']['groupId'])&&_0x5af4e8['setAttribute']('groupId',_0x5c625b);}['_supportLegacySuggestions'](){const _0x432ee5=this['editor'],_0x380748=_0x432ee5['locale'],_0x2d7f5e=_0x432ee5['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2d7f5e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x33304e,_0x4676a9){const _0x57d2f9=[];for(let _0x517a9c of _0x33304e)_0x517a9c['start']['nodeAfter']===_0x517a9c['end']['parent']&&(_0x517a9c=_0x432ee5['model']['createRange'](_0x432ee5['model']['createPositionAt'](_0x517a9c['start']['nodeAfter'],0x0))),_0x57d2f9['push'](_0x517a9c);_0x432ee5['model']['change'](_0x25a29f=>{const _0x1e939e=_0x432ee5['model']['document']['selection'],_0x2c09de=Array['from'](_0x1e939e['getRanges']())['map'](_0x5195e0=>_0x42c1a5['fromRange'](_0x5195e0));_0x25a29f['setSelection'](_0x57d2f9),_0x432ee5['commands']['get'](_0x4676a9['commandName'])['refresh'](),_0x4676a9['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x432ee5['execute'](_0x4676a9['commandName'],..._0x4676a9['commandParams']),_0x25a29f['setSelection'](_0x2c09de);for(const _0x2ffc0e of _0x2c09de)_0x2ffc0e['detach']();});}),_0x2d7f5e['descriptionFactory']['registerElementLabel'](function(_0x2deea7){const _0x3b390f=!_0x432ee5['model']['schema']['isObject'](_0x2deea7),_0x1f8e15=_0x2deea7['previousSibling'],_0x444259=_0x2deea7['nextSibling'],_0x93b822=_0x2deea7['getAttribute']('listItemId'),_0x31ac9a=!_0x1f8e15||_0x1f8e15['getAttribute']('listItemId')!==_0x93b822,_0x53d388=!_0x444259||_0x444259['getAttribute']('listItemId')!==_0x93b822;return _0x3b390f&&Boolean(_0x93b822)&&_0x31ac9a&&_0x53d388;},_0x2b764a=>o(_0x380748,'ELEMENT_LIST_ITEM',_0x2b764a));}['_registerLegacyDescription'](){const _0x2e9e51=this['editor'],_0x2c7d10=_0x2e9e51['locale'];function _0x4c305b(_0x398cbd){const _0x2bfe82=_0x2e9e51['commands']['get']('bulletedList')['value'],_0x4670e4=_0x2e9e51['commands']['get']('numberedList')['value'];return'numberedList'===_0x398cbd?_0x2bfe82:_0x4670e4;}_0x2e9e51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x168f00){if('formatBlock'!=_0x168f00['type'])return;const {data:_0xc91533}=_0x168f00;if(!_0xc91533)return;let _0x4f28c1,_0x58ba24,_0x48da08,_0x36532c;switch(_0xc91533['commandName']){case'bulletedList':_0x48da08=_0xc91533['commandParams'][0x0]['forceValue'],_0x36532c=_0x4c305b(_0xc91533['commandName']),_0x4f28c1=_0x48da08?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x36532c&&_0x2e9e51['config']['get']('list.multiBlock')||(_0x4f28c1='*Change\x20to:*\x20%0'),_0x58ba24={'type':'format','content':o(_0x2c7d10,_0x4f28c1,o(_0x2c7d10,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x48da08=_0xc91533['commandParams'][0x0]['forceValue'],_0x36532c=_0x4c305b(_0xc91533['commandName']),_0x4f28c1=_0x48da08?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x36532c&&_0x2e9e51['config']['get']('list.multiBlock')||(_0x4f28c1='*Change\x20to:*\x20%0'),_0x58ba24={'type':'format','content':o(_0x2c7d10,_0x4f28c1,o(_0x2c7d10,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4f28c1='*Indent:*\x20%0',_0x58ba24={'type':'format','content':o(_0x2c7d10,_0x4f28c1,o(_0x2c7d10,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4f28c1=function(_0x4199a2){const _0x11bf25=_0x4199a2['getFirstRange']();let _0x1dd545=_0x11bf25['start']['nodeAfter'];for(;_0x1dd545&&_0x11bf25['containsItem'](_0x1dd545);){if(_0x1dd545['getAttribute']('listIndent')>0x0)return!0x1;_0x1dd545=_0x1dd545['nextSibling'];}return!0x0;}(_0x168f00)?o(_0x2c7d10,'*Format:*\x20remove\x20from\x20%0',o(_0x2c7d10,function(_0x330c44){return'ELEMENT_'+_0x330c44['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x168f00))):o(_0x2c7d10,'*Outdent:*\x20%0',o(_0x2c7d10,'ELEMENT_LIST_ITEM')),_0x58ba24={'type':'format','content':_0x4f28c1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xc91533['multipleBlocks']&&(_0x4f28c1='*Merge:*\x20%0',_0x58ba24={'type':'deletion','content':o(_0x2c7d10,_0x4f28c1,o(_0x2c7d10,'ELEMENT_LIST_ITEM'))});}return _0x58ba24;});}}function Te(_0x3f1c5a){let _0xfd263d=_0x3f1c5a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xfd263d;){const _0x37d6b6=_0xfd263d['getAttribute']('listItemId');if(!_0x37d6b6)return!0x1;if(_0x37d6b6==_0x3f1c5a['data']['newValue'])return'newValue';if(_0x37d6b6==_0x3f1c5a['data']['oldValue'])return'oldValue';_0xfd263d=_0xfd263d['previousSibling'];}return!0x1;}class ye extends _0x4ead4a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4b883a=this['editor']['config']['get']('list.properties'),_0x3a54da=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b883a['styles']&&(_0x3a54da['enableDefaultAttributesIntegration']('listStyle'),_0x3a54da['registerBlockAttribute']('listStyle')),_0x4b883a['reversed']&&(_0x3a54da['enableDefaultAttributesIntegration']('listReversed'),_0x3a54da['registerBlockAttribute']('listReversed')),_0x4b883a['startIndex']&&(_0x3a54da['enableDefaultAttributesIntegration']('listStart'),_0x3a54da['registerBlockAttribute']('listStart'));const _0x507e78={'type':'format','content':''};_0x3a54da['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4a869d=this['editor']['locale'];_0x3a54da['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4a869d,'FORMAT_LIST_REVERSED')),_0x3a54da['descriptionFactory']['registerDescriptionCallback'](_0x440191=>{const {data:_0x2c366d}=_0x440191;if(_0x2c366d&&'listReversed'==_0x2c366d['key'])return null==_0x2c366d['newValue']||0x0==_0x2c366d['newValue']&&null==_0x2c366d['oldValue']?_0x507e78:void 0x0;}),_0x3a54da['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4a869d,'FORMAT_LIST_START')),_0x3a54da['descriptionFactory']['registerDescriptionCallback'](_0xddaa18=>{const {data:_0x5643a5}=_0xddaa18;if(_0x5643a5&&'listStart'==_0x5643a5['key'])return null==_0x5643a5['newValue']||0x1==_0x5643a5['newValue']&&null==_0x5643a5['oldValue']?_0x507e78:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x35b34a=>{if(_0x35b34a['batch']['isUndo'])return!0x1;let _0x228261=!0x1;const _0x5a0cb8=_0x3a54da['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5963a8=>{const _0x72e1cf=_0x3a54da['_getAttributeKey'](_0x5963a8);return'listStart'==_0x72e1cf||'listReversed'==_0x72e1cf;});for(const _0xe3999a of _0x5a0cb8){const _0x473b7d=_0xe3999a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x473b7d||'customNumbered'==_0x473b7d)continue;_0x3a54da['_findSuggestions'](_0xe3999a['getFirstRange'](),'attribute')['find'](_0x372c24=>'listType'==_0x3a54da['_getAttributeKey'](_0x372c24['suggestion']))||(_0x35b34a['removeMarker'](_0xe3999a['getFirstMarker']()),_0x228261=!0x0);}return _0x228261;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x51cde2){const _0x277ac2=this['editor']['locale'],{data:_0x12af00}=_0x51cde2,_0xc86d41={'type':'format','content':''};if(!_0x12af00||'listStyle'!=_0x12af00['key'])return;if(!_0x12af00['oldValue'])return'default'==_0x12af00['newValue']?_0xc86d41:{'type':'format','content':''+o(_0x277ac2,'*Set\x20format:*\x20%0',o(_0x277ac2,this['_getTranslationKeyForListStyle'](_0x12af00['newValue'])))};if(!_0x12af00['newValue']){if('default'==_0x12af00['oldValue'])return _0xc86d41;let _0x375655=_0x51cde2['head'];for(;_0x375655;){if(_0x375655['data']&&'listType'==_0x375655['data']['key']&&_0x375655['data']['newValue'])return _0xc86d41;_0x375655=_0x375655['next'];}return{'type':'format','content':''+o(_0x277ac2,'*Remove\x20format:*\x20%0',o(_0x277ac2,this['_getTranslationKeyForListStyle'](_0x12af00['oldValue'])))};}if('default'!=_0x12af00['newValue'])return{'type':'format','content':''+o(_0x277ac2,'*Set\x20format:*\x20%0',o(_0x277ac2,this['_getTranslationKeyForListStyle'](_0x12af00['newValue'])))};let _0x55490e=_0x51cde2['head'];for(;_0x55490e;){if(_0x55490e['data']&&'listType'==_0x55490e['data']['key']&&_0x55490e['data']['newValue']&&_0x55490e['data']['oldValue'])return _0xc86d41;_0x55490e=_0x55490e['next'];}return{'type':'format','content':o(_0x277ac2,'*Set\x20format:*\x20%0',o(_0x277ac2,'ELEMENT_'+_0x51cde2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3a9708=this['editor'],_0x3a00e0=_0x3a9708['locale'];_0x3a9708['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x448832=>{if('formatBlock'!=_0x448832['type'])return;const {data:_0x3fa35a}=_0x448832;if(!_0x3fa35a)return;let _0x5055c0,_0x5c0664;switch(_0x3fa35a['commandName']){case'listStyle':_0x5055c0='*Change\x20to:*\x20%0',_0x5c0664={'type':'format','content':o(_0x3a00e0,_0x5055c0,o(_0x3a00e0,this['_getTranslationKeyForListStyle'](_0x3fa35a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5055c0=_0x3fa35a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5c0664={'type':'format','content':o(_0x3a00e0,_0x5055c0)};break;case'listStart':_0x5055c0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5c0664={'type':'format','content':o(_0x3a00e0,_0x5055c0,_0x3fa35a['commandParams'][0x0]['startIndex'])};}return _0x5c0664;});}['_getTranslationKeyForListStyle'](_0x5a29c1){return'ELEMENT_'+function(_0x277947){if(Se['includes'](_0x277947))return'bulleted';if(_e['includes'](_0x277947))return'numbered';return null;}(_0x5a29c1)['toUpperCase']()+'_LIST_'+_0x5a29c1['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x4ead4a{static get['requires'](){return[_0x33301b];}['init'](){const _0x331c03=this['editor'],_0x580bbb=_0x331c03['plugins']['get']('TrackChangesEditing'),_0x3c65bc=_0x331c03['commands']['get']('enter');_0x580bbb['enableCommand']('enter',()=>{_0x331c03['model']['change'](_0x2d9477=>{const _0x17b1f7=_0x331c03['model']['document']['selection'],_0x2bc104=_0x17b1f7['getFirstPosition'](),_0x4ee5f2=_0x42c1a5['fromRange'](_0x17b1f7['getFirstRange']());if(_0x3c65bc['enterBlock'](_0x2d9477)){const _0x27297c=_0x331c03['model']['createPositionAt'](_0x2bc104['parent']['nextSibling'],0x0),_0x5da3c9=_0x2d9477['createRange'](_0x2bc104,_0x27297c);_0x580bbb['markInsertion'](_0x5da3c9);}else _0x2d9477['setSelection'](_0x2d9477['createRange'](_0x4ee5f2['end']));_0x4ee5f2['detach'](),_0x3c65bc['fire']('afterExecute',{'writer':_0x2d9477});});}),_0x331c03['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x331c03,'split'),{'priority':'high'}),_0x331c03['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2a3c5a,_0x45d3e4,_0x3f2f33)=>{const _0x5e372f=_0x3f2f33['mapper']['markerNameToElements'](_0x45d3e4['markerName']);if(_0x5e372f){for(const _0x3f13e8 of _0x5e372f)_0x3f13e8['hasClass']('ck-suggestion-marker-split')&&(_0x3f2f33['mapper']['unbindElementFromMarkerName'](_0x3f13e8,_0x45d3e4['markerName']),_0x3f2f33['writer']['remove'](_0x3f13e8));}},{'priority':'high'}),_0x331c03['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x22e5e3,_0x59cd94,_0x2192cf)=>{_0x2192cf['options']['showSuggestionHighlights']&&Ne(_0x331c03,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x22e5e3,_0x59cd94,_0x2192cf);},{'priority':'high'});}}class Y extends _0x4ead4a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x31852b=this['editor']['plugins']['get']('TrackChangesEditing');_0x31852b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x31852b['enableCommand']('findNext'),_0x31852b['enableCommand']('findPrevious'),_0x31852b['enableCommand']('replace'),_0x31852b['enableCommand']('replaceAll');}['handleFindCommand'](_0x1df3d6,_0x46520b,_0x4a8d02={}){const _0x1821b6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1df3d6(_0x273883=>{let _0xe908c2=('string'==typeof _0x46520b?_0x1821b6['findByTextCallback'](_0x46520b,_0x4a8d02):_0x46520b)(_0x273883);Array['isArray'](_0xe908c2)&&(_0xe908c2={'results':_0xe908c2,'searchText':'string'==typeof _0x46520b?_0x46520b:''});const _0x3578a3=_0xe908c2['results']['filter'](_0x21f38a=>!0x1===this['_isInDeletionRange'](_0x21f38a,_0x273883['item']));return{..._0xe908c2,'results':_0x3578a3};},_0x4a8d02);}['_isInDeletionRange'](_0x554378,_0x4bd4e3){const _0x89aa16=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4bd4e3,_0x554378['start']),this['editor']['model']['createPositionAt'](_0x4bd4e3,_0x554378['end']));for(const _0x59d48f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x89aa16['getIntersection'](_0x59d48f['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x4ead4a{['afterInit'](){const _0x3d82ae=this['editor']['locale'],_0x546579=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x573a0f,commandName:_0x2e8f7e}of ro)this['editor']['plugins']['has'](_0x573a0f)&&(_0x546579['enableDefaultAttributesIntegration'](_0x2e8f7e),_0x546579['registerInlineAttribute'](_0x2e8f7e));_0x546579['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3d82ae,'FORMAT_FONT_SIZE')),_0x546579['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3d82ae,'FORMAT_FONT_FAMILY')),_0x546579['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3d82ae,'FORMAT_FONT_COLOR')),_0x546579['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3d82ae,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f0466=this['editor'],_0x2d6db4=_0x3f0466['locale'];_0x3f0466['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4307d0=>{const _0x16e377=_0x2d6db4['t'];if('formatInline'!=_0x4307d0['type'])return;const {data:_0x5ed217}=_0x4307d0;if(null!=_0x5ed217){if('fontSize'==_0x5ed217['commandName']){const _0x1cc7a5=_0x5ed217['commandParams'][0x0]['value'];if(_0x1cc7a5){const _0x2dff11=_0x16e377(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x340d42=>_0x340d42['model']==_0x1cc7a5)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2d6db4,'*Set\x20font\x20size:*\x20%0',_0x2dff11)};}return{'type':'format','content':o(_0x2d6db4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5ed217['commandName']){const _0x19770d=_0x5ed217['commandParams'][0x0]['value'];return _0x19770d?{'type':'format','content':o(_0x2d6db4,'*Set\x20font\x20family:*\x20%0',_0x19770d)}:{'type':'format','content':o(_0x2d6db4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5ed217['commandName']){const _0x1cfdf0=_0x5ed217['commandParams'][0x0]['value'];if(_0x1cfdf0){const _0xf4811b=_0x296fce(this['editor']['config']['get']('fontColor.colors'))['find'](_0x56ad3d=>_0x56ad3d['model']==_0x1cfdf0);let _0x49decc=_0x1cfdf0,_0x6fda72='';return _0xf4811b&&(_0x49decc=_0xf4811b['label'],_0x6fda72=_0x16e377(_0x49decc)['toLowerCase']()),{'type':'format','content':o(_0x2d6db4,'*Set\x20font\x20color:*\x20%0',_0x6fda72)['trim'](),'color':{'value':_0x1cfdf0,'title':_0x6fda72||_0x49decc}};}return{'type':'format','content':o(_0x2d6db4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5ed217['commandName']){const _0x1e152c=_0x5ed217['commandParams'][0x0]['value'];if(_0x1e152c){const _0x43e7c5=_0x296fce(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x44d11f=>_0x44d11f['model']==_0x1e152c);let _0x1de03a=_0x1e152c,_0x548d41='';return _0x43e7c5&&(_0x1de03a=_0x43e7c5['label'],_0x548d41=_0x16e377(_0x1de03a)['toLowerCase']()),{'type':'format','content':o(_0x2d6db4,'*Set\x20font\x20background\x20color:*\x20%0',_0x548d41)['trim'](),'color':{'value':_0x1e152c,'title':_0x548d41||_0x1de03a}};}return{'type':'format','content':o(_0x2d6db4,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x4ead4a{['afterInit'](){const _0xc82328=this['editor'],_0x5409a0=_0xc82328['plugins']['get']('TrackChangesEditing'),_0x3b161d=_0xc82328['commands']['get']('copyFormat'),_0x4c6618=_0xc82328['commands']['get']('pasteFormat');_0x3b161d&&_0x4c6618&&(_0x5409a0['enableDefaultAttributesIntegration']('pasteFormat'),_0x5409a0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1c7e6b=this['editor'],_0x4789ae=_0x1c7e6b['locale'];_0x1c7e6b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf741c8=>{if('formatBlock'!=_0xf741c8['type']&&'formatInline'!=_0xf741c8['type'])return;const {data:_0x36ae9f}=_0xf741c8;if(_0x36ae9f&&'pasteFormat'===_0x36ae9f['commandName']){const _0x47d5ea=[],_0x6cf5dc=_0x36ae9f['commandParams'][0x0];for(const [_0x5e8059,_0x32f2d4]of Object['entries'](_0x6cf5dc))_0x47d5ea['push'](so(_0x1c7e6b,_0x5e8059,_0x32f2d4));return _0x47d5ea['length']?{'type':'format','content':o(_0x4789ae,'*Set\x20format\x20to:*\x20%0',_0x47d5ea['join'](',\x20'))}:{'type':'format','content':o(_0x4789ae,'*Remove\x20all\x20formatting*')};}});}}function so(_0xc84cf2,_0x6872a8,_0x17dedd){const _0x1b32ff=_0xc84cf2['locale']['t'],_0x3414d8=_0x6872a8['split'](/(?=[A-Z])/)['join']('\x20'),_0x27a229=_0x1b32ff(_0x3414d8['charAt'](0x0)['toUpperCase']()+_0x3414d8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x17dedd)return _0x27a229;if('fontColor'===_0x6872a8||'fontBackgroundColor'===_0x6872a8){const _0x3a27e4=_0x296fce(_0xc84cf2['config']['get']('fontColor.colors'))['find'](_0x4dd2f6=>_0x4dd2f6['model']==_0x17dedd);return _0x27a229+'\x20('+(_0x3a27e4?_0x1b32ff(_0x3a27e4['label'])['toLowerCase']():_0x17dedd)+')';}if('fontSize'===_0x6872a8&&isNaN(parseFloat(_0x17dedd))){const _0x3cd44b=_0xc84cf2['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xc84cf2['config']['get']('fontSize.options'))['find'](_0x1cbfda=>_0x1cbfda['model']==_0x17dedd);return _0x27a229+'\x20('+(_0x3cd44b?_0x1b32ff(_0x3cd44b['title'])['toLowerCase']():_0x17dedd)+')';}return _0x27a229+'\x20('+_0x17dedd+')';}class nt extends _0x4ead4a{['_headingOptions'];['afterInit'](){const _0x259aee=this['editor'];if(!_0x259aee['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x259aee['config']['get']('heading.options');const _0x1cb660=_0x259aee['locale'],_0x578d63=_0x259aee['plugins']['get']('TrackChangesEditing');_0x578d63['enableDefaultAttributesIntegration']('heading');for(const _0x5a1070 of this['_headingOptions'])'paragraph'!=_0x5a1070['model']&&_0x578d63['descriptionFactory']['registerElementLabel'](_0x5a1070['model'],_0x184651=>{const _0x52b813=this['_getHeadingLevel'](_0x5a1070['model']);return null!==_0x52b813?_0x2f58ae(_0x184651,_0x52b813):_0x1385b3(_0x184651,_0x5a1070['title']);});function _0x2f58ae(_0x9cc383,_0x1d8900){return o(_0x1cb660,'ELEMENT_HEADING',[_0x9cc383,_0x1d8900]);}function _0x1385b3(_0x98d80c,_0x4b7a75){return o(_0x1cb660,'ELEMENT_HEADING_CUSTOM',[_0x98d80c,_0x4b7a75]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20b19b=this['editor'],_0x18080b=_0x20b19b['locale'];function _0x1b8983(_0x56545f,_0x44907d){return o(_0x18080b,'ELEMENT_HEADING_CUSTOM',[_0x56545f,_0x44907d]);}_0x20b19b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x139c97=>{if('formatBlock'!=_0x139c97['type'])return;const {data:_0x1e771e}=_0x139c97;if(_0x1e771e&&'heading'==_0x1e771e['commandName']){const _0x5a0993=_0x1e771e['commandParams'][0x0]['value'],_0x119a53=this['_getHeadingLevel'](_0x5a0993);if(null!==_0x119a53)return{'type':'format','content':o(_0x18080b,'*Change\x20to:*\x20%0',(_0x1bd224=0x1,_0x26da38=_0x119a53,o(_0x18080b,'ELEMENT_HEADING',[_0x1bd224,_0x26da38])))};const _0x2e22b1=this['_headingOptions']['find'](_0xf9fb9f=>_0xf9fb9f['model']===_0x5a0993)['title'];return{'type':'format','content':o(_0x18080b,'*Change\x20to:*\x20%0',_0x1b8983(0x1,_0x2e22b1))};}var _0x1bd224,_0x26da38;});}['_getHeadingLevel'](_0x479375){const _0x442bbf=_0x479375['match'](/^heading(\d+)/);if(_0x442bbf)return _0x442bbf[0x1];const _0x206657=this['_headingOptions']?.['find'](_0xc965f9=>_0xc965f9['model']==_0x479375);if(_0x206657&&_0x206657['view']){const _0x4e4de9=_0x206657['view'],_0x384dc1=(_0x4e4de9['name']??_0x4e4de9)['match'](/^h(\d+)/);if(_0x384dc1)return _0x384dc1[0x1];}return null;}}class it extends _0x4ead4a{['afterInit'](){const _0x5900a2=this['editor'];if(!_0x5900a2['plugins']['has']('HighlightEditing'))return;const _0x357865=_0x5900a2['plugins']['get']('TrackChangesEditing'),_0x33d2ea=_0x5900a2['locale'];_0x357865['enableDefaultAttributesIntegration']('highlight'),_0x357865['registerInlineAttribute']('highlight'),_0x357865['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x33d2ea,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2776b5=this['editor'],_0x57d853=_0x2776b5['locale'];_0x2776b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x371153=>{if('formatInline'!=_0x371153['type'])return;const {data:_0x1a1747}=_0x371153;if(_0x1a1747&&'highlight'==_0x1a1747['commandName']){const _0x5e6e2a=_0x57d853['t'],_0x127660=_0x1a1747['commandParams'][0x0]['value'];if(_0x127660){const _0x1bd156=_0x2776b5['config']['get']('highlight.options')['find'](_0x1225cb=>_0x1225cb['model']==_0x127660),_0x30398f=_0x5e6e2a(_0x1bd156['title'])['toLowerCase']();return{'type':'format','content':o(_0x57d853,'*Set\x20highlight:*\x20%0',_0x30398f),'color':{'value':_0x1bd156['color'],'title':_0x1bd156['title']}};}return{'type':'format','content':o(_0x57d853,'*Remove\x20highlight*',o(_0x57d853,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x4ead4a{['afterInit'](){const _0x28462d=this['editor'];if(!_0x28462d['plugins']['has']('HorizontalLineEditing'))return;_0x28462d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x454e63=_0x28462d['plugins']['get']('TrackChangesEditing'),_0x5d7b4f=_0x28462d['locale'];_0x454e63['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4fb355=>o(_0x5d7b4f,'ELEMENT_HORIZONTAL_LINE',_0x4fb355)),_0x28462d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4dab93,{writer:_0x4e6650,options:_0x577729})=>{if(!_0x577729['showSuggestionHighlights'])return null;const _0x54ba13=_0x4e6650['createContainerElement']('div'),_0x4e6d7b=_0x4e6650['createEmptyElement']('hr');return _0x4e6650['addClass']('ck-horizontal-line',_0x54ba13),_0x4e6650['insert'](_0x4e6650['createPositionAt'](_0x54ba13,0x0),_0x4e6d7b),_0x54ba13;},'converterPriority':'high'});}}class st extends _0x4ead4a{['afterInit'](){const _0x562418=this['editor'];if(!_0x562418['plugins']['has']('HtmlEmbed'))return;const _0x297dba=_0x562418['plugins']['get']('TrackChangesEditing'),_0x37412d=_0x562418['locale'];_0x297dba['descriptionFactory']['registerElementLabel']('rawHtml',_0x241d04=>o(_0x37412d,'ELEMENT_HTML_EMBED',_0x241d04)),_0x297dba['enableDefaultAttributesIntegration']('htmlEmbed'),_0x297dba['registerBlockAttribute']('value'),_0x297dba['descriptionFactory']['registerDescriptionCallback'](_0x366882=>{if('attribute'!=_0x366882['type'])return;const {data:_0x3f9549}=_0x366882;if(_0x3f9549&&'value'==_0x3f9549['key']&&_0x366882['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x53d529=o(_0x37412d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x37412d,'*Change\x20%0\x20content*',_0x53d529)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5324dd=this['editor'],_0x4fa739=_0x5324dd['locale'];_0x5324dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46e6db=>{if('formatBlock'!=_0x46e6db['type'])return;const {data:_0x446149}=_0x46e6db;if(_0x446149&&'htmlEmbed'==_0x446149['commandName']){const _0x2f45db=o(_0x4fa739,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4fa739,'*Change\x20%0\x20content*',_0x2f45db)};}});}}class ot extends _0x4ead4a{['afterInit'](){const _0x33b35f=this['editor'];if(!_0x33b35f['plugins']['has']('ImageEditing'))return;const _0x34d4ce=_0x33b35f['plugins']['get']('TrackChangesEditing'),_0x3069ea=_0x33b35f['plugins']['get']('ImageUtils'),_0x27afd2=_0x33b35f['locale'];_0x34d4ce['enableCommand']('insertImage'),_0x34d4ce['descriptionFactory']['registerElementLabel']('imageBlock',_0x5dc8ed=>o(_0x27afd2,'ELEMENT_IMAGE',_0x5dc8ed)),_0x34d4ce['descriptionFactory']['registerElementLabel']('imageInline',_0x9e1644=>o(_0x27afd2,'ELEMENT_INLINE_IMAGE',_0x9e1644)),_0x34d4ce['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x27afd2,'ELEMENT_CAPTION')),_0x33b35f['plugins']['has']('ImageUploadEditing')&&_0x34d4ce['enableCommand']('uploadImage'),_0x33b35f['plugins']['has']('ImageBlockEditing')&&_0x33b35f['plugins']['has']('ImageInlineEditing')&&(_0x34d4ce['enableCommand']('imageTypeInline',(_0x207065,_0x1ae43e)=>{const _0x2def91=_0x3069ea['getClosestSelectedImageElement'](_0x33b35f['model']['document']['selection']);_0x33b35f['model']['change'](()=>{_0x34d4ce['markBlockFormat'](_0x2def91,{'commandName':'imageTypeInline','commandParams':[_0x1ae43e]},[],'convertBlockImageToInline');});}),_0x34d4ce['enableCommand']('imageTypeBlock',(_0x43f5f5,_0x29551a)=>{_0x33b35f['model']['change'](_0x4c6dcc=>{let _0x110608=_0x3069ea['getClosestSelectedImageElement'](_0x33b35f['model']['document']['selection']),_0x2ce581=_0x4c6dcc['createRangeOn'](_0x110608);const _0xef9e22=_0x187eae['fromPosition'](_0x2ce581['start'],'toPrevious'),_0x57557c=_0x187eae['fromPosition'](_0x2ce581['end'],'toNext');_0x34d4ce['forceDefaultExecution'](()=>_0x43f5f5(_0x29551a)),_0x110608=_0x3069ea['getClosestSelectedImageElement'](_0x33b35f['model']['document']['selection']),_0x2ce581=_0x4c6dcc['createRangeOn'](_0x110608);const _0x132772=_0x4c6dcc['createRange'](_0xef9e22,_0x57557c);_0xef9e22['detach'](),_0x57557c['detach'](),_0x34d4ce['markBlockFormat'](_0x110608,{'commandName':'imageTypeInline','commandParams':[_0x29551a]},[],'convertInlineImageToBlock'),_0x132772['start']['isBefore'](_0x2ce581['start'])&&_0x34d4ce['markInsertion'](_0x4c6dcc['createRange'](_0x132772['start'],_0x2ce581['start']),'convertInlineImageToBlock'),_0x2ce581['end']['isBefore'](_0x132772['end'])&&_0x34d4ce['markInsertion'](_0x4c6dcc['createRange'](_0x2ce581['end'],_0x132772['end']),'convertInlineImageToBlock');});}),_0x34d4ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x34d4ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x34d4ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x34d4ce['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x34d4ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x34d4ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x591b3a])=>{const _0x29937e=_0x34d4ce['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1a7a80=_0x591b3a['start'],_0x17e47b=_0x591b3a['end'];const _0x296d0a=_0x33b35f['model']['schema']['getNearestSelectionRange'](_0x1a7a80,'backward'),_0x518aba=_0x33b35f['model']['schema']['getNearestSelectionRange'](_0x17e47b,'forward');_0x296d0a['isCollapsed']&&(_0x1a7a80=_0x296d0a['start']),_0x518aba['isCollapsed']&&(_0x17e47b=_0x518aba['end']),_0x29937e([_0x33b35f['model']['createRange'](_0x1a7a80,_0x17e47b)]);}),_0x34d4ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x288c8b),_0x34d4ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x288c8b)),_0x33b35f['plugins']['has']('ImageCaptionEditing')&&(_0x34d4ce['enableCommand']('toggleImageCaption',(_0x398ec2,_0x8a5c0c)=>{const _0x547c77=_0x33b35f['plugins']['get']('ImageCaptionUtils');let _0x116792=_0x3069ea['getClosestSelectedImageElement'](_0x33b35f['model']['document']['selection']),_0x4b29ba=_0x547c77['getCaptionFromImageModelElement'](_0x116792);_0x33b35f['model']['change'](()=>{if(_0x4b29ba)return void _0x34d4ce['markDeletion'](_0x33b35f['model']['createRangeOn'](_0x4b29ba));const _0x23b437=_0x3069ea['isBlockImage'](_0x116792);_0x398ec2(_0x8a5c0c),_0x116792=_0x3069ea['getClosestSelectedImageElement'](_0x33b35f['model']['document']['selection']),_0x4b29ba=_0x547c77['getCaptionFromImageModelElement'](_0x116792),_0x34d4ce['markInsertion'](_0x33b35f['model']['createRangeOn'](_0x4b29ba),_0x23b437?null:'imageCaption');});}),_0x34d4ce['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x288c8b));const _0x3e53a5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5ba664(_0x5e5d9a,_0xba8c28){const _0x1187e7=_0x3e53a5['findIndex'](({type:_0x2302af,subType:_0x2bf8a8})=>_0x5e5d9a['type']==_0x2302af&&_0x5e5d9a['subType']==_0x2bf8a8),_0x25a43c=_0x3e53a5['findIndex'](({type:_0x4f285a,subType:_0x595a0f})=>_0xba8c28['type']==_0x4f285a&&_0xba8c28['subType']==_0x595a0f);if(_0x1187e7<0x0||_0x25a43c<0x0)return!0x1;const _0x13360f=_0x5e5d9a['getFirstRange'](),_0xf98089=_0xba8c28['getFirstRange']();if((0x0==_0x1187e7||0x1==_0x1187e7)&&0x2==_0x25a43c&&_0x13360f['isIntersecting'](_0xf98089))return!0x0;if(0x2==_0x1187e7&&0x3==_0x25a43c){const _0x25c452=_0x34d4ce['_findSuggestions'](_0x13360f,'insertion')['filter'](({suggestion:_0x13adec,meta:_0x3df1fb})=>_0x3df1fb['isOwn']&&'convertInlineImageToBlock'==_0x13adec['subType']);if(_0x25c452['length']>0x1&&_0xf98089['end']['isEqual'](_0x13360f['start']))return!0x0;if(0x1==_0x25c452['length']&&(_0x13360f['start']['isEqual'](_0xf98089['end'])||_0x13360f['end']['isEqual'](_0xf98089['start'])))return!0x0;}if(0x3==_0x1187e7&&0x3==_0x25a43c&&_0x13360f['start']['isBefore'](_0xf98089['start'])){const _0x59708d=_0x13360f['end']['nodeAfter'],_0x3f43cc=_0xf98089['start']['nodeBefore'];return _0x3069ea['isBlockImage'](_0x59708d)&&_0x59708d===_0x3f43cc;}return!0x1;}function _0x288c8b(_0x18eaed,_0x342550){return _0x5ba664(_0x18eaed,_0x342550)?[_0x18eaed,_0x342550]:_0x5ba664(_0x342550,_0x18eaed)?[_0x342550,_0x18eaed]:null;}_0x33b35f['plugins']['has']('ImageResize')&&(_0x34d4ce['enableDefaultAttributesIntegration']('resizeImage'),_0x34d4ce['registerBlockAttribute']('resizedWidth'),_0x34d4ce['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x27afd2,'FORMAT_IMAGE_SIZE'))),_0x33b35f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x34d4ce['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x34d4ce['registerBlockAttribute']('alt')),_0x34d4ce['descriptionFactory']['registerDescriptionCallback'](_0x12e856=>{if(!!_0x3e53a5['find'](({type:_0x4d218c,subType:_0xe36c86})=>_0x12e856['type']==_0x4d218c&&_0x12e856['subType']==_0xe36c86))return _0x12e856['previous']?{}:void 0x0;}),_0x34d4ce['descriptionFactory']['registerDescriptionCallback'](_0x15e54d=>{if('insertion'==_0x15e54d['type']||'deletion'==_0x15e54d['type']){const _0x284ea2=_0x15e54d['getContainedElement']();if(_0x284ea2&&_0x284ea2['is']('element','caption'))return{'type':'insertion'==_0x15e54d['type']?'addObject':'removeObject','element':_0x284ea2,'quantity':0x1};}}),_0x34d4ce['descriptionFactory']['registerDescriptionCallback'](_0x388501=>'formatBlock'==_0x388501['type']&&'convertInlineImageToBlock'==_0x388501['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x388501['type']&&'convertBlockImageToInline'==_0x388501['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x34d4ce['descriptionFactory']['registerDescriptionCallback'](_0x3f32fa=>{if('attribute'!=_0x3f32fa['type'])return;const {data:_0x129270}=_0x3f32fa;if(!_0x129270||'alt'!=_0x129270['key'])return;const _0x573e87=_0x129270['newValue'];return _0x573e87?{'type':'format','content':o(_0x27afd2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x573e87+'\x22')}:{'type':'format','content':o(_0x27afd2,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26c74e=this['editor'],_0x385580=_0x26c74e['locale'];_0x26c74e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x579f28=>{if('formatBlock'!=_0x579f28['type']&&'formatInline'!=_0x579f28['type'])return;const {data:_0x2e5a6b}=_0x579f28;if(_0x2e5a6b){if('imageTextAlternative'==_0x2e5a6b['commandName']){const _0x568a99=_0x2e5a6b['commandParams'][0x0]['newValue'];return _0x568a99?{'type':'format','content':o(_0x385580,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x568a99+'\x22')}:{'type':'format','content':o(_0x385580,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2e5a6b['commandName']){const _0x5f23c3=_0x2e5a6b['commandParams'][0x0]['width'];return _0x5f23c3?{'type':'format','content':o(_0x385580,'*Set\x20image\x20width:*\x20%0',_0x5f23c3)}:{'type':'format','content':o(_0x385580,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x4ead4a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x15f455=this['editor']['locale'],_0x4b2696=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b2696['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4b2696['registerBlockAttribute']('src'),_0x4b2696['descriptionFactory']['registerDescriptionCallback'](_0x340ac3=>{if('attribute'!=_0x340ac3['type'])return;const {data:_0x375a97}=_0x340ac3;return _0x375a97&&'src'==_0x375a97['key']?_0x375a97['newValue']&&_0x375a97['oldValue']?{'type':'format','content':o(_0x15f455,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4fd13d=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fd13d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4fd13d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fd13d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4fd13d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x275269=this['editor'],_0x2e586f=_0x275269['locale'];_0x275269['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x394b3f=>{if('formatBlock'!=_0x394b3f['type']&&'formatInline'!=_0x394b3f['type'])return;const {data:_0x5a11a6}=_0x394b3f;if(!_0x5a11a6||'replaceImageSource'!=_0x5a11a6['commandName'])return;return{'type':'format','content':o(_0x2e586f,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x4ead4a{['afterInit'](){const _0x27c5cd=this['editor'];if(!_0x27c5cd['plugins']['has']('ImageStyleEditing'))return;const _0x4c5952=_0x27c5cd['plugins']['get']('TrackChangesEditing'),_0x22acd2=_0x27c5cd['plugins']['get']('ImageUtils'),_0x2061b9={};_0x4c5952['enableCommand']('imageStyle',(_0x3ac740,_0xbe1159)=>{const _0x25414a=_0x27c5cd['plugins']['get']('Users')['me'],_0x3d84bc=_0x27c5cd['commands']['get']('imageStyle');let _0x55776e=_0x22acd2['getClosestSelectedImageElement'](_0x27c5cd['model']['document']['selection']),_0xb84dd3=_0x27c5cd['model']['createRangeOn'](_0x55776e),_0x19f390=_0x3d84bc['value'];if(_0x19f390==_0xbe1159['value'])return;const _0x1a3fdb={'commandName':'imageStyle','commandParams':[_0xbe1159],'formatGroupId':_0x53896e()};_0x27c5cd['model']['change'](()=>{if(_0x4c5952['getSuggestions']()['filter'](_0x3a65c3=>_0x3a65c3['isInContent']&&_0x25414a==_0x3a65c3['author']&&('formatBlock'==_0x3a65c3['type']||'formatInline'==_0x3a65c3['type'])&&('imageStylePreApply'==_0x3a65c3['subType']||'imageStylePostApply'==_0x3a65c3['subType'])&&_0x3a65c3['getFirstRange']()['isEqual'](_0xb84dd3))['forEach'](_0x591528=>_0x4c5952['discardSuggestion'](_0x591528['head'])),_0x55776e=_0x22acd2['getClosestSelectedImageElement'](_0x27c5cd['model']['document']['selection']),_0xb84dd3=_0x27c5cd['model']['createRangeOn'](_0x55776e),_0x3d84bc['refresh'](),_0x27c5cd['commands']['get']('imageTypeInline')['refresh'](),_0x27c5cd['commands']['get']('imageTypeBlock')['refresh'](),_0x19f390=_0x3d84bc['value'],_0x19f390!=_0xbe1159['value'])return _0x22acd2['isInlineImage'](_0x55776e)&&_0x3d84bc['shouldConvertImageType'](_0xbe1159['value'],_0x55776e)?(_0x3ac740({..._0xbe1159,'setImageSizes':!0x1}),_0x55776e=_0x22acd2['getClosestSelectedImageElement'](_0x27c5cd['model']['document']['selection']),void _0x4c5952['markBlockFormat'](_0x55776e,{..._0x1a3fdb,'commandReversedParams':[{'value':_0x19f390||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x22acd2['isBlockImage'](_0x55776e)?_0x4c5952['markBlockFormat'](_0x55776e,_0x1a3fdb,[],'imageStylePostApply'):_0x4c5952['markInlineFormat'](_0xb84dd3,_0x1a3fdb,'imageStylePostApply'));});});for(const _0x27dace of _0x27c5cd['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2061b9[_0x27dace['name']]=_0x27dace['title']['toLowerCase']();_0x4c5952['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4c5952['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4c5952['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4c5952['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x514710])=>{_0x22acd2['setImageNaturalSizeAttributes'](_0x514710['getContainedElement']());}),_0x4c5952['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x34e108,_0x1f8fb1)=>{_0x4c5952['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x34e108,{'commandName':_0x1f8fb1['commandName'],'commandParams':_0x1f8fb1['commandReversedParams']});}),_0x4c5952['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3989d4,_0x57aa8c){if(_0x125336(_0x3989d4,_0x57aa8c))return[_0x3989d4,_0x57aa8c];if(_0x125336(_0x57aa8c,_0x3989d4))return[_0x57aa8c,_0x3989d4];return null;});const _0xb10a63=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x125336(_0x3174c4,_0x497808){const _0x10c1aa=_0xb10a63['findIndex'](({type:_0x502b40,subType:_0x5c1cc7})=>_0x3174c4['type']==_0x502b40&&_0x3174c4['subType']==_0x5c1cc7),_0x57240e=_0xb10a63['findIndex'](({type:_0x4448c7,subType:_0x27d584})=>_0x497808['type']==_0x4448c7&&_0x497808['subType']==_0x27d584);if(_0x10c1aa<0x0||_0x57240e<0x0)return!0x1;const _0x24e40d=_0x3174c4['getFirstRange'](),_0x32b4d1=_0x497808['getFirstRange']();if((0x0==_0x10c1aa||0x1==_0x10c1aa)&&0x2==_0x57240e&&_0x24e40d['isIntersecting'](_0x32b4d1))return!0x0;if(0x2==_0x10c1aa&&0x3==_0x57240e){const _0x4b157f=_0x4c5952['_findSuggestions'](_0x24e40d,'insertion')['filter'](({suggestion:_0x21d248,meta:_0x2b540d})=>_0x2b540d['isOwn']&&'convertInlineImageToBlock'==_0x21d248['subType']);if(_0x4b157f['length']>0x1&&_0x32b4d1['end']['isEqual'](_0x24e40d['start']))return!0x0;if(0x1==_0x4b157f['length']&&(_0x24e40d['start']['isEqual'](_0x32b4d1['end'])||_0x24e40d['end']['isEqual'](_0x32b4d1['start'])))return!0x0;}if(0x3==_0x10c1aa&&0x3==_0x57240e&&_0x24e40d['start']['isBefore'](_0x32b4d1['start'])){const _0x4906d4=_0x24e40d['end']['nodeAfter'],_0x4290be=_0x32b4d1['start']['nodeBefore'];return _0x22acd2['isBlockImage'](_0x4906d4)&&_0x4906d4===_0x4290be;}return!0x1;}_0x27c5cd['model']['document']['registerPostFixer'](()=>{let _0x1684d5=!0x1;const _0x130d8e=Array['from'](_0x27c5cd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21add5,data:_0x43ae11}of _0x130d8e){const {group:_0x1681ba,type:_0x385d97,subType:_0x5cc5db,id:_0x5d3fa5}=_0x4c5952['_splitMarkerName'](_0x21add5);if('suggestion'==_0x1681ba&&_0x4c5952['hasSuggestion'](_0x5d3fa5)){if('formatBlock'==_0x385d97&&('imageStylePreApply'==_0x5cc5db||'imageStylePostApply'==_0x5cc5db)){const _0x4b13ed=_0x4c5952['getSuggestion'](_0x5d3fa5);if(_0x43ae11['newRange']){const _0x411712=_0x4b13ed['getFirstRange']()['getContainedElement']();if(_0x22acd2['isBlockImage'](_0x411712))continue;_0x4c5952['discardSuggestion'](_0x4b13ed),_0x1684d5=!0x0;}}if('insertion'==_0x385d97&&'imageCaption'==_0x5cc5db&&!_0x43ae11['newRange']){const _0x407fe3=_0x4c5952['getSuggestion'](_0x5d3fa5);_0x407fe3['next']&&_0x407fe3['next']['isInContent']&&(_0x4c5952['discardSuggestion'](_0x407fe3['next']),_0x1684d5=!0x0);}}}return _0x1684d5;}),this['_registerLegacyDescription'](_0x2061b9);}['_registerLegacyDescription'](_0x4edbc9){const _0x161169=this['editor'],_0x14d1f2=_0x161169['locale'];_0x161169['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d2987=>{if('formatBlock'!=_0x4d2987['type']&&'formatInline'!=_0x4d2987['type'])return;const {data:_0x12af3d}=_0x4d2987;if(!_0x12af3d||'imageStyle'!=_0x12af3d['commandName'])return;const _0x1a952a=_0x12af3d['commandParams'][0x0]['value'];return _0x27a819('side'===_0x1a952a?o(_0x14d1f2,'FORMAT_SIDE_IMAGE'):_0x4edbc9[_0x1a952a]||_0x1a952a);function _0x27a819(_0x2e8748){return{'type':'format','content':o(_0x14d1f2,'*Format:*\x20%0',_0x2e8748)};}});}}class ct extends _0x4ead4a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x170750){super(_0x170750),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5de108=this['editor'],_0x1dcbe5=_0x5de108['commands']['get']('importWord'),_0x2538a3=_0x5de108['commands']['get']('trackChanges');_0x1dcbe5&&(_0x1dcbe5['on']('execute',(_0x7d1d8a,[,_0x1ae48c])=>{this['_trackChangesValueDuringImport']=_0x2538a3['value'],_0x1ae48c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1dcbe5,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1dcbe5,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2538a3['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5de108['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x142c00,_0x5b8dfa){const {suggestions:_0x5bfa75}=_0x5b8dfa,_0x185ce0=this['editor']['commands']['get']('trackChanges'),_0xbe140d=_0x185ce0['value'];this['_trackChangesValueDuringImport']!==_0xbe140d&&(_0x185ce0['execute'](),this['_trackChangesExecuted']=!0x0),_0x5bfa75&&_0x5bfa75['forEach'](({id:_0xcc319a,type:_0x3c95d3,author:_0x2e7c2a,created_at:_0x5e7c8a})=>{const _0x3ac762={'id':_0xcc319a,'type':_0x3c95d3,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2e7c2a,'createdAt':_0x5e7c8a?new Date(_0x5e7c8a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3ac762);});}}class ut extends _0x4ead4a{['afterInit'](){const _0xcf33f9=this['editor'],_0x1095bc=_0xcf33f9['plugins']['get']('TrackChangesEditing');if(_0xcf33f9['plugins']['has']('IndentEditing')&&(_0x1095bc['enableCommand']('indent'),_0x1095bc['enableCommand']('outdent')),_0xcf33f9['plugins']['has']('IndentBlock')){for(const _0x44117b of['indentBlock','outdentBlock'])_0x1095bc['enableDefaultAttributesIntegration'](_0x44117b);}const _0x1c1efe=_0xcf33f9['locale'];_0x1095bc['registerBlockAttribute']('blockIndent'),_0x1095bc['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1c1efe,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x273608=this['editor'],_0x367610=_0x273608['locale'],_0xb8a61f=_0x273608['plugins']['get']('TrackChangesEditing');_0xb8a61f['descriptionFactory']['registerDescriptionCallback'](_0x58d7f1=>{if('formatBlock'!=_0x58d7f1['type'])return;const {data:_0x5ba224}=_0x58d7f1;if(!_0x5ba224)return;if('indentBlock'!=_0x5ba224['commandName']&&'outdentBlock'!=_0x5ba224['commandName'])return;const _0x1b3eac=_0x58d7f1['getItems']()[0x0],_0x5c4822=_0xb8a61f['descriptionFactory']['getItemLabel'](_0x1b3eac);return'indentBlock'==_0x5ba224['commandName']?{'type':'format','content':o(_0x367610,'*Indent:*\x20%0',_0x5c4822)}:'outdentBlock'==_0x5ba224['commandName']?{'type':'format','content':o(_0x367610,'*Outdent:*\x20%0',_0x5c4822)}:void 0x0;});}}class ft extends _0x4ead4a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x4ead4a{['afterInit'](){const _0x243446=this['editor'];if(!_0x243446['plugins']['has']('LinkEditing'))return;const _0x351772=_0x243446['plugins']['get']('TrackChangesEditing'),_0x495821=_0x243446['commands']['get']('link');_0x351772['enableDefaultAttributesIntegration']('link'),_0x351772['enableDefaultAttributesIntegration']('unlink'),_0x351772['registerInlineAttribute']('linkHref');for(const _0x31baa9 of _0x495821['manualDecorators'])_0x351772['registerInlineAttribute'](_0x31baa9['id']),_0x351772['descriptionFactory']['registerAttributeLabel'](_0x31baa9['id'],'link\x20('+_0x31baa9['label']['toLowerCase']()+')');_0x351772['descriptionFactory']['registerDescriptionCallback'](_0x20d896=>{if('attribute'!=_0x20d896['type'])return;const {data:_0x40b504}=_0x20d896;if(!_0x40b504||'linkHref'!=_0x40b504['key'])return;const _0x4155eb=_0x40b504['newValue'],_0x5dbce8=_0x243446['locale'];return{'type':'format','content':null==_0x4155eb?o(_0x5dbce8,'*Remove\x20link*'):o(_0x5dbce8,'*Set\x20link:*\x20%0','\x22'+_0x4155eb+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x414600=this['editor'],_0x404a4d=_0x414600['locale'];_0x414600['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2eabbb=>{if('formatInline'!=_0x2eabbb['type'])return;const {data:_0x496230}=_0x2eabbb;if(_0x496230){if('link'==_0x496230['commandName']){const _0xc0253=_0x496230['commandParams'][0x0];return{'type':'format','content':o(_0x404a4d,'*Set\x20link:*\x20%0','\x22'+_0xc0253+'\x22')};}return'unlink'==_0x496230['commandName']?{'type':'format','content':o(_0x404a4d,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x4ead4a{['afterInit'](){const _0x3e021d=this['editor'],_0x1f0025=_0x3e021d['locale'];if(!_0x3e021d['plugins']['has']('LegacyListEditing'))return;const _0x304c4f=_0x3e021d['plugins']['get']('TrackChangesEditing'),_0x31c445=_0x3e021d['plugins']['has']('LegacyTodoListEditing');function _0x44b1f0(_0xf2c4b7){return()=>{const _0xed4f6a=_0x3e021d['model']['document']['selection'],_0x35e5c8=_0x3e021d['commands']['get'](_0xf2c4b7);if(_0x35e5c8['value'])return void _0x3e021d['execute']('paragraph',{});const _0x37411f=_0xf2c4b7['slice'](0x0,-0x4),_0x50c7ec=function(_0x829a7e,_0x71f417,_0x395f39){let _0x11b5d4=Array['from'](_0x829a7e)['filter'](_0x4d9834=>function(_0x5de90d,_0x4b9f1b){return _0x4b9f1b['checkChild'](_0x5de90d['parent'],'listItem')&&!_0x4b9f1b['isObject'](_0x5de90d);}(_0x4d9834,_0x395f39));_0x11b5d4=_0x11b5d4['filter'](_0x4037ae=>!_0x4037ae['is']('element','listItem')||_0x4037ae['getAttribute']('listType')!=_0x71f417);const _0x355af7=new Set();for(const _0x553a54 of _0x11b5d4)_0x553a54['is']('element','listItem')?_0x355af7['add'](Le(_0x553a54)):_0x355af7['add'](_0x553a54);return Array['from'](_0x355af7);}(_0xed4f6a['getSelectedBlocks'](),_0x37411f,_0x3e021d['model']['schema']);_0x3e021d['model']['change'](()=>{for(const _0x2d9715 of _0x50c7ec)_0x304c4f['markBlockFormat'](_0x2d9715,{'commandName':_0xf2c4b7,'commandParams':[{'forceValue':!_0x35e5c8['value']}],'formatGroupId':'blockName'},Ee(_0x2d9715));});};}function _0x1b0f01(_0xae0182){return()=>{const _0x2072ea=function(_0x5602bb){let _0x597b4c=Array['from'](_0x5602bb);const _0x17f5e9=_0x597b4c['findIndex'](_0x57e77d=>'listItem'!=_0x57e77d['name']);return _0x17f5e9>-0x1&&(_0x597b4c=_0x597b4c['slice'](0x0,_0x17f5e9)),_0x597b4c;}(_0x3e021d['model']['document']['selection']['getSelectedBlocks']()),_0x41a3f6=_0x3e021d['model']['createRange'](_0x3e021d['model']['createPositionAt'](_0x2072ea[0x0],'before'),_0x3e021d['model']['createPositionAt'](_0x2072ea[_0x2072ea['length']-0x1],'end'));_0x3e021d['model']['change'](()=>{_0x304c4f['markBlockFormat'](_0x41a3f6,{'commandName':_0xae0182,'commandParams':[],'formatGroupId':'listIndent'},function(_0x26ccd5){const _0x41e7dc=new Set();for(const _0x38a69c of _0x26ccd5){let _0xf76134=_0x38a69c['nextSibling'];for(;_0xf76134&&_0xf76134['getAttribute']('listIndent')>_0x38a69c['getAttribute']('listIndent');)_0x41e7dc['add'](_0xf76134),_0xf76134=_0xf76134['nextSibling'];}return Array['from'](_0x41e7dc);}(_0x2072ea));});};}_0x304c4f['enableCommand']('numberedList',_0x44b1f0('numberedList')),_0x304c4f['enableCommand']('bulletedList',_0x44b1f0('bulletedList')),_0x31c445&&_0x304c4f['enableCommand']('todoList',_0x44b1f0('todoList')),_0x304c4f['enableCommand']('indentList',_0x1b0f01('indentList')),_0x304c4f['enableCommand']('outdentList',_0x1b0f01('outdentList')),_0x31c445&&_0x304c4f['enableCommand']('checkTodoList',()=>{const _0x9f655d=_0x3e021d['commands']['get']('checkTodoList'),_0x371591=Array['from'](_0x9f655d['_selectedElements']);_0x371591['filter'](_0x18895f=>_0x18895f['getAttribute']('todoListChecked')!=_0x9f655d['value']),_0x3e021d['model']['change'](()=>{for(const _0x1ad68b of _0x371591)_0x304c4f['markBlockFormat'](_0x1ad68b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x9f655d['value']}]});});}),_0x304c4f['descriptionFactory']['registerElementLabel']('listItem',_0x11908e=>o(_0x1f0025,'ELEMENT_LIST_ITEM',_0x11908e)),_0x304c4f['descriptionFactory']['registerDescriptionCallback'](_0x2836be=>{if('formatBlock'!=_0x2836be['type']&&'formatInline'!=_0x2836be['type'])return;const {data:_0x4a0911}=_0x2836be;if(_0x4a0911){if('numberedList'==_0x4a0911['commandName']||'bulletedList'==_0x4a0911['commandName']||'todoList'==_0x4a0911['commandName'])switch(_0x4a0911['commandName']['replace']('List','')){case'bulleted':return _0x48b3bd(o(_0x1f0025,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48b3bd(o(_0x1f0025,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48b3bd(o(_0x1f0025,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4a0911['commandName'])return{'type':'format','content':o(_0x1f0025,'*Indent:*\x20%0',o(_0x1f0025,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4a0911['commandName'])return{'type':'format','content':o(_0x1f0025,'*Outdent:*\x20%0',o(_0x1f0025,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4a0911['commandName'])return _0x4a0911['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1f0025,'*Check\x20item*')}:{'type':'format','content':o(_0x1f0025,'*Uncheck\x20item*')};}function _0x48b3bd(_0x279baa){return{'type':'format','content':o(_0x1f0025,'*Change\x20to:*\x20%0',_0x279baa)};}});}}function Le(_0x1342a3){const _0x4abd48=_0x1342a3['getAttribute']('listIndent');if(0x0==_0x4abd48)return _0x1342a3;let _0x28fa1b=_0x1342a3;for(;_0x1342a3['previousSibling']&&_0x1342a3['previousSibling']['is']('element','listItem');){const _0x34db39=_0x1342a3['previousSibling']['getAttribute']('listIndent');if(_0x34db39==_0x4abd48)_0x28fa1b=_0x1342a3['previousSibling'];else{if(_0x34db39<_0x4abd48)break;}_0x1342a3=_0x1342a3['previousSibling'];}return _0x28fa1b;}function Ee(_0x23a13f){const _0x45f37c=[];if(_0x23a13f['is']('element','listItem')&&_0x23a13f['getAttribute']('listIndent')>0x0){let _0x1e263a=_0x23a13f['nextSibling'];for(;_0x1e263a&&'listItem'==_0x1e263a['name']&&_0x1e263a['getAttribute']('listIndent')==_0x23a13f['getAttribute']('listIndent');)_0x45f37c['push'](_0x1e263a),_0x1e263a=_0x1e263a['nextSibling'];}return _0x45f37c;}class Q extends _0x4ead4a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1c12d5=this['editor']['config']['get']('list.properties'),_0x8cdd46=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c12d5['styles']&&_0x8cdd46['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1c12d5['reversed']&&_0x8cdd46['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1c12d5['startIndex']&&_0x8cdd46['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x8cdd46['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x15abd4,_0x45f5f5={}){const _0x4c1616=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfbbe6d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4c1616['markMultiRangeBlockFormat'](_0xfbbe6d,{'commandName':'listStyle','commandParams':[{'type':_0x45f5f5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2c0aff,_0x527772={}){const _0x40c32c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f0465=this['_getSuggestionBlocks'](_0x12b95e=>_0x12b95e['is']('element','listItem')&&'numbered'===_0x12b95e['getAttribute']('listType'));if(_0x4f0465['length']<0x1)return;const _0x2862b6=_0x4f0465['map'](_0x33e89c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33e89c,'before'),this['editor']['model']['createPositionAt'](_0x33e89c,0x0)));this['editor']['model']['change'](()=>{_0x40c32c['markMultiRangeBlockFormat'](_0x2862b6,{'commandName':'listReversed','commandParams':[{'reversed':_0x527772['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2f3c58,_0x122db3={}){const _0x281b5a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d52ac=this['_getSuggestionBlocks'](_0x4badc9=>_0x4badc9['is']('element','listItem')&&'numbered'===_0x4badc9['getAttribute']('listType'));if(_0x1d52ac['length']<0x1)return;const _0x22ae5b=_0x1d52ac['map'](_0x5abb63=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5abb63,'before'),this['editor']['model']['createPositionAt'](_0x5abb63,0x0)));this['editor']['model']['change'](()=>{_0x281b5a['markMultiRangeBlockFormat'](_0x22ae5b,{'commandName':'listStart','commandParams':[{'startIndex':_0x122db3['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x25c19b){if('formatBlock'!=_0x25c19b['type']&&'formatInline'!=_0x25c19b['type'])return;const _0x1c0b4a=this['editor']['locale'],{data:_0x107de8}=_0x25c19b;if(!_0x107de8)return;let _0x195728,_0x40310b;switch(_0x107de8['commandName']){case'listStyle':_0x195728='*Change\x20to:*\x20%0',_0x40310b={'type':'format','content':o(_0x1c0b4a,_0x195728,o(_0x1c0b4a,this['_getTranslationKeyForListStyle'](_0x107de8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x195728=_0x107de8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x40310b={'type':'format','content':o(_0x1c0b4a,_0x195728)};break;case'listStart':_0x195728='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x40310b={'type':'format','content':o(_0x1c0b4a,_0x195728,_0x107de8['commandParams'][0x0]['startIndex'])};}return _0x40310b;}['_getSuggestionBlocksForListStyle'](){const _0x2fffcc=this['editor']['plugins']['get']('LegacyListUtils');let _0x1ad57c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1ad57c[0x0]?.['is']('element','listItem')&&_0x1ad57c['unshift'](..._0x2fffcc['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1ad57c[_0x1ad57c['length']-0x1]?.['is']('element','listItem')&&_0x1ad57c['push'](..._0x2fffcc['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1ad57c=[...new Set(_0x1ad57c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1ad57c=_0x1ad57c['filter'](_0x8476eb=>_0x8476eb['is']('element','listItem'))),_0x1ad57c;}['_getSuggestionBlocks'](_0x13be4c){const _0xbfe37f=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b0b11=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x13be4c)['map'](_0x58688c=>{const _0x50855e=this['editor']['model']['createPositionAt'](_0x58688c,0x0);return[..._0xbfe37f['getSiblingNodes'](_0x50855e,'backward'),..._0xbfe37f['getSiblingNodes'](_0x50855e,'forward')];})['flat']();return _0x5b0b11=[...new Set(_0x5b0b11)],_0x5b0b11;}['_getTranslationKeyForListStyle'](_0x3ade5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3ade5)||'default')['toUpperCase']()+'_LIST_'+_0x3ade5['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x4ead4a{['afterInit'](){const _0x1187ac=this['editor'];if(!_0x1187ac['plugins']['has']('MediaEmbedEditing'))return;const _0x1495ed=_0x1187ac['plugins']['get']('TrackChangesEditing'),_0x3ed5a3=_0x1187ac['locale'];_0x1495ed['enableCommand']('mediaEmbed'),_0x1495ed['descriptionFactory']['registerElementLabel']('media',_0x3ff149=>o(_0x3ed5a3,'ELEMENT_MEDIA',_0x3ff149)),_0x1187ac['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x64f263,{writer:_0xb01234,options:_0x38bb90})=>{if(_0x38bb90['showSuggestionHighlights'])return _0xb01234['createEmptyElement']('div');},'converterPriority':'high'}),_0x1187ac['data']['downcastDispatcher']['on']('attribute:url:media',(_0x496848,_0x5bde0c,_0x5c46cc)=>{_0x5c46cc['options']['showSuggestionHighlights']&&_0x496848['stop']();},{'priority':'high'});}}class mt extends _0x4ead4a{['afterInit'](){const _0x3aa193=this['editor'];_0x3aa193['plugins']['has']('MentionEditing')&&_0x3aa193['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x4ead4a{['afterInit'](){const _0x24d3be=this['editor'];if(!_0x24d3be['plugins']['has']('MergeFieldsEditing'))return;_0x24d3be['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x24d3be['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x1b0971=_0x24d3be['plugins']['get']('TrackChangesEditing'),_0x2cc9fa=_0x24d3be['locale'];_0x1b0971['descriptionFactory']['registerElementLabel']('mergeField',_0x3aafe7=>o(_0x2cc9fa,'ELEMENT_MERGE_FIELD',_0x3aafe7)),_0x1b0971['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x275bb9=>o(_0x2cc9fa,'ELEMENT_MERGE_FIELD',_0x275bb9)),_0x1b0971['descriptionFactory']['registerDescriptionCallback'](_0x14b58a=>{if('insertion'!=_0x14b58a['type']&&'deletion'!=_0x14b58a['type'])return;const _0x420570=_0x14b58a['getContainedElement']();if(null==_0x420570)return;if(!_0x420570['is']('element','mergeField')&&!_0x420570['is']('element','mergeFieldBlock'))return;const _0x4e4338=_0x24d3be['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x420570['getAttribute']('id'));return'insertion'==_0x14b58a['type']?{'type':'insertion','content':o(_0x2cc9fa,'*Insert:*\x20%0','\x22'+_0x4e4338+'\x22\x20'+o(_0x2cc9fa,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2cc9fa,'*Remove:*\x20%0','\x22'+_0x4e4338+'\x22\x20'+o(_0x2cc9fa,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x4ead4a{['afterInit'](){const _0x1fb0e3=this['editor'],_0x445b5f=_0x1fb0e3['plugins']['get']('TrackChangesEditing');_0x1fb0e3['plugins']['has']('MultiLevelList')&&(_0x445b5f['enableDefaultAttributesIntegration']('multiLevelList'),_0x445b5f['registerBlockAttribute']('listMarkerStyle'),_0x445b5f['descriptionFactory']['registerDescriptionCallback'](_0x20fa0a=>this['handleDescriptions'](_0x20fa0a)));}['handleDescriptions'](_0x1417d8){const _0x59840e=this['editor']['locale'],{data:_0x25cbf0}=_0x1417d8,_0x2a6cd3={'type':'format','content':''};if(_0x25cbf0&&'listMarkerStyle'==_0x25cbf0['key']){if(!_0x25cbf0['oldValue'])return{'type':'format','content':o(_0x59840e,'*Set\x20format:*\x20%0',o(_0x59840e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x25cbf0['newValue']+')'};if(!_0x25cbf0['newValue']){let _0x3bd9f8=_0x1417d8['head'];for(;_0x3bd9f8;){if(_0x3bd9f8['data']&&'listType'==_0x3bd9f8['data']['key']&&_0x3bd9f8['data']['newValue'])return _0x2a6cd3;_0x3bd9f8=_0x3bd9f8['next'];}return{'type':'format','content':o(_0x59840e,'*Remove\x20format:*\x20%0',o(_0x59840e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x25cbf0['oldValue']+')'};}}}}class kt extends _0x4ead4a{['afterInit'](){const _0x430096=this['editor'];if(!_0x430096['plugins']['has']('PageBreakEditing'))return;_0x430096['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x296d79=_0x430096['plugins']['get']('TrackChangesEditing'),_0x3ebc68=_0x430096['locale'];_0x296d79['descriptionFactory']['registerElementLabel']('pageBreak',_0x154567=>o(_0x3ebc68,'ELEMENT_PAGE_BREAK',_0x154567));}}class bt extends _0x4ead4a{['afterInit'](){const _0x536684=this['editor'];if(!_0x536684['plugins']['has']('Paragraph'))return;const _0x7a826f=_0x536684['locale'],_0x57be10=_0x536684['plugins']['get']('TrackChangesEditing');_0x57be10['descriptionFactory']['registerElementLabel']('paragraph',_0x31c7fc=>o(_0x7a826f,'ELEMENT_PARAGRAPH',_0x31c7fc)),_0x57be10['enableDefaultAttributesIntegration']('paragraph'),_0x57be10['enableCommand']('insertParagraph'),_0x536684['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x536684),{'priority':'highest'}),_0x536684['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3e9728,_0x2170b3,_0x1e221b)=>{_0x1e221b['options']['showSuggestionHighlights']&&nr(_0x536684,{'showActiveMarker':!0x1})(_0x3e9728,_0x2170b3,_0x1e221b);},{'priority':'highest'});const _0x476258=_0x57be10['descriptionFactory'];_0x476258['registerDescriptionCallback'](_0x586df7=>{if('insertion'!==_0x586df7['type'])return;const {start:_0x32e292,end:_0x42e5bd}=_0x586df7['getFirstRange']();if(!_0x32e292['isTouching'](_0x42e5bd)||!_0x32e292['nodeAfter'])return;const _0x121857=_0x536684['model']['schema'],_0x175bb9=_0x32e292['nodeAfter'];return _0x121857['isBlock'](_0x175bb9)&&!_0x121857['isLimit'](_0x175bb9)&&_0x121857['checkChild'](_0x175bb9,'$text')?{'type':'insertion','content':o(_0x7a826f,'*Insert:*\x20%0',_0x476258['getItemLabel'](_0x175bb9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b4306=this['editor'],_0x158e69=_0x1b4306['locale'];_0x1b4306['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17ed71=>{if('formatBlock'!=_0x17ed71['type'])return;const {data:_0x5f0bc4}=_0x17ed71;return _0x5f0bc4&&'paragraph'==_0x5f0bc4['commandName']?{'type':'format','content':o(_0x158e69,'*Change\x20to:*\x20%0',o(_0x158e69,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xc545b1,{showActiveMarker:_0x2526fb=!0x0}={}){return(_0x2e5c2a,_0x497100,_0x399be9)=>{const _0x12e18f=_0xc545b1['plugins']['get']('TrackChangesEditing'),_0xc00dba=_0x497100['markerRange']['start'],_0x496bf2=_0x497100['markerRange']['end'],_0x4f39ed=_0xc545b1['model']['schema'];if(!_0xc00dba['isTouching'](_0x496bf2)||!_0xc00dba['nodeAfter'])return;const _0x306558=_0xc00dba['nodeAfter'];if(_0x4f39ed['isBlock'](_0x306558)&&!_0x4f39ed['isLimit'](_0x306558)&&_0x4f39ed['checkChild'](_0x306558,'$text')){if(!_0x399be9['consumable']['consume'](_0x497100['markerRange'],_0x2e5c2a['name']))return;const {authorId:_0x160217}=_0x12e18f['_splitMarkerName'](_0x497100['markerName']),_0x49fae3=_0x399be9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x160217}),_0x363d80=_0x399be9['mapper']['toViewPosition'](_0x496bf2);_0x2526fb&&_0x12e18f['activeMarkers']['includes'](_0x497100['markerName'])&&_0x399be9['writer']['addClass']('ck-suggestion-marker--active',_0x49fae3),_0x399be9['writer']['insert'](_0x363d80,_0x49fae3),_0x399be9['mapper']['bindElementToMarker'](_0x49fae3,_0x497100['markerName']);}};}class yt extends _0x4ead4a{['afterInit'](){const _0x2de6c7=this['editor'];if(!_0x2de6c7['plugins']['has']('RemoveFormatEditing'))return;_0x2de6c7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x493cf5=this['editor'];_0x493cf5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x920f2d=>{if('formatBlock'!=_0x920f2d['type']&&'formatInline'!=_0x920f2d['type'])return;const {data:_0x11a359}=_0x920f2d;return _0x11a359&&'removeFormat'==_0x11a359['commandName']?{'type':'format','content':o(_0x493cf5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x4ead4a{['afterInit'](){const _0x40c815=this['editor'];if(!_0x40c815['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2b04db=_0x40c815['plugins']['get']('TrackChangesEditing');_0x2b04db['enableCommand']('goToPreviousRestrictedEditingException'),_0x2b04db['enableCommand']('goToNextRestrictedEditingException');const _0x305ef4=_0x40c815['plugins']['get']('RestrictedEditingModeEditing');_0x305ef4['enableCommand']('trackChanges'),_0x305ef4['enableCommand']('acceptSuggestion'),_0x305ef4['enableCommand']('discardSuggestion'),_0x305ef4['enableCommand']('acceptAllSuggestions'),_0x305ef4['enableCommand']('discardAllSuggestions'),_0x305ef4['enableCommand']('acceptSelectedSuggestions'),_0x305ef4['enableCommand']('discardSelectedSuggestions');}}class St extends _0x4ead4a{static get['requires'](){return[_0x58dc3f];}['init'](){const _0x55223c=this['editor'],_0x3f4d49=_0x55223c['plugins']['get']('TrackChangesEditing');_0x3f4d49['enableCommand']('shiftEnter'),_0x55223c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x55223c),{'priority':'high'}),_0x55223c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x55223c),{'priority':'high'}),_0x55223c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2e19c2,_0x4e888e,_0x24b0ce)=>{_0x24b0ce['options']['showSuggestionHighlights']&&ke(_0x55223c,{'showActiveMarker':!0x1})(_0x2e19c2,_0x4e888e,_0x24b0ce);}),_0x3f4d49['descriptionFactory']['registerElementLabel']('softBreak',_0x43deb7=>o(_0x55223c['locale'],'ELEMENT_LINE_BREAK',_0x43deb7));}}function ke(_0x1a34a7,{showActiveMarker:_0xd44ccf=!0x0}={}){return(_0x2ba3e4,_0x115b1d,_0x55e0f4)=>{const _0x4d6a7e=_0x1a34a7['plugins']['get']('TrackChangesEditing');if(!_0x55e0f4['consumable']['test'](_0x115b1d['markerRange'],_0x2ba3e4['name']))return;const _0x4e40e1=_0x1a34a7['model'];for(const _0x1b83b4 of _0x115b1d['markerRange']['getItems']()){if(!_0x1b83b4['is']('element','softBreak'))continue;const _0x1ca741='deletion'==_0x115b1d['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x19117d}=_0x4d6a7e['_splitMarkerName'](_0x115b1d['markerName']),_0x4cb4fc=_0x55e0f4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1ca741,'data-author-id':_0x19117d}),_0x546b5c=_0x55e0f4['mapper']['toViewPosition'](_0x4e40e1['createPositionBefore'](_0x1b83b4));_0xd44ccf&&_0x4d6a7e['activeMarkers']['includes'](_0x115b1d['markerName'])&&_0x55e0f4['writer']['addClass']('ck-suggestion-marker--active',_0x4cb4fc),_0x55e0f4['writer']['insert'](_0x546b5c,_0x4cb4fc),_0x55e0f4['mapper']['bindElementToMarker'](_0x4cb4fc,_0x115b1d['markerName']);}};}class At extends _0x4ead4a{['afterInit'](){const _0x1dcb70=this['editor'],_0x3acc79=_0x1dcb70['model'],_0x433f55=_0x1dcb70['locale'];if(!_0x1dcb70['plugins']['has']('StandardEditingModeEditing'))return;const _0x39808e=_0x1dcb70['plugins']['get']('TrackChangesEditing'),_0x356209='restrictedEditingException',_0x1d72d7=_0x1dcb70['commands']['get'](_0x356209);_0x39808e['enableCommand'](_0x356209,(_0x1b5712,_0x2bfca6={})=>{const _0x2378e2=_0x3acc79['document']['selection'];if(_0x2378e2['isCollapsed'])return void _0x1b5712(_0x2bfca6);const _0x1eb1e5=void 0x0!==_0x2bfca6['forceValue']?_0x2bfca6['forceValue']:!_0x1d72d7['value'];_0x3acc79['change'](()=>{const _0x4ed82b=Array['from'](_0x2378e2['getRanges']());for(const _0x137963 of _0x4ed82b){const _0x386a7b=_0x1eb1e5?[_0x137963]:io(_0x356209,_0x137963,_0x3acc79);for(const _0x2d459b of _0x386a7b)_0x39808e['markInlineFormat'](_0x2d459b,{'commandName':_0x356209,'commandParams':[{'forceValue':_0x1eb1e5}]});}});}),_0x39808e['descriptionFactory']['registerDescriptionCallback'](_0x5e7882=>{if('formatBlock'!=_0x5e7882['type']&&'formatInline'!=_0x5e7882['type'])return;const {data:_0x241c95}=_0x5e7882;return _0x241c95&&_0x241c95['commandName']==_0x356209?_0x241c95['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x433f55,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x433f55,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x4ead4a{['afterInit'](){const _0x4d6e3d=this['editor'];if(!_0x4d6e3d['plugins']['has']('Style')||!_0x4d6e3d['plugins']['has']('DataSchema'))return;const _0x4e69d3=_0x4d6e3d['plugins']['get']('TrackChangesEditing'),_0x5de87c=_0x4d6e3d['locale'],_0x1541cb=_0x4d6e3d['config']['get']('style')||{},_0x66236=_0x4d6e3d['plugins']['get']('GeneralHtmlSupport'),_0x932a8e=_0x4d6e3d['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4d6e3d['plugins']['get']('DataSchema'),_0x1541cb['definitions']);_0x4e69d3['enableDefaultAttributesIntegration']('style');const _0x7b832a=new Set();for(const _0x55b0fe of _0x932a8e['block']){const _0x493ec3=_0x66236['getGhsAttributeNameForElement'](_0x55b0fe['element']);_0x7b832a['add'](_0x493ec3);}const _0x42a8df=new Set();for(const _0x18b44f of _0x932a8e['inline']){const _0x2c7cbe=_0x66236['getGhsAttributeNameForElement'](_0x18b44f['element']);_0x42a8df['add'](_0x2c7cbe);for(const _0x2e4d31 of _0x18b44f['ghsAttributes'])_0x42a8df['add'](_0x2e4d31);}for(const _0xba1d5 of _0x7b832a)_0x4e69d3['registerBlockAttribute'](_0xba1d5),_0x4e69d3['descriptionFactory']['registerAttributeLabel'](_0xba1d5,o(_0x5de87c,'FORMAT_STYLE'));for(const _0x1c1cf7 of _0x42a8df)_0x4e69d3['registerInlineAttribute'](_0x1c1cf7),_0x4e69d3['descriptionFactory']['registerAttributeLabel'](_0x1c1cf7,o(_0x5de87c,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2eaf07=this['editor'],_0x34e53f=_0x2eaf07['locale'];_0x2eaf07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e6c7b=>{if('formatBlock'!=_0x4e6c7b['type']&&'formatInline'!=_0x4e6c7b['type'])return;const {data:_0x4e183d}=_0x4e6c7b;return _0x4e183d&&'style'===_0x4e183d['commandName']?_0x4e183d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x34e53f,'*Set\x20format:*\x20%0',_0x4e183d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x34e53f,'*Remove\x20format:*\x20%0',_0x4e183d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x4ead4a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5c45c4){super(_0x5c45c4),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x8b30e1=this['editor'],_0x2d616b=_0x8b30e1['model']['document']['selection'];if(!_0x8b30e1['plugins']['has']('TableEditing'))return;const _0x327f7a=_0x8b30e1['locale'],_0x1d4a64=_0x8b30e1['plugins']['get']('TrackChangesEditing'),_0x4e3447=_0x8b30e1['plugins']['get']('TableUtils');_0x1d4a64['descriptionFactory']['registerElementLabel']('table',_0x4ebb97=>o(_0x327f7a,'ELEMENT_TABLE',_0x4ebb97)),this['_setupColumnsRowsFixing'](),_0x1d4a64['enableCommand']('insertTable'),_0x1d4a64['enableCommand']('selectTableRow'),_0x1d4a64['enableCommand']('selectTableColumn');for(const _0x9d9abb of['insertTableRowAbove','insertTableRowBelow']){const _0x544421=_0x8b30e1['commands']['get'](_0x9d9abb);_0x1d4a64['enableCommand'](_0x9d9abb,_0x590dff=>{_0x8b30e1['model']['change'](_0x190e8d=>{_0x590dff();const _0x49f4bc='above'===_0x544421['order'],_0x3b66e5=_0x4e3447['getSelectionAffectedTableCells'](_0x2d616b),_0x57cbe5=_0x4e3447['getRowIndexes'](_0x3b66e5),_0x37f726=_0x49f4bc?_0x57cbe5['first']-0x1:_0x57cbe5['last']+0x1,_0x2a5844=_0x3b66e5[0x0]['findAncestor']('table'),_0x59ade6=_0x4e3447['createTableWalker'](_0x2a5844,{'startRow':_0x37f726,'endRow':_0x37f726}),_0x1bf172=Array['from'](_0x59ade6)['map'](_0x70cad0=>_0x190e8d['createRangeOn'](_0x70cad0['cell']));_0x1d4a64['markMultiRangeInsertion'](_0x1bf172,'tableRow');});});}for(const _0x446291 of['insertTableColumnLeft','insertTableColumnRight']){const _0x316e83=_0x8b30e1['commands']['get'](_0x446291);_0x1d4a64['enableCommand'](_0x446291,_0x35fd92=>{_0x8b30e1['model']['change'](_0x18fb74=>{_0x35fd92();const _0x3bd767='left'===_0x316e83['order'],_0x40ecb7=_0x4e3447['getSelectionAffectedTableCells'](_0x2d616b),_0x5d19d5=_0x4e3447['getColumnIndexes'](_0x40ecb7),_0x5dfd4d=_0x3bd767?_0x5d19d5['first']-0x1:_0x5d19d5['last']+0x1,_0x104eb3=_0x40ecb7[0x0]['findAncestor']('table'),_0x167bbf=_0x4e3447['createTableWalker'](_0x104eb3,{'startRow':0x0,'column':_0x5dfd4d,'includeAllSlots':!0x1}),_0x477fd6=Array['from'](_0x167bbf)['map'](_0x3c0b27=>_0x18fb74['createRangeOn'](_0x3c0b27['cell']));_0x1d4a64['markMultiRangeInsertion'](_0x477fd6,'tableColumn');});});}for(const _0x4b4623 of['removeTableRow','removeTableColumn']){const _0x4b9450=_0x4b4623['substr'](0xb),_0x185d65=_0x4b9450['toLowerCase'](),_0x26b784=_0x185d65['substr'](0x0,0x3)+'span',_0x59b826='table'+_0x4b9450,_0x2a5b6e='min'+_0x4b9450,_0x58cc76='max'+_0x4b9450;_0x1d4a64['enableCommand'](_0x4b4623,()=>{_0x8b30e1['model']['change'](_0x3c6e2c=>{const _0x5ceda6=_0x4e3447['getSelectionAffectedTableCells'](_0x2d616b),_0x3c26bb=_0x5ceda6[0x0]['findAncestor']('table');let _0x2cc722;if('removeTableRow'==_0x4b4623){const _0xc15e77=_0x4e3447['getRowIndexes'](_0x5ceda6);_0x2cc722={'startRow':_0xc15e77['first'],'endRow':_0xc15e77['last'],'includeAllSlots':!0x0};}else{const _0x1db0a1=_0x4e3447['getColumnIndexes'](_0x5ceda6);_0x2cc722={'startColumn':_0x1db0a1['first'],'endColumn':_0x1db0a1['last'],'includeAllSlots':!0x0};}const _0x5b1819=_0x4e3447['createTableWalker'](_0x3c26bb,_0x2cc722),_0x3d2906=Array['from'](_0x5b1819)['map'](({cell:_0x12c3c6})=>_0x12c3c6),_0x5cdb47=Re(_0x3d2906['filter'](_0x56f3cb=>_0x56f3cb['hasAttribute'](_0x26b784))),_0x8b62ab=Re(_0x3d2906['filter'](_0x5300a4=>!_0x5300a4['hasAttribute'](_0x26b784)))['map'](_0x397f86=>_0x3c6e2c['createRangeOn'](_0x397f86)),_0x412702=_0x1d4a64['markMultiRangeDeletion'](_0x8b62ab,_0x59b826);if(_0x412702&&('tableRow'==_0x412702['subType']||'tableColumn'==_0x412702['subType'])){const _0x36e796=this['_getSuggestionCoords'](_0x412702);for(const _0x2d16dd of _0x5cdb47){const _0x39d832=_0x3c6e2c['createRangeOn'](_0x2d16dd),_0x2a1474=_0x4e3447['getCellLocation'](_0x2d16dd),_0x304774=_0x2d16dd['getAttribute'](_0x26b784)-0x1,_0x2febc3=_0x36e796[_0x2a5b6e],_0x5ae249=_0x36e796[_0x58cc76];_0x2febc3<=_0x2a1474[_0x185d65]&&_0x2a1474[_0x185d65]+_0x304774<=_0x5ae249&&_0x412702['addRange'](_0x39d832);}}});});}function _0x45913b(_0x531dbf){const _0x3b11b9=Array['from'](_0x2d616b['getRanges']())['map'](_0x5c5365=>_0x42c1a5['fromRange'](_0x5c5365));_0x8b30e1['model']['change'](_0x3f1479=>{const _0x2b4968=_0x3f1479['batch'];_0x531dbf=_0x531dbf['filter'](_0x4f947b=>'$graveyard'!=_0x4f947b['root']['rootName']),_0x3f1479['setSelection'](_0x531dbf),_0x8b30e1['commands']['get']('removeTableRow')['refresh'](),_0x8b30e1['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x8b30e1['model']['enqueueChange'](()=>{_0x8b30e1['model']['enqueueChange'](_0x2b4968,_0xfbb3f=>{const _0x4c92d1=_0x3b11b9['filter'](_0x2ab68e=>'$graveyard'!=_0x2ab68e['root']['rootName']);_0x4c92d1['length']>0x0&&_0xfbb3f['setSelection'](_0x4c92d1);for(const _0x974d0a of _0x3b11b9)_0x974d0a['detach']();});});});}function _0x21101e(_0x484528){_0x8b30e1['model']['change'](_0x329a34=>{const _0x4c08b7=Array['from'](_0x2d616b['getRanges']())['map'](_0x3c2d83=>_0x42c1a5['fromRange'](_0x3c2d83)),_0x2b5f78=[];for(const _0x1be42e of _0x484528)for(const _0x13cdec of _0x1be42e['getItems']({'shallow':!0x0}))_0x2b5f78['push'](_0x13cdec);for(const _0x41d20f of _0x2b5f78)'$graveyard'!=_0x41d20f['root']['rootName']&&(_0x329a34['setSelection'](_0x329a34['createPositionAt'](_0x41d20f,0x0)),_0x8b30e1['commands']['get']('removeTableColumn')['refresh'](),_0x8b30e1['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1dbfba=_0x4c08b7['filter'](_0x5695b9=>'$graveyard'!=_0x5695b9['root']['rootName']);_0x1dbfba['length']>0x0&&_0x329a34['setSelection'](_0x1dbfba);for(const _0x5fd62d of _0x4c08b7)_0x5fd62d['detach']();});}function _0x1a1982(_0x21e6d0,_0x599bef){return _0x599bef['every'](_0x5cca42=>_0x21e6d0['some'](_0x5122ed=>_0x5122ed['end']['isEqual'](_0x5cca42['start'])||_0x5cca42['end']['isEqual'](_0x5122ed['start'])));}function _0x4f29e5(_0x44dcdf,_0x2bb1df){return!_0x44dcdf['some'](_0x1d9ca2=>_0x2bb1df['some'](_0x2d2a5a=>_0x1d9ca2['isIntersecting'](_0x2d2a5a)))&&_0x44dcdf['some'](_0x110e95=>_0x2bb1df['some'](_0xc497b=>_0x110e95['end']['isTouching'](_0xc497b['start'])));}_0x8b30e1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd21bee,_0xb0822c,_0x24ddfc)=>{if(!_0x24ddfc['options']['showSuggestionHighlights'])return;const _0x18dc74=_0xb0822c['item'];if(!_0x18dc74)return;const _0x34171d=_0x24ddfc['mapper']['toViewElement'](_0x18dc74);function _0x397d53(_0x3d521f){return Array['isArray'](_0x3d521f)?_0x3d521f:[_0x3d521f];}_0x34171d&&'tableCell'===_0x18dc74['name']&&_0x347c5c(_0x34171d,_0x24ddfc['writer'],(_0x44c700,_0x536bfe,_0x182865)=>_0x182865['addClass'](_0x397d53(_0x536bfe['classes']),_0x44c700),(_0xe89a7c,_0xf62e4d,_0x254c8e)=>_0x254c8e['removeClass'](_0x397d53(_0xf62e4d['classes']),_0xe89a7c));},{'priority':'highest'}),_0x1d4a64['descriptionFactory']['registerDescriptionCallback'](_0x63d7b9=>{if('insertion'!=_0x63d7b9['type']&&'deletion'!=_0x63d7b9['type'])return;const _0x1ec6c3=_0x63d7b9['getContainedElement']();if(null!=_0x1ec6c3&&_0x1ec6c3['is']('element','table')){if('insertion'==_0x63d7b9['type']){const _0x2d086b=_0x63d7b9['getItems']()['filter'](_0x23e776=>_0x23e776['is']('$textProxy'))['map'](_0x563cfa=>_0x563cfa['data']);if(_0x2d086b['length'])return{'type':'insertion','content':o(_0x327f7a,'*Insert:*\x20%0',o(_0x327f7a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2d086b['join']('\x20')+'\x22'))};}if('deletion'==_0x63d7b9['type']){const _0x76b050=_0x63d7b9['getItems']()['filter'](_0x396c94=>_0x396c94['is']('$textProxy'))['map'](_0x4b8a5=>_0x4b8a5['data']);if(_0x76b050['length'])return{'type':'deletion','content':o(_0x327f7a,'*Remove:*\x20%0',o(_0x327f7a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x76b050['join']('\x20')+'\x22'))};}}}),_0x1d4a64['descriptionFactory']['registerDescriptionCallback'](_0x26e52c=>{if('tableRow'==_0x26e52c['subType']){const _0x212cb3=_0x26e52c['getItems']()['filter'](_0xd7ef96=>_0xd7ef96['is']('$textProxy'))['map'](_0x4a0543=>_0x4a0543['data']),_0x29719d=this['_getSuggestionCoords'](_0x26e52c),_0x35f972=_0x29719d['maxRow']-_0x29719d['minRow']+0x1;if('insertion'==_0x26e52c['type'])return _0x212cb3['length']?{'type':'insertion','content':o(_0x327f7a,'*Insert:*\x20%0',o(_0x327f7a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x35f972,'\x22'+_0x212cb3['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x327f7a,'*Insert:*\x20%0',o(_0x327f7a,'ELEMENT_TABLE_ROW',_0x35f972))};if('deletion'==_0x26e52c['type'])return _0x212cb3['length']?{'type':'deletion','content':o(_0x327f7a,'*Remove:*\x20%0',o(_0x327f7a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x35f972,'\x22'+_0x212cb3['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x327f7a,'*Remove:*\x20%0',o(_0x327f7a,'ELEMENT_TABLE_ROW',_0x35f972))};}if('tableColumn'==_0x26e52c['subType']){const _0x444226=_0x26e52c['getItems']()['filter'](_0x3f1fd4=>_0x3f1fd4['is']('$textProxy'))['map'](_0x5f3d8a=>_0x5f3d8a['data']),_0x4a18e5=this['_getSuggestionCoords'](_0x26e52c),_0x53f11d=_0x4a18e5['maxColumn']-_0x4a18e5['minColumn']+0x1;if('insertion'==_0x26e52c['type'])return _0x444226['length']?{'type':'insertion','content':o(_0x327f7a,'*Insert:*\x20%0',o(_0x327f7a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x53f11d,'\x22'+_0x444226['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x327f7a,'*Insert:*\x20%0',o(_0x327f7a,'ELEMENT_TABLE_COLUMN',_0x53f11d))};if('deletion'==_0x26e52c['type'])return _0x444226['length']?{'type':'deletion','content':o(_0x327f7a,'*Remove:*\x20%0',o(_0x327f7a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x53f11d,'\x22'+_0x444226['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x327f7a,'*Remove:*\x20%0',o(_0x327f7a,'ELEMENT_TABLE_COLUMN',_0x53f11d))};}}),_0x1d4a64['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x45913b),_0x1d4a64['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x45913b),_0x1d4a64['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x21101e),_0x1d4a64['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x21101e),_0x1d4a64['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1a1982),_0x1d4a64['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1a1982),_0x1d4a64['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4f29e5),_0x1d4a64['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4f29e5);}['_acceptFormatSuggestionCallbackFactory'](){const _0x178d8f=this['editor'],_0x4b8fe5=_0x178d8f['model']['document']['selection'];return(_0x1d1f76,_0x167b95)=>{_0x178d8f['model']['change'](_0x1c80e0=>{const {commandName:_0x5288e0,commandParams:_0x7b66ca}=_0x167b95;let _0x25dd42=_0x1d1f76[0x0]['end']['nodeBefore'];_0x7b66ca&&_0x7b66ca[0x0]&&!0x1===_0x7b66ca[0x0]['forceValue']&&(_0x25dd42=_0x1d1f76[0x0]['start']['nodeAfter']);const _0x10c7ae=_0x1c80e0['createRangeIn'](_0x25dd42);if('$graveyard'==_0x10c7ae['root']['rootName'])return;const _0x145f05=Array['from'](_0x4b8fe5['getRanges']())['map'](_0x2c2319=>_0x42c1a5['fromRange'](_0x2c2319));_0x1c80e0['setSelection'](_0x10c7ae),_0x178d8f['commands']['get'](_0x5288e0)['refresh'](),_0x7b66ca['push']({'forceDefaultExecution':!0x0}),_0x178d8f['execute'](_0x5288e0,..._0x7b66ca);const _0x3b667a=_0x145f05['filter'](_0x26a589=>'$graveyard'!=_0x26a589['root']['rootName']);_0x3b667a['length']>0x0&&_0x1c80e0['setSelection'](_0x3b667a);for(const _0x60709c of _0x145f05)_0x60709c['detach']();});};}['_getCoordsForCells'](_0x34fcd){const _0x343dae=this['editor']['plugins']['get']('TableUtils');let _0x5c2899=Number['MAX_SAFE_INTEGER'],_0x3044c9=Number['MIN_SAFE_INTEGER'],_0x376a4e=Number['MAX_SAFE_INTEGER'],_0x5a0268=Number['MIN_SAFE_INTEGER'];for(const _0x1bf26f of _0x34fcd){if('$graveyard'==_0x1bf26f['root']['rootName'])continue;const {row:_0x55767a,column:_0x4e4805}=_0x343dae['getCellLocation'](_0x1bf26f),_0x19193f=_0x1bf26f['hasAttribute']('rowspan')?_0x1bf26f['getAttribute']('rowspan')-0x1:0x0,_0x33b007=_0x1bf26f['hasAttribute']('colspan')?_0x1bf26f['getAttribute']('colspan')-0x1:0x0;_0x5c2899=_0x55767a<_0x5c2899?_0x55767a:_0x5c2899,_0x3044c9=_0x55767a+_0x19193f>_0x3044c9?_0x55767a+_0x19193f:_0x3044c9,_0x376a4e=_0x4e4805<_0x376a4e?_0x4e4805:_0x376a4e,_0x5a0268=_0x4e4805+_0x33b007>_0x5a0268?_0x4e4805+_0x33b007:_0x5a0268;}return{'minRow':_0x5c2899,'maxRow':_0x3044c9,'minColumn':_0x376a4e,'maxColumn':_0x5a0268};}['_setupColumnsRowsFixing'](){const _0x4f9018=this['editor'],_0x22371d=_0x4f9018['plugins']['get']('TrackChangesEditing'),_0x16c1ff=_0x4f9018['plugins']['get']('TableUtils');_0x4f9018['model']['document']['on']('change:data',()=>{const _0x43f780=Array['from'](_0x4f9018['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f209b,data:_0x3c91ff}of _0x43f780){const {group:_0x33bb9e,id:_0x24409e,subType:_0x499e71}=_0x22371d['_splitMarkerName'](_0x3f209b);if('suggestion'!=_0x33bb9e)continue;if(null!=_0x3c91ff['oldRange'])continue;const _0x5ace3a=_0x22371d['getSuggestion'](_0x24409e);this['_tablePostFixingSubtypes']['includes'](_0x499e71)&&this['_tableSuggestions']['add'](_0x5ace3a);}},{'priority':'low'});const _0x14934e=(_0x3ada26,_0x197891)=>{let _0x121f7a=!0x1;const _0x3bd63a=_0x197891['createRangeOn'](_0x3ada26),_0x4ccd57=_0x3ada26['findAncestor']('table'),_0xbd644b=_0x16c1ff['getCellLocation'](_0x3ada26);for(const _0x21680c of this['_tableSuggestions']){const _0x2eefa4=_0x21680c['subType'],_0x34ebca=_0x2eefa4['startsWith']('tablePaste'),_0x409340=_0x2eefa4['substr'](_0x34ebca?0xa:0x5),_0x461d88=_0x409340['toLowerCase'](),_0x456510=_0x461d88['substr'](0x0,0x3)+'span',_0x4b1533='min'+_0x409340,_0x1aa5fe='max'+_0x409340;if(!_0x21680c['isInContent'])continue;if(_0x4ccd57!=_0x21680c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x21680c['isIntersectingWithRange'](_0x3bd63a))continue;const _0x38116d=_0x3ada26['hasAttribute'](_0x456510)?_0x3ada26['getAttribute'](_0x456510)-0x1:0x0,_0xe0921b=this['_getSuggestionCoords'](_0x21680c),_0x59d867=_0xe0921b[_0x4b1533],_0x131837=_0xe0921b[_0x1aa5fe];_0x59d867<=_0xbd644b[_0x461d88]&&_0xbd644b[_0x461d88]+_0x38116d<=_0x131837&&(_0x21680c['addRange'](_0x3bd63a),_0x121f7a=!0x0);}return _0x121f7a;};_0x4f9018['model']['document']['registerPostFixer'](_0x38d301=>{let _0x435db5=!0x1;for(const _0xa28a77 of _0x4f9018['model']['document']['differ']['getChanges']())if('insert'==_0xa28a77['type']){if('tableRow'==_0xa28a77['name']){for(const _0x245bc5 of _0xa28a77['position']['nodeAfter']['getChildren']())_0x435db5=_0x435db5||_0x14934e(_0x245bc5,_0x38d301);}else'tableCell'==_0xa28a77['name']&&(_0x435db5=_0x435db5||_0x14934e(_0xa28a77['position']['nodeAfter'],_0x38d301));}return _0x435db5;});}['_getSuggestionCoords'](_0x4db885){return this['_getCoordsForCells'](_0x4db885['getRanges']()['map'](_0x2179c1=>_0x2179c1['start']['nodeAfter']));}}function Re(_0x3e83d){return Array['from'](new Set(_0x3e83d)['values']());}class _t extends _0x4ead4a{static get['requires'](){return[vt];}['afterInit'](){const _0x2eba9e=this['editor'],_0x5041e1=_0x2eba9e['model']['document']['selection'],_0x816793=_0x2eba9e['locale'];if(!_0x2eba9e['plugins']['has']('TableEditing'))return;const _0x28631f=_0x2eba9e['plugins']['get']('TrackChangesEditing'),_0x2fa097=_0x2eba9e['plugins']['get']('TableUtils'),_0xd8f277=_0x2eba9e['plugins']['get'](vt);_0xd8f277['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x28631f['enableCommand']('mergeTableCells',()=>{const _0x3a6137=_0x2fa097['getSelectionAffectedTableCells'](_0x2eba9e['model']['document']['selection']);_0x2eba9e['model']['change'](()=>{_0x28631f['markMultiRangeBlockFormat'](_0x3a6137,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2eba9e['commands']['get']('mergeTableCells')['on']('execute',(_0x3e5ee9,_0x51443f)=>{_0x2eba9e['commands']['get']('trackChanges')['value']&&(_0x51443f['length']>0x0&&_0x51443f[_0x51443f['length']-0x1]&&_0x51443f[_0x51443f['length']-0x1]['forceDefaultExecution']||_0x28631f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3e5ee9['stop']());},{'priority':'highest'});for(const _0x48e010 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1c4481=_0x2eba9e['commands']['get'](_0x48e010);_0x28631f['enableCommand'](_0x48e010,()=>{const _0x2ccf42=_0x2eba9e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xa394cf=>_0xa394cf['is']('element','tableCell')),_0x1700cb=_0x1c4481['value'];_0x2eba9e['model']['change'](()=>{_0x28631f['markMultiRangeBlockFormat']([_0x2ccf42,_0x1700cb],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x437913 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x597b3c=_0x2eba9e['commands']['get'](_0x437913);_0x28631f['enableCommand'](_0x437913,()=>{const _0x509732=_0x2fa097['getSelectionAffectedTableCells'](_0x2eba9e['model']['document']['selection'])[0x0],_0x49d53c=_0x509732['findAncestor']('table'),{column:_0x1e03c5,row:_0x27bbf0}=_0x2fa097['getCellLocation'](_0x509732);let _0x9b8a4c=[];if('horizontally'==_0x597b3c['direction']){const _0x3067b2=_0x2fa097['createTableWalker'](_0x49d53c,{'startRow':_0x27bbf0,'endRow':_0x27bbf0,'includeAllSlots':!0x0});_0x9b8a4c=Array['from'](_0x3067b2)['map'](_0x5540d1=>_0x5540d1['cell']);}else{const _0x1b258a=_0x2fa097['createTableWalker'](_0x49d53c,{'column':_0x1e03c5,'includeAllSlots':!0x0});_0x9b8a4c=Array['from'](_0x1b258a)['map'](_0x4e4f13=>_0x4e4f13['cell']);}_0x2eba9e['model']['change'](_0x48a1a2=>{_0x28631f['markBlockFormat'](_0x48a1a2['createRangeOn'](_0x509732),{'commandName':_0x437913,'commandParams':[]},_0x9b8a4c,_0x437913);});});}_0x28631f['descriptionFactory']['registerDescriptionCallback'](_0x439347=>{if('formatBlock'!=_0x439347['type']&&'formatInline'!=_0x439347['type'])return;const {data:_0x272634}=_0x439347;return _0x272634&&'mergeTableCells'==_0x272634['commandName']?{'type':'format','content':o(_0x816793,'*Merge\x20cells*')}:void 0x0;}),_0x28631f['descriptionFactory']['registerDescriptionCallback'](_0x2fe67d=>{if('formatBlock'!=_0x2fe67d['type']&&'formatInline'!=_0x2fe67d['type'])return;const {data:_0x4d21d4}=_0x2fe67d;return _0x4d21d4?'splitTableCellVertically'==_0x4d21d4['commandName']?{'type':'format','content':o(_0x816793,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4d21d4['commandName']?{'type':'format','content':o(_0x816793,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2e1927=_0xd8f277['_acceptFormatSuggestionCallbackFactory']();for(const _0x484d33 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x28631f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x484d33,'accept',_0x2e1927);for(const _0x17166e of['splitTableCellVertically','splitTableCellHorizontally'])_0x28631f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x17166e,'accept',_0x2e1927);_0x28631f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x358195=>{_0x2eba9e['model']['change'](_0x5673f2=>{const _0x263eda=Array['from'](_0x5041e1['getRanges']())['map'](_0x151423=>_0x42c1a5['fromRange'](_0x151423));_0x5673f2['setSelection'](_0x358195),_0x2eba9e['commands']['get']('mergeTableCells')['refresh'](),_0x2eba9e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1adf72=_0x263eda['filter'](_0xc714d8=>'$graveyard'!=_0xc714d8['root']['rootName']);_0x1adf72['length']>0x0&&_0x5673f2['setSelection'](_0x1adf72);for(const _0x2fe4de of _0x263eda)_0x2fe4de['detach']();});});for(const _0x5f576a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x431dca=_0x2eba9e['commands']['get'](_0x5f576a);_0x431dca['on']('set:isEnabled',(_0x2f278e,_0x300df0,_0x1a59e8)=>{if(_0x1a59e8){const _0x32a88f=_0x2eba9e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3b3d92=>_0x3b3d92['is']('element','tableCell'));this['_areMergableCells'](_0x431dca['value'],_0x32a88f)||(_0x2f278e['return']=!0x1,_0x2f278e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1c57b6=this['editor']['commands']['get']('mergeTableCells'),_0x22ff5a=this['editor']['plugins']['get']('TableUtils');if(!_0x1c57b6['isEnabled'])return!0x1;const _0xe75008=_0x22ff5a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5f1ba5 of _0xe75008)for(const _0x21c9e3 of _0xe75008)if(_0x5f1ba5!=_0x21c9e3&&!this['_areMergableCells'](_0x5f1ba5,_0x21c9e3))return!0x1;return!0x0;}['_areMergableCells'](_0x5d8986,_0x189727){const _0x1acfbf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cd5bc=this['editor']['model']['createRangeOn'](_0x5d8986),_0x2d1c1a=this['editor']['model']['createRangeOn'](_0x189727),_0x5919a8=new Set(),_0x22982f=new Set();for(const _0x377d0a of _0x1acfbf['getSuggestions']())if(('insertion'==_0x377d0a['type']||'deletion'==_0x377d0a['type']||'mergeTableCells'==_0x377d0a['subType'])&&_0x377d0a['isInContent']){for(const _0x49ef82 of _0x377d0a['getRanges']())_0x49ef82['containsRange'](_0x4cd5bc,!0x0)&&_0x5919a8['add'](_0x377d0a['type']+':'+_0x377d0a['author']['id']),_0x49ef82['containsRange'](_0x2d1c1a,!0x0)&&_0x22982f['add'](_0x377d0a['type']+':'+_0x377d0a['author']['id']);}if(_0x5919a8['size']!=_0x22982f['size'])return!0x1;for(const _0x535b1f of _0x5919a8)if(!_0x22982f['has'](_0x535b1f))return!0x1;return!0x0;}}class Ct extends _0x4ead4a{static get['requires'](){return[vt];}['afterInit'](){const _0x10471f=this['editor'];if(!_0x10471f['plugins']['has']('TableEditing'))return;const _0x3833f4=_0x10471f['locale'],_0x1c6a62=_0x10471f['plugins']['get']('TrackChangesEditing');_0x1c6a62['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1c6a62['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1c6a62['registerBlockAttribute']('headingRows'),_0x1c6a62['registerBlockAttribute']('headingColumns'),_0x1c6a62['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3833f4,'FORMAT_HEADER_ROW')),_0x1c6a62['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3833f4,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x12aff1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cc939=this['editor']['plugins']['get']('TableUtils'),_0x55e32c=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x3bc4bf({showActiveMarker:_0x4ad926=!0x0,setDataAttribute:_0x1f951a=!0x0}={}){return(_0x119f62,_0x1b96f1,_0x54a340)=>{const {type:_0x46a427,id:_0x13c9ed}=_0x12aff1['_splitMarkerName'](_0x1b96f1['markerName']),_0x16e4a3=_0x12aff1['getSuggestion'](_0x13c9ed),_0x3bf8e8=_0x16e4a3['data'];if('formatBlock'!=_0x16e4a3['type']||!_0x3bf8e8||'setTableColumnHeader'!=_0x3bf8e8['commandName'])return;if(_0x1b96f1['item'])return void _0x119f62['stop']();if(!_0x54a340['consumable']['consume'](_0x1b96f1['markerRange'],_0x119f62['name']))return;const _0x292926=_0x1b96f1['markerRange']['start']['nodeAfter'],_0x5b697a=_0x1b96f1['markerRange']['end']['nodeBefore'],_0x38673e=_0x292926['parent']['parent'],{column:_0x4201a1}=_0x4cc939['getCellLocation'](_0x292926),{column:_0x5e0dca}=_0x4cc939['getCellLocation'](_0x5b697a);for(let _0x2659b5=_0x4201a1;_0x2659b5<=_0x5e0dca;_0x2659b5++){const _0x15aff3=_0x4cc939['createTableWalker'](_0x38673e,{'column':_0x2659b5,'includeAllSlots':!0x1});for(const _0xfee184 of _0x15aff3){const _0xc09245=_0xfee184['cell'],_0x43fcc4=_0x54a340['mapper']['toViewElement'](_0xc09245);_0x54a340['writer']['addClass']('ck-suggestion-marker-'+_0x46a427,_0x43fcc4),_0x1f951a&&_0x54a340['writer']['setAttribute']('data-suggestion',_0x13c9ed,_0x43fcc4),_0x54a340['mapper']['bindElementToMarker'](_0x43fcc4,_0x1b96f1['markerName']),_0x4ad926&&(_0x12aff1['activeMarkers']['includes'](_0x1b96f1['markerName'])?_0x54a340['writer']['addClass']('ck-suggestion-marker--active',_0x43fcc4):_0x54a340['writer']['removeClass']('ck-suggestion-marker--active',_0x43fcc4));}}};}_0x12aff1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x55e32c),_0x12aff1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x55e32c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3bc4bf(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x11e46b,_0x54f31d,_0x1547d8)=>{_0x1547d8['options']['showSuggestionHighlights']&&_0x3bc4bf({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x11e46b,_0x54f31d,_0x1547d8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x589f8a,_0x5251a7,_0xafab16)=>{const {type:_0x2f7852,id:_0x59947d}=_0x12aff1['_splitMarkerName'](_0x5251a7['markerName']),_0xfd3986=_0x12aff1['getSuggestion'](_0x59947d),_0x9f7b7d=_0xfd3986['data'];if('formatBlock'!=_0xfd3986['type']||!_0x9f7b7d||'setTableColumnHeader'!=_0x9f7b7d['commandName'])return;const _0xc03f6c=_0xafab16['mapper']['markerNameToElements'](_0x5251a7['markerName']);if(_0xc03f6c){for(const _0xe39349 of _0xc03f6c)_0xafab16['writer']['removeClass']('ck-suggestion-marker-'+_0x2f7852,_0xe39349),_0xafab16['writer']['removeClass']('ck-suggestion-marker--active',_0xe39349),_0xafab16['writer']['removeAttribute']('data-suggestion',_0xe39349),_0xafab16['mapper']['unbindElementFromMarkerName'](_0xe39349,_0x5251a7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x585637=this['editor'],_0x378a7d=_0x585637['locale'];function _0x4d96c4(_0x3bac2f){return{'type':'format','content':o(_0x378a7d,'*Format:*\x20%0',_0x3bac2f)};}_0x585637['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44b856=>{if('formatBlock'!=_0x44b856['type'])return;const {data:_0x16a079}=_0x44b856;if(_0x16a079){if('setTableRowHeader'==_0x16a079['commandName']){const _0x1ab928=_0x16a079['commandParams'][0x0]['forceValue'];return _0x4d96c4(o(_0x378a7d,_0x1ab928?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x16a079['commandName']){const _0x29af58=_0x16a079['commandParams'][0x0]['forceValue'];return _0x4d96c4(o(_0x378a7d,_0x29af58?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x58e7b8=>[_0x58e7b8,null]));class Nt extends _0x4ead4a{static get['requires'](){return[vt];}['afterInit'](){const _0x5c23e8=this['editor'];if(!_0x5c23e8['plugins']['has']('TableClipboard'))return;const _0x5b6fe9=_0x5c23e8['plugins']['get']('TrackChangesEditing'),_0x76f7cf=_0x5c23e8['plugins']['get']('TableUtils'),_0x372080=_0x5c23e8['plugins']['get'](vt),_0x2bc600=_0x5c23e8['plugins']['get']('TableClipboard');_0x372080['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5c23e8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5c23e8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x159c29=null;_0x5c23e8['model']['on']('insertContent',(_0x684a6e,_0x422d70)=>{const [_0x59fa6d,_0x22365d]=_0x422d70,_0xf38a7f=_0x422d70[_0x422d70['length']-0x1];_0xf38a7f&&_0xf38a7f['forceDefaultExecution']||_0x5b6fe9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1bed21,_0xc6830b,_0x51f1b3,_0x2e3ec8,_0x413e88){if(_0xc6830b&&!_0xc6830b['is']('documentSelection'))return!0x1;const _0x5bc1da=_0x413e88['getTableIfOnlyTableInContent'](_0x1bed21,_0x51f1b3);if(!_0x5bc1da||!Ae(_0x5bc1da,void 0x0,_0x2e3ec8))return!0x1;const _0x5b133d=_0x2e3ec8['getSelectionAffectedTableCells'](_0x51f1b3['document']['selection']);if(!_0x5b133d['length'])return!0x1;const _0x24c418=_0x5b133d[0x0]['findAncestor']('table'),_0x164e12=_0x2e3ec8['getRowIndexes'](_0x5b133d),_0x51af34=_0x2e3ec8['getColumnIndexes'](_0x5b133d),_0x4e69ea={'startRow':_0x164e12['first'],'endRow':_0x164e12['last'],'startColumn':_0x51af34['first'],'endColumn':_0x51af34['last']};return 0x1==_0x5b133d['length']&&(_0x4e69ea['endRow']+=_0x2e3ec8['getRows'](_0x5bc1da)-0x1,_0x4e69ea['endColumn']+=_0x2e3ec8['getColumns'](_0x5bc1da)-0x1),Ae(_0x24c418,_0x4e69ea,_0x2e3ec8);}(_0x59fa6d,_0x22365d,_0x5c23e8['model'],_0x76f7cf,_0x2bc600)&&(_0x684a6e['stop'](),_0x159c29={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5c23e8['model']['change'](()=>{_0x5c23e8['model']['insertContent'](_0x422d70[0x0],_0x422d70[0x1],_0x422d70[0x2],{'forceDefaultExecution':!0x0});const _0x455017=_0x53896e(),{rowInsertionRanges:_0x429fe6,columnInsertionRanges:_0x3f6344,insertionRanges:_0x3ebe45,deletionRanges:_0x25318c,cells:_0x25f1e9}=_0x159c29;_0x429fe6['length']&&_0x5b6fe9['markMultiRangeInsertion'](_0x429fe6,'tablePasteRow',{'tablePasteChainId':_0x455017}),_0x3f6344['length']&&_0x5b6fe9['markMultiRangeInsertion'](_0x3f6344,'tablePasteColumn',{'tablePasteChainId':_0x455017}),_0x3ebe45['length']&&(_0x5b6fe9['markMultiRangeInsertion'](_0x3ebe45,'tablePaste',{'tablePasteChainId':_0x455017,'skipNestingCheck':!0x0}),_0x3ebe45['forEach'](_0x213827=>_0x213827['detach']?.())),_0x25318c['length']&&(_0x5b6fe9['markMultiRangeDeletion'](_0x25318c,'tablePaste',{'tablePasteChainId':_0x455017,'skipNestingCheck':!0x0}),_0x25318c['forEach'](_0x52e555=>_0x52e555['detach']?.()));const _0x2b99c5=_0x5b6fe9['markMultiRangeBlockFormat'](_0x25f1e9['map'](({element:_0x352aa6})=>_0x352aa6),{'formatGroupId':_0x53896e()},[],'tablePasteCell',{'tablePasteChainId':_0x455017});if(_0x2b99c5){const _0x40972b=_0x2b99c5['getMarkers'](),_0x4187a8=[];for(const {element:_0x2421f7,attributes:_0x1de622}of _0x25f1e9){if(!_0x1de622)continue;const _0x4374d2=_0x5c23e8['model']['createRangeOn'](_0x2421f7),_0x3d3368=_0x40972b['find'](_0x4c20fa=>_0x4c20fa['getRange']()['isEqual'](_0x4374d2));_0x3d3368&&_0x4187a8['push']([_0x3d3368['name'],_0x1de622]);}_0x4187a8['length']&&_0x2b99c5['setAttribute']('markerAttributes',Object['fromEntries'](_0x4187a8));}_0x159c29=null;}));},{'priority':_0x508f82['high']+0xa}),_0x5c23e8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2c73db,_0x560600)=>{const [_0x390d07,_0xf2b250,,_0x6ef45d]=_0x560600;if(!_0x159c29)return;_0x2c73db['stop']();const _0x2784b5=_0x390d07['cell'],_0x4b8dbb=_0xf2b250,_0x5333f4=je(_0x2784b5),_0x263c0d=je(_0x4b8dbb);_0x2c73db['return']=_0x2784b5;let _0x5a9056=null,_0x4f96e9=null;if(_0x263c0d||_0x5333f4){if(_0x5333f4&&!_0x263c0d){_0x6ef45d['remove'](_0x2784b5['getChild'](0x0));for(const _0x2bc0c5 of Array['from'](_0x4b8dbb['getChildren']()))_0x6ef45d['insert'](_0x2bc0c5,_0x2784b5,'end');const _0xaa77dd=_0x159c29['rowInsertionIndexes']['includes'](_0x390d07['row']),_0x4f53a3=_0x159c29['columnInsertionIndexes']['includes'](_0x390d07['column']);_0xaa77dd||_0x4f53a3||(_0x5a9056=_0x42c1a5['fromRange'](_0x6ef45d['createRangeIn'](_0x2784b5)));}else _0x263c0d&&!_0x5333f4&&(_0x4f96e9=_0x6ef45d['createRangeIn'](_0x2784b5));}else{const _0x43d9ab=_0x6ef45d['createElement']('tableCellSuggestion'),_0x3ddfd4=_0x6ef45d['createElement']('tableCellSuggestion');_0x6ef45d['wrap'](_0x6ef45d['createRangeIn'](_0x2784b5),_0x3ddfd4),_0x6ef45d['insert'](_0x43d9ab,_0x2784b5,0x0);for(const _0x44ba2b of Array['from'](_0x4b8dbb['getChildren']()))_0x6ef45d['insert'](_0x44ba2b,_0x43d9ab,'end');_0x5a9056=_0x42c1a5['fromRange'](_0x6ef45d['createRangeOn'](_0x43d9ab)),_0x4f96e9=_0x42c1a5['fromRange'](_0x6ef45d['createRangeOn'](_0x3ddfd4));}const _0x68cb84=Array['from'](_0x4b8dbb['getAttributes']())['filter'](([_0x5a95fb])=>we['includes'](_0x5a95fb));_0x159c29['cells']['push']({'element':_0x2784b5,'attributes':_0x68cb84['length']?Object['fromEntries'](_0x68cb84):null}),_0x5a9056&&_0x159c29['insertionRanges']['push'](_0x5a9056),_0x4f96e9&&_0x159c29['deletionRanges']['push'](_0x4f96e9);},{'priority':'high'}),_0x76f7cf['on']('insertColumns',(_0x51cecf,_0x404b17)=>{const [_0x192a04,_0x184e2c={}]=_0x404b17;if(!_0x159c29)return;const _0xc05fd8=_0x184e2c['at']||0x0,_0x485d9a=_0x184e2c['columns']||0x1;_0x159c29['columnInsertionIndexes']=new Array(_0x485d9a)['fill'](_0xc05fd8)['map']((_0x4ba04e,_0x271bb3)=>_0x4ba04e+_0x271bb3);for(const {cell:_0x7477fe}of _0x76f7cf['createTableWalker'](_0x192a04,{'startColumn':_0xc05fd8,'endColumn':_0xc05fd8+_0x485d9a-0x1}))_0x159c29['columnInsertionRanges']['push'](_0x5c23e8['model']['createRangeOn'](_0x7477fe));},{'priority':'low'}),_0x76f7cf['on']('insertRows',(_0x3ef4d6,_0x5f5242)=>{const [_0xba84db,_0x23e383={}]=_0x5f5242;if(!_0x159c29)return;const _0x51e931=_0x23e383['at']||0x0,_0x249323=_0x23e383['rows']||0x1;_0x159c29['rowInsertionIndexes']=new Array(_0x249323)['fill'](_0x51e931)['map']((_0x27d2cd,_0x592d1f)=>_0x27d2cd+_0x592d1f);for(const {cell:_0x16ec37}of _0x76f7cf['createTableWalker'](_0xba84db,{'startRow':_0x51e931,'endRow':_0x51e931+_0x249323-0x1}))_0x159c29['rowInsertionRanges']['push'](_0x5c23e8['model']['createRangeOn'](_0x16ec37));},{'priority':'low'}),_0x5b6fe9['descriptionFactory']['registerDescriptionCallback'](_0x395c28=>{if(_0x395c28['subType']&&_0x395c28['subType']['startsWith']('tablePaste'))return _0x395c28['previous']?{}:{'type':'insertion','content':o(_0x5c23e8['locale'],'*Replace\x20table\x20cells*')};});const _0x17b6e7=()=>!0x1;for(const _0x45d66f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5b6fe9['_suggestionFactory']['registerCustomCallback']('insertion',_0x45d66f,'join',_0x17b6e7),_0x5b6fe9['_suggestionFactory']['registerCustomCallback']('deletion',_0x45d66f,'join',_0x17b6e7),_0x5b6fe9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45d66f,'join',_0x17b6e7);_0x5b6fe9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x17b6e7),_0x5b6fe9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5c1c39,_0x49e5bf,_0x582cc2)=>{const _0x1a1524=_0x5c1c39['map'](_0x2aeb86=>_0x2aeb86['getContainedElement']())['filter'](_0x36e33c=>_0x36e33c),_0x562bcd=new Map(_0x1a1524['map'](_0x54ed87=>[_0x54ed87,null]));if(_0x159c29){for(const {element:_0x19d4c4,attributes:_0x448ecd}of _0x159c29['cells'])_0x448ecd&&_0x562bcd['set'](_0x19d4c4,_0x448ecd);}else{if(_0x582cc2&&_0x582cc2['markerAttributes'])for(const [_0x205ec4,_0x290fcc]of Object['entries'](_0x582cc2['markerAttributes'])){const _0x52bdf2=_0x5c23e8['model']['markers']['get'](_0x205ec4),_0x2665d6=_0x52bdf2?_0x52bdf2['getRange']()['getContainedElement']():null;_0x2665d6&&_0x562bcd['set'](_0x2665d6,_0x290fcc);}}_0x5c23e8['model']['change'](_0x15dee4=>{for(const [_0x5bd433,_0x31502b]of _0x562bcd)_0x15dee4['setAttributes']({...ve,..._0x31502b},_0x5bd433);});});const _0x2998e7=(_0x4e5fac,_0x5077fb)=>{_0x5b6fe9['_suggestionFactory']['registerCustomCallback'](_0x4e5fac,'tablePaste',_0x5077fb,(_0x231cc8,_0x5b7912,_0x4cac18)=>{_0x5c23e8['model']['change'](_0x5a29ab=>{const _0x2b6eec=[];for(const _0x5560c9 of _0x231cc8){const _0x48a066=_0x5560c9['start']['nodeAfter'];_0x48a066['is']('element','tableCellSuggestion')&&_0x2b6eec['push'](_0x48a066);}_0x5b6fe9['_suggestionFactory']['getSuggestionCallback'](_0x4e5fac,null,_0x5077fb)(_0x231cc8,_0x5b7912,_0x4cac18);for(const _0x5a1a48 of _0x2b6eec)'$graveyard'!=_0x5a1a48['root']['rootName']&&_0x5a29ab['unwrap'](_0x5a1a48);});});};_0x2998e7('insertion','accept'),_0x2998e7('insertion','discard'),_0x2998e7('deletion','accept'),_0x2998e7('deletion','discard'),_0x5b6fe9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1f584c=>{const _0x45b0b7=_0x1f584c['map'](_0x4c4ae3=>_0x4c4ae3['getContainedElement']()),_0x1a430d=_0x45b0b7[0x0]['findAncestor']('table'),{minRow:_0x37d374,maxRow:_0x7e1a55}=_0x372080['_getCoordsForCells'](_0x45b0b7);_0x76f7cf['removeRows'](_0x1a430d,{'at':_0x37d374,'rows':_0x7e1a55-_0x37d374+0x1});}),_0x5b6fe9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2693b1=>{const _0x17d0d1=_0x2693b1['map'](_0x59a838=>_0x59a838['getContainedElement']()),_0x3d8f5a=_0x17d0d1[0x0]['findAncestor']('table'),{minColumn:_0x5d64f8,maxColumn:_0x2cf6e7}=_0x372080['_getCoordsForCells'](_0x17d0d1);_0x76f7cf['removeColumns'](_0x3d8f5a,{'at':_0x5d64f8,'columns':_0x2cf6e7-_0x5d64f8+0x1});});const _0x508618=(_0x44421a,_0x1d5ea0)=>{if(!_0x1d5ea0['subType']||!_0x1d5ea0['subType']['startsWith']('tablePaste'))return;const _0x338dea=_0x1d5ea0['attributes']['tablePasteChainId'],_0x481882=_0x5b6fe9['getSuggestions']()['filter'](_0x5a9c65=>_0x5a9c65['isInContent']&&_0x5a9c65['attributes']&&_0x5a9c65['attributes']['tablePasteChainId']==_0x338dea);_0x481882['length']&&_0x1d5ea0['getAllAdjacentSuggestions']()['length']!=_0x481882['length']&&_0x481882['reduce']((_0xab8c15,_0x2eab03)=>(_0xab8c15['next']=_0x2eab03,_0x2eab03['previous']=_0xab8c15,_0x2eab03));};function _0x248af2(_0x34ee80,_0x7800c1=!0x0){const {id:_0xef35c1,authorId:_0x530818}=_0x5b6fe9['_splitMarkerName'](_0x34ee80['markerName']),_0x4e47d8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x483691=_0x5b6fe9['activeMarkers']['includes'](_0x34ee80['markerName']);return _0x483691&&_0x4e47d8['push']('ck-suggestion-marker--active'),{'classes':_0x4e47d8,'attributes':{'data-suggestion':_0xef35c1,'data-author-id':_0x530818},'priority':_0x483691&&_0x7800c1?0xbc2:0xbb8};}_0x5b6fe9['on']('suggestionLoaded',_0x508618,{'priority':'high'}),_0x5b6fe9['on']('suggestionUnloaded',_0x508618,{'priority':'high'}),_0x5c23e8['model']['document']['registerPostFixer'](()=>{let _0x186947=!0x1;const _0x54b8ae=Array['from'](_0x5c23e8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb6caf8,data:_0x2b9ec7}of _0x54b8ae){const {group:_0x415537,type:_0x1a46e6,id:_0x43b481}=_0x5b6fe9['_splitMarkerName'](_0xb6caf8);if('suggestion'!=_0x415537||'deletion'!=_0x1a46e6||_0x2b9ec7['oldRange'])continue;if(!_0x5b6fe9['hasSuggestion'](_0x43b481))continue;const _0x14528c=_0x5b6fe9['getSuggestion'](_0x43b481)['getRanges'](),_0x40a42d=_0x5c23e8['plugins']['get']('Users')['me'];for(const _0x3af83f of _0x5b6fe9['getSuggestions']()){if(!_0x3af83f['isInContent']||_0x3af83f['author']!=_0x40a42d)continue;if('formatBlock'!=_0x3af83f['type']||'tablePasteCell'!=_0x3af83f['subType'])continue;if(_0x3af83f['getRanges']()['every'](_0x53e739=>_0x14528c['some'](_0x3b86f=>_0x3b86f['containsRange'](_0x53e739,!0x0)))){for(const _0x24ba45 of _0x3af83f['getAllAdjacentSuggestions']())_0x24ba45['isInContent']&&(_0x24ba45['discard'](),_0x186947=!0x0);}}}return _0x186947;}),_0x5c23e8['model']['document']['registerPostFixer'](_0x1c930d=>{const _0x4b2d11=_0x5c23e8['commands']['get']('redo');if(!_0x4b2d11||!_0x4b2d11['_createdBatches']['has'](_0x1c930d['batch']))return!0x1;let _0x30eed6=!0x1;const _0x253fc8=_0x5c23e8['plugins']['get']('Users')['me'],_0x29fd7c=_0x5c23e8['model']['document']['differ']['getChanges'](),_0x52f309=Array['from'](_0x5c23e8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x31bb4d,data:_0x3aeece})=>{const {group:_0x4f979e,subType:_0x83592d,authorId:_0x2f0f7d}=_0x5b6fe9['_splitMarkerName'](_0x31bb4d);return'suggestion'==_0x4f979e&&'tablePaste'==_0x83592d&&_0x2f0f7d==_0x253fc8['id']&&!_0x3aeece['oldRange'];});for(const _0x42e210 of _0x29fd7c){if('insert'!=_0x42e210['type']||'tableCellSuggestion'!=_0x42e210['name']||0x1!=_0x42e210['length'])continue;const _0x21e590=_0x1c930d['createRange'](_0x42e210['position'],_0x42e210['position']['getShiftedBy'](0x1));if(!_0x52f309['find'](({data:_0x1e3c61})=>_0x1e3c61['newRange']['isEqual'](_0x21e590))){for(const {name:_0x3ad5de,data:_0x1912b9}of _0x52f309)if(_0x21e590['containsRange'](_0x1912b9['newRange'])){_0x1c930d['updateMarker'](_0x3ad5de,{'range':_0x21e590}),_0x30eed6=!0x0;break;}}}return _0x30eed6;}),_0x5c23e8['model']['document']['registerPostFixer'](_0x12f9be=>{let _0x17ba58=!0x1;const _0x18aae6=_0x5c23e8['plugins']['get']('Users')['me'],_0x310c00=_0x5b6fe9['getSuggestions']()['filter'](_0x4b1cc4=>_0x4b1cc4['isInContent']&&_0x4b1cc4['author']==_0x18aae6),_0x11d670=new Set(),_0x528833=new Set();for(const _0x5b5028 of _0x310c00)if('tablePaste'==_0x5b5028['subType'])for(const _0x50f615 of _0x5b5028['getMarkers']()){const _0x1332c0=_0x50f615['getRange']()['getContainedElement']();if(_0x1332c0){if(_0x1332c0['is']('element','tableCellSuggestion')&&je(_0x1332c0)){_0x5b5028['removeMarker'](_0x50f615['name']),_0x11d670['add'](_0x1332c0),_0x17ba58=!0x0;const _0x391685=_0x1332c0['nextSibling'],_0x4a3118=_0x1332c0['previousSibling'],_0x43dbaf=_0x391685&&_0x391685['is']('element','tableCellSuggestion'),_0x59f332=_0x4a3118&&_0x4a3118['is']('element','tableCellSuggestion');_0x43dbaf&&!_0x11d670['has'](_0x391685)&&_0x528833['add'](_0x391685),_0x59f332&&!_0x11d670['has'](_0x4a3118)&&_0x528833['add'](_0x4a3118);}else _0x1332c0['is']('element','paragraph')&&_0x1332c0['isEmpty']&&(_0x5b5028['removeMarker'](_0x50f615['name']),_0x17ba58=!0x0);}}else{if('tablePasteCell'==_0x5b5028['subType']){if(!_0x5b5028['attributes']||!_0x5b5028['attributes']['tablePasteChainId'])continue;const _0x370845=_0x5b5028['attributes']['markerAttributes'];if(_0x370845&&Object['keys'](_0x370845)['length'])continue;const _0x32a5d8=_0x5b5028['attributes']['tablePasteChainId'];let _0x5e21c3=!0x0,_0x5853ea=!0x0;for(const _0x25f56d of _0x310c00)if(_0x25f56d['subType']&&_0x25f56d['subType']['startsWith']('tablePaste')){if(!_0x25f56d['attributes']['tablePasteChainId']){_0x5853ea=!0x1;break;}if(_0x25f56d['id']!=_0x5b5028['id']&&_0x25f56d['attributes']['tablePasteChainId']==_0x32a5d8){_0x5e21c3=!0x1;break;}}_0x5853ea&&_0x5e21c3&&(_0x5b5028['removeMarkers'](),_0x17ba58=!0x0);}}for(const _0x8e655e of _0x11d670)_0x12f9be['remove'](_0x8e655e);for(const _0x37f0b2 of _0x528833)_0x12f9be['unwrap'](_0x37f0b2);return _0x17ba58;}),_0x5c23e8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1700a7=>_0x248af2(_0x1700a7),'converterPriority':'high'}),_0x5c23e8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x39b82d,_0x5f013c)=>_0x5f013c['options']['showSuggestionHighlights']?_0x248af2(_0x39b82d,!0x1):null,'converterPriority':'high'});const _0x241ab7=_0x5c23e8['editing']['view'];this['listenTo'](_0x241ab7['document'],'clipboardOutput',(_0x1a381a,_0x5152dd)=>{const _0x24d066=[];for(const _0x2458cc of _0x241ab7['createRangeIn'](_0x5152dd['content'])['getItems']())_0x2458cc['is']('element','suggestion-td')&&_0x24d066['push'](_0x2458cc);_0x241ab7['change'](_0x3df1d9=>{for(const _0x15c5c8 of _0x24d066)_0x3df1d9['move'](_0x3df1d9['createRangeIn'](_0x15c5c8),_0x3df1d9['createPositionBefore'](_0x15c5c8)),_0x3df1d9['remove'](_0x15c5c8);});});}}function je(_0x5eafb8){if(_0x5eafb8['isEmpty'])return!0x0;const _0x287666=_0x5eafb8['getChild'](0x0);return _0x287666['is']('element','paragraph')&&_0x287666['isEmpty'];}function Ae(_0xfb20bc,_0x57223a={},_0x3aa2aa){for(const {isAnchor:_0x223c55,cellHeight:_0x528598,cellWidth:_0x1c2aa4}of _0x3aa2aa['createTableWalker'](_0xfb20bc,{'includeAllSlots':!0x0,..._0x57223a}))if(!_0x223c55||0x1!=_0x528598||0x1!=_0x1c2aa4)return!0x1;return!0x0;}class Dt extends _0x4ead4a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x999dc2=this['editor']['plugins']['get']('TrackChangesEditing');_0x999dc2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x999dc2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x999dc2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x999dc2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x999dc2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x999dc2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4af243,_0x4359ed){const _0x232fbb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4037c6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x39d65d=_0x4359ed['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2aeff9=_0x4037c6['getColumnGroupElement'](_0x39d65d);let _0x37031f=_0x2aeff9?_0x4037c6['getTableColumnsWidths'](_0x2aeff9):null,_0x3cde5e=_0x39d65d['getAttribute']('tableWidth')||null;const _0x215805=_0x4359ed['tableWidth']||_0x3cde5e,_0x50b928=_0x4359ed['columnWidths']||_0x37031f,_0xd7f122=this['editor']['plugins']['get']('Users')['me'];for(const _0x5f2325 of _0x232fbb['getSuggestions']()){const _0xbb0056=_0x5f2325['getContainedElement']();if('resizeTable'===_0x5f2325['subType']&&_0xbb0056===_0x39d65d){_0x5f2325['author']!==_0xd7f122&&_0x5f2325['discard']();const _0x3a4046=_0x5f2325['data']['commandParams'];_0x3cde5e=_0x3a4046[0x0]['tableWidth'],_0x37031f=_0x3a4046[0x0]['columnWidths'];break;}}_0x4af243({'table':_0x39d65d,'tableWidth':_0x215805,'columnWidths':_0x50b928}),_0x232fbb['markBlockFormat'](_0x39d65d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3cde5e,'columnWidths':_0x37031f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x10a505){if('formatBlock'!=_0x10a505['type']&&'formatInline'!=_0x10a505['type'])return;const {data:_0x295a62}=_0x10a505;if(_0x295a62&&'resizeTable'===_0x295a62['formatGroupId']){const _0x21a1f1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x21a1f1)};}}}class Mt extends _0x4ead4a{['afterInit'](){const _0xb5d218=this['editor'];_0xb5d218['plugins']['has']('Template')&&_0xb5d218['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x4ead4a{['afterInit'](){const _0x520844=this['editor'];if(!_0x520844['commands']['get']('insertTableOfContents'))return;_0x520844['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3076bc=_0x520844['plugins']['get']('TrackChangesEditing'),_0x417184=_0x520844['locale'];_0x3076bc['descriptionFactory']['registerElementLabel']('tableOfContents',_0xd07f71=>o(_0x417184,'ELEMENT_TABLE_OF_CONTENTS',_0xd07f71));}}class Bt extends _0x4ead4a{['afterInit'](){const _0x224592=this['editor'];if(!_0x224592['plugins']['has']('Title'))return;const _0x4c0006=_0x224592['plugins']['get']('TrackChangesEditing');_0x4c0006['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x224592['locale'],'ELEMENT_TITLE')),_0x224592['model']['document']['registerPostFixer'](_0x4b76f8=>{let _0x2d0fce=!0x1;const _0x18b7be=Array['from'](_0x224592['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7196a2,data:_0x5f326f}of _0x18b7be){const {group:_0x1e1bdd}=_0x4c0006['_splitMarkerName'](_0x7196a2);if('suggestion'!==_0x1e1bdd||!_0x5f326f['newRange'])continue;const _0x11c5d6=_0x5f326f['newRange'],_0x42e89e=_0x11c5d6['end']['nodeBefore'];if(!_0x42e89e||!_0x42e89e['is']('element','title-content'))continue;if(!_0x11c5d6['start']['isTouching'](_0x11c5d6['end']))continue;const _0x5f439a=_0x224592['model']['schema']['getNearestSelectionRange'](_0x11c5d6['end'],'forward');if(_0x5f439a&&_0x5f439a['isCollapsed']){const _0x18e619=_0x4b76f8['createRange'](_0x11c5d6['start'],_0x5f439a['start']);_0x18e619['isEqual'](_0x11c5d6)||(_0x4b76f8['updateMarker'](_0x7196a2,{'range':_0x18e619}),_0x2d0fce=!0x0);}_0x2d0fce||(_0x4b76f8['removeMarker'](_0x7196a2),_0x2d0fce=!0x0);}return _0x2d0fce;});}}class Ot extends _0x4ead4a{['afterInit'](){const _0x451160=this['editor'],_0x40b812=_0x451160['plugins']['get']('TrackChangesEditing');_0x451160['plugins']['has']('UndoEditing')&&(_0x40b812['enableCommand']('undo'),_0x40b812['enableCommand']('redo'));}}class Rt extends _0x4ead4a{static get['requires'](){return[vt];}['afterInit'](){const _0x3c0a11=this['editor'];if(!_0x3c0a11['plugins']['has']('TableCaptionEditing'))return;_0x3c0a11['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x4ead4a{['tableProperties'];['tableCellProperties'];constructor(_0x5149cd){super(_0x5149cd),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x7e67fd=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x9e38a3 of this['tableProperties'])_0x7e67fd['enableCommand'](_0x9e38a3,(_0x313bed,_0x5b82b0)=>{const _0x1da494=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x9e38a3,[_0x1da494],this['tableProperties'],'tableProperties',_0x313bed,_0x5b82b0);});_0x7e67fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x7e67fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x7e67fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x545652,_0x364409)=>this['handleDiscardAction'](this['tableProperties'],_0x545652,_0x364409)),_0x7e67fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x217d6b of this['tableCellProperties'])_0x7e67fd['enableCommand'](_0x217d6b,(_0x457e5c,_0x4d0b1c)=>{const _0x490026=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x217d6b,_0x490026,this['tableCellProperties'],'tableCellProperties',_0x457e5c,_0x4d0b1c);});_0x7e67fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x7e67fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x7e67fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3e2b60,_0x4e52bf)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3e2b60,_0x4e52bf)),_0x7e67fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x7e67fd['descriptionFactory']['registerDescriptionCallback'](_0x187643=>this['handleSuggestionDescription'](_0x187643));}['_handlePropertyChange'](_0x5c142e,_0x430fc7,_0x5feb1,_0x5edefb,_0x5f435c,_0xc22e74){const _0xae82e0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xc22e74['batch'],()=>{for(const _0x3cfbb5 of _0x430fc7){if(this['_getSuggestion'](_0x3cfbb5,_0x5edefb))_0x5f435c(_0xc22e74);else{const _0x235d7c={};for(const _0xf7e9b4 of _0x5feb1){const _0x187805=_0x3cfbb5['getAttribute'](_0xf7e9b4);void 0x0!==_0x187805&&(_0x235d7c[_0xf7e9b4]=_0x187805);}_0x5f435c(_0xc22e74),_0xae82e0['markBlockFormat'](_0x3cfbb5,{'commandParams':[_0x235d7c]},[],_0x5edefb);}}});}['handleDiscardAction'](_0x1c7ed6,_0x4db4ff,_0x4b7567){const _0xaaa8e4=_0x4db4ff[0x0]['start']['nodeAfter'],_0x1590b8=_0x4b7567['commandParams'][0x0];this['editor']['model']['change'](_0x7eb7b7=>{for(const _0x40bde5 of _0x1c7ed6)void 0x0!==_0x1590b8[_0x40bde5]?_0x7eb7b7['setAttribute'](_0x40bde5,_0x1590b8[_0x40bde5],_0xaaa8e4):_0x7eb7b7['removeAttribute'](_0x40bde5,_0xaaa8e4);});}['handleSuggestionDescription'](_0x30656e){if(_0x30656e['data'])switch(_0x30656e['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x517f79,_0x186e43){const _0x435e80=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xf3b2c8 of _0x435e80['getSuggestions']({'skipNotAttached':!0x0})){const _0x4ea460=_0xf3b2c8['getContainedElement']();if(_0xf3b2c8['subType']===_0x186e43&&_0x4ea460===_0x517f79)return _0xf3b2c8;}return null;}}const m='$elementName';class p extends _0x4ead4a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x591a8d,_0x1db72b,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f9d5f){super(_0x3f9d5f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x529fa0,_0x4a99d5,_0x2174ec,_0x46bb32)=>{this['_model']['change'](()=>{for(const _0x25c50b of[..._0x46bb32,..._0x2174ec])this['_model']['markers']['has'](_0x25c50b)&&_0x3f9d5f['editing']['reconvertMarker'](_0x25c50b);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3f9d5f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x3f9d5f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3f9d5f['config']['get']('trackChanges.trackFormatChanges'),_0x3f9d5f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3f9d5f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3f9d5f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x290f5e=this['editor'],_0x478e84=(_0x2b52d8,_0x154f51)=>{if('attribute'!=_0x2b52d8)return'ck-suggestion-marker-'+_0x2b52d8;const _0x5d3a3c=_0x154f51['split']('|')[0x0];return this['_isBlockAttribute'](_0x5d3a3c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x290f5e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x11377b=>{const {id:_0x3d66a9,authorId:_0x1028c7,type:_0x758654,subType:_0x51cc62}=this['_splitMarkerName'](_0x11377b['markerName']),_0x4c4c14=['ck-suggestion-marker',_0x478e84(_0x758654,_0x51cc62)];let _0x6d36e6=0xbb8;return this['activeMarkers']['includes'](_0x11377b['markerName'])&&(_0x4c4c14['push']('ck-suggestion-marker--active'),_0x6d36e6=0xbc2),'deletion'==_0x758654&&(_0x6d36e6+=0x5),{'classes':_0x4c4c14,'attributes':{'data-suggestion':_0x3d66a9,'data-author-id':_0x1028c7},'priority':_0x6d36e6};}}),_0x290f5e['conversion']['for']('dataDowncast')['add'](_0x22002d=>{_0x22002d['on']('addMarker:suggestion',(_0x3a66eb,_0x592963,_0x2f173e)=>{if(!_0x2f173e['options']['showSuggestionHighlights'])return;const _0x209a65=_0x592963['item'];if(!_0x209a65)return;const _0x4359f8=_0x2f173e['mapper']['toViewElement'](_0x209a65);_0x290f5e['model']['schema']['isObject'](_0x209a65)&&_0x4359f8&&!_0x4359f8['getCustomProperty']('widget')&&_0x4359f8['is']('containerElement')&&_0x403d04(_0x4359f8,_0x2f173e['writer']);},{'priority':'high'});}),_0x290f5e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x28341b,_0x3af956)=>{if(!_0x3af956['options']['showSuggestionHighlights'])return null;const {type:_0xf79be8,subType:_0x637d73}=this['_splitMarkerName'](_0x28341b['markerName']);return{'classes':['ck-suggestion-marker',_0x478e84(_0xf79be8,_0x637d73)],'priority':0xbb8};}});const _0x13f693=({showActiveMarkers:_0x34fa5a=!0x0,isAttributeSuggestion:_0x3337e1=!0x1}={})=>(_0x88d509,_0x5bce96,_0x52e49b)=>{if(!_0x5bce96['item'])return;const {id:_0x9a7ca5,authorId:_0x1945aa}=this['_splitMarkerName'](_0x5bce96['markerName']);if(_0x3337e1){const _0x4ef038=this['_suggestions']['get'](_0x9a7ca5),_0x29cacb=this['_getAttributeKey'](_0x4ef038);if(!this['_isBlockAttribute'](_0x29cacb))return;}if(_0x5bce96['item']['is']('selection'))return void _0x52e49b['consumable']['consume'](_0x5bce96['item'],_0x88d509['name']);const _0x2519da=_0x52e49b['mapper']['toViewElement'](_0x5bce96['item']);if(_0x5bce96['item']['is']('element')&&_0x290f5e['model']['schema']['isBlock'](_0x5bce96['item'])&&!_0x2519da['getCustomProperty']('addHighlight')){_0x52e49b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2519da),_0x52e49b['writer']['setAttribute']('data-suggestion',_0x9a7ca5,_0x2519da),_0x52e49b['writer']['setAttribute']('data-author-id',_0x1945aa,_0x2519da),_0x52e49b['mapper']['bindElementToMarker'](_0x2519da,_0x5bce96['markerName']),_0x34fa5a&&(this['activeMarkers']['includes'](_0x5bce96['markerName'])?_0x52e49b['writer']['addClass']('ck-suggestion-marker--active',_0x2519da):_0x52e49b['writer']['removeClass']('ck-suggestion-marker--active',_0x2519da));for(const _0x2b4ee5 of _0x290f5e['model']['createRangeIn'](_0x5bce96['item'])['getItems']())_0x52e49b['consumable']['consume'](_0x2b4ee5,_0x88d509['name']);_0x52e49b['consumable']['consume'](_0x5bce96['item'],_0x88d509['name']);}};_0x290f5e['conversion']['for']('dataDowncast')['add'](_0x566f4e=>{_0x566f4e['on']('addMarker:suggestion:formatBlock',(_0x336dc5,_0x36afbc,_0xdbca7b)=>{_0xdbca7b['options']['showSuggestionHighlights']&&_0x13f693({'showActiveMarkers':!0x1})(_0x336dc5,_0x36afbc,_0xdbca7b);},{'priority':'highest'});}),_0x290f5e['conversion']['for']('dataDowncast')['add'](_0x5415bf=>{_0x5415bf['on']('addMarker:suggestion:attribute',(_0x2a7b7a,_0x4041ca,_0x3bf9b6)=>{_0x3bf9b6['options']['showSuggestionHighlights']&&_0x13f693({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2a7b7a,_0x4041ca,_0x3bf9b6);},{'priority':'highest'});}),_0x290f5e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5ec885,_0x36de23)=>_0x36de23['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5ec885['substr'](0xb)}}),_0x290f5e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5ac54c,{writer:_0x275140})=>{let _0x599b61='suggestion:'+_0x5ac54c['getAttribute']('suggestion-type')+':'+_0x5ac54c['getAttribute']('id');return _0x5ac54c['getAttribute']('marker-count')&&(_0x599b61+=':'+_0x5ac54c['getAttribute']('marker-count')),_0x275140['createElement']('$marker',{'data-name':_0x599b61});}}),_0x290f5e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x290f5e['conversion']['for']('editingDowncast')['add'](_0x225444=>{_0x225444['on']('addMarker:suggestion:formatBlock',_0x13f693(),{'priority':'high'});}),_0x290f5e['conversion']['for']('editingDowncast')['add'](_0x39be4b=>{_0x39be4b['on']('addMarker:suggestion:attribute',_0x13f693({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x290f5e['conversion']['for']('editingDowncast')['add'](_0xb7841e=>{_0xb7841e['on']('removeMarker:suggestion:formatBlock',(_0x486916,_0x1c6d96,_0x16289b)=>{const _0x5f03b7=_0x16289b['mapper']['markerNameToElements'](_0x1c6d96['markerName']);if(_0x5f03b7){for(const _0x216b80 of _0x5f03b7)_0x216b80['getCustomProperty']('addHighlight')||(_0x16289b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x216b80),_0x16289b['writer']['removeAttribute']('data-suggestion',_0x216b80),_0x16289b['writer']['removeAttribute']('data-author-id',_0x216b80),_0x16289b['mapper']['unbindElementFromMarkerName'](_0x216b80,_0x1c6d96['markerName']));}},{'priority':'high'});}),_0x290f5e['conversion']['for']('editingDowncast')['add'](_0x5d4359=>{_0x5d4359['on']('removeMarker:suggestion:attribute',(_0x45ae5f,_0x5f5998,_0x4d1730)=>{const _0x27cc00=_0x4d1730['mapper']['markerNameToElements'](_0x5f5998['markerName']);if(!_0x27cc00)return;const {id:_0x282bfa}=this['_splitMarkerName'](_0x5f5998['markerName']),_0x1cab36=this['_suggestions']['get'](_0x282bfa),_0x7c34d0=this['_getAttributeKey'](_0x1cab36);if(this['_isBlockAttribute'](_0x7c34d0)){for(const _0x2d9f8d of _0x27cc00)_0x2d9f8d['getCustomProperty']('addHighlight')||(_0x4d1730['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2d9f8d),_0x4d1730['writer']['removeAttribute']('data-suggestion',_0x2d9f8d),_0x4d1730['writer']['removeAttribute']('data-author-id',_0x2d9f8d),_0x4d1730['mapper']['unbindElementFromMarkerName'](_0x2d9f8d,_0x5f5998['markerName']));}},{'priority':'high'});}),_0x290f5e['model']['document']['registerPostFixer'](_0x2e9a4d=>{let _0x1cf102=!0x1;const _0x4f5179=Array['from'](_0x290f5e['model']['document']['differ']['getChangedMarkers']()),_0x27f236=new Set();for(const {name:_0x1cc210,data:_0x53cbbe}of _0x4f5179){const {group:_0x4751a0,type:_0x149ca0,subType:_0x282bc2,id:_0x5df2df}=this['_splitMarkerName'](_0x1cc210);if('suggestion'!==_0x4751a0)continue;const _0xb56bb6=this['_suggestions']['get'](_0x5df2df);if(null!=_0x53cbbe['newRange']){'formatInline'==_0x149ca0&&(_0x1cf102=_0x1cf102||Pt(_0x53cbbe['newRange'],_0x1cc210,_0x2e9a4d,_0x290f5e['model']['schema']));const _0x2eca10='attribute'==_0x149ca0&&this['_isBlockAttribute'](_0x282bc2['split']('|')[0x0]);if(_0x53cbbe['newRange']['isCollapsed']||'$graveyard'==_0x53cbbe['newRange']['root']['rootName']||'formatBlock'==_0x149ca0&&!Ft(_0x53cbbe['newRange'])||_0x2eca10&&!Ft(_0x53cbbe['newRange'])||'deletion'==_0x149ca0&&!(!Vt(_0x410c4d=_0x53cbbe['newRange'])&&!function(_0x8ffebc){return _0x8ffebc['start']['parent']==_0x8ffebc['end']['nodeBefore']&&_0x8ffebc['start']['isAtEnd'];}(_0x410c4d)))_0x2e9a4d['removeMarker'](_0x1cc210),_0x1cf102=!0x0;else{if(!_0xb56bb6||!_0xb56bb6['isInContent'])continue;if(_0x53cbbe['newRange']&&_0x53cbbe['oldRange']&&_0x53cbbe['newRange']['isEqual'](_0x53cbbe['oldRange']))continue;_0x27f236['add'](_0xb56bb6);}}}var _0x410c4d;return _0x27f236['size']>0x0&&(_0x1cf102=!!this['_joinWithAdjacentSuggestions'](_0x27f236)||_0x1cf102),_0x1cf102;}),_0x290f5e['model']['document']['registerPostFixer'](_0x2a1cd4=>{let _0x48cf24=!0x1;for(const _0x542819 of _0x290f5e['model']['document']['differ']['getChanges']())if('insert'==_0x542819['type'])for(const _0x5c8d08 of this['_suggestions']['values']()){if(_0x5c8d08['isMultiRange']||!_0x5c8d08['isInContent'])continue;const _0x1929e3='formatBlock'==_0x5c8d08['type'],_0x154c1d=this['_getAttributeKey'](_0x5c8d08),_0x4d9b1c=_0x154c1d&&this['_isBlockAttribute'](_0x154c1d);if(!_0x1929e3&&!_0x4d9b1c)continue;const _0x523da5=_0x5c8d08['getFirstRange']();if(_0x523da5['start']['parent']!=_0x523da5['end']['parent']&&!_0x523da5['end']['isAtEnd']){const _0xc3e148=_0x290f5e['model']['createPositionAt'](_0x523da5['start']['nodeAfter'],'end'),_0x562b6d=_0x290f5e['model']['createRange'](_0x523da5['start'],_0xc3e148);_0x2a1cd4['updateMarker'](_0x5c8d08['getFirstMarker'](),{'range':_0x562b6d}),_0x48cf24=!0x0;}}return _0x48cf24;}),_0x290f5e['model']['document']['registerPostFixer'](_0x54732d=>this['_processAttributeChanges'](_0x54732d)),_0x290f5e['model']['document']['registerPostFixer'](_0x1c0148=>!_0x1c0148['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1c0148)),_0x290f5e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x290f5e['model']['document']['on']('change:data',(_0x5c6dd7,_0x2b2034)=>{if(!_0x2b2034['isLocal']||_0x2b2034['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x52198d=_0x290f5e['model']['document']['differ']['getChanges']();if(0x0==_0x52198d['length'])return;const _0x2da825=[],_0x5bf06d=_0x52198d['filter'](_0x3c1832=>'attribute'==_0x3c1832['type']),_0x338473=_0x52198d['filter'](_0x6fde93=>'insert'==_0x6fde93['type']&&'$text'!=_0x6fde93['name']);for(const _0x4866df of _0x5bf06d)this['_isRegisteredAttribute'](_0x4866df['attributeKey'])&&_0x2da825['push']({'key':_0x4866df['attributeKey'],'newValue':_0x4866df['attributeNewValue'],'oldValue':_0x4866df['attributeOldValue'],'range':Lt(_0x4866df['range'],_0x290f5e['model'])});for(const _0x1ffd76 of _0x338473){if('rename'!=_0x1ffd76['action']&&'refresh'!=_0x1ffd76['action'])continue;const _0x57675e=Jt(_0x1ffd76['position']['nodeAfter'],_0x290f5e['model']),_0x25566e=_0x1ffd76['before'];'rename'==_0x1ffd76['action']&&_0x2da825['push']({'key':m,'newValue':_0x1ffd76['name'],'oldValue':_0x25566e['name'],'range':_0x57675e});for(const [_0x41e2ce,_0x93f13c]of _0x25566e['attributes']){if(!this['_isRegisteredAttribute'](_0x41e2ce))continue;const _0x25a68e=_0x1ffd76['attributes']['get'](_0x41e2ce);_0x93f13c!==_0x25a68e&&_0x2da825['push']({'key':_0x41e2ce,'newValue':_0x25a68e,'oldValue':_0x93f13c,'range':_0x57675e});}for(const [_0x2f2003,_0x3f93fe]of _0x1ffd76['attributes'])this['_isRegisteredAttribute'](_0x2f2003)&&(_0x25566e['attributes']['has'](_0x2f2003)||_0x2da825['push']({'key':_0x2f2003,'newValue':_0x3f93fe,'oldValue':null,'range':_0x57675e}));}0x0!=_0x2da825['length']&&_0x290f5e['model']['enqueueChange'](_0x2b2034,_0x29e26e=>{const _0x4338f2=_0x53896e();for(const {range:_0x3115d5,key:_0x1bbc42,oldValue:_0x56fee0,newValue:_0x4b5cb6}of _0x2da825)this['markAttributeChange'](_0x3115d5,_0x1bbc42,_0x56fee0,_0x4b5cb6,{'groupId':_0x4338f2});this['_reduceExistingSuggestions'](_0x29e26e,_0x2da825);});},{'priority':'lowest'}),_0x290f5e['model']['markers']['on']('update:suggestion',(_0x59e752,_0x2e3792,_0x10d003)=>{if(null==_0x10d003){const {id:_0x5a334c}=this['_splitMarkerName'](_0x2e3792['name']),_0x3b3942=this['_suggestions']['get'](_0x5a334c);_0x3b3942&&_0x3b3942['addMarkerName'](_0x2e3792['name']);}}),_0x290f5e['model']['document']['on']('change:data',()=>{const _0x1d8051=Array['from'](_0x290f5e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1c7a10=>'suggestion'===this['_splitMarkerName'](_0x1c7a10['name'])['group']);if(0x0===_0x1d8051['length'])return;_0x1d8051['sort']((_0x11bce7,_0x220f7f)=>{const _0x45c6ab=_0x11bce7['data']['oldRange'],_0x403c23=_0x220f7f['data']['oldRange'];return null===_0x45c6ab&&null===_0x403c23?0x0:null===_0x45c6ab&&null!==_0x403c23?-0x1:null!==_0x45c6ab&&null===_0x403c23?0x1:_0x45c6ab['start']['isBefore'](_0x403c23['start'])?-0x1:0x1;});const _0x4e0b67=new Set(),_0xd76351=new Set();for(const {name:_0x19708a,data:_0x3274e8}of _0x1d8051){const {id:_0x58572e}=this['_splitMarkerName'](_0x19708a);if(null===_0x3274e8['oldRange']){const _0x347b79=this['_handleNewSuggestionMarker'](_0x19708a);_0xd76351['add'](_0x347b79);}else{const _0x74b4de=this['_suggestions']['get'](_0x58572e);null!==_0x3274e8['newRange']||_0x74b4de['isInContent']?(_0x4e0b67['add'](_0x74b4de['head']),_0xd76351['add'](_0x74b4de)):this['_removeSuggestion'](_0x74b4de);}}_0xd76351['size']>0x0&&this['_refreshSuggestionsChain'](_0xd76351);for(const _0x3e0b2a of _0x4e0b67)this['fire']('suggestionChanged',_0x3e0b2a);}),_0x290f5e['model']['on']('applyOperation',(_0x46412d,_0x18b78b)=>{const _0x34acaf=_0x18b78b[0x0];if(!this['_suggestions']['size'])return;if(!_0x34acaf['isDocumentOperation'])return;if(_0x34acaf['batch']['isUndo']||!_0x34acaf['batch']['isLocal'])return;let _0x3b8f19,_0x1e0171;switch(_0x34acaf['type']){case'insert':_0x3b8f19=_0x290f5e['model']['createPositionAt'](_0x34acaf['position']),_0x1e0171=_0x3b8f19['getShiftedBy'](_0x34acaf['howMany']);break;case'split':_0x3b8f19=_0x290f5e['model']['createPositionAt'](_0x34acaf['splitPosition']),_0x1e0171=_0x290f5e['model']['createPositionAt'](_0x34acaf['moveTargetPosition']);break;case'move':_0x3b8f19=_0x290f5e['model']['createPositionAt'](_0x34acaf['targetPosition']),_0x1e0171=_0x3b8f19['getShiftedBy'](_0x34acaf['howMany']);break;default:return;}const _0x31dd70=_0x290f5e['model']['createRange'](_0x3b8f19,_0x1e0171);_0x290f5e['model']['change'](()=>{for(const {suggestion:_0x54157e,meta:_0x2a01eb}of this['_findSuggestions'](_0x31dd70)){if(_0x54157e['isMultiRange'])continue;if('formatInline'==_0x54157e['type'])continue;const _0x2ea78e=this['_getAttributeKey'](_0x54157e);if(_0x2ea78e&&this['_isBlockAttribute'](_0x2ea78e)&&'split'!=_0x34acaf['type'])continue;const _0x378bc=_0x54157e['data']&&_0x54157e['data']['multipleBlocks'];('formatBlock'!=_0x54157e['type']||'split'==_0x34acaf['type']&&!_0x378bc)&&(_0x2a01eb['containsRangeInObject']||'insertion'==_0x54157e['type']&&_0x2a01eb['isOwn']||_0x54157e['getFirstRange']()['containsRange'](_0x31dd70)&&this['_breakSuggestionMarker'](_0x54157e,_0x3b8f19,_0x1e0171));}});},{'priority':'lowest'}),_0x290f5e['model']['on']('deleteContent',(_0x1c7e00,_0x3fa462)=>{const _0x1cde80=_0x3fa462[0x0],_0xd88ca1=_0x3fa462[0x1];if(_0xd88ca1&&_0xd88ca1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1cde80['isCollapsed'])return;const _0x3b3c75=_0x290f5e['model']['schema'],{start:_0x17d2da,end:_0x4b8879}=_0x1cde80['getFirstRange'](),_0x16269f=_0x17d2da['nodeAfter']&&_0x3b3c75['isLimit'](_0x17d2da['nodeAfter'])?null:_0x3b3c75['getNearestSelectionRange'](_0x17d2da,'forward'),_0x3b8c03=_0x4b8879['nodeBefore']&&_0x3b3c75['isLimit'](_0x4b8879['nodeBefore'])?null:_0x3b3c75['getNearestSelectionRange'](_0x4b8879,'backward'),_0x15092b=_0x290f5e['model']['createRange'](_0x16269f?_0x16269f['start']:_0x17d2da,_0x3b8c03?_0x3b8c03['end']:_0x4b8879);_0x290f5e['model']['change'](_0x5c8fe1=>{this['markDeletion'](_0x15092b);const _0x556a84=_0x290f5e['model']['schema']['getNearestSelectionRange'](_0x15092b['start']);_0x1cde80['is']('documentSelection')?_0x5c8fe1['setSelection'](_0x556a84):_0x1cde80['setTo'](_0x556a84);}),_0x1c7e00['stop']();},{'priority':_0x508f82['normal']+0xa}),_0x290f5e['model']['on']('insertContent',(_0x1614a4,_0x500ad3)=>{const _0x109d0c=_0x500ad3[_0x500ad3['length']-0x1];_0x109d0c&&_0x109d0c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x290f5e['model']['change'](()=>{let _0x39ecbf=_0x290f5e['model']['insertContent'](_0x500ad3[0x0],_0x500ad3[0x1],_0x500ad3[0x2],{'forceDefaultExecution':!0x0});if(!_0x39ecbf)return;_0x1614a4['return']=_0x39ecbf['clone']();const _0x397df6=_0x39ecbf['end']['nodeBefore'],_0x414fda=_0x290f5e['model']['schema'];_0x397df6&&_0x414fda['isBlock'](_0x397df6)&&!_0x414fda['isObject'](_0x397df6)&&(_0x39ecbf=_0x290f5e['model']['createRange'](_0x39ecbf['start'],_0x290f5e['model']['createPositionAt'](_0x397df6,'end'))),this['markInsertion'](_0x39ecbf);}),_0x1614a4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x157a70=new O(_0x290f5e,this['_suggestions']);_0x290f5e['commands']['add']('acceptSuggestion',_0x157a70),this['enableCommand']('acceptSuggestion');const _0x3fe89c=new R(_0x290f5e,this['_suggestions']);_0x290f5e['commands']['add']('discardSuggestion',_0x3fe89c),this['enableCommand']('discardSuggestion'),_0x290f5e['commands']['add']('acceptAllSuggestions',new x(_0x290f5e,_0x157a70,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x290f5e['commands']['add']('discardAllSuggestions',new x(_0x290f5e,_0x3fe89c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x290f5e['commands']['add']('acceptSelectedSuggestions',new E(_0x290f5e,_0x157a70,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x290f5e['commands']['add']('discardSelectedSuggestions',new E(_0x290f5e,_0x3fe89c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x85b75b=_0x290f5e['plugins']['get']('CommentsRepository');this['listenTo'](_0x85b75b,'addComment',(_0x34de7d,{threadId:_0x22928b})=>{const _0x68f99e=this['_suggestions']['get'](_0x22928b);_0x68f99e&&_0x68f99e['commentThread']&&0x1===_0x68f99e['commentThread']['length']&&this['_updateSuggestionData'](_0x22928b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x85b75b,'removeComment',(_0x1c5429,{threadId:_0x2cc7c3})=>{const _0x2c1776=this['_suggestions']['get'](_0x2cc7c3);_0x2c1776&&_0x2c1776['commentThread']&&!_0x2c1776['commentThread']['length']&&this['_updateSuggestionData'](_0x2cc7c3,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x15d1a1){const _0x3c5698=_0x1d7126([0x4f,0x78,0x43,0x34,0x6b,0x48,0x58,0x4b,0x6e,0x64,0x54,0x31,0x51,0x53,0x5a,0x72,0x61,0x37,0x39,0x46,0x71,0x35,0x45,0x49,0x79,0x42,0x52,0x4a,0x75,0x57,0x30,0x6c,0x68,0x6f,0x77,0x4d,0x41,0x74,0x6a,0x33,0x38,0x59,0x56,0x36,0x70,0x63,0x50,0x32,0x62,0x6d,0x73,0x66,0x44,0x47,0x55,0x7a,0x76,0x67,0x4c,0x4e,0x69,0x65]),_0x1e4e53=0x41b9635e,_0x24a2fa=0x41be38b6^_0x1e4e53,_0x272134=window[_0x1d7126([0x44,0x61,0x74,0x65])][_0x1d7126([0x6e,0x6f,0x77])](),_0x198096=_0x15d1a1[_0x1d7126([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x943ae5=new window[(_0x1d7126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a3aa9=>{_0x198096[_0x1d7126([0x6f,0x6e,0x63,0x65])](_0x1d7126([0x72,0x65,0x61,0x64,0x79]),_0x2a3aa9);}),_0x4330f9={[_0x1d7126([0x6b,0x74,0x79])]:_0x1d7126([0x45,0x43]),[_0x1d7126([0x75,0x73,0x65])]:_0x1d7126([0x73,0x69,0x67]),[_0x1d7126([0x63,0x72,0x76])]:_0x1d7126([0x50,0x2d,0x32,0x35,0x36]),[_0x1d7126([0x78])]:_0x1d7126([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x1d7126([0x79])]:_0x1d7126([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x1d7126([0x61,0x6c,0x67])]:_0x1d7126([0x45,0x53,0x32,0x35,0x36])},_0x1a1e00=_0x198096[_0x1d7126([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d7126([0x67,0x65,0x74])](_0x1d7126([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4eaab0(){let _0x313b69,_0x1ee902=null,_0x43a72c=null;try{if(_0x1a1e00==_0x1d7126([0x47,0x50,0x4c]))return _0x1d7126([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x313b69=_0x26d8b2(),!_0x313b69)return _0x1d7126([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x313b69[_0x1d7126([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43a72c=_0x7f286c(_0x313b69[_0x1d7126([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x313b69[_0x1d7126([0x6a,0x74,0x69])])),await _0x281719()?_0x47de90()?_0x4b82d2()?_0x1d7126([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3bdb81()?(_0x313b69[_0x1d7126([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d7126([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1ee902=_0x3d00b1(_0x1d7126([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x313b69[_0x1d7126([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d7126([0x74,0x72,0x69,0x61,0x6c])&&(_0x1ee902=_0x3d00b1(_0x1d7126([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x313b69[_0x1d7126([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d7126([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x1ee902=_0x3d00b1(_0x1d7126([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0xcd93a4()):_0x1d7126([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d7126([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d7126([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x37e2ae){return _0x1d7126([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b82d2(){const _0x5939cb=[_0x1d7126([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d7126([0x74,0x72,0x69,0x61,0x6c])][_0x1d7126([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x313b69[_0x1d7126([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x272134/0x3e8:0xe10*_0x24a2fa;return _0x313b69[_0x1d7126([0x65,0x78,0x70])]<_0x5939cb;}function _0x47de90(){const _0x428a84=_0x313b69[_0x1d7126([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x428a84)return!0x1;if(_0x428a84[_0x1d7126([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d7126([0x2a])))return!0x0;if(_0x428a84[_0x1d7126([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d7126([0x54,0x43])))return!0x0;if(_0x428a84[_0x1d7126([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d7126([0x52,0x54,0x43]))){if(_0x220cc2())return!0x0;if(_0x470569()||_0x3a8f2e())return!0x0;}return!0x1;}function _0x3bdb81(){const _0x57301b=_0x313b69[_0x1d7126([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x57301b||0x0==_0x57301b[_0x1d7126([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x502620}=new URL(window[_0x1d7126([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x57301b[_0x1d7126([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x502620))return!0x0;const _0x409183=_0x502620[_0x1d7126([0x73,0x70,0x6c,0x69,0x74])](_0x1d7126([0x2e]));return _0x57301b[_0x1d7126([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x554fb8=>_0x554fb8[_0x1d7126([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d7126([0x2a])))[_0x1d7126([0x6d,0x61,0x70])](_0xb0e371=>_0xb0e371[_0x1d7126([0x73,0x70,0x6c,0x69,0x74])](_0x1d7126([0x2e])))[_0x1d7126([0x73,0x6f,0x6d,0x65])](_0x368b2e=>_0x409183[_0x1d7126([0x65,0x76,0x65,0x72,0x79])]((_0x476be1,_0x3af1a8)=>_0x368b2e[_0x3af1a8]===_0x476be1||_0x368b2e[_0x3af1a8]===_0x1d7126([0x2a])));}function _0xcd93a4(){return _0x1ee902&&_0x43a72c?new window[(_0x1d7126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x497264,_0x10efd8)=>{_0x1ee902[_0x1d7126([0x74,0x68,0x65,0x6e])](_0x497264,_0x10efd8),_0x43a72c[_0x1d7126([0x74,0x68,0x65,0x6e])](_0x383c34=>{_0x383c34!=_0x1d7126([0x56,0x61,0x6c,0x69,0x64])&&_0x497264(_0x383c34);},_0x10efd8);}):_0x1ee902||_0x43a72c||_0x1d7126([0x56,0x61,0x6c,0x69,0x64]);}}function _0x7f286c(_0x2d957e,_0x12b650){return new window[(_0x1d7126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c5d95=>{if(_0x1adbf4())return _0x3c5d95(_0x1d7126([0x56,0x61,0x6c,0x69,0x64]));_0x2bc961(),_0x198096[_0x1d7126([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d7126([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36218f=!0x1;const _0x5c7a15=_0x53896e();function _0x5c162b(_0x56baf1){return!!_0x56baf1&&(typeof _0x56baf1===_0x1d7126([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x56baf1===_0x1d7126([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x56baf1[_0x1d7126([0x74,0x68,0x65,0x6e])]===_0x1d7126([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x56baf1[_0x1d7126([0x63,0x61,0x74,0x63,0x68])]===_0x1d7126([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x971689(_0x127d9e){_0x3e608b(_0x127d9e)[_0x1d7126([0x74,0x68,0x65,0x6e])](_0x53f34f=>{if(!_0x53f34f||_0x53f34f[_0x1d7126([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d7126([0x6f,0x6b]))return _0x1d7126([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x22f34f(_0x59bbc6(_0x5c7a15+_0x12b650))!=_0x53f34f[_0x1d7126([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d7126([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d7126([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d7126([0x74,0x68,0x65,0x6e])](_0x3d045a=>(_0xee9546(),_0x3d045a),()=>{const _0x3f03a4=_0x520074();return null==_0x3f03a4?(_0xee9546(),_0x1d7126([0x56,0x61,0x6c,0x69,0x64])):_0x1d7126(_0x272134-_0x3f03a4>(0x65b5e75e^_0x1e4e53)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d7126([0x74,0x68,0x65,0x6e])](_0x3c5d95)[_0x1d7126([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c5d95(_0x1d7126([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x34f71f=0x418f8dde^_0x1e4e53;function _0xee9546(){const _0x394d05=_0x1d7126([0x6c,0x6c,0x63,0x74,0x2d])+_0x22f34f(_0x59bbc6(_0x2d957e)),_0x43dabd=_0x1df7a3(_0x22f34f(window[_0x1d7126([0x4d,0x61,0x74,0x68])][_0x1d7126([0x63,0x65,0x69,0x6c])](_0x272134/_0x34f71f)));window[_0x1d7126([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d7126([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x394d05,_0x43dabd);}function _0x520074(){const _0x2de977=_0x1d7126([0x6c,0x6c,0x63,0x74,0x2d])+_0x22f34f(_0x59bbc6(_0x2d957e)),_0x9d393c=window[_0x1d7126([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d7126([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2de977);return _0x9d393c?window[_0x1d7126([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1df7a3(_0x9d393c),0x10)*_0x34f71f:null;}function _0x3e608b(_0x148373){return new window[(_0x1d7126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f9753,_0x3f16b4)=>{_0x148373[_0x1d7126([0x74,0x68,0x65,0x6e])](_0x4f9753,_0x3f16b4),window[_0x1d7126([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f16b4,0x41b8b79e^_0x1e4e53);});}}_0x198096[_0x1d7126([0x6f,0x6e])](_0x1d7126([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x53a36a,_0x3453d7)=>{if(_0x3453d7[0x0]!=_0x2d957e)return _0x3c5d95(_0x1d7126([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3453d7[0x1]={..._0x3453d7[0x1],[_0x1d7126([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c7a15};},{[_0x1d7126([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d7126([0x68,0x69,0x67,0x68])}),_0x198096[_0x1d7126([0x6f,0x6e])](_0x1d7126([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x528f0f=>{_0x5c162b(_0x528f0f[_0x1d7126([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36218f=!0x0,_0x971689(_0x528f0f[_0x1d7126([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d7126([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d7126([0x6c,0x6f,0x77])}),_0x943ae5[_0x1d7126([0x74,0x68,0x65,0x6e])](()=>{_0x36218f||_0x3c5d95(_0x1d7126([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1adbf4(){return _0x198096[_0x1d7126([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d7126([0x76,0x69,0x65,0x77])][_0x1d7126([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d7126([0x61,0x75,0x74,0x6f]);}function _0x2bc961(){_0x198096[_0x1d7126([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d7126([0x76,0x69,0x65,0x77])][_0x1d7126([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d7126([0x61,0x75,0x74,0x6f]);}}function _0x3d00b1(_0x552458){const _0x481672=[new window[(_0x1d7126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f2d98=>setTimeout(_0x2f2d98,0x41b05d92^_0x1e4e53)),_0x943ae5[_0x1d7126([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d7126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ee08c=>{let _0x3e50fd=0x0;_0x198096[_0x1d7126([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d7126([0x6f,0x6e])](_0x1d7126([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x15dbe3,_0x142bf9)=>{_0x142bf9[0x0][_0x1d7126([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3e50fd++,_0x3e50fd==(0x41b962a6^_0x1e4e53)&&(_0x3ee08c(),_0x15dbe3[_0x1d7126([0x6f,0x66,0x66])]());});}))];return window[_0x1d7126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d7126([0x72,0x61,0x63,0x65])](_0x481672)[_0x1d7126([0x74,0x68,0x65,0x6e])](()=>_0x552458);}async function _0x5c31b5(){await _0x943ae5,_0x198096[_0x1d7126([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d7126([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3b4479,_0x198096[_0x1d7126([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d7126([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3b4479,_0x198096[_0x1d7126([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d7126([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x220cc2(){return _0x325693(_0x1d7126([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1a87e2(_0x1d7126([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1d7126([0x73,0x74,0x61,0x74,0x65])]==_0x1d7126([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x470569(){return _0x325693(_0x1d7126([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x3a8f2e(){return _0x325693(_0x1d7126([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4f564b(_0x200c8e){const _0x2fc8c0=_0x2fa627();_0x198096[_0x2fc8c0]=_0x1d7126([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x200c8e,_0x200c8e!=_0x1d7126([0x56,0x61,0x6c,0x69,0x64])&&_0x5c31b5();}function _0x2fa627(){const _0x540d0a=window[_0x1d7126([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d7126([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d7126([0x6e,0x6f,0x77])]())[_0x1d7126([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d7126([0x2e]),'');let _0x33afad=_0x1d7126([0x4f]);for(let _0x2cc6a9=0x0;_0x2cc6a9<_0x540d0a[_0x1d7126([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2cc6a9+=0x2){let _0xc150f9=window[_0x1d7126([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x540d0a[_0x1d7126([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2cc6a9,_0x2cc6a9+0x2));_0xc150f9>=_0x3c5698[_0x1d7126([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xc150f9-=_0x3c5698[_0x1d7126([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x33afad+=_0x3c5698[_0xc150f9];}return _0x33afad;}function _0x26d8b2(){const _0x3dcdf2=_0x1a1e00[_0x1d7126([0x73,0x70,0x6c,0x69,0x74])](_0x1d7126([0x2e]));if(0x3!=_0x3dcdf2[_0x1d7126([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1652ff(_0x3dcdf2[0x1]);function _0x1652ff(_0x5e75ed){const _0x47791f=_0x455572(_0x5e75ed);return _0x47791f&&_0x18f31d()?_0x47791f:null;function _0x18f31d(){const _0x472c1f=_0x47791f[_0x1d7126([0x6a,0x74,0x69])],_0x143863=window[_0x1d7126([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x472c1f[_0x1d7126([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x472c1f[_0x1d7126([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34ac4c={..._0x47791f,[_0x1d7126([0x6a,0x74,0x69])]:_0x472c1f[_0x1d7126([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x472c1f[_0x1d7126([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34ac4c[_0x1d7126([0x76,0x63])],_0x59bbc6(_0x34ac4c)==_0x143863;}}}async function _0x281719(){let _0x48647f=!0x0;try{const _0x4615f6=_0x1a1e00[_0x1d7126([0x73,0x70,0x6c,0x69,0x74])](_0x1d7126([0x2e])),[_0x1a3808,_0x30079f,_0x22cff3]=_0x4615f6;return _0x1b922e(_0x1a3808),await _0x3b9130(_0x1a3808,_0x30079f,_0x22cff3),_0x48647f;}catch(_0x2d7cf9){return!0x1;}function _0x1b922e(_0x319c8b){const _0x291591=_0x455572(_0x319c8b);_0x291591&&_0x291591[_0x1d7126([0x61,0x6c,0x67])]==_0x1d7126([0x45,0x53,0x32,0x35,0x36])||(_0x48647f=!0x1);}async function _0x3b9130(_0x3e5ea3,_0x51378a,_0x1f57d4){const _0x543a09=window[_0x1d7126([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d7126([0x66,0x72,0x6f,0x6d])](_0x5885f8(_0x1f57d4),_0x39d80d=>_0x39d80d[_0x1d7126([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12b172=new window[(_0x1d7126([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d7126([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3e5ea3+_0x1d7126([0x2e])+_0x51378a),_0x54a7d7=window[_0x1d7126([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d7126([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54a7d7)return;const _0x49a8b8=await _0x54a7d7[_0x1d7126([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d7126([0x6a,0x77,0x6b]),_0x4330f9,{[_0x1d7126([0x6e,0x61,0x6d,0x65])]:_0x1d7126([0x45,0x43,0x44,0x53,0x41]),[_0x1d7126([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d7126([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d7126([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54a7d7[_0x1d7126([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d7126([0x6e,0x61,0x6d,0x65])]:_0x1d7126([0x45,0x43,0x44,0x53,0x41]),[_0x1d7126([0x68,0x61,0x73,0x68])]:{[_0x1d7126([0x6e,0x61,0x6d,0x65])]:_0x1d7126([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x49a8b8,_0x543a09,_0x12b172)||(_0x48647f=!0x1);}}function _0x455572(_0x31c747){return _0x31c747[_0x1d7126([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d7126([0x65,0x79]))?JSON[_0x1d7126([0x70,0x61,0x72,0x73,0x65])](_0x5885f8(_0x31c747)):null;}function _0x5885f8(_0x30f6fb){return window[_0x1d7126([0x61,0x74,0x6f,0x62])](_0x30f6fb[_0x1d7126([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d7126([0x2b]))[_0x1d7126([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d7126([0x2f])));}function _0x59bbc6(_0x49f756){let _0x21771f=0x1505;function _0xb31d62(_0xae7c81){for(let _0x3bae2a=0x0;_0x3bae2a<_0xae7c81[_0x1d7126([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3bae2a++){const _0x1b3d56=_0xae7c81[_0x1d7126([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3bae2a);_0x21771f=(_0x21771f<<0x5)+_0x21771f+_0x1b3d56,_0x21771f&=_0x21771f;}}function _0x4ab08f(_0x531ef1){Array[_0x1d7126([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x531ef1)?_0x531ef1[_0x1d7126([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4ab08f):_0x531ef1&&typeof _0x531ef1==_0x1d7126([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d7126([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x531ef1)[_0x1d7126([0x73,0x6f,0x72,0x74])]()[_0x1d7126([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x298926,_0x20af9d])=>{_0xb31d62(_0x298926),_0x4ab08f(_0x20af9d);}):_0xb31d62(window[_0x1d7126([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x531ef1));}return _0x4ab08f(_0x49f756),_0x21771f>>>0x0;}function _0x22f34f(_0x10c6b7){return _0x10c6b7[_0x1d7126([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d7126([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d7126([0x30]));}function _0x1df7a3(_0x689032){return _0x689032[_0x1d7126([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d7126([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d7126([0x6a,0x6f,0x69,0x6e])]('');}function _0x325693(_0x5541b7){return _0x198096[_0x1d7126([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d7126([0x68,0x61,0x73])](_0x5541b7);}function _0x1a87e2(_0x512c06){return _0x198096[_0x1d7126([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d7126([0x67,0x65,0x74])](_0x512c06);}function _0x3b4479(){}function _0x1d7126(_0x371a9c){return _0x371a9c['map'](_0x22d30a=>String['fromCharCode'](_0x22d30a))['join']('');}_0x4f564b(await _0x4eaab0());}(this);}set['adapter'](_0x2fd5bd){if(this['_adapter'])throw new _0x178c26('track-changes-adapter-already-set',this);this['_adapter']=_0x2fd5bd;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x29deb2=!0x1,toJSON:_0x3fb87c=!0x1}={}){const _0x58f228=[];for(const _0xad069d of this['_suggestions']['values']())_0x29deb2&&!_0xad069d['isInContent']||_0x58f228['push'](_0xad069d);return _0x3fb87c?_0x58f228['map'](_0x7625e8=>_0x7625e8['toJSON']()):_0x58f228;}['getSuggestion'](_0x5ae3eb){const _0x5d373e=this['_suggestions']['get'](_0x5ae3eb);if(!_0x5d373e)throw new _0x178c26('track-changes-suggestion-not-found',this);return _0x5d373e;}['hasSuggestion'](_0xba80e4){return this['_suggestions']['has'](_0xba80e4);}['addSuggestionData'](_0x500051){const {authorId:_0x2fe053,id:_0x42e982,attributes:_0x375dd2}=_0x500051,[_0x493dde,_0x27c2d9]=_0x500051['type']['split'](':'),_0x55d2f3=this['_suggestions']['get'](_0x42e982)||this['_createSuggestion'](_0x493dde,_0x27c2d9,_0x42e982,_0x2fe053,_0x375dd2);if(this['_addThreadToSuggestion'](_0x55d2f3),this['_checkSuggestionCorrectness'](_0x55d2f3,_0x493dde,_0x27c2d9||null,_0x2fe053),_0x55d2f3['createdAt']=_0x500051['createdAt'],_0x55d2f3['_isDataLoaded']=!0x0,_0x375dd2&&_0x375dd2['@external']){const _0x11edff=_0x375dd2['@external'],_0x222ed1=this['_getExternalAuthor'](_0x11edff['authorName']);_0x55d2f3['authoredAt']=_0x11edff['createdAt'],_0x55d2f3['author']=_0x222ed1,_0x55d2f3['isExternal']=!0x0;}else _0x55d2f3['authoredAt']=_0x500051['createdAt'];switch(_0x500051['data']&&(_0x55d2f3['data']=_0x500051['data']),_0x500051['attributes']&&(_0x55d2f3['attributes']=_0x500051['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x55d2f3['_saved']=!0x0),this['_suggestionState']['get'](_0x55d2f3)){case'notReady':this['_suggestionState']['set'](_0x55d2f3,'dataReady');break;case'markerReady':_0x55d2f3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x55d2f3])),this['_refreshSuggestionsChain'](new Set([_0x55d2f3])),this['_suggestionState']['set'](_0x55d2f3,'ready'),this['fire']('suggestionLoaded',_0x55d2f3)):this['_suggestionState']['set'](_0x55d2f3,'removed');}return _0x55d2f3;}['acceptSuggestion'](_0x32ce3f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x236610 of _0x32ce3f['getAllAdjacentSuggestions']())_0x236610['accept']();});});}['discardSuggestion'](_0x5a6e67){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1c0850 of _0x5a6e67['getAllAdjacentSuggestions']())_0x1c0850['discard']();});});}['enableCommand'](_0x33b19b,_0x54d3c3){const _0x235911=this['editor']['commands']['get'](_0x33b19b);if(!_0x235911)throw new _0x178c26('track-changes-command-not-found',this,{'commandName':_0x33b19b});if(this['_enabledCommands']['has'](_0x235911))throw new _0x178c26('track-changes-enable-command-twice',this,{'commandName':_0x33b19b});this['_enabledCommands']['add'](_0x235911),_0x54d3c3&&_0x235911['on']('execute',(_0x26e8e7,_0x39f373)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x39f373['length']>0x0&&_0x39f373[_0x39f373['length']-0x1]&&_0x39f373[_0x39f373['length']-0x1]['forceDefaultExecution']?_0x39f373['pop']():(_0x26e8e7['return']=_0x54d3c3((..._0x4a245b)=>_0x235911['execute'](..._0x4a245b,{'forceDefaultExecution':!0x0}),..._0x39f373),_0x26e8e7['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x52fbf9){let _0x5d42de,_0x3ee74d;const _0x5d189c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5d42de=_0x52fbf9();}catch(_0x51eea3){_0x3ee74d=_0x51eea3;}return _0x5d189c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3ee74d&&_0x178c26['rethrowUnexpectedError'](_0x3ee74d,this),_0x5d42de;}['markInsertion'](_0x3bc609,_0x37c14d=null,_0x5a4df9={}){if(_0x3bc609['isCollapsed'])return null;const _0x47dad2=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4be5a1,meta:_0x4aaec4}of this['_findSuggestions'](_0x3bc609,'insertion'))if(_0x4aaec4['isOwn']){if(!_0x4aaec4['isNextTo']){if(_0x4aaec4['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x4be5a1,_0x5a4df9))continue;return _0x4be5a1;}if(zt(_0x4be5a1,_0x5a4df9))return _0x4be5a1;this['_breakSuggestionMarker'](_0x4be5a1,_0x3bc609['start'],_0x3bc609['end']);break;}if(_0x37c14d==_0x4be5a1['subType']&&zt(_0x4be5a1,_0x5a4df9)){const _0x3b699c=_0x4be5a1['getFirstRange']();return _0x3b699c['start']['isEqual'](_0x3bc609['end'])?this['_setSuggestionRange'](_0x4be5a1,this['_model']['createRange'](_0x3bc609['start'],_0x3b699c['end'])):this['_setSuggestionRange'](_0x4be5a1,this['_model']['createRange'](_0x3b699c['start'],_0x3bc609['end'])),_0x4be5a1;}}const _0x29229c=_0x53896e(),_0x910bb4=_0x47dad2['id'],_0x455a14=_0x37c14d?'insertion:'+_0x37c14d:'insertion',_0x49157a=this['_setSuggestionData']({'id':_0x29229c,'type':_0x455a14,'createdAt':new Date(),'authorId':_0x910bb4,'attributes':_0x5a4df9});return this['_addSuggestionMarker'](_0x455a14,_0x29229c,_0x910bb4,_0x3bc609),_0x49157a;}['markMultiRangeInsertion'](_0x5d1ce2,_0xd18c75='multi',_0x55e6d2={}){const _0x5604ed=this['editor']['plugins']['get']('Users')['me'],_0x1bff8f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xd18c75,'join');for(const _0x496125 of this['getSuggestions']())if(_0x496125['author']['id']==_0x5604ed['id']&&'insertion'==_0x496125['type']&&_0x496125['subType']==_0xd18c75&&zt(_0x496125,_0x55e6d2)&&(_0x1bff8f(_0x496125['getRanges'](),_0x5d1ce2)||_0x1bff8f(_0x5d1ce2,_0x496125['getRanges']()))){for(const _0x1a6181 of _0x5d1ce2)_0x496125['addRange'](_0x1a6181);return _0x496125;}for(const {suggestion:_0x2c2568,meta:_0x3f2848}of this['_findSuggestions'](_0x5d1ce2,'insertion')){if(!_0x3f2848['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3f2848['containsRangeInObject'])continue;if(!zt(_0x2c2568,_0x55e6d2))continue;let _0x5e5b34=!0x0;for(const _0x1ac250 of _0x2c2568['getRanges']())for(const _0x479ad8 of _0x5d1ce2)if(!_0x1ac250['containsRange'](_0x479ad8)){_0x5e5b34=!0x1;break;}if(_0x5e5b34)return _0x2c2568;}const _0x35c71a=_0x53896e(),_0x340b5a=_0x5604ed['id'],_0x5b8ac7='insertion:'+_0xd18c75,_0x129426=this['_setSuggestionData']({'id':_0x35c71a,'type':_0x5b8ac7,'createdAt':new Date(),'authorId':_0x340b5a,'attributes':_0x55e6d2});for(const _0x265742 of _0x5d1ce2)this['_addSuggestionMarker'](_0x5b8ac7,_0x35c71a,_0x340b5a,_0x265742,u['getMultiRangeId']());return _0x129426;}['markInlineFormat'](_0x53d007,_0xb49d3e,_0x1e2b08=null,_0x3edcb4={}){if(_0x1e2b08=_0x1e2b08||Gt(_0xb49d3e),_0x53d007['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x47cf08=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1e2b08,'accept');return this['forceDefaultExecution'](()=>_0x47cf08([_0x53d007],_0xb49d3e,_0x3edcb4)),null;}const _0x162881=this['editor']['plugins']['get']('Users')['me'],_0x276f11=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3e3e80,meta:_0x130598}of this['_findSuggestions'](_0x53d007,'insertion'))_0x130598['isOwn']&&!_0x130598['isInsideObject']&&_0x276f11['push'](..._0x3e3e80['getRanges']());}const _0x1722ce=function(_0x1b2092,_0x467eed){const _0x19edd1=[];for(const _0x567dcb of _0x467eed){const _0x161601=_0x1b2092['getIntersection'](_0x567dcb);_0x161601&&_0x19edd1['push'](_0x161601);}return _0x19edd1;}(_0x53d007,_0x276f11),_0x2937e9=function(_0x35f5a5,_0x102275){const _0x5b2f91=[_0x35f5a5];for(const _0x2e5c22 of _0x102275){let _0xb883ec=0x0;for(;_0xb883ec<_0x5b2f91['length'];){const _0x42b1e8=_0x5b2f91[_0xb883ec]['getDifference'](_0x2e5c22);_0x5b2f91['splice'](_0xb883ec,0x1,..._0x42b1e8),_0xb883ec+=_0x42b1e8['length'];}}return _0x5b2f91;}(_0x53d007,_0x276f11);_0x1722ce['length']&&this['_model']['change'](()=>{for(const _0x4ef264 of _0x1722ce){const _0x3232b0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1e2b08,'accept');this['forceDefaultExecution'](()=>_0x3232b0([_0x4ef264],_0xb49d3e,_0x3edcb4));}});for(const _0x409aea of _0x2937e9){let _0x19b441=null,_0x328e9a=_0x409aea['start'],_0x5a5bac=_0x409aea['end'];for(const {suggestion:_0x43e87b,meta:_0x2e262d}of this['_findSuggestions'](_0x409aea,'formatInline')){if(!_0x2e262d['isOwn'])continue;if(_0x43e87b['subType']!=_0x1e2b08)continue;if(!zt(_0x43e87b,_0x3edcb4))continue;const _0xe81c4d=_0x43e87b['getFirstRange']();if(_0xe81c4d['containsRange'](_0x409aea,!0x0))return null;_0x328e9a=_0x328e9a['isBefore'](_0xe81c4d['start'])?_0x328e9a:_0xe81c4d['start'],_0x5a5bac=_0x5a5bac['isAfter'](_0xe81c4d['end'])?_0x5a5bac:_0xe81c4d['end'],_0x19b441?_0xe81c4d['start']['isBefore'](_0x19b441['getFirstRange']()['start'])?(_0x19b441['removeMarkers'](),_0x19b441=_0x43e87b):_0x43e87b['removeMarkers']():_0x19b441=_0x43e87b;}const _0x1ccbeb=this['_model']['createRange'](_0x328e9a,_0x5a5bac);if(_0x19b441)this['_setSuggestionRange'](_0x19b441,_0x1ccbeb);else{const _0x37a961=_0x53896e(),_0x4c5c16=_0x162881['id'];this['_setSuggestionData']({'id':_0x37a961,'type':'formatInline:'+_0x1e2b08,'data':_0xb49d3e,'createdAt':new Date(),'authorId':_0x4c5c16,'attributes':_0x3edcb4}),this['_addSuggestionMarker']('formatInline:'+_0x1e2b08,_0x37a961,_0x4c5c16,_0x1ccbeb);}}return null;}['markBlockFormat'](_0x421a7b,_0x5b7227,_0x4db44b=[],_0x28859f=null,_0x46b349={}){_0x5b7227['formatGroupId']||(_0x5b7227['formatGroupId']=_0x5b7227['commandName']),_0x5b7227['multipleBlocks']=_0x421a7b['is']('range'),_0x28859f=_0x28859f||Gt(_0x5b7227);const _0x14b1a9=_0x4db44b['map'](_0x3d9085=>Jt(_0x3d9085,this['_model'])),_0x1f30f0=_0x421a7b['is']('range')?_0x421a7b:Jt(_0x421a7b,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2c7f76=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28859f,'accept');return this['forceDefaultExecution'](()=>_0x2c7f76([_0x1f30f0],_0x5b7227,_0x46b349)),null;}_0x14b1a9['push'](_0x1f30f0);let _0x264753=!0x0;for(const _0xa22287 of _0x14b1a9)if(!this['_rangeIsInLocalUserInsertion'](_0xa22287)){_0x264753=!0x1;break;}if(_0x264753&&'always'!==this['_trackFormatChanges']){const _0x338264=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28859f,'accept');return this['forceDefaultExecution'](()=>_0x338264([_0x1f30f0],_0x5b7227,_0x46b349)),null;}let _0x5e15e0=null,_0x419309=_0x1f30f0['start'],_0x480617=_0x1f30f0['end'];for(const {suggestion:_0x4ee8e0,meta:_0x158f45}of this['_findSuggestions'](_0x1f30f0,'formatBlock')){if(!_0x158f45['isOwn'])continue;if(_0x158f45['isNextTo']||_0x158f45['containsRangeInObject']||_0x158f45['isInsideObject'])continue;if(_0x4ee8e0['data']['formatGroupId']!=_0x5b7227['formatGroupId'])continue;if(!zt(_0x4ee8e0,_0x46b349))continue;const _0x2d8bcf=_0x4ee8e0['getFirstRange']();if(_0x4ee8e0['subType']==_0x28859f){if(_0x2d8bcf['containsRange'](_0x1f30f0,!0x0))return null;_0x419309=_0x419309['isBefore'](_0x2d8bcf['start'])?_0x419309:_0x2d8bcf['start'],_0x480617=_0x480617['isAfter'](_0x2d8bcf['end'])?_0x480617:_0x2d8bcf['end'],_0x5e15e0?_0x2d8bcf['start']['isBefore'](_0x5e15e0['getFirstRange']()['start'])?(_0x5e15e0['removeMarkers'](),_0x5e15e0=_0x4ee8e0):_0x4ee8e0['removeMarkers']():_0x5e15e0=_0x4ee8e0;}else{const _0x286e1c=_0x1f30f0['getIntersection'](_0x2d8bcf);this['_cutOutSuggestionMarker'](_0x4ee8e0,_0x286e1c);}}const _0x2cadf0=this['editor']['plugins']['get']('Users')['me'],_0x39d68e=_0x53896e(),_0x5bd0b4=_0x2cadf0['id'];if(_0x5e15e0)return this['_setSuggestionRange'](_0x5e15e0,this['_model']['createRange'](_0x419309,_0x480617)),_0x5e15e0;{const _0x48c60a=this['_setSuggestionData']({'id':_0x39d68e,'type':'formatBlock:'+_0x28859f,'data':_0x5b7227,'createdAt':new Date(),'authorId':_0x5bd0b4,'attributes':_0x46b349});return this['_addSuggestionMarker']('formatBlock:'+_0x28859f,_0x39d68e,_0x5bd0b4,this['_model']['createRange'](_0x419309,_0x480617)),_0x48c60a;}}['markMultiRangeBlockFormat'](_0x43fc5f,_0x2740a9,_0x32fc6b=[],_0x343d7d=null,_0x43966b={}){_0x2740a9['formatGroupId']||(_0x2740a9['formatGroupId']=_0x2740a9['commandName']);const _0x113aa6=_0x43fc5f[0x0];_0x2740a9['multipleBlocks']=_0x113aa6['is']('range'),_0x343d7d=_0x343d7d||Gt(_0x2740a9);const _0x180bd9=_0x32fc6b['map'](_0x1f05e7=>Jt(_0x1f05e7,this['_model'])),_0x358f00=_0x113aa6['is']('range')?_0x43fc5f:_0x43fc5f['map'](_0x586eb7=>Jt(_0x586eb7,this['_model']));if('never'===this['_trackFormatChanges']){const _0xf22701=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x343d7d,'accept');return this['forceDefaultExecution'](()=>_0xf22701(_0x358f00,_0x2740a9,_0x43966b)),null;}_0x180bd9['push'](..._0x358f00);let _0x5a678c=!0x0;for(const _0x314618 of _0x180bd9)if(!this['_rangeIsInLocalUserInsertion'](_0x314618)){_0x5a678c=!0x1;break;}if(_0x5a678c&&'always'!==this['_trackFormatChanges']){const _0x5a4dfa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x343d7d,'accept');return this['forceDefaultExecution'](()=>_0x5a4dfa(_0x358f00,_0x2740a9,_0x43966b)),null;}const _0x4e60f1=this['editor']['plugins']['get']('Users')['me'];for(const _0x349079 of this['getSuggestions']()){if(_0x349079['author']['id']!=_0x4e60f1['id'])continue;if('formatBlock'!=_0x349079['type']||_0x349079['data']['formatGroupId']!=_0x2740a9['formatGroupId'])continue;if(!zt(_0x349079,_0x43966b))continue;const _0x3cdd5d=_0x349079['subType']==_0x343d7d;for(let _0x56dd1b=0x0;_0x56dd1b<_0x358f00['length'];_0x56dd1b++){const _0x49ccaa=_0x358f00[_0x56dd1b];for(const _0xc2ffb of _0x349079['getMarkers']()){const _0x237574=_0xc2ffb['getRange']();if(_0x49ccaa['isEqual'](_0x237574)){_0x3cdd5d?(_0x358f00['splice'](_0x56dd1b,0x1),_0x56dd1b--):_0x349079['removeMarker'](_0xc2ffb['name']);break;}}}}if(0x0==_0x358f00['length'])return null;const _0x1141da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x343d7d,'join');for(const _0x2c6a66 of this['getSuggestions']())if(_0x2c6a66['author']['id']==_0x4e60f1['id']&&'formatBlock'==_0x2c6a66['type']&&_0x2c6a66['data']['formatGroupId']==_0x2740a9['formatGroupId']&&_0x2c6a66['subType']==_0x343d7d&&zt(_0x2c6a66,_0x43966b)&&(_0x1141da(_0x2c6a66['getRanges'](),_0x358f00)||_0x1141da(_0x358f00,_0x2c6a66['getRanges']()))){for(const _0x92c4e4 of _0x358f00)_0x2c6a66['addRange'](_0x92c4e4);return _0x2c6a66;}const _0x33c948=_0x53896e(),_0x45bd13=_0x4e60f1['id'],_0x30dcb4='formatBlock:'+_0x343d7d,_0x39eef4=this['_setSuggestionData']({'id':_0x33c948,'type':_0x30dcb4,'data':_0x2740a9,'createdAt':new Date(),'authorId':_0x45bd13,'attributes':_0x43966b});for(const _0x5e5dc8 of _0x358f00)this['_addSuggestionMarker'](_0x30dcb4,_0x33c948,_0x45bd13,_0x5e5dc8,u['getMultiRangeId']());return _0x39eef4;}['markDeletion'](_0x194859,_0x203b5d=null,_0x129165={}){if(_0x194859['isCollapsed'])return null;const _0x34d672=this['editor']['plugins']['get']('Users')['me'],_0x7c2ee4=new _0x42c1a5(_0x194859['start'],_0x194859['end']);for(const {suggestion:_0x10e187,meta:_0x2f02a6}of this['_findSuggestions'](_0x7c2ee4,'insertion'))if(_0x2f02a6['isOwn']&&!_0x2f02a6['isNextTo']){if(_0x10e187['isMultiRange']){const _0x3d4d19=_0x10e187['getRanges']()['filter'](_0x50a145=>'$graveyard'!=_0x50a145['root']['rootName']);_0x3d4d19['every'](_0x3b7e24=>_0x7c2ee4['containsRange'](_0x3b7e24,!0x0))&&_0x10e187['discard']();if(_0x3d4d19['some'](_0x55805d=>_0x55805d['containsRange'](_0x7c2ee4,!0x0))){const _0x35bd30=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x203b5d,'accept');return this['forceDefaultExecution'](()=>_0x35bd30([_0x7c2ee4],null,_0x129165)),null;}}else{const _0x2167fe=_0x7c2ee4['getIntersection'](_0x10e187['getFirstRange']());null!==_0x2167fe&&_0x10e187['_onDiscard']([_0x2167fe],null,_0x129165);}}if(_0x7c2ee4['detach'](),_0x7c2ee4['isCollapsed']||'$graveyard'==_0x7c2ee4['root']['rootName'])return null;let _0x5ee15e=null,_0x192f5c=_0x7c2ee4['start'],_0x3bc30f=_0x7c2ee4['end'];const _0x5ca0c9=this['_findSuggestions'](_0x7c2ee4,'deletion');for(const {suggestion:_0x5634b9,meta:_0x59da8b}of _0x5ca0c9){const _0x1f7a34=this['_model']['createRange'](_0x192f5c,_0x3bc30f);if(_0x59da8b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x59da8b['containsRangeInObject']&&!_0x59da8b['isInsideObject'])){if(_0x5634b9['isMultiRange']){if(!zt(_0x5634b9,_0x129165))continue;let _0x1018f4=!0x0;for(const _0x52c4c1 of _0x5634b9['getRanges']()){if(_0x52c4c1['containsRange'](_0x1f7a34,!0x0))return _0x5634b9;_0x1f7a34['containsRange'](_0x52c4c1)||(_0x1018f4=!0x1);}_0x1018f4&&_0x5634b9['discard']();}else{const _0x43e277=_0x5634b9['getFirstRange']();if(_0x43e277['containsRange'](_0x1f7a34,!0x0))return _0x5634b9;if(!zt(_0x5634b9,_0x129165)){_0x1f7a34['containsRange'](_0x43e277)?_0x5634b9['removeMarkers']():_0x43e277['containsPosition'](_0x192f5c)?_0x192f5c=_0x43e277['end']:_0x43e277['containsPosition'](_0x3bc30f)&&(_0x3bc30f=_0x43e277['start']);continue;}_0x192f5c=_0x192f5c['isBefore'](_0x43e277['start'])?_0x192f5c:_0x43e277['start'],_0x3bc30f=_0x3bc30f['isAfter'](_0x43e277['end'])?_0x3bc30f:_0x43e277['end'],_0x129165=Object['assign']({},_0x5634b9['attributes']),_0x5ee15e?_0x43e277['start']['isBefore'](_0x5ee15e['getFirstRange']()['start'])?(_0x5ee15e['removeMarkers'](),_0x5ee15e=_0x5634b9):_0x5634b9['removeMarkers']():_0x5ee15e=_0x5634b9;}}}if(_0x5ee15e)return this['_setSuggestionRange'](_0x5ee15e,this['_model']['createRange'](_0x192f5c,_0x3bc30f)),_0x5ee15e;{const _0x25d49c=_0x53896e(),_0x42628d=this['_model']['createRange'](_0x192f5c,_0x3bc30f),_0x373d7b=_0x34d672['id'],_0x575696=_0x203b5d?'deletion:'+_0x203b5d:'deletion',_0x54cc16=this['_setSuggestionData']({'id':_0x25d49c,'type':_0x575696,'createdAt':new Date(),'authorId':_0x373d7b,'attributes':_0x129165});return this['_addSuggestionMarker'](_0x575696,_0x25d49c,_0x373d7b,_0x42628d),_0x54cc16;}}['markMultiRangeDeletion'](_0x40846e,_0x7dd348='multi',_0x36221a={}){const _0x590c9e=this['editor']['plugins']['get']('Users')['me'],_0x40b43d=_0x40846e['map'](_0x15204e=>new _0x42c1a5(_0x15204e['start'],_0x15204e['end'])),_0x41b9bf=new Set();for(const {suggestion:_0x375329,meta:_0x4346a5}of this['_findSuggestions'](_0x40b43d,'insertion'))_0x4346a5['isOwn']&&!_0x4346a5['isNextTo']&&_0x41b9bf['add'](_0x375329);for(const _0x2a7667 of _0x41b9bf)if(_0x2a7667['isMultiRange']){const _0x2d27c5=_0x2a7667['getRanges']();(!_0x2a7667['attributes']||!_0x2a7667['attributes']['skipNestingCheck'])&&(_0x2d27c5['every'](_0x35f5ac=>_0x40b43d['some'](_0x47e8f7=>_0x47e8f7['containsRange'](_0x35f5ac,!0x0)))&&_0x2a7667['discard']());if(_0x40b43d['every'](_0x1b4d43=>_0x2d27c5['some'](_0x3da0cd=>_0x3da0cd['containsRange'](_0x1b4d43,!0x0)))){const _0x2e81e4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x7dd348,'accept');return this['forceDefaultExecution'](()=>_0x2e81e4(_0x40846e,null,_0x36221a)),null;}}else{const _0xa7c1e1=_0x2a7667['getFirstRange']();_0x40b43d['some'](_0x236894=>_0x236894['containsRange'](_0xa7c1e1,!0x0))&&_0x2a7667['discard']();if(_0x40b43d['every'](_0x451a17=>_0xa7c1e1['containsRange'](_0x451a17,!0x0))){const _0x590f77=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x7dd348,'accept');return this['forceDefaultExecution'](()=>_0x590f77(_0x40b43d,null,_0x36221a)),null;}}const _0x118982=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x7dd348,'join');let _0x35e9c6=null;for(const _0x5a1985 of this['getSuggestions']())if(_0x5a1985['author']['id']==_0x590c9e['id']&&_0x5a1985['isInContent']&&'deletion'==_0x5a1985['type']&&_0x5a1985['subType']==_0x7dd348&&zt(_0x5a1985,_0x36221a)&&(_0x118982(_0x5a1985['getRanges'](),_0x40b43d)||_0x118982(_0x40b43d,_0x5a1985['getRanges']()))){if(_0x35e9c6){if(_0x5a1985['commentThread']&&_0x5a1985['commentThread']['length'])continue;for(const _0xca59b7 of _0x5a1985['getRanges']())_0x35e9c6['isIntersectingWithRange'](_0xca59b7)||_0x35e9c6['addRange'](_0xca59b7);_0x5a1985['removeMarkers']();}else{_0x35e9c6=_0x5a1985;for(const _0x475d2e of _0x40b43d)_0x5a1985['isIntersectingWithRange'](_0x475d2e)||_0x5a1985['addRange'](_0x475d2e);}}if(_0x35e9c6)return _0x35e9c6;_0x41b9bf['clear']();for(const {suggestion:_0x34c2a9,meta:_0x172949}of this['_findSuggestions'](_0x40b43d,'deletion'))_0x172949['isOwn']&&(this['_mergeNestedSuggestions']||!_0x172949['containsRangeInObject']&&!_0x172949['isInsideObject'])&&zt(_0x34c2a9,_0x36221a)&&_0x41b9bf['add'](_0x34c2a9);for(const _0x1d1fe0 of _0x41b9bf){const _0xa4503e=_0x1d1fe0['getRanges']();if(!_0x36221a||!_0x36221a['skipNestingCheck']){if(_0x40b43d['every'](_0x4ae29a=>_0xa4503e['some'](_0x381d9a=>_0x381d9a['containsRange'](_0x4ae29a,!0x0))))return _0x1d1fe0;}(!_0x1d1fe0['attributes']||!_0x1d1fe0['attributes']['skipNestingCheck'])&&(_0xa4503e['every'](_0x4aad74=>_0x40b43d['some'](_0x270d41=>_0x270d41['containsRange'](_0x4aad74,!0x0)))&&_0x1d1fe0['discard']());}const _0x22ed00=_0x53896e(),_0x20bd56=_0x590c9e['id'],_0x127770='deletion:'+_0x7dd348,_0x1bb9b1=this['_setSuggestionData']({'id':_0x22ed00,'type':_0x127770,'createdAt':new Date(),'authorId':_0x20bd56,'attributes':_0x36221a});for(const _0x23efbb of _0x40b43d)_0x23efbb['detach'](),_0x23efbb['isCollapsed']||'$graveyard'==_0x23efbb['root']['rootName']||this['_addSuggestionMarker'](_0x127770,_0x22ed00,_0x20bd56,_0x23efbb,u['getMultiRangeId']());return _0x1bb9b1;}['markAttributeChange'](_0x3bc25d,_0xc35df1,_0x519257,_0x49a47a,_0x343eee){if(_0x3bc25d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3a5a42=this['editor']['plugins']['get']('Users')['me']['id'],_0x3bc7e0=Array['from'](this['_suggestions']['values']())['filter'](_0x25e0db=>'attribute'==_0x25e0db['type']&&_0x25e0db['data']['key']==_0xc35df1&&_0x25e0db['isIntersectingWithRange'](_0x3bc25d));if('default'===this['_trackFormatChanges']){const _0x4a2d34=this['_findSuggestions'](_0x3bc25d,'insertion')['filter'](({meta:_0x584d0c})=>_0x584d0c['isOwn']&&!_0x584d0c['isInsideObject']&&!_0x584d0c['isNextTo'])['map'](({suggestion:_0x48bd7c})=>_0x48bd7c);_0x3bc7e0['unshift'](..._0x4a2d34);}const _0x1a6b51=new Map([[_0x3bc25d,_0x519257]]);for(const _0x1ffae1 of _0x3bc7e0){const _0xd96e35='attribute'==_0x1ffae1['type']?_0x1ffae1['data']['oldValue']:void 0x0,_0x327744=_0x1ffae1['getFirstRange'](),_0x2f770b=Array['from'](_0x1a6b51['keys']())['find'](_0x102466=>_0x102466['isIntersecting'](_0x327744));if(!_0x2f770b)continue;const _0x41ff13=_0x2f770b['getDifference'](_0x327744);this['_isBlockAttribute'](_0xc35df1)&&'insertion'==_0x1ffae1['type']&&0x0!=_0x41ff13['length']||(_0x1a6b51['delete'](_0x2f770b),_0x41ff13['forEach'](_0x13a436=>{_0x1a6b51['set'](_0x13a436,_0x519257);}),'insertion'!=_0x1ffae1['type']&&_0xd96e35!=_0x49a47a&&_0x1a6b51['set'](_0x2f770b['getIntersection'](_0x327744),_0xd96e35));}const _0x43fb78=[];for(const [_0x2a46fd,_0x855710]of _0x1a6b51){const _0x16040b=_0x53896e(),_0x432ff4={'key':_0xc35df1,'oldValue':_0x855710,'newValue':_0x49a47a};_0xc35df1['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0xc35df1});const _0x1171e1=('attribute:'+(_0xc35df1+'|'+Gt({'newValue':_0x49a47a})))['substring'](0x0,0x3c),_0x2949db=this['_setSuggestionData']({'id':_0x16040b,'type':_0x1171e1,'data':_0x432ff4,'createdAt':new Date(),'authorId':_0x3a5a42,'attributes':_0x343eee});_0x43fb78['push'](_0x2949db),this['_addSuggestionMarker'](_0x1171e1,_0x16040b,_0x3a5a42,_0x2a46fd);}return _0x43fb78;}['enableDefaultAttributesIntegration'](_0x364bba){this['enableCommand'](_0x364bba,(_0x52b9df,..._0x491d95)=>{this['_recordAttributeChanges'](()=>{_0x52b9df(..._0x491d95);});});}['registerBlockAttribute'](_0x1a47e3){this['_blockAttributeKeys']['add'](_0x1a47e3);}['registerInlineAttribute'](_0x40d9b3){this['_inlineAttributeKeys']['add'](_0x40d9b3);}['_getAttributeKey'](_0x34a0fc){return'attribute'==_0x34a0fc['type']?_0x34a0fc['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x32a6a1,_0x3b0f21){const _0x1ee39d=_0x32a6a1['getFirstMarker']();this['_model']['change'](_0x40da9a=>{_0x40da9a['updateMarker'](_0x1ee39d,{'range':_0x3b0f21});});}['_addThreadToSuggestion'](_0x4976f2){const _0x375774=_0x4976f2['id'],_0x14e4ac=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x375774)||this['_commentsRepository']['addCommentThread']({'channelId':_0x14e4ac,'threadId':_0x375774,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1c1380=this['_commentsRepository']['getCommentThread'](_0x375774);_0x1c1380['unbind']('isRemovable'),_0x1c1380['isRemovable']=!0x1,_0x4976f2['commentThread']=_0x1c1380;}['_checkSuggestionCorrectness'](_0x7fe814,_0x2ffd23,_0x29ec56,_0x54a0d9){if(_0x7fe814['type']!=_0x2ffd23||_0x7fe814['subType']!=_0x29ec56||_0x7fe814['creator']['id']!=_0x54a0d9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x178c26('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2efb6b,_0x274e72){const _0x4d60e3=_0x2efb6b['getFirstRange']();if(_0x274e72['isEqual'](_0x4d60e3))_0x2efb6b['removeMarkers']();else{if(_0x4d60e3['containsRange'](_0x274e72)){const _0x362b6c=this['_model']['createPositionAt'](_0x274e72['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2efb6b,this['_model']['createRange'](_0x4d60e3['start'],_0x362b6c));const _0x1392a1=_0x53896e(),_0x1fb9f4=_0x2efb6b['creator']['id'],_0x5a6fbf=_0x2efb6b['type']+':'+_0x2efb6b['subType'];this['_setSuggestionData']({'id':_0x1392a1,'type':_0x5a6fbf,'createdAt':new Date(),'authorId':_0x1fb9f4,'data':_0x2efb6b['data'],'attributes':_0x2efb6b['attributes']});const _0xc528bb=this['_model']['createPositionAt'](_0x274e72['end']['parent'],'after'),_0x24193b=this['_model']['createRange'](_0xc528bb,_0x4d60e3['end']);this['_addSuggestionMarker'](_0x5a6fbf,_0x1392a1,_0x1fb9f4,_0x24193b);}else{if(_0x4d60e3['containsPosition'](_0x274e72['start'])){const _0x578a94=this['_model']['createPositionAt'](_0x274e72['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2efb6b,this['_model']['createRange'](_0x4d60e3['start'],_0x578a94));}else{const _0x3ed7f0=this['_model']['createPositionAt'](_0x274e72['end']['parent'],'after');this['_setSuggestionRange'](_0x2efb6b,this['_model']['createRange'](_0x3ed7f0,_0x4d60e3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x423e70){for(const {suggestion:_0x43dba8,meta:_0x37a35e}of this['_findSuggestions'](_0x423e70,'insertion')){if(!_0x37a35e['isOwn'])continue;const _0x111f9b=_0x43dba8['getRanges']();for(const _0x308761 of _0x111f9b)if(!_0x423e70['getDifference'](_0x308761)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1b2c0b){const _0x5d474c=this['editor']['plugins']['get']('Users')['getUser'](_0x1b2c0b);if(!_0x5d474c)throw new _0x178c26('track-changes-user-not-found',this);return _0x5d474c;}['_getExternalAuthor'](_0x1a73b5){const _0xc920be=this['editor']['plugins']['get']('Users'),_0x244c6a=_0x2f7dcd('external:'+_0x1a73b5),_0x3af42a=_0xc920be['getUser'](_0x244c6a);return _0x3af42a||_0xc920be['addUser']({'id':_0x244c6a,'name':_0x1a73b5});}['_createSuggestion'](_0x200a18,_0x1c72f9,_0xb33139,_0xcdef94,_0x5a8f64){const _0x3c37f3=this['_getAuthorFromId'](_0xcdef94),_0x47c8b2=this['_suggestionFactory']['buildSuggestion'](_0x200a18,_0x1c72f9,_0xb33139,_0x3c37f3,_0x5a8f64,_0x308a3e=>{this['_updateSuggestionData'](_0xb33139,{'attributes':_0x308a3e});const _0x281a6c=this['getSuggestion'](_0xb33139);this['_joinWithAdjacentSuggestions'](new Set([_0x281a6c])),this['_refreshSuggestionsChain'](new Set([_0x281a6c]));});return this['listenTo'](_0x47c8b2,'accept',()=>{this['_updateSuggestionData'](_0xb33139,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x47c8b2,'discard',()=>{this['_updateSuggestionData'](_0xb33139,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xb33139,_0x47c8b2),this['_suggestionState']['set'](_0x47c8b2,'notReady'),_0x47c8b2;}['_splitMarkerName'](_0x1f0cb7){const _0x1b510e=_0x1f0cb7['split'](':');return{'group':_0x1b510e[0x0],'type':_0x1b510e[0x1],'subType':_0x1b510e['length']>=0x5?_0x1b510e[0x2]:null,'id':_0x1b510e['length']<0x5?_0x1b510e[0x2]:_0x1b510e[0x3],'authorId':_0x1b510e['length']<0x5?_0x1b510e[0x3]:_0x1b510e[0x4],'markerCount':0x6==_0x1b510e['length']?_0x1b510e[0x5]:null};}['_breakSuggestionMarker'](_0x467962,_0x1ac884,_0x1c75e9){const _0x1a8ec4=_0x467962['getFirstRange'](),_0x5e9c80=_0x1a8ec4['start'],_0x1a755d=_0x1a8ec4['end'];this['_setSuggestionRange'](_0x467962,this['_model']['createRange'](_0x5e9c80,_0x1ac884));const _0x5dc287=_0x53896e(),_0x1e57b3=_0x467962['creator']['id'],_0x17fc5d=_0x467962['type']+(_0x467962['subType']?':'+_0x467962['subType']:'');this['_setSuggestionData']({'id':_0x5dc287,'type':_0x17fc5d,'createdAt':new Date(),'authorId':_0x1e57b3,'originalSuggestionId':_0x467962['id'],'attributes':_0x467962['attributes'],'data':_0x467962['data']});const _0x1c1276=this['_getAttributeKey'](_0x467962);('formatBlock'==_0x467962['type']||_0x1c1276&&this['_isBlockAttribute'](_0x1c1276))&&(_0x1c75e9=this['_model']['createPositionBefore'](_0x1c75e9['parent'])),this['_addSuggestionMarker'](_0x17fc5d,_0x5dc287,_0x1e57b3,this['_model']['createRange'](_0x1c75e9,_0x1a755d));}['_findSuggestions'](_0x1fc37f,_0x439216=null){const _0x5ad696=[],_0x448d8d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1fc37f)||(_0x1fc37f=[_0x1fc37f]);for(const _0x1cef62 of this['getSuggestions']()){if(!_0x1cef62['isInContent'])continue;if(_0x439216&&_0x1cef62['type']!=_0x439216)continue;let _0x514bff=!0x1;for(const _0x220b53 of _0x1cef62['getRanges']()){for(const _0x4a88b8 of _0x1fc37f){const _0x468404=_0x4a88b8['start']['isEqual'](_0x220b53['end'])||_0x4a88b8['end']['isEqual'](_0x220b53['start']);if(_0x468404||_0x4a88b8['getIntersection'](_0x220b53)){const _0x3dcfac=_0x4a88b8['containsRange'](_0x220b53)&&Ut(this['_model']['schema'],_0x220b53['start'],_0x4a88b8),_0x2b361f=_0x220b53['containsRange'](_0x4a88b8)&&Ut(this['_model']['schema'],_0x4a88b8['start'],_0x220b53);_0x5ad696['push']({'suggestion':_0x1cef62,'meta':{'isOwn':_0x448d8d==_0x1cef62['author'],'isNextTo':_0x468404,'isInsideObject':_0x3dcfac,'containsRangeInObject':_0x2b361f}}),_0x514bff=!0x0;break;}}if(_0x514bff)break;}}return _0x5ad696;}['_addSuggestionMarker'](_0x4aa235,_0x2b0d07,_0x43b7d2,_0x1989f6,_0x4e842b){this['_model']['change'](_0x18e78f=>{let _0x58b752='suggestion:'+_0x4aa235+':'+_0x2b0d07+':'+_0x43b7d2;_0x4e842b&&(_0x58b752=_0x58b752+':'+_0x4e842b),_0x18e78f['addMarker'](_0x58b752,{'range':_0x1989f6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5b709a){const _0x507522=_0x5b709a['previous'],_0x318068=_0x5b709a['next'];_0x5b709a['previous']=null,_0x5b709a['next']=null,null!=_0x507522&&_0x507522['next']==_0x5b709a&&(_0x507522['next']=_0x318068),null!=_0x318068&&_0x318068['previous']==_0x5b709a&&(_0x318068['previous']=_0x507522),'ready'==this['_suggestionState']['get'](_0x5b709a)&&(this['_suggestionState']['set'](_0x5b709a,'removed'),this['fire']('suggestionUnloaded',_0x5b709a,_0x507522,_0x318068));}['_setSuggestionData'](_0x51814e){const _0x265e4c=_0x51814e['id'],_0x2b0f4b=this['addSuggestionData'](_0x51814e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x16a161=this['editor']['plugins']['get']('PendingActions'),_0x57dfb2=_0x2b0f4b['hasComments'],_0x14b2d5=_0x2b0f4b['subType']?_0x2b0f4b['type']+':'+_0x2b0f4b['subType']:_0x2b0f4b['type'],_0x262570=this['editor']['locale'],_0x1088dc=_0x16a161['add'](o(_0x262570,'PENDING_ACTION_SUGGESTION')),_0x19cb39={'id':_0x265e4c,'type':_0x14b2d5,'hasComments':_0x57dfb2,'data':_0x51814e['data']||null,'originalSuggestionId':_0x51814e['originalSuggestionId']||null,'attributes':_0x2b0f4b['attributes']};this['_adapter']['addSuggestion'](_0x19cb39)['then'](_0x2ec4a8=>{_0x2b0f4b['_saved']=!0x0,_0x16a161['remove'](_0x1088dc),_0x2ec4a8&&_0x2ec4a8['createdAt']&&(this['_suggestions']['get'](_0x265e4c)['createdAt']=_0x2ec4a8['createdAt']);})['catch'](_0x174116=>{throw _0x1f259f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2b0f4b['discard']();}),_0x2b0f4b['stopListening'](),this['_suggestions']['delete'](_0x2b0f4b['id']),this['_suggestionState']['delete'](_0x2b0f4b),_0x174116;});}return _0x2b0f4b;}['_isBlockAttribute'](_0x27468b){return this['_blockAttributeKeys']['has'](_0x27468b);}['_updateSuggestionData'](_0x43e4a2,_0x2a7408){const _0x2c37ed=this['editor']['plugins']['get']('PendingActions'),_0x34365e=this['getSuggestion'](_0x43e4a2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x34365e['_saved']){const _0x1bb745=_0x2c37ed['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x43e4a2,_0x2a7408)['then'](()=>{_0x2c37ed['remove'](_0x1bb745);});}else _0x34365e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x43e4a2,_0x2a7408);});}}['_getSuggestionData'](_0xeab644){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x178c26('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xeab644);}['_handleNewSuggestionMarker'](_0x17def4){const {id:_0x177d1d,type:_0x120176,subType:_0x5592db,authorId:_0x18d52d}=this['_splitMarkerName'](_0x17def4),_0x276a7f=this['_suggestions']['get'](_0x177d1d)||this['_createSuggestion'](_0x120176,_0x5592db,_0x177d1d,_0x18d52d,{});switch(this['_checkSuggestionCorrectness'](_0x276a7f,_0x120176,_0x5592db,_0x18d52d),this['_suggestionState']['get'](_0x276a7f)){case'notReady':this['_getSuggestionData'](_0x177d1d)['then'](_0x47d338=>{let _0x655cff=Promise['resolve']();_0x47d338['hasComments']&&(_0x655cff=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x177d1d})),_0x655cff['then'](()=>{this['addSuggestionData'](_0x47d338)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x276a7f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x177d1d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x276a7f,'ready'),this['fire']('suggestionLoaded',_0x276a7f);break;case'ready':this['fire']('suggestionChanged',_0x276a7f);}return _0x276a7f['addMarkerName'](_0x17def4),_0x276a7f;}['_refreshSuggestionsChain'](_0x596672){const _0x33d88f=Array['from'](_0x596672),_0x50fcf3=_0x33d88f['filter'](_0xc031c7=>'attribute'==_0xc031c7['type']);this['_refreshAttributeSuggestionsChain'](_0x50fcf3);const _0x3b2478=_0x33d88f['filter'](_0x4d9e90=>!_0x4d9e90['isMultiRange']&&'attribute'!=_0x4d9e90['type']),_0x2307d2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4fb763=>!_0x4fb763['isMultiRange']&&'attribute'!=_0x4fb763['type']),_0x1fd5bd=_0x2307d2['filter'](_0x145dec=>!_0x596672['has'](_0x145dec)),_0xbc5173=new Map(_0x2307d2['map'](_0x2941e6=>[_0x2941e6,this['_suggestionFactory']['getSuggestionCallback'](_0x2941e6['type'],_0x2941e6['subType'],'chain')])),_0x15a204=new Map(_0x2307d2['map'](_0x152985=>[_0x152985,_0x152985['getFirstRange']()])),_0x48d1ed=new Set(),_0x5ecc01=new Set();for(let _0x4e326c=0x0;_0x4e326c<_0x3b2478['length'];_0x4e326c++)_0x1dfe13(_0x3b2478[_0x4e326c],_0x3b2478,_0x4e326c+0x1);for(let _0x489a2c=0x0;_0x489a2c<_0x3b2478['length'];_0x489a2c++)_0x1dfe13(_0x3b2478[_0x489a2c],_0x1fd5bd,0x0);const _0x41b516=new Set();for(let _0x10a24a=0x0;_0x10a24a<_0x3b2478['length'];_0x10a24a++){const _0x235507=_0x3b2478[_0x10a24a];!_0x5ecc01['has'](_0x235507)&&_0x235507['previous']&&(_0x41b516['add'](_0x235507['previous']),_0x235507['previous']['next']===_0x235507&&(_0x235507['previous']['next']=null),_0x235507['previous']=null),!_0x48d1ed['has'](_0x235507)&&_0x235507['next']&&(_0x41b516['add'](_0x235507['next']),_0x235507['next']['previous']===_0x235507&&(_0x235507['next']['previous']=null),_0x235507['next']=null);}function _0x1dfe13(_0x1e814a,_0x14346d,_0x3a8100){for(let _0x2515a9=_0x3a8100;_0x2515a9<_0x14346d['length'];_0x2515a9++){const _0x473ee2=_0x8815fc(_0x1e814a,_0x14346d[_0x2515a9]);_0x473ee2&&(_0x473ee2[0x0]['next']=_0x473ee2[0x1],_0x473ee2[0x1]['previous']=_0x473ee2[0x0],_0x48d1ed['add'](_0x473ee2[0x0]),_0x5ecc01['add'](_0x473ee2[0x1]));}}function _0x8815fc(_0x7e2357,_0x4dd542){if(_0x7e2357['author']['id']!==_0x4dd542['author']['id'])return null;const _0x3e73f6=_0xbc5173['get'](_0x7e2357)(_0x7e2357,_0x4dd542,_0x15a204['get'](_0x7e2357),_0x15a204['get'](_0x4dd542));if(!_0x3e73f6)return null;return _0xbc5173['get'](_0x4dd542)(_0x7e2357,_0x4dd542,_0x15a204['get'](_0x7e2357),_0x15a204['get'](_0x4dd542))?_0x3e73f6[0x1]['commentThread']&&_0x3e73f6[0x1]['commentThread']['length']?null:_0x3e73f6:null;}_0x41b516['size']&&this['_refreshSuggestionsChain'](_0x41b516);}['_refreshAttributeSuggestionsChain'](_0x233134){if(0x0==_0x233134['length'])return;const _0x347009=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a7006=>'attribute'==_0x4a7006['type']&&_0x4a7006['_isDataLoaded']),_0x33b4d9=[],_0x25a0f8=new Map();for(const _0x421f46 of _0x347009){const _0x1738ca=_0x2f7dcd(_0x421f46['attributes']);_0x25a0f8['has'](_0x1738ca)||(_0x25a0f8['set'](_0x1738ca,_0x33b4d9['length']),_0x33b4d9['push']([]));const _0x2a2727=_0x25a0f8['get'](_0x1738ca);_0x33b4d9[_0x2a2727]['push'](_0x421f46);}!(function(){_0x33b4d9['sort']((_0x52377c,_0xd9a0bf)=>{const _0x4ef9f3=_0x52377c[0x0]['createdAt'],_0x5e9d5=_0xd9a0bf[0x0]['createdAt'];return _0x4ef9f3==_0x5e9d5?_0x52377c[0x0]['attributes']['groupId']<_0xd9a0bf[0x0]['attributes']['groupId']?-0x1:0x1:_0x4ef9f3<_0x5e9d5?-0x1:0x1;});for(const _0xd0625a of _0x33b4d9)_0xd0625a['sort']((_0x1652d6,_0x2f076c)=>_0x1652d6['id']<_0x2f076c['id']?-0x1:0x1);}());for(let _0x3c72f4=0x0;_0x3c72f4<_0x33b4d9['length'];_0x3c72f4++){if(0x0==_0x33b4d9[_0x3c72f4]['length'])continue;const _0x2a9177=[];for(let _0x1e31bb=_0x3c72f4+0x1;_0x1e31bb<_0x33b4d9['length'];_0x1e31bb++)0x0!=_0x33b4d9[_0x1e31bb]['length']&&_0x5ece8c(_0x33b4d9[_0x3c72f4],_0x33b4d9[_0x1e31bb])&&_0x2a9177['push'](_0x1e31bb);for(const _0x44529 of _0x2a9177)_0x33b4d9[_0x3c72f4]=_0x33b4d9[_0x3c72f4]['concat'](_0x33b4d9[_0x44529]),_0x33b4d9[_0x44529]=[];}for(const _0x5415c8 of _0x33b4d9)for(let _0x1e0d62=0x0;_0x1e0d62<_0x5415c8['length'];_0x1e0d62++){const _0x1f7b9d=_0x5415c8[_0x1e0d62+0x1]||null;_0x5415c8[_0x1e0d62]['next']!==_0x1f7b9d&&(_0x5415c8[_0x1e0d62]['next']=_0x1f7b9d);}for(const _0x4eaf9d of _0x33b4d9)for(let _0x26eb23=0x0;_0x26eb23<_0x4eaf9d['length'];_0x26eb23++){const _0xee2d03=_0x4eaf9d[_0x26eb23-0x1]||null;_0x4eaf9d[_0x26eb23]['previous']!==_0xee2d03&&(_0x4eaf9d[_0x26eb23]['previous']=_0xee2d03);}function _0x5ece8c(_0x383df3,_0x4fab87){if(_0x383df3[0x0]['attributes']['groupId']!==_0x4fab87[0x0]['attributes']['groupId']&&_0x383df3[0x0]['author']!==_0x4fab87[0x0]['author'])return!0x1;if(!function(_0x46fc23,_0x2c69c0){if(!_0x46fc23['hasComments']&&!_0x2c69c0['hasComments'])return!0x0;if(_0x46fc23['hasComments']&&_0x2c69c0['hasComments'])return!0x1;if(_0x46fc23['hasComments']&&_0x2c69c0['createdAt']<_0x46fc23['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2c69c0['hasComments']&&_0x46fc23['createdAt']<_0x2c69c0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x383df3[0x0],_0x4fab87[0x0]))return!0x1;const _0x4980c6=xt(_0x383df3[0x0]['attributes'],'groupId'),_0x49b217=xt(_0x4fab87[0x0]['attributes'],'groupId');if(!_0x5400d1(_0x4980c6,_0x49b217))return!0x1;return!!_0x383df3['every'](_0x7dcb16=>_0x4fab87['some'](_0x4b9973=>_0x7dcb16['getFirstRange']()['isEqual'](_0x4b9973['getFirstRange']())))&&_0x4fab87['every'](_0x1a7439=>_0x383df3['some'](_0x201fed=>_0x1a7439['getFirstRange']()['isEqual'](_0x201fed['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x21b0a2){const _0x434626=Array['from'](_0x21b0a2),_0x40d1f5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x197354=_0x40d1f5['filter'](_0x5b4dcb=>!_0x21b0a2['has'](_0x5b4dcb)),_0x189e3c=new Map(_0x434626['map'](_0x3b1f58=>[_0x3b1f58,this['_suggestionFactory']['getSuggestionCallback'](_0x3b1f58['type'],_0x3b1f58['subType'],'join')])),_0x5bea03=new Map(_0x40d1f5['map'](_0x2aab39=>[_0x2aab39,_0x2aab39['getRanges']()]));for(let _0x1d5dbe=0x0;_0x1d5dbe<_0x434626['length'];_0x1d5dbe++){if(_0x8a968a(this,_0x434626[_0x1d5dbe],_0x434626,_0x1d5dbe+0x1))return!0x0;}for(let _0x1dabec=0x0;_0x1dabec<_0x434626['length'];_0x1dabec++){if(_0x8a968a(this,_0x434626[_0x1dabec],_0x197354,0x0))return!0x0;}return!0x1;function _0x8a968a(_0x262424,_0x16369c,_0x314593,_0x25b664){for(let _0x4c551f=_0x25b664;_0x4c551f<_0x314593['length'];_0x4c551f++){const _0x17480f=_0x314593[_0x4c551f];if(_0x17480f['type']!==_0x16369c['type']||_0x17480f['author']['id']!==_0x16369c['author']['id']||_0x17480f['subType']!==_0x16369c['subType'])continue;if(!qt(_0x16369c,_0x17480f))continue;if('attribute'==_0x16369c['type']&&_0x16369c['data']['oldValue']!=_0x17480f['data']['oldValue'])continue;if('attribute'==_0x16369c['type']&&_0x262424['_isBlockAttribute'](_0x16369c['data']['key']))continue;if('formatBlock'==_0x16369c['type']){const _0x361230=_0x262424['editor']['model'],_0x535ef=_0x16369c['getContainedElement']();if(_0x535ef&&(_0x361230['schema']['isObject'](_0x535ef)||_0x361230['schema']['isLimit'](_0x535ef)))continue;}const _0x1695e1=_0x189e3c['get'](_0x16369c),_0x3383e4=_0x5bea03['get'](_0x16369c),_0x207dbb=_0x5bea03['get'](_0x17480f),_0x3b5685=_0x16369c['commentThread']&&_0x16369c['commentThread']['length'],_0x418e37=_0x17480f['commentThread']&&_0x17480f['commentThread']['length'];if(!_0x3b5685&&_0x1695e1(_0x207dbb,_0x3383e4))return _0x262424['_joinSuggestions'](_0x17480f,_0x16369c),_0x5bea03['delete'](_0x16369c),!0x0;if(!_0x418e37&&_0x1695e1(_0x3383e4,_0x207dbb))return _0x262424['_joinSuggestions'](_0x16369c,_0x17480f),_0x5bea03['delete'](_0x17480f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2ad9ad,_0x52840f){if(_0x2ad9ad['isMultiRange']){for(const _0x144bca of _0x52840f['getRanges']())_0x2ad9ad['addRange'](_0x144bca);}else{const _0x34920a=_0x52840f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2ad9ad,this['_model']['createRange'](_0x2ad9ad['getFirstRange']()['start'],_0x34920a));}_0x52840f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5eeb41,_0x179b26,_0x2f5ffa){const _0x129cdf=_0x5eeb41['startsWith']('format')||_0x5eeb41['startsWith']('attribute')?'FORMATTING':_0x5eeb41['toUpperCase']();return o(this['editor']['locale'],_0x179b26+'_'+_0x129cdf+'_SUGGESTION_ANNOUNCEMENT',_0x2f5ffa);}['_initAriaMarkerChangeAnnouncements'](){const _0x4ba4fe=this['editor'];if(!_0x4ba4fe['ui'])return;const {ariaLiveAnnouncer:_0x735544}=_0x4ba4fe['ui'];_0x5106d6(this['_model'],({left:_0x3dd297,entered:_0x2e63bf})=>{for(const _0x3b38e5 of _0x3dd297){const {group:_0xc3a449,type:_0x38f710}=this['_splitMarkerName'](_0x3b38e5['name']);if('suggestion'===_0xc3a449){_0x735544['announce'](this['_getMarkerAnnouncementText'](_0x38f710,'LEAVE'));break;}}for(const _0x1c6bf0 of _0x2e63bf){const {group:_0x2c9f2c,type:_0x3e7686}=this['_splitMarkerName'](_0x1c6bf0['name']);if('suggestion'===_0x2c9f2c){_0x735544['announce'](this['_getMarkerAnnouncementText'](_0x3e7686,'ENTER',_0x30567f(_0x508ac1)));break;}}});}['_processAttributeChanges'](_0x6d94f0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3b2a3d=this['editor'],_0x1cbc80=_0x3b2a3d['model']['document']['differ']['getChanges']();if(0x0==_0x1cbc80['length'])return!0x1;const _0x5a7d59=[],_0x13d0e2=_0x1cbc80['filter'](_0x396074=>'attribute'==_0x396074['type']),_0xe1904a=_0x1cbc80['filter'](_0x2fbc31=>'insert'==_0x2fbc31['type']&&'$text'!=_0x2fbc31['name']),_0x240a17=_0x1cbc80['filter'](_0x3dc4c0=>'remove'==_0x3dc4c0['type']&&'$text'!=_0x3dc4c0['name']);for(const _0x4dc28e of _0x13d0e2)_0x5a7d59['push']({'key':_0x4dc28e['attributeKey'],'newValue':_0x4dc28e['attributeNewValue'],'oldValue':_0x4dc28e['attributeOldValue'],'range':Lt(_0x4dc28e['range'],_0x3b2a3d['model'])});for(const _0xa5ee24 of _0xe1904a){const _0x194f4f=_0x240a17['find'](_0x25a49b=>_0x25a49b['position']['isEqual'](_0xa5ee24['position']));_0x194f4f&&_0x5a7d59['push']({'key':m,'newValue':_0xa5ee24['name'],'oldValue':_0x194f4f['name'],'range':_0x3b2a3d['model']['createRangeOn'](_0xa5ee24['position']['nodeAfter'])});}return 0x0!=_0x5a7d59['length']&&this['_reduceExistingSuggestions'](_0x6d94f0,_0x5a7d59);}['_processAttributeSuggestions'](_0x498d57){let _0xa6c67f=!0x1;const _0x578c79=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x571913=>_0x571913['data']['newRange']&&_0x571913['name']['startsWith']('suggestion:attribute:'));for(const _0x34ae8c of _0x578c79){const {subType:_0x333b2b,id:_0x36c7f9}=this['_splitMarkerName'](_0x34ae8c['name']),_0x45cd61=_0x333b2b['split']('|')[0x0];for(const _0x303490 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x303490['id']!=_0x36c7f9&&'attribute'==_0x303490['type']&&_0x303490['data']&&_0x303490['data']['key']==_0x45cd61&&_0x303490['getFirstRange']()['isIntersecting'](_0x34ae8c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x303490,_0x34ae8c['data']['newRange'],_0x498d57),_0xa6c67f=!0x0);}return _0xa6c67f;}['_recordAttributeChanges'](_0x13c909){this['_recordAttributeSuggestions']=!0x0,_0x13c909();}['_isRegisteredAttribute'](_0x360f2e){const _0x225751=this['_isBlockAttribute'](_0x360f2e),_0x4204e7=this['_inlineAttributeKeys']['has'](_0x360f2e);return _0x225751||_0x4204e7;}['_reduceExistingSuggestions'](_0x369803,_0x5b46df){if(0x0==_0x5b46df['length'])return!0x1;let _0x11737b=!0x1;for(const _0x286d73 of _0x5b46df){const _0x5b0022=this['_findSuggestions'](_0x286d73['range'],'attribute')['filter'](_0x2f4c57=>!_0x2f4c57['meta']['isNextTo'])['map'](_0x542d18=>_0x542d18['suggestion']),_0x23b070=_0x2f7dcd({'newValue':_0x286d73['newValue']});_0x5b0022['filter'](_0x23945f=>{const [_0x2a3308,_0x276970]=_0x23945f['subType']['split']('|');return _0x2a3308==_0x286d73['key']&&_0x276970!=_0x23b070;})['forEach'](_0x38a198=>{this['_reduceSuggestionAttributeRange'](_0x38a198,_0x286d73['range'],_0x369803),_0x11737b=!0x0;});}return _0x11737b;}['_reduceSuggestionAttributeRange'](_0x25bed6,_0x49e11d,_0x112748){const _0x4181a7=_0x25bed6['getFirstRange']()['getDifference'](_0x49e11d);0x0!==_0x4181a7['length']?0x1!==_0x4181a7['length']?this['_breakSuggestionMarker'](_0x25bed6,_0x49e11d['start'],_0x49e11d['end']):this['_setSuggestionRange'](_0x25bed6,_0x4181a7[0x0]):_0x112748['removeMarker'](_0x25bed6['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x619f8c){this['_editor']=_0x619f8c,this['_model']=_0x619f8c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x53354c,_0x5e3004,_0x14c2fe,_0x5a9f9e,_0x2ebcb1,_0x238c9e){return new u(this['_model'],{'type':_0x53354c,'subType':_0x5e3004,'id':_0x14c2fe,'author':_0x5a9f9e,'creator':_0x5a9f9e,'attributes':_0x2ebcb1,'onAttributesChange':_0x238c9e,'onAccept':(..._0x133fc5)=>this['getSuggestionCallback'](_0x53354c,_0x5e3004,'accept')(..._0x133fc5),'onDiscard':(..._0x24621d)=>this['getSuggestionCallback'](_0x53354c,_0x5e3004,'discard')(..._0x24621d)});}['registerCustomCallback'](_0x4c3304,_0x26c29d,_0xc5fa,_0x292834){const _0x346b55=_0x4c3304+':'+_0x26c29d+':'+_0xc5fa;this['_customCallbacks']['set'](_0x346b55,_0x292834);}['getSuggestionCallback'](_0x5b8c76,_0x11d565,_0x5b18d0){const _0x2dfe31=_0x5b8c76+':'+_0x11d565+':'+_0x5b18d0;return this['_customCallbacks']['get'](_0x2dfe31)||this['_defaultCallbacks']['get'](_0x5b8c76+':'+_0x5b18d0);}['_registerDefaultCallbacks'](){const _0x17532d=()=>!0x1,_0x2b65a4=_0x4bdafd=>{_0x4bdafd['sort']((_0x519778,_0x29fda0)=>_0x519778['start']['isBefore'](_0x29fda0['start'])?0x1:-0x1),this['_model']['change'](_0x162cf1=>{for(const _0x2686ef of _0x4bdafd){let _0x23ff75;_0x23ff75=_0x2686ef['end']['isAtEnd']&&_0x2686ef['end']['parent']==_0x2686ef['start']['nodeAfter']?_0x162cf1['createSelection'](_0x2686ef['start']['nodeAfter'],'on'):_0x162cf1['createSelection'](_0x2686ef),this['_model']['deleteContent'](_0x23ff75,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x270edf=(_0x5055be,_0x202b13)=>{_0x202b13&&this['_model']['change'](_0x23c38f=>{const {commandName:_0x3ef15,commandParams:_0x568967=[]}=_0x202b13,_0x469bd4=_0x5055be['map'](_0x1da07f=>(Vt(_0x1da07f)&&(_0x1da07f=this['_model']['createRange'](_0x1da07f['end'])),_0x1da07f))['filter'](_0x4b3c05=>'$graveyard'!==_0x4b3c05['root']['rootName']);if(_0x469bd4['length']<0x1)return;const _0x4beb2b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4bb63c=>_0x42c1a5['fromRange'](_0x4bb63c));_0x23c38f['setSelection'](_0x469bd4);for(const _0x3fb8ce of this['_editor']['commands']['commands']())_0x3fb8ce['refresh']();_0x568967['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3ef15,..._0x568967);const _0x18091b=_0x4beb2b['filter'](_0x20e7f9=>'$graveyard'!=_0x20e7f9['root']['rootName']);_0x18091b['length']>0x0&&_0x23c38f['setSelection'](_0x18091b);for(const _0x1cb77c of _0x4beb2b)_0x1cb77c['detach']();});},_0x4e1814=(_0x167c73,_0x730cf7)=>0x1==_0x167c73['length']&&0x1==_0x730cf7['length']&&_0x167c73[0x0]['end']['isEqual'](_0x730cf7[0x0]['start']),_0xfdc2f5=(_0x332bde,_0x1b2f9b,_0x6c0744,_0x46087c)=>Ht(_0x332bde,_0x1b2f9b,_0x6c0744,_0x46087c)?[_0x332bde,_0x1b2f9b]:Ht(_0x1b2f9b,_0x332bde,_0x46087c,_0x6c0744)?[_0x1b2f9b,_0x332bde]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x17532d),this['_defaultCallbacks']['set']('insertion:discard',_0x2b65a4),this['_defaultCallbacks']['set']('insertion:join',_0x4e1814),this['_defaultCallbacks']['set']('insertion:chain',_0xfdc2f5),this['_defaultCallbacks']['set']('deletion:accept',_0x2b65a4),this['_defaultCallbacks']['set']('deletion:discard',_0x17532d),this['_defaultCallbacks']['set']('deletion:join',_0x4e1814),this['_defaultCallbacks']['set']('deletion:chain',_0xfdc2f5),this['_defaultCallbacks']['set']('formatInline:accept',_0x270edf),this['_defaultCallbacks']['set']('formatInline:discard',_0x17532d),this['_defaultCallbacks']['set']('formatInline:join',_0x4e1814),this['_defaultCallbacks']['set']('formatInline:chain',_0x17532d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x270edf),this['_defaultCallbacks']['set']('formatBlock:discard',_0x17532d),this['_defaultCallbacks']['set']('formatBlock:join',_0x4e1814),this['_defaultCallbacks']['set']('formatBlock:chain',_0x17532d),this['_defaultCallbacks']['set']('attribute:accept',_0x17532d),this['_defaultCallbacks']['set']('attribute:discard',(_0x1e7666,_0x1caedd)=>{if(!_0x1caedd)return;const _0x1be3df=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2df331=>{if(_0x1caedd['key']==m)for(const _0x3baca1 of _0x1e7666){const _0x5a420e=_0x3baca1['start']['nodeAfter'],_0x3bf420=_0x1caedd['oldValue'];_0x2df331['rename'](_0x5a420e,_0x3bf420);}else{if(_0x1be3df['_isBlockAttribute'](_0x1caedd['key'])){for(const _0x247582 of _0x1e7666)void 0x0!==_0x1caedd['oldValue']?_0x2df331['setAttribute'](_0x1caedd['key'],_0x1caedd['oldValue'],_0x247582['start']['nodeAfter']):_0x2df331['removeAttribute'](_0x1caedd['key'],_0x247582['start']['nodeAfter']);}else{for(const _0x170991 of _0x1e7666)_0x1caedd['oldValue']?_0x2df331['setAttribute'](_0x1caedd['key'],_0x1caedd['oldValue'],_0x170991):_0x2df331['removeAttribute'](_0x1caedd['key'],_0x170991);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4e1814);}}function Ut(_0x25ae2e,_0x195708,_0x24e2c0){for(const _0x2ce85f of _0x195708['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2ce85f['root']==_0x2ce85f)return!0x1;if(!_0x24e2c0['containsItem'](_0x2ce85f))return!0x1;if(_0x25ae2e['isObject'](_0x2ce85f)||_0x25ae2e['isLimit'](_0x2ce85f))return!0x0;}return!0x1;}function Vt(_0x2ae856){return _0x2ae856['end']['parent']==_0x2ae856['start']['nodeAfter']&&_0x2ae856['end']['isAtStart'];}function Pt(_0x714adc,_0x5299d9,_0x5cda79,_0x31705b){const _0x173bfc=_0x5665c8=>!_0x5665c8['item']['is']('$textProxy')&&!_0x31705b['isObject'](_0x5665c8['item']),_0x55bc7c=_0x714adc['start']['getLastMatchingPosition'](_0x173bfc),_0x499554=_0x714adc['end']['getLastMatchingPosition'](_0x173bfc,{'direction':'backward'});return(!_0x714adc['start']['isEqual'](_0x55bc7c)||!_0x714adc['end']['isEqual'](_0x499554))&&(_0x55bc7c['isBefore'](_0x499554)?_0x5cda79['updateMarker'](_0x5299d9,{'range':_0x5cda79['createRange'](_0x55bc7c,_0x499554)}):_0x5cda79['removeMarker'](_0x5299d9),!0x0);}function Gt(_0xf90f1a){return _0x2f7dcd(_0xf90f1a);}function Ft(_0x5532c7){const _0x26f6d5=_0x5532c7['start']['nodeAfter'];return _0x26f6d5&&_0x26f6d5['is']('element');}function Lt(_0x48abdf,_0x390ac5){return null==_0x48abdf['end']['nodeBefore']&&_0x48abdf['end']['parent']==_0x48abdf['start']['nodeAfter']?Jt(_0x48abdf['start']['nodeAfter'],_0x390ac5):_0x48abdf;}function Jt(_0x471a68,_0x395359){const _0x5678c2=_0x395359['schema']['isObject'](_0x471a68)||_0x395359['schema']['isSelectable'](_0x471a68);return _0x395359['createRange'](_0x395359['createPositionAt'](_0x471a68,'before'),_0x5678c2?_0x395359['createPositionAfter'](_0x471a68):_0x395359['createPositionAt'](_0x471a68,'end'));}function Ht(_0x6131c3,_0x106d45,_0x153cac,_0x2f0c9e){return!!qt(_0x6131c3,_0x106d45)&&_0x153cac['end']['isEqual'](_0x2f0c9e['start']);}function qt(_0x3debe5,_0x325e72){if(!_0x3debe5['_isDataLoaded']||!_0x325e72['_isDataLoaded'])return!0x1;const _0x3f4aa7=new Set(Object['keys'](_0x3debe5['attributes'])),_0x24e423=new Set(Object['keys'](_0x325e72['attributes']));if(_0x3f4aa7['delete']('groupId'),_0x24e423['delete']('groupId'),0x0==_0x3f4aa7['size']&&0x0==_0x24e423['size'])return!0x0;if(_0x3f4aa7['size']!=_0x24e423['size'])return!0x1;const _0x4a05e3={..._0x3debe5['attributes']},_0x398057={..._0x325e72['attributes']};return delete _0x4a05e3['groupId'],delete _0x398057['groupId'],JSON['stringify'](_0x4a05e3)==JSON['stringify'](_0x398057);}function zt(_0x231e9a,_0x19721c){const _0x571d4c=Kt(_0x231e9a['attributes']),_0x17a8ff=Kt(_0x19721c);if(!_0x231e9a['_isDataLoaded'])return!0x1;for(const _0x428692 of Object['keys'](_0x17a8ff))if(!_0x5400d1(_0x571d4c[_0x428692],_0x17a8ff[_0x428692]))return!0x1;return!0x0;}function Kt(_0x38c8a3){const _0x5c74e7=Object['assign']({},_0x38c8a3);return delete _0x5c74e7['skipNestingCheck'],delete _0x5c74e7['tablePasteChainId'],_0x5c74e7;}class ge extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x7b4ff5(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x36c1d2,_0x5b171c,_0x3fe932,_0x2969e7){super(),this['model']=_0x5b171c,this['view']=_0x3fe932,this['commentThreadController']=_0x2969e7,this['_editor']=_0x36c1d2,this['_acceptCommand']=_0x36c1d2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x36c1d2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x117b06,_0x430069)=>_0x117b06||_0x430069),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x395ad0=>_0x395ad0&&this['_editor']['model']['canEditAt'](_0x5b171c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1cdae3=>_0x1cdae3&&this['_editor']['model']['canEditAt'](_0x5b171c['getRanges']())),this['_pendingAction']=null,_0x3fe932['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3fe932,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3fe932,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3fe932,'change:isDirty',()=>{_0x3fe932['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0xbd796c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xbd796c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x40447f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3b0852,_0x238666,_0x520d60,_0x28141a){super(_0x3b0852),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5d904c(_0x3b0852,o(_0x3b0852,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x238666['authoredAt']),this['bind']('authoredAt')['to'](_0x238666),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x238666,'authoredAt',this,'descriptionParts',(_0xf20482,_0x59aaa2,_0x3c404c)=>{const _0x159772=_0x3c404c['map'](_0x488b2a=>ns(_0x488b2a['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xf20482-0x1,_0x238666['author']['name'],_0x59aaa2?_0x28141a['formatDateTime'](_0x59aaa2):'',new DOMParser()['parseFromString'](_0x159772,'text/html')['body']['textContent']]);}),this['focusables']=new _0x53ff88(),this['focusTracker']=new _0x3abee6(),this['keystrokes']=new _0x58b6d2(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x50848b=>_0x50848b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x238666,this['_localUser']=_0x520d60,this['_config']=_0x28141a,_0x28141a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x787cb3(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x425776}=this['_config'];this['commentsListView']=new _0x425776(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0xeb769e=>_0xeb769e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2d18ee,_0x2efd93)=>_0x2d18ee||!!_0x2efd93);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x262353}=this['_config'],_0x5d8977=new _0x262353(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2aecd5=_0x5d8977['commentInputView'];return _0x5d8977['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2aecd5,'value',(_0x291294,_0x5628de,_0x8ed7e5)=>!!_0x8ed7e5||_0x291294&&!_0x5628de),_0x2aecd5['on']('submit',(_0x3b1793,_0x5ddc29)=>{this['fire']('addComment',_0x5ddc29),_0x2aecd5['editor']['setData']('');}),_0x2aecd5['on']('cancel',()=>this['focus']()),_0x2aecd5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5d8977;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x2721ff,_0x484932,_0x283cb0,_0x1ddc87){super(_0x2721ff,_0x484932,_0x283cb0,_0x1ddc87),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x57af94=>_0x57af94&&_0x57af94[0x0]?_0x57af94[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1cbb6f,_0x2dc1fd)=>{let _0x44884c='';for(const _0xc0c809 of _0x1cbb6f)_0x44884c+='<p>'+ns(_0xc0c809['content'],_0xc0c809['color'])+'</p>';return _0x2dc1fd?_0x44884c:ti(_0x44884c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1ddc87['SuggestionView'](_0x2721ff,_0x484932,{'formatDateTime':_0x1ddc87['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x47db8f=this['bindTemplate'],_0x1e8260=[this['suggestionView']];return this['commentsListView']&&_0x1e8260['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1e8260['push'](this['commentThreadInputView']),_0x1e8260['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x47db8f['if']('isActive','ck-suggestion-wrapper--active'),_0x47db8f['to']('type',_0x8b0158=>'ck-suggestion-'+_0x8b0158),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x47db8f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1e8260};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ue extends _0x40447f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x140c83,_0x490e43,_0xa42c2f){super(_0x140c83),this['_model']=_0x490e43,this['_config']=_0xa42c2f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x490e43),this['acceptButton']=this['_createButton'](o(_0x140c83,'Accept\x20suggestion'),_0x2cbefb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x140c83,'Discard\x20suggestion'),_0x2cbefb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3011ad(_0x140c83,_0x490e43['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x53ff88([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3abee6(),this['keystrokes']=new _0x58b6d2(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4a8777=>_0x4a8777['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2efd22=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2efd22['innerHTML']=this['description'],this['on']('change:description',(_0x2a54f1,_0x3fe6a2,_0x4b0d8c)=>{_0x2efd22['innerHTML']=_0x4b0d8c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2e0fde=this['bindTemplate'],_0x493ff8=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x2e0fde['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2e0fde['to']('authoredAt',_0x8c6b63=>this['_config']['formatDateTime'](_0x8c6b63))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x493ff8['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x493ff8}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x7cfc96,_0x31afaa,_0x265977,_0x236594,_0x5b5ea7){const _0x394506=new _0xa42cbc(this['locale']);return _0x394506['set']({'label':_0x7cfc96,'icon':_0x31afaa,'tooltip':!0x0,'tooltipPosition':_0x5b5ea7}),_0x394506['extendTemplate']({'attributes':{'class':_0x265977}}),_0x394506['on']('execute',()=>{this['fire'](_0x236594,this['_model']['id']);}),_0x394506;}['_setupKeyboardNavigation'](){const _0x1bde7f=this['element'];this['keystrokes']['listenTo'](_0x1bde7f);for(const _0x4e611e of this['focusables'])this['focusTracker']['add'](_0x4e611e['element']),this['keystrokes']['listenTo'](_0x4e611e['element']);this['keystrokes']['set']('enter',(_0x67d24f,_0x2f4883)=>{_0x1bde7f===_0x67d24f['target']&&(this['focusCycler']['focusFirst'](),_0x2f4883());}),this['keystrokes']['set']('esc',(_0x12a606,_0x5c79b1)=>{_0x1bde7f!==_0x12a606['target']&&(this['focus'](),_0x5c79b1());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x4ead4a{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x591a8d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x321814){super(_0x321814),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x54c62a=this['editor']['config'];_0x54c62a['define']('trackChanges.SuggestionThreadView',de),_0x54c62a['define']('trackChanges.SuggestionView',ue),_0x54c62a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x54c62a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x26466c,_0x481c30){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x23a3c0,_0x4261da]of this['_handleControllerBuffer']){const _0x1b8b0d=this['_suggestionToController']['has'](_0x23a3c0);_0x1b8b0d||_0x4261da?_0x1b8b0d&&_0x4261da&&this['_destroyController'](_0x23a3c0):this['_initializeController'](_0x23a3c0);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x26466c,_0x481c30);}['init'](){const _0x2f52aa=this['editor'],_0x26109e=_0x2f52aa['plugins']['get']('TrackChangesEditing'),_0x4713b1=_0x2f52aa['plugins']['get']('Annotations'),_0x59b7e6=_0x2f52aa['plugins']['get']('EditorAnnotations'),_0x1aa6ed=_0x2f52aa['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x59b7e6['addSourceCollector'](()=>{const _0x4b5605=[];for(const [_0x256ef7,_0x391686]of Array['from'](this['_suggestionToController'])){const _0x2df17b=_0x256ef7['getAllAdjacentSuggestions'](),_0x31e9b6=[];for(const _0x86271 of _0x2df17b){if(!_0x86271['isInContent'])continue;if(_0x86271['isMultiRange']){_0x31e9b6['push'](..._0x86271['getRanges']());continue;}const _0x5caf20=_0x86271['getFirstRange']();if(_0x31e9b6['length']>0x0){const _0x5c3d00=_0x31e9b6[0x0]['getJoined'](_0x5caf20);if(_0x5c3d00){_0x31e9b6[0x0]=_0x5c3d00;continue;}}_0x31e9b6['push'](_0x5caf20);}_0x4b5605['push']([_0x391686['view'],_0x31e9b6]);}return _0x4b5605;}),this['listenTo'](_0x26109e,'suggestionLoaded',(_0x33809a,_0x465f11)=>{this['listenTo'](_0x465f11,'change:previous',(_0x386b13,_0x329396,_0x379d66,_0x1d561b)=>{_0x465f11['isInContent']&&(null==_0x379d66?(this['_updateController'](_0x1d561b['head']),this['_handleSuggestionControllerDelayed'](_0x465f11,!0x1)):(this['_updateController'](_0x379d66['head']),null==_0x1d561b&&this['_handleSuggestionControllerDelayed'](_0x465f11,!0x0)));}),null!==_0x465f11['previous']?this['_updateController'](_0x465f11['head']):this['_handleSuggestionControllerDelayed'](_0x465f11,!0x1);}),this['listenTo'](_0x26109e,'suggestionUnloaded',(_0xb79601,_0x876d32,_0x4ab69c)=>{this['stopListening'](_0x876d32,'change:previous'),this['_handleControllerBuffer']['delete'](_0x876d32),this['_suggestionToController']['has'](_0x876d32)&&this['_destroyController'](_0x876d32),_0x4ab69c&&this['_updateController'](_0x4ab69c['head']);}),this['listenTo'](_0x26109e,'suggestionChanged',(_0x3c23c6,_0x2989ae)=>{this['_updateController'](_0x2989ae);}),this['listenTo'](_0x4713b1,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1aa6ed,'addComment',(_0xb240c4,{threadId:_0x11020d,isFromAdapter:_0x55c770})=>{if(_0x55c770||!_0x26109e['hasSuggestion'](_0x11020d))return;const _0x2da8ea=_0x26109e['getSuggestion'](_0x11020d);this['_suggestionToController']['get'](_0x2da8ea)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3d05b9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5f5a52;for(const _0x9fa949 in _0x3d05b9){const _0x134e7b=_0x9fa949,_0x3d761c=_0x3d05b9[_0x134e7b];if('trackChangesLicenseKeyValid'==_0x3d761c||'trackChangesLicenseKeyInvalid'==_0x3d761c||'trackChangesLicenseKeyExpired'==_0x3d761c||'trackChangesLicenseKeyDomainLimit'==_0x3d761c||'trackChangesLicenseKeyNotAllowed'==_0x3d761c||'trackChangesLicenseKeyEvaluationLimit'==_0x3d761c||'trackChangesLicenseKeyTrialLimit'==_0x3d761c||'trackChangesLicenseKeyDevelopmentLimit'==_0x3d761c||'trackChangesLicenseKeyUsageLimit'==_0x3d761c){delete _0x3d05b9[_0x134e7b],_0x5f5a52=_0x3d761c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5f5a52&&_0x3d05b9['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5f5a52&&_0x3d05b9['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5f5a52&&_0x3d05b9['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5f5a52&&_0x3d05b9['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5f5a52&&_0x3d05b9['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5f5a52&&_0x3d05b9['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x5f5a52&&_0x3d05b9['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5f5a52&&_0x3d05b9['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5273a3=this['editor']['plugins']['get']('Annotations'),_0xa0bf51=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6e24ec=Array['from'](_0x5273a3['activeAnnotations'],_0x22d1f4=>_0x22d1f4['innerView'])['filter'](_0x255eb4=>this['_viewToController']['has'](_0x255eb4)),_0xc9ea25=[];for(const _0x4cf462 of _0x6e24ec){const _0x1e72e0=this['_viewToController']['get'](_0x4cf462)['model']['getAllAdjacentSuggestions']();_0xc9ea25['push'](..._0x1e72e0['reduce']((_0x11971c,_0x209aaf)=>[..._0x11971c,..._0x209aaf['getMarkerNames']()],[]));}_0xa0bf51['activeMarkers']=_0xc9ea25;}['_addUIComponentsToFactory'](){const _0x6b92fe=this['editor'],_0xce93d5=_0x6b92fe['locale'],_0xecbf55=o(_0xce93d5,'Track\x20changes'),_0x1a20f4=new _0x461414([{'type':'switchbutton','model':new _0x3178db({'withText':!0x0,'isToggleable':!0x0,'label':_0xecbf55,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3178db({'withText':!0x0,'label':o(_0xce93d5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3178db({'withText':!0x0,'label':o(_0xce93d5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3178db({'withText':!0x0,'label':o(_0xce93d5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3178db({'withText':!0x0,'label':o(_0xce93d5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x56a3d4 of _0x1a20f4)if(pe(_0x56a3d4)){const _0x520e06=_0x6b92fe['commands']['get'](_0x56a3d4['model']['commandName']);_0x56a3d4['model']['bind']('isOn','isEnabled')['to'](_0x520e06,'value','isEnabled');}_0x6b92fe['ui']['componentFactory']['add']('trackChanges',_0x3ee07d=>this['_createToolbarButton'](_0x3ee07d,_0x1a20f4,_0xecbf55)),_0x6b92fe['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3f01d5=>this['_createMenuBarMenu'](_0x3f01d5,_0x1a20f4,_0xecbf55));}['_createToolbarButton'](_0x47b30a,_0x27802a,_0x9d6e24){const _0x27f5ae=_0x2f3ae7(_0x47b30a,_0x1d5b40),_0x4622dc=this['editor']['commands']['get']('trackChanges');_0x27f5ae['buttonView']['set']({'tooltip':_0x9d6e24,'label':_0x9d6e24,'icon':Ce}),_0x27f5ae['buttonView']['bind']('isOn')['to'](_0x4622dc,'value'),_0x27f5ae['buttonView']['on']('execute',()=>{_0x4622dc['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x27f5ae,_0x27802a,{'role':'menu'});const _0x2e9aea=[];for(const _0x184ef7 of _0x27802a)pe(_0x184ef7)&&_0x2e9aea['push'](this['editor']['commands']['get'](_0x184ef7['model']['commandName']));const _0x3883e5=_0x27f5ae['buttonView'];return _0x3883e5['actionView']['unbind']('isEnabled'),_0x3883e5['arrowView']['unbind']('isEnabled'),_0x3883e5['actionView']['bind']('isEnabled')['to'](_0x4622dc,'isEnabled'),_0x3883e5['arrowView']['bind']('isEnabled')['toMany'](_0x2e9aea,'isEnabled',(..._0x34f140)=>_0x34f140['some'](_0x8df2e1=>_0x8df2e1)),_0x27f5ae['on']('execute',_0x463db8=>{this['editor']['execute'](_0x463db8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x27f5ae;}['_createMenuBarMenu'](_0x42423d,_0x33437d,_0x1a83ac){const _0x1a5bb8=new _0xa64e94(_0x42423d),_0x1efc9a=this['editor']['commands']['get']('trackChanges');_0x1a5bb8['buttonView']['set']({'label':_0x1a83ac,'icon':Ce});const _0xf3e979=new _0x6fe289(_0x42423d);for(const _0x115664 of _0x33437d){if('separator'==_0x115664['type']){_0xf3e979['items']['add'](new _0x290f87(_0x42423d));continue;}const _0xec343f=new _0x37999c(_0x42423d,_0x1a5bb8),_0x308fe3=new _0x34e020(_0x42423d),_0x59f0dc=_0x115664['model'];_0x308fe3['bind'](...Object['keys'](_0x59f0dc))['to'](_0x59f0dc),_0x308fe3['delegate']('execute')['to'](_0x1a5bb8),_0x308fe3['on']('execute',()=>{this['editor']['execute'](_0x59f0dc['commandName']),this['editor']['editing']['view']['focus']();}),_0xec343f['children']['add'](_0x308fe3),_0xf3e979['items']['add'](_0xec343f);}return _0x1a5bb8['bind']('isEnabled')['to'](_0x1efc9a,'isEnabled'),_0x1a5bb8['panelView']['children']['add'](_0xf3e979),_0x1a5bb8;}['_initializeController'](_0x425256){const _0x29a704=this['editor'],_0x2df714=_0x29a704['config'],_0x481980=_0x29a704['plugins']['get']('Annotations'),_0x2daf0a=_0x29a704['plugins']['get']('CommentsRepository'),_0x884d3=_0x29a704['plugins']['get']('EditorAnnotations'),_0x2cd75a=_0x29a704['plugins']['get'](_0x591a8d)['me'],_0x5720fe=_0x2df714['get']('trackChanges')['SuggestionThreadView'],_0x8c3668=_0x2df714['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x47782f,CommentThreadInputView:_0x12fb85}=_0x29a704['plugins']['get']('CommentsUI');let _0x582a13,_0x41ef94,_0x4220ef;this['_annotationViews']['has'](_0x425256['id'])?(_0x41ef94=this['_annotationViews']['get'](_0x425256['id']),_0x582a13=_0x41ef94['mainView']):(_0x582a13=new _0x5720fe(_0x29a704['locale'],_0x425256,_0x2cd75a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2df714['get']('comments.editorConfig'),'licenseKey':_0x2df714['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2df714['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2df714['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2df714['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x28d986(_0x2df714['get']('locale')),'CommentView':_0x2df714['get']('comments')['CommentView'],'CommentsListView':_0x47782f,'CommentThreadInputView':_0x12fb85,'SuggestionView':_0x8c3668}),_0x582a13['suggestionView']['acceptButton']['on']('execute',()=>{_0x29a704['editing']['view']['focus']();}),_0x582a13['suggestionView']['discardButton']['on']('execute',()=>{_0x29a704['editing']['view']['focus']();}),_0x41ef94=_0x481980['createAnnotationView'](this['editor']['locale'],_0x582a13),_0x41ef94['bind']('isDirty')['to'](_0x582a13,'isDirty'),_0x41ef94['bind']('length')['to'](_0x582a13),_0x41ef94['bind']('type')['to'](_0x582a13,'type',_0x403cdf=>'suggestion-'+_0x403cdf),_0x582a13['on']('escape',()=>{_0x4220ef['fire']('escape');}),this['_annotationViews']['set'](_0x425256['id'],_0x41ef94));const _0x316aec=_0x2daf0a['createCommentThreadController'](_0x425256['commentThread'],_0x582a13),_0xb55520=new ge(_0x29a704,_0x425256,_0x582a13,_0x316aec),_0x339360=_0x425256['getAllAdjacentSuggestions']()['filter'](_0x5955a4=>_0x5955a4['isInContent']);_0x582a13['descriptionParts']=_0x29a704['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x339360),this['_suggestionToController']['set'](_0x425256,_0xb55520),this['_viewToController']['set'](_0x582a13,_0xb55520),_0x4220ef=_0x481980['createAnnotation']({'view':_0x41ef94,'target':()=>{const _0x508cd8=[],_0x463d63=_0x425256['getAllAdjacentSuggestions']()['filter'](_0x56a3eb=>_0x56a3eb['isInContent']);for(const _0x357aa8 of _0x463d63)_0x508cd8['push'](..._0x357aa8['getMarkers']());return _0x3fa9c2(_0x29a704['editing'],_0x508cd8);},'type':()=>'suggestion-'+_0xb55520['view']['type']}),_0x2daf0a['_bindAnnotationToEditors'](_0x582a13,_0x4220ef),_0x481980['add'](_0x4220ef),_0x884d3['registerAnnotation'](_0x4220ef);}['_destroyController'](_0x44ebff){const _0x554232=this['editor']['plugins']['get']('CommentsRepository'),_0x38bbd5=this['editor']['plugins']['get']('Annotations'),_0x5a0148=this['_suggestionToController']['get'](_0x44ebff),_0x54dd9d=_0x5a0148['view'],_0x40a27b=_0x38bbd5['getByInnerView'](_0x54dd9d);_0x554232['_unbindEditors'](_0x54dd9d),_0x40a27b&&_0x38bbd5['remove'](_0x40a27b),this['_suggestionToController']['delete'](_0x44ebff),this['_viewToController']['delete'](_0x54dd9d),_0x5a0148['destroy']();}['_updateController'](_0x2073af){if(!_0x2073af['isInContent']||!this['_suggestionToController']['has'](_0x2073af))return;const _0x48e08a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x453b04=this['_suggestionToController']['get'](_0x2073af),_0x209008=_0x2073af['getAllAdjacentSuggestions']();_0x453b04['view']['descriptionParts']=_0x48e08a['descriptionFactory']['getDescriptions'](_0x209008);}['destroy'](){for(const _0x33a173 of this['_suggestionToController']['keys']())this['_destroyController'](_0x33a173);for(const _0x5a143d of this['_annotationViews']['values']())_0x5a143d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x1c7262){return'model'in _0x1c7262;}class k extends _0x4ead4a{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x577222){this['editor']['plugins']['get'](p)['adapter']=_0x577222;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4097fc){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4097fc);}['getSuggestions']({skipNotAttached:_0xd4f641=!0x1,toJSON:_0x4703ca=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xd4f641,'toJSON':_0x4703ca});}['getSuggestion'](_0x56c78b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x56c78b);}}const w=['Pagination'];class T extends _0x4ead4a{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x335ecd=this['editor'];if(_0x335ecd['config']['define']('trackChangesData.editorCreator',_0x4bd4f2=>{const _0x1ec273=_0x335ecd['model']['document']['getRootNames']()['reduce']((_0x2342ad,_0x28f1f6)=>(_0x2342ad[_0x28f1f6]='',_0x2342ad),{});return _0x335ecd['constructor']['create'](_0x1ec273,_0x4bd4f2);}),'function'!=typeof _0x335ecd['config']['get']('trackChangesData')['editorCreator'])throw new _0x178c26('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2017cb){return N(this['editor'],!0x0,_0x2017cb);}['getDataWithDiscardedSuggestions'](_0x36cf34){return N(this['editor'],!0x1,_0x36cf34);}}class D extends _0x4ead4a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d0be3){function _0x52c2a7(_0xdc7e3d){return _0xdc7e3d['map'](_0x4a77f2=>String['fromCharCode'](_0x4a77f2))['join']('');}super(_0x1d0be3),this['result']='end',_0x1d0be3[_0x52c2a7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52c2a7([0x76,0x69,0x65,0x77])][_0x52c2a7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52c2a7([0x61,0x75,0x74,0x6f]),_0x1d0be3[_0x52c2a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x52c2a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52c2a7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x52c2a7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x52c2a7([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x6ea0d2){return void 0x0!==_0x6ea0d2['getRootsAttributes'];}async function N(_0x150136,_0xad642a,_0x7df7ee){const _0x4927b9=_0x25b417(_0x150136,w);_0x4927b9['plugins']['push'](p,D),_0x4927b9['rootsAttributes']=v(_0x150136)?_0x150136['getRootsAttributes']():void 0x0;const _0x21cef2=document['createDocumentFragment'](),_0x30b28c=_0x150136['config']['get']('trackChangesData')['editorCreator'],_0x8e5653=await _0x30b28c(_0x4927b9,()=>function(_0x2b4a46){const _0x285113=document['createElement']('div');return _0x2b4a46['appendChild'](_0x285113),_0x285113;}(_0x21cef2));!function(_0x3db569,_0x345a19){const _0x4e2334=_0x3db569['model']['document']['getRootNames']()['reduce']((_0x3ceb61,_0x5c6e47)=>(_0x3ceb61[_0x5c6e47]=_0x3db569['data']['get']({'rootName':_0x5c6e47}),_0x3ceb61),{}),_0x506aed=_0x3db569['plugins']['get']('Users')['users']['map'](_0x3a401d=>({'id':_0x3a401d['id'],'name':_0x3a401d['name']})),_0x4af6fa=_0x3db569['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2e282f=_0x3db569['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x37eb0d=_0x345a19['plugins']['get']('Users'),_0x181237=_0x345a19['plugins']['get']('TrackChangesEditing'),_0x58cd67=_0x345a19['plugins']['get']('CommentsRepository');for(const _0x3aaf45 of _0x58cd67['getCommentThreads']())_0x3aaf45['remove']();for(const _0x5da011 of _0x506aed)_0x37eb0d['getUser'](_0x5da011['id'])||_0x37eb0d['addUser'](_0x5da011);_0x37eb0d['me']||_0x37eb0d['useAnonymousUser']();for(const _0x4e937f of _0x2e282f)_0x58cd67['addCommentThread'](_0x4e937f);for(const _0x418925 of _0x4af6fa)_0x181237['addSuggestionData'](_0x418925);_0x345a19['data']['set'](_0x4e2334);}(_0x150136,_0x8e5653),_0x8e5653['execute'](_0xad642a?'acceptAllSuggestions':'discardAllSuggestions');const _0x17df9e=v(_0x8e5653)?_0x8e5653['getFullData'](_0x7df7ee):_0x8e5653['data']['get'](_0x7df7ee);return await _0x8e5653['destroy'](),_0x17df9e;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as Qt,Plugin as _0x2298ef,PendingActions as _0x51d058,icons as _0x2e0987}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x58c551,ObservableMixin as _0x3e5432,uid as _0x5ec24f,insertToPriorityArray as _0x1d8204,priorities as _0x31cd2a,logWarning as _0x367837,getEnvKeystrokeText as _0x112f47,FocusTracker as _0x318b41,KeystrokeHandler as _0x1675d4,Collection as _0x5555fc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x576e57,View as _0x5d3430,ViewCollection as _0x2b92d1,FocusCycler as ts,ViewModel as _0x277669,createDropdown as _0x3e59c5,SplitButtonView as _0x10156a,addListToDropdown as _0x33efe8,MenuBarMenuView as _0x563291,MenuBarMenuListView as _0x199341,ListSeparatorView as _0x3e0de6,MenuBarMenuListItemView as _0xba7e89,MenuBarMenuListItemButtonView as _0x4c8697,BodyCollection as _0x4331c8,Dialog as _0x4aaf69}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x36c6ec,hashObject as _0x14d10b,surroundingMarkersDetector as _0xd7c68b,FOCUS_ANNOTATION_KEYSTROKE as _0x4eff20,AriaDescriptionView as _0x32a7a9,setupThreadKeyboardNavigation as _0x5b402b,trimHtml as ti,UserView as _0x1aa797,LateFocusButtonView as _0x403045,getDateTimeFormatter as _0x4edf85,getAllMarkersDomElementsSorted as _0x1e792f,sanitizeEditorConfig as _0x1c83c0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x52235d,LiveRange as _0x58aa1,LivePosition as _0x5bbeff,DowncastWriter as _0x626325}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3062f0,toWidget as _0x359056}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3a100a,set as _0x174d02,isEqual as _0x40bb49,unset as _0xafeee2,omit as xt}from'lodash-es';import{Delete as _0x56e404,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x261fb9,ShiftEnter as _0x2be43a}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x3e347a,_0x5e3f0d){super(_0x3e347a),this['_enabledCommands']=_0x5e3f0d,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x2fe710 of this['editor']['commands']['commands']())_0x2fe710['affectsData']&&!this['_enabledCommands']['has'](_0x2fe710)&&_0x2fe710['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3e4a9f of this['editor']['commands']['commands']())_0x3e4a9f['affectsData']&&!this['_enabledCommands']['has'](_0x3e4a9f)&&_0x3e4a9f['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x5b9dd4,_0x4dcb4d){super(_0x5b9dd4),this['_suggestions']=_0x4dcb4d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3075ce){const _0x3e17a2=this['_suggestions']['get'](_0x3075ce);if(!_0x3e17a2)throw new _0x58c551('track-changes-accept-suggestion-not-found',this);const _0x51fcfb=_0x3e17a2['getRanges']();this['editor']['model']['canEditAt'](_0x51fcfb)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3e17a2);}}class R extends Qt{['_suggestions'];constructor(_0x315eec,_0x3eeaf3){super(_0x315eec),this['_suggestions']=_0x3eeaf3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4757aa){const _0x41ae37=this['_suggestions']['get'](_0x4757aa);if(!_0x41ae37)throw new _0x58c551('track-changes-discard-suggestion-not-found',this);const _0x4b9130=_0x41ae37['getRanges']();this['editor']['model']['canEditAt'](_0x4b9130)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x41ae37);}}function ns(_0x4527a7,_0x49cf2d){let _0xa74e00='';return _0xa74e00+=_0x4527a7['split']('*')['map']((_0x2c6cdf,_0x48ca56)=>_0x48ca56%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2c6cdf)+'</span>':nn(_0x2c6cdf))['join'](''),_0x49cf2d&&(_0xa74e00+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x49cf2d['value']+'\x22\x20title=\x22'+_0x49cf2d['title']+'\x22></span>'),_0xa74e00;}function nn(_0x119a2e){const _0x47d442=document['createElement']('span');return _0x47d442['innerText']=_0x119a2e,_0x47d442['innerHTML'];}function Wt(_0x4733a8){return _0x4733a8['sort']((_0x794931,_0x3f7bcd)=>'deletion'==_0x794931['type']&&'deletion'!=_0x3f7bcd['type']?-0x1:'deletion'!=_0x794931['type']&&'deletion'==_0x3f7bcd['type']?0x1:0x0);}function to(_0x2cc1cc,_0x477d62){let _0x2211f9,_0x3e025d=0x0;const _0x3ad3a9=[],_0x16bf06=_0x477d62['schema'];for(;_0x3e025d<_0x2cc1cc['length'];){const _0x408ea6=_0x2cc1cc[_0x3e025d],_0x48ee29=_0x2cc1cc[_0x3e025d+0x1];_0x2211f9||(_0x2211f9=_0x477d62['createPositionBefore'](_0x408ea6)),on(_0x477d62,_0x408ea6,_0x48ee29)||(_0x3ad3a9['push'](_0x477d62['createRange'](_0x2211f9,_0x16bf06['isObject'](_0x408ea6)?_0x477d62['createPositionAfter'](_0x408ea6):_0x477d62['createPositionAt'](_0x408ea6,'end'))),_0x2211f9=null),_0x3e025d++;}return _0x3ad3a9;}function on(_0x40ef7a,_0x524e84,_0x3a641b){if(!_0x3a641b)return!0x1;const _0x3b6241=_0x40ef7a['createPositionAfter'](_0x524e84),_0x4b7596=_0x40ef7a['createPositionBefore'](_0x3a641b);return _0x3b6241['isTouching'](_0x4b7596);}function Xt(_0x2bcb54,_0x33340b,_0x155dc1){for(;_0x155dc1['length'];){const _0x4c4eb5=_0x155dc1['splice'](0x0,0x64);_0x2bcb54['change'](()=>{for(const _0x15dd33 of _0x4c4eb5)_0x15dd33['isInContent']&&_0x33340b['execute'](_0x15dd33['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x54f737,_0x232cfe,_0xe1d64f){super(_0x54f737),this['_command']=_0x232cfe,this['_suggestions']=_0xe1d64f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1cb384=Array['from'](this['_suggestions']['values']())['some'](_0x3a2e33=>_0x3a2e33['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1cb384;}['execute'](){const _0x50e233=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x252715 of _0x50e233){const _0x1bc546=_0x252715['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1bc546))return;}Xt(this['editor']['model'],this['_command'],_0x50e233);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xe99cb0,_0x4df395,_0x189fc6){super(_0xe99cb0),this['_command']=_0x4df395,this['_suggestions']=_0x189fc6,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x534d26=this['editor']['model']['document']['selection'],_0x336c68=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4d65a1,_0x50dc37){const _0x52bef9=Array['from'](_0x4d65a1['getRanges']()),_0x22da28=new Set();for(const _0x2d6190 of _0x50dc37)if(_0x2d6190['isInContent']){for(const _0x5297d9 of _0x52bef9)for(const _0x11ee9f of _0x2d6190['getRanges']())(_0x5297d9['isIntersecting'](_0x11ee9f)||_0x4d65a1['isCollapsed']&&!_0x2d6190['isMultiRange']&&_0x2d6190['next']&&_0x11ee9f['end']['isTouching'](_0x5297d9['start']))&&_0x22da28['add'](_0x2d6190);}return _0x22da28;}(_0x534d26,_0x336c68),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4b20a=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x333968 of _0x4b20a){const _0x5de475=_0x333968['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5de475))return;}Xt(this['editor']['model'],this['_command'],_0x4b20a);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3e5432(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x207a17,_0x57b2b0){super(),this['id']=_0x57b2b0['id'],this['type']=_0x57b2b0['type'],this['subType']=_0x57b2b0['subType']||null,this['author']=_0x57b2b0['author'],this['creator']=_0x57b2b0['creator']||_0x57b2b0['author'],this['isExternal']=Boolean(_0x57b2b0['attributes']&&_0x57b2b0['attributes']['@external']),this['data']=null,this['_model']=_0x207a17,this['_onAccept']=_0x57b2b0['onAccept'],this['_onDiscard']=_0x57b2b0['onDiscard'],this['_onAttributesChange']=_0x57b2b0['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x57b2b0['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0xfb4359=this;for(;_0xfb4359['previous'];)_0xfb4359=_0xfb4359['previous'];return _0xfb4359;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x206277){this['_markerNames']['add'](_0x206277);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3ae94f=>this['_model']['markers']['get'](_0x3ae94f))['filter'](_0x4ee6ca=>_0x4ee6ca);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x206680=>{for(const _0x5932a6 of this['getMarkers']())_0x206680['removeMarker'](_0x5932a6);}),this['_markerNames']['clear']();}['removeMarker'](_0x51cfda){this['_model']['change'](_0x1e0c6a=>{_0x1e0c6a['removeMarker'](_0x51cfda);}),this['_markerNames']['delete'](_0x51cfda);}['addRange'](_0xb1bc1){const _0x146e0e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x146e0e),this['_model']['change'](_0x287d9e=>{_0x287d9e['addMarker'](_0x146e0e,{'range':_0xb1bc1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3a21f4){for(const _0xdc56b4 of this['getRanges']())if(_0xdc56b4['isIntersecting'](_0x3a21f4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2ce22a=>_0x2ce22a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4f3c4f,_0x3d190b)=>[..._0x4f3c4f,..._0x3d190b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x225401=this['getRanges']();if(0x1!=_0x225401['length'])return null;const _0x3a1a29=_0x225401[0x0],_0x1c34ec=_0x3a1a29['start']['nodeAfter'],_0x56dc5a=_0x3a1a29['end']['nodeBefore'];return _0x1c34ec instanceof _0x52235d?_0x1c34ec!=_0x56dc5a?null:_0x1c34ec:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x2d2b4c=[];let _0x35a668=this['head'];for(;_0x35a668;)_0x2d2b4c['push'](_0x35a668),_0x35a668=_0x35a668['next'];return _0x2d2b4c;}['setAttribute'](_0x475a2c,_0x201ba5){const _0x3ebff4=_0x3a100a(this['attributes']);_0x174d02(_0x3ebff4,_0x475a2c,_0x201ba5),_0x40bb49(_0x3ebff4,this['attributes'])||(this['attributes']=_0x3ebff4,this['_onAttributesChange'](_0x3ebff4));}['removeAttribute'](_0x54b38a){const _0x22191c=_0x3a100a(this['attributes']);_0xafeee2(_0x22191c,_0x54b38a),_0x40bb49(_0x22191c,this['attributes'])||(this['attributes']=_0x22191c,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x5ec24f()['substr'](0x1,0x5);}}function o(_0x38c507,_0x1d0a05,_0x5e8e89){const _0x312a87=_0x38c507['t'],t=_0x38c507['t'];switch(_0x1d0a05){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'View\x20final\x20document':return t('View\x20final\x20document');case'Final\x20document\x20preview':return t('Final\x20document\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x5e8e89);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5e8e89);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5e8e89);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5e8e89);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5e8e89);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x5e8e89);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5e8e89);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5e8e89);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5e8e89);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5e8e89);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5e8e89);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5e8e89);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5e8e89);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5e8e89);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5e8e89);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5e8e89);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5e8e89);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5e8e89);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5e8e89);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5e8e89);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5e8e89);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5e8e89);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5e8e89);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5e8e89);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x5e8e89);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5e8e89);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5e8e89);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5e8e89);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5e8e89);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5e8e89);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x5e8e89);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5e8e89);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5e8e89);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5e8e89);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5e8e89);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x5e8e89);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5e8e89);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x5e8e89);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5e8e89);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5e8e89);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x5e8e89);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5e8e89);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x5e8e89);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5e8e89);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5e8e89);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x5e8e89);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5e8e89);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x312a87({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5e8e89);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x312a87({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5e8e89);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5e8e89);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x5e8e89);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x5e8e89);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x5e8e89);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1d0a05;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x17bf86,_0x14fc3f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x17bf86,this['_locale']=_0x14fc3f;}['getDescriptions'](_0x50705a){const _0x28db66=[],_0x25cfa0=new Set(),_0x5a945f=new Set();for(let _0x210ca3=0x0;_0x210ca3<_0x50705a['length'];_0x210ca3++){const _0x32cc98=_0x50705a[_0x210ca3];if(!_0x32cc98['isInContent'])continue;const _0x470620=this['_handleCustomCallbackDescription'](_0x32cc98);if(_0x470620){if(null!=_0x32cc98['subType']){if(_0x25cfa0['has'](_0x32cc98['subType']))continue;_0x25cfa0['add'](_0x32cc98['subType']);}_0x28db66['push'](_0x470620);}else{if('attribute'!=_0x32cc98['type'])'insertion'!=_0x32cc98['type']&&'deletion'!=_0x32cc98['type']||this['_handleInsertRemoveSuggestionDescription'](_0x28db66,_0x32cc98,_0x50705a[_0x210ca3+0x1]);else{const _0x1f756f=_0x32cc98['data']['key'];if(_0x5a945f['has'](_0x1f756f))continue;_0x5a945f['add'](_0x32cc98['data']['key']),_0x1f756f==m?this['_handleRenameSuggestionDescription'](_0x28db66,_0x32cc98):this['_handleAttributeSuggestionDescription'](_0x28db66,_0x32cc98);}}}return this['_resolveDescriptionItems'](_0x28db66);}['registerDescriptionCallback'](_0x40652e){this['_customCallbacks']['push'](_0x40652e);}['registerElementLabel'](_0xbcdbae,_0x3d7812,_0x1337b7=_0x31cd2a['normal']){'function'==typeof _0xbcdbae?_0x1d8204(this['_itemLabelsCallbacks'],{'matchingCallback':_0xbcdbae,'label':_0x3d7812,'priority':_0x1337b7}):this['_itemLabels']['set'](_0xbcdbae,_0x3d7812);}['registerAttributeLabel'](_0x41554e,_0x3bce95){this['_attributeLabels']['set'](_0x41554e,_0x3bce95);}['getItemLabel'](_0x51f09b,_0x4e1e5d=0x1){let _0x261996;for(const _0x5acd45 of this['_itemLabelsCallbacks'])if(_0x5acd45['matchingCallback'](_0x51f09b)){_0x261996=_0x5acd45['label'];break;}return _0x261996||(_0x261996=this['_itemLabels']['get'](_0x51f09b['name'])),_0x261996?_0x261996(_0x4e1e5d):0x1!==_0x4e1e5d?_0x4e1e5d+'\x20'+_0x51f09b['name']+'s':''+_0x51f09b['name'];}['_addDescriptionItems'](_0x33355b,_0x319e6d){const _0x4fada6=_0x319e6d['getFirstRange']()['getWalker'](),_0x47a510='insertion'==_0x319e6d['type']?'add':'remove';for(const _0x4a19e0 of _0x4fada6){const _0x54d5ba=_0x4a19e0['item'],_0x1a92a4=_0x33355b[_0x33355b['length']-0x1];if(_0x54d5ba['is']('$textProxy'))_0x1a92a4&&_0x1a92a4['type']['indexOf']('Container')>-0x1&&_0x33355b['pop'](),_0x1a92a4&&'text'==_0x1a92a4['type']?_0x1a92a4[_0x47a510]+=_0x54d5ba['data']:_0x33355b['push']({'type':'text','add':'add'==_0x47a510?_0x54d5ba['data']:'','remove':'remove'==_0x47a510?_0x54d5ba['data']:''});else{if(this['_schema']['isObject'](_0x54d5ba)){const _0x255cf7=_0x54d5ba;if(_0x1a92a4&&_0x1a92a4['type']['indexOf']('Container')>-0x1&&_0x33355b['pop'](),'elementEnd'==_0x4a19e0['type'])continue;_0x1a92a4&&_0x1a92a4['type']==_0x47a510+'Object'&&_0x1a92a4['element']['name']==_0x255cf7['name']?_0x1a92a4['quantity']++:_0x33355b['push']({'type':_0x47a510+'Object','element':_0x255cf7,'quantity':0x1}),_0x4fada6['skip'](_0x2cf9e2=>!('elementEnd'==_0x2cf9e2['type']&&_0x2cf9e2['item']==_0x54d5ba));}else{if(this['_schema']['checkChild'](_0x54d5ba,'$text')||_0x54d5ba['is']('element','softBreak')){const _0x598e84=_0x54d5ba;if('add'==_0x47a510&&'elementStart'==_0x4a19e0['type']||'remove'==_0x47a510&&'elementEnd'==_0x4a19e0['type'])continue;if(_0x1a92a4&&-0x1==_0x1a92a4['type']['indexOf']('Container')){'text'==_0x1a92a4['type']&&(_0x1a92a4[_0x47a510]+='\x0a');continue;}let _0x2164a4;if(_0x2164a4='add'==_0x47a510?_0x598e84['nextSibling']&&!this['_schema']['isObject'](_0x598e84['nextSibling'])?_0x598e84['nextSibling']:null:_0x598e84['previousSibling']&&!this['_schema']['isObject'](_0x598e84['previousSibling'])?_0x598e84['previousSibling']:null,_0x598e84['isEmpty']||_0x2164a4&&_0x2164a4['isEmpty']){const _0x54b8bf=_0x2164a4&&_0x2164a4['isEmpty']?_0x2164a4:_0x598e84;_0x1a92a4&&_0x1a92a4['type']==_0x47a510+'EmptyContainer'&&_0x1a92a4['element']['name']==_0x54b8bf['name']?_0x1a92a4['quantity']++:_0x33355b['push']({'type':_0x47a510+'EmptyContainer','element':_0x54b8bf,'quantity':0x1});}else _0x33355b['push']({'type':_0x47a510+'Container','element':_0x598e84});}}}}}['_resolveDescriptionItems'](_0x2b4196){const _0x3d85f7=this['_locale'],_0x24d9e4=[],_0x41a7a9=[],_0x2c812b=[];for(const _0x71f679 of _0x2b4196)switch(_0x71f679['type']){case'text':if(_0x71f679['add']=_0x71f679['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x71f679['remove']=_0x71f679['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x71f679['add']&&''!=_0x71f679['remove']){_0x24d9e4['push']({'type':'replace','content':o(_0x3d85f7,'REPLACE_TEXT',['\x22'+_0x71f679['remove']+'\x22','\x22'+_0x71f679['add']+'\x22'])});continue;}if(null!=_0x71f679['add']['match'](/^ +$/)){_0x24d9e4['push']({'type':'insertion','content':o(_0x3d85f7,'*Insert:*\x20%0',o(_0x3d85f7,'ELEMENT_SPACE',_0x71f679['add']['length']))});continue;}if(null!=_0x71f679['remove']['match'](/^ +$/)){_0x24d9e4['push']({'type':'deletion','content':o(_0x3d85f7,'*Remove:*\x20%0',o(_0x3d85f7,'ELEMENT_SPACE',_0x71f679['remove']['length']))});continue;}if(''!=_0x71f679['add']){_0x24d9e4['push']({'type':'insertion','content':o(_0x3d85f7,'*Insert:*\x20%0','\x22'+_0x71f679['add']+'\x22')});continue;}_0x24d9e4['push']({'type':'deletion','content':o(_0x3d85f7,'*Remove:*\x20%0','\x22'+_0x71f679['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x24d9e4['push']({'type':'insertion','content':o(_0x3d85f7,'*Insert:*\x20%0',this['getItemLabel'](_0x71f679['element'],_0x71f679['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x24d9e4['push']({'type':'deletion','content':o(_0x3d85f7,'*Remove:*\x20%0',this['getItemLabel'](_0x71f679['element'],_0x71f679['quantity']))});continue;case'addContainer':_0x24d9e4['push']({'type':'insertion','content':o(_0x3d85f7,'*Split:*\x20%0',this['getItemLabel'](_0x71f679['element'],_0x71f679['quantity']))});continue;case'removeContainer':_0x24d9e4['push']({'type':'deletion','content':o(_0x3d85f7,'*Merge:*\x20%0',this['getItemLabel'](_0x71f679['element'],_0x71f679['quantity']))});continue;case'addFormat':_0x41a7a9['push'](_0x71f679['key']);continue;case'removeFormat':_0x2c812b['push'](_0x71f679['key']);continue;default:_0x24d9e4['push'](_0x71f679);}if(_0x41a7a9['length']){const _0x1dd5f3=_0x41a7a9['map'](_0x381c8d=>this['_attributeLabels']['has'](_0x381c8d)?this['_attributeLabels']['get'](_0x381c8d):_0x381c8d)['join'](',\x20');_0x24d9e4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1dd5f3)});}if(_0x2c812b['length']){const _0x3ecefd=_0x2c812b['map'](_0x3703c1=>this['_attributeLabels']['has'](_0x3703c1)?this['_attributeLabels']['get'](_0x3703c1):_0x3703c1)['join'](',\x20');_0x24d9e4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3ecefd)});}return _0x24d9e4;}['_handleCustomCallbackDescription'](_0x24a71a){for(const _0xce6d3d of this['_customCallbacks']){const _0x444a1a=_0xce6d3d(_0x24a71a);if(_0x444a1a&&'type'in _0x444a1a)return _0x444a1a;}}['_handleAttributeSuggestionDescription'](_0x48b7b6,_0x286d95){const _0x417bff=_0x286d95['data'],_0x2b5079=void 0x0===_0x417bff['newValue']?'removeFormat':'addFormat';_0x48b7b6['push']({'type':_0x2b5079,'key':_0x417bff['key']});}['_handleRenameSuggestionDescription'](_0x2d8a8d,_0x1791b8){_0x2d8a8d['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1791b8['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x146bac,_0x364d41,_0x25ae1a){if(this['_addDescriptionItems'](_0x146bac,_0x364d41),_0x25ae1a&&_0x25ae1a['getFirstRange']()&&!_0x364d41['getFirstRange']()['end']['isEqual'](_0x25ae1a['getFirstRange']()['start'])){const _0x32522a=_0x146bac[_0x146bac['length']-0x1],_0x515646='insertion'==_0x364d41['type']?'add':'remove';_0x32522a&&'text'==_0x32522a['type']&&(_0x32522a[_0x515646]+='\x0a');}}}class U extends _0x2298ef{['afterInit'](){const _0x7935af=this['editor'],_0x1be390=_0x7935af['plugins']['get']('TrackChangesEditing');_0x7935af['commands']['get']('showAIAssistant')&&_0x1be390['enableCommand']('showAIAssistant');}}class V extends _0x2298ef{['afterInit'](){const _0x48cf80=this['editor'],_0x586f08=_0x48cf80['locale'];if(!_0x48cf80['plugins']['has']('AlignmentEditing'))return;const _0x1acee7=_0x48cf80['plugins']['get']('TrackChangesEditing');_0x1acee7['enableDefaultAttributesIntegration']('alignment'),_0x1acee7['registerBlockAttribute']('alignment'),_0x1acee7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x586f08,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e2bcf=this['editor'],_0x36adbb=_0x2e2bcf['locale'];_0x2e2bcf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x578416=>{if('formatBlock'!=_0x578416['type'])return;const {data:_0x4d6e28}=_0x578416;if(_0x4d6e28&&'alignment'==_0x4d6e28['commandName']){const _0xf1c52c=_0x4d6e28['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x36adbb,'*Format:*\x20%0',function(_0x3cba79){switch(_0x3cba79){case'left':return o(_0x36adbb,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x36adbb,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x36adbb,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x36adbb,'FORMAT_JUSTIFY_TEXT');}}(_0xf1c52c))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2298ef{['afterInit'](){const _0x76d069=this['editor'],_0x54baa2=_0x76d069['plugins']['get']('TrackChangesEditing'),_0x2bcc50=_0x76d069['locale'];for(const _0x5b0cf7 of Zt){if(!_0x76d069['plugins']['has'](_0x5b0cf7))continue;const _0x359258=_0x5b0cf7['slice'](0x0,-0x7)['toLowerCase'](),_0x174dab='FORMAT_'+_0x359258['toUpperCase']();_0x54baa2['enableDefaultAttributesIntegration'](_0x359258),_0x54baa2['registerInlineAttribute'](_0x359258),_0x54baa2['descriptionFactory']['registerAttributeLabel'](_0x359258,o(_0x2bcc50,_0x174dab));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dc3ad=this['editor'],_0x525040=_0x5dc3ad['locale'],_0x1b7a49=_0x5dc3ad['plugins']['get']('TrackChangesEditing');function _0x156de9(_0x3ccab0,_0x5553bd){_0x1b7a49['descriptionFactory']['registerDescriptionCallback'](_0x134458=>{if('formatInline'!=_0x134458['type'])return;const {data:_0x11fd11}=_0x134458;return _0x11fd11&&_0x11fd11['commandName']===_0x3ccab0?_0x11fd11['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x525040,'*Format:*\x20%0',_0x5553bd)}:{'type':'format','content':o(_0x525040,'*Remove\x20format:*\x20%0',_0x5553bd)}:void 0x0;});}_0x156de9('bold',o(_0x525040,'FORMAT_BOLD')),_0x156de9('italic',o(_0x525040,'FORMAT_ITALIC')),_0x156de9('underline',o(_0x525040,'FORMAT_UNDERLINE')),_0x156de9('code',o(_0x525040,'FORMAT_CODE')),_0x156de9('strikethrough',o(_0x525040,'FORMAT_STRIKETHROUGH')),_0x156de9('subscript',o(_0x525040,'FORMAT_SUBSCRIPT')),_0x156de9('superscript',o(_0x525040,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2298ef{['afterInit'](){const _0x1b94f6=this['editor'],_0x283cd7=_0x1b94f6['locale'];if(!_0x1b94f6['plugins']['has']('BlockQuoteEditing'))return;const _0x17ba25=_0x1b94f6['plugins']['get']('TrackChangesEditing'),_0x5cfc8e=this['editor']['commands']['get']('blockQuote');_0x17ba25['enableCommand']('blockQuote',(_0x1b4131,_0xa82c44={})=>{const _0x86a54d=this['editor']['model']['document']['selection'],_0x1e44b7=_0xa82c44&&void 0x0!==_0xa82c44['forceValue']?_0xa82c44['forceValue']:!_0x5cfc8e['value'];let _0x4bb6c1=[];if(_0x1e44b7){const _0x285721=Array['from'](_0x86a54d['getSelectedBlocks']())['filter'](_0x49ae44=>oo(_0x49ae44)||function(_0x17115c,_0x399d8a){const _0x3750a1=_0x399d8a['checkChild'](_0x17115c['parent'],'blockQuote'),_0x19c32e=_0x399d8a['checkChild'](['$root','blockQuote'],_0x17115c);return _0x3750a1&&_0x19c32e;}(_0x49ae44,this['editor']['model']['schema']));_0x4bb6c1=to(_0x285721,_0x1b94f6['model']);}else{const _0xaf901c=Array['from'](_0x86a54d['getSelectedBlocks']())['filter'](_0x312bfc=>oo(_0x312bfc));_0x4bb6c1=to(_0xaf901c,_0x1b94f6['model']);}_0x1b94f6['model']['change'](()=>{for(const _0x22912c of _0x4bb6c1)_0x17ba25['markBlockFormat'](_0x22912c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1e44b7}]});});}),_0x17ba25['descriptionFactory']['registerDescriptionCallback'](_0x15841a=>{const {data:_0x535763}=_0x15841a;if(_0x535763&&'blockQuote'==_0x535763['commandName']){const _0x32a0d7=o(_0x283cd7,'ELEMENT_BLOCK_QUOTE');return _0x535763['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x283cd7,'*Set\x20format:*\x20%0',_0x32a0d7)}:{'type':'format','content':o(_0x283cd7,'*Remove\x20format:*\x20%0',_0x32a0d7)};}});}}function oo(_0x10c77a){return'blockQuote'==_0x10c77a['parent']['name'];}class L extends _0x2298ef{['afterInit'](){const _0x1a8ba3=this['editor'],_0x43ef0e=_0x1a8ba3['locale'],_0x2e3d56=_0x1a8ba3['plugins']['get']('TrackChangesEditing');_0x1a8ba3['plugins']['has']('BookmarkEditing')&&(_0x2e3d56['enableCommand']('insertBookmark'),_0x2e3d56['enableDefaultAttributesIntegration']('updateBookmark'),_0x2e3d56['registerBlockAttribute']('bookmarkId'),_0x2e3d56['descriptionFactory']['registerDescriptionCallback'](_0x3ae3e8=>{if('insertion'!=_0x3ae3e8['type']&&'deletion'!=_0x3ae3e8['type']&&'attribute'!=_0x3ae3e8['type'])return;const _0xd67dfe=_0x3ae3e8['getContainedElement']();if(null==_0xd67dfe)return;if(!_0xd67dfe['is']('element','bookmark'))return;const _0x403a17=_0xd67dfe['getAttribute']('bookmarkId');if('insertion'==_0x3ae3e8['type'])return{'type':'insertion','content':o(_0x43ef0e,'*Insert:*\x20%0','\x22'+_0x403a17+'\x22\x20'+o(_0x43ef0e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3ae3e8['type'])return{'type':'deletion','content':o(_0x43ef0e,'*Remove:*\x20%0','\x22'+_0x403a17+'\x22\x20'+o(_0x43ef0e,'ELEMENT_BOOKMARK'))};const {data:_0x3fe42a}=_0x3ae3e8;if(!_0x3fe42a||'bookmarkId'!=_0x3fe42a['key'])return;return{'type':'format','content':o(_0x43ef0e,'*Set\x20bookmark:*\x20%0','\x22'+_0x3fe42a['newValue']+'\x22')};}));}}class J extends _0x2298ef{['afterInit'](){const _0x3fa1a4=this['editor'];_0x3fa1a4['plugins']['has']('CaseChange')&&(_0x3fa1a4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3fa1a4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3fa1a4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2298ef{['afterInit'](){const _0x3fdc1b=this['editor'];_0x3fdc1b['commands']['get']('ckbox')&&_0x3fdc1b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2298ef{['afterInit'](){const _0x2cdf4e=this['editor'];if(!_0x2cdf4e['plugins']['has']('CodeBlock'))return;const _0x1314d6=_0x2cdf4e['plugins']['get']('TrackChangesEditing'),_0x15d7e8=_0x2cdf4e['locale'],_0x2997f0=_0x2cdf4e['config']['get']('codeBlock')['languages'],_0x2ad220=_0x2cdf4e['commands']['get']('codeBlock');_0x1314d6['enableCommand']('indentCodeBlock'),_0x1314d6['enableCommand']('outdentCodeBlock'),_0x1314d6['enableCommand']('codeBlock',(_0x1bd3fd,_0x24fee9={})=>{const _0x33f7a2=_0x2cdf4e['model'],_0x259bf5=_0x2cdf4e['model']['document']['selection'],_0x1285d2=_0x24fee9&&void 0x0!==_0x24fee9['forceValue']?_0x24fee9['forceValue']:!_0x2ad220['value'];let _0x51c678;_0x24fee9['language']||(_0x24fee9['language']=_0x2997f0[0x0]['language']),_0x51c678=_0x1285d2?Array['from'](_0x259bf5['getSelectedBlocks']())['filter'](_0x29a7e3=>eo(_0x29a7e3)||function(_0x3f4d37,_0x139919){if(_0x3f4d37['is']('rootElement')||_0x139919['isLimit'](_0x3f4d37))return!0x1;return _0x139919['checkChild'](_0x3f4d37['parent'],'codeBlock');}(_0x29a7e3,_0x33f7a2['schema'])):Array['from'](_0x259bf5['getSelectedBlocks']())['filter'](_0x2c4725=>eo(_0x2c4725));const _0x232aa4=to(_0x51c678,_0x33f7a2);_0x33f7a2['change'](()=>{for(const _0x5b8277 of _0x232aa4)_0x1314d6['markBlockFormat'](_0x5b8277,{'commandName':'codeBlock','commandParams':[{..._0x24fee9,'forceValue':_0x1285d2}],'formatGroupId':'blockName'});});}),(_0x1314d6['descriptionFactory']['registerElementLabel']('codeBlock',_0x3aa9b9=>o(_0x15d7e8,'ELEMENT_CODE_BLOCK',_0x3aa9b9)),_0x1314d6['descriptionFactory']['registerDescriptionCallback'](_0x713a13=>{if('formatBlock'!=_0x713a13['type'])return;const _0x33668e=_0x15d7e8['t'],{data:_0x39a6f9}=_0x713a13;if(!_0x39a6f9||'codeBlock'!=_0x39a6f9['commandName'])return;const _0x2b2acd=_0x39a6f9['commandParams'][0x0]['language'],_0x40c36f=_0x33668e(_0x2997f0['find'](_0x5dc9f5=>_0x5dc9f5['language']===_0x2b2acd)['label'])['toLowerCase']();return _0x39a6f9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x15d7e8,'*Set\x20format:*\x20%0',o(_0x15d7e8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x40c36f+')')}:{'type':'format','content':o(_0x15d7e8,'*Remove\x20format:*\x20%0',o(_0x15d7e8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x15b97d){return'codeBlock'==_0x15b97d['name'];}class z extends _0x2298ef{['afterInit'](){const _0x217b8e=this['editor'];if(!_0x217b8e['plugins']['has']('CommentsEditing'))return;_0x217b8e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x7e2c9d,_0x22ae25,_0x527861){const _0x5bca7=[];for(const _0x1c6f54 of _0x22ae25['getItems']())_0x1c6f54['hasAttribute'](_0x7e2c9d)&&_0x5bca7['push'](_0x527861['createRangeOn'](_0x1c6f54));return _0x5bca7;}function De(_0x39f53c,_0x49bf49,{showActiveMarker:_0x50b3e8=!0x0}={}){const _0x2ec872=_0x39f53c['plugins']['get']('TrackChangesEditing');return(_0x5ddbe1,_0x2a81df,_0x42f661)=>{if(!_0x42f661['consumable']['test'](_0x2a81df['markerRange'],_0x5ddbe1['name']))return;const _0x1c19fc=_0x2a81df['markerRange']['getWalker'](),_0x2d4150=_0x2a81df['markerRange']['start'],_0x31777e=_0x39f53c['model']['schema'];let _0x5af5ad=null,_0x3b2ffa=null,_0x5c7149=!0x1,_0x5a16b7=!0x1;for(const _0x1d6ed8 of _0x1c19fc){const _0x8f4563=_0x1d6ed8['item'];_0x5c7149=_0x5c7149||_0x31777e['isContent'](_0x8f4563);const _0x274a20=_0x42f661['mapper']['toViewElement'](_0x8f4563);if(_0x274a20&&_0x274a20['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1d6ed8['type']&&(_0x31777e['isBlock'](_0x8f4563)&&!_0x31777e['isLimit'](_0x8f4563)&&(_0x8f4563['nextSibling']||_0x2d4150['isAtEnd']?_0x5af5ad&&_0x5af5ad['parent']==_0x8f4563||(_0x5af5ad=_0x8f4563,_0x2e49a6(_0x1d6ed8['previousPosition']),_0x5a16b7=!0x0):_0x3b2ffa=_0x3b2ffa||_0x1d6ed8['previousPosition']));}function _0x2e49a6(_0x84e3d5){const {authorId:_0x482768}=_0x2ec872['_splitMarkerName'](_0x2a81df['markerName']),_0x325e79=_0x42f661['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x49bf49,'data-author-id':_0x482768}),_0x10f77e=_0x42f661['mapper']['toViewPosition'](_0x84e3d5);_0x50b3e8&&_0x2ec872['activeMarkers']['includes'](_0x2a81df['markerName'])&&_0x42f661['writer']['addClass']('ck-suggestion-marker--active',_0x325e79),_0x42f661['writer']['insert'](_0x10f77e,_0x325e79),_0x42f661['mapper']['bindElementToMarker'](_0x325e79,_0x2a81df['markerName']);}_0x5c7149||_0x5a16b7||!_0x3b2ffa||_0x2e49a6(_0x3b2ffa);};}class K extends _0x2298ef{static get['requires'](){return[_0x56e404];}['init'](){const _0x32aac2=this['editor'],_0x3316ab=_0x32aac2['plugins']['get']('TrackChangesEditing');_0x3316ab['enableCommand']('delete');const _0x5b669a=_0x32aac2['commands']['get']('deleteForward');_0x3316ab['enableCommand']('deleteForward',(_0x1ca987,_0x1cc50e={})=>{const _0x5abd7e=_0x32aac2['model']['createSelection'](_0x32aac2['model']['document']['selection']);_0x5abd7e['isCollapsed']&&_0x32aac2['model']['modifySelection'](_0x5abd7e,{'direction':'forward','unit':_0x1cc50e['unit']});const _0x2efbad=_0x5abd7e['getFirstRange'](),_0x391b9e=_0x58aa1['fromRange'](_0x2efbad);let _0x23cb79;_0x1ca987(_0x1cc50e),_0x23cb79='$graveyard'==_0x391b9e['root']['rootName']?_0x32aac2['model']['createRange'](_0x2efbad['start']):_0x32aac2['model']['createRange'](_0x391b9e['start'],_0x391b9e['end']),_0x391b9e['detach'](),_0x32aac2['model']['enqueueChange'](_0x5b669a['buffer']['batch'],_0x1a2fd5=>{_0x5b669a['buffer']['lock'](),_0x1a2fd5['setSelection'](_0x1a2fd5['createRange'](_0x23cb79['end'])),_0x5b669a['buffer']['unlock']();});}),_0x32aac2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x32aac2,'merge'),{'priority':'high'}),_0x32aac2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1d1547,_0x519311,_0x7c2a7e)=>{_0x7c2a7e['options']['showSuggestionHighlights']&&De(_0x32aac2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1d1547,_0x519311,_0x7c2a7e);},{'priority':'high'}),_0x32aac2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1e543f,_0x4c4343,_0x49cff0)=>{const _0x5cf66f=_0x49cff0['mapper']['markerNameToElements'](_0x4c4343['markerName']);if(_0x5cf66f){for(const _0x501c53 of _0x5cf66f)_0x501c53['is']('uiElement')&&(_0x49cff0['mapper']['unbindElementFromMarkerName'](_0x501c53,_0x4c4343['markerName']),_0x49cff0['writer']['remove'](_0x501c53));}},{'priority':'high'});}}class W extends _0x2298ef{['afterInit'](){const _0x372f89=this['editor'];if(!_0x372f89['plugins']['has']('ListEditing'))return;const _0x4887c8=_0x372f89['locale'],_0x5e06f6=_0x372f89['plugins']['get']('TrackChangesEditing'),_0x1b547d=_0x372f89['plugins']['has']('TodoListEditing'),_0x58e197=!!_0x372f89['config']['get']('list.multiBlock');function _0x1f3036(_0x4db49c){return{'type':'format','content':''+o(_0x4887c8,'*Set\x20format:*\x20%0',_0x4db49c)};}function _0x5c98b3(_0x11664e){return{'type':'format','content':''+o(_0x4887c8,'*Remove\x20format:*\x20%0',_0x11664e)};}_0x5e06f6['enableDefaultAttributesIntegration']('numberedList'),_0x5e06f6['enableDefaultAttributesIntegration']('bulletedList'),_0x5e06f6['enableDefaultAttributesIntegration']('customNumberedList'),_0x5e06f6['enableDefaultAttributesIntegration']('customBulletedList'),_0x5e06f6['enableDefaultAttributesIntegration']('indentList'),_0x5e06f6['enableDefaultAttributesIntegration']('outdentList'),_0x5e06f6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5e06f6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5e06f6['registerBlockAttribute']('listItemId'),_0x5e06f6['registerBlockAttribute']('listType'),_0x5e06f6['registerBlockAttribute']('listIndent'),_0x58e197&&(_0x5e06f6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5e06f6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1b547d&&(_0x5e06f6['enableDefaultAttributesIntegration']('todoList'),_0x5e06f6['enableDefaultAttributesIntegration']('checkTodoList'),_0x5e06f6['registerBlockAttribute']('todoListChecked'),_0x5e06f6['descriptionFactory']['registerDescriptionCallback'](_0x53cef5=>{const {data:_0x53dfac}=_0x53cef5;if(_0x53dfac&&'todoListChecked'==_0x53dfac['key'])return{'type':'format','content':_0x53dfac['newValue']?o(_0x4887c8,'*Check\x20item*'):o(_0x4887c8,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4a975d=>{if(_0x4a975d['batch']['isUndo'])return!0x1;let _0x2c89af=!0x1;const _0x175c57=_0x5e06f6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x359298=>'todoListChecked'===_0x5e06f6['_getAttributeKey'](_0x359298));for(const _0xcf333d of _0x175c57){'todo'!=_0xcf333d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5e06f6['_findSuggestions'](_0xcf333d['getFirstRange'](),'attribute')['find'](_0x3741dd=>'listType'===_0x5e06f6['_getAttributeKey'](_0x3741dd['suggestion']))||(_0x4a975d['removeMarker'](_0xcf333d['getFirstMarker']()),_0x2c89af=!0x0));}return _0x2c89af;})),_0x5e06f6['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4887c8,'FORMAT_INDENT'));const _0x207c9a={'type':'format','content':''};_0x5e06f6['descriptionFactory']['registerDescriptionCallback'](_0x3a4fb4=>{const {data:_0x23046b}=_0x3a4fb4;if(!_0x23046b||'listType'!=_0x23046b['key'])return;let _0x24f490=_0x3a4fb4['head'];for(;_0x24f490;){if(_0x24f490['data']&&(('listStyle'==_0x24f490['data']['key']||'listMarkerStyle'==_0x24f490['data']['key'])&&(_0x24f490['data']['newValue']&&'default'!=_0x24f490['data']['newValue']||'default'!=_0x24f490['data']['oldValue']&&!_0x23046b['newValue'])||!_0x58e197&&_0x24f490['data']['key']==m))return _0x207c9a;_0x24f490=_0x24f490['next'];}if(null==_0x23046b['newValue'])switch(_0x23046b['oldValue']){case'bulleted':return _0x5c98b3(o(_0x4887c8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c98b3(o(_0x4887c8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c98b3(o(_0x4887c8,'ELEMENT_TODO_LIST'));}switch(_0x23046b['newValue']){case'bulleted':return _0x1f3036(o(_0x4887c8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1f3036(o(_0x4887c8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1f3036(o(_0x4887c8,'ELEMENT_TODO_LIST'));}}),_0x5e06f6['descriptionFactory']['registerDescriptionCallback'](_0xfec6b0=>{const {data:_0x2b9e08}=_0xfec6b0;if(_0x2b9e08&&'listIndent'==_0x2b9e08['key'])return null==_0x2b9e08['newValue']||null==_0x2b9e08['oldValue']&&0x0==_0x2b9e08['newValue']?_0x207c9a:void 0x0;}),_0x5e06f6['descriptionFactory']['registerDescriptionCallback'](_0x5abd65=>{if('attribute'!=_0x5abd65['type'])return;const {data:_0x1d9c88}=_0x5abd65;if(!_0x1d9c88||'listItemId'!=_0x1d9c88['key'])return;const _0x5c3c67=Te(_0x5abd65);return'newValue'==_0x5c3c67?{'type':'format','content':o(_0x4887c8,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5c3c67?{'type':'format','content':o(_0x4887c8,'*Split:*\x20list\x20item')}:_0x207c9a;}),_0x372f89['model']['document']['registerPostFixer'](_0x259ed3=>this['listItemIdFixer'](_0x259ed3)),_0x372f89['model']['document']['registerPostFixer'](_0x562427=>this['noTrackChangesFixer'](_0x562427)),_0x372f89['model']['document']['on']('change:data',(_0x3d2152,_0x2c59d5)=>{if(_0x2c59d5['isUndo']||!_0x2c59d5['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xef76ab){if(_0xef76ab['batch']['isUndo']||!_0xef76ab['batch']['isLocal'])return!0x1;let _0x2765a4=!0x1;const _0x157616=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x285b29=>_0x285b29['data']&&'listItemId'==_0x285b29['data']['key'])['filter'](_0x18c6a2=>_0x18c6a2['data']['newValue']&&_0x18c6a2['data']['oldValue']);for(const _0x2e6531 of _0x157616)Te(_0x2e6531)||(_0xef76ab['removeMarker'](_0x2e6531['getFirstMarker']()),_0x2765a4=!0x0);return _0x2765a4;}['noTrackChangesFixer'](_0x4c25d5){if(_0x4c25d5['batch']['isUndo']||!_0x4c25d5['batch']['isLocal'])return!0x1;const _0x4b0c59=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4b0c59['trackChangesCommand']['value'])return!0x1;let _0x557d80=!0x1;const _0x4fca42=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xb8bd8c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2abc95=>'attribute'==_0x2abc95['type'])['filter'](_0x3dccbd=>_0x4fca42['includes'](_0x3dccbd['attributeKey']));if(0x0==_0xb8bd8c['length'])return _0x557d80;for(const _0x2756f6 of _0xb8bd8c){const _0x3ce4ae=_0x4b0c59['_findSuggestions'](_0x2756f6['range'],'attribute')['filter'](_0x441283=>!_0x441283['meta']['isNextTo'])['map'](_0x4ba9a3=>_0x4ba9a3['suggestion'])['filter'](_0x42319b=>{const _0x3f1e6a=_0x4b0c59['_getAttributeKey'](_0x42319b);return _0x4fca42['includes'](_0x3f1e6a);});if(_0x3ce4ae['length']){for(const _0x4d852 of _0x3ce4ae)_0x4c25d5['removeMarker'](_0x4d852['getFirstMarker']());_0x557d80=!0x0;}}return _0x557d80;}['assureChains'](){const _0x59ebd7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10c1d5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x93ca86;const _0x32f702=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x18c240=>{if(_0x18c240['data']['oldRange']||!_0x18c240['data']['newRange'])return null;if(!_0x18c240['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x55dd15}=_0x59ebd7['_splitMarkerName'](_0x18c240['name']);if(!_0x59ebd7['hasSuggestion'](_0x55dd15))return null;const _0x323391=_0x59ebd7['getSuggestion'](_0x55dd15);return _0x10c1d5['includes'](_0x323391['data']['key']);})['map'](_0x343b88=>{const {id:_0x163cd8}=_0x59ebd7['_splitMarkerName'](_0x343b88['name']),_0x5f146e=_0x59ebd7['getSuggestion'](_0x163cd8);return _0x93ca86=_0x5f146e['attributes']['groupId'],_0x5f146e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x32f702['size'])return;const _0x2b1e9c=_0x59ebd7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7af26b=>'attribute'==_0x7af26b['type']&&_0x7af26b['data']&&_0x10c1d5['includes'](_0x7af26b['data']['key'])&&_0x7af26b['attributes']['groupId']!=_0x93ca86)['map'](_0x1d7e1e=>({'listItem':_0x1d7e1e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1d7e1e['attributes']['groupId']})),_0x23e6da=new Set();for(const {groupId:_0xf59e27,listItem:_0x262193}of _0x2b1e9c)_0x32f702['has'](_0x262193)&&_0x23e6da['add'](_0xf59e27);for(const _0xdaf06d of _0x59ebd7['getSuggestions']())_0x23e6da['has'](_0xdaf06d['attributes']['groupId'])&&_0xdaf06d['setAttribute']('groupId',_0x93ca86);}['_supportLegacySuggestions'](){const _0xc883e4=this['editor'],_0x20e6cf=_0xc883e4['locale'],_0x2780c4=_0xc883e4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2780c4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x652e86,_0xe14716){const _0x3a1ae1=[];for(let _0x4c35c9 of _0x652e86)_0x4c35c9['start']['nodeAfter']===_0x4c35c9['end']['parent']&&(_0x4c35c9=_0xc883e4['model']['createRange'](_0xc883e4['model']['createPositionAt'](_0x4c35c9['start']['nodeAfter'],0x0))),_0x3a1ae1['push'](_0x4c35c9);_0xc883e4['model']['change'](_0x1075db=>{const _0x248468=_0xc883e4['model']['document']['selection'],_0x519cca=Array['from'](_0x248468['getRanges']())['map'](_0x295048=>_0x58aa1['fromRange'](_0x295048));_0x1075db['setSelection'](_0x3a1ae1),_0xc883e4['commands']['get'](_0xe14716['commandName'])['refresh'](),_0xe14716['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xc883e4['execute'](_0xe14716['commandName'],..._0xe14716['commandParams']),_0x1075db['setSelection'](_0x519cca);for(const _0xa1858 of _0x519cca)_0xa1858['detach']();});}),_0x2780c4['descriptionFactory']['registerElementLabel'](function(_0x21b612){const _0x1495ab=!_0xc883e4['model']['schema']['isObject'](_0x21b612),_0x2f31e7=_0x21b612['previousSibling'],_0xb38e9f=_0x21b612['nextSibling'],_0x267c86=_0x21b612['getAttribute']('listItemId'),_0x5e4cd6=!_0x2f31e7||_0x2f31e7['getAttribute']('listItemId')!==_0x267c86,_0x8b1588=!_0xb38e9f||_0xb38e9f['getAttribute']('listItemId')!==_0x267c86;return _0x1495ab&&Boolean(_0x267c86)&&_0x5e4cd6&&_0x8b1588;},_0x166fc6=>o(_0x20e6cf,'ELEMENT_LIST_ITEM',_0x166fc6));}['_registerLegacyDescription'](){const _0x2df109=this['editor'],_0x11e689=_0x2df109['locale'];function _0x281a50(_0x45f965){const _0x5e4a1e=_0x2df109['commands']['get']('bulletedList')['value'],_0x42f3dc=_0x2df109['commands']['get']('numberedList')['value'];return'numberedList'===_0x45f965?_0x5e4a1e:_0x42f3dc;}_0x2df109['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x575d93){if('formatBlock'!=_0x575d93['type'])return;const {data:_0x25c511}=_0x575d93;if(!_0x25c511)return;let _0x59e2d9,_0xd68f53,_0x2de1e1,_0x3c8046;switch(_0x25c511['commandName']){case'bulletedList':_0x2de1e1=_0x25c511['commandParams'][0x0]['forceValue'],_0x3c8046=_0x281a50(_0x25c511['commandName']),_0x59e2d9=_0x2de1e1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c8046&&_0x2df109['config']['get']('list.multiBlock')||(_0x59e2d9='*Change\x20to:*\x20%0'),_0xd68f53={'type':'format','content':o(_0x11e689,_0x59e2d9,o(_0x11e689,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2de1e1=_0x25c511['commandParams'][0x0]['forceValue'],_0x3c8046=_0x281a50(_0x25c511['commandName']),_0x59e2d9=_0x2de1e1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c8046&&_0x2df109['config']['get']('list.multiBlock')||(_0x59e2d9='*Change\x20to:*\x20%0'),_0xd68f53={'type':'format','content':o(_0x11e689,_0x59e2d9,o(_0x11e689,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x59e2d9='*Indent:*\x20%0',_0xd68f53={'type':'format','content':o(_0x11e689,_0x59e2d9,o(_0x11e689,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x59e2d9=function(_0x49b245){const _0x2dffcb=_0x49b245['getFirstRange']();let _0x4fc2ea=_0x2dffcb['start']['nodeAfter'];for(;_0x4fc2ea&&_0x2dffcb['containsItem'](_0x4fc2ea);){if(_0x4fc2ea['getAttribute']('listIndent')>0x0)return!0x1;_0x4fc2ea=_0x4fc2ea['nextSibling'];}return!0x0;}(_0x575d93)?o(_0x11e689,'*Format:*\x20remove\x20from\x20%0',o(_0x11e689,function(_0xe50679){return'ELEMENT_'+_0xe50679['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x575d93))):o(_0x11e689,'*Outdent:*\x20%0',o(_0x11e689,'ELEMENT_LIST_ITEM')),_0xd68f53={'type':'format','content':_0x59e2d9};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x25c511['multipleBlocks']&&(_0x59e2d9='*Merge:*\x20%0',_0xd68f53={'type':'deletion','content':o(_0x11e689,_0x59e2d9,o(_0x11e689,'ELEMENT_LIST_ITEM'))});}return _0xd68f53;});}}function Te(_0x4b111b){let _0x209151=_0x4b111b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x209151;){const _0x3da8e2=_0x209151['getAttribute']('listItemId');if(!_0x3da8e2)return!0x1;if(_0x3da8e2==_0x4b111b['data']['newValue'])return'newValue';if(_0x3da8e2==_0x4b111b['data']['oldValue'])return'oldValue';_0x209151=_0x209151['previousSibling'];}return!0x1;}class Se extends _0x2298ef{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x537d37=this['editor']['config']['get']('list.properties'),_0x3fbd14=this['editor']['plugins']['get']('TrackChangesEditing');_0x537d37['styles']&&(_0x3fbd14['enableDefaultAttributesIntegration']('listStyle'),_0x3fbd14['registerBlockAttribute']('listStyle')),_0x537d37['reversed']&&(_0x3fbd14['enableDefaultAttributesIntegration']('listReversed'),_0x3fbd14['registerBlockAttribute']('listReversed')),_0x537d37['startIndex']&&(_0x3fbd14['enableDefaultAttributesIntegration']('listStart'),_0x3fbd14['registerBlockAttribute']('listStart'));const _0x355bb0={'type':'format','content':''};_0x3fbd14['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2931f2=this['editor']['locale'];_0x3fbd14['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2931f2,'FORMAT_LIST_REVERSED')),_0x3fbd14['descriptionFactory']['registerDescriptionCallback'](_0x33f38a=>{const {data:_0x1063fc}=_0x33f38a;if(_0x1063fc&&'listReversed'==_0x1063fc['key'])return null==_0x1063fc['newValue']||0x0==_0x1063fc['newValue']&&null==_0x1063fc['oldValue']?_0x355bb0:void 0x0;}),_0x3fbd14['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2931f2,'FORMAT_LIST_START')),_0x3fbd14['descriptionFactory']['registerDescriptionCallback'](_0x54f982=>{const {data:_0x4be006}=_0x54f982;if(_0x4be006&&'listStart'==_0x4be006['key'])return null==_0x4be006['newValue']||0x1==_0x4be006['newValue']&&null==_0x4be006['oldValue']?_0x355bb0:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x95fd08=>{if(_0x95fd08['batch']['isUndo'])return!0x1;let _0x47c1a7=!0x1;const _0x3b8266=_0x3fbd14['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cf857=>{const _0x309e8a=_0x3fbd14['_getAttributeKey'](_0x5cf857);return'listStart'==_0x309e8a||'listReversed'==_0x309e8a;});for(const _0x372361 of _0x3b8266){const _0x2d3ace=_0x372361['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2d3ace||'customNumbered'==_0x2d3ace)continue;_0x3fbd14['_findSuggestions'](_0x372361['getFirstRange'](),'attribute')['find'](_0x31ac3c=>'listType'==_0x3fbd14['_getAttributeKey'](_0x31ac3c['suggestion']))||(_0x95fd08['removeMarker'](_0x372361['getFirstMarker']()),_0x47c1a7=!0x0);}return _0x47c1a7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x42c2b0){const _0x5e54d7=this['editor']['locale'],{data:_0x2f323c}=_0x42c2b0,_0xd78e59={'type':'format','content':''};if(!_0x2f323c||'listStyle'!=_0x2f323c['key'])return;if(!_0x2f323c['oldValue'])return'default'==_0x2f323c['newValue']?_0xd78e59:{'type':'format','content':''+o(_0x5e54d7,'*Set\x20format:*\x20%0',o(_0x5e54d7,this['_getTranslationKeyForListStyle'](_0x2f323c['newValue'])))};if(!_0x2f323c['newValue']){if('default'==_0x2f323c['oldValue'])return _0xd78e59;let _0x50d81c=_0x42c2b0['head'];for(;_0x50d81c;){if(_0x50d81c['data']&&'listType'==_0x50d81c['data']['key']&&_0x50d81c['data']['newValue'])return _0xd78e59;_0x50d81c=_0x50d81c['next'];}return{'type':'format','content':''+o(_0x5e54d7,'*Remove\x20format:*\x20%0',o(_0x5e54d7,this['_getTranslationKeyForListStyle'](_0x2f323c['oldValue'])))};}if('default'!=_0x2f323c['newValue'])return{'type':'format','content':''+o(_0x5e54d7,'*Set\x20format:*\x20%0',o(_0x5e54d7,this['_getTranslationKeyForListStyle'](_0x2f323c['newValue'])))};let _0x57b741=_0x42c2b0['head'];for(;_0x57b741;){if(_0x57b741['data']&&'listType'==_0x57b741['data']['key']&&_0x57b741['data']['newValue']&&_0x57b741['data']['oldValue'])return _0xd78e59;_0x57b741=_0x57b741['next'];}return{'type':'format','content':o(_0x5e54d7,'*Set\x20format:*\x20%0',o(_0x5e54d7,'ELEMENT_'+_0x42c2b0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x57d11b=this['editor'],_0x2e2097=_0x57d11b['locale'];_0x57d11b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cadcb=>{if('formatBlock'!=_0x1cadcb['type'])return;const {data:_0x3d5416}=_0x1cadcb;if(!_0x3d5416)return;let _0x4e625b,_0x16ba46;switch(_0x3d5416['commandName']){case'listStyle':_0x4e625b='*Change\x20to:*\x20%0',_0x16ba46={'type':'format','content':o(_0x2e2097,_0x4e625b,o(_0x2e2097,this['_getTranslationKeyForListStyle'](_0x3d5416['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4e625b=_0x3d5416['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x16ba46={'type':'format','content':o(_0x2e2097,_0x4e625b)};break;case'listStart':_0x4e625b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x16ba46={'type':'format','content':o(_0x2e2097,_0x4e625b,_0x3d5416['commandParams'][0x0]['startIndex'])};}return _0x16ba46;});}['_getTranslationKeyForListStyle'](_0x4c0c28){return'ELEMENT_'+function(_0x7ed2a2){if(_e['includes'](_0x7ed2a2))return'bulleted';if(Re['includes'](_0x7ed2a2))return'numbered';return null;}(_0x4c0c28)['toUpperCase']()+'_LIST_'+_0x4c0c28['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2298ef{static get['requires'](){return[_0x261fb9];}['init'](){const _0x39776c=this['editor'],_0x4e108e=_0x39776c['plugins']['get']('TrackChangesEditing'),_0x510325=_0x39776c['commands']['get']('enter');_0x4e108e['enableCommand']('enter',()=>{_0x39776c['model']['change'](_0x4289ef=>{const _0x4b0980=_0x39776c['model']['document']['selection'],_0x446c65=_0x4b0980['getFirstPosition'](),_0x150941=_0x58aa1['fromRange'](_0x4b0980['getFirstRange']());if(_0x510325['enterBlock'](_0x4289ef)){const _0x289316=_0x39776c['model']['createPositionAt'](_0x446c65['parent']['nextSibling'],0x0),_0x19c154=_0x4289ef['createRange'](_0x446c65,_0x289316);_0x4e108e['markInsertion'](_0x19c154);}else _0x4289ef['setSelection'](_0x4289ef['createRange'](_0x150941['end']));_0x150941['detach'](),_0x510325['fire']('afterExecute',{'writer':_0x4289ef});});}),_0x39776c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x39776c,'split'),{'priority':'high'}),_0x39776c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2eceb4,_0x1416fb,_0x229db3)=>{const _0x1336dc=_0x229db3['mapper']['markerNameToElements'](_0x1416fb['markerName']);if(_0x1336dc){for(const _0x467ab2 of _0x1336dc)_0x467ab2['hasClass']('ck-suggestion-marker-split')&&(_0x229db3['mapper']['unbindElementFromMarkerName'](_0x467ab2,_0x1416fb['markerName']),_0x229db3['writer']['remove'](_0x467ab2));}},{'priority':'high'}),_0x39776c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x160a55,_0x39d711,_0x19809d)=>{_0x19809d['options']['showSuggestionHighlights']&&De(_0x39776c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x160a55,_0x39d711,_0x19809d);},{'priority':'high'});}}class Y extends _0x2298ef{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x351534=this['editor']['plugins']['get']('TrackChangesEditing');_0x351534['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x351534['enableCommand']('findNext'),_0x351534['enableCommand']('findPrevious'),_0x351534['enableCommand']('replace'),_0x351534['enableCommand']('replaceAll');}['handleFindCommand'](_0xea8db8,_0x36c923,_0x1596c0={}){const _0x2617a4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xea8db8(_0x5106aa=>{let _0x292aa5=('string'==typeof _0x36c923?_0x2617a4['findByTextCallback'](_0x36c923,_0x1596c0):_0x36c923)(_0x5106aa);Array['isArray'](_0x292aa5)&&(_0x292aa5={'results':_0x292aa5,'searchText':'string'==typeof _0x36c923?_0x36c923:''});const _0x1e5025=_0x292aa5['results']['filter'](_0x5740f6=>!0x1===this['_isInDeletionRange'](_0x5740f6,_0x5106aa['item']));return{..._0x292aa5,'results':_0x1e5025};},_0x1596c0);}['_isInDeletionRange'](_0x579383,_0xa6f91e){const _0x55ae10=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xa6f91e,_0x579383['start']),this['editor']['model']['createPositionAt'](_0xa6f91e,_0x579383['end']));for(const _0x3bfaa2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x55ae10['getIntersection'](_0x3bfaa2['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x2298ef{['afterInit'](){const _0x4a68be=this['editor']['locale'],_0x4ee50f=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x189108,commandName:_0x4d0b37}of ro)this['editor']['plugins']['has'](_0x189108)&&(_0x4ee50f['enableDefaultAttributesIntegration'](_0x4d0b37),_0x4ee50f['registerInlineAttribute'](_0x4d0b37));_0x4ee50f['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4a68be,'FORMAT_FONT_SIZE')),_0x4ee50f['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4a68be,'FORMAT_FONT_FAMILY')),_0x4ee50f['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4a68be,'FORMAT_FONT_COLOR')),_0x4ee50f['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4a68be,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10e455=this['editor'],_0x52d2df=_0x10e455['locale'];_0x10e455['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x434fbe=>{const _0x5d7f69=_0x52d2df['t'];if('formatInline'!=_0x434fbe['type'])return;const {data:_0x5348f6}=_0x434fbe;if(null!=_0x5348f6){if('fontSize'==_0x5348f6['commandName']){const _0x23c457=_0x5348f6['commandParams'][0x0]['value'];if(_0x23c457){const _0x5eea60=_0x5d7f69(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xe9ce93=>_0xe9ce93['model']==_0x23c457)['title'])['toLowerCase']();return{'type':'format','content':o(_0x52d2df,'*Set\x20font\x20size:*\x20%0',_0x5eea60)};}return{'type':'format','content':o(_0x52d2df,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5348f6['commandName']){const _0x296dd5=_0x5348f6['commandParams'][0x0]['value'];return _0x296dd5?{'type':'format','content':o(_0x52d2df,'*Set\x20font\x20family:*\x20%0',_0x296dd5)}:{'type':'format','content':o(_0x52d2df,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5348f6['commandName']){const _0x290415=_0x5348f6['commandParams'][0x0]['value'];if(_0x290415){const _0x1d1465=_0x576e57(this['editor']['config']['get']('fontColor.colors'))['find'](_0x937f15=>_0x937f15['model']==_0x290415);let _0x595fcc=_0x290415,_0x288066='';return _0x1d1465&&(_0x595fcc=_0x1d1465['label'],_0x288066=_0x5d7f69(_0x595fcc)['toLowerCase']()),{'type':'format','content':o(_0x52d2df,'*Set\x20font\x20color:*\x20%0',_0x288066)['trim'](),'color':{'value':_0x290415,'title':_0x288066||_0x595fcc}};}return{'type':'format','content':o(_0x52d2df,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5348f6['commandName']){const _0x25ea1b=_0x5348f6['commandParams'][0x0]['value'];if(_0x25ea1b){const _0x5b73e3=_0x576e57(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x11a48c=>_0x11a48c['model']==_0x25ea1b);let _0x5b9e0c=_0x25ea1b,_0xbbfc53='';return _0x5b73e3&&(_0x5b9e0c=_0x5b73e3['label'],_0xbbfc53=_0x5d7f69(_0x5b9e0c)['toLowerCase']()),{'type':'format','content':o(_0x52d2df,'*Set\x20font\x20background\x20color:*\x20%0',_0xbbfc53)['trim'](),'color':{'value':_0x25ea1b,'title':_0xbbfc53||_0x5b9e0c}};}return{'type':'format','content':o(_0x52d2df,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x2298ef{['afterInit'](){const _0x4fd362=this['editor'],_0x5dc380=_0x4fd362['plugins']['get']('TrackChangesEditing'),_0x888089=_0x4fd362['commands']['get']('copyFormat'),_0xfd9289=_0x4fd362['commands']['get']('pasteFormat');_0x888089&&_0xfd9289&&(_0x5dc380['enableDefaultAttributesIntegration']('pasteFormat'),_0x5dc380['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x20d365=this['editor'],_0x29e774=_0x20d365['locale'];_0x20d365['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50e5d2=>{if('formatBlock'!=_0x50e5d2['type']&&'formatInline'!=_0x50e5d2['type'])return;const {data:_0x49dd41}=_0x50e5d2;if(_0x49dd41&&'pasteFormat'===_0x49dd41['commandName']){const _0xd79005=[],_0x2b8b18=_0x49dd41['commandParams'][0x0];for(const [_0x225c8a,_0x3345c6]of Object['entries'](_0x2b8b18))_0xd79005['push'](so(_0x20d365,_0x225c8a,_0x3345c6));return _0xd79005['length']?{'type':'format','content':o(_0x29e774,'*Set\x20format\x20to:*\x20%0',_0xd79005['join'](',\x20'))}:{'type':'format','content':o(_0x29e774,'*Remove\x20all\x20formatting*')};}});}}function so(_0x16d25d,_0x51b9d3,_0x30a5da){const _0x373155=_0x16d25d['locale']['t'],_0x16c463=_0x51b9d3['split'](/(?=[A-Z])/)['join']('\x20'),_0x30e3e7=_0x373155(_0x16c463['charAt'](0x0)['toUpperCase']()+_0x16c463['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x30a5da)return _0x30e3e7;if('fontColor'===_0x51b9d3||'fontBackgroundColor'===_0x51b9d3){const _0x2b0430=_0x576e57(_0x16d25d['config']['get']('fontColor.colors'))['find'](_0x3c37d3=>_0x3c37d3['model']==_0x30a5da);return _0x30e3e7+'\x20('+(_0x2b0430?_0x373155(_0x2b0430['label'])['toLowerCase']():_0x30a5da)+')';}if('fontSize'===_0x51b9d3&&isNaN(parseFloat(_0x30a5da))){const _0x49924f=_0x16d25d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x16d25d['config']['get']('fontSize.options'))['find'](_0xcea53f=>_0xcea53f['model']==_0x30a5da);return _0x30e3e7+'\x20('+(_0x49924f?_0x373155(_0x49924f['title'])['toLowerCase']():_0x30a5da)+')';}return _0x30e3e7+'\x20('+_0x30a5da+')';}class nt extends _0x2298ef{['_headingOptions'];['afterInit'](){const _0x232366=this['editor'];if(!_0x232366['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x232366['config']['get']('heading.options');const _0x4052f0=_0x232366['locale'],_0x269fb4=_0x232366['plugins']['get']('TrackChangesEditing');_0x269fb4['enableDefaultAttributesIntegration']('heading');for(const _0x3ea553 of this['_headingOptions'])'paragraph'!=_0x3ea553['model']&&_0x269fb4['descriptionFactory']['registerElementLabel'](_0x3ea553['model'],_0x5947dc=>{const _0x5c4664=this['_getHeadingLevel'](_0x3ea553['model']);return null!==_0x5c4664?_0x51c406(_0x5947dc,_0x5c4664):_0x914fb6(_0x5947dc,_0x3ea553['title']);});function _0x51c406(_0x5d4a5e,_0x4f2437){return o(_0x4052f0,'ELEMENT_HEADING',[_0x5d4a5e,_0x4f2437]);}function _0x914fb6(_0xc5e86d,_0x1a4d21){return o(_0x4052f0,'ELEMENT_HEADING_CUSTOM',[_0xc5e86d,_0x1a4d21]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e33bc=this['editor'],_0x54c798=_0x1e33bc['locale'];function _0x4681b1(_0x244f96,_0x4c4040){return o(_0x54c798,'ELEMENT_HEADING_CUSTOM',[_0x244f96,_0x4c4040]);}_0x1e33bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8898be=>{if('formatBlock'!=_0x8898be['type'])return;const {data:_0x1d33a9}=_0x8898be;if(_0x1d33a9&&'heading'==_0x1d33a9['commandName']){const _0x325e9b=_0x1d33a9['commandParams'][0x0]['value'],_0x190f46=this['_getHeadingLevel'](_0x325e9b);if(null!==_0x190f46)return{'type':'format','content':o(_0x54c798,'*Change\x20to:*\x20%0',(_0x584691=0x1,_0x3e1189=_0x190f46,o(_0x54c798,'ELEMENT_HEADING',[_0x584691,_0x3e1189])))};const _0x5b366d=this['_headingOptions']['find'](_0x11cc88=>_0x11cc88['model']===_0x325e9b)['title'];return{'type':'format','content':o(_0x54c798,'*Change\x20to:*\x20%0',_0x4681b1(0x1,_0x5b366d))};}var _0x584691,_0x3e1189;});}['_getHeadingLevel'](_0x56b491){const _0x54c650=_0x56b491['match'](/^heading(\d+)/);if(_0x54c650)return _0x54c650[0x1];const _0xd4943=this['_headingOptions']?.['find'](_0x427073=>_0x427073['model']==_0x56b491);if(_0xd4943&&_0xd4943['view']){const _0xb3968a=_0xd4943['view'],_0x1cdc3c=(_0xb3968a['name']??_0xb3968a)['match'](/^h(\d+)/);if(_0x1cdc3c)return _0x1cdc3c[0x1];}return null;}}class it extends _0x2298ef{['afterInit'](){const _0x1a2ebc=this['editor'];if(!_0x1a2ebc['plugins']['has']('HighlightEditing'))return;const _0x28e926=_0x1a2ebc['plugins']['get']('TrackChangesEditing'),_0x167ba0=_0x1a2ebc['locale'];_0x28e926['enableDefaultAttributesIntegration']('highlight'),_0x28e926['registerInlineAttribute']('highlight'),_0x28e926['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x167ba0,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x105dd9=this['editor'],_0x576adb=_0x105dd9['locale'];_0x105dd9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x330c60=>{if('formatInline'!=_0x330c60['type'])return;const {data:_0x3eae63}=_0x330c60;if(_0x3eae63&&'highlight'==_0x3eae63['commandName']){const _0x2a8d9d=_0x576adb['t'],_0x2e25d5=_0x3eae63['commandParams'][0x0]['value'];if(_0x2e25d5){const _0x46acc4=_0x105dd9['config']['get']('highlight.options')['find'](_0x527ee8=>_0x527ee8['model']==_0x2e25d5),_0x27316d=_0x2a8d9d(_0x46acc4['title'])['toLowerCase']();return{'type':'format','content':o(_0x576adb,'*Set\x20highlight:*\x20%0',_0x27316d),'color':{'value':_0x46acc4['color'],'title':_0x46acc4['title']}};}return{'type':'format','content':o(_0x576adb,'*Remove\x20highlight*',o(_0x576adb,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x2298ef{['afterInit'](){const _0x5e5a69=this['editor'];if(!_0x5e5a69['plugins']['has']('HorizontalLineEditing'))return;_0x5e5a69['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x15eb6c=_0x5e5a69['plugins']['get']('TrackChangesEditing'),_0x57c975=_0x5e5a69['locale'];_0x15eb6c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1bb877=>o(_0x57c975,'ELEMENT_HORIZONTAL_LINE',_0x1bb877)),_0x5e5a69['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x59b669,{writer:_0x465e2a,options:_0x5dbfa7})=>{if(!_0x5dbfa7['showSuggestionHighlights'])return null;const _0x3a13fa=_0x465e2a['createContainerElement']('div'),_0x1e9bdd=_0x465e2a['createEmptyElement']('hr');return _0x465e2a['addClass']('ck-horizontal-line',_0x3a13fa),_0x465e2a['insert'](_0x465e2a['createPositionAt'](_0x3a13fa,0x0),_0x1e9bdd),_0x3a13fa;},'converterPriority':'high'});}}class st extends _0x2298ef{['afterInit'](){const _0x546243=this['editor'];if(!_0x546243['plugins']['has']('HtmlEmbed'))return;const _0x207ebe=_0x546243['plugins']['get']('TrackChangesEditing'),_0x964f43=_0x546243['locale'];_0x207ebe['descriptionFactory']['registerElementLabel']('rawHtml',_0xddf05c=>o(_0x964f43,'ELEMENT_HTML_EMBED',_0xddf05c)),_0x207ebe['enableDefaultAttributesIntegration']('htmlEmbed'),_0x207ebe['registerBlockAttribute']('value'),_0x207ebe['descriptionFactory']['registerDescriptionCallback'](_0x4c1955=>{if('attribute'!=_0x4c1955['type'])return;const {data:_0xe7a445}=_0x4c1955;if(_0xe7a445&&'value'==_0xe7a445['key']&&_0x4c1955['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x16eebc=o(_0x964f43,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x964f43,'*Change\x20%0\x20content*',_0x16eebc)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c56d9=this['editor'],_0x5ace77=_0x1c56d9['locale'];_0x1c56d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39ccc4=>{if('formatBlock'!=_0x39ccc4['type'])return;const {data:_0x2e81e8}=_0x39ccc4;if(_0x2e81e8&&'htmlEmbed'==_0x2e81e8['commandName']){const _0x31c367=o(_0x5ace77,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5ace77,'*Change\x20%0\x20content*',_0x31c367)};}});}}class ot extends _0x2298ef{['afterInit'](){const _0x1213f8=this['editor'];if(!_0x1213f8['plugins']['has']('ImageEditing'))return;const _0x32ae5f=_0x1213f8['plugins']['get']('TrackChangesEditing'),_0x31a736=_0x1213f8['plugins']['get']('ImageUtils'),_0x53a797=_0x1213f8['locale'];_0x32ae5f['enableCommand']('insertImage'),_0x32ae5f['descriptionFactory']['registerElementLabel']('imageBlock',_0x4532a4=>o(_0x53a797,'ELEMENT_IMAGE',_0x4532a4)),_0x32ae5f['descriptionFactory']['registerElementLabel']('imageInline',_0x1b817c=>o(_0x53a797,'ELEMENT_INLINE_IMAGE',_0x1b817c)),_0x32ae5f['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x53a797,'ELEMENT_CAPTION')),_0x1213f8['plugins']['has']('ImageUploadEditing')&&_0x32ae5f['enableCommand']('uploadImage'),_0x1213f8['plugins']['has']('ImageBlockEditing')&&_0x1213f8['plugins']['has']('ImageInlineEditing')&&(_0x32ae5f['enableCommand']('imageTypeInline',(_0xffbae3,_0x430351)=>{const _0x15fb3b=_0x31a736['getClosestSelectedImageElement'](_0x1213f8['model']['document']['selection']);_0x1213f8['model']['change'](()=>{_0x32ae5f['markBlockFormat'](_0x15fb3b,{'commandName':'imageTypeInline','commandParams':[_0x430351]},[],'convertBlockImageToInline');});}),_0x32ae5f['enableCommand']('imageTypeBlock',(_0x2e4819,_0x40c858)=>{_0x1213f8['model']['change'](_0xd19367=>{let _0x18abbc=_0x31a736['getClosestSelectedImageElement'](_0x1213f8['model']['document']['selection']),_0x5a51e8=_0xd19367['createRangeOn'](_0x18abbc);const _0x87459=_0x5bbeff['fromPosition'](_0x5a51e8['start'],'toPrevious'),_0x19aa7f=_0x5bbeff['fromPosition'](_0x5a51e8['end'],'toNext');_0x32ae5f['forceDefaultExecution'](()=>_0x2e4819(_0x40c858)),_0x18abbc=_0x31a736['getClosestSelectedImageElement'](_0x1213f8['model']['document']['selection']),_0x5a51e8=_0xd19367['createRangeOn'](_0x18abbc);const _0x4467a5=_0xd19367['createRange'](_0x87459,_0x19aa7f);_0x87459['detach'](),_0x19aa7f['detach'](),_0x32ae5f['markBlockFormat'](_0x18abbc,{'commandName':'imageTypeInline','commandParams':[_0x40c858]},[],'convertInlineImageToBlock'),_0x4467a5['start']['isBefore'](_0x5a51e8['start'])&&_0x32ae5f['markInsertion'](_0xd19367['createRange'](_0x4467a5['start'],_0x5a51e8['start']),'convertInlineImageToBlock'),_0x5a51e8['end']['isBefore'](_0x4467a5['end'])&&_0x32ae5f['markInsertion'](_0xd19367['createRange'](_0x5a51e8['end'],_0x4467a5['end']),'convertInlineImageToBlock');});}),_0x32ae5f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x32ae5f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x32ae5f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x32ae5f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x32ae5f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x32ae5f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2c973d])=>{const _0x387f67=_0x32ae5f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x49bb06=_0x2c973d['start'],_0x1bef44=_0x2c973d['end'];const _0x2a4578=_0x1213f8['model']['schema']['getNearestSelectionRange'](_0x49bb06,'backward'),_0xe9750c=_0x1213f8['model']['schema']['getNearestSelectionRange'](_0x1bef44,'forward');_0x2a4578['isCollapsed']&&(_0x49bb06=_0x2a4578['start']),_0xe9750c['isCollapsed']&&(_0x1bef44=_0xe9750c['end']),_0x387f67([_0x1213f8['model']['createRange'](_0x49bb06,_0x1bef44)]);}),_0x32ae5f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x179320),_0x32ae5f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x179320)),_0x1213f8['plugins']['has']('ImageCaptionEditing')&&(_0x32ae5f['enableCommand']('toggleImageCaption',(_0x168cfb,_0x746650)=>{const _0x72cd9e=_0x1213f8['plugins']['get']('ImageCaptionUtils');let _0x37387a=_0x31a736['getClosestSelectedImageElement'](_0x1213f8['model']['document']['selection']),_0x9b7762=_0x72cd9e['getCaptionFromImageModelElement'](_0x37387a);_0x1213f8['model']['change'](()=>{if(_0x9b7762)return void _0x32ae5f['markDeletion'](_0x1213f8['model']['createRangeOn'](_0x9b7762));const _0x25a2e4=_0x31a736['isBlockImage'](_0x37387a);_0x168cfb(_0x746650),_0x37387a=_0x31a736['getClosestSelectedImageElement'](_0x1213f8['model']['document']['selection']),_0x9b7762=_0x72cd9e['getCaptionFromImageModelElement'](_0x37387a),_0x32ae5f['markInsertion'](_0x1213f8['model']['createRangeOn'](_0x9b7762),_0x25a2e4?null:'imageCaption');});}),_0x32ae5f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x179320));const _0x2e54d8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x68f80d(_0x4f10f8,_0x2d50c6){const _0x1f70e1=_0x2e54d8['findIndex'](({type:_0xd37775,subType:_0x111cdd})=>_0x4f10f8['type']==_0xd37775&&_0x4f10f8['subType']==_0x111cdd),_0x4a6a17=_0x2e54d8['findIndex'](({type:_0x4e587d,subType:_0x3b5283})=>_0x2d50c6['type']==_0x4e587d&&_0x2d50c6['subType']==_0x3b5283);if(_0x1f70e1<0x0||_0x4a6a17<0x0)return!0x1;const _0x28a477=_0x4f10f8['getFirstRange'](),_0x52bbe9=_0x2d50c6['getFirstRange']();if((0x0==_0x1f70e1||0x1==_0x1f70e1)&&0x2==_0x4a6a17&&_0x28a477['isIntersecting'](_0x52bbe9))return!0x0;if(0x2==_0x1f70e1&&0x3==_0x4a6a17){const _0x4bd5dd=_0x32ae5f['_findSuggestions'](_0x28a477,'insertion')['filter'](({suggestion:_0x2c836b,meta:_0x1c6bac})=>_0x1c6bac['isOwn']&&'convertInlineImageToBlock'==_0x2c836b['subType']);if(_0x4bd5dd['length']>0x1&&_0x52bbe9['end']['isEqual'](_0x28a477['start']))return!0x0;if(0x1==_0x4bd5dd['length']&&(_0x28a477['start']['isEqual'](_0x52bbe9['end'])||_0x28a477['end']['isEqual'](_0x52bbe9['start'])))return!0x0;}if(0x3==_0x1f70e1&&0x3==_0x4a6a17&&_0x28a477['start']['isBefore'](_0x52bbe9['start'])){const _0x57f00d=_0x28a477['end']['nodeAfter'],_0x3f1682=_0x52bbe9['start']['nodeBefore'];return _0x31a736['isBlockImage'](_0x57f00d)&&_0x57f00d===_0x3f1682;}return!0x1;}function _0x179320(_0x574c1e,_0x2c74a6){return _0x68f80d(_0x574c1e,_0x2c74a6)?[_0x574c1e,_0x2c74a6]:_0x68f80d(_0x2c74a6,_0x574c1e)?[_0x2c74a6,_0x574c1e]:null;}_0x1213f8['plugins']['has']('ImageResize')&&(_0x32ae5f['enableDefaultAttributesIntegration']('resizeImage'),_0x32ae5f['registerBlockAttribute']('resizedWidth'),_0x32ae5f['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x53a797,'FORMAT_IMAGE_SIZE'))),_0x1213f8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x32ae5f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x32ae5f['registerBlockAttribute']('alt')),_0x32ae5f['descriptionFactory']['registerDescriptionCallback'](_0x39b8d0=>{if(!!_0x2e54d8['find'](({type:_0x50d66f,subType:_0x4dacd4})=>_0x39b8d0['type']==_0x50d66f&&_0x39b8d0['subType']==_0x4dacd4))return _0x39b8d0['previous']?{}:void 0x0;}),_0x32ae5f['descriptionFactory']['registerDescriptionCallback'](_0x27e0f1=>{if('insertion'==_0x27e0f1['type']||'deletion'==_0x27e0f1['type']){const _0x202cbf=_0x27e0f1['getContainedElement']();if(_0x202cbf&&_0x202cbf['is']('element','caption'))return{'type':'insertion'==_0x27e0f1['type']?'addObject':'removeObject','element':_0x202cbf,'quantity':0x1};}}),_0x32ae5f['descriptionFactory']['registerDescriptionCallback'](_0x5550d2=>'formatBlock'==_0x5550d2['type']&&'convertInlineImageToBlock'==_0x5550d2['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5550d2['type']&&'convertBlockImageToInline'==_0x5550d2['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x32ae5f['descriptionFactory']['registerDescriptionCallback'](_0x4a6dfe=>{if('attribute'!=_0x4a6dfe['type'])return;const {data:_0x317046}=_0x4a6dfe;if(!_0x317046||'alt'!=_0x317046['key'])return;const _0x131717=_0x317046['newValue'];return _0x131717?{'type':'format','content':o(_0x53a797,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x131717+'\x22')}:{'type':'format','content':o(_0x53a797,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x751f16=this['editor'],_0x58d117=_0x751f16['locale'];_0x751f16['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x562417=>{if('formatBlock'!=_0x562417['type']&&'formatInline'!=_0x562417['type'])return;const {data:_0x3797e1}=_0x562417;if(_0x3797e1){if('imageTextAlternative'==_0x3797e1['commandName']){const _0x4b839=_0x3797e1['commandParams'][0x0]['newValue'];return _0x4b839?{'type':'format','content':o(_0x58d117,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4b839+'\x22')}:{'type':'format','content':o(_0x58d117,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3797e1['commandName']){const _0x3e2918=_0x3797e1['commandParams'][0x0]['width'];return _0x3e2918?{'type':'format','content':o(_0x58d117,'*Set\x20image\x20width:*\x20%0',_0x3e2918)}:{'type':'format','content':o(_0x58d117,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x2298ef{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x26852f=this['editor']['locale'],_0x511ba5=this['editor']['plugins']['get']('TrackChangesEditing');_0x511ba5['enableDefaultAttributesIntegration']('replaceImageSource'),_0x511ba5['registerBlockAttribute']('src'),_0x511ba5['descriptionFactory']['registerDescriptionCallback'](_0x5744d6=>{if('attribute'!=_0x5744d6['type'])return;const {data:_0xd8311b}=_0x5744d6;return _0xd8311b&&'src'==_0xd8311b['key']?_0xd8311b['newValue']&&_0xd8311b['oldValue']?{'type':'format','content':o(_0x26852f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x20ca6f=this['editor']['plugins']['get']('TrackChangesEditing');_0x20ca6f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x20ca6f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x20ca6f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x20ca6f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x430d1d=this['editor'],_0x58dd01=_0x430d1d['locale'];_0x430d1d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19afa3=>{if('formatBlock'!=_0x19afa3['type']&&'formatInline'!=_0x19afa3['type'])return;const {data:_0x23927d}=_0x19afa3;if(!_0x23927d||'replaceImageSource'!=_0x23927d['commandName'])return;return{'type':'format','content':o(_0x58dd01,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x2298ef{['afterInit'](){const _0x6ee9c5=this['editor'];if(!_0x6ee9c5['plugins']['has']('ImageStyleEditing'))return;const _0x1bd445=_0x6ee9c5['plugins']['get']('TrackChangesEditing'),_0x10ca5f=_0x6ee9c5['plugins']['get']('ImageUtils'),_0x10b20d={};_0x1bd445['enableCommand']('imageStyle',(_0x4a301b,_0x408360)=>{const _0x2a8745=_0x6ee9c5['plugins']['get']('Users')['me'],_0x1bbb6f=_0x6ee9c5['commands']['get']('imageStyle');let _0x3dba67=_0x10ca5f['getClosestSelectedImageElement'](_0x6ee9c5['model']['document']['selection']),_0x56f8d9=_0x6ee9c5['model']['createRangeOn'](_0x3dba67),_0x15032c=_0x1bbb6f['value'];if(_0x15032c==_0x408360['value'])return;const _0x135202={'commandName':'imageStyle','commandParams':[_0x408360],'formatGroupId':_0x5ec24f()};_0x6ee9c5['model']['change'](()=>{if(_0x1bd445['getSuggestions']()['filter'](_0xa273a4=>_0xa273a4['isInContent']&&_0x2a8745==_0xa273a4['author']&&('formatBlock'==_0xa273a4['type']||'formatInline'==_0xa273a4['type'])&&('imageStylePreApply'==_0xa273a4['subType']||'imageStylePostApply'==_0xa273a4['subType'])&&_0xa273a4['getFirstRange']()['isEqual'](_0x56f8d9))['forEach'](_0x40f1ec=>_0x1bd445['discardSuggestion'](_0x40f1ec['head'])),_0x3dba67=_0x10ca5f['getClosestSelectedImageElement'](_0x6ee9c5['model']['document']['selection']),_0x56f8d9=_0x6ee9c5['model']['createRangeOn'](_0x3dba67),_0x1bbb6f['refresh'](),_0x6ee9c5['commands']['get']('imageTypeInline')['refresh'](),_0x6ee9c5['commands']['get']('imageTypeBlock')['refresh'](),_0x15032c=_0x1bbb6f['value'],_0x15032c!=_0x408360['value'])return _0x10ca5f['isInlineImage'](_0x3dba67)&&_0x1bbb6f['shouldConvertImageType'](_0x408360['value'],_0x3dba67)?(_0x4a301b({..._0x408360,'setImageSizes':!0x1}),_0x3dba67=_0x10ca5f['getClosestSelectedImageElement'](_0x6ee9c5['model']['document']['selection']),void _0x1bd445['markBlockFormat'](_0x3dba67,{..._0x135202,'commandReversedParams':[{'value':_0x15032c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x10ca5f['isBlockImage'](_0x3dba67)?_0x1bd445['markBlockFormat'](_0x3dba67,_0x135202,[],'imageStylePostApply'):_0x1bd445['markInlineFormat'](_0x56f8d9,_0x135202,'imageStylePostApply'));});});for(const _0x3ad483 of _0x6ee9c5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x10b20d[_0x3ad483['name']]=_0x3ad483['title']['toLowerCase']();_0x1bd445['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1bd445['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1bd445['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1bd445['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4a0fe7])=>{_0x10ca5f['setImageNaturalSizeAttributes'](_0x4a0fe7['getContainedElement']());}),_0x1bd445['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x179f04,_0x1ee51f)=>{_0x1bd445['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x179f04,{'commandName':_0x1ee51f['commandName'],'commandParams':_0x1ee51f['commandReversedParams']});}),_0x1bd445['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4e3048,_0x3d31d5){if(_0x4fc5a1(_0x4e3048,_0x3d31d5))return[_0x4e3048,_0x3d31d5];if(_0x4fc5a1(_0x3d31d5,_0x4e3048))return[_0x3d31d5,_0x4e3048];return null;});const _0x15c66e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4fc5a1(_0x1ab836,_0x6f3cc0){const _0x278802=_0x15c66e['findIndex'](({type:_0x4fc048,subType:_0x216cd9})=>_0x1ab836['type']==_0x4fc048&&_0x1ab836['subType']==_0x216cd9),_0x2b42ec=_0x15c66e['findIndex'](({type:_0x210bd6,subType:_0xab0ff7})=>_0x6f3cc0['type']==_0x210bd6&&_0x6f3cc0['subType']==_0xab0ff7);if(_0x278802<0x0||_0x2b42ec<0x0)return!0x1;const _0x184434=_0x1ab836['getFirstRange'](),_0x137cff=_0x6f3cc0['getFirstRange']();if((0x0==_0x278802||0x1==_0x278802)&&0x2==_0x2b42ec&&_0x184434['isIntersecting'](_0x137cff))return!0x0;if(0x2==_0x278802&&0x3==_0x2b42ec){const _0x2b67c0=_0x1bd445['_findSuggestions'](_0x184434,'insertion')['filter'](({suggestion:_0x40a5ec,meta:_0x33f8e6})=>_0x33f8e6['isOwn']&&'convertInlineImageToBlock'==_0x40a5ec['subType']);if(_0x2b67c0['length']>0x1&&_0x137cff['end']['isEqual'](_0x184434['start']))return!0x0;if(0x1==_0x2b67c0['length']&&(_0x184434['start']['isEqual'](_0x137cff['end'])||_0x184434['end']['isEqual'](_0x137cff['start'])))return!0x0;}if(0x3==_0x278802&&0x3==_0x2b42ec&&_0x184434['start']['isBefore'](_0x137cff['start'])){const _0x124110=_0x184434['end']['nodeAfter'],_0x19617d=_0x137cff['start']['nodeBefore'];return _0x10ca5f['isBlockImage'](_0x124110)&&_0x124110===_0x19617d;}return!0x1;}_0x6ee9c5['model']['document']['registerPostFixer'](()=>{let _0x20ccd9=!0x1;const _0x170754=Array['from'](_0x6ee9c5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x221ea7,data:_0x1d6cab}of _0x170754){const {group:_0x1c895a,type:_0xb77f06,subType:_0x585bf6,id:_0x5847ca}=_0x1bd445['_splitMarkerName'](_0x221ea7);if('suggestion'==_0x1c895a&&_0x1bd445['hasSuggestion'](_0x5847ca)){if('formatBlock'==_0xb77f06&&('imageStylePreApply'==_0x585bf6||'imageStylePostApply'==_0x585bf6)){const _0x5a6a9a=_0x1bd445['getSuggestion'](_0x5847ca);if(_0x1d6cab['newRange']){const _0x19a1f4=_0x5a6a9a['getFirstRange']()['getContainedElement']();if(_0x10ca5f['isBlockImage'](_0x19a1f4))continue;_0x1bd445['discardSuggestion'](_0x5a6a9a),_0x20ccd9=!0x0;}}if('insertion'==_0xb77f06&&'imageCaption'==_0x585bf6&&!_0x1d6cab['newRange']){const _0x1721c8=_0x1bd445['getSuggestion'](_0x5847ca);_0x1721c8['next']&&_0x1721c8['next']['isInContent']&&(_0x1bd445['discardSuggestion'](_0x1721c8['next']),_0x20ccd9=!0x0);}}}return _0x20ccd9;}),this['_registerLegacyDescription'](_0x10b20d);}['_registerLegacyDescription'](_0x4a632c){const _0x37ce2c=this['editor'],_0x4e7825=_0x37ce2c['locale'];_0x37ce2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x116bec=>{if('formatBlock'!=_0x116bec['type']&&'formatInline'!=_0x116bec['type'])return;const {data:_0x178300}=_0x116bec;if(!_0x178300||'imageStyle'!=_0x178300['commandName'])return;const _0x3e453c=_0x178300['commandParams'][0x0]['value'];return _0x2c4aeb('side'===_0x3e453c?o(_0x4e7825,'FORMAT_SIDE_IMAGE'):_0x4a632c[_0x3e453c]||_0x3e453c);function _0x2c4aeb(_0x156e3d){return{'type':'format','content':o(_0x4e7825,'*Format:*\x20%0',_0x156e3d)};}});}}class ct extends _0x2298ef{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x722f40){super(_0x722f40),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4593cd=this['editor'],_0x115daf=_0x4593cd['commands']['get']('importWord'),_0x1833ff=_0x4593cd['commands']['get']('trackChanges');_0x115daf&&(_0x115daf['on']('execute',(_0x533fcc,[,_0x127e98])=>{this['_trackChangesValueDuringImport']=_0x1833ff['value'],_0x127e98['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x115daf,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x115daf,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1833ff['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4593cd['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x28f200,_0x22c6ac){const {suggestions:_0x16607f}=_0x22c6ac,_0x2f5049=this['editor']['commands']['get']('trackChanges'),_0x4b1152=_0x2f5049['value'];this['_trackChangesValueDuringImport']!==_0x4b1152&&(_0x2f5049['execute'](),this['_trackChangesExecuted']=!0x0),_0x16607f&&_0x16607f['forEach'](({id:_0x383584,type:_0x4b95c0,author:_0x5c3b90,created_at:_0x135f36})=>{const _0x2a8df2={'id':_0x383584,'type':_0x4b95c0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5c3b90,'createdAt':_0x135f36?new Date(_0x135f36):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2a8df2);});}}class ut extends _0x2298ef{['afterInit'](){const _0x572cf0=this['editor'],_0x5eb759=_0x572cf0['plugins']['get']('TrackChangesEditing');if(_0x572cf0['plugins']['has']('IndentEditing')&&(_0x5eb759['enableCommand']('indent'),_0x5eb759['enableCommand']('outdent')),_0x572cf0['plugins']['has']('IndentBlock')){for(const _0x12ea0d of['indentBlock','outdentBlock'])_0x5eb759['enableDefaultAttributesIntegration'](_0x12ea0d);}const _0x397f82=_0x572cf0['locale'];_0x5eb759['registerBlockAttribute']('blockIndent'),_0x5eb759['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x397f82,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1164ed=this['editor'],_0x589deb=_0x1164ed['locale'],_0x351af0=_0x1164ed['plugins']['get']('TrackChangesEditing');_0x351af0['descriptionFactory']['registerDescriptionCallback'](_0x2f58a1=>{if('formatBlock'!=_0x2f58a1['type'])return;const {data:_0x2432ff}=_0x2f58a1;if(!_0x2432ff)return;if('indentBlock'!=_0x2432ff['commandName']&&'outdentBlock'!=_0x2432ff['commandName'])return;const _0x51a0a5=_0x2f58a1['getItems']()[0x0],_0x3f73be=_0x351af0['descriptionFactory']['getItemLabel'](_0x51a0a5);return'indentBlock'==_0x2432ff['commandName']?{'type':'format','content':o(_0x589deb,'*Indent:*\x20%0',_0x3f73be)}:'outdentBlock'==_0x2432ff['commandName']?{'type':'format','content':o(_0x589deb,'*Outdent:*\x20%0',_0x3f73be)}:void 0x0;});}}class ft extends _0x2298ef{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x2298ef{['afterInit'](){const _0x2490bd=this['editor'];if(!_0x2490bd['plugins']['has']('LinkEditing'))return;const _0x39bfc5=_0x2490bd['plugins']['get']('TrackChangesEditing'),_0x1e4eb1=_0x2490bd['commands']['get']('link');_0x39bfc5['enableDefaultAttributesIntegration']('link'),_0x39bfc5['enableDefaultAttributesIntegration']('unlink'),_0x39bfc5['registerInlineAttribute']('linkHref');for(const _0x429375 of _0x1e4eb1['manualDecorators'])_0x39bfc5['registerInlineAttribute'](_0x429375['id']),_0x39bfc5['descriptionFactory']['registerAttributeLabel'](_0x429375['id'],'link\x20('+_0x429375['label']['toLowerCase']()+')');_0x39bfc5['descriptionFactory']['registerDescriptionCallback'](_0x3eb4c9=>{if('attribute'!=_0x3eb4c9['type'])return;const {data:_0x44f647}=_0x3eb4c9;if(!_0x44f647||'linkHref'!=_0x44f647['key'])return;const _0x40b408=_0x44f647['newValue'],_0x9f949e=_0x2490bd['locale'];return{'type':'format','content':null==_0x40b408?o(_0x9f949e,'*Remove\x20link*'):o(_0x9f949e,'*Set\x20link:*\x20%0','\x22'+_0x40b408+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c6a9d=this['editor'],_0x3acbe0=_0x2c6a9d['locale'];_0x2c6a9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x244671=>{if('formatInline'!=_0x244671['type'])return;const {data:_0x24c51e}=_0x244671;if(_0x24c51e){if('link'==_0x24c51e['commandName']){const _0x446e01=_0x24c51e['commandParams'][0x0];return{'type':'format','content':o(_0x3acbe0,'*Set\x20link:*\x20%0','\x22'+_0x446e01+'\x22')};}return'unlink'==_0x24c51e['commandName']?{'type':'format','content':o(_0x3acbe0,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x2298ef{['afterInit'](){const _0x44761e=this['editor'],_0xc58350=_0x44761e['locale'];if(!_0x44761e['plugins']['has']('LegacyListEditing'))return;const _0x373fc4=_0x44761e['plugins']['get']('TrackChangesEditing'),_0x2ee26c=_0x44761e['plugins']['has']('LegacyTodoListEditing');function _0x1c451b(_0x5281f2){return()=>{const _0x5cb9a3=_0x44761e['model']['document']['selection'],_0x545f7e=_0x44761e['commands']['get'](_0x5281f2);if(_0x545f7e['value'])return void _0x44761e['execute']('paragraph',{});const _0x327865=_0x5281f2['slice'](0x0,-0x4),_0x2477e4=function(_0x51f031,_0x1c826b,_0x5d5324){let _0x3dee6c=Array['from'](_0x51f031)['filter'](_0x644f09=>function(_0x448a0c,_0x245ed0){return _0x245ed0['checkChild'](_0x448a0c['parent'],'listItem')&&!_0x245ed0['isObject'](_0x448a0c);}(_0x644f09,_0x5d5324));_0x3dee6c=_0x3dee6c['filter'](_0x569ee9=>!_0x569ee9['is']('element','listItem')||_0x569ee9['getAttribute']('listType')!=_0x1c826b);const _0x527d11=new Set();for(const _0xda78a7 of _0x3dee6c)_0xda78a7['is']('element','listItem')?_0x527d11['add'](Le(_0xda78a7)):_0x527d11['add'](_0xda78a7);return Array['from'](_0x527d11);}(_0x5cb9a3['getSelectedBlocks'](),_0x327865,_0x44761e['model']['schema']);_0x44761e['model']['change'](()=>{for(const _0xafad36 of _0x2477e4)_0x373fc4['markBlockFormat'](_0xafad36,{'commandName':_0x5281f2,'commandParams':[{'forceValue':!_0x545f7e['value']}],'formatGroupId':'blockName'},Ee(_0xafad36));});};}function _0x5ba65d(_0x466240){return()=>{const _0x7d814b=function(_0x58d534){let _0x49e63e=Array['from'](_0x58d534);const _0x5958ba=_0x49e63e['findIndex'](_0x4e809f=>'listItem'!=_0x4e809f['name']);return _0x5958ba>-0x1&&(_0x49e63e=_0x49e63e['slice'](0x0,_0x5958ba)),_0x49e63e;}(_0x44761e['model']['document']['selection']['getSelectedBlocks']()),_0x3d049e=_0x44761e['model']['createRange'](_0x44761e['model']['createPositionAt'](_0x7d814b[0x0],'before'),_0x44761e['model']['createPositionAt'](_0x7d814b[_0x7d814b['length']-0x1],'end'));_0x44761e['model']['change'](()=>{_0x373fc4['markBlockFormat'](_0x3d049e,{'commandName':_0x466240,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2482a2){const _0x3c3a5a=new Set();for(const _0x1d8a98 of _0x2482a2){let _0x4b7c43=_0x1d8a98['nextSibling'];for(;_0x4b7c43&&_0x4b7c43['getAttribute']('listIndent')>_0x1d8a98['getAttribute']('listIndent');)_0x3c3a5a['add'](_0x4b7c43),_0x4b7c43=_0x4b7c43['nextSibling'];}return Array['from'](_0x3c3a5a);}(_0x7d814b));});};}_0x373fc4['enableCommand']('numberedList',_0x1c451b('numberedList')),_0x373fc4['enableCommand']('bulletedList',_0x1c451b('bulletedList')),_0x2ee26c&&_0x373fc4['enableCommand']('todoList',_0x1c451b('todoList')),_0x373fc4['enableCommand']('indentList',_0x5ba65d('indentList')),_0x373fc4['enableCommand']('outdentList',_0x5ba65d('outdentList')),_0x2ee26c&&_0x373fc4['enableCommand']('checkTodoList',()=>{const _0x52614a=_0x44761e['commands']['get']('checkTodoList'),_0x465895=Array['from'](_0x52614a['_selectedElements']);_0x465895['filter'](_0x482038=>_0x482038['getAttribute']('todoListChecked')!=_0x52614a['value']),_0x44761e['model']['change'](()=>{for(const _0x45e8ab of _0x465895)_0x373fc4['markBlockFormat'](_0x45e8ab,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x52614a['value']}]});});}),_0x373fc4['descriptionFactory']['registerElementLabel']('listItem',_0x59e846=>o(_0xc58350,'ELEMENT_LIST_ITEM',_0x59e846)),_0x373fc4['descriptionFactory']['registerDescriptionCallback'](_0xb2f223=>{if('formatBlock'!=_0xb2f223['type']&&'formatInline'!=_0xb2f223['type'])return;const {data:_0x397464}=_0xb2f223;if(_0x397464){if('numberedList'==_0x397464['commandName']||'bulletedList'==_0x397464['commandName']||'todoList'==_0x397464['commandName'])switch(_0x397464['commandName']['replace']('List','')){case'bulleted':return _0x3a38af(o(_0xc58350,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a38af(o(_0xc58350,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a38af(o(_0xc58350,'ELEMENT_TODO_LIST'));}if('indentList'==_0x397464['commandName'])return{'type':'format','content':o(_0xc58350,'*Indent:*\x20%0',o(_0xc58350,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x397464['commandName'])return{'type':'format','content':o(_0xc58350,'*Outdent:*\x20%0',o(_0xc58350,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x397464['commandName'])return _0x397464['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc58350,'*Check\x20item*')}:{'type':'format','content':o(_0xc58350,'*Uncheck\x20item*')};}function _0x3a38af(_0x35d0f6){return{'type':'format','content':o(_0xc58350,'*Change\x20to:*\x20%0',_0x35d0f6)};}});}}function Le(_0x21696e){const _0x13214a=_0x21696e['getAttribute']('listIndent');if(0x0==_0x13214a)return _0x21696e;let _0x55f4a6=_0x21696e;for(;_0x21696e['previousSibling']&&_0x21696e['previousSibling']['is']('element','listItem');){const _0x29f58e=_0x21696e['previousSibling']['getAttribute']('listIndent');if(_0x29f58e==_0x13214a)_0x55f4a6=_0x21696e['previousSibling'];else{if(_0x29f58e<_0x13214a)break;}_0x21696e=_0x21696e['previousSibling'];}return _0x55f4a6;}function Ee(_0x4f97cf){const _0x3011f3=[];if(_0x4f97cf['is']('element','listItem')&&_0x4f97cf['getAttribute']('listIndent')>0x0){let _0x1eee31=_0x4f97cf['nextSibling'];for(;_0x1eee31&&'listItem'==_0x1eee31['name']&&_0x1eee31['getAttribute']('listIndent')==_0x4f97cf['getAttribute']('listIndent');)_0x3011f3['push'](_0x1eee31),_0x1eee31=_0x1eee31['nextSibling'];}return _0x3011f3;}class Q extends _0x2298ef{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2eda7a=this['editor']['config']['get']('list.properties'),_0x27ec56=this['editor']['plugins']['get']('TrackChangesEditing');_0x2eda7a['styles']&&_0x27ec56['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2eda7a['reversed']&&_0x27ec56['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2eda7a['startIndex']&&_0x27ec56['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x27ec56['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2cc98c,_0xed3a04={}){const _0x581917=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31480e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x581917['markMultiRangeBlockFormat'](_0x31480e,{'commandName':'listStyle','commandParams':[{'type':_0xed3a04['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x393903,_0x2342e1={}){const _0x1a4eb7=this['editor']['plugins']['get']('TrackChangesEditing'),_0xafe057=this['_getSuggestionBlocks'](_0x29e36f=>_0x29e36f['is']('element','listItem')&&'numbered'===_0x29e36f['getAttribute']('listType'));if(_0xafe057['length']<0x1)return;const _0x1eeda1=_0xafe057['map'](_0x3dd27f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3dd27f,'before'),this['editor']['model']['createPositionAt'](_0x3dd27f,0x0)));this['editor']['model']['change'](()=>{_0x1a4eb7['markMultiRangeBlockFormat'](_0x1eeda1,{'commandName':'listReversed','commandParams':[{'reversed':_0x2342e1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xd9dded,_0x15bf9e={}){const _0x4bbc9a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ac30c=this['_getSuggestionBlocks'](_0x3eac9e=>_0x3eac9e['is']('element','listItem')&&'numbered'===_0x3eac9e['getAttribute']('listType'));if(_0x2ac30c['length']<0x1)return;const _0x4da7d2=_0x2ac30c['map'](_0x5c9cd2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c9cd2,'before'),this['editor']['model']['createPositionAt'](_0x5c9cd2,0x0)));this['editor']['model']['change'](()=>{_0x4bbc9a['markMultiRangeBlockFormat'](_0x4da7d2,{'commandName':'listStart','commandParams':[{'startIndex':_0x15bf9e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x53690f){if('formatBlock'!=_0x53690f['type']&&'formatInline'!=_0x53690f['type'])return;const _0x25cc20=this['editor']['locale'],{data:_0x2c4215}=_0x53690f;if(!_0x2c4215)return;let _0x258ddb,_0x41650a;switch(_0x2c4215['commandName']){case'listStyle':_0x258ddb='*Change\x20to:*\x20%0',_0x41650a={'type':'format','content':o(_0x25cc20,_0x258ddb,o(_0x25cc20,this['_getTranslationKeyForListStyle'](_0x2c4215['commandParams'][0x0]['type'])))};break;case'listReversed':_0x258ddb=_0x2c4215['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x41650a={'type':'format','content':o(_0x25cc20,_0x258ddb)};break;case'listStart':_0x258ddb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x41650a={'type':'format','content':o(_0x25cc20,_0x258ddb,_0x2c4215['commandParams'][0x0]['startIndex'])};}return _0x41650a;}['_getSuggestionBlocksForListStyle'](){const _0xc42893=this['editor']['plugins']['get']('LegacyListUtils');let _0xa3176=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xa3176[0x0]?.['is']('element','listItem')&&_0xa3176['unshift'](..._0xc42893['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xa3176[_0xa3176['length']-0x1]?.['is']('element','listItem')&&_0xa3176['push'](..._0xc42893['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xa3176=[...new Set(_0xa3176)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xa3176=_0xa3176['filter'](_0x2237af=>_0x2237af['is']('element','listItem'))),_0xa3176;}['_getSuggestionBlocks'](_0x29fe54){const _0xf6ef70=this['editor']['plugins']['get']('LegacyListUtils');let _0x2637b0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x29fe54)['map'](_0x34a662=>{const _0x5f4706=this['editor']['model']['createPositionAt'](_0x34a662,0x0);return[..._0xf6ef70['getSiblingNodes'](_0x5f4706,'backward'),..._0xf6ef70['getSiblingNodes'](_0x5f4706,'forward')];})['flat']();return _0x2637b0=[...new Set(_0x2637b0)],_0x2637b0;}['_getTranslationKeyForListStyle'](_0x6881ba){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x6881ba)||'default')['toUpperCase']()+'_LIST_'+_0x6881ba['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2298ef{['afterInit'](){const _0x1b215e=this['editor'];if(!_0x1b215e['plugins']['has']('MediaEmbedEditing'))return;const _0x255f27=_0x1b215e['plugins']['get']('TrackChangesEditing'),_0x51b001=_0x1b215e['locale'];_0x255f27['enableCommand']('mediaEmbed'),_0x255f27['descriptionFactory']['registerElementLabel']('media',_0x2c33ba=>o(_0x51b001,'ELEMENT_MEDIA',_0x2c33ba)),_0x1b215e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x52ab85,{writer:_0x364f42,options:_0x1fbe4b})=>{if(_0x1fbe4b['showSuggestionHighlights'])return _0x364f42['createEmptyElement']('div');},'converterPriority':'high'}),_0x1b215e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2f5451,_0x364776,_0x52577b)=>{_0x52577b['options']['showSuggestionHighlights']&&_0x2f5451['stop']();},{'priority':'high'});}}class mt extends _0x2298ef{['afterInit'](){const _0x278ae2=this['editor'];_0x278ae2['plugins']['has']('MentionEditing')&&_0x278ae2['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x2298ef{['afterInit'](){const _0x32b893=this['editor'];if(!_0x32b893['plugins']['has']('MergeFieldsEditing'))return;_0x32b893['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x32b893['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x173911=_0x32b893['plugins']['get']('TrackChangesEditing'),_0x4edbc7=_0x32b893['locale'];_0x173911['descriptionFactory']['registerElementLabel']('mergeField',_0x299722=>o(_0x4edbc7,'ELEMENT_MERGE_FIELD',_0x299722)),_0x173911['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x319db3=>o(_0x4edbc7,'ELEMENT_MERGE_FIELD',_0x319db3)),_0x173911['descriptionFactory']['registerDescriptionCallback'](_0x3d2d17=>{if('insertion'!=_0x3d2d17['type']&&'deletion'!=_0x3d2d17['type'])return;const _0xf31e79=_0x3d2d17['getContainedElement']();if(null==_0xf31e79)return;if(!_0xf31e79['is']('element','mergeField')&&!_0xf31e79['is']('element','mergeFieldBlock'))return;const _0x3684d3=_0x32b893['plugins']['get']('MergeFieldsEditing')['getLabel'](_0xf31e79['getAttribute']('id'));return'insertion'==_0x3d2d17['type']?{'type':'insertion','content':o(_0x4edbc7,'*Insert:*\x20%0','\x22'+_0x3684d3+'\x22\x20'+o(_0x4edbc7,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4edbc7,'*Remove:*\x20%0','\x22'+_0x3684d3+'\x22\x20'+o(_0x4edbc7,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x2298ef{['afterInit'](){const _0x516c6e=this['editor'],_0x1dc650=_0x516c6e['plugins']['get']('TrackChangesEditing');_0x516c6e['plugins']['has']('MultiLevelList')&&(_0x1dc650['enableDefaultAttributesIntegration']('multiLevelList'),_0x1dc650['registerBlockAttribute']('listMarkerStyle'),_0x1dc650['descriptionFactory']['registerDescriptionCallback'](_0xe3f2f5=>this['handleDescriptions'](_0xe3f2f5)));}['handleDescriptions'](_0x3ed50e){const _0x2cc626=this['editor']['locale'],{data:_0x206020}=_0x3ed50e,_0x46d397={'type':'format','content':''};if(_0x206020&&'listMarkerStyle'==_0x206020['key']){if(!_0x206020['oldValue'])return{'type':'format','content':o(_0x2cc626,'*Set\x20format:*\x20%0',o(_0x2cc626,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x206020['newValue']+')'};if(!_0x206020['newValue']){let _0x49c003=_0x3ed50e['head'];for(;_0x49c003;){if(_0x49c003['data']&&'listType'==_0x49c003['data']['key']&&_0x49c003['data']['newValue'])return _0x46d397;_0x49c003=_0x49c003['next'];}return{'type':'format','content':o(_0x2cc626,'*Remove\x20format:*\x20%0',o(_0x2cc626,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x206020['oldValue']+')'};}}}}class kt extends _0x2298ef{['afterInit'](){const _0x20d819=this['editor'];if(!_0x20d819['plugins']['has']('PageBreakEditing'))return;_0x20d819['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1dba3d=_0x20d819['plugins']['get']('TrackChangesEditing'),_0x2705aa=_0x20d819['locale'];_0x1dba3d['descriptionFactory']['registerElementLabel']('pageBreak',_0x5a9fa3=>o(_0x2705aa,'ELEMENT_PAGE_BREAK',_0x5a9fa3));}}class bt extends _0x2298ef{['afterInit'](){const _0x844948=this['editor'];if(!_0x844948['plugins']['has']('Paragraph'))return;const _0x1244d2=_0x844948['locale'],_0x1bce34=_0x844948['plugins']['get']('TrackChangesEditing');_0x1bce34['descriptionFactory']['registerElementLabel']('paragraph',_0x1e3d95=>o(_0x1244d2,'ELEMENT_PARAGRAPH',_0x1e3d95)),_0x1bce34['enableDefaultAttributesIntegration']('paragraph'),_0x1bce34['enableCommand']('insertParagraph'),_0x844948['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x844948),{'priority':'highest'}),_0x844948['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x21e566,_0x4ea30d,_0x47bd54)=>{_0x47bd54['options']['showSuggestionHighlights']&&nr(_0x844948,{'showActiveMarker':!0x1})(_0x21e566,_0x4ea30d,_0x47bd54);},{'priority':'highest'});const _0x591bbe=_0x1bce34['descriptionFactory'];_0x591bbe['registerDescriptionCallback'](_0x1efe45=>{if('insertion'!==_0x1efe45['type'])return;const {start:_0x320844,end:_0x521701}=_0x1efe45['getFirstRange']();if(!_0x320844['isTouching'](_0x521701)||!_0x320844['nodeAfter'])return;const _0x45773d=_0x844948['model']['schema'],_0x4f380a=_0x320844['nodeAfter'];return _0x45773d['isBlock'](_0x4f380a)&&!_0x45773d['isLimit'](_0x4f380a)&&_0x45773d['checkChild'](_0x4f380a,'$text')?{'type':'insertion','content':o(_0x1244d2,'*Insert:*\x20%0',_0x591bbe['getItemLabel'](_0x4f380a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c0aae=this['editor'],_0x1593bb=_0x5c0aae['locale'];_0x5c0aae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57065a=>{if('formatBlock'!=_0x57065a['type'])return;const {data:_0x173c7b}=_0x57065a;return _0x173c7b&&'paragraph'==_0x173c7b['commandName']?{'type':'format','content':o(_0x1593bb,'*Change\x20to:*\x20%0',o(_0x1593bb,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1e75b3,{showActiveMarker:_0xe6f804=!0x0}={}){return(_0x2b40ab,_0x5f10fa,_0x322a95)=>{const _0x4ceaf4=_0x1e75b3['plugins']['get']('TrackChangesEditing'),_0x52e853=_0x5f10fa['markerRange']['start'],_0x21e25d=_0x5f10fa['markerRange']['end'],_0x4605ce=_0x1e75b3['model']['schema'];if(!_0x52e853['isTouching'](_0x21e25d)||!_0x52e853['nodeAfter'])return;const _0x20d66e=_0x52e853['nodeAfter'];if(_0x4605ce['isBlock'](_0x20d66e)&&!_0x4605ce['isLimit'](_0x20d66e)&&_0x4605ce['checkChild'](_0x20d66e,'$text')){if(!_0x322a95['consumable']['consume'](_0x5f10fa['markerRange'],_0x2b40ab['name']))return;const {authorId:_0x22bf17}=_0x4ceaf4['_splitMarkerName'](_0x5f10fa['markerName']),_0x4f8e7d=_0x322a95['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x22bf17}),_0x1f815b=_0x322a95['mapper']['toViewPosition'](_0x21e25d);_0xe6f804&&_0x4ceaf4['activeMarkers']['includes'](_0x5f10fa['markerName'])&&_0x322a95['writer']['addClass']('ck-suggestion-marker--active',_0x4f8e7d),_0x322a95['writer']['insert'](_0x1f815b,_0x4f8e7d),_0x322a95['mapper']['bindElementToMarker'](_0x4f8e7d,_0x5f10fa['markerName']);}};}class yt extends _0x2298ef{['afterInit'](){const _0x191543=this['editor'];if(!_0x191543['plugins']['has']('RemoveFormatEditing'))return;_0x191543['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x154a95=this['editor'];_0x154a95['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x323a48=>{if('formatBlock'!=_0x323a48['type']&&'formatInline'!=_0x323a48['type'])return;const {data:_0x5ebfcf}=_0x323a48;return _0x5ebfcf&&'removeFormat'==_0x5ebfcf['commandName']?{'type':'format','content':o(_0x154a95['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x2298ef{['afterInit'](){const _0x3f3c1c=this['editor'];if(!_0x3f3c1c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x93590=_0x3f3c1c['plugins']['get']('TrackChangesEditing');_0x93590['enableCommand']('goToPreviousRestrictedEditingException'),_0x93590['enableCommand']('goToNextRestrictedEditingException');const _0x1293ce=_0x3f3c1c['plugins']['get']('RestrictedEditingModeEditing');_0x1293ce['enableCommand']('trackChanges'),_0x1293ce['enableCommand']('acceptSuggestion'),_0x1293ce['enableCommand']('discardSuggestion'),_0x1293ce['enableCommand']('acceptAllSuggestions'),_0x1293ce['enableCommand']('discardAllSuggestions'),_0x1293ce['enableCommand']('acceptSelectedSuggestions'),_0x1293ce['enableCommand']('discardSelectedSuggestions');}}class St extends _0x2298ef{static get['requires'](){return[_0x2be43a];}['init'](){const _0x41757e=this['editor'],_0x160a89=_0x41757e['plugins']['get']('TrackChangesEditing');_0x160a89['enableCommand']('shiftEnter'),_0x41757e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Me(_0x41757e),{'priority':'high'}),_0x41757e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Me(_0x41757e),{'priority':'high'}),_0x41757e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2c6893,_0x3484a3,_0x1f9e92)=>{_0x1f9e92['options']['showSuggestionHighlights']&&Me(_0x41757e,{'showActiveMarker':!0x1})(_0x2c6893,_0x3484a3,_0x1f9e92);}),_0x160a89['descriptionFactory']['registerElementLabel']('softBreak',_0x13bbba=>o(_0x41757e['locale'],'ELEMENT_LINE_BREAK',_0x13bbba));}}function Me(_0x1c4481,{showActiveMarker:_0x1f4c09=!0x0}={}){return(_0x108901,_0x39aa88,_0x6ae750)=>{const _0x693589=_0x1c4481['plugins']['get']('TrackChangesEditing');if(!_0x6ae750['consumable']['test'](_0x39aa88['markerRange'],_0x108901['name']))return;const _0x5cb3d5=_0x1c4481['model'];for(const _0x15d614 of _0x39aa88['markerRange']['getItems']()){if(!_0x15d614['is']('element','softBreak'))continue;const _0x29d199='deletion'==_0x39aa88['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x19985e}=_0x693589['_splitMarkerName'](_0x39aa88['markerName']),_0xbdd874=_0x6ae750['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x29d199,'data-author-id':_0x19985e}),_0x1bdc54=_0x6ae750['mapper']['toViewPosition'](_0x5cb3d5['createPositionBefore'](_0x15d614));_0x1f4c09&&_0x693589['activeMarkers']['includes'](_0x39aa88['markerName'])&&_0x6ae750['writer']['addClass']('ck-suggestion-marker--active',_0xbdd874),_0x6ae750['writer']['insert'](_0x1bdc54,_0xbdd874),_0x6ae750['mapper']['bindElementToMarker'](_0xbdd874,_0x39aa88['markerName']);}};}class At extends _0x2298ef{['afterInit'](){const _0x5179e1=this['editor'],_0x1eb67a=_0x5179e1['model'],_0x516dac=_0x5179e1['locale'];if(!_0x5179e1['plugins']['has']('StandardEditingModeEditing'))return;const _0x336d36=_0x5179e1['plugins']['get']('TrackChangesEditing'),_0x2c5d42='restrictedEditingException',_0x37e50a=_0x5179e1['commands']['get'](_0x2c5d42);_0x336d36['enableCommand'](_0x2c5d42,(_0x5501f9,_0x5523c2={})=>{const _0x39a06b=_0x1eb67a['document']['selection'];if(_0x39a06b['isCollapsed'])return void _0x5501f9(_0x5523c2);const _0x15d7e0=void 0x0!==_0x5523c2['forceValue']?_0x5523c2['forceValue']:!_0x37e50a['value'];_0x1eb67a['change'](()=>{const _0x5b5d9b=Array['from'](_0x39a06b['getRanges']());for(const _0x11416a of _0x5b5d9b){const _0x3e2814=_0x15d7e0?[_0x11416a]:io(_0x2c5d42,_0x11416a,_0x1eb67a);for(const _0x4e2ba4 of _0x3e2814)_0x336d36['markInlineFormat'](_0x4e2ba4,{'commandName':_0x2c5d42,'commandParams':[{'forceValue':_0x15d7e0}]});}});}),_0x336d36['descriptionFactory']['registerDescriptionCallback'](_0xdee5f4=>{if('formatBlock'!=_0xdee5f4['type']&&'formatInline'!=_0xdee5f4['type'])return;const {data:_0x435d6b}=_0xdee5f4;return _0x435d6b&&_0x435d6b['commandName']==_0x2c5d42?_0x435d6b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x516dac,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x516dac,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x2298ef{['afterInit'](){const _0x2f2918=this['editor'];if(!_0x2f2918['plugins']['has']('Style')||!_0x2f2918['plugins']['has']('DataSchema'))return;const _0x1e1621=_0x2f2918['plugins']['get']('TrackChangesEditing'),_0x323a46=_0x2f2918['locale'],_0x509deb=_0x2f2918['config']['get']('style')||{},_0xbe2040=_0x2f2918['plugins']['get']('GeneralHtmlSupport'),_0x4d2810=_0x2f2918['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2f2918['plugins']['get']('DataSchema'),_0x509deb['definitions']);_0x1e1621['enableDefaultAttributesIntegration']('style');const _0x1bc705=new Set();for(const _0x2c499c of _0x4d2810['block']){const _0x4d85e6=_0xbe2040['getGhsAttributeNameForElement'](_0x2c499c['element']);_0x1bc705['add'](_0x4d85e6);}const _0x38d877=new Set();for(const _0x135649 of _0x4d2810['inline']){const _0x416bb6=_0xbe2040['getGhsAttributeNameForElement'](_0x135649['element']);_0x38d877['add'](_0x416bb6);for(const _0x4a1957 of _0x135649['ghsAttributes'])_0x38d877['add'](_0x4a1957);}for(const _0xc46187 of _0x1bc705)_0x1e1621['registerBlockAttribute'](_0xc46187),_0x1e1621['descriptionFactory']['registerAttributeLabel'](_0xc46187,o(_0x323a46,'FORMAT_STYLE'));for(const _0x500315 of _0x38d877)_0x1e1621['registerInlineAttribute'](_0x500315),_0x1e1621['descriptionFactory']['registerAttributeLabel'](_0x500315,o(_0x323a46,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fe72a=this['editor'],_0x34f249=_0x2fe72a['locale'];_0x2fe72a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33c8f1=>{if('formatBlock'!=_0x33c8f1['type']&&'formatInline'!=_0x33c8f1['type'])return;const {data:_0xf515e4}=_0x33c8f1;return _0xf515e4&&'style'===_0xf515e4['commandName']?_0xf515e4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x34f249,'*Set\x20format:*\x20%0',_0xf515e4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x34f249,'*Remove\x20format:*\x20%0',_0xf515e4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x2298ef{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3e9f0c){super(_0x3e9f0c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x29f7fc=this['editor'],_0x1f6bb1=_0x29f7fc['model']['document']['selection'];if(!_0x29f7fc['plugins']['has']('TableEditing'))return;const _0x10f51a=_0x29f7fc['locale'],_0x5d432a=_0x29f7fc['plugins']['get']('TrackChangesEditing'),_0x1f807f=_0x29f7fc['plugins']['get']('TableUtils');_0x5d432a['descriptionFactory']['registerElementLabel']('table',_0x5dc003=>o(_0x10f51a,'ELEMENT_TABLE',_0x5dc003)),this['_setupColumnsRowsFixing'](),_0x5d432a['enableCommand']('insertTable'),_0x5d432a['enableCommand']('selectTableRow'),_0x5d432a['enableCommand']('selectTableColumn');for(const _0x56ef48 of['insertTableRowAbove','insertTableRowBelow']){const _0x226ab5=_0x29f7fc['commands']['get'](_0x56ef48);_0x5d432a['enableCommand'](_0x56ef48,_0x23b84e=>{_0x29f7fc['model']['change'](_0x283807=>{_0x23b84e();const _0x42b4a0='above'===_0x226ab5['order'],_0x4f9ee0=_0x1f807f['getSelectionAffectedTableCells'](_0x1f6bb1),_0x5dfe63=_0x1f807f['getRowIndexes'](_0x4f9ee0),_0x589685=_0x42b4a0?_0x5dfe63['first']-0x1:_0x5dfe63['last']+0x1,_0x5ddd41=_0x4f9ee0[0x0]['findAncestor']('table'),_0x2d9464=_0x1f807f['createTableWalker'](_0x5ddd41,{'startRow':_0x589685,'endRow':_0x589685}),_0xea6afe=Array['from'](_0x2d9464)['map'](_0x46d4c9=>_0x283807['createRangeOn'](_0x46d4c9['cell']));_0x5d432a['markMultiRangeInsertion'](_0xea6afe,'tableRow');});});}for(const _0x38440a of['insertTableColumnLeft','insertTableColumnRight']){const _0x4028b5=_0x29f7fc['commands']['get'](_0x38440a);_0x5d432a['enableCommand'](_0x38440a,_0x2c55b7=>{_0x29f7fc['model']['change'](_0x120b44=>{_0x2c55b7();const _0x2ec939='left'===_0x4028b5['order'],_0x22414d=_0x1f807f['getSelectionAffectedTableCells'](_0x1f6bb1),_0x211f97=_0x1f807f['getColumnIndexes'](_0x22414d),_0x2723d1=_0x2ec939?_0x211f97['first']-0x1:_0x211f97['last']+0x1,_0x45083c=_0x22414d[0x0]['findAncestor']('table'),_0x4d0860=_0x1f807f['createTableWalker'](_0x45083c,{'startRow':0x0,'column':_0x2723d1,'includeAllSlots':!0x1}),_0xc74280=Array['from'](_0x4d0860)['map'](_0x5961b4=>_0x120b44['createRangeOn'](_0x5961b4['cell']));_0x5d432a['markMultiRangeInsertion'](_0xc74280,'tableColumn');});});}for(const _0x47df1a of['removeTableRow','removeTableColumn']){const _0x2a6caf=_0x47df1a['substr'](0xb),_0x24d456=_0x2a6caf['toLowerCase'](),_0x51ae5d=_0x24d456['substr'](0x0,0x3)+'span',_0x13e790='table'+_0x2a6caf,_0x39e7e6='min'+_0x2a6caf,_0x68c630='max'+_0x2a6caf;_0x5d432a['enableCommand'](_0x47df1a,()=>{_0x29f7fc['model']['change'](_0x442b4d=>{const _0x59a686=_0x1f807f['getSelectionAffectedTableCells'](_0x1f6bb1),_0x494f88=_0x59a686[0x0]['findAncestor']('table');let _0x4ef78c;if('removeTableRow'==_0x47df1a){const _0x23cd95=_0x1f807f['getRowIndexes'](_0x59a686);_0x4ef78c={'startRow':_0x23cd95['first'],'endRow':_0x23cd95['last'],'includeAllSlots':!0x0};}else{const _0x43f4ea=_0x1f807f['getColumnIndexes'](_0x59a686);_0x4ef78c={'startColumn':_0x43f4ea['first'],'endColumn':_0x43f4ea['last'],'includeAllSlots':!0x0};}const _0x1ac9b6=_0x1f807f['createTableWalker'](_0x494f88,_0x4ef78c),_0x21e49a=Array['from'](_0x1ac9b6)['map'](({cell:_0x1dfcc7})=>_0x1dfcc7),_0xebf6a6=Ne(_0x21e49a['filter'](_0x152820=>_0x152820['hasAttribute'](_0x51ae5d))),_0x335075=Ne(_0x21e49a['filter'](_0x5dac13=>!_0x5dac13['hasAttribute'](_0x51ae5d)))['map'](_0x411d33=>_0x442b4d['createRangeOn'](_0x411d33)),_0x313827=_0x5d432a['markMultiRangeDeletion'](_0x335075,_0x13e790);if(_0x313827&&('tableRow'==_0x313827['subType']||'tableColumn'==_0x313827['subType'])){const _0x109550=this['_getSuggestionCoords'](_0x313827);for(const _0x183047 of _0xebf6a6){const _0x391bf9=_0x442b4d['createRangeOn'](_0x183047),_0x2e029d=_0x1f807f['getCellLocation'](_0x183047),_0x14d4dd=_0x183047['getAttribute'](_0x51ae5d)-0x1,_0x3b9f87=_0x109550[_0x39e7e6],_0x175a72=_0x109550[_0x68c630];_0x3b9f87<=_0x2e029d[_0x24d456]&&_0x2e029d[_0x24d456]+_0x14d4dd<=_0x175a72&&_0x313827['addRange'](_0x391bf9);}}});});}function _0x26bd3c(_0x451862){const _0x1dd5c8=Array['from'](_0x1f6bb1['getRanges']())['map'](_0x41c15b=>_0x58aa1['fromRange'](_0x41c15b));_0x29f7fc['model']['change'](_0x52ec26=>{const _0x14edbb=_0x52ec26['batch'];_0x451862=_0x451862['filter'](_0x4612fd=>'$graveyard'!=_0x4612fd['root']['rootName']),_0x52ec26['setSelection'](_0x451862),_0x29f7fc['commands']['get']('removeTableRow')['refresh'](),_0x29f7fc['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x29f7fc['model']['enqueueChange'](()=>{_0x29f7fc['model']['enqueueChange'](_0x14edbb,_0x4d7716=>{const _0x3e5aeb=_0x1dd5c8['filter'](_0x21ae14=>'$graveyard'!=_0x21ae14['root']['rootName']);_0x3e5aeb['length']>0x0&&_0x4d7716['setSelection'](_0x3e5aeb);for(const _0x31fd0f of _0x1dd5c8)_0x31fd0f['detach']();});});});}function _0x326cda(_0x4976a0){_0x29f7fc['model']['change'](_0x49c047=>{const _0x1c1b45=Array['from'](_0x1f6bb1['getRanges']())['map'](_0x353e00=>_0x58aa1['fromRange'](_0x353e00)),_0x217a60=[];for(const _0xb24b0c of _0x4976a0)for(const _0x4db03e of _0xb24b0c['getItems']({'shallow':!0x0}))_0x217a60['push'](_0x4db03e);for(const _0x5ef9d7 of _0x217a60)'$graveyard'!=_0x5ef9d7['root']['rootName']&&(_0x49c047['setSelection'](_0x49c047['createPositionAt'](_0x5ef9d7,0x0)),_0x29f7fc['commands']['get']('removeTableColumn')['refresh'](),_0x29f7fc['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4c11a2=_0x1c1b45['filter'](_0x911f5=>'$graveyard'!=_0x911f5['root']['rootName']);_0x4c11a2['length']>0x0&&_0x49c047['setSelection'](_0x4c11a2);for(const _0x3e7e82 of _0x1c1b45)_0x3e7e82['detach']();});}function _0xdf4fe(_0x2c3716,_0x3e2f03){return _0x3e2f03['every'](_0x132d4a=>_0x2c3716['some'](_0x5e79a0=>_0x5e79a0['end']['isEqual'](_0x132d4a['start'])||_0x132d4a['end']['isEqual'](_0x5e79a0['start'])));}function _0x323bca(_0x143e2c,_0x3d65a8){return!_0x143e2c['some'](_0x25c8ec=>_0x3d65a8['some'](_0x255d96=>_0x25c8ec['isIntersecting'](_0x255d96)))&&_0x143e2c['some'](_0x532b25=>_0x3d65a8['some'](_0x1c9147=>_0x532b25['end']['isTouching'](_0x1c9147['start'])));}_0x29f7fc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4451c8,_0x51822e,_0x5e053e)=>{if(!_0x5e053e['options']['showSuggestionHighlights'])return;const _0x57b37e=_0x51822e['item'];if(!_0x57b37e)return;const _0x4cc9a9=_0x5e053e['mapper']['toViewElement'](_0x57b37e);function _0x5e223b(_0xbe1e3b){return Array['isArray'](_0xbe1e3b)?_0xbe1e3b:[_0xbe1e3b];}_0x4cc9a9&&'tableCell'===_0x57b37e['name']&&_0x3062f0(_0x4cc9a9,_0x5e053e['writer'],(_0x52207a,_0x346869,_0x24bc79)=>_0x24bc79['addClass'](_0x5e223b(_0x346869['classes']),_0x52207a),(_0x480608,_0x21f990,_0x1d8ffe)=>_0x1d8ffe['removeClass'](_0x5e223b(_0x21f990['classes']),_0x480608));},{'priority':'highest'}),_0x5d432a['descriptionFactory']['registerDescriptionCallback'](_0x5d5dea=>{if('insertion'!=_0x5d5dea['type']&&'deletion'!=_0x5d5dea['type'])return;const _0x4ee6b0=_0x5d5dea['getContainedElement']();if(null!=_0x4ee6b0&&_0x4ee6b0['is']('element','table')){if('insertion'==_0x5d5dea['type']){const _0x407aad=_0x5d5dea['getItems']()['filter'](_0x2c33e9=>_0x2c33e9['is']('$textProxy'))['map'](_0x4b7d86=>_0x4b7d86['data']);if(_0x407aad['length'])return{'type':'insertion','content':o(_0x10f51a,'*Insert:*\x20%0',o(_0x10f51a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x407aad['join']('\x20')+'\x22'))};}if('deletion'==_0x5d5dea['type']){const _0x75a98c=_0x5d5dea['getItems']()['filter'](_0x2e5bc4=>_0x2e5bc4['is']('$textProxy'))['map'](_0x471038=>_0x471038['data']);if(_0x75a98c['length'])return{'type':'deletion','content':o(_0x10f51a,'*Remove:*\x20%0',o(_0x10f51a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x75a98c['join']('\x20')+'\x22'))};}}}),_0x5d432a['descriptionFactory']['registerDescriptionCallback'](_0x1437da=>{if('tableRow'==_0x1437da['subType']){const _0x2c1096=_0x1437da['getItems']()['filter'](_0x18183c=>_0x18183c['is']('$textProxy'))['map'](_0x27e793=>_0x27e793['data']),_0x1673c9=this['_getSuggestionCoords'](_0x1437da),_0x3345d7=_0x1673c9['maxRow']-_0x1673c9['minRow']+0x1;if('insertion'==_0x1437da['type'])return _0x2c1096['length']?{'type':'insertion','content':o(_0x10f51a,'*Insert:*\x20%0',o(_0x10f51a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3345d7,'\x22'+_0x2c1096['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x10f51a,'*Insert:*\x20%0',o(_0x10f51a,'ELEMENT_TABLE_ROW',_0x3345d7))};if('deletion'==_0x1437da['type'])return _0x2c1096['length']?{'type':'deletion','content':o(_0x10f51a,'*Remove:*\x20%0',o(_0x10f51a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3345d7,'\x22'+_0x2c1096['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x10f51a,'*Remove:*\x20%0',o(_0x10f51a,'ELEMENT_TABLE_ROW',_0x3345d7))};}if('tableColumn'==_0x1437da['subType']){const _0x41c535=_0x1437da['getItems']()['filter'](_0x4ebaf0=>_0x4ebaf0['is']('$textProxy'))['map'](_0x159f3e=>_0x159f3e['data']),_0x5b0126=this['_getSuggestionCoords'](_0x1437da),_0x219365=_0x5b0126['maxColumn']-_0x5b0126['minColumn']+0x1;if('insertion'==_0x1437da['type'])return _0x41c535['length']?{'type':'insertion','content':o(_0x10f51a,'*Insert:*\x20%0',o(_0x10f51a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x219365,'\x22'+_0x41c535['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x10f51a,'*Insert:*\x20%0',o(_0x10f51a,'ELEMENT_TABLE_COLUMN',_0x219365))};if('deletion'==_0x1437da['type'])return _0x41c535['length']?{'type':'deletion','content':o(_0x10f51a,'*Remove:*\x20%0',o(_0x10f51a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x219365,'\x22'+_0x41c535['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x10f51a,'*Remove:*\x20%0',o(_0x10f51a,'ELEMENT_TABLE_COLUMN',_0x219365))};}}),_0x5d432a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x26bd3c),_0x5d432a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x26bd3c),_0x5d432a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x326cda),_0x5d432a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x326cda),_0x5d432a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xdf4fe),_0x5d432a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xdf4fe),_0x5d432a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x323bca),_0x5d432a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x323bca);}['_acceptFormatSuggestionCallbackFactory'](){const _0x203245=this['editor'],_0x3f9c04=_0x203245['model']['document']['selection'];return(_0x261538,_0xb33b59)=>{_0x203245['model']['change'](_0x29be12=>{const {commandName:_0x5ef941,commandParams:_0x4fb375}=_0xb33b59;let _0x59131f=_0x261538[0x0]['end']['nodeBefore'];_0x4fb375&&_0x4fb375[0x0]&&!0x1===_0x4fb375[0x0]['forceValue']&&(_0x59131f=_0x261538[0x0]['start']['nodeAfter']);const _0x1db107=_0x29be12['createRangeIn'](_0x59131f);if('$graveyard'==_0x1db107['root']['rootName'])return;const _0xe5401c=Array['from'](_0x3f9c04['getRanges']())['map'](_0x23fefb=>_0x58aa1['fromRange'](_0x23fefb));_0x29be12['setSelection'](_0x1db107),_0x203245['commands']['get'](_0x5ef941)['refresh'](),_0x4fb375['push']({'forceDefaultExecution':!0x0}),_0x203245['execute'](_0x5ef941,..._0x4fb375);const _0x1460a4=_0xe5401c['filter'](_0x11e3bf=>'$graveyard'!=_0x11e3bf['root']['rootName']);_0x1460a4['length']>0x0&&_0x29be12['setSelection'](_0x1460a4);for(const _0x487a30 of _0xe5401c)_0x487a30['detach']();});};}['_getCoordsForCells'](_0x3ad9ef){const _0x19851a=this['editor']['plugins']['get']('TableUtils');let _0x49a83b=Number['MAX_SAFE_INTEGER'],_0x5b68e6=Number['MIN_SAFE_INTEGER'],_0x199563=Number['MAX_SAFE_INTEGER'],_0x2748a6=Number['MIN_SAFE_INTEGER'];for(const _0x562ef3 of _0x3ad9ef){if('$graveyard'==_0x562ef3['root']['rootName'])continue;const {row:_0x418b59,column:_0x3dce90}=_0x19851a['getCellLocation'](_0x562ef3),_0x57bcb3=_0x562ef3['hasAttribute']('rowspan')?_0x562ef3['getAttribute']('rowspan')-0x1:0x0,_0x4c07be=_0x562ef3['hasAttribute']('colspan')?_0x562ef3['getAttribute']('colspan')-0x1:0x0;_0x49a83b=_0x418b59<_0x49a83b?_0x418b59:_0x49a83b,_0x5b68e6=_0x418b59+_0x57bcb3>_0x5b68e6?_0x418b59+_0x57bcb3:_0x5b68e6,_0x199563=_0x3dce90<_0x199563?_0x3dce90:_0x199563,_0x2748a6=_0x3dce90+_0x4c07be>_0x2748a6?_0x3dce90+_0x4c07be:_0x2748a6;}return{'minRow':_0x49a83b,'maxRow':_0x5b68e6,'minColumn':_0x199563,'maxColumn':_0x2748a6};}['_setupColumnsRowsFixing'](){const _0x3fcf42=this['editor'],_0x215c15=_0x3fcf42['plugins']['get']('TrackChangesEditing'),_0x4728aa=_0x3fcf42['plugins']['get']('TableUtils');_0x3fcf42['model']['document']['on']('change:data',()=>{const _0x54a063=Array['from'](_0x3fcf42['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xd52fc7,data:_0x23cf7e}of _0x54a063){const {group:_0x2ae6b9,id:_0x3c67ef,subType:_0x137f3c}=_0x215c15['_splitMarkerName'](_0xd52fc7);if('suggestion'!=_0x2ae6b9)continue;if(null!=_0x23cf7e['oldRange'])continue;const _0x25215c=_0x215c15['getSuggestion'](_0x3c67ef);this['_tablePostFixingSubtypes']['includes'](_0x137f3c)&&this['_tableSuggestions']['add'](_0x25215c);}},{'priority':'low'});const _0x161f5a=(_0x1b2f93,_0x4e9c6c)=>{let _0x46b30e=!0x1;const _0x30d98e=_0x4e9c6c['createRangeOn'](_0x1b2f93),_0x181c17=_0x1b2f93['findAncestor']('table'),_0x2bf558=_0x4728aa['getCellLocation'](_0x1b2f93);for(const _0x4b10e1 of this['_tableSuggestions']){const _0x500463=_0x4b10e1['subType'],_0x44f451=_0x500463['startsWith']('tablePaste'),_0x25d2d4=_0x500463['substr'](_0x44f451?0xa:0x5),_0x4aff48=_0x25d2d4['toLowerCase'](),_0x173276=_0x4aff48['substr'](0x0,0x3)+'span',_0x90324a='min'+_0x25d2d4,_0x5bdc64='max'+_0x25d2d4;if(!_0x4b10e1['isInContent'])continue;if(_0x181c17!=_0x4b10e1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4b10e1['isIntersectingWithRange'](_0x30d98e))continue;const _0x867fd3=_0x1b2f93['hasAttribute'](_0x173276)?_0x1b2f93['getAttribute'](_0x173276)-0x1:0x0,_0x4cb852=this['_getSuggestionCoords'](_0x4b10e1),_0x1cd418=_0x4cb852[_0x90324a],_0x3d5b39=_0x4cb852[_0x5bdc64];_0x1cd418<=_0x2bf558[_0x4aff48]&&_0x2bf558[_0x4aff48]+_0x867fd3<=_0x3d5b39&&(_0x4b10e1['addRange'](_0x30d98e),_0x46b30e=!0x0);}return _0x46b30e;};_0x3fcf42['model']['document']['registerPostFixer'](_0x2ba4d0=>{let _0x51452a=!0x1;for(const _0x36a4bd of _0x3fcf42['model']['document']['differ']['getChanges']())if('insert'==_0x36a4bd['type']){if('tableRow'==_0x36a4bd['name']){for(const _0x4df5a6 of _0x36a4bd['position']['nodeAfter']['getChildren']())_0x51452a=_0x51452a||_0x161f5a(_0x4df5a6,_0x2ba4d0);}else'tableCell'==_0x36a4bd['name']&&(_0x51452a=_0x51452a||_0x161f5a(_0x36a4bd['position']['nodeAfter'],_0x2ba4d0));}return _0x51452a;});}['_getSuggestionCoords'](_0x59ca2c){return this['_getCoordsForCells'](_0x59ca2c['getRanges']()['map'](_0x2665b0=>_0x2665b0['start']['nodeAfter']));}}function Ne(_0x3494b0){return Array['from'](new Set(_0x3494b0)['values']());}class _t extends _0x2298ef{static get['requires'](){return[vt];}['afterInit'](){const _0x36868d=this['editor'],_0x3be491=_0x36868d['model']['document']['selection'],_0x539b7e=_0x36868d['locale'];if(!_0x36868d['plugins']['has']('TableEditing'))return;const _0x3edd02=_0x36868d['plugins']['get']('TrackChangesEditing'),_0x298aec=_0x36868d['plugins']['get']('TableUtils'),_0x209932=_0x36868d['plugins']['get'](vt);_0x209932['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3edd02['enableCommand']('mergeTableCells',()=>{const _0x515113=_0x298aec['getSelectionAffectedTableCells'](_0x36868d['model']['document']['selection']);_0x36868d['model']['change'](()=>{_0x3edd02['markMultiRangeBlockFormat'](_0x515113,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x36868d['commands']['get']('mergeTableCells')['on']('execute',(_0x45c30d,_0x3b711f)=>{_0x36868d['commands']['get']('trackChanges')['value']&&(_0x3b711f['length']>0x0&&_0x3b711f[_0x3b711f['length']-0x1]&&_0x3b711f[_0x3b711f['length']-0x1]['forceDefaultExecution']||_0x3edd02['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x45c30d['stop']());},{'priority':'highest'});for(const _0x4df893 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x23da4b=_0x36868d['commands']['get'](_0x4df893);_0x3edd02['enableCommand'](_0x4df893,()=>{const _0x55487f=_0x36868d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3abc94=>_0x3abc94['is']('element','tableCell')),_0x530b8d=_0x23da4b['value'];_0x36868d['model']['change'](()=>{_0x3edd02['markMultiRangeBlockFormat']([_0x55487f,_0x530b8d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xbbdb28 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x363276=_0x36868d['commands']['get'](_0xbbdb28);_0x3edd02['enableCommand'](_0xbbdb28,()=>{const _0x2f768c=_0x298aec['getSelectionAffectedTableCells'](_0x36868d['model']['document']['selection'])[0x0],_0x4171fc=_0x2f768c['findAncestor']('table'),{column:_0x35c2cb,row:_0x2cf6f}=_0x298aec['getCellLocation'](_0x2f768c);let _0xcf36b5=[];if('horizontally'==_0x363276['direction']){const _0x1a9455=_0x298aec['createTableWalker'](_0x4171fc,{'startRow':_0x2cf6f,'endRow':_0x2cf6f,'includeAllSlots':!0x0});_0xcf36b5=Array['from'](_0x1a9455)['map'](_0x2e86da=>_0x2e86da['cell']);}else{const _0x168623=_0x298aec['createTableWalker'](_0x4171fc,{'column':_0x35c2cb,'includeAllSlots':!0x0});_0xcf36b5=Array['from'](_0x168623)['map'](_0x26c076=>_0x26c076['cell']);}_0x36868d['model']['change'](_0x2897b9=>{_0x3edd02['markBlockFormat'](_0x2897b9['createRangeOn'](_0x2f768c),{'commandName':_0xbbdb28,'commandParams':[]},_0xcf36b5,_0xbbdb28);});});}_0x3edd02['descriptionFactory']['registerDescriptionCallback'](_0x259b4f=>{if('formatBlock'!=_0x259b4f['type']&&'formatInline'!=_0x259b4f['type'])return;const {data:_0x1e4f6a}=_0x259b4f;return _0x1e4f6a&&'mergeTableCells'==_0x1e4f6a['commandName']?{'type':'format','content':o(_0x539b7e,'*Merge\x20cells*')}:void 0x0;}),_0x3edd02['descriptionFactory']['registerDescriptionCallback'](_0x21be7c=>{if('formatBlock'!=_0x21be7c['type']&&'formatInline'!=_0x21be7c['type'])return;const {data:_0x8d5065}=_0x21be7c;return _0x8d5065?'splitTableCellVertically'==_0x8d5065['commandName']?{'type':'format','content':o(_0x539b7e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x8d5065['commandName']?{'type':'format','content':o(_0x539b7e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3e95ea=_0x209932['_acceptFormatSuggestionCallbackFactory']();for(const _0x4e1620 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3edd02['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e1620,'accept',_0x3e95ea);for(const _0x425575 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3edd02['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x425575,'accept',_0x3e95ea);_0x3edd02['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3baeb4=>{_0x36868d['model']['change'](_0x3f0899=>{const _0x1b6350=Array['from'](_0x3be491['getRanges']())['map'](_0x10634d=>_0x58aa1['fromRange'](_0x10634d));_0x3f0899['setSelection'](_0x3baeb4),_0x36868d['commands']['get']('mergeTableCells')['refresh'](),_0x36868d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1c68d1=_0x1b6350['filter'](_0x2c39c8=>'$graveyard'!=_0x2c39c8['root']['rootName']);_0x1c68d1['length']>0x0&&_0x3f0899['setSelection'](_0x1c68d1);for(const _0x26b1e2 of _0x1b6350)_0x26b1e2['detach']();});});for(const _0x533220 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x11dc54=_0x36868d['commands']['get'](_0x533220);_0x11dc54['on']('set:isEnabled',(_0x1b41fa,_0x4e4a8e,_0x5627fe)=>{if(_0x5627fe){const _0x168bdf=_0x36868d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x378333=>_0x378333['is']('element','tableCell'));this['_areMergableCells'](_0x11dc54['value'],_0x168bdf)||(_0x1b41fa['return']=!0x1,_0x1b41fa['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x28bc97=this['editor']['commands']['get']('mergeTableCells'),_0x56a5b4=this['editor']['plugins']['get']('TableUtils');if(!_0x28bc97['isEnabled'])return!0x1;const _0x2bd987=_0x56a5b4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2d9379 of _0x2bd987)for(const _0x3fcecf of _0x2bd987)if(_0x2d9379!=_0x3fcecf&&!this['_areMergableCells'](_0x2d9379,_0x3fcecf))return!0x1;return!0x0;}['_areMergableCells'](_0x4e3609,_0xcc5660){const _0x559548=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f2dd7=this['editor']['model']['createRangeOn'](_0x4e3609),_0x4ded9c=this['editor']['model']['createRangeOn'](_0xcc5660),_0x362134=new Set(),_0x4d5bb3=new Set();for(const _0xa0074e of _0x559548['getSuggestions']())if(('insertion'==_0xa0074e['type']||'deletion'==_0xa0074e['type']||'mergeTableCells'==_0xa0074e['subType'])&&_0xa0074e['isInContent']){for(const _0x20b87f of _0xa0074e['getRanges']())_0x20b87f['containsRange'](_0x2f2dd7,!0x0)&&_0x362134['add'](_0xa0074e['type']+':'+_0xa0074e['author']['id']),_0x20b87f['containsRange'](_0x4ded9c,!0x0)&&_0x4d5bb3['add'](_0xa0074e['type']+':'+_0xa0074e['author']['id']);}if(_0x362134['size']!=_0x4d5bb3['size'])return!0x1;for(const _0x4b7b71 of _0x362134)if(!_0x4d5bb3['has'](_0x4b7b71))return!0x1;return!0x0;}}class Ct extends _0x2298ef{static get['requires'](){return[vt];}['afterInit'](){const _0x50a3c2=this['editor'];if(!_0x50a3c2['plugins']['has']('TableEditing'))return;const _0x47f29c=_0x50a3c2['locale'],_0x398a5b=_0x50a3c2['plugins']['get']('TrackChangesEditing');_0x398a5b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x398a5b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x398a5b['registerBlockAttribute']('headingRows'),_0x398a5b['registerBlockAttribute']('headingColumns'),_0x398a5b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x47f29c,'FORMAT_HEADER_ROW')),_0x398a5b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x47f29c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4b452d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x222e64=this['editor']['plugins']['get']('TableUtils'),_0x24c740=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x2ef2d8({showActiveMarker:_0x379438=!0x0,setDataAttribute:_0x15e712=!0x0}={}){return(_0x4a3619,_0x505fc3,_0x17c2b5)=>{const {type:_0x521560,id:_0x172d9a}=_0x4b452d['_splitMarkerName'](_0x505fc3['markerName']),_0x428f1d=_0x4b452d['getSuggestion'](_0x172d9a),_0x11e9a5=_0x428f1d['data'];if('formatBlock'!=_0x428f1d['type']||!_0x11e9a5||'setTableColumnHeader'!=_0x11e9a5['commandName'])return;if(_0x505fc3['item'])return void _0x4a3619['stop']();if(!_0x17c2b5['consumable']['consume'](_0x505fc3['markerRange'],_0x4a3619['name']))return;const _0x5c4f06=_0x505fc3['markerRange']['start']['nodeAfter'],_0x1f76e2=_0x505fc3['markerRange']['end']['nodeBefore'],_0x227f32=_0x5c4f06['parent']['parent'],{column:_0x10c402}=_0x222e64['getCellLocation'](_0x5c4f06),{column:_0x1c6055}=_0x222e64['getCellLocation'](_0x1f76e2);for(let _0x51af09=_0x10c402;_0x51af09<=_0x1c6055;_0x51af09++){const _0x28dc11=_0x222e64['createTableWalker'](_0x227f32,{'column':_0x51af09,'includeAllSlots':!0x1});for(const _0x5c0975 of _0x28dc11){const _0x367ed5=_0x5c0975['cell'],_0x26bb98=_0x17c2b5['mapper']['toViewElement'](_0x367ed5);_0x17c2b5['writer']['addClass']('ck-suggestion-marker-'+_0x521560,_0x26bb98),_0x15e712&&_0x17c2b5['writer']['setAttribute']('data-suggestion',_0x172d9a,_0x26bb98),_0x17c2b5['mapper']['bindElementToMarker'](_0x26bb98,_0x505fc3['markerName']),_0x379438&&(_0x4b452d['activeMarkers']['includes'](_0x505fc3['markerName'])?_0x17c2b5['writer']['addClass']('ck-suggestion-marker--active',_0x26bb98):_0x17c2b5['writer']['removeClass']('ck-suggestion-marker--active',_0x26bb98));}}};}_0x4b452d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x24c740),_0x4b452d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x24c740),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2ef2d8(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5468c4,_0x150ff5,_0x24d91c)=>{_0x24d91c['options']['showSuggestionHighlights']&&_0x2ef2d8({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5468c4,_0x150ff5,_0x24d91c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3c24bd,_0xfe806f,_0x13edb7)=>{const {type:_0x54efd3,id:_0x196459}=_0x4b452d['_splitMarkerName'](_0xfe806f['markerName']),_0x46ec4a=_0x4b452d['getSuggestion'](_0x196459),_0x344258=_0x46ec4a['data'];if('formatBlock'!=_0x46ec4a['type']||!_0x344258||'setTableColumnHeader'!=_0x344258['commandName'])return;const _0x588cb5=_0x13edb7['mapper']['markerNameToElements'](_0xfe806f['markerName']);if(_0x588cb5){for(const _0x51e289 of _0x588cb5)_0x13edb7['writer']['removeClass']('ck-suggestion-marker-'+_0x54efd3,_0x51e289),_0x13edb7['writer']['removeClass']('ck-suggestion-marker--active',_0x51e289),_0x13edb7['writer']['removeAttribute']('data-suggestion',_0x51e289),_0x13edb7['mapper']['unbindElementFromMarkerName'](_0x51e289,_0xfe806f['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x210745=this['editor'],_0x3fe2d3=_0x210745['locale'];function _0x4c02d5(_0x55bc73){return{'type':'format','content':o(_0x3fe2d3,'*Format:*\x20%0',_0x55bc73)};}_0x210745['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a7e14=>{if('formatBlock'!=_0x1a7e14['type'])return;const {data:_0x2e27b4}=_0x1a7e14;if(_0x2e27b4){if('setTableRowHeader'==_0x2e27b4['commandName']){const _0x27b757=_0x2e27b4['commandParams'][0x0]['forceValue'];return _0x4c02d5(o(_0x3fe2d3,_0x27b757?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2e27b4['commandName']){const _0x35fc47=_0x2e27b4['commandParams'][0x0]['forceValue'];return _0x4c02d5(o(_0x3fe2d3,_0x35fc47?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x34c0c8=>[_0x34c0c8,null]));class Nt extends _0x2298ef{static get['requires'](){return[vt];}['afterInit'](){const _0x3793b2=this['editor'];if(!_0x3793b2['plugins']['has']('TableClipboard'))return;const _0xe2722a=_0x3793b2['plugins']['get']('TrackChangesEditing'),_0x4a4147=_0x3793b2['plugins']['get']('TableUtils'),_0x1329ec=_0x3793b2['plugins']['get'](vt),_0x2e02e1=_0x3793b2['plugins']['get']('TableClipboard');_0x1329ec['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3793b2['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3793b2['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x28ed5b=null;_0x3793b2['model']['on']('insertContent',(_0x183c6a,_0xa4a259)=>{const [_0x285da9,_0xaa7236]=_0xa4a259,_0x109694=_0xa4a259[_0xa4a259['length']-0x1];_0x109694&&_0x109694['forceDefaultExecution']||_0xe2722a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1c57dc,_0x375f05,_0x2f51ec,_0x437389,_0xcf0179){if(_0x375f05&&!_0x375f05['is']('documentSelection'))return!0x1;const _0x2150cd=_0xcf0179['getTableIfOnlyTableInContent'](_0x1c57dc,_0x2f51ec);if(!_0x2150cd||!Ue(_0x2150cd,void 0x0,_0x437389))return!0x1;const _0x4df328=_0x437389['getSelectionAffectedTableCells'](_0x2f51ec['document']['selection']);if(!_0x4df328['length'])return!0x1;const _0x14b0d1=_0x4df328[0x0]['findAncestor']('table'),_0x5b3340=_0x437389['getRowIndexes'](_0x4df328),_0x4d4a43=_0x437389['getColumnIndexes'](_0x4df328),_0x366b0e={'startRow':_0x5b3340['first'],'endRow':_0x5b3340['last'],'startColumn':_0x4d4a43['first'],'endColumn':_0x4d4a43['last']};return 0x1==_0x4df328['length']&&(_0x366b0e['endRow']+=_0x437389['getRows'](_0x2150cd)-0x1,_0x366b0e['endColumn']+=_0x437389['getColumns'](_0x2150cd)-0x1),Ue(_0x14b0d1,_0x366b0e,_0x437389);}(_0x285da9,_0xaa7236,_0x3793b2['model'],_0x4a4147,_0x2e02e1)&&(_0x183c6a['stop'](),_0x28ed5b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3793b2['model']['change'](()=>{_0x3793b2['model']['insertContent'](_0xa4a259[0x0],_0xa4a259[0x1],_0xa4a259[0x2],{'forceDefaultExecution':!0x0});const _0x5c56c4=_0x5ec24f(),{rowInsertionRanges:_0x2b54f8,columnInsertionRanges:_0x2508d6,insertionRanges:_0x2605f8,deletionRanges:_0x4d604d,cells:_0x30aee2}=_0x28ed5b;_0x2b54f8['length']&&_0xe2722a['markMultiRangeInsertion'](_0x2b54f8,'tablePasteRow',{'tablePasteChainId':_0x5c56c4}),_0x2508d6['length']&&_0xe2722a['markMultiRangeInsertion'](_0x2508d6,'tablePasteColumn',{'tablePasteChainId':_0x5c56c4}),_0x2605f8['length']&&(_0xe2722a['markMultiRangeInsertion'](_0x2605f8,'tablePaste',{'tablePasteChainId':_0x5c56c4,'skipNestingCheck':!0x0}),_0x2605f8['forEach'](_0x71ae91=>_0x71ae91['detach']?.())),_0x4d604d['length']&&(_0xe2722a['markMultiRangeDeletion'](_0x4d604d,'tablePaste',{'tablePasteChainId':_0x5c56c4,'skipNestingCheck':!0x0}),_0x4d604d['forEach'](_0x140985=>_0x140985['detach']?.()));const _0x25afc9=_0xe2722a['markMultiRangeBlockFormat'](_0x30aee2['map'](({element:_0x49e6dc})=>_0x49e6dc),{'formatGroupId':_0x5ec24f()},[],'tablePasteCell',{'tablePasteChainId':_0x5c56c4});if(_0x25afc9){const _0x140327=_0x25afc9['getMarkers'](),_0x44f912=[];for(const {element:_0x2a54ab,attributes:_0x878071}of _0x30aee2){if(!_0x878071)continue;const _0x454faf=_0x3793b2['model']['createRangeOn'](_0x2a54ab),_0x827586=_0x140327['find'](_0xee173a=>_0xee173a['getRange']()['isEqual'](_0x454faf));_0x827586&&_0x44f912['push']([_0x827586['name'],_0x878071]);}_0x44f912['length']&&_0x25afc9['setAttribute']('markerAttributes',Object['fromEntries'](_0x44f912));}_0x28ed5b=null;}));},{'priority':_0x31cd2a['high']+0xa}),_0x3793b2['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xe9a7d4,_0x5d5a4b)=>{const [_0x429751,_0x304d6b,,_0x19b7f3]=_0x5d5a4b;if(!_0x28ed5b)return;_0xe9a7d4['stop']();const _0x21c929=_0x429751['cell'],_0x28d6fc=_0x304d6b,_0x40dc97=Oe(_0x21c929),_0x429b67=Oe(_0x28d6fc);_0xe9a7d4['return']=_0x21c929;let _0x2d52a2=null,_0x415931=null;if(_0x429b67||_0x40dc97){if(_0x40dc97&&!_0x429b67){_0x19b7f3['remove'](_0x21c929['getChild'](0x0));for(const _0x25e5f7 of Array['from'](_0x28d6fc['getChildren']()))_0x19b7f3['insert'](_0x25e5f7,_0x21c929,'end');const _0x1a64a7=_0x28ed5b['rowInsertionIndexes']['includes'](_0x429751['row']),_0x1302e1=_0x28ed5b['columnInsertionIndexes']['includes'](_0x429751['column']);_0x1a64a7||_0x1302e1||(_0x2d52a2=_0x58aa1['fromRange'](_0x19b7f3['createRangeIn'](_0x21c929)));}else _0x429b67&&!_0x40dc97&&(_0x415931=_0x19b7f3['createRangeIn'](_0x21c929));}else{const _0x4c3603=_0x19b7f3['createElement']('tableCellSuggestion'),_0x5af4a3=_0x19b7f3['createElement']('tableCellSuggestion');_0x19b7f3['wrap'](_0x19b7f3['createRangeIn'](_0x21c929),_0x5af4a3),_0x19b7f3['insert'](_0x4c3603,_0x21c929,0x0);for(const _0x12ac8b of Array['from'](_0x28d6fc['getChildren']()))_0x19b7f3['insert'](_0x12ac8b,_0x4c3603,'end');_0x2d52a2=_0x58aa1['fromRange'](_0x19b7f3['createRangeOn'](_0x4c3603)),_0x415931=_0x58aa1['fromRange'](_0x19b7f3['createRangeOn'](_0x5af4a3));}const _0x1fe8ff=Array['from'](_0x28d6fc['getAttributes']())['filter'](([_0x289dfc])=>Be['includes'](_0x289dfc));_0x28ed5b['cells']['push']({'element':_0x21c929,'attributes':_0x1fe8ff['length']?Object['fromEntries'](_0x1fe8ff):null}),_0x2d52a2&&_0x28ed5b['insertionRanges']['push'](_0x2d52a2),_0x415931&&_0x28ed5b['deletionRanges']['push'](_0x415931);},{'priority':'high'}),_0x4a4147['on']('insertColumns',(_0x26c111,_0x261b40)=>{const [_0x3b0a29,_0x54e4e4={}]=_0x261b40;if(!_0x28ed5b)return;const _0x53ef7c=_0x54e4e4['at']||0x0,_0x3c88d3=_0x54e4e4['columns']||0x1;_0x28ed5b['columnInsertionIndexes']=new Array(_0x3c88d3)['fill'](_0x53ef7c)['map']((_0x3fc06a,_0x1ecf90)=>_0x3fc06a+_0x1ecf90);for(const {cell:_0x5d66f7}of _0x4a4147['createTableWalker'](_0x3b0a29,{'startColumn':_0x53ef7c,'endColumn':_0x53ef7c+_0x3c88d3-0x1}))_0x28ed5b['columnInsertionRanges']['push'](_0x3793b2['model']['createRangeOn'](_0x5d66f7));},{'priority':'low'}),_0x4a4147['on']('insertRows',(_0x519f76,_0x58c339)=>{const [_0x14fc12,_0x2c4a98={}]=_0x58c339;if(!_0x28ed5b)return;const _0x4df7dc=_0x2c4a98['at']||0x0,_0x176cb6=_0x2c4a98['rows']||0x1;_0x28ed5b['rowInsertionIndexes']=new Array(_0x176cb6)['fill'](_0x4df7dc)['map']((_0x4b8510,_0x3a2418)=>_0x4b8510+_0x3a2418);for(const {cell:_0x17cef3}of _0x4a4147['createTableWalker'](_0x14fc12,{'startRow':_0x4df7dc,'endRow':_0x4df7dc+_0x176cb6-0x1}))_0x28ed5b['rowInsertionRanges']['push'](_0x3793b2['model']['createRangeOn'](_0x17cef3));},{'priority':'low'}),_0xe2722a['descriptionFactory']['registerDescriptionCallback'](_0x36d47b=>{if(_0x36d47b['subType']&&_0x36d47b['subType']['startsWith']('tablePaste'))return _0x36d47b['previous']?{}:{'type':'insertion','content':o(_0x3793b2['locale'],'*Replace\x20table\x20cells*')};});const _0x58a64d=()=>!0x1;for(const _0x5df846 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xe2722a['_suggestionFactory']['registerCustomCallback']('insertion',_0x5df846,'join',_0x58a64d),_0xe2722a['_suggestionFactory']['registerCustomCallback']('deletion',_0x5df846,'join',_0x58a64d),_0xe2722a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5df846,'join',_0x58a64d);_0xe2722a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x58a64d),_0xe2722a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1dcfc3,_0x23f587,_0x4ffc0c)=>{const _0x374ace=_0x1dcfc3['map'](_0x1b6e85=>_0x1b6e85['getContainedElement']())['filter'](_0x43dcfd=>_0x43dcfd),_0x500988=new Map(_0x374ace['map'](_0x3a5011=>[_0x3a5011,null]));if(_0x28ed5b){for(const {element:_0x370fc1,attributes:_0x33d6bd}of _0x28ed5b['cells'])_0x33d6bd&&_0x500988['set'](_0x370fc1,_0x33d6bd);}else{if(_0x4ffc0c&&_0x4ffc0c['markerAttributes'])for(const [_0x3646f0,_0x50378d]of Object['entries'](_0x4ffc0c['markerAttributes'])){const _0x1c7c3c=_0x3793b2['model']['markers']['get'](_0x3646f0),_0x35935c=_0x1c7c3c?_0x1c7c3c['getRange']()['getContainedElement']():null;_0x35935c&&_0x500988['set'](_0x35935c,_0x50378d);}}_0x3793b2['model']['change'](_0x267a50=>{for(const [_0x38de36,_0x52b056]of _0x500988)_0x267a50['setAttributes']({...xe,..._0x52b056},_0x38de36);});});const _0x21f006=(_0xc0fc7,_0x2fab99)=>{_0xe2722a['_suggestionFactory']['registerCustomCallback'](_0xc0fc7,'tablePaste',_0x2fab99,(_0x71d8e9,_0x212e10,_0x4db048)=>{_0x3793b2['model']['change'](_0xf4cdc8=>{const _0x519953=[];for(const _0x3af9ca of _0x71d8e9){const _0x1013ff=_0x3af9ca['start']['nodeAfter'];_0x1013ff['is']('element','tableCellSuggestion')&&_0x519953['push'](_0x1013ff);}_0xe2722a['_suggestionFactory']['getSuggestionCallback'](_0xc0fc7,null,_0x2fab99)(_0x71d8e9,_0x212e10,_0x4db048);for(const _0x396644 of _0x519953)'$graveyard'!=_0x396644['root']['rootName']&&_0xf4cdc8['unwrap'](_0x396644);});});};_0x21f006('insertion','accept'),_0x21f006('insertion','discard'),_0x21f006('deletion','accept'),_0x21f006('deletion','discard'),_0xe2722a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5f1d2f=>{const _0x4cf36e=_0x5f1d2f['map'](_0x54293c=>_0x54293c['getContainedElement']()),_0x2e201b=_0x4cf36e[0x0]['findAncestor']('table'),{minRow:_0x4b96cd,maxRow:_0x283a93}=_0x1329ec['_getCoordsForCells'](_0x4cf36e);_0x4a4147['removeRows'](_0x2e201b,{'at':_0x4b96cd,'rows':_0x283a93-_0x4b96cd+0x1});}),_0xe2722a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x86d32b=>{const _0x937f48=_0x86d32b['map'](_0x1edaf3=>_0x1edaf3['getContainedElement']()),_0x345593=_0x937f48[0x0]['findAncestor']('table'),{minColumn:_0x535772,maxColumn:_0x1b8dd6}=_0x1329ec['_getCoordsForCells'](_0x937f48);_0x4a4147['removeColumns'](_0x345593,{'at':_0x535772,'columns':_0x1b8dd6-_0x535772+0x1});});const _0x2d20a8=(_0x4843f5,_0x1b5947)=>{if(!_0x1b5947['subType']||!_0x1b5947['subType']['startsWith']('tablePaste'))return;const _0x1d49d2=_0x1b5947['attributes']['tablePasteChainId'],_0x3af6f5=_0xe2722a['getSuggestions']()['filter'](_0x44a0d4=>_0x44a0d4['isInContent']&&_0x44a0d4['attributes']&&_0x44a0d4['attributes']['tablePasteChainId']==_0x1d49d2);_0x3af6f5['length']&&_0x1b5947['getAllAdjacentSuggestions']()['length']!=_0x3af6f5['length']&&_0x3af6f5['reduce']((_0x7b268e,_0x3868a3)=>(_0x7b268e['next']=_0x3868a3,_0x3868a3['previous']=_0x7b268e,_0x3868a3));};function _0x446cbd(_0x5673c9,_0x3bb90d=!0x0){const {id:_0x3baee0,authorId:_0x2b9587}=_0xe2722a['_splitMarkerName'](_0x5673c9['markerName']),_0x4f517f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xa5022e=_0xe2722a['activeMarkers']['includes'](_0x5673c9['markerName']);return _0xa5022e&&_0x4f517f['push']('ck-suggestion-marker--active'),{'classes':_0x4f517f,'attributes':{'data-suggestion':_0x3baee0,'data-author-id':_0x2b9587},'priority':_0xa5022e&&_0x3bb90d?0xbc2:0xbb8};}_0xe2722a['on']('suggestionLoaded',_0x2d20a8,{'priority':'high'}),_0xe2722a['on']('suggestionUnloaded',_0x2d20a8,{'priority':'high'}),_0x3793b2['model']['document']['registerPostFixer'](()=>{let _0x2d510b=!0x1;const _0xa3d777=Array['from'](_0x3793b2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13f314,data:_0x1dcd48}of _0xa3d777){const {group:_0x12744d,type:_0x3a7767,id:_0x157f38}=_0xe2722a['_splitMarkerName'](_0x13f314);if('suggestion'!=_0x12744d||'deletion'!=_0x3a7767||_0x1dcd48['oldRange'])continue;if(!_0xe2722a['hasSuggestion'](_0x157f38))continue;const _0x29c91e=_0xe2722a['getSuggestion'](_0x157f38)['getRanges'](),_0x30246a=_0x3793b2['plugins']['get']('Users')['me'];for(const _0x1396f5 of _0xe2722a['getSuggestions']()){if(!_0x1396f5['isInContent']||_0x1396f5['author']!=_0x30246a)continue;if('formatBlock'!=_0x1396f5['type']||'tablePasteCell'!=_0x1396f5['subType'])continue;if(_0x1396f5['getRanges']()['every'](_0x191a90=>_0x29c91e['some'](_0x4006d3=>_0x4006d3['containsRange'](_0x191a90,!0x0)))){for(const _0x384401 of _0x1396f5['getAllAdjacentSuggestions']())_0x384401['isInContent']&&(_0x384401['discard'](),_0x2d510b=!0x0);}}}return _0x2d510b;}),_0x3793b2['model']['document']['registerPostFixer'](_0x464f3f=>{const _0x115817=_0x3793b2['commands']['get']('redo');if(!_0x115817||!_0x115817['_createdBatches']['has'](_0x464f3f['batch']))return!0x1;let _0x3d3a7f=!0x1;const _0x2cd928=_0x3793b2['plugins']['get']('Users')['me'],_0x4dfb95=_0x3793b2['model']['document']['differ']['getChanges'](),_0x26ac47=Array['from'](_0x3793b2['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x416e05,data:_0xf08453})=>{const {group:_0x522cbc,subType:_0x412338,authorId:_0xad4077}=_0xe2722a['_splitMarkerName'](_0x416e05);return'suggestion'==_0x522cbc&&'tablePaste'==_0x412338&&_0xad4077==_0x2cd928['id']&&!_0xf08453['oldRange'];});for(const _0x200e6b of _0x4dfb95){if('insert'!=_0x200e6b['type']||'tableCellSuggestion'!=_0x200e6b['name']||0x1!=_0x200e6b['length'])continue;const _0x41d870=_0x464f3f['createRange'](_0x200e6b['position'],_0x200e6b['position']['getShiftedBy'](0x1));if(!_0x26ac47['find'](({data:_0x15ff52})=>_0x15ff52['newRange']['isEqual'](_0x41d870))){for(const {name:_0x35c4e5,data:_0x242a3e}of _0x26ac47)if(_0x41d870['containsRange'](_0x242a3e['newRange'])){_0x464f3f['updateMarker'](_0x35c4e5,{'range':_0x41d870}),_0x3d3a7f=!0x0;break;}}}return _0x3d3a7f;}),_0x3793b2['model']['document']['registerPostFixer'](_0x4a7b0c=>{let _0x3dcfaf=!0x1;const _0x508e7e=_0x3793b2['plugins']['get']('Users')['me'],_0x47db25=_0xe2722a['getSuggestions']()['filter'](_0x34d621=>_0x34d621['isInContent']&&_0x34d621['author']==_0x508e7e),_0x554234=new Set(),_0x453319=new Set();for(const _0x388321 of _0x47db25)if('tablePaste'==_0x388321['subType'])for(const _0x38c1d7 of _0x388321['getMarkers']()){const _0x42db01=_0x38c1d7['getRange']()['getContainedElement']();if(_0x42db01){if(_0x42db01['is']('element','tableCellSuggestion')&&Oe(_0x42db01)){_0x388321['removeMarker'](_0x38c1d7['name']),_0x554234['add'](_0x42db01),_0x3dcfaf=!0x0;const _0x4df060=_0x42db01['nextSibling'],_0x3da2d8=_0x42db01['previousSibling'],_0x34f4b3=_0x4df060&&_0x4df060['is']('element','tableCellSuggestion'),_0x121306=_0x3da2d8&&_0x3da2d8['is']('element','tableCellSuggestion');_0x34f4b3&&!_0x554234['has'](_0x4df060)&&_0x453319['add'](_0x4df060),_0x121306&&!_0x554234['has'](_0x3da2d8)&&_0x453319['add'](_0x3da2d8);}else _0x42db01['is']('element','paragraph')&&_0x42db01['isEmpty']&&(_0x388321['removeMarker'](_0x38c1d7['name']),_0x3dcfaf=!0x0);}}else{if('tablePasteCell'==_0x388321['subType']){if(!_0x388321['attributes']||!_0x388321['attributes']['tablePasteChainId'])continue;const _0xc9a017=_0x388321['attributes']['markerAttributes'];if(_0xc9a017&&Object['keys'](_0xc9a017)['length'])continue;const _0x1e7835=_0x388321['attributes']['tablePasteChainId'];let _0x1f6911=!0x0,_0x589341=!0x0;for(const _0x374270 of _0x47db25)if(_0x374270['subType']&&_0x374270['subType']['startsWith']('tablePaste')){if(!_0x374270['attributes']['tablePasteChainId']){_0x589341=!0x1;break;}if(_0x374270['id']!=_0x388321['id']&&_0x374270['attributes']['tablePasteChainId']==_0x1e7835){_0x1f6911=!0x1;break;}}_0x589341&&_0x1f6911&&(_0x388321['removeMarkers'](),_0x3dcfaf=!0x0);}}for(const _0x6bdd4e of _0x554234)_0x4a7b0c['remove'](_0x6bdd4e);for(const _0x10bf2f of _0x453319)_0x4a7b0c['unwrap'](_0x10bf2f);return _0x3dcfaf;}),_0x3793b2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xa7ea38=>_0x446cbd(_0xa7ea38),'converterPriority':'high'}),_0x3793b2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1e85e5,_0x362b42)=>_0x362b42['options']['showSuggestionHighlights']?_0x446cbd(_0x1e85e5,!0x1):null,'converterPriority':'high'});const _0xb30d7e=_0x3793b2['editing']['view'];this['listenTo'](_0xb30d7e['document'],'clipboardOutput',(_0x1b5569,_0x36870c)=>{const _0x28d957=[];for(const _0x269254 of _0xb30d7e['createRangeIn'](_0x36870c['content'])['getItems']())_0x269254['is']('element','suggestion-td')&&_0x28d957['push'](_0x269254);_0xb30d7e['change'](_0x5c1169=>{for(const _0x5c65ce of _0x28d957)_0x5c1169['move'](_0x5c1169['createRangeIn'](_0x5c65ce),_0x5c1169['createPositionBefore'](_0x5c65ce)),_0x5c1169['remove'](_0x5c65ce);});});}}function Oe(_0x11e515){if(_0x11e515['isEmpty'])return!0x0;const _0x2eb4bd=_0x11e515['getChild'](0x0);return _0x2eb4bd['is']('element','paragraph')&&_0x2eb4bd['isEmpty'];}function Ue(_0x57cb86,_0x1f09ec={},_0x616e50){for(const {isAnchor:_0x5c9703,cellHeight:_0x51f6d6,cellWidth:_0x587da7}of _0x616e50['createTableWalker'](_0x57cb86,{'includeAllSlots':!0x0,..._0x1f09ec}))if(!_0x5c9703||0x1!=_0x51f6d6||0x1!=_0x587da7)return!0x1;return!0x0;}class Dt extends _0x2298ef{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4efb3d=this['editor']['plugins']['get']('TrackChangesEditing');_0x4efb3d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4efb3d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4efb3d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4efb3d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4efb3d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4efb3d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5931a2,_0x201904){const _0x2e7300=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46c771=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x54487a=_0x201904['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x144589=_0x46c771['getColumnGroupElement'](_0x54487a);let _0x1e47f3=_0x144589?_0x46c771['getTableColumnsWidths'](_0x144589):null,_0x208165=_0x54487a['getAttribute']('tableWidth')||null;const _0xab8c7c=_0x201904['tableWidth']||_0x208165,_0x53b0e8=_0x201904['columnWidths']||_0x1e47f3,_0x184e56=this['editor']['plugins']['get']('Users')['me'];for(const _0x19f41f of _0x2e7300['getSuggestions']()){const _0x5a5839=_0x19f41f['getContainedElement']();if('resizeTable'===_0x19f41f['subType']&&_0x5a5839===_0x54487a){_0x19f41f['author']!==_0x184e56&&_0x19f41f['discard']();const _0x2cc440=_0x19f41f['data']['commandParams'];_0x208165=_0x2cc440[0x0]['tableWidth'],_0x1e47f3=_0x2cc440[0x0]['columnWidths'];break;}}_0x5931a2({'table':_0x54487a,'tableWidth':_0xab8c7c,'columnWidths':_0x53b0e8}),_0x2e7300['markBlockFormat'](_0x54487a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x208165,'columnWidths':_0x1e47f3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3bfcd8){if('formatBlock'!=_0x3bfcd8['type']&&'formatInline'!=_0x3bfcd8['type'])return;const {data:_0x3968a6}=_0x3bfcd8;if(_0x3968a6&&'resizeTable'===_0x3968a6['formatGroupId']){const _0x1629ff='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1629ff)};}}}class Mt extends _0x2298ef{['afterInit'](){const _0x1f1e6e=this['editor'];_0x1f1e6e['plugins']['has']('Template')&&_0x1f1e6e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x2298ef{['afterInit'](){const _0x316165=this['editor'];if(!_0x316165['commands']['get']('insertTableOfContents'))return;_0x316165['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xa4a3d5=_0x316165['plugins']['get']('TrackChangesEditing'),_0x3a94a8=_0x316165['locale'];_0xa4a3d5['descriptionFactory']['registerElementLabel']('tableOfContents',_0x33d1e=>o(_0x3a94a8,'ELEMENT_TABLE_OF_CONTENTS',_0x33d1e));}}class Bt extends _0x2298ef{['afterInit'](){const _0x42f0be=this['editor'];if(!_0x42f0be['plugins']['has']('Title'))return;const _0x113fcf=_0x42f0be['plugins']['get']('TrackChangesEditing');_0x113fcf['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x42f0be['locale'],'ELEMENT_TITLE')),_0x42f0be['model']['document']['registerPostFixer'](_0xe30ee6=>{let _0x11732b=!0x1;const _0x27412e=Array['from'](_0x42f0be['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x472192,data:_0x48487a}of _0x27412e){const {group:_0x3e4fe6}=_0x113fcf['_splitMarkerName'](_0x472192);if('suggestion'!==_0x3e4fe6||!_0x48487a['newRange'])continue;const _0x4c65b2=_0x48487a['newRange'],_0x3f4db7=_0x4c65b2['end']['nodeBefore'];if(!_0x3f4db7||!_0x3f4db7['is']('element','title-content'))continue;if(!_0x4c65b2['start']['isTouching'](_0x4c65b2['end']))continue;const _0xdf2a32=_0x42f0be['model']['schema']['getNearestSelectionRange'](_0x4c65b2['end'],'forward');if(_0xdf2a32&&_0xdf2a32['isCollapsed']){const _0x135775=_0xe30ee6['createRange'](_0x4c65b2['start'],_0xdf2a32['start']);_0x135775['isEqual'](_0x4c65b2)||(_0xe30ee6['updateMarker'](_0x472192,{'range':_0x135775}),_0x11732b=!0x0);}_0x11732b||(_0xe30ee6['removeMarker'](_0x472192),_0x11732b=!0x0);}return _0x11732b;});}}class Ot extends _0x2298ef{['afterInit'](){const _0x346bc8=this['editor'],_0x1882eb=_0x346bc8['plugins']['get']('TrackChangesEditing');_0x346bc8['plugins']['has']('UndoEditing')&&(_0x1882eb['enableCommand']('undo'),_0x1882eb['enableCommand']('redo'));}}class Rt extends _0x2298ef{static get['requires'](){return[vt];}['afterInit'](){const _0x2d9c8e=this['editor'];if(!_0x2d9c8e['plugins']['has']('TableCaptionEditing'))return;_0x2d9c8e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x2298ef{['tableProperties'];['tableCellProperties'];constructor(_0x25ad7b){super(_0x25ad7b),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0xd72699=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x419c01 of this['tableProperties'])_0xd72699['enableCommand'](_0x419c01,(_0x448698,_0x3f51b6)=>{const _0xbc1242=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x419c01,[_0xbc1242],this['tableProperties'],'tableProperties',_0x448698,_0x3f51b6);});_0xd72699['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xd72699['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd72699['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2076b0,_0x238700)=>this['handleDiscardAction'](this['tableProperties'],_0x2076b0,_0x238700)),_0xd72699['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3ac722 of this['tableCellProperties'])_0xd72699['enableCommand'](_0x3ac722,(_0x146cf1,_0x4227f2)=>{const _0x3c73b1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3ac722,_0x3c73b1,this['tableCellProperties'],'tableCellProperties',_0x146cf1,_0x4227f2);});_0xd72699['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xd72699['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd72699['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x278de5,_0x4c45f4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x278de5,_0x4c45f4)),_0xd72699['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xd72699['descriptionFactory']['registerDescriptionCallback'](_0x1137c0=>this['handleSuggestionDescription'](_0x1137c0));}['_handlePropertyChange'](_0x10b9b2,_0x2304bc,_0x49ae3d,_0x4e63b9,_0x1569f6,_0x3a3992){const _0x377513=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3a3992['batch'],()=>{for(const _0x5e9779 of _0x2304bc){if(this['_getSuggestion'](_0x5e9779,_0x4e63b9))_0x1569f6(_0x3a3992);else{const _0xfc500e={};for(const _0x383146 of _0x49ae3d){const _0x2d4d6b=_0x5e9779['getAttribute'](_0x383146);void 0x0!==_0x2d4d6b&&(_0xfc500e[_0x383146]=_0x2d4d6b);}_0x1569f6(_0x3a3992),_0x377513['markBlockFormat'](_0x5e9779,{'commandParams':[_0xfc500e]},[],_0x4e63b9);}}});}['handleDiscardAction'](_0x2051ca,_0x55b7c3,_0x587889){const _0x14c719=_0x55b7c3[0x0]['start']['nodeAfter'],_0x3510b2=_0x587889['commandParams'][0x0];this['editor']['model']['change'](_0x1d29e2=>{for(const _0x17f98e of _0x2051ca)void 0x0!==_0x3510b2[_0x17f98e]?_0x1d29e2['setAttribute'](_0x17f98e,_0x3510b2[_0x17f98e],_0x14c719):_0x1d29e2['removeAttribute'](_0x17f98e,_0x14c719);});}['handleSuggestionDescription'](_0x3b55d6){if(_0x3b55d6['data'])switch(_0x3b55d6['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x362454,_0x3791a4){const _0x46ddfb=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x11e18b of _0x46ddfb['getSuggestions']({'skipNotAttached':!0x0})){const _0x44a5e4=_0x11e18b['getContainedElement']();if(_0x11e18b['subType']===_0x3791a4&&_0x44a5e4===_0x362454)return _0x11e18b;}return null;}}const m='$elementName';class p extends _0x2298ef{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x36c6ec,_0x51d058,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d9d4b){super(_0x2d9d4b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1b31e0,_0x5a7f62,_0x540de0,_0x2872b0)=>{this['_model']['change'](()=>{for(const _0x48ca54 of[..._0x2872b0,..._0x540de0])this['_model']['markers']['has'](_0x48ca54)&&_0x2d9d4b['editing']['reconvertMarker'](_0x48ca54);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2d9d4b['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x2d9d4b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2d9d4b['config']['get']('trackChanges.trackFormatChanges'),_0x2d9d4b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2d9d4b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2d9d4b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x380dbc=this['editor'],_0x526ed8=(_0x482ca7,_0x348b1b)=>{if('attribute'!=_0x482ca7)return'ck-suggestion-marker-'+_0x482ca7;const _0x43dfc3=_0x348b1b['split']('|')[0x0];return this['_isBlockAttribute'](_0x43dfc3)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x380dbc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4d8bc4=>{const {id:_0x2636e5,authorId:_0x26ef76,type:_0x34aab9,subType:_0x4c747b}=this['_splitMarkerName'](_0x4d8bc4['markerName']),_0x87fdee=['ck-suggestion-marker',_0x526ed8(_0x34aab9,_0x4c747b)];let _0x706c99=0xbb8;return this['activeMarkers']['includes'](_0x4d8bc4['markerName'])&&(_0x87fdee['push']('ck-suggestion-marker--active'),_0x706c99=0xbc2),'deletion'==_0x34aab9&&(_0x706c99+=0x5),{'classes':_0x87fdee,'attributes':{'data-suggestion':_0x2636e5,'data-author-id':_0x26ef76},'priority':_0x706c99};}}),_0x380dbc['conversion']['for']('dataDowncast')['add'](_0x2fa0e7=>{_0x2fa0e7['on']('addMarker:suggestion',(_0x34030a,_0x34cf3e,_0x2c85a7)=>{if(!_0x2c85a7['options']['showSuggestionHighlights'])return;const _0x5118e5=_0x34cf3e['item'];if(!_0x5118e5)return;const _0x3040fd=_0x2c85a7['mapper']['toViewElement'](_0x5118e5);_0x380dbc['model']['schema']['isObject'](_0x5118e5)&&_0x3040fd&&!_0x3040fd['getCustomProperty']('widget')&&_0x3040fd['is']('containerElement')&&_0x359056(_0x3040fd,_0x2c85a7['writer']);},{'priority':'high'});}),_0x380dbc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5f74b4,_0x45692e)=>{if(!_0x45692e['options']['showSuggestionHighlights'])return null;const {type:_0x213817,subType:_0x2faf63}=this['_splitMarkerName'](_0x5f74b4['markerName']);return{'classes':['ck-suggestion-marker',_0x526ed8(_0x213817,_0x2faf63)],'priority':0xbb8};}});const _0x491a46=({showActiveMarkers:_0x5a0d1f=!0x0,isAttributeSuggestion:_0x3c89b5=!0x1}={})=>(_0x301c3b,_0x206174,_0x1fd2bd)=>{if(!_0x206174['item'])return;const {id:_0x425f7e,authorId:_0x116e16}=this['_splitMarkerName'](_0x206174['markerName']);if(_0x3c89b5){const _0x499611=this['_suggestions']['get'](_0x425f7e),_0x2b8226=this['_getAttributeKey'](_0x499611);if(!this['_isBlockAttribute'](_0x2b8226))return;}if(_0x206174['item']['is']('selection'))return void _0x1fd2bd['consumable']['consume'](_0x206174['item'],_0x301c3b['name']);const _0x463287=_0x1fd2bd['mapper']['toViewElement'](_0x206174['item']);if(_0x206174['item']['is']('element')&&_0x380dbc['model']['schema']['isBlock'](_0x206174['item'])&&!_0x463287['getCustomProperty']('addHighlight')){_0x1fd2bd['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x463287),_0x1fd2bd['writer']['setAttribute']('data-suggestion',_0x425f7e,_0x463287),_0x1fd2bd['writer']['setAttribute']('data-author-id',_0x116e16,_0x463287),_0x1fd2bd['mapper']['bindElementToMarker'](_0x463287,_0x206174['markerName']),_0x5a0d1f&&(this['activeMarkers']['includes'](_0x206174['markerName'])?_0x1fd2bd['writer']['addClass']('ck-suggestion-marker--active',_0x463287):_0x1fd2bd['writer']['removeClass']('ck-suggestion-marker--active',_0x463287));for(const _0x1c6b5a of _0x380dbc['model']['createRangeIn'](_0x206174['item'])['getItems']())_0x1fd2bd['consumable']['consume'](_0x1c6b5a,_0x301c3b['name']);_0x1fd2bd['consumable']['consume'](_0x206174['item'],_0x301c3b['name']);}};_0x380dbc['conversion']['for']('dataDowncast')['add'](_0x280d1c=>{_0x280d1c['on']('addMarker:suggestion:formatBlock',(_0x51e93f,_0x4719d4,_0x2f5676)=>{_0x2f5676['options']['showSuggestionHighlights']&&_0x491a46({'showActiveMarkers':!0x1})(_0x51e93f,_0x4719d4,_0x2f5676);},{'priority':'highest'});}),_0x380dbc['conversion']['for']('dataDowncast')['add'](_0x4de422=>{_0x4de422['on']('addMarker:suggestion:attribute',(_0xecad3,_0x446fd8,_0xd2255b)=>{_0xd2255b['options']['showSuggestionHighlights']&&_0x491a46({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xecad3,_0x446fd8,_0xd2255b);},{'priority':'highest'});}),_0x380dbc['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xd39958,_0x5eeb2d)=>_0x5eeb2d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xd39958['substr'](0xb)}}),_0x380dbc['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1bcd16,{writer:_0x354e57})=>{let _0x14d398='suggestion:'+_0x1bcd16['getAttribute']('suggestion-type')+':'+_0x1bcd16['getAttribute']('id');return _0x1bcd16['getAttribute']('marker-count')&&(_0x14d398+=':'+_0x1bcd16['getAttribute']('marker-count')),_0x354e57['createElement']('$marker',{'data-name':_0x14d398});}}),_0x380dbc['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x380dbc['conversion']['for']('editingDowncast')['add'](_0x4b5330=>{_0x4b5330['on']('addMarker:suggestion:formatBlock',_0x491a46(),{'priority':'high'});}),_0x380dbc['conversion']['for']('editingDowncast')['add'](_0x43e47d=>{_0x43e47d['on']('addMarker:suggestion:attribute',_0x491a46({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x380dbc['conversion']['for']('editingDowncast')['add'](_0x3c64ee=>{_0x3c64ee['on']('removeMarker:suggestion:formatBlock',(_0x28af11,_0x6102e2,_0x197f18)=>{const _0x341ad5=_0x197f18['mapper']['markerNameToElements'](_0x6102e2['markerName']);if(_0x341ad5){for(const _0x5db6d5 of _0x341ad5)_0x5db6d5['getCustomProperty']('addHighlight')||(_0x197f18['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5db6d5),_0x197f18['writer']['removeAttribute']('data-suggestion',_0x5db6d5),_0x197f18['writer']['removeAttribute']('data-author-id',_0x5db6d5),_0x197f18['mapper']['unbindElementFromMarkerName'](_0x5db6d5,_0x6102e2['markerName']));}},{'priority':'high'});}),_0x380dbc['conversion']['for']('editingDowncast')['add'](_0x4eac18=>{_0x4eac18['on']('removeMarker:suggestion:attribute',(_0x45e54e,_0x15e92c,_0x3f9aba)=>{const _0x46c953=_0x3f9aba['mapper']['markerNameToElements'](_0x15e92c['markerName']);if(!_0x46c953)return;const {id:_0xe92776}=this['_splitMarkerName'](_0x15e92c['markerName']),_0x4279f4=this['_suggestions']['get'](_0xe92776),_0x533320=this['_getAttributeKey'](_0x4279f4);if(this['_isBlockAttribute'](_0x533320)){for(const _0xfec4f7 of _0x46c953)_0xfec4f7['getCustomProperty']('addHighlight')||(_0x3f9aba['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xfec4f7),_0x3f9aba['writer']['removeAttribute']('data-suggestion',_0xfec4f7),_0x3f9aba['writer']['removeAttribute']('data-author-id',_0xfec4f7),_0x3f9aba['mapper']['unbindElementFromMarkerName'](_0xfec4f7,_0x15e92c['markerName']));}},{'priority':'high'});}),_0x380dbc['model']['document']['registerPostFixer'](_0x23d865=>{let _0x10a67f=!0x1;const _0x54d449=Array['from'](_0x380dbc['model']['document']['differ']['getChangedMarkers']()),_0x2e477c=new Set();for(const {name:_0x568ccd,data:_0x361bd3}of _0x54d449){const {group:_0x2d630f,type:_0x1c2cec,subType:_0x42aff7,id:_0x201671}=this['_splitMarkerName'](_0x568ccd);if('suggestion'!==_0x2d630f)continue;const _0x49e764=this['_suggestions']['get'](_0x201671);if(null!=_0x361bd3['newRange']){'formatInline'==_0x1c2cec&&(_0x10a67f=_0x10a67f||Pt(_0x361bd3['newRange'],_0x568ccd,_0x23d865,_0x380dbc['model']['schema']));const _0x5ecd1e='attribute'==_0x1c2cec&&this['_isBlockAttribute'](_0x42aff7['split']('|')[0x0]);if(_0x361bd3['newRange']['isCollapsed']||'$graveyard'==_0x361bd3['newRange']['root']['rootName']||'formatBlock'==_0x1c2cec&&!Ft(_0x361bd3['newRange'])||_0x5ecd1e&&!Ft(_0x361bd3['newRange'])||'deletion'==_0x1c2cec&&!(!Vt(_0x291060=_0x361bd3['newRange'])&&!function(_0xd8564a){return _0xd8564a['start']['parent']==_0xd8564a['end']['nodeBefore']&&_0xd8564a['start']['isAtEnd'];}(_0x291060)))_0x23d865['removeMarker'](_0x568ccd),_0x10a67f=!0x0;else{if(!_0x49e764||!_0x49e764['isInContent'])continue;if(_0x361bd3['newRange']&&_0x361bd3['oldRange']&&_0x361bd3['newRange']['isEqual'](_0x361bd3['oldRange']))continue;_0x2e477c['add'](_0x49e764);}}}var _0x291060;return _0x2e477c['size']>0x0&&(_0x10a67f=!!this['_joinWithAdjacentSuggestions'](_0x2e477c)||_0x10a67f),_0x10a67f;}),_0x380dbc['model']['document']['registerPostFixer'](_0x5b0d93=>{let _0x1e184b=!0x1;for(const _0x253c23 of _0x380dbc['model']['document']['differ']['getChanges']())if('insert'==_0x253c23['type'])for(const _0x41cf36 of this['_suggestions']['values']()){if(_0x41cf36['isMultiRange']||!_0x41cf36['isInContent'])continue;const _0x22e03e='formatBlock'==_0x41cf36['type'],_0x17c375=this['_getAttributeKey'](_0x41cf36),_0x3ba4d5=_0x17c375&&this['_isBlockAttribute'](_0x17c375);if(!_0x22e03e&&!_0x3ba4d5)continue;const _0x290eaf=_0x41cf36['getFirstRange']();if(_0x290eaf['start']['parent']!=_0x290eaf['end']['parent']&&!_0x290eaf['end']['isAtEnd']){const _0x59af39=_0x380dbc['model']['createPositionAt'](_0x290eaf['start']['nodeAfter'],'end'),_0x5884e9=_0x380dbc['model']['createRange'](_0x290eaf['start'],_0x59af39);_0x5b0d93['updateMarker'](_0x41cf36['getFirstMarker'](),{'range':_0x5884e9}),_0x1e184b=!0x0;}}return _0x1e184b;}),_0x380dbc['model']['document']['registerPostFixer'](_0x32966d=>this['_processAttributeChanges'](_0x32966d)),_0x380dbc['model']['document']['registerPostFixer'](_0x4a0016=>!_0x4a0016['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4a0016)),_0x380dbc['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x380dbc['model']['document']['on']('change:data',(_0x2cc0db,_0x580f4f)=>{if(!_0x580f4f['isLocal']||_0x580f4f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3cefc3=_0x380dbc['model']['document']['differ']['getChanges']();if(0x0==_0x3cefc3['length'])return;const _0x2548ef=[],_0x5dd8ff=_0x3cefc3['filter'](_0x3d9bfc=>'attribute'==_0x3d9bfc['type']),_0x480395=_0x3cefc3['filter'](_0x1644a3=>'insert'==_0x1644a3['type']&&'$text'!=_0x1644a3['name']);for(const _0x578929 of _0x5dd8ff)this['_isRegisteredAttribute'](_0x578929['attributeKey'])&&_0x2548ef['push']({'key':_0x578929['attributeKey'],'newValue':_0x578929['attributeNewValue'],'oldValue':_0x578929['attributeOldValue'],'range':Lt(_0x578929['range'],_0x380dbc['model'])});for(const _0x532506 of _0x480395){if('rename'!=_0x532506['action']&&'refresh'!=_0x532506['action'])continue;const _0xfaa5b5=Jt(_0x532506['position']['nodeAfter'],_0x380dbc['model']),_0x5770db=_0x532506['before'];'rename'==_0x532506['action']&&_0x2548ef['push']({'key':m,'newValue':_0x532506['name'],'oldValue':_0x5770db['name'],'range':_0xfaa5b5});for(const [_0x5ef55a,_0x34e967]of _0x5770db['attributes']){if(!this['_isRegisteredAttribute'](_0x5ef55a))continue;const _0x14db61=_0x532506['attributes']['get'](_0x5ef55a);_0x34e967!==_0x14db61&&_0x2548ef['push']({'key':_0x5ef55a,'newValue':_0x14db61,'oldValue':_0x34e967,'range':_0xfaa5b5});}for(const [_0x27927a,_0x467a53]of _0x532506['attributes'])this['_isRegisteredAttribute'](_0x27927a)&&(_0x5770db['attributes']['has'](_0x27927a)||_0x2548ef['push']({'key':_0x27927a,'newValue':_0x467a53,'oldValue':null,'range':_0xfaa5b5}));}0x0!=_0x2548ef['length']&&_0x380dbc['model']['enqueueChange'](_0x580f4f,_0x5ac509=>{const _0x56efed=_0x5ec24f();for(const {range:_0x4d260e,key:_0x2f7c4b,oldValue:_0xc4eff0,newValue:_0x3a0739}of _0x2548ef)this['markAttributeChange'](_0x4d260e,_0x2f7c4b,_0xc4eff0,_0x3a0739,{'groupId':_0x56efed});this['_reduceExistingSuggestions'](_0x5ac509,_0x2548ef);});},{'priority':'lowest'}),_0x380dbc['model']['markers']['on']('update:suggestion',(_0x4313b2,_0x2fabf5,_0x233dcb)=>{if(null==_0x233dcb){const {id:_0x2ee8c1}=this['_splitMarkerName'](_0x2fabf5['name']),_0x4afb9a=this['_suggestions']['get'](_0x2ee8c1);_0x4afb9a&&_0x4afb9a['addMarkerName'](_0x2fabf5['name']);}}),_0x380dbc['model']['document']['on']('change:data',()=>{const _0x11ee84=Array['from'](_0x380dbc['model']['document']['differ']['getChangedMarkers']())['filter'](_0x107d07=>'suggestion'===this['_splitMarkerName'](_0x107d07['name'])['group']);if(0x0===_0x11ee84['length'])return;_0x11ee84['sort']((_0x25d370,_0x14e561)=>{const _0x147725=_0x25d370['data']['oldRange'],_0x3322ff=_0x14e561['data']['oldRange'];return null===_0x147725&&null===_0x3322ff?0x0:null===_0x147725&&null!==_0x3322ff?-0x1:null!==_0x147725&&null===_0x3322ff?0x1:_0x147725['start']['isBefore'](_0x3322ff['start'])?-0x1:0x1;});const _0x525814=new Set(),_0x2e711f=new Set();for(const {name:_0x4d8f35,data:_0x1ef707}of _0x11ee84){const {id:_0x1c26e2}=this['_splitMarkerName'](_0x4d8f35);if(null===_0x1ef707['oldRange']){const _0x2dcdc7=this['_handleNewSuggestionMarker'](_0x4d8f35);_0x2e711f['add'](_0x2dcdc7);}else{const _0x29ad2a=this['_suggestions']['get'](_0x1c26e2);null!==_0x1ef707['newRange']||_0x29ad2a['isInContent']?(_0x525814['add'](_0x29ad2a['head']),_0x2e711f['add'](_0x29ad2a)):this['_removeSuggestion'](_0x29ad2a);}}_0x2e711f['size']>0x0&&this['_refreshSuggestionsChain'](_0x2e711f);for(const _0x370c74 of _0x525814)this['fire']('suggestionChanged',_0x370c74);}),_0x380dbc['model']['on']('applyOperation',(_0x23cd9e,_0x4820c4)=>{const _0x82edd9=_0x4820c4[0x0];if(!this['_suggestions']['size'])return;if(!_0x82edd9['isDocumentOperation'])return;if(_0x82edd9['batch']['isUndo']||!_0x82edd9['batch']['isLocal'])return;let _0x312f66,_0x138b5f;switch(_0x82edd9['type']){case'insert':_0x312f66=_0x380dbc['model']['createPositionAt'](_0x82edd9['position']),_0x138b5f=_0x312f66['getShiftedBy'](_0x82edd9['howMany']);break;case'split':_0x312f66=_0x380dbc['model']['createPositionAt'](_0x82edd9['splitPosition']),_0x138b5f=_0x380dbc['model']['createPositionAt'](_0x82edd9['moveTargetPosition']);break;case'move':_0x312f66=_0x380dbc['model']['createPositionAt'](_0x82edd9['targetPosition']),_0x138b5f=_0x312f66['getShiftedBy'](_0x82edd9['howMany']);break;default:return;}const _0x4931f0=_0x380dbc['model']['createRange'](_0x312f66,_0x138b5f);_0x380dbc['model']['change'](()=>{for(const {suggestion:_0x4ddf1f,meta:_0x366d60}of this['_findSuggestions'](_0x4931f0)){if(_0x4ddf1f['isMultiRange'])continue;if('formatInline'==_0x4ddf1f['type'])continue;const _0x65189c=this['_getAttributeKey'](_0x4ddf1f);if(_0x65189c&&this['_isBlockAttribute'](_0x65189c)&&'split'!=_0x82edd9['type'])continue;const _0x4a12b3=_0x4ddf1f['data']&&_0x4ddf1f['data']['multipleBlocks'];('formatBlock'!=_0x4ddf1f['type']||'split'==_0x82edd9['type']&&!_0x4a12b3)&&(_0x366d60['containsRangeInObject']||'insertion'==_0x4ddf1f['type']&&_0x366d60['isOwn']||_0x4ddf1f['getFirstRange']()['containsRange'](_0x4931f0)&&this['_breakSuggestionMarker'](_0x4ddf1f,_0x312f66,_0x138b5f));}});},{'priority':'lowest'}),_0x380dbc['model']['on']('deleteContent',(_0xe80994,_0x35958c)=>{const _0x58673e=_0x35958c[0x0],_0x4cbbfb=_0x35958c[0x1];if(_0x4cbbfb&&_0x4cbbfb['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x58673e['isCollapsed'])return;const _0x3f2280=_0x380dbc['model']['schema'],{start:_0x45533a,end:_0x1fccfb}=_0x58673e['getFirstRange'](),_0x55045a=_0x45533a['nodeAfter']&&_0x3f2280['isLimit'](_0x45533a['nodeAfter'])?null:_0x3f2280['getNearestSelectionRange'](_0x45533a,'forward'),_0x41d3b7=_0x1fccfb['nodeBefore']&&_0x3f2280['isLimit'](_0x1fccfb['nodeBefore'])?null:_0x3f2280['getNearestSelectionRange'](_0x1fccfb,'backward'),_0x563bca=_0x380dbc['model']['createRange'](_0x55045a?_0x55045a['start']:_0x45533a,_0x41d3b7?_0x41d3b7['end']:_0x1fccfb);_0x380dbc['model']['change'](_0x5ee8d2=>{this['markDeletion'](_0x563bca);const _0x38cd04=_0x380dbc['model']['schema']['getNearestSelectionRange'](_0x563bca['start']);_0x58673e['is']('documentSelection')?_0x5ee8d2['setSelection'](_0x38cd04):_0x58673e['setTo'](_0x38cd04);}),_0xe80994['stop']();},{'priority':_0x31cd2a['normal']+0xa}),_0x380dbc['model']['on']('insertContent',(_0x4d3a9b,_0x6bb413)=>{const _0x3033cb=_0x6bb413[_0x6bb413['length']-0x1];_0x3033cb&&_0x3033cb['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x380dbc['model']['change'](()=>{let _0x8441d=_0x380dbc['model']['insertContent'](_0x6bb413[0x0],_0x6bb413[0x1],_0x6bb413[0x2],{'forceDefaultExecution':!0x0});if(!_0x8441d)return;_0x4d3a9b['return']=_0x8441d['clone']();const _0x52a387=_0x8441d['end']['nodeBefore'],_0x513cf2=_0x380dbc['model']['schema'];_0x52a387&&_0x513cf2['isBlock'](_0x52a387)&&!_0x513cf2['isObject'](_0x52a387)&&(_0x8441d=_0x380dbc['model']['createRange'](_0x8441d['start'],_0x380dbc['model']['createPositionAt'](_0x52a387,'end'))),this['markInsertion'](_0x8441d);}),_0x4d3a9b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x44a9c0=new O(_0x380dbc,this['_suggestions']);_0x380dbc['commands']['add']('acceptSuggestion',_0x44a9c0),this['enableCommand']('acceptSuggestion');const _0x5bd030=new R(_0x380dbc,this['_suggestions']);_0x380dbc['commands']['add']('discardSuggestion',_0x5bd030),this['enableCommand']('discardSuggestion'),_0x380dbc['commands']['add']('acceptAllSuggestions',new x(_0x380dbc,_0x44a9c0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x380dbc['commands']['add']('discardAllSuggestions',new x(_0x380dbc,_0x5bd030,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x380dbc['commands']['add']('acceptSelectedSuggestions',new E(_0x380dbc,_0x44a9c0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x380dbc['commands']['add']('discardSelectedSuggestions',new E(_0x380dbc,_0x5bd030,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x28fcf0=_0x380dbc['plugins']['get']('CommentsRepository');this['listenTo'](_0x28fcf0,'addComment',(_0x5712b1,{threadId:_0x56ecb8})=>{const _0x46dbee=this['_suggestions']['get'](_0x56ecb8);_0x46dbee&&_0x46dbee['commentThread']&&0x1===_0x46dbee['commentThread']['length']&&this['_updateSuggestionData'](_0x56ecb8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x28fcf0,'removeComment',(_0x40c287,{threadId:_0x470091})=>{const _0x3c2caf=this['_suggestions']['get'](_0x470091);_0x3c2caf&&_0x3c2caf['commentThread']&&!_0x3c2caf['commentThread']['length']&&this['_updateSuggestionData'](_0x470091,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2f038f){const _0x2cb3e4=_0x10d3a5([0x75,0x37,0x48,0x79,0x30,0x54,0x4f,0x63,0x43,0x47,0x50,0x72,0x6e,0x64,0x53,0x68,0x61,0x67,0x4c,0x4b,0x4a,0x38,0x70,0x44,0x62,0x51,0x7a,0x45,0x6c,0x31,0x55,0x32,0x6a,0x78,0x41,0x4e,0x74,0x49,0x58,0x6b,0x69,0x65,0x34,0x46,0x73,0x57,0x66,0x39,0x56,0x4d,0x71,0x77,0x33,0x6d,0x42,0x59,0x36,0x6f,0x76,0x5a,0x35,0x52]),_0x65e498=0x2a72e5eb,_0x11ad38=0x2a75b9f3^_0x65e498,_0x238599=window[_0x10d3a5([0x44,0x61,0x74,0x65])][_0x10d3a5([0x6e,0x6f,0x77])](),_0x4f02c1=_0x2f038f[_0x10d3a5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4e330e=new window[(_0x10d3a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x476e98=>{_0x4f02c1[_0x10d3a5([0x6f,0x6e,0x63,0x65])](_0x10d3a5([0x72,0x65,0x61,0x64,0x79]),_0x476e98);}),_0x4be9ce={[_0x10d3a5([0x6b,0x74,0x79])]:_0x10d3a5([0x45,0x43]),[_0x10d3a5([0x75,0x73,0x65])]:_0x10d3a5([0x73,0x69,0x67]),[_0x10d3a5([0x63,0x72,0x76])]:_0x10d3a5([0x50,0x2d,0x32,0x35,0x36]),[_0x10d3a5([0x78])]:_0x10d3a5([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x10d3a5([0x79])]:_0x10d3a5([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x10d3a5([0x61,0x6c,0x67])]:_0x10d3a5([0x45,0x53,0x32,0x35,0x36])},_0x5aeda0=_0x4f02c1[_0x10d3a5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x10d3a5([0x67,0x65,0x74])](_0x10d3a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1353ac(){let _0x415a78,_0x480408=null,_0x331061=null;try{if(_0x5aeda0==_0x10d3a5([0x47,0x50,0x4c]))return _0x10d3a5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x415a78=_0x1beae9(),!_0x415a78)return _0x10d3a5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x415a78[_0x10d3a5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x331061=_0x3f6a98(_0x415a78[_0x10d3a5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x415a78[_0x10d3a5([0x6a,0x74,0x69])])),await _0x23027a()?_0x41f142()?_0x4f4ebe()?_0x10d3a5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x359cb4()?(_0x415a78[_0x10d3a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10d3a5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x480408=_0x3dafc9(_0x10d3a5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x415a78[_0x10d3a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10d3a5([0x74,0x72,0x69,0x61,0x6c])&&(_0x480408=_0x3dafc9(_0x10d3a5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x415a78[_0x10d3a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10d3a5([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x480408=_0x3dafc9(_0x10d3a5([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x594c2d()):_0x10d3a5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x10d3a5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x10d3a5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3bbb9c){return _0x10d3a5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4f4ebe(){const _0x4ee34d=[_0x10d3a5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x10d3a5([0x74,0x72,0x69,0x61,0x6c])][_0x10d3a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x415a78[_0x10d3a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x238599/0x3e8:0xe10*_0x11ad38;return _0x415a78[_0x10d3a5([0x65,0x78,0x70])]<_0x4ee34d;}function _0x41f142(){const _0xab1b03=_0x415a78[_0x10d3a5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xab1b03)return!0x1;if(_0xab1b03[_0x10d3a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10d3a5([0x2a])))return!0x0;if(_0xab1b03[_0x10d3a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10d3a5([0x54,0x43])))return!0x0;if(_0xab1b03[_0x10d3a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10d3a5([0x52,0x54,0x43]))){if(_0x5333ab())return!0x0;if(_0x2bc268()||_0x15f8f5())return!0x0;}return!0x1;}function _0x359cb4(){const _0x352dd2=_0x415a78[_0x10d3a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x352dd2||0x0==_0x352dd2[_0x10d3a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f29b6}=new URL(window[_0x10d3a5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x352dd2[_0x10d3a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f29b6))return!0x0;const _0x3c6774=_0x4f29b6[_0x10d3a5([0x73,0x70,0x6c,0x69,0x74])](_0x10d3a5([0x2e]));return _0x352dd2[_0x10d3a5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x320fef=>_0x320fef[_0x10d3a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10d3a5([0x2a])))[_0x10d3a5([0x6d,0x61,0x70])](_0x53a781=>_0x53a781[_0x10d3a5([0x73,0x70,0x6c,0x69,0x74])](_0x10d3a5([0x2e])))[_0x10d3a5([0x73,0x6f,0x6d,0x65])](_0x40e04e=>_0x3c6774[_0x10d3a5([0x65,0x76,0x65,0x72,0x79])]((_0xa324b1,_0x4619e0)=>_0x40e04e[_0x4619e0]===_0xa324b1||_0x40e04e[_0x4619e0]===_0x10d3a5([0x2a])));}function _0x594c2d(){return _0x480408&&_0x331061?new window[(_0x10d3a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x469b9e,_0x2cede4)=>{_0x480408[_0x10d3a5([0x74,0x68,0x65,0x6e])](_0x469b9e,_0x2cede4),_0x331061[_0x10d3a5([0x74,0x68,0x65,0x6e])](_0x5099d4=>{_0x5099d4!=_0x10d3a5([0x56,0x61,0x6c,0x69,0x64])&&_0x469b9e(_0x5099d4);},_0x2cede4);}):_0x480408||_0x331061||_0x10d3a5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3f6a98(_0x1b8786,_0x4ad674){return new window[(_0x10d3a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b075e=>{if(_0x3342bf())return _0x2b075e(_0x10d3a5([0x56,0x61,0x6c,0x69,0x64]));_0x23ba5a(),_0x4f02c1[_0x10d3a5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x10d3a5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb6ee56=!0x1;const _0x19615a=_0x5ec24f();function _0x1ebde2(_0x319302){return!!_0x319302&&(typeof _0x319302===_0x10d3a5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x319302===_0x10d3a5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x319302[_0x10d3a5([0x74,0x68,0x65,0x6e])]===_0x10d3a5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x319302[_0x10d3a5([0x63,0x61,0x74,0x63,0x68])]===_0x10d3a5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1fe25a(_0x39c581){_0x43fb03(_0x39c581)[_0x10d3a5([0x74,0x68,0x65,0x6e])](_0x4a7687=>{if(!_0x4a7687||_0x4a7687[_0x10d3a5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x10d3a5([0x6f,0x6b]))return _0x10d3a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5eed83(_0x12ea96(_0x19615a+_0x4ad674))!=_0x4a7687[_0x10d3a5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x10d3a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x10d3a5([0x56,0x61,0x6c,0x69,0x64]);})[_0x10d3a5([0x74,0x68,0x65,0x6e])](_0x1297e7=>(_0x517cc4(),_0x1297e7),()=>{const _0x3ead23=_0x529465();return null==_0x3ead23?(_0x517cc4(),_0x10d3a5([0x56,0x61,0x6c,0x69,0x64])):_0x10d3a5(_0x238599-_0x3ead23>(0xe7e61eb^_0x65e498)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x10d3a5([0x74,0x68,0x65,0x6e])](_0x2b075e)[_0x10d3a5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b075e(_0x10d3a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x32e4fd=0x2a440b6b^_0x65e498;function _0x517cc4(){const _0x560c34=_0x10d3a5([0x6c,0x6c,0x63,0x74,0x2d])+_0x5eed83(_0x12ea96(_0x1b8786)),_0x1a4ee3=_0x9311a6(_0x5eed83(window[_0x10d3a5([0x4d,0x61,0x74,0x68])][_0x10d3a5([0x63,0x65,0x69,0x6c])](_0x238599/_0x32e4fd)));window[_0x10d3a5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10d3a5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x560c34,_0x1a4ee3);}function _0x529465(){const _0x494812=_0x10d3a5([0x6c,0x6c,0x63,0x74,0x2d])+_0x5eed83(_0x12ea96(_0x1b8786)),_0x2bca95=window[_0x10d3a5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10d3a5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x494812);return _0x2bca95?window[_0x10d3a5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9311a6(_0x2bca95),0x10)*_0x32e4fd:null;}function _0x43fb03(_0x171f4b){return new window[(_0x10d3a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xede1cd,_0x35384e)=>{_0x171f4b[_0x10d3a5([0x74,0x68,0x65,0x6e])](_0xede1cd,_0x35384e),window[_0x10d3a5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35384e,0x2a73312b^_0x65e498);});}}_0x4f02c1[_0x10d3a5([0x6f,0x6e])](_0x10d3a5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x16519c,_0x499bf0)=>{if(_0x499bf0[0x0]!=_0x1b8786)return _0x2b075e(_0x10d3a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x499bf0[0x1]={..._0x499bf0[0x1],[_0x10d3a5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x19615a};},{[_0x10d3a5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10d3a5([0x68,0x69,0x67,0x68])}),_0x4f02c1[_0x10d3a5([0x6f,0x6e])](_0x10d3a5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x30eeee=>{_0x1ebde2(_0x30eeee[_0x10d3a5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb6ee56=!0x0,_0x1fe25a(_0x30eeee[_0x10d3a5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x10d3a5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10d3a5([0x6c,0x6f,0x77])}),_0x4e330e[_0x10d3a5([0x74,0x68,0x65,0x6e])](()=>{_0xb6ee56||_0x2b075e(_0x10d3a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3342bf(){return _0x4f02c1[_0x10d3a5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10d3a5([0x76,0x69,0x65,0x77])][_0x10d3a5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x10d3a5([0x61,0x75,0x74,0x6f]);}function _0x23ba5a(){_0x4f02c1[_0x10d3a5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10d3a5([0x76,0x69,0x65,0x77])][_0x10d3a5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10d3a5([0x61,0x75,0x74,0x6f]);}}function _0x3dafc9(_0x44e15f){const _0x50f3c6=[new window[(_0x10d3a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ab0a6=>setTimeout(_0x2ab0a6,0x2a7bdb27^_0x65e498)),_0x4e330e[_0x10d3a5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x10d3a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xeb59cc=>{let _0x163053=0x0;_0x4f02c1[_0x10d3a5([0x6d,0x6f,0x64,0x65,0x6c])][_0x10d3a5([0x6f,0x6e])](_0x10d3a5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x21e8e1,_0x5b3665)=>{_0x5b3665[0x0][_0x10d3a5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x163053++,_0x163053==(0x2a72e413^_0x65e498)&&(_0xeb59cc(),_0x21e8e1[_0x10d3a5([0x6f,0x66,0x66])]());});}))];return window[_0x10d3a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10d3a5([0x72,0x61,0x63,0x65])](_0x50f3c6)[_0x10d3a5([0x74,0x68,0x65,0x6e])](()=>_0x44e15f);}async function _0x4779fa(){await _0x4e330e,_0x4f02c1[_0x10d3a5([0x6d,0x6f,0x64,0x65,0x6c])][_0x10d3a5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x430a7f,_0x4f02c1[_0x10d3a5([0x6d,0x6f,0x64,0x65,0x6c])][_0x10d3a5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x430a7f,_0x4f02c1[_0x10d3a5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x10d3a5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5333ab(){return _0x2e85f6(_0x10d3a5([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1c604a(_0x10d3a5([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x10d3a5([0x73,0x74,0x61,0x74,0x65])]==_0x10d3a5([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2bc268(){return _0x2e85f6(_0x10d3a5([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x15f8f5(){return _0x2e85f6(_0x10d3a5([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x410f7b(_0x553e15){const _0x24ff67=_0x3f1e6e();_0x4f02c1[_0x24ff67]=_0x10d3a5([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x553e15,_0x553e15!=_0x10d3a5([0x56,0x61,0x6c,0x69,0x64])&&_0x4779fa();}function _0x3f1e6e(){const _0x1e6ffa=window[_0x10d3a5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x10d3a5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x10d3a5([0x6e,0x6f,0x77])]())[_0x10d3a5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x10d3a5([0x2e]),'');let _0x497c2c=_0x10d3a5([0x75]);for(let _0x29c21c=0x0;_0x29c21c<_0x1e6ffa[_0x10d3a5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29c21c+=0x2){let _0x75f9fb=window[_0x10d3a5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e6ffa[_0x10d3a5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29c21c,_0x29c21c+0x2));_0x75f9fb>=_0x2cb3e4[_0x10d3a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x75f9fb-=_0x2cb3e4[_0x10d3a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x497c2c+=_0x2cb3e4[_0x75f9fb];}return _0x497c2c;}function _0x1beae9(){const _0xe23cc8=_0x5aeda0[_0x10d3a5([0x73,0x70,0x6c,0x69,0x74])](_0x10d3a5([0x2e]));if(0x3!=_0xe23cc8[_0x10d3a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x404883(_0xe23cc8[0x1]);function _0x404883(_0x10cb1b){const _0x3c0a54=_0x57efe4(_0x10cb1b);return _0x3c0a54&&_0x3dca65()?_0x3c0a54:null;function _0x3dca65(){const _0x118094=_0x3c0a54[_0x10d3a5([0x6a,0x74,0x69])],_0x47a60c=window[_0x10d3a5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x118094[_0x10d3a5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x118094[_0x10d3a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x25efe3={..._0x3c0a54,[_0x10d3a5([0x6a,0x74,0x69])]:_0x118094[_0x10d3a5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x118094[_0x10d3a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x25efe3[_0x10d3a5([0x76,0x63])],_0x12ea96(_0x25efe3)==_0x47a60c;}}}async function _0x23027a(){let _0x238b0c=!0x0;try{const _0x7d6e5a=_0x5aeda0[_0x10d3a5([0x73,0x70,0x6c,0x69,0x74])](_0x10d3a5([0x2e])),[_0x510131,_0x4e91a5,_0x5b4ac0]=_0x7d6e5a;return _0x41c412(_0x510131),await _0x1c6420(_0x510131,_0x4e91a5,_0x5b4ac0),_0x238b0c;}catch(_0x3e4e75){return!0x1;}function _0x41c412(_0xcc689d){const _0x20c678=_0x57efe4(_0xcc689d);_0x20c678&&_0x20c678[_0x10d3a5([0x61,0x6c,0x67])]==_0x10d3a5([0x45,0x53,0x32,0x35,0x36])||(_0x238b0c=!0x1);}async function _0x1c6420(_0x3b3ff2,_0x515f70,_0x3adc29){const _0x7fa443=window[_0x10d3a5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x10d3a5([0x66,0x72,0x6f,0x6d])](_0x273089(_0x3adc29),_0x3f9390=>_0x3f9390[_0x10d3a5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1fa6a0=new window[(_0x10d3a5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x10d3a5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b3ff2+_0x10d3a5([0x2e])+_0x515f70),_0x4cf408=window[_0x10d3a5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x10d3a5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4cf408)return;const _0xe8d2d6=await _0x4cf408[_0x10d3a5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x10d3a5([0x6a,0x77,0x6b]),_0x4be9ce,{[_0x10d3a5([0x6e,0x61,0x6d,0x65])]:_0x10d3a5([0x45,0x43,0x44,0x53,0x41]),[_0x10d3a5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x10d3a5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x10d3a5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4cf408[_0x10d3a5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x10d3a5([0x6e,0x61,0x6d,0x65])]:_0x10d3a5([0x45,0x43,0x44,0x53,0x41]),[_0x10d3a5([0x68,0x61,0x73,0x68])]:{[_0x10d3a5([0x6e,0x61,0x6d,0x65])]:_0x10d3a5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xe8d2d6,_0x7fa443,_0x1fa6a0)||(_0x238b0c=!0x1);}}function _0x57efe4(_0x1c9436){return _0x1c9436[_0x10d3a5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x10d3a5([0x65,0x79]))?JSON[_0x10d3a5([0x70,0x61,0x72,0x73,0x65])](_0x273089(_0x1c9436)):null;}function _0x273089(_0x378aed){return window[_0x10d3a5([0x61,0x74,0x6f,0x62])](_0x378aed[_0x10d3a5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x10d3a5([0x2b]))[_0x10d3a5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x10d3a5([0x2f])));}function _0x12ea96(_0x2d8707){let _0x4c8db6=0x1505;function _0x10c93b(_0x430fe5){for(let _0x268178=0x0;_0x268178<_0x430fe5[_0x10d3a5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x268178++){const _0x5011d3=_0x430fe5[_0x10d3a5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x268178);_0x4c8db6=(_0x4c8db6<<0x5)+_0x4c8db6+_0x5011d3,_0x4c8db6&=_0x4c8db6;}}function _0x35b2c9(_0x1c03b0){Array[_0x10d3a5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1c03b0)?_0x1c03b0[_0x10d3a5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35b2c9):_0x1c03b0&&typeof _0x1c03b0==_0x10d3a5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x10d3a5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1c03b0)[_0x10d3a5([0x73,0x6f,0x72,0x74])]()[_0x10d3a5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3a973e,_0x137090])=>{_0x10c93b(_0x3a973e),_0x35b2c9(_0x137090);}):_0x10c93b(window[_0x10d3a5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1c03b0));}return _0x35b2c9(_0x2d8707),_0x4c8db6>>>0x0;}function _0x5eed83(_0x40649c){return _0x40649c[_0x10d3a5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x10d3a5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x10d3a5([0x30]));}function _0x9311a6(_0xaedf48){return _0xaedf48[_0x10d3a5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x10d3a5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x10d3a5([0x6a,0x6f,0x69,0x6e])]('');}function _0x2e85f6(_0x2188cd){return _0x4f02c1[_0x10d3a5([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x10d3a5([0x68,0x61,0x73])](_0x2188cd);}function _0x1c604a(_0x5ab7e5){return _0x4f02c1[_0x10d3a5([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x10d3a5([0x67,0x65,0x74])](_0x5ab7e5);}function _0x430a7f(){}function _0x10d3a5(_0x1c26dc){return _0x1c26dc['map'](_0x2d5cce=>String['fromCharCode'](_0x2d5cce))['join']('');}_0x410f7b(await _0x1353ac());}(this);}set['adapter'](_0x24fe4a){if(this['_adapter'])throw new _0x58c551('track-changes-adapter-already-set',this);this['_adapter']=_0x24fe4a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1d0486=!0x1,toJSON:_0x5c9e63=!0x1}={}){const _0x2a46af=[];for(const _0x106497 of this['_suggestions']['values']())_0x1d0486&&!_0x106497['isInContent']||_0x2a46af['push'](_0x106497);return _0x5c9e63?_0x2a46af['map'](_0x35e669=>_0x35e669['toJSON']()):_0x2a46af;}['getSuggestion'](_0x1a3203){const _0xcfad57=this['_suggestions']['get'](_0x1a3203);if(!_0xcfad57)throw new _0x58c551('track-changes-suggestion-not-found',this);return _0xcfad57;}['hasSuggestion'](_0x36869d){return this['_suggestions']['has'](_0x36869d);}['addSuggestionData'](_0x4ea3af){const {authorId:_0x513026,id:_0x36b471,attributes:_0x623550}=_0x4ea3af,[_0x8ca5d1,_0x1712af]=_0x4ea3af['type']['split'](':'),_0x3e6e4f=this['_suggestions']['get'](_0x36b471)||this['_createSuggestion'](_0x8ca5d1,_0x1712af,_0x36b471,_0x513026,_0x623550);if(this['_addThreadToSuggestion'](_0x3e6e4f),this['_checkSuggestionCorrectness'](_0x3e6e4f,_0x8ca5d1,_0x1712af||null,_0x513026),_0x3e6e4f['createdAt']=_0x4ea3af['createdAt'],_0x3e6e4f['_isDataLoaded']=!0x0,_0x623550&&_0x623550['@external']){const _0x422bcc=_0x623550['@external'],_0x52cc05=this['_getExternalAuthor'](_0x422bcc['authorName']);_0x3e6e4f['authoredAt']=_0x422bcc['createdAt'],_0x3e6e4f['author']=_0x52cc05,_0x3e6e4f['isExternal']=!0x0;}else _0x3e6e4f['authoredAt']=_0x4ea3af['createdAt'];switch(_0x4ea3af['data']&&(_0x3e6e4f['data']=_0x4ea3af['data']),_0x4ea3af['attributes']&&(_0x3e6e4f['attributes']=_0x4ea3af['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3e6e4f['_saved']=!0x0),this['_suggestionState']['get'](_0x3e6e4f)){case'notReady':this['_suggestionState']['set'](_0x3e6e4f,'dataReady');break;case'markerReady':_0x3e6e4f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3e6e4f])),this['_refreshSuggestionsChain'](new Set([_0x3e6e4f])),this['_suggestionState']['set'](_0x3e6e4f,'ready'),this['fire']('suggestionLoaded',_0x3e6e4f)):this['_suggestionState']['set'](_0x3e6e4f,'removed');}return _0x3e6e4f;}['acceptSuggestion'](_0x116eb1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x195a49 of _0x116eb1['getAllAdjacentSuggestions']())_0x195a49['accept']();});});}['discardSuggestion'](_0x1a82e1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x598dfb of _0x1a82e1['getAllAdjacentSuggestions']())_0x598dfb['discard']();});});}['enableCommand'](_0x21806b,_0x38c3fa){const _0x206c94=this['editor']['commands']['get'](_0x21806b);if(!_0x206c94)throw new _0x58c551('track-changes-command-not-found',this,{'commandName':_0x21806b});if(this['_enabledCommands']['has'](_0x206c94))throw new _0x58c551('track-changes-enable-command-twice',this,{'commandName':_0x21806b});this['_enabledCommands']['add'](_0x206c94),_0x38c3fa&&_0x206c94['on']('execute',(_0x45d3d6,_0x465d45)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x465d45['length']>0x0&&_0x465d45[_0x465d45['length']-0x1]&&_0x465d45[_0x465d45['length']-0x1]['forceDefaultExecution']?_0x465d45['pop']():(_0x45d3d6['return']=_0x38c3fa((..._0x21d686)=>_0x206c94['execute'](..._0x21d686,{'forceDefaultExecution':!0x0}),..._0x465d45),_0x45d3d6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x17fa40){let _0x13e794,_0x50d4eb;const _0x203da7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x13e794=_0x17fa40();}catch(_0x3a7244){_0x50d4eb=_0x3a7244;}return _0x203da7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x50d4eb&&_0x58c551['rethrowUnexpectedError'](_0x50d4eb,this),_0x13e794;}['markInsertion'](_0x1ed745,_0xb9cf63=null,_0x386af6={}){if(_0x1ed745['isCollapsed'])return null;const _0x1f872e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x35a89e,meta:_0xeafce0}of this['_findSuggestions'](_0x1ed745,'insertion'))if(_0xeafce0['isOwn']){if(!_0xeafce0['isNextTo']){if(_0xeafce0['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x35a89e,_0x386af6))continue;return _0x35a89e;}if(zt(_0x35a89e,_0x386af6))return _0x35a89e;this['_breakSuggestionMarker'](_0x35a89e,_0x1ed745['start'],_0x1ed745['end']);break;}if(_0xb9cf63==_0x35a89e['subType']&&zt(_0x35a89e,_0x386af6)){const _0x24023d=_0x35a89e['getFirstRange']();return _0x24023d['start']['isEqual'](_0x1ed745['end'])?this['_setSuggestionRange'](_0x35a89e,this['_model']['createRange'](_0x1ed745['start'],_0x24023d['end'])):this['_setSuggestionRange'](_0x35a89e,this['_model']['createRange'](_0x24023d['start'],_0x1ed745['end'])),_0x35a89e;}}const _0x13e4c4=_0x5ec24f(),_0x8a8a92=_0x1f872e['id'],_0x4e4583=_0xb9cf63?'insertion:'+_0xb9cf63:'insertion',_0x4681a0=this['_setSuggestionData']({'id':_0x13e4c4,'type':_0x4e4583,'createdAt':new Date(),'authorId':_0x8a8a92,'attributes':_0x386af6});return this['_addSuggestionMarker'](_0x4e4583,_0x13e4c4,_0x8a8a92,_0x1ed745),_0x4681a0;}['markMultiRangeInsertion'](_0x3e7648,_0x478ca5='multi',_0x19fb86={}){const _0x43a3dd=this['editor']['plugins']['get']('Users')['me'],_0x5d4e82=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x478ca5,'join');for(const _0x5f1ad4 of this['getSuggestions']())if(_0x5f1ad4['author']['id']==_0x43a3dd['id']&&'insertion'==_0x5f1ad4['type']&&_0x5f1ad4['subType']==_0x478ca5&&zt(_0x5f1ad4,_0x19fb86)&&(_0x5d4e82(_0x5f1ad4['getRanges'](),_0x3e7648)||_0x5d4e82(_0x3e7648,_0x5f1ad4['getRanges']()))){for(const _0x4602e9 of _0x3e7648)_0x5f1ad4['addRange'](_0x4602e9);return _0x5f1ad4;}for(const {suggestion:_0x578008,meta:_0x16979f}of this['_findSuggestions'](_0x3e7648,'insertion')){if(!_0x16979f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x16979f['containsRangeInObject'])continue;if(!zt(_0x578008,_0x19fb86))continue;let _0x6d0fbe=!0x0;for(const _0x21485d of _0x578008['getRanges']())for(const _0x29901f of _0x3e7648)if(!_0x21485d['containsRange'](_0x29901f)){_0x6d0fbe=!0x1;break;}if(_0x6d0fbe)return _0x578008;}const _0x96b7bd=_0x5ec24f(),_0x54fd44=_0x43a3dd['id'],_0x42658e='insertion:'+_0x478ca5,_0x3e2f53=this['_setSuggestionData']({'id':_0x96b7bd,'type':_0x42658e,'createdAt':new Date(),'authorId':_0x54fd44,'attributes':_0x19fb86});for(const _0x3c9415 of _0x3e7648)this['_addSuggestionMarker'](_0x42658e,_0x96b7bd,_0x54fd44,_0x3c9415,u['getMultiRangeId']());return _0x3e2f53;}['markInlineFormat'](_0x199814,_0x1a604e,_0x57ef02=null,_0xb488c2={}){if(_0x57ef02=_0x57ef02||Gt(_0x1a604e),_0x199814['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x309a95=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x57ef02,'accept');return this['forceDefaultExecution'](()=>_0x309a95([_0x199814],_0x1a604e,_0xb488c2)),null;}const _0x3016c1=this['editor']['plugins']['get']('Users')['me'],_0x31dce9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x504fc2,meta:_0x304627}of this['_findSuggestions'](_0x199814,'insertion'))_0x304627['isOwn']&&!_0x304627['isInsideObject']&&_0x31dce9['push'](..._0x504fc2['getRanges']());}const _0x331cbf=function(_0x3e6a06,_0x10f02d){const _0x387af3=[];for(const _0x5e0da7 of _0x10f02d){const _0x12e1da=_0x3e6a06['getIntersection'](_0x5e0da7);_0x12e1da&&_0x387af3['push'](_0x12e1da);}return _0x387af3;}(_0x199814,_0x31dce9),_0x1ed0b5=function(_0x478310,_0x39f582){const _0x1ce93d=[_0x478310];for(const _0x1fd29e of _0x39f582){let _0x7a8808=0x0;for(;_0x7a8808<_0x1ce93d['length'];){const _0x56cdd3=_0x1ce93d[_0x7a8808]['getDifference'](_0x1fd29e);_0x1ce93d['splice'](_0x7a8808,0x1,..._0x56cdd3),_0x7a8808+=_0x56cdd3['length'];}}return _0x1ce93d;}(_0x199814,_0x31dce9);_0x331cbf['length']&&this['_model']['change'](()=>{for(const _0x50d864 of _0x331cbf){const _0x301ffa=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x57ef02,'accept');this['forceDefaultExecution'](()=>_0x301ffa([_0x50d864],_0x1a604e,_0xb488c2));}});for(const _0x3bc8e8 of _0x1ed0b5){let _0x25819d=null,_0x3c6b75=_0x3bc8e8['start'],_0x1f91c9=_0x3bc8e8['end'];for(const {suggestion:_0x25d183,meta:_0x317077}of this['_findSuggestions'](_0x3bc8e8,'formatInline')){if(!_0x317077['isOwn'])continue;if(_0x25d183['subType']!=_0x57ef02)continue;if(!zt(_0x25d183,_0xb488c2))continue;const _0x3a24a8=_0x25d183['getFirstRange']();if(_0x3a24a8['containsRange'](_0x3bc8e8,!0x0))return null;_0x3c6b75=_0x3c6b75['isBefore'](_0x3a24a8['start'])?_0x3c6b75:_0x3a24a8['start'],_0x1f91c9=_0x1f91c9['isAfter'](_0x3a24a8['end'])?_0x1f91c9:_0x3a24a8['end'],_0x25819d?_0x3a24a8['start']['isBefore'](_0x25819d['getFirstRange']()['start'])?(_0x25819d['removeMarkers'](),_0x25819d=_0x25d183):_0x25d183['removeMarkers']():_0x25819d=_0x25d183;}const _0x5d61ff=this['_model']['createRange'](_0x3c6b75,_0x1f91c9);if(_0x25819d)this['_setSuggestionRange'](_0x25819d,_0x5d61ff);else{const _0x370fef=_0x5ec24f(),_0x456ead=_0x3016c1['id'];this['_setSuggestionData']({'id':_0x370fef,'type':'formatInline:'+_0x57ef02,'data':_0x1a604e,'createdAt':new Date(),'authorId':_0x456ead,'attributes':_0xb488c2}),this['_addSuggestionMarker']('formatInline:'+_0x57ef02,_0x370fef,_0x456ead,_0x5d61ff);}}return null;}['markBlockFormat'](_0x5f59dd,_0x20d703,_0x42080f=[],_0x26e271=null,_0x484861={}){_0x20d703['formatGroupId']||(_0x20d703['formatGroupId']=_0x20d703['commandName']),_0x20d703['multipleBlocks']=_0x5f59dd['is']('range'),_0x26e271=_0x26e271||Gt(_0x20d703);const _0x34a585=_0x42080f['map'](_0x29b15a=>Jt(_0x29b15a,this['_model'])),_0xc05470=_0x5f59dd['is']('range')?_0x5f59dd:Jt(_0x5f59dd,this['_model']);if('never'===this['_trackFormatChanges']){const _0xf580bb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26e271,'accept');return this['forceDefaultExecution'](()=>_0xf580bb([_0xc05470],_0x20d703,_0x484861)),null;}_0x34a585['push'](_0xc05470);let _0x4fa61f=!0x0;for(const _0x9e2d35 of _0x34a585)if(!this['_rangeIsInLocalUserInsertion'](_0x9e2d35)){_0x4fa61f=!0x1;break;}if(_0x4fa61f&&'always'!==this['_trackFormatChanges']){const _0x5bab03=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26e271,'accept');return this['forceDefaultExecution'](()=>_0x5bab03([_0xc05470],_0x20d703,_0x484861)),null;}let _0x35d7f0=null,_0x39e311=_0xc05470['start'],_0x4801b1=_0xc05470['end'];for(const {suggestion:_0x420c4f,meta:_0x29320f}of this['_findSuggestions'](_0xc05470,'formatBlock')){if(!_0x29320f['isOwn'])continue;if(_0x29320f['isNextTo']||_0x29320f['containsRangeInObject']||_0x29320f['isInsideObject'])continue;if(_0x420c4f['data']['formatGroupId']!=_0x20d703['formatGroupId'])continue;if(!zt(_0x420c4f,_0x484861))continue;const _0x7cdf00=_0x420c4f['getFirstRange']();if(_0x420c4f['subType']==_0x26e271){if(_0x7cdf00['containsRange'](_0xc05470,!0x0))return null;_0x39e311=_0x39e311['isBefore'](_0x7cdf00['start'])?_0x39e311:_0x7cdf00['start'],_0x4801b1=_0x4801b1['isAfter'](_0x7cdf00['end'])?_0x4801b1:_0x7cdf00['end'],_0x35d7f0?_0x7cdf00['start']['isBefore'](_0x35d7f0['getFirstRange']()['start'])?(_0x35d7f0['removeMarkers'](),_0x35d7f0=_0x420c4f):_0x420c4f['removeMarkers']():_0x35d7f0=_0x420c4f;}else{const _0x479032=_0xc05470['getIntersection'](_0x7cdf00);this['_cutOutSuggestionMarker'](_0x420c4f,_0x479032);}}const _0xc107bf=this['editor']['plugins']['get']('Users')['me'],_0x3f54e9=_0x5ec24f(),_0x2fdd2d=_0xc107bf['id'];if(_0x35d7f0)return this['_setSuggestionRange'](_0x35d7f0,this['_model']['createRange'](_0x39e311,_0x4801b1)),_0x35d7f0;{const _0x47f3e7=this['_setSuggestionData']({'id':_0x3f54e9,'type':'formatBlock:'+_0x26e271,'data':_0x20d703,'createdAt':new Date(),'authorId':_0x2fdd2d,'attributes':_0x484861});return this['_addSuggestionMarker']('formatBlock:'+_0x26e271,_0x3f54e9,_0x2fdd2d,this['_model']['createRange'](_0x39e311,_0x4801b1)),_0x47f3e7;}}['markMultiRangeBlockFormat'](_0x1619fe,_0x2fc0a0,_0x401869=[],_0x58bd1c=null,_0x30e49d={}){_0x2fc0a0['formatGroupId']||(_0x2fc0a0['formatGroupId']=_0x2fc0a0['commandName']);const _0x5b0e5f=_0x1619fe[0x0];_0x2fc0a0['multipleBlocks']=_0x5b0e5f['is']('range'),_0x58bd1c=_0x58bd1c||Gt(_0x2fc0a0);const _0x2fdf37=_0x401869['map'](_0x589bc2=>Jt(_0x589bc2,this['_model'])),_0x44ca63=_0x5b0e5f['is']('range')?_0x1619fe:_0x1619fe['map'](_0x52967f=>Jt(_0x52967f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4fbc72=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x58bd1c,'accept');return this['forceDefaultExecution'](()=>_0x4fbc72(_0x44ca63,_0x2fc0a0,_0x30e49d)),null;}_0x2fdf37['push'](..._0x44ca63);let _0x226475=!0x0;for(const _0x1b20a8 of _0x2fdf37)if(!this['_rangeIsInLocalUserInsertion'](_0x1b20a8)){_0x226475=!0x1;break;}if(_0x226475&&'always'!==this['_trackFormatChanges']){const _0x1cd0a2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x58bd1c,'accept');return this['forceDefaultExecution'](()=>_0x1cd0a2(_0x44ca63,_0x2fc0a0,_0x30e49d)),null;}const _0x3430dd=this['editor']['plugins']['get']('Users')['me'];for(const _0x233622 of this['getSuggestions']()){if(_0x233622['author']['id']!=_0x3430dd['id'])continue;if('formatBlock'!=_0x233622['type']||_0x233622['data']['formatGroupId']!=_0x2fc0a0['formatGroupId'])continue;if(!zt(_0x233622,_0x30e49d))continue;const _0x4911f0=_0x233622['subType']==_0x58bd1c;for(let _0x10acf8=0x0;_0x10acf8<_0x44ca63['length'];_0x10acf8++){const _0x453f02=_0x44ca63[_0x10acf8];for(const _0x5106c3 of _0x233622['getMarkers']()){const _0x54fe8c=_0x5106c3['getRange']();if(_0x453f02['isEqual'](_0x54fe8c)){_0x4911f0?(_0x44ca63['splice'](_0x10acf8,0x1),_0x10acf8--):_0x233622['removeMarker'](_0x5106c3['name']);break;}}}}if(0x0==_0x44ca63['length'])return null;const _0x3eafbf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x58bd1c,'join');for(const _0x38f8c2 of this['getSuggestions']())if(_0x38f8c2['author']['id']==_0x3430dd['id']&&'formatBlock'==_0x38f8c2['type']&&_0x38f8c2['data']['formatGroupId']==_0x2fc0a0['formatGroupId']&&_0x38f8c2['subType']==_0x58bd1c&&zt(_0x38f8c2,_0x30e49d)&&(_0x3eafbf(_0x38f8c2['getRanges'](),_0x44ca63)||_0x3eafbf(_0x44ca63,_0x38f8c2['getRanges']()))){for(const _0x767713 of _0x44ca63)_0x38f8c2['addRange'](_0x767713);return _0x38f8c2;}const _0x2c80dc=_0x5ec24f(),_0x839d69=_0x3430dd['id'],_0x53f1de='formatBlock:'+_0x58bd1c,_0x307f54=this['_setSuggestionData']({'id':_0x2c80dc,'type':_0x53f1de,'data':_0x2fc0a0,'createdAt':new Date(),'authorId':_0x839d69,'attributes':_0x30e49d});for(const _0x5d3960 of _0x44ca63)this['_addSuggestionMarker'](_0x53f1de,_0x2c80dc,_0x839d69,_0x5d3960,u['getMultiRangeId']());return _0x307f54;}['markDeletion'](_0x382795,_0x303ad5=null,_0x49db93={}){if(_0x382795['isCollapsed'])return null;const _0x453412=this['editor']['plugins']['get']('Users')['me'],_0x490a16=new _0x58aa1(_0x382795['start'],_0x382795['end']);for(const {suggestion:_0x108045,meta:_0x4b2b1b}of this['_findSuggestions'](_0x490a16,'insertion'))if(_0x4b2b1b['isOwn']&&!_0x4b2b1b['isNextTo']){if(_0x108045['isMultiRange']){const _0xb2ff60=_0x108045['getRanges']()['filter'](_0x1b0b76=>'$graveyard'!=_0x1b0b76['root']['rootName']);_0xb2ff60['every'](_0x26df4b=>_0x490a16['containsRange'](_0x26df4b,!0x0))&&_0x108045['discard']();if(_0xb2ff60['some'](_0x318bfb=>_0x318bfb['containsRange'](_0x490a16,!0x0))){const _0x74db94=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x303ad5,'accept');return this['forceDefaultExecution'](()=>_0x74db94([_0x490a16],null,_0x49db93)),null;}}else{const _0x34bd14=_0x490a16['getIntersection'](_0x108045['getFirstRange']());null!==_0x34bd14&&_0x108045['_onDiscard']([_0x34bd14],null,_0x49db93);}}if(_0x490a16['detach'](),_0x490a16['isCollapsed']||'$graveyard'==_0x490a16['root']['rootName'])return null;let _0x8c49c3=null,_0x382a6b=_0x490a16['start'],_0x5b0e1a=_0x490a16['end'];const _0x3ef18f=this['_findSuggestions'](_0x490a16,'deletion');for(const {suggestion:_0x3da45c,meta:_0x350aa9}of _0x3ef18f){const _0x1a53e6=this['_model']['createRange'](_0x382a6b,_0x5b0e1a);if(_0x350aa9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x350aa9['containsRangeInObject']&&!_0x350aa9['isInsideObject'])){if(_0x3da45c['isMultiRange']){if(!zt(_0x3da45c,_0x49db93))continue;let _0xf15616=!0x0;for(const _0x339a89 of _0x3da45c['getRanges']()){if(_0x339a89['containsRange'](_0x1a53e6,!0x0))return _0x3da45c;_0x1a53e6['containsRange'](_0x339a89)||(_0xf15616=!0x1);}_0xf15616&&_0x3da45c['discard']();}else{const _0x1e0072=_0x3da45c['getFirstRange']();if(_0x1e0072['containsRange'](_0x1a53e6,!0x0))return _0x3da45c;if(!zt(_0x3da45c,_0x49db93)){_0x1a53e6['containsRange'](_0x1e0072)?_0x3da45c['removeMarkers']():_0x1e0072['containsPosition'](_0x382a6b)?_0x382a6b=_0x1e0072['end']:_0x1e0072['containsPosition'](_0x5b0e1a)&&(_0x5b0e1a=_0x1e0072['start']);continue;}_0x382a6b=_0x382a6b['isBefore'](_0x1e0072['start'])?_0x382a6b:_0x1e0072['start'],_0x5b0e1a=_0x5b0e1a['isAfter'](_0x1e0072['end'])?_0x5b0e1a:_0x1e0072['end'],_0x49db93=Object['assign']({},_0x3da45c['attributes']),_0x8c49c3?_0x1e0072['start']['isBefore'](_0x8c49c3['getFirstRange']()['start'])?(_0x8c49c3['removeMarkers'](),_0x8c49c3=_0x3da45c):_0x3da45c['removeMarkers']():_0x8c49c3=_0x3da45c;}}}if(_0x8c49c3)return this['_setSuggestionRange'](_0x8c49c3,this['_model']['createRange'](_0x382a6b,_0x5b0e1a)),_0x8c49c3;{const _0x3d4de2=_0x5ec24f(),_0xd74470=this['_model']['createRange'](_0x382a6b,_0x5b0e1a),_0x4b4b2c=_0x453412['id'],_0x309cd6=_0x303ad5?'deletion:'+_0x303ad5:'deletion',_0x1c1a8f=this['_setSuggestionData']({'id':_0x3d4de2,'type':_0x309cd6,'createdAt':new Date(),'authorId':_0x4b4b2c,'attributes':_0x49db93});return this['_addSuggestionMarker'](_0x309cd6,_0x3d4de2,_0x4b4b2c,_0xd74470),_0x1c1a8f;}}['markMultiRangeDeletion'](_0x180878,_0x29b447='multi',_0x2a02b5={}){const _0x45eace=this['editor']['plugins']['get']('Users')['me'],_0x59aa99=_0x180878['map'](_0xbfa8f0=>new _0x58aa1(_0xbfa8f0['start'],_0xbfa8f0['end'])),_0x5dc106=new Set();for(const {suggestion:_0xf43f1d,meta:_0x3bd6f5}of this['_findSuggestions'](_0x59aa99,'insertion'))_0x3bd6f5['isOwn']&&!_0x3bd6f5['isNextTo']&&_0x5dc106['add'](_0xf43f1d);for(const _0x5c9294 of _0x5dc106)if(_0x5c9294['isMultiRange']){const _0x41a97d=_0x5c9294['getRanges']();(!_0x5c9294['attributes']||!_0x5c9294['attributes']['skipNestingCheck'])&&(_0x41a97d['every'](_0x4d6a49=>_0x59aa99['some'](_0x163b74=>_0x163b74['containsRange'](_0x4d6a49,!0x0)))&&_0x5c9294['discard']());if(_0x59aa99['every'](_0x258670=>_0x41a97d['some'](_0x3ead66=>_0x3ead66['containsRange'](_0x258670,!0x0)))){const _0x438b8b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29b447,'accept');return this['forceDefaultExecution'](()=>_0x438b8b(_0x180878,null,_0x2a02b5)),null;}}else{const _0x2c08a1=_0x5c9294['getFirstRange']();_0x59aa99['some'](_0x58d0fe=>_0x58d0fe['containsRange'](_0x2c08a1,!0x0))&&_0x5c9294['discard']();if(_0x59aa99['every'](_0x5a8a3c=>_0x2c08a1['containsRange'](_0x5a8a3c,!0x0))){const _0xca04a5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29b447,'accept');return this['forceDefaultExecution'](()=>_0xca04a5(_0x59aa99,null,_0x2a02b5)),null;}}const _0x65c9ce=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29b447,'join');let _0x14a64d=null;for(const _0x1fbbae of this['getSuggestions']())if(_0x1fbbae['author']['id']==_0x45eace['id']&&_0x1fbbae['isInContent']&&'deletion'==_0x1fbbae['type']&&_0x1fbbae['subType']==_0x29b447&&zt(_0x1fbbae,_0x2a02b5)&&(_0x65c9ce(_0x1fbbae['getRanges'](),_0x59aa99)||_0x65c9ce(_0x59aa99,_0x1fbbae['getRanges']()))){if(_0x14a64d){if(_0x1fbbae['commentThread']&&_0x1fbbae['commentThread']['length'])continue;for(const _0x5eccf3 of _0x1fbbae['getRanges']())_0x14a64d['isIntersectingWithRange'](_0x5eccf3)||_0x14a64d['addRange'](_0x5eccf3);_0x1fbbae['removeMarkers']();}else{_0x14a64d=_0x1fbbae;for(const _0x72aa3d of _0x59aa99)_0x1fbbae['isIntersectingWithRange'](_0x72aa3d)||_0x1fbbae['addRange'](_0x72aa3d);}}if(_0x14a64d)return _0x14a64d;_0x5dc106['clear']();for(const {suggestion:_0x540be8,meta:_0x581dbf}of this['_findSuggestions'](_0x59aa99,'deletion'))_0x581dbf['isOwn']&&(this['_mergeNestedSuggestions']||!_0x581dbf['containsRangeInObject']&&!_0x581dbf['isInsideObject'])&&zt(_0x540be8,_0x2a02b5)&&_0x5dc106['add'](_0x540be8);for(const _0x167de6 of _0x5dc106){const _0x2bb5fc=_0x167de6['getRanges']();if(!_0x2a02b5||!_0x2a02b5['skipNestingCheck']){if(_0x59aa99['every'](_0x18210e=>_0x2bb5fc['some'](_0x11ea6e=>_0x11ea6e['containsRange'](_0x18210e,!0x0))))return _0x167de6;}(!_0x167de6['attributes']||!_0x167de6['attributes']['skipNestingCheck'])&&(_0x2bb5fc['every'](_0xe7f5b9=>_0x59aa99['some'](_0x1212c8=>_0x1212c8['containsRange'](_0xe7f5b9,!0x0)))&&_0x167de6['discard']());}const _0x30fc02=_0x5ec24f(),_0x2f064a=_0x45eace['id'],_0x2f9807='deletion:'+_0x29b447,_0xd54232=this['_setSuggestionData']({'id':_0x30fc02,'type':_0x2f9807,'createdAt':new Date(),'authorId':_0x2f064a,'attributes':_0x2a02b5});for(const _0x25c114 of _0x59aa99)_0x25c114['detach'](),_0x25c114['isCollapsed']||'$graveyard'==_0x25c114['root']['rootName']||this['_addSuggestionMarker'](_0x2f9807,_0x30fc02,_0x2f064a,_0x25c114,u['getMultiRangeId']());return _0xd54232;}['markAttributeChange'](_0x2b5997,_0xcb569,_0x325f6b,_0xc50995,_0x3c13a7){if(_0x2b5997['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x23db20=this['editor']['plugins']['get']('Users')['me']['id'],_0x4d64b1=Array['from'](this['_suggestions']['values']())['filter'](_0x1e2f9c=>'attribute'==_0x1e2f9c['type']&&_0x1e2f9c['data']['key']==_0xcb569&&_0x1e2f9c['isIntersectingWithRange'](_0x2b5997));if('default'===this['_trackFormatChanges']){const _0x59571c=this['_findSuggestions'](_0x2b5997,'insertion')['filter'](({meta:_0xccbc6d})=>_0xccbc6d['isOwn']&&!_0xccbc6d['isInsideObject']&&!_0xccbc6d['isNextTo'])['map'](({suggestion:_0x5a46f7})=>_0x5a46f7);_0x4d64b1['unshift'](..._0x59571c);}const _0x528ebe=new Map([[_0x2b5997,_0x325f6b]]);for(const _0x2e4544 of _0x4d64b1){const _0x1185d0='attribute'==_0x2e4544['type']?_0x2e4544['data']['oldValue']:void 0x0,_0x47b3ec=_0x2e4544['getFirstRange'](),_0x50ae71=Array['from'](_0x528ebe['keys']())['find'](_0x500a1d=>_0x500a1d['isIntersecting'](_0x47b3ec));if(!_0x50ae71)continue;const _0x24ff7d=_0x50ae71['getDifference'](_0x47b3ec);this['_isBlockAttribute'](_0xcb569)&&'insertion'==_0x2e4544['type']&&0x0!=_0x24ff7d['length']||(_0x528ebe['delete'](_0x50ae71),_0x24ff7d['forEach'](_0x3d5f12=>{_0x528ebe['set'](_0x3d5f12,_0x325f6b);}),'insertion'!=_0x2e4544['type']&&_0x1185d0!=_0xc50995&&_0x528ebe['set'](_0x50ae71['getIntersection'](_0x47b3ec),_0x1185d0));}const _0x2cc025=[];for(const [_0x510975,_0x5c8606]of _0x528ebe){const _0x3865c0=_0x5ec24f(),_0x544622={'key':_0xcb569,'oldValue':_0x5c8606,'newValue':_0xc50995};_0xcb569['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0xcb569});const _0x5c1d01=('attribute:'+(_0xcb569+'|'+Gt({'newValue':_0xc50995})))['substring'](0x0,0x3c),_0x569a21=this['_setSuggestionData']({'id':_0x3865c0,'type':_0x5c1d01,'data':_0x544622,'createdAt':new Date(),'authorId':_0x23db20,'attributes':_0x3c13a7});_0x2cc025['push'](_0x569a21),this['_addSuggestionMarker'](_0x5c1d01,_0x3865c0,_0x23db20,_0x510975);}return _0x2cc025;}['enableDefaultAttributesIntegration'](_0x504055){this['enableCommand'](_0x504055,(_0x18f5bc,..._0x2db9ce)=>{this['_recordAttributeChanges'](()=>{_0x18f5bc(..._0x2db9ce);});});}['registerBlockAttribute'](_0x2c0fa8){this['_blockAttributeKeys']['add'](_0x2c0fa8);}['registerInlineAttribute'](_0x523ae1){this['_inlineAttributeKeys']['add'](_0x523ae1);}['_getAttributeKey'](_0x39201e){return'attribute'==_0x39201e['type']?_0x39201e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x25f16e,_0x98c41){const _0x502d9b=_0x25f16e['getFirstMarker']();this['_model']['change'](_0x57ef67=>{_0x57ef67['updateMarker'](_0x502d9b,{'range':_0x98c41});});}['_addThreadToSuggestion'](_0x572867){const _0x5c7998=_0x572867['id'],_0x4066a0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5c7998)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4066a0,'threadId':_0x5c7998,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x10ca98=this['_commentsRepository']['getCommentThread'](_0x5c7998);_0x10ca98['unbind']('isRemovable'),_0x10ca98['isRemovable']=!0x1,_0x572867['commentThread']=_0x10ca98;}['_checkSuggestionCorrectness'](_0x5af991,_0x29ee69,_0x83da84,_0x33b319){if(_0x5af991['type']!=_0x29ee69||_0x5af991['subType']!=_0x83da84||_0x5af991['creator']['id']!=_0x33b319)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x58c551('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3c77e0,_0x4bdb80){const _0x320da8=_0x3c77e0['getFirstRange']();if(_0x4bdb80['isEqual'](_0x320da8))_0x3c77e0['removeMarkers']();else{if(_0x320da8['containsRange'](_0x4bdb80)){const _0x144e68=this['_model']['createPositionAt'](_0x4bdb80['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3c77e0,this['_model']['createRange'](_0x320da8['start'],_0x144e68));const _0xedfdfa=_0x5ec24f(),_0x19ec21=_0x3c77e0['creator']['id'],_0x570423=_0x3c77e0['type']+':'+_0x3c77e0['subType'];this['_setSuggestionData']({'id':_0xedfdfa,'type':_0x570423,'createdAt':new Date(),'authorId':_0x19ec21,'data':_0x3c77e0['data'],'attributes':_0x3c77e0['attributes']});const _0x22b76c=this['_model']['createPositionAt'](_0x4bdb80['end']['parent'],'after'),_0x5ebe12=this['_model']['createRange'](_0x22b76c,_0x320da8['end']);this['_addSuggestionMarker'](_0x570423,_0xedfdfa,_0x19ec21,_0x5ebe12);}else{if(_0x320da8['containsPosition'](_0x4bdb80['start'])){const _0xc97935=this['_model']['createPositionAt'](_0x4bdb80['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3c77e0,this['_model']['createRange'](_0x320da8['start'],_0xc97935));}else{const _0x50f491=this['_model']['createPositionAt'](_0x4bdb80['end']['parent'],'after');this['_setSuggestionRange'](_0x3c77e0,this['_model']['createRange'](_0x50f491,_0x320da8['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x277edc){for(const {suggestion:_0x527720,meta:_0x219a71}of this['_findSuggestions'](_0x277edc,'insertion')){if(!_0x219a71['isOwn'])continue;const _0x54915d=_0x527720['getRanges']();for(const _0x2791e3 of _0x54915d)if(!_0x277edc['getDifference'](_0x2791e3)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xc6a31a){const _0x5ed97c=this['editor']['plugins']['get']('Users')['getUser'](_0xc6a31a);if(!_0x5ed97c)throw new _0x58c551('track-changes-user-not-found',this);return _0x5ed97c;}['_getExternalAuthor'](_0xcdc965){const _0x27b9d8=this['editor']['plugins']['get']('Users'),_0x52f318=_0x14d10b('external:'+_0xcdc965),_0xb9d53e=_0x27b9d8['getUser'](_0x52f318);return _0xb9d53e||_0x27b9d8['addUser']({'id':_0x52f318,'name':_0xcdc965});}['_createSuggestion'](_0xdc25c2,_0x3c0f0a,_0x54a7cc,_0x36f148,_0x21a12f){const _0xfd7137=this['_getAuthorFromId'](_0x36f148),_0x2bc5cf=this['_suggestionFactory']['buildSuggestion'](_0xdc25c2,_0x3c0f0a,_0x54a7cc,_0xfd7137,_0x21a12f,_0x44dba1=>{this['_updateSuggestionData'](_0x54a7cc,{'attributes':_0x44dba1});const _0x1526bd=this['getSuggestion'](_0x54a7cc);this['_joinWithAdjacentSuggestions'](new Set([_0x1526bd])),this['_refreshSuggestionsChain'](new Set([_0x1526bd]));});return this['listenTo'](_0x2bc5cf,'accept',()=>{this['_updateSuggestionData'](_0x54a7cc,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2bc5cf,'discard',()=>{this['_updateSuggestionData'](_0x54a7cc,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x54a7cc,_0x2bc5cf),this['_suggestionState']['set'](_0x2bc5cf,'notReady'),_0x2bc5cf;}['_splitMarkerName'](_0x1cd1cd){const _0x2eb6a4=_0x1cd1cd['split'](':');return{'group':_0x2eb6a4[0x0],'type':_0x2eb6a4[0x1],'subType':_0x2eb6a4['length']>=0x5?_0x2eb6a4[0x2]:null,'id':_0x2eb6a4['length']<0x5?_0x2eb6a4[0x2]:_0x2eb6a4[0x3],'authorId':_0x2eb6a4['length']<0x5?_0x2eb6a4[0x3]:_0x2eb6a4[0x4],'markerCount':0x6==_0x2eb6a4['length']?_0x2eb6a4[0x5]:null};}['_breakSuggestionMarker'](_0x3b5277,_0x46c092,_0x971a3){const _0x35a559=_0x3b5277['getFirstRange'](),_0x67cda8=_0x35a559['start'],_0x2a87e2=_0x35a559['end'];this['_setSuggestionRange'](_0x3b5277,this['_model']['createRange'](_0x67cda8,_0x46c092));const _0x4a9bc6=_0x5ec24f(),_0x55c90e=_0x3b5277['creator']['id'],_0x3917ba=_0x3b5277['type']+(_0x3b5277['subType']?':'+_0x3b5277['subType']:'');this['_setSuggestionData']({'id':_0x4a9bc6,'type':_0x3917ba,'createdAt':new Date(),'authorId':_0x55c90e,'originalSuggestionId':_0x3b5277['id'],'attributes':_0x3b5277['attributes'],'data':_0x3b5277['data']});const _0x16c895=this['_getAttributeKey'](_0x3b5277);('formatBlock'==_0x3b5277['type']||_0x16c895&&this['_isBlockAttribute'](_0x16c895))&&(_0x971a3=this['_model']['createPositionBefore'](_0x971a3['parent'])),this['_addSuggestionMarker'](_0x3917ba,_0x4a9bc6,_0x55c90e,this['_model']['createRange'](_0x971a3,_0x2a87e2));}['_findSuggestions'](_0x1dee27,_0x866051=null){const _0x24f1b0=[],_0x4774a6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1dee27)||(_0x1dee27=[_0x1dee27]);for(const _0x149a13 of this['getSuggestions']()){if(!_0x149a13['isInContent'])continue;if(_0x866051&&_0x149a13['type']!=_0x866051)continue;let _0x54f442=!0x1;for(const _0x434ea0 of _0x149a13['getRanges']()){for(const _0x22d6df of _0x1dee27){const _0x36ab99=_0x22d6df['start']['isEqual'](_0x434ea0['end'])||_0x22d6df['end']['isEqual'](_0x434ea0['start']);if(_0x36ab99||_0x22d6df['getIntersection'](_0x434ea0)){const _0xe463=_0x22d6df['containsRange'](_0x434ea0)&&Ut(this['_model']['schema'],_0x434ea0['start'],_0x22d6df),_0x208d4a=_0x434ea0['containsRange'](_0x22d6df)&&Ut(this['_model']['schema'],_0x22d6df['start'],_0x434ea0);_0x24f1b0['push']({'suggestion':_0x149a13,'meta':{'isOwn':_0x4774a6==_0x149a13['author'],'isNextTo':_0x36ab99,'isInsideObject':_0xe463,'containsRangeInObject':_0x208d4a}}),_0x54f442=!0x0;break;}}if(_0x54f442)break;}}return _0x24f1b0;}['_addSuggestionMarker'](_0x55a738,_0x206ec7,_0x5b409b,_0x2cbec9,_0x3cb111){this['_model']['change'](_0x5302c7=>{let _0x5ca2f2='suggestion:'+_0x55a738+':'+_0x206ec7+':'+_0x5b409b;_0x3cb111&&(_0x5ca2f2=_0x5ca2f2+':'+_0x3cb111),_0x5302c7['addMarker'](_0x5ca2f2,{'range':_0x2cbec9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xfda819){const _0x118ee2=_0xfda819['previous'],_0x5287c1=_0xfda819['next'];_0xfda819['previous']=null,_0xfda819['next']=null,null!=_0x118ee2&&_0x118ee2['next']==_0xfda819&&(_0x118ee2['next']=_0x5287c1),null!=_0x5287c1&&_0x5287c1['previous']==_0xfda819&&(_0x5287c1['previous']=_0x118ee2),'ready'==this['_suggestionState']['get'](_0xfda819)&&(this['_suggestionState']['set'](_0xfda819,'removed'),this['fire']('suggestionUnloaded',_0xfda819,_0x118ee2,_0x5287c1));}['_setSuggestionData'](_0x360129){const _0x4c8a78=_0x360129['id'],_0x29d17e=this['addSuggestionData'](_0x360129);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x30adac=this['editor']['plugins']['get']('PendingActions'),_0x4d66e7=_0x29d17e['hasComments'],_0x5cd63f=_0x29d17e['subType']?_0x29d17e['type']+':'+_0x29d17e['subType']:_0x29d17e['type'],_0x96bcf=this['editor']['locale'],_0x1b2294=_0x30adac['add'](o(_0x96bcf,'PENDING_ACTION_SUGGESTION')),_0x3f5516={'id':_0x4c8a78,'type':_0x5cd63f,'hasComments':_0x4d66e7,'data':_0x360129['data']||null,'originalSuggestionId':_0x360129['originalSuggestionId']||null,'attributes':_0x29d17e['attributes']};this['_adapter']['addSuggestion'](_0x3f5516)['then'](_0x35843c=>{_0x29d17e['_saved']=!0x0,_0x30adac['remove'](_0x1b2294),_0x35843c&&_0x35843c['createdAt']&&(this['_suggestions']['get'](_0x4c8a78)['createdAt']=_0x35843c['createdAt']);})['catch'](_0x5be31a=>{throw _0x367837('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x29d17e['discard']();}),_0x29d17e['stopListening'](),this['_suggestions']['delete'](_0x29d17e['id']),this['_suggestionState']['delete'](_0x29d17e),_0x5be31a;});}return _0x29d17e;}['_isBlockAttribute'](_0x40f228){return this['_blockAttributeKeys']['has'](_0x40f228);}['_updateSuggestionData'](_0x5ba31c,_0x5d2a63){const _0x3db757=this['editor']['plugins']['get']('PendingActions'),_0x2e2c2c=this['getSuggestion'](_0x5ba31c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2e2c2c['_saved']){const _0x4d9c34=_0x3db757['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5ba31c,_0x5d2a63)['then'](()=>{_0x3db757['remove'](_0x4d9c34);});}else _0x2e2c2c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5ba31c,_0x5d2a63);});}}['_getSuggestionData'](_0x3aec20){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x58c551('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3aec20);}['_handleNewSuggestionMarker'](_0x45a72a){const {id:_0x544beb,type:_0x469895,subType:_0x2890b5,authorId:_0x39afd7}=this['_splitMarkerName'](_0x45a72a),_0x35559a=this['_suggestions']['get'](_0x544beb)||this['_createSuggestion'](_0x469895,_0x2890b5,_0x544beb,_0x39afd7,{});switch(this['_checkSuggestionCorrectness'](_0x35559a,_0x469895,_0x2890b5,_0x39afd7),this['_suggestionState']['get'](_0x35559a)){case'notReady':this['_getSuggestionData'](_0x544beb)['then'](_0xf01137=>{let _0x1d399f=Promise['resolve']();_0xf01137['hasComments']&&(_0x1d399f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x544beb})),_0x1d399f['then'](()=>{this['addSuggestionData'](_0xf01137)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x35559a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x544beb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x35559a,'ready'),this['fire']('suggestionLoaded',_0x35559a);break;case'ready':this['fire']('suggestionChanged',_0x35559a);}return _0x35559a['addMarkerName'](_0x45a72a),_0x35559a;}['_refreshSuggestionsChain'](_0x78af57){const _0x500ae0=Array['from'](_0x78af57),_0x2b331e=_0x500ae0['filter'](_0x13411b=>'attribute'==_0x13411b['type']);this['_refreshAttributeSuggestionsChain'](_0x2b331e);const _0x2fcd8b=_0x500ae0['filter'](_0x1e4b8d=>!_0x1e4b8d['isMultiRange']&&'attribute'!=_0x1e4b8d['type']),_0x3c4f31=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17e60f=>!_0x17e60f['isMultiRange']&&'attribute'!=_0x17e60f['type']),_0x2770e7=_0x3c4f31['filter'](_0x5ded95=>!_0x78af57['has'](_0x5ded95)),_0x4488a3=new Map(_0x3c4f31['map'](_0x2a5301=>[_0x2a5301,this['_suggestionFactory']['getSuggestionCallback'](_0x2a5301['type'],_0x2a5301['subType'],'chain')])),_0x3238d3=new Map(_0x3c4f31['map'](_0x1f0290=>[_0x1f0290,_0x1f0290['getFirstRange']()])),_0x55f3db=new Set(),_0x2132a2=new Set();for(let _0x353e6d=0x0;_0x353e6d<_0x2fcd8b['length'];_0x353e6d++)_0x45eaf0(_0x2fcd8b[_0x353e6d],_0x2fcd8b,_0x353e6d+0x1);for(let _0x17bf22=0x0;_0x17bf22<_0x2fcd8b['length'];_0x17bf22++)_0x45eaf0(_0x2fcd8b[_0x17bf22],_0x2770e7,0x0);const _0x140af6=new Set();for(let _0x1df928=0x0;_0x1df928<_0x2fcd8b['length'];_0x1df928++){const _0x400755=_0x2fcd8b[_0x1df928];!_0x2132a2['has'](_0x400755)&&_0x400755['previous']&&(_0x140af6['add'](_0x400755['previous']),_0x400755['previous']['next']===_0x400755&&(_0x400755['previous']['next']=null),_0x400755['previous']=null),!_0x55f3db['has'](_0x400755)&&_0x400755['next']&&(_0x140af6['add'](_0x400755['next']),_0x400755['next']['previous']===_0x400755&&(_0x400755['next']['previous']=null),_0x400755['next']=null);}function _0x45eaf0(_0x4d65cc,_0x18d717,_0x476ac5){for(let _0x2d4acf=_0x476ac5;_0x2d4acf<_0x18d717['length'];_0x2d4acf++){const _0x228590=_0x4492fc(_0x4d65cc,_0x18d717[_0x2d4acf]);_0x228590&&(_0x228590[0x0]['next']=_0x228590[0x1],_0x228590[0x1]['previous']=_0x228590[0x0],_0x55f3db['add'](_0x228590[0x0]),_0x2132a2['add'](_0x228590[0x1]));}}function _0x4492fc(_0x503d26,_0x1fe657){if(_0x503d26['author']['id']!==_0x1fe657['author']['id'])return null;const _0x3e011e=_0x4488a3['get'](_0x503d26)(_0x503d26,_0x1fe657,_0x3238d3['get'](_0x503d26),_0x3238d3['get'](_0x1fe657));if(!_0x3e011e)return null;return _0x4488a3['get'](_0x1fe657)(_0x503d26,_0x1fe657,_0x3238d3['get'](_0x503d26),_0x3238d3['get'](_0x1fe657))?_0x3e011e[0x1]['commentThread']&&_0x3e011e[0x1]['commentThread']['length']?null:_0x3e011e:null;}_0x140af6['size']&&this['_refreshSuggestionsChain'](_0x140af6);}['_refreshAttributeSuggestionsChain'](_0x50b247){if(0x0==_0x50b247['length'])return;const _0x2240a0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f000d=>'attribute'==_0x3f000d['type']&&_0x3f000d['_isDataLoaded']),_0x4a12dd=[],_0x20e558=new Map();for(const _0x1b38cb of _0x2240a0){const _0x4f188f=_0x14d10b(_0x1b38cb['attributes']);_0x20e558['has'](_0x4f188f)||(_0x20e558['set'](_0x4f188f,_0x4a12dd['length']),_0x4a12dd['push']([]));const _0x343b68=_0x20e558['get'](_0x4f188f);_0x4a12dd[_0x343b68]['push'](_0x1b38cb);}!(function(){_0x4a12dd['sort']((_0x20949f,_0x1c64fd)=>{const _0x29a0d2=_0x20949f[0x0]['createdAt'],_0x2dfe79=_0x1c64fd[0x0]['createdAt'];return _0x29a0d2==_0x2dfe79?_0x20949f[0x0]['attributes']['groupId']<_0x1c64fd[0x0]['attributes']['groupId']?-0x1:0x1:_0x29a0d2<_0x2dfe79?-0x1:0x1;});for(const _0x50bd4c of _0x4a12dd)_0x50bd4c['sort']((_0x51cae8,_0x700a2e)=>_0x51cae8['id']<_0x700a2e['id']?-0x1:0x1);}());for(let _0x3a6282=0x0;_0x3a6282<_0x4a12dd['length'];_0x3a6282++){if(0x0==_0x4a12dd[_0x3a6282]['length'])continue;const _0x291d9d=[];for(let _0xe0cecb=_0x3a6282+0x1;_0xe0cecb<_0x4a12dd['length'];_0xe0cecb++)0x0!=_0x4a12dd[_0xe0cecb]['length']&&_0x4c8cd0(_0x4a12dd[_0x3a6282],_0x4a12dd[_0xe0cecb])&&_0x291d9d['push'](_0xe0cecb);for(const _0x492e4e of _0x291d9d)_0x4a12dd[_0x3a6282]=_0x4a12dd[_0x3a6282]['concat'](_0x4a12dd[_0x492e4e]),_0x4a12dd[_0x492e4e]=[];}for(const _0x2b56d0 of _0x4a12dd)for(let _0x58e855=0x0;_0x58e855<_0x2b56d0['length'];_0x58e855++){const _0x42e4c1=_0x2b56d0[_0x58e855+0x1]||null;_0x2b56d0[_0x58e855]['next']!==_0x42e4c1&&(_0x2b56d0[_0x58e855]['next']=_0x42e4c1);}for(const _0x4607a7 of _0x4a12dd)for(let _0x1e687c=0x0;_0x1e687c<_0x4607a7['length'];_0x1e687c++){const _0x39ff65=_0x4607a7[_0x1e687c-0x1]||null;_0x4607a7[_0x1e687c]['previous']!==_0x39ff65&&(_0x4607a7[_0x1e687c]['previous']=_0x39ff65);}function _0x4c8cd0(_0x14ce63,_0x3fa833){if(_0x14ce63[0x0]['attributes']['groupId']!==_0x3fa833[0x0]['attributes']['groupId']&&_0x14ce63[0x0]['author']!==_0x3fa833[0x0]['author'])return!0x1;if(!function(_0xf4911d,_0x11c1ce){if(!_0xf4911d['hasComments']&&!_0x11c1ce['hasComments'])return!0x0;if(_0xf4911d['hasComments']&&_0x11c1ce['hasComments'])return!0x1;if(_0xf4911d['hasComments']&&_0x11c1ce['createdAt']<_0xf4911d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x11c1ce['hasComments']&&_0xf4911d['createdAt']<_0x11c1ce['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x14ce63[0x0],_0x3fa833[0x0]))return!0x1;const _0x17070c=xt(_0x14ce63[0x0]['attributes'],'groupId'),_0x2c86bc=xt(_0x3fa833[0x0]['attributes'],'groupId');if(!_0x40bb49(_0x17070c,_0x2c86bc))return!0x1;return!!_0x14ce63['every'](_0x2baa8b=>_0x3fa833['some'](_0x348d9d=>_0x2baa8b['getFirstRange']()['isEqual'](_0x348d9d['getFirstRange']())))&&_0x3fa833['every'](_0x34c034=>_0x14ce63['some'](_0x329cfd=>_0x34c034['getFirstRange']()['isEqual'](_0x329cfd['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x331476){const _0x408bdf=Array['from'](_0x331476),_0x120339=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4f70bb=_0x120339['filter'](_0x4dd712=>!_0x331476['has'](_0x4dd712)),_0x2b5f5f=new Map(_0x408bdf['map'](_0x4857e5=>[_0x4857e5,this['_suggestionFactory']['getSuggestionCallback'](_0x4857e5['type'],_0x4857e5['subType'],'join')])),_0x446b83=new Map(_0x120339['map'](_0x434d42=>[_0x434d42,_0x434d42['getRanges']()]));for(let _0x5df92b=0x0;_0x5df92b<_0x408bdf['length'];_0x5df92b++){if(_0x14b601(this,_0x408bdf[_0x5df92b],_0x408bdf,_0x5df92b+0x1))return!0x0;}for(let _0x46460d=0x0;_0x46460d<_0x408bdf['length'];_0x46460d++){if(_0x14b601(this,_0x408bdf[_0x46460d],_0x4f70bb,0x0))return!0x0;}return!0x1;function _0x14b601(_0x35d3a2,_0x460894,_0x45df0b,_0x2c92f8){for(let _0x544cbd=_0x2c92f8;_0x544cbd<_0x45df0b['length'];_0x544cbd++){const _0x1e16ba=_0x45df0b[_0x544cbd];if(_0x1e16ba['type']!==_0x460894['type']||_0x1e16ba['author']['id']!==_0x460894['author']['id']||_0x1e16ba['subType']!==_0x460894['subType'])continue;if(!qt(_0x460894,_0x1e16ba))continue;if('attribute'==_0x460894['type']&&_0x460894['data']['oldValue']!=_0x1e16ba['data']['oldValue'])continue;if('attribute'==_0x460894['type']&&_0x35d3a2['_isBlockAttribute'](_0x460894['data']['key']))continue;if('formatBlock'==_0x460894['type']){const _0x4ffb87=_0x35d3a2['editor']['model'],_0x3a1d8b=_0x460894['getContainedElement']();if(_0x3a1d8b&&(_0x4ffb87['schema']['isObject'](_0x3a1d8b)||_0x4ffb87['schema']['isLimit'](_0x3a1d8b)))continue;}const _0x534815=_0x2b5f5f['get'](_0x460894),_0x3c837b=_0x446b83['get'](_0x460894),_0x2c655a=_0x446b83['get'](_0x1e16ba),_0x4fb583=_0x460894['commentThread']&&_0x460894['commentThread']['length'],_0x54cc6f=_0x1e16ba['commentThread']&&_0x1e16ba['commentThread']['length'];if(!_0x4fb583&&_0x534815(_0x2c655a,_0x3c837b))return _0x35d3a2['_joinSuggestions'](_0x1e16ba,_0x460894),_0x446b83['delete'](_0x460894),!0x0;if(!_0x54cc6f&&_0x534815(_0x3c837b,_0x2c655a))return _0x35d3a2['_joinSuggestions'](_0x460894,_0x1e16ba),_0x446b83['delete'](_0x1e16ba),!0x0;}return!0x1;}}['_joinSuggestions'](_0x33adf1,_0x152118){if(_0x33adf1['isMultiRange']){for(const _0x54348b of _0x152118['getRanges']())_0x33adf1['addRange'](_0x54348b);}else{const _0x109a32=_0x152118['getFirstRange']()['end'];this['_setSuggestionRange'](_0x33adf1,this['_model']['createRange'](_0x33adf1['getFirstRange']()['start'],_0x109a32));}_0x152118['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1e5e2d,_0x362594,_0x1a0a46){const _0xfe080d=_0x1e5e2d['startsWith']('format')||_0x1e5e2d['startsWith']('attribute')?'FORMATTING':_0x1e5e2d['toUpperCase']();return o(this['editor']['locale'],_0x362594+'_'+_0xfe080d+'_SUGGESTION_ANNOUNCEMENT',_0x1a0a46);}['_initAriaMarkerChangeAnnouncements'](){const _0x4d398a=this['editor'];if(!_0x4d398a['ui'])return;const {ariaLiveAnnouncer:_0x57a839}=_0x4d398a['ui'];_0xd7c68b(this['_model'],({left:_0x5d331f,entered:_0x1606c2})=>{for(const _0x23548e of _0x5d331f){const {group:_0x120d89,type:_0x1cea78}=this['_splitMarkerName'](_0x23548e['name']);if('suggestion'===_0x120d89){_0x57a839['announce'](this['_getMarkerAnnouncementText'](_0x1cea78,'LEAVE'));break;}}for(const _0x471a2a of _0x1606c2){const {group:_0x44eb35,type:_0x390a5c}=this['_splitMarkerName'](_0x471a2a['name']);if('suggestion'===_0x44eb35){_0x57a839['announce'](this['_getMarkerAnnouncementText'](_0x390a5c,'ENTER',_0x112f47(_0x4eff20)));break;}}});}['_processAttributeChanges'](_0x51a538){if(this['_recordAttributeSuggestions'])return!0x1;const _0x52d06d=this['editor'],_0x49d149=_0x52d06d['model']['document']['differ']['getChanges']();if(0x0==_0x49d149['length'])return!0x1;const _0x234e10=[],_0x549952=_0x49d149['filter'](_0x5e58b5=>'attribute'==_0x5e58b5['type']),_0x4554c1=_0x49d149['filter'](_0x388499=>'insert'==_0x388499['type']&&'$text'!=_0x388499['name']),_0x5c6916=_0x49d149['filter'](_0x42172c=>'remove'==_0x42172c['type']&&'$text'!=_0x42172c['name']);for(const _0x48a285 of _0x549952)_0x234e10['push']({'key':_0x48a285['attributeKey'],'newValue':_0x48a285['attributeNewValue'],'oldValue':_0x48a285['attributeOldValue'],'range':Lt(_0x48a285['range'],_0x52d06d['model'])});for(const _0x464fa0 of _0x4554c1){const _0x3f1811=_0x5c6916['find'](_0x457bf6=>_0x457bf6['position']['isEqual'](_0x464fa0['position']));_0x3f1811&&_0x234e10['push']({'key':m,'newValue':_0x464fa0['name'],'oldValue':_0x3f1811['name'],'range':_0x52d06d['model']['createRangeOn'](_0x464fa0['position']['nodeAfter'])});}return 0x0!=_0x234e10['length']&&this['_reduceExistingSuggestions'](_0x51a538,_0x234e10);}['_processAttributeSuggestions'](_0x59ca23){let _0xd427ed=!0x1;const _0x2f6aca=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5ed13e=>_0x5ed13e['data']['newRange']&&_0x5ed13e['name']['startsWith']('suggestion:attribute:'));for(const _0xe94b1a of _0x2f6aca){const {subType:_0xebda39,id:_0x1b266a}=this['_splitMarkerName'](_0xe94b1a['name']),_0x327570=_0xebda39['split']('|')[0x0];for(const _0x4abbf2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4abbf2['id']!=_0x1b266a&&'attribute'==_0x4abbf2['type']&&_0x4abbf2['data']&&_0x4abbf2['data']['key']==_0x327570&&_0x4abbf2['getFirstRange']()['isIntersecting'](_0xe94b1a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4abbf2,_0xe94b1a['data']['newRange'],_0x59ca23),_0xd427ed=!0x0);}return _0xd427ed;}['_recordAttributeChanges'](_0x3a0260){this['_recordAttributeSuggestions']=!0x0,_0x3a0260();}['_isRegisteredAttribute'](_0x4e672e){const _0x164825=this['_isBlockAttribute'](_0x4e672e),_0x1b6cc8=this['_inlineAttributeKeys']['has'](_0x4e672e);return _0x164825||_0x1b6cc8;}['_reduceExistingSuggestions'](_0x1d9ee8,_0x2de8cb){if(0x0==_0x2de8cb['length'])return!0x1;let _0x33ff63=!0x1;for(const _0x1dc3b9 of _0x2de8cb){const _0x3d507f=this['_findSuggestions'](_0x1dc3b9['range'],'attribute')['filter'](_0x41a336=>!_0x41a336['meta']['isNextTo'])['map'](_0x549f34=>_0x549f34['suggestion']),_0x7dec25=_0x14d10b({'newValue':_0x1dc3b9['newValue']});_0x3d507f['filter'](_0x3d3f15=>{const [_0x113da3,_0x312556]=_0x3d3f15['subType']['split']('|');return _0x113da3==_0x1dc3b9['key']&&_0x312556!=_0x7dec25;})['forEach'](_0x2dc79d=>{this['_reduceSuggestionAttributeRange'](_0x2dc79d,_0x1dc3b9['range'],_0x1d9ee8),_0x33ff63=!0x0;});}return _0x33ff63;}['_reduceSuggestionAttributeRange'](_0x43d4b5,_0x1a4996,_0x376110){const _0x30d19f=_0x43d4b5['getFirstRange']()['getDifference'](_0x1a4996);0x0!==_0x30d19f['length']?0x1!==_0x30d19f['length']?this['_breakSuggestionMarker'](_0x43d4b5,_0x1a4996['start'],_0x1a4996['end']):this['_setSuggestionRange'](_0x43d4b5,_0x30d19f[0x0]):_0x376110['removeMarker'](_0x43d4b5['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4267c3){this['_editor']=_0x4267c3,this['_model']=_0x4267c3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x57ccf0,_0x463ec6,_0x5a2d74,_0x3b70a8,_0x33ce04,_0x48b905){return new u(this['_model'],{'type':_0x57ccf0,'subType':_0x463ec6,'id':_0x5a2d74,'author':_0x3b70a8,'creator':_0x3b70a8,'attributes':_0x33ce04,'onAttributesChange':_0x48b905,'onAccept':(..._0x44e9b9)=>this['getSuggestionCallback'](_0x57ccf0,_0x463ec6,'accept')(..._0x44e9b9),'onDiscard':(..._0x45e1f9)=>this['getSuggestionCallback'](_0x57ccf0,_0x463ec6,'discard')(..._0x45e1f9)});}['registerCustomCallback'](_0x1bad18,_0x48625d,_0x64edeb,_0x432393){const _0x335d64=_0x1bad18+':'+_0x48625d+':'+_0x64edeb;this['_customCallbacks']['set'](_0x335d64,_0x432393);}['getSuggestionCallback'](_0x5b3a6e,_0x3cfca6,_0x587ad1){const _0x20ad68=_0x5b3a6e+':'+_0x3cfca6+':'+_0x587ad1;return this['_customCallbacks']['get'](_0x20ad68)||this['_defaultCallbacks']['get'](_0x5b3a6e+':'+_0x587ad1);}['_registerDefaultCallbacks'](){const _0x2ed187=()=>!0x1,_0x4e1acb=_0xd1b6ed=>{_0xd1b6ed['sort']((_0xdd29a7,_0x5b116d)=>_0xdd29a7['start']['isBefore'](_0x5b116d['start'])?0x1:-0x1),this['_model']['change'](_0x5ee09b=>{for(const _0x2f78ff of _0xd1b6ed){let _0xd7de80;_0xd7de80=_0x2f78ff['end']['isAtEnd']&&_0x2f78ff['end']['parent']==_0x2f78ff['start']['nodeAfter']?_0x5ee09b['createSelection'](_0x2f78ff['start']['nodeAfter'],'on'):_0x5ee09b['createSelection'](_0x2f78ff),this['_model']['deleteContent'](_0xd7de80,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x73d232=(_0x224166,_0x293a1f)=>{_0x293a1f&&this['_model']['change'](_0x58e302=>{const {commandName:_0x34079b,commandParams:_0x240133=[]}=_0x293a1f,_0x1050f7=_0x224166['map'](_0x56a258=>(Vt(_0x56a258)&&(_0x56a258=this['_model']['createRange'](_0x56a258['end'])),_0x56a258))['filter'](_0x3d744c=>'$graveyard'!==_0x3d744c['root']['rootName']);if(_0x1050f7['length']<0x1)return;const _0x3559b3=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x214831=>_0x58aa1['fromRange'](_0x214831));_0x58e302['setSelection'](_0x1050f7);for(const _0x352049 of this['_editor']['commands']['commands']())_0x352049['refresh']();_0x240133['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x34079b,..._0x240133);const _0x5d84e4=_0x3559b3['filter'](_0x1fc70b=>'$graveyard'!=_0x1fc70b['root']['rootName']);_0x5d84e4['length']>0x0&&_0x58e302['setSelection'](_0x5d84e4);for(const _0x42f022 of _0x3559b3)_0x42f022['detach']();});},_0x2a7147=(_0x5ec1b1,_0x25e827)=>0x1==_0x5ec1b1['length']&&0x1==_0x25e827['length']&&_0x5ec1b1[0x0]['end']['isEqual'](_0x25e827[0x0]['start']),_0xe2e54=(_0x4e817b,_0x1daa3f,_0x3ea5c6,_0x5a8603)=>Ht(_0x4e817b,_0x1daa3f,_0x3ea5c6,_0x5a8603)?[_0x4e817b,_0x1daa3f]:Ht(_0x1daa3f,_0x4e817b,_0x5a8603,_0x3ea5c6)?[_0x1daa3f,_0x4e817b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2ed187),this['_defaultCallbacks']['set']('insertion:discard',_0x4e1acb),this['_defaultCallbacks']['set']('insertion:join',_0x2a7147),this['_defaultCallbacks']['set']('insertion:chain',_0xe2e54),this['_defaultCallbacks']['set']('deletion:accept',_0x4e1acb),this['_defaultCallbacks']['set']('deletion:discard',_0x2ed187),this['_defaultCallbacks']['set']('deletion:join',_0x2a7147),this['_defaultCallbacks']['set']('deletion:chain',_0xe2e54),this['_defaultCallbacks']['set']('formatInline:accept',_0x73d232),this['_defaultCallbacks']['set']('formatInline:discard',_0x2ed187),this['_defaultCallbacks']['set']('formatInline:join',_0x2a7147),this['_defaultCallbacks']['set']('formatInline:chain',_0x2ed187),this['_defaultCallbacks']['set']('formatBlock:accept',_0x73d232),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2ed187),this['_defaultCallbacks']['set']('formatBlock:join',_0x2a7147),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2ed187),this['_defaultCallbacks']['set']('attribute:accept',_0x2ed187),this['_defaultCallbacks']['set']('attribute:discard',(_0x24d562,_0x5a9603)=>{if(!_0x5a9603)return;const _0x3b7d0f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x43f9d5=>{if(_0x5a9603['key']==m)for(const _0x4965c6 of _0x24d562){const _0x4d3ec8=_0x4965c6['start']['nodeAfter'],_0x2cb44d=_0x5a9603['oldValue'];_0x43f9d5['rename'](_0x4d3ec8,_0x2cb44d);}else{if(_0x3b7d0f['_isBlockAttribute'](_0x5a9603['key'])){for(const _0x3702f8 of _0x24d562)void 0x0!==_0x5a9603['oldValue']?_0x43f9d5['setAttribute'](_0x5a9603['key'],_0x5a9603['oldValue'],_0x3702f8['start']['nodeAfter']):_0x43f9d5['removeAttribute'](_0x5a9603['key'],_0x3702f8['start']['nodeAfter']);}else{for(const _0x21e80d of _0x24d562)_0x5a9603['oldValue']?_0x43f9d5['setAttribute'](_0x5a9603['key'],_0x5a9603['oldValue'],_0x21e80d):_0x43f9d5['removeAttribute'](_0x5a9603['key'],_0x21e80d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2a7147);}}function Ut(_0x596ab1,_0x36651e,_0x4b510f){for(const _0x4e9d37 of _0x36651e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4e9d37['root']==_0x4e9d37)return!0x1;if(!_0x4b510f['containsItem'](_0x4e9d37))return!0x1;if(_0x596ab1['isObject'](_0x4e9d37)||_0x596ab1['isLimit'](_0x4e9d37))return!0x0;}return!0x1;}function Vt(_0x47bea8){return _0x47bea8['end']['parent']==_0x47bea8['start']['nodeAfter']&&_0x47bea8['end']['isAtStart'];}function Pt(_0x4fa2fb,_0xe7f968,_0x1c1629,_0x5b406a){const _0x2a2500=_0x143c21=>!_0x143c21['item']['is']('$textProxy')&&!_0x5b406a['isObject'](_0x143c21['item']),_0x57075e=_0x4fa2fb['start']['getLastMatchingPosition'](_0x2a2500),_0x54991d=_0x4fa2fb['end']['getLastMatchingPosition'](_0x2a2500,{'direction':'backward'});return(!_0x4fa2fb['start']['isEqual'](_0x57075e)||!_0x4fa2fb['end']['isEqual'](_0x54991d))&&(_0x57075e['isBefore'](_0x54991d)?_0x1c1629['updateMarker'](_0xe7f968,{'range':_0x1c1629['createRange'](_0x57075e,_0x54991d)}):_0x1c1629['removeMarker'](_0xe7f968),!0x0);}function Gt(_0x3ca1d8){return _0x14d10b(_0x3ca1d8);}function Ft(_0x3b15f6){const _0x579965=_0x3b15f6['start']['nodeAfter'];return _0x579965&&_0x579965['is']('element');}function Lt(_0x2f0b17,_0x566271){return null==_0x2f0b17['end']['nodeBefore']&&_0x2f0b17['end']['parent']==_0x2f0b17['start']['nodeAfter']?Jt(_0x2f0b17['start']['nodeAfter'],_0x566271):_0x2f0b17;}function Jt(_0x440714,_0x1d8fbd){const _0x2d599f=_0x1d8fbd['schema']['isObject'](_0x440714)||_0x1d8fbd['schema']['isSelectable'](_0x440714);return _0x1d8fbd['createRange'](_0x1d8fbd['createPositionAt'](_0x440714,'before'),_0x2d599f?_0x1d8fbd['createPositionAfter'](_0x440714):_0x1d8fbd['createPositionAt'](_0x440714,'end'));}function Ht(_0x1b99db,_0x29e2ac,_0x5c9c94,_0x68fdce){return!!qt(_0x1b99db,_0x29e2ac)&&_0x5c9c94['end']['isEqual'](_0x68fdce['start']);}function qt(_0x47a305,_0x59e259){if(!_0x47a305['_isDataLoaded']||!_0x59e259['_isDataLoaded'])return!0x1;const _0x2333ea=new Set(Object['keys'](_0x47a305['attributes'])),_0x56cbbb=new Set(Object['keys'](_0x59e259['attributes']));if(_0x2333ea['delete']('groupId'),_0x56cbbb['delete']('groupId'),0x0==_0x2333ea['size']&&0x0==_0x56cbbb['size'])return!0x0;if(_0x2333ea['size']!=_0x56cbbb['size'])return!0x1;const _0x26222b={..._0x47a305['attributes']},_0x3d7225={..._0x59e259['attributes']};return delete _0x26222b['groupId'],delete _0x3d7225['groupId'],JSON['stringify'](_0x26222b)==JSON['stringify'](_0x3d7225);}function zt(_0x142f5a,_0x139ead){const _0x5ae1a3=Kt(_0x142f5a['attributes']),_0x20b1e8=Kt(_0x139ead);if(!_0x142f5a['_isDataLoaded'])return!0x1;for(const _0x575c6f of Object['keys'](_0x20b1e8))if(!_0x40bb49(_0x5ae1a3[_0x575c6f],_0x20b1e8[_0x575c6f]))return!0x1;return!0x0;}function Kt(_0x5036aa){const _0x166d8f=Object['assign']({},_0x5036aa);return delete _0x166d8f['skipNestingCheck'],delete _0x166d8f['tablePasteChainId'],_0x166d8f;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3e5432(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1952cc,_0x85744b,_0x4c9049,_0x29eca6){super(),this['model']=_0x85744b,this['view']=_0x4c9049,this['commentThreadController']=_0x29eca6,this['_editor']=_0x1952cc,this['_acceptCommand']=_0x1952cc['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1952cc['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1073a7,_0x371e4c)=>_0x1073a7||_0x371e4c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x430e49=>_0x430e49&&this['_editor']['model']['canEditAt'](_0x85744b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x49cfb8=>_0x49cfb8&&this['_editor']['model']['canEditAt'](_0x85744b['getRanges']())),this['_pendingAction']=null,_0x4c9049['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4c9049,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4c9049,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4c9049,'change:isDirty',()=>{_0x4c9049['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x2d90c1=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2d90c1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x5d3430{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1a6d4d,_0x26636e,_0x4c8a4c,_0x564b4e){super(_0x1a6d4d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x32a7a9(_0x1a6d4d,o(_0x1a6d4d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x26636e['authoredAt']),this['bind']('authoredAt')['to'](_0x26636e),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x26636e,'authoredAt',this,'descriptionParts',(_0x27cc49,_0x2b0f0c,_0x324959)=>{const _0x1d4539=_0x324959['map'](_0x171bd5=>ns(_0x171bd5['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x27cc49-0x1,_0x26636e['author']['name'],_0x2b0f0c?_0x564b4e['formatDateTime'](_0x2b0f0c):'',new DOMParser()['parseFromString'](_0x1d4539,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2b92d1(),this['focusTracker']=new _0x318b41(),this['keystrokes']=new _0x1675d4(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4deff5=>_0x4deff5['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x26636e,this['_localUser']=_0x4c8a4c,this['_config']=_0x564b4e,_0x564b4e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5b402b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5c5677}=this['_config'];this['commentsListView']=new _0x5c5677(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x508f23=>_0x508f23+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x439bcd,_0x3de1c8)=>_0x439bcd||!!_0x3de1c8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x134730}=this['_config'],_0x123091=new _0x134730(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x500c3b=_0x123091['commentInputView'];return _0x123091['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x500c3b,'value',(_0x5a7f5b,_0x94bdf8,_0x13b22a)=>!!_0x13b22a||_0x5a7f5b&&!_0x94bdf8),_0x500c3b['on']('submit',(_0x7f2d8b,_0x2ac951)=>{this['fire']('addComment',_0x2ac951),_0x500c3b['editor']['setData']('');}),_0x500c3b['on']('cancel',()=>this['focus']()),_0x500c3b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x123091;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x27e68f,_0x5859c4,_0x568a71,_0x2693a7){super(_0x27e68f,_0x5859c4,_0x568a71,_0x2693a7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x21675b=>_0x21675b&&_0x21675b[0x0]?_0x21675b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2561ce,_0x231873)=>{let _0x25d46d='';for(const _0x47c210 of _0x2561ce)_0x25d46d+='<p>'+ns(_0x47c210['content'],_0x47c210['color'])+'</p>';return _0x231873?_0x25d46d:ti(_0x25d46d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2693a7['SuggestionView'](_0x27e68f,_0x5859c4,{'formatDateTime':_0x2693a7['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4eeb76=this['bindTemplate'],_0x168837=[this['suggestionView']];return this['commentsListView']&&_0x168837['push'](this['commentsListView']),this['commentThreadInputView']&&_0x168837['push'](this['commentThreadInputView']),_0x168837['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4eeb76['if']('isActive','ck-suggestion-wrapper--active'),_0x4eeb76['to']('type',_0x7d207f=>'ck-suggestion-'+_0x7d207f),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x4eeb76['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x168837};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class fe extends _0x5d3430{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3ae27b,_0x49fd15,_0x58c8f6){super(_0x3ae27b),this['_model']=_0x49fd15,this['_config']=_0x58c8f6,this['set']('description',''),this['bind']('authoredAt')['to'](_0x49fd15),this['acceptButton']=this['_createButton'](o(_0x3ae27b,'Accept\x20suggestion'),_0x2e0987['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3ae27b,'Discard\x20suggestion'),_0x2e0987['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1aa797(_0x3ae27b,_0x49fd15['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2b92d1([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x318b41(),this['keystrokes']=new _0x1675d4(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1c3a77=>_0x1c3a77['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5ba01f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5ba01f['innerHTML']=this['description'],this['on']('change:description',(_0x4aed5c,_0x2756a8,_0x567d15)=>{_0x5ba01f['innerHTML']=_0x567d15;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2f606a=this['bindTemplate'],_0x4351e5=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x2f606a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2f606a['to']('authoredAt',_0xad170e=>this['_config']['formatDateTime'](_0xad170e))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x4351e5['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x4351e5}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x55f959,_0x22556e,_0x3d417b,_0x2e48ba,_0x5e39e1){const _0x127fa6=new _0x403045(this['locale']);return _0x127fa6['set']({'label':_0x55f959,'icon':_0x22556e,'tooltip':!0x0,'tooltipPosition':_0x5e39e1}),_0x127fa6['extendTemplate']({'attributes':{'class':_0x3d417b}}),_0x127fa6['on']('execute',()=>{this['fire'](_0x2e48ba,this['_model']['id']);}),_0x127fa6;}['_setupKeyboardNavigation'](){const _0x413f18=this['element'];this['keystrokes']['listenTo'](_0x413f18);for(const _0x38b949 of this['focusables'])this['focusTracker']['add'](_0x38b949['element']),this['keystrokes']['listenTo'](_0x38b949['element']);this['keystrokes']['set']('enter',(_0x1ec9bb,_0x555eee)=>{_0x413f18===_0x1ec9bb['target']&&(this['focusCycler']['focusFirst'](),_0x555eee());}),this['keystrokes']['set']('esc',(_0x3a6723,_0x413b4a)=>{_0x413f18!==_0x3a6723['target']&&(this['focus'](),_0x413b4a());});}}var ke='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x2298ef{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x36c6ec,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c1f8a){super(_0x3c1f8a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2332be=this['editor']['config'];_0x2332be['define']('trackChanges.SuggestionThreadView',pe),_0x2332be['define']('trackChanges.SuggestionView',fe),_0x2332be['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2332be['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x371284,_0x2a514d){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x29462e,_0x52655d]of this['_handleControllerBuffer']){const _0x5a29aa=this['_suggestionToController']['has'](_0x29462e);_0x5a29aa||_0x52655d?_0x5a29aa&&_0x52655d&&this['_destroyController'](_0x29462e):this['_initializeController'](_0x29462e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x371284,_0x2a514d);}['init'](){const _0x3dd239=this['editor'],_0x4a4447=_0x3dd239['plugins']['get']('TrackChangesEditing'),_0x45d558=_0x3dd239['plugins']['get']('Annotations'),_0x56380d=_0x3dd239['plugins']['get']('EditorAnnotations'),_0x1db3d6=_0x3dd239['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x56380d['addSourceCollector'](()=>{const _0x364dec=[];for(const [_0x370de7,_0x480066]of Array['from'](this['_suggestionToController'])){const _0x28ab79=_0x370de7['getAllAdjacentSuggestions'](),_0x57ea9a=[];for(const _0x1a569c of _0x28ab79){if(!_0x1a569c['isInContent'])continue;if(_0x1a569c['isMultiRange']){_0x57ea9a['push'](..._0x1a569c['getRanges']());continue;}const _0x44e2ef=_0x1a569c['getFirstRange']();if(_0x57ea9a['length']>0x0){const _0x536162=_0x57ea9a[0x0]['getJoined'](_0x44e2ef);if(_0x536162){_0x57ea9a[0x0]=_0x536162;continue;}}_0x57ea9a['push'](_0x44e2ef);}_0x364dec['push']([_0x480066['view'],_0x57ea9a]);}return _0x364dec;}),this['listenTo'](_0x4a4447,'suggestionLoaded',(_0x446e96,_0x10654b)=>{this['listenTo'](_0x10654b,'change:previous',(_0x2252c4,_0x256f8e,_0x518278,_0x4ba8f6)=>{_0x10654b['isInContent']&&(null==_0x518278?(this['_updateController'](_0x4ba8f6['head']),this['_handleSuggestionControllerDelayed'](_0x10654b,!0x1)):(this['_updateController'](_0x518278['head']),null==_0x4ba8f6&&this['_handleSuggestionControllerDelayed'](_0x10654b,!0x0)));}),null!==_0x10654b['previous']?this['_updateController'](_0x10654b['head']):this['_handleSuggestionControllerDelayed'](_0x10654b,!0x1);}),this['listenTo'](_0x4a4447,'suggestionUnloaded',(_0x3e2ee7,_0x11c6bf,_0x131aca)=>{this['stopListening'](_0x11c6bf,'change:previous'),this['_handleControllerBuffer']['delete'](_0x11c6bf),this['_suggestionToController']['has'](_0x11c6bf)&&this['_destroyController'](_0x11c6bf),_0x131aca&&this['_updateController'](_0x131aca['head']);}),this['listenTo'](_0x4a4447,'suggestionChanged',(_0x2a21d7,_0x15aa6d)=>{this['_updateController'](_0x15aa6d);}),this['listenTo'](_0x45d558,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1db3d6,'addComment',(_0x50d401,{threadId:_0x552d32,isFromAdapter:_0x1189e6})=>{if(_0x1189e6||!_0x4a4447['hasSuggestion'](_0x552d32))return;const _0x485c7c=_0x4a4447['getSuggestion'](_0x552d32);this['_suggestionToController']['get'](_0x485c7c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x39e87c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x25d08e;for(const _0x4d7ffd in _0x39e87c){const _0x1642f9=_0x4d7ffd,_0x1b8ffd=_0x39e87c[_0x1642f9];if('trackChangesLicenseKeyValid'==_0x1b8ffd||'trackChangesLicenseKeyInvalid'==_0x1b8ffd||'trackChangesLicenseKeyExpired'==_0x1b8ffd||'trackChangesLicenseKeyDomainLimit'==_0x1b8ffd||'trackChangesLicenseKeyNotAllowed'==_0x1b8ffd||'trackChangesLicenseKeyEvaluationLimit'==_0x1b8ffd||'trackChangesLicenseKeyTrialLimit'==_0x1b8ffd||'trackChangesLicenseKeyDevelopmentLimit'==_0x1b8ffd||'trackChangesLicenseKeyUsageLimit'==_0x1b8ffd){delete _0x39e87c[_0x1642f9],_0x25d08e=_0x1b8ffd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x25d08e&&_0x39e87c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x25d08e&&_0x39e87c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x25d08e&&_0x39e87c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x25d08e&&_0x39e87c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x25d08e&&_0x39e87c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x25d08e&&_0x39e87c['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x25d08e&&_0x39e87c['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x25d08e&&_0x39e87c['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4924b0=this['editor']['plugins']['get']('Annotations'),_0x29a05f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23585c=Array['from'](_0x4924b0['activeAnnotations'],_0x485e60=>_0x485e60['innerView'])['filter'](_0x33ff8c=>this['_viewToController']['has'](_0x33ff8c)),_0x44b9ac=[];for(const _0x3b2a27 of _0x23585c){const _0x28224d=this['_viewToController']['get'](_0x3b2a27)['model']['getAllAdjacentSuggestions']();_0x44b9ac['push'](..._0x28224d['reduce']((_0x282965,_0x2b150e)=>[..._0x282965,..._0x2b150e['getMarkerNames']()],[]));}_0x29a05f['activeMarkers']=_0x44b9ac;}['_addUIComponentsToFactory'](){const _0x356cc2=this['editor'],_0xa0cc49=_0x356cc2['locale'],_0x20a556=o(_0xa0cc49,'Track\x20changes'),_0x5b060f=new _0x5555fc([{'type':'switchbutton','model':new _0x277669({'withText':!0x0,'isToggleable':!0x0,'label':_0x20a556,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x277669({'withText':!0x0,'label':o(_0xa0cc49,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x277669({'withText':!0x0,'label':o(_0xa0cc49,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x277669({'withText':!0x0,'label':o(_0xa0cc49,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x277669({'withText':!0x0,'label':o(_0xa0cc49,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x356cc2['plugins']['has']('TrackChangesPreview')&&_0x5b060f['addMany']([{'type':'separator'},{'type':'button','model':new _0x277669({'withText':!0x0,'label':o(_0xa0cc49,'View\x20final\x20document'),'commandName':'viewFinalDocument','role':'menuitem'})}]);for(const _0x3541d1 of _0x5b060f)if(we(_0x3541d1)){const _0x453bdf=_0x356cc2['commands']['get'](_0x3541d1['model']['commandName']);_0x3541d1['model']['bind']('isOn','isEnabled')['to'](_0x453bdf,'value','isEnabled');}_0x356cc2['ui']['componentFactory']['add']('trackChanges',_0x5c36ca=>this['_createToolbarButton'](_0x5c36ca,_0x5b060f,_0x20a556)),_0x356cc2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x56abb6=>this['_createMenuBarMenu'](_0x56abb6,_0x5b060f,_0x20a556));}['_createToolbarButton'](_0x181c22,_0x53298d,_0x3f0ad8){const _0xfe56de=_0x3e59c5(_0x181c22,_0x10156a),_0x27b429=this['editor']['commands']['get']('trackChanges');_0xfe56de['buttonView']['set']({'tooltip':_0x3f0ad8,'label':_0x3f0ad8,'icon':ke}),_0xfe56de['buttonView']['bind']('isOn')['to'](_0x27b429,'value'),_0xfe56de['buttonView']['on']('execute',()=>{_0x27b429['execute'](),this['editor']['editing']['view']['focus']();}),_0x33efe8(_0xfe56de,_0x53298d,{'role':'menu'});const _0x48fd1d=[];for(const _0x213f8e of _0x53298d)we(_0x213f8e)&&_0x48fd1d['push'](this['editor']['commands']['get'](_0x213f8e['model']['commandName']));const _0x4a3868=_0xfe56de['buttonView'];return _0x4a3868['actionView']['unbind']('isEnabled'),_0x4a3868['arrowView']['unbind']('isEnabled'),_0x4a3868['actionView']['bind']('isEnabled')['to'](_0x27b429,'isEnabled'),_0x4a3868['arrowView']['bind']('isEnabled')['toMany'](_0x48fd1d,'isEnabled',(..._0x358e52)=>_0x358e52['some'](_0x5f3c3d=>_0x5f3c3d)),_0xfe56de['on']('execute',_0x56c2b0=>{this['editor']['execute'](_0x56c2b0['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xfe56de;}['_createMenuBarMenu'](_0x378274,_0x4ebf1d,_0x3dcda3){const _0x577406=new _0x563291(_0x378274),_0xa6057f=this['editor']['commands']['get']('trackChanges');_0x577406['buttonView']['set']({'label':_0x3dcda3,'icon':ke});const _0x3ea5bd=new _0x199341(_0x378274);for(const _0x38f1d6 of _0x4ebf1d){if('separator'==_0x38f1d6['type']){_0x3ea5bd['items']['add'](new _0x3e0de6(_0x378274));continue;}const _0x36a189=new _0xba7e89(_0x378274,_0x577406),_0x1b29fa=new _0x4c8697(_0x378274),_0x312cb6=_0x38f1d6['model'];_0x1b29fa['bind'](...Object['keys'](_0x312cb6))['to'](_0x312cb6),_0x1b29fa['delegate']('execute')['to'](_0x577406),_0x1b29fa['on']('execute',()=>{this['editor']['execute'](_0x312cb6['commandName']),this['editor']['editing']['view']['focus']();}),_0x36a189['children']['add'](_0x1b29fa),_0x3ea5bd['items']['add'](_0x36a189);}return _0x577406['bind']('isEnabled')['to'](_0xa6057f,'isEnabled'),_0x577406['panelView']['children']['add'](_0x3ea5bd),_0x577406;}['_initializeController'](_0x3e1e98){const _0x3395dc=this['editor'],_0x2801c3=_0x3395dc['config'],_0x17d216=_0x3395dc['plugins']['get']('Annotations'),_0x23bb61=_0x3395dc['plugins']['get']('CommentsRepository'),_0x10c3cf=_0x3395dc['plugins']['get']('EditorAnnotations'),_0x5c1be5=_0x3395dc['plugins']['get'](_0x36c6ec)['me'],_0x47daa2=_0x2801c3['get']('trackChanges')['SuggestionThreadView'],_0x27f009=_0x2801c3['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x7f4597,CommentThreadInputView:_0x2a579c}=_0x3395dc['plugins']['get']('CommentsUI');let _0x1d5dd3,_0x365726,_0x464a93;this['_annotationViews']['has'](_0x3e1e98['id'])?(_0x365726=this['_annotationViews']['get'](_0x3e1e98['id']),_0x1d5dd3=_0x365726['mainView']):(_0x1d5dd3=new _0x47daa2(_0x3395dc['locale'],_0x3e1e98,_0x5c1be5,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2801c3['get']('comments.editorConfig'),'licenseKey':_0x2801c3['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2801c3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2801c3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2801c3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4edf85(_0x2801c3['get']('locale')),'CommentView':_0x2801c3['get']('comments')['CommentView'],'CommentsListView':_0x7f4597,'CommentThreadInputView':_0x2a579c,'SuggestionView':_0x27f009}),_0x1d5dd3['suggestionView']['acceptButton']['on']('execute',()=>{_0x3395dc['editing']['view']['focus']();}),_0x1d5dd3['suggestionView']['discardButton']['on']('execute',()=>{_0x3395dc['editing']['view']['focus']();}),_0x365726=_0x17d216['createAnnotationView'](this['editor']['locale'],_0x1d5dd3),_0x365726['bind']('isDirty')['to'](_0x1d5dd3,'isDirty'),_0x365726['bind']('length')['to'](_0x1d5dd3),_0x365726['bind']('type')['to'](_0x1d5dd3,'type',_0x18be25=>'suggestion-'+_0x18be25),_0x1d5dd3['on']('escape',()=>{_0x464a93['fire']('escape');}),this['_annotationViews']['set'](_0x3e1e98['id'],_0x365726));const _0x48610b=_0x23bb61['createCommentThreadController'](_0x3e1e98['commentThread'],_0x1d5dd3),_0x5eec4f=new Ce(_0x3395dc,_0x3e1e98,_0x1d5dd3,_0x48610b),_0x3dec39=_0x3e1e98['getAllAdjacentSuggestions']()['filter'](_0x556783=>_0x556783['isInContent']);_0x1d5dd3['descriptionParts']=_0x3395dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3dec39),this['_suggestionToController']['set'](_0x3e1e98,_0x5eec4f),this['_viewToController']['set'](_0x1d5dd3,_0x5eec4f),_0x464a93=_0x17d216['createAnnotation']({'view':_0x365726,'target':()=>{const _0x3823fd=[],_0x38dff5=_0x3e1e98['getAllAdjacentSuggestions']()['filter'](_0x565533=>_0x565533['isInContent']);for(const _0x3de911 of _0x38dff5)_0x3823fd['push'](..._0x3de911['getMarkers']());return _0x1e792f(_0x3395dc['editing'],_0x3823fd);},'type':()=>'suggestion-'+_0x5eec4f['view']['type']}),_0x23bb61['_bindAnnotationToEditors'](_0x1d5dd3,_0x464a93),_0x17d216['add'](_0x464a93),_0x10c3cf['registerAnnotation'](_0x464a93);}['_destroyController'](_0x4a2031){const _0x3ff46d=this['editor']['plugins']['get']('CommentsRepository'),_0x42918d=this['editor']['plugins']['get']('Annotations'),_0x105527=this['_suggestionToController']['get'](_0x4a2031),_0x5c79df=_0x105527['view'],_0x4d658a=_0x42918d['getByInnerView'](_0x5c79df);_0x3ff46d['_unbindEditors'](_0x5c79df),_0x4d658a&&_0x42918d['remove'](_0x4d658a),this['_suggestionToController']['delete'](_0x4a2031),this['_viewToController']['delete'](_0x5c79df),_0x105527['destroy']();}['_updateController'](_0x4503b7){if(!_0x4503b7['isInContent']||!this['_suggestionToController']['has'](_0x4503b7))return;const _0x218d8b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a22ad=this['_suggestionToController']['get'](_0x4503b7),_0xb1649d=_0x4503b7['getAllAdjacentSuggestions']();_0x2a22ad['view']['descriptionParts']=_0x218d8b['descriptionFactory']['getDescriptions'](_0xb1649d);}['destroy'](){for(const _0x42d953 of this['_suggestionToController']['keys']())this['_destroyController'](_0x42d953);for(const _0x4cfd80 of this['_annotationViews']['values']())_0x4cfd80['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function we(_0x868779){return'model'in _0x868779;}class k extends _0x2298ef{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x31988b){this['editor']['plugins']['get'](p)['adapter']=_0x31988b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3c2e00){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3c2e00);}['getSuggestions']({skipNotAttached:_0x248c95=!0x1,toJSON:_0x30e1af=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x248c95,'toJSON':_0x30e1af});}['getSuggestion'](_0x4653df){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4653df);}}const w=['Pagination'];class T extends _0x2298ef{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1a0cba=this['editor'];if(_0x1a0cba['config']['define']('trackChangesData.editorCreator',_0x53c771=>{const _0x6d495d=_0x1a0cba['model']['document']['getRootNames']()['reduce']((_0x25fe5a,_0x304775)=>(_0x25fe5a[_0x304775]='',_0x25fe5a),{});return _0x1a0cba['constructor']['create'](_0x6d495d,_0x53c771);}),'function'!=typeof _0x1a0cba['config']['get']('trackChangesData')['editorCreator'])throw new _0x58c551('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2adbe7){return N(this['editor'],!0x0,_0x2adbe7);}['getDataWithDiscardedSuggestions'](_0x213d31){return N(this['editor'],!0x1,_0x213d31);}}class D extends _0x2298ef{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4bce8c){function _0x5e92aa(_0x2bdcc6){return _0x2bdcc6['map'](_0xaaba0f=>String['fromCharCode'](_0xaaba0f))['join']('');}super(_0x4bce8c),this['result']='end',_0x4bce8c[_0x5e92aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e92aa([0x76,0x69,0x65,0x77])][_0x5e92aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e92aa([0x61,0x75,0x74,0x6f]),_0x4bce8c[_0x5e92aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5e92aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e92aa([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5e92aa([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5e92aa([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x150069){return void 0x0!==_0x150069['getRootsAttributes'];}async function N(_0x3194bd,_0x5da436,_0x9d32ff){const _0xc6a479=_0x1c83c0(_0x3194bd,w);_0xc6a479['plugins']['push'](p,D),_0xc6a479['rootsAttributes']=Fe(_0x3194bd)?_0x3194bd['getRootsAttributes']():void 0x0;const _0xccf26e=document['createDocumentFragment'](),_0x3a627b=_0x3194bd['config']['get']('trackChangesData')['editorCreator'],_0x74efe3=await _0x3a627b(_0xc6a479,()=>function(_0x2fc5db){const _0x59384a=document['createElement']('div');return _0x2fc5db['appendChild'](_0x59384a),_0x59384a;}(_0xccf26e));!function(_0x1d5071,_0x1804f0){const _0x24bda4=_0x1d5071['model']['document']['getRootNames']()['reduce']((_0x161be0,_0x26e03b)=>(_0x161be0[_0x26e03b]=_0x1d5071['data']['get']({'rootName':_0x26e03b}),_0x161be0),{}),_0x16d667=_0x1d5071['plugins']['get']('Users')['users']['map'](_0x504480=>({'id':_0x504480['id'],'name':_0x504480['name']})),_0x491a7c=_0x1d5071['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x14836e=_0x1d5071['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x592611=_0x1804f0['plugins']['get']('Users'),_0xa0c8a7=_0x1804f0['plugins']['get']('TrackChangesEditing'),_0x18efdf=_0x1804f0['plugins']['get']('CommentsRepository');for(const _0x3f857a of _0x18efdf['getCommentThreads']())_0x3f857a['remove']();for(const _0x23fd6c of _0x16d667)_0x592611['getUser'](_0x23fd6c['id'])||_0x592611['addUser'](_0x23fd6c);_0x592611['me']||_0x592611['useAnonymousUser']();for(const _0x9bb42f of _0x14836e)_0x18efdf['addCommentThread'](_0x9bb42f);for(const _0x51d4dc of _0x491a7c)_0xa0c8a7['addSuggestionData'](_0x51d4dc);_0x1804f0['data']['set'](_0x24bda4);}(_0x3194bd,_0x74efe3),_0x74efe3['execute'](_0x5da436?'acceptAllSuggestions':'discardAllSuggestions');const _0x1944ca=Fe(_0x74efe3)?_0x74efe3['getFullData'](_0x9d32ff):_0x74efe3['data']['get'](_0x9d32ff);return await _0x74efe3['destroy'](),_0x1944ca;}class je extends _0x5d3430{['options'];constructor(_0x31a4ea,_0xc72667){super(_0x31a4ea),this['options']=_0xc72667,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x2f860c,_0x141da6){if(!this['element'])return;const _0x211b88=[];for(const [_0x9217e6,_0x3816dc]of _0x2f860c){const _0x20bf3d=document['createElement']('div');_0x20bf3d['setAttribute']('data-ck-root-name',_0x9217e6),_0x20bf3d['className']=_0x3816dc['classes']+'\x20ck-track-changes-preview__root-container',_0x20bf3d['innerHTML']=_0x3816dc['content'],_0x211b88['push'](_0x20bf3d);}_0x141da6(this['element'],_0x211b88),this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x24b40f){super(_0x24b40f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1e83c4=this['editor'],_0x286aab=_0x1e83c4['locale'],_0x51f160=_0x1e83c4['plugins']['get']('Dialog');let _0x2ba14b;const _0x434f11=function(_0x55e7a8){const _0x1e20d7={};if('editables'in _0x55e7a8['ui']['view']){for(const [_0x1eb70f,_0x2cb5ff]of Object['entries'](_0x55e7a8['ui']['view']['editables']))_0x1e20d7[_0x1eb70f]=_0x2cb5ff['element'];}else _0x1e20d7[_0x55e7a8['model']['document']['getRootNames']()[0x0]]=_0x55e7a8['ui']['view']['editable']['element'];return _0x1e20d7;}(_0x1e83c4),_0x14ba9a=function(_0x44d099){let _0x4fea2f=0x0;for(const _0x29bdbf of Object['values'](_0x44d099))_0x4fea2f=Math['max'](_0x4fea2f,_0x29bdbf['getBoundingClientRect']()['width']);let _0x217505=0x0;for(const _0x3ab1a7 of Object['values'](_0x44d099))_0x217505+=_0x3ab1a7['getBoundingClientRect']()['height'];const _0x3a58ee=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x246364=Math['min'](_0x217505,_0x3a58ee);return{'width':_0x4fea2f,'height':_0x246364};}(_0x434f11);_0x51f160['show']({'id':'finalDocumentPreview','title':o(_0x286aab,'Final\x20document\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new je(_0x286aab,{'dialogRects':_0x14ba9a}),'onHide':()=>{_0x2ba14b['detachFromDom']();},'onShow':()=>{_0x1e83c4['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']()['then'](_0x36e41d=>{const _0x168f23=this['_standarizeRootsData'](_0x36e41d,_0x1e83c4,_0x434f11);_0x51f160['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x168f23,_0x1e83c4['config']['get']('trackChanges.preview.renderFunction'));}),_0x2ba14b=new _0x4331c8(_0x286aab,[_0x51f160['view']]),_0x2ba14b['attachToDom'](),_0x2ba14b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1e83c4['once']('destroy',()=>{_0x2ba14b['detachFromDom']();});const _0xd219b=_0x51f160['view']['headerView']['class'];_0x51f160['view']['headerView']['class']=_0xd219b?_0xd219b+'\x20ck-reset_all':'ck-reset_all';}});}['_standarizeRootsData'](_0x325b47,_0x47b794,_0x4ae4d7){let _0x4b7fbc;if('string'==typeof _0x325b47){const _0x36ebff=_0x47b794['model']['document']['getRootNames']()[0x0];_0x4b7fbc={[_0x36ebff]:_0x325b47};}else _0x4b7fbc=_0x325b47;const _0x36499a=this['_fixMediaEmbeds'](_0x4b7fbc,_0x47b794),_0x198ef8=function(_0x4ca646,_0x2f6dd6){for(const [_0x286459,_0x4b3bea]of _0x4ca646)_0x4b3bea['classes']=_0x2f6dd6[_0x286459]['classList']['value']['replace']('ck-focused','');return _0x4ca646;}(this['_sortRoots'](_0x47b794)['reduce']((_0x5b0a17,_0x4e69ac)=>(_0x5b0a17['push']([_0x4e69ac,{'content':_0x36499a[_0x4e69ac],'classes':''}]),_0x5b0a17),[]),_0x4ae4d7);return _0x198ef8;}['_fixMediaEmbeds'](_0x4290d5,_0x3f75e1){if(!_0x3f75e1['plugins']['has']('MediaEmbedEditing'))return _0x4290d5;const _0x2668c2=_0x3f75e1['plugins']['get']('MediaEmbedEditing');for(const [_0x200859,_0x2ff908]of Object['entries'](_0x4290d5)){const _0x2b7933=document['createElement']('div');_0x2b7933['innerHTML']=_0x2ff908,(_0x2b7933['querySelectorAll']('figure.media')['forEach'](_0x295a64=>{const _0xeeeb35=_0x295a64['querySelector']('oembed');if(_0xeeeb35){const _0x34914b=_0xeeeb35['getAttribute']('url');if(_0x34914b){const _0x17a547=_0x2668c2['registry']['getMediaViewElement'](new _0x626325(_0x3f75e1['editing']['view']['document']),_0x34914b,{'elementName':'','renderForEditingView':!0x0}),_0x3a5cae=document['createElement']('div');_0x3a5cae['classList']['add']('ck-media__wrapper'),_0x17a547['render'](_0x3a5cae,_0x3f75e1['editing']['view']['domConverter']),_0xeeeb35['replaceWith'](_0x3a5cae);}}}),_0x4290d5[_0x200859]=_0x2b7933['innerHTML']);}return _0x4290d5;}['_sortRoots'](_0x290734){if(!function(_0x223662){return void 0x0!==_0x223662['getRootsAttributes'];}(_0x290734))return _0x290734['model']['document']['getRootNames']();const _0x4ad369=_0x290734['getRootsAttributes']();if(Object['values'](_0x4ad369)['every'](_0x353c1e=>void 0x0!==_0x353c1e['order']))return Array['from'](_0x290734['model']['document']['getRootNames']())['sort']((_0x26be6a,_0x26c955)=>Number(_0x290734['model']['document']['getRoot'](_0x26be6a)['getAttribute']('order'))-Number(_0x290734['model']['document']['getRoot'](_0x26c955)['getAttribute']('order')));const _0x105ac6=[],_0x825e02=new Map();for(const _0x359c02 of _0x290734['model']['document']['getRootNames']()){const _0x464401=_0x290734['editing']['view']['getDomRoot'](_0x359c02)['getClientRects']()['item'](0x0);_0x105ac6['push'](_0x359c02),_0x825e02['set'](_0x359c02,_0x464401);}return _0x105ac6['sort']((_0x4ffc58,_0x2e30e7)=>{const _0x12a229=_0x825e02['get'](_0x4ffc58),_0x32eb5d=_0x825e02['get'](_0x2e30e7);return _0x12a229['y']-_0x32eb5d['y']||_0x12a229['x']-_0x32eb5d['x'];}),_0x105ac6;}}class te extends _0x2298ef{static get['requires'](){return[T,_0x4aaf69];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x397803){super(_0x397803),_0x397803['commands']['add']('viewFinalDocument',new re(this['editor'])),_0x397803['config']['define']('trackChanges.preview.renderFunction',(_0x1d3de4,_0x385df0)=>{for(const _0x53ccba of _0x385df0)_0x1d3de4['appendChild'](_0x53ccba);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|