@ckeditor/ckeditor5-track-changes 46.0.0-alpha.5 → 46.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
-
_0x4f27e0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x509a45,_0x2a92b1){super(),this['id']=_0x2a92b1['id'],this['type']=_0x2a92b1['type'],this['subType']=_0x2a92b1['subType']||null,this['author']=_0x2a92b1['author'],this['creator']=_0x2a92b1['creator']||_0x2a92b1['author'],this['isExternal']=Boolean(_0x2a92b1['attributes']&&_0x2a92b1['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2a92b1['originalSuggestionId']||null,this['_model']=_0x509a45,this['_onAccept']=_0x2a92b1['onAccept'],this['_onDiscard']=_0x2a92b1['onDiscard'],this['_onAttributesChange']=_0x2a92b1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2a92b1['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 _0x29f988=this;for(;_0x29f988['previous'];)_0x29f988=_0x29f988['previous'];return _0x29f988;}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'](_0x27b1d8){this['_markerNames']['add'](_0x27b1d8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x466132=>this['_model']['markers']['get'](_0x466132))['filter'](_0x41ed1f=>_0x41ed1f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5c0544=>{for(const _0x4818a2 of this['getMarkers']())_0x5c0544['removeMarker'](_0x4818a2);}),this['_markerNames']['clear']();}['removeMarker'](_0x568730){this['_model']['change'](_0xb54f74=>{_0xb54f74['removeMarker'](_0x568730);}),this['_markerNames']['delete'](_0x568730);}['addRange'](_0x2a4dd9){const _0x5614c1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x5614c1),this['_model']['change'](_0x2b120a=>{_0x2b120a['addMarker'](_0x5614c1,{'range':_0x2a4dd9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x28c143){for(const _0x53512b of this['getRanges']())if(_0x53512b['isIntersecting'](_0x28c143))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4a9c16=>_0x4a9c16['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4eb1b7,_0x5f8511)=>[..._0x4eb1b7,..._0x5f8511['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x35433d=this['getRanges']();if(0x1!=_0x35433d['length'])return null;const _0x26a322=_0x35433d[0x0],_0x4a4788=_0x26a322['start']['nodeAfter'],_0x4a9b22=_0x26a322['end']['nodeBefore'];return _0x4a4788 instanceof _0x10593b?_0x4a4788!=_0x4a9b22?null:_0x4a4788: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 _0x2c494c=[];let _0x4f2df2=this['head'];for(;_0x4f2df2;)_0x2c494c['push'](_0x4f2df2),_0x4f2df2=_0x4f2df2['next'];return _0x2c494c;}['setAttribute'](_0x21f4c2,_0x141afb){const _0x56de02=_0x3e2439(this['attributes']);_0x39eb1c(_0x56de02,_0x21f4c2,_0x141afb),_0x17f578(_0x56de02,this['attributes'])||(this['attributes']=_0x56de02,this['_onAttributesChange'](_0x56de02));}['removeAttribute'](_0x55fcf5){const _0x1c7834=_0x3e2439(this['attributes']);_0x5d356b(_0x1c7834,_0x55fcf5),_0x17f578(_0x1c7834,this['attributes'])||(this['attributes']=_0x1c7834,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 _0x20cf05()['substr'](0x1,0x5);}}function o(_0x30671f,_0x4ccdb0,_0x421bfa){const _0x703a8=_0x30671f['t'],t=_0x30671f['t'];switch(_0x4ccdb0){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',_0x421bfa);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x421bfa);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x421bfa);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x421bfa);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x421bfa);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',_0x421bfa);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x421bfa);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',_0x421bfa);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x421bfa);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x421bfa);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x421bfa);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x421bfa);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x421bfa);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x421bfa);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x421bfa);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x421bfa);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x421bfa);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x421bfa);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x421bfa);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x421bfa);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x421bfa);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x421bfa);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x421bfa);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x421bfa);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x421bfa);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'},_0x421bfa);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x421bfa);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x421bfa);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x421bfa);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x421bfa);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x421bfa);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x421bfa);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x421bfa);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x421bfa);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x421bfa);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x421bfa);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'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x421bfa);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x421bfa);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 _0x703a8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x421bfa);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x703a8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x421bfa);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x421bfa);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'},_0x421bfa);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'},_0x421bfa);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'},_0x421bfa);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4ccdb0;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1c4fc5,_0x5e76c8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1c4fc5,this['_locale']=_0x5e76c8;}['getDescriptions'](_0x30dcdf){const _0xb22d53=[],_0x35b3f7=new Set(),_0x3397ce=new Set();for(let _0x3ff526=0x0;_0x3ff526<_0x30dcdf['length'];_0x3ff526++){const _0x4edf4d=_0x30dcdf[_0x3ff526];if(!_0x4edf4d['isInContent'])continue;const _0x508210=this['_handleCustomCallbackDescription'](_0x4edf4d);if(_0x508210){if(null!=_0x4edf4d['subType']){if(_0x35b3f7['has'](_0x4edf4d['subType']))continue;_0x35b3f7['add'](_0x4edf4d['subType']);}_0xb22d53['push'](_0x508210);}else{if('attribute'==_0x4edf4d['type']){const _0x390345=_0x4edf4d['data']['key'];if(_0x3397ce['has'](_0x390345))continue;_0x3397ce['add'](_0x4edf4d['data']['key']),_0x390345==m?this['_handleRenameSuggestionDescription'](_0xb22d53,_0x4edf4d):this['_handleAttributeSuggestionDescription'](_0xb22d53,_0x4edf4d);continue;}'insertion'!=_0x4edf4d['type']&&'deletion'!=_0x4edf4d['type']||this['_handleInsertRemoveSuggestionDescription'](_0xb22d53,_0x4edf4d,_0x30dcdf[_0x3ff526+0x1]);}}return this['_resolveDescriptionItems'](_0xb22d53);}['registerDescriptionCallback'](_0x5259d7){this['_customCallbacks']['push'](_0x5259d7);}['registerElementLabel'](_0x5d13ce,_0x564876,_0x561866=_0x3a0027['normal']){'function'==typeof _0x5d13ce?_0x838c40(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5d13ce,'label':_0x564876,'priority':_0x561866}):this['_itemLabels']['set'](_0x5d13ce,_0x564876);}['registerAttributeLabel'](_0x1e3846,_0x562639){this['_attributeLabels']['set'](_0x1e3846,_0x562639);}['getItemLabel'](_0x19b46f,_0x56a25f=0x1){let _0x328397;for(const _0x4075af of this['_itemLabelsCallbacks'])if(_0x4075af['matchingCallback'](_0x19b46f)){_0x328397=_0x4075af['label'];break;}return _0x328397||(_0x328397=this['_itemLabels']['get'](_0x19b46f['name'])),_0x328397?_0x328397(_0x56a25f):0x1!==_0x56a25f?_0x56a25f+'\x20'+_0x19b46f['name']+'s':''+_0x19b46f['name'];}['_addDescriptionItems'](_0x24c6d9,_0x156dfd){const _0x133ab3=_0x156dfd['getFirstRange']()['getWalker'](),_0x2dab09='insertion'==_0x156dfd['type']?'add':'remove';for(const _0x39ce94 of _0x133ab3){const _0x2ca1a5=_0x39ce94['item'],_0x20295f=_0x24c6d9[_0x24c6d9['length']-0x1];if(_0x2ca1a5['is']('$textProxy'))_0x20295f&&_0x20295f['type']['indexOf']('Container')>-0x1&&_0x24c6d9['pop'](),_0x20295f&&'text'==_0x20295f['type']?_0x20295f[_0x2dab09]+=_0x2ca1a5['data']:_0x24c6d9['push']({'type':'text','add':'add'==_0x2dab09?_0x2ca1a5['data']:'','remove':'remove'==_0x2dab09?_0x2ca1a5['data']:''});else{if(this['_schema']['isObject'](_0x2ca1a5)){const _0x4fd613=_0x2ca1a5;if(_0x20295f&&_0x20295f['type']['indexOf']('Container')>-0x1&&_0x24c6d9['pop'](),'elementEnd'==_0x39ce94['type'])continue;_0x20295f&&_0x20295f['type']==_0x2dab09+'Object'&&_0x20295f['element']['name']==_0x4fd613['name']?_0x20295f['quantity']++:_0x24c6d9['push']({'type':_0x2dab09+'Object','element':_0x4fd613,'quantity':0x1}),_0x133ab3['skip'](_0x117124=>!('elementEnd'==_0x117124['type']&&_0x117124['item']==_0x2ca1a5));}else{if(this['_schema']['checkChild'](_0x2ca1a5,'$text')||_0x2ca1a5['is']('element','softBreak')){const _0x559f62=_0x2ca1a5;if('add'==_0x2dab09&&'elementStart'==_0x39ce94['type']||'remove'==_0x2dab09&&'elementEnd'==_0x39ce94['type'])continue;if(_0x20295f&&-0x1==_0x20295f['type']['indexOf']('Container')){'text'==_0x20295f['type']&&(_0x20295f[_0x2dab09]+='\x0a');continue;}let _0x52acf4;if(_0x52acf4='add'==_0x2dab09?_0x559f62['nextSibling']&&!this['_schema']['isObject'](_0x559f62['nextSibling'])?_0x559f62['nextSibling']:null:_0x559f62['previousSibling']&&!this['_schema']['isObject'](_0x559f62['previousSibling'])?_0x559f62['previousSibling']:null,_0x559f62['isEmpty']||_0x52acf4&&_0x52acf4['isEmpty']){const _0x4be9b2=_0x52acf4&&_0x52acf4['isEmpty']?_0x52acf4:_0x559f62;_0x20295f&&_0x20295f['type']==_0x2dab09+'EmptyContainer'&&_0x20295f['element']['name']==_0x4be9b2['name']?_0x20295f['quantity']++:_0x24c6d9['push']({'type':_0x2dab09+'EmptyContainer','element':_0x4be9b2,'quantity':0x1});}else _0x24c6d9['push']({'type':_0x2dab09+'Container','element':_0x559f62});}}}}}['_resolveDescriptionItems'](_0x208d8d){const _0x36abb9=this['_locale'],_0x2e3198=[],_0x1e6799=[],_0x76c728=[];for(const _0x45adc1 of _0x208d8d)switch(_0x45adc1['type']){case'text':if(_0x45adc1['add']=_0x45adc1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x45adc1['remove']=_0x45adc1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x45adc1['add']&&''!=_0x45adc1['remove']){_0x2e3198['push']({'type':'replace','content':o(_0x36abb9,'REPLACE_TEXT',['\x22'+_0x45adc1['remove']+'\x22','\x22'+_0x45adc1['add']+'\x22'])});continue;}if(null!=_0x45adc1['add']['match'](/^ +$/)){_0x2e3198['push']({'type':'insertion','content':o(_0x36abb9,'*Insert:*\x20%0',o(_0x36abb9,'ELEMENT_SPACE',_0x45adc1['add']['length']))});continue;}if(null!=_0x45adc1['remove']['match'](/^ +$/)){_0x2e3198['push']({'type':'deletion','content':o(_0x36abb9,'*Remove:*\x20%0',o(_0x36abb9,'ELEMENT_SPACE',_0x45adc1['remove']['length']))});continue;}if(''!=_0x45adc1['add']){_0x2e3198['push']({'type':'insertion','content':o(_0x36abb9,'*Insert:*\x20%0','\x22'+_0x45adc1['add']+'\x22')});continue;}_0x2e3198['push']({'type':'deletion','content':o(_0x36abb9,'*Remove:*\x20%0','\x22'+_0x45adc1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2e3198['push']({'type':'insertion','content':o(_0x36abb9,'*Insert:*\x20%0',this['getItemLabel'](_0x45adc1['element'],_0x45adc1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2e3198['push']({'type':'deletion','content':o(_0x36abb9,'*Remove:*\x20%0',this['getItemLabel'](_0x45adc1['element'],_0x45adc1['quantity']))});continue;case'addContainer':_0x2e3198['push']({'type':'insertion','content':o(_0x36abb9,'*Split:*\x20%0',this['getItemLabel'](_0x45adc1['element'],_0x45adc1['quantity']))});continue;case'removeContainer':_0x2e3198['push']({'type':'deletion','content':o(_0x36abb9,'*Merge:*\x20%0',this['getItemLabel'](_0x45adc1['element'],_0x45adc1['quantity']))});continue;case'addFormat':_0x1e6799['push'](_0x45adc1['key']);continue;case'removeFormat':_0x76c728['push'](_0x45adc1['key']);continue;default:_0x2e3198['push'](_0x45adc1);}if(_0x1e6799['length']){const _0x23d03f=_0x1e6799['map'](_0x15e38b=>this['_attributeLabels']['has'](_0x15e38b)?this['_attributeLabels']['get'](_0x15e38b):_0x15e38b)['join'](',\x20');_0x2e3198['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x23d03f)});}if(_0x76c728['length']){const _0xdd3780=_0x76c728['map'](_0x143807=>this['_attributeLabels']['has'](_0x143807)?this['_attributeLabels']['get'](_0x143807):_0x143807)['join'](',\x20');_0x2e3198['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xdd3780)});}return _0x2e3198;}['_handleCustomCallbackDescription'](_0x52c856){for(const _0x3adb42 of this['_customCallbacks']){const _0x265ac8=_0x3adb42(_0x52c856);if(_0x265ac8&&'type'in _0x265ac8)return _0x265ac8;}}['_handleAttributeSuggestionDescription'](_0x548ab5,_0x3a8072){const _0x1e50e6=_0x3a8072['data'],_0x4a37ab=void 0x0===_0x1e50e6['newValue']?'removeFormat':'addFormat';_0x548ab5['push']({'type':_0x4a37ab,'key':_0x1e50e6['key']});}['_handleRenameSuggestionDescription'](_0x23d942,_0x5c0f5e){_0x23d942['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5c0f5e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x57dcd8,_0x58020c,_0x1fda90){if(this['_addDescriptionItems'](_0x57dcd8,_0x58020c),_0x1fda90&&_0x1fda90['getFirstRange']()&&!_0x58020c['getFirstRange']()['end']['isEqual'](_0x1fda90['getFirstRange']()['start'])){const _0x5c4f2a=_0x57dcd8[_0x57dcd8['length']-0x1],_0x4f1ca5='insertion'==_0x58020c['type']?'add':'remove';_0x5c4f2a&&'text'==_0x5c4f2a['type']&&(_0x5c4f2a[_0x4f1ca5]+='\x0a');}}}class O extends _0x559983{['afterInit'](){const _0x5a5561=this['editor'],_0x21a249=_0x5a5561['plugins']['get']('TrackChangesEditing');_0x5a5561['commands']['get']('showAIAssistant')&&_0x21a249['enableCommand']('showAIAssistant');}}class E extends _0x559983{['afterInit'](){const _0x11eda3=this['editor'],_0x41becf=_0x11eda3['locale'];if(!_0x11eda3['plugins']['has']('AlignmentEditing'))return;const _0x26a6aa=_0x11eda3['plugins']['get']('TrackChangesEditing');_0x26a6aa['enableDefaultAttributesIntegration']('alignment'),_0x26a6aa['registerBlockAttribute']('alignment'),_0x26a6aa['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x41becf,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e58bd=this['editor'],_0x118933=_0x5e58bd['locale'];_0x5e58bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x204e45=>{if('formatBlock'!=_0x204e45['type'])return;const {data:_0x2d15f0}=_0x204e45;if(_0x2d15f0&&'alignment'==_0x2d15f0['commandName']){const _0x254ac1=_0x2d15f0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x118933,'*Format:*\x20%0',function(_0x2b3046){switch(_0x2b3046){case'left':return o(_0x118933,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x118933,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x118933,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x118933,'FORMAT_JUSTIFY_TEXT');}}(_0x254ac1))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x559983{['afterInit'](){const _0x1ca13d=this['editor'],_0x3795c1=_0x1ca13d['plugins']['get']('TrackChangesEditing'),_0x198c6b=_0x1ca13d['locale'];for(const _0x42a65a of ti){if(!_0x1ca13d['plugins']['has'](_0x42a65a))continue;const _0x7fa956=_0x42a65a['slice'](0x0,-0x7)['toLowerCase'](),_0x13e2f3='FORMAT_'+_0x7fa956['toUpperCase']();_0x3795c1['enableDefaultAttributesIntegration'](_0x7fa956),_0x3795c1['registerInlineAttribute'](_0x7fa956),_0x3795c1['descriptionFactory']['registerAttributeLabel'](_0x7fa956,o(_0x198c6b,_0x13e2f3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c32e7=this['editor'],_0x39ebb5=_0x4c32e7['locale'],_0x134742=_0x4c32e7['plugins']['get']('TrackChangesEditing');function _0x4069de(_0x284a76,_0x4b4645){_0x134742['descriptionFactory']['registerDescriptionCallback'](_0x4a2fa8=>{if('formatInline'!=_0x4a2fa8['type'])return;const {data:_0x2e5dbc}=_0x4a2fa8;return _0x2e5dbc&&_0x2e5dbc['commandName']===_0x284a76?_0x2e5dbc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39ebb5,'*Format:*\x20%0',_0x4b4645)}:{'type':'format','content':o(_0x39ebb5,'*Remove\x20format:*\x20%0',_0x4b4645)}:void 0x0;});}_0x4069de('bold',o(_0x39ebb5,'FORMAT_BOLD')),_0x4069de('italic',o(_0x39ebb5,'FORMAT_ITALIC')),_0x4069de('underline',o(_0x39ebb5,'FORMAT_UNDERLINE')),_0x4069de('code',o(_0x39ebb5,'FORMAT_CODE')),_0x4069de('strikethrough',o(_0x39ebb5,'FORMAT_STRIKETHROUGH')),_0x4069de('subscript',o(_0x39ebb5,'FORMAT_SUBSCRIPT')),_0x4069de('superscript',o(_0x39ebb5,'FORMAT_SUPERSCRIPT'));}}class U extends _0x559983{['afterInit'](){const _0x281da8=this['editor'],_0x5237d9=_0x281da8['locale'];if(!_0x281da8['plugins']['has']('BlockQuoteEditing'))return;const _0xc56995=_0x281da8['plugins']['get']('TrackChangesEditing'),_0x14bb6c=this['editor']['commands']['get']('blockQuote');_0xc56995['enableCommand']('blockQuote',(_0x484e5e,_0x4092ad={})=>{const _0x301489=this['editor']['model']['document']['selection'],_0x5b8563=_0x4092ad&&void 0x0!==_0x4092ad['forceValue']?_0x4092ad['forceValue']:!_0x14bb6c['value'];let _0x4ce808=[];if(_0x5b8563){const _0x1530d5=Array['from'](_0x301489['getSelectedBlocks']())['filter'](_0x1c5299=>oo(_0x1c5299)||function(_0x420812,_0x14f26b){const _0x4ad019=_0x14f26b['checkChild'](_0x420812['parent'],'blockQuote'),_0x21a8e5=_0x14f26b['checkChild'](['$root','blockQuote'],_0x420812);return _0x4ad019&&_0x21a8e5;}(_0x1c5299,this['editor']['model']['schema']));_0x4ce808=to(_0x1530d5,_0x281da8['model']);}else{const _0x55984a=Array['from'](_0x301489['getSelectedBlocks']())['filter'](_0x24c4b2=>oo(_0x24c4b2));_0x4ce808=to(_0x55984a,_0x281da8['model']);}_0x281da8['model']['change'](()=>{for(const _0x1d7bcf of _0x4ce808)_0xc56995['markBlockFormat'](_0x1d7bcf,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5b8563}]});});}),_0xc56995['descriptionFactory']['registerDescriptionCallback'](_0x2bf013=>{const {data:_0x2f932d}=_0x2bf013;if(_0x2f932d&&'blockQuote'==_0x2f932d['commandName']){const _0x31ea07=o(_0x5237d9,'ELEMENT_BLOCK_QUOTE');return _0x2f932d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5237d9,'*Set\x20format:*\x20%0',_0x31ea07)}:{'type':'format','content':o(_0x5237d9,'*Remove\x20format:*\x20%0',_0x31ea07)};}});}}function oo(_0x3dc317){return'blockQuote'==_0x3dc317['parent']['name'];}class V extends _0x559983{['afterInit'](){const _0x2fc883=this['editor'],_0x48726c=_0x2fc883['locale'],_0x5a82da=_0x2fc883['plugins']['get']('TrackChangesEditing');_0x2fc883['plugins']['has']('BookmarkEditing')&&(_0x5a82da['enableCommand']('insertBookmark'),_0x5a82da['enableDefaultAttributesIntegration']('updateBookmark'),_0x5a82da['registerBlockAttribute']('bookmarkId'),_0x5a82da['descriptionFactory']['registerDescriptionCallback'](_0x53eb59=>{if('insertion'!=_0x53eb59['type']&&'deletion'!=_0x53eb59['type']&&'attribute'!=_0x53eb59['type'])return;const _0x469b7c=_0x53eb59['getContainedElement']();if(null==_0x469b7c)return;if(!_0x469b7c['is']('element','bookmark'))return;const _0x4e65d8=_0x469b7c['getAttribute']('bookmarkId');if('insertion'==_0x53eb59['type'])return{'type':'insertion','content':o(_0x48726c,'*Insert:*\x20%0','\x22'+_0x4e65d8+'\x22\x20'+o(_0x48726c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x53eb59['type'])return{'type':'deletion','content':o(_0x48726c,'*Remove:*\x20%0','\x22'+_0x4e65d8+'\x22\x20'+o(_0x48726c,'ELEMENT_BOOKMARK'))};const {data:_0x5ae6d8}=_0x53eb59;if(!_0x5ae6d8||'bookmarkId'!=_0x5ae6d8['key'])return;return{'type':'format','content':o(_0x48726c,'*Set\x20bookmark:*\x20%0','\x22'+_0x5ae6d8['newValue']+'\x22')};}));}}class F extends _0x559983{['afterInit'](){const _0x42614a=this['editor'];_0x42614a['plugins']['has']('CaseChange')&&(_0x42614a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x42614a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x42614a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x559983{['afterInit'](){const _0x1a0956=this['editor'];_0x1a0956['commands']['get']('ckbox')&&_0x1a0956['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x559983{['afterInit'](){const _0x3dc6be=this['editor'];if(!_0x3dc6be['plugins']['has']('CodeBlock'))return;const _0x50a8e9=_0x3dc6be['plugins']['get']('TrackChangesEditing'),_0x1cb70d=_0x3dc6be['locale'],_0x2fb454=_0x3dc6be['config']['get']('codeBlock')['languages'],_0x1f7947=_0x3dc6be['commands']['get']('codeBlock');_0x50a8e9['enableCommand']('indentCodeBlock'),_0x50a8e9['enableCommand']('outdentCodeBlock'),_0x50a8e9['enableCommand']('codeBlock',(_0x593334,_0x55da66={})=>{const _0x4f5775=_0x3dc6be['model'],_0x32c53e=_0x3dc6be['model']['document']['selection'],_0x144bef=_0x55da66&&void 0x0!==_0x55da66['forceValue']?_0x55da66['forceValue']:!_0x1f7947['value'];let _0x1121f3;_0x55da66['language']||(_0x55da66['language']=_0x2fb454[0x0]['language']),_0x1121f3=_0x144bef?Array['from'](_0x32c53e['getSelectedBlocks']())['filter'](_0x13bbb1=>co(_0x13bbb1)||function(_0x3f3eed,_0x5af99e){if(_0x3f3eed['is']('rootElement')||_0x5af99e['isLimit'](_0x3f3eed))return!0x1;return _0x5af99e['checkChild'](_0x3f3eed['parent'],'codeBlock');}(_0x13bbb1,_0x4f5775['schema'])):Array['from'](_0x32c53e['getSelectedBlocks']())['filter'](_0x4b8f4f=>co(_0x4b8f4f));const _0x20ae54=to(_0x1121f3,_0x4f5775);_0x4f5775['change'](()=>{for(const _0x288e45 of _0x20ae54)_0x50a8e9['markBlockFormat'](_0x288e45,{'commandName':'codeBlock','commandParams':[{..._0x55da66,'forceValue':_0x144bef}],'formatGroupId':'blockName'});});}),(_0x50a8e9['descriptionFactory']['registerElementLabel']('codeBlock',_0x30da98=>o(_0x1cb70d,'ELEMENT_CODE_BLOCK',_0x30da98)),_0x50a8e9['descriptionFactory']['registerDescriptionCallback'](_0x29974e=>{if('formatBlock'!=_0x29974e['type'])return;const _0x324464=_0x1cb70d['t'],{data:_0x43875e}=_0x29974e;if(!_0x43875e||'codeBlock'!=_0x43875e['commandName'])return;const _0x1a28fb=_0x43875e['commandParams'][0x0]['language'],_0x55f382=_0x324464(_0x2fb454['find'](_0x4f1b8e=>_0x4f1b8e['language']===_0x1a28fb)['label'])['toLowerCase']();return _0x43875e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1cb70d,'*Set\x20format:*\x20%0',o(_0x1cb70d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x55f382+')')}:{'type':'format','content':o(_0x1cb70d,'*Remove\x20format:*\x20%0',o(_0x1cb70d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3ff004){return'codeBlock'==_0x3ff004['name'];}class J extends _0x559983{['afterInit'](){const _0x4bf834=this['editor'];if(!_0x4bf834['plugins']['has']('CommentsEditing'))return;_0x4bf834['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xe89933,_0x337507,_0x5b437c){const _0x213d32=[];for(const _0x233f1d of _0x337507['getItems']())_0x233f1d['hasAttribute'](_0xe89933)&&_0x213d32['push'](_0x5b437c['createRangeOn'](_0x233f1d));return _0x213d32;}function De(_0x197120,_0x515e41,{showActiveMarker:_0x46c28e=!0x0}={}){const _0x448413=_0x197120['plugins']['get']('TrackChangesEditing');return(_0x1c9068,_0x48f092,_0x7eedac)=>{if(!_0x7eedac['consumable']['test'](_0x48f092['markerRange'],_0x1c9068['name']))return;const _0x4de17=_0x48f092['markerRange']['getWalker'](),_0x412a6a=_0x48f092['markerRange']['start'],_0x22b920=_0x197120['model']['schema'];let _0x303989=null,_0x3cc075=null,_0x4ace48=!0x1,_0x5b360e=!0x1;for(const _0x48234b of _0x4de17){const _0x26d627=_0x48234b['item'];_0x4ace48=_0x4ace48||_0x22b920['isContent'](_0x26d627);const _0x5f3cc2=_0x7eedac['mapper']['toViewElement'](_0x26d627);if(_0x5f3cc2&&_0x5f3cc2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x48234b['type']&&(_0x22b920['isBlock'](_0x26d627)&&!_0x22b920['isLimit'](_0x26d627)&&(_0x26d627['nextSibling']||_0x412a6a['isAtEnd']?_0x303989&&_0x303989['parent']==_0x26d627||(_0x303989=_0x26d627,_0x37510d(_0x48234b['previousPosition']),_0x5b360e=!0x0):_0x3cc075=_0x3cc075||_0x48234b['previousPosition']));}function _0x37510d(_0x50dc68){const {id:_0x50e85c,authorId:_0x1252ce}=_0x448413['_splitMarkerName'](_0x48f092['markerName']),_0x4319b8=_0x7eedac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x515e41,'data-suggestion':_0x50e85c,'data-author-id':_0x1252ce}),_0x5042ef=_0x7eedac['mapper']['toViewPosition'](_0x50dc68);_0x46c28e&&_0x448413['activeMarkers']['includes'](_0x48f092['markerName'])&&_0x7eedac['writer']['addClass']('ck-suggestion-marker--active',_0x4319b8),_0x7eedac['writer']['insert'](_0x5042ef,_0x4319b8),_0x7eedac['mapper']['bindElementToMarker'](_0x4319b8,_0x48f092['markerName']);}_0x4ace48||_0x5b360e||!_0x3cc075||_0x37510d(_0x3cc075);};}class K extends _0x559983{static get['requires'](){return[_0x35d7e9];}['init'](){const _0x349690=this['editor'],_0x3c679c=_0x349690['plugins']['get']('TrackChangesEditing');_0x3c679c['enableCommand']('delete');const _0x5d9a09=_0x349690['commands']['get']('deleteForward');_0x3c679c['enableCommand']('deleteForward',(_0x4890c0,_0x12adfd={})=>{const _0x546aae=_0x349690['model']['createSelection'](_0x349690['model']['document']['selection']);_0x546aae['isCollapsed']&&_0x349690['model']['modifySelection'](_0x546aae,{'direction':'forward','unit':_0x12adfd['unit']});const _0x350756=_0x546aae['getFirstRange'](),_0x37fea8=_0x334b1a['fromRange'](_0x350756);let _0x2c1767;_0x4890c0(_0x12adfd),_0x2c1767='$graveyard'==_0x37fea8['root']['rootName']?_0x349690['model']['createRange'](_0x350756['start']):_0x349690['model']['createRange'](_0x37fea8['start'],_0x37fea8['end']),_0x37fea8['detach'](),_0x349690['model']['enqueueChange'](_0x5d9a09['buffer']['batch'],_0x400b43=>{_0x5d9a09['buffer']['lock'](),_0x400b43['setSelection'](_0x400b43['createRange'](_0x2c1767['end'])),_0x5d9a09['buffer']['unlock']();});}),_0x349690['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x349690,'merge'),{'priority':'high'}),_0x349690['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x435610,_0x2fbe71,_0x28b743)=>{_0x28b743['options']['showSuggestionHighlights']&&De(_0x349690,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x435610,_0x2fbe71,_0x28b743);},{'priority':'high'}),_0x349690['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3de3f1,_0x4c1d45,_0x4f96f8)=>{const _0x1b9fd4=_0x4f96f8['mapper']['markerNameToElements'](_0x4c1d45['markerName']);if(_0x1b9fd4){for(const _0x60c0bf of _0x1b9fd4)_0x60c0bf['is']('uiElement')&&(_0x4f96f8['mapper']['unbindElementFromMarkerName'](_0x60c0bf,_0x4c1d45['markerName']),_0x4f96f8['writer']['remove'](_0x60c0bf));}},{'priority':'high'});}}class H extends _0x559983{['afterInit'](){const _0x21b8ef=this['editor'];if(!_0x21b8ef['plugins']['has']('ListEditing'))return;const _0x4b7368=_0x21b8ef['locale'],_0x1cf8b2=_0x21b8ef['plugins']['get']('TrackChangesEditing'),_0x77d31d=_0x21b8ef['plugins']['has']('TodoListEditing'),_0xb54a86=!!_0x21b8ef['config']['get']('list.multiBlock');function _0xf28a34(_0xf5c83e){return{'type':'format','content':''+o(_0x4b7368,'*Set\x20format:*\x20%0',_0xf5c83e)};}function _0x4c8cc3(_0x37303c){return{'type':'format','content':''+o(_0x4b7368,'*Remove\x20format:*\x20%0',_0x37303c)};}_0x1cf8b2['enableDefaultAttributesIntegration']('numberedList'),_0x1cf8b2['enableDefaultAttributesIntegration']('bulletedList'),_0x1cf8b2['enableDefaultAttributesIntegration']('customNumberedList'),_0x1cf8b2['enableDefaultAttributesIntegration']('customBulletedList'),_0x1cf8b2['enableDefaultAttributesIntegration']('indentList'),_0x1cf8b2['enableDefaultAttributesIntegration']('outdentList'),_0x1cf8b2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1cf8b2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1cf8b2['registerBlockAttribute']('listItemId'),_0x1cf8b2['registerBlockAttribute']('listType'),_0x1cf8b2['registerBlockAttribute']('listIndent'),_0xb54a86&&(_0x1cf8b2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1cf8b2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x77d31d&&(_0x1cf8b2['enableDefaultAttributesIntegration']('todoList'),_0x1cf8b2['enableDefaultAttributesIntegration']('checkTodoList'),_0x1cf8b2['registerBlockAttribute']('todoListChecked'),_0x1cf8b2['descriptionFactory']['registerDescriptionCallback'](_0x170688=>{const {data:_0x2c04ce}=_0x170688;if(_0x2c04ce&&'todoListChecked'==_0x2c04ce['key'])return{'type':'format','content':_0x2c04ce['newValue']?o(_0x4b7368,'*Check\x20item*'):o(_0x4b7368,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x532e64=>{if(_0x532e64['batch']['isUndo'])return!0x1;let _0x1ecc87=!0x1;const _0x51ab05=_0x1cf8b2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12e8c6=>'todoListChecked'===_0x1cf8b2['_getAttributeKey'](_0x12e8c6));for(const _0x5ea20b of _0x51ab05){'todo'!=_0x5ea20b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1cf8b2['_findSuggestions'](_0x5ea20b['getFirstRange'](),'attribute')['find'](_0x160c32=>'listType'===_0x1cf8b2['_getAttributeKey'](_0x160c32['suggestion']))||(_0x532e64['removeMarker'](_0x5ea20b['getFirstMarker']()),_0x1ecc87=!0x0));}return _0x1ecc87;})),_0x1cf8b2['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4b7368,'FORMAT_INDENT'));const _0x4e6149={'type':'format','content':''};_0x1cf8b2['descriptionFactory']['registerDescriptionCallback'](_0x3d141b=>{const {data:_0x13f047}=_0x3d141b;if(!_0x13f047||'listType'!=_0x13f047['key'])return;let _0x334aad=_0x3d141b['head'];for(;_0x334aad;){if(_0x334aad['data']&&(('listStyle'==_0x334aad['data']['key']||'listMarkerStyle'==_0x334aad['data']['key'])&&(_0x334aad['data']['newValue']&&'default'!=_0x334aad['data']['newValue']||'default'!=_0x334aad['data']['oldValue']&&!_0x13f047['newValue'])||!_0xb54a86&&_0x334aad['data']['key']==m))return _0x4e6149;_0x334aad=_0x334aad['next'];}if(null==_0x13f047['newValue'])switch(_0x13f047['oldValue']){case'bulleted':return _0x4c8cc3(o(_0x4b7368,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c8cc3(o(_0x4b7368,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c8cc3(o(_0x4b7368,'ELEMENT_TODO_LIST'));}switch(_0x13f047['newValue']){case'bulleted':return _0xf28a34(o(_0x4b7368,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xf28a34(o(_0x4b7368,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xf28a34(o(_0x4b7368,'ELEMENT_TODO_LIST'));}}),_0x1cf8b2['descriptionFactory']['registerDescriptionCallback'](_0x1878fa=>{const {data:_0xab3a59}=_0x1878fa;if(_0xab3a59&&'listIndent'==_0xab3a59['key'])return null==_0xab3a59['newValue']||null==_0xab3a59['oldValue']&&0x0==_0xab3a59['newValue']?_0x4e6149:void 0x0;}),_0x1cf8b2['descriptionFactory']['registerDescriptionCallback'](_0x455524=>{if('attribute'!=_0x455524['type'])return;const {data:_0x3053b9}=_0x455524;if(!_0x3053b9||'listItemId'!=_0x3053b9['key'])return;const _0x35e222=Te(_0x455524);return'newValue'==_0x35e222?{'type':'format','content':o(_0x4b7368,'*Merge:*\x20list\x20item')}:'oldValue'==_0x35e222?{'type':'format','content':o(_0x4b7368,'*Split:*\x20list\x20item')}:_0x4e6149;}),_0x21b8ef['model']['document']['registerPostFixer'](_0xb758ce=>this['listItemIdFixer'](_0xb758ce)),_0x21b8ef['model']['document']['registerPostFixer'](_0x3af6e7=>this['noTrackChangesFixer'](_0x3af6e7)),_0x21b8ef['model']['document']['on']('change:data',(_0x4d03f8,_0xe0c753)=>{if(_0xe0c753['isUndo']||!_0xe0c753['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x23fe35){if(_0x23fe35['batch']['isUndo']||!_0x23fe35['batch']['isLocal'])return!0x1;let _0x55b32f=!0x1;const _0x187439=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x197f52=>_0x197f52['data']&&'listItemId'==_0x197f52['data']['key'])['filter'](_0x347092=>_0x347092['data']['newValue']&&_0x347092['data']['oldValue']);for(const _0x87f01c of _0x187439)Te(_0x87f01c)||(_0x23fe35['removeMarker'](_0x87f01c['getFirstMarker']()),_0x55b32f=!0x0);return _0x55b32f;}['noTrackChangesFixer'](_0x46be35){if(_0x46be35['batch']['isUndo']||!_0x46be35['batch']['isLocal'])return!0x1;const _0x54ef6d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x54ef6d['trackChangesCommand']['value'])return!0x1;let _0x127f3b=!0x1;const _0x1e0441=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x26461b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x65ae42=>'attribute'==_0x65ae42['type'])['filter'](_0xcb5560=>_0x1e0441['includes'](_0xcb5560['attributeKey']));if(0x0==_0x26461b['length'])return _0x127f3b;for(const _0x2b5d9b of _0x26461b){const _0x51b73c=_0x54ef6d['_findSuggestions'](_0x2b5d9b['range'],'attribute')['filter'](_0x8da664=>!_0x8da664['meta']['isNextTo'])['map'](_0x54e400=>_0x54e400['suggestion'])['filter'](_0x3ac0da=>{const _0x2240e9=_0x54ef6d['_getAttributeKey'](_0x3ac0da);return _0x1e0441['includes'](_0x2240e9);});if(_0x51b73c['length']){for(const _0x12f219 of _0x51b73c)_0x46be35['removeMarker'](_0x12f219['getFirstMarker']());_0x127f3b=!0x0;}}return _0x127f3b;}['assureChains'](){const _0x2991d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0xec907c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x26022e;const _0x22f5a0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x26ad1e=>{if(_0x26ad1e['data']['oldRange']||!_0x26ad1e['data']['newRange'])return null;if(!_0x26ad1e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4e834e}=_0x2991d7['_splitMarkerName'](_0x26ad1e['name']);if(!_0x2991d7['hasSuggestion'](_0x4e834e))return null;const _0x20da3d=_0x2991d7['getSuggestion'](_0x4e834e);return _0xec907c['includes'](_0x20da3d['data']['key']);})['map'](_0x5e1f76=>{const {id:_0x9f7e26}=_0x2991d7['_splitMarkerName'](_0x5e1f76['name']),_0x5ac37d=_0x2991d7['getSuggestion'](_0x9f7e26);return _0x26022e=_0x5ac37d['attributes']['groupId'],_0x5ac37d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x22f5a0['size'])return;const _0x3208b7=_0x2991d7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x573a8f=>'attribute'==_0x573a8f['type']&&_0x573a8f['data']&&_0xec907c['includes'](_0x573a8f['data']['key'])&&_0x573a8f['attributes']['groupId']!=_0x26022e)['map'](_0x578315=>({'listItem':_0x578315['getFirstRange']()['start']['nodeAfter'],'groupId':_0x578315['attributes']['groupId']})),_0x3b3ba2=new Set();for(const {groupId:_0x447aa1,listItem:_0x37a1f4}of _0x3208b7)_0x22f5a0['has'](_0x37a1f4)&&_0x3b3ba2['add'](_0x447aa1);for(const _0x4c7e11 of _0x2991d7['getSuggestions']())_0x3b3ba2['has'](_0x4c7e11['attributes']['groupId'])&&_0x4c7e11['setAttribute']('groupId',_0x26022e);}['_supportLegacySuggestions'](){const _0x4bd490=this['editor'],_0x149901=_0x4bd490['locale'],_0x4cf1c1=_0x4bd490['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4cf1c1['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x49d7d9,_0x1dadce){const _0x551988=[];for(let _0x36c227 of _0x49d7d9)_0x36c227['start']['nodeAfter']===_0x36c227['end']['parent']&&(_0x36c227=_0x4bd490['model']['createRange'](_0x4bd490['model']['createPositionAt'](_0x36c227['start']['nodeAfter'],0x0))),_0x551988['push'](_0x36c227);_0x4bd490['model']['change'](_0x69413=>{const _0x564a0c=_0x4bd490['model']['document']['selection'],_0x1a7c8c=Array['from'](_0x564a0c['getRanges']())['map'](_0x846b4c=>_0x334b1a['fromRange'](_0x846b4c));_0x69413['setSelection'](_0x551988),_0x4bd490['commands']['get'](_0x1dadce['commandName'])['refresh'](),_0x1dadce['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4bd490['execute'](_0x1dadce['commandName'],..._0x1dadce['commandParams']),_0x69413['setSelection'](_0x1a7c8c);for(const _0x570870 of _0x1a7c8c)_0x570870['detach']();});}),_0x4cf1c1['descriptionFactory']['registerElementLabel'](function(_0x57e446){const _0x8ea621=!_0x4bd490['model']['schema']['isObject'](_0x57e446),_0xa1889c=_0x57e446['previousSibling'],_0x4791bb=_0x57e446['nextSibling'],_0x5b4997=_0x57e446['getAttribute']('listItemId'),_0x27408e=!_0xa1889c||_0xa1889c['getAttribute']('listItemId')!==_0x5b4997,_0x30217f=!_0x4791bb||_0x4791bb['getAttribute']('listItemId')!==_0x5b4997;return _0x8ea621&&Boolean(_0x5b4997)&&_0x27408e&&_0x30217f;},_0x2b5ec3=>o(_0x149901,'ELEMENT_LIST_ITEM',_0x2b5ec3));}['_registerLegacyDescription'](){const _0x275d8b=this['editor'],_0x1323bc=_0x275d8b['locale'];function _0xf7a411(_0xfe1c87){const _0x596b05=_0x275d8b['commands']['get']('bulletedList')['value'],_0x47bb47=_0x275d8b['commands']['get']('numberedList')['value'];return'numberedList'===_0xfe1c87?_0x596b05:_0x47bb47;}_0x275d8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x10545c){if('formatBlock'!=_0x10545c['type'])return;const {data:_0x4128a9}=_0x10545c;if(!_0x4128a9)return;let _0x4cd94f,_0x2cb3f2,_0x50896f,_0x3c74c7;switch(_0x4128a9['commandName']){case'bulletedList':_0x50896f=_0x4128a9['commandParams'][0x0]['forceValue'],_0x3c74c7=_0xf7a411(_0x4128a9['commandName']),_0x4cd94f=_0x50896f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c74c7&&_0x275d8b['config']['get']('list.multiBlock')||(_0x4cd94f='*Change\x20to:*\x20%0'),_0x2cb3f2={'type':'format','content':o(_0x1323bc,_0x4cd94f,o(_0x1323bc,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x50896f=_0x4128a9['commandParams'][0x0]['forceValue'],_0x3c74c7=_0xf7a411(_0x4128a9['commandName']),_0x4cd94f=_0x50896f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c74c7&&_0x275d8b['config']['get']('list.multiBlock')||(_0x4cd94f='*Change\x20to:*\x20%0'),_0x2cb3f2={'type':'format','content':o(_0x1323bc,_0x4cd94f,o(_0x1323bc,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4cd94f='*Indent:*\x20%0',_0x2cb3f2={'type':'format','content':o(_0x1323bc,_0x4cd94f,o(_0x1323bc,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4cd94f=function(_0x4364f5){const _0x49b6a5=_0x4364f5['getFirstRange']();let _0x381100=_0x49b6a5['start']['nodeAfter'];for(;_0x381100&&_0x49b6a5['containsItem'](_0x381100);){if(_0x381100['getAttribute']('listIndent')>0x0)return!0x1;_0x381100=_0x381100['nextSibling'];}return!0x0;}(_0x10545c)?o(_0x1323bc,'*Format:*\x20remove\x20from\x20%0',o(_0x1323bc,function(_0x131007){return'ELEMENT_'+_0x131007['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x10545c))):o(_0x1323bc,'*Outdent:*\x20%0',o(_0x1323bc,'ELEMENT_LIST_ITEM')),_0x2cb3f2={'type':'format','content':_0x4cd94f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4128a9['multipleBlocks']&&(_0x4cd94f='*Merge:*\x20%0',_0x2cb3f2={'type':'deletion','content':o(_0x1323bc,_0x4cd94f,o(_0x1323bc,'ELEMENT_LIST_ITEM'))});}return _0x2cb3f2;});}}function Te(_0x39add4){let _0xd05927=_0x39add4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xd05927;){const _0x1f1c9c=_0xd05927['getAttribute']('listItemId');if(!_0x1f1c9c)return!0x1;if(_0x1f1c9c==_0x39add4['data']['newValue'])return'newValue';if(_0x1f1c9c==_0x39add4['data']['oldValue'])return'oldValue';_0xd05927=_0xd05927['previousSibling'];}return!0x1;}class q extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x133606=this['editor']['config']['get']('list.properties'),_0x175e71=this['editor']['plugins']['get']('TrackChangesEditing');_0x133606['styles']&&(_0x175e71['enableDefaultAttributesIntegration']('listStyle'),_0x175e71['registerBlockAttribute']('listStyle')),_0x133606['reversed']&&(_0x175e71['enableDefaultAttributesIntegration']('listReversed'),_0x175e71['registerBlockAttribute']('listReversed')),_0x133606['startIndex']&&(_0x175e71['enableDefaultAttributesIntegration']('listStart'),_0x175e71['registerBlockAttribute']('listStart'));const _0xf1cb7e={'type':'format','content':''};_0x175e71['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4b862b=this['editor']['locale'];_0x175e71['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4b862b,'FORMAT_LIST_REVERSED')),_0x175e71['descriptionFactory']['registerDescriptionCallback'](_0x4d7038=>{const {data:_0x148cc0}=_0x4d7038;if(_0x148cc0&&'listReversed'==_0x148cc0['key'])return null==_0x148cc0['newValue']||0x0==_0x148cc0['newValue']&&null==_0x148cc0['oldValue']?_0xf1cb7e:void 0x0;}),_0x175e71['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4b862b,'FORMAT_LIST_START')),_0x175e71['descriptionFactory']['registerDescriptionCallback'](_0x59a6aa=>{const {data:_0xbe76b9}=_0x59a6aa;if(_0xbe76b9&&'listStart'==_0xbe76b9['key'])return null==_0xbe76b9['newValue']||0x1==_0xbe76b9['newValue']&&null==_0xbe76b9['oldValue']?_0xf1cb7e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1f517c=>{if(_0x1f517c['batch']['isUndo'])return!0x1;let _0x5934fe=!0x1;const _0x3ea7ce=_0x175e71['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3060bb=>{const _0xdfcb0c=_0x175e71['_getAttributeKey'](_0x3060bb);return'listStart'==_0xdfcb0c||'listReversed'==_0xdfcb0c;});for(const _0x409050 of _0x3ea7ce){const _0x42b91a=_0x409050['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x42b91a||'customNumbered'==_0x42b91a)continue;_0x175e71['_findSuggestions'](_0x409050['getFirstRange'](),'attribute')['find'](_0x4b1913=>'listType'==_0x175e71['_getAttributeKey'](_0x4b1913['suggestion']))||(_0x1f517c['removeMarker'](_0x409050['getFirstMarker']()),_0x5934fe=!0x0);}return _0x5934fe;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2c64c4){const _0x118336=this['editor']['locale'],{data:_0x6e5893}=_0x2c64c4,_0xd8b62c={'type':'format','content':''};if(!_0x6e5893||'listStyle'!=_0x6e5893['key'])return;if(!_0x6e5893['oldValue'])return'default'==_0x6e5893['newValue']?_0xd8b62c:{'type':'format','content':''+o(_0x118336,'*Set\x20format:*\x20%0',o(_0x118336,this['_getTranslationKeyForListStyle'](_0x6e5893['newValue'])))};if(!_0x6e5893['newValue']){if('default'==_0x6e5893['oldValue'])return _0xd8b62c;let _0x481fdf=_0x2c64c4['head'];for(;_0x481fdf;){if(_0x481fdf['data']&&'listType'==_0x481fdf['data']['key']&&_0x481fdf['data']['newValue'])return _0xd8b62c;_0x481fdf=_0x481fdf['next'];}return{'type':'format','content':''+o(_0x118336,'*Remove\x20format:*\x20%0',o(_0x118336,this['_getTranslationKeyForListStyle'](_0x6e5893['oldValue'])))};}if('default'!=_0x6e5893['newValue'])return{'type':'format','content':''+o(_0x118336,'*Set\x20format:*\x20%0',o(_0x118336,this['_getTranslationKeyForListStyle'](_0x6e5893['newValue'])))};let _0x59925b=_0x2c64c4['head'];for(;_0x59925b;){if(_0x59925b['data']&&'listType'==_0x59925b['data']['key']&&_0x59925b['data']['newValue']&&_0x59925b['data']['oldValue'])return _0xd8b62c;_0x59925b=_0x59925b['next'];}return{'type':'format','content':o(_0x118336,'*Set\x20format:*\x20%0',o(_0x118336,'ELEMENT_'+_0x2c64c4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x12c189=this['editor'],_0x1a8b40=_0x12c189['locale'];_0x12c189['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5efe88=>{if('formatBlock'!=_0x5efe88['type'])return;const {data:_0xf69680}=_0x5efe88;if(!_0xf69680)return;let _0xb38ab3,_0x398083;switch(_0xf69680['commandName']){case'listStyle':_0xb38ab3='*Change\x20to:*\x20%0',_0x398083={'type':'format','content':o(_0x1a8b40,_0xb38ab3,o(_0x1a8b40,this['_getTranslationKeyForListStyle'](_0xf69680['commandParams'][0x0]['type'])))};break;case'listReversed':_0xb38ab3=_0xf69680['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x398083={'type':'format','content':o(_0x1a8b40,_0xb38ab3)};break;case'listStart':_0xb38ab3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x398083={'type':'format','content':o(_0x1a8b40,_0xb38ab3,_0xf69680['commandParams'][0x0]['startIndex'])};}return _0x398083;});}['_getTranslationKeyForListStyle'](_0x1850ca){return'ELEMENT_'+function(_0x468565){if(Se['includes'](_0x468565))return'bulleted';if(_e['includes'](_0x468565))return'numbered';return null;}(_0x1850ca)['toUpperCase']()+'_LIST_'+_0x1850ca['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x559983{['afterInit'](){const _0x5ad632=this['editor'];_0x5ad632['commands']['get']('emoji')&&_0x5ad632['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x559983{static get['requires'](){return[_0x5bca97];}['init'](){const _0x586bb3=this['editor'],_0x457a86=_0x586bb3['plugins']['get']('TrackChangesEditing'),_0x46b67b=_0x586bb3['commands']['get']('enter');_0x457a86['enableCommand']('enter',()=>{_0x586bb3['model']['change'](_0x399a75=>{const _0x55ec53=_0x586bb3['model']['document']['selection'],_0x52ce4f=_0x55ec53['getFirstPosition'](),_0x11be70=_0x334b1a['fromRange'](_0x55ec53['getFirstRange']());if(_0x46b67b['enterBlock'](_0x399a75)){const _0x5189c9=_0x586bb3['model']['createPositionAt'](_0x52ce4f['parent']['nextSibling'],0x0),_0x5a27e7=_0x399a75['createRange'](_0x52ce4f,_0x5189c9);_0x457a86['markInsertion'](_0x5a27e7);}else _0x399a75['setSelection'](_0x399a75['createRange'](_0x11be70['end']));_0x11be70['detach'](),_0x46b67b['fire']('afterExecute',{'writer':_0x399a75});});}),_0x586bb3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x586bb3,'split'),{'priority':'high'}),_0x586bb3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5cae34,_0x516796,_0x1c9944)=>{const _0x562f51=_0x1c9944['mapper']['markerNameToElements'](_0x516796['markerName']);if(_0x562f51){for(const _0x195e4e of _0x562f51)_0x195e4e['hasClass']('ck-suggestion-marker-split')&&(_0x1c9944['mapper']['unbindElementFromMarkerName'](_0x195e4e,_0x516796['markerName']),_0x1c9944['writer']['remove'](_0x195e4e));}},{'priority':'high'}),_0x586bb3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xf6637f,_0x40b022,_0x9f2980)=>{_0x9f2980['options']['showSuggestionHighlights']&&De(_0x586bb3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xf6637f,_0x40b022,_0x9f2980);},{'priority':'high'});}}class Q extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x44255b=this['editor']['plugins']['get']('TrackChangesEditing');_0x44255b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x44255b['enableCommand']('findNext'),_0x44255b['enableCommand']('findPrevious'),_0x44255b['enableCommand']('replace'),_0x44255b['enableCommand']('replaceAll');}['handleFindCommand'](_0x48d867,_0x2f0536,_0x1677bf={}){const _0x340362=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x48d867(_0x4e3926=>{let _0x155c95=('string'==typeof _0x2f0536?_0x340362['findByTextCallback'](_0x2f0536,_0x1677bf):_0x2f0536)(_0x4e3926);Array['isArray'](_0x155c95)&&(_0x155c95={'results':_0x155c95,'searchText':'string'==typeof _0x2f0536?_0x2f0536:''});const _0x12cf01=_0x155c95['results']['filter'](_0x1f5555=>!0x1===this['_isInDeletionRange'](_0x1f5555,_0x4e3926['item']));return{..._0x155c95,'results':_0x12cf01};},_0x1677bf);}['_isInDeletionRange'](_0x51796c,_0x4aa644){const _0x329da9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4aa644,_0x51796c['start']),this['editor']['model']['createPositionAt'](_0x4aa644,_0x51796c['end']));for(const _0x2d6f9f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x329da9['getIntersection'](_0x2d6f9f['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 _0x559983{['afterInit'](){const _0x4c7f5d=this['editor']['locale'],_0x49ec8d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x30d7d1,commandName:_0x526404}of eo)this['editor']['plugins']['has'](_0x30d7d1)&&(_0x49ec8d['enableDefaultAttributesIntegration'](_0x526404),_0x49ec8d['registerInlineAttribute'](_0x526404));_0x49ec8d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4c7f5d,'FORMAT_FONT_SIZE')),_0x49ec8d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4c7f5d,'FORMAT_FONT_FAMILY')),_0x49ec8d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4c7f5d,'FORMAT_FONT_COLOR')),_0x49ec8d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4c7f5d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21206a=this['editor'],_0x1a36aa=_0x21206a['locale'];_0x21206a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x404109=>{const _0x5b47ec=_0x1a36aa['t'];if('formatInline'!=_0x404109['type'])return;const {data:_0x281a6b}=_0x404109;if(null!=_0x281a6b){if('fontSize'==_0x281a6b['commandName']){const _0x11dde8=_0x281a6b['commandParams'][0x0]['value'];if(_0x11dde8){const _0x4d2d72=_0x5b47ec(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xdf8158=>_0xdf8158['model']==_0x11dde8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1a36aa,'*Set\x20font\x20size:*\x20%0',_0x4d2d72)};}return{'type':'format','content':o(_0x1a36aa,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x281a6b['commandName']){const _0x118fe5=_0x281a6b['commandParams'][0x0]['value'];return _0x118fe5?{'type':'format','content':o(_0x1a36aa,'*Set\x20font\x20family:*\x20%0',_0x118fe5)}:{'type':'format','content':o(_0x1a36aa,'*Reset\x20font\x20family*')};}if('fontColor'==_0x281a6b['commandName']){const _0x50f175=_0x281a6b['commandParams'][0x0]['value'];if(_0x50f175){const _0x9fe841=_0x542ec3(this['editor']['config']['get']('fontColor.colors'))['find'](_0x516e7a=>_0x516e7a['model']==_0x50f175);let _0x6ee6db=_0x50f175,_0x3d6a78='';return _0x9fe841&&(_0x6ee6db=_0x9fe841['label'],_0x3d6a78=_0x5b47ec(_0x6ee6db)['toLowerCase']()),{'type':'format','content':o(_0x1a36aa,'*Set\x20font\x20color:*\x20%0',_0x3d6a78)['trim'](),'color':{'value':_0x50f175,'title':_0x3d6a78||_0x6ee6db}};}return{'type':'format','content':o(_0x1a36aa,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x281a6b['commandName']){const _0x217e6f=_0x281a6b['commandParams'][0x0]['value'];if(_0x217e6f){const _0x3591b=_0x542ec3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x47ee41=>_0x47ee41['model']==_0x217e6f);let _0x43adcc=_0x217e6f,_0x45b202='';return _0x3591b&&(_0x43adcc=_0x3591b['label'],_0x45b202=_0x5b47ec(_0x43adcc)['toLowerCase']()),{'type':'format','content':o(_0x1a36aa,'*Set\x20font\x20background\x20color:*\x20%0',_0x45b202)['trim'](),'color':{'value':_0x217e6f,'title':_0x45b202||_0x43adcc}};}return{'type':'format','content':o(_0x1a36aa,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x559983{['afterInit'](){const _0x5412cd=this['editor'],_0x2eb79a=_0x5412cd['plugins']['get']('TrackChangesEditing'),_0x4d6604=_0x5412cd['commands']['get']('copyFormat'),_0x303d30=_0x5412cd['commands']['get']('pasteFormat');_0x4d6604&&_0x303d30&&(_0x2eb79a['enableDefaultAttributesIntegration']('pasteFormat'),_0x2eb79a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3dfe22=this['editor'],_0x482f67=_0x3dfe22['locale'];_0x3dfe22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2944ac=>{if('formatBlock'!=_0x2944ac['type']&&'formatInline'!=_0x2944ac['type'])return;const {data:_0x16966b}=_0x2944ac;if(_0x16966b&&'pasteFormat'===_0x16966b['commandName']){const _0x3e88fd=[],_0x4165a8=_0x16966b['commandParams'][0x0];for(const [_0x151537,_0x36749d]of Object['entries'](_0x4165a8))_0x3e88fd['push'](ro(_0x3dfe22,_0x151537,_0x36749d));return _0x3e88fd['length']?{'type':'format','content':o(_0x482f67,'*Set\x20format\x20to:*\x20%0',_0x3e88fd['join'](',\x20'))}:{'type':'format','content':o(_0x482f67,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x2a015d,_0x5061db,_0x221795){const _0x11d8a2=_0x2a015d['locale']['t'],_0x31eda1=_0x5061db['split'](/(?=[A-Z])/)['join']('\x20'),_0x483611=_0x11d8a2(_0x31eda1['charAt'](0x0)['toUpperCase']()+_0x31eda1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x221795)return _0x483611;if('fontColor'===_0x5061db||'fontBackgroundColor'===_0x5061db){const _0xc31f7f=_0x542ec3(_0x2a015d['config']['get']('fontColor.colors'))['find'](_0x6dec29=>_0x6dec29['model']==_0x221795);return _0x483611+'\x20('+(_0xc31f7f?_0x11d8a2(_0xc31f7f['label'])['toLowerCase']():_0x221795)+')';}if('fontSize'===_0x5061db&&isNaN(parseFloat(_0x221795))){const _0x18e974=_0x2a015d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2a015d['config']['get']('fontSize.options'))['find'](_0x249cf6=>_0x249cf6['model']==_0x221795);return _0x483611+'\x20('+(_0x18e974?_0x11d8a2(_0x18e974['title'])['toLowerCase']():_0x221795)+')';}return _0x483611+'\x20('+_0x221795+')';}class Z extends _0x559983{['_headingOptions'];['afterInit'](){const _0x5bfe97=this['editor'];if(!_0x5bfe97['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5bfe97['config']['get']('heading.options');const _0x41bca0=_0x5bfe97['locale'],_0x37b564=_0x5bfe97['plugins']['get']('TrackChangesEditing');_0x37b564['enableDefaultAttributesIntegration']('heading');for(const _0x1607e6 of this['_headingOptions'])'paragraph'!=_0x1607e6['model']&&_0x37b564['descriptionFactory']['registerElementLabel'](_0x1607e6['model'],_0x3f16fe=>{const _0x452d87=this['_getHeadingLevel'](_0x1607e6['model']);return null!==_0x452d87?_0x1e2c2b(_0x3f16fe,_0x452d87):_0x454745(_0x3f16fe,_0x1607e6['title']);});function _0x1e2c2b(_0x254c70,_0x691e48){return o(_0x41bca0,'ELEMENT_HEADING',[_0x254c70,_0x691e48]);}function _0x454745(_0x5a7d5a,_0x119a2d){return o(_0x41bca0,'ELEMENT_HEADING_CUSTOM',[_0x5a7d5a,_0x119a2d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1507d2=this['editor'],_0x57b68b=_0x1507d2['locale'];function _0x58dc85(_0x1b0581,_0x469aa3){return o(_0x57b68b,'ELEMENT_HEADING_CUSTOM',[_0x1b0581,_0x469aa3]);}_0x1507d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b2382=>{if('formatBlock'!=_0x1b2382['type'])return;const {data:_0x206c15}=_0x1b2382;if(_0x206c15&&'heading'==_0x206c15['commandName']){const _0x43c318=_0x206c15['commandParams'][0x0]['value'],_0x399c10=this['_getHeadingLevel'](_0x43c318);if(null!==_0x399c10)return{'type':'format','content':o(_0x57b68b,'*Change\x20to:*\x20%0',(_0x39de28=0x1,_0x4c7f0a=_0x399c10,o(_0x57b68b,'ELEMENT_HEADING',[_0x39de28,_0x4c7f0a])))};const _0x2081a9=this['_headingOptions']['find'](_0x569e15=>_0x569e15['model']===_0x43c318)['title'];return{'type':'format','content':o(_0x57b68b,'*Change\x20to:*\x20%0',_0x58dc85(0x1,_0x2081a9))};}var _0x39de28,_0x4c7f0a;});}['_getHeadingLevel'](_0x2d75d6){const _0xdeef9f=_0x2d75d6['match'](/^heading(\d+)/);if(_0xdeef9f)return _0xdeef9f[0x1];const _0x14e42f=this['_headingOptions']?.['find'](_0x4ffa39=>_0x4ffa39['model']==_0x2d75d6);if(_0x14e42f&&_0x14e42f['view']){const _0x4cf6a5=_0x14e42f['view'],_0x174857=(_0x4cf6a5['name']??_0x4cf6a5)['match'](/^h(\d+)/);if(_0x174857)return _0x174857[0x1];}return null;}}class tt extends _0x559983{['afterInit'](){const _0x50a792=this['editor'];if(!_0x50a792['plugins']['has']('HighlightEditing'))return;const _0x4fbc0e=_0x50a792['plugins']['get']('TrackChangesEditing'),_0x4e1663=_0x50a792['locale'];_0x4fbc0e['enableDefaultAttributesIntegration']('highlight'),_0x4fbc0e['registerInlineAttribute']('highlight'),_0x4fbc0e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4e1663,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c576c=this['editor'],_0x2fed5f=_0x3c576c['locale'];_0x3c576c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x274dc7=>{if('formatInline'!=_0x274dc7['type'])return;const {data:_0x216ba0}=_0x274dc7;if(_0x216ba0&&'highlight'==_0x216ba0['commandName']){const _0x17fb4c=_0x2fed5f['t'],_0x5540bd=_0x216ba0['commandParams'][0x0]['value'];if(_0x5540bd){const _0x17b41f=_0x3c576c['config']['get']('highlight.options')['find'](_0x70e6a5=>_0x70e6a5['model']==_0x5540bd),_0x479322=_0x17fb4c(_0x17b41f['title'])['toLowerCase']();return{'type':'format','content':o(_0x2fed5f,'*Set\x20highlight:*\x20%0',_0x479322),'color':{'value':_0x17b41f['color'],'title':_0x17b41f['title']}};}return{'type':'format','content':o(_0x2fed5f,'*Remove\x20highlight*',o(_0x2fed5f,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x559983{['afterInit'](){const _0x3d6da2=this['editor'];if(!_0x3d6da2['plugins']['has']('HorizontalLineEditing'))return;_0x3d6da2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x406983=_0x3d6da2['plugins']['get']('TrackChangesEditing'),_0x4c9a14=_0x3d6da2['locale'];_0x406983['descriptionFactory']['registerElementLabel']('horizontalLine',_0x491ff0=>o(_0x4c9a14,'ELEMENT_HORIZONTAL_LINE',_0x491ff0)),_0x3d6da2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5ec920,{writer:_0x44a883,options:_0x5bafb6})=>{if(!_0x5bafb6['showSuggestionHighlights'])return null;const _0x348e42=_0x44a883['createContainerElement']('div'),_0x560ecb=_0x44a883['createEmptyElement']('hr');return _0x44a883['addClass']('ck-horizontal-line',_0x348e42),_0x44a883['insert'](_0x44a883['createPositionAt'](_0x348e42,0x0),_0x560ecb),_0x348e42;},'converterPriority':'high'});}}class nt extends _0x559983{['afterInit'](){const _0x493135=this['editor'];if(!_0x493135['plugins']['has']('HtmlEmbed'))return;const _0x5326ac=_0x493135['plugins']['get']('TrackChangesEditing'),_0xf10b7f=_0x493135['locale'];_0x5326ac['descriptionFactory']['registerElementLabel']('rawHtml',_0xced4a8=>o(_0xf10b7f,'ELEMENT_HTML_EMBED',_0xced4a8)),_0x5326ac['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5326ac['registerBlockAttribute']('value'),_0x5326ac['descriptionFactory']['registerDescriptionCallback'](_0xb477a1=>{if('attribute'!=_0xb477a1['type'])return;const {data:_0x4ad33c}=_0xb477a1;if(_0x4ad33c&&'value'==_0x4ad33c['key']&&_0xb477a1['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x17fc18=o(_0xf10b7f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xf10b7f,'*Change\x20%0\x20content*',_0x17fc18)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ccab9=this['editor'],_0x5bd46d=_0x4ccab9['locale'];_0x4ccab9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ada16=>{if('formatBlock'!=_0x5ada16['type'])return;const {data:_0x309805}=_0x5ada16;if(_0x309805&&'htmlEmbed'==_0x309805['commandName']){const _0x30e7fd=o(_0x5bd46d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5bd46d,'*Change\x20%0\x20content*',_0x30e7fd)};}});}}class et extends _0x559983{['afterInit'](){const _0x32d569=this['editor'];if(!_0x32d569['plugins']['has']('ImageEditing'))return;const _0x31b76c=_0x32d569['plugins']['get']('TrackChangesEditing'),_0x284fd2=_0x32d569['plugins']['get']('ImageUtils'),_0x4cab40=_0x32d569['locale'];_0x31b76c['enableCommand']('insertImage'),_0x31b76c['descriptionFactory']['registerElementLabel']('imageBlock',_0x1e3ad6=>o(_0x4cab40,'ELEMENT_IMAGE',_0x1e3ad6)),_0x31b76c['descriptionFactory']['registerElementLabel']('imageInline',_0x2edb7e=>o(_0x4cab40,'ELEMENT_INLINE_IMAGE',_0x2edb7e)),_0x31b76c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4cab40,'ELEMENT_CAPTION')),_0x32d569['plugins']['has']('ImageUploadEditing')&&_0x31b76c['enableCommand']('uploadImage'),_0x32d569['plugins']['has']('ImageBlockEditing')&&_0x32d569['plugins']['has']('ImageInlineEditing')&&(_0x31b76c['enableCommand']('imageTypeInline',(_0x18a7a3,_0x5b0b5b)=>{const _0x24ac75=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']);_0x32d569['model']['change'](()=>{_0x31b76c['markBlockFormat'](_0x24ac75,{'commandName':'imageTypeInline','commandParams':[_0x5b0b5b]},[],'convertBlockImageToInline');});}),_0x31b76c['enableCommand']('imageTypeBlock',(_0x57d90c,_0x31ccb5)=>{_0x32d569['model']['change'](_0x23b5c9=>{let _0x1ae1fe=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']),_0x2a326d=_0x23b5c9['createRangeOn'](_0x1ae1fe);const _0x43c4e3=_0x333b95['fromPosition'](_0x2a326d['start'],'toPrevious'),_0xacf220=_0x333b95['fromPosition'](_0x2a326d['end'],'toNext');_0x31b76c['forceDefaultExecution'](()=>_0x57d90c(_0x31ccb5)),_0x1ae1fe=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']),_0x2a326d=_0x23b5c9['createRangeOn'](_0x1ae1fe);const _0x51cc58=_0x23b5c9['createRange'](_0x43c4e3,_0xacf220);_0x43c4e3['detach'](),_0xacf220['detach'](),_0x31b76c['markBlockFormat'](_0x1ae1fe,{'commandName':'imageTypeInline','commandParams':[_0x31ccb5]},[],'convertInlineImageToBlock'),_0x51cc58['start']['isBefore'](_0x2a326d['start'])&&_0x31b76c['markInsertion'](_0x23b5c9['createRange'](_0x51cc58['start'],_0x2a326d['start']),'convertInlineImageToBlock'),_0x2a326d['end']['isBefore'](_0x51cc58['end'])&&_0x31b76c['markInsertion'](_0x23b5c9['createRange'](_0x2a326d['end'],_0x51cc58['end']),'convertInlineImageToBlock');});}),_0x31b76c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x31b76c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x31b76c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x31b76c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x31b76c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x31b76c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xfa7d66])=>{const _0x3b3cc9=_0x31b76c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xda88bd=_0xfa7d66['start'],_0x245333=_0xfa7d66['end'];const _0x7ca3f0=_0x32d569['model']['schema']['getNearestSelectionRange'](_0xda88bd,'backward'),_0x588bb1=_0x32d569['model']['schema']['getNearestSelectionRange'](_0x245333,'forward');_0x7ca3f0['isCollapsed']&&(_0xda88bd=_0x7ca3f0['start']),_0x588bb1['isCollapsed']&&(_0x245333=_0x588bb1['end']),_0x3b3cc9([_0x32d569['model']['createRange'](_0xda88bd,_0x245333)]);}),_0x31b76c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x18d5bf),_0x31b76c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x18d5bf)),_0x32d569['plugins']['has']('ImageCaptionEditing')&&(_0x31b76c['enableCommand']('toggleImageCaption',(_0x3d5fad,_0x18425d)=>{const _0xa5ca53=_0x32d569['plugins']['get']('ImageCaptionUtils');let _0x4e1715=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']),_0x4f3e30=_0xa5ca53['getCaptionFromImageModelElement'](_0x4e1715);_0x32d569['model']['change'](()=>{if(_0x4f3e30)return void _0x31b76c['markDeletion'](_0x32d569['model']['createRangeOn'](_0x4f3e30));const _0x250b2e=_0x284fd2['isBlockImage'](_0x4e1715);_0x3d5fad(_0x18425d),_0x4e1715=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']),_0x4f3e30=_0xa5ca53['getCaptionFromImageModelElement'](_0x4e1715),_0x31b76c['markInsertion'](_0x32d569['model']['createRangeOn'](_0x4f3e30),_0x250b2e?null:'imageCaption');});}),_0x31b76c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x18d5bf));const _0x4dfb4f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x208dd8(_0x399d3c,_0xd32e71){const _0x1522c2=_0x4dfb4f['findIndex'](({type:_0x1b89a7,subType:_0x21f0f4})=>_0x399d3c['type']==_0x1b89a7&&_0x399d3c['subType']==_0x21f0f4),_0x14b4f0=_0x4dfb4f['findIndex'](({type:_0x25ff91,subType:_0x15856b})=>_0xd32e71['type']==_0x25ff91&&_0xd32e71['subType']==_0x15856b);if(_0x1522c2<0x0||_0x14b4f0<0x0)return!0x1;const _0x2cb6e3=_0x399d3c['getFirstRange'](),_0x20c656=_0xd32e71['getFirstRange']();if((0x0==_0x1522c2||0x1==_0x1522c2)&&0x2==_0x14b4f0&&_0x2cb6e3['isIntersecting'](_0x20c656))return!0x0;if(0x2==_0x1522c2&&0x3==_0x14b4f0){const _0x13ddc8=_0x31b76c['_findSuggestions'](_0x2cb6e3,'insertion')['filter'](({suggestion:_0x483396,meta:_0x44bfbc})=>_0x44bfbc['isOwn']&&'convertInlineImageToBlock'==_0x483396['subType']);if(_0x13ddc8['length']>0x1&&_0x20c656['end']['isEqual'](_0x2cb6e3['start']))return!0x0;if(0x1==_0x13ddc8['length']&&(_0x2cb6e3['start']['isEqual'](_0x20c656['end'])||_0x2cb6e3['end']['isEqual'](_0x20c656['start'])))return!0x0;}if(0x3==_0x1522c2&&0x3==_0x14b4f0&&_0x2cb6e3['start']['isBefore'](_0x20c656['start'])){const _0x493137=_0x2cb6e3['end']['nodeAfter'],_0x55c34c=_0x20c656['start']['nodeBefore'];return _0x284fd2['isBlockImage'](_0x493137)&&_0x493137===_0x55c34c;}return!0x1;}function _0x18d5bf(_0x3a5a75,_0x194dc8){return _0x208dd8(_0x3a5a75,_0x194dc8)?[_0x3a5a75,_0x194dc8]:_0x208dd8(_0x194dc8,_0x3a5a75)?[_0x194dc8,_0x3a5a75]:null;}_0x32d569['plugins']['has']('ImageResize')&&(_0x31b76c['enableDefaultAttributesIntegration']('resizeImage'),_0x31b76c['registerBlockAttribute']('resizedWidth'),_0x31b76c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4cab40,'FORMAT_IMAGE_SIZE'))),_0x32d569['plugins']['has']('ImageTextAlternativeEditing')&&(_0x31b76c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x31b76c['registerBlockAttribute']('alt')),_0x32d569['plugins']['has']('PictureEditing')&&(_0x31b76c['registerBlockAttribute']('sources'),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x1cb923=>{if('attribute'!=_0x1cb923['type'])return;const {data:_0x47c625}=_0x1cb923;return _0x47c625&&'sources'==_0x47c625['key']?{'type':'format','content':''}:void 0x0;})),_0x32d569['plugins']['has']('ImageSizeAttributes')&&(_0x31b76c['registerBlockAttribute']('width'),_0x31b76c['registerBlockAttribute']('height'),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x32d4d5=>{if('attribute'!=_0x32d4d5['type'])return;const {data:_0x886710}=_0x32d4d5;return!_0x886710||'width'!=_0x886710['key']&&'height'!=_0x886710['key']?void 0x0:{'type':'format','content':''};})),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x57f211=>{if(!!_0x4dfb4f['find'](({type:_0x374e02,subType:_0x578e22})=>_0x57f211['type']==_0x374e02&&_0x57f211['subType']==_0x578e22))return _0x57f211['previous']?{}:void 0x0;}),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x410473=>{if('insertion'==_0x410473['type']||'deletion'==_0x410473['type']){const _0x24a2a4=_0x410473['getContainedElement']();if(_0x24a2a4&&_0x24a2a4['is']('element','caption'))return{'type':'insertion'==_0x410473['type']?'addObject':'removeObject','element':_0x24a2a4,'quantity':0x1};}}),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x330054=>'formatBlock'==_0x330054['type']&&'convertInlineImageToBlock'==_0x330054['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x330054['type']&&'convertBlockImageToInline'==_0x330054['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x49e103=>{if('attribute'!=_0x49e103['type'])return;const {data:_0x255b72}=_0x49e103;if(!_0x255b72||'alt'!=_0x255b72['key'])return;const _0x9596bc=_0x255b72['newValue'];return _0x9596bc?{'type':'format','content':o(_0x4cab40,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x9596bc+'\x22')}:{'type':'format','content':o(_0x4cab40,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x576560=this['editor'],_0x10268b=_0x576560['locale'];_0x576560['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x504461=>{if('formatBlock'!=_0x504461['type']&&'formatInline'!=_0x504461['type'])return;const {data:_0x1d83fe}=_0x504461;if(_0x1d83fe){if('imageTextAlternative'==_0x1d83fe['commandName']){const _0x4a93f7=_0x1d83fe['commandParams'][0x0]['newValue'];return _0x4a93f7?{'type':'format','content':o(_0x10268b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a93f7+'\x22')}:{'type':'format','content':o(_0x10268b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1d83fe['commandName']){const _0x2103d9=_0x1d83fe['commandParams'][0x0]['width'];return _0x2103d9?{'type':'format','content':o(_0x10268b,'*Set\x20image\x20width:*\x20%0',_0x2103d9)}:{'type':'format','content':o(_0x10268b,'*Reset\x20image\x20width*')};}}});}}class st extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3a8128=this['editor']['locale'],_0x17f70c=this['editor']['plugins']['get']('TrackChangesEditing');_0x17f70c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x17f70c['registerBlockAttribute']('src'),_0x17f70c['descriptionFactory']['registerDescriptionCallback'](_0x92e2b6=>{if('attribute'!=_0x92e2b6['type'])return;const {data:_0x1d1ab8}=_0x92e2b6;return _0x1d1ab8&&'src'==_0x1d1ab8['key']?_0x1d1ab8['newValue']&&_0x1d1ab8['oldValue']?{'type':'format','content':o(_0x3a8128,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x7d7765=this['editor']['plugins']['get']('TrackChangesEditing');_0x7d7765['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x7d7765['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x7d7765['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x7d7765['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x627f65=this['editor'],_0x3a5401=_0x627f65['locale'];_0x627f65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c286b=>{if('formatBlock'!=_0x3c286b['type']&&'formatInline'!=_0x3c286b['type'])return;const {data:_0x338f17}=_0x3c286b;if(!_0x338f17||'replaceImageSource'!=_0x338f17['commandName'])return;return{'type':'format','content':o(_0x3a5401,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x559983{['afterInit'](){const _0x59bd74=this['editor'];if(!_0x59bd74['plugins']['has']('ImageStyleEditing'))return;const _0x48918e=_0x59bd74['plugins']['get']('TrackChangesEditing'),_0x216671=_0x59bd74['plugins']['get']('ImageUtils'),_0x599e5c={};_0x48918e['enableCommand']('imageStyle',(_0x5a48a5,_0x29b1cb)=>{const _0xf6e101=_0x59bd74['plugins']['get']('Users')['me'],_0x18c3fb=_0x59bd74['commands']['get']('imageStyle');let _0x284857=_0x216671['getClosestSelectedImageElement'](_0x59bd74['model']['document']['selection']),_0x3d15ba=_0x59bd74['model']['createRangeOn'](_0x284857),_0x55d718=_0x18c3fb['value'];if(_0x55d718==_0x29b1cb['value'])return;const _0xf0ab1b={'commandName':'imageStyle','commandParams':[_0x29b1cb],'formatGroupId':_0x20cf05()};_0x59bd74['model']['change'](()=>{if(_0x48918e['getSuggestions']()['filter'](_0x13f4dc=>_0x13f4dc['isInContent']&&_0xf6e101==_0x13f4dc['author']&&('formatBlock'==_0x13f4dc['type']||'formatInline'==_0x13f4dc['type'])&&('imageStylePreApply'==_0x13f4dc['subType']||'imageStylePostApply'==_0x13f4dc['subType'])&&_0x13f4dc['getFirstRange']()['isEqual'](_0x3d15ba))['forEach'](_0x147013=>_0x48918e['discardSuggestion'](_0x147013['head'])),_0x284857=_0x216671['getClosestSelectedImageElement'](_0x59bd74['model']['document']['selection']),_0x3d15ba=_0x59bd74['model']['createRangeOn'](_0x284857),_0x18c3fb['refresh'](),_0x59bd74['commands']['get']('imageTypeInline')['refresh'](),_0x59bd74['commands']['get']('imageTypeBlock')['refresh'](),_0x55d718=_0x18c3fb['value'],_0x55d718!=_0x29b1cb['value'])return _0x216671['isInlineImage'](_0x284857)&&_0x18c3fb['shouldConvertImageType'](_0x29b1cb['value'],_0x284857)?(_0x5a48a5({..._0x29b1cb,'setImageSizes':!0x1}),_0x284857=_0x216671['getClosestSelectedImageElement'](_0x59bd74['model']['document']['selection']),void _0x48918e['markBlockFormat'](_0x284857,{..._0xf0ab1b,'commandReversedParams':[{'value':_0x55d718||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x216671['isBlockImage'](_0x284857)?_0x48918e['markBlockFormat'](_0x284857,_0xf0ab1b,[],'imageStylePostApply'):_0x48918e['markInlineFormat'](_0x3d15ba,_0xf0ab1b,'imageStylePostApply'));});});for(const _0x2f5e76 of _0x59bd74['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x599e5c[_0x2f5e76['name']]=_0x2f5e76['title']['toLowerCase']();_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x20906d])=>{_0x216671['setImageNaturalSizeAttributes'](_0x20906d['getContainedElement']());}),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1611a8,_0x25e6a4)=>{_0x48918e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1611a8,{'commandName':_0x25e6a4['commandName'],'commandParams':_0x25e6a4['commandReversedParams']});}),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x21998c,_0x60bb42){if(_0xfa874e(_0x21998c,_0x60bb42))return[_0x21998c,_0x60bb42];if(_0xfa874e(_0x60bb42,_0x21998c))return[_0x60bb42,_0x21998c];return null;});const _0x321089=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xfa874e(_0x2014de,_0x263f3b){const _0xbb4bfe=_0x321089['findIndex'](({type:_0x4ecb59,subType:_0x22b121})=>_0x2014de['type']==_0x4ecb59&&_0x2014de['subType']==_0x22b121),_0x8fe3b1=_0x321089['findIndex'](({type:_0x1f48be,subType:_0x30e69c})=>_0x263f3b['type']==_0x1f48be&&_0x263f3b['subType']==_0x30e69c);if(_0xbb4bfe<0x0||_0x8fe3b1<0x0)return!0x1;const _0x1d755c=_0x2014de['getFirstRange'](),_0x221c94=_0x263f3b['getFirstRange']();if((0x0==_0xbb4bfe||0x1==_0xbb4bfe)&&0x2==_0x8fe3b1&&_0x1d755c['isIntersecting'](_0x221c94))return!0x0;if(0x2==_0xbb4bfe&&0x3==_0x8fe3b1){const _0xa18bb=_0x48918e['_findSuggestions'](_0x1d755c,'insertion')['filter'](({suggestion:_0x4ad890,meta:_0x120e20})=>_0x120e20['isOwn']&&'convertInlineImageToBlock'==_0x4ad890['subType']);if(_0xa18bb['length']>0x1&&_0x221c94['end']['isEqual'](_0x1d755c['start']))return!0x0;if(0x1==_0xa18bb['length']&&(_0x1d755c['start']['isEqual'](_0x221c94['end'])||_0x1d755c['end']['isEqual'](_0x221c94['start'])))return!0x0;}if(0x3==_0xbb4bfe&&0x3==_0x8fe3b1&&_0x1d755c['start']['isBefore'](_0x221c94['start'])){const _0x455869=_0x1d755c['end']['nodeAfter'],_0x33b733=_0x221c94['start']['nodeBefore'];return _0x216671['isBlockImage'](_0x455869)&&_0x455869===_0x33b733;}return!0x1;}_0x59bd74['model']['document']['registerPostFixer'](()=>{let _0x159f23=!0x1;const _0xbe37b3=Array['from'](_0x59bd74['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x448108,data:_0x3492d4}of _0xbe37b3){const {group:_0x3f2ec9,type:_0xbaaf74,subType:_0x31f0c2,id:_0x5bee91}=_0x48918e['_splitMarkerName'](_0x448108);if('suggestion'==_0x3f2ec9&&_0x48918e['hasSuggestion'](_0x5bee91)){if('formatBlock'==_0xbaaf74&&('imageStylePreApply'==_0x31f0c2||'imageStylePostApply'==_0x31f0c2)){const _0x2715e1=_0x48918e['getSuggestion'](_0x5bee91);if(_0x3492d4['newRange']){const _0x224dfc=_0x2715e1['getFirstRange']()['getContainedElement']();if(_0x216671['isBlockImage'](_0x224dfc))continue;_0x48918e['discardSuggestion'](_0x2715e1),_0x159f23=!0x0;}}if('insertion'==_0xbaaf74&&'imageCaption'==_0x31f0c2&&!_0x3492d4['newRange']){const _0x28e501=_0x48918e['getSuggestion'](_0x5bee91);_0x28e501['next']&&_0x28e501['next']['isInContent']&&(_0x48918e['discardSuggestion'](_0x28e501['next']),_0x159f23=!0x0);}}}return _0x159f23;}),this['_registerLegacyDescription'](_0x599e5c);}['_registerLegacyDescription'](_0x18ce48){const _0x13ec39=this['editor'],_0x54009e=_0x13ec39['locale'];_0x13ec39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10d131=>{if('formatBlock'!=_0x10d131['type']&&'formatInline'!=_0x10d131['type'])return;const {data:_0x17ca4c}=_0x10d131;if(!_0x17ca4c||'imageStyle'!=_0x17ca4c['commandName'])return;const _0x448334=_0x17ca4c['commandParams'][0x0]['value'];return _0x2bf2bc('side'===_0x448334?o(_0x54009e,'FORMAT_SIDE_IMAGE'):_0x18ce48[_0x448334]||_0x448334);function _0x2bf2bc(_0x9a7a4a){return{'type':'format','content':o(_0x54009e,'*Format:*\x20%0',_0x9a7a4a)};}});}}class rt extends _0x559983{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5d933e){super(_0x5d933e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4b9419=this['editor'],_0x234e55=_0x4b9419['commands']['get']('importWord'),_0x146b1a=_0x4b9419['commands']['get']('trackChanges');_0x234e55&&(_0x234e55['on']('execute',(_0x3e927b,[,_0x594d9c])=>{this['_trackChangesValueDuringImport']=_0x146b1a['value'],_0x594d9c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x234e55,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x234e55,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x146b1a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4b9419['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x552960,_0x425eb8){const {suggestions:_0x378efd}=_0x425eb8,_0x3fa348=this['editor']['commands']['get']('trackChanges'),_0x180f69=_0x3fa348['value'];this['_trackChangesValueDuringImport']!==_0x180f69&&(_0x3fa348['execute'](),this['_trackChangesExecuted']=!0x0),_0x378efd&&_0x378efd['forEach'](({id:_0xb2cd56,type:_0x33dedf,author:_0x4f2aba,created_at:_0x2bce55})=>{const _0x1c66f2={'id':_0xb2cd56,'type':_0x33dedf,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4f2aba,'createdAt':_0x2bce55?new Date(_0x2bce55):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1c66f2);});}}class at extends _0x559983{['afterInit'](){const _0xb95243=this['editor'],_0x1c2500=_0xb95243['plugins']['get']('TrackChangesEditing');if(_0xb95243['plugins']['has']('IndentEditing')&&(_0x1c2500['enableCommand']('indent'),_0x1c2500['enableCommand']('outdent')),_0xb95243['plugins']['has']('IndentBlock')){for(const _0x36285b of['indentBlock','outdentBlock'])_0x1c2500['enableDefaultAttributesIntegration'](_0x36285b);}const _0x450f78=_0xb95243['locale'];_0x1c2500['registerBlockAttribute']('blockIndent'),_0x1c2500['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x450f78,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ab84e=this['editor'],_0x455908=_0x4ab84e['locale'],_0x5857c9=_0x4ab84e['plugins']['get']('TrackChangesEditing');_0x5857c9['descriptionFactory']['registerDescriptionCallback'](_0xf82e15=>{if('formatBlock'!=_0xf82e15['type'])return;const {data:_0x429279}=_0xf82e15;if(!_0x429279)return;if('indentBlock'!=_0x429279['commandName']&&'outdentBlock'!=_0x429279['commandName'])return;const _0x46be02=_0xf82e15['getItems']()[0x0],_0x5bd58a=_0x5857c9['descriptionFactory']['getItemLabel'](_0x46be02);return'indentBlock'==_0x429279['commandName']?{'type':'format','content':o(_0x455908,'*Indent:*\x20%0',_0x5bd58a)}:'outdentBlock'==_0x429279['commandName']?{'type':'format','content':o(_0x455908,'*Outdent:*\x20%0',_0x5bd58a)}:void 0x0;});}}class ct extends _0x559983{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x559983{['afterInit'](){const _0x56ba5d=this['editor'];if(!_0x56ba5d['plugins']['has']('LinkEditing'))return;const _0x455de7=_0x56ba5d['plugins']['get']('TrackChangesEditing'),_0x11e40c=_0x56ba5d['commands']['get']('link');_0x455de7['enableDefaultAttributesIntegration']('link'),_0x455de7['enableDefaultAttributesIntegration']('unlink'),_0x455de7['registerInlineAttribute']('linkHref');for(const _0x309bc0 of _0x11e40c['manualDecorators'])_0x455de7['registerInlineAttribute'](_0x309bc0['id']),_0x455de7['descriptionFactory']['registerAttributeLabel'](_0x309bc0['id'],'link\x20('+_0x309bc0['label']['toLowerCase']()+')');_0x455de7['descriptionFactory']['registerDescriptionCallback'](_0x34f0a4=>{if('attribute'!=_0x34f0a4['type'])return;const {data:_0x267cd7}=_0x34f0a4;if(!_0x267cd7||'linkHref'!=_0x267cd7['key'])return;const _0x931d38=_0x267cd7['newValue'],_0x450060=_0x56ba5d['locale'];return{'type':'format','content':null==_0x931d38?o(_0x450060,'*Remove\x20link*'):o(_0x450060,'*Set\x20link:*\x20%0','\x22'+_0x931d38+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x485be0=this['editor'],_0x324eff=_0x485be0['locale'];_0x485be0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b01d6=>{if('formatInline'!=_0x3b01d6['type'])return;const {data:_0x49188b}=_0x3b01d6;if(_0x49188b){if('link'==_0x49188b['commandName']){const _0x4847a2=_0x49188b['commandParams'][0x0];return{'type':'format','content':o(_0x324eff,'*Set\x20link:*\x20%0','\x22'+_0x4847a2+'\x22')};}return'unlink'==_0x49188b['commandName']?{'type':'format','content':o(_0x324eff,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x559983{['afterInit'](){const _0x56fa0c=this['editor'],_0x5dcf85=_0x56fa0c['locale'];if(!_0x56fa0c['plugins']['has']('LegacyListEditing'))return;const _0x3001b0=_0x56fa0c['plugins']['get']('TrackChangesEditing'),_0x2209bd=_0x56fa0c['plugins']['has']('LegacyTodoListEditing');function _0x235c03(_0x164912){return()=>{const _0x40399c=_0x56fa0c['model']['document']['selection'],_0x15f023=_0x56fa0c['commands']['get'](_0x164912);if(_0x15f023['value'])return void _0x56fa0c['execute']('paragraph',{});const _0x29aa39=_0x164912['slice'](0x0,-0x4),_0x970162=function(_0x461742,_0x1e6d8a,_0x27b306){let _0x2c5896=Array['from'](_0x461742)['filter'](_0x1239fd=>function(_0x4fff23,_0x58d8c5){return _0x58d8c5['checkChild'](_0x4fff23['parent'],'listItem')&&!_0x58d8c5['isObject'](_0x4fff23);}(_0x1239fd,_0x27b306));_0x2c5896=_0x2c5896['filter'](_0x50cd51=>!_0x50cd51['is']('element','listItem')||_0x50cd51['getAttribute']('listType')!=_0x1e6d8a);const _0x44059a=new Set();for(const _0x59dd38 of _0x2c5896)_0x59dd38['is']('element','listItem')?_0x44059a['add'](Le(_0x59dd38)):_0x44059a['add'](_0x59dd38);return Array['from'](_0x44059a);}(_0x40399c['getSelectedBlocks'](),_0x29aa39,_0x56fa0c['model']['schema']);_0x56fa0c['model']['change'](()=>{for(const _0x337255 of _0x970162)_0x3001b0['markBlockFormat'](_0x337255,{'commandName':_0x164912,'commandParams':[{'forceValue':!_0x15f023['value']}],'formatGroupId':'blockName'},Ee(_0x337255));});};}function _0x5785e1(_0x12c935){return()=>{const _0x33cd06=function(_0x3651d6){let _0x32ab17=Array['from'](_0x3651d6);const _0xf0470=_0x32ab17['findIndex'](_0x366d85=>'listItem'!=_0x366d85['name']);return _0xf0470>-0x1&&(_0x32ab17=_0x32ab17['slice'](0x0,_0xf0470)),_0x32ab17;}(_0x56fa0c['model']['document']['selection']['getSelectedBlocks']()),_0x16be30=_0x56fa0c['model']['createRange'](_0x56fa0c['model']['createPositionAt'](_0x33cd06[0x0],'before'),_0x56fa0c['model']['createPositionAt'](_0x33cd06[_0x33cd06['length']-0x1],'end'));_0x56fa0c['model']['change'](()=>{_0x3001b0['markBlockFormat'](_0x16be30,{'commandName':_0x12c935,'commandParams':[],'formatGroupId':'listIndent'},function(_0x502a58){const _0x48482d=new Set();for(const _0x170032 of _0x502a58){let _0x14ef18=_0x170032['nextSibling'];for(;_0x14ef18&&_0x14ef18['getAttribute']('listIndent')>_0x170032['getAttribute']('listIndent');)_0x48482d['add'](_0x14ef18),_0x14ef18=_0x14ef18['nextSibling'];}return Array['from'](_0x48482d);}(_0x33cd06));});};}_0x3001b0['enableCommand']('numberedList',_0x235c03('numberedList')),_0x3001b0['enableCommand']('bulletedList',_0x235c03('bulletedList')),_0x2209bd&&_0x3001b0['enableCommand']('todoList',_0x235c03('todoList')),_0x3001b0['enableCommand']('indentList',_0x5785e1('indentList')),_0x3001b0['enableCommand']('outdentList',_0x5785e1('outdentList')),_0x2209bd&&_0x3001b0['enableCommand']('checkTodoList',()=>{const _0x316067=_0x56fa0c['commands']['get']('checkTodoList'),_0x4ea747=Array['from'](_0x316067['_selectedElements']);_0x4ea747['filter'](_0x2c187c=>_0x2c187c['getAttribute']('todoListChecked')!=_0x316067['value']),_0x56fa0c['model']['change'](()=>{for(const _0x32fe43 of _0x4ea747)_0x3001b0['markBlockFormat'](_0x32fe43,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x316067['value']}]});});}),_0x3001b0['descriptionFactory']['registerElementLabel']('listItem',_0x2dc31b=>o(_0x5dcf85,'ELEMENT_LIST_ITEM',_0x2dc31b)),_0x3001b0['descriptionFactory']['registerDescriptionCallback'](_0x4888cb=>{if('formatBlock'!=_0x4888cb['type']&&'formatInline'!=_0x4888cb['type'])return;const {data:_0x226935}=_0x4888cb;if(_0x226935){if('numberedList'==_0x226935['commandName']||'bulletedList'==_0x226935['commandName']||'todoList'==_0x226935['commandName'])switch(_0x226935['commandName']['replace']('List','')){case'bulleted':return _0x75bbd8(o(_0x5dcf85,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x75bbd8(o(_0x5dcf85,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x75bbd8(o(_0x5dcf85,'ELEMENT_TODO_LIST'));}if('indentList'==_0x226935['commandName'])return{'type':'format','content':o(_0x5dcf85,'*Indent:*\x20%0',o(_0x5dcf85,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x226935['commandName'])return{'type':'format','content':o(_0x5dcf85,'*Outdent:*\x20%0',o(_0x5dcf85,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x226935['commandName'])return _0x226935['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5dcf85,'*Check\x20item*')}:{'type':'format','content':o(_0x5dcf85,'*Uncheck\x20item*')};}function _0x75bbd8(_0x66acff){return{'type':'format','content':o(_0x5dcf85,'*Change\x20to:*\x20%0',_0x66acff)};}});}}function Le(_0x498e0f){const _0xd4888e=_0x498e0f['getAttribute']('listIndent');if(0x0==_0xd4888e)return _0x498e0f;let _0x39d32a=_0x498e0f;for(;_0x498e0f['previousSibling']&&_0x498e0f['previousSibling']['is']('element','listItem');){const _0x4abe34=_0x498e0f['previousSibling']['getAttribute']('listIndent');if(_0x4abe34==_0xd4888e)_0x39d32a=_0x498e0f['previousSibling'];else{if(_0x4abe34<_0xd4888e)break;}_0x498e0f=_0x498e0f['previousSibling'];}return _0x39d32a;}function Ee(_0xb6db7c){const _0x3861ca=[];if(_0xb6db7c['is']('element','listItem')&&_0xb6db7c['getAttribute']('listIndent')>0x0){let _0x40d0a9=_0xb6db7c['nextSibling'];for(;_0x40d0a9&&'listItem'==_0x40d0a9['name']&&_0x40d0a9['getAttribute']('listIndent')==_0xb6db7c['getAttribute']('listIndent');)_0x3861ca['push'](_0x40d0a9),_0x40d0a9=_0x40d0a9['nextSibling'];}return _0x3861ca;}class ht extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x46f863=this['editor']['config']['get']('list.properties'),_0xa8603d=this['editor']['plugins']['get']('TrackChangesEditing');_0x46f863['styles']&&_0xa8603d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x46f863['reversed']&&_0xa8603d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x46f863['startIndex']&&_0xa8603d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xa8603d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3bca6b,_0x4f0819={}){const _0x29a1bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42519f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x29a1bd['markMultiRangeBlockFormat'](_0x42519f,{'commandName':'listStyle','commandParams':[{'type':_0x4f0819['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x485c04,_0x2986a2={}){const _0x2291e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47414d=this['_getSuggestionBlocks'](_0x2b8fc7=>_0x2b8fc7['is']('element','listItem')&&'numbered'===_0x2b8fc7['getAttribute']('listType'));if(_0x47414d['length']<0x1)return;const _0x11d1bf=_0x47414d['map'](_0x296c93=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x296c93,'before'),this['editor']['model']['createPositionAt'](_0x296c93,0x0)));this['editor']['model']['change'](()=>{_0x2291e8['markMultiRangeBlockFormat'](_0x11d1bf,{'commandName':'listReversed','commandParams':[{'reversed':_0x2986a2['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1dc0a4,_0x1992f8={}){const _0x21b50b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a4c06=this['_getSuggestionBlocks'](_0x10ce85=>_0x10ce85['is']('element','listItem')&&'numbered'===_0x10ce85['getAttribute']('listType'));if(_0x3a4c06['length']<0x1)return;const _0x28fbfe=_0x3a4c06['map'](_0xfdeb7b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xfdeb7b,'before'),this['editor']['model']['createPositionAt'](_0xfdeb7b,0x0)));this['editor']['model']['change'](()=>{_0x21b50b['markMultiRangeBlockFormat'](_0x28fbfe,{'commandName':'listStart','commandParams':[{'startIndex':_0x1992f8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1540ff){if('formatBlock'!=_0x1540ff['type']&&'formatInline'!=_0x1540ff['type'])return;const _0x42f350=this['editor']['locale'],{data:_0x3c886d}=_0x1540ff;if(!_0x3c886d)return;let _0x4bdcaf,_0x154b87;switch(_0x3c886d['commandName']){case'listStyle':_0x4bdcaf='*Change\x20to:*\x20%0',_0x154b87={'type':'format','content':o(_0x42f350,_0x4bdcaf,o(_0x42f350,this['_getTranslationKeyForListStyle'](_0x3c886d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4bdcaf=_0x3c886d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x154b87={'type':'format','content':o(_0x42f350,_0x4bdcaf)};break;case'listStart':_0x4bdcaf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x154b87={'type':'format','content':o(_0x42f350,_0x4bdcaf,_0x3c886d['commandParams'][0x0]['startIndex'])};}return _0x154b87;}['_getSuggestionBlocksForListStyle'](){const _0x4072fc=this['editor']['plugins']['get']('LegacyListUtils');let _0xa8057a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xa8057a[0x0]?.['is']('element','listItem')&&_0xa8057a['unshift'](..._0x4072fc['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xa8057a[_0xa8057a['length']-0x1]?.['is']('element','listItem')&&_0xa8057a['push'](..._0x4072fc['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xa8057a=[...new Set(_0xa8057a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xa8057a=_0xa8057a['filter'](_0x3e99b4=>_0x3e99b4['is']('element','listItem'))),_0xa8057a;}['_getSuggestionBlocks'](_0x467705){const _0x48fd5b=this['editor']['plugins']['get']('LegacyListUtils');let _0x8f9109=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x467705)['map'](_0x5dd6c5=>{const _0x52eb55=this['editor']['model']['createPositionAt'](_0x5dd6c5,0x0);return[..._0x48fd5b['getSiblingNodes'](_0x52eb55,'backward'),..._0x48fd5b['getSiblingNodes'](_0x52eb55,'forward')];})['flat']();return _0x8f9109=[...new Set(_0x8f9109)],_0x8f9109;}['_getTranslationKeyForListStyle'](_0x1f2132){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1f2132)||'default')['toUpperCase']()+'_LIST_'+_0x1f2132['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x559983{['afterInit'](){const _0xd8a30d=this['editor'];if(!_0xd8a30d['plugins']['has']('MediaEmbedEditing'))return;const _0x3e3e05=_0xd8a30d['plugins']['get']('TrackChangesEditing'),_0x1860dc=_0xd8a30d['locale'];_0x3e3e05['enableCommand']('mediaEmbed'),_0x3e3e05['descriptionFactory']['registerElementLabel']('media',_0x51eedc=>o(_0x1860dc,'ELEMENT_MEDIA',_0x51eedc)),_0xd8a30d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3437fc,{writer:_0x13c1ed,options:_0x73f205})=>{if(_0x73f205['showSuggestionHighlights'])return _0x13c1ed['createEmptyElement']('div');},'converterPriority':'high'}),_0xd8a30d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x597327,_0x3f8cf4,_0x597b13)=>{_0x597b13['options']['showSuggestionHighlights']&&_0x597327['stop']();},{'priority':'high'});}}class lt extends _0x559983{['afterInit'](){const _0x2dd547=this['editor'];_0x2dd547['plugins']['has']('MentionEditing')&&_0x2dd547['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x559983{['afterInit'](){const _0x3e5266=this['editor'];if(!_0x3e5266['plugins']['has']('MergeFieldsEditing'))return;const _0x325998=_0x3e5266['plugins']['get']('TrackChangesEditing'),_0x541ad8=_0x3e5266['locale'];_0x325998['enableCommand']('insertMergeField'),_0x325998['enableCommand']('insertMergeFieldBlock'),_0x325998['enableCommand']('insertMergeFieldImage'),_0x325998['descriptionFactory']['registerElementLabel']('mergeField',_0xf310bc=>o(_0x541ad8,'ELEMENT_MERGE_FIELD',_0xf310bc)),_0x325998['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2768b7=>o(_0x541ad8,'ELEMENT_MERGE_FIELD',_0x2768b7)),_0x325998['descriptionFactory']['registerDescriptionCallback'](_0x13def5=>{if('insertion'!=_0x13def5['type']&&'deletion'!=_0x13def5['type'])return;const _0x52a8c3=_0x13def5['getContainedElement']();if(null==_0x52a8c3)return;const _0x9db6=_0x3e5266['plugins']['get']('MergeFieldsEditing');let _0x10f74e;switch(_0x9db6['getMergeFieldType'](_0x52a8c3)){case null:return;case'image':{const _0x15be9c=_0x9db6['unwrapAffixes'](_0x52a8c3['getAttribute']('src'));_0x10f74e=_0x9db6['getLabel'](_0x15be9c)||_0x15be9c;break;}default:{const _0x37137a=_0x52a8c3['getAttribute']('id');_0x10f74e=_0x9db6['getLabel'](_0x37137a)||_0x37137a;break;}}return'insertion'==_0x13def5['type']?{'type':'insertion','content':o(_0x541ad8,'*Insert:*\x20%0','\x22'+_0x10f74e+'\x22\x20'+o(_0x541ad8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x541ad8,'*Remove:*\x20%0','\x22'+_0x10f74e+'\x22\x20'+o(_0x541ad8,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x559983{['afterInit'](){const _0xbbcc26=this['editor'],_0x21d624=_0xbbcc26['plugins']['get']('TrackChangesEditing');_0xbbcc26['plugins']['has']('MultiLevelList')&&(_0x21d624['enableDefaultAttributesIntegration']('multiLevelList'),_0x21d624['registerBlockAttribute']('listMarkerStyle'),_0x21d624['descriptionFactory']['registerDescriptionCallback'](_0x1535ee=>this['handleDescriptions'](_0x1535ee)));}['handleDescriptions'](_0x3d4513){const _0x1b0a82=this['editor']['locale'],{data:_0x2d4dd1}=_0x3d4513,_0x5f4889={'type':'format','content':''};if(_0x2d4dd1&&'listMarkerStyle'==_0x2d4dd1['key']){if(!_0x2d4dd1['oldValue'])return{'type':'format','content':o(_0x1b0a82,'*Set\x20format:*\x20%0',o(_0x1b0a82,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d4dd1['newValue']+')'};if(!_0x2d4dd1['newValue']){let _0x1d78a3=_0x3d4513['head'];for(;_0x1d78a3;){if(_0x1d78a3['data']&&'listType'==_0x1d78a3['data']['key']&&_0x1d78a3['data']['newValue'])return _0x5f4889;_0x1d78a3=_0x1d78a3['next'];}return{'type':'format','content':o(_0x1b0a82,'*Remove\x20format:*\x20%0',o(_0x1b0a82,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d4dd1['oldValue']+')'};}}}}class pt extends _0x559983{['afterInit'](){const _0x5d27b1=this['editor'];if(!_0x5d27b1['plugins']['has']('PageBreakEditing'))return;_0x5d27b1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x9672e=_0x5d27b1['plugins']['get']('TrackChangesEditing'),_0xd06b0d=_0x5d27b1['locale'];_0x9672e['descriptionFactory']['registerElementLabel']('pageBreak',_0x1fb6e9=>o(_0xd06b0d,'ELEMENT_PAGE_BREAK',_0x1fb6e9));}}class kt extends _0x559983{['afterInit'](){const _0x436ba3=this['editor'];if(!_0x436ba3['plugins']['has']('Paragraph'))return;const _0x41b51a=_0x436ba3['locale'],_0x46ba70=_0x436ba3['plugins']['get']('TrackChangesEditing');_0x46ba70['descriptionFactory']['registerElementLabel']('paragraph',_0x241a86=>o(_0x41b51a,'ELEMENT_PARAGRAPH',_0x241a86)),_0x46ba70['enableDefaultAttributesIntegration']('paragraph'),_0x46ba70['enableCommand']('insertParagraph'),_0x436ba3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x436ba3),{'priority':'highest'}),_0x436ba3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x52123,_0x49d470,_0x48feeb)=>{_0x48feeb['options']['showSuggestionHighlights']&&nr(_0x436ba3,{'showActiveMarker':!0x1})(_0x52123,_0x49d470,_0x48feeb);},{'priority':'highest'});const _0x10241c=_0x46ba70['descriptionFactory'];_0x10241c['registerDescriptionCallback'](_0x2e2560=>{if('insertion'!==_0x2e2560['type'])return;const {start:_0xbaba32,end:_0x2cca42}=_0x2e2560['getFirstRange']();if(!_0xbaba32['isTouching'](_0x2cca42)||!_0xbaba32['nodeAfter'])return;const _0x109c7e=_0x436ba3['model']['schema'],_0x26c20c=_0xbaba32['nodeAfter'];return _0x109c7e['isBlock'](_0x26c20c)&&!_0x109c7e['isLimit'](_0x26c20c)&&_0x109c7e['checkChild'](_0x26c20c,'$text')?{'type':'insertion','content':o(_0x41b51a,'*Insert:*\x20%0',_0x10241c['getItemLabel'](_0x26c20c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x398fe3=this['editor'],_0xb2c0e0=_0x398fe3['locale'];_0x398fe3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x474ae4=>{if('formatBlock'!=_0x474ae4['type'])return;const {data:_0x756201}=_0x474ae4;return _0x756201&&'paragraph'==_0x756201['commandName']?{'type':'format','content':o(_0xb2c0e0,'*Change\x20to:*\x20%0',o(_0xb2c0e0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xd54cb2,{showActiveMarker:_0x345280=!0x0}={}){return(_0x3064e7,_0x4ba056,_0x460c17)=>{const _0x1078b3=_0xd54cb2['plugins']['get']('TrackChangesEditing'),_0x16c0a3=_0x4ba056['markerRange']['start'],_0x10f4ea=_0x4ba056['markerRange']['end'],_0x47e0e1=_0xd54cb2['model']['schema'];if(!_0x16c0a3['isTouching'](_0x10f4ea)||!_0x16c0a3['nodeAfter'])return;const _0x36c0d1=_0x16c0a3['nodeAfter'];if(_0x47e0e1['isBlock'](_0x36c0d1)&&!_0x47e0e1['isLimit'](_0x36c0d1)&&_0x47e0e1['checkChild'](_0x36c0d1,'$text')){if(!_0x460c17['consumable']['consume'](_0x4ba056['markerRange'],_0x3064e7['name']))return;const {id:_0x43f2fb,authorId:_0x51f5f4}=_0x1078b3['_splitMarkerName'](_0x4ba056['markerName']),_0x12a739=_0x460c17['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x43f2fb,'data-author-id':_0x51f5f4}),_0x4f77b4=_0x460c17['mapper']['toViewPosition'](_0x10f4ea);_0x345280&&_0x1078b3['activeMarkers']['includes'](_0x4ba056['markerName'])&&_0x460c17['writer']['addClass']('ck-suggestion-marker--active',_0x12a739),_0x460c17['writer']['insert'](_0x4f77b4,_0x12a739),_0x460c17['mapper']['bindElementToMarker'](_0x12a739,_0x4ba056['markerName']);}};}class wt extends _0x559983{['afterInit'](){const _0x4e00e1=this['editor'];_0x4e00e1['commands']['get']('replaceSource')&&_0x4e00e1['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x559983{['afterInit'](){const _0xb46dbb=this['editor'];if(!_0xb46dbb['plugins']['has']('RemoveFormatEditing'))return;_0xb46dbb['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42e482=this['editor'];_0x42e482['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40b603=>{if('formatBlock'!=_0x40b603['type']&&'formatInline'!=_0x40b603['type'])return;const {data:_0x59e7e9}=_0x40b603;return _0x59e7e9&&'removeFormat'==_0x59e7e9['commandName']?{'type':'format','content':o(_0x42e482['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x559983{['afterInit'](){const _0x545b52=this['editor'];if(!_0x545b52['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x152458=_0x545b52['plugins']['get']('TrackChangesEditing');_0x152458['enableCommand']('goToPreviousRestrictedEditingException'),_0x152458['enableCommand']('goToNextRestrictedEditingException');const _0xef1e26=_0x545b52['plugins']['get']('RestrictedEditingModeEditing');_0xef1e26['enableCommand']('trackChanges'),_0xef1e26['enableCommand']('acceptSuggestion'),_0xef1e26['enableCommand']('discardSuggestion'),_0xef1e26['enableCommand']('acceptAllSuggestions'),_0xef1e26['enableCommand']('discardAllSuggestions'),_0xef1e26['enableCommand']('acceptSelectedSuggestions'),_0xef1e26['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x559983{['afterInit'](){const _0x4536a7=this['editor'];if(!_0x4536a7['plugins']['has']('ShiftEnter'))return;const _0x835daa=_0x4536a7['plugins']['get']('TrackChangesEditing');_0x835daa['enableCommand']('shiftEnter'),_0x4536a7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4536a7),{'priority':'high'}),_0x4536a7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4536a7),{'priority':'high'}),_0x4536a7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x373547,_0x176b3c,_0x478ea2)=>{_0x478ea2['options']['showSuggestionHighlights']&&je(_0x4536a7,{'showActiveMarker':!0x1})(_0x373547,_0x176b3c,_0x478ea2);}),_0x835daa['descriptionFactory']['registerElementLabel']('softBreak',_0x55b014=>o(_0x4536a7['locale'],'ELEMENT_LINE_BREAK',_0x55b014));}}function je(_0x42b0ed,{showActiveMarker:_0x5c44a7=!0x0}={}){return(_0xb558b0,_0x2910fa,_0x48f9ce)=>{const _0x7bea16=_0x42b0ed['plugins']['get']('TrackChangesEditing');if(!_0x48f9ce['consumable']['test'](_0x2910fa['markerRange'],_0xb558b0['name']))return;const _0x2e65dd=_0x42b0ed['model'];for(const _0x408761 of _0x2910fa['markerRange']['getItems']()){if(!_0x408761['is']('element','softBreak'))continue;const _0x4fae2c='deletion'==_0x2910fa['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1ff91e,authorId:_0x102c44}=_0x7bea16['_splitMarkerName'](_0x2910fa['markerName']),_0x152fbf=_0x48f9ce['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4fae2c,'data-suggestion':_0x1ff91e,'data-author-id':_0x102c44}),_0xcd2b3c=_0x48f9ce['mapper']['toViewPosition'](_0x2e65dd['createPositionBefore'](_0x408761));_0x5c44a7&&_0x7bea16['activeMarkers']['includes'](_0x2910fa['markerName'])&&_0x48f9ce['writer']['addClass']('ck-suggestion-marker--active',_0x152fbf),_0x48f9ce['writer']['insert'](_0xcd2b3c,_0x152fbf),_0x48f9ce['mapper']['bindElementToMarker'](_0x152fbf,_0x2910fa['markerName']);}};}class St extends _0x559983{['afterInit'](){const _0x2505e5=this['editor'],_0x528fb4=_0x2505e5['model'],_0x40d3ab=_0x2505e5['locale'];if(!_0x2505e5['plugins']['has']('StandardEditingModeEditing'))return;const _0x4d705f=_0x2505e5['plugins']['get']('TrackChangesEditing'),_0x110c9b='restrictedEditingException',_0x576709=_0x2505e5['commands']['get'](_0x110c9b);_0x4d705f['enableCommand'](_0x110c9b,(_0x53bf72,_0x200121={})=>{const _0x4e6c1e=_0x528fb4['document']['selection'];if(_0x4e6c1e['isCollapsed'])return void _0x53bf72(_0x200121);const _0x751654=void 0x0!==_0x200121['forceValue']?_0x200121['forceValue']:!_0x576709['value'];_0x528fb4['change'](()=>{const _0x2777a2=Array['from'](_0x4e6c1e['getRanges']());for(const _0x690aa8 of _0x2777a2){const _0x5a0873=_0x751654?[_0x690aa8]:io(_0x110c9b,_0x690aa8,_0x528fb4);for(const _0x2f9c2e of _0x5a0873)_0x4d705f['markInlineFormat'](_0x2f9c2e,{'commandName':_0x110c9b,'commandParams':[{'forceValue':_0x751654}]});}});}),_0x4d705f['descriptionFactory']['registerDescriptionCallback'](_0x4b0cef=>{if('formatBlock'!=_0x4b0cef['type']&&'formatInline'!=_0x4b0cef['type'])return;const {data:_0x3c128a}=_0x4b0cef;return _0x3c128a&&_0x3c128a['commandName']==_0x110c9b?_0x3c128a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40d3ab,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x40d3ab,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x559983{['afterInit'](){const _0x11a734=this['editor'];if(!_0x11a734['plugins']['has']('Style')||!_0x11a734['plugins']['has']('DataSchema'))return;const _0x4c7a9c=_0x11a734['plugins']['get']('TrackChangesEditing'),_0xb15dc0=_0x11a734['locale'],_0x3509da=_0x11a734['config']['get']('style')||{},_0x2772b0=_0x11a734['plugins']['get']('GeneralHtmlSupport'),_0x7e5b=_0x11a734['plugins']['get']('StyleUtils')['normalizeConfig'](_0x11a734['plugins']['get']('DataSchema'),_0x3509da['definitions']);_0x4c7a9c['enableDefaultAttributesIntegration']('style');const _0x381e1c=new Set();for(const _0x4a5f01 of _0x7e5b['block']){const _0x5ed6d8=_0x2772b0['getGhsAttributeNameForElement'](_0x4a5f01['element']);_0x381e1c['add'](_0x5ed6d8);}const _0x157b32=new Set();for(const _0x23d22e of _0x7e5b['inline']){const _0x46d0a5=_0x2772b0['getGhsAttributeNameForElement'](_0x23d22e['element']);_0x157b32['add'](_0x46d0a5);for(const _0x84ad1d of _0x23d22e['ghsAttributes'])_0x157b32['add'](_0x84ad1d);}for(const _0x71b3af of _0x381e1c)_0x4c7a9c['registerBlockAttribute'](_0x71b3af),_0x4c7a9c['descriptionFactory']['registerAttributeLabel'](_0x71b3af,o(_0xb15dc0,'FORMAT_STYLE'));for(const _0x3987e6 of _0x157b32)_0x4c7a9c['registerInlineAttribute'](_0x3987e6),_0x4c7a9c['descriptionFactory']['registerAttributeLabel'](_0x3987e6,o(_0xb15dc0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f2f1c=this['editor'],_0x6be108=_0x1f2f1c['locale'];_0x1f2f1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a5bfe=>{if('formatBlock'!=_0x4a5bfe['type']&&'formatInline'!=_0x4a5bfe['type'])return;const {data:_0xe4ad9f}=_0x4a5bfe;return _0xe4ad9f&&'style'===_0xe4ad9f['commandName']?_0xe4ad9f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6be108,'*Set\x20format:*\x20%0',_0xe4ad9f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x6be108,'*Remove\x20format:*\x20%0',_0xe4ad9f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x559983{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3a8e5f){super(_0x3a8e5f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x31f9ad=this['editor'],_0x1427a1=_0x31f9ad['model']['document']['selection'];if(!_0x31f9ad['plugins']['has']('TableEditing'))return;const _0x576601=_0x31f9ad['locale'],_0x4f7bfb=_0x31f9ad['plugins']['get']('TrackChangesEditing'),_0x3e5c5c=_0x31f9ad['plugins']['get']('TableUtils');_0x4f7bfb['descriptionFactory']['registerElementLabel']('table',_0xee0f5=>o(_0x576601,'ELEMENT_TABLE',_0xee0f5)),this['_setupColumnsRowsFixing'](),_0x4f7bfb['enableCommand']('insertTable'),_0x4f7bfb['enableCommand']('selectTableRow'),_0x4f7bfb['enableCommand']('selectTableColumn');for(const _0x2f89c4 of['insertTableRowAbove','insertTableRowBelow']){const _0x3d31d7=_0x31f9ad['commands']['get'](_0x2f89c4);_0x4f7bfb['enableCommand'](_0x2f89c4,_0x30d092=>{_0x31f9ad['model']['change'](_0x31b9ad=>{_0x30d092();const _0x846286='above'===_0x3d31d7['order'],_0x3be933=_0x3e5c5c['getSelectionAffectedTableCells'](_0x1427a1),_0x31fe8d=_0x3e5c5c['getRowIndexes'](_0x3be933),_0x1624ab=_0x846286?_0x31fe8d['first']-0x1:_0x31fe8d['last']+0x1,_0x3e0bd1=_0x3be933[0x0]['findAncestor']('table'),_0x43e0d3=_0x3e5c5c['createTableWalker'](_0x3e0bd1,{'startRow':_0x1624ab,'endRow':_0x1624ab}),_0x5794f4=Array['from'](_0x43e0d3)['map'](_0x55068b=>_0x31b9ad['createRangeOn'](_0x55068b['cell']));_0x4f7bfb['markMultiRangeInsertion'](_0x5794f4,'tableRow');});});}for(const _0x2aa8dc of['insertTableColumnLeft','insertTableColumnRight']){const _0x5e767e=_0x31f9ad['commands']['get'](_0x2aa8dc);_0x4f7bfb['enableCommand'](_0x2aa8dc,_0x591fe7=>{_0x31f9ad['model']['change'](_0x331273=>{_0x591fe7();const _0x42a605='left'===_0x5e767e['order'],_0x55bcc7=_0x3e5c5c['getSelectionAffectedTableCells'](_0x1427a1),_0x3ab19e=_0x3e5c5c['getColumnIndexes'](_0x55bcc7),_0x8b6592=_0x42a605?_0x3ab19e['first']-0x1:_0x3ab19e['last']+0x1,_0x3790db=_0x55bcc7[0x0]['findAncestor']('table'),_0x526ac0=_0x3e5c5c['createTableWalker'](_0x3790db,{'startRow':0x0,'column':_0x8b6592,'includeAllSlots':!0x1}),_0x39650f=Array['from'](_0x526ac0)['map'](_0x242878=>_0x331273['createRangeOn'](_0x242878['cell']));_0x4f7bfb['markMultiRangeInsertion'](_0x39650f,'tableColumn');});});}for(const _0x39f158 of['removeTableRow','removeTableColumn']){const _0x4ad6f0=_0x39f158['substr'](0xb),_0x32003c=_0x4ad6f0['toLowerCase'](),_0x1a44ed=_0x32003c['substr'](0x0,0x3)+'span',_0x2e0203='table'+_0x4ad6f0,_0x49e344='min'+_0x4ad6f0,_0x19534c='max'+_0x4ad6f0;_0x4f7bfb['enableCommand'](_0x39f158,()=>{_0x31f9ad['model']['change'](_0x3d1e75=>{const _0x391869=_0x3e5c5c['getSelectionAffectedTableCells'](_0x1427a1),_0xee3136=_0x391869[0x0]['findAncestor']('table');let _0x307eb9;if('removeTableRow'==_0x39f158){const _0x731ff=_0x3e5c5c['getRowIndexes'](_0x391869);_0x307eb9={'startRow':_0x731ff['first'],'endRow':_0x731ff['last'],'includeAllSlots':!0x0};}else{const _0x52472d=_0x3e5c5c['getColumnIndexes'](_0x391869);_0x307eb9={'startColumn':_0x52472d['first'],'endColumn':_0x52472d['last'],'includeAllSlots':!0x0};}const _0x138392=_0x3e5c5c['createTableWalker'](_0xee3136,_0x307eb9),_0x3bedd6=Array['from'](_0x138392)['map'](({cell:_0x59d1f9})=>_0x59d1f9),_0x572ec7=Ne(_0x3bedd6['filter'](_0x2b704e=>_0x2b704e['hasAttribute'](_0x1a44ed))),_0x509963=Ne(_0x3bedd6['filter'](_0x592370=>!_0x592370['hasAttribute'](_0x1a44ed)))['map'](_0x39131e=>_0x3d1e75['createRangeOn'](_0x39131e)),_0x4ba2ad=_0x4f7bfb['markMultiRangeDeletion'](_0x509963,_0x2e0203);if(_0x4ba2ad&&('tableRow'==_0x4ba2ad['subType']||'tableColumn'==_0x4ba2ad['subType'])){const _0x91462d=this['_getSuggestionCoords'](_0x4ba2ad);for(const _0x2157ce of _0x572ec7){const _0x15d920=_0x3d1e75['createRangeOn'](_0x2157ce),_0x49879c=_0x3e5c5c['getCellLocation'](_0x2157ce),_0x3eaeec=_0x2157ce['getAttribute'](_0x1a44ed)-0x1,_0xbc571e=_0x91462d[_0x49e344],_0x29ff47=_0x91462d[_0x19534c];_0xbc571e<=_0x49879c[_0x32003c]&&_0x49879c[_0x32003c]+_0x3eaeec<=_0x29ff47&&_0x4ba2ad['addRange'](_0x15d920);}}});});}function _0x45d895(_0x2d6d6f){const _0x479041=Array['from'](_0x1427a1['getRanges']())['map'](_0x3e521e=>_0x334b1a['fromRange'](_0x3e521e));_0x31f9ad['model']['change'](_0x4c91c9=>{const _0x4c73a0=_0x4c91c9['batch'];_0x2d6d6f=_0x2d6d6f['filter'](_0x6350b8=>'$graveyard'!=_0x6350b8['root']['rootName']),_0x4c91c9['setSelection'](_0x2d6d6f),_0x31f9ad['commands']['get']('removeTableRow')['refresh'](),_0x31f9ad['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x31f9ad['model']['enqueueChange'](()=>{_0x31f9ad['model']['enqueueChange'](_0x4c73a0,_0x18229c=>{const _0xc61e6b=_0x479041['filter'](_0x592556=>'$graveyard'!=_0x592556['root']['rootName']);_0xc61e6b['length']>0x0&&_0x18229c['setSelection'](_0xc61e6b);for(const _0xab535d of _0x479041)_0xab535d['detach']();});});});}function _0x6063d1(_0x282eb6){_0x31f9ad['model']['change'](_0x54ab5e=>{const _0x2ebab0=Array['from'](_0x1427a1['getRanges']())['map'](_0xfc7165=>_0x334b1a['fromRange'](_0xfc7165)),_0x1b19c6=[];for(const _0x423100 of _0x282eb6)for(const _0x38f4a4 of _0x423100['getItems']({'shallow':!0x0}))_0x1b19c6['push'](_0x38f4a4);for(const _0x28eda9 of _0x1b19c6)'$graveyard'!=_0x28eda9['root']['rootName']&&(_0x54ab5e['setSelection'](_0x54ab5e['createPositionAt'](_0x28eda9,0x0)),_0x31f9ad['commands']['get']('removeTableColumn')['refresh'](),_0x31f9ad['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x13d2c3=_0x2ebab0['filter'](_0x187140=>'$graveyard'!=_0x187140['root']['rootName']);_0x13d2c3['length']>0x0&&_0x54ab5e['setSelection'](_0x13d2c3);for(const _0x4b00b5 of _0x2ebab0)_0x4b00b5['detach']();});}function _0x4ad8a1(_0x45ec06,_0x1225ab){return _0x1225ab['every'](_0x5deeef=>_0x45ec06['some'](_0x44d345=>_0x44d345['end']['isEqual'](_0x5deeef['start'])||_0x5deeef['end']['isEqual'](_0x44d345['start'])));}function _0x2fadc6(_0x27d259,_0x50982c){return!_0x27d259['some'](_0x4437f8=>_0x50982c['some'](_0x40f178=>_0x4437f8['isIntersecting'](_0x40f178)))&&_0x27d259['some'](_0x30c235=>_0x50982c['some'](_0x568e7a=>_0x30c235['end']['isTouching'](_0x568e7a['start'])));}_0x31f9ad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x948ef4,_0x1ffc56,_0x3cc1a4)=>{if(!_0x3cc1a4['options']['showSuggestionHighlights'])return;const _0xde9df1=_0x1ffc56['item'];if(!_0xde9df1||!_0xde9df1['is']('element','tableCell'))return;const _0x5e05d1=_0x3cc1a4['mapper']['toViewElement'](_0xde9df1);if(_0x5e05d1){const {id:_0x303f43,authorId:_0x199296}=_0x4f7bfb['_splitMarkerName'](_0x1ffc56['markerName']);_0x186ae4(_0x5e05d1,_0x3cc1a4['writer'],(_0x237548,_0x250050,_0x160d33)=>{_0x160d33['addClass'](_0x549793(_0x250050['classes']),_0x237548),_0x160d33['setAttribute']('data-suggestion-id',_0x303f43,_0x237548),_0x160d33['setAttribute']('data-author-id',_0x199296,_0x237548);},(_0x27903d,_0x56fcc9,_0x5a8cfa)=>{_0x5a8cfa['removeClass'](_0x549793(_0x56fcc9['classes']),_0x27903d),_0x5a8cfa['removeAttribute']('data-suggestion-id',_0x27903d),_0x5a8cfa['removeAttribute']('data-author-id',_0x27903d);});}},{'priority':'highest'}),_0x4f7bfb['descriptionFactory']['registerDescriptionCallback'](_0x3d65ac=>{if('insertion'!=_0x3d65ac['type']&&'deletion'!=_0x3d65ac['type'])return;const _0x515829=_0x3d65ac['getContainedElement']();if(null!=_0x515829&&_0x515829['is']('element','table')){if('insertion'==_0x3d65ac['type']){const _0x42f0f4=_0x3d65ac['getItems']()['filter'](_0x4cd210=>_0x4cd210['is']('$textProxy'))['map'](_0x2961f0=>_0x2961f0['data']);if(_0x42f0f4['length'])return{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x42f0f4['join']('\x20')+'\x22'))};}if('deletion'==_0x3d65ac['type']){const _0x52b6f4=_0x3d65ac['getItems']()['filter'](_0x321591=>_0x321591['is']('$textProxy'))['map'](_0x7584d2=>_0x7584d2['data']);if(_0x52b6f4['length'])return{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x52b6f4['join']('\x20')+'\x22'))};}}}),_0x4f7bfb['descriptionFactory']['registerDescriptionCallback'](_0x42bcc7=>{if('tableRow'==_0x42bcc7['subType']){const _0x3bbb79=_0x42bcc7['getItems']()['filter'](_0x3e2c1f=>_0x3e2c1f['is']('$textProxy'))['map'](_0x206f97=>_0x206f97['data']),_0x3c4491=this['_getSuggestionCoords'](_0x42bcc7),_0x2a14fd=_0x3c4491['maxRow']-_0x3c4491['minRow']+0x1;if('insertion'==_0x42bcc7['type'])return _0x3bbb79['length']?{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2a14fd,'\x22'+_0x3bbb79['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_ROW',_0x2a14fd))};if('deletion'==_0x42bcc7['type'])return _0x3bbb79['length']?{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2a14fd,'\x22'+_0x3bbb79['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_ROW',_0x2a14fd))};}if('tableColumn'==_0x42bcc7['subType']){const _0x52acd6=_0x42bcc7['getItems']()['filter'](_0xd3e460=>_0xd3e460['is']('$textProxy'))['map'](_0x176146=>_0x176146['data']),_0x187a5d=this['_getSuggestionCoords'](_0x42bcc7),_0x2c146d=_0x187a5d['maxColumn']-_0x187a5d['minColumn']+0x1;if('insertion'==_0x42bcc7['type'])return _0x52acd6['length']?{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2c146d,'\x22'+_0x52acd6['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_COLUMN',_0x2c146d))};if('deletion'==_0x42bcc7['type'])return _0x52acd6['length']?{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2c146d,'\x22'+_0x52acd6['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_COLUMN',_0x2c146d))};}}),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x45d895),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x45d895),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x6063d1),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x6063d1),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4ad8a1),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4ad8a1),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2fadc6),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2fadc6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5e8547=this['editor'],_0x214364=_0x5e8547['model']['document']['selection'];return(_0x2805dd,_0xa1e9ed)=>{_0x5e8547['model']['change'](_0x343a04=>{const {commandName:_0x1c0c34,commandParams:_0x4688b3}=_0xa1e9ed;let _0x4dc1e9=_0x2805dd[0x0]['end']['nodeBefore'];_0x4688b3&&_0x4688b3[0x0]&&!0x1===_0x4688b3[0x0]['forceValue']&&(_0x4dc1e9=_0x2805dd[0x0]['start']['nodeAfter']);const _0x385c9f=_0x343a04['createRangeIn'](_0x4dc1e9);if('$graveyard'==_0x385c9f['root']['rootName'])return;const _0x7b0640=Array['from'](_0x214364['getRanges']())['map'](_0x533e91=>_0x334b1a['fromRange'](_0x533e91));_0x343a04['setSelection'](_0x385c9f),_0x5e8547['commands']['get'](_0x1c0c34)['refresh'](),_0x4688b3['push']({'forceDefaultExecution':!0x0}),_0x5e8547['execute'](_0x1c0c34,..._0x4688b3);const _0x50f6c6=_0x7b0640['filter'](_0x9c8f83=>'$graveyard'!=_0x9c8f83['root']['rootName']);_0x50f6c6['length']>0x0&&_0x343a04['setSelection'](_0x50f6c6);for(const _0x515f7b of _0x7b0640)_0x515f7b['detach']();});};}['_getCoordsForCells'](_0x40c1d0){const _0x43486b=this['editor']['plugins']['get']('TableUtils');let _0x281c0f=Number['MAX_SAFE_INTEGER'],_0xf2de73=Number['MIN_SAFE_INTEGER'],_0x231495=Number['MAX_SAFE_INTEGER'],_0x5c1849=Number['MIN_SAFE_INTEGER'];for(const _0x5be48c of _0x40c1d0){if('$graveyard'==_0x5be48c['root']['rootName'])continue;const {row:_0x3c668e,column:_0x38c018}=_0x43486b['getCellLocation'](_0x5be48c),_0x1cf6b7=_0x5be48c['hasAttribute']('rowspan')?_0x5be48c['getAttribute']('rowspan')-0x1:0x0,_0x22659f=_0x5be48c['hasAttribute']('colspan')?_0x5be48c['getAttribute']('colspan')-0x1:0x0;_0x281c0f=_0x3c668e<_0x281c0f?_0x3c668e:_0x281c0f,_0xf2de73=_0x3c668e+_0x1cf6b7>_0xf2de73?_0x3c668e+_0x1cf6b7:_0xf2de73,_0x231495=_0x38c018<_0x231495?_0x38c018:_0x231495,_0x5c1849=_0x38c018+_0x22659f>_0x5c1849?_0x38c018+_0x22659f:_0x5c1849;}return{'minRow':_0x281c0f,'maxRow':_0xf2de73,'minColumn':_0x231495,'maxColumn':_0x5c1849};}['_setupColumnsRowsFixing'](){const _0x453365=this['editor'],_0x2fdb66=_0x453365['plugins']['get']('TrackChangesEditing'),_0x34c1d4=_0x453365['plugins']['get']('TableUtils');_0x453365['model']['document']['on']('change:data',()=>{const _0x150b44=Array['from'](_0x453365['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3349fd,data:_0x30828e}of _0x150b44){const {group:_0x1ed4bd,id:_0x1f14eb,subType:_0x18e47c}=_0x2fdb66['_splitMarkerName'](_0x3349fd);if('suggestion'!=_0x1ed4bd)continue;if(null!=_0x30828e['oldRange'])continue;const _0x88fc23=_0x2fdb66['getSuggestion'](_0x1f14eb);this['_tablePostFixingSubtypes']['includes'](_0x18e47c)&&this['_tableSuggestions']['add'](_0x88fc23);}},{'priority':'low'});const _0x1376e3=(_0x501e86,_0x227127)=>{let _0x2665da=!0x1;const _0x475938=_0x227127['createRangeOn'](_0x501e86),_0x264a53=_0x501e86['findAncestor']('table'),_0x5b2ac6=_0x34c1d4['getCellLocation'](_0x501e86);for(const _0x1abd7a of this['_tableSuggestions']){const _0x182991=_0x1abd7a['subType'],_0x4ce38b=_0x182991['startsWith']('tablePaste'),_0x4200ed=_0x182991['substr'](_0x4ce38b?0xa:0x5),_0x14dd81=_0x4200ed['toLowerCase'](),_0x298ad0=_0x14dd81['substr'](0x0,0x3)+'span',_0x118ea8='min'+_0x4200ed,_0x83dadc='max'+_0x4200ed;if(!_0x1abd7a['isInContent'])continue;if(_0x264a53!=_0x1abd7a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1abd7a['isIntersectingWithRange'](_0x475938))continue;const _0x2a0ad0=_0x501e86['hasAttribute'](_0x298ad0)?_0x501e86['getAttribute'](_0x298ad0)-0x1:0x0,_0x43dbd7=this['_getSuggestionCoords'](_0x1abd7a),_0x4c85fa=_0x43dbd7[_0x118ea8],_0x1860c9=_0x43dbd7[_0x83dadc];_0x4c85fa<=_0x5b2ac6[_0x14dd81]&&_0x5b2ac6[_0x14dd81]+_0x2a0ad0<=_0x1860c9&&(_0x1abd7a['addRange'](_0x475938),_0x2665da=!0x0);}return _0x2665da;};_0x453365['model']['document']['registerPostFixer'](_0x50ac70=>{let _0x3f0255=!0x1;for(const _0x7e6944 of _0x453365['model']['document']['differ']['getChanges']())if('insert'==_0x7e6944['type']){if('tableRow'==_0x7e6944['name']){for(const _0x4c651b of _0x7e6944['position']['nodeAfter']['getChildren']())_0x3f0255=_0x3f0255||_0x1376e3(_0x4c651b,_0x50ac70);}else'tableCell'==_0x7e6944['name']&&(_0x3f0255=_0x3f0255||_0x1376e3(_0x7e6944['position']['nodeAfter'],_0x50ac70));}return _0x3f0255;});}['_getSuggestionCoords'](_0x5cab69){return this['_getCoordsForCells'](_0x5cab69['getRanges']()['map'](_0x4a7e5e=>_0x4a7e5e['start']['nodeAfter']));}}function Ne(_0x2f2adb){return Array['from'](new Set(_0x2f2adb)['values']());}class _t extends _0x559983{static get['requires'](){return[At];}['afterInit'](){const _0x4d23e0=this['editor'],_0xacdd55=_0x4d23e0['model']['document']['selection'],_0x1f1d1b=_0x4d23e0['locale'];if(!_0x4d23e0['plugins']['has']('TableEditing'))return;const _0x177b32=_0x4d23e0['plugins']['get']('TrackChangesEditing'),_0x579241=_0x4d23e0['plugins']['get']('TableUtils'),_0xcb6b5a=_0x4d23e0['plugins']['get'](At);_0xcb6b5a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x177b32['enableCommand']('mergeTableCells',()=>{const _0x766583=_0x579241['getSelectionAffectedTableCells'](_0x4d23e0['model']['document']['selection']);_0x4d23e0['model']['change'](()=>{_0x177b32['markMultiRangeBlockFormat'](_0x766583,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4d23e0['commands']['get']('mergeTableCells')['on']('execute',(_0x442ceb,_0x32a430)=>{_0x4d23e0['commands']['get']('trackChanges')['value']&&(_0x32a430['length']>0x0&&_0x32a430[_0x32a430['length']-0x1]&&_0x32a430[_0x32a430['length']-0x1]['forceDefaultExecution']||_0x177b32['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x442ceb['stop']());},{'priority':'highest'});for(const _0x4ef318 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x824f33=_0x4d23e0['commands']['get'](_0x4ef318);_0x177b32['enableCommand'](_0x4ef318,()=>{const _0x3969aa=_0x4d23e0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x133f31=>_0x133f31['is']('element','tableCell')),_0x2a858e=_0x824f33['value'];_0x4d23e0['model']['change'](()=>{_0x177b32['markMultiRangeBlockFormat']([_0x3969aa,_0x2a858e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x37be7c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x37ba43=_0x4d23e0['commands']['get'](_0x37be7c);_0x177b32['enableCommand'](_0x37be7c,()=>{const _0x3f4fc3=_0x579241['getSelectionAffectedTableCells'](_0x4d23e0['model']['document']['selection'])[0x0],_0x68561b=_0x3f4fc3['findAncestor']('table'),{column:_0x2a8466,row:_0x53786d}=_0x579241['getCellLocation'](_0x3f4fc3);let _0xe554b8=[];if('horizontally'==_0x37ba43['direction']){const _0x1e5961=_0x579241['createTableWalker'](_0x68561b,{'startRow':_0x53786d,'endRow':_0x53786d,'includeAllSlots':!0x0});_0xe554b8=Array['from'](_0x1e5961)['map'](_0x521bd4=>_0x521bd4['cell']);}else{const _0x30629e=_0x579241['createTableWalker'](_0x68561b,{'column':_0x2a8466,'includeAllSlots':!0x0});_0xe554b8=Array['from'](_0x30629e)['map'](_0x1cd2e3=>_0x1cd2e3['cell']);}_0x4d23e0['model']['change'](_0xfa2b6a=>{_0x177b32['markBlockFormat'](_0xfa2b6a['createRangeOn'](_0x3f4fc3),{'commandName':_0x37be7c,'commandParams':[]},_0xe554b8,_0x37be7c);});});}_0x177b32['descriptionFactory']['registerDescriptionCallback'](_0x4e9b1f=>{if('formatBlock'!=_0x4e9b1f['type']&&'formatInline'!=_0x4e9b1f['type'])return;const {data:_0x40d995}=_0x4e9b1f;return _0x40d995&&'mergeTableCells'==_0x40d995['commandName']?{'type':'format','content':o(_0x1f1d1b,'*Merge\x20cells*')}:void 0x0;}),_0x177b32['descriptionFactory']['registerDescriptionCallback'](_0x3a3f5f=>{if('formatBlock'!=_0x3a3f5f['type']&&'formatInline'!=_0x3a3f5f['type'])return;const {data:_0x3c5b8b}=_0x3a3f5f;return _0x3c5b8b?'splitTableCellVertically'==_0x3c5b8b['commandName']?{'type':'format','content':o(_0x1f1d1b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3c5b8b['commandName']?{'type':'format','content':o(_0x1f1d1b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x509888=_0xcb6b5a['_acceptFormatSuggestionCallbackFactory']();for(const _0x15fd36 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x177b32['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x15fd36,'accept',_0x509888);for(const _0x249d35 of['splitTableCellVertically','splitTableCellHorizontally'])_0x177b32['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x249d35,'accept',_0x509888);_0x177b32['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2afb2e=>{_0x4d23e0['model']['change'](_0x55db0c=>{const _0x4f85f7=Array['from'](_0xacdd55['getRanges']())['map'](_0x6d0d51=>_0x334b1a['fromRange'](_0x6d0d51));_0x55db0c['setSelection'](_0x2afb2e),_0x4d23e0['commands']['get']('mergeTableCells')['refresh'](),_0x4d23e0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x234371=_0x4f85f7['filter'](_0x55c33e=>'$graveyard'!=_0x55c33e['root']['rootName']);_0x234371['length']>0x0&&_0x55db0c['setSelection'](_0x234371);for(const _0x4d15dd of _0x4f85f7)_0x4d15dd['detach']();});});for(const _0x416ee8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x25b248=_0x4d23e0['commands']['get'](_0x416ee8);_0x25b248['on']('set:isEnabled',(_0x1d4fbd,_0x15a53f,_0x5bbcc6)=>{if(_0x5bbcc6){const _0x167d61=_0x4d23e0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x57038c=>_0x57038c['is']('element','tableCell'));this['_areMergableCells'](_0x25b248['value'],_0x167d61)||(_0x1d4fbd['return']=!0x1,_0x1d4fbd['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5563e2=this['editor']['commands']['get']('mergeTableCells'),_0x76bf74=this['editor']['plugins']['get']('TableUtils');if(!_0x5563e2['isEnabled'])return!0x1;const _0x15d747=_0x76bf74['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4893da of _0x15d747)for(const _0x5090b3 of _0x15d747)if(_0x4893da!=_0x5090b3&&!this['_areMergableCells'](_0x4893da,_0x5090b3))return!0x1;return!0x0;}['_areMergableCells'](_0x56398a,_0x1e1941){const _0x198147=this['editor']['plugins']['get']('TrackChangesEditing'),_0x366e03=this['editor']['model']['createRangeOn'](_0x56398a),_0x4b8182=this['editor']['model']['createRangeOn'](_0x1e1941),_0x1f5096=new Set(),_0x14090f=new Set();for(const _0x5d9647 of _0x198147['getSuggestions']())if(('insertion'==_0x5d9647['type']||'deletion'==_0x5d9647['type']||'mergeTableCells'==_0x5d9647['subType'])&&_0x5d9647['isInContent']){for(const _0x2f2159 of _0x5d9647['getRanges']())_0x2f2159['containsRange'](_0x366e03,!0x0)&&_0x1f5096['add'](_0x5d9647['type']+':'+_0x5d9647['author']['id']),_0x2f2159['containsRange'](_0x4b8182,!0x0)&&_0x14090f['add'](_0x5d9647['type']+':'+_0x5d9647['author']['id']);}if(_0x1f5096['size']!=_0x14090f['size'])return!0x1;for(const _0x43b290 of _0x1f5096)if(!_0x14090f['has'](_0x43b290))return!0x1;return!0x0;}}class Ct extends _0x559983{static get['requires'](){return[At];}['afterInit'](){const _0x41d2bd=this['editor'];if(!_0x41d2bd['plugins']['has']('TableEditing'))return;const _0xa516bf=_0x41d2bd['locale'],_0x517d6d=_0x41d2bd['plugins']['get']('TrackChangesEditing');_0x517d6d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x517d6d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x517d6d['registerBlockAttribute']('headingRows'),_0x517d6d['registerBlockAttribute']('headingColumns'),_0x517d6d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xa516bf,'FORMAT_HEADER_ROW')),_0x517d6d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xa516bf,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4219f2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f04f4=this['editor']['plugins']['get']('TableUtils'),_0x30f93c=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x2c8454({showActiveMarker:_0x3f7595=!0x0,setDataAttribute:_0x44ec8e=!0x0}={}){return(_0x44c853,_0x57105f,_0x53a227)=>{const {type:_0xe07dcf,id:_0x239b4b}=_0x4219f2['_splitMarkerName'](_0x57105f['markerName']),_0x3cf833=_0x4219f2['getSuggestion'](_0x239b4b),_0x4b165d=_0x3cf833['data'];if('formatBlock'!=_0x3cf833['type']||!_0x4b165d||'setTableColumnHeader'!=_0x4b165d['commandName'])return;if(_0x57105f['item'])return void _0x44c853['stop']();if(!_0x53a227['consumable']['consume'](_0x57105f['markerRange'],_0x44c853['name']))return;const _0x10c5b1=_0x57105f['markerRange']['start']['nodeAfter'],_0x15850c=_0x57105f['markerRange']['end']['nodeBefore'],_0x393338=_0x10c5b1['parent']['parent'],{column:_0x1f448b}=_0x1f04f4['getCellLocation'](_0x10c5b1),{column:_0x41a6e6}=_0x1f04f4['getCellLocation'](_0x15850c);for(let _0x53ebf6=_0x1f448b;_0x53ebf6<=_0x41a6e6;_0x53ebf6++){const _0x19c0d2=_0x1f04f4['createTableWalker'](_0x393338,{'column':_0x53ebf6,'includeAllSlots':!0x1});for(const _0x12380f of _0x19c0d2){const _0x1bd958=_0x12380f['cell'],_0x22eb24=_0x53a227['mapper']['toViewElement'](_0x1bd958);_0x53a227['writer']['addClass']('ck-suggestion-marker-'+_0xe07dcf,_0x22eb24),_0x44ec8e&&_0x53a227['writer']['setAttribute']('data-suggestion',_0x239b4b,_0x22eb24),_0x53a227['mapper']['bindElementToMarker'](_0x22eb24,_0x57105f['markerName']),_0x3f7595&&(_0x4219f2['activeMarkers']['includes'](_0x57105f['markerName'])?_0x53a227['writer']['addClass']('ck-suggestion-marker--active',_0x22eb24):_0x53a227['writer']['removeClass']('ck-suggestion-marker--active',_0x22eb24));}}};}_0x4219f2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x30f93c),_0x4219f2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x30f93c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2c8454(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xf298a2,_0x3d6c4f,_0x146195)=>{_0x146195['options']['showSuggestionHighlights']&&_0x2c8454({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xf298a2,_0x3d6c4f,_0x146195);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x266439,_0x1d8ba8,_0x81caf1)=>{const {type:_0xdf3783,id:_0x24602e}=_0x4219f2['_splitMarkerName'](_0x1d8ba8['markerName']),_0x12ff03=_0x4219f2['getSuggestion'](_0x24602e),_0x33cf9c=_0x12ff03['data'];if('formatBlock'!=_0x12ff03['type']||!_0x33cf9c||'setTableColumnHeader'!=_0x33cf9c['commandName'])return;const _0x4c9462=_0x81caf1['mapper']['markerNameToElements'](_0x1d8ba8['markerName']);if(_0x4c9462){for(const _0x316108 of _0x4c9462)_0x81caf1['writer']['removeClass']('ck-suggestion-marker-'+_0xdf3783,_0x316108),_0x81caf1['writer']['removeClass']('ck-suggestion-marker--active',_0x316108),_0x81caf1['writer']['removeAttribute']('data-suggestion',_0x316108),_0x81caf1['mapper']['unbindElementFromMarkerName'](_0x316108,_0x1d8ba8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1528b7=this['editor'],_0x2615ad=_0x1528b7['locale'];function _0x260999(_0x267e12){return{'type':'format','content':o(_0x2615ad,'*Format:*\x20%0',_0x267e12)};}_0x1528b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x212342=>{if('formatBlock'!=_0x212342['type'])return;const {data:_0x1ad803}=_0x212342;if(_0x1ad803){if('setTableRowHeader'==_0x1ad803['commandName']){const _0x1238f9=_0x1ad803['commandParams'][0x0]['forceValue'];return _0x260999(o(_0x2615ad,_0x1238f9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1ad803['commandName']){const _0x35d242=_0x1ad803['commandParams'][0x0]['forceValue'];return _0x260999(o(_0x2615ad,_0x35d242?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x559983{['afterInit'](){const _0x4122cb=this['editor'],_0x2e6b0a=_0x4122cb['locale'],_0x175734=_0x4122cb['plugins']['get']('TrackChangesEditing');function _0x532b93(_0x278830){return{'type':'format','content':''+o(_0x2e6b0a,'*Set\x20table\x20type:*\x20%0',_0x278830)};}_0x4122cb['plugins']['has']('TableLayout')&&(_0x175734['enableCommand']('insertTableLayout'),_0x175734['enableDefaultAttributesIntegration']('tableType'),_0x175734['registerBlockAttribute']('tableType'),_0x175734['descriptionFactory']['registerElementLabel'](_0x1a0bd8=>_0x1a0bd8['is']('element','table')&&'layout'===_0x1a0bd8['getAttribute']('tableType'),_0x520501=>o(_0x2e6b0a,'ELEMENT_LAYOUT_TABLE',_0x520501)),_0x175734['descriptionFactory']['registerDescriptionCallback'](_0x353f3e=>{const {data:_0x47c894}=_0x353f3e;if(_0x47c894&&'tableType'==_0x47c894['key'])switch(_0x47c894['newValue']){case'layout':return _0x532b93(o(_0x2e6b0a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x532b93(o(_0x2e6b0a,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x46e8e2=>[_0x46e8e2,null]));class Nt extends _0x559983{static get['requires'](){return[At];}['afterInit'](){const _0x2fd095=this['editor'];if(!_0x2fd095['plugins']['has']('TableClipboard'))return;const _0x136206=_0x2fd095['plugins']['get']('TrackChangesEditing'),_0x2e4b71=_0x2fd095['plugins']['get']('TableUtils'),_0x2579d0=_0x2fd095['plugins']['get'](At),_0xabbbb9=_0x2fd095['plugins']['get']('TableClipboard'),_0x365de2=_0x2fd095['plugins']['get']('TableSelection'),_0xc4156b=_0x2fd095['plugins']['get'](_0x9367c);_0x2579d0['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2fd095['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2fd095['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x46f3f4=null,_0x33f587=!0x1;_0xc4156b['on']('contentInsertion',(_0xbbbadd,_0x2ba014)=>{_0x33f587='paste'===_0x2ba014['method'];}),_0x2fd095['model']['on']('insertContent',(_0x37f7a8,_0x16456c)=>{if(!_0x33f587&&null===_0x365de2['getSelectedTableCells']())return;const [_0x4aad2d,_0x2a523b]=_0x16456c,_0x3655ae=_0x16456c[_0x16456c['length']-0x1];_0x3655ae&&_0x3655ae['forceDefaultExecution']||_0x136206['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2bd6ff,_0xd45e45,_0x13f739,_0x291b84,_0x2fed87){if(_0xd45e45&&!_0xd45e45['is']('documentSelection'))return!0x1;const _0x48a26d=_0x2fed87['getTableIfOnlyTableInContent'](_0x2bd6ff,_0x13f739);if(!_0x48a26d||!Ue(_0x48a26d,void 0x0,_0x291b84))return!0x1;const _0x5db761=_0x291b84['getSelectionAffectedTableCells'](_0x13f739['document']['selection']);if(!_0x5db761['length'])return!0x1;const _0x137a3f=_0x5db761[0x0]['findAncestor']('table'),_0x337a09=_0x291b84['getRowIndexes'](_0x5db761),_0x527912=_0x291b84['getColumnIndexes'](_0x5db761),_0x5102e1={'startRow':_0x337a09['first'],'endRow':_0x337a09['last'],'startColumn':_0x527912['first'],'endColumn':_0x527912['last']};return 0x1==_0x5db761['length']&&(_0x5102e1['endRow']+=_0x291b84['getRows'](_0x48a26d)-0x1,_0x5102e1['endColumn']+=_0x291b84['getColumns'](_0x48a26d)-0x1),Ue(_0x137a3f,_0x5102e1,_0x291b84);}(_0x4aad2d,_0x2a523b,_0x2fd095['model'],_0x2e4b71,_0xabbbb9)&&(_0x37f7a8['stop'](),_0x46f3f4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2fd095['model']['change'](()=>{_0x2fd095['model']['insertContent'](_0x16456c[0x0],_0x16456c[0x1],_0x16456c[0x2],{'forceDefaultExecution':!0x0});const _0x580ddd=_0x20cf05(),{rowInsertionRanges:_0x34e858,columnInsertionRanges:_0x22aaf6,insertionRanges:_0x2b488b,deletionRanges:_0x306b2b,cells:_0x4b45a5}=_0x46f3f4;_0x34e858['length']&&_0x136206['markMultiRangeInsertion'](_0x34e858,'tablePasteRow',{'tablePasteChainId':_0x580ddd}),_0x22aaf6['length']&&_0x136206['markMultiRangeInsertion'](_0x22aaf6,'tablePasteColumn',{'tablePasteChainId':_0x580ddd}),_0x2b488b['length']&&(_0x136206['markMultiRangeInsertion'](_0x2b488b,'tablePaste',{'tablePasteChainId':_0x580ddd,'skipNestingCheck':!0x0}),_0x2b488b['forEach'](_0xd04a0c=>_0xd04a0c['detach']?.())),_0x306b2b['length']&&(_0x136206['markMultiRangeDeletion'](_0x306b2b,'tablePaste',{'tablePasteChainId':_0x580ddd,'skipNestingCheck':!0x0}),_0x306b2b['forEach'](_0x29f4ad=>_0x29f4ad['detach']?.()));const _0x4bf1f9=_0x136206['markMultiRangeBlockFormat'](_0x4b45a5['map'](({element:_0x466038})=>_0x466038),{'formatGroupId':_0x20cf05()},[],'tablePasteCell',{'tablePasteChainId':_0x580ddd});if(_0x4bf1f9){const _0x548b5b=_0x4bf1f9['getMarkers'](),_0x452c56=[];for(const {element:_0x52a98c,attributes:_0x248ffc}of _0x4b45a5){if(!_0x248ffc)continue;const _0x468370=_0x2fd095['model']['createRangeOn'](_0x52a98c),_0x52aca7=_0x548b5b['find'](_0x1e1a9c=>_0x1e1a9c['getRange']()['isEqual'](_0x468370));_0x52aca7&&_0x452c56['push']([_0x52aca7['name'],_0x248ffc]);}_0x452c56['length']&&_0x4bf1f9['setAttribute']('markerAttributes',Object['fromEntries'](_0x452c56));}_0x46f3f4=null;}));},{'priority':_0x3a0027['high']+0xa}),_0xc4156b['on']('contentInsertion',()=>{_0x33f587=!0x1;},{'priority':'lowest'}),_0x2fd095['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x44a354,_0x55a911)=>{const [_0x3dfa33,_0x72be0c,,_0x29b2fc]=_0x55a911;if(!_0x46f3f4)return;_0x44a354['stop']();const _0xbd090c=_0x3dfa33['cell'],_0x3cc856=_0x72be0c,_0x2d3e13=Oe(_0xbd090c),_0x2c9f21=Oe(_0x3cc856);_0x44a354['return']=_0xbd090c;let _0x436242=null,_0x23224c=null;if(_0x2c9f21||_0x2d3e13){if(_0x2d3e13&&!_0x2c9f21){_0x29b2fc['remove'](_0xbd090c['getChild'](0x0));for(const _0x128f75 of Array['from'](_0x3cc856['getChildren']()))_0x29b2fc['insert'](_0x128f75,_0xbd090c,'end');const _0x4333cc=_0x46f3f4['rowInsertionIndexes']['includes'](_0x3dfa33['row']),_0x14c64f=_0x46f3f4['columnInsertionIndexes']['includes'](_0x3dfa33['column']);_0x4333cc||_0x14c64f||(_0x436242=_0x334b1a['fromRange'](_0x29b2fc['createRangeIn'](_0xbd090c)));}else _0x2c9f21&&!_0x2d3e13&&(_0x23224c=_0x29b2fc['createRangeIn'](_0xbd090c));}else{const _0x2f166a=_0x29b2fc['createElement']('tableCellSuggestion'),_0x5cb6fb=_0x29b2fc['createElement']('tableCellSuggestion');_0x29b2fc['wrap'](_0x29b2fc['createRangeIn'](_0xbd090c),_0x5cb6fb),_0x29b2fc['insert'](_0x2f166a,_0xbd090c,0x0);for(const _0x20c617 of Array['from'](_0x3cc856['getChildren']()))_0x29b2fc['insert'](_0x20c617,_0x2f166a,'end');_0x436242=_0x334b1a['fromRange'](_0x29b2fc['createRangeOn'](_0x2f166a)),_0x23224c=_0x334b1a['fromRange'](_0x29b2fc['createRangeOn'](_0x5cb6fb));}const _0x38578=Array['from'](_0x3cc856['getAttributes']())['filter'](([_0x4da127])=>Be['includes'](_0x4da127));_0x46f3f4['cells']['push']({'element':_0xbd090c,'attributes':_0x38578['length']?Object['fromEntries'](_0x38578):null}),_0x436242&&_0x46f3f4['insertionRanges']['push'](_0x436242),_0x23224c&&_0x46f3f4['deletionRanges']['push'](_0x23224c);},{'priority':'high'}),_0x2e4b71['on']('insertColumns',(_0x2d6558,_0x43d45a)=>{const [_0x40af8f,_0x50cad3={}]=_0x43d45a;if(!_0x46f3f4)return;const _0x408bd2=_0x50cad3['at']||0x0,_0x2f08a2=_0x50cad3['columns']||0x1;_0x46f3f4['columnInsertionIndexes']=new Array(_0x2f08a2)['fill'](_0x408bd2)['map']((_0xcd6914,_0x3f7890)=>_0xcd6914+_0x3f7890);for(const {cell:_0xa7f81d}of _0x2e4b71['createTableWalker'](_0x40af8f,{'startColumn':_0x408bd2,'endColumn':_0x408bd2+_0x2f08a2-0x1}))_0x46f3f4['columnInsertionRanges']['push'](_0x2fd095['model']['createRangeOn'](_0xa7f81d));},{'priority':'low'}),_0x2e4b71['on']('insertRows',(_0x12d930,_0x51666d)=>{const [_0x547b3b,_0x1f3266={}]=_0x51666d;if(!_0x46f3f4)return;const _0x5bd135=_0x1f3266['at']||0x0,_0x5cbfce=_0x1f3266['rows']||0x1;_0x46f3f4['rowInsertionIndexes']=new Array(_0x5cbfce)['fill'](_0x5bd135)['map']((_0x54dccf,_0x3c1813)=>_0x54dccf+_0x3c1813);for(const {cell:_0x2c01a1}of _0x2e4b71['createTableWalker'](_0x547b3b,{'startRow':_0x5bd135,'endRow':_0x5bd135+_0x5cbfce-0x1}))_0x46f3f4['rowInsertionRanges']['push'](_0x2fd095['model']['createRangeOn'](_0x2c01a1));},{'priority':'low'}),_0x136206['descriptionFactory']['registerDescriptionCallback'](_0x20d28=>{if(_0x20d28['subType']&&_0x20d28['subType']['startsWith']('tablePaste'))return _0x20d28['previous']?{}:{'type':'insertion','content':o(_0x2fd095['locale'],'*Replace\x20table\x20cells*')};});const _0x576112=()=>!0x1;for(const _0xb97b60 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x136206['_suggestionFactory']['registerCustomCallback']('insertion',_0xb97b60,'join',_0x576112),_0x136206['_suggestionFactory']['registerCustomCallback']('deletion',_0xb97b60,'join',_0x576112),_0x136206['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xb97b60,'join',_0x576112);_0x136206['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x576112),_0x136206['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xd56cdc,_0x307754,_0x8ea4bc)=>{const _0x5054a8=_0xd56cdc['map'](_0x343faf=>_0x343faf['getContainedElement']())['filter'](_0x137530=>_0x137530),_0x4cc8ce=new Map(_0x5054a8['map'](_0x2856d2=>[_0x2856d2,null]));if(_0x46f3f4){for(const {element:_0x4edbfb,attributes:_0x1f424e}of _0x46f3f4['cells'])_0x1f424e&&_0x4cc8ce['set'](_0x4edbfb,_0x1f424e);}else{if(_0x8ea4bc&&_0x8ea4bc['markerAttributes'])for(const [_0x531073,_0x2e3e56]of Object['entries'](_0x8ea4bc['markerAttributes'])){const _0x39d44e=_0x2fd095['model']['markers']['get'](_0x531073),_0x91cbf=_0x39d44e?_0x39d44e['getRange']()['getContainedElement']():null;_0x91cbf&&_0x4cc8ce['set'](_0x91cbf,_0x2e3e56);}}_0x2fd095['model']['change'](_0x12e532=>{for(const [_0x4d6878,_0x694b04]of _0x4cc8ce)_0x12e532['setAttributes']({...xe,..._0x694b04},_0x4d6878);});});const _0x4516d8=(_0x3ca69d,_0x1a05ac)=>{_0x136206['_suggestionFactory']['registerCustomCallback'](_0x3ca69d,'tablePaste',_0x1a05ac,(_0x456ae6,_0x13a6fc,_0xfe318d)=>{_0x2fd095['model']['change'](_0x3a0c9b=>{const _0xc8bd93=[];for(const _0x19c8a7 of _0x456ae6){const _0xc7c95f=_0x19c8a7['start']['nodeAfter'];_0xc7c95f['is']('element','tableCellSuggestion')&&_0xc8bd93['push'](_0xc7c95f);}_0x136206['_suggestionFactory']['getSuggestionCallback'](_0x3ca69d,null,_0x1a05ac)(_0x456ae6,_0x13a6fc,_0xfe318d);for(const _0x470511 of _0xc8bd93)'$graveyard'!=_0x470511['root']['rootName']&&_0x3a0c9b['unwrap'](_0x470511);});});};_0x4516d8('insertion','accept'),_0x4516d8('insertion','discard'),_0x4516d8('deletion','accept'),_0x4516d8('deletion','discard'),_0x136206['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1c4872=>{const _0x16a4c5=_0x1c4872['map'](_0x127182=>_0x127182['getContainedElement']()),_0x4f86b1=_0x16a4c5[0x0]['findAncestor']('table'),{minRow:_0x80db34,maxRow:_0x59e938}=_0x2579d0['_getCoordsForCells'](_0x16a4c5);_0x2e4b71['removeRows'](_0x4f86b1,{'at':_0x80db34,'rows':_0x59e938-_0x80db34+0x1});}),_0x136206['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x17f49d=>{const _0x1145e7=_0x17f49d['map'](_0x419231=>_0x419231['getContainedElement']()),_0x50ef80=_0x1145e7[0x0]['findAncestor']('table'),{minColumn:_0x3c257b,maxColumn:_0x4098da}=_0x2579d0['_getCoordsForCells'](_0x1145e7);_0x2e4b71['removeColumns'](_0x50ef80,{'at':_0x3c257b,'columns':_0x4098da-_0x3c257b+0x1});});const _0xdefbca=(_0x10293a,_0xbb2d4b)=>{if(!_0xbb2d4b['subType']||!_0xbb2d4b['subType']['startsWith']('tablePaste'))return;const _0x3a9562=_0xbb2d4b['attributes']['tablePasteChainId'],_0x3e95ad=_0x136206['getSuggestions']()['filter'](_0x436a39=>_0x436a39['isInContent']&&_0x436a39['attributes']&&_0x436a39['attributes']['tablePasteChainId']==_0x3a9562);_0x3e95ad['length']&&_0xbb2d4b['getAllAdjacentSuggestions']()['length']!=_0x3e95ad['length']&&_0x3e95ad['reduce']((_0x49ba7a,_0xad23f4)=>(_0x49ba7a['next']=_0xad23f4,_0xad23f4['previous']=_0x49ba7a,_0xad23f4));};function _0x2408bb(_0x120e9f,_0x35ddef=!0x0){const {id:_0x57c808,authorId:_0x656252}=_0x136206['_splitMarkerName'](_0x120e9f['markerName']),_0x12b9cb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4c44fd=_0x136206['activeMarkers']['includes'](_0x120e9f['markerName']);return _0x4c44fd&&_0x12b9cb['push']('ck-suggestion-marker--active'),{'classes':_0x12b9cb,'attributes':{'data-suggestion':_0x57c808,'data-author-id':_0x656252},'priority':_0x4c44fd&&_0x35ddef?0xbc2:0xbb8};}_0x136206['on']('suggestionLoaded',_0xdefbca,{'priority':'high'}),_0x136206['on']('suggestionUnloaded',_0xdefbca,{'priority':'high'}),_0x2fd095['model']['document']['registerPostFixer'](()=>{let _0x1b03c6=!0x1;const _0x1fb45b=Array['from'](_0x2fd095['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5cdd8d,data:_0x6336f5}of _0x1fb45b){const {group:_0x306072,type:_0x3a238b,id:_0x4b4a15}=_0x136206['_splitMarkerName'](_0x5cdd8d);if('suggestion'!=_0x306072||'deletion'!=_0x3a238b||_0x6336f5['oldRange'])continue;if(!_0x136206['hasSuggestion'](_0x4b4a15))continue;const _0x2a9e4c=_0x136206['getSuggestion'](_0x4b4a15)['getRanges'](),_0xd909f=_0x2fd095['plugins']['get']('Users')['me'];for(const _0x48200f of _0x136206['getSuggestions']()){if(!_0x48200f['isInContent']||_0x48200f['author']!=_0xd909f)continue;if('formatBlock'!=_0x48200f['type']||'tablePasteCell'!=_0x48200f['subType'])continue;if(_0x48200f['getRanges']()['every'](_0x18935b=>_0x2a9e4c['some'](_0xe9f921=>_0xe9f921['containsRange'](_0x18935b,!0x0)))){for(const _0xabdef9 of _0x48200f['getAllAdjacentSuggestions']())_0xabdef9['isInContent']&&(_0xabdef9['discard'](),_0x1b03c6=!0x0);}}}return _0x1b03c6;}),_0x2fd095['model']['document']['registerPostFixer'](_0x4d39ec=>{const _0x40f23f=_0x2fd095['commands']['get']('redo');if(!_0x40f23f||!_0x40f23f['_createdBatches']['has'](_0x4d39ec['batch']))return!0x1;let _0x17359f=!0x1;const _0x4c71ca=_0x2fd095['plugins']['get']('Users')['me'],_0x25f248=_0x2fd095['model']['document']['differ']['getChanges'](),_0x5245b5=Array['from'](_0x2fd095['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xbcb808,data:_0x473b75})=>{const {group:_0x4d70a1,subType:_0x3089c3,authorId:_0x2799e8}=_0x136206['_splitMarkerName'](_0xbcb808);return'suggestion'==_0x4d70a1&&'tablePaste'==_0x3089c3&&_0x2799e8==_0x4c71ca['id']&&!_0x473b75['oldRange'];});for(const _0x5a8110 of _0x25f248){if('insert'!=_0x5a8110['type']||'tableCellSuggestion'!=_0x5a8110['name']||0x1!=_0x5a8110['length'])continue;const _0x1b070c=_0x4d39ec['createRange'](_0x5a8110['position'],_0x5a8110['position']['getShiftedBy'](0x1));if(!_0x5245b5['find'](({data:_0xf92e0b})=>_0xf92e0b['newRange']['isEqual'](_0x1b070c))){for(const {name:_0x237510,data:_0xb3d601}of _0x5245b5)if(_0x1b070c['containsRange'](_0xb3d601['newRange'])){_0x4d39ec['updateMarker'](_0x237510,{'range':_0x1b070c}),_0x17359f=!0x0;break;}}}return _0x17359f;}),_0x2fd095['model']['document']['registerPostFixer'](_0x5dee4d=>{let _0x287a1f=!0x1;const _0x134f8d=_0x2fd095['plugins']['get']('Users')['me'],_0x4228b8=_0x136206['getSuggestions']()['filter'](_0x42bbb3=>_0x42bbb3['isInContent']&&_0x42bbb3['author']==_0x134f8d),_0x4ab2ca=new Set(),_0x5c726b=new Set();for(const _0x24c1e2 of _0x4228b8)if('tablePaste'==_0x24c1e2['subType'])for(const _0x31160b of _0x24c1e2['getMarkers']()){const _0x492950=_0x31160b['getRange']()['getContainedElement']();if(_0x492950){if(_0x492950['is']('element','tableCellSuggestion')&&Oe(_0x492950)){_0x24c1e2['removeMarker'](_0x31160b['name']),_0x4ab2ca['add'](_0x492950),_0x287a1f=!0x0;const _0x11a07f=_0x492950['nextSibling'],_0x2bc1e9=_0x492950['previousSibling'],_0x5a597c=_0x11a07f&&_0x11a07f['is']('element','tableCellSuggestion'),_0x327400=_0x2bc1e9&&_0x2bc1e9['is']('element','tableCellSuggestion');_0x5a597c&&!_0x4ab2ca['has'](_0x11a07f)&&_0x5c726b['add'](_0x11a07f),_0x327400&&!_0x4ab2ca['has'](_0x2bc1e9)&&_0x5c726b['add'](_0x2bc1e9);}else _0x492950['is']('element','paragraph')&&_0x492950['isEmpty']&&(_0x24c1e2['removeMarker'](_0x31160b['name']),_0x287a1f=!0x0);}}else{if('tablePasteCell'==_0x24c1e2['subType']){if(!_0x24c1e2['attributes']||!_0x24c1e2['attributes']['tablePasteChainId'])continue;const _0x5dd3ab=_0x24c1e2['attributes']['markerAttributes'];if(_0x5dd3ab&&Object['keys'](_0x5dd3ab)['length'])continue;const _0x4a7242=_0x24c1e2['attributes']['tablePasteChainId'];let _0x36d0b2=!0x0,_0x278efb=!0x0;for(const _0x133fcf of _0x4228b8)if(_0x133fcf['subType']&&_0x133fcf['subType']['startsWith']('tablePaste')){if(!_0x133fcf['attributes']['tablePasteChainId']){_0x278efb=!0x1;break;}if(_0x133fcf['id']!=_0x24c1e2['id']&&_0x133fcf['attributes']['tablePasteChainId']==_0x4a7242){_0x36d0b2=!0x1;break;}}_0x278efb&&_0x36d0b2&&(_0x24c1e2['removeMarkers'](),_0x287a1f=!0x0);}}for(const _0xaadaec of _0x4ab2ca)_0x5dee4d['remove'](_0xaadaec);for(const _0x4ceb99 of _0x5c726b)_0x5dee4d['unwrap'](_0x4ceb99);return _0x287a1f;}),_0x2fd095['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5e0cfe=>_0x2408bb(_0x5e0cfe),'converterPriority':'high'}),_0x2fd095['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2d0104,_0x46d9b8)=>_0x46d9b8['options']['showSuggestionHighlights']?_0x2408bb(_0x2d0104,!0x1):null,'converterPriority':'high'});const _0x2a1671=_0x2fd095['editing']['view'];this['listenTo'](_0x2a1671['document'],'clipboardOutput',(_0x1587ce,_0x5a0498)=>{const _0x105e47=[];for(const _0x541189 of _0x2a1671['createRangeIn'](_0x5a0498['content'])['getItems']())_0x541189['is']('element','suggestion-td')&&_0x105e47['push'](_0x541189);_0x2a1671['change'](_0x1cd808=>{for(const _0x37086a of _0x105e47)_0x1cd808['move'](_0x1cd808['createRangeIn'](_0x37086a),_0x1cd808['createPositionBefore'](_0x37086a)),_0x1cd808['remove'](_0x37086a);});});}}function Oe(_0x574ab9){if(_0x574ab9['isEmpty'])return!0x0;const _0x3a68c3=_0x574ab9['getChild'](0x0);return _0x3a68c3['is']('element','paragraph')&&_0x3a68c3['isEmpty'];}function Ue(_0x925738,_0x58783c={},_0x32117d){for(const {isAnchor:_0x4c7902,cellHeight:_0x304048,cellWidth:_0x2149ba}of _0x32117d['createTableWalker'](_0x925738,{'includeAllSlots':!0x0,..._0x58783c}))if(!_0x4c7902||0x1!=_0x304048||0x1!=_0x2149ba)return!0x1;return!0x0;}class Dt extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x6c2116=this['editor']['plugins']['get']('TrackChangesEditing');_0x6c2116['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x6c2116['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x6c2116['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6c2116['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x6c2116['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x6c2116['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x299a11,_0x4bdabe){const _0x1d46ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b9f23=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4cce2f=_0x4bdabe['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x216876=_0x2b9f23['getColumnGroupElement'](_0x4cce2f);let _0x4652d0=_0x216876?_0x2b9f23['getTableColumnsWidths'](_0x216876):null,_0x3867dd=_0x4cce2f['getAttribute']('tableWidth')||null;const _0x59b378=_0x4bdabe['tableWidth']||_0x3867dd,_0xd19d54=_0x4bdabe['columnWidths']||_0x4652d0,_0xa6d6fa=this['editor']['plugins']['get']('Users')['me'];for(const _0x358139 of _0x1d46ee['getSuggestions']()){const _0x490ce5=_0x358139['getContainedElement']();if('resizeTable'===_0x358139['subType']&&_0x490ce5===_0x4cce2f){_0x358139['author']!==_0xa6d6fa&&_0x358139['discard']();const _0x5bde8c=_0x358139['data']['commandParams'];_0x3867dd=_0x5bde8c[0x0]['tableWidth'],_0x4652d0=_0x5bde8c[0x0]['columnWidths'];break;}}_0x299a11({'table':_0x4cce2f,'tableWidth':_0x59b378,'columnWidths':_0xd19d54}),_0x1d46ee['markBlockFormat'](_0x4cce2f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3867dd,'columnWidths':_0x4652d0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x6b7bda){if('formatBlock'!=_0x6b7bda['type']&&'formatInline'!=_0x6b7bda['type'])return;const {data:_0x2b0259}=_0x6b7bda;if(_0x2b0259&&'resizeTable'===_0x2b0259['formatGroupId']){const _0x49eee6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x49eee6)};}}}class Mt extends _0x559983{['afterInit'](){const _0x433caf=this['editor'];_0x433caf['plugins']['has']('Template')&&_0x433caf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x559983{['afterInit'](){const _0x374510=this['editor'];if(!_0x374510['commands']['get']('insertTableOfContents'))return;_0x374510['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x7bc32f=_0x374510['plugins']['get']('TrackChangesEditing'),_0x5cbf90=_0x374510['locale'];_0x7bc32f['descriptionFactory']['registerElementLabel']('tableOfContents',_0xfb58c2=>o(_0x5cbf90,'ELEMENT_TABLE_OF_CONTENTS',_0xfb58c2));}}class Bt extends _0x559983{['afterInit'](){const _0xe920c=this['editor'];if(!_0xe920c['plugins']['has']('Title'))return;const _0x419486=_0xe920c['plugins']['get']('TrackChangesEditing');_0x419486['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xe920c['locale'],'ELEMENT_TITLE')),_0xe920c['model']['document']['registerPostFixer'](_0x4d77ac=>{let _0x4a20e8=!0x1;const _0x3e87b5=Array['from'](_0xe920c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b6846,data:_0x1353af}of _0x3e87b5){const {group:_0x25d295}=_0x419486['_splitMarkerName'](_0x3b6846);if('suggestion'!==_0x25d295||!_0x1353af['newRange'])continue;const _0x150c8f=_0x1353af['newRange'],_0x323c1f=_0x150c8f['end']['nodeBefore'];if(!_0x323c1f||!_0x323c1f['is']('element','title-content'))continue;if(!_0x150c8f['start']['isTouching'](_0x150c8f['end']))continue;const _0x322c40=_0xe920c['model']['schema']['getNearestSelectionRange'](_0x150c8f['end'],'forward');if(_0x322c40&&_0x322c40['isCollapsed']){const _0x36f3a7=_0x4d77ac['createRange'](_0x150c8f['start'],_0x322c40['start']);_0x36f3a7['isEqual'](_0x150c8f)||(_0x4d77ac['updateMarker'](_0x3b6846,{'range':_0x36f3a7}),_0x4a20e8=!0x0);}_0x4a20e8||(_0x4d77ac['removeMarker'](_0x3b6846),_0x4a20e8=!0x0);}return _0x4a20e8;});}}class Tt extends _0x559983{['afterInit'](){const _0x3e5909=this['editor'],_0x23fac3=_0x3e5909['plugins']['get']('TrackChangesEditing');_0x3e5909['plugins']['has']('Uploadcare')&&(_0x23fac3['enableCommand']('uploadcare'),_0x3e5909['plugins']['has']('UploadcareImageEdit')&&(_0x23fac3['enableCommand']('uploadcareImageEdit'),_0x23fac3['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x23fac3['registerBlockAttribute']('uploadcareImageId'),_0x23fac3['descriptionFactory']['registerDescriptionCallback'](_0x275b86=>{if('attribute'!=_0x275b86['type'])return;const {data:_0x4bbd3e}=_0x275b86;return _0x4bbd3e&&'uploadcareImageId'==_0x4bbd3e['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x559983{['afterInit'](){const _0x1318d0=this['editor'],_0x2e4e9b=_0x1318d0['plugins']['get']('TrackChangesEditing');_0x1318d0['plugins']['has']('UndoEditing')&&(_0x2e4e9b['enableCommand']('undo'),_0x2e4e9b['enableCommand']('redo'));}}class Ot extends _0x559983{static get['requires'](){return[At];}['afterInit'](){const _0x2de04f=this['editor'];if(!_0x2de04f['plugins']['has']('TableCaptionEditing'))return;_0x2de04f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x559983{['tableProperties'];['tableCellProperties'];constructor(_0x52d472){super(_0x52d472),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 _0x41f134=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xf3fce4 of this['tableProperties'])_0x41f134['enableCommand'](_0xf3fce4,(_0x44c4a0,_0x5a88b5)=>{const _0x462057=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xf3fce4,[_0x462057],this['tableProperties'],'tableProperties',_0x44c4a0,_0x5a88b5);});_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x41f134['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x44988b,_0x1aa11c)=>this['handleDiscardAction'](this['tableProperties'],_0x44988b,_0x1aa11c)),_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1f9fd9 of this['tableCellProperties'])_0x41f134['enableCommand'](_0x1f9fd9,(_0x5b842a,_0x407da2)=>{const _0x46d848=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1f9fd9,_0x46d848,this['tableCellProperties'],'tableCellProperties',_0x5b842a,_0x407da2);});_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x41f134['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5e02e0,_0x14f2f0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5e02e0,_0x14f2f0)),_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x41f134['descriptionFactory']['registerDescriptionCallback'](_0x1ff34e=>this['handleSuggestionDescription'](_0x1ff34e)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x5b2e41,_0x4e4b49,_0x5ed8d7,_0xb6595f,_0x10bc50,_0x26d1e7){const _0x1e067b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x26d1e7['batch'],()=>{for(const _0x5c102b of _0x4e4b49){if(this['_getSuggestion'](_0x5c102b,_0xb6595f))_0x10bc50(_0x26d1e7);else{const _0x2467e3={};for(const _0x14c385 of _0x5ed8d7){const _0x7cb274=_0x5c102b['getAttribute'](_0x14c385);void 0x0!==_0x7cb274&&(_0x2467e3[_0x14c385]=_0x7cb274);}_0x10bc50(_0x26d1e7),_0x1e067b['markBlockFormat'](_0x5c102b,{'commandParams':[_0x2467e3]},[],_0xb6595f);}}});}['handleDiscardAction'](_0x17ceab,_0x2b44d6,_0x14ad58){const _0x4c283d=_0x2b44d6[0x0]['start']['nodeAfter'],_0x15fea8=_0x14ad58['commandParams'][0x0];this['editor']['model']['change'](_0x708dd3=>{for(const _0x3f5e9c of _0x17ceab)void 0x0!==_0x15fea8[_0x3f5e9c]?_0x708dd3['setAttribute'](_0x3f5e9c,_0x15fea8[_0x3f5e9c],_0x4c283d):_0x708dd3['removeAttribute'](_0x3f5e9c,_0x4c283d);});}['handleSuggestionDescription'](_0x334bdb){if(_0x334bdb['data'])switch(_0x334bdb['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'](_0x10c081,_0x2ee6a5){const _0x243495=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x50516a of _0x243495['getSuggestions']({'skipNotAttached':!0x0})){const _0x489d1b=_0x50516a['getContainedElement']();if(_0x50516a['subType']===_0x2ee6a5&&_0x489d1b===_0x10c081)return _0x50516a;}return null;}['_registerTablePropertiesAttributes'](){const _0xab091a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x421d22=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x433b94 of _0x421d22){const _0x148ee3=_0x433b94['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xab091a['registerBlockAttribute'](_0x433b94),_0xab091a['descriptionFactory']['registerAttributeLabel'](_0x433b94,o(this['editor']['locale'],'FORMAT_'+_0x148ee3));}}}class Rt extends _0x559983{['afterInit'](){const _0x157a82=this['editor'];if(!_0x157a82['plugins']['has']('LineHeight'))return;const _0x3a7db7=_0x157a82['plugins']['get']('TrackChangesEditing'),_0x52ef3c=_0x157a82['locale'];_0x3a7db7['enableDefaultAttributesIntegration']('lineHeight'),_0x3a7db7['registerBlockAttribute']('lineHeight'),_0x3a7db7['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x52ef3c,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x559983{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x597f1a,_0x5e448f,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,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b062f){super(_0x4b062f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x300c5a,_0x2e449e,_0x2c44ef,_0x11ee52)=>{this['_model']['change'](()=>{for(const _0x4247a9 of[..._0x11ee52,..._0x2c44ef])this['_model']['markers']['has'](_0x4247a9)&&_0x4b062f['editing']['reconvertMarker'](_0x4247a9);});}),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']=_0x4b062f['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(),_0x4b062f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4b062f['config']['get']('trackChanges.trackFormatChanges'),_0x4b062f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4b062f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x4b062f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x23bca9=this['editor'],_0x56645c=(_0x4d7565,_0x114800)=>{if('attribute'!=_0x4d7565)return'ck-suggestion-marker-'+_0x4d7565;const _0xc82358=_0x114800['split']('|')[0x0];return this['_isBlockAttribute'](_0xc82358)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x23bca9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xf09776=>{const {id:_0x4b03eb,authorId:_0x734fae,type:_0x5a0539,subType:_0x4c8384}=this['_splitMarkerName'](_0xf09776['markerName']),_0x548817=['ck-suggestion-marker',_0x56645c(_0x5a0539,_0x4c8384)];let _0x7db6b5=0xbb8;return this['activeMarkers']['includes'](_0xf09776['markerName'])&&(_0x548817['push']('ck-suggestion-marker--active'),_0x7db6b5=0xbc2),'deletion'==_0x5a0539&&(_0x7db6b5+=0x5),{'classes':_0x548817,'attributes':{'data-suggestion':_0x4b03eb,'data-author-id':_0x734fae},'priority':_0x7db6b5};}}),_0x23bca9['conversion']['for']('dataDowncast')['add'](_0x4655c7=>{_0x4655c7['on']('addMarker:suggestion',(_0x47871c,_0x216b12,_0x1ece88)=>{if(!_0x1ece88['options']['showSuggestionHighlights'])return;const _0x33f679=_0x216b12['item'];if(!_0x33f679)return;const _0x3bb3da=_0x1ece88['mapper']['toViewElement'](_0x33f679);_0x23bca9['model']['schema']['isObject'](_0x33f679)&&_0x3bb3da&&!_0x3bb3da['getCustomProperty']('widget')&&_0x3bb3da['is']('containerElement')&&_0x1a071f(_0x3bb3da,_0x1ece88['writer']);},{'priority':'high'});}),_0x23bca9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x18c326,_0x182639)=>{if(!_0x182639['options']['showSuggestionHighlights'])return null;const {id:_0x2dee30,authorId:_0x59d738,type:_0xc22673,subType:_0x3e5245}=this['_splitMarkerName'](_0x18c326['markerName']);return{'classes':['ck-suggestion-marker',_0x56645c(_0xc22673,_0x3e5245)],'priority':0xbb8,'attributes':{'data-suggestion':_0x2dee30,'data-author-id':_0x59d738}};}});const _0x3b00ff=({showActiveMarkers:_0x3405bc=!0x0,isAttributeSuggestion:_0x5f44dc=!0x1}={})=>(_0x128766,_0x58a15c,_0x182d07)=>{if(!_0x58a15c['item'])return;const {id:_0x259d4d,authorId:_0x2e556c}=this['_splitMarkerName'](_0x58a15c['markerName']);if(_0x5f44dc){const _0xa88727=this['_suggestions']['get'](_0x259d4d),_0x12f7cb=this['_getAttributeKey'](_0xa88727);if(!this['_isBlockAttribute'](_0x12f7cb))return;}if(_0x58a15c['item']['is']('selection'))return void _0x182d07['consumable']['consume'](_0x58a15c['item'],_0x128766['name']);const _0x15e0bc=_0x182d07['mapper']['toViewElement'](_0x58a15c['item']);if(_0x58a15c['item']['is']('element')&&_0x23bca9['model']['schema']['isBlock'](_0x58a15c['item'])&&!_0x15e0bc['getCustomProperty']('addHighlight')){_0x182d07['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x15e0bc),_0x182d07['writer']['setAttribute']('data-suggestion',_0x259d4d,_0x15e0bc),_0x182d07['writer']['setAttribute']('data-author-id',_0x2e556c,_0x15e0bc),_0x182d07['mapper']['bindElementToMarker'](_0x15e0bc,_0x58a15c['markerName']),_0x3405bc&&(this['activeMarkers']['includes'](_0x58a15c['markerName'])?_0x182d07['writer']['addClass']('ck-suggestion-marker--active',_0x15e0bc):_0x182d07['writer']['removeClass']('ck-suggestion-marker--active',_0x15e0bc));for(const _0x513398 of _0x23bca9['model']['createRangeIn'](_0x58a15c['item'])['getItems']())_0x182d07['consumable']['consume'](_0x513398,_0x128766['name']);_0x182d07['consumable']['consume'](_0x58a15c['item'],_0x128766['name']);}};_0x23bca9['conversion']['for']('dataDowncast')['add'](_0x1fb4ec=>{_0x1fb4ec['on']('addMarker:suggestion:formatBlock',(_0x1ba42b,_0x23f210,_0x4220ac)=>{_0x4220ac['options']['showSuggestionHighlights']&&_0x3b00ff({'showActiveMarkers':!0x1})(_0x1ba42b,_0x23f210,_0x4220ac);},{'priority':'highest'});}),_0x23bca9['conversion']['for']('dataDowncast')['add'](_0x17be71=>{_0x17be71['on']('addMarker:suggestion:attribute',(_0x35f425,_0x5ed581,_0x343627)=>{_0x343627['options']['showSuggestionHighlights']&&_0x3b00ff({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x35f425,_0x5ed581,_0x343627);},{'priority':'highest'});}),_0x23bca9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1e8250,_0x312fb6)=>{if(_0x312fb6['options']['showSuggestionHighlights']){const {id:_0x374d5f,authorId:_0x675006}=this['_splitMarkerName'](_0x1e8250);return _0x1e8250['includes'](':split')||_0x1e8250['includes'](':merge')?{'group':'suggestion','name':_0x1e8250['substr'](0xb),'attributes':{'data-suggestion':_0x374d5f,'data-author-id':_0x675006}}:null;}return{'group':'suggestion','name':_0x1e8250['substr'](0xb)};}}),_0x23bca9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1ea570,{writer:_0x410278})=>{let _0xdf8d70='suggestion:'+_0x1ea570['getAttribute']('suggestion-type')+':'+_0x1ea570['getAttribute']('id');return _0x1ea570['getAttribute']('marker-count')&&(_0xdf8d70+=':'+_0x1ea570['getAttribute']('marker-count')),_0x410278['createElement']('$marker',{'data-name':_0xdf8d70});}}),_0x23bca9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x23bca9['conversion']['for']('editingDowncast')['add'](_0x12daec=>{_0x12daec['on']('addMarker:suggestion:formatBlock',_0x3b00ff(),{'priority':'high'});}),_0x23bca9['conversion']['for']('editingDowncast')['add'](_0x4b5e53=>{_0x4b5e53['on']('addMarker:suggestion:attribute',_0x3b00ff({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x23bca9['conversion']['for']('editingDowncast')['add'](_0x4031a0=>{_0x4031a0['on']('removeMarker:suggestion:formatBlock',(_0x2d82ed,_0x34cfd5,_0x2eca93)=>{const _0x27b824=_0x2eca93['mapper']['markerNameToElements'](_0x34cfd5['markerName']);if(_0x27b824){for(const _0x3df03a of _0x27b824)_0x3df03a['getCustomProperty']('addHighlight')||(_0x2eca93['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3df03a),_0x2eca93['writer']['removeAttribute']('data-suggestion',_0x3df03a),_0x2eca93['writer']['removeAttribute']('data-author-id',_0x3df03a),_0x2eca93['mapper']['unbindElementFromMarkerName'](_0x3df03a,_0x34cfd5['markerName']));}},{'priority':'high'});}),_0x23bca9['conversion']['for']('editingDowncast')['add'](_0x26b909=>{_0x26b909['on']('removeMarker:suggestion:attribute',(_0x492e9d,_0x24e9a9,_0x8b826e)=>{const _0x55bcdd=_0x8b826e['mapper']['markerNameToElements'](_0x24e9a9['markerName']);if(!_0x55bcdd)return;const {id:_0x45d054}=this['_splitMarkerName'](_0x24e9a9['markerName']),_0x267cce=this['_suggestions']['get'](_0x45d054),_0x532881=this['_getAttributeKey'](_0x267cce);if(this['_isBlockAttribute'](_0x532881)){for(const _0x29ed9b of _0x55bcdd)_0x29ed9b['getCustomProperty']('addHighlight')||(_0x8b826e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x29ed9b),_0x8b826e['writer']['removeAttribute']('data-suggestion',_0x29ed9b),_0x8b826e['writer']['removeAttribute']('data-author-id',_0x29ed9b),_0x8b826e['mapper']['unbindElementFromMarkerName'](_0x29ed9b,_0x24e9a9['markerName']));}},{'priority':'high'});}),_0x23bca9['model']['document']['registerPostFixer'](_0x4ba6c0=>{let _0xd61779=!0x1;const _0x4fbcab=Array['from'](_0x23bca9['model']['document']['differ']['getChangedMarkers']()),_0x45faa4=new Set();for(const {name:_0x5ee20f,data:_0x303cc9}of _0x4fbcab){const {group:_0x43123c,type:_0x109ac6,subType:_0x4cf9ff,id:_0x55bb09}=this['_splitMarkerName'](_0x5ee20f);if('suggestion'!==_0x43123c)continue;const _0x53d43c=this['_suggestions']['get'](_0x55bb09);if(null!=_0x303cc9['newRange']){'formatInline'==_0x109ac6&&(_0xd61779=_0xd61779||Gt(_0x303cc9['newRange'],_0x5ee20f,_0x4ba6c0,_0x23bca9['model']['schema']));const _0x4a4692='attribute'==_0x109ac6&&this['_isBlockAttribute'](_0x4cf9ff['split']('|')[0x0]);if(_0x303cc9['newRange']['isCollapsed']||'$graveyard'==_0x303cc9['newRange']['root']['rootName']||'formatBlock'==_0x109ac6&&!Jt(_0x303cc9['newRange'])||_0x4a4692&&!Jt(_0x303cc9['newRange'])||'deletion'==_0x109ac6&&!Kt(_0x303cc9['newRange']))_0x4ba6c0['removeMarker'](_0x5ee20f),_0xd61779=!0x0;else{if(!_0x53d43c||!_0x53d43c['isInContent'])continue;if(_0x303cc9['newRange']&&_0x303cc9['oldRange']&&_0x303cc9['newRange']['isEqual'](_0x303cc9['oldRange']))continue;_0x45faa4['add'](_0x53d43c);}}}return _0x45faa4['size']>0x0&&(_0xd61779=!!this['_joinWithAdjacentSuggestions'](_0x45faa4)||_0xd61779),_0xd61779;}),_0x23bca9['model']['document']['registerPostFixer'](_0x101241=>{let _0x30b477=!0x1;for(const _0x77bfc8 of _0x23bca9['model']['document']['differ']['getChanges']())if('insert'==_0x77bfc8['type'])for(const _0x36dfe5 of this['_suggestions']['values']()){if(_0x36dfe5['isMultiRange']||!_0x36dfe5['isInContent'])continue;const _0x50f72b='formatBlock'==_0x36dfe5['type'],_0x4618b8=this['_getAttributeKey'](_0x36dfe5),_0x2f0c33=_0x4618b8&&this['_isBlockAttribute'](_0x4618b8);if(!_0x50f72b&&!_0x2f0c33)continue;const _0x124d1d=_0x36dfe5['getFirstRange']();if(_0x124d1d['start']['parent']!=_0x124d1d['end']['parent']&&!_0x124d1d['end']['isAtEnd']){const _0x4e1821=_0x23bca9['model']['createPositionAt'](_0x124d1d['start']['nodeAfter'],'end'),_0x2f90a9=_0x23bca9['model']['createRange'](_0x124d1d['start'],_0x4e1821);_0x101241['updateMarker'](_0x36dfe5['getFirstMarker'](),{'range':_0x2f90a9}),_0x30b477=!0x0;}}return _0x30b477;}),_0x23bca9['model']['document']['registerPostFixer'](_0x7f28d3=>this['_processAttributeChanges'](_0x7f28d3)),_0x23bca9['model']['document']['registerPostFixer'](_0x15fb5c=>!_0x15fb5c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x15fb5c)),_0x23bca9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x23bca9['model']['document']['on']('change:data',(_0x838a48,_0x474892)=>{if(!_0x474892['isLocal']||_0x474892['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x455f18=_0x23bca9['model']['document']['differ']['getChanges']();if(0x0==_0x455f18['length'])return;const _0x115431=[],_0x5292e2=_0x455f18['filter'](_0x30bf65=>'attribute'==_0x30bf65['type']),_0x5e7f2a=_0x455f18['filter'](_0x1002b2=>'insert'==_0x1002b2['type']&&'$text'!=_0x1002b2['name']);for(const _0x5996bc of _0x5292e2)this['_isRegisteredAttribute'](_0x5996bc['attributeKey'])&&_0x115431['push']({'key':_0x5996bc['attributeKey'],'newValue':_0x5996bc['attributeNewValue'],'oldValue':_0x5996bc['attributeOldValue'],'range':Ht(_0x5996bc['range'],_0x23bca9['model'])});for(const _0x15ec31 of _0x5e7f2a){if('rename'!=_0x15ec31['action']&&'refresh'!=_0x15ec31['action'])continue;const _0x2da076=qt(_0x15ec31['position']['nodeAfter'],_0x23bca9['model']),_0x4f6316=_0x15ec31['before'];'rename'==_0x15ec31['action']&&_0x115431['push']({'key':m,'newValue':_0x15ec31['name'],'oldValue':_0x4f6316['name'],'range':_0x2da076});for(const [_0x29d76b,_0xc451ef]of _0x4f6316['attributes']){if(!this['_isRegisteredAttribute'](_0x29d76b))continue;const _0x84277b=_0x15ec31['attributes']['get'](_0x29d76b);_0xc451ef!==_0x84277b&&_0x115431['push']({'key':_0x29d76b,'newValue':_0x84277b,'oldValue':_0xc451ef,'range':_0x2da076});}for(const [_0x4fb0b1,_0xc1111f]of _0x15ec31['attributes'])this['_isRegisteredAttribute'](_0x4fb0b1)&&(_0x4f6316['attributes']['has'](_0x4fb0b1)||_0x115431['push']({'key':_0x4fb0b1,'newValue':_0xc1111f,'oldValue':null,'range':_0x2da076}));}0x0!=_0x115431['length']&&_0x23bca9['model']['enqueueChange'](_0x474892,_0x16c7bd=>{const _0x339dd1=_0x20cf05();for(const {range:_0x4cd2b9,key:_0x33f81c,oldValue:_0x4b8d4f,newValue:_0x462c39}of _0x115431)this['markAttributeChange'](_0x4cd2b9,_0x33f81c,_0x4b8d4f,_0x462c39,{'groupId':_0x339dd1});this['_reduceExistingSuggestions'](_0x16c7bd,_0x115431);});},{'priority':'lowest'}),_0x23bca9['model']['markers']['on']('update:suggestion',(_0x3bb1d6,_0x446720,_0x4c7e46)=>{if(null==_0x4c7e46){const {id:_0x200c93}=this['_splitMarkerName'](_0x446720['name']),_0x27e5de=this['_suggestions']['get'](_0x200c93);_0x27e5de&&_0x27e5de['addMarkerName'](_0x446720['name']);}}),_0x23bca9['model']['document']['on']('change:data',()=>{const _0x51e784=Array['from'](_0x23bca9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x46ec89=>'suggestion'===this['_splitMarkerName'](_0x46ec89['name'])['group']);if(0x0===_0x51e784['length'])return;_0x51e784['sort']((_0x1f845b,_0x2379a9)=>{const _0xb3271=_0x1f845b['data']['oldRange'],_0x1251dd=_0x2379a9['data']['oldRange'];return null===_0xb3271&&null===_0x1251dd?0x0:null===_0xb3271&&null!==_0x1251dd?-0x1:null!==_0xb3271&&null===_0x1251dd?0x1:_0xb3271['start']['isBefore'](_0x1251dd['start'])?-0x1:0x1;});const _0x14b2f8=new Set(),_0x560b69=new Set();for(const {name:_0x2993c4,data:_0x487dec}of _0x51e784){const {id:_0x3d09f8}=this['_splitMarkerName'](_0x2993c4);if(null===_0x487dec['oldRange']){const _0x69a6dd=this['_handleNewSuggestionMarker'](_0x2993c4);_0x560b69['add'](_0x69a6dd);}else{const _0x55db7e=this['_suggestions']['get'](_0x3d09f8);null!==_0x487dec['newRange']||_0x55db7e['isInContent']?(_0x14b2f8['add'](_0x55db7e['head']),_0x560b69['add'](_0x55db7e)):this['_removeSuggestion'](_0x55db7e);}}_0x560b69['size']>0x0&&this['_refreshSuggestionsChain'](_0x560b69);for(const _0x59587b of _0x14b2f8)this['fire']('suggestionChanged',_0x59587b);}),_0x23bca9['model']['on']('applyOperation',(_0x35a964,_0x56cb30)=>{const _0x38d2e2=_0x56cb30[0x0];if(!this['_suggestions']['size'])return;if(!_0x38d2e2['isDocumentOperation'])return;if(_0x38d2e2['batch']['isUndo']||!_0x38d2e2['batch']['isLocal'])return;let _0x490ad9,_0x4d06db;switch(_0x38d2e2['type']){case'insert':_0x490ad9=_0x23bca9['model']['createPositionAt'](_0x38d2e2['position']),_0x4d06db=_0x490ad9['getShiftedBy'](_0x38d2e2['howMany']);break;case'split':_0x490ad9=_0x23bca9['model']['createPositionAt'](_0x38d2e2['splitPosition']),_0x4d06db=_0x23bca9['model']['createPositionAt'](_0x38d2e2['moveTargetPosition']);break;case'move':_0x490ad9=_0x23bca9['model']['createPositionAt'](_0x38d2e2['targetPosition']),_0x4d06db=_0x490ad9['getShiftedBy'](_0x38d2e2['howMany']);break;default:return;}const _0x5e2848=_0x23bca9['model']['createRange'](_0x490ad9,_0x4d06db);_0x23bca9['model']['change'](()=>{for(const {suggestion:_0x19947f,meta:_0x17e615}of this['_findSuggestions'](_0x5e2848)){if(_0x19947f['isMultiRange'])continue;if('formatInline'==_0x19947f['type'])continue;const _0x3f34ff=this['_getAttributeKey'](_0x19947f);if(_0x3f34ff&&this['_isBlockAttribute'](_0x3f34ff)&&'split'!=_0x38d2e2['type'])continue;const _0x54aa49=_0x19947f['data']&&_0x19947f['data']['multipleBlocks'];('formatBlock'!=_0x19947f['type']||'split'==_0x38d2e2['type']&&!_0x54aa49)&&(_0x17e615['containsRangeInObject']||'insertion'==_0x19947f['type']&&_0x17e615['isOwn']||_0x19947f['getFirstRange']()['containsRange'](_0x5e2848)&&this['_breakSuggestionMarker'](_0x19947f,_0x490ad9,_0x4d06db));}});},{'priority':'lowest'}),_0x23bca9['model']['on']('deleteContent',(_0x58fc64,_0x492cf2)=>{const _0x3b4c3a=_0x492cf2[0x0],_0x29f5d6=_0x492cf2[0x1];if(_0x29f5d6&&_0x29f5d6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3b4c3a['isCollapsed'])return;const _0x264b8b=_0x23bca9['model']['schema'],{start:_0x42ed71,end:_0x86923b}=_0x3b4c3a['getFirstRange'](),_0x24535e=_0x42ed71['nodeAfter']&&_0x264b8b['isLimit'](_0x42ed71['nodeAfter'])?null:_0x264b8b['getNearestSelectionRange'](_0x42ed71,'forward'),_0x912057=_0x86923b['nodeBefore']&&_0x264b8b['isLimit'](_0x86923b['nodeBefore'])?null:_0x264b8b['getNearestSelectionRange'](_0x86923b,'backward'),_0x1fb918=_0x23bca9['model']['createRange'](_0x24535e?_0x24535e['start']:_0x42ed71,_0x912057?_0x912057['end']:_0x86923b);_0x23bca9['model']['change'](_0x2d7843=>{this['markDeletion'](_0x1fb918);const _0x335305=_0x23bca9['model']['schema']['getNearestSelectionRange'](_0x1fb918['start']);_0x3b4c3a['is']('documentSelection')?_0x2d7843['setSelection'](_0x335305):_0x3b4c3a['setTo'](_0x335305);}),_0x58fc64['stop']();},{'priority':_0x3a0027['normal']+0xa}),_0x23bca9['model']['on']('insertContent',(_0x2f18c3,_0x4d1122)=>{const _0x59e4c6=_0x4d1122[_0x4d1122['length']-0x1];_0x59e4c6&&_0x59e4c6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x23bca9['model']['change'](()=>{let _0xfda2b7=_0x23bca9['model']['insertContent'](_0x4d1122[0x0],_0x4d1122[0x1],_0x4d1122[0x2],{'forceDefaultExecution':!0x0});if(!_0xfda2b7)return;_0x2f18c3['return']=_0xfda2b7['clone']();const _0x35ad52=_0xfda2b7['end']['nodeBefore'],_0x46fef5=_0x23bca9['model']['schema'];_0x35ad52&&_0x46fef5['isBlock'](_0x35ad52)&&!_0x46fef5['isObject'](_0x35ad52)&&(_0xfda2b7=_0x23bca9['model']['createRange'](_0xfda2b7['start'],_0x23bca9['model']['createPositionAt'](_0x35ad52,'end'))),this['markInsertion'](_0xfda2b7);}),_0x2f18c3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x14ced0=new D(_0x23bca9,this['_suggestions']);_0x23bca9['commands']['add']('acceptSuggestion',_0x14ced0),this['enableCommand']('acceptSuggestion');const _0x284cac=new M(_0x23bca9,this['_suggestions']);_0x23bca9['commands']['add']('discardSuggestion',_0x284cac),this['enableCommand']('discardSuggestion'),_0x23bca9['commands']['add']('acceptAllSuggestions',new $(_0x23bca9,_0x14ced0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x23bca9['commands']['add']('discardAllSuggestions',new $(_0x23bca9,_0x284cac,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x23bca9['commands']['add']('acceptSelectedSuggestions',new B(_0x23bca9,_0x14ced0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x23bca9['commands']['add']('discardSelectedSuggestions',new B(_0x23bca9,_0x284cac,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x320370=_0x23bca9['plugins']['get']('CommentsRepository');this['listenTo'](_0x320370,'addComment',(_0x118770,{threadId:_0x51bf3a})=>{const _0x49a7fc=this['_suggestions']['get'](_0x51bf3a);_0x49a7fc&&_0x49a7fc['commentThread']&&0x1===_0x49a7fc['commentThread']['length']&&this['_updateSuggestionData'](_0x51bf3a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x320370,'removeComment',(_0x1a9bc4,{threadId:_0x4ae482})=>{const _0x4d806b=this['_suggestions']['get'](_0x4ae482);_0x4d806b&&_0x4d806b['commentThread']&&!_0x4d806b['commentThread']['length']&&this['_updateSuggestionData'](_0x4ae482,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1b9b0d){const _0x4f5590=_0x24c341([0x6c,0x79,0x4b,0x6b,0x32,0x58,0x75,0x74,0x78,0x55,0x61,0x53,0x33,0x6d,0x35,0x38,0x5a,0x41,0x64,0x4f,0x45,0x4a,0x50,0x36,0x69,0x65,0x6f,0x59,0x42,0x66,0x57,0x76,0x39,0x31,0x56,0x49,0x30,0x70,0x48,0x34,0x72,0x7a,0x6e,0x4d,0x68,0x52,0x77,0x67,0x62,0x6a,0x37,0x73,0x46,0x54,0x63,0x43,0x71,0x51,0x47,0x4c,0x4e,0x44]),_0x5dbf5b=0x59bb6ff8,_0x55432d=0x59bc0330^_0x5dbf5b,_0x58ce10=window[_0x24c341([0x44,0x61,0x74,0x65])][_0x24c341([0x6e,0x6f,0x77])](),_0x3b6ec9=_0x1b9b0d[_0x24c341([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x15aba8=new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1527fe=>{_0x3b6ec9[_0x24c341([0x6f,0x6e,0x63,0x65])](_0x24c341([0x72,0x65,0x61,0x64,0x79]),_0x1527fe);}),_0x160b80={[_0x24c341([0x6b,0x74,0x79])]:_0x24c341([0x45,0x43]),[_0x24c341([0x75,0x73,0x65])]:_0x24c341([0x73,0x69,0x67]),[_0x24c341([0x63,0x72,0x76])]:_0x24c341([0x50,0x2d,0x32,0x35,0x36]),[_0x24c341([0x78])]:_0x24c341([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]),[_0x24c341([0x79])]:_0x24c341([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]),[_0x24c341([0x61,0x6c,0x67])]:_0x24c341([0x45,0x53,0x32,0x35,0x36])},_0x135718=_0x3b6ec9[_0x24c341([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x24c341([0x67,0x65,0x74])](_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a2cad(){let _0x437eba,_0x3eef64=null,_0x111617=null;try{if(_0x135718==_0x24c341([0x47,0x50,0x4c]))return _0x24c341([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x437eba=_0x5d0ce2(),!_0x437eba)return _0x24c341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x437eba[_0x24c341([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x111617=_0x197b1a(_0x437eba[_0x24c341([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x437eba[_0x24c341([0x6a,0x74,0x69])])),await _0x770d51()?_0x456959()?_0x574a8c()?_0x24c341([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xac9589()?(_0x437eba[_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24c341([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3eef64=_0x34a973(_0x24c341([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x437eba[_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24c341([0x74,0x72,0x69,0x61,0x6c])&&(_0x3eef64=_0x34a973(_0x24c341([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x304eec()):_0x24c341([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x24c341([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x24c341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x24c341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x574a8c(){const _0x5efd7a=[_0x24c341([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x24c341([0x74,0x72,0x69,0x61,0x6c])][_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x437eba[_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58ce10/0x3e8:0xe10*_0x55432d;return _0x437eba[_0x24c341([0x65,0x78,0x70])]<_0x5efd7a;}function _0x456959(){const _0x29f04a=_0x437eba[_0x24c341([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x29f04a)return!0x1;if(_0x29f04a[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24c341([0x2a])))return!0x0;if(_0x29f04a[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24c341([0x54,0x43])))return!0x0;if(_0x29f04a[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24c341([0x52,0x54,0x43]))){if(_0x39bb6f())return!0x0;if(_0x28fc5f()||_0x4420d4())return!0x0;}return!0x1;}function _0xac9589(){const _0x4abc13=_0x437eba[_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4abc13||0x0==_0x4abc13[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x399d7f}=new URL(window[_0x24c341([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4abc13[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x399d7f))return!0x0;const _0x3d186a=_0x399d7f[_0x24c341([0x73,0x70,0x6c,0x69,0x74])](_0x24c341([0x2e]));return _0x4abc13[_0x24c341([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26b84f=>_0x26b84f[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24c341([0x2a])))[_0x24c341([0x6d,0x61,0x70])](_0x3f8220=>_0x3f8220[_0x24c341([0x73,0x70,0x6c,0x69,0x74])](_0x24c341([0x2e])))[_0x24c341([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e5b8d=>_0x1e5b8d[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3d186a[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24c341([0x6d,0x61,0x70])](_0x59cff1=>Array(_0x3d186a[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x59cff1[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24c341([0x66,0x69,0x6c,0x6c])](_0x59cff1[0x0]===_0x24c341([0x2a])?_0x24c341([0x2a]):'')[_0x24c341([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x59cff1))[_0x24c341([0x73,0x6f,0x6d,0x65])](_0x222a18=>_0x3d186a[_0x24c341([0x65,0x76,0x65,0x72,0x79])]((_0x188dac,_0x32310)=>_0x222a18[_0x32310]===_0x188dac||_0x222a18[_0x32310]===_0x24c341([0x2a])));}function _0x304eec(){return _0x3eef64&&_0x111617?new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x428bd8,_0x440a5f)=>{_0x3eef64[_0x24c341([0x74,0x68,0x65,0x6e])](_0x428bd8,_0x440a5f),_0x111617[_0x24c341([0x74,0x68,0x65,0x6e])](_0x42f73f=>{_0x42f73f!=_0x24c341([0x56,0x61,0x6c,0x69,0x64])&&_0x428bd8(_0x42f73f);},_0x440a5f);}):_0x3eef64||_0x111617||_0x24c341([0x56,0x61,0x6c,0x69,0x64]);}}function _0x197b1a(_0x4d5242,_0x212910){return new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2548e7=>{if(_0x385652())return _0x2548e7(_0x24c341([0x56,0x61,0x6c,0x69,0x64]));_0x4b2144(),_0x3b6ec9[_0x24c341([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x24c341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x284aaa=!0x1;const _0x36f1b7=_0x20cf05();function _0x816ede(_0x3c64f0){return!!_0x3c64f0&&(typeof _0x3c64f0===_0x24c341([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c64f0===_0x24c341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c64f0[_0x24c341([0x74,0x68,0x65,0x6e])]===_0x24c341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c64f0[_0x24c341([0x63,0x61,0x74,0x63,0x68])]===_0x24c341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x57a2b1(_0x30a75e){_0x497ff5(_0x30a75e)[_0x24c341([0x74,0x68,0x65,0x6e])](_0x56f46c=>{if(!_0x56f46c||_0x56f46c[_0x24c341([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x24c341([0x6f,0x6b]))return _0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x50cf3b(_0x4e569b(_0x36f1b7+_0x212910))!=_0x56f46c[_0x24c341([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x24c341([0x56,0x61,0x6c,0x69,0x64]);})[_0x24c341([0x74,0x68,0x65,0x6e])](_0x3c6bce=>(_0x1b0923(),_0x3c6bce),()=>{const _0x238a8c=_0x55dda7();return null==_0x238a8c?(_0x1b0923(),_0x24c341([0x56,0x61,0x6c,0x69,0x64])):_0x24c341(_0x58ce10-_0x238a8c>(0x7db7ebf8^_0x5dbf5b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x24c341([0x74,0x68,0x65,0x6e])](_0x2548e7)[_0x24c341([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2548e7(_0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3949f2=0x598d8178^_0x5dbf5b;function _0x1b0923(){const _0x403bb0=_0x24c341([0x6c,0x6c,0x63,0x74,0x2d])+_0x50cf3b(_0x4e569b(_0x4d5242)),_0x1516e=_0x1e5e12(_0x50cf3b(window[_0x24c341([0x4d,0x61,0x74,0x68])][_0x24c341([0x63,0x65,0x69,0x6c])](_0x58ce10/_0x3949f2)));window[_0x24c341([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24c341([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x403bb0,_0x1516e);}function _0x55dda7(){const _0x214e6e=_0x24c341([0x6c,0x6c,0x63,0x74,0x2d])+_0x50cf3b(_0x4e569b(_0x4d5242)),_0xe5eb1d=window[_0x24c341([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24c341([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x214e6e);return _0xe5eb1d?window[_0x24c341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e5e12(_0xe5eb1d),0x10)*_0x3949f2:null;}function _0x497ff5(_0x33cffd){return new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33c0ee,_0x220719)=>{_0x33cffd[_0x24c341([0x74,0x68,0x65,0x6e])](_0x33c0ee,_0x220719),window[_0x24c341([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x220719,0x59babb38^_0x5dbf5b);});}}_0x3b6ec9[_0x24c341([0x6f,0x6e])](_0x24c341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x159182,_0x247d76)=>{if(_0x247d76[0x0]!=_0x4d5242)return _0x2548e7(_0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x247d76[0x1]={..._0x247d76[0x1],[_0x24c341([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x36f1b7};},{[_0x24c341([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24c341([0x68,0x69,0x67,0x68])}),_0x3b6ec9[_0x24c341([0x6f,0x6e])](_0x24c341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x124ea6=>{_0x816ede(_0x124ea6[_0x24c341([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x284aaa=!0x0,_0x57a2b1(_0x124ea6[_0x24c341([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x24c341([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24c341([0x6c,0x6f,0x77])}),_0x15aba8[_0x24c341([0x74,0x68,0x65,0x6e])](()=>{_0x284aaa||_0x2548e7(_0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x385652(){return _0x3b6ec9[_0x24c341([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24c341([0x76,0x69,0x65,0x77])][_0x24c341([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x24c341([0x61,0x75,0x74,0x6f]);}function _0x4b2144(){_0x3b6ec9[_0x24c341([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24c341([0x76,0x69,0x65,0x77])][_0x24c341([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24c341([0x61,0x75,0x74,0x6f]);}}function _0x34a973(_0x408ec9){const _0x583ec6=[new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f5d71=>setTimeout(_0x2f5d71,0x59b25134^_0x5dbf5b)),_0x15aba8[_0x24c341([0x74,0x68,0x65,0x6e])](()=>new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23ec0b=>{let _0x35c87f=0x0;_0x3b6ec9[_0x24c341([0x6d,0x6f,0x64,0x65,0x6c])][_0x24c341([0x6f,0x6e])](_0x24c341([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x119f98,_0x2d079f)=>{_0x2d079f[0x0][_0x24c341([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x35c87f++,_0x35c87f==(0x59bb6e00^_0x5dbf5b)&&(_0x23ec0b(),_0x119f98[_0x24c341([0x6f,0x66,0x66])]());});}))];return window[_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24c341([0x72,0x61,0x63,0x65])](_0x583ec6)[_0x24c341([0x74,0x68,0x65,0x6e])](()=>_0x408ec9);}async function _0x1a6564(){await _0x15aba8,_0x3b6ec9[_0x24c341([0x6d,0x6f,0x64,0x65,0x6c])][_0x24c341([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x378e18,_0x3b6ec9[_0x24c341([0x6d,0x6f,0x64,0x65,0x6c])][_0x24c341([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x378e18,_0x3b6ec9[_0x24c341([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x24c341([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x39bb6f(){return _0x5edec2(_0x24c341([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1090ef(_0x24c341([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x24c341([0x73,0x74,0x61,0x74,0x65])]==_0x24c341([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x28fc5f(){return _0x5edec2(_0x24c341([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 _0x4420d4(){return _0x5edec2(_0x24c341([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x51f8ff(_0xd7fb4b){const _0x227a73=_0x40ec2b();_0x3b6ec9[_0x227a73]=_0x24c341([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xd7fb4b,_0xd7fb4b!=_0x24c341([0x56,0x61,0x6c,0x69,0x64])&&_0x1a6564();}function _0x40ec2b(){const _0x1ccede=window[_0x24c341([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x24c341([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x24c341([0x6e,0x6f,0x77])]())[_0x24c341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x24c341([0x2e]),'');let _0x1c8d76=_0x24c341([0x6c]);for(let _0x5e1575=0x0;_0x5e1575<_0x1ccede[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e1575+=0x2){let _0x451738=window[_0x24c341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ccede[_0x24c341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e1575,_0x5e1575+0x2));_0x451738>=_0x4f5590[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x451738-=_0x4f5590[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c8d76+=_0x4f5590[_0x451738];}return _0x1c8d76;}function _0x5d0ce2(){const _0x26172d=_0x135718[_0x24c341([0x73,0x70,0x6c,0x69,0x74])](_0x24c341([0x2e]));if(0x3!=_0x26172d[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e9970(_0x26172d[0x1]);function _0x4e9970(_0x17f50f){const _0x5ba533=_0xb47c02(_0x17f50f);return _0x5ba533&&_0x329639()?_0x5ba533:null;function _0x329639(){const _0x36b7b2=_0x5ba533[_0x24c341([0x6a,0x74,0x69])],_0x16b391=window[_0x24c341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36b7b2[_0x24c341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x36b7b2[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18dd13={..._0x5ba533,[_0x24c341([0x6a,0x74,0x69])]:_0x36b7b2[_0x24c341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x36b7b2[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18dd13[_0x24c341([0x76,0x63])],_0x4e569b(_0x18dd13)==_0x16b391;}}}async function _0x770d51(){let _0x49eb4f=!0x0;try{const _0x44145b=_0x135718[_0x24c341([0x73,0x70,0x6c,0x69,0x74])](_0x24c341([0x2e])),[_0x48b6af,_0x3197e6,_0x4fc7eb]=_0x44145b;return _0x4f7fd1(_0x48b6af),await _0x43c698(_0x48b6af,_0x3197e6,_0x4fc7eb),_0x49eb4f;}catch{return!0x1;}function _0x4f7fd1(_0x40b42e){const _0xfd3d63=_0xb47c02(_0x40b42e);_0xfd3d63&&_0xfd3d63[_0x24c341([0x61,0x6c,0x67])]==_0x24c341([0x45,0x53,0x32,0x35,0x36])||(_0x49eb4f=!0x1);}async function _0x43c698(_0x25ee29,_0x573de5,_0x3bd54d){const _0x581cb5=window[_0x24c341([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x24c341([0x66,0x72,0x6f,0x6d])](_0x559380(_0x3bd54d),_0x36fcb4=>_0x36fcb4[_0x24c341([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34ce4c=new window[(_0x24c341([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x24c341([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x25ee29+_0x24c341([0x2e])+_0x573de5),_0x107818=window[_0x24c341([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x24c341([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x107818)return;const _0x1d609b=await _0x107818[_0x24c341([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x24c341([0x6a,0x77,0x6b]),_0x160b80,{[_0x24c341([0x6e,0x61,0x6d,0x65])]:_0x24c341([0x45,0x43,0x44,0x53,0x41]),[_0x24c341([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x24c341([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x24c341([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x107818[_0x24c341([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x24c341([0x6e,0x61,0x6d,0x65])]:_0x24c341([0x45,0x43,0x44,0x53,0x41]),[_0x24c341([0x68,0x61,0x73,0x68])]:{[_0x24c341([0x6e,0x61,0x6d,0x65])]:_0x24c341([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d609b,_0x581cb5,_0x34ce4c)||(_0x49eb4f=!0x1);}}function _0xb47c02(_0x46e5e6){return _0x46e5e6[_0x24c341([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x24c341([0x65,0x79]))?JSON[_0x24c341([0x70,0x61,0x72,0x73,0x65])](_0x559380(_0x46e5e6)):null;}function _0x559380(_0x5ea9ef){return window[_0x24c341([0x61,0x74,0x6f,0x62])](_0x5ea9ef[_0x24c341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x24c341([0x2b]))[_0x24c341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x24c341([0x2f])));}function _0x4e569b(_0x219128){let _0x443470=0x1505;function _0x3d957c(_0x14ce22){for(let _0x2b5dcf=0x0;_0x2b5dcf<_0x14ce22[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b5dcf++){const _0x538b53=_0x14ce22[_0x24c341([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b5dcf);_0x443470=(_0x443470<<0x5)+_0x443470+_0x538b53,_0x443470&=_0x443470;}}function _0x3c7877(_0x5539d1){Array[_0x24c341([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5539d1)?_0x5539d1[_0x24c341([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3c7877):_0x5539d1&&typeof _0x5539d1==_0x24c341([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x24c341([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5539d1)[_0x24c341([0x73,0x6f,0x72,0x74])]()[_0x24c341([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd4c56c,_0x1fc15d])=>{_0x3d957c(_0xd4c56c),_0x3c7877(_0x1fc15d);}):_0x3d957c(window[_0x24c341([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5539d1));}return _0x3c7877(_0x219128),_0x443470>>>0x0;}function _0x50cf3b(_0x54dc82){return _0x54dc82[_0x24c341([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x24c341([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x24c341([0x30]));}function _0x1e5e12(_0x2ebc07){return _0x2ebc07[_0x24c341([0x73,0x70,0x6c,0x69,0x74])]('')[_0x24c341([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x24c341([0x6a,0x6f,0x69,0x6e])]('');}function _0x5edec2(_0x244efb){return _0x3b6ec9[_0x24c341([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x24c341([0x68,0x61,0x73])](_0x244efb);}function _0x1090ef(_0x2dc17b){return _0x3b6ec9[_0x24c341([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x24c341([0x67,0x65,0x74])](_0x2dc17b);}function _0x378e18(){}function _0x24c341(_0x508586){return _0x508586['map'](_0x295ee4=>String['fromCharCode'](_0x295ee4))['join']('');}_0x51f8ff(await _0x3a2cad());}(this);}set['adapter'](_0x4a5ed8){if(this['_adapter'])throw new _0x346a74('track-changes-adapter-already-set',this);this['_adapter']=_0x4a5ed8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x42acdd=!0x1,toJSON:_0x52e880=!0x1}={}){const _0x1c0216=[];for(const _0x27a263 of this['_suggestions']['values']())_0x42acdd&&!_0x27a263['isInContent']||_0x1c0216['push'](_0x27a263);return _0x52e880?_0x1c0216['map'](_0x47463f=>_0x47463f['toJSON']()):_0x1c0216;}['getSuggestion'](_0x1ef5c0){const _0x4f0b72=this['_suggestions']['get'](_0x1ef5c0);if(!_0x4f0b72)throw new _0x346a74('track-changes-suggestion-not-found',this);return _0x4f0b72;}['hasSuggestion'](_0x39d5c1){return this['_suggestions']['has'](_0x39d5c1);}['addSuggestionData'](_0xd601a2){const {authorId:_0x3f7b62,id:_0x27d0ce,originalSuggestionId:_0x7da85b,attributes:_0x192f43}=_0xd601a2,[_0x58379c,_0x6cc3fc]=_0xd601a2['type']['split'](':'),_0x2b6e89=this['_suggestions']['get'](_0x27d0ce)||this['_createSuggestion'](_0x58379c,_0x6cc3fc,_0x27d0ce,_0x3f7b62,_0x192f43,_0x7da85b);if(this['_addThreadToSuggestion'](_0x2b6e89),this['_checkSuggestionCorrectness'](_0x2b6e89,_0x58379c,_0x6cc3fc||null,_0x3f7b62),_0x2b6e89['createdAt']=_0xd601a2['createdAt'],_0x2b6e89['_isDataLoaded']=!0x0,_0x192f43&&_0x192f43['@external']){const _0x10c6b2=_0x192f43['@external'],_0x3cd7f4=this['_getExternalAuthor'](_0x10c6b2['authorName']);_0x2b6e89['authoredAt']=_0x10c6b2['createdAt'],_0x2b6e89['author']=_0x3cd7f4,_0x2b6e89['isExternal']=!0x0;}else _0x2b6e89['authoredAt']=_0xd601a2['createdAt'];switch(_0xd601a2['data']&&(_0x2b6e89['data']=_0xd601a2['data']),_0xd601a2['attributes']&&(_0x2b6e89['attributes']=_0xd601a2['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2b6e89['_saved']=!0x0),this['_suggestionState']['get'](_0x2b6e89)){case'notReady':this['_suggestionState']['set'](_0x2b6e89,'dataReady');break;case'markerReady':_0x2b6e89['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2b6e89])),this['_refreshSuggestionsChain'](new Set([_0x2b6e89])),this['_suggestionState']['set'](_0x2b6e89,'ready'),this['fire']('suggestionLoaded',_0x2b6e89)):this['_suggestionState']['set'](_0x2b6e89,'removed');}return _0x2b6e89;}['acceptSuggestion'](_0x5995cb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4c2461 of _0x5995cb['getAllAdjacentSuggestions']())_0x4c2461['accept']();});});}['discardSuggestion'](_0x5b0a4d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x50f61e of _0x5b0a4d['getAllAdjacentSuggestions']())_0x50f61e['discard']();});});}['enableCommand'](_0x3ddb3e,_0x4e9817){const _0x17217c=this['editor']['commands']['get'](_0x3ddb3e);if(!_0x17217c)throw new _0x346a74('track-changes-command-not-found',this,{'commandName':_0x3ddb3e});if(this['_enabledCommands']['has'](_0x17217c))throw new _0x346a74('track-changes-enable-command-twice',this,{'commandName':_0x3ddb3e});this['_enabledCommands']['add'](_0x17217c),_0x4e9817&&_0x17217c['on']('execute',(_0x2024e4,_0x475612)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x475612['length']>0x0&&_0x475612[_0x475612['length']-0x1]&&_0x475612[_0x475612['length']-0x1]['forceDefaultExecution']?_0x475612['pop']():(_0x2024e4['return']=_0x4e9817((..._0x546efd)=>_0x17217c['execute'](..._0x546efd,{'forceDefaultExecution':!0x0}),..._0x475612),_0x2024e4['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x212253){let _0x173322,_0x9d6393;const _0x51c4bd=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x173322=_0x212253();}catch(_0x2291bb){_0x9d6393=_0x2291bb;}return _0x51c4bd||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x9d6393&&_0x346a74['rethrowUnexpectedError'](_0x9d6393,this),_0x173322;}['markInsertion'](_0x1dbd5d,_0xea407c=null,_0x1adea4={}){if(_0x1dbd5d['isCollapsed'])return null;const _0x3e2184=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1adea4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x377f30,meta:_0x3d2ea9}of this['_findSuggestions'](_0x1dbd5d,'insertion'))if(_0x3d2ea9['isOwn']){if(!_0x3d2ea9['isNextTo']){if(_0x3d2ea9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x377f30,_0x1adea4))continue;return _0x377f30;}if(Qt(_0x377f30,_0x1adea4))return _0x377f30;this['_breakSuggestionMarker'](_0x377f30,_0x1dbd5d['start'],_0x1dbd5d['end']);break;}if(_0xea407c==_0x377f30['subType']&&Qt(_0x377f30,_0x1adea4)){const _0x51af6f=_0x377f30['getFirstRange']();return _0x51af6f['start']['isEqual'](_0x1dbd5d['end'])?this['_setSuggestionRange'](_0x377f30,this['_model']['createRange'](_0x1dbd5d['start'],_0x51af6f['end'])):this['_setSuggestionRange'](_0x377f30,this['_model']['createRange'](_0x51af6f['start'],_0x1dbd5d['end'])),_0x377f30;}}const _0x5162b0=_0x20cf05(),_0x495d98=_0x3e2184['id'],_0x23bdfc=_0xea407c?'insertion:'+_0xea407c:'insertion',_0x2e9d0f=this['_setSuggestionData']({'id':_0x5162b0,'type':_0x23bdfc,'createdAt':new Date(),'authorId':_0x495d98,'attributes':_0x1adea4});return this['_addSuggestionMarker'](_0x23bdfc,_0x5162b0,_0x495d98,_0x1dbd5d),_0x2e9d0f;}['markMultiRangeInsertion'](_0x367bde,_0x2f76cf='multi',_0xc01d3a={}){const _0x5274c6=this['editor']['plugins']['get']('Users')['me'],_0x43a906=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2f76cf,'join');this['_trackingSessionId']&&(_0xc01d3a['trackingSessionId']=this['_trackingSessionId']);for(const _0x39c486 of this['getSuggestions']())if(_0x39c486['author']['id']==_0x5274c6['id']&&'insertion'==_0x39c486['type']&&_0x39c486['subType']==_0x2f76cf&&Qt(_0x39c486,_0xc01d3a)&&(_0x43a906(_0x39c486['getRanges'](),_0x367bde)||_0x43a906(_0x367bde,_0x39c486['getRanges']()))){for(const _0x4dc499 of _0x367bde)_0x39c486['addRange'](_0x4dc499);return _0x39c486;}for(const {suggestion:_0x1f74f8,meta:_0x2c19fe}of this['_findSuggestions'](_0x367bde,'insertion')){if(!_0x2c19fe['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2c19fe['containsRangeInObject'])continue;if(!Qt(_0x1f74f8,_0xc01d3a))continue;let _0x36d688=!0x0;for(const _0x42038d of _0x1f74f8['getRanges']())for(const _0x33ea64 of _0x367bde)if(!_0x42038d['containsRange'](_0x33ea64)){_0x36d688=!0x1;break;}if(_0x36d688)return _0x1f74f8;}const _0x322f1f=_0x20cf05(),_0x27e47c=_0x5274c6['id'],_0xd1eec='insertion:'+_0x2f76cf,_0x41b3d7=this['_setSuggestionData']({'id':_0x322f1f,'type':_0xd1eec,'createdAt':new Date(),'authorId':_0x27e47c,'attributes':_0xc01d3a});for(const _0x3194da of _0x367bde)this['_addSuggestionMarker'](_0xd1eec,_0x322f1f,_0x27e47c,_0x3194da,T['getMultiRangeId']());return _0x41b3d7;}['markInlineFormat'](_0x49a499,_0x4f9e99,_0x457905=null,_0x27a6b8={}){if(_0x457905=_0x457905||Lt(_0x4f9e99),_0x49a499['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x27a6b8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x307cb9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x457905,'accept');return this['forceDefaultExecution'](()=>_0x307cb9([_0x49a499],_0x4f9e99,_0x27a6b8)),null;}const _0x4e5f4d=this['editor']['plugins']['get']('Users')['me'],_0x309363=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3d0d52,meta:_0x24f640}of this['_findSuggestions'](_0x49a499,'insertion'))_0x24f640['isOwn']&&!_0x24f640['isInsideObject']&&_0x309363['push'](..._0x3d0d52['getRanges']());}const _0x14a84a=function(_0x4b03a8,_0x5f3877){const _0x574f37=[];for(const _0x1aedbb of _0x5f3877){const _0x438054=_0x4b03a8['getIntersection'](_0x1aedbb);_0x438054&&_0x574f37['push'](_0x438054);}return _0x574f37;}(_0x49a499,_0x309363),_0x4c3d4d=function(_0x4f84ac,_0xf2ba59){const _0x4fdfcd=[_0x4f84ac];for(const _0x5957cd of _0xf2ba59){let _0xc05db8=0x0;for(;_0xc05db8<_0x4fdfcd['length'];){const _0x37b5b6=_0x4fdfcd[_0xc05db8]['getDifference'](_0x5957cd);_0x4fdfcd['splice'](_0xc05db8,0x1,..._0x37b5b6),_0xc05db8+=_0x37b5b6['length'];}}return _0x4fdfcd;}(_0x49a499,_0x309363);_0x14a84a['length']&&this['_model']['change'](()=>{for(const _0xa633db of _0x14a84a){const _0x22680c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x457905,'accept');this['forceDefaultExecution'](()=>_0x22680c([_0xa633db],_0x4f9e99,_0x27a6b8));}});for(const _0x2f47cb of _0x4c3d4d){let _0x437258=null,_0x1cd742=_0x2f47cb['start'],_0x108954=_0x2f47cb['end'];for(const {suggestion:_0x16e855,meta:_0x3cdcde}of this['_findSuggestions'](_0x2f47cb,'formatInline')){if(!_0x3cdcde['isOwn'])continue;if(_0x16e855['subType']!=_0x457905)continue;if(!Qt(_0x16e855,_0x27a6b8))continue;const _0x1f4c18=_0x16e855['getFirstRange']();if(_0x1f4c18['containsRange'](_0x2f47cb,!0x0))return null;_0x1cd742=_0x1cd742['isBefore'](_0x1f4c18['start'])?_0x1cd742:_0x1f4c18['start'],_0x108954=_0x108954['isAfter'](_0x1f4c18['end'])?_0x108954:_0x1f4c18['end'],_0x437258?_0x1f4c18['start']['isBefore'](_0x437258['getFirstRange']()['start'])?(_0x437258['removeMarkers'](),_0x437258=_0x16e855):_0x16e855['removeMarkers']():_0x437258=_0x16e855;}const _0x162dd7=this['_model']['createRange'](_0x1cd742,_0x108954);if(_0x437258)this['_setSuggestionRange'](_0x437258,_0x162dd7);else{const _0x4b6195=_0x20cf05(),_0x32f0cc=_0x4e5f4d['id'];this['_setSuggestionData']({'id':_0x4b6195,'type':'formatInline:'+_0x457905,'data':_0x4f9e99,'createdAt':new Date(),'authorId':_0x32f0cc,'attributes':_0x27a6b8}),this['_addSuggestionMarker']('formatInline:'+_0x457905,_0x4b6195,_0x32f0cc,_0x162dd7);}}return null;}['markBlockFormat'](_0x55f9c7,_0x41c5cc,_0x218a64=[],_0x17bfae=null,_0x59ad7d={}){_0x41c5cc['formatGroupId']||(_0x41c5cc['formatGroupId']=_0x41c5cc['commandName']),_0x41c5cc['multipleBlocks']=_0x55f9c7['is']('range'),_0x17bfae=_0x17bfae||Lt(_0x41c5cc);const _0x40d85f=_0x218a64['map'](_0x5e92e4=>qt(_0x5e92e4,this['_model'])),_0x2f89e0=_0x55f9c7['is']('range')?_0x55f9c7:qt(_0x55f9c7,this['_model']);if(this['_trackingSessionId']&&(_0x59ad7d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c8299=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17bfae,'accept');return this['forceDefaultExecution'](()=>_0x2c8299([_0x2f89e0],_0x41c5cc,_0x59ad7d)),null;}_0x40d85f['push'](_0x2f89e0);let _0x5e81df=!0x0;for(const _0x47a4c8 of _0x40d85f)if(!this['_rangeIsInLocalUserInsertion'](_0x47a4c8)){_0x5e81df=!0x1;break;}if(_0x5e81df&&'always'!==this['_trackFormatChanges']){const _0xada132=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17bfae,'accept');return this['forceDefaultExecution'](()=>_0xada132([_0x2f89e0],_0x41c5cc,_0x59ad7d)),null;}let _0x22e31c=null,_0x7c8810=_0x2f89e0['start'],_0x3280ac=_0x2f89e0['end'];for(const {suggestion:_0x513e3f,meta:_0xd0cea9}of this['_findSuggestions'](_0x2f89e0,'formatBlock')){if(!_0xd0cea9['isOwn'])continue;if(_0xd0cea9['isNextTo']||_0xd0cea9['containsRangeInObject']||_0xd0cea9['isInsideObject'])continue;if(_0x513e3f['data']['formatGroupId']!=_0x41c5cc['formatGroupId'])continue;if(!Qt(_0x513e3f,_0x59ad7d))continue;const _0x4886e3=_0x513e3f['getFirstRange']();if(_0x513e3f['subType']==_0x17bfae){if(_0x4886e3['containsRange'](_0x2f89e0,!0x0))return null;_0x7c8810=_0x7c8810['isBefore'](_0x4886e3['start'])?_0x7c8810:_0x4886e3['start'],_0x3280ac=_0x3280ac['isAfter'](_0x4886e3['end'])?_0x3280ac:_0x4886e3['end'],_0x22e31c?_0x4886e3['start']['isBefore'](_0x22e31c['getFirstRange']()['start'])?(_0x22e31c['removeMarkers'](),_0x22e31c=_0x513e3f):_0x513e3f['removeMarkers']():_0x22e31c=_0x513e3f;}else{const _0xb0823d=_0x2f89e0['getIntersection'](_0x4886e3);this['_cutOutSuggestionMarker'](_0x513e3f,_0xb0823d);}}const _0x19b3e5=this['editor']['plugins']['get']('Users')['me'],_0x5e3613=_0x20cf05(),_0x79c4a0=_0x19b3e5['id'];if(_0x22e31c)return this['_setSuggestionRange'](_0x22e31c,this['_model']['createRange'](_0x7c8810,_0x3280ac)),_0x22e31c;{const _0x111e90=this['_setSuggestionData']({'id':_0x5e3613,'type':'formatBlock:'+_0x17bfae,'data':_0x41c5cc,'createdAt':new Date(),'authorId':_0x79c4a0,'attributes':_0x59ad7d});return this['_addSuggestionMarker']('formatBlock:'+_0x17bfae,_0x5e3613,_0x79c4a0,this['_model']['createRange'](_0x7c8810,_0x3280ac)),_0x111e90;}}['markMultiRangeBlockFormat'](_0x5a81c4,_0x3defb4,_0x406ab4=[],_0x3198c5=null,_0x328b87={}){_0x3defb4['formatGroupId']||(_0x3defb4['formatGroupId']=_0x3defb4['commandName']);const _0x184efd=_0x5a81c4[0x0];_0x3defb4['multipleBlocks']=_0x184efd['is']('range'),_0x3198c5=_0x3198c5||Lt(_0x3defb4);const _0x40f7d4=_0x406ab4['map'](_0x7a02ac=>qt(_0x7a02ac,this['_model'])),_0x424a4d=_0x184efd['is']('range')?_0x5a81c4:_0x5a81c4['map'](_0x30c3a1=>qt(_0x30c3a1,this['_model']));if(this['_trackingSessionId']&&(_0x328b87['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x557f9a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3198c5,'accept');return this['forceDefaultExecution'](()=>_0x557f9a(_0x424a4d,_0x3defb4,_0x328b87)),null;}_0x40f7d4['push'](..._0x424a4d);let _0x492582=!0x0;for(const _0x128962 of _0x40f7d4)if(!this['_rangeIsInLocalUserInsertion'](_0x128962)){_0x492582=!0x1;break;}if(_0x492582&&'always'!==this['_trackFormatChanges']){const _0x15cae2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3198c5,'accept');return this['forceDefaultExecution'](()=>_0x15cae2(_0x424a4d,_0x3defb4,_0x328b87)),null;}const _0x4deaaf=this['editor']['plugins']['get']('Users')['me'];for(const _0x5bf165 of this['getSuggestions']()){const _0x49b92f=_0x5bf165['data'];if(_0x5bf165['author']['id']!=_0x4deaaf['id'])continue;if('formatBlock'!=_0x5bf165['type']||_0x49b92f['formatGroupId']!=_0x3defb4['formatGroupId'])continue;if(!Qt(_0x5bf165,_0x328b87))continue;const _0x177dbf=_0x5bf165['subType']==_0x3198c5;for(let _0x3afb1e=0x0;_0x3afb1e<_0x424a4d['length'];_0x3afb1e++){const _0x5a8e5c=_0x424a4d[_0x3afb1e];for(const _0x218347 of _0x5bf165['getMarkers']()){const _0x4a5ba9=_0x218347['getRange']();if(_0x5a8e5c['isEqual'](_0x4a5ba9)){_0x177dbf?(_0x424a4d['splice'](_0x3afb1e,0x1),_0x3afb1e--):_0x5bf165['removeMarker'](_0x218347['name']);break;}}}}if(0x0==_0x424a4d['length'])return null;const _0x22b382=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3198c5,'join');for(const _0xadbfd6 of this['getSuggestions']()){const _0x682e5f=_0xadbfd6['data'];if(_0xadbfd6['author']['id']==_0x4deaaf['id']&&('formatBlock'==_0xadbfd6['type']&&_0x682e5f['formatGroupId']==_0x3defb4['formatGroupId']&&_0xadbfd6['subType']==_0x3198c5&&Qt(_0xadbfd6,_0x328b87)&&(_0x22b382(_0xadbfd6['getRanges'](),_0x424a4d)||_0x22b382(_0x424a4d,_0xadbfd6['getRanges']())))){for(const _0x431d0b of _0x424a4d)_0xadbfd6['addRange'](_0x431d0b);return _0xadbfd6;}}const _0x59fbf2=_0x20cf05(),_0xd2f487=_0x4deaaf['id'],_0x899bd9='formatBlock:'+_0x3198c5,_0x199c46=this['_setSuggestionData']({'id':_0x59fbf2,'type':_0x899bd9,'data':_0x3defb4,'createdAt':new Date(),'authorId':_0xd2f487,'attributes':_0x328b87});for(const _0x20718a of _0x424a4d)this['_addSuggestionMarker'](_0x899bd9,_0x59fbf2,_0xd2f487,_0x20718a,T['getMultiRangeId']());return _0x199c46;}['markDeletion'](_0x5d5607,_0x2cd1b5=null,_0x47fd60={}){if(_0x5d5607['isCollapsed'])return null;const _0x21fb32=this['editor']['plugins']['get']('Users')['me'],_0x4deedb=new _0x334b1a(_0x5d5607['start'],_0x5d5607['end']);this['_trackingSessionId']&&(_0x47fd60['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x433aaf,meta:_0x464fc0}of this['_findSuggestions'](_0x4deedb,'insertion'))if(_0x464fc0['isOwn']&&!_0x464fc0['isNextTo']){if(_0x433aaf['isMultiRange']){const _0x4d70cd=_0x433aaf['getRanges']()['filter'](_0x5f2279=>'$graveyard'!=_0x5f2279['root']['rootName']);_0x4d70cd['every'](_0x2d9897=>_0x4deedb['containsRange'](_0x2d9897,!0x0))&&_0x433aaf['discard']();if(_0x4d70cd['some'](_0x7c2779=>_0x7c2779['containsRange'](_0x4deedb,!0x0))){const _0x5526e6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2cd1b5,'accept');return this['forceDefaultExecution'](()=>_0x5526e6([_0x4deedb],null,_0x47fd60)),null;}}else{const _0x209f80=_0x4deedb['getIntersection'](_0x433aaf['getFirstRange']());null!==_0x209f80&&_0x433aaf['_onDiscard']([_0x209f80],null,_0x47fd60);}}if(_0x4deedb['detach'](),_0x4deedb['isCollapsed']||'$graveyard'==_0x4deedb['root']['rootName'])return null;let _0x6b7240=null,_0x312623=_0x4deedb['start'],_0x338f5d=_0x4deedb['end'];const _0x240abf=this['_findSuggestions'](_0x4deedb,'deletion');for(const {suggestion:_0x54297e,meta:_0x29c6c1}of _0x240abf){const _0x324966=this['_model']['createRange'](_0x312623,_0x338f5d);if(_0x29c6c1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x29c6c1['containsRangeInObject']&&!_0x29c6c1['isInsideObject'])){if(_0x54297e['isMultiRange']){if(!Qt(_0x54297e,_0x47fd60))continue;let _0x37f4ad=!0x0;for(const _0x5c5104 of _0x54297e['getRanges']()){if(_0x5c5104['containsRange'](_0x324966,!0x0))return _0x54297e;_0x324966['containsRange'](_0x5c5104)||(_0x37f4ad=!0x1);}_0x37f4ad&&_0x54297e['discard']();}else{const _0x5b2374=_0x54297e['getFirstRange']();if(_0x5b2374['containsRange'](_0x324966,!0x0))return _0x54297e;if(!Qt(_0x54297e,_0x47fd60)){_0x324966['containsRange'](_0x5b2374)?_0x54297e['removeMarkers']():_0x5b2374['containsPosition'](_0x312623)?_0x312623=_0x5b2374['end']:_0x5b2374['containsPosition'](_0x338f5d)&&(_0x338f5d=_0x5b2374['start']);continue;}_0x312623=_0x312623['isBefore'](_0x5b2374['start'])?_0x312623:_0x5b2374['start'],_0x338f5d=_0x338f5d['isAfter'](_0x5b2374['end'])?_0x338f5d:_0x5b2374['end'],_0x47fd60=Object['assign']({},_0x54297e['attributes']),_0x6b7240?_0x5b2374['start']['isBefore'](_0x6b7240['getFirstRange']()['start'])?(_0x6b7240['removeMarkers'](),_0x6b7240=_0x54297e):_0x54297e['removeMarkers']():_0x6b7240=_0x54297e;}}}if(_0x6b7240)return this['_setSuggestionRange'](_0x6b7240,this['_model']['createRange'](_0x312623,_0x338f5d)),_0x6b7240;{const _0x490147=_0x20cf05(),_0x4dc608=this['_model']['createRange'](_0x312623,_0x338f5d),_0x1779da=_0x21fb32['id'],_0xf9c4d0=_0x2cd1b5?'deletion:'+_0x2cd1b5:'deletion',_0x36a987=this['_setSuggestionData']({'id':_0x490147,'type':_0xf9c4d0,'createdAt':new Date(),'authorId':_0x1779da,'attributes':_0x47fd60});return this['_addSuggestionMarker'](_0xf9c4d0,_0x490147,_0x1779da,_0x4dc608),_0x36a987;}}['markMultiRangeDeletion'](_0x41b71f,_0x459cde='multi',_0x32d911={}){const _0x1da170=this['editor']['plugins']['get']('Users')['me'],_0x210981=_0x41b71f['map'](_0x12d14d=>new _0x334b1a(_0x12d14d['start'],_0x12d14d['end'])),_0xa1c4b9=new Set();this['_trackingSessionId']&&(_0x32d911['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5b2415,meta:_0x28e770}of this['_findSuggestions'](_0x210981,'insertion'))_0x28e770['isOwn']&&!_0x28e770['isNextTo']&&_0xa1c4b9['add'](_0x5b2415);for(const _0xf2ab2f of _0xa1c4b9)if(_0xf2ab2f['isMultiRange']){const _0x7a7f8=_0xf2ab2f['getRanges']();(!_0xf2ab2f['attributes']||!_0xf2ab2f['attributes']['skipNestingCheck'])&&(_0x7a7f8['every'](_0x581d4f=>_0x210981['some'](_0x61f212=>_0x61f212['containsRange'](_0x581d4f,!0x0)))&&_0xf2ab2f['discard']());if(_0x210981['every'](_0x5a0675=>_0x7a7f8['some'](_0x1fd1bd=>_0x1fd1bd['containsRange'](_0x5a0675,!0x0)))){const _0x3f782b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x459cde,'accept');return this['forceDefaultExecution'](()=>_0x3f782b(_0x41b71f,null,_0x32d911)),null;}}else{const _0xd15674=_0xf2ab2f['getFirstRange']();_0x210981['some'](_0x4588b3=>_0x4588b3['containsRange'](_0xd15674,!0x0))&&_0xf2ab2f['discard']();if(_0x210981['every'](_0x51ad7f=>_0xd15674['containsRange'](_0x51ad7f,!0x0))){const _0x45b006=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x459cde,'accept');return this['forceDefaultExecution'](()=>_0x45b006(_0x210981,null,_0x32d911)),null;}}const _0x103e0c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x459cde,'join');let _0x11d36d=null;for(const _0x5b4de5 of this['getSuggestions']())if(_0x5b4de5['author']['id']==_0x1da170['id']&&_0x5b4de5['isInContent']&&'deletion'==_0x5b4de5['type']&&_0x5b4de5['subType']==_0x459cde&&Qt(_0x5b4de5,_0x32d911)&&(_0x103e0c(_0x5b4de5['getRanges'](),_0x210981)||_0x103e0c(_0x210981,_0x5b4de5['getRanges']()))){if(_0x11d36d){if(_0x5b4de5['commentThread']&&_0x5b4de5['commentThread']['length'])continue;for(const _0x215e18 of _0x5b4de5['getRanges']())_0x11d36d['isIntersectingWithRange'](_0x215e18)||_0x11d36d['addRange'](_0x215e18);_0x5b4de5['removeMarkers']();}else{_0x11d36d=_0x5b4de5;for(const _0x554b88 of _0x210981)_0x5b4de5['isIntersectingWithRange'](_0x554b88)||_0x5b4de5['addRange'](_0x554b88);}}if(_0x11d36d)return _0x11d36d;_0xa1c4b9['clear']();for(const {suggestion:_0x3bff2b,meta:_0x27e919}of this['_findSuggestions'](_0x210981,'deletion'))_0x27e919['isOwn']&&(this['_mergeNestedSuggestions']||!_0x27e919['containsRangeInObject']&&!_0x27e919['isInsideObject'])&&Qt(_0x3bff2b,_0x32d911)&&_0xa1c4b9['add'](_0x3bff2b);for(const _0x8d2527 of _0xa1c4b9){const _0x580dec=_0x8d2527['getRanges']();if(!_0x32d911||!_0x32d911['skipNestingCheck']){if(_0x210981['every'](_0x2dd46c=>_0x580dec['some'](_0x157109=>_0x157109['containsRange'](_0x2dd46c,!0x0))))return _0x8d2527;}(!_0x8d2527['attributes']||!_0x8d2527['attributes']['skipNestingCheck'])&&(_0x580dec['every'](_0x2e374b=>_0x210981['some'](_0x5ccbed=>_0x5ccbed['containsRange'](_0x2e374b,!0x0)))&&_0x8d2527['discard']());}const _0x1c52da=_0x20cf05(),_0x17e28f=_0x1da170['id'],_0x3c7281='deletion:'+_0x459cde,_0x202993=this['_setSuggestionData']({'id':_0x1c52da,'type':_0x3c7281,'createdAt':new Date(),'authorId':_0x17e28f,'attributes':_0x32d911});for(const _0x2d8fa3 of _0x210981)_0x2d8fa3['detach'](),_0x2d8fa3['isCollapsed']||'$graveyard'==_0x2d8fa3['root']['rootName']||this['_addSuggestionMarker'](_0x3c7281,_0x1c52da,_0x17e28f,_0x2d8fa3,T['getMultiRangeId']());return _0x202993;}['markAttributeChange'](_0x29541e,_0x331180,_0x514f53,_0x470510,_0x521176){if(_0x29541e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1e38c1=this['editor']['plugins']['get']('Users')['me']['id'],_0x42ad6a=Array['from'](this['_suggestions']['values']())['filter'](_0x41db17=>'attribute'==_0x41db17['type']&&_0x41db17['data']['key']==_0x331180&&_0x41db17['isIntersectingWithRange'](_0x29541e));if(this['_trackingSessionId']&&(_0x521176['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4e69da=this['_findSuggestions'](_0x29541e,'insertion')['filter'](({meta:_0x11d491})=>_0x11d491['isOwn']&&!_0x11d491['isInsideObject']&&!_0x11d491['isNextTo'])['map'](({suggestion:_0x29350a})=>_0x29350a);_0x42ad6a['unshift'](..._0x4e69da);}const _0x42f402=new Map([[_0x29541e,_0x514f53]]);for(const _0x415bbc of _0x42ad6a){const _0x49faf6='attribute'==_0x415bbc['type']?_0x415bbc['data']['oldValue']:void 0x0,_0x2d6865=_0x415bbc['getFirstRange'](),_0x3c0a26=Array['from'](_0x42f402['keys']())['find'](_0x16e535=>_0x16e535['isIntersecting'](_0x2d6865));if(!_0x3c0a26)continue;const _0x3e4ec4=_0x3c0a26['getDifference'](_0x2d6865);this['_isBlockAttribute'](_0x331180)&&'insertion'==_0x415bbc['type']&&0x0!=_0x3e4ec4['length']||(_0x42f402['delete'](_0x3c0a26),_0x3e4ec4['forEach'](_0x233598=>{_0x42f402['set'](_0x233598,_0x514f53);}),'insertion'!=_0x415bbc['type']&&_0x49faf6!=_0x470510&&_0x42f402['set'](_0x3c0a26['getIntersection'](_0x2d6865),_0x49faf6));}const _0x5ab0a4=[];for(const [_0x1c0e3e,_0x5ae741]of _0x42f402){const _0x59e52b=_0x20cf05(),_0x5c6b1e={'key':_0x331180,'oldValue':_0x5ae741,'newValue':_0x470510};_0x331180['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':_0x331180});const _0x110ec4=('attribute:'+(_0x331180+'|'+Lt({'newValue':_0x470510})))['substring'](0x0,0x3c),_0x50764f=this['_setSuggestionData']({'id':_0x59e52b,'type':_0x110ec4,'data':_0x5c6b1e,'createdAt':new Date(),'authorId':_0x1e38c1,'attributes':_0x521176});_0x5ab0a4['push'](_0x50764f),this['_addSuggestionMarker'](_0x110ec4,_0x59e52b,_0x1e38c1,_0x1c0e3e);}return _0x5ab0a4;}['enableDefaultAttributesIntegration'](_0x3f2054){this['enableCommand'](_0x3f2054,(_0x7ae829,..._0xead809)=>{this['recordAttributeChanges'](()=>{_0x7ae829(..._0xead809);});});}['registerBlockAttribute'](_0x17c9ee){this['_blockAttributeKeys']['add'](_0x17c9ee);}['registerInlineAttribute'](_0x2d5e5d){this['_inlineAttributeKeys']['add'](_0x2d5e5d);}['startTrackingSession'](_0x54c578){return this['_trackingSessionId']=void 0x0!==_0x54c578?_0x54c578:_0x20cf05(),this['_trackingSessionId'];}['_getAttributeKey'](_0x412863){return'attribute'==_0x412863['type']?_0x412863['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x46e37d,_0x3ede74){const _0xc02f6b=_0x46e37d['getFirstMarker']();this['_model']['change'](_0x2c4ef4=>{_0x2c4ef4['updateMarker'](_0xc02f6b,{'range':_0x3ede74});});}['_addThreadToSuggestion'](_0x24a4fb){const _0x255765=_0x24a4fb['id'],_0x229704=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x255765)||this['_commentsRepository']['addCommentThread']({'channelId':_0x229704,'threadId':_0x255765,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x274582=this['_commentsRepository']['getCommentThread'](_0x255765);_0x274582['unbind']('isRemovable'),_0x274582['isRemovable']=!0x1,_0x24a4fb['commentThread']=_0x274582;}['_checkSuggestionCorrectness'](_0x40b556,_0x1ded28,_0x3dd745,_0xe74ca1){if(_0x40b556['type']!=_0x1ded28||_0x40b556['subType']!=_0x3dd745||_0x40b556['creator']['id']!=_0xe74ca1)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x346a74('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x268099,_0x5ae248){const _0x206b3a=_0x268099['getFirstRange']();if(_0x5ae248['isEqual'](_0x206b3a))_0x268099['removeMarkers']();else{if(_0x206b3a['containsRange'](_0x5ae248)){const _0x4304b6=this['_model']['createPositionAt'](_0x5ae248['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x268099,this['_model']['createRange'](_0x206b3a['start'],_0x4304b6));const _0x49fd93=_0x20cf05(),_0x543003=_0x268099['creator']['id'],_0x5a95a4=_0x268099['type']+':'+_0x268099['subType'];this['_setSuggestionData']({'id':_0x49fd93,'type':_0x5a95a4,'createdAt':new Date(),'authorId':_0x543003,'data':_0x268099['data'],'attributes':_0x268099['attributes']});const _0x477722=this['_model']['createPositionAt'](_0x5ae248['end']['parent'],'after'),_0x838512=this['_model']['createRange'](_0x477722,_0x206b3a['end']);this['_addSuggestionMarker'](_0x5a95a4,_0x49fd93,_0x543003,_0x838512);}else{if(_0x206b3a['containsPosition'](_0x5ae248['start'])){const _0x2092c7=this['_model']['createPositionAt'](_0x5ae248['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x268099,this['_model']['createRange'](_0x206b3a['start'],_0x2092c7));}else{const _0x603ab7=this['_model']['createPositionAt'](_0x5ae248['end']['parent'],'after');this['_setSuggestionRange'](_0x268099,this['_model']['createRange'](_0x603ab7,_0x206b3a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4659ce){for(const {suggestion:_0x219c00,meta:_0x53fb71}of this['_findSuggestions'](_0x4659ce,'insertion')){if(!_0x53fb71['isOwn'])continue;const _0x5b5b1b=_0x219c00['getRanges']();for(const _0x34d587 of _0x5b5b1b)if(!_0x4659ce['getDifference'](_0x34d587)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xc30c8a){const _0x39a794=this['editor']['plugins']['get']('Users')['getUser'](_0xc30c8a);if(!_0x39a794)throw new _0x346a74('track-changes-user-not-found',this);return _0x39a794;}['_getExternalAuthor'](_0x4a74df){const _0x2c6c95=this['editor']['plugins']['get']('Users'),_0x5ed7a6=_0x2fe077('external:'+_0x4a74df),_0x9a8763=_0x2c6c95['getUser'](_0x5ed7a6);return _0x9a8763||_0x2c6c95['addUser']({'id':_0x5ed7a6,'name':_0x4a74df});}['_createSuggestion'](_0x4f8f50,_0x37369d,_0x4b7f53,_0x469152,_0x25e253,_0x15049c){const _0x1347ce=this['_getAuthorFromId'](_0x469152),_0x3c85be=this['_suggestionFactory']['buildSuggestion'](_0x4f8f50,_0x37369d,_0x4b7f53,_0x1347ce,_0x25e253,_0x3d53dc=>{this['_updateSuggestionData'](_0x4b7f53,{'attributes':_0x3d53dc});const _0x4fb61d=this['getSuggestion'](_0x4b7f53);this['_joinWithAdjacentSuggestions'](new Set([_0x4fb61d])),this['_refreshSuggestionsChain'](new Set([_0x4fb61d]));},_0x15049c);return this['listenTo'](_0x3c85be,'accept',()=>{this['_updateSuggestionData'](_0x4b7f53,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3c85be,'discard',()=>{this['_updateSuggestionData'](_0x4b7f53,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4b7f53,_0x3c85be),this['_suggestionState']['set'](_0x3c85be,'notReady'),_0x3c85be;}['_splitMarkerName'](_0x1d909b){const _0x439a7d=_0x1d909b['split'](':');return{'group':_0x439a7d[0x0],'type':_0x439a7d[0x1],'subType':_0x439a7d['length']>=0x5?_0x439a7d[0x2]:null,'id':_0x439a7d['length']<0x5?_0x439a7d[0x2]:_0x439a7d[0x3],'authorId':_0x439a7d['length']<0x5?_0x439a7d[0x3]:_0x439a7d[0x4],'markerCount':0x6==_0x439a7d['length']?_0x439a7d[0x5]:null};}['_breakSuggestionMarker'](_0x597a68,_0x4371bb,_0x461acb){const _0x499438=_0x597a68['getFirstRange'](),_0xed0004=_0x499438['start'],_0x370f64=_0x499438['end'];this['_setSuggestionRange'](_0x597a68,this['_model']['createRange'](_0xed0004,_0x4371bb));const _0x1e2ea7=_0x20cf05(),_0x444efb=_0x597a68['creator']['id'],_0x99c880=_0x597a68['type']+(_0x597a68['subType']?':'+_0x597a68['subType']:'');this['_setSuggestionData']({'id':_0x1e2ea7,'type':_0x99c880,'createdAt':new Date(),'authorId':_0x444efb,'originalSuggestionId':_0x597a68['_originalSuggestionId']||_0x597a68['id'],'attributes':_0x597a68['attributes'],'data':_0x597a68['data']});const _0x1f0c33=this['_getAttributeKey'](_0x597a68);('formatBlock'==_0x597a68['type']||_0x1f0c33&&this['_isBlockAttribute'](_0x1f0c33))&&(_0x461acb=this['_model']['createPositionBefore'](_0x461acb['parent'])),this['_addSuggestionMarker'](_0x99c880,_0x1e2ea7,_0x444efb,this['_model']['createRange'](_0x461acb,_0x370f64));}['_findSuggestions'](_0x29c149,_0x4d3938=null){const _0x5113c5=[],_0x423972=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x29c149)||(_0x29c149=[_0x29c149]);for(const _0x5b6b4f of this['getSuggestions']()){if(!_0x5b6b4f['isInContent'])continue;if(_0x4d3938&&_0x5b6b4f['type']!=_0x4d3938)continue;let _0x50a3da=!0x1;for(const _0x5550ab of _0x5b6b4f['getRanges']()){for(const _0x5dc22e of _0x29c149){const _0x29287b=_0x5dc22e['start']['isEqual'](_0x5550ab['end'])||_0x5dc22e['end']['isEqual'](_0x5550ab['start']);if(_0x29287b||_0x5dc22e['getIntersection'](_0x5550ab)){const _0x218d8e=_0x5dc22e['containsRange'](_0x5550ab)&&Ft(this['_model']['schema'],_0x5550ab['start'],_0x5dc22e),_0x6d0d75=_0x5550ab['containsRange'](_0x5dc22e)&&Ft(this['_model']['schema'],_0x5dc22e['start'],_0x5550ab);_0x5113c5['push']({'suggestion':_0x5b6b4f,'meta':{'isOwn':_0x423972==_0x5b6b4f['author'],'isNextTo':_0x29287b,'isInsideObject':_0x218d8e,'containsRangeInObject':_0x6d0d75}}),_0x50a3da=!0x0;break;}}if(_0x50a3da)break;}}return _0x5113c5;}['_addSuggestionMarker'](_0x1fc379,_0x1866c9,_0x587a03,_0x2f15c2,_0x304e53){this['_model']['change'](_0x3924b2=>{let _0x4e0370='suggestion:'+_0x1fc379+':'+_0x1866c9+':'+_0x587a03;_0x304e53&&(_0x4e0370=_0x4e0370+':'+_0x304e53),_0x3924b2['addMarker'](_0x4e0370,{'range':_0x2f15c2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1adc44){const _0x637892=_0x1adc44['previous'],_0x503010=_0x1adc44['next'];_0x1adc44['previous']=null,_0x1adc44['next']=null,null!=_0x637892&&_0x637892['next']==_0x1adc44&&(_0x637892['next']=_0x503010),null!=_0x503010&&_0x503010['previous']==_0x1adc44&&(_0x503010['previous']=_0x637892),'ready'==this['_suggestionState']['get'](_0x1adc44)&&(this['_suggestionState']['set'](_0x1adc44,'removed'),this['fire']('suggestionUnloaded',_0x1adc44,_0x637892,_0x503010));}['_setSuggestionData'](_0x1b01c4){const _0x162192=_0x1b01c4['id'],_0x4be6bd=this['addSuggestionData'](_0x1b01c4);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x13582b=this['editor']['plugins']['get']('PendingActions'),_0x41a850=_0x4be6bd['hasComments'],_0x1c01c3=_0x4be6bd['subType']?_0x4be6bd['type']+':'+_0x4be6bd['subType']:_0x4be6bd['type'],_0x5d19a4=this['editor']['locale'],_0x1bae4b=_0x13582b['add'](o(_0x5d19a4,'PENDING_ACTION_SUGGESTION')),_0x597471={'id':_0x162192,'type':_0x1c01c3,'hasComments':_0x41a850,'data':_0x1b01c4['data']||null,'originalSuggestionId':_0x1b01c4['originalSuggestionId']||null,'attributes':_0x4be6bd['attributes']};this['_adapter']['addSuggestion'](_0x597471)['then'](_0x3703f9=>{_0x4be6bd['_saved']=!0x0,_0x13582b['remove'](_0x1bae4b),_0x3703f9&&_0x3703f9['createdAt']&&(this['_suggestions']['get'](_0x162192)['createdAt']=_0x3703f9['createdAt']);})['catch'](_0x39a9af=>{throw _0xe69762('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4be6bd['discard']();}),_0x4be6bd['stopListening'](),this['_suggestions']['delete'](_0x4be6bd['id']),this['_suggestionState']['delete'](_0x4be6bd),_0x39a9af;});}return _0x4be6bd;}['_isBlockAttribute'](_0xed2b91){return this['_blockAttributeKeys']['has'](_0xed2b91);}['_updateSuggestionData'](_0x5bf0d9,_0x1187fd){const _0x5b3ab0=this['editor']['plugins']['get']('PendingActions'),_0x3e547e=this['getSuggestion'](_0x5bf0d9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3e547e['_saved']){const _0x956b56=_0x5b3ab0['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5bf0d9,_0x1187fd)['then'](()=>{_0x5b3ab0['remove'](_0x956b56);});}else _0x3e547e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5bf0d9,_0x1187fd);});}}['_getSuggestionData'](_0x4f13f1){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x346a74('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4f13f1);}['_handleNewSuggestionMarker'](_0x481c56){const {id:_0x5a6a2a,type:_0x4ec9e3,subType:_0x329300,authorId:_0x2ccfa5}=this['_splitMarkerName'](_0x481c56),_0x57c834=this['_suggestions']['get'](_0x5a6a2a)||this['_createSuggestion'](_0x4ec9e3,_0x329300,_0x5a6a2a,_0x2ccfa5,{});switch(this['_checkSuggestionCorrectness'](_0x57c834,_0x4ec9e3,_0x329300,_0x2ccfa5),this['_suggestionState']['get'](_0x57c834)){case'notReady':this['_getSuggestionData'](_0x5a6a2a)['then'](_0x14ee63=>{let _0x21ec3d=Promise['resolve']();_0x14ee63['hasComments']&&(_0x21ec3d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5a6a2a})),_0x21ec3d['then'](()=>{this['addSuggestionData'](_0x14ee63)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x57c834,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5a6a2a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x57c834,'ready'),this['fire']('suggestionLoaded',_0x57c834);break;case'ready':this['fire']('suggestionChanged',_0x57c834);}return _0x57c834['addMarkerName'](_0x481c56),_0x57c834;}['_refreshSuggestionsChain'](_0x1b878a){const _0x539b5c=Array['from'](_0x1b878a),_0x185a11=_0x539b5c['filter'](_0x26120f=>'attribute'==_0x26120f['type']);this['_refreshAttributeSuggestionsChain'](_0x185a11);const _0x254b59=_0x539b5c['filter'](_0x716271=>!_0x716271['isMultiRange']&&'attribute'!=_0x716271['type']),_0x407320=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3371ac=>!_0x3371ac['isMultiRange']&&'attribute'!=_0x3371ac['type']),_0x504524=_0x407320['filter'](_0x5518f2=>!_0x1b878a['has'](_0x5518f2)),_0x3729de=new Map(_0x407320['map'](_0x3cf968=>[_0x3cf968,this['_suggestionFactory']['getSuggestionCallback'](_0x3cf968['type'],_0x3cf968['subType'],'chain')])),_0x142f5c=new Map(_0x407320['map'](_0xfb3766=>[_0xfb3766,_0xfb3766['getFirstRange']()])),_0x1b11d9=new Set(),_0x118407=new Set();for(let _0x5cb609=0x0;_0x5cb609<_0x254b59['length'];_0x5cb609++)_0x9fef86(_0x254b59[_0x5cb609],_0x254b59,_0x5cb609+0x1);for(let _0x33aa5f=0x0;_0x33aa5f<_0x254b59['length'];_0x33aa5f++)_0x9fef86(_0x254b59[_0x33aa5f],_0x504524,0x0);const _0x4c6b4f=new Set();for(let _0x28f535=0x0;_0x28f535<_0x254b59['length'];_0x28f535++){const _0x2be495=_0x254b59[_0x28f535];!_0x118407['has'](_0x2be495)&&_0x2be495['previous']&&(_0x4c6b4f['add'](_0x2be495['previous']),_0x2be495['previous']['next']===_0x2be495&&(_0x2be495['previous']['next']=null),_0x2be495['previous']=null),!_0x1b11d9['has'](_0x2be495)&&_0x2be495['next']&&(_0x4c6b4f['add'](_0x2be495['next']),_0x2be495['next']['previous']===_0x2be495&&(_0x2be495['next']['previous']=null),_0x2be495['next']=null);}function _0x9fef86(_0x3d5ee2,_0x24b4b6,_0x53f3db){for(let _0x14b8d4=_0x53f3db;_0x14b8d4<_0x24b4b6['length'];_0x14b8d4++){const _0x5be58e=_0x5c2aab(_0x3d5ee2,_0x24b4b6[_0x14b8d4]);_0x5be58e&&(_0x5be58e[0x0]['next']=_0x5be58e[0x1],_0x5be58e[0x1]['previous']=_0x5be58e[0x0],_0x1b11d9['add'](_0x5be58e[0x0]),_0x118407['add'](_0x5be58e[0x1]));}}function _0x5c2aab(_0x1c42e3,_0x18aefa){if(_0x1c42e3['author']['id']!==_0x18aefa['author']['id'])return null;const _0x18bac2=_0x3729de['get'](_0x1c42e3)(_0x1c42e3,_0x18aefa,_0x142f5c['get'](_0x1c42e3),_0x142f5c['get'](_0x18aefa));if(!_0x18bac2)return null;return _0x3729de['get'](_0x18aefa)(_0x1c42e3,_0x18aefa,_0x142f5c['get'](_0x1c42e3),_0x142f5c['get'](_0x18aefa))?_0x18bac2[0x1]['commentThread']&&_0x18bac2[0x1]['commentThread']['length']?null:_0x18bac2:null;}_0x4c6b4f['size']&&this['_refreshSuggestionsChain'](_0x4c6b4f);}['_refreshAttributeSuggestionsChain'](_0x2142fd){if(0x0==_0x2142fd['length'])return;const _0x42252b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18ff57=>'attribute'==_0x18ff57['type']&&_0x18ff57['_isDataLoaded']),_0x46b080=[],_0x5d0001=new Map();for(const _0x187f9e of _0x42252b){const _0x2173b8=_0x2fe077(_0x187f9e['attributes']);_0x5d0001['has'](_0x2173b8)||(_0x5d0001['set'](_0x2173b8,_0x46b080['length']),_0x46b080['push']([]));const _0x371f72=_0x5d0001['get'](_0x2173b8);_0x46b080[_0x371f72]['push'](_0x187f9e);}!(function(){_0x46b080['sort']((_0xc9542e,_0x367cef)=>{const _0x3d2676=_0xc9542e[0x0]['createdAt'],_0x218856=_0x367cef[0x0]['createdAt'];return _0x3d2676==_0x218856?_0xc9542e[0x0]['attributes']['groupId']<_0x367cef[0x0]['attributes']['groupId']?-0x1:0x1:_0x3d2676<_0x218856?-0x1:0x1;});for(const _0x1cc170 of _0x46b080)_0x1cc170['sort']((_0x3c0a4f,_0x1bfc00)=>_0x3c0a4f['id']<_0x1bfc00['id']?-0x1:0x1);}());for(let _0x2d5466=0x0;_0x2d5466<_0x46b080['length'];_0x2d5466++){if(0x0==_0x46b080[_0x2d5466]['length'])continue;const _0x590222=[];for(let _0x292b1b=_0x2d5466+0x1;_0x292b1b<_0x46b080['length'];_0x292b1b++)0x0!=_0x46b080[_0x292b1b]['length']&&_0x2bc0cb(_0x46b080[_0x2d5466],_0x46b080[_0x292b1b])&&_0x590222['push'](_0x292b1b);for(const _0x23d571 of _0x590222)_0x46b080[_0x2d5466]=_0x46b080[_0x2d5466]['concat'](_0x46b080[_0x23d571]),_0x46b080[_0x23d571]=[];}for(const _0x418d75 of _0x46b080)for(let _0x237d66=0x0;_0x237d66<_0x418d75['length'];_0x237d66++){const _0x587a2f=_0x418d75[_0x237d66+0x1]||null;_0x418d75[_0x237d66]['next']!==_0x587a2f&&(_0x418d75[_0x237d66]['next']=_0x587a2f);}for(const _0x16bddd of _0x46b080)for(let _0x1009a1=0x0;_0x1009a1<_0x16bddd['length'];_0x1009a1++){const _0xcb19cd=_0x16bddd[_0x1009a1-0x1]||null;_0x16bddd[_0x1009a1]['previous']!==_0xcb19cd&&(_0x16bddd[_0x1009a1]['previous']=_0xcb19cd);}function _0x2bc0cb(_0x3e9aa2,_0x461616){if(_0x3e9aa2[0x0]['attributes']['groupId']!==_0x461616[0x0]['attributes']['groupId']&&_0x3e9aa2[0x0]['author']!==_0x461616[0x0]['author'])return!0x1;if(!function(_0x2caa51,_0x12f35a){if(!_0x2caa51['hasComments']&&!_0x12f35a['hasComments'])return!0x0;if(_0x2caa51['hasComments']&&_0x12f35a['hasComments'])return!0x1;if(_0x2caa51['hasComments']&&_0x12f35a['createdAt']<_0x2caa51['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x12f35a['hasComments']&&_0x2caa51['createdAt']<_0x12f35a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3e9aa2[0x0],_0x461616[0x0]))return!0x1;const _0x1e4c0b=Ut(_0x3e9aa2[0x0]['attributes'],['groupId','trackingSessionId']),_0x44c4b4=Ut(_0x461616[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x17f578(_0x1e4c0b,_0x44c4b4))return!0x1;if(_0x3e9aa2[0x0]['attributes']['groupId']==_0x461616[0x0]['attributes']['groupId'])return!0x0;if(_0x3e9aa2[0x0]['attributes']['trackingSessionId']!==_0x461616[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3e9aa2['every'](_0xc170ac=>_0x461616['some'](_0xf3f6b1=>_0xc170ac['getFirstRange']()['isEqual'](_0xf3f6b1['getFirstRange']())))&&_0x461616['every'](_0x30f228=>_0x3e9aa2['some'](_0x18ec58=>_0x30f228['getFirstRange']()['isEqual'](_0x18ec58['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x55dcd4){const _0x38a7de=Array['from'](_0x55dcd4),_0xccaf5e=this['getSuggestions']({'skipNotAttached':!0x0}),_0xc3e671=_0xccaf5e['filter'](_0x4cbed3=>!_0x55dcd4['has'](_0x4cbed3)),_0x4bb7fc=new Map(_0x38a7de['map'](_0x3f09f4=>[_0x3f09f4,this['_suggestionFactory']['getSuggestionCallback'](_0x3f09f4['type'],_0x3f09f4['subType'],'join')])),_0x729ff=new Map(_0xccaf5e['map'](_0x1a2dcf=>[_0x1a2dcf,_0x1a2dcf['getRanges']()]));for(let _0x4b23cd=0x0;_0x4b23cd<_0x38a7de['length'];_0x4b23cd++){if(_0x528d1c(this,_0x38a7de[_0x4b23cd],_0x38a7de,_0x4b23cd+0x1))return!0x0;}for(let _0x3cc86e=0x0;_0x3cc86e<_0x38a7de['length'];_0x3cc86e++){if(_0x528d1c(this,_0x38a7de[_0x3cc86e],_0xc3e671,0x0))return!0x0;}return!0x1;function _0x528d1c(_0x2b67c8,_0x52b7aa,_0x3d72c2,_0x2001d7){for(let _0x1f2e3b=_0x2001d7;_0x1f2e3b<_0x3d72c2['length'];_0x1f2e3b++){const _0x4cece6=_0x3d72c2[_0x1f2e3b];if(_0x4cece6['type']!==_0x52b7aa['type']||_0x4cece6['author']['id']!==_0x52b7aa['author']['id']||_0x4cece6['subType']!==_0x52b7aa['subType'])continue;if(!Wt(_0x52b7aa,_0x4cece6))continue;if('attribute'==_0x52b7aa['type']&&_0x52b7aa['data']['oldValue']!=_0x4cece6['data']['oldValue'])continue;if('attribute'==_0x52b7aa['type']&&_0x2b67c8['_isBlockAttribute'](_0x52b7aa['data']['key']))continue;if('formatBlock'==_0x52b7aa['type']){const _0x3dd0ce=_0x2b67c8['editor']['model'],_0x21b577=_0x52b7aa['getContainedElement']();if(_0x21b577&&(_0x3dd0ce['schema']['isObject'](_0x21b577)||_0x3dd0ce['schema']['isLimit'](_0x21b577)))continue;}const _0x5d6446=_0x4bb7fc['get'](_0x52b7aa),_0x4d9560=_0x729ff['get'](_0x52b7aa),_0x424471=_0x729ff['get'](_0x4cece6),_0x428aeb=_0x52b7aa['commentThread']&&_0x52b7aa['commentThread']['length'],_0x1ff173=_0x4cece6['commentThread']&&_0x4cece6['commentThread']['length'];if(!_0x428aeb&&_0x5d6446(_0x424471,_0x4d9560))return _0x2b67c8['_joinSuggestions'](_0x4cece6,_0x52b7aa),_0x729ff['delete'](_0x52b7aa),!0x0;if(!_0x1ff173&&_0x5d6446(_0x4d9560,_0x424471))return _0x2b67c8['_joinSuggestions'](_0x52b7aa,_0x4cece6),_0x729ff['delete'](_0x4cece6),!0x0;}return!0x1;}}['_joinSuggestions'](_0xa8b28b,_0x1993ed){if(_0xa8b28b['isMultiRange']){for(const _0x28bf75 of _0x1993ed['getRanges']())_0xa8b28b['addRange'](_0x28bf75);}else{const _0x151169=_0x1993ed['getFirstRange']()['end'];this['_setSuggestionRange'](_0xa8b28b,this['_model']['createRange'](_0xa8b28b['getFirstRange']()['start'],_0x151169));}_0x1993ed['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1925be,_0x2c9c60,_0x5d14e9){const _0x5959fc=_0x1925be['startsWith']('format')||_0x1925be['startsWith']('attribute')?'FORMATTING':_0x1925be['toUpperCase']();return o(this['editor']['locale'],_0x2c9c60+'_'+_0x5959fc+'_SUGGESTION_ANNOUNCEMENT',_0x5d14e9);}['_initAriaMarkerChangeAnnouncements'](){const _0x2fd82f=this['editor'];if(!_0x2fd82f['ui'])return;const {ariaLiveAnnouncer:_0x33bf36}=_0x2fd82f['ui'];_0x138bd3(this['_model'],({left:_0x533dd4,entered:_0xb9d3b9})=>{for(const _0x25afbe of _0x533dd4){const {group:_0x4335ec,type:_0x1220ff}=this['_splitMarkerName'](_0x25afbe['name']);if('suggestion'===_0x4335ec){_0x33bf36['announce'](this['_getMarkerAnnouncementText'](_0x1220ff,'LEAVE'));break;}}for(const _0x2e4a21 of _0xb9d3b9){const {group:_0x181ff1,type:_0xcbd3d7}=this['_splitMarkerName'](_0x2e4a21['name']);if('suggestion'===_0x181ff1){_0x33bf36['announce'](this['_getMarkerAnnouncementText'](_0xcbd3d7,'ENTER',_0x538503(_0x49096d)));break;}}});}['_processAttributeChanges'](_0x48eed6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1e9bf1=this['editor'],_0x28db08=_0x1e9bf1['model']['document']['differ']['getChanges']();if(0x0==_0x28db08['length'])return!0x1;const _0x49a61c=[],_0x4b7b80=_0x28db08['filter'](_0x1d34fd=>'attribute'==_0x1d34fd['type']),_0x2c5f1a=_0x28db08['filter'](_0x4defc7=>'insert'==_0x4defc7['type']&&'$text'!=_0x4defc7['name']),_0x37e164=_0x28db08['filter'](_0xc93c91=>'remove'==_0xc93c91['type']&&'$text'!=_0xc93c91['name']);for(const _0x40f70d of _0x4b7b80)_0x49a61c['push']({'key':_0x40f70d['attributeKey'],'newValue':_0x40f70d['attributeNewValue'],'oldValue':_0x40f70d['attributeOldValue'],'range':Ht(_0x40f70d['range'],_0x1e9bf1['model'])});for(const _0x5b8dbb of _0x2c5f1a){const _0x4fd1a5=_0x37e164['find'](_0xfe3e01=>_0xfe3e01['position']['isEqual'](_0x5b8dbb['position']));_0x4fd1a5&&_0x49a61c['push']({'key':m,'newValue':_0x5b8dbb['name'],'oldValue':_0x4fd1a5['name'],'range':_0x1e9bf1['model']['createRangeOn'](_0x5b8dbb['position']['nodeAfter'])});}return 0x0!=_0x49a61c['length']&&this['_reduceExistingSuggestions'](_0x48eed6,_0x49a61c);}['_processAttributeSuggestions'](_0x3330a6){let _0x4fa1e4=!0x1;const _0x23b8b0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3ea2e1=>_0x3ea2e1['data']['newRange']&&_0x3ea2e1['name']['startsWith']('suggestion:attribute:'));for(const _0x15a107 of _0x23b8b0){const {subType:_0x168b4d,id:_0x267c9b}=this['_splitMarkerName'](_0x15a107['name']),_0x588638=_0x168b4d['split']('|')[0x0];for(const _0x112f1b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x112f1b['id']!=_0x267c9b&&'attribute'==_0x112f1b['type']&&_0x112f1b['data']&&_0x112f1b['data']['key']==_0x588638&&_0x112f1b['getFirstRange']()['isIntersecting'](_0x15a107['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x112f1b,_0x15a107['data']['newRange'],_0x3330a6),_0x4fa1e4=!0x0);}return _0x4fa1e4;}['recordAttributeChanges'](_0x55fd1f){this['_recordAttributeSuggestions']=!0x0,_0x55fd1f();}['_isRegisteredAttribute'](_0xbb2189){const _0x1d7802=this['_isBlockAttribute'](_0xbb2189),_0x38c83b=this['_inlineAttributeKeys']['has'](_0xbb2189);return _0x1d7802||_0x38c83b;}['_reduceExistingSuggestions'](_0xcddf79,_0x1e2311){if(0x0==_0x1e2311['length'])return!0x1;let _0x5489fc=!0x1;for(const _0x1fa094 of _0x1e2311){const _0x49063a=this['_findSuggestions'](_0x1fa094['range'],'attribute')['filter'](_0x3eaa69=>!_0x3eaa69['meta']['isNextTo'])['map'](_0x51ef30=>_0x51ef30['suggestion']),_0x537ccd=_0x2fe077({'newValue':_0x1fa094['newValue']});_0x49063a['filter'](_0x17e91a=>{const [_0xa53ea5,_0x4e23ed]=_0x17e91a['subType']['split']('|');return _0xa53ea5==_0x1fa094['key']&&_0x4e23ed!=_0x537ccd;})['forEach'](_0x431de9=>{this['_reduceSuggestionAttributeRange'](_0x431de9,_0x1fa094['range'],_0xcddf79),_0x5489fc=!0x0;});}return _0x5489fc;}['_reduceSuggestionAttributeRange'](_0x4ef69d,_0x2cf90b,_0x2801a6){const _0x190fbe=_0x4ef69d['getFirstRange']()['getDifference'](_0x2cf90b);0x0!==_0x190fbe['length']?0x1!==_0x190fbe['length']?this['_breakSuggestionMarker'](_0x4ef69d,_0x2cf90b['start'],_0x2cf90b['end']):this['_setSuggestionRange'](_0x4ef69d,_0x190fbe[0x0]):_0x2801a6['removeMarker'](_0x4ef69d['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xd69aeb){this['_editor']=_0xd69aeb,this['_model']=_0xd69aeb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5b8b41,_0x35992d,_0x4ccd5b,_0x5bce8b,_0x24bb61,_0x4189f3,_0x5c542b){return new T(this['_model'],{'type':_0x5b8b41,'subType':_0x35992d,'id':_0x4ccd5b,'originalSuggestionId':_0x5c542b,'author':_0x5bce8b,'creator':_0x5bce8b,'attributes':_0x24bb61,'onAttributesChange':_0x4189f3,'onAccept':(..._0x44d4b4)=>this['getSuggestionCallback'](_0x5b8b41,_0x35992d,'accept')(..._0x44d4b4),'onDiscard':(..._0x307eff)=>this['getSuggestionCallback'](_0x5b8b41,_0x35992d,'discard')(..._0x307eff)});}['registerCustomCallback'](_0x3bf96f,_0x3e9390,_0x249de0,_0x225e6c){const _0x1498a4=_0x3bf96f+':'+_0x3e9390+':'+_0x249de0;this['_customCallbacks']['set'](_0x1498a4,_0x225e6c);}['getSuggestionCallback'](_0x4947c6,_0x3028fd,_0x4a5ff7){const _0x362f87=_0x4947c6+':'+_0x3028fd+':'+_0x4a5ff7;return this['_customCallbacks']['get'](_0x362f87)||this['_defaultCallbacks']['get'](_0x4947c6+':'+_0x4a5ff7);}['_registerDefaultCallbacks'](){const _0x455c4d=()=>!0x1,_0x4d071d=_0x187866=>{_0x187866['sort']((_0x1bce9b,_0x4f83d0)=>_0x1bce9b['start']['isBefore'](_0x4f83d0['start'])?0x1:-0x1),this['_model']['change'](_0x1b4c2c=>{for(const _0x215de of _0x187866){let _0x1bfc9a;_0x1bfc9a=_0x215de['end']['isAtEnd']&&_0x215de['end']['parent']==_0x215de['start']['nodeAfter']?_0x1b4c2c['createSelection'](_0x215de['start']['nodeAfter'],'on'):_0x1b4c2c['createSelection'](_0x215de),this['_model']['deleteContent'](_0x1bfc9a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2fddd8=(_0x552e47,_0x1d8f54)=>{_0x1d8f54&&this['_model']['change'](_0x1ab9b9=>{const {commandName:_0xa30b3b,commandParams:_0x4541de=[]}=_0x1d8f54,_0x2633a8=_0x552e47['map'](_0x36410d=>(Pt(_0x36410d)&&(_0x36410d=this['_model']['createRange'](_0x36410d['end'])),_0x36410d))['filter'](_0xe1a750=>'$graveyard'!==_0xe1a750['root']['rootName']);if(_0x2633a8['length']<0x1)return;const _0x524d37=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3013f6=>_0x334b1a['fromRange'](_0x3013f6));_0x1ab9b9['setSelection'](_0x2633a8);for(const _0x3de3f3 of this['_editor']['commands']['commands']())_0x3de3f3['refresh']();_0x4541de['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xa30b3b,..._0x4541de);const _0x1ea174=_0x524d37['filter'](_0x2cd14e=>'$graveyard'!=_0x2cd14e['root']['rootName']);_0x1ea174['length']>0x0&&_0x1ab9b9['setSelection'](_0x1ea174);for(const _0x296807 of _0x524d37)_0x296807['detach']();});},_0x237d15=(_0x598ff0,_0x457f0c)=>0x1==_0x598ff0['length']&&0x1==_0x457f0c['length']&&_0x598ff0[0x0]['end']['isEqual'](_0x457f0c[0x0]['start']),_0x1f7b49=(_0x48beb6,_0x102a05,_0x5cc86c,_0x11c972)=>zt(_0x48beb6,_0x102a05,_0x5cc86c,_0x11c972)?[_0x48beb6,_0x102a05]:zt(_0x102a05,_0x48beb6,_0x11c972,_0x5cc86c)?[_0x102a05,_0x48beb6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x455c4d),this['_defaultCallbacks']['set']('insertion:discard',_0x4d071d),this['_defaultCallbacks']['set']('insertion:join',_0x237d15),this['_defaultCallbacks']['set']('insertion:chain',_0x1f7b49),this['_defaultCallbacks']['set']('deletion:accept',_0x4d071d),this['_defaultCallbacks']['set']('deletion:discard',_0x455c4d),this['_defaultCallbacks']['set']('deletion:join',_0x237d15),this['_defaultCallbacks']['set']('deletion:chain',_0x1f7b49),this['_defaultCallbacks']['set']('formatInline:accept',_0x2fddd8),this['_defaultCallbacks']['set']('formatInline:discard',_0x455c4d),this['_defaultCallbacks']['set']('formatInline:join',_0x237d15),this['_defaultCallbacks']['set']('formatInline:chain',_0x455c4d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2fddd8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x455c4d),this['_defaultCallbacks']['set']('formatBlock:join',_0x237d15),this['_defaultCallbacks']['set']('formatBlock:chain',_0x455c4d),this['_defaultCallbacks']['set']('attribute:accept',_0x455c4d),this['_defaultCallbacks']['set']('attribute:discard',(_0x2e1216,_0x201f0e)=>{if(!_0x201f0e)return;const _0x103cea=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x1d6a56=>{if(_0x201f0e['key']==m)for(const _0x45deac of _0x2e1216){const _0x6474e5=_0x45deac['start']['nodeAfter'],_0x539feb=_0x201f0e['oldValue'];_0x1d6a56['rename'](_0x6474e5,_0x539feb);}else{if(_0x103cea['_isBlockAttribute'](_0x201f0e['key'])){for(const _0x2a98bb of _0x2e1216)void 0x0!==_0x201f0e['oldValue']?_0x1d6a56['setAttribute'](_0x201f0e['key'],_0x201f0e['oldValue'],_0x2a98bb['start']['nodeAfter']):_0x1d6a56['removeAttribute'](_0x201f0e['key'],_0x2a98bb['start']['nodeAfter']);}else{for(const _0x32f530 of _0x2e1216)_0x201f0e['oldValue']?_0x1d6a56['setAttribute'](_0x201f0e['key'],_0x201f0e['oldValue'],_0x32f530):_0x1d6a56['removeAttribute'](_0x201f0e['key'],_0x32f530);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x237d15);}}function Ft(_0x4a9d80,_0xe81ce2,_0x1ff9b7){for(const _0x283584 of _0xe81ce2['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x283584['root']==_0x283584)return!0x1;if(!_0x1ff9b7['containsItem'](_0x283584))return!0x1;if(_0x4a9d80['isObject'](_0x283584)||_0x4a9d80['isLimit'](_0x283584))return!0x0;}return!0x1;}function Pt(_0x3d424b){return _0x3d424b['end']['parent']==_0x3d424b['start']['nodeAfter']&&_0x3d424b['end']['isAtStart'];}function Gt(_0x864747,_0x2cd35f,_0xfe925d,_0x5acfd8){const _0x9e2997=_0x50d7c8=>!_0x50d7c8['item']['is']('$textProxy')&&!_0x5acfd8['isObject'](_0x50d7c8['item']),_0x4029c5=_0x864747['start']['getLastMatchingPosition'](_0x9e2997),_0x95678b=_0x864747['end']['getLastMatchingPosition'](_0x9e2997,{'direction':'backward'});return(!_0x864747['start']['isEqual'](_0x4029c5)||!_0x864747['end']['isEqual'](_0x95678b))&&(_0x4029c5['isBefore'](_0x95678b)?_0xfe925d['updateMarker'](_0x2cd35f,{'range':_0xfe925d['createRange'](_0x4029c5,_0x95678b)}):_0xfe925d['removeMarker'](_0x2cd35f),!0x0);}function Lt(_0xa835ad){return _0x2fe077(_0xa835ad);}function Jt(_0x5b0f62){const _0x2b48d3=_0x5b0f62['start']['nodeAfter'];return _0x2b48d3&&_0x2b48d3['is']('element');}function Kt(_0x221709){return!Pt(_0x221709)&&!function(_0x533627){return _0x533627['start']['parent']==_0x533627['end']['nodeBefore']&&_0x533627['start']['isAtEnd'];}(_0x221709);}function Ht(_0x285217,_0x5dbde8){return null==_0x285217['end']['nodeBefore']&&_0x285217['end']['parent']==_0x285217['start']['nodeAfter']?qt(_0x285217['start']['nodeAfter'],_0x5dbde8):_0x285217;}function qt(_0x2202c7,_0x178e0d){const _0x1110f8=_0x178e0d['schema']['isObject'](_0x2202c7)||_0x178e0d['schema']['isSelectable'](_0x2202c7);return _0x178e0d['createRange'](_0x178e0d['createPositionAt'](_0x2202c7,'before'),_0x1110f8?_0x178e0d['createPositionAfter'](_0x2202c7):_0x178e0d['createPositionAt'](_0x2202c7,'end'));}function zt(_0x294583,_0xced17e,_0x226bce,_0x16b215){return!!Wt(_0x294583,_0xced17e)&&_0x226bce['end']['isEqual'](_0x16b215['start']);}function Wt(_0x267a96,_0x4ea59d){if(!_0x267a96['_isDataLoaded']||!_0x4ea59d['_isDataLoaded'])return!0x1;const _0x56c82f=new Set(Object['keys'](_0x267a96['attributes'])),_0x4e4313=new Set(Object['keys'](_0x4ea59d['attributes']));if(_0x56c82f['delete']('groupId'),_0x4e4313['delete']('groupId'),0x0==_0x56c82f['size']&&0x0==_0x4e4313['size'])return!0x0;if(_0x56c82f['size']!=_0x4e4313['size'])return!0x1;const _0x3854ad={..._0x267a96['attributes']},_0x2f81ad={..._0x4ea59d['attributes']};return delete _0x3854ad['groupId'],delete _0x2f81ad['groupId'],JSON['stringify'](_0x3854ad)==JSON['stringify'](_0x2f81ad);}function Qt(_0x459499,_0x3ba21f){const _0x1c2ca8=Xt(_0x459499['attributes']),_0xc10a30=Xt(_0x3ba21f);if(!_0x459499['_isDataLoaded'])return!0x1;for(const _0x4ddb19 of Object['keys'](_0xc10a30))if(!_0x17f578(_0x1c2ca8[_0x4ddb19],_0xc10a30[_0x4ddb19]))return!0x1;return!0x0;}function Xt(_0x51bec3){const _0x18bea4=Object['assign']({},_0x51bec3);return delete _0x18bea4['skipNestingCheck'],delete _0x18bea4['tablePasteChainId'],_0x18bea4;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x4f27e0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x29c21f,_0x365790,_0x446f2c,_0x48fd6e){super(),this['model']=_0x365790,this['view']=_0x446f2c,this['commentThreadController']=_0x48fd6e,this['_editor']=_0x29c21f,this['_acceptCommand']=_0x29c21f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x29c21f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x204be6,_0x4b41f8)=>_0x204be6||_0x4b41f8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x323da6=>_0x323da6&&this['_editor']['model']['canEditAt'](_0x365790['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3f5c41=>_0x3f5c41&&this['_editor']['model']['canEditAt'](_0x365790['getRanges']())),this['_pendingAction']=null,_0x446f2c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x446f2c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x446f2c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x446f2c,'change:isDirty',()=>{_0x446f2c['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 _0x38623d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x38623d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x59a488{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2d5ef3,_0x3eb8bc,_0x3d158b,_0x279cbe){super(_0x2d5ef3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x395108(_0x2d5ef3,o(_0x2d5ef3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3eb8bc['authoredAt']),this['bind']('authoredAt')['to'](_0x3eb8bc),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',_0x3eb8bc,'authoredAt',this,'descriptionParts',(_0x37b940,_0x53eb6b,_0x521e0a)=>{const _0x381c19=_0x521e0a['map'](_0x1dd608=>ls(_0x1dd608['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x37b940-0x1,_0x3eb8bc['author']['name'],_0x53eb6b?_0x279cbe['formatDateTime'](_0x53eb6b):'',new DOMParser()['parseFromString'](_0x381c19,'text/html')['body']['textContent']]);}),this['focusables']=new _0x56d81b(),this['focusTracker']=new _0x231eb3(),this['keystrokes']=new _0x1ffabe(),this['focusCycler']=new _0x3129c0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3931e7=>_0x3931e7['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3eb8bc,this['_localUser']=_0x3d158b,this['_config']=_0x279cbe,_0x279cbe['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x163ace(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4cd545}=this['_config'];this['commentsListView']=new _0x4cd545(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',_0x7cfbf6=>_0x7cfbf6+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3cf5ce,_0x4f92fb)=>_0x3cf5ce||!!_0x4f92fb);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4c7ae8}=this['_config'],_0x59e5f8=new _0x4c7ae8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xfe4902=_0x59e5f8['commentInputView'];return _0x59e5f8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xfe4902,'value',(_0x428201,_0x1bc52f,_0x2b593b)=>!!_0x2b593b||_0x428201&&!_0x1bc52f),_0xfe4902['on']('submit',(_0x16ab9c,_0x564b21)=>{this['fire']('addComment',_0x564b21),_0xfe4902['editor']['setData']('');}),_0xfe4902['on']('cancel',()=>this['focus']()),_0xfe4902['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x59e5f8;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x59b7e2,_0x4bd3f6,_0x4b688f,_0x2729ef){super(_0x59b7e2,_0x4bd3f6,_0x4b688f,_0x2729ef),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3b4135=>_0x3b4135&&_0x3b4135[0x0]?_0x3b4135[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2d88b8,_0x34823f)=>{let _0x25d26d='';for(const _0x27ecc3 of _0x2d88b8)_0x25d26d+='<p>'+ls(_0x27ecc3['content'],_0x27ecc3['color'])+'</p>';return _0x34823f?_0x25d26d:_0x347682(_0x25d26d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2729ef['SuggestionView'](_0x59b7e2,_0x4bd3f6,{'formatDateTime':_0x2729ef['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 _0x3ac019=this['bindTemplate'],_0x4acc01=[this['suggestionView']];return this['commentsListView']&&_0x4acc01['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4acc01['push'](this['commentThreadInputView']),_0x4acc01['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3ac019['if']('isActive','ck-suggestion-wrapper--active'),_0x3ac019['to']('type',_0x4573c9=>'ck-suggestion-'+_0x4573c9),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':_0x3ac019['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4acc01};}['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 _0x59a488{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3a7235,_0x2ce77b,_0x254f25){super(_0x3a7235),this['_model']=_0x2ce77b,this['_config']=_0x254f25,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2ce77b),this['acceptButton']=this['_createButton'](o(_0x3a7235,'Accept\x20suggestion'),_0x34b441,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3a7235,'Discard\x20suggestion'),_0x40347d,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3b83ce(_0x3a7235,_0x2ce77b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x56d81b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x231eb3(),this['keystrokes']=new _0x1ffabe(),this['focusCycler']=new _0x3129c0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x8e28e7=>_0x8e28e7['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x321771=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x321771['innerHTML']=this['description'],this['on']('change:description',(_0x29921a,_0x140729,_0x3d69cd)=>{_0x321771['innerHTML']=_0x3d69cd;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x52a1e2=this['bindTemplate'],_0x5bb0ac=[{'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':_0x52a1e2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x52a1e2['to']('authoredAt',_0x4fbb39=>this['_config']['formatDateTime'](_0x4fbb39))}]}]},{'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']&&_0x5bb0ac['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':_0x5bb0ac}]};}['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'](_0x2d3b9f,_0xf7f6d2,_0x26a969,_0x2a5cff,_0x4302bb){const _0x50f986=new _0x2ec40b(this['locale']);return _0x50f986['set']({'label':_0x2d3b9f,'icon':_0xf7f6d2,'tooltip':!0x0,'tooltipPosition':_0x4302bb}),_0x50f986['extendTemplate']({'attributes':{'class':_0x26a969}}),_0x50f986['on']('execute',()=>{this['fire'](_0x2a5cff,this['_model']['id']);}),_0x50f986;}['_setupKeyboardNavigation'](){const _0x577226=this['element'];this['keystrokes']['listenTo'](_0x577226);for(const _0x16028e of this['focusables'])this['focusTracker']['add'](_0x16028e['element']),this['keystrokes']['listenTo'](_0x16028e['element']);this['keystrokes']['set']('enter',(_0x41c443,_0x3d2def)=>{_0x577226===_0x41c443['target']&&(this['focusCycler']['focusFirst'](),_0x3d2def());}),this['keystrokes']['set']('esc',(_0x1855af,_0x5c54c3)=>{_0x577226!==_0x1855af['target']&&(this['focus'](),_0x5c54c3());});}}class u extends _0x559983{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x597f1a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x568d6b){super(_0x568d6b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x121840=this['editor']['config'];_0x121840['define']('trackChanges.SuggestionThreadView',fe),_0x121840['define']('trackChanges.SuggestionView',we),_0x121840['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x121840['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x445c7a,_0x4f9a22){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xf92fc4,_0x5b0842]of this['_handleControllerBuffer']){const _0x104f0c=this['_suggestionToController']['has'](_0xf92fc4);_0x104f0c||_0x5b0842?_0x104f0c&&_0x5b0842&&this['_destroyController'](_0xf92fc4):this['_initializeController'](_0xf92fc4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x445c7a,_0x4f9a22);}['init'](){const _0x209af1=this['editor'],_0x1de06b=_0x209af1['plugins']['get']('TrackChangesEditing'),_0x5225da=_0x209af1['plugins']['get']('Annotations'),_0x16118f=_0x209af1['plugins']['get']('EditorAnnotations'),_0x1cb947=_0x209af1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x16118f['addSourceCollector'](()=>{const _0x3a907b=[];for(const [_0x1b04a8,_0x2ffe4d]of Array['from'](this['_suggestionToController'])){const _0x2d581c=_0x1b04a8['getAllAdjacentSuggestions'](),_0x2a5a38=[];for(const _0xc7b089 of _0x2d581c){if(!_0xc7b089['isInContent'])continue;if(_0xc7b089['isMultiRange']){_0x2a5a38['push'](..._0xc7b089['getRanges']());continue;}const _0x3d229e=_0xc7b089['getFirstRange']();if(_0x2a5a38['length']>0x0){const _0x23b6cb=_0x2a5a38[0x0]['getJoined'](_0x3d229e);if(_0x23b6cb){_0x2a5a38[0x0]=_0x23b6cb;continue;}}_0x2a5a38['push'](_0x3d229e);}_0x3a907b['push']([_0x2ffe4d['view'],_0x2a5a38]);}return _0x3a907b;}),this['listenTo'](_0x1de06b,'suggestionLoaded',(_0xccd635,_0x1602bb)=>{this['listenTo'](_0x1602bb,'change:previous',(_0x55206a,_0x4be9c3,_0x1d2672,_0x1257c6)=>{_0x1602bb['isInContent']&&(null==_0x1d2672?(this['_updateController'](_0x1257c6['head']),this['_handleSuggestionControllerDelayed'](_0x1602bb,!0x1)):(this['_updateController'](_0x1d2672['head']),null==_0x1257c6&&this['_handleSuggestionControllerDelayed'](_0x1602bb,!0x0)));}),null!==_0x1602bb['previous']?this['_updateController'](_0x1602bb['head']):this['_handleSuggestionControllerDelayed'](_0x1602bb,!0x1);}),this['listenTo'](_0x1de06b,'suggestionUnloaded',(_0x3a9ae3,_0x3e1594,_0x7eb405)=>{this['stopListening'](_0x3e1594,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3e1594),this['_suggestionToController']['has'](_0x3e1594)&&this['_destroyController'](_0x3e1594),_0x7eb405&&this['_updateController'](_0x7eb405['head']);}),this['listenTo'](_0x1de06b,'suggestionChanged',(_0x282d1f,_0x381b4d)=>{this['_updateController'](_0x381b4d);}),this['listenTo'](_0x5225da,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1cb947,'addComment',(_0xc75cd0,{threadId:_0x3057c7,isFromAdapter:_0x3e3324})=>{if(_0x3e3324||!_0x1de06b['hasSuggestion'](_0x3057c7))return;const _0x2938ee=_0x1de06b['getSuggestion'](_0x3057c7);this['_suggestionToController']['get'](_0x2938ee)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xbb86a7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x7ffad4;for(const _0x286c37 in _0xbb86a7){const _0x38dae0=_0x286c37,_0x450e3f=_0xbb86a7[_0x38dae0];if('trackChangesLicenseKeyValid'==_0x450e3f||'trackChangesLicenseKeyInvalid'==_0x450e3f||'trackChangesLicenseKeyExpired'==_0x450e3f||'trackChangesLicenseKeyDomainLimit'==_0x450e3f||'trackChangesLicenseKeyNotAllowed'==_0x450e3f||'trackChangesLicenseKeyEvaluationLimit'==_0x450e3f||'trackChangesLicenseKeyTrialLimit'==_0x450e3f||'trackChangesLicenseKeyUsageLimit'==_0x450e3f){delete _0xbb86a7[_0x38dae0],_0x7ffad4=_0x450e3f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2eedf6){const _0x35b0da=this['_suggestionToController']['get'](_0x2eedf6);if(!_0x35b0da)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x35b0da['view'])||null;}['getSuggestionForAnnotation'](_0x58a4e7){const _0xa4afff=this['_viewToController']['get'](_0x58a4e7['innerView']);return _0xa4afff?_0xa4afff['model']:null;}['_refreshActiveMarkers'](){const _0x12aefd=this['editor']['plugins']['get']('Annotations'),_0x207d2d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x444ac6=Array['from'](_0x12aefd['activeAnnotations'],_0x3eacbc=>_0x3eacbc['innerView'])['filter'](_0x7bd554=>this['_viewToController']['has'](_0x7bd554)),_0x3b32b2=[];for(const _0x3e8146 of _0x444ac6){const _0x391d51=this['_viewToController']['get'](_0x3e8146)['model']['getAllAdjacentSuggestions']();_0x3b32b2['push'](..._0x391d51['reduce']((_0x51a6ca,_0x4e9de9)=>[..._0x51a6ca,..._0x4e9de9['getMarkerNames']()],[]));}_0x207d2d['activeMarkers']=_0x3b32b2;}['_addUIComponentsToFactory'](){const _0x35fba4=this['editor'],_0x479166=_0x35fba4['locale'],_0x41c929=o(_0x479166,'Track\x20changes'),_0x1efd51=new _0x30f5d4([{'type':'switchbutton','model':new _0x4d3856({'withText':!0x0,'isToggleable':!0x0,'label':_0x41c929,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x35fba4['plugins']['has']('TrackChangesPreview')&&_0x1efd51['addMany']([{'type':'separator'},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3213ae of _0x1efd51)if(ke(_0x3213ae)){const _0x3a5a3e=_0x35fba4['commands']['get'](_0x3213ae['model']['commandName']);_0x3213ae['model']['bind']('isOn','isEnabled')['to'](_0x3a5a3e,'value','isEnabled');}_0x35fba4['ui']['componentFactory']['add']('trackChanges',_0x1f2da9=>this['_createToolbarButton'](_0x1f2da9,_0x1efd51,_0x41c929)),_0x35fba4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3eeccb=>this['_createMenuBarMenu'](_0x3eeccb,_0x1efd51,_0x41c929));}['_createToolbarButton'](_0x34b562,_0x4bb64f,_0x394a58){const _0x4f3a81=_0x1e80c3(_0x34b562,_0x552a5f),_0x3c27d2=this['editor']['commands']['get']('trackChanges');_0x4f3a81['buttonView']['set']({'tooltip':_0x394a58,'label':_0x394a58,'icon':_0x2f5b1a}),_0x4f3a81['buttonView']['bind']('isOn')['to'](_0x3c27d2,'value'),_0x4f3a81['buttonView']['on']('execute',()=>{_0x3c27d2['execute'](),this['editor']['editing']['view']['focus']();}),_0x56cc45(_0x4f3a81,_0x4bb64f,{'role':'menu'});const _0x5be482=[];for(const _0xee336c of _0x4bb64f)ke(_0xee336c)&&_0x5be482['push'](this['editor']['commands']['get'](_0xee336c['model']['commandName']));const _0x5088a2=_0x4f3a81['buttonView'];return _0x5088a2['actionView']['unbind']('isEnabled'),_0x5088a2['arrowView']['unbind']('isEnabled'),_0x5088a2['actionView']['bind']('isEnabled')['to'](_0x3c27d2,'isEnabled'),_0x5088a2['arrowView']['bind']('isEnabled')['toMany'](_0x5be482,'isEnabled',(..._0x54f444)=>_0x54f444['some'](_0x29b87e=>_0x29b87e)),_0x4f3a81['on']('execute',_0x2639c4=>{this['editor']['execute'](_0x2639c4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4f3a81;}['_createMenuBarMenu'](_0x1ecba6,_0x2870e8,_0x22684a){const _0x2dde9d=new _0x2f852e(_0x1ecba6),_0x506995=this['editor']['commands']['get']('trackChanges');_0x2dde9d['buttonView']['set']({'label':_0x22684a,'icon':_0x2f5b1a});const _0x3daf20=new _0xa85213(_0x1ecba6);for(const _0x403e03 of _0x2870e8){if('separator'==_0x403e03['type']){_0x3daf20['items']['add'](new _0x381151(_0x1ecba6));continue;}const _0x5c6c9b=new _0x32fd6e(_0x1ecba6,_0x2dde9d),_0x2f1751=new _0x5ce50d(_0x1ecba6),_0x15cfce=_0x403e03['model'];_0x2f1751['bind'](...Object['keys'](_0x15cfce))['to'](_0x15cfce),_0x2f1751['delegate']('execute')['to'](_0x2dde9d),_0x2f1751['on']('execute',()=>{this['editor']['execute'](_0x15cfce['commandName']),this['editor']['editing']['view']['focus']();}),_0x5c6c9b['children']['add'](_0x2f1751),_0x3daf20['items']['add'](_0x5c6c9b);}return _0x2dde9d['bind']('isEnabled')['to'](_0x506995,'isEnabled'),_0x2dde9d['panelView']['children']['add'](_0x3daf20),_0x2dde9d;}['_initializeController'](_0x9c0179){const _0x5a8483=this['editor'],_0x49bf04=_0x5a8483['config'],_0x24c815=_0x5a8483['plugins']['get']('Annotations'),_0x1519a7=_0x5a8483['plugins']['get']('CommentsRepository'),_0x175632=_0x5a8483['plugins']['get']('EditorAnnotations'),_0x317e0f=_0x5a8483['plugins']['get'](_0x597f1a)['me'],_0x54eb7c=_0x49bf04['get']('trackChanges')['SuggestionThreadView'],_0x3fa1da=_0x49bf04['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2b4fbe,CommentThreadInputView:_0x9575be}=_0x5a8483['plugins']['get']('CommentsUI');let _0x228758,_0xeb176,_0x1b282f;this['_annotationViews']['has'](_0x9c0179['id'])?(_0xeb176=this['_annotationViews']['get'](_0x9c0179['id']),_0x228758=_0xeb176['mainView']):(_0x228758=new _0x54eb7c(_0x5a8483['locale'],_0x9c0179,_0x317e0f,{'disableComments':this['_disableComments'],'editorConfig':{..._0x49bf04['get']('comments.editorConfig'),'licenseKey':_0x49bf04['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x49bf04['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x49bf04['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x49bf04['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4f5d71(_0x49bf04['get']('locale'),_0x5a8483['locale']),'CommentView':_0x49bf04['get']('comments')['CommentView'],'CommentsListView':_0x2b4fbe,'CommentThreadInputView':_0x9575be,'SuggestionView':_0x3fa1da}),_0x228758['suggestionView']['acceptButton']['on']('execute',()=>{_0x5a8483['editing']['view']['focus']();}),_0x228758['suggestionView']['discardButton']['on']('execute',()=>{_0x5a8483['editing']['view']['focus']();}),_0xeb176=_0x24c815['createAnnotationView'](this['editor']['locale'],_0x228758),_0xeb176['bind']('isDirty')['to'](_0x228758,'isDirty'),_0xeb176['bind']('length')['to'](_0x228758),_0xeb176['bind']('type')['to'](_0x228758,'type',_0x6c2355=>'suggestion-'+_0x6c2355),_0x228758['on']('escape',()=>{_0x1b282f['fire']('escape');}),this['_annotationViews']['set'](_0x9c0179['id'],_0xeb176));const _0x5c0715=_0x1519a7['createCommentThreadController'](_0x9c0179['commentThread'],_0x228758),_0x5b8f09=new pe(_0x5a8483,_0x9c0179,_0x228758,_0x5c0715),_0x3e40bd=_0x9c0179['getAllAdjacentSuggestions']()['filter'](_0x5502ba=>_0x5502ba['isInContent']);_0x228758['descriptionParts']=_0x5a8483['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3e40bd),this['_suggestionToController']['set'](_0x9c0179,_0x5b8f09),this['_viewToController']['set'](_0x228758,_0x5b8f09),_0x1b282f=_0x24c815['createAnnotation']({'view':_0xeb176,'target':()=>{const _0x7327c=[],_0xd9abcb=_0x9c0179['getAllAdjacentSuggestions']()['filter'](_0x3074d9=>_0x3074d9['isInContent']);for(const _0x5beb6c of _0xd9abcb)_0x7327c['push'](..._0x5beb6c['getMarkers']());return _0x3a0d9a(_0x5a8483['editing'],_0x7327c);},'type':()=>'suggestion-'+_0x5b8f09['view']['type']}),_0x1519a7['_bindAnnotationToEditors'](_0x228758,_0x1b282f),_0x24c815['add'](_0x1b282f),_0x175632['registerAnnotation'](_0x1b282f);}['_destroyController'](_0x46730c){const _0xdf4d16=this['editor']['plugins']['get']('CommentsRepository'),_0x2ab652=this['editor']['plugins']['get']('Annotations'),_0x54bf61=this['_suggestionToController']['get'](_0x46730c),_0x182b0b=_0x54bf61['view'],_0x202094=_0x2ab652['getByInnerView'](_0x182b0b);_0xdf4d16['_unbindEditors'](_0x182b0b),_0x202094&&_0x2ab652['remove'](_0x202094),this['_suggestionToController']['delete'](_0x46730c),this['_viewToController']['delete'](_0x182b0b),_0x54bf61['destroy']();}['_updateController'](_0x107d65){if(!_0x107d65['isInContent']||!this['_suggestionToController']['has'](_0x107d65))return;const _0x2ce008=this['editor']['plugins']['get']('TrackChangesEditing'),_0x229463=this['_suggestionToController']['get'](_0x107d65),_0x2a37b7=_0x107d65['getAllAdjacentSuggestions']();_0x229463['view']['descriptionParts']=_0x2ce008['descriptionFactory']['getDescriptions'](_0x2a37b7);}['destroy'](){for(const _0x40bc4f of this['_suggestionToController']['keys']())this['_destroyController'](_0x40bc4f);for(const _0x3363d1 of this['_annotationViews']['values']())_0x3363d1['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2e486b){return'model'in _0x2e486b;}class Fe extends _0x559983{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4e470c){this['editor']['plugins']['get'](d)['adapter']=_0x4e470c;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x37f429){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x37f429);}['getSuggestions']({skipNotAttached:_0x51d968=!0x1,toJSON:_0x5c0160=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x51d968,'toJSON':_0x5c0160});}['getSuggestion'](_0x4ecf16){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x4ecf16);}}const p=['Pagination'];class re extends _0x559983{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2e3e59=this['editor'];if(_0x2e3e59['config']['define']('trackChangesData.editorCreator',_0x4f00e9=>{const _0x14344d=_0x2e3e59['model']['document']['getRootNames']()['reduce']((_0x10c1aa,_0x12e03c)=>(_0x10c1aa[_0x12e03c]='',_0x10c1aa),{});return _0x2e3e59['constructor']['create'](_0x14344d,_0x4f00e9);}),'function'!=typeof _0x2e3e59['config']['get']('trackChangesData')['editorCreator'])throw new _0x346a74('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x47bf8c){return P(this['editor'],!0x0,_0x47bf8c);}['getDataWithDiscardedSuggestions'](_0x20e1af){return P(this['editor'],!0x1,_0x20e1af);}}class Ge extends _0x559983{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1385dc){function _0x58fc20(_0x4b64d1){return _0x4b64d1['map'](_0x22f813=>String['fromCharCode'](_0x22f813))['join']('');}super(_0x1385dc),this['result']='end',_0x1385dc[_0x58fc20([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58fc20([0x76,0x69,0x65,0x77])][_0x58fc20([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58fc20([0x61,0x75,0x74,0x6f]),_0x1385dc[_0x58fc20([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x58fc20([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58fc20([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x58fc20([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x58fc20([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(_0x1c90f4){return void 0x0!==_0x1c90f4['getRootsAttributes'];}async function P(_0xdf611,_0x7afc97,_0x4d2933){const _0x12148f=_0x17c6af(_0xdf611,p);_0x12148f['plugins']['push'](d,Ge),_0x12148f['rootsAttributes']=He(_0xdf611)?_0xdf611['getRootsAttributes']():void 0x0;const _0x3247e7=document['createDocumentFragment'](),_0x5a6204=_0xdf611['config']['get']('trackChangesData')['editorCreator'],_0x2c4d4c=await _0x5a6204(_0x12148f,()=>function(_0x5b552c){const _0x23480c=document['createElement']('div');return _0x5b552c['appendChild'](_0x23480c),_0x23480c;}(_0x3247e7));!function(_0x536be4,_0x3b8f27){const _0x33b580=_0x536be4['model']['document']['getRootNames']()['reduce']((_0x25ec2d,_0x5dbfb4)=>(_0x25ec2d[_0x5dbfb4]=_0x536be4['data']['get']({'rootName':_0x5dbfb4}),_0x25ec2d),{}),_0x27e1bd=_0x536be4['plugins']['get']('Users')['users']['map'](_0x25fb80=>({'id':_0x25fb80['id'],'name':_0x25fb80['name']})),_0x4f7bd2=_0x536be4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x217edc=_0x536be4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x191141=_0x3b8f27['plugins']['get']('Users'),_0x3236ca=_0x3b8f27['plugins']['get']('TrackChangesEditing'),_0x100ef8=_0x3b8f27['plugins']['get']('CommentsRepository');for(const _0xd85748 of _0x100ef8['getCommentThreads']())_0xd85748['remove']();for(const _0x26df00 of _0x27e1bd)_0x191141['getUser'](_0x26df00['id'])||_0x191141['addUser'](_0x26df00);_0x191141['me']||_0x191141['useAnonymousUser']();for(const _0x3cffc4 of _0x217edc)_0x100ef8['addCommentThread'](_0x3cffc4);for(const _0x26350f of _0x4f7bd2)_0x3236ca['addSuggestionData'](_0x26350f);_0x3b8f27['data']['set'](_0x33b580);}(_0xdf611,_0x2c4d4c),_0x2c4d4c['execute'](_0x7afc97?'acceptAllSuggestions':'discardAllSuggestions');const _0x3e4e70=He(_0x2c4d4c)?_0x2c4d4c['getFullData'](_0x4d2933):_0x2c4d4c['data']['get'](_0x4d2933);return await _0x2c4d4c['destroy'](),_0x3e4e70;}class Me extends _0x59a488{['options'];constructor(_0x32214f,_0x421226){super(_0x32214f),this['options']=_0x421226,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'](_0x223509,_0xb553f6){if(!this['element'])return;const _0x2029cf=[];for(const [_0x206b44,_0x2388f2]of _0x223509){const _0x1fbd00=document['createElement']('div');_0x1fbd00['setAttribute']('data-ck-root-name',_0x206b44),_0x1fbd00['className']=_0x2388f2['classes']+'\x20ck-track-changes-preview__root-container',_0x1fbd00['innerHTML']=_0x2388f2['content'],_0x2029cf['push'](_0x1fbd00);}_0xb553f6(this['element'],_0x2029cf),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x1ceda1{constructor(_0x53efba){super(_0x53efba),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x510332=this['editor'],_0x3a1494=_0x510332['locale'],_0x3b577e=_0x510332['plugins']['get']('Dialog');let _0x2ece02;const _0x560705=function(_0x337c2e){const _0x2baf30={};if('editables'in _0x337c2e['ui']['view']){for(const [_0x3c068f,_0x507ce0]of Object['entries'](_0x337c2e['ui']['view']['editables']))_0x2baf30[_0x3c068f]=_0x507ce0['element'];}else _0x2baf30[_0x337c2e['model']['document']['getRootNames']()[0x0]]=_0x337c2e['ui']['view']['editable']['element'];return _0x2baf30;}(_0x510332),_0x4625b0=function(_0x4e9299){let _0xfc975=0x0;for(const _0x3b4deb of Object['values'](_0x4e9299))_0xfc975=Math['max'](_0xfc975,_0x3b4deb['getBoundingClientRect']()['width']);let _0x499e78=0x0;for(const _0x21a907 of Object['values'](_0x4e9299))_0x499e78+=_0x21a907['getBoundingClientRect']()['height'];const _0xbadc94=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x441dbc=Math['min'](_0x499e78,_0xbadc94);return{'width':_0xfc975,'height':_0x441dbc};}(_0x560705);_0x3b577e['show']({'id':'finalContentPreview','title':o(_0x3a1494,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3a1494,{'dialogRects':_0x4625b0}),'onHide':()=>{_0x2ece02['detachFromDom']();},'onShow':()=>{_0x510332['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4b1a1c=>{const _0x17639a=this['_standarizeRootsData'](_0x4b1a1c,_0x510332,_0x560705);_0x3b577e['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x17639a,_0x510332['config']['get']('trackChanges.preview.renderFunction'));}),_0x2ece02=new _0x107e82(_0x3a1494,[_0x3b577e['view']]),_0x2ece02['attachToDom'](),_0x2ece02['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x510332['once']('destroy',()=>{_0x2ece02['detachFromDom']();});const _0x2ad7ae=_0x3b577e['view']['headerView']['class'];_0x3b577e['view']['headerView']['class']=_0x2ad7ae?_0x2ad7ae+'\x20ck-reset_all':'ck-reset_all',_0x3b577e['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3b577e['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x244881=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4298cf=_0x244881['previewMode'],_0x544a57={};if('$labels'===_0x4298cf){for(const _0x4c1b1a of _0x244881['getMergeFieldsIds']())_0x544a57[_0x4c1b1a]=_0x244881['getLabel'](_0x4c1b1a)||_0x4c1b1a;}else{const _0x478dc6='$defaultValues'===_0x4298cf?_0x244881['getDefaultValues']():_0x244881['getDataSetValues'](_0x4298cf,!0x0);for(const _0x460d7d of Object['entries'](_0x478dc6)){const [_0x272124,_0x40510b]=_0x460d7d;_0x544a57[_0x272124]=null!==_0x40510b?_0x40510b:_0x244881['getLabel'](_0x272124)||_0x272124;}}return{'mergeFieldsData':_0x544a57};}['_standarizeRootsData'](_0x4111aa,_0x59a31b,_0x6286ae){let _0x18c35f;if('string'==typeof _0x4111aa){const _0x46ebd1=_0x59a31b['model']['document']['getRootNames']()[0x0];_0x18c35f={[_0x46ebd1]:_0x4111aa};}else _0x18c35f=_0x4111aa;const _0x2767e7=this['_fixMediaEmbeds'](_0x18c35f,_0x59a31b),_0x153e36=function(_0x29ec41,_0x56a1dd){for(const [_0x390807,_0x5e0055]of _0x29ec41)_0x5e0055['classes']=_0x56a1dd[_0x390807]['classList']['value']['replace']('ck-focused','');return _0x29ec41;}(this['_sortRoots'](_0x59a31b)['reduce']((_0x21aa92,_0x2cbe6b)=>(_0x21aa92['push']([_0x2cbe6b,{'content':_0x2767e7[_0x2cbe6b],'classes':''}]),_0x21aa92),[]),_0x6286ae);return _0x153e36;}['_fixMediaEmbeds'](_0x49f20a,_0x5d96ca){if(!_0x5d96ca['plugins']['has']('MediaEmbedEditing'))return _0x49f20a;const _0x527574=_0x5d96ca['plugins']['get']('MediaEmbedEditing');for(const [_0x166e4c,_0x5bfc81]of Object['entries'](_0x49f20a)){const _0xae0037=document['createElement']('div');_0xae0037['innerHTML']=_0x5bfc81,(_0xae0037['querySelectorAll']('figure.media')['forEach'](_0x210422=>{const _0x9b35ab=_0x210422['querySelector']('oembed');if(_0x9b35ab){const _0x252f9b=_0x9b35ab['getAttribute']('url');if(_0x252f9b){const _0x272a12=_0x527574['registry']['getMediaViewElement'](new _0x3be5d0(_0x5d96ca['editing']['view']['document']),_0x252f9b,{'elementName':'','renderForEditingView':!0x0}),_0x450551=document['createElement']('div');_0x450551['classList']['add']('ck-media__wrapper'),_0x272a12['render'](_0x450551,_0x5d96ca['editing']['view']['domConverter']),_0x9b35ab['replaceWith'](_0x450551);}}}),_0x49f20a[_0x166e4c]=_0xae0037['innerHTML']);}return _0x49f20a;}['_sortRoots'](_0x408b5e){if(!function(_0x1a27b3){return void 0x0!==_0x1a27b3['getRootsAttributes'];}(_0x408b5e))return _0x408b5e['model']['document']['getRootNames']();const _0xf9c280=[],_0x154d48=new Map();for(const _0x336c90 of _0x408b5e['model']['document']['getRootNames']()){const _0x4a3218=_0x408b5e['editing']['view']['getDomRoot'](_0x336c90)['getClientRects']()['item'](0x0);_0xf9c280['push'](_0x336c90),_0x154d48['set'](_0x336c90,_0x4a3218);}return _0xf9c280['sort']((_0x2161d5,_0x22cb8a)=>{const _0x6f04b2=_0x154d48['get'](_0x2161d5),_0x524a10=_0x154d48['get'](_0x22cb8a);return _0x6f04b2['y']-_0x524a10['y']||_0x6f04b2['x']-_0x524a10['x'];}),_0xf9c280;}}class $e extends _0x559983{static get['requires'](){return[re,_0x401523];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b200f){super(_0x5b200f),_0x5b200f['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5b200f['config']['define']('trackChanges.preview.renderFunction',(_0x57df4e,_0x3cfaf2)=>{for(const _0x34523e of _0x3cfaf2)_0x57df4e['appendChild'](_0x34523e);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ 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,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
|
|
23
|
+
import{Command as _0x198a09,Plugin as _0x23c4fa,PendingActions as _0x4f77ce}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x56041c,ObservableMixin as _0x556f35,uid as _0x1ddc4e,priorities as _0x39895b,insertToPriorityArray as _0x172c25,toArray as _0x2d7983,logWarning as _0x2f9518,getEnvKeystrokeText as _0x1b1eca,FocusTracker as _0x12f099,KeystrokeHandler as _0x4f58c8,Collection as _0x2f98bb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x221761,IconCancel as _0x26ae57,IconTrackChanges as _0xd59b28}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x45b456,View as _0x58c18a,ViewCollection as _0x34386b,FocusCycler as _0x516fc9,UIModel as _0x49297f,createDropdown as _0x168a33,SplitButtonView as _0x33afd2,addListToDropdown as _0x470887,MenuBarMenuView as _0x1ea40b,MenuBarMenuListView as _0x42e65e,ListSeparatorView as _0x429aa1,MenuBarMenuListItemView as _0x54e8b2,MenuBarMenuListItemButtonView as _0xd913d0,BodyCollection as _0xaaa87,Dialog as _0x21450c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3fc7e4,hashObject as _0x3a177d,surroundingMarkersDetector as _0x225543,FOCUS_ANNOTATION_KEYSTROKE as _0x42da23,AriaDescriptionView as _0x452c4c,setupThreadKeyboardNavigation as _0x24f08c,trimHtml as _0x25c702,UserView as _0x2f54f7,LateFocusButtonView as _0x1406bf,getDateTimeFormatter as _0x112bec,getAllMarkersDomElementsSorted as _0xcaa826,sanitizeEditorConfig as _0x560495}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x18774c,ModelLiveRange as _0x5edbdb,ModelLivePosition as _0x5284b3,ViewDowncastWriter as _0x2ddaeb}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1fe05e,toWidget as _0x5c1420}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x46fa13,set as _0x3cfd48,isEqual as _0x18e44d,unset as _0x36784e,omit as Ut}from'es-toolkit/compat';import{Delete as _0x18a255,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1a3569}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x9a8ce4}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x198a09{['_enabledCommands'];constructor(_0x3a692c,_0x104a0b){super(_0x3a692c),this['_enabledCommands']=_0x104a0b,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 _0x51e48d of this['editor']['commands']['commands']())_0x51e48d['affectsData']&&!this['_enabledCommands']['has'](_0x51e48d)&&_0x51e48d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x159bf8 of this['editor']['commands']['commands']())_0x159bf8['affectsData']&&!this['_enabledCommands']['has'](_0x159bf8)&&_0x159bf8['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x198a09{['_suggestions'];constructor(_0x13af8f,_0x31f1cc){super(_0x13af8f),this['_suggestions']=_0x31f1cc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x46de33){const _0x2eec42=this['_suggestions']['get'](_0x46de33);if(!_0x2eec42)throw new _0x56041c('track-changes-accept-suggestion-not-found',this);const _0xc85721=_0x2eec42['getRanges']();this['editor']['model']['canEditAt'](_0xc85721)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2eec42);}}class M extends _0x198a09{['_suggestions'];constructor(_0x715035,_0x6ad911){super(_0x715035),this['_suggestions']=_0x6ad911,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1083e6){const _0x149f66=this['_suggestions']['get'](_0x1083e6);if(!_0x149f66)throw new _0x56041c('track-changes-discard-suggestion-not-found',this);const _0x586a12=_0x149f66['getRanges']();this['editor']['model']['canEditAt'](_0x586a12)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x149f66);}}function ls(_0x3e61fa,_0x35d8d5){let _0xd435ce='';return _0xd435ce+=_0x3e61fa['split']('*')['map']((_0x1db816,_0x15a9ab)=>_0x15a9ab%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x1db816)+'</span>':tn(_0x1db816))['join'](''),_0x35d8d5&&(_0xd435ce+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x35d8d5['value']+'\x22\x20title=\x22'+_0x35d8d5['title']+'\x22></span>'),_0xd435ce;}function tn(_0x316bc1){const _0x49c302=document['createElement']('span');return _0x49c302['innerText']=_0x316bc1,_0x49c302['innerHTML'];}function ts(_0x3aa9eb){return _0x3aa9eb['sort']((_0x3b8bae,_0x368869)=>'attribute'===_0x3b8bae['type']&&'attribute'!==_0x368869['type']?-0x1:'attribute'!==_0x3b8bae['type']&&'attribute'===_0x368869['type']?0x1:'deletion'==_0x3b8bae['type']&&'deletion'!=_0x368869['type']?-0x1:'deletion'!=_0x3b8bae['type']&&'deletion'==_0x368869['type']?0x1:0x0);}function Zt(_0x3bb9c3,_0x4dc7e2){let _0x2a69f4,_0x29bd63=0x0;const _0x3a15c7=[],_0x150fcc=_0x4dc7e2['schema'];for(;_0x29bd63<_0x3bb9c3['length'];){const _0x568a4b=_0x3bb9c3[_0x29bd63],_0x58bd47=_0x3bb9c3[_0x29bd63+0x1];_0x2a69f4||(_0x2a69f4=_0x4dc7e2['createPositionBefore'](_0x568a4b)),nn(_0x4dc7e2,_0x568a4b,_0x58bd47)||(_0x3a15c7['push'](_0x4dc7e2['createRange'](_0x2a69f4,_0x150fcc['isObject'](_0x568a4b)?_0x4dc7e2['createPositionAfter'](_0x568a4b):_0x4dc7e2['createPositionAt'](_0x568a4b,'end'))),_0x2a69f4=null),_0x29bd63++;}return _0x3a15c7;}function nn(_0x307bc2,_0xe66db4,_0x2cacd5){if(!_0x2cacd5)return!0x1;const _0x3e0945=_0x307bc2['createPositionAfter'](_0xe66db4),_0x1c412c=_0x307bc2['createPositionBefore'](_0x2cacd5);return _0x3e0945['isTouching'](_0x1c412c);}function rs(_0x1a62b3,_0x29b50c,_0x2dc57b){for(;_0x2dc57b['length'];){const _0x1b1e7a=_0x2dc57b['splice'](0x0,0x64);_0x1a62b3['change'](()=>{for(const _0x5ec39d of _0x1b1e7a)_0x5ec39d['isInContent']&&_0x29b50c['execute'](_0x5ec39d['id']);});}}class $ extends _0x198a09{['_command'];['_suggestions'];constructor(_0x227dfc,_0x22f45d,_0x170ef5){super(_0x227dfc),this['_command']=_0x22f45d,this['_suggestions']=_0x170ef5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x30cedf=Array['from'](this['_suggestions']['values']())['some'](_0x2d37cd=>_0x2d37cd['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x30cedf;}['execute'](){const _0x273a11=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3ed126 of _0x273a11){const _0x11d069=_0x3ed126['getRanges']();if(!this['editor']['model']['canEditAt'](_0x11d069))return;}rs(this['editor']['model'],this['_command'],_0x273a11);}}class B extends _0x198a09{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x8b081f,_0x429890,_0x21989f){super(_0x8b081f),this['_command']=_0x429890,this['_suggestions']=_0x21989f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x54f19e=this['editor']['model']['document']['selection'],_0x435d4b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5980a8,_0x23ede4){const _0x37b98e=Array['from'](_0x5980a8['getRanges']()),_0x4fdeaa=new Set();for(const _0x417d33 of _0x23ede4)if(_0x417d33['isInContent']){for(const _0x59633 of _0x37b98e)for(const _0x56fea7 of _0x417d33['getRanges']())(_0x59633['isIntersecting'](_0x56fea7)||_0x5980a8['isCollapsed']&&!_0x417d33['isMultiRange']&&_0x417d33['next']&&_0x56fea7['end']['isTouching'](_0x59633['start']))&&_0x4fdeaa['add'](_0x417d33);}return _0x4fdeaa;}(_0x54f19e,_0x435d4b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2902fb=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4879e5 of _0x2902fb){const _0x318ac6=_0x4879e5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x318ac6))return;}rs(this['editor']['model'],this['_command'],_0x2902fb);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x556f35(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5e014f,_0x59488d){super(),this['id']=_0x59488d['id'],this['type']=_0x59488d['type'],this['subType']=_0x59488d['subType']||null,this['author']=_0x59488d['author'],this['creator']=_0x59488d['creator']||_0x59488d['author'],this['isExternal']=Boolean(_0x59488d['attributes']&&_0x59488d['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x59488d['originalSuggestionId']||null,this['_model']=_0x5e014f,this['_onAccept']=_0x59488d['onAccept'],this['_onDiscard']=_0x59488d['onDiscard'],this['_onAttributesChange']=_0x59488d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x59488d['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 _0x58ba8c=this;for(;_0x58ba8c['previous'];)_0x58ba8c=_0x58ba8c['previous'];return _0x58ba8c;}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'](_0x4f9dba){this['_markerNames']['add'](_0x4f9dba);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x303f4e=>this['_model']['markers']['get'](_0x303f4e))['filter'](_0x47e14e=>_0x47e14e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2b1624=>{for(const _0x64ea1f of this['getMarkers']())_0x2b1624['removeMarker'](_0x64ea1f);}),this['_markerNames']['clear']();}['removeMarker'](_0xfb68af){this['_model']['change'](_0x5089f9=>{_0x5089f9['removeMarker'](_0xfb68af);}),this['_markerNames']['delete'](_0xfb68af);}['addRange'](_0x22a5b7){const _0x15e91d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x15e91d),this['_model']['change'](_0x3034e5=>{_0x3034e5['addMarker'](_0x15e91d,{'range':_0x22a5b7,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5329d5){for(const _0x55e0f8 of this['getRanges']())if(_0x55e0f8['isIntersecting'](_0x5329d5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x45cfbf=>_0x45cfbf['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3f48b8,_0x3825bd)=>[..._0x3f48b8,..._0x3825bd['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4cb9e4=this['getRanges']();if(0x1!=_0x4cb9e4['length'])return null;const _0x2579ad=_0x4cb9e4[0x0],_0x201c84=_0x2579ad['start']['nodeAfter'],_0x4529e6=_0x2579ad['end']['nodeBefore'];return _0x201c84 instanceof _0x18774c?_0x201c84!=_0x4529e6?null:_0x201c84: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 _0x5cef0c=[];let _0xb1fbfb=this['head'];for(;_0xb1fbfb;)_0x5cef0c['push'](_0xb1fbfb),_0xb1fbfb=_0xb1fbfb['next'];return _0x5cef0c;}['setAttribute'](_0x58d736,_0x4e0902){const _0x2c1522=_0x46fa13(this['attributes']);_0x3cfd48(_0x2c1522,_0x58d736,_0x4e0902),_0x18e44d(_0x2c1522,this['attributes'])||(this['attributes']=_0x2c1522,this['_onAttributesChange'](_0x2c1522));}['removeAttribute'](_0x4fd4f5){const _0x6ae527=_0x46fa13(this['attributes']);_0x36784e(_0x6ae527,_0x4fd4f5),_0x18e44d(_0x6ae527,this['attributes'])||(this['attributes']=_0x6ae527,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 _0x1ddc4e()['substr'](0x1,0x5);}}function o(_0x41852a,_0x2ea6ce,_0x3cf6a4){const _0x56514c=_0x41852a['t'],t=_0x41852a['t'];switch(_0x2ea6ce){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',_0x3cf6a4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3cf6a4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3cf6a4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3cf6a4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3cf6a4);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',_0x3cf6a4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3cf6a4);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',_0x3cf6a4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3cf6a4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3cf6a4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3cf6a4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3cf6a4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3cf6a4);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3cf6a4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3cf6a4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3cf6a4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3cf6a4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3cf6a4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3cf6a4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3cf6a4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3cf6a4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3cf6a4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3cf6a4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3cf6a4);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3cf6a4);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'},_0x3cf6a4);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3cf6a4);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3cf6a4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3cf6a4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3cf6a4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3cf6a4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3cf6a4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3cf6a4);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'},_0x3cf6a4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3cf6a4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3cf6a4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3cf6a4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3cf6a4);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'},_0x3cf6a4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3cf6a4);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'},_0x3cf6a4);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'},_0x3cf6a4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3cf6a4);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'},_0x3cf6a4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3cf6a4);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'},_0x3cf6a4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3cf6a4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3cf6a4);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'},_0x3cf6a4);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3cf6a4);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 _0x56514c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3cf6a4);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x56514c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3cf6a4);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3cf6a4);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'},_0x3cf6a4);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'},_0x3cf6a4);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'},_0x3cf6a4);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2ea6ce;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x8a688e,_0x39ef50){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x8a688e,this['_locale']=_0x39ef50;}['getDescriptions'](_0x5116db){const _0x5285ac=[],_0x57fc11=new Set(),_0x55c322=new Set();for(let _0x1b4c87=0x0;_0x1b4c87<_0x5116db['length'];_0x1b4c87++){const _0xbabeb2=_0x5116db[_0x1b4c87];if(!_0xbabeb2['isInContent'])continue;const _0x1af574=this['_handleCustomCallbackDescription'](_0xbabeb2);if(_0x1af574){if(null!=_0xbabeb2['subType']){if(_0x57fc11['has'](_0xbabeb2['subType']))continue;_0x57fc11['add'](_0xbabeb2['subType']);}_0x5285ac['push'](_0x1af574);}else{if('attribute'==_0xbabeb2['type']){const _0x5e54cc=_0xbabeb2['data']['key'];if(_0x55c322['has'](_0x5e54cc))continue;_0x55c322['add'](_0xbabeb2['data']['key']),_0x5e54cc==m?this['_handleRenameSuggestionDescription'](_0x5285ac,_0xbabeb2):this['_handleAttributeSuggestionDescription'](_0x5285ac,_0xbabeb2);continue;}'insertion'!=_0xbabeb2['type']&&'deletion'!=_0xbabeb2['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5285ac,_0xbabeb2,_0x5116db[_0x1b4c87+0x1]);}}return this['_resolveDescriptionItems'](_0x5285ac);}['registerDescriptionCallback'](_0x106168){this['_customCallbacks']['push'](_0x106168);}['registerElementLabel'](_0x2e7038,_0x63bf60,_0x15efbd=_0x39895b['normal']){'function'==typeof _0x2e7038?_0x172c25(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2e7038,'label':_0x63bf60,'priority':_0x15efbd}):this['_itemLabels']['set'](_0x2e7038,_0x63bf60);}['registerAttributeLabel'](_0x2824a3,_0x5bc714){this['_attributeLabels']['set'](_0x2824a3,_0x5bc714);}['getItemLabel'](_0x2c1a31,_0x396f6f=0x1){let _0x57a28c;for(const _0x561e3f of this['_itemLabelsCallbacks'])if(_0x561e3f['matchingCallback'](_0x2c1a31)){_0x57a28c=_0x561e3f['label'];break;}return _0x57a28c||(_0x57a28c=this['_itemLabels']['get'](_0x2c1a31['name'])),_0x57a28c?_0x57a28c(_0x396f6f):0x1!==_0x396f6f?_0x396f6f+'\x20'+_0x2c1a31['name']+'s':''+_0x2c1a31['name'];}['_addDescriptionItems'](_0x33b52c,_0x4e77c1){const _0x474779=_0x4e77c1['getFirstRange']()['getWalker'](),_0x45d20a='insertion'==_0x4e77c1['type']?'add':'remove';for(const _0x354d2a of _0x474779){const _0x529063=_0x354d2a['item'],_0x2480bd=_0x33b52c[_0x33b52c['length']-0x1];if(_0x529063['is']('$textProxy'))_0x2480bd&&_0x2480bd['type']['indexOf']('Container')>-0x1&&_0x33b52c['pop'](),_0x2480bd&&'text'==_0x2480bd['type']?_0x2480bd[_0x45d20a]+=_0x529063['data']:_0x33b52c['push']({'type':'text','add':'add'==_0x45d20a?_0x529063['data']:'','remove':'remove'==_0x45d20a?_0x529063['data']:''});else{if(this['_schema']['isObject'](_0x529063)){const _0x4dce82=_0x529063;if(_0x2480bd&&_0x2480bd['type']['indexOf']('Container')>-0x1&&_0x33b52c['pop'](),'elementEnd'==_0x354d2a['type'])continue;_0x2480bd&&_0x2480bd['type']==_0x45d20a+'Object'&&_0x2480bd['element']['name']==_0x4dce82['name']?_0x2480bd['quantity']++:_0x33b52c['push']({'type':_0x45d20a+'Object','element':_0x4dce82,'quantity':0x1}),_0x474779['skip'](_0x3a11c6=>!('elementEnd'==_0x3a11c6['type']&&_0x3a11c6['item']==_0x529063));}else{if(this['_schema']['checkChild'](_0x529063,'$text')||_0x529063['is']('element','softBreak')){const _0xb6b114=_0x529063;if('add'==_0x45d20a&&'elementStart'==_0x354d2a['type']||'remove'==_0x45d20a&&'elementEnd'==_0x354d2a['type'])continue;if(_0x2480bd&&-0x1==_0x2480bd['type']['indexOf']('Container')){'text'==_0x2480bd['type']&&(_0x2480bd[_0x45d20a]+='\x0a');continue;}let _0x27ee89;if(_0x27ee89='add'==_0x45d20a?_0xb6b114['nextSibling']&&!this['_schema']['isObject'](_0xb6b114['nextSibling'])?_0xb6b114['nextSibling']:null:_0xb6b114['previousSibling']&&!this['_schema']['isObject'](_0xb6b114['previousSibling'])?_0xb6b114['previousSibling']:null,_0xb6b114['isEmpty']||_0x27ee89&&_0x27ee89['isEmpty']){const _0x48812e=_0x27ee89&&_0x27ee89['isEmpty']?_0x27ee89:_0xb6b114;_0x2480bd&&_0x2480bd['type']==_0x45d20a+'EmptyContainer'&&_0x2480bd['element']['name']==_0x48812e['name']?_0x2480bd['quantity']++:_0x33b52c['push']({'type':_0x45d20a+'EmptyContainer','element':_0x48812e,'quantity':0x1});}else _0x33b52c['push']({'type':_0x45d20a+'Container','element':_0xb6b114});}}}}}['_resolveDescriptionItems'](_0x12d3c4){const _0x373d59=this['_locale'],_0x2d449e=[],_0x189b40=[],_0x5166e2=[];for(const _0x17106c of _0x12d3c4)switch(_0x17106c['type']){case'text':if(_0x17106c['add']=_0x17106c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x17106c['remove']=_0x17106c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x17106c['add']&&''!=_0x17106c['remove']){_0x2d449e['push']({'type':'replace','content':o(_0x373d59,'REPLACE_TEXT',['\x22'+_0x17106c['remove']+'\x22','\x22'+_0x17106c['add']+'\x22'])});continue;}if(null!=_0x17106c['add']['match'](/^ +$/)){_0x2d449e['push']({'type':'insertion','content':o(_0x373d59,'*Insert:*\x20%0',o(_0x373d59,'ELEMENT_SPACE',_0x17106c['add']['length']))});continue;}if(null!=_0x17106c['remove']['match'](/^ +$/)){_0x2d449e['push']({'type':'deletion','content':o(_0x373d59,'*Remove:*\x20%0',o(_0x373d59,'ELEMENT_SPACE',_0x17106c['remove']['length']))});continue;}if(''!=_0x17106c['add']){_0x2d449e['push']({'type':'insertion','content':o(_0x373d59,'*Insert:*\x20%0','\x22'+_0x17106c['add']+'\x22')});continue;}_0x2d449e['push']({'type':'deletion','content':o(_0x373d59,'*Remove:*\x20%0','\x22'+_0x17106c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2d449e['push']({'type':'insertion','content':o(_0x373d59,'*Insert:*\x20%0',this['getItemLabel'](_0x17106c['element'],_0x17106c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2d449e['push']({'type':'deletion','content':o(_0x373d59,'*Remove:*\x20%0',this['getItemLabel'](_0x17106c['element'],_0x17106c['quantity']))});continue;case'addContainer':_0x2d449e['push']({'type':'insertion','content':o(_0x373d59,'*Split:*\x20%0',this['getItemLabel'](_0x17106c['element'],_0x17106c['quantity']))});continue;case'removeContainer':_0x2d449e['push']({'type':'deletion','content':o(_0x373d59,'*Merge:*\x20%0',this['getItemLabel'](_0x17106c['element'],_0x17106c['quantity']))});continue;case'addFormat':_0x189b40['push'](_0x17106c['key']);continue;case'removeFormat':_0x5166e2['push'](_0x17106c['key']);continue;default:_0x2d449e['push'](_0x17106c);}if(_0x189b40['length']){const _0x5bd8a9=_0x189b40['map'](_0x3dd5f5=>this['_attributeLabels']['has'](_0x3dd5f5)?this['_attributeLabels']['get'](_0x3dd5f5):_0x3dd5f5)['join'](',\x20');_0x2d449e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5bd8a9)});}if(_0x5166e2['length']){const _0x13e11d=_0x5166e2['map'](_0x1c365c=>this['_attributeLabels']['has'](_0x1c365c)?this['_attributeLabels']['get'](_0x1c365c):_0x1c365c)['join'](',\x20');_0x2d449e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x13e11d)});}return _0x2d449e;}['_handleCustomCallbackDescription'](_0x433d54){for(const _0x234e8c of this['_customCallbacks']){const _0x22d81b=_0x234e8c(_0x433d54);if(_0x22d81b&&'type'in _0x22d81b)return _0x22d81b;}}['_handleAttributeSuggestionDescription'](_0x16bf6d,_0x339d1c){const _0x24ab26=_0x339d1c['data'],_0x158107=void 0x0===_0x24ab26['newValue']?'removeFormat':'addFormat';_0x16bf6d['push']({'type':_0x158107,'key':_0x24ab26['key']});}['_handleRenameSuggestionDescription'](_0x40a3fc,_0x6e93ac){_0x40a3fc['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x6e93ac['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3fa325,_0x1820b7,_0x40f504){if(this['_addDescriptionItems'](_0x3fa325,_0x1820b7),_0x40f504&&_0x40f504['getFirstRange']()&&!_0x1820b7['getFirstRange']()['end']['isEqual'](_0x40f504['getFirstRange']()['start'])){const _0x4602d6=_0x3fa325[_0x3fa325['length']-0x1],_0x4438e9='insertion'==_0x1820b7['type']?'add':'remove';_0x4602d6&&'text'==_0x4602d6['type']&&(_0x4602d6[_0x4438e9]+='\x0a');}}}class O extends _0x23c4fa{['afterInit'](){const _0x370d40=this['editor'],_0x32e2db=_0x370d40['plugins']['get']('TrackChangesEditing');_0x370d40['commands']['get']('showAIAssistant')&&_0x32e2db['enableCommand']('showAIAssistant');}}class E extends _0x23c4fa{['afterInit'](){const _0x3a2951=this['editor'],_0x314fe0=_0x3a2951['locale'];if(!_0x3a2951['plugins']['has']('AlignmentEditing'))return;const _0x2c0dce=_0x3a2951['plugins']['get']('TrackChangesEditing');_0x2c0dce['enableDefaultAttributesIntegration']('alignment'),_0x2c0dce['registerBlockAttribute']('alignment'),_0x2c0dce['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x314fe0,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59b047=this['editor'],_0x2604bc=_0x59b047['locale'];_0x59b047['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c429e=>{if('formatBlock'!=_0x2c429e['type'])return;const {data:_0xcc714f}=_0x2c429e;if(_0xcc714f&&'alignment'==_0xcc714f['commandName']){const _0x3adb85=_0xcc714f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2604bc,'*Format:*\x20%0',function(_0x31e81a){switch(_0x31e81a){case'left':return o(_0x2604bc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2604bc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2604bc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2604bc,'FORMAT_JUSTIFY_TEXT');}}(_0x3adb85))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x23c4fa{['afterInit'](){const _0x554515=this['editor'],_0x146c79=_0x554515['plugins']['get']('TrackChangesEditing'),_0x27bd53=_0x554515['locale'];for(const _0x3cb85b of Yt){if(!_0x554515['plugins']['has'](_0x3cb85b))continue;const _0x34e216=_0x3cb85b['slice'](0x0,-0x7)['toLowerCase'](),_0x3914f1='FORMAT_'+_0x34e216['toUpperCase']();_0x146c79['enableDefaultAttributesIntegration'](_0x34e216),_0x146c79['registerInlineAttribute'](_0x34e216),_0x146c79['descriptionFactory']['registerAttributeLabel'](_0x34e216,o(_0x27bd53,_0x3914f1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31fdab=this['editor'],_0x59eae8=_0x31fdab['locale'],_0x37c5de=_0x31fdab['plugins']['get']('TrackChangesEditing');function _0x311c28(_0x2cd643,_0x15bd4e){_0x37c5de['descriptionFactory']['registerDescriptionCallback'](_0x3a396d=>{if('formatInline'!=_0x3a396d['type'])return;const {data:_0x490e29}=_0x3a396d;return _0x490e29&&_0x490e29['commandName']===_0x2cd643?_0x490e29['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59eae8,'*Format:*\x20%0',_0x15bd4e)}:{'type':'format','content':o(_0x59eae8,'*Remove\x20format:*\x20%0',_0x15bd4e)}:void 0x0;});}_0x311c28('bold',o(_0x59eae8,'FORMAT_BOLD')),_0x311c28('italic',o(_0x59eae8,'FORMAT_ITALIC')),_0x311c28('underline',o(_0x59eae8,'FORMAT_UNDERLINE')),_0x311c28('code',o(_0x59eae8,'FORMAT_CODE')),_0x311c28('strikethrough',o(_0x59eae8,'FORMAT_STRIKETHROUGH')),_0x311c28('subscript',o(_0x59eae8,'FORMAT_SUBSCRIPT')),_0x311c28('superscript',o(_0x59eae8,'FORMAT_SUPERSCRIPT'));}}class U extends _0x23c4fa{['afterInit'](){const _0x540a53=this['editor'],_0x1acc57=_0x540a53['locale'];if(!_0x540a53['plugins']['has']('BlockQuoteEditing'))return;const _0x4d5b21=_0x540a53['plugins']['get']('TrackChangesEditing'),_0x3e259b=this['editor']['commands']['get']('blockQuote');_0x4d5b21['enableCommand']('blockQuote',(_0x372ab4,_0x12daec={})=>{const _0x30e66e=this['editor']['model']['document']['selection'],_0x40e376=_0x12daec&&void 0x0!==_0x12daec['forceValue']?_0x12daec['forceValue']:!_0x3e259b['value'];let _0x1dae3a=[];if(_0x40e376){const _0x69fab5=Array['from'](_0x30e66e['getSelectedBlocks']())['filter'](_0x3df8b2=>to(_0x3df8b2)||function(_0x3b6953,_0x622ed3){const _0x119d0f=_0x622ed3['checkChild'](_0x3b6953['parent'],'blockQuote'),_0x473773=_0x622ed3['checkChild'](['$root','blockQuote'],_0x3b6953);return _0x119d0f&&_0x473773;}(_0x3df8b2,this['editor']['model']['schema']));_0x1dae3a=Zt(_0x69fab5,_0x540a53['model']);}else{const _0xaa95fc=Array['from'](_0x30e66e['getSelectedBlocks']())['filter'](_0x4964e9=>to(_0x4964e9));_0x1dae3a=Zt(_0xaa95fc,_0x540a53['model']);}_0x540a53['model']['change'](()=>{for(const _0x29c2c1 of _0x1dae3a)_0x4d5b21['markBlockFormat'](_0x29c2c1,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x40e376}]});});}),_0x4d5b21['descriptionFactory']['registerDescriptionCallback'](_0x57f8d7=>{const {data:_0x12f514}=_0x57f8d7;if(_0x12f514&&'blockQuote'==_0x12f514['commandName']){const _0x1551c6=o(_0x1acc57,'ELEMENT_BLOCK_QUOTE');return _0x12f514['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1acc57,'*Set\x20format:*\x20%0',_0x1551c6)}:{'type':'format','content':o(_0x1acc57,'*Remove\x20format:*\x20%0',_0x1551c6)};}});}}function to(_0x2d3d23){return'blockQuote'==_0x2d3d23['parent']['name'];}class V extends _0x23c4fa{['afterInit'](){const _0x4348c1=this['editor'],_0x33ea3e=_0x4348c1['locale'],_0x465299=_0x4348c1['plugins']['get']('TrackChangesEditing');_0x4348c1['plugins']['has']('BookmarkEditing')&&(_0x465299['enableCommand']('insertBookmark'),_0x465299['enableDefaultAttributesIntegration']('updateBookmark'),_0x465299['registerBlockAttribute']('bookmarkId'),_0x465299['descriptionFactory']['registerDescriptionCallback'](_0x39c507=>{if('insertion'!=_0x39c507['type']&&'deletion'!=_0x39c507['type']&&'attribute'!=_0x39c507['type'])return;const _0xea3468=_0x39c507['getContainedElement']();if(null==_0xea3468)return;if(!_0xea3468['is']('element','bookmark'))return;const _0xed4ef1=_0xea3468['getAttribute']('bookmarkId');if('insertion'==_0x39c507['type'])return{'type':'insertion','content':o(_0x33ea3e,'*Insert:*\x20%0','\x22'+_0xed4ef1+'\x22\x20'+o(_0x33ea3e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x39c507['type'])return{'type':'deletion','content':o(_0x33ea3e,'*Remove:*\x20%0','\x22'+_0xed4ef1+'\x22\x20'+o(_0x33ea3e,'ELEMENT_BOOKMARK'))};const {data:_0x45dfc9}=_0x39c507;if(!_0x45dfc9||'bookmarkId'!=_0x45dfc9['key'])return;return{'type':'format','content':o(_0x33ea3e,'*Set\x20bookmark:*\x20%0','\x22'+_0x45dfc9['newValue']+'\x22')};}));}}class F extends _0x23c4fa{['afterInit'](){const _0x214988=this['editor'];_0x214988['plugins']['has']('CaseChange')&&(_0x214988['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x214988['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x214988['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x23c4fa{['afterInit'](){const _0x1c81ee=this['editor'];_0x1c81ee['commands']['get']('ckbox')&&_0x1c81ee['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x23c4fa{['afterInit'](){const _0x1f1faa=this['editor'];if(!_0x1f1faa['plugins']['has']('CodeBlock'))return;const _0x567110=_0x1f1faa['plugins']['get']('TrackChangesEditing'),_0x32dc00=_0x1f1faa['locale'],_0x50bc40=_0x1f1faa['config']['get']('codeBlock')['languages'],_0x7faad3=_0x1f1faa['commands']['get']('codeBlock');_0x567110['enableCommand']('indentCodeBlock'),_0x567110['enableCommand']('outdentCodeBlock'),_0x567110['enableCommand']('codeBlock',(_0x133d1e,_0x426508={})=>{const _0x2edb83=_0x1f1faa['model'],_0x58a810=_0x1f1faa['model']['document']['selection'],_0x2a197f=_0x426508&&void 0x0!==_0x426508['forceValue']?_0x426508['forceValue']:!_0x7faad3['value'];let _0x44a652;_0x426508['language']||(_0x426508['language']=_0x50bc40[0x0]['language']),_0x44a652=_0x2a197f?Array['from'](_0x58a810['getSelectedBlocks']())['filter'](_0x40db76=>oo(_0x40db76)||function(_0x16cd03,_0x3f2076){if(_0x16cd03['is']('rootElement')||_0x3f2076['isLimit'](_0x16cd03))return!0x1;return _0x3f2076['checkChild'](_0x16cd03['parent'],'codeBlock');}(_0x40db76,_0x2edb83['schema'])):Array['from'](_0x58a810['getSelectedBlocks']())['filter'](_0x434336=>oo(_0x434336));const _0x2d17cf=Zt(_0x44a652,_0x2edb83);_0x2edb83['change'](()=>{for(const _0x28607c of _0x2d17cf)_0x567110['markBlockFormat'](_0x28607c,{'commandName':'codeBlock','commandParams':[{..._0x426508,'forceValue':_0x2a197f}],'formatGroupId':'blockName'});});}),(_0x567110['descriptionFactory']['registerElementLabel']('codeBlock',_0x4c9b19=>o(_0x32dc00,'ELEMENT_CODE_BLOCK',_0x4c9b19)),_0x567110['descriptionFactory']['registerDescriptionCallback'](_0x1bb8a8=>{if('formatBlock'!=_0x1bb8a8['type'])return;const _0x463859=_0x32dc00['t'],{data:_0x457598}=_0x1bb8a8;if(!_0x457598||'codeBlock'!=_0x457598['commandName'])return;const _0x4e2c7f=_0x457598['commandParams'][0x0]['language'],_0x475622=_0x463859(_0x50bc40['find'](_0x142543=>_0x142543['language']===_0x4e2c7f)['label'])['toLowerCase']();return _0x457598['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32dc00,'*Set\x20format:*\x20%0',o(_0x32dc00,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x475622+')')}:{'type':'format','content':o(_0x32dc00,'*Remove\x20format:*\x20%0',o(_0x32dc00,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x45b310){return'codeBlock'==_0x45b310['name'];}class J extends _0x23c4fa{['afterInit'](){const _0x1b36e6=this['editor'];if(!_0x1b36e6['plugins']['has']('CommentsEditing'))return;_0x1b36e6['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x39b8ae,_0x2ec1ac,_0x33298f){const _0x210633=[];for(const _0x257457 of _0x2ec1ac['getItems']())_0x257457['hasAttribute'](_0x39b8ae)&&_0x210633['push'](_0x33298f['createRangeOn'](_0x257457));return _0x210633;}function De(_0x3342a1,_0x5821e3,{showActiveMarker:_0x4e2be6=!0x0}={}){const _0x693ae=_0x3342a1['plugins']['get']('TrackChangesEditing');return(_0x239c5f,_0x1c49bc,_0x457e45)=>{if(!_0x457e45['consumable']['test'](_0x1c49bc['markerRange'],_0x239c5f['name']))return;const _0x35ad34=_0x1c49bc['markerRange']['getWalker'](),_0x136ca4=_0x1c49bc['markerRange']['start'],_0x546ba7=_0x3342a1['model']['schema'];let _0x35b281=null,_0x148e5a=null,_0x4116ca=!0x1,_0x230552=!0x1;for(const _0x1001e5 of _0x35ad34){const _0x166bfa=_0x1001e5['item'];_0x4116ca=_0x4116ca||_0x546ba7['isContent'](_0x166bfa);const _0x20de5c=_0x457e45['mapper']['toViewElement'](_0x166bfa);if(_0x20de5c&&_0x20de5c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1001e5['type']&&(_0x546ba7['isBlock'](_0x166bfa)&&!_0x546ba7['isLimit'](_0x166bfa)&&(_0x166bfa['nextSibling']||_0x136ca4['isAtEnd']?_0x35b281&&_0x35b281['parent']==_0x166bfa||(_0x35b281=_0x166bfa,_0x4a59ae(_0x1001e5['previousPosition']),_0x230552=!0x0):_0x148e5a=_0x148e5a||_0x1001e5['previousPosition']));}function _0x4a59ae(_0x13f23d){const {id:_0x18f6a2,authorId:_0x2799b1}=_0x693ae['_splitMarkerName'](_0x1c49bc['markerName']),_0x2a26ef=_0x457e45['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5821e3,'data-suggestion':_0x18f6a2,'data-author-id':_0x2799b1}),_0x58a911=_0x457e45['mapper']['toViewPosition'](_0x13f23d);_0x4e2be6&&_0x693ae['activeMarkers']['includes'](_0x1c49bc['markerName'])&&_0x457e45['writer']['addClass']('ck-suggestion-marker--active',_0x2a26ef),_0x457e45['writer']['insert'](_0x58a911,_0x2a26ef),_0x457e45['mapper']['bindElementToMarker'](_0x2a26ef,_0x1c49bc['markerName']);}_0x4116ca||_0x230552||!_0x148e5a||_0x4a59ae(_0x148e5a);};}class K extends _0x23c4fa{static get['requires'](){return[_0x18a255];}['init'](){const _0x44f535=this['editor'],_0x24ad44=_0x44f535['plugins']['get']('TrackChangesEditing');_0x24ad44['enableCommand']('delete');const _0x27c1f7=_0x44f535['commands']['get']('deleteForward');_0x24ad44['enableCommand']('deleteForward',(_0x555292,_0x2a6f76={})=>{const _0x3e7d66=_0x44f535['model']['createSelection'](_0x44f535['model']['document']['selection']);_0x3e7d66['isCollapsed']&&_0x44f535['model']['modifySelection'](_0x3e7d66,{'direction':'forward','unit':_0x2a6f76['unit']});const _0x4e11f4=_0x3e7d66['getFirstRange'](),_0x4b9caf=_0x5edbdb['fromRange'](_0x4e11f4);let _0x45c348;_0x555292(_0x2a6f76),_0x45c348='$graveyard'==_0x4b9caf['root']['rootName']?_0x44f535['model']['createRange'](_0x4e11f4['start']):_0x44f535['model']['createRange'](_0x4b9caf['start'],_0x4b9caf['end']),_0x4b9caf['detach'](),_0x44f535['model']['enqueueChange'](_0x27c1f7['buffer']['batch'],_0x29c6aa=>{_0x27c1f7['buffer']['lock'](),_0x29c6aa['setSelection'](_0x29c6aa['createRange'](_0x45c348['end'])),_0x27c1f7['buffer']['unlock']();});}),_0x44f535['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x44f535,'merge'),{'priority':'high'}),_0x44f535['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x84d8ba,_0x37590e,_0x2ffa54)=>{_0x2ffa54['options']['showSuggestionHighlights']&&De(_0x44f535,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x84d8ba,_0x37590e,_0x2ffa54);},{'priority':'high'}),_0x44f535['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2492e2,_0x1d8a8b,_0xfbfcd9)=>{const _0x32b672=_0xfbfcd9['mapper']['markerNameToElements'](_0x1d8a8b['markerName']);if(_0x32b672){for(const _0x1c79a3 of _0x32b672)_0x1c79a3['is']('uiElement')&&(_0xfbfcd9['mapper']['unbindElementFromMarkerName'](_0x1c79a3,_0x1d8a8b['markerName']),_0xfbfcd9['writer']['remove'](_0x1c79a3));}},{'priority':'high'});}}class H extends _0x23c4fa{['afterInit'](){const _0x168781=this['editor'];if(!_0x168781['plugins']['has']('ListEditing'))return;const _0x220fc4=_0x168781['locale'],_0x453f94=_0x168781['plugins']['get']('TrackChangesEditing'),_0x4b4339=_0x168781['plugins']['has']('TodoListEditing'),_0x2b4542=!!_0x168781['config']['get']('list.multiBlock');function _0x51b85d(_0xc16530){return{'type':'format','content':''+o(_0x220fc4,'*Set\x20format:*\x20%0',_0xc16530)};}function _0x483d15(_0x3ae0d7){return{'type':'format','content':''+o(_0x220fc4,'*Remove\x20format:*\x20%0',_0x3ae0d7)};}_0x453f94['enableDefaultAttributesIntegration']('numberedList'),_0x453f94['enableDefaultAttributesIntegration']('bulletedList'),_0x453f94['enableDefaultAttributesIntegration']('customNumberedList'),_0x453f94['enableDefaultAttributesIntegration']('customBulletedList'),_0x453f94['enableDefaultAttributesIntegration']('indentList'),_0x453f94['enableDefaultAttributesIntegration']('outdentList'),_0x453f94['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x453f94['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x453f94['registerBlockAttribute']('listItemId'),_0x453f94['registerBlockAttribute']('listType'),_0x453f94['registerBlockAttribute']('listIndent'),_0x2b4542&&(_0x453f94['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x453f94['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4b4339&&(_0x453f94['enableDefaultAttributesIntegration']('todoList'),_0x453f94['enableDefaultAttributesIntegration']('checkTodoList'),_0x453f94['registerBlockAttribute']('todoListChecked'),_0x453f94['descriptionFactory']['registerDescriptionCallback'](_0x9fef73=>{const {data:_0x2e300d}=_0x9fef73;if(_0x2e300d&&'todoListChecked'==_0x2e300d['key'])return{'type':'format','content':_0x2e300d['newValue']?o(_0x220fc4,'*Check\x20item*'):o(_0x220fc4,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xc0e9ed=>{if(_0xc0e9ed['batch']['isUndo'])return!0x1;let _0x46d2b6=!0x1;const _0x126d98=_0x453f94['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b5845=>'todoListChecked'===_0x453f94['_getAttributeKey'](_0x1b5845));for(const _0xd63550 of _0x126d98){'todo'!=_0xd63550['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x453f94['_findSuggestions'](_0xd63550['getFirstRange'](),'attribute')['find'](_0x3ca30f=>'listType'===_0x453f94['_getAttributeKey'](_0x3ca30f['suggestion']))||(_0xc0e9ed['removeMarker'](_0xd63550['getFirstMarker']()),_0x46d2b6=!0x0));}return _0x46d2b6;})),_0x453f94['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x220fc4,'FORMAT_INDENT'));const _0x22743c={'type':'format','content':''};_0x453f94['descriptionFactory']['registerDescriptionCallback'](_0x1bb445=>{const {data:_0x20ba80}=_0x1bb445;if(!_0x20ba80||'listType'!=_0x20ba80['key'])return;let _0x4c0ae8=_0x1bb445['head'];for(;_0x4c0ae8;){if(_0x4c0ae8['data']&&(('listStyle'==_0x4c0ae8['data']['key']||'listMarkerStyle'==_0x4c0ae8['data']['key'])&&(_0x4c0ae8['data']['newValue']&&'default'!=_0x4c0ae8['data']['newValue']||'default'!=_0x4c0ae8['data']['oldValue']&&!_0x20ba80['newValue'])||!_0x2b4542&&_0x4c0ae8['data']['key']==m))return _0x22743c;_0x4c0ae8=_0x4c0ae8['next'];}if(null==_0x20ba80['newValue'])switch(_0x20ba80['oldValue']){case'bulleted':return _0x483d15(o(_0x220fc4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x483d15(o(_0x220fc4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x483d15(o(_0x220fc4,'ELEMENT_TODO_LIST'));}switch(_0x20ba80['newValue']){case'bulleted':return _0x51b85d(o(_0x220fc4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x51b85d(o(_0x220fc4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x51b85d(o(_0x220fc4,'ELEMENT_TODO_LIST'));}}),_0x453f94['descriptionFactory']['registerDescriptionCallback'](_0x43c51e=>{const {data:_0x5686f7}=_0x43c51e;if(_0x5686f7&&'listIndent'==_0x5686f7['key'])return null==_0x5686f7['newValue']||null==_0x5686f7['oldValue']&&0x0==_0x5686f7['newValue']?_0x22743c:void 0x0;}),_0x453f94['descriptionFactory']['registerDescriptionCallback'](_0x5b30c0=>{if('attribute'!=_0x5b30c0['type'])return;const {data:_0x4928eb}=_0x5b30c0;if(!_0x4928eb||'listItemId'!=_0x4928eb['key'])return;const _0x2af32e=Te(_0x5b30c0);return'newValue'==_0x2af32e?{'type':'format','content':o(_0x220fc4,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2af32e?{'type':'format','content':o(_0x220fc4,'*Split:*\x20list\x20item')}:_0x22743c;}),_0x168781['model']['document']['registerPostFixer'](_0x1c8205=>this['listItemIdFixer'](_0x1c8205)),_0x168781['model']['document']['registerPostFixer'](_0xd267eb=>this['noTrackChangesFixer'](_0xd267eb)),_0x168781['model']['document']['on']('change:data',(_0x30a500,_0x53a2b8)=>{if(_0x53a2b8['isUndo']||!_0x53a2b8['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3d2b1e){if(_0x3d2b1e['batch']['isUndo']||!_0x3d2b1e['batch']['isLocal'])return!0x1;let _0x251c08=!0x1;const _0x337c76=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x143d04=>_0x143d04['data']&&'listItemId'==_0x143d04['data']['key'])['filter'](_0xdc7d22=>_0xdc7d22['data']['newValue']&&_0xdc7d22['data']['oldValue']);for(const _0x4541be of _0x337c76)Te(_0x4541be)||(_0x3d2b1e['removeMarker'](_0x4541be['getFirstMarker']()),_0x251c08=!0x0);return _0x251c08;}['noTrackChangesFixer'](_0x328395){if(_0x328395['batch']['isUndo']||!_0x328395['batch']['isLocal'])return!0x1;const _0x369c11=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x369c11['trackChangesCommand']['value'])return!0x1;let _0x4526c5=!0x1;const _0x3b3c0a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x40d966=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x462814=>'attribute'==_0x462814['type'])['filter'](_0x10a17d=>_0x3b3c0a['includes'](_0x10a17d['attributeKey']));if(0x0==_0x40d966['length'])return _0x4526c5;for(const _0x2d6e63 of _0x40d966){const _0x45bf43=_0x369c11['_findSuggestions'](_0x2d6e63['range'],'attribute')['filter'](_0x4673dc=>!_0x4673dc['meta']['isNextTo'])['map'](_0x471735=>_0x471735['suggestion'])['filter'](_0x458952=>{const _0x4a76d6=_0x369c11['_getAttributeKey'](_0x458952);return _0x3b3c0a['includes'](_0x4a76d6);});if(_0x45bf43['length']){for(const _0x4e8c37 of _0x45bf43)_0x328395['removeMarker'](_0x4e8c37['getFirstMarker']());_0x4526c5=!0x0;}}return _0x4526c5;}['assureChains'](){const _0x534924=this['editor']['plugins']['get']('TrackChangesEditing'),_0x474a03=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1c3d82;const _0x6ff84e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3aeeec=>{if(_0x3aeeec['data']['oldRange']||!_0x3aeeec['data']['newRange'])return null;if(!_0x3aeeec['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x52bbec}=_0x534924['_splitMarkerName'](_0x3aeeec['name']);if(!_0x534924['hasSuggestion'](_0x52bbec))return null;const _0x11f738=_0x534924['getSuggestion'](_0x52bbec);return _0x474a03['includes'](_0x11f738['data']['key']);})['map'](_0x420337=>{const {id:_0x5729b1}=_0x534924['_splitMarkerName'](_0x420337['name']),_0x1fdcb3=_0x534924['getSuggestion'](_0x5729b1);return _0x1c3d82=_0x1fdcb3['attributes']['groupId'],_0x1fdcb3['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x6ff84e['size'])return;const _0x100e63=_0x534924['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8cfd90=>'attribute'==_0x8cfd90['type']&&_0x8cfd90['data']&&_0x474a03['includes'](_0x8cfd90['data']['key'])&&_0x8cfd90['attributes']['groupId']!=_0x1c3d82)['map'](_0x558cfb=>({'listItem':_0x558cfb['getFirstRange']()['start']['nodeAfter'],'groupId':_0x558cfb['attributes']['groupId']})),_0x24ba86=new Set();for(const {groupId:_0x1af2ef,listItem:_0x58deea}of _0x100e63)_0x6ff84e['has'](_0x58deea)&&_0x24ba86['add'](_0x1af2ef);for(const _0x52e363 of _0x534924['getSuggestions']())_0x24ba86['has'](_0x52e363['attributes']['groupId'])&&_0x52e363['setAttribute']('groupId',_0x1c3d82);}['_supportLegacySuggestions'](){const _0x47c7ed=this['editor'],_0x241174=_0x47c7ed['locale'],_0x52330=_0x47c7ed['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x52330['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x184bc9,_0x37ce35){const _0x4a921f=[];for(let _0x4b9b00 of _0x184bc9)_0x4b9b00['start']['nodeAfter']===_0x4b9b00['end']['parent']&&(_0x4b9b00=_0x47c7ed['model']['createRange'](_0x47c7ed['model']['createPositionAt'](_0x4b9b00['start']['nodeAfter'],0x0))),_0x4a921f['push'](_0x4b9b00);_0x47c7ed['model']['change'](_0x491356=>{const _0x428b4a=_0x47c7ed['model']['document']['selection'],_0x189a74=Array['from'](_0x428b4a['getRanges']())['map'](_0x540987=>_0x5edbdb['fromRange'](_0x540987));_0x491356['setSelection'](_0x4a921f),_0x47c7ed['commands']['get'](_0x37ce35['commandName'])['refresh'](),_0x37ce35['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x47c7ed['execute'](_0x37ce35['commandName'],..._0x37ce35['commandParams']),_0x491356['setSelection'](_0x189a74);for(const _0x230be3 of _0x189a74)_0x230be3['detach']();});}),_0x52330['descriptionFactory']['registerElementLabel'](function(_0x3544e3){const _0x4ebb5f=!_0x47c7ed['model']['schema']['isObject'](_0x3544e3),_0x11eba0=_0x3544e3['previousSibling'],_0x4aaa4d=_0x3544e3['nextSibling'],_0x4aa99c=_0x3544e3['getAttribute']('listItemId'),_0x301d02=!_0x11eba0||_0x11eba0['getAttribute']('listItemId')!==_0x4aa99c,_0x2dbe14=!_0x4aaa4d||_0x4aaa4d['getAttribute']('listItemId')!==_0x4aa99c;return _0x4ebb5f&&Boolean(_0x4aa99c)&&_0x301d02&&_0x2dbe14;},_0x115c8a=>o(_0x241174,'ELEMENT_LIST_ITEM',_0x115c8a));}['_registerLegacyDescription'](){const _0x3f4beb=this['editor'],_0x3d04b2=_0x3f4beb['locale'];function _0x4e975e(_0x89350d){const _0x3a5a1e=_0x3f4beb['commands']['get']('bulletedList')['value'],_0x45b46d=_0x3f4beb['commands']['get']('numberedList')['value'];return'numberedList'===_0x89350d?_0x3a5a1e:_0x45b46d;}_0x3f4beb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1db222){if('formatBlock'!=_0x1db222['type'])return;const {data:_0x170abb}=_0x1db222;if(!_0x170abb)return;let _0x1c42e6,_0x3f1628,_0x18bf8c,_0x540451;switch(_0x170abb['commandName']){case'bulletedList':_0x18bf8c=_0x170abb['commandParams'][0x0]['forceValue'],_0x540451=_0x4e975e(_0x170abb['commandName']),_0x1c42e6=_0x18bf8c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x540451&&_0x3f4beb['config']['get']('list.multiBlock')||(_0x1c42e6='*Change\x20to:*\x20%0'),_0x3f1628={'type':'format','content':o(_0x3d04b2,_0x1c42e6,o(_0x3d04b2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x18bf8c=_0x170abb['commandParams'][0x0]['forceValue'],_0x540451=_0x4e975e(_0x170abb['commandName']),_0x1c42e6=_0x18bf8c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x540451&&_0x3f4beb['config']['get']('list.multiBlock')||(_0x1c42e6='*Change\x20to:*\x20%0'),_0x3f1628={'type':'format','content':o(_0x3d04b2,_0x1c42e6,o(_0x3d04b2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1c42e6='*Indent:*\x20%0',_0x3f1628={'type':'format','content':o(_0x3d04b2,_0x1c42e6,o(_0x3d04b2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1c42e6=function(_0x2ec8ae){const _0x5579d8=_0x2ec8ae['getFirstRange']();let _0x40e508=_0x5579d8['start']['nodeAfter'];for(;_0x40e508&&_0x5579d8['containsItem'](_0x40e508);){if(_0x40e508['getAttribute']('listIndent')>0x0)return!0x1;_0x40e508=_0x40e508['nextSibling'];}return!0x0;}(_0x1db222)?o(_0x3d04b2,'*Format:*\x20remove\x20from\x20%0',o(_0x3d04b2,function(_0x419f6b){return'ELEMENT_'+_0x419f6b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1db222))):o(_0x3d04b2,'*Outdent:*\x20%0',o(_0x3d04b2,'ELEMENT_LIST_ITEM')),_0x3f1628={'type':'format','content':_0x1c42e6};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x170abb['multipleBlocks']&&(_0x1c42e6='*Merge:*\x20%0',_0x3f1628={'type':'deletion','content':o(_0x3d04b2,_0x1c42e6,o(_0x3d04b2,'ELEMENT_LIST_ITEM'))});}return _0x3f1628;});}}function Te(_0x50a849){let _0x4f7ae3=_0x50a849['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4f7ae3;){const _0x8adf3e=_0x4f7ae3['getAttribute']('listItemId');if(!_0x8adf3e)return!0x1;if(_0x8adf3e==_0x50a849['data']['newValue'])return'newValue';if(_0x8adf3e==_0x50a849['data']['oldValue'])return'oldValue';_0x4f7ae3=_0x4f7ae3['previousSibling'];}return!0x1;}class q extends _0x23c4fa{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x19f1a2=this['editor']['config']['get']('list.properties'),_0x233b33=this['editor']['plugins']['get']('TrackChangesEditing');_0x19f1a2['styles']&&(_0x233b33['enableDefaultAttributesIntegration']('listStyle'),_0x233b33['registerBlockAttribute']('listStyle')),_0x19f1a2['reversed']&&(_0x233b33['enableDefaultAttributesIntegration']('listReversed'),_0x233b33['registerBlockAttribute']('listReversed')),_0x19f1a2['startIndex']&&(_0x233b33['enableDefaultAttributesIntegration']('listStart'),_0x233b33['registerBlockAttribute']('listStart'));const _0x55869e={'type':'format','content':''};_0x233b33['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5922d0=this['editor']['locale'];_0x233b33['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5922d0,'FORMAT_LIST_REVERSED')),_0x233b33['descriptionFactory']['registerDescriptionCallback'](_0x309abc=>{const {data:_0x46e7b8}=_0x309abc;if(_0x46e7b8&&'listReversed'==_0x46e7b8['key'])return null==_0x46e7b8['newValue']||0x0==_0x46e7b8['newValue']&&null==_0x46e7b8['oldValue']?_0x55869e:void 0x0;}),_0x233b33['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5922d0,'FORMAT_LIST_START')),_0x233b33['descriptionFactory']['registerDescriptionCallback'](_0xf6cbd6=>{const {data:_0x4daf3c}=_0xf6cbd6;if(_0x4daf3c&&'listStart'==_0x4daf3c['key'])return null==_0x4daf3c['newValue']||0x1==_0x4daf3c['newValue']&&null==_0x4daf3c['oldValue']?_0x55869e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x536b03=>{if(_0x536b03['batch']['isUndo'])return!0x1;let _0x2768f3=!0x1;const _0x56ef51=_0x233b33['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ceb2e=>{const _0x2b6721=_0x233b33['_getAttributeKey'](_0x4ceb2e);return'listStart'==_0x2b6721||'listReversed'==_0x2b6721;});for(const _0x54bc74 of _0x56ef51){const _0x2fa733=_0x54bc74['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2fa733||'customNumbered'==_0x2fa733)continue;_0x233b33['_findSuggestions'](_0x54bc74['getFirstRange'](),'attribute')['find'](_0x721117=>'listType'==_0x233b33['_getAttributeKey'](_0x721117['suggestion']))||(_0x536b03['removeMarker'](_0x54bc74['getFirstMarker']()),_0x2768f3=!0x0);}return _0x2768f3;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x14e196){const _0x2dd4fd=this['editor']['locale'],{data:_0x57348b}=_0x14e196,_0x240652={'type':'format','content':''};if(!_0x57348b||'listStyle'!=_0x57348b['key'])return;if(!_0x57348b['oldValue'])return'default'==_0x57348b['newValue']?_0x240652:{'type':'format','content':''+o(_0x2dd4fd,'*Set\x20format:*\x20%0',o(_0x2dd4fd,this['_getTranslationKeyForListStyle'](_0x57348b['newValue'])))};if(!_0x57348b['newValue']){if('default'==_0x57348b['oldValue'])return _0x240652;let _0x44b550=_0x14e196['head'];for(;_0x44b550;){if(_0x44b550['data']&&'listType'==_0x44b550['data']['key']&&_0x44b550['data']['newValue'])return _0x240652;_0x44b550=_0x44b550['next'];}return{'type':'format','content':''+o(_0x2dd4fd,'*Remove\x20format:*\x20%0',o(_0x2dd4fd,this['_getTranslationKeyForListStyle'](_0x57348b['oldValue'])))};}if('default'!=_0x57348b['newValue'])return{'type':'format','content':''+o(_0x2dd4fd,'*Set\x20format:*\x20%0',o(_0x2dd4fd,this['_getTranslationKeyForListStyle'](_0x57348b['newValue'])))};let _0x1b27f1=_0x14e196['head'];for(;_0x1b27f1;){if(_0x1b27f1['data']&&'listType'==_0x1b27f1['data']['key']&&_0x1b27f1['data']['newValue']&&_0x1b27f1['data']['oldValue'])return _0x240652;_0x1b27f1=_0x1b27f1['next'];}return{'type':'format','content':o(_0x2dd4fd,'*Set\x20format:*\x20%0',o(_0x2dd4fd,'ELEMENT_'+_0x14e196['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x34f714=this['editor'],_0x24b83a=_0x34f714['locale'];_0x34f714['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa55ff8=>{if('formatBlock'!=_0xa55ff8['type'])return;const {data:_0x12024b}=_0xa55ff8;if(!_0x12024b)return;let _0x1c96a6,_0x309850;switch(_0x12024b['commandName']){case'listStyle':_0x1c96a6='*Change\x20to:*\x20%0',_0x309850={'type':'format','content':o(_0x24b83a,_0x1c96a6,o(_0x24b83a,this['_getTranslationKeyForListStyle'](_0x12024b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1c96a6=_0x12024b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x309850={'type':'format','content':o(_0x24b83a,_0x1c96a6)};break;case'listStart':_0x1c96a6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x309850={'type':'format','content':o(_0x24b83a,_0x1c96a6,_0x12024b['commandParams'][0x0]['startIndex'])};}return _0x309850;});}['_getTranslationKeyForListStyle'](_0xdfdafe){return'ELEMENT_'+function(_0x58004c){if(Se['includes'](_0x58004c))return'bulleted';if(_e['includes'](_0x58004c))return'numbered';return null;}(_0xdfdafe)['toUpperCase']()+'_LIST_'+_0xdfdafe['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x23c4fa{['afterInit'](){const _0x33b6c2=this['editor'];_0x33b6c2['commands']['get']('emoji')&&_0x33b6c2['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x23c4fa{static get['requires'](){return[_0x1a3569];}['init'](){const _0x2b64dd=this['editor'],_0x58de05=_0x2b64dd['plugins']['get']('TrackChangesEditing'),_0x37aa51=_0x2b64dd['commands']['get']('enter');_0x58de05['enableCommand']('enter',()=>{_0x2b64dd['model']['change'](_0xff0066=>{const _0x5364ce=_0x2b64dd['model']['document']['selection'],_0x450876=_0x5364ce['getFirstPosition'](),_0x500315=_0x5edbdb['fromRange'](_0x5364ce['getFirstRange']());if(_0x37aa51['enterBlock'](_0xff0066)){const _0x488f25=_0x2b64dd['model']['createPositionAt'](_0x450876['parent']['nextSibling'],0x0),_0x1452f7=_0xff0066['createRange'](_0x450876,_0x488f25);_0x58de05['markInsertion'](_0x1452f7);}else _0xff0066['setSelection'](_0xff0066['createRange'](_0x500315['end']));_0x500315['detach'](),_0x37aa51['fire']('afterExecute',{'writer':_0xff0066});});}),_0x2b64dd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x2b64dd,'split'),{'priority':'high'}),_0x2b64dd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x18f3fb,_0x5e6564,_0x172f50)=>{const _0x2e79ca=_0x172f50['mapper']['markerNameToElements'](_0x5e6564['markerName']);if(_0x2e79ca){for(const _0x466d7a of _0x2e79ca)_0x466d7a['hasClass']('ck-suggestion-marker-split')&&(_0x172f50['mapper']['unbindElementFromMarkerName'](_0x466d7a,_0x5e6564['markerName']),_0x172f50['writer']['remove'](_0x466d7a));}},{'priority':'high'}),_0x2b64dd['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4a36d0,_0x35c5f6,_0x4b0d2d)=>{_0x4b0d2d['options']['showSuggestionHighlights']&&De(_0x2b64dd,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4a36d0,_0x35c5f6,_0x4b0d2d);},{'priority':'high'});}}class Q extends _0x23c4fa{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x238274=this['editor']['plugins']['get']('TrackChangesEditing');_0x238274['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x238274['enableCommand']('findNext'),_0x238274['enableCommand']('findPrevious'),_0x238274['enableCommand']('replace'),_0x238274['enableCommand']('replaceAll');}['handleFindCommand'](_0x4c7fcc,_0x19ab87,_0x2e54d6={}){const _0x4ee42e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4c7fcc(_0x3ed048=>{let _0x2049d8=('string'==typeof _0x19ab87?_0x4ee42e['findByTextCallback'](_0x19ab87,_0x2e54d6):_0x19ab87)(_0x3ed048);Array['isArray'](_0x2049d8)&&(_0x2049d8={'results':_0x2049d8,'searchText':'string'==typeof _0x19ab87?_0x19ab87:''});const _0x4554a8=_0x2049d8['results']['filter'](_0x812129=>!0x1===this['_isInDeletionRange'](_0x812129,_0x3ed048['item']));return{..._0x2049d8,'results':_0x4554a8};},_0x2e54d6);}['_isInDeletionRange'](_0x3881df,_0x1de306){const _0x5ae722=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1de306,_0x3881df['start']),this['editor']['model']['createPositionAt'](_0x1de306,_0x3881df['end']));for(const _0x5efeb7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5ae722['getIntersection'](_0x5efeb7['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 _0x23c4fa{['afterInit'](){const _0x12ad86=this['editor']['locale'],_0x15d512=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x42864b,commandName:_0x3036fd}of eo)this['editor']['plugins']['has'](_0x42864b)&&(_0x15d512['enableDefaultAttributesIntegration'](_0x3036fd),_0x15d512['registerInlineAttribute'](_0x3036fd));_0x15d512['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x12ad86,'FORMAT_FONT_SIZE')),_0x15d512['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x12ad86,'FORMAT_FONT_FAMILY')),_0x15d512['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x12ad86,'FORMAT_FONT_COLOR')),_0x15d512['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x12ad86,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5af970=this['editor'],_0x411b24=_0x5af970['locale'];_0x5af970['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2acd03=>{const _0x3cf18c=_0x411b24['t'];if('formatInline'!=_0x2acd03['type'])return;const {data:_0x23b895}=_0x2acd03;if(null!=_0x23b895){if('fontSize'==_0x23b895['commandName']){const _0x1ac948=_0x23b895['commandParams'][0x0]['value'];if(_0x1ac948){const _0x59645f=_0x3cf18c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x353873=>_0x353873['model']==_0x1ac948)['title'])['toLowerCase']();return{'type':'format','content':o(_0x411b24,'*Set\x20font\x20size:*\x20%0',_0x59645f)};}return{'type':'format','content':o(_0x411b24,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x23b895['commandName']){const _0x4b16b4=_0x23b895['commandParams'][0x0]['value'];return _0x4b16b4?{'type':'format','content':o(_0x411b24,'*Set\x20font\x20family:*\x20%0',_0x4b16b4)}:{'type':'format','content':o(_0x411b24,'*Reset\x20font\x20family*')};}if('fontColor'==_0x23b895['commandName']){const _0x209525=_0x23b895['commandParams'][0x0]['value'];if(_0x209525){const _0xf859bf=_0x45b456(this['editor']['config']['get']('fontColor.colors'))['find'](_0x16499f=>_0x16499f['model']==_0x209525);let _0x102721=_0x209525,_0x55a18c='';return _0xf859bf&&(_0x102721=_0xf859bf['label'],_0x55a18c=_0x3cf18c(_0x102721)['toLowerCase']()),{'type':'format','content':o(_0x411b24,'*Set\x20font\x20color:*\x20%0',_0x55a18c)['trim'](),'color':{'value':_0x209525,'title':_0x55a18c||_0x102721}};}return{'type':'format','content':o(_0x411b24,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x23b895['commandName']){const _0x2f1dd1=_0x23b895['commandParams'][0x0]['value'];if(_0x2f1dd1){const _0x48701e=_0x45b456(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x52f8f2=>_0x52f8f2['model']==_0x2f1dd1);let _0x265f3b=_0x2f1dd1,_0x3d85d5='';return _0x48701e&&(_0x265f3b=_0x48701e['label'],_0x3d85d5=_0x3cf18c(_0x265f3b)['toLowerCase']()),{'type':'format','content':o(_0x411b24,'*Set\x20font\x20background\x20color:*\x20%0',_0x3d85d5)['trim'](),'color':{'value':_0x2f1dd1,'title':_0x3d85d5||_0x265f3b}};}return{'type':'format','content':o(_0x411b24,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x23c4fa{['afterInit'](){const _0x2074e2=this['editor'],_0x38bbf4=_0x2074e2['plugins']['get']('TrackChangesEditing'),_0x204dfd=_0x2074e2['commands']['get']('copyFormat'),_0x5c4383=_0x2074e2['commands']['get']('pasteFormat');_0x204dfd&&_0x5c4383&&(_0x38bbf4['enableDefaultAttributesIntegration']('pasteFormat'),_0x38bbf4['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xfb60a6=this['editor'],_0x66b04b=_0xfb60a6['locale'];_0xfb60a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a641e=>{if('formatBlock'!=_0x1a641e['type']&&'formatInline'!=_0x1a641e['type'])return;const {data:_0x43ef74}=_0x1a641e;if(_0x43ef74&&'pasteFormat'===_0x43ef74['commandName']){const _0x1710a7=[],_0x1af04f=_0x43ef74['commandParams'][0x0];for(const [_0x2d8267,_0x434fd4]of Object['entries'](_0x1af04f))_0x1710a7['push'](ro(_0xfb60a6,_0x2d8267,_0x434fd4));return _0x1710a7['length']?{'type':'format','content':o(_0x66b04b,'*Set\x20format\x20to:*\x20%0',_0x1710a7['join'](',\x20'))}:{'type':'format','content':o(_0x66b04b,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xb5726d,_0x21b8a4,_0x13fe8a){const _0x17d1ce=_0xb5726d['locale']['t'],_0x49f7dc=_0x21b8a4['split'](/(?=[A-Z])/)['join']('\x20'),_0x54ed63=_0x17d1ce(_0x49f7dc['charAt'](0x0)['toUpperCase']()+_0x49f7dc['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x13fe8a)return _0x54ed63;if('fontColor'===_0x21b8a4||'fontBackgroundColor'===_0x21b8a4){const _0x17e033=_0x45b456(_0xb5726d['config']['get']('fontColor.colors'))['find'](_0x4de428=>_0x4de428['model']==_0x13fe8a);return _0x54ed63+'\x20('+(_0x17e033?_0x17d1ce(_0x17e033['label'])['toLowerCase']():_0x13fe8a)+')';}if('fontSize'===_0x21b8a4&&isNaN(parseFloat(_0x13fe8a))){const _0x14651b=_0xb5726d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xb5726d['config']['get']('fontSize.options'))['find'](_0x37f5ce=>_0x37f5ce['model']==_0x13fe8a);return _0x54ed63+'\x20('+(_0x14651b?_0x17d1ce(_0x14651b['title'])['toLowerCase']():_0x13fe8a)+')';}return _0x54ed63+'\x20('+_0x13fe8a+')';}class Z extends _0x23c4fa{['_headingOptions'];['afterInit'](){const _0x4bc992=this['editor'];if(!_0x4bc992['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4bc992['config']['get']('heading.options');const _0x571443=_0x4bc992['locale'],_0x4bb972=_0x4bc992['plugins']['get']('TrackChangesEditing');_0x4bb972['enableDefaultAttributesIntegration']('heading');for(const _0x35d43e of this['_headingOptions'])'paragraph'!=_0x35d43e['model']&&_0x4bb972['descriptionFactory']['registerElementLabel'](_0x35d43e['model'],_0x4e9b36=>{const _0x39b455=this['_getHeadingLevel'](_0x35d43e['model']);return null!==_0x39b455?_0x26d6a8(_0x4e9b36,_0x39b455):_0xcbf8ef(_0x4e9b36,_0x35d43e['title']);});function _0x26d6a8(_0x2c79be,_0x2e5a26){return o(_0x571443,'ELEMENT_HEADING',[_0x2c79be,_0x2e5a26]);}function _0xcbf8ef(_0x52ce1a,_0x2b606c){return o(_0x571443,'ELEMENT_HEADING_CUSTOM',[_0x52ce1a,_0x2b606c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49895c=this['editor'],_0x3ea950=_0x49895c['locale'];function _0x5dd114(_0x39e357,_0x576d29){return o(_0x3ea950,'ELEMENT_HEADING_CUSTOM',[_0x39e357,_0x576d29]);}_0x49895c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfc7978=>{if('formatBlock'!=_0xfc7978['type'])return;const {data:_0x1109b6}=_0xfc7978;if(_0x1109b6&&'heading'==_0x1109b6['commandName']){const _0xd75ef2=_0x1109b6['commandParams'][0x0]['value'],_0x138254=this['_getHeadingLevel'](_0xd75ef2);if(null!==_0x138254)return{'type':'format','content':o(_0x3ea950,'*Change\x20to:*\x20%0',(_0x80a88a=0x1,_0x1390ca=_0x138254,o(_0x3ea950,'ELEMENT_HEADING',[_0x80a88a,_0x1390ca])))};const _0x35833e=this['_headingOptions']['find'](_0x3f7a98=>_0x3f7a98['model']===_0xd75ef2)['title'];return{'type':'format','content':o(_0x3ea950,'*Change\x20to:*\x20%0',_0x5dd114(0x1,_0x35833e))};}var _0x80a88a,_0x1390ca;});}['_getHeadingLevel'](_0x4c7be8){const _0x4b9853=_0x4c7be8['match'](/^heading(\d+)/);if(_0x4b9853)return _0x4b9853[0x1];const _0x2ac32d=this['_headingOptions']?.['find'](_0x3a2482=>_0x3a2482['model']==_0x4c7be8);if(_0x2ac32d&&_0x2ac32d['view']){const _0x4e9a39=_0x2ac32d['view'],_0x231e5e=(_0x4e9a39['name']??_0x4e9a39)['match'](/^h(\d+)/);if(_0x231e5e)return _0x231e5e[0x1];}return null;}}class tt extends _0x23c4fa{['afterInit'](){const _0x1913f2=this['editor'];if(!_0x1913f2['plugins']['has']('HighlightEditing'))return;const _0x5a56d4=_0x1913f2['plugins']['get']('TrackChangesEditing'),_0x44519=_0x1913f2['locale'];_0x5a56d4['enableDefaultAttributesIntegration']('highlight'),_0x5a56d4['registerInlineAttribute']('highlight'),_0x5a56d4['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x44519,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b08b2=this['editor'],_0x481124=_0x2b08b2['locale'];_0x2b08b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf23401=>{if('formatInline'!=_0xf23401['type'])return;const {data:_0x58ebfb}=_0xf23401;if(_0x58ebfb&&'highlight'==_0x58ebfb['commandName']){const _0x55d769=_0x481124['t'],_0x1e3c21=_0x58ebfb['commandParams'][0x0]['value'];if(_0x1e3c21){const _0x17765b=_0x2b08b2['config']['get']('highlight.options')['find'](_0x2aa721=>_0x2aa721['model']==_0x1e3c21),_0x4e502b=_0x55d769(_0x17765b['title'])['toLowerCase']();return{'type':'format','content':o(_0x481124,'*Set\x20highlight:*\x20%0',_0x4e502b),'color':{'value':_0x17765b['color'],'title':_0x17765b['title']}};}return{'type':'format','content':o(_0x481124,'*Remove\x20highlight*',o(_0x481124,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x23c4fa{['afterInit'](){const _0x10907f=this['editor'];if(!_0x10907f['plugins']['has']('HorizontalLineEditing'))return;_0x10907f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x512d88=_0x10907f['plugins']['get']('TrackChangesEditing'),_0x572daa=_0x10907f['locale'];_0x512d88['descriptionFactory']['registerElementLabel']('horizontalLine',_0x32556c=>o(_0x572daa,'ELEMENT_HORIZONTAL_LINE',_0x32556c)),_0x10907f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x14351b,{writer:_0x28b06f,options:_0x3a0093})=>{if(!_0x3a0093['showSuggestionHighlights'])return null;const _0x1e9d08=_0x28b06f['createContainerElement']('div'),_0x597866=_0x28b06f['createEmptyElement']('hr');return _0x28b06f['addClass']('ck-horizontal-line',_0x1e9d08),_0x28b06f['insert'](_0x28b06f['createPositionAt'](_0x1e9d08,0x0),_0x597866),_0x1e9d08;},'converterPriority':'high'});}}class nt extends _0x23c4fa{['afterInit'](){const _0x5739aa=this['editor'];if(!_0x5739aa['plugins']['has']('HtmlEmbed'))return;const _0x36cc84=_0x5739aa['plugins']['get']('TrackChangesEditing'),_0x1db519=_0x5739aa['locale'];_0x36cc84['descriptionFactory']['registerElementLabel']('rawHtml',_0x481eac=>o(_0x1db519,'ELEMENT_HTML_EMBED',_0x481eac)),_0x36cc84['enableDefaultAttributesIntegration']('htmlEmbed'),_0x36cc84['registerBlockAttribute']('value'),_0x36cc84['descriptionFactory']['registerDescriptionCallback'](_0x6c3c49=>{if('attribute'!=_0x6c3c49['type'])return;const {data:_0xfe03fe}=_0x6c3c49;if(_0xfe03fe&&'value'==_0xfe03fe['key']&&_0x6c3c49['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x46048c=o(_0x1db519,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1db519,'*Change\x20%0\x20content*',_0x46048c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29db02=this['editor'],_0x554ac9=_0x29db02['locale'];_0x29db02['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf7b8a0=>{if('formatBlock'!=_0xf7b8a0['type'])return;const {data:_0x580ffb}=_0xf7b8a0;if(_0x580ffb&&'htmlEmbed'==_0x580ffb['commandName']){const _0x27831c=o(_0x554ac9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x554ac9,'*Change\x20%0\x20content*',_0x27831c)};}});}}class et extends _0x23c4fa{['afterInit'](){const _0x362a93=this['editor'];if(!_0x362a93['plugins']['has']('ImageEditing'))return;const _0x20576e=_0x362a93['plugins']['get']('TrackChangesEditing'),_0x2c0bfb=_0x362a93['plugins']['get']('ImageUtils'),_0x2ce138=_0x362a93['locale'];_0x20576e['enableCommand']('insertImage'),_0x20576e['descriptionFactory']['registerElementLabel']('imageBlock',_0x34fe9f=>o(_0x2ce138,'ELEMENT_IMAGE',_0x34fe9f)),_0x20576e['descriptionFactory']['registerElementLabel']('imageInline',_0x4276ab=>o(_0x2ce138,'ELEMENT_INLINE_IMAGE',_0x4276ab)),_0x20576e['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2ce138,'ELEMENT_CAPTION')),_0x362a93['plugins']['has']('ImageUploadEditing')&&_0x20576e['enableCommand']('uploadImage'),_0x362a93['plugins']['has']('ImageBlockEditing')&&_0x362a93['plugins']['has']('ImageInlineEditing')&&(_0x20576e['enableCommand']('imageTypeInline',(_0x34a34d,_0x47255e)=>{const _0x41d093=_0x2c0bfb['getClosestSelectedImageElement'](_0x362a93['model']['document']['selection']);_0x362a93['model']['change'](()=>{_0x20576e['markBlockFormat'](_0x41d093,{'commandName':'imageTypeInline','commandParams':[_0x47255e]},[],'convertBlockImageToInline');});}),_0x20576e['enableCommand']('imageTypeBlock',(_0x1c8761,_0x48deca)=>{_0x362a93['model']['change'](_0x4a614f=>{let _0x5f1390=_0x2c0bfb['getClosestSelectedImageElement'](_0x362a93['model']['document']['selection']),_0x4e8ddd=_0x4a614f['createRangeOn'](_0x5f1390);const _0x5b045d=_0x5284b3['fromPosition'](_0x4e8ddd['start'],'toPrevious'),_0x50c31c=_0x5284b3['fromPosition'](_0x4e8ddd['end'],'toNext');_0x20576e['forceDefaultExecution'](()=>_0x1c8761(_0x48deca)),_0x5f1390=_0x2c0bfb['getClosestSelectedImageElement'](_0x362a93['model']['document']['selection']),_0x4e8ddd=_0x4a614f['createRangeOn'](_0x5f1390);const _0x40dda7=_0x4a614f['createRange'](_0x5b045d,_0x50c31c);_0x5b045d['detach'](),_0x50c31c['detach'](),_0x20576e['markBlockFormat'](_0x5f1390,{'commandName':'imageTypeInline','commandParams':[_0x48deca]},[],'convertInlineImageToBlock'),_0x40dda7['start']['isBefore'](_0x4e8ddd['start'])&&_0x20576e['markInsertion'](_0x4a614f['createRange'](_0x40dda7['start'],_0x4e8ddd['start']),'convertInlineImageToBlock'),_0x4e8ddd['end']['isBefore'](_0x40dda7['end'])&&_0x20576e['markInsertion'](_0x4a614f['createRange'](_0x4e8ddd['end'],_0x40dda7['end']),'convertInlineImageToBlock');});}),_0x20576e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x20576e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x20576e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x20576e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x20576e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x20576e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x43fe58])=>{const _0x1f0ffa=_0x20576e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1bd743=_0x43fe58['start'],_0x5db2ce=_0x43fe58['end'];const _0x5f56ec=_0x362a93['model']['schema']['getNearestSelectionRange'](_0x1bd743,'backward'),_0x3c53c9=_0x362a93['model']['schema']['getNearestSelectionRange'](_0x5db2ce,'forward');_0x5f56ec['isCollapsed']&&(_0x1bd743=_0x5f56ec['start']),_0x3c53c9['isCollapsed']&&(_0x5db2ce=_0x3c53c9['end']),_0x1f0ffa([_0x362a93['model']['createRange'](_0x1bd743,_0x5db2ce)]);}),_0x20576e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x15e17b),_0x20576e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x15e17b)),_0x362a93['plugins']['has']('ImageCaptionEditing')&&(_0x20576e['enableCommand']('toggleImageCaption',(_0x10940b,_0x5c13c4)=>{const _0xce49e=_0x362a93['plugins']['get']('ImageCaptionUtils');let _0x2018ed=_0x2c0bfb['getClosestSelectedImageElement'](_0x362a93['model']['document']['selection']),_0x5a556d=_0xce49e['getCaptionFromImageModelElement'](_0x2018ed);_0x362a93['model']['change'](()=>{if(_0x5a556d)return void _0x20576e['markDeletion'](_0x362a93['model']['createRangeOn'](_0x5a556d));const _0x26a2cc=_0x2c0bfb['isBlockImage'](_0x2018ed);_0x10940b(_0x5c13c4),_0x2018ed=_0x2c0bfb['getClosestSelectedImageElement'](_0x362a93['model']['document']['selection']),_0x5a556d=_0xce49e['getCaptionFromImageModelElement'](_0x2018ed),_0x20576e['markInsertion'](_0x362a93['model']['createRangeOn'](_0x5a556d),_0x26a2cc?null:'imageCaption');});}),_0x20576e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x15e17b));const _0x26d683=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x44ee51(_0x7e32bc,_0x451348){const _0x36e76d=_0x26d683['findIndex'](({type:_0x4e17f9,subType:_0x45fad4})=>_0x7e32bc['type']==_0x4e17f9&&_0x7e32bc['subType']==_0x45fad4),_0x737947=_0x26d683['findIndex'](({type:_0x5b619e,subType:_0x219efd})=>_0x451348['type']==_0x5b619e&&_0x451348['subType']==_0x219efd);if(_0x36e76d<0x0||_0x737947<0x0)return!0x1;const _0x343c29=_0x7e32bc['getFirstRange'](),_0xc07aa2=_0x451348['getFirstRange']();if((0x0==_0x36e76d||0x1==_0x36e76d)&&0x2==_0x737947&&_0x343c29['isIntersecting'](_0xc07aa2))return!0x0;if(0x2==_0x36e76d&&0x3==_0x737947){const _0x4d92cd=_0x20576e['_findSuggestions'](_0x343c29,'insertion')['filter'](({suggestion:_0x27d1b3,meta:_0x2027b7})=>_0x2027b7['isOwn']&&'convertInlineImageToBlock'==_0x27d1b3['subType']);if(_0x4d92cd['length']>0x1&&_0xc07aa2['end']['isEqual'](_0x343c29['start']))return!0x0;if(0x1==_0x4d92cd['length']&&(_0x343c29['start']['isEqual'](_0xc07aa2['end'])||_0x343c29['end']['isEqual'](_0xc07aa2['start'])))return!0x0;}if(0x3==_0x36e76d&&0x3==_0x737947&&_0x343c29['start']['isBefore'](_0xc07aa2['start'])){const _0x17ed2c=_0x343c29['end']['nodeAfter'],_0x127b90=_0xc07aa2['start']['nodeBefore'];return _0x2c0bfb['isBlockImage'](_0x17ed2c)&&_0x17ed2c===_0x127b90;}return!0x1;}function _0x15e17b(_0xea6c9,_0x4259a7){return _0x44ee51(_0xea6c9,_0x4259a7)?[_0xea6c9,_0x4259a7]:_0x44ee51(_0x4259a7,_0xea6c9)?[_0x4259a7,_0xea6c9]:null;}_0x362a93['plugins']['has']('ImageResize')&&(_0x20576e['enableDefaultAttributesIntegration']('resizeImage'),_0x20576e['registerBlockAttribute']('resizedWidth'),_0x20576e['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2ce138,'FORMAT_IMAGE_SIZE'))),_0x362a93['plugins']['has']('ImageTextAlternativeEditing')&&(_0x20576e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x20576e['registerBlockAttribute']('alt')),_0x362a93['plugins']['has']('PictureEditing')&&(_0x20576e['registerBlockAttribute']('sources'),_0x20576e['descriptionFactory']['registerDescriptionCallback'](_0x319fb3=>{if('attribute'!=_0x319fb3['type'])return;const {data:_0x29d439}=_0x319fb3;return _0x29d439&&'sources'==_0x29d439['key']?{'type':'format','content':''}:void 0x0;})),_0x362a93['plugins']['has']('ImageSizeAttributes')&&(_0x20576e['registerBlockAttribute']('width'),_0x20576e['registerBlockAttribute']('height'),_0x20576e['descriptionFactory']['registerDescriptionCallback'](_0x4907b1=>{if('attribute'!=_0x4907b1['type'])return;const {data:_0x19bf48}=_0x4907b1;return!_0x19bf48||'width'!=_0x19bf48['key']&&'height'!=_0x19bf48['key']?void 0x0:{'type':'format','content':''};})),_0x20576e['descriptionFactory']['registerDescriptionCallback'](_0x3804d6=>{if(!!_0x26d683['find'](({type:_0x134132,subType:_0xa8cb83})=>_0x3804d6['type']==_0x134132&&_0x3804d6['subType']==_0xa8cb83))return _0x3804d6['previous']?{}:void 0x0;}),_0x20576e['descriptionFactory']['registerDescriptionCallback'](_0xef4093=>{if('insertion'==_0xef4093['type']||'deletion'==_0xef4093['type']){const _0x51dcb3=_0xef4093['getContainedElement']();if(_0x51dcb3&&_0x51dcb3['is']('element','caption'))return{'type':'insertion'==_0xef4093['type']?'addObject':'removeObject','element':_0x51dcb3,'quantity':0x1};}}),_0x20576e['descriptionFactory']['registerDescriptionCallback'](_0x1b7e71=>'formatBlock'==_0x1b7e71['type']&&'convertInlineImageToBlock'==_0x1b7e71['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1b7e71['type']&&'convertBlockImageToInline'==_0x1b7e71['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x20576e['descriptionFactory']['registerDescriptionCallback'](_0x35fb5f=>{if('attribute'!=_0x35fb5f['type'])return;const {data:_0x17bb19}=_0x35fb5f;if(!_0x17bb19||'alt'!=_0x17bb19['key'])return;const _0x489c73=_0x17bb19['newValue'];return _0x489c73?{'type':'format','content':o(_0x2ce138,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x489c73+'\x22')}:{'type':'format','content':o(_0x2ce138,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1be603=this['editor'],_0x51fc6f=_0x1be603['locale'];_0x1be603['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ac4bf=>{if('formatBlock'!=_0x2ac4bf['type']&&'formatInline'!=_0x2ac4bf['type'])return;const {data:_0x751af7}=_0x2ac4bf;if(_0x751af7){if('imageTextAlternative'==_0x751af7['commandName']){const _0x568da4=_0x751af7['commandParams'][0x0]['newValue'];return _0x568da4?{'type':'format','content':o(_0x51fc6f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x568da4+'\x22')}:{'type':'format','content':o(_0x51fc6f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x751af7['commandName']){const _0x5dc081=_0x751af7['commandParams'][0x0]['width'];return _0x5dc081?{'type':'format','content':o(_0x51fc6f,'*Set\x20image\x20width:*\x20%0',_0x5dc081)}:{'type':'format','content':o(_0x51fc6f,'*Reset\x20image\x20width*')};}}});}}class st extends _0x23c4fa{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x53b1df=this['editor']['locale'],_0x2a397d=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a397d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2a397d['registerBlockAttribute']('src'),_0x2a397d['descriptionFactory']['registerDescriptionCallback'](_0x364c0f=>{if('attribute'!=_0x364c0f['type'])return;const {data:_0x4297ab}=_0x364c0f;return _0x4297ab&&'src'==_0x4297ab['key']?_0x4297ab['newValue']&&_0x4297ab['oldValue']?{'type':'format','content':o(_0x53b1df,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x59608d=this['editor']['plugins']['get']('TrackChangesEditing');_0x59608d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x59608d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59608d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x59608d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x435fef=this['editor'],_0x475cb0=_0x435fef['locale'];_0x435fef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45609e=>{if('formatBlock'!=_0x45609e['type']&&'formatInline'!=_0x45609e['type'])return;const {data:_0x3dbebc}=_0x45609e;if(!_0x3dbebc||'replaceImageSource'!=_0x3dbebc['commandName'])return;return{'type':'format','content':o(_0x475cb0,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x23c4fa{['afterInit'](){const _0x4cc369=this['editor'];if(!_0x4cc369['plugins']['has']('ImageStyleEditing'))return;const _0x2f38ab=_0x4cc369['plugins']['get']('TrackChangesEditing'),_0x5bb3e1=_0x4cc369['plugins']['get']('ImageUtils'),_0x28fe8f={};_0x2f38ab['enableCommand']('imageStyle',(_0x53f507,_0x3f2379)=>{const _0x586b12=_0x4cc369['plugins']['get']('Users')['me'],_0x585bda=_0x4cc369['commands']['get']('imageStyle');let _0xaa942a=_0x5bb3e1['getClosestSelectedImageElement'](_0x4cc369['model']['document']['selection']),_0x17d79a=_0x4cc369['model']['createRangeOn'](_0xaa942a),_0x310079=_0x585bda['value'];if(_0x310079==_0x3f2379['value'])return;const _0x16c179={'commandName':'imageStyle','commandParams':[_0x3f2379],'formatGroupId':_0x1ddc4e()};_0x4cc369['model']['change'](()=>{if(_0x2f38ab['getSuggestions']()['filter'](_0x2b272d=>_0x2b272d['isInContent']&&_0x586b12==_0x2b272d['author']&&('formatBlock'==_0x2b272d['type']||'formatInline'==_0x2b272d['type'])&&('imageStylePreApply'==_0x2b272d['subType']||'imageStylePostApply'==_0x2b272d['subType'])&&_0x2b272d['getFirstRange']()['isEqual'](_0x17d79a))['forEach'](_0xce698a=>_0x2f38ab['discardSuggestion'](_0xce698a['head'])),_0xaa942a=_0x5bb3e1['getClosestSelectedImageElement'](_0x4cc369['model']['document']['selection']),_0x17d79a=_0x4cc369['model']['createRangeOn'](_0xaa942a),_0x585bda['refresh'](),_0x4cc369['commands']['get']('imageTypeInline')['refresh'](),_0x4cc369['commands']['get']('imageTypeBlock')['refresh'](),_0x310079=_0x585bda['value'],_0x310079!=_0x3f2379['value'])return _0x5bb3e1['isInlineImage'](_0xaa942a)&&_0x585bda['shouldConvertImageType'](_0x3f2379['value'],_0xaa942a)?(_0x53f507({..._0x3f2379,'setImageSizes':!0x1}),_0xaa942a=_0x5bb3e1['getClosestSelectedImageElement'](_0x4cc369['model']['document']['selection']),void _0x2f38ab['markBlockFormat'](_0xaa942a,{..._0x16c179,'commandReversedParams':[{'value':_0x310079||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5bb3e1['isBlockImage'](_0xaa942a)?_0x2f38ab['markBlockFormat'](_0xaa942a,_0x16c179,[],'imageStylePostApply'):_0x2f38ab['markInlineFormat'](_0x17d79a,_0x16c179,'imageStylePostApply'));});});for(const _0x8a1ea4 of _0x4cc369['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x28fe8f[_0x8a1ea4['name']]=_0x8a1ea4['title']['toLowerCase']();_0x2f38ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2f38ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2f38ab['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2f38ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4f0843])=>{_0x5bb3e1['setImageNaturalSizeAttributes'](_0x4f0843['getContainedElement']());}),_0x2f38ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4f1937,_0x99463a)=>{_0x2f38ab['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4f1937,{'commandName':_0x99463a['commandName'],'commandParams':_0x99463a['commandReversedParams']});}),_0x2f38ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x530365,_0x358042){if(_0x3b89ca(_0x530365,_0x358042))return[_0x530365,_0x358042];if(_0x3b89ca(_0x358042,_0x530365))return[_0x358042,_0x530365];return null;});const _0x1185ff=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3b89ca(_0x5f2855,_0xcc3d92){const _0x29c3f2=_0x1185ff['findIndex'](({type:_0x4f4e87,subType:_0x54f4e2})=>_0x5f2855['type']==_0x4f4e87&&_0x5f2855['subType']==_0x54f4e2),_0x23c108=_0x1185ff['findIndex'](({type:_0x370bf2,subType:_0x1a02ad})=>_0xcc3d92['type']==_0x370bf2&&_0xcc3d92['subType']==_0x1a02ad);if(_0x29c3f2<0x0||_0x23c108<0x0)return!0x1;const _0x2ae8e9=_0x5f2855['getFirstRange'](),_0x2a8be7=_0xcc3d92['getFirstRange']();if((0x0==_0x29c3f2||0x1==_0x29c3f2)&&0x2==_0x23c108&&_0x2ae8e9['isIntersecting'](_0x2a8be7))return!0x0;if(0x2==_0x29c3f2&&0x3==_0x23c108){const _0x5c0771=_0x2f38ab['_findSuggestions'](_0x2ae8e9,'insertion')['filter'](({suggestion:_0xb3417,meta:_0x167159})=>_0x167159['isOwn']&&'convertInlineImageToBlock'==_0xb3417['subType']);if(_0x5c0771['length']>0x1&&_0x2a8be7['end']['isEqual'](_0x2ae8e9['start']))return!0x0;if(0x1==_0x5c0771['length']&&(_0x2ae8e9['start']['isEqual'](_0x2a8be7['end'])||_0x2ae8e9['end']['isEqual'](_0x2a8be7['start'])))return!0x0;}if(0x3==_0x29c3f2&&0x3==_0x23c108&&_0x2ae8e9['start']['isBefore'](_0x2a8be7['start'])){const _0x7493cf=_0x2ae8e9['end']['nodeAfter'],_0x2bfc66=_0x2a8be7['start']['nodeBefore'];return _0x5bb3e1['isBlockImage'](_0x7493cf)&&_0x7493cf===_0x2bfc66;}return!0x1;}_0x4cc369['model']['document']['registerPostFixer'](()=>{let _0x3970fb=!0x1;const _0x1d04e1=Array['from'](_0x4cc369['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x73ba36,data:_0x348bea}of _0x1d04e1){const {group:_0x743521,type:_0x1386a2,subType:_0x308f29,id:_0x13ce99}=_0x2f38ab['_splitMarkerName'](_0x73ba36);if('suggestion'==_0x743521&&_0x2f38ab['hasSuggestion'](_0x13ce99)){if('formatBlock'==_0x1386a2&&('imageStylePreApply'==_0x308f29||'imageStylePostApply'==_0x308f29)){const _0x102823=_0x2f38ab['getSuggestion'](_0x13ce99);if(_0x348bea['newRange']){const _0xc3fafe=_0x102823['getFirstRange']()['getContainedElement']();if(_0x5bb3e1['isBlockImage'](_0xc3fafe))continue;_0x2f38ab['discardSuggestion'](_0x102823),_0x3970fb=!0x0;}}if('insertion'==_0x1386a2&&'imageCaption'==_0x308f29&&!_0x348bea['newRange']){const _0x52c529=_0x2f38ab['getSuggestion'](_0x13ce99);_0x52c529['next']&&_0x52c529['next']['isInContent']&&(_0x2f38ab['discardSuggestion'](_0x52c529['next']),_0x3970fb=!0x0);}}}return _0x3970fb;}),this['_registerLegacyDescription'](_0x28fe8f);}['_registerLegacyDescription'](_0x4fb293){const _0x5db894=this['editor'],_0x2f47cc=_0x5db894['locale'];_0x5db894['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21d039=>{if('formatBlock'!=_0x21d039['type']&&'formatInline'!=_0x21d039['type'])return;const {data:_0x3afb6d}=_0x21d039;if(!_0x3afb6d||'imageStyle'!=_0x3afb6d['commandName'])return;const _0x55f138=_0x3afb6d['commandParams'][0x0]['value'];return _0x441a2b('side'===_0x55f138?o(_0x2f47cc,'FORMAT_SIDE_IMAGE'):_0x4fb293[_0x55f138]||_0x55f138);function _0x441a2b(_0x4bc850){return{'type':'format','content':o(_0x2f47cc,'*Format:*\x20%0',_0x4bc850)};}});}}class rt extends _0x23c4fa{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x151e32){super(_0x151e32),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5f52df=this['editor'],_0x3cc830=_0x5f52df['commands']['get']('importWord'),_0x23f02c=_0x5f52df['commands']['get']('trackChanges');_0x3cc830&&(_0x3cc830['on']('execute',(_0x3627b7,[,_0x9fa860])=>{this['_trackChangesValueDuringImport']=_0x23f02c['value'],_0x9fa860['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3cc830,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3cc830,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x23f02c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5f52df['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x18c38a,_0xfb449c){const {suggestions:_0x53c13f}=_0xfb449c,_0xfa5196=this['editor']['commands']['get']('trackChanges'),_0x6d42a1=_0xfa5196['value'];this['_trackChangesValueDuringImport']!==_0x6d42a1&&(_0xfa5196['execute'](),this['_trackChangesExecuted']=!0x0),_0x53c13f&&_0x53c13f['forEach'](({id:_0x56f6de,type:_0x48af37,author:_0x38c4b5,created_at:_0x158709})=>{const _0x39a4a8={'id':_0x56f6de,'type':_0x48af37,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x38c4b5,'createdAt':_0x158709?new Date(_0x158709):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x39a4a8);});}}class at extends _0x23c4fa{['afterInit'](){const _0x248e93=this['editor'],_0x3a901e=_0x248e93['plugins']['get']('TrackChangesEditing');if(_0x248e93['plugins']['has']('IndentEditing')&&(_0x3a901e['enableCommand']('indent'),_0x3a901e['enableCommand']('outdent')),_0x248e93['plugins']['has']('IndentBlock')){for(const _0x575363 of['indentBlock','outdentBlock'])_0x3a901e['enableDefaultAttributesIntegration'](_0x575363);}const _0x2f9355=_0x248e93['locale'];_0x3a901e['registerBlockAttribute']('blockIndent'),_0x3a901e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2f9355,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ffb50=this['editor'],_0x49712c=_0x5ffb50['locale'],_0x43596e=_0x5ffb50['plugins']['get']('TrackChangesEditing');_0x43596e['descriptionFactory']['registerDescriptionCallback'](_0x3ff282=>{if('formatBlock'!=_0x3ff282['type'])return;const {data:_0x3b095e}=_0x3ff282;if(!_0x3b095e)return;if('indentBlock'!=_0x3b095e['commandName']&&'outdentBlock'!=_0x3b095e['commandName'])return;const _0x4d55a2=_0x3ff282['getItems']()[0x0],_0x2ef59c=_0x43596e['descriptionFactory']['getItemLabel'](_0x4d55a2);return'indentBlock'==_0x3b095e['commandName']?{'type':'format','content':o(_0x49712c,'*Indent:*\x20%0',_0x2ef59c)}:'outdentBlock'==_0x3b095e['commandName']?{'type':'format','content':o(_0x49712c,'*Outdent:*\x20%0',_0x2ef59c)}:void 0x0;});}}class ct extends _0x23c4fa{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x23c4fa{['afterInit'](){const _0x3bcdc3=this['editor'];if(!_0x3bcdc3['plugins']['has']('LinkEditing'))return;const _0x519893=_0x3bcdc3['plugins']['get']('TrackChangesEditing'),_0x563014=_0x3bcdc3['commands']['get']('link');_0x519893['enableDefaultAttributesIntegration']('link'),_0x519893['enableDefaultAttributesIntegration']('unlink'),_0x519893['registerInlineAttribute']('linkHref');for(const _0x276259 of _0x563014['manualDecorators'])_0x519893['registerInlineAttribute'](_0x276259['id']),_0x519893['descriptionFactory']['registerAttributeLabel'](_0x276259['id'],'link\x20('+_0x276259['label']['toLowerCase']()+')');_0x519893['descriptionFactory']['registerDescriptionCallback'](_0x530e66=>{if('attribute'!=_0x530e66['type'])return;const {data:_0x5686af}=_0x530e66;if(!_0x5686af||'linkHref'!=_0x5686af['key'])return;const _0x3c869a=_0x5686af['newValue'],_0x3ce86c=_0x3bcdc3['locale'];return{'type':'format','content':null==_0x3c869a?o(_0x3ce86c,'*Remove\x20link*'):o(_0x3ce86c,'*Set\x20link:*\x20%0','\x22'+_0x3c869a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4448a6=this['editor'],_0x4352e8=_0x4448a6['locale'];_0x4448a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fc635=>{if('formatInline'!=_0x3fc635['type'])return;const {data:_0x490b68}=_0x3fc635;if(_0x490b68){if('link'==_0x490b68['commandName']){const _0x30099d=_0x490b68['commandParams'][0x0];return{'type':'format','content':o(_0x4352e8,'*Set\x20link:*\x20%0','\x22'+_0x30099d+'\x22')};}return'unlink'==_0x490b68['commandName']?{'type':'format','content':o(_0x4352e8,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x23c4fa{['afterInit'](){const _0x31a959=this['editor'],_0x3d2b95=_0x31a959['locale'];if(!_0x31a959['plugins']['has']('LegacyListEditing'))return;const _0x1e29a7=_0x31a959['plugins']['get']('TrackChangesEditing'),_0x315fb8=_0x31a959['plugins']['has']('LegacyTodoListEditing');function _0x25c4e3(_0x3a5c95){return()=>{const _0x5604ea=_0x31a959['model']['document']['selection'],_0x4dae89=_0x31a959['commands']['get'](_0x3a5c95);if(_0x4dae89['value'])return void _0x31a959['execute']('paragraph',{});const _0xc2f409=_0x3a5c95['slice'](0x0,-0x4),_0x2b0b1c=function(_0x54198f,_0x438aab,_0x126da4){let _0xdb3278=Array['from'](_0x54198f)['filter'](_0x57b1a4=>function(_0x916b5a,_0x1955b8){return _0x1955b8['checkChild'](_0x916b5a['parent'],'listItem')&&!_0x1955b8['isObject'](_0x916b5a);}(_0x57b1a4,_0x126da4));_0xdb3278=_0xdb3278['filter'](_0x461344=>!_0x461344['is']('element','listItem')||_0x461344['getAttribute']('listType')!=_0x438aab);const _0x476f7f=new Set();for(const _0x31dbf4 of _0xdb3278)_0x31dbf4['is']('element','listItem')?_0x476f7f['add'](Le(_0x31dbf4)):_0x476f7f['add'](_0x31dbf4);return Array['from'](_0x476f7f);}(_0x5604ea['getSelectedBlocks'](),_0xc2f409,_0x31a959['model']['schema']);_0x31a959['model']['change'](()=>{for(const _0x2fe132 of _0x2b0b1c)_0x1e29a7['markBlockFormat'](_0x2fe132,{'commandName':_0x3a5c95,'commandParams':[{'forceValue':!_0x4dae89['value']}],'formatGroupId':'blockName'},Ee(_0x2fe132));});};}function _0x59d2c6(_0xcb56cd){return()=>{const _0x2f6964=function(_0x57e5c8){let _0x130123=Array['from'](_0x57e5c8);const _0x39c545=_0x130123['findIndex'](_0x29b8f2=>'listItem'!=_0x29b8f2['name']);return _0x39c545>-0x1&&(_0x130123=_0x130123['slice'](0x0,_0x39c545)),_0x130123;}(_0x31a959['model']['document']['selection']['getSelectedBlocks']()),_0xcc418a=_0x31a959['model']['createRange'](_0x31a959['model']['createPositionAt'](_0x2f6964[0x0],'before'),_0x31a959['model']['createPositionAt'](_0x2f6964[_0x2f6964['length']-0x1],'end'));_0x31a959['model']['change'](()=>{_0x1e29a7['markBlockFormat'](_0xcc418a,{'commandName':_0xcb56cd,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2130f7){const _0x822b9d=new Set();for(const _0x3a3a73 of _0x2130f7){let _0x1a9488=_0x3a3a73['nextSibling'];for(;_0x1a9488&&_0x1a9488['getAttribute']('listIndent')>_0x3a3a73['getAttribute']('listIndent');)_0x822b9d['add'](_0x1a9488),_0x1a9488=_0x1a9488['nextSibling'];}return Array['from'](_0x822b9d);}(_0x2f6964));});};}_0x1e29a7['enableCommand']('numberedList',_0x25c4e3('numberedList')),_0x1e29a7['enableCommand']('bulletedList',_0x25c4e3('bulletedList')),_0x315fb8&&_0x1e29a7['enableCommand']('todoList',_0x25c4e3('todoList')),_0x1e29a7['enableCommand']('indentList',_0x59d2c6('indentList')),_0x1e29a7['enableCommand']('outdentList',_0x59d2c6('outdentList')),_0x315fb8&&_0x1e29a7['enableCommand']('checkTodoList',()=>{const _0x5141c3=_0x31a959['commands']['get']('checkTodoList'),_0x4b8a64=Array['from'](_0x5141c3['_selectedElements']);_0x4b8a64['filter'](_0x4e20ab=>_0x4e20ab['getAttribute']('todoListChecked')!=_0x5141c3['value']),_0x31a959['model']['change'](()=>{for(const _0x21804f of _0x4b8a64)_0x1e29a7['markBlockFormat'](_0x21804f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5141c3['value']}]});});}),_0x1e29a7['descriptionFactory']['registerElementLabel']('listItem',_0x2cf99e=>o(_0x3d2b95,'ELEMENT_LIST_ITEM',_0x2cf99e)),_0x1e29a7['descriptionFactory']['registerDescriptionCallback'](_0x5c320b=>{if('formatBlock'!=_0x5c320b['type']&&'formatInline'!=_0x5c320b['type'])return;const {data:_0x1c42d2}=_0x5c320b;if(_0x1c42d2){if('numberedList'==_0x1c42d2['commandName']||'bulletedList'==_0x1c42d2['commandName']||'todoList'==_0x1c42d2['commandName'])switch(_0x1c42d2['commandName']['replace']('List','')){case'bulleted':return _0x390794(o(_0x3d2b95,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x390794(o(_0x3d2b95,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x390794(o(_0x3d2b95,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1c42d2['commandName'])return{'type':'format','content':o(_0x3d2b95,'*Indent:*\x20%0',o(_0x3d2b95,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1c42d2['commandName'])return{'type':'format','content':o(_0x3d2b95,'*Outdent:*\x20%0',o(_0x3d2b95,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1c42d2['commandName'])return _0x1c42d2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3d2b95,'*Check\x20item*')}:{'type':'format','content':o(_0x3d2b95,'*Uncheck\x20item*')};}function _0x390794(_0x51f757){return{'type':'format','content':o(_0x3d2b95,'*Change\x20to:*\x20%0',_0x51f757)};}});}}function Le(_0x9a80e3){const _0x58187=_0x9a80e3['getAttribute']('listIndent');if(0x0==_0x58187)return _0x9a80e3;let _0x9cf02b=_0x9a80e3;for(;_0x9a80e3['previousSibling']&&_0x9a80e3['previousSibling']['is']('element','listItem');){const _0x282c02=_0x9a80e3['previousSibling']['getAttribute']('listIndent');if(_0x282c02==_0x58187)_0x9cf02b=_0x9a80e3['previousSibling'];else{if(_0x282c02<_0x58187)break;}_0x9a80e3=_0x9a80e3['previousSibling'];}return _0x9cf02b;}function Ee(_0x13d36a){const _0xa61e=[];if(_0x13d36a['is']('element','listItem')&&_0x13d36a['getAttribute']('listIndent')>0x0){let _0x7e7fbe=_0x13d36a['nextSibling'];for(;_0x7e7fbe&&'listItem'==_0x7e7fbe['name']&&_0x7e7fbe['getAttribute']('listIndent')==_0x13d36a['getAttribute']('listIndent');)_0xa61e['push'](_0x7e7fbe),_0x7e7fbe=_0x7e7fbe['nextSibling'];}return _0xa61e;}class ht extends _0x23c4fa{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1a6926=this['editor']['config']['get']('list.properties'),_0x3b02d0=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a6926['styles']&&_0x3b02d0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1a6926['reversed']&&_0x3b02d0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1a6926['startIndex']&&_0x3b02d0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3b02d0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x178851,_0x428ea3={}){const _0x365414=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7e317b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x365414['markMultiRangeBlockFormat'](_0x7e317b,{'commandName':'listStyle','commandParams':[{'type':_0x428ea3['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x192452,_0x43333a={}){const _0x1a8db6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42fd5e=this['_getSuggestionBlocks'](_0x1104fd=>_0x1104fd['is']('element','listItem')&&'numbered'===_0x1104fd['getAttribute']('listType'));if(_0x42fd5e['length']<0x1)return;const _0xf9bc09=_0x42fd5e['map'](_0x366858=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x366858,'before'),this['editor']['model']['createPositionAt'](_0x366858,0x0)));this['editor']['model']['change'](()=>{_0x1a8db6['markMultiRangeBlockFormat'](_0xf9bc09,{'commandName':'listReversed','commandParams':[{'reversed':_0x43333a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x352235,_0x412fc1={}){const _0x165c92=this['editor']['plugins']['get']('TrackChangesEditing'),_0x582fe6=this['_getSuggestionBlocks'](_0x2e369c=>_0x2e369c['is']('element','listItem')&&'numbered'===_0x2e369c['getAttribute']('listType'));if(_0x582fe6['length']<0x1)return;const _0x43fa6b=_0x582fe6['map'](_0x4c6359=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4c6359,'before'),this['editor']['model']['createPositionAt'](_0x4c6359,0x0)));this['editor']['model']['change'](()=>{_0x165c92['markMultiRangeBlockFormat'](_0x43fa6b,{'commandName':'listStart','commandParams':[{'startIndex':_0x412fc1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xf8b124){if('formatBlock'!=_0xf8b124['type']&&'formatInline'!=_0xf8b124['type'])return;const _0x5957f5=this['editor']['locale'],{data:_0x353173}=_0xf8b124;if(!_0x353173)return;let _0x2c0bbb,_0x181dd2;switch(_0x353173['commandName']){case'listStyle':_0x2c0bbb='*Change\x20to:*\x20%0',_0x181dd2={'type':'format','content':o(_0x5957f5,_0x2c0bbb,o(_0x5957f5,this['_getTranslationKeyForListStyle'](_0x353173['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2c0bbb=_0x353173['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x181dd2={'type':'format','content':o(_0x5957f5,_0x2c0bbb)};break;case'listStart':_0x2c0bbb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x181dd2={'type':'format','content':o(_0x5957f5,_0x2c0bbb,_0x353173['commandParams'][0x0]['startIndex'])};}return _0x181dd2;}['_getSuggestionBlocksForListStyle'](){const _0x3d9956=this['editor']['plugins']['get']('LegacyListUtils');let _0x6176eb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x6176eb[0x0]?.['is']('element','listItem')&&_0x6176eb['unshift'](..._0x3d9956['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x6176eb[_0x6176eb['length']-0x1]?.['is']('element','listItem')&&_0x6176eb['push'](..._0x3d9956['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x6176eb=[...new Set(_0x6176eb)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x6176eb=_0x6176eb['filter'](_0x39ce16=>_0x39ce16['is']('element','listItem'))),_0x6176eb;}['_getSuggestionBlocks'](_0x3deffa){const _0x401dbf=this['editor']['plugins']['get']('LegacyListUtils');let _0x4cfa73=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3deffa)['map'](_0x5a30d5=>{const _0x230edf=this['editor']['model']['createPositionAt'](_0x5a30d5,0x0);return[..._0x401dbf['getSiblingNodes'](_0x230edf,'backward'),..._0x401dbf['getSiblingNodes'](_0x230edf,'forward')];})['flat']();return _0x4cfa73=[...new Set(_0x4cfa73)],_0x4cfa73;}['_getTranslationKeyForListStyle'](_0x280b88){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x280b88)||'default')['toUpperCase']()+'_LIST_'+_0x280b88['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x23c4fa{['afterInit'](){const _0x41f3eb=this['editor'];if(!_0x41f3eb['plugins']['has']('MediaEmbedEditing'))return;const _0x30b570=_0x41f3eb['plugins']['get']('TrackChangesEditing'),_0x7f5754=_0x41f3eb['locale'];_0x30b570['enableCommand']('mediaEmbed'),_0x30b570['descriptionFactory']['registerElementLabel']('media',_0x477050=>o(_0x7f5754,'ELEMENT_MEDIA',_0x477050)),_0x41f3eb['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2ee775,{writer:_0x45efa5,options:_0x20c4a9})=>{if(_0x20c4a9['showSuggestionHighlights'])return _0x45efa5['createEmptyElement']('div');},'converterPriority':'high'}),_0x41f3eb['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3521a2,_0x64f2f0,_0x174719)=>{_0x174719['options']['showSuggestionHighlights']&&_0x3521a2['stop']();},{'priority':'high'});}}class lt extends _0x23c4fa{['afterInit'](){const _0x3e0b45=this['editor'];_0x3e0b45['plugins']['has']('MentionEditing')&&_0x3e0b45['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x23c4fa{['afterInit'](){const _0x27a2c3=this['editor'];if(!_0x27a2c3['plugins']['has']('MergeFieldsEditing'))return;const _0x148ba5=_0x27a2c3['plugins']['get']('TrackChangesEditing'),_0x3c4af5=_0x27a2c3['locale'];_0x148ba5['enableCommand']('insertMergeField'),_0x148ba5['enableCommand']('insertMergeFieldBlock'),_0x148ba5['enableCommand']('insertMergeFieldImage'),_0x148ba5['descriptionFactory']['registerElementLabel']('mergeField',_0x42bdb7=>o(_0x3c4af5,'ELEMENT_MERGE_FIELD',_0x42bdb7)),_0x148ba5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2e43d0=>o(_0x3c4af5,'ELEMENT_MERGE_FIELD',_0x2e43d0)),_0x148ba5['descriptionFactory']['registerDescriptionCallback'](_0x5583a6=>{if('insertion'!=_0x5583a6['type']&&'deletion'!=_0x5583a6['type'])return;const _0x1947c0=_0x5583a6['getContainedElement']();if(null==_0x1947c0)return;const _0x26db9e=_0x27a2c3['plugins']['get']('MergeFieldsEditing');let _0x1e7f2d;switch(_0x26db9e['getMergeFieldType'](_0x1947c0)){case null:return;case'image':{const _0x5e40ba=_0x26db9e['unwrapAffixes'](_0x1947c0['getAttribute']('src'));_0x1e7f2d=_0x26db9e['getLabel'](_0x5e40ba)||_0x5e40ba;break;}default:{const _0x3f39e7=_0x1947c0['getAttribute']('id');_0x1e7f2d=_0x26db9e['getLabel'](_0x3f39e7)||_0x3f39e7;break;}}return'insertion'==_0x5583a6['type']?{'type':'insertion','content':o(_0x3c4af5,'*Insert:*\x20%0','\x22'+_0x1e7f2d+'\x22\x20'+o(_0x3c4af5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3c4af5,'*Remove:*\x20%0','\x22'+_0x1e7f2d+'\x22\x20'+o(_0x3c4af5,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x23c4fa{['afterInit'](){const _0x1d231c=this['editor'],_0x102582=_0x1d231c['plugins']['get']('TrackChangesEditing');_0x1d231c['plugins']['has']('MultiLevelList')&&(_0x102582['enableDefaultAttributesIntegration']('multiLevelList'),_0x102582['registerBlockAttribute']('listMarkerStyle'),_0x102582['descriptionFactory']['registerDescriptionCallback'](_0x3ada7f=>this['handleDescriptions'](_0x3ada7f)));}['handleDescriptions'](_0x29e84f){const _0x2d3411=this['editor']['locale'],{data:_0x2fe893}=_0x29e84f,_0x2fdddf={'type':'format','content':''};if(_0x2fe893&&'listMarkerStyle'==_0x2fe893['key']){if(!_0x2fe893['oldValue'])return{'type':'format','content':o(_0x2d3411,'*Set\x20format:*\x20%0',o(_0x2d3411,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2fe893['newValue']+')'};if(!_0x2fe893['newValue']){let _0x558d78=_0x29e84f['head'];for(;_0x558d78;){if(_0x558d78['data']&&'listType'==_0x558d78['data']['key']&&_0x558d78['data']['newValue'])return _0x2fdddf;_0x558d78=_0x558d78['next'];}return{'type':'format','content':o(_0x2d3411,'*Remove\x20format:*\x20%0',o(_0x2d3411,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2fe893['oldValue']+')'};}}}}class pt extends _0x23c4fa{['afterInit'](){const _0x524687=this['editor'];if(!_0x524687['plugins']['has']('PageBreakEditing'))return;_0x524687['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x528024=_0x524687['plugins']['get']('TrackChangesEditing'),_0x134e04=_0x524687['locale'];_0x528024['descriptionFactory']['registerElementLabel']('pageBreak',_0x3f4e02=>o(_0x134e04,'ELEMENT_PAGE_BREAK',_0x3f4e02));}}class kt extends _0x23c4fa{['afterInit'](){const _0x4daafe=this['editor'];if(!_0x4daafe['plugins']['has']('Paragraph'))return;const _0x55cc4e=_0x4daafe['locale'],_0xed3e17=_0x4daafe['plugins']['get']('TrackChangesEditing');_0xed3e17['descriptionFactory']['registerElementLabel']('paragraph',_0x5464b7=>o(_0x55cc4e,'ELEMENT_PARAGRAPH',_0x5464b7)),_0xed3e17['enableDefaultAttributesIntegration']('paragraph'),_0xed3e17['enableCommand']('insertParagraph'),_0x4daafe['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4daafe),{'priority':'highest'}),_0x4daafe['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4911df,_0x41949f,_0x39144d)=>{_0x39144d['options']['showSuggestionHighlights']&&nr(_0x4daafe,{'showActiveMarker':!0x1})(_0x4911df,_0x41949f,_0x39144d);},{'priority':'highest'});const _0x443564=_0xed3e17['descriptionFactory'];_0x443564['registerDescriptionCallback'](_0x510ac7=>{if('insertion'!==_0x510ac7['type'])return;const {start:_0x1c5073,end:_0x1c1419}=_0x510ac7['getFirstRange']();if(!_0x1c5073['isTouching'](_0x1c1419)||!_0x1c5073['nodeAfter'])return;const _0x562ccd=_0x4daafe['model']['schema'],_0x2737d8=_0x1c5073['nodeAfter'];return _0x562ccd['isBlock'](_0x2737d8)&&!_0x562ccd['isLimit'](_0x2737d8)&&_0x562ccd['checkChild'](_0x2737d8,'$text')?{'type':'insertion','content':o(_0x55cc4e,'*Insert:*\x20%0',_0x443564['getItemLabel'](_0x2737d8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40273f=this['editor'],_0x50688c=_0x40273f['locale'];_0x40273f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x504990=>{if('formatBlock'!=_0x504990['type'])return;const {data:_0x8279f0}=_0x504990;return _0x8279f0&&'paragraph'==_0x8279f0['commandName']?{'type':'format','content':o(_0x50688c,'*Change\x20to:*\x20%0',o(_0x50688c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1b43f8,{showActiveMarker:_0x975f6a=!0x0}={}){return(_0x8cba22,_0x5fd9fc,_0x24bbbc)=>{const _0x10b336=_0x1b43f8['plugins']['get']('TrackChangesEditing'),_0x12e65e=_0x5fd9fc['markerRange']['start'],_0x4fcdcc=_0x5fd9fc['markerRange']['end'],_0x206b2c=_0x1b43f8['model']['schema'];if(!_0x12e65e['isTouching'](_0x4fcdcc)||!_0x12e65e['nodeAfter'])return;const _0x53f353=_0x12e65e['nodeAfter'];if(_0x206b2c['isBlock'](_0x53f353)&&!_0x206b2c['isLimit'](_0x53f353)&&_0x206b2c['checkChild'](_0x53f353,'$text')){if(!_0x24bbbc['consumable']['consume'](_0x5fd9fc['markerRange'],_0x8cba22['name']))return;const {id:_0xb0c6db,authorId:_0x34e9d1}=_0x10b336['_splitMarkerName'](_0x5fd9fc['markerName']),_0x474b91=_0x24bbbc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0xb0c6db,'data-author-id':_0x34e9d1}),_0x5c673e=_0x24bbbc['mapper']['toViewPosition'](_0x4fcdcc);_0x975f6a&&_0x10b336['activeMarkers']['includes'](_0x5fd9fc['markerName'])&&_0x24bbbc['writer']['addClass']('ck-suggestion-marker--active',_0x474b91),_0x24bbbc['writer']['insert'](_0x5c673e,_0x474b91),_0x24bbbc['mapper']['bindElementToMarker'](_0x474b91,_0x5fd9fc['markerName']);}};}class wt extends _0x23c4fa{['afterInit'](){const _0x468d32=this['editor'];_0x468d32['commands']['get']('replaceSource')&&_0x468d32['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x23c4fa{['afterInit'](){const _0x2d6e39=this['editor'];if(!_0x2d6e39['plugins']['has']('RemoveFormatEditing'))return;_0x2d6e39['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4db5bb=this['editor'];_0x4db5bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b0bd3=>{if('formatBlock'!=_0x3b0bd3['type']&&'formatInline'!=_0x3b0bd3['type'])return;const {data:_0x3dc325}=_0x3b0bd3;return _0x3dc325&&'removeFormat'==_0x3dc325['commandName']?{'type':'format','content':o(_0x4db5bb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x23c4fa{['afterInit'](){const _0x54aef0=this['editor'];if(!_0x54aef0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1b350e=_0x54aef0['plugins']['get']('TrackChangesEditing');_0x1b350e['enableCommand']('goToPreviousRestrictedEditingException'),_0x1b350e['enableCommand']('goToNextRestrictedEditingException');const _0x8784a2=_0x54aef0['plugins']['get']('RestrictedEditingModeEditing');_0x8784a2['enableCommand']('trackChanges'),_0x8784a2['enableCommand']('acceptSuggestion'),_0x8784a2['enableCommand']('discardSuggestion'),_0x8784a2['enableCommand']('acceptAllSuggestions'),_0x8784a2['enableCommand']('discardAllSuggestions'),_0x8784a2['enableCommand']('acceptSelectedSuggestions'),_0x8784a2['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x23c4fa{['afterInit'](){const _0x42e998=this['editor'];if(!_0x42e998['plugins']['has']('ShiftEnter'))return;const _0x4c38f2=_0x42e998['plugins']['get']('TrackChangesEditing');_0x4c38f2['enableCommand']('shiftEnter'),_0x42e998['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x42e998),{'priority':'high'}),_0x42e998['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x42e998),{'priority':'high'}),_0x42e998['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1dc68d,_0x547451,_0x3b7de4)=>{_0x3b7de4['options']['showSuggestionHighlights']&&je(_0x42e998,{'showActiveMarker':!0x1})(_0x1dc68d,_0x547451,_0x3b7de4);}),_0x4c38f2['descriptionFactory']['registerElementLabel']('softBreak',_0x157e43=>o(_0x42e998['locale'],'ELEMENT_LINE_BREAK',_0x157e43));}}function je(_0x1e78c1,{showActiveMarker:_0x297723=!0x0}={}){return(_0xf64199,_0x2b52be,_0x42820a)=>{const _0x51373a=_0x1e78c1['plugins']['get']('TrackChangesEditing');if(!_0x42820a['consumable']['test'](_0x2b52be['markerRange'],_0xf64199['name']))return;const _0x1f4133=_0x1e78c1['model'];for(const _0x4b02b1 of _0x2b52be['markerRange']['getItems']()){if(!_0x4b02b1['is']('element','softBreak'))continue;const _0x529f90='deletion'==_0x2b52be['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x297d7a,authorId:_0x5e103a}=_0x51373a['_splitMarkerName'](_0x2b52be['markerName']),_0x5aaedb=_0x42820a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x529f90,'data-suggestion':_0x297d7a,'data-author-id':_0x5e103a}),_0x589cd4=_0x42820a['mapper']['toViewPosition'](_0x1f4133['createPositionBefore'](_0x4b02b1));_0x297723&&_0x51373a['activeMarkers']['includes'](_0x2b52be['markerName'])&&_0x42820a['writer']['addClass']('ck-suggestion-marker--active',_0x5aaedb),_0x42820a['writer']['insert'](_0x589cd4,_0x5aaedb),_0x42820a['mapper']['bindElementToMarker'](_0x5aaedb,_0x2b52be['markerName']);}};}class St extends _0x23c4fa{['afterInit'](){const _0x467279=this['editor'],_0x4da861=_0x467279['model'],_0x1860e6=_0x467279['locale'];if(!_0x467279['plugins']['has']('StandardEditingModeEditing'))return;const _0x589504=_0x467279['plugins']['get']('TrackChangesEditing'),_0x5328f6='restrictedEditingException',_0x2f9de8=_0x467279['commands']['get'](_0x5328f6);_0x589504['enableCommand'](_0x5328f6,(_0x2a0c6c,_0x58c209={})=>{const _0x309d90=_0x4da861['document']['selection'];if(_0x309d90['isCollapsed'])return void _0x2a0c6c(_0x58c209);const _0x156da3=void 0x0!==_0x58c209['forceValue']?_0x58c209['forceValue']:!_0x2f9de8['value'];_0x4da861['change'](()=>{const _0x13ba77=Array['from'](_0x309d90['getRanges']());for(const _0x1fe4d9 of _0x13ba77){const _0x50682f=_0x156da3?[_0x1fe4d9]:io(_0x5328f6,_0x1fe4d9,_0x4da861);for(const _0x32d71d of _0x50682f)_0x589504['markInlineFormat'](_0x32d71d,{'commandName':_0x5328f6,'commandParams':[{'forceValue':_0x156da3}]});}});}),_0x589504['descriptionFactory']['registerDescriptionCallback'](_0x24de17=>{if('formatBlock'!=_0x24de17['type']&&'formatInline'!=_0x24de17['type'])return;const {data:_0x5a44ed}=_0x24de17;return _0x5a44ed&&_0x5a44ed['commandName']==_0x5328f6?_0x5a44ed['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1860e6,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1860e6,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x23c4fa{['afterInit'](){const _0x52f857=this['editor'];if(!_0x52f857['plugins']['has']('Style')||!_0x52f857['plugins']['has']('DataSchema'))return;const _0x8faff8=_0x52f857['plugins']['get']('TrackChangesEditing'),_0x15ad20=_0x52f857['locale'],_0x2ec970=_0x52f857['config']['get']('style')||{},_0x2782be=_0x52f857['plugins']['get']('GeneralHtmlSupport'),_0xdcbf97=_0x52f857['plugins']['get']('StyleUtils')['normalizeConfig'](_0x52f857['plugins']['get']('DataSchema'),_0x2ec970['definitions']);_0x8faff8['enableDefaultAttributesIntegration']('style');const _0x315e06=new Set();for(const _0x24de57 of _0xdcbf97['block']){const _0x375076=_0x2782be['getGhsAttributeNameForElement'](_0x24de57['element']);_0x315e06['add'](_0x375076);}const _0x295465=new Set();for(const _0x5a2b56 of _0xdcbf97['inline']){const _0x4f12bb=_0x2782be['getGhsAttributeNameForElement'](_0x5a2b56['element']);_0x295465['add'](_0x4f12bb);for(const _0x5762eb of _0x5a2b56['ghsAttributes'])_0x295465['add'](_0x5762eb);}for(const _0x35a42b of _0x315e06)_0x8faff8['registerBlockAttribute'](_0x35a42b),_0x8faff8['descriptionFactory']['registerAttributeLabel'](_0x35a42b,o(_0x15ad20,'FORMAT_STYLE'));for(const _0x1e2070 of _0x295465)_0x8faff8['registerInlineAttribute'](_0x1e2070),_0x8faff8['descriptionFactory']['registerAttributeLabel'](_0x1e2070,o(_0x15ad20,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdc93b3=this['editor'],_0x193c80=_0xdc93b3['locale'];_0xdc93b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x539b8f=>{if('formatBlock'!=_0x539b8f['type']&&'formatInline'!=_0x539b8f['type'])return;const {data:_0x4b2cec}=_0x539b8f;return _0x4b2cec&&'style'===_0x4b2cec['commandName']?_0x4b2cec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x193c80,'*Set\x20format:*\x20%0',_0x4b2cec['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x193c80,'*Remove\x20format:*\x20%0',_0x4b2cec['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x23c4fa{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4cab37){super(_0x4cab37),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5d7a72=this['editor'],_0x5955f0=_0x5d7a72['model']['document']['selection'];if(!_0x5d7a72['plugins']['has']('TableEditing'))return;const _0x174954=_0x5d7a72['locale'],_0x265618=_0x5d7a72['plugins']['get']('TrackChangesEditing'),_0x2a1f4d=_0x5d7a72['plugins']['get']('TableUtils');_0x265618['descriptionFactory']['registerElementLabel']('table',_0x272180=>o(_0x174954,'ELEMENT_TABLE',_0x272180)),this['_setupColumnsRowsFixing'](),_0x265618['enableCommand']('insertTable'),_0x265618['enableCommand']('selectTableRow'),_0x265618['enableCommand']('selectTableColumn');for(const _0x3ad316 of['insertTableRowAbove','insertTableRowBelow']){const _0x22cfb4=_0x5d7a72['commands']['get'](_0x3ad316);_0x265618['enableCommand'](_0x3ad316,_0x5ad013=>{_0x5d7a72['model']['change'](_0x50e29b=>{_0x5ad013();const _0x513c48='above'===_0x22cfb4['order'],_0x52b940=_0x2a1f4d['getSelectionAffectedTableCells'](_0x5955f0),_0x588329=_0x2a1f4d['getRowIndexes'](_0x52b940),_0x16a4c2=_0x513c48?_0x588329['first']-0x1:_0x588329['last']+0x1,_0x2f1fb8=_0x52b940[0x0]['findAncestor']('table'),_0x3c7984=_0x2a1f4d['createTableWalker'](_0x2f1fb8,{'startRow':_0x16a4c2,'endRow':_0x16a4c2}),_0x345cf4=Array['from'](_0x3c7984)['map'](_0x32d03e=>_0x50e29b['createRangeOn'](_0x32d03e['cell']));_0x265618['markMultiRangeInsertion'](_0x345cf4,'tableRow');});});}for(const _0x4b37e8 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1c0a1a=_0x5d7a72['commands']['get'](_0x4b37e8);_0x265618['enableCommand'](_0x4b37e8,_0x98d73c=>{_0x5d7a72['model']['change'](_0x29af6a=>{_0x98d73c();const _0x357129='left'===_0x1c0a1a['order'],_0x431a85=_0x2a1f4d['getSelectionAffectedTableCells'](_0x5955f0),_0x3e4b61=_0x2a1f4d['getColumnIndexes'](_0x431a85),_0x19b4cc=_0x357129?_0x3e4b61['first']-0x1:_0x3e4b61['last']+0x1,_0x50f293=_0x431a85[0x0]['findAncestor']('table'),_0x4452ff=_0x2a1f4d['createTableWalker'](_0x50f293,{'startRow':0x0,'column':_0x19b4cc,'includeAllSlots':!0x1}),_0x40b1b2=Array['from'](_0x4452ff)['map'](_0x4d2f72=>_0x29af6a['createRangeOn'](_0x4d2f72['cell']));_0x265618['markMultiRangeInsertion'](_0x40b1b2,'tableColumn');});});}for(const _0x417ca5 of['removeTableRow','removeTableColumn']){const _0x51285c=_0x417ca5['substr'](0xb),_0x9b5b72=_0x51285c['toLowerCase'](),_0x2649fc=_0x9b5b72['substr'](0x0,0x3)+'span',_0x5984c7='table'+_0x51285c,_0x3e6bf9='min'+_0x51285c,_0x18c5f6='max'+_0x51285c;_0x265618['enableCommand'](_0x417ca5,()=>{_0x5d7a72['model']['change'](_0x176d24=>{const _0x1cec0c=_0x2a1f4d['getSelectionAffectedTableCells'](_0x5955f0),_0x25725d=_0x1cec0c[0x0]['findAncestor']('table');let _0x1127d0;if('removeTableRow'==_0x417ca5){const _0x24a33b=_0x2a1f4d['getRowIndexes'](_0x1cec0c);_0x1127d0={'startRow':_0x24a33b['first'],'endRow':_0x24a33b['last'],'includeAllSlots':!0x0};}else{const _0x3ccbd1=_0x2a1f4d['getColumnIndexes'](_0x1cec0c);_0x1127d0={'startColumn':_0x3ccbd1['first'],'endColumn':_0x3ccbd1['last'],'includeAllSlots':!0x0};}const _0x231021=_0x2a1f4d['createTableWalker'](_0x25725d,_0x1127d0),_0x15173c=Array['from'](_0x231021)['map'](({cell:_0x145c20})=>_0x145c20),_0x17652a=Ne(_0x15173c['filter'](_0x22cbf4=>_0x22cbf4['hasAttribute'](_0x2649fc))),_0x497023=Ne(_0x15173c['filter'](_0x169dd3=>!_0x169dd3['hasAttribute'](_0x2649fc)))['map'](_0x1f3a17=>_0x176d24['createRangeOn'](_0x1f3a17)),_0x3e7ec3=_0x265618['markMultiRangeDeletion'](_0x497023,_0x5984c7);if(_0x3e7ec3&&('tableRow'==_0x3e7ec3['subType']||'tableColumn'==_0x3e7ec3['subType'])){const _0x267881=this['_getSuggestionCoords'](_0x3e7ec3);for(const _0xcf18f7 of _0x17652a){const _0x4f3d67=_0x176d24['createRangeOn'](_0xcf18f7),_0x42f930=_0x2a1f4d['getCellLocation'](_0xcf18f7),_0x41c68b=_0xcf18f7['getAttribute'](_0x2649fc)-0x1,_0x447f8d=_0x267881[_0x3e6bf9],_0xae1515=_0x267881[_0x18c5f6];_0x447f8d<=_0x42f930[_0x9b5b72]&&_0x42f930[_0x9b5b72]+_0x41c68b<=_0xae1515&&_0x3e7ec3['addRange'](_0x4f3d67);}}});});}function _0xd70324(_0x1709bf){const _0x82d500=Array['from'](_0x5955f0['getRanges']())['map'](_0x1d9258=>_0x5edbdb['fromRange'](_0x1d9258));_0x5d7a72['model']['change'](_0x4ae4e4=>{const _0x4bd30f=_0x4ae4e4['batch'];_0x1709bf=_0x1709bf['filter'](_0x4d3a02=>'$graveyard'!=_0x4d3a02['root']['rootName']),_0x4ae4e4['setSelection'](_0x1709bf),_0x5d7a72['commands']['get']('removeTableRow')['refresh'](),_0x5d7a72['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5d7a72['model']['enqueueChange'](()=>{_0x5d7a72['model']['enqueueChange'](_0x4bd30f,_0x498b3c=>{const _0x5b57ca=_0x82d500['filter'](_0x48d250=>'$graveyard'!=_0x48d250['root']['rootName']);_0x5b57ca['length']>0x0&&_0x498b3c['setSelection'](_0x5b57ca);for(const _0x553bd7 of _0x82d500)_0x553bd7['detach']();});});});}function _0x32d802(_0x1f4210){_0x5d7a72['model']['change'](_0x4fce77=>{const _0x4fc875=Array['from'](_0x5955f0['getRanges']())['map'](_0xe40550=>_0x5edbdb['fromRange'](_0xe40550)),_0x11989c=[];for(const _0x3aff73 of _0x1f4210)for(const _0x3d2eef of _0x3aff73['getItems']({'shallow':!0x0}))_0x11989c['push'](_0x3d2eef);for(const _0x5f5612 of _0x11989c)'$graveyard'!=_0x5f5612['root']['rootName']&&(_0x4fce77['setSelection'](_0x4fce77['createPositionAt'](_0x5f5612,0x0)),_0x5d7a72['commands']['get']('removeTableColumn')['refresh'](),_0x5d7a72['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4c0ac0=_0x4fc875['filter'](_0xfda6fc=>'$graveyard'!=_0xfda6fc['root']['rootName']);_0x4c0ac0['length']>0x0&&_0x4fce77['setSelection'](_0x4c0ac0);for(const _0x5333fb of _0x4fc875)_0x5333fb['detach']();});}function _0x28044f(_0x460b51,_0x4865c2){return _0x4865c2['every'](_0x1ef5c4=>_0x460b51['some'](_0x38b333=>_0x38b333['end']['isEqual'](_0x1ef5c4['start'])||_0x1ef5c4['end']['isEqual'](_0x38b333['start'])));}function _0x3bbac9(_0xccd9cf,_0x15555a){return!_0xccd9cf['some'](_0x5bef68=>_0x15555a['some'](_0x456a58=>_0x5bef68['isIntersecting'](_0x456a58)))&&_0xccd9cf['some'](_0x3a4c80=>_0x15555a['some'](_0x1a662e=>_0x3a4c80['end']['isTouching'](_0x1a662e['start'])));}_0x5d7a72['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x83c197,_0x4f38f3,_0x59f614)=>{if(!_0x59f614['options']['showSuggestionHighlights'])return;const _0xc2010f=_0x4f38f3['item'];if(!_0xc2010f||!_0xc2010f['is']('element','tableCell'))return;const _0x46cf34=_0x59f614['mapper']['toViewElement'](_0xc2010f);if(_0x46cf34){const {id:_0x556309,authorId:_0x1ea51b}=_0x265618['_splitMarkerName'](_0x4f38f3['markerName']);_0x1fe05e(_0x46cf34,_0x59f614['writer'],(_0x3ac337,_0x5a9a90,_0x396ecb)=>{_0x396ecb['addClass'](_0x2d7983(_0x5a9a90['classes']),_0x3ac337),_0x396ecb['setAttribute']('data-suggestion-id',_0x556309,_0x3ac337),_0x396ecb['setAttribute']('data-author-id',_0x1ea51b,_0x3ac337);},(_0x3a3eb3,_0xfa1c28,_0x2ac498)=>{_0x2ac498['removeClass'](_0x2d7983(_0xfa1c28['classes']),_0x3a3eb3),_0x2ac498['removeAttribute']('data-suggestion-id',_0x3a3eb3),_0x2ac498['removeAttribute']('data-author-id',_0x3a3eb3);});}},{'priority':'highest'}),_0x265618['descriptionFactory']['registerDescriptionCallback'](_0x2ee120=>{if('insertion'!=_0x2ee120['type']&&'deletion'!=_0x2ee120['type'])return;const _0x15ebec=_0x2ee120['getContainedElement']();if(null!=_0x15ebec&&_0x15ebec['is']('element','table')){if('insertion'==_0x2ee120['type']){const _0x1c6ff8=_0x2ee120['getItems']()['filter'](_0x2d4013=>_0x2d4013['is']('$textProxy'))['map'](_0x996983=>_0x996983['data']);if(_0x1c6ff8['length'])return{'type':'insertion','content':o(_0x174954,'*Insert:*\x20%0',o(_0x174954,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1c6ff8['join']('\x20')+'\x22'))};}if('deletion'==_0x2ee120['type']){const _0x1921d2=_0x2ee120['getItems']()['filter'](_0x42b6e4=>_0x42b6e4['is']('$textProxy'))['map'](_0x93ccd2=>_0x93ccd2['data']);if(_0x1921d2['length'])return{'type':'deletion','content':o(_0x174954,'*Remove:*\x20%0',o(_0x174954,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1921d2['join']('\x20')+'\x22'))};}}}),_0x265618['descriptionFactory']['registerDescriptionCallback'](_0x228c8f=>{if('tableRow'==_0x228c8f['subType']){const _0x3599e2=_0x228c8f['getItems']()['filter'](_0x1c0108=>_0x1c0108['is']('$textProxy'))['map'](_0x20e222=>_0x20e222['data']),_0x569200=this['_getSuggestionCoords'](_0x228c8f),_0x631571=_0x569200['maxRow']-_0x569200['minRow']+0x1;if('insertion'==_0x228c8f['type'])return _0x3599e2['length']?{'type':'insertion','content':o(_0x174954,'*Insert:*\x20%0',o(_0x174954,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x631571,'\x22'+_0x3599e2['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x174954,'*Insert:*\x20%0',o(_0x174954,'ELEMENT_TABLE_ROW',_0x631571))};if('deletion'==_0x228c8f['type'])return _0x3599e2['length']?{'type':'deletion','content':o(_0x174954,'*Remove:*\x20%0',o(_0x174954,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x631571,'\x22'+_0x3599e2['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x174954,'*Remove:*\x20%0',o(_0x174954,'ELEMENT_TABLE_ROW',_0x631571))};}if('tableColumn'==_0x228c8f['subType']){const _0x46455d=_0x228c8f['getItems']()['filter'](_0xce6a7a=>_0xce6a7a['is']('$textProxy'))['map'](_0x5745b4=>_0x5745b4['data']),_0x663e98=this['_getSuggestionCoords'](_0x228c8f),_0x51b556=_0x663e98['maxColumn']-_0x663e98['minColumn']+0x1;if('insertion'==_0x228c8f['type'])return _0x46455d['length']?{'type':'insertion','content':o(_0x174954,'*Insert:*\x20%0',o(_0x174954,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x51b556,'\x22'+_0x46455d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x174954,'*Insert:*\x20%0',o(_0x174954,'ELEMENT_TABLE_COLUMN',_0x51b556))};if('deletion'==_0x228c8f['type'])return _0x46455d['length']?{'type':'deletion','content':o(_0x174954,'*Remove:*\x20%0',o(_0x174954,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x51b556,'\x22'+_0x46455d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x174954,'*Remove:*\x20%0',o(_0x174954,'ELEMENT_TABLE_COLUMN',_0x51b556))};}}),_0x265618['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xd70324),_0x265618['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xd70324),_0x265618['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x32d802),_0x265618['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x32d802),_0x265618['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x28044f),_0x265618['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x28044f),_0x265618['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3bbac9),_0x265618['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3bbac9);}['_acceptFormatSuggestionCallbackFactory'](){const _0x19b882=this['editor'],_0x1c54e9=_0x19b882['model']['document']['selection'];return(_0xe5cf2c,_0x48f401)=>{_0x19b882['model']['change'](_0x312d53=>{const {commandName:_0x1f5629,commandParams:_0x1e4111}=_0x48f401;let _0x32e71a=_0xe5cf2c[0x0]['end']['nodeBefore'];_0x1e4111&&_0x1e4111[0x0]&&!0x1===_0x1e4111[0x0]['forceValue']&&(_0x32e71a=_0xe5cf2c[0x0]['start']['nodeAfter']);const _0x182765=_0x312d53['createRangeIn'](_0x32e71a);if('$graveyard'==_0x182765['root']['rootName'])return;const _0x3e9d3f=Array['from'](_0x1c54e9['getRanges']())['map'](_0x461693=>_0x5edbdb['fromRange'](_0x461693));_0x312d53['setSelection'](_0x182765),_0x19b882['commands']['get'](_0x1f5629)['refresh'](),_0x1e4111['push']({'forceDefaultExecution':!0x0}),_0x19b882['execute'](_0x1f5629,..._0x1e4111);const _0x496242=_0x3e9d3f['filter'](_0x48bbb2=>'$graveyard'!=_0x48bbb2['root']['rootName']);_0x496242['length']>0x0&&_0x312d53['setSelection'](_0x496242);for(const _0xfc7c34 of _0x3e9d3f)_0xfc7c34['detach']();});};}['_getCoordsForCells'](_0x64a076){const _0x52fdd0=this['editor']['plugins']['get']('TableUtils');let _0x5bd7a7=Number['MAX_SAFE_INTEGER'],_0x5a78ac=Number['MIN_SAFE_INTEGER'],_0x289a96=Number['MAX_SAFE_INTEGER'],_0x3b874c=Number['MIN_SAFE_INTEGER'];for(const _0x41d021 of _0x64a076){if('$graveyard'==_0x41d021['root']['rootName'])continue;const {row:_0x472c84,column:_0x1baca4}=_0x52fdd0['getCellLocation'](_0x41d021),_0x472e6f=_0x41d021['hasAttribute']('rowspan')?_0x41d021['getAttribute']('rowspan')-0x1:0x0,_0x7ea7c6=_0x41d021['hasAttribute']('colspan')?_0x41d021['getAttribute']('colspan')-0x1:0x0;_0x5bd7a7=_0x472c84<_0x5bd7a7?_0x472c84:_0x5bd7a7,_0x5a78ac=_0x472c84+_0x472e6f>_0x5a78ac?_0x472c84+_0x472e6f:_0x5a78ac,_0x289a96=_0x1baca4<_0x289a96?_0x1baca4:_0x289a96,_0x3b874c=_0x1baca4+_0x7ea7c6>_0x3b874c?_0x1baca4+_0x7ea7c6:_0x3b874c;}return{'minRow':_0x5bd7a7,'maxRow':_0x5a78ac,'minColumn':_0x289a96,'maxColumn':_0x3b874c};}['_setupColumnsRowsFixing'](){const _0x2d84e8=this['editor'],_0x58eafd=_0x2d84e8['plugins']['get']('TrackChangesEditing'),_0x55ae4b=_0x2d84e8['plugins']['get']('TableUtils');_0x2d84e8['model']['document']['on']('change:data',()=>{const _0x33b00e=Array['from'](_0x2d84e8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4981d7,data:_0xc2cedc}of _0x33b00e){const {group:_0x37794f,id:_0x1a9e71,subType:_0x711327}=_0x58eafd['_splitMarkerName'](_0x4981d7);if('suggestion'!=_0x37794f)continue;if(null!=_0xc2cedc['oldRange'])continue;const _0x6270bc=_0x58eafd['getSuggestion'](_0x1a9e71);this['_tablePostFixingSubtypes']['includes'](_0x711327)&&this['_tableSuggestions']['add'](_0x6270bc);}},{'priority':'low'});const _0x335258=(_0x260efe,_0x55340e)=>{let _0x1962b4=!0x1;const _0x3392bc=_0x55340e['createRangeOn'](_0x260efe),_0x41de27=_0x260efe['findAncestor']('table'),_0x470a0c=_0x55ae4b['getCellLocation'](_0x260efe);for(const _0x379352 of this['_tableSuggestions']){const _0x425c5a=_0x379352['subType'],_0x39a948=_0x425c5a['startsWith']('tablePaste'),_0x4f0f73=_0x425c5a['substr'](_0x39a948?0xa:0x5),_0x2796a5=_0x4f0f73['toLowerCase'](),_0x3a9bf8=_0x2796a5['substr'](0x0,0x3)+'span',_0x21154d='min'+_0x4f0f73,_0x1c6736='max'+_0x4f0f73;if(!_0x379352['isInContent'])continue;if(_0x41de27!=_0x379352['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x379352['isIntersectingWithRange'](_0x3392bc))continue;const _0x144b9a=_0x260efe['hasAttribute'](_0x3a9bf8)?_0x260efe['getAttribute'](_0x3a9bf8)-0x1:0x0,_0xc49359=this['_getSuggestionCoords'](_0x379352),_0x1acea3=_0xc49359[_0x21154d],_0x1de005=_0xc49359[_0x1c6736];_0x1acea3<=_0x470a0c[_0x2796a5]&&_0x470a0c[_0x2796a5]+_0x144b9a<=_0x1de005&&(_0x379352['addRange'](_0x3392bc),_0x1962b4=!0x0);}return _0x1962b4;};_0x2d84e8['model']['document']['registerPostFixer'](_0x283775=>{let _0x2e92a7=!0x1;for(const _0x5ad06c of _0x2d84e8['model']['document']['differ']['getChanges']())if('insert'==_0x5ad06c['type']){if('tableRow'==_0x5ad06c['name']){for(const _0x516f1c of _0x5ad06c['position']['nodeAfter']['getChildren']())_0x2e92a7=_0x2e92a7||_0x335258(_0x516f1c,_0x283775);}else'tableCell'==_0x5ad06c['name']&&(_0x2e92a7=_0x2e92a7||_0x335258(_0x5ad06c['position']['nodeAfter'],_0x283775));}return _0x2e92a7;});}['_getSuggestionCoords'](_0x206149){return this['_getCoordsForCells'](_0x206149['getRanges']()['map'](_0x54cf66=>_0x54cf66['start']['nodeAfter']));}}function Ne(_0x256461){return Array['from'](new Set(_0x256461)['values']());}class _t extends _0x23c4fa{static get['requires'](){return[At];}['afterInit'](){const _0x5e88cb=this['editor'],_0x5e5a98=_0x5e88cb['model']['document']['selection'],_0x2d8246=_0x5e88cb['locale'];if(!_0x5e88cb['plugins']['has']('TableEditing'))return;const _0x4178ce=_0x5e88cb['plugins']['get']('TrackChangesEditing'),_0x2e44fb=_0x5e88cb['plugins']['get']('TableUtils'),_0x5a4e2d=_0x5e88cb['plugins']['get'](At);_0x5a4e2d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4178ce['enableCommand']('mergeTableCells',()=>{const _0x2e78a6=_0x2e44fb['getSelectionAffectedTableCells'](_0x5e88cb['model']['document']['selection']);_0x5e88cb['model']['change'](()=>{_0x4178ce['markMultiRangeBlockFormat'](_0x2e78a6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5e88cb['commands']['get']('mergeTableCells')['on']('execute',(_0x113911,_0x2ba9fe)=>{_0x5e88cb['commands']['get']('trackChanges')['value']&&(_0x2ba9fe['length']>0x0&&_0x2ba9fe[_0x2ba9fe['length']-0x1]&&_0x2ba9fe[_0x2ba9fe['length']-0x1]['forceDefaultExecution']||_0x4178ce['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x113911['stop']());},{'priority':'highest'});for(const _0x29180f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x10732b=_0x5e88cb['commands']['get'](_0x29180f);_0x4178ce['enableCommand'](_0x29180f,()=>{const _0x14ced2=_0x5e88cb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x25e581=>_0x25e581['is']('element','tableCell')),_0x1527e4=_0x10732b['value'];_0x5e88cb['model']['change'](()=>{_0x4178ce['markMultiRangeBlockFormat']([_0x14ced2,_0x1527e4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5b40cf of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2e4d7c=_0x5e88cb['commands']['get'](_0x5b40cf);_0x4178ce['enableCommand'](_0x5b40cf,()=>{const _0x14b000=_0x2e44fb['getSelectionAffectedTableCells'](_0x5e88cb['model']['document']['selection'])[0x0],_0xb03d03=_0x14b000['findAncestor']('table'),{column:_0x4b891c,row:_0x28141b}=_0x2e44fb['getCellLocation'](_0x14b000);let _0x888569=[];if('horizontally'==_0x2e4d7c['direction']){const _0x52461c=_0x2e44fb['createTableWalker'](_0xb03d03,{'startRow':_0x28141b,'endRow':_0x28141b,'includeAllSlots':!0x0});_0x888569=Array['from'](_0x52461c)['map'](_0x53df31=>_0x53df31['cell']);}else{const _0x45ad5c=_0x2e44fb['createTableWalker'](_0xb03d03,{'column':_0x4b891c,'includeAllSlots':!0x0});_0x888569=Array['from'](_0x45ad5c)['map'](_0x2ee4f2=>_0x2ee4f2['cell']);}_0x5e88cb['model']['change'](_0x13377c=>{_0x4178ce['markBlockFormat'](_0x13377c['createRangeOn'](_0x14b000),{'commandName':_0x5b40cf,'commandParams':[]},_0x888569,_0x5b40cf);});});}_0x4178ce['descriptionFactory']['registerDescriptionCallback'](_0x19e935=>{if('formatBlock'!=_0x19e935['type']&&'formatInline'!=_0x19e935['type'])return;const {data:_0xb52cf7}=_0x19e935;return _0xb52cf7&&'mergeTableCells'==_0xb52cf7['commandName']?{'type':'format','content':o(_0x2d8246,'*Merge\x20cells*')}:void 0x0;}),_0x4178ce['descriptionFactory']['registerDescriptionCallback'](_0x406613=>{if('formatBlock'!=_0x406613['type']&&'formatInline'!=_0x406613['type'])return;const {data:_0x36c175}=_0x406613;return _0x36c175?'splitTableCellVertically'==_0x36c175['commandName']?{'type':'format','content':o(_0x2d8246,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x36c175['commandName']?{'type':'format','content':o(_0x2d8246,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1189dc=_0x5a4e2d['_acceptFormatSuggestionCallbackFactory']();for(const _0x4436a5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4178ce['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4436a5,'accept',_0x1189dc);for(const _0x2cc8a7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4178ce['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2cc8a7,'accept',_0x1189dc);_0x4178ce['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3912b3=>{_0x5e88cb['model']['change'](_0x130c39=>{const _0x4cc565=Array['from'](_0x5e5a98['getRanges']())['map'](_0x3d656d=>_0x5edbdb['fromRange'](_0x3d656d));_0x130c39['setSelection'](_0x3912b3),_0x5e88cb['commands']['get']('mergeTableCells')['refresh'](),_0x5e88cb['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5ebac9=_0x4cc565['filter'](_0x540155=>'$graveyard'!=_0x540155['root']['rootName']);_0x5ebac9['length']>0x0&&_0x130c39['setSelection'](_0x5ebac9);for(const _0x5ac91b of _0x4cc565)_0x5ac91b['detach']();});});for(const _0x2162d9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x22b47f=_0x5e88cb['commands']['get'](_0x2162d9);_0x22b47f['on']('set:isEnabled',(_0x511608,_0xee3ca5,_0x341c27)=>{if(_0x341c27){const _0x371718=_0x5e88cb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2f7e3e=>_0x2f7e3e['is']('element','tableCell'));this['_areMergableCells'](_0x22b47f['value'],_0x371718)||(_0x511608['return']=!0x1,_0x511608['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x59a94b=this['editor']['commands']['get']('mergeTableCells'),_0x5ab131=this['editor']['plugins']['get']('TableUtils');if(!_0x59a94b['isEnabled'])return!0x1;const _0x133daf=_0x5ab131['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1d1532 of _0x133daf)for(const _0x2f7e7e of _0x133daf)if(_0x1d1532!=_0x2f7e7e&&!this['_areMergableCells'](_0x1d1532,_0x2f7e7e))return!0x1;return!0x0;}['_areMergableCells'](_0x37a9ce,_0x3bf99a){const _0xd6cd1a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39a083=this['editor']['model']['createRangeOn'](_0x37a9ce),_0x3cd7ae=this['editor']['model']['createRangeOn'](_0x3bf99a),_0x40ffa8=new Set(),_0x20c3b1=new Set();for(const _0x4188e9 of _0xd6cd1a['getSuggestions']())if(('insertion'==_0x4188e9['type']||'deletion'==_0x4188e9['type']||'mergeTableCells'==_0x4188e9['subType'])&&_0x4188e9['isInContent']){for(const _0x1290ce of _0x4188e9['getRanges']())_0x1290ce['containsRange'](_0x39a083,!0x0)&&_0x40ffa8['add'](_0x4188e9['type']+':'+_0x4188e9['author']['id']),_0x1290ce['containsRange'](_0x3cd7ae,!0x0)&&_0x20c3b1['add'](_0x4188e9['type']+':'+_0x4188e9['author']['id']);}if(_0x40ffa8['size']!=_0x20c3b1['size'])return!0x1;for(const _0x3d6532 of _0x40ffa8)if(!_0x20c3b1['has'](_0x3d6532))return!0x1;return!0x0;}}class Ct extends _0x23c4fa{static get['requires'](){return[At];}['afterInit'](){const _0x30ee87=this['editor'];if(!_0x30ee87['plugins']['has']('TableEditing'))return;const _0x3c4c90=_0x30ee87['locale'],_0x103964=_0x30ee87['plugins']['get']('TrackChangesEditing');_0x103964['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x103964['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x103964['registerBlockAttribute']('headingRows'),_0x103964['registerBlockAttribute']('headingColumns'),_0x103964['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3c4c90,'FORMAT_HEADER_ROW')),_0x103964['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3c4c90,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2362ed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1686f9=this['editor']['plugins']['get']('TableUtils'),_0x56607f=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x2cb815({showActiveMarker:_0x4d78a6=!0x0,setDataAttribute:_0x12de22=!0x0}={}){return(_0x2e0eb1,_0x374e0a,_0x5c664b)=>{const {type:_0x2984db,id:_0x44c00b}=_0x2362ed['_splitMarkerName'](_0x374e0a['markerName']),_0x309fa3=_0x2362ed['getSuggestion'](_0x44c00b),_0x7ec616=_0x309fa3['data'];if('formatBlock'!=_0x309fa3['type']||!_0x7ec616||'setTableColumnHeader'!=_0x7ec616['commandName'])return;if(_0x374e0a['item'])return void _0x2e0eb1['stop']();if(!_0x5c664b['consumable']['consume'](_0x374e0a['markerRange'],_0x2e0eb1['name']))return;const _0x27dc9a=_0x374e0a['markerRange']['start']['nodeAfter'],_0x1eb928=_0x374e0a['markerRange']['end']['nodeBefore'],_0x24958f=_0x27dc9a['parent']['parent'],{column:_0x386972}=_0x1686f9['getCellLocation'](_0x27dc9a),{column:_0x55830c}=_0x1686f9['getCellLocation'](_0x1eb928);for(let _0x4e30f9=_0x386972;_0x4e30f9<=_0x55830c;_0x4e30f9++){const _0x40b0fe=_0x1686f9['createTableWalker'](_0x24958f,{'column':_0x4e30f9,'includeAllSlots':!0x1});for(const _0x158335 of _0x40b0fe){const _0x24876d=_0x158335['cell'],_0x13d5a0=_0x5c664b['mapper']['toViewElement'](_0x24876d);_0x5c664b['writer']['addClass']('ck-suggestion-marker-'+_0x2984db,_0x13d5a0),_0x12de22&&_0x5c664b['writer']['setAttribute']('data-suggestion',_0x44c00b,_0x13d5a0),_0x5c664b['mapper']['bindElementToMarker'](_0x13d5a0,_0x374e0a['markerName']),_0x4d78a6&&(_0x2362ed['activeMarkers']['includes'](_0x374e0a['markerName'])?_0x5c664b['writer']['addClass']('ck-suggestion-marker--active',_0x13d5a0):_0x5c664b['writer']['removeClass']('ck-suggestion-marker--active',_0x13d5a0));}}};}_0x2362ed['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x56607f),_0x2362ed['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x56607f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2cb815(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3e15be,_0x5a3acc,_0x275e7e)=>{_0x275e7e['options']['showSuggestionHighlights']&&_0x2cb815({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3e15be,_0x5a3acc,_0x275e7e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x597016,_0x2460d7,_0x8889c8)=>{const {type:_0x47e1af,id:_0x35af4b}=_0x2362ed['_splitMarkerName'](_0x2460d7['markerName']),_0x208952=_0x2362ed['getSuggestion'](_0x35af4b),_0x40f465=_0x208952['data'];if('formatBlock'!=_0x208952['type']||!_0x40f465||'setTableColumnHeader'!=_0x40f465['commandName'])return;const _0x2bbf97=_0x8889c8['mapper']['markerNameToElements'](_0x2460d7['markerName']);if(_0x2bbf97){for(const _0x1d2171 of _0x2bbf97)_0x8889c8['writer']['removeClass']('ck-suggestion-marker-'+_0x47e1af,_0x1d2171),_0x8889c8['writer']['removeClass']('ck-suggestion-marker--active',_0x1d2171),_0x8889c8['writer']['removeAttribute']('data-suggestion',_0x1d2171),_0x8889c8['mapper']['unbindElementFromMarkerName'](_0x1d2171,_0x2460d7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfc661a=this['editor'],_0x390fef=_0xfc661a['locale'];function _0x128259(_0x43c2c1){return{'type':'format','content':o(_0x390fef,'*Format:*\x20%0',_0x43c2c1)};}_0xfc661a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bfd7a=>{if('formatBlock'!=_0x2bfd7a['type'])return;const {data:_0x4bb935}=_0x2bfd7a;if(_0x4bb935){if('setTableRowHeader'==_0x4bb935['commandName']){const _0x49969=_0x4bb935['commandParams'][0x0]['forceValue'];return _0x128259(o(_0x390fef,_0x49969?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4bb935['commandName']){const _0x52a3b5=_0x4bb935['commandParams'][0x0]['forceValue'];return _0x128259(o(_0x390fef,_0x52a3b5?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x23c4fa{['afterInit'](){const _0xc39eaa=this['editor'],_0x447d54=_0xc39eaa['locale'],_0x11ad0b=_0xc39eaa['plugins']['get']('TrackChangesEditing');function _0x423a3b(_0x3db777){return{'type':'format','content':''+o(_0x447d54,'*Set\x20table\x20type:*\x20%0',_0x3db777)};}_0xc39eaa['plugins']['has']('TableLayout')&&(_0x11ad0b['enableCommand']('insertTableLayout'),_0x11ad0b['enableDefaultAttributesIntegration']('tableType'),_0x11ad0b['registerBlockAttribute']('tableType'),_0x11ad0b['descriptionFactory']['registerElementLabel'](_0x6e89f5=>_0x6e89f5['is']('element','table')&&'layout'===_0x6e89f5['getAttribute']('tableType'),_0x3ce95a=>o(_0x447d54,'ELEMENT_LAYOUT_TABLE',_0x3ce95a)),_0x11ad0b['descriptionFactory']['registerDescriptionCallback'](_0x2041c1=>{const {data:_0x4288f7}=_0x2041c1;if(_0x4288f7&&'tableType'==_0x4288f7['key'])switch(_0x4288f7['newValue']){case'layout':return _0x423a3b(o(_0x447d54,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x423a3b(o(_0x447d54,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x40a23c=>[_0x40a23c,null]));class Nt extends _0x23c4fa{static get['requires'](){return[At];}['afterInit'](){const _0x12ccdf=this['editor'];if(!_0x12ccdf['plugins']['has']('TableClipboard'))return;const _0x1ac08e=_0x12ccdf['plugins']['get']('TrackChangesEditing'),_0x2c878b=_0x12ccdf['plugins']['get']('TableUtils'),_0x3ce70a=_0x12ccdf['plugins']['get'](At),_0x486433=_0x12ccdf['plugins']['get']('TableClipboard'),_0x3328f5=_0x12ccdf['plugins']['get']('TableSelection'),_0x471118=_0x12ccdf['plugins']['get'](_0x9a8ce4);_0x3ce70a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x12ccdf['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x12ccdf['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xdd14a1=null,_0x1e0c77=!0x1;_0x471118['on']('contentInsertion',(_0x3c9516,_0x32309e)=>{_0x1e0c77='paste'===_0x32309e['method'];}),_0x12ccdf['model']['on']('insertContent',(_0x254e41,_0x8ba64b)=>{if(!_0x1e0c77&&null===_0x3328f5['getSelectedTableCells']())return;const [_0x46fd65,_0x213021]=_0x8ba64b,_0x2c629c=_0x8ba64b[_0x8ba64b['length']-0x1];_0x2c629c&&_0x2c629c['forceDefaultExecution']||_0x1ac08e['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5369e7,_0x1a9432,_0x4b3b57,_0x2707ad,_0x304c18){if(_0x1a9432&&!_0x1a9432['is']('documentSelection'))return!0x1;const _0x826856=_0x304c18['getTableIfOnlyTableInContent'](_0x5369e7,_0x4b3b57);if(!_0x826856||!Ue(_0x826856,void 0x0,_0x2707ad))return!0x1;const _0x36b280=_0x2707ad['getSelectionAffectedTableCells'](_0x4b3b57['document']['selection']);if(!_0x36b280['length'])return!0x1;const _0xf0dabe=_0x36b280[0x0]['findAncestor']('table'),_0x651f0e=_0x2707ad['getRowIndexes'](_0x36b280),_0x2cb225=_0x2707ad['getColumnIndexes'](_0x36b280),_0x5156b4={'startRow':_0x651f0e['first'],'endRow':_0x651f0e['last'],'startColumn':_0x2cb225['first'],'endColumn':_0x2cb225['last']};return 0x1==_0x36b280['length']&&(_0x5156b4['endRow']+=_0x2707ad['getRows'](_0x826856)-0x1,_0x5156b4['endColumn']+=_0x2707ad['getColumns'](_0x826856)-0x1),Ue(_0xf0dabe,_0x5156b4,_0x2707ad);}(_0x46fd65,_0x213021,_0x12ccdf['model'],_0x2c878b,_0x486433)&&(_0x254e41['stop'](),_0xdd14a1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x12ccdf['model']['change'](()=>{_0x12ccdf['model']['insertContent'](_0x8ba64b[0x0],_0x8ba64b[0x1],_0x8ba64b[0x2],{'forceDefaultExecution':!0x0});const _0x4d976d=_0x1ddc4e(),{rowInsertionRanges:_0x19d74d,columnInsertionRanges:_0x5f1038,insertionRanges:_0x3c479c,deletionRanges:_0x5a4892,cells:_0x1ff9dd}=_0xdd14a1;_0x19d74d['length']&&_0x1ac08e['markMultiRangeInsertion'](_0x19d74d,'tablePasteRow',{'tablePasteChainId':_0x4d976d}),_0x5f1038['length']&&_0x1ac08e['markMultiRangeInsertion'](_0x5f1038,'tablePasteColumn',{'tablePasteChainId':_0x4d976d}),_0x3c479c['length']&&(_0x1ac08e['markMultiRangeInsertion'](_0x3c479c,'tablePaste',{'tablePasteChainId':_0x4d976d,'skipNestingCheck':!0x0}),_0x3c479c['forEach'](_0x1103e1=>_0x1103e1['detach']?.())),_0x5a4892['length']&&(_0x1ac08e['markMultiRangeDeletion'](_0x5a4892,'tablePaste',{'tablePasteChainId':_0x4d976d,'skipNestingCheck':!0x0}),_0x5a4892['forEach'](_0x2bd50e=>_0x2bd50e['detach']?.()));const _0x301fec=_0x1ac08e['markMultiRangeBlockFormat'](_0x1ff9dd['map'](({element:_0x4286a3})=>_0x4286a3),{'formatGroupId':_0x1ddc4e()},[],'tablePasteCell',{'tablePasteChainId':_0x4d976d});if(_0x301fec){const _0x1d01de=_0x301fec['getMarkers'](),_0x461a52=[];for(const {element:_0xe8a9c,attributes:_0x4b64f9}of _0x1ff9dd){if(!_0x4b64f9)continue;const _0x3f1579=_0x12ccdf['model']['createRangeOn'](_0xe8a9c),_0x567ef6=_0x1d01de['find'](_0x3d4276=>_0x3d4276['getRange']()['isEqual'](_0x3f1579));_0x567ef6&&_0x461a52['push']([_0x567ef6['name'],_0x4b64f9]);}_0x461a52['length']&&_0x301fec['setAttribute']('markerAttributes',Object['fromEntries'](_0x461a52));}_0xdd14a1=null;}));},{'priority':_0x39895b['high']+0xa}),_0x471118['on']('contentInsertion',()=>{_0x1e0c77=!0x1;},{'priority':'lowest'}),_0x12ccdf['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5f04a1,_0x123eeb)=>{const [_0x347253,_0x8d8a92,,_0x572a0f]=_0x123eeb;if(!_0xdd14a1)return;_0x5f04a1['stop']();const _0x3d1b5e=_0x347253['cell'],_0x523a77=_0x8d8a92,_0x2d03fa=Oe(_0x3d1b5e),_0x14e80a=Oe(_0x523a77);_0x5f04a1['return']=_0x3d1b5e;let _0x318336=null,_0x515371=null;if(_0x14e80a||_0x2d03fa){if(_0x2d03fa&&!_0x14e80a){_0x572a0f['remove'](_0x3d1b5e['getChild'](0x0));for(const _0x50dc54 of Array['from'](_0x523a77['getChildren']()))_0x572a0f['insert'](_0x50dc54,_0x3d1b5e,'end');const _0x16b20d=_0xdd14a1['rowInsertionIndexes']['includes'](_0x347253['row']),_0x1ed948=_0xdd14a1['columnInsertionIndexes']['includes'](_0x347253['column']);_0x16b20d||_0x1ed948||(_0x318336=_0x5edbdb['fromRange'](_0x572a0f['createRangeIn'](_0x3d1b5e)));}else _0x14e80a&&!_0x2d03fa&&(_0x515371=_0x572a0f['createRangeIn'](_0x3d1b5e));}else{const _0x40a460=_0x572a0f['createElement']('tableCellSuggestion'),_0x4931c9=_0x572a0f['createElement']('tableCellSuggestion');_0x572a0f['wrap'](_0x572a0f['createRangeIn'](_0x3d1b5e),_0x4931c9),_0x572a0f['insert'](_0x40a460,_0x3d1b5e,0x0);for(const _0x210bd1 of Array['from'](_0x523a77['getChildren']()))_0x572a0f['insert'](_0x210bd1,_0x40a460,'end');_0x318336=_0x5edbdb['fromRange'](_0x572a0f['createRangeOn'](_0x40a460)),_0x515371=_0x5edbdb['fromRange'](_0x572a0f['createRangeOn'](_0x4931c9));}const _0x14ef94=Array['from'](_0x523a77['getAttributes']())['filter'](([_0x53f4f2])=>Be['includes'](_0x53f4f2));_0xdd14a1['cells']['push']({'element':_0x3d1b5e,'attributes':_0x14ef94['length']?Object['fromEntries'](_0x14ef94):null}),_0x318336&&_0xdd14a1['insertionRanges']['push'](_0x318336),_0x515371&&_0xdd14a1['deletionRanges']['push'](_0x515371);},{'priority':'high'}),_0x2c878b['on']('insertColumns',(_0x19df57,_0x571a19)=>{const [_0x538ef5,_0x36c5c6={}]=_0x571a19;if(!_0xdd14a1)return;const _0x239b93=_0x36c5c6['at']||0x0,_0x3f8dbc=_0x36c5c6['columns']||0x1;_0xdd14a1['columnInsertionIndexes']=new Array(_0x3f8dbc)['fill'](_0x239b93)['map']((_0x24d68b,_0x46762e)=>_0x24d68b+_0x46762e);for(const {cell:_0x53b8f2}of _0x2c878b['createTableWalker'](_0x538ef5,{'startColumn':_0x239b93,'endColumn':_0x239b93+_0x3f8dbc-0x1}))_0xdd14a1['columnInsertionRanges']['push'](_0x12ccdf['model']['createRangeOn'](_0x53b8f2));},{'priority':'low'}),_0x2c878b['on']('insertRows',(_0x427b8e,_0x2aea4e)=>{const [_0x37b64c,_0x11dc7d={}]=_0x2aea4e;if(!_0xdd14a1)return;const _0x39ccdf=_0x11dc7d['at']||0x0,_0x1ad735=_0x11dc7d['rows']||0x1;_0xdd14a1['rowInsertionIndexes']=new Array(_0x1ad735)['fill'](_0x39ccdf)['map']((_0x805b0f,_0x46b0d2)=>_0x805b0f+_0x46b0d2);for(const {cell:_0x4b040c}of _0x2c878b['createTableWalker'](_0x37b64c,{'startRow':_0x39ccdf,'endRow':_0x39ccdf+_0x1ad735-0x1}))_0xdd14a1['rowInsertionRanges']['push'](_0x12ccdf['model']['createRangeOn'](_0x4b040c));},{'priority':'low'}),_0x1ac08e['descriptionFactory']['registerDescriptionCallback'](_0x3d6dc8=>{if(_0x3d6dc8['subType']&&_0x3d6dc8['subType']['startsWith']('tablePaste'))return _0x3d6dc8['previous']?{}:{'type':'insertion','content':o(_0x12ccdf['locale'],'*Replace\x20table\x20cells*')};});const _0x13d407=()=>!0x1;for(const _0x2d373a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1ac08e['_suggestionFactory']['registerCustomCallback']('insertion',_0x2d373a,'join',_0x13d407),_0x1ac08e['_suggestionFactory']['registerCustomCallback']('deletion',_0x2d373a,'join',_0x13d407),_0x1ac08e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d373a,'join',_0x13d407);_0x1ac08e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x13d407),_0x1ac08e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4ce93b,_0x2f27ee,_0x21373f)=>{const _0x3f1bd9=_0x4ce93b['map'](_0x20df9e=>_0x20df9e['getContainedElement']())['filter'](_0x313c2f=>_0x313c2f),_0x102f7e=new Map(_0x3f1bd9['map'](_0x213992=>[_0x213992,null]));if(_0xdd14a1){for(const {element:_0x5c4b45,attributes:_0x958197}of _0xdd14a1['cells'])_0x958197&&_0x102f7e['set'](_0x5c4b45,_0x958197);}else{if(_0x21373f&&_0x21373f['markerAttributes'])for(const [_0x4314da,_0x39febe]of Object['entries'](_0x21373f['markerAttributes'])){const _0x5ef900=_0x12ccdf['model']['markers']['get'](_0x4314da),_0x419f94=_0x5ef900?_0x5ef900['getRange']()['getContainedElement']():null;_0x419f94&&_0x102f7e['set'](_0x419f94,_0x39febe);}}_0x12ccdf['model']['change'](_0x478a36=>{for(const [_0x161208,_0x28ca22]of _0x102f7e)_0x478a36['setAttributes']({...xe,..._0x28ca22},_0x161208);});});const _0x577d53=(_0x1212a1,_0x341fc0)=>{_0x1ac08e['_suggestionFactory']['registerCustomCallback'](_0x1212a1,'tablePaste',_0x341fc0,(_0x435f30,_0x45e2e5,_0x4b7797)=>{_0x12ccdf['model']['change'](_0x374412=>{const _0x46d9e0=[];for(const _0x28c4fa of _0x435f30){const _0x4ec9c2=_0x28c4fa['start']['nodeAfter'];_0x4ec9c2['is']('element','tableCellSuggestion')&&_0x46d9e0['push'](_0x4ec9c2);}_0x1ac08e['_suggestionFactory']['getSuggestionCallback'](_0x1212a1,null,_0x341fc0)(_0x435f30,_0x45e2e5,_0x4b7797);for(const _0x48b905 of _0x46d9e0)'$graveyard'!=_0x48b905['root']['rootName']&&_0x374412['unwrap'](_0x48b905);});});};_0x577d53('insertion','accept'),_0x577d53('insertion','discard'),_0x577d53('deletion','accept'),_0x577d53('deletion','discard'),_0x1ac08e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x51f7a8=>{const _0x48e5bd=_0x51f7a8['map'](_0x1c81cf=>_0x1c81cf['getContainedElement']()),_0x450d03=_0x48e5bd[0x0]['findAncestor']('table'),{minRow:_0x1835c9,maxRow:_0x2866ec}=_0x3ce70a['_getCoordsForCells'](_0x48e5bd);_0x2c878b['removeRows'](_0x450d03,{'at':_0x1835c9,'rows':_0x2866ec-_0x1835c9+0x1});}),_0x1ac08e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x56a184=>{const _0x2d6c8a=_0x56a184['map'](_0x2b45e0=>_0x2b45e0['getContainedElement']()),_0x152fc4=_0x2d6c8a[0x0]['findAncestor']('table'),{minColumn:_0x580648,maxColumn:_0x1a1049}=_0x3ce70a['_getCoordsForCells'](_0x2d6c8a);_0x2c878b['removeColumns'](_0x152fc4,{'at':_0x580648,'columns':_0x1a1049-_0x580648+0x1});});const _0x410258=(_0x51dada,_0xc02322)=>{if(!_0xc02322['subType']||!_0xc02322['subType']['startsWith']('tablePaste'))return;const _0x1e7c30=_0xc02322['attributes']['tablePasteChainId'],_0x3f489a=_0x1ac08e['getSuggestions']()['filter'](_0x59ee47=>_0x59ee47['isInContent']&&_0x59ee47['attributes']&&_0x59ee47['attributes']['tablePasteChainId']==_0x1e7c30);_0x3f489a['length']&&_0xc02322['getAllAdjacentSuggestions']()['length']!=_0x3f489a['length']&&_0x3f489a['reduce']((_0xfb9ae4,_0x144ae5)=>(_0xfb9ae4['next']=_0x144ae5,_0x144ae5['previous']=_0xfb9ae4,_0x144ae5));};function _0x4a899e(_0x5139c9,_0x2ae09a=!0x0){const {id:_0x231098,authorId:_0x4c438b}=_0x1ac08e['_splitMarkerName'](_0x5139c9['markerName']),_0x4c559a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x565556=_0x1ac08e['activeMarkers']['includes'](_0x5139c9['markerName']);return _0x565556&&_0x4c559a['push']('ck-suggestion-marker--active'),{'classes':_0x4c559a,'attributes':{'data-suggestion':_0x231098,'data-author-id':_0x4c438b},'priority':_0x565556&&_0x2ae09a?0xbc2:0xbb8};}_0x1ac08e['on']('suggestionLoaded',_0x410258,{'priority':'high'}),_0x1ac08e['on']('suggestionUnloaded',_0x410258,{'priority':'high'}),_0x12ccdf['model']['document']['registerPostFixer'](()=>{let _0x191dfe=!0x1;const _0x46106e=Array['from'](_0x12ccdf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x567c28,data:_0x3e8655}of _0x46106e){const {group:_0x12ed25,type:_0x11bc77,id:_0x33cc1d}=_0x1ac08e['_splitMarkerName'](_0x567c28);if('suggestion'!=_0x12ed25||'deletion'!=_0x11bc77||_0x3e8655['oldRange'])continue;if(!_0x1ac08e['hasSuggestion'](_0x33cc1d))continue;const _0x5318ab=_0x1ac08e['getSuggestion'](_0x33cc1d)['getRanges'](),_0x4a6134=_0x12ccdf['plugins']['get']('Users')['me'];for(const _0x3c0dba of _0x1ac08e['getSuggestions']()){if(!_0x3c0dba['isInContent']||_0x3c0dba['author']!=_0x4a6134)continue;if('formatBlock'!=_0x3c0dba['type']||'tablePasteCell'!=_0x3c0dba['subType'])continue;if(_0x3c0dba['getRanges']()['every'](_0x49c4f1=>_0x5318ab['some'](_0x58585f=>_0x58585f['containsRange'](_0x49c4f1,!0x0)))){for(const _0x781287 of _0x3c0dba['getAllAdjacentSuggestions']())_0x781287['isInContent']&&(_0x781287['discard'](),_0x191dfe=!0x0);}}}return _0x191dfe;}),_0x12ccdf['model']['document']['registerPostFixer'](_0x22dcd1=>{const _0x2cab64=_0x12ccdf['commands']['get']('redo');if(!_0x2cab64||!_0x2cab64['_createdBatches']['has'](_0x22dcd1['batch']))return!0x1;let _0x6047f9=!0x1;const _0x26ff87=_0x12ccdf['plugins']['get']('Users')['me'],_0x185438=_0x12ccdf['model']['document']['differ']['getChanges'](),_0x36a12c=Array['from'](_0x12ccdf['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xfc9b1b,data:_0x107c20})=>{const {group:_0x4b6694,subType:_0x318655,authorId:_0xee358c}=_0x1ac08e['_splitMarkerName'](_0xfc9b1b);return'suggestion'==_0x4b6694&&'tablePaste'==_0x318655&&_0xee358c==_0x26ff87['id']&&!_0x107c20['oldRange'];});for(const _0x3bf233 of _0x185438){if('insert'!=_0x3bf233['type']||'tableCellSuggestion'!=_0x3bf233['name']||0x1!=_0x3bf233['length'])continue;const _0x5aef52=_0x22dcd1['createRange'](_0x3bf233['position'],_0x3bf233['position']['getShiftedBy'](0x1));if(!_0x36a12c['find'](({data:_0x5c9925})=>_0x5c9925['newRange']['isEqual'](_0x5aef52))){for(const {name:_0x18126a,data:_0x38ae49}of _0x36a12c)if(_0x5aef52['containsRange'](_0x38ae49['newRange'])){_0x22dcd1['updateMarker'](_0x18126a,{'range':_0x5aef52}),_0x6047f9=!0x0;break;}}}return _0x6047f9;}),_0x12ccdf['model']['document']['registerPostFixer'](_0x2ce719=>{let _0x34ff28=!0x1;const _0x461304=_0x12ccdf['plugins']['get']('Users')['me'],_0x205880=_0x1ac08e['getSuggestions']()['filter'](_0x5754ee=>_0x5754ee['isInContent']&&_0x5754ee['author']==_0x461304),_0x420ae6=new Set(),_0x16b83f=new Set();for(const _0x2dbfa8 of _0x205880)if('tablePaste'==_0x2dbfa8['subType'])for(const _0x14892a of _0x2dbfa8['getMarkers']()){const _0x46082f=_0x14892a['getRange']()['getContainedElement']();if(_0x46082f){if(_0x46082f['is']('element','tableCellSuggestion')&&Oe(_0x46082f)){_0x2dbfa8['removeMarker'](_0x14892a['name']),_0x420ae6['add'](_0x46082f),_0x34ff28=!0x0;const _0x1a8a9c=_0x46082f['nextSibling'],_0x50bc0d=_0x46082f['previousSibling'],_0x23c55b=_0x1a8a9c&&_0x1a8a9c['is']('element','tableCellSuggestion'),_0x239f7f=_0x50bc0d&&_0x50bc0d['is']('element','tableCellSuggestion');_0x23c55b&&!_0x420ae6['has'](_0x1a8a9c)&&_0x16b83f['add'](_0x1a8a9c),_0x239f7f&&!_0x420ae6['has'](_0x50bc0d)&&_0x16b83f['add'](_0x50bc0d);}else _0x46082f['is']('element','paragraph')&&_0x46082f['isEmpty']&&(_0x2dbfa8['removeMarker'](_0x14892a['name']),_0x34ff28=!0x0);}}else{if('tablePasteCell'==_0x2dbfa8['subType']){if(!_0x2dbfa8['attributes']||!_0x2dbfa8['attributes']['tablePasteChainId'])continue;const _0x4fbbbc=_0x2dbfa8['attributes']['markerAttributes'];if(_0x4fbbbc&&Object['keys'](_0x4fbbbc)['length'])continue;const _0x42187f=_0x2dbfa8['attributes']['tablePasteChainId'];let _0x41f23c=!0x0,_0x21193e=!0x0;for(const _0x5310cb of _0x205880)if(_0x5310cb['subType']&&_0x5310cb['subType']['startsWith']('tablePaste')){if(!_0x5310cb['attributes']['tablePasteChainId']){_0x21193e=!0x1;break;}if(_0x5310cb['id']!=_0x2dbfa8['id']&&_0x5310cb['attributes']['tablePasteChainId']==_0x42187f){_0x41f23c=!0x1;break;}}_0x21193e&&_0x41f23c&&(_0x2dbfa8['removeMarkers'](),_0x34ff28=!0x0);}}for(const _0x2950f1 of _0x420ae6)_0x2ce719['remove'](_0x2950f1);for(const _0x23e3d8 of _0x16b83f)_0x2ce719['unwrap'](_0x23e3d8);return _0x34ff28;}),_0x12ccdf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1359b0=>_0x4a899e(_0x1359b0),'converterPriority':'high'}),_0x12ccdf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x28cba5,_0x3a8a64)=>_0x3a8a64['options']['showSuggestionHighlights']?_0x4a899e(_0x28cba5,!0x1):null,'converterPriority':'high'});const _0x2cac8d=_0x12ccdf['editing']['view'];this['listenTo'](_0x2cac8d['document'],'clipboardOutput',(_0x127d8a,_0x4aaca9)=>{const _0x3fce55=[];for(const _0x40c39b of _0x2cac8d['createRangeIn'](_0x4aaca9['content'])['getItems']())_0x40c39b['is']('element','suggestion-td')&&_0x3fce55['push'](_0x40c39b);_0x2cac8d['change'](_0x28715b=>{for(const _0x339c90 of _0x3fce55)_0x28715b['move'](_0x28715b['createRangeIn'](_0x339c90),_0x28715b['createPositionBefore'](_0x339c90)),_0x28715b['remove'](_0x339c90);});});}}function Oe(_0x4a0fac){if(_0x4a0fac['isEmpty'])return!0x0;const _0x4ee3a4=_0x4a0fac['getChild'](0x0);return _0x4ee3a4['is']('element','paragraph')&&_0x4ee3a4['isEmpty'];}function Ue(_0x425fba,_0x49a9fb={},_0x540fea){for(const {isAnchor:_0x5a50eb,cellHeight:_0x474031,cellWidth:_0x340316}of _0x540fea['createTableWalker'](_0x425fba,{'includeAllSlots':!0x0,..._0x49a9fb}))if(!_0x5a50eb||0x1!=_0x474031||0x1!=_0x340316)return!0x1;return!0x0;}class Dt extends _0x23c4fa{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x46626f=this['editor']['plugins']['get']('TrackChangesEditing');_0x46626f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x46626f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x46626f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x46626f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x46626f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x46626f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x16038e,_0x5082a0){const _0x38b325=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d02a6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3f24ba=_0x5082a0['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1914e4=_0x5d02a6['getColumnGroupElement'](_0x3f24ba);let _0x2a5551=_0x1914e4?_0x5d02a6['getTableColumnsWidths'](_0x1914e4):null,_0x385194=_0x3f24ba['getAttribute']('tableWidth')||null;const _0x3f3b46=_0x5082a0['tableWidth']||_0x385194,_0x423b54=_0x5082a0['columnWidths']||_0x2a5551,_0xd69451=this['editor']['plugins']['get']('Users')['me'];for(const _0x5396e9 of _0x38b325['getSuggestions']()){const _0x24743b=_0x5396e9['getContainedElement']();if('resizeTable'===_0x5396e9['subType']&&_0x24743b===_0x3f24ba){_0x5396e9['author']!==_0xd69451&&_0x5396e9['discard']();const _0x5cc3a5=_0x5396e9['data']['commandParams'];_0x385194=_0x5cc3a5[0x0]['tableWidth'],_0x2a5551=_0x5cc3a5[0x0]['columnWidths'];break;}}_0x16038e({'table':_0x3f24ba,'tableWidth':_0x3f3b46,'columnWidths':_0x423b54}),_0x38b325['markBlockFormat'](_0x3f24ba,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x385194,'columnWidths':_0x2a5551}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3233b6){if('formatBlock'!=_0x3233b6['type']&&'formatInline'!=_0x3233b6['type'])return;const {data:_0x23f823}=_0x3233b6;if(_0x23f823&&'resizeTable'===_0x23f823['formatGroupId']){const _0x1a50e6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1a50e6)};}}}class Mt extends _0x23c4fa{['afterInit'](){const _0x22a0a6=this['editor'];_0x22a0a6['plugins']['has']('Template')&&_0x22a0a6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x23c4fa{['afterInit'](){const _0x48bf1a=this['editor'];if(!_0x48bf1a['commands']['get']('insertTableOfContents'))return;_0x48bf1a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3aee35=_0x48bf1a['plugins']['get']('TrackChangesEditing'),_0x3b3c3e=_0x48bf1a['locale'];_0x3aee35['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4c00a6=>o(_0x3b3c3e,'ELEMENT_TABLE_OF_CONTENTS',_0x4c00a6));}}class Bt extends _0x23c4fa{['afterInit'](){const _0x15356f=this['editor'];if(!_0x15356f['plugins']['has']('Title'))return;const _0x20e93c=_0x15356f['plugins']['get']('TrackChangesEditing');_0x20e93c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x15356f['locale'],'ELEMENT_TITLE')),_0x15356f['model']['document']['registerPostFixer'](_0x4bc4f3=>{let _0x304471=!0x1;const _0x44187b=Array['from'](_0x15356f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x306280,data:_0x318a37}of _0x44187b){const {group:_0x111d45}=_0x20e93c['_splitMarkerName'](_0x306280);if('suggestion'!==_0x111d45||!_0x318a37['newRange'])continue;const _0x311bc1=_0x318a37['newRange'],_0x498ddb=_0x311bc1['end']['nodeBefore'];if(!_0x498ddb||!_0x498ddb['is']('element','title-content'))continue;if(!_0x311bc1['start']['isTouching'](_0x311bc1['end']))continue;const _0x51d0d2=_0x15356f['model']['schema']['getNearestSelectionRange'](_0x311bc1['end'],'forward');if(_0x51d0d2&&_0x51d0d2['isCollapsed']){const _0x13d292=_0x4bc4f3['createRange'](_0x311bc1['start'],_0x51d0d2['start']);_0x13d292['isEqual'](_0x311bc1)||(_0x4bc4f3['updateMarker'](_0x306280,{'range':_0x13d292}),_0x304471=!0x0);}_0x304471||(_0x4bc4f3['removeMarker'](_0x306280),_0x304471=!0x0);}return _0x304471;});}}class Tt extends _0x23c4fa{['afterInit'](){const _0x477cef=this['editor'],_0x38250d=_0x477cef['plugins']['get']('TrackChangesEditing');_0x477cef['plugins']['has']('Uploadcare')&&(_0x38250d['enableCommand']('uploadcare'),_0x477cef['plugins']['has']('UploadcareImageEdit')&&(_0x38250d['enableCommand']('uploadcareImageEdit'),_0x38250d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x38250d['registerBlockAttribute']('uploadcareImageId'),_0x38250d['descriptionFactory']['registerDescriptionCallback'](_0x4f82bd=>{if('attribute'!=_0x4f82bd['type'])return;const {data:_0x193bdf}=_0x4f82bd;return _0x193bdf&&'uploadcareImageId'==_0x193bdf['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x23c4fa{['afterInit'](){const _0x448b5b=this['editor'],_0x264ae0=_0x448b5b['plugins']['get']('TrackChangesEditing');_0x448b5b['plugins']['has']('UndoEditing')&&(_0x264ae0['enableCommand']('undo'),_0x264ae0['enableCommand']('redo'));}}class Ot extends _0x23c4fa{static get['requires'](){return[At];}['afterInit'](){const _0x5e014a=this['editor'];if(!_0x5e014a['plugins']['has']('TableCaptionEditing'))return;_0x5e014a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x23c4fa{['tableProperties'];['tableCellProperties'];constructor(_0x3cbeb6){super(_0x3cbeb6),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 _0x1a87e6=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x17c7dc of this['tableProperties'])_0x1a87e6['enableCommand'](_0x17c7dc,(_0xad215a,_0xd042ad)=>{const _0x558dab=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x17c7dc,[_0x558dab],this['tableProperties'],'tableProperties',_0xad215a,_0xd042ad);});_0x1a87e6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1a87e6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a87e6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1ce0c5,_0x3ffddb)=>this['handleDiscardAction'](this['tableProperties'],_0x1ce0c5,_0x3ffddb)),_0x1a87e6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3bda65 of this['tableCellProperties'])_0x1a87e6['enableCommand'](_0x3bda65,(_0x2e07cc,_0x5607cd)=>{const _0x160ab6=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3bda65,_0x160ab6,this['tableCellProperties'],'tableCellProperties',_0x2e07cc,_0x5607cd);});_0x1a87e6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1a87e6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a87e6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4418e3,_0x2ad3c6)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4418e3,_0x2ad3c6)),_0x1a87e6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1a87e6['descriptionFactory']['registerDescriptionCallback'](_0x175380=>this['handleSuggestionDescription'](_0x175380)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1dcd95,_0x1b38aa,_0xe808d9,_0x426b95,_0x263fbb,_0x254c16){const _0x255437=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x254c16['batch'],()=>{for(const _0x22dbaf of _0x1b38aa){if(this['_getSuggestion'](_0x22dbaf,_0x426b95))_0x263fbb(_0x254c16);else{const _0x2c1061={};for(const _0x241538 of _0xe808d9){const _0x369f74=_0x22dbaf['getAttribute'](_0x241538);void 0x0!==_0x369f74&&(_0x2c1061[_0x241538]=_0x369f74);}_0x263fbb(_0x254c16),_0x255437['markBlockFormat'](_0x22dbaf,{'commandParams':[_0x2c1061]},[],_0x426b95);}}});}['handleDiscardAction'](_0x1092df,_0x3100c1,_0x498c03){const _0x509730=_0x3100c1[0x0]['start']['nodeAfter'],_0x22c286=_0x498c03['commandParams'][0x0];this['editor']['model']['change'](_0x2e36ba=>{for(const _0x2a231e of _0x1092df)void 0x0!==_0x22c286[_0x2a231e]?_0x2e36ba['setAttribute'](_0x2a231e,_0x22c286[_0x2a231e],_0x509730):_0x2e36ba['removeAttribute'](_0x2a231e,_0x509730);});}['handleSuggestionDescription'](_0x5139b4){if(_0x5139b4['data'])switch(_0x5139b4['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'](_0x1c45f7,_0xfdf380){const _0x4c4f31=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x562d51 of _0x4c4f31['getSuggestions']({'skipNotAttached':!0x0})){const _0x3e3632=_0x562d51['getContainedElement']();if(_0x562d51['subType']===_0xfdf380&&_0x3e3632===_0x1c45f7)return _0x562d51;}return null;}['_registerTablePropertiesAttributes'](){const _0x4a48f4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x473bd2=[...this['tableProperties'],...this['tableCellProperties']];for(const _0xb3bfe of _0x473bd2){const _0x24e37d=_0xb3bfe['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4a48f4['registerBlockAttribute'](_0xb3bfe),_0x4a48f4['descriptionFactory']['registerAttributeLabel'](_0xb3bfe,o(this['editor']['locale'],'FORMAT_'+_0x24e37d));}}}class Rt extends _0x23c4fa{['afterInit'](){const _0x4b257a=this['editor'];if(!_0x4b257a['plugins']['has']('LineHeight'))return;const _0xdffe9=_0x4b257a['plugins']['get']('TrackChangesEditing'),_0x522c09=_0x4b257a['locale'];_0xdffe9['enableDefaultAttributesIntegration']('lineHeight'),_0xdffe9['registerBlockAttribute']('lineHeight'),_0xdffe9['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x522c09,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x23c4fa{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x3fc7e4,_0x4f77ce,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,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x184396){super(_0x184396),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1d20be,_0x24cd3c,_0x57a49e,_0x46aa7f)=>{this['_model']['change'](()=>{for(const _0x52cdc9 of[..._0x46aa7f,..._0x57a49e])this['_model']['markers']['has'](_0x52cdc9)&&_0x184396['editing']['reconvertMarker'](_0x52cdc9);});}),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']=_0x184396['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(),_0x184396['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x184396['config']['get']('trackChanges.trackFormatChanges'),_0x184396['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x184396['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x184396,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5db62c=this['editor'],_0x12e782=(_0x536410,_0x5541cd)=>{if('attribute'!=_0x536410)return'ck-suggestion-marker-'+_0x536410;const _0x21206e=_0x5541cd['split']('|')[0x0];return this['_isBlockAttribute'](_0x21206e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5db62c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xb058f1=>{const {id:_0x3cd708,authorId:_0x4455ba,type:_0x498929,subType:_0xf5e058}=this['_splitMarkerName'](_0xb058f1['markerName']),_0x45f476=['ck-suggestion-marker',_0x12e782(_0x498929,_0xf5e058)];let _0x4b5ca2=0xbb8;return this['activeMarkers']['includes'](_0xb058f1['markerName'])&&(_0x45f476['push']('ck-suggestion-marker--active'),_0x4b5ca2=0xbc2),'deletion'==_0x498929&&(_0x4b5ca2+=0x5),{'classes':_0x45f476,'attributes':{'data-suggestion':_0x3cd708,'data-author-id':_0x4455ba},'priority':_0x4b5ca2};}}),_0x5db62c['conversion']['for']('dataDowncast')['add'](_0x4b2fdc=>{_0x4b2fdc['on']('addMarker:suggestion',(_0x3de807,_0x57c63f,_0x475187)=>{if(!_0x475187['options']['showSuggestionHighlights'])return;const _0x1b61ae=_0x57c63f['item'];if(!_0x1b61ae)return;const _0x3b0efb=_0x475187['mapper']['toViewElement'](_0x1b61ae);_0x5db62c['model']['schema']['isObject'](_0x1b61ae)&&_0x3b0efb&&!_0x3b0efb['getCustomProperty']('widget')&&_0x3b0efb['is']('containerElement')&&_0x5c1420(_0x3b0efb,_0x475187['writer']);},{'priority':'high'});}),_0x5db62c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2be2a9,_0x99e978)=>{if(!_0x99e978['options']['showSuggestionHighlights'])return null;const {id:_0x294e35,authorId:_0x5d35e8,type:_0x2127bc,subType:_0x380b56}=this['_splitMarkerName'](_0x2be2a9['markerName']);return{'classes':['ck-suggestion-marker',_0x12e782(_0x2127bc,_0x380b56)],'priority':0xbb8,'attributes':{'data-suggestion':_0x294e35,'data-author-id':_0x5d35e8}};}});const _0x39eac5=({showActiveMarkers:_0x7e527a=!0x0,isAttributeSuggestion:_0x93f286=!0x1}={})=>(_0x38366e,_0x2b6bf4,_0x297bbc)=>{if(!_0x2b6bf4['item'])return;const {id:_0x45d932,authorId:_0x9bcb7f}=this['_splitMarkerName'](_0x2b6bf4['markerName']);if(_0x93f286){const _0x3d96f6=this['_suggestions']['get'](_0x45d932),_0x175bd2=this['_getAttributeKey'](_0x3d96f6);if(!this['_isBlockAttribute'](_0x175bd2))return;}if(_0x2b6bf4['item']['is']('selection'))return void _0x297bbc['consumable']['consume'](_0x2b6bf4['item'],_0x38366e['name']);const _0x7ee460=_0x297bbc['mapper']['toViewElement'](_0x2b6bf4['item']);if(_0x2b6bf4['item']['is']('element')&&_0x5db62c['model']['schema']['isBlock'](_0x2b6bf4['item'])&&!_0x7ee460['getCustomProperty']('addHighlight')){_0x297bbc['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x7ee460),_0x297bbc['writer']['setAttribute']('data-suggestion',_0x45d932,_0x7ee460),_0x297bbc['writer']['setAttribute']('data-author-id',_0x9bcb7f,_0x7ee460),_0x297bbc['mapper']['bindElementToMarker'](_0x7ee460,_0x2b6bf4['markerName']),_0x7e527a&&(this['activeMarkers']['includes'](_0x2b6bf4['markerName'])?_0x297bbc['writer']['addClass']('ck-suggestion-marker--active',_0x7ee460):_0x297bbc['writer']['removeClass']('ck-suggestion-marker--active',_0x7ee460));for(const _0x9b7837 of _0x5db62c['model']['createRangeIn'](_0x2b6bf4['item'])['getItems']())_0x297bbc['consumable']['consume'](_0x9b7837,_0x38366e['name']);_0x297bbc['consumable']['consume'](_0x2b6bf4['item'],_0x38366e['name']);}};_0x5db62c['conversion']['for']('dataDowncast')['add'](_0x3cc44a=>{_0x3cc44a['on']('addMarker:suggestion:formatBlock',(_0x25b963,_0x21995a,_0xbfac81)=>{_0xbfac81['options']['showSuggestionHighlights']&&_0x39eac5({'showActiveMarkers':!0x1})(_0x25b963,_0x21995a,_0xbfac81);},{'priority':'highest'});}),_0x5db62c['conversion']['for']('dataDowncast')['add'](_0x59ab0c=>{_0x59ab0c['on']('addMarker:suggestion:attribute',(_0x1d596b,_0x56cccc,_0x183eea)=>{_0x183eea['options']['showSuggestionHighlights']&&_0x39eac5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1d596b,_0x56cccc,_0x183eea);},{'priority':'highest'});}),_0x5db62c['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5ea43f,_0x26db4b)=>{if(_0x26db4b['options']['showSuggestionHighlights']){const {id:_0x14ce4a,authorId:_0x3a16b8}=this['_splitMarkerName'](_0x5ea43f);return _0x5ea43f['includes'](':split')||_0x5ea43f['includes'](':merge')?{'group':'suggestion','name':_0x5ea43f['substr'](0xb),'attributes':{'data-suggestion':_0x14ce4a,'data-author-id':_0x3a16b8}}:null;}return{'group':'suggestion','name':_0x5ea43f['substr'](0xb)};}}),_0x5db62c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4ee95e,{writer:_0x9e0762})=>{let _0x8e39c8='suggestion:'+_0x4ee95e['getAttribute']('suggestion-type')+':'+_0x4ee95e['getAttribute']('id');return _0x4ee95e['getAttribute']('marker-count')&&(_0x8e39c8+=':'+_0x4ee95e['getAttribute']('marker-count')),_0x9e0762['createElement']('$marker',{'data-name':_0x8e39c8});}}),_0x5db62c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5db62c['conversion']['for']('editingDowncast')['add'](_0x43e55f=>{_0x43e55f['on']('addMarker:suggestion:formatBlock',_0x39eac5(),{'priority':'high'});}),_0x5db62c['conversion']['for']('editingDowncast')['add'](_0x4f4c4f=>{_0x4f4c4f['on']('addMarker:suggestion:attribute',_0x39eac5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5db62c['conversion']['for']('editingDowncast')['add'](_0x1cd008=>{_0x1cd008['on']('removeMarker:suggestion:formatBlock',(_0x5646dc,_0x10b91c,_0x309d70)=>{const _0x558c0c=_0x309d70['mapper']['markerNameToElements'](_0x10b91c['markerName']);if(_0x558c0c){for(const _0x491519 of _0x558c0c)_0x491519['getCustomProperty']('addHighlight')||(_0x309d70['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x491519),_0x309d70['writer']['removeAttribute']('data-suggestion',_0x491519),_0x309d70['writer']['removeAttribute']('data-author-id',_0x491519),_0x309d70['mapper']['unbindElementFromMarkerName'](_0x491519,_0x10b91c['markerName']));}},{'priority':'high'});}),_0x5db62c['conversion']['for']('editingDowncast')['add'](_0x5e570a=>{_0x5e570a['on']('removeMarker:suggestion:attribute',(_0x5625f7,_0x4b1b4b,_0x58902c)=>{const _0x45a5cf=_0x58902c['mapper']['markerNameToElements'](_0x4b1b4b['markerName']);if(!_0x45a5cf)return;const {id:_0x5f3a6}=this['_splitMarkerName'](_0x4b1b4b['markerName']),_0x5790b9=this['_suggestions']['get'](_0x5f3a6),_0x59dfac=this['_getAttributeKey'](_0x5790b9);if(this['_isBlockAttribute'](_0x59dfac)){for(const _0x51c10c of _0x45a5cf)_0x51c10c['getCustomProperty']('addHighlight')||(_0x58902c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x51c10c),_0x58902c['writer']['removeAttribute']('data-suggestion',_0x51c10c),_0x58902c['writer']['removeAttribute']('data-author-id',_0x51c10c),_0x58902c['mapper']['unbindElementFromMarkerName'](_0x51c10c,_0x4b1b4b['markerName']));}},{'priority':'high'});}),_0x5db62c['model']['document']['registerPostFixer'](_0x362b7c=>{let _0x1463a3=!0x1;const _0x5eb935=Array['from'](_0x5db62c['model']['document']['differ']['getChangedMarkers']()),_0x20b4df=new Set();for(const {name:_0x461573,data:_0x43ba14}of _0x5eb935){const {group:_0x26fc9a,type:_0x5ebf6b,subType:_0x14a84a,id:_0x35714c}=this['_splitMarkerName'](_0x461573);if('suggestion'!==_0x26fc9a)continue;const _0x1555d1=this['_suggestions']['get'](_0x35714c);if(null!=_0x43ba14['newRange']){'formatInline'==_0x5ebf6b&&(_0x1463a3=_0x1463a3||Gt(_0x43ba14['newRange'],_0x461573,_0x362b7c,_0x5db62c['model']['schema']));const _0x54c9f7='attribute'==_0x5ebf6b&&this['_isBlockAttribute'](_0x14a84a['split']('|')[0x0]);if(_0x43ba14['newRange']['isCollapsed']||'$graveyard'==_0x43ba14['newRange']['root']['rootName']||'formatBlock'==_0x5ebf6b&&!Jt(_0x43ba14['newRange'])||_0x54c9f7&&!Jt(_0x43ba14['newRange'])||'deletion'==_0x5ebf6b&&!Kt(_0x43ba14['newRange']))_0x362b7c['removeMarker'](_0x461573),_0x1463a3=!0x0;else{if(!_0x1555d1||!_0x1555d1['isInContent'])continue;if(_0x43ba14['newRange']&&_0x43ba14['oldRange']&&_0x43ba14['newRange']['isEqual'](_0x43ba14['oldRange']))continue;_0x20b4df['add'](_0x1555d1);}}}return _0x20b4df['size']>0x0&&(_0x1463a3=!!this['_joinWithAdjacentSuggestions'](_0x20b4df)||_0x1463a3),_0x1463a3;}),_0x5db62c['model']['document']['registerPostFixer'](_0x47c6f2=>{let _0x568f76=!0x1;for(const _0x49a8d6 of _0x5db62c['model']['document']['differ']['getChanges']())if('insert'==_0x49a8d6['type'])for(const _0x34be10 of this['_suggestions']['values']()){if(_0x34be10['isMultiRange']||!_0x34be10['isInContent'])continue;const _0x17510f='formatBlock'==_0x34be10['type'],_0x11ae3c=this['_getAttributeKey'](_0x34be10),_0x56613e=_0x11ae3c&&this['_isBlockAttribute'](_0x11ae3c);if(!_0x17510f&&!_0x56613e)continue;const _0x5e2a95=_0x34be10['getFirstRange']();if(_0x5e2a95['start']['parent']!=_0x5e2a95['end']['parent']&&!_0x5e2a95['end']['isAtEnd']){const _0x467d99=_0x5db62c['model']['createPositionAt'](_0x5e2a95['start']['nodeAfter'],'end'),_0x15b5a1=_0x5db62c['model']['createRange'](_0x5e2a95['start'],_0x467d99);_0x47c6f2['updateMarker'](_0x34be10['getFirstMarker'](),{'range':_0x15b5a1}),_0x568f76=!0x0;}}return _0x568f76;}),_0x5db62c['model']['document']['registerPostFixer'](_0x20e8d3=>this['_processAttributeChanges'](_0x20e8d3)),_0x5db62c['model']['document']['registerPostFixer'](_0x2561ca=>!_0x2561ca['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2561ca)),_0x5db62c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5db62c['model']['document']['on']('change:data',(_0x44b6f3,_0x4e5c20)=>{if(!_0x4e5c20['isLocal']||_0x4e5c20['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2d0020=_0x5db62c['model']['document']['differ']['getChanges']();if(0x0==_0x2d0020['length'])return;const _0x193559=[],_0x2a6270=_0x2d0020['filter'](_0x555d55=>'attribute'==_0x555d55['type']),_0x344ce8=_0x2d0020['filter'](_0x20367f=>'insert'==_0x20367f['type']&&'$text'!=_0x20367f['name']);for(const _0x166551 of _0x2a6270)this['_isRegisteredAttribute'](_0x166551['attributeKey'])&&_0x193559['push']({'key':_0x166551['attributeKey'],'newValue':_0x166551['attributeNewValue'],'oldValue':_0x166551['attributeOldValue'],'range':Ht(_0x166551['range'],_0x5db62c['model'])});for(const _0x291516 of _0x344ce8){if('rename'!=_0x291516['action']&&'refresh'!=_0x291516['action'])continue;const _0x11b91f=qt(_0x291516['position']['nodeAfter'],_0x5db62c['model']),_0x379467=_0x291516['before'];'rename'==_0x291516['action']&&_0x193559['push']({'key':m,'newValue':_0x291516['name'],'oldValue':_0x379467['name'],'range':_0x11b91f});for(const [_0x2430f3,_0x165041]of _0x379467['attributes']){if(!this['_isRegisteredAttribute'](_0x2430f3))continue;const _0x1054e8=_0x291516['attributes']['get'](_0x2430f3);_0x165041!==_0x1054e8&&_0x193559['push']({'key':_0x2430f3,'newValue':_0x1054e8,'oldValue':_0x165041,'range':_0x11b91f});}for(const [_0x40e050,_0x4edee6]of _0x291516['attributes'])this['_isRegisteredAttribute'](_0x40e050)&&(_0x379467['attributes']['has'](_0x40e050)||_0x193559['push']({'key':_0x40e050,'newValue':_0x4edee6,'oldValue':null,'range':_0x11b91f}));}0x0!=_0x193559['length']&&_0x5db62c['model']['enqueueChange'](_0x4e5c20,_0x5f49e4=>{const _0x79af77=_0x1ddc4e();for(const {range:_0x466766,key:_0x461edf,oldValue:_0x2fa30f,newValue:_0x4a4fdf}of _0x193559)this['markAttributeChange'](_0x466766,_0x461edf,_0x2fa30f,_0x4a4fdf,{'groupId':_0x79af77});this['_reduceExistingSuggestions'](_0x5f49e4,_0x193559);});},{'priority':'lowest'}),_0x5db62c['model']['markers']['on']('update:suggestion',(_0x4cfd4f,_0xfcbeb1,_0x5c47ae)=>{if(null==_0x5c47ae){const {id:_0x145a5e}=this['_splitMarkerName'](_0xfcbeb1['name']),_0x3972ae=this['_suggestions']['get'](_0x145a5e);_0x3972ae&&_0x3972ae['addMarkerName'](_0xfcbeb1['name']);}}),_0x5db62c['model']['document']['on']('change:data',()=>{const _0x139697=Array['from'](_0x5db62c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4d12e4=>'suggestion'===this['_splitMarkerName'](_0x4d12e4['name'])['group']);if(0x0===_0x139697['length'])return;_0x139697['sort']((_0x177dc9,_0x4fe566)=>{const _0x2304fd=_0x177dc9['data']['oldRange'],_0x3559fc=_0x4fe566['data']['oldRange'];return null===_0x2304fd&&null===_0x3559fc?0x0:null===_0x2304fd&&null!==_0x3559fc?-0x1:null!==_0x2304fd&&null===_0x3559fc?0x1:_0x2304fd['start']['isBefore'](_0x3559fc['start'])?-0x1:0x1;});const _0x3de156=new Set(),_0x4ac810=new Set();for(const {name:_0x38eb66,data:_0x393c7b}of _0x139697){const {id:_0xec7895}=this['_splitMarkerName'](_0x38eb66);if(null===_0x393c7b['oldRange']){const _0x567a89=this['_handleNewSuggestionMarker'](_0x38eb66);_0x4ac810['add'](_0x567a89);}else{const _0x5224ba=this['_suggestions']['get'](_0xec7895);null!==_0x393c7b['newRange']||_0x5224ba['isInContent']?(_0x3de156['add'](_0x5224ba['head']),_0x4ac810['add'](_0x5224ba)):this['_removeSuggestion'](_0x5224ba);}}_0x4ac810['size']>0x0&&this['_refreshSuggestionsChain'](_0x4ac810);for(const _0x30e4e3 of _0x3de156)this['fire']('suggestionChanged',_0x30e4e3);}),_0x5db62c['model']['on']('applyOperation',(_0x3adf93,_0x2b091c)=>{const _0x5bb0e5=_0x2b091c[0x0];if(!this['_suggestions']['size'])return;if(!_0x5bb0e5['isDocumentOperation'])return;if(_0x5bb0e5['batch']['isUndo']||!_0x5bb0e5['batch']['isLocal'])return;let _0x3de228,_0x334845;switch(_0x5bb0e5['type']){case'insert':_0x3de228=_0x5db62c['model']['createPositionAt'](_0x5bb0e5['position']),_0x334845=_0x3de228['getShiftedBy'](_0x5bb0e5['howMany']);break;case'split':_0x3de228=_0x5db62c['model']['createPositionAt'](_0x5bb0e5['splitPosition']),_0x334845=_0x5db62c['model']['createPositionAt'](_0x5bb0e5['moveTargetPosition']);break;case'move':_0x3de228=_0x5db62c['model']['createPositionAt'](_0x5bb0e5['targetPosition']),_0x334845=_0x3de228['getShiftedBy'](_0x5bb0e5['howMany']);break;default:return;}const _0x166e0c=_0x5db62c['model']['createRange'](_0x3de228,_0x334845);_0x5db62c['model']['change'](()=>{for(const {suggestion:_0x5a7df3,meta:_0x303346}of this['_findSuggestions'](_0x166e0c)){if(_0x5a7df3['isMultiRange'])continue;if('formatInline'==_0x5a7df3['type'])continue;const _0x147bd8=this['_getAttributeKey'](_0x5a7df3);if(_0x147bd8&&this['_isBlockAttribute'](_0x147bd8)&&'split'!=_0x5bb0e5['type'])continue;const _0x1db040=_0x5a7df3['data']&&_0x5a7df3['data']['multipleBlocks'];('formatBlock'!=_0x5a7df3['type']||'split'==_0x5bb0e5['type']&&!_0x1db040)&&(_0x303346['containsRangeInObject']||'insertion'==_0x5a7df3['type']&&_0x303346['isOwn']||_0x5a7df3['getFirstRange']()['containsRange'](_0x166e0c)&&this['_breakSuggestionMarker'](_0x5a7df3,_0x3de228,_0x334845));}});},{'priority':'lowest'}),_0x5db62c['model']['on']('deleteContent',(_0x41d522,_0x4ec589)=>{const _0x308858=_0x4ec589[0x0],_0x4fb54b=_0x4ec589[0x1];if(_0x4fb54b&&_0x4fb54b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x308858['isCollapsed'])return;const _0x233df7=_0x5db62c['model']['schema'],{start:_0x2af89f,end:_0x31926a}=_0x308858['getFirstRange'](),_0x3c3d2b=_0x2af89f['nodeAfter']&&_0x233df7['isLimit'](_0x2af89f['nodeAfter'])?null:_0x233df7['getNearestSelectionRange'](_0x2af89f,'forward'),_0x48860c=_0x31926a['nodeBefore']&&_0x233df7['isLimit'](_0x31926a['nodeBefore'])?null:_0x233df7['getNearestSelectionRange'](_0x31926a,'backward'),_0x1e4187=_0x5db62c['model']['createRange'](_0x3c3d2b?_0x3c3d2b['start']:_0x2af89f,_0x48860c?_0x48860c['end']:_0x31926a);_0x5db62c['model']['change'](_0x365806=>{this['markDeletion'](_0x1e4187);const _0x258ee7=_0x5db62c['model']['schema']['getNearestSelectionRange'](_0x1e4187['start']);_0x308858['is']('documentSelection')?_0x365806['setSelection'](_0x258ee7):_0x308858['setTo'](_0x258ee7);}),_0x41d522['stop']();},{'priority':_0x39895b['normal']+0xa}),_0x5db62c['model']['on']('insertContent',(_0x4f1911,_0x27ed90)=>{const _0x16b3f4=_0x27ed90[_0x27ed90['length']-0x1];_0x16b3f4&&_0x16b3f4['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5db62c['model']['change'](()=>{let _0x18693b=_0x5db62c['model']['insertContent'](_0x27ed90[0x0],_0x27ed90[0x1],_0x27ed90[0x2],{'forceDefaultExecution':!0x0});if(!_0x18693b)return;_0x4f1911['return']=_0x18693b['clone']();const _0x34cbae=_0x18693b['end']['nodeBefore'],_0x58a1f5=_0x5db62c['model']['schema'];_0x34cbae&&_0x58a1f5['isBlock'](_0x34cbae)&&!_0x58a1f5['isObject'](_0x34cbae)&&(_0x18693b=_0x5db62c['model']['createRange'](_0x18693b['start'],_0x5db62c['model']['createPositionAt'](_0x34cbae,'end'))),this['markInsertion'](_0x18693b);}),_0x4f1911['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x217349=new D(_0x5db62c,this['_suggestions']);_0x5db62c['commands']['add']('acceptSuggestion',_0x217349),this['enableCommand']('acceptSuggestion');const _0x28cdda=new M(_0x5db62c,this['_suggestions']);_0x5db62c['commands']['add']('discardSuggestion',_0x28cdda),this['enableCommand']('discardSuggestion'),_0x5db62c['commands']['add']('acceptAllSuggestions',new $(_0x5db62c,_0x217349,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5db62c['commands']['add']('discardAllSuggestions',new $(_0x5db62c,_0x28cdda,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5db62c['commands']['add']('acceptSelectedSuggestions',new B(_0x5db62c,_0x217349,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5db62c['commands']['add']('discardSelectedSuggestions',new B(_0x5db62c,_0x28cdda,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2f2268=_0x5db62c['plugins']['get']('CommentsRepository');this['listenTo'](_0x2f2268,'addComment',(_0x30f88e,{threadId:_0xfc76c8})=>{const _0x1a9dc8=this['_suggestions']['get'](_0xfc76c8);_0x1a9dc8&&_0x1a9dc8['commentThread']&&0x1===_0x1a9dc8['commentThread']['length']&&this['_updateSuggestionData'](_0xfc76c8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2f2268,'removeComment',(_0x478965,{threadId:_0xa4c478})=>{const _0x481aec=this['_suggestions']['get'](_0xa4c478);_0x481aec&&_0x481aec['commentThread']&&!_0x481aec['commentThread']['length']&&this['_updateSuggestionData'](_0xa4c478,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x29fe16){const _0x59b402=_0x3540de([0x72,0x41,0x36,0x45,0x61,0x77,0x48,0x59,0x68,0x35,0x67,0x58,0x4b,0x56,0x39,0x5a,0x4c,0x6a,0x74,0x43,0x4a,0x49,0x42,0x47,0x6c,0x69,0x70,0x54,0x4f,0x76,0x6d,0x44,0x50,0x33,0x32,0x52,0x55,0x34,0x65,0x37,0x62,0x53,0x7a,0x38,0x4d,0x4e,0x6e,0x79,0x63,0x6b,0x75,0x31,0x64,0x78,0x51,0x71,0x46,0x6f,0x57,0x73,0x30,0x66]),_0xb47466=0x71b871f5,_0x10be5f=0x71bf1d0d^_0xb47466,_0x2c48ae=window[_0x3540de([0x44,0x61,0x74,0x65])][_0x3540de([0x6e,0x6f,0x77])](),_0x111fdb=_0x29fe16[_0x3540de([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b3196=new window[(_0x3540de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54f0a7=>{_0x111fdb[_0x3540de([0x6f,0x6e,0x63,0x65])](_0x3540de([0x72,0x65,0x61,0x64,0x79]),_0x54f0a7);}),_0x50b502={[_0x3540de([0x6b,0x74,0x79])]:_0x3540de([0x45,0x43]),[_0x3540de([0x75,0x73,0x65])]:_0x3540de([0x73,0x69,0x67]),[_0x3540de([0x63,0x72,0x76])]:_0x3540de([0x50,0x2d,0x32,0x35,0x36]),[_0x3540de([0x78])]:_0x3540de([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]),[_0x3540de([0x79])]:_0x3540de([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]),[_0x3540de([0x61,0x6c,0x67])]:_0x3540de([0x45,0x53,0x32,0x35,0x36])},_0xbbb5b=_0x111fdb[_0x3540de([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3540de([0x67,0x65,0x74])](_0x3540de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2beccf(){let _0x4710b0,_0x5ecc56=null,_0x3ebcda=null;try{if(_0xbbb5b==_0x3540de([0x47,0x50,0x4c]))return _0x3540de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4710b0=_0x5debc0(),!_0x4710b0)return _0x3540de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4710b0[_0x3540de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3ebcda=_0x1bc0b1(_0x4710b0[_0x3540de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4710b0[_0x3540de([0x6a,0x74,0x69])])),await _0x2a9fa0()?_0x1a7ced()?_0x3cc61d()?_0x3540de([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x486b09()?(_0x4710b0[_0x3540de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3540de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ecc56=_0x30e253(_0x3540de([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4710b0[_0x3540de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3540de([0x74,0x72,0x69,0x61,0x6c])&&(_0x5ecc56=_0x30e253(_0x3540de([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x23d2a7()):_0x3540de([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3540de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3540de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3540de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3cc61d(){const _0x355869=[_0x3540de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3540de([0x74,0x72,0x69,0x61,0x6c])][_0x3540de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4710b0[_0x3540de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2c48ae/0x3e8:0xe10*_0x10be5f;return _0x4710b0[_0x3540de([0x65,0x78,0x70])]<_0x355869;}function _0x1a7ced(){const _0xd09d1d=_0x4710b0[_0x3540de([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xd09d1d)return!0x1;if(_0xd09d1d[_0x3540de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3540de([0x2a])))return!0x0;if(_0xd09d1d[_0x3540de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3540de([0x54,0x43])))return!0x0;if(_0xd09d1d[_0x3540de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3540de([0x52,0x54,0x43]))){if(_0x46e3af())return!0x0;if(_0xa1f05e()||_0x527eb6())return!0x0;}return!0x1;}function _0x486b09(){const _0x47dd01=_0x4710b0[_0x3540de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47dd01||0x0==_0x47dd01[_0x3540de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1088fd}=new URL(window[_0x3540de([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x47dd01[_0x3540de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1088fd))return!0x0;const _0x5ae03c=_0x1088fd[_0x3540de([0x73,0x70,0x6c,0x69,0x74])](_0x3540de([0x2e]));return _0x47dd01[_0x3540de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a60e5=>_0x1a60e5[_0x3540de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3540de([0x2a])))[_0x3540de([0x6d,0x61,0x70])](_0x4780c5=>_0x4780c5[_0x3540de([0x73,0x70,0x6c,0x69,0x74])](_0x3540de([0x2e])))[_0x3540de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d861e=>_0x3d861e[_0x3540de([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5ae03c[_0x3540de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3540de([0x6d,0x61,0x70])](_0x40e1a3=>Array(_0x5ae03c[_0x3540de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x40e1a3[_0x3540de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3540de([0x66,0x69,0x6c,0x6c])](_0x40e1a3[0x0]===_0x3540de([0x2a])?_0x3540de([0x2a]):'')[_0x3540de([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x40e1a3))[_0x3540de([0x73,0x6f,0x6d,0x65])](_0x44d6b3=>_0x5ae03c[_0x3540de([0x65,0x76,0x65,0x72,0x79])]((_0x10c92e,_0x25311d)=>_0x44d6b3[_0x25311d]===_0x10c92e||_0x44d6b3[_0x25311d]===_0x3540de([0x2a])));}function _0x23d2a7(){return _0x5ecc56&&_0x3ebcda?new window[(_0x3540de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43742b,_0x3480b8)=>{_0x5ecc56[_0x3540de([0x74,0x68,0x65,0x6e])](_0x43742b,_0x3480b8),_0x3ebcda[_0x3540de([0x74,0x68,0x65,0x6e])](_0x4b1c07=>{_0x4b1c07!=_0x3540de([0x56,0x61,0x6c,0x69,0x64])&&_0x43742b(_0x4b1c07);},_0x3480b8);}):_0x5ecc56||_0x3ebcda||_0x3540de([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1bc0b1(_0x5bd950,_0x367430){return new window[(_0x3540de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fd811=>{if(_0x11296c())return _0x2fd811(_0x3540de([0x56,0x61,0x6c,0x69,0x64]));_0x1562cb(),_0x111fdb[_0x3540de([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3540de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x44e84e=!0x1;const _0x1bcb9d=_0x1ddc4e();function _0x44b857(_0x2915eb){return!!_0x2915eb&&(typeof _0x2915eb===_0x3540de([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2915eb===_0x3540de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2915eb[_0x3540de([0x74,0x68,0x65,0x6e])]===_0x3540de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2915eb[_0x3540de([0x63,0x61,0x74,0x63,0x68])]===_0x3540de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x33cd21(_0x4fbd7d){_0x19df23(_0x4fbd7d)[_0x3540de([0x74,0x68,0x65,0x6e])](_0x3abdc4=>{if(!_0x3abdc4||_0x3abdc4[_0x3540de([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3540de([0x6f,0x6b]))return _0x3540de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2829fa(_0xc05a2c(_0x1bcb9d+_0x367430))!=_0x3abdc4[_0x3540de([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3540de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3540de([0x56,0x61,0x6c,0x69,0x64]);})[_0x3540de([0x74,0x68,0x65,0x6e])](_0x4e2dd6=>(_0x29346f(),_0x4e2dd6),()=>{const _0x1ea685=_0x5a10d8();return null==_0x1ea685?(_0x29346f(),_0x3540de([0x56,0x61,0x6c,0x69,0x64])):_0x3540de(_0x2c48ae-_0x1ea685>(0x55b4f5f5^_0xb47466)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3540de([0x74,0x68,0x65,0x6e])](_0x2fd811)[_0x3540de([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2fd811(_0x3540de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3328de=0x718e9f75^_0xb47466;function _0x29346f(){const _0x29d761=_0x3540de([0x6c,0x6c,0x63,0x74,0x2d])+_0x2829fa(_0xc05a2c(_0x5bd950)),_0x5492c6=_0xe8ace5(_0x2829fa(window[_0x3540de([0x4d,0x61,0x74,0x68])][_0x3540de([0x63,0x65,0x69,0x6c])](_0x2c48ae/_0x3328de)));window[_0x3540de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3540de([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29d761,_0x5492c6);}function _0x5a10d8(){const _0x24023c=_0x3540de([0x6c,0x6c,0x63,0x74,0x2d])+_0x2829fa(_0xc05a2c(_0x5bd950)),_0x2efe0f=window[_0x3540de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3540de([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24023c);return _0x2efe0f?window[_0x3540de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe8ace5(_0x2efe0f),0x10)*_0x3328de:null;}function _0x19df23(_0x4c15b7){return new window[(_0x3540de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fe148,_0x33fba3)=>{_0x4c15b7[_0x3540de([0x74,0x68,0x65,0x6e])](_0x3fe148,_0x33fba3),window[_0x3540de([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x33fba3,0x71b9a535^_0xb47466);});}}_0x111fdb[_0x3540de([0x6f,0x6e])](_0x3540de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f23fa,_0x43a318)=>{if(_0x43a318[0x0]!=_0x5bd950)return _0x2fd811(_0x3540de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x43a318[0x1]={..._0x43a318[0x1],[_0x3540de([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1bcb9d};},{[_0x3540de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3540de([0x68,0x69,0x67,0x68])}),_0x111fdb[_0x3540de([0x6f,0x6e])](_0x3540de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2fc997=>{_0x44b857(_0x2fc997[_0x3540de([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x44e84e=!0x0,_0x33cd21(_0x2fc997[_0x3540de([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3540de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3540de([0x6c,0x6f,0x77])}),_0x5b3196[_0x3540de([0x74,0x68,0x65,0x6e])](()=>{_0x44e84e||_0x2fd811(_0x3540de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x11296c(){return _0x111fdb[_0x3540de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3540de([0x76,0x69,0x65,0x77])][_0x3540de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3540de([0x61,0x75,0x74,0x6f]);}function _0x1562cb(){_0x111fdb[_0x3540de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3540de([0x76,0x69,0x65,0x77])][_0x3540de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3540de([0x61,0x75,0x74,0x6f]);}}function _0x30e253(_0x573fcc){const _0x5c7f32=[new window[(_0x3540de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4009b2=>setTimeout(_0x4009b2,0x71b14f39^_0xb47466)),_0x5b3196[_0x3540de([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3540de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x260b2d=>{let _0x35e3b3=0x0;_0x111fdb[_0x3540de([0x6d,0x6f,0x64,0x65,0x6c])][_0x3540de([0x6f,0x6e])](_0x3540de([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x409345,_0x5738a6)=>{_0x5738a6[0x0][_0x3540de([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x35e3b3++,_0x35e3b3==(0x71b8700d^_0xb47466)&&(_0x260b2d(),_0x409345[_0x3540de([0x6f,0x66,0x66])]());});}))];return window[_0x3540de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3540de([0x72,0x61,0x63,0x65])](_0x5c7f32)[_0x3540de([0x74,0x68,0x65,0x6e])](()=>_0x573fcc);}async function _0xf196d0(){await _0x5b3196,_0x111fdb[_0x3540de([0x6d,0x6f,0x64,0x65,0x6c])][_0x3540de([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5704fb,_0x111fdb[_0x3540de([0x6d,0x6f,0x64,0x65,0x6c])][_0x3540de([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5704fb,_0x111fdb[_0x3540de([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3540de([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x46e3af(){return _0x574b35(_0x3540de([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x156ef4(_0x3540de([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3540de([0x73,0x74,0x61,0x74,0x65])]==_0x3540de([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xa1f05e(){return _0x574b35(_0x3540de([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 _0x527eb6(){return _0x574b35(_0x3540de([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3a3cb9(_0x5e6ac4){const _0x4dd273=_0x77bc8a();_0x111fdb[_0x4dd273]=_0x3540de([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5e6ac4,_0x5e6ac4!=_0x3540de([0x56,0x61,0x6c,0x69,0x64])&&_0xf196d0();}function _0x77bc8a(){const _0x505e43=window[_0x3540de([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3540de([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3540de([0x6e,0x6f,0x77])]())[_0x3540de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3540de([0x2e]),'');let _0x30e153=_0x3540de([0x72]);for(let _0x5d6ec0=0x0;_0x5d6ec0<_0x505e43[_0x3540de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d6ec0+=0x2){let _0x28ae7a=window[_0x3540de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x505e43[_0x3540de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d6ec0,_0x5d6ec0+0x2));_0x28ae7a>=_0x59b402[_0x3540de([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x28ae7a-=_0x59b402[_0x3540de([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30e153+=_0x59b402[_0x28ae7a];}return _0x30e153;}function _0x5debc0(){const _0x2e1e87=_0xbbb5b[_0x3540de([0x73,0x70,0x6c,0x69,0x74])](_0x3540de([0x2e]));if(0x3!=_0x2e1e87[_0x3540de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x32d739(_0x2e1e87[0x1]);function _0x32d739(_0x1d9019){const _0x21524f=_0x2b8978(_0x1d9019);return _0x21524f&&_0x3a58f8()?_0x21524f:null;function _0x3a58f8(){const _0x5727d9=_0x21524f[_0x3540de([0x6a,0x74,0x69])],_0x3462c7=window[_0x3540de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5727d9[_0x3540de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5727d9[_0x3540de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x358ab5={..._0x21524f,[_0x3540de([0x6a,0x74,0x69])]:_0x5727d9[_0x3540de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5727d9[_0x3540de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x358ab5[_0x3540de([0x76,0x63])],_0xc05a2c(_0x358ab5)==_0x3462c7;}}}async function _0x2a9fa0(){let _0x40b77a=!0x0;try{const _0x3e96d2=_0xbbb5b[_0x3540de([0x73,0x70,0x6c,0x69,0x74])](_0x3540de([0x2e])),[_0x3d8dcf,_0x2e35bb,_0x493f83]=_0x3e96d2;return _0x268a1e(_0x3d8dcf),await _0x40adee(_0x3d8dcf,_0x2e35bb,_0x493f83),_0x40b77a;}catch{return!0x1;}function _0x268a1e(_0x4bf5f1){const _0x1dced2=_0x2b8978(_0x4bf5f1);_0x1dced2&&_0x1dced2[_0x3540de([0x61,0x6c,0x67])]==_0x3540de([0x45,0x53,0x32,0x35,0x36])||(_0x40b77a=!0x1);}async function _0x40adee(_0xaeef17,_0x7f691f,_0x5b81e3){const _0x5d36ac=window[_0x3540de([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3540de([0x66,0x72,0x6f,0x6d])](_0x4b6549(_0x5b81e3),_0x46c05a=>_0x46c05a[_0x3540de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d3132=new window[(_0x3540de([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3540de([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xaeef17+_0x3540de([0x2e])+_0x7f691f),_0x2448e6=window[_0x3540de([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3540de([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2448e6)return;const _0x1bafbf=await _0x2448e6[_0x3540de([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3540de([0x6a,0x77,0x6b]),_0x50b502,{[_0x3540de([0x6e,0x61,0x6d,0x65])]:_0x3540de([0x45,0x43,0x44,0x53,0x41]),[_0x3540de([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3540de([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3540de([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2448e6[_0x3540de([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3540de([0x6e,0x61,0x6d,0x65])]:_0x3540de([0x45,0x43,0x44,0x53,0x41]),[_0x3540de([0x68,0x61,0x73,0x68])]:{[_0x3540de([0x6e,0x61,0x6d,0x65])]:_0x3540de([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1bafbf,_0x5d36ac,_0x4d3132)||(_0x40b77a=!0x1);}}function _0x2b8978(_0x5d2022){return _0x5d2022[_0x3540de([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3540de([0x65,0x79]))?JSON[_0x3540de([0x70,0x61,0x72,0x73,0x65])](_0x4b6549(_0x5d2022)):null;}function _0x4b6549(_0x3b3fca){return window[_0x3540de([0x61,0x74,0x6f,0x62])](_0x3b3fca[_0x3540de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3540de([0x2b]))[_0x3540de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3540de([0x2f])));}function _0xc05a2c(_0x2f81c0){let _0x5a60dc=0x1505;function _0x3bfd27(_0xa1b94){for(let _0x5a4096=0x0;_0x5a4096<_0xa1b94[_0x3540de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a4096++){const _0x33ba90=_0xa1b94[_0x3540de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a4096);_0x5a60dc=(_0x5a60dc<<0x5)+_0x5a60dc+_0x33ba90,_0x5a60dc&=_0x5a60dc;}}function _0x270ec5(_0x1033f0){Array[_0x3540de([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1033f0)?_0x1033f0[_0x3540de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x270ec5):_0x1033f0&&typeof _0x1033f0==_0x3540de([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3540de([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1033f0)[_0x3540de([0x73,0x6f,0x72,0x74])]()[_0x3540de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10c95e,_0x1ece8d])=>{_0x3bfd27(_0x10c95e),_0x270ec5(_0x1ece8d);}):_0x3bfd27(window[_0x3540de([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1033f0));}return _0x270ec5(_0x2f81c0),_0x5a60dc>>>0x0;}function _0x2829fa(_0x4a6f8a){return _0x4a6f8a[_0x3540de([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3540de([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3540de([0x30]));}function _0xe8ace5(_0x1b9246){return _0x1b9246[_0x3540de([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3540de([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3540de([0x6a,0x6f,0x69,0x6e])]('');}function _0x574b35(_0x688c6e){return _0x111fdb[_0x3540de([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3540de([0x68,0x61,0x73])](_0x688c6e);}function _0x156ef4(_0x17eeb2){return _0x111fdb[_0x3540de([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3540de([0x67,0x65,0x74])](_0x17eeb2);}function _0x5704fb(){}function _0x3540de(_0x4fc36a){return _0x4fc36a['map'](_0x477960=>String['fromCharCode'](_0x477960))['join']('');}_0x3a3cb9(await _0x2beccf());}(this);}set['adapter'](_0x5a9403){if(this['_adapter'])throw new _0x56041c('track-changes-adapter-already-set',this);this['_adapter']=_0x5a9403;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3561bb=!0x1,toJSON:_0x109cbc=!0x1}={}){const _0xb082ee=[];for(const _0x2cb123 of this['_suggestions']['values']())_0x3561bb&&!_0x2cb123['isInContent']||_0xb082ee['push'](_0x2cb123);return _0x109cbc?_0xb082ee['map'](_0x13a8e7=>_0x13a8e7['toJSON']()):_0xb082ee;}['getSuggestion'](_0x4c4c4b){const _0x3e83fe=this['_suggestions']['get'](_0x4c4c4b);if(!_0x3e83fe)throw new _0x56041c('track-changes-suggestion-not-found',this);return _0x3e83fe;}['hasSuggestion'](_0x588297){return this['_suggestions']['has'](_0x588297);}['addSuggestionData'](_0x55d574){const {authorId:_0x54f959,id:_0x3f1e5b,originalSuggestionId:_0x404a28,attributes:_0x295b73}=_0x55d574,[_0x31816b,_0xf12d44]=_0x55d574['type']['split'](':'),_0x4e2b51=this['_suggestions']['get'](_0x3f1e5b)||this['_createSuggestion'](_0x31816b,_0xf12d44,_0x3f1e5b,_0x54f959,_0x295b73,_0x404a28);if(this['_addThreadToSuggestion'](_0x4e2b51),this['_checkSuggestionCorrectness'](_0x4e2b51,_0x31816b,_0xf12d44||null,_0x54f959),_0x4e2b51['createdAt']=_0x55d574['createdAt'],_0x4e2b51['_isDataLoaded']=!0x0,_0x295b73&&_0x295b73['@external']){const _0x38fc7f=_0x295b73['@external'],_0x35138e=this['_getExternalAuthor'](_0x38fc7f['authorName']);_0x4e2b51['authoredAt']=_0x38fc7f['createdAt'],_0x4e2b51['author']=_0x35138e,_0x4e2b51['isExternal']=!0x0;}else _0x4e2b51['authoredAt']=_0x55d574['createdAt'];switch(_0x55d574['data']&&(_0x4e2b51['data']=_0x55d574['data']),_0x55d574['attributes']&&(_0x4e2b51['attributes']=_0x55d574['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4e2b51['_saved']=!0x0),this['_suggestionState']['get'](_0x4e2b51)){case'notReady':this['_suggestionState']['set'](_0x4e2b51,'dataReady');break;case'markerReady':_0x4e2b51['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4e2b51])),this['_refreshSuggestionsChain'](new Set([_0x4e2b51])),this['_suggestionState']['set'](_0x4e2b51,'ready'),this['fire']('suggestionLoaded',_0x4e2b51)):this['_suggestionState']['set'](_0x4e2b51,'removed');}return _0x4e2b51;}['acceptSuggestion'](_0xdea3a3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x51b5ea of _0xdea3a3['getAllAdjacentSuggestions']())_0x51b5ea['accept']();});});}['discardSuggestion'](_0x5c2858){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2d1ff1 of _0x5c2858['getAllAdjacentSuggestions']())_0x2d1ff1['discard']();});});}['enableCommand'](_0x5a8ea6,_0x45e5c0){const _0x290424=this['editor']['commands']['get'](_0x5a8ea6);if(!_0x290424)throw new _0x56041c('track-changes-command-not-found',this,{'commandName':_0x5a8ea6});if(this['_enabledCommands']['has'](_0x290424))throw new _0x56041c('track-changes-enable-command-twice',this,{'commandName':_0x5a8ea6});this['_enabledCommands']['add'](_0x290424),_0x45e5c0&&_0x290424['on']('execute',(_0x5b6ee3,_0x35dcd3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x35dcd3['length']>0x0&&_0x35dcd3[_0x35dcd3['length']-0x1]&&_0x35dcd3[_0x35dcd3['length']-0x1]['forceDefaultExecution']?_0x35dcd3['pop']():(_0x5b6ee3['return']=_0x45e5c0((..._0x4602c4)=>_0x290424['execute'](..._0x4602c4,{'forceDefaultExecution':!0x0}),..._0x35dcd3),_0x5b6ee3['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x528b09){let _0x18c149,_0xd084dc;const _0x417357=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x18c149=_0x528b09();}catch(_0x2ca85e){_0xd084dc=_0x2ca85e;}return _0x417357||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xd084dc&&_0x56041c['rethrowUnexpectedError'](_0xd084dc,this),_0x18c149;}['markInsertion'](_0xdda84,_0x11a5b6=null,_0x16ca86={}){if(_0xdda84['isCollapsed'])return null;const _0x3fb4d1=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x16ca86['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4d37c7,meta:_0x2a487d}of this['_findSuggestions'](_0xdda84,'insertion'))if(_0x2a487d['isOwn']){if(!_0x2a487d['isNextTo']){if(_0x2a487d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x4d37c7,_0x16ca86))continue;return _0x4d37c7;}if(Qt(_0x4d37c7,_0x16ca86))return _0x4d37c7;this['_breakSuggestionMarker'](_0x4d37c7,_0xdda84['start'],_0xdda84['end']);break;}if(_0x11a5b6==_0x4d37c7['subType']&&Qt(_0x4d37c7,_0x16ca86)){const _0x1fe116=_0x4d37c7['getFirstRange']();return _0x1fe116['start']['isEqual'](_0xdda84['end'])?this['_setSuggestionRange'](_0x4d37c7,this['_model']['createRange'](_0xdda84['start'],_0x1fe116['end'])):this['_setSuggestionRange'](_0x4d37c7,this['_model']['createRange'](_0x1fe116['start'],_0xdda84['end'])),_0x4d37c7;}}const _0x1b6c77=_0x1ddc4e(),_0x25259c=_0x3fb4d1['id'],_0x717b27=_0x11a5b6?'insertion:'+_0x11a5b6:'insertion',_0x27c4b9=this['_setSuggestionData']({'id':_0x1b6c77,'type':_0x717b27,'createdAt':new Date(),'authorId':_0x25259c,'attributes':_0x16ca86});return this['_addSuggestionMarker'](_0x717b27,_0x1b6c77,_0x25259c,_0xdda84),_0x27c4b9;}['markMultiRangeInsertion'](_0x3acf92,_0x54417d='multi',_0x2927c6={}){const _0x4f8fff=this['editor']['plugins']['get']('Users')['me'],_0x3ef43e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x54417d,'join');this['_trackingSessionId']&&(_0x2927c6['trackingSessionId']=this['_trackingSessionId']);for(const _0x588b3e of this['getSuggestions']())if(_0x588b3e['author']['id']==_0x4f8fff['id']&&'insertion'==_0x588b3e['type']&&_0x588b3e['subType']==_0x54417d&&Qt(_0x588b3e,_0x2927c6)&&(_0x3ef43e(_0x588b3e['getRanges'](),_0x3acf92)||_0x3ef43e(_0x3acf92,_0x588b3e['getRanges']()))){for(const _0x2a4bbc of _0x3acf92)_0x588b3e['addRange'](_0x2a4bbc);return _0x588b3e;}for(const {suggestion:_0x4dff2c,meta:_0x547656}of this['_findSuggestions'](_0x3acf92,'insertion')){if(!_0x547656['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x547656['containsRangeInObject'])continue;if(!Qt(_0x4dff2c,_0x2927c6))continue;let _0x1094af=!0x0;for(const _0x3453c7 of _0x4dff2c['getRanges']())for(const _0x954a7 of _0x3acf92)if(!_0x3453c7['containsRange'](_0x954a7)){_0x1094af=!0x1;break;}if(_0x1094af)return _0x4dff2c;}const _0x526d83=_0x1ddc4e(),_0x143edb=_0x4f8fff['id'],_0x164be7='insertion:'+_0x54417d,_0x1c4340=this['_setSuggestionData']({'id':_0x526d83,'type':_0x164be7,'createdAt':new Date(),'authorId':_0x143edb,'attributes':_0x2927c6});for(const _0x96222d of _0x3acf92)this['_addSuggestionMarker'](_0x164be7,_0x526d83,_0x143edb,_0x96222d,T['getMultiRangeId']());return _0x1c4340;}['markInlineFormat'](_0x55d76b,_0x4d44a5,_0xd5f6fb=null,_0x317ff6={}){if(_0xd5f6fb=_0xd5f6fb||Lt(_0x4d44a5),_0x55d76b['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x317ff6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1dcc5e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xd5f6fb,'accept');return this['forceDefaultExecution'](()=>_0x1dcc5e([_0x55d76b],_0x4d44a5,_0x317ff6)),null;}const _0x5961fb=this['editor']['plugins']['get']('Users')['me'],_0x498108=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x138367,meta:_0x4438d1}of this['_findSuggestions'](_0x55d76b,'insertion'))_0x4438d1['isOwn']&&!_0x4438d1['isInsideObject']&&_0x498108['push'](..._0x138367['getRanges']());}const _0x3f2574=function(_0x1ff404,_0x3d206d){const _0x28a804=[];for(const _0xfb043a of _0x3d206d){const _0x38ba48=_0x1ff404['getIntersection'](_0xfb043a);_0x38ba48&&_0x28a804['push'](_0x38ba48);}return _0x28a804;}(_0x55d76b,_0x498108),_0x363a43=function(_0x11edb9,_0x1f3c96){const _0x55fefc=[_0x11edb9];for(const _0x4f145b of _0x1f3c96){let _0x49723c=0x0;for(;_0x49723c<_0x55fefc['length'];){const _0x54b06e=_0x55fefc[_0x49723c]['getDifference'](_0x4f145b);_0x55fefc['splice'](_0x49723c,0x1,..._0x54b06e),_0x49723c+=_0x54b06e['length'];}}return _0x55fefc;}(_0x55d76b,_0x498108);_0x3f2574['length']&&this['_model']['change'](()=>{for(const _0x9f891 of _0x3f2574){const _0x41a290=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xd5f6fb,'accept');this['forceDefaultExecution'](()=>_0x41a290([_0x9f891],_0x4d44a5,_0x317ff6));}});for(const _0x43b467 of _0x363a43){let _0x566145=null,_0x5d4d5c=_0x43b467['start'],_0x35dc0f=_0x43b467['end'];for(const {suggestion:_0x2f3ab4,meta:_0x20e3e2}of this['_findSuggestions'](_0x43b467,'formatInline')){if(!_0x20e3e2['isOwn'])continue;if(_0x2f3ab4['subType']!=_0xd5f6fb)continue;if(!Qt(_0x2f3ab4,_0x317ff6))continue;const _0x533548=_0x2f3ab4['getFirstRange']();if(_0x533548['containsRange'](_0x43b467,!0x0))return null;_0x5d4d5c=_0x5d4d5c['isBefore'](_0x533548['start'])?_0x5d4d5c:_0x533548['start'],_0x35dc0f=_0x35dc0f['isAfter'](_0x533548['end'])?_0x35dc0f:_0x533548['end'],_0x566145?_0x533548['start']['isBefore'](_0x566145['getFirstRange']()['start'])?(_0x566145['removeMarkers'](),_0x566145=_0x2f3ab4):_0x2f3ab4['removeMarkers']():_0x566145=_0x2f3ab4;}const _0x128da9=this['_model']['createRange'](_0x5d4d5c,_0x35dc0f);if(_0x566145)this['_setSuggestionRange'](_0x566145,_0x128da9);else{const _0x665c2b=_0x1ddc4e(),_0x57f0ce=_0x5961fb['id'];this['_setSuggestionData']({'id':_0x665c2b,'type':'formatInline:'+_0xd5f6fb,'data':_0x4d44a5,'createdAt':new Date(),'authorId':_0x57f0ce,'attributes':_0x317ff6}),this['_addSuggestionMarker']('formatInline:'+_0xd5f6fb,_0x665c2b,_0x57f0ce,_0x128da9);}}return null;}['markBlockFormat'](_0x279d78,_0x4b31d8,_0x5741ee=[],_0x121e08=null,_0xacc9d4={}){_0x4b31d8['formatGroupId']||(_0x4b31d8['formatGroupId']=_0x4b31d8['commandName']),_0x4b31d8['multipleBlocks']=_0x279d78['is']('range'),_0x121e08=_0x121e08||Lt(_0x4b31d8);const _0x13d806=_0x5741ee['map'](_0x39a618=>qt(_0x39a618,this['_model'])),_0x577aaf=_0x279d78['is']('range')?_0x279d78:qt(_0x279d78,this['_model']);if(this['_trackingSessionId']&&(_0xacc9d4['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x17b5be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x121e08,'accept');return this['forceDefaultExecution'](()=>_0x17b5be([_0x577aaf],_0x4b31d8,_0xacc9d4)),null;}_0x13d806['push'](_0x577aaf);let _0x5b8143=!0x0;for(const _0x5e1a48 of _0x13d806)if(!this['_rangeIsInLocalUserInsertion'](_0x5e1a48)){_0x5b8143=!0x1;break;}if(_0x5b8143&&'always'!==this['_trackFormatChanges']){const _0x590ada=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x121e08,'accept');return this['forceDefaultExecution'](()=>_0x590ada([_0x577aaf],_0x4b31d8,_0xacc9d4)),null;}let _0x3696d7=null,_0x4d6979=_0x577aaf['start'],_0x40b5f0=_0x577aaf['end'];for(const {suggestion:_0x32a1de,meta:_0x200235}of this['_findSuggestions'](_0x577aaf,'formatBlock')){if(!_0x200235['isOwn'])continue;if(_0x200235['isNextTo']||_0x200235['containsRangeInObject']||_0x200235['isInsideObject'])continue;if(_0x32a1de['data']['formatGroupId']!=_0x4b31d8['formatGroupId'])continue;if(!Qt(_0x32a1de,_0xacc9d4))continue;const _0xafad40=_0x32a1de['getFirstRange']();if(_0x32a1de['subType']==_0x121e08){if(_0xafad40['containsRange'](_0x577aaf,!0x0))return null;_0x4d6979=_0x4d6979['isBefore'](_0xafad40['start'])?_0x4d6979:_0xafad40['start'],_0x40b5f0=_0x40b5f0['isAfter'](_0xafad40['end'])?_0x40b5f0:_0xafad40['end'],_0x3696d7?_0xafad40['start']['isBefore'](_0x3696d7['getFirstRange']()['start'])?(_0x3696d7['removeMarkers'](),_0x3696d7=_0x32a1de):_0x32a1de['removeMarkers']():_0x3696d7=_0x32a1de;}else{const _0x10e95e=_0x577aaf['getIntersection'](_0xafad40);this['_cutOutSuggestionMarker'](_0x32a1de,_0x10e95e);}}const _0x529f99=this['editor']['plugins']['get']('Users')['me'],_0x29772d=_0x1ddc4e(),_0x4cca5d=_0x529f99['id'];if(_0x3696d7)return this['_setSuggestionRange'](_0x3696d7,this['_model']['createRange'](_0x4d6979,_0x40b5f0)),_0x3696d7;{const _0x4409d7=this['_setSuggestionData']({'id':_0x29772d,'type':'formatBlock:'+_0x121e08,'data':_0x4b31d8,'createdAt':new Date(),'authorId':_0x4cca5d,'attributes':_0xacc9d4});return this['_addSuggestionMarker']('formatBlock:'+_0x121e08,_0x29772d,_0x4cca5d,this['_model']['createRange'](_0x4d6979,_0x40b5f0)),_0x4409d7;}}['markMultiRangeBlockFormat'](_0x1ad652,_0xfec364,_0x873fd0=[],_0x19464c=null,_0x41227a={}){_0xfec364['formatGroupId']||(_0xfec364['formatGroupId']=_0xfec364['commandName']);const _0x10ae11=_0x1ad652[0x0];_0xfec364['multipleBlocks']=_0x10ae11['is']('range'),_0x19464c=_0x19464c||Lt(_0xfec364);const _0x5e30f4=_0x873fd0['map'](_0x5d82c1=>qt(_0x5d82c1,this['_model'])),_0x281f76=_0x10ae11['is']('range')?_0x1ad652:_0x1ad652['map'](_0x25f577=>qt(_0x25f577,this['_model']));if(this['_trackingSessionId']&&(_0x41227a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x19e0ed=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x19464c,'accept');return this['forceDefaultExecution'](()=>_0x19e0ed(_0x281f76,_0xfec364,_0x41227a)),null;}_0x5e30f4['push'](..._0x281f76);let _0x12d1f7=!0x0;for(const _0x1f9bee of _0x5e30f4)if(!this['_rangeIsInLocalUserInsertion'](_0x1f9bee)){_0x12d1f7=!0x1;break;}if(_0x12d1f7&&'always'!==this['_trackFormatChanges']){const _0x33b048=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x19464c,'accept');return this['forceDefaultExecution'](()=>_0x33b048(_0x281f76,_0xfec364,_0x41227a)),null;}const _0x58a545=this['editor']['plugins']['get']('Users')['me'];for(const _0x4c3999 of this['getSuggestions']()){const _0x873eff=_0x4c3999['data'];if(_0x4c3999['author']['id']!=_0x58a545['id'])continue;if('formatBlock'!=_0x4c3999['type']||_0x873eff['formatGroupId']!=_0xfec364['formatGroupId'])continue;if(!Qt(_0x4c3999,_0x41227a))continue;const _0x4cec24=_0x4c3999['subType']==_0x19464c;for(let _0x5a051a=0x0;_0x5a051a<_0x281f76['length'];_0x5a051a++){const _0x54c142=_0x281f76[_0x5a051a];for(const _0x9a1d73 of _0x4c3999['getMarkers']()){const _0x3eb675=_0x9a1d73['getRange']();if(_0x54c142['isEqual'](_0x3eb675)){_0x4cec24?(_0x281f76['splice'](_0x5a051a,0x1),_0x5a051a--):_0x4c3999['removeMarker'](_0x9a1d73['name']);break;}}}}if(0x0==_0x281f76['length'])return null;const _0x2a0726=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x19464c,'join');for(const _0x14d990 of this['getSuggestions']()){const _0x11442c=_0x14d990['data'];if(_0x14d990['author']['id']==_0x58a545['id']&&('formatBlock'==_0x14d990['type']&&_0x11442c['formatGroupId']==_0xfec364['formatGroupId']&&_0x14d990['subType']==_0x19464c&&Qt(_0x14d990,_0x41227a)&&(_0x2a0726(_0x14d990['getRanges'](),_0x281f76)||_0x2a0726(_0x281f76,_0x14d990['getRanges']())))){for(const _0x1d281a of _0x281f76)_0x14d990['addRange'](_0x1d281a);return _0x14d990;}}const _0x114e9c=_0x1ddc4e(),_0x4cece3=_0x58a545['id'],_0x29c072='formatBlock:'+_0x19464c,_0x430a26=this['_setSuggestionData']({'id':_0x114e9c,'type':_0x29c072,'data':_0xfec364,'createdAt':new Date(),'authorId':_0x4cece3,'attributes':_0x41227a});for(const _0x2034e3 of _0x281f76)this['_addSuggestionMarker'](_0x29c072,_0x114e9c,_0x4cece3,_0x2034e3,T['getMultiRangeId']());return _0x430a26;}['markDeletion'](_0x33a8b7,_0x26724d=null,_0x59b2c2={}){if(_0x33a8b7['isCollapsed'])return null;const _0x38b0e4=this['editor']['plugins']['get']('Users')['me'],_0x1cfaf0=new _0x5edbdb(_0x33a8b7['start'],_0x33a8b7['end']);this['_trackingSessionId']&&(_0x59b2c2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x30f9e3,meta:_0x15f535}of this['_findSuggestions'](_0x1cfaf0,'insertion'))if(_0x15f535['isOwn']&&!_0x15f535['isNextTo']){if(_0x30f9e3['isMultiRange']){const _0x4f4d94=_0x30f9e3['getRanges']()['filter'](_0x752ba6=>'$graveyard'!=_0x752ba6['root']['rootName']);_0x4f4d94['every'](_0x4124f3=>_0x1cfaf0['containsRange'](_0x4124f3,!0x0))&&_0x30f9e3['discard']();if(_0x4f4d94['some'](_0x58df81=>_0x58df81['containsRange'](_0x1cfaf0,!0x0))){const _0x59c854=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x26724d,'accept');return this['forceDefaultExecution'](()=>_0x59c854([_0x1cfaf0],null,_0x59b2c2)),null;}}else{const _0x486983=_0x1cfaf0['getIntersection'](_0x30f9e3['getFirstRange']());null!==_0x486983&&_0x30f9e3['_onDiscard']([_0x486983],null,_0x59b2c2);}}if(_0x1cfaf0['detach'](),_0x1cfaf0['isCollapsed']||'$graveyard'==_0x1cfaf0['root']['rootName'])return null;let _0x3035ba=null,_0x18c955=_0x1cfaf0['start'],_0x247995=_0x1cfaf0['end'];const _0x2aef2d=this['_findSuggestions'](_0x1cfaf0,'deletion');for(const {suggestion:_0x783f90,meta:_0x4e10cf}of _0x2aef2d){const _0x53b874=this['_model']['createRange'](_0x18c955,_0x247995);if(_0x4e10cf['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4e10cf['containsRangeInObject']&&!_0x4e10cf['isInsideObject'])){if(_0x783f90['isMultiRange']){if(!Qt(_0x783f90,_0x59b2c2))continue;let _0x507e3d=!0x0;for(const _0x446234 of _0x783f90['getRanges']()){if(_0x446234['containsRange'](_0x53b874,!0x0))return _0x783f90;_0x53b874['containsRange'](_0x446234)||(_0x507e3d=!0x1);}_0x507e3d&&_0x783f90['discard']();}else{const _0xd59d8e=_0x783f90['getFirstRange']();if(_0xd59d8e['containsRange'](_0x53b874,!0x0))return _0x783f90;if(!Qt(_0x783f90,_0x59b2c2)){_0x53b874['containsRange'](_0xd59d8e)?_0x783f90['removeMarkers']():_0xd59d8e['containsPosition'](_0x18c955)?_0x18c955=_0xd59d8e['end']:_0xd59d8e['containsPosition'](_0x247995)&&(_0x247995=_0xd59d8e['start']);continue;}_0x18c955=_0x18c955['isBefore'](_0xd59d8e['start'])?_0x18c955:_0xd59d8e['start'],_0x247995=_0x247995['isAfter'](_0xd59d8e['end'])?_0x247995:_0xd59d8e['end'],_0x59b2c2=Object['assign']({},_0x783f90['attributes']),_0x3035ba?_0xd59d8e['start']['isBefore'](_0x3035ba['getFirstRange']()['start'])?(_0x3035ba['removeMarkers'](),_0x3035ba=_0x783f90):_0x783f90['removeMarkers']():_0x3035ba=_0x783f90;}}}if(_0x3035ba)return this['_setSuggestionRange'](_0x3035ba,this['_model']['createRange'](_0x18c955,_0x247995)),_0x3035ba;{const _0x35ee07=_0x1ddc4e(),_0x1ac9f4=this['_model']['createRange'](_0x18c955,_0x247995),_0x353d52=_0x38b0e4['id'],_0x33665c=_0x26724d?'deletion:'+_0x26724d:'deletion',_0x521ea2=this['_setSuggestionData']({'id':_0x35ee07,'type':_0x33665c,'createdAt':new Date(),'authorId':_0x353d52,'attributes':_0x59b2c2});return this['_addSuggestionMarker'](_0x33665c,_0x35ee07,_0x353d52,_0x1ac9f4),_0x521ea2;}}['markMultiRangeDeletion'](_0x2d1646,_0x855521='multi',_0x4f29ad={}){const _0x32024a=this['editor']['plugins']['get']('Users')['me'],_0x22d8aa=_0x2d1646['map'](_0x7ef27c=>new _0x5edbdb(_0x7ef27c['start'],_0x7ef27c['end'])),_0x188768=new Set();this['_trackingSessionId']&&(_0x4f29ad['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1ad533,meta:_0x3331e4}of this['_findSuggestions'](_0x22d8aa,'insertion'))_0x3331e4['isOwn']&&!_0x3331e4['isNextTo']&&_0x188768['add'](_0x1ad533);for(const _0x1ec2a6 of _0x188768)if(_0x1ec2a6['isMultiRange']){const _0x29de21=_0x1ec2a6['getRanges']();(!_0x1ec2a6['attributes']||!_0x1ec2a6['attributes']['skipNestingCheck'])&&(_0x29de21['every'](_0x596720=>_0x22d8aa['some'](_0x140385=>_0x140385['containsRange'](_0x596720,!0x0)))&&_0x1ec2a6['discard']());if(_0x22d8aa['every'](_0x25586b=>_0x29de21['some'](_0x3d91b5=>_0x3d91b5['containsRange'](_0x25586b,!0x0)))){const _0x1feaab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x855521,'accept');return this['forceDefaultExecution'](()=>_0x1feaab(_0x2d1646,null,_0x4f29ad)),null;}}else{const _0x5f2f82=_0x1ec2a6['getFirstRange']();_0x22d8aa['some'](_0x3d1a52=>_0x3d1a52['containsRange'](_0x5f2f82,!0x0))&&_0x1ec2a6['discard']();if(_0x22d8aa['every'](_0x5d7fb8=>_0x5f2f82['containsRange'](_0x5d7fb8,!0x0))){const _0x199267=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x855521,'accept');return this['forceDefaultExecution'](()=>_0x199267(_0x22d8aa,null,_0x4f29ad)),null;}}const _0x21ff95=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x855521,'join');let _0x17b0bb=null;for(const _0x5995dd of this['getSuggestions']())if(_0x5995dd['author']['id']==_0x32024a['id']&&_0x5995dd['isInContent']&&'deletion'==_0x5995dd['type']&&_0x5995dd['subType']==_0x855521&&Qt(_0x5995dd,_0x4f29ad)&&(_0x21ff95(_0x5995dd['getRanges'](),_0x22d8aa)||_0x21ff95(_0x22d8aa,_0x5995dd['getRanges']()))){if(_0x17b0bb){if(_0x5995dd['commentThread']&&_0x5995dd['commentThread']['length'])continue;for(const _0x32d0b0 of _0x5995dd['getRanges']())_0x17b0bb['isIntersectingWithRange'](_0x32d0b0)||_0x17b0bb['addRange'](_0x32d0b0);_0x5995dd['removeMarkers']();}else{_0x17b0bb=_0x5995dd;for(const _0x203fea of _0x22d8aa)_0x5995dd['isIntersectingWithRange'](_0x203fea)||_0x5995dd['addRange'](_0x203fea);}}if(_0x17b0bb)return _0x17b0bb;_0x188768['clear']();for(const {suggestion:_0x5a156b,meta:_0x4d083b}of this['_findSuggestions'](_0x22d8aa,'deletion'))_0x4d083b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4d083b['containsRangeInObject']&&!_0x4d083b['isInsideObject'])&&Qt(_0x5a156b,_0x4f29ad)&&_0x188768['add'](_0x5a156b);for(const _0x2ae384 of _0x188768){const _0x27f46a=_0x2ae384['getRanges']();if(!_0x4f29ad||!_0x4f29ad['skipNestingCheck']){if(_0x22d8aa['every'](_0x1cbaeb=>_0x27f46a['some'](_0x52eee4=>_0x52eee4['containsRange'](_0x1cbaeb,!0x0))))return _0x2ae384;}(!_0x2ae384['attributes']||!_0x2ae384['attributes']['skipNestingCheck'])&&(_0x27f46a['every'](_0x514c86=>_0x22d8aa['some'](_0x39c5dd=>_0x39c5dd['containsRange'](_0x514c86,!0x0)))&&_0x2ae384['discard']());}const _0x4e6173=_0x1ddc4e(),_0x2dcee7=_0x32024a['id'],_0x4205bc='deletion:'+_0x855521,_0x2c123a=this['_setSuggestionData']({'id':_0x4e6173,'type':_0x4205bc,'createdAt':new Date(),'authorId':_0x2dcee7,'attributes':_0x4f29ad});for(const _0x5a8f31 of _0x22d8aa)_0x5a8f31['detach'](),_0x5a8f31['isCollapsed']||'$graveyard'==_0x5a8f31['root']['rootName']||this['_addSuggestionMarker'](_0x4205bc,_0x4e6173,_0x2dcee7,_0x5a8f31,T['getMultiRangeId']());return _0x2c123a;}['markAttributeChange'](_0x4ca7f1,_0x2794be,_0x20d0b9,_0x49d3b9,_0x45cfd5){if(_0x4ca7f1['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x22a5ef=this['editor']['plugins']['get']('Users')['me']['id'],_0x1cbd26=Array['from'](this['_suggestions']['values']())['filter'](_0x77eec7=>'attribute'==_0x77eec7['type']&&_0x77eec7['data']['key']==_0x2794be&&_0x77eec7['isIntersectingWithRange'](_0x4ca7f1));if(this['_trackingSessionId']&&(_0x45cfd5['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x360945=this['_findSuggestions'](_0x4ca7f1,'insertion')['filter'](({meta:_0x8aacde})=>_0x8aacde['isOwn']&&!_0x8aacde['isInsideObject']&&!_0x8aacde['isNextTo'])['map'](({suggestion:_0x5c8ab2})=>_0x5c8ab2);_0x1cbd26['unshift'](..._0x360945);}const _0x463f36=new Map([[_0x4ca7f1,_0x20d0b9]]);for(const _0x4abc60 of _0x1cbd26){const _0x1ce484='attribute'==_0x4abc60['type']?_0x4abc60['data']['oldValue']:void 0x0,_0x523391=_0x4abc60['getFirstRange'](),_0x28bb78=Array['from'](_0x463f36['keys']())['find'](_0x398a02=>_0x398a02['isIntersecting'](_0x523391));if(!_0x28bb78)continue;const _0x2d8eb5=_0x28bb78['getDifference'](_0x523391);this['_isBlockAttribute'](_0x2794be)&&'insertion'==_0x4abc60['type']&&0x0!=_0x2d8eb5['length']||(_0x463f36['delete'](_0x28bb78),_0x2d8eb5['forEach'](_0x350153=>{_0x463f36['set'](_0x350153,_0x20d0b9);}),'insertion'!=_0x4abc60['type']&&_0x1ce484!=_0x49d3b9&&_0x463f36['set'](_0x28bb78['getIntersection'](_0x523391),_0x1ce484));}const _0x527136=[];for(const [_0x4970da,_0x2baadc]of _0x463f36){const _0x77d3a8=_0x1ddc4e(),_0x2d55b4={'key':_0x2794be,'oldValue':_0x2baadc,'newValue':_0x49d3b9};_0x2794be['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':_0x2794be});const _0x1936e0=('attribute:'+(_0x2794be+'|'+Lt({'newValue':_0x49d3b9})))['substring'](0x0,0x3c),_0xb2fd7b=this['_setSuggestionData']({'id':_0x77d3a8,'type':_0x1936e0,'data':_0x2d55b4,'createdAt':new Date(),'authorId':_0x22a5ef,'attributes':_0x45cfd5});_0x527136['push'](_0xb2fd7b),this['_addSuggestionMarker'](_0x1936e0,_0x77d3a8,_0x22a5ef,_0x4970da);}return _0x527136;}['enableDefaultAttributesIntegration'](_0x1c9c4d){this['enableCommand'](_0x1c9c4d,(_0x337b37,..._0x169900)=>{this['recordAttributeChanges'](()=>{_0x337b37(..._0x169900);});});}['registerBlockAttribute'](_0x50d302){this['_blockAttributeKeys']['add'](_0x50d302);}['registerInlineAttribute'](_0x11dd51){this['_inlineAttributeKeys']['add'](_0x11dd51);}['startTrackingSession'](_0x42fa92){return this['_trackingSessionId']=void 0x0!==_0x42fa92?_0x42fa92:_0x1ddc4e(),this['_trackingSessionId'];}['_getAttributeKey'](_0x43d121){return'attribute'==_0x43d121['type']?_0x43d121['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xe24724,_0x2d4d3e){const _0x4886a8=_0xe24724['getFirstMarker']();this['_model']['change'](_0x41b803=>{_0x41b803['updateMarker'](_0x4886a8,{'range':_0x2d4d3e});});}['_addThreadToSuggestion'](_0x538751){const _0x224bc2=_0x538751['id'],_0x224394=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x224bc2)||this['_commentsRepository']['addCommentThread']({'channelId':_0x224394,'threadId':_0x224bc2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x48b90f=this['_commentsRepository']['getCommentThread'](_0x224bc2);_0x48b90f['unbind']('isRemovable'),_0x48b90f['isRemovable']=!0x1,_0x538751['commentThread']=_0x48b90f;}['_checkSuggestionCorrectness'](_0x2f2f04,_0x401634,_0x3b11d2,_0x5291ba){if(_0x2f2f04['type']!=_0x401634||_0x2f2f04['subType']!=_0x3b11d2||_0x2f2f04['creator']['id']!=_0x5291ba)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x56041c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3c558a,_0x511df9){const _0x9cde59=_0x3c558a['getFirstRange']();if(_0x511df9['isEqual'](_0x9cde59))_0x3c558a['removeMarkers']();else{if(_0x9cde59['containsRange'](_0x511df9)){const _0x16876e=this['_model']['createPositionAt'](_0x511df9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3c558a,this['_model']['createRange'](_0x9cde59['start'],_0x16876e));const _0x9c41d=_0x1ddc4e(),_0x187acd=_0x3c558a['creator']['id'],_0xb4c364=_0x3c558a['type']+':'+_0x3c558a['subType'];this['_setSuggestionData']({'id':_0x9c41d,'type':_0xb4c364,'createdAt':new Date(),'authorId':_0x187acd,'data':_0x3c558a['data'],'attributes':_0x3c558a['attributes']});const _0x518f4c=this['_model']['createPositionAt'](_0x511df9['end']['parent'],'after'),_0x47fcba=this['_model']['createRange'](_0x518f4c,_0x9cde59['end']);this['_addSuggestionMarker'](_0xb4c364,_0x9c41d,_0x187acd,_0x47fcba);}else{if(_0x9cde59['containsPosition'](_0x511df9['start'])){const _0x20a79c=this['_model']['createPositionAt'](_0x511df9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3c558a,this['_model']['createRange'](_0x9cde59['start'],_0x20a79c));}else{const _0x1a6a55=this['_model']['createPositionAt'](_0x511df9['end']['parent'],'after');this['_setSuggestionRange'](_0x3c558a,this['_model']['createRange'](_0x1a6a55,_0x9cde59['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3450b3){for(const {suggestion:_0x3dc099,meta:_0x27fddc}of this['_findSuggestions'](_0x3450b3,'insertion')){if(!_0x27fddc['isOwn'])continue;const _0x30060b=_0x3dc099['getRanges']();for(const _0x17b000 of _0x30060b)if(!_0x3450b3['getDifference'](_0x17b000)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2bb055){const _0x2427be=this['editor']['plugins']['get']('Users')['getUser'](_0x2bb055);if(!_0x2427be)throw new _0x56041c('track-changes-user-not-found',this);return _0x2427be;}['_getExternalAuthor'](_0x36af00){const _0x22079f=this['editor']['plugins']['get']('Users'),_0x358c3a=_0x3a177d('external:'+_0x36af00),_0x2e856f=_0x22079f['getUser'](_0x358c3a);return _0x2e856f||_0x22079f['addUser']({'id':_0x358c3a,'name':_0x36af00});}['_createSuggestion'](_0x56a22f,_0x24a54a,_0x173433,_0x5d3582,_0x454821,_0x2e6157){const _0x5afffe=this['_getAuthorFromId'](_0x5d3582),_0x1f5fb9=this['_suggestionFactory']['buildSuggestion'](_0x56a22f,_0x24a54a,_0x173433,_0x5afffe,_0x454821,_0xd7afea=>{this['_updateSuggestionData'](_0x173433,{'attributes':_0xd7afea});const _0x1a906a=this['getSuggestion'](_0x173433);this['_joinWithAdjacentSuggestions'](new Set([_0x1a906a])),this['_refreshSuggestionsChain'](new Set([_0x1a906a]));},_0x2e6157);return this['listenTo'](_0x1f5fb9,'accept',()=>{this['_updateSuggestionData'](_0x173433,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1f5fb9,'discard',()=>{this['_updateSuggestionData'](_0x173433,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x173433,_0x1f5fb9),this['_suggestionState']['set'](_0x1f5fb9,'notReady'),_0x1f5fb9;}['_splitMarkerName'](_0x569ab3){const _0x5765a1=_0x569ab3['split'](':');return{'group':_0x5765a1[0x0],'type':_0x5765a1[0x1],'subType':_0x5765a1['length']>=0x5?_0x5765a1[0x2]:null,'id':_0x5765a1['length']<0x5?_0x5765a1[0x2]:_0x5765a1[0x3],'authorId':_0x5765a1['length']<0x5?_0x5765a1[0x3]:_0x5765a1[0x4],'markerCount':0x6==_0x5765a1['length']?_0x5765a1[0x5]:null};}['_breakSuggestionMarker'](_0x10e9b9,_0x13c40e,_0x3072eb){const _0x9ad2c=_0x10e9b9['getFirstRange'](),_0x39f0c3=_0x9ad2c['start'],_0x2b9298=_0x9ad2c['end'];this['_setSuggestionRange'](_0x10e9b9,this['_model']['createRange'](_0x39f0c3,_0x13c40e));const _0x59c65f=_0x1ddc4e(),_0x1689d1=_0x10e9b9['creator']['id'],_0x667126=_0x10e9b9['type']+(_0x10e9b9['subType']?':'+_0x10e9b9['subType']:'');this['_setSuggestionData']({'id':_0x59c65f,'type':_0x667126,'createdAt':new Date(),'authorId':_0x1689d1,'originalSuggestionId':_0x10e9b9['_originalSuggestionId']||_0x10e9b9['id'],'attributes':_0x10e9b9['attributes'],'data':_0x10e9b9['data']});const _0x572b85=this['_getAttributeKey'](_0x10e9b9);('formatBlock'==_0x10e9b9['type']||_0x572b85&&this['_isBlockAttribute'](_0x572b85))&&(_0x3072eb=this['_model']['createPositionBefore'](_0x3072eb['parent'])),this['_addSuggestionMarker'](_0x667126,_0x59c65f,_0x1689d1,this['_model']['createRange'](_0x3072eb,_0x2b9298));}['_findSuggestions'](_0x1de0bf,_0x2236c9=null){const _0x514400=[],_0x38759a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1de0bf)||(_0x1de0bf=[_0x1de0bf]);for(const _0x283a0a of this['getSuggestions']()){if(!_0x283a0a['isInContent'])continue;if(_0x2236c9&&_0x283a0a['type']!=_0x2236c9)continue;let _0x2a11e7=!0x1;for(const _0x1414c1 of _0x283a0a['getRanges']()){for(const _0x13f412 of _0x1de0bf){const _0x4929f3=_0x13f412['start']['isEqual'](_0x1414c1['end'])||_0x13f412['end']['isEqual'](_0x1414c1['start']);if(_0x4929f3||_0x13f412['getIntersection'](_0x1414c1)){const _0x402d01=_0x13f412['containsRange'](_0x1414c1)&&Ft(this['_model']['schema'],_0x1414c1['start'],_0x13f412),_0x56bac2=_0x1414c1['containsRange'](_0x13f412)&&Ft(this['_model']['schema'],_0x13f412['start'],_0x1414c1);_0x514400['push']({'suggestion':_0x283a0a,'meta':{'isOwn':_0x38759a==_0x283a0a['author'],'isNextTo':_0x4929f3,'isInsideObject':_0x402d01,'containsRangeInObject':_0x56bac2}}),_0x2a11e7=!0x0;break;}}if(_0x2a11e7)break;}}return _0x514400;}['_addSuggestionMarker'](_0x72a9f2,_0x2d2bb5,_0x4d48f2,_0x23194e,_0x2b76d9){this['_model']['change'](_0x4bc8f0=>{let _0x51b087='suggestion:'+_0x72a9f2+':'+_0x2d2bb5+':'+_0x4d48f2;_0x2b76d9&&(_0x51b087=_0x51b087+':'+_0x2b76d9),_0x4bc8f0['addMarker'](_0x51b087,{'range':_0x23194e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x43ee43){const _0x1ecf39=_0x43ee43['previous'],_0x9efec1=_0x43ee43['next'];_0x43ee43['previous']=null,_0x43ee43['next']=null,null!=_0x1ecf39&&_0x1ecf39['next']==_0x43ee43&&(_0x1ecf39['next']=_0x9efec1),null!=_0x9efec1&&_0x9efec1['previous']==_0x43ee43&&(_0x9efec1['previous']=_0x1ecf39),'ready'==this['_suggestionState']['get'](_0x43ee43)&&(this['_suggestionState']['set'](_0x43ee43,'removed'),this['fire']('suggestionUnloaded',_0x43ee43,_0x1ecf39,_0x9efec1));}['_setSuggestionData'](_0x5b010a){const _0x436b84=_0x5b010a['id'],_0x8b3cd0=this['addSuggestionData'](_0x5b010a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5787c6=this['editor']['plugins']['get']('PendingActions'),_0x3ff329=_0x8b3cd0['hasComments'],_0x1b9d77=_0x8b3cd0['subType']?_0x8b3cd0['type']+':'+_0x8b3cd0['subType']:_0x8b3cd0['type'],_0xdce78c=this['editor']['locale'],_0x46a4f8=_0x5787c6['add'](o(_0xdce78c,'PENDING_ACTION_SUGGESTION')),_0x3fdf5a={'id':_0x436b84,'type':_0x1b9d77,'hasComments':_0x3ff329,'data':_0x5b010a['data']||null,'originalSuggestionId':_0x5b010a['originalSuggestionId']||null,'attributes':_0x8b3cd0['attributes']};this['_adapter']['addSuggestion'](_0x3fdf5a)['then'](_0x122d72=>{_0x8b3cd0['_saved']=!0x0,_0x5787c6['remove'](_0x46a4f8),_0x122d72&&_0x122d72['createdAt']&&(this['_suggestions']['get'](_0x436b84)['createdAt']=_0x122d72['createdAt']);})['catch'](_0xb04ee9=>{throw _0x2f9518('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x8b3cd0['discard']();}),_0x8b3cd0['stopListening'](),this['_suggestions']['delete'](_0x8b3cd0['id']),this['_suggestionState']['delete'](_0x8b3cd0),_0xb04ee9;});}return _0x8b3cd0;}['_isBlockAttribute'](_0x2c61df){return this['_blockAttributeKeys']['has'](_0x2c61df);}['_updateSuggestionData'](_0x564576,_0x58743a){const _0x5f118f=this['editor']['plugins']['get']('PendingActions'),_0x1f39d2=this['getSuggestion'](_0x564576);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1f39d2['_saved']){const _0x4dbdc4=_0x5f118f['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x564576,_0x58743a)['then'](()=>{_0x5f118f['remove'](_0x4dbdc4);});}else _0x1f39d2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x564576,_0x58743a);});}}['_getSuggestionData'](_0x53968e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x56041c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x53968e);}['_handleNewSuggestionMarker'](_0x175145){const {id:_0xff7aad,type:_0x1a2554,subType:_0xa5f594,authorId:_0x2845d1}=this['_splitMarkerName'](_0x175145),_0x56ea81=this['_suggestions']['get'](_0xff7aad)||this['_createSuggestion'](_0x1a2554,_0xa5f594,_0xff7aad,_0x2845d1,{});switch(this['_checkSuggestionCorrectness'](_0x56ea81,_0x1a2554,_0xa5f594,_0x2845d1),this['_suggestionState']['get'](_0x56ea81)){case'notReady':this['_getSuggestionData'](_0xff7aad)['then'](_0x38ffbb=>{let _0x32b72a=Promise['resolve']();_0x38ffbb['hasComments']&&(_0x32b72a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xff7aad})),_0x32b72a['then'](()=>{this['addSuggestionData'](_0x38ffbb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x56ea81,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xff7aad,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x56ea81,'ready'),this['fire']('suggestionLoaded',_0x56ea81);break;case'ready':this['fire']('suggestionChanged',_0x56ea81);}return _0x56ea81['addMarkerName'](_0x175145),_0x56ea81;}['_refreshSuggestionsChain'](_0x32a8dd){const _0x5e76e6=Array['from'](_0x32a8dd),_0x19fffb=_0x5e76e6['filter'](_0x1201ff=>'attribute'==_0x1201ff['type']);this['_refreshAttributeSuggestionsChain'](_0x19fffb);const _0x38bcd6=_0x5e76e6['filter'](_0x314677=>!_0x314677['isMultiRange']&&'attribute'!=_0x314677['type']),_0x510b3d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f1ec8=>!_0x4f1ec8['isMultiRange']&&'attribute'!=_0x4f1ec8['type']),_0x5394f4=_0x510b3d['filter'](_0x4d2d4b=>!_0x32a8dd['has'](_0x4d2d4b)),_0x4ddffb=new Map(_0x510b3d['map'](_0x338471=>[_0x338471,this['_suggestionFactory']['getSuggestionCallback'](_0x338471['type'],_0x338471['subType'],'chain')])),_0x322468=new Map(_0x510b3d['map'](_0x27f08d=>[_0x27f08d,_0x27f08d['getFirstRange']()])),_0x2cd210=new Set(),_0x332025=new Set();for(let _0x39187a=0x0;_0x39187a<_0x38bcd6['length'];_0x39187a++)_0x3d848d(_0x38bcd6[_0x39187a],_0x38bcd6,_0x39187a+0x1);for(let _0x53c186=0x0;_0x53c186<_0x38bcd6['length'];_0x53c186++)_0x3d848d(_0x38bcd6[_0x53c186],_0x5394f4,0x0);const _0x88ed9=new Set();for(let _0xdbfe53=0x0;_0xdbfe53<_0x38bcd6['length'];_0xdbfe53++){const _0x1dd02a=_0x38bcd6[_0xdbfe53];!_0x332025['has'](_0x1dd02a)&&_0x1dd02a['previous']&&(_0x88ed9['add'](_0x1dd02a['previous']),_0x1dd02a['previous']['next']===_0x1dd02a&&(_0x1dd02a['previous']['next']=null),_0x1dd02a['previous']=null),!_0x2cd210['has'](_0x1dd02a)&&_0x1dd02a['next']&&(_0x88ed9['add'](_0x1dd02a['next']),_0x1dd02a['next']['previous']===_0x1dd02a&&(_0x1dd02a['next']['previous']=null),_0x1dd02a['next']=null);}function _0x3d848d(_0x27769a,_0x3ffd12,_0x347009){for(let _0x2ddb26=_0x347009;_0x2ddb26<_0x3ffd12['length'];_0x2ddb26++){const _0x54b8c9=_0x461190(_0x27769a,_0x3ffd12[_0x2ddb26]);_0x54b8c9&&(_0x54b8c9[0x0]['next']=_0x54b8c9[0x1],_0x54b8c9[0x1]['previous']=_0x54b8c9[0x0],_0x2cd210['add'](_0x54b8c9[0x0]),_0x332025['add'](_0x54b8c9[0x1]));}}function _0x461190(_0x52e00d,_0x3b3f6d){if(_0x52e00d['author']['id']!==_0x3b3f6d['author']['id'])return null;const _0x2c55a8=_0x4ddffb['get'](_0x52e00d)(_0x52e00d,_0x3b3f6d,_0x322468['get'](_0x52e00d),_0x322468['get'](_0x3b3f6d));if(!_0x2c55a8)return null;return _0x4ddffb['get'](_0x3b3f6d)(_0x52e00d,_0x3b3f6d,_0x322468['get'](_0x52e00d),_0x322468['get'](_0x3b3f6d))?_0x2c55a8[0x1]['commentThread']&&_0x2c55a8[0x1]['commentThread']['length']?null:_0x2c55a8:null;}_0x88ed9['size']&&this['_refreshSuggestionsChain'](_0x88ed9);}['_refreshAttributeSuggestionsChain'](_0x21299a){if(0x0==_0x21299a['length'])return;const _0x1949a6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4806e7=>'attribute'==_0x4806e7['type']&&_0x4806e7['_isDataLoaded']),_0xc25d51=[],_0x2119c2=new Map();for(const _0x45932f of _0x1949a6){const _0x579e6=_0x3a177d(_0x45932f['attributes']);_0x2119c2['has'](_0x579e6)||(_0x2119c2['set'](_0x579e6,_0xc25d51['length']),_0xc25d51['push']([]));const _0x29bb90=_0x2119c2['get'](_0x579e6);_0xc25d51[_0x29bb90]['push'](_0x45932f);}!(function(){_0xc25d51['sort']((_0x369f54,_0x4afa7a)=>{const _0x5474c8=_0x369f54[0x0]['createdAt'],_0x1149f8=_0x4afa7a[0x0]['createdAt'];return _0x5474c8==_0x1149f8?_0x369f54[0x0]['attributes']['groupId']<_0x4afa7a[0x0]['attributes']['groupId']?-0x1:0x1:_0x5474c8<_0x1149f8?-0x1:0x1;});for(const _0x505736 of _0xc25d51)_0x505736['sort']((_0xb74c54,_0xdf2146)=>_0xb74c54['id']<_0xdf2146['id']?-0x1:0x1);}());for(let _0x11ab56=0x0;_0x11ab56<_0xc25d51['length'];_0x11ab56++){if(0x0==_0xc25d51[_0x11ab56]['length'])continue;const _0x5bddcf=[];for(let _0x24090a=_0x11ab56+0x1;_0x24090a<_0xc25d51['length'];_0x24090a++)0x0!=_0xc25d51[_0x24090a]['length']&&_0x1f44ea(_0xc25d51[_0x11ab56],_0xc25d51[_0x24090a])&&_0x5bddcf['push'](_0x24090a);for(const _0x4b9e7c of _0x5bddcf)_0xc25d51[_0x11ab56]=_0xc25d51[_0x11ab56]['concat'](_0xc25d51[_0x4b9e7c]),_0xc25d51[_0x4b9e7c]=[];}for(const _0x511b21 of _0xc25d51)for(let _0x817b14=0x0;_0x817b14<_0x511b21['length'];_0x817b14++){const _0x15158b=_0x511b21[_0x817b14+0x1]||null;_0x511b21[_0x817b14]['next']!==_0x15158b&&(_0x511b21[_0x817b14]['next']=_0x15158b);}for(const _0x4695e8 of _0xc25d51)for(let _0xd68077=0x0;_0xd68077<_0x4695e8['length'];_0xd68077++){const _0xce8cdf=_0x4695e8[_0xd68077-0x1]||null;_0x4695e8[_0xd68077]['previous']!==_0xce8cdf&&(_0x4695e8[_0xd68077]['previous']=_0xce8cdf);}function _0x1f44ea(_0x429e1f,_0x34407a){if(_0x429e1f[0x0]['attributes']['groupId']!==_0x34407a[0x0]['attributes']['groupId']&&_0x429e1f[0x0]['author']!==_0x34407a[0x0]['author'])return!0x1;if(!function(_0xba94ef,_0x140ba6){if(!_0xba94ef['hasComments']&&!_0x140ba6['hasComments'])return!0x0;if(_0xba94ef['hasComments']&&_0x140ba6['hasComments'])return!0x1;if(_0xba94ef['hasComments']&&_0x140ba6['createdAt']<_0xba94ef['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x140ba6['hasComments']&&_0xba94ef['createdAt']<_0x140ba6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x429e1f[0x0],_0x34407a[0x0]))return!0x1;const _0x3078ad=Ut(_0x429e1f[0x0]['attributes'],['groupId','trackingSessionId']),_0x53644b=Ut(_0x34407a[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x18e44d(_0x3078ad,_0x53644b))return!0x1;if(_0x429e1f[0x0]['attributes']['groupId']==_0x34407a[0x0]['attributes']['groupId'])return!0x0;if(_0x429e1f[0x0]['attributes']['trackingSessionId']!==_0x34407a[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x429e1f['every'](_0x539951=>_0x34407a['some'](_0x5cbc28=>_0x539951['getFirstRange']()['isEqual'](_0x5cbc28['getFirstRange']())))&&_0x34407a['every'](_0x40f43d=>_0x429e1f['some'](_0x1cf421=>_0x40f43d['getFirstRange']()['isEqual'](_0x1cf421['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x13c454){const _0x21622c=Array['from'](_0x13c454),_0x2b6693=this['getSuggestions']({'skipNotAttached':!0x0}),_0x38ce57=_0x2b6693['filter'](_0x3930ec=>!_0x13c454['has'](_0x3930ec)),_0x2be218=new Map(_0x21622c['map'](_0x41c60a=>[_0x41c60a,this['_suggestionFactory']['getSuggestionCallback'](_0x41c60a['type'],_0x41c60a['subType'],'join')])),_0x526410=new Map(_0x2b6693['map'](_0x366442=>[_0x366442,_0x366442['getRanges']()]));for(let _0x24040f=0x0;_0x24040f<_0x21622c['length'];_0x24040f++){if(_0x46b538(this,_0x21622c[_0x24040f],_0x21622c,_0x24040f+0x1))return!0x0;}for(let _0x551d4e=0x0;_0x551d4e<_0x21622c['length'];_0x551d4e++){if(_0x46b538(this,_0x21622c[_0x551d4e],_0x38ce57,0x0))return!0x0;}return!0x1;function _0x46b538(_0x7f31f7,_0x4faf6b,_0x2eb0bb,_0x3ac2ec){for(let _0x22b314=_0x3ac2ec;_0x22b314<_0x2eb0bb['length'];_0x22b314++){const _0x4d64d5=_0x2eb0bb[_0x22b314];if(_0x4d64d5['type']!==_0x4faf6b['type']||_0x4d64d5['author']['id']!==_0x4faf6b['author']['id']||_0x4d64d5['subType']!==_0x4faf6b['subType'])continue;if(!Wt(_0x4faf6b,_0x4d64d5))continue;if('attribute'==_0x4faf6b['type']&&_0x4faf6b['data']['oldValue']!=_0x4d64d5['data']['oldValue'])continue;if('attribute'==_0x4faf6b['type']&&_0x7f31f7['_isBlockAttribute'](_0x4faf6b['data']['key']))continue;if('formatBlock'==_0x4faf6b['type']){const _0x295fdc=_0x7f31f7['editor']['model'],_0x5a2067=_0x4faf6b['getContainedElement']();if(_0x5a2067&&(_0x295fdc['schema']['isObject'](_0x5a2067)||_0x295fdc['schema']['isLimit'](_0x5a2067)))continue;}const _0x264c58=_0x2be218['get'](_0x4faf6b),_0x288aa6=_0x526410['get'](_0x4faf6b),_0x363ea6=_0x526410['get'](_0x4d64d5),_0x3c1e79=_0x4faf6b['commentThread']&&_0x4faf6b['commentThread']['length'],_0x2727d4=_0x4d64d5['commentThread']&&_0x4d64d5['commentThread']['length'];if(!_0x3c1e79&&_0x264c58(_0x363ea6,_0x288aa6))return _0x7f31f7['_joinSuggestions'](_0x4d64d5,_0x4faf6b),_0x526410['delete'](_0x4faf6b),!0x0;if(!_0x2727d4&&_0x264c58(_0x288aa6,_0x363ea6))return _0x7f31f7['_joinSuggestions'](_0x4faf6b,_0x4d64d5),_0x526410['delete'](_0x4d64d5),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1bf0ad,_0x34add3){if(_0x1bf0ad['isMultiRange']){for(const _0x57d6c4 of _0x34add3['getRanges']())_0x1bf0ad['addRange'](_0x57d6c4);}else{const _0x3b9c8b=_0x34add3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1bf0ad,this['_model']['createRange'](_0x1bf0ad['getFirstRange']()['start'],_0x3b9c8b));}_0x34add3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x43a307,_0x177a32,_0x41c6eb){const _0x19c811=_0x43a307['startsWith']('format')||_0x43a307['startsWith']('attribute')?'FORMATTING':_0x43a307['toUpperCase']();return o(this['editor']['locale'],_0x177a32+'_'+_0x19c811+'_SUGGESTION_ANNOUNCEMENT',_0x41c6eb);}['_initAriaMarkerChangeAnnouncements'](){const _0x457fec=this['editor'];if(!_0x457fec['ui'])return;const {ariaLiveAnnouncer:_0x963e49}=_0x457fec['ui'];_0x225543(this['_model'],({left:_0x495945,entered:_0x4021f6})=>{for(const _0x34e7cc of _0x495945){const {group:_0x497664,type:_0x1d1447}=this['_splitMarkerName'](_0x34e7cc['name']);if('suggestion'===_0x497664){_0x963e49['announce'](this['_getMarkerAnnouncementText'](_0x1d1447,'LEAVE'));break;}}for(const _0x95ae5c of _0x4021f6){const {group:_0x24cd38,type:_0x1cd3d8}=this['_splitMarkerName'](_0x95ae5c['name']);if('suggestion'===_0x24cd38){_0x963e49['announce'](this['_getMarkerAnnouncementText'](_0x1cd3d8,'ENTER',_0x1b1eca(_0x42da23)));break;}}});}['_processAttributeChanges'](_0x2e9d1c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1b7a1e=this['editor'],_0x2d3e33=_0x1b7a1e['model']['document']['differ']['getChanges']();if(0x0==_0x2d3e33['length'])return!0x1;const _0x4342d6=[],_0x35c9de=_0x2d3e33['filter'](_0x465261=>'attribute'==_0x465261['type']),_0x3637c0=_0x2d3e33['filter'](_0x23a48a=>'insert'==_0x23a48a['type']&&'$text'!=_0x23a48a['name']),_0x4dca16=_0x2d3e33['filter'](_0x3a66af=>'remove'==_0x3a66af['type']&&'$text'!=_0x3a66af['name']);for(const _0x540eaf of _0x35c9de)_0x4342d6['push']({'key':_0x540eaf['attributeKey'],'newValue':_0x540eaf['attributeNewValue'],'oldValue':_0x540eaf['attributeOldValue'],'range':Ht(_0x540eaf['range'],_0x1b7a1e['model'])});for(const _0x43b119 of _0x3637c0){const _0x12b4cd=_0x4dca16['find'](_0x598267=>_0x598267['position']['isEqual'](_0x43b119['position']));_0x12b4cd&&_0x4342d6['push']({'key':m,'newValue':_0x43b119['name'],'oldValue':_0x12b4cd['name'],'range':_0x1b7a1e['model']['createRangeOn'](_0x43b119['position']['nodeAfter'])});}return 0x0!=_0x4342d6['length']&&this['_reduceExistingSuggestions'](_0x2e9d1c,_0x4342d6);}['_processAttributeSuggestions'](_0x299cae){let _0x391b6d=!0x1;const _0x3f2a67=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x59f241=>_0x59f241['data']['newRange']&&_0x59f241['name']['startsWith']('suggestion:attribute:'));for(const _0x2aeed8 of _0x3f2a67){const {subType:_0x354d5a,id:_0x456ff3}=this['_splitMarkerName'](_0x2aeed8['name']),_0x511462=_0x354d5a['split']('|')[0x0];for(const _0x2367f1 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2367f1['id']!=_0x456ff3&&'attribute'==_0x2367f1['type']&&_0x2367f1['data']&&_0x2367f1['data']['key']==_0x511462&&_0x2367f1['getFirstRange']()['isIntersecting'](_0x2aeed8['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2367f1,_0x2aeed8['data']['newRange'],_0x299cae),_0x391b6d=!0x0);}return _0x391b6d;}['recordAttributeChanges'](_0xe66b39){this['_recordAttributeSuggestions']=!0x0,_0xe66b39();}['_isRegisteredAttribute'](_0x247f90){const _0x38a082=this['_isBlockAttribute'](_0x247f90),_0x5441c6=this['_inlineAttributeKeys']['has'](_0x247f90);return _0x38a082||_0x5441c6;}['_reduceExistingSuggestions'](_0x137d80,_0x649deb){if(0x0==_0x649deb['length'])return!0x1;let _0x5bbac6=!0x1;for(const _0x59d6af of _0x649deb){const _0x3abb1=this['_findSuggestions'](_0x59d6af['range'],'attribute')['filter'](_0x31117a=>!_0x31117a['meta']['isNextTo'])['map'](_0x12ce6b=>_0x12ce6b['suggestion']),_0x3b827e=_0x3a177d({'newValue':_0x59d6af['newValue']});_0x3abb1['filter'](_0x374323=>{const [_0x3a20bd,_0x41708d]=_0x374323['subType']['split']('|');return _0x3a20bd==_0x59d6af['key']&&_0x41708d!=_0x3b827e;})['forEach'](_0x288edd=>{this['_reduceSuggestionAttributeRange'](_0x288edd,_0x59d6af['range'],_0x137d80),_0x5bbac6=!0x0;});}return _0x5bbac6;}['_reduceSuggestionAttributeRange'](_0x905ba,_0x770677,_0x116b3d){const _0x11200a=_0x905ba['getFirstRange']()['getDifference'](_0x770677);0x0!==_0x11200a['length']?0x1!==_0x11200a['length']?this['_breakSuggestionMarker'](_0x905ba,_0x770677['start'],_0x770677['end']):this['_setSuggestionRange'](_0x905ba,_0x11200a[0x0]):_0x116b3d['removeMarker'](_0x905ba['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x157cc3){this['_editor']=_0x157cc3,this['_model']=_0x157cc3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x241df4,_0x25ed1b,_0x26473d,_0x1737b8,_0xe27204,_0x14d994,_0x3cd9c1){return new T(this['_model'],{'type':_0x241df4,'subType':_0x25ed1b,'id':_0x26473d,'originalSuggestionId':_0x3cd9c1,'author':_0x1737b8,'creator':_0x1737b8,'attributes':_0xe27204,'onAttributesChange':_0x14d994,'onAccept':(..._0x2283f3)=>this['getSuggestionCallback'](_0x241df4,_0x25ed1b,'accept')(..._0x2283f3),'onDiscard':(..._0x55596b)=>this['getSuggestionCallback'](_0x241df4,_0x25ed1b,'discard')(..._0x55596b)});}['registerCustomCallback'](_0x17d1ec,_0x4b8f6b,_0x1483ad,_0x691fb2){const _0x3937d8=_0x17d1ec+':'+_0x4b8f6b+':'+_0x1483ad;this['_customCallbacks']['set'](_0x3937d8,_0x691fb2);}['getSuggestionCallback'](_0x4a0e72,_0x6d32db,_0x3d9a16){const _0x3290e8=_0x4a0e72+':'+_0x6d32db+':'+_0x3d9a16;return this['_customCallbacks']['get'](_0x3290e8)||this['_defaultCallbacks']['get'](_0x4a0e72+':'+_0x3d9a16);}['_registerDefaultCallbacks'](){const _0x34c7e5=()=>!0x1,_0x28c7d4=_0x4c01e0=>{_0x4c01e0['sort']((_0x56961e,_0x2ed58c)=>_0x56961e['start']['isBefore'](_0x2ed58c['start'])?0x1:-0x1),this['_model']['change'](_0x1a611a=>{for(const _0x120b65 of _0x4c01e0){let _0x2c6567;_0x2c6567=_0x120b65['end']['isAtEnd']&&_0x120b65['end']['parent']==_0x120b65['start']['nodeAfter']?_0x1a611a['createSelection'](_0x120b65['start']['nodeAfter'],'on'):_0x1a611a['createSelection'](_0x120b65),this['_model']['deleteContent'](_0x2c6567,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x89fcd0=(_0xfa7ec1,_0x583452)=>{_0x583452&&this['_model']['change'](_0x46530a=>{const {commandName:_0xa6ebf5,commandParams:_0x1c3daf=[]}=_0x583452,_0x156f8c=_0xfa7ec1['map'](_0x29bde5=>(Pt(_0x29bde5)&&(_0x29bde5=this['_model']['createRange'](_0x29bde5['end'])),_0x29bde5))['filter'](_0x5885e5=>'$graveyard'!==_0x5885e5['root']['rootName']);if(_0x156f8c['length']<0x1)return;const _0x251912=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1d866c=>_0x5edbdb['fromRange'](_0x1d866c));_0x46530a['setSelection'](_0x156f8c);for(const _0x2d60e0 of this['_editor']['commands']['commands']())_0x2d60e0['refresh']();_0x1c3daf['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xa6ebf5,..._0x1c3daf);const _0x3870cf=_0x251912['filter'](_0x3874d7=>'$graveyard'!=_0x3874d7['root']['rootName']);_0x3870cf['length']>0x0&&_0x46530a['setSelection'](_0x3870cf);for(const _0x2abc31 of _0x251912)_0x2abc31['detach']();});},_0x5aa6f2=(_0x55964f,_0xe31e3)=>0x1==_0x55964f['length']&&0x1==_0xe31e3['length']&&_0x55964f[0x0]['end']['isEqual'](_0xe31e3[0x0]['start']),_0x5d319e=(_0x254151,_0x1c7536,_0x2d1781,_0x5208d3)=>zt(_0x254151,_0x1c7536,_0x2d1781,_0x5208d3)?[_0x254151,_0x1c7536]:zt(_0x1c7536,_0x254151,_0x5208d3,_0x2d1781)?[_0x1c7536,_0x254151]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x34c7e5),this['_defaultCallbacks']['set']('insertion:discard',_0x28c7d4),this['_defaultCallbacks']['set']('insertion:join',_0x5aa6f2),this['_defaultCallbacks']['set']('insertion:chain',_0x5d319e),this['_defaultCallbacks']['set']('deletion:accept',_0x28c7d4),this['_defaultCallbacks']['set']('deletion:discard',_0x34c7e5),this['_defaultCallbacks']['set']('deletion:join',_0x5aa6f2),this['_defaultCallbacks']['set']('deletion:chain',_0x5d319e),this['_defaultCallbacks']['set']('formatInline:accept',_0x89fcd0),this['_defaultCallbacks']['set']('formatInline:discard',_0x34c7e5),this['_defaultCallbacks']['set']('formatInline:join',_0x5aa6f2),this['_defaultCallbacks']['set']('formatInline:chain',_0x34c7e5),this['_defaultCallbacks']['set']('formatBlock:accept',_0x89fcd0),this['_defaultCallbacks']['set']('formatBlock:discard',_0x34c7e5),this['_defaultCallbacks']['set']('formatBlock:join',_0x5aa6f2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x34c7e5),this['_defaultCallbacks']['set']('attribute:accept',_0x34c7e5),this['_defaultCallbacks']['set']('attribute:discard',(_0x8d90b5,_0x1fff13)=>{if(!_0x1fff13)return;const _0x27e08e=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x8cf2c6=>{if(_0x1fff13['key']==m)for(const _0xf9281a of _0x8d90b5){const _0x3dc0eb=_0xf9281a['start']['nodeAfter'],_0x42aad5=_0x1fff13['oldValue'];_0x8cf2c6['rename'](_0x3dc0eb,_0x42aad5);}else{if(_0x27e08e['_isBlockAttribute'](_0x1fff13['key'])){for(const _0x3a875e of _0x8d90b5)void 0x0!==_0x1fff13['oldValue']?_0x8cf2c6['setAttribute'](_0x1fff13['key'],_0x1fff13['oldValue'],_0x3a875e['start']['nodeAfter']):_0x8cf2c6['removeAttribute'](_0x1fff13['key'],_0x3a875e['start']['nodeAfter']);}else{for(const _0x3282e7 of _0x8d90b5)_0x1fff13['oldValue']?_0x8cf2c6['setAttribute'](_0x1fff13['key'],_0x1fff13['oldValue'],_0x3282e7):_0x8cf2c6['removeAttribute'](_0x1fff13['key'],_0x3282e7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5aa6f2);}}function Ft(_0x225de8,_0x11baed,_0x3fdcb6){for(const _0x47cd48 of _0x11baed['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x47cd48['root']==_0x47cd48)return!0x1;if(!_0x3fdcb6['containsItem'](_0x47cd48))return!0x1;if(_0x225de8['isObject'](_0x47cd48)||_0x225de8['isLimit'](_0x47cd48))return!0x0;}return!0x1;}function Pt(_0x86f666){return _0x86f666['end']['parent']==_0x86f666['start']['nodeAfter']&&_0x86f666['end']['isAtStart'];}function Gt(_0x13e56d,_0x1b71dd,_0x58727c,_0x2d9822){const _0x57d0dc=_0x4b9183=>!_0x4b9183['item']['is']('$textProxy')&&!_0x2d9822['isObject'](_0x4b9183['item']),_0x553879=_0x13e56d['start']['getLastMatchingPosition'](_0x57d0dc),_0x50e1cc=_0x13e56d['end']['getLastMatchingPosition'](_0x57d0dc,{'direction':'backward'});return(!_0x13e56d['start']['isEqual'](_0x553879)||!_0x13e56d['end']['isEqual'](_0x50e1cc))&&(_0x553879['isBefore'](_0x50e1cc)?_0x58727c['updateMarker'](_0x1b71dd,{'range':_0x58727c['createRange'](_0x553879,_0x50e1cc)}):_0x58727c['removeMarker'](_0x1b71dd),!0x0);}function Lt(_0x4e79e2){return _0x3a177d(_0x4e79e2);}function Jt(_0x3f199c){const _0x477cd5=_0x3f199c['start']['nodeAfter'];return _0x477cd5&&_0x477cd5['is']('element');}function Kt(_0x4e7f66){return!Pt(_0x4e7f66)&&!function(_0x12da59){return _0x12da59['start']['parent']==_0x12da59['end']['nodeBefore']&&_0x12da59['start']['isAtEnd'];}(_0x4e7f66);}function Ht(_0x1c75ce,_0x4ff484){return null==_0x1c75ce['end']['nodeBefore']&&_0x1c75ce['end']['parent']==_0x1c75ce['start']['nodeAfter']?qt(_0x1c75ce['start']['nodeAfter'],_0x4ff484):_0x1c75ce;}function qt(_0x2b1c2a,_0x41cb93){const _0x17413e=_0x41cb93['schema']['isObject'](_0x2b1c2a)||_0x41cb93['schema']['isSelectable'](_0x2b1c2a);return _0x41cb93['createRange'](_0x41cb93['createPositionAt'](_0x2b1c2a,'before'),_0x17413e?_0x41cb93['createPositionAfter'](_0x2b1c2a):_0x41cb93['createPositionAt'](_0x2b1c2a,'end'));}function zt(_0xad9766,_0x359bd6,_0x32aed2,_0x50619b){return!!Wt(_0xad9766,_0x359bd6)&&_0x32aed2['end']['isEqual'](_0x50619b['start']);}function Wt(_0x43ecfc,_0x30dcc5){if(!_0x43ecfc['_isDataLoaded']||!_0x30dcc5['_isDataLoaded'])return!0x1;const _0x5f0fd1=new Set(Object['keys'](_0x43ecfc['attributes'])),_0x283f52=new Set(Object['keys'](_0x30dcc5['attributes']));if(_0x5f0fd1['delete']('groupId'),_0x283f52['delete']('groupId'),0x0==_0x5f0fd1['size']&&0x0==_0x283f52['size'])return!0x0;if(_0x5f0fd1['size']!=_0x283f52['size'])return!0x1;const _0x50c2d9={..._0x43ecfc['attributes']},_0x11b027={..._0x30dcc5['attributes']};return delete _0x50c2d9['groupId'],delete _0x11b027['groupId'],JSON['stringify'](_0x50c2d9)==JSON['stringify'](_0x11b027);}function Qt(_0x4ee9bf,_0x47f39f){const _0x1d515a=Xt(_0x4ee9bf['attributes']),_0x12645c=Xt(_0x47f39f);if(!_0x4ee9bf['_isDataLoaded'])return!0x1;for(const _0x44c4bc of Object['keys'](_0x12645c))if(!_0x18e44d(_0x1d515a[_0x44c4bc],_0x12645c[_0x44c4bc]))return!0x1;return!0x0;}function Xt(_0x279e9a){const _0x418aa1=Object['assign']({},_0x279e9a);return delete _0x418aa1['skipNestingCheck'],delete _0x418aa1['tablePasteChainId'],_0x418aa1;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x556f35(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x24216c,_0x2dc786,_0x18a270,_0x154677){super(),this['model']=_0x2dc786,this['view']=_0x18a270,this['commentThreadController']=_0x154677,this['_editor']=_0x24216c,this['_acceptCommand']=_0x24216c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x24216c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x46bb1c,_0x8cd1dc)=>_0x46bb1c||_0x8cd1dc),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x15f5a2=>_0x15f5a2&&this['_editor']['model']['canEditAt'](_0x2dc786['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x8e25a1=>_0x8e25a1&&this['_editor']['model']['canEditAt'](_0x2dc786['getRanges']())),this['_pendingAction']=null,_0x18a270['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x18a270,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x18a270,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x18a270,'change:isDirty',()=>{_0x18a270['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 _0x37a49e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x37a49e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ti extends _0x58c18a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x18e88f,_0x26f417,_0x41bcdf,_0x162831){super(_0x18e88f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x452c4c(_0x18e88f,o(_0x18e88f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x26f417['authoredAt']),this['bind']('authoredAt')['to'](_0x26f417),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',_0x26f417,'authoredAt',this,'descriptionParts',(_0x1c9eb6,_0x40d0de,_0x344c6c)=>{const _0x50d018=_0x344c6c['map'](_0x113400=>ls(_0x113400['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1c9eb6-0x1,_0x26f417['author']['name'],_0x40d0de?_0x162831['formatDateTime'](_0x40d0de):'',new DOMParser()['parseFromString'](_0x50d018,'text/html')['body']['textContent']]);}),this['focusables']=new _0x34386b(),this['focusTracker']=new _0x12f099(),this['keystrokes']=new _0x4f58c8(),this['focusCycler']=new _0x516fc9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3a4f04=>_0x3a4f04['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x26f417,this['_localUser']=_0x41bcdf,this['_config']=_0x162831,_0x162831['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x24f08c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xcec075}=this['_config'];this['commentsListView']=new _0xcec075(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',_0x2fefa0=>_0x2fefa0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2c1f75,_0xc93fe7)=>_0x2c1f75||!!_0xc93fe7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xc50220}=this['_config'],_0x1bdad7=new _0xc50220(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5329e6=_0x1bdad7['commentInputView'];return _0x1bdad7['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5329e6,'value',(_0x32317d,_0x116719,_0x273e17)=>!!_0x273e17||_0x32317d&&!_0x116719),_0x5329e6['on']('submit',(_0x5010cb,_0x1489d6)=>{this['fire']('addComment',_0x1489d6),_0x5329e6['editor']['setData']('');}),_0x5329e6['on']('cancel',()=>this['focus']()),_0x5329e6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1bdad7;}}class fe extends ti{['suggestionView'];['_descriptionElement'];constructor(_0x25f8c5,_0x3a4a3c,_0x483aad,_0x1aeb0d){super(_0x25f8c5,_0x3a4a3c,_0x483aad,_0x1aeb0d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xbb2fb5=>_0xbb2fb5&&_0xbb2fb5[0x0]?_0xbb2fb5[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x363c16,_0x13dcf2)=>{let _0x3bdd7d='';for(const _0x41cf75 of _0x363c16)_0x3bdd7d+='<p>'+ls(_0x41cf75['content'],_0x41cf75['color'])+'</p>';return _0x13dcf2?_0x3bdd7d:_0x25c702(_0x3bdd7d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1aeb0d['SuggestionView'](_0x25f8c5,_0x3a4a3c,{'formatDateTime':_0x1aeb0d['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 _0x509411=this['bindTemplate'],_0x4ebf4f=[this['suggestionView']];return this['commentsListView']&&_0x4ebf4f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4ebf4f['push'](this['commentThreadInputView']),_0x4ebf4f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x509411['if']('isActive','ck-suggestion-wrapper--active'),_0x509411['to']('type',_0x37a847=>'ck-suggestion-'+_0x37a847),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':_0x509411['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4ebf4f};}['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 _0x58c18a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1cedb8,_0x2a79f2,_0x3fd2b6){super(_0x1cedb8),this['_model']=_0x2a79f2,this['_config']=_0x3fd2b6,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2a79f2),this['acceptButton']=this['_createButton'](o(_0x1cedb8,'Accept\x20suggestion'),_0x221761,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1cedb8,'Discard\x20suggestion'),_0x26ae57,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2f54f7(_0x1cedb8,_0x2a79f2['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x34386b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x12f099(),this['keystrokes']=new _0x4f58c8(),this['focusCycler']=new _0x516fc9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x178554=>_0x178554['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4dba59=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4dba59['innerHTML']=this['description'],this['on']('change:description',(_0x35764a,_0x6ed052,_0x2819f0)=>{_0x4dba59['innerHTML']=_0x2819f0;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4b5b8a=this['bindTemplate'],_0xf53b7a=[{'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':_0x4b5b8a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4b5b8a['to']('authoredAt',_0x5cadd0=>this['_config']['formatDateTime'](_0x5cadd0))}]}]},{'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']&&_0xf53b7a['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':_0xf53b7a}]};}['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'](_0x1afcc0,_0x4fb8f3,_0x55b37d,_0x30cf28,_0x31b8e7){const _0x59f71e=new _0x1406bf(this['locale']);return _0x59f71e['set']({'label':_0x1afcc0,'icon':_0x4fb8f3,'tooltip':!0x0,'tooltipPosition':_0x31b8e7}),_0x59f71e['extendTemplate']({'attributes':{'class':_0x55b37d}}),_0x59f71e['on']('execute',()=>{this['fire'](_0x30cf28,this['_model']['id']);}),_0x59f71e;}['_setupKeyboardNavigation'](){const _0x3185aa=this['element'];this['keystrokes']['listenTo'](_0x3185aa);for(const _0x408f36 of this['focusables'])this['focusTracker']['add'](_0x408f36['element']),this['keystrokes']['listenTo'](_0x408f36['element']);this['keystrokes']['set']('enter',(_0x3e1547,_0x586286)=>{_0x3185aa===_0x3e1547['target']&&(this['focusCycler']['focusFirst'](),_0x586286());}),this['keystrokes']['set']('esc',(_0x45ec9a,_0x12659a)=>{_0x3185aa!==_0x45ec9a['target']&&(this['focus'](),_0x12659a());});}}class u extends _0x23c4fa{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3fc7e4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x439aec){super(_0x439aec),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5037be=this['editor']['config'];_0x5037be['define']('trackChanges.SuggestionThreadView',fe),_0x5037be['define']('trackChanges.SuggestionView',we),_0x5037be['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5037be['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x42dbbc,_0x23be34){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xcc3e1c,_0x5c4c70]of this['_handleControllerBuffer']){const _0x2f12a3=this['_suggestionToController']['has'](_0xcc3e1c);_0x2f12a3||_0x5c4c70?_0x2f12a3&&_0x5c4c70&&this['_destroyController'](_0xcc3e1c):this['_initializeController'](_0xcc3e1c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x42dbbc,_0x23be34);}['init'](){const _0x349266=this['editor'],_0x473386=_0x349266['plugins']['get']('TrackChangesEditing'),_0x3cbab1=_0x349266['plugins']['get']('Annotations'),_0x1e815a=_0x349266['plugins']['get']('EditorAnnotations'),_0x4541e1=_0x349266['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1e815a['addSourceCollector'](()=>{const _0x1632c1=[];for(const [_0x15d83b,_0x39ec63]of Array['from'](this['_suggestionToController'])){const _0x1ec443=_0x15d83b['getAllAdjacentSuggestions'](),_0x21cda0=[];for(const _0x4d278a of _0x1ec443){if(!_0x4d278a['isInContent'])continue;if(_0x4d278a['isMultiRange']){_0x21cda0['push'](..._0x4d278a['getRanges']());continue;}const _0x5bf369=_0x4d278a['getFirstRange']();if(_0x21cda0['length']>0x0){const _0x57e1be=_0x21cda0[0x0]['getJoined'](_0x5bf369);if(_0x57e1be){_0x21cda0[0x0]=_0x57e1be;continue;}}_0x21cda0['push'](_0x5bf369);}_0x1632c1['push']([_0x39ec63['view'],_0x21cda0]);}return _0x1632c1;}),this['listenTo'](_0x473386,'suggestionLoaded',(_0x489a39,_0x30915f)=>{this['listenTo'](_0x30915f,'change:previous',(_0x219b38,_0x3473b1,_0x46c090,_0x12709e)=>{_0x30915f['isInContent']&&(null==_0x46c090?(this['_updateController'](_0x12709e['head']),this['_handleSuggestionControllerDelayed'](_0x30915f,!0x1)):(this['_updateController'](_0x46c090['head']),null==_0x12709e&&this['_handleSuggestionControllerDelayed'](_0x30915f,!0x0)));}),null!==_0x30915f['previous']?this['_updateController'](_0x30915f['head']):this['_handleSuggestionControllerDelayed'](_0x30915f,!0x1);}),this['listenTo'](_0x473386,'suggestionUnloaded',(_0x84e02c,_0x43119b,_0xe166a9)=>{this['stopListening'](_0x43119b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x43119b),this['_suggestionToController']['has'](_0x43119b)&&this['_destroyController'](_0x43119b),_0xe166a9&&this['_updateController'](_0xe166a9['head']);}),this['listenTo'](_0x473386,'suggestionChanged',(_0x1caa9c,_0x2f157c)=>{this['_updateController'](_0x2f157c);}),this['listenTo'](_0x3cbab1,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4541e1,'addComment',(_0x327031,{threadId:_0xddd527,isFromAdapter:_0x2b9df2})=>{if(_0x2b9df2||!_0x473386['hasSuggestion'](_0xddd527))return;const _0x3c2dd7=_0x473386['getSuggestion'](_0xddd527);this['_suggestionToController']['get'](_0x3c2dd7)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x16c0a7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x32b0cc;for(const _0x1ffb9a in _0x16c0a7){const _0x8b520f=_0x1ffb9a,_0x5397c4=_0x16c0a7[_0x8b520f];if('trackChangesLicenseKeyValid'==_0x5397c4||'trackChangesLicenseKeyInvalid'==_0x5397c4||'trackChangesLicenseKeyExpired'==_0x5397c4||'trackChangesLicenseKeyDomainLimit'==_0x5397c4||'trackChangesLicenseKeyNotAllowed'==_0x5397c4||'trackChangesLicenseKeyEvaluationLimit'==_0x5397c4||'trackChangesLicenseKeyTrialLimit'==_0x5397c4||'trackChangesLicenseKeyUsageLimit'==_0x5397c4){delete _0x16c0a7[_0x8b520f],_0x32b0cc=_0x5397c4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x32b0cc&&_0x16c0a7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x32b0cc&&_0x16c0a7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x32b0cc&&_0x16c0a7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x32b0cc&&_0x16c0a7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x32b0cc&&_0x16c0a7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x32b0cc&&_0x16c0a7['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x32b0cc&&_0x16c0a7['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x557fd2){const _0x21f1f1=this['_suggestionToController']['get'](_0x557fd2);if(!_0x21f1f1)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x21f1f1['view'])||null;}['getSuggestionForAnnotation'](_0x5470d3){const _0x1173cf=this['_viewToController']['get'](_0x5470d3['innerView']);return _0x1173cf?_0x1173cf['model']:null;}['_refreshActiveMarkers'](){const _0x56795b=this['editor']['plugins']['get']('Annotations'),_0x54a233=this['editor']['plugins']['get']('TrackChangesEditing'),_0x439bb=Array['from'](_0x56795b['activeAnnotations'],_0x1f37af=>_0x1f37af['innerView'])['filter'](_0x12e851=>this['_viewToController']['has'](_0x12e851)),_0x195b3b=[];for(const _0x535ff7 of _0x439bb){const _0x4c8124=this['_viewToController']['get'](_0x535ff7)['model']['getAllAdjacentSuggestions']();_0x195b3b['push'](..._0x4c8124['reduce']((_0xeb7260,_0x1771ef)=>[..._0xeb7260,..._0x1771ef['getMarkerNames']()],[]));}_0x54a233['activeMarkers']=_0x195b3b;}['_addUIComponentsToFactory'](){const _0x3a7453=this['editor'],_0x5f3905=_0x3a7453['locale'],_0x2eed0c=o(_0x5f3905,'Track\x20changes'),_0x3622f9=new _0x2f98bb([{'type':'switchbutton','model':new _0x49297f({'withText':!0x0,'isToggleable':!0x0,'label':_0x2eed0c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x49297f({'withText':!0x0,'label':o(_0x5f3905,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x49297f({'withText':!0x0,'label':o(_0x5f3905,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x49297f({'withText':!0x0,'label':o(_0x5f3905,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x49297f({'withText':!0x0,'label':o(_0x5f3905,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3a7453['plugins']['has']('TrackChangesPreview')&&_0x3622f9['addMany']([{'type':'separator'},{'type':'button','model':new _0x49297f({'withText':!0x0,'label':o(_0x5f3905,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xe1c1a3 of _0x3622f9)if(ke(_0xe1c1a3)){const _0x533ce6=_0x3a7453['commands']['get'](_0xe1c1a3['model']['commandName']);_0xe1c1a3['model']['bind']('isOn','isEnabled')['to'](_0x533ce6,'value','isEnabled');}_0x3a7453['ui']['componentFactory']['add']('trackChanges',_0x47c716=>this['_createToolbarButton'](_0x47c716,_0x3622f9,_0x2eed0c)),_0x3a7453['ui']['componentFactory']['add']('menuBar:trackChanges',_0x49286a=>this['_createMenuBarMenu'](_0x49286a,_0x3622f9,_0x2eed0c));}['_createToolbarButton'](_0x62bcb1,_0x4f00a9,_0x41a1b5){const _0x4aec22=_0x168a33(_0x62bcb1,_0x33afd2),_0x2e9cb3=this['editor']['commands']['get']('trackChanges');_0x4aec22['buttonView']['set']({'tooltip':_0x41a1b5,'label':_0x41a1b5,'icon':_0xd59b28}),_0x4aec22['buttonView']['bind']('isOn')['to'](_0x2e9cb3,'value'),_0x4aec22['buttonView']['on']('execute',()=>{_0x2e9cb3['execute'](),this['editor']['editing']['view']['focus']();}),_0x470887(_0x4aec22,_0x4f00a9,{'role':'menu'});const _0x9f6098=[];for(const _0x16d7bf of _0x4f00a9)ke(_0x16d7bf)&&_0x9f6098['push'](this['editor']['commands']['get'](_0x16d7bf['model']['commandName']));const _0x39e1d4=_0x4aec22['buttonView'];return _0x39e1d4['actionView']['unbind']('isEnabled'),_0x39e1d4['arrowView']['unbind']('isEnabled'),_0x39e1d4['actionView']['bind']('isEnabled')['to'](_0x2e9cb3,'isEnabled'),_0x39e1d4['arrowView']['bind']('isEnabled')['toMany'](_0x9f6098,'isEnabled',(..._0x5e440d)=>_0x5e440d['some'](_0x25904f=>_0x25904f)),_0x4aec22['on']('execute',_0x53b640=>{this['editor']['execute'](_0x53b640['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4aec22;}['_createMenuBarMenu'](_0x5a1eec,_0x556a2a,_0x4feecd){const _0xbb8bc5=new _0x1ea40b(_0x5a1eec),_0x53d799=this['editor']['commands']['get']('trackChanges');_0xbb8bc5['buttonView']['set']({'label':_0x4feecd,'icon':_0xd59b28});const _0x4abe76=new _0x42e65e(_0x5a1eec);for(const _0xaac722 of _0x556a2a){if('separator'==_0xaac722['type']){_0x4abe76['items']['add'](new _0x429aa1(_0x5a1eec));continue;}const _0x53b2e2=new _0x54e8b2(_0x5a1eec,_0xbb8bc5),_0x4dba5c=new _0xd913d0(_0x5a1eec),_0x1aa1d2=_0xaac722['model'];_0x4dba5c['bind'](...Object['keys'](_0x1aa1d2))['to'](_0x1aa1d2),_0x4dba5c['delegate']('execute')['to'](_0xbb8bc5),_0x4dba5c['on']('execute',()=>{this['editor']['execute'](_0x1aa1d2['commandName']),this['editor']['editing']['view']['focus']();}),_0x53b2e2['children']['add'](_0x4dba5c),_0x4abe76['items']['add'](_0x53b2e2);}return _0xbb8bc5['bind']('isEnabled')['to'](_0x53d799,'isEnabled'),_0xbb8bc5['panelView']['children']['add'](_0x4abe76),_0xbb8bc5;}['_initializeController'](_0x17e185){const _0x28de0f=this['editor'],_0x2da81a=_0x28de0f['config'],_0x7294f2=_0x28de0f['plugins']['get']('Annotations'),_0x578953=_0x28de0f['plugins']['get']('CommentsRepository'),_0x65f882=_0x28de0f['plugins']['get']('EditorAnnotations'),_0x1922c4=_0x28de0f['plugins']['get'](_0x3fc7e4)['me'],_0x3a6677=_0x2da81a['get']('trackChanges')['SuggestionThreadView'],_0xc822bd=_0x2da81a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x449fd8,CommentThreadInputView:_0x37ba26}=_0x28de0f['plugins']['get']('CommentsUI');let _0x2a1159,_0x5e4e98,_0x4b7ba3;this['_annotationViews']['has'](_0x17e185['id'])?(_0x5e4e98=this['_annotationViews']['get'](_0x17e185['id']),_0x2a1159=_0x5e4e98['mainView']):(_0x2a1159=new _0x3a6677(_0x28de0f['locale'],_0x17e185,_0x1922c4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2da81a['get']('comments.editorConfig'),'licenseKey':_0x2da81a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2da81a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2da81a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2da81a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x112bec(_0x2da81a['get']('locale'),_0x28de0f['locale']),'CommentView':_0x2da81a['get']('comments')['CommentView'],'CommentsListView':_0x449fd8,'CommentThreadInputView':_0x37ba26,'SuggestionView':_0xc822bd}),_0x2a1159['suggestionView']['acceptButton']['on']('execute',()=>{_0x28de0f['editing']['view']['focus']();}),_0x2a1159['suggestionView']['discardButton']['on']('execute',()=>{_0x28de0f['editing']['view']['focus']();}),_0x5e4e98=_0x7294f2['createAnnotationView'](this['editor']['locale'],_0x2a1159),_0x5e4e98['bind']('isDirty')['to'](_0x2a1159,'isDirty'),_0x5e4e98['bind']('length')['to'](_0x2a1159),_0x5e4e98['bind']('type')['to'](_0x2a1159,'type',_0x2c9f3d=>'suggestion-'+_0x2c9f3d),_0x2a1159['on']('escape',()=>{_0x4b7ba3['fire']('escape');}),this['_annotationViews']['set'](_0x17e185['id'],_0x5e4e98));const _0x5bb9ac=_0x578953['createCommentThreadController'](_0x17e185['commentThread'],_0x2a1159),_0xcf9872=new pe(_0x28de0f,_0x17e185,_0x2a1159,_0x5bb9ac),_0x1e902b=_0x17e185['getAllAdjacentSuggestions']()['filter'](_0x55bf07=>_0x55bf07['isInContent']);_0x2a1159['descriptionParts']=_0x28de0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1e902b),this['_suggestionToController']['set'](_0x17e185,_0xcf9872),this['_viewToController']['set'](_0x2a1159,_0xcf9872),_0x4b7ba3=_0x7294f2['createAnnotation']({'view':_0x5e4e98,'target':()=>{const _0x863976=[],_0x2f93c3=_0x17e185['getAllAdjacentSuggestions']()['filter'](_0x57c443=>_0x57c443['isInContent']);for(const _0x279c40 of _0x2f93c3)_0x863976['push'](..._0x279c40['getMarkers']());return _0xcaa826(_0x28de0f['editing'],_0x863976);},'type':()=>'suggestion-'+_0xcf9872['view']['type']}),_0x578953['_bindAnnotationToEditors'](_0x2a1159,_0x4b7ba3),_0x7294f2['add'](_0x4b7ba3),_0x65f882['registerAnnotation'](_0x4b7ba3);}['_destroyController'](_0x14be35){const _0x18e275=this['editor']['plugins']['get']('CommentsRepository'),_0x50783d=this['editor']['plugins']['get']('Annotations'),_0x35aabc=this['_suggestionToController']['get'](_0x14be35),_0x2e1beb=_0x35aabc['view'],_0x129a67=_0x50783d['getByInnerView'](_0x2e1beb);_0x18e275['_unbindEditors'](_0x2e1beb),_0x129a67&&_0x50783d['remove'](_0x129a67),this['_suggestionToController']['delete'](_0x14be35),this['_viewToController']['delete'](_0x2e1beb),_0x35aabc['destroy']();}['_updateController'](_0x1e55b0){if(!_0x1e55b0['isInContent']||!this['_suggestionToController']['has'](_0x1e55b0))return;const _0x3915bf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x472ae5=this['_suggestionToController']['get'](_0x1e55b0),_0x2068ed=_0x1e55b0['getAllAdjacentSuggestions']();_0x472ae5['view']['descriptionParts']=_0x3915bf['descriptionFactory']['getDescriptions'](_0x2068ed);}['destroy'](){for(const _0x563082 of this['_suggestionToController']['keys']())this['_destroyController'](_0x563082);for(const _0x415686 of this['_annotationViews']['values']())_0x415686['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x1d8ac9){return'model'in _0x1d8ac9;}class Fe extends _0x23c4fa{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5158c2){this['editor']['plugins']['get'](d)['adapter']=_0x5158c2;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x52efdb){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x52efdb);}['getSuggestions']({skipNotAttached:_0x38fb22=!0x1,toJSON:_0x48af32=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x38fb22,'toJSON':_0x48af32});}['getSuggestion'](_0x98300d){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x98300d);}}const p=['Pagination'];class re extends _0x23c4fa{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x376251=this['editor'];if(_0x376251['config']['define']('trackChangesData.editorCreator',_0x469472=>{const _0x563b9a=_0x376251['model']['document']['getRootNames']()['reduce']((_0x407901,_0x52ed55)=>(_0x407901[_0x52ed55]='',_0x407901),{});return _0x376251['constructor']['create'](_0x563b9a,_0x469472);}),'function'!=typeof _0x376251['config']['get']('trackChangesData')['editorCreator'])throw new _0x56041c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4b5751){return P(this['editor'],!0x0,_0x4b5751);}['getDataWithDiscardedSuggestions'](_0x433d01){return P(this['editor'],!0x1,_0x433d01);}}class Ge extends _0x23c4fa{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b07a8){function _0x4a448e(_0xac011e){return _0xac011e['map'](_0x1fdd56=>String['fromCharCode'](_0x1fdd56))['join']('');}super(_0x5b07a8),this['result']='end',_0x5b07a8[_0x4a448e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a448e([0x76,0x69,0x65,0x77])][_0x4a448e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4a448e([0x61,0x75,0x74,0x6f]),_0x5b07a8[_0x4a448e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4a448e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4a448e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4a448e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4a448e([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(_0x490dd5){return void 0x0!==_0x490dd5['getRootsAttributes'];}async function P(_0x462cdd,_0x7259f5,_0x3ce124){const _0x7892bc=_0x560495(_0x462cdd,p);_0x7892bc['plugins']['push'](d,Ge),_0x7892bc['rootsAttributes']=He(_0x462cdd)?_0x462cdd['getRootsAttributes']():void 0x0;const _0x400002=document['createDocumentFragment'](),_0x3c696f=_0x462cdd['config']['get']('trackChangesData')['editorCreator'],_0x40213d=await _0x3c696f(_0x7892bc,()=>function(_0x51cf2a){const _0x2ae20d=document['createElement']('div');return _0x51cf2a['appendChild'](_0x2ae20d),_0x2ae20d;}(_0x400002));!function(_0x4f2313,_0x1fadce){const _0x80d3ef=_0x4f2313['model']['document']['getRootNames']()['reduce']((_0x4e7bdb,_0x58ef64)=>(_0x4e7bdb[_0x58ef64]=_0x4f2313['data']['get']({'rootName':_0x58ef64}),_0x4e7bdb),{}),_0x20c74c=_0x4f2313['plugins']['get']('Users')['users']['map'](_0x2c16d7=>({'id':_0x2c16d7['id'],'name':_0x2c16d7['name']})),_0x3e2517=_0x4f2313['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x295c5b=_0x4f2313['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3d3569=_0x1fadce['plugins']['get']('Users'),_0x45cf3f=_0x1fadce['plugins']['get']('TrackChangesEditing'),_0x594dde=_0x1fadce['plugins']['get']('CommentsRepository');for(const _0x5d2b8 of _0x594dde['getCommentThreads']())_0x5d2b8['remove']();for(const _0x5e5970 of _0x20c74c)_0x3d3569['getUser'](_0x5e5970['id'])||_0x3d3569['addUser'](_0x5e5970);_0x3d3569['me']||_0x3d3569['useAnonymousUser']();for(const _0x51f499 of _0x295c5b)_0x594dde['addCommentThread'](_0x51f499);for(const _0x1ebd04 of _0x3e2517)_0x45cf3f['addSuggestionData'](_0x1ebd04);_0x1fadce['data']['set'](_0x80d3ef);}(_0x462cdd,_0x40213d),_0x40213d['execute'](_0x7259f5?'acceptAllSuggestions':'discardAllSuggestions');const _0x499787=He(_0x40213d)?_0x40213d['getFullData'](_0x3ce124):_0x40213d['data']['get'](_0x3ce124);return await _0x40213d['destroy'](),_0x499787;}class Me extends _0x58c18a{['options'];constructor(_0x21a513,_0x22f241){super(_0x21a513),this['options']=_0x22f241,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'](_0xd73fb1,_0x15564c){if(!this['element'])return;const _0xdf9144=[];for(const [_0x2fb8eb,_0x4801bb]of _0xd73fb1){const _0x1eadea=document['createElement']('div');_0x1eadea['setAttribute']('data-ck-root-name',_0x2fb8eb),_0x1eadea['className']=_0x4801bb['classes']+'\x20ck-track-changes-preview__root-container',_0x1eadea['innerHTML']=_0x4801bb['content'],_0xdf9144['push'](_0x1eadea);}_0x15564c(this['element'],_0xdf9144),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x198a09{constructor(_0x1cf24a){super(_0x1cf24a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x246a90=this['editor'],_0x1a77af=_0x246a90['locale'],_0x5c1305=_0x246a90['plugins']['get']('Dialog');let _0x30a637;const _0x424234=function(_0x3174b7){const _0x4b0eeb={};if('editables'in _0x3174b7['ui']['view']){for(const [_0x2bebd3,_0x48614d]of Object['entries'](_0x3174b7['ui']['view']['editables']))_0x4b0eeb[_0x2bebd3]=_0x48614d['element'];}else _0x4b0eeb[_0x3174b7['model']['document']['getRootNames']()[0x0]]=_0x3174b7['ui']['view']['editable']['element'];return _0x4b0eeb;}(_0x246a90),_0x3d1382=function(_0x238e97){let _0x1e5310=0x0;for(const _0x2f147d of Object['values'](_0x238e97))_0x1e5310=Math['max'](_0x1e5310,_0x2f147d['getBoundingClientRect']()['width']);let _0x3f4639=0x0;for(const _0x508766 of Object['values'](_0x238e97))_0x3f4639+=_0x508766['getBoundingClientRect']()['height'];const _0x3306c9=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x281463=Math['min'](_0x3f4639,_0x3306c9);return{'width':_0x1e5310,'height':_0x281463};}(_0x424234);_0x5c1305['show']({'id':'finalContentPreview','title':o(_0x1a77af,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1a77af,{'dialogRects':_0x3d1382}),'onHide':()=>{_0x30a637['detachFromDom']();},'onShow':()=>{_0x246a90['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5a1d5c=>{const _0x1a0ad9=this['_standarizeRootsData'](_0x5a1d5c,_0x246a90,_0x424234);_0x5c1305['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1a0ad9,_0x246a90['config']['get']('trackChanges.preview.renderFunction'));}),_0x30a637=new _0xaaa87(_0x1a77af,[_0x5c1305['view']]),_0x30a637['attachToDom'](),_0x30a637['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x246a90['once']('destroy',()=>{_0x30a637['detachFromDom']();});const _0x566515=_0x5c1305['view']['headerView']['class'];_0x5c1305['view']['headerView']['class']=_0x566515?_0x566515+'\x20ck-reset_all':'ck-reset_all',_0x5c1305['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5c1305['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4dce16=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x11a6e4=_0x4dce16['previewMode'],_0x1d20ec={};if('$labels'===_0x11a6e4){for(const _0x168f6a of _0x4dce16['getMergeFieldsIds']())_0x1d20ec[_0x168f6a]=_0x4dce16['getLabel'](_0x168f6a)||_0x168f6a;}else{const _0x84814c='$defaultValues'===_0x11a6e4?_0x4dce16['getDefaultValues']():_0x4dce16['getDataSetValues'](_0x11a6e4,!0x0);for(const _0x2b844f of Object['entries'](_0x84814c)){const [_0x340f7b,_0x47f634]=_0x2b844f;_0x1d20ec[_0x340f7b]=null!==_0x47f634?_0x47f634:_0x4dce16['getLabel'](_0x340f7b)||_0x340f7b;}}return{'mergeFieldsData':_0x1d20ec};}['_standarizeRootsData'](_0x264a60,_0x53914e,_0x52b8aa){let _0x2207ac;if('string'==typeof _0x264a60){const _0x12721b=_0x53914e['model']['document']['getRootNames']()[0x0];_0x2207ac={[_0x12721b]:_0x264a60};}else _0x2207ac=_0x264a60;const _0x1329aa=this['_fixMediaEmbeds'](_0x2207ac,_0x53914e),_0x32aafb=function(_0x2c1ab1,_0x113090){for(const [_0x40f48e,_0x58a8fd]of _0x2c1ab1)_0x58a8fd['classes']=_0x113090[_0x40f48e]['classList']['value']['replace']('ck-focused','');return _0x2c1ab1;}(this['_sortRoots'](_0x53914e)['reduce']((_0x153771,_0x4c1318)=>(_0x153771['push']([_0x4c1318,{'content':_0x1329aa[_0x4c1318],'classes':''}]),_0x153771),[]),_0x52b8aa);return _0x32aafb;}['_fixMediaEmbeds'](_0x5653c4,_0x1455e4){if(!_0x1455e4['plugins']['has']('MediaEmbedEditing'))return _0x5653c4;const _0x44a7ae=_0x1455e4['plugins']['get']('MediaEmbedEditing');for(const [_0x5999b0,_0x3e504f]of Object['entries'](_0x5653c4)){const _0x41e7a5=document['createElement']('div');_0x41e7a5['innerHTML']=_0x3e504f,(_0x41e7a5['querySelectorAll']('figure.media')['forEach'](_0x366355=>{const _0x29dc66=_0x366355['querySelector']('oembed');if(_0x29dc66){const _0x1ab8c1=_0x29dc66['getAttribute']('url');if(_0x1ab8c1){const _0x41e878=_0x44a7ae['registry']['getMediaViewElement'](new _0x2ddaeb(_0x1455e4['editing']['view']['document']),_0x1ab8c1,{'elementName':'','renderForEditingView':!0x0}),_0x5e00c9=document['createElement']('div');_0x5e00c9['classList']['add']('ck-media__wrapper'),_0x41e878['render'](_0x5e00c9,_0x1455e4['editing']['view']['domConverter']),_0x29dc66['replaceWith'](_0x5e00c9);}}}),_0x5653c4[_0x5999b0]=_0x41e7a5['innerHTML']);}return _0x5653c4;}['_sortRoots'](_0x54edf6){if(!function(_0x2de70b){return void 0x0!==_0x2de70b['getRootsAttributes'];}(_0x54edf6))return _0x54edf6['model']['document']['getRootNames']();const _0x101b68=[],_0x506926=new Map();for(const _0x335239 of _0x54edf6['model']['document']['getRootNames']()){const _0x2a25c8=_0x54edf6['editing']['view']['getDomRoot'](_0x335239)['getClientRects']()['item'](0x0);_0x101b68['push'](_0x335239),_0x506926['set'](_0x335239,_0x2a25c8);}return _0x101b68['sort']((_0x6a10c0,_0x4777d0)=>{const _0x1f80dc=_0x506926['get'](_0x6a10c0),_0x3fb264=_0x506926['get'](_0x4777d0);return _0x1f80dc['y']-_0x3fb264['y']||_0x1f80dc['x']-_0x3fb264['x'];}),_0x101b68;}}class $e extends _0x23c4fa{static get['requires'](){return[re,_0x21450c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x368ac1){super(_0x368ac1),_0x368ac1['commands']['add']('previewFinalContent',new te(this['editor'])),_0x368ac1['config']['define']('trackChanges.preview.renderFunction',(_0x112609,_0xa26863)=>{for(const _0x5d2d65 of _0xa26863)_0x112609['appendChild'](_0x5d2d65);});}}export{D as AcceptSuggestionCommand,ti as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ 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,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
|