@ckeditor/ckeditor5-track-changes 46.1.1-alpha.0 → 46.1.1-alpha.2
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/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +27 -27
- 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/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- 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/emoji.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/lineheight.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/replacesourcecommand.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 +2 -2
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablelayout.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/uploadcare.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/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangespreview.js +1 -1
- 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.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x4cec0e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x41c748,_0x30c48a){super(),this['id']=_0x30c48a['id'],this['type']=_0x30c48a['type'],this['subType']=_0x30c48a['subType']||null,this['author']=_0x30c48a['author'],this['creator']=_0x30c48a['creator']||_0x30c48a['author'],this['isExternal']=Boolean(_0x30c48a['attributes']&&_0x30c48a['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x30c48a['originalSuggestionId']||null,this['_model']=_0x41c748,this['_onAccept']=_0x30c48a['onAccept'],this['_onDiscard']=_0x30c48a['onDiscard'],this['_onAttributesChange']=_0x30c48a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x30c48a['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 _0x274e16=this;for(;_0x274e16['previous'];)_0x274e16=_0x274e16['previous'];return _0x274e16;}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'](_0x11636b){this['_markerNames']['add'](_0x11636b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x575fd6=>this['_model']['markers']['get'](_0x575fd6))['filter'](_0x2c1917=>_0x2c1917);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x493452=>{for(const _0xd8141a of this['getMarkers']())_0x493452['removeMarker'](_0xd8141a);}),this['_markerNames']['clear']();}['removeMarker'](_0x1300d6){this['_model']['change'](_0x412a79=>{_0x412a79['removeMarker'](_0x1300d6);}),this['_markerNames']['delete'](_0x1300d6);}['addRange'](_0x2730ef){const _0x5d0b87='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x5d0b87),this['_model']['change'](_0x532ca6=>{_0x532ca6['addMarker'](_0x5d0b87,{'range':_0x2730ef,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2f3269){for(const _0x43f207 of this['getRanges']())if(_0x43f207['isIntersecting'](_0x2f3269))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3f3c26=>_0x3f3c26['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1779d4,_0x4be196)=>[..._0x1779d4,..._0x4be196['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3cb203=this['getRanges']();if(0x1!=_0x3cb203['length'])return null;const _0x40639b=_0x3cb203[0x0],_0x14eeeb=_0x40639b['start']['nodeAfter'],_0x51adad=_0x40639b['end']['nodeBefore'];return _0x14eeeb instanceof _0x32313c?_0x14eeeb!=_0x51adad?null:_0x14eeeb: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 _0xc4bf16=[];let _0x59c347=this['head'];for(;_0x59c347;)_0xc4bf16['push'](_0x59c347),_0x59c347=_0x59c347['next'];return _0xc4bf16;}['setAttribute'](_0x438e1f,_0x472a5e){const _0x6d4f6d=_0x5884be(this['attributes']);_0x56d24a(_0x6d4f6d,_0x438e1f,_0x472a5e),_0x1662f9(_0x6d4f6d,this['attributes'])||(this['attributes']=_0x6d4f6d,this['_onAttributesChange'](_0x6d4f6d));}['removeAttribute'](_0x9d8de1){const _0x18b54a=_0x5884be(this['attributes']);_0x296fa7(_0x18b54a,_0x9d8de1),_0x1662f9(_0x18b54a,this['attributes'])||(this['attributes']=_0x18b54a,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 _0x4d5fba()['substr'](0x1,0x5);}}function o(_0x5d8558,_0x1c9565,_0x5aaaf4){const _0x23c600=_0x5d8558['t'],t=_0x5d8558['t'];switch(_0x1c9565){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\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',_0x5aaaf4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5aaaf4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5aaaf4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5aaaf4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5aaaf4);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',_0x5aaaf4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5aaaf4);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x5aaaf4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5aaaf4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5aaaf4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5aaaf4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5aaaf4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5aaaf4);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5aaaf4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5aaaf4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5aaaf4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5aaaf4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5aaaf4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5aaaf4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5aaaf4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5aaaf4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5aaaf4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5aaaf4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5aaaf4);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5aaaf4);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'},_0x5aaaf4);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5aaaf4);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5aaaf4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5aaaf4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5aaaf4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5aaaf4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5aaaf4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5aaaf4);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'},_0x5aaaf4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5aaaf4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5aaaf4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5aaaf4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5aaaf4);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'},_0x5aaaf4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5aaaf4);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'},_0x5aaaf4);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x5aaaf4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5aaaf4);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'},_0x5aaaf4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5aaaf4);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'},_0x5aaaf4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5aaaf4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5aaaf4);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'},_0x5aaaf4);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5aaaf4);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 _0x23c600({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5aaaf4);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x23c600({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5aaaf4);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5aaaf4);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'},_0x5aaaf4);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'},_0x5aaaf4);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'},_0x5aaaf4);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1c9565;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3af64a,_0x521264){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3af64a,this['_locale']=_0x521264;}['getDescriptions'](_0x3ab751){const _0x50f06e=[],_0x1d754f=new Set(),_0x184563=new Set();for(let _0x35624b=0x0;_0x35624b<_0x3ab751['length'];_0x35624b++){const _0x18786b=_0x3ab751[_0x35624b];if(!_0x18786b['isInContent'])continue;const _0x51ac27=this['_handleCustomCallbackDescription'](_0x18786b);if(_0x51ac27){if(null!=_0x18786b['subType']){if(_0x1d754f['has'](_0x18786b['subType']))continue;_0x1d754f['add'](_0x18786b['subType']);}_0x50f06e['push'](_0x51ac27);}else{if('attribute'==_0x18786b['type']){const _0x1b4c5e=_0x18786b['data']['key'];if(_0x184563['has'](_0x1b4c5e))continue;_0x184563['add'](_0x18786b['data']['key']),_0x1b4c5e==m?this['_handleRenameSuggestionDescription'](_0x50f06e,_0x18786b):this['_handleAttributeSuggestionDescription'](_0x50f06e,_0x18786b);continue;}'insertion'!=_0x18786b['type']&&'deletion'!=_0x18786b['type']||this['_handleInsertRemoveSuggestionDescription'](_0x50f06e,_0x18786b,_0x3ab751[_0x35624b+0x1]);}}return this['_resolveDescriptionItems'](_0x50f06e);}['registerDescriptionCallback'](_0x5399a7){this['_customCallbacks']['push'](_0x5399a7);}['registerElementLabel'](_0x468075,_0x36a175,_0x588243=_0x27f0f7['normal']){'function'==typeof _0x468075?_0x33703b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x468075,'label':_0x36a175,'priority':_0x588243}):this['_itemLabels']['set'](_0x468075,_0x36a175);}['registerAttributeLabel'](_0x228fa9,_0x56dae5){this['_attributeLabels']['set'](_0x228fa9,_0x56dae5);}['getItemLabel'](_0xbb4079,_0x37312e=0x1){let _0x20a6ae;for(const _0x2e1dee of this['_itemLabelsCallbacks'])if(_0x2e1dee['matchingCallback'](_0xbb4079)){_0x20a6ae=_0x2e1dee['label'];break;}return _0x20a6ae||(_0x20a6ae=this['_itemLabels']['get'](_0xbb4079['name'])),_0x20a6ae?_0x20a6ae(_0x37312e):0x1!==_0x37312e?_0x37312e+'\x20'+_0xbb4079['name']+'s':''+_0xbb4079['name'];}['_addDescriptionItems'](_0x4e9800,_0x4575fd){const _0x81198a=_0x4575fd['getFirstRange']()['getWalker'](),_0x397a2c='insertion'==_0x4575fd['type']?'add':'remove';for(const _0x5f061d of _0x81198a){const _0x4c9069=_0x5f061d['item'],_0x1a3c12=_0x4e9800[_0x4e9800['length']-0x1];if(_0x4c9069['is']('$textProxy'))_0x1a3c12&&_0x1a3c12['type']['indexOf']('Container')>-0x1&&_0x4e9800['pop'](),_0x1a3c12&&'text'==_0x1a3c12['type']?_0x1a3c12[_0x397a2c]+=_0x4c9069['data']:_0x4e9800['push']({'type':'text','add':'add'==_0x397a2c?_0x4c9069['data']:'','remove':'remove'==_0x397a2c?_0x4c9069['data']:''});else{if(this['_schema']['isObject'](_0x4c9069)){const _0x3fa761=_0x4c9069;if(_0x1a3c12&&_0x1a3c12['type']['indexOf']('Container')>-0x1&&_0x4e9800['pop'](),'elementEnd'==_0x5f061d['type'])continue;_0x1a3c12&&_0x1a3c12['type']==_0x397a2c+'Object'&&_0x1a3c12['element']['name']==_0x3fa761['name']?_0x1a3c12['quantity']++:_0x4e9800['push']({'type':_0x397a2c+'Object','element':_0x3fa761,'quantity':0x1}),_0x81198a['skip'](_0x1e95af=>!('elementEnd'==_0x1e95af['type']&&_0x1e95af['item']==_0x4c9069));}else{if(this['_schema']['checkChild'](_0x4c9069,'$text')||_0x4c9069['is']('element','softBreak')){const _0x286adf=_0x4c9069;if('add'==_0x397a2c&&'elementStart'==_0x5f061d['type']||'remove'==_0x397a2c&&'elementEnd'==_0x5f061d['type'])continue;if(_0x1a3c12&&-0x1==_0x1a3c12['type']['indexOf']('Container')){'text'==_0x1a3c12['type']&&(_0x1a3c12[_0x397a2c]+='\x0a');continue;}let _0x5babb7;if(_0x5babb7='add'==_0x397a2c?_0x286adf['nextSibling']&&!this['_schema']['isObject'](_0x286adf['nextSibling'])?_0x286adf['nextSibling']:null:_0x286adf['previousSibling']&&!this['_schema']['isObject'](_0x286adf['previousSibling'])?_0x286adf['previousSibling']:null,_0x286adf['isEmpty']||_0x5babb7&&_0x5babb7['isEmpty']){const _0x2fac6b=_0x5babb7&&_0x5babb7['isEmpty']?_0x5babb7:_0x286adf;_0x1a3c12&&_0x1a3c12['type']==_0x397a2c+'EmptyContainer'&&_0x1a3c12['element']['name']==_0x2fac6b['name']?_0x1a3c12['quantity']++:_0x4e9800['push']({'type':_0x397a2c+'EmptyContainer','element':_0x2fac6b,'quantity':0x1});}else _0x4e9800['push']({'type':_0x397a2c+'Container','element':_0x286adf});}}}}}['_resolveDescriptionItems'](_0x36cb9f){const _0x231e84=this['_locale'],_0x1f3587=[],_0x1bcc81=[],_0x2f668e=[];for(const _0x1e626d of _0x36cb9f)switch(_0x1e626d['type']){case'text':if(_0x1e626d['add']=_0x1e626d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1e626d['remove']=_0x1e626d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1e626d['add']&&''!=_0x1e626d['remove']){_0x1f3587['push']({'type':'replace','content':o(_0x231e84,'REPLACE_TEXT',['\x22'+_0x1e626d['remove']+'\x22','\x22'+_0x1e626d['add']+'\x22'])});continue;}if(null!=_0x1e626d['add']['match'](/^ +$/)){_0x1f3587['push']({'type':'insertion','content':o(_0x231e84,'*Insert:*\x20%0',o(_0x231e84,'ELEMENT_SPACE',_0x1e626d['add']['length']))});continue;}if(null!=_0x1e626d['remove']['match'](/^ +$/)){_0x1f3587['push']({'type':'deletion','content':o(_0x231e84,'*Remove:*\x20%0',o(_0x231e84,'ELEMENT_SPACE',_0x1e626d['remove']['length']))});continue;}if(''!=_0x1e626d['add']){_0x1f3587['push']({'type':'insertion','content':o(_0x231e84,'*Insert:*\x20%0','\x22'+_0x1e626d['add']+'\x22')});continue;}_0x1f3587['push']({'type':'deletion','content':o(_0x231e84,'*Remove:*\x20%0','\x22'+_0x1e626d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1f3587['push']({'type':'insertion','content':o(_0x231e84,'*Insert:*\x20%0',this['getItemLabel'](_0x1e626d['element'],_0x1e626d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1f3587['push']({'type':'deletion','content':o(_0x231e84,'*Remove:*\x20%0',this['getItemLabel'](_0x1e626d['element'],_0x1e626d['quantity']))});continue;case'addContainer':_0x1f3587['push']({'type':'insertion','content':o(_0x231e84,'*Split:*\x20%0',this['getItemLabel'](_0x1e626d['element'],_0x1e626d['quantity']))});continue;case'removeContainer':_0x1f3587['push']({'type':'deletion','content':o(_0x231e84,'*Merge:*\x20%0',this['getItemLabel'](_0x1e626d['element'],_0x1e626d['quantity']))});continue;case'addFormat':_0x1bcc81['push'](_0x1e626d['key']);continue;case'removeFormat':_0x2f668e['push'](_0x1e626d['key']);continue;default:_0x1f3587['push'](_0x1e626d);}if(_0x1bcc81['length']){const _0x26b362=_0x1bcc81['map'](_0x2cde2c=>this['_attributeLabels']['has'](_0x2cde2c)?this['_attributeLabels']['get'](_0x2cde2c):_0x2cde2c)['join'](',\x20');_0x1f3587['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x26b362)});}if(_0x2f668e['length']){const _0x42606c=_0x2f668e['map'](_0x2e7b79=>this['_attributeLabels']['has'](_0x2e7b79)?this['_attributeLabels']['get'](_0x2e7b79):_0x2e7b79)['join'](',\x20');_0x1f3587['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x42606c)});}return _0x1f3587;}['_handleCustomCallbackDescription'](_0x5226ae){for(const _0x4917fd of this['_customCallbacks']){const _0x14f687=_0x4917fd(_0x5226ae);if(_0x14f687&&'type'in _0x14f687)return _0x14f687;}}['_handleAttributeSuggestionDescription'](_0x137578,_0xaf456f){const _0x125816=_0xaf456f['data'],_0x4894a4=void 0x0===_0x125816['newValue']?'removeFormat':'addFormat';_0x137578['push']({'type':_0x4894a4,'key':_0x125816['key']});}['_handleRenameSuggestionDescription'](_0x183717,_0x44a02d){_0x183717['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x44a02d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4314bb,_0x7253ff,_0x1fd342){if(this['_addDescriptionItems'](_0x4314bb,_0x7253ff),_0x1fd342&&_0x1fd342['getFirstRange']()&&!_0x7253ff['getFirstRange']()['end']['isEqual'](_0x1fd342['getFirstRange']()['start'])){const _0x1b54ee=_0x4314bb[_0x4314bb['length']-0x1],_0x12ed74='insertion'==_0x7253ff['type']?'add':'remove';_0x1b54ee&&'text'==_0x1b54ee['type']&&(_0x1b54ee[_0x12ed74]+='\x0a');}}}class O extends _0xda4d6f{['afterInit'](){const _0x57eeab=this['editor'],_0xb2adcd=_0x57eeab['plugins']['get']('TrackChangesEditing');_0x57eeab['commands']['get']('showAIAssistant')&&_0xb2adcd['enableCommand']('showAIAssistant');}}class E extends _0xda4d6f{['afterInit'](){const _0x4eafe5=this['editor'],_0x4a1824=_0x4eafe5['locale'];if(!_0x4eafe5['plugins']['has']('AlignmentEditing'))return;const _0x4dfe73=_0x4eafe5['plugins']['get']('TrackChangesEditing');_0x4dfe73['enableDefaultAttributesIntegration']('alignment'),_0x4dfe73['registerBlockAttribute']('alignment'),_0x4dfe73['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4a1824,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46c9a7=this['editor'],_0xe5c548=_0x46c9a7['locale'];_0x46c9a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50ddb2=>{if('formatBlock'!=_0x50ddb2['type'])return;const {data:_0x822f9}=_0x50ddb2;if(_0x822f9&&'alignment'==_0x822f9['commandName']){const _0x2ba60f=_0x822f9['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xe5c548,'*Format:*\x20%0',function(_0x54de26){switch(_0x54de26){case'left':return o(_0xe5c548,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xe5c548,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xe5c548,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xe5c548,'FORMAT_JUSTIFY_TEXT');}}(_0x2ba60f))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xda4d6f{['afterInit'](){const _0x43cba4=this['editor'],_0x4a163e=_0x43cba4['plugins']['get']('TrackChangesEditing'),_0x34a951=_0x43cba4['locale'];for(const _0x437185 of ti){if(!_0x43cba4['plugins']['has'](_0x437185))continue;const _0x6c2df6=_0x437185['slice'](0x0,-0x7)['toLowerCase'](),_0x59c20a='FORMAT_'+_0x6c2df6['toUpperCase']();_0x4a163e['enableDefaultAttributesIntegration'](_0x6c2df6),_0x4a163e['registerInlineAttribute'](_0x6c2df6),_0x4a163e['descriptionFactory']['registerAttributeLabel'](_0x6c2df6,o(_0x34a951,_0x59c20a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15834f=this['editor'],_0x3bdb3d=_0x15834f['locale'],_0x1f1edb=_0x15834f['plugins']['get']('TrackChangesEditing');function _0x523107(_0x5f3d7a,_0xba4977){_0x1f1edb['descriptionFactory']['registerDescriptionCallback'](_0x3b5f09=>{if('formatInline'!=_0x3b5f09['type'])return;const {data:_0x202296}=_0x3b5f09;return _0x202296&&_0x202296['commandName']===_0x5f3d7a?_0x202296['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3bdb3d,'*Format:*\x20%0',_0xba4977)}:{'type':'format','content':o(_0x3bdb3d,'*Remove\x20format:*\x20%0',_0xba4977)}:void 0x0;});}_0x523107('bold',o(_0x3bdb3d,'FORMAT_BOLD')),_0x523107('italic',o(_0x3bdb3d,'FORMAT_ITALIC')),_0x523107('underline',o(_0x3bdb3d,'FORMAT_UNDERLINE')),_0x523107('code',o(_0x3bdb3d,'FORMAT_CODE')),_0x523107('strikethrough',o(_0x3bdb3d,'FORMAT_STRIKETHROUGH')),_0x523107('subscript',o(_0x3bdb3d,'FORMAT_SUBSCRIPT')),_0x523107('superscript',o(_0x3bdb3d,'FORMAT_SUPERSCRIPT'));}}class U extends _0xda4d6f{['afterInit'](){const _0x171efe=this['editor'],_0x37da3f=_0x171efe['locale'];if(!_0x171efe['plugins']['has']('BlockQuoteEditing'))return;const _0x3e5420=_0x171efe['plugins']['get']('TrackChangesEditing'),_0x4ac9d4=this['editor']['commands']['get']('blockQuote');_0x3e5420['enableCommand']('blockQuote',(_0x1b1a26,_0x413cc4={})=>{const _0x18dd57=this['editor']['model']['document']['selection'],_0x482815=_0x413cc4&&void 0x0!==_0x413cc4['forceValue']?_0x413cc4['forceValue']:!_0x4ac9d4['value'];let _0x40d5e4=[];if(_0x482815){const _0x14ac34=Array['from'](_0x18dd57['getSelectedBlocks']())['filter'](_0x25153c=>oo(_0x25153c)||function(_0x870f08,_0x291c98){const _0x1ea9da=_0x291c98['checkChild'](_0x870f08['parent'],'blockQuote'),_0x3f94bf=_0x291c98['checkChild'](['$root','blockQuote'],_0x870f08);return _0x1ea9da&&_0x3f94bf;}(_0x25153c,this['editor']['model']['schema']));_0x40d5e4=to(_0x14ac34,_0x171efe['model']);}else{const _0xb4efa=Array['from'](_0x18dd57['getSelectedBlocks']())['filter'](_0x590ac0=>oo(_0x590ac0));_0x40d5e4=to(_0xb4efa,_0x171efe['model']);}_0x171efe['model']['change'](()=>{for(const _0x3a5e57 of _0x40d5e4)_0x3e5420['markBlockFormat'](_0x3a5e57,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x482815}]});});}),_0x3e5420['descriptionFactory']['registerDescriptionCallback'](_0x2f87c8=>{const {data:_0x4048d6}=_0x2f87c8;if(_0x4048d6&&'blockQuote'==_0x4048d6['commandName']){const _0x10a508=o(_0x37da3f,'ELEMENT_BLOCK_QUOTE');return _0x4048d6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x37da3f,'*Set\x20format:*\x20%0',_0x10a508)}:{'type':'format','content':o(_0x37da3f,'*Remove\x20format:*\x20%0',_0x10a508)};}});}}function oo(_0x367342){return'blockQuote'==_0x367342['parent']['name'];}class V extends _0xda4d6f{['afterInit'](){const _0x25e2d8=this['editor'],_0x13810e=_0x25e2d8['locale'],_0x307f6c=_0x25e2d8['plugins']['get']('TrackChangesEditing');_0x25e2d8['plugins']['has']('BookmarkEditing')&&(_0x307f6c['enableCommand']('insertBookmark'),_0x307f6c['enableDefaultAttributesIntegration']('updateBookmark'),_0x307f6c['registerBlockAttribute']('bookmarkId'),_0x307f6c['descriptionFactory']['registerDescriptionCallback'](_0x375be4=>{if('insertion'!=_0x375be4['type']&&'deletion'!=_0x375be4['type']&&'attribute'!=_0x375be4['type'])return;const _0x5d967c=_0x375be4['getContainedElement']();if(null==_0x5d967c)return;if(!_0x5d967c['is']('element','bookmark'))return;const _0xcc7f32=_0x5d967c['getAttribute']('bookmarkId');if('insertion'==_0x375be4['type'])return{'type':'insertion','content':o(_0x13810e,'*Insert:*\x20%0','\x22'+_0xcc7f32+'\x22\x20'+o(_0x13810e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x375be4['type'])return{'type':'deletion','content':o(_0x13810e,'*Remove:*\x20%0','\x22'+_0xcc7f32+'\x22\x20'+o(_0x13810e,'ELEMENT_BOOKMARK'))};const {data:_0x35ab5f}=_0x375be4;if(!_0x35ab5f||'bookmarkId'!=_0x35ab5f['key'])return;return{'type':'format','content':o(_0x13810e,'*Set\x20bookmark:*\x20%0','\x22'+_0x35ab5f['newValue']+'\x22')};}));}}class F extends _0xda4d6f{['afterInit'](){const _0x165bfa=this['editor'];_0x165bfa['plugins']['has']('CaseChange')&&(_0x165bfa['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x165bfa['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x165bfa['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xda4d6f{['afterInit'](){const _0x319ff5=this['editor'];_0x319ff5['commands']['get']('ckbox')&&_0x319ff5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xda4d6f{['afterInit'](){const _0x5a2455=this['editor'];if(!_0x5a2455['plugins']['has']('CodeBlock'))return;const _0x5338a6=_0x5a2455['plugins']['get']('TrackChangesEditing'),_0x23223d=_0x5a2455['locale'],_0x15c701=_0x5a2455['config']['get']('codeBlock')['languages'],_0x39c09a=_0x5a2455['commands']['get']('codeBlock');_0x5338a6['enableCommand']('indentCodeBlock'),_0x5338a6['enableCommand']('outdentCodeBlock'),_0x5338a6['enableCommand']('codeBlock',(_0x5cb21c,_0x47f7c6={})=>{const _0x568f01=_0x5a2455['model'],_0x7b286e=_0x5a2455['model']['document']['selection'],_0x86f31b=_0x47f7c6&&void 0x0!==_0x47f7c6['forceValue']?_0x47f7c6['forceValue']:!_0x39c09a['value'];let _0x5cf089;_0x47f7c6['language']||(_0x47f7c6['language']=_0x15c701[0x0]['language']),_0x5cf089=_0x86f31b?Array['from'](_0x7b286e['getSelectedBlocks']())['filter'](_0x10240e=>co(_0x10240e)||function(_0xa0c3db,_0x115eae){if(_0xa0c3db['is']('rootElement')||_0x115eae['isLimit'](_0xa0c3db))return!0x1;return _0x115eae['checkChild'](_0xa0c3db['parent'],'codeBlock');}(_0x10240e,_0x568f01['schema'])):Array['from'](_0x7b286e['getSelectedBlocks']())['filter'](_0x6affa8=>co(_0x6affa8));const _0x2a4d65=to(_0x5cf089,_0x568f01);_0x568f01['change'](()=>{for(const _0x1b1c98 of _0x2a4d65)_0x5338a6['markBlockFormat'](_0x1b1c98,{'commandName':'codeBlock','commandParams':[{..._0x47f7c6,'forceValue':_0x86f31b}],'formatGroupId':'blockName'});});}),(_0x5338a6['descriptionFactory']['registerElementLabel']('codeBlock',_0x360d9c=>o(_0x23223d,'ELEMENT_CODE_BLOCK',_0x360d9c)),_0x5338a6['descriptionFactory']['registerDescriptionCallback'](_0x2dd8b7=>{if('formatBlock'!=_0x2dd8b7['type'])return;const _0x488633=_0x23223d['t'],{data:_0x87b3ba}=_0x2dd8b7;if(!_0x87b3ba||'codeBlock'!=_0x87b3ba['commandName'])return;const _0x5def28=_0x87b3ba['commandParams'][0x0]['language'],_0x167312=_0x488633(_0x15c701['find'](_0x334e8a=>_0x334e8a['language']===_0x5def28)['label'])['toLowerCase']();return _0x87b3ba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23223d,'*Set\x20format:*\x20%0',o(_0x23223d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x167312+')')}:{'type':'format','content':o(_0x23223d,'*Remove\x20format:*\x20%0',o(_0x23223d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1d8faf){return'codeBlock'==_0x1d8faf['name'];}class J extends _0xda4d6f{['afterInit'](){const _0x4b39fe=this['editor'];if(!_0x4b39fe['plugins']['has']('CommentsEditing'))return;_0x4b39fe['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5e5f42,_0x236384,_0x3796e1){const _0x5e5bd9=[];for(const _0xb55710 of _0x236384['getItems']())_0xb55710['hasAttribute'](_0x5e5f42)&&_0x5e5bd9['push'](_0x3796e1['createRangeOn'](_0xb55710));return _0x5e5bd9;}function De(_0x34393d,_0x33de8c,{showActiveMarker:_0x185aea=!0x0}={}){const _0x1c6c5e=_0x34393d['plugins']['get']('TrackChangesEditing');return(_0x115713,_0x38d6e8,_0x548268)=>{if(!_0x548268['consumable']['test'](_0x38d6e8['markerRange'],_0x115713['name']))return;const _0x3fc135=_0x38d6e8['markerRange']['getWalker'](),_0x1ff299=_0x38d6e8['markerRange']['start'],_0x15334f=_0x34393d['model']['schema'];let _0xe354b6=null,_0x482a20=null,_0x3d3163=!0x1,_0x212a9b=!0x1;for(const _0x6a5b34 of _0x3fc135){const _0x18b800=_0x6a5b34['item'];_0x3d3163=_0x3d3163||_0x15334f['isContent'](_0x18b800);const _0x253d70=_0x548268['mapper']['toViewElement'](_0x18b800);if(_0x253d70&&_0x253d70['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x6a5b34['type']&&(_0x15334f['isBlock'](_0x18b800)&&!_0x15334f['isLimit'](_0x18b800)&&(_0x18b800['nextSibling']||_0x1ff299['isAtEnd']?_0xe354b6&&_0xe354b6['parent']==_0x18b800||(_0xe354b6=_0x18b800,_0x2df8cd(_0x6a5b34['previousPosition']),_0x212a9b=!0x0):_0x482a20=_0x482a20||_0x6a5b34['previousPosition']));}function _0x2df8cd(_0x7faba2){const {id:_0x4cf0da,authorId:_0xf518e5}=_0x1c6c5e['_splitMarkerName'](_0x38d6e8['markerName']),_0x4f9ceb=_0x548268['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33de8c,'data-suggestion':_0x4cf0da,'data-author-id':_0xf518e5}),_0x46fae4=_0x548268['mapper']['toViewPosition'](_0x7faba2);_0x185aea&&_0x1c6c5e['activeMarkers']['includes'](_0x38d6e8['markerName'])&&_0x548268['writer']['addClass']('ck-suggestion-marker--active',_0x4f9ceb),_0x548268['writer']['insert'](_0x46fae4,_0x4f9ceb),_0x548268['mapper']['bindElementToMarker'](_0x4f9ceb,_0x38d6e8['markerName']);}_0x3d3163||_0x212a9b||!_0x482a20||_0x2df8cd(_0x482a20);};}class K extends _0xda4d6f{static get['requires'](){return[_0x241096];}['init'](){const _0x3c0fb1=this['editor'],_0xf3d80f=_0x3c0fb1['plugins']['get']('TrackChangesEditing');_0xf3d80f['enableCommand']('delete');const _0x5480cd=_0x3c0fb1['commands']['get']('deleteForward');_0xf3d80f['enableCommand']('deleteForward',(_0x4eb43d,_0xf2d61f={})=>{const _0x59f27e=_0x3c0fb1['model']['createSelection'](_0x3c0fb1['model']['document']['selection']);_0x59f27e['isCollapsed']&&_0x3c0fb1['model']['modifySelection'](_0x59f27e,{'direction':'forward','unit':_0xf2d61f['unit']});const _0x472dcb=_0x59f27e['getFirstRange'](),_0x3cf200=_0x18d379['fromRange'](_0x472dcb);let _0x27101e;_0x4eb43d(_0xf2d61f),_0x27101e='$graveyard'==_0x3cf200['root']['rootName']?_0x3c0fb1['model']['createRange'](_0x472dcb['start']):_0x3c0fb1['model']['createRange'](_0x3cf200['start'],_0x3cf200['end']),_0x3cf200['detach'](),_0x3c0fb1['model']['enqueueChange'](_0x5480cd['buffer']['batch'],_0x1bbb16=>{_0x5480cd['buffer']['lock'](),_0x1bbb16['setSelection'](_0x1bbb16['createRange'](_0x27101e['end'])),_0x5480cd['buffer']['unlock']();});}),_0x3c0fb1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x3c0fb1,'merge'),{'priority':'high'}),_0x3c0fb1['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x20e90c,_0xc0f48d,_0x1e2b7d)=>{_0x1e2b7d['options']['showSuggestionHighlights']&&De(_0x3c0fb1,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x20e90c,_0xc0f48d,_0x1e2b7d);},{'priority':'high'}),_0x3c0fb1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x284499,_0x26420c,_0x111a2a)=>{const _0xed5dea=_0x111a2a['mapper']['markerNameToElements'](_0x26420c['markerName']);if(_0xed5dea){for(const _0xcaa6d1 of _0xed5dea)_0xcaa6d1['is']('uiElement')&&(_0x111a2a['mapper']['unbindElementFromMarkerName'](_0xcaa6d1,_0x26420c['markerName']),_0x111a2a['writer']['remove'](_0xcaa6d1));}},{'priority':'high'});}}class H extends _0xda4d6f{['afterInit'](){const _0x51c973=this['editor'];if(!_0x51c973['plugins']['has']('ListEditing'))return;const _0x1b4266=_0x51c973['locale'],_0x37a78e=_0x51c973['plugins']['get']('TrackChangesEditing'),_0x79004b=_0x51c973['plugins']['has']('TodoListEditing'),_0xfa9086=!!_0x51c973['config']['get']('list.multiBlock');function _0x23feaa(_0x4fce0d){return{'type':'format','content':''+o(_0x1b4266,'*Set\x20format:*\x20%0',_0x4fce0d)};}function _0x313a01(_0x501e0f){return{'type':'format','content':''+o(_0x1b4266,'*Remove\x20format:*\x20%0',_0x501e0f)};}_0x37a78e['enableDefaultAttributesIntegration']('numberedList'),_0x37a78e['enableDefaultAttributesIntegration']('bulletedList'),_0x37a78e['enableDefaultAttributesIntegration']('customNumberedList'),_0x37a78e['enableDefaultAttributesIntegration']('customBulletedList'),_0x37a78e['enableDefaultAttributesIntegration']('indentList'),_0x37a78e['enableDefaultAttributesIntegration']('outdentList'),_0x37a78e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x37a78e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x37a78e['registerBlockAttribute']('listItemId'),_0x37a78e['registerBlockAttribute']('listType'),_0x37a78e['registerBlockAttribute']('listIndent'),_0xfa9086&&(_0x37a78e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x37a78e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x79004b&&(_0x37a78e['enableDefaultAttributesIntegration']('todoList'),_0x37a78e['enableDefaultAttributesIntegration']('checkTodoList'),_0x37a78e['registerBlockAttribute']('todoListChecked'),_0x37a78e['descriptionFactory']['registerDescriptionCallback'](_0x1e1e4e=>{const {data:_0x51349c}=_0x1e1e4e;if(_0x51349c&&'todoListChecked'==_0x51349c['key'])return{'type':'format','content':_0x51349c['newValue']?o(_0x1b4266,'*Check\x20item*'):o(_0x1b4266,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x40e994=>{if(_0x40e994['batch']['isUndo'])return!0x1;let _0x502c5e=!0x1;const _0x4f2adc=_0x37a78e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x150412=>'todoListChecked'===_0x37a78e['_getAttributeKey'](_0x150412));for(const _0x652b52 of _0x4f2adc){'todo'!=_0x652b52['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x37a78e['_findSuggestions'](_0x652b52['getFirstRange'](),'attribute')['find'](_0x4cfc29=>'listType'===_0x37a78e['_getAttributeKey'](_0x4cfc29['suggestion']))||(_0x40e994['removeMarker'](_0x652b52['getFirstMarker']()),_0x502c5e=!0x0));}return _0x502c5e;})),_0x37a78e['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1b4266,'FORMAT_INDENT'));const _0x6e716f={'type':'format','content':''};_0x37a78e['descriptionFactory']['registerDescriptionCallback'](_0x15e857=>{const {data:_0x59010f}=_0x15e857;if(!_0x59010f||'listType'!=_0x59010f['key'])return;let _0x104ae9=_0x15e857['head'];for(;_0x104ae9;){if(_0x104ae9['data']&&(('listStyle'==_0x104ae9['data']['key']||'listMarkerStyle'==_0x104ae9['data']['key'])&&(_0x104ae9['data']['newValue']&&'default'!=_0x104ae9['data']['newValue']||'default'!=_0x104ae9['data']['oldValue']&&!_0x59010f['newValue'])||!_0xfa9086&&_0x104ae9['data']['key']==m))return _0x6e716f;_0x104ae9=_0x104ae9['next'];}if(null==_0x59010f['newValue'])switch(_0x59010f['oldValue']){case'bulleted':return _0x313a01(o(_0x1b4266,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x313a01(o(_0x1b4266,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x313a01(o(_0x1b4266,'ELEMENT_TODO_LIST'));}switch(_0x59010f['newValue']){case'bulleted':return _0x23feaa(o(_0x1b4266,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x23feaa(o(_0x1b4266,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x23feaa(o(_0x1b4266,'ELEMENT_TODO_LIST'));}}),_0x37a78e['descriptionFactory']['registerDescriptionCallback'](_0x10c972=>{const {data:_0x12152c}=_0x10c972;if(_0x12152c&&'listIndent'==_0x12152c['key'])return null==_0x12152c['newValue']||null==_0x12152c['oldValue']&&0x0==_0x12152c['newValue']?_0x6e716f:void 0x0;}),_0x37a78e['descriptionFactory']['registerDescriptionCallback'](_0x3aee8a=>{if('attribute'!=_0x3aee8a['type'])return;const {data:_0x499ae3}=_0x3aee8a;if(!_0x499ae3||'listItemId'!=_0x499ae3['key'])return;const _0x20d5d0=Te(_0x3aee8a);return'newValue'==_0x20d5d0?{'type':'format','content':o(_0x1b4266,'*Merge:*\x20list\x20item')}:'oldValue'==_0x20d5d0?{'type':'format','content':o(_0x1b4266,'*Split:*\x20list\x20item')}:_0x6e716f;}),_0x51c973['model']['document']['registerPostFixer'](_0x31c257=>this['listItemIdFixer'](_0x31c257)),_0x51c973['model']['document']['registerPostFixer'](_0x1e63d1=>this['noTrackChangesFixer'](_0x1e63d1)),_0x51c973['model']['document']['on']('change:data',(_0x59f5ae,_0x44d81a)=>{if(_0x44d81a['isUndo']||!_0x44d81a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3e4c88){if(_0x3e4c88['batch']['isUndo']||!_0x3e4c88['batch']['isLocal'])return!0x1;let _0x34f950=!0x1;const _0x5b0453=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48f2a4=>_0x48f2a4['data']&&'listItemId'==_0x48f2a4['data']['key'])['filter'](_0x16d02a=>_0x16d02a['data']['newValue']&&_0x16d02a['data']['oldValue']);for(const _0x272364 of _0x5b0453)Te(_0x272364)||(_0x3e4c88['removeMarker'](_0x272364['getFirstMarker']()),_0x34f950=!0x0);return _0x34f950;}['noTrackChangesFixer'](_0x133539){if(_0x133539['batch']['isUndo']||!_0x133539['batch']['isLocal'])return!0x1;const _0x317282=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x317282['trackChangesCommand']['value'])return!0x1;let _0x4b7bc1=!0x1;const _0x5ab743=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x135366=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1cf34a=>'attribute'==_0x1cf34a['type'])['filter'](_0x10cd96=>_0x5ab743['includes'](_0x10cd96['attributeKey']));if(0x0==_0x135366['length'])return _0x4b7bc1;for(const _0x260b4f of _0x135366){const _0xce5274=_0x317282['_findSuggestions'](_0x260b4f['range'],'attribute')['filter'](_0x5ea171=>!_0x5ea171['meta']['isNextTo'])['map'](_0x3dc060=>_0x3dc060['suggestion'])['filter'](_0x2be622=>{const _0xafae99=_0x317282['_getAttributeKey'](_0x2be622);return _0x5ab743['includes'](_0xafae99);});if(_0xce5274['length']){for(const _0x5db0f1 of _0xce5274)_0x133539['removeMarker'](_0x5db0f1['getFirstMarker']());_0x4b7bc1=!0x0;}}return _0x4b7bc1;}['assureChains'](){const _0x3badc3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x349d57=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2cb2e1;const _0x4cf961=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xe47d08=>{if(_0xe47d08['data']['oldRange']||!_0xe47d08['data']['newRange'])return null;if(!_0xe47d08['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1afb93}=_0x3badc3['_splitMarkerName'](_0xe47d08['name']);if(!_0x3badc3['hasSuggestion'](_0x1afb93))return null;const _0x36a655=_0x3badc3['getSuggestion'](_0x1afb93);return _0x349d57['includes'](_0x36a655['data']['key']);})['map'](_0x122503=>{const {id:_0x194f13}=_0x3badc3['_splitMarkerName'](_0x122503['name']),_0x103ee7=_0x3badc3['getSuggestion'](_0x194f13);return _0x2cb2e1=_0x103ee7['attributes']['groupId'],_0x103ee7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4cf961['size'])return;const _0x5f05d7=_0x3badc3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x497064=>'attribute'==_0x497064['type']&&_0x497064['data']&&_0x349d57['includes'](_0x497064['data']['key'])&&_0x497064['attributes']['groupId']!=_0x2cb2e1)['map'](_0x4c506d=>({'listItem':_0x4c506d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4c506d['attributes']['groupId']})),_0x48c8ac=new Set();for(const {groupId:_0x2505c5,listItem:_0x2bc955}of _0x5f05d7)_0x4cf961['has'](_0x2bc955)&&_0x48c8ac['add'](_0x2505c5);for(const _0x364e22 of _0x3badc3['getSuggestions']())_0x48c8ac['has'](_0x364e22['attributes']['groupId'])&&_0x364e22['setAttribute']('groupId',_0x2cb2e1);}['_supportLegacySuggestions'](){const _0x46e7cc=this['editor'],_0x5abb55=_0x46e7cc['locale'],_0x131b6a=_0x46e7cc['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x131b6a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5bf024,_0x34e0d0){const _0x289647=[];for(let _0x5d4292 of _0x5bf024)_0x5d4292['start']['nodeAfter']===_0x5d4292['end']['parent']&&(_0x5d4292=_0x46e7cc['model']['createRange'](_0x46e7cc['model']['createPositionAt'](_0x5d4292['start']['nodeAfter'],0x0))),_0x289647['push'](_0x5d4292);_0x46e7cc['model']['change'](_0x464f45=>{const _0x4a617f=_0x46e7cc['model']['document']['selection'],_0x436094=Array['from'](_0x4a617f['getRanges']())['map'](_0x20abbe=>_0x18d379['fromRange'](_0x20abbe));_0x464f45['setSelection'](_0x289647),_0x46e7cc['commands']['get'](_0x34e0d0['commandName'])['refresh'](),_0x34e0d0['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x46e7cc['execute'](_0x34e0d0['commandName'],..._0x34e0d0['commandParams']),_0x464f45['setSelection'](_0x436094);for(const _0x2297ad of _0x436094)_0x2297ad['detach']();});}),_0x131b6a['descriptionFactory']['registerElementLabel'](function(_0x6d7955){const _0x3806cf=!_0x46e7cc['model']['schema']['isObject'](_0x6d7955),_0x45e207=_0x6d7955['previousSibling'],_0x318d1d=_0x6d7955['nextSibling'],_0xaffe9d=_0x6d7955['getAttribute']('listItemId'),_0x4046f1=!_0x45e207||_0x45e207['getAttribute']('listItemId')!==_0xaffe9d,_0x32c542=!_0x318d1d||_0x318d1d['getAttribute']('listItemId')!==_0xaffe9d;return _0x3806cf&&Boolean(_0xaffe9d)&&_0x4046f1&&_0x32c542;},_0x26395f=>o(_0x5abb55,'ELEMENT_LIST_ITEM',_0x26395f));}['_registerLegacyDescription'](){const _0x548606=this['editor'],_0x49e1c2=_0x548606['locale'];function _0x4de1fb(_0x1e86df){const _0x47b487=_0x548606['commands']['get']('bulletedList')['value'],_0x43eda4=_0x548606['commands']['get']('numberedList')['value'];return'numberedList'===_0x1e86df?_0x47b487:_0x43eda4;}_0x548606['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x438b0f){if('formatBlock'!=_0x438b0f['type'])return;const {data:_0x1813db}=_0x438b0f;if(!_0x1813db)return;let _0x225089,_0x5edc1a,_0x1726a7,_0x3f35ef;switch(_0x1813db['commandName']){case'bulletedList':_0x1726a7=_0x1813db['commandParams'][0x0]['forceValue'],_0x3f35ef=_0x4de1fb(_0x1813db['commandName']),_0x225089=_0x1726a7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f35ef&&_0x548606['config']['get']('list.multiBlock')||(_0x225089='*Change\x20to:*\x20%0'),_0x5edc1a={'type':'format','content':o(_0x49e1c2,_0x225089,o(_0x49e1c2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1726a7=_0x1813db['commandParams'][0x0]['forceValue'],_0x3f35ef=_0x4de1fb(_0x1813db['commandName']),_0x225089=_0x1726a7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3f35ef&&_0x548606['config']['get']('list.multiBlock')||(_0x225089='*Change\x20to:*\x20%0'),_0x5edc1a={'type':'format','content':o(_0x49e1c2,_0x225089,o(_0x49e1c2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x225089='*Indent:*\x20%0',_0x5edc1a={'type':'format','content':o(_0x49e1c2,_0x225089,o(_0x49e1c2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x225089=function(_0x2ad4a8){const _0x3791bf=_0x2ad4a8['getFirstRange']();let _0x5c53ca=_0x3791bf['start']['nodeAfter'];for(;_0x5c53ca&&_0x3791bf['containsItem'](_0x5c53ca);){if(_0x5c53ca['getAttribute']('listIndent')>0x0)return!0x1;_0x5c53ca=_0x5c53ca['nextSibling'];}return!0x0;}(_0x438b0f)?o(_0x49e1c2,'*Format:*\x20remove\x20from\x20%0',o(_0x49e1c2,function(_0x441083){return'ELEMENT_'+_0x441083['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x438b0f))):o(_0x49e1c2,'*Outdent:*\x20%0',o(_0x49e1c2,'ELEMENT_LIST_ITEM')),_0x5edc1a={'type':'format','content':_0x225089};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1813db['multipleBlocks']&&(_0x225089='*Merge:*\x20%0',_0x5edc1a={'type':'deletion','content':o(_0x49e1c2,_0x225089,o(_0x49e1c2,'ELEMENT_LIST_ITEM'))});}return _0x5edc1a;});}}function Te(_0x41a5b3){let _0x54f3ae=_0x41a5b3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x54f3ae;){const _0x739080=_0x54f3ae['getAttribute']('listItemId');if(!_0x739080)return!0x1;if(_0x739080==_0x41a5b3['data']['newValue'])return'newValue';if(_0x739080==_0x41a5b3['data']['oldValue'])return'oldValue';_0x54f3ae=_0x54f3ae['previousSibling'];}return!0x1;}class q extends _0xda4d6f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xb838dc=this['editor']['config']['get']('list.properties'),_0x54ec1a=this['editor']['plugins']['get']('TrackChangesEditing');_0xb838dc['styles']&&(_0x54ec1a['enableDefaultAttributesIntegration']('listStyle'),_0x54ec1a['registerBlockAttribute']('listStyle')),_0xb838dc['reversed']&&(_0x54ec1a['enableDefaultAttributesIntegration']('listReversed'),_0x54ec1a['registerBlockAttribute']('listReversed')),_0xb838dc['startIndex']&&(_0x54ec1a['enableDefaultAttributesIntegration']('listStart'),_0x54ec1a['registerBlockAttribute']('listStart'));const _0x22e9d4={'type':'format','content':''};_0x54ec1a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3349e1=this['editor']['locale'];_0x54ec1a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3349e1,'FORMAT_LIST_REVERSED')),_0x54ec1a['descriptionFactory']['registerDescriptionCallback'](_0x19c193=>{const {data:_0x44e893}=_0x19c193;if(_0x44e893&&'listReversed'==_0x44e893['key'])return null==_0x44e893['newValue']||0x0==_0x44e893['newValue']&&null==_0x44e893['oldValue']?_0x22e9d4:void 0x0;}),_0x54ec1a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3349e1,'FORMAT_LIST_START')),_0x54ec1a['descriptionFactory']['registerDescriptionCallback'](_0x2bcde1=>{const {data:_0x3233e3}=_0x2bcde1;if(_0x3233e3&&'listStart'==_0x3233e3['key'])return null==_0x3233e3['newValue']||0x1==_0x3233e3['newValue']&&null==_0x3233e3['oldValue']?_0x22e9d4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4990cf=>{if(_0x4990cf['batch']['isUndo'])return!0x1;let _0xdc036a=!0x1;const _0x1430a4=_0x54ec1a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x491a07=>{const _0x31417b=_0x54ec1a['_getAttributeKey'](_0x491a07);return'listStart'==_0x31417b||'listReversed'==_0x31417b;});for(const _0x331cde of _0x1430a4){const _0x3cb590=_0x331cde['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3cb590||'customNumbered'==_0x3cb590)continue;_0x54ec1a['_findSuggestions'](_0x331cde['getFirstRange'](),'attribute')['find'](_0x3b8985=>'listType'==_0x54ec1a['_getAttributeKey'](_0x3b8985['suggestion']))||(_0x4990cf['removeMarker'](_0x331cde['getFirstMarker']()),_0xdc036a=!0x0);}return _0xdc036a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5e5915){const _0xee9cfa=this['editor']['locale'],{data:_0x54f72e}=_0x5e5915,_0x51ae15={'type':'format','content':''};if(!_0x54f72e||'listStyle'!=_0x54f72e['key'])return;if(!_0x54f72e['oldValue'])return'default'==_0x54f72e['newValue']?_0x51ae15:{'type':'format','content':''+o(_0xee9cfa,'*Set\x20format:*\x20%0',o(_0xee9cfa,this['_getTranslationKeyForListStyle'](_0x54f72e['newValue'])))};if(!_0x54f72e['newValue']){if('default'==_0x54f72e['oldValue'])return _0x51ae15;let _0x4c057d=_0x5e5915['head'];for(;_0x4c057d;){if(_0x4c057d['data']&&'listType'==_0x4c057d['data']['key']&&_0x4c057d['data']['newValue'])return _0x51ae15;_0x4c057d=_0x4c057d['next'];}return{'type':'format','content':''+o(_0xee9cfa,'*Remove\x20format:*\x20%0',o(_0xee9cfa,this['_getTranslationKeyForListStyle'](_0x54f72e['oldValue'])))};}if('default'!=_0x54f72e['newValue'])return{'type':'format','content':''+o(_0xee9cfa,'*Set\x20format:*\x20%0',o(_0xee9cfa,this['_getTranslationKeyForListStyle'](_0x54f72e['newValue'])))};let _0x232bd8=_0x5e5915['head'];for(;_0x232bd8;){if(_0x232bd8['data']&&'listType'==_0x232bd8['data']['key']&&_0x232bd8['data']['newValue']&&_0x232bd8['data']['oldValue'])return _0x51ae15;_0x232bd8=_0x232bd8['next'];}return{'type':'format','content':o(_0xee9cfa,'*Set\x20format:*\x20%0',o(_0xee9cfa,'ELEMENT_'+_0x5e5915['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5e8a9d=this['editor'],_0x3629cb=_0x5e8a9d['locale'];_0x5e8a9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28089b=>{if('formatBlock'!=_0x28089b['type'])return;const {data:_0x253a39}=_0x28089b;if(!_0x253a39)return;let _0x46204f,_0x564f2a;switch(_0x253a39['commandName']){case'listStyle':_0x46204f='*Change\x20to:*\x20%0',_0x564f2a={'type':'format','content':o(_0x3629cb,_0x46204f,o(_0x3629cb,this['_getTranslationKeyForListStyle'](_0x253a39['commandParams'][0x0]['type'])))};break;case'listReversed':_0x46204f=_0x253a39['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x564f2a={'type':'format','content':o(_0x3629cb,_0x46204f)};break;case'listStart':_0x46204f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x564f2a={'type':'format','content':o(_0x3629cb,_0x46204f,_0x253a39['commandParams'][0x0]['startIndex'])};}return _0x564f2a;});}['_getTranslationKeyForListStyle'](_0x532158){return'ELEMENT_'+function(_0x4d1b77){if(Se['includes'](_0x4d1b77))return'bulleted';if(_e['includes'](_0x4d1b77))return'numbered';return null;}(_0x532158)['toUpperCase']()+'_LIST_'+_0x532158['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xda4d6f{['afterInit'](){const _0x1b8567=this['editor'];_0x1b8567['commands']['get']('emoji')&&_0x1b8567['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xda4d6f{static get['requires'](){return[_0x2e1b39];}['init'](){const _0xa5b5ca=this['editor'],_0x5e04cf=_0xa5b5ca['plugins']['get']('TrackChangesEditing'),_0x30fe65=_0xa5b5ca['commands']['get']('enter');_0x5e04cf['enableCommand']('enter',()=>{_0xa5b5ca['model']['change'](_0x3fd87e=>{const _0x3d8f41=_0xa5b5ca['model']['document']['selection'],_0x444c08=_0x3d8f41['getFirstPosition'](),_0x1c049c=_0x18d379['fromRange'](_0x3d8f41['getFirstRange']());if(_0x30fe65['enterBlock'](_0x3fd87e)){const _0x25db8f=_0xa5b5ca['model']['createPositionAt'](_0x444c08['parent']['nextSibling'],0x0),_0x130d1c=_0x3fd87e['createRange'](_0x444c08,_0x25db8f);_0x5e04cf['markInsertion'](_0x130d1c);}else _0x3fd87e['setSelection'](_0x3fd87e['createRange'](_0x1c049c['end']));_0x1c049c['detach'](),_0x30fe65['fire']('afterExecute',{'writer':_0x3fd87e});});}),_0xa5b5ca['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xa5b5ca,'split'),{'priority':'high'}),_0xa5b5ca['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x37e4ab,_0x5233c3,_0x214977)=>{const _0x27cb63=_0x214977['mapper']['markerNameToElements'](_0x5233c3['markerName']);if(_0x27cb63){for(const _0x4cc551 of _0x27cb63)_0x4cc551['hasClass']('ck-suggestion-marker-split')&&(_0x214977['mapper']['unbindElementFromMarkerName'](_0x4cc551,_0x5233c3['markerName']),_0x214977['writer']['remove'](_0x4cc551));}},{'priority':'high'}),_0xa5b5ca['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x212aac,_0x542ceb,_0x440d15)=>{_0x440d15['options']['showSuggestionHighlights']&&De(_0xa5b5ca,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x212aac,_0x542ceb,_0x440d15);},{'priority':'high'});}}class Q extends _0xda4d6f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x59077d=this['editor']['plugins']['get']('TrackChangesEditing');_0x59077d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x59077d['enableCommand']('findNext'),_0x59077d['enableCommand']('findPrevious'),_0x59077d['enableCommand']('replace'),_0x59077d['enableCommand']('replaceAll');}['handleFindCommand'](_0x260e78,_0x4c2602,_0x499635={}){const _0x14c019=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x260e78(_0x134c7a=>{let _0x2f5261=('string'==typeof _0x4c2602?_0x14c019['findByTextCallback'](_0x4c2602,_0x499635):_0x4c2602)(_0x134c7a);Array['isArray'](_0x2f5261)&&(_0x2f5261={'results':_0x2f5261,'searchText':'string'==typeof _0x4c2602?_0x4c2602:''});const _0x284775=_0x2f5261['results']['filter'](_0x3e6d24=>!0x1===this['_isInDeletionRange'](_0x3e6d24,_0x134c7a['item']));return{..._0x2f5261,'results':_0x284775};},_0x499635);}['_isInDeletionRange'](_0x5813c1,_0x57fe44){const _0x4a65a4=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x57fe44,_0x5813c1['start']),this['editor']['model']['createPositionAt'](_0x57fe44,_0x5813c1['end']));for(const _0x2b0751 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4a65a4['getIntersection'](_0x2b0751['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xda4d6f{['afterInit'](){const _0x3b4339=this['editor']['locale'],_0x25664b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x21fedf,commandName:_0x4968ec}of eo)this['editor']['plugins']['has'](_0x21fedf)&&(_0x25664b['enableDefaultAttributesIntegration'](_0x4968ec),_0x25664b['registerInlineAttribute'](_0x4968ec));_0x25664b['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3b4339,'FORMAT_FONT_SIZE')),_0x25664b['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3b4339,'FORMAT_FONT_FAMILY')),_0x25664b['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3b4339,'FORMAT_FONT_COLOR')),_0x25664b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3b4339,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c965b=this['editor'],_0x249663=_0x4c965b['locale'];_0x4c965b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2264e5=>{const _0x2d573b=_0x249663['t'];if('formatInline'!=_0x2264e5['type'])return;const {data:_0x29f295}=_0x2264e5;if(null!=_0x29f295){if('fontSize'==_0x29f295['commandName']){const _0xd9aa4f=_0x29f295['commandParams'][0x0]['value'];if(_0xd9aa4f){const _0x423e7b=_0x2d573b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5b6f76=>_0x5b6f76['model']==_0xd9aa4f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x249663,'*Set\x20font\x20size:*\x20%0',_0x423e7b)};}return{'type':'format','content':o(_0x249663,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x29f295['commandName']){const _0x5182f1=_0x29f295['commandParams'][0x0]['value'];return _0x5182f1?{'type':'format','content':o(_0x249663,'*Set\x20font\x20family:*\x20%0',_0x5182f1)}:{'type':'format','content':o(_0x249663,'*Reset\x20font\x20family*')};}if('fontColor'==_0x29f295['commandName']){const _0x172da8=_0x29f295['commandParams'][0x0]['value'];if(_0x172da8){const _0x15ab99=_0x4d2350(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1ecbc1=>_0x1ecbc1['model']==_0x172da8);let _0x321c8f=_0x172da8,_0x50d975='';return _0x15ab99&&(_0x321c8f=_0x15ab99['label'],_0x50d975=_0x2d573b(_0x321c8f)['toLowerCase']()),{'type':'format','content':o(_0x249663,'*Set\x20font\x20color:*\x20%0',_0x50d975)['trim'](),'color':{'value':_0x172da8,'title':_0x50d975||_0x321c8f}};}return{'type':'format','content':o(_0x249663,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x29f295['commandName']){const _0x522586=_0x29f295['commandParams'][0x0]['value'];if(_0x522586){const _0x585952=_0x4d2350(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x287de7=>_0x287de7['model']==_0x522586);let _0x2fad0d=_0x522586,_0x36ef62='';return _0x585952&&(_0x2fad0d=_0x585952['label'],_0x36ef62=_0x2d573b(_0x2fad0d)['toLowerCase']()),{'type':'format','content':o(_0x249663,'*Set\x20font\x20background\x20color:*\x20%0',_0x36ef62)['trim'](),'color':{'value':_0x522586,'title':_0x36ef62||_0x2fad0d}};}return{'type':'format','content':o(_0x249663,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xda4d6f{['afterInit'](){const _0x335220=this['editor'],_0x2124fb=_0x335220['plugins']['get']('TrackChangesEditing'),_0x45a47a=_0x335220['commands']['get']('copyFormat'),_0x224ea0=_0x335220['commands']['get']('pasteFormat');_0x45a47a&&_0x224ea0&&(_0x2124fb['enableDefaultAttributesIntegration']('pasteFormat'),_0x2124fb['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1e5947=this['editor'],_0x1d896=_0x1e5947['locale'];_0x1e5947['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ec5cd=>{if('formatBlock'!=_0x4ec5cd['type']&&'formatInline'!=_0x4ec5cd['type'])return;const {data:_0x118e6b}=_0x4ec5cd;if(_0x118e6b&&'pasteFormat'===_0x118e6b['commandName']){const _0x28a3aa=[],_0x1cff9d=_0x118e6b['commandParams'][0x0];for(const [_0x4bab02,_0x3ae910]of Object['entries'](_0x1cff9d))_0x28a3aa['push'](ro(_0x1e5947,_0x4bab02,_0x3ae910));return _0x28a3aa['length']?{'type':'format','content':o(_0x1d896,'*Set\x20format\x20to:*\x20%0',_0x28a3aa['join'](',\x20'))}:{'type':'format','content':o(_0x1d896,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x55969,_0x147e9f,_0x2ba3e4){const _0xaf1469=_0x55969['locale']['t'],_0x43badc=_0x147e9f['split'](/(?=[A-Z])/)['join']('\x20'),_0x336313=_0xaf1469(_0x43badc['charAt'](0x0)['toUpperCase']()+_0x43badc['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2ba3e4)return _0x336313;if('fontColor'===_0x147e9f||'fontBackgroundColor'===_0x147e9f){const _0x2f5f8e=_0x4d2350(_0x55969['config']['get']('fontColor.colors'))['find'](_0x4812d4=>_0x4812d4['model']==_0x2ba3e4);return _0x336313+'\x20('+(_0x2f5f8e?_0xaf1469(_0x2f5f8e['label'])['toLowerCase']():_0x2ba3e4)+')';}if('fontSize'===_0x147e9f&&isNaN(parseFloat(_0x2ba3e4))){const _0x3311ee=_0x55969['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x55969['config']['get']('fontSize.options'))['find'](_0x3cfb0c=>_0x3cfb0c['model']==_0x2ba3e4);return _0x336313+'\x20('+(_0x3311ee?_0xaf1469(_0x3311ee['title'])['toLowerCase']():_0x2ba3e4)+')';}return _0x336313+'\x20('+_0x2ba3e4+')';}class Z extends _0xda4d6f{['_headingOptions'];['afterInit'](){const _0x33f138=this['editor'];if(!_0x33f138['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x33f138['config']['get']('heading.options');const _0x52fe3d=_0x33f138['locale'],_0x167148=_0x33f138['plugins']['get']('TrackChangesEditing');_0x167148['enableDefaultAttributesIntegration']('heading');for(const _0x41367c of this['_headingOptions'])'paragraph'!=_0x41367c['model']&&_0x167148['descriptionFactory']['registerElementLabel'](_0x41367c['model'],_0x41a3d4=>{const _0x2cb88c=this['_getHeadingLevel'](_0x41367c['model']);return null!==_0x2cb88c?_0x151083(_0x41a3d4,_0x2cb88c):_0x122b94(_0x41a3d4,_0x41367c['title']);});function _0x151083(_0x78b9a5,_0x1961c5){return o(_0x52fe3d,'ELEMENT_HEADING',[_0x78b9a5,_0x1961c5]);}function _0x122b94(_0xbb6cf0,_0x4dfb07){return o(_0x52fe3d,'ELEMENT_HEADING_CUSTOM',[_0xbb6cf0,_0x4dfb07]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33863a=this['editor'],_0x414b02=_0x33863a['locale'];function _0xb3e591(_0x1e244e,_0x32fd59){return o(_0x414b02,'ELEMENT_HEADING_CUSTOM',[_0x1e244e,_0x32fd59]);}_0x33863a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x78f293=>{if('formatBlock'!=_0x78f293['type'])return;const {data:_0x428f06}=_0x78f293;if(_0x428f06&&'heading'==_0x428f06['commandName']){const _0x389528=_0x428f06['commandParams'][0x0]['value'],_0x350c9f=this['_getHeadingLevel'](_0x389528);if(null!==_0x350c9f)return{'type':'format','content':o(_0x414b02,'*Change\x20to:*\x20%0',(_0x1aca3a=0x1,_0x30579d=_0x350c9f,o(_0x414b02,'ELEMENT_HEADING',[_0x1aca3a,_0x30579d])))};const _0xf4cf28=this['_headingOptions']['find'](_0x5ce6fb=>_0x5ce6fb['model']===_0x389528)['title'];return{'type':'format','content':o(_0x414b02,'*Change\x20to:*\x20%0',_0xb3e591(0x1,_0xf4cf28))};}var _0x1aca3a,_0x30579d;});}['_getHeadingLevel'](_0x2bcaa3){const _0x5cf32c=_0x2bcaa3['match'](/^heading(\d+)/);if(_0x5cf32c)return _0x5cf32c[0x1];const _0xf7b7af=this['_headingOptions']?.['find'](_0x319a87=>_0x319a87['model']==_0x2bcaa3);if(_0xf7b7af&&_0xf7b7af['view']){const _0x5d0d57=_0xf7b7af['view'],_0x59b3c5=(_0x5d0d57['name']??_0x5d0d57)['match'](/^h(\d+)/);if(_0x59b3c5)return _0x59b3c5[0x1];}return null;}}class tt extends _0xda4d6f{['afterInit'](){const _0x384f0e=this['editor'];if(!_0x384f0e['plugins']['has']('HighlightEditing'))return;const _0x5cf274=_0x384f0e['plugins']['get']('TrackChangesEditing'),_0x4ddfbe=_0x384f0e['locale'];_0x5cf274['enableDefaultAttributesIntegration']('highlight'),_0x5cf274['registerInlineAttribute']('highlight'),_0x5cf274['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4ddfbe,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53ba39=this['editor'],_0x5536f5=_0x53ba39['locale'];_0x53ba39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x287f78=>{if('formatInline'!=_0x287f78['type'])return;const {data:_0x573529}=_0x287f78;if(_0x573529&&'highlight'==_0x573529['commandName']){const _0x1637d9=_0x5536f5['t'],_0x4ed8b7=_0x573529['commandParams'][0x0]['value'];if(_0x4ed8b7){const _0x4f9c26=_0x53ba39['config']['get']('highlight.options')['find'](_0x5a1a8b=>_0x5a1a8b['model']==_0x4ed8b7),_0x108dd0=_0x1637d9(_0x4f9c26['title'])['toLowerCase']();return{'type':'format','content':o(_0x5536f5,'*Set\x20highlight:*\x20%0',_0x108dd0),'color':{'value':_0x4f9c26['color'],'title':_0x4f9c26['title']}};}return{'type':'format','content':o(_0x5536f5,'*Remove\x20highlight*',o(_0x5536f5,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xda4d6f{['afterInit'](){const _0x4f8efd=this['editor'];if(!_0x4f8efd['plugins']['has']('HorizontalLineEditing'))return;_0x4f8efd['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x39d219=_0x4f8efd['plugins']['get']('TrackChangesEditing'),_0x206e12=_0x4f8efd['locale'];_0x39d219['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2af870=>o(_0x206e12,'ELEMENT_HORIZONTAL_LINE',_0x2af870)),_0x4f8efd['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x34e6c7,{writer:_0xedaeda,options:_0x32246f})=>{if(!_0x32246f['showSuggestionHighlights'])return null;const _0x7f4e4e=_0xedaeda['createContainerElement']('div'),_0x33617a=_0xedaeda['createEmptyElement']('hr');return _0xedaeda['addClass']('ck-horizontal-line',_0x7f4e4e),_0xedaeda['insert'](_0xedaeda['createPositionAt'](_0x7f4e4e,0x0),_0x33617a),_0x7f4e4e;},'converterPriority':'high'});}}class nt extends _0xda4d6f{['afterInit'](){const _0x53da2a=this['editor'];if(!_0x53da2a['plugins']['has']('HtmlEmbed'))return;const _0x222604=_0x53da2a['plugins']['get']('TrackChangesEditing'),_0x4f2662=_0x53da2a['locale'];_0x222604['descriptionFactory']['registerElementLabel']('rawHtml',_0x381fbe=>o(_0x4f2662,'ELEMENT_HTML_EMBED',_0x381fbe)),_0x222604['enableDefaultAttributesIntegration']('htmlEmbed'),_0x222604['registerBlockAttribute']('value'),_0x222604['descriptionFactory']['registerDescriptionCallback'](_0x5c625e=>{if('attribute'!=_0x5c625e['type'])return;const {data:_0xc15a1e}=_0x5c625e;if(_0xc15a1e&&'value'==_0xc15a1e['key']&&_0x5c625e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x133548=o(_0x4f2662,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4f2662,'*Change\x20%0\x20content*',_0x133548)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x514c35=this['editor'],_0x4dd41d=_0x514c35['locale'];_0x514c35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7f9a13=>{if('formatBlock'!=_0x7f9a13['type'])return;const {data:_0x1a5d16}=_0x7f9a13;if(_0x1a5d16&&'htmlEmbed'==_0x1a5d16['commandName']){const _0x138d3d=o(_0x4dd41d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4dd41d,'*Change\x20%0\x20content*',_0x138d3d)};}});}}class et extends _0xda4d6f{['afterInit'](){const _0x243693=this['editor'];if(!_0x243693['plugins']['has']('ImageEditing'))return;const _0x153a64=_0x243693['plugins']['get']('TrackChangesEditing'),_0x1951fd=_0x243693['plugins']['get']('ImageUtils'),_0x2f5b02=_0x243693['locale'];_0x153a64['enableCommand']('insertImage'),_0x153a64['descriptionFactory']['registerElementLabel']('imageBlock',_0x16dd06=>o(_0x2f5b02,'ELEMENT_IMAGE',_0x16dd06)),_0x153a64['descriptionFactory']['registerElementLabel']('imageInline',_0x4cad38=>o(_0x2f5b02,'ELEMENT_INLINE_IMAGE',_0x4cad38)),_0x153a64['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2f5b02,'ELEMENT_CAPTION')),_0x243693['plugins']['has']('ImageUploadEditing')&&_0x153a64['enableCommand']('uploadImage'),_0x243693['plugins']['has']('ImageBlockEditing')&&_0x243693['plugins']['has']('ImageInlineEditing')&&(_0x153a64['enableCommand']('imageTypeInline',(_0x27c04d,_0x5f3538)=>{const _0x39437a=_0x1951fd['getClosestSelectedImageElement'](_0x243693['model']['document']['selection']);_0x243693['model']['change'](()=>{_0x153a64['markBlockFormat'](_0x39437a,{'commandName':'imageTypeInline','commandParams':[_0x5f3538]},[],'convertBlockImageToInline');});}),_0x153a64['enableCommand']('imageTypeBlock',(_0x123642,_0x2cd09e)=>{_0x243693['model']['change'](_0x5332b0=>{let _0x5a9a2a=_0x1951fd['getClosestSelectedImageElement'](_0x243693['model']['document']['selection']),_0x454652=_0x5332b0['createRangeOn'](_0x5a9a2a);const _0xc3cc7c=_0x168bdb['fromPosition'](_0x454652['start'],'toPrevious'),_0x22b241=_0x168bdb['fromPosition'](_0x454652['end'],'toNext');_0x153a64['forceDefaultExecution'](()=>_0x123642(_0x2cd09e)),_0x5a9a2a=_0x1951fd['getClosestSelectedImageElement'](_0x243693['model']['document']['selection']),_0x454652=_0x5332b0['createRangeOn'](_0x5a9a2a);const _0x28515b=_0x5332b0['createRange'](_0xc3cc7c,_0x22b241);_0xc3cc7c['detach'](),_0x22b241['detach'](),_0x153a64['markBlockFormat'](_0x5a9a2a,{'commandName':'imageTypeInline','commandParams':[_0x2cd09e]},[],'convertInlineImageToBlock'),_0x28515b['start']['isBefore'](_0x454652['start'])&&_0x153a64['markInsertion'](_0x5332b0['createRange'](_0x28515b['start'],_0x454652['start']),'convertInlineImageToBlock'),_0x454652['end']['isBefore'](_0x28515b['end'])&&_0x153a64['markInsertion'](_0x5332b0['createRange'](_0x454652['end'],_0x28515b['end']),'convertInlineImageToBlock');});}),_0x153a64['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x153a64['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x153a64['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x153a64['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x153a64['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x153a64['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5c30bf])=>{const _0x20505b=_0x153a64['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x235605=_0x5c30bf['start'],_0x18b569=_0x5c30bf['end'];const _0x23ae11=_0x243693['model']['schema']['getNearestSelectionRange'](_0x235605,'backward'),_0x3eb27f=_0x243693['model']['schema']['getNearestSelectionRange'](_0x18b569,'forward');_0x23ae11['isCollapsed']&&(_0x235605=_0x23ae11['start']),_0x3eb27f['isCollapsed']&&(_0x18b569=_0x3eb27f['end']),_0x20505b([_0x243693['model']['createRange'](_0x235605,_0x18b569)]);}),_0x153a64['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2d832f),_0x153a64['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2d832f)),_0x243693['plugins']['has']('ImageCaptionEditing')&&(_0x153a64['enableCommand']('toggleImageCaption',(_0x463258,_0xf8d70e)=>{const _0x3c11f1=_0x243693['plugins']['get']('ImageCaptionUtils');let _0x23c6d9=_0x1951fd['getClosestSelectedImageElement'](_0x243693['model']['document']['selection']),_0x23d22a=_0x3c11f1['getCaptionFromImageModelElement'](_0x23c6d9);_0x243693['model']['change'](()=>{if(_0x23d22a)return void _0x153a64['markDeletion'](_0x243693['model']['createRangeOn'](_0x23d22a));const _0xb4bd8e=_0x1951fd['isBlockImage'](_0x23c6d9);_0x463258(_0xf8d70e),_0x23c6d9=_0x1951fd['getClosestSelectedImageElement'](_0x243693['model']['document']['selection']),_0x23d22a=_0x3c11f1['getCaptionFromImageModelElement'](_0x23c6d9),_0x153a64['markInsertion'](_0x243693['model']['createRangeOn'](_0x23d22a),_0xb4bd8e?null:'imageCaption');});}),_0x153a64['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2d832f));const _0x3c5506=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2694e9(_0x802531,_0x38829c){const _0xdc820c=_0x3c5506['findIndex'](({type:_0x321da8,subType:_0x4237bf})=>_0x802531['type']==_0x321da8&&_0x802531['subType']==_0x4237bf),_0x191d54=_0x3c5506['findIndex'](({type:_0x1697bd,subType:_0x29c5d8})=>_0x38829c['type']==_0x1697bd&&_0x38829c['subType']==_0x29c5d8);if(_0xdc820c<0x0||_0x191d54<0x0)return!0x1;const _0x30003f=_0x802531['getFirstRange'](),_0x5b19d0=_0x38829c['getFirstRange']();if((0x0==_0xdc820c||0x1==_0xdc820c)&&0x2==_0x191d54&&_0x30003f['isIntersecting'](_0x5b19d0))return!0x0;if(0x2==_0xdc820c&&0x3==_0x191d54){const _0x49f536=_0x153a64['_findSuggestions'](_0x30003f,'insertion')['filter'](({suggestion:_0x5eb356,meta:_0x4d8982})=>_0x4d8982['isOwn']&&'convertInlineImageToBlock'==_0x5eb356['subType']);if(_0x49f536['length']>0x1&&_0x5b19d0['end']['isEqual'](_0x30003f['start']))return!0x0;if(0x1==_0x49f536['length']&&(_0x30003f['start']['isEqual'](_0x5b19d0['end'])||_0x30003f['end']['isEqual'](_0x5b19d0['start'])))return!0x0;}if(0x3==_0xdc820c&&0x3==_0x191d54&&_0x30003f['start']['isBefore'](_0x5b19d0['start'])){const _0x3e901a=_0x30003f['end']['nodeAfter'],_0x577408=_0x5b19d0['start']['nodeBefore'];return _0x1951fd['isBlockImage'](_0x3e901a)&&_0x3e901a===_0x577408;}return!0x1;}function _0x2d832f(_0x10c3d1,_0x1e4d36){return _0x2694e9(_0x10c3d1,_0x1e4d36)?[_0x10c3d1,_0x1e4d36]:_0x2694e9(_0x1e4d36,_0x10c3d1)?[_0x1e4d36,_0x10c3d1]:null;}_0x243693['plugins']['has']('ImageResize')&&(_0x153a64['enableDefaultAttributesIntegration']('resizeImage'),_0x153a64['registerBlockAttribute']('resizedWidth'),_0x153a64['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2f5b02,'FORMAT_IMAGE_SIZE'))),_0x243693['plugins']['has']('ImageTextAlternativeEditing')&&(_0x153a64['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x153a64['registerBlockAttribute']('alt')),_0x243693['plugins']['has']('PictureEditing')&&(_0x153a64['registerBlockAttribute']('sources'),_0x153a64['descriptionFactory']['registerDescriptionCallback'](_0x85b6=>{if('attribute'!=_0x85b6['type'])return;const {data:_0x294980}=_0x85b6;return _0x294980&&'sources'==_0x294980['key']?{'type':'format','content':''}:void 0x0;})),_0x243693['plugins']['has']('ImageSizeAttributes')&&(_0x153a64['registerBlockAttribute']('width'),_0x153a64['registerBlockAttribute']('height'),_0x153a64['descriptionFactory']['registerDescriptionCallback'](_0x36ea06=>{if('attribute'!=_0x36ea06['type'])return;const {data:_0x4b21b9}=_0x36ea06;return!_0x4b21b9||'width'!=_0x4b21b9['key']&&'height'!=_0x4b21b9['key']?void 0x0:{'type':'format','content':''};})),_0x153a64['descriptionFactory']['registerDescriptionCallback'](_0x55a981=>{if(!!_0x3c5506['find'](({type:_0x44d4ce,subType:_0x40e7a4})=>_0x55a981['type']==_0x44d4ce&&_0x55a981['subType']==_0x40e7a4))return _0x55a981['previous']?{}:void 0x0;}),_0x153a64['descriptionFactory']['registerDescriptionCallback'](_0x14b278=>{if('insertion'==_0x14b278['type']||'deletion'==_0x14b278['type']){const _0x3018cc=_0x14b278['getContainedElement']();if(_0x3018cc&&_0x3018cc['is']('element','caption'))return{'type':'insertion'==_0x14b278['type']?'addObject':'removeObject','element':_0x3018cc,'quantity':0x1};}}),_0x153a64['descriptionFactory']['registerDescriptionCallback'](_0x36d53a=>'formatBlock'==_0x36d53a['type']&&'convertInlineImageToBlock'==_0x36d53a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x36d53a['type']&&'convertBlockImageToInline'==_0x36d53a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x153a64['descriptionFactory']['registerDescriptionCallback'](_0x57b05a=>{if('attribute'!=_0x57b05a['type'])return;const {data:_0x2e9f9f}=_0x57b05a;if(!_0x2e9f9f||'alt'!=_0x2e9f9f['key'])return;const _0x1709d=_0x2e9f9f['newValue'];return _0x1709d?{'type':'format','content':o(_0x2f5b02,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1709d+'\x22')}:{'type':'format','content':o(_0x2f5b02,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x555105=this['editor'],_0x101cc7=_0x555105['locale'];_0x555105['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f1adf=>{if('formatBlock'!=_0x5f1adf['type']&&'formatInline'!=_0x5f1adf['type'])return;const {data:_0x18762e}=_0x5f1adf;if(_0x18762e){if('imageTextAlternative'==_0x18762e['commandName']){const _0x1e40c2=_0x18762e['commandParams'][0x0]['newValue'];return _0x1e40c2?{'type':'format','content':o(_0x101cc7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1e40c2+'\x22')}:{'type':'format','content':o(_0x101cc7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x18762e['commandName']){const _0x169ec8=_0x18762e['commandParams'][0x0]['width'];return _0x169ec8?{'type':'format','content':o(_0x101cc7,'*Set\x20image\x20width:*\x20%0',_0x169ec8)}:{'type':'format','content':o(_0x101cc7,'*Reset\x20image\x20width*')};}}});}}class st extends _0xda4d6f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x50f9ba=this['editor']['locale'],_0x462c7d=this['editor']['plugins']['get']('TrackChangesEditing');_0x462c7d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x462c7d['registerBlockAttribute']('src'),_0x462c7d['descriptionFactory']['registerDescriptionCallback'](_0x316f84=>{if('attribute'!=_0x316f84['type'])return;const {data:_0x1ef0d6}=_0x316f84;return _0x1ef0d6&&'src'==_0x1ef0d6['key']?_0x1ef0d6['newValue']&&_0x1ef0d6['oldValue']?{'type':'format','content':o(_0x50f9ba,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3dceab=this['editor']['plugins']['get']('TrackChangesEditing');_0x3dceab['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3dceab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3dceab['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3dceab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3de688=this['editor'],_0x370532=_0x3de688['locale'];_0x3de688['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43433a=>{if('formatBlock'!=_0x43433a['type']&&'formatInline'!=_0x43433a['type'])return;const {data:_0x27dd65}=_0x43433a;if(!_0x27dd65||'replaceImageSource'!=_0x27dd65['commandName'])return;return{'type':'format','content':o(_0x370532,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xda4d6f{['afterInit'](){const _0x3c16e6=this['editor'];if(!_0x3c16e6['plugins']['has']('ImageStyleEditing'))return;const _0x5d506b=_0x3c16e6['plugins']['get']('TrackChangesEditing'),_0x190a5c=_0x3c16e6['plugins']['get']('ImageUtils'),_0x49e923={};_0x5d506b['enableCommand']('imageStyle',(_0x1b8bed,_0x434dff)=>{const _0x5a40c0=_0x3c16e6['plugins']['get']('Users')['me'],_0x378c75=_0x3c16e6['commands']['get']('imageStyle');let _0x113ef8=_0x190a5c['getClosestSelectedImageElement'](_0x3c16e6['model']['document']['selection']),_0x3b93aa=_0x3c16e6['model']['createRangeOn'](_0x113ef8),_0x148990=_0x378c75['value'];if(_0x148990==_0x434dff['value'])return;const _0x507766={'commandName':'imageStyle','commandParams':[_0x434dff],'formatGroupId':_0x4d5fba()};_0x3c16e6['model']['change'](()=>{if(_0x5d506b['getSuggestions']()['filter'](_0x3af82c=>_0x3af82c['isInContent']&&_0x5a40c0==_0x3af82c['author']&&('formatBlock'==_0x3af82c['type']||'formatInline'==_0x3af82c['type'])&&('imageStylePreApply'==_0x3af82c['subType']||'imageStylePostApply'==_0x3af82c['subType'])&&_0x3af82c['getFirstRange']()['isEqual'](_0x3b93aa))['forEach'](_0x214975=>_0x5d506b['discardSuggestion'](_0x214975['head'])),_0x113ef8=_0x190a5c['getClosestSelectedImageElement'](_0x3c16e6['model']['document']['selection']),_0x3b93aa=_0x3c16e6['model']['createRangeOn'](_0x113ef8),_0x378c75['refresh'](),_0x3c16e6['commands']['get']('imageTypeInline')['refresh'](),_0x3c16e6['commands']['get']('imageTypeBlock')['refresh'](),_0x148990=_0x378c75['value'],_0x148990!=_0x434dff['value'])return _0x190a5c['isInlineImage'](_0x113ef8)&&_0x378c75['shouldConvertImageType'](_0x434dff['value'],_0x113ef8)?(_0x1b8bed({..._0x434dff,'setImageSizes':!0x1}),_0x113ef8=_0x190a5c['getClosestSelectedImageElement'](_0x3c16e6['model']['document']['selection']),void _0x5d506b['markBlockFormat'](_0x113ef8,{..._0x507766,'commandReversedParams':[{'value':_0x148990||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x190a5c['isBlockImage'](_0x113ef8)?_0x5d506b['markBlockFormat'](_0x113ef8,_0x507766,[],'imageStylePostApply'):_0x5d506b['markInlineFormat'](_0x3b93aa,_0x507766,'imageStylePostApply'));});});for(const _0x3fe6a3 of _0x3c16e6['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x49e923[_0x3fe6a3['name']]=_0x3fe6a3['title']['toLowerCase']();_0x5d506b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5d506b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5d506b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5d506b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5b55bd])=>{_0x190a5c['setImageNaturalSizeAttributes'](_0x5b55bd['getContainedElement']());}),_0x5d506b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x51d962,_0x4c00b7)=>{_0x5d506b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x51d962,{'commandName':_0x4c00b7['commandName'],'commandParams':_0x4c00b7['commandReversedParams']});}),_0x5d506b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5b1a8c,_0x1e1850){if(_0x48a410(_0x5b1a8c,_0x1e1850))return[_0x5b1a8c,_0x1e1850];if(_0x48a410(_0x1e1850,_0x5b1a8c))return[_0x1e1850,_0x5b1a8c];return null;});const _0x3596f5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x48a410(_0x44bd79,_0x50d815){const _0x45d6a1=_0x3596f5['findIndex'](({type:_0x1518a3,subType:_0xdc353f})=>_0x44bd79['type']==_0x1518a3&&_0x44bd79['subType']==_0xdc353f),_0x5d3083=_0x3596f5['findIndex'](({type:_0x3dde4e,subType:_0x106b7f})=>_0x50d815['type']==_0x3dde4e&&_0x50d815['subType']==_0x106b7f);if(_0x45d6a1<0x0||_0x5d3083<0x0)return!0x1;const _0x2b5d11=_0x44bd79['getFirstRange'](),_0x12493a=_0x50d815['getFirstRange']();if((0x0==_0x45d6a1||0x1==_0x45d6a1)&&0x2==_0x5d3083&&_0x2b5d11['isIntersecting'](_0x12493a))return!0x0;if(0x2==_0x45d6a1&&0x3==_0x5d3083){const _0x310d5f=_0x5d506b['_findSuggestions'](_0x2b5d11,'insertion')['filter'](({suggestion:_0x5356e4,meta:_0x22d1f5})=>_0x22d1f5['isOwn']&&'convertInlineImageToBlock'==_0x5356e4['subType']);if(_0x310d5f['length']>0x1&&_0x12493a['end']['isEqual'](_0x2b5d11['start']))return!0x0;if(0x1==_0x310d5f['length']&&(_0x2b5d11['start']['isEqual'](_0x12493a['end'])||_0x2b5d11['end']['isEqual'](_0x12493a['start'])))return!0x0;}if(0x3==_0x45d6a1&&0x3==_0x5d3083&&_0x2b5d11['start']['isBefore'](_0x12493a['start'])){const _0x323d2f=_0x2b5d11['end']['nodeAfter'],_0x123ad1=_0x12493a['start']['nodeBefore'];return _0x190a5c['isBlockImage'](_0x323d2f)&&_0x323d2f===_0x123ad1;}return!0x1;}_0x3c16e6['model']['document']['registerPostFixer'](()=>{let _0x2ca1cc=!0x1;const _0x1aae6a=Array['from'](_0x3c16e6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1050af,data:_0xca9647}of _0x1aae6a){const {group:_0x523914,type:_0x3d34c2,subType:_0x1176da,id:_0x428e7e}=_0x5d506b['_splitMarkerName'](_0x1050af);if('suggestion'==_0x523914&&_0x5d506b['hasSuggestion'](_0x428e7e)){if('formatBlock'==_0x3d34c2&&('imageStylePreApply'==_0x1176da||'imageStylePostApply'==_0x1176da)){const _0x113415=_0x5d506b['getSuggestion'](_0x428e7e);if(_0xca9647['newRange']){const _0x1b4ce1=_0x113415['getFirstRange']()['getContainedElement']();if(_0x190a5c['isBlockImage'](_0x1b4ce1))continue;_0x5d506b['discardSuggestion'](_0x113415),_0x2ca1cc=!0x0;}}if('insertion'==_0x3d34c2&&'imageCaption'==_0x1176da&&!_0xca9647['newRange']){const _0x1dbec0=_0x5d506b['getSuggestion'](_0x428e7e);_0x1dbec0['next']&&_0x1dbec0['next']['isInContent']&&(_0x5d506b['discardSuggestion'](_0x1dbec0['next']),_0x2ca1cc=!0x0);}}}return _0x2ca1cc;}),this['_registerLegacyDescription'](_0x49e923);}['_registerLegacyDescription'](_0x265cd5){const _0x2b8b10=this['editor'],_0x4824e6=_0x2b8b10['locale'];_0x2b8b10['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21008b=>{if('formatBlock'!=_0x21008b['type']&&'formatInline'!=_0x21008b['type'])return;const {data:_0x4935a9}=_0x21008b;if(!_0x4935a9||'imageStyle'!=_0x4935a9['commandName'])return;const _0x19b44e=_0x4935a9['commandParams'][0x0]['value'];return _0x3705c('side'===_0x19b44e?o(_0x4824e6,'FORMAT_SIDE_IMAGE'):_0x265cd5[_0x19b44e]||_0x19b44e);function _0x3705c(_0x215821){return{'type':'format','content':o(_0x4824e6,'*Format:*\x20%0',_0x215821)};}});}}class rt extends _0xda4d6f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xcbed4b){super(_0xcbed4b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5d3174=this['editor'],_0x4f5129=_0x5d3174['commands']['get']('importWord'),_0x479fd2=_0x5d3174['commands']['get']('trackChanges');_0x4f5129&&(_0x4f5129['on']('execute',(_0x5a480e,[,_0x143981])=>{this['_trackChangesValueDuringImport']=_0x479fd2['value'],_0x143981['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4f5129,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4f5129,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x479fd2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5d3174['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x448713,_0x5dafab){const {suggestions:_0x1a7731}=_0x5dafab,_0x2a06da=this['editor']['commands']['get']('trackChanges'),_0x57d4d8=_0x2a06da['value'];this['_trackChangesValueDuringImport']!==_0x57d4d8&&(_0x2a06da['execute'](),this['_trackChangesExecuted']=!0x0),_0x1a7731&&_0x1a7731['forEach'](({id:_0x3585aa,type:_0x5a46f6,author:_0x585efb,created_at:_0x28004e})=>{const _0x27812a={'id':_0x3585aa,'type':_0x5a46f6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x585efb,'createdAt':_0x28004e?new Date(_0x28004e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x27812a);});}}class at extends _0xda4d6f{['afterInit'](){const _0x5545c6=this['editor'],_0x4c0788=_0x5545c6['plugins']['get']('TrackChangesEditing');if(_0x5545c6['plugins']['has']('IndentEditing')&&(_0x4c0788['enableCommand']('indent'),_0x4c0788['enableCommand']('outdent')),_0x5545c6['plugins']['has']('IndentBlock')){for(const _0x1b9e39 of['indentBlock','outdentBlock'])_0x4c0788['enableDefaultAttributesIntegration'](_0x1b9e39);}const _0x3844c0=_0x5545c6['locale'];_0x4c0788['registerBlockAttribute']('blockIndent'),_0x4c0788['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3844c0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f58fd=this['editor'],_0x1e07e3=_0x1f58fd['locale'],_0xb4982b=_0x1f58fd['plugins']['get']('TrackChangesEditing');_0xb4982b['descriptionFactory']['registerDescriptionCallback'](_0x712f78=>{if('formatBlock'!=_0x712f78['type'])return;const {data:_0x445ca2}=_0x712f78;if(!_0x445ca2)return;if('indentBlock'!=_0x445ca2['commandName']&&'outdentBlock'!=_0x445ca2['commandName'])return;const _0x362d61=_0x712f78['getItems']()[0x0],_0xc795a9=_0xb4982b['descriptionFactory']['getItemLabel'](_0x362d61);return'indentBlock'==_0x445ca2['commandName']?{'type':'format','content':o(_0x1e07e3,'*Indent:*\x20%0',_0xc795a9)}:'outdentBlock'==_0x445ca2['commandName']?{'type':'format','content':o(_0x1e07e3,'*Outdent:*\x20%0',_0xc795a9)}:void 0x0;});}}class ct extends _0xda4d6f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xda4d6f{['afterInit'](){const _0x3daf7e=this['editor'];if(!_0x3daf7e['plugins']['has']('LinkEditing'))return;const _0xbec04b=_0x3daf7e['plugins']['get']('TrackChangesEditing'),_0x4f45df=_0x3daf7e['commands']['get']('link');_0xbec04b['enableDefaultAttributesIntegration']('link'),_0xbec04b['enableDefaultAttributesIntegration']('unlink'),_0xbec04b['registerInlineAttribute']('linkHref');for(const _0x76d01f of _0x4f45df['manualDecorators'])_0xbec04b['registerInlineAttribute'](_0x76d01f['id']),_0xbec04b['descriptionFactory']['registerAttributeLabel'](_0x76d01f['id'],'link\x20('+_0x76d01f['label']['toLowerCase']()+')');_0xbec04b['descriptionFactory']['registerDescriptionCallback'](_0x478e99=>{if('attribute'!=_0x478e99['type'])return;const {data:_0x1abb99}=_0x478e99;if(!_0x1abb99||'linkHref'!=_0x1abb99['key'])return;const _0xc23f=_0x1abb99['newValue'],_0x58c38=_0x3daf7e['locale'];return{'type':'format','content':null==_0xc23f?o(_0x58c38,'*Remove\x20link*'):o(_0x58c38,'*Set\x20link:*\x20%0','\x22'+_0xc23f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x477314=this['editor'],_0x4d2d8e=_0x477314['locale'];_0x477314['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a2fac=>{if('formatInline'!=_0x4a2fac['type'])return;const {data:_0x415741}=_0x4a2fac;if(_0x415741){if('link'==_0x415741['commandName']){const _0x5859d9=_0x415741['commandParams'][0x0];return{'type':'format','content':o(_0x4d2d8e,'*Set\x20link:*\x20%0','\x22'+_0x5859d9+'\x22')};}return'unlink'==_0x415741['commandName']?{'type':'format','content':o(_0x4d2d8e,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xda4d6f{['afterInit'](){const _0x15a295=this['editor'],_0x469135=_0x15a295['locale'];if(!_0x15a295['plugins']['has']('LegacyListEditing'))return;const _0x182a62=_0x15a295['plugins']['get']('TrackChangesEditing'),_0x28dc94=_0x15a295['plugins']['has']('LegacyTodoListEditing');function _0x1c9f70(_0x390909){return()=>{const _0x58987d=_0x15a295['model']['document']['selection'],_0x5a2dc2=_0x15a295['commands']['get'](_0x390909);if(_0x5a2dc2['value'])return void _0x15a295['execute']('paragraph',{});const _0x206007=_0x390909['slice'](0x0,-0x4),_0x50b456=function(_0x2f1698,_0x50de2f,_0x5c88d1){let _0x529069=Array['from'](_0x2f1698)['filter'](_0x1a0da7=>function(_0x1785af,_0x12faab){return _0x12faab['checkChild'](_0x1785af['parent'],'listItem')&&!_0x12faab['isObject'](_0x1785af);}(_0x1a0da7,_0x5c88d1));_0x529069=_0x529069['filter'](_0x1e1ab6=>!_0x1e1ab6['is']('element','listItem')||_0x1e1ab6['getAttribute']('listType')!=_0x50de2f);const _0x388425=new Set();for(const _0x4554dc of _0x529069)_0x4554dc['is']('element','listItem')?_0x388425['add'](Le(_0x4554dc)):_0x388425['add'](_0x4554dc);return Array['from'](_0x388425);}(_0x58987d['getSelectedBlocks'](),_0x206007,_0x15a295['model']['schema']);_0x15a295['model']['change'](()=>{for(const _0x3e7073 of _0x50b456)_0x182a62['markBlockFormat'](_0x3e7073,{'commandName':_0x390909,'commandParams':[{'forceValue':!_0x5a2dc2['value']}],'formatGroupId':'blockName'},Ee(_0x3e7073));});};}function _0x3f0cbb(_0x65b8ba){return()=>{const _0x26db6b=function(_0x35dc35){let _0x955950=Array['from'](_0x35dc35);const _0xab7bd1=_0x955950['findIndex'](_0x476891=>'listItem'!=_0x476891['name']);return _0xab7bd1>-0x1&&(_0x955950=_0x955950['slice'](0x0,_0xab7bd1)),_0x955950;}(_0x15a295['model']['document']['selection']['getSelectedBlocks']()),_0x260545=_0x15a295['model']['createRange'](_0x15a295['model']['createPositionAt'](_0x26db6b[0x0],'before'),_0x15a295['model']['createPositionAt'](_0x26db6b[_0x26db6b['length']-0x1],'end'));_0x15a295['model']['change'](()=>{_0x182a62['markBlockFormat'](_0x260545,{'commandName':_0x65b8ba,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2a9bd0){const _0x1610a4=new Set();for(const _0x4c30e4 of _0x2a9bd0){let _0x37ca49=_0x4c30e4['nextSibling'];for(;_0x37ca49&&_0x37ca49['getAttribute']('listIndent')>_0x4c30e4['getAttribute']('listIndent');)_0x1610a4['add'](_0x37ca49),_0x37ca49=_0x37ca49['nextSibling'];}return Array['from'](_0x1610a4);}(_0x26db6b));});};}_0x182a62['enableCommand']('numberedList',_0x1c9f70('numberedList')),_0x182a62['enableCommand']('bulletedList',_0x1c9f70('bulletedList')),_0x28dc94&&_0x182a62['enableCommand']('todoList',_0x1c9f70('todoList')),_0x182a62['enableCommand']('indentList',_0x3f0cbb('indentList')),_0x182a62['enableCommand']('outdentList',_0x3f0cbb('outdentList')),_0x28dc94&&_0x182a62['enableCommand']('checkTodoList',()=>{const _0x2fd214=_0x15a295['commands']['get']('checkTodoList'),_0x31a7d1=Array['from'](_0x2fd214['_selectedElements']);_0x31a7d1['filter'](_0x45ce1e=>_0x45ce1e['getAttribute']('todoListChecked')!=_0x2fd214['value']),_0x15a295['model']['change'](()=>{for(const _0x48a734 of _0x31a7d1)_0x182a62['markBlockFormat'](_0x48a734,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2fd214['value']}]});});}),_0x182a62['descriptionFactory']['registerElementLabel']('listItem',_0x2f1a49=>o(_0x469135,'ELEMENT_LIST_ITEM',_0x2f1a49)),_0x182a62['descriptionFactory']['registerDescriptionCallback'](_0x5b81b6=>{if('formatBlock'!=_0x5b81b6['type']&&'formatInline'!=_0x5b81b6['type'])return;const {data:_0xb47b2e}=_0x5b81b6;if(_0xb47b2e){if('numberedList'==_0xb47b2e['commandName']||'bulletedList'==_0xb47b2e['commandName']||'todoList'==_0xb47b2e['commandName'])switch(_0xb47b2e['commandName']['replace']('List','')){case'bulleted':return _0x3495ba(o(_0x469135,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3495ba(o(_0x469135,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3495ba(o(_0x469135,'ELEMENT_TODO_LIST'));}if('indentList'==_0xb47b2e['commandName'])return{'type':'format','content':o(_0x469135,'*Indent:*\x20%0',o(_0x469135,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xb47b2e['commandName'])return{'type':'format','content':o(_0x469135,'*Outdent:*\x20%0',o(_0x469135,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xb47b2e['commandName'])return _0xb47b2e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x469135,'*Check\x20item*')}:{'type':'format','content':o(_0x469135,'*Uncheck\x20item*')};}function _0x3495ba(_0x14cc72){return{'type':'format','content':o(_0x469135,'*Change\x20to:*\x20%0',_0x14cc72)};}});}}function Le(_0x18fbd6){const _0x48e6f4=_0x18fbd6['getAttribute']('listIndent');if(0x0==_0x48e6f4)return _0x18fbd6;let _0x2c1dde=_0x18fbd6;for(;_0x18fbd6['previousSibling']&&_0x18fbd6['previousSibling']['is']('element','listItem');){const _0x30e5e2=_0x18fbd6['previousSibling']['getAttribute']('listIndent');if(_0x30e5e2==_0x48e6f4)_0x2c1dde=_0x18fbd6['previousSibling'];else{if(_0x30e5e2<_0x48e6f4)break;}_0x18fbd6=_0x18fbd6['previousSibling'];}return _0x2c1dde;}function Ee(_0x109f90){const _0x2c4e6a=[];if(_0x109f90['is']('element','listItem')&&_0x109f90['getAttribute']('listIndent')>0x0){let _0x22b27f=_0x109f90['nextSibling'];for(;_0x22b27f&&'listItem'==_0x22b27f['name']&&_0x22b27f['getAttribute']('listIndent')==_0x109f90['getAttribute']('listIndent');)_0x2c4e6a['push'](_0x22b27f),_0x22b27f=_0x22b27f['nextSibling'];}return _0x2c4e6a;}class ht extends _0xda4d6f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x507cb4=this['editor']['config']['get']('list.properties'),_0x1e79c9=this['editor']['plugins']['get']('TrackChangesEditing');_0x507cb4['styles']&&_0x1e79c9['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x507cb4['reversed']&&_0x1e79c9['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x507cb4['startIndex']&&_0x1e79c9['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1e79c9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x321cbb,_0x3745ec={}){const _0x2d8b0c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5251e6=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2d8b0c['markMultiRangeBlockFormat'](_0x5251e6,{'commandName':'listStyle','commandParams':[{'type':_0x3745ec['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5a26c0,_0x41428e={}){const _0x44bdca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26e111=this['_getSuggestionBlocks'](_0x439abc=>_0x439abc['is']('element','listItem')&&'numbered'===_0x439abc['getAttribute']('listType'));if(_0x26e111['length']<0x1)return;const _0x2d75bc=_0x26e111['map'](_0x972655=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x972655,'before'),this['editor']['model']['createPositionAt'](_0x972655,0x0)));this['editor']['model']['change'](()=>{_0x44bdca['markMultiRangeBlockFormat'](_0x2d75bc,{'commandName':'listReversed','commandParams':[{'reversed':_0x41428e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3dd9cb,_0x45afe={}){const _0x43efec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x83530a=this['_getSuggestionBlocks'](_0x154e76=>_0x154e76['is']('element','listItem')&&'numbered'===_0x154e76['getAttribute']('listType'));if(_0x83530a['length']<0x1)return;const _0x4ebbd2=_0x83530a['map'](_0x231e3c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x231e3c,'before'),this['editor']['model']['createPositionAt'](_0x231e3c,0x0)));this['editor']['model']['change'](()=>{_0x43efec['markMultiRangeBlockFormat'](_0x4ebbd2,{'commandName':'listStart','commandParams':[{'startIndex':_0x45afe['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2e2c4f){if('formatBlock'!=_0x2e2c4f['type']&&'formatInline'!=_0x2e2c4f['type'])return;const _0xaf7c6=this['editor']['locale'],{data:_0x4cb3b9}=_0x2e2c4f;if(!_0x4cb3b9)return;let _0x4f793b,_0x44c5e0;switch(_0x4cb3b9['commandName']){case'listStyle':_0x4f793b='*Change\x20to:*\x20%0',_0x44c5e0={'type':'format','content':o(_0xaf7c6,_0x4f793b,o(_0xaf7c6,this['_getTranslationKeyForListStyle'](_0x4cb3b9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4f793b=_0x4cb3b9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x44c5e0={'type':'format','content':o(_0xaf7c6,_0x4f793b)};break;case'listStart':_0x4f793b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x44c5e0={'type':'format','content':o(_0xaf7c6,_0x4f793b,_0x4cb3b9['commandParams'][0x0]['startIndex'])};}return _0x44c5e0;}['_getSuggestionBlocksForListStyle'](){const _0x22e1b3=this['editor']['plugins']['get']('LegacyListUtils');let _0x112fe3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x112fe3[0x0]?.['is']('element','listItem')&&_0x112fe3['unshift'](..._0x22e1b3['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x112fe3[_0x112fe3['length']-0x1]?.['is']('element','listItem')&&_0x112fe3['push'](..._0x22e1b3['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x112fe3=[...new Set(_0x112fe3)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x112fe3=_0x112fe3['filter'](_0x1aa91a=>_0x1aa91a['is']('element','listItem'))),_0x112fe3;}['_getSuggestionBlocks'](_0x11df07){const _0x358f44=this['editor']['plugins']['get']('LegacyListUtils');let _0x100eea=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x11df07)['map'](_0x463502=>{const _0x5c44f9=this['editor']['model']['createPositionAt'](_0x463502,0x0);return[..._0x358f44['getSiblingNodes'](_0x5c44f9,'backward'),..._0x358f44['getSiblingNodes'](_0x5c44f9,'forward')];})['flat']();return _0x100eea=[...new Set(_0x100eea)],_0x100eea;}['_getTranslationKeyForListStyle'](_0x299fc6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x299fc6)||'default')['toUpperCase']()+'_LIST_'+_0x299fc6['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xda4d6f{['afterInit'](){const _0xad53b1=this['editor'];if(!_0xad53b1['plugins']['has']('MediaEmbedEditing'))return;const _0x430f78=_0xad53b1['plugins']['get']('TrackChangesEditing'),_0x2589a2=_0xad53b1['locale'];_0x430f78['enableCommand']('mediaEmbed'),_0x430f78['descriptionFactory']['registerElementLabel']('media',_0x24da88=>o(_0x2589a2,'ELEMENT_MEDIA',_0x24da88)),_0xad53b1['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x491309,{writer:_0x445153,options:_0x3161d2})=>{if(_0x3161d2['showSuggestionHighlights'])return _0x445153['createEmptyElement']('div');},'converterPriority':'high'}),_0xad53b1['data']['downcastDispatcher']['on']('attribute:url:media',(_0x58aaa5,_0x28f218,_0x33762b)=>{_0x33762b['options']['showSuggestionHighlights']&&_0x58aaa5['stop']();},{'priority':'high'});}}class lt extends _0xda4d6f{['afterInit'](){const _0x4e079c=this['editor'];_0x4e079c['plugins']['has']('MentionEditing')&&_0x4e079c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xda4d6f{['afterInit'](){const _0x5c70ee=this['editor'];if(!_0x5c70ee['plugins']['has']('MergeFieldsEditing'))return;const _0x360c7d=_0x5c70ee['plugins']['get']('TrackChangesEditing'),_0x24cd3e=_0x5c70ee['locale'];_0x360c7d['enableCommand']('insertMergeField'),_0x360c7d['enableCommand']('insertMergeFieldBlock'),_0x360c7d['enableCommand']('insertMergeFieldImage'),_0x360c7d['descriptionFactory']['registerElementLabel']('mergeField',_0x412902=>o(_0x24cd3e,'ELEMENT_MERGE_FIELD',_0x412902)),_0x360c7d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3e3fd2=>o(_0x24cd3e,'ELEMENT_MERGE_FIELD',_0x3e3fd2)),_0x360c7d['descriptionFactory']['registerDescriptionCallback'](_0x4f8359=>{if('insertion'!=_0x4f8359['type']&&'deletion'!=_0x4f8359['type'])return;const _0x4a84b0=_0x4f8359['getContainedElement']();if(null==_0x4a84b0)return;const _0x1163e4=_0x5c70ee['plugins']['get']('MergeFieldsEditing');let _0x3be480;switch(_0x1163e4['getMergeFieldType'](_0x4a84b0)){case null:return;case'image':{const _0x57ea1a=_0x1163e4['unwrapAffixes'](_0x4a84b0['getAttribute']('src'));_0x3be480=_0x1163e4['getLabel'](_0x57ea1a)||_0x57ea1a;break;}default:{const _0x560e44=_0x4a84b0['getAttribute']('id');_0x3be480=_0x1163e4['getLabel'](_0x560e44)||_0x560e44;break;}}return'insertion'==_0x4f8359['type']?{'type':'insertion','content':o(_0x24cd3e,'*Insert:*\x20%0','\x22'+_0x3be480+'\x22\x20'+o(_0x24cd3e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x24cd3e,'*Remove:*\x20%0','\x22'+_0x3be480+'\x22\x20'+o(_0x24cd3e,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xda4d6f{['afterInit'](){const _0xb791ce=this['editor'],_0xe49d2=_0xb791ce['plugins']['get']('TrackChangesEditing');_0xb791ce['plugins']['has']('MultiLevelList')&&(_0xe49d2['enableDefaultAttributesIntegration']('multiLevelList'),_0xe49d2['registerBlockAttribute']('listMarkerStyle'),_0xe49d2['descriptionFactory']['registerDescriptionCallback'](_0x400f1b=>this['handleDescriptions'](_0x400f1b)));}['handleDescriptions'](_0x5bfb8f){const _0x4ef344=this['editor']['locale'],{data:_0x421de9}=_0x5bfb8f,_0x1ee9fc={'type':'format','content':''};if(_0x421de9&&'listMarkerStyle'==_0x421de9['key']){if(!_0x421de9['oldValue'])return{'type':'format','content':o(_0x4ef344,'*Set\x20format:*\x20%0',o(_0x4ef344,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x421de9['newValue']+')'};if(!_0x421de9['newValue']){let _0x7eb474=_0x5bfb8f['head'];for(;_0x7eb474;){if(_0x7eb474['data']&&'listType'==_0x7eb474['data']['key']&&_0x7eb474['data']['newValue'])return _0x1ee9fc;_0x7eb474=_0x7eb474['next'];}return{'type':'format','content':o(_0x4ef344,'*Remove\x20format:*\x20%0',o(_0x4ef344,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x421de9['oldValue']+')'};}}}}class pt extends _0xda4d6f{['afterInit'](){const _0x55c677=this['editor'];if(!_0x55c677['plugins']['has']('PageBreakEditing'))return;_0x55c677['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3374ba=_0x55c677['plugins']['get']('TrackChangesEditing'),_0x9d91bc=_0x55c677['locale'];_0x3374ba['descriptionFactory']['registerElementLabel']('pageBreak',_0x6e8a8a=>o(_0x9d91bc,'ELEMENT_PAGE_BREAK',_0x6e8a8a));}}class kt extends _0xda4d6f{['afterInit'](){const _0x14735d=this['editor'];if(!_0x14735d['plugins']['has']('Paragraph'))return;const _0x2ef325=_0x14735d['locale'],_0x4450fa=_0x14735d['plugins']['get']('TrackChangesEditing');_0x4450fa['descriptionFactory']['registerElementLabel']('paragraph',_0x2601c2=>o(_0x2ef325,'ELEMENT_PARAGRAPH',_0x2601c2)),_0x4450fa['enableDefaultAttributesIntegration']('paragraph'),_0x4450fa['enableCommand']('insertParagraph'),_0x14735d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x14735d),{'priority':'highest'}),_0x14735d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x10d952,_0x1b834e,_0x45bc3d)=>{_0x45bc3d['options']['showSuggestionHighlights']&&nr(_0x14735d,{'showActiveMarker':!0x1})(_0x10d952,_0x1b834e,_0x45bc3d);},{'priority':'highest'});const _0x3c718d=_0x4450fa['descriptionFactory'];_0x3c718d['registerDescriptionCallback'](_0x3a2ace=>{if('insertion'!==_0x3a2ace['type'])return;const {start:_0x436e15,end:_0x51e4be}=_0x3a2ace['getFirstRange']();if(!_0x436e15['isTouching'](_0x51e4be)||!_0x436e15['nodeAfter'])return;const _0x44ba5a=_0x14735d['model']['schema'],_0x1d99c3=_0x436e15['nodeAfter'];return _0x44ba5a['isBlock'](_0x1d99c3)&&!_0x44ba5a['isLimit'](_0x1d99c3)&&_0x44ba5a['checkChild'](_0x1d99c3,'$text')?{'type':'insertion','content':o(_0x2ef325,'*Insert:*\x20%0',_0x3c718d['getItemLabel'](_0x1d99c3,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x491303=this['editor'],_0x2b3dc6=_0x491303['locale'];_0x491303['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24448f=>{if('formatBlock'!=_0x24448f['type'])return;const {data:_0x427313}=_0x24448f;return _0x427313&&'paragraph'==_0x427313['commandName']?{'type':'format','content':o(_0x2b3dc6,'*Change\x20to:*\x20%0',o(_0x2b3dc6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x142661,{showActiveMarker:_0x5c24e9=!0x0}={}){return(_0x57ff07,_0x7d017f,_0xbfdb20)=>{const _0x4604de=_0x142661['plugins']['get']('TrackChangesEditing'),_0x5412fe=_0x7d017f['markerRange']['start'],_0x2345d0=_0x7d017f['markerRange']['end'],_0x17a354=_0x142661['model']['schema'];if(!_0x5412fe['isTouching'](_0x2345d0)||!_0x5412fe['nodeAfter'])return;const _0x3d032c=_0x5412fe['nodeAfter'];if(_0x17a354['isBlock'](_0x3d032c)&&!_0x17a354['isLimit'](_0x3d032c)&&_0x17a354['checkChild'](_0x3d032c,'$text')){if(!_0xbfdb20['consumable']['consume'](_0x7d017f['markerRange'],_0x57ff07['name']))return;const {id:_0x5e40a9,authorId:_0x6f2684}=_0x4604de['_splitMarkerName'](_0x7d017f['markerName']),_0x24856d=_0xbfdb20['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x5e40a9,'data-author-id':_0x6f2684}),_0x331b40=_0xbfdb20['mapper']['toViewPosition'](_0x2345d0);_0x5c24e9&&_0x4604de['activeMarkers']['includes'](_0x7d017f['markerName'])&&_0xbfdb20['writer']['addClass']('ck-suggestion-marker--active',_0x24856d),_0xbfdb20['writer']['insert'](_0x331b40,_0x24856d),_0xbfdb20['mapper']['bindElementToMarker'](_0x24856d,_0x7d017f['markerName']);}};}class wt extends _0xda4d6f{['afterInit'](){const _0x525c34=this['editor'];_0x525c34['commands']['get']('replaceSource')&&_0x525c34['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xda4d6f{['afterInit'](){const _0x825b1e=this['editor'];if(!_0x825b1e['plugins']['has']('RemoveFormatEditing'))return;_0x825b1e['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1227ee=this['editor'];_0x1227ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a6f1b=>{if('formatBlock'!=_0x3a6f1b['type']&&'formatInline'!=_0x3a6f1b['type'])return;const {data:_0x527d9b}=_0x3a6f1b;return _0x527d9b&&'removeFormat'==_0x527d9b['commandName']?{'type':'format','content':o(_0x1227ee['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xda4d6f{['afterInit'](){const _0x4fbe28=this['editor'];if(!_0x4fbe28['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x22665e=_0x4fbe28['plugins']['get']('TrackChangesEditing');_0x22665e['enableCommand']('goToPreviousRestrictedEditingException'),_0x22665e['enableCommand']('goToNextRestrictedEditingException');const _0x49f1ba=_0x4fbe28['plugins']['get']('RestrictedEditingModeEditing');_0x49f1ba['enableCommand']('trackChanges'),_0x49f1ba['enableCommand']('acceptSuggestion'),_0x49f1ba['enableCommand']('discardSuggestion'),_0x49f1ba['enableCommand']('acceptAllSuggestions'),_0x49f1ba['enableCommand']('discardAllSuggestions'),_0x49f1ba['enableCommand']('acceptSelectedSuggestions'),_0x49f1ba['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xda4d6f{['afterInit'](){const _0x331369=this['editor'];if(!_0x331369['plugins']['has']('ShiftEnter'))return;const _0x517b08=_0x331369['plugins']['get']('TrackChangesEditing');_0x517b08['enableCommand']('shiftEnter'),_0x331369['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x331369),{'priority':'high'}),_0x331369['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x331369),{'priority':'high'}),_0x331369['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x184fee,_0xb79a55,_0x4a5bbc)=>{_0x4a5bbc['options']['showSuggestionHighlights']&&je(_0x331369,{'showActiveMarker':!0x1})(_0x184fee,_0xb79a55,_0x4a5bbc);}),_0x517b08['descriptionFactory']['registerElementLabel']('softBreak',_0x141e9d=>o(_0x331369['locale'],'ELEMENT_LINE_BREAK',_0x141e9d));}}function je(_0x63864,{showActiveMarker:_0x190927=!0x0}={}){return(_0x2e0ab0,_0x180b14,_0x135f5)=>{const _0x2fa802=_0x63864['plugins']['get']('TrackChangesEditing');if(!_0x135f5['consumable']['test'](_0x180b14['markerRange'],_0x2e0ab0['name']))return;const _0x2bce89=_0x63864['model'];for(const _0x289368 of _0x180b14['markerRange']['getItems']()){if(!_0x289368['is']('element','softBreak'))continue;const _0x57a1b1='deletion'==_0x180b14['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x444e42,authorId:_0x53d1ae}=_0x2fa802['_splitMarkerName'](_0x180b14['markerName']),_0x43b52e=_0x135f5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x57a1b1,'data-suggestion':_0x444e42,'data-author-id':_0x53d1ae}),_0x5db391=_0x135f5['mapper']['toViewPosition'](_0x2bce89['createPositionBefore'](_0x289368));_0x190927&&_0x2fa802['activeMarkers']['includes'](_0x180b14['markerName'])&&_0x135f5['writer']['addClass']('ck-suggestion-marker--active',_0x43b52e),_0x135f5['writer']['insert'](_0x5db391,_0x43b52e),_0x135f5['mapper']['bindElementToMarker'](_0x43b52e,_0x180b14['markerName']);}};}class St extends _0xda4d6f{['afterInit'](){const _0x19f402=this['editor'],_0xf7e922=_0x19f402['model'],_0x23a68a=_0x19f402['locale'];if(!_0x19f402['plugins']['has']('StandardEditingModeEditing'))return;const _0x477982=_0x19f402['plugins']['get']('TrackChangesEditing'),_0xa64c9a='restrictedEditingException',_0x4f4ee9=_0x19f402['commands']['get'](_0xa64c9a);_0x477982['enableCommand'](_0xa64c9a,(_0x131a5b,_0x1305d6={})=>{const _0x42f52f=_0xf7e922['document']['selection'];if(_0x42f52f['isCollapsed'])return void _0x131a5b(_0x1305d6);const _0x44cf78=void 0x0!==_0x1305d6['forceValue']?_0x1305d6['forceValue']:!_0x4f4ee9['value'];_0xf7e922['change'](()=>{const _0x1ee35e=Array['from'](_0x42f52f['getRanges']());for(const _0x29bfbd of _0x1ee35e){const _0x520d47=_0x44cf78?[_0x29bfbd]:io(_0xa64c9a,_0x29bfbd,_0xf7e922);for(const _0xf6a265 of _0x520d47)_0x477982['markInlineFormat'](_0xf6a265,{'commandName':_0xa64c9a,'commandParams':[{'forceValue':_0x44cf78}]});}});}),_0x477982['descriptionFactory']['registerDescriptionCallback'](_0x59419a=>{if('formatBlock'!=_0x59419a['type']&&'formatInline'!=_0x59419a['type'])return;const {data:_0x45c736}=_0x59419a;return _0x45c736&&_0x45c736['commandName']==_0xa64c9a?_0x45c736['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23a68a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x23a68a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xda4d6f{['afterInit'](){const _0x25b03d=this['editor'];if(!_0x25b03d['plugins']['has']('Style')||!_0x25b03d['plugins']['has']('DataSchema'))return;const _0x25b5af=_0x25b03d['plugins']['get']('TrackChangesEditing'),_0x40b630=_0x25b03d['locale'],_0x3af7ff=_0x25b03d['config']['get']('style')||{},_0x1b3d6b=_0x25b03d['plugins']['get']('GeneralHtmlSupport'),_0x1cbd7e=_0x25b03d['plugins']['get']('StyleUtils')['normalizeConfig'](_0x25b03d['plugins']['get']('DataSchema'),_0x3af7ff['definitions']);_0x25b5af['enableDefaultAttributesIntegration']('style');const _0x2736fb=new Set();for(const _0x333259 of _0x1cbd7e['block']){const _0x11b15f=_0x1b3d6b['getGhsAttributeNameForElement'](_0x333259['element']);_0x2736fb['add'](_0x11b15f);}const _0xc5a0ff=new Set();for(const _0x73373e of _0x1cbd7e['inline']){const _0x4cfaa0=_0x1b3d6b['getGhsAttributeNameForElement'](_0x73373e['element']);_0xc5a0ff['add'](_0x4cfaa0);for(const _0x2ef233 of _0x73373e['ghsAttributes'])_0xc5a0ff['add'](_0x2ef233);}for(const _0x34c3ed of _0x2736fb)_0x25b5af['registerBlockAttribute'](_0x34c3ed),_0x25b5af['descriptionFactory']['registerAttributeLabel'](_0x34c3ed,o(_0x40b630,'FORMAT_STYLE'));for(const _0x55b085 of _0xc5a0ff)_0x25b5af['registerInlineAttribute'](_0x55b085),_0x25b5af['descriptionFactory']['registerAttributeLabel'](_0x55b085,o(_0x40b630,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5af505=this['editor'],_0x5b53cc=_0x5af505['locale'];_0x5af505['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c2ee3=>{if('formatBlock'!=_0x1c2ee3['type']&&'formatInline'!=_0x1c2ee3['type'])return;const {data:_0x2321b4}=_0x1c2ee3;return _0x2321b4&&'style'===_0x2321b4['commandName']?_0x2321b4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5b53cc,'*Set\x20format:*\x20%0',_0x2321b4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5b53cc,'*Remove\x20format:*\x20%0',_0x2321b4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xda4d6f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1287ab){super(_0x1287ab),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x528920=this['editor'],_0x278703=_0x528920['model']['document']['selection'];if(!_0x528920['plugins']['has']('TableEditing'))return;const _0x2c07a4=_0x528920['locale'],_0x5d894e=_0x528920['plugins']['get']('TrackChangesEditing'),_0x80e48b=_0x528920['plugins']['get']('TableUtils');_0x5d894e['descriptionFactory']['registerElementLabel']('table',_0xdea36c=>o(_0x2c07a4,'ELEMENT_TABLE',_0xdea36c)),this['_setupColumnsRowsFixing'](),_0x5d894e['enableCommand']('insertTable'),_0x5d894e['enableCommand']('selectTableRow'),_0x5d894e['enableCommand']('selectTableColumn');for(const _0x5c9902 of['insertTableRowAbove','insertTableRowBelow']){const _0x436895=_0x528920['commands']['get'](_0x5c9902);_0x5d894e['enableCommand'](_0x5c9902,_0x1b570c=>{_0x528920['model']['change'](_0x2c3428=>{_0x1b570c();const _0xf2ab70='above'===_0x436895['order'],_0x475b46=_0x80e48b['getSelectionAffectedTableCells'](_0x278703),_0x20ff95=_0x80e48b['getRowIndexes'](_0x475b46),_0x4a0bc6=_0xf2ab70?_0x20ff95['first']-0x1:_0x20ff95['last']+0x1,_0x30205b=_0x475b46[0x0]['findAncestor']('table'),_0x3074bf=_0x80e48b['createTableWalker'](_0x30205b,{'startRow':_0x4a0bc6,'endRow':_0x4a0bc6}),_0x1a0c46=Array['from'](_0x3074bf)['map'](_0x4d6d3c=>_0x2c3428['createRangeOn'](_0x4d6d3c['cell']));_0x5d894e['markMultiRangeInsertion'](_0x1a0c46,'tableRow');});});}for(const _0x46da27 of['insertTableColumnLeft','insertTableColumnRight']){const _0x29c89e=_0x528920['commands']['get'](_0x46da27);_0x5d894e['enableCommand'](_0x46da27,_0x17750e=>{_0x528920['model']['change'](_0x527571=>{_0x17750e();const _0x227a54='left'===_0x29c89e['order'],_0x4723a9=_0x80e48b['getSelectionAffectedTableCells'](_0x278703),_0x5cc9aa=_0x80e48b['getColumnIndexes'](_0x4723a9),_0x5b4280=_0x227a54?_0x5cc9aa['first']-0x1:_0x5cc9aa['last']+0x1,_0x40cfac=_0x4723a9[0x0]['findAncestor']('table'),_0x3f3942=_0x80e48b['createTableWalker'](_0x40cfac,{'startRow':0x0,'column':_0x5b4280,'includeAllSlots':!0x1}),_0x332ce6=Array['from'](_0x3f3942)['map'](_0x2bd6dd=>_0x527571['createRangeOn'](_0x2bd6dd['cell']));_0x5d894e['markMultiRangeInsertion'](_0x332ce6,'tableColumn');});});}for(const _0x58a013 of['removeTableRow','removeTableColumn']){const _0x3c71b5=_0x58a013['substr'](0xb),_0x28955b=_0x3c71b5['toLowerCase'](),_0x250220=_0x28955b['substr'](0x0,0x3)+'span',_0x2c4d59='table'+_0x3c71b5,_0x16dd5f='min'+_0x3c71b5,_0x475845='max'+_0x3c71b5;_0x5d894e['enableCommand'](_0x58a013,()=>{_0x528920['model']['change'](_0x6a6527=>{const _0x1fdb17=_0x80e48b['getSelectionAffectedTableCells'](_0x278703),_0x38018c=_0x1fdb17[0x0]['findAncestor']('table');let _0x5b7b1f;if('removeTableRow'==_0x58a013){const _0x3c45a8=_0x80e48b['getRowIndexes'](_0x1fdb17);_0x5b7b1f={'startRow':_0x3c45a8['first'],'endRow':_0x3c45a8['last'],'includeAllSlots':!0x0};}else{const _0xd5ba54=_0x80e48b['getColumnIndexes'](_0x1fdb17);_0x5b7b1f={'startColumn':_0xd5ba54['first'],'endColumn':_0xd5ba54['last'],'includeAllSlots':!0x0};}const _0x225d07=_0x80e48b['createTableWalker'](_0x38018c,_0x5b7b1f),_0x2bb2db=Array['from'](_0x225d07)['map'](({cell:_0x22f034})=>_0x22f034),_0x18312d=Ne(_0x2bb2db['filter'](_0xbc83ba=>_0xbc83ba['hasAttribute'](_0x250220))),_0x1b7d86=Ne(_0x2bb2db['filter'](_0x325152=>!_0x325152['hasAttribute'](_0x250220)))['map'](_0x526e02=>_0x6a6527['createRangeOn'](_0x526e02)),_0x512aa2=_0x5d894e['markMultiRangeDeletion'](_0x1b7d86,_0x2c4d59);if(_0x512aa2&&('tableRow'==_0x512aa2['subType']||'tableColumn'==_0x512aa2['subType'])){const _0x844bff=this['_getSuggestionCoords'](_0x512aa2);for(const _0x26bc3b of _0x18312d){const _0x47d589=_0x6a6527['createRangeOn'](_0x26bc3b),_0x4906b4=_0x80e48b['getCellLocation'](_0x26bc3b),_0x5f280f=_0x26bc3b['getAttribute'](_0x250220)-0x1,_0x19aff3=_0x844bff[_0x16dd5f],_0x294697=_0x844bff[_0x475845];_0x19aff3<=_0x4906b4[_0x28955b]&&_0x4906b4[_0x28955b]+_0x5f280f<=_0x294697&&_0x512aa2['addRange'](_0x47d589);}}});});}function _0x288d45(_0x4b1f71){const _0x1f4b7a=Array['from'](_0x278703['getRanges']())['map'](_0x249cfe=>_0x18d379['fromRange'](_0x249cfe));_0x528920['model']['change'](_0x514fe6=>{const _0x3fb668=_0x514fe6['batch'];_0x4b1f71=_0x4b1f71['filter'](_0x429779=>'$graveyard'!=_0x429779['root']['rootName']),_0x514fe6['setSelection'](_0x4b1f71),_0x528920['commands']['get']('removeTableRow')['refresh'](),_0x528920['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x528920['model']['enqueueChange'](()=>{_0x528920['model']['enqueueChange'](_0x3fb668,_0x543a10=>{const _0x203d07=_0x1f4b7a['filter'](_0x45f4c7=>'$graveyard'!=_0x45f4c7['root']['rootName']);_0x203d07['length']>0x0&&_0x543a10['setSelection'](_0x203d07);for(const _0xdff91e of _0x1f4b7a)_0xdff91e['detach']();});});});}function _0x571617(_0x5308b5){_0x528920['model']['change'](_0x5ddd16=>{const _0x442397=Array['from'](_0x278703['getRanges']())['map'](_0x17554d=>_0x18d379['fromRange'](_0x17554d)),_0x191b64=[];for(const _0x32b2cf of _0x5308b5)for(const _0x4d8b5c of _0x32b2cf['getItems']({'shallow':!0x0}))_0x191b64['push'](_0x4d8b5c);for(const _0x4b0fea of _0x191b64)'$graveyard'!=_0x4b0fea['root']['rootName']&&(_0x5ddd16['setSelection'](_0x5ddd16['createPositionAt'](_0x4b0fea,0x0)),_0x528920['commands']['get']('removeTableColumn')['refresh'](),_0x528920['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3f8541=_0x442397['filter'](_0x519c95=>'$graveyard'!=_0x519c95['root']['rootName']);_0x3f8541['length']>0x0&&_0x5ddd16['setSelection'](_0x3f8541);for(const _0x5bdc79 of _0x442397)_0x5bdc79['detach']();});}function _0x3c7532(_0x1c3fb9,_0x1ee378){return _0x1ee378['every'](_0x1cdf1c=>_0x1c3fb9['some'](_0x3264cb=>_0x3264cb['end']['isEqual'](_0x1cdf1c['start'])||_0x1cdf1c['end']['isEqual'](_0x3264cb['start'])));}function _0x4d4080(_0x354b0e,_0x4c529a){return!_0x354b0e['some'](_0x42c1b2=>_0x4c529a['some'](_0x2a7cd9=>_0x42c1b2['isIntersecting'](_0x2a7cd9)))&&_0x354b0e['some'](_0x4925a0=>_0x4c529a['some'](_0x44259a=>_0x4925a0['end']['isTouching'](_0x44259a['start'])));}_0x528920['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x247524,_0x451912,_0x39736e)=>{if(!_0x39736e['options']['showSuggestionHighlights'])return;const _0x467586=_0x451912['item'];if(!_0x467586||!_0x467586['is']('element','tableCell'))return;const _0x4bb9d5=_0x39736e['mapper']['toViewElement'](_0x467586);if(_0x4bb9d5){const {id:_0x5498fb,authorId:_0x205e35}=_0x5d894e['_splitMarkerName'](_0x451912['markerName']);_0x36be56(_0x4bb9d5,_0x39736e['writer'],(_0x40a502,_0x5ccc3f,_0x451205)=>{_0x451205['addClass'](_0x3fc165(_0x5ccc3f['classes']),_0x40a502),_0x451205['setAttribute']('data-suggestion-id',_0x5498fb,_0x40a502),_0x451205['setAttribute']('data-author-id',_0x205e35,_0x40a502);},(_0x369e3a,_0x3e00a9,_0x2710ed)=>{_0x2710ed['removeClass'](_0x3fc165(_0x3e00a9['classes']),_0x369e3a),_0x2710ed['removeAttribute']('data-suggestion-id',_0x369e3a),_0x2710ed['removeAttribute']('data-author-id',_0x369e3a);});}},{'priority':'highest'}),_0x5d894e['descriptionFactory']['registerDescriptionCallback'](_0xaaa39d=>{if('insertion'!=_0xaaa39d['type']&&'deletion'!=_0xaaa39d['type'])return;const _0x3fa6c1=_0xaaa39d['getContainedElement']();if(null!=_0x3fa6c1&&_0x3fa6c1['is']('element','table')){if('insertion'==_0xaaa39d['type']){const _0x252ccb=_0xaaa39d['getItems']()['filter'](_0x588ffb=>_0x588ffb['is']('$textProxy'))['map'](_0x514696=>_0x514696['data']);if(_0x252ccb['length'])return{'type':'insertion','content':o(_0x2c07a4,'*Insert:*\x20%0',o(_0x2c07a4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x252ccb['join']('\x20')+'\x22'))};}if('deletion'==_0xaaa39d['type']){const _0x1becc9=_0xaaa39d['getItems']()['filter'](_0x1759ed=>_0x1759ed['is']('$textProxy'))['map'](_0xa0d210=>_0xa0d210['data']);if(_0x1becc9['length'])return{'type':'deletion','content':o(_0x2c07a4,'*Remove:*\x20%0',o(_0x2c07a4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1becc9['join']('\x20')+'\x22'))};}}}),_0x5d894e['descriptionFactory']['registerDescriptionCallback'](_0x31e114=>{if('tableRow'==_0x31e114['subType']){const _0xf2070=_0x31e114['getItems']()['filter'](_0x15b465=>_0x15b465['is']('$textProxy'))['map'](_0x27d764=>_0x27d764['data']),_0x493c2e=this['_getSuggestionCoords'](_0x31e114),_0x318eff=_0x493c2e['maxRow']-_0x493c2e['minRow']+0x1;if('insertion'==_0x31e114['type'])return _0xf2070['length']?{'type':'insertion','content':o(_0x2c07a4,'*Insert:*\x20%0',o(_0x2c07a4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x318eff,'\x22'+_0xf2070['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2c07a4,'*Insert:*\x20%0',o(_0x2c07a4,'ELEMENT_TABLE_ROW',_0x318eff))};if('deletion'==_0x31e114['type'])return _0xf2070['length']?{'type':'deletion','content':o(_0x2c07a4,'*Remove:*\x20%0',o(_0x2c07a4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x318eff,'\x22'+_0xf2070['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2c07a4,'*Remove:*\x20%0',o(_0x2c07a4,'ELEMENT_TABLE_ROW',_0x318eff))};}if('tableColumn'==_0x31e114['subType']){const _0x47882f=_0x31e114['getItems']()['filter'](_0x311af5=>_0x311af5['is']('$textProxy'))['map'](_0x105364=>_0x105364['data']),_0x5c964a=this['_getSuggestionCoords'](_0x31e114),_0x448625=_0x5c964a['maxColumn']-_0x5c964a['minColumn']+0x1;if('insertion'==_0x31e114['type'])return _0x47882f['length']?{'type':'insertion','content':o(_0x2c07a4,'*Insert:*\x20%0',o(_0x2c07a4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x448625,'\x22'+_0x47882f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2c07a4,'*Insert:*\x20%0',o(_0x2c07a4,'ELEMENT_TABLE_COLUMN',_0x448625))};if('deletion'==_0x31e114['type'])return _0x47882f['length']?{'type':'deletion','content':o(_0x2c07a4,'*Remove:*\x20%0',o(_0x2c07a4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x448625,'\x22'+_0x47882f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2c07a4,'*Remove:*\x20%0',o(_0x2c07a4,'ELEMENT_TABLE_COLUMN',_0x448625))};}}),_0x5d894e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x288d45),_0x5d894e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x288d45),_0x5d894e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x571617),_0x5d894e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x571617),_0x5d894e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3c7532),_0x5d894e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3c7532),_0x5d894e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4d4080),_0x5d894e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4d4080);}['_acceptFormatSuggestionCallbackFactory'](){const _0x55d1ff=this['editor'],_0x661aaa=_0x55d1ff['model']['document']['selection'];return(_0xee7851,_0x33a581)=>{_0x55d1ff['model']['change'](_0x3280f2=>{const {commandName:_0x581daf,commandParams:_0x4655e8}=_0x33a581;let _0x30204c=_0xee7851[0x0]['end']['nodeBefore'];_0x4655e8&&_0x4655e8[0x0]&&!0x1===_0x4655e8[0x0]['forceValue']&&(_0x30204c=_0xee7851[0x0]['start']['nodeAfter']);const _0x211b1e=_0x3280f2['createRangeIn'](_0x30204c);if('$graveyard'==_0x211b1e['root']['rootName'])return;const _0x2cd40a=Array['from'](_0x661aaa['getRanges']())['map'](_0x4cc251=>_0x18d379['fromRange'](_0x4cc251));_0x3280f2['setSelection'](_0x211b1e),_0x55d1ff['commands']['get'](_0x581daf)['refresh'](),_0x4655e8['push']({'forceDefaultExecution':!0x0}),_0x55d1ff['execute'](_0x581daf,..._0x4655e8);const _0x2b9511=_0x2cd40a['filter'](_0xeeb2e2=>'$graveyard'!=_0xeeb2e2['root']['rootName']);_0x2b9511['length']>0x0&&_0x3280f2['setSelection'](_0x2b9511);for(const _0x173a42 of _0x2cd40a)_0x173a42['detach']();});};}['_getCoordsForCells'](_0x1ee47f){const _0x471c04=this['editor']['plugins']['get']('TableUtils');let _0xa9caac=Number['MAX_SAFE_INTEGER'],_0x4320c8=Number['MIN_SAFE_INTEGER'],_0x10ebb9=Number['MAX_SAFE_INTEGER'],_0x2f1c0c=Number['MIN_SAFE_INTEGER'];for(const _0x1af25d of _0x1ee47f){if('$graveyard'==_0x1af25d['root']['rootName'])continue;const {row:_0x7bc963,column:_0x4fa268}=_0x471c04['getCellLocation'](_0x1af25d),_0xa3c207=_0x1af25d['hasAttribute']('rowspan')?_0x1af25d['getAttribute']('rowspan')-0x1:0x0,_0x2d18de=_0x1af25d['hasAttribute']('colspan')?_0x1af25d['getAttribute']('colspan')-0x1:0x0;_0xa9caac=_0x7bc963<_0xa9caac?_0x7bc963:_0xa9caac,_0x4320c8=_0x7bc963+_0xa3c207>_0x4320c8?_0x7bc963+_0xa3c207:_0x4320c8,_0x10ebb9=_0x4fa268<_0x10ebb9?_0x4fa268:_0x10ebb9,_0x2f1c0c=_0x4fa268+_0x2d18de>_0x2f1c0c?_0x4fa268+_0x2d18de:_0x2f1c0c;}return{'minRow':_0xa9caac,'maxRow':_0x4320c8,'minColumn':_0x10ebb9,'maxColumn':_0x2f1c0c};}['_setupColumnsRowsFixing'](){const _0x196731=this['editor'],_0x3c5596=_0x196731['plugins']['get']('TrackChangesEditing'),_0x1e2545=_0x196731['plugins']['get']('TableUtils');_0x196731['model']['document']['on']('change:data',()=>{const _0x432446=Array['from'](_0x196731['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x185511,data:_0x4098b2}of _0x432446){const {group:_0xff49e7,id:_0x2c35e8,subType:_0x41cf3a}=_0x3c5596['_splitMarkerName'](_0x185511);if('suggestion'!=_0xff49e7)continue;if(null!=_0x4098b2['oldRange'])continue;const _0x5d5450=_0x3c5596['getSuggestion'](_0x2c35e8);this['_tablePostFixingSubtypes']['includes'](_0x41cf3a)&&this['_tableSuggestions']['add'](_0x5d5450);}},{'priority':'low'});const _0x2a29e9=(_0x1b2aa7,_0x512d22)=>{let _0x291518=!0x1;const _0x5861fa=_0x512d22['createRangeOn'](_0x1b2aa7),_0x8ffdaf=_0x1b2aa7['findAncestor']('table'),_0x4c5e00=_0x1e2545['getCellLocation'](_0x1b2aa7);for(const _0x27af29 of this['_tableSuggestions']){const _0x21085b=_0x27af29['subType'],_0x306ef3=_0x21085b['startsWith']('tablePaste'),_0x36ccbc=_0x21085b['substr'](_0x306ef3?0xa:0x5),_0x19c02d=_0x36ccbc['toLowerCase'](),_0x11f7e9=_0x19c02d['substr'](0x0,0x3)+'span',_0x54ce90='min'+_0x36ccbc,_0x33fddf='max'+_0x36ccbc;if(!_0x27af29['isInContent'])continue;if(_0x8ffdaf!=_0x27af29['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x27af29['isIntersectingWithRange'](_0x5861fa))continue;const _0x444a4b=_0x1b2aa7['hasAttribute'](_0x11f7e9)?_0x1b2aa7['getAttribute'](_0x11f7e9)-0x1:0x0,_0x1ae71a=this['_getSuggestionCoords'](_0x27af29),_0x3a8871=_0x1ae71a[_0x54ce90],_0x324f2e=_0x1ae71a[_0x33fddf];_0x3a8871<=_0x4c5e00[_0x19c02d]&&_0x4c5e00[_0x19c02d]+_0x444a4b<=_0x324f2e&&(_0x27af29['addRange'](_0x5861fa),_0x291518=!0x0);}return _0x291518;};_0x196731['model']['document']['registerPostFixer'](_0x143bb4=>{let _0x45b0a6=!0x1;for(const _0x5d6958 of _0x196731['model']['document']['differ']['getChanges']())if('insert'==_0x5d6958['type']){if('tableRow'==_0x5d6958['name']){for(const _0x4f86d1 of _0x5d6958['position']['nodeAfter']['getChildren']())_0x45b0a6=_0x45b0a6||_0x2a29e9(_0x4f86d1,_0x143bb4);}else'tableCell'==_0x5d6958['name']&&(_0x45b0a6=_0x45b0a6||_0x2a29e9(_0x5d6958['position']['nodeAfter'],_0x143bb4));}return _0x45b0a6;});}['_getSuggestionCoords'](_0xbd4300){return this['_getCoordsForCells'](_0xbd4300['getRanges']()['map'](_0x5c0ca3=>_0x5c0ca3['start']['nodeAfter']));}}function Ne(_0x400f18){return Array['from'](new Set(_0x400f18)['values']());}class _t extends _0xda4d6f{static get['requires'](){return[At];}['afterInit'](){const _0xa17745=this['editor'],_0x399fa6=_0xa17745['model']['document']['selection'],_0x2bd217=_0xa17745['locale'];if(!_0xa17745['plugins']['has']('TableEditing'))return;const _0x51e4ec=_0xa17745['plugins']['get']('TrackChangesEditing'),_0x42d72d=_0xa17745['plugins']['get']('TableUtils'),_0x54ee48=_0xa17745['plugins']['get'](At);_0x54ee48['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x51e4ec['enableCommand']('mergeTableCells',()=>{const _0x4d6c3b=_0x42d72d['getSelectionAffectedTableCells'](_0xa17745['model']['document']['selection']);_0xa17745['model']['change'](()=>{_0x51e4ec['markMultiRangeBlockFormat'](_0x4d6c3b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xa17745['commands']['get']('mergeTableCells')['on']('execute',(_0x4b18bc,_0x2b5209)=>{_0xa17745['commands']['get']('trackChanges')['value']&&(_0x2b5209['length']>0x0&&_0x2b5209[_0x2b5209['length']-0x1]&&_0x2b5209[_0x2b5209['length']-0x1]['forceDefaultExecution']||_0x51e4ec['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4b18bc['stop']());},{'priority':'highest'});for(const _0xb406ce of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x56f797=_0xa17745['commands']['get'](_0xb406ce);_0x51e4ec['enableCommand'](_0xb406ce,()=>{const _0x4d7f71=_0xa17745['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x585f8f=>_0x585f8f['is']('element','tableCell')),_0x14c491=_0x56f797['value'];_0xa17745['model']['change'](()=>{_0x51e4ec['markMultiRangeBlockFormat']([_0x4d7f71,_0x14c491],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xc73ca7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x98bf5e=_0xa17745['commands']['get'](_0xc73ca7);_0x51e4ec['enableCommand'](_0xc73ca7,()=>{const _0x47eada=_0x42d72d['getSelectionAffectedTableCells'](_0xa17745['model']['document']['selection'])[0x0],_0x30617d=_0x47eada['findAncestor']('table'),{column:_0x52f21e,row:_0x5c18ca}=_0x42d72d['getCellLocation'](_0x47eada);let _0x27686e=[];if('horizontally'==_0x98bf5e['direction']){const _0x2da3dc=_0x42d72d['createTableWalker'](_0x30617d,{'startRow':_0x5c18ca,'endRow':_0x5c18ca,'includeAllSlots':!0x0});_0x27686e=Array['from'](_0x2da3dc)['map'](_0x2bc22a=>_0x2bc22a['cell']);}else{const _0x5a18aa=_0x42d72d['createTableWalker'](_0x30617d,{'column':_0x52f21e,'includeAllSlots':!0x0});_0x27686e=Array['from'](_0x5a18aa)['map'](_0x528247=>_0x528247['cell']);}_0xa17745['model']['change'](_0x1e9399=>{_0x51e4ec['markBlockFormat'](_0x1e9399['createRangeOn'](_0x47eada),{'commandName':_0xc73ca7,'commandParams':[]},_0x27686e,_0xc73ca7);});});}_0x51e4ec['descriptionFactory']['registerDescriptionCallback'](_0x100d45=>{if('formatBlock'!=_0x100d45['type']&&'formatInline'!=_0x100d45['type'])return;const {data:_0x2881e1}=_0x100d45;return _0x2881e1&&'mergeTableCells'==_0x2881e1['commandName']?{'type':'format','content':o(_0x2bd217,'*Merge\x20cells*')}:void 0x0;}),_0x51e4ec['descriptionFactory']['registerDescriptionCallback'](_0x3f5ffd=>{if('formatBlock'!=_0x3f5ffd['type']&&'formatInline'!=_0x3f5ffd['type'])return;const {data:_0x31b5ab}=_0x3f5ffd;return _0x31b5ab?'splitTableCellVertically'==_0x31b5ab['commandName']?{'type':'format','content':o(_0x2bd217,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x31b5ab['commandName']?{'type':'format','content':o(_0x2bd217,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x54a4f1=_0x54ee48['_acceptFormatSuggestionCallbackFactory']();for(const _0x2c9de5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x51e4ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2c9de5,'accept',_0x54a4f1);for(const _0xee4311 of['splitTableCellVertically','splitTableCellHorizontally'])_0x51e4ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xee4311,'accept',_0x54a4f1);_0x51e4ec['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x506a21=>{_0xa17745['model']['change'](_0x483056=>{const _0x54c0d0=Array['from'](_0x399fa6['getRanges']())['map'](_0x4e50e9=>_0x18d379['fromRange'](_0x4e50e9));_0x483056['setSelection'](_0x506a21),_0xa17745['commands']['get']('mergeTableCells')['refresh'](),_0xa17745['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xd7c810=_0x54c0d0['filter'](_0x161765=>'$graveyard'!=_0x161765['root']['rootName']);_0xd7c810['length']>0x0&&_0x483056['setSelection'](_0xd7c810);for(const _0x28d75d of _0x54c0d0)_0x28d75d['detach']();});});for(const _0x5cbcfd of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1d03f8=_0xa17745['commands']['get'](_0x5cbcfd);_0x1d03f8['on']('set:isEnabled',(_0x13f714,_0x1608ec,_0x11e1a1)=>{if(_0x11e1a1){const _0x5d9471=_0xa17745['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x18c3a9=>_0x18c3a9['is']('element','tableCell'));this['_areMergableCells'](_0x1d03f8['value'],_0x5d9471)||(_0x13f714['return']=!0x1,_0x13f714['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4f47b3=this['editor']['commands']['get']('mergeTableCells'),_0xc1124=this['editor']['plugins']['get']('TableUtils');if(!_0x4f47b3['isEnabled'])return!0x1;const _0x1793ec=_0xc1124['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1cca42 of _0x1793ec)for(const _0x24c45a of _0x1793ec)if(_0x1cca42!=_0x24c45a&&!this['_areMergableCells'](_0x1cca42,_0x24c45a))return!0x1;return!0x0;}['_areMergableCells'](_0x30801f,_0x3793ec){const _0x2c15ab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c627b=this['editor']['model']['createRangeOn'](_0x30801f),_0x3474a9=this['editor']['model']['createRangeOn'](_0x3793ec),_0xad116b=new Set(),_0x43c28c=new Set();for(const _0x330500 of _0x2c15ab['getSuggestions']())if(('insertion'==_0x330500['type']||'deletion'==_0x330500['type']||'mergeTableCells'==_0x330500['subType'])&&_0x330500['isInContent']){for(const _0x75917b of _0x330500['getRanges']())_0x75917b['containsRange'](_0x1c627b,!0x0)&&_0xad116b['add'](_0x330500['type']+':'+_0x330500['author']['id']),_0x75917b['containsRange'](_0x3474a9,!0x0)&&_0x43c28c['add'](_0x330500['type']+':'+_0x330500['author']['id']);}if(_0xad116b['size']!=_0x43c28c['size'])return!0x1;for(const _0x1effdf of _0xad116b)if(!_0x43c28c['has'](_0x1effdf))return!0x1;return!0x0;}}class Ct extends _0xda4d6f{static get['requires'](){return[At];}['afterInit'](){const _0x4bc62a=this['editor'];if(!_0x4bc62a['plugins']['has']('TableEditing'))return;const _0x275cbf=_0x4bc62a['locale'],_0xcd040a=_0x4bc62a['plugins']['get']('TrackChangesEditing');_0xcd040a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xcd040a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xcd040a['registerBlockAttribute']('headingRows'),_0xcd040a['registerBlockAttribute']('headingColumns'),_0xcd040a['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x275cbf,'FORMAT_HEADER_ROW')),_0xcd040a['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x275cbf,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x7225b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e6b4e=this['editor']['plugins']['get']('TableUtils'),_0x2889b4=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x454ef6({showActiveMarker:_0x293025=!0x0,setDataAttribute:_0x100c8f=!0x0}={}){return(_0x146228,_0x3dc953,_0x590bd9)=>{const {type:_0x1e3cf5,id:_0x36ecc2}=_0x7225b0['_splitMarkerName'](_0x3dc953['markerName']),_0xb0969c=_0x7225b0['getSuggestion'](_0x36ecc2),_0x187eb0=_0xb0969c['data'];if('formatBlock'!=_0xb0969c['type']||!_0x187eb0||'setTableColumnHeader'!=_0x187eb0['commandName'])return;if(_0x3dc953['item'])return void _0x146228['stop']();if(!_0x590bd9['consumable']['consume'](_0x3dc953['markerRange'],_0x146228['name']))return;const _0x27d473=_0x3dc953['markerRange']['start']['nodeAfter'],_0x1512ae=_0x3dc953['markerRange']['end']['nodeBefore'],_0x231fc3=_0x27d473['parent']['parent'],{column:_0xec7c08}=_0x4e6b4e['getCellLocation'](_0x27d473),{column:_0x42d61a}=_0x4e6b4e['getCellLocation'](_0x1512ae);for(let _0x466557=_0xec7c08;_0x466557<=_0x42d61a;_0x466557++){const _0x16d9e3=_0x4e6b4e['createTableWalker'](_0x231fc3,{'column':_0x466557,'includeAllSlots':!0x1});for(const _0x3926a9 of _0x16d9e3){const _0x58b368=_0x3926a9['cell'],_0xe640e7=_0x590bd9['mapper']['toViewElement'](_0x58b368);_0x590bd9['writer']['addClass']('ck-suggestion-marker-'+_0x1e3cf5,_0xe640e7),_0x100c8f&&_0x590bd9['writer']['setAttribute']('data-suggestion',_0x36ecc2,_0xe640e7),_0x590bd9['mapper']['bindElementToMarker'](_0xe640e7,_0x3dc953['markerName']),_0x293025&&(_0x7225b0['activeMarkers']['includes'](_0x3dc953['markerName'])?_0x590bd9['writer']['addClass']('ck-suggestion-marker--active',_0xe640e7):_0x590bd9['writer']['removeClass']('ck-suggestion-marker--active',_0xe640e7));}}};}_0x7225b0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2889b4),_0x7225b0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2889b4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x454ef6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x281ba2,_0x4e039c,_0x45ec17)=>{_0x45ec17['options']['showSuggestionHighlights']&&_0x454ef6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x281ba2,_0x4e039c,_0x45ec17);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x378d3b,_0x312ca3,_0x59c4e2)=>{const {type:_0x395745,id:_0x27d0c9}=_0x7225b0['_splitMarkerName'](_0x312ca3['markerName']),_0x32ec5f=_0x7225b0['getSuggestion'](_0x27d0c9),_0x37f00c=_0x32ec5f['data'];if('formatBlock'!=_0x32ec5f['type']||!_0x37f00c||'setTableColumnHeader'!=_0x37f00c['commandName'])return;const _0x599ec5=_0x59c4e2['mapper']['markerNameToElements'](_0x312ca3['markerName']);if(_0x599ec5){for(const _0x5ba1a5 of _0x599ec5)_0x59c4e2['writer']['removeClass']('ck-suggestion-marker-'+_0x395745,_0x5ba1a5),_0x59c4e2['writer']['removeClass']('ck-suggestion-marker--active',_0x5ba1a5),_0x59c4e2['writer']['removeAttribute']('data-suggestion',_0x5ba1a5),_0x59c4e2['mapper']['unbindElementFromMarkerName'](_0x5ba1a5,_0x312ca3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x200008=this['editor'],_0x58001f=_0x200008['locale'];function _0x2e726c(_0x4d410b){return{'type':'format','content':o(_0x58001f,'*Format:*\x20%0',_0x4d410b)};}_0x200008['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d2709=>{if('formatBlock'!=_0x5d2709['type'])return;const {data:_0x3584b0}=_0x5d2709;if(_0x3584b0){if('setTableRowHeader'==_0x3584b0['commandName']){const _0x1e5926=_0x3584b0['commandParams'][0x0]['forceValue'];return _0x2e726c(o(_0x58001f,_0x1e5926?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3584b0['commandName']){const _0x4c1621=_0x3584b0['commandParams'][0x0]['forceValue'];return _0x2e726c(o(_0x58001f,_0x4c1621?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xda4d6f{['afterInit'](){const _0x25f1c2=this['editor'],_0x2e7ede=_0x25f1c2['locale'],_0x4965c9=_0x25f1c2['plugins']['get']('TrackChangesEditing');function _0x46b085(_0x7d59e5){return{'type':'format','content':''+o(_0x2e7ede,'*Set\x20table\x20type:*\x20%0',_0x7d59e5)};}_0x25f1c2['plugins']['has']('TableLayout')&&(_0x4965c9['enableCommand']('insertTableLayout'),_0x4965c9['enableDefaultAttributesIntegration']('tableType'),_0x4965c9['registerBlockAttribute']('tableType'),_0x4965c9['descriptionFactory']['registerElementLabel'](_0x2d1e8e=>_0x2d1e8e['is']('element','table')&&'layout'===_0x2d1e8e['getAttribute']('tableType'),_0x4677fc=>o(_0x2e7ede,'ELEMENT_LAYOUT_TABLE',_0x4677fc)),_0x4965c9['descriptionFactory']['registerDescriptionCallback'](_0x7271ba=>{const {data:_0x4b1b01}=_0x7271ba;if(_0x4b1b01&&'tableType'==_0x4b1b01['key'])switch(_0x4b1b01['newValue']){case'layout':return _0x46b085(o(_0x2e7ede,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x46b085(o(_0x2e7ede,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x1b94ea=>[_0x1b94ea,null]));class Nt extends _0xda4d6f{static get['requires'](){return[At];}['afterInit'](){const _0x4d94d0=this['editor'];if(!_0x4d94d0['plugins']['has']('TableClipboard'))return;const _0x53345d=_0x4d94d0['plugins']['get']('TrackChangesEditing'),_0x5a920b=_0x4d94d0['plugins']['get']('TableUtils'),_0xf6f50a=_0x4d94d0['plugins']['get'](At),_0x29064b=_0x4d94d0['plugins']['get']('TableClipboard'),_0x23ac9f=_0x4d94d0['plugins']['get']('TableSelection'),_0x137172=_0x4d94d0['plugins']['get'](_0x59fc0e);_0xf6f50a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4d94d0['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4d94d0['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x413910=null,_0x37662b=!0x1;_0x137172['on']('contentInsertion',(_0x4dc090,_0x4823e6)=>{_0x37662b='paste'===_0x4823e6['method'];}),_0x4d94d0['model']['on']('insertContent',(_0x2ed43f,_0x300018)=>{if(!_0x37662b&&null===_0x23ac9f['getSelectedTableCells']())return;const [_0xc57e44,_0x4ab1e5]=_0x300018,_0x46b4b2=_0x300018[_0x300018['length']-0x1];_0x46b4b2&&_0x46b4b2['forceDefaultExecution']||_0x53345d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x141a99,_0x493c69,_0x28c9a1,_0x2b5968,_0x2d430b){if(_0x493c69&&!_0x493c69['is']('documentSelection'))return!0x1;const _0x31f93f=_0x2d430b['getTableIfOnlyTableInContent'](_0x141a99,_0x28c9a1);if(!_0x31f93f||!Ue(_0x31f93f,void 0x0,_0x2b5968))return!0x1;const _0x74adc4=_0x2b5968['getSelectionAffectedTableCells'](_0x28c9a1['document']['selection']);if(!_0x74adc4['length'])return!0x1;const _0x240a0d=_0x74adc4[0x0]['findAncestor']('table'),_0x342eca=_0x2b5968['getRowIndexes'](_0x74adc4),_0xe39d3b=_0x2b5968['getColumnIndexes'](_0x74adc4),_0x11e646={'startRow':_0x342eca['first'],'endRow':_0x342eca['last'],'startColumn':_0xe39d3b['first'],'endColumn':_0xe39d3b['last']};return 0x1==_0x74adc4['length']&&(_0x11e646['endRow']+=_0x2b5968['getRows'](_0x31f93f)-0x1,_0x11e646['endColumn']+=_0x2b5968['getColumns'](_0x31f93f)-0x1),Ue(_0x240a0d,_0x11e646,_0x2b5968);}(_0xc57e44,_0x4ab1e5,_0x4d94d0['model'],_0x5a920b,_0x29064b)&&(_0x2ed43f['stop'](),_0x413910={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4d94d0['model']['change'](()=>{_0x4d94d0['model']['insertContent'](_0x300018[0x0],_0x300018[0x1],_0x300018[0x2],{'forceDefaultExecution':!0x0});const _0x43b3f5=_0x4d5fba(),{rowInsertionRanges:_0x3fd406,columnInsertionRanges:_0x546776,insertionRanges:_0x3229d3,deletionRanges:_0x3815ba,cells:_0x14434f}=_0x413910;_0x3fd406['length']&&_0x53345d['markMultiRangeInsertion'](_0x3fd406,'tablePasteRow',{'tablePasteChainId':_0x43b3f5}),_0x546776['length']&&_0x53345d['markMultiRangeInsertion'](_0x546776,'tablePasteColumn',{'tablePasteChainId':_0x43b3f5}),_0x3229d3['length']&&(_0x53345d['markMultiRangeInsertion'](_0x3229d3,'tablePaste',{'tablePasteChainId':_0x43b3f5,'skipNestingCheck':!0x0}),_0x3229d3['forEach'](_0x4576e4=>_0x4576e4['detach']?.())),_0x3815ba['length']&&(_0x53345d['markMultiRangeDeletion'](_0x3815ba,'tablePaste',{'tablePasteChainId':_0x43b3f5,'skipNestingCheck':!0x0}),_0x3815ba['forEach'](_0x579073=>_0x579073['detach']?.()));const _0x45a502=_0x53345d['markMultiRangeBlockFormat'](_0x14434f['map'](({element:_0x20df63})=>_0x20df63),{'formatGroupId':_0x4d5fba()},[],'tablePasteCell',{'tablePasteChainId':_0x43b3f5});if(_0x45a502){const _0x5e4cfe=_0x45a502['getMarkers'](),_0x318269=[];for(const {element:_0x44e2c8,attributes:_0x1646e6}of _0x14434f){if(!_0x1646e6)continue;const _0x41f192=_0x4d94d0['model']['createRangeOn'](_0x44e2c8),_0x16fd49=_0x5e4cfe['find'](_0x12c266=>_0x12c266['getRange']()['isEqual'](_0x41f192));_0x16fd49&&_0x318269['push']([_0x16fd49['name'],_0x1646e6]);}_0x318269['length']&&_0x45a502['setAttribute']('markerAttributes',Object['fromEntries'](_0x318269));}_0x413910=null;}));},{'priority':_0x27f0f7['high']+0xa}),_0x137172['on']('contentInsertion',()=>{_0x37662b=!0x1;},{'priority':'lowest'}),_0x4d94d0['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x925331,_0x5f49ce)=>{const [_0x5b117b,_0x40ff58,,_0x52b066]=_0x5f49ce;if(!_0x413910)return;_0x925331['stop']();const _0xd9e3ff=_0x5b117b['cell'],_0x3996c9=_0x40ff58,_0x15b6a1=Oe(_0xd9e3ff),_0x87ca0e=Oe(_0x3996c9);_0x925331['return']=_0xd9e3ff;let _0x50b2c3=null,_0x37047f=null;if(_0x87ca0e||_0x15b6a1){if(_0x15b6a1&&!_0x87ca0e){_0x52b066['remove'](_0xd9e3ff['getChild'](0x0));for(const _0xc23b18 of Array['from'](_0x3996c9['getChildren']()))_0x52b066['insert'](_0xc23b18,_0xd9e3ff,'end');const _0x2cc2df=_0x413910['rowInsertionIndexes']['includes'](_0x5b117b['row']),_0x3ac232=_0x413910['columnInsertionIndexes']['includes'](_0x5b117b['column']);_0x2cc2df||_0x3ac232||(_0x50b2c3=_0x18d379['fromRange'](_0x52b066['createRangeIn'](_0xd9e3ff)));}else _0x87ca0e&&!_0x15b6a1&&(_0x37047f=_0x52b066['createRangeIn'](_0xd9e3ff));}else{const _0xbb0062=_0x52b066['createElement']('tableCellSuggestion'),_0x3d71d1=_0x52b066['createElement']('tableCellSuggestion');_0x52b066['wrap'](_0x52b066['createRangeIn'](_0xd9e3ff),_0x3d71d1),_0x52b066['insert'](_0xbb0062,_0xd9e3ff,0x0);for(const _0xdf7801 of Array['from'](_0x3996c9['getChildren']()))_0x52b066['insert'](_0xdf7801,_0xbb0062,'end');_0x50b2c3=_0x18d379['fromRange'](_0x52b066['createRangeOn'](_0xbb0062)),_0x37047f=_0x18d379['fromRange'](_0x52b066['createRangeOn'](_0x3d71d1));}const _0x3a6bcb=Array['from'](_0x3996c9['getAttributes']())['filter'](([_0x136b37])=>Be['includes'](_0x136b37));_0x413910['cells']['push']({'element':_0xd9e3ff,'attributes':_0x3a6bcb['length']?Object['fromEntries'](_0x3a6bcb):null}),_0x50b2c3&&_0x413910['insertionRanges']['push'](_0x50b2c3),_0x37047f&&_0x413910['deletionRanges']['push'](_0x37047f);},{'priority':'high'}),_0x5a920b['on']('insertColumns',(_0x40ec76,_0x3da450)=>{const [_0x9744b2,_0x3df37e={}]=_0x3da450;if(!_0x413910)return;const _0x56d478=_0x3df37e['at']||0x0,_0x458fc9=_0x3df37e['columns']||0x1;_0x413910['columnInsertionIndexes']=new Array(_0x458fc9)['fill'](_0x56d478)['map']((_0x218e0d,_0x3cbbfe)=>_0x218e0d+_0x3cbbfe);for(const {cell:_0x43c474}of _0x5a920b['createTableWalker'](_0x9744b2,{'startColumn':_0x56d478,'endColumn':_0x56d478+_0x458fc9-0x1}))_0x413910['columnInsertionRanges']['push'](_0x4d94d0['model']['createRangeOn'](_0x43c474));},{'priority':'low'}),_0x5a920b['on']('insertRows',(_0x30c931,_0x345e11)=>{const [_0x569ca2,_0x839436={}]=_0x345e11;if(!_0x413910)return;const _0x5957be=_0x839436['at']||0x0,_0x101275=_0x839436['rows']||0x1;_0x413910['rowInsertionIndexes']=new Array(_0x101275)['fill'](_0x5957be)['map']((_0x2a048e,_0x3a1ea9)=>_0x2a048e+_0x3a1ea9);for(const {cell:_0x3e4013}of _0x5a920b['createTableWalker'](_0x569ca2,{'startRow':_0x5957be,'endRow':_0x5957be+_0x101275-0x1}))_0x413910['rowInsertionRanges']['push'](_0x4d94d0['model']['createRangeOn'](_0x3e4013));},{'priority':'low'}),_0x53345d['descriptionFactory']['registerDescriptionCallback'](_0x7ec955=>{if(_0x7ec955['subType']&&_0x7ec955['subType']['startsWith']('tablePaste'))return _0x7ec955['previous']?{}:{'type':'insertion','content':o(_0x4d94d0['locale'],'*Replace\x20table\x20cells*')};});const _0x17d320=()=>!0x1;for(const _0x53b8b5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x53345d['_suggestionFactory']['registerCustomCallback']('insertion',_0x53b8b5,'join',_0x17d320),_0x53345d['_suggestionFactory']['registerCustomCallback']('deletion',_0x53b8b5,'join',_0x17d320),_0x53345d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53b8b5,'join',_0x17d320);_0x53345d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x17d320),_0x53345d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x59bdea,_0x3501f9,_0x21afc7)=>{const _0x4e1bdf=_0x59bdea['map'](_0x4d6e44=>_0x4d6e44['getContainedElement']())['filter'](_0x134f21=>_0x134f21),_0x50d362=new Map(_0x4e1bdf['map'](_0x414f29=>[_0x414f29,null]));if(_0x413910){for(const {element:_0x59e165,attributes:_0x5f2352}of _0x413910['cells'])_0x5f2352&&_0x50d362['set'](_0x59e165,_0x5f2352);}else{if(_0x21afc7&&_0x21afc7['markerAttributes'])for(const [_0x2d8291,_0xa810e2]of Object['entries'](_0x21afc7['markerAttributes'])){const _0xdc29c9=_0x4d94d0['model']['markers']['get'](_0x2d8291),_0x3a6c17=_0xdc29c9?_0xdc29c9['getRange']()['getContainedElement']():null;_0x3a6c17&&_0x50d362['set'](_0x3a6c17,_0xa810e2);}}_0x4d94d0['model']['change'](_0x104bf1=>{for(const [_0x1c80b0,_0x506de6]of _0x50d362)_0x104bf1['setAttributes']({...xe,..._0x506de6},_0x1c80b0);});});const _0x1f1897=(_0x58401e,_0x4c4c85)=>{_0x53345d['_suggestionFactory']['registerCustomCallback'](_0x58401e,'tablePaste',_0x4c4c85,(_0xbbbb71,_0x3cc055,_0x248a80)=>{_0x4d94d0['model']['change'](_0x9f6f60=>{const _0x293883=[];for(const _0x193677 of _0xbbbb71){const _0x176100=_0x193677['start']['nodeAfter'];_0x176100['is']('element','tableCellSuggestion')&&_0x293883['push'](_0x176100);}_0x53345d['_suggestionFactory']['getSuggestionCallback'](_0x58401e,null,_0x4c4c85)(_0xbbbb71,_0x3cc055,_0x248a80);for(const _0x57a1ca of _0x293883)'$graveyard'!=_0x57a1ca['root']['rootName']&&_0x9f6f60['unwrap'](_0x57a1ca);});});};_0x1f1897('insertion','accept'),_0x1f1897('insertion','discard'),_0x1f1897('deletion','accept'),_0x1f1897('deletion','discard'),_0x53345d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x224a42=>{const _0xab044c=_0x224a42['map'](_0x2ae9b2=>_0x2ae9b2['getContainedElement']()),_0x8a98af=_0xab044c[0x0]['findAncestor']('table'),{minRow:_0x4fcf6b,maxRow:_0x2c7fb0}=_0xf6f50a['_getCoordsForCells'](_0xab044c);_0x5a920b['removeRows'](_0x8a98af,{'at':_0x4fcf6b,'rows':_0x2c7fb0-_0x4fcf6b+0x1});}),_0x53345d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xcdce33=>{const _0x431981=_0xcdce33['map'](_0x857b18=>_0x857b18['getContainedElement']()),_0x2e86ae=_0x431981[0x0]['findAncestor']('table'),{minColumn:_0x169922,maxColumn:_0x5d61c4}=_0xf6f50a['_getCoordsForCells'](_0x431981);_0x5a920b['removeColumns'](_0x2e86ae,{'at':_0x169922,'columns':_0x5d61c4-_0x169922+0x1});});const _0x49e942=(_0xca8e42,_0x24fbb6)=>{if(!_0x24fbb6['subType']||!_0x24fbb6['subType']['startsWith']('tablePaste'))return;const _0x5cd739=_0x24fbb6['attributes']['tablePasteChainId'],_0x3f6e4a=_0x53345d['getSuggestions']()['filter'](_0x446ad9=>_0x446ad9['isInContent']&&_0x446ad9['attributes']&&_0x446ad9['attributes']['tablePasteChainId']==_0x5cd739);_0x3f6e4a['length']&&_0x24fbb6['getAllAdjacentSuggestions']()['length']!=_0x3f6e4a['length']&&_0x3f6e4a['reduce']((_0x196b7d,_0x4eec79)=>(_0x196b7d['next']=_0x4eec79,_0x4eec79['previous']=_0x196b7d,_0x4eec79));};function _0x264bf0(_0x1cf07d,_0xbd44e6=!0x0){const {id:_0xa8bbdd,authorId:_0x2c447c}=_0x53345d['_splitMarkerName'](_0x1cf07d['markerName']),_0x8d4f89=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4b3c54=_0x53345d['activeMarkers']['includes'](_0x1cf07d['markerName']);return _0x4b3c54&&_0x8d4f89['push']('ck-suggestion-marker--active'),{'classes':_0x8d4f89,'attributes':{'data-suggestion':_0xa8bbdd,'data-author-id':_0x2c447c},'priority':_0x4b3c54&&_0xbd44e6?0xbc2:0xbb8};}_0x53345d['on']('suggestionLoaded',_0x49e942,{'priority':'high'}),_0x53345d['on']('suggestionUnloaded',_0x49e942,{'priority':'high'}),_0x4d94d0['model']['document']['registerPostFixer'](()=>{let _0x14f989=!0x1;const _0x51cff5=Array['from'](_0x4d94d0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa1c57a,data:_0xce9451}of _0x51cff5){const {group:_0x3c0c60,type:_0x92835,id:_0x1e1dd2}=_0x53345d['_splitMarkerName'](_0xa1c57a);if('suggestion'!=_0x3c0c60||'deletion'!=_0x92835||_0xce9451['oldRange'])continue;if(!_0x53345d['hasSuggestion'](_0x1e1dd2))continue;const _0xdc0e1f=_0x53345d['getSuggestion'](_0x1e1dd2)['getRanges'](),_0x32c1e4=_0x4d94d0['plugins']['get']('Users')['me'];for(const _0xd22568 of _0x53345d['getSuggestions']()){if(!_0xd22568['isInContent']||_0xd22568['author']!=_0x32c1e4)continue;if('formatBlock'!=_0xd22568['type']||'tablePasteCell'!=_0xd22568['subType'])continue;if(_0xd22568['getRanges']()['every'](_0x2eb2cc=>_0xdc0e1f['some'](_0x1bc97c=>_0x1bc97c['containsRange'](_0x2eb2cc,!0x0)))){for(const _0x40d5f5 of _0xd22568['getAllAdjacentSuggestions']())_0x40d5f5['isInContent']&&(_0x40d5f5['discard'](),_0x14f989=!0x0);}}}return _0x14f989;}),_0x4d94d0['model']['document']['registerPostFixer'](_0x20f4c0=>{const _0x21858b=_0x4d94d0['commands']['get']('redo');if(!_0x21858b||!_0x21858b['_createdBatches']['has'](_0x20f4c0['batch']))return!0x1;let _0x3b8986=!0x1;const _0x4ffa41=_0x4d94d0['plugins']['get']('Users')['me'],_0x3bcd31=_0x4d94d0['model']['document']['differ']['getChanges'](),_0x5e269b=Array['from'](_0x4d94d0['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xb31a3b,data:_0x299cd2})=>{const {group:_0x2b2efc,subType:_0x3a64d5,authorId:_0x402396}=_0x53345d['_splitMarkerName'](_0xb31a3b);return'suggestion'==_0x2b2efc&&'tablePaste'==_0x3a64d5&&_0x402396==_0x4ffa41['id']&&!_0x299cd2['oldRange'];});for(const _0x4fc9ed of _0x3bcd31){if('insert'!=_0x4fc9ed['type']||'tableCellSuggestion'!=_0x4fc9ed['name']||0x1!=_0x4fc9ed['length'])continue;const _0xb3a852=_0x20f4c0['createRange'](_0x4fc9ed['position'],_0x4fc9ed['position']['getShiftedBy'](0x1));if(!_0x5e269b['find'](({data:_0x44186d})=>_0x44186d['newRange']['isEqual'](_0xb3a852))){for(const {name:_0x191eac,data:_0x8ec62b}of _0x5e269b)if(_0xb3a852['containsRange'](_0x8ec62b['newRange'])){_0x20f4c0['updateMarker'](_0x191eac,{'range':_0xb3a852}),_0x3b8986=!0x0;break;}}}return _0x3b8986;}),_0x4d94d0['model']['document']['registerPostFixer'](_0x20994a=>{let _0x5e41a8=!0x1;const _0x45520b=_0x4d94d0['plugins']['get']('Users')['me'],_0x388925=_0x53345d['getSuggestions']()['filter'](_0x97b913=>_0x97b913['isInContent']&&_0x97b913['author']==_0x45520b),_0x115fbc=new Set(),_0x5484a0=new Set();for(const _0x5d4266 of _0x388925)if('tablePaste'==_0x5d4266['subType'])for(const _0x2bb2ff of _0x5d4266['getMarkers']()){const _0xfd2926=_0x2bb2ff['getRange']()['getContainedElement']();if(_0xfd2926){if(_0xfd2926['is']('element','tableCellSuggestion')&&Oe(_0xfd2926)){_0x5d4266['removeMarker'](_0x2bb2ff['name']),_0x115fbc['add'](_0xfd2926),_0x5e41a8=!0x0;const _0x47e725=_0xfd2926['nextSibling'],_0x35f4d4=_0xfd2926['previousSibling'],_0x5990da=_0x47e725&&_0x47e725['is']('element','tableCellSuggestion'),_0x532a1a=_0x35f4d4&&_0x35f4d4['is']('element','tableCellSuggestion');_0x5990da&&!_0x115fbc['has'](_0x47e725)&&_0x5484a0['add'](_0x47e725),_0x532a1a&&!_0x115fbc['has'](_0x35f4d4)&&_0x5484a0['add'](_0x35f4d4);}else _0xfd2926['is']('element','paragraph')&&_0xfd2926['isEmpty']&&(_0x5d4266['removeMarker'](_0x2bb2ff['name']),_0x5e41a8=!0x0);}}else{if('tablePasteCell'==_0x5d4266['subType']){if(!_0x5d4266['attributes']||!_0x5d4266['attributes']['tablePasteChainId'])continue;const _0x28de78=_0x5d4266['attributes']['markerAttributes'];if(_0x28de78&&Object['keys'](_0x28de78)['length'])continue;const _0x2f188f=_0x5d4266['attributes']['tablePasteChainId'];let _0x35d51e=!0x0,_0x1dd32b=!0x0;for(const _0x5bc45f of _0x388925)if(_0x5bc45f['subType']&&_0x5bc45f['subType']['startsWith']('tablePaste')){if(!_0x5bc45f['attributes']['tablePasteChainId']){_0x1dd32b=!0x1;break;}if(_0x5bc45f['id']!=_0x5d4266['id']&&_0x5bc45f['attributes']['tablePasteChainId']==_0x2f188f){_0x35d51e=!0x1;break;}}_0x1dd32b&&_0x35d51e&&(_0x5d4266['removeMarkers'](),_0x5e41a8=!0x0);}}for(const _0x45894b of _0x115fbc)_0x20994a['remove'](_0x45894b);for(const _0x409a31 of _0x5484a0)_0x20994a['unwrap'](_0x409a31);return _0x5e41a8;}),_0x4d94d0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x442def=>_0x264bf0(_0x442def),'converterPriority':'high'}),_0x4d94d0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x861647,_0x2962c4)=>_0x2962c4['options']['showSuggestionHighlights']?_0x264bf0(_0x861647,!0x1):null,'converterPriority':'high'});const _0x24bc27=_0x4d94d0['editing']['view'];this['listenTo'](_0x24bc27['document'],'clipboardOutput',(_0x545c07,_0x59e798)=>{const _0x20c038=[];for(const _0x352e45 of _0x24bc27['createRangeIn'](_0x59e798['content'])['getItems']())_0x352e45['is']('element','suggestion-td')&&_0x20c038['push'](_0x352e45);_0x24bc27['change'](_0x5b0c88=>{for(const _0x285cb8 of _0x20c038)_0x5b0c88['move'](_0x5b0c88['createRangeIn'](_0x285cb8),_0x5b0c88['createPositionBefore'](_0x285cb8)),_0x5b0c88['remove'](_0x285cb8);});});}}function Oe(_0x385d6f){if(_0x385d6f['isEmpty'])return!0x0;const _0x47332f=_0x385d6f['getChild'](0x0);return _0x47332f['is']('element','paragraph')&&_0x47332f['isEmpty'];}function Ue(_0xa6fcc6,_0x33f6a3={},_0x2174b4){for(const {isAnchor:_0x10a9c5,cellHeight:_0x52345d,cellWidth:_0x428755}of _0x2174b4['createTableWalker'](_0xa6fcc6,{'includeAllSlots':!0x0,..._0x33f6a3}))if(!_0x10a9c5||0x1!=_0x52345d||0x1!=_0x428755)return!0x1;return!0x0;}class Dt extends _0xda4d6f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4f35fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f35fb['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4f35fb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4f35fb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f35fb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4f35fb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4f35fb['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x185156,_0x154dc2){const _0x2434e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f1039=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x8b9a05=_0x154dc2['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x16a4e9=_0x4f1039['getColumnGroupElement'](_0x8b9a05);let _0x2c3c85=_0x16a4e9?_0x4f1039['getTableColumnsWidths'](_0x16a4e9):null,_0x5ae25c=_0x8b9a05['getAttribute']('tableWidth')||null;const _0x507e20=_0x154dc2['tableWidth']||_0x5ae25c,_0x4083f2=_0x154dc2['columnWidths']||_0x2c3c85,_0xaf4ff2=this['editor']['plugins']['get']('Users')['me'];for(const _0x254cec of _0x2434e4['getSuggestions']()){const _0x453b46=_0x254cec['getContainedElement']();if('resizeTable'===_0x254cec['subType']&&_0x453b46===_0x8b9a05){_0x254cec['author']!==_0xaf4ff2&&_0x254cec['discard']();const _0x5a3d0e=_0x254cec['data']['commandParams'];_0x5ae25c=_0x5a3d0e[0x0]['tableWidth'],_0x2c3c85=_0x5a3d0e[0x0]['columnWidths'];break;}}_0x185156({'table':_0x8b9a05,'tableWidth':_0x507e20,'columnWidths':_0x4083f2}),_0x2434e4['markBlockFormat'](_0x8b9a05,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5ae25c,'columnWidths':_0x2c3c85}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x158aa7){if('formatBlock'!=_0x158aa7['type']&&'formatInline'!=_0x158aa7['type'])return;const {data:_0x391350}=_0x158aa7;if(_0x391350&&'resizeTable'===_0x391350['formatGroupId']){const _0x2d29a1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2d29a1)};}}}class $t extends _0xda4d6f{['afterInit'](){const _0x2f35e4=this['editor'];_0x2f35e4['plugins']['has']('Template')&&_0x2f35e4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xda4d6f{['afterInit'](){const _0xf8979c=this['editor'];if(!_0xf8979c['commands']['get']('insertTableOfContents'))return;_0xf8979c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x316482=_0xf8979c['plugins']['get']('TrackChangesEditing'),_0x5ce432=_0xf8979c['locale'];_0x316482['descriptionFactory']['registerElementLabel']('tableOfContents',_0x285256=>o(_0x5ce432,'ELEMENT_TABLE_OF_CONTENTS',_0x285256));}}class Bt extends _0xda4d6f{['afterInit'](){const _0x376823=this['editor'];if(!_0x376823['plugins']['has']('Title'))return;const _0x309d0c=_0x376823['plugins']['get']('TrackChangesEditing');_0x309d0c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x376823['locale'],'ELEMENT_TITLE')),_0x376823['model']['document']['registerPostFixer'](_0x3eef7b=>{let _0x2bf5db=!0x1;const _0x503c2c=Array['from'](_0x376823['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x529ec3,data:_0x2c4b50}of _0x503c2c){const {group:_0x478e41}=_0x309d0c['_splitMarkerName'](_0x529ec3);if('suggestion'!==_0x478e41||!_0x2c4b50['newRange'])continue;const _0xbb5a14=_0x2c4b50['newRange'],_0x3af9f2=_0xbb5a14['end']['nodeBefore'];if(!_0x3af9f2||!_0x3af9f2['is']('element','title-content'))continue;if(!_0xbb5a14['start']['isTouching'](_0xbb5a14['end']))continue;const _0x4e03d0=_0x376823['model']['schema']['getNearestSelectionRange'](_0xbb5a14['end'],'forward');if(_0x4e03d0&&_0x4e03d0['isCollapsed']){const _0x4405ea=_0x3eef7b['createRange'](_0xbb5a14['start'],_0x4e03d0['start']);_0x4405ea['isEqual'](_0xbb5a14)||(_0x3eef7b['updateMarker'](_0x529ec3,{'range':_0x4405ea}),_0x2bf5db=!0x0);}_0x2bf5db||(_0x3eef7b['removeMarker'](_0x529ec3),_0x2bf5db=!0x0);}return _0x2bf5db;});}}class Tt extends _0xda4d6f{['afterInit'](){const _0x500176=this['editor'],_0x1e2afe=_0x500176['plugins']['get']('TrackChangesEditing');_0x500176['plugins']['has']('Uploadcare')&&(_0x1e2afe['enableCommand']('uploadcare'),_0x500176['plugins']['has']('UploadcareImageEdit')&&(_0x1e2afe['enableCommand']('uploadcareImageEdit'),_0x1e2afe['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1e2afe['registerBlockAttribute']('uploadcareImageId'),_0x1e2afe['descriptionFactory']['registerDescriptionCallback'](_0x1d737f=>{if('attribute'!=_0x1d737f['type'])return;const {data:_0xa0ff1c}=_0x1d737f;return _0xa0ff1c&&'uploadcareImageId'==_0xa0ff1c['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xda4d6f{['afterInit'](){const _0x24e5eb=this['editor'],_0x312f3d=_0x24e5eb['plugins']['get']('TrackChangesEditing');_0x24e5eb['plugins']['has']('UndoEditing')&&(_0x312f3d['enableCommand']('undo'),_0x312f3d['enableCommand']('redo'));}}class Ot extends _0xda4d6f{static get['requires'](){return[At];}['afterInit'](){const _0x5559ae=this['editor'];if(!_0x5559ae['plugins']['has']('TableCaptionEditing'))return;_0x5559ae['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xda4d6f{['tableProperties'];['tableCellProperties'];constructor(_0x49b9ce){super(_0x49b9ce),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 _0x252b7d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x11fe5c of this['tableProperties'])_0x252b7d['enableCommand'](_0x11fe5c,(_0xa19d39,_0x380d31)=>{const _0x292327=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x11fe5c,[_0x292327],this['tableProperties'],'tableProperties',_0xa19d39,_0x380d31);});_0x252b7d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x252b7d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x252b7d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x41a20f,_0x11d396)=>this['handleDiscardAction'](this['tableProperties'],_0x41a20f,_0x11d396)),_0x252b7d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x18ff3f of this['tableCellProperties'])_0x252b7d['enableCommand'](_0x18ff3f,(_0x1a6a61,_0x48e3e2)=>{const _0x4446bd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x18ff3f,_0x4446bd,this['tableCellProperties'],'tableCellProperties',_0x1a6a61,_0x48e3e2);});_0x252b7d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x252b7d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x252b7d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5966ed,_0x19e86b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5966ed,_0x19e86b)),_0x252b7d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x252b7d['descriptionFactory']['registerDescriptionCallback'](_0x4c0c49=>this['handleSuggestionDescription'](_0x4c0c49)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xf7c75b,_0x5db318,_0x10749e,_0x4837f2,_0x4f911b,_0x327c1e){const _0x2747a5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x327c1e['batch'],()=>{for(const _0x4dc6d2 of _0x5db318){if(this['_getSuggestion'](_0x4dc6d2,_0x4837f2))_0x4f911b(_0x327c1e);else{const _0x1446b={};for(const _0x4fecec of _0x10749e){const _0x30800e=_0x4dc6d2['getAttribute'](_0x4fecec);void 0x0!==_0x30800e&&(_0x1446b[_0x4fecec]=_0x30800e);}_0x4f911b(_0x327c1e),_0x2747a5['markBlockFormat'](_0x4dc6d2,{'commandParams':[_0x1446b]},[],_0x4837f2);}}});}['handleDiscardAction'](_0x41c716,_0x25eea9,_0x294015){const _0x5a800d=_0x25eea9[0x0]['start']['nodeAfter'],_0x55629a=_0x294015['commandParams'][0x0];this['editor']['model']['change'](_0x11532a=>{for(const _0x371196 of _0x41c716)void 0x0!==_0x55629a[_0x371196]?_0x11532a['setAttribute'](_0x371196,_0x55629a[_0x371196],_0x5a800d):_0x11532a['removeAttribute'](_0x371196,_0x5a800d);});}['handleSuggestionDescription'](_0x17a940){if(_0x17a940['data'])switch(_0x17a940['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'](_0x5cfa6b,_0x3a9e88){const _0x296136=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xfe0478 of _0x296136['getSuggestions']({'skipNotAttached':!0x0})){const _0x2cb843=_0xfe0478['getContainedElement']();if(_0xfe0478['subType']===_0x3a9e88&&_0x2cb843===_0x5cfa6b)return _0xfe0478;}return null;}['_registerTablePropertiesAttributes'](){const _0x30df90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29c9d1=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x260b87 of _0x29c9d1){const _0x475225=_0x260b87['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x30df90['registerBlockAttribute'](_0x260b87),_0x30df90['descriptionFactory']['registerAttributeLabel'](_0x260b87,o(this['editor']['locale'],'FORMAT_'+_0x475225));}}}class Rt extends _0xda4d6f{['afterInit'](){const _0x1f3e59=this['editor'];if(!_0x1f3e59['plugins']['has']('LineHeight'))return;const _0x5c642f=_0x1f3e59['plugins']['get']('TrackChangesEditing'),_0x14b279=_0x1f3e59['locale'];_0x5c642f['enableDefaultAttributesIntegration']('lineHeight'),_0x5c642f['registerBlockAttribute']('lineHeight'),_0x5c642f['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x14b279,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xda4d6f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x1ed6b1,_0x371942,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d9385){super(_0x3d9385),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x16a1a5,_0x225e87,_0x4be20d,_0x86483b)=>{this['_model']['change'](()=>{for(const _0x204e6e of[..._0x86483b,..._0x4be20d])this['_model']['markers']['has'](_0x204e6e)&&_0x3d9385['editing']['reconvertMarker'](_0x204e6e);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3d9385['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(),_0x3d9385['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3d9385['config']['get']('trackChanges.trackFormatChanges'),_0x3d9385['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3d9385['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x3d9385,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5209b9=this['editor'],_0xc60e68=(_0x519718,_0x5aaddf)=>{if('attribute'!=_0x519718)return'ck-suggestion-marker-'+_0x519718;const _0x3031d4=_0x5aaddf['split']('|')[0x0];return this['_isBlockAttribute'](_0x3031d4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5209b9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xff8afe=>{const {id:_0x27e610,authorId:_0x38931c,type:_0x6d0c46,subType:_0x3e98eb}=this['_splitMarkerName'](_0xff8afe['markerName']),_0x10f2b5=['ck-suggestion-marker',_0xc60e68(_0x6d0c46,_0x3e98eb)];let _0x3b1aca=0xbb8;return this['activeMarkers']['includes'](_0xff8afe['markerName'])&&(_0x10f2b5['push']('ck-suggestion-marker--active'),_0x3b1aca=0xbc2),'deletion'==_0x6d0c46&&(_0x3b1aca+=0x5),{'classes':_0x10f2b5,'attributes':{'data-suggestion':_0x27e610,'data-author-id':_0x38931c},'priority':_0x3b1aca};}}),_0x5209b9['conversion']['for']('dataDowncast')['add'](_0x26e5ab=>{_0x26e5ab['on']('addMarker:suggestion',(_0x5188a2,_0x26b367,_0x2bd82e)=>{if(!_0x2bd82e['options']['showSuggestionHighlights'])return;const _0x57ddcd=_0x26b367['item'];if(!_0x57ddcd)return;const _0x9a43f=_0x2bd82e['mapper']['toViewElement'](_0x57ddcd);_0x5209b9['model']['schema']['isObject'](_0x57ddcd)&&_0x9a43f&&!_0x9a43f['getCustomProperty']('widget')&&_0x9a43f['is']('containerElement')&&_0x5a9413(_0x9a43f,_0x2bd82e['writer']);},{'priority':'high'});}),_0x5209b9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x55c5bf,_0x1d2632)=>{if(!_0x1d2632['options']['showSuggestionHighlights'])return null;const {id:_0x5993cb,authorId:_0x5d026a,type:_0x2d2f37,subType:_0x4523e3}=this['_splitMarkerName'](_0x55c5bf['markerName']);return{'classes':['ck-suggestion-marker',_0xc60e68(_0x2d2f37,_0x4523e3)],'priority':0xbb8,'attributes':{'data-suggestion':_0x5993cb,'data-author-id':_0x5d026a}};}});const _0x2d906b=({showActiveMarkers:_0x3259eb=!0x0,isAttributeSuggestion:_0x1027eb=!0x1}={})=>(_0x2bea70,_0x4c85be,_0x5abf39)=>{if(!_0x4c85be['item'])return;const {id:_0x60a6c7,authorId:_0x208889}=this['_splitMarkerName'](_0x4c85be['markerName']);if(_0x1027eb){const _0x286806=this['_suggestions']['get'](_0x60a6c7),_0x16fa8e=this['_getAttributeKey'](_0x286806);if(!this['_isBlockAttribute'](_0x16fa8e))return;}if(_0x4c85be['item']['is']('selection'))return void _0x5abf39['consumable']['consume'](_0x4c85be['item'],_0x2bea70['name']);const _0x178292=_0x5abf39['mapper']['toViewElement'](_0x4c85be['item']);if(_0x4c85be['item']['is']('element')&&_0x5209b9['model']['schema']['isBlock'](_0x4c85be['item'])&&!_0x178292['getCustomProperty']('addHighlight')){_0x5abf39['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x178292),_0x5abf39['writer']['setAttribute']('data-suggestion',_0x60a6c7,_0x178292),_0x5abf39['writer']['setAttribute']('data-author-id',_0x208889,_0x178292),_0x5abf39['mapper']['bindElementToMarker'](_0x178292,_0x4c85be['markerName']),_0x3259eb&&(this['activeMarkers']['includes'](_0x4c85be['markerName'])?_0x5abf39['writer']['addClass']('ck-suggestion-marker--active',_0x178292):_0x5abf39['writer']['removeClass']('ck-suggestion-marker--active',_0x178292));for(const _0xa3414c of _0x5209b9['model']['createRangeIn'](_0x4c85be['item'])['getItems']())_0x5abf39['consumable']['consume'](_0xa3414c,_0x2bea70['name']);_0x5abf39['consumable']['consume'](_0x4c85be['item'],_0x2bea70['name']);}};_0x5209b9['conversion']['for']('dataDowncast')['add'](_0x5d6ca9=>{_0x5d6ca9['on']('addMarker:suggestion:formatBlock',(_0x15ace1,_0x246f5f,_0x3a3df9)=>{_0x3a3df9['options']['showSuggestionHighlights']&&_0x2d906b({'showActiveMarkers':!0x1})(_0x15ace1,_0x246f5f,_0x3a3df9);},{'priority':'highest'});}),_0x5209b9['conversion']['for']('dataDowncast')['add'](_0x322804=>{_0x322804['on']('addMarker:suggestion:attribute',(_0x30bf5c,_0x28ee3d,_0x36a1cb)=>{_0x36a1cb['options']['showSuggestionHighlights']&&_0x2d906b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x30bf5c,_0x28ee3d,_0x36a1cb);},{'priority':'highest'});}),_0x5209b9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4ada56,_0x16159c)=>{if(_0x16159c['options']['showSuggestionHighlights']){const {id:_0x1441de,authorId:_0x1dd603}=this['_splitMarkerName'](_0x4ada56);return _0x4ada56['includes'](':split')||_0x4ada56['includes'](':merge')?{'group':'suggestion','name':_0x4ada56['substr'](0xb),'attributes':{'data-suggestion':_0x1441de,'data-author-id':_0x1dd603}}:null;}return{'group':'suggestion','name':_0x4ada56['substr'](0xb)};}}),_0x5209b9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4ed7ce,{writer:_0x5c3af1})=>{let _0x2cd4e1='suggestion:'+_0x4ed7ce['getAttribute']('suggestion-type')+':'+_0x4ed7ce['getAttribute']('id');return _0x4ed7ce['getAttribute']('marker-count')&&(_0x2cd4e1+=':'+_0x4ed7ce['getAttribute']('marker-count')),_0x5c3af1['createElement']('$marker',{'data-name':_0x2cd4e1});}}),_0x5209b9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5209b9['conversion']['for']('editingDowncast')['add'](_0x513fed=>{_0x513fed['on']('addMarker:suggestion:formatBlock',_0x2d906b(),{'priority':'high'});}),_0x5209b9['conversion']['for']('editingDowncast')['add'](_0x39490d=>{_0x39490d['on']('addMarker:suggestion:attribute',_0x2d906b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5209b9['conversion']['for']('editingDowncast')['add'](_0x5cf9d7=>{_0x5cf9d7['on']('removeMarker:suggestion:formatBlock',(_0x26083c,_0x1edf56,_0x427bc3)=>{const _0x33807f=_0x427bc3['mapper']['markerNameToElements'](_0x1edf56['markerName']);if(_0x33807f){for(const _0x89d14c of _0x33807f)_0x89d14c['getCustomProperty']('addHighlight')||(_0x427bc3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x89d14c),_0x427bc3['writer']['removeAttribute']('data-suggestion',_0x89d14c),_0x427bc3['writer']['removeAttribute']('data-author-id',_0x89d14c),_0x427bc3['mapper']['unbindElementFromMarkerName'](_0x89d14c,_0x1edf56['markerName']));}},{'priority':'high'});}),_0x5209b9['conversion']['for']('editingDowncast')['add'](_0x981fe2=>{_0x981fe2['on']('removeMarker:suggestion:attribute',(_0xe7fad2,_0x5f2484,_0x569d11)=>{const _0xdc8c77=_0x569d11['mapper']['markerNameToElements'](_0x5f2484['markerName']);if(!_0xdc8c77)return;const {id:_0x1222ef}=this['_splitMarkerName'](_0x5f2484['markerName']),_0x50948d=this['_suggestions']['get'](_0x1222ef),_0x3e53f5=this['_getAttributeKey'](_0x50948d);if(this['_isBlockAttribute'](_0x3e53f5)){for(const _0x299280 of _0xdc8c77)_0x299280['getCustomProperty']('addHighlight')||(_0x569d11['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x299280),_0x569d11['writer']['removeAttribute']('data-suggestion',_0x299280),_0x569d11['writer']['removeAttribute']('data-author-id',_0x299280),_0x569d11['mapper']['unbindElementFromMarkerName'](_0x299280,_0x5f2484['markerName']));}},{'priority':'high'});}),_0x5209b9['model']['document']['registerPostFixer'](_0x496489=>{let _0x4e741c=!0x1;const _0x1acd13=Array['from'](_0x5209b9['model']['document']['differ']['getChangedMarkers']()),_0x4274d3=new Set();for(const {name:_0x29bfad,data:_0x2de330}of _0x1acd13){const {group:_0x21b5c0,type:_0x56c822,subType:_0x359375,id:_0x1272f1}=this['_splitMarkerName'](_0x29bfad);if('suggestion'!==_0x21b5c0)continue;const _0x99772a=_0x359375?'suggestion:'+_0x56c822+':'+_0x359375+':'+_0x1272f1:'suggestion:'+_0x56c822+':'+_0x1272f1,_0x505fb7=_0x5209b9['model']['markers']['getMarkersGroup'](_0x99772a),_0x4b9d72=_0x5209b9['model']['markers']['get'](_0x29bfad),_0x576ef0=this['_suggestions']['get'](_0x1272f1);if(null!=_0x2de330['newRange']){'formatInline'==_0x56c822&&(_0x4e741c=_0x4e741c||Gt(_0x2de330['newRange'],_0x29bfad,_0x496489,_0x5209b9['model']['schema']));const _0x496e1c='attribute'==_0x56c822&&this['_isBlockAttribute'](_0x359375['split']('|')[0x0]),_0x340024='attribute'==_0x56c822&&this['_isInlineAttribute'](_0x359375['split']('|')[0x0]);if(_0x2de330['newRange']['isCollapsed']||'$graveyard'==_0x2de330['newRange']['root']['rootName']||'formatBlock'==_0x56c822&&!Jt(_0x2de330['newRange'])||_0x496e1c&&!Jt(_0x2de330['newRange'])||_0x340024&&Kt(_0x2de330['newRange'])||'deletion'==_0x56c822&&Kt(_0x2de330['newRange'])||_0x4b9d72&&Ht(_0x4b9d72,_0x505fb7))_0x496489['removeMarker'](_0x29bfad),_0x4e741c=!0x0;else{if(!_0x576ef0||!_0x576ef0['isInContent'])continue;if(_0x2de330['newRange']&&_0x2de330['oldRange']&&_0x2de330['newRange']['isEqual'](_0x2de330['oldRange']))continue;_0x4274d3['add'](_0x576ef0);}}}return _0x4274d3['size']>0x0&&(_0x4e741c=!!this['_joinWithAdjacentSuggestions'](_0x4274d3)||_0x4e741c),_0x4e741c;}),_0x5209b9['model']['document']['registerPostFixer'](_0x3197a8=>{let _0xe80c9d=!0x1;for(const _0x5016b1 of _0x5209b9['model']['document']['differ']['getChanges']())if('insert'==_0x5016b1['type'])for(const _0x4d59dd of this['_suggestions']['values']()){if(_0x4d59dd['isMultiRange']||!_0x4d59dd['isInContent'])continue;const _0x186b32='formatBlock'==_0x4d59dd['type'],_0x329b1a=this['_getAttributeKey'](_0x4d59dd),_0x52bf60=_0x329b1a&&this['_isBlockAttribute'](_0x329b1a);if(!_0x186b32&&!_0x52bf60)continue;const _0x475339=_0x4d59dd['getFirstRange']();if(_0x475339['start']['parent']!=_0x475339['end']['parent']&&!_0x475339['end']['isAtEnd']){const _0x1a9042=_0x5209b9['model']['createPositionAt'](_0x475339['start']['nodeAfter'],'end'),_0x1577c4=_0x5209b9['model']['createRange'](_0x475339['start'],_0x1a9042);_0x3197a8['updateMarker'](_0x4d59dd['getFirstMarker'](),{'range':_0x1577c4}),_0xe80c9d=!0x0;}}return _0xe80c9d;}),_0x5209b9['model']['document']['registerPostFixer'](_0x2f2929=>this['_processAttributeChanges'](_0x2f2929)),_0x5209b9['model']['document']['registerPostFixer'](_0x328330=>!_0x328330['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x328330)),_0x5209b9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5209b9['model']['document']['on']('change:data',(_0x1c5f93,_0x74bf2a)=>{if(!_0x74bf2a['isLocal']||_0x74bf2a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4e11b4=_0x5209b9['model']['document']['differ']['getChanges']();if(0x0==_0x4e11b4['length'])return;const _0x28de88=[],_0x24102d=_0x4e11b4['filter'](_0x227c37=>'attribute'==_0x227c37['type']),_0x130749=_0x4e11b4['filter'](_0x29910a=>'insert'==_0x29910a['type']&&'$text'!=_0x29910a['name']);for(const _0x5ad9b3 of _0x24102d)this['_isRegisteredAttribute'](_0x5ad9b3['attributeKey'])&&_0x28de88['push']({'key':_0x5ad9b3['attributeKey'],'newValue':_0x5ad9b3['attributeNewValue'],'oldValue':_0x5ad9b3['attributeOldValue'],'range':qt(_0x5ad9b3['range'],_0x5209b9['model'])});for(const _0x2f431f of _0x130749){if('rename'!=_0x2f431f['action']&&'refresh'!=_0x2f431f['action'])continue;const _0x2c0fe2=zt(_0x2f431f['position']['nodeAfter'],_0x5209b9['model']),_0x515c4e=_0x2f431f['before'];'rename'==_0x2f431f['action']&&_0x28de88['push']({'key':m,'newValue':_0x2f431f['name'],'oldValue':_0x515c4e['name'],'range':_0x2c0fe2});for(const [_0x4e95e1,_0x2e75b4]of _0x515c4e['attributes']){if(!this['_isRegisteredAttribute'](_0x4e95e1))continue;const _0x550cbb=_0x2f431f['attributes']['get'](_0x4e95e1);_0x2e75b4!==_0x550cbb&&_0x28de88['push']({'key':_0x4e95e1,'newValue':_0x550cbb,'oldValue':_0x2e75b4,'range':_0x2c0fe2});}for(const [_0x543966,_0x275f5b]of _0x2f431f['attributes'])this['_isRegisteredAttribute'](_0x543966)&&(_0x515c4e['attributes']['has'](_0x543966)||_0x28de88['push']({'key':_0x543966,'newValue':_0x275f5b,'oldValue':null,'range':_0x2c0fe2}));}0x0!=_0x28de88['length']&&_0x5209b9['model']['enqueueChange'](_0x74bf2a,_0x5514e3=>{const _0x19a03a=_0x4d5fba();for(const {range:_0x5f5338,key:_0x18524e,oldValue:_0x5c50cb,newValue:_0xce60a8}of _0x28de88)this['markAttributeChange'](_0x5f5338,_0x18524e,_0x5c50cb,_0xce60a8,{'groupId':_0x19a03a});this['_reduceExistingSuggestions'](_0x5514e3,_0x28de88);});},{'priority':'lowest'}),_0x5209b9['model']['markers']['on']('update:suggestion',(_0x5305f9,_0x4f845e,_0x63ea71)=>{if(null==_0x63ea71){const {id:_0x478eed}=this['_splitMarkerName'](_0x4f845e['name']),_0x547d42=this['_suggestions']['get'](_0x478eed);_0x547d42&&_0x547d42['addMarkerName'](_0x4f845e['name']);}}),_0x5209b9['model']['document']['on']('change:data',()=>{const _0xb3b39d=Array['from'](_0x5209b9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x46e763=>'suggestion'===this['_splitMarkerName'](_0x46e763['name'])['group']);if(0x0===_0xb3b39d['length'])return;_0xb3b39d['sort']((_0x2081f,_0x1b8772)=>{const _0x726db2=_0x2081f['data']['oldRange'],_0x350624=_0x1b8772['data']['oldRange'];return null===_0x726db2&&null===_0x350624?0x0:null===_0x726db2&&null!==_0x350624?-0x1:null!==_0x726db2&&null===_0x350624?0x1:_0x726db2['start']['isBefore'](_0x350624['start'])?-0x1:0x1;});const _0x14dfa1=new Set(),_0x2740ac=new Set();for(const {name:_0x248d78,data:_0x58a573}of _0xb3b39d){const {id:_0x2893c1}=this['_splitMarkerName'](_0x248d78);if(null===_0x58a573['oldRange']){const _0xcc2a32=this['_handleNewSuggestionMarker'](_0x248d78);_0x2740ac['add'](_0xcc2a32);}else{const _0x5f172f=this['_suggestions']['get'](_0x2893c1);null!==_0x58a573['newRange']||_0x5f172f['isInContent']?(_0x14dfa1['add'](_0x5f172f['head']),_0x2740ac['add'](_0x5f172f)):this['_removeSuggestion'](_0x5f172f);}}_0x2740ac['size']>0x0&&this['_refreshSuggestionsChain'](_0x2740ac);for(const _0xd1a5d9 of _0x14dfa1)this['fire']('suggestionChanged',_0xd1a5d9);}),_0x5209b9['model']['on']('applyOperation',(_0x4acfd4,_0x3ed49e)=>{const _0xb6a50b=_0x3ed49e[0x0];if(!this['_suggestions']['size'])return;if(!_0xb6a50b['isDocumentOperation'])return;if(_0xb6a50b['batch']['isUndo']||!_0xb6a50b['batch']['isLocal'])return;let _0xa00485,_0x24d388;switch(_0xb6a50b['type']){case'insert':_0xa00485=_0x5209b9['model']['createPositionAt'](_0xb6a50b['position']),_0x24d388=_0xa00485['getShiftedBy'](_0xb6a50b['howMany']);break;case'split':_0xa00485=_0x5209b9['model']['createPositionAt'](_0xb6a50b['splitPosition']),_0x24d388=_0x5209b9['model']['createPositionAt'](_0xb6a50b['moveTargetPosition']);break;case'move':_0xa00485=_0x5209b9['model']['createPositionAt'](_0xb6a50b['targetPosition']),_0x24d388=_0xa00485['getShiftedBy'](_0xb6a50b['howMany']);break;default:return;}const _0x528947=_0x5209b9['model']['createRange'](_0xa00485,_0x24d388);_0x5209b9['model']['change'](()=>{for(const {suggestion:_0x175271,meta:_0x9fdce1}of this['_findSuggestions'](_0x528947)){if(_0x175271['isMultiRange'])continue;if('formatInline'==_0x175271['type'])continue;const _0x4491b3=this['_getAttributeKey'](_0x175271);if(_0x4491b3&&this['_isBlockAttribute'](_0x4491b3)&&'split'!=_0xb6a50b['type'])continue;const _0x488ef1=_0x175271['data']&&_0x175271['data']['multipleBlocks'];('formatBlock'!=_0x175271['type']||'split'==_0xb6a50b['type']&&!_0x488ef1)&&(_0x9fdce1['containsRangeInObject']||'insertion'==_0x175271['type']&&_0x9fdce1['isOwn']||_0x175271['getFirstRange']()['containsRange'](_0x528947)&&this['_breakSuggestionMarker'](_0x175271,_0xa00485,_0x24d388));}});},{'priority':'lowest'}),_0x5209b9['model']['on']('deleteContent',(_0x10feea,_0x25536c)=>{const _0x349382=_0x25536c[0x0],_0x445833=_0x25536c[0x1];if(_0x445833&&_0x445833['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x349382['isCollapsed'])return;const _0x4ee6fb=_0x5209b9['model']['schema'],{start:_0x3bbfaa,end:_0x1930d0}=_0x349382['getFirstRange'](),_0x1a1d1b=_0x3bbfaa['nodeAfter']&&_0x4ee6fb['isLimit'](_0x3bbfaa['nodeAfter'])?null:_0x4ee6fb['getNearestSelectionRange'](_0x3bbfaa,'forward'),_0x4a49c4=_0x1930d0['nodeBefore']&&_0x4ee6fb['isLimit'](_0x1930d0['nodeBefore'])?null:_0x4ee6fb['getNearestSelectionRange'](_0x1930d0,'backward'),_0xa5871a=_0x5209b9['model']['createRange'](_0x1a1d1b?_0x1a1d1b['start']:_0x3bbfaa,_0x4a49c4?_0x4a49c4['end']:_0x1930d0);_0x5209b9['model']['change'](_0x3bb141=>{this['markDeletion'](_0xa5871a);const _0x4895d3=_0x5209b9['model']['schema']['getNearestSelectionRange'](_0xa5871a['start']);_0x349382['is']('documentSelection')?_0x3bb141['setSelection'](_0x4895d3):_0x349382['setTo'](_0x4895d3);}),_0x10feea['stop']();},{'priority':_0x27f0f7['normal']+0xa}),_0x5209b9['model']['on']('insertContent',(_0xe32c6e,_0x3f5fdf)=>{const _0xd04099=_0x3f5fdf[_0x3f5fdf['length']-0x1];_0xd04099&&_0xd04099['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5209b9['model']['change'](()=>{let _0x22a839=_0x5209b9['model']['insertContent'](_0x3f5fdf[0x0],_0x3f5fdf[0x1],_0x3f5fdf[0x2],{'forceDefaultExecution':!0x0});if(!_0x22a839)return;_0xe32c6e['return']=_0x22a839['clone']();const _0x4eb39f=_0x22a839['end']['nodeBefore'],_0x1bb513=_0x5209b9['model']['schema'];_0x4eb39f&&_0x1bb513['isBlock'](_0x4eb39f)&&!_0x1bb513['isObject'](_0x4eb39f)&&(_0x22a839=_0x5209b9['model']['createRange'](_0x22a839['start'],_0x5209b9['model']['createPositionAt'](_0x4eb39f,'end'))),this['markInsertion'](_0x22a839);}),_0xe32c6e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x40a8db=new D(_0x5209b9,this['_suggestions']);_0x5209b9['commands']['add']('acceptSuggestion',_0x40a8db),this['enableCommand']('acceptSuggestion');const _0x58bf5d=new $(_0x5209b9,this['_suggestions']);_0x5209b9['commands']['add']('discardSuggestion',_0x58bf5d),this['enableCommand']('discardSuggestion'),_0x5209b9['commands']['add']('acceptAllSuggestions',new M(_0x5209b9,_0x40a8db,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5209b9['commands']['add']('discardAllSuggestions',new M(_0x5209b9,_0x58bf5d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5209b9['commands']['add']('acceptSelectedSuggestions',new B(_0x5209b9,_0x40a8db,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5209b9['commands']['add']('discardSelectedSuggestions',new B(_0x5209b9,_0x58bf5d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x583f35=_0x5209b9['plugins']['get']('CommentsRepository');this['listenTo'](_0x583f35,'addComment',(_0x1d29ab,{threadId:_0x527b68})=>{const _0x4bbd62=this['_suggestions']['get'](_0x527b68);_0x4bbd62&&_0x4bbd62['commentThread']&&0x1===_0x4bbd62['commentThread']['length']&&this['_updateSuggestionData'](_0x527b68,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x583f35,'removeComment',(_0x3d70b0,{threadId:_0x1804df})=>{const _0x34460f=this['_suggestions']['get'](_0x1804df);_0x34460f&&_0x34460f['commentThread']&&!_0x34460f['commentThread']['length']&&this['_updateSuggestionData'](_0x1804df,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5570b1){const _0x225d33=_0x3661d0([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x19f5c0=0x6b0f5e6f,_0x5166c1=0x6b082d47^_0x19f5c0,_0x52c8bc=window[_0x3661d0([0x44,0x61,0x74,0x65])][_0x3661d0([0x6e,0x6f,0x77])](),_0x156176=_0x5570b1[_0x3661d0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5983fc=new window[(_0x3661d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd2e654=>{_0x156176[_0x3661d0([0x6f,0x6e,0x63,0x65])](_0x3661d0([0x72,0x65,0x61,0x64,0x79]),_0xd2e654);}),_0x27ce26={[_0x3661d0([0x6b,0x74,0x79])]:_0x3661d0([0x45,0x43]),[_0x3661d0([0x75,0x73,0x65])]:_0x3661d0([0x73,0x69,0x67]),[_0x3661d0([0x63,0x72,0x76])]:_0x3661d0([0x50,0x2d,0x32,0x35,0x36]),[_0x3661d0([0x78])]:_0x3661d0([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]),[_0x3661d0([0x79])]:_0x3661d0([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]),[_0x3661d0([0x61,0x6c,0x67])]:_0x3661d0([0x45,0x53,0x32,0x35,0x36])},_0x5961c9=_0x156176[_0x3661d0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3661d0([0x67,0x65,0x74])](_0x3661d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x446775(){let _0x1cf95b,_0x4e1be6=null,_0x3242cf=null;try{if(_0x5961c9==_0x3661d0([0x47,0x50,0x4c]))return _0x3661d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cf95b=_0x29766f(),!_0x1cf95b)return _0x3661d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cf95b[_0x3661d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3242cf=_0x2952f2(_0x1cf95b[_0x3661d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cf95b[_0x3661d0([0x6a,0x74,0x69])])),await _0x1fbf2c()?_0x5b7ede()?_0x381312()?_0x3661d0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5718ca()?(_0x1cf95b[_0x3661d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3661d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e1be6=_0x29c138(_0x3661d0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cf95b[_0x3661d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3661d0([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e1be6=_0x29c138(_0x3661d0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2086b6()):_0x3661d0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3661d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3661d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3661d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x381312(){const _0x1a45c1=[_0x3661d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3661d0([0x74,0x72,0x69,0x61,0x6c])][_0x3661d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cf95b[_0x3661d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52c8bc/0x3e8:0xe10*_0x5166c1;return _0x1cf95b[_0x3661d0([0x65,0x78,0x70])]<_0x1a45c1;}function _0x5b7ede(){const _0x2a92b0=_0x1cf95b[_0x3661d0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2a92b0)return!0x1;if(_0x2a92b0[_0x3661d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3661d0([0x2a])))return!0x0;if(_0x2a92b0[_0x3661d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3661d0([0x54,0x43])))return!0x0;if(_0x2a92b0[_0x3661d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3661d0([0x52,0x54,0x43]))){if(_0xb9e1a2())return!0x0;if(_0x2a9ad4()||_0x5e514f())return!0x0;}return!0x1;}function _0x5718ca(){const _0x1a4f00=_0x1cf95b[_0x3661d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a4f00||0x0==_0x1a4f00[_0x3661d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55fd2b}=new URL(window[_0x3661d0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1a4f00[_0x3661d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55fd2b))return!0x0;const _0x41456c=_0x55fd2b[_0x3661d0([0x73,0x70,0x6c,0x69,0x74])](_0x3661d0([0x2e]));return _0x1a4f00[_0x3661d0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e8cfa=>_0x4e8cfa[_0x3661d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3661d0([0x2a])))[_0x3661d0([0x6d,0x61,0x70])](_0x469a3b=>_0x469a3b[_0x3661d0([0x73,0x70,0x6c,0x69,0x74])](_0x3661d0([0x2e])))[_0x3661d0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x539784=>_0x539784[_0x3661d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x41456c[_0x3661d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3661d0([0x6d,0x61,0x70])](_0x4dfeae=>Array(_0x41456c[_0x3661d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4dfeae[_0x3661d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3661d0([0x66,0x69,0x6c,0x6c])](_0x4dfeae[0x0]===_0x3661d0([0x2a])?_0x3661d0([0x2a]):'')[_0x3661d0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4dfeae))[_0x3661d0([0x73,0x6f,0x6d,0x65])](_0x5ac4e2=>_0x41456c[_0x3661d0([0x65,0x76,0x65,0x72,0x79])]((_0x2d1336,_0x3b229b)=>_0x5ac4e2[_0x3b229b]===_0x2d1336||_0x5ac4e2[_0x3b229b]===_0x3661d0([0x2a])));}function _0x2086b6(){return _0x4e1be6&&_0x3242cf?new window[(_0x3661d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19cb54,_0xc090c5)=>{_0x4e1be6[_0x3661d0([0x74,0x68,0x65,0x6e])](_0x19cb54,_0xc090c5),_0x3242cf[_0x3661d0([0x74,0x68,0x65,0x6e])](_0x295373=>{_0x295373!=_0x3661d0([0x56,0x61,0x6c,0x69,0x64])&&_0x19cb54(_0x295373);},_0xc090c5);}):_0x4e1be6||_0x3242cf||_0x3661d0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2952f2(_0x32d75b,_0x4109a3){return new window[(_0x3661d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dee89=>{if(_0x2cb637())return _0x5dee89(_0x3661d0([0x56,0x61,0x6c,0x69,0x64]));_0x27cd8c(),_0x156176[_0x3661d0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3661d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ecc18=!0x1;const _0x1791f3=_0x4d5fba();function _0x5dfc28(_0x1139e0){return!!_0x1139e0&&(typeof _0x1139e0===_0x3661d0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1139e0===_0x3661d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1139e0[_0x3661d0([0x74,0x68,0x65,0x6e])]===_0x3661d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1139e0[_0x3661d0([0x63,0x61,0x74,0x63,0x68])]===_0x3661d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2ba57a(_0x53c378){_0x224ea8(_0x53c378)[_0x3661d0([0x74,0x68,0x65,0x6e])](_0x13c87c=>{if(!_0x13c87c||_0x13c87c[_0x3661d0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3661d0([0x6f,0x6b]))return _0x3661d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1d46f5(_0x3c1779(_0x1791f3+_0x4109a3))!=_0x13c87c[_0x3661d0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3661d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3661d0([0x56,0x61,0x6c,0x69,0x64]);})[_0x3661d0([0x74,0x68,0x65,0x6e])](_0x202306=>(_0x25da22(),_0x202306),()=>{const _0xedd43=_0x38d85e();return null==_0xedd43?(_0x25da22(),_0x3661d0([0x56,0x61,0x6c,0x69,0x64])):_0x3661d0(_0x52c8bc-_0xedd43>(0x4f03da6f^_0x19f5c0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3661d0([0x74,0x68,0x65,0x6e])](_0x5dee89)[_0x3661d0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5dee89(_0x3661d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2156b4=0x6b39b0ef^_0x19f5c0;function _0x25da22(){const _0x338cc9=_0x3661d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d46f5(_0x3c1779(_0x32d75b)),_0x246346=_0x3ba597(_0x1d46f5(window[_0x3661d0([0x4d,0x61,0x74,0x68])][_0x3661d0([0x63,0x65,0x69,0x6c])](_0x52c8bc/_0x2156b4)));window[_0x3661d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3661d0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x338cc9,_0x246346);}function _0x38d85e(){const _0x3595d1=_0x3661d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d46f5(_0x3c1779(_0x32d75b)),_0x39deb9=window[_0x3661d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3661d0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3595d1);return _0x39deb9?window[_0x3661d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ba597(_0x39deb9),0x10)*_0x2156b4:null;}function _0x224ea8(_0x208870){return new window[(_0x3661d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42a5b0,_0x1fefca)=>{_0x208870[_0x3661d0([0x74,0x68,0x65,0x6e])](_0x42a5b0,_0x1fefca),window[_0x3661d0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1fefca,0x6b0e8aaf^_0x19f5c0);});}}_0x156176[_0x3661d0([0x6f,0x6e])](_0x3661d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36c16d,_0x49b9e0)=>{if(_0x49b9e0[0x0]!=_0x32d75b)return _0x5dee89(_0x3661d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x49b9e0[0x1]={..._0x49b9e0[0x1],[_0x3661d0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1791f3};},{[_0x3661d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3661d0([0x68,0x69,0x67,0x68])}),_0x156176[_0x3661d0([0x6f,0x6e])](_0x3661d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x276349=>{_0x5dfc28(_0x276349[_0x3661d0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ecc18=!0x0,_0x2ba57a(_0x276349[_0x3661d0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3661d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3661d0([0x6c,0x6f,0x77])}),_0x5983fc[_0x3661d0([0x74,0x68,0x65,0x6e])](()=>{_0x2ecc18||_0x5dee89(_0x3661d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2cb637(){return _0x156176[_0x3661d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3661d0([0x76,0x69,0x65,0x77])][_0x3661d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3661d0([0x61,0x75,0x74,0x6f]);}function _0x27cd8c(){_0x156176[_0x3661d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3661d0([0x76,0x69,0x65,0x77])][_0x3661d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3661d0([0x61,0x75,0x74,0x6f]);}}function _0x29c138(_0x28ab99){const _0x2fdf9e=[new window[(_0x3661d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48e7b5=>setTimeout(_0x48e7b5,0x6b0660a3^_0x19f5c0)),_0x5983fc[_0x3661d0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3661d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x408262=>{let _0x14a333=0x0;_0x156176[_0x3661d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3661d0([0x6f,0x6e])](_0x3661d0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x57f9e7,_0xcebfe8)=>{_0xcebfe8[0x0][_0x3661d0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14a333++,_0x14a333==(0x6b0f5f97^_0x19f5c0)&&(_0x408262(),_0x57f9e7[_0x3661d0([0x6f,0x66,0x66])]());});}))];return window[_0x3661d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3661d0([0x72,0x61,0x63,0x65])](_0x2fdf9e)[_0x3661d0([0x74,0x68,0x65,0x6e])](()=>_0x28ab99);}async function _0x9fd8dc(){await _0x5983fc,_0x156176[_0x3661d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3661d0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b20a2,_0x156176[_0x3661d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3661d0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b20a2,_0x156176[_0x3661d0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3661d0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb9e1a2(){return _0x361230(_0x3661d0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2f023b(_0x3661d0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3661d0([0x73,0x74,0x61,0x74,0x65])]==_0x3661d0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2a9ad4(){return _0x361230(_0x3661d0([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 _0x5e514f(){return _0x361230(_0x3661d0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3cf533(_0x109cc9){const _0x1f18a2=_0x151155();_0x156176[_0x1f18a2]=_0x3661d0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x109cc9,_0x109cc9!=_0x3661d0([0x56,0x61,0x6c,0x69,0x64])&&_0x9fd8dc();}function _0x151155(){const _0x5c8bdc=window[_0x3661d0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3661d0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3661d0([0x6e,0x6f,0x77])]())[_0x3661d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3661d0([0x2e]),'');let _0x241f1f=_0x3661d0([0x67]);for(let _0x522642=0x0;_0x522642<_0x5c8bdc[_0x3661d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x522642+=0x2){let _0x3e8422=window[_0x3661d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c8bdc[_0x3661d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x522642,_0x522642+0x2));_0x3e8422>=_0x225d33[_0x3661d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3e8422-=_0x225d33[_0x3661d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x241f1f+=_0x225d33[_0x3e8422];}return _0x241f1f;}function _0x29766f(){const _0x2e826c=_0x5961c9[_0x3661d0([0x73,0x70,0x6c,0x69,0x74])](_0x3661d0([0x2e]));if(0x3!=_0x2e826c[_0x3661d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x301e21(_0x2e826c[0x1]);function _0x301e21(_0x2e7f42){const _0x23d4ae=_0x31c957(_0x2e7f42);return _0x23d4ae&&_0x421eee()?_0x23d4ae:null;function _0x421eee(){const _0x382719=_0x23d4ae[_0x3661d0([0x6a,0x74,0x69])],_0x4a1b66=window[_0x3661d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x382719[_0x3661d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x382719[_0x3661d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x13370b={..._0x23d4ae,[_0x3661d0([0x6a,0x74,0x69])]:_0x382719[_0x3661d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x382719[_0x3661d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x13370b[_0x3661d0([0x76,0x63])],_0x3c1779(_0x13370b)==_0x4a1b66;}}}async function _0x1fbf2c(){let _0x495535=!0x0;try{const _0x691d30=_0x5961c9[_0x3661d0([0x73,0x70,0x6c,0x69,0x74])](_0x3661d0([0x2e])),[_0x3efa51,_0x442826,_0x36b5dc]=_0x691d30;return _0x282a15(_0x3efa51),await _0x54dff1(_0x3efa51,_0x442826,_0x36b5dc),_0x495535;}catch{return!0x1;}function _0x282a15(_0x486df8){const _0x445868=_0x31c957(_0x486df8);_0x445868&&_0x445868[_0x3661d0([0x61,0x6c,0x67])]==_0x3661d0([0x45,0x53,0x32,0x35,0x36])||(_0x495535=!0x1);}async function _0x54dff1(_0x1333af,_0x50e9f8,_0x31ab49){const _0x19d2f8=window[_0x3661d0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3661d0([0x66,0x72,0x6f,0x6d])](_0x5f1042(_0x31ab49),_0x2bbfcd=>_0x2bbfcd[_0x3661d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x440bfc=new window[(_0x3661d0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3661d0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1333af+_0x3661d0([0x2e])+_0x50e9f8),_0x4fbe8d=window[_0x3661d0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3661d0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4fbe8d)return;const _0x3e80b3=await _0x4fbe8d[_0x3661d0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3661d0([0x6a,0x77,0x6b]),_0x27ce26,{[_0x3661d0([0x6e,0x61,0x6d,0x65])]:_0x3661d0([0x45,0x43,0x44,0x53,0x41]),[_0x3661d0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3661d0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3661d0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4fbe8d[_0x3661d0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3661d0([0x6e,0x61,0x6d,0x65])]:_0x3661d0([0x45,0x43,0x44,0x53,0x41]),[_0x3661d0([0x68,0x61,0x73,0x68])]:{[_0x3661d0([0x6e,0x61,0x6d,0x65])]:_0x3661d0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e80b3,_0x19d2f8,_0x440bfc)||(_0x495535=!0x1);}}function _0x31c957(_0x38b387){return _0x38b387[_0x3661d0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3661d0([0x65,0x79]))?JSON[_0x3661d0([0x70,0x61,0x72,0x73,0x65])](_0x5f1042(_0x38b387)):null;}function _0x5f1042(_0x461fa7){return window[_0x3661d0([0x61,0x74,0x6f,0x62])](_0x461fa7[_0x3661d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3661d0([0x2b]))[_0x3661d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3661d0([0x2f])));}function _0x3c1779(_0x9e3d34){let _0x4b1217=0x1505;function _0xd78a8(_0x24310b){for(let _0x48efa0=0x0;_0x48efa0<_0x24310b[_0x3661d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x48efa0++){const _0x4e820b=_0x24310b[_0x3661d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x48efa0);_0x4b1217=(_0x4b1217<<0x5)+_0x4b1217+_0x4e820b,_0x4b1217&=_0x4b1217;}}function _0x16ba35(_0x5cf882){Array[_0x3661d0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5cf882)?_0x5cf882[_0x3661d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x16ba35):_0x5cf882&&typeof _0x5cf882==_0x3661d0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3661d0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5cf882)[_0x3661d0([0x73,0x6f,0x72,0x74])]()[_0x3661d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3a5e6e,_0x35e1cf])=>{_0xd78a8(_0x3a5e6e),_0x16ba35(_0x35e1cf);}):_0xd78a8(window[_0x3661d0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5cf882));}return _0x16ba35(_0x9e3d34),_0x4b1217>>>0x0;}function _0x1d46f5(_0xa8ca95){return _0xa8ca95[_0x3661d0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3661d0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3661d0([0x30]));}function _0x3ba597(_0x5a227a){return _0x5a227a[_0x3661d0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3661d0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3661d0([0x6a,0x6f,0x69,0x6e])]('');}function _0x361230(_0x3ada22){return _0x156176[_0x3661d0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3661d0([0x68,0x61,0x73])](_0x3ada22);}function _0x2f023b(_0x135134){return _0x156176[_0x3661d0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3661d0([0x67,0x65,0x74])](_0x135134);}function _0x1b20a2(){}function _0x3661d0(_0x3f4dff){return _0x3f4dff['map'](_0x4765de=>String['fromCharCode'](_0x4765de))['join']('');}_0x3cf533(await _0x446775());}(this);}set['adapter'](_0x2c2f59){if(this['_adapter'])throw new _0x135e17('track-changes-adapter-already-set',this);this['_adapter']=_0x2c2f59;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5dfe78=!0x1,toJSON:_0x39294d=!0x1}={}){const _0x5e9d68=[];for(const _0x9100c3 of this['_suggestions']['values']())_0x5dfe78&&!_0x9100c3['isInContent']||_0x5e9d68['push'](_0x9100c3);return _0x39294d?_0x5e9d68['map'](_0x4276d6=>_0x4276d6['toJSON']()):_0x5e9d68;}['getSuggestion'](_0x4e5fc5){const _0x58124b=this['_suggestions']['get'](_0x4e5fc5);if(!_0x58124b)throw new _0x135e17('track-changes-suggestion-not-found',this);return _0x58124b;}['hasSuggestion'](_0x2f13bd){return this['_suggestions']['has'](_0x2f13bd);}['addSuggestionData'](_0x27dc48){const {authorId:_0x4c2c8b,id:_0x5d6af3,originalSuggestionId:_0x1b6dd6,attributes:_0xa1c154}=_0x27dc48,[_0x35ac76,_0x2784d3]=_0x27dc48['type']['split'](':'),_0x745599=this['_suggestions']['get'](_0x5d6af3)||this['_createSuggestion'](_0x35ac76,_0x2784d3,_0x5d6af3,_0x4c2c8b,_0xa1c154,_0x1b6dd6);if(this['_addThreadToSuggestion'](_0x745599),this['_checkSuggestionCorrectness'](_0x745599,_0x35ac76,_0x2784d3||null,_0x4c2c8b),_0x745599['createdAt']=_0x27dc48['createdAt'],_0x745599['_isDataLoaded']=!0x0,_0xa1c154&&_0xa1c154['@external']){const _0x1bc38a=_0xa1c154['@external'],_0x1a27f5=this['_getExternalAuthor'](_0x1bc38a['authorName']);_0x745599['authoredAt']=_0x1bc38a['createdAt'],_0x745599['author']=_0x1a27f5,_0x745599['isExternal']=!0x0;}else _0x745599['authoredAt']=_0x27dc48['createdAt'];switch(_0x27dc48['data']&&(_0x745599['data']=_0x27dc48['data']),_0x27dc48['attributes']&&(_0x745599['attributes']=_0x27dc48['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x745599['_saved']=!0x0),this['_suggestionState']['get'](_0x745599)){case'notReady':this['_suggestionState']['set'](_0x745599,'dataReady');break;case'markerReady':_0x745599['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x745599])),this['_refreshSuggestionsChain'](new Set([_0x745599])),this['_suggestionState']['set'](_0x745599,'ready'),this['fire']('suggestionLoaded',_0x745599)):this['_suggestionState']['set'](_0x745599,'removed');}return _0x745599;}['acceptSuggestion'](_0x4e4ab2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x26c40b of _0x4e4ab2['getAllAdjacentSuggestions']())_0x26c40b['accept']();});});}['discardSuggestion'](_0x39e53f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3ced91 of _0x39e53f['getAllAdjacentSuggestions']())_0x3ced91['discard']();});});}['enableCommand'](_0x5e732b,_0x358012){const _0x4cbb26=this['editor']['commands']['get'](_0x5e732b);if(!_0x4cbb26)throw new _0x135e17('track-changes-command-not-found',this,{'commandName':_0x5e732b});if(this['_enabledCommands']['has'](_0x4cbb26))throw new _0x135e17('track-changes-enable-command-twice',this,{'commandName':_0x5e732b});this['_enabledCommands']['add'](_0x4cbb26),_0x358012&&_0x4cbb26['on']('execute',(_0x157e9a,_0x8bebb0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x8bebb0['length']>0x0&&_0x8bebb0[_0x8bebb0['length']-0x1]&&_0x8bebb0[_0x8bebb0['length']-0x1]['forceDefaultExecution']?_0x8bebb0['pop']():(_0x157e9a['return']=_0x358012((..._0x180b04)=>_0x4cbb26['execute'](..._0x180b04,{'forceDefaultExecution':!0x0}),..._0x8bebb0),_0x157e9a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4c15a4){let _0x1a3bd0,_0x3f9d7a;const _0x526462=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1a3bd0=_0x4c15a4();}catch(_0x5d3e08){_0x3f9d7a=_0x5d3e08;}return _0x526462||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3f9d7a&&_0x135e17['rethrowUnexpectedError'](_0x3f9d7a,this),_0x1a3bd0;}['markInsertion'](_0x441cbe,_0x58f599=null,_0x4de445={}){if(_0x441cbe['isCollapsed'])return null;const _0x301bff=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4de445['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4a4a98,meta:_0x274c51}of this['_findSuggestions'](_0x441cbe,'insertion'))if(_0x274c51['isOwn']){if(!_0x274c51['isNextTo']){if(_0x274c51['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x4a4a98,_0x4de445))continue;return _0x4a4a98;}if(Xt(_0x4a4a98,_0x4de445))return _0x4a4a98;this['_breakSuggestionMarker'](_0x4a4a98,_0x441cbe['start'],_0x441cbe['end']);break;}if(_0x58f599==_0x4a4a98['subType']&&Xt(_0x4a4a98,_0x4de445)){const _0xb8c1a6=_0x4a4a98['getFirstRange']();return _0xb8c1a6['start']['isEqual'](_0x441cbe['end'])?this['_setSuggestionRange'](_0x4a4a98,this['_model']['createRange'](_0x441cbe['start'],_0xb8c1a6['end'])):this['_setSuggestionRange'](_0x4a4a98,this['_model']['createRange'](_0xb8c1a6['start'],_0x441cbe['end'])),_0x4a4a98;}}const _0x2cda74=_0x4d5fba(),_0x2a7694=_0x301bff['id'],_0x1a3d4e=_0x58f599?'insertion:'+_0x58f599:'insertion',_0x24d082=this['_setSuggestionData']({'id':_0x2cda74,'type':_0x1a3d4e,'createdAt':new Date(),'authorId':_0x2a7694,'attributes':_0x4de445});return this['_addSuggestionMarker'](_0x1a3d4e,_0x2cda74,_0x2a7694,_0x441cbe),_0x24d082;}['markMultiRangeInsertion'](_0x301947,_0x587d40='multi',_0x28c666={}){const _0x2553b2=this['editor']['plugins']['get']('Users')['me'],_0x1bab47=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x587d40,'join');this['_trackingSessionId']&&(_0x28c666['trackingSessionId']=this['_trackingSessionId']);for(const _0x4dd1c2 of this['getSuggestions']())if(_0x4dd1c2['author']['id']==_0x2553b2['id']&&'insertion'==_0x4dd1c2['type']&&_0x4dd1c2['subType']==_0x587d40&&Xt(_0x4dd1c2,_0x28c666)&&(_0x1bab47(_0x4dd1c2['getRanges'](),_0x301947)||_0x1bab47(_0x301947,_0x4dd1c2['getRanges']()))){for(const _0x4e2cd4 of _0x301947)_0x4dd1c2['addRange'](_0x4e2cd4);return _0x4dd1c2;}for(const {suggestion:_0x35915b,meta:_0x3c9f97}of this['_findSuggestions'](_0x301947,'insertion')){if(!_0x3c9f97['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3c9f97['containsRangeInObject'])continue;if(!Xt(_0x35915b,_0x28c666))continue;let _0x55f26a=!0x0;for(const _0x9fd10 of _0x35915b['getRanges']())for(const _0x44b2f5 of _0x301947)if(!_0x9fd10['containsRange'](_0x44b2f5)){_0x55f26a=!0x1;break;}if(_0x55f26a)return _0x35915b;}const _0x1d5d55=_0x4d5fba(),_0x104bec=_0x2553b2['id'],_0xbe6e26='insertion:'+_0x587d40,_0x5ba92b=this['_setSuggestionData']({'id':_0x1d5d55,'type':_0xbe6e26,'createdAt':new Date(),'authorId':_0x104bec,'attributes':_0x28c666});for(const _0x51e22d of _0x301947)this['_addSuggestionMarker'](_0xbe6e26,_0x1d5d55,_0x104bec,_0x51e22d,T['getMultiRangeId']());return _0x5ba92b;}['markInlineFormat'](_0x18f55a,_0x535f87,_0x94f783=null,_0x337c53={}){if(_0x94f783=_0x94f783||Lt(_0x535f87),_0x18f55a['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x337c53['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x589622=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x94f783,'accept');return this['forceDefaultExecution'](()=>_0x589622([_0x18f55a],_0x535f87,_0x337c53)),null;}const _0x42c394=this['editor']['plugins']['get']('Users')['me'],_0x5275ec=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3a8e46,meta:_0x1eac09}of this['_findSuggestions'](_0x18f55a,'insertion'))_0x1eac09['isOwn']&&!_0x1eac09['isInsideObject']&&_0x5275ec['push'](..._0x3a8e46['getRanges']());}const _0x13154c=function(_0x331a56,_0x2edc93){const _0x516b12=[];for(const _0x38984c of _0x2edc93){const _0x360dae=_0x331a56['getIntersection'](_0x38984c);_0x360dae&&_0x516b12['push'](_0x360dae);}return _0x516b12;}(_0x18f55a,_0x5275ec),_0x281018=function(_0x1c8d71,_0x3dfef2){const _0x4bae61=[_0x1c8d71];for(const _0x1db9e0 of _0x3dfef2){let _0x9f2cbf=0x0;for(;_0x9f2cbf<_0x4bae61['length'];){const _0x5161e8=_0x4bae61[_0x9f2cbf]['getDifference'](_0x1db9e0);_0x4bae61['splice'](_0x9f2cbf,0x1,..._0x5161e8),_0x9f2cbf+=_0x5161e8['length'];}}return _0x4bae61;}(_0x18f55a,_0x5275ec);_0x13154c['length']&&this['_model']['change'](()=>{for(const _0x240a85 of _0x13154c){const _0x4a1c8e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x94f783,'accept');this['forceDefaultExecution'](()=>_0x4a1c8e([_0x240a85],_0x535f87,_0x337c53));}});for(const _0x15294f of _0x281018){let _0x120f9c=null,_0x2a5e44=_0x15294f['start'],_0x4fbe85=_0x15294f['end'];for(const {suggestion:_0x4f0563,meta:_0x3528c6}of this['_findSuggestions'](_0x15294f,'formatInline')){if(!_0x3528c6['isOwn'])continue;if(_0x4f0563['subType']!=_0x94f783)continue;if(!Xt(_0x4f0563,_0x337c53))continue;const _0x4e5e95=_0x4f0563['getFirstRange']();if(_0x4e5e95['containsRange'](_0x15294f,!0x0))return null;_0x2a5e44=_0x2a5e44['isBefore'](_0x4e5e95['start'])?_0x2a5e44:_0x4e5e95['start'],_0x4fbe85=_0x4fbe85['isAfter'](_0x4e5e95['end'])?_0x4fbe85:_0x4e5e95['end'],_0x120f9c?_0x4e5e95['start']['isBefore'](_0x120f9c['getFirstRange']()['start'])?(_0x120f9c['removeMarkers'](),_0x120f9c=_0x4f0563):_0x4f0563['removeMarkers']():_0x120f9c=_0x4f0563;}const _0x4a0f53=this['_model']['createRange'](_0x2a5e44,_0x4fbe85);if(_0x120f9c)this['_setSuggestionRange'](_0x120f9c,_0x4a0f53);else{const _0x1eaf8d=_0x4d5fba(),_0x4ca054=_0x42c394['id'];this['_setSuggestionData']({'id':_0x1eaf8d,'type':'formatInline:'+_0x94f783,'data':_0x535f87,'createdAt':new Date(),'authorId':_0x4ca054,'attributes':_0x337c53}),this['_addSuggestionMarker']('formatInline:'+_0x94f783,_0x1eaf8d,_0x4ca054,_0x4a0f53);}}return null;}['markBlockFormat'](_0x4b58a6,_0x26115b,_0x1dddd2=[],_0x40c892=null,_0x126ac5={}){_0x26115b['formatGroupId']||(_0x26115b['formatGroupId']=_0x26115b['commandName']),_0x26115b['multipleBlocks']=_0x4b58a6['is']('range'),_0x40c892=_0x40c892||Lt(_0x26115b);const _0x37b219=_0x1dddd2['map'](_0x59c243=>zt(_0x59c243,this['_model'])),_0x14c1f9=_0x4b58a6['is']('range')?_0x4b58a6:zt(_0x4b58a6,this['_model']);if(this['_trackingSessionId']&&(_0x126ac5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x26886e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40c892,'accept');return this['forceDefaultExecution'](()=>_0x26886e([_0x14c1f9],_0x26115b,_0x126ac5)),null;}_0x37b219['push'](_0x14c1f9);let _0x4e5718=!0x0;for(const _0x31cf89 of _0x37b219)if(!this['_rangeIsInLocalUserInsertion'](_0x31cf89)){_0x4e5718=!0x1;break;}if(_0x4e5718&&'always'!==this['_trackFormatChanges']){const _0x4e7f55=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40c892,'accept');return this['forceDefaultExecution'](()=>_0x4e7f55([_0x14c1f9],_0x26115b,_0x126ac5)),null;}let _0x45509a=null,_0x1393db=_0x14c1f9['start'],_0x430d04=_0x14c1f9['end'];for(const {suggestion:_0x2df59d,meta:_0x23b4ea}of this['_findSuggestions'](_0x14c1f9,'formatBlock')){if(!_0x23b4ea['isOwn'])continue;if(_0x23b4ea['isNextTo']||_0x23b4ea['containsRangeInObject']||_0x23b4ea['isInsideObject'])continue;if(_0x2df59d['data']['formatGroupId']!=_0x26115b['formatGroupId'])continue;if(!Xt(_0x2df59d,_0x126ac5))continue;const _0x1f40a9=_0x2df59d['getFirstRange']();if(_0x2df59d['subType']==_0x40c892){if(_0x1f40a9['containsRange'](_0x14c1f9,!0x0))return null;_0x1393db=_0x1393db['isBefore'](_0x1f40a9['start'])?_0x1393db:_0x1f40a9['start'],_0x430d04=_0x430d04['isAfter'](_0x1f40a9['end'])?_0x430d04:_0x1f40a9['end'],_0x45509a?_0x1f40a9['start']['isBefore'](_0x45509a['getFirstRange']()['start'])?(_0x45509a['removeMarkers'](),_0x45509a=_0x2df59d):_0x2df59d['removeMarkers']():_0x45509a=_0x2df59d;}else{const _0xe13a52=_0x14c1f9['getIntersection'](_0x1f40a9);this['_cutOutSuggestionMarker'](_0x2df59d,_0xe13a52);}}const _0x323b29=this['editor']['plugins']['get']('Users')['me'],_0x55c0f7=_0x4d5fba(),_0x191abf=_0x323b29['id'];if(_0x45509a)return this['_setSuggestionRange'](_0x45509a,this['_model']['createRange'](_0x1393db,_0x430d04)),_0x45509a;{const _0x2ee7a9=this['_setSuggestionData']({'id':_0x55c0f7,'type':'formatBlock:'+_0x40c892,'data':_0x26115b,'createdAt':new Date(),'authorId':_0x191abf,'attributes':_0x126ac5});return this['_addSuggestionMarker']('formatBlock:'+_0x40c892,_0x55c0f7,_0x191abf,this['_model']['createRange'](_0x1393db,_0x430d04)),_0x2ee7a9;}}['markMultiRangeBlockFormat'](_0x195e80,_0x1cf3bb,_0x4f3a33=[],_0xfbb671=null,_0x194fe9={}){_0x1cf3bb['formatGroupId']||(_0x1cf3bb['formatGroupId']=_0x1cf3bb['commandName']);const _0x2bf934=_0x195e80[0x0];_0x1cf3bb['multipleBlocks']=_0x2bf934['is']('range'),_0xfbb671=_0xfbb671||Lt(_0x1cf3bb);const _0x29170c=_0x4f3a33['map'](_0x6cc0b6=>zt(_0x6cc0b6,this['_model'])),_0x5556f6=_0x2bf934['is']('range')?_0x195e80:_0x195e80['map'](_0x2552fe=>zt(_0x2552fe,this['_model']));if(this['_trackingSessionId']&&(_0x194fe9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x369416=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfbb671,'accept');return this['forceDefaultExecution'](()=>_0x369416(_0x5556f6,_0x1cf3bb,_0x194fe9)),null;}_0x29170c['push'](..._0x5556f6);let _0x39a18f=!0x0;for(const _0x5e927c of _0x29170c)if(!this['_rangeIsInLocalUserInsertion'](_0x5e927c)){_0x39a18f=!0x1;break;}if(_0x39a18f&&'always'!==this['_trackFormatChanges']){const _0x5cb099=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfbb671,'accept');return this['forceDefaultExecution'](()=>_0x5cb099(_0x5556f6,_0x1cf3bb,_0x194fe9)),null;}const _0x33c5ed=this['editor']['plugins']['get']('Users')['me'];for(const _0x251a31 of this['getSuggestions']()){const _0x443bd5=_0x251a31['data'];if(_0x251a31['author']['id']!=_0x33c5ed['id'])continue;if('formatBlock'!=_0x251a31['type']||_0x443bd5['formatGroupId']!=_0x1cf3bb['formatGroupId'])continue;if(!Xt(_0x251a31,_0x194fe9))continue;const _0x219522=_0x251a31['subType']==_0xfbb671;for(let _0x6df05=0x0;_0x6df05<_0x5556f6['length'];_0x6df05++){const _0x22b064=_0x5556f6[_0x6df05];for(const _0x52e646 of _0x251a31['getMarkers']()){const _0xfc4a0b=_0x52e646['getRange']();if(_0x22b064['isEqual'](_0xfc4a0b)){_0x219522?(_0x5556f6['splice'](_0x6df05,0x1),_0x6df05--):_0x251a31['removeMarker'](_0x52e646['name']);break;}}}}if(0x0==_0x5556f6['length'])return null;const _0xddb264=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfbb671,'join');for(const _0xcc691b of this['getSuggestions']()){const _0x33281c=_0xcc691b['data'];if(_0xcc691b['author']['id']==_0x33c5ed['id']&&('formatBlock'==_0xcc691b['type']&&_0x33281c['formatGroupId']==_0x1cf3bb['formatGroupId']&&_0xcc691b['subType']==_0xfbb671&&Xt(_0xcc691b,_0x194fe9)&&(_0xddb264(_0xcc691b['getRanges'](),_0x5556f6)||_0xddb264(_0x5556f6,_0xcc691b['getRanges']())))){for(const _0x257504 of _0x5556f6)_0xcc691b['addRange'](_0x257504);return _0xcc691b;}}const _0x4ae8f0=_0x4d5fba(),_0xed9bc0=_0x33c5ed['id'],_0x1a2a1a='formatBlock:'+_0xfbb671,_0x504dad=this['_setSuggestionData']({'id':_0x4ae8f0,'type':_0x1a2a1a,'data':_0x1cf3bb,'createdAt':new Date(),'authorId':_0xed9bc0,'attributes':_0x194fe9});for(const _0x30cc1e of _0x5556f6)this['_addSuggestionMarker'](_0x1a2a1a,_0x4ae8f0,_0xed9bc0,_0x30cc1e,T['getMultiRangeId']());return _0x504dad;}['markDeletion'](_0x9424f8,_0x1b394c=null,_0x574ea6={}){if(_0x9424f8['isCollapsed'])return null;const _0x1192a6=this['editor']['plugins']['get']('Users')['me'],_0xd094a4=new _0x18d379(_0x9424f8['start'],_0x9424f8['end']);this['_trackingSessionId']&&(_0x574ea6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4b7dcf,meta:_0x2c0fab}of this['_findSuggestions'](_0xd094a4,'insertion'))if(_0x2c0fab['isOwn']&&!_0x2c0fab['isNextTo']){if(_0x4b7dcf['isMultiRange']){const _0x542f55=_0x4b7dcf['getRanges']()['filter'](_0x1cb360=>'$graveyard'!=_0x1cb360['root']['rootName']);_0x542f55['every'](_0x2fd59d=>_0xd094a4['containsRange'](_0x2fd59d,!0x0))&&_0x4b7dcf['discard']();if(_0x542f55['some'](_0x209c3d=>_0x209c3d['containsRange'](_0xd094a4,!0x0))){const _0x4ea893=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1b394c,'accept');return this['forceDefaultExecution'](()=>_0x4ea893([_0xd094a4],null,_0x574ea6)),null;}}else{const _0x1bbff0=_0xd094a4['getIntersection'](_0x4b7dcf['getFirstRange']());null!==_0x1bbff0&&_0x4b7dcf['_onDiscard']([_0x1bbff0],null,_0x574ea6);}}if(_0xd094a4['detach'](),_0xd094a4['isCollapsed']||'$graveyard'==_0xd094a4['root']['rootName'])return null;let _0x215852=null,_0x53c7a1=_0xd094a4['start'],_0x11fde1=_0xd094a4['end'];const _0x27b0f6=this['_findSuggestions'](_0xd094a4,'deletion');for(const {suggestion:_0x484355,meta:_0x573133}of _0x27b0f6){const _0x4c78ee=this['_model']['createRange'](_0x53c7a1,_0x11fde1);if(_0x573133['isOwn']&&(this['_mergeNestedSuggestions']||!_0x573133['containsRangeInObject']&&!_0x573133['isInsideObject'])){if(_0x484355['isMultiRange']){if(!Xt(_0x484355,_0x574ea6))continue;let _0xcc8a29=!0x0;for(const _0x2e3797 of _0x484355['getRanges']()){if(_0x2e3797['containsRange'](_0x4c78ee,!0x0))return _0x484355;_0x4c78ee['containsRange'](_0x2e3797)||(_0xcc8a29=!0x1);}_0xcc8a29&&_0x484355['discard']();}else{const _0x1ab2bc=_0x484355['getFirstRange']();if(_0x1ab2bc['containsRange'](_0x4c78ee,!0x0))return _0x484355;if(!Xt(_0x484355,_0x574ea6)){_0x4c78ee['containsRange'](_0x1ab2bc)?_0x484355['removeMarkers']():_0x1ab2bc['containsPosition'](_0x53c7a1)?_0x53c7a1=_0x1ab2bc['end']:_0x1ab2bc['containsPosition'](_0x11fde1)&&(_0x11fde1=_0x1ab2bc['start']);continue;}_0x53c7a1=_0x53c7a1['isBefore'](_0x1ab2bc['start'])?_0x53c7a1:_0x1ab2bc['start'],_0x11fde1=_0x11fde1['isAfter'](_0x1ab2bc['end'])?_0x11fde1:_0x1ab2bc['end'],_0x574ea6=Object['assign']({},_0x484355['attributes']),_0x215852?_0x1ab2bc['start']['isBefore'](_0x215852['getFirstRange']()['start'])?(_0x215852['removeMarkers'](),_0x215852=_0x484355):_0x484355['removeMarkers']():_0x215852=_0x484355;}}}if(_0x215852)return this['_setSuggestionRange'](_0x215852,this['_model']['createRange'](_0x53c7a1,_0x11fde1)),_0x215852;{const _0x2fd71e=_0x4d5fba(),_0x4db069=this['_model']['createRange'](_0x53c7a1,_0x11fde1),_0x296d6e=_0x1192a6['id'],_0x27f1d9=_0x1b394c?'deletion:'+_0x1b394c:'deletion',_0x1c7a92=this['_setSuggestionData']({'id':_0x2fd71e,'type':_0x27f1d9,'createdAt':new Date(),'authorId':_0x296d6e,'attributes':_0x574ea6});return this['_addSuggestionMarker'](_0x27f1d9,_0x2fd71e,_0x296d6e,_0x4db069),_0x1c7a92;}}['markMultiRangeDeletion'](_0x2acc34,_0x53eeed='multi',_0x191a1c={}){const _0x4fd103=this['editor']['plugins']['get']('Users')['me'],_0x30c697=_0x2acc34['map'](_0x287a22=>new _0x18d379(_0x287a22['start'],_0x287a22['end'])),_0x288681=new Set();this['_trackingSessionId']&&(_0x191a1c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x443da0,meta:_0x3d9bc5}of this['_findSuggestions'](_0x30c697,'insertion'))_0x3d9bc5['isOwn']&&!_0x3d9bc5['isNextTo']&&_0x288681['add'](_0x443da0);for(const _0xc22a63 of _0x288681)if(_0xc22a63['isMultiRange']){const _0x2a92a0=_0xc22a63['getRanges']();(!_0xc22a63['attributes']||!_0xc22a63['attributes']['skipNestingCheck'])&&(_0x2a92a0['every'](_0x529b87=>_0x30c697['some'](_0x303628=>_0x303628['containsRange'](_0x529b87,!0x0)))&&_0xc22a63['discard']());if(_0x30c697['every'](_0xd080b9=>_0x2a92a0['some'](_0x2ac666=>_0x2ac666['containsRange'](_0xd080b9,!0x0)))){const _0x3fe6ae=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53eeed,'accept');return this['forceDefaultExecution'](()=>_0x3fe6ae(_0x2acc34,null,_0x191a1c)),null;}}else{const _0x508c48=_0xc22a63['getFirstRange']();_0x30c697['some'](_0x4e2a2c=>_0x4e2a2c['containsRange'](_0x508c48,!0x0))&&_0xc22a63['discard']();if(_0x30c697['every'](_0x348706=>_0x508c48['containsRange'](_0x348706,!0x0))){const _0x553f71=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53eeed,'accept');return this['forceDefaultExecution'](()=>_0x553f71(_0x30c697,null,_0x191a1c)),null;}}const _0x307b1b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53eeed,'join');let _0x406d12=null;for(const _0xb737c6 of this['getSuggestions']())if(_0xb737c6['author']['id']==_0x4fd103['id']&&_0xb737c6['isInContent']&&'deletion'==_0xb737c6['type']&&_0xb737c6['subType']==_0x53eeed&&Xt(_0xb737c6,_0x191a1c)&&(_0x307b1b(_0xb737c6['getRanges'](),_0x30c697)||_0x307b1b(_0x30c697,_0xb737c6['getRanges']()))){if(_0x406d12){if(_0xb737c6['commentThread']&&_0xb737c6['commentThread']['length'])continue;for(const _0x4e6096 of _0xb737c6['getRanges']())_0x406d12['isIntersectingWithRange'](_0x4e6096)||_0x406d12['addRange'](_0x4e6096);_0xb737c6['removeMarkers']();}else{_0x406d12=_0xb737c6;for(const _0x58f9b8 of _0x30c697)_0xb737c6['isIntersectingWithRange'](_0x58f9b8)||_0xb737c6['addRange'](_0x58f9b8);}}if(_0x406d12)return _0x406d12;_0x288681['clear']();for(const {suggestion:_0x181127,meta:_0x49539c}of this['_findSuggestions'](_0x30c697,'deletion'))_0x49539c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49539c['containsRangeInObject']&&!_0x49539c['isInsideObject'])&&Xt(_0x181127,_0x191a1c)&&_0x288681['add'](_0x181127);for(const _0x4b6a8b of _0x288681){const _0x174955=_0x4b6a8b['getRanges']();if(!_0x191a1c||!_0x191a1c['skipNestingCheck']){if(_0x30c697['every'](_0x490e19=>_0x174955['some'](_0x1d7f89=>_0x1d7f89['containsRange'](_0x490e19,!0x0))))return _0x4b6a8b;}(!_0x4b6a8b['attributes']||!_0x4b6a8b['attributes']['skipNestingCheck'])&&(_0x174955['every'](_0x571ce4=>_0x30c697['some'](_0x36f21e=>_0x36f21e['containsRange'](_0x571ce4,!0x0)))&&_0x4b6a8b['discard']());}const _0x52bc53=_0x4d5fba(),_0x2a1a8f=_0x4fd103['id'],_0x130fc1='deletion:'+_0x53eeed,_0x312f22=this['_setSuggestionData']({'id':_0x52bc53,'type':_0x130fc1,'createdAt':new Date(),'authorId':_0x2a1a8f,'attributes':_0x191a1c});for(const _0x384610 of _0x30c697)_0x384610['detach'](),_0x384610['isCollapsed']||'$graveyard'==_0x384610['root']['rootName']||this['_addSuggestionMarker'](_0x130fc1,_0x52bc53,_0x2a1a8f,_0x384610,T['getMultiRangeId']());return _0x312f22;}['markAttributeChange'](_0x10c6de,_0x153156,_0x175c81,_0x34c225,_0x4c3571){if(_0x10c6de['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2e382f=this['editor']['plugins']['get']('Users')['me']['id'],_0x401ae4=Array['from'](this['_suggestions']['values']())['filter'](_0x1a25c0=>'attribute'==_0x1a25c0['type']&&_0x1a25c0['data']['key']==_0x153156&&_0x1a25c0['isIntersectingWithRange'](_0x10c6de));if(this['_trackingSessionId']&&(_0x4c3571['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x13eccb=this['_findSuggestions'](_0x10c6de,'insertion')['filter'](({meta:_0x57cedf})=>_0x57cedf['isOwn']&&!_0x57cedf['isInsideObject']&&!_0x57cedf['isNextTo'])['map'](({suggestion:_0x59eec4})=>_0x59eec4);_0x401ae4['unshift'](..._0x13eccb);}const _0x257e4c=new Map([[_0x10c6de,_0x175c81]]);for(const _0x308a0d of _0x401ae4){const _0x5836db='attribute'==_0x308a0d['type']?_0x308a0d['data']['oldValue']:void 0x0,_0x4e9572=_0x308a0d['getFirstRange'](),_0x359a9e=Array['from'](_0x257e4c['keys']())['find'](_0x5547b4=>_0x5547b4['isIntersecting'](_0x4e9572));if(!_0x359a9e)continue;const _0x25dc67=_0x359a9e['getDifference'](_0x4e9572);this['_isBlockAttribute'](_0x153156)&&'insertion'==_0x308a0d['type']&&0x0!=_0x25dc67['length']||(_0x257e4c['delete'](_0x359a9e),_0x25dc67['forEach'](_0x103cba=>{_0x257e4c['set'](_0x103cba,_0x175c81);}),'insertion'!=_0x308a0d['type']&&_0x5836db!=_0x34c225&&_0x257e4c['set'](_0x359a9e['getIntersection'](_0x4e9572),_0x5836db));}const _0x25961f=[];for(const [_0x4fda7e,_0x1b097a]of _0x257e4c){const _0x5babcc=_0x4d5fba(),_0x431ac4={'key':_0x153156,'oldValue':_0x1b097a,'newValue':_0x34c225};_0x153156['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':_0x153156});const _0x1f772f=('attribute:'+(_0x153156+'|'+Lt({'newValue':_0x34c225})))['substring'](0x0,0x3c),_0x1cf0f3=this['_setSuggestionData']({'id':_0x5babcc,'type':_0x1f772f,'data':_0x431ac4,'createdAt':new Date(),'authorId':_0x2e382f,'attributes':_0x4c3571});_0x25961f['push'](_0x1cf0f3),this['_addSuggestionMarker'](_0x1f772f,_0x5babcc,_0x2e382f,_0x4fda7e);}return _0x25961f;}['enableDefaultAttributesIntegration'](_0x90629b){this['enableCommand'](_0x90629b,(_0x2e4e52,..._0x149d0b)=>{this['recordAttributeChanges'](()=>{_0x2e4e52(..._0x149d0b);});});}['registerBlockAttribute'](_0x2963c7){this['_blockAttributeKeys']['add'](_0x2963c7);}['registerInlineAttribute'](_0x32d439){this['_inlineAttributeKeys']['add'](_0x32d439);}['startTrackingSession'](_0x1f81ed){return this['_trackingSessionId']=void 0x0!==_0x1f81ed?_0x1f81ed:_0x4d5fba(),this['_trackingSessionId'];}['_getAttributeKey'](_0xe59475){return'attribute'==_0xe59475['type']?_0xe59475['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x35f711,_0x2cce70){const _0x45c67e=_0x35f711['getFirstMarker']();this['_model']['change'](_0x250588=>{_0x250588['updateMarker'](_0x45c67e,{'range':_0x2cce70});});}['_addThreadToSuggestion'](_0x11bb0d){const _0xd78820=_0x11bb0d['id'],_0x4252aa=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xd78820)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4252aa,'threadId':_0xd78820,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x356c8c=this['_commentsRepository']['getCommentThread'](_0xd78820);_0x356c8c['unbind']('isRemovable'),_0x356c8c['isRemovable']=!0x1,_0x11bb0d['commentThread']=_0x356c8c;}['_checkSuggestionCorrectness'](_0x1a60fc,_0x335cae,_0x58ed79,_0x4715e5){if(_0x1a60fc['type']!=_0x335cae||_0x1a60fc['subType']!=_0x58ed79||_0x1a60fc['creator']['id']!=_0x4715e5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x135e17('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2001d7,_0x466929){const _0x3f9850=_0x2001d7['getFirstRange']();if(_0x466929['isEqual'](_0x3f9850))_0x2001d7['removeMarkers']();else{if(_0x3f9850['containsRange'](_0x466929)){const _0x40c5ad=this['_model']['createPositionAt'](_0x466929['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2001d7,this['_model']['createRange'](_0x3f9850['start'],_0x40c5ad));const _0xb67687=_0x4d5fba(),_0x3d4589=_0x2001d7['creator']['id'],_0x43ca95=_0x2001d7['type']+':'+_0x2001d7['subType'];this['_setSuggestionData']({'id':_0xb67687,'type':_0x43ca95,'createdAt':new Date(),'authorId':_0x3d4589,'data':_0x2001d7['data'],'attributes':_0x2001d7['attributes']});const _0x36ec4b=this['_model']['createPositionAt'](_0x466929['end']['parent'],'after'),_0x25a00c=this['_model']['createRange'](_0x36ec4b,_0x3f9850['end']);this['_addSuggestionMarker'](_0x43ca95,_0xb67687,_0x3d4589,_0x25a00c);}else{if(_0x3f9850['containsPosition'](_0x466929['start'])){const _0x1c91f0=this['_model']['createPositionAt'](_0x466929['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2001d7,this['_model']['createRange'](_0x3f9850['start'],_0x1c91f0));}else{const _0x9e3cf6=this['_model']['createPositionAt'](_0x466929['end']['parent'],'after');this['_setSuggestionRange'](_0x2001d7,this['_model']['createRange'](_0x9e3cf6,_0x3f9850['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x127773){for(const {suggestion:_0x887f4b,meta:_0x55c18a}of this['_findSuggestions'](_0x127773,'insertion')){if(!_0x55c18a['isOwn'])continue;const _0x20209d=_0x887f4b['getRanges']();for(const _0x30eb8d of _0x20209d)if(!_0x127773['getDifference'](_0x30eb8d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x100eec){return this['editor']['plugins']['get']('Users')['getUser'](_0x100eec);}['_getExternalAuthor'](_0x499c37){const _0x3df9e5=this['editor']['plugins']['get']('Users'),_0xbe8d0=_0x3aa155('external:'+_0x499c37),_0x3bee5e=_0x3df9e5['getUser'](_0xbe8d0);return _0x3bee5e||_0x3df9e5['addUser']({'id':_0xbe8d0,'name':_0x499c37});}['_createSuggestion'](_0x29ca2c,_0x4a6191,_0x4ae9a0,_0x31e0f0,_0xfb6952,_0x16d670){const _0x2cbbbf=this['_getAuthorFromId'](_0x31e0f0);if(!_0x2cbbbf)throw new _0x135e17('track-changes-user-not-found',this,{'authorId':_0x31e0f0,'suggestionId':_0x4ae9a0});const _0x36d494=this['_suggestionFactory']['buildSuggestion'](_0x29ca2c,_0x4a6191,_0x4ae9a0,_0x2cbbbf,_0xfb6952,_0x373b36=>{this['_updateSuggestionData'](_0x4ae9a0,{'attributes':_0x373b36});const _0xcb2844=this['getSuggestion'](_0x4ae9a0);this['_joinWithAdjacentSuggestions'](new Set([_0xcb2844])),this['_refreshSuggestionsChain'](new Set([_0xcb2844]));},_0x16d670);return this['listenTo'](_0x36d494,'accept',()=>{this['_updateSuggestionData'](_0x4ae9a0,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x36d494,'discard',()=>{this['_updateSuggestionData'](_0x4ae9a0,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4ae9a0,_0x36d494),this['_suggestionState']['set'](_0x36d494,'notReady'),_0x36d494;}['_splitMarkerName'](_0x5000c2){const _0x2e1a47=_0x5000c2['split'](':');return{'group':_0x2e1a47[0x0],'type':_0x2e1a47[0x1],'subType':_0x2e1a47['length']>=0x5?_0x2e1a47[0x2]:null,'id':_0x2e1a47['length']<0x5?_0x2e1a47[0x2]:_0x2e1a47[0x3],'authorId':_0x2e1a47['length']<0x5?_0x2e1a47[0x3]:_0x2e1a47[0x4],'markerCount':0x6==_0x2e1a47['length']?_0x2e1a47[0x5]:null};}['_breakSuggestionMarker'](_0xddcc63,_0x43d632,_0x3750ea){const _0x123dc0=_0xddcc63['getFirstRange'](),_0x395ba2=_0x123dc0['start'],_0x690c3f=_0x123dc0['end'];this['_setSuggestionRange'](_0xddcc63,this['_model']['createRange'](_0x395ba2,_0x43d632));const _0x46bb48=_0x4d5fba(),_0x31d66d=_0xddcc63['creator']['id'],_0x19285a=_0xddcc63['type']+(_0xddcc63['subType']?':'+_0xddcc63['subType']:'');this['_setSuggestionData']({'id':_0x46bb48,'type':_0x19285a,'createdAt':new Date(),'authorId':_0x31d66d,'originalSuggestionId':_0xddcc63['_originalSuggestionId']||_0xddcc63['id'],'attributes':_0xddcc63['attributes'],'data':_0xddcc63['data']});const _0x418d9a=this['_getAttributeKey'](_0xddcc63);('formatBlock'==_0xddcc63['type']||_0x418d9a&&this['_isBlockAttribute'](_0x418d9a))&&(_0x3750ea=this['_model']['createPositionBefore'](_0x3750ea['parent'])),this['_addSuggestionMarker'](_0x19285a,_0x46bb48,_0x31d66d,this['_model']['createRange'](_0x3750ea,_0x690c3f));}['_findSuggestions'](_0xabcf71,_0x504592=null){const _0xfedbda=[],_0x257283=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xabcf71)||(_0xabcf71=[_0xabcf71]);for(const _0x5b0943 of this['getSuggestions']()){if(!_0x5b0943['isInContent'])continue;if(_0x504592&&_0x5b0943['type']!=_0x504592)continue;let _0x3bf859=!0x1;for(const _0x5bc9f0 of _0x5b0943['getRanges']()){for(const _0xaace53 of _0xabcf71){const _0x460c03=_0xaace53['start']['isEqual'](_0x5bc9f0['end'])||_0xaace53['end']['isEqual'](_0x5bc9f0['start']);if(_0x460c03||_0xaace53['getIntersection'](_0x5bc9f0)){const _0x35c94d=_0xaace53['containsRange'](_0x5bc9f0)&&Ft(this['_model']['schema'],_0x5bc9f0['start'],_0xaace53),_0x55fc8d=_0x5bc9f0['containsRange'](_0xaace53)&&Ft(this['_model']['schema'],_0xaace53['start'],_0x5bc9f0);_0xfedbda['push']({'suggestion':_0x5b0943,'meta':{'isOwn':_0x257283==_0x5b0943['author'],'isNextTo':_0x460c03,'isInsideObject':_0x35c94d,'containsRangeInObject':_0x55fc8d}}),_0x3bf859=!0x0;break;}}if(_0x3bf859)break;}}return _0xfedbda;}['_addSuggestionMarker'](_0x395766,_0xf2b488,_0x57e28b,_0x908bb8,_0xb7c3f){this['_model']['change'](_0x43d384=>{let _0xf2335e='suggestion:'+_0x395766+':'+_0xf2b488+':'+_0x57e28b;_0xb7c3f&&(_0xf2335e=_0xf2335e+':'+_0xb7c3f),_0x43d384['addMarker'](_0xf2335e,{'range':_0x908bb8,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3432b0){const _0x765f68=_0x3432b0['previous'],_0x205cec=_0x3432b0['next'];_0x3432b0['previous']=null,_0x3432b0['next']=null,null!=_0x765f68&&_0x765f68['next']==_0x3432b0&&(_0x765f68['next']=_0x205cec),null!=_0x205cec&&_0x205cec['previous']==_0x3432b0&&(_0x205cec['previous']=_0x765f68),'ready'==this['_suggestionState']['get'](_0x3432b0)&&(this['_suggestionState']['set'](_0x3432b0,'removed'),this['fire']('suggestionUnloaded',_0x3432b0,_0x765f68,_0x205cec));}['_setSuggestionData'](_0x2f5464){const _0xf63098=_0x2f5464['id'],_0x328dfa=this['addSuggestionData'](_0x2f5464);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x191058=this['editor']['plugins']['get']('PendingActions'),_0x306b43=_0x328dfa['hasComments'],_0x552d20=_0x328dfa['subType']?_0x328dfa['type']+':'+_0x328dfa['subType']:_0x328dfa['type'],_0x203e27=this['editor']['locale'],_0x1c744a=_0x191058['add'](o(_0x203e27,'PENDING_ACTION_SUGGESTION')),_0x549791={'id':_0xf63098,'type':_0x552d20,'hasComments':_0x306b43,'data':_0x2f5464['data']||null,'originalSuggestionId':_0x2f5464['originalSuggestionId']||null,'attributes':_0x328dfa['attributes']};this['_adapter']['addSuggestion'](_0x549791)['then'](_0x2628dc=>{_0x328dfa['_saved']=!0x0,_0x191058['remove'](_0x1c744a),_0x2628dc&&_0x2628dc['createdAt']&&(this['_suggestions']['get'](_0xf63098)['createdAt']=_0x2628dc['createdAt']);})['catch'](_0x3a1772=>{throw _0x4baec0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x328dfa['discard']();}),_0x328dfa['stopListening'](),this['_suggestions']['delete'](_0x328dfa['id']),this['_suggestionState']['delete'](_0x328dfa),_0x3a1772;});}return _0x328dfa;}['_isBlockAttribute'](_0x1062db){return this['_blockAttributeKeys']['has'](_0x1062db);}['_isInlineAttribute'](_0x2cba49){return this['_inlineAttributeKeys']['has'](_0x2cba49);}['_updateSuggestionData'](_0x21f640,_0x30ba35){const _0xacff41=this['editor']['plugins']['get']('PendingActions'),_0x12faf0=this['getSuggestion'](_0x21f640);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x12faf0['_saved']){const _0x31be08=_0xacff41['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x21f640,_0x30ba35)['then'](()=>{_0xacff41['remove'](_0x31be08);});}else _0x12faf0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x21f640,_0x30ba35);});}}['_getSuggestionData'](_0x32e03c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x135e17('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x32e03c);}['_handleNewSuggestionMarker'](_0x57e635){const {id:_0x3cad05,type:_0x3428a9,subType:_0x4dfe32,authorId:_0x2dc119}=this['_splitMarkerName'](_0x57e635),_0xeadf1b=this['_suggestions']['get'](_0x3cad05)||this['_createSuggestion'](_0x3428a9,_0x4dfe32,_0x3cad05,_0x2dc119,{});switch(this['_checkSuggestionCorrectness'](_0xeadf1b,_0x3428a9,_0x4dfe32,_0x2dc119),this['_suggestionState']['get'](_0xeadf1b)){case'notReady':this['_getSuggestionData'](_0x3cad05)['then'](_0xe5b72a=>{let _0x190ec8=Promise['resolve']();_0xe5b72a['hasComments']&&(_0x190ec8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3cad05})),_0x190ec8['then'](()=>{this['addSuggestionData'](_0xe5b72a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xeadf1b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3cad05,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xeadf1b,'ready'),this['fire']('suggestionLoaded',_0xeadf1b);break;case'ready':this['fire']('suggestionChanged',_0xeadf1b);}return _0xeadf1b['addMarkerName'](_0x57e635),_0xeadf1b;}['_refreshSuggestionsChain'](_0xa638df){const _0x52a418=Array['from'](_0xa638df),_0x5ee61b=_0x52a418['filter'](_0x1a70f6=>'attribute'==_0x1a70f6['type']);this['_refreshAttributeSuggestionsChain'](_0x5ee61b);const _0x457632=_0x52a418['filter'](_0x484deb=>!_0x484deb['isMultiRange']&&'attribute'!=_0x484deb['type']),_0x4bde25=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f46dc=>!_0x1f46dc['isMultiRange']&&'attribute'!=_0x1f46dc['type']),_0x4c7f21=_0x4bde25['filter'](_0x303afd=>!_0xa638df['has'](_0x303afd)),_0x15e191=new Map(_0x4bde25['map'](_0x4c1d85=>[_0x4c1d85,this['_suggestionFactory']['getSuggestionCallback'](_0x4c1d85['type'],_0x4c1d85['subType'],'chain')])),_0x335204=new Map(_0x4bde25['map'](_0x25fa73=>[_0x25fa73,_0x25fa73['getFirstRange']()])),_0x5101f6=new Set(),_0x56f4ab=new Set();for(let _0x39543b=0x0;_0x39543b<_0x457632['length'];_0x39543b++)_0x23d569(_0x457632[_0x39543b],_0x457632,_0x39543b+0x1);for(let _0x59a2a5=0x0;_0x59a2a5<_0x457632['length'];_0x59a2a5++)_0x23d569(_0x457632[_0x59a2a5],_0x4c7f21,0x0);const _0x28cf22=new Set();for(let _0x301994=0x0;_0x301994<_0x457632['length'];_0x301994++){const _0x1630f2=_0x457632[_0x301994];!_0x56f4ab['has'](_0x1630f2)&&_0x1630f2['previous']&&(_0x28cf22['add'](_0x1630f2['previous']),_0x1630f2['previous']['next']===_0x1630f2&&(_0x1630f2['previous']['next']=null),_0x1630f2['previous']=null),!_0x5101f6['has'](_0x1630f2)&&_0x1630f2['next']&&(_0x28cf22['add'](_0x1630f2['next']),_0x1630f2['next']['previous']===_0x1630f2&&(_0x1630f2['next']['previous']=null),_0x1630f2['next']=null);}function _0x23d569(_0x34ea0b,_0x3a38f2,_0x861878){for(let _0xd1065c=_0x861878;_0xd1065c<_0x3a38f2['length'];_0xd1065c++){const _0x3d3008=_0x57d653(_0x34ea0b,_0x3a38f2[_0xd1065c]);_0x3d3008&&(_0x3d3008[0x0]['next']=_0x3d3008[0x1],_0x3d3008[0x1]['previous']=_0x3d3008[0x0],_0x5101f6['add'](_0x3d3008[0x0]),_0x56f4ab['add'](_0x3d3008[0x1]));}}function _0x57d653(_0x1ed7c4,_0x191016){if(_0x1ed7c4['author']['id']!==_0x191016['author']['id'])return null;const _0x1fd6ef=_0x15e191['get'](_0x1ed7c4)(_0x1ed7c4,_0x191016,_0x335204['get'](_0x1ed7c4),_0x335204['get'](_0x191016));if(!_0x1fd6ef)return null;return _0x15e191['get'](_0x191016)(_0x1ed7c4,_0x191016,_0x335204['get'](_0x1ed7c4),_0x335204['get'](_0x191016))?_0x1fd6ef[0x1]['commentThread']&&_0x1fd6ef[0x1]['commentThread']['length']?null:_0x1fd6ef:null;}_0x28cf22['size']&&this['_refreshSuggestionsChain'](_0x28cf22);}['_refreshAttributeSuggestionsChain'](_0x3e512a){if(0x0==_0x3e512a['length'])return;const _0x13b660=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53a4e4=>'attribute'==_0x53a4e4['type']&&_0x53a4e4['_isDataLoaded']),_0x2df84f=[],_0x315e43=new Map();for(const _0x368a of _0x13b660){const _0x5a96ef=_0x3aa155(_0x368a['attributes']);_0x315e43['has'](_0x5a96ef)||(_0x315e43['set'](_0x5a96ef,_0x2df84f['length']),_0x2df84f['push']([]));const _0xc3b6ce=_0x315e43['get'](_0x5a96ef);_0x2df84f[_0xc3b6ce]['push'](_0x368a);}!(function(){_0x2df84f['sort']((_0x5db4e4,_0x38acc1)=>{const _0x192c3f=_0x5db4e4[0x0]['createdAt'],_0x2098c9=_0x38acc1[0x0]['createdAt'];return _0x192c3f==_0x2098c9?_0x5db4e4[0x0]['attributes']['groupId']<_0x38acc1[0x0]['attributes']['groupId']?-0x1:0x1:_0x192c3f<_0x2098c9?-0x1:0x1;});for(const _0x390ed7 of _0x2df84f)_0x390ed7['sort']((_0xaf4537,_0xdbfc0b)=>_0xaf4537['id']<_0xdbfc0b['id']?-0x1:0x1);}());for(let _0x2de0f1=0x0;_0x2de0f1<_0x2df84f['length'];_0x2de0f1++){if(0x0==_0x2df84f[_0x2de0f1]['length'])continue;const _0x4f2d8a=[];for(let _0x453dc2=_0x2de0f1+0x1;_0x453dc2<_0x2df84f['length'];_0x453dc2++)0x0!=_0x2df84f[_0x453dc2]['length']&&_0x26fd34(_0x2df84f[_0x2de0f1],_0x2df84f[_0x453dc2])&&_0x4f2d8a['push'](_0x453dc2);for(const _0x267b94 of _0x4f2d8a)_0x2df84f[_0x2de0f1]=_0x2df84f[_0x2de0f1]['concat'](_0x2df84f[_0x267b94]),_0x2df84f[_0x267b94]=[];}for(const _0x2fed30 of _0x2df84f)for(let _0x1ffd2e=0x0;_0x1ffd2e<_0x2fed30['length'];_0x1ffd2e++){const _0x4ef296=_0x2fed30[_0x1ffd2e+0x1]||null;_0x2fed30[_0x1ffd2e]['next']!==_0x4ef296&&(_0x2fed30[_0x1ffd2e]['next']=_0x4ef296);}for(const _0x4d4cfd of _0x2df84f)for(let _0x362b5b=0x0;_0x362b5b<_0x4d4cfd['length'];_0x362b5b++){const _0x2c9934=_0x4d4cfd[_0x362b5b-0x1]||null;_0x4d4cfd[_0x362b5b]['previous']!==_0x2c9934&&(_0x4d4cfd[_0x362b5b]['previous']=_0x2c9934);}function _0x26fd34(_0x5ce653,_0x437eca){if(_0x5ce653[0x0]['attributes']['groupId']!==_0x437eca[0x0]['attributes']['groupId']&&_0x5ce653[0x0]['author']!==_0x437eca[0x0]['author'])return!0x1;if(!function(_0x4d719c,_0x9691ad){if(!_0x4d719c['hasComments']&&!_0x9691ad['hasComments'])return!0x0;if(_0x4d719c['hasComments']&&_0x9691ad['hasComments'])return!0x1;if(_0x4d719c['hasComments']&&_0x9691ad['createdAt']<_0x4d719c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x9691ad['hasComments']&&_0x4d719c['createdAt']<_0x9691ad['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5ce653[0x0],_0x437eca[0x0]))return!0x1;const _0x5736a8=Ut(_0x5ce653[0x0]['attributes'],['groupId','trackingSessionId']),_0x483993=Ut(_0x437eca[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1662f9(_0x5736a8,_0x483993))return!0x1;if(_0x5ce653[0x0]['attributes']['groupId']==_0x437eca[0x0]['attributes']['groupId'])return!0x0;if(_0x5ce653[0x0]['attributes']['trackingSessionId']!==_0x437eca[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5ce653['every'](_0x393c5e=>_0x437eca['some'](_0x3d685d=>_0x393c5e['getFirstRange']()['isEqual'](_0x3d685d['getFirstRange']())))&&_0x437eca['every'](_0x4c691d=>_0x5ce653['some'](_0x2d32b1=>_0x4c691d['getFirstRange']()['isEqual'](_0x2d32b1['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xd880ec){const _0x4ef37d=Array['from'](_0xd880ec),_0x3dd699=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4860f7=_0x3dd699['filter'](_0x45ab4b=>!_0xd880ec['has'](_0x45ab4b)),_0x4b4007=new Map(_0x4ef37d['map'](_0x58e789=>[_0x58e789,this['_suggestionFactory']['getSuggestionCallback'](_0x58e789['type'],_0x58e789['subType'],'join')])),_0x497313=new Map(_0x3dd699['map'](_0x57e065=>[_0x57e065,_0x57e065['getRanges']()]));for(let _0x2f064a=0x0;_0x2f064a<_0x4ef37d['length'];_0x2f064a++){if(_0x580f37(this,_0x4ef37d[_0x2f064a],_0x4ef37d,_0x2f064a+0x1))return!0x0;}for(let _0x4c669b=0x0;_0x4c669b<_0x4ef37d['length'];_0x4c669b++){if(_0x580f37(this,_0x4ef37d[_0x4c669b],_0x4860f7,0x0))return!0x0;}return!0x1;function _0x580f37(_0x5b4ed3,_0x5b9b67,_0x42995e,_0x5f235f){for(let _0x568a10=_0x5f235f;_0x568a10<_0x42995e['length'];_0x568a10++){const _0x4d0fce=_0x42995e[_0x568a10];if(_0x4d0fce['type']!==_0x5b9b67['type']||_0x4d0fce['author']['id']!==_0x5b9b67['author']['id']||_0x4d0fce['subType']!==_0x5b9b67['subType'])continue;if(!Qt(_0x5b9b67,_0x4d0fce))continue;if('attribute'==_0x5b9b67['type']&&_0x5b9b67['data']['oldValue']!=_0x4d0fce['data']['oldValue'])continue;if('attribute'==_0x5b9b67['type']&&_0x5b4ed3['_isBlockAttribute'](_0x5b9b67['data']['key']))continue;if('formatBlock'==_0x5b9b67['type']){const _0x3b1b1c=_0x5b4ed3['editor']['model'],_0x5d7bda=_0x5b9b67['getContainedElement']();if(_0x5d7bda&&(_0x3b1b1c['schema']['isObject'](_0x5d7bda)||_0x3b1b1c['schema']['isLimit'](_0x5d7bda)))continue;}const _0x709cdd=_0x4b4007['get'](_0x5b9b67),_0x51640a=_0x497313['get'](_0x5b9b67),_0x53c93d=_0x497313['get'](_0x4d0fce),_0x525ebb=_0x5b9b67['commentThread']&&_0x5b9b67['commentThread']['length'],_0x584926=_0x4d0fce['commentThread']&&_0x4d0fce['commentThread']['length'];if(!_0x525ebb&&_0x709cdd(_0x53c93d,_0x51640a))return _0x5b4ed3['_joinSuggestions'](_0x4d0fce,_0x5b9b67),_0x497313['delete'](_0x5b9b67),!0x0;if(!_0x584926&&_0x709cdd(_0x51640a,_0x53c93d))return _0x5b4ed3['_joinSuggestions'](_0x5b9b67,_0x4d0fce),_0x497313['delete'](_0x4d0fce),!0x0;}return!0x1;}}['_joinSuggestions'](_0x345c1a,_0x2efabf){if(_0x345c1a['isMultiRange']){for(const _0x5a0169 of _0x2efabf['getRanges']())_0x345c1a['addRange'](_0x5a0169);}else{const _0x10e38d=_0x2efabf['getFirstRange']()['end'];this['_setSuggestionRange'](_0x345c1a,this['_model']['createRange'](_0x345c1a['getFirstRange']()['start'],_0x10e38d));}_0x2efabf['removeMarkers']();}['_getMarkerAnnouncementText'](_0x46c498,_0x94582b,_0x5a61e){const _0x212915=_0x46c498['startsWith']('format')||_0x46c498['startsWith']('attribute')?'FORMATTING':_0x46c498['toUpperCase']();return o(this['editor']['locale'],_0x94582b+'_'+_0x212915+'_SUGGESTION_ANNOUNCEMENT',_0x5a61e);}['_initAriaMarkerChangeAnnouncements'](){const _0xc1778a=this['editor'];if(!_0xc1778a['ui'])return;const {ariaLiveAnnouncer:_0x31b028}=_0xc1778a['ui'];_0x2b0b99(this['_model'],({left:_0x4a9619,entered:_0x5a44ed})=>{for(const _0x4625af of _0x4a9619){const {group:_0x481f38,type:_0x397913}=this['_splitMarkerName'](_0x4625af['name']);if('suggestion'===_0x481f38){_0x31b028['announce'](this['_getMarkerAnnouncementText'](_0x397913,'LEAVE'));break;}}for(const _0x2ce356 of _0x5a44ed){const {group:_0x38bbaf,type:_0x40ea3a}=this['_splitMarkerName'](_0x2ce356['name']);if('suggestion'===_0x38bbaf){_0x31b028['announce'](this['_getMarkerAnnouncementText'](_0x40ea3a,'ENTER',_0x1d275c(_0xd80c0c)));break;}}});}['_processAttributeChanges'](_0x470ecb){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5b19f1=this['editor'],_0x5ea372=_0x5b19f1['model']['document']['differ']['getChanges']();if(0x0==_0x5ea372['length'])return!0x1;const _0x44857b=[],_0x43cdb0=_0x5ea372['filter'](_0x477a0f=>'attribute'==_0x477a0f['type']),_0x13bce6=_0x5ea372['filter'](_0x5548b1=>'insert'==_0x5548b1['type']&&'$text'!=_0x5548b1['name']),_0x47176d=_0x5ea372['filter'](_0x560a7b=>'remove'==_0x560a7b['type']&&'$text'!=_0x560a7b['name']);for(const _0x545a4a of _0x43cdb0)_0x44857b['push']({'key':_0x545a4a['attributeKey'],'newValue':_0x545a4a['attributeNewValue'],'oldValue':_0x545a4a['attributeOldValue'],'range':qt(_0x545a4a['range'],_0x5b19f1['model'])});for(const _0x298254 of _0x13bce6){const _0x31d124=_0x47176d['find'](_0x4e69f9=>_0x4e69f9['position']['isEqual'](_0x298254['position']));_0x31d124&&_0x44857b['push']({'key':m,'newValue':_0x298254['name'],'oldValue':_0x31d124['name'],'range':_0x5b19f1['model']['createRangeOn'](_0x298254['position']['nodeAfter'])});}return 0x0!=_0x44857b['length']&&this['_reduceExistingSuggestions'](_0x470ecb,_0x44857b);}['_processAttributeSuggestions'](_0x3d1b2b){let _0x53da7f=!0x1;const _0x1f45e9=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1a96cb=>_0x1a96cb['data']['newRange']&&_0x1a96cb['name']['startsWith']('suggestion:attribute:'));for(const _0x14db32 of _0x1f45e9){const {subType:_0x1384ed,id:_0x2ab568}=this['_splitMarkerName'](_0x14db32['name']),_0x54ed16=_0x1384ed['split']('|')[0x0];for(const _0x3f871b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3f871b['id']!=_0x2ab568&&'attribute'==_0x3f871b['type']&&_0x3f871b['data']&&_0x3f871b['data']['key']==_0x54ed16&&_0x3f871b['getFirstRange']()['isIntersecting'](_0x14db32['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3f871b,_0x14db32['data']['newRange'],_0x3d1b2b),_0x53da7f=!0x0);}return _0x53da7f;}['recordAttributeChanges'](_0x5accbe){this['_recordAttributeSuggestions']=!0x0,_0x5accbe();}['_isRegisteredAttribute'](_0x5e9de1){const _0x2e76d8=this['_isBlockAttribute'](_0x5e9de1),_0x258d7d=this['_isInlineAttribute'](_0x5e9de1);return _0x2e76d8||_0x258d7d;}['_reduceExistingSuggestions'](_0x39468b,_0x113bf9){if(0x0==_0x113bf9['length'])return!0x1;let _0x28e215=!0x1;for(const _0xc948fd of _0x113bf9){const _0x34eab2=this['_findSuggestions'](_0xc948fd['range'],'attribute')['filter'](_0x38b395=>!_0x38b395['meta']['isNextTo'])['map'](_0x406ecc=>_0x406ecc['suggestion']),_0x12fb67=_0x3aa155({'newValue':_0xc948fd['newValue']});_0x34eab2['filter'](_0x4de7fb=>{const [_0x2d7a7c,_0x8a8ade]=_0x4de7fb['subType']['split']('|');return _0x2d7a7c==_0xc948fd['key']&&_0x8a8ade!=_0x12fb67;})['forEach'](_0x1436e4=>{this['_reduceSuggestionAttributeRange'](_0x1436e4,_0xc948fd['range'],_0x39468b),_0x28e215=!0x0;});}return _0x28e215;}['_reduceSuggestionAttributeRange'](_0x5a076b,_0x1a5825,_0x3079d4){const _0x458abb=_0x5a076b['getFirstRange']()['getDifference'](_0x1a5825);0x0!==_0x458abb['length']?0x1!==_0x458abb['length']?this['_breakSuggestionMarker'](_0x5a076b,_0x1a5825['start'],_0x1a5825['end']):this['_setSuggestionRange'](_0x5a076b,_0x458abb[0x0]):_0x3079d4['removeMarker'](_0x5a076b['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x218b2d){this['_editor']=_0x218b2d,this['_model']=_0x218b2d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x11288d,_0x292a9c,_0x45784c,_0x4cb026,_0x2c4257,_0x50606c,_0x128964){return new T(this['_model'],{'type':_0x11288d,'subType':_0x292a9c,'id':_0x45784c,'originalSuggestionId':_0x128964,'author':_0x4cb026,'creator':_0x4cb026,'attributes':_0x2c4257,'onAttributesChange':_0x50606c,'onAccept':(..._0x3389d7)=>this['getSuggestionCallback'](_0x11288d,_0x292a9c,'accept')(..._0x3389d7),'onDiscard':(..._0x247115)=>this['getSuggestionCallback'](_0x11288d,_0x292a9c,'discard')(..._0x247115)});}['registerCustomCallback'](_0x50b7f5,_0x4cf1b0,_0x1b5917,_0x1c2e44){const _0x1904f3=_0x50b7f5+':'+_0x4cf1b0+':'+_0x1b5917;this['_customCallbacks']['set'](_0x1904f3,_0x1c2e44);}['getSuggestionCallback'](_0x2a1b42,_0x207a4f,_0x5d0723){const _0x2b4e0e=_0x2a1b42+':'+_0x207a4f+':'+_0x5d0723;return this['_customCallbacks']['get'](_0x2b4e0e)||this['_defaultCallbacks']['get'](_0x2a1b42+':'+_0x5d0723);}['_registerDefaultCallbacks'](){const _0x395717=()=>!0x1,_0x240fb1=_0x58261c=>{_0x58261c['sort']((_0x3db3f0,_0x4d6108)=>_0x3db3f0['start']['isBefore'](_0x4d6108['start'])?0x1:-0x1),this['_model']['change'](_0x3bde7d=>{for(const _0x3caefc of _0x58261c){let _0x530c88;_0x530c88=_0x3caefc['end']['isAtEnd']&&_0x3caefc['end']['parent']==_0x3caefc['start']['nodeAfter']?_0x3bde7d['createSelection'](_0x3caefc['start']['nodeAfter'],'on'):_0x3bde7d['createSelection'](_0x3caefc),this['_model']['deleteContent'](_0x530c88,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x453454=(_0x1472da,_0x252ad2)=>{_0x252ad2&&this['_model']['change'](_0x35d219=>{const {commandName:_0x3fd661,commandParams:_0x209549=[]}=_0x252ad2,_0xf09c75=_0x1472da['map'](_0x228faa=>(Pt(_0x228faa)&&(_0x228faa=this['_model']['createRange'](_0x228faa['end'])),_0x228faa))['filter'](_0x1f83a5=>'$graveyard'!==_0x1f83a5['root']['rootName']);if(_0xf09c75['length']<0x1)return;const _0x50237c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x37d94b=>_0x18d379['fromRange'](_0x37d94b));_0x35d219['setSelection'](_0xf09c75);for(const _0x426f54 of this['_editor']['commands']['commands']())_0x426f54['refresh']();_0x209549['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3fd661,..._0x209549);const _0x4870ee=_0x50237c['filter'](_0x4a3a84=>'$graveyard'!=_0x4a3a84['root']['rootName']);_0x4870ee['length']>0x0&&_0x35d219['setSelection'](_0x4870ee);for(const _0x3957a5 of _0x50237c)_0x3957a5['detach']();});},_0x160374=(_0x5fecd1,_0xe63e75)=>0x1==_0x5fecd1['length']&&0x1==_0xe63e75['length']&&_0x5fecd1[0x0]['end']['isEqual'](_0xe63e75[0x0]['start']),_0x2cf69d=(_0xfcc04d,_0x3ee311,_0x285aa9,_0x278ecd)=>Wt(_0xfcc04d,_0x3ee311,_0x285aa9,_0x278ecd)?[_0xfcc04d,_0x3ee311]:Wt(_0x3ee311,_0xfcc04d,_0x278ecd,_0x285aa9)?[_0x3ee311,_0xfcc04d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x395717),this['_defaultCallbacks']['set']('insertion:discard',_0x240fb1),this['_defaultCallbacks']['set']('insertion:join',_0x160374),this['_defaultCallbacks']['set']('insertion:chain',_0x2cf69d),this['_defaultCallbacks']['set']('deletion:accept',_0x240fb1),this['_defaultCallbacks']['set']('deletion:discard',_0x395717),this['_defaultCallbacks']['set']('deletion:join',_0x160374),this['_defaultCallbacks']['set']('deletion:chain',_0x2cf69d),this['_defaultCallbacks']['set']('formatInline:accept',_0x453454),this['_defaultCallbacks']['set']('formatInline:discard',_0x395717),this['_defaultCallbacks']['set']('formatInline:join',_0x160374),this['_defaultCallbacks']['set']('formatInline:chain',_0x395717),this['_defaultCallbacks']['set']('formatBlock:accept',_0x453454),this['_defaultCallbacks']['set']('formatBlock:discard',_0x395717),this['_defaultCallbacks']['set']('formatBlock:join',_0x160374),this['_defaultCallbacks']['set']('formatBlock:chain',_0x395717),this['_defaultCallbacks']['set']('attribute:accept',_0x395717),this['_defaultCallbacks']['set']('attribute:discard',(_0x3684b1,_0x1d007e)=>{if(!_0x1d007e)return;const _0x257dde=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x38e4a0=>{if(_0x1d007e['key']==m)for(const _0x23e576 of _0x3684b1){const _0xb0a200=_0x23e576['start']['nodeAfter'],_0x14a44d=_0x1d007e['oldValue'];_0x38e4a0['rename'](_0xb0a200,_0x14a44d);}else{if(_0x257dde['_isBlockAttribute'](_0x1d007e['key'])){for(const _0x3dca82 of _0x3684b1)void 0x0!==_0x1d007e['oldValue']?_0x38e4a0['setAttribute'](_0x1d007e['key'],_0x1d007e['oldValue'],_0x3dca82['start']['nodeAfter']):_0x38e4a0['removeAttribute'](_0x1d007e['key'],_0x3dca82['start']['nodeAfter']);}else{for(const _0x17940d of _0x3684b1)_0x1d007e['oldValue']?_0x38e4a0['setAttribute'](_0x1d007e['key'],_0x1d007e['oldValue'],_0x17940d):_0x38e4a0['removeAttribute'](_0x1d007e['key'],_0x17940d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x160374);}}function Ft(_0x5b6663,_0x108e83,_0x4ffc20){for(const _0x4b4b16 of _0x108e83['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4b4b16['root']==_0x4b4b16)return!0x1;if(!_0x4ffc20['containsItem'](_0x4b4b16))return!0x1;if(_0x5b6663['isObject'](_0x4b4b16)||_0x5b6663['isLimit'](_0x4b4b16))return!0x0;}return!0x1;}function Pt(_0x110d06){return _0x110d06['end']['parent']==_0x110d06['start']['nodeAfter']&&_0x110d06['end']['isAtStart'];}function Gt(_0x3a48e8,_0xba0ac5,_0x498183,_0x23a579){const _0x423eab=_0x4db05e=>!_0x4db05e['item']['is']('$textProxy')&&!_0x23a579['isObject'](_0x4db05e['item']),_0xa40f1b=_0x3a48e8['start']['getLastMatchingPosition'](_0x423eab),_0x43f213=_0x3a48e8['end']['getLastMatchingPosition'](_0x423eab,{'direction':'backward'});return(!_0x3a48e8['start']['isEqual'](_0xa40f1b)||!_0x3a48e8['end']['isEqual'](_0x43f213))&&(_0xa40f1b['isBefore'](_0x43f213)?_0x498183['updateMarker'](_0xba0ac5,{'range':_0x498183['createRange'](_0xa40f1b,_0x43f213)}):_0x498183['removeMarker'](_0xba0ac5),!0x0);}function Lt(_0x4ae0af){return _0x3aa155(_0x4ae0af);}function Jt(_0x20b458){const _0xba1cf6=_0x20b458['start']['nodeAfter'];return _0xba1cf6&&_0xba1cf6['is']('element');}function Kt(_0x3a9085){return Pt(_0x3a9085)||function(_0x491339){return _0x491339['start']['parent']==_0x491339['end']['nodeBefore']&&_0x491339['start']['isAtEnd'];}(_0x3a9085);}function Ht(_0x50e2d2,_0x27a5cb){try{const _0x43d712=_0x50e2d2['getRange']();for(const _0x45525d of _0x27a5cb)if(_0x50e2d2!==_0x45525d&&_0x43d712&&_0x43d712['isIntersecting'](_0x45525d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x504ac3,_0x27ccbc){return null==_0x504ac3['end']['nodeBefore']&&_0x504ac3['end']['parent']==_0x504ac3['start']['nodeAfter']?zt(_0x504ac3['start']['nodeAfter'],_0x27ccbc):_0x504ac3;}function zt(_0xcb26dc,_0x2c1908){const _0x468cdb=_0x2c1908['schema']['isObject'](_0xcb26dc)||_0x2c1908['schema']['isSelectable'](_0xcb26dc);return _0x2c1908['createRange'](_0x2c1908['createPositionAt'](_0xcb26dc,'before'),_0x468cdb?_0x2c1908['createPositionAfter'](_0xcb26dc):_0x2c1908['createPositionAt'](_0xcb26dc,'end'));}function Wt(_0x194085,_0x5bdf8c,_0x45965a,_0x2d168c){return!!Qt(_0x194085,_0x5bdf8c)&&_0x45965a['end']['isEqual'](_0x2d168c['start']);}function Qt(_0x1c8111,_0x444880){if(!_0x1c8111['_isDataLoaded']||!_0x444880['_isDataLoaded'])return!0x1;const _0x1e8ac6=new Set(Object['keys'](_0x1c8111['attributes'])),_0x3b7586=new Set(Object['keys'](_0x444880['attributes']));if(_0x1e8ac6['delete']('groupId'),_0x3b7586['delete']('groupId'),0x0==_0x1e8ac6['size']&&0x0==_0x3b7586['size'])return!0x0;if(_0x1e8ac6['size']!=_0x3b7586['size'])return!0x1;const _0x1a46a1={..._0x1c8111['attributes']},_0xfa8351={..._0x444880['attributes']};return delete _0x1a46a1['groupId'],delete _0xfa8351['groupId'],JSON['stringify'](_0x1a46a1)==JSON['stringify'](_0xfa8351);}function Xt(_0x37ad8c,_0x35c9b9){const _0x1eb6fd=Yt(_0x37ad8c['attributes']),_0x38be9d=Yt(_0x35c9b9);if(!_0x37ad8c['_isDataLoaded'])return!0x1;for(const _0xa06dc8 of Object['keys'](_0x38be9d))if(!_0x1662f9(_0x1eb6fd[_0xa06dc8],_0x38be9d[_0xa06dc8]))return!0x1;return!0x0;}function Yt(_0x383c01){const _0x42c214=Object['assign']({},_0x383c01);return delete _0x42c214['skipNestingCheck'],delete _0x42c214['tablePasteChainId'],_0x42c214;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x4cec0e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x23e3d9,_0x12b376,_0x4ab8b8,_0x2579bd){super(),this['model']=_0x12b376,this['view']=_0x4ab8b8,this['commentThreadController']=_0x2579bd,this['_editor']=_0x23e3d9,this['_acceptCommand']=_0x23e3d9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x23e3d9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3aad93,_0x3f7c8c)=>_0x3aad93||_0x3f7c8c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2ea165=>_0x2ea165&&this['_editor']['model']['canEditAt'](_0x12b376['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x419315=>_0x419315&&this['_editor']['model']['canEditAt'](_0x12b376['getRanges']())),this['_pendingAction']=null,_0x4ab8b8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4ab8b8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4ab8b8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4ab8b8,'change:isDirty',()=>{_0x4ab8b8['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 _0x3d2efa=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3d2efa);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x2864ff{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4a2002,_0xcd9025,_0x43f22d,_0x304f0d){super(_0x4a2002),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3a6567(_0x4a2002,o(_0x4a2002,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xcd9025['authoredAt']),this['bind']('authoredAt')['to'](_0xcd9025),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',_0xcd9025,'authoredAt',this,'descriptionParts',(_0x456efa,_0x1856ac,_0x16fa28)=>{const _0x42d286=_0x16fa28['map'](_0x483393=>ls(_0x483393['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x456efa-0x1,_0xcd9025['author']['name'],_0x1856ac?_0x304f0d['formatDateTime'](_0x1856ac):'',new DOMParser()['parseFromString'](_0x42d286,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2435c7(),this['focusTracker']=new _0x2817b9(),this['keystrokes']=new _0x1782a1(),this['focusCycler']=new _0xe88268({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3a28d7=>_0x3a28d7['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xcd9025,this['_localUser']=_0x43f22d,this['_config']=_0x304f0d,_0x304f0d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2fe09e(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x56e6c4}=this['_config'];this['commentsListView']=new _0x56e6c4(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',_0x55c7fe=>_0x55c7fe+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1edba3,_0x1674d3)=>_0x1edba3||!!_0x1674d3);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x20d813}=this['_config'],_0x34c68b=new _0x20d813(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x204806=_0x34c68b['commentInputView'];return _0x34c68b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x204806,'value',(_0x5c66ed,_0x595bdc,_0x56cf27)=>!!_0x56cf27||_0x5c66ed&&!_0x595bdc),_0x204806['on']('submit',(_0x2625c4,_0x570aca)=>{this['fire']('addComment',_0x570aca),_0x204806['editor']['setData']('');}),_0x204806['on']('cancel',()=>this['focus']()),_0x204806['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x34c68b;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0xc539eb,_0x33228e,_0x1ecf4a,_0xaa9b6f){super(_0xc539eb,_0x33228e,_0x1ecf4a,_0xaa9b6f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xb8be59=>_0xb8be59&&_0xb8be59[0x0]?_0xb8be59[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x186f1d,_0x295670)=>{let _0x486e29='';for(const _0x141f61 of _0x186f1d)_0x486e29+='<p>'+ls(_0x141f61['content'],_0x141f61['color'])+'</p>';return _0x295670?_0x486e29:_0xc392ef(_0x486e29,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xaa9b6f['SuggestionView'](_0xc539eb,_0x33228e,{'formatDateTime':_0xaa9b6f['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 _0x2be417=this['bindTemplate'],_0x5e5609=[this['suggestionView']];return this['commentsListView']&&_0x5e5609['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5e5609['push'](this['commentThreadInputView']),_0x5e5609['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2be417['if']('isActive','ck-suggestion-wrapper--active'),_0x2be417['to']('type',_0x4fa12c=>'ck-suggestion-'+_0x4fa12c),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':_0x2be417['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5e5609};}['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 we extends _0x2864ff{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x468e5f,_0x4e7dc6,_0x4a80fb){super(_0x468e5f),this['_model']=_0x4e7dc6,this['_config']=_0x4a80fb,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4e7dc6),this['acceptButton']=this['_createButton'](o(_0x468e5f,'Accept\x20suggestion'),_0x1e5148,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x468e5f,'Discard\x20suggestion'),_0x38a127,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x532412(_0x468e5f,_0x4e7dc6['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2435c7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2817b9(),this['keystrokes']=new _0x1782a1(),this['focusCycler']=new _0xe88268({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x18e8c5=>_0x18e8c5['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3bcf1a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3bcf1a['innerHTML']=this['description'],this['on']('change:description',(_0x2e9079,_0x1d7764,_0x2afadf)=>{_0x3bcf1a['innerHTML']=_0x2afadf;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x57e110=this['bindTemplate'],_0x330d9b=[{'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':_0x57e110['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x57e110['to']('authoredAt',_0x5a6ad5=>this['_config']['formatDateTime'](_0x5a6ad5))}]}]},{'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']&&_0x330d9b['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':_0x330d9b}]};}['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'](_0x18573f,_0x24c450,_0x1a6602,_0x3e3162,_0x558365){const _0x2e1c79=new _0x761f(this['locale']);return _0x2e1c79['set']({'label':_0x18573f,'icon':_0x24c450,'tooltip':!0x0,'tooltipPosition':_0x558365}),_0x2e1c79['extendTemplate']({'attributes':{'class':_0x1a6602}}),_0x2e1c79['on']('execute',()=>{this['fire'](_0x3e3162,this['_model']['id']);}),_0x2e1c79;}['_setupKeyboardNavigation'](){const _0x131775=this['element'];this['keystrokes']['listenTo'](_0x131775);for(const _0x41e731 of this['focusables'])this['focusTracker']['add'](_0x41e731['element']),this['keystrokes']['listenTo'](_0x41e731['element']);this['keystrokes']['set']('enter',(_0x8009e9,_0x251bba)=>{_0x131775===_0x8009e9['target']&&(this['focusCycler']['focusFirst'](),_0x251bba());}),this['keystrokes']['set']('esc',(_0x5c3221,_0x5a3a67)=>{_0x131775!==_0x5c3221['target']&&(this['focus'](),_0x5a3a67());});}}class u extends _0xda4d6f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x1ed6b1,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43788d){super(_0x43788d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4d722b=this['editor']['config'];_0x4d722b['define']('trackChanges.SuggestionThreadView',fe),_0x4d722b['define']('trackChanges.SuggestionView',we),_0x4d722b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4d722b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x8ba62c,_0x499712){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x163db9,_0x4eb8d0]of this['_handleControllerBuffer']){const _0x2fa3bb=this['_suggestionToController']['has'](_0x163db9);_0x2fa3bb||_0x4eb8d0?_0x2fa3bb&&_0x4eb8d0&&this['_destroyController'](_0x163db9):this['_initializeController'](_0x163db9);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x8ba62c,_0x499712);}['init'](){const _0x308450=this['editor'],_0x54f07f=_0x308450['plugins']['get']('TrackChangesEditing'),_0x416cd6=_0x308450['plugins']['get']('Annotations'),_0x5ed67e=_0x308450['plugins']['get']('EditorAnnotations'),_0x337cfd=_0x308450['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5ed67e['addSourceCollector'](()=>{const _0x3060b4=[];for(const [_0x44fd81,_0x4eb347]of Array['from'](this['_suggestionToController'])){const _0x42ec6b=_0x44fd81['getAllAdjacentSuggestions'](),_0x275e78=[];for(const _0x35c9ba of _0x42ec6b){if(!_0x35c9ba['isInContent'])continue;if(_0x35c9ba['isMultiRange']){_0x275e78['push'](..._0x35c9ba['getRanges']());continue;}const _0x581abd=_0x35c9ba['getFirstRange']();if(_0x275e78['length']>0x0){const _0x16dff4=_0x275e78[0x0]['getJoined'](_0x581abd);if(_0x16dff4){_0x275e78[0x0]=_0x16dff4;continue;}}_0x275e78['push'](_0x581abd);}_0x3060b4['push']([_0x4eb347['view'],_0x275e78]);}return _0x3060b4;}),this['listenTo'](_0x54f07f,'suggestionLoaded',(_0x254623,_0x45a9e3)=>{this['listenTo'](_0x45a9e3,'change:previous',(_0x228047,_0x5e0940,_0x461b92,_0x412f47)=>{_0x45a9e3['isInContent']&&(null==_0x461b92?(this['_updateController'](_0x412f47['head']),this['_handleSuggestionControllerDelayed'](_0x45a9e3,!0x1)):(this['_updateController'](_0x461b92['head']),null==_0x412f47&&this['_handleSuggestionControllerDelayed'](_0x45a9e3,!0x0)));}),null!==_0x45a9e3['previous']?this['_updateController'](_0x45a9e3['head']):this['_handleSuggestionControllerDelayed'](_0x45a9e3,!0x1);}),this['listenTo'](_0x54f07f,'suggestionUnloaded',(_0x190d2a,_0x5d28e5,_0x4527b6)=>{this['stopListening'](_0x5d28e5,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5d28e5),this['_suggestionToController']['has'](_0x5d28e5)&&this['_destroyController'](_0x5d28e5),_0x4527b6&&this['_updateController'](_0x4527b6['head']);}),this['listenTo'](_0x54f07f,'suggestionChanged',(_0x2044d1,_0xff909a)=>{this['_updateController'](_0xff909a);}),this['listenTo'](_0x416cd6,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x337cfd,'addComment',(_0xfbb5ed,{threadId:_0x8f40a9,isFromAdapter:_0x1b9ca9})=>{if(_0x1b9ca9||!_0x54f07f['hasSuggestion'](_0x8f40a9))return;const _0x492456=_0x54f07f['getSuggestion'](_0x8f40a9);this['_suggestionToController']['get'](_0x492456)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x316e23=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a8dbf;for(const _0x498a88 in _0x316e23){const _0xaba47=_0x498a88,_0x5f16d4=_0x316e23[_0xaba47];if('trackChangesLicenseKeyValid'==_0x5f16d4||'trackChangesLicenseKeyInvalid'==_0x5f16d4||'trackChangesLicenseKeyExpired'==_0x5f16d4||'trackChangesLicenseKeyDomainLimit'==_0x5f16d4||'trackChangesLicenseKeyNotAllowed'==_0x5f16d4||'trackChangesLicenseKeyEvaluationLimit'==_0x5f16d4||'trackChangesLicenseKeyTrialLimit'==_0x5f16d4||'trackChangesLicenseKeyUsageLimit'==_0x5f16d4){delete _0x316e23[_0xaba47],_0x4a8dbf=_0x5f16d4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4a8dbf&&_0x316e23['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4a8dbf&&_0x316e23['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4a8dbf&&_0x316e23['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4a8dbf&&_0x316e23['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4a8dbf&&_0x316e23['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4a8dbf&&_0x316e23['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4a8dbf&&_0x316e23['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1023bc){const _0x3ac5f4=this['_suggestionToController']['get'](_0x1023bc);if(!_0x3ac5f4)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3ac5f4['view'])||null;}['getSuggestionForAnnotation'](_0x4ed9b2){const _0x3510a3=this['_viewToController']['get'](_0x4ed9b2['innerView']);return _0x3510a3?_0x3510a3['model']:null;}['_refreshActiveMarkers'](){const _0x156909=this['editor']['plugins']['get']('Annotations'),_0xaa5789=this['editor']['plugins']['get']('TrackChangesEditing'),_0x508985=Array['from'](_0x156909['activeAnnotations'],_0x1f3fdf=>_0x1f3fdf['innerView'])['filter'](_0x43d749=>this['_viewToController']['has'](_0x43d749)),_0xcddccb=[];for(const _0x3aaef0 of _0x508985){const _0x1db759=this['_viewToController']['get'](_0x3aaef0)['model']['getAllAdjacentSuggestions']();_0xcddccb['push'](..._0x1db759['reduce']((_0x39fa4c,_0x36f6a3)=>[..._0x39fa4c,..._0x36f6a3['getMarkerNames']()],[]));}_0xaa5789['activeMarkers']=_0xcddccb;}['_addUIComponentsToFactory'](){const _0x76e500=this['editor'],_0x4c7162=_0x76e500['locale'],_0x2ab146=o(_0x4c7162,'Track\x20changes'),_0x704e17=new _0xdb0dc6([{'type':'switchbutton','model':new _0x24c46b({'withText':!0x0,'isToggleable':!0x0,'label':_0x2ab146,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x24c46b({'withText':!0x0,'label':o(_0x4c7162,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x24c46b({'withText':!0x0,'label':o(_0x4c7162,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x24c46b({'withText':!0x0,'label':o(_0x4c7162,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x24c46b({'withText':!0x0,'label':o(_0x4c7162,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x76e500['plugins']['has']('TrackChangesPreview')&&_0x704e17['addMany']([{'type':'separator'},{'type':'button','model':new _0x24c46b({'withText':!0x0,'label':o(_0x4c7162,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x34c691 of _0x704e17)if(ke(_0x34c691)){const _0x11e9c3=_0x76e500['commands']['get'](_0x34c691['model']['commandName']);_0x34c691['model']['bind']('isOn','isEnabled')['to'](_0x11e9c3,'value','isEnabled');}_0x76e500['ui']['componentFactory']['add']('trackChanges',_0x4c8c08=>this['_createToolbarButton'](_0x4c8c08,_0x704e17,_0x2ab146)),_0x76e500['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4a39a8=>this['_createMenuBarMenu'](_0x4a39a8,_0x704e17,_0x2ab146));}['_createToolbarButton'](_0x5c0c70,_0x14a581,_0x360ac6){const _0x6e527f=_0x12883e(_0x5c0c70,_0x391c8c),_0x5ae0d7=this['editor']['commands']['get']('trackChanges');_0x6e527f['buttonView']['set']({'tooltip':_0x360ac6,'label':_0x360ac6,'icon':_0x3631c9}),_0x6e527f['buttonView']['bind']('isOn')['to'](_0x5ae0d7,'value'),_0x6e527f['buttonView']['on']('execute',()=>{_0x5ae0d7['execute'](),this['editor']['editing']['view']['focus']();}),_0x1408a4(_0x6e527f,_0x14a581,{'role':'menu'});const _0x363c4b=[];for(const _0x26b53c of _0x14a581)ke(_0x26b53c)&&_0x363c4b['push'](this['editor']['commands']['get'](_0x26b53c['model']['commandName']));const _0x312ca9=_0x6e527f['buttonView'];return _0x312ca9['actionView']['unbind']('isEnabled'),_0x312ca9['arrowView']['unbind']('isEnabled'),_0x312ca9['actionView']['bind']('isEnabled')['to'](_0x5ae0d7,'isEnabled'),_0x312ca9['arrowView']['bind']('isEnabled')['toMany'](_0x363c4b,'isEnabled',(..._0x415620)=>_0x415620['some'](_0xffb2ca=>_0xffb2ca)),_0x6e527f['on']('execute',_0xf5f49a=>{this['editor']['execute'](_0xf5f49a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x6e527f;}['_createMenuBarMenu'](_0x2fde31,_0xb88bd9,_0x36359e){const _0x3e0316=new _0x4a8ea8(_0x2fde31),_0x19fd04=this['editor']['commands']['get']('trackChanges');_0x3e0316['buttonView']['set']({'label':_0x36359e,'icon':_0x3631c9});const _0x4a3387=new _0x4a9231(_0x2fde31);for(const _0x4356b8 of _0xb88bd9){if('separator'==_0x4356b8['type']){_0x4a3387['items']['add'](new _0x4fac87(_0x2fde31));continue;}const _0x155aad=new _0x5c1af9(_0x2fde31,_0x3e0316),_0x52ad45=new _0x3bf01b(_0x2fde31),_0x4d06e7=_0x4356b8['model'];_0x52ad45['bind'](...Object['keys'](_0x4d06e7))['to'](_0x4d06e7),_0x52ad45['delegate']('execute')['to'](_0x3e0316),_0x52ad45['on']('execute',()=>{this['editor']['execute'](_0x4d06e7['commandName']),this['editor']['editing']['view']['focus']();}),_0x155aad['children']['add'](_0x52ad45),_0x4a3387['items']['add'](_0x155aad);}return _0x3e0316['bind']('isEnabled')['to'](_0x19fd04,'isEnabled'),_0x3e0316['panelView']['children']['add'](_0x4a3387),_0x3e0316;}['_initializeController'](_0x125f07){const _0x94fbd7=this['editor'],_0x5f92c5=_0x94fbd7['config'],_0x6f3a3d=_0x94fbd7['plugins']['get']('Annotations'),_0x586ed3=_0x94fbd7['plugins']['get']('CommentsRepository'),_0x2d0e60=_0x94fbd7['plugins']['get']('EditorAnnotations'),_0x375472=_0x94fbd7['plugins']['get'](_0x1ed6b1)['me'],_0x37019f=_0x5f92c5['get']('trackChanges')['SuggestionThreadView'],_0x31c9f3=_0x5f92c5['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x39779d,CommentThreadInputView:_0x32dc60}=_0x94fbd7['plugins']['get']('CommentsUI');let _0x354c52,_0x14b7f2,_0x313040;this['_annotationViews']['has'](_0x125f07['id'])?(_0x14b7f2=this['_annotationViews']['get'](_0x125f07['id']),_0x354c52=_0x14b7f2['mainView']):(_0x354c52=new _0x37019f(_0x94fbd7['locale'],_0x125f07,_0x375472,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5f92c5['get']('comments.editorConfig'),'licenseKey':_0x5f92c5['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5f92c5['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5f92c5['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5f92c5['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x278518(_0x5f92c5['get']('locale'),_0x94fbd7['locale']),'CommentView':_0x5f92c5['get']('comments')['CommentView'],'CommentsListView':_0x39779d,'CommentThreadInputView':_0x32dc60,'SuggestionView':_0x31c9f3}),_0x354c52['suggestionView']['acceptButton']['on']('execute',()=>{_0x94fbd7['editing']['view']['focus']();}),_0x354c52['suggestionView']['discardButton']['on']('execute',()=>{_0x94fbd7['editing']['view']['focus']();}),_0x14b7f2=_0x6f3a3d['createAnnotationView'](this['editor']['locale'],_0x354c52),_0x14b7f2['bind']('isDirty')['to'](_0x354c52,'isDirty'),_0x14b7f2['bind']('length')['to'](_0x354c52),_0x14b7f2['bind']('type')['to'](_0x354c52,'type',_0x52d74f=>'suggestion-'+_0x52d74f),_0x354c52['on']('escape',()=>{_0x313040['fire']('escape');}),this['_annotationViews']['set'](_0x125f07['id'],_0x14b7f2));const _0xf2e6a1=_0x586ed3['createCommentThreadController'](_0x125f07['commentThread'],_0x354c52),_0x3d3166=new pe(_0x94fbd7,_0x125f07,_0x354c52,_0xf2e6a1),_0x5d41e9=_0x125f07['getAllAdjacentSuggestions']()['filter'](_0x4cf4fd=>_0x4cf4fd['isInContent']);_0x354c52['descriptionParts']=_0x94fbd7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5d41e9),this['_suggestionToController']['set'](_0x125f07,_0x3d3166),this['_viewToController']['set'](_0x354c52,_0x3d3166);const _0x1a071d=()=>{const _0x3e38ed=[],_0x290ee7=_0x125f07['getAllAdjacentSuggestions']()['filter'](_0x1187cf=>_0x1187cf['isInContent']);for(const _0x513a2f of _0x290ee7)_0x3e38ed['push'](..._0x513a2f['getMarkers']());return _0x27e82d(_0x94fbd7['editing'],_0x3e38ed);};_0x313040=_0x6f3a3d['createAnnotation']({'view':_0x14b7f2,'target':_0x1a071d,'type':()=>'suggestion-'+_0x3d3166['view']['type'],'isVisible':!!_0x1a071d()}),_0x586ed3['_bindAnnotationToEditors'](_0x354c52,_0x313040),_0x6f3a3d['add'](_0x313040),_0x2d0e60['registerAnnotation'](_0x313040);}['_destroyController'](_0x5be246){const _0x1b8e9a=this['editor']['plugins']['get']('CommentsRepository'),_0x4a5319=this['editor']['plugins']['get']('Annotations'),_0x3c638c=this['_suggestionToController']['get'](_0x5be246),_0xca3450=_0x3c638c['view'],_0x26517a=_0x4a5319['getByInnerView'](_0xca3450);_0x1b8e9a['_unbindEditors'](_0xca3450),_0x26517a&&_0x4a5319['remove'](_0x26517a),this['_suggestionToController']['delete'](_0x5be246),this['_viewToController']['delete'](_0xca3450),_0x3c638c['destroy']();}['_updateController'](_0x3b4924){if(!_0x3b4924['isInContent']||!this['_suggestionToController']['has'](_0x3b4924))return;const _0x393790=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12c352=this['_suggestionToController']['get'](_0x3b4924),_0x40d952=_0x3b4924['getAllAdjacentSuggestions']();_0x12c352['view']['descriptionParts']=_0x393790['descriptionFactory']['getDescriptions'](_0x40d952);}['destroy'](){for(const _0x35955e of this['_suggestionToController']['keys']())this['_destroyController'](_0x35955e);for(const _0x3841a7 of this['_annotationViews']['values']())_0x3841a7['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x7928f1){return'model'in _0x7928f1;}class Fe extends _0xda4d6f{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x17badb){this['editor']['plugins']['get'](d)['adapter']=_0x17badb;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x3a67f1){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x3a67f1);}['getSuggestions']({skipNotAttached:_0x39c502=!0x1,toJSON:_0x1ec23b=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x39c502,'toJSON':_0x1ec23b});}['getSuggestion'](_0x361274){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x361274);}}const p=['Pagination'];class re extends _0xda4d6f{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x50fb98=this['editor'];if(_0x50fb98['config']['define']('trackChangesData.editorCreator',_0x11c0d9=>{const _0x42d2f5=_0x50fb98['model']['document']['getRootNames']()['reduce']((_0x4c1910,_0x34c34d)=>(_0x4c1910[_0x34c34d]='',_0x4c1910),{});return _0x50fb98['constructor']['create'](_0x42d2f5,_0x11c0d9);}),'function'!=typeof _0x50fb98['config']['get']('trackChangesData')['editorCreator'])throw new _0x135e17('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5b6797){return P(this['editor'],!0x0,_0x5b6797);}['getDataWithDiscardedSuggestions'](_0x1d864b){return P(this['editor'],!0x1,_0x1d864b);}}class Ge extends _0xda4d6f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15f6d2){function _0x3f66b2(_0x8ee2b7){return _0x8ee2b7['map'](_0x162037=>String['fromCharCode'](_0x162037))['join']('');}super(_0x15f6d2),this['result']='end',_0x15f6d2[_0x3f66b2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f66b2([0x76,0x69,0x65,0x77])][_0x3f66b2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f66b2([0x61,0x75,0x74,0x6f]),_0x15f6d2[_0x3f66b2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3f66b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f66b2([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3f66b2([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3f66b2([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 He(_0xdf33e5){return void 0x0!==_0xdf33e5['getRootsAttributes'];}async function P(_0x219812,_0x20ff43,_0x353ac9){const _0x2e194f=_0x314406(_0x219812,p);_0x2e194f['plugins']['push'](d,Ge),_0x2e194f['rootsAttributes']=He(_0x219812)?_0x219812['getRootsAttributes']():void 0x0;const _0x32a119=document['createDocumentFragment'](),_0x5cc63f=_0x219812['config']['get']('trackChangesData')['editorCreator'],_0x394c11=await _0x5cc63f(_0x2e194f,()=>function(_0x48b0b3){const _0x12dcce=document['createElement']('div');return _0x48b0b3['appendChild'](_0x12dcce),_0x12dcce;}(_0x32a119));!function(_0x13dc98,_0x8feac6){const _0x2e8a2c=_0x13dc98['model']['document']['getRootNames']()['reduce']((_0x13b40b,_0x3456ec)=>(_0x13b40b[_0x3456ec]=_0x13dc98['data']['get']({'rootName':_0x3456ec}),_0x13b40b),{}),_0x45f233=_0x13dc98['plugins']['get']('Users')['users']['map'](_0x5a6b78=>({'id':_0x5a6b78['id'],'name':_0x5a6b78['name']})),_0x419af9=_0x13dc98['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x32c9db=_0x13dc98['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x25de69=_0x8feac6['plugins']['get']('Users'),_0x22817a=_0x8feac6['plugins']['get']('TrackChangesEditing'),_0x1ff02f=_0x8feac6['plugins']['get']('CommentsRepository');for(const _0x25da65 of _0x1ff02f['getCommentThreads']())_0x25da65['remove']();for(const _0x5893f4 of _0x45f233)_0x25de69['getUser'](_0x5893f4['id'])||_0x25de69['addUser'](_0x5893f4);_0x25de69['me']||_0x25de69['useAnonymousUser']();for(const _0x4db9ec of _0x32c9db)_0x1ff02f['addCommentThread'](_0x4db9ec);for(const _0x24bbea of _0x419af9)_0x22817a['addSuggestionData'](_0x24bbea);_0x8feac6['data']['set'](_0x2e8a2c);}(_0x219812,_0x394c11),_0x394c11['execute'](_0x20ff43?'acceptAllSuggestions':'discardAllSuggestions');const _0x2bbc67=He(_0x394c11)?_0x394c11['getFullData'](_0x353ac9):_0x394c11['data']['get'](_0x353ac9);return await _0x394c11['destroy'](),_0x2bbc67;}class Me extends _0x2864ff{['options'];constructor(_0x1e4025,_0x1f6c49){super(_0x1e4025),this['options']=_0x1f6c49,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','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'](_0x346928,_0x16a44c){if(!this['element'])return;const _0x45adf3=[];for(const [_0x42a53c,_0x45c7a4]of _0x346928){const _0xe9d70b=document['createElement']('div');_0xe9d70b['setAttribute']('data-ck-root-name',_0x42a53c),_0xe9d70b['className']=_0x45c7a4['classes']+'\x20ck-track-changes-preview__root-container',_0xe9d70b['innerHTML']=_0x45c7a4['content'],_0x45adf3['push'](_0xe9d70b);}_0x16a44c(this['element'],_0x45adf3),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x292d9d{constructor(_0x4abdb1){super(_0x4abdb1),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5e12e1=this['editor'],_0x448c65=_0x5e12e1['locale'],_0x1e218e=_0x5e12e1['plugins']['get']('Dialog');let _0x224373;const _0x59adbd=function(_0x32b122){const _0xfba6ac={};if('editables'in _0x32b122['ui']['view']){for(const [_0x2edf98,_0x527b3e]of Object['entries'](_0x32b122['ui']['view']['editables']))_0xfba6ac[_0x2edf98]=_0x527b3e['element'];}else _0xfba6ac[_0x32b122['model']['document']['getRootNames']()[0x0]]=_0x32b122['ui']['view']['editable']['element'];return _0xfba6ac;}(_0x5e12e1),_0x28b430=function(_0x5b7ef8){let _0x2c7fa1=0x0;for(const _0x213f71 of Object['values'](_0x5b7ef8))_0x2c7fa1=Math['max'](_0x2c7fa1,_0x213f71['getBoundingClientRect']()['width']);let _0x44e8a4=0x0;for(const _0x3b1eca of Object['values'](_0x5b7ef8))_0x44e8a4+=_0x3b1eca['getBoundingClientRect']()['height'];const _0x5d61c0=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x570ab7=Math['min'](_0x44e8a4,_0x5d61c0);return{'width':_0x2c7fa1,'height':_0x570ab7};}(_0x59adbd);_0x1e218e['show']({'id':'finalContentPreview','title':o(_0x448c65,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x448c65,{'dialogRects':_0x28b430}),'onHide':()=>{_0x224373['detachFromDom']();},'onShow':()=>{_0x5e12e1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x510d4d=>{const _0x3ab893=this['_standarizeRootsData'](_0x510d4d,_0x5e12e1,_0x59adbd);_0x1e218e['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3ab893,_0x5e12e1['config']['get']('trackChanges.preview.renderFunction'));}),_0x224373=new _0x318846(_0x448c65,[_0x1e218e['view']]),_0x224373['attachToDom'](),_0x224373['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5e12e1['once']('destroy',()=>{_0x224373['detachFromDom']();});const _0x30ab6b=_0x1e218e['view']['headerView']['class'];_0x1e218e['view']['headerView']['class']=_0x30ab6b?_0x30ab6b+'\x20ck-reset_all':'ck-reset_all',_0x1e218e['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1e218e['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1248cf=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3ac029=_0x1248cf['previewMode'],_0x1269ac={};if('$labels'===_0x3ac029){for(const _0x1295d2 of _0x1248cf['getMergeFieldsIds']())_0x1269ac[_0x1295d2]=_0x1248cf['getLabel'](_0x1295d2)||_0x1295d2;}else{const _0x40676e='$defaultValues'===_0x3ac029?_0x1248cf['getDefaultValues']():_0x1248cf['getDataSetValues'](_0x3ac029,!0x0);for(const _0x2823b4 of Object['entries'](_0x40676e)){const [_0x3e4511,_0x58d426]=_0x2823b4;_0x1269ac[_0x3e4511]=null!==_0x58d426?_0x58d426:_0x1248cf['getLabel'](_0x3e4511)||_0x3e4511;}}return{'mergeFieldsData':_0x1269ac};}['_standarizeRootsData'](_0x3456b9,_0x9414bd,_0x873bcc){let _0x13ceca;if('string'==typeof _0x3456b9){const _0xbbae67=_0x9414bd['model']['document']['getRootNames']()[0x0];_0x13ceca={[_0xbbae67]:_0x3456b9};}else _0x13ceca=_0x3456b9;const _0x564b4d=this['_fixMediaEmbeds'](_0x13ceca,_0x9414bd),_0x5ee715=function(_0x46e323,_0x23f155){for(const [_0x3a7d66,_0x1c4a9c]of _0x46e323)_0x1c4a9c['classes']=_0x23f155[_0x3a7d66]['classList']['value']['replace']('ck-focused','');return _0x46e323;}(this['_sortRoots'](_0x9414bd)['reduce']((_0x3c226d,_0x5c9dad)=>(_0x3c226d['push']([_0x5c9dad,{'content':_0x564b4d[_0x5c9dad],'classes':''}]),_0x3c226d),[]),_0x873bcc);return _0x5ee715;}['_fixMediaEmbeds'](_0x259774,_0x2fb44a){if(!_0x2fb44a['plugins']['has']('MediaEmbedEditing'))return _0x259774;const _0x381628=_0x2fb44a['plugins']['get']('MediaEmbedEditing');for(const [_0x2320e3,_0x33cdc2]of Object['entries'](_0x259774)){const _0x1aca86=document['createElement']('div');_0x1aca86['innerHTML']=_0x33cdc2,(_0x1aca86['querySelectorAll']('figure.media')['forEach'](_0x3bb509=>{const _0x3d114a=_0x3bb509['querySelector']('oembed');if(_0x3d114a){const _0x483981=_0x3d114a['getAttribute']('url');if(_0x483981){const _0x5b9442=_0x381628['registry']['getMediaViewElement'](new _0x37bcc6(_0x2fb44a['editing']['view']['document']),_0x483981,{'elementName':'','renderForEditingView':!0x0}),_0x276fe5=document['createElement']('div');_0x276fe5['classList']['add']('ck-media__wrapper'),_0x5b9442['render'](_0x276fe5,_0x2fb44a['editing']['view']['domConverter']),_0x3d114a['replaceWith'](_0x276fe5);}}}),_0x259774[_0x2320e3]=_0x1aca86['innerHTML']);}return _0x259774;}['_sortRoots'](_0x4f2c41){if(!function(_0x1640ad){return void 0x0!==_0x1640ad['getRootsAttributes'];}(_0x4f2c41))return _0x4f2c41['model']['document']['getRootNames']();const _0x56daca=[],_0x4041ac=new Map();for(const _0x997afe of _0x4f2c41['model']['document']['getRootNames']()){const _0x36bc01=_0x4f2c41['editing']['view']['getDomRoot'](_0x997afe)['getClientRects']()['item'](0x0);_0x56daca['push'](_0x997afe),_0x4041ac['set'](_0x997afe,_0x36bc01);}return _0x56daca['sort']((_0x5e114c,_0x1ea7c9)=>{const _0x51e3b4=_0x4041ac['get'](_0x5e114c),_0x2c2e3f=_0x4041ac['get'](_0x1ea7c9);return _0x51e3b4['y']-_0x2c2e3f['y']||_0x51e3b4['x']-_0x2c2e3f['x'];}),_0x56daca;}}class $e extends _0xda4d6f{static get['requires'](){return[re,_0xc1d6e1];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x49449a){super(_0x49449a),_0x49449a['commands']['add']('previewFinalContent',new te(this['editor'])),_0x49449a['config']['define']('trackChanges.preview.renderFunction',(_0x8dbc4c,_0x4bf053)=>{for(const _0xabc80 of _0x4bf053)_0x8dbc4c['appendChild'](_0xabc80);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0xb6ff97,Plugin as _0xacca18,PendingActions as _0x38708}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x70ecee,ObservableMixin as _0x1b765d,uid as _0x2b2224,priorities as _0x28f51c,insertToPriorityArray as _0x8a69c,toArray as _0x459417,logWarning as _0x52604b,getEnvKeystrokeText as _0x113e26,FocusTracker as _0x2b9faa,KeystrokeHandler as _0x46ad4e,Collection as _0x1d8556}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x40e73a,IconCancel as _0x1285a6,IconTrackChanges as _0x557712}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x13bcd0,View as _0x42bed0,ViewCollection as _0x15e044,FocusCycler as _0x200d23,UIModel as _0x2fa11c,createDropdown as _0x5a40a9,SplitButtonView as _0x319de4,addListToDropdown as _0x3c1610,MenuBarMenuView as _0x34142b,MenuBarMenuListView as _0x274624,ListSeparatorView as _0x599798,MenuBarMenuListItemView as _0x3dc222,MenuBarMenuListItemButtonView as _0x5ebc12,BodyCollection as _0x34172c,Dialog as _0xd393fc}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4ef842,hashObject as _0xb25aab,surroundingMarkersDetector as _0x224546,FOCUS_ANNOTATION_KEYSTROKE as _0x440747,AriaDescriptionView as _0x574b70,setupThreadKeyboardNavigation as _0x107f72,trimHtml as _0x55a1f4,UserView as _0x3064af,LateFocusButtonView as _0x36ba2a,getDateTimeFormatter as _0x54d94c,getAllMarkersDomElementsSorted as _0x1e7001,sanitizeEditorConfig as _0xf44e6a}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x348039,ModelLiveRange as _0x171836,ModelLivePosition as _0x1d766f,ViewDowncastWriter as _0x36cee1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2786a8,toWidget as _0x4b0b4a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x166550,set as _0x4cef0d,isEqual as _0x10303f,unset as _0x355fcc,omit as Ut}from'es-toolkit/compat';import{Delete as _0x2a2242,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4b8c12}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x285224}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0xb6ff97{['_enabledCommands'];constructor(_0x25d899,_0x447579){super(_0x25d899),this['_enabledCommands']=_0x447579,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 _0x1ef361 of this['editor']['commands']['commands']())_0x1ef361['affectsData']&&!this['_enabledCommands']['has'](_0x1ef361)&&_0x1ef361['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x476ec5 of this['editor']['commands']['commands']())_0x476ec5['affectsData']&&!this['_enabledCommands']['has'](_0x476ec5)&&_0x476ec5['clearForceDisabled']('TrackChangesCommand');}}class D extends _0xb6ff97{['_suggestions'];constructor(_0x130c7d,_0x3e6daf){super(_0x130c7d),this['_suggestions']=_0x3e6daf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3f398b){const _0x47b19c=this['_suggestions']['get'](_0x3f398b);if(!_0x47b19c)throw new _0x70ecee('track-changes-accept-suggestion-not-found',this);const _0x5711c5=_0x47b19c['getRanges']();this['editor']['model']['canEditAt'](_0x5711c5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x47b19c);}}class $ extends _0xb6ff97{['_suggestions'];constructor(_0x5a8d33,_0x295086){super(_0x5a8d33),this['_suggestions']=_0x295086,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4b8426){const _0x1933d1=this['_suggestions']['get'](_0x4b8426);if(!_0x1933d1)throw new _0x70ecee('track-changes-discard-suggestion-not-found',this);const _0xf3d459=_0x1933d1['getRanges']();this['editor']['model']['canEditAt'](_0xf3d459)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1933d1);}}function ls(_0x328bac,_0x4f16a7){let _0x5676f6='';return _0x5676f6+=_0x328bac['split']('*')['map']((_0x237045,_0x45153a)=>_0x45153a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x237045)+'</span>':Zt(_0x237045))['join'](''),_0x4f16a7&&(_0x5676f6+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4f16a7['value']+'\x22\x20title=\x22'+_0x4f16a7['title']+'\x22></span>'),_0x5676f6;}function Zt(_0x906bd2){const _0x1050ea=document['createElement']('span');return _0x1050ea['innerText']=_0x906bd2,_0x1050ea['innerHTML'];}function ts(_0x2be375){return _0x2be375['sort']((_0x37a207,_0x43e1f0)=>'attribute'===_0x37a207['type']&&'attribute'!==_0x43e1f0['type']?-0x1:'attribute'!==_0x37a207['type']&&'attribute'===_0x43e1f0['type']?0x1:'deletion'==_0x37a207['type']&&'deletion'!=_0x43e1f0['type']?-0x1:'deletion'!=_0x37a207['type']&&'deletion'==_0x43e1f0['type']?0x1:0x0);}function to(_0x53aa77,_0x4f0b77){let _0x4cfdef,_0x171c5e=0x0;const _0x52fb2f=[],_0x4db06c=_0x4f0b77['schema'];for(;_0x171c5e<_0x53aa77['length'];){const _0x54294e=_0x53aa77[_0x171c5e],_0x4961cf=_0x53aa77[_0x171c5e+0x1];_0x4cfdef||(_0x4cfdef=_0x4f0b77['createPositionBefore'](_0x54294e)),tn(_0x4f0b77,_0x54294e,_0x4961cf)||(_0x52fb2f['push'](_0x4f0b77['createRange'](_0x4cfdef,_0x4db06c['isObject'](_0x54294e)?_0x4f0b77['createPositionAfter'](_0x54294e):_0x4f0b77['createPositionAt'](_0x54294e,'end'))),_0x4cfdef=null),_0x171c5e++;}return _0x52fb2f;}function tn(_0x53a308,_0x531d54,_0xbfa6ad){if(!_0xbfa6ad)return!0x1;const _0x5e3149=_0x53a308['createPositionAfter'](_0x531d54),_0x487e46=_0x53a308['createPositionBefore'](_0xbfa6ad);return _0x5e3149['isTouching'](_0x487e46);}function rs(_0x42fc47,_0x1c9c6a,_0x3534fd){for(;_0x3534fd['length'];){const _0x499cea=_0x3534fd['splice'](0x0,0x64);_0x42fc47['change'](()=>{for(const _0x112a1d of _0x499cea)_0x112a1d['isInContent']&&_0x1c9c6a['execute'](_0x112a1d['id']);});}}class M extends _0xb6ff97{['_command'];['_suggestions'];constructor(_0xa1d050,_0x242d78,_0x439825){super(_0xa1d050),this['_command']=_0x242d78,this['_suggestions']=_0x439825,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5956d0=Array['from'](this['_suggestions']['values']())['some'](_0xd6a902=>_0xd6a902['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5956d0;}['execute'](){const _0x3cce72=ts(Array['from'](this['_suggestions']['values']()));for(const _0x221822 of _0x3cce72){const _0x1d2f0d=_0x221822['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1d2f0d))return;}rs(this['editor']['model'],this['_command'],_0x3cce72);}}class B extends _0xb6ff97{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4a0451,_0x5a6809,_0x3ab925){super(_0x4a0451),this['_command']=_0x5a6809,this['_suggestions']=_0x3ab925,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3fc13b=this['editor']['model']['document']['selection'],_0x3c14a6=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5a6bee,_0x2b297c){const _0x3221d2=Array['from'](_0x5a6bee['getRanges']()),_0x2d4d34=new Set();for(const _0x110972 of _0x2b297c)if(_0x110972['isInContent']){for(const _0x46eac5 of _0x3221d2)for(const _0xb5a470 of _0x110972['getRanges']())(_0x46eac5['isIntersecting'](_0xb5a470)||_0x5a6bee['isCollapsed']&&!_0x110972['isMultiRange']&&_0x110972['next']&&_0xb5a470['end']['isTouching'](_0x46eac5['start']))&&_0x2d4d34['add'](_0x110972);}return _0x2d4d34;}(_0x3fc13b,_0x3c14a6),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3870fa=ts(Array['from'](this['_selectedSuggestions']));for(const _0x5fb828 of _0x3870fa){const _0x2875bf=_0x5fb828['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2875bf))return;}rs(this['editor']['model'],this['_command'],_0x3870fa);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1b765d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x33af23,_0x2e030a){super(),this['id']=_0x2e030a['id'],this['type']=_0x2e030a['type'],this['subType']=_0x2e030a['subType']||null,this['author']=_0x2e030a['author'],this['creator']=_0x2e030a['creator']||_0x2e030a['author'],this['isExternal']=Boolean(_0x2e030a['attributes']&&_0x2e030a['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2e030a['originalSuggestionId']||null,this['_model']=_0x33af23,this['_onAccept']=_0x2e030a['onAccept'],this['_onDiscard']=_0x2e030a['onDiscard'],this['_onAttributesChange']=_0x2e030a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2e030a['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 _0x9d5fd1=this;for(;_0x9d5fd1['previous'];)_0x9d5fd1=_0x9d5fd1['previous'];return _0x9d5fd1;}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'](_0xa4930f){this['_markerNames']['add'](_0xa4930f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x25c6e7=>this['_model']['markers']['get'](_0x25c6e7))['filter'](_0x4b0566=>_0x4b0566);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x400cee=>{for(const _0x48eda7 of this['getMarkers']())_0x400cee['removeMarker'](_0x48eda7);}),this['_markerNames']['clear']();}['removeMarker'](_0x19cd26){this['_model']['change'](_0x54bba3=>{_0x54bba3['removeMarker'](_0x19cd26);}),this['_markerNames']['delete'](_0x19cd26);}['addRange'](_0x340ed9){const _0x1af061='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x1af061),this['_model']['change'](_0x156ee9=>{_0x156ee9['addMarker'](_0x1af061,{'range':_0x340ed9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xb82f14){for(const _0x5ad509 of this['getRanges']())if(_0x5ad509['isIntersecting'](_0xb82f14))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5bf8db=>_0x5bf8db['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1a68c2,_0xb4b5aa)=>[..._0x1a68c2,..._0xb4b5aa['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x28e94d=this['getRanges']();if(0x1!=_0x28e94d['length'])return null;const _0x3a2e05=_0x28e94d[0x0],_0x35badb=_0x3a2e05['start']['nodeAfter'],_0xa9ba8a=_0x3a2e05['end']['nodeBefore'];return _0x35badb instanceof _0x348039?_0x35badb!=_0xa9ba8a?null:_0x35badb: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 _0x358793=[];let _0x56bcf7=this['head'];for(;_0x56bcf7;)_0x358793['push'](_0x56bcf7),_0x56bcf7=_0x56bcf7['next'];return _0x358793;}['setAttribute'](_0x3b6235,_0x122a0d){const _0x332614=_0x166550(this['attributes']);_0x4cef0d(_0x332614,_0x3b6235,_0x122a0d),_0x10303f(_0x332614,this['attributes'])||(this['attributes']=_0x332614,this['_onAttributesChange'](_0x332614));}['removeAttribute'](_0x4de9ab){const _0x532d3e=_0x166550(this['attributes']);_0x355fcc(_0x532d3e,_0x4de9ab),_0x10303f(_0x532d3e,this['attributes'])||(this['attributes']=_0x532d3e,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 _0x2b2224()['substr'](0x1,0x5);}}function o(_0x49804a,_0x38c7c3,_0xb870ee){const _0x282112=_0x49804a['t'],t=_0x49804a['t'];switch(_0x38c7c3){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\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',_0xb870ee);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xb870ee);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xb870ee);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xb870ee);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xb870ee);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',_0xb870ee);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xb870ee);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0xb870ee);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xb870ee);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xb870ee);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xb870ee);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xb870ee);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xb870ee);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xb870ee);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xb870ee);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xb870ee);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xb870ee);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xb870ee);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xb870ee);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xb870ee);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xb870ee);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xb870ee);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xb870ee);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xb870ee);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xb870ee);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'},_0xb870ee);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xb870ee);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xb870ee);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xb870ee);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xb870ee);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xb870ee);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xb870ee);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xb870ee);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'},_0xb870ee);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xb870ee);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xb870ee);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xb870ee);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xb870ee);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'},_0xb870ee);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xb870ee);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'},_0xb870ee);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0xb870ee);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xb870ee);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'},_0xb870ee);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xb870ee);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'},_0xb870ee);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xb870ee);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xb870ee);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'},_0xb870ee);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xb870ee);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 _0x282112({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xb870ee);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x282112({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xb870ee);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xb870ee);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'},_0xb870ee);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'},_0xb870ee);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'},_0xb870ee);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x38c7c3;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x223d37,_0xd7bbf0){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x223d37,this['_locale']=_0xd7bbf0;}['getDescriptions'](_0x3e1f46){const _0x2c63aa=[],_0x59e3ec=new Set(),_0x37fe61=new Set();for(let _0x467779=0x0;_0x467779<_0x3e1f46['length'];_0x467779++){const _0x795ca6=_0x3e1f46[_0x467779];if(!_0x795ca6['isInContent'])continue;const _0x28b4eb=this['_handleCustomCallbackDescription'](_0x795ca6);if(_0x28b4eb){if(null!=_0x795ca6['subType']){if(_0x59e3ec['has'](_0x795ca6['subType']))continue;_0x59e3ec['add'](_0x795ca6['subType']);}_0x2c63aa['push'](_0x28b4eb);}else{if('attribute'==_0x795ca6['type']){const _0x15c800=_0x795ca6['data']['key'];if(_0x37fe61['has'](_0x15c800))continue;_0x37fe61['add'](_0x795ca6['data']['key']),_0x15c800==m?this['_handleRenameSuggestionDescription'](_0x2c63aa,_0x795ca6):this['_handleAttributeSuggestionDescription'](_0x2c63aa,_0x795ca6);continue;}'insertion'!=_0x795ca6['type']&&'deletion'!=_0x795ca6['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2c63aa,_0x795ca6,_0x3e1f46[_0x467779+0x1]);}}return this['_resolveDescriptionItems'](_0x2c63aa);}['registerDescriptionCallback'](_0x5bcf95){this['_customCallbacks']['push'](_0x5bcf95);}['registerElementLabel'](_0x344eb4,_0x3ca0c0,_0x3b426f=_0x28f51c['normal']){'function'==typeof _0x344eb4?_0x8a69c(this['_itemLabelsCallbacks'],{'matchingCallback':_0x344eb4,'label':_0x3ca0c0,'priority':_0x3b426f}):this['_itemLabels']['set'](_0x344eb4,_0x3ca0c0);}['registerAttributeLabel'](_0x6d099c,_0x3cefab){this['_attributeLabels']['set'](_0x6d099c,_0x3cefab);}['getItemLabel'](_0x23374b,_0x1f4126=0x1){let _0x94c27f;for(const _0x40cef1 of this['_itemLabelsCallbacks'])if(_0x40cef1['matchingCallback'](_0x23374b)){_0x94c27f=_0x40cef1['label'];break;}return _0x94c27f||(_0x94c27f=this['_itemLabels']['get'](_0x23374b['name'])),_0x94c27f?_0x94c27f(_0x1f4126):0x1!==_0x1f4126?_0x1f4126+'\x20'+_0x23374b['name']+'s':''+_0x23374b['name'];}['_addDescriptionItems'](_0x4af86,_0x294474){const _0x1c3598=_0x294474['getFirstRange']()['getWalker'](),_0x4edd59='insertion'==_0x294474['type']?'add':'remove';for(const _0xb8a9ba of _0x1c3598){const _0x556c3c=_0xb8a9ba['item'],_0x5aa5b8=_0x4af86[_0x4af86['length']-0x1];if(_0x556c3c['is']('$textProxy'))_0x5aa5b8&&_0x5aa5b8['type']['indexOf']('Container')>-0x1&&_0x4af86['pop'](),_0x5aa5b8&&'text'==_0x5aa5b8['type']?_0x5aa5b8[_0x4edd59]+=_0x556c3c['data']:_0x4af86['push']({'type':'text','add':'add'==_0x4edd59?_0x556c3c['data']:'','remove':'remove'==_0x4edd59?_0x556c3c['data']:''});else{if(this['_schema']['isObject'](_0x556c3c)){const _0x4a0b43=_0x556c3c;if(_0x5aa5b8&&_0x5aa5b8['type']['indexOf']('Container')>-0x1&&_0x4af86['pop'](),'elementEnd'==_0xb8a9ba['type'])continue;_0x5aa5b8&&_0x5aa5b8['type']==_0x4edd59+'Object'&&_0x5aa5b8['element']['name']==_0x4a0b43['name']?_0x5aa5b8['quantity']++:_0x4af86['push']({'type':_0x4edd59+'Object','element':_0x4a0b43,'quantity':0x1}),_0x1c3598['skip'](_0x588391=>!('elementEnd'==_0x588391['type']&&_0x588391['item']==_0x556c3c));}else{if(this['_schema']['checkChild'](_0x556c3c,'$text')||_0x556c3c['is']('element','softBreak')){const _0x49f7b2=_0x556c3c;if('add'==_0x4edd59&&'elementStart'==_0xb8a9ba['type']||'remove'==_0x4edd59&&'elementEnd'==_0xb8a9ba['type'])continue;if(_0x5aa5b8&&-0x1==_0x5aa5b8['type']['indexOf']('Container')){'text'==_0x5aa5b8['type']&&(_0x5aa5b8[_0x4edd59]+='\x0a');continue;}let _0x103a5c;if(_0x103a5c='add'==_0x4edd59?_0x49f7b2['nextSibling']&&!this['_schema']['isObject'](_0x49f7b2['nextSibling'])?_0x49f7b2['nextSibling']:null:_0x49f7b2['previousSibling']&&!this['_schema']['isObject'](_0x49f7b2['previousSibling'])?_0x49f7b2['previousSibling']:null,_0x49f7b2['isEmpty']||_0x103a5c&&_0x103a5c['isEmpty']){const _0x5db00d=_0x103a5c&&_0x103a5c['isEmpty']?_0x103a5c:_0x49f7b2;_0x5aa5b8&&_0x5aa5b8['type']==_0x4edd59+'EmptyContainer'&&_0x5aa5b8['element']['name']==_0x5db00d['name']?_0x5aa5b8['quantity']++:_0x4af86['push']({'type':_0x4edd59+'EmptyContainer','element':_0x5db00d,'quantity':0x1});}else _0x4af86['push']({'type':_0x4edd59+'Container','element':_0x49f7b2});}}}}}['_resolveDescriptionItems'](_0x27262f){const _0x260a63=this['_locale'],_0x2814bc=[],_0x2b8f1f=[],_0xdbb71=[];for(const _0x3e588d of _0x27262f)switch(_0x3e588d['type']){case'text':if(_0x3e588d['add']=_0x3e588d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3e588d['remove']=_0x3e588d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3e588d['add']&&''!=_0x3e588d['remove']){_0x2814bc['push']({'type':'replace','content':o(_0x260a63,'REPLACE_TEXT',['\x22'+_0x3e588d['remove']+'\x22','\x22'+_0x3e588d['add']+'\x22'])});continue;}if(null!=_0x3e588d['add']['match'](/^ +$/)){_0x2814bc['push']({'type':'insertion','content':o(_0x260a63,'*Insert:*\x20%0',o(_0x260a63,'ELEMENT_SPACE',_0x3e588d['add']['length']))});continue;}if(null!=_0x3e588d['remove']['match'](/^ +$/)){_0x2814bc['push']({'type':'deletion','content':o(_0x260a63,'*Remove:*\x20%0',o(_0x260a63,'ELEMENT_SPACE',_0x3e588d['remove']['length']))});continue;}if(''!=_0x3e588d['add']){_0x2814bc['push']({'type':'insertion','content':o(_0x260a63,'*Insert:*\x20%0','\x22'+_0x3e588d['add']+'\x22')});continue;}_0x2814bc['push']({'type':'deletion','content':o(_0x260a63,'*Remove:*\x20%0','\x22'+_0x3e588d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2814bc['push']({'type':'insertion','content':o(_0x260a63,'*Insert:*\x20%0',this['getItemLabel'](_0x3e588d['element'],_0x3e588d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2814bc['push']({'type':'deletion','content':o(_0x260a63,'*Remove:*\x20%0',this['getItemLabel'](_0x3e588d['element'],_0x3e588d['quantity']))});continue;case'addContainer':_0x2814bc['push']({'type':'insertion','content':o(_0x260a63,'*Split:*\x20%0',this['getItemLabel'](_0x3e588d['element'],_0x3e588d['quantity']))});continue;case'removeContainer':_0x2814bc['push']({'type':'deletion','content':o(_0x260a63,'*Merge:*\x20%0',this['getItemLabel'](_0x3e588d['element'],_0x3e588d['quantity']))});continue;case'addFormat':_0x2b8f1f['push'](_0x3e588d['key']);continue;case'removeFormat':_0xdbb71['push'](_0x3e588d['key']);continue;default:_0x2814bc['push'](_0x3e588d);}if(_0x2b8f1f['length']){const _0x48f607=_0x2b8f1f['map'](_0x4ae561=>this['_attributeLabels']['has'](_0x4ae561)?this['_attributeLabels']['get'](_0x4ae561):_0x4ae561)['join'](',\x20');_0x2814bc['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x48f607)});}if(_0xdbb71['length']){const _0x3a74b7=_0xdbb71['map'](_0x553a32=>this['_attributeLabels']['has'](_0x553a32)?this['_attributeLabels']['get'](_0x553a32):_0x553a32)['join'](',\x20');_0x2814bc['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3a74b7)});}return _0x2814bc;}['_handleCustomCallbackDescription'](_0x3f48b7){for(const _0x462f73 of this['_customCallbacks']){const _0x1a4443=_0x462f73(_0x3f48b7);if(_0x1a4443&&'type'in _0x1a4443)return _0x1a4443;}}['_handleAttributeSuggestionDescription'](_0x9e2985,_0x10f219){const _0x23b829=_0x10f219['data'],_0x145bd3=void 0x0===_0x23b829['newValue']?'removeFormat':'addFormat';_0x9e2985['push']({'type':_0x145bd3,'key':_0x23b829['key']});}['_handleRenameSuggestionDescription'](_0x544098,_0x243ec6){_0x544098['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x243ec6['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3bf419,_0x3fd0ef,_0x537749){if(this['_addDescriptionItems'](_0x3bf419,_0x3fd0ef),_0x537749&&_0x537749['getFirstRange']()&&!_0x3fd0ef['getFirstRange']()['end']['isEqual'](_0x537749['getFirstRange']()['start'])){const _0x5f6ff3=_0x3bf419[_0x3bf419['length']-0x1],_0x3d99da='insertion'==_0x3fd0ef['type']?'add':'remove';_0x5f6ff3&&'text'==_0x5f6ff3['type']&&(_0x5f6ff3[_0x3d99da]+='\x0a');}}}class O extends _0xacca18{['afterInit'](){const _0x45f342=this['editor'],_0x46c74d=_0x45f342['plugins']['get']('TrackChangesEditing');_0x45f342['commands']['get']('showAIAssistant')&&_0x46c74d['enableCommand']('showAIAssistant');}}class E extends _0xacca18{['afterInit'](){const _0x193f53=this['editor'],_0x45b159=_0x193f53['locale'];if(!_0x193f53['plugins']['has']('AlignmentEditing'))return;const _0x3933c3=_0x193f53['plugins']['get']('TrackChangesEditing');_0x3933c3['enableDefaultAttributesIntegration']('alignment'),_0x3933c3['registerBlockAttribute']('alignment'),_0x3933c3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x45b159,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45363c=this['editor'],_0x3aaa1b=_0x45363c['locale'];_0x45363c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e3c7d=>{if('formatBlock'!=_0x3e3c7d['type'])return;const {data:_0x244b23}=_0x3e3c7d;if(_0x244b23&&'alignment'==_0x244b23['commandName']){const _0x48666c=_0x244b23['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3aaa1b,'*Format:*\x20%0',function(_0x5e7bf3){switch(_0x5e7bf3){case'left':return o(_0x3aaa1b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3aaa1b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3aaa1b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3aaa1b,'FORMAT_JUSTIFY_TEXT');}}(_0x48666c))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xacca18{['afterInit'](){const _0x117331=this['editor'],_0x5a09c6=_0x117331['plugins']['get']('TrackChangesEditing'),_0x39f970=_0x117331['locale'];for(const _0x24f9e3 of ti){if(!_0x117331['plugins']['has'](_0x24f9e3))continue;const _0x2c0d52=_0x24f9e3['slice'](0x0,-0x7)['toLowerCase'](),_0x2d3658='FORMAT_'+_0x2c0d52['toUpperCase']();_0x5a09c6['enableDefaultAttributesIntegration'](_0x2c0d52),_0x5a09c6['registerInlineAttribute'](_0x2c0d52),_0x5a09c6['descriptionFactory']['registerAttributeLabel'](_0x2c0d52,o(_0x39f970,_0x2d3658));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27918d=this['editor'],_0x251b49=_0x27918d['locale'],_0x3b62e6=_0x27918d['plugins']['get']('TrackChangesEditing');function _0x44d6fa(_0x10931f,_0x48436a){_0x3b62e6['descriptionFactory']['registerDescriptionCallback'](_0x4ced30=>{if('formatInline'!=_0x4ced30['type'])return;const {data:_0xac19b0}=_0x4ced30;return _0xac19b0&&_0xac19b0['commandName']===_0x10931f?_0xac19b0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x251b49,'*Format:*\x20%0',_0x48436a)}:{'type':'format','content':o(_0x251b49,'*Remove\x20format:*\x20%0',_0x48436a)}:void 0x0;});}_0x44d6fa('bold',o(_0x251b49,'FORMAT_BOLD')),_0x44d6fa('italic',o(_0x251b49,'FORMAT_ITALIC')),_0x44d6fa('underline',o(_0x251b49,'FORMAT_UNDERLINE')),_0x44d6fa('code',o(_0x251b49,'FORMAT_CODE')),_0x44d6fa('strikethrough',o(_0x251b49,'FORMAT_STRIKETHROUGH')),_0x44d6fa('subscript',o(_0x251b49,'FORMAT_SUBSCRIPT')),_0x44d6fa('superscript',o(_0x251b49,'FORMAT_SUPERSCRIPT'));}}class U extends _0xacca18{['afterInit'](){const _0x1f100c=this['editor'],_0x406b24=_0x1f100c['locale'];if(!_0x1f100c['plugins']['has']('BlockQuoteEditing'))return;const _0x38bfe8=_0x1f100c['plugins']['get']('TrackChangesEditing'),_0x419a84=this['editor']['commands']['get']('blockQuote');_0x38bfe8['enableCommand']('blockQuote',(_0x1e3684,_0x171688={})=>{const _0x41f907=this['editor']['model']['document']['selection'],_0x2364e9=_0x171688&&void 0x0!==_0x171688['forceValue']?_0x171688['forceValue']:!_0x419a84['value'];let _0x395815=[];if(_0x2364e9){const _0x546ff4=Array['from'](_0x41f907['getSelectedBlocks']())['filter'](_0x5e1459=>oo(_0x5e1459)||function(_0x5aef2a,_0x4cc794){const _0x9b42f9=_0x4cc794['checkChild'](_0x5aef2a['parent'],'blockQuote'),_0x4f9c72=_0x4cc794['checkChild'](['$root','blockQuote'],_0x5aef2a);return _0x9b42f9&&_0x4f9c72;}(_0x5e1459,this['editor']['model']['schema']));_0x395815=to(_0x546ff4,_0x1f100c['model']);}else{const _0xf65be=Array['from'](_0x41f907['getSelectedBlocks']())['filter'](_0x7e7b13=>oo(_0x7e7b13));_0x395815=to(_0xf65be,_0x1f100c['model']);}_0x1f100c['model']['change'](()=>{for(const _0x4a5816 of _0x395815)_0x38bfe8['markBlockFormat'](_0x4a5816,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2364e9}]});});}),_0x38bfe8['descriptionFactory']['registerDescriptionCallback'](_0x5c54f7=>{const {data:_0xba9ddc}=_0x5c54f7;if(_0xba9ddc&&'blockQuote'==_0xba9ddc['commandName']){const _0x1dad15=o(_0x406b24,'ELEMENT_BLOCK_QUOTE');return _0xba9ddc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x406b24,'*Set\x20format:*\x20%0',_0x1dad15)}:{'type':'format','content':o(_0x406b24,'*Remove\x20format:*\x20%0',_0x1dad15)};}});}}function oo(_0x17704b){return'blockQuote'==_0x17704b['parent']['name'];}class V extends _0xacca18{['afterInit'](){const _0x46f809=this['editor'],_0x19ceb5=_0x46f809['locale'],_0x1cb966=_0x46f809['plugins']['get']('TrackChangesEditing');_0x46f809['plugins']['has']('BookmarkEditing')&&(_0x1cb966['enableCommand']('insertBookmark'),_0x1cb966['enableDefaultAttributesIntegration']('updateBookmark'),_0x1cb966['registerBlockAttribute']('bookmarkId'),_0x1cb966['descriptionFactory']['registerDescriptionCallback'](_0x2103e3=>{if('insertion'!=_0x2103e3['type']&&'deletion'!=_0x2103e3['type']&&'attribute'!=_0x2103e3['type'])return;const _0x11fb8a=_0x2103e3['getContainedElement']();if(null==_0x11fb8a)return;if(!_0x11fb8a['is']('element','bookmark'))return;const _0x5c6e8f=_0x11fb8a['getAttribute']('bookmarkId');if('insertion'==_0x2103e3['type'])return{'type':'insertion','content':o(_0x19ceb5,'*Insert:*\x20%0','\x22'+_0x5c6e8f+'\x22\x20'+o(_0x19ceb5,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2103e3['type'])return{'type':'deletion','content':o(_0x19ceb5,'*Remove:*\x20%0','\x22'+_0x5c6e8f+'\x22\x20'+o(_0x19ceb5,'ELEMENT_BOOKMARK'))};const {data:_0x2c2c95}=_0x2103e3;if(!_0x2c2c95||'bookmarkId'!=_0x2c2c95['key'])return;return{'type':'format','content':o(_0x19ceb5,'*Set\x20bookmark:*\x20%0','\x22'+_0x2c2c95['newValue']+'\x22')};}));}}class F extends _0xacca18{['afterInit'](){const _0x359642=this['editor'];_0x359642['plugins']['has']('CaseChange')&&(_0x359642['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x359642['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x359642['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xacca18{['afterInit'](){const _0x310cc6=this['editor'];_0x310cc6['commands']['get']('ckbox')&&_0x310cc6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xacca18{['afterInit'](){const _0x5c5266=this['editor'];if(!_0x5c5266['plugins']['has']('CodeBlock'))return;const _0x522b58=_0x5c5266['plugins']['get']('TrackChangesEditing'),_0x19fc43=_0x5c5266['locale'],_0x39d190=_0x5c5266['config']['get']('codeBlock')['languages'],_0x9162e1=_0x5c5266['commands']['get']('codeBlock');_0x522b58['enableCommand']('indentCodeBlock'),_0x522b58['enableCommand']('outdentCodeBlock'),_0x522b58['enableCommand']('codeBlock',(_0x5a60b2,_0x5f0f4e={})=>{const _0x4690fa=_0x5c5266['model'],_0x352436=_0x5c5266['model']['document']['selection'],_0x2a271b=_0x5f0f4e&&void 0x0!==_0x5f0f4e['forceValue']?_0x5f0f4e['forceValue']:!_0x9162e1['value'];let _0x285577;_0x5f0f4e['language']||(_0x5f0f4e['language']=_0x39d190[0x0]['language']),_0x285577=_0x2a271b?Array['from'](_0x352436['getSelectedBlocks']())['filter'](_0x247bb0=>co(_0x247bb0)||function(_0x4ca7d3,_0x500a7f){if(_0x4ca7d3['is']('rootElement')||_0x500a7f['isLimit'](_0x4ca7d3))return!0x1;return _0x500a7f['checkChild'](_0x4ca7d3['parent'],'codeBlock');}(_0x247bb0,_0x4690fa['schema'])):Array['from'](_0x352436['getSelectedBlocks']())['filter'](_0x42e70f=>co(_0x42e70f));const _0x2e9c22=to(_0x285577,_0x4690fa);_0x4690fa['change'](()=>{for(const _0x5cdb75 of _0x2e9c22)_0x522b58['markBlockFormat'](_0x5cdb75,{'commandName':'codeBlock','commandParams':[{..._0x5f0f4e,'forceValue':_0x2a271b}],'formatGroupId':'blockName'});});}),(_0x522b58['descriptionFactory']['registerElementLabel']('codeBlock',_0x2f08a4=>o(_0x19fc43,'ELEMENT_CODE_BLOCK',_0x2f08a4)),_0x522b58['descriptionFactory']['registerDescriptionCallback'](_0x4b0c58=>{if('formatBlock'!=_0x4b0c58['type'])return;const _0x152021=_0x19fc43['t'],{data:_0x170f61}=_0x4b0c58;if(!_0x170f61||'codeBlock'!=_0x170f61['commandName'])return;const _0x47466c=_0x170f61['commandParams'][0x0]['language'],_0xdc93d9=_0x152021(_0x39d190['find'](_0x16dc62=>_0x16dc62['language']===_0x47466c)['label'])['toLowerCase']();return _0x170f61['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x19fc43,'*Set\x20format:*\x20%0',o(_0x19fc43,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xdc93d9+')')}:{'type':'format','content':o(_0x19fc43,'*Remove\x20format:*\x20%0',o(_0x19fc43,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x876efb){return'codeBlock'==_0x876efb['name'];}class J extends _0xacca18{['afterInit'](){const _0x520242=this['editor'];if(!_0x520242['plugins']['has']('CommentsEditing'))return;_0x520242['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5d4f6f,_0x2a0476,_0x238703){const _0x5d622f=[];for(const _0x341787 of _0x2a0476['getItems']())_0x341787['hasAttribute'](_0x5d4f6f)&&_0x5d622f['push'](_0x238703['createRangeOn'](_0x341787));return _0x5d622f;}function De(_0x3f2f2a,_0x1f399f,{showActiveMarker:_0x4c3758=!0x0}={}){const _0x1875ac=_0x3f2f2a['plugins']['get']('TrackChangesEditing');return(_0x535153,_0xce5dde,_0x84640e)=>{if(!_0x84640e['consumable']['test'](_0xce5dde['markerRange'],_0x535153['name']))return;const _0x405672=_0xce5dde['markerRange']['getWalker'](),_0x32d664=_0xce5dde['markerRange']['start'],_0x2fe651=_0x3f2f2a['model']['schema'];let _0x119e05=null,_0x3a0160=null,_0xba6f95=!0x1,_0xbef9e5=!0x1;for(const _0x37566d of _0x405672){const _0x18fc28=_0x37566d['item'];_0xba6f95=_0xba6f95||_0x2fe651['isContent'](_0x18fc28);const _0x319242=_0x84640e['mapper']['toViewElement'](_0x18fc28);if(_0x319242&&_0x319242['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x37566d['type']&&(_0x2fe651['isBlock'](_0x18fc28)&&!_0x2fe651['isLimit'](_0x18fc28)&&(_0x18fc28['nextSibling']||_0x32d664['isAtEnd']?_0x119e05&&_0x119e05['parent']==_0x18fc28||(_0x119e05=_0x18fc28,_0x18e97a(_0x37566d['previousPosition']),_0xbef9e5=!0x0):_0x3a0160=_0x3a0160||_0x37566d['previousPosition']));}function _0x18e97a(_0x20890b){const {id:_0x3585dd,authorId:_0xe651c7}=_0x1875ac['_splitMarkerName'](_0xce5dde['markerName']),_0x18df9a=_0x84640e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1f399f,'data-suggestion':_0x3585dd,'data-author-id':_0xe651c7}),_0x5d8e4a=_0x84640e['mapper']['toViewPosition'](_0x20890b);_0x4c3758&&_0x1875ac['activeMarkers']['includes'](_0xce5dde['markerName'])&&_0x84640e['writer']['addClass']('ck-suggestion-marker--active',_0x18df9a),_0x84640e['writer']['insert'](_0x5d8e4a,_0x18df9a),_0x84640e['mapper']['bindElementToMarker'](_0x18df9a,_0xce5dde['markerName']);}_0xba6f95||_0xbef9e5||!_0x3a0160||_0x18e97a(_0x3a0160);};}class K extends _0xacca18{static get['requires'](){return[_0x2a2242];}['init'](){const _0x5a9300=this['editor'],_0x244c3c=_0x5a9300['plugins']['get']('TrackChangesEditing');_0x244c3c['enableCommand']('delete');const _0x2d04e3=_0x5a9300['commands']['get']('deleteForward');_0x244c3c['enableCommand']('deleteForward',(_0x18cef1,_0x2facfe={})=>{const _0x16388b=_0x5a9300['model']['createSelection'](_0x5a9300['model']['document']['selection']);_0x16388b['isCollapsed']&&_0x5a9300['model']['modifySelection'](_0x16388b,{'direction':'forward','unit':_0x2facfe['unit']});const _0x232975=_0x16388b['getFirstRange'](),_0x2c7f03=_0x171836['fromRange'](_0x232975);let _0x41053c;_0x18cef1(_0x2facfe),_0x41053c='$graveyard'==_0x2c7f03['root']['rootName']?_0x5a9300['model']['createRange'](_0x232975['start']):_0x5a9300['model']['createRange'](_0x2c7f03['start'],_0x2c7f03['end']),_0x2c7f03['detach'](),_0x5a9300['model']['enqueueChange'](_0x2d04e3['buffer']['batch'],_0x292a1f=>{_0x2d04e3['buffer']['lock'](),_0x292a1f['setSelection'](_0x292a1f['createRange'](_0x41053c['end'])),_0x2d04e3['buffer']['unlock']();});}),_0x5a9300['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x5a9300,'merge'),{'priority':'high'}),_0x5a9300['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4a7fd4,_0x323e3c,_0x1d563d)=>{_0x1d563d['options']['showSuggestionHighlights']&&De(_0x5a9300,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4a7fd4,_0x323e3c,_0x1d563d);},{'priority':'high'}),_0x5a9300['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4fece0,_0x56d19e,_0x48648e)=>{const _0xbe6823=_0x48648e['mapper']['markerNameToElements'](_0x56d19e['markerName']);if(_0xbe6823){for(const _0x213a57 of _0xbe6823)_0x213a57['is']('uiElement')&&(_0x48648e['mapper']['unbindElementFromMarkerName'](_0x213a57,_0x56d19e['markerName']),_0x48648e['writer']['remove'](_0x213a57));}},{'priority':'high'});}}class H extends _0xacca18{['afterInit'](){const _0x27d444=this['editor'];if(!_0x27d444['plugins']['has']('ListEditing'))return;const _0x2e34c0=_0x27d444['locale'],_0x3f064c=_0x27d444['plugins']['get']('TrackChangesEditing'),_0x47e5ca=_0x27d444['plugins']['has']('TodoListEditing'),_0x1829b2=!!_0x27d444['config']['get']('list.multiBlock');function _0x54c713(_0x28feb7){return{'type':'format','content':''+o(_0x2e34c0,'*Set\x20format:*\x20%0',_0x28feb7)};}function _0x35c659(_0x252f74){return{'type':'format','content':''+o(_0x2e34c0,'*Remove\x20format:*\x20%0',_0x252f74)};}_0x3f064c['enableDefaultAttributesIntegration']('numberedList'),_0x3f064c['enableDefaultAttributesIntegration']('bulletedList'),_0x3f064c['enableDefaultAttributesIntegration']('customNumberedList'),_0x3f064c['enableDefaultAttributesIntegration']('customBulletedList'),_0x3f064c['enableDefaultAttributesIntegration']('indentList'),_0x3f064c['enableDefaultAttributesIntegration']('outdentList'),_0x3f064c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3f064c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3f064c['registerBlockAttribute']('listItemId'),_0x3f064c['registerBlockAttribute']('listType'),_0x3f064c['registerBlockAttribute']('listIndent'),_0x1829b2&&(_0x3f064c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3f064c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x47e5ca&&(_0x3f064c['enableDefaultAttributesIntegration']('todoList'),_0x3f064c['enableDefaultAttributesIntegration']('checkTodoList'),_0x3f064c['registerBlockAttribute']('todoListChecked'),_0x3f064c['descriptionFactory']['registerDescriptionCallback'](_0x343624=>{const {data:_0x10a893}=_0x343624;if(_0x10a893&&'todoListChecked'==_0x10a893['key'])return{'type':'format','content':_0x10a893['newValue']?o(_0x2e34c0,'*Check\x20item*'):o(_0x2e34c0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4bcd76=>{if(_0x4bcd76['batch']['isUndo'])return!0x1;let _0x381e06=!0x1;const _0x186cb2=_0x3f064c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f7828=>'todoListChecked'===_0x3f064c['_getAttributeKey'](_0x2f7828));for(const _0x11197b of _0x186cb2){'todo'!=_0x11197b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3f064c['_findSuggestions'](_0x11197b['getFirstRange'](),'attribute')['find'](_0x11f62e=>'listType'===_0x3f064c['_getAttributeKey'](_0x11f62e['suggestion']))||(_0x4bcd76['removeMarker'](_0x11197b['getFirstMarker']()),_0x381e06=!0x0));}return _0x381e06;})),_0x3f064c['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2e34c0,'FORMAT_INDENT'));const _0x40bca2={'type':'format','content':''};_0x3f064c['descriptionFactory']['registerDescriptionCallback'](_0x4ea2a2=>{const {data:_0x33d87a}=_0x4ea2a2;if(!_0x33d87a||'listType'!=_0x33d87a['key'])return;let _0x16b8cc=_0x4ea2a2['head'];for(;_0x16b8cc;){if(_0x16b8cc['data']&&(('listStyle'==_0x16b8cc['data']['key']||'listMarkerStyle'==_0x16b8cc['data']['key'])&&(_0x16b8cc['data']['newValue']&&'default'!=_0x16b8cc['data']['newValue']||'default'!=_0x16b8cc['data']['oldValue']&&!_0x33d87a['newValue'])||!_0x1829b2&&_0x16b8cc['data']['key']==m))return _0x40bca2;_0x16b8cc=_0x16b8cc['next'];}if(null==_0x33d87a['newValue'])switch(_0x33d87a['oldValue']){case'bulleted':return _0x35c659(o(_0x2e34c0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x35c659(o(_0x2e34c0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x35c659(o(_0x2e34c0,'ELEMENT_TODO_LIST'));}switch(_0x33d87a['newValue']){case'bulleted':return _0x54c713(o(_0x2e34c0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x54c713(o(_0x2e34c0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x54c713(o(_0x2e34c0,'ELEMENT_TODO_LIST'));}}),_0x3f064c['descriptionFactory']['registerDescriptionCallback'](_0x30d4ea=>{const {data:_0x44f571}=_0x30d4ea;if(_0x44f571&&'listIndent'==_0x44f571['key'])return null==_0x44f571['newValue']||null==_0x44f571['oldValue']&&0x0==_0x44f571['newValue']?_0x40bca2:void 0x0;}),_0x3f064c['descriptionFactory']['registerDescriptionCallback'](_0x275556=>{if('attribute'!=_0x275556['type'])return;const {data:_0x19ca73}=_0x275556;if(!_0x19ca73||'listItemId'!=_0x19ca73['key'])return;const _0x39d0de=Te(_0x275556);return'newValue'==_0x39d0de?{'type':'format','content':o(_0x2e34c0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x39d0de?{'type':'format','content':o(_0x2e34c0,'*Split:*\x20list\x20item')}:_0x40bca2;}),_0x27d444['model']['document']['registerPostFixer'](_0x1896c0=>this['listItemIdFixer'](_0x1896c0)),_0x27d444['model']['document']['registerPostFixer'](_0x47996a=>this['noTrackChangesFixer'](_0x47996a)),_0x27d444['model']['document']['on']('change:data',(_0x4c71d8,_0x591f5e)=>{if(_0x591f5e['isUndo']||!_0x591f5e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xa4d458){if(_0xa4d458['batch']['isUndo']||!_0xa4d458['batch']['isLocal'])return!0x1;let _0x2452fa=!0x1;const _0x2a0da0=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52368b=>_0x52368b['data']&&'listItemId'==_0x52368b['data']['key'])['filter'](_0x2d4705=>_0x2d4705['data']['newValue']&&_0x2d4705['data']['oldValue']);for(const _0x39d3fc of _0x2a0da0)Te(_0x39d3fc)||(_0xa4d458['removeMarker'](_0x39d3fc['getFirstMarker']()),_0x2452fa=!0x0);return _0x2452fa;}['noTrackChangesFixer'](_0x372712){if(_0x372712['batch']['isUndo']||!_0x372712['batch']['isLocal'])return!0x1;const _0x563bdf=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x563bdf['trackChangesCommand']['value'])return!0x1;let _0x1915cf=!0x1;const _0x442d86=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4738ca=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5936c9=>'attribute'==_0x5936c9['type'])['filter'](_0x560da2=>_0x442d86['includes'](_0x560da2['attributeKey']));if(0x0==_0x4738ca['length'])return _0x1915cf;for(const _0x391bcf of _0x4738ca){const _0xb7497f=_0x563bdf['_findSuggestions'](_0x391bcf['range'],'attribute')['filter'](_0x1cedca=>!_0x1cedca['meta']['isNextTo'])['map'](_0x3d820a=>_0x3d820a['suggestion'])['filter'](_0x45fefe=>{const _0x5e14bd=_0x563bdf['_getAttributeKey'](_0x45fefe);return _0x442d86['includes'](_0x5e14bd);});if(_0xb7497f['length']){for(const _0x1d469d of _0xb7497f)_0x372712['removeMarker'](_0x1d469d['getFirstMarker']());_0x1915cf=!0x0;}}return _0x1915cf;}['assureChains'](){const _0x30e2ff=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd9150b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x425a0a;const _0x3556d1=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1ac17c=>{if(_0x1ac17c['data']['oldRange']||!_0x1ac17c['data']['newRange'])return null;if(!_0x1ac17c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3c3c60}=_0x30e2ff['_splitMarkerName'](_0x1ac17c['name']);if(!_0x30e2ff['hasSuggestion'](_0x3c3c60))return null;const _0x386daf=_0x30e2ff['getSuggestion'](_0x3c3c60);return _0xd9150b['includes'](_0x386daf['data']['key']);})['map'](_0x5d870f=>{const {id:_0x6db5ec}=_0x30e2ff['_splitMarkerName'](_0x5d870f['name']),_0x4e3f77=_0x30e2ff['getSuggestion'](_0x6db5ec);return _0x425a0a=_0x4e3f77['attributes']['groupId'],_0x4e3f77['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3556d1['size'])return;const _0x2593d6=_0x30e2ff['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x131368=>'attribute'==_0x131368['type']&&_0x131368['data']&&_0xd9150b['includes'](_0x131368['data']['key'])&&_0x131368['attributes']['groupId']!=_0x425a0a)['map'](_0x4eb53f=>({'listItem':_0x4eb53f['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4eb53f['attributes']['groupId']})),_0x1150e5=new Set();for(const {groupId:_0x72c881,listItem:_0x7fb255}of _0x2593d6)_0x3556d1['has'](_0x7fb255)&&_0x1150e5['add'](_0x72c881);for(const _0x56e1af of _0x30e2ff['getSuggestions']())_0x1150e5['has'](_0x56e1af['attributes']['groupId'])&&_0x56e1af['setAttribute']('groupId',_0x425a0a);}['_supportLegacySuggestions'](){const _0x30bb44=this['editor'],_0x1e142f=_0x30bb44['locale'],_0x38468c=_0x30bb44['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x38468c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4735f7,_0x21f15f){const _0x17d9a3=[];for(let _0x43dbfa of _0x4735f7)_0x43dbfa['start']['nodeAfter']===_0x43dbfa['end']['parent']&&(_0x43dbfa=_0x30bb44['model']['createRange'](_0x30bb44['model']['createPositionAt'](_0x43dbfa['start']['nodeAfter'],0x0))),_0x17d9a3['push'](_0x43dbfa);_0x30bb44['model']['change'](_0x8365f3=>{const _0x124f80=_0x30bb44['model']['document']['selection'],_0x262b0f=Array['from'](_0x124f80['getRanges']())['map'](_0x45cc9f=>_0x171836['fromRange'](_0x45cc9f));_0x8365f3['setSelection'](_0x17d9a3),_0x30bb44['commands']['get'](_0x21f15f['commandName'])['refresh'](),_0x21f15f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x30bb44['execute'](_0x21f15f['commandName'],..._0x21f15f['commandParams']),_0x8365f3['setSelection'](_0x262b0f);for(const _0x168b1b of _0x262b0f)_0x168b1b['detach']();});}),_0x38468c['descriptionFactory']['registerElementLabel'](function(_0x26b23e){const _0x361649=!_0x30bb44['model']['schema']['isObject'](_0x26b23e),_0x2141aa=_0x26b23e['previousSibling'],_0x2d77a8=_0x26b23e['nextSibling'],_0xeea4ba=_0x26b23e['getAttribute']('listItemId'),_0x2e7702=!_0x2141aa||_0x2141aa['getAttribute']('listItemId')!==_0xeea4ba,_0x3d8a45=!_0x2d77a8||_0x2d77a8['getAttribute']('listItemId')!==_0xeea4ba;return _0x361649&&Boolean(_0xeea4ba)&&_0x2e7702&&_0x3d8a45;},_0x21b873=>o(_0x1e142f,'ELEMENT_LIST_ITEM',_0x21b873));}['_registerLegacyDescription'](){const _0x55bacc=this['editor'],_0x493303=_0x55bacc['locale'];function _0x51b5ab(_0x49341d){const _0x1257e5=_0x55bacc['commands']['get']('bulletedList')['value'],_0x278936=_0x55bacc['commands']['get']('numberedList')['value'];return'numberedList'===_0x49341d?_0x1257e5:_0x278936;}_0x55bacc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5251d1){if('formatBlock'!=_0x5251d1['type'])return;const {data:_0x9d91dc}=_0x5251d1;if(!_0x9d91dc)return;let _0x55fd71,_0x3bb88e,_0x3f2f37,_0x2ab9b0;switch(_0x9d91dc['commandName']){case'bulletedList':_0x3f2f37=_0x9d91dc['commandParams'][0x0]['forceValue'],_0x2ab9b0=_0x51b5ab(_0x9d91dc['commandName']),_0x55fd71=_0x3f2f37?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ab9b0&&_0x55bacc['config']['get']('list.multiBlock')||(_0x55fd71='*Change\x20to:*\x20%0'),_0x3bb88e={'type':'format','content':o(_0x493303,_0x55fd71,o(_0x493303,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3f2f37=_0x9d91dc['commandParams'][0x0]['forceValue'],_0x2ab9b0=_0x51b5ab(_0x9d91dc['commandName']),_0x55fd71=_0x3f2f37?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ab9b0&&_0x55bacc['config']['get']('list.multiBlock')||(_0x55fd71='*Change\x20to:*\x20%0'),_0x3bb88e={'type':'format','content':o(_0x493303,_0x55fd71,o(_0x493303,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x55fd71='*Indent:*\x20%0',_0x3bb88e={'type':'format','content':o(_0x493303,_0x55fd71,o(_0x493303,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x55fd71=function(_0x2632f8){const _0x4a4c6c=_0x2632f8['getFirstRange']();let _0x359d8d=_0x4a4c6c['start']['nodeAfter'];for(;_0x359d8d&&_0x4a4c6c['containsItem'](_0x359d8d);){if(_0x359d8d['getAttribute']('listIndent')>0x0)return!0x1;_0x359d8d=_0x359d8d['nextSibling'];}return!0x0;}(_0x5251d1)?o(_0x493303,'*Format:*\x20remove\x20from\x20%0',o(_0x493303,function(_0x3f10ff){return'ELEMENT_'+_0x3f10ff['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5251d1))):o(_0x493303,'*Outdent:*\x20%0',o(_0x493303,'ELEMENT_LIST_ITEM')),_0x3bb88e={'type':'format','content':_0x55fd71};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x9d91dc['multipleBlocks']&&(_0x55fd71='*Merge:*\x20%0',_0x3bb88e={'type':'deletion','content':o(_0x493303,_0x55fd71,o(_0x493303,'ELEMENT_LIST_ITEM'))});}return _0x3bb88e;});}}function Te(_0x3a8847){let _0x81fd84=_0x3a8847['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x81fd84;){const _0x5eb0c3=_0x81fd84['getAttribute']('listItemId');if(!_0x5eb0c3)return!0x1;if(_0x5eb0c3==_0x3a8847['data']['newValue'])return'newValue';if(_0x5eb0c3==_0x3a8847['data']['oldValue'])return'oldValue';_0x81fd84=_0x81fd84['previousSibling'];}return!0x1;}class q extends _0xacca18{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x30a95f=this['editor']['config']['get']('list.properties'),_0x435dcf=this['editor']['plugins']['get']('TrackChangesEditing');_0x30a95f['styles']&&(_0x435dcf['enableDefaultAttributesIntegration']('listStyle'),_0x435dcf['registerBlockAttribute']('listStyle')),_0x30a95f['reversed']&&(_0x435dcf['enableDefaultAttributesIntegration']('listReversed'),_0x435dcf['registerBlockAttribute']('listReversed')),_0x30a95f['startIndex']&&(_0x435dcf['enableDefaultAttributesIntegration']('listStart'),_0x435dcf['registerBlockAttribute']('listStart'));const _0x55fbdb={'type':'format','content':''};_0x435dcf['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x50904f=this['editor']['locale'];_0x435dcf['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x50904f,'FORMAT_LIST_REVERSED')),_0x435dcf['descriptionFactory']['registerDescriptionCallback'](_0x4159da=>{const {data:_0x1ff773}=_0x4159da;if(_0x1ff773&&'listReversed'==_0x1ff773['key'])return null==_0x1ff773['newValue']||0x0==_0x1ff773['newValue']&&null==_0x1ff773['oldValue']?_0x55fbdb:void 0x0;}),_0x435dcf['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x50904f,'FORMAT_LIST_START')),_0x435dcf['descriptionFactory']['registerDescriptionCallback'](_0x4d4a6c=>{const {data:_0x2e8ca9}=_0x4d4a6c;if(_0x2e8ca9&&'listStart'==_0x2e8ca9['key'])return null==_0x2e8ca9['newValue']||0x1==_0x2e8ca9['newValue']&&null==_0x2e8ca9['oldValue']?_0x55fbdb:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x30e4c7=>{if(_0x30e4c7['batch']['isUndo'])return!0x1;let _0x32e4c6=!0x1;const _0x387216=_0x435dcf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c0107=>{const _0x45525f=_0x435dcf['_getAttributeKey'](_0x2c0107);return'listStart'==_0x45525f||'listReversed'==_0x45525f;});for(const _0x2dfbc5 of _0x387216){const _0x1f522f=_0x2dfbc5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1f522f||'customNumbered'==_0x1f522f)continue;_0x435dcf['_findSuggestions'](_0x2dfbc5['getFirstRange'](),'attribute')['find'](_0x5b8109=>'listType'==_0x435dcf['_getAttributeKey'](_0x5b8109['suggestion']))||(_0x30e4c7['removeMarker'](_0x2dfbc5['getFirstMarker']()),_0x32e4c6=!0x0);}return _0x32e4c6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x28c35d){const _0x49b7d1=this['editor']['locale'],{data:_0x3b8282}=_0x28c35d,_0x2ceb7a={'type':'format','content':''};if(!_0x3b8282||'listStyle'!=_0x3b8282['key'])return;if(!_0x3b8282['oldValue'])return'default'==_0x3b8282['newValue']?_0x2ceb7a:{'type':'format','content':''+o(_0x49b7d1,'*Set\x20format:*\x20%0',o(_0x49b7d1,this['_getTranslationKeyForListStyle'](_0x3b8282['newValue'])))};if(!_0x3b8282['newValue']){if('default'==_0x3b8282['oldValue'])return _0x2ceb7a;let _0x8d71ab=_0x28c35d['head'];for(;_0x8d71ab;){if(_0x8d71ab['data']&&'listType'==_0x8d71ab['data']['key']&&_0x8d71ab['data']['newValue'])return _0x2ceb7a;_0x8d71ab=_0x8d71ab['next'];}return{'type':'format','content':''+o(_0x49b7d1,'*Remove\x20format:*\x20%0',o(_0x49b7d1,this['_getTranslationKeyForListStyle'](_0x3b8282['oldValue'])))};}if('default'!=_0x3b8282['newValue'])return{'type':'format','content':''+o(_0x49b7d1,'*Set\x20format:*\x20%0',o(_0x49b7d1,this['_getTranslationKeyForListStyle'](_0x3b8282['newValue'])))};let _0x589789=_0x28c35d['head'];for(;_0x589789;){if(_0x589789['data']&&'listType'==_0x589789['data']['key']&&_0x589789['data']['newValue']&&_0x589789['data']['oldValue'])return _0x2ceb7a;_0x589789=_0x589789['next'];}return{'type':'format','content':o(_0x49b7d1,'*Set\x20format:*\x20%0',o(_0x49b7d1,'ELEMENT_'+_0x28c35d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4845e2=this['editor'],_0x43c4a1=_0x4845e2['locale'];_0x4845e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x259f4a=>{if('formatBlock'!=_0x259f4a['type'])return;const {data:_0xeabae3}=_0x259f4a;if(!_0xeabae3)return;let _0x42b325,_0x56ce79;switch(_0xeabae3['commandName']){case'listStyle':_0x42b325='*Change\x20to:*\x20%0',_0x56ce79={'type':'format','content':o(_0x43c4a1,_0x42b325,o(_0x43c4a1,this['_getTranslationKeyForListStyle'](_0xeabae3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x42b325=_0xeabae3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56ce79={'type':'format','content':o(_0x43c4a1,_0x42b325)};break;case'listStart':_0x42b325='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56ce79={'type':'format','content':o(_0x43c4a1,_0x42b325,_0xeabae3['commandParams'][0x0]['startIndex'])};}return _0x56ce79;});}['_getTranslationKeyForListStyle'](_0x3d1d2a){return'ELEMENT_'+function(_0x38578e){if(Se['includes'](_0x38578e))return'bulleted';if(_e['includes'](_0x38578e))return'numbered';return null;}(_0x3d1d2a)['toUpperCase']()+'_LIST_'+_0x3d1d2a['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xacca18{['afterInit'](){const _0xf653c9=this['editor'];_0xf653c9['commands']['get']('emoji')&&_0xf653c9['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xacca18{static get['requires'](){return[_0x4b8c12];}['init'](){const _0x4927ef=this['editor'],_0x1e05ff=_0x4927ef['plugins']['get']('TrackChangesEditing'),_0x21465c=_0x4927ef['commands']['get']('enter');_0x1e05ff['enableCommand']('enter',()=>{_0x4927ef['model']['change'](_0x31446c=>{const _0x337234=_0x4927ef['model']['document']['selection'],_0x60db37=_0x337234['getFirstPosition'](),_0x2307ad=_0x171836['fromRange'](_0x337234['getFirstRange']());if(_0x21465c['enterBlock'](_0x31446c)){const _0x5aeb2e=_0x4927ef['model']['createPositionAt'](_0x60db37['parent']['nextSibling'],0x0),_0x258eb8=_0x31446c['createRange'](_0x60db37,_0x5aeb2e);_0x1e05ff['markInsertion'](_0x258eb8);}else _0x31446c['setSelection'](_0x31446c['createRange'](_0x2307ad['end']));_0x2307ad['detach'](),_0x21465c['fire']('afterExecute',{'writer':_0x31446c});});}),_0x4927ef['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x4927ef,'split'),{'priority':'high'}),_0x4927ef['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x14cd99,_0xb06cff,_0x1ce983)=>{const _0x2ef64f=_0x1ce983['mapper']['markerNameToElements'](_0xb06cff['markerName']);if(_0x2ef64f){for(const _0x3e29e1 of _0x2ef64f)_0x3e29e1['hasClass']('ck-suggestion-marker-split')&&(_0x1ce983['mapper']['unbindElementFromMarkerName'](_0x3e29e1,_0xb06cff['markerName']),_0x1ce983['writer']['remove'](_0x3e29e1));}},{'priority':'high'}),_0x4927ef['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5b9fb1,_0x3eea40,_0x3fadf0)=>{_0x3fadf0['options']['showSuggestionHighlights']&&De(_0x4927ef,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5b9fb1,_0x3eea40,_0x3fadf0);},{'priority':'high'});}}class Q extends _0xacca18{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x53f43e=this['editor']['plugins']['get']('TrackChangesEditing');_0x53f43e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x53f43e['enableCommand']('findNext'),_0x53f43e['enableCommand']('findPrevious'),_0x53f43e['enableCommand']('replace'),_0x53f43e['enableCommand']('replaceAll');}['handleFindCommand'](_0x417b3c,_0x58492f,_0xf43a7d={}){const _0x3c51ef=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x417b3c(_0x1e45f5=>{let _0x2ca763=('string'==typeof _0x58492f?_0x3c51ef['findByTextCallback'](_0x58492f,_0xf43a7d):_0x58492f)(_0x1e45f5);Array['isArray'](_0x2ca763)&&(_0x2ca763={'results':_0x2ca763,'searchText':'string'==typeof _0x58492f?_0x58492f:''});const _0x21925e=_0x2ca763['results']['filter'](_0x32379c=>!0x1===this['_isInDeletionRange'](_0x32379c,_0x1e45f5['item']));return{..._0x2ca763,'results':_0x21925e};},_0xf43a7d);}['_isInDeletionRange'](_0x39cb1f,_0x39c77c){const _0xee9605=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x39c77c,_0x39cb1f['start']),this['editor']['model']['createPositionAt'](_0x39c77c,_0x39cb1f['end']));for(const _0x4ee313 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xee9605['getIntersection'](_0x4ee313['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xacca18{['afterInit'](){const _0xb05209=this['editor']['locale'],_0x4f478c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x44f46e,commandName:_0x353507}of eo)this['editor']['plugins']['has'](_0x44f46e)&&(_0x4f478c['enableDefaultAttributesIntegration'](_0x353507),_0x4f478c['registerInlineAttribute'](_0x353507));_0x4f478c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xb05209,'FORMAT_FONT_SIZE')),_0x4f478c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xb05209,'FORMAT_FONT_FAMILY')),_0x4f478c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xb05209,'FORMAT_FONT_COLOR')),_0x4f478c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xb05209,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4093ae=this['editor'],_0x554b58=_0x4093ae['locale'];_0x4093ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ae04b=>{const _0x2bd263=_0x554b58['t'];if('formatInline'!=_0x4ae04b['type'])return;const {data:_0x172cea}=_0x4ae04b;if(null!=_0x172cea){if('fontSize'==_0x172cea['commandName']){const _0x5474f0=_0x172cea['commandParams'][0x0]['value'];if(_0x5474f0){const _0x2ff51e=_0x2bd263(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x434f18=>_0x434f18['model']==_0x5474f0)['title'])['toLowerCase']();return{'type':'format','content':o(_0x554b58,'*Set\x20font\x20size:*\x20%0',_0x2ff51e)};}return{'type':'format','content':o(_0x554b58,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x172cea['commandName']){const _0x29e280=_0x172cea['commandParams'][0x0]['value'];return _0x29e280?{'type':'format','content':o(_0x554b58,'*Set\x20font\x20family:*\x20%0',_0x29e280)}:{'type':'format','content':o(_0x554b58,'*Reset\x20font\x20family*')};}if('fontColor'==_0x172cea['commandName']){const _0x3df0f0=_0x172cea['commandParams'][0x0]['value'];if(_0x3df0f0){const _0x53063=_0x13bcd0(this['editor']['config']['get']('fontColor.colors'))['find'](_0x145358=>_0x145358['model']==_0x3df0f0);let _0x293da1=_0x3df0f0,_0x1f2336='';return _0x53063&&(_0x293da1=_0x53063['label'],_0x1f2336=_0x2bd263(_0x293da1)['toLowerCase']()),{'type':'format','content':o(_0x554b58,'*Set\x20font\x20color:*\x20%0',_0x1f2336)['trim'](),'color':{'value':_0x3df0f0,'title':_0x1f2336||_0x293da1}};}return{'type':'format','content':o(_0x554b58,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x172cea['commandName']){const _0x23cb83=_0x172cea['commandParams'][0x0]['value'];if(_0x23cb83){const _0x233829=_0x13bcd0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x360888=>_0x360888['model']==_0x23cb83);let _0x5f4d5c=_0x23cb83,_0x52644b='';return _0x233829&&(_0x5f4d5c=_0x233829['label'],_0x52644b=_0x2bd263(_0x5f4d5c)['toLowerCase']()),{'type':'format','content':o(_0x554b58,'*Set\x20font\x20background\x20color:*\x20%0',_0x52644b)['trim'](),'color':{'value':_0x23cb83,'title':_0x52644b||_0x5f4d5c}};}return{'type':'format','content':o(_0x554b58,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xacca18{['afterInit'](){const _0x46759f=this['editor'],_0x58f40d=_0x46759f['plugins']['get']('TrackChangesEditing'),_0x295e96=_0x46759f['commands']['get']('copyFormat'),_0x2f7cb3=_0x46759f['commands']['get']('pasteFormat');_0x295e96&&_0x2f7cb3&&(_0x58f40d['enableDefaultAttributesIntegration']('pasteFormat'),_0x58f40d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x28c4e0=this['editor'],_0x400385=_0x28c4e0['locale'];_0x28c4e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c6868=>{if('formatBlock'!=_0x2c6868['type']&&'formatInline'!=_0x2c6868['type'])return;const {data:_0x587777}=_0x2c6868;if(_0x587777&&'pasteFormat'===_0x587777['commandName']){const _0x236bd3=[],_0x99ad1c=_0x587777['commandParams'][0x0];for(const [_0x44d83f,_0x15baa6]of Object['entries'](_0x99ad1c))_0x236bd3['push'](ro(_0x28c4e0,_0x44d83f,_0x15baa6));return _0x236bd3['length']?{'type':'format','content':o(_0x400385,'*Set\x20format\x20to:*\x20%0',_0x236bd3['join'](',\x20'))}:{'type':'format','content':o(_0x400385,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3b9a93,_0x1311ed,_0x4c6e0e){const _0x64ad95=_0x3b9a93['locale']['t'],_0x22d653=_0x1311ed['split'](/(?=[A-Z])/)['join']('\x20'),_0x15b030=_0x64ad95(_0x22d653['charAt'](0x0)['toUpperCase']()+_0x22d653['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4c6e0e)return _0x15b030;if('fontColor'===_0x1311ed||'fontBackgroundColor'===_0x1311ed){const _0x6d1a8c=_0x13bcd0(_0x3b9a93['config']['get']('fontColor.colors'))['find'](_0x16a62e=>_0x16a62e['model']==_0x4c6e0e);return _0x15b030+'\x20('+(_0x6d1a8c?_0x64ad95(_0x6d1a8c['label'])['toLowerCase']():_0x4c6e0e)+')';}if('fontSize'===_0x1311ed&&isNaN(parseFloat(_0x4c6e0e))){const _0x5611b0=_0x3b9a93['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3b9a93['config']['get']('fontSize.options'))['find'](_0x1a5b3d=>_0x1a5b3d['model']==_0x4c6e0e);return _0x15b030+'\x20('+(_0x5611b0?_0x64ad95(_0x5611b0['title'])['toLowerCase']():_0x4c6e0e)+')';}return _0x15b030+'\x20('+_0x4c6e0e+')';}class Z extends _0xacca18{['_headingOptions'];['afterInit'](){const _0xf03349=this['editor'];if(!_0xf03349['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xf03349['config']['get']('heading.options');const _0x3a8564=_0xf03349['locale'],_0x41b02=_0xf03349['plugins']['get']('TrackChangesEditing');_0x41b02['enableDefaultAttributesIntegration']('heading');for(const _0x3039a1 of this['_headingOptions'])'paragraph'!=_0x3039a1['model']&&_0x41b02['descriptionFactory']['registerElementLabel'](_0x3039a1['model'],_0x116fa8=>{const _0x53e7ef=this['_getHeadingLevel'](_0x3039a1['model']);return null!==_0x53e7ef?_0xc1092(_0x116fa8,_0x53e7ef):_0x564693(_0x116fa8,_0x3039a1['title']);});function _0xc1092(_0x2ab6f7,_0x91da48){return o(_0x3a8564,'ELEMENT_HEADING',[_0x2ab6f7,_0x91da48]);}function _0x564693(_0x3006da,_0x595e56){return o(_0x3a8564,'ELEMENT_HEADING_CUSTOM',[_0x3006da,_0x595e56]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ae335=this['editor'],_0x5edcf4=_0x4ae335['locale'];function _0x38ae3c(_0x18add5,_0x5bdc4c){return o(_0x5edcf4,'ELEMENT_HEADING_CUSTOM',[_0x18add5,_0x5bdc4c]);}_0x4ae335['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5df82f=>{if('formatBlock'!=_0x5df82f['type'])return;const {data:_0x194457}=_0x5df82f;if(_0x194457&&'heading'==_0x194457['commandName']){const _0x38ab8a=_0x194457['commandParams'][0x0]['value'],_0x439f23=this['_getHeadingLevel'](_0x38ab8a);if(null!==_0x439f23)return{'type':'format','content':o(_0x5edcf4,'*Change\x20to:*\x20%0',(_0x16c5b0=0x1,_0xc431f=_0x439f23,o(_0x5edcf4,'ELEMENT_HEADING',[_0x16c5b0,_0xc431f])))};const _0x5cc0bb=this['_headingOptions']['find'](_0x18a2bf=>_0x18a2bf['model']===_0x38ab8a)['title'];return{'type':'format','content':o(_0x5edcf4,'*Change\x20to:*\x20%0',_0x38ae3c(0x1,_0x5cc0bb))};}var _0x16c5b0,_0xc431f;});}['_getHeadingLevel'](_0x267deb){const _0x54973d=_0x267deb['match'](/^heading(\d+)/);if(_0x54973d)return _0x54973d[0x1];const _0x3b71ad=this['_headingOptions']?.['find'](_0x4c3c36=>_0x4c3c36['model']==_0x267deb);if(_0x3b71ad&&_0x3b71ad['view']){const _0x7a62ba=_0x3b71ad['view'],_0x9a1940=(_0x7a62ba['name']??_0x7a62ba)['match'](/^h(\d+)/);if(_0x9a1940)return _0x9a1940[0x1];}return null;}}class tt extends _0xacca18{['afterInit'](){const _0x48fd06=this['editor'];if(!_0x48fd06['plugins']['has']('HighlightEditing'))return;const _0x56113f=_0x48fd06['plugins']['get']('TrackChangesEditing'),_0x767fe3=_0x48fd06['locale'];_0x56113f['enableDefaultAttributesIntegration']('highlight'),_0x56113f['registerInlineAttribute']('highlight'),_0x56113f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x767fe3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c86b2=this['editor'],_0x157b38=_0x4c86b2['locale'];_0x4c86b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e93cc=>{if('formatInline'!=_0x4e93cc['type'])return;const {data:_0x19ada7}=_0x4e93cc;if(_0x19ada7&&'highlight'==_0x19ada7['commandName']){const _0x530fd0=_0x157b38['t'],_0x2ff4ab=_0x19ada7['commandParams'][0x0]['value'];if(_0x2ff4ab){const _0x442fa7=_0x4c86b2['config']['get']('highlight.options')['find'](_0x38e255=>_0x38e255['model']==_0x2ff4ab),_0x5298bf=_0x530fd0(_0x442fa7['title'])['toLowerCase']();return{'type':'format','content':o(_0x157b38,'*Set\x20highlight:*\x20%0',_0x5298bf),'color':{'value':_0x442fa7['color'],'title':_0x442fa7['title']}};}return{'type':'format','content':o(_0x157b38,'*Remove\x20highlight*',o(_0x157b38,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xacca18{['afterInit'](){const _0x307dfc=this['editor'];if(!_0x307dfc['plugins']['has']('HorizontalLineEditing'))return;_0x307dfc['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1f2391=_0x307dfc['plugins']['get']('TrackChangesEditing'),_0x3545da=_0x307dfc['locale'];_0x1f2391['descriptionFactory']['registerElementLabel']('horizontalLine',_0x165a67=>o(_0x3545da,'ELEMENT_HORIZONTAL_LINE',_0x165a67)),_0x307dfc['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1c1b29,{writer:_0x5a29cb,options:_0x41c060})=>{if(!_0x41c060['showSuggestionHighlights'])return null;const _0x3f3320=_0x5a29cb['createContainerElement']('div'),_0x181c86=_0x5a29cb['createEmptyElement']('hr');return _0x5a29cb['addClass']('ck-horizontal-line',_0x3f3320),_0x5a29cb['insert'](_0x5a29cb['createPositionAt'](_0x3f3320,0x0),_0x181c86),_0x3f3320;},'converterPriority':'high'});}}class nt extends _0xacca18{['afterInit'](){const _0x28d8d8=this['editor'];if(!_0x28d8d8['plugins']['has']('HtmlEmbed'))return;const _0x2f3124=_0x28d8d8['plugins']['get']('TrackChangesEditing'),_0x467c68=_0x28d8d8['locale'];_0x2f3124['descriptionFactory']['registerElementLabel']('rawHtml',_0xba3fd0=>o(_0x467c68,'ELEMENT_HTML_EMBED',_0xba3fd0)),_0x2f3124['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2f3124['registerBlockAttribute']('value'),_0x2f3124['descriptionFactory']['registerDescriptionCallback'](_0x142348=>{if('attribute'!=_0x142348['type'])return;const {data:_0x491cad}=_0x142348;if(_0x491cad&&'value'==_0x491cad['key']&&_0x142348['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x454637=o(_0x467c68,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x467c68,'*Change\x20%0\x20content*',_0x454637)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f7546=this['editor'],_0x996c5a=_0x1f7546['locale'];_0x1f7546['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x263478=>{if('formatBlock'!=_0x263478['type'])return;const {data:_0x39b093}=_0x263478;if(_0x39b093&&'htmlEmbed'==_0x39b093['commandName']){const _0x98a7be=o(_0x996c5a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x996c5a,'*Change\x20%0\x20content*',_0x98a7be)};}});}}class et extends _0xacca18{['afterInit'](){const _0x8e4029=this['editor'];if(!_0x8e4029['plugins']['has']('ImageEditing'))return;const _0x4ce251=_0x8e4029['plugins']['get']('TrackChangesEditing'),_0x48f08e=_0x8e4029['plugins']['get']('ImageUtils'),_0x2732a5=_0x8e4029['locale'];_0x4ce251['enableCommand']('insertImage'),_0x4ce251['descriptionFactory']['registerElementLabel']('imageBlock',_0x372748=>o(_0x2732a5,'ELEMENT_IMAGE',_0x372748)),_0x4ce251['descriptionFactory']['registerElementLabel']('imageInline',_0x4a6316=>o(_0x2732a5,'ELEMENT_INLINE_IMAGE',_0x4a6316)),_0x4ce251['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2732a5,'ELEMENT_CAPTION')),_0x8e4029['plugins']['has']('ImageUploadEditing')&&_0x4ce251['enableCommand']('uploadImage'),_0x8e4029['plugins']['has']('ImageBlockEditing')&&_0x8e4029['plugins']['has']('ImageInlineEditing')&&(_0x4ce251['enableCommand']('imageTypeInline',(_0x4c1d1c,_0x1582ef)=>{const _0x143541=_0x48f08e['getClosestSelectedImageElement'](_0x8e4029['model']['document']['selection']);_0x8e4029['model']['change'](()=>{_0x4ce251['markBlockFormat'](_0x143541,{'commandName':'imageTypeInline','commandParams':[_0x1582ef]},[],'convertBlockImageToInline');});}),_0x4ce251['enableCommand']('imageTypeBlock',(_0x1609f1,_0x2b144c)=>{_0x8e4029['model']['change'](_0x296398=>{let _0x53083f=_0x48f08e['getClosestSelectedImageElement'](_0x8e4029['model']['document']['selection']),_0xac61f=_0x296398['createRangeOn'](_0x53083f);const _0xc6e830=_0x1d766f['fromPosition'](_0xac61f['start'],'toPrevious'),_0x8563d3=_0x1d766f['fromPosition'](_0xac61f['end'],'toNext');_0x4ce251['forceDefaultExecution'](()=>_0x1609f1(_0x2b144c)),_0x53083f=_0x48f08e['getClosestSelectedImageElement'](_0x8e4029['model']['document']['selection']),_0xac61f=_0x296398['createRangeOn'](_0x53083f);const _0x3dc5ca=_0x296398['createRange'](_0xc6e830,_0x8563d3);_0xc6e830['detach'](),_0x8563d3['detach'](),_0x4ce251['markBlockFormat'](_0x53083f,{'commandName':'imageTypeInline','commandParams':[_0x2b144c]},[],'convertInlineImageToBlock'),_0x3dc5ca['start']['isBefore'](_0xac61f['start'])&&_0x4ce251['markInsertion'](_0x296398['createRange'](_0x3dc5ca['start'],_0xac61f['start']),'convertInlineImageToBlock'),_0xac61f['end']['isBefore'](_0x3dc5ca['end'])&&_0x4ce251['markInsertion'](_0x296398['createRange'](_0xac61f['end'],_0x3dc5ca['end']),'convertInlineImageToBlock');});}),_0x4ce251['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4ce251['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4ce251['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4ce251['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4ce251['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4ce251['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xd87bb2])=>{const _0x2ede27=_0x4ce251['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4b5138=_0xd87bb2['start'],_0x480c5d=_0xd87bb2['end'];const _0x4c9b18=_0x8e4029['model']['schema']['getNearestSelectionRange'](_0x4b5138,'backward'),_0x25c403=_0x8e4029['model']['schema']['getNearestSelectionRange'](_0x480c5d,'forward');_0x4c9b18['isCollapsed']&&(_0x4b5138=_0x4c9b18['start']),_0x25c403['isCollapsed']&&(_0x480c5d=_0x25c403['end']),_0x2ede27([_0x8e4029['model']['createRange'](_0x4b5138,_0x480c5d)]);}),_0x4ce251['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x12659f),_0x4ce251['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x12659f)),_0x8e4029['plugins']['has']('ImageCaptionEditing')&&(_0x4ce251['enableCommand']('toggleImageCaption',(_0xb433c7,_0x283f57)=>{const _0x557978=_0x8e4029['plugins']['get']('ImageCaptionUtils');let _0xbdfef6=_0x48f08e['getClosestSelectedImageElement'](_0x8e4029['model']['document']['selection']),_0x4a8210=_0x557978['getCaptionFromImageModelElement'](_0xbdfef6);_0x8e4029['model']['change'](()=>{if(_0x4a8210)return void _0x4ce251['markDeletion'](_0x8e4029['model']['createRangeOn'](_0x4a8210));const _0x406edb=_0x48f08e['isBlockImage'](_0xbdfef6);_0xb433c7(_0x283f57),_0xbdfef6=_0x48f08e['getClosestSelectedImageElement'](_0x8e4029['model']['document']['selection']),_0x4a8210=_0x557978['getCaptionFromImageModelElement'](_0xbdfef6),_0x4ce251['markInsertion'](_0x8e4029['model']['createRangeOn'](_0x4a8210),_0x406edb?null:'imageCaption');});}),_0x4ce251['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x12659f));const _0x1d5986=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x413301(_0x412db,_0x3adb41){const _0x486536=_0x1d5986['findIndex'](({type:_0x588457,subType:_0x5509f1})=>_0x412db['type']==_0x588457&&_0x412db['subType']==_0x5509f1),_0x22fba7=_0x1d5986['findIndex'](({type:_0x11100e,subType:_0x33245d})=>_0x3adb41['type']==_0x11100e&&_0x3adb41['subType']==_0x33245d);if(_0x486536<0x0||_0x22fba7<0x0)return!0x1;const _0x578f34=_0x412db['getFirstRange'](),_0x54ca59=_0x3adb41['getFirstRange']();if((0x0==_0x486536||0x1==_0x486536)&&0x2==_0x22fba7&&_0x578f34['isIntersecting'](_0x54ca59))return!0x0;if(0x2==_0x486536&&0x3==_0x22fba7){const _0x2eaa2f=_0x4ce251['_findSuggestions'](_0x578f34,'insertion')['filter'](({suggestion:_0x43960a,meta:_0x311799})=>_0x311799['isOwn']&&'convertInlineImageToBlock'==_0x43960a['subType']);if(_0x2eaa2f['length']>0x1&&_0x54ca59['end']['isEqual'](_0x578f34['start']))return!0x0;if(0x1==_0x2eaa2f['length']&&(_0x578f34['start']['isEqual'](_0x54ca59['end'])||_0x578f34['end']['isEqual'](_0x54ca59['start'])))return!0x0;}if(0x3==_0x486536&&0x3==_0x22fba7&&_0x578f34['start']['isBefore'](_0x54ca59['start'])){const _0x12eb69=_0x578f34['end']['nodeAfter'],_0x53b908=_0x54ca59['start']['nodeBefore'];return _0x48f08e['isBlockImage'](_0x12eb69)&&_0x12eb69===_0x53b908;}return!0x1;}function _0x12659f(_0x170b74,_0x163080){return _0x413301(_0x170b74,_0x163080)?[_0x170b74,_0x163080]:_0x413301(_0x163080,_0x170b74)?[_0x163080,_0x170b74]:null;}_0x8e4029['plugins']['has']('ImageResize')&&(_0x4ce251['enableDefaultAttributesIntegration']('resizeImage'),_0x4ce251['registerBlockAttribute']('resizedWidth'),_0x4ce251['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2732a5,'FORMAT_IMAGE_SIZE'))),_0x8e4029['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4ce251['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4ce251['registerBlockAttribute']('alt')),_0x8e4029['plugins']['has']('PictureEditing')&&(_0x4ce251['registerBlockAttribute']('sources'),_0x4ce251['descriptionFactory']['registerDescriptionCallback'](_0x46407e=>{if('attribute'!=_0x46407e['type'])return;const {data:_0x4f22ae}=_0x46407e;return _0x4f22ae&&'sources'==_0x4f22ae['key']?{'type':'format','content':''}:void 0x0;})),_0x8e4029['plugins']['has']('ImageSizeAttributes')&&(_0x4ce251['registerBlockAttribute']('width'),_0x4ce251['registerBlockAttribute']('height'),_0x4ce251['descriptionFactory']['registerDescriptionCallback'](_0x4460fe=>{if('attribute'!=_0x4460fe['type'])return;const {data:_0x225e0a}=_0x4460fe;return!_0x225e0a||'width'!=_0x225e0a['key']&&'height'!=_0x225e0a['key']?void 0x0:{'type':'format','content':''};})),_0x4ce251['descriptionFactory']['registerDescriptionCallback'](_0x3a4121=>{if(!!_0x1d5986['find'](({type:_0x4e96f,subType:_0x4e3c95})=>_0x3a4121['type']==_0x4e96f&&_0x3a4121['subType']==_0x4e3c95))return _0x3a4121['previous']?{}:void 0x0;}),_0x4ce251['descriptionFactory']['registerDescriptionCallback'](_0x4861f9=>{if('insertion'==_0x4861f9['type']||'deletion'==_0x4861f9['type']){const _0x46673f=_0x4861f9['getContainedElement']();if(_0x46673f&&_0x46673f['is']('element','caption'))return{'type':'insertion'==_0x4861f9['type']?'addObject':'removeObject','element':_0x46673f,'quantity':0x1};}}),_0x4ce251['descriptionFactory']['registerDescriptionCallback'](_0x587447=>'formatBlock'==_0x587447['type']&&'convertInlineImageToBlock'==_0x587447['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x587447['type']&&'convertBlockImageToInline'==_0x587447['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4ce251['descriptionFactory']['registerDescriptionCallback'](_0x106607=>{if('attribute'!=_0x106607['type'])return;const {data:_0x2e428e}=_0x106607;if(!_0x2e428e||'alt'!=_0x2e428e['key'])return;const _0x3ba3fa=_0x2e428e['newValue'];return _0x3ba3fa?{'type':'format','content':o(_0x2732a5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3ba3fa+'\x22')}:{'type':'format','content':o(_0x2732a5,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x352974=this['editor'],_0xb98597=_0x352974['locale'];_0x352974['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d7c33=>{if('formatBlock'!=_0x2d7c33['type']&&'formatInline'!=_0x2d7c33['type'])return;const {data:_0x550286}=_0x2d7c33;if(_0x550286){if('imageTextAlternative'==_0x550286['commandName']){const _0x3b3cc3=_0x550286['commandParams'][0x0]['newValue'];return _0x3b3cc3?{'type':'format','content':o(_0xb98597,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3b3cc3+'\x22')}:{'type':'format','content':o(_0xb98597,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x550286['commandName']){const _0x578b0b=_0x550286['commandParams'][0x0]['width'];return _0x578b0b?{'type':'format','content':o(_0xb98597,'*Set\x20image\x20width:*\x20%0',_0x578b0b)}:{'type':'format','content':o(_0xb98597,'*Reset\x20image\x20width*')};}}});}}class st extends _0xacca18{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x425061=this['editor']['locale'],_0x42ed37=this['editor']['plugins']['get']('TrackChangesEditing');_0x42ed37['enableDefaultAttributesIntegration']('replaceImageSource'),_0x42ed37['registerBlockAttribute']('src'),_0x42ed37['descriptionFactory']['registerDescriptionCallback'](_0x4c62a7=>{if('attribute'!=_0x4c62a7['type'])return;const {data:_0x33642e}=_0x4c62a7;return _0x33642e&&'src'==_0x33642e['key']?_0x33642e['newValue']&&_0x33642e['oldValue']?{'type':'format','content':o(_0x425061,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xd9444d=this['editor']['plugins']['get']('TrackChangesEditing');_0xd9444d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xd9444d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd9444d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xd9444d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4683e7=this['editor'],_0x478026=_0x4683e7['locale'];_0x4683e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25b813=>{if('formatBlock'!=_0x25b813['type']&&'formatInline'!=_0x25b813['type'])return;const {data:_0x57c908}=_0x25b813;if(!_0x57c908||'replaceImageSource'!=_0x57c908['commandName'])return;return{'type':'format','content':o(_0x478026,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xacca18{['afterInit'](){const _0x2a80f1=this['editor'];if(!_0x2a80f1['plugins']['has']('ImageStyleEditing'))return;const _0x3477e2=_0x2a80f1['plugins']['get']('TrackChangesEditing'),_0x8f9b3e=_0x2a80f1['plugins']['get']('ImageUtils'),_0x167f55={};_0x3477e2['enableCommand']('imageStyle',(_0x1f51d5,_0x4ed200)=>{const _0x502559=_0x2a80f1['plugins']['get']('Users')['me'],_0x491215=_0x2a80f1['commands']['get']('imageStyle');let _0x134db4=_0x8f9b3e['getClosestSelectedImageElement'](_0x2a80f1['model']['document']['selection']),_0x9b46c8=_0x2a80f1['model']['createRangeOn'](_0x134db4),_0x1f6d67=_0x491215['value'];if(_0x1f6d67==_0x4ed200['value'])return;const _0x43f610={'commandName':'imageStyle','commandParams':[_0x4ed200],'formatGroupId':_0x2b2224()};_0x2a80f1['model']['change'](()=>{if(_0x3477e2['getSuggestions']()['filter'](_0xd647bc=>_0xd647bc['isInContent']&&_0x502559==_0xd647bc['author']&&('formatBlock'==_0xd647bc['type']||'formatInline'==_0xd647bc['type'])&&('imageStylePreApply'==_0xd647bc['subType']||'imageStylePostApply'==_0xd647bc['subType'])&&_0xd647bc['getFirstRange']()['isEqual'](_0x9b46c8))['forEach'](_0x2f8baf=>_0x3477e2['discardSuggestion'](_0x2f8baf['head'])),_0x134db4=_0x8f9b3e['getClosestSelectedImageElement'](_0x2a80f1['model']['document']['selection']),_0x9b46c8=_0x2a80f1['model']['createRangeOn'](_0x134db4),_0x491215['refresh'](),_0x2a80f1['commands']['get']('imageTypeInline')['refresh'](),_0x2a80f1['commands']['get']('imageTypeBlock')['refresh'](),_0x1f6d67=_0x491215['value'],_0x1f6d67!=_0x4ed200['value'])return _0x8f9b3e['isInlineImage'](_0x134db4)&&_0x491215['shouldConvertImageType'](_0x4ed200['value'],_0x134db4)?(_0x1f51d5({..._0x4ed200,'setImageSizes':!0x1}),_0x134db4=_0x8f9b3e['getClosestSelectedImageElement'](_0x2a80f1['model']['document']['selection']),void _0x3477e2['markBlockFormat'](_0x134db4,{..._0x43f610,'commandReversedParams':[{'value':_0x1f6d67||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x8f9b3e['isBlockImage'](_0x134db4)?_0x3477e2['markBlockFormat'](_0x134db4,_0x43f610,[],'imageStylePostApply'):_0x3477e2['markInlineFormat'](_0x9b46c8,_0x43f610,'imageStylePostApply'));});});for(const _0x4d1bb4 of _0x2a80f1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x167f55[_0x4d1bb4['name']]=_0x4d1bb4['title']['toLowerCase']();_0x3477e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3477e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3477e2['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3477e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2fe122])=>{_0x8f9b3e['setImageNaturalSizeAttributes'](_0x2fe122['getContainedElement']());}),_0x3477e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x48142a,_0x1180e5)=>{_0x3477e2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x48142a,{'commandName':_0x1180e5['commandName'],'commandParams':_0x1180e5['commandReversedParams']});}),_0x3477e2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x59c113,_0x235c29){if(_0x3e4998(_0x59c113,_0x235c29))return[_0x59c113,_0x235c29];if(_0x3e4998(_0x235c29,_0x59c113))return[_0x235c29,_0x59c113];return null;});const _0x426186=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3e4998(_0x3236a9,_0x22ad4b){const _0x349d63=_0x426186['findIndex'](({type:_0x581725,subType:_0x18b7d6})=>_0x3236a9['type']==_0x581725&&_0x3236a9['subType']==_0x18b7d6),_0x211498=_0x426186['findIndex'](({type:_0x4cc4eb,subType:_0x2717b2})=>_0x22ad4b['type']==_0x4cc4eb&&_0x22ad4b['subType']==_0x2717b2);if(_0x349d63<0x0||_0x211498<0x0)return!0x1;const _0x22c038=_0x3236a9['getFirstRange'](),_0x2164f9=_0x22ad4b['getFirstRange']();if((0x0==_0x349d63||0x1==_0x349d63)&&0x2==_0x211498&&_0x22c038['isIntersecting'](_0x2164f9))return!0x0;if(0x2==_0x349d63&&0x3==_0x211498){const _0x12222c=_0x3477e2['_findSuggestions'](_0x22c038,'insertion')['filter'](({suggestion:_0x12b138,meta:_0x338a35})=>_0x338a35['isOwn']&&'convertInlineImageToBlock'==_0x12b138['subType']);if(_0x12222c['length']>0x1&&_0x2164f9['end']['isEqual'](_0x22c038['start']))return!0x0;if(0x1==_0x12222c['length']&&(_0x22c038['start']['isEqual'](_0x2164f9['end'])||_0x22c038['end']['isEqual'](_0x2164f9['start'])))return!0x0;}if(0x3==_0x349d63&&0x3==_0x211498&&_0x22c038['start']['isBefore'](_0x2164f9['start'])){const _0x8f0d41=_0x22c038['end']['nodeAfter'],_0x5af238=_0x2164f9['start']['nodeBefore'];return _0x8f9b3e['isBlockImage'](_0x8f0d41)&&_0x8f0d41===_0x5af238;}return!0x1;}_0x2a80f1['model']['document']['registerPostFixer'](()=>{let _0x191064=!0x1;const _0x4b1f35=Array['from'](_0x2a80f1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x317d3b,data:_0x13f6d1}of _0x4b1f35){const {group:_0xe0827f,type:_0x1c01f9,subType:_0x1fe326,id:_0xf14e3e}=_0x3477e2['_splitMarkerName'](_0x317d3b);if('suggestion'==_0xe0827f&&_0x3477e2['hasSuggestion'](_0xf14e3e)){if('formatBlock'==_0x1c01f9&&('imageStylePreApply'==_0x1fe326||'imageStylePostApply'==_0x1fe326)){const _0xa47ea2=_0x3477e2['getSuggestion'](_0xf14e3e);if(_0x13f6d1['newRange']){const _0xd896ab=_0xa47ea2['getFirstRange']()['getContainedElement']();if(_0x8f9b3e['isBlockImage'](_0xd896ab))continue;_0x3477e2['discardSuggestion'](_0xa47ea2),_0x191064=!0x0;}}if('insertion'==_0x1c01f9&&'imageCaption'==_0x1fe326&&!_0x13f6d1['newRange']){const _0x291e73=_0x3477e2['getSuggestion'](_0xf14e3e);_0x291e73['next']&&_0x291e73['next']['isInContent']&&(_0x3477e2['discardSuggestion'](_0x291e73['next']),_0x191064=!0x0);}}}return _0x191064;}),this['_registerLegacyDescription'](_0x167f55);}['_registerLegacyDescription'](_0x1499fa){const _0x14a1e5=this['editor'],_0x19a509=_0x14a1e5['locale'];_0x14a1e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x170498=>{if('formatBlock'!=_0x170498['type']&&'formatInline'!=_0x170498['type'])return;const {data:_0x7c57b3}=_0x170498;if(!_0x7c57b3||'imageStyle'!=_0x7c57b3['commandName'])return;const _0x1fa5fe=_0x7c57b3['commandParams'][0x0]['value'];return _0x4bb88c('side'===_0x1fa5fe?o(_0x19a509,'FORMAT_SIDE_IMAGE'):_0x1499fa[_0x1fa5fe]||_0x1fa5fe);function _0x4bb88c(_0x56557e){return{'type':'format','content':o(_0x19a509,'*Format:*\x20%0',_0x56557e)};}});}}class rt extends _0xacca18{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x33dd01){super(_0x33dd01),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x343146=this['editor'],_0x30891e=_0x343146['commands']['get']('importWord'),_0x4a1832=_0x343146['commands']['get']('trackChanges');_0x30891e&&(_0x30891e['on']('execute',(_0x2dd099,[,_0x153202])=>{this['_trackChangesValueDuringImport']=_0x4a1832['value'],_0x153202['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x30891e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x30891e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4a1832['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x343146['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3fb85d,_0x41d594){const {suggestions:_0x4f8951}=_0x41d594,_0x450541=this['editor']['commands']['get']('trackChanges'),_0x21fd52=_0x450541['value'];this['_trackChangesValueDuringImport']!==_0x21fd52&&(_0x450541['execute'](),this['_trackChangesExecuted']=!0x0),_0x4f8951&&_0x4f8951['forEach'](({id:_0x37092b,type:_0x1b8e08,author:_0x63bcc6,created_at:_0x2114cb})=>{const _0x3d89eb={'id':_0x37092b,'type':_0x1b8e08,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x63bcc6,'createdAt':_0x2114cb?new Date(_0x2114cb):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3d89eb);});}}class at extends _0xacca18{['afterInit'](){const _0x2c998e=this['editor'],_0xfc04d1=_0x2c998e['plugins']['get']('TrackChangesEditing');if(_0x2c998e['plugins']['has']('IndentEditing')&&(_0xfc04d1['enableCommand']('indent'),_0xfc04d1['enableCommand']('outdent')),_0x2c998e['plugins']['has']('IndentBlock')){for(const _0x55ebbd of['indentBlock','outdentBlock'])_0xfc04d1['enableDefaultAttributesIntegration'](_0x55ebbd);}const _0x483629=_0x2c998e['locale'];_0xfc04d1['registerBlockAttribute']('blockIndent'),_0xfc04d1['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x483629,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5624c6=this['editor'],_0x79ec28=_0x5624c6['locale'],_0x33e41c=_0x5624c6['plugins']['get']('TrackChangesEditing');_0x33e41c['descriptionFactory']['registerDescriptionCallback'](_0x54eb67=>{if('formatBlock'!=_0x54eb67['type'])return;const {data:_0x394432}=_0x54eb67;if(!_0x394432)return;if('indentBlock'!=_0x394432['commandName']&&'outdentBlock'!=_0x394432['commandName'])return;const _0x25b7dc=_0x54eb67['getItems']()[0x0],_0x1a0c71=_0x33e41c['descriptionFactory']['getItemLabel'](_0x25b7dc);return'indentBlock'==_0x394432['commandName']?{'type':'format','content':o(_0x79ec28,'*Indent:*\x20%0',_0x1a0c71)}:'outdentBlock'==_0x394432['commandName']?{'type':'format','content':o(_0x79ec28,'*Outdent:*\x20%0',_0x1a0c71)}:void 0x0;});}}class ct extends _0xacca18{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xacca18{['afterInit'](){const _0x41028e=this['editor'];if(!_0x41028e['plugins']['has']('LinkEditing'))return;const _0x596a1b=_0x41028e['plugins']['get']('TrackChangesEditing'),_0x2a896d=_0x41028e['commands']['get']('link');_0x596a1b['enableDefaultAttributesIntegration']('link'),_0x596a1b['enableDefaultAttributesIntegration']('unlink'),_0x596a1b['registerInlineAttribute']('linkHref');for(const _0xe4c90a of _0x2a896d['manualDecorators'])_0x596a1b['registerInlineAttribute'](_0xe4c90a['id']),_0x596a1b['descriptionFactory']['registerAttributeLabel'](_0xe4c90a['id'],'link\x20('+_0xe4c90a['label']['toLowerCase']()+')');_0x596a1b['descriptionFactory']['registerDescriptionCallback'](_0x4ba83e=>{if('attribute'!=_0x4ba83e['type'])return;const {data:_0x27b4b9}=_0x4ba83e;if(!_0x27b4b9||'linkHref'!=_0x27b4b9['key'])return;const _0x5ae60e=_0x27b4b9['newValue'],_0x597180=_0x41028e['locale'];return{'type':'format','content':null==_0x5ae60e?o(_0x597180,'*Remove\x20link*'):o(_0x597180,'*Set\x20link:*\x20%0','\x22'+_0x5ae60e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14eb21=this['editor'],_0x369c4b=_0x14eb21['locale'];_0x14eb21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe96c0=>{if('formatInline'!=_0xe96c0['type'])return;const {data:_0x11a218}=_0xe96c0;if(_0x11a218){if('link'==_0x11a218['commandName']){const _0x2e0409=_0x11a218['commandParams'][0x0];return{'type':'format','content':o(_0x369c4b,'*Set\x20link:*\x20%0','\x22'+_0x2e0409+'\x22')};}return'unlink'==_0x11a218['commandName']?{'type':'format','content':o(_0x369c4b,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xacca18{['afterInit'](){const _0x55e4cb=this['editor'],_0x41c0cd=_0x55e4cb['locale'];if(!_0x55e4cb['plugins']['has']('LegacyListEditing'))return;const _0x4977f4=_0x55e4cb['plugins']['get']('TrackChangesEditing'),_0x4af218=_0x55e4cb['plugins']['has']('LegacyTodoListEditing');function _0x5e28bf(_0x595fac){return()=>{const _0x2779c6=_0x55e4cb['model']['document']['selection'],_0x24ba3f=_0x55e4cb['commands']['get'](_0x595fac);if(_0x24ba3f['value'])return void _0x55e4cb['execute']('paragraph',{});const _0x3c2e1c=_0x595fac['slice'](0x0,-0x4),_0x4cb9d7=function(_0x45f138,_0x3acc7a,_0x1d9be9){let _0x5de300=Array['from'](_0x45f138)['filter'](_0xfe5f7e=>function(_0x4172c4,_0x417419){return _0x417419['checkChild'](_0x4172c4['parent'],'listItem')&&!_0x417419['isObject'](_0x4172c4);}(_0xfe5f7e,_0x1d9be9));_0x5de300=_0x5de300['filter'](_0x4ed70c=>!_0x4ed70c['is']('element','listItem')||_0x4ed70c['getAttribute']('listType')!=_0x3acc7a);const _0x1f4ddd=new Set();for(const _0x162488 of _0x5de300)_0x162488['is']('element','listItem')?_0x1f4ddd['add'](Le(_0x162488)):_0x1f4ddd['add'](_0x162488);return Array['from'](_0x1f4ddd);}(_0x2779c6['getSelectedBlocks'](),_0x3c2e1c,_0x55e4cb['model']['schema']);_0x55e4cb['model']['change'](()=>{for(const _0xa93d9e of _0x4cb9d7)_0x4977f4['markBlockFormat'](_0xa93d9e,{'commandName':_0x595fac,'commandParams':[{'forceValue':!_0x24ba3f['value']}],'formatGroupId':'blockName'},Ee(_0xa93d9e));});};}function _0x4f0fd2(_0x1362c3){return()=>{const _0x40528d=function(_0x27cdc4){let _0x33db37=Array['from'](_0x27cdc4);const _0x2fe4ef=_0x33db37['findIndex'](_0x570991=>'listItem'!=_0x570991['name']);return _0x2fe4ef>-0x1&&(_0x33db37=_0x33db37['slice'](0x0,_0x2fe4ef)),_0x33db37;}(_0x55e4cb['model']['document']['selection']['getSelectedBlocks']()),_0x5bbd5a=_0x55e4cb['model']['createRange'](_0x55e4cb['model']['createPositionAt'](_0x40528d[0x0],'before'),_0x55e4cb['model']['createPositionAt'](_0x40528d[_0x40528d['length']-0x1],'end'));_0x55e4cb['model']['change'](()=>{_0x4977f4['markBlockFormat'](_0x5bbd5a,{'commandName':_0x1362c3,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4d234d){const _0x244aa1=new Set();for(const _0x40e5ea of _0x4d234d){let _0x2b7ef4=_0x40e5ea['nextSibling'];for(;_0x2b7ef4&&_0x2b7ef4['getAttribute']('listIndent')>_0x40e5ea['getAttribute']('listIndent');)_0x244aa1['add'](_0x2b7ef4),_0x2b7ef4=_0x2b7ef4['nextSibling'];}return Array['from'](_0x244aa1);}(_0x40528d));});};}_0x4977f4['enableCommand']('numberedList',_0x5e28bf('numberedList')),_0x4977f4['enableCommand']('bulletedList',_0x5e28bf('bulletedList')),_0x4af218&&_0x4977f4['enableCommand']('todoList',_0x5e28bf('todoList')),_0x4977f4['enableCommand']('indentList',_0x4f0fd2('indentList')),_0x4977f4['enableCommand']('outdentList',_0x4f0fd2('outdentList')),_0x4af218&&_0x4977f4['enableCommand']('checkTodoList',()=>{const _0xe56403=_0x55e4cb['commands']['get']('checkTodoList'),_0xf005c3=Array['from'](_0xe56403['_selectedElements']);_0xf005c3['filter'](_0x4ddaa9=>_0x4ddaa9['getAttribute']('todoListChecked')!=_0xe56403['value']),_0x55e4cb['model']['change'](()=>{for(const _0xcc4505 of _0xf005c3)_0x4977f4['markBlockFormat'](_0xcc4505,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xe56403['value']}]});});}),_0x4977f4['descriptionFactory']['registerElementLabel']('listItem',_0x1e1426=>o(_0x41c0cd,'ELEMENT_LIST_ITEM',_0x1e1426)),_0x4977f4['descriptionFactory']['registerDescriptionCallback'](_0x2e8ff4=>{if('formatBlock'!=_0x2e8ff4['type']&&'formatInline'!=_0x2e8ff4['type'])return;const {data:_0x292b1e}=_0x2e8ff4;if(_0x292b1e){if('numberedList'==_0x292b1e['commandName']||'bulletedList'==_0x292b1e['commandName']||'todoList'==_0x292b1e['commandName'])switch(_0x292b1e['commandName']['replace']('List','')){case'bulleted':return _0x1d7992(o(_0x41c0cd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d7992(o(_0x41c0cd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d7992(o(_0x41c0cd,'ELEMENT_TODO_LIST'));}if('indentList'==_0x292b1e['commandName'])return{'type':'format','content':o(_0x41c0cd,'*Indent:*\x20%0',o(_0x41c0cd,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x292b1e['commandName'])return{'type':'format','content':o(_0x41c0cd,'*Outdent:*\x20%0',o(_0x41c0cd,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x292b1e['commandName'])return _0x292b1e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41c0cd,'*Check\x20item*')}:{'type':'format','content':o(_0x41c0cd,'*Uncheck\x20item*')};}function _0x1d7992(_0xa2207f){return{'type':'format','content':o(_0x41c0cd,'*Change\x20to:*\x20%0',_0xa2207f)};}});}}function Le(_0x56bd28){const _0x42478d=_0x56bd28['getAttribute']('listIndent');if(0x0==_0x42478d)return _0x56bd28;let _0x202df7=_0x56bd28;for(;_0x56bd28['previousSibling']&&_0x56bd28['previousSibling']['is']('element','listItem');){const _0x96e41b=_0x56bd28['previousSibling']['getAttribute']('listIndent');if(_0x96e41b==_0x42478d)_0x202df7=_0x56bd28['previousSibling'];else{if(_0x96e41b<_0x42478d)break;}_0x56bd28=_0x56bd28['previousSibling'];}return _0x202df7;}function Ee(_0x1a8b81){const _0x42d5ee=[];if(_0x1a8b81['is']('element','listItem')&&_0x1a8b81['getAttribute']('listIndent')>0x0){let _0x5dd11a=_0x1a8b81['nextSibling'];for(;_0x5dd11a&&'listItem'==_0x5dd11a['name']&&_0x5dd11a['getAttribute']('listIndent')==_0x1a8b81['getAttribute']('listIndent');)_0x42d5ee['push'](_0x5dd11a),_0x5dd11a=_0x5dd11a['nextSibling'];}return _0x42d5ee;}class ht extends _0xacca18{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4ad853=this['editor']['config']['get']('list.properties'),_0x1ec6f8=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ad853['styles']&&_0x1ec6f8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4ad853['reversed']&&_0x1ec6f8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4ad853['startIndex']&&_0x1ec6f8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1ec6f8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xc4085c,_0x518f7e={}){const _0x35c7e3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f5071=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x35c7e3['markMultiRangeBlockFormat'](_0x4f5071,{'commandName':'listStyle','commandParams':[{'type':_0x518f7e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1a41bc,_0x49e82f={}){const _0x5aa0e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4eca78=this['_getSuggestionBlocks'](_0x5b8982=>_0x5b8982['is']('element','listItem')&&'numbered'===_0x5b8982['getAttribute']('listType'));if(_0x4eca78['length']<0x1)return;const _0x1b48c1=_0x4eca78['map'](_0x5a72ea=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a72ea,'before'),this['editor']['model']['createPositionAt'](_0x5a72ea,0x0)));this['editor']['model']['change'](()=>{_0x5aa0e5['markMultiRangeBlockFormat'](_0x1b48c1,{'commandName':'listReversed','commandParams':[{'reversed':_0x49e82f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x140187,_0x547c9d={}){const _0x533253=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8904e5=this['_getSuggestionBlocks'](_0x557caa=>_0x557caa['is']('element','listItem')&&'numbered'===_0x557caa['getAttribute']('listType'));if(_0x8904e5['length']<0x1)return;const _0xd2003b=_0x8904e5['map'](_0x457e4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x457e4,'before'),this['editor']['model']['createPositionAt'](_0x457e4,0x0)));this['editor']['model']['change'](()=>{_0x533253['markMultiRangeBlockFormat'](_0xd2003b,{'commandName':'listStart','commandParams':[{'startIndex':_0x547c9d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5ef19d){if('formatBlock'!=_0x5ef19d['type']&&'formatInline'!=_0x5ef19d['type'])return;const _0x44cb77=this['editor']['locale'],{data:_0x9d8dff}=_0x5ef19d;if(!_0x9d8dff)return;let _0x127cc0,_0x2026f0;switch(_0x9d8dff['commandName']){case'listStyle':_0x127cc0='*Change\x20to:*\x20%0',_0x2026f0={'type':'format','content':o(_0x44cb77,_0x127cc0,o(_0x44cb77,this['_getTranslationKeyForListStyle'](_0x9d8dff['commandParams'][0x0]['type'])))};break;case'listReversed':_0x127cc0=_0x9d8dff['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2026f0={'type':'format','content':o(_0x44cb77,_0x127cc0)};break;case'listStart':_0x127cc0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2026f0={'type':'format','content':o(_0x44cb77,_0x127cc0,_0x9d8dff['commandParams'][0x0]['startIndex'])};}return _0x2026f0;}['_getSuggestionBlocksForListStyle'](){const _0x562738=this['editor']['plugins']['get']('LegacyListUtils');let _0x9e73d0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x9e73d0[0x0]?.['is']('element','listItem')&&_0x9e73d0['unshift'](..._0x562738['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x9e73d0[_0x9e73d0['length']-0x1]?.['is']('element','listItem')&&_0x9e73d0['push'](..._0x562738['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x9e73d0=[...new Set(_0x9e73d0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x9e73d0=_0x9e73d0['filter'](_0x343600=>_0x343600['is']('element','listItem'))),_0x9e73d0;}['_getSuggestionBlocks'](_0x54d315){const _0x1d11c5=this['editor']['plugins']['get']('LegacyListUtils');let _0x2099d6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x54d315)['map'](_0x1aa410=>{const _0x49c2ac=this['editor']['model']['createPositionAt'](_0x1aa410,0x0);return[..._0x1d11c5['getSiblingNodes'](_0x49c2ac,'backward'),..._0x1d11c5['getSiblingNodes'](_0x49c2ac,'forward')];})['flat']();return _0x2099d6=[...new Set(_0x2099d6)],_0x2099d6;}['_getTranslationKeyForListStyle'](_0x5d73b4){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5d73b4)||'default')['toUpperCase']()+'_LIST_'+_0x5d73b4['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xacca18{['afterInit'](){const _0x27c836=this['editor'];if(!_0x27c836['plugins']['has']('MediaEmbedEditing'))return;const _0x3a70c2=_0x27c836['plugins']['get']('TrackChangesEditing'),_0x2278e4=_0x27c836['locale'];_0x3a70c2['enableCommand']('mediaEmbed'),_0x3a70c2['descriptionFactory']['registerElementLabel']('media',_0x40e9e1=>o(_0x2278e4,'ELEMENT_MEDIA',_0x40e9e1)),_0x27c836['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1e03bf,{writer:_0x5a695e,options:_0x27c971})=>{if(_0x27c971['showSuggestionHighlights'])return _0x5a695e['createEmptyElement']('div');},'converterPriority':'high'}),_0x27c836['data']['downcastDispatcher']['on']('attribute:url:media',(_0xcab3c,_0x4adc8d,_0x807bf0)=>{_0x807bf0['options']['showSuggestionHighlights']&&_0xcab3c['stop']();},{'priority':'high'});}}class lt extends _0xacca18{['afterInit'](){const _0x96130c=this['editor'];_0x96130c['plugins']['has']('MentionEditing')&&_0x96130c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xacca18{['afterInit'](){const _0x2bc82c=this['editor'];if(!_0x2bc82c['plugins']['has']('MergeFieldsEditing'))return;const _0x3c3194=_0x2bc82c['plugins']['get']('TrackChangesEditing'),_0x4fbe55=_0x2bc82c['locale'];_0x3c3194['enableCommand']('insertMergeField'),_0x3c3194['enableCommand']('insertMergeFieldBlock'),_0x3c3194['enableCommand']('insertMergeFieldImage'),_0x3c3194['descriptionFactory']['registerElementLabel']('mergeField',_0x3628f4=>o(_0x4fbe55,'ELEMENT_MERGE_FIELD',_0x3628f4)),_0x3c3194['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x29d139=>o(_0x4fbe55,'ELEMENT_MERGE_FIELD',_0x29d139)),_0x3c3194['descriptionFactory']['registerDescriptionCallback'](_0x57a7c2=>{if('insertion'!=_0x57a7c2['type']&&'deletion'!=_0x57a7c2['type'])return;const _0x4f1446=_0x57a7c2['getContainedElement']();if(null==_0x4f1446)return;const _0x430fa7=_0x2bc82c['plugins']['get']('MergeFieldsEditing');let _0x5a493f;switch(_0x430fa7['getMergeFieldType'](_0x4f1446)){case null:return;case'image':{const _0x163ed6=_0x430fa7['unwrapAffixes'](_0x4f1446['getAttribute']('src'));_0x5a493f=_0x430fa7['getLabel'](_0x163ed6)||_0x163ed6;break;}default:{const _0x43971d=_0x4f1446['getAttribute']('id');_0x5a493f=_0x430fa7['getLabel'](_0x43971d)||_0x43971d;break;}}return'insertion'==_0x57a7c2['type']?{'type':'insertion','content':o(_0x4fbe55,'*Insert:*\x20%0','\x22'+_0x5a493f+'\x22\x20'+o(_0x4fbe55,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4fbe55,'*Remove:*\x20%0','\x22'+_0x5a493f+'\x22\x20'+o(_0x4fbe55,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xacca18{['afterInit'](){const _0xf0b1f6=this['editor'],_0x292604=_0xf0b1f6['plugins']['get']('TrackChangesEditing');_0xf0b1f6['plugins']['has']('MultiLevelList')&&(_0x292604['enableDefaultAttributesIntegration']('multiLevelList'),_0x292604['registerBlockAttribute']('listMarkerStyle'),_0x292604['descriptionFactory']['registerDescriptionCallback'](_0x2caad5=>this['handleDescriptions'](_0x2caad5)));}['handleDescriptions'](_0x3ac809){const _0x5f252f=this['editor']['locale'],{data:_0x4aa154}=_0x3ac809,_0x26304f={'type':'format','content':''};if(_0x4aa154&&'listMarkerStyle'==_0x4aa154['key']){if(!_0x4aa154['oldValue'])return{'type':'format','content':o(_0x5f252f,'*Set\x20format:*\x20%0',o(_0x5f252f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4aa154['newValue']+')'};if(!_0x4aa154['newValue']){let _0x17d45c=_0x3ac809['head'];for(;_0x17d45c;){if(_0x17d45c['data']&&'listType'==_0x17d45c['data']['key']&&_0x17d45c['data']['newValue'])return _0x26304f;_0x17d45c=_0x17d45c['next'];}return{'type':'format','content':o(_0x5f252f,'*Remove\x20format:*\x20%0',o(_0x5f252f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4aa154['oldValue']+')'};}}}}class pt extends _0xacca18{['afterInit'](){const _0xe875fb=this['editor'];if(!_0xe875fb['plugins']['has']('PageBreakEditing'))return;_0xe875fb['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3ed0e9=_0xe875fb['plugins']['get']('TrackChangesEditing'),_0x415bc1=_0xe875fb['locale'];_0x3ed0e9['descriptionFactory']['registerElementLabel']('pageBreak',_0x4f1fc4=>o(_0x415bc1,'ELEMENT_PAGE_BREAK',_0x4f1fc4));}}class kt extends _0xacca18{['afterInit'](){const _0x11fd59=this['editor'];if(!_0x11fd59['plugins']['has']('Paragraph'))return;const _0x5d9539=_0x11fd59['locale'],_0x4ce8a9=_0x11fd59['plugins']['get']('TrackChangesEditing');_0x4ce8a9['descriptionFactory']['registerElementLabel']('paragraph',_0x16b522=>o(_0x5d9539,'ELEMENT_PARAGRAPH',_0x16b522)),_0x4ce8a9['enableDefaultAttributesIntegration']('paragraph'),_0x4ce8a9['enableCommand']('insertParagraph'),_0x11fd59['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x11fd59),{'priority':'highest'}),_0x11fd59['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x24afcc,_0x162b7f,_0x409dd3)=>{_0x409dd3['options']['showSuggestionHighlights']&&nr(_0x11fd59,{'showActiveMarker':!0x1})(_0x24afcc,_0x162b7f,_0x409dd3);},{'priority':'highest'});const _0x1c0f9f=_0x4ce8a9['descriptionFactory'];_0x1c0f9f['registerDescriptionCallback'](_0x54d138=>{if('insertion'!==_0x54d138['type'])return;const {start:_0x15cbc6,end:_0x2b0051}=_0x54d138['getFirstRange']();if(!_0x15cbc6['isTouching'](_0x2b0051)||!_0x15cbc6['nodeAfter'])return;const _0x32fc25=_0x11fd59['model']['schema'],_0x5aff26=_0x15cbc6['nodeAfter'];return _0x32fc25['isBlock'](_0x5aff26)&&!_0x32fc25['isLimit'](_0x5aff26)&&_0x32fc25['checkChild'](_0x5aff26,'$text')?{'type':'insertion','content':o(_0x5d9539,'*Insert:*\x20%0',_0x1c0f9f['getItemLabel'](_0x5aff26,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f3f2c=this['editor'],_0x37842b=_0x3f3f2c['locale'];_0x3f3f2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34cbb1=>{if('formatBlock'!=_0x34cbb1['type'])return;const {data:_0x24c716}=_0x34cbb1;return _0x24c716&&'paragraph'==_0x24c716['commandName']?{'type':'format','content':o(_0x37842b,'*Change\x20to:*\x20%0',o(_0x37842b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x596a58,{showActiveMarker:_0x30468d=!0x0}={}){return(_0x4faba0,_0x58bdf3,_0x41ffa1)=>{const _0x1ec1bc=_0x596a58['plugins']['get']('TrackChangesEditing'),_0x4be273=_0x58bdf3['markerRange']['start'],_0x38c84c=_0x58bdf3['markerRange']['end'],_0x6979bc=_0x596a58['model']['schema'];if(!_0x4be273['isTouching'](_0x38c84c)||!_0x4be273['nodeAfter'])return;const _0x50188e=_0x4be273['nodeAfter'];if(_0x6979bc['isBlock'](_0x50188e)&&!_0x6979bc['isLimit'](_0x50188e)&&_0x6979bc['checkChild'](_0x50188e,'$text')){if(!_0x41ffa1['consumable']['consume'](_0x58bdf3['markerRange'],_0x4faba0['name']))return;const {id:_0x2ed428,authorId:_0x28a0b9}=_0x1ec1bc['_splitMarkerName'](_0x58bdf3['markerName']),_0x46fa9c=_0x41ffa1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2ed428,'data-author-id':_0x28a0b9}),_0x5c4d25=_0x41ffa1['mapper']['toViewPosition'](_0x38c84c);_0x30468d&&_0x1ec1bc['activeMarkers']['includes'](_0x58bdf3['markerName'])&&_0x41ffa1['writer']['addClass']('ck-suggestion-marker--active',_0x46fa9c),_0x41ffa1['writer']['insert'](_0x5c4d25,_0x46fa9c),_0x41ffa1['mapper']['bindElementToMarker'](_0x46fa9c,_0x58bdf3['markerName']);}};}class wt extends _0xacca18{['afterInit'](){const _0x131919=this['editor'];_0x131919['commands']['get']('replaceSource')&&_0x131919['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xacca18{['afterInit'](){const _0x3401fe=this['editor'];if(!_0x3401fe['plugins']['has']('RemoveFormatEditing'))return;_0x3401fe['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18b9a1=this['editor'];_0x18b9a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b3708=>{if('formatBlock'!=_0x5b3708['type']&&'formatInline'!=_0x5b3708['type'])return;const {data:_0x30f90a}=_0x5b3708;return _0x30f90a&&'removeFormat'==_0x30f90a['commandName']?{'type':'format','content':o(_0x18b9a1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xacca18{['afterInit'](){const _0x2846e9=this['editor'];if(!_0x2846e9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x43d12a=_0x2846e9['plugins']['get']('TrackChangesEditing');_0x43d12a['enableCommand']('goToPreviousRestrictedEditingException'),_0x43d12a['enableCommand']('goToNextRestrictedEditingException');const _0x16e016=_0x2846e9['plugins']['get']('RestrictedEditingModeEditing');_0x16e016['enableCommand']('trackChanges'),_0x16e016['enableCommand']('acceptSuggestion'),_0x16e016['enableCommand']('discardSuggestion'),_0x16e016['enableCommand']('acceptAllSuggestions'),_0x16e016['enableCommand']('discardAllSuggestions'),_0x16e016['enableCommand']('acceptSelectedSuggestions'),_0x16e016['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xacca18{['afterInit'](){const _0x127854=this['editor'];if(!_0x127854['plugins']['has']('ShiftEnter'))return;const _0x1bc7ff=_0x127854['plugins']['get']('TrackChangesEditing');_0x1bc7ff['enableCommand']('shiftEnter'),_0x127854['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x127854),{'priority':'high'}),_0x127854['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x127854),{'priority':'high'}),_0x127854['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x54c4ab,_0x220670,_0x9e88ad)=>{_0x9e88ad['options']['showSuggestionHighlights']&&je(_0x127854,{'showActiveMarker':!0x1})(_0x54c4ab,_0x220670,_0x9e88ad);}),_0x1bc7ff['descriptionFactory']['registerElementLabel']('softBreak',_0x243c24=>o(_0x127854['locale'],'ELEMENT_LINE_BREAK',_0x243c24));}}function je(_0xda02f6,{showActiveMarker:_0x418e4c=!0x0}={}){return(_0xc60e2f,_0x5c399f,_0x5b3b1d)=>{const _0x4a42d9=_0xda02f6['plugins']['get']('TrackChangesEditing');if(!_0x5b3b1d['consumable']['test'](_0x5c399f['markerRange'],_0xc60e2f['name']))return;const _0x360c64=_0xda02f6['model'];for(const _0x2d1d77 of _0x5c399f['markerRange']['getItems']()){if(!_0x2d1d77['is']('element','softBreak'))continue;const _0x345d1a='deletion'==_0x5c399f['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x23cd78,authorId:_0x3278fe}=_0x4a42d9['_splitMarkerName'](_0x5c399f['markerName']),_0x55b116=_0x5b3b1d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x345d1a,'data-suggestion':_0x23cd78,'data-author-id':_0x3278fe}),_0x21c84c=_0x5b3b1d['mapper']['toViewPosition'](_0x360c64['createPositionBefore'](_0x2d1d77));_0x418e4c&&_0x4a42d9['activeMarkers']['includes'](_0x5c399f['markerName'])&&_0x5b3b1d['writer']['addClass']('ck-suggestion-marker--active',_0x55b116),_0x5b3b1d['writer']['insert'](_0x21c84c,_0x55b116),_0x5b3b1d['mapper']['bindElementToMarker'](_0x55b116,_0x5c399f['markerName']);}};}class St extends _0xacca18{['afterInit'](){const _0x3bc5f5=this['editor'],_0x26ab0c=_0x3bc5f5['model'],_0x1e2331=_0x3bc5f5['locale'];if(!_0x3bc5f5['plugins']['has']('StandardEditingModeEditing'))return;const _0x324ef6=_0x3bc5f5['plugins']['get']('TrackChangesEditing'),_0x3b8e28='restrictedEditingException',_0x5c356d=_0x3bc5f5['commands']['get'](_0x3b8e28);_0x324ef6['enableCommand'](_0x3b8e28,(_0x5c3665,_0x26ba06={})=>{const _0x1190c2=_0x26ab0c['document']['selection'];if(_0x1190c2['isCollapsed'])return void _0x5c3665(_0x26ba06);const _0x2afdc8=void 0x0!==_0x26ba06['forceValue']?_0x26ba06['forceValue']:!_0x5c356d['value'];_0x26ab0c['change'](()=>{const _0x471b21=Array['from'](_0x1190c2['getRanges']());for(const _0x263a91 of _0x471b21){const _0x958128=_0x2afdc8?[_0x263a91]:io(_0x3b8e28,_0x263a91,_0x26ab0c);for(const _0x3cefd2 of _0x958128)_0x324ef6['markInlineFormat'](_0x3cefd2,{'commandName':_0x3b8e28,'commandParams':[{'forceValue':_0x2afdc8}]});}});}),_0x324ef6['descriptionFactory']['registerDescriptionCallback'](_0x854231=>{if('formatBlock'!=_0x854231['type']&&'formatInline'!=_0x854231['type'])return;const {data:_0x28c522}=_0x854231;return _0x28c522&&_0x28c522['commandName']==_0x3b8e28?_0x28c522['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e2331,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1e2331,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xacca18{['afterInit'](){const _0x438e9=this['editor'];if(!_0x438e9['plugins']['has']('Style')||!_0x438e9['plugins']['has']('DataSchema'))return;const _0x2868b5=_0x438e9['plugins']['get']('TrackChangesEditing'),_0x8d0704=_0x438e9['locale'],_0x311703=_0x438e9['config']['get']('style')||{},_0xb22e6b=_0x438e9['plugins']['get']('GeneralHtmlSupport'),_0x3180eb=_0x438e9['plugins']['get']('StyleUtils')['normalizeConfig'](_0x438e9['plugins']['get']('DataSchema'),_0x311703['definitions']);_0x2868b5['enableDefaultAttributesIntegration']('style');const _0x3774d4=new Set();for(const _0x3b406b of _0x3180eb['block']){const _0x436a93=_0xb22e6b['getGhsAttributeNameForElement'](_0x3b406b['element']);_0x3774d4['add'](_0x436a93);}const _0x1f9a35=new Set();for(const _0x43fbc2 of _0x3180eb['inline']){const _0x54029c=_0xb22e6b['getGhsAttributeNameForElement'](_0x43fbc2['element']);_0x1f9a35['add'](_0x54029c);for(const _0xf30e31 of _0x43fbc2['ghsAttributes'])_0x1f9a35['add'](_0xf30e31);}for(const _0x6834f9 of _0x3774d4)_0x2868b5['registerBlockAttribute'](_0x6834f9),_0x2868b5['descriptionFactory']['registerAttributeLabel'](_0x6834f9,o(_0x8d0704,'FORMAT_STYLE'));for(const _0xb549be of _0x1f9a35)_0x2868b5['registerInlineAttribute'](_0xb549be),_0x2868b5['descriptionFactory']['registerAttributeLabel'](_0xb549be,o(_0x8d0704,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa3b43d=this['editor'],_0x524c18=_0xa3b43d['locale'];_0xa3b43d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x498d86=>{if('formatBlock'!=_0x498d86['type']&&'formatInline'!=_0x498d86['type'])return;const {data:_0x50a571}=_0x498d86;return _0x50a571&&'style'===_0x50a571['commandName']?_0x50a571['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x524c18,'*Set\x20format:*\x20%0',_0x50a571['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x524c18,'*Remove\x20format:*\x20%0',_0x50a571['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xacca18{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x121427){super(_0x121427),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x82470=this['editor'],_0x199f76=_0x82470['model']['document']['selection'];if(!_0x82470['plugins']['has']('TableEditing'))return;const _0x1c1c23=_0x82470['locale'],_0x3f5132=_0x82470['plugins']['get']('TrackChangesEditing'),_0x132d42=_0x82470['plugins']['get']('TableUtils');_0x3f5132['descriptionFactory']['registerElementLabel']('table',_0x4e2d98=>o(_0x1c1c23,'ELEMENT_TABLE',_0x4e2d98)),this['_setupColumnsRowsFixing'](),_0x3f5132['enableCommand']('insertTable'),_0x3f5132['enableCommand']('selectTableRow'),_0x3f5132['enableCommand']('selectTableColumn');for(const _0x14754d of['insertTableRowAbove','insertTableRowBelow']){const _0x2a4dd2=_0x82470['commands']['get'](_0x14754d);_0x3f5132['enableCommand'](_0x14754d,_0x3af0f7=>{_0x82470['model']['change'](_0x10e81d=>{_0x3af0f7();const _0x13b683='above'===_0x2a4dd2['order'],_0xeafd98=_0x132d42['getSelectionAffectedTableCells'](_0x199f76),_0x16e20a=_0x132d42['getRowIndexes'](_0xeafd98),_0x29b9b4=_0x13b683?_0x16e20a['first']-0x1:_0x16e20a['last']+0x1,_0x6b6c08=_0xeafd98[0x0]['findAncestor']('table'),_0x11e723=_0x132d42['createTableWalker'](_0x6b6c08,{'startRow':_0x29b9b4,'endRow':_0x29b9b4}),_0x12766c=Array['from'](_0x11e723)['map'](_0x4eb67e=>_0x10e81d['createRangeOn'](_0x4eb67e['cell']));_0x3f5132['markMultiRangeInsertion'](_0x12766c,'tableRow');});});}for(const _0x5c38cf of['insertTableColumnLeft','insertTableColumnRight']){const _0x185239=_0x82470['commands']['get'](_0x5c38cf);_0x3f5132['enableCommand'](_0x5c38cf,_0xefa141=>{_0x82470['model']['change'](_0x4dc25b=>{_0xefa141();const _0x564066='left'===_0x185239['order'],_0x3a0643=_0x132d42['getSelectionAffectedTableCells'](_0x199f76),_0x2439cd=_0x132d42['getColumnIndexes'](_0x3a0643),_0x41ccf0=_0x564066?_0x2439cd['first']-0x1:_0x2439cd['last']+0x1,_0x4994b6=_0x3a0643[0x0]['findAncestor']('table'),_0x7c9ed=_0x132d42['createTableWalker'](_0x4994b6,{'startRow':0x0,'column':_0x41ccf0,'includeAllSlots':!0x1}),_0x1f6426=Array['from'](_0x7c9ed)['map'](_0x32e536=>_0x4dc25b['createRangeOn'](_0x32e536['cell']));_0x3f5132['markMultiRangeInsertion'](_0x1f6426,'tableColumn');});});}for(const _0x218682 of['removeTableRow','removeTableColumn']){const _0x3d306e=_0x218682['substr'](0xb),_0x1d50cf=_0x3d306e['toLowerCase'](),_0x209912=_0x1d50cf['substr'](0x0,0x3)+'span',_0x3782a9='table'+_0x3d306e,_0x356b16='min'+_0x3d306e,_0x1919cf='max'+_0x3d306e;_0x3f5132['enableCommand'](_0x218682,()=>{_0x82470['model']['change'](_0xf03bcf=>{const _0x3423cf=_0x132d42['getSelectionAffectedTableCells'](_0x199f76),_0x5de7b3=_0x3423cf[0x0]['findAncestor']('table');let _0x1d52bf;if('removeTableRow'==_0x218682){const _0x28a2de=_0x132d42['getRowIndexes'](_0x3423cf);_0x1d52bf={'startRow':_0x28a2de['first'],'endRow':_0x28a2de['last'],'includeAllSlots':!0x0};}else{const _0x29a16a=_0x132d42['getColumnIndexes'](_0x3423cf);_0x1d52bf={'startColumn':_0x29a16a['first'],'endColumn':_0x29a16a['last'],'includeAllSlots':!0x0};}const _0x23174a=_0x132d42['createTableWalker'](_0x5de7b3,_0x1d52bf),_0x554cbf=Array['from'](_0x23174a)['map'](({cell:_0x513018})=>_0x513018),_0x2862ae=Ne(_0x554cbf['filter'](_0x3859da=>_0x3859da['hasAttribute'](_0x209912))),_0x35e4fb=Ne(_0x554cbf['filter'](_0x536b71=>!_0x536b71['hasAttribute'](_0x209912)))['map'](_0x3c1868=>_0xf03bcf['createRangeOn'](_0x3c1868)),_0x47517c=_0x3f5132['markMultiRangeDeletion'](_0x35e4fb,_0x3782a9);if(_0x47517c&&('tableRow'==_0x47517c['subType']||'tableColumn'==_0x47517c['subType'])){const _0x22421f=this['_getSuggestionCoords'](_0x47517c);for(const _0x4310b5 of _0x2862ae){const _0x1532e6=_0xf03bcf['createRangeOn'](_0x4310b5),_0x241274=_0x132d42['getCellLocation'](_0x4310b5),_0xc5e82a=_0x4310b5['getAttribute'](_0x209912)-0x1,_0x841700=_0x22421f[_0x356b16],_0xdcac99=_0x22421f[_0x1919cf];_0x841700<=_0x241274[_0x1d50cf]&&_0x241274[_0x1d50cf]+_0xc5e82a<=_0xdcac99&&_0x47517c['addRange'](_0x1532e6);}}});});}function _0x2c515f(_0x5a8577){const _0x5b1a5a=Array['from'](_0x199f76['getRanges']())['map'](_0x1ae791=>_0x171836['fromRange'](_0x1ae791));_0x82470['model']['change'](_0x40110b=>{const _0x26229b=_0x40110b['batch'];_0x5a8577=_0x5a8577['filter'](_0x8d9ee6=>'$graveyard'!=_0x8d9ee6['root']['rootName']),_0x40110b['setSelection'](_0x5a8577),_0x82470['commands']['get']('removeTableRow')['refresh'](),_0x82470['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x82470['model']['enqueueChange'](()=>{_0x82470['model']['enqueueChange'](_0x26229b,_0x279171=>{const _0x14e68a=_0x5b1a5a['filter'](_0x84fd6c=>'$graveyard'!=_0x84fd6c['root']['rootName']);_0x14e68a['length']>0x0&&_0x279171['setSelection'](_0x14e68a);for(const _0x3a3716 of _0x5b1a5a)_0x3a3716['detach']();});});});}function _0x3d78c4(_0x329208){_0x82470['model']['change'](_0x4a9ef2=>{const _0x29d5c0=Array['from'](_0x199f76['getRanges']())['map'](_0x469072=>_0x171836['fromRange'](_0x469072)),_0x18910b=[];for(const _0x126939 of _0x329208)for(const _0x1d4303 of _0x126939['getItems']({'shallow':!0x0}))_0x18910b['push'](_0x1d4303);for(const _0xf822a6 of _0x18910b)'$graveyard'!=_0xf822a6['root']['rootName']&&(_0x4a9ef2['setSelection'](_0x4a9ef2['createPositionAt'](_0xf822a6,0x0)),_0x82470['commands']['get']('removeTableColumn')['refresh'](),_0x82470['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2b4e1f=_0x29d5c0['filter'](_0x5ee007=>'$graveyard'!=_0x5ee007['root']['rootName']);_0x2b4e1f['length']>0x0&&_0x4a9ef2['setSelection'](_0x2b4e1f);for(const _0x1a0b1a of _0x29d5c0)_0x1a0b1a['detach']();});}function _0x13ac81(_0x4a84b7,_0x21f37f){return _0x21f37f['every'](_0x181f97=>_0x4a84b7['some'](_0x1a1a5f=>_0x1a1a5f['end']['isEqual'](_0x181f97['start'])||_0x181f97['end']['isEqual'](_0x1a1a5f['start'])));}function _0x4c3239(_0x498886,_0x493c18){return!_0x498886['some'](_0x3e6eed=>_0x493c18['some'](_0xf2c140=>_0x3e6eed['isIntersecting'](_0xf2c140)))&&_0x498886['some'](_0x359db3=>_0x493c18['some'](_0x44383a=>_0x359db3['end']['isTouching'](_0x44383a['start'])));}_0x82470['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1cbc46,_0x4be634,_0x3178cb)=>{if(!_0x3178cb['options']['showSuggestionHighlights'])return;const _0x582f61=_0x4be634['item'];if(!_0x582f61||!_0x582f61['is']('element','tableCell'))return;const _0x5ee511=_0x3178cb['mapper']['toViewElement'](_0x582f61);if(_0x5ee511){const {id:_0x4df0a6,authorId:_0x2bf15a}=_0x3f5132['_splitMarkerName'](_0x4be634['markerName']);_0x2786a8(_0x5ee511,_0x3178cb['writer'],(_0x5b9881,_0x134c4e,_0x41c4ba)=>{_0x41c4ba['addClass'](_0x459417(_0x134c4e['classes']),_0x5b9881),_0x41c4ba['setAttribute']('data-suggestion-id',_0x4df0a6,_0x5b9881),_0x41c4ba['setAttribute']('data-author-id',_0x2bf15a,_0x5b9881);},(_0x113ccd,_0x3886da,_0x4473cd)=>{_0x4473cd['removeClass'](_0x459417(_0x3886da['classes']),_0x113ccd),_0x4473cd['removeAttribute']('data-suggestion-id',_0x113ccd),_0x4473cd['removeAttribute']('data-author-id',_0x113ccd);});}},{'priority':'highest'}),_0x3f5132['descriptionFactory']['registerDescriptionCallback'](_0x19ee95=>{if('insertion'!=_0x19ee95['type']&&'deletion'!=_0x19ee95['type'])return;const _0x27036e=_0x19ee95['getContainedElement']();if(null!=_0x27036e&&_0x27036e['is']('element','table')){if('insertion'==_0x19ee95['type']){const _0x24a53f=_0x19ee95['getItems']()['filter'](_0x991fc0=>_0x991fc0['is']('$textProxy'))['map'](_0x563029=>_0x563029['data']);if(_0x24a53f['length'])return{'type':'insertion','content':o(_0x1c1c23,'*Insert:*\x20%0',o(_0x1c1c23,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x24a53f['join']('\x20')+'\x22'))};}if('deletion'==_0x19ee95['type']){const _0x2eba2c=_0x19ee95['getItems']()['filter'](_0x2c2c6b=>_0x2c2c6b['is']('$textProxy'))['map'](_0x5edfad=>_0x5edfad['data']);if(_0x2eba2c['length'])return{'type':'deletion','content':o(_0x1c1c23,'*Remove:*\x20%0',o(_0x1c1c23,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2eba2c['join']('\x20')+'\x22'))};}}}),_0x3f5132['descriptionFactory']['registerDescriptionCallback'](_0x3c17b8=>{if('tableRow'==_0x3c17b8['subType']){const _0x40aada=_0x3c17b8['getItems']()['filter'](_0x8aa5cb=>_0x8aa5cb['is']('$textProxy'))['map'](_0x11d2fe=>_0x11d2fe['data']),_0x43072a=this['_getSuggestionCoords'](_0x3c17b8),_0xfa23a0=_0x43072a['maxRow']-_0x43072a['minRow']+0x1;if('insertion'==_0x3c17b8['type'])return _0x40aada['length']?{'type':'insertion','content':o(_0x1c1c23,'*Insert:*\x20%0',o(_0x1c1c23,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xfa23a0,'\x22'+_0x40aada['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1c1c23,'*Insert:*\x20%0',o(_0x1c1c23,'ELEMENT_TABLE_ROW',_0xfa23a0))};if('deletion'==_0x3c17b8['type'])return _0x40aada['length']?{'type':'deletion','content':o(_0x1c1c23,'*Remove:*\x20%0',o(_0x1c1c23,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xfa23a0,'\x22'+_0x40aada['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1c1c23,'*Remove:*\x20%0',o(_0x1c1c23,'ELEMENT_TABLE_ROW',_0xfa23a0))};}if('tableColumn'==_0x3c17b8['subType']){const _0x51645e=_0x3c17b8['getItems']()['filter'](_0x5115be=>_0x5115be['is']('$textProxy'))['map'](_0x1edc8d=>_0x1edc8d['data']),_0x2cc741=this['_getSuggestionCoords'](_0x3c17b8),_0x45cd17=_0x2cc741['maxColumn']-_0x2cc741['minColumn']+0x1;if('insertion'==_0x3c17b8['type'])return _0x51645e['length']?{'type':'insertion','content':o(_0x1c1c23,'*Insert:*\x20%0',o(_0x1c1c23,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x45cd17,'\x22'+_0x51645e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1c1c23,'*Insert:*\x20%0',o(_0x1c1c23,'ELEMENT_TABLE_COLUMN',_0x45cd17))};if('deletion'==_0x3c17b8['type'])return _0x51645e['length']?{'type':'deletion','content':o(_0x1c1c23,'*Remove:*\x20%0',o(_0x1c1c23,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x45cd17,'\x22'+_0x51645e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1c1c23,'*Remove:*\x20%0',o(_0x1c1c23,'ELEMENT_TABLE_COLUMN',_0x45cd17))};}}),_0x3f5132['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2c515f),_0x3f5132['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2c515f),_0x3f5132['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3d78c4),_0x3f5132['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3d78c4),_0x3f5132['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x13ac81),_0x3f5132['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x13ac81),_0x3f5132['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4c3239),_0x3f5132['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4c3239);}['_acceptFormatSuggestionCallbackFactory'](){const _0x49faf3=this['editor'],_0x3c9855=_0x49faf3['model']['document']['selection'];return(_0x42123a,_0x1a33cd)=>{_0x49faf3['model']['change'](_0x2bef4f=>{const {commandName:_0x5293a1,commandParams:_0x11e02b}=_0x1a33cd;let _0x29218e=_0x42123a[0x0]['end']['nodeBefore'];_0x11e02b&&_0x11e02b[0x0]&&!0x1===_0x11e02b[0x0]['forceValue']&&(_0x29218e=_0x42123a[0x0]['start']['nodeAfter']);const _0x46236a=_0x2bef4f['createRangeIn'](_0x29218e);if('$graveyard'==_0x46236a['root']['rootName'])return;const _0x2f130a=Array['from'](_0x3c9855['getRanges']())['map'](_0x360fea=>_0x171836['fromRange'](_0x360fea));_0x2bef4f['setSelection'](_0x46236a),_0x49faf3['commands']['get'](_0x5293a1)['refresh'](),_0x11e02b['push']({'forceDefaultExecution':!0x0}),_0x49faf3['execute'](_0x5293a1,..._0x11e02b);const _0x46b62a=_0x2f130a['filter'](_0x2f8602=>'$graveyard'!=_0x2f8602['root']['rootName']);_0x46b62a['length']>0x0&&_0x2bef4f['setSelection'](_0x46b62a);for(const _0x3bbf51 of _0x2f130a)_0x3bbf51['detach']();});};}['_getCoordsForCells'](_0x626587){const _0x496de5=this['editor']['plugins']['get']('TableUtils');let _0x5e614c=Number['MAX_SAFE_INTEGER'],_0x36c5e9=Number['MIN_SAFE_INTEGER'],_0x5dcf11=Number['MAX_SAFE_INTEGER'],_0x3f0297=Number['MIN_SAFE_INTEGER'];for(const _0x4e7114 of _0x626587){if('$graveyard'==_0x4e7114['root']['rootName'])continue;const {row:_0x584b15,column:_0x490887}=_0x496de5['getCellLocation'](_0x4e7114),_0x10de8b=_0x4e7114['hasAttribute']('rowspan')?_0x4e7114['getAttribute']('rowspan')-0x1:0x0,_0x5cb654=_0x4e7114['hasAttribute']('colspan')?_0x4e7114['getAttribute']('colspan')-0x1:0x0;_0x5e614c=_0x584b15<_0x5e614c?_0x584b15:_0x5e614c,_0x36c5e9=_0x584b15+_0x10de8b>_0x36c5e9?_0x584b15+_0x10de8b:_0x36c5e9,_0x5dcf11=_0x490887<_0x5dcf11?_0x490887:_0x5dcf11,_0x3f0297=_0x490887+_0x5cb654>_0x3f0297?_0x490887+_0x5cb654:_0x3f0297;}return{'minRow':_0x5e614c,'maxRow':_0x36c5e9,'minColumn':_0x5dcf11,'maxColumn':_0x3f0297};}['_setupColumnsRowsFixing'](){const _0x3ff3cb=this['editor'],_0x3c5570=_0x3ff3cb['plugins']['get']('TrackChangesEditing'),_0x26609e=_0x3ff3cb['plugins']['get']('TableUtils');_0x3ff3cb['model']['document']['on']('change:data',()=>{const _0x3db8b4=Array['from'](_0x3ff3cb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x6d66e2,data:_0x2b94ea}of _0x3db8b4){const {group:_0x54b00e,id:_0x57a9d6,subType:_0xef27b9}=_0x3c5570['_splitMarkerName'](_0x6d66e2);if('suggestion'!=_0x54b00e)continue;if(null!=_0x2b94ea['oldRange'])continue;const _0x2ada7c=_0x3c5570['getSuggestion'](_0x57a9d6);this['_tablePostFixingSubtypes']['includes'](_0xef27b9)&&this['_tableSuggestions']['add'](_0x2ada7c);}},{'priority':'low'});const _0x47c983=(_0x671047,_0x462f61)=>{let _0x1f3fe1=!0x1;const _0x5473a7=_0x462f61['createRangeOn'](_0x671047),_0x23a0cb=_0x671047['findAncestor']('table'),_0x27ee26=_0x26609e['getCellLocation'](_0x671047);for(const _0x30aa21 of this['_tableSuggestions']){const _0x5c16ca=_0x30aa21['subType'],_0x246f5f=_0x5c16ca['startsWith']('tablePaste'),_0x26ce17=_0x5c16ca['substr'](_0x246f5f?0xa:0x5),_0x2eb563=_0x26ce17['toLowerCase'](),_0x27fb71=_0x2eb563['substr'](0x0,0x3)+'span',_0x4f44a7='min'+_0x26ce17,_0x173b51='max'+_0x26ce17;if(!_0x30aa21['isInContent'])continue;if(_0x23a0cb!=_0x30aa21['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x30aa21['isIntersectingWithRange'](_0x5473a7))continue;const _0x5c633a=_0x671047['hasAttribute'](_0x27fb71)?_0x671047['getAttribute'](_0x27fb71)-0x1:0x0,_0x4e0761=this['_getSuggestionCoords'](_0x30aa21),_0x237858=_0x4e0761[_0x4f44a7],_0x36891f=_0x4e0761[_0x173b51];_0x237858<=_0x27ee26[_0x2eb563]&&_0x27ee26[_0x2eb563]+_0x5c633a<=_0x36891f&&(_0x30aa21['addRange'](_0x5473a7),_0x1f3fe1=!0x0);}return _0x1f3fe1;};_0x3ff3cb['model']['document']['registerPostFixer'](_0x122b82=>{let _0x45d4a8=!0x1;for(const _0x293ae5 of _0x3ff3cb['model']['document']['differ']['getChanges']())if('insert'==_0x293ae5['type']){if('tableRow'==_0x293ae5['name']){for(const _0x4a7f93 of _0x293ae5['position']['nodeAfter']['getChildren']())_0x45d4a8=_0x45d4a8||_0x47c983(_0x4a7f93,_0x122b82);}else'tableCell'==_0x293ae5['name']&&(_0x45d4a8=_0x45d4a8||_0x47c983(_0x293ae5['position']['nodeAfter'],_0x122b82));}return _0x45d4a8;});}['_getSuggestionCoords'](_0x4981f7){return this['_getCoordsForCells'](_0x4981f7['getRanges']()['map'](_0x259cba=>_0x259cba['start']['nodeAfter']));}}function Ne(_0xbfb207){return Array['from'](new Set(_0xbfb207)['values']());}class _t extends _0xacca18{static get['requires'](){return[At];}['afterInit'](){const _0x142aeb=this['editor'],_0xcd3a27=_0x142aeb['model']['document']['selection'],_0x3c6956=_0x142aeb['locale'];if(!_0x142aeb['plugins']['has']('TableEditing'))return;const _0x3a60e6=_0x142aeb['plugins']['get']('TrackChangesEditing'),_0x13268f=_0x142aeb['plugins']['get']('TableUtils'),_0x654bc0=_0x142aeb['plugins']['get'](At);_0x654bc0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3a60e6['enableCommand']('mergeTableCells',()=>{const _0x23d1e8=_0x13268f['getSelectionAffectedTableCells'](_0x142aeb['model']['document']['selection']);_0x142aeb['model']['change'](()=>{_0x3a60e6['markMultiRangeBlockFormat'](_0x23d1e8,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x142aeb['commands']['get']('mergeTableCells')['on']('execute',(_0x5cf9ab,_0x22e9b9)=>{_0x142aeb['commands']['get']('trackChanges')['value']&&(_0x22e9b9['length']>0x0&&_0x22e9b9[_0x22e9b9['length']-0x1]&&_0x22e9b9[_0x22e9b9['length']-0x1]['forceDefaultExecution']||_0x3a60e6['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5cf9ab['stop']());},{'priority':'highest'});for(const _0x45a100 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x43849b=_0x142aeb['commands']['get'](_0x45a100);_0x3a60e6['enableCommand'](_0x45a100,()=>{const _0x220e51=_0x142aeb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1811dd=>_0x1811dd['is']('element','tableCell')),_0x584b86=_0x43849b['value'];_0x142aeb['model']['change'](()=>{_0x3a60e6['markMultiRangeBlockFormat']([_0x220e51,_0x584b86],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1a9dcc of['splitTableCellVertically','splitTableCellHorizontally']){const _0x29ed86=_0x142aeb['commands']['get'](_0x1a9dcc);_0x3a60e6['enableCommand'](_0x1a9dcc,()=>{const _0x5afe0d=_0x13268f['getSelectionAffectedTableCells'](_0x142aeb['model']['document']['selection'])[0x0],_0x5f07a0=_0x5afe0d['findAncestor']('table'),{column:_0x54f0aa,row:_0x57dda2}=_0x13268f['getCellLocation'](_0x5afe0d);let _0x1fdf04=[];if('horizontally'==_0x29ed86['direction']){const _0x2a92a8=_0x13268f['createTableWalker'](_0x5f07a0,{'startRow':_0x57dda2,'endRow':_0x57dda2,'includeAllSlots':!0x0});_0x1fdf04=Array['from'](_0x2a92a8)['map'](_0x1b2509=>_0x1b2509['cell']);}else{const _0xba5781=_0x13268f['createTableWalker'](_0x5f07a0,{'column':_0x54f0aa,'includeAllSlots':!0x0});_0x1fdf04=Array['from'](_0xba5781)['map'](_0x30f638=>_0x30f638['cell']);}_0x142aeb['model']['change'](_0x4e5408=>{_0x3a60e6['markBlockFormat'](_0x4e5408['createRangeOn'](_0x5afe0d),{'commandName':_0x1a9dcc,'commandParams':[]},_0x1fdf04,_0x1a9dcc);});});}_0x3a60e6['descriptionFactory']['registerDescriptionCallback'](_0x16fca4=>{if('formatBlock'!=_0x16fca4['type']&&'formatInline'!=_0x16fca4['type'])return;const {data:_0x28d66b}=_0x16fca4;return _0x28d66b&&'mergeTableCells'==_0x28d66b['commandName']?{'type':'format','content':o(_0x3c6956,'*Merge\x20cells*')}:void 0x0;}),_0x3a60e6['descriptionFactory']['registerDescriptionCallback'](_0x4627b4=>{if('formatBlock'!=_0x4627b4['type']&&'formatInline'!=_0x4627b4['type'])return;const {data:_0x4e1def}=_0x4627b4;return _0x4e1def?'splitTableCellVertically'==_0x4e1def['commandName']?{'type':'format','content':o(_0x3c6956,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4e1def['commandName']?{'type':'format','content':o(_0x3c6956,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3564f9=_0x654bc0['_acceptFormatSuggestionCallbackFactory']();for(const _0x203bf4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3a60e6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x203bf4,'accept',_0x3564f9);for(const _0x40e4ba of['splitTableCellVertically','splitTableCellHorizontally'])_0x3a60e6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x40e4ba,'accept',_0x3564f9);_0x3a60e6['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x45961c=>{_0x142aeb['model']['change'](_0x272efa=>{const _0x273c92=Array['from'](_0xcd3a27['getRanges']())['map'](_0x443423=>_0x171836['fromRange'](_0x443423));_0x272efa['setSelection'](_0x45961c),_0x142aeb['commands']['get']('mergeTableCells')['refresh'](),_0x142aeb['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4e6ad4=_0x273c92['filter'](_0x19f082=>'$graveyard'!=_0x19f082['root']['rootName']);_0x4e6ad4['length']>0x0&&_0x272efa['setSelection'](_0x4e6ad4);for(const _0x357109 of _0x273c92)_0x357109['detach']();});});for(const _0x530e5c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1e8c28=_0x142aeb['commands']['get'](_0x530e5c);_0x1e8c28['on']('set:isEnabled',(_0x3327ca,_0x359f59,_0xd0946e)=>{if(_0xd0946e){const _0x155422=_0x142aeb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x38ab11=>_0x38ab11['is']('element','tableCell'));this['_areMergableCells'](_0x1e8c28['value'],_0x155422)||(_0x3327ca['return']=!0x1,_0x3327ca['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x13bc09=this['editor']['commands']['get']('mergeTableCells'),_0x3b52c4=this['editor']['plugins']['get']('TableUtils');if(!_0x13bc09['isEnabled'])return!0x1;const _0x2f7347=_0x3b52c4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xf68dc1 of _0x2f7347)for(const _0x30fd2b of _0x2f7347)if(_0xf68dc1!=_0x30fd2b&&!this['_areMergableCells'](_0xf68dc1,_0x30fd2b))return!0x1;return!0x0;}['_areMergableCells'](_0x3d4467,_0x27d510){const _0x43058f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f8659=this['editor']['model']['createRangeOn'](_0x3d4467),_0x3e8cf6=this['editor']['model']['createRangeOn'](_0x27d510),_0x169115=new Set(),_0x430c9e=new Set();for(const _0x4ad408 of _0x43058f['getSuggestions']())if(('insertion'==_0x4ad408['type']||'deletion'==_0x4ad408['type']||'mergeTableCells'==_0x4ad408['subType'])&&_0x4ad408['isInContent']){for(const _0x4646ac of _0x4ad408['getRanges']())_0x4646ac['containsRange'](_0x4f8659,!0x0)&&_0x169115['add'](_0x4ad408['type']+':'+_0x4ad408['author']['id']),_0x4646ac['containsRange'](_0x3e8cf6,!0x0)&&_0x430c9e['add'](_0x4ad408['type']+':'+_0x4ad408['author']['id']);}if(_0x169115['size']!=_0x430c9e['size'])return!0x1;for(const _0xb23bdd of _0x169115)if(!_0x430c9e['has'](_0xb23bdd))return!0x1;return!0x0;}}class Ct extends _0xacca18{static get['requires'](){return[At];}['afterInit'](){const _0x16769c=this['editor'];if(!_0x16769c['plugins']['has']('TableEditing'))return;const _0x330712=_0x16769c['locale'],_0x4bf90c=_0x16769c['plugins']['get']('TrackChangesEditing');_0x4bf90c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4bf90c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4bf90c['registerBlockAttribute']('headingRows'),_0x4bf90c['registerBlockAttribute']('headingColumns'),_0x4bf90c['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x330712,'FORMAT_HEADER_ROW')),_0x4bf90c['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x330712,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3a2c00=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a5da9=this['editor']['plugins']['get']('TableUtils'),_0x315f02=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x259baa({showActiveMarker:_0x9f6827=!0x0,setDataAttribute:_0x595053=!0x0}={}){return(_0x44d4f6,_0x561368,_0x2ffd68)=>{const {type:_0x5120de,id:_0x38a431}=_0x3a2c00['_splitMarkerName'](_0x561368['markerName']),_0xf36c82=_0x3a2c00['getSuggestion'](_0x38a431),_0x3e72c3=_0xf36c82['data'];if('formatBlock'!=_0xf36c82['type']||!_0x3e72c3||'setTableColumnHeader'!=_0x3e72c3['commandName'])return;if(_0x561368['item'])return void _0x44d4f6['stop']();if(!_0x2ffd68['consumable']['consume'](_0x561368['markerRange'],_0x44d4f6['name']))return;const _0xb84f8a=_0x561368['markerRange']['start']['nodeAfter'],_0x54d9a9=_0x561368['markerRange']['end']['nodeBefore'],_0x942e87=_0xb84f8a['parent']['parent'],{column:_0xc26640}=_0x4a5da9['getCellLocation'](_0xb84f8a),{column:_0x17a3ae}=_0x4a5da9['getCellLocation'](_0x54d9a9);for(let _0x1cdf3a=_0xc26640;_0x1cdf3a<=_0x17a3ae;_0x1cdf3a++){const _0x2c344a=_0x4a5da9['createTableWalker'](_0x942e87,{'column':_0x1cdf3a,'includeAllSlots':!0x1});for(const _0x3b35ae of _0x2c344a){const _0x1b9788=_0x3b35ae['cell'],_0x5ca1c6=_0x2ffd68['mapper']['toViewElement'](_0x1b9788);_0x2ffd68['writer']['addClass']('ck-suggestion-marker-'+_0x5120de,_0x5ca1c6),_0x595053&&_0x2ffd68['writer']['setAttribute']('data-suggestion',_0x38a431,_0x5ca1c6),_0x2ffd68['mapper']['bindElementToMarker'](_0x5ca1c6,_0x561368['markerName']),_0x9f6827&&(_0x3a2c00['activeMarkers']['includes'](_0x561368['markerName'])?_0x2ffd68['writer']['addClass']('ck-suggestion-marker--active',_0x5ca1c6):_0x2ffd68['writer']['removeClass']('ck-suggestion-marker--active',_0x5ca1c6));}}};}_0x3a2c00['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x315f02),_0x3a2c00['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x315f02),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x259baa(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x500c82,_0xe75d27,_0x3f9c23)=>{_0x3f9c23['options']['showSuggestionHighlights']&&_0x259baa({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x500c82,_0xe75d27,_0x3f9c23);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1fd167,_0xf1c3bf,_0x13dee9)=>{const {type:_0x17506d,id:_0x66191d}=_0x3a2c00['_splitMarkerName'](_0xf1c3bf['markerName']),_0x5de332=_0x3a2c00['getSuggestion'](_0x66191d),_0x2838bb=_0x5de332['data'];if('formatBlock'!=_0x5de332['type']||!_0x2838bb||'setTableColumnHeader'!=_0x2838bb['commandName'])return;const _0x34c628=_0x13dee9['mapper']['markerNameToElements'](_0xf1c3bf['markerName']);if(_0x34c628){for(const _0x19ead8 of _0x34c628)_0x13dee9['writer']['removeClass']('ck-suggestion-marker-'+_0x17506d,_0x19ead8),_0x13dee9['writer']['removeClass']('ck-suggestion-marker--active',_0x19ead8),_0x13dee9['writer']['removeAttribute']('data-suggestion',_0x19ead8),_0x13dee9['mapper']['unbindElementFromMarkerName'](_0x19ead8,_0xf1c3bf['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a36bf=this['editor'],_0x58b369=_0x3a36bf['locale'];function _0x276783(_0x4ed683){return{'type':'format','content':o(_0x58b369,'*Format:*\x20%0',_0x4ed683)};}_0x3a36bf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ea0ef=>{if('formatBlock'!=_0x3ea0ef['type'])return;const {data:_0x5ad1f5}=_0x3ea0ef;if(_0x5ad1f5){if('setTableRowHeader'==_0x5ad1f5['commandName']){const _0x512c8f=_0x5ad1f5['commandParams'][0x0]['forceValue'];return _0x276783(o(_0x58b369,_0x512c8f?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5ad1f5['commandName']){const _0x2f87e1=_0x5ad1f5['commandParams'][0x0]['forceValue'];return _0x276783(o(_0x58b369,_0x2f87e1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xacca18{['afterInit'](){const _0x17bfe6=this['editor'],_0x5f1ab6=_0x17bfe6['locale'],_0x46cc3b=_0x17bfe6['plugins']['get']('TrackChangesEditing');function _0x456768(_0x4fb59a){return{'type':'format','content':''+o(_0x5f1ab6,'*Set\x20table\x20type:*\x20%0',_0x4fb59a)};}_0x17bfe6['plugins']['has']('TableLayout')&&(_0x46cc3b['enableCommand']('insertTableLayout'),_0x46cc3b['enableDefaultAttributesIntegration']('tableType'),_0x46cc3b['registerBlockAttribute']('tableType'),_0x46cc3b['descriptionFactory']['registerElementLabel'](_0x49a0be=>_0x49a0be['is']('element','table')&&'layout'===_0x49a0be['getAttribute']('tableType'),_0x1dc19f=>o(_0x5f1ab6,'ELEMENT_LAYOUT_TABLE',_0x1dc19f)),_0x46cc3b['descriptionFactory']['registerDescriptionCallback'](_0x55ef07=>{const {data:_0x55af4f}=_0x55ef07;if(_0x55af4f&&'tableType'==_0x55af4f['key'])switch(_0x55af4f['newValue']){case'layout':return _0x456768(o(_0x5f1ab6,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x456768(o(_0x5f1ab6,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x471086=>[_0x471086,null]));class Nt extends _0xacca18{static get['requires'](){return[At];}['afterInit'](){const _0x24001c=this['editor'];if(!_0x24001c['plugins']['has']('TableClipboard'))return;const _0x13c195=_0x24001c['plugins']['get']('TrackChangesEditing'),_0xdf72a7=_0x24001c['plugins']['get']('TableUtils'),_0x4e480d=_0x24001c['plugins']['get'](At),_0x5dadc1=_0x24001c['plugins']['get']('TableClipboard'),_0x32d501=_0x24001c['plugins']['get']('TableSelection'),_0x37e064=_0x24001c['plugins']['get'](_0x285224);_0x4e480d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x24001c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x24001c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x47fc3d=null,_0x194d55=!0x1;_0x37e064['on']('contentInsertion',(_0x1398f8,_0x5f2bfb)=>{_0x194d55='paste'===_0x5f2bfb['method'];}),_0x24001c['model']['on']('insertContent',(_0x2c60df,_0x4190e8)=>{if(!_0x194d55&&null===_0x32d501['getSelectedTableCells']())return;const [_0x53798d,_0x29eb3b]=_0x4190e8,_0x2d96ab=_0x4190e8[_0x4190e8['length']-0x1];_0x2d96ab&&_0x2d96ab['forceDefaultExecution']||_0x13c195['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x328e5b,_0x53dd25,_0x27ab7b,_0x55f9ee,_0x56a724){if(_0x53dd25&&!_0x53dd25['is']('documentSelection'))return!0x1;const _0x2656b9=_0x56a724['getTableIfOnlyTableInContent'](_0x328e5b,_0x27ab7b);if(!_0x2656b9||!Ue(_0x2656b9,void 0x0,_0x55f9ee))return!0x1;const _0x398822=_0x55f9ee['getSelectionAffectedTableCells'](_0x27ab7b['document']['selection']);if(!_0x398822['length'])return!0x1;const _0x344527=_0x398822[0x0]['findAncestor']('table'),_0x26c50b=_0x55f9ee['getRowIndexes'](_0x398822),_0x51c2e0=_0x55f9ee['getColumnIndexes'](_0x398822),_0x29047a={'startRow':_0x26c50b['first'],'endRow':_0x26c50b['last'],'startColumn':_0x51c2e0['first'],'endColumn':_0x51c2e0['last']};return 0x1==_0x398822['length']&&(_0x29047a['endRow']+=_0x55f9ee['getRows'](_0x2656b9)-0x1,_0x29047a['endColumn']+=_0x55f9ee['getColumns'](_0x2656b9)-0x1),Ue(_0x344527,_0x29047a,_0x55f9ee);}(_0x53798d,_0x29eb3b,_0x24001c['model'],_0xdf72a7,_0x5dadc1)&&(_0x2c60df['stop'](),_0x47fc3d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x24001c['model']['change'](()=>{_0x24001c['model']['insertContent'](_0x4190e8[0x0],_0x4190e8[0x1],_0x4190e8[0x2],{'forceDefaultExecution':!0x0});const _0x19284f=_0x2b2224(),{rowInsertionRanges:_0x42003d,columnInsertionRanges:_0x2d3d21,insertionRanges:_0x31392d,deletionRanges:_0x29a12b,cells:_0x1ca8c4}=_0x47fc3d;_0x42003d['length']&&_0x13c195['markMultiRangeInsertion'](_0x42003d,'tablePasteRow',{'tablePasteChainId':_0x19284f}),_0x2d3d21['length']&&_0x13c195['markMultiRangeInsertion'](_0x2d3d21,'tablePasteColumn',{'tablePasteChainId':_0x19284f}),_0x31392d['length']&&(_0x13c195['markMultiRangeInsertion'](_0x31392d,'tablePaste',{'tablePasteChainId':_0x19284f,'skipNestingCheck':!0x0}),_0x31392d['forEach'](_0x664f64=>_0x664f64['detach']?.())),_0x29a12b['length']&&(_0x13c195['markMultiRangeDeletion'](_0x29a12b,'tablePaste',{'tablePasteChainId':_0x19284f,'skipNestingCheck':!0x0}),_0x29a12b['forEach'](_0x316084=>_0x316084['detach']?.()));const _0x500460=_0x13c195['markMultiRangeBlockFormat'](_0x1ca8c4['map'](({element:_0x5aed34})=>_0x5aed34),{'formatGroupId':_0x2b2224()},[],'tablePasteCell',{'tablePasteChainId':_0x19284f});if(_0x500460){const _0x435189=_0x500460['getMarkers'](),_0x242617=[];for(const {element:_0x48b063,attributes:_0x4f8dde}of _0x1ca8c4){if(!_0x4f8dde)continue;const _0x5a083b=_0x24001c['model']['createRangeOn'](_0x48b063),_0x361bba=_0x435189['find'](_0x1c04a0=>_0x1c04a0['getRange']()['isEqual'](_0x5a083b));_0x361bba&&_0x242617['push']([_0x361bba['name'],_0x4f8dde]);}_0x242617['length']&&_0x500460['setAttribute']('markerAttributes',Object['fromEntries'](_0x242617));}_0x47fc3d=null;}));},{'priority':_0x28f51c['high']+0xa}),_0x37e064['on']('contentInsertion',()=>{_0x194d55=!0x1;},{'priority':'lowest'}),_0x24001c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x186672,_0x2ca657)=>{const [_0x2321d1,_0x1b1e7e,,_0x1c7e38]=_0x2ca657;if(!_0x47fc3d)return;_0x186672['stop']();const _0x74ee36=_0x2321d1['cell'],_0x4ff272=_0x1b1e7e,_0x494ee9=Oe(_0x74ee36),_0x259e40=Oe(_0x4ff272);_0x186672['return']=_0x74ee36;let _0x494c61=null,_0x2e831d=null;if(_0x259e40||_0x494ee9){if(_0x494ee9&&!_0x259e40){_0x1c7e38['remove'](_0x74ee36['getChild'](0x0));for(const _0x3e3fe4 of Array['from'](_0x4ff272['getChildren']()))_0x1c7e38['insert'](_0x3e3fe4,_0x74ee36,'end');const _0x3dfd3d=_0x47fc3d['rowInsertionIndexes']['includes'](_0x2321d1['row']),_0x4f2c7f=_0x47fc3d['columnInsertionIndexes']['includes'](_0x2321d1['column']);_0x3dfd3d||_0x4f2c7f||(_0x494c61=_0x171836['fromRange'](_0x1c7e38['createRangeIn'](_0x74ee36)));}else _0x259e40&&!_0x494ee9&&(_0x2e831d=_0x1c7e38['createRangeIn'](_0x74ee36));}else{const _0x3665fa=_0x1c7e38['createElement']('tableCellSuggestion'),_0x43d789=_0x1c7e38['createElement']('tableCellSuggestion');_0x1c7e38['wrap'](_0x1c7e38['createRangeIn'](_0x74ee36),_0x43d789),_0x1c7e38['insert'](_0x3665fa,_0x74ee36,0x0);for(const _0x209b70 of Array['from'](_0x4ff272['getChildren']()))_0x1c7e38['insert'](_0x209b70,_0x3665fa,'end');_0x494c61=_0x171836['fromRange'](_0x1c7e38['createRangeOn'](_0x3665fa)),_0x2e831d=_0x171836['fromRange'](_0x1c7e38['createRangeOn'](_0x43d789));}const _0x4d2b74=Array['from'](_0x4ff272['getAttributes']())['filter'](([_0x394fd2])=>Be['includes'](_0x394fd2));_0x47fc3d['cells']['push']({'element':_0x74ee36,'attributes':_0x4d2b74['length']?Object['fromEntries'](_0x4d2b74):null}),_0x494c61&&_0x47fc3d['insertionRanges']['push'](_0x494c61),_0x2e831d&&_0x47fc3d['deletionRanges']['push'](_0x2e831d);},{'priority':'high'}),_0xdf72a7['on']('insertColumns',(_0x2461f1,_0x173cbb)=>{const [_0x780992,_0x57a380={}]=_0x173cbb;if(!_0x47fc3d)return;const _0x4c3a6d=_0x57a380['at']||0x0,_0x4ca1b6=_0x57a380['columns']||0x1;_0x47fc3d['columnInsertionIndexes']=new Array(_0x4ca1b6)['fill'](_0x4c3a6d)['map']((_0x1b711a,_0x7a9997)=>_0x1b711a+_0x7a9997);for(const {cell:_0x5d0221}of _0xdf72a7['createTableWalker'](_0x780992,{'startColumn':_0x4c3a6d,'endColumn':_0x4c3a6d+_0x4ca1b6-0x1}))_0x47fc3d['columnInsertionRanges']['push'](_0x24001c['model']['createRangeOn'](_0x5d0221));},{'priority':'low'}),_0xdf72a7['on']('insertRows',(_0x3dacb7,_0x4dd732)=>{const [_0x1ca333,_0x36a52b={}]=_0x4dd732;if(!_0x47fc3d)return;const _0x5a13fc=_0x36a52b['at']||0x0,_0x569c50=_0x36a52b['rows']||0x1;_0x47fc3d['rowInsertionIndexes']=new Array(_0x569c50)['fill'](_0x5a13fc)['map']((_0x582c07,_0xadef0d)=>_0x582c07+_0xadef0d);for(const {cell:_0x4f720c}of _0xdf72a7['createTableWalker'](_0x1ca333,{'startRow':_0x5a13fc,'endRow':_0x5a13fc+_0x569c50-0x1}))_0x47fc3d['rowInsertionRanges']['push'](_0x24001c['model']['createRangeOn'](_0x4f720c));},{'priority':'low'}),_0x13c195['descriptionFactory']['registerDescriptionCallback'](_0x30c216=>{if(_0x30c216['subType']&&_0x30c216['subType']['startsWith']('tablePaste'))return _0x30c216['previous']?{}:{'type':'insertion','content':o(_0x24001c['locale'],'*Replace\x20table\x20cells*')};});const _0x42b10d=()=>!0x1;for(const _0x3ef6b1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x13c195['_suggestionFactory']['registerCustomCallback']('insertion',_0x3ef6b1,'join',_0x42b10d),_0x13c195['_suggestionFactory']['registerCustomCallback']('deletion',_0x3ef6b1,'join',_0x42b10d),_0x13c195['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ef6b1,'join',_0x42b10d);_0x13c195['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x42b10d),_0x13c195['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xe4af9d,_0x2e8902,_0x48dd41)=>{const _0x4026dd=_0xe4af9d['map'](_0x3fb92e=>_0x3fb92e['getContainedElement']())['filter'](_0x3f45ae=>_0x3f45ae),_0x126606=new Map(_0x4026dd['map'](_0x1db758=>[_0x1db758,null]));if(_0x47fc3d){for(const {element:_0x448bcf,attributes:_0xc98e8b}of _0x47fc3d['cells'])_0xc98e8b&&_0x126606['set'](_0x448bcf,_0xc98e8b);}else{if(_0x48dd41&&_0x48dd41['markerAttributes'])for(const [_0x383294,_0x37e21c]of Object['entries'](_0x48dd41['markerAttributes'])){const _0x1e9880=_0x24001c['model']['markers']['get'](_0x383294),_0x2a4eec=_0x1e9880?_0x1e9880['getRange']()['getContainedElement']():null;_0x2a4eec&&_0x126606['set'](_0x2a4eec,_0x37e21c);}}_0x24001c['model']['change'](_0xeb3507=>{for(const [_0x582e2f,_0x580e2d]of _0x126606)_0xeb3507['setAttributes']({...xe,..._0x580e2d},_0x582e2f);});});const _0x1d4299=(_0x52a5a5,_0x23786b)=>{_0x13c195['_suggestionFactory']['registerCustomCallback'](_0x52a5a5,'tablePaste',_0x23786b,(_0x50cfd0,_0x57bfba,_0x357445)=>{_0x24001c['model']['change'](_0x64af62=>{const _0x115fd1=[];for(const _0x6e7ea8 of _0x50cfd0){const _0x39a0fa=_0x6e7ea8['start']['nodeAfter'];_0x39a0fa['is']('element','tableCellSuggestion')&&_0x115fd1['push'](_0x39a0fa);}_0x13c195['_suggestionFactory']['getSuggestionCallback'](_0x52a5a5,null,_0x23786b)(_0x50cfd0,_0x57bfba,_0x357445);for(const _0x7b2538 of _0x115fd1)'$graveyard'!=_0x7b2538['root']['rootName']&&_0x64af62['unwrap'](_0x7b2538);});});};_0x1d4299('insertion','accept'),_0x1d4299('insertion','discard'),_0x1d4299('deletion','accept'),_0x1d4299('deletion','discard'),_0x13c195['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x44df0f=>{const _0x14fb35=_0x44df0f['map'](_0x1f6d05=>_0x1f6d05['getContainedElement']()),_0x495dba=_0x14fb35[0x0]['findAncestor']('table'),{minRow:_0x4f305a,maxRow:_0xdf192a}=_0x4e480d['_getCoordsForCells'](_0x14fb35);_0xdf72a7['removeRows'](_0x495dba,{'at':_0x4f305a,'rows':_0xdf192a-_0x4f305a+0x1});}),_0x13c195['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x431792=>{const _0x516903=_0x431792['map'](_0x2d306e=>_0x2d306e['getContainedElement']()),_0x2d5266=_0x516903[0x0]['findAncestor']('table'),{minColumn:_0x422bc4,maxColumn:_0xaf340f}=_0x4e480d['_getCoordsForCells'](_0x516903);_0xdf72a7['removeColumns'](_0x2d5266,{'at':_0x422bc4,'columns':_0xaf340f-_0x422bc4+0x1});});const _0x58393a=(_0x9cf9f9,_0x4d32b6)=>{if(!_0x4d32b6['subType']||!_0x4d32b6['subType']['startsWith']('tablePaste'))return;const _0x1f4bdc=_0x4d32b6['attributes']['tablePasteChainId'],_0x5f483a=_0x13c195['getSuggestions']()['filter'](_0x81763c=>_0x81763c['isInContent']&&_0x81763c['attributes']&&_0x81763c['attributes']['tablePasteChainId']==_0x1f4bdc);_0x5f483a['length']&&_0x4d32b6['getAllAdjacentSuggestions']()['length']!=_0x5f483a['length']&&_0x5f483a['reduce']((_0x266c24,_0x20f647)=>(_0x266c24['next']=_0x20f647,_0x20f647['previous']=_0x266c24,_0x20f647));};function _0x5e7da3(_0x5b5512,_0x495f18=!0x0){const {id:_0x414320,authorId:_0x17b909}=_0x13c195['_splitMarkerName'](_0x5b5512['markerName']),_0x265615=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xe22ce1=_0x13c195['activeMarkers']['includes'](_0x5b5512['markerName']);return _0xe22ce1&&_0x265615['push']('ck-suggestion-marker--active'),{'classes':_0x265615,'attributes':{'data-suggestion':_0x414320,'data-author-id':_0x17b909},'priority':_0xe22ce1&&_0x495f18?0xbc2:0xbb8};}_0x13c195['on']('suggestionLoaded',_0x58393a,{'priority':'high'}),_0x13c195['on']('suggestionUnloaded',_0x58393a,{'priority':'high'}),_0x24001c['model']['document']['registerPostFixer'](()=>{let _0x21ecb7=!0x1;const _0x31d46c=Array['from'](_0x24001c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x206a81,data:_0x1820a5}of _0x31d46c){const {group:_0x313dfc,type:_0x59d7e8,id:_0x29c38e}=_0x13c195['_splitMarkerName'](_0x206a81);if('suggestion'!=_0x313dfc||'deletion'!=_0x59d7e8||_0x1820a5['oldRange'])continue;if(!_0x13c195['hasSuggestion'](_0x29c38e))continue;const _0x528966=_0x13c195['getSuggestion'](_0x29c38e)['getRanges'](),_0x565e45=_0x24001c['plugins']['get']('Users')['me'];for(const _0x475759 of _0x13c195['getSuggestions']()){if(!_0x475759['isInContent']||_0x475759['author']!=_0x565e45)continue;if('formatBlock'!=_0x475759['type']||'tablePasteCell'!=_0x475759['subType'])continue;if(_0x475759['getRanges']()['every'](_0x11aad1=>_0x528966['some'](_0x7b5466=>_0x7b5466['containsRange'](_0x11aad1,!0x0)))){for(const _0x52a051 of _0x475759['getAllAdjacentSuggestions']())_0x52a051['isInContent']&&(_0x52a051['discard'](),_0x21ecb7=!0x0);}}}return _0x21ecb7;}),_0x24001c['model']['document']['registerPostFixer'](_0x32fba7=>{const _0xa6ecda=_0x24001c['commands']['get']('redo');if(!_0xa6ecda||!_0xa6ecda['_createdBatches']['has'](_0x32fba7['batch']))return!0x1;let _0x5be3c3=!0x1;const _0x1f5378=_0x24001c['plugins']['get']('Users')['me'],_0x890625=_0x24001c['model']['document']['differ']['getChanges'](),_0x247b53=Array['from'](_0x24001c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5ea81a,data:_0x20451c})=>{const {group:_0x20bae7,subType:_0x51b638,authorId:_0x3b629a}=_0x13c195['_splitMarkerName'](_0x5ea81a);return'suggestion'==_0x20bae7&&'tablePaste'==_0x51b638&&_0x3b629a==_0x1f5378['id']&&!_0x20451c['oldRange'];});for(const _0x165c17 of _0x890625){if('insert'!=_0x165c17['type']||'tableCellSuggestion'!=_0x165c17['name']||0x1!=_0x165c17['length'])continue;const _0x4e290a=_0x32fba7['createRange'](_0x165c17['position'],_0x165c17['position']['getShiftedBy'](0x1));if(!_0x247b53['find'](({data:_0x4fbd7a})=>_0x4fbd7a['newRange']['isEqual'](_0x4e290a))){for(const {name:_0x291333,data:_0x44d4b6}of _0x247b53)if(_0x4e290a['containsRange'](_0x44d4b6['newRange'])){_0x32fba7['updateMarker'](_0x291333,{'range':_0x4e290a}),_0x5be3c3=!0x0;break;}}}return _0x5be3c3;}),_0x24001c['model']['document']['registerPostFixer'](_0x705ade=>{let _0x1131af=!0x1;const _0x4808df=_0x24001c['plugins']['get']('Users')['me'],_0x194132=_0x13c195['getSuggestions']()['filter'](_0x2c0fde=>_0x2c0fde['isInContent']&&_0x2c0fde['author']==_0x4808df),_0x494843=new Set(),_0x566748=new Set();for(const _0x6c387a of _0x194132)if('tablePaste'==_0x6c387a['subType'])for(const _0x414c41 of _0x6c387a['getMarkers']()){const _0x5e992f=_0x414c41['getRange']()['getContainedElement']();if(_0x5e992f){if(_0x5e992f['is']('element','tableCellSuggestion')&&Oe(_0x5e992f)){_0x6c387a['removeMarker'](_0x414c41['name']),_0x494843['add'](_0x5e992f),_0x1131af=!0x0;const _0xd205c8=_0x5e992f['nextSibling'],_0x1d17d6=_0x5e992f['previousSibling'],_0x457804=_0xd205c8&&_0xd205c8['is']('element','tableCellSuggestion'),_0x1d0fae=_0x1d17d6&&_0x1d17d6['is']('element','tableCellSuggestion');_0x457804&&!_0x494843['has'](_0xd205c8)&&_0x566748['add'](_0xd205c8),_0x1d0fae&&!_0x494843['has'](_0x1d17d6)&&_0x566748['add'](_0x1d17d6);}else _0x5e992f['is']('element','paragraph')&&_0x5e992f['isEmpty']&&(_0x6c387a['removeMarker'](_0x414c41['name']),_0x1131af=!0x0);}}else{if('tablePasteCell'==_0x6c387a['subType']){if(!_0x6c387a['attributes']||!_0x6c387a['attributes']['tablePasteChainId'])continue;const _0x2022e7=_0x6c387a['attributes']['markerAttributes'];if(_0x2022e7&&Object['keys'](_0x2022e7)['length'])continue;const _0x57c620=_0x6c387a['attributes']['tablePasteChainId'];let _0x597e43=!0x0,_0x53a94b=!0x0;for(const _0x4ca31f of _0x194132)if(_0x4ca31f['subType']&&_0x4ca31f['subType']['startsWith']('tablePaste')){if(!_0x4ca31f['attributes']['tablePasteChainId']){_0x53a94b=!0x1;break;}if(_0x4ca31f['id']!=_0x6c387a['id']&&_0x4ca31f['attributes']['tablePasteChainId']==_0x57c620){_0x597e43=!0x1;break;}}_0x53a94b&&_0x597e43&&(_0x6c387a['removeMarkers'](),_0x1131af=!0x0);}}for(const _0x37cb57 of _0x494843)_0x705ade['remove'](_0x37cb57);for(const _0x4bdb81 of _0x566748)_0x705ade['unwrap'](_0x4bdb81);return _0x1131af;}),_0x24001c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2d6914=>_0x5e7da3(_0x2d6914),'converterPriority':'high'}),_0x24001c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1f8914,_0x1e0e3f)=>_0x1e0e3f['options']['showSuggestionHighlights']?_0x5e7da3(_0x1f8914,!0x1):null,'converterPriority':'high'});const _0x369e17=_0x24001c['editing']['view'];this['listenTo'](_0x369e17['document'],'clipboardOutput',(_0x17f266,_0x1bea70)=>{const _0x3cfed8=[];for(const _0x56a0ac of _0x369e17['createRangeIn'](_0x1bea70['content'])['getItems']())_0x56a0ac['is']('element','suggestion-td')&&_0x3cfed8['push'](_0x56a0ac);_0x369e17['change'](_0x2a9dc7=>{for(const _0x1a36fd of _0x3cfed8)_0x2a9dc7['move'](_0x2a9dc7['createRangeIn'](_0x1a36fd),_0x2a9dc7['createPositionBefore'](_0x1a36fd)),_0x2a9dc7['remove'](_0x1a36fd);});});}}function Oe(_0x42061c){if(_0x42061c['isEmpty'])return!0x0;const _0x36a285=_0x42061c['getChild'](0x0);return _0x36a285['is']('element','paragraph')&&_0x36a285['isEmpty'];}function Ue(_0x353ba5,_0x1c181a={},_0x4b0727){for(const {isAnchor:_0x789c70,cellHeight:_0x2aa57d,cellWidth:_0x1527d7}of _0x4b0727['createTableWalker'](_0x353ba5,{'includeAllSlots':!0x0,..._0x1c181a}))if(!_0x789c70||0x1!=_0x2aa57d||0x1!=_0x1527d7)return!0x1;return!0x0;}class Dt extends _0xacca18{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x44383b=this['editor']['plugins']['get']('TrackChangesEditing');_0x44383b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x44383b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x44383b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44383b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x44383b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x44383b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x96f4d0,_0x344d3e){const _0x127644=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3736ae=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x45144f=_0x344d3e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x365882=_0x3736ae['getColumnGroupElement'](_0x45144f);let _0x286241=_0x365882?_0x3736ae['getTableColumnsWidths'](_0x365882):null,_0x111171=_0x45144f['getAttribute']('tableWidth')||null;const _0x5a1451=_0x344d3e['tableWidth']||_0x111171,_0x371ec7=_0x344d3e['columnWidths']||_0x286241,_0x4fb46f=this['editor']['plugins']['get']('Users')['me'];for(const _0x466eca of _0x127644['getSuggestions']()){const _0x2eb7fd=_0x466eca['getContainedElement']();if('resizeTable'===_0x466eca['subType']&&_0x2eb7fd===_0x45144f){_0x466eca['author']!==_0x4fb46f&&_0x466eca['discard']();const _0xc2376e=_0x466eca['data']['commandParams'];_0x111171=_0xc2376e[0x0]['tableWidth'],_0x286241=_0xc2376e[0x0]['columnWidths'];break;}}_0x96f4d0({'table':_0x45144f,'tableWidth':_0x5a1451,'columnWidths':_0x371ec7}),_0x127644['markBlockFormat'](_0x45144f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x111171,'columnWidths':_0x286241}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x48847e){if('formatBlock'!=_0x48847e['type']&&'formatInline'!=_0x48847e['type'])return;const {data:_0xb02720}=_0x48847e;if(_0xb02720&&'resizeTable'===_0xb02720['formatGroupId']){const _0x11ad75='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x11ad75)};}}}class $t extends _0xacca18{['afterInit'](){const _0x245b32=this['editor'];_0x245b32['plugins']['has']('Template')&&_0x245b32['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xacca18{['afterInit'](){const _0x1a3972=this['editor'];if(!_0x1a3972['commands']['get']('insertTableOfContents'))return;_0x1a3972['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x18c752=_0x1a3972['plugins']['get']('TrackChangesEditing'),_0x8cdaf5=_0x1a3972['locale'];_0x18c752['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3538e9=>o(_0x8cdaf5,'ELEMENT_TABLE_OF_CONTENTS',_0x3538e9));}}class Bt extends _0xacca18{['afterInit'](){const _0x600191=this['editor'];if(!_0x600191['plugins']['has']('Title'))return;const _0x24928c=_0x600191['plugins']['get']('TrackChangesEditing');_0x24928c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x600191['locale'],'ELEMENT_TITLE')),_0x600191['model']['document']['registerPostFixer'](_0x27971c=>{let _0x36d726=!0x1;const _0x8ed014=Array['from'](_0x600191['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3bad79,data:_0x4a0156}of _0x8ed014){const {group:_0x312232}=_0x24928c['_splitMarkerName'](_0x3bad79);if('suggestion'!==_0x312232||!_0x4a0156['newRange'])continue;const _0x88c2b5=_0x4a0156['newRange'],_0x32c8f4=_0x88c2b5['end']['nodeBefore'];if(!_0x32c8f4||!_0x32c8f4['is']('element','title-content'))continue;if(!_0x88c2b5['start']['isTouching'](_0x88c2b5['end']))continue;const _0x291411=_0x600191['model']['schema']['getNearestSelectionRange'](_0x88c2b5['end'],'forward');if(_0x291411&&_0x291411['isCollapsed']){const _0x4e31ec=_0x27971c['createRange'](_0x88c2b5['start'],_0x291411['start']);_0x4e31ec['isEqual'](_0x88c2b5)||(_0x27971c['updateMarker'](_0x3bad79,{'range':_0x4e31ec}),_0x36d726=!0x0);}_0x36d726||(_0x27971c['removeMarker'](_0x3bad79),_0x36d726=!0x0);}return _0x36d726;});}}class Tt extends _0xacca18{['afterInit'](){const _0x244f8c=this['editor'],_0x5bd504=_0x244f8c['plugins']['get']('TrackChangesEditing');_0x244f8c['plugins']['has']('Uploadcare')&&(_0x5bd504['enableCommand']('uploadcare'),_0x244f8c['plugins']['has']('UploadcareImageEdit')&&(_0x5bd504['enableCommand']('uploadcareImageEdit'),_0x5bd504['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5bd504['registerBlockAttribute']('uploadcareImageId'),_0x5bd504['descriptionFactory']['registerDescriptionCallback'](_0x1b036e=>{if('attribute'!=_0x1b036e['type'])return;const {data:_0x466913}=_0x1b036e;return _0x466913&&'uploadcareImageId'==_0x466913['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xacca18{['afterInit'](){const _0x11204c=this['editor'],_0x2e365f=_0x11204c['plugins']['get']('TrackChangesEditing');_0x11204c['plugins']['has']('UndoEditing')&&(_0x2e365f['enableCommand']('undo'),_0x2e365f['enableCommand']('redo'));}}class Ot extends _0xacca18{static get['requires'](){return[At];}['afterInit'](){const _0x2624ae=this['editor'];if(!_0x2624ae['plugins']['has']('TableCaptionEditing'))return;_0x2624ae['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xacca18{['tableProperties'];['tableCellProperties'];constructor(_0xde144a){super(_0xde144a),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 _0x29f82a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x51f795 of this['tableProperties'])_0x29f82a['enableCommand'](_0x51f795,(_0x4869ee,_0x6990ba)=>{const _0x33e59d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x51f795,[_0x33e59d],this['tableProperties'],'tableProperties',_0x4869ee,_0x6990ba);});_0x29f82a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x29f82a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29f82a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x487e33,_0x27d77e)=>this['handleDiscardAction'](this['tableProperties'],_0x487e33,_0x27d77e)),_0x29f82a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x161c5b of this['tableCellProperties'])_0x29f82a['enableCommand'](_0x161c5b,(_0x52e4d2,_0x1f1cc1)=>{const _0x576537=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x161c5b,_0x576537,this['tableCellProperties'],'tableCellProperties',_0x52e4d2,_0x1f1cc1);});_0x29f82a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x29f82a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29f82a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xd2f361,_0x4cf788)=>this['handleDiscardAction'](this['tableCellProperties'],_0xd2f361,_0x4cf788)),_0x29f82a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x29f82a['descriptionFactory']['registerDescriptionCallback'](_0x357e24=>this['handleSuggestionDescription'](_0x357e24)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x365100,_0x5c5666,_0x23b7a3,_0x1eb1f8,_0x371024,_0x2ba724){const _0x6f21fb=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2ba724['batch'],()=>{for(const _0x3fe3c0 of _0x5c5666){if(this['_getSuggestion'](_0x3fe3c0,_0x1eb1f8))_0x371024(_0x2ba724);else{const _0xf33d16={};for(const _0xd76e32 of _0x23b7a3){const _0x4d2b7d=_0x3fe3c0['getAttribute'](_0xd76e32);void 0x0!==_0x4d2b7d&&(_0xf33d16[_0xd76e32]=_0x4d2b7d);}_0x371024(_0x2ba724),_0x6f21fb['markBlockFormat'](_0x3fe3c0,{'commandParams':[_0xf33d16]},[],_0x1eb1f8);}}});}['handleDiscardAction'](_0x15d950,_0x3762fb,_0x43de35){const _0x541735=_0x3762fb[0x0]['start']['nodeAfter'],_0xefba51=_0x43de35['commandParams'][0x0];this['editor']['model']['change'](_0x140ede=>{for(const _0x350d56 of _0x15d950)void 0x0!==_0xefba51[_0x350d56]?_0x140ede['setAttribute'](_0x350d56,_0xefba51[_0x350d56],_0x541735):_0x140ede['removeAttribute'](_0x350d56,_0x541735);});}['handleSuggestionDescription'](_0x2edc3f){if(_0x2edc3f['data'])switch(_0x2edc3f['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'](_0x5f50c9,_0x1250d3){const _0x6d8bee=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x425200 of _0x6d8bee['getSuggestions']({'skipNotAttached':!0x0})){const _0x21e9f4=_0x425200['getContainedElement']();if(_0x425200['subType']===_0x1250d3&&_0x21e9f4===_0x5f50c9)return _0x425200;}return null;}['_registerTablePropertiesAttributes'](){const _0xa9176e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f1cab=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x327e5a of _0x2f1cab){const _0x24012a=_0x327e5a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xa9176e['registerBlockAttribute'](_0x327e5a),_0xa9176e['descriptionFactory']['registerAttributeLabel'](_0x327e5a,o(this['editor']['locale'],'FORMAT_'+_0x24012a));}}}class Rt extends _0xacca18{['afterInit'](){const _0xdd0c0a=this['editor'];if(!_0xdd0c0a['plugins']['has']('LineHeight'))return;const _0x47491c=_0xdd0c0a['plugins']['get']('TrackChangesEditing'),_0x1c8406=_0xdd0c0a['locale'];_0x47491c['enableDefaultAttributesIntegration']('lineHeight'),_0x47491c['registerBlockAttribute']('lineHeight'),_0x47491c['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1c8406,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xacca18{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x4ef842,_0x38708,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21db2e){super(_0x21db2e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2b087d,_0x33937b,_0x33bc41,_0xd637c4)=>{this['_model']['change'](()=>{for(const _0x4b9550 of[..._0xd637c4,..._0x33bc41])this['_model']['markers']['has'](_0x4b9550)&&_0x21db2e['editing']['reconvertMarker'](_0x4b9550);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x21db2e['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(),_0x21db2e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x21db2e['config']['get']('trackChanges.trackFormatChanges'),_0x21db2e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x21db2e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x21db2e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x15d799=this['editor'],_0x4f7f86=(_0x5753d5,_0x178dc9)=>{if('attribute'!=_0x5753d5)return'ck-suggestion-marker-'+_0x5753d5;const _0x58addb=_0x178dc9['split']('|')[0x0];return this['_isBlockAttribute'](_0x58addb)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x15d799['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x521bea=>{const {id:_0x1cab2a,authorId:_0x32a04a,type:_0x3c7599,subType:_0xdfa57d}=this['_splitMarkerName'](_0x521bea['markerName']),_0x48de44=['ck-suggestion-marker',_0x4f7f86(_0x3c7599,_0xdfa57d)];let _0x7cf57e=0xbb8;return this['activeMarkers']['includes'](_0x521bea['markerName'])&&(_0x48de44['push']('ck-suggestion-marker--active'),_0x7cf57e=0xbc2),'deletion'==_0x3c7599&&(_0x7cf57e+=0x5),{'classes':_0x48de44,'attributes':{'data-suggestion':_0x1cab2a,'data-author-id':_0x32a04a},'priority':_0x7cf57e};}}),_0x15d799['conversion']['for']('dataDowncast')['add'](_0x56c2a3=>{_0x56c2a3['on']('addMarker:suggestion',(_0x269449,_0x5d04f3,_0x55af17)=>{if(!_0x55af17['options']['showSuggestionHighlights'])return;const _0x89079c=_0x5d04f3['item'];if(!_0x89079c)return;const _0x14c0a1=_0x55af17['mapper']['toViewElement'](_0x89079c);_0x15d799['model']['schema']['isObject'](_0x89079c)&&_0x14c0a1&&!_0x14c0a1['getCustomProperty']('widget')&&_0x14c0a1['is']('containerElement')&&_0x4b0b4a(_0x14c0a1,_0x55af17['writer']);},{'priority':'high'});}),_0x15d799['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3eb2ae,_0x49c5f9)=>{if(!_0x49c5f9['options']['showSuggestionHighlights'])return null;const {id:_0x25349e,authorId:_0x863b38,type:_0xd67c19,subType:_0xb0438e}=this['_splitMarkerName'](_0x3eb2ae['markerName']);return{'classes':['ck-suggestion-marker',_0x4f7f86(_0xd67c19,_0xb0438e)],'priority':0xbb8,'attributes':{'data-suggestion':_0x25349e,'data-author-id':_0x863b38}};}});const _0x5c044e=({showActiveMarkers:_0x3b3345=!0x0,isAttributeSuggestion:_0x1497a0=!0x1}={})=>(_0xa879b3,_0x1fddec,_0x21f2f0)=>{if(!_0x1fddec['item'])return;const {id:_0x47d963,authorId:_0x2feae9}=this['_splitMarkerName'](_0x1fddec['markerName']);if(_0x1497a0){const _0x2f7eca=this['_suggestions']['get'](_0x47d963),_0xc911a2=this['_getAttributeKey'](_0x2f7eca);if(!this['_isBlockAttribute'](_0xc911a2))return;}if(_0x1fddec['item']['is']('selection'))return void _0x21f2f0['consumable']['consume'](_0x1fddec['item'],_0xa879b3['name']);const _0x3b730e=_0x21f2f0['mapper']['toViewElement'](_0x1fddec['item']);if(_0x1fddec['item']['is']('element')&&_0x15d799['model']['schema']['isBlock'](_0x1fddec['item'])&&!_0x3b730e['getCustomProperty']('addHighlight')){_0x21f2f0['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3b730e),_0x21f2f0['writer']['setAttribute']('data-suggestion',_0x47d963,_0x3b730e),_0x21f2f0['writer']['setAttribute']('data-author-id',_0x2feae9,_0x3b730e),_0x21f2f0['mapper']['bindElementToMarker'](_0x3b730e,_0x1fddec['markerName']),_0x3b3345&&(this['activeMarkers']['includes'](_0x1fddec['markerName'])?_0x21f2f0['writer']['addClass']('ck-suggestion-marker--active',_0x3b730e):_0x21f2f0['writer']['removeClass']('ck-suggestion-marker--active',_0x3b730e));for(const _0x53ac42 of _0x15d799['model']['createRangeIn'](_0x1fddec['item'])['getItems']())_0x21f2f0['consumable']['consume'](_0x53ac42,_0xa879b3['name']);_0x21f2f0['consumable']['consume'](_0x1fddec['item'],_0xa879b3['name']);}};_0x15d799['conversion']['for']('dataDowncast')['add'](_0x207e13=>{_0x207e13['on']('addMarker:suggestion:formatBlock',(_0x53e3fa,_0x9b0d9c,_0x1f3347)=>{_0x1f3347['options']['showSuggestionHighlights']&&_0x5c044e({'showActiveMarkers':!0x1})(_0x53e3fa,_0x9b0d9c,_0x1f3347);},{'priority':'highest'});}),_0x15d799['conversion']['for']('dataDowncast')['add'](_0x44f337=>{_0x44f337['on']('addMarker:suggestion:attribute',(_0x3746ee,_0xa0a8,_0x397bf4)=>{_0x397bf4['options']['showSuggestionHighlights']&&_0x5c044e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3746ee,_0xa0a8,_0x397bf4);},{'priority':'highest'});}),_0x15d799['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x37233e,_0x262bbd)=>{if(_0x262bbd['options']['showSuggestionHighlights']){const {id:_0x43ebef,authorId:_0x1fb286}=this['_splitMarkerName'](_0x37233e);return _0x37233e['includes'](':split')||_0x37233e['includes'](':merge')?{'group':'suggestion','name':_0x37233e['substr'](0xb),'attributes':{'data-suggestion':_0x43ebef,'data-author-id':_0x1fb286}}:null;}return{'group':'suggestion','name':_0x37233e['substr'](0xb)};}}),_0x15d799['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x12542d,{writer:_0x4aebbe})=>{let _0x2003e7='suggestion:'+_0x12542d['getAttribute']('suggestion-type')+':'+_0x12542d['getAttribute']('id');return _0x12542d['getAttribute']('marker-count')&&(_0x2003e7+=':'+_0x12542d['getAttribute']('marker-count')),_0x4aebbe['createElement']('$marker',{'data-name':_0x2003e7});}}),_0x15d799['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x15d799['conversion']['for']('editingDowncast')['add'](_0x126731=>{_0x126731['on']('addMarker:suggestion:formatBlock',_0x5c044e(),{'priority':'high'});}),_0x15d799['conversion']['for']('editingDowncast')['add'](_0x173d41=>{_0x173d41['on']('addMarker:suggestion:attribute',_0x5c044e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x15d799['conversion']['for']('editingDowncast')['add'](_0x45e905=>{_0x45e905['on']('removeMarker:suggestion:formatBlock',(_0x366db5,_0x561589,_0x1489e6)=>{const _0x35a460=_0x1489e6['mapper']['markerNameToElements'](_0x561589['markerName']);if(_0x35a460){for(const _0x29275c of _0x35a460)_0x29275c['getCustomProperty']('addHighlight')||(_0x1489e6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x29275c),_0x1489e6['writer']['removeAttribute']('data-suggestion',_0x29275c),_0x1489e6['writer']['removeAttribute']('data-author-id',_0x29275c),_0x1489e6['mapper']['unbindElementFromMarkerName'](_0x29275c,_0x561589['markerName']));}},{'priority':'high'});}),_0x15d799['conversion']['for']('editingDowncast')['add'](_0x2124f2=>{_0x2124f2['on']('removeMarker:suggestion:attribute',(_0x4c1c05,_0x4699c8,_0x1d5560)=>{const _0x530218=_0x1d5560['mapper']['markerNameToElements'](_0x4699c8['markerName']);if(!_0x530218)return;const {id:_0x27a6db}=this['_splitMarkerName'](_0x4699c8['markerName']),_0x43a6eb=this['_suggestions']['get'](_0x27a6db),_0xbc095c=this['_getAttributeKey'](_0x43a6eb);if(this['_isBlockAttribute'](_0xbc095c)){for(const _0x12f46f of _0x530218)_0x12f46f['getCustomProperty']('addHighlight')||(_0x1d5560['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x12f46f),_0x1d5560['writer']['removeAttribute']('data-suggestion',_0x12f46f),_0x1d5560['writer']['removeAttribute']('data-author-id',_0x12f46f),_0x1d5560['mapper']['unbindElementFromMarkerName'](_0x12f46f,_0x4699c8['markerName']));}},{'priority':'high'});}),_0x15d799['model']['document']['registerPostFixer'](_0x23614f=>{let _0x41167f=!0x1;const _0x4d6567=Array['from'](_0x15d799['model']['document']['differ']['getChangedMarkers']()),_0x32ef5a=new Set();for(const {name:_0x487e56,data:_0x373c44}of _0x4d6567){const {group:_0x15fc70,type:_0x47bc98,subType:_0x4c2168,id:_0x5157f4}=this['_splitMarkerName'](_0x487e56);if('suggestion'!==_0x15fc70)continue;const _0x55a5b3=_0x4c2168?'suggestion:'+_0x47bc98+':'+_0x4c2168+':'+_0x5157f4:'suggestion:'+_0x47bc98+':'+_0x5157f4,_0xe65c94=_0x15d799['model']['markers']['getMarkersGroup'](_0x55a5b3),_0x41f43e=_0x15d799['model']['markers']['get'](_0x487e56),_0x41ac0c=this['_suggestions']['get'](_0x5157f4);if(null!=_0x373c44['newRange']){'formatInline'==_0x47bc98&&(_0x41167f=_0x41167f||Gt(_0x373c44['newRange'],_0x487e56,_0x23614f,_0x15d799['model']['schema']));const _0x140664='attribute'==_0x47bc98&&this['_isBlockAttribute'](_0x4c2168['split']('|')[0x0]),_0x1178d1='attribute'==_0x47bc98&&this['_isInlineAttribute'](_0x4c2168['split']('|')[0x0]);if(_0x373c44['newRange']['isCollapsed']||'$graveyard'==_0x373c44['newRange']['root']['rootName']||'formatBlock'==_0x47bc98&&!Jt(_0x373c44['newRange'])||_0x140664&&!Jt(_0x373c44['newRange'])||_0x1178d1&&Kt(_0x373c44['newRange'])||'deletion'==_0x47bc98&&Kt(_0x373c44['newRange'])||_0x41f43e&&Ht(_0x41f43e,_0xe65c94))_0x23614f['removeMarker'](_0x487e56),_0x41167f=!0x0;else{if(!_0x41ac0c||!_0x41ac0c['isInContent'])continue;if(_0x373c44['newRange']&&_0x373c44['oldRange']&&_0x373c44['newRange']['isEqual'](_0x373c44['oldRange']))continue;_0x32ef5a['add'](_0x41ac0c);}}}return _0x32ef5a['size']>0x0&&(_0x41167f=!!this['_joinWithAdjacentSuggestions'](_0x32ef5a)||_0x41167f),_0x41167f;}),_0x15d799['model']['document']['registerPostFixer'](_0x5567d6=>{let _0x4041fd=!0x1;for(const _0xa1116 of _0x15d799['model']['document']['differ']['getChanges']())if('insert'==_0xa1116['type'])for(const _0x4f758d of this['_suggestions']['values']()){if(_0x4f758d['isMultiRange']||!_0x4f758d['isInContent'])continue;const _0x35e294='formatBlock'==_0x4f758d['type'],_0x566f84=this['_getAttributeKey'](_0x4f758d),_0x233431=_0x566f84&&this['_isBlockAttribute'](_0x566f84);if(!_0x35e294&&!_0x233431)continue;const _0x4a538a=_0x4f758d['getFirstRange']();if(_0x4a538a['start']['parent']!=_0x4a538a['end']['parent']&&!_0x4a538a['end']['isAtEnd']){const _0x29dafd=_0x15d799['model']['createPositionAt'](_0x4a538a['start']['nodeAfter'],'end'),_0x593a07=_0x15d799['model']['createRange'](_0x4a538a['start'],_0x29dafd);_0x5567d6['updateMarker'](_0x4f758d['getFirstMarker'](),{'range':_0x593a07}),_0x4041fd=!0x0;}}return _0x4041fd;}),_0x15d799['model']['document']['registerPostFixer'](_0x29ac4b=>this['_processAttributeChanges'](_0x29ac4b)),_0x15d799['model']['document']['registerPostFixer'](_0x59d9ff=>!_0x59d9ff['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x59d9ff)),_0x15d799['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x15d799['model']['document']['on']('change:data',(_0x21c331,_0x28b531)=>{if(!_0x28b531['isLocal']||_0x28b531['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x112b32=_0x15d799['model']['document']['differ']['getChanges']();if(0x0==_0x112b32['length'])return;const _0x9fd7bf=[],_0x436e33=_0x112b32['filter'](_0x491c4c=>'attribute'==_0x491c4c['type']),_0x37e6c6=_0x112b32['filter'](_0x4b3fbe=>'insert'==_0x4b3fbe['type']&&'$text'!=_0x4b3fbe['name']);for(const _0x16b8cb of _0x436e33)this['_isRegisteredAttribute'](_0x16b8cb['attributeKey'])&&_0x9fd7bf['push']({'key':_0x16b8cb['attributeKey'],'newValue':_0x16b8cb['attributeNewValue'],'oldValue':_0x16b8cb['attributeOldValue'],'range':qt(_0x16b8cb['range'],_0x15d799['model'])});for(const _0x1d2db3 of _0x37e6c6){if('rename'!=_0x1d2db3['action']&&'refresh'!=_0x1d2db3['action'])continue;const _0x1305b5=zt(_0x1d2db3['position']['nodeAfter'],_0x15d799['model']),_0x158288=_0x1d2db3['before'];'rename'==_0x1d2db3['action']&&_0x9fd7bf['push']({'key':m,'newValue':_0x1d2db3['name'],'oldValue':_0x158288['name'],'range':_0x1305b5});for(const [_0x5719f4,_0x406dca]of _0x158288['attributes']){if(!this['_isRegisteredAttribute'](_0x5719f4))continue;const _0x401a08=_0x1d2db3['attributes']['get'](_0x5719f4);_0x406dca!==_0x401a08&&_0x9fd7bf['push']({'key':_0x5719f4,'newValue':_0x401a08,'oldValue':_0x406dca,'range':_0x1305b5});}for(const [_0x231a61,_0x2c32cf]of _0x1d2db3['attributes'])this['_isRegisteredAttribute'](_0x231a61)&&(_0x158288['attributes']['has'](_0x231a61)||_0x9fd7bf['push']({'key':_0x231a61,'newValue':_0x2c32cf,'oldValue':null,'range':_0x1305b5}));}0x0!=_0x9fd7bf['length']&&_0x15d799['model']['enqueueChange'](_0x28b531,_0x5d1e53=>{const _0x271546=_0x2b2224();for(const {range:_0x3db6de,key:_0x1cebd7,oldValue:_0x36f210,newValue:_0x5e6966}of _0x9fd7bf)this['markAttributeChange'](_0x3db6de,_0x1cebd7,_0x36f210,_0x5e6966,{'groupId':_0x271546});this['_reduceExistingSuggestions'](_0x5d1e53,_0x9fd7bf);});},{'priority':'lowest'}),_0x15d799['model']['markers']['on']('update:suggestion',(_0x223dbd,_0x937880,_0x1c180b)=>{if(null==_0x1c180b){const {id:_0x356b18}=this['_splitMarkerName'](_0x937880['name']),_0x4e074c=this['_suggestions']['get'](_0x356b18);_0x4e074c&&_0x4e074c['addMarkerName'](_0x937880['name']);}}),_0x15d799['model']['document']['on']('change:data',()=>{const _0x216829=Array['from'](_0x15d799['model']['document']['differ']['getChangedMarkers']())['filter'](_0x7c0777=>'suggestion'===this['_splitMarkerName'](_0x7c0777['name'])['group']);if(0x0===_0x216829['length'])return;_0x216829['sort']((_0x4b3c52,_0x3c9e3c)=>{const _0x545ae0=_0x4b3c52['data']['oldRange'],_0x5235e5=_0x3c9e3c['data']['oldRange'];return null===_0x545ae0&&null===_0x5235e5?0x0:null===_0x545ae0&&null!==_0x5235e5?-0x1:null!==_0x545ae0&&null===_0x5235e5?0x1:_0x545ae0['start']['isBefore'](_0x5235e5['start'])?-0x1:0x1;});const _0x1af992=new Set(),_0x13e2ff=new Set();for(const {name:_0x119834,data:_0x1321b4}of _0x216829){const {id:_0x109214}=this['_splitMarkerName'](_0x119834);if(null===_0x1321b4['oldRange']){const _0x15854c=this['_handleNewSuggestionMarker'](_0x119834);_0x13e2ff['add'](_0x15854c);}else{const _0x597a07=this['_suggestions']['get'](_0x109214);null!==_0x1321b4['newRange']||_0x597a07['isInContent']?(_0x1af992['add'](_0x597a07['head']),_0x13e2ff['add'](_0x597a07)):this['_removeSuggestion'](_0x597a07);}}_0x13e2ff['size']>0x0&&this['_refreshSuggestionsChain'](_0x13e2ff);for(const _0x2b9361 of _0x1af992)this['fire']('suggestionChanged',_0x2b9361);}),_0x15d799['model']['on']('applyOperation',(_0x221889,_0x3a6b95)=>{const _0xa1ff9=_0x3a6b95[0x0];if(!this['_suggestions']['size'])return;if(!_0xa1ff9['isDocumentOperation'])return;if(_0xa1ff9['batch']['isUndo']||!_0xa1ff9['batch']['isLocal'])return;let _0x547f54,_0x1bbf0d;switch(_0xa1ff9['type']){case'insert':_0x547f54=_0x15d799['model']['createPositionAt'](_0xa1ff9['position']),_0x1bbf0d=_0x547f54['getShiftedBy'](_0xa1ff9['howMany']);break;case'split':_0x547f54=_0x15d799['model']['createPositionAt'](_0xa1ff9['splitPosition']),_0x1bbf0d=_0x15d799['model']['createPositionAt'](_0xa1ff9['moveTargetPosition']);break;case'move':_0x547f54=_0x15d799['model']['createPositionAt'](_0xa1ff9['targetPosition']),_0x1bbf0d=_0x547f54['getShiftedBy'](_0xa1ff9['howMany']);break;default:return;}const _0xb95afa=_0x15d799['model']['createRange'](_0x547f54,_0x1bbf0d);_0x15d799['model']['change'](()=>{for(const {suggestion:_0x1c0069,meta:_0x2550dd}of this['_findSuggestions'](_0xb95afa)){if(_0x1c0069['isMultiRange'])continue;if('formatInline'==_0x1c0069['type'])continue;const _0x2f843f=this['_getAttributeKey'](_0x1c0069);if(_0x2f843f&&this['_isBlockAttribute'](_0x2f843f)&&'split'!=_0xa1ff9['type'])continue;const _0x327d8c=_0x1c0069['data']&&_0x1c0069['data']['multipleBlocks'];('formatBlock'!=_0x1c0069['type']||'split'==_0xa1ff9['type']&&!_0x327d8c)&&(_0x2550dd['containsRangeInObject']||'insertion'==_0x1c0069['type']&&_0x2550dd['isOwn']||_0x1c0069['getFirstRange']()['containsRange'](_0xb95afa)&&this['_breakSuggestionMarker'](_0x1c0069,_0x547f54,_0x1bbf0d));}});},{'priority':'lowest'}),_0x15d799['model']['on']('deleteContent',(_0x5557ff,_0x23cbaf)=>{const _0x1009c9=_0x23cbaf[0x0],_0xb9f845=_0x23cbaf[0x1];if(_0xb9f845&&_0xb9f845['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1009c9['isCollapsed'])return;const _0x38a58e=_0x15d799['model']['schema'],{start:_0x4655a8,end:_0x1efb0b}=_0x1009c9['getFirstRange'](),_0x2ed16a=_0x4655a8['nodeAfter']&&_0x38a58e['isLimit'](_0x4655a8['nodeAfter'])?null:_0x38a58e['getNearestSelectionRange'](_0x4655a8,'forward'),_0xa6ff61=_0x1efb0b['nodeBefore']&&_0x38a58e['isLimit'](_0x1efb0b['nodeBefore'])?null:_0x38a58e['getNearestSelectionRange'](_0x1efb0b,'backward'),_0x9d742=_0x15d799['model']['createRange'](_0x2ed16a?_0x2ed16a['start']:_0x4655a8,_0xa6ff61?_0xa6ff61['end']:_0x1efb0b);_0x15d799['model']['change'](_0x4913fb=>{this['markDeletion'](_0x9d742);const _0x472d1c=_0x15d799['model']['schema']['getNearestSelectionRange'](_0x9d742['start']);_0x1009c9['is']('documentSelection')?_0x4913fb['setSelection'](_0x472d1c):_0x1009c9['setTo'](_0x472d1c);}),_0x5557ff['stop']();},{'priority':_0x28f51c['normal']+0xa}),_0x15d799['model']['on']('insertContent',(_0xaa08fc,_0x59a13e)=>{const _0x21d92d=_0x59a13e[_0x59a13e['length']-0x1];_0x21d92d&&_0x21d92d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x15d799['model']['change'](()=>{let _0x2c0037=_0x15d799['model']['insertContent'](_0x59a13e[0x0],_0x59a13e[0x1],_0x59a13e[0x2],{'forceDefaultExecution':!0x0});if(!_0x2c0037)return;_0xaa08fc['return']=_0x2c0037['clone']();const _0x566465=_0x2c0037['end']['nodeBefore'],_0xa1184=_0x15d799['model']['schema'];_0x566465&&_0xa1184['isBlock'](_0x566465)&&!_0xa1184['isObject'](_0x566465)&&(_0x2c0037=_0x15d799['model']['createRange'](_0x2c0037['start'],_0x15d799['model']['createPositionAt'](_0x566465,'end'))),this['markInsertion'](_0x2c0037);}),_0xaa08fc['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x501fe0=new D(_0x15d799,this['_suggestions']);_0x15d799['commands']['add']('acceptSuggestion',_0x501fe0),this['enableCommand']('acceptSuggestion');const _0x4844e6=new $(_0x15d799,this['_suggestions']);_0x15d799['commands']['add']('discardSuggestion',_0x4844e6),this['enableCommand']('discardSuggestion'),_0x15d799['commands']['add']('acceptAllSuggestions',new M(_0x15d799,_0x501fe0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x15d799['commands']['add']('discardAllSuggestions',new M(_0x15d799,_0x4844e6,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x15d799['commands']['add']('acceptSelectedSuggestions',new B(_0x15d799,_0x501fe0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x15d799['commands']['add']('discardSelectedSuggestions',new B(_0x15d799,_0x4844e6,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2cf383=_0x15d799['plugins']['get']('CommentsRepository');this['listenTo'](_0x2cf383,'addComment',(_0x566a82,{threadId:_0x25dbe8})=>{const _0x4e8639=this['_suggestions']['get'](_0x25dbe8);_0x4e8639&&_0x4e8639['commentThread']&&0x1===_0x4e8639['commentThread']['length']&&this['_updateSuggestionData'](_0x25dbe8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2cf383,'removeComment',(_0x470597,{threadId:_0x3c65e9})=>{const _0x221756=this['_suggestions']['get'](_0x3c65e9);_0x221756&&_0x221756['commentThread']&&!_0x221756['commentThread']['length']&&this['_updateSuggestionData'](_0x3c65e9,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x76dfa4){const _0x53f5a1=_0x65934c([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x41f161=0x6b0f5e6f,_0x462a11=0x6b082d37^_0x41f161,_0x291203=window[_0x65934c([0x44,0x61,0x74,0x65])][_0x65934c([0x6e,0x6f,0x77])](),_0x591c90=_0x76dfa4[_0x65934c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x161df2=new window[(_0x65934c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b2c3d=>{_0x591c90[_0x65934c([0x6f,0x6e,0x63,0x65])](_0x65934c([0x72,0x65,0x61,0x64,0x79]),_0x5b2c3d);}),_0x58034d={[_0x65934c([0x6b,0x74,0x79])]:_0x65934c([0x45,0x43]),[_0x65934c([0x75,0x73,0x65])]:_0x65934c([0x73,0x69,0x67]),[_0x65934c([0x63,0x72,0x76])]:_0x65934c([0x50,0x2d,0x32,0x35,0x36]),[_0x65934c([0x78])]:_0x65934c([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]),[_0x65934c([0x79])]:_0x65934c([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]),[_0x65934c([0x61,0x6c,0x67])]:_0x65934c([0x45,0x53,0x32,0x35,0x36])},_0x51e0cc=_0x591c90[_0x65934c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x65934c([0x67,0x65,0x74])](_0x65934c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1ac8ea(){let _0xb064a7,_0x379f98=null,_0x3b5e7e=null;try{if(_0x51e0cc==_0x65934c([0x47,0x50,0x4c]))return _0x65934c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xb064a7=_0x5c40a7(),!_0xb064a7)return _0x65934c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xb064a7[_0x65934c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b5e7e=_0x2a1c9e(_0xb064a7[_0x65934c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xb064a7[_0x65934c([0x6a,0x74,0x69])])),await _0x3bb510()?_0x53a221()?_0x357257()?_0x65934c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x420724()?(_0xb064a7[_0x65934c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x65934c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x379f98=_0xbbe31a(_0x65934c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xb064a7[_0x65934c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x65934c([0x74,0x72,0x69,0x61,0x6c])&&(_0x379f98=_0xbbe31a(_0x65934c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x857907()):_0x65934c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x65934c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x65934c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x65934c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x357257(){const _0x8b8909=[_0x65934c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x65934c([0x74,0x72,0x69,0x61,0x6c])][_0x65934c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb064a7[_0x65934c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x291203/0x3e8:0xe10*_0x462a11;return _0xb064a7[_0x65934c([0x65,0x78,0x70])]<_0x8b8909;}function _0x53a221(){const _0x4639b2=_0xb064a7[_0x65934c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4639b2)return!0x1;if(_0x4639b2[_0x65934c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x65934c([0x2a])))return!0x0;if(_0x4639b2[_0x65934c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x65934c([0x54,0x43])))return!0x0;if(_0x4639b2[_0x65934c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x65934c([0x52,0x54,0x43]))){if(_0x34c7df())return!0x0;if(_0x59c3b7()||_0x3eba1f())return!0x0;}return!0x1;}function _0x420724(){const _0x14f6dc=_0xb064a7[_0x65934c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x14f6dc||0x0==_0x14f6dc[_0x65934c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x287bff}=new URL(window[_0x65934c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x14f6dc[_0x65934c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x287bff))return!0x0;const _0x27677c=_0x287bff[_0x65934c([0x73,0x70,0x6c,0x69,0x74])](_0x65934c([0x2e]));return _0x14f6dc[_0x65934c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3383ee=>_0x3383ee[_0x65934c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x65934c([0x2a])))[_0x65934c([0x6d,0x61,0x70])](_0x591a9=>_0x591a9[_0x65934c([0x73,0x70,0x6c,0x69,0x74])](_0x65934c([0x2e])))[_0x65934c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2881fe=>_0x2881fe[_0x65934c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x27677c[_0x65934c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x65934c([0x6d,0x61,0x70])](_0x16347a=>Array(_0x27677c[_0x65934c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x16347a[_0x65934c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x65934c([0x66,0x69,0x6c,0x6c])](_0x16347a[0x0]===_0x65934c([0x2a])?_0x65934c([0x2a]):'')[_0x65934c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x16347a))[_0x65934c([0x73,0x6f,0x6d,0x65])](_0x351e2c=>_0x27677c[_0x65934c([0x65,0x76,0x65,0x72,0x79])]((_0x4255f1,_0x40fa3d)=>_0x351e2c[_0x40fa3d]===_0x4255f1||_0x351e2c[_0x40fa3d]===_0x65934c([0x2a])));}function _0x857907(){return _0x379f98&&_0x3b5e7e?new window[(_0x65934c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37b368,_0x1cacdb)=>{_0x379f98[_0x65934c([0x74,0x68,0x65,0x6e])](_0x37b368,_0x1cacdb),_0x3b5e7e[_0x65934c([0x74,0x68,0x65,0x6e])](_0x14e6ea=>{_0x14e6ea!=_0x65934c([0x56,0x61,0x6c,0x69,0x64])&&_0x37b368(_0x14e6ea);},_0x1cacdb);}):_0x379f98||_0x3b5e7e||_0x65934c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a1c9e(_0x3d78aa,_0x17b4e4){return new window[(_0x65934c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fbdde=>{if(_0x35b17b())return _0x1fbdde(_0x65934c([0x56,0x61,0x6c,0x69,0x64]));_0x2c4212(),_0x591c90[_0x65934c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x65934c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2df07e=!0x1;const _0x2ffb57=_0x2b2224();function _0x35b69b(_0x2e449b){return!!_0x2e449b&&(typeof _0x2e449b===_0x65934c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e449b===_0x65934c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e449b[_0x65934c([0x74,0x68,0x65,0x6e])]===_0x65934c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e449b[_0x65934c([0x63,0x61,0x74,0x63,0x68])]===_0x65934c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xa215fe(_0x2cea3d){_0x2cd772(_0x2cea3d)[_0x65934c([0x74,0x68,0x65,0x6e])](_0x2b7e64=>{if(!_0x2b7e64||_0x2b7e64[_0x65934c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x65934c([0x6f,0x6b]))return _0x65934c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x400da6(_0x35f840(_0x2ffb57+_0x17b4e4))!=_0x2b7e64[_0x65934c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x65934c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x65934c([0x56,0x61,0x6c,0x69,0x64]);})[_0x65934c([0x74,0x68,0x65,0x6e])](_0x45426c=>(_0x432126(),_0x45426c),()=>{const _0x575ecc=_0x543c42();return null==_0x575ecc?(_0x432126(),_0x65934c([0x56,0x61,0x6c,0x69,0x64])):_0x65934c(_0x291203-_0x575ecc>(0x4f03da6f^_0x41f161)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x65934c([0x74,0x68,0x65,0x6e])](_0x1fbdde)[_0x65934c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1fbdde(_0x65934c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c0e16=0x6b39b0ef^_0x41f161;function _0x432126(){const _0x510a19=_0x65934c([0x6c,0x6c,0x63,0x74,0x2d])+_0x400da6(_0x35f840(_0x3d78aa)),_0x40a160=_0x30dd3d(_0x400da6(window[_0x65934c([0x4d,0x61,0x74,0x68])][_0x65934c([0x63,0x65,0x69,0x6c])](_0x291203/_0x3c0e16)));window[_0x65934c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x65934c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x510a19,_0x40a160);}function _0x543c42(){const _0x1057b2=_0x65934c([0x6c,0x6c,0x63,0x74,0x2d])+_0x400da6(_0x35f840(_0x3d78aa)),_0x6dedff=window[_0x65934c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x65934c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1057b2);return _0x6dedff?window[_0x65934c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30dd3d(_0x6dedff),0x10)*_0x3c0e16:null;}function _0x2cd772(_0x5d3c38){return new window[(_0x65934c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c3119,_0x2476f6)=>{_0x5d3c38[_0x65934c([0x74,0x68,0x65,0x6e])](_0x5c3119,_0x2476f6),window[_0x65934c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2476f6,0x6b0e8aaf^_0x41f161);});}}_0x591c90[_0x65934c([0x6f,0x6e])](_0x65934c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3bae3f,_0x1846f4)=>{if(_0x1846f4[0x0]!=_0x3d78aa)return _0x1fbdde(_0x65934c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1846f4[0x1]={..._0x1846f4[0x1],[_0x65934c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2ffb57};},{[_0x65934c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x65934c([0x68,0x69,0x67,0x68])}),_0x591c90[_0x65934c([0x6f,0x6e])](_0x65934c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b04cd=>{_0x35b69b(_0x1b04cd[_0x65934c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2df07e=!0x0,_0xa215fe(_0x1b04cd[_0x65934c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x65934c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x65934c([0x6c,0x6f,0x77])}),_0x161df2[_0x65934c([0x74,0x68,0x65,0x6e])](()=>{_0x2df07e||_0x1fbdde(_0x65934c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35b17b(){return _0x591c90[_0x65934c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x65934c([0x76,0x69,0x65,0x77])][_0x65934c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x65934c([0x61,0x75,0x74,0x6f]);}function _0x2c4212(){_0x591c90[_0x65934c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x65934c([0x76,0x69,0x65,0x77])][_0x65934c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x65934c([0x61,0x75,0x74,0x6f]);}}function _0xbbe31a(_0x1a5cf8){const _0x2b0d3d=[new window[(_0x65934c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a7181=>setTimeout(_0x5a7181,0x6b0660a3^_0x41f161)),_0x161df2[_0x65934c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x65934c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf21474=>{let _0x37e185=0x0;_0x591c90[_0x65934c([0x6d,0x6f,0x64,0x65,0x6c])][_0x65934c([0x6f,0x6e])](_0x65934c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x45c244,_0x1b9cfc)=>{_0x1b9cfc[0x0][_0x65934c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x37e185++,_0x37e185==(0x6b0f5f97^_0x41f161)&&(_0xf21474(),_0x45c244[_0x65934c([0x6f,0x66,0x66])]());});}))];return window[_0x65934c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x65934c([0x72,0x61,0x63,0x65])](_0x2b0d3d)[_0x65934c([0x74,0x68,0x65,0x6e])](()=>_0x1a5cf8);}async function _0x4b3d30(){await _0x161df2,_0x591c90[_0x65934c([0x6d,0x6f,0x64,0x65,0x6c])][_0x65934c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x587dd1,_0x591c90[_0x65934c([0x6d,0x6f,0x64,0x65,0x6c])][_0x65934c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x587dd1,_0x591c90[_0x65934c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x65934c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x34c7df(){return _0x4ad142(_0x65934c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xc724ab(_0x65934c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x65934c([0x73,0x74,0x61,0x74,0x65])]==_0x65934c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x59c3b7(){return _0x4ad142(_0x65934c([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 _0x3eba1f(){return _0x4ad142(_0x65934c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1851d3(_0x5f0ff9){const _0xa50f5=_0x2f0075();_0x591c90[_0xa50f5]=_0x65934c([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5f0ff9,_0x5f0ff9!=_0x65934c([0x56,0x61,0x6c,0x69,0x64])&&_0x4b3d30();}function _0x2f0075(){const _0x230e23=window[_0x65934c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x65934c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x65934c([0x6e,0x6f,0x77])]())[_0x65934c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x65934c([0x2e]),'');let _0x1723b1=_0x65934c([0x67]);for(let _0x19035a=0x0;_0x19035a<_0x230e23[_0x65934c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19035a+=0x2){let _0x537ce5=window[_0x65934c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x230e23[_0x65934c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19035a,_0x19035a+0x2));_0x537ce5>=_0x53f5a1[_0x65934c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x537ce5-=_0x53f5a1[_0x65934c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1723b1+=_0x53f5a1[_0x537ce5];}return _0x1723b1;}function _0x5c40a7(){const _0x3cede4=_0x51e0cc[_0x65934c([0x73,0x70,0x6c,0x69,0x74])](_0x65934c([0x2e]));if(0x3!=_0x3cede4[_0x65934c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3da855(_0x3cede4[0x1]);function _0x3da855(_0x238ee8){const _0x19d82f=_0x106a02(_0x238ee8);return _0x19d82f&&_0xfdfb70()?_0x19d82f:null;function _0xfdfb70(){const _0x568c79=_0x19d82f[_0x65934c([0x6a,0x74,0x69])],_0x415b50=window[_0x65934c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x568c79[_0x65934c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x568c79[_0x65934c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5d686d={..._0x19d82f,[_0x65934c([0x6a,0x74,0x69])]:_0x568c79[_0x65934c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x568c79[_0x65934c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5d686d[_0x65934c([0x76,0x63])],_0x35f840(_0x5d686d)==_0x415b50;}}}async function _0x3bb510(){let _0x371009=!0x0;try{const _0x12b48c=_0x51e0cc[_0x65934c([0x73,0x70,0x6c,0x69,0x74])](_0x65934c([0x2e])),[_0x20d05e,_0x2ecea4,_0x3519be]=_0x12b48c;return _0xa87930(_0x20d05e),await _0x50a368(_0x20d05e,_0x2ecea4,_0x3519be),_0x371009;}catch{return!0x1;}function _0xa87930(_0x12ea0a){const _0x2cd680=_0x106a02(_0x12ea0a);_0x2cd680&&_0x2cd680[_0x65934c([0x61,0x6c,0x67])]==_0x65934c([0x45,0x53,0x32,0x35,0x36])||(_0x371009=!0x1);}async function _0x50a368(_0x491bf7,_0x1a0d37,_0x557f7c){const _0xc05074=window[_0x65934c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x65934c([0x66,0x72,0x6f,0x6d])](_0x30f185(_0x557f7c),_0xa97d1e=>_0xa97d1e[_0x65934c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3f93b7=new window[(_0x65934c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x65934c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x491bf7+_0x65934c([0x2e])+_0x1a0d37),_0x34f384=window[_0x65934c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x65934c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x34f384)return;const _0x4da0be=await _0x34f384[_0x65934c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x65934c([0x6a,0x77,0x6b]),_0x58034d,{[_0x65934c([0x6e,0x61,0x6d,0x65])]:_0x65934c([0x45,0x43,0x44,0x53,0x41]),[_0x65934c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x65934c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x65934c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x34f384[_0x65934c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x65934c([0x6e,0x61,0x6d,0x65])]:_0x65934c([0x45,0x43,0x44,0x53,0x41]),[_0x65934c([0x68,0x61,0x73,0x68])]:{[_0x65934c([0x6e,0x61,0x6d,0x65])]:_0x65934c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4da0be,_0xc05074,_0x3f93b7)||(_0x371009=!0x1);}}function _0x106a02(_0xc955fa){return _0xc955fa[_0x65934c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x65934c([0x65,0x79]))?JSON[_0x65934c([0x70,0x61,0x72,0x73,0x65])](_0x30f185(_0xc955fa)):null;}function _0x30f185(_0xe50196){return window[_0x65934c([0x61,0x74,0x6f,0x62])](_0xe50196[_0x65934c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x65934c([0x2b]))[_0x65934c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x65934c([0x2f])));}function _0x35f840(_0x3a9eeb){let _0x5ad9be=0x1505;function _0x503d38(_0x67f22c){for(let _0x345c76=0x0;_0x345c76<_0x67f22c[_0x65934c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x345c76++){const _0x4a4698=_0x67f22c[_0x65934c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x345c76);_0x5ad9be=(_0x5ad9be<<0x5)+_0x5ad9be+_0x4a4698,_0x5ad9be&=_0x5ad9be;}}function _0x27439b(_0x37c81c){Array[_0x65934c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x37c81c)?_0x37c81c[_0x65934c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x27439b):_0x37c81c&&typeof _0x37c81c==_0x65934c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x65934c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x37c81c)[_0x65934c([0x73,0x6f,0x72,0x74])]()[_0x65934c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x54d858,_0xeec77b])=>{_0x503d38(_0x54d858),_0x27439b(_0xeec77b);}):_0x503d38(window[_0x65934c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x37c81c));}return _0x27439b(_0x3a9eeb),_0x5ad9be>>>0x0;}function _0x400da6(_0x4058e7){return _0x4058e7[_0x65934c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x65934c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x65934c([0x30]));}function _0x30dd3d(_0x3cb12c){return _0x3cb12c[_0x65934c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x65934c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x65934c([0x6a,0x6f,0x69,0x6e])]('');}function _0x4ad142(_0x44ec6b){return _0x591c90[_0x65934c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x65934c([0x68,0x61,0x73])](_0x44ec6b);}function _0xc724ab(_0x19ab94){return _0x591c90[_0x65934c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x65934c([0x67,0x65,0x74])](_0x19ab94);}function _0x587dd1(){}function _0x65934c(_0x1ce213){return _0x1ce213['map'](_0x567ea5=>String['fromCharCode'](_0x567ea5))['join']('');}_0x1851d3(await _0x1ac8ea());}(this);}set['adapter'](_0x1ef272){if(this['_adapter'])throw new _0x70ecee('track-changes-adapter-already-set',this);this['_adapter']=_0x1ef272;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x17fef3=!0x1,toJSON:_0x12a73c=!0x1}={}){const _0x5c2868=[];for(const _0x592372 of this['_suggestions']['values']())_0x17fef3&&!_0x592372['isInContent']||_0x5c2868['push'](_0x592372);return _0x12a73c?_0x5c2868['map'](_0x3df07e=>_0x3df07e['toJSON']()):_0x5c2868;}['getSuggestion'](_0x26a94a){const _0x5aa188=this['_suggestions']['get'](_0x26a94a);if(!_0x5aa188)throw new _0x70ecee('track-changes-suggestion-not-found',this);return _0x5aa188;}['hasSuggestion'](_0x591038){return this['_suggestions']['has'](_0x591038);}['addSuggestionData'](_0x289ed7){const {authorId:_0x5aa0de,id:_0x3084a6,originalSuggestionId:_0x3ef4d1,attributes:_0x4a4820}=_0x289ed7,[_0x45e792,_0x34408a]=_0x289ed7['type']['split'](':'),_0x44f6f4=this['_suggestions']['get'](_0x3084a6)||this['_createSuggestion'](_0x45e792,_0x34408a,_0x3084a6,_0x5aa0de,_0x4a4820,_0x3ef4d1);if(this['_addThreadToSuggestion'](_0x44f6f4),this['_checkSuggestionCorrectness'](_0x44f6f4,_0x45e792,_0x34408a||null,_0x5aa0de),_0x44f6f4['createdAt']=_0x289ed7['createdAt'],_0x44f6f4['_isDataLoaded']=!0x0,_0x4a4820&&_0x4a4820['@external']){const _0x31ba8c=_0x4a4820['@external'],_0xa68b81=this['_getExternalAuthor'](_0x31ba8c['authorName']);_0x44f6f4['authoredAt']=_0x31ba8c['createdAt'],_0x44f6f4['author']=_0xa68b81,_0x44f6f4['isExternal']=!0x0;}else _0x44f6f4['authoredAt']=_0x289ed7['createdAt'];switch(_0x289ed7['data']&&(_0x44f6f4['data']=_0x289ed7['data']),_0x289ed7['attributes']&&(_0x44f6f4['attributes']=_0x289ed7['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x44f6f4['_saved']=!0x0),this['_suggestionState']['get'](_0x44f6f4)){case'notReady':this['_suggestionState']['set'](_0x44f6f4,'dataReady');break;case'markerReady':_0x44f6f4['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x44f6f4])),this['_refreshSuggestionsChain'](new Set([_0x44f6f4])),this['_suggestionState']['set'](_0x44f6f4,'ready'),this['fire']('suggestionLoaded',_0x44f6f4)):this['_suggestionState']['set'](_0x44f6f4,'removed');}return _0x44f6f4;}['acceptSuggestion'](_0x163287){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4b64c8 of _0x163287['getAllAdjacentSuggestions']())_0x4b64c8['accept']();});});}['discardSuggestion'](_0x376f9f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x523b92 of _0x376f9f['getAllAdjacentSuggestions']())_0x523b92['discard']();});});}['enableCommand'](_0x4c5e84,_0x20618d){const _0x2b18f3=this['editor']['commands']['get'](_0x4c5e84);if(!_0x2b18f3)throw new _0x70ecee('track-changes-command-not-found',this,{'commandName':_0x4c5e84});if(this['_enabledCommands']['has'](_0x2b18f3))throw new _0x70ecee('track-changes-enable-command-twice',this,{'commandName':_0x4c5e84});this['_enabledCommands']['add'](_0x2b18f3),_0x20618d&&_0x2b18f3['on']('execute',(_0x250457,_0x319c87)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x319c87['length']>0x0&&_0x319c87[_0x319c87['length']-0x1]&&_0x319c87[_0x319c87['length']-0x1]['forceDefaultExecution']?_0x319c87['pop']():(_0x250457['return']=_0x20618d((..._0xc065)=>_0x2b18f3['execute'](..._0xc065,{'forceDefaultExecution':!0x0}),..._0x319c87),_0x250457['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x42a8ce){let _0x164eb6,_0x2c7e8d;const _0x304444=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x164eb6=_0x42a8ce();}catch(_0x179a69){_0x2c7e8d=_0x179a69;}return _0x304444||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2c7e8d&&_0x70ecee['rethrowUnexpectedError'](_0x2c7e8d,this),_0x164eb6;}['markInsertion'](_0x5943bc,_0x213593=null,_0x221576={}){if(_0x5943bc['isCollapsed'])return null;const _0x35b15a=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x221576['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xa6e652,meta:_0x30bf0e}of this['_findSuggestions'](_0x5943bc,'insertion'))if(_0x30bf0e['isOwn']){if(!_0x30bf0e['isNextTo']){if(_0x30bf0e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0xa6e652,_0x221576))continue;return _0xa6e652;}if(Xt(_0xa6e652,_0x221576))return _0xa6e652;this['_breakSuggestionMarker'](_0xa6e652,_0x5943bc['start'],_0x5943bc['end']);break;}if(_0x213593==_0xa6e652['subType']&&Xt(_0xa6e652,_0x221576)){const _0x521e56=_0xa6e652['getFirstRange']();return _0x521e56['start']['isEqual'](_0x5943bc['end'])?this['_setSuggestionRange'](_0xa6e652,this['_model']['createRange'](_0x5943bc['start'],_0x521e56['end'])):this['_setSuggestionRange'](_0xa6e652,this['_model']['createRange'](_0x521e56['start'],_0x5943bc['end'])),_0xa6e652;}}const _0x2eceee=_0x2b2224(),_0x1c9d91=_0x35b15a['id'],_0x99a4d1=_0x213593?'insertion:'+_0x213593:'insertion',_0x5340ce=this['_setSuggestionData']({'id':_0x2eceee,'type':_0x99a4d1,'createdAt':new Date(),'authorId':_0x1c9d91,'attributes':_0x221576});return this['_addSuggestionMarker'](_0x99a4d1,_0x2eceee,_0x1c9d91,_0x5943bc),_0x5340ce;}['markMultiRangeInsertion'](_0xa39e46,_0x217f01='multi',_0x16f0d={}){const _0x347ee6=this['editor']['plugins']['get']('Users')['me'],_0x2dca7c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x217f01,'join');this['_trackingSessionId']&&(_0x16f0d['trackingSessionId']=this['_trackingSessionId']);for(const _0x612c45 of this['getSuggestions']())if(_0x612c45['author']['id']==_0x347ee6['id']&&'insertion'==_0x612c45['type']&&_0x612c45['subType']==_0x217f01&&Xt(_0x612c45,_0x16f0d)&&(_0x2dca7c(_0x612c45['getRanges'](),_0xa39e46)||_0x2dca7c(_0xa39e46,_0x612c45['getRanges']()))){for(const _0x1d0313 of _0xa39e46)_0x612c45['addRange'](_0x1d0313);return _0x612c45;}for(const {suggestion:_0x174ea9,meta:_0x138048}of this['_findSuggestions'](_0xa39e46,'insertion')){if(!_0x138048['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x138048['containsRangeInObject'])continue;if(!Xt(_0x174ea9,_0x16f0d))continue;let _0x21ea70=!0x0;for(const _0x1d2045 of _0x174ea9['getRanges']())for(const _0x1f8f3e of _0xa39e46)if(!_0x1d2045['containsRange'](_0x1f8f3e)){_0x21ea70=!0x1;break;}if(_0x21ea70)return _0x174ea9;}const _0x4def20=_0x2b2224(),_0x57effa=_0x347ee6['id'],_0x17d6ba='insertion:'+_0x217f01,_0x3bb2ca=this['_setSuggestionData']({'id':_0x4def20,'type':_0x17d6ba,'createdAt':new Date(),'authorId':_0x57effa,'attributes':_0x16f0d});for(const _0x22aa61 of _0xa39e46)this['_addSuggestionMarker'](_0x17d6ba,_0x4def20,_0x57effa,_0x22aa61,T['getMultiRangeId']());return _0x3bb2ca;}['markInlineFormat'](_0x91597f,_0x5a0b4c,_0xc3deb8=null,_0x1712f9={}){if(_0xc3deb8=_0xc3deb8||Lt(_0x5a0b4c),_0x91597f['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1712f9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5be6e4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xc3deb8,'accept');return this['forceDefaultExecution'](()=>_0x5be6e4([_0x91597f],_0x5a0b4c,_0x1712f9)),null;}const _0x17de7b=this['editor']['plugins']['get']('Users')['me'],_0x4d5af5=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x46234d,meta:_0x31ad7f}of this['_findSuggestions'](_0x91597f,'insertion'))_0x31ad7f['isOwn']&&!_0x31ad7f['isInsideObject']&&_0x4d5af5['push'](..._0x46234d['getRanges']());}const _0x2c25af=function(_0x3819b8,_0x448f36){const _0x339a1c=[];for(const _0x4e408c of _0x448f36){const _0x36a942=_0x3819b8['getIntersection'](_0x4e408c);_0x36a942&&_0x339a1c['push'](_0x36a942);}return _0x339a1c;}(_0x91597f,_0x4d5af5),_0xd30191=function(_0x1877a5,_0x2b5cc0){const _0xcba08e=[_0x1877a5];for(const _0x573e88 of _0x2b5cc0){let _0x209cad=0x0;for(;_0x209cad<_0xcba08e['length'];){const _0x267ff0=_0xcba08e[_0x209cad]['getDifference'](_0x573e88);_0xcba08e['splice'](_0x209cad,0x1,..._0x267ff0),_0x209cad+=_0x267ff0['length'];}}return _0xcba08e;}(_0x91597f,_0x4d5af5);_0x2c25af['length']&&this['_model']['change'](()=>{for(const _0x1eca45 of _0x2c25af){const _0x3ffdcb=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xc3deb8,'accept');this['forceDefaultExecution'](()=>_0x3ffdcb([_0x1eca45],_0x5a0b4c,_0x1712f9));}});for(const _0x5a4435 of _0xd30191){let _0x121954=null,_0x40e617=_0x5a4435['start'],_0x459677=_0x5a4435['end'];for(const {suggestion:_0x2531f4,meta:_0x620e40}of this['_findSuggestions'](_0x5a4435,'formatInline')){if(!_0x620e40['isOwn'])continue;if(_0x2531f4['subType']!=_0xc3deb8)continue;if(!Xt(_0x2531f4,_0x1712f9))continue;const _0x6c45dd=_0x2531f4['getFirstRange']();if(_0x6c45dd['containsRange'](_0x5a4435,!0x0))return null;_0x40e617=_0x40e617['isBefore'](_0x6c45dd['start'])?_0x40e617:_0x6c45dd['start'],_0x459677=_0x459677['isAfter'](_0x6c45dd['end'])?_0x459677:_0x6c45dd['end'],_0x121954?_0x6c45dd['start']['isBefore'](_0x121954['getFirstRange']()['start'])?(_0x121954['removeMarkers'](),_0x121954=_0x2531f4):_0x2531f4['removeMarkers']():_0x121954=_0x2531f4;}const _0x383e2e=this['_model']['createRange'](_0x40e617,_0x459677);if(_0x121954)this['_setSuggestionRange'](_0x121954,_0x383e2e);else{const _0x3590f9=_0x2b2224(),_0x175c24=_0x17de7b['id'];this['_setSuggestionData']({'id':_0x3590f9,'type':'formatInline:'+_0xc3deb8,'data':_0x5a0b4c,'createdAt':new Date(),'authorId':_0x175c24,'attributes':_0x1712f9}),this['_addSuggestionMarker']('formatInline:'+_0xc3deb8,_0x3590f9,_0x175c24,_0x383e2e);}}return null;}['markBlockFormat'](_0x43d67b,_0x503c70,_0x1d4933=[],_0x4fca87=null,_0x3b0150={}){_0x503c70['formatGroupId']||(_0x503c70['formatGroupId']=_0x503c70['commandName']),_0x503c70['multipleBlocks']=_0x43d67b['is']('range'),_0x4fca87=_0x4fca87||Lt(_0x503c70);const _0x3fbaa2=_0x1d4933['map'](_0x3e3463=>zt(_0x3e3463,this['_model'])),_0x4663d9=_0x43d67b['is']('range')?_0x43d67b:zt(_0x43d67b,this['_model']);if(this['_trackingSessionId']&&(_0x3b0150['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c8e36=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fca87,'accept');return this['forceDefaultExecution'](()=>_0x2c8e36([_0x4663d9],_0x503c70,_0x3b0150)),null;}_0x3fbaa2['push'](_0x4663d9);let _0x636a64=!0x0;for(const _0x2f395c of _0x3fbaa2)if(!this['_rangeIsInLocalUserInsertion'](_0x2f395c)){_0x636a64=!0x1;break;}if(_0x636a64&&'always'!==this['_trackFormatChanges']){const _0x1618d7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fca87,'accept');return this['forceDefaultExecution'](()=>_0x1618d7([_0x4663d9],_0x503c70,_0x3b0150)),null;}let _0x2a40ed=null,_0x5d2f9d=_0x4663d9['start'],_0x51669c=_0x4663d9['end'];for(const {suggestion:_0x25ffc4,meta:_0x4b207d}of this['_findSuggestions'](_0x4663d9,'formatBlock')){if(!_0x4b207d['isOwn'])continue;if(_0x4b207d['isNextTo']||_0x4b207d['containsRangeInObject']||_0x4b207d['isInsideObject'])continue;if(_0x25ffc4['data']['formatGroupId']!=_0x503c70['formatGroupId'])continue;if(!Xt(_0x25ffc4,_0x3b0150))continue;const _0x398cb5=_0x25ffc4['getFirstRange']();if(_0x25ffc4['subType']==_0x4fca87){if(_0x398cb5['containsRange'](_0x4663d9,!0x0))return null;_0x5d2f9d=_0x5d2f9d['isBefore'](_0x398cb5['start'])?_0x5d2f9d:_0x398cb5['start'],_0x51669c=_0x51669c['isAfter'](_0x398cb5['end'])?_0x51669c:_0x398cb5['end'],_0x2a40ed?_0x398cb5['start']['isBefore'](_0x2a40ed['getFirstRange']()['start'])?(_0x2a40ed['removeMarkers'](),_0x2a40ed=_0x25ffc4):_0x25ffc4['removeMarkers']():_0x2a40ed=_0x25ffc4;}else{const _0x12faf5=_0x4663d9['getIntersection'](_0x398cb5);this['_cutOutSuggestionMarker'](_0x25ffc4,_0x12faf5);}}const _0x10ab61=this['editor']['plugins']['get']('Users')['me'],_0x48943f=_0x2b2224(),_0x202006=_0x10ab61['id'];if(_0x2a40ed)return this['_setSuggestionRange'](_0x2a40ed,this['_model']['createRange'](_0x5d2f9d,_0x51669c)),_0x2a40ed;{const _0x9c2ca5=this['_setSuggestionData']({'id':_0x48943f,'type':'formatBlock:'+_0x4fca87,'data':_0x503c70,'createdAt':new Date(),'authorId':_0x202006,'attributes':_0x3b0150});return this['_addSuggestionMarker']('formatBlock:'+_0x4fca87,_0x48943f,_0x202006,this['_model']['createRange'](_0x5d2f9d,_0x51669c)),_0x9c2ca5;}}['markMultiRangeBlockFormat'](_0x598754,_0x289e49,_0x4be784=[],_0x37db94=null,_0x4009c3={}){_0x289e49['formatGroupId']||(_0x289e49['formatGroupId']=_0x289e49['commandName']);const _0x59c1a9=_0x598754[0x0];_0x289e49['multipleBlocks']=_0x59c1a9['is']('range'),_0x37db94=_0x37db94||Lt(_0x289e49);const _0xa36a67=_0x4be784['map'](_0x5a08ca=>zt(_0x5a08ca,this['_model'])),_0x55cde8=_0x59c1a9['is']('range')?_0x598754:_0x598754['map'](_0xca9f87=>zt(_0xca9f87,this['_model']));if(this['_trackingSessionId']&&(_0x4009c3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x432ce=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37db94,'accept');return this['forceDefaultExecution'](()=>_0x432ce(_0x55cde8,_0x289e49,_0x4009c3)),null;}_0xa36a67['push'](..._0x55cde8);let _0x38161f=!0x0;for(const _0x2568e8 of _0xa36a67)if(!this['_rangeIsInLocalUserInsertion'](_0x2568e8)){_0x38161f=!0x1;break;}if(_0x38161f&&'always'!==this['_trackFormatChanges']){const _0x89c884=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37db94,'accept');return this['forceDefaultExecution'](()=>_0x89c884(_0x55cde8,_0x289e49,_0x4009c3)),null;}const _0x35ca42=this['editor']['plugins']['get']('Users')['me'];for(const _0x903c84 of this['getSuggestions']()){const _0x48d1b8=_0x903c84['data'];if(_0x903c84['author']['id']!=_0x35ca42['id'])continue;if('formatBlock'!=_0x903c84['type']||_0x48d1b8['formatGroupId']!=_0x289e49['formatGroupId'])continue;if(!Xt(_0x903c84,_0x4009c3))continue;const _0x2f6a5b=_0x903c84['subType']==_0x37db94;for(let _0xe81976=0x0;_0xe81976<_0x55cde8['length'];_0xe81976++){const _0x391cc3=_0x55cde8[_0xe81976];for(const _0x301df4 of _0x903c84['getMarkers']()){const _0x407071=_0x301df4['getRange']();if(_0x391cc3['isEqual'](_0x407071)){_0x2f6a5b?(_0x55cde8['splice'](_0xe81976,0x1),_0xe81976--):_0x903c84['removeMarker'](_0x301df4['name']);break;}}}}if(0x0==_0x55cde8['length'])return null;const _0x3123bb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37db94,'join');for(const _0x3646c0 of this['getSuggestions']()){const _0x13e097=_0x3646c0['data'];if(_0x3646c0['author']['id']==_0x35ca42['id']&&('formatBlock'==_0x3646c0['type']&&_0x13e097['formatGroupId']==_0x289e49['formatGroupId']&&_0x3646c0['subType']==_0x37db94&&Xt(_0x3646c0,_0x4009c3)&&(_0x3123bb(_0x3646c0['getRanges'](),_0x55cde8)||_0x3123bb(_0x55cde8,_0x3646c0['getRanges']())))){for(const _0x5c91c1 of _0x55cde8)_0x3646c0['addRange'](_0x5c91c1);return _0x3646c0;}}const _0x3614cb=_0x2b2224(),_0x23912c=_0x35ca42['id'],_0x39a75b='formatBlock:'+_0x37db94,_0x1ec22e=this['_setSuggestionData']({'id':_0x3614cb,'type':_0x39a75b,'data':_0x289e49,'createdAt':new Date(),'authorId':_0x23912c,'attributes':_0x4009c3});for(const _0x32f8cb of _0x55cde8)this['_addSuggestionMarker'](_0x39a75b,_0x3614cb,_0x23912c,_0x32f8cb,T['getMultiRangeId']());return _0x1ec22e;}['markDeletion'](_0x263ba8,_0x52415f=null,_0x21ce8a={}){if(_0x263ba8['isCollapsed'])return null;const _0x123ca2=this['editor']['plugins']['get']('Users')['me'],_0x3aba5b=new _0x171836(_0x263ba8['start'],_0x263ba8['end']);this['_trackingSessionId']&&(_0x21ce8a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2a9031,meta:_0x2d003d}of this['_findSuggestions'](_0x3aba5b,'insertion'))if(_0x2d003d['isOwn']&&!_0x2d003d['isNextTo']){if(_0x2a9031['isMultiRange']){const _0x5c2efe=_0x2a9031['getRanges']()['filter'](_0x2161bb=>'$graveyard'!=_0x2161bb['root']['rootName']);_0x5c2efe['every'](_0x318ab5=>_0x3aba5b['containsRange'](_0x318ab5,!0x0))&&_0x2a9031['discard']();if(_0x5c2efe['some'](_0xe20fe0=>_0xe20fe0['containsRange'](_0x3aba5b,!0x0))){const _0x470227=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52415f,'accept');return this['forceDefaultExecution'](()=>_0x470227([_0x3aba5b],null,_0x21ce8a)),null;}}else{const _0x1c7ad8=_0x3aba5b['getIntersection'](_0x2a9031['getFirstRange']());null!==_0x1c7ad8&&_0x2a9031['_onDiscard']([_0x1c7ad8],null,_0x21ce8a);}}if(_0x3aba5b['detach'](),_0x3aba5b['isCollapsed']||'$graveyard'==_0x3aba5b['root']['rootName'])return null;let _0x288fbc=null,_0x554e44=_0x3aba5b['start'],_0x156bb7=_0x3aba5b['end'];const _0x7c8d6c=this['_findSuggestions'](_0x3aba5b,'deletion');for(const {suggestion:_0x433263,meta:_0x1b3903}of _0x7c8d6c){const _0x5281b1=this['_model']['createRange'](_0x554e44,_0x156bb7);if(_0x1b3903['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1b3903['containsRangeInObject']&&!_0x1b3903['isInsideObject'])){if(_0x433263['isMultiRange']){if(!Xt(_0x433263,_0x21ce8a))continue;let _0x1c490a=!0x0;for(const _0x4dce5b of _0x433263['getRanges']()){if(_0x4dce5b['containsRange'](_0x5281b1,!0x0))return _0x433263;_0x5281b1['containsRange'](_0x4dce5b)||(_0x1c490a=!0x1);}_0x1c490a&&_0x433263['discard']();}else{const _0x2d7d2a=_0x433263['getFirstRange']();if(_0x2d7d2a['containsRange'](_0x5281b1,!0x0))return _0x433263;if(!Xt(_0x433263,_0x21ce8a)){_0x5281b1['containsRange'](_0x2d7d2a)?_0x433263['removeMarkers']():_0x2d7d2a['containsPosition'](_0x554e44)?_0x554e44=_0x2d7d2a['end']:_0x2d7d2a['containsPosition'](_0x156bb7)&&(_0x156bb7=_0x2d7d2a['start']);continue;}_0x554e44=_0x554e44['isBefore'](_0x2d7d2a['start'])?_0x554e44:_0x2d7d2a['start'],_0x156bb7=_0x156bb7['isAfter'](_0x2d7d2a['end'])?_0x156bb7:_0x2d7d2a['end'],_0x21ce8a=Object['assign']({},_0x433263['attributes']),_0x288fbc?_0x2d7d2a['start']['isBefore'](_0x288fbc['getFirstRange']()['start'])?(_0x288fbc['removeMarkers'](),_0x288fbc=_0x433263):_0x433263['removeMarkers']():_0x288fbc=_0x433263;}}}if(_0x288fbc)return this['_setSuggestionRange'](_0x288fbc,this['_model']['createRange'](_0x554e44,_0x156bb7)),_0x288fbc;{const _0x1bd757=_0x2b2224(),_0x9dc46f=this['_model']['createRange'](_0x554e44,_0x156bb7),_0x337971=_0x123ca2['id'],_0x3a1fd7=_0x52415f?'deletion:'+_0x52415f:'deletion',_0xf1ce0c=this['_setSuggestionData']({'id':_0x1bd757,'type':_0x3a1fd7,'createdAt':new Date(),'authorId':_0x337971,'attributes':_0x21ce8a});return this['_addSuggestionMarker'](_0x3a1fd7,_0x1bd757,_0x337971,_0x9dc46f),_0xf1ce0c;}}['markMultiRangeDeletion'](_0x588901,_0x53fc0b='multi',_0x5d1cc1={}){const _0xfa4a91=this['editor']['plugins']['get']('Users')['me'],_0x227909=_0x588901['map'](_0x288ed4=>new _0x171836(_0x288ed4['start'],_0x288ed4['end'])),_0x4e7627=new Set();this['_trackingSessionId']&&(_0x5d1cc1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5acc1a,meta:_0x37e4c8}of this['_findSuggestions'](_0x227909,'insertion'))_0x37e4c8['isOwn']&&!_0x37e4c8['isNextTo']&&_0x4e7627['add'](_0x5acc1a);for(const _0x40164c of _0x4e7627)if(_0x40164c['isMultiRange']){const _0x79b479=_0x40164c['getRanges']();(!_0x40164c['attributes']||!_0x40164c['attributes']['skipNestingCheck'])&&(_0x79b479['every'](_0x5a6d1d=>_0x227909['some'](_0x464cc7=>_0x464cc7['containsRange'](_0x5a6d1d,!0x0)))&&_0x40164c['discard']());if(_0x227909['every'](_0x294cf6=>_0x79b479['some'](_0x53c79a=>_0x53c79a['containsRange'](_0x294cf6,!0x0)))){const _0x22d81c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53fc0b,'accept');return this['forceDefaultExecution'](()=>_0x22d81c(_0x588901,null,_0x5d1cc1)),null;}}else{const _0xafe2d2=_0x40164c['getFirstRange']();_0x227909['some'](_0x9d31d3=>_0x9d31d3['containsRange'](_0xafe2d2,!0x0))&&_0x40164c['discard']();if(_0x227909['every'](_0x2cdbff=>_0xafe2d2['containsRange'](_0x2cdbff,!0x0))){const _0x124f5c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53fc0b,'accept');return this['forceDefaultExecution'](()=>_0x124f5c(_0x227909,null,_0x5d1cc1)),null;}}const _0x47732e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53fc0b,'join');let _0x1d3fa2=null;for(const _0x117668 of this['getSuggestions']())if(_0x117668['author']['id']==_0xfa4a91['id']&&_0x117668['isInContent']&&'deletion'==_0x117668['type']&&_0x117668['subType']==_0x53fc0b&&Xt(_0x117668,_0x5d1cc1)&&(_0x47732e(_0x117668['getRanges'](),_0x227909)||_0x47732e(_0x227909,_0x117668['getRanges']()))){if(_0x1d3fa2){if(_0x117668['commentThread']&&_0x117668['commentThread']['length'])continue;for(const _0x406607 of _0x117668['getRanges']())_0x1d3fa2['isIntersectingWithRange'](_0x406607)||_0x1d3fa2['addRange'](_0x406607);_0x117668['removeMarkers']();}else{_0x1d3fa2=_0x117668;for(const _0x59d4f9 of _0x227909)_0x117668['isIntersectingWithRange'](_0x59d4f9)||_0x117668['addRange'](_0x59d4f9);}}if(_0x1d3fa2)return _0x1d3fa2;_0x4e7627['clear']();for(const {suggestion:_0x385039,meta:_0x11cb4c}of this['_findSuggestions'](_0x227909,'deletion'))_0x11cb4c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x11cb4c['containsRangeInObject']&&!_0x11cb4c['isInsideObject'])&&Xt(_0x385039,_0x5d1cc1)&&_0x4e7627['add'](_0x385039);for(const _0xb4f247 of _0x4e7627){const _0x24759c=_0xb4f247['getRanges']();if(!_0x5d1cc1||!_0x5d1cc1['skipNestingCheck']){if(_0x227909['every'](_0x59f2be=>_0x24759c['some'](_0x23dd54=>_0x23dd54['containsRange'](_0x59f2be,!0x0))))return _0xb4f247;}(!_0xb4f247['attributes']||!_0xb4f247['attributes']['skipNestingCheck'])&&(_0x24759c['every'](_0x579690=>_0x227909['some'](_0x12c865=>_0x12c865['containsRange'](_0x579690,!0x0)))&&_0xb4f247['discard']());}const _0x4d95f9=_0x2b2224(),_0xf4f7f0=_0xfa4a91['id'],_0x52baa7='deletion:'+_0x53fc0b,_0xa63167=this['_setSuggestionData']({'id':_0x4d95f9,'type':_0x52baa7,'createdAt':new Date(),'authorId':_0xf4f7f0,'attributes':_0x5d1cc1});for(const _0x18e25d of _0x227909)_0x18e25d['detach'](),_0x18e25d['isCollapsed']||'$graveyard'==_0x18e25d['root']['rootName']||this['_addSuggestionMarker'](_0x52baa7,_0x4d95f9,_0xf4f7f0,_0x18e25d,T['getMultiRangeId']());return _0xa63167;}['markAttributeChange'](_0x3f825f,_0x42d9bb,_0x389bb6,_0x5cdda0,_0x5d92e5){if(_0x3f825f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x9b5a0a=this['editor']['plugins']['get']('Users')['me']['id'],_0x31dc96=Array['from'](this['_suggestions']['values']())['filter'](_0x30f6e1=>'attribute'==_0x30f6e1['type']&&_0x30f6e1['data']['key']==_0x42d9bb&&_0x30f6e1['isIntersectingWithRange'](_0x3f825f));if(this['_trackingSessionId']&&(_0x5d92e5['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x5e6d0d=this['_findSuggestions'](_0x3f825f,'insertion')['filter'](({meta:_0x5df1bd})=>_0x5df1bd['isOwn']&&!_0x5df1bd['isInsideObject']&&!_0x5df1bd['isNextTo'])['map'](({suggestion:_0x2375e0})=>_0x2375e0);_0x31dc96['unshift'](..._0x5e6d0d);}const _0x20c656=new Map([[_0x3f825f,_0x389bb6]]);for(const _0x152ef6 of _0x31dc96){const _0x2f7a13='attribute'==_0x152ef6['type']?_0x152ef6['data']['oldValue']:void 0x0,_0x4ffb9e=_0x152ef6['getFirstRange'](),_0x5c8b87=Array['from'](_0x20c656['keys']())['find'](_0x36652c=>_0x36652c['isIntersecting'](_0x4ffb9e));if(!_0x5c8b87)continue;const _0x43f7d3=_0x5c8b87['getDifference'](_0x4ffb9e);this['_isBlockAttribute'](_0x42d9bb)&&'insertion'==_0x152ef6['type']&&0x0!=_0x43f7d3['length']||(_0x20c656['delete'](_0x5c8b87),_0x43f7d3['forEach'](_0x33adf6=>{_0x20c656['set'](_0x33adf6,_0x389bb6);}),'insertion'!=_0x152ef6['type']&&_0x2f7a13!=_0x5cdda0&&_0x20c656['set'](_0x5c8b87['getIntersection'](_0x4ffb9e),_0x2f7a13));}const _0x505911=[];for(const [_0x337950,_0x550c07]of _0x20c656){const _0xd2bef7=_0x2b2224(),_0x48b12c={'key':_0x42d9bb,'oldValue':_0x550c07,'newValue':_0x5cdda0};_0x42d9bb['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':_0x42d9bb});const _0x5391d5=('attribute:'+(_0x42d9bb+'|'+Lt({'newValue':_0x5cdda0})))['substring'](0x0,0x3c),_0x1fd35b=this['_setSuggestionData']({'id':_0xd2bef7,'type':_0x5391d5,'data':_0x48b12c,'createdAt':new Date(),'authorId':_0x9b5a0a,'attributes':_0x5d92e5});_0x505911['push'](_0x1fd35b),this['_addSuggestionMarker'](_0x5391d5,_0xd2bef7,_0x9b5a0a,_0x337950);}return _0x505911;}['enableDefaultAttributesIntegration'](_0x26c1b3){this['enableCommand'](_0x26c1b3,(_0xe2fe21,..._0x2c68fe)=>{this['recordAttributeChanges'](()=>{_0xe2fe21(..._0x2c68fe);});});}['registerBlockAttribute'](_0x17791f){this['_blockAttributeKeys']['add'](_0x17791f);}['registerInlineAttribute'](_0x48dbe9){this['_inlineAttributeKeys']['add'](_0x48dbe9);}['startTrackingSession'](_0x333ae0){return this['_trackingSessionId']=void 0x0!==_0x333ae0?_0x333ae0:_0x2b2224(),this['_trackingSessionId'];}['_getAttributeKey'](_0x519cef){return'attribute'==_0x519cef['type']?_0x519cef['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x368ad9,_0x4c1fb2){const _0x1d16e7=_0x368ad9['getFirstMarker']();this['_model']['change'](_0x316fb0=>{_0x316fb0['updateMarker'](_0x1d16e7,{'range':_0x4c1fb2});});}['_addThreadToSuggestion'](_0x12e05b){const _0x5511f6=_0x12e05b['id'],_0x3f1d2f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5511f6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3f1d2f,'threadId':_0x5511f6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x497ae0=this['_commentsRepository']['getCommentThread'](_0x5511f6);_0x497ae0['unbind']('isRemovable'),_0x497ae0['isRemovable']=!0x1,_0x12e05b['commentThread']=_0x497ae0;}['_checkSuggestionCorrectness'](_0x4ec243,_0x3e784e,_0x4e1b58,_0x301752){if(_0x4ec243['type']!=_0x3e784e||_0x4ec243['subType']!=_0x4e1b58||_0x4ec243['creator']['id']!=_0x301752)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x70ecee('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x45cbe0,_0x319362){const _0x5794f9=_0x45cbe0['getFirstRange']();if(_0x319362['isEqual'](_0x5794f9))_0x45cbe0['removeMarkers']();else{if(_0x5794f9['containsRange'](_0x319362)){const _0x52f684=this['_model']['createPositionAt'](_0x319362['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x45cbe0,this['_model']['createRange'](_0x5794f9['start'],_0x52f684));const _0x3de8b3=_0x2b2224(),_0x39cb5b=_0x45cbe0['creator']['id'],_0x4b5c9b=_0x45cbe0['type']+':'+_0x45cbe0['subType'];this['_setSuggestionData']({'id':_0x3de8b3,'type':_0x4b5c9b,'createdAt':new Date(),'authorId':_0x39cb5b,'data':_0x45cbe0['data'],'attributes':_0x45cbe0['attributes']});const _0x39fd15=this['_model']['createPositionAt'](_0x319362['end']['parent'],'after'),_0x456df1=this['_model']['createRange'](_0x39fd15,_0x5794f9['end']);this['_addSuggestionMarker'](_0x4b5c9b,_0x3de8b3,_0x39cb5b,_0x456df1);}else{if(_0x5794f9['containsPosition'](_0x319362['start'])){const _0x2dc7e6=this['_model']['createPositionAt'](_0x319362['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x45cbe0,this['_model']['createRange'](_0x5794f9['start'],_0x2dc7e6));}else{const _0x2a9517=this['_model']['createPositionAt'](_0x319362['end']['parent'],'after');this['_setSuggestionRange'](_0x45cbe0,this['_model']['createRange'](_0x2a9517,_0x5794f9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3bb2a6){for(const {suggestion:_0x57ed39,meta:_0x348af7}of this['_findSuggestions'](_0x3bb2a6,'insertion')){if(!_0x348af7['isOwn'])continue;const _0x4ead20=_0x57ed39['getRanges']();for(const _0x347db8 of _0x4ead20)if(!_0x3bb2a6['getDifference'](_0x347db8)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x12cf95){return this['editor']['plugins']['get']('Users')['getUser'](_0x12cf95);}['_getExternalAuthor'](_0x318220){const _0x32d5c7=this['editor']['plugins']['get']('Users'),_0x250ce8=_0xb25aab('external:'+_0x318220),_0x25feb3=_0x32d5c7['getUser'](_0x250ce8);return _0x25feb3||_0x32d5c7['addUser']({'id':_0x250ce8,'name':_0x318220});}['_createSuggestion'](_0x4b7451,_0x123021,_0x458cb5,_0x498e5a,_0x5e3e77,_0x46d353){const _0x23d40a=this['_getAuthorFromId'](_0x498e5a);if(!_0x23d40a)throw new _0x70ecee('track-changes-user-not-found',this,{'authorId':_0x498e5a,'suggestionId':_0x458cb5});const _0x383ba6=this['_suggestionFactory']['buildSuggestion'](_0x4b7451,_0x123021,_0x458cb5,_0x23d40a,_0x5e3e77,_0x41a70a=>{this['_updateSuggestionData'](_0x458cb5,{'attributes':_0x41a70a});const _0x6523b0=this['getSuggestion'](_0x458cb5);this['_joinWithAdjacentSuggestions'](new Set([_0x6523b0])),this['_refreshSuggestionsChain'](new Set([_0x6523b0]));},_0x46d353);return this['listenTo'](_0x383ba6,'accept',()=>{this['_updateSuggestionData'](_0x458cb5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x383ba6,'discard',()=>{this['_updateSuggestionData'](_0x458cb5,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x458cb5,_0x383ba6),this['_suggestionState']['set'](_0x383ba6,'notReady'),_0x383ba6;}['_splitMarkerName'](_0x2a6329){const _0x165fd9=_0x2a6329['split'](':');return{'group':_0x165fd9[0x0],'type':_0x165fd9[0x1],'subType':_0x165fd9['length']>=0x5?_0x165fd9[0x2]:null,'id':_0x165fd9['length']<0x5?_0x165fd9[0x2]:_0x165fd9[0x3],'authorId':_0x165fd9['length']<0x5?_0x165fd9[0x3]:_0x165fd9[0x4],'markerCount':0x6==_0x165fd9['length']?_0x165fd9[0x5]:null};}['_breakSuggestionMarker'](_0x702df,_0x14eb27,_0x2b2b82){const _0x4678f0=_0x702df['getFirstRange'](),_0x5e6ac7=_0x4678f0['start'],_0x9b9ac4=_0x4678f0['end'];this['_setSuggestionRange'](_0x702df,this['_model']['createRange'](_0x5e6ac7,_0x14eb27));const _0x330dbf=_0x2b2224(),_0x530fd2=_0x702df['creator']['id'],_0x45065b=_0x702df['type']+(_0x702df['subType']?':'+_0x702df['subType']:'');this['_setSuggestionData']({'id':_0x330dbf,'type':_0x45065b,'createdAt':new Date(),'authorId':_0x530fd2,'originalSuggestionId':_0x702df['_originalSuggestionId']||_0x702df['id'],'attributes':_0x702df['attributes'],'data':_0x702df['data']});const _0x2468b5=this['_getAttributeKey'](_0x702df);('formatBlock'==_0x702df['type']||_0x2468b5&&this['_isBlockAttribute'](_0x2468b5))&&(_0x2b2b82=this['_model']['createPositionBefore'](_0x2b2b82['parent'])),this['_addSuggestionMarker'](_0x45065b,_0x330dbf,_0x530fd2,this['_model']['createRange'](_0x2b2b82,_0x9b9ac4));}['_findSuggestions'](_0x1ec732,_0x1a7224=null){const _0x1fa092=[],_0x4a7d48=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1ec732)||(_0x1ec732=[_0x1ec732]);for(const _0x300b84 of this['getSuggestions']()){if(!_0x300b84['isInContent'])continue;if(_0x1a7224&&_0x300b84['type']!=_0x1a7224)continue;let _0x27c900=!0x1;for(const _0x503a41 of _0x300b84['getRanges']()){for(const _0x1d6c0a of _0x1ec732){const _0x11a018=_0x1d6c0a['start']['isEqual'](_0x503a41['end'])||_0x1d6c0a['end']['isEqual'](_0x503a41['start']);if(_0x11a018||_0x1d6c0a['getIntersection'](_0x503a41)){const _0x856f5b=_0x1d6c0a['containsRange'](_0x503a41)&&Ft(this['_model']['schema'],_0x503a41['start'],_0x1d6c0a),_0x4c059b=_0x503a41['containsRange'](_0x1d6c0a)&&Ft(this['_model']['schema'],_0x1d6c0a['start'],_0x503a41);_0x1fa092['push']({'suggestion':_0x300b84,'meta':{'isOwn':_0x4a7d48==_0x300b84['author'],'isNextTo':_0x11a018,'isInsideObject':_0x856f5b,'containsRangeInObject':_0x4c059b}}),_0x27c900=!0x0;break;}}if(_0x27c900)break;}}return _0x1fa092;}['_addSuggestionMarker'](_0x2d8178,_0x36b79f,_0x51ffa4,_0x5e4dd8,_0x4822cc){this['_model']['change'](_0x1fe377=>{let _0x5d2f1d='suggestion:'+_0x2d8178+':'+_0x36b79f+':'+_0x51ffa4;_0x4822cc&&(_0x5d2f1d=_0x5d2f1d+':'+_0x4822cc),_0x1fe377['addMarker'](_0x5d2f1d,{'range':_0x5e4dd8,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x574d5b){const _0x3779f0=_0x574d5b['previous'],_0x353936=_0x574d5b['next'];_0x574d5b['previous']=null,_0x574d5b['next']=null,null!=_0x3779f0&&_0x3779f0['next']==_0x574d5b&&(_0x3779f0['next']=_0x353936),null!=_0x353936&&_0x353936['previous']==_0x574d5b&&(_0x353936['previous']=_0x3779f0),'ready'==this['_suggestionState']['get'](_0x574d5b)&&(this['_suggestionState']['set'](_0x574d5b,'removed'),this['fire']('suggestionUnloaded',_0x574d5b,_0x3779f0,_0x353936));}['_setSuggestionData'](_0x385950){const _0xd37191=_0x385950['id'],_0x32072d=this['addSuggestionData'](_0x385950);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2f85fc=this['editor']['plugins']['get']('PendingActions'),_0x220847=_0x32072d['hasComments'],_0xba5628=_0x32072d['subType']?_0x32072d['type']+':'+_0x32072d['subType']:_0x32072d['type'],_0x1674d2=this['editor']['locale'],_0x23de16=_0x2f85fc['add'](o(_0x1674d2,'PENDING_ACTION_SUGGESTION')),_0x1b5be2={'id':_0xd37191,'type':_0xba5628,'hasComments':_0x220847,'data':_0x385950['data']||null,'originalSuggestionId':_0x385950['originalSuggestionId']||null,'attributes':_0x32072d['attributes']};this['_adapter']['addSuggestion'](_0x1b5be2)['then'](_0x2c9a88=>{_0x32072d['_saved']=!0x0,_0x2f85fc['remove'](_0x23de16),_0x2c9a88&&_0x2c9a88['createdAt']&&(this['_suggestions']['get'](_0xd37191)['createdAt']=_0x2c9a88['createdAt']);})['catch'](_0xc09d05=>{throw _0x52604b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x32072d['discard']();}),_0x32072d['stopListening'](),this['_suggestions']['delete'](_0x32072d['id']),this['_suggestionState']['delete'](_0x32072d),_0xc09d05;});}return _0x32072d;}['_isBlockAttribute'](_0x3466a5){return this['_blockAttributeKeys']['has'](_0x3466a5);}['_isInlineAttribute'](_0x3a41dc){return this['_inlineAttributeKeys']['has'](_0x3a41dc);}['_updateSuggestionData'](_0xf9dbbe,_0x3f174b){const _0x1ea71e=this['editor']['plugins']['get']('PendingActions'),_0x100aff=this['getSuggestion'](_0xf9dbbe);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x100aff['_saved']){const _0x3fa474=_0x1ea71e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xf9dbbe,_0x3f174b)['then'](()=>{_0x1ea71e['remove'](_0x3fa474);});}else _0x100aff['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xf9dbbe,_0x3f174b);});}}['_getSuggestionData'](_0x3f8714){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x70ecee('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3f8714);}['_handleNewSuggestionMarker'](_0x25f24d){const {id:_0x3d92d3,type:_0x37b8e4,subType:_0x2ebbca,authorId:_0x4a7460}=this['_splitMarkerName'](_0x25f24d),_0x396db1=this['_suggestions']['get'](_0x3d92d3)||this['_createSuggestion'](_0x37b8e4,_0x2ebbca,_0x3d92d3,_0x4a7460,{});switch(this['_checkSuggestionCorrectness'](_0x396db1,_0x37b8e4,_0x2ebbca,_0x4a7460),this['_suggestionState']['get'](_0x396db1)){case'notReady':this['_getSuggestionData'](_0x3d92d3)['then'](_0x3d96b6=>{let _0x2cd36b=Promise['resolve']();_0x3d96b6['hasComments']&&(_0x2cd36b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3d92d3})),_0x2cd36b['then'](()=>{this['addSuggestionData'](_0x3d96b6)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x396db1,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3d92d3,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x396db1,'ready'),this['fire']('suggestionLoaded',_0x396db1);break;case'ready':this['fire']('suggestionChanged',_0x396db1);}return _0x396db1['addMarkerName'](_0x25f24d),_0x396db1;}['_refreshSuggestionsChain'](_0x1c762f){const _0x13a9cd=Array['from'](_0x1c762f),_0x30562a=_0x13a9cd['filter'](_0x529a0a=>'attribute'==_0x529a0a['type']);this['_refreshAttributeSuggestionsChain'](_0x30562a);const _0x24aee9=_0x13a9cd['filter'](_0x27d532=>!_0x27d532['isMultiRange']&&'attribute'!=_0x27d532['type']),_0x23e2cd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x564a6f=>!_0x564a6f['isMultiRange']&&'attribute'!=_0x564a6f['type']),_0x58df5c=_0x23e2cd['filter'](_0x4d99d6=>!_0x1c762f['has'](_0x4d99d6)),_0x2a7167=new Map(_0x23e2cd['map'](_0x209326=>[_0x209326,this['_suggestionFactory']['getSuggestionCallback'](_0x209326['type'],_0x209326['subType'],'chain')])),_0x382591=new Map(_0x23e2cd['map'](_0x1fe44e=>[_0x1fe44e,_0x1fe44e['getFirstRange']()])),_0x1b2c91=new Set(),_0x200022=new Set();for(let _0x349afe=0x0;_0x349afe<_0x24aee9['length'];_0x349afe++)_0xeff88d(_0x24aee9[_0x349afe],_0x24aee9,_0x349afe+0x1);for(let _0x341a34=0x0;_0x341a34<_0x24aee9['length'];_0x341a34++)_0xeff88d(_0x24aee9[_0x341a34],_0x58df5c,0x0);const _0x432b59=new Set();for(let _0x406db0=0x0;_0x406db0<_0x24aee9['length'];_0x406db0++){const _0x39344e=_0x24aee9[_0x406db0];!_0x200022['has'](_0x39344e)&&_0x39344e['previous']&&(_0x432b59['add'](_0x39344e['previous']),_0x39344e['previous']['next']===_0x39344e&&(_0x39344e['previous']['next']=null),_0x39344e['previous']=null),!_0x1b2c91['has'](_0x39344e)&&_0x39344e['next']&&(_0x432b59['add'](_0x39344e['next']),_0x39344e['next']['previous']===_0x39344e&&(_0x39344e['next']['previous']=null),_0x39344e['next']=null);}function _0xeff88d(_0x2b787e,_0x2d10e2,_0x5b3012){for(let _0xcae0d0=_0x5b3012;_0xcae0d0<_0x2d10e2['length'];_0xcae0d0++){const _0x551c82=_0xe58014(_0x2b787e,_0x2d10e2[_0xcae0d0]);_0x551c82&&(_0x551c82[0x0]['next']=_0x551c82[0x1],_0x551c82[0x1]['previous']=_0x551c82[0x0],_0x1b2c91['add'](_0x551c82[0x0]),_0x200022['add'](_0x551c82[0x1]));}}function _0xe58014(_0x422c8a,_0x9be3fc){if(_0x422c8a['author']['id']!==_0x9be3fc['author']['id'])return null;const _0x146438=_0x2a7167['get'](_0x422c8a)(_0x422c8a,_0x9be3fc,_0x382591['get'](_0x422c8a),_0x382591['get'](_0x9be3fc));if(!_0x146438)return null;return _0x2a7167['get'](_0x9be3fc)(_0x422c8a,_0x9be3fc,_0x382591['get'](_0x422c8a),_0x382591['get'](_0x9be3fc))?_0x146438[0x1]['commentThread']&&_0x146438[0x1]['commentThread']['length']?null:_0x146438:null;}_0x432b59['size']&&this['_refreshSuggestionsChain'](_0x432b59);}['_refreshAttributeSuggestionsChain'](_0x154a6f){if(0x0==_0x154a6f['length'])return;const _0x79816b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb5d1b4=>'attribute'==_0xb5d1b4['type']&&_0xb5d1b4['_isDataLoaded']),_0x570250=[],_0x1de925=new Map();for(const _0x5b64cd of _0x79816b){const _0x1a0a3e=_0xb25aab(_0x5b64cd['attributes']);_0x1de925['has'](_0x1a0a3e)||(_0x1de925['set'](_0x1a0a3e,_0x570250['length']),_0x570250['push']([]));const _0x186330=_0x1de925['get'](_0x1a0a3e);_0x570250[_0x186330]['push'](_0x5b64cd);}!(function(){_0x570250['sort']((_0x3124c9,_0x10d1fb)=>{const _0x4600b9=_0x3124c9[0x0]['createdAt'],_0x3155ba=_0x10d1fb[0x0]['createdAt'];return _0x4600b9==_0x3155ba?_0x3124c9[0x0]['attributes']['groupId']<_0x10d1fb[0x0]['attributes']['groupId']?-0x1:0x1:_0x4600b9<_0x3155ba?-0x1:0x1;});for(const _0x520fac of _0x570250)_0x520fac['sort']((_0x366258,_0x463f7f)=>_0x366258['id']<_0x463f7f['id']?-0x1:0x1);}());for(let _0x50a806=0x0;_0x50a806<_0x570250['length'];_0x50a806++){if(0x0==_0x570250[_0x50a806]['length'])continue;const _0x2c5bcb=[];for(let _0x5a4010=_0x50a806+0x1;_0x5a4010<_0x570250['length'];_0x5a4010++)0x0!=_0x570250[_0x5a4010]['length']&&_0x35b608(_0x570250[_0x50a806],_0x570250[_0x5a4010])&&_0x2c5bcb['push'](_0x5a4010);for(const _0x53e4cd of _0x2c5bcb)_0x570250[_0x50a806]=_0x570250[_0x50a806]['concat'](_0x570250[_0x53e4cd]),_0x570250[_0x53e4cd]=[];}for(const _0x7381e8 of _0x570250)for(let _0x2c3d18=0x0;_0x2c3d18<_0x7381e8['length'];_0x2c3d18++){const _0x1015ba=_0x7381e8[_0x2c3d18+0x1]||null;_0x7381e8[_0x2c3d18]['next']!==_0x1015ba&&(_0x7381e8[_0x2c3d18]['next']=_0x1015ba);}for(const _0x28ecc6 of _0x570250)for(let _0x3a960d=0x0;_0x3a960d<_0x28ecc6['length'];_0x3a960d++){const _0x204123=_0x28ecc6[_0x3a960d-0x1]||null;_0x28ecc6[_0x3a960d]['previous']!==_0x204123&&(_0x28ecc6[_0x3a960d]['previous']=_0x204123);}function _0x35b608(_0x3e8e69,_0x32f14c){if(_0x3e8e69[0x0]['attributes']['groupId']!==_0x32f14c[0x0]['attributes']['groupId']&&_0x3e8e69[0x0]['author']!==_0x32f14c[0x0]['author'])return!0x1;if(!function(_0x1b719c,_0x1c4102){if(!_0x1b719c['hasComments']&&!_0x1c4102['hasComments'])return!0x0;if(_0x1b719c['hasComments']&&_0x1c4102['hasComments'])return!0x1;if(_0x1b719c['hasComments']&&_0x1c4102['createdAt']<_0x1b719c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1c4102['hasComments']&&_0x1b719c['createdAt']<_0x1c4102['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3e8e69[0x0],_0x32f14c[0x0]))return!0x1;const _0x8aa934=Ut(_0x3e8e69[0x0]['attributes'],['groupId','trackingSessionId']),_0x4667c2=Ut(_0x32f14c[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x10303f(_0x8aa934,_0x4667c2))return!0x1;if(_0x3e8e69[0x0]['attributes']['groupId']==_0x32f14c[0x0]['attributes']['groupId'])return!0x0;if(_0x3e8e69[0x0]['attributes']['trackingSessionId']!==_0x32f14c[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3e8e69['every'](_0x16da91=>_0x32f14c['some'](_0x4b568f=>_0x16da91['getFirstRange']()['isEqual'](_0x4b568f['getFirstRange']())))&&_0x32f14c['every'](_0x5ef40f=>_0x3e8e69['some'](_0x13dd6f=>_0x5ef40f['getFirstRange']()['isEqual'](_0x13dd6f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1cc8ae){const _0x2ef2e9=Array['from'](_0x1cc8ae),_0x1e0c73=this['getSuggestions']({'skipNotAttached':!0x0}),_0x11c84d=_0x1e0c73['filter'](_0x47e466=>!_0x1cc8ae['has'](_0x47e466)),_0xc8bc59=new Map(_0x2ef2e9['map'](_0x58638a=>[_0x58638a,this['_suggestionFactory']['getSuggestionCallback'](_0x58638a['type'],_0x58638a['subType'],'join')])),_0x1de1e2=new Map(_0x1e0c73['map'](_0x45c7a8=>[_0x45c7a8,_0x45c7a8['getRanges']()]));for(let _0x512cb2=0x0;_0x512cb2<_0x2ef2e9['length'];_0x512cb2++){if(_0x37e183(this,_0x2ef2e9[_0x512cb2],_0x2ef2e9,_0x512cb2+0x1))return!0x0;}for(let _0x12f50f=0x0;_0x12f50f<_0x2ef2e9['length'];_0x12f50f++){if(_0x37e183(this,_0x2ef2e9[_0x12f50f],_0x11c84d,0x0))return!0x0;}return!0x1;function _0x37e183(_0x42da81,_0x39eccb,_0x548d08,_0x233ee1){for(let _0x17173e=_0x233ee1;_0x17173e<_0x548d08['length'];_0x17173e++){const _0x998d61=_0x548d08[_0x17173e];if(_0x998d61['type']!==_0x39eccb['type']||_0x998d61['author']['id']!==_0x39eccb['author']['id']||_0x998d61['subType']!==_0x39eccb['subType'])continue;if(!Qt(_0x39eccb,_0x998d61))continue;if('attribute'==_0x39eccb['type']&&_0x39eccb['data']['oldValue']!=_0x998d61['data']['oldValue'])continue;if('attribute'==_0x39eccb['type']&&_0x42da81['_isBlockAttribute'](_0x39eccb['data']['key']))continue;if('formatBlock'==_0x39eccb['type']){const _0x389df2=_0x42da81['editor']['model'],_0x58ef16=_0x39eccb['getContainedElement']();if(_0x58ef16&&(_0x389df2['schema']['isObject'](_0x58ef16)||_0x389df2['schema']['isLimit'](_0x58ef16)))continue;}const _0x6e51d0=_0xc8bc59['get'](_0x39eccb),_0xc64630=_0x1de1e2['get'](_0x39eccb),_0x464898=_0x1de1e2['get'](_0x998d61),_0x250d42=_0x39eccb['commentThread']&&_0x39eccb['commentThread']['length'],_0x24715a=_0x998d61['commentThread']&&_0x998d61['commentThread']['length'];if(!_0x250d42&&_0x6e51d0(_0x464898,_0xc64630))return _0x42da81['_joinSuggestions'](_0x998d61,_0x39eccb),_0x1de1e2['delete'](_0x39eccb),!0x0;if(!_0x24715a&&_0x6e51d0(_0xc64630,_0x464898))return _0x42da81['_joinSuggestions'](_0x39eccb,_0x998d61),_0x1de1e2['delete'](_0x998d61),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1d89b3,_0x3e9cd3){if(_0x1d89b3['isMultiRange']){for(const _0x50a889 of _0x3e9cd3['getRanges']())_0x1d89b3['addRange'](_0x50a889);}else{const _0x372aec=_0x3e9cd3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1d89b3,this['_model']['createRange'](_0x1d89b3['getFirstRange']()['start'],_0x372aec));}_0x3e9cd3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2b2fbd,_0x1fe4fc,_0xaa44bf){const _0x12956d=_0x2b2fbd['startsWith']('format')||_0x2b2fbd['startsWith']('attribute')?'FORMATTING':_0x2b2fbd['toUpperCase']();return o(this['editor']['locale'],_0x1fe4fc+'_'+_0x12956d+'_SUGGESTION_ANNOUNCEMENT',_0xaa44bf);}['_initAriaMarkerChangeAnnouncements'](){const _0x20489d=this['editor'];if(!_0x20489d['ui'])return;const {ariaLiveAnnouncer:_0x3b3d0a}=_0x20489d['ui'];_0x224546(this['_model'],({left:_0x5a93a2,entered:_0x308b76})=>{for(const _0x3c62c0 of _0x5a93a2){const {group:_0x43fcff,type:_0x36628e}=this['_splitMarkerName'](_0x3c62c0['name']);if('suggestion'===_0x43fcff){_0x3b3d0a['announce'](this['_getMarkerAnnouncementText'](_0x36628e,'LEAVE'));break;}}for(const _0x256103 of _0x308b76){const {group:_0x4d70df,type:_0x15b510}=this['_splitMarkerName'](_0x256103['name']);if('suggestion'===_0x4d70df){_0x3b3d0a['announce'](this['_getMarkerAnnouncementText'](_0x15b510,'ENTER',_0x113e26(_0x440747)));break;}}});}['_processAttributeChanges'](_0x4d1b76){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5a2419=this['editor'],_0x1865f9=_0x5a2419['model']['document']['differ']['getChanges']();if(0x0==_0x1865f9['length'])return!0x1;const _0x3c6a1b=[],_0x2cfc6d=_0x1865f9['filter'](_0x2045b1=>'attribute'==_0x2045b1['type']),_0x292265=_0x1865f9['filter'](_0x3b4f4d=>'insert'==_0x3b4f4d['type']&&'$text'!=_0x3b4f4d['name']),_0xecacae=_0x1865f9['filter'](_0x3452a1=>'remove'==_0x3452a1['type']&&'$text'!=_0x3452a1['name']);for(const _0x35610e of _0x2cfc6d)_0x3c6a1b['push']({'key':_0x35610e['attributeKey'],'newValue':_0x35610e['attributeNewValue'],'oldValue':_0x35610e['attributeOldValue'],'range':qt(_0x35610e['range'],_0x5a2419['model'])});for(const _0x5ffb9 of _0x292265){const _0x4fba3f=_0xecacae['find'](_0x3b9753=>_0x3b9753['position']['isEqual'](_0x5ffb9['position']));_0x4fba3f&&_0x3c6a1b['push']({'key':m,'newValue':_0x5ffb9['name'],'oldValue':_0x4fba3f['name'],'range':_0x5a2419['model']['createRangeOn'](_0x5ffb9['position']['nodeAfter'])});}return 0x0!=_0x3c6a1b['length']&&this['_reduceExistingSuggestions'](_0x4d1b76,_0x3c6a1b);}['_processAttributeSuggestions'](_0x495021){let _0x11476e=!0x1;const _0x2ec286=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b8a96=>_0x1b8a96['data']['newRange']&&_0x1b8a96['name']['startsWith']('suggestion:attribute:'));for(const _0x1c4e8a of _0x2ec286){const {subType:_0x1e7d0d,id:_0x3f19a4}=this['_splitMarkerName'](_0x1c4e8a['name']),_0x1b3a3b=_0x1e7d0d['split']('|')[0x0];for(const _0x147c3f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x147c3f['id']!=_0x3f19a4&&'attribute'==_0x147c3f['type']&&_0x147c3f['data']&&_0x147c3f['data']['key']==_0x1b3a3b&&_0x147c3f['getFirstRange']()['isIntersecting'](_0x1c4e8a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x147c3f,_0x1c4e8a['data']['newRange'],_0x495021),_0x11476e=!0x0);}return _0x11476e;}['recordAttributeChanges'](_0x56b026){this['_recordAttributeSuggestions']=!0x0,_0x56b026();}['_isRegisteredAttribute'](_0x186ef2){const _0x15b632=this['_isBlockAttribute'](_0x186ef2),_0x1c3d5c=this['_isInlineAttribute'](_0x186ef2);return _0x15b632||_0x1c3d5c;}['_reduceExistingSuggestions'](_0x66f89a,_0x457abe){if(0x0==_0x457abe['length'])return!0x1;let _0x162120=!0x1;for(const _0x11f37a of _0x457abe){const _0x6f5495=this['_findSuggestions'](_0x11f37a['range'],'attribute')['filter'](_0x4b5716=>!_0x4b5716['meta']['isNextTo'])['map'](_0x581ece=>_0x581ece['suggestion']),_0x376b8e=_0xb25aab({'newValue':_0x11f37a['newValue']});_0x6f5495['filter'](_0xbabe77=>{const [_0x228cfd,_0x3a61ad]=_0xbabe77['subType']['split']('|');return _0x228cfd==_0x11f37a['key']&&_0x3a61ad!=_0x376b8e;})['forEach'](_0x3844af=>{this['_reduceSuggestionAttributeRange'](_0x3844af,_0x11f37a['range'],_0x66f89a),_0x162120=!0x0;});}return _0x162120;}['_reduceSuggestionAttributeRange'](_0x380b0c,_0x493646,_0x50ce54){const _0x529660=_0x380b0c['getFirstRange']()['getDifference'](_0x493646);0x0!==_0x529660['length']?0x1!==_0x529660['length']?this['_breakSuggestionMarker'](_0x380b0c,_0x493646['start'],_0x493646['end']):this['_setSuggestionRange'](_0x380b0c,_0x529660[0x0]):_0x50ce54['removeMarker'](_0x380b0c['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4d277f){this['_editor']=_0x4d277f,this['_model']=_0x4d277f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3b7563,_0x4e2f9c,_0x3de732,_0x3c4ae0,_0x42ee21,_0x3aad5b,_0xc940a3){return new T(this['_model'],{'type':_0x3b7563,'subType':_0x4e2f9c,'id':_0x3de732,'originalSuggestionId':_0xc940a3,'author':_0x3c4ae0,'creator':_0x3c4ae0,'attributes':_0x42ee21,'onAttributesChange':_0x3aad5b,'onAccept':(..._0x4dfe66)=>this['getSuggestionCallback'](_0x3b7563,_0x4e2f9c,'accept')(..._0x4dfe66),'onDiscard':(..._0x212d7c)=>this['getSuggestionCallback'](_0x3b7563,_0x4e2f9c,'discard')(..._0x212d7c)});}['registerCustomCallback'](_0x95e80,_0x4d71e6,_0x381638,_0x31187a){const _0x20080d=_0x95e80+':'+_0x4d71e6+':'+_0x381638;this['_customCallbacks']['set'](_0x20080d,_0x31187a);}['getSuggestionCallback'](_0x44ca86,_0xe113b,_0xb1a1e2){const _0x5d47d9=_0x44ca86+':'+_0xe113b+':'+_0xb1a1e2;return this['_customCallbacks']['get'](_0x5d47d9)||this['_defaultCallbacks']['get'](_0x44ca86+':'+_0xb1a1e2);}['_registerDefaultCallbacks'](){const _0x29a28b=()=>!0x1,_0x5ef4bd=_0x3ef030=>{_0x3ef030['sort']((_0x2efa6c,_0x1a2917)=>_0x2efa6c['start']['isBefore'](_0x1a2917['start'])?0x1:-0x1),this['_model']['change'](_0x1d5c8e=>{for(const _0x2d0a9c of _0x3ef030){let _0x151bbc;_0x151bbc=_0x2d0a9c['end']['isAtEnd']&&_0x2d0a9c['end']['parent']==_0x2d0a9c['start']['nodeAfter']?_0x1d5c8e['createSelection'](_0x2d0a9c['start']['nodeAfter'],'on'):_0x1d5c8e['createSelection'](_0x2d0a9c),this['_model']['deleteContent'](_0x151bbc,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0xf34c6d=(_0x1d2e0a,_0x3b6e11)=>{_0x3b6e11&&this['_model']['change'](_0x1b082a=>{const {commandName:_0x3333fb,commandParams:_0x11122b=[]}=_0x3b6e11,_0x1edb17=_0x1d2e0a['map'](_0x4bc36e=>(Pt(_0x4bc36e)&&(_0x4bc36e=this['_model']['createRange'](_0x4bc36e['end'])),_0x4bc36e))['filter'](_0x33bba2=>'$graveyard'!==_0x33bba2['root']['rootName']);if(_0x1edb17['length']<0x1)return;const _0x454fdd=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3a651b=>_0x171836['fromRange'](_0x3a651b));_0x1b082a['setSelection'](_0x1edb17);for(const _0x50989a of this['_editor']['commands']['commands']())_0x50989a['refresh']();_0x11122b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3333fb,..._0x11122b);const _0x384385=_0x454fdd['filter'](_0x4c8d6b=>'$graveyard'!=_0x4c8d6b['root']['rootName']);_0x384385['length']>0x0&&_0x1b082a['setSelection'](_0x384385);for(const _0x581a52 of _0x454fdd)_0x581a52['detach']();});},_0x1a4614=(_0x15c015,_0x555268)=>0x1==_0x15c015['length']&&0x1==_0x555268['length']&&_0x15c015[0x0]['end']['isEqual'](_0x555268[0x0]['start']),_0x390c2a=(_0x353fc4,_0x42bd09,_0x596631,_0x57d6c8)=>Wt(_0x353fc4,_0x42bd09,_0x596631,_0x57d6c8)?[_0x353fc4,_0x42bd09]:Wt(_0x42bd09,_0x353fc4,_0x57d6c8,_0x596631)?[_0x42bd09,_0x353fc4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x29a28b),this['_defaultCallbacks']['set']('insertion:discard',_0x5ef4bd),this['_defaultCallbacks']['set']('insertion:join',_0x1a4614),this['_defaultCallbacks']['set']('insertion:chain',_0x390c2a),this['_defaultCallbacks']['set']('deletion:accept',_0x5ef4bd),this['_defaultCallbacks']['set']('deletion:discard',_0x29a28b),this['_defaultCallbacks']['set']('deletion:join',_0x1a4614),this['_defaultCallbacks']['set']('deletion:chain',_0x390c2a),this['_defaultCallbacks']['set']('formatInline:accept',_0xf34c6d),this['_defaultCallbacks']['set']('formatInline:discard',_0x29a28b),this['_defaultCallbacks']['set']('formatInline:join',_0x1a4614),this['_defaultCallbacks']['set']('formatInline:chain',_0x29a28b),this['_defaultCallbacks']['set']('formatBlock:accept',_0xf34c6d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x29a28b),this['_defaultCallbacks']['set']('formatBlock:join',_0x1a4614),this['_defaultCallbacks']['set']('formatBlock:chain',_0x29a28b),this['_defaultCallbacks']['set']('attribute:accept',_0x29a28b),this['_defaultCallbacks']['set']('attribute:discard',(_0x194bfd,_0x269233)=>{if(!_0x269233)return;const _0x191c96=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x3c83c4=>{if(_0x269233['key']==m)for(const _0x5efa77 of _0x194bfd){const _0x272917=_0x5efa77['start']['nodeAfter'],_0x463d9e=_0x269233['oldValue'];_0x3c83c4['rename'](_0x272917,_0x463d9e);}else{if(_0x191c96['_isBlockAttribute'](_0x269233['key'])){for(const _0x1201fe of _0x194bfd)void 0x0!==_0x269233['oldValue']?_0x3c83c4['setAttribute'](_0x269233['key'],_0x269233['oldValue'],_0x1201fe['start']['nodeAfter']):_0x3c83c4['removeAttribute'](_0x269233['key'],_0x1201fe['start']['nodeAfter']);}else{for(const _0x700319 of _0x194bfd)_0x269233['oldValue']?_0x3c83c4['setAttribute'](_0x269233['key'],_0x269233['oldValue'],_0x700319):_0x3c83c4['removeAttribute'](_0x269233['key'],_0x700319);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1a4614);}}function Ft(_0x22d955,_0x4df73c,_0x437c7c){for(const _0x27b9fe of _0x4df73c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x27b9fe['root']==_0x27b9fe)return!0x1;if(!_0x437c7c['containsItem'](_0x27b9fe))return!0x1;if(_0x22d955['isObject'](_0x27b9fe)||_0x22d955['isLimit'](_0x27b9fe))return!0x0;}return!0x1;}function Pt(_0x5577ce){return _0x5577ce['end']['parent']==_0x5577ce['start']['nodeAfter']&&_0x5577ce['end']['isAtStart'];}function Gt(_0x18e40b,_0x568ab2,_0x5b68f6,_0x189495){const _0x4b0fc1=_0x597147=>!_0x597147['item']['is']('$textProxy')&&!_0x189495['isObject'](_0x597147['item']),_0x5aade4=_0x18e40b['start']['getLastMatchingPosition'](_0x4b0fc1),_0x49afd4=_0x18e40b['end']['getLastMatchingPosition'](_0x4b0fc1,{'direction':'backward'});return(!_0x18e40b['start']['isEqual'](_0x5aade4)||!_0x18e40b['end']['isEqual'](_0x49afd4))&&(_0x5aade4['isBefore'](_0x49afd4)?_0x5b68f6['updateMarker'](_0x568ab2,{'range':_0x5b68f6['createRange'](_0x5aade4,_0x49afd4)}):_0x5b68f6['removeMarker'](_0x568ab2),!0x0);}function Lt(_0x3a2efa){return _0xb25aab(_0x3a2efa);}function Jt(_0x5a795e){const _0x3fb63a=_0x5a795e['start']['nodeAfter'];return _0x3fb63a&&_0x3fb63a['is']('element');}function Kt(_0x1ba19a){return Pt(_0x1ba19a)||function(_0x139f76){return _0x139f76['start']['parent']==_0x139f76['end']['nodeBefore']&&_0x139f76['start']['isAtEnd'];}(_0x1ba19a);}function Ht(_0x314833,_0x131bef){try{const _0x3f852e=_0x314833['getRange']();for(const _0x3f0a81 of _0x131bef)if(_0x314833!==_0x3f0a81&&_0x3f852e&&_0x3f852e['isIntersecting'](_0x3f0a81['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x446f4b,_0x1cc8ff){return null==_0x446f4b['end']['nodeBefore']&&_0x446f4b['end']['parent']==_0x446f4b['start']['nodeAfter']?zt(_0x446f4b['start']['nodeAfter'],_0x1cc8ff):_0x446f4b;}function zt(_0x327951,_0x508685){const _0x20d135=_0x508685['schema']['isObject'](_0x327951)||_0x508685['schema']['isSelectable'](_0x327951);return _0x508685['createRange'](_0x508685['createPositionAt'](_0x327951,'before'),_0x20d135?_0x508685['createPositionAfter'](_0x327951):_0x508685['createPositionAt'](_0x327951,'end'));}function Wt(_0xd0c0a2,_0x2ac1e8,_0x57bc8f,_0x46d709){return!!Qt(_0xd0c0a2,_0x2ac1e8)&&_0x57bc8f['end']['isEqual'](_0x46d709['start']);}function Qt(_0x2c932f,_0x569d07){if(!_0x2c932f['_isDataLoaded']||!_0x569d07['_isDataLoaded'])return!0x1;const _0x285131=new Set(Object['keys'](_0x2c932f['attributes'])),_0x47caea=new Set(Object['keys'](_0x569d07['attributes']));if(_0x285131['delete']('groupId'),_0x47caea['delete']('groupId'),0x0==_0x285131['size']&&0x0==_0x47caea['size'])return!0x0;if(_0x285131['size']!=_0x47caea['size'])return!0x1;const _0x17601b={..._0x2c932f['attributes']},_0x4c04e3={..._0x569d07['attributes']};return delete _0x17601b['groupId'],delete _0x4c04e3['groupId'],JSON['stringify'](_0x17601b)==JSON['stringify'](_0x4c04e3);}function Xt(_0x4a5c3b,_0x84d953){const _0x269803=Yt(_0x4a5c3b['attributes']),_0x2dcfd1=Yt(_0x84d953);if(!_0x4a5c3b['_isDataLoaded'])return!0x1;for(const _0x89df10 of Object['keys'](_0x2dcfd1))if(!_0x10303f(_0x269803[_0x89df10],_0x2dcfd1[_0x89df10]))return!0x1;return!0x0;}function Yt(_0x395e1f){const _0x24d80c=Object['assign']({},_0x395e1f);return delete _0x24d80c['skipNestingCheck'],delete _0x24d80c['tablePasteChainId'],_0x24d80c;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x1b765d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x224951,_0x37febc,_0x326434,_0x14bd8b){super(),this['model']=_0x37febc,this['view']=_0x326434,this['commentThreadController']=_0x14bd8b,this['_editor']=_0x224951,this['_acceptCommand']=_0x224951['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x224951['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x297142,_0x5cabc1)=>_0x297142||_0x5cabc1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1d7e14=>_0x1d7e14&&this['_editor']['model']['canEditAt'](_0x37febc['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5f1320=>_0x5f1320&&this['_editor']['model']['canEditAt'](_0x37febc['getRanges']())),this['_pendingAction']=null,_0x326434['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x326434,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x326434,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x326434,'change:isDirty',()=>{_0x326434['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 _0x319ba8=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x319ba8);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x42bed0{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4fad12,_0x31be39,_0x50d696,_0x570e80){super(_0x4fad12),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x574b70(_0x4fad12,o(_0x4fad12,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x31be39['authoredAt']),this['bind']('authoredAt')['to'](_0x31be39),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',_0x31be39,'authoredAt',this,'descriptionParts',(_0x252cc5,_0x1f3916,_0x558203)=>{const _0x151e74=_0x558203['map'](_0x270762=>ls(_0x270762['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x252cc5-0x1,_0x31be39['author']['name'],_0x1f3916?_0x570e80['formatDateTime'](_0x1f3916):'',new DOMParser()['parseFromString'](_0x151e74,'text/html')['body']['textContent']]);}),this['focusables']=new _0x15e044(),this['focusTracker']=new _0x2b9faa(),this['keystrokes']=new _0x46ad4e(),this['focusCycler']=new _0x200d23({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x55c6a7=>_0x55c6a7['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x31be39,this['_localUser']=_0x50d696,this['_config']=_0x570e80,_0x570e80['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x107f72(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3e83a4}=this['_config'];this['commentsListView']=new _0x3e83a4(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',_0xb9f0d2=>_0xb9f0d2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x30c074,_0x5706ea)=>_0x30c074||!!_0x5706ea);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x468a20}=this['_config'],_0x54a98e=new _0x468a20(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x7ea9a1=_0x54a98e['commentInputView'];return _0x54a98e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x7ea9a1,'value',(_0x28cca8,_0x490995,_0x3a9a1d)=>!!_0x3a9a1d||_0x28cca8&&!_0x490995),_0x7ea9a1['on']('submit',(_0x323738,_0x3fe25e)=>{this['fire']('addComment',_0x3fe25e),_0x7ea9a1['editor']['setData']('');}),_0x7ea9a1['on']('cancel',()=>this['focus']()),_0x7ea9a1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x54a98e;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x514c12,_0x5c91ea,_0x39c814,_0x410706){super(_0x514c12,_0x5c91ea,_0x39c814,_0x410706),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x689f12=>_0x689f12&&_0x689f12[0x0]?_0x689f12[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4ff939,_0x2a0812)=>{let _0x36f3b3='';for(const _0x30bdac of _0x4ff939)_0x36f3b3+='<p>'+ls(_0x30bdac['content'],_0x30bdac['color'])+'</p>';return _0x2a0812?_0x36f3b3:_0x55a1f4(_0x36f3b3,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x410706['SuggestionView'](_0x514c12,_0x5c91ea,{'formatDateTime':_0x410706['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 _0xfe997c=this['bindTemplate'],_0x4fa772=[this['suggestionView']];return this['commentsListView']&&_0x4fa772['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4fa772['push'](this['commentThreadInputView']),_0x4fa772['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xfe997c['if']('isActive','ck-suggestion-wrapper--active'),_0xfe997c['to']('type',_0xa709b6=>'ck-suggestion-'+_0xa709b6),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':_0xfe997c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4fa772};}['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 we extends _0x42bed0{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x179722,_0x3dfcd7,_0x24eb31){super(_0x179722),this['_model']=_0x3dfcd7,this['_config']=_0x24eb31,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3dfcd7),this['acceptButton']=this['_createButton'](o(_0x179722,'Accept\x20suggestion'),_0x40e73a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x179722,'Discard\x20suggestion'),_0x1285a6,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3064af(_0x179722,_0x3dfcd7['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x15e044([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2b9faa(),this['keystrokes']=new _0x46ad4e(),this['focusCycler']=new _0x200d23({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5c20b5=>_0x5c20b5['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4d25ac=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4d25ac['innerHTML']=this['description'],this['on']('change:description',(_0x2b7a54,_0x10d5ed,_0x48ac10)=>{_0x4d25ac['innerHTML']=_0x48ac10;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x19a45b=this['bindTemplate'],_0x16daab=[{'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':_0x19a45b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x19a45b['to']('authoredAt',_0x2d7128=>this['_config']['formatDateTime'](_0x2d7128))}]}]},{'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']&&_0x16daab['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':_0x16daab}]};}['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'](_0x560857,_0x1ee7e0,_0x3c9b0e,_0x46958e,_0x50143a){const _0x2db143=new _0x36ba2a(this['locale']);return _0x2db143['set']({'label':_0x560857,'icon':_0x1ee7e0,'tooltip':!0x0,'tooltipPosition':_0x50143a}),_0x2db143['extendTemplate']({'attributes':{'class':_0x3c9b0e}}),_0x2db143['on']('execute',()=>{this['fire'](_0x46958e,this['_model']['id']);}),_0x2db143;}['_setupKeyboardNavigation'](){const _0x3c477a=this['element'];this['keystrokes']['listenTo'](_0x3c477a);for(const _0x19a91a of this['focusables'])this['focusTracker']['add'](_0x19a91a['element']),this['keystrokes']['listenTo'](_0x19a91a['element']);this['keystrokes']['set']('enter',(_0x2c9858,_0x32a710)=>{_0x3c477a===_0x2c9858['target']&&(this['focusCycler']['focusFirst'](),_0x32a710());}),this['keystrokes']['set']('esc',(_0x18e696,_0x384c85)=>{_0x3c477a!==_0x18e696['target']&&(this['focus'](),_0x384c85());});}}class u extends _0xacca18{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x4ef842,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48b765){super(_0x48b765),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x577c30=this['editor']['config'];_0x577c30['define']('trackChanges.SuggestionThreadView',fe),_0x577c30['define']('trackChanges.SuggestionView',we),_0x577c30['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x577c30['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x33d08a,_0x6411d1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2f7d03,_0x4dda71]of this['_handleControllerBuffer']){const _0x3b78dd=this['_suggestionToController']['has'](_0x2f7d03);_0x3b78dd||_0x4dda71?_0x3b78dd&&_0x4dda71&&this['_destroyController'](_0x2f7d03):this['_initializeController'](_0x2f7d03);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x33d08a,_0x6411d1);}['init'](){const _0x1d9dc1=this['editor'],_0x39c5bd=_0x1d9dc1['plugins']['get']('TrackChangesEditing'),_0x4d6e92=_0x1d9dc1['plugins']['get']('Annotations'),_0x22019a=_0x1d9dc1['plugins']['get']('EditorAnnotations'),_0x19b0e0=_0x1d9dc1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x22019a['addSourceCollector'](()=>{const _0x3ad845=[];for(const [_0xe691bf,_0x2fa92d]of Array['from'](this['_suggestionToController'])){const _0x44e062=_0xe691bf['getAllAdjacentSuggestions'](),_0x2d9424=[];for(const _0x44581c of _0x44e062){if(!_0x44581c['isInContent'])continue;if(_0x44581c['isMultiRange']){_0x2d9424['push'](..._0x44581c['getRanges']());continue;}const _0x48bc2c=_0x44581c['getFirstRange']();if(_0x2d9424['length']>0x0){const _0x48c89d=_0x2d9424[0x0]['getJoined'](_0x48bc2c);if(_0x48c89d){_0x2d9424[0x0]=_0x48c89d;continue;}}_0x2d9424['push'](_0x48bc2c);}_0x3ad845['push']([_0x2fa92d['view'],_0x2d9424]);}return _0x3ad845;}),this['listenTo'](_0x39c5bd,'suggestionLoaded',(_0xf7b88e,_0x41bfec)=>{this['listenTo'](_0x41bfec,'change:previous',(_0x1d2dd7,_0x222609,_0x2253ea,_0xd0a8dd)=>{_0x41bfec['isInContent']&&(null==_0x2253ea?(this['_updateController'](_0xd0a8dd['head']),this['_handleSuggestionControllerDelayed'](_0x41bfec,!0x1)):(this['_updateController'](_0x2253ea['head']),null==_0xd0a8dd&&this['_handleSuggestionControllerDelayed'](_0x41bfec,!0x0)));}),null!==_0x41bfec['previous']?this['_updateController'](_0x41bfec['head']):this['_handleSuggestionControllerDelayed'](_0x41bfec,!0x1);}),this['listenTo'](_0x39c5bd,'suggestionUnloaded',(_0x22ab3d,_0x1e7c40,_0x2572f7)=>{this['stopListening'](_0x1e7c40,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1e7c40),this['_suggestionToController']['has'](_0x1e7c40)&&this['_destroyController'](_0x1e7c40),_0x2572f7&&this['_updateController'](_0x2572f7['head']);}),this['listenTo'](_0x39c5bd,'suggestionChanged',(_0x3fe9dc,_0x20f088)=>{this['_updateController'](_0x20f088);}),this['listenTo'](_0x4d6e92,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x19b0e0,'addComment',(_0x669fc,{threadId:_0x4bacc5,isFromAdapter:_0x17cece})=>{if(_0x17cece||!_0x39c5bd['hasSuggestion'](_0x4bacc5))return;const _0x4e54e6=_0x39c5bd['getSuggestion'](_0x4bacc5);this['_suggestionToController']['get'](_0x4e54e6)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x46a945=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x13faad;for(const _0x58bd7d in _0x46a945){const _0x526a2a=_0x58bd7d,_0x2775e8=_0x46a945[_0x526a2a];if('trackChangesLicenseKeyValid'==_0x2775e8||'trackChangesLicenseKeyInvalid'==_0x2775e8||'trackChangesLicenseKeyExpired'==_0x2775e8||'trackChangesLicenseKeyDomainLimit'==_0x2775e8||'trackChangesLicenseKeyNotAllowed'==_0x2775e8||'trackChangesLicenseKeyEvaluationLimit'==_0x2775e8||'trackChangesLicenseKeyTrialLimit'==_0x2775e8||'trackChangesLicenseKeyUsageLimit'==_0x2775e8){delete _0x46a945[_0x526a2a],_0x13faad=_0x2775e8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x13faad&&_0x46a945['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x13faad&&_0x46a945['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x13faad&&_0x46a945['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x13faad&&_0x46a945['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x13faad&&_0x46a945['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x13faad&&_0x46a945['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x13faad&&_0x46a945['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x367a28){const _0x4489ed=this['_suggestionToController']['get'](_0x367a28);if(!_0x4489ed)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x4489ed['view'])||null;}['getSuggestionForAnnotation'](_0x3ad151){const _0x542a3a=this['_viewToController']['get'](_0x3ad151['innerView']);return _0x542a3a?_0x542a3a['model']:null;}['_refreshActiveMarkers'](){const _0x5d9794=this['editor']['plugins']['get']('Annotations'),_0x5d6d57=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b3752=Array['from'](_0x5d9794['activeAnnotations'],_0x419d5d=>_0x419d5d['innerView'])['filter'](_0x20c459=>this['_viewToController']['has'](_0x20c459)),_0x5bcc4e=[];for(const _0x2aa468 of _0x3b3752){const _0x33bcc6=this['_viewToController']['get'](_0x2aa468)['model']['getAllAdjacentSuggestions']();_0x5bcc4e['push'](..._0x33bcc6['reduce']((_0x446b7d,_0x53e240)=>[..._0x446b7d,..._0x53e240['getMarkerNames']()],[]));}_0x5d6d57['activeMarkers']=_0x5bcc4e;}['_addUIComponentsToFactory'](){const _0x37d547=this['editor'],_0x520b8f=_0x37d547['locale'],_0x1aa49d=o(_0x520b8f,'Track\x20changes'),_0x4e397=new _0x1d8556([{'type':'switchbutton','model':new _0x2fa11c({'withText':!0x0,'isToggleable':!0x0,'label':_0x1aa49d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2fa11c({'withText':!0x0,'label':o(_0x520b8f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2fa11c({'withText':!0x0,'label':o(_0x520b8f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2fa11c({'withText':!0x0,'label':o(_0x520b8f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2fa11c({'withText':!0x0,'label':o(_0x520b8f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x37d547['plugins']['has']('TrackChangesPreview')&&_0x4e397['addMany']([{'type':'separator'},{'type':'button','model':new _0x2fa11c({'withText':!0x0,'label':o(_0x520b8f,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x187749 of _0x4e397)if(ke(_0x187749)){const _0x425aaa=_0x37d547['commands']['get'](_0x187749['model']['commandName']);_0x187749['model']['bind']('isOn','isEnabled')['to'](_0x425aaa,'value','isEnabled');}_0x37d547['ui']['componentFactory']['add']('trackChanges',_0x3e1a09=>this['_createToolbarButton'](_0x3e1a09,_0x4e397,_0x1aa49d)),_0x37d547['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1c98c6=>this['_createMenuBarMenu'](_0x1c98c6,_0x4e397,_0x1aa49d));}['_createToolbarButton'](_0x282634,_0x140f74,_0xd8b07e){const _0x1f7d42=_0x5a40a9(_0x282634,_0x319de4),_0x3155e7=this['editor']['commands']['get']('trackChanges');_0x1f7d42['buttonView']['set']({'tooltip':_0xd8b07e,'label':_0xd8b07e,'icon':_0x557712}),_0x1f7d42['buttonView']['bind']('isOn')['to'](_0x3155e7,'value'),_0x1f7d42['buttonView']['on']('execute',()=>{_0x3155e7['execute'](),this['editor']['editing']['view']['focus']();}),_0x3c1610(_0x1f7d42,_0x140f74,{'role':'menu'});const _0x218a97=[];for(const _0x39798c of _0x140f74)ke(_0x39798c)&&_0x218a97['push'](this['editor']['commands']['get'](_0x39798c['model']['commandName']));const _0x2c8489=_0x1f7d42['buttonView'];return _0x2c8489['actionView']['unbind']('isEnabled'),_0x2c8489['arrowView']['unbind']('isEnabled'),_0x2c8489['actionView']['bind']('isEnabled')['to'](_0x3155e7,'isEnabled'),_0x2c8489['arrowView']['bind']('isEnabled')['toMany'](_0x218a97,'isEnabled',(..._0x52ed37)=>_0x52ed37['some'](_0x595e40=>_0x595e40)),_0x1f7d42['on']('execute',_0x1a8a0e=>{this['editor']['execute'](_0x1a8a0e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1f7d42;}['_createMenuBarMenu'](_0xffa060,_0x4a1095,_0x571110){const _0x3cf2c7=new _0x34142b(_0xffa060),_0x1f2e6d=this['editor']['commands']['get']('trackChanges');_0x3cf2c7['buttonView']['set']({'label':_0x571110,'icon':_0x557712});const _0x47b419=new _0x274624(_0xffa060);for(const _0x45ffc9 of _0x4a1095){if('separator'==_0x45ffc9['type']){_0x47b419['items']['add'](new _0x599798(_0xffa060));continue;}const _0x5bcffa=new _0x3dc222(_0xffa060,_0x3cf2c7),_0x1f4a9c=new _0x5ebc12(_0xffa060),_0x1a6905=_0x45ffc9['model'];_0x1f4a9c['bind'](...Object['keys'](_0x1a6905))['to'](_0x1a6905),_0x1f4a9c['delegate']('execute')['to'](_0x3cf2c7),_0x1f4a9c['on']('execute',()=>{this['editor']['execute'](_0x1a6905['commandName']),this['editor']['editing']['view']['focus']();}),_0x5bcffa['children']['add'](_0x1f4a9c),_0x47b419['items']['add'](_0x5bcffa);}return _0x3cf2c7['bind']('isEnabled')['to'](_0x1f2e6d,'isEnabled'),_0x3cf2c7['panelView']['children']['add'](_0x47b419),_0x3cf2c7;}['_initializeController'](_0x1f40e6){const _0x180720=this['editor'],_0x107422=_0x180720['config'],_0x1cfd57=_0x180720['plugins']['get']('Annotations'),_0x423eb2=_0x180720['plugins']['get']('CommentsRepository'),_0x47da1c=_0x180720['plugins']['get']('EditorAnnotations'),_0x375592=_0x180720['plugins']['get'](_0x4ef842)['me'],_0x4e6c8=_0x107422['get']('trackChanges')['SuggestionThreadView'],_0x382009=_0x107422['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4f5587,CommentThreadInputView:_0x3fcf87}=_0x180720['plugins']['get']('CommentsUI');let _0x523f5a,_0x3b279e,_0x457cd8;this['_annotationViews']['has'](_0x1f40e6['id'])?(_0x3b279e=this['_annotationViews']['get'](_0x1f40e6['id']),_0x523f5a=_0x3b279e['mainView']):(_0x523f5a=new _0x4e6c8(_0x180720['locale'],_0x1f40e6,_0x375592,{'disableComments':this['_disableComments'],'editorConfig':{..._0x107422['get']('comments.editorConfig'),'licenseKey':_0x107422['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x107422['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x107422['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x107422['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x54d94c(_0x107422['get']('locale'),_0x180720['locale']),'CommentView':_0x107422['get']('comments')['CommentView'],'CommentsListView':_0x4f5587,'CommentThreadInputView':_0x3fcf87,'SuggestionView':_0x382009}),_0x523f5a['suggestionView']['acceptButton']['on']('execute',()=>{_0x180720['editing']['view']['focus']();}),_0x523f5a['suggestionView']['discardButton']['on']('execute',()=>{_0x180720['editing']['view']['focus']();}),_0x3b279e=_0x1cfd57['createAnnotationView'](this['editor']['locale'],_0x523f5a),_0x3b279e['bind']('isDirty')['to'](_0x523f5a,'isDirty'),_0x3b279e['bind']('length')['to'](_0x523f5a),_0x3b279e['bind']('type')['to'](_0x523f5a,'type',_0x24f003=>'suggestion-'+_0x24f003),_0x523f5a['on']('escape',()=>{_0x457cd8['fire']('escape');}),this['_annotationViews']['set'](_0x1f40e6['id'],_0x3b279e));const _0x50a406=_0x423eb2['createCommentThreadController'](_0x1f40e6['commentThread'],_0x523f5a),_0x4a3882=new pe(_0x180720,_0x1f40e6,_0x523f5a,_0x50a406),_0x328eaa=_0x1f40e6['getAllAdjacentSuggestions']()['filter'](_0x1b8e35=>_0x1b8e35['isInContent']);_0x523f5a['descriptionParts']=_0x180720['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x328eaa),this['_suggestionToController']['set'](_0x1f40e6,_0x4a3882),this['_viewToController']['set'](_0x523f5a,_0x4a3882);const _0x59ead1=()=>{const _0xc76245=[],_0x385c3d=_0x1f40e6['getAllAdjacentSuggestions']()['filter'](_0x52d3b5=>_0x52d3b5['isInContent']);for(const _0x33dd7 of _0x385c3d)_0xc76245['push'](..._0x33dd7['getMarkers']());return _0x1e7001(_0x180720['editing'],_0xc76245);};_0x457cd8=_0x1cfd57['createAnnotation']({'view':_0x3b279e,'target':_0x59ead1,'type':()=>'suggestion-'+_0x4a3882['view']['type'],'isVisible':!!_0x59ead1()}),_0x423eb2['_bindAnnotationToEditors'](_0x523f5a,_0x457cd8),_0x1cfd57['add'](_0x457cd8),_0x47da1c['registerAnnotation'](_0x457cd8);}['_destroyController'](_0x5da99e){const _0x42e69f=this['editor']['plugins']['get']('CommentsRepository'),_0x25846b=this['editor']['plugins']['get']('Annotations'),_0x1b4bc7=this['_suggestionToController']['get'](_0x5da99e),_0x4cf4df=_0x1b4bc7['view'],_0x32791d=_0x25846b['getByInnerView'](_0x4cf4df);_0x42e69f['_unbindEditors'](_0x4cf4df),_0x32791d&&_0x25846b['remove'](_0x32791d),this['_suggestionToController']['delete'](_0x5da99e),this['_viewToController']['delete'](_0x4cf4df),_0x1b4bc7['destroy']();}['_updateController'](_0x41885e){if(!_0x41885e['isInContent']||!this['_suggestionToController']['has'](_0x41885e))return;const _0x593dbd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c7440=this['_suggestionToController']['get'](_0x41885e),_0x44d0a8=_0x41885e['getAllAdjacentSuggestions']();_0x2c7440['view']['descriptionParts']=_0x593dbd['descriptionFactory']['getDescriptions'](_0x44d0a8);}['destroy'](){for(const _0x2839af of this['_suggestionToController']['keys']())this['_destroyController'](_0x2839af);for(const _0x55b4b of this['_annotationViews']['values']())_0x55b4b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x310eb6){return'model'in _0x310eb6;}class Fe extends _0xacca18{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4bad4c){this['editor']['plugins']['get'](d)['adapter']=_0x4bad4c;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x7796cd){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x7796cd);}['getSuggestions']({skipNotAttached:_0xcc28ca=!0x1,toJSON:_0x221db4=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0xcc28ca,'toJSON':_0x221db4});}['getSuggestion'](_0x45c185){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x45c185);}}const p=['Pagination'];class re extends _0xacca18{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x98e1f4=this['editor'];if(_0x98e1f4['config']['define']('trackChangesData.editorCreator',_0x288cff=>{const _0x43e8af=_0x98e1f4['model']['document']['getRootNames']()['reduce']((_0x1ccb81,_0x2082f9)=>(_0x1ccb81[_0x2082f9]='',_0x1ccb81),{});return _0x98e1f4['constructor']['create'](_0x43e8af,_0x288cff);}),'function'!=typeof _0x98e1f4['config']['get']('trackChangesData')['editorCreator'])throw new _0x70ecee('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x7381ff){return P(this['editor'],!0x0,_0x7381ff);}['getDataWithDiscardedSuggestions'](_0x5285d9){return P(this['editor'],!0x1,_0x5285d9);}}class Ge extends _0xacca18{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19c46e){function _0x28fea9(_0x5968cf){return _0x5968cf['map'](_0x402c66=>String['fromCharCode'](_0x402c66))['join']('');}super(_0x19c46e),this['result']='end',_0x19c46e[_0x28fea9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28fea9([0x76,0x69,0x65,0x77])][_0x28fea9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x28fea9([0x61,0x75,0x74,0x6f]),_0x19c46e[_0x28fea9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x28fea9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x28fea9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x28fea9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x28fea9([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 He(_0x3b02d1){return void 0x0!==_0x3b02d1['getRootsAttributes'];}async function P(_0x375247,_0xae2abd,_0x1eabd3){const _0x1fdb4d=_0xf44e6a(_0x375247,p);_0x1fdb4d['plugins']['push'](d,Ge),_0x1fdb4d['rootsAttributes']=He(_0x375247)?_0x375247['getRootsAttributes']():void 0x0;const _0xced566=document['createDocumentFragment'](),_0x3de513=_0x375247['config']['get']('trackChangesData')['editorCreator'],_0x230e54=await _0x3de513(_0x1fdb4d,()=>function(_0x279361){const _0x376003=document['createElement']('div');return _0x279361['appendChild'](_0x376003),_0x376003;}(_0xced566));!function(_0x43d1b0,_0xc5ed6f){const _0x3ddb42=_0x43d1b0['model']['document']['getRootNames']()['reduce']((_0x5c0daf,_0x190547)=>(_0x5c0daf[_0x190547]=_0x43d1b0['data']['get']({'rootName':_0x190547}),_0x5c0daf),{}),_0x65c195=_0x43d1b0['plugins']['get']('Users')['users']['map'](_0x3e0930=>({'id':_0x3e0930['id'],'name':_0x3e0930['name']})),_0x53990e=_0x43d1b0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x483f76=_0x43d1b0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x64825b=_0xc5ed6f['plugins']['get']('Users'),_0x4bd3d5=_0xc5ed6f['plugins']['get']('TrackChangesEditing'),_0x49fe4b=_0xc5ed6f['plugins']['get']('CommentsRepository');for(const _0x247136 of _0x49fe4b['getCommentThreads']())_0x247136['remove']();for(const _0x1156f5 of _0x65c195)_0x64825b['getUser'](_0x1156f5['id'])||_0x64825b['addUser'](_0x1156f5);_0x64825b['me']||_0x64825b['useAnonymousUser']();for(const _0x25abce of _0x483f76)_0x49fe4b['addCommentThread'](_0x25abce);for(const _0x5f4739 of _0x53990e)_0x4bd3d5['addSuggestionData'](_0x5f4739);_0xc5ed6f['data']['set'](_0x3ddb42);}(_0x375247,_0x230e54),_0x230e54['execute'](_0xae2abd?'acceptAllSuggestions':'discardAllSuggestions');const _0x27435f=He(_0x230e54)?_0x230e54['getFullData'](_0x1eabd3):_0x230e54['data']['get'](_0x1eabd3);return await _0x230e54['destroy'](),_0x27435f;}class Me extends _0x42bed0{['options'];constructor(_0x54f9fd,_0x560fd7){super(_0x54f9fd),this['options']=_0x560fd7,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','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'](_0x22797f,_0x25a0d1){if(!this['element'])return;const _0x2f8a97=[];for(const [_0x75b18c,_0x51f67e]of _0x22797f){const _0x2099e3=document['createElement']('div');_0x2099e3['setAttribute']('data-ck-root-name',_0x75b18c),_0x2099e3['className']=_0x51f67e['classes']+'\x20ck-track-changes-preview__root-container',_0x2099e3['innerHTML']=_0x51f67e['content'],_0x2f8a97['push'](_0x2099e3);}_0x25a0d1(this['element'],_0x2f8a97),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0xb6ff97{constructor(_0xc1ccd0){super(_0xc1ccd0),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2bdca5=this['editor'],_0x45a53b=_0x2bdca5['locale'],_0x2d55f8=_0x2bdca5['plugins']['get']('Dialog');let _0x55f7c5;const _0x23774c=function(_0x14d6ee){const _0x2674cf={};if('editables'in _0x14d6ee['ui']['view']){for(const [_0x27c60f,_0x47cb6b]of Object['entries'](_0x14d6ee['ui']['view']['editables']))_0x2674cf[_0x27c60f]=_0x47cb6b['element'];}else _0x2674cf[_0x14d6ee['model']['document']['getRootNames']()[0x0]]=_0x14d6ee['ui']['view']['editable']['element'];return _0x2674cf;}(_0x2bdca5),_0xa87998=function(_0x5a533f){let _0x1f1ed9=0x0;for(const _0x2e385c of Object['values'](_0x5a533f))_0x1f1ed9=Math['max'](_0x1f1ed9,_0x2e385c['getBoundingClientRect']()['width']);let _0x13718e=0x0;for(const _0x39969d of Object['values'](_0x5a533f))_0x13718e+=_0x39969d['getBoundingClientRect']()['height'];const _0x1fd403=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x590c0a=Math['min'](_0x13718e,_0x1fd403);return{'width':_0x1f1ed9,'height':_0x590c0a};}(_0x23774c);_0x2d55f8['show']({'id':'finalContentPreview','title':o(_0x45a53b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x45a53b,{'dialogRects':_0xa87998}),'onHide':()=>{_0x55f7c5['detachFromDom']();},'onShow':()=>{_0x2bdca5['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x33f617=>{const _0x248f40=this['_standarizeRootsData'](_0x33f617,_0x2bdca5,_0x23774c);_0x2d55f8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x248f40,_0x2bdca5['config']['get']('trackChanges.preview.renderFunction'));}),_0x55f7c5=new _0x34172c(_0x45a53b,[_0x2d55f8['view']]),_0x55f7c5['attachToDom'](),_0x55f7c5['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2bdca5['once']('destroy',()=>{_0x55f7c5['detachFromDom']();});const _0x4bb32a=_0x2d55f8['view']['headerView']['class'];_0x2d55f8['view']['headerView']['class']=_0x4bb32a?_0x4bb32a+'\x20ck-reset_all':'ck-reset_all',_0x2d55f8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2d55f8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x53fc95=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x563154=_0x53fc95['previewMode'],_0x1eb10f={};if('$labels'===_0x563154){for(const _0x57ea40 of _0x53fc95['getMergeFieldsIds']())_0x1eb10f[_0x57ea40]=_0x53fc95['getLabel'](_0x57ea40)||_0x57ea40;}else{const _0x59f550='$defaultValues'===_0x563154?_0x53fc95['getDefaultValues']():_0x53fc95['getDataSetValues'](_0x563154,!0x0);for(const _0x4ddcc3 of Object['entries'](_0x59f550)){const [_0x6809eb,_0x3ecfc9]=_0x4ddcc3;_0x1eb10f[_0x6809eb]=null!==_0x3ecfc9?_0x3ecfc9:_0x53fc95['getLabel'](_0x6809eb)||_0x6809eb;}}return{'mergeFieldsData':_0x1eb10f};}['_standarizeRootsData'](_0x1e318c,_0x4e41c8,_0x35dd62){let _0x2ddfd3;if('string'==typeof _0x1e318c){const _0x1e4bfc=_0x4e41c8['model']['document']['getRootNames']()[0x0];_0x2ddfd3={[_0x1e4bfc]:_0x1e318c};}else _0x2ddfd3=_0x1e318c;const _0xdfea82=this['_fixMediaEmbeds'](_0x2ddfd3,_0x4e41c8),_0x5a414d=function(_0x117529,_0x57ab01){for(const [_0x3c23a0,_0xeed8cd]of _0x117529)_0xeed8cd['classes']=_0x57ab01[_0x3c23a0]['classList']['value']['replace']('ck-focused','');return _0x117529;}(this['_sortRoots'](_0x4e41c8)['reduce']((_0x25b10b,_0xb554e4)=>(_0x25b10b['push']([_0xb554e4,{'content':_0xdfea82[_0xb554e4],'classes':''}]),_0x25b10b),[]),_0x35dd62);return _0x5a414d;}['_fixMediaEmbeds'](_0x4a61a2,_0x1a46d5){if(!_0x1a46d5['plugins']['has']('MediaEmbedEditing'))return _0x4a61a2;const _0x265163=_0x1a46d5['plugins']['get']('MediaEmbedEditing');for(const [_0x39c9c6,_0x1c1abc]of Object['entries'](_0x4a61a2)){const _0x3d4fdc=document['createElement']('div');_0x3d4fdc['innerHTML']=_0x1c1abc,(_0x3d4fdc['querySelectorAll']('figure.media')['forEach'](_0x1a99a7=>{const _0x460dc7=_0x1a99a7['querySelector']('oembed');if(_0x460dc7){const _0x237e08=_0x460dc7['getAttribute']('url');if(_0x237e08){const _0x101d09=_0x265163['registry']['getMediaViewElement'](new _0x36cee1(_0x1a46d5['editing']['view']['document']),_0x237e08,{'elementName':'','renderForEditingView':!0x0}),_0x21b3a5=document['createElement']('div');_0x21b3a5['classList']['add']('ck-media__wrapper'),_0x101d09['render'](_0x21b3a5,_0x1a46d5['editing']['view']['domConverter']),_0x460dc7['replaceWith'](_0x21b3a5);}}}),_0x4a61a2[_0x39c9c6]=_0x3d4fdc['innerHTML']);}return _0x4a61a2;}['_sortRoots'](_0x3f04ed){if(!function(_0x145cd9){return void 0x0!==_0x145cd9['getRootsAttributes'];}(_0x3f04ed))return _0x3f04ed['model']['document']['getRootNames']();const _0xfb8188=[],_0x15e081=new Map();for(const _0x2a7b85 of _0x3f04ed['model']['document']['getRootNames']()){const _0x15a236=_0x3f04ed['editing']['view']['getDomRoot'](_0x2a7b85)['getClientRects']()['item'](0x0);_0xfb8188['push'](_0x2a7b85),_0x15e081['set'](_0x2a7b85,_0x15a236);}return _0xfb8188['sort']((_0x125336,_0x3f9163)=>{const _0xd324ab=_0x15e081['get'](_0x125336),_0x502799=_0x15e081['get'](_0x3f9163);return _0xd324ab['y']-_0x502799['y']||_0xd324ab['x']-_0x502799['x'];}),_0xfb8188;}}class $e extends _0xacca18{static get['requires'](){return[re,_0xd393fc];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4adb3d){super(_0x4adb3d),_0x4adb3d['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4adb3d['config']['define']('trackChanges.preview.renderFunction',(_0x4ed2f9,_0x516cbc)=>{for(const _0x100d89 of _0x516cbc)_0x4ed2f9['appendChild'](_0x100d89);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
|