@ckeditor/ckeditor5-real-time-collaboration 46.0.2-alpha.1 → 46.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-real-time-collaboration",
3
- "version": "46.0.2-alpha.1",
3
+ "version": "46.0.2",
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.2-alpha.1",
51
- "@ckeditor/ckeditor5-comments": "46.0.2-alpha.1",
52
- "@ckeditor/ckeditor5-core": "46.0.2-alpha.1",
53
- "@ckeditor/ckeditor5-editor-multi-root": "46.0.2-alpha.1",
54
- "@ckeditor/ckeditor5-engine": "46.0.2-alpha.1",
55
- "@ckeditor/ckeditor5-operations-compressor": "46.0.2-alpha.1",
56
- "@ckeditor/ckeditor5-revision-history": "46.0.2-alpha.1",
57
- "@ckeditor/ckeditor5-theme-lark": "46.0.2-alpha.1",
58
- "@ckeditor/ckeditor5-track-changes": "46.0.2-alpha.1",
59
- "@ckeditor/ckeditor5-ui": "46.0.2-alpha.1",
60
- "@ckeditor/ckeditor5-utils": "46.0.2-alpha.1",
61
- "ckeditor5": "46.0.2-alpha.1",
62
- "ckeditor5-collaboration": "46.0.2-alpha.1",
50
+ "@ckeditor/ckeditor5-cloud-services": "46.0.2",
51
+ "@ckeditor/ckeditor5-comments": "46.0.2",
52
+ "@ckeditor/ckeditor5-core": "46.0.2",
53
+ "@ckeditor/ckeditor5-editor-multi-root": "46.0.2",
54
+ "@ckeditor/ckeditor5-engine": "46.0.2",
55
+ "@ckeditor/ckeditor5-operations-compressor": "46.0.2",
56
+ "@ckeditor/ckeditor5-revision-history": "46.0.2",
57
+ "@ckeditor/ckeditor5-theme-lark": "46.0.2",
58
+ "@ckeditor/ckeditor5-track-changes": "46.0.2",
59
+ "@ckeditor/ckeditor5-ui": "46.0.2",
60
+ "@ckeditor/ckeditor5-utils": "46.0.2",
61
+ "ckeditor5": "46.0.2",
62
+ "ckeditor5-collaboration": "46.0.2",
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 _0x5565(){const _0x558f44=['ck-presence-list__marker','8894851fvfTHJ','focus','getBackgroundColorClass','true','tag','fire','1297546cLxDoy','presentation','element','21aTpVJk','9147546degwkw','719228sPVMZg','userView','execute','color','2wSJyIf','4290008WcQEcA','name','30DZciiS','span','setTemplate','ck-presence-list__dropdown-list-item','button','ck-user__full-name','187465xlenyl','bindTemplate','21984070prBkKD'];_0x5565=function(){return _0x558f44;};return _0x5565();}const _0x9b220f=_0x2a34;(function(_0x3e8e70,_0x502f0c){const _0x3259ff=_0x2a34,_0x516ccb=_0x3e8e70();while(!![]){try{const _0x2a77d2=-parseInt(_0x3259ff(0x1cf))/0x1*(-parseInt(_0x3259ff(0x1d8))/0x2)+parseInt(_0x3259ff(0x1d2))/0x3*(-parseInt(_0x3259ff(0x1d4))/0x4)+-parseInt(_0x3259ff(0x1c5))/0x5*(-parseInt(_0x3259ff(0x1bf))/0x6)+parseInt(_0x3259ff(0x1c9))/0x7+parseInt(_0x3259ff(0x1bd))/0x8+parseInt(_0x3259ff(0x1d3))/0x9+-parseInt(_0x3259ff(0x1c7))/0xa;if(_0x2a77d2===_0x502f0c)break;else _0x516ccb['push'](_0x516ccb['shift']());}catch(_0x570a7d){_0x516ccb['push'](_0x516ccb['shift']());}}}(_0x5565,0xcfd5d));import{ListItemView as _0x33f6ec}from'ckeditor5/src/ui.js';function _0x2a34(_0x1ae885,_0x3fe833){const _0x5565b7=_0x5565();return _0x2a34=function(_0x2a3422,_0x57631d){_0x2a3422=_0x2a3422-0x1bd;let _0x5d7dcd=_0x5565b7[_0x2a3422];return _0x5d7dcd;},_0x2a34(_0x1ae885,_0x3fe833);}import{UserView as _0xd6eef6}from'ckeditor5-collaboration/src/collaboration-core.js';export class PresenceDropdownListItemView extends _0x33f6ec{[_0x9b220f(0x1d5)];constructor(_0x172cd3,_0x169271,_0x31fbf2){const _0x4b8dbe=_0x9b220f;super(_0x172cd3);const _0x14cf8c=this[_0x4b8dbe(0x1c6)];this[_0x4b8dbe(0x1d5)]=new _0xd6eef6(_0x172cd3,_0x169271);const _0x3f72c9={'tag':'li','attributes':{'class':['ck',_0x4b8dbe(0x1c2)],'tabindex':-0x1,'role':_0x4b8dbe(0x1d0),'aria-label':_0x169271[_0x4b8dbe(0x1be)]},'children':[this[_0x4b8dbe(0x1d5)],{'tag':_0x4b8dbe(0x1c0),'attributes':{'class':['ck',_0x4b8dbe(0x1c4)]},'children':[{'text':_0x169271[_0x4b8dbe(0x1be)]}]},{'tag':_0x4b8dbe(0x1c0),'attributes':{'class':['ck',_0x4b8dbe(0x1c8),_0x169271[_0x4b8dbe(0x1d7)][_0x4b8dbe(0x1cb)]()],'aria-hidden':_0x4b8dbe(0x1cc)}}]};_0x31fbf2&&(_0x3f72c9[_0x4b8dbe(0x1cd)]=_0x4b8dbe(0x1c3),_0x3f72c9['on']={'click':_0x14cf8c['to'](()=>this[_0x4b8dbe(0x1ce)](_0x4b8dbe(0x1d6)))}),this[_0x4b8dbe(0x1c1)](_0x3f72c9);}[_0x9b220f(0x1ca)](){const _0x569df5=_0x9b220f;this[_0x569df5(0x1d1)][_0x569df5(0x1ca)]();}}
23
+ const _0x4e2d77=_0x5a12;(function(_0x1b7d92,_0x446590){const _0x301e22=_0x5a12,_0x45ab7f=_0x1b7d92();while(!![]){try{const _0x1a74cb=-parseInt(_0x301e22(0x142))/0x1+-parseInt(_0x301e22(0x12f))/0x2+parseInt(_0x301e22(0x140))/0x3*(-parseInt(_0x301e22(0x136))/0x4)+-parseInt(_0x301e22(0x133))/0x5*(parseInt(_0x301e22(0x13c))/0x6)+-parseInt(_0x301e22(0x12a))/0x7+-parseInt(_0x301e22(0x131))/0x8*(-parseInt(_0x301e22(0x13f))/0x9)+parseInt(_0x301e22(0x138))/0xa;if(_0x1a74cb===_0x446590)break;else _0x45ab7f['push'](_0x45ab7f['shift']());}catch(_0x168b96){_0x45ab7f['push'](_0x45ab7f['shift']());}}}(_0x3477,0xb67a6));import{ListItemView as _0x3386b2}from'ckeditor5/src/ui.js';function _0x3477(){const _0x2b25ff=['execute','button','name','354eCYFmo','span','ck-presence-list__dropdown-list-item','1552239QlhETG','9588imZnUh','ck-user__full-name','28373hONlqQ','bindTemplate','presentation','color','4721563wMDlBu','focus','ck-presence-list__marker','fire','setTemplate','1534774DfaeuF','getBackgroundColorClass','24pLnRFe','element','39955YEqUSz','tag','userView','1516MUTfzb','true','33830390oSpaBG'];_0x3477=function(){return _0x2b25ff;};return _0x3477();}import{UserView as _0x47e56f}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x5a12(_0x5be24a,_0x5a5131){const _0x347719=_0x3477();return _0x5a12=function(_0x5a1272,_0x82026a){_0x5a1272=_0x5a1272-0x127;let _0x4233f9=_0x347719[_0x5a1272];return _0x4233f9;},_0x5a12(_0x5be24a,_0x5a5131);}export class PresenceDropdownListItemView extends _0x3386b2{[_0x4e2d77(0x135)];constructor(_0x4bc064,_0x598366,_0x3922be){const _0x14e9f4=_0x4e2d77;super(_0x4bc064);const _0x4f0ce4=this[_0x14e9f4(0x127)];this[_0x14e9f4(0x135)]=new _0x47e56f(_0x4bc064,_0x598366);const _0x4cb8af={'tag':'li','attributes':{'class':['ck',_0x14e9f4(0x13e)],'tabindex':-0x1,'role':_0x14e9f4(0x128),'aria-label':_0x598366[_0x14e9f4(0x13b)]},'children':[this[_0x14e9f4(0x135)],{'tag':_0x14e9f4(0x13d),'attributes':{'class':['ck',_0x14e9f4(0x141)]},'children':[{'text':_0x598366[_0x14e9f4(0x13b)]}]},{'tag':_0x14e9f4(0x13d),'attributes':{'class':['ck',_0x14e9f4(0x12c),_0x598366[_0x14e9f4(0x129)][_0x14e9f4(0x130)]()],'aria-hidden':_0x14e9f4(0x137)}}]};_0x3922be&&(_0x4cb8af[_0x14e9f4(0x134)]=_0x14e9f4(0x13a),_0x4cb8af['on']={'click':_0x4f0ce4['to'](()=>this[_0x14e9f4(0x12d)](_0x14e9f4(0x139)))}),this[_0x14e9f4(0x12e)](_0x4cb8af);}[_0x4e2d77(0x12b)](){const _0x5edcd=_0x4e2d77;this[_0x5edcd(0x132)][_0x5edcd(0x12b)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9612a3=_0x1a1f;function _0x4593(){const _0x4bdad0=['4272640unBhfE','setTemplate','ariaLabel','contains','listWrapperView','relatedTarget','10310050ywXaGm','ck-presence-list__dropdown-list-wrapper','presencelist:hide','ck-presence-list__dropdown-list','247761NgdBPY','max','window','6YWJoUZ','.ck-presence-list__list','64cpxjkc','ck-reset','728851MDVlQa','ariaLabelledBy','9Geiwdb','635284iLQcYh','innerHeight','244755UptxUI','listenTo','.ck-balloon-panel_with-arrow','_isScrollable','bindTemplate','items','role','fire','element','clientHeight','change','1233146FFnKzE','ck-list','resize','checkIfScrollable','scrollHeight','application','div','querySelector','ck-presence-list__dropdown-list-wrapper_scrollable','render','Connected\x20users\x20list\x20dropdown\x20menu','set'];_0x4593=function(){return _0x4bdad0;};return _0x4593();}(function(_0x22168e,_0x5354cc){const _0x58ed7a=_0x1a1f,_0x4fe268=_0x22168e();while(!![]){try{const _0x479f35=-parseInt(_0x58ed7a(0x1d5))/0x1+parseInt(_0x58ed7a(0x1e5))/0x2+-parseInt(_0x58ed7a(0x1d7))/0x3*(-parseInt(_0x58ed7a(0x1d8))/0x4)+-parseInt(_0x58ed7a(0x1f1))/0x5*(parseInt(_0x58ed7a(0x1fe))/0x6)+-parseInt(_0x58ed7a(0x1da))/0x7+parseInt(_0x58ed7a(0x1d3))/0x8*(parseInt(_0x58ed7a(0x1fb))/0x9)+parseInt(_0x58ed7a(0x1f7))/0xa;if(_0x479f35===_0x5354cc)break;else _0x4fe268['push'](_0x4fe268['shift']());}catch(_0xdba259){_0x4fe268['push'](_0x4fe268['shift']());}}}(_0x4593,0xb13a9));import{ListView as _0x1fe3e9,View as _0x5762a7}from'ckeditor5/src/ui.js';import{global as _0x1e99a0}from'ckeditor5/src/utils.js';import{getTranslation as _0x48b725}from'../../common-translations.js';function _0x1a1f(_0x453104,_0x55d4d0){const _0x4593fc=_0x4593();return _0x1a1f=function(_0x1a1f3b,_0xc2a970){_0x1a1f3b=_0x1a1f3b-0x1d2;let _0x2692e7=_0x4593fc[_0x1a1f3b];return _0x2692e7;},_0x1a1f(_0x453104,_0x55d4d0);}export class PresenceDropdownListView extends _0x5762a7{[_0x9612a3(0x1f5)];constructor(_0x19269d,_0x487626){const _0x187248=_0x9612a3;super(_0x19269d);const _0x43291a=this[_0x187248(0x1de)];this[_0x187248(0x1f5)]=new PresenceDropdownListWrapperView(_0x19269d,_0x487626),this[_0x187248(0x1f2)]({'tag':_0x187248(0x1eb),'attributes':{'tabindex':-0x1,'role':_0x187248(0x1ea),'class':['ck',_0x187248(0x1fa)],'aria-label':_0x48b725(_0x19269d,_0x187248(0x1ef))},'children':[this[_0x187248(0x1f5)]],'on':{'mouseleave':_0x43291a['to'](_0x2bdcc9=>{const _0x1a96a6=_0x187248,_0x5847f7=_0x2bdcc9,_0x2db5df=document[_0x1a96a6(0x1ec)](_0x1a96a6(0x1d2)),_0x26b77c=document[_0x1a96a6(0x1ec)](_0x1a96a6(0x1dc));_0x2db5df?.[_0x1a96a6(0x1f4)](_0x5847f7[_0x1a96a6(0x1f6)])||_0x26b77c?.[_0x1a96a6(0x1f4)](_0x5847f7[_0x1a96a6(0x1f6)])||this[_0x1a96a6(0x1e1)](_0x1a96a6(0x1f9));})}});}}export class PresenceDropdownListWrapperView extends _0x1fe3e9{constructor(_0x29c179,_0x2e5319){const _0x349adc=_0x9612a3;super(_0x29c179);const _0x2fb264=this[_0x349adc(0x1de)];this[_0x349adc(0x1f0)](_0x349adc(0x1dd),!0x1),this[_0x349adc(0x1f2)]({'tag':_0x2e5319?_0x349adc(0x1eb):'ul','attributes':{'class':['ck',_0x349adc(0x1d4),_0x349adc(0x1e6),_0x349adc(0x1f8),_0x2fb264['if'](_0x349adc(0x1dd),_0x349adc(0x1ed))],'role':_0x2fb264['to'](_0x349adc(0x1e0)),'aria-label':_0x2fb264['to'](_0x349adc(0x1f3)),'aria-labelledby':_0x2fb264['to'](_0x349adc(0x1d6))},'children':this[_0x349adc(0x1df)]}),this[_0x349adc(0x1db)](_0x1e99a0[_0x349adc(0x1fd)],_0x349adc(0x1e7),()=>this[_0x349adc(0x1e8)]()),this[_0x349adc(0x1df)]['on'](_0x349adc(0x1e4),()=>this[_0x349adc(0x1e8)]());}[_0x9612a3(0x1ee)](){const _0x1eaf3f=_0x9612a3;super[_0x1eaf3f(0x1ee)](),this[_0x1eaf3f(0x1e8)]();}[_0x9612a3(0x1e8)](){const _0x46616b=_0x9612a3,_0x51c1e3=this[_0x46616b(0x1e2)];_0x51c1e3&&(this[_0x46616b(0x1dd)]=Math[_0x46616b(0x1fc)](_0x51c1e3[_0x46616b(0x1e9)],_0x51c1e3[_0x46616b(0x1e3)])>0.8*window[_0x46616b(0x1d9)]);}}
23
+ function _0x35db(_0x217f93,_0x443d42){const _0x2ed59a=_0x2ed5();return _0x35db=function(_0x35db75,_0x52e062){_0x35db75=_0x35db75-0x16f;let _0x451de9=_0x2ed59a[_0x35db75];return _0x451de9;},_0x35db(_0x217f93,_0x443d42);}function _0x2ed5(){const _0xa9c7ee=['div','element','45VsOFSj','listenTo','presencelist:hide','items','fire','change','176472AyFRAh','2nDVygp','Connected\x20users\x20list\x20dropdown\x20menu','bindTemplate','ariaLabelledBy','282SAepuY','607797PZXwPI','84052kMuXFu','listWrapperView','8lsHpYQ','ck-presence-list__dropdown-list-wrapper_scrollable','ck-presence-list__dropdown-list-wrapper','1549361sfoIQO','max','scrollHeight','role','checkIfScrollable','window','.ck-presence-list__list','relatedTarget','render','application','querySelector','4128648hZYelu','91111TZJUfO','ck-list','clientHeight','innerHeight','resize','set','7091YgypiQ','.ck-balloon-panel_with-arrow','ck-reset','_isScrollable','ck-presence-list__dropdown-list','setTemplate','10wBRiPM','contains','ariaLabel'];_0x2ed5=function(){return _0xa9c7ee;};return _0x2ed5();}const _0x18e0dd=_0x35db;(function(_0x18f66b,_0x3c3555){const _0x549a80=_0x35db,_0x12d234=_0x18f66b();while(!![]){try{const _0x1cd479=-parseInt(_0x549a80(0x189))/0x1*(parseInt(_0x549a80(0x172))/0x2)+-parseInt(_0x549a80(0x171))/0x3+parseInt(_0x549a80(0x178))/0x4*(-parseInt(_0x549a80(0x19a))/0x5)+parseInt(_0x549a80(0x176))/0x6*(parseInt(_0x549a80(0x18f))/0x7)+parseInt(_0x549a80(0x17a))/0x8*(-parseInt(_0x549a80(0x177))/0x9)+-parseInt(_0x549a80(0x195))/0xa*(-parseInt(_0x549a80(0x17d))/0xb)+parseInt(_0x549a80(0x188))/0xc;if(_0x1cd479===_0x3c3555)break;else _0x12d234['push'](_0x12d234['shift']());}catch(_0x3f7052){_0x12d234['push'](_0x12d234['shift']());}}}(_0x2ed5,0x1ebeb));import{ListView as _0xd3881b,View as _0x576427}from'ckeditor5/src/ui.js';import{global as _0x38dd83}from'ckeditor5/src/utils.js';import{getTranslation as _0x3327df}from'../../common-translations.js';export class PresenceDropdownListView extends _0x576427{[_0x18e0dd(0x179)];constructor(_0x182e74,_0x50574a){const _0xb19e8b=_0x18e0dd;super(_0x182e74);const _0x400801=this[_0xb19e8b(0x174)];this[_0xb19e8b(0x179)]=new PresenceDropdownListWrapperView(_0x182e74,_0x50574a),this[_0xb19e8b(0x194)]({'tag':_0xb19e8b(0x198),'attributes':{'tabindex':-0x1,'role':_0xb19e8b(0x186),'class':['ck',_0xb19e8b(0x193)],'aria-label':_0x3327df(_0x182e74,_0xb19e8b(0x173))},'children':[this[_0xb19e8b(0x179)]],'on':{'mouseleave':_0x400801['to'](_0x2e22a6=>{const _0x4582ff=_0xb19e8b,_0x5f5ba6=_0x2e22a6,_0xe68ccb=document[_0x4582ff(0x187)](_0x4582ff(0x183)),_0x5e2dd7=document[_0x4582ff(0x187)](_0x4582ff(0x190));_0xe68ccb?.[_0x4582ff(0x196)](_0x5f5ba6[_0x4582ff(0x184)])||_0x5e2dd7?.[_0x4582ff(0x196)](_0x5f5ba6[_0x4582ff(0x184)])||this[_0x4582ff(0x16f)](_0x4582ff(0x19c));})}});}}export class PresenceDropdownListWrapperView extends _0xd3881b{constructor(_0x4257f8,_0x140ac0){const _0x4e2126=_0x18e0dd;super(_0x4257f8);const _0x2057b6=this[_0x4e2126(0x174)];this[_0x4e2126(0x18e)](_0x4e2126(0x192),!0x1),this[_0x4e2126(0x194)]({'tag':_0x140ac0?_0x4e2126(0x198):'ul','attributes':{'class':['ck',_0x4e2126(0x191),_0x4e2126(0x18a),_0x4e2126(0x17c),_0x2057b6['if'](_0x4e2126(0x192),_0x4e2126(0x17b))],'role':_0x2057b6['to'](_0x4e2126(0x180)),'aria-label':_0x2057b6['to'](_0x4e2126(0x197)),'aria-labelledby':_0x2057b6['to'](_0x4e2126(0x175))},'children':this[_0x4e2126(0x19d)]}),this[_0x4e2126(0x19b)](_0x38dd83[_0x4e2126(0x182)],_0x4e2126(0x18d),()=>this[_0x4e2126(0x181)]()),this[_0x4e2126(0x19d)]['on'](_0x4e2126(0x170),()=>this[_0x4e2126(0x181)]());}[_0x18e0dd(0x185)](){const _0x4bf2c5=_0x18e0dd;super[_0x4bf2c5(0x185)](),this[_0x4bf2c5(0x181)]();}[_0x18e0dd(0x181)](){const _0x2b90ab=_0x18e0dd,_0x119459=this[_0x2b90ab(0x199)];_0x119459&&(this[_0x2b90ab(0x192)]=Math[_0x2b90ab(0x17e)](_0x119459[_0x2b90ab(0x17f)],_0x119459[_0x2b90ab(0x18b)])>0.8*window[_0x2b90ab(0x18c)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5085(_0x13b4c1,_0x2ed830){const _0x6fa266=_0x6fa2();return _0x5085=function(_0x5085e0,_0x1d5f43){_0x5085e0=_0x5085e0-0x167;let _0x9c6e23=_0x6fa266[_0x5085e0];return _0x9c6e23;},_0x5085(_0x13b4c1,_0x2ed830);}function _0x6fa2(){const _0x27d942=['text','execute','tag','hasTooltip','4460235buidPL','14589003JMddQO','color','button','isFocusable','listitem','ck-presence-list__list-item__tooltip','setTemplate','888867gCjske','14692nxKgGP','200LdVPbB','true','markerView','userView','156sIlIlf','473625ZplLfD','tooltipPosition','bindTemplate','div','5008386kVZYrV','779478ZehJOV','template','name','getBackgroundColorClass','fire','ck-presence-list__list-item','span','40AMDiCW','2yTFUcR','ck-presence-list__marker','set'];_0x6fa2=function(){return _0x27d942;};return _0x6fa2();}const _0x4c38c2=_0x5085;(function(_0x2b7804,_0x3d6fce){const _0x4f4721=_0x5085,_0x19b607=_0x2b7804();while(!![]){try{const _0x481031=parseInt(_0x4f4721(0x178))/0x1*(parseInt(_0x4f4721(0x170))/0x2)+-parseInt(_0x4f4721(0x16a))/0x3*(parseInt(_0x4f4721(0x188))/0x4)+parseInt(_0x4f4721(0x17f))/0x5+parseInt(_0x4f4721(0x16f))/0x6+parseInt(_0x4f4721(0x187))/0x7*(parseInt(_0x4f4721(0x177))/0x8)+parseInt(_0x4f4721(0x16b))/0x9*(-parseInt(_0x4f4721(0x189))/0xa)+-parseInt(_0x4f4721(0x180))/0xb;if(_0x481031===_0x3d6fce)break;else _0x19b607['push'](_0x19b607['shift']());}catch(_0x3cb3ed){_0x19b607['push'](_0x19b607['shift']());}}}(_0x6fa2,0x8b800));import{LabelView as _0x39bcc8,View as _0x5ee582}from'ckeditor5/src/ui.js';import{UserView as _0x58ebbd}from'ckeditor5-collaboration/src/collaboration-core.js';export class PresenceInlineListItemView extends _0x5ee582{[_0x4c38c2(0x169)];[_0x4c38c2(0x168)];constructor(_0x45a255,_0x36a620,_0x3b4881){const _0x5d414c=_0x4c38c2;super(_0x45a255);const _0x58bb9a=this[_0x5d414c(0x16d)];this[_0x5d414c(0x17a)](_0x5d414c(0x183),!0x1),this[_0x5d414c(0x17a)](_0x5d414c(0x17e),!0x0),this[_0x5d414c(0x17a)](_0x5d414c(0x16c),''),this[_0x5d414c(0x169)]=new _0x58ebbd(_0x45a255,_0x36a620),this[_0x5d414c(0x168)]=new lt(_0x45a255,_0x36a620);const _0x205e40=new _0x39bcc8(_0x45a255);_0x205e40[_0x5d414c(0x171)][_0x5d414c(0x17d)]=_0x5d414c(0x176),_0x205e40[_0x5d414c(0x17b)]=_0x36a620[_0x5d414c(0x172)];const _0x1044bf={'tag':_0x5d414c(0x16e),'attributes':{'class':['ck',_0x5d414c(0x175)],'role':_0x5d414c(0x184),'tabindex':_0x58bb9a['to'](_0x5d414c(0x183),_0x36e2c8=>!!_0x36e2c8&&0x0),'aria-labelledby':_0x205e40['id'],'data-cke-tooltip-text':this[_0x5d414c(0x169)][_0x5d414c(0x172)],'data-cke-tooltip-position':_0x58bb9a['to'](_0x5d414c(0x16c)),'data-cke-tooltip-disabled':_0x58bb9a['to'](_0x5d414c(0x17e),_0x17346d=>!_0x17346d),'data-cke-tooltip-class':_0x5d414c(0x185)},'children':[this[_0x5d414c(0x169)],this[_0x5d414c(0x168)],_0x205e40]};_0x3b4881&&(_0x1044bf[_0x5d414c(0x17d)]=_0x5d414c(0x182),_0x1044bf['on']={'click':_0x58bb9a['to'](()=>this[_0x5d414c(0x174)](_0x5d414c(0x17c)))}),this[_0x5d414c(0x186)](_0x1044bf);}}class lt extends _0x5ee582{constructor(_0x4d94a9,_0x3d4b5d){const _0x1b4306=_0x4c38c2;super(_0x4d94a9),this[_0x1b4306(0x186)]({'tag':_0x1b4306(0x176),'attributes':{'class':['ck',_0x1b4306(0x179),_0x3d4b5d[_0x1b4306(0x181)][_0x1b4306(0x173)]()],'aria-hidden':_0x1b4306(0x167)}});}}
23
+ const _0x2426ee=_0xe919;(function(_0x142908,_0x76ddb6){const _0x1a1441=_0xe919,_0x304ff8=_0x142908();while(!![]){try{const _0x36a359=parseInt(_0x1a1441(0x14e))/0x1+-parseInt(_0x1a1441(0x14c))/0x2+parseInt(_0x1a1441(0x154))/0x3+-parseInt(_0x1a1441(0x146))/0x4+parseInt(_0x1a1441(0x155))/0x5+-parseInt(_0x1a1441(0x14d))/0x6*(-parseInt(_0x1a1441(0x14b))/0x7)+-parseInt(_0x1a1441(0x147))/0x8;if(_0x36a359===_0x76ddb6)break;else _0x304ff8['push'](_0x304ff8['shift']());}catch(_0x19bf25){_0x304ff8['push'](_0x304ff8['shift']());}}}(_0x8fb2,0x226d6));import{LabelView as _0x34c8f0,View as _0x3a7b7f}from'ckeditor5/src/ui.js';function _0xe919(_0x4d1e08,_0x2d91e9){const _0x8fb23d=_0x8fb2();return _0xe919=function(_0xe9193,_0x298157){_0xe9193=_0xe9193-0x146;let _0x4ec366=_0x8fb23d[_0xe9193];return _0x4ec366;},_0xe919(_0x4d1e08,_0x2d91e9);}import{UserView as _0x5824d0}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x8fb2(){const _0xe92acd=['7vHISDh','1678tvzWoX','1607070UEusFg','26162wClEGD','tooltipPosition','bindTemplate','execute','template','button','405705ApwrZJ','1296485OYrCUP','isFocusable','true','hasTooltip','name','set','listitem','userView','text','div','markerView','fire','ck-presence-list__list-item','setTemplate','span','getBackgroundColorClass','color','159084jfTgZa','4055320mmKRio','ck-presence-list__list-item__tooltip','tag','ck-presence-list__marker'];_0x8fb2=function(){return _0xe92acd;};return _0x8fb2();}export class PresenceInlineListItemView extends _0x3a7b7f{[_0x2426ee(0x15c)];[_0x2426ee(0x15f)];constructor(_0x470e49,_0x1b75f6,_0xbef3bd){const _0x172a8d=_0x2426ee;super(_0x470e49);const _0x51b469=this[_0x172a8d(0x150)];this[_0x172a8d(0x15a)](_0x172a8d(0x156),!0x1),this[_0x172a8d(0x15a)](_0x172a8d(0x158),!0x0),this[_0x172a8d(0x15a)](_0x172a8d(0x14f),''),this[_0x172a8d(0x15c)]=new _0x5824d0(_0x470e49,_0x1b75f6),this[_0x172a8d(0x15f)]=new ot(_0x470e49,_0x1b75f6);const _0x21ede9=new _0x34c8f0(_0x470e49);_0x21ede9[_0x172a8d(0x152)][_0x172a8d(0x149)]=_0x172a8d(0x163),_0x21ede9[_0x172a8d(0x15d)]=_0x1b75f6[_0x172a8d(0x159)];const _0xa17930={'tag':_0x172a8d(0x15e),'attributes':{'class':['ck',_0x172a8d(0x161)],'role':_0x172a8d(0x15b),'tabindex':_0x51b469['to'](_0x172a8d(0x156),_0x5069b6=>!!_0x5069b6&&0x0),'aria-labelledby':_0x21ede9['id'],'data-cke-tooltip-text':this[_0x172a8d(0x15c)][_0x172a8d(0x159)],'data-cke-tooltip-position':_0x51b469['to'](_0x172a8d(0x14f)),'data-cke-tooltip-disabled':_0x51b469['to'](_0x172a8d(0x158),_0x5bb854=>!_0x5bb854),'data-cke-tooltip-class':_0x172a8d(0x148)},'children':[this[_0x172a8d(0x15c)],this[_0x172a8d(0x15f)],_0x21ede9]};_0xbef3bd&&(_0xa17930[_0x172a8d(0x149)]=_0x172a8d(0x153),_0xa17930['on']={'click':_0x51b469['to'](()=>this[_0x172a8d(0x160)](_0x172a8d(0x151)))}),this[_0x172a8d(0x162)](_0xa17930);}}class ot extends _0x3a7b7f{constructor(_0x443867,_0x43b1ba){const _0x54e7a3=_0x2426ee;super(_0x443867),this[_0x54e7a3(0x162)]({'tag':_0x54e7a3(0x163),'attributes':{'class':['ck',_0x54e7a3(0x14a),_0x43b1ba[_0x54e7a3(0x165)][_0x54e7a3(0x164)]()],'aria-hidden':_0x54e7a3(0x157)}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3235(){const _0x570c93=['ck-presence-list__list','relatedTarget','.ck-presence-list__dropdown-list','presencelist:hide','104709AfswTt','9879732eOXgCw','change:hasPopup','list','presencelist:show','render','keystrokes','element','contains','items','hasPopup','querySelector','2250tMcdek','isExpanded','createCollection','1kIfCrE','setAttribute','5259192CVnXwH','57306yHYlMl','div','listenTo','130frEiAh','focus','removeAttribute','aria-expanded','fire','5kNOydh','35136YYpfRs','451824XLyjfo','set','1675202PJJqnR','.ck-balloon-panel_with-arrow','Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)','setTemplate','742TIgChu','Connected\x20users\x20list','bindTemplate'];_0x3235=function(){return _0x570c93;};return _0x3235();}const _0x3d1491=_0x21ad;(function(_0x493ca0,_0x296191){const _0x8f1b2f=_0x21ad,_0x2e197b=_0x493ca0();while(!![]){try{const _0x4ca391=-parseInt(_0x8f1b2f(0x135))/0x1*(parseInt(_0x8f1b2f(0x11b))/0x2)+parseInt(_0x8f1b2f(0x142))/0x3+parseInt(_0x8f1b2f(0x137))/0x4*(-parseInt(_0x8f1b2f(0x140))/0x5)+parseInt(_0x8f1b2f(0x138))/0x6*(parseInt(_0x8f1b2f(0x11f))/0x7)+parseInt(_0x8f1b2f(0x141))/0x8*(parseInt(_0x8f1b2f(0x132))/0x9)+-parseInt(_0x8f1b2f(0x13b))/0xa*(parseInt(_0x8f1b2f(0x126))/0xb)+parseInt(_0x8f1b2f(0x127))/0xc;if(_0x4ca391===_0x296191)break;else _0x2e197b['push'](_0x2e197b['shift']());}catch(_0xdb196d){_0x2e197b['push'](_0x2e197b['shift']());}}}(_0x3235,0xc54f3));import{View as _0x46af3f}from'ckeditor5/src/ui.js';function _0x21ad(_0x440064,_0x3f9546){const _0x3235dd=_0x3235();return _0x21ad=function(_0x21adb5,_0x440fa5){_0x21adb5=_0x21adb5-0x11b;let _0x3aced7=_0x3235dd[_0x21adb5];return _0x3aced7;},_0x21ad(_0x440064,_0x3f9546);}import{KeystrokeHandler as _0x145fd0}from'ckeditor5/src/utils.js';import{getTranslation as _0x17cf23}from'../../common-translations.js';export class PresenceInlineListView extends _0x46af3f{[_0x3d1491(0x12f)];[_0x3d1491(0x12c)];constructor(_0x102779){const _0x3cdf0d=_0x3d1491;super(_0x102779);const _0x8c0cd2=this[_0x3cdf0d(0x121)];this[_0x3cdf0d(0x12f)]=this[_0x3cdf0d(0x134)](),this[_0x3cdf0d(0x12c)]=new _0x145fd0(),this[_0x3cdf0d(0x143)]({'hasPopup':!0x1,'isExpanded':!0x1}),this[_0x3cdf0d(0x11e)]({'tag':_0x3cdf0d(0x139),'attributes':{'aria-haspopup':_0x8c0cd2['if'](_0x3cdf0d(0x130)),'aria-expanded':_0x8c0cd2['to'](_0x3cdf0d(0x133),_0x3962dd=>this[_0x3cdf0d(0x130)]&&String(_0x3962dd)),'aria-label':_0x8c0cd2['to'](_0x3cdf0d(0x130),_0x223001=>_0x17cf23(_0x102779,_0x223001?_0x3cdf0d(0x11d):_0x3cdf0d(0x120))),'role':_0x3cdf0d(0x129),'tabindex':_0x8c0cd2['to'](_0x3cdf0d(0x130),_0x29f059=>!!_0x29f059&&0x0),'class':['ck',_0x3cdf0d(0x122)]},'children':this[_0x3cdf0d(0x12f)],'on':{'mouseenter':_0x8c0cd2['to'](()=>this[_0x3cdf0d(0x13f)](_0x3cdf0d(0x12a))),'mouseleave':_0x8c0cd2['to'](_0x54b45a=>{const _0x469dbc=_0x3cdf0d,_0x11d884=_0x54b45a,_0x2fcdd8=document[_0x469dbc(0x131)](_0x469dbc(0x124)),_0xf2884a=document[_0x469dbc(0x131)](_0x469dbc(0x11c));_0x2fcdd8?.[_0x469dbc(0x12e)](_0x11d884[_0x469dbc(0x123)])||_0xf2884a?.[_0x469dbc(0x12e)](_0x11d884[_0x469dbc(0x123)])||this[_0x469dbc(0x13f)](_0x469dbc(0x125));})}}),this['on'](_0x3cdf0d(0x128),(_0x46509f,_0x65605d,_0xe811e7)=>{const _0x1a022b=_0x3cdf0d;this[_0x1a022b(0x12d)]&&(_0xe811e7?this[_0x1a022b(0x12d)][_0x1a022b(0x136)](_0x1a022b(0x13e),String(this[_0x1a022b(0x133)])):this[_0x1a022b(0x12d)][_0x1a022b(0x13d)](_0x1a022b(0x13e)));});}[_0x3d1491(0x13c)](){const _0x1a2345=_0x3d1491;this[_0x1a2345(0x12d)][_0x1a2345(0x13c)]();}[_0x3d1491(0x12b)](){const _0x32e1de=_0x3d1491;super[_0x32e1de(0x12b)](),this[_0x32e1de(0x12c)][_0x32e1de(0x13a)](this[_0x32e1de(0x12d)]);}}
23
+ const _0x565616=_0x4a14;(function(_0x555c63,_0x342619){const _0x308cce=_0x4a14,_0x1caf4f=_0x555c63();while(!![]){try{const _0x507629=-parseInt(_0x308cce(0xc8))/0x1+-parseInt(_0x308cce(0xbe))/0x2+parseInt(_0x308cce(0xab))/0x3*(-parseInt(_0x308cce(0xbc))/0x4)+-parseInt(_0x308cce(0xb6))/0x5*(-parseInt(_0x308cce(0xb8))/0x6)+parseInt(_0x308cce(0xb7))/0x7+-parseInt(_0x308cce(0xca))/0x8+-parseInt(_0x308cce(0xad))/0x9*(-parseInt(_0x308cce(0xc4))/0xa);if(_0x507629===_0x342619)break;else _0x1caf4f['push'](_0x1caf4f['shift']());}catch(_0x217772){_0x1caf4f['push'](_0x1caf4f['shift']());}}}(_0x48ea,0x9027a));import{View as _0x2c9b7e}from'ckeditor5/src/ui.js';function _0x4a14(_0x5c3627,_0x287ba7){const _0x48ea93=_0x48ea();return _0x4a14=function(_0x4a1450,_0x2e1b43){_0x4a1450=_0x4a1450-0xa5;let _0xd6b988=_0x48ea93[_0x4a1450];return _0xd6b988;},_0x4a14(_0x5c3627,_0x287ba7);}function _0x48ea(){const _0x1a306f=['presencelist:hide','4360nzKnZq','setTemplate','set','contains','357965mEzJmo','render','5851040OaqNPA','.ck-presence-list__dropdown-list','change:hasPopup','hasPopup','keystrokes','list','focus','removeAttribute','105AJoFDP','fire','31653KPkYoe','div','items','relatedTarget','setAttribute','aria-expanded','querySelector','bindTemplate','element','6495CoBQlM','3410379djweTK','3534trnxNA','isExpanded','presencelist:show','Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)','44376JLRMBl','.ck-balloon-panel_with-arrow','1435254OvVFlF','listenTo','ck-presence-list__list','Connected\x20users\x20list','createCollection'];_0x48ea=function(){return _0x1a306f;};return _0x48ea();}import{KeystrokeHandler as _0x1ab37e}from'ckeditor5/src/utils.js';import{getTranslation as _0x335b25}from'../../common-translations.js';export class PresenceInlineListView extends _0x2c9b7e{[_0x565616(0xaf)];[_0x565616(0xa7)];constructor(_0xdbe5ae){const _0x4c1282=_0x565616;super(_0xdbe5ae);const _0x3beebf=this[_0x4c1282(0xb4)];this[_0x4c1282(0xaf)]=this[_0x4c1282(0xc2)](),this[_0x4c1282(0xa7)]=new _0x1ab37e(),this[_0x4c1282(0xc6)]({'hasPopup':!0x1,'isExpanded':!0x1}),this[_0x4c1282(0xc5)]({'tag':_0x4c1282(0xae),'attributes':{'aria-haspopup':_0x3beebf['if'](_0x4c1282(0xa6)),'aria-expanded':_0x3beebf['to'](_0x4c1282(0xb9),_0x142ee3=>this[_0x4c1282(0xa6)]&&String(_0x142ee3)),'aria-label':_0x3beebf['to'](_0x4c1282(0xa6),_0x28d324=>_0x335b25(_0xdbe5ae,_0x28d324?_0x4c1282(0xbb):_0x4c1282(0xc1))),'role':_0x4c1282(0xa8),'tabindex':_0x3beebf['to'](_0x4c1282(0xa6),_0x214174=>!!_0x214174&&0x0),'class':['ck',_0x4c1282(0xc0)]},'children':this[_0x4c1282(0xaf)],'on':{'mouseenter':_0x3beebf['to'](()=>this[_0x4c1282(0xac)](_0x4c1282(0xba))),'mouseleave':_0x3beebf['to'](_0x2515ba=>{const _0x453d55=_0x4c1282,_0x249790=_0x2515ba,_0x4faa13=document[_0x453d55(0xb3)](_0x453d55(0xcb)),_0x58b362=document[_0x453d55(0xb3)](_0x453d55(0xbd));_0x4faa13?.[_0x453d55(0xc7)](_0x249790[_0x453d55(0xb0)])||_0x58b362?.[_0x453d55(0xc7)](_0x249790[_0x453d55(0xb0)])||this[_0x453d55(0xac)](_0x453d55(0xc3));})}}),this['on'](_0x4c1282(0xa5),(_0x2160f9,_0x43e1b8,_0x53632e)=>{const _0x286469=_0x4c1282;this[_0x286469(0xb5)]&&(_0x53632e?this[_0x286469(0xb5)][_0x286469(0xb1)](_0x286469(0xb2),String(this[_0x286469(0xb9)])):this[_0x286469(0xb5)][_0x286469(0xaa)](_0x286469(0xb2)));});}[_0x565616(0xa9)](){const _0x33f228=_0x565616;this[_0x33f228(0xb5)][_0x33f228(0xa9)]();}[_0x565616(0xc9)](){const _0x5d00f4=_0x565616;super[_0x5d00f4(0xc9)](),this[_0x5d00f4(0xa7)][_0x5d00f4(0xbf)](this[_0x5d00f4(0xb5)]);}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6cffd4=_0x186d;(function(_0x22423c,_0x324b7b){const _0x4c473a=_0x186d,_0x5dc012=_0x22423c();while(!![]){try{const _0x13971f=-parseInt(_0x4c473a(0x112))/0x1*(parseInt(_0x4c473a(0xcf))/0x2)+parseInt(_0x4c473a(0xe2))/0x3*(parseInt(_0x4c473a(0xbd))/0x4)+-parseInt(_0x4c473a(0x114))/0x5*(parseInt(_0x4c473a(0x124))/0x6)+-parseInt(_0x4c473a(0xe9))/0x7+parseInt(_0x4c473a(0xd0))/0x8*(-parseInt(_0x4c473a(0xc4))/0x9)+parseInt(_0x4c473a(0x106))/0xa*(-parseInt(_0x4c473a(0x122))/0xb)+parseInt(_0x4c473a(0x110))/0xc*(parseInt(_0x4c473a(0xf7))/0xd);if(_0x13971f===_0x324b7b)break;else _0x5dc012['push'](_0x5dc012['shift']());}catch(_0x24dbba){_0x5dc012['push'](_0x5dc012['shift']());}}}(_0x549b,0xbbe3c));import{Context as _0x35126c,ContextPlugin as _0x11a438}from'ckeditor5/src/core.js';import{CKEditorError as _0x182892}from'ckeditor5/src/utils.js';import{Users as _0x17181c}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsService as _0x3979c1,User as _0x4123ac}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x4902f3}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x243a75}from'../realtimecollaborativeediting/sessions.js';class s extends _0x11a438{static [_0x6cffd4(0x10d)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x3979c1)());[_0x6cffd4(0xe6)];static get[_0x6cffd4(0xee)](){const _0x3c540f=_0x6cffd4;return[_0x4902f3,_0x3c540f(0xe1),_0x243a75,_0x17181c];}static get[_0x6cffd4(0xec)](){const _0x41486b=_0x6cffd4;return _0x41486b(0x11c);}static get[_0x6cffd4(0x10f)](){return!0x0;}static get[_0x6cffd4(0x118)](){return!0x0;}constructor(_0x22b6b8){const _0x38604e=_0x6cffd4;super(_0x22b6b8),this[_0x38604e(0xe6)]=new Map();}async[_0x6cffd4(0xf8)](){const _0x253c99=_0x6cffd4,_0x4dfca3=this[_0x253c99(0xd6)],_0x3a72d8=_0x4dfca3[_0x253c99(0xd8)][_0x253c99(0xea)](_0x253c99(0xe1));if(_0x4dfca3[_0x253c99(0xd8)][_0x253c99(0xea)](_0x4902f3)[_0x253c99(0xc9)](this),_0x3a72d8[_0x253c99(0xdd)]={'addCommentThread':async({channelId:_0x2f61c,threadId:_0x4cd919,comments:_0x4150df,resolvedAt:_0x54d1c4,resolvedBy:_0x1d136a,context:_0xa725e7,attributes:_0x1655b2})=>{const _0x3e0a66=_0x253c99,_0x33db4b=await this[_0x3e0a66(0xf1)](_0x2f61c)[_0x3e0a66(0xe7)]({'commentThreadId':_0x4cd919,'comments':_0x4150df[_0x3e0a66(0xf3)](_0xfec6f9=>function(_0xa07091,_0x2983d9,_0x46c604){const _0x2f1f51=_0x3e0a66;return{'commentThreadId':_0x46c604,'commentId':_0xa07091[_0x2f1f51(0x116)],'userId':_0xa07091[_0x2f1f51(0xde)],'content':_0xa07091[_0x2f1f51(0xcb)],'documentId':_0x2983d9,'createdAt':_0xa07091[_0x2f1f51(0xca)],'attributes':_0xa07091[_0x2f1f51(0xd1)]||{}};}(_0xfec6f9,_0x2f61c,_0x4cd919)),'resolvedAt':_0x54d1c4,'resolvedBy':_0x1d136a,'context':_0xa725e7,'attributes':_0x1655b2})[_0x3e0a66(0x105)](Y);return{'threadId':_0x33db4b[_0x3e0a66(0xc1)],'comments':_0x33db4b[_0x3e0a66(0x113)]};},'getCommentThread':async({channelId:_0x496b19,threadId:_0x651488})=>{const _0x156eb4=_0x253c99,_0x358353=await this[_0x156eb4(0xf1)](_0x496b19)[_0x156eb4(0xd7)](_0x651488)[_0x156eb4(0x105)](Y);return _0x358353[_0x156eb4(0xce)]?null:(await this[_0x156eb4(0xf9)]([_0x358353]),{'threadId':_0x358353[_0x156eb4(0xc1)],'comments':_0x358353[_0x156eb4(0x113)][_0x156eb4(0xf3)](st),'context':_0x358353[_0x156eb4(0xd6)],'resolvedAt':_0x358353[_0x156eb4(0xfa)],'resolvedBy':_0x358353[_0x156eb4(0x102)],'attributes':_0x358353[_0x156eb4(0xd1)]||{}});},'updateCommentThread':async({channelId:_0x41352b,threadId:_0xd7ddc3,context:_0x8ecbea,unlinkedAt:_0x16041f,attributes:_0x465365})=>this[_0x253c99(0xf1)](_0x41352b)[_0x253c99(0xbe)]({'commentThreadId':_0xd7ddc3,'context':_0x8ecbea,'attributes':_0x465365,'unlinkedAt':_0x16041f})[_0x253c99(0x105)](nt)[_0x253c99(0x105)](Y),'resolveCommentThread':async({channelId:_0x4e6857,threadId:_0x45c5dc})=>{const _0x3f5b8c=_0x253c99,_0x2e6d66=await this[_0x3f5b8c(0xf1)](_0x4e6857)[_0x3f5b8c(0x101)](_0x45c5dc)[_0x3f5b8c(0x105)](nt)[_0x3f5b8c(0x105)](Y);return{'threadId':_0x2e6d66[_0x3f5b8c(0xc1)],'resolvedAt':_0x2e6d66[_0x3f5b8c(0xfa)],'resolvedBy':_0x2e6d66[_0x3f5b8c(0x102)]};},'reopenCommentThread':async({channelId:_0x2b1cfe,threadId:_0x489044})=>this[_0x253c99(0xf1)](_0x2b1cfe)[_0x253c99(0x11b)](_0x489044)[_0x253c99(0x105)](nt)[_0x253c99(0x105)](Y),'removeCommentThread':({channelId:_0xfe5567,threadId:_0x186540})=>this[_0x253c99(0xf1)](_0xfe5567)[_0x253c99(0xbc)](_0x186540)[_0x253c99(0x105)](nt)[_0x253c99(0x105)](Y),'addComment':({channelId:_0x4a865b,threadId:_0x563a60,commentId:_0x3565e0,content:_0x522508,attributes:_0x2c7bf5})=>this[_0x253c99(0xf1)](_0x4a865b)[_0x253c99(0xc0)](_0x563a60,_0x3565e0,_0x522508,_0x2c7bf5)[_0x253c99(0x105)](Y),'updateComment':({channelId:_0x2dd198,threadId:_0x2950cd,commentId:_0x314163,content:_0x12f9fd,attributes:_0x401ecf})=>this[_0x253c99(0xf1)](_0x2dd198)[_0x253c99(0xc8)](_0x2950cd,_0x314163,_0x12f9fd,_0x401ecf)[_0x253c99(0x105)](nt)[_0x253c99(0x105)](Y),'removeComment':({channelId:_0x46071f,threadId:_0x3ee04d,commentId:_0x529832})=>this[_0x253c99(0xf1)](_0x46071f)[_0x253c99(0xeb)](_0x3ee04d,_0x529832)[_0x253c99(0x105)](nt)[_0x253c99(0x105)](Y)},_0x4dfca3 instanceof _0x35126c){const _0x15340e=_0x4dfca3[_0x253c99(0xc3)][_0x253c99(0xea)](_0x253c99(0xcc)),_0x171bd7=_0x4dfca3[_0x253c99(0xd8)][_0x253c99(0xea)](_0x243a75);await this[_0x253c99(0xff)](_0x15340e);const _0x107fa9=await this[_0x253c99(0xe6)][_0x253c99(0xea)](_0x15340e)[_0x253c99(0x10c)]();this[_0x253c99(0xc5)](_0x171bd7,_0x253c99(0x107)+_0x15340e,(_0x16d6fe,{session:_0x2ceb91})=>{const _0x1af6c7=_0x253c99;_0x2ceb91['id']===_0x171bd7[_0x1af6c7(0x11d)]&&(_0x16d6fe[_0x1af6c7(0xdb)](),this[_0x1af6c7(0xd6)][_0x1af6c7(0xd8)][_0x1af6c7(0xea)](_0x1af6c7(0x119))[_0x1af6c7(0x100)](_0x2ceb91[_0x1af6c7(0xc7)],_0x15340e));}),_0x171bd7[_0x253c99(0xf6)](_0x15340e,_0x107fa9);}}async[_0x6cffd4(0xff)](_0x172548){const _0x485f24=_0x6cffd4;if(this[_0x485f24(0xe6)][_0x485f24(0xf5)](_0x172548))throw new _0x182892(_0x485f24(0xdc),null,{'channelId':_0x172548});const _0x5079a4=this[_0x485f24(0xd6)][_0x485f24(0xd8)][_0x485f24(0xea)](_0x485f24(0xe1)),_0x194c80=new s[(_0x485f24(0x10d))](_0x172548);this[_0x485f24(0xe6)][_0x485f24(0xf4)](_0x172548,_0x194c80),this[_0x485f24(0xc5)](_0x194c80,_0x485f24(0xe0),(_0x463746,_0x152757)=>{const _0x255e86=_0x485f24,{commentThreadId:_0x212324,documentId:_0x2b68da,context:_0x4aa561,attributes:_0x6c9ace,resolvedAt:_0xccdeaf,resolvedBy:_0x36c429,comments:_0x29815b}=_0x152757;_0x5079a4[_0x255e86(0xd7)](_0x212324)||_0x5079a4[_0x255e86(0xe7)]({'threadId':_0x212324,'channelId':_0x2b68da,'comments':_0x29815b?_0x29815b[_0x255e86(0xf3)](st):[],'context':_0x4aa561,'attributes':_0x6c9ace,'resolvedAt':_0xccdeaf,'resolvedBy':_0x36c429,'isFromAdapter':!0x0});}),this[_0x485f24(0xc5)](_0x194c80,_0x485f24(0xc2),(_0x5b05d5,{commentThreadId:_0x192f90,documentId:_0x36b208,context:_0x1cfcaa,unlinkedAt:_0x246133,attributes:_0x24c340})=>{const _0x45c215=_0x485f24;_0x5079a4[_0x45c215(0xd7)](_0x192f90)&&_0x5079a4[_0x45c215(0xbe)]({'threadId':_0x192f90,'channelId':_0x36b208,'context':_0x1cfcaa,'unlinkedAt':_0x246133,'attributes':_0x24c340,'isFromAdapter':!0x0});}),this[_0x485f24(0xc5)](_0x194c80,_0x485f24(0xc6),(_0x42c00d,{commentThreadId:_0x173dcb,resolvedBy:_0x14b161,resolvedAt:_0x48b797})=>{const _0x5bcc3d=_0x485f24,_0x51a354=_0x5079a4[_0x5bcc3d(0xd7)](_0x173dcb);_0x51a354&&_0x51a354[_0x5bcc3d(0xfb)]({'resolvedBy':_0x14b161,'resolvedAt':_0x48b797,'isFromAdapter':!0x0});}),this[_0x485f24(0xc5)](_0x194c80,_0x485f24(0xfe),(_0xf0c7c9,{commentThreadId:_0x2780ea})=>{const _0x23de1d=_0x485f24,_0x2cecc9=_0x5079a4[_0x23de1d(0xd7)](_0x2780ea);_0x2cecc9&&_0x2cecc9[_0x23de1d(0xbf)]({'isFromAdapter':!0x0});}),this[_0x485f24(0xc5)](_0x194c80,_0x485f24(0xed),(_0x508bc7,{commentThreadId:_0x3691b7})=>{const _0x47c06d=_0x485f24,_0x4d3610=_0x5079a4[_0x47c06d(0xd7)](_0x3691b7);_0x4d3610&&_0x4d3610[_0x47c06d(0x117)]({'isFromAdapter':!0x0});}),this[_0x485f24(0xc5)](_0x194c80,_0x485f24(0xfc),(_0x4fe096,_0x16baa4)=>{const _0xa9ead1=_0x485f24,_0x5e571c=_0x16baa4[_0xa9ead1(0xc1)],_0x5ac33b=_0x5079a4[_0xa9ead1(0xd7)](_0x5e571c);_0x5ac33b&&_0x5ac33b[_0xa9ead1(0xc0)]({...st(_0x16baa4),'isFromAdapter':!0x0});}),this[_0x485f24(0xc5)](_0x194c80,_0x485f24(0x108),(_0x2cf765,{commentThreadId:_0x53d183,commentId:_0xa5bcac,content:_0x6095b4,attributes:_0x5c0517})=>{const _0x372ff7=_0x485f24,_0x4891dd=_0x5079a4[_0x372ff7(0xd7)](_0x53d183);if(_0x4891dd){const _0x436fcc=_0x4891dd[_0x372ff7(0x10a)](_0xa5bcac);_0x436fcc&&_0x436fcc[_0x372ff7(0xd5)]({'content':_0x6095b4,'attributes':_0x5c0517,'isFromAdapter':!0x0});}}),this[_0x485f24(0xc5)](_0x194c80,_0x485f24(0x123),(_0x236f39,{commentThreadId:_0x91c4e6,commentId:_0x1b1738})=>{const _0x33c342=_0x485f24,_0xe12fcf=_0x5079a4[_0x33c342(0xd7)](_0x91c4e6);if(_0xe12fcf){const _0x3f7960=_0xe12fcf[_0x33c342(0x10a)](_0x1b1738);_0x3f7960&&_0x3f7960[_0x33c342(0x117)]({'isFromAdapter':!0x0});}}),await this[_0x485f24(0xef)](_0x172548);}[_0x6cffd4(0x115)](){const _0x41e251=_0x6cffd4;if(this[_0x41e251(0xd6)]instanceof _0x35126c){const _0x4d8e9f=this[_0x41e251(0xd6)][_0x41e251(0xc3)][_0x41e251(0xea)](_0x41e251(0xcc));this[_0x41e251(0x121)](_0x4d8e9f);}}[_0x6cffd4(0x121)](_0x2d82f0){const _0x2ba987=_0x6cffd4;if(!this[_0x2ba987(0xe6)][_0x2ba987(0xf5)](_0x2d82f0))throw new _0x182892(_0x2ba987(0xe5),null,{'channelId':_0x2d82f0});this[_0x2ba987(0xf1)](_0x2d82f0)[_0x2ba987(0x11f)](),this[_0x2ba987(0xe6)][_0x2ba987(0x120)](_0x2d82f0);}async[_0x6cffd4(0xe8)](){const _0x32fe2b=_0x6cffd4;for(const _0x199752 of this[_0x32fe2b(0xe6)][_0x32fe2b(0xf0)]())await this[_0x32fe2b(0xef)](_0x199752);if(this[_0x32fe2b(0xd6)]instanceof _0x35126c){const _0x368a50=this[_0x32fe2b(0xd6)][_0x32fe2b(0xc3)][_0x32fe2b(0xea)](_0x32fe2b(0xcc)),_0x58ce25=this[_0x32fe2b(0xd6)][_0x32fe2b(0xd8)][_0x32fe2b(0xea)](_0x243a75);_0x58ce25[_0x32fe2b(0x109)](_0x368a50);const _0x5b66bb=await this[_0x32fe2b(0xe6)][_0x32fe2b(0xea)](_0x368a50)[_0x32fe2b(0x10c)]();_0x58ce25[_0x32fe2b(0xf6)](_0x368a50,_0x5b66bb);}}async[_0x6cffd4(0xef)](_0x552eb5){const _0x2d7497=_0x6cffd4,{connection:_0x1ed295}=this[_0x2d7497(0xd6)][_0x2d7497(0xd8)][_0x2d7497(0xea)](_0x4902f3),_0x489c22=this[_0x2d7497(0xd6)][_0x2d7497(0xd8)][_0x2d7497(0xea)](_0x2d7497(0xe1)),_0x58d77d=this[_0x2d7497(0xe6)][_0x2d7497(0xea)](_0x552eb5),_0x3ae4c5=await _0x58d77d[_0x2d7497(0xcd)](_0x1ed295);await this[_0x2d7497(0xf9)](_0x3ae4c5);const _0x334113=new Set(Array[_0x2d7497(0x11e)](_0x489c22[_0x2d7497(0x111)]({'channelId':_0x552eb5}),_0x34ef24=>_0x34ef24['id']));for(const _0x147dd5 of _0x3ae4c5)_0x147dd5[_0x2d7497(0xce)]||_0x334113[_0x2d7497(0x120)](_0x147dd5[_0x2d7497(0xc1)]);for(const _0x28eb03 of _0x334113)_0x489c22[_0x2d7497(0xd7)](_0x28eb03)[_0x2d7497(0x117)]({'isFromAdapter':!0x0});for(const _0x499634 of _0x3ae4c5){let _0x26dc96=_0x489c22[_0x2d7497(0xd7)](_0x499634[_0x2d7497(0xc1)]);const {commentThreadId:_0x46b134,context:_0x56495a,attributes:_0x4d9d89,resolvedBy:_0x3ec4e2,resolvedAt:_0x449949,unlinkedAt:_0x5a8467,deletedAt:_0x7e7d71}=_0x499634;if(_0x7e7d71)continue;_0x26dc96||(_0x26dc96=_0x489c22[_0x2d7497(0xe7)]({'channelId':_0x552eb5,'threadId':_0x46b134,'context':_0x56495a,'attributes':_0x4d9d89||{},'resolvedBy':_0x3ec4e2,'resolvedAt':_0x449949,'unlinkedAt':_0x5a8467,'isFromAdapter':!0x0}));const _0x3684a1=new Set(Array[_0x2d7497(0x11e)](_0x26dc96[_0x2d7497(0x113)],_0x3b1ba2=>_0x3b1ba2['id']));for(const _0x42f49a of _0x499634[_0x2d7497(0x113)])_0x3684a1[_0x2d7497(0x120)](_0x42f49a[_0x2d7497(0x116)]);for(const _0x45cd5b of _0x3684a1)_0x26dc96[_0x2d7497(0x10a)](_0x45cd5b)[_0x2d7497(0x117)]({'isFromAdapter':!0x0});for(const _0x23696f of _0x499634[_0x2d7497(0x113)]){const _0x18a234=_0x26dc96[_0x2d7497(0x10a)](_0x23696f[_0x2d7497(0x116)]);_0x18a234?_0x18a234[_0x2d7497(0xcb)]!==_0x23696f[_0x2d7497(0xcb)]&&_0x18a234[_0x2d7497(0xd5)]({'content':_0x23696f[_0x2d7497(0xcb)],'isFromAdapter':!0x0}):_0x26dc96[_0x2d7497(0xc0)](Object[_0x2d7497(0xe4)](st(_0x23696f),{'isFromAdapter':!0x0}));}}}[_0x6cffd4(0xf1)](_0x5ed4e3){const _0x2e7d85=_0x6cffd4;if(!this[_0x2e7d85(0xe6)][_0x2e7d85(0xf5)](_0x5ed4e3))throw new _0x182892(_0x2e7d85(0xe3),null,{'channelId':_0x5ed4e3});return this[_0x2e7d85(0xe6)][_0x2e7d85(0xea)](_0x5ed4e3);}async[_0x6cffd4(0xf9)](_0x38ec3e){const _0x533176=_0x6cffd4,_0x63fb24=this[_0x533176(0xd6)][_0x533176(0xd8)][_0x533176(0xea)](_0x17181c),{connection:_0x3e420f}=this[_0x533176(0xd6)][_0x533176(0xd8)][_0x533176(0xea)](_0x4902f3),_0x505c59=new Set();for(const {resolvedBy:_0x26c4bb,comments:_0x109e8c}of _0x38ec3e){_0x26c4bb&&!_0x63fb24[_0x533176(0x104)](_0x26c4bb)&&_0x505c59[_0x533176(0x10b)](_0x26c4bb);for(const {userId:_0x2ae6d7}of _0x109e8c)_0x63fb24[_0x533176(0x104)](_0x2ae6d7)||_0x505c59[_0x533176(0x10b)](_0x2ae6d7);}if(0x0===_0x505c59[_0x533176(0x11a)])return;const _0x2ab49c=await _0x4123ac[_0x533176(0xf2)](_0x3e420f,Array[_0x533176(0x11e)](_0x505c59));for(const _0xd37322 of _0x2ab49c)_0x63fb24[_0x533176(0x104)](_0xd37322['id'])||_0x63fb24[_0x533176(0xd4)](_0xd37322);}}function _0x549b(){const _0x1de479=['unregister','getComment','add','getConnectedSessions','CommentsService','cloud-services-internal-error:\x20Request\x20timeout.','isOfficialPlugin','2664KEGXDP','getCommentThreads','61062lJVYpj','comments','369680YECzLX','destroy','commentId','remove','isPremiumPlugin','Permissions','size','reopenCommentThread','CloudServicesCommentsAdapter','mySessionId','from','disconnect','delete','_terminateService','11342122bplaCS','commentRemoved','66dskxWC','removeCommentThread','5473848CRmViE','updateCommentThread','reopen','addComment','commentThreadId','commentThreadUpdated','config','47844yFELWG','listenTo','commentThreadResolved','permissions','updateComment','addToReconnectionStack','createdAt','content','collaboration.channelId','connect','deletedAt','2LUoUwk','1504essVMh','attributes','userId','404','addUser','update','context','getCommentThread','plugins','message','startsWith','off','cloudservicescommentsadapter-connect-already-connected','adapter','authorId','cloud-services-internal-error:\x20Not\x20connected.','commentThreadAdded','CommentsRepository','3Wenbrc','cloudservicescommentsadapter-service-not-exist','assign','cloudservicescommentsadapter-disconnect-not-exist','_services','addCommentThread','reconnect','10667594vkijJT','get','removeComment','pluginName','commentThreadRemoved','requires','_connectService','keys','_getService','getMany','map','set','has','register','224276XoPUcK','init','_fetchMissingUsersForThreads','resolvedAt','resolve','commentAdded','code','commentThreadReopened','_setUpService','setPermissions','resolveCommentThread','resolvedBy','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','getUser','catch','10spCjSc','sessionAdd:','commentUpdated'];_0x549b=function(){return _0x1de479;};return _0x549b();}export{s as CloudServicesCommentsAdapter};function _0x186d(_0x43becf,_0x429efc){const _0x549b77=_0x549b();return _0x186d=function(_0x186d8e,_0x4d5626){_0x186d8e=_0x186d8e-0xbc;let _0x345ff0=_0x549b77[_0x186d8e];return _0x345ff0;},_0x186d(_0x43becf,_0x429efc);}async function nt(_0x2f0dde){const _0x520515=_0x6cffd4;if(_0x520515(0xd3)!==_0x2f0dde[_0x520515(0xfd)])throw _0x2f0dde;}function Y(_0x4486f8){const _0x23e8b1=_0x6cffd4;if((_0x18571d=_0x4486f8)[_0x23e8b1(0xd9)][_0x23e8b1(0xda)](_0x23e8b1(0x103))||_0x18571d[_0x23e8b1(0xd9)][_0x23e8b1(0xda)](_0x23e8b1(0xdf))||_0x18571d[_0x23e8b1(0xd9)][_0x23e8b1(0xda)](_0x23e8b1(0x10e)))return new Promise(()=>{});var _0x18571d;throw _0x4486f8;}function st(_0x5a2ae4){const _0x21ce80=_0x6cffd4;return{'threadId':_0x5a2ae4[_0x21ce80(0xc1)],'commentId':_0x5a2ae4[_0x21ce80(0x116)],'content':_0x5a2ae4[_0x21ce80(0xcb)],'createdAt':_0x5a2ae4[_0x21ce80(0xca)],'authorId':_0x5a2ae4[_0x21ce80(0xd2)],'attributes':_0x5a2ae4[_0x21ce80(0xd1)]||{}};}
23
+ const _0x401576=_0x10b3;(function(_0x156a38,_0x539906){const _0x96074e=_0x10b3,_0x56390c=_0x156a38();while(!![]){try{const _0x19a02b=-parseInt(_0x96074e(0x22d))/0x1*(-parseInt(_0x96074e(0x1ed))/0x2)+-parseInt(_0x96074e(0x203))/0x3+-parseInt(_0x96074e(0x23f))/0x4*(parseInt(_0x96074e(0x216))/0x5)+parseInt(_0x96074e(0x224))/0x6+parseInt(_0x96074e(0x202))/0x7+-parseInt(_0x96074e(0x233))/0x8+-parseInt(_0x96074e(0x232))/0x9;if(_0x19a02b===_0x539906)break;else _0x56390c['push'](_0x56390c['shift']());}catch(_0x320800){_0x56390c['push'](_0x56390c['shift']());}}}(_0x5ae7,0xa0e50));import{Context as _0x4d9792,ContextPlugin as _0x4cd080}from'ckeditor5/src/core.js';import{CKEditorError as _0x1326c9}from'ckeditor5/src/utils.js';import{Users as _0x391c8f}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x10b3(_0xf93ef0,_0x42cd0a){const _0x5ae718=_0x5ae7();return _0x10b3=function(_0x10b39d,_0x3ba95a){_0x10b39d=_0x10b39d-0x1e0;let _0x39de06=_0x5ae718[_0x10b39d];return _0x39de06;},_0x10b3(_0xf93ef0,_0x42cd0a);}import{CommentsService as _0x21659a,User as _0x4f1c62}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x2f1d55}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x1064a4}from'../realtimecollaborativeediting/sessions.js';class s extends _0x4cd080{static [_0x401576(0x215)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x21659a)());[_0x401576(0x222)];static get[_0x401576(0x20b)](){const _0x28d9fd=_0x401576;return[_0x2f1d55,_0x28d9fd(0x1e5),_0x1064a4,_0x391c8f];}static get[_0x401576(0x22e)](){const _0x30bf71=_0x401576;return _0x30bf71(0x209);}static get[_0x401576(0x21c)](){return!0x0;}static get[_0x401576(0x228)](){return!0x0;}constructor(_0x52ef4b){const _0x470b91=_0x401576;super(_0x52ef4b),this[_0x470b91(0x222)]=new Map();}async[_0x401576(0x1ee)](){const _0x585584=_0x401576,_0x8c008b=this[_0x585584(0x22b)],_0x5ab8ce=_0x8c008b[_0x585584(0x1fd)][_0x585584(0x1e4)](_0x585584(0x1e5));if(_0x8c008b[_0x585584(0x1fd)][_0x585584(0x1e4)](_0x2f1d55)[_0x585584(0x1e1)](this),_0x5ab8ce[_0x585584(0x1ea)]={'addCommentThread':async({channelId:_0x40fd57,threadId:_0x1c5b66,comments:_0x4f9fdf,resolvedAt:_0x59c2cb,resolvedBy:_0x417d42,context:_0x2673b5,attributes:_0x39496a})=>{const _0x3e71d6=_0x585584,_0xc3a74e=await this[_0x3e71d6(0x21b)](_0x40fd57)[_0x3e71d6(0x231)]({'commentThreadId':_0x1c5b66,'comments':_0x4f9fdf[_0x3e71d6(0x205)](_0x338678=>function(_0x65f778,_0x5ad7d8,_0x4309a8){const _0x4778a1=_0x3e71d6;return{'commentThreadId':_0x4309a8,'commentId':_0x65f778[_0x4778a1(0x22a)],'userId':_0x65f778[_0x4778a1(0x206)],'content':_0x65f778[_0x4778a1(0x240)],'documentId':_0x5ad7d8,'createdAt':_0x65f778[_0x4778a1(0x219)],'attributes':_0x65f778[_0x4778a1(0x21f)]||{}};}(_0x338678,_0x40fd57,_0x1c5b66)),'resolvedAt':_0x59c2cb,'resolvedBy':_0x417d42,'context':_0x2673b5,'attributes':_0x39496a})[_0x3e71d6(0x1fa)](k);return{'threadId':_0xc3a74e[_0x3e71d6(0x242)],'comments':_0xc3a74e[_0x3e71d6(0x20c)]};},'getCommentThread':async({channelId:_0x14015d,threadId:_0x5d0a4d})=>{const _0x5a403f=_0x585584,_0x502c8c=await this[_0x5a403f(0x21b)](_0x14015d)[_0x5a403f(0x20e)](_0x5d0a4d)[_0x5a403f(0x1fa)](k);return _0x502c8c[_0x5a403f(0x1f7)]?null:(await this[_0x5a403f(0x207)]([_0x502c8c]),{'threadId':_0x502c8c[_0x5a403f(0x242)],'comments':_0x502c8c[_0x5a403f(0x20c)][_0x5a403f(0x205)](B),'context':_0x502c8c[_0x5a403f(0x22b)],'resolvedAt':_0x502c8c[_0x5a403f(0x230)],'resolvedBy':_0x502c8c[_0x5a403f(0x239)],'attributes':_0x502c8c[_0x5a403f(0x21f)]||{}});},'updateCommentThread':async({channelId:_0x40c095,threadId:_0xe9bc2f,context:_0x498381,unlinkedAt:_0x4a1e6d,attributes:_0x3a0d3f})=>this[_0x585584(0x21b)](_0x40c095)[_0x585584(0x1e0)]({'commentThreadId':_0xe9bc2f,'context':_0x498381,'attributes':_0x3a0d3f,'unlinkedAt':_0x4a1e6d})[_0x585584(0x1fa)](F)[_0x585584(0x1fa)](k),'resolveCommentThread':async({channelId:_0x3afe6f,threadId:_0x9e8d30})=>{const _0x213901=_0x585584,_0x484dcd=await this[_0x213901(0x21b)](_0x3afe6f)[_0x213901(0x1fc)](_0x9e8d30)[_0x213901(0x1fa)](F)[_0x213901(0x1fa)](k);return{'threadId':_0x484dcd[_0x213901(0x242)],'resolvedAt':_0x484dcd[_0x213901(0x230)],'resolvedBy':_0x484dcd[_0x213901(0x239)]};},'reopenCommentThread':async({channelId:_0x5633b1,threadId:_0x339bb8})=>this[_0x585584(0x21b)](_0x5633b1)[_0x585584(0x21a)](_0x339bb8)[_0x585584(0x1fa)](F)[_0x585584(0x1fa)](k),'removeCommentThread':({channelId:_0x275b2c,threadId:_0x121f72})=>this[_0x585584(0x21b)](_0x275b2c)[_0x585584(0x23d)](_0x121f72)[_0x585584(0x1fa)](F)[_0x585584(0x1fa)](k),'addComment':({channelId:_0x1b5417,threadId:_0x39c694,commentId:_0x16bb37,content:_0x56bde0,attributes:_0x358402})=>this[_0x585584(0x21b)](_0x1b5417)[_0x585584(0x1e8)](_0x39c694,_0x16bb37,_0x56bde0,_0x358402)[_0x585584(0x1fa)](k),'updateComment':({channelId:_0x711a1e,threadId:_0x5f03c,commentId:_0x433cdb,content:_0x5a6bf4,attributes:_0x2e612b})=>this[_0x585584(0x21b)](_0x711a1e)[_0x585584(0x220)](_0x5f03c,_0x433cdb,_0x5a6bf4,_0x2e612b)[_0x585584(0x1fa)](F)[_0x585584(0x1fa)](k),'removeComment':({channelId:_0x344622,threadId:_0x496ff5,commentId:_0x8df93b})=>this[_0x585584(0x21b)](_0x344622)[_0x585584(0x22c)](_0x496ff5,_0x8df93b)[_0x585584(0x1fa)](F)[_0x585584(0x1fa)](k)},_0x8c008b instanceof _0x4d9792){const _0x213ae6=_0x8c008b[_0x585584(0x1e6)][_0x585584(0x1e4)](_0x585584(0x226)),_0x1df859=_0x8c008b[_0x585584(0x1fd)][_0x585584(0x1e4)](_0x1064a4);await this[_0x585584(0x23e)](_0x213ae6);const _0x5c98c8=await this[_0x585584(0x222)][_0x585584(0x1e4)](_0x213ae6)[_0x585584(0x20a)]();this[_0x585584(0x1f1)](_0x1df859,_0x585584(0x236)+_0x213ae6,(_0x14172d,{session:_0x2955f8})=>{const _0xab885c=_0x585584;_0x2955f8['id']===_0x1df859[_0xab885c(0x20f)]&&(_0x14172d[_0xab885c(0x212)](),this[_0xab885c(0x22b)][_0xab885c(0x1fd)][_0xab885c(0x1e4)](_0xab885c(0x1f3))[_0xab885c(0x1f8)](_0x2955f8[_0xab885c(0x234)],_0x213ae6));}),_0x1df859[_0x585584(0x1f5)](_0x213ae6,_0x5c98c8);}}async[_0x401576(0x23e)](_0x4690a1){const _0x3d689c=_0x401576;if(this[_0x3d689c(0x222)][_0x3d689c(0x1f2)](_0x4690a1))throw new _0x1326c9(_0x3d689c(0x210),null,{'channelId':_0x4690a1});const _0x13cbc0=this[_0x3d689c(0x22b)][_0x3d689c(0x1fd)][_0x3d689c(0x1e4)](_0x3d689c(0x1e5)),_0x261bc0=new s[(_0x3d689c(0x215))](_0x4690a1);this[_0x3d689c(0x222)][_0x3d689c(0x217)](_0x4690a1,_0x261bc0),this[_0x3d689c(0x1f1)](_0x261bc0,_0x3d689c(0x1f4),(_0x28c2dc,_0x4d8110)=>{const _0x4d2307=_0x3d689c,{commentThreadId:_0x30a65b,documentId:_0x22b3dc,context:_0x5828a0,attributes:_0x435e2b,resolvedAt:_0x490fe9,resolvedBy:_0x3d8200,comments:_0x3b9957}=_0x4d8110;_0x13cbc0[_0x4d2307(0x20e)](_0x30a65b)||_0x13cbc0[_0x4d2307(0x231)]({'threadId':_0x30a65b,'channelId':_0x22b3dc,'comments':_0x3b9957?_0x3b9957[_0x4d2307(0x205)](B):[],'context':_0x5828a0,'attributes':_0x435e2b,'resolvedAt':_0x490fe9,'resolvedBy':_0x3d8200,'isFromAdapter':!0x0});}),this[_0x3d689c(0x1f1)](_0x261bc0,_0x3d689c(0x241),(_0x1d6b97,{commentThreadId:_0x1143c9,documentId:_0x33c41a,context:_0x5256f2,unlinkedAt:_0x55ce7a,attributes:_0x2d2e9c})=>{const _0x369dbb=_0x3d689c;_0x13cbc0[_0x369dbb(0x20e)](_0x1143c9)&&_0x13cbc0[_0x369dbb(0x1e0)]({'threadId':_0x1143c9,'channelId':_0x33c41a,'context':_0x5256f2,'unlinkedAt':_0x55ce7a,'attributes':_0x2d2e9c,'isFromAdapter':!0x0});}),this[_0x3d689c(0x1f1)](_0x261bc0,_0x3d689c(0x243),(_0x58d6fd,{commentThreadId:_0xfb1845,resolvedBy:_0x21d411,resolvedAt:_0x156536})=>{const _0x3144c9=_0x3d689c,_0x34e3be=_0x13cbc0[_0x3144c9(0x20e)](_0xfb1845);_0x34e3be&&_0x34e3be[_0x3144c9(0x23a)]({'resolvedBy':_0x21d411,'resolvedAt':_0x156536,'isFromAdapter':!0x0});}),this[_0x3d689c(0x1f1)](_0x261bc0,_0x3d689c(0x1e2),(_0x2642a7,{commentThreadId:_0xbeeb45})=>{const _0x2e131d=_0x3d689c,_0xe36a77=_0x13cbc0[_0x2e131d(0x20e)](_0xbeeb45);_0xe36a77&&_0xe36a77[_0x2e131d(0x21e)]({'isFromAdapter':!0x0});}),this[_0x3d689c(0x1f1)](_0x261bc0,_0x3d689c(0x204),(_0x2222e9,{commentThreadId:_0x1f8cd0})=>{const _0x42d4fc=_0x3d689c,_0x141125=_0x13cbc0[_0x42d4fc(0x20e)](_0x1f8cd0);_0x141125&&_0x141125[_0x42d4fc(0x1e7)]({'isFromAdapter':!0x0});}),this[_0x3d689c(0x1f1)](_0x261bc0,_0x3d689c(0x22f),(_0x3df278,_0x26d38b)=>{const _0x49290e=_0x3d689c,_0x176297=_0x26d38b[_0x49290e(0x242)],_0x443918=_0x13cbc0[_0x49290e(0x20e)](_0x176297);_0x443918&&_0x443918[_0x49290e(0x1e8)]({...B(_0x26d38b),'isFromAdapter':!0x0});}),this[_0x3d689c(0x1f1)](_0x261bc0,_0x3d689c(0x1fe),(_0x4019f5,{commentThreadId:_0x2192de,commentId:_0x25883d,content:_0x463314,attributes:_0xeafdfb})=>{const _0xc06eb9=_0x3d689c,_0xaaee27=_0x13cbc0[_0xc06eb9(0x20e)](_0x2192de);if(_0xaaee27){const _0x48f289=_0xaaee27[_0xc06eb9(0x229)](_0x25883d);_0x48f289&&_0x48f289[_0xc06eb9(0x23b)]({'content':_0x463314,'attributes':_0xeafdfb,'isFromAdapter':!0x0});}}),this[_0x3d689c(0x1f1)](_0x261bc0,_0x3d689c(0x1fb),(_0x50363c,{commentThreadId:_0x40133a,commentId:_0x2fd725})=>{const _0x1d19d8=_0x3d689c,_0x25fe52=_0x13cbc0[_0x1d19d8(0x20e)](_0x40133a);if(_0x25fe52){const _0x24787c=_0x25fe52[_0x1d19d8(0x229)](_0x2fd725);_0x24787c&&_0x24787c[_0x1d19d8(0x1e7)]({'isFromAdapter':!0x0});}}),await this[_0x3d689c(0x221)](_0x4690a1);}[_0x401576(0x20d)](){const _0x34e86e=_0x401576;if(this[_0x34e86e(0x22b)]instanceof _0x4d9792){const _0x38d83a=this[_0x34e86e(0x22b)][_0x34e86e(0x1e6)][_0x34e86e(0x1e4)](_0x34e86e(0x226));this[_0x34e86e(0x237)](_0x38d83a);}}[_0x401576(0x237)](_0x34b204){const _0x5c8ccb=_0x401576;if(!this[_0x5c8ccb(0x222)][_0x5c8ccb(0x1f2)](_0x34b204))throw new _0x1326c9(_0x5c8ccb(0x21d),null,{'channelId':_0x34b204});this[_0x5c8ccb(0x21b)](_0x34b204)[_0x5c8ccb(0x1f6)](),this[_0x5c8ccb(0x222)][_0x5c8ccb(0x1ff)](_0x34b204);}async[_0x401576(0x1f0)](){const _0x494c5b=_0x401576;for(const _0x6c548 of this[_0x494c5b(0x222)][_0x494c5b(0x23c)]())await this[_0x494c5b(0x221)](_0x6c548);if(this[_0x494c5b(0x22b)]instanceof _0x4d9792){const _0x211f03=this[_0x494c5b(0x22b)][_0x494c5b(0x1e6)][_0x494c5b(0x1e4)](_0x494c5b(0x226)),_0x3dc4dd=this[_0x494c5b(0x22b)][_0x494c5b(0x1fd)][_0x494c5b(0x1e4)](_0x1064a4);_0x3dc4dd[_0x494c5b(0x200)](_0x211f03);const _0x51dad7=await this[_0x494c5b(0x222)][_0x494c5b(0x1e4)](_0x211f03)[_0x494c5b(0x20a)]();_0x3dc4dd[_0x494c5b(0x1f5)](_0x211f03,_0x51dad7);}}async[_0x401576(0x221)](_0x20cdd7){const _0x3ed5d5=_0x401576,{connection:_0x5b8c24}=this[_0x3ed5d5(0x22b)][_0x3ed5d5(0x1fd)][_0x3ed5d5(0x1e4)](_0x2f1d55),_0x4f4d05=this[_0x3ed5d5(0x22b)][_0x3ed5d5(0x1fd)][_0x3ed5d5(0x1e4)](_0x3ed5d5(0x1e5)),_0x545a7c=this[_0x3ed5d5(0x222)][_0x3ed5d5(0x1e4)](_0x20cdd7),_0x2c44bb=await _0x545a7c[_0x3ed5d5(0x1ec)](_0x5b8c24);await this[_0x3ed5d5(0x207)](_0x2c44bb);const _0x437205=new Set(Array[_0x3ed5d5(0x1ef)](_0x4f4d05[_0x3ed5d5(0x211)]({'channelId':_0x20cdd7}),_0x211dcb=>_0x211dcb['id']));for(const _0x421d1a of _0x2c44bb)_0x421d1a[_0x3ed5d5(0x1f7)]||_0x437205[_0x3ed5d5(0x1ff)](_0x421d1a[_0x3ed5d5(0x242)]);for(const _0x2c18a5 of _0x437205)_0x4f4d05[_0x3ed5d5(0x20e)](_0x2c18a5)[_0x3ed5d5(0x1e7)]({'isFromAdapter':!0x0});for(const _0x1dd0dc of _0x2c44bb){let _0xf35402=_0x4f4d05[_0x3ed5d5(0x20e)](_0x1dd0dc[_0x3ed5d5(0x242)]);const {commentThreadId:_0x1d3fdc,context:_0x589c63,attributes:_0x4f7e88,resolvedBy:_0x338797,resolvedAt:_0x653b9f,unlinkedAt:_0x18ceb9,deletedAt:_0x211c29}=_0x1dd0dc;if(_0x211c29)continue;_0xf35402||(_0xf35402=_0x4f4d05[_0x3ed5d5(0x231)]({'channelId':_0x20cdd7,'threadId':_0x1d3fdc,'context':_0x589c63,'attributes':_0x4f7e88||{},'resolvedBy':_0x338797,'resolvedAt':_0x653b9f,'unlinkedAt':_0x18ceb9,'isFromAdapter':!0x0}));const _0x2a62bd=new Set(Array[_0x3ed5d5(0x1ef)](_0xf35402[_0x3ed5d5(0x20c)],_0x28307b=>_0x28307b['id']));for(const _0x2915d8 of _0x1dd0dc[_0x3ed5d5(0x20c)])_0x2a62bd[_0x3ed5d5(0x1ff)](_0x2915d8[_0x3ed5d5(0x22a)]);for(const _0x49c1f1 of _0x2a62bd)_0xf35402[_0x3ed5d5(0x229)](_0x49c1f1)[_0x3ed5d5(0x1e7)]({'isFromAdapter':!0x0});for(const _0x5a8fde of _0x1dd0dc[_0x3ed5d5(0x20c)]){const _0x519f85=_0xf35402[_0x3ed5d5(0x229)](_0x5a8fde[_0x3ed5d5(0x22a)]);_0x519f85?_0x519f85[_0x3ed5d5(0x240)]!==_0x5a8fde[_0x3ed5d5(0x240)]&&_0x519f85[_0x3ed5d5(0x23b)]({'content':_0x5a8fde[_0x3ed5d5(0x240)],'isFromAdapter':!0x0}):_0xf35402[_0x3ed5d5(0x1e8)](Object[_0x3ed5d5(0x1e9)](B(_0x5a8fde),{'isFromAdapter':!0x0}));}}}[_0x401576(0x21b)](_0x426494){const _0x2bca64=_0x401576;if(!this[_0x2bca64(0x222)][_0x2bca64(0x1f2)](_0x426494))throw new _0x1326c9(_0x2bca64(0x1e3),null,{'channelId':_0x426494});return this[_0x2bca64(0x222)][_0x2bca64(0x1e4)](_0x426494);}async[_0x401576(0x207)](_0x88b5c6){const _0x1b705d=_0x401576,_0x4dbab2=this[_0x1b705d(0x22b)][_0x1b705d(0x1fd)][_0x1b705d(0x1e4)](_0x391c8f),{connection:_0x300abd}=this[_0x1b705d(0x22b)][_0x1b705d(0x1fd)][_0x1b705d(0x1e4)](_0x2f1d55),_0x4cb72f=new Set();for(const {resolvedBy:_0x41ff6f,comments:_0x1bdb1c}of _0x88b5c6){_0x41ff6f&&!_0x4dbab2[_0x1b705d(0x238)](_0x41ff6f)&&_0x4cb72f[_0x1b705d(0x208)](_0x41ff6f);for(const {userId:_0x5f38e2}of _0x1bdb1c)_0x4dbab2[_0x1b705d(0x238)](_0x5f38e2)||_0x4cb72f[_0x1b705d(0x208)](_0x5f38e2);}if(0x0===_0x4cb72f[_0x1b705d(0x227)])return;const _0x283ee5=await _0x4f1c62[_0x1b705d(0x213)](_0x300abd,Array[_0x1b705d(0x1ef)](_0x4cb72f));for(const _0x4b1d4a of _0x283ee5)_0x4dbab2[_0x1b705d(0x238)](_0x4b1d4a['id'])||_0x4dbab2[_0x1b705d(0x225)](_0x4b1d4a);}}export{s as CloudServicesCommentsAdapter};function _0x5ae7(){const _0x447b46=['reconnect','listenTo','has','Permissions','commentThreadAdded','register','disconnect','deletedAt','setPermissions','code','catch','commentRemoved','resolveCommentThread','plugins','commentUpdated','delete','unregister','message','8577555JonhYW','3825636uaVivD','commentThreadRemoved','map','authorId','_fetchMissingUsersForThreads','add','CloudServicesCommentsAdapter','getConnectedSessions','requires','comments','destroy','getCommentThread','mySessionId','cloudservicescommentsadapter-connect-already-connected','getCommentThreads','off','getMany','404','CommentsService','289890TqPblA','set','userId','createdAt','reopenCommentThread','_getService','isOfficialPlugin','cloudservicescommentsadapter-disconnect-not-exist','reopen','attributes','updateComment','_connectService','_services','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','2628822hTBARz','addUser','collaboration.channelId','size','isPremiumPlugin','getComment','commentId','context','removeComment','806423UyCloQ','pluginName','commentAdded','resolvedAt','addCommentThread','2646990gLQwKq','1004984itFUva','permissions','cloud-services-internal-error:\x20Request\x20timeout.','sessionAdd:','_terminateService','getUser','resolvedBy','resolve','update','keys','removeCommentThread','_setUpService','8ogjzOf','content','commentThreadUpdated','commentThreadId','commentThreadResolved','cloud-services-internal-error:\x20Not\x20connected.','updateCommentThread','addToReconnectionStack','commentThreadReopened','cloudservicescommentsadapter-service-not-exist','get','CommentsRepository','config','remove','addComment','assign','adapter','startsWith','connect','2iHSeUX','init','from'];_0x5ae7=function(){return _0x447b46;};return _0x5ae7();}async function F(_0x5a5cd0){const _0x5372c5=_0x401576;if(_0x5372c5(0x214)!==_0x5a5cd0[_0x5372c5(0x1f9)])throw _0x5a5cd0;}function k(_0x1f7244){const _0x2301dc=_0x401576;if((_0x56b04b=_0x1f7244)[_0x2301dc(0x201)][_0x2301dc(0x1eb)](_0x2301dc(0x223))||_0x56b04b[_0x2301dc(0x201)][_0x2301dc(0x1eb)](_0x2301dc(0x244))||_0x56b04b[_0x2301dc(0x201)][_0x2301dc(0x1eb)](_0x2301dc(0x235)))return new Promise(()=>{});var _0x56b04b;throw _0x1f7244;}function B(_0x20671a){const _0x222db7=_0x401576;return{'threadId':_0x20671a[_0x222db7(0x242)],'commentId':_0x20671a[_0x222db7(0x22a)],'content':_0x20671a[_0x222db7(0x240)],'createdAt':_0x20671a[_0x222db7(0x219)],'authorId':_0x20671a[_0x222db7(0x218)],'attributes':_0x20671a[_0x222db7(0x21f)]||{}};}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x129844=_0xadc0;(function(_0x4216ff,_0x343618){const _0x2b3e99=_0xadc0,_0x22b643=_0x4216ff();while(!![]){try{const _0x1b3c19=parseInt(_0x2b3e99(0x1d6))/0x1+-parseInt(_0x2b3e99(0x1b9))/0x2*(parseInt(_0x2b3e99(0x19d))/0x3)+-parseInt(_0x2b3e99(0x15e))/0x4+parseInt(_0x2b3e99(0x165))/0x5+-parseInt(_0x2b3e99(0x1ae))/0x6*(parseInt(_0x2b3e99(0x1cb))/0x7)+parseInt(_0x2b3e99(0x117))/0x8*(-parseInt(_0x2b3e99(0x11a))/0x9)+parseInt(_0x2b3e99(0xff))/0xa;if(_0x1b3c19===_0x343618)break;else _0x22b643['push'](_0x22b643['shift']());}catch(_0x3a018d){_0x22b643['push'](_0x22b643['shift']());}}}(_0x4e17,0xb05f1));import{Plugin as _0x12b20c,PendingActions as _0x5337d1}from'ckeditor5/src/core.js';import{CKEditorError as _0x45f620,version as _0x345174,uid as _0x4cedf3}from'ckeditor5/src/utils.js';import{Notification as _0x53064e}from'ckeditor5/src/ui.js';import{transformOperationSets as _0x1f6470,NoOperation as _0x256457,InsertOperation as _0x32274d,MarkerOperation as _0x11b8f1,RootAttributeOperation as _0x3a91bc,OperationFactory as _0x15d9e6,History as _0x5400d5}from'ckeditor5/src/engine.js';import{WebSocketGateway as _0x3d02a5}from'./websocketgateway.js';import{Sessions as _0x50fc72}from'./sessions.js';import{UserMarkers as _0x4078fb}from'./usermarkers.js';import{getTranslation as _0x2d3827}from'../common-translations.js';import{Compressor as _0x40c5fd}from'@ckeditor/ckeditor5-operations-compressor';function _0x4e17(){const _0x1c719d=['enqueueChange','_isDisconnection','_offset','isEnabled','register','differ','_setPendingAction','change:_isPendingUpdate','4447768oaSKhx','clone','change:range','getMany','_hasSelectionChanged','size','_compressor','6084280aToVKy','requires','_updateServerHistory','_crash','define','finally','realtimecollaborationclient-init-service-incorrect-server-operation','rtc-offline','suppressErrorInCollaboration','setPermissions','_handleReceivedOperations','_baseBufferDelay','_decompressOperations','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','realtimecollaborationclient-init-non-existent-root','start','rootName','baseVersion','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','multi-root-editor-root-attributes-no-root','view','_service','roots','newRange','createUserMarkerOperations','_knownRootNames','stop','directChange','__className','realtimecollaborationclient-init-service-internal-error','_isPendingUpdate','high','cloudDocumentVersion','bind','currentDocumentSession','loadRoot','Permissions','change:hasDomSelection','round','_handleReconnectionResponse','_isConnected','lastSyncVersion','realtimecollaborationclient','createPositionFromPath','config','catch','_isAttached','version','fromJSON','CommentsOnly','reconnection:\x20flushed\x20session','add','_shouldSendUpdate','isPremiumPlugin','lastOperationId','871266XecORe','_isInit','reconnect','_ignoredOperations','addOperation','wereChangesApplied','409','_authorId','_handleReconnectionError','addRoot','change:_isEditingAllowed','realtimecollaborationclient-init-connection-failed','_disconnectService','includes','getDocumentDetails','mySessionId','_connectAfterSessionHasBeenFlushed','6KrLEhn','$root','listenTo','_saveOperationInBuffer','getUser','then','path','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.','connection','_initSessionsHandling','affectsData','6kNfYUo','_loadRoot','cs:removeUser','realtimecollaborationclient-error','_connectService','set','_lastSyncedOperationId','locale','_isEditingAllowed','_handleExternalOperations','Synchronization\x20issue','get','attributes','_fetchMissingUsers','message','_compressOperations','disconnect','_operationToId','3017245rrWwUl','end','_applyOperationsSet','targetPosition','enableReadOnlyMode','applyOperation','initData','_bufferRootLoad','insert','getOperationAuthor','sendOperations','626794gszYPg','position','isDocumentOperation','removeFromReconnectionStack','_knownOperations','addToReconnectionStack','code','toJSON','_sendBufferedOperationsDelayed','collaboration.channelId','type','_shouldSendSelectionUpdate','disconnected','_addKnownRoot','entries','document','rtc-destroyed','_getAffectedRoot','InsertOperation','_bufferedOperations','markers','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.','metadata','isUndoneOperation','_lastServerVersion','sessionAdd:','remove','createRange','batch','RealTimeCollaborationClient','slice','model','off','unregister','_currentBufferDelay','_initThrowingOnDataSet','channelSessions','document:write','isReadOnly','Notification','forEach','selection','getConnectedSessions','_waitUntilSynced','offset','realtimecollaborationclient-sendbufferedoperations','lastOperationAcceptedAt','20808030buPJcg','sessionId','realtimecollaborationclient-init-session-connection-error','_handleInitialConnectionData','addUser','editing','real-time-collaboration','editor','wasUndone','reset','state','history','_sendBufferedOperations','pluginName','getIdOfTheLastOperation','ready','_clearPendingAction','startsWith','cloud-services-internal-error:\x20Not\x20connected.','realtimecollaborationclient-init-document-already-initialized','from','keys','_setUpDataInit','_handleServerResponse','8HvpwYo','affectedSelectable','isOfficialPlugin','7090137CRdJNT','length','collaboration','plugins','rootsAttributes','decompress','CollaborativeEditingService','_getOperationsFromInitData','getOperations','userId','parse','404','data','getRoot','PENDING_ACTION_SENDING_DATA','operationsReceived','_document','_hasSynchronizationProblem','map','filter','return','showWarning','cloud-services-internal-error:\x20Request\x20timeout.','cloudServices.bundleVersion','error','apply','_disconnectionOperations','disableReadOnlyMode','serverHistory','push','createRoot','_channelId','lastDocumentSession','has','stopListening','createdAt','destroy','_handleSendingSelectionMarkers','createPositionAt','connect','addRootAttribute','realtimecollaborationclient-handleserverresponse','string','collaboration-missing-channelid','_pendingAction','move','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','root','setIdForTheLastOperation','_isLoaded','permissions','_refreshUserSelectionMarkers','marker','_sendBufferedOperationsDelayId','init','compress','sessionCreatedAt','_operationIdentifier','connected','fire'];_0x4e17=function(){return _0x1c719d;};return _0x4e17();}import{Users as _0x4e66c4}from'ckeditor5-collaboration/src/collaboration-core.js';import{User as _0x30fc99,CollaborativeEditingService as _0x553327}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let H=0x1;class l extends _0x12b20c{static [_0x129844(0x120)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x553327)());[_0x129844(0x158)];[_0x129844(0x100)];[_0x129844(0x136)];[_0x129844(0x139)];[_0x129844(0x17b)];[_0x129844(0x12a)];[_0x129844(0x164)];[_0x129844(0x1e9)];[_0x129844(0x1da)];[_0x129844(0x17f)];[_0x129844(0x146)];[_0x129844(0x162)];[_0x129844(0x14f)];[_0x129844(0x170)];[_0x129844(0xf2)];[_0x129844(0x1bf)];[_0x129844(0x134)];[_0x129844(0x153)];static get[_0x129844(0x166)](){return[_0x3d02a5,_0x50fc72,_0x4078fb,_0x5337d1,_0x4e66c4,_0x53064e];}static get[_0x129844(0x10c)](){const _0x247a79=_0x129844;return _0x247a79(0xed);}static get[_0x129844(0x119)](){return!0x0;}static get[_0x129844(0x19b)](){return!0x0;}get[_0x129844(0x186)](){const _0x549aa1=_0x129844;return this[_0x549aa1(0xe8)]+this[_0x549aa1(0x158)];}get[_0x129844(0xe8)](){const _0x449d54=_0x129844;return this[_0x449d54(0x136)][_0x449d54(0x195)]-this[_0x449d54(0x158)];}get[_0x129844(0x18f)](){const _0x14050b=_0x129844,_0x312993=this[_0x14050b(0x136)][_0x14050b(0x122)]();for(let _0x51c304=_0x312993[_0x14050b(0x11b)]-0x1;_0x51c304>=0x0;_0x51c304--){const _0x2d485d=_0x312993[_0x51c304];if(!this[_0x14050b(0x134)][_0x14050b(0x13b)](_0x2d485d))return _0x2d485d[_0x14050b(0x177)]+0x1-this[_0x14050b(0x158)];}return 0x0;}constructor(_0x68deb1){const _0x31fcae=_0x129844;if(super(_0x68deb1),this[_0x31fcae(0x158)]=0x0,this[_0x31fcae(0x100)]=null,this[_0x31fcae(0x136)]=new _0x5400d5(),this[_0x31fcae(0x106)][_0x31fcae(0x192)][_0x31fcae(0x169)](_0x31fcae(0x11c),{}),this[_0x31fcae(0x139)]=this[_0x31fcae(0x106)][_0x31fcae(0x192)][_0x31fcae(0x1c4)](_0x31fcae(0x1df)),!this[_0x31fcae(0x139)])throw new _0x45f620(_0x31fcae(0x145),this);const _0x3e7143=_0x68deb1[_0x31fcae(0x192)][_0x31fcae(0x1c4)](_0x31fcae(0x131))||_0x345174;this[_0x31fcae(0x17b)]=new l[(_0x31fcae(0x120))](_0x3e7143,this[_0x31fcae(0x139)]),this[_0x31fcae(0x12a)]=this[_0x31fcae(0x106)][_0x31fcae(0xef)][_0x31fcae(0x1e5)],this[_0x31fcae(0x164)]=new _0x40c5fd(),this[_0x31fcae(0x1e9)]=[],this[_0x31fcae(0x1da)]=new WeakSet(),this[_0x31fcae(0x17f)]=new Set(),this[_0x31fcae(0x1be)](_0x31fcae(0x184),!0x1),this[_0x31fcae(0x1be)](_0x31fcae(0x12b),!0x1),this[_0x31fcae(0x146)]=null,this[_0x31fcae(0x162)]=!0x1,this[_0x31fcae(0x14f)]=null,this[_0x31fcae(0x170)]=0x12c,this[_0x31fcae(0xf2)]=this[_0x31fcae(0x170)],this[_0x31fcae(0x1bf)]=null,this[_0x31fcae(0x134)]=new WeakSet(),this[_0x31fcae(0x153)]=new F(this[_0x31fcae(0x134)]);}[_0x129844(0x150)](){const _0x5572fe=_0x129844,_0xf0abbe=this[_0x5572fe(0x106)],_0x347225=_0xf0abbe[_0x5572fe(0x11d)][_0x5572fe(0x1c4)](_0x4e66c4),_0x37f5af=_0xf0abbe[_0x5572fe(0x11d)][_0x5572fe(0x1c4)](_0x3d02a5);this[_0x5572fe(0x1b0)](_0x347225,_0x5572fe(0x1d4),(_0x49c96a,_0xbbd9c8)=>{const _0xb6f82e=_0x5572fe,_0x40478b=_0xbbd9c8[0x0];_0x40478b[_0xb6f82e(0x1a4)]&&(_0x49c96a[_0xb6f82e(0x12e)]=_0x347225[_0xb6f82e(0x1b2)](_0x40478b[_0xb6f82e(0x1a4)]),_0x49c96a[_0xb6f82e(0x180)]()),null===_0x40478b[_0xb6f82e(0x1a4)]&&(_0x49c96a[_0xb6f82e(0x12e)]=null,_0x49c96a[_0xb6f82e(0x180)]());},{'priority':_0x5572fe(0x185)}),this[_0x5572fe(0x1b0)](_0xf0abbe[_0x5572fe(0xef)][_0x5572fe(0x1e5)][_0x5572fe(0xf9)],_0x5572fe(0x160),(_0x34dd7b,_0x13e33c)=>{const _0xf9b5c8=_0x5572fe;_0x13e33c[_0xf9b5c8(0x181)]&&this[_0xf9b5c8(0x14d)]();}),this[_0x5572fe(0x1b0)](_0xf0abbe[_0x5572fe(0x104)][_0x5572fe(0x17a)],_0x5572fe(0x18b),()=>{const _0x2bd5b1=_0x5572fe;this[_0x2bd5b1(0x14d)]();}),this[_0x5572fe(0xf3)](),_0xf0abbe[_0x5572fe(0xef)]['on'](_0x5572fe(0x1d0),(_0x5f25de,_0x49b9b7)=>{const _0x48fb5a=_0x5572fe,_0x165354=_0x49b9b7[0x0];_0x165354[_0x48fb5a(0x1d8)]&&(this[_0x48fb5a(0x1b1)](_0x165354),this[_0x48fb5a(0x19a)]()&&this[_0x48fb5a(0x1de)]());}),this[_0x5572fe(0x115)](),this[_0x5572fe(0x187)](_0x5572fe(0x1c1))['to'](_0x37f5af,_0x5572fe(0x109),this,_0x5572fe(0x12b),(_0x556c55,_0x428656)=>_0x5572fe(0x154)===_0x556c55&&!_0x428656),this['on'](_0x5572fe(0x1a7),()=>{const _0x5bc368=_0x5572fe;this[_0x5bc368(0x1c1)]?_0xf0abbe[_0x5bc368(0x135)](_0x5bc368(0x16c)):_0xf0abbe[_0x5bc368(0x1cf)](_0x5bc368(0x16c));}),this[_0x5572fe(0x1c1)]?_0xf0abbe[_0x5572fe(0x135)](_0x5572fe(0x16c)):_0xf0abbe[_0x5572fe(0x1cf)](_0x5572fe(0x16c)),this[_0x5572fe(0x1be)](_0x5572fe(0x18e),!0x1);}async[_0x129844(0x19f)](){const _0x10cc4c=_0x129844,_0x577a58=this[_0x10cc4c(0x106)][_0x10cc4c(0x11d)][_0x10cc4c(0x1c4)](_0x50fc72),_0xa31146=this[_0x10cc4c(0x106)][_0x10cc4c(0x11d)][_0x10cc4c(0x1c4)](_0x3d02a5);try{this[_0x10cc4c(0x184)]=!0x0,_0x577a58[_0x10cc4c(0xf1)](this[_0x10cc4c(0x139)]);const _0x19b436=await this[_0x10cc4c(0x17b)][_0x10cc4c(0x19f)](_0xa31146[_0x10cc4c(0x1b6)],this[_0x10cc4c(0x18f)]);await this[_0x10cc4c(0x18d)](_0x19b436)&&(this[_0x10cc4c(0x184)]=!0x1,this[_0x10cc4c(0x10f)]());const _0x1aa07a=await this[_0x10cc4c(0x17b)][_0x10cc4c(0xfa)]();_0x577a58[_0x10cc4c(0x15a)](this[_0x10cc4c(0x139)],_0x1aa07a),this[_0x10cc4c(0x13f)](),this[_0x10cc4c(0x18e)]=!0x0;}catch(_0x81afad){if(function(_0x3b8514){const _0x3e8300=_0x10cc4c;return _0x3e8300(0x125)===_0x3b8514[_0x3e8300(0x1dc)];}(_0x81afad)&&this[_0x10cc4c(0x100)])await this[_0x10cc4c(0x1ad)]();else{if(function(_0x5e0fe5){const _0x4a31ca=_0x10cc4c;return _0x4a31ca(0x1a3)===_0x5e0fe5[_0x4a31ca(0x1dc)];}(_0x81afad)){const _0x39f7b6=_0x2d3827(this[_0x10cc4c(0x106)][_0x10cc4c(0x1c0)],_0x10cc4c(0x173));this[_0x10cc4c(0x1a5)](_0x39f7b6);}else{if(!(_0x81afad instanceof V))throw _0x81afad;this[_0x10cc4c(0x1a5)]();}}}}[_0x129844(0x13e)](){const _0x27ae7d=_0x129844,_0x8d7c6d=this[_0x27ae7d(0x106)][_0x27ae7d(0x11d)][_0x27ae7d(0x1c4)](_0x3d02a5),_0x1bd2e6=this[_0x27ae7d(0x106)][_0x27ae7d(0x11d)][_0x27ae7d(0x1c4)](_0x50fc72);this[_0x27ae7d(0x106)][_0x27ae7d(0x1cf)](_0x27ae7d(0x1e6)),_0x1bd2e6[_0x27ae7d(0xf4)][_0x27ae7d(0x13b)](this[_0x27ae7d(0x139)])&&_0x1bd2e6[_0x27ae7d(0xf1)](this[_0x27ae7d(0x139)]),_0x8d7c6d[_0x27ae7d(0x1d9)](this),this[_0x27ae7d(0x1a9)](),super[_0x27ae7d(0x13e)]();}async[_0x129844(0x18d)](_0x561635){const _0x184546=_0x129844;if(this[_0x184546(0x100)]!==_0x561635[_0x184546(0x100)]&&this[_0x184546(0x1bf)]!==_0x561635[_0x184546(0x19c)])throw new V();return this[_0x184546(0x100)]=_0x561635[_0x184546(0x100)],this[_0x184546(0x116)]([],{..._0x561635,'wereChangesApplied':!0x1,'data':_0x561635[_0x184546(0x126)]},_0x184546(0x19f));}async[_0x129844(0x1bd)](_0x45e09e,_0x87b575=!0x1){const _0x5e027d=_0x129844,{connection:_0xbd38c3}=this[_0x5e027d(0x106)][_0x5e027d(0x11d)][_0x5e027d(0x1c4)](_0x3d02a5);l[_0x5e027d(0x120)][_0x5e027d(0xfa)](_0xbd38c3,this[_0x5e027d(0x139)])[_0x5e027d(0x1b3)](_0x3c9540=>this[_0x5e027d(0x1b7)](_0x3c9540))[_0x5e027d(0x193)](_0x2af4ac=>{const _0x34f3ce=_0x5e027d;this[_0x34f3ce(0x168)](_0x34f3ce(0x101),_0x2af4ac);}),this[_0x5e027d(0x1b0)](this[_0x5e027d(0x17b)],_0x5e027d(0x129),this[_0x5e027d(0x16f)][_0x5e027d(0x187)](this)),this[_0x5e027d(0x1b0)](this[_0x5e027d(0x17b)],_0x5e027d(0x132),(_0x21afc5,_0x1ec02d)=>{const _0x4a8a0d=_0x5e027d;this[_0x4a8a0d(0x168)](_0x4a8a0d(0x183),_0x1ec02d);}),this[_0x5e027d(0x1b0)](this[_0x5e027d(0x17b)],_0x5e027d(0x1e2),()=>{const _0x11e32b=_0x5e027d;this[_0x11e32b(0x18e)]=!0x1;});const _0x519d8e=this[_0x5e027d(0x153)][_0x5e027d(0x10d)](_0x45e09e);this[_0x5e027d(0x184)]=!0x0;const _0x30d08f=await this[_0x5e027d(0x17b)][_0x5e027d(0x141)](_0xbd38c3,this[_0x5e027d(0x1c8)](_0x45e09e),_0x519d8e);if(this[_0x5e027d(0x100)]=_0x30d08f[_0x5e027d(0x100)],_0x87b575){if(!_0x30d08f[_0x5e027d(0x1a2)])return void this[_0x5e027d(0x1a5)]();this[_0x5e027d(0x184)]=!0x1,this[_0x5e027d(0x10f)](),this[_0x5e027d(0x136)][_0x5e027d(0x108)](),this[_0x5e027d(0x158)]=_0x30d08f[_0x5e027d(0xfc)],this[_0x5e027d(0x136)][_0x5e027d(0x195)]=this[_0x5e027d(0x158)],await this[_0x5e027d(0x116)](_0x45e09e,_0x30d08f,_0x5e027d(0x198));}else await this[_0x5e027d(0x102)](_0x30d08f,_0x45e09e);this[_0x5e027d(0x13f)](),this[_0x5e027d(0x18e)]=!0x0;}[_0x129844(0x13f)](){const _0x9c7dcf=_0x129844,_0x5e0571=this[_0x9c7dcf(0x106)][_0x9c7dcf(0x11d)][_0x9c7dcf(0x1c4)](_0x50fc72),_0x898abb=this[_0x9c7dcf(0x106)][_0x9c7dcf(0x11d)][_0x9c7dcf(0x1c4)](_0x4078fb),_0x52f369=_0x5e0571[_0x9c7dcf(0xf4)][_0x9c7dcf(0x1c4)](this[_0x9c7dcf(0x139)]);_0x52f369&&_0x52f369[_0x9c7dcf(0x11b)]>0x1?_0x898abb[_0x9c7dcf(0x17e)]():this[_0x9c7dcf(0x1b0)](_0x5e0571,_0x9c7dcf(0xe9)+this[_0x9c7dcf(0x139)],()=>{const _0x4258b0=_0x9c7dcf;0x2===_0x5e0571[_0x4258b0(0xf4)][_0x4258b0(0x1c4)](this[_0x4258b0(0x139)])[_0x4258b0(0x11b)]&&_0x898abb[_0x4258b0(0x17e)]();});}async[_0x129844(0x16f)](_0xe88bf3,_0x2e262d,_0x3c1978,_0x164cc4){const _0x1c5526=_0x129844;if(!this[_0x1c5526(0x184)]&&this[_0x1c5526(0x12a)][_0x1c5526(0x195)]==_0x2e262d){const _0x2acfa2=this[_0x1c5526(0x171)](_0x3c1978,_0x164cc4);await this[_0x1c5526(0x1c6)](_0x2acfa2),this[_0x1c5526(0x1c2)](_0x2acfa2,_0x2e262d,_0x3c1978[_0x1c5526(0x19c)])||this[_0x1c5526(0x168)](_0x1c5526(0x16b));}}async[_0x129844(0x1ad)](){const _0x3053d5=_0x129844;this[_0x3053d5(0x1a9)]();const {locale:_0x1bf9bb}=this[_0x3053d5(0x106)];let _0x234836;try{_0x234836=await this[_0x3053d5(0x17b)][_0x3053d5(0x1ab)]();}catch{const _0x2259ce=_0x2d3827(_0x1bf9bb,_0x3053d5(0x178));return void this[_0x3053d5(0x1a5)](_0x2259ce);}const _0x5d716c=_0x234836[_0x3053d5(0x188)]||_0x234836[_0x3053d5(0x13a)];if(this[_0x3053d5(0x1bf)]!==_0x5d716c[_0x3053d5(0x19c)]){const _0x5aca0a=_0x2d3827(_0x1bf9bb,_0x3053d5(0x1b5));return void this[_0x3053d5(0x1a5)](_0x5aca0a);}await this[_0x3053d5(0x1bd)](this[_0x3053d5(0x106)][_0x3053d5(0xef)][_0x3053d5(0x1e5)][_0x3053d5(0x10a)][_0x3053d5(0x122)](),!0x0);}[_0x129844(0x1a9)](){const _0x49d6d2=_0x129844;this[_0x49d6d2(0x17b)][_0x49d6d2(0x1c9)](),this[_0x49d6d2(0x1e9)]=[],clearTimeout(this[_0x49d6d2(0x14f)]),this[_0x49d6d2(0x13c)](this[_0x49d6d2(0x17b)]);}[_0x129844(0x1b7)](_0x311c34){const _0x3f8be7=_0x129844,_0x3b1daa=this[_0x3f8be7(0x106)][_0x3f8be7(0x11d)][_0x3f8be7(0x1c4)](_0x50fc72);this[_0x3f8be7(0x1b0)](_0x3b1daa,_0x3f8be7(0xe9)+this[_0x3f8be7(0x139)],(_0x38e048,{session:_0x10f4b8})=>{const _0x45ab0e=_0x3f8be7;if(_0x10f4b8['id']===_0x3b1daa[_0x45ab0e(0x1ac)]){_0x38e048[_0x45ab0e(0xf0)]();const _0x2c18eb=this[_0x45ab0e(0x106)][_0x45ab0e(0x11d)][_0x45ab0e(0x13b)](_0x45ab0e(0x197))&&this[_0x45ab0e(0x106)][_0x45ab0e(0x11d)][_0x45ab0e(0x1c4)](_0x45ab0e(0x197));let _0x4b7066=_0x10f4b8[_0x45ab0e(0x14c)];_0x2c18eb&&_0x2c18eb[_0x45ab0e(0x159)]&&(_0x4b7066=_0x4b7066[_0x45ab0e(0x12d)](_0x1bd045=>_0x45ab0e(0xf5)!==_0x1bd045)),this[_0x45ab0e(0x106)][_0x45ab0e(0x11d)][_0x45ab0e(0x1c4)](_0x45ab0e(0x18a))[_0x45ab0e(0x16e)](_0x4b7066,this[_0x45ab0e(0x139)]);}}),_0x3b1daa[_0x3f8be7(0x15a)](this[_0x3f8be7(0x139)],_0x311c34);}[_0x129844(0xf3)](){const _0x3a7360=_0x129844,_0x4ad332=this[_0x3a7360(0x106)][_0x3a7360(0x126)][_0x3a7360(0x1be)];this[_0x3a7360(0x106)][_0x3a7360(0x126)][_0x3a7360(0x1be)]=(..._0x1ef693)=>{const _0x130602=_0x3a7360;if(!_0x1ef693[_0x1ef693[_0x130602(0x11b)]-0x1][_0x130602(0x16d)])throw new _0x45f620(_0x130602(0x148),this);_0x4ad332[_0x130602(0x133)](this[_0x130602(0x106)][_0x130602(0x126)],_0x1ef693);};}[_0x129844(0x115)](){const _0x30b454=_0x129844;this[_0x30b454(0x106)][_0x30b454(0x126)]['on'](_0x30b454(0x150),(_0xa0294c,[_0x342cde])=>{const _0x322994=_0x30b454;if(this[_0x322994(0x12a)][_0x322994(0x195)])throw new _0x45f620(_0x322994(0x112),this);_0xa0294c[_0x322994(0x180)](),this[_0x322994(0x15c)]();const _0x554b2a=this[_0x322994(0x106)][_0x322994(0x192)][_0x322994(0x1c4)](_0x322994(0x11e)),_0x24509d=this[_0x322994(0x121)](_0x342cde,_0x554b2a);0x0==_0x24509d[_0x322994(0x11b)]&&_0x24509d[_0x322994(0x137)](new _0x256457(0x0)),_0xa0294c[_0x322994(0x12e)]=this[_0x322994(0x1bd)](_0x24509d)[_0x322994(0x1b3)](()=>{const _0x3664cc=_0x322994;this[_0x3664cc(0x106)][_0x3664cc(0x11d)][_0x3664cc(0x1c4)](_0x3d02a5)[_0x3664cc(0x1db)](this),this[_0x3664cc(0x106)][_0x3664cc(0x126)][_0x3664cc(0x155)](_0x3664cc(0x10e));})[_0x322994(0x193)](_0x32da46=>this[_0x322994(0x168)](_0x322994(0x1a8),_0x32da46))[_0x322994(0x16a)](()=>this[_0x322994(0x10f)]());},{'priority':_0x30b454(0x185)}),this[_0x30b454(0x106)]['on'](_0x30b454(0x189),async(_0x20c642,[_0x4e38f9,_0x4f7b1a])=>{const _0x1cd909=_0x30b454;_0x20c642[_0x1cd909(0x180)]();const _0x504be2=this[_0x1cd909(0x106)][_0x1cd909(0xef)][_0x1cd909(0x1e5)][_0x1cd909(0x127)](_0x4e38f9);if(!this[_0x1cd909(0x17f)][_0x1cd909(0x13b)](_0x4e38f9)){const _0x5f4bac=_0x4f7b1a&&_0x4f7b1a[_0x1cd909(0x126)]?_0x4f7b1a[_0x1cd909(0x126)]:'',_0x554cda=_0x4f7b1a&&_0x4f7b1a[_0x1cd909(0x1c5)]?_0x4f7b1a[_0x1cd909(0x1c5)]:{};await this[_0x1cd909(0x1ba)](_0x4e38f9,_0x5f4bac,_0x554cda);}this[_0x1cd909(0x106)][_0x1cd909(0xef)][_0x1cd909(0x156)]({'isUndoable':!0x1},()=>{const _0x1c6b82=_0x1cd909;_0x504be2[_0x1c6b82(0x14b)]=!0x0,this[_0x1c6b82(0x106)][_0x1c6b82(0xef)][_0x1c6b82(0x1e5)][_0x1c6b82(0x15b)][_0x1c6b82(0x1d2)](_0x504be2);});},{'priority':_0x30b454(0x185)});}async[_0x129844(0x1c6)](_0x3f51bc){const _0x33b298=_0x129844,_0x43f9aa=this[_0x33b298(0x106)][_0x33b298(0x11d)][_0x33b298(0x1c4)](_0x4e66c4),{connection:_0x383c24}=this[_0x33b298(0x106)][_0x33b298(0x11d)][_0x33b298(0x1c4)](_0x3d02a5),_0x3d8e71=new Set();for(const _0xffaa79 of _0x3f51bc){const _0x5bd959=_0xffaa79[_0x33b298(0x1a4)];_0x5bd959&&!_0x43f9aa[_0x33b298(0x1b2)](_0x5bd959)&&_0x3d8e71[_0x33b298(0x199)](_0x5bd959);}if(0x0===_0x3d8e71[_0x33b298(0x163)])return;const _0x123e4e=await _0x30fc99[_0x33b298(0x161)](_0x383c24,Array[_0x33b298(0x113)](_0x3d8e71));for(const _0x416420 of _0x123e4e)_0x43f9aa[_0x33b298(0x1b2)](_0x416420['id'])||_0x43f9aa[_0x33b298(0x103)](_0x416420);}[_0x129844(0x121)](_0x2b7f41,_0x77a825={}){const _0x477411=_0x129844,_0x31d1ce=this[_0x477411(0x106)][_0x477411(0xef)],_0x387fab=[];let _0x30c52e=0x0;const _0x9da648=_0x477411(0x144)==typeof _0x2b7f41?{'main':_0x2b7f41}:_0x2b7f41;for(const _0x28b5e7 of Object[_0x477411(0x114)](_0x9da648)){if(!this[_0x477411(0x12a)][_0x477411(0x17c)][_0x477411(0x13b)](_0x28b5e7))throw new _0x45f620(_0x477411(0x174),this);const _0x500082=this[_0x477411(0x106)][_0x477411(0x126)][_0x477411(0x124)](_0x9da648[_0x28b5e7]),_0x3fd051=this[_0x477411(0x12a)][_0x477411(0x127)](_0x28b5e7),_0x357e1a=new _0x32274d(_0x31d1ce[_0x477411(0x140)](_0x3fd051,0x0),_0x500082,_0x30c52e++);_0x387fab[_0x477411(0x137)](_0x357e1a);for(const [_0x4e9412,_0xc13e52]of _0x500082[_0x477411(0x1ea)]){const _0x2314f8=_0x31d1ce[_0x477411(0xeb)](_0x31d1ce[_0x477411(0x191)](_0x3fd051,_0xc13e52[_0x477411(0x175)][_0x477411(0x1b4)][_0x477411(0xee)]()),_0x31d1ce[_0x477411(0x191)](_0x3fd051,_0xc13e52[_0x477411(0x1cc)][_0x477411(0x1b4)][_0x477411(0xee)]())),_0x2d367=new _0x11b8f1(_0x4e9412,null,_0x2314f8,_0x31d1ce[_0x477411(0x1ea)],!0x0,_0x30c52e++);_0x387fab[_0x477411(0x137)](_0x2d367);}}if(_0x77a825)for(const [_0x485a3b,_0x44773e]of Object[_0x477411(0x1e4)](_0x77a825)){const _0x483978=_0x31d1ce[_0x477411(0x1e5)][_0x477411(0x127)](_0x485a3b);if(!_0x483978)throw new _0x45f620(_0x477411(0x179),null);for(const [_0x2b6acc,_0x3036e0]of Object[_0x477411(0x1e4)](_0x44773e))if(null!==_0x3036e0){const _0xee2857=new _0x3a91bc(_0x483978,_0x2b6acc,null,_0x3036e0,_0x30c52e++);_0x387fab[_0x477411(0x137)](_0xee2857);}}return _0x387fab;}async[_0x129844(0x1ba)](_0x63443b,_0x1a5923,_0x2835d9){const _0xe37124=_0x129844;this[_0xe37124(0x121)]({[_0x63443b]:_0x1a5923},{[_0x63443b]:_0x2835d9})[_0xe37124(0xf8)]((_0x16728f,_0x2ebc51)=>{const _0xb2af7e=_0xe37124;_0x16728f[_0xb2af7e(0x177)]=this[_0xb2af7e(0x12a)][_0xb2af7e(0x195)]+_0x2ebc51,_0x16728f[_0xb2af7e(0x19e)]=!0x0,this[_0xb2af7e(0x1b1)](_0x16728f);}),this[_0xe37124(0x1de)](),await this[_0xe37124(0xfb)]();}async[_0x129844(0x102)](_0x396405,_0x27620d){const _0x33950a=_0x129844;let _0xf48c7a;this[_0x33950a(0x158)]=_0x396405[_0x33950a(0xfc)];const _0x12a261=_0x396405[_0x33950a(0x1a2)]&&!_0x396405[_0x33950a(0x1d1)],_0x2bd631=_0x12a261?0x0:_0x396405[_0x33950a(0x126)][_0x33950a(0x177)];if(_0x27620d[_0x33950a(0xf8)](_0x35ee47=>{const _0x17b9ed=_0x33950a;_0x35ee47[_0x17b9ed(0x19e)]=!0x0,_0x35ee47[_0x17b9ed(0x13d)]=_0x396405[_0x17b9ed(0x152)],_0x35ee47[_0x17b9ed(0x1a4)]=null;}),_0x12a261)_0xf48c7a=_0x27620d,this[_0x33950a(0x1cd)](_0xf48c7a,_0x12a261);else{if(_0x396405[_0x33950a(0x1d1)]){const _0x3264df=this[_0x33950a(0x121)](_0x396405[_0x33950a(0x1d1)]);this[_0x33950a(0x12a)][_0x33950a(0x10a)][_0x33950a(0x195)]=-_0x3264df[_0x33950a(0x11b)],_0x3264df[_0x33950a(0xf8)](_0x4bb6a8=>{const _0xa07471=_0x33950a;_0x4bb6a8[_0xa07471(0x177)]-=_0x3264df[_0xa07471(0x11b)],_0x4bb6a8[_0xa07471(0x13d)]=_0x396405[_0xa07471(0x152)],_0x4bb6a8[_0xa07471(0x19e)]=!0x0,_0x4bb6a8[_0xa07471(0x1a4)]=null;}),this[_0x33950a(0x1cd)](_0x3264df,!0x0),this[_0x33950a(0x136)][_0x33950a(0x195)]=-_0x3264df[_0x33950a(0x11b)]+this[_0x33950a(0x158)],this[_0x33950a(0x167)](_0x3264df);}this[_0x33950a(0x12a)][_0x33950a(0x10a)][_0x33950a(0x195)]=_0x2bd631,_0xf48c7a=this[_0x33950a(0x171)](_0x396405[_0x33950a(0x126)],_0x396405[_0x33950a(0x1ec)]),await this[_0x33950a(0x1c6)](_0xf48c7a),this[_0x33950a(0x1cd)](_0xf48c7a,_0x12a261);}_0x396405[_0x33950a(0x19c)]&&(this[_0x33950a(0x153)][_0x33950a(0x14a)](_0xf48c7a,_0x396405[_0x33950a(0x19c)]),this[_0x33950a(0x1bf)]=_0x396405[_0x33950a(0x19c)]),this[_0x33950a(0x136)][_0x33950a(0x195)]=_0x2bd631+this[_0x33950a(0x158)],this[_0x33950a(0x167)](_0xf48c7a),_0x27620d[_0x33950a(0x12d)](_0x183e8f=>{const _0x47d06b=_0x33950a,_0x5af7a8=this[_0x47d06b(0x1e7)](_0x183e8f);return _0x5af7a8&&!this[_0x47d06b(0x17f)][_0x47d06b(0x13b)](_0x5af7a8);})[_0x33950a(0xf8)]((_0x2fe372,_0xc4a387)=>{const _0x1de4cd=_0x33950a;_0x2fe372[_0x1de4cd(0x177)]=this[_0x1de4cd(0x12a)][_0x1de4cd(0x195)]+_0xc4a387,this[_0x1de4cd(0x1b1)](_0x2fe372);}),this[_0x33950a(0x19a)]()?(this[_0x33950a(0xf2)]=0x0,this[_0x33950a(0x1de)](!0x0),await this[_0x33950a(0xfb)]()):(this[_0x33950a(0x184)]=!0x1,this[_0x33950a(0x10f)]());}[_0x129844(0x168)](_0x106b05,_0x4a13e0){const _0x6fe64a=_0x129844,_0x574c78=_0x4a13e0&&_0x4a13e0[_0x6fe64a(0x1c7)];if(_0x574c78&&_0x574c78[_0x6fe64a(0x110)](_0x6fe64a(0x190)))throw _0x4a13e0;const _0x4a6ecb=this[_0x6fe64a(0x106)][_0x6fe64a(0x11d)][_0x6fe64a(0x1c4)](_0x3d02a5);throw this[_0x6fe64a(0x184)]=!0x0,_0x4a6ecb[_0x6fe64a(0x1c9)](),this[_0x6fe64a(0x106)][_0x6fe64a(0x1cf)](_0x6fe64a(0x1bc)),new _0x45f620(_0x106b05,this[_0x6fe64a(0x106)],_0x574c78?{'originalError':_0x574c78}:void 0x0);}[_0x129844(0x1b1)](_0x5f021a){const _0x1797ed=_0x129844;this[_0x1797ed(0x1da)][_0x1797ed(0x13b)](_0x5f021a)||(this[_0x1797ed(0x1da)][_0x1797ed(0x199)](_0x5f021a),this[_0x1797ed(0x1e9)][_0x1797ed(0x137)](_0x5f021a),this[_0x1797ed(0x146)]||_0x1797ed(0x14e)==_0x5f021a[_0x1797ed(0x1e0)]&&!_0x5f021a[_0x1797ed(0x1b8)]||this[_0x1797ed(0x15c)]());}[_0x129844(0x1de)](_0x5487ce=!0x1){const _0x3aa5dd=_0x129844;!_0x5487ce&&this[_0x3aa5dd(0x184)]||(this[_0x3aa5dd(0x184)]=!0x0,clearTimeout(this[_0x3aa5dd(0x14f)]),this[_0x3aa5dd(0x14f)]=setTimeout(()=>{const _0x59e73d=_0x3aa5dd;this[_0x59e73d(0x10b)]()[_0x59e73d(0x1b3)](_0x299845=>{const _0x1b5b11=_0x59e73d;_0x299845&&(this[_0x1b5b11(0x10f)](),this[_0x1b5b11(0x184)]=!0x1);})[_0x59e73d(0x193)](_0x10843e=>{const _0x344a56=_0x59e73d;this[_0x344a56(0x10f)](),this[_0x344a56(0x184)]=!0x1,function(_0x35bd32){const _0x2f3741=_0x344a56;return _0x35bd32[_0x2f3741(0x1c7)][_0x2f3741(0x110)](_0x2f3741(0x111))||_0x35bd32[_0x2f3741(0x1c7)][_0x2f3741(0x110)](_0x2f3741(0x172))||_0x35bd32[_0x2f3741(0x1c7)][_0x2f3741(0x110)](_0x2f3741(0x130));}(_0x10843e)||this[_0x344a56(0x168)](_0x10843e[_0x344a56(0x1c7)],_0x10843e);});},this[_0x3aa5dd(0xf2)]));}[_0x129844(0xfb)](){return new Promise(_0x621f45=>{const _0x223832=_0xadc0;this['on'](_0x223832(0x15d),()=>{_0x621f45();});});}async[_0x129844(0x10b)](){const _0x2f03c2=_0x129844,_0x22a822=this[_0x2f03c2(0x106)][_0x2f03c2(0x11d)][_0x2f03c2(0x1c4)](_0x4078fb);if(this[_0x2f03c2(0x1e1)]()&&(_0x22a822[_0x2f03c2(0x17e)](),this[_0x2f03c2(0x162)]=!0x1),!this[_0x2f03c2(0x19a)]())return!0x0;const _0x106e61=[...this[_0x2f03c2(0x1e9)]];for(const _0xdf7596 of _0x106e61)_0xdf7596[_0x2f03c2(0x107)]=this[_0x2f03c2(0x12a)][_0x2f03c2(0x10a)][_0x2f03c2(0x1ed)](_0xdf7596);const _0x10ed21=this[_0x2f03c2(0x153)][_0x2f03c2(0x10d)](_0x106e61),_0xd9d89d=H++,_0x3c1cc4=this[_0x2f03c2(0x1c8)](_0x106e61),_0x31a759=await this[_0x2f03c2(0x17b)][_0x2f03c2(0x1d5)](_0x3c1cc4,_0x3c1cc4[_0x2f03c2(0x177)],_0x10ed21);try{return await this[_0x2f03c2(0x116)](_0x106e61,_0x31a759,_0xd9d89d);}catch(_0x1a2f28){return this[_0x2f03c2(0x168)](_0x2f03c2(0xfd),_0x1a2f28);}}async[_0x129844(0x116)](_0x3e4fda,_0x479913,_0x514381){const _0xfd08bf=_0x129844;if(_0xfd08bf(0x132)in _0x479913)throw _0x479913[_0xfd08bf(0x132)];let _0x4cb427=!0x1;if(_0x479913[_0xfd08bf(0x1a2)]){_0x479913[_0xfd08bf(0x19c)]&&(this[_0xfd08bf(0x1bf)]=_0x479913[_0xfd08bf(0x19c)]),this[_0xfd08bf(0x1e9)]=this[_0xfd08bf(0x1e9)][_0xfd08bf(0x12d)](_0x3f7a19=>!_0x3e4fda[_0xfd08bf(0x1aa)](_0x3f7a19));for(const _0x3977a0 of _0x3e4fda)_0x3977a0[_0xfd08bf(0x13d)]=_0xfd08bf(0xfe)in _0x479913&&_0x479913[_0xfd08bf(0xfe)]||void 0x0;W(_0x3e4fda,_0x479913[_0xfd08bf(0x195)]-_0x3e4fda[_0xfd08bf(0x11b)]),this[_0xfd08bf(0x167)](_0x3e4fda);const _0x5bffb4=_0x3e4fda[_0xfd08bf(0x12d)](_0x34546a=>{const _0x6c712e=_0xfd08bf;if(!_0x34546a[_0x6c712e(0x19e)])return!0x1;const _0x245e92=this[_0x6c712e(0x1e7)](_0x34546a);return _0x245e92&&!this[_0x6c712e(0x17f)][_0x6c712e(0x13b)](_0x245e92);});W(_0x5bffb4,this[_0xfd08bf(0x12a)][_0xfd08bf(0x195)]),this[_0xfd08bf(0x1cd)](_0x5bffb4),_0x4cb427=!0x0,this[_0xfd08bf(0xf2)]=this[_0xfd08bf(0x170)];}else{const _0x183495=this[_0xfd08bf(0x171)](_0x479913[_0xfd08bf(0x126)],_0x479913[_0xfd08bf(0x1ec)])[_0xfd08bf(0x12d)](_0x2746d8=>_0x2746d8[_0xfd08bf(0x177)]>=this[_0xfd08bf(0xe8)]);_0x183495[_0xfd08bf(0xf8)](_0x3d7563=>this[_0xfd08bf(0x1e3)](_0x3d7563)),this[_0xfd08bf(0x1e9)]=this[_0xfd08bf(0x1e9)][_0xfd08bf(0x12d)](_0x7c84d2=>!_0x7c84d2[_0xfd08bf(0x19e)]||!this[_0xfd08bf(0x17f)][_0xfd08bf(0x13b)](this[_0xfd08bf(0x1e7)](_0x7c84d2))),this[_0xfd08bf(0x1e9)][_0xfd08bf(0x11b)]&&W(this[_0xfd08bf(0x1e9)],this[_0xfd08bf(0x1e9)][0x0][_0xfd08bf(0x177)]),await this[_0xfd08bf(0x1c6)](_0x183495),_0x4cb427=this[_0xfd08bf(0x1c2)](_0x183495,_0x479913[_0xfd08bf(0x195)],_0x479913[_0xfd08bf(0x19c)]),this[_0xfd08bf(0xf2)]=Math[_0xfd08bf(0x18c)](this[_0xfd08bf(0xf2)]/0x2);}return _0x4cb427?!this[_0xfd08bf(0x19a)]()||(this[_0xfd08bf(0x1de)](!0x0),!0x1):this[_0xfd08bf(0x168)](_0xfd08bf(0x143));}[_0x129844(0x1c2)](_0x3cdfd5,_0x3a61ac,_0x11d093){const _0x5aa40c=_0x129844;try{const _0x56c179={'document':this[_0x5aa40c(0x12a)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0xe1917e,operationsB:_0x24ca0d,originalOperations:_0x1fdfdc}=_0x1f6470(_0x3cdfd5,this[_0x5aa40c(0x1e9)],_0x56c179);W(_0xe1917e,this[_0x5aa40c(0x12a)][_0x5aa40c(0x195)]),W(_0x24ca0d,_0x3a61ac);for(const _0x45df9a of _0xe1917e){const _0x35fd37=_0x1fdfdc[_0x5aa40c(0x1c4)](_0x45df9a);_0x45df9a[_0x5aa40c(0x1a4)]=_0x35fd37?_0x35fd37[_0x5aa40c(0x1a4)]:null;}_0x11d093&&(this[_0x5aa40c(0x153)][_0x5aa40c(0x14a)](_0x3cdfd5,_0x11d093),this[_0x5aa40c(0x1bf)]=_0x11d093),this[_0x5aa40c(0x1e9)]=[..._0x24ca0d],this[_0x5aa40c(0x1cd)](_0xe1917e),this[_0x5aa40c(0x167)](_0x3cdfd5);}catch(_0x45d6c5){return console[_0x5aa40c(0x132)](_0x45d6c5),!0x1;}return!0x0;}[_0x129844(0x1cd)](_0x38142f,_0xab420c=!0x1){const _0x168a9c=_0x129844;this[_0x168a9c(0x106)][_0x168a9c(0xef)][_0x168a9c(0x156)]({'isUndoable':!0x1,'isLocal':!0x1},_0x4c9972=>{const _0x178286=_0x168a9c;for(const _0x49d91e of _0x38142f)this[_0x178286(0x1da)][_0x178286(0x199)](_0x49d91e),this[_0x178286(0x1e3)](_0x49d91e),_0x4c9972[_0x178286(0xec)][_0x178286(0x1a1)](_0x49d91e),this[_0x178286(0x106)][_0x178286(0xef)][_0x178286(0x1d0)](_0x49d91e);});}[_0x129844(0x1e3)](_0xec5c62){const _0x51ee4b=_0x129844,_0x33b8b0=this[_0x51ee4b(0x1e7)](_0xec5c62);_0x33b8b0&&this[_0x51ee4b(0x17f)][_0x51ee4b(0x199)](_0x33b8b0);}[_0x129844(0x1e7)](_0xf2c2f2){const _0x287cd2=_0x129844;let _0x385869,_0x6e788d;switch(_0xf2c2f2[_0x287cd2(0x1e0)]){case _0x287cd2(0x1d3):_0x385869=_0xf2c2f2[_0x287cd2(0x1d7)][_0x287cd2(0x149)];break;case _0x287cd2(0x14e):if(_0x6e788d=_0xf2c2f2[_0x287cd2(0x17d)],!_0x6e788d)return null;_0x385869=_0x6e788d[_0x287cd2(0x149)];break;case _0x287cd2(0x142):_0x385869=_0xf2c2f2[_0x287cd2(0x149)];break;case _0x287cd2(0x1a6):_0x385869=_0xf2c2f2[_0x287cd2(0x118)];break;case _0x287cd2(0x147):_0x385869=_0xf2c2f2[_0x287cd2(0x1ce)][_0x287cd2(0x149)];break;default:return null;}return _0x385869[_0x287cd2(0x176)];}[_0x129844(0x167)](_0x4dad7f){const _0x3f34ae=_0x129844;_0x4dad7f[_0x3f34ae(0xf8)](_0x48fc89=>{const _0x30c503=_0x3f34ae,_0x28a968=_0x48fc89[_0x30c503(0x15f)]();_0x28a968[_0x30c503(0x1a4)]=_0x48fc89[_0x30c503(0x1a4)],_0x28a968[_0x30c503(0x19e)]=!!_0x48fc89[_0x30c503(0x19e)],_0x28a968[_0x30c503(0x13d)]=_0x48fc89[_0x30c503(0x13d)],_0x28a968[_0x30c503(0x177)]+=this[_0x30c503(0x158)],_0x48fc89[_0x30c503(0x157)]&&this[_0x30c503(0x134)][_0x30c503(0x199)](_0x28a968),this[_0x30c503(0x136)][_0x30c503(0x1a1)](_0x28a968);});}[_0x129844(0x1a5)](_0x452441){const _0x5433d1=_0x129844,_0x7ef484=this[_0x5433d1(0x106)][_0x5433d1(0x11d)][_0x5433d1(0x1c4)](_0x5433d1(0xf7)),_0x30607f=this[_0x5433d1(0x106)][_0x5433d1(0x1c0)];_0x452441||(_0x452441=_0x2d3827(_0x30607f,_0x5433d1(0x1eb))),_0x7ef484[_0x5433d1(0x12f)](_0x452441,{'title':_0x2d3827(_0x30607f,_0x5433d1(0x1c3)),'namespace':_0x5433d1(0x105)}),this[_0x5433d1(0x12b)]=!0x0,clearTimeout(this[_0x5433d1(0x14f)]),this[_0x5433d1(0x1e9)]=[],this[_0x5433d1(0x106)][_0x5433d1(0x11d)][_0x5433d1(0x1c4)](_0x3d02a5)[_0x5433d1(0x1c9)]();}[_0x129844(0x15c)](){const _0x5e6b30=_0x129844;this[_0x5e6b30(0x146)]||(this[_0x5e6b30(0x146)]=this[_0x5e6b30(0x106)][_0x5e6b30(0x11d)][_0x5e6b30(0x1c4)](_0x5337d1)[_0x5e6b30(0x199)](_0x2d3827(this[_0x5e6b30(0x106)][_0x5e6b30(0x1c0)],_0x5e6b30(0x128))));}[_0x129844(0x10f)](){const _0x3aac5f=_0x129844;this[_0x3aac5f(0x146)]&&(this[_0x3aac5f(0x106)][_0x3aac5f(0x11d)][_0x3aac5f(0x1c4)](_0x5337d1)[_0x3aac5f(0xea)](this[_0x3aac5f(0x146)]),this[_0x3aac5f(0x146)]=null);}[_0x129844(0x1c8)](_0x5878f6){const _0x2b52cb=_0x129844,_0x3be99f=_0x5878f6[_0x2b52cb(0x12c)](_0x1cb2e3=>_0x1cb2e3[_0x2b52cb(0x1dd)]());return this[_0x2b52cb(0x164)][_0x2b52cb(0x151)](_0x3be99f);}[_0x129844(0x171)](_0x390905,_0x13f7a6){const _0x2dbc92=_0x129844;return this[_0x2dbc92(0x164)][_0x2dbc92(0x11f)](_0x390905)[_0x2dbc92(0x12c)]((_0x5ec185,_0xbab32d)=>{const _0x154025=_0x2dbc92,_0x39810e=_0x154025(0x150)==_0x13f7a6[_0xbab32d][_0x154025(0x1e0)];if(_0x154025(0x1e8)==_0x5ec185[_0x154025(0x182)]){const _0x3766c1=_0x5ec185[_0x154025(0x1d7)][_0x154025(0x149)];!this[_0x154025(0x12a)][_0x154025(0x127)](_0x3766c1)&&(this[_0x154025(0x12a)][_0x154025(0x138)](_0x154025(0x1af),_0x3766c1)[_0x154025(0x194)]=!0x1);}const _0x591f59=_0x15d9e6[_0x154025(0x196)](_0x5ec185,this[_0x154025(0x12a)]);return _0x591f59[_0x154025(0x107)]=_0x5ec185[_0x154025(0x107)],_0x591f59[_0x154025(0x19e)]=_0x39810e,_0x591f59[_0x154025(0x1a4)]=_0x39810e?null:_0x13f7a6[_0xbab32d][_0x154025(0x123)],_0x591f59[_0x154025(0x157)]=_0x154025(0x1bb)===_0x13f7a6[_0xbab32d][_0x154025(0x1e0)],_0x591f59[_0x154025(0x13d)]=_0x13f7a6[_0xbab32d][_0x154025(0x13d)],_0x591f59;});}[_0x129844(0x14d)](){const _0x76b383=_0x129844;this[_0x76b383(0x162)]=!0x0,this[_0x76b383(0x1e1)]()?this[_0x76b383(0x1de)]():this[_0x76b383(0x162)]=!0x1;}[_0x129844(0x1e1)](){const _0x58a4a7=_0x129844,_0x53e0cb=this[_0x58a4a7(0x106)][_0x58a4a7(0x11d)][_0x58a4a7(0x1c4)](_0x50fc72)[_0x58a4a7(0xf4)][_0x58a4a7(0x1c4)](this[_0x58a4a7(0x139)]);return!this[_0x58a4a7(0x106)][_0x58a4a7(0xf6)]&&!!_0x53e0cb&&_0x53e0cb[_0x58a4a7(0x11b)]>0x1&&this[_0x58a4a7(0x162)];}[_0x129844(0x19a)](){const _0x3fce2b=_0x129844;return this[_0x3fce2b(0x1e9)][_0x3fce2b(0x11b)]>0x0||this[_0x3fce2b(0x1e1)]();}}export{l as RealTimeCollaborationClient};function _0xadc0(_0x3e24f3,_0x3e530f){const _0x4e1704=_0x4e17();return _0xadc0=function(_0xadc06b,_0x1d32ab){_0xadc06b=_0xadc06b-0xe8;let _0x537051=_0x4e1704[_0xadc06b];return _0x537051;},_0xadc0(_0x3e24f3,_0x3e530f);}class V extends Error{}function W(_0x4209dd,_0x251aeb){const _0x3837f8=_0x129844;for(const _0x50ef13 of _0x4209dd)_0x50ef13[_0x3837f8(0x177)]=_0x251aeb++;}class F{[_0x129844(0x1a0)];[_0x129844(0x1ca)];constructor(_0x1f3fc7){const _0x2d00f2=_0x129844;this[_0x2d00f2(0x1a0)]=_0x1f3fc7,this[_0x2d00f2(0x1ca)]=new WeakMap();}[_0x129844(0x10d)](_0x4ade58){const _0x2b52b8=_0x129844;let _0x51111c=_0x4ade58[_0x2b52b8(0x11b)];for(;_0x51111c--;){const _0x58c037=_0x4ade58[_0x51111c];if(!this[_0x2b52b8(0x1a0)][_0x2b52b8(0x13b)](_0x58c037)){if(!this[_0x2b52b8(0x1ca)][_0x2b52b8(0x13b)](_0x58c037)){const _0x10afb8=_0x4cedf3()[_0x2b52b8(0xee)](0x1,0x12);this[_0x2b52b8(0x1ca)][_0x2b52b8(0x1be)](_0x58c037,_0x10afb8);}return this[_0x2b52b8(0x1ca)][_0x2b52b8(0x1c4)](_0x58c037);}}}[_0x129844(0x14a)](_0xdd71f8,_0x437c67){const _0x203dc8=_0x129844;if(!_0x437c67)return;let _0x2e3750=_0xdd71f8[_0x203dc8(0x11b)];for(;_0x2e3750--;){const _0x5a2908=_0xdd71f8[_0x2e3750];this[_0x203dc8(0x1a0)][_0x203dc8(0x13b)](_0x5a2908)||this[_0x203dc8(0x1ca)][_0x203dc8(0x1be)](_0x5a2908,_0x437c67);}}}
23
+ const _0xe0519b=_0x34bc;(function(_0x10f11b,_0x183fc1){const _0x232087=_0x34bc,_0x59fe8e=_0x10f11b();while(!![]){try{const _0x4a8f80=-parseInt(_0x232087(0x219))/0x1*(parseInt(_0x232087(0x18c))/0x2)+parseInt(_0x232087(0x1d5))/0x3+parseInt(_0x232087(0x171))/0x4*(parseInt(_0x232087(0x194))/0x5)+-parseInt(_0x232087(0x1a8))/0x6*(-parseInt(_0x232087(0x23b))/0x7)+parseInt(_0x232087(0x18f))/0x8*(-parseInt(_0x232087(0x1f1))/0x9)+parseInt(_0x232087(0x228))/0xa*(-parseInt(_0x232087(0x1e8))/0xb)+parseInt(_0x232087(0x237))/0xc*(parseInt(_0x232087(0x1bb))/0xd);if(_0x4a8f80===_0x183fc1)break;else _0x59fe8e['push'](_0x59fe8e['shift']());}catch(_0x493945){_0x59fe8e['push'](_0x59fe8e['shift']());}}}(_0x3300,0xc7b43));import{Plugin as _0x40c0be,PendingActions as _0x282206}from'ckeditor5/src/core.js';import{CKEditorError as _0x3b39b4,version as _0x5e98a7,uid as _0x2ff451}from'ckeditor5/src/utils.js';import{Notification as _0x2ca677}from'ckeditor5/src/ui.js';import{transformOperationSets as _0x5237f5,NoOperation as _0x21af05,InsertOperation as _0x2fc6c0,MarkerOperation as _0x5a1137,RootAttributeOperation as _0x49c7b1,OperationFactory as _0x36fc84,History as _0xc1ea5d}from'ckeditor5/src/engine.js';import{WebSocketGateway as _0x52e86}from'./websocketgateway.js';import{Sessions as _0x49d947}from'./sessions.js';import{UserMarkers as _0x36c06e}from'./usermarkers.js';import{getTranslation as _0x4f1b52}from'../common-translations.js';import{Compressor as _0x34ca56}from'@ckeditor/ckeditor5-operations-compressor';import{Users as _0xf72583}from'ckeditor5-collaboration/src/collaboration-core.js';import{User as _0x3ad33f,CollaborativeEditingService as _0xdd9628}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let Q=0x1;class l extends _0x40c0be{static [_0xe0519b(0x225)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0xdd9628)());[_0xe0519b(0x230)];[_0xe0519b(0x166)];[_0xe0519b(0x23f)];[_0xe0519b(0x1fa)];[_0xe0519b(0x1d6)];[_0xe0519b(0x167)];[_0xe0519b(0x19a)];[_0xe0519b(0x1a6)];[_0xe0519b(0x224)];[_0xe0519b(0x1ef)];[_0xe0519b(0x15a)];[_0xe0519b(0x1d1)];[_0xe0519b(0x1cc)];[_0xe0519b(0x1be)];[_0xe0519b(0x20e)];[_0xe0519b(0x168)];[_0xe0519b(0x1ed)];[_0xe0519b(0x21f)];static get[_0xe0519b(0x222)](){return[_0x52e86,_0x49d947,_0x36c06e,_0x282206,_0xf72583,_0x2ca677];}static get[_0xe0519b(0x255)](){const _0x4d3b72=_0xe0519b;return _0x4d3b72(0x215);}static get[_0xe0519b(0x22b)](){return!0x0;}static get[_0xe0519b(0x163)](){return!0x0;}get[_0xe0519b(0x220)](){const _0x2b570d=_0xe0519b;return this[_0x2b570d(0x17e)]+this[_0x2b570d(0x230)];}get[_0xe0519b(0x17e)](){const _0x47287f=_0xe0519b;return this[_0x47287f(0x23f)][_0x47287f(0x1eb)]-this[_0x47287f(0x230)];}get[_0xe0519b(0x1aa)](){const _0x2e2e80=_0xe0519b,_0x166fe7=this[_0x2e2e80(0x23f)][_0x2e2e80(0x1f8)]();for(let _0x2f6173=_0x166fe7[_0x2e2e80(0x1e7)]-0x1;_0x2f6173>=0x0;_0x2f6173--){const _0x497cfa=_0x166fe7[_0x2f6173];if(!this[_0x2e2e80(0x1ed)][_0x2e2e80(0x1da)](_0x497cfa))return _0x497cfa[_0x2e2e80(0x1ff)]+0x1-this[_0x2e2e80(0x230)];}return 0x0;}constructor(_0x563fde){const _0x3e3e2b=_0xe0519b;if(super(_0x563fde),this[_0x3e3e2b(0x230)]=0x0,this[_0x3e3e2b(0x166)]=null,this[_0x3e3e2b(0x23f)]=new _0xc1ea5d(),this[_0x3e3e2b(0x1ba)][_0x3e3e2b(0x15c)][_0x3e3e2b(0x17c)](_0x3e3e2b(0x195),{}),this[_0x3e3e2b(0x1fa)]=this[_0x3e3e2b(0x1ba)][_0x3e3e2b(0x15c)][_0x3e3e2b(0x1c4)](_0x3e3e2b(0x1c2)),!this[_0x3e3e2b(0x1fa)])throw new _0x3b39b4(_0x3e3e2b(0x1b9),this);const _0x28d116=_0x563fde[_0x3e3e2b(0x15c)][_0x3e3e2b(0x1c4)](_0x3e3e2b(0x1d4))||_0x5e98a7;this[_0x3e3e2b(0x1d6)]=new l[(_0x3e3e2b(0x225))](_0x28d116,this[_0x3e3e2b(0x1fa)]),this[_0x3e3e2b(0x167)]=this[_0x3e3e2b(0x1ba)][_0x3e3e2b(0x1ee)][_0x3e3e2b(0x1fd)],this[_0x3e3e2b(0x19a)]=new _0x34ca56(),this[_0x3e3e2b(0x1a6)]=[],this[_0x3e3e2b(0x224)]=new WeakSet(),this[_0x3e3e2b(0x1ef)]=new Set(),this[_0x3e3e2b(0x16f)](_0x3e3e2b(0x1b7),!0x1),this[_0x3e3e2b(0x16f)](_0x3e3e2b(0x1fc),!0x1),this[_0x3e3e2b(0x15a)]=null,this[_0x3e3e2b(0x1d1)]=!0x1,this[_0x3e3e2b(0x1cc)]=null,this[_0x3e3e2b(0x1be)]=0x12c,this[_0x3e3e2b(0x20e)]=this[_0x3e3e2b(0x1be)],this[_0x3e3e2b(0x168)]=null,this[_0x3e3e2b(0x1ed)]=new WeakSet(),this[_0x3e3e2b(0x21f)]=new Z(this[_0x3e3e2b(0x1ed)]);}[_0xe0519b(0x212)](){const _0x4de95b=_0xe0519b,_0x43b1ce=this[_0x4de95b(0x1ba)],_0x369528=_0x43b1ce[_0x4de95b(0x158)][_0x4de95b(0x1c4)](_0xf72583),_0x5ef239=_0x43b1ce[_0x4de95b(0x158)][_0x4de95b(0x1c4)](_0x52e86);this[_0x4de95b(0x1dc)](_0x369528,_0x4de95b(0x1c9),(_0x4a29fe,_0x20203f)=>{const _0x9a2880=_0x4de95b,_0x2049f2=_0x20203f[0x0];_0x2049f2[_0x9a2880(0x210)]&&(_0x4a29fe[_0x9a2880(0x186)]=_0x369528[_0x9a2880(0x25a)](_0x2049f2[_0x9a2880(0x210)]),_0x4a29fe[_0x9a2880(0x1e1)]()),null===_0x2049f2[_0x9a2880(0x210)]&&(_0x4a29fe[_0x9a2880(0x186)]=null,_0x4a29fe[_0x9a2880(0x1e1)]());},{'priority':_0x4de95b(0x199)}),this[_0x4de95b(0x1dc)](_0x43b1ce[_0x4de95b(0x1ee)][_0x4de95b(0x1fd)][_0x4de95b(0x175)],_0x4de95b(0x249),(_0x18e009,_0x239027)=>{const _0x5b6d38=_0x4de95b;_0x239027[_0x5b6d38(0x157)]&&this[_0x5b6d38(0x1de)]();}),this[_0x4de95b(0x1dc)](_0x43b1ce[_0x4de95b(0x18d)][_0x4de95b(0x20d)],_0x4de95b(0x1cf),()=>{const _0x5c4fe5=_0x4de95b;this[_0x5c4fe5(0x1de)]();}),this[_0x4de95b(0x259)](),_0x43b1ce[_0x4de95b(0x1ee)]['on'](_0x4de95b(0x245),(_0x41efce,_0x3aa8cd)=>{const _0x10376c=_0x4de95b,_0x51caf6=_0x3aa8cd[0x0];_0x51caf6[_0x10376c(0x21a)]&&(this[_0x10376c(0x1c6)](_0x51caf6),this[_0x10376c(0x17d)]()&&this[_0x10376c(0x241)]());}),this[_0x4de95b(0x1d7)](),this[_0x4de95b(0x240)](_0x4de95b(0x22c))['to'](_0x5ef239,_0x4de95b(0x204),this,_0x4de95b(0x1fc),(_0x593355,_0x184402)=>_0x4de95b(0x239)===_0x593355&&!_0x184402),this['on'](_0x4de95b(0x23d),()=>{const _0x24d8b6=_0x4de95b;this[_0x24d8b6(0x22c)]?_0x43b1ce[_0x24d8b6(0x1bd)](_0x24d8b6(0x1ca)):_0x43b1ce[_0x24d8b6(0x233)](_0x24d8b6(0x1ca));}),this[_0x4de95b(0x22c)]?_0x43b1ce[_0x4de95b(0x1bd)](_0x4de95b(0x1ca)):_0x43b1ce[_0x4de95b(0x233)](_0x4de95b(0x1ca)),this[_0x4de95b(0x16f)](_0x4de95b(0x161),!0x1);}async[_0xe0519b(0x207)](){const _0x5eebeb=_0xe0519b,_0x3066e7=this[_0x5eebeb(0x1ba)][_0x5eebeb(0x158)][_0x5eebeb(0x1c4)](_0x49d947),_0xc2f55e=this[_0x5eebeb(0x1ba)][_0x5eebeb(0x158)][_0x5eebeb(0x1c4)](_0x52e86);try{this[_0x5eebeb(0x1b7)]=!0x0,_0x3066e7[_0x5eebeb(0x197)](this[_0x5eebeb(0x1fa)]);const _0x930bd5=await this[_0x5eebeb(0x1d6)][_0x5eebeb(0x207)](_0xc2f55e[_0x5eebeb(0x246)],this[_0x5eebeb(0x1aa)]);await this[_0x5eebeb(0x217)](_0x930bd5)&&(this[_0x5eebeb(0x1b7)]=!0x1,this[_0x5eebeb(0x205)]());const _0x31b073=await this[_0x5eebeb(0x1d6)][_0x5eebeb(0x213)]();_0x3066e7[_0x5eebeb(0x173)](this[_0x5eebeb(0x1fa)],_0x31b073),this[_0x5eebeb(0x22a)](),this[_0x5eebeb(0x161)]=!0x0;}catch(_0x18135c){if(function(_0x79d480){const _0x59c6fc=_0x5eebeb;return _0x59c6fc(0x1e9)===_0x79d480[_0x59c6fc(0x18e)];}(_0x18135c)&&this[_0x5eebeb(0x166)])await this[_0x5eebeb(0x214)]();else{if(function(_0x55e682){const _0x375820=_0x5eebeb;return _0x375820(0x1b3)===_0x55e682[_0x375820(0x18e)];}(_0x18135c)){const _0x48ace1=_0x4f1b52(this[_0x5eebeb(0x1ba)][_0x5eebeb(0x22e)],_0x5eebeb(0x176));this[_0x5eebeb(0x16a)](_0x48ace1);}else{if(!(_0x18135c instanceof X))throw _0x18135c;this[_0x5eebeb(0x16a)]();}}}}[_0xe0519b(0x21b)](){const _0x37b3d0=_0xe0519b,_0x5d77f2=this[_0x37b3d0(0x1ba)][_0x37b3d0(0x158)][_0x37b3d0(0x1c4)](_0x52e86),_0x5d7fa4=this[_0x37b3d0(0x1ba)][_0x37b3d0(0x158)][_0x37b3d0(0x1c4)](_0x49d947);this[_0x37b3d0(0x1ba)][_0x37b3d0(0x233)](_0x37b3d0(0x19f)),_0x5d7fa4[_0x37b3d0(0x22f)][_0x37b3d0(0x1da)](this[_0x37b3d0(0x1fa)])&&_0x5d7fa4[_0x37b3d0(0x197)](this[_0x37b3d0(0x1fa)]),_0x5d77f2[_0x37b3d0(0x169)](this),this[_0x37b3d0(0x226)](),super[_0x37b3d0(0x21b)]();}async[_0xe0519b(0x217)](_0x29a9aa){const _0x1942d1=_0xe0519b;if(this[_0x1942d1(0x166)]!==_0x29a9aa[_0x1942d1(0x166)]&&this[_0x1942d1(0x168)]!==_0x29a9aa[_0x1942d1(0x23a)])throw new X();return this[_0x1942d1(0x166)]=_0x29a9aa[_0x1942d1(0x166)],this[_0x1942d1(0x190)]([],{..._0x29a9aa,'wereChangesApplied':!0x1,'data':_0x29a9aa[_0x1942d1(0x234)]},_0x1942d1(0x207));}async[_0xe0519b(0x1e4)](_0x5e8b6c,_0x4da091=!0x1){const _0x4e0a72=_0xe0519b,{connection:_0x1ef003}=this[_0x4e0a72(0x1ba)][_0x4e0a72(0x158)][_0x4e0a72(0x1c4)](_0x52e86);l[_0x4e0a72(0x225)][_0x4e0a72(0x213)](_0x1ef003,this[_0x4e0a72(0x1fa)])[_0x4e0a72(0x238)](_0x334775=>this[_0x4e0a72(0x1c0)](_0x334775))[_0x4e0a72(0x1af)](_0x2a6859=>{const _0x17dac7=_0x4e0a72;this[_0x17dac7(0x251)](_0x17dac7(0x1a4),_0x2a6859);}),this[_0x4e0a72(0x1dc)](this[_0x4e0a72(0x1d6)],_0x4e0a72(0x192),this[_0x4e0a72(0x1ea)][_0x4e0a72(0x240)](this)),this[_0x4e0a72(0x1dc)](this[_0x4e0a72(0x1d6)],_0x4e0a72(0x16e),(_0x701a9e,_0x981547)=>{const _0x4e3969=_0x4e0a72;this[_0x4e3969(0x251)](_0x4e3969(0x25d),_0x981547);}),this[_0x4e0a72(0x1dc)](this[_0x4e0a72(0x1d6)],_0x4e0a72(0x198),()=>{const _0x518591=_0x4e0a72;this[_0x518591(0x161)]=!0x1;});const _0x337cea=this[_0x4e0a72(0x21f)][_0x4e0a72(0x187)](_0x5e8b6c);this[_0x4e0a72(0x1b7)]=!0x0;const _0xa26447=await this[_0x4e0a72(0x1d6)][_0x4e0a72(0x164)](_0x1ef003,this[_0x4e0a72(0x23e)](_0x5e8b6c),_0x337cea);if(this[_0x4e0a72(0x166)]=_0xa26447[_0x4e0a72(0x166)],_0x4da091){if(!_0xa26447[_0x4e0a72(0x1a9)])return void this[_0x4e0a72(0x16a)]();this[_0x4e0a72(0x1b7)]=!0x1,this[_0x4e0a72(0x205)](),this[_0x4e0a72(0x23f)][_0x4e0a72(0x209)](),this[_0x4e0a72(0x230)]=_0xa26447[_0x4e0a72(0x188)],this[_0x4e0a72(0x23f)][_0x4e0a72(0x1eb)]=this[_0x4e0a72(0x230)],await this[_0x4e0a72(0x190)](_0x5e8b6c,_0xa26447,_0x4e0a72(0x21d));}else await this[_0x4e0a72(0x1a7)](_0xa26447,_0x5e8b6c);this[_0x4e0a72(0x22a)](),this[_0x4e0a72(0x161)]=!0x0;}[_0xe0519b(0x22a)](){const _0x37e96c=_0xe0519b,_0x3a8a9b=this[_0x37e96c(0x1ba)][_0x37e96c(0x158)][_0x37e96c(0x1c4)](_0x49d947),_0x1dccc8=this[_0x37e96c(0x1ba)][_0x37e96c(0x158)][_0x37e96c(0x1c4)](_0x36c06e),_0x247053=_0x3a8a9b[_0x37e96c(0x22f)][_0x37e96c(0x1c4)](this[_0x37e96c(0x1fa)]);_0x247053&&_0x247053[_0x37e96c(0x1e7)]>0x1?_0x1dccc8[_0x37e96c(0x1d8)]():this[_0x37e96c(0x1dc)](_0x3a8a9b,_0x37e96c(0x1ec)+this[_0x37e96c(0x1fa)],()=>{const _0x6f109a=_0x37e96c;0x2===_0x3a8a9b[_0x6f109a(0x22f)][_0x6f109a(0x1c4)](this[_0x6f109a(0x1fa)])[_0x6f109a(0x1e7)]&&_0x1dccc8[_0x6f109a(0x1d8)]();});}async[_0xe0519b(0x1ea)](_0x54ca49,_0x4be32a,_0x3594d7,_0x4930ac){const _0x44e02f=_0xe0519b;if(!this[_0x44e02f(0x1b7)]&&this[_0x44e02f(0x167)][_0x44e02f(0x1eb)]==_0x4be32a){const _0x31c6fd=this[_0x44e02f(0x160)](_0x3594d7,_0x4930ac);await this[_0x44e02f(0x229)](_0x31c6fd),this[_0x44e02f(0x1fe)](_0x31c6fd,_0x4be32a,_0x3594d7[_0x44e02f(0x23a)])||this[_0x44e02f(0x251)](_0x44e02f(0x181));}}async[_0xe0519b(0x214)](){const _0x1ee751=_0xe0519b;this[_0x1ee751(0x226)]();const {locale:_0x1cd3b2}=this[_0x1ee751(0x1ba)];let _0x54a39b;try{_0x54a39b=await this[_0x1ee751(0x1d6)][_0x1ee751(0x19e)]();}catch{const _0x389cf7=_0x4f1b52(_0x1cd3b2,_0x1ee751(0x1c7));return void this[_0x1ee751(0x16a)](_0x389cf7);}const _0x97d026=_0x54a39b[_0x1ee751(0x165)]||_0x54a39b[_0x1ee751(0x242)];if(this[_0x1ee751(0x168)]!==_0x97d026[_0x1ee751(0x23a)]){const _0xdb81e1=_0x4f1b52(_0x1cd3b2,_0x1ee751(0x24d));return void this[_0x1ee751(0x16a)](_0xdb81e1);}await this[_0x1ee751(0x1e4)](this[_0x1ee751(0x1ba)][_0x1ee751(0x1ee)][_0x1ee751(0x1fd)][_0x1ee751(0x159)][_0x1ee751(0x1f8)](),!0x0);}[_0xe0519b(0x226)](){const _0x307f3d=_0xe0519b;this[_0x307f3d(0x1d6)][_0x307f3d(0x1a3)](),this[_0x307f3d(0x1a6)]=[],clearTimeout(this[_0x307f3d(0x1cc)]),this[_0x307f3d(0x15f)](this[_0x307f3d(0x1d6)]);}[_0xe0519b(0x1c0)](_0x200171){const _0x17d2d0=_0xe0519b,_0x20dde0=this[_0x17d2d0(0x1ba)][_0x17d2d0(0x158)][_0x17d2d0(0x1c4)](_0x49d947);this[_0x17d2d0(0x1dc)](_0x20dde0,_0x17d2d0(0x1ec)+this[_0x17d2d0(0x1fa)],(_0x3e59f0,{session:_0x29a3be})=>{const _0x4421f3=_0x17d2d0;if(_0x29a3be['id']===_0x20dde0[_0x4421f3(0x25c)]){_0x3e59f0[_0x4421f3(0x1ae)]();const _0x13a02e=this[_0x4421f3(0x1ba)][_0x4421f3(0x158)][_0x4421f3(0x1da)](_0x4421f3(0x1f3))&&this[_0x4421f3(0x1ba)][_0x4421f3(0x158)][_0x4421f3(0x1c4)](_0x4421f3(0x1f3));let _0x5c8976=_0x29a3be[_0x4421f3(0x18a)];_0x13a02e&&_0x13a02e[_0x4421f3(0x201)]&&(_0x5c8976=_0x5c8976[_0x4421f3(0x227)](_0x114617=>_0x4421f3(0x1f6)!==_0x114617)),this[_0x4421f3(0x1ba)][_0x4421f3(0x158)][_0x4421f3(0x1c4)](_0x4421f3(0x24a))[_0x4421f3(0x247)](_0x5c8976,this[_0x4421f3(0x1fa)]);}}),_0x20dde0[_0x17d2d0(0x173)](this[_0x17d2d0(0x1fa)],_0x200171);}[_0xe0519b(0x259)](){const _0x38993a=_0xe0519b,_0x2d7f8e=this[_0x38993a(0x1ba)][_0x38993a(0x234)][_0x38993a(0x16f)];this[_0x38993a(0x1ba)][_0x38993a(0x234)][_0x38993a(0x16f)]=(..._0x461206)=>{const _0x1116d2=_0x38993a;if(!_0x461206[_0x461206[_0x1116d2(0x1e7)]-0x1][_0x1116d2(0x1b8)])throw new _0x3b39b4(_0x1116d2(0x1db),this);_0x2d7f8e[_0x1116d2(0x17b)](this[_0x1116d2(0x1ba)][_0x1116d2(0x234)],_0x461206);};}[_0xe0519b(0x1d7)](){const _0x5e37f1=_0xe0519b;this[_0x5e37f1(0x1ba)][_0x5e37f1(0x234)]['on'](_0x5e37f1(0x212),(_0x11b1a1,[_0x36cabb])=>{const _0x4510f3=_0x5e37f1;if(this[_0x4510f3(0x167)][_0x4510f3(0x1eb)])throw new _0x3b39b4(_0x4510f3(0x25b),this);_0x11b1a1[_0x4510f3(0x1e1)](),this[_0x4510f3(0x1cd)]();const _0x51e456=this[_0x4510f3(0x1ba)][_0x4510f3(0x15c)][_0x4510f3(0x1c4)](_0x4510f3(0x18b)),_0x290c6e=this[_0x4510f3(0x216)](_0x36cabb,_0x51e456);0x0==_0x290c6e[_0x4510f3(0x1e7)]&&_0x290c6e[_0x4510f3(0x24c)](new _0x21af05(0x0)),_0x11b1a1[_0x4510f3(0x186)]=this[_0x4510f3(0x1e4)](_0x290c6e)[_0x4510f3(0x238)](()=>{const _0x4da691=_0x4510f3;this[_0x4da691(0x1ba)][_0x4da691(0x158)][_0x4da691(0x1c4)](_0x52e86)[_0x4da691(0x1e0)](this),this[_0x4da691(0x1ba)][_0x4da691(0x234)][_0x4da691(0x15d)](_0x4da691(0x180));})[_0x4510f3(0x1af)](_0x298be2=>this[_0x4510f3(0x251)](_0x4510f3(0x1b5),_0x298be2))[_0x4510f3(0x19b)](()=>this[_0x4510f3(0x205)]());},{'priority':_0x5e37f1(0x199)}),this[_0x5e37f1(0x1ba)]['on'](_0x5e37f1(0x208),async(_0x9a264,[_0x21b04d,_0x406b56])=>{const _0xfc1112=_0x5e37f1;_0x9a264[_0xfc1112(0x1e1)]();const _0x1e72ac=this[_0xfc1112(0x1ba)][_0xfc1112(0x1ee)][_0xfc1112(0x1fd)][_0xfc1112(0x1f4)](_0x21b04d);if(!this[_0xfc1112(0x1ef)][_0xfc1112(0x1da)](_0x21b04d)){const _0x377a80=_0x406b56&&_0x406b56[_0xfc1112(0x234)]?_0x406b56[_0xfc1112(0x234)]:'',_0x56f4d4=_0x406b56&&_0x406b56[_0xfc1112(0x1e5)]?_0x406b56[_0xfc1112(0x1e5)]:{};await this[_0xfc1112(0x248)](_0x21b04d,_0x377a80,_0x56f4d4);}this[_0xfc1112(0x1ba)][_0xfc1112(0x1ee)][_0xfc1112(0x1fb)]({'isUndoable':!0x1},()=>{const _0x55d406=_0xfc1112;_0x1e72ac[_0x55d406(0x191)]=!0x0,this[_0x55d406(0x1ba)][_0x55d406(0x1ee)][_0x55d406(0x1fd)][_0x55d406(0x184)][_0x55d406(0x243)](_0x1e72ac);});},{'priority':_0x5e37f1(0x199)});}async[_0xe0519b(0x229)](_0x2141b6){const _0x5db0a1=_0xe0519b,_0x5e460d=this[_0x5db0a1(0x1ba)][_0x5db0a1(0x158)][_0x5db0a1(0x1c4)](_0xf72583),{connection:_0x964605}=this[_0x5db0a1(0x1ba)][_0x5db0a1(0x158)][_0x5db0a1(0x1c4)](_0x52e86),_0x41ee81=new Set();for(const _0x1a88ba of _0x2141b6){const _0x573673=_0x1a88ba[_0x5db0a1(0x210)];_0x573673&&!_0x5e460d[_0x5db0a1(0x25a)](_0x573673)&&_0x41ee81[_0x5db0a1(0x1bc)](_0x573673);}if(0x0===_0x41ee81[_0x5db0a1(0x231)])return;const _0x4aef82=await _0x3ad33f[_0x5db0a1(0x258)](_0x964605,Array[_0x5db0a1(0x162)](_0x41ee81));for(const _0x1a22af of _0x4aef82)_0x5e460d[_0x5db0a1(0x25a)](_0x1a22af['id'])||_0x5e460d[_0x5db0a1(0x196)](_0x1a22af);}[_0xe0519b(0x216)](_0x549017,_0x2cc445={}){const _0x39f3ca=_0xe0519b,_0x442264=this[_0x39f3ca(0x1ba)][_0x39f3ca(0x1ee)],_0x594434=[];let _0x339c5e=0x0;const _0x3a504e=_0x39f3ca(0x253)==typeof _0x549017?{'main':_0x549017}:_0x549017;for(const _0x3da2ee of Object[_0x39f3ca(0x15e)](_0x3a504e)){if(!this[_0x39f3ca(0x167)][_0x39f3ca(0x1b4)][_0x39f3ca(0x1da)](_0x3da2ee))throw new _0x3b39b4(_0x39f3ca(0x211),this);const _0x3f0e48=this[_0x39f3ca(0x1ba)][_0x39f3ca(0x234)][_0x39f3ca(0x1b6)](_0x3a504e[_0x3da2ee]),_0x2ae2de=this[_0x39f3ca(0x167)][_0x39f3ca(0x1f4)](_0x3da2ee),_0x2dd9c9=new _0x2fc6c0(_0x442264[_0x39f3ca(0x170)](_0x2ae2de,0x0),_0x3f0e48,_0x339c5e++);_0x594434[_0x39f3ca(0x24c)](_0x2dd9c9);for(const [_0xb8dc9a,_0x5e4b79]of _0x3f0e48[_0x39f3ca(0x16b)]){const _0x7917d1=_0x442264[_0x39f3ca(0x19d)](_0x442264[_0x39f3ca(0x172)](_0x2ae2de,_0x5e4b79[_0x39f3ca(0x1f9)][_0x39f3ca(0x185)][_0x39f3ca(0x221)]()),_0x442264[_0x39f3ca(0x172)](_0x2ae2de,_0x5e4b79[_0x39f3ca(0x1b0)][_0x39f3ca(0x185)][_0x39f3ca(0x221)]())),_0x486a0d=new _0x5a1137(_0xb8dc9a,null,_0x7917d1,_0x442264[_0x39f3ca(0x16b)],!0x0,_0x339c5e++);_0x594434[_0x39f3ca(0x24c)](_0x486a0d);}}if(_0x2cc445)for(const [_0x16d9b6,_0x1fafed]of Object[_0x39f3ca(0x1b1)](_0x2cc445)){const _0x3c6c80=_0x442264[_0x39f3ca(0x1fd)][_0x39f3ca(0x1f4)](_0x16d9b6);if(!_0x3c6c80)throw new _0x3b39b4(_0x39f3ca(0x20c),null);for(const [_0x41dcef,_0x152437]of Object[_0x39f3ca(0x1b1)](_0x1fafed))if(null!==_0x152437){const _0x4eaf72=new _0x49c7b1(_0x3c6c80,_0x41dcef,null,_0x152437,_0x339c5e++);_0x594434[_0x39f3ca(0x24c)](_0x4eaf72);}}return _0x594434;}async[_0xe0519b(0x248)](_0x102eba,_0x599209,_0x47b16a){const _0x59c71a=_0xe0519b;this[_0x59c71a(0x216)]({[_0x102eba]:_0x599209},{[_0x102eba]:_0x47b16a})[_0x59c71a(0x20a)]((_0x324c93,_0x17ca0c)=>{const _0x409a45=_0x59c71a;_0x324c93[_0x409a45(0x1ff)]=this[_0x409a45(0x167)][_0x409a45(0x1eb)]+_0x17ca0c,_0x324c93[_0x409a45(0x1c8)]=!0x0,this[_0x409a45(0x1c6)](_0x324c93);}),this[_0x59c71a(0x241)](),await this[_0x59c71a(0x1f5)]();}async[_0xe0519b(0x1a7)](_0x373757,_0x530d0a){const _0x4a1645=_0xe0519b;let _0x41b182;this[_0x4a1645(0x230)]=_0x373757[_0x4a1645(0x188)];const _0x260daa=_0x373757[_0x4a1645(0x1a9)]&&!_0x373757[_0x4a1645(0x1e2)],_0x39e10c=_0x260daa?0x0:_0x373757[_0x4a1645(0x234)][_0x4a1645(0x1ff)];if(_0x530d0a[_0x4a1645(0x20a)](_0xed36a=>{const _0x33931f=_0x4a1645;_0xed36a[_0x33931f(0x1c8)]=!0x0,_0xed36a[_0x33931f(0x1c5)]=_0x373757[_0x33931f(0x236)],_0xed36a[_0x33931f(0x210)]=null;}),_0x260daa)_0x41b182=_0x530d0a,this[_0x4a1645(0x257)](_0x41b182,_0x260daa);else{if(_0x373757[_0x4a1645(0x1e2)]){const _0x18afe2=this[_0x4a1645(0x216)](_0x373757[_0x4a1645(0x1e2)]);this[_0x4a1645(0x167)][_0x4a1645(0x159)][_0x4a1645(0x1eb)]=-_0x18afe2[_0x4a1645(0x1e7)],_0x18afe2[_0x4a1645(0x20a)](_0x5c30e1=>{const _0x393474=_0x4a1645;_0x5c30e1[_0x393474(0x1ff)]-=_0x18afe2[_0x393474(0x1e7)],_0x5c30e1[_0x393474(0x1c5)]=_0x373757[_0x393474(0x236)],_0x5c30e1[_0x393474(0x1c8)]=!0x0,_0x5c30e1[_0x393474(0x210)]=null;}),this[_0x4a1645(0x257)](_0x18afe2,!0x0),this[_0x4a1645(0x23f)][_0x4a1645(0x1eb)]=-_0x18afe2[_0x4a1645(0x1e7)]+this[_0x4a1645(0x230)],this[_0x4a1645(0x1e6)](_0x18afe2);}this[_0x4a1645(0x167)][_0x4a1645(0x159)][_0x4a1645(0x1eb)]=_0x39e10c,_0x41b182=this[_0x4a1645(0x160)](_0x373757[_0x4a1645(0x234)],_0x373757[_0x4a1645(0x232)]),await this[_0x4a1645(0x229)](_0x41b182),this[_0x4a1645(0x257)](_0x41b182,_0x260daa);}_0x373757[_0x4a1645(0x23a)]&&(this[_0x4a1645(0x21f)][_0x4a1645(0x1f2)](_0x41b182,_0x373757[_0x4a1645(0x23a)]),this[_0x4a1645(0x168)]=_0x373757[_0x4a1645(0x23a)]),this[_0x4a1645(0x23f)][_0x4a1645(0x1eb)]=_0x39e10c+this[_0x4a1645(0x230)],this[_0x4a1645(0x1e6)](_0x41b182),_0x530d0a[_0x4a1645(0x227)](_0x1a7ca1=>{const _0x20b859=_0x4a1645,_0x10f854=this[_0x20b859(0x1cb)](_0x1a7ca1);return _0x10f854&&!this[_0x20b859(0x1ef)][_0x20b859(0x1da)](_0x10f854);})[_0x4a1645(0x20a)]((_0x17fa1f,_0xe2cc96)=>{const _0x4aef96=_0x4a1645;_0x17fa1f[_0x4aef96(0x1ff)]=this[_0x4aef96(0x167)][_0x4aef96(0x1eb)]+_0xe2cc96,this[_0x4aef96(0x1c6)](_0x17fa1f);}),this[_0x4a1645(0x17d)]()?(this[_0x4a1645(0x20e)]=0x0,this[_0x4a1645(0x241)](!0x0),await this[_0x4a1645(0x1f5)]()):(this[_0x4a1645(0x1b7)]=!0x1,this[_0x4a1645(0x205)]());}[_0xe0519b(0x251)](_0x4f73d4,_0x5e72a6){const _0x121d19=_0xe0519b,_0xacf8da=_0x5e72a6&&_0x5e72a6[_0x121d19(0x1e3)];if(_0xacf8da&&_0xacf8da[_0x121d19(0x1d3)](_0x121d19(0x254)))throw _0x5e72a6;const _0x4a1cb1=this[_0x121d19(0x1ba)][_0x121d19(0x158)][_0x121d19(0x1c4)](_0x52e86);throw this[_0x121d19(0x1b7)]=!0x0,_0x4a1cb1[_0x121d19(0x1a3)](),this[_0x121d19(0x1ba)][_0x121d19(0x233)](_0x121d19(0x1a2)),new _0x3b39b4(_0x4f73d4,this[_0x121d19(0x1ba)],_0xacf8da?{'originalError':_0xacf8da}:void 0x0);}[_0xe0519b(0x1c6)](_0x546940){const _0x3dcaf3=_0xe0519b;this[_0x3dcaf3(0x224)][_0x3dcaf3(0x1da)](_0x546940)||(this[_0x3dcaf3(0x224)][_0x3dcaf3(0x1bc)](_0x546940),this[_0x3dcaf3(0x1a6)][_0x3dcaf3(0x24c)](_0x546940),this[_0x3dcaf3(0x15a)]||_0x3dcaf3(0x193)==_0x546940[_0x3dcaf3(0x223)]&&!_0x546940[_0x3dcaf3(0x1ad)]||this[_0x3dcaf3(0x1cd)]());}[_0xe0519b(0x241)](_0x7c9535=!0x1){const _0x3f1543=_0xe0519b;!_0x7c9535&&this[_0x3f1543(0x1b7)]||(this[_0x3f1543(0x1b7)]=!0x0,clearTimeout(this[_0x3f1543(0x1cc)]),this[_0x3f1543(0x1cc)]=setTimeout(()=>{const _0x4f11ef=_0x3f1543;this[_0x4f11ef(0x1bf)]()[_0x4f11ef(0x238)](_0x42ca48=>{const _0x431260=_0x4f11ef;_0x42ca48&&(this[_0x431260(0x205)](),this[_0x431260(0x1b7)]=!0x1);})[_0x4f11ef(0x1af)](_0x2c393a=>{const _0x4d0966=_0x4f11ef;this[_0x4d0966(0x205)](),this[_0x4d0966(0x1b7)]=!0x1,function(_0x3a12b2){const _0x20c7d9=_0x4d0966;return _0x3a12b2[_0x20c7d9(0x1e3)][_0x20c7d9(0x1d3)](_0x20c7d9(0x17f))||_0x3a12b2[_0x20c7d9(0x1e3)][_0x20c7d9(0x1d3)](_0x20c7d9(0x21e))||_0x3a12b2[_0x20c7d9(0x1e3)][_0x20c7d9(0x1d3)](_0x20c7d9(0x256));}(_0x2c393a)||this[_0x4d0966(0x251)](_0x2c393a[_0x4d0966(0x1e3)],_0x2c393a);});},this[_0x3f1543(0x20e)]));}[_0xe0519b(0x1f5)](){return new Promise(_0x5daeb3=>{const _0x5e9f80=_0x34bc;this['on'](_0x5e9f80(0x252),()=>{_0x5daeb3();});});}async[_0xe0519b(0x1bf)](){const _0x1c2b83=_0xe0519b,_0x24bc65=this[_0x1c2b83(0x1ba)][_0x1c2b83(0x158)][_0x1c2b83(0x1c4)](_0x36c06e);if(this[_0x1c2b83(0x22d)]()&&(_0x24bc65[_0x1c2b83(0x1d8)](),this[_0x1c2b83(0x1d1)]=!0x1),!this[_0x1c2b83(0x17d)]())return!0x0;const _0x416815=[...this[_0x1c2b83(0x1a6)]];for(const _0x2ad777 of _0x416815)_0x2ad777[_0x1c2b83(0x20b)]=this[_0x1c2b83(0x167)][_0x1c2b83(0x159)][_0x1c2b83(0x177)](_0x2ad777);const _0x73af78=this[_0x1c2b83(0x21f)][_0x1c2b83(0x187)](_0x416815),_0xae32d1=Q++,_0x5b3c3c=this[_0x1c2b83(0x23e)](_0x416815),_0x4caa59=await this[_0x1c2b83(0x1d6)][_0x1c2b83(0x1a5)](_0x5b3c3c,_0x5b3c3c[_0x1c2b83(0x1ff)],_0x73af78);try{return await this[_0x1c2b83(0x190)](_0x416815,_0x4caa59,_0xae32d1);}catch(_0x218617){return this[_0x1c2b83(0x251)](_0x1c2b83(0x1ac),_0x218617);}}async[_0xe0519b(0x190)](_0x407513,_0x5dff70,_0x515df3){const _0x4b4e22=_0xe0519b;if(_0x4b4e22(0x16e)in _0x5dff70)throw _0x5dff70[_0x4b4e22(0x16e)];let _0x4d8f77=!0x1;if(_0x5dff70[_0x4b4e22(0x1a9)]){_0x5dff70[_0x4b4e22(0x23a)]&&(this[_0x4b4e22(0x168)]=_0x5dff70[_0x4b4e22(0x23a)]),this[_0x4b4e22(0x1a6)]=this[_0x4b4e22(0x1a6)][_0x4b4e22(0x227)](_0x2bf761=>!_0x407513[_0x4b4e22(0x21c)](_0x2bf761));for(const _0x4e54a2 of _0x407513)_0x4e54a2[_0x4b4e22(0x1c5)]=_0x4b4e22(0x203)in _0x5dff70&&_0x5dff70[_0x4b4e22(0x203)]||void 0x0;Y(_0x407513,_0x5dff70[_0x4b4e22(0x1eb)]-_0x407513[_0x4b4e22(0x1e7)]),this[_0x4b4e22(0x1e6)](_0x407513);const _0x151dab=_0x407513[_0x4b4e22(0x227)](_0x1f9e09=>{const _0x3340cd=_0x4b4e22;if(!_0x1f9e09[_0x3340cd(0x1c8)])return!0x1;const _0x57447f=this[_0x3340cd(0x1cb)](_0x1f9e09);return _0x57447f&&!this[_0x3340cd(0x1ef)][_0x3340cd(0x1da)](_0x57447f);});Y(_0x151dab,this[_0x4b4e22(0x167)][_0x4b4e22(0x1eb)]),this[_0x4b4e22(0x257)](_0x151dab),_0x4d8f77=!0x0,this[_0x4b4e22(0x20e)]=this[_0x4b4e22(0x1be)];}else{const _0x487180=this[_0x4b4e22(0x160)](_0x5dff70[_0x4b4e22(0x234)],_0x5dff70[_0x4b4e22(0x232)])[_0x4b4e22(0x227)](_0x58392c=>_0x58392c[_0x4b4e22(0x1ff)]>=this[_0x4b4e22(0x17e)]);_0x487180[_0x4b4e22(0x20a)](_0x150bf5=>this[_0x4b4e22(0x202)](_0x150bf5)),this[_0x4b4e22(0x1a6)]=this[_0x4b4e22(0x1a6)][_0x4b4e22(0x227)](_0x463871=>!_0x463871[_0x4b4e22(0x1c8)]||!this[_0x4b4e22(0x1ef)][_0x4b4e22(0x1da)](this[_0x4b4e22(0x1cb)](_0x463871))),this[_0x4b4e22(0x1a6)][_0x4b4e22(0x1e7)]&&Y(this[_0x4b4e22(0x1a6)],this[_0x4b4e22(0x1a6)][0x0][_0x4b4e22(0x1ff)]),await this[_0x4b4e22(0x229)](_0x487180),_0x4d8f77=this[_0x4b4e22(0x1fe)](_0x487180,_0x5dff70[_0x4b4e22(0x1eb)],_0x5dff70[_0x4b4e22(0x23a)]),this[_0x4b4e22(0x20e)]=Math[_0x4b4e22(0x16c)](this[_0x4b4e22(0x20e)]/0x2);}return _0x4d8f77?!this[_0x4b4e22(0x17d)]()||(this[_0x4b4e22(0x241)](!0x0),!0x1):this[_0x4b4e22(0x251)](_0x4b4e22(0x1f0));}[_0xe0519b(0x1fe)](_0x3bffd6,_0x2ccd0b,_0x8fb592){const _0x1fa7a4=_0xe0519b;try{const _0x3f7f0e={'document':this[_0x1fa7a4(0x167)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x52f50e,operationsB:_0x2bf7a9,originalOperations:_0xf175c9}=_0x5237f5(_0x3bffd6,this[_0x1fa7a4(0x1a6)],_0x3f7f0e);Y(_0x52f50e,this[_0x1fa7a4(0x167)][_0x1fa7a4(0x1eb)]),Y(_0x2bf7a9,_0x2ccd0b);for(const _0x8e6bc6 of _0x52f50e){const _0x2824ca=_0xf175c9[_0x1fa7a4(0x1c4)](_0x8e6bc6);_0x8e6bc6[_0x1fa7a4(0x210)]=_0x2824ca?_0x2824ca[_0x1fa7a4(0x210)]:null;}_0x8fb592&&(this[_0x1fa7a4(0x21f)][_0x1fa7a4(0x1f2)](_0x3bffd6,_0x8fb592),this[_0x1fa7a4(0x168)]=_0x8fb592),this[_0x1fa7a4(0x1a6)]=[..._0x2bf7a9],this[_0x1fa7a4(0x257)](_0x52f50e),this[_0x1fa7a4(0x1e6)](_0x3bffd6);}catch(_0x3c780a){return console[_0x1fa7a4(0x16e)](_0x3c780a),!0x1;}return!0x0;}[_0xe0519b(0x257)](_0x233e00,_0x44769b=!0x1){const _0x595da6=_0xe0519b;this[_0x595da6(0x1ba)][_0x595da6(0x1ee)][_0x595da6(0x1fb)]({'isUndoable':!0x1,'isLocal':!0x1},_0x1cd7df=>{const _0x1bdd23=_0x595da6;for(const _0x28853f of _0x233e00)this[_0x1bdd23(0x224)][_0x1bdd23(0x1bc)](_0x28853f),this[_0x1bdd23(0x202)](_0x28853f),_0x1cd7df[_0x1bdd23(0x24b)][_0x1bdd23(0x19c)](_0x28853f),this[_0x1bdd23(0x1ba)][_0x1bdd23(0x1ee)][_0x1bdd23(0x245)](_0x28853f);});}[_0xe0519b(0x202)](_0x800f5e){const _0x55b377=_0xe0519b,_0x4c2a9b=this[_0x55b377(0x1cb)](_0x800f5e);_0x4c2a9b&&this[_0x55b377(0x1ef)][_0x55b377(0x1bc)](_0x4c2a9b);}[_0xe0519b(0x1cb)](_0x3602e3){const _0x18f1e4=_0xe0519b;let _0x4cc1fc,_0x1547f2;switch(_0x3602e3[_0x18f1e4(0x223)]){case _0x18f1e4(0x1a1):_0x4cc1fc=_0x3602e3[_0x18f1e4(0x206)][_0x18f1e4(0x1d9)];break;case _0x18f1e4(0x193):if(_0x1547f2=_0x3602e3[_0x18f1e4(0x24f)],!_0x1547f2)return null;_0x4cc1fc=_0x1547f2[_0x18f1e4(0x1d9)];break;case _0x18f1e4(0x218):_0x4cc1fc=_0x3602e3[_0x18f1e4(0x1d9)];break;case _0x18f1e4(0x178):_0x4cc1fc=_0x3602e3[_0x18f1e4(0x17a)];break;case _0x18f1e4(0x250):_0x4cc1fc=_0x3602e3[_0x18f1e4(0x25f)][_0x18f1e4(0x1d9)];break;default:return null;}return _0x4cc1fc[_0x18f1e4(0x1d2)];}[_0xe0519b(0x1e6)](_0x2e61b1){const _0x201d22=_0xe0519b;_0x2e61b1[_0x201d22(0x20a)](_0x40fa72=>{const _0x187a7a=_0x201d22,_0x1f2b70=_0x40fa72[_0x187a7a(0x25e)]();_0x1f2b70[_0x187a7a(0x210)]=_0x40fa72[_0x187a7a(0x210)],_0x1f2b70[_0x187a7a(0x1c8)]=!!_0x40fa72[_0x187a7a(0x1c8)],_0x1f2b70[_0x187a7a(0x1c5)]=_0x40fa72[_0x187a7a(0x1c5)],_0x1f2b70[_0x187a7a(0x1ff)]+=this[_0x187a7a(0x230)],_0x40fa72[_0x187a7a(0x16d)]&&this[_0x187a7a(0x1ed)][_0x187a7a(0x1bc)](_0x1f2b70),this[_0x187a7a(0x23f)][_0x187a7a(0x19c)](_0x1f2b70);});}[_0xe0519b(0x16a)](_0x185a33){const _0x3959a8=_0xe0519b,_0x320e91=this[_0x3959a8(0x1ba)][_0x3959a8(0x158)][_0x3959a8(0x1c4)](_0x3959a8(0x1f7)),_0xc2cc55=this[_0x3959a8(0x1ba)][_0x3959a8(0x22e)];_0x185a33||(_0x185a33=_0x4f1b52(_0xc2cc55,_0x3959a8(0x200))),_0x320e91[_0x3959a8(0x182)](_0x185a33,{'title':_0x4f1b52(_0xc2cc55,_0x3959a8(0x174)),'namespace':_0x3959a8(0x179)}),this[_0x3959a8(0x1fc)]=!0x0,clearTimeout(this[_0x3959a8(0x1cc)]),this[_0x3959a8(0x1a6)]=[],this[_0x3959a8(0x1ba)][_0x3959a8(0x158)][_0x3959a8(0x1c4)](_0x52e86)[_0x3959a8(0x1a3)]();}[_0xe0519b(0x1cd)](){const _0x3c0d5a=_0xe0519b;this[_0x3c0d5a(0x15a)]||(this[_0x3c0d5a(0x15a)]=this[_0x3c0d5a(0x1ba)][_0x3c0d5a(0x158)][_0x3c0d5a(0x1c4)](_0x282206)[_0x3c0d5a(0x1bc)](_0x4f1b52(this[_0x3c0d5a(0x1ba)][_0x3c0d5a(0x22e)],_0x3c0d5a(0x1df))));}[_0xe0519b(0x205)](){const _0x3dfb9c=_0xe0519b;this[_0x3dfb9c(0x15a)]&&(this[_0x3dfb9c(0x1ba)][_0x3dfb9c(0x158)][_0x3dfb9c(0x1c4)](_0x282206)[_0x3dfb9c(0x1b2)](this[_0x3dfb9c(0x15a)]),this[_0x3dfb9c(0x15a)]=null);}[_0xe0519b(0x23e)](_0x32b568){const _0x224edf=_0xe0519b,_0x3b8da0=_0x32b568[_0x224edf(0x1dd)](_0xf82385=>_0xf82385[_0x224edf(0x235)]());return this[_0x224edf(0x19a)][_0x224edf(0x1ab)](_0x3b8da0);}[_0xe0519b(0x160)](_0x32a1eb,_0x371d41){const _0x51bc05=_0xe0519b;return this[_0x51bc05(0x19a)][_0x51bc05(0x189)](_0x32a1eb)[_0x51bc05(0x1dd)]((_0x3d82af,_0x4f463e)=>{const _0x4d6d39=_0x51bc05,_0xf060ba=_0x4d6d39(0x212)==_0x371d41[_0x4f463e][_0x4d6d39(0x223)];if(_0x4d6d39(0x20f)==_0x3d82af[_0x4d6d39(0x1a0)]){const _0x3ef1a9=_0x3d82af[_0x4d6d39(0x206)][_0x4d6d39(0x1d9)];!this[_0x4d6d39(0x167)][_0x4d6d39(0x1f4)](_0x3ef1a9)&&(this[_0x4d6d39(0x167)][_0x4d6d39(0x1d0)](_0x4d6d39(0x23c),_0x3ef1a9)[_0x4d6d39(0x15b)]=!0x1);}const _0x524e8a=_0x36fc84[_0x4d6d39(0x1c1)](_0x3d82af,this[_0x4d6d39(0x167)]);return _0x524e8a[_0x4d6d39(0x20b)]=_0x3d82af[_0x4d6d39(0x20b)],_0x524e8a[_0x4d6d39(0x1c8)]=_0xf060ba,_0x524e8a[_0x4d6d39(0x210)]=_0xf060ba?null:_0x371d41[_0x4f463e][_0x4d6d39(0x1c3)],_0x524e8a[_0x4d6d39(0x16d)]=_0x4d6d39(0x24e)===_0x371d41[_0x4f463e][_0x4d6d39(0x223)],_0x524e8a[_0x4d6d39(0x1c5)]=_0x371d41[_0x4f463e][_0x4d6d39(0x1c5)],_0x524e8a;});}[_0xe0519b(0x1de)](){const _0xe23b1=_0xe0519b;this[_0xe23b1(0x1d1)]=!0x0,this[_0xe23b1(0x22d)]()?this[_0xe23b1(0x241)]():this[_0xe23b1(0x1d1)]=!0x1;}[_0xe0519b(0x22d)](){const _0x3a37ac=_0xe0519b,_0x4b3996=this[_0x3a37ac(0x1ba)][_0x3a37ac(0x158)][_0x3a37ac(0x1c4)](_0x49d947)[_0x3a37ac(0x22f)][_0x3a37ac(0x1c4)](this[_0x3a37ac(0x1fa)]);return!this[_0x3a37ac(0x1ba)][_0x3a37ac(0x183)]&&!!_0x4b3996&&_0x4b3996[_0x3a37ac(0x1e7)]>0x1&&this[_0x3a37ac(0x1d1)];}[_0xe0519b(0x17d)](){const _0x346d0c=_0xe0519b;return this[_0x346d0c(0x1a6)][_0x346d0c(0x1e7)]>0x0||this[_0x346d0c(0x22d)]();}}export{l as RealTimeCollaborationClient};class X extends Error{}function Y(_0x1711d9,_0x1efc0e){const _0x250d2d=_0xe0519b;for(const _0xc2c76 of _0x1711d9)_0xc2c76[_0x250d2d(0x1ff)]=_0x1efc0e++;}function _0x3300(){const _0x2d8fed=['stopListening','_decompressOperations','_isConnected','from','isPremiumPlugin','connect','currentDocumentSession','sessionId','_document','_lastSyncedOperationId','removeFromReconnectionStack','_handleReconnectionError','markers','round','_isDisconnection','error','set','createPositionAt','4GMFrmU','createPositionFromPath','register','Synchronization\x20issue','selection','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','isUndoneOperation','addRoot','real-time-collaboration','affectedSelectable','apply','define','_shouldSendUpdate','_lastServerVersion','cloud-services-internal-error:\x20Not\x20connected.','ready','realtimecollaborationclient-init-service-incorrect-server-operation','showWarning','isReadOnly','differ','path','return','getIdOfTheLastOperation','offset','decompress','permissions','rootsAttributes','4LEZASU','editing','code','280gBmRGl','_handleServerResponse','_isLoaded','operationsReceived','marker','6657190ZhkSvD','collaboration','addUser','unregister','disconnected','high','_compressor','finally','addOperation','createRange','getDocumentDetails','rtc-destroyed','__className','insert','realtimecollaborationclient-error','disconnect','realtimecollaborationclient-init-session-connection-error','sendOperations','_bufferedOperations','_handleInitialConnectionData','4011804ySLodC','wereChangesApplied','lastSyncVersion','compress','realtimecollaborationclient-sendbufferedoperations','affectsData','off','catch','end','entries','remove','409','roots','realtimecollaborationclient-init-connection-failed','parse','_isPendingUpdate','suppressErrorInCollaboration','collaboration-missing-channelid','editor','13733707EdaZqA','add','disableReadOnlyMode','_baseBufferDelay','_sendBufferedOperations','_initSessionsHandling','fromJSON','collaboration.channelId','userId','get','createdAt','_saveOperationInBuffer','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','_isInit','getOperationAuthor','rtc-offline','_getAffectedRoot','_sendBufferedOperationsDelayId','_setPendingAction','_operationToId','change:hasDomSelection','createRoot','_hasSelectionChanged','rootName','startsWith','cloudServices.bundleVersion','3160053QGBlwm','_service','_setUpDataInit','createUserMarkerOperations','root','has','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','listenTo','map','_refreshUserSelectionMarkers','PENDING_ACTION_SENDING_DATA','addToReconnectionStack','stop','initData','message','_connectService','attributes','_updateServerHistory','length','15861890CniXny','404','_handleReceivedOperations','version','sessionAdd:','_disconnectionOperations','model','_knownRootNames','realtimecollaborationclient-handleserverresponse','102411gzyEYI','setIdForTheLastOperation','CommentsOnly','getRoot','_waitUntilSynced','document:write','Notification','getOperations','start','_channelId','enqueueChange','_hasSynchronizationProblem','document','_handleExternalOperations','baseVersion','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.','isEnabled','_addKnownRoot','lastOperationAcceptedAt','state','_clearPendingAction','position','reconnect','loadRoot','reset','forEach','wasUndone','multi-root-editor-root-attributes-no-root','view','_currentBufferDelay','InsertOperation','_authorId','realtimecollaborationclient-init-non-existent-root','init','getConnectedSessions','_connectAfterSessionHasBeenFlushed','RealTimeCollaborationClient','_getOperationsFromInitData','_handleReconnectionResponse','addRootAttribute','725810qwuyNf','isDocumentOperation','destroy','includes','reconnection:\x20flushed\x20session','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','_operationIdentifier','cloudDocumentVersion','slice','requires','type','_knownOperations','CollaborativeEditingService','_disconnectService','filter','10HLGAsp','_fetchMissingUsers','_handleSendingSelectionMarkers','isOfficialPlugin','_isEditingAllowed','_shouldSendSelectionUpdate','locale','channelSessions','_offset','size','metadata','enableReadOnlyMode','data','toJSON','sessionCreatedAt','12ilZgOX','then','connected','lastOperationId','7TPEYgF','$root','change:_isEditingAllowed','_compressOperations','serverHistory','bind','_sendBufferedOperationsDelayed','lastDocumentSession','_bufferRootLoad','_ignoredOperations','applyOperation','connection','setPermissions','_loadRoot','change:range','Permissions','batch','push','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.','cs:removeUser','newRange','move','_crash','change:_isPendingUpdate','string','realtimecollaborationclient','pluginName','cloud-services-internal-error:\x20Request\x20timeout.','_applyOperationsSet','getMany','_initThrowingOnDataSet','getUser','realtimecollaborationclient-init-document-already-initialized','mySessionId','realtimecollaborationclient-init-service-internal-error','clone','targetPosition','directChange','plugins','history','_pendingAction','_isAttached','config','fire','keys'];_0x3300=function(){return _0x2d8fed;};return _0x3300();}function _0x34bc(_0x2bd80b,_0x84c193){const _0x33002b=_0x3300();return _0x34bc=function(_0x34bc7c,_0x4590db){_0x34bc7c=_0x34bc7c-0x157;let _0x877e1f=_0x33002b[_0x34bc7c];return _0x877e1f;},_0x34bc(_0x2bd80b,_0x84c193);}class Z{[_0xe0519b(0x244)];[_0xe0519b(0x1ce)];constructor(_0x139657){const _0x571d79=_0xe0519b;this[_0x571d79(0x244)]=_0x139657,this[_0x571d79(0x1ce)]=new WeakMap();}[_0xe0519b(0x187)](_0x1652a4){const _0x5b5ae5=_0xe0519b;let _0x474423=_0x1652a4[_0x5b5ae5(0x1e7)];for(;_0x474423--;){const _0x2d3879=_0x1652a4[_0x474423];if(!this[_0x5b5ae5(0x244)][_0x5b5ae5(0x1da)](_0x2d3879)){if(!this[_0x5b5ae5(0x1ce)][_0x5b5ae5(0x1da)](_0x2d3879)){const _0x46302c=_0x2ff451()[_0x5b5ae5(0x221)](0x1,0x12);this[_0x5b5ae5(0x1ce)][_0x5b5ae5(0x16f)](_0x2d3879,_0x46302c);}return this[_0x5b5ae5(0x1ce)][_0x5b5ae5(0x1c4)](_0x2d3879);}}}[_0xe0519b(0x1f2)](_0x2cff73,_0x2081ca){const _0x4a8814=_0xe0519b;if(!_0x2081ca)return;let _0x3498a1=_0x2cff73[_0x4a8814(0x1e7)];for(;_0x3498a1--;){const _0x43c453=_0x2cff73[_0x3498a1];this[_0x4a8814(0x244)][_0x4a8814(0x1da)](_0x43c453)||this[_0x4a8814(0x1ce)][_0x4a8814(0x16f)](_0x43c453,_0x2081ca);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16e289=_0xfa12;function _0xfa12(_0x2209f5,_0x2e8d3b){const _0x3d984e=_0x3d98();return _0xfa12=function(_0xfa12d8,_0x57b319){_0xfa12d8=_0xfa12d8-0x196;let _0x338215=_0x3d984e[_0xfa12d8];return _0x338215;},_0xfa12(_0x2209f5,_0x2e8d3b);}(function(_0x410d12,_0x23764f){const _0x2b312f=_0xfa12,_0x4305d5=_0x410d12();while(!![]){try{const _0x3828b1=-parseInt(_0x2b312f(0x197))/0x1+-parseInt(_0x2b312f(0x1be))/0x2*(-parseInt(_0x2b312f(0x1a7))/0x3)+-parseInt(_0x2b312f(0x1a2))/0x4*(-parseInt(_0x2b312f(0x1c0))/0x5)+-parseInt(_0x2b312f(0x1cc))/0x6+-parseInt(_0x2b312f(0x1c3))/0x7*(parseInt(_0x2b312f(0x196))/0x8)+-parseInt(_0x2b312f(0x1c8))/0x9*(parseInt(_0x2b312f(0x1bd))/0xa)+parseInt(_0x2b312f(0x1b9))/0xb;if(_0x3828b1===_0x23764f)break;else _0x4305d5['push'](_0x4305d5['shift']());}catch(_0x28d192){_0x4305d5['push'](_0x4305d5['shift']());}}}(_0x3d98,0xe0c3a));import{ContextPlugin as _0x2ae60e}from'ckeditor5/src/core.js';function _0x3d98(){const _0x4d0440=['context','sessionId','getUserBySessionId','role','add','fire','getUserSessions','_handleSessionAdd','3744zXxQmL','allConnectedUsers','_uniqueUsersCount','set','register','49719dZylsf','sessionAdd:','sessions-register-already-registered','listenTo','channelSessions','size','isPremiumPlugin','pluginName','_handleSessionRemove','plugins','_createUser','Sessions','assign','has','init','_registeredSessions','get','_users','34017401fHiYEB','orderNumber','requires','sessions-unregister-not-exist','10oVxjOU','16qZkhaC','clear','4860SxorKb','user','addUser','6609981sOsQve','delete','getUser','isMe','remove','3051963hmPVgC','change:state','defineMe','stopListening','2888796dpsira','connection','channelConnectedUsers','isOfficialPlugin','connected','forEach','state','unregister','mySessionId','8LnsqDd','1449377YphruP','getUserRole','values'];_0x3d98=function(){return _0x4d0440;};return _0x3d98();}import{Collection as _0x5009d7,CKEditorError as _0xb6397c}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x138a5c}from'./websocketgateway.js';import{Users as _0x5ebe88}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0x2ae60e{[_0x16e289(0x1ab)];[_0x16e289(0x1ce)];[_0x16e289(0x1a3)];[_0x16e289(0x1b6)];[_0x16e289(0x1a4)];[_0x16e289(0x1b8)];static get[_0x16e289(0x1ae)](){const _0x47bf11=_0x16e289;return _0x47bf11(0x1b2);}static get[_0x16e289(0x1cf)](){return!0x0;}static get[_0x16e289(0x1ad)](){return!0x0;}static get[_0x16e289(0x1bb)](){return[_0x138a5c,_0x5ebe88];}constructor(_0x936a5d){const _0x3ad5d1=_0x16e289;super(_0x936a5d),this[_0x3ad5d1(0x1ab)]=new Map(),this[_0x3ad5d1(0x1ce)]=new Map(),this[_0x3ad5d1(0x1a3)]=new _0x5009d7(),this[_0x3ad5d1(0x1b6)]=new Map(),this[_0x3ad5d1(0x1a4)]=0x0,this[_0x3ad5d1(0x1b8)]=this[_0x3ad5d1(0x19a)][_0x3ad5d1(0x1b0)][_0x3ad5d1(0x1b7)](_0x5ebe88);}[_0x16e289(0x1b5)](){const _0xdd2671=_0x16e289,_0x29c33c=this[_0xdd2671(0x19a)][_0xdd2671(0x1b0)][_0xdd2671(0x1b7)](_0x138a5c);this[_0xdd2671(0x1aa)](_0x29c33c,_0xdd2671(0x1c9),(_0x2697cb,_0x2fa3d4,_0x356c28)=>{const _0x1c7e14=_0xdd2671;if(_0x1c7e14(0x1d0)!==_0x356c28)this[_0x1c7e14(0x1ab)][_0x1c7e14(0x1d1)](_0x449af5=>_0x449af5[_0x1c7e14(0x1bf)]()),this[_0x1c7e14(0x1ce)][_0x1c7e14(0x1d1)](_0x59775f=>_0x59775f[_0x1c7e14(0x1bf)]()),this[_0x1c7e14(0x1a3)][_0x1c7e14(0x1bf)]();else{for(const [_0x4cf643,_0x59ec80]of this[_0x1c7e14(0x1b6)])for(const _0x18b7d0 of _0x59ec80)this[_0x1c7e14(0x1a1)](_0x4cf643,_0x18b7d0);}}),this[_0xdd2671(0x1b1)](_0x29c33c[_0xdd2671(0x1cd)]['me'],!0x0);}[_0x16e289(0x1a6)](_0x2daefc,_0x482b90){const _0x363e46=_0x16e289;if(this[_0x363e46(0x1b6)][_0x363e46(0x1b4)](_0x2daefc))throw new _0xb6397c(_0x363e46(0x1a9),null,{'channelId':_0x2daefc});this[_0x363e46(0x1b6)][_0x363e46(0x1a5)](_0x2daefc,_0x482b90),this[_0x363e46(0x1ab)][_0x363e46(0x1a5)](_0x2daefc,new _0x5009d7()),this[_0x363e46(0x1ce)][_0x363e46(0x1a5)](_0x2daefc,new _0x5009d7()),this[_0x363e46(0x1aa)](_0x482b90,_0x363e46(0x19e),(_0x4c5549,_0x5bb46e)=>this[_0x363e46(0x1a1)](_0x2daefc,_0x5bb46e)),this[_0x363e46(0x1aa)](_0x482b90,_0x363e46(0x1c7),(_0x37cabd,_0x5d1cae)=>this[_0x363e46(0x1af)](_0x2daefc,_0x5d1cae));for(const _0x27408d of _0x482b90)this[_0x363e46(0x1a1)](_0x2daefc,_0x27408d);}[_0x16e289(0x1d3)](_0x280726){const _0x16319c=_0x16e289;if(!this[_0x16319c(0x1b6)][_0x16319c(0x1b4)](_0x280726))throw new _0xb6397c(_0x16319c(0x1bc),null,{'channelId':_0x280726});const _0x1c760a=this[_0x16319c(0x1b6)][_0x16319c(0x1b7)](_0x280726);this[_0x16319c(0x1cb)](_0x1c760a);for(const _0x3e9814 of _0x1c760a)_0x16319c(0x1d0)===this[_0x16319c(0x19a)][_0x16319c(0x1b0)][_0x16319c(0x1b7)](_0x138a5c)[_0x16319c(0x1d2)]&&this[_0x16319c(0x1af)](_0x280726,_0x3e9814);this[_0x16319c(0x1b6)][_0x16319c(0x1c4)](_0x280726),this[_0x16319c(0x1ab)][_0x16319c(0x1c4)](_0x280726),this[_0x16319c(0x1ce)][_0x16319c(0x1c4)](_0x280726);}get[_0x16e289(0x1d4)](){const _0x25de34=_0x16e289;return this[_0x25de34(0x19a)][_0x25de34(0x1b0)][_0x25de34(0x1b7)](_0x138a5c)[_0x25de34(0x1cd)][_0x25de34(0x19b)];}[_0x16e289(0x19c)](_0x467135){const _0x106c36=_0x16e289;for(const _0x3bc775 of this[_0x106c36(0x1ab)][_0x106c36(0x199)]())for(const _0x2291c1 of _0x3bc775)if(_0x2291c1['id']===_0x467135)return _0x2291c1[_0x106c36(0x1c1)];}[_0x16e289(0x1a0)](_0x5db4bd,_0x5ad540){const _0x3a7727=_0x16e289,_0x8f9400=_0x5ad540?[this[_0x3a7727(0x1ab)][_0x3a7727(0x1b7)](_0x5ad540)]:this[_0x3a7727(0x1ab)][_0x3a7727(0x199)](),_0x1f1c8e=new Set();for(const _0x46ee5a of _0x8f9400)for(const _0x55e888 of _0x46ee5a)_0x55e888[_0x3a7727(0x1c1)]['id']===_0x5db4bd['id']&&_0x1f1c8e[_0x3a7727(0x19e)](_0x55e888['id']);return _0x1f1c8e;}[_0x16e289(0x198)](_0x371bd1){const _0xa5a103=_0x16e289;for(const _0x35bb9c of this[_0xa5a103(0x1ab)][_0xa5a103(0x199)]())for(const _0x368461 of _0x35bb9c)if(_0x368461[_0xa5a103(0x1c1)]===_0x371bd1)return _0x368461[_0xa5a103(0x19d)];}[_0x16e289(0x1a1)](_0x20de8c,_0x573dc7){const _0x5cdf33=_0x16e289;if(_0x5cdf33(0x1d0)!==this[_0x5cdf33(0x19a)][_0x5cdf33(0x1b0)][_0x5cdf33(0x1b7)](_0x138a5c)[_0x5cdf33(0x1d2)])return;const _0x40c672=_0x573dc7[_0x5cdf33(0x1c1)],_0x32a0fa=this[_0x5cdf33(0x1b8)][_0x5cdf33(0x1c5)](_0x40c672['id'])||this[_0x5cdf33(0x1b1)](_0x40c672),_0x19a6b1=Object[_0x5cdf33(0x1b3)]({},_0x573dc7,{'user':_0x32a0fa});this[_0x5cdf33(0x1ab)][_0x5cdf33(0x1b7)](_0x20de8c)[_0x5cdf33(0x19e)](_0x19a6b1);const _0x39d560=this[_0x5cdf33(0x1ce)][_0x5cdf33(0x1b7)](_0x20de8c);_0x39d560[_0x5cdf33(0x1b4)](_0x32a0fa['id'])||_0x39d560[_0x5cdf33(0x19e)](_0x32a0fa),this[_0x5cdf33(0x1a3)][_0x5cdf33(0x1b4)](_0x32a0fa['id'])||this[_0x5cdf33(0x1a3)][_0x5cdf33(0x19e)](_0x32a0fa,_0x32a0fa[_0x5cdf33(0x1c6)]?0x0:void 0x0),this[_0x5cdf33(0x19f)](_0x5cdf33(0x1a8)+_0x20de8c,{'channelId':_0x20de8c,'session':_0x19a6b1});}[_0x16e289(0x1af)](_0x45885d,_0xf51469){const _0x59856d=_0x16e289;if(_0x59856d(0x1d0)!==this[_0x59856d(0x19a)][_0x59856d(0x1b0)][_0x59856d(0x1b7)](_0x138a5c)[_0x59856d(0x1d2)])return;const _0x58f2ad=this[_0x59856d(0x1ce)][_0x59856d(0x1b7)](_0x45885d),_0x21de41=_0xf51469[_0x59856d(0x1c1)];_0x21de41['id']&&(this[_0x59856d(0x1ab)][_0x59856d(0x1b7)](_0x45885d)[_0x59856d(0x1c7)](_0xf51469['id']),_0x58f2ad[_0x59856d(0x1b4)](_0x21de41['id'])&&!this[_0x59856d(0x1a0)](_0x21de41,_0x45885d)[_0x59856d(0x1ac)]&&_0x58f2ad[_0x59856d(0x1c7)](_0x21de41['id']),this[_0x59856d(0x1a3)][_0x59856d(0x1b7)](_0x21de41['id'])&&!this[_0x59856d(0x1a0)](_0x21de41)[_0x59856d(0x1ac)]&&this[_0x59856d(0x1a3)][_0x59856d(0x1c7)](_0x21de41['id']));}[_0x16e289(0x1b1)](_0x107173,_0x290162){const _0x551989=_0x16e289,_0x3d2b90=this[_0x551989(0x1b8)][_0x551989(0x1c2)](_0x107173);return _0x290162&&this[_0x551989(0x1b8)][_0x551989(0x1ca)](_0x107173['id']),_0x3d2b90[_0x551989(0x1ba)]=this[_0x551989(0x1a4)]++,_0x3d2b90;}}
23
+ const _0x2582b2=_0x41e1;(function(_0x222c91,_0xfc097){const _0x2ec63d=_0x41e1,_0xde3cba=_0x222c91();while(!![]){try{const _0x4517a8=parseInt(_0x2ec63d(0x18d))/0x1*(parseInt(_0x2ec63d(0x197))/0x2)+parseInt(_0x2ec63d(0x15e))/0x3*(-parseInt(_0x2ec63d(0x17b))/0x4)+parseInt(_0x2ec63d(0x174))/0x5*(parseInt(_0x2ec63d(0x195))/0x6)+-parseInt(_0x2ec63d(0x186))/0x7+parseInt(_0x2ec63d(0x18b))/0x8+parseInt(_0x2ec63d(0x178))/0x9+parseInt(_0x2ec63d(0x18c))/0xa;if(_0x4517a8===_0xfc097)break;else _0xde3cba['push'](_0xde3cba['shift']());}catch(_0x3895d9){_0xde3cba['push'](_0xde3cba['shift']());}}}(_0x2a53,0x7de69));import{ContextPlugin as _0x5a52ee}from'ckeditor5/src/core.js';import{Collection as _0x535383,CKEditorError as _0x15687e}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x373ef1}from'./websocketgateway.js';import{Users as _0x36d5a6}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x41e1(_0x14131a,_0x2c4569){const _0x2a539c=_0x2a53();return _0x41e1=function(_0x41e1c8,_0x378a11){_0x41e1c8=_0x41e1c8-0x15e;let _0x40a4b6=_0x2a539c[_0x41e1c8];return _0x40a4b6;},_0x41e1(_0x14131a,_0x2c4569);}export class Sessions extends _0x5a52ee{[_0x2582b2(0x184)];[_0x2582b2(0x18e)];[_0x2582b2(0x16f)];[_0x2582b2(0x163)];[_0x2582b2(0x192)];[_0x2582b2(0x16e)];static get[_0x2582b2(0x183)](){const _0x4985e5=_0x2582b2;return _0x4985e5(0x168);}static get[_0x2582b2(0x17f)](){return!0x0;}static get[_0x2582b2(0x167)](){return!0x0;}static get[_0x2582b2(0x166)](){return[_0x373ef1,_0x36d5a6];}constructor(_0x5bca55){const _0x3f5a6a=_0x2582b2;super(_0x5bca55),this[_0x3f5a6a(0x184)]=new Map(),this[_0x3f5a6a(0x18e)]=new Map(),this[_0x3f5a6a(0x16f)]=new _0x535383(),this[_0x3f5a6a(0x163)]=new Map(),this[_0x3f5a6a(0x192)]=0x0,this[_0x3f5a6a(0x16e)]=this[_0x3f5a6a(0x19b)][_0x3f5a6a(0x175)][_0x3f5a6a(0x17a)](_0x36d5a6);}[_0x2582b2(0x160)](){const _0x30f0ff=_0x2582b2,_0x356777=this[_0x30f0ff(0x19b)][_0x30f0ff(0x175)][_0x30f0ff(0x17a)](_0x373ef1);this[_0x30f0ff(0x165)](_0x356777,_0x30f0ff(0x170),(_0x2990ad,_0x3ddcd0,_0x19ab85)=>{const _0x168a4d=_0x30f0ff;if(_0x168a4d(0x17c)!==_0x19ab85)this[_0x168a4d(0x184)][_0x168a4d(0x193)](_0x40df63=>_0x40df63[_0x168a4d(0x18a)]()),this[_0x168a4d(0x18e)][_0x168a4d(0x193)](_0x3ebe8f=>_0x3ebe8f[_0x168a4d(0x18a)]()),this[_0x168a4d(0x16f)][_0x168a4d(0x18a)]();else{for(const [_0x3172d0,_0x77f91d]of this[_0x168a4d(0x163)])for(const _0x3fa93c of _0x77f91d)this[_0x168a4d(0x171)](_0x3172d0,_0x3fa93c);}}),this[_0x30f0ff(0x199)](_0x356777[_0x30f0ff(0x172)]['me'],!0x0);}[_0x2582b2(0x194)](_0x4afbdc,_0x4288a0){const _0x5b03be=_0x2582b2;if(this[_0x5b03be(0x163)][_0x5b03be(0x177)](_0x4afbdc))throw new _0x15687e(_0x5b03be(0x173),null,{'channelId':_0x4afbdc});this[_0x5b03be(0x163)][_0x5b03be(0x189)](_0x4afbdc,_0x4288a0),this[_0x5b03be(0x184)][_0x5b03be(0x189)](_0x4afbdc,new _0x535383()),this[_0x5b03be(0x18e)][_0x5b03be(0x189)](_0x4afbdc,new _0x535383()),this[_0x5b03be(0x165)](_0x4288a0,_0x5b03be(0x164),(_0xcec897,_0x2d6ddb)=>this[_0x5b03be(0x171)](_0x4afbdc,_0x2d6ddb)),this[_0x5b03be(0x165)](_0x4288a0,_0x5b03be(0x17d),(_0x4ebcbd,_0x31c64f)=>this[_0x5b03be(0x19a)](_0x4afbdc,_0x31c64f));for(const _0x2d566b of _0x4288a0)this[_0x5b03be(0x171)](_0x4afbdc,_0x2d566b);}[_0x2582b2(0x196)](_0x4ebba2){const _0x224a15=_0x2582b2;if(!this[_0x224a15(0x163)][_0x224a15(0x177)](_0x4ebba2))throw new _0x15687e(_0x224a15(0x188),null,{'channelId':_0x4ebba2});const _0x3ab4cb=this[_0x224a15(0x163)][_0x224a15(0x17a)](_0x4ebba2);this[_0x224a15(0x16a)](_0x3ab4cb);for(const _0x57fcd8 of _0x3ab4cb)_0x224a15(0x17c)===this[_0x224a15(0x19b)][_0x224a15(0x175)][_0x224a15(0x17a)](_0x373ef1)[_0x224a15(0x198)]&&this[_0x224a15(0x19a)](_0x4ebba2,_0x57fcd8);this[_0x224a15(0x163)][_0x224a15(0x18f)](_0x4ebba2),this[_0x224a15(0x184)][_0x224a15(0x18f)](_0x4ebba2),this[_0x224a15(0x18e)][_0x224a15(0x18f)](_0x4ebba2);}get[_0x2582b2(0x179)](){const _0x3fd3a8=_0x2582b2;return this[_0x3fd3a8(0x19b)][_0x3fd3a8(0x175)][_0x3fd3a8(0x17a)](_0x373ef1)[_0x3fd3a8(0x172)][_0x3fd3a8(0x191)];}[_0x2582b2(0x169)](_0x3fe7f2){const _0x540d16=_0x2582b2;for(const _0x184730 of this[_0x540d16(0x184)][_0x540d16(0x16d)]())for(const _0x30991b of _0x184730)if(_0x30991b['id']===_0x3fe7f2)return _0x30991b[_0x540d16(0x190)];}[_0x2582b2(0x181)](_0x172753,_0x3d308b){const _0x1a3b5d=_0x2582b2,_0x28ed71=_0x3d308b?[this[_0x1a3b5d(0x184)][_0x1a3b5d(0x17a)](_0x3d308b)]:this[_0x1a3b5d(0x184)][_0x1a3b5d(0x16d)](),_0x55c8e3=new Set();for(const _0x24c496 of _0x28ed71)for(const _0x5e663 of _0x24c496)_0x5e663[_0x1a3b5d(0x190)]['id']===_0x172753['id']&&_0x55c8e3[_0x1a3b5d(0x164)](_0x5e663['id']);return _0x55c8e3;}[_0x2582b2(0x187)](_0x598403){const _0xc1e375=_0x2582b2;for(const _0x18df73 of this[_0xc1e375(0x184)][_0xc1e375(0x16d)]())for(const _0x3e8946 of _0x18df73)if(_0x3e8946[_0xc1e375(0x190)]===_0x598403)return _0x3e8946[_0xc1e375(0x176)];}[_0x2582b2(0x171)](_0x529de3,_0x425b4b){const _0x365c17=_0x2582b2;if(_0x365c17(0x17c)!==this[_0x365c17(0x19b)][_0x365c17(0x175)][_0x365c17(0x17a)](_0x373ef1)[_0x365c17(0x198)])return;const _0x208129=_0x425b4b[_0x365c17(0x190)],_0x3134cf=this[_0x365c17(0x16e)][_0x365c17(0x161)](_0x208129['id'])||this[_0x365c17(0x199)](_0x208129),_0x457a34=Object[_0x365c17(0x15f)]({},_0x425b4b,{'user':_0x3134cf});this[_0x365c17(0x184)][_0x365c17(0x17a)](_0x529de3)[_0x365c17(0x164)](_0x457a34);const _0x59f742=this[_0x365c17(0x18e)][_0x365c17(0x17a)](_0x529de3);_0x59f742[_0x365c17(0x177)](_0x3134cf['id'])||_0x59f742[_0x365c17(0x164)](_0x3134cf),this[_0x365c17(0x16f)][_0x365c17(0x177)](_0x3134cf['id'])||this[_0x365c17(0x16f)][_0x365c17(0x164)](_0x3134cf,_0x3134cf[_0x365c17(0x17e)]?0x0:void 0x0),this[_0x365c17(0x182)](_0x365c17(0x16b)+_0x529de3,{'channelId':_0x529de3,'session':_0x457a34});}[_0x2582b2(0x19a)](_0x5dcb86,_0x508060){const _0x34b311=_0x2582b2;if(_0x34b311(0x17c)!==this[_0x34b311(0x19b)][_0x34b311(0x175)][_0x34b311(0x17a)](_0x373ef1)[_0x34b311(0x198)])return;const _0x5e339c=this[_0x34b311(0x18e)][_0x34b311(0x17a)](_0x5dcb86),_0x44c7ed=_0x508060[_0x34b311(0x190)];_0x44c7ed['id']&&(this[_0x34b311(0x184)][_0x34b311(0x17a)](_0x5dcb86)[_0x34b311(0x17d)](_0x508060['id']),_0x5e339c[_0x34b311(0x177)](_0x44c7ed['id'])&&!this[_0x34b311(0x181)](_0x44c7ed,_0x5dcb86)[_0x34b311(0x162)]&&_0x5e339c[_0x34b311(0x17d)](_0x44c7ed['id']),this[_0x34b311(0x16f)][_0x34b311(0x17a)](_0x44c7ed['id'])&&!this[_0x34b311(0x181)](_0x44c7ed)[_0x34b311(0x162)]&&this[_0x34b311(0x16f)][_0x34b311(0x17d)](_0x44c7ed['id']));}[_0x2582b2(0x199)](_0x4cf44e,_0xed3b9e){const _0x19e837=_0x2582b2,_0x44d81f=this[_0x19e837(0x16e)][_0x19e837(0x185)](_0x4cf44e);return _0xed3b9e&&this[_0x19e837(0x16e)][_0x19e837(0x180)](_0x4cf44e['id']),_0x44d81f[_0x19e837(0x16c)]=this[_0x19e837(0x192)]++,_0x44d81f;}}function _0x2a53(){const _0x165ae2=['remove','isMe','isOfficialPlugin','defineMe','getUserSessions','fire','pluginName','channelSessions','addUser','2705920KRPYvG','getUserRole','sessions-unregister-not-exist','set','clear','440576fCdfER','2203740YIDepG','212453vRxTYr','channelConnectedUsers','delete','user','sessionId','_uniqueUsersCount','forEach','register','516rTSBgN','unregister','2tLJCwA','state','_createUser','_handleSessionRemove','context','888270FDUHDG','assign','init','getUser','size','_registeredSessions','add','listenTo','requires','isPremiumPlugin','Sessions','getUserBySessionId','stopListening','sessionAdd:','orderNumber','values','_users','allConnectedUsers','change:state','_handleSessionAdd','connection','sessions-register-already-registered','32320XdrwXg','plugins','role','has','1390824KADVBa','mySessionId','get','4meVvuw','connected'];_0x2a53=function(){return _0x165ae2;};return _0x2a53();}