@ckeditor/ckeditor5-real-time-collaboration 46.0.1-alpha.13 → 46.0.1-alpha.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-real-time-collaboration",
3
- "version": "46.0.1-alpha.13",
3
+ "version": "46.0.1-alpha.14",
4
4
  "description": "A set of CKEditor 5 features enabling real-time collaboration within the editor using CKEditor Cloud Services.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -47,19 +47,19 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "@ckeditor/ckeditor-cloud-services-collaboration": "53.0.0",
50
- "@ckeditor/ckeditor5-cloud-services": "46.0.1-alpha.13",
51
- "@ckeditor/ckeditor5-comments": "46.0.1-alpha.13",
52
- "@ckeditor/ckeditor5-core": "46.0.1-alpha.13",
53
- "@ckeditor/ckeditor5-editor-multi-root": "46.0.1-alpha.13",
54
- "@ckeditor/ckeditor5-engine": "46.0.1-alpha.13",
55
- "@ckeditor/ckeditor5-operations-compressor": "46.0.1-alpha.13",
56
- "@ckeditor/ckeditor5-revision-history": "46.0.1-alpha.13",
57
- "@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.13",
58
- "@ckeditor/ckeditor5-track-changes": "46.0.1-alpha.13",
59
- "@ckeditor/ckeditor5-ui": "46.0.1-alpha.13",
60
- "@ckeditor/ckeditor5-utils": "46.0.1-alpha.13",
61
- "ckeditor5": "46.0.1-alpha.13",
62
- "ckeditor5-collaboration": "46.0.1-alpha.13",
50
+ "@ckeditor/ckeditor5-cloud-services": "46.0.1-alpha.14",
51
+ "@ckeditor/ckeditor5-comments": "46.0.1-alpha.14",
52
+ "@ckeditor/ckeditor5-core": "46.0.1-alpha.14",
53
+ "@ckeditor/ckeditor5-editor-multi-root": "46.0.1-alpha.14",
54
+ "@ckeditor/ckeditor5-engine": "46.0.1-alpha.14",
55
+ "@ckeditor/ckeditor5-operations-compressor": "46.0.1-alpha.14",
56
+ "@ckeditor/ckeditor5-revision-history": "46.0.1-alpha.14",
57
+ "@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.14",
58
+ "@ckeditor/ckeditor5-track-changes": "46.0.1-alpha.14",
59
+ "@ckeditor/ckeditor5-ui": "46.0.1-alpha.14",
60
+ "@ckeditor/ckeditor5-utils": "46.0.1-alpha.14",
61
+ "ckeditor5": "46.0.1-alpha.14",
62
+ "ckeditor5-collaboration": "46.0.1-alpha.14",
63
63
  "es-toolkit": "1.39.5"
64
64
  },
