@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 22.2 kB
JavaScript
/*
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
*
*
*
*
* +---------------------------------------------------------------------------------+
* | |
* | Hello stranger! |
* | |
* | |
* | What you're currently looking at is the source code of a legally protected, |
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
* | are forbidden and will result in legal consequences. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
const _0x4c7a2e=_0x38c9;(function(_0x474ea0,_0x506b95){const _0x49fe89=_0x38c9,_0x5e1f5e=_0x474ea0();while(!![]){try{const _0x4b2b4d=-parseInt(_0x49fe89(0x1a9))/0x1+parseInt(_0x49fe89(0x121))/0x2+parseInt(_0x49fe89(0x170))/0x3*(-parseInt(_0x49fe89(0x191))/0x4)+-parseInt(_0x49fe89(0x131))/0x5*(parseInt(_0x49fe89(0x13f))/0x6)+parseInt(_0x49fe89(0x11b))/0x7*(-parseInt(_0x49fe89(0x197))/0x8)+parseInt(_0x49fe89(0x1a2))/0x9*(parseInt(_0x49fe89(0x17c))/0xa)+-parseInt(_0x49fe89(0x114))/0xb*(-parseInt(_0x49fe89(0x11c))/0xc);if(_0x4b2b4d===_0x506b95)break;else _0x5e1f5e['push'](_0x5e1f5e['shift']());}catch(_0x160dfc){_0x5e1f5e['push'](_0x5e1f5e['shift']());}}}(_0x4803,0x66065));import{Plugin as _0x6a48fa}from'ckeditor5/src/core.js';import{Collection as _0x263a20}from'ckeditor5/src/utils.js';import{IconTrackChanges as _0x1700e9}from'ckeditor5/src/icons.js';import{addListToDropdown as _0x300da9,createDropdown as _0x1cf5ae,ListSeparatorView as _0x318d22,MenuBarMenuView as _0x4d3084,MenuBarMenuListView as _0x6d81c4,MenuBarMenuListItemView as _0x59f89c,MenuBarMenuListItemButtonView as _0x26b48e,SplitButtonView as _0x58fbfd,ViewModel as _0x42f4df}from'ckeditor5/src/ui.js';import{Users as _0x7d8c28,getDateTimeFormatter as _0x4cfa40,getAllMarkersDomElementsSorted as _0x2ae987}from'ckeditor5-collaboration/src/collaboration-core.js';import _0xbe88ae from'./trackchangesediting.js';import _0xfa83fa from'./ui/suggestioncontroller.js';function _0x38c9(_0x5c3387,_0x11acb8){const _0x4803e7=_0x4803();return _0x38c9=function(_0x38c97b,_0x18fec9){_0x38c97b=_0x38c97b-0xfa;let _0x2abb8c=_0x4803e7[_0x38c97b];return _0x2abb8c;},_0x38c9(_0x5c3387,_0x11acb8);}import _0x2fe94b from'./ui/view/suggestionthreadview.js';import _0xa67582 from'./ui/view/suggestionview.js';import{getTranslation as _0x4bdcdb}from'./utils/common-translations.js';export default class d extends _0x6a48fa{[_0x4c7a2e(0x12d)];[_0x4c7a2e(0x150)];[_0x4c7a2e(0x180)];[_0x4c7a2e(0x17d)];[_0x4c7a2e(0x125)];[_0x4c7a2e(0x16f)];[_0x4c7a2e(0x17a)];static get[_0x4c7a2e(0x19e)](){const _0x4e8e24=_0x4c7a2e;return[_0xbe88ae,_0x7d8c28,_0x4e8e24(0x113),_0x4e8e24(0x127),_0x4e8e24(0x14e)];}static get[_0x4c7a2e(0x10a)](){const _0x13f679=_0x4c7a2e;return _0x13f679(0x118);}static get[_0x4c7a2e(0x13e)](){return!0x0;}static get[_0x4c7a2e(0x146)](){return!0x0;}constructor(_0x2d20b1){const _0x26437e=_0x4c7a2e;super(_0x2d20b1),this[_0x26437e(0x180)]=new Map(),this[_0x26437e(0x17d)]=new Map(),this[_0x26437e(0x125)]=new Map(),this[_0x26437e(0x16f)]=new Map();const _0x38e7fa=this[_0x26437e(0x1aa)][_0x26437e(0x130)];_0x38e7fa[_0x26437e(0x126)](_0x26437e(0x111),_0x2fe94b),_0x38e7fa[_0x26437e(0x126)](_0x26437e(0x142),_0xa67582),_0x38e7fa[_0x26437e(0x126)](_0x26437e(0x139),!0x1),this[_0x26437e(0x17a)]=_0x38e7fa[_0x26437e(0x18f)](_0x26437e(0x139));}[_0x4c7a2e(0x10d)](_0x3290d6,_0x11b208){const _0x5ae226=_0x4c7a2e;0x0===this[_0x5ae226(0x16f)][_0x5ae226(0x181)]&&setTimeout(()=>{const _0x2d2a82=_0x5ae226;for(const [_0xb6ae88,_0x3e95f4]of this[_0x2d2a82(0x16f)]){const _0x4351d1=this[_0x2d2a82(0x180)][_0x2d2a82(0x149)](_0xb6ae88);_0x4351d1||_0x3e95f4?_0x4351d1&&_0x3e95f4&&this[_0x2d2a82(0x176)](_0xb6ae88):this[_0x2d2a82(0x163)](_0xb6ae88);}this[_0x2d2a82(0x16f)][_0x2d2a82(0x169)](),this[_0x2d2a82(0x1aa)][_0x2d2a82(0x11d)][_0x2d2a82(0x18f)](_0x2d2a82(0x14e))[_0x2d2a82(0x12c)](),this[_0x2d2a82(0x104)]();},0xa),this[_0x5ae226(0x16f)][_0x5ae226(0x19d)](_0x3290d6,_0x11b208);}[_0x4c7a2e(0x10e)](){const _0x26900c=_0x4c7a2e,_0x2da2ae=this[_0x26900c(0x1aa)],_0x326b64=_0x2da2ae[_0x26900c(0x11d)][_0x26900c(0x18f)](_0x26900c(0xfd)),_0x34381f=_0x2da2ae[_0x26900c(0x11d)][_0x26900c(0x18f)](_0x26900c(0x127)),_0x2904fc=_0x2da2ae[_0x26900c(0x11d)][_0x26900c(0x18f)](_0x26900c(0x14e)),_0x2ce0b0=_0x2da2ae[_0x26900c(0x11d)][_0x26900c(0x18f)](_0x26900c(0x113));this[_0x26900c(0x122)](),_0x2904fc[_0x26900c(0xfa)](()=>{const _0x4913dd=_0x26900c,_0x10f991=[];for(const [_0x4a54c4,_0x1359d6]of Array[_0x4913dd(0x19c)](this[_0x4913dd(0x180)])){const _0x55dc0a=_0x4a54c4[_0x4913dd(0x135)](),_0x2d1c2c=[];for(const _0xa749a2 of _0x55dc0a){if(!_0xa749a2[_0x4913dd(0xfc)])continue;if(_0xa749a2[_0x4913dd(0x193)]){_0x2d1c2c[_0x4913dd(0x120)](..._0xa749a2[_0x4913dd(0x133)]());continue;}const _0x1305c9=_0xa749a2[_0x4913dd(0x124)]();if(_0x2d1c2c[_0x4913dd(0x12f)]>0x0){const _0x5d3e8f=_0x2d1c2c[0x0][_0x4913dd(0x155)](_0x1305c9);if(_0x5d3e8f){_0x2d1c2c[0x0]=_0x5d3e8f;continue;}}_0x2d1c2c[_0x4913dd(0x120)](_0x1305c9);}_0x10f991[_0x4913dd(0x120)]([_0x1359d6[_0x4913dd(0x115)],_0x2d1c2c]);}return _0x10f991;}),this[_0x26900c(0x198)](_0x326b64,_0x26900c(0x1a4),(_0x30327e,_0x46ac0c)=>{const _0x1f9965=_0x26900c;this[_0x1f9965(0x198)](_0x46ac0c,_0x1f9965(0x10b),(_0x2e58b4,_0x2e71e6,_0x216f60,_0x41ada2)=>{const _0x3dfdb3=_0x1f9965;_0x46ac0c[_0x3dfdb3(0xfc)]&&(null==_0x216f60?(this[_0x3dfdb3(0x187)](_0x41ada2[_0x3dfdb3(0x157)]),this[_0x3dfdb3(0x10d)](_0x46ac0c,!0x1)):(this[_0x3dfdb3(0x187)](_0x216f60[_0x3dfdb3(0x157)]),null==_0x41ada2&&this[_0x3dfdb3(0x10d)](_0x46ac0c,!0x0)));}),null!==_0x46ac0c[_0x1f9965(0x16d)]?this[_0x1f9965(0x187)](_0x46ac0c[_0x1f9965(0x157)]):this[_0x1f9965(0x10d)](_0x46ac0c,!0x1);}),this[_0x26900c(0x198)](_0x326b64,_0x26900c(0x160),(_0x1471c6,_0x46bb75,_0x30c6b6)=>{const _0x192d9a=_0x26900c;this[_0x192d9a(0x11f)](_0x46bb75,_0x192d9a(0x10b)),this[_0x192d9a(0x16f)][_0x192d9a(0x17f)](_0x46bb75),this[_0x192d9a(0x180)][_0x192d9a(0x149)](_0x46bb75)&&this[_0x192d9a(0x176)](_0x46bb75),_0x30c6b6&&this[_0x192d9a(0x187)](_0x30c6b6[_0x192d9a(0x157)]);}),this[_0x26900c(0x198)](_0x326b64,_0x26900c(0x1a5),(_0x22de68,_0x36da8f)=>{const _0x1ad77a=_0x26900c;this[_0x1ad77a(0x187)](_0x36da8f);}),this[_0x26900c(0x198)](_0x34381f,_0x26900c(0x106),()=>{const _0x32e5fb=_0x26900c;this[_0x32e5fb(0x104)]();}),this[_0x26900c(0x198)](_0x2ce0b0,_0x26900c(0x18e),(_0x10c40f,{threadId:_0x3c9c01,isFromAdapter:_0x30bb20})=>{const _0x58176a=_0x26900c;if(_0x30bb20||!_0x326b64[_0x58176a(0x138)](_0x3c9c01))return;const _0x42cf86=_0x326b64[_0x58176a(0x17b)](_0x3c9c01);this[_0x58176a(0x180)][_0x58176a(0x18f)](_0x42cf86)[_0x58176a(0x115)][_0x58176a(0x165)][_0x58176a(0x19a)](-0x1);},{'priority':_0x26900c(0x12b)}),this[_0x26900c(0x12d)]=this[_0x26900c(0x1aa)][_0x26900c(0x130)][_0x26900c(0x18f)](_0x26900c(0x12d));const _0x2ecc73=this[_0x26900c(0x1aa)];this[_0x26900c(0x150)]=setInterval(()=>{const _0x3836dd=_0x26900c;let _0x394b88;for(const _0x1b65aa in _0x2ecc73){const _0x5b9076=_0x1b65aa,_0x15ea66=_0x2ecc73[_0x5b9076];if(_0x3836dd(0x158)==_0x15ea66||_0x3836dd(0x161)==_0x15ea66||_0x3836dd(0x190)==_0x15ea66||_0x3836dd(0x194)==_0x15ea66||_0x3836dd(0x15f)==_0x15ea66||_0x3836dd(0x14c)==_0x15ea66||_0x3836dd(0x184)==_0x15ea66||_0x3836dd(0x1a0)==_0x15ea66){delete _0x2ecc73[_0x5b9076],_0x394b88=_0x15ea66,clearInterval(this[_0x3836dd(0x150)]),this[_0x3836dd(0x150)]=void 0x0;break;}}_0x3836dd(0x161)==_0x394b88&&_0x2ecc73[_0x3836dd(0x143)](_0x3836dd(0x16c)),_0x3836dd(0x190)==_0x394b88&&_0x2ecc73[_0x3836dd(0x143)](_0x3836dd(0x195)),_0x3836dd(0x194)==_0x394b88&&_0x2ecc73[_0x3836dd(0x143)](_0x3836dd(0x182)),_0x3836dd(0x15f)==_0x394b88&&_0x2ecc73[_0x3836dd(0x143)](_0x3836dd(0x132),_0x3836dd(0x15c)),_0x3836dd(0x14c)==_0x394b88&&_0x2ecc73[_0x3836dd(0x143)](_0x3836dd(0x110)),_0x3836dd(0x184)==_0x394b88&&_0x2ecc73[_0x3836dd(0x143)](_0x3836dd(0x174)),_0x3836dd(0x1a0)==_0x394b88&&_0x2ecc73[_0x3836dd(0x143)](_0x3836dd(0x19f));},0x3e8);}[_0x4c7a2e(0x104)](){const _0x2b04dd=_0x4c7a2e,_0x42e1ad=this[_0x2b04dd(0x1aa)][_0x2b04dd(0x11d)][_0x2b04dd(0x18f)](_0x2b04dd(0x127)),_0x31a094=this[_0x2b04dd(0x1aa)][_0x2b04dd(0x11d)][_0x2b04dd(0x18f)](_0x2b04dd(0xfd)),_0x45c0e7=Array[_0x2b04dd(0x19c)](_0x42e1ad[_0x2b04dd(0x134)],_0xd309ba=>_0xd309ba[_0x2b04dd(0x1a6)])[_0x2b04dd(0x11e)](_0x511139=>this[_0x2b04dd(0x17d)][_0x2b04dd(0x149)](_0x511139)),_0x26e27b=[];for(const _0x194f4c of _0x45c0e7){const _0x2ff606=this[_0x2b04dd(0x17d)][_0x2b04dd(0x18f)](_0x194f4c)[_0x2b04dd(0x129)][_0x2b04dd(0x135)]();_0x26e27b[_0x2b04dd(0x120)](..._0x2ff606[_0x2b04dd(0x196)]((_0x81909a,_0x8d2586)=>[..._0x81909a,..._0x8d2586[_0x2b04dd(0x14d)]()],[]));}_0x31a094[_0x2b04dd(0x128)]=_0x26e27b;}[_0x4c7a2e(0x122)](){const _0xecf400=_0x4c7a2e,_0x1ce051=this[_0xecf400(0x1aa)],_0x4bd6d6=_0x1ce051[_0xecf400(0x185)],_0x3b7636=_0x4bdcdb(_0x4bd6d6,_0xecf400(0x140)),_0x3e153e=new _0x263a20([{'type':_0xecf400(0x188),'model':new _0x42f4df({'withText':!0x0,'isToggleable':!0x0,'label':_0x3b7636,'commandName':_0xecf400(0xff),'role':_0xecf400(0x14a)})},{'type':_0xecf400(0x1a1)},{'type':_0xecf400(0x109),'model':new _0x42f4df({'withText':!0x0,'label':_0x4bdcdb(_0x4bd6d6,_0xecf400(0x179)),'commandName':_0xecf400(0x172),'role':_0xecf400(0x167)})},{'type':_0xecf400(0x109),'model':new _0x42f4df({'withText':!0x0,'label':_0x4bdcdb(_0x4bd6d6,_0xecf400(0x1a8)),'commandName':_0xecf400(0x17e),'role':_0xecf400(0x167)})},{'type':_0xecf400(0x109),'model':new _0x42f4df({'withText':!0x0,'label':_0x4bdcdb(_0x4bd6d6,_0xecf400(0x103)),'commandName':_0xecf400(0x168),'role':_0xecf400(0x167)})},{'type':_0xecf400(0x109),'model':new _0x42f4df({'withText':!0x0,'label':_0x4bdcdb(_0x4bd6d6,_0xecf400(0x183)),'commandName':_0xecf400(0x141),'role':_0xecf400(0x167)})}]);_0x1ce051[_0xecf400(0x11d)][_0xecf400(0x149)](_0xecf400(0x13b))&&_0x3e153e[_0xecf400(0x123)]([{'type':_0xecf400(0x1a1)},{'type':_0xecf400(0x109),'model':new _0x42f4df({'withText':!0x0,'label':_0x4bdcdb(_0x4bd6d6,_0xecf400(0x11a)),'commandName':_0xecf400(0x156),'role':_0xecf400(0x167)})}]);for(const _0x4ab2b7 of _0x3e153e)if(ke(_0x4ab2b7)){const _0xf0e269=_0x1ce051[_0xecf400(0x13c)][_0xecf400(0x18f)](_0x4ab2b7[_0xecf400(0x129)][_0xecf400(0x119)]);_0x4ab2b7[_0xecf400(0x129)][_0xecf400(0x10f)](_0xecf400(0x1a3),_0xecf400(0x16a))['to'](_0xf0e269,_0xecf400(0x19b),_0xecf400(0x16a));}_0x1ce051['ui'][_0xecf400(0x199)][_0xecf400(0x178)](_0xecf400(0xff),_0x73d732=>this[_0xecf400(0x13a)](_0x73d732,_0x3e153e,_0x3b7636)),_0x1ce051['ui'][_0xecf400(0x199)][_0xecf400(0x178)](_0xecf400(0x171),_0x2fbe05=>this[_0xecf400(0x101)](_0x2fbe05,_0x3e153e,_0x3b7636));}[_0x4c7a2e(0x13a)](_0x36c436,_0x280093,_0x1ca355){const _0xd842ca=_0x4c7a2e,_0x277e5a=_0x1cf5ae(_0x36c436,_0x58fbfd),_0x297b5d=this[_0xd842ca(0x1aa)][_0xd842ca(0x13c)][_0xd842ca(0x18f)](_0xd842ca(0xff));_0x277e5a[_0xd842ca(0x18b)][_0xd842ca(0x19d)]({'tooltip':_0x1ca355,'label':_0x1ca355,'icon':_0x1700e9}),_0x277e5a[_0xd842ca(0x18b)][_0xd842ca(0x10f)](_0xd842ca(0x1a3))['to'](_0x297b5d,_0xd842ca(0x19b)),_0x277e5a[_0xd842ca(0x18b)]['on'](_0xd842ca(0x152),()=>{const _0x525a63=_0xd842ca;_0x297b5d[_0x525a63(0x152)](),this[_0x525a63(0x1aa)][_0x525a63(0x162)][_0x525a63(0x115)][_0x525a63(0x19a)]();}),_0x300da9(_0x277e5a,_0x280093,{'role':_0xd842ca(0x102)});const _0x61b481=[];for(const _0x5f5020 of _0x280093)ke(_0x5f5020)&&_0x61b481[_0xd842ca(0x120)](this[_0xd842ca(0x1aa)][_0xd842ca(0x13c)][_0xd842ca(0x18f)](_0x5f5020[_0xd842ca(0x129)][_0xd842ca(0x119)]));const _0x35d589=_0x277e5a[_0xd842ca(0x18b)];return _0x35d589[_0xd842ca(0x100)][_0xd842ca(0x14f)](_0xd842ca(0x16a)),_0x35d589[_0xd842ca(0x12a)][_0xd842ca(0x14f)](_0xd842ca(0x16a)),_0x35d589[_0xd842ca(0x100)][_0xd842ca(0x10f)](_0xd842ca(0x16a))['to'](_0x297b5d,_0xd842ca(0x16a)),_0x35d589[_0xd842ca(0x12a)][_0xd842ca(0x10f)](_0xd842ca(0x16a))[_0xd842ca(0x108)](_0x61b481,_0xd842ca(0x16a),(..._0x43d221)=>_0x43d221[_0xd842ca(0x175)](_0x4469e2=>_0x4469e2)),_0x277e5a['on'](_0xd842ca(0x152),_0x43e326=>{const _0x25bdd3=_0xd842ca;this[_0x25bdd3(0x1aa)][_0x25bdd3(0x152)](_0x43e326[_0x25bdd3(0x1a7)][_0x25bdd3(0x119)]),this[_0x25bdd3(0x1aa)][_0x25bdd3(0x162)][_0x25bdd3(0x115)][_0x25bdd3(0x19a)]();}),_0x277e5a;}[_0x4c7a2e(0x101)](_0x5a77bd,_0x3d193d,_0x243a8d){const _0x40eb93=_0x4c7a2e,_0x5da091=new _0x4d3084(_0x5a77bd),_0x23d40d=this[_0x40eb93(0x1aa)][_0x40eb93(0x13c)][_0x40eb93(0x18f)](_0x40eb93(0xff));_0x5da091[_0x40eb93(0x18b)][_0x40eb93(0x19d)]({'label':_0x243a8d,'icon':_0x1700e9});const _0x5eac5b=new _0x6d81c4(_0x5a77bd);for(const _0x4f9ccd of _0x3d193d){if(_0x40eb93(0x1a1)==_0x4f9ccd[_0x40eb93(0x14b)]){_0x5eac5b[_0x40eb93(0x105)][_0x40eb93(0x178)](new _0x318d22(_0x5a77bd));continue;}const _0x520c7d=new _0x59f89c(_0x5a77bd,_0x5da091),_0x1a91e6=new _0x26b48e(_0x5a77bd),_0x3dabfe=_0x4f9ccd[_0x40eb93(0x129)];_0x1a91e6[_0x40eb93(0x10f)](...Object[_0x40eb93(0x154)](_0x3dabfe))['to'](_0x3dabfe),_0x1a91e6[_0x40eb93(0x144)](_0x40eb93(0x152))['to'](_0x5da091),_0x1a91e6['on'](_0x40eb93(0x152),()=>{const _0x48ac9f=_0x40eb93;this[_0x48ac9f(0x1aa)][_0x48ac9f(0x152)](_0x3dabfe[_0x48ac9f(0x119)]),this[_0x48ac9f(0x1aa)][_0x48ac9f(0x162)][_0x48ac9f(0x115)][_0x48ac9f(0x19a)]();}),_0x520c7d[_0x40eb93(0x192)][_0x40eb93(0x178)](_0x1a91e6),_0x5eac5b[_0x40eb93(0x105)][_0x40eb93(0x178)](_0x520c7d);}return _0x5da091[_0x40eb93(0x10f)](_0x40eb93(0x16a))['to'](_0x23d40d,_0x40eb93(0x16a)),_0x5da091[_0x40eb93(0x10c)][_0x40eb93(0x192)][_0x40eb93(0x178)](_0x5eac5b),_0x5da091;}[_0x4c7a2e(0x163)](_0x424d35){const _0x629bed=_0x4c7a2e,_0x3566fa=this[_0x629bed(0x1aa)],_0x30141f=_0x3566fa[_0x629bed(0x130)],_0x58d385=_0x3566fa[_0x629bed(0x11d)][_0x629bed(0x18f)](_0x629bed(0x127)),_0x12b55f=_0x3566fa[_0x629bed(0x11d)][_0x629bed(0x18f)](_0x629bed(0x113)),_0x125a9b=_0x3566fa[_0x629bed(0x11d)][_0x629bed(0x18f)](_0x629bed(0x14e)),_0x497985=_0x3566fa[_0x629bed(0x11d)][_0x629bed(0x18f)](_0x7d8c28)['me'],_0x20a388=_0x30141f[_0x629bed(0x18f)](_0x629bed(0xff))[_0x629bed(0x13d)],_0x338023=_0x30141f[_0x629bed(0x18f)](_0x629bed(0xff))[_0x629bed(0x112)],{CommentsListView:_0x3c4dbb,CommentThreadInputView:_0x48f5b0}=_0x3566fa[_0x629bed(0x11d)][_0x629bed(0x18f)](_0x629bed(0x145));let _0x18c470,_0x2a77d1,_0x59616e;this[_0x629bed(0x125)][_0x629bed(0x149)](_0x424d35['id'])?(_0x2a77d1=this[_0x629bed(0x125)][_0x629bed(0x18f)](_0x424d35['id']),_0x18c470=_0x2a77d1[_0x629bed(0x159)]):(_0x18c470=new _0x20a388(_0x3566fa[_0x629bed(0x185)],_0x424d35,_0x497985,{'disableComments':this[_0x629bed(0x17a)],'editorConfig':{..._0x30141f[_0x629bed(0x18f)](_0x629bed(0x16e)),'licenseKey':_0x30141f[_0x629bed(0x18f)](_0x629bed(0x12d))},'maxCommentsWhenCollapsed':_0x30141f[_0x629bed(0x18f)](_0x629bed(0x164)),'maxThreadTotalWeight':_0x30141f[_0x629bed(0x18f)](_0x629bed(0x148)),'maxCommentCharsWhenCollapsed':_0x30141f[_0x629bed(0x18f)](_0x629bed(0x147)),'formatDateTime':_0x4cfa40(_0x30141f[_0x629bed(0x18f)](_0x629bed(0x185)),_0x3566fa[_0x629bed(0x185)]),'CommentView':_0x30141f[_0x629bed(0x18f)](_0x629bed(0x1ab))[_0x629bed(0x136)],'CommentsListView':_0x3c4dbb,'CommentThreadInputView':_0x48f5b0,'SuggestionView':_0x338023}),_0x18c470[_0x629bed(0x15d)][_0x629bed(0x15e)]['on'](_0x629bed(0x152),()=>{const _0x306000=_0x629bed;_0x3566fa[_0x306000(0x162)][_0x306000(0x115)][_0x306000(0x19a)]();}),_0x18c470[_0x629bed(0x15d)][_0x629bed(0x177)]['on'](_0x629bed(0x152),()=>{const _0x46dc8c=_0x629bed;_0x3566fa[_0x46dc8c(0x162)][_0x46dc8c(0x115)][_0x46dc8c(0x19a)]();}),_0x2a77d1=_0x58d385[_0x629bed(0x15a)](this[_0x629bed(0x1aa)][_0x629bed(0x185)],_0x18c470),_0x2a77d1[_0x629bed(0x10f)](_0x629bed(0x18c))['to'](_0x18c470,_0x629bed(0x18c)),_0x2a77d1[_0x629bed(0x10f)](_0x629bed(0x12f))['to'](_0x18c470),_0x2a77d1[_0x629bed(0x10f)](_0x629bed(0x14b))['to'](_0x18c470,_0x629bed(0x14b),_0x40421e=>_0x629bed(0xfe)+_0x40421e),_0x18c470['on'](_0x629bed(0x15b),()=>{const _0x57d047=_0x629bed;_0x59616e[_0x57d047(0x137)](_0x57d047(0x15b));}),this[_0x629bed(0x125)][_0x629bed(0x19d)](_0x424d35['id'],_0x2a77d1));const _0x3981f6=_0x12b55f[_0x629bed(0x151)](_0x424d35[_0x629bed(0x173)],_0x18c470),_0x3d9797=new _0xfa83fa(_0x3566fa,_0x424d35,_0x18c470,_0x3981f6),_0x4e989c=_0x424d35[_0x629bed(0x135)]()[_0x629bed(0x11e)](_0x20ee5a=>_0x20ee5a[_0x629bed(0xfc)]);_0x18c470[_0x629bed(0x153)]=_0x3566fa[_0x629bed(0x11d)][_0x629bed(0x18f)](_0x629bed(0xfd))[_0x629bed(0xfb)][_0x629bed(0x116)](_0x4e989c),this[_0x629bed(0x180)][_0x629bed(0x19d)](_0x424d35,_0x3d9797),this[_0x629bed(0x17d)][_0x629bed(0x19d)](_0x18c470,_0x3d9797),_0x59616e=_0x58d385[_0x629bed(0x12e)]({'view':_0x2a77d1,'target':()=>{const _0x2a52a6=_0x629bed,_0x18cf82=[],_0x3047a5=_0x424d35[_0x2a52a6(0x135)]()[_0x2a52a6(0x11e)](_0x172cb8=>_0x172cb8[_0x2a52a6(0xfc)]);for(const _0x5c565c of _0x3047a5)_0x18cf82[_0x2a52a6(0x120)](..._0x5c565c[_0x2a52a6(0x189)]());return _0x2ae987(_0x3566fa[_0x2a52a6(0x162)],_0x18cf82);},'type':()=>_0x629bed(0xfe)+_0x3d9797[_0x629bed(0x115)][_0x629bed(0x14b)]}),_0x12b55f[_0x629bed(0x186)](_0x18c470,_0x59616e),_0x58d385[_0x629bed(0x178)](_0x59616e),_0x125a9b[_0x629bed(0x16b)](_0x59616e);}[_0x4c7a2e(0x176)](_0x36358c){const _0x45a7b1=_0x4c7a2e,_0x6850dd=this[_0x45a7b1(0x1aa)][_0x45a7b1(0x11d)][_0x45a7b1(0x18f)](_0x45a7b1(0x113)),_0x1d4a9f=this[_0x45a7b1(0x1aa)][_0x45a7b1(0x11d)][_0x45a7b1(0x18f)](_0x45a7b1(0x127)),_0x5570b4=this[_0x45a7b1(0x180)][_0x45a7b1(0x18f)](_0x36358c),_0x1919c9=_0x5570b4[_0x45a7b1(0x115)],_0x3d4bb3=_0x1d4a9f[_0x45a7b1(0x166)](_0x1919c9);_0x6850dd[_0x45a7b1(0x18d)](_0x1919c9),_0x3d4bb3&&_0x1d4a9f[_0x45a7b1(0x107)](_0x3d4bb3),this[_0x45a7b1(0x180)][_0x45a7b1(0x17f)](_0x36358c),this[_0x45a7b1(0x17d)][_0x45a7b1(0x17f)](_0x1919c9),_0x5570b4[_0x45a7b1(0x18a)]();}[_0x4c7a2e(0x187)](_0x181de0){const _0x268379=_0x4c7a2e;if(!_0x181de0[_0x268379(0xfc)]||!this[_0x268379(0x180)][_0x268379(0x149)](_0x181de0))return;const _0x36a486=this[_0x268379(0x1aa)][_0x268379(0x11d)][_0x268379(0x18f)](_0x268379(0xfd)),_0x46c460=this[_0x268379(0x180)][_0x268379(0x18f)](_0x181de0),_0x532554=_0x181de0[_0x268379(0x135)]();_0x46c460[_0x268379(0x115)][_0x268379(0x153)]=_0x36a486[_0x268379(0xfb)][_0x268379(0x116)](_0x532554);}[_0x4c7a2e(0x18a)](){const _0x586dcb=_0x4c7a2e;for(const _0x3ce37c of this[_0x586dcb(0x180)][_0x586dcb(0x154)]())this[_0x586dcb(0x176)](_0x3ce37c);for(const _0x19642f of this[_0x586dcb(0x125)][_0x586dcb(0x117)]())_0x19642f[_0x586dcb(0x159)][_0x586dcb(0x18a)]();super[_0x586dcb(0x18a)](),this[_0x586dcb(0x150)]&&clearInterval(this[_0x586dcb(0x150)]);}}function _0x4803(){const _0x511ae8=['isOn','suggestionLoaded','suggestionChanged','innerView','source','Accept\x20all\x20selected\x20suggestions','58309BiHMLL','editor','comments','addSourceCollector','descriptionFactory','isInContent','TrackChangesEditing','suggestion-','trackChanges','actionView','_createMenuBarMenu','menu','Discard\x20all\x20suggestions','_refreshActiveMarkers','items','change:activeAnnotations','remove','toMany','button','pluginName','change:previous','panelView','_handleSuggestionControllerDelayed','init','bind','evaluationLimit','trackChanges.SuggestionThreadView','SuggestionView','CommentsRepository','3362447gALNji','view','getDescriptions','values','TrackChangesUI','commandName','Preview\x20final\x20content','217wICaGA','60gChbFq','plugins','filter','stopListening','push','548876PbkzGS','_addUIComponentsToFactory','addMany','getFirstRange','_annotationViews','define','Annotations','activeMarkers','model','arrowView','lowest','refreshSelectedViews','licenseKey','createAnnotation','length','config','4023290yJUYAj','featureNotAllowed','getRanges','activeAnnotations','getAllAdjacentSuggestions','CommentView','fire','hasSuggestion','trackChanges.disableComments','_createToolbarButton','TrackChangesPreview','commands','SuggestionThreadView','isOfficialPlugin','6KzFNgP','Track\x20changes','discardSelectedSuggestions','trackChanges.SuggestionView','_showLicenseError','delegate','CommentsUI','isPremiumPlugin','comments.maxCommentCharsWhenCollapsed','comments.maxThreadTotalWeight','has','menuitemcheckbox','type','trackChangesLicenseKeyEvaluationLimit','getMarkerNames','EditorAnnotations','unbind','_licenseKeyCheckInterval','createCommentThreadController','execute','descriptionParts','keys','getJoined','previewFinalContent','head','trackChangesLicenseKeyValid','mainView','createAnnotationView','escape','TrackChanges','suggestionView','acceptButton','trackChangesLicenseKeyNotAllowed','suggestionUnloaded','trackChangesLicenseKeyInvalid','editing','_initializeController','comments.maxCommentsWhenCollapsed','commentsListView','getByInnerView','menuitem','discardAllSuggestions','clear','isEnabled','registerAnnotation','invalid','previous','comments.editorConfig','_handleControllerBuffer','222UEDkQe','menuBar:trackChanges','acceptAllSuggestions','commentThread','trialLimit','some','_destroyController','discardButton','add','Accept\x20all\x20suggestions','_disableComments','getSuggestion','80TloGHa','_viewToController','acceptSelectedSuggestions','delete','_suggestionToController','size','domainLimit','Discard\x20all\x20selected\x20suggestions','trackChangesLicenseKeyTrialLimit','locale','_bindAnnotationToEditors','_updateController','switchbutton','getMarkers','destroy','buttonView','isDirty','_unbindEditors','addComment','get','trackChangesLicenseKeyExpired','27292DWRpFM','children','isMultiRange','trackChangesLicenseKeyDomainLimit','expired','reduce','21848IDuHIy','listenTo','componentFactory','focus','value','from','set','requires','usageLimit','trackChangesLicenseKeyUsageLimit','separator','76050AkqkmL'];_0x4803=function(){return _0x511ae8;};return _0x4803();}function ke(_0x24b4fc){const _0x5c9717=_0x4c7a2e;return _0x5c9717(0x129)in _0x24b4fc;}