@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 22.4 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 _0x24208e=_0x3f61;(function(_0x1b0183,_0x36aac4){const _0x442bf6=_0x3f61,_0x39c9a6=_0x1b0183();while(!![]){try{const _0x4c063a=-parseInt(_0x442bf6(0x12f))/0x1*(parseInt(_0x442bf6(0x107))/0x2)+parseInt(_0x442bf6(0xc9))/0x3+-parseInt(_0x442bf6(0x81))/0x4+parseInt(_0x442bf6(0xe0))/0x5*(parseInt(_0x442bf6(0xb0))/0x6)+-parseInt(_0x442bf6(0xeb))/0x7*(parseInt(_0x442bf6(0xcb))/0x8)+parseInt(_0x442bf6(0x91))/0x9+parseInt(_0x442bf6(0xa6))/0xa;if(_0x4c063a===_0x36aac4)break;else _0x39c9a6['push'](_0x39c9a6['shift']());}catch(_0x3c08f4){_0x39c9a6['push'](_0x39c9a6['shift']());}}}(_0x2a48,0xe22fb));import{Plugin as _0x2f3f64}from'ckeditor5/src/core.js';import{Collection as _0x330153}from'ckeditor5/src/utils.js';import{IconTrackChanges as _0x27361b}from'ckeditor5/src/icons.js';import{addListToDropdown as _0x25d4ac,createDropdown as _0x20c4d6,ListSeparatorView as _0x589882,MenuBarMenuView as _0x45492f,MenuBarMenuListView as _0xe00313,MenuBarMenuListItemView as _0x48a648,MenuBarMenuListItemButtonView as _0x5240f6,SplitButtonView as _0x2262ae,UIModel as _0x27603b}from'ckeditor5/src/ui.js';function _0x2a48(){const _0x351c0d=['Discard\x20all\x20suggestions','Accept\x20all\x20selected\x20suggestions','acceptSelectedSuggestions','_createToolbarButton','TrackChanges','_disableComments','isEnabled','getJoined','commands','suggestionView','14195844aDsjHJ','children','suggestion-','trackChangesLicenseKeyValid','_addUIComponentsToFactory','discardSelectedSuggestions','filter','getMarkers','add','activeMarkers','bind','isOfficialPlugin','createAnnotation','mainView','suggestionChanged','innerView','delete','_showLicenseError','head','featureNotAllowed','getFirstRange','1784890PiGpzb','switchbutton','lowest','commentsListView','has','values','trackChangesLicenseKeyNotAllowed','_updateController','createCommentThreadController','CommentsRepository','470958bOVCyX','define','locale','commandName','_handleSuggestionControllerDelayed','_bindAnnotationToEditors','comments.maxCommentCharsWhenCollapsed','clear','editing','some','discardButton','licenseKey','get','size','comments.maxCommentsWhenCollapsed','addSourceCollector','activeAnnotations','commentThread','value','getAllAdjacentSuggestions','_createMenuBarMenu','getByInnerView','CommentView','trackChanges','Preview\x20final\x20content','922194JzpWPW','trackChanges.disableComments','1685144syAFpt','refreshSelectedViews','addMany','trackChanges.SuggestionView','push','panelView','createAnnotationView','model','domainLimit','trackChangesLicenseKeyEvaluationLimit','componentFactory','isPremiumPlugin','isOn','addComment','_handleControllerBuffer','TrackChangesUI','SuggestionView','listenTo','TrackChangesEditing','editor','previous','50LyOaWd','focus','_unbindEditors','stopListening','CommentsUI','destroy','trackChangesLicenseKeyTrialLimit','isInContent','trackChangesLicenseKeyUsageLimit','keys','comments.maxThreadTotalWeight','14EBXllr','trialLimit','set','hasSuggestion','suggestionLoaded','init','change:previous','type','remove','trackChangesLicenseKeyInvalid','discardAllSuggestions','_destroyController','config','getSuggestion','trackChangesLicenseKeyDomainLimit','menuBar:trackChanges','_annotationViews','button','escape','TrackChangesPreview','toMany','fire','actionView','previewFinalContent','EditorAnnotations','evaluationLimit','comments','invalid','2GinsYG','suggestionUnloaded','separator','delegate','pluginName','unbind','Accept\x20all\x20suggestions','_licenseKeyCheckInterval','source','view','menuitem','Discard\x20all\x20selected\x20suggestions','_initializeController','getMarkerNames','arrowView','Track\x20changes','items','isDirty','getAnnotationForSuggestion','trackChangesLicenseKeyExpired','descriptionParts','trackChanges.SuggestionThreadView','comments.editorConfig','requires','menu','SuggestionThreadView','acceptAllSuggestions','from','Annotations','acceptButton','plugins','menuitemcheckbox','usageLimit','getSuggestionForAnnotation','_viewToController','reduce','expired','buttonView','descriptionFactory','_refreshActiveMarkers','1413664PcjDmd','getDescriptions','_suggestionToController','isMultiRange','346896uEMrKm','change:activeAnnotations','registerAnnotation','getRanges','execute','length'];_0x2a48=function(){return _0x351c0d;};return _0x2a48();}import{Users as _0x333e76,getDateTimeFormatter as _0x490225,getAllMarkersDomElementsSorted as _0x1aadad}from'ckeditor5-collaboration/src/collaboration-core.js';import{TrackChangesEditing as _0x1f971f}from'./trackchangesediting.js';import{SuggestionController as _0x24dedd}from'./ui/suggestioncontroller.js';import{SuggestionThreadView as _0x37c125}from'./ui/view/suggestionthreadview.js';import{SuggestionView as _0x9f3b7a}from'./ui/view/suggestionview.js';import{getTranslation as _0x24cdd4}from'./utils/common-translations.js';function _0x3f61(_0x257d7b,_0x51120d){const _0x2a48d8=_0x2a48();return _0x3f61=function(_0x3f61ae,_0x33915b){_0x3f61ae=_0x3f61ae-0x80;let _0x310676=_0x2a48d8[_0x3f61ae];return _0x310676;},_0x3f61(_0x257d7b,_0x51120d);}export class TrackChangesUI extends _0x2f3f64{[_0x24208e(0xbb)];[_0x24208e(0x10e)];[_0x24208e(0x131)];[_0x24208e(0x129)];[_0x24208e(0xfb)];[_0x24208e(0xd9)];[_0x24208e(0x8c)];static get[_0x24208e(0x11e)](){const _0x51e85e=_0x24208e;return[_0x1f971f,_0x333e76,_0x51e85e(0xaf),_0x51e85e(0x123),_0x51e85e(0x103)];}static get[_0x24208e(0x10b)](){const _0x2d10d2=_0x24208e;return _0x2d10d2(0xda);}static get[_0x24208e(0x9c)](){return!0x0;}static get[_0x24208e(0xd6)](){return!0x0;}constructor(_0x4cd2b7){const _0x182b2c=_0x24208e;super(_0x4cd2b7),this[_0x182b2c(0x131)]=new Map(),this[_0x182b2c(0x129)]=new Map(),this[_0x182b2c(0xfb)]=new Map(),this[_0x182b2c(0xd9)]=new Map();const _0xc6c136=this[_0x182b2c(0xde)][_0x182b2c(0xf7)];_0xc6c136[_0x182b2c(0xb1)](_0x182b2c(0x11c),_0x37c125),_0xc6c136[_0x182b2c(0xb1)](_0x182b2c(0xce),_0x9f3b7a),_0xc6c136[_0x182b2c(0xb1)](_0x182b2c(0xca),!0x1),this[_0x182b2c(0x8c)]=_0xc6c136[_0x182b2c(0xbc)](_0x182b2c(0xca));}[_0x24208e(0xb4)](_0x19f0f6,_0x5a457f){const _0x3c7dab=_0x24208e;0x0===this[_0x3c7dab(0xd9)][_0x3c7dab(0xbd)]&&setTimeout(()=>{const _0x58cf57=_0x3c7dab;for(const [_0xc69843,_0x2c0f66]of this[_0x58cf57(0xd9)]){const _0x4b0865=this[_0x58cf57(0x131)][_0x58cf57(0xaa)](_0xc69843);_0x4b0865||_0x2c0f66?_0x4b0865&&_0x2c0f66&&this[_0x58cf57(0xf6)](_0xc69843):this[_0x58cf57(0x113)](_0xc69843);}this[_0x58cf57(0xd9)][_0x58cf57(0xb7)](),this[_0x58cf57(0xde)][_0x58cf57(0x125)][_0x58cf57(0xbc)](_0x58cf57(0x103))[_0x58cf57(0xcc)](),this[_0x58cf57(0x12e)]();},0xa),this[_0x3c7dab(0xd9)][_0x3c7dab(0xed)](_0x19f0f6,_0x5a457f);}[_0x24208e(0xf0)](){const _0x1834bd=_0x24208e,_0x5921b4=this[_0x1834bd(0xde)],_0x38cfe7=_0x5921b4[_0x1834bd(0x125)][_0x1834bd(0xbc)](_0x1834bd(0xdd)),_0xeeed82=_0x5921b4[_0x1834bd(0x125)][_0x1834bd(0xbc)](_0x1834bd(0x123)),_0x317d46=_0x5921b4[_0x1834bd(0x125)][_0x1834bd(0xbc)](_0x1834bd(0x103)),_0x323b56=_0x5921b4[_0x1834bd(0x125)][_0x1834bd(0xbc)](_0x1834bd(0xaf));this[_0x1834bd(0x95)](),_0x317d46[_0x1834bd(0xbf)](()=>{const _0xdb75c1=_0x1834bd,_0x574dfc=[];for(const [_0x121764,_0x13581d]of Array[_0xdb75c1(0x122)](this[_0xdb75c1(0x131)])){const _0x3d6cba=_0x121764[_0xdb75c1(0xc3)](),_0xb4d109=[];for(const _0xb5356 of _0x3d6cba){if(!_0xb5356[_0xdb75c1(0xe7)])continue;if(_0xb5356[_0xdb75c1(0x80)]){_0xb4d109[_0xdb75c1(0xcf)](..._0xb5356[_0xdb75c1(0x84)]());continue;}const _0x51cb65=_0xb5356[_0xdb75c1(0xa5)]();if(_0xb4d109[_0xdb75c1(0x86)]>0x0){const _0x530398=_0xb4d109[0x0][_0xdb75c1(0x8e)](_0x51cb65);if(_0x530398){_0xb4d109[0x0]=_0x530398;continue;}}_0xb4d109[_0xdb75c1(0xcf)](_0x51cb65);}_0x574dfc[_0xdb75c1(0xcf)]([_0x13581d[_0xdb75c1(0x110)],_0xb4d109]);}return _0x574dfc;}),this[_0x1834bd(0xdc)](_0x38cfe7,_0x1834bd(0xef),(_0x1bfbaf,_0x438cec)=>{const _0x1a6ff5=_0x1834bd;this[_0x1a6ff5(0xdc)](_0x438cec,_0x1a6ff5(0xf1),(_0x1caaee,_0x1a3298,_0x387a69,_0x4d94d8)=>{const _0xff2931=_0x1a6ff5;_0x438cec[_0xff2931(0xe7)]&&(null==_0x387a69?(this[_0xff2931(0xad)](_0x4d94d8[_0xff2931(0xa3)]),this[_0xff2931(0xb4)](_0x438cec,!0x1)):(this[_0xff2931(0xad)](_0x387a69[_0xff2931(0xa3)]),null==_0x4d94d8&&this[_0xff2931(0xb4)](_0x438cec,!0x0)));}),null!==_0x438cec[_0x1a6ff5(0xdf)]?this[_0x1a6ff5(0xad)](_0x438cec[_0x1a6ff5(0xa3)]):this[_0x1a6ff5(0xb4)](_0x438cec,!0x1);}),this[_0x1834bd(0xdc)](_0x38cfe7,_0x1834bd(0x108),(_0x12d3f5,_0x292462,_0x2f3493)=>{const _0x537bee=_0x1834bd;this[_0x537bee(0xe3)](_0x292462,_0x537bee(0xf1)),this[_0x537bee(0xd9)][_0x537bee(0xa1)](_0x292462),this[_0x537bee(0x131)][_0x537bee(0xaa)](_0x292462)&&this[_0x537bee(0xf6)](_0x292462),_0x2f3493&&this[_0x537bee(0xad)](_0x2f3493[_0x537bee(0xa3)]);}),this[_0x1834bd(0xdc)](_0x38cfe7,_0x1834bd(0x9f),(_0x19bfab,_0x57e391)=>{const _0x406106=_0x1834bd;this[_0x406106(0xad)](_0x57e391);}),this[_0x1834bd(0xdc)](_0xeeed82,_0x1834bd(0x82),()=>{const _0x7b8028=_0x1834bd;this[_0x7b8028(0x12e)]();}),this[_0x1834bd(0xdc)](_0x323b56,_0x1834bd(0xd8),(_0x39f0dd,{threadId:_0x493e71,isFromAdapter:_0x4f703})=>{const _0x3278b2=_0x1834bd;if(_0x4f703||!_0x38cfe7[_0x3278b2(0xee)](_0x493e71))return;const _0x3e93b2=_0x38cfe7[_0x3278b2(0xf8)](_0x493e71);this[_0x3278b2(0x131)][_0x3278b2(0xbc)](_0x3e93b2)[_0x3278b2(0x110)][_0x3278b2(0xa9)][_0x3278b2(0xe1)](-0x1);},{'priority':_0x1834bd(0xa8)}),this[_0x1834bd(0xbb)]=this[_0x1834bd(0xde)][_0x1834bd(0xf7)][_0x1834bd(0xbc)](_0x1834bd(0xbb));const _0x320b06=this[_0x1834bd(0xde)];this[_0x1834bd(0x10e)]=setInterval(()=>{const _0x83ebea=_0x1834bd;let _0x55b625;for(const _0x4fbc84 in _0x320b06){const _0x942828=_0x4fbc84,_0x172a9e=_0x320b06[_0x942828];if(_0x83ebea(0x94)==_0x172a9e||_0x83ebea(0xf4)==_0x172a9e||_0x83ebea(0x11a)==_0x172a9e||_0x83ebea(0xf9)==_0x172a9e||_0x83ebea(0xac)==_0x172a9e||_0x83ebea(0xd4)==_0x172a9e||_0x83ebea(0xe6)==_0x172a9e||_0x83ebea(0xe8)==_0x172a9e){delete _0x320b06[_0x942828],_0x55b625=_0x172a9e,clearInterval(this[_0x83ebea(0x10e)]),this[_0x83ebea(0x10e)]=void 0x0;break;}}_0x83ebea(0xf4)==_0x55b625&&_0x320b06[_0x83ebea(0xa2)](_0x83ebea(0x106)),_0x83ebea(0x11a)==_0x55b625&&_0x320b06[_0x83ebea(0xa2)](_0x83ebea(0x12b)),_0x83ebea(0xf9)==_0x55b625&&_0x320b06[_0x83ebea(0xa2)](_0x83ebea(0xd3)),_0x83ebea(0xac)==_0x55b625&&_0x320b06[_0x83ebea(0xa2)](_0x83ebea(0xa4),_0x83ebea(0x8b)),_0x83ebea(0xd4)==_0x55b625&&_0x320b06[_0x83ebea(0xa2)](_0x83ebea(0x104)),_0x83ebea(0xe6)==_0x55b625&&_0x320b06[_0x83ebea(0xa2)](_0x83ebea(0xec)),_0x83ebea(0xe8)==_0x55b625&&_0x320b06[_0x83ebea(0xa2)](_0x83ebea(0x127));},0x3e8);}[_0x24208e(0x119)](_0x40d69f){const _0x484b25=_0x24208e,_0x3e20ad=this[_0x484b25(0x131)][_0x484b25(0xbc)](_0x40d69f);if(!_0x3e20ad)return null;return this[_0x484b25(0xde)][_0x484b25(0x125)][_0x484b25(0xbc)](_0x484b25(0x123))[_0x484b25(0xc5)](_0x3e20ad[_0x484b25(0x110)])||null;}[_0x24208e(0x128)](_0x2e8049){const _0x31057c=_0x24208e,_0x375f5f=this[_0x31057c(0x129)][_0x31057c(0xbc)](_0x2e8049[_0x31057c(0xa0)]);return _0x375f5f?_0x375f5f[_0x31057c(0xd2)]:null;}[_0x24208e(0x12e)](){const _0x59a456=_0x24208e,_0x4e4554=this[_0x59a456(0xde)][_0x59a456(0x125)][_0x59a456(0xbc)](_0x59a456(0x123)),_0x190171=this[_0x59a456(0xde)][_0x59a456(0x125)][_0x59a456(0xbc)](_0x59a456(0xdd)),_0x5adb25=Array[_0x59a456(0x122)](_0x4e4554[_0x59a456(0xc0)],_0x4f39df=>_0x4f39df[_0x59a456(0xa0)])[_0x59a456(0x97)](_0x140965=>this[_0x59a456(0x129)][_0x59a456(0xaa)](_0x140965)),_0x50e699=[];for(const _0xd81f63 of _0x5adb25){const _0x485e28=this[_0x59a456(0x129)][_0x59a456(0xbc)](_0xd81f63)[_0x59a456(0xd2)][_0x59a456(0xc3)]();_0x50e699[_0x59a456(0xcf)](..._0x485e28[_0x59a456(0x12a)]((_0x3a9d15,_0x268346)=>[..._0x3a9d15,..._0x268346[_0x59a456(0x114)]()],[]));}_0x190171[_0x59a456(0x9a)]=_0x50e699;}[_0x24208e(0x95)](){const _0x2a9362=_0x24208e,_0x440b80=this[_0x2a9362(0xde)],_0x5dc12f=_0x440b80[_0x2a9362(0xb2)],_0x479d49=_0x24cdd4(_0x5dc12f,_0x2a9362(0x116)),_0x572e84=new _0x330153([{'type':_0x2a9362(0xa7),'model':new _0x27603b({'withText':!0x0,'isToggleable':!0x0,'label':_0x479d49,'commandName':_0x2a9362(0xc7),'role':_0x2a9362(0x126)})},{'type':_0x2a9362(0x109)},{'type':_0x2a9362(0xfc),'model':new _0x27603b({'withText':!0x0,'label':_0x24cdd4(_0x5dc12f,_0x2a9362(0x10d)),'commandName':_0x2a9362(0x121),'role':_0x2a9362(0x111)})},{'type':_0x2a9362(0xfc),'model':new _0x27603b({'withText':!0x0,'label':_0x24cdd4(_0x5dc12f,_0x2a9362(0x88)),'commandName':_0x2a9362(0x89),'role':_0x2a9362(0x111)})},{'type':_0x2a9362(0xfc),'model':new _0x27603b({'withText':!0x0,'label':_0x24cdd4(_0x5dc12f,_0x2a9362(0x87)),'commandName':_0x2a9362(0xf5),'role':_0x2a9362(0x111)})},{'type':_0x2a9362(0xfc),'model':new _0x27603b({'withText':!0x0,'label':_0x24cdd4(_0x5dc12f,_0x2a9362(0x112)),'commandName':_0x2a9362(0x96),'role':_0x2a9362(0x111)})}]);_0x440b80[_0x2a9362(0x125)][_0x2a9362(0xaa)](_0x2a9362(0xfe))&&_0x572e84[_0x2a9362(0xcd)]([{'type':_0x2a9362(0x109)},{'type':_0x2a9362(0xfc),'model':new _0x27603b({'withText':!0x0,'label':_0x24cdd4(_0x5dc12f,_0x2a9362(0xc8)),'commandName':_0x2a9362(0x102),'role':_0x2a9362(0x111)})}]);for(const _0xbfbd3e of _0x572e84)if(ke(_0xbfbd3e)){const _0x9a4a19=_0x440b80[_0x2a9362(0x8f)][_0x2a9362(0xbc)](_0xbfbd3e[_0x2a9362(0xd2)][_0x2a9362(0xb3)]);_0xbfbd3e[_0x2a9362(0xd2)][_0x2a9362(0x9b)](_0x2a9362(0xd7),_0x2a9362(0x8d))['to'](_0x9a4a19,_0x2a9362(0xc2),_0x2a9362(0x8d));}_0x440b80['ui'][_0x2a9362(0xd5)][_0x2a9362(0x99)](_0x2a9362(0xc7),_0xfee260=>this[_0x2a9362(0x8a)](_0xfee260,_0x572e84,_0x479d49)),_0x440b80['ui'][_0x2a9362(0xd5)][_0x2a9362(0x99)](_0x2a9362(0xfa),_0x3dd783=>this[_0x2a9362(0xc4)](_0x3dd783,_0x572e84,_0x479d49));}[_0x24208e(0x8a)](_0x5287e9,_0x30149b,_0x3a7b67){const _0x773a0d=_0x24208e,_0x432e79=_0x20c4d6(_0x5287e9,_0x2262ae),_0x2a50cc=this[_0x773a0d(0xde)][_0x773a0d(0x8f)][_0x773a0d(0xbc)](_0x773a0d(0xc7));_0x432e79[_0x773a0d(0x12c)][_0x773a0d(0xed)]({'tooltip':_0x3a7b67,'label':_0x3a7b67,'icon':_0x27361b}),_0x432e79[_0x773a0d(0x12c)][_0x773a0d(0x9b)](_0x773a0d(0xd7))['to'](_0x2a50cc,_0x773a0d(0xc2)),_0x432e79[_0x773a0d(0x12c)]['on'](_0x773a0d(0x85),()=>{const _0x557345=_0x773a0d;_0x2a50cc[_0x557345(0x85)](),this[_0x557345(0xde)][_0x557345(0xb8)][_0x557345(0x110)][_0x557345(0xe1)]();}),_0x25d4ac(_0x432e79,_0x30149b,{'role':_0x773a0d(0x11f)});const _0x40868b=[];for(const _0x102793 of _0x30149b)ke(_0x102793)&&_0x40868b[_0x773a0d(0xcf)](this[_0x773a0d(0xde)][_0x773a0d(0x8f)][_0x773a0d(0xbc)](_0x102793[_0x773a0d(0xd2)][_0x773a0d(0xb3)]));const _0x4e7a1b=_0x432e79[_0x773a0d(0x12c)];return _0x4e7a1b[_0x773a0d(0x101)][_0x773a0d(0x10c)](_0x773a0d(0x8d)),_0x4e7a1b[_0x773a0d(0x115)][_0x773a0d(0x10c)](_0x773a0d(0x8d)),_0x4e7a1b[_0x773a0d(0x101)][_0x773a0d(0x9b)](_0x773a0d(0x8d))['to'](_0x2a50cc,_0x773a0d(0x8d)),_0x4e7a1b[_0x773a0d(0x115)][_0x773a0d(0x9b)](_0x773a0d(0x8d))[_0x773a0d(0xff)](_0x40868b,_0x773a0d(0x8d),(..._0x33077d)=>_0x33077d[_0x773a0d(0xb9)](_0x555c40=>_0x555c40)),_0x432e79['on'](_0x773a0d(0x85),_0x55cb3f=>{const _0x3779d2=_0x773a0d;this[_0x3779d2(0xde)][_0x3779d2(0x85)](_0x55cb3f[_0x3779d2(0x10f)][_0x3779d2(0xb3)]),this[_0x3779d2(0xde)][_0x3779d2(0xb8)][_0x3779d2(0x110)][_0x3779d2(0xe1)]();}),_0x432e79;}[_0x24208e(0xc4)](_0x11ea11,_0x1e0b5a,_0x242356){const _0x158a24=_0x24208e,_0x254d98=new _0x45492f(_0x11ea11),_0x298773=this[_0x158a24(0xde)][_0x158a24(0x8f)][_0x158a24(0xbc)](_0x158a24(0xc7));_0x254d98[_0x158a24(0x12c)][_0x158a24(0xed)]({'label':_0x242356,'icon':_0x27361b});const _0x2732e5=new _0xe00313(_0x11ea11);for(const _0x4b7614 of _0x1e0b5a){if(_0x158a24(0x109)==_0x4b7614[_0x158a24(0xf2)]){_0x2732e5[_0x158a24(0x117)][_0x158a24(0x99)](new _0x589882(_0x11ea11));continue;}const _0x196257=new _0x48a648(_0x11ea11,_0x254d98),_0x392ea0=new _0x5240f6(_0x11ea11),_0x5125c8=_0x4b7614[_0x158a24(0xd2)];_0x392ea0[_0x158a24(0x9b)](...Object[_0x158a24(0xe9)](_0x5125c8))['to'](_0x5125c8),_0x392ea0[_0x158a24(0x10a)](_0x158a24(0x85))['to'](_0x254d98),_0x392ea0['on'](_0x158a24(0x85),()=>{const _0x26942c=_0x158a24;this[_0x26942c(0xde)][_0x26942c(0x85)](_0x5125c8[_0x26942c(0xb3)]),this[_0x26942c(0xde)][_0x26942c(0xb8)][_0x26942c(0x110)][_0x26942c(0xe1)]();}),_0x196257[_0x158a24(0x92)][_0x158a24(0x99)](_0x392ea0),_0x2732e5[_0x158a24(0x117)][_0x158a24(0x99)](_0x196257);}return _0x254d98[_0x158a24(0x9b)](_0x158a24(0x8d))['to'](_0x298773,_0x158a24(0x8d)),_0x254d98[_0x158a24(0xd0)][_0x158a24(0x92)][_0x158a24(0x99)](_0x2732e5),_0x254d98;}[_0x24208e(0x113)](_0x5b1279){const _0x4d4f56=_0x24208e,_0x340780=this[_0x4d4f56(0xde)],_0xbfe7e6=_0x340780[_0x4d4f56(0xf7)],_0x2b4825=_0x340780[_0x4d4f56(0x125)][_0x4d4f56(0xbc)](_0x4d4f56(0x123)),_0x25bb7f=_0x340780[_0x4d4f56(0x125)][_0x4d4f56(0xbc)](_0x4d4f56(0xaf)),_0x43ce24=_0x340780[_0x4d4f56(0x125)][_0x4d4f56(0xbc)](_0x4d4f56(0x103)),_0x156930=_0x340780[_0x4d4f56(0x125)][_0x4d4f56(0xbc)](_0x333e76)['me'],_0xca0234=_0xbfe7e6[_0x4d4f56(0xbc)](_0x4d4f56(0xc7))[_0x4d4f56(0x120)],_0x52e8b5=_0xbfe7e6[_0x4d4f56(0xbc)](_0x4d4f56(0xc7))[_0x4d4f56(0xdb)],{CommentsListView:_0x563d1b,CommentThreadInputView:_0x17d5d2}=_0x340780[_0x4d4f56(0x125)][_0x4d4f56(0xbc)](_0x4d4f56(0xe4));let _0x31ffce,_0x5db264,_0x2e3ee7;this[_0x4d4f56(0xfb)][_0x4d4f56(0xaa)](_0x5b1279['id'])?(_0x5db264=this[_0x4d4f56(0xfb)][_0x4d4f56(0xbc)](_0x5b1279['id']),_0x31ffce=_0x5db264[_0x4d4f56(0x9e)]):(_0x31ffce=new _0xca0234(_0x340780[_0x4d4f56(0xb2)],_0x5b1279,_0x156930,{'disableComments':this[_0x4d4f56(0x8c)],'editorConfig':{..._0xbfe7e6[_0x4d4f56(0xbc)](_0x4d4f56(0x11d)),'licenseKey':_0xbfe7e6[_0x4d4f56(0xbc)](_0x4d4f56(0xbb))},'maxCommentsWhenCollapsed':_0xbfe7e6[_0x4d4f56(0xbc)](_0x4d4f56(0xbe)),'maxThreadTotalWeight':_0xbfe7e6[_0x4d4f56(0xbc)](_0x4d4f56(0xea)),'maxCommentCharsWhenCollapsed':_0xbfe7e6[_0x4d4f56(0xbc)](_0x4d4f56(0xb6)),'formatDateTime':_0x490225(_0xbfe7e6[_0x4d4f56(0xbc)](_0x4d4f56(0xb2)),_0x340780[_0x4d4f56(0xb2)]),'CommentView':_0xbfe7e6[_0x4d4f56(0xbc)](_0x4d4f56(0x105))[_0x4d4f56(0xc6)],'CommentsListView':_0x563d1b,'CommentThreadInputView':_0x17d5d2,'SuggestionView':_0x52e8b5}),_0x31ffce[_0x4d4f56(0x90)][_0x4d4f56(0x124)]['on'](_0x4d4f56(0x85),()=>{const _0x5c327b=_0x4d4f56;_0x340780[_0x5c327b(0xb8)][_0x5c327b(0x110)][_0x5c327b(0xe1)]();}),_0x31ffce[_0x4d4f56(0x90)][_0x4d4f56(0xba)]['on'](_0x4d4f56(0x85),()=>{const _0x1784d4=_0x4d4f56;_0x340780[_0x1784d4(0xb8)][_0x1784d4(0x110)][_0x1784d4(0xe1)]();}),_0x5db264=_0x2b4825[_0x4d4f56(0xd1)](this[_0x4d4f56(0xde)][_0x4d4f56(0xb2)],_0x31ffce),_0x5db264[_0x4d4f56(0x9b)](_0x4d4f56(0x118))['to'](_0x31ffce,_0x4d4f56(0x118)),_0x5db264[_0x4d4f56(0x9b)](_0x4d4f56(0x86))['to'](_0x31ffce),_0x5db264[_0x4d4f56(0x9b)](_0x4d4f56(0xf2))['to'](_0x31ffce,_0x4d4f56(0xf2),_0x4429db=>_0x4d4f56(0x93)+_0x4429db),_0x31ffce['on'](_0x4d4f56(0xfd),()=>{const _0x2c78d4=_0x4d4f56;_0x2e3ee7[_0x2c78d4(0x100)](_0x2c78d4(0xfd));}),this[_0x4d4f56(0xfb)][_0x4d4f56(0xed)](_0x5b1279['id'],_0x5db264));const _0x2bd9ae=_0x25bb7f[_0x4d4f56(0xae)](_0x5b1279[_0x4d4f56(0xc1)],_0x31ffce),_0x2485be=new _0x24dedd(_0x340780,_0x5b1279,_0x31ffce,_0x2bd9ae),_0x4c8ff7=_0x5b1279[_0x4d4f56(0xc3)]()[_0x4d4f56(0x97)](_0x165bbe=>_0x165bbe[_0x4d4f56(0xe7)]);_0x31ffce[_0x4d4f56(0x11b)]=_0x340780[_0x4d4f56(0x125)][_0x4d4f56(0xbc)](_0x4d4f56(0xdd))[_0x4d4f56(0x12d)][_0x4d4f56(0x130)](_0x4c8ff7),this[_0x4d4f56(0x131)][_0x4d4f56(0xed)](_0x5b1279,_0x2485be),this[_0x4d4f56(0x129)][_0x4d4f56(0xed)](_0x31ffce,_0x2485be),_0x2e3ee7=_0x2b4825[_0x4d4f56(0x9d)]({'view':_0x5db264,'target':()=>{const _0x55beb3=_0x4d4f56,_0x5438f3=[],_0x217904=_0x5b1279[_0x55beb3(0xc3)]()[_0x55beb3(0x97)](_0x5f1e76=>_0x5f1e76[_0x55beb3(0xe7)]);for(const _0x3447a9 of _0x217904)_0x5438f3[_0x55beb3(0xcf)](..._0x3447a9[_0x55beb3(0x98)]());return _0x1aadad(_0x340780[_0x55beb3(0xb8)],_0x5438f3);},'type':()=>_0x4d4f56(0x93)+_0x2485be[_0x4d4f56(0x110)][_0x4d4f56(0xf2)]}),_0x25bb7f[_0x4d4f56(0xb5)](_0x31ffce,_0x2e3ee7),_0x2b4825[_0x4d4f56(0x99)](_0x2e3ee7),_0x43ce24[_0x4d4f56(0x83)](_0x2e3ee7);}[_0x24208e(0xf6)](_0x261055){const _0xcf7835=_0x24208e,_0x59ad18=this[_0xcf7835(0xde)][_0xcf7835(0x125)][_0xcf7835(0xbc)](_0xcf7835(0xaf)),_0x44936a=this[_0xcf7835(0xde)][_0xcf7835(0x125)][_0xcf7835(0xbc)](_0xcf7835(0x123)),_0x528d4d=this[_0xcf7835(0x131)][_0xcf7835(0xbc)](_0x261055),_0x5d3857=_0x528d4d[_0xcf7835(0x110)],_0x381682=_0x44936a[_0xcf7835(0xc5)](_0x5d3857);_0x59ad18[_0xcf7835(0xe2)](_0x5d3857),_0x381682&&_0x44936a[_0xcf7835(0xf3)](_0x381682),this[_0xcf7835(0x131)][_0xcf7835(0xa1)](_0x261055),this[_0xcf7835(0x129)][_0xcf7835(0xa1)](_0x5d3857),_0x528d4d[_0xcf7835(0xe5)]();}[_0x24208e(0xad)](_0x3ccbde){const _0x5eec75=_0x24208e;if(!_0x3ccbde[_0x5eec75(0xe7)]||!this[_0x5eec75(0x131)][_0x5eec75(0xaa)](_0x3ccbde))return;const _0x3e0061=this[_0x5eec75(0xde)][_0x5eec75(0x125)][_0x5eec75(0xbc)](_0x5eec75(0xdd)),_0x1d2968=this[_0x5eec75(0x131)][_0x5eec75(0xbc)](_0x3ccbde),_0x349558=_0x3ccbde[_0x5eec75(0xc3)]();_0x1d2968[_0x5eec75(0x110)][_0x5eec75(0x11b)]=_0x3e0061[_0x5eec75(0x12d)][_0x5eec75(0x130)](_0x349558);}[_0x24208e(0xe5)](){const _0x1b107b=_0x24208e;for(const _0x209f1d of this[_0x1b107b(0x131)][_0x1b107b(0xe9)]())this[_0x1b107b(0xf6)](_0x209f1d);for(const _0x5d02c2 of this[_0x1b107b(0xfb)][_0x1b107b(0xab)]())_0x5d02c2[_0x1b107b(0x9e)][_0x1b107b(0xe5)]();super[_0x1b107b(0xe5)](),this[_0x1b107b(0x10e)]&&clearInterval(this[_0x1b107b(0x10e)]);}}function ke(_0x58e0fe){const _0x5e2d3a=_0x24208e;return _0x5e2d3a(0xd2)in _0x58e0fe;}