65
65
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1fdc(_0x144832,_0x12b64f){const _0x54aa0c=_0x54aa();return _0x1fdc=function(_0x1fdc46,_0x6e6217){_0x1fdc46=_0x1fdc46-0x15f;let _0xe02588=_0x54aa0c[_0x1fdc46];return _0xe02588;},_0x1fdc(_0x144832,_0x12b64f);}const _0x34f42c=_0x1fdc;(function(_0x1acff8,_0x3e14ca){const _0x515962=_0x1fdc,_0x296034=_0x1acff8();while(!![]){try{const _0x35a2fd=parseInt(_0x515962(0x16f))/0x1+-parseInt(_0x515962(0x181))/0x2*(parseInt(_0x515962(0x165))/0x3)+-parseInt(_0x515962(0x184))/0x4+-parseInt(_0x515962(0x166))/0x5+-parseInt(_0x515962(0x16b))/0x6*(-parseInt(_0x515962(0x17d))/0x7)+parseInt(_0x515962(0x172))/0x8*(-parseInt(_0x515962(0x178))/0x9)+-parseInt(_0x515962(0x167))/0xa*(-parseInt(_0x515962(0x182))/0xb);if(_0x35a2fd===_0x3e14ca)break;else _0x296034['push'](_0x296034['shift']());}catch(_0x2296d7){_0x296034['push'](_0x296034['shift']());}}}(_0x54aa,0xc37aa));import{ListView as _0x405a1d,View as _0x5a88f4}from'ckeditor5/src/ui.js';import{global as _0x2a715b}from'ckeditor5/src/utils.js';import{getTranslation as _0x2a285b}from'../../common-translations.js';function _0x54aa(){const _0x1502ed=['presencelist:hide','1071340CyViNN','ck-list','.ck-balloon-panel_with-arrow','3184336kVIlPT','_isScrollable','fire','clientHeight','set','role','18zWXAsH','application','.ck-presence-list__list','scrollHeight','element','77fRCmTp','setTemplate','items','div','2oRAtek','7550741LKXyrb','querySelector','119028Fptlli','checkIfScrollable','contains','ariaLabel','relatedTarget','render','innerHeight','ck-presence-list__dropdown-list-wrapper_scrollable','ck-presence-list__dropdown-list','ariaLabelledBy','window','Connected\x20users\x20list\x20dropdown\x20menu','change','listenTo','bindTemplate','3217533NkrMyp','2344850hNTTlx','10zBUXNx','listWrapperView','ck-presence-list__dropdown-list-wrapper','max','769218IjnkLH','resize','ck-reset'];_0x54aa=function(){return _0x1502ed;};return _0x54aa();}export class PresenceDropdownListView extends _0x5a88f4{[_0x34f42c(0x168)];constructor(_0x213dea,_0x39ef19){const _0x173b43=_0x34f42c;super(_0x213dea);const _0x342811=this[_0x173b43(0x164)];this[_0x173b43(0x168)]=new PresenceDropdownListWrapperView(_0x213dea,_0x39ef19),this[_0x173b43(0x17e)]({'tag':_0x173b43(0x180),'attributes':{'tabindex':-0x1,'role':_0x173b43(0x179),'class':['ck',_0x173b43(0x18c)],'aria-label':_0x2a285b(_0x213dea,_0x173b43(0x161))},'children':[this[_0x173b43(0x168)]],'on':{'mouseleave':_0x342811['to'](_0x1f415=>{const _0x278dce=_0x173b43,_0x583f82=_0x1f415,_0x415aa2=document[_0x278dce(0x183)](_0x278dce(0x17a)),_0x1d3b28=document[_0x278dce(0x183)](_0x278dce(0x171));_0x415aa2?.[_0x278dce(0x186)](_0x583f82[_0x278dce(0x188)])||_0x1d3b28?.[_0x278dce(0x186)](_0x583f82[_0x278dce(0x188)])||this[_0x278dce(0x174)](_0x278dce(0x16e));})}});}}export class PresenceDropdownListWrapperView extends _0x405a1d{constructor(_0xb4071b,_0x125df2){const _0x17ebee=_0x34f42c;super(_0xb4071b);const _0x5c4cb1=this[_0x17ebee(0x164)];this[_0x17ebee(0x176)](_0x17ebee(0x173),!0x1),this[_0x17ebee(0x17e)]({'tag':_0x125df2?_0x17ebee(0x180):'ul','attributes':{'class':['ck',_0x17ebee(0x16d),_0x17ebee(0x170),_0x17ebee(0x169),_0x5c4cb1['if'](_0x17ebee(0x173),_0x17ebee(0x18b))],'role':_0x5c4cb1['to'](_0x17ebee(0x177)),'aria-label':_0x5c4cb1['to'](_0x17ebee(0x187)),'aria-labelledby':_0x5c4cb1['to'](_0x17ebee(0x15f))},'children':this[_0x17ebee(0x17f)]}),this[_0x17ebee(0x163)](_0x2a715b[_0x17ebee(0x160)],_0x17ebee(0x16c),()=>this[_0x17ebee(0x185)]()),this[_0x17ebee(0x17f)]['on'](_0x17ebee(0x162),()=>this[_0x17ebee(0x185)]());}[_0x34f42c(0x189)](){const _0x43660b=_0x34f42c;super[_0x43660b(0x189)](),this[_0x43660b(0x185)]();}[_0x34f42c(0x185)](){const _0x45c5a1=_0x34f42c,_0x438022=this[_0x45c5a1(0x17c)];_0x438022&&(this[_0x45c5a1(0x173)]=Math[_0x45c5a1(0x16a)](_0x438022[_0x45c5a1(0x17b)],_0x438022[_0x45c5a1(0x175)])>0.8*window[_0x45c5a1(0x18a)]);}}
23
+ function _0x220b(_0x536992,_0x59e947){const _0x22b6fc=_0x22b6();return _0x220b=function(_0x220b23,_0x165351){_0x220b23=_0x220b23-0x72;let _0x3e9c3e=_0x22b6fc[_0x220b23];return _0x3e9c3e;},_0x220b(_0x536992,_0x59e947);}function _0x22b6(){const _0x633119=['27356TASHDQ','set','_isScrollable','clientHeight','Connected\x20users\x20list\x20dropdown\x20menu','ariaLabel','innerHeight','ck-presence-list__dropdown-list-wrapper_scrollable','10ajfAlA','relatedTarget','presencelist:hide','render','items','ck-presence-list__dropdown-list-wrapper','bindTemplate','631807lyBjRy','max','ck-presence-list__dropdown-list','752MdhSGc','3FFzSfm','fire','1339656btOTAQ','.ck-presence-list__list','element','4ECQCJz','application','502895gpBQGg','ck-reset','resize','listenTo','checkIfScrollable','ck-list','listWrapperView','role','2110419DWQQGr','contains','ariaLabelledBy','843376IsoRhn','scrollHeight','126610aimsJH','change','div','querySelector','window','.ck-balloon-panel_with-arrow','setTemplate'];_0x22b6=function(){return _0x633119;};return _0x22b6();}const _0x29ce36=_0x220b;(function(_0x20a91c,_0x309c14){const _0x4345d7=_0x220b,_0x134dae=_0x20a91c();while(!![]){try{const _0x31040a=parseInt(_0x4345d7(0x81))/0x1+-parseInt(_0x4345d7(0x7f))/0x2*(-parseInt(_0x4345d7(0x9b))/0x3)+parseInt(_0x4345d7(0x72))/0x4*(parseInt(_0x4345d7(0x74))/0x5)+parseInt(_0x4345d7(0x9d))/0x6+-parseInt(_0x4345d7(0x88))/0x7*(parseInt(_0x4345d7(0x9a))/0x8)+parseInt(_0x4345d7(0x7c))/0x9*(-parseInt(_0x4345d7(0x90))/0xa)+-parseInt(_0x4345d7(0x97))/0xb;if(_0x31040a===_0x309c14)break;else _0x134dae['push'](_0x134dae['shift']());}catch(_0x4834b0){_0x134dae['push'](_0x134dae['shift']());}}}(_0x22b6,0x33f89));import{ListView as _0x5db8c1,View as _0x13032c}from'ckeditor5/src/ui.js';import{global as _0x3eac68}from'ckeditor5/src/utils.js';import{getTranslation as _0x511010}from'../../common-translations.js';export class PresenceDropdownListView extends _0x13032c{[_0x29ce36(0x7a)];constructor(_0x33215a,_0x59ee31){const _0x17d1cc=_0x29ce36;super(_0x33215a);const _0x4911e5=this[_0x17d1cc(0x96)];this[_0x17d1cc(0x7a)]=new PresenceDropdownListWrapperView(_0x33215a,_0x59ee31),this[_0x17d1cc(0x87)]({'tag':_0x17d1cc(0x83),'attributes':{'tabindex':-0x1,'role':_0x17d1cc(0x73),'class':['ck',_0x17d1cc(0x99)],'aria-label':_0x511010(_0x33215a,_0x17d1cc(0x8c))},'children':[this[_0x17d1cc(0x7a)]],'on':{'mouseleave':_0x4911e5['to'](_0x600569=>{const _0x28dead=_0x17d1cc,_0x3a138c=_0x600569,_0xdb67fd=document[_0x28dead(0x84)](_0x28dead(0x9e)),_0x336ed3=document[_0x28dead(0x84)](_0x28dead(0x86));_0xdb67fd?.[_0x28dead(0x7d)](_0x3a138c[_0x28dead(0x91)])||_0x336ed3?.[_0x28dead(0x7d)](_0x3a138c[_0x28dead(0x91)])||this[_0x28dead(0x9c)](_0x28dead(0x92));})}});}}export class PresenceDropdownListWrapperView extends _0x5db8c1{constructor(_0x40187f,_0x2c82aa){const _0x193590=_0x29ce36;super(_0x40187f);const _0x239b79=this[_0x193590(0x96)];this[_0x193590(0x89)](_0x193590(0x8a),!0x1),this[_0x193590(0x87)]({'tag':_0x2c82aa?_0x193590(0x83):'ul','attributes':{'class':['ck',_0x193590(0x75),_0x193590(0x79),_0x193590(0x95),_0x239b79['if'](_0x193590(0x8a),_0x193590(0x8f))],'role':_0x239b79['to'](_0x193590(0x7b)),'aria-label':_0x239b79['to'](_0x193590(0x8d)),'aria-labelledby':_0x239b79['to'](_0x193590(0x7e))},'children':this[_0x193590(0x94)]}),this[_0x193590(0x77)](_0x3eac68[_0x193590(0x85)],_0x193590(0x76),()=>this[_0x193590(0x78)]()),this[_0x193590(0x94)]['on'](_0x193590(0x82),()=>this[_0x193590(0x78)]());}[_0x29ce36(0x93)](){const _0x51c15f=_0x29ce36;super[_0x51c15f(0x93)](),this[_0x51c15f(0x78)]();}[_0x29ce36(0x78)](){const _0x3cdac8=_0x29ce36,_0x30469a=this[_0x3cdac8(0x9f)];_0x30469a&&(this[_0x3cdac8(0x8a)]=Math[_0x3cdac8(0x98)](_0x30469a[_0x3cdac8(0x80)],_0x30469a[_0x3cdac8(0x8b)])>0.8*window[_0x3cdac8(0x8e)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b2a41=_0x5910;(function(_0x4d087c,_0x1b383c){const _0x39b5f5=_0x5910,_0x52103c=_0x4d087c();while(!![]){try{const _0x5c4acc=-parseInt(_0x39b5f5(0x168))/0x1+-parseInt(_0x39b5f5(0x163))/0x2*(parseInt(_0x39b5f5(0x16a))/0x3)+parseInt(_0x39b5f5(0x160))/0x4*(-parseInt(_0x39b5f5(0x151))/0x5)+-parseInt(_0x39b5f5(0x158))/0x6+-parseInt(_0x39b5f5(0x15b))/0x7+parseInt(_0x39b5f5(0x164))/0x8+parseInt(_0x39b5f5(0x14e))/0x9;if(_0x5c4acc===_0x1b383c)break;else _0x52103c['push'](_0x52103c['shift']());}catch(_0xc19fe3){_0x52103c['push'](_0x52103c['shift']());}}}(_0x2fff,0xac314));function _0x2fff(){const _0x1ca631=['3eimZBk','span','setTemplate','ck-presence-list__marker','ck-presence-list__list-item__tooltip','23330025ILXtfS','userView','set','535twqlvL','true','listitem','tag','ck-presence-list__list-item','template','execute','72444NUzXiy','div','markerView','6884269JFkvlG','bindTemplate','button','getBackgroundColorClass','fire','796oEjfEY','text','tooltipPosition','1258394LigySf','1561864jSoJvG','name','isFocusable','hasTooltip','436127Irgjjj','color'];_0x2fff=function(){return _0x1ca631;};return _0x2fff();}import{LabelView as _0x2e1e64,View as _0x267242}from'ckeditor5/src/ui.js';function _0x5910(_0x11fcfc,_0xfd4c4){const _0x2fff2b=_0x2fff();return _0x5910=function(_0x5910d4,_0x568fbd){_0x5910d4=_0x5910d4-0x14d;let _0x3ebceb=_0x2fff2b[_0x5910d4];return _0x3ebceb;},_0x5910(_0x11fcfc,_0xfd4c4);}import{UserView as _0x1cd1b}from'ckeditor5-collaboration/src/collaboration-core.js';export class PresenceInlineListItemView extends _0x267242{[_0x3b2a41(0x14f)];[_0x3b2a41(0x15a)];constructor(_0x65da09,_0x4fdd43,_0x1bf970){const _0x4b5a1e=_0x3b2a41;super(_0x65da09);const _0x4fb94c=this[_0x4b5a1e(0x15c)];this[_0x4b5a1e(0x150)](_0x4b5a1e(0x166),!0x1),this[_0x4b5a1e(0x150)](_0x4b5a1e(0x167),!0x0),this[_0x4b5a1e(0x150)](_0x4b5a1e(0x162),''),this[_0x4b5a1e(0x14f)]=new _0x1cd1b(_0x65da09,_0x4fdd43),this[_0x4b5a1e(0x15a)]=new at(_0x65da09,_0x4fdd43);const _0x340717=new _0x2e1e64(_0x65da09);_0x340717[_0x4b5a1e(0x156)][_0x4b5a1e(0x154)]=_0x4b5a1e(0x16b),_0x340717[_0x4b5a1e(0x161)]=_0x4fdd43[_0x4b5a1e(0x165)];const _0xbc0603={'tag':_0x4b5a1e(0x159),'attributes':{'class':['ck',_0x4b5a1e(0x155)],'role':_0x4b5a1e(0x153),'tabindex':_0x4fb94c['to'](_0x4b5a1e(0x166),_0x2a3d1c=>!!_0x2a3d1c&&0x0),'aria-labelledby':_0x340717['id'],'data-cke-tooltip-text':this[_0x4b5a1e(0x14f)][_0x4b5a1e(0x165)],'data-cke-tooltip-position':_0x4fb94c['to'](_0x4b5a1e(0x162)),'data-cke-tooltip-disabled':_0x4fb94c['to'](_0x4b5a1e(0x167),_0x5b6b68=>!_0x5b6b68),'data-cke-tooltip-class':_0x4b5a1e(0x14d)},'children':[this[_0x4b5a1e(0x14f)],this[_0x4b5a1e(0x15a)],_0x340717]};_0x1bf970&&(_0xbc0603[_0x4b5a1e(0x154)]=_0x4b5a1e(0x15d),_0xbc0603['on']={'click':_0x4fb94c['to'](()=>this[_0x4b5a1e(0x15f)](_0x4b5a1e(0x157)))}),this[_0x4b5a1e(0x16c)](_0xbc0603);}}class at extends _0x267242{constructor(_0x5abdd1,_0x3ec890){const _0xb33403=_0x3b2a41;super(_0x5abdd1),this[_0xb33403(0x16c)]({'tag':_0xb33403(0x16b),'attributes':{'class':['ck',_0xb33403(0x16d),_0x3ec890[_0xb33403(0x169)][_0xb33403(0x15e)]()],'aria-hidden':_0xb33403(0x152)}});}}
23
+ const _0x4b0604=_0x41d5;(function(_0x2afe84,_0x59c7ea){const _0x2d89b1=_0x41d5,_0x47cf06=_0x2afe84();while(!![]){try{const _0x1fca3a=-parseInt(_0x2d89b1(0x102))/0x1*(-parseInt(_0x2d89b1(0xfd))/0x2)+parseInt(_0x2d89b1(0xf6))/0x3*(-parseInt(_0x2d89b1(0xec))/0x4)+-parseInt(_0x2d89b1(0x100))/0x5*(parseInt(_0x2d89b1(0xe9))/0x6)+parseInt(_0x2d89b1(0x10b))/0x7*(parseInt(_0x2d89b1(0xe7))/0x8)+-parseInt(_0x2d89b1(0x105))/0x9*(parseInt(_0x2d89b1(0xf9))/0xa)+parseInt(_0x2d89b1(0x10a))/0xb*(parseInt(_0x2d89b1(0xea))/0xc)+-parseInt(_0x2d89b1(0xf5))/0xd;if(_0x1fca3a===_0x59c7ea)break;else _0x47cf06['push'](_0x47cf06['shift']());}catch(_0x1eb905){_0x47cf06['push'](_0x47cf06['shift']());}}}(_0x8bb4,0x56e2f));import{LabelView as _0x1dc763,View as _0x4c09d9}from'ckeditor5/src/ui.js';import{UserView as _0x3b467d}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x41d5(_0x390f89,_0x6862df){const _0x8bb4d=_0x8bb4();return _0x41d5=function(_0x41d5fd,_0x144185){_0x41d5fd=_0x41d5fd-0xe7;let _0x35d7e2=_0x8bb4d[_0x41d5fd];return _0x35d7e2;},_0x41d5(_0x390f89,_0x6862df);}function _0x8bb4(){const _0x437faa=['markerView','tooltipPosition','5ONsTTz','ck-presence-list__list-item__tooltip','28447NRtXEW','button','set','207YUgnJs','listitem','text','color','name','174911jMiclQ','987dSwKLC','23816WuhpkG','template','2394894nIpYkD','420sVyJYT','true','3156kJkYMu','tag','bindTemplate','isFocusable','userView','ck-presence-list__list-item','ck-presence-list__marker','hasTooltip','div','5043441XSXbNv','1161IXrZUY','execute','fire','103970mUtfmI','getBackgroundColorClass','setTemplate','span','50Lsxndo'];_0x8bb4=function(){return _0x437faa;};return _0x8bb4();}export class PresenceInlineListItemView extends _0x4c09d9{[_0x4b0604(0xf0)];[_0x4b0604(0xfe)];constructor(_0x33e72e,_0x335dd4,_0x3bfa7f){const _0xc1fd63=_0x4b0604;super(_0x33e72e);const _0x403302=this[_0xc1fd63(0xee)];this[_0xc1fd63(0x104)](_0xc1fd63(0xef),!0x1),this[_0xc1fd63(0x104)](_0xc1fd63(0xf3),!0x0),this[_0xc1fd63(0x104)](_0xc1fd63(0xff),''),this[_0xc1fd63(0xf0)]=new _0x3b467d(_0x33e72e,_0x335dd4),this[_0xc1fd63(0xfe)]=new lt(_0x33e72e,_0x335dd4);const _0x1c43b9=new _0x1dc763(_0x33e72e);_0x1c43b9[_0xc1fd63(0xe8)][_0xc1fd63(0xed)]=_0xc1fd63(0xfc),_0x1c43b9[_0xc1fd63(0x107)]=_0x335dd4[_0xc1fd63(0x109)];const _0x96a57c={'tag':_0xc1fd63(0xf4),'attributes':{'class':['ck',_0xc1fd63(0xf1)],'role':_0xc1fd63(0x106),'tabindex':_0x403302['to'](_0xc1fd63(0xef),_0x2839b1=>!!_0x2839b1&&0x0),'aria-labelledby':_0x1c43b9['id'],'data-cke-tooltip-text':this[_0xc1fd63(0xf0)][_0xc1fd63(0x109)],'data-cke-tooltip-position':_0x403302['to'](_0xc1fd63(0xff)),'data-cke-tooltip-disabled':_0x403302['to'](_0xc1fd63(0xf3),_0x3a5131=>!_0x3a5131),'data-cke-tooltip-class':_0xc1fd63(0x101)},'children':[this[_0xc1fd63(0xf0)],this[_0xc1fd63(0xfe)],_0x1c43b9]};_0x3bfa7f&&(_0x96a57c[_0xc1fd63(0xed)]=_0xc1fd63(0x103),_0x96a57c['on']={'click':_0x403302['to'](()=>this[_0xc1fd63(0xf8)](_0xc1fd63(0xf7)))}),this[_0xc1fd63(0xfb)](_0x96a57c);}}class lt extends _0x4c09d9{constructor(_0x4a31cd,_0xa8ef99){const _0x39add5=_0x4b0604;super(_0x4a31cd),this[_0x39add5(0xfb)]({'tag':_0x39add5(0xfc),'attributes':{'class':['ck',_0x39add5(0xf2),_0xa8ef99[_0x39add5(0x108)][_0x39add5(0xfa)]()],'aria-hidden':_0x39add5(0xeb)}});}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5978ba=_0xc745;(function(_0x5e735e,_0x365498){const _0x52c8db=_0xc745,_0x3d679c=_0x5e735e();while(!![]){try{const _0x1ec092=-parseInt(_0x52c8db(0x160))/0x1+-parseInt(_0x52c8db(0x11a))/0x2+-parseInt(_0x52c8db(0x118))/0x3+parseInt(_0x52c8db(0x13f))/0x4+parseInt(_0x52c8db(0x14f))/0x5+-parseInt(_0x52c8db(0x15f))/0x6+-parseInt(_0x52c8db(0x148))/0x7*(-parseInt(_0x52c8db(0x141))/0x8);if(_0x1ec092===_0x365498)break;else _0x3d679c['push'](_0x3d679c['shift']());}catch(_0x15a27d){_0x3d679c['push'](_0x3d679c['shift']());}}}(_0x4f7f,0xaef55));import{Context as _0xd9e416,ContextPlugin as _0x587ca1}from'ckeditor5/src/core.js';import{CKEditorError as _0x3e6126}from'ckeditor5/src/utils.js';import{Users as _0x38b31f}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsService as _0x50a5d8,User as _0x1a216e}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0xa2343e}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x1ec7be}from'../realtimecollaborativeediting/sessions.js';class s extends _0x587ca1{static [_0x5978ba(0x135)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x50a5d8)());[_0x5978ba(0x14e)];static get[_0x5978ba(0x108)](){const _0x1cd81b=_0x5978ba;return[_0xa2343e,_0x1cd81b(0x10c),_0x1ec7be,_0x38b31f];}static get[_0x5978ba(0x12c)](){const _0x461491=_0x5978ba;return _0x461491(0x14b);}static get[_0x5978ba(0x137)](){return!0x0;}static get[_0x5978ba(0x129)](){return!0x0;}constructor(_0x470b43){const _0x2c569f=_0x5978ba;super(_0x470b43),this[_0x2c569f(0x14e)]=new Map();}async[_0x5978ba(0x11e)](){const _0x2392d7=_0x5978ba,_0x2c19bd=this[_0x2392d7(0x125)],_0x14da2a=_0x2c19bd[_0x2392d7(0x128)][_0x2392d7(0x100)](_0x2392d7(0x10c));if(_0x2c19bd[_0x2392d7(0x128)][_0x2392d7(0x100)](_0xa2343e)[_0x2392d7(0x11b)](this),_0x14da2a[_0x2392d7(0x110)]={'addCommentThread':async({channelId:_0x5caf1d,threadId:_0x4ff80a,comments:_0x25098f,resolvedAt:_0x4aa55b,resolvedBy:_0x14c9e1,context:_0x1370d2,attributes:_0x47699e})=>{const _0x23b13c=_0x2392d7,_0x476e41=await this[_0x23b13c(0x133)](_0x5caf1d)[_0x23b13c(0x162)]({'commentThreadId':_0x4ff80a,'comments':_0x25098f[_0x23b13c(0x151)](_0x513448=>function(_0x554639,_0x4d9353,_0x3bad9f){const _0x186a2c=_0x23b13c;return{'commentThreadId':_0x3bad9f,'commentId':_0x554639[_0x186a2c(0x112)],'userId':_0x554639[_0x186a2c(0x102)],'content':_0x554639[_0x186a2c(0x113)],'documentId':_0x4d9353,'createdAt':_0x554639[_0x186a2c(0x105)],'attributes':_0x554639[_0x186a2c(0x117)]||{}};}(_0x513448,_0x5caf1d,_0x4ff80a)),'resolvedAt':_0x4aa55b,'resolvedBy':_0x14c9e1,'context':_0x1370d2,'attributes':_0x47699e})[_0x23b13c(0x126)](k);return{'threadId':_0x476e41[_0x23b13c(0x106)],'comments':_0x476e41[_0x23b13c(0x13e)]};},'getCommentThread':async({channelId:_0x4b2ad9,threadId:_0x2cb33e})=>{const _0x59e738=_0x2392d7,_0x25733e=await this[_0x59e738(0x133)](_0x4b2ad9)[_0x59e738(0x120)](_0x2cb33e)[_0x59e738(0x126)](k);return _0x25733e[_0x59e738(0x115)]?null:(await this[_0x59e738(0x138)]([_0x25733e]),{'threadId':_0x25733e[_0x59e738(0x106)],'comments':_0x25733e[_0x59e738(0x13e)][_0x59e738(0x151)](B),'context':_0x25733e[_0x59e738(0x125)],'resolvedAt':_0x25733e[_0x59e738(0x109)],'resolvedBy':_0x25733e[_0x59e738(0x14c)],'attributes':_0x25733e[_0x59e738(0x117)]||{}});},'updateCommentThread':async({channelId:_0x2fcfd7,threadId:_0x39e43c,context:_0x2a828d,unlinkedAt:_0x59c339,attributes:_0x405d5d})=>this[_0x2392d7(0x133)](_0x2fcfd7)[_0x2392d7(0x145)]({'commentThreadId':_0x39e43c,'context':_0x2a828d,'attributes':_0x405d5d,'unlinkedAt':_0x59c339})[_0x2392d7(0x126)](F)[_0x2392d7(0x126)](k),'resolveCommentThread':async({channelId:_0x424c5c,threadId:_0x8ff56b})=>{const _0x3e8647=_0x2392d7,_0x1978b1=await this[_0x3e8647(0x133)](_0x424c5c)[_0x3e8647(0x149)](_0x8ff56b)[_0x3e8647(0x126)](F)[_0x3e8647(0x126)](k);return{'threadId':_0x1978b1[_0x3e8647(0x106)],'resolvedAt':_0x1978b1[_0x3e8647(0x109)],'resolvedBy':_0x1978b1[_0x3e8647(0x14c)]};},'reopenCommentThread':async({channelId:_0x3e9a3d,threadId:_0x363db7})=>this[_0x2392d7(0x133)](_0x3e9a3d)[_0x2392d7(0x142)](_0x363db7)[_0x2392d7(0x126)](F)[_0x2392d7(0x126)](k),'removeCommentThread':({channelId:_0x493d86,threadId:_0x392df8})=>this[_0x2392d7(0x133)](_0x493d86)[_0x2392d7(0x127)](_0x392df8)[_0x2392d7(0x126)](F)[_0x2392d7(0x126)](k),'addComment':({channelId:_0xb4b11c,threadId:_0x14c3b7,commentId:_0x5c62ef,content:_0x5b667f,attributes:_0xc67d8})=>this[_0x2392d7(0x133)](_0xb4b11c)[_0x2392d7(0x12a)](_0x14c3b7,_0x5c62ef,_0x5b667f,_0xc67d8)[_0x2392d7(0x126)](k),'updateComment':({channelId:_0x2da85f,threadId:_0x46116c,commentId:_0x26df21,content:_0x48d175,attributes:_0x38c2d6})=>this[_0x2392d7(0x133)](_0x2da85f)[_0x2392d7(0x121)](_0x46116c,_0x26df21,_0x48d175,_0x38c2d6)[_0x2392d7(0x126)](F)[_0x2392d7(0x126)](k),'removeComment':({channelId:_0xf1b676,threadId:_0xd22aae,commentId:_0x4fbe4a})=>this[_0x2392d7(0x133)](_0xf1b676)[_0x2392d7(0x157)](_0xd22aae,_0x4fbe4a)[_0x2392d7(0x126)](F)[_0x2392d7(0x126)](k)},_0x2c19bd instanceof _0xd9e416){const _0x2aa8c8=_0x2c19bd[_0x2392d7(0x154)][_0x2392d7(0x100)](_0x2392d7(0x13b)),_0x60928=_0x2c19bd[_0x2392d7(0x128)][_0x2392d7(0x100)](_0x1ec7be);await this[_0x2392d7(0x14d)](_0x2aa8c8);const _0x381b9f=await this[_0x2392d7(0x14e)][_0x2392d7(0x100)](_0x2aa8c8)[_0x2392d7(0x143)]();this[_0x2392d7(0x10b)](_0x60928,_0x2392d7(0x12b)+_0x2aa8c8,(_0x13cefc,{session:_0x5bdac4})=>{const _0x32a407=_0x2392d7;_0x5bdac4['id']===_0x60928[_0x32a407(0x158)]&&(_0x13cefc[_0x32a407(0x15c)](),this[_0x32a407(0x125)][_0x32a407(0x128)][_0x32a407(0x100)](_0x32a407(0x10a))[_0x32a407(0x136)](_0x5bdac4[_0x32a407(0x13c)],_0x2aa8c8));}),_0x60928[_0x2392d7(0x139)](_0x2aa8c8,_0x381b9f);}}async[_0x5978ba(0x14d)](_0x547369){const _0x5619db=_0x5978ba;if(this[_0x5619db(0x14e)][_0x5619db(0x12e)](_0x547369))throw new _0x3e6126(_0x5619db(0x152),null,{'channelId':_0x547369});const _0x54ed9b=this[_0x5619db(0x125)][_0x5619db(0x128)][_0x5619db(0x100)](_0x5619db(0x10c)),_0x28ca3b=new s[(_0x5619db(0x135))](_0x547369);this[_0x5619db(0x14e)][_0x5619db(0x140)](_0x547369,_0x28ca3b),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x130),(_0x1cc209,_0x5d6eda)=>{const _0x3dbcaf=_0x5619db,{commentThreadId:_0x5d7738,documentId:_0x554b7f,context:_0x116d37,attributes:_0x577385,resolvedAt:_0x472898,resolvedBy:_0xf6c788,comments:_0x71c8f6}=_0x5d6eda;_0x54ed9b[_0x3dbcaf(0x120)](_0x5d7738)||_0x54ed9b[_0x3dbcaf(0x162)]({'threadId':_0x5d7738,'channelId':_0x554b7f,'comments':_0x71c8f6?_0x71c8f6[_0x3dbcaf(0x151)](B):[],'context':_0x116d37,'attributes':_0x577385,'resolvedAt':_0x472898,'resolvedBy':_0xf6c788,'isFromAdapter':!0x0});}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x123),(_0x48dba1,{commentThreadId:_0x377a71,documentId:_0x40235e,context:_0x4390aa,unlinkedAt:_0x3d248d,attributes:_0x13b4ab})=>{const _0x3dab66=_0x5619db;_0x54ed9b[_0x3dab66(0x120)](_0x377a71)&&_0x54ed9b[_0x3dab66(0x145)]({'threadId':_0x377a71,'channelId':_0x40235e,'context':_0x4390aa,'unlinkedAt':_0x3d248d,'attributes':_0x13b4ab,'isFromAdapter':!0x0});}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x13d),(_0x2253ba,{commentThreadId:_0x4f1ab8,resolvedBy:_0xd55283,resolvedAt:_0x583f96})=>{const _0x15342c=_0x5619db,_0x3d360b=_0x54ed9b[_0x15342c(0x120)](_0x4f1ab8);_0x3d360b&&_0x3d360b[_0x15342c(0x101)]({'resolvedBy':_0xd55283,'resolvedAt':_0x583f96,'isFromAdapter':!0x0});}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x15e),(_0x519c54,{commentThreadId:_0x27c08f})=>{const _0x2cb0f1=_0x5619db,_0x4832a2=_0x54ed9b[_0x2cb0f1(0x120)](_0x27c08f);_0x4832a2&&_0x4832a2[_0x2cb0f1(0x161)]({'isFromAdapter':!0x0});}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x13a),(_0x3febc6,{commentThreadId:_0x264255})=>{const _0x29c220=_0x5619db,_0x47bd97=_0x54ed9b[_0x29c220(0x120)](_0x264255);_0x47bd97&&_0x47bd97[_0x29c220(0x119)]({'isFromAdapter':!0x0});}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x11f),(_0xddab49,_0x257507)=>{const _0x36d65b=_0x5619db,_0xa21499=_0x257507[_0x36d65b(0x106)],_0xfd79a9=_0x54ed9b[_0x36d65b(0x120)](_0xa21499);_0xfd79a9&&_0xfd79a9[_0x36d65b(0x12a)]({...B(_0x257507),'isFromAdapter':!0x0});}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x107),(_0x20b365,{commentThreadId:_0x28ef75,commentId:_0x535a8b,content:_0x36603f,attributes:_0x1ffc9c})=>{const _0x1b6049=_0x5619db,_0x26bda0=_0x54ed9b[_0x1b6049(0x120)](_0x28ef75);if(_0x26bda0){const _0x58f1eb=_0x26bda0[_0x1b6049(0x11c)](_0x535a8b);_0x58f1eb&&_0x58f1eb[_0x1b6049(0x10d)]({'content':_0x36603f,'attributes':_0x1ffc9c,'isFromAdapter':!0x0});}}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x111),(_0x417d88,{commentThreadId:_0x50bb07,commentId:_0x539bd5})=>{const _0x114bd6=_0x5619db,_0x41a5d0=_0x54ed9b[_0x114bd6(0x120)](_0x50bb07);if(_0x41a5d0){const _0x39445b=_0x41a5d0[_0x114bd6(0x11c)](_0x539bd5);_0x39445b&&_0x39445b[_0x114bd6(0x119)]({'isFromAdapter':!0x0});}}),await this[_0x5619db(0x14a)](_0x547369);}[_0x5978ba(0x12f)](){const _0x383f32=_0x5978ba;if(this[_0x383f32(0x125)]instanceof _0xd9e416){const _0x51bcf6=this[_0x383f32(0x125)][_0x383f32(0x154)][_0x383f32(0x100)](_0x383f32(0x13b));this[_0x383f32(0x116)](_0x51bcf6);}}[_0x5978ba(0x116)](_0x4ca759){const _0x1ea23f=_0x5978ba;if(!this[_0x1ea23f(0x14e)][_0x1ea23f(0x12e)](_0x4ca759))throw new _0x3e6126(_0x1ea23f(0x132),null,{'channelId':_0x4ca759});this[_0x1ea23f(0x133)](_0x4ca759)[_0x1ea23f(0x156)](),this[_0x1ea23f(0x14e)][_0x1ea23f(0x10e)](_0x4ca759);}async[_0x5978ba(0x150)](){const _0x26bfc9=_0x5978ba;for(const _0x5c69d7 of this[_0x26bfc9(0x14e)][_0x26bfc9(0x159)]())await this[_0x26bfc9(0x14a)](_0x5c69d7);if(this[_0x26bfc9(0x125)]instanceof _0xd9e416){const _0x28bd3a=this[_0x26bfc9(0x125)][_0x26bfc9(0x154)][_0x26bfc9(0x100)](_0x26bfc9(0x13b)),_0x355379=this[_0x26bfc9(0x125)][_0x26bfc9(0x128)][_0x26bfc9(0x100)](_0x1ec7be);_0x355379[_0x26bfc9(0x163)](_0x28bd3a);const _0x329b13=await this[_0x26bfc9(0x14e)][_0x26bfc9(0x100)](_0x28bd3a)[_0x26bfc9(0x143)]();_0x355379[_0x26bfc9(0x139)](_0x28bd3a,_0x329b13);}}async[_0x5978ba(0x14a)](_0x19f991){const _0x4ac3ba=_0x5978ba,{connection:_0x5a38a1}=this[_0x4ac3ba(0x125)][_0x4ac3ba(0x128)][_0x4ac3ba(0x100)](_0xa2343e),_0x3d9664=this[_0x4ac3ba(0x125)][_0x4ac3ba(0x128)][_0x4ac3ba(0x100)](_0x4ac3ba(0x10c)),_0xfb24b=this[_0x4ac3ba(0x14e)][_0x4ac3ba(0x100)](_0x19f991),_0x507c6b=await _0xfb24b[_0x4ac3ba(0x134)](_0x5a38a1);await this[_0x4ac3ba(0x138)](_0x507c6b);const _0x12443e=new Set(Array[_0x4ac3ba(0x144)](_0x3d9664[_0x4ac3ba(0x114)]({'channelId':_0x19f991}),_0x4d821a=>_0x4d821a['id']));for(const _0x428cf0 of _0x507c6b)_0x428cf0[_0x4ac3ba(0x115)]||_0x12443e[_0x4ac3ba(0x10e)](_0x428cf0[_0x4ac3ba(0x106)]);for(const _0x1b4c4d of _0x12443e)_0x3d9664[_0x4ac3ba(0x120)](_0x1b4c4d)[_0x4ac3ba(0x119)]({'isFromAdapter':!0x0});for(const _0x315f52 of _0x507c6b){let _0x5a3250=_0x3d9664[_0x4ac3ba(0x120)](_0x315f52[_0x4ac3ba(0x106)]);const {commentThreadId:_0x18bd1a,context:_0x22d3f2,attributes:_0x377fab,resolvedBy:_0xa395c7,resolvedAt:_0x1ecd43,unlinkedAt:_0x337f02,deletedAt:_0x4351d1}=_0x315f52;if(_0x4351d1)continue;_0x5a3250||(_0x5a3250=_0x3d9664[_0x4ac3ba(0x162)]({'channelId':_0x19f991,'threadId':_0x18bd1a,'context':_0x22d3f2,'attributes':_0x377fab||{},'resolvedBy':_0xa395c7,'resolvedAt':_0x1ecd43,'unlinkedAt':_0x337f02,'isFromAdapter':!0x0}));const _0x3d48b9=new Set(Array[_0x4ac3ba(0x144)](_0x5a3250[_0x4ac3ba(0x13e)],_0x1483ba=>_0x1483ba['id']));for(const _0x1b066f of _0x315f52[_0x4ac3ba(0x13e)])_0x3d48b9[_0x4ac3ba(0x10e)](_0x1b066f[_0x4ac3ba(0x112)]);for(const _0x4844c6 of _0x3d48b9)_0x5a3250[_0x4ac3ba(0x11c)](_0x4844c6)[_0x4ac3ba(0x119)]({'isFromAdapter':!0x0});for(const _0x3573d8 of _0x315f52[_0x4ac3ba(0x13e)]){const _0x183018=_0x5a3250[_0x4ac3ba(0x11c)](_0x3573d8[_0x4ac3ba(0x112)]);_0x183018?_0x183018[_0x4ac3ba(0x113)]!==_0x3573d8[_0x4ac3ba(0x113)]&&_0x183018[_0x4ac3ba(0x10d)]({'content':_0x3573d8[_0x4ac3ba(0x113)],'isFromAdapter':!0x0}):_0x5a3250[_0x4ac3ba(0x12a)](Object[_0x4ac3ba(0x104)](B(_0x3573d8),{'isFromAdapter':!0x0}));}}}[_0x5978ba(0x133)](_0x2a2710){const _0xce857e=_0x5978ba;if(!this[_0xce857e(0x14e)][_0xce857e(0x12e)](_0x2a2710))throw new _0x3e6126(_0xce857e(0x103),null,{'channelId':_0x2a2710});return this[_0xce857e(0x14e)][_0xce857e(0x100)](_0x2a2710);}async[_0x5978ba(0x138)](_0x14abf4){const _0x103538=_0x5978ba,_0x36c52e=this[_0x103538(0x125)][_0x103538(0x128)][_0x103538(0x100)](_0x38b31f),{connection:_0xdf6730}=this[_0x103538(0x125)][_0x103538(0x128)][_0x103538(0x100)](_0xa2343e),_0x143655=new Set();for(const {resolvedBy:_0x13e663,comments:_0x16c997}of _0x14abf4){_0x13e663&&!_0x36c52e[_0x103538(0x11d)](_0x13e663)&&_0x143655[_0x103538(0x122)](_0x13e663);for(const {userId:_0x1950fd}of _0x16c997)_0x36c52e[_0x103538(0x11d)](_0x1950fd)||_0x143655[_0x103538(0x122)](_0x1950fd);}if(0x0===_0x143655[_0x103538(0x12d)])return;const _0x4c2bbe=await _0x1a216e[_0x103538(0x153)](_0xdf6730,Array[_0x103538(0x144)](_0x143655));for(const _0x209a8e of _0x4c2bbe)_0x36c52e[_0x103538(0x11d)](_0x209a8e['id'])||_0x36c52e[_0x103538(0x15b)](_0x209a8e);}}export{s as CloudServicesCommentsAdapter};function _0xc745(_0x3f4574,_0x1f29b0){const _0x4f7f6f=_0x4f7f();return _0xc745=function(_0xc74527,_0x1d26a2){_0xc74527=_0xc74527-0x100;let _0x48f646=_0x4f7f6f[_0xc74527];return _0x48f646;},_0xc745(_0x3f4574,_0x1f29b0);}async function F(_0x9b2f31){const _0x4c9901=_0x5978ba;if(_0x4c9901(0x146)!==_0x9b2f31[_0x4c9901(0x10f)])throw _0x9b2f31;}function _0x4f7f(){const _0x3ae55c=['disconnect','removeComment','mySessionId','keys','cloud-services-internal-error:\x20Not\x20connected.','addUser','off','userId','commentThreadReopened','3568374ztNIMr','536483IginHK','reopen','addCommentThread','unregister','get','resolve','authorId','cloudservicescommentsadapter-service-not-exist','assign','createdAt','commentThreadId','commentUpdated','requires','resolvedAt','Permissions','listenTo','CommentsRepository','update','delete','code','adapter','commentRemoved','commentId','content','getCommentThreads','deletedAt','_terminateService','attributes','1634145xfQfXj','remove','918688sIKsVL','addToReconnectionStack','getComment','getUser','init','commentAdded','getCommentThread','updateComment','add','commentThreadUpdated','message','context','catch','removeCommentThread','plugins','isPremiumPlugin','addComment','sessionAdd:','pluginName','size','has','destroy','commentThreadAdded','startsWith','cloudservicescommentsadapter-disconnect-not-exist','_getService','connect','CommentsService','setPermissions','isOfficialPlugin','_fetchMissingUsersForThreads','register','commentThreadRemoved','collaboration.channelId','permissions','commentThreadResolved','comments','5423292mBuJcr','set','1912048rktdQA','reopenCommentThread','getConnectedSessions','from','updateCommentThread','404','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','7SfcnHL','resolveCommentThread','_connectService','CloudServicesCommentsAdapter','resolvedBy','_setUpService','_services','6285355FHDkkm','reconnect','map','cloudservicescommentsadapter-connect-already-connected','getMany','config','cloud-services-internal-error:\x20Request\x20timeout.'];_0x4f7f=function(){return _0x3ae55c;};return _0x4f7f();}function k(_0x36e8e9){const _0x51e2c3=_0x5978ba;if((_0x4ce9d2=_0x36e8e9)[_0x51e2c3(0x124)][_0x51e2c3(0x131)](_0x51e2c3(0x147))||_0x4ce9d2[_0x51e2c3(0x124)][_0x51e2c3(0x131)](_0x51e2c3(0x15a))||_0x4ce9d2[_0x51e2c3(0x124)][_0x51e2c3(0x131)](_0x51e2c3(0x155)))return new Promise(()=>{});var _0x4ce9d2;throw _0x36e8e9;}function B(_0x5bff90){const _0x2ffaca=_0x5978ba;return{'threadId':_0x5bff90[_0x2ffaca(0x106)],'commentId':_0x5bff90[_0x2ffaca(0x112)],'content':_0x5bff90[_0x2ffaca(0x113)],'createdAt':_0x5bff90[_0x2ffaca(0x105)],'authorId':_0x5bff90[_0x2ffaca(0x15d)],'attributes':_0x5bff90[_0x2ffaca(0x117)]||{}};}
23
+ const _0x372958=_0x447d;(function(_0x17387b,_0x20e75b){const _0x594336=_0x447d,_0x575df3=_0x17387b();while(!![]){try{const _0x4cd508=-parseInt(_0x594336(0x119))/0x1*(-parseInt(_0x594336(0xc6))/0x2)+-parseInt(_0x594336(0xf5))/0x3*(parseInt(_0x594336(0xfe))/0x4)+parseInt(_0x594336(0xcd))/0x5+-parseInt(_0x594336(0x106))/0x6+-parseInt(_0x594336(0xd1))/0x7*(parseInt(_0x594336(0xd6))/0x8)+parseInt(_0x594336(0xc0))/0x9+parseInt(_0x594336(0x107))/0xa*(-parseInt(_0x594336(0xd3))/0xb);if(_0x4cd508===_0x20e75b)break;else _0x575df3['push'](_0x575df3['shift']());}catch(_0x3560c4){_0x575df3['push'](_0x575df3['shift']());}}}(_0x58b1,0x9ac3b));import{Context as _0x331417,ContextPlugin as _0x10b13f}from'ckeditor5/src/core.js';import{CKEditorError as _0x35a412}from'ckeditor5/src/utils.js';import{Users as _0x182222}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsService as _0x554662,User as _0x10369e}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x5d0f91}from'../realtimecollaborativeediting/websocketgateway.js';function _0x447d(_0xa8e16e,_0x180e9f){const _0x58b1cd=_0x58b1();return _0x447d=function(_0x447d38,_0x2d1f4e){_0x447d38=_0x447d38-0xb7;let _0x4b3ee9=_0x58b1cd[_0x447d38];return _0x4b3ee9;},_0x447d(_0xa8e16e,_0x180e9f);}import{Sessions as _0x9a466c}from'../realtimecollaborativeediting/sessions.js';class s extends _0x10b13f{static [_0x372958(0x115)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x554662)());[_0x372958(0xc2)];static get[_0x372958(0xe0)](){const _0x4ab549=_0x372958;return[_0x5d0f91,_0x4ab549(0xe7),_0x9a466c,_0x182222];}static get[_0x372958(0x103)](){const _0x51661b=_0x372958;return _0x51661b(0xf2);}static get[_0x372958(0xef)](){return!0x0;}static get[_0x372958(0xd7)](){return!0x0;}constructor(_0x48ade7){const _0x300772=_0x372958;super(_0x48ade7),this[_0x300772(0xc2)]=new Map();}async[_0x372958(0xe1)](){const _0x39ed65=_0x372958,_0x292756=this[_0x39ed65(0x111)],_0x4cf35d=_0x292756[_0x39ed65(0xdf)][_0x39ed65(0x10f)](_0x39ed65(0xe7));if(_0x292756[_0x39ed65(0xdf)][_0x39ed65(0x10f)](_0x5d0f91)[_0x39ed65(0xe6)](this),_0x4cf35d[_0x39ed65(0xdb)]={'addCommentThread':async({channelId:_0x32345e,threadId:_0x5bcc12,comments:_0x448597,resolvedAt:_0x4de76d,resolvedBy:_0x2250c7,context:_0x1b59ab,attributes:_0x3712b7})=>{const _0x865672=_0x39ed65,_0x3d38a6=await this[_0x865672(0xe3)](_0x32345e)[_0x865672(0x10d)]({'commentThreadId':_0x5bcc12,'comments':_0x448597[_0x865672(0x108)](_0x3405f6=>function(_0x5abaf6,_0x44c645,_0x3fa2ca){const _0xc50636=_0x865672;return{'commentThreadId':_0x3fa2ca,'commentId':_0x5abaf6[_0xc50636(0xf0)],'userId':_0x5abaf6[_0xc50636(0xee)],'content':_0x5abaf6[_0xc50636(0xe8)],'documentId':_0x44c645,'createdAt':_0x5abaf6[_0xc50636(0x11c)],'attributes':_0x5abaf6[_0xc50636(0xc9)]||{}};}(_0x3405f6,_0x32345e,_0x5bcc12)),'resolvedAt':_0x4de76d,'resolvedBy':_0x2250c7,'context':_0x1b59ab,'attributes':_0x3712b7})[_0x865672(0x113)](it);return{'threadId':_0x3d38a6[_0x865672(0x10e)],'comments':_0x3d38a6[_0x865672(0x100)]};},'getCommentThread':async({channelId:_0x3cf386,threadId:_0x5f25b8})=>{const _0x4d7afd=_0x39ed65,_0x160642=await this[_0x4d7afd(0xe3)](_0x3cf386)[_0x4d7afd(0xdd)](_0x5f25b8)[_0x4d7afd(0x113)](it);return _0x160642[_0x4d7afd(0xde)]?null:(await this[_0x4d7afd(0xbc)]([_0x160642]),{'threadId':_0x160642[_0x4d7afd(0x10e)],'comments':_0x160642[_0x4d7afd(0x100)][_0x4d7afd(0x108)](st),'context':_0x160642[_0x4d7afd(0x111)],'resolvedAt':_0x160642[_0x4d7afd(0xf6)],'resolvedBy':_0x160642[_0x4d7afd(0xc8)],'attributes':_0x160642[_0x4d7afd(0xc9)]||{}});},'updateCommentThread':async({channelId:_0x4824fa,threadId:_0x4347be,context:_0x4741b7,unlinkedAt:_0x119647,attributes:_0x4ea292})=>this[_0x39ed65(0xe3)](_0x4824fa)[_0x39ed65(0x11a)]({'commentThreadId':_0x4347be,'context':_0x4741b7,'attributes':_0x4ea292,'unlinkedAt':_0x119647})[_0x39ed65(0x113)](nt)[_0x39ed65(0x113)](it),'resolveCommentThread':async({channelId:_0x5d4b2c,threadId:_0x53082b})=>{const _0x44c385=_0x39ed65,_0x55009f=await this[_0x44c385(0xe3)](_0x5d4b2c)[_0x44c385(0xc1)](_0x53082b)[_0x44c385(0x113)](nt)[_0x44c385(0x113)](it);return{'threadId':_0x55009f[_0x44c385(0x10e)],'resolvedAt':_0x55009f[_0x44c385(0xf6)],'resolvedBy':_0x55009f[_0x44c385(0xc8)]};},'reopenCommentThread':async({channelId:_0x381ad4,threadId:_0x334dbe})=>this[_0x39ed65(0xe3)](_0x381ad4)[_0x39ed65(0xd0)](_0x334dbe)[_0x39ed65(0x113)](nt)[_0x39ed65(0x113)](it),'removeCommentThread':({channelId:_0x429ab2,threadId:_0x4e5349})=>this[_0x39ed65(0xe3)](_0x429ab2)[_0x39ed65(0x10c)](_0x4e5349)[_0x39ed65(0x113)](nt)[_0x39ed65(0x113)](it),'addComment':({channelId:_0x5b8615,threadId:_0x583a4a,commentId:_0x259452,content:_0x46b105,attributes:_0x1a4fe7})=>this[_0x39ed65(0xe3)](_0x5b8615)[_0x39ed65(0x10b)](_0x583a4a,_0x259452,_0x46b105,_0x1a4fe7)[_0x39ed65(0x113)](it),'updateComment':({channelId:_0x2e4f60,threadId:_0xb9b356,commentId:_0x466976,content:_0x34b549,attributes:_0x317110})=>this[_0x39ed65(0xe3)](_0x2e4f60)[_0x39ed65(0xe5)](_0xb9b356,_0x466976,_0x34b549,_0x317110)[_0x39ed65(0x113)](nt)[_0x39ed65(0x113)](it),'removeComment':({channelId:_0xc31129,threadId:_0x1cac0a,commentId:_0x24c873})=>this[_0x39ed65(0xe3)](_0xc31129)[_0x39ed65(0xe4)](_0x1cac0a,_0x24c873)[_0x39ed65(0x113)](nt)[_0x39ed65(0x113)](it)},_0x292756 instanceof _0x331417){const _0x1d0830=_0x292756[_0x39ed65(0xc4)][_0x39ed65(0x10f)](_0x39ed65(0xf9)),_0x36e58f=_0x292756[_0x39ed65(0xdf)][_0x39ed65(0x10f)](_0x9a466c);await this[_0x39ed65(0xbd)](_0x1d0830);const _0xef37a5=await this[_0x39ed65(0xc2)][_0x39ed65(0x10f)](_0x1d0830)[_0x39ed65(0xeb)]();this[_0x39ed65(0xce)](_0x36e58f,_0x39ed65(0x11b)+_0x1d0830,(_0xd8b478,{session:_0x4ad22b})=>{const _0x43576d=_0x39ed65;_0x4ad22b['id']===_0x36e58f[_0x43576d(0x10a)]&&(_0xd8b478[_0x43576d(0x110)](),this[_0x43576d(0x111)][_0x43576d(0xdf)][_0x43576d(0x10f)](_0x43576d(0xcc))[_0x43576d(0xd4)](_0x4ad22b[_0x43576d(0xfb)],_0x1d0830));}),_0x36e58f[_0x39ed65(0x116)](_0x1d0830,_0xef37a5);}}async[_0x372958(0xbd)](_0x328dca){const _0xd0ec6c=_0x372958;if(this[_0xd0ec6c(0xc2)][_0xd0ec6c(0xf4)](_0x328dca))throw new _0x35a412(_0xd0ec6c(0xd9),null,{'channelId':_0x328dca});const _0x1fc9c1=this[_0xd0ec6c(0x111)][_0xd0ec6c(0xdf)][_0xd0ec6c(0x10f)](_0xd0ec6c(0xe7)),_0xd51c1d=new s[(_0xd0ec6c(0x115))](_0x328dca);this[_0xd0ec6c(0xc2)][_0xd0ec6c(0xbf)](_0x328dca,_0xd51c1d),this[_0xd0ec6c(0xce)](_0xd51c1d,_0xd0ec6c(0xda),(_0x37624c,_0x512e44)=>{const _0x17273c=_0xd0ec6c,{commentThreadId:_0x400392,documentId:_0x4e6ad6,context:_0x4f897f,attributes:_0x191b93,resolvedAt:_0x23e7f4,resolvedBy:_0x596f71,comments:_0x434ac4}=_0x512e44;_0x1fc9c1[_0x17273c(0xdd)](_0x400392)||_0x1fc9c1[_0x17273c(0x10d)]({'threadId':_0x400392,'channelId':_0x4e6ad6,'comments':_0x434ac4?_0x434ac4[_0x17273c(0x108)](st):[],'context':_0x4f897f,'attributes':_0x191b93,'resolvedAt':_0x23e7f4,'resolvedBy':_0x596f71,'isFromAdapter':!0x0});}),this[_0xd0ec6c(0xce)](_0xd51c1d,_0xd0ec6c(0xdc),(_0x3dac8a,{commentThreadId:_0x26b5f1,documentId:_0x51f067,context:_0x48f01d,unlinkedAt:_0x45385b,attributes:_0x30d10c})=>{const _0x2d4f16=_0xd0ec6c;_0x1fc9c1[_0x2d4f16(0xdd)](_0x26b5f1)&&_0x1fc9c1[_0x2d4f16(0x11a)]({'threadId':_0x26b5f1,'channelId':_0x51f067,'context':_0x48f01d,'unlinkedAt':_0x45385b,'attributes':_0x30d10c,'isFromAdapter':!0x0});}),this[_0xd0ec6c(0xce)](_0xd51c1d,_0xd0ec6c(0xcb),(_0x296f2d,{commentThreadId:_0x5a337e,resolvedBy:_0x4312e5,resolvedAt:_0x10d023})=>{const _0x5b6005=_0xd0ec6c,_0x21d8ac=_0x1fc9c1[_0x5b6005(0xdd)](_0x5a337e);_0x21d8ac&&_0x21d8ac[_0x5b6005(0x114)]({'resolvedBy':_0x4312e5,'resolvedAt':_0x10d023,'isFromAdapter':!0x0});}),this[_0xd0ec6c(0xce)](_0xd51c1d,_0xd0ec6c(0xed),(_0x37e215,{commentThreadId:_0x26ff3e})=>{const _0x4eeaea=_0xd0ec6c,_0x1b4918=_0x1fc9c1[_0x4eeaea(0xdd)](_0x26ff3e);_0x1b4918&&_0x1b4918[_0x4eeaea(0x104)]({'isFromAdapter':!0x0});}),this[_0xd0ec6c(0xce)](_0xd51c1d,_0xd0ec6c(0xc7),(_0x4c66e9,{commentThreadId:_0x167638})=>{const _0x45cadd=_0xd0ec6c,_0x23d1e4=_0x1fc9c1[_0x45cadd(0xdd)](_0x167638);_0x23d1e4&&_0x23d1e4[_0x45cadd(0x102)]({'isFromAdapter':!0x0});}),this[_0xd0ec6c(0xce)](_0xd51c1d,_0xd0ec6c(0xb9),(_0xbe4540,_0x45db43)=>{const _0x916569=_0xd0ec6c,_0x365dcf=_0x45db43[_0x916569(0x10e)],_0x21b40d=_0x1fc9c1[_0x916569(0xdd)](_0x365dcf);_0x21b40d&&_0x21b40d[_0x916569(0x10b)]({...st(_0x45db43),'isFromAdapter':!0x0});}),this[_0xd0ec6c(0xce)](_0xd51c1d,_0xd0ec6c(0xfc),(_0x2f1f33,{commentThreadId:_0x41a860,commentId:_0x4bf403,content:_0x53a55d,attributes:_0x89ce99})=>{const _0x3ed08b=_0xd0ec6c,_0x1e27d2=_0x1fc9c1[_0x3ed08b(0xdd)](_0x41a860);if(_0x1e27d2){const _0x5e73cd=_0x1e27d2[_0x3ed08b(0xfa)](_0x4bf403);_0x5e73cd&&_0x5e73cd[_0x3ed08b(0xf3)]({'content':_0x53a55d,'attributes':_0x89ce99,'isFromAdapter':!0x0});}}),this[_0xd0ec6c(0xce)](_0xd51c1d,_0xd0ec6c(0x112),(_0x150a6b,{commentThreadId:_0x175d1f,commentId:_0x4957fb})=>{const _0x4ad165=_0xd0ec6c,_0x375459=_0x1fc9c1[_0x4ad165(0xdd)](_0x175d1f);if(_0x375459){const _0x11fbdf=_0x375459[_0x4ad165(0xfa)](_0x4957fb);_0x11fbdf&&_0x11fbdf[_0x4ad165(0x102)]({'isFromAdapter':!0x0});}}),await this[_0xd0ec6c(0xfd)](_0x328dca);}[_0x372958(0xec)](){const _0x59c947=_0x372958;if(this[_0x59c947(0x111)]instanceof _0x331417){const _0x2f7664=this[_0x59c947(0x111)][_0x59c947(0xc4)][_0x59c947(0x10f)](_0x59c947(0xf9));this[_0x59c947(0xea)](_0x2f7664);}}[_0x372958(0xea)](_0x190bf6){const _0x24e668=_0x372958;if(!this[_0x24e668(0xc2)][_0x24e668(0xf4)](_0x190bf6))throw new _0x35a412(_0x24e668(0xd5),null,{'channelId':_0x190bf6});this[_0x24e668(0xe3)](_0x190bf6)[_0x24e668(0x117)](),this[_0x24e668(0xc2)][_0x24e668(0xb7)](_0x190bf6);}async[_0x372958(0x11d)](){const _0x50e3ec=_0x372958;for(const _0x289968 of this[_0x50e3ec(0xc2)][_0x50e3ec(0x118)]())await this[_0x50e3ec(0xfd)](_0x289968);if(this[_0x50e3ec(0x111)]instanceof _0x331417){const _0xe765af=this[_0x50e3ec(0x111)][_0x50e3ec(0xc4)][_0x50e3ec(0x10f)](_0x50e3ec(0xf9)),_0x3cc8de=this[_0x50e3ec(0x111)][_0x50e3ec(0xdf)][_0x50e3ec(0x10f)](_0x9a466c);_0x3cc8de[_0x50e3ec(0x109)](_0xe765af);const _0x5b5127=await this[_0x50e3ec(0xc2)][_0x50e3ec(0x10f)](_0xe765af)[_0x50e3ec(0xeb)]();_0x3cc8de[_0x50e3ec(0x116)](_0xe765af,_0x5b5127);}}async[_0x372958(0xfd)](_0x3b9f0b){const _0x25a1d7=_0x372958,{connection:_0x13dc2b}=this[_0x25a1d7(0x111)][_0x25a1d7(0xdf)][_0x25a1d7(0x10f)](_0x5d0f91),_0x5f305d=this[_0x25a1d7(0x111)][_0x25a1d7(0xdf)][_0x25a1d7(0x10f)](_0x25a1d7(0xe7)),_0x354602=this[_0x25a1d7(0xc2)][_0x25a1d7(0x10f)](_0x3b9f0b),_0x3ea119=await _0x354602[_0x25a1d7(0xbe)](_0x13dc2b);await this[_0x25a1d7(0xbc)](_0x3ea119);const _0x458dab=new Set(Array[_0x25a1d7(0xc5)](_0x5f305d[_0x25a1d7(0x105)]({'channelId':_0x3b9f0b}),_0xba30d9=>_0xba30d9['id']));for(const _0x58ed30 of _0x3ea119)_0x58ed30[_0x25a1d7(0xde)]||_0x458dab[_0x25a1d7(0xb7)](_0x58ed30[_0x25a1d7(0x10e)]);for(const _0x16c908 of _0x458dab)_0x5f305d[_0x25a1d7(0xdd)](_0x16c908)[_0x25a1d7(0x102)]({'isFromAdapter':!0x0});for(const _0x4111dc of _0x3ea119){let _0x5241e1=_0x5f305d[_0x25a1d7(0xdd)](_0x4111dc[_0x25a1d7(0x10e)]);const {commentThreadId:_0x4c481e,context:_0xd76b49,attributes:_0x4eacca,resolvedBy:_0x46f22d,resolvedAt:_0x3c8ba5,unlinkedAt:_0x3c07f2,deletedAt:_0x5c4bf9}=_0x4111dc;if(_0x5c4bf9)continue;_0x5241e1||(_0x5241e1=_0x5f305d[_0x25a1d7(0x10d)]({'channelId':_0x3b9f0b,'threadId':_0x4c481e,'context':_0xd76b49,'attributes':_0x4eacca||{},'resolvedBy':_0x46f22d,'resolvedAt':_0x3c8ba5,'unlinkedAt':_0x3c07f2,'isFromAdapter':!0x0}));const _0x46ee0c=new Set(Array[_0x25a1d7(0xc5)](_0x5241e1[_0x25a1d7(0x100)],_0x41257f=>_0x41257f['id']));for(const _0x1127fb of _0x4111dc[_0x25a1d7(0x100)])_0x46ee0c[_0x25a1d7(0xb7)](_0x1127fb[_0x25a1d7(0xf0)]);for(const _0x91d49f of _0x46ee0c)_0x5241e1[_0x25a1d7(0xfa)](_0x91d49f)[_0x25a1d7(0x102)]({'isFromAdapter':!0x0});for(const _0x5b3e83 of _0x4111dc[_0x25a1d7(0x100)]){const _0x3ddd4c=_0x5241e1[_0x25a1d7(0xfa)](_0x5b3e83[_0x25a1d7(0xf0)]);_0x3ddd4c?_0x3ddd4c[_0x25a1d7(0xe8)]!==_0x5b3e83[_0x25a1d7(0xe8)]&&_0x3ddd4c[_0x25a1d7(0xf3)]({'content':_0x5b3e83[_0x25a1d7(0xe8)],'isFromAdapter':!0x0}):_0x5241e1[_0x25a1d7(0x10b)](Object[_0x25a1d7(0xc3)](st(_0x5b3e83),{'isFromAdapter':!0x0}));}}}[_0x372958(0xe3)](_0x4a7b2d){const _0x1e4d8d=_0x372958;if(!this[_0x1e4d8d(0xc2)][_0x1e4d8d(0xf4)](_0x4a7b2d))throw new _0x35a412(_0x1e4d8d(0xd8),null,{'channelId':_0x4a7b2d});return this[_0x1e4d8d(0xc2)][_0x1e4d8d(0x10f)](_0x4a7b2d);}async[_0x372958(0xbc)](_0x1b2e8c){const _0x4094bb=_0x372958,_0x1ae2d2=this[_0x4094bb(0x111)][_0x4094bb(0xdf)][_0x4094bb(0x10f)](_0x182222),{connection:_0x1a88cb}=this[_0x4094bb(0x111)][_0x4094bb(0xdf)][_0x4094bb(0x10f)](_0x5d0f91),_0x251586=new Set();for(const {resolvedBy:_0x2b9af0,comments:_0x1c3bcf}of _0x1b2e8c){_0x2b9af0&&!_0x1ae2d2[_0x4094bb(0xe9)](_0x2b9af0)&&_0x251586[_0x4094bb(0xd2)](_0x2b9af0);for(const {userId:_0x5e984b}of _0x1c3bcf)_0x1ae2d2[_0x4094bb(0xe9)](_0x5e984b)||_0x251586[_0x4094bb(0xd2)](_0x5e984b);}if(0x0===_0x251586[_0x4094bb(0xb8)])return;const _0x184e31=await _0x10369e[_0x4094bb(0xf7)](_0x1a88cb,Array[_0x4094bb(0xc5)](_0x251586));for(const _0xec5db5 of _0x184e31)_0x1ae2d2[_0x4094bb(0xe9)](_0xec5db5['id'])||_0x1ae2d2[_0x4094bb(0xcf)](_0xec5db5);}}export{s as CloudServicesCommentsAdapter};async function nt(_0x3efd3b){const _0x38f141=_0x372958;if(_0x38f141(0x101)!==_0x3efd3b[_0x38f141(0xf1)])throw _0x3efd3b;}function _0x58b1(){const _0x186425=['collaboration.channelId','getComment','permissions','commentUpdated','_connectService','52isNJVa','message','comments','404','remove','pluginName','reopen','getCommentThreads','3376740mtuEro','5580UQLHaw','map','unregister','mySessionId','addComment','removeCommentThread','addCommentThread','commentThreadId','get','off','context','commentRemoved','catch','resolve','CommentsService','register','disconnect','keys','2785XuzksQ','updateCommentThread','sessionAdd:','createdAt','reconnect','delete','size','commentAdded','cloud-services-internal-error:\x20Request\x20timeout.','startsWith','_fetchMissingUsersForThreads','_setUpService','connect','set','6261750dtTXcp','resolveCommentThread','_services','assign','config','from','654fMuNPr','commentThreadRemoved','resolvedBy','attributes','cloud-services-internal-error:\x20Not\x20connected.','commentThreadResolved','Permissions','4978015mBMtdu','listenTo','addUser','reopenCommentThread','65597EWCsRS','add','3377xrtvxZ','setPermissions','cloudservicescommentsadapter-disconnect-not-exist','264pCJCTJ','isPremiumPlugin','cloudservicescommentsadapter-service-not-exist','cloudservicescommentsadapter-connect-already-connected','commentThreadAdded','adapter','commentThreadUpdated','getCommentThread','deletedAt','plugins','requires','init','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','_getService','removeComment','updateComment','addToReconnectionStack','CommentsRepository','content','getUser','_terminateService','getConnectedSessions','destroy','commentThreadReopened','authorId','isOfficialPlugin','commentId','code','CloudServicesCommentsAdapter','update','has','213414OGhOCh','resolvedAt','getMany','userId'];_0x58b1=function(){return _0x186425;};return _0x58b1();}function it(_0x452697){const _0x576562=_0x372958;if((_0x305ff9=_0x452697)[_0x576562(0xff)][_0x576562(0xbb)](_0x576562(0xe2))||_0x305ff9[_0x576562(0xff)][_0x576562(0xbb)](_0x576562(0xca))||_0x305ff9[_0x576562(0xff)][_0x576562(0xbb)](_0x576562(0xba)))return new Promise(()=>{});var _0x305ff9;throw _0x452697;}function st(_0x19be4b){const _0x56f0a0=_0x372958;return{'threadId':_0x19be4b[_0x56f0a0(0x10e)],'commentId':_0x19be4b[_0x56f0a0(0xf0)],'content':_0x19be4b[_0x56f0a0(0xe8)],'createdAt':_0x19be4b[_0x56f0a0(0x11c)],'authorId':_0x19be4b[_0x56f0a0(0xf8)],'attributes':_0x19be4b[_0x56f0a0(0xc9)]||{}};}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x44e0(){const _0x32c47a=['710XfdKGC','3864786BNIokZ','_disconnectService','sendOperations','sessionCreatedAt','decompress','view','reconnection:\x20flushed\x20session','ready','wereChangesApplied','realtimecollaborationclient','_isPendingUpdate','_hasSynchronizationProblem','change:hasDomSelection','end','_knownOperations','_isDisconnection','CommentsOnly','setPermissions','document:write','_decompressOperations','disableReadOnlyMode','_channelId','_isLoaded','isEnabled','_refreshUserSelectionMarkers','_connectService','createRange','change:_isPendingUpdate','string','_sendBufferedOperationsDelayed','_lastSyncedOperationId','connection','Notification','_handleInitialConnectionData','_handleReconnectionError','loadRoot','_lastServerVersion','_getAffectedRoot','5TUnmmM','_connectAfterSessionHasBeenFlushed','_bufferRootLoad','_handleSendingSelectionMarkers','bind','add','round','_operationToId','createUserMarkerOperations','change:_isEditingAllowed','from','_disconnectionOperations','markers','_saveOperationInBuffer','state','collaboration-missing-channelid','plugins','version','fromJSON','realtimecollaborationclient-init-connection-failed','_isInit','_knownRootNames','addOperation','metadata','getOperationAuthor','remove','lastSyncVersion','5218136DgewjU','_fetchMissingUsers','offset','entries','connected','selection','lastOperationAcceptedAt','init','isPremiumPlugin','set','multi-root-editor-root-attributes-no-root','stop','enqueueChange','destroy','path','_isConnected','_handleReceivedOperations','getConnectedSessions','_crash','compress','isReadOnly','rootName','getUser','marker','editor','rootsAttributes','forEach','affectsData','start','_addKnownRoot','_getOperationsFromInitData','cloudDocumentVersion','realtimecollaborationclient-sendbufferedoperations','map','isUndoneOperation','model','_isEditingAllowed','channelSessions','startsWith','message','getOperations','position','return','isDocumentOperation','length','batch','163684dmbTDM','enableReadOnlyMode','_waitUntilSynced','realtimecollaborationclient-error','slice','operationsReceived','unregister','_compressOperations','initData','data','catch','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','createRoot','history','serverHistory','push','_handleReconnectionResponse','finally','removeFromReconnectionStack','document','error','createPositionAt','size','rtc-offline','_compressor','off','realtimecollaborationclient-init-session-connection-error','requires','_sendBufferedOperations','_initThrowingOnDataSet','_initSessionsHandling','_loadRoot','409','getDocumentDetails','disconnected','1gmdqIC','pluginName','addRoot','isOfficialPlugin','83493SSjiDN','collaboration.channelId','sessionAdd:','_currentBufferDelay','realtimecollaborationclient-init-document-already-initialized','__className','_isAttached','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','_shouldSendSelectionUpdate','createdAt','insert','directChange','_ignoredOperations','InsertOperation','realtimecollaborationclient-init-service-internal-error','affectedSelectable','CollaborativeEditingService','applyOperation','rtc-destroyed','_setPendingAction','locale','fire','lastDocumentSession','permissions','RealTimeCollaborationClient','reset','connect','_updateServerHistory','root','_handleServerResponse','cloudServices.bundleVersion','currentDocumentSession','disconnect','includes','addUser','_handleExternalOperations','reconnect','editing','createPositionFromPath','mySessionId','register','_baseBufferDelay','type','cs:removeUser','getRoot','collaboration','code','real-time-collaboration','addRootAttribute','get','_shouldSendUpdate','targetPosition','then','realtimecollaborationclient-init-non-existent-root','_pendingAction','_hasSelectionChanged','realtimecollaborationclient-init-service-incorrect-server-operation','_document','realtimecollaborationclient-handleserverresponse','The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','differ','cloud-services-internal-error:\x20Request\x20timeout.','listenTo','clone','setIdForTheLastOperation','1094694hlGVlJ','_service','sessionId','addToReconnectionStack','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','config','Synchronization\x20issue','PENDING_ACTION_SENDING_DATA','The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','Permissions','cloud-services-internal-error:\x20Not\x20connected.','baseVersion','parse','define','filter','_setUpDataInit','_applyOperationsSet','404','1352184FEREVQ','high','keys','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','showWarning','_authorId','getIdOfTheLastOperation','lastOperationId','apply','_operationIdentifier','move','has','roots','wasUndone','_bufferedOperations','_clearPendingAction','3610776MaGVsh','newRange','toJSON','_offset','_sendBufferedOperationsDelayId','userId','suppressErrorInCollaboration','getMany','$root','stopListening','attributes','change:range'];_0x44e0=function(){return _0x32c47a;};return _0x44e0();}function _0xd4c1(_0x4170a8,_0x2216c0){const _0x44e011=_0x44e0();return _0xd4c1=function(_0xd4c155,_0xe77dcf){_0xd4c155=_0xd4c155-0x11c;let _0x39cd48=_0x44e011[_0xd4c155];return _0x39cd48;},_0xd4c1(_0x4170a8,_0x2216c0);}const _0x42067f=_0xd4c1;(function(_0x16399c,_0x354050){const _0x270772=_0xd4c1,_0x38f7f3=_0x16399c();while(!![]){try{const _0x485e1d=-parseInt(_0x270772(0x1b9))/0x1*(parseInt(_0x270772(0x196))/0x2)+-parseInt(_0x270772(0x1fe))/0x3+-parseInt(_0x270772(0x210))/0x4+parseInt(_0x270772(0x14d))/0x5*(-parseInt(_0x270772(0x127))/0x6)+parseInt(_0x270772(0x168))/0x7+parseInt(_0x270772(0x220))/0x8+parseInt(_0x270772(0x1bd))/0x9*(parseInt(_0x270772(0x126))/0xa);if(_0x485e1d===_0x354050)break;else _0x38f7f3['push'](_0x38f7f3['shift']());}catch(_0x24180f){_0x38f7f3['push'](_0x38f7f3['shift']());}}}(_0x44e0,0x68231));import{Plugin as _0x155f6a,PendingActions as _0x5ef522}from'ckeditor5/src/core.js';import{CKEditorError as _0x43f757,version as _0x3bc043,uid as _0xb55173}from'ckeditor5/src/utils.js';import{Notification as _0x39dea8}from'ckeditor5/src/ui.js';import{transformOperationSets as _0x3783a2,NoOperation as _0x5ee1d1,InsertOperation as _0x49f3d1,MarkerOperation as _0x1afab6,RootAttributeOperation as _0x2192ac,OperationFactory as _0x17d136,History as _0x1ff3cb}from'ckeditor5/src/engine.js';import{WebSocketGateway as _0x3f52fe}from'./websocketgateway.js';import{Sessions as _0x587e9e}from'./sessions.js';import{UserMarkers as _0x130729}from'./usermarkers.js';import{getTranslation as _0x538ef1}from'../common-translations.js';import{Compressor as _0x26ca9c}from'@ckeditor/ckeditor5-operations-compressor';import{Users as _0x2d907d}from'ckeditor5-collaboration/src/collaboration-core.js';import{User as _0x4cd910,CollaborativeEditingService as _0x5c98f1}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let G=0x1;class l extends _0x155f6a{static [_0x42067f(0x1cd)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x5c98f1)());[_0x42067f(0x11d)];[_0x42067f(0x200)];[_0x42067f(0x1a4)];[_0x42067f(0x13c)];[_0x42067f(0x1ff)];[_0x42067f(0x1f6)];[_0x42067f(0x1ae)];[_0x42067f(0x21e)];[_0x42067f(0x135)];[_0x42067f(0x162)];[_0x42067f(0x1f3)];[_0x42067f(0x1f4)];[_0x42067f(0x11e)];[_0x42067f(0x1e6)];[_0x42067f(0x1c0)];[_0x42067f(0x145)];[_0x42067f(0x158)];[_0x42067f(0x219)];static get[_0x42067f(0x1b1)](){return[_0x3f52fe,_0x587e9e,_0x130729,_0x5ef522,_0x2d907d,_0x39dea8];}static get[_0x42067f(0x1ba)](){const _0x109565=_0x42067f;return _0x109565(0x1d5);}static get[_0x42067f(0x1bc)](){return!0x0;}static get[_0x42067f(0x170)](){return!0x0;}get[_0x42067f(0x187)](){const _0x4b8b53=_0x42067f;return this[_0x4b8b53(0x14b)]+this[_0x4b8b53(0x11d)];}get[_0x42067f(0x14b)](){const _0x363308=_0x42067f;return this[_0x363308(0x1a4)][_0x363308(0x15e)]-this[_0x363308(0x11d)];}get[_0x42067f(0x167)](){const _0x470a12=_0x42067f,_0x41e50a=this[_0x470a12(0x1a4)][_0x470a12(0x190)]();for(let _0x87c3df=_0x41e50a[_0x470a12(0x194)]-0x1;_0x87c3df>=0x0;_0x87c3df--){const _0x36aa9a=_0x41e50a[_0x87c3df];if(!this[_0x470a12(0x158)][_0x470a12(0x21b)](_0x36aa9a))return _0x36aa9a[_0x470a12(0x209)]+0x1-this[_0x470a12(0x11d)];}return 0x0;}constructor(_0x24f184){const _0xae21fc=_0x42067f;if(super(_0x24f184),this[_0xae21fc(0x11d)]=0x0,this[_0xae21fc(0x200)]=null,this[_0xae21fc(0x1a4)]=new _0x1ff3cb(),this[_0xae21fc(0x180)][_0xae21fc(0x203)][_0xae21fc(0x20b)](_0xae21fc(0x1ea),{}),this[_0xae21fc(0x13c)]=this[_0xae21fc(0x180)][_0xae21fc(0x203)][_0xae21fc(0x1ee)](_0xae21fc(0x1be)),!this[_0xae21fc(0x13c)])throw new _0x43f757(_0xae21fc(0x15c),this);const _0x4309a3=_0x24f184[_0xae21fc(0x203)][_0xae21fc(0x1ee)](_0xae21fc(0x1db))||_0x3bc043;this[_0xae21fc(0x1ff)]=new l[(_0xae21fc(0x1cd))](_0x4309a3,this[_0xae21fc(0x13c)]),this[_0xae21fc(0x1f6)]=this[_0xae21fc(0x180)][_0xae21fc(0x18b)][_0xae21fc(0x1a9)],this[_0xae21fc(0x1ae)]=new _0x26ca9c(),this[_0xae21fc(0x21e)]=[],this[_0xae21fc(0x135)]=new WeakSet(),this[_0xae21fc(0x162)]=new Set(),this[_0xae21fc(0x171)](_0xae21fc(0x131),!0x1),this[_0xae21fc(0x171)](_0xae21fc(0x132),!0x1),this[_0xae21fc(0x1f3)]=null,this[_0xae21fc(0x1f4)]=!0x1,this[_0xae21fc(0x11e)]=null,this[_0xae21fc(0x1e6)]=0x12c,this[_0xae21fc(0x1c0)]=this[_0xae21fc(0x1e6)],this[_0xae21fc(0x145)]=null,this[_0xae21fc(0x158)]=new WeakSet(),this[_0xae21fc(0x219)]=new J(this[_0xae21fc(0x158)]);}[_0x42067f(0x16f)](){const _0x21ea9d=_0x42067f,_0x576f3a=this[_0x21ea9d(0x180)],_0x2a671c=_0x576f3a[_0x21ea9d(0x15d)][_0x21ea9d(0x1ee)](_0x2d907d),_0xe4c2d6=_0x576f3a[_0x21ea9d(0x15d)][_0x21ea9d(0x1ee)](_0x3f52fe);this[_0x21ea9d(0x1fb)](_0x2a671c,_0x21ea9d(0x165),(_0x259cb6,_0xa28b06)=>{const _0x5cc81f=_0x21ea9d,_0x2fcef1=_0xa28b06[0x0];_0x2fcef1[_0x5cc81f(0x215)]&&(_0x259cb6[_0x5cc81f(0x192)]=_0x2a671c[_0x5cc81f(0x17e)](_0x2fcef1[_0x5cc81f(0x215)]),_0x259cb6[_0x5cc81f(0x173)]()),null===_0x2fcef1[_0x5cc81f(0x215)]&&(_0x259cb6[_0x5cc81f(0x192)]=null,_0x259cb6[_0x5cc81f(0x173)]());},{'priority':_0x21ea9d(0x211)}),this[_0x21ea9d(0x1fb)](_0x576f3a[_0x21ea9d(0x18b)][_0x21ea9d(0x1a9)][_0x21ea9d(0x16d)],_0x21ea9d(0x125),(_0x14d026,_0x4f7d06)=>{const _0xef776f=_0x21ea9d;_0x4f7d06[_0xef776f(0x1c8)]&&this[_0xef776f(0x13f)]();}),this[_0x21ea9d(0x1fb)](_0x576f3a[_0x21ea9d(0x1e2)][_0x21ea9d(0x12c)],_0x21ea9d(0x133),()=>{const _0x5041a0=_0x21ea9d;this[_0x5041a0(0x13f)]();}),this[_0x21ea9d(0x1b3)](),_0x576f3a[_0x21ea9d(0x18b)]['on'](_0x21ea9d(0x1ce),(_0x531125,_0x5532c1)=>{const _0x2f1b43=_0x21ea9d,_0x1cecf0=_0x5532c1[0x0];_0x1cecf0[_0x2f1b43(0x193)]&&(this[_0x2f1b43(0x15a)](_0x1cecf0),this[_0x2f1b43(0x1ef)]()&&this[_0x2f1b43(0x144)]());}),this[_0x21ea9d(0x20d)](),this[_0x21ea9d(0x151)](_0x21ea9d(0x18c))['to'](_0xe4c2d6,_0x21ea9d(0x15b),this,_0x21ea9d(0x132),(_0x540fcd,_0xd8fa11)=>_0x21ea9d(0x16c)===_0x540fcd&&!_0xd8fa11),this['on'](_0x21ea9d(0x156),()=>{const _0x51a4ca=_0x21ea9d;this[_0x51a4ca(0x18c)]?_0x576f3a[_0x51a4ca(0x13b)](_0x51a4ca(0x1ad)):_0x576f3a[_0x51a4ca(0x197)](_0x51a4ca(0x1ad));}),this[_0x21ea9d(0x18c)]?_0x576f3a[_0x21ea9d(0x13b)](_0x21ea9d(0x1ad)):_0x576f3a[_0x21ea9d(0x197)](_0x21ea9d(0x1ad)),this[_0x21ea9d(0x171)](_0x21ea9d(0x177),!0x1);}async[_0x42067f(0x1e1)](){const _0x5a9b2d=_0x42067f,_0x567bda=this[_0x5a9b2d(0x180)][_0x5a9b2d(0x15d)][_0x5a9b2d(0x1ee)](_0x587e9e),_0x4ceb19=this[_0x5a9b2d(0x180)][_0x5a9b2d(0x15d)][_0x5a9b2d(0x1ee)](_0x3f52fe);try{this[_0x5a9b2d(0x131)]=!0x0,_0x567bda[_0x5a9b2d(0x19c)](this[_0x5a9b2d(0x13c)]);const _0x41524d=await this[_0x5a9b2d(0x1ff)][_0x5a9b2d(0x1e1)](_0x4ceb19[_0x5a9b2d(0x146)],this[_0x5a9b2d(0x167)]);await this[_0x5a9b2d(0x1a6)](_0x41524d)&&(this[_0x5a9b2d(0x131)]=!0x1,this[_0x5a9b2d(0x21f)]());const _0x100f21=await this[_0x5a9b2d(0x1ff)][_0x5a9b2d(0x179)]();_0x567bda[_0x5a9b2d(0x1e5)](this[_0x5a9b2d(0x13c)],_0x100f21),this[_0x5a9b2d(0x150)](),this[_0x5a9b2d(0x177)]=!0x0;}catch(_0x4de59f){if(function(_0x2022dc){const _0x3a59b5=_0x5a9b2d;return _0x3a59b5(0x20f)===_0x2022dc[_0x3a59b5(0x1eb)];}(_0x4de59f)&&this[_0x5a9b2d(0x200)])await this[_0x5a9b2d(0x14e)]();else{if(function(_0x3f48da){const _0x1f2960=_0x5a9b2d;return _0x1f2960(0x1b6)===_0x3f48da[_0x1f2960(0x1eb)];}(_0x4de59f)){const _0x105340=_0x538ef1(this[_0x5a9b2d(0x180)][_0x5a9b2d(0x1d1)],_0x5a9b2d(0x1c4));this[_0x5a9b2d(0x149)](_0x105340);}else{if(!(_0x4de59f instanceof $))throw _0x4de59f;this[_0x5a9b2d(0x149)]();}}}}[_0x42067f(0x175)](){const _0x2d2460=_0x42067f,_0x20c8dd=this[_0x2d2460(0x180)][_0x2d2460(0x15d)][_0x2d2460(0x1ee)](_0x3f52fe),_0xa3bd3d=this[_0x2d2460(0x180)][_0x2d2460(0x15d)][_0x2d2460(0x1ee)](_0x587e9e);this[_0x2d2460(0x180)][_0x2d2460(0x197)](_0x2d2460(0x1cf)),_0xa3bd3d[_0x2d2460(0x18d)][_0x2d2460(0x21b)](this[_0x2d2460(0x13c)])&&_0xa3bd3d[_0x2d2460(0x19c)](this[_0x2d2460(0x13c)]),_0x20c8dd[_0x2d2460(0x1a8)](this),this[_0x2d2460(0x128)](),super[_0x2d2460(0x175)]();}async[_0x42067f(0x1a6)](_0x152b5d){const _0x330558=_0x42067f;if(this[_0x330558(0x200)]!==_0x152b5d[_0x330558(0x200)]&&this[_0x330558(0x145)]!==_0x152b5d[_0x330558(0x217)])throw new $();return this[_0x330558(0x200)]=_0x152b5d[_0x330558(0x200)],this[_0x330558(0x1da)]([],{..._0x152b5d,'wereChangesApplied':!0x1,'data':_0x152b5d[_0x330558(0x19f)]},_0x330558(0x1e1));}async[_0x42067f(0x140)](_0x1b0ec3,_0x2f6ce0=!0x1){const _0x2c9836=_0x42067f,{connection:_0x128ae3}=this[_0x2c9836(0x180)][_0x2c9836(0x15d)][_0x2c9836(0x1ee)](_0x3f52fe);l[_0x2c9836(0x1cd)][_0x2c9836(0x179)](_0x128ae3,this[_0x2c9836(0x13c)])[_0x2c9836(0x1f1)](_0x13f747=>this[_0x2c9836(0x1b4)](_0x13f747))[_0x2c9836(0x1a0)](_0x28bd47=>{const _0x1231c8=_0x2c9836;this[_0x1231c8(0x17a)](_0x1231c8(0x1b0),_0x28bd47);}),this[_0x2c9836(0x1fb)](this[_0x2c9836(0x1ff)],_0x2c9836(0x19b),this[_0x2c9836(0x178)][_0x2c9836(0x151)](this)),this[_0x2c9836(0x1fb)](this[_0x2c9836(0x1ff)],_0x2c9836(0x1aa),(_0x3e9d30,_0x3ae1eb)=>{const _0x1a3681=_0x2c9836;this[_0x1a3681(0x17a)](_0x1a3681(0x1cb),_0x3ae1eb);}),this[_0x2c9836(0x1fb)](this[_0x2c9836(0x1ff)],_0x2c9836(0x1b8),()=>{const _0x1e3fcf=_0x2c9836;this[_0x1e3fcf(0x177)]=!0x1;});const _0x2af421=this[_0x2c9836(0x219)][_0x2c9836(0x216)](_0x1b0ec3);this[_0x2c9836(0x131)]=!0x0;const _0x353cf5=await this[_0x2c9836(0x1ff)][_0x2c9836(0x1d7)](_0x128ae3,this[_0x2c9836(0x19d)](_0x1b0ec3),_0x2af421);if(this[_0x2c9836(0x200)]=_0x353cf5[_0x2c9836(0x200)],_0x2f6ce0){if(!_0x353cf5[_0x2c9836(0x12f)])return void this[_0x2c9836(0x149)]();this[_0x2c9836(0x131)]=!0x1,this[_0x2c9836(0x21f)](),this[_0x2c9836(0x1a4)][_0x2c9836(0x1d6)](),this[_0x2c9836(0x11d)]=_0x353cf5[_0x2c9836(0x16a)],this[_0x2c9836(0x1a4)][_0x2c9836(0x15e)]=this[_0x2c9836(0x11d)],await this[_0x2c9836(0x1da)](_0x1b0ec3,_0x353cf5,_0x2c9836(0x12d));}else await this[_0x2c9836(0x148)](_0x353cf5,_0x1b0ec3);this[_0x2c9836(0x150)](),this[_0x2c9836(0x177)]=!0x0;}[_0x42067f(0x150)](){const _0x18e09e=_0x42067f,_0x26e138=this[_0x18e09e(0x180)][_0x18e09e(0x15d)][_0x18e09e(0x1ee)](_0x587e9e),_0xddb8e2=this[_0x18e09e(0x180)][_0x18e09e(0x15d)][_0x18e09e(0x1ee)](_0x130729),_0x3fbc7b=_0x26e138[_0x18e09e(0x18d)][_0x18e09e(0x1ee)](this[_0x18e09e(0x13c)]);_0x3fbc7b&&_0x3fbc7b[_0x18e09e(0x194)]>0x1?_0xddb8e2[_0x18e09e(0x155)]():this[_0x18e09e(0x1fb)](_0x26e138,_0x18e09e(0x1bf)+this[_0x18e09e(0x13c)],()=>{const _0x236e15=_0x18e09e;0x2===_0x26e138[_0x236e15(0x18d)][_0x236e15(0x1ee)](this[_0x236e15(0x13c)])[_0x236e15(0x194)]&&_0xddb8e2[_0x236e15(0x155)]();});}async[_0x42067f(0x178)](_0x336601,_0x2a2f3d,_0x358386,_0xbbd051){const _0x326d13=_0x42067f;if(!this[_0x326d13(0x131)]&&this[_0x326d13(0x1f6)][_0x326d13(0x15e)]==_0x2a2f3d){const _0x48d7f4=this[_0x326d13(0x13a)](_0x358386,_0xbbd051);await this[_0x326d13(0x169)](_0x48d7f4),this[_0x326d13(0x1e0)](_0x48d7f4,_0x2a2f3d,_0x358386[_0x326d13(0x217)])||this[_0x326d13(0x17a)](_0x326d13(0x1f5));}}async[_0x42067f(0x14e)](){const _0x57788a=_0x42067f;this[_0x57788a(0x128)]();const {locale:_0x3e2f8c}=this[_0x57788a(0x180)];let _0x4fe3cd;try{_0x4fe3cd=await this[_0x57788a(0x1ff)][_0x57788a(0x1b7)]();}catch{const _0x2ebef6=_0x538ef1(_0x3e2f8c,_0x57788a(0x202));return void this[_0x57788a(0x149)](_0x2ebef6);}const _0x319df4=_0x4fe3cd[_0x57788a(0x1dc)]||_0x4fe3cd[_0x57788a(0x1d3)];if(this[_0x57788a(0x145)]!==_0x319df4[_0x57788a(0x217)]){const _0x384ac6=_0x538ef1(_0x3e2f8c,_0x57788a(0x1f8));return void this[_0x57788a(0x149)](_0x384ac6);}await this[_0x57788a(0x140)](this[_0x57788a(0x180)][_0x57788a(0x18b)][_0x57788a(0x1a9)][_0x57788a(0x1a3)][_0x57788a(0x190)](),!0x0);}[_0x42067f(0x128)](){const _0x42fe7b=_0x42067f;this[_0x42fe7b(0x1ff)][_0x42fe7b(0x1dd)](),this[_0x42fe7b(0x21e)]=[],clearTimeout(this[_0x42fe7b(0x11e)]),this[_0x42fe7b(0x123)](this[_0x42fe7b(0x1ff)]);}[_0x42067f(0x1b4)](_0x393f85){const _0x499ec2=_0x42067f,_0xb32dc7=this[_0x499ec2(0x180)][_0x499ec2(0x15d)][_0x499ec2(0x1ee)](_0x587e9e);this[_0x499ec2(0x1fb)](_0xb32dc7,_0x499ec2(0x1bf)+this[_0x499ec2(0x13c)],(_0x4ff9dc,{session:_0xf174bc})=>{const _0x23a988=_0x499ec2;if(_0xf174bc['id']===_0xb32dc7[_0x23a988(0x1e4)]){_0x4ff9dc[_0x23a988(0x1af)]();const _0x51f1a9=this[_0x23a988(0x180)][_0x23a988(0x15d)][_0x23a988(0x21b)](_0x23a988(0x137))&&this[_0x23a988(0x180)][_0x23a988(0x15d)][_0x23a988(0x1ee)](_0x23a988(0x137));let _0x4fd6a3=_0xf174bc[_0x23a988(0x1d4)];_0x51f1a9&&_0x51f1a9[_0x23a988(0x13e)]&&(_0x4fd6a3=_0x4fd6a3[_0x23a988(0x20c)](_0x29667a=>_0x23a988(0x139)!==_0x29667a)),this[_0x23a988(0x180)][_0x23a988(0x15d)][_0x23a988(0x1ee)](_0x23a988(0x207))[_0x23a988(0x138)](_0x4fd6a3,this[_0x23a988(0x13c)]);}}),_0xb32dc7[_0x499ec2(0x1e5)](this[_0x499ec2(0x13c)],_0x393f85);}[_0x42067f(0x1b3)](){const _0x3a7683=_0x42067f,_0xf68642=this[_0x3a7683(0x180)][_0x3a7683(0x19f)][_0x3a7683(0x171)];this[_0x3a7683(0x180)][_0x3a7683(0x19f)][_0x3a7683(0x171)]=(..._0x52ae45)=>{const _0x3389eb=_0x3a7683;if(!_0x52ae45[_0x52ae45[_0x3389eb(0x194)]-0x1][_0x3389eb(0x120)])throw new _0x43f757(_0x3389eb(0x213),this);_0xf68642[_0x3389eb(0x218)](this[_0x3389eb(0x180)][_0x3389eb(0x19f)],_0x52ae45);};}[_0x42067f(0x20d)](){const _0x379672=_0x42067f;this[_0x379672(0x180)][_0x379672(0x19f)]['on'](_0x379672(0x16f),(_0x327dce,[_0x14fc9a])=>{const _0x178ee8=_0x379672;if(this[_0x178ee8(0x1f6)][_0x178ee8(0x15e)])throw new _0x43f757(_0x178ee8(0x1c1),this);_0x327dce[_0x178ee8(0x173)](),this[_0x178ee8(0x1d0)]();const _0x49496a=this[_0x178ee8(0x180)][_0x178ee8(0x203)][_0x178ee8(0x1ee)](_0x178ee8(0x181)),_0x5be0c2=this[_0x178ee8(0x186)](_0x14fc9a,_0x49496a);0x0==_0x5be0c2[_0x178ee8(0x194)]&&_0x5be0c2[_0x178ee8(0x1a5)](new _0x5ee1d1(0x0)),_0x327dce[_0x178ee8(0x192)]=this[_0x178ee8(0x140)](_0x5be0c2)[_0x178ee8(0x1f1)](()=>{const _0x404241=_0x178ee8;this[_0x404241(0x180)][_0x404241(0x15d)][_0x404241(0x1ee)](_0x3f52fe)[_0x404241(0x201)](this),this[_0x404241(0x180)][_0x404241(0x19f)][_0x404241(0x1d2)](_0x404241(0x12e));})[_0x178ee8(0x1a0)](_0x2b8a72=>this[_0x178ee8(0x17a)](_0x178ee8(0x160),_0x2b8a72))[_0x178ee8(0x1a7)](()=>this[_0x178ee8(0x21f)]());},{'priority':_0x379672(0x211)}),this[_0x379672(0x180)]['on'](_0x379672(0x14a),async(_0x3f6341,[_0x11c678,_0x568fd2])=>{const _0x4f3f3d=_0x379672;_0x3f6341[_0x4f3f3d(0x173)]();const _0x56f5f0=this[_0x4f3f3d(0x180)][_0x4f3f3d(0x18b)][_0x4f3f3d(0x1a9)][_0x4f3f3d(0x1e9)](_0x11c678);if(!this[_0x4f3f3d(0x162)][_0x4f3f3d(0x21b)](_0x11c678)){const _0x53819b=_0x568fd2&&_0x568fd2[_0x4f3f3d(0x19f)]?_0x568fd2[_0x4f3f3d(0x19f)]:'',_0x424584=_0x568fd2&&_0x568fd2[_0x4f3f3d(0x124)]?_0x568fd2[_0x4f3f3d(0x124)]:{};await this[_0x4f3f3d(0x1b5)](_0x11c678,_0x53819b,_0x424584);}this[_0x4f3f3d(0x180)][_0x4f3f3d(0x18b)][_0x4f3f3d(0x174)]({'isUndoable':!0x1},()=>{const _0x36d49b=_0x4f3f3d;_0x56f5f0[_0x36d49b(0x13d)]=!0x0,this[_0x36d49b(0x180)][_0x36d49b(0x18b)][_0x36d49b(0x1a9)][_0x36d49b(0x1f9)][_0x36d49b(0x14f)](_0x56f5f0);});},{'priority':_0x379672(0x211)});}async[_0x42067f(0x169)](_0xda126e){const _0x3b08da=_0x42067f,_0x13a2e4=this[_0x3b08da(0x180)][_0x3b08da(0x15d)][_0x3b08da(0x1ee)](_0x2d907d),{connection:_0x572626}=this[_0x3b08da(0x180)][_0x3b08da(0x15d)][_0x3b08da(0x1ee)](_0x3f52fe),_0x2b91b8=new Set();for(const _0x32b90f of _0xda126e){const _0x538e67=_0x32b90f[_0x3b08da(0x215)];_0x538e67&&!_0x13a2e4[_0x3b08da(0x17e)](_0x538e67)&&_0x2b91b8[_0x3b08da(0x152)](_0x538e67);}if(0x0===_0x2b91b8[_0x3b08da(0x1ac)])return;const _0x4c100f=await _0x4cd910[_0x3b08da(0x121)](_0x572626,Array[_0x3b08da(0x157)](_0x2b91b8));for(const _0x29ebf of _0x4c100f)_0x13a2e4[_0x3b08da(0x17e)](_0x29ebf['id'])||_0x13a2e4[_0x3b08da(0x1df)](_0x29ebf);}[_0x42067f(0x186)](_0x3ab96c,_0xe98d96={}){const _0x2dbcd5=_0x42067f,_0x463c18=this[_0x2dbcd5(0x180)][_0x2dbcd5(0x18b)],_0x536582=[];let _0x1b1359=0x0;const _0x5b2684=_0x2dbcd5(0x143)==typeof _0x3ab96c?{'main':_0x3ab96c}:_0x3ab96c;for(const _0x18f26d of Object[_0x2dbcd5(0x212)](_0x5b2684)){if(!this[_0x2dbcd5(0x1f6)][_0x2dbcd5(0x21c)][_0x2dbcd5(0x21b)](_0x18f26d))throw new _0x43f757(_0x2dbcd5(0x1f2),this);const _0x14af9b=this[_0x2dbcd5(0x180)][_0x2dbcd5(0x19f)][_0x2dbcd5(0x20a)](_0x5b2684[_0x18f26d]),_0x1c5d59=this[_0x2dbcd5(0x1f6)][_0x2dbcd5(0x1e9)](_0x18f26d),_0x2e5f7a=new _0x49f3d1(_0x463c18[_0x2dbcd5(0x1ab)](_0x1c5d59,0x0),_0x14af9b,_0x1b1359++);_0x536582[_0x2dbcd5(0x1a5)](_0x2e5f7a);for(const [_0xc1b7e2,_0x52e422]of _0x14af9b[_0x2dbcd5(0x159)]){const _0x1f4e54=_0x463c18[_0x2dbcd5(0x141)](_0x463c18[_0x2dbcd5(0x1e3)](_0x1c5d59,_0x52e422[_0x2dbcd5(0x184)][_0x2dbcd5(0x176)][_0x2dbcd5(0x19a)]()),_0x463c18[_0x2dbcd5(0x1e3)](_0x1c5d59,_0x52e422[_0x2dbcd5(0x134)][_0x2dbcd5(0x176)][_0x2dbcd5(0x19a)]())),_0x4bc2dd=new _0x1afab6(_0xc1b7e2,null,_0x1f4e54,_0x463c18[_0x2dbcd5(0x159)],!0x0,_0x1b1359++);_0x536582[_0x2dbcd5(0x1a5)](_0x4bc2dd);}}if(_0xe98d96)for(const [_0x328b70,_0x14190f]of Object[_0x2dbcd5(0x16b)](_0xe98d96)){const _0x4489be=_0x463c18[_0x2dbcd5(0x1a9)][_0x2dbcd5(0x1e9)](_0x328b70);if(!_0x4489be)throw new _0x43f757(_0x2dbcd5(0x172),null);for(const [_0x45b24f,_0x1a113f]of Object[_0x2dbcd5(0x16b)](_0x14190f))if(null!==_0x1a113f){const _0x4b2ff5=new _0x2192ac(_0x4489be,_0x45b24f,null,_0x1a113f,_0x1b1359++);_0x536582[_0x2dbcd5(0x1a5)](_0x4b2ff5);}}return _0x536582;}async[_0x42067f(0x1b5)](_0x5ef910,_0x2dd3ca,_0x57ad19){const _0x596fda=_0x42067f;this[_0x596fda(0x186)]({[_0x5ef910]:_0x2dd3ca},{[_0x5ef910]:_0x57ad19})[_0x596fda(0x182)]((_0x49a007,_0x586fe5)=>{const _0x1207df=_0x596fda;_0x49a007[_0x1207df(0x209)]=this[_0x1207df(0x1f6)][_0x1207df(0x15e)]+_0x586fe5,_0x49a007[_0x1207df(0x161)]=!0x0,this[_0x1207df(0x15a)](_0x49a007);}),this[_0x596fda(0x144)](),await this[_0x596fda(0x198)]();}async[_0x42067f(0x148)](_0x43d593,_0x4007ec){const _0x3e6fca=_0x42067f;let _0x3efe51;this[_0x3e6fca(0x11d)]=_0x43d593[_0x3e6fca(0x16a)];const _0xb3f53f=_0x43d593[_0x3e6fca(0x12f)]&&!_0x43d593[_0x3e6fca(0x19e)],_0x35608f=_0xb3f53f?0x0:_0x43d593[_0x3e6fca(0x19f)][_0x3e6fca(0x209)];if(_0x4007ec[_0x3e6fca(0x182)](_0x3e597f=>{const _0x340e89=_0x3e6fca;_0x3e597f[_0x340e89(0x161)]=!0x0,_0x3e597f[_0x340e89(0x1c6)]=_0x43d593[_0x340e89(0x12a)],_0x3e597f[_0x340e89(0x215)]=null;}),_0xb3f53f)_0x3efe51=_0x4007ec,this[_0x3e6fca(0x20e)](_0x3efe51,_0xb3f53f);else{if(_0x43d593[_0x3e6fca(0x19e)]){const _0x202fd6=this[_0x3e6fca(0x186)](_0x43d593[_0x3e6fca(0x19e)]);this[_0x3e6fca(0x1f6)][_0x3e6fca(0x1a3)][_0x3e6fca(0x15e)]=-_0x202fd6[_0x3e6fca(0x194)],_0x202fd6[_0x3e6fca(0x182)](_0x24d2c2=>{const _0x2ced2f=_0x3e6fca;_0x24d2c2[_0x2ced2f(0x209)]-=_0x202fd6[_0x2ced2f(0x194)],_0x24d2c2[_0x2ced2f(0x1c6)]=_0x43d593[_0x2ced2f(0x12a)],_0x24d2c2[_0x2ced2f(0x161)]=!0x0,_0x24d2c2[_0x2ced2f(0x215)]=null;}),this[_0x3e6fca(0x20e)](_0x202fd6,!0x0),this[_0x3e6fca(0x1a4)][_0x3e6fca(0x15e)]=-_0x202fd6[_0x3e6fca(0x194)]+this[_0x3e6fca(0x11d)],this[_0x3e6fca(0x1d8)](_0x202fd6);}this[_0x3e6fca(0x1f6)][_0x3e6fca(0x1a3)][_0x3e6fca(0x15e)]=_0x35608f,_0x3efe51=this[_0x3e6fca(0x13a)](_0x43d593[_0x3e6fca(0x19f)],_0x43d593[_0x3e6fca(0x164)]),await this[_0x3e6fca(0x169)](_0x3efe51),this[_0x3e6fca(0x20e)](_0x3efe51,_0xb3f53f);}_0x43d593[_0x3e6fca(0x217)]&&(this[_0x3e6fca(0x219)][_0x3e6fca(0x1fd)](_0x3efe51,_0x43d593[_0x3e6fca(0x217)]),this[_0x3e6fca(0x145)]=_0x43d593[_0x3e6fca(0x217)]),this[_0x3e6fca(0x1a4)][_0x3e6fca(0x15e)]=_0x35608f+this[_0x3e6fca(0x11d)],this[_0x3e6fca(0x1d8)](_0x3efe51),_0x4007ec[_0x3e6fca(0x20c)](_0x5ae409=>{const _0x4966b1=_0x3e6fca,_0x97031d=this[_0x4966b1(0x14c)](_0x5ae409);return _0x97031d&&!this[_0x4966b1(0x162)][_0x4966b1(0x21b)](_0x97031d);})[_0x3e6fca(0x182)]((_0x4dc980,_0x138f2)=>{const _0x5bf6c7=_0x3e6fca;_0x4dc980[_0x5bf6c7(0x209)]=this[_0x5bf6c7(0x1f6)][_0x5bf6c7(0x15e)]+_0x138f2,this[_0x5bf6c7(0x15a)](_0x4dc980);}),this[_0x3e6fca(0x1ef)]()?(this[_0x3e6fca(0x1c0)]=0x0,this[_0x3e6fca(0x144)](!0x0),await this[_0x3e6fca(0x198)]()):(this[_0x3e6fca(0x131)]=!0x1,this[_0x3e6fca(0x21f)]());}[_0x42067f(0x17a)](_0x23349f,_0x27c781){const _0x486c2f=_0x42067f,_0x428202=_0x27c781&&_0x27c781[_0x486c2f(0x18f)];if(_0x428202&&_0x428202[_0x486c2f(0x18e)](_0x486c2f(0x130)))throw _0x27c781;const _0x4504d9=this[_0x486c2f(0x180)][_0x486c2f(0x15d)][_0x486c2f(0x1ee)](_0x3f52fe);throw this[_0x486c2f(0x131)]=!0x0,_0x4504d9[_0x486c2f(0x1dd)](),this[_0x486c2f(0x180)][_0x486c2f(0x197)](_0x486c2f(0x199)),new _0x43f757(_0x23349f,this[_0x486c2f(0x180)],_0x428202?{'originalError':_0x428202}:void 0x0);}[_0x42067f(0x15a)](_0x3494c7){const _0x4771e5=_0x42067f;this[_0x4771e5(0x135)][_0x4771e5(0x21b)](_0x3494c7)||(this[_0x4771e5(0x135)][_0x4771e5(0x152)](_0x3494c7),this[_0x4771e5(0x21e)][_0x4771e5(0x1a5)](_0x3494c7),this[_0x4771e5(0x1f3)]||_0x4771e5(0x17f)==_0x3494c7[_0x4771e5(0x1e7)]&&!_0x3494c7[_0x4771e5(0x183)]||this[_0x4771e5(0x1d0)]());}[_0x42067f(0x144)](_0x3fbc5c=!0x1){const _0x13e550=_0x42067f;!_0x3fbc5c&&this[_0x13e550(0x131)]||(this[_0x13e550(0x131)]=!0x0,clearTimeout(this[_0x13e550(0x11e)]),this[_0x13e550(0x11e)]=setTimeout(()=>{const _0x4491dc=_0x13e550;this[_0x4491dc(0x1b2)]()[_0x4491dc(0x1f1)](_0x504383=>{const _0x45a9d3=_0x4491dc;_0x504383&&(this[_0x45a9d3(0x21f)](),this[_0x45a9d3(0x131)]=!0x1);})[_0x4491dc(0x1a0)](_0x4b326e=>{const _0x329acb=_0x4491dc;this[_0x329acb(0x21f)](),this[_0x329acb(0x131)]=!0x1,function(_0x543c3a){const _0xc0ae1d=_0x329acb;return _0x543c3a[_0xc0ae1d(0x18f)][_0xc0ae1d(0x18e)](_0xc0ae1d(0x208))||_0x543c3a[_0xc0ae1d(0x18f)][_0xc0ae1d(0x18e)](_0xc0ae1d(0x1a1))||_0x543c3a[_0xc0ae1d(0x18f)][_0xc0ae1d(0x18e)](_0xc0ae1d(0x1fa));}(_0x4b326e)||this[_0x329acb(0x17a)](_0x4b326e[_0x329acb(0x18f)],_0x4b326e);});},this[_0x13e550(0x1c0)]));}[_0x42067f(0x198)](){return new Promise(_0x2a3dcc=>{const _0x3c5955=_0xd4c1;this['on'](_0x3c5955(0x142),()=>{_0x2a3dcc();});});}async[_0x42067f(0x1b2)](){const _0x35560d=_0x42067f,_0x1cbfe2=this[_0x35560d(0x180)][_0x35560d(0x15d)][_0x35560d(0x1ee)](_0x130729);if(this[_0x35560d(0x1c5)]()&&(_0x1cbfe2[_0x35560d(0x155)](),this[_0x35560d(0x1f4)]=!0x1),!this[_0x35560d(0x1ef)]())return!0x0;const _0x4f8f30=[...this[_0x35560d(0x21e)]];for(const _0x5db295 of _0x4f8f30)_0x5db295[_0x35560d(0x21d)]=this[_0x35560d(0x1f6)][_0x35560d(0x1a3)][_0x35560d(0x18a)](_0x5db295);const _0x2d588d=this[_0x35560d(0x219)][_0x35560d(0x216)](_0x4f8f30),_0x239c56=G++,_0x382e82=this[_0x35560d(0x19d)](_0x4f8f30),_0x29d6ea=await this[_0x35560d(0x1ff)][_0x35560d(0x129)](_0x382e82,_0x382e82[_0x35560d(0x209)],_0x2d588d);try{return await this[_0x35560d(0x1da)](_0x4f8f30,_0x29d6ea,_0x239c56);}catch(_0x59b79a){return this[_0x35560d(0x17a)](_0x35560d(0x188),_0x59b79a);}}async[_0x42067f(0x1da)](_0x3d6764,_0x47d84d,_0xc2eab6){const _0x1c10d0=_0x42067f;if(_0x1c10d0(0x1aa)in _0x47d84d)throw _0x47d84d[_0x1c10d0(0x1aa)];let _0x1186b2=!0x1;if(_0x47d84d[_0x1c10d0(0x12f)]){_0x47d84d[_0x1c10d0(0x217)]&&(this[_0x1c10d0(0x145)]=_0x47d84d[_0x1c10d0(0x217)]),this[_0x1c10d0(0x21e)]=this[_0x1c10d0(0x21e)][_0x1c10d0(0x20c)](_0x3dfc03=>!_0x3d6764[_0x1c10d0(0x1de)](_0x3dfc03));for(const _0x33469d of _0x3d6764)_0x33469d[_0x1c10d0(0x1c6)]=_0x1c10d0(0x16e)in _0x47d84d&&_0x47d84d[_0x1c10d0(0x16e)]||void 0x0;K(_0x3d6764,_0x47d84d[_0x1c10d0(0x15e)]-_0x3d6764[_0x1c10d0(0x194)]),this[_0x1c10d0(0x1d8)](_0x3d6764);const _0x4ce15e=_0x3d6764[_0x1c10d0(0x20c)](_0x5cb6f9=>{const _0x1d504b=_0x1c10d0;if(!_0x5cb6f9[_0x1d504b(0x161)])return!0x1;const _0x46796d=this[_0x1d504b(0x14c)](_0x5cb6f9);return _0x46796d&&!this[_0x1d504b(0x162)][_0x1d504b(0x21b)](_0x46796d);});K(_0x4ce15e,this[_0x1c10d0(0x1f6)][_0x1c10d0(0x15e)]),this[_0x1c10d0(0x20e)](_0x4ce15e),_0x1186b2=!0x0,this[_0x1c10d0(0x1c0)]=this[_0x1c10d0(0x1e6)];}else{const _0x2d7e11=this[_0x1c10d0(0x13a)](_0x47d84d[_0x1c10d0(0x19f)],_0x47d84d[_0x1c10d0(0x164)])[_0x1c10d0(0x20c)](_0x2c0346=>_0x2c0346[_0x1c10d0(0x209)]>=this[_0x1c10d0(0x14b)]);_0x2d7e11[_0x1c10d0(0x182)](_0x5d746a=>this[_0x1c10d0(0x185)](_0x5d746a)),this[_0x1c10d0(0x21e)]=this[_0x1c10d0(0x21e)][_0x1c10d0(0x20c)](_0x212697=>!_0x212697[_0x1c10d0(0x161)]||!this[_0x1c10d0(0x162)][_0x1c10d0(0x21b)](this[_0x1c10d0(0x14c)](_0x212697))),this[_0x1c10d0(0x21e)][_0x1c10d0(0x194)]&&K(this[_0x1c10d0(0x21e)],this[_0x1c10d0(0x21e)][0x0][_0x1c10d0(0x209)]),await this[_0x1c10d0(0x169)](_0x2d7e11),_0x1186b2=this[_0x1c10d0(0x1e0)](_0x2d7e11,_0x47d84d[_0x1c10d0(0x15e)],_0x47d84d[_0x1c10d0(0x217)]),this[_0x1c10d0(0x1c0)]=Math[_0x1c10d0(0x153)](this[_0x1c10d0(0x1c0)]/0x2);}return _0x1186b2?!this[_0x1c10d0(0x1ef)]()||(this[_0x1c10d0(0x144)](!0x0),!0x1):this[_0x1c10d0(0x17a)](_0x1c10d0(0x1f7));}[_0x42067f(0x1e0)](_0x446fc4,_0x2714fc,_0x2e69f4){const _0x44e0d0=_0x42067f;try{const _0x400032={'document':this[_0x44e0d0(0x1f6)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x40097e,operationsB:_0x47b6e7,originalOperations:_0x3e9b15}=_0x3783a2(_0x446fc4,this[_0x44e0d0(0x21e)],_0x400032);K(_0x40097e,this[_0x44e0d0(0x1f6)][_0x44e0d0(0x15e)]),K(_0x47b6e7,_0x2714fc);for(const _0x40a0ea of _0x40097e){const _0x1237e7=_0x3e9b15[_0x44e0d0(0x1ee)](_0x40a0ea);_0x40a0ea[_0x44e0d0(0x215)]=_0x1237e7?_0x1237e7[_0x44e0d0(0x215)]:null;}_0x2e69f4&&(this[_0x44e0d0(0x219)][_0x44e0d0(0x1fd)](_0x446fc4,_0x2e69f4),this[_0x44e0d0(0x145)]=_0x2e69f4),this[_0x44e0d0(0x21e)]=[..._0x47b6e7],this[_0x44e0d0(0x20e)](_0x40097e),this[_0x44e0d0(0x1d8)](_0x446fc4);}catch(_0x3f6674){return console[_0x44e0d0(0x1aa)](_0x3f6674),!0x1;}return!0x0;}[_0x42067f(0x20e)](_0x26f6b2,_0x54ed80=!0x1){const _0x561fce=_0x42067f;this[_0x561fce(0x180)][_0x561fce(0x18b)][_0x561fce(0x174)]({'isUndoable':!0x1,'isLocal':!0x1},_0x31b458=>{const _0x297ba8=_0x561fce;for(const _0xf347a3 of _0x26f6b2)this[_0x297ba8(0x135)][_0x297ba8(0x152)](_0xf347a3),this[_0x297ba8(0x185)](_0xf347a3),_0x31b458[_0x297ba8(0x195)][_0x297ba8(0x163)](_0xf347a3),this[_0x297ba8(0x180)][_0x297ba8(0x18b)][_0x297ba8(0x1ce)](_0xf347a3);});}[_0x42067f(0x185)](_0x1ef906){const _0x5cbba9=_0x42067f,_0x531bcf=this[_0x5cbba9(0x14c)](_0x1ef906);_0x531bcf&&this[_0x5cbba9(0x162)][_0x5cbba9(0x152)](_0x531bcf);}[_0x42067f(0x14c)](_0xa0ca84){const _0xaf20b8=_0x42067f;let _0x57c405,_0x592988;switch(_0xa0ca84[_0xaf20b8(0x1e7)]){case _0xaf20b8(0x1c7):_0x57c405=_0xa0ca84[_0xaf20b8(0x191)][_0xaf20b8(0x1d9)];break;case _0xaf20b8(0x17f):if(_0x592988=_0xa0ca84[_0xaf20b8(0x221)],!_0x592988)return null;_0x57c405=_0x592988[_0xaf20b8(0x1d9)];break;case _0xaf20b8(0x1ed):_0x57c405=_0xa0ca84[_0xaf20b8(0x1d9)];break;case _0xaf20b8(0x1bb):_0x57c405=_0xa0ca84[_0xaf20b8(0x1cc)];break;case _0xaf20b8(0x21a):_0x57c405=_0xa0ca84[_0xaf20b8(0x1f0)][_0xaf20b8(0x1d9)];break;default:return null;}return _0x57c405[_0xaf20b8(0x17d)];}[_0x42067f(0x1d8)](_0x38e129){const _0x578fe3=_0x42067f;_0x38e129[_0x578fe3(0x182)](_0x1f021a=>{const _0x4df0f8=_0x578fe3,_0x58a37f=_0x1f021a[_0x4df0f8(0x1fc)]();_0x58a37f[_0x4df0f8(0x215)]=_0x1f021a[_0x4df0f8(0x215)],_0x58a37f[_0x4df0f8(0x161)]=!!_0x1f021a[_0x4df0f8(0x161)],_0x58a37f[_0x4df0f8(0x1c6)]=_0x1f021a[_0x4df0f8(0x1c6)],_0x58a37f[_0x4df0f8(0x209)]+=this[_0x4df0f8(0x11d)],_0x1f021a[_0x4df0f8(0x136)]&&this[_0x4df0f8(0x158)][_0x4df0f8(0x152)](_0x58a37f),this[_0x4df0f8(0x1a4)][_0x4df0f8(0x163)](_0x58a37f);});}[_0x42067f(0x149)](_0x129042){const _0x5f1bee=_0x42067f,_0x5cbdcf=this[_0x5f1bee(0x180)][_0x5f1bee(0x15d)][_0x5f1bee(0x1ee)](_0x5f1bee(0x147)),_0x444bcd=this[_0x5f1bee(0x180)][_0x5f1bee(0x1d1)];_0x129042||(_0x129042=_0x538ef1(_0x444bcd,_0x5f1bee(0x206))),_0x5cbdcf[_0x5f1bee(0x214)](_0x129042,{'title':_0x538ef1(_0x444bcd,_0x5f1bee(0x204)),'namespace':_0x5f1bee(0x1ec)}),this[_0x5f1bee(0x132)]=!0x0,clearTimeout(this[_0x5f1bee(0x11e)]),this[_0x5f1bee(0x21e)]=[],this[_0x5f1bee(0x180)][_0x5f1bee(0x15d)][_0x5f1bee(0x1ee)](_0x3f52fe)[_0x5f1bee(0x1dd)]();}[_0x42067f(0x1d0)](){const _0x41765b=_0x42067f;this[_0x41765b(0x1f3)]||(this[_0x41765b(0x1f3)]=this[_0x41765b(0x180)][_0x41765b(0x15d)][_0x41765b(0x1ee)](_0x5ef522)[_0x41765b(0x152)](_0x538ef1(this[_0x41765b(0x180)][_0x41765b(0x1d1)],_0x41765b(0x205))));}[_0x42067f(0x21f)](){const _0x213b72=_0x42067f;this[_0x213b72(0x1f3)]&&(this[_0x213b72(0x180)][_0x213b72(0x15d)][_0x213b72(0x1ee)](_0x5ef522)[_0x213b72(0x166)](this[_0x213b72(0x1f3)]),this[_0x213b72(0x1f3)]=null);}[_0x42067f(0x19d)](_0x571718){const _0x472b7c=_0x42067f,_0x35a526=_0x571718[_0x472b7c(0x189)](_0x24225d=>_0x24225d[_0x472b7c(0x11c)]());return this[_0x472b7c(0x1ae)][_0x472b7c(0x17b)](_0x35a526);}[_0x42067f(0x13a)](_0x3e34ef,_0xbbcb92){const _0x44cb04=_0x42067f;return this[_0x44cb04(0x1ae)][_0x44cb04(0x12b)](_0x3e34ef)[_0x44cb04(0x189)]((_0x35fea5,_0x54e815)=>{const _0x242c64=_0x44cb04,_0x33ef44=_0x242c64(0x16f)==_0xbbcb92[_0x54e815][_0x242c64(0x1e7)];if(_0x242c64(0x1ca)==_0x35fea5[_0x242c64(0x1c2)]){const _0x42c91c=_0x35fea5[_0x242c64(0x191)][_0x242c64(0x1d9)];!this[_0x242c64(0x1f6)][_0x242c64(0x1e9)](_0x42c91c)&&(this[_0x242c64(0x1f6)][_0x242c64(0x1a2)](_0x242c64(0x122),_0x42c91c)[_0x242c64(0x1c3)]=!0x1);}const _0x20953b=_0x17d136[_0x242c64(0x15f)](_0x35fea5,this[_0x242c64(0x1f6)]);return _0x20953b[_0x242c64(0x21d)]=_0x35fea5[_0x242c64(0x21d)],_0x20953b[_0x242c64(0x161)]=_0x33ef44,_0x20953b[_0x242c64(0x215)]=_0x33ef44?null:_0xbbcb92[_0x54e815][_0x242c64(0x11f)],_0x20953b[_0x242c64(0x136)]=_0x242c64(0x1e8)===_0xbbcb92[_0x54e815][_0x242c64(0x1e7)],_0x20953b[_0x242c64(0x1c6)]=_0xbbcb92[_0x54e815][_0x242c64(0x1c6)],_0x20953b;});}[_0x42067f(0x13f)](){const _0x3d399a=_0x42067f;this[_0x3d399a(0x1f4)]=!0x0,this[_0x3d399a(0x1c5)]()?this[_0x3d399a(0x144)]():this[_0x3d399a(0x1f4)]=!0x1;}[_0x42067f(0x1c5)](){const _0x2936dd=_0x42067f,_0x103709=this[_0x2936dd(0x180)][_0x2936dd(0x15d)][_0x2936dd(0x1ee)](_0x587e9e)[_0x2936dd(0x18d)][_0x2936dd(0x1ee)](this[_0x2936dd(0x13c)]);return!this[_0x2936dd(0x180)][_0x2936dd(0x17c)]&&!!_0x103709&&_0x103709[_0x2936dd(0x194)]>0x1&&this[_0x2936dd(0x1f4)];}[_0x42067f(0x1ef)](){const _0x38af34=_0x42067f;return this[_0x38af34(0x21e)][_0x38af34(0x194)]>0x0||this[_0x38af34(0x1c5)]();}}export{l as RealTimeCollaborationClient};class $ extends Error{}function K(_0x58118d,_0x4b34fa){const _0x142f73=_0x42067f;for(const _0x17158d of _0x58118d)_0x17158d[_0x142f73(0x209)]=_0x4b34fa++;}class J{[_0x42067f(0x1c9)];[_0x42067f(0x154)];constructor(_0x5a90ab){const _0x24bb8c=_0x42067f;this[_0x24bb8c(0x1c9)]=_0x5a90ab,this[_0x24bb8c(0x154)]=new WeakMap();}[_0x42067f(0x216)](_0x2353ed){const _0x3d7189=_0x42067f;let _0x36352c=_0x2353ed[_0x3d7189(0x194)];for(;_0x36352c--;){const _0x2139fb=_0x2353ed[_0x36352c];if(!this[_0x3d7189(0x1c9)][_0x3d7189(0x21b)](_0x2139fb)){if(!this[_0x3d7189(0x154)][_0x3d7189(0x21b)](_0x2139fb)){const _0xeaf9b3=_0xb55173()[_0x3d7189(0x19a)](0x1,0x12);this[_0x3d7189(0x154)][_0x3d7189(0x171)](_0x2139fb,_0xeaf9b3);}return this[_0x3d7189(0x154)][_0x3d7189(0x1ee)](_0x2139fb);}}}[_0x42067f(0x1fd)](_0x272678,_0x451b9a){const _0x3ff649=_0x42067f;if(!_0x451b9a)return;let _0x83c5c3=_0x272678[_0x3ff649(0x194)];for(;_0x83c5c3--;){const _0x595ec8=_0x272678[_0x83c5c3];this[_0x3ff649(0x1c9)][_0x3ff649(0x21b)](_0x595ec8)||this[_0x3ff649(0x154)][_0x3ff649(0x171)](_0x595ec8,_0x451b9a);}}}
23
+ const _0x16939b=_0x5dbe;(function(_0x10ae32,_0x3b8e4f){const _0x3416b5=_0x5dbe,_0x3e974e=_0x10ae32();while(!![]){try{const _0x5ba59c=parseInt(_0x3416b5(0x226))/0x1+-parseInt(_0x3416b5(0x1ee))/0x2*(parseInt(_0x3416b5(0x1fe))/0x3)+-parseInt(_0x3416b5(0x248))/0x4+parseInt(_0x3416b5(0x150))/0x5+-parseInt(_0x3416b5(0x189))/0x6+-parseInt(_0x3416b5(0x211))/0x7+-parseInt(_0x3416b5(0x216))/0x8*(-parseInt(_0x3416b5(0x1f7))/0x9);if(_0x5ba59c===_0x3b8e4f)break;else _0x3e974e['push'](_0x3e974e['shift']());}catch(_0x5cddab){_0x3e974e['push'](_0x3e974e['shift']());}}}(_0x184c,0xe28c9));import{Plugin as _0x3b237b,PendingActions as _0x1034f6}from'ckeditor5/src/core.js';import{CKEditorError as _0x91bd40,version as _0x54294d,uid as _0x2dff07}from'ckeditor5/src/utils.js';import{Notification as _0x2f7e6e}from'ckeditor5/src/ui.js';import{transformOperationSets as _0xd0ff0a,NoOperation as _0x49eda1,InsertOperation as _0x20f9de,MarkerOperation as _0x59ee00,RootAttributeOperation as _0x1b0d69,OperationFactory as _0x576023,History as _0x3b8e12}from'ckeditor5/src/engine.js';import{WebSocketGateway as _0x3b8499}from'./websocketgateway.js';import{Sessions as _0x3a256b}from'./sessions.js';function _0x5dbe(_0xd2063f,_0x5597a4){const _0x184c7f=_0x184c();return _0x5dbe=function(_0x5dbebd,_0x548259){_0x5dbebd=_0x5dbebd-0x14d;let _0x2e1932=_0x184c7f[_0x5dbebd];return _0x2e1932;},_0x5dbe(_0xd2063f,_0x5597a4);}import{UserMarkers as _0x2cefb6}from'./usermarkers.js';import{getTranslation as _0xd2b4cf}from'../common-translations.js';import{Compressor as _0x1658c3}from'@ckeditor/ckeditor5-operations-compressor';function _0x184c(){const _0x59d0dd=['rootsAttributes','addOperation','_getOperationsFromInitData','_shouldSendSelectionUpdate','PENDING_ACTION_SENDING_DATA','applyOperation','connected','model','_operationIdentifier','round','locale','compress','differ','listenTo','rootName','_hasSelectionChanged','decompress','_isPendingUpdate','_handleReceivedOperations','Synchronization\x20issue','pluginName','newRange','_initThrowingOnDataSet','enableReadOnlyMode','fromJSON','editor','stopListening','_getAffectedRoot','set','getConnectedSessions','CollaborativeEditingService','affectsData','cs:removeUser','config','change:_isEditingAllowed','_knownRootNames','_service','sessionId','_fetchMissingUsers','_handleExternalOperations','_pendingAction','404','lastDocumentSession','initData','realtimecollaborationclient-init-service-incorrect-server-operation','getOperationAuthor','fire','RealTimeCollaborationClient','_handleReconnectionResponse','parse','bind','createRoot','baseVersion','_isConnected','realtimecollaborationclient-init-session-connection-error','string','_decompressOperations','showWarning','size','_disconnectionOperations','addToReconnectionStack','high','addUser','remove','ready','end','disconnect','cloudServices.bundleVersion','getIdOfTheLastOperation','_updateServerHistory','isEnabled','selection','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','requires','path','define','addRootAttribute','realtimecollaborationclient-init-service-internal-error','document','_refreshUserSelectionMarkers','_addKnownRoot','_loadRoot','The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','_currentBufferDelay','multi-root-editor-root-attributes-no-root','_offset','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','_channelId','permissions','reconnection:\x20flushed\x20session','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','878078oBBFKj','map','_handleServerResponse','sessionCreatedAt','_lastServerVersion','createPositionAt','_handleReconnectionError','lastOperationId','_waitUntilSynced','3285gMdaKW','move','Notification','disconnected','disableReadOnlyMode','_isEditingAllowed','state','3DgKQLF','includes','getOperations','document:write','_bufferRootLoad','realtimecollaborationclient-init-connection-failed','409','__className','get','_disconnectService','has','isUndoneOperation','_sendBufferedOperationsDelayId','directChange','history','_isAttached','collaboration.channelId','_setPendingAction','insert','12268214OsYbwP','add','wereChangesApplied','createRange','_ignoredOperations','79592RBABjc','createdAt','_sendBufferedOperations','stop','apply','_knownOperations','_compressOperations','off','data','_handleInitialConnectionData','editing','_document','_isLoaded','_connectAfterSessionHasBeenFlushed','cloud-services-internal-error:\x20Request\x20timeout.','_connectService','363824fvDgbq','realtimecollaborationclient','realtimecollaborationclient-error','metadata','finally','isPremiumPlugin','Permissions','type','position','lastSyncVersion','setIdForTheLastOperation','enqueueChange','targetPosition','_isDisconnection','getRoot','marker','error','_setUpDataInit','message','_operationToId','_handleSendingSelectionMarkers','offset','realtimecollaborationclient-handleserverresponse','realtimecollaborationclient-init-non-existent-root','getUser','root','then','_baseBufferDelay','connect','lastOperationAcceptedAt','setPermissions','_compressor','collaboration','roots','1626480cZfNzf','_hasSynchronizationProblem','affectedSelectable','entries','real-time-collaboration','startsWith','The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','slice','markers','getDocumentDetails','_sendBufferedOperationsDelayed','currentDocumentSession','cloud-services-internal-error:\x20Not\x20connected.','6584575fbjgUN','createPositionFromPath','suppressErrorInCollaboration','createUserMarkerOperations','realtimecollaborationclient-sendbufferedoperations','filter','destroy','operationsReceived','cloudDocumentVersion','addRoot','_authorId','collaboration-missing-channelid','start','connection','_shouldSendUpdate','return','wasUndone','attributes','_crash','catch','isOfficialPlugin','push','channelSessions','from','_initSessionsHandling','reconnect','reset','InsertOperation','mySessionId','change:_isPendingUpdate','plugins','userId','getMany','keys','code','toJSON','_saveOperationInBuffer','version','unregister','$root','CommentsOnly','_bufferedOperations','realtimecollaborationclient-init-document-already-initialized','forEach','length','batch','sendOperations','loadRoot','view','isDocumentOperation','change:range','change:hasDomSelection','isReadOnly','clone','init','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','removeFromReconnectionStack','10715508efpNPU','rtc-destroyed','register','serverHistory','sessionAdd:','_applyOperationsSet','rtc-offline','_lastSyncedOperationId','_clearPendingAction','_isInit'];_0x184c=function(){return _0x59d0dd;};return _0x184c();}import{Users as _0x5629d4}from'ckeditor5-collaboration/src/collaboration-core.js';import{User as _0x27eaa3,CollaborativeEditingService as _0x1882da}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let q=0x1;class l extends _0x3b237b{static [_0x16939b(0x1b1)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x1882da)());[_0x16939b(0x1e8)];[_0x16939b(0x1b8)];[_0x16939b(0x18c)];[_0x16939b(0x1ea)];[_0x16939b(0x1b7)];[_0x16939b(0x221)];[_0x16939b(0x245)];[_0x16939b(0x179)];[_0x16939b(0x21b)];[_0x16939b(0x1b6)];[_0x16939b(0x1bb)];[_0x16939b(0x1a2)];[_0x16939b(0x20a)];[_0x16939b(0x241)];[_0x16939b(0x1e6)];[_0x16939b(0x190)];[_0x16939b(0x1ce)];[_0x16939b(0x19b)];static get[_0x16939b(0x1dc)](){return[_0x3b8499,_0x3a256b,_0x2cefb6,_0x1034f6,_0x5629d4,_0x2f7e6e];}static get[_0x16939b(0x1a7)](){const _0x40be1b=_0x16939b;return _0x40be1b(0x1c2);}static get[_0x16939b(0x164)](){return!0x0;}static get[_0x16939b(0x22b)](){return!0x0;}get[_0x16939b(0x158)](){const _0x2db5bc=_0x16939b;return this[_0x2db5bc(0x1f2)]+this[_0x2db5bc(0x1e8)];}get[_0x16939b(0x1f2)](){const _0x52de72=_0x16939b;return this[_0x52de72(0x18c)][_0x52de72(0x175)]-this[_0x52de72(0x1e8)];}get[_0x16939b(0x22f)](){const _0x1b3c4a=_0x16939b,_0x141f78=this[_0x1b3c4a(0x18c)][_0x1b3c4a(0x200)]();for(let _0x17d864=_0x141f78[_0x1b3c4a(0x17c)]-0x1;_0x17d864>=0x0;_0x17d864--){const _0x756a51=_0x141f78[_0x17d864];if(!this[_0x1b3c4a(0x1ce)][_0x1b3c4a(0x208)](_0x756a51))return _0x756a51[_0x1b3c4a(0x1c7)]+0x1-this[_0x1b3c4a(0x1e8)];}return 0x0;}constructor(_0x5468d3){const _0x102d04=_0x16939b;if(super(_0x5468d3),this[_0x102d04(0x1e8)]=0x0,this[_0x102d04(0x1b8)]=null,this[_0x102d04(0x18c)]=new _0x3b8e12(),this[_0x102d04(0x1ac)][_0x102d04(0x1b4)][_0x102d04(0x1de)](_0x102d04(0x246),{}),this[_0x102d04(0x1ea)]=this[_0x102d04(0x1ac)][_0x102d04(0x1b4)][_0x102d04(0x206)](_0x102d04(0x20e)),!this[_0x102d04(0x1ea)])throw new _0x91bd40(_0x102d04(0x15b),this);const _0x529720=_0x5468d3[_0x102d04(0x1b4)][_0x102d04(0x206)](_0x102d04(0x1d6))||_0x54294d;this[_0x102d04(0x1b7)]=new l[(_0x102d04(0x1b1))](_0x529720,this[_0x102d04(0x1ea)]),this[_0x102d04(0x221)]=this[_0x102d04(0x1ac)][_0x102d04(0x19a)][_0x102d04(0x1e1)],this[_0x102d04(0x245)]=new _0x1658c3(),this[_0x102d04(0x179)]=[],this[_0x102d04(0x21b)]=new WeakSet(),this[_0x102d04(0x1b6)]=new Set(),this[_0x102d04(0x1af)](_0x102d04(0x1a4),!0x1),this[_0x102d04(0x1af)](_0x102d04(0x249),!0x1),this[_0x102d04(0x1bb)]=null,this[_0x102d04(0x1a2)]=!0x1,this[_0x102d04(0x20a)]=null,this[_0x102d04(0x241)]=0x12c,this[_0x102d04(0x1e6)]=this[_0x102d04(0x241)],this[_0x102d04(0x190)]=null,this[_0x102d04(0x1ce)]=new WeakSet(),this[_0x102d04(0x19b)]=new K(this[_0x102d04(0x1ce)]);}[_0x16939b(0x186)](){const _0x22ebc3=_0x16939b,_0x580fe6=this[_0x22ebc3(0x1ac)],_0x3e5cf5=_0x580fe6[_0x22ebc3(0x16e)][_0x22ebc3(0x206)](_0x5629d4),_0x342e6d=_0x580fe6[_0x22ebc3(0x16e)][_0x22ebc3(0x206)](_0x3b8499);this[_0x22ebc3(0x1a0)](_0x3e5cf5,_0x22ebc3(0x1c0),(_0x35db1e,_0x24e490)=>{const _0x43b7b5=_0x22ebc3,_0x25326b=_0x24e490[0x0];_0x25326b[_0x43b7b5(0x15a)]&&(_0x35db1e[_0x43b7b5(0x15f)]=_0x3e5cf5[_0x43b7b5(0x23e)](_0x25326b[_0x43b7b5(0x15a)]),_0x35db1e[_0x43b7b5(0x219)]()),null===_0x25326b[_0x43b7b5(0x15a)]&&(_0x35db1e[_0x43b7b5(0x15f)]=null,_0x35db1e[_0x43b7b5(0x219)]());},{'priority':_0x22ebc3(0x1d0)}),this[_0x22ebc3(0x1a0)](_0x580fe6[_0x22ebc3(0x19a)][_0x22ebc3(0x1e1)][_0x22ebc3(0x1da)],_0x22ebc3(0x182),(_0x2037db,_0x49f9e9)=>{const _0x1ce995=_0x22ebc3;_0x49f9e9[_0x1ce995(0x20b)]&&this[_0x1ce995(0x1e2)]();}),this[_0x22ebc3(0x1a0)](_0x580fe6[_0x22ebc3(0x220)][_0x22ebc3(0x180)],_0x22ebc3(0x183),()=>{const _0x2e7b27=_0x22ebc3;this[_0x2e7b27(0x1e2)]();}),this[_0x22ebc3(0x1a9)](),_0x580fe6[_0x22ebc3(0x19a)]['on'](_0x22ebc3(0x198),(_0x59a970,_0x831248)=>{const _0x63a2ee=_0x22ebc3,_0x149e10=_0x831248[0x0];_0x149e10[_0x63a2ee(0x181)]&&(this[_0x63a2ee(0x174)](_0x149e10),this[_0x63a2ee(0x15e)]()&&this[_0x63a2ee(0x14d)]());}),this[_0x22ebc3(0x237)](),this[_0x22ebc3(0x1c5)](_0x22ebc3(0x1fc))['to'](_0x342e6d,_0x22ebc3(0x1fd),this,_0x22ebc3(0x249),(_0x4b3c6a,_0x2adb4e)=>_0x22ebc3(0x199)===_0x4b3c6a&&!_0x2adb4e),this['on'](_0x22ebc3(0x1b5),()=>{const _0xe2b5cd=_0x22ebc3;this[_0xe2b5cd(0x1fc)]?_0x580fe6[_0xe2b5cd(0x1fb)](_0xe2b5cd(0x18f)):_0x580fe6[_0xe2b5cd(0x1aa)](_0xe2b5cd(0x18f));}),this[_0x22ebc3(0x1fc)]?_0x580fe6[_0x22ebc3(0x1fb)](_0x22ebc3(0x18f)):_0x580fe6[_0x22ebc3(0x1aa)](_0x22ebc3(0x18f)),this[_0x22ebc3(0x1af)](_0x22ebc3(0x1c8),!0x1);}async[_0x16939b(0x169)](){const _0x4019d7=_0x16939b,_0x162b12=this[_0x4019d7(0x1ac)][_0x4019d7(0x16e)][_0x4019d7(0x206)](_0x3a256b),_0x43acae=this[_0x4019d7(0x1ac)][_0x4019d7(0x16e)][_0x4019d7(0x206)](_0x3b8499);try{this[_0x4019d7(0x1a4)]=!0x0,_0x162b12[_0x4019d7(0x176)](this[_0x4019d7(0x1ea)]);const _0xc2f563=await this[_0x4019d7(0x1b7)][_0x4019d7(0x169)](_0x43acae[_0x4019d7(0x15d)],this[_0x4019d7(0x22f)]);await this[_0x4019d7(0x1c3)](_0xc2f563)&&(this[_0x4019d7(0x1a4)]=!0x1,this[_0x4019d7(0x191)]());const _0x1b935f=await this[_0x4019d7(0x1b7)][_0x4019d7(0x1b0)]();_0x162b12[_0x4019d7(0x18b)](this[_0x4019d7(0x1ea)],_0x1b935f),this[_0x4019d7(0x23a)](),this[_0x4019d7(0x1c8)]=!0x0;}catch(_0x1ab9cb){if(function(_0x4abeca){const _0x2ae5aa=_0x4019d7;return _0x2ae5aa(0x1bc)===_0x4abeca[_0x2ae5aa(0x172)];}(_0x1ab9cb)&&this[_0x4019d7(0x1b8)])await this[_0x4019d7(0x223)]();else{if(function(_0x3cf5ce){const _0x1eb420=_0x4019d7;return _0x1eb420(0x204)===_0x3cf5ce[_0x1eb420(0x172)];}(_0x1ab9cb)){const _0x314b9b=_0xd2b4cf(this[_0x4019d7(0x1ac)][_0x4019d7(0x19d)],_0x4019d7(0x1ed));this[_0x4019d7(0x1f4)](_0x314b9b);}else{if(!(_0x1ab9cb instanceof G))throw _0x1ab9cb;this[_0x4019d7(0x1f4)]();}}}}[_0x16939b(0x156)](){const _0x200159=_0x16939b,_0x11953d=this[_0x200159(0x1ac)][_0x200159(0x16e)][_0x200159(0x206)](_0x3b8499),_0xfd4184=this[_0x200159(0x1ac)][_0x200159(0x16e)][_0x200159(0x206)](_0x3a256b);this[_0x200159(0x1ac)][_0x200159(0x1aa)](_0x200159(0x18a)),_0xfd4184[_0x200159(0x166)][_0x200159(0x208)](this[_0x200159(0x1ea)])&&_0xfd4184[_0x200159(0x176)](this[_0x200159(0x1ea)]),_0x11953d[_0x200159(0x188)](this),this[_0x200159(0x207)](),super[_0x200159(0x156)]();}async[_0x16939b(0x1c3)](_0x2e7fc1){const _0x2b3937=_0x16939b;if(this[_0x2b3937(0x1b8)]!==_0x2e7fc1[_0x2b3937(0x1b8)]&&this[_0x2b3937(0x190)]!==_0x2e7fc1[_0x2b3937(0x1f5)])throw new G();return this[_0x2b3937(0x1b8)]=_0x2e7fc1[_0x2b3937(0x1b8)],this[_0x2b3937(0x1f0)]([],{..._0x2e7fc1,'wereChangesApplied':!0x1,'data':_0x2e7fc1[_0x2b3937(0x21e)]},_0x2b3937(0x169));}async[_0x16939b(0x225)](_0x39f2c7,_0x307fb4=!0x1){const _0x509015=_0x16939b,{connection:_0x33db6a}=this[_0x509015(0x1ac)][_0x509015(0x16e)][_0x509015(0x206)](_0x3b8499);l[_0x509015(0x1b1)][_0x509015(0x1b0)](_0x33db6a,this[_0x509015(0x1ea)])[_0x509015(0x240)](_0x1068b1=>this[_0x509015(0x168)](_0x1068b1))[_0x509015(0x163)](_0x4c3814=>{const _0xf04709=_0x509015;this[_0xf04709(0x162)](_0xf04709(0x1c9),_0x4c3814);}),this[_0x509015(0x1a0)](this[_0x509015(0x1b7)],_0x509015(0x157),this[_0x509015(0x1a5)][_0x509015(0x1c5)](this)),this[_0x509015(0x1a0)](this[_0x509015(0x1b7)],_0x509015(0x236),(_0x59ad56,_0x37be9d)=>{const _0x25b0af=_0x509015;this[_0x25b0af(0x162)](_0x25b0af(0x1e0),_0x37be9d);}),this[_0x509015(0x1a0)](this[_0x509015(0x1b7)],_0x509015(0x1fa),()=>{const _0x267505=_0x509015;this[_0x267505(0x1c8)]=!0x1;});const _0x126fde=this[_0x509015(0x19b)][_0x509015(0x1d7)](_0x39f2c7);this[_0x509015(0x1a4)]=!0x0;const _0xcbd3b2=await this[_0x509015(0x1b7)][_0x509015(0x242)](_0x33db6a,this[_0x509015(0x21c)](_0x39f2c7),_0x126fde);if(this[_0x509015(0x1b8)]=_0xcbd3b2[_0x509015(0x1b8)],_0x307fb4){if(!_0xcbd3b2[_0x509015(0x213)])return void this[_0x509015(0x1f4)]();this[_0x509015(0x1a4)]=!0x1,this[_0x509015(0x191)](),this[_0x509015(0x18c)][_0x509015(0x16a)](),this[_0x509015(0x1e8)]=_0xcbd3b2[_0x509015(0x23b)],this[_0x509015(0x18c)][_0x509015(0x175)]=this[_0x509015(0x1e8)],await this[_0x509015(0x1f0)](_0x39f2c7,_0xcbd3b2,_0x509015(0x1ec));}else await this[_0x509015(0x21f)](_0xcbd3b2,_0x39f2c7);this[_0x509015(0x23a)](),this[_0x509015(0x1c8)]=!0x0;}[_0x16939b(0x23a)](){const _0x39a1db=_0x16939b,_0x31af23=this[_0x39a1db(0x1ac)][_0x39a1db(0x16e)][_0x39a1db(0x206)](_0x3a256b),_0x4395d6=this[_0x39a1db(0x1ac)][_0x39a1db(0x16e)][_0x39a1db(0x206)](_0x2cefb6),_0x22158a=_0x31af23[_0x39a1db(0x166)][_0x39a1db(0x206)](this[_0x39a1db(0x1ea)]);_0x22158a&&_0x22158a[_0x39a1db(0x17c)]>0x1?_0x4395d6[_0x39a1db(0x153)]():this[_0x39a1db(0x1a0)](_0x31af23,_0x39a1db(0x18d)+this[_0x39a1db(0x1ea)],()=>{const _0x2db482=_0x39a1db;0x2===_0x31af23[_0x2db482(0x166)][_0x2db482(0x206)](this[_0x2db482(0x1ea)])[_0x2db482(0x17c)]&&_0x4395d6[_0x2db482(0x153)]();});}async[_0x16939b(0x1a5)](_0x421a9e,_0x52c903,_0x135b20,_0x16054a){const _0x481092=_0x16939b;if(!this[_0x481092(0x1a4)]&&this[_0x481092(0x221)][_0x481092(0x175)]==_0x52c903){const _0x113682=this[_0x481092(0x1cb)](_0x135b20,_0x16054a);await this[_0x481092(0x1b9)](_0x113682),this[_0x481092(0x1ba)](_0x113682,_0x52c903,_0x135b20[_0x481092(0x1f5)])||this[_0x481092(0x162)](_0x481092(0x1bf));}}async[_0x16939b(0x223)](){const _0x5d9701=_0x16939b;this[_0x5d9701(0x207)]();const {locale:_0x55818d}=this[_0x5d9701(0x1ac)];let _0x3d15ef;try{_0x3d15ef=await this[_0x5d9701(0x1b7)][_0x5d9701(0x251)]();}catch{const _0xc41ea6=_0xd2b4cf(_0x55818d,_0x5d9701(0x187));return void this[_0x5d9701(0x1f4)](_0xc41ea6);}const _0x3befb0=_0x3d15ef[_0x5d9701(0x14e)]||_0x3d15ef[_0x5d9701(0x1bd)];if(this[_0x5d9701(0x190)]!==_0x3befb0[_0x5d9701(0x1f5)]){const _0x160072=_0xd2b4cf(_0x55818d,_0x5d9701(0x1e5));return void this[_0x5d9701(0x1f4)](_0x160072);}await this[_0x5d9701(0x225)](this[_0x5d9701(0x1ac)][_0x5d9701(0x19a)][_0x5d9701(0x1e1)][_0x5d9701(0x20c)][_0x5d9701(0x200)](),!0x0);}[_0x16939b(0x207)](){const _0x5372ab=_0x16939b;this[_0x5372ab(0x1b7)][_0x5372ab(0x1d5)](),this[_0x5372ab(0x179)]=[],clearTimeout(this[_0x5372ab(0x20a)]),this[_0x5372ab(0x1ad)](this[_0x5372ab(0x1b7)]);}[_0x16939b(0x168)](_0x9e4867){const _0x3c05ee=_0x16939b,_0x4e7061=this[_0x3c05ee(0x1ac)][_0x3c05ee(0x16e)][_0x3c05ee(0x206)](_0x3a256b);this[_0x3c05ee(0x1a0)](_0x4e7061,_0x3c05ee(0x18d)+this[_0x3c05ee(0x1ea)],(_0x486a5f,{session:_0x549a38})=>{const _0x13de4b=_0x3c05ee;if(_0x549a38['id']===_0x4e7061[_0x13de4b(0x16c)]){_0x486a5f[_0x13de4b(0x21d)]();const _0xe3595a=this[_0x13de4b(0x1ac)][_0x13de4b(0x16e)][_0x13de4b(0x208)](_0x13de4b(0x178))&&this[_0x13de4b(0x1ac)][_0x13de4b(0x16e)][_0x13de4b(0x206)](_0x13de4b(0x178));let _0x170cf1=_0x549a38[_0x13de4b(0x1eb)];_0xe3595a&&_0xe3595a[_0x13de4b(0x1d9)]&&(_0x170cf1=_0x170cf1[_0x13de4b(0x155)](_0x2ad95f=>_0x13de4b(0x201)!==_0x2ad95f)),this[_0x13de4b(0x1ac)][_0x13de4b(0x16e)][_0x13de4b(0x206)](_0x13de4b(0x22c))[_0x13de4b(0x244)](_0x170cf1,this[_0x13de4b(0x1ea)]);}}),_0x4e7061[_0x3c05ee(0x18b)](this[_0x3c05ee(0x1ea)],_0x9e4867);}[_0x16939b(0x1a9)](){const _0x1792ca=_0x16939b,_0x3504cf=this[_0x1792ca(0x1ac)][_0x1792ca(0x21e)][_0x1792ca(0x1af)];this[_0x1792ca(0x1ac)][_0x1792ca(0x21e)][_0x1792ca(0x1af)]=(..._0x30a204)=>{const _0x2bf7cb=_0x1792ca;if(!_0x30a204[_0x30a204[_0x2bf7cb(0x17c)]-0x1][_0x2bf7cb(0x152)])throw new _0x91bd40(_0x2bf7cb(0x1db),this);_0x3504cf[_0x2bf7cb(0x21a)](this[_0x2bf7cb(0x1ac)][_0x2bf7cb(0x21e)],_0x30a204);};}[_0x16939b(0x237)](){const _0x1bf5a5=_0x16939b;this[_0x1bf5a5(0x1ac)][_0x1bf5a5(0x21e)]['on'](_0x1bf5a5(0x186),(_0x548950,[_0x27298a])=>{const _0x377a32=_0x1bf5a5;if(this[_0x377a32(0x221)][_0x377a32(0x175)])throw new _0x91bd40(_0x377a32(0x17a),this);_0x548950[_0x377a32(0x219)](),this[_0x377a32(0x20f)]();const _0x28969b=this[_0x377a32(0x1ac)][_0x377a32(0x1b4)][_0x377a32(0x206)](_0x377a32(0x193)),_0x60990c=this[_0x377a32(0x195)](_0x27298a,_0x28969b);0x0==_0x60990c[_0x377a32(0x17c)]&&_0x60990c[_0x377a32(0x165)](new _0x49eda1(0x0)),_0x548950[_0x377a32(0x15f)]=this[_0x377a32(0x225)](_0x60990c)[_0x377a32(0x240)](()=>{const _0x44411f=_0x377a32;this[_0x44411f(0x1ac)][_0x44411f(0x16e)][_0x44411f(0x206)](_0x3b8499)[_0x44411f(0x1cf)](this),this[_0x44411f(0x1ac)][_0x44411f(0x21e)][_0x44411f(0x1c1)](_0x44411f(0x1d3));})[_0x377a32(0x163)](_0x2edd71=>this[_0x377a32(0x162)](_0x377a32(0x203),_0x2edd71))[_0x377a32(0x22a)](()=>this[_0x377a32(0x191)]());},{'priority':_0x1bf5a5(0x1d0)}),this[_0x1bf5a5(0x1ac)]['on'](_0x1bf5a5(0x17f),async(_0xc064b0,[_0x6759af,_0x1acb88])=>{const _0x574169=_0x1bf5a5;_0xc064b0[_0x574169(0x219)]();const _0x52161c=this[_0x574169(0x1ac)][_0x574169(0x19a)][_0x574169(0x1e1)][_0x574169(0x234)](_0x6759af);if(!this[_0x574169(0x1b6)][_0x574169(0x208)](_0x6759af)){const _0x2e7429=_0x1acb88&&_0x1acb88[_0x574169(0x21e)]?_0x1acb88[_0x574169(0x21e)]:'',_0x9c0de0=_0x1acb88&&_0x1acb88[_0x574169(0x161)]?_0x1acb88[_0x574169(0x161)]:{};await this[_0x574169(0x1e4)](_0x6759af,_0x2e7429,_0x9c0de0);}this[_0x574169(0x1ac)][_0x574169(0x19a)][_0x574169(0x231)]({'isUndoable':!0x1},()=>{const _0xced4f2=_0x574169;_0x52161c[_0xced4f2(0x222)]=!0x0,this[_0xced4f2(0x1ac)][_0xced4f2(0x19a)][_0xced4f2(0x1e1)][_0xced4f2(0x19f)][_0xced4f2(0x202)](_0x52161c);});},{'priority':_0x1bf5a5(0x1d0)});}async[_0x16939b(0x1b9)](_0x5bd29f){const _0xb5980=_0x16939b,_0x46aef7=this[_0xb5980(0x1ac)][_0xb5980(0x16e)][_0xb5980(0x206)](_0x5629d4),{connection:_0x531351}=this[_0xb5980(0x1ac)][_0xb5980(0x16e)][_0xb5980(0x206)](_0x3b8499),_0x42229e=new Set();for(const _0x496150 of _0x5bd29f){const _0x41e198=_0x496150[_0xb5980(0x15a)];_0x41e198&&!_0x46aef7[_0xb5980(0x23e)](_0x41e198)&&_0x42229e[_0xb5980(0x212)](_0x41e198);}if(0x0===_0x42229e[_0xb5980(0x1cd)])return;const _0x5ab5f9=await _0x27eaa3[_0xb5980(0x170)](_0x531351,Array[_0xb5980(0x167)](_0x42229e));for(const _0x3ef04a of _0x5ab5f9)_0x46aef7[_0xb5980(0x23e)](_0x3ef04a['id'])||_0x46aef7[_0xb5980(0x1d1)](_0x3ef04a);}[_0x16939b(0x195)](_0x528f92,_0x10a8a2={}){const _0x26f75f=_0x16939b,_0x377374=this[_0x26f75f(0x1ac)][_0x26f75f(0x19a)],_0x2bf30c=[];let _0x3e9fb2=0x0;const _0x1b7cef=_0x26f75f(0x1ca)==typeof _0x528f92?{'main':_0x528f92}:_0x528f92;for(const _0x4ac9cd of Object[_0x26f75f(0x171)](_0x1b7cef)){if(!this[_0x26f75f(0x221)][_0x26f75f(0x247)][_0x26f75f(0x208)](_0x4ac9cd))throw new _0x91bd40(_0x26f75f(0x23d),this);const _0x39a8b1=this[_0x26f75f(0x1ac)][_0x26f75f(0x21e)][_0x26f75f(0x1c4)](_0x1b7cef[_0x4ac9cd]),_0x5e5d04=this[_0x26f75f(0x221)][_0x26f75f(0x234)](_0x4ac9cd),_0x128ae4=new _0x20f9de(_0x377374[_0x26f75f(0x1f3)](_0x5e5d04,0x0),_0x39a8b1,_0x3e9fb2++);_0x2bf30c[_0x26f75f(0x165)](_0x128ae4);for(const [_0x35b133,_0x3da07c]of _0x39a8b1[_0x26f75f(0x250)]){const _0x2ee60f=_0x377374[_0x26f75f(0x214)](_0x377374[_0x26f75f(0x151)](_0x5e5d04,_0x3da07c[_0x26f75f(0x15c)][_0x26f75f(0x1dd)][_0x26f75f(0x24f)]()),_0x377374[_0x26f75f(0x151)](_0x5e5d04,_0x3da07c[_0x26f75f(0x1d4)][_0x26f75f(0x1dd)][_0x26f75f(0x24f)]())),_0x4735b5=new _0x59ee00(_0x35b133,null,_0x2ee60f,_0x377374[_0x26f75f(0x250)],!0x0,_0x3e9fb2++);_0x2bf30c[_0x26f75f(0x165)](_0x4735b5);}}if(_0x10a8a2)for(const [_0x49c68d,_0x3d4a7f]of Object[_0x26f75f(0x24b)](_0x10a8a2)){const _0x5ee403=_0x377374[_0x26f75f(0x1e1)][_0x26f75f(0x234)](_0x49c68d);if(!_0x5ee403)throw new _0x91bd40(_0x26f75f(0x1e7),null);for(const [_0x11a53f,_0x24684f]of Object[_0x26f75f(0x24b)](_0x3d4a7f))if(null!==_0x24684f){const _0x4c7885=new _0x1b0d69(_0x5ee403,_0x11a53f,null,_0x24684f,_0x3e9fb2++);_0x2bf30c[_0x26f75f(0x165)](_0x4c7885);}}return _0x2bf30c;}async[_0x16939b(0x1e4)](_0x1b87c4,_0x55fff1,_0x19203c){const _0x5df972=_0x16939b;this[_0x5df972(0x195)]({[_0x1b87c4]:_0x55fff1},{[_0x1b87c4]:_0x19203c})[_0x5df972(0x17b)]((_0x49c975,_0x58d576)=>{const _0x3dd67e=_0x5df972;_0x49c975[_0x3dd67e(0x1c7)]=this[_0x3dd67e(0x221)][_0x3dd67e(0x175)]+_0x58d576,_0x49c975[_0x3dd67e(0x192)]=!0x0,this[_0x3dd67e(0x174)](_0x49c975);}),this[_0x5df972(0x14d)](),await this[_0x5df972(0x1f6)]();}async[_0x16939b(0x21f)](_0xae7359,_0x20cc56){const _0x4d806d=_0x16939b;let _0x4d53d9;this[_0x4d806d(0x1e8)]=_0xae7359[_0x4d806d(0x23b)];const _0x356350=_0xae7359[_0x4d806d(0x213)]&&!_0xae7359[_0x4d806d(0x1be)],_0x468595=_0x356350?0x0:_0xae7359[_0x4d806d(0x21e)][_0x4d806d(0x1c7)];if(_0x20cc56[_0x4d806d(0x17b)](_0x5f58bb=>{const _0x5ec1e6=_0x4d806d;_0x5f58bb[_0x5ec1e6(0x192)]=!0x0,_0x5f58bb[_0x5ec1e6(0x217)]=_0xae7359[_0x5ec1e6(0x1f1)],_0x5f58bb[_0x5ec1e6(0x15a)]=null;}),_0x356350)_0x4d53d9=_0x20cc56,this[_0x4d806d(0x18e)](_0x4d53d9,_0x356350);else{if(_0xae7359[_0x4d806d(0x1be)]){const _0x387d81=this[_0x4d806d(0x195)](_0xae7359[_0x4d806d(0x1be)]);this[_0x4d806d(0x221)][_0x4d806d(0x20c)][_0x4d806d(0x175)]=-_0x387d81[_0x4d806d(0x17c)],_0x387d81[_0x4d806d(0x17b)](_0x1a1bbd=>{const _0x4d9c48=_0x4d806d;_0x1a1bbd[_0x4d9c48(0x1c7)]-=_0x387d81[_0x4d9c48(0x17c)],_0x1a1bbd[_0x4d9c48(0x217)]=_0xae7359[_0x4d9c48(0x1f1)],_0x1a1bbd[_0x4d9c48(0x192)]=!0x0,_0x1a1bbd[_0x4d9c48(0x15a)]=null;}),this[_0x4d806d(0x18e)](_0x387d81,!0x0),this[_0x4d806d(0x18c)][_0x4d806d(0x175)]=-_0x387d81[_0x4d806d(0x17c)]+this[_0x4d806d(0x1e8)],this[_0x4d806d(0x1d8)](_0x387d81);}this[_0x4d806d(0x221)][_0x4d806d(0x20c)][_0x4d806d(0x175)]=_0x468595,_0x4d53d9=this[_0x4d806d(0x1cb)](_0xae7359[_0x4d806d(0x21e)],_0xae7359[_0x4d806d(0x229)]),await this[_0x4d806d(0x1b9)](_0x4d53d9),this[_0x4d806d(0x18e)](_0x4d53d9,_0x356350);}_0xae7359[_0x4d806d(0x1f5)]&&(this[_0x4d806d(0x19b)][_0x4d806d(0x230)](_0x4d53d9,_0xae7359[_0x4d806d(0x1f5)]),this[_0x4d806d(0x190)]=_0xae7359[_0x4d806d(0x1f5)]),this[_0x4d806d(0x18c)][_0x4d806d(0x175)]=_0x468595+this[_0x4d806d(0x1e8)],this[_0x4d806d(0x1d8)](_0x4d53d9),_0x20cc56[_0x4d806d(0x155)](_0xdd897d=>{const _0x82093a=_0x4d806d,_0x2cb6f9=this[_0x82093a(0x1ae)](_0xdd897d);return _0x2cb6f9&&!this[_0x82093a(0x1b6)][_0x82093a(0x208)](_0x2cb6f9);})[_0x4d806d(0x17b)]((_0x24f483,_0x386b60)=>{const _0x4cf1b4=_0x4d806d;_0x24f483[_0x4cf1b4(0x1c7)]=this[_0x4cf1b4(0x221)][_0x4cf1b4(0x175)]+_0x386b60,this[_0x4cf1b4(0x174)](_0x24f483);}),this[_0x4d806d(0x15e)]()?(this[_0x4d806d(0x1e6)]=0x0,this[_0x4d806d(0x14d)](!0x0),await this[_0x4d806d(0x1f6)]()):(this[_0x4d806d(0x1a4)]=!0x1,this[_0x4d806d(0x191)]());}[_0x16939b(0x162)](_0x348fae,_0x54dafb){const _0xd9923c=_0x16939b,_0x5d830b=_0x54dafb&&_0x54dafb[_0xd9923c(0x238)];if(_0x5d830b&&_0x5d830b[_0xd9923c(0x24d)](_0xd9923c(0x227)))throw _0x54dafb;const _0x1e0c95=this[_0xd9923c(0x1ac)][_0xd9923c(0x16e)][_0xd9923c(0x206)](_0x3b8499);throw this[_0xd9923c(0x1a4)]=!0x0,_0x1e0c95[_0xd9923c(0x1d5)](),this[_0xd9923c(0x1ac)][_0xd9923c(0x1aa)](_0xd9923c(0x228)),new _0x91bd40(_0x348fae,this[_0xd9923c(0x1ac)],_0x5d830b?{'originalError':_0x5d830b}:void 0x0);}[_0x16939b(0x174)](_0x26d002){const _0x74a28f=_0x16939b;this[_0x74a28f(0x21b)][_0x74a28f(0x208)](_0x26d002)||(this[_0x74a28f(0x21b)][_0x74a28f(0x212)](_0x26d002),this[_0x74a28f(0x179)][_0x74a28f(0x165)](_0x26d002),this[_0x74a28f(0x1bb)]||_0x74a28f(0x235)==_0x26d002[_0x74a28f(0x22d)]&&!_0x26d002[_0x74a28f(0x1b2)]||this[_0x74a28f(0x20f)]());}[_0x16939b(0x14d)](_0x348955=!0x1){const _0x59019d=_0x16939b;!_0x348955&&this[_0x59019d(0x1a4)]||(this[_0x59019d(0x1a4)]=!0x0,clearTimeout(this[_0x59019d(0x20a)]),this[_0x59019d(0x20a)]=setTimeout(()=>{const _0x3b3ce4=_0x59019d;this[_0x3b3ce4(0x218)]()[_0x3b3ce4(0x240)](_0x3d69b2=>{const _0x560eac=_0x3b3ce4;_0x3d69b2&&(this[_0x560eac(0x191)](),this[_0x560eac(0x1a4)]=!0x1);})[_0x3b3ce4(0x163)](_0x2fefea=>{const _0x4efa66=_0x3b3ce4;this[_0x4efa66(0x191)](),this[_0x4efa66(0x1a4)]=!0x1,function(_0x40153a){const _0x21f239=_0x4efa66;return _0x40153a[_0x21f239(0x238)][_0x21f239(0x24d)](_0x21f239(0x14f))||_0x40153a[_0x21f239(0x238)][_0x21f239(0x24d)](_0x21f239(0x1e9))||_0x40153a[_0x21f239(0x238)][_0x21f239(0x24d)](_0x21f239(0x224));}(_0x2fefea)||this[_0x4efa66(0x162)](_0x2fefea[_0x4efa66(0x238)],_0x2fefea);});},this[_0x59019d(0x1e6)]));}[_0x16939b(0x1f6)](){return new Promise(_0x1af3f5=>{const _0x2f732e=_0x5dbe;this['on'](_0x2f732e(0x16d),()=>{_0x1af3f5();});});}async[_0x16939b(0x218)](){const _0x160a0f=_0x16939b,_0x18560f=this[_0x160a0f(0x1ac)][_0x160a0f(0x16e)][_0x160a0f(0x206)](_0x2cefb6);if(this[_0x160a0f(0x196)]()&&(_0x18560f[_0x160a0f(0x153)](),this[_0x160a0f(0x1a2)]=!0x1),!this[_0x160a0f(0x15e)]())return!0x0;const _0x1984c4=[...this[_0x160a0f(0x179)]];for(const _0x46f248 of _0x1984c4)_0x46f248[_0x160a0f(0x160)]=this[_0x160a0f(0x221)][_0x160a0f(0x20c)][_0x160a0f(0x209)](_0x46f248);const _0x5e38e9=this[_0x160a0f(0x19b)][_0x160a0f(0x1d7)](_0x1984c4),_0xddee6c=q++,_0x4fe8a1=this[_0x160a0f(0x21c)](_0x1984c4),_0x1c3f67=await this[_0x160a0f(0x1b7)][_0x160a0f(0x17e)](_0x4fe8a1,_0x4fe8a1[_0x160a0f(0x1c7)],_0x5e38e9);try{return await this[_0x160a0f(0x1f0)](_0x1984c4,_0x1c3f67,_0xddee6c);}catch(_0x241b64){return this[_0x160a0f(0x162)](_0x160a0f(0x154),_0x241b64);}}async[_0x16939b(0x1f0)](_0x57c2f2,_0x10e0a0,_0x23f19e){const _0x274948=_0x16939b;if(_0x274948(0x236)in _0x10e0a0)throw _0x10e0a0[_0x274948(0x236)];let _0x299797=!0x1;if(_0x10e0a0[_0x274948(0x213)]){_0x10e0a0[_0x274948(0x1f5)]&&(this[_0x274948(0x190)]=_0x10e0a0[_0x274948(0x1f5)]),this[_0x274948(0x179)]=this[_0x274948(0x179)][_0x274948(0x155)](_0x260061=>!_0x57c2f2[_0x274948(0x1ff)](_0x260061));for(const _0x46b768 of _0x57c2f2)_0x46b768[_0x274948(0x217)]=_0x274948(0x243)in _0x10e0a0&&_0x10e0a0[_0x274948(0x243)]||void 0x0;$(_0x57c2f2,_0x10e0a0[_0x274948(0x175)]-_0x57c2f2[_0x274948(0x17c)]),this[_0x274948(0x1d8)](_0x57c2f2);const _0xc12cf=_0x57c2f2[_0x274948(0x155)](_0x3d2c58=>{const _0x128949=_0x274948;if(!_0x3d2c58[_0x128949(0x192)])return!0x1;const _0x43b011=this[_0x128949(0x1ae)](_0x3d2c58);return _0x43b011&&!this[_0x128949(0x1b6)][_0x128949(0x208)](_0x43b011);});$(_0xc12cf,this[_0x274948(0x221)][_0x274948(0x175)]),this[_0x274948(0x18e)](_0xc12cf),_0x299797=!0x0,this[_0x274948(0x1e6)]=this[_0x274948(0x241)];}else{const _0x3d89df=this[_0x274948(0x1cb)](_0x10e0a0[_0x274948(0x21e)],_0x10e0a0[_0x274948(0x229)])[_0x274948(0x155)](_0x1c1532=>_0x1c1532[_0x274948(0x1c7)]>=this[_0x274948(0x1f2)]);_0x3d89df[_0x274948(0x17b)](_0x150912=>this[_0x274948(0x1e3)](_0x150912)),this[_0x274948(0x179)]=this[_0x274948(0x179)][_0x274948(0x155)](_0x57c124=>!_0x57c124[_0x274948(0x192)]||!this[_0x274948(0x1b6)][_0x274948(0x208)](this[_0x274948(0x1ae)](_0x57c124))),this[_0x274948(0x179)][_0x274948(0x17c)]&&$(this[_0x274948(0x179)],this[_0x274948(0x179)][0x0][_0x274948(0x1c7)]),await this[_0x274948(0x1b9)](_0x3d89df),_0x299797=this[_0x274948(0x1ba)](_0x3d89df,_0x10e0a0[_0x274948(0x175)],_0x10e0a0[_0x274948(0x1f5)]),this[_0x274948(0x1e6)]=Math[_0x274948(0x19c)](this[_0x274948(0x1e6)]/0x2);}return _0x299797?!this[_0x274948(0x15e)]()||(this[_0x274948(0x14d)](!0x0),!0x1):this[_0x274948(0x162)](_0x274948(0x23c));}[_0x16939b(0x1ba)](_0x501a19,_0x3d0491,_0x51a0c3){const _0x46abc7=_0x16939b;try{const _0x131dd4={'document':this[_0x46abc7(0x221)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x549eeb,operationsB:_0x36ff1b,originalOperations:_0x319612}=_0xd0ff0a(_0x501a19,this[_0x46abc7(0x179)],_0x131dd4);$(_0x549eeb,this[_0x46abc7(0x221)][_0x46abc7(0x175)]),$(_0x36ff1b,_0x3d0491);for(const _0x14585b of _0x549eeb){const _0x2762e1=_0x319612[_0x46abc7(0x206)](_0x14585b);_0x14585b[_0x46abc7(0x15a)]=_0x2762e1?_0x2762e1[_0x46abc7(0x15a)]:null;}_0x51a0c3&&(this[_0x46abc7(0x19b)][_0x46abc7(0x230)](_0x501a19,_0x51a0c3),this[_0x46abc7(0x190)]=_0x51a0c3),this[_0x46abc7(0x179)]=[..._0x36ff1b],this[_0x46abc7(0x18e)](_0x549eeb),this[_0x46abc7(0x1d8)](_0x501a19);}catch(_0x4420ec){return console[_0x46abc7(0x236)](_0x4420ec),!0x1;}return!0x0;}[_0x16939b(0x18e)](_0x185b90,_0x50780c=!0x1){const _0x292481=_0x16939b;this[_0x292481(0x1ac)][_0x292481(0x19a)][_0x292481(0x231)]({'isUndoable':!0x1,'isLocal':!0x1},_0x54d2f3=>{const _0x34aa67=_0x292481;for(const _0x612ac5 of _0x185b90)this[_0x34aa67(0x21b)][_0x34aa67(0x212)](_0x612ac5),this[_0x34aa67(0x1e3)](_0x612ac5),_0x54d2f3[_0x34aa67(0x17d)][_0x34aa67(0x194)](_0x612ac5),this[_0x34aa67(0x1ac)][_0x34aa67(0x19a)][_0x34aa67(0x198)](_0x612ac5);});}[_0x16939b(0x1e3)](_0x3521a9){const _0x1a35f2=_0x16939b,_0x504362=this[_0x1a35f2(0x1ae)](_0x3521a9);_0x504362&&this[_0x1a35f2(0x1b6)][_0x1a35f2(0x212)](_0x504362);}[_0x16939b(0x1ae)](_0x205eab){const _0x57b16f=_0x16939b;let _0xcca39,_0x467c3a;switch(_0x205eab[_0x57b16f(0x22d)]){case _0x57b16f(0x210):_0xcca39=_0x205eab[_0x57b16f(0x22e)][_0x57b16f(0x23f)];break;case _0x57b16f(0x235):if(_0x467c3a=_0x205eab[_0x57b16f(0x1a8)],!_0x467c3a)return null;_0xcca39=_0x467c3a[_0x57b16f(0x23f)];break;case _0x57b16f(0x1df):_0xcca39=_0x205eab[_0x57b16f(0x23f)];break;case _0x57b16f(0x159):_0xcca39=_0x205eab[_0x57b16f(0x24a)];break;case _0x57b16f(0x1f8):_0xcca39=_0x205eab[_0x57b16f(0x232)][_0x57b16f(0x23f)];break;default:return null;}return _0xcca39[_0x57b16f(0x1a1)];}[_0x16939b(0x1d8)](_0x216821){const _0x305b79=_0x16939b;_0x216821[_0x305b79(0x17b)](_0x31698c=>{const _0x14a42d=_0x305b79,_0x535c38=_0x31698c[_0x14a42d(0x185)]();_0x535c38[_0x14a42d(0x15a)]=_0x31698c[_0x14a42d(0x15a)],_0x535c38[_0x14a42d(0x192)]=!!_0x31698c[_0x14a42d(0x192)],_0x535c38[_0x14a42d(0x217)]=_0x31698c[_0x14a42d(0x217)],_0x535c38[_0x14a42d(0x1c7)]+=this[_0x14a42d(0x1e8)],_0x31698c[_0x14a42d(0x233)]&&this[_0x14a42d(0x1ce)][_0x14a42d(0x212)](_0x535c38),this[_0x14a42d(0x18c)][_0x14a42d(0x194)](_0x535c38);});}[_0x16939b(0x1f4)](_0xe64063){const _0x532a25=_0x16939b,_0x5323b3=this[_0x532a25(0x1ac)][_0x532a25(0x16e)][_0x532a25(0x206)](_0x532a25(0x1f9)),_0x46ca6f=this[_0x532a25(0x1ac)][_0x532a25(0x19d)];_0xe64063||(_0xe64063=_0xd2b4cf(_0x46ca6f,_0x532a25(0x24e))),_0x5323b3[_0x532a25(0x1cc)](_0xe64063,{'title':_0xd2b4cf(_0x46ca6f,_0x532a25(0x1a6)),'namespace':_0x532a25(0x24c)}),this[_0x532a25(0x249)]=!0x0,clearTimeout(this[_0x532a25(0x20a)]),this[_0x532a25(0x179)]=[],this[_0x532a25(0x1ac)][_0x532a25(0x16e)][_0x532a25(0x206)](_0x3b8499)[_0x532a25(0x1d5)]();}[_0x16939b(0x20f)](){const _0x262c10=_0x16939b;this[_0x262c10(0x1bb)]||(this[_0x262c10(0x1bb)]=this[_0x262c10(0x1ac)][_0x262c10(0x16e)][_0x262c10(0x206)](_0x1034f6)[_0x262c10(0x212)](_0xd2b4cf(this[_0x262c10(0x1ac)][_0x262c10(0x19d)],_0x262c10(0x197))));}[_0x16939b(0x191)](){const _0x1c749b=_0x16939b;this[_0x1c749b(0x1bb)]&&(this[_0x1c749b(0x1ac)][_0x1c749b(0x16e)][_0x1c749b(0x206)](_0x1034f6)[_0x1c749b(0x1d2)](this[_0x1c749b(0x1bb)]),this[_0x1c749b(0x1bb)]=null);}[_0x16939b(0x21c)](_0x562b57){const _0x48cafb=_0x16939b,_0x1ea31f=_0x562b57[_0x48cafb(0x1ef)](_0x3a2a37=>_0x3a2a37[_0x48cafb(0x173)]());return this[_0x48cafb(0x245)][_0x48cafb(0x19e)](_0x1ea31f);}[_0x16939b(0x1cb)](_0x86972d,_0x375aee){const _0x5cdeff=_0x16939b;return this[_0x5cdeff(0x245)][_0x5cdeff(0x1a3)](_0x86972d)[_0x5cdeff(0x1ef)]((_0x25f75b,_0x308a57)=>{const _0x53cdd0=_0x5cdeff,_0x2b1489=_0x53cdd0(0x186)==_0x375aee[_0x308a57][_0x53cdd0(0x22d)];if(_0x53cdd0(0x16b)==_0x25f75b[_0x53cdd0(0x205)]){const _0x48667d=_0x25f75b[_0x53cdd0(0x22e)][_0x53cdd0(0x23f)];!this[_0x53cdd0(0x221)][_0x53cdd0(0x234)](_0x48667d)&&(this[_0x53cdd0(0x221)][_0x53cdd0(0x1c6)](_0x53cdd0(0x177),_0x48667d)[_0x53cdd0(0x20d)]=!0x1);}const _0x514f0f=_0x576023[_0x53cdd0(0x1ab)](_0x25f75b,this[_0x53cdd0(0x221)]);return _0x514f0f[_0x53cdd0(0x160)]=_0x25f75b[_0x53cdd0(0x160)],_0x514f0f[_0x53cdd0(0x192)]=_0x2b1489,_0x514f0f[_0x53cdd0(0x15a)]=_0x2b1489?null:_0x375aee[_0x308a57][_0x53cdd0(0x16f)],_0x514f0f[_0x53cdd0(0x233)]=_0x53cdd0(0x1b3)===_0x375aee[_0x308a57][_0x53cdd0(0x22d)],_0x514f0f[_0x53cdd0(0x217)]=_0x375aee[_0x308a57][_0x53cdd0(0x217)],_0x514f0f;});}[_0x16939b(0x1e2)](){const _0x13e351=_0x16939b;this[_0x13e351(0x1a2)]=!0x0,this[_0x13e351(0x196)]()?this[_0x13e351(0x14d)]():this[_0x13e351(0x1a2)]=!0x1;}[_0x16939b(0x196)](){const _0x3183b3=_0x16939b,_0x43f9d7=this[_0x3183b3(0x1ac)][_0x3183b3(0x16e)][_0x3183b3(0x206)](_0x3a256b)[_0x3183b3(0x166)][_0x3183b3(0x206)](this[_0x3183b3(0x1ea)]);return!this[_0x3183b3(0x1ac)][_0x3183b3(0x184)]&&!!_0x43f9d7&&_0x43f9d7[_0x3183b3(0x17c)]>0x1&&this[_0x3183b3(0x1a2)];}[_0x16939b(0x15e)](){const _0x170ace=_0x16939b;return this[_0x170ace(0x179)][_0x170ace(0x17c)]>0x0||this[_0x170ace(0x196)]();}}export{l as RealTimeCollaborationClient};class G extends Error{}function $(_0x39fb48,_0x133163){const _0xd4839b=_0x16939b;for(const _0x59054c of _0x39fb48)_0x59054c[_0xd4839b(0x1c7)]=_0x133163++;}class K{[_0x16939b(0x215)];[_0x16939b(0x239)];constructor(_0x5725c5){const _0x1a3883=_0x16939b;this[_0x1a3883(0x215)]=_0x5725c5,this[_0x1a3883(0x239)]=new WeakMap();}[_0x16939b(0x1d7)](_0x2c3250){const _0x2bd062=_0x16939b;let _0x3b88cc=_0x2c3250[_0x2bd062(0x17c)];for(;_0x3b88cc--;){const _0x435cc3=_0x2c3250[_0x3b88cc];if(!this[_0x2bd062(0x215)][_0x2bd062(0x208)](_0x435cc3)){if(!this[_0x2bd062(0x239)][_0x2bd062(0x208)](_0x435cc3)){const _0x7ed3bb=_0x2dff07()[_0x2bd062(0x24f)](0x1,0x12);this[_0x2bd062(0x239)][_0x2bd062(0x1af)](_0x435cc3,_0x7ed3bb);}return this[_0x2bd062(0x239)][_0x2bd062(0x206)](_0x435cc3);}}}[_0x16939b(0x230)](_0x3fd9b4,_0x7f8e79){const _0x476aab=_0x16939b;if(!_0x7f8e79)return;let _0x546645=_0x3fd9b4[_0x476aab(0x17c)];for(;_0x546645--;){const _0x48c510=_0x3fd9b4[_0x546645];this[_0x476aab(0x215)][_0x476aab(0x208)](_0x48c510)||this[_0x476aab(0x239)][_0x476aab(0x1af)](_0x48c510,_0x7f8e79);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3e4d(_0x2d55de,_0x56eb5c){const _0x15c668=_0x15c6();return _0x3e4d=function(_0x3e4dbb,_0x50b437){_0x3e4dbb=_0x3e4dbb-0x1ac;let _0x482cc3=_0x15c668[_0x3e4dbb];return _0x482cc3;},_0x3e4d(_0x2d55de,_0x56eb5c);}const _0x53158c=_0x3e4d;(function(_0x4167f4,_0x273f0d){const _0x220f89=_0x3e4d,_0x298f95=_0x4167f4();while(!![]){try{const _0x4fcaeb=parseInt(_0x220f89(0x1c5))/0x1+parseInt(_0x220f89(0x1b6))/0x2*(parseInt(_0x220f89(0x1ca))/0x3)+parseInt(_0x220f89(0x1bc))/0x4+parseInt(_0x220f89(0x1e2))/0x5*(-parseInt(_0x220f89(0x1d9))/0x6)+parseInt(_0x220f89(0x1eb))/0x7*(-parseInt(_0x220f89(0x1c9))/0x8)+-parseInt(_0x220f89(0x1ae))/0x9*(parseInt(_0x220f89(0x1b3))/0xa)+parseInt(_0x220f89(0x1db))/0xb*(parseInt(_0x220f89(0x1cd))/0xc);if(_0x4fcaeb===_0x273f0d)break;else _0x298f95['push'](_0x298f95['shift']());}catch(_0x117e47){_0x298f95['push'](_0x298f95['shift']());}}}(_0x15c6,0x1916c));import{ContextPlugin as _0x2537db}from'ckeditor5/src/core.js';import{Collection as _0x2183aa,CKEditorError as _0x481306}from'ckeditor5/src/utils.js';function _0x15c6(){const _0x14b185=['channelSessions','unregister','add','757864UMMPUB','3849aTjjEN','allConnectedUsers','remove','290148UKffVC','getUserBySessionId','sessions-register-already-registered','getUserRole','defineMe','getUser','user','addUser','mySessionId','pluginName','delete','clear','33960wNTfzz','has','77ALmKMm','orderNumber','sessionAdd:','plugins','role','set','size','120MtvKTc','channelConnectedUsers','context','connected','_registeredSessions','get','isOfficialPlugin','connection','sessions-unregister-not-exist','14zbNWFr','register','isPremiumPlugin','20187DKpHWR','_createUser','_handleSessionAdd','forEach','isMe','710Iqslfi','Sessions','_users','74VEuFIx','fire','sessionId','values','getUserSessions','state','806828XPnfbx','assign','_uniqueUsersCount','init','change:state','listenTo','stopListening','requires','_handleSessionRemove','168892hjxPLE'];_0x15c6=function(){return _0x14b185;};return _0x15c6();}import{WebSocketGateway as _0x2f00e0}from'./websocketgateway.js';import{Users as _0x2fc6b8}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0x2537db{[_0x53158c(0x1c6)];[_0x53158c(0x1e3)];[_0x53158c(0x1cb)];[_0x53158c(0x1e6)];[_0x53158c(0x1be)];[_0x53158c(0x1b5)];static get[_0x53158c(0x1d6)](){const _0x4f82c8=_0x53158c;return _0x4f82c8(0x1b4);}static get[_0x53158c(0x1e8)](){return!0x0;}static get[_0x53158c(0x1ad)](){return!0x0;}static get[_0x53158c(0x1c3)](){return[_0x2f00e0,_0x2fc6b8];}constructor(_0x5b5563){const _0x24ebd4=_0x53158c;super(_0x5b5563),this[_0x24ebd4(0x1c6)]=new Map(),this[_0x24ebd4(0x1e3)]=new Map(),this[_0x24ebd4(0x1cb)]=new _0x2183aa(),this[_0x24ebd4(0x1e6)]=new Map(),this[_0x24ebd4(0x1be)]=0x0,this[_0x24ebd4(0x1b5)]=this[_0x24ebd4(0x1e4)][_0x24ebd4(0x1de)][_0x24ebd4(0x1e7)](_0x2fc6b8);}[_0x53158c(0x1bf)](){const _0x151ca4=_0x53158c,_0x11f4f5=this[_0x151ca4(0x1e4)][_0x151ca4(0x1de)][_0x151ca4(0x1e7)](_0x2f00e0);this[_0x151ca4(0x1c1)](_0x11f4f5,_0x151ca4(0x1c0),(_0x3a7431,_0x59f85c,_0x279b5b)=>{const _0x1bd9b8=_0x151ca4;if(_0x1bd9b8(0x1e5)!==_0x279b5b)this[_0x1bd9b8(0x1c6)][_0x1bd9b8(0x1b1)](_0x52250f=>_0x52250f[_0x1bd9b8(0x1d8)]()),this[_0x1bd9b8(0x1e3)][_0x1bd9b8(0x1b1)](_0x19e1d3=>_0x19e1d3[_0x1bd9b8(0x1d8)]()),this[_0x1bd9b8(0x1cb)][_0x1bd9b8(0x1d8)]();else{for(const [_0xd8399e,_0x15d3fe]of this[_0x1bd9b8(0x1e6)])for(const _0x5a32dc of _0x15d3fe)this[_0x1bd9b8(0x1b0)](_0xd8399e,_0x5a32dc);}}),this[_0x151ca4(0x1af)](_0x11f4f5[_0x151ca4(0x1e9)]['me'],!0x0);}[_0x53158c(0x1ac)](_0x3915f5,_0x43ddd0){const _0x320e7d=_0x53158c;if(this[_0x320e7d(0x1e6)][_0x320e7d(0x1da)](_0x3915f5))throw new _0x481306(_0x320e7d(0x1cf),null,{'channelId':_0x3915f5});this[_0x320e7d(0x1e6)][_0x320e7d(0x1e0)](_0x3915f5,_0x43ddd0),this[_0x320e7d(0x1c6)][_0x320e7d(0x1e0)](_0x3915f5,new _0x2183aa()),this[_0x320e7d(0x1e3)][_0x320e7d(0x1e0)](_0x3915f5,new _0x2183aa()),this[_0x320e7d(0x1c1)](_0x43ddd0,_0x320e7d(0x1c8),(_0x22b525,_0x316780)=>this[_0x320e7d(0x1b0)](_0x3915f5,_0x316780)),this[_0x320e7d(0x1c1)](_0x43ddd0,_0x320e7d(0x1cc),(_0x5f2e85,_0x9dab98)=>this[_0x320e7d(0x1c4)](_0x3915f5,_0x9dab98));for(const _0x3ccd93 of _0x43ddd0)this[_0x320e7d(0x1b0)](_0x3915f5,_0x3ccd93);}[_0x53158c(0x1c7)](_0x4b1316){const _0x41c506=_0x53158c;if(!this[_0x41c506(0x1e6)][_0x41c506(0x1da)](_0x4b1316))throw new _0x481306(_0x41c506(0x1ea),null,{'channelId':_0x4b1316});const _0x66c579=this[_0x41c506(0x1e6)][_0x41c506(0x1e7)](_0x4b1316);this[_0x41c506(0x1c2)](_0x66c579);for(const _0x22ca2f of _0x66c579)_0x41c506(0x1e5)===this[_0x41c506(0x1e4)][_0x41c506(0x1de)][_0x41c506(0x1e7)](_0x2f00e0)[_0x41c506(0x1bb)]&&this[_0x41c506(0x1c4)](_0x4b1316,_0x22ca2f);this[_0x41c506(0x1e6)][_0x41c506(0x1d7)](_0x4b1316),this[_0x41c506(0x1c6)][_0x41c506(0x1d7)](_0x4b1316),this[_0x41c506(0x1e3)][_0x41c506(0x1d7)](_0x4b1316);}get[_0x53158c(0x1d5)](){const _0x529ee1=_0x53158c;return this[_0x529ee1(0x1e4)][_0x529ee1(0x1de)][_0x529ee1(0x1e7)](_0x2f00e0)[_0x529ee1(0x1e9)][_0x529ee1(0x1b8)];}[_0x53158c(0x1ce)](_0x17487d){const _0x50e7c3=_0x53158c;for(const _0x49bb6c of this[_0x50e7c3(0x1c6)][_0x50e7c3(0x1b9)]())for(const _0x479186 of _0x49bb6c)if(_0x479186['id']===_0x17487d)return _0x479186[_0x50e7c3(0x1d3)];}[_0x53158c(0x1ba)](_0x31a454,_0x1864e1){const _0x5e37e8=_0x53158c,_0x3b4426=_0x1864e1?[this[_0x5e37e8(0x1c6)][_0x5e37e8(0x1e7)](_0x1864e1)]:this[_0x5e37e8(0x1c6)][_0x5e37e8(0x1b9)](),_0x4cafba=new Set();for(const _0x47b059 of _0x3b4426)for(const _0x3badf8 of _0x47b059)_0x3badf8[_0x5e37e8(0x1d3)]['id']===_0x31a454['id']&&_0x4cafba[_0x5e37e8(0x1c8)](_0x3badf8['id']);return _0x4cafba;}[_0x53158c(0x1d0)](_0x31b4a0){const _0x37eedb=_0x53158c;for(const _0x55b0e1 of this[_0x37eedb(0x1c6)][_0x37eedb(0x1b9)]())for(const _0x5dd56f of _0x55b0e1)if(_0x5dd56f[_0x37eedb(0x1d3)]===_0x31b4a0)return _0x5dd56f[_0x37eedb(0x1df)];}[_0x53158c(0x1b0)](_0x416321,_0x91b37e){const _0x31bc6e=_0x53158c;if(_0x31bc6e(0x1e5)!==this[_0x31bc6e(0x1e4)][_0x31bc6e(0x1de)][_0x31bc6e(0x1e7)](_0x2f00e0)[_0x31bc6e(0x1bb)])return;const _0x54c78a=_0x91b37e[_0x31bc6e(0x1d3)],_0x2bd67c=this[_0x31bc6e(0x1b5)][_0x31bc6e(0x1d2)](_0x54c78a['id'])||this[_0x31bc6e(0x1af)](_0x54c78a),_0x2c0342=Object[_0x31bc6e(0x1bd)]({},_0x91b37e,{'user':_0x2bd67c});this[_0x31bc6e(0x1c6)][_0x31bc6e(0x1e7)](_0x416321)[_0x31bc6e(0x1c8)](_0x2c0342);const _0x417fb7=this[_0x31bc6e(0x1e3)][_0x31bc6e(0x1e7)](_0x416321);_0x417fb7[_0x31bc6e(0x1da)](_0x2bd67c['id'])||_0x417fb7[_0x31bc6e(0x1c8)](_0x2bd67c),this[_0x31bc6e(0x1cb)][_0x31bc6e(0x1da)](_0x2bd67c['id'])||this[_0x31bc6e(0x1cb)][_0x31bc6e(0x1c8)](_0x2bd67c,_0x2bd67c[_0x31bc6e(0x1b2)]?0x0:void 0x0),this[_0x31bc6e(0x1b7)](_0x31bc6e(0x1dd)+_0x416321,{'channelId':_0x416321,'session':_0x2c0342});}[_0x53158c(0x1c4)](_0x4f9940,_0xe6714d){const _0x5675ae=_0x53158c;if(_0x5675ae(0x1e5)!==this[_0x5675ae(0x1e4)][_0x5675ae(0x1de)][_0x5675ae(0x1e7)](_0x2f00e0)[_0x5675ae(0x1bb)])return;const _0x5ccc0c=this[_0x5675ae(0x1e3)][_0x5675ae(0x1e7)](_0x4f9940),_0x41e456=_0xe6714d[_0x5675ae(0x1d3)];_0x41e456['id']&&(this[_0x5675ae(0x1c6)][_0x5675ae(0x1e7)](_0x4f9940)[_0x5675ae(0x1cc)](_0xe6714d['id']),_0x5ccc0c[_0x5675ae(0x1da)](_0x41e456['id'])&&!this[_0x5675ae(0x1ba)](_0x41e456,_0x4f9940)[_0x5675ae(0x1e1)]&&_0x5ccc0c[_0x5675ae(0x1cc)](_0x41e456['id']),this[_0x5675ae(0x1cb)][_0x5675ae(0x1e7)](_0x41e456['id'])&&!this[_0x5675ae(0x1ba)](_0x41e456)[_0x5675ae(0x1e1)]&&this[_0x5675ae(0x1cb)][_0x5675ae(0x1cc)](_0x41e456['id']));}[_0x53158c(0x1af)](_0x3c81a2,_0x47678d){const _0x53c62f=_0x53158c,_0x22807=this[_0x53c62f(0x1b5)][_0x53c62f(0x1d4)](_0x3c81a2);return _0x47678d&&this[_0x53c62f(0x1b5)][_0x53c62f(0x1d1)](_0x3c81a2['id']),_0x22807[_0x53c62f(0x1dc)]=this[_0x53c62f(0x1be)]++,_0x22807;}}
23
+ const _0x471cfd=_0x2758;function _0x2758(_0xe6efbf,_0x15f271){const _0x4a5f16=_0x4a5f();return _0x2758=function(_0x2758ec,_0x1ac575){_0x2758ec=_0x2758ec-0x13d;let _0x2e32d4=_0x4a5f16[_0x2758ec];return _0x2e32d4;},_0x2758(_0xe6efbf,_0x15f271);}(function(_0x5583df,_0x4ab7ac){const _0x29cb9c=_0x2758,_0x22bd5a=_0x5583df();while(!![]){try{const _0x448fc1=-parseInt(_0x29cb9c(0x148))/0x1+parseInt(_0x29cb9c(0x15b))/0x2+-parseInt(_0x29cb9c(0x144))/0x3+parseInt(_0x29cb9c(0x154))/0x4*(parseInt(_0x29cb9c(0x13d))/0x5)+-parseInt(_0x29cb9c(0x164))/0x6+-parseInt(_0x29cb9c(0x157))/0x7+parseInt(_0x29cb9c(0x15a))/0x8;if(_0x448fc1===_0x4ab7ac)break;else _0x22bd5a['push'](_0x22bd5a['shift']());}catch(_0x38eea3){_0x22bd5a['push'](_0x22bd5a['shift']());}}}(_0x4a5f,0x3d018));import{ContextPlugin as _0x17b46d}from'ckeditor5/src/core.js';import{Collection as _0x151c67,CKEditorError as _0x223204}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x1734c5}from'./websocketgateway.js';import{Users as _0xd0c772}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0x17b46d{[_0x471cfd(0x15d)];[_0x471cfd(0x169)];[_0x471cfd(0x158)];[_0x471cfd(0x16a)];[_0x471cfd(0x176)];[_0x471cfd(0x16c)];static get[_0x471cfd(0x14f)](){const _0x554add=_0x471cfd;return _0x554add(0x14b);}static get[_0x471cfd(0x174)](){return!0x0;}static get[_0x471cfd(0x150)](){return!0x0;}static get[_0x471cfd(0x152)](){return[_0x1734c5,_0xd0c772];}constructor(_0x3faffd){const _0x5f2ffa=_0x471cfd;super(_0x3faffd),this[_0x5f2ffa(0x15d)]=new Map(),this[_0x5f2ffa(0x169)]=new Map(),this[_0x5f2ffa(0x158)]=new _0x151c67(),this[_0x5f2ffa(0x16a)]=new Map(),this[_0x5f2ffa(0x176)]=0x0,this[_0x5f2ffa(0x16c)]=this[_0x5f2ffa(0x161)][_0x5f2ffa(0x167)][_0x5f2ffa(0x153)](_0xd0c772);}[_0x471cfd(0x16b)](){const _0x39083e=_0x471cfd,_0x2f4e2d=this[_0x39083e(0x161)][_0x39083e(0x167)][_0x39083e(0x153)](_0x1734c5);this[_0x39083e(0x178)](_0x2f4e2d,_0x39083e(0x175),(_0xeba5dc,_0x421cc3,_0xf03fae)=>{const _0x4f72a7=_0x39083e;if(_0x4f72a7(0x16f)!==_0xf03fae)this[_0x4f72a7(0x15d)][_0x4f72a7(0x13f)](_0x13a8d7=>_0x13a8d7[_0x4f72a7(0x170)]()),this[_0x4f72a7(0x169)][_0x4f72a7(0x13f)](_0x2d2d0c=>_0x2d2d0c[_0x4f72a7(0x170)]()),this[_0x4f72a7(0x158)][_0x4f72a7(0x170)]();else{for(const [_0x350816,_0x32132e]of this[_0x4f72a7(0x16a)])for(const _0x5c491e of _0x32132e)this[_0x4f72a7(0x145)](_0x350816,_0x5c491e);}}),this[_0x39083e(0x141)](_0x2f4e2d[_0x39083e(0x14c)]['me'],!0x0);}[_0x471cfd(0x173)](_0x12cf0c,_0x4d7d07){const _0x1a4d01=_0x471cfd;if(this[_0x1a4d01(0x16a)][_0x1a4d01(0x13e)](_0x12cf0c))throw new _0x223204(_0x1a4d01(0x149),null,{'channelId':_0x12cf0c});this[_0x1a4d01(0x16a)][_0x1a4d01(0x163)](_0x12cf0c,_0x4d7d07),this[_0x1a4d01(0x15d)][_0x1a4d01(0x163)](_0x12cf0c,new _0x151c67()),this[_0x1a4d01(0x169)][_0x1a4d01(0x163)](_0x12cf0c,new _0x151c67()),this[_0x1a4d01(0x178)](_0x4d7d07,_0x1a4d01(0x16e),(_0x5c74a3,_0x344f76)=>this[_0x1a4d01(0x145)](_0x12cf0c,_0x344f76)),this[_0x1a4d01(0x178)](_0x4d7d07,_0x1a4d01(0x151),(_0x2d7219,_0x466b2d)=>this[_0x1a4d01(0x14d)](_0x12cf0c,_0x466b2d));for(const _0x4a5692 of _0x4d7d07)this[_0x1a4d01(0x145)](_0x12cf0c,_0x4a5692);}[_0x471cfd(0x165)](_0x317470){const _0x4d3b4a=_0x471cfd;if(!this[_0x4d3b4a(0x16a)][_0x4d3b4a(0x13e)](_0x317470))throw new _0x223204(_0x4d3b4a(0x171),null,{'channelId':_0x317470});const _0x5c077e=this[_0x4d3b4a(0x16a)][_0x4d3b4a(0x153)](_0x317470);this[_0x4d3b4a(0x159)](_0x5c077e);for(const _0xe92641 of _0x5c077e)_0x4d3b4a(0x16f)===this[_0x4d3b4a(0x161)][_0x4d3b4a(0x167)][_0x4d3b4a(0x153)](_0x1734c5)[_0x4d3b4a(0x160)]&&this[_0x4d3b4a(0x14d)](_0x317470,_0xe92641);this[_0x4d3b4a(0x16a)][_0x4d3b4a(0x15f)](_0x317470),this[_0x4d3b4a(0x15d)][_0x4d3b4a(0x15f)](_0x317470),this[_0x4d3b4a(0x169)][_0x4d3b4a(0x15f)](_0x317470);}get[_0x471cfd(0x146)](){const _0x4cb6d4=_0x471cfd;return this[_0x4cb6d4(0x161)][_0x4cb6d4(0x167)][_0x4cb6d4(0x153)](_0x1734c5)[_0x4cb6d4(0x14c)][_0x4cb6d4(0x140)];}[_0x471cfd(0x15c)](_0x58449d){const _0xb7cf40=_0x471cfd;for(const _0x11a515 of this[_0xb7cf40(0x15d)][_0xb7cf40(0x177)]())for(const _0x1ab20f of _0x11a515)if(_0x1ab20f['id']===_0x58449d)return _0x1ab20f[_0xb7cf40(0x16d)];}[_0x471cfd(0x14e)](_0x16acc6,_0x4ca228){const _0x968ca1=_0x471cfd,_0x427a72=_0x4ca228?[this[_0x968ca1(0x15d)][_0x968ca1(0x153)](_0x4ca228)]:this[_0x968ca1(0x15d)][_0x968ca1(0x177)](),_0x26d875=new Set();for(const _0x32cc02 of _0x427a72)for(const _0x1bbdc7 of _0x32cc02)_0x1bbdc7[_0x968ca1(0x16d)]['id']===_0x16acc6['id']&&_0x26d875[_0x968ca1(0x16e)](_0x1bbdc7['id']);return _0x26d875;}[_0x471cfd(0x172)](_0x269e28){const _0xb4c90b=_0x471cfd;for(const _0x57682d of this[_0xb4c90b(0x15d)][_0xb4c90b(0x177)]())for(const _0x4174e4 of _0x57682d)if(_0x4174e4[_0xb4c90b(0x16d)]===_0x269e28)return _0x4174e4[_0xb4c90b(0x142)];}[_0x471cfd(0x145)](_0xe5febe,_0x27e2a4){const _0xaef9d=_0x471cfd;if(_0xaef9d(0x16f)!==this[_0xaef9d(0x161)][_0xaef9d(0x167)][_0xaef9d(0x153)](_0x1734c5)[_0xaef9d(0x160)])return;const _0x3cf305=_0x27e2a4[_0xaef9d(0x16d)],_0x583a98=this[_0xaef9d(0x16c)][_0xaef9d(0x143)](_0x3cf305['id'])||this[_0xaef9d(0x141)](_0x3cf305),_0xa92252=Object[_0xaef9d(0x168)]({},_0x27e2a4,{'user':_0x583a98});this[_0xaef9d(0x15d)][_0xaef9d(0x153)](_0xe5febe)[_0xaef9d(0x16e)](_0xa92252);const _0x577c5f=this[_0xaef9d(0x169)][_0xaef9d(0x153)](_0xe5febe);_0x577c5f[_0xaef9d(0x13e)](_0x583a98['id'])||_0x577c5f[_0xaef9d(0x16e)](_0x583a98),this[_0xaef9d(0x158)][_0xaef9d(0x13e)](_0x583a98['id'])||this[_0xaef9d(0x158)][_0xaef9d(0x16e)](_0x583a98,_0x583a98[_0xaef9d(0x162)]?0x0:void 0x0),this[_0xaef9d(0x155)](_0xaef9d(0x15e)+_0xe5febe,{'channelId':_0xe5febe,'session':_0xa92252});}[_0x471cfd(0x14d)](_0x205acf,_0x2739ab){const _0x2226c0=_0x471cfd;if(_0x2226c0(0x16f)!==this[_0x2226c0(0x161)][_0x2226c0(0x167)][_0x2226c0(0x153)](_0x1734c5)[_0x2226c0(0x160)])return;const _0x5ad692=this[_0x2226c0(0x169)][_0x2226c0(0x153)](_0x205acf),_0x36395d=_0x2739ab[_0x2226c0(0x16d)];_0x36395d['id']&&(this[_0x2226c0(0x15d)][_0x2226c0(0x153)](_0x205acf)[_0x2226c0(0x151)](_0x2739ab['id']),_0x5ad692[_0x2226c0(0x13e)](_0x36395d['id'])&&!this[_0x2226c0(0x14e)](_0x36395d,_0x205acf)[_0x2226c0(0x166)]&&_0x5ad692[_0x2226c0(0x151)](_0x36395d['id']),this[_0x2226c0(0x158)][_0x2226c0(0x153)](_0x36395d['id'])&&!this[_0x2226c0(0x14e)](_0x36395d)[_0x2226c0(0x166)]&&this[_0x2226c0(0x158)][_0x2226c0(0x151)](_0x36395d['id']));}[_0x471cfd(0x141)](_0x1de771,_0x4df010){const _0x2fbbca=_0x471cfd,_0x4d3350=this[_0x2fbbca(0x16c)][_0x2fbbca(0x14a)](_0x1de771);return _0x4df010&&this[_0x2fbbca(0x16c)][_0x2fbbca(0x147)](_0x1de771['id']),_0x4d3350[_0x2fbbca(0x156)]=this[_0x2fbbca(0x176)]++,_0x4d3350;}}function _0x4a5f(){const _0x3b4ee8=['values','listenTo','145bPPtMa','has','forEach','sessionId','_createUser','role','getUser','1041801SdRIeQ','_handleSessionAdd','mySessionId','defineMe','163987zLjPAk','sessions-register-already-registered','addUser','Sessions','connection','_handleSessionRemove','getUserSessions','pluginName','isPremiumPlugin','remove','requires','get','60676NYSmzU','fire','orderNumber','1105874CaXjjp','allConnectedUsers','stopListening','2349088iDUOEG','874574utGHXv','getUserBySessionId','channelSessions','sessionAdd:','delete','state','context','isMe','set','1510248SpkhHz','unregister','size','plugins','assign','channelConnectedUsers','_registeredSessions','init','_users','user','add','connected','clear','sessions-unregister-not-exist','getUserRole','register','isOfficialPlugin','change:state','_uniqueUsersCount'];_0x4a5f=function(){return _0x3b4ee8;};return _0x4a5f();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3e34(){const _0x44f7ed=['addMarker','getAttribute','user:range','getFirstRange','view','classList','fromRange','428746YtvWYd','507717ZyAZkF','getStart','nodeAfter','checkChild','listenTo','element','false','setCustomProperty','ck-user__marker-tooltip','start','isCollapsed','isOfficialPlugin','41111ZiOdIp','786ilfvPd','mapper','has','markerToHighlight','highest','getCustomProperty','user:','markerName','user:position:','⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','_domEmitter','createUIElement','isInline','marker','contenteditable','markerToElement','detach','user:position','size','parent','mySessionId','change','editingDowncast','clear','tableCell','updateMarker','for','getMarkerClass','end','createRange','6653163tmIgna','plugins','markerNameToElements','deletionPosition','destroy','get','createElement','getNearestSelectionRange','afterInit','10JGJgnJ','ck-user__selection','2208HLbGvk','17428TUjpRS','isSimilar','40LYvpzB','update:user:range','isObject','4930PUyRUm','spellcheck','requires','startsWith','outerHTML','delete','selection','markerRange','conversion','getUserBySessionId','editing','getPositions','isPremiumPlugin','getContainedElement','hasDomSelection','userPositionMarker','batch','mouseenter','mouseleave','_createdBatches','$graveyard','toDomElement','getSelectionClass','addEventListener','applyOperation','6705216sUNnUi','span','rootName','color','remove','UserMarkers','change:range','init','hasContent','setAttribute','ck-user__marker_hovered','markers','189tasMWO','editor','keydown','newRange','document','toRange','removeClass','innerHTML','reconvertMarker','split','schema','createUserMarkerOperations','$text','isDocumentOperation','data-session-id','textContent','getRange','isLimit','pluginName','oldRange','Escape','undo','enqueueChange','orderNumber','ck-user__marker\x20','stopListening','model','render','set','removeMarker','user:range:','root','name','commands','add','type'];_0x3e34=function(){return _0x44f7ed;};return _0x3e34();}const _0x41bf8e=_0xb169;function _0xb169(_0x7df444,_0x4d44a2){const _0x3e34c9=_0x3e34();return _0xb169=function(_0xb169d2,_0x2dfddc){_0xb169d2=_0xb169d2-0x151;let _0x48c3d2=_0x3e34c9[_0xb169d2];return _0x48c3d2;},_0xb169(_0x7df444,_0x4d44a2);}(function(_0x8b517d,_0x3c68ab){const _0x3b841c=_0xb169,_0x4d924d=_0x8b517d();while(!![]){try{const _0x2c5fc9=parseInt(_0x3b841c(0x1a5))/0x1+parseInt(_0x3b841c(0x1dd))/0x2*(-parseInt(_0x3b841c(0x17a))/0x3)+-parseInt(_0x3b841c(0x1dc))/0x4*(parseInt(_0x3b841c(0x155))/0x5)+-parseInt(_0x3b841c(0x1b3))/0x6*(-parseInt(_0x3b841c(0x1b2))/0x7)+parseInt(_0x3b841c(0x152))/0x8*(parseInt(_0x3b841c(0x1a6))/0x9)+parseInt(_0x3b841c(0x1da))/0xa*(parseInt(_0x3b841c(0x1d1))/0xb)+-parseInt(_0x3b841c(0x16e))/0xc;if(_0x2c5fc9===_0x3c68ab)break;else _0x4d924d['push'](_0x4d924d['shift']());}catch(_0x3961b1){_0x4d924d['push'](_0x4d924d['shift']());}}}(_0x3e34,0x69b59));import{Plugin as _0x3aa639}from'ckeditor5/src/core.js';import{global as _0x201c02,DomEmitterMixin as _0x8d07ca}from'ckeditor5/src/utils.js';import{Sessions as _0x46106e}from'./sessions.js';import{ModelLiveRange as _0x6cb2b9}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';export class UserMarkers extends _0x3aa639{[_0x41bf8e(0x1bd)]=new(_0x8d07ca())();static get[_0x41bf8e(0x157)](){return[_0x46106e];}static get[_0x41bf8e(0x18c)](){const _0x47096b=_0x41bf8e;return _0x47096b(0x173);}static get[_0x41bf8e(0x1b1)](){return!0x0;}static get[_0x41bf8e(0x161)](){return!0x0;}[_0x41bf8e(0x175)](){const _0x101a9e=_0x41bf8e,_0x55f384=this[_0x101a9e(0x17b)],_0x2c7a87=_0x55f384[_0x101a9e(0x1d2)][_0x101a9e(0x1d6)](_0x46106e);_0x55f384[_0x101a9e(0x15d)][_0x101a9e(0x1cd)](_0x101a9e(0x1c9))[_0x101a9e(0x1c2)]({'model':_0x101a9e(0x1c4),'view':(_0x5aae0e,{writer:_0x6cd5d8})=>function(_0x38a9bb,_0x2b7753,_0x155cf8,_0x32336f){const _0x216290=_0x101a9e,_0xc52062=_0x38a9bb[_0x216290(0x1ba)][_0x216290(0x183)](':')[0x2],_0x71f1dd=_0x155cf8[_0x216290(0x15e)](_0xc52062);if(!_0x71f1dd||_0xc52062===_0x155cf8[_0x216290(0x1c7)])return;if(!_0x32336f[_0x216290(0x194)][_0x216290(0x184)][_0x216290(0x1a9)](_0x38a9bb[_0x216290(0x15c)][_0x216290(0x1af)],_0x216290(0x186)))return;const _0x568db3={'class':_0x216290(0x192)+_0x71f1dd[_0x216290(0x171)][_0x216290(0x1ce)](),'data-name':_0x71f1dd[_0x216290(0x19a)],'data-session-id':_0xc52062},_0x2276fa=_0x32336f[_0x216290(0x194)][_0x216290(0x179)][_0x216290(0x1d6)](_0x38a9bb[_0x216290(0x1ba)]),_0x35f457=_0x2276fa[_0x216290(0x1a7)](),_0x415ff6=_0x35f457[_0x216290(0x1a8)],_0x28d94e=_0x32336f[_0x216290(0x194)][_0x216290(0x184)];if(_0x415ff6&&_0x28d94e[_0x216290(0x154)](_0x415ff6)&&_0x28d94e[_0x216290(0x1bf)](_0x415ff6)&&!_0x32336f[_0x216290(0x194)][_0x216290(0x179)][_0x216290(0x1d6)](_0x216290(0x198)+_0xc52062)[_0x216290(0x18a)]()[_0x216290(0x1b0)])return;const _0x2f6bdc=_0x35f457[_0x216290(0x1c6)];return _0x32336f[_0x216290(0x194)][_0x216290(0x184)][_0x216290(0x18b)](_0x2f6bdc)&&!_0x32336f[_0x216290(0x194)][_0x216290(0x176)](_0x2f6bdc)&&(_0x568db3[_0x216290(0x1c1)]=!0x1),function(_0x25f313,_0x5ff1e5,_0x15ca8e){const _0x2c4b5a=_0x216290,_0x1959e8=_0x25f313[_0x2c4b5a(0x1be)](_0x2c4b5a(0x16f),_0x5ff1e5);return _0x25f313[_0x2c4b5a(0x1ad)](_0x2c4b5a(0x164),!0x0,_0x1959e8),_0x1959e8[_0x2c4b5a(0x195)]=function(_0x4bb306){const _0xfbfa6f=_0x2c4b5a,_0x21c1dc=this[_0xfbfa6f(0x16a)](_0x4bb306),_0x9a7c4e=document[_0xfbfa6f(0x1d7)](_0xfbfa6f(0x16f));return _0x9a7c4e[_0xfbfa6f(0x1a3)][_0xfbfa6f(0x19c)](_0xfbfa6f(0x1ae)),_0x9a7c4e[_0xfbfa6f(0x177)](_0xfbfa6f(0x1c1),_0xfbfa6f(0x1ac)),_0x9a7c4e[_0xfbfa6f(0x177)](_0xfbfa6f(0x156),_0xfbfa6f(0x1ac)),_0x9a7c4e[_0xfbfa6f(0x189)]=_0x15ca8e[_0xfbfa6f(0x19a)],_0x21c1dc[_0xfbfa6f(0x181)]=_0xfbfa6f(0x1bc)+_0x9a7c4e[_0xfbfa6f(0x159)]+'⁠',_0x21c1dc[_0xfbfa6f(0x16c)](_0xfbfa6f(0x166),()=>{const _0x4743a7=_0xfbfa6f;_0x21c1dc[_0x4743a7(0x1a3)][_0x4743a7(0x19c)](_0x4743a7(0x178));}),_0x21c1dc[_0xfbfa6f(0x16c)](_0xfbfa6f(0x167),()=>{const _0x3491ee=_0xfbfa6f;_0x21c1dc[_0x3491ee(0x1a3)][_0x3491ee(0x172)](_0x3491ee(0x178));}),_0x21c1dc;},_0x1959e8[_0x2c4b5a(0x151)]=function(_0x2a2a19){const _0x46546e=_0x2c4b5a;return!(!this[_0x46546e(0x1b8)](_0x46546e(0x164))||!_0x2a2a19[_0x46546e(0x1b8)](_0x46546e(0x164))||this[_0x46546e(0x19f)](_0x46546e(0x188))!=_0x2a2a19[_0x46546e(0x19f)](_0x46546e(0x188)));},_0x1959e8;}(_0x2b7753,_0x568db3,_0x71f1dd);}(_0x5aae0e,_0x6cd5d8,_0x2c7a87,_0x55f384)}),_0x55f384[_0x101a9e(0x15d)][_0x101a9e(0x1cd)](_0x101a9e(0x1c9))[_0x101a9e(0x1b6)]({'model':_0x101a9e(0x1a0),'view':_0x512841=>function(_0xd66d9f,_0x245a5b){const _0x4fa622=_0x101a9e,_0x475c34=_0xd66d9f[_0x4fa622(0x1ba)][_0x4fa622(0x183)](':')[0x2];if(_0x475c34===_0x245a5b[_0x4fa622(0x1c7)])return null;const _0x551cda=_0x245a5b[_0x4fa622(0x15e)](_0x475c34);if(!_0x551cda)return{'id':_0x475c34,'classes':[]};return{'id':_0x475c34,'classes':[_0x4fa622(0x1db),_0x551cda[_0x4fa622(0x171)][_0x4fa622(0x16b)]()],'attributes':{'data-session-id':_0x475c34},'priority':0x7d0+_0x551cda[_0x4fa622(0x191)]};}(_0x512841,_0x2c7a87)}),function(_0x294131){const _0xa32717=_0x101a9e,_0x2991a8=_0x294131[_0xa32717(0x194)],_0x571089=new Map(),_0xc9e75e=_0x294131[_0xa32717(0x1d2)][_0xa32717(0x1d6)](_0x46106e);_0x2991a8[_0xa32717(0x179)]['on'](_0xa32717(0x153),(_0x312764,_0x5cc366,_0x2f8c25,_0x50627d)=>{const _0x130699=_0xa32717;if(!_0x50627d&&_0x571089[_0x130699(0x1d6)](_0x5cc366[_0x130699(0x19a)]))return _0x571089[_0x130699(0x1d6)](_0x5cc366[_0x130699(0x19a)])[_0x130699(0x1c3)](),void _0x571089[_0x130699(0x15a)](_0x5cc366[_0x130699(0x19a)]);const _0x5e107c=_0x5cc366[_0x130699(0x19a)][_0x130699(0x183)](':')[0x2];if(_0x5e107c===_0xc9e75e[_0x130699(0x1c7)])return;const _0x15d789=_0x130699(0x1bb)+_0x5e107c;_0x2991a8[_0x130699(0x179)][_0x130699(0x1b5)](_0x15d789)&&_0x294131[_0x130699(0x15f)][_0x130699(0x182)](_0x15d789),_0x5cc366['on'](_0x130699(0x174),(_0x16af3f,_0x2a4db7,_0x29ef36)=>{const _0x3f97f6=_0x130699;if(_0x3f97f6(0x169)!=_0x2a4db7[_0x3f97f6(0x199)][_0x3f97f6(0x170)]&&_0x3f97f6(0x169)==_0x5cc366[_0x3f97f6(0x18a)]()[_0x3f97f6(0x199)][_0x3f97f6(0x170)]&&!_0x571089[_0x3f97f6(0x1b5)](_0x5cc366[_0x3f97f6(0x19a)])){const _0x4e27d1=_0x2991a8[_0x3f97f6(0x184)][_0x3f97f6(0x1d8)](_0x29ef36[_0x3f97f6(0x1d4)]);if(_0x4e27d1){const _0x25e40f=_0x6cb2b9[_0x3f97f6(0x1a4)](_0x4e27d1);_0x571089[_0x3f97f6(0x196)](_0x5cc366[_0x3f97f6(0x19a)],_0x25e40f),_0x25e40f['on'](_0x3f97f6(0x174),(_0x5d6665,_0x1f867c,_0x251d4f)=>{const _0x139cf1=_0x3f97f6;if(_0x139cf1(0x169)==_0x25e40f[_0x139cf1(0x199)][_0x139cf1(0x170)]){const _0x5c6e89=_0x2991a8[_0x139cf1(0x184)][_0x139cf1(0x1d8)](_0x251d4f[_0x139cf1(0x1d4)]);_0x5c6e89?(_0x25e40f[_0x139cf1(0x1af)]=_0x5c6e89[_0x139cf1(0x1af)],_0x25e40f[_0x139cf1(0x1cf)]=_0x5c6e89[_0x139cf1(0x1cf)]):(_0x571089[_0x139cf1(0x15a)](_0x5cc366[_0x139cf1(0x19a)]),_0x25e40f[_0x139cf1(0x1c3)]());}});}}});}),_0x2991a8[_0xa32717(0x17e)]['on'](_0xa32717(0x1c8),()=>{const _0x5cacff=_0xa32717;_0x571089[_0x5cacff(0x1c5)]>0x0&&_0x2991a8[_0x5cacff(0x190)]({'isUndoable':!0x1},_0x4ce38f=>{const _0x27fa47=_0x5cacff;for(const [_0x1a2082,_0x2ffb38]of _0x571089)_0x27fa47(0x169)==_0x2991a8[_0x27fa47(0x179)][_0x27fa47(0x1d6)](_0x1a2082)[_0x27fa47(0x18a)]()[_0x27fa47(0x199)][_0x27fa47(0x170)]&&(Z(_0x1a2082[_0x27fa47(0x183)](':')[0x2],_0x2ffb38[_0x27fa47(0x17f)](),_0x2991a8,_0x4ce38f),_0x2ffb38[_0x27fa47(0x1c3)]());_0x571089[_0x27fa47(0x1ca)]();});});}(_0x55f384),this[_0x101a9e(0x1bd)][_0x101a9e(0x1aa)](_0x201c02[_0x101a9e(0x17e)],_0x101a9e(0x17c),(_0x46727d,{key:_0x2a0182})=>{const _0x541ab5=_0x101a9e;_0x541ab5(0x18e)===_0x2a0182&&function(_0x428220){const _0x3e396b=_0x541ab5;_0x428220[_0x3e396b(0x15f)][_0x3e396b(0x1a2)][_0x3e396b(0x1c8)](_0x11e9c4=>{const _0x599d35=_0x3e396b;for(const _0x8851a7 of _0x428220[_0x599d35(0x194)][_0x599d35(0x179)]){if(!_0x8851a7[_0x599d35(0x19a)][_0x599d35(0x158)](_0x599d35(0x1c4)))continue;const _0x6473f5=_0x428220[_0x599d35(0x15f)][_0x599d35(0x1b4)][_0x599d35(0x1d3)](_0x8851a7[_0x599d35(0x19a)]);if(_0x6473f5){for(const _0x48f4b1 of _0x6473f5)_0x11e9c4[_0x599d35(0x180)](_0x599d35(0x178),_0x48f4b1);}}});}(_0x55f384);},{'useCapture':!0x0});}[_0x41bf8e(0x1d9)](){const _0x1f55c4=_0x41bf8e,_0x3b3c36=this[_0x1f55c4(0x17b)],_0xe68c47=_0x3b3c36[_0x1f55c4(0x19b)][_0x1f55c4(0x1d6)](_0x1f55c4(0x18f));_0xe68c47&&_0x3b3c36[_0x1f55c4(0x194)]['on'](_0x1f55c4(0x16d),(_0x286321,_0x2dcbb7)=>{const _0x269f7d=_0x1f55c4,_0x4dbead=_0x2dcbb7[0x0];if(!_0x4dbead[_0x269f7d(0x187)])return;if(_0x269f7d(0x1c0)!=_0x4dbead[_0x269f7d(0x19d)]||!_0x4dbead[_0x269f7d(0x19a)][_0x269f7d(0x158)](_0x269f7d(0x1b9)))return;const _0x3d461f=_0x4dbead[_0x269f7d(0x165)];_0xe68c47[_0x269f7d(0x168)][_0x269f7d(0x1b5)](_0x3d461f)&&(_0x4dbead[_0x269f7d(0x17d)]=_0x4dbead[_0x269f7d(0x18d)]?_0x3b3c36[_0x269f7d(0x194)][_0x269f7d(0x1d0)](_0x4dbead[_0x269f7d(0x18d)][_0x269f7d(0x1af)],_0x4dbead[_0x269f7d(0x18d)][_0x269f7d(0x1cf)]):null);},{'priority':_0x1f55c4(0x1b7)});}[_0x41bf8e(0x1d5)](){const _0xbf3388=_0x41bf8e;return this[_0xbf3388(0x1bd)][_0xbf3388(0x193)](),super[_0xbf3388(0x1d5)]();}[_0x41bf8e(0x185)](){const _0x268631=_0x41bf8e,_0x56d9a2=this[_0x268631(0x17b)],_0x1e2114=_0x56d9a2[_0x268631(0x194)][_0x268631(0x17e)],_0x5ecec0=_0x56d9a2[_0x268631(0x1d2)][_0x268631(0x1d6)](_0x46106e);_0x56d9a2[_0x268631(0x194)][_0x268631(0x190)]({'isUndoable':!0x1},_0x230df8=>{const _0x140578=_0x268631,_0x167a60=_0x140578(0x198)+_0x5ecec0[_0x140578(0x1c7)],_0x3f1ed6=_0x140578(0x1bb)+_0x5ecec0[_0x140578(0x1c7)],_0x2cd6c6=_0x56d9a2[_0x140578(0x194)][_0x140578(0x179)][_0x140578(0x1b5)](_0x167a60);_0x56d9a2[_0x140578(0x15f)][_0x140578(0x1a2)][_0x140578(0x163)]?Z(_0x5ecec0[_0x140578(0x1c7)],_0x1e2114[_0x140578(0x15b)][_0x140578(0x1a1)](),_0x56d9a2[_0x140578(0x194)],_0x230df8):_0x2cd6c6&&(_0x230df8[_0x140578(0x197)](_0x167a60),_0x230df8[_0x140578(0x197)](_0x3f1ed6));});}}function Z(_0x50febd,_0x23a28f,_0x15eea2,_0x1f44bb){const _0x2e3b4a=_0x41bf8e,_0x1d1c72=_0x2e3b4a(0x198)+_0x50febd,_0x207cf5=_0x2e3b4a(0x1bb)+_0x50febd,_0x185210=_0x23a28f[_0x2e3b4a(0x162)]();let _0xbf9d2d=_0x23a28f[_0x2e3b4a(0x1af)];if(_0x185210&&_0x185210['is'](_0x2e3b4a(0x1ab),_0x2e3b4a(0x1cb))){const _0x2a7d84=function(_0x4aa28b,_0xe4141e){const _0x400d64=_0x2e3b4a;for(const _0x172348 of _0x4aa28b[_0x400d64(0x160)]())if(_0xe4141e[_0x400d64(0x184)][_0x400d64(0x1a9)](_0x172348,_0x400d64(0x186)))return _0x172348;}(_0x23a28f,_0x15eea2);_0x2a7d84&&(_0xbf9d2d=_0x2a7d84,_0x23a28f=_0x1f44bb[_0x2e3b4a(0x1d0)](_0xbf9d2d));}const _0x3e00b8=_0x1f44bb[_0x2e3b4a(0x1d0)](_0xbf9d2d);_0x15eea2[_0x2e3b4a(0x179)][_0x2e3b4a(0x1b5)](_0x1d1c72)?(_0x1f44bb[_0x2e3b4a(0x1cc)](_0x1d1c72,{'range':_0x23a28f}),_0x1f44bb[_0x2e3b4a(0x1cc)](_0x207cf5,{'range':_0x3e00b8})):(_0x1f44bb[_0x2e3b4a(0x19e)](_0x1d1c72,{'range':_0x23a28f,'usingOperation':!0x0}),_0x1f44bb[_0x2e3b4a(0x19e)](_0x207cf5,{'range':_0x3e00b8,'usingOperation':!0x0}));}
23
+ const _0x40b7db=_0xa068;function _0xa068(_0x1ae903,_0x423953){const _0xdaa250=_0xdaa2();return _0xa068=function(_0xa068ca,_0x39a991){_0xa068ca=_0xa068ca-0x64;let _0x3e6738=_0xdaa250[_0xa068ca];return _0x3e6738;},_0xa068(_0x1ae903,_0x423953);}function _0xdaa2(){const _0xc186d8=['getNearestSelectionRange','user:range:','user:','createElement','rootName','getStart','undo','color','checkChild','schema','editing','clear','contenteditable','markerToHighlight','isSimilar','isInline','update:user:range','1270932EUZZfp','fromRange','hasDomSelection','listenTo','setAttribute','textContent','remove','mouseleave','isPremiumPlugin','markers','requires','oldRange','mySessionId','createUserMarkerOperations','userPositionMarker','render','_domEmitter','879260AVCVJk','delete','setCustomProperty','3976824iguDQL','getFirstRange','getContainedElement','⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','editingDowncast','5279TGpJeZ','ck-user__selection','mouseenter','orderNumber','spellcheck','document','set','init','innerHTML','isLimit','Escape','root','change','hasContent','startsWith','markerToElement','getMarkerClass','commands','1219841kBhWCM','outerHTML','createUIElement','65397ZkyUfK','user:position','parent','reconvertMarker','removeClass','tableCell','end','isCollapsed','ck-user__marker\x20','user:range','34cDFNXB','addEventListener','false','selection','conversion','removeMarker','name','markerRange','$graveyard','isDocumentOperation','updateMarker','toDomElement','split','applyOperation','_createdBatches','mapper','getRange','data-session-id','getUserBySessionId','classList','detach','addMarker','element','newRange','getAttribute','change:range','has','enqueueChange','128816WweiaN','getSelectionClass','markerNameToElements','toRange','$text','ck-user__marker-tooltip','for','editor','keydown','add','getCustomProperty','type','model','isOfficialPlugin','size','plugins','get','destroy','span','highest','user:position:','markerName','nodeAfter','deletionPosition','start','stopListening','ck-user__marker_hovered','batch','createRange','view','marker','pluginName','afterInit','isObject','UserMarkers','getPositions'];_0xdaa2=function(){return _0xc186d8;};return _0xdaa2();}(function(_0x225426,_0x40ad4d){const _0x2f5999=_0xa068,_0x5c9f79=_0x225426();while(!![]){try{const _0x5c7c1e=-parseInt(_0x2f5999(0x72))/0x1*(parseInt(_0x2f5999(0x91))/0x2)+-parseInt(_0x2f5999(0x87))/0x3+-parseInt(_0x2f5999(0xad))/0x4+parseInt(_0x2f5999(0x6a))/0x5+-parseInt(_0x2f5999(0xe2))/0x6+-parseInt(_0x2f5999(0x84))/0x7+parseInt(_0x2f5999(0x6d))/0x8;if(_0x5c7c1e===_0x40ad4d)break;else _0x5c9f79['push'](_0x5c9f79['shift']());}catch(_0x5760f3){_0x5c9f79['push'](_0x5c9f79['shift']());}}}(_0xdaa2,0x22f14));import{Plugin as _0x2e4364}from'ckeditor5/src/core.js';import{global as _0x6f07a2,DomEmitterMixin as _0xae053}from'ckeditor5/src/utils.js';import{Sessions as _0x484afa}from'./sessions.js';import{ModelLiveRange as _0x2a6ef8}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';export class UserMarkers extends _0x2e4364{[_0x40b7db(0x69)]=new(_0xae053())();static get[_0x40b7db(0xec)](){return[_0x484afa];}static get[_0x40b7db(0xcc)](){const _0x5b7aef=_0x40b7db;return _0x5b7aef(0xcf);}static get[_0x40b7db(0xba)](){return!0x0;}static get[_0x40b7db(0xea)](){return!0x0;}[_0x40b7db(0x79)](){const _0x48717e=_0x40b7db,_0x12a980=this[_0x48717e(0xb4)],_0xa85550=_0x12a980[_0x48717e(0xbc)][_0x48717e(0xbd)](_0x484afa);_0x12a980[_0x48717e(0x95)][_0x48717e(0xb3)](_0x48717e(0x71))[_0x48717e(0x81)]({'model':_0x48717e(0x88),'view':(_0x5294ab,{writer:_0x5b1e7c})=>function(_0x2d4e4b,_0x400bf7,_0x1b9dfc,_0x43f269){const _0x519ef5=_0x48717e,_0x19cc42=_0x2d4e4b[_0x519ef5(0xc2)][_0x519ef5(0x9d)](':')[0x2],_0x524305=_0x1b9dfc[_0x519ef5(0xa3)](_0x19cc42);if(!_0x524305||_0x19cc42===_0x1b9dfc[_0x519ef5(0x65)])return;if(!_0x43f269[_0x519ef5(0xb9)][_0x519ef5(0xda)][_0x519ef5(0xd9)](_0x2d4e4b[_0x519ef5(0x98)][_0x519ef5(0xc5)],_0x519ef5(0xb1)))return;const _0x5a68db={'class':_0x519ef5(0x8f)+_0x524305[_0x519ef5(0xd8)][_0x519ef5(0x82)](),'data-name':_0x524305[_0x519ef5(0x97)],'data-session-id':_0x19cc42},_0x575316=_0x43f269[_0x519ef5(0xb9)][_0x519ef5(0xeb)][_0x519ef5(0xbd)](_0x2d4e4b[_0x519ef5(0xc2)]),_0x50260d=_0x575316[_0x519ef5(0xd6)](),_0x13c350=_0x50260d[_0x519ef5(0xc3)],_0x23dc1f=_0x43f269[_0x519ef5(0xb9)][_0x519ef5(0xda)];if(_0x13c350&&_0x23dc1f[_0x519ef5(0xce)](_0x13c350)&&_0x23dc1f[_0x519ef5(0xe0)](_0x13c350)&&!_0x43f269[_0x519ef5(0xb9)][_0x519ef5(0xeb)][_0x519ef5(0xbd)](_0x519ef5(0xd2)+_0x19cc42)[_0x519ef5(0xa1)]()[_0x519ef5(0x8e)])return;const _0x4a1ae1=_0x50260d[_0x519ef5(0x89)];return _0x43f269[_0x519ef5(0xb9)][_0x519ef5(0xda)][_0x519ef5(0x7b)](_0x4a1ae1)&&!_0x43f269[_0x519ef5(0xb9)][_0x519ef5(0x7f)](_0x4a1ae1)&&(_0x5a68db[_0x519ef5(0xdd)]=!0x1),function(_0x500f2e,_0x43ecc6,_0x41597d){const _0x34fc46=_0x519ef5,_0x34f377=_0x500f2e[_0x34fc46(0x86)](_0x34fc46(0xbf),_0x43ecc6);return _0x500f2e[_0x34fc46(0x6c)](_0x34fc46(0x67),!0x0,_0x34f377),_0x34f377[_0x34fc46(0x68)]=function(_0x580b57){const _0x272632=_0x34fc46,_0x10cd9c=this[_0x272632(0x9c)](_0x580b57),_0x44a5c0=document[_0x272632(0xd4)](_0x272632(0xbf));return _0x44a5c0[_0x272632(0xa4)][_0x272632(0xb6)](_0x272632(0xb2)),_0x44a5c0[_0x272632(0xe6)](_0x272632(0xdd),_0x272632(0x93)),_0x44a5c0[_0x272632(0xe6)](_0x272632(0x76),_0x272632(0x93)),_0x44a5c0[_0x272632(0xe7)]=_0x41597d[_0x272632(0x97)],_0x10cd9c[_0x272632(0x7a)]=_0x272632(0x70)+_0x44a5c0[_0x272632(0x85)]+'⁠',_0x10cd9c[_0x272632(0x92)](_0x272632(0x74),()=>{const _0x4b7271=_0x272632;_0x10cd9c[_0x4b7271(0xa4)][_0x4b7271(0xb6)](_0x4b7271(0xc7));}),_0x10cd9c[_0x272632(0x92)](_0x272632(0xe9),()=>{const _0x4cc27c=_0x272632;_0x10cd9c[_0x4cc27c(0xa4)][_0x4cc27c(0xe8)](_0x4cc27c(0xc7));}),_0x10cd9c;},_0x34f377[_0x34fc46(0xdf)]=function(_0x2862f6){const _0x37e763=_0x34fc46;return!(!this[_0x37e763(0xb7)](_0x37e763(0x67))||!_0x2862f6[_0x37e763(0xb7)](_0x37e763(0x67))||this[_0x37e763(0xa9)](_0x37e763(0xa2))!=_0x2862f6[_0x37e763(0xa9)](_0x37e763(0xa2)));},_0x34f377;}(_0x400bf7,_0x5a68db,_0x524305);}(_0x5294ab,_0x5b1e7c,_0xa85550,_0x12a980)}),_0x12a980[_0x48717e(0x95)][_0x48717e(0xb3)](_0x48717e(0x71))[_0x48717e(0xde)]({'model':_0x48717e(0x90),'view':_0x42554a=>function(_0xd7b5cf,_0x639a8c){const _0x32dd36=_0x48717e,_0x25ee51=_0xd7b5cf[_0x32dd36(0xc2)][_0x32dd36(0x9d)](':')[0x2];if(_0x25ee51===_0x639a8c[_0x32dd36(0x65)])return null;const _0x49f819=_0x639a8c[_0x32dd36(0xa3)](_0x25ee51);if(!_0x49f819)return{'id':_0x25ee51,'classes':[]};return{'id':_0x25ee51,'classes':[_0x32dd36(0x73),_0x49f819[_0x32dd36(0xd8)][_0x32dd36(0xae)]()],'attributes':{'data-session-id':_0x25ee51},'priority':0x7d0+_0x49f819[_0x32dd36(0x75)]};}(_0x42554a,_0xa85550)}),function(_0x4bd3d6){const _0x329f42=_0x48717e,_0x145240=_0x4bd3d6[_0x329f42(0xb9)],_0x89fcc9=new Map(),_0x550a52=_0x4bd3d6[_0x329f42(0xbc)][_0x329f42(0xbd)](_0x484afa);_0x145240[_0x329f42(0xeb)]['on'](_0x329f42(0xe1),(_0x595b5b,_0x897e54,_0x1ca83e,_0x3365d4)=>{const _0x5857dd=_0x329f42;if(!_0x3365d4&&_0x89fcc9[_0x5857dd(0xbd)](_0x897e54[_0x5857dd(0x97)]))return _0x89fcc9[_0x5857dd(0xbd)](_0x897e54[_0x5857dd(0x97)])[_0x5857dd(0xa5)](),void _0x89fcc9[_0x5857dd(0x6b)](_0x897e54[_0x5857dd(0x97)]);const _0x23e9de=_0x897e54[_0x5857dd(0x97)][_0x5857dd(0x9d)](':')[0x2];if(_0x23e9de===_0x550a52[_0x5857dd(0x65)])return;const _0x4bb983=_0x5857dd(0xc1)+_0x23e9de;_0x145240[_0x5857dd(0xeb)][_0x5857dd(0xab)](_0x4bb983)&&_0x4bd3d6[_0x5857dd(0xdb)][_0x5857dd(0x8a)](_0x4bb983),_0x897e54['on'](_0x5857dd(0xaa),(_0xaa2db1,_0x474c18,_0x585c53)=>{const _0x107d0f=_0x5857dd;if(_0x107d0f(0x99)!=_0x474c18[_0x107d0f(0x7d)][_0x107d0f(0xd5)]&&_0x107d0f(0x99)==_0x897e54[_0x107d0f(0xa1)]()[_0x107d0f(0x7d)][_0x107d0f(0xd5)]&&!_0x89fcc9[_0x107d0f(0xab)](_0x897e54[_0x107d0f(0x97)])){const _0x29afe9=_0x145240[_0x107d0f(0xda)][_0x107d0f(0xd1)](_0x585c53[_0x107d0f(0xc4)]);if(_0x29afe9){const _0x1a53f0=_0x2a6ef8[_0x107d0f(0xe3)](_0x29afe9);_0x89fcc9[_0x107d0f(0x78)](_0x897e54[_0x107d0f(0x97)],_0x1a53f0),_0x1a53f0['on'](_0x107d0f(0xaa),(_0x3df060,_0xaf3b5b,_0x57a6bd)=>{const _0x26c2e3=_0x107d0f;if(_0x26c2e3(0x99)==_0x1a53f0[_0x26c2e3(0x7d)][_0x26c2e3(0xd5)]){const _0x2aa806=_0x145240[_0x26c2e3(0xda)][_0x26c2e3(0xd1)](_0x57a6bd[_0x26c2e3(0xc4)]);_0x2aa806?(_0x1a53f0[_0x26c2e3(0xc5)]=_0x2aa806[_0x26c2e3(0xc5)],_0x1a53f0[_0x26c2e3(0x8d)]=_0x2aa806[_0x26c2e3(0x8d)]):(_0x89fcc9[_0x26c2e3(0x6b)](_0x897e54[_0x26c2e3(0x97)]),_0x1a53f0[_0x26c2e3(0xa5)]());}});}}});}),_0x145240[_0x329f42(0x77)]['on'](_0x329f42(0x7e),()=>{const _0x46697c=_0x329f42;_0x89fcc9[_0x46697c(0xbb)]>0x0&&_0x145240[_0x46697c(0xac)]({'isUndoable':!0x1},_0x276cca=>{const _0x15c2c0=_0x46697c;for(const [_0x2d9103,_0x42d1dc]of _0x89fcc9)_0x15c2c0(0x99)==_0x145240[_0x15c2c0(0xeb)][_0x15c2c0(0xbd)](_0x2d9103)[_0x15c2c0(0xa1)]()[_0x15c2c0(0x7d)][_0x15c2c0(0xd5)]&&(Y(_0x2d9103[_0x15c2c0(0x9d)](':')[0x2],_0x42d1dc[_0x15c2c0(0xb0)](),_0x145240,_0x276cca),_0x42d1dc[_0x15c2c0(0xa5)]());_0x89fcc9[_0x15c2c0(0xdc)]();});});}(_0x12a980),this[_0x48717e(0x69)][_0x48717e(0xe5)](_0x6f07a2[_0x48717e(0x77)],_0x48717e(0xb5),(_0x1bd726,{key:_0xdab9b3})=>{const _0x4b99fb=_0x48717e;_0x4b99fb(0x7c)===_0xdab9b3&&function(_0x5c4a47){const _0x7a0a8c=_0x4b99fb;_0x5c4a47[_0x7a0a8c(0xdb)][_0x7a0a8c(0xca)][_0x7a0a8c(0x7e)](_0x4169b3=>{const _0x585ee6=_0x7a0a8c;for(const _0x2442fe of _0x5c4a47[_0x585ee6(0xb9)][_0x585ee6(0xeb)]){if(!_0x2442fe[_0x585ee6(0x97)][_0x585ee6(0x80)](_0x585ee6(0x88)))continue;const _0x397463=_0x5c4a47[_0x585ee6(0xdb)][_0x585ee6(0xa0)][_0x585ee6(0xaf)](_0x2442fe[_0x585ee6(0x97)]);if(_0x397463){for(const _0x3b7092 of _0x397463)_0x4169b3[_0x585ee6(0x8b)](_0x585ee6(0xc7),_0x3b7092);}}});}(_0x12a980);},{'useCapture':!0x0});}[_0x40b7db(0xcd)](){const _0x573e80=_0x40b7db,_0x20718b=this[_0x573e80(0xb4)],_0x173e77=_0x20718b[_0x573e80(0x83)][_0x573e80(0xbd)](_0x573e80(0xd7));_0x173e77&&_0x20718b[_0x573e80(0xb9)]['on'](_0x573e80(0x9e),(_0x1e4a88,_0x43b948)=>{const _0x28331d=_0x573e80,_0x4ceefa=_0x43b948[0x0];if(!_0x4ceefa[_0x28331d(0x9a)])return;if(_0x28331d(0xcb)!=_0x4ceefa[_0x28331d(0xb8)]||!_0x4ceefa[_0x28331d(0x97)][_0x28331d(0x80)](_0x28331d(0xd3)))return;const _0x44b61c=_0x4ceefa[_0x28331d(0xc8)];_0x173e77[_0x28331d(0x9f)][_0x28331d(0xab)](_0x44b61c)&&(_0x4ceefa[_0x28331d(0xa8)]=_0x4ceefa[_0x28331d(0x64)]?_0x20718b[_0x28331d(0xb9)][_0x28331d(0xc9)](_0x4ceefa[_0x28331d(0x64)][_0x28331d(0xc5)],_0x4ceefa[_0x28331d(0x64)][_0x28331d(0x8d)]):null);},{'priority':_0x573e80(0xc0)});}[_0x40b7db(0xbe)](){const _0x38e4fc=_0x40b7db;return this[_0x38e4fc(0x69)][_0x38e4fc(0xc6)](),super[_0x38e4fc(0xbe)]();}[_0x40b7db(0x66)](){const _0xdcab6b=_0x40b7db,_0x126685=this[_0xdcab6b(0xb4)],_0x27fd71=_0x126685[_0xdcab6b(0xb9)][_0xdcab6b(0x77)],_0x1ef075=_0x126685[_0xdcab6b(0xbc)][_0xdcab6b(0xbd)](_0x484afa);_0x126685[_0xdcab6b(0xb9)][_0xdcab6b(0xac)]({'isUndoable':!0x1},_0x13c043=>{const _0x4875d5=_0xdcab6b,_0x202e72=_0x4875d5(0xd2)+_0x1ef075[_0x4875d5(0x65)],_0x5286b8=_0x4875d5(0xc1)+_0x1ef075[_0x4875d5(0x65)],_0x8644c4=_0x126685[_0x4875d5(0xb9)][_0x4875d5(0xeb)][_0x4875d5(0xab)](_0x202e72);_0x126685[_0x4875d5(0xdb)][_0x4875d5(0xca)][_0x4875d5(0xe4)]?Y(_0x1ef075[_0x4875d5(0x65)],_0x27fd71[_0x4875d5(0x94)][_0x4875d5(0x6e)](),_0x126685[_0x4875d5(0xb9)],_0x13c043):_0x8644c4&&(_0x13c043[_0x4875d5(0x96)](_0x202e72),_0x13c043[_0x4875d5(0x96)](_0x5286b8));});}}function Y(_0x362060,_0x1b320d,_0x394dc3,_0x37ab54){const _0x554cb2=_0x40b7db,_0x58bee8=_0x554cb2(0xd2)+_0x362060,_0x48eb9e=_0x554cb2(0xc1)+_0x362060,_0x4b00ef=_0x1b320d[_0x554cb2(0x6f)]();let _0x6225bd=_0x1b320d[_0x554cb2(0xc5)];if(_0x4b00ef&&_0x4b00ef['is'](_0x554cb2(0xa7),_0x554cb2(0x8c))){const _0x2475e5=function(_0x40ea80,_0x3f5a2c){const _0x12957a=_0x554cb2;for(const _0x50a9f6 of _0x40ea80[_0x12957a(0xd0)]())if(_0x3f5a2c[_0x12957a(0xda)][_0x12957a(0xd9)](_0x50a9f6,_0x12957a(0xb1)))return _0x50a9f6;}(_0x1b320d,_0x394dc3);_0x2475e5&&(_0x6225bd=_0x2475e5,_0x1b320d=_0x37ab54[_0x554cb2(0xc9)](_0x6225bd));}const _0x59e43c=_0x37ab54[_0x554cb2(0xc9)](_0x6225bd);_0x394dc3[_0x554cb2(0xeb)][_0x554cb2(0xab)](_0x58bee8)?(_0x37ab54[_0x554cb2(0x9b)](_0x58bee8,{'range':_0x1b320d}),_0x37ab54[_0x554cb2(0x9b)](_0x48eb9e,{'range':_0x59e43c})):(_0x37ab54[_0x554cb2(0xa6)](_0x58bee8,{'range':_0x1b320d,'usingOperation':!0x0}),_0x37ab54[_0x554cb2(0xa6)](_0x48eb9e,{'range':_0x59e43c,'usingOperation':!0x0}));}