@ckeditor/ckeditor5-real-time-collaboration 46.1.1-alpha.3 → 46.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/real-time-collaboration.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +14 -14
- package/src/common-translations.js +1 -1
- package/src/index.js +1 -1
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencecounterview.js +1 -1
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/presencelist/view/presencelistview.js +1 -1
- package/src/presencelist.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
- package/src/realtimecollaborativecomments.js +1 -1
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativeediting.js +1 -1
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
- package/src/realtimecollaborativerevisionhistory.js +1 -1
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
- package/src/realtimecollaborativetrackchanges.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1fcab8=_0x3da6;function _0xc3f9(){const _0x1081bf=['change:hasPopup','.ck-balloon-panel_with-arrow','set','bindTemplate','27jBSsJg','Connected\x20users\x20list','aria-expanded','listenTo','contains','items','setAttribute','1938435BEYzaf','ck-presence-list__list','list','keystrokes','fire','presencelist:hide','Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)','isExpanded','26229CeFXaA','setTemplate','presencelist:show','927880hTSZgG','relatedTarget','.ck-presence-list__dropdown-list','div','focus','6044610sRWbnJ','hasPopup','2056pTZWZt','removeAttribute','render','1392301FvfEtU','createCollection','querySelector','543516LebzQR','25187229MpOrxj','element'];_0xc3f9=function(){return _0x1081bf;};return _0xc3f9();}(function(_0x23ab9f,_0x22cb82){const _0x1e7294=_0x3da6,_0x4fc604=_0x23ab9f();while(!![]){try{const _0x41aac9=parseInt(_0x1e7294(0x1b6))/0x1+parseInt(_0x1e7294(0x1ac))/0x2+parseInt(_0x1e7294(0x19a))/0x3*(parseInt(_0x1e7294(0x1b9))/0x4)+parseInt(_0x1e7294(0x1a1))/0x5+parseInt(_0x1e7294(0x1b1))/0x6+parseInt(_0x1e7294(0x1a9))/0x7*(-parseInt(_0x1e7294(0x1b3))/0x8)+-parseInt(_0x1e7294(0x1ba))/0x9;if(_0x41aac9===_0x22cb82)break;else _0x4fc604['push'](_0x4fc604['shift']());}catch(_0x17408f){_0x4fc604['push'](_0x4fc604['shift']());}}}(_0xc3f9,0xae00a));import{View as _0x3c7a56}from'ckeditor5/src/ui.js';import{KeystrokeHandler as _0x52440d}from'ckeditor5/src/utils.js';import{getTranslation as _0x380b5}from'../../common-translations.js';function _0x3da6(_0x338828,_0x2ee648){const _0xc3f9cd=_0xc3f9();return _0x3da6=function(_0x3da65e,_0x22dd5e){_0x3da65e=_0x3da65e-0x199;let _0x2c348a=_0xc3f9cd[_0x3da65e];return _0x2c348a;},_0x3da6(_0x338828,_0x2ee648);}export class PresenceInlineListView extends _0x3c7a56{[_0x1fcab8(0x19f)];[_0x1fcab8(0x1a4)];constructor(_0x53f31a){const _0x16f3f5=_0x1fcab8;super(_0x53f31a);const _0x3eabf2=this[_0x16f3f5(0x199)];this[_0x16f3f5(0x19f)]=this[_0x16f3f5(0x1b7)](),this[_0x16f3f5(0x1a4)]=new _0x52440d(),this[_0x16f3f5(0x1be)]({'hasPopup':!0x1,'isExpanded':!0x1}),this[_0x16f3f5(0x1aa)]({'tag':_0x16f3f5(0x1af),'attributes':{'aria-haspopup':_0x3eabf2['if'](_0x16f3f5(0x1b2)),'aria-expanded':_0x3eabf2['to'](_0x16f3f5(0x1a8),_0x3ce5f7=>this[_0x16f3f5(0x1b2)]&&String(_0x3ce5f7)),'aria-label':_0x3eabf2['to'](_0x16f3f5(0x1b2),_0x231c30=>_0x380b5(_0x53f31a,_0x231c30?_0x16f3f5(0x1a7):_0x16f3f5(0x19b))),'role':_0x16f3f5(0x1a3),'tabindex':_0x3eabf2['to'](_0x16f3f5(0x1b2),_0x56bd3f=>!!_0x56bd3f&&0x0),'class':['ck',_0x16f3f5(0x1a2)]},'children':this[_0x16f3f5(0x19f)],'on':{'mouseenter':_0x3eabf2['to'](()=>this[_0x16f3f5(0x1a5)](_0x16f3f5(0x1ab))),'mouseleave':_0x3eabf2['to'](_0x19a9aa=>{const _0x52c383=_0x16f3f5,_0x4334c0=_0x19a9aa,_0x537949=document[_0x52c383(0x1b8)](_0x52c383(0x1ae)),_0x4adae3=document[_0x52c383(0x1b8)](_0x52c383(0x1bd));_0x537949?.[_0x52c383(0x19e)](_0x4334c0[_0x52c383(0x1ad)])||_0x4adae3?.[_0x52c383(0x19e)](_0x4334c0[_0x52c383(0x1ad)])||this[_0x52c383(0x1a5)](_0x52c383(0x1a6));})}}),this['on'](_0x16f3f5(0x1bc),(_0x4ef272,_0xc162c8,_0x12f4a5)=>{const _0x3dff7f=_0x16f3f5;this[_0x3dff7f(0x1bb)]&&(_0x12f4a5?this[_0x3dff7f(0x1bb)][_0x3dff7f(0x1a0)](_0x3dff7f(0x19c),String(this[_0x3dff7f(0x1a8)])):this[_0x3dff7f(0x1bb)][_0x3dff7f(0x1b4)](_0x3dff7f(0x19c)));});}[_0x1fcab8(0x1b0)](){const _0x2bb447=_0x1fcab8;this[_0x2bb447(0x1bb)][_0x2bb447(0x1b0)]();}[_0x1fcab8(0x1b5)](){const _0x586314=_0x1fcab8;super[_0x586314(0x1b5)](),this[_0x586314(0x1a4)][_0x586314(0x19d)](this[_0x586314(0x1bb)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x20e02f=_0x5b1c;(function(_0x574d0b,_0x1ec6c0){const _0x1cec43=_0x5b1c,_0xa1372b=_0x574d0b();while(!![]){try{const _0x3fa47f=-parseInt(_0x1cec43(0xc1))/0x1*(-parseInt(_0x1cec43(0xb2))/0x2)+parseInt(_0x1cec43(0xc0))/0x3*(-parseInt(_0x1cec43(0xaa))/0x4)+-parseInt(_0x1cec43(0xb8))/0x5+-parseInt(_0x1cec43(0xba))/0x6+parseInt(_0x1cec43(0xaf))/0x7*(parseInt(_0x1cec43(0xb4))/0x8)+-parseInt(_0x1cec43(0xb0))/0x9+parseInt(_0x1cec43(0xa6))/0xa*(parseInt(_0x1cec43(0xbc))/0xb);if(_0x3fa47f===_0x1ec6c0)break;else _0xa1372b['push'](_0xa1372b['shift']());}catch(_0x43b37c){_0xa1372b['push'](_0xa1372b['shift']());}}}(_0x3f8e,0x8e7c3));function _0x3f8e(){const _0x2c49cb=['30gNgKnH','first','locale','change','1016bCygYJ','counterView','listenTo','items','bindTemplate','77drYYix','5569416nXFYrt','div','11874YkwCsw','bind','574736hjpvpX','inlineListView','setTemplate','tooltipPosition','712265AvMPVO','ck-presence-list','2780760vXqFmS','ck-presence-list--collapsed','3898697kJUcxq','set','isCollapsed','ck-rounded-corners','2427CLEUfp','27AZnMYV','ck-reset','hasPopup'];_0x3f8e=function(){return _0x2c49cb;};return _0x3f8e();}import{View as _0x4b21ef}from'ckeditor5/src/ui.js';import{PresenceCounterView as _0xfc557f}from'./presencecounterview.js';import{PresenceInlineListView as _0x2f21da}from'./presenceinlinelistview.js';import'../../../theme/presencelist.css';function _0x5b1c(_0x5bdebe,_0x527dde){const _0x3f8eab=_0x3f8e();return _0x5b1c=function(_0x5b1c51,_0x24df63){_0x5b1c51=_0x5b1c51-0xa4;let _0x98ff00=_0x3f8eab[_0x5b1c51];return _0x98ff00;},_0x5b1c(_0x5bdebe,_0x527dde);}export class PresenceListView extends _0x4b21ef{[_0x20e02f(0xab)];[_0x20e02f(0xb5)];constructor(_0x1420cd,_0x1b7365=0x6){const _0x59931e=_0x20e02f;super(_0x1420cd);const _0x5ca870=this[_0x59931e(0xae)];this[_0x59931e(0xbd)](_0x59931e(0xbe),!0x0),this[_0x59931e(0xab)]=new _0xfc557f(this[_0x59931e(0xa8)],_0x1b7365),this[_0x59931e(0xb5)]=new _0x2f21da(_0x1420cd),this[_0x59931e(0xb5)][_0x59931e(0xb3)](_0x59931e(0xa5))['to'](this,_0x59931e(0xbe)),this[_0x59931e(0xac)](this[_0x59931e(0xb5)][_0x59931e(0xad)],_0x59931e(0xa9),()=>{const _0x3eb2f0=_0x59931e;for(const _0x252680 of this[_0x3eb2f0(0xb5)][_0x3eb2f0(0xad)])_0x252680[_0x3eb2f0(0xb7)]='s';this[_0x3eb2f0(0xb5)][_0x3eb2f0(0xad)][_0x3eb2f0(0xa7)]&&(this[_0x3eb2f0(0xb5)][_0x3eb2f0(0xad)][_0x3eb2f0(0xa7)][_0x3eb2f0(0xb7)]='se');}),this[_0x59931e(0xb6)]({'tag':_0x59931e(0xb1),'attributes':{'class':['ck',_0x59931e(0xb9),_0x59931e(0xa4),_0x59931e(0xbf),_0x5ca870['if'](_0x59931e(0xbe),_0x59931e(0xbb))]},'children':[this[_0x59931e(0xb5)]]});}}
|
package/src/presencelist.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x475eeb=_0x3d85;(function(_0x41220d,_0x480571){var _0x289ac1=_0x3d85,_0x36496e=_0x41220d();while(!![]){try{var _0x4074cf=parseInt(_0x289ac1(0x1d1))/0x1+parseInt(_0x289ac1(0x1d9))/0x2+parseInt(_0x289ac1(0x1ce))/0x3+parseInt(_0x289ac1(0x1d4))/0x4*(parseInt(_0x289ac1(0x1cd))/0x5)+parseInt(_0x289ac1(0x1d2))/0x6+parseInt(_0x289ac1(0x1d3))/0x7+-parseInt(_0x289ac1(0x1da))/0x8*(parseInt(_0x289ac1(0x1cf))/0x9);if(_0x4074cf===_0x480571)break;else _0x36496e['push'](_0x36496e['shift']());}catch(_0x5bbb39){_0x36496e['push'](_0x36496e['shift']());}}}(_0x1818,0x2e35a));function _0x3d85(_0x51efe5,_0x4a18f3){var _0x181843=_0x1818();return _0x3d85=function(_0x3d8528,_0x576658){_0x3d8528=_0x3d8528-0x1cd;var _0x8c996d=_0x181843[_0x3d8528];return _0x8c996d;},_0x3d85(_0x51efe5,_0x4a18f3);}function _0x1818(){var _0x1e12ef=['1597050BbTiXv','1041968gSztPo','pluginName','isPremiumPlugin','requires','isOfficialPlugin','670514MNipfi','49744aADnSy','5nmhmCC','881982VtlPyX','2241DTjzEp','PresenceList','356307HdqyZA','1580136JSkAGf'];_0x1818=function(){return _0x1e12ef;};return _0x1818();}import{ContextPlugin as _0x1f4d02}from'ckeditor5/src/core.js';import{Sessions as _0x2c1c35}from'./realtimecollaborativeediting/sessions.js';import{PresenceListUI as _0x4f45a9}from'./presencelist/presencelistui.js';export class PresenceList extends _0x1f4d02{static get[_0x475eeb(0x1d7)](){return[_0x2c1c35,_0x4f45a9];}static get[_0x475eeb(0x1d5)](){var _0xc6ef8d=_0x475eeb;return _0xc6ef8d(0x1d0);}static get[_0x475eeb(0x1d8)](){return!0x0;}static get[_0x475eeb(0x1d6)](){return!0x0;}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>_0xb7806a)());[_0x2d8ec5(0x9e)];static get[_0x2d8ec5(0x95)](){const _0x383142=_0x2d8ec5;return[_0x4a4559,_0x383142(0x93),_0x1f0c06,_0x366f56];}static get[_0x2d8ec5(0xc0)](){const _0x1578f8=_0x2d8ec5;return _0x1578f8(0xd1);}static get[_0x2d8ec5(0x89)](){return!0x0;}static get[_0x2d8ec5(0xa7)](){return!0x0;}constructor(_0xb457bd){const _0x200ff4=_0x2d8ec5;super(_0xb457bd),this[_0x200ff4(0x9e)]=new Map();}async[_0x2d8ec5(0x8d)](){const _0x2b8d38=_0x2d8ec5,_0x4962ce=this[_0x2b8d38(0x96)],_0x4a1629=_0x4962ce[_0x2b8d38(0xdf)][_0x2b8d38(0xa3)](_0x2b8d38(0x93));if(_0x4962ce[_0x2b8d38(0xdf)][_0x2b8d38(0xa3)](_0x4a4559)[_0x2b8d38(0xb8)](this),_0x4a1629[_0x2b8d38(0xab)]={'addCommentThread':async({channelId:_0x5136a3,threadId:_0x1107ed,comments:_0x41f140,resolvedAt:_0x1205c6,resolvedBy:_0xde4bf7,context:_0x48d106,attributes:_0xa5913c})=>{const _0x5f4ba0=_0x2b8d38,_0x3539e2=await this[_0x5f4ba0(0x8e)](_0x5136a3)[_0x5f4ba0(0xc7)]({'commentThreadId':_0x1107ed,'comments':_0x41f140[_0x5f4ba0(0xc6)](_0x44c72d=>function(_0x5301ff,_0x57ccee,_0xb6277f){const _0x589e37=_0x5f4ba0;return{'commentThreadId':_0xb6277f,'commentId':_0x5301ff[_0x589e37(0x84)],'userId':_0x5301ff[_0x589e37(0xa6)],'content':_0x5301ff[_0x589e37(0xce)],'documentId':_0x57ccee,'createdAt':_0x5301ff[_0x589e37(0xd4)],'attributes':_0x5301ff[_0x589e37(0xcf)]||{}};}(_0x44c72d,_0x5136a3,_0x1107ed)),'resolvedAt':_0x1205c6,'resolvedBy':_0xde4bf7,'context':_0x48d106,'attributes':_0xa5913c})[_0x5f4ba0(0x9d)](nt);return{'threadId':_0x3539e2[_0x5f4ba0(0x8b)],'comments':_0x3539e2[_0x5f4ba0(0xc1)]};},'getCommentThread':async({channelId:_0x5085fa,threadId:_0x17da11})=>{const _0x1a8073=_0x2b8d38,_0x1ab13d=await this[_0x1a8073(0x8e)](_0x5085fa)[_0x1a8073(0x91)](_0x17da11)[_0x1a8073(0x9d)](ot)[_0x1a8073(0x9d)](nt);return _0x1ab13d?_0x1ab13d[_0x1a8073(0xd9)]?null:(await this[_0x1a8073(0xd7)]([_0x1ab13d]),{'threadId':_0x1ab13d[_0x1a8073(0x8b)],'comments':_0x1ab13d[_0x1a8073(0xc1)][_0x1a8073(0xc6)](st),'context':_0x1ab13d[_0x1a8073(0x96)],'resolvedAt':_0x1ab13d[_0x1a8073(0xca)],'resolvedBy':_0x1ab13d[_0x1a8073(0xda)],'attributes':_0x1ab13d[_0x1a8073(0xcf)]||{}}):null;},'updateCommentThread':async({channelId:_0x2ed215,threadId:_0x637ee5,context:_0x2e3fbe,unlinkedAt:_0x5ed111,attributes:_0x46ad6e})=>this[_0x2b8d38(0x8e)](_0x2ed215)[_0x2b8d38(0xb4)]({'commentThreadId':_0x637ee5,'context':_0x2e3fbe,'attributes':_0x46ad6e,'unlinkedAt':_0x5ed111})[_0x2b8d38(0x9d)](ot)[_0x2b8d38(0x9d)](nt),'resolveCommentThread':async({channelId:_0x2361f6,threadId:_0x2d4a26})=>{const _0x3721b=_0x2b8d38,_0x460fbb=await this[_0x3721b(0x8e)](_0x2361f6)[_0x3721b(0xe1)](_0x2d4a26)[_0x3721b(0x9d)](ot)[_0x3721b(0x9d)](nt);return{'threadId':_0x460fbb[_0x3721b(0x8b)],'resolvedAt':_0x460fbb[_0x3721b(0xca)],'resolvedBy':_0x460fbb[_0x3721b(0xda)]};},'reopenCommentThread':async({channelId:_0x66e55c,threadId:_0x3fe674})=>this[_0x2b8d38(0x8e)](_0x66e55c)[_0x2b8d38(0xdd)](_0x3fe674)[_0x2b8d38(0x9d)](ot)[_0x2b8d38(0x9d)](nt),'removeCommentThread':({channelId:_0x3199fb,threadId:_0x104f94})=>this[_0x2b8d38(0x8e)](_0x3199fb)[_0x2b8d38(0x8f)](_0x104f94)[_0x2b8d38(0x9d)](ot)[_0x2b8d38(0x9d)](nt),'addComment':({channelId:_0x2e2279,threadId:_0x707619,commentId:_0x50bc81,content:_0x44f714,attributes:_0x598c6d})=>this[_0x2b8d38(0x8e)](_0x2e2279)[_0x2b8d38(0xc9)](_0x707619,_0x50bc81,_0x44f714,_0x598c6d)[_0x2b8d38(0x9d)](nt),'updateComment':({channelId:_0x146deb,threadId:_0x256865,commentId:_0x1f4b02,content:_0x368444,attributes:_0x50ac96})=>this[_0x2b8d38(0x8e)](_0x146deb)[_0x2b8d38(0xb0)](_0x256865,_0x1f4b02,_0x368444,_0x50ac96)[_0x2b8d38(0x9d)](ot)[_0x2b8d38(0x9d)](nt),'removeComment':({channelId:_0x261854,threadId:_0x56077b,commentId:_0x34a71c})=>this[_0x2b8d38(0x8e)](_0x261854)[_0x2b8d38(0x9b)](_0x56077b,_0x34a71c)[_0x2b8d38(0x9d)](ot)[_0x2b8d38(0x9d)](nt)},_0x4962ce instanceof _0x224283){const _0xec7f5a=_0x4962ce[_0x2b8d38(0xba)][_0x2b8d38(0xa3)](_0x2b8d38(0xd6)),_0x4c2798=_0x4962ce[_0x2b8d38(0xdf)][_0x2b8d38(0xa3)](_0x1f0c06);await this[_0x2b8d38(0xc4)](_0xec7f5a);const _0x42bf21=await this[_0x2b8d38(0x9e)][_0x2b8d38(0xa3)](_0xec7f5a)[_0x2b8d38(0x87)]();this[_0x2b8d38(0xb7)](_0x4c2798,_0x2b8d38(0x99)+_0xec7f5a,(_0x37975c,{session:_0x330175})=>{const _0x3036cf=_0x2b8d38;_0x330175['id']===_0x4c2798[_0x3036cf(0xaa)]&&(_0x37975c[_0x3036cf(0x83)](),this[_0x3036cf(0x96)][_0x3036cf(0xdf)][_0x3036cf(0xa3)](_0x3036cf(0xbb))[_0x3036cf(0xb6)](_0x330175[_0x3036cf(0xa1)],_0xec7f5a));}),_0x4c2798[_0x2b8d38(0xa8)](_0xec7f5a,_0x42bf21);}}async[_0x2d8ec5(0xc4)](_0x4ca009){const _0x4f405d=_0x2d8ec5;if(this[_0x4f405d(0x9e)][_0x4f405d(0x9c)](_0x4ca009))throw new _0x459f0e(_0x4f405d(0xa5),null,{'channelId':_0x4ca009});const _0x4b25ba=this[_0x4f405d(0x96)][_0x4f405d(0xdf)][_0x4f405d(0xa3)](_0x4f405d(0x93)),_0x52594c=new s[(_0x4f405d(0xb2))](_0x4ca009);this[_0x4f405d(0x9e)][_0x4f405d(0xd5)](_0x4ca009,_0x52594c),this[_0x4f405d(0xb7)](_0x52594c,_0x4f405d(0xe8),(_0x1f24e1,_0xa37d97)=>{const _0x3d5260=_0x4f405d,{commentThreadId:_0x3b4e1e,documentId:_0x5e4d62,context:_0x20c460,attributes:_0x2f0b4e,resolvedAt:_0x152286,resolvedBy:_0x20d1b0,comments:_0x4ae3fd}=_0xa37d97;_0x4b25ba[_0x3d5260(0x91)](_0x3b4e1e)||_0x4b25ba[_0x3d5260(0xc7)]({'threadId':_0x3b4e1e,'channelId':_0x5e4d62,'comments':_0x4ae3fd?_0x4ae3fd[_0x3d5260(0xc6)](st):[],'context':_0x20c460,'attributes':_0x2f0b4e,'resolvedAt':_0x152286,'resolvedBy':_0x20d1b0,'isFromAdapter':!0x0});}),this[_0x4f405d(0xb7)](_0x52594c,_0x4f405d(0xe2),(_0x31302c,{commentThreadId:_0x573b7e,documentId:_0x408add,context:_0x42f011,unlinkedAt:_0xf6ded8,attributes:_0x4fde71})=>{const _0x58635c=_0x4f405d;_0x4b25ba[_0x58635c(0x91)](_0x573b7e)&&_0x4b25ba[_0x58635c(0xb4)]({'threadId':_0x573b7e,'channelId':_0x408add,'context':_0x42f011,'unlinkedAt':_0xf6ded8,'attributes':_0x4fde71,'isFromAdapter':!0x0});}),this[_0x4f405d(0xb7)](_0x52594c,_0x4f405d(0xd3),(_0x4dce43,{commentThreadId:_0x1c3c69,resolvedBy:_0x2d4c36,resolvedAt:_0x7bbcde})=>{const _0x47c439=_0x4f405d,_0x5cb7af=_0x4b25ba[_0x47c439(0x91)](_0x1c3c69);_0x5cb7af&&_0x5cb7af[_0x47c439(0xde)]({'resolvedBy':_0x2d4c36,'resolvedAt':_0x7bbcde,'isFromAdapter':!0x0});}),this[_0x4f405d(0xb7)](_0x52594c,_0x4f405d(0xd8),(_0xe0f2e4,{commentThreadId:_0xa12337})=>{const _0x3fc3e8=_0x4f405d,_0x139d37=_0x4b25ba[_0x3fc3e8(0x91)](_0xa12337);_0x139d37&&_0x139d37[_0x3fc3e8(0xe3)]({'isFromAdapter':!0x0});}),this[_0x4f405d(0xb7)](_0x52594c,_0x4f405d(0x85),(_0x999a09,{commentThreadId:_0x4f2ca1})=>{const _0x4e47a5=_0x4f405d,_0x2e04d5=_0x4b25ba[_0x4e47a5(0x91)](_0x4f2ca1);_0x2e04d5&&_0x2e04d5[_0x4e47a5(0x8c)]({'isFromAdapter':!0x0});}),this[_0x4f405d(0xb7)](_0x52594c,_0x4f405d(0xae),(_0x1aa5a4,_0x5768b0)=>{const _0x52604a=_0x4f405d,_0x224b71=_0x5768b0[_0x52604a(0x8b)],_0x310b5e=_0x4b25ba[_0x52604a(0x91)](_0x224b71);_0x310b5e&&_0x310b5e[_0x52604a(0xc9)]({...st(_0x5768b0),'isFromAdapter':!0x0});}),this[_0x4f405d(0xb7)](_0x52594c,_0x4f405d(0x88),(_0x2b1650,{commentThreadId:_0x3bb1c8,commentId:_0x17a12b,content:_0x240f72,attributes:_0x109cdc})=>{const _0x5de285=_0x4f405d,_0x5b4e6b=_0x4b25ba[_0x5de285(0x91)](_0x3bb1c8);if(_0x5b4e6b){const _0x1d1f7c=_0x5b4e6b[_0x5de285(0xbd)](_0x17a12b);_0x1d1f7c&&_0x1d1f7c[_0x5de285(0xc2)]({'content':_0x240f72,'attributes':_0x109cdc,'isFromAdapter':!0x0});}}),this[_0x4f405d(0xb7)](_0x52594c,_0x4f405d(0xa9),(_0x165cc9,{commentThreadId:_0x4da9ab,commentId:_0x354662})=>{const _0x3b2786=_0x4f405d,_0x407f03=_0x4b25ba[_0x3b2786(0x91)](_0x4da9ab);if(_0x407f03){const _0x2ebbf0=_0x407f03[_0x3b2786(0xbd)](_0x354662);_0x2ebbf0&&_0x2ebbf0[_0x3b2786(0x8c)]({'isFromAdapter':!0x0});}}),await this[_0x4f405d(0xb9)](_0x4ca009);}[_0x2d8ec5(0xb1)](){const _0xc1eccb=_0x2d8ec5;if(this[_0xc1eccb(0x96)]instanceof _0x224283){const _0x14ef75=this[_0xc1eccb(0x96)][_0xc1eccb(0xba)][_0xc1eccb(0xa3)](_0xc1eccb(0xd6));this[_0xc1eccb(0xa4)](_0x14ef75);}}[_0x2d8ec5(0xa4)](_0x10877c){const _0x32b6eb=_0x2d8ec5;if(!this[_0x32b6eb(0x9e)][_0x32b6eb(0x9c)](_0x10877c))throw new _0x459f0e(_0x32b6eb(0x98),null,{'channelId':_0x10877c});this[_0x32b6eb(0x8e)](_0x10877c)[_0x32b6eb(0x92)](),this[_0x32b6eb(0x9e)][_0x32b6eb(0xcd)](_0x10877c);}async[_0x2d8ec5(0xa0)](){const _0x4189d6=_0x2d8ec5;for(const _0x4a2d72 of this[_0x4189d6(0x9e)][_0x4189d6(0xa2)]())await this[_0x4189d6(0xb9)](_0x4a2d72);if(this[_0x4189d6(0x96)]instanceof _0x224283){const _0x14002a=this[_0x4189d6(0x96)][_0x4189d6(0xba)][_0x4189d6(0xa3)](_0x4189d6(0xd6)),_0x34d256=this[_0x4189d6(0x96)][_0x4189d6(0xdf)][_0x4189d6(0xa3)](_0x1f0c06);_0x34d256[_0x4189d6(0xe0)](_0x14002a);const _0xe20564=await this[_0x4189d6(0x9e)][_0x4189d6(0xa3)](_0x14002a)[_0x4189d6(0x87)]();_0x34d256[_0x4189d6(0xa8)](_0x14002a,_0xe20564);}}async[_0x2d8ec5(0xb9)](_0xac6f74){const _0x385c3c=_0x2d8ec5,{connection:_0x1d7753}=this[_0x385c3c(0x96)][_0x385c3c(0xdf)][_0x385c3c(0xa3)](_0x4a4559),_0x5b4ee8=this[_0x385c3c(0x96)][_0x385c3c(0xdf)][_0x385c3c(0xa3)](_0x385c3c(0x93)),_0x1e4b9e=this[_0x385c3c(0x9e)][_0x385c3c(0xa3)](_0xac6f74),_0x426050=await _0x1e4b9e[_0x385c3c(0xb5)](_0x1d7753);await this[_0x385c3c(0xd7)](_0x426050);const _0x523381=new Set(Array[_0x385c3c(0x9a)](_0x5b4ee8[_0x385c3c(0xdb)]({'channelId':_0xac6f74}),_0x4bcf5b=>_0x4bcf5b['id']));for(const _0x35664f of _0x426050)_0x35664f[_0x385c3c(0xd9)]||_0x523381[_0x385c3c(0xcd)](_0x35664f[_0x385c3c(0x8b)]);for(const _0x47865a of _0x523381)_0x5b4ee8[_0x385c3c(0x91)](_0x47865a)[_0x385c3c(0x8c)]({'isFromAdapter':!0x0});for(const _0x258dda of _0x426050){let _0x334a3c=_0x5b4ee8[_0x385c3c(0x91)](_0x258dda[_0x385c3c(0x8b)]);const {commentThreadId:_0x1bd1ee,context:_0x4dbecb,attributes:_0x547687,resolvedBy:_0x53f573,resolvedAt:_0x91ca1c,unlinkedAt:_0x433013,deletedAt:_0xc76bce}=_0x258dda;if(_0xc76bce)continue;_0x334a3c||(_0x334a3c=_0x5b4ee8[_0x385c3c(0xc7)]({'channelId':_0xac6f74,'threadId':_0x1bd1ee,'context':_0x4dbecb,'attributes':_0x547687||{},'resolvedBy':_0x53f573,'resolvedAt':_0x91ca1c,'unlinkedAt':_0x433013,'isFromAdapter':!0x0}));const _0x2aedf6=new Set(Array[_0x385c3c(0x9a)](_0x334a3c[_0x385c3c(0xc1)],_0x5c8d6d=>_0x5c8d6d['id']));for(const _0x25f3fd of _0x258dda[_0x385c3c(0xc1)])_0x2aedf6[_0x385c3c(0xcd)](_0x25f3fd[_0x385c3c(0x84)]);for(const _0x33ad38 of _0x2aedf6)_0x334a3c[_0x385c3c(0xbd)](_0x33ad38)[_0x385c3c(0x8c)]({'isFromAdapter':!0x0});for(const _0x6dfb83 of _0x258dda[_0x385c3c(0xc1)]){const _0x1e29d1=_0x334a3c[_0x385c3c(0xbd)](_0x6dfb83[_0x385c3c(0x84)]);_0x1e29d1?_0x1e29d1[_0x385c3c(0xce)]!==_0x6dfb83[_0x385c3c(0xce)]&&_0x1e29d1[_0x385c3c(0xc2)]({'content':_0x6dfb83[_0x385c3c(0xce)],'isFromAdapter':!0x0}):_0x334a3c[_0x385c3c(0xc9)](Object[_0x385c3c(0xe6)](st(_0x6dfb83),{'isFromAdapter':!0x0}));}}}[_0x2d8ec5(0x8e)](_0x5eb9b8){const _0x1e7681=_0x2d8ec5;if(!this[_0x1e7681(0x9e)][_0x1e7681(0x9c)](_0x5eb9b8))throw new _0x459f0e(_0x1e7681(0xe5),null,{'channelId':_0x5eb9b8});return this[_0x1e7681(0x9e)][_0x1e7681(0xa3)](_0x5eb9b8);}async[_0x2d8ec5(0xd7)](_0x2467f1){const _0x530ea0=_0x2d8ec5,_0x3ab2bb=this[_0x530ea0(0x96)][_0x530ea0(0xdf)][_0x530ea0(0xa3)](_0x366f56),{connection:_0x33b880}=this[_0x530ea0(0x96)][_0x530ea0(0xdf)][_0x530ea0(0xa3)](_0x4a4559),_0x58b963=new Set();for(const {resolvedBy:_0x1e89ae,comments:_0x1c2e26}of _0x2467f1){_0x1e89ae&&!_0x3ab2bb[_0x530ea0(0xd0)](_0x1e89ae)&&_0x58b963[_0x530ea0(0xe7)](_0x1e89ae);for(const {userId:_0x5b3d44}of _0x1c2e26)_0x3ab2bb[_0x530ea0(0xd0)](_0x5b3d44)||_0x58b963[_0x530ea0(0xe7)](_0x5b3d44);}if(0x0===_0x58b963[_0x530ea0(0xe4)])return;const _0x945302=await _0xdb970c[_0x530ea0(0xbf)](_0x33b880,Array[_0x530ea0(0x9a)](_0x58b963));for(const _0x72a275 of _0x945302)_0x3ab2bb[_0x530ea0(0xd0)](_0x72a275['id'])||_0x3ab2bb[_0x530ea0(0xdc)](_0x72a275);}}function _0x50ec(){const _0x3748f1=['addComment','resolvedAt','code','7EdeXoN','delete','content','attributes','getUser','CloudServicesCommentsAdapter','startsWith','commentThreadResolved','createdAt','set','collaboration.channelId','_fetchMissingUsersForThreads','commentThreadReopened','deletedAt','resolvedBy','getCommentThreads','addUser','reopenCommentThread','resolve','plugins','unregister','resolveCommentThread','commentThreadUpdated','reopen','size','cloudservicescommentsadapter-service-not-exist','assign','add','commentThreadAdded','off','commentId','commentThreadRemoved','9906950HnhQgz','getConnectedSessions','commentUpdated','isOfficialPlugin','cloud-services-internal-error:\x20Request\x20timeout.','commentThreadId','remove','init','_getService','removeCommentThread','2322156zRtptl','getCommentThread','disconnect','CommentsRepository','523iKxWkV','requires','context','4878783vbFnpU','cloudservicescommentsadapter-disconnect-not-exist','sessionAdd:','from','removeComment','has','catch','_services','10Cgmwxf','reconnect','permissions','keys','get','_terminateService','cloudservicescommentsadapter-connect-already-connected','authorId','isPremiumPlugin','register','commentRemoved','mySessionId','adapter','579016pbzpHG','userId','commentAdded','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','updateComment','destroy','CommentsService','message','updateCommentThread','connect','setPermissions','listenTo','addToReconnectionStack','_connectService','config','Permissions','1908009uPzBJy','getComment','3568568MlqSPQ','getMany','pluginName','comments','update','cloud-services-internal-error:\x20Not\x20connected.','_setUpService','404','map','addCommentThread','830aiESST'];_0x50ec=function(){return _0x3748f1;};return _0x50ec();}export{s as CloudServicesCommentsAdapter};async function ot(_0x5832fa){const _0x59c326=_0x2d8ec5;if(_0x59c326(0xc5)!==_0x5832fa[_0x59c326(0xcb)])throw _0x5832fa;}function nt(_0x124d50){const _0x4cb0c6=_0x2d8ec5;if((_0x43df26=_0x124d50)[_0x4cb0c6(0xb3)][_0x4cb0c6(0xd2)](_0x4cb0c6(0xaf))||_0x43df26[_0x4cb0c6(0xb3)][_0x4cb0c6(0xd2)](_0x4cb0c6(0xc3))||_0x43df26[_0x4cb0c6(0xb3)][_0x4cb0c6(0xd2)](_0x4cb0c6(0x8a)))return new Promise(()=>{});var _0x43df26;throw _0x124d50;}function _0x2941(_0x5a265c,_0x4d2ae7){const _0x50ec4e=_0x50ec();return _0x2941=function(_0x294163,_0x4da694){_0x294163=_0x294163-0x83;let _0x7934f4=_0x50ec4e[_0x294163];return _0x7934f4;},_0x2941(_0x5a265c,_0x4d2ae7);}function st(_0x2ea301){const _0x49fdf9=_0x2d8ec5;return{'threadId':_0x2ea301[_0x49fdf9(0x8b)],'commentId':_0x2ea301[_0x49fdf9(0x84)],'content':_0x2ea301[_0x49fdf9(0xce)],'createdAt':_0x2ea301[_0x49fdf9(0xd4)],'authorId':_0x2ea301[_0x49fdf9(0xad)],'attributes':_0x2ea301[_0x49fdf9(0xcf)]||{}};}
|
|
23
|
+
const _0xf9ada0=_0x58a0;(function(_0xc1b6b8,_0x4a6c8a){const _0x8cadc8=_0x58a0,_0x7eee21=_0xc1b6b8();while(!![]){try{const _0x6e2de0=-parseInt(_0x8cadc8(0xcd))/0x1*(parseInt(_0x8cadc8(0xa6))/0x2)+-parseInt(_0x8cadc8(0xc8))/0x3+-parseInt(_0x8cadc8(0xae))/0x4+-parseInt(_0x8cadc8(0x82))/0x5+parseInt(_0x8cadc8(0x9c))/0x6+parseInt(_0x8cadc8(0x85))/0x7*(-parseInt(_0x8cadc8(0xcf))/0x8)+parseInt(_0x8cadc8(0xc3))/0x9;if(_0x6e2de0===_0x4a6c8a)break;else _0x7eee21['push'](_0x7eee21['shift']());}catch(_0x157fc7){_0x7eee21['push'](_0x7eee21['shift']());}}}(_0x8611,0xd4da4));import{Context as _0x28fef4,ContextPlugin as _0x480b63}from'ckeditor5/src/core.js';import{CKEditorError as _0x2124e4}from'ckeditor5/src/utils.js';import{Users as _0x2301ea}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsService as _0x2b03a7,User as _0x22a081}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x306bd5}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x22ac7c}from'../realtimecollaborativeediting/sessions.js';class s extends _0x480b63{static [_0xf9ada0(0xad)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x2b03a7)());[_0xf9ada0(0xac)];static get[_0xf9ada0(0xb1)](){const _0x10f3dc=_0xf9ada0;return[_0x306bd5,_0x10f3dc(0xc2),_0x22ac7c,_0x2301ea];}static get[_0xf9ada0(0xdd)](){const _0x3d5f65=_0xf9ada0;return _0x3d5f65(0xce);}static get[_0xf9ada0(0xd7)](){return!0x0;}static get[_0xf9ada0(0xd6)](){return!0x0;}constructor(_0x19b82a){const _0x57ebdb=_0xf9ada0;super(_0x19b82a),this[_0x57ebdb(0xac)]=new Map();}async[_0xf9ada0(0xa4)](){const _0x59265f=_0xf9ada0,_0x30afcf=this[_0x59265f(0x87)],_0x241448=_0x30afcf[_0x59265f(0x8b)][_0x59265f(0xb7)](_0x59265f(0xc2));if(_0x30afcf[_0x59265f(0x8b)][_0x59265f(0xb7)](_0x306bd5)[_0x59265f(0xc9)](this),_0x241448[_0x59265f(0x92)]={'addCommentThread':async({channelId:_0x146cdb,threadId:_0x2d8076,comments:_0x211f77,resolvedAt:_0x227f00,resolvedBy:_0x2d445,context:_0x25b937,attributes:_0x2c03e5})=>{const _0x8b3958=_0x59265f,_0x7d4fba=await this[_0x8b3958(0x84)](_0x146cdb)[_0x8b3958(0x7d)]({'commentThreadId':_0x2d8076,'comments':_0x211f77[_0x8b3958(0xa1)](_0x369963=>function(_0x302c97,_0x2cc4d6,_0x2fa005){const _0x338857=_0x8b3958;return{'commentThreadId':_0x2fa005,'commentId':_0x302c97[_0x338857(0x98)],'userId':_0x302c97[_0x338857(0x7f)],'content':_0x302c97[_0x338857(0x81)],'documentId':_0x2cc4d6,'createdAt':_0x302c97[_0x338857(0xb0)],'attributes':_0x302c97[_0x338857(0xd1)]||{}};}(_0x369963,_0x146cdb,_0x2d8076)),'resolvedAt':_0x227f00,'resolvedBy':_0x2d445,'context':_0x25b937,'attributes':_0x2c03e5})[_0x8b3958(0xc4)](it);return{'threadId':_0x7d4fba[_0x8b3958(0xc7)],'comments':_0x7d4fba[_0x8b3958(0x9a)]};},'getCommentThread':async({channelId:_0x95375b,threadId:_0x305965})=>{const _0x16f54b=_0x59265f,_0x14cefa=await this[_0x16f54b(0x84)](_0x95375b)[_0x16f54b(0xbb)](_0x305965)[_0x16f54b(0xc4)](nt)[_0x16f54b(0xc4)](it);return _0x14cefa?_0x14cefa[_0x16f54b(0xb3)]?null:(await this[_0x16f54b(0xa5)]([_0x14cefa]),{'threadId':_0x14cefa[_0x16f54b(0xc7)],'comments':_0x14cefa[_0x16f54b(0x9a)][_0x16f54b(0xa1)](st),'context':_0x14cefa[_0x16f54b(0x87)],'resolvedAt':_0x14cefa[_0x16f54b(0xb5)],'resolvedBy':_0x14cefa[_0x16f54b(0xc6)],'attributes':_0x14cefa[_0x16f54b(0xd1)]||{}}):null;},'updateCommentThread':async({channelId:_0x181e88,threadId:_0x51a968,context:_0x50cfba,unlinkedAt:_0x5d5e7a,attributes:_0x2e2f67})=>this[_0x59265f(0x84)](_0x181e88)[_0x59265f(0xd8)]({'commentThreadId':_0x51a968,'context':_0x50cfba,'attributes':_0x2e2f67,'unlinkedAt':_0x5d5e7a})[_0x59265f(0xc4)](nt)[_0x59265f(0xc4)](it),'resolveCommentThread':async({channelId:_0x464b10,threadId:_0x537285})=>{const _0x33019b=_0x59265f,_0x343d0c=await this[_0x33019b(0x84)](_0x464b10)[_0x33019b(0x9d)](_0x537285)[_0x33019b(0xc4)](nt)[_0x33019b(0xc4)](it);return{'threadId':_0x343d0c[_0x33019b(0xc7)],'resolvedAt':_0x343d0c[_0x33019b(0xb5)],'resolvedBy':_0x343d0c[_0x33019b(0xc6)]};},'reopenCommentThread':async({channelId:_0x2f9375,threadId:_0x293338})=>this[_0x59265f(0x84)](_0x2f9375)[_0x59265f(0xa3)](_0x293338)[_0x59265f(0xc4)](nt)[_0x59265f(0xc4)](it),'removeCommentThread':({channelId:_0x23e7b9,threadId:_0x56b5d5})=>this[_0x59265f(0x84)](_0x23e7b9)[_0x59265f(0x83)](_0x56b5d5)[_0x59265f(0xc4)](nt)[_0x59265f(0xc4)](it),'addComment':({channelId:_0x3e1786,threadId:_0x58ea38,commentId:_0x583f83,content:_0x231add,attributes:_0x163be9})=>this[_0x59265f(0x84)](_0x3e1786)[_0x59265f(0xa2)](_0x58ea38,_0x583f83,_0x231add,_0x163be9)[_0x59265f(0xc4)](it),'updateComment':({channelId:_0x107adf,threadId:_0x35c02c,commentId:_0x124087,content:_0x428b66,attributes:_0x5b707f})=>this[_0x59265f(0x84)](_0x107adf)[_0x59265f(0xb8)](_0x35c02c,_0x124087,_0x428b66,_0x5b707f)[_0x59265f(0xc4)](nt)[_0x59265f(0xc4)](it),'removeComment':({channelId:_0x607a97,threadId:_0x26d3a8,commentId:_0x945cc0})=>this[_0x59265f(0x84)](_0x607a97)[_0x59265f(0xbd)](_0x26d3a8,_0x945cc0)[_0x59265f(0xc4)](nt)[_0x59265f(0xc4)](it)},_0x30afcf instanceof _0x28fef4){const _0x196ae0=_0x30afcf[_0x59265f(0xb9)][_0x59265f(0xb7)](_0x59265f(0xb4)),_0x2c3490=_0x30afcf[_0x59265f(0x8b)][_0x59265f(0xb7)](_0x22ac7c);await this[_0x59265f(0xd5)](_0x196ae0);const _0x443a41=await this[_0x59265f(0xac)][_0x59265f(0xb7)](_0x196ae0)[_0x59265f(0x96)]();this[_0x59265f(0x8e)](_0x2c3490,_0x59265f(0x93)+_0x196ae0,(_0xfed671,{session:_0x2cea61})=>{const _0x562932=_0x59265f;_0x2cea61['id']===_0x2c3490[_0x562932(0xdc)]&&(_0xfed671[_0x562932(0xca)](),this[_0x562932(0x87)][_0x562932(0x8b)][_0x562932(0xb7)](_0x562932(0xbf))[_0x562932(0x9f)](_0x2cea61[_0x562932(0xbc)],_0x196ae0));}),_0x2c3490[_0x59265f(0x7e)](_0x196ae0,_0x443a41);}}async[_0xf9ada0(0xd5)](_0x15fbd8){const _0x136104=_0xf9ada0;if(this[_0x136104(0xac)][_0x136104(0x86)](_0x15fbd8))throw new _0x2124e4(_0x136104(0x8f),null,{'channelId':_0x15fbd8});const _0x4b7029=this[_0x136104(0x87)][_0x136104(0x8b)][_0x136104(0xb7)](_0x136104(0xc2)),_0x169452=new s[(_0x136104(0xad))](_0x15fbd8);this[_0x136104(0xac)][_0x136104(0x7c)](_0x15fbd8,_0x169452),this[_0x136104(0x8e)](_0x169452,_0x136104(0x91),(_0x7624fc,_0x2c9a44)=>{const _0x1a91f6=_0x136104,{commentThreadId:_0x126ecd,documentId:_0x58039b,context:_0x397d1b,attributes:_0x148063,resolvedAt:_0x390bc3,resolvedBy:_0x486fcb,comments:_0x83ba5c}=_0x2c9a44;_0x4b7029[_0x1a91f6(0xbb)](_0x126ecd)||_0x4b7029[_0x1a91f6(0x7d)]({'threadId':_0x126ecd,'channelId':_0x58039b,'comments':_0x83ba5c?_0x83ba5c[_0x1a91f6(0xa1)](st):[],'context':_0x397d1b,'attributes':_0x148063,'resolvedAt':_0x390bc3,'resolvedBy':_0x486fcb,'isFromAdapter':!0x0});}),this[_0x136104(0x8e)](_0x169452,_0x136104(0xde),(_0x23487b,{commentThreadId:_0x16d98c,documentId:_0x1e3642,context:_0x16b2e6,unlinkedAt:_0x225620,attributes:_0x473aa0})=>{const _0xda082a=_0x136104;_0x4b7029[_0xda082a(0xbb)](_0x16d98c)&&_0x4b7029[_0xda082a(0xd8)]({'threadId':_0x16d98c,'channelId':_0x1e3642,'context':_0x16b2e6,'unlinkedAt':_0x225620,'attributes':_0x473aa0,'isFromAdapter':!0x0});}),this[_0x136104(0x8e)](_0x169452,_0x136104(0x97),(_0x3c732d,{commentThreadId:_0x4dbd5b,resolvedBy:_0x2d2332,resolvedAt:_0x5de1d2})=>{const _0x37b05c=_0x136104,_0x5b160c=_0x4b7029[_0x37b05c(0xbb)](_0x4dbd5b);_0x5b160c&&_0x5b160c[_0x37b05c(0xd9)]({'resolvedBy':_0x2d2332,'resolvedAt':_0x5de1d2,'isFromAdapter':!0x0});}),this[_0x136104(0x8e)](_0x169452,_0x136104(0x8a),(_0x28b7ce,{commentThreadId:_0x52274e})=>{const _0x5eeaac=_0x136104,_0xcfa22e=_0x4b7029[_0x5eeaac(0xbb)](_0x52274e);_0xcfa22e&&_0xcfa22e[_0x5eeaac(0xaa)]({'isFromAdapter':!0x0});}),this[_0x136104(0x8e)](_0x169452,_0x136104(0xb2),(_0x5b5f12,{commentThreadId:_0x357c78})=>{const _0x382543=_0x136104,_0x4985a0=_0x4b7029[_0x382543(0xbb)](_0x357c78);_0x4985a0&&_0x4985a0[_0x382543(0xbe)]({'isFromAdapter':!0x0});}),this[_0x136104(0x8e)](_0x169452,_0x136104(0x95),(_0x5713da,_0x38c3e8)=>{const _0x37a508=_0x136104,_0x9965f5=_0x38c3e8[_0x37a508(0xc7)],_0x55363b=_0x4b7029[_0x37a508(0xbb)](_0x9965f5);_0x55363b&&_0x55363b[_0x37a508(0xa2)]({...st(_0x38c3e8),'isFromAdapter':!0x0});}),this[_0x136104(0x8e)](_0x169452,_0x136104(0xa0),(_0x22eedb,{commentThreadId:_0x381fd8,commentId:_0x193e6a,content:_0xb11ee4,attributes:_0x1e6dc8})=>{const _0x50d664=_0x136104,_0x58e855=_0x4b7029[_0x50d664(0xbb)](_0x381fd8);if(_0x58e855){const _0x2b7793=_0x58e855[_0x50d664(0xc0)](_0x193e6a);_0x2b7793&&_0x2b7793[_0x50d664(0x80)]({'content':_0xb11ee4,'attributes':_0x1e6dc8,'isFromAdapter':!0x0});}}),this[_0x136104(0x8e)](_0x169452,_0x136104(0xcc),(_0x282a72,{commentThreadId:_0x240dc7,commentId:_0x2166be})=>{const _0x37bb62=_0x136104,_0xbb4885=_0x4b7029[_0x37bb62(0xbb)](_0x240dc7);if(_0xbb4885){const _0x43d259=_0xbb4885[_0x37bb62(0xc0)](_0x2166be);_0x43d259&&_0x43d259[_0x37bb62(0xbe)]({'isFromAdapter':!0x0});}}),await this[_0x136104(0xc1)](_0x15fbd8);}[_0xf9ada0(0x88)](){const _0x116b1a=_0xf9ada0;if(this[_0x116b1a(0x87)]instanceof _0x28fef4){const _0x4a90fc=this[_0x116b1a(0x87)][_0x116b1a(0xb9)][_0x116b1a(0xb7)](_0x116b1a(0xb4));this[_0x116b1a(0xaf)](_0x4a90fc);}}[_0xf9ada0(0xaf)](_0x49a1e0){const _0x3ff561=_0xf9ada0;if(!this[_0x3ff561(0xac)][_0x3ff561(0x86)](_0x49a1e0))throw new _0x2124e4(_0x3ff561(0x89),null,{'channelId':_0x49a1e0});this[_0x3ff561(0x84)](_0x49a1e0)[_0x3ff561(0xd2)](),this[_0x3ff561(0xac)][_0x3ff561(0xcb)](_0x49a1e0);}async[_0xf9ada0(0x7b)](){const _0x3620ff=_0xf9ada0;for(const _0x5d4fb8 of this[_0x3620ff(0xac)][_0x3620ff(0x9e)]())await this[_0x3620ff(0xc1)](_0x5d4fb8);if(this[_0x3620ff(0x87)]instanceof _0x28fef4){const _0x10f3a4=this[_0x3620ff(0x87)][_0x3620ff(0xb9)][_0x3620ff(0xb7)](_0x3620ff(0xb4)),_0x5b1ae2=this[_0x3620ff(0x87)][_0x3620ff(0x8b)][_0x3620ff(0xb7)](_0x22ac7c);_0x5b1ae2[_0x3620ff(0xa7)](_0x10f3a4);const _0xd724b5=await this[_0x3620ff(0xac)][_0x3620ff(0xb7)](_0x10f3a4)[_0x3620ff(0x96)]();_0x5b1ae2[_0x3620ff(0x7e)](_0x10f3a4,_0xd724b5);}}async[_0xf9ada0(0xc1)](_0xd6c55b){const _0x3e80f3=_0xf9ada0,{connection:_0x553dea}=this[_0x3e80f3(0x87)][_0x3e80f3(0x8b)][_0x3e80f3(0xb7)](_0x306bd5),_0xdce707=this[_0x3e80f3(0x87)][_0x3e80f3(0x8b)][_0x3e80f3(0xb7)](_0x3e80f3(0xc2)),_0x3e1303=this[_0x3e80f3(0xac)][_0x3e80f3(0xb7)](_0xd6c55b),_0x3f1f8c=await _0x3e1303[_0x3e80f3(0x9b)](_0x553dea);await this[_0x3e80f3(0xa5)](_0x3f1f8c);const _0x14398f=new Set(Array[_0x3e80f3(0x8c)](_0xdce707[_0x3e80f3(0xba)]({'channelId':_0xd6c55b}),_0x2fc33e=>_0x2fc33e['id']));for(const _0x5f52a8 of _0x3f1f8c)_0x5f52a8[_0x3e80f3(0xb3)]||_0x14398f[_0x3e80f3(0xcb)](_0x5f52a8[_0x3e80f3(0xc7)]);for(const _0x5abd97 of _0x14398f)_0xdce707[_0x3e80f3(0xbb)](_0x5abd97)[_0x3e80f3(0xbe)]({'isFromAdapter':!0x0});for(const _0xa03622 of _0x3f1f8c){let _0x38da19=_0xdce707[_0x3e80f3(0xbb)](_0xa03622[_0x3e80f3(0xc7)]);const {commentThreadId:_0x1d61f5,context:_0x225d9f,attributes:_0x37390e,resolvedBy:_0x3fb09d,resolvedAt:_0x3fd2cb,unlinkedAt:_0x4944ce,deletedAt:_0x293c87}=_0xa03622;if(_0x293c87)continue;_0x38da19||(_0x38da19=_0xdce707[_0x3e80f3(0x7d)]({'channelId':_0xd6c55b,'threadId':_0x1d61f5,'context':_0x225d9f,'attributes':_0x37390e||{},'resolvedBy':_0x3fb09d,'resolvedAt':_0x3fd2cb,'unlinkedAt':_0x4944ce,'isFromAdapter':!0x0}));const _0x436fd4=new Set(Array[_0x3e80f3(0x8c)](_0x38da19[_0x3e80f3(0x9a)],_0x2d70ed=>_0x2d70ed['id']));for(const _0x42c3a5 of _0xa03622[_0x3e80f3(0x9a)])_0x436fd4[_0x3e80f3(0xcb)](_0x42c3a5[_0x3e80f3(0x98)]);for(const _0x19c5e0 of _0x436fd4)_0x38da19[_0x3e80f3(0xc0)](_0x19c5e0)[_0x3e80f3(0xbe)]({'isFromAdapter':!0x0});for(const _0x321da0 of _0xa03622[_0x3e80f3(0x9a)]){const _0x57c898=_0x38da19[_0x3e80f3(0xc0)](_0x321da0[_0x3e80f3(0x98)]);_0x57c898?_0x57c898[_0x3e80f3(0x81)]!==_0x321da0[_0x3e80f3(0x81)]&&_0x57c898[_0x3e80f3(0x80)]({'content':_0x321da0[_0x3e80f3(0x81)],'isFromAdapter':!0x0}):_0x38da19[_0x3e80f3(0xa2)](Object[_0x3e80f3(0xdf)](st(_0x321da0),{'isFromAdapter':!0x0}));}}}[_0xf9ada0(0x84)](_0x57df7b){const _0x572f7d=_0xf9ada0;if(!this[_0x572f7d(0xac)][_0x572f7d(0x86)](_0x57df7b))throw new _0x2124e4(_0x572f7d(0x94),null,{'channelId':_0x57df7b});return this[_0x572f7d(0xac)][_0x572f7d(0xb7)](_0x57df7b);}async[_0xf9ada0(0xa5)](_0x363041){const _0x1808f0=_0xf9ada0,_0x1ba3e4=this[_0x1808f0(0x87)][_0x1808f0(0x8b)][_0x1808f0(0xb7)](_0x2301ea),{connection:_0x21b84f}=this[_0x1808f0(0x87)][_0x1808f0(0x8b)][_0x1808f0(0xb7)](_0x306bd5),_0x57f4dd=new Set();for(const {resolvedBy:_0x46b4f9,comments:_0x289df6}of _0x363041){_0x46b4f9&&!_0x1ba3e4[_0x1808f0(0xdb)](_0x46b4f9)&&_0x57f4dd[_0x1808f0(0xc5)](_0x46b4f9);for(const {userId:_0x4ff291}of _0x289df6)_0x1ba3e4[_0x1808f0(0xdb)](_0x4ff291)||_0x57f4dd[_0x1808f0(0xc5)](_0x4ff291);}if(0x0===_0x57f4dd[_0x1808f0(0xb6)])return;const _0x15db6f=await _0x22a081[_0x1808f0(0xd4)](_0x21b84f,Array[_0x1808f0(0x8c)](_0x57f4dd));for(const _0x36791a of _0x15db6f)_0x1ba3e4[_0x1808f0(0xdb)](_0x36791a['id'])||_0x1ba3e4[_0x1808f0(0xda)](_0x36791a);}}function _0x8611(){const _0x4e38d8=['1865944qiNmag','_terminateService','createdAt','requires','commentThreadRemoved','deletedAt','collaboration.channelId','resolvedAt','size','get','updateComment','config','getCommentThreads','getCommentThread','permissions','removeComment','remove','Permissions','getComment','_connectService','CommentsRepository','46341360eILGHT','catch','add','resolvedBy','commentThreadId','5074254NLOhrk','addToReconnectionStack','off','delete','commentRemoved','1231075qoOWWf','CloudServicesCommentsAdapter','88mztApB','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','attributes','disconnect','cloud-services-internal-error:\x20Request\x20timeout.','getMany','_setUpService','isPremiumPlugin','isOfficialPlugin','updateCommentThread','resolve','addUser','getUser','mySessionId','pluginName','commentThreadUpdated','assign','reconnect','set','addCommentThread','register','authorId','update','content','3871345AOlyyO','removeCommentThread','_getService','1038422IRIFpC','has','context','destroy','cloudservicescommentsadapter-disconnect-not-exist','commentThreadReopened','plugins','from','404','listenTo','cloudservicescommentsadapter-connect-already-connected','code','commentThreadAdded','adapter','sessionAdd:','cloudservicescommentsadapter-service-not-exist','commentAdded','getConnectedSessions','commentThreadResolved','commentId','startsWith','comments','connect','9107148JfBNxJ','resolveCommentThread','keys','setPermissions','commentUpdated','map','addComment','reopenCommentThread','init','_fetchMissingUsersForThreads','2vYeZGa','unregister','cloud-services-internal-error:\x20Not\x20connected.','message','reopen','userId','_services','CommentsService'];_0x8611=function(){return _0x4e38d8;};return _0x8611();}export{s as CloudServicesCommentsAdapter};async function nt(_0x3ed976){const _0x4493b4=_0xf9ada0;if(_0x4493b4(0x8d)!==_0x3ed976[_0x4493b4(0x90)])throw _0x3ed976;}function _0x58a0(_0x321f8b,_0x13cd63){const _0x861169=_0x8611();return _0x58a0=function(_0x58a083,_0x3a56e1){_0x58a083=_0x58a083-0x7b;let _0x43fac6=_0x861169[_0x58a083];return _0x43fac6;},_0x58a0(_0x321f8b,_0x13cd63);}function it(_0x3187f2){const _0x443183=_0xf9ada0;if((_0x1d8ff4=_0x3187f2)[_0x443183(0xa9)][_0x443183(0x99)](_0x443183(0xd0))||_0x1d8ff4[_0x443183(0xa9)][_0x443183(0x99)](_0x443183(0xa8))||_0x1d8ff4[_0x443183(0xa9)][_0x443183(0x99)](_0x443183(0xd3)))return new Promise(()=>{});var _0x1d8ff4;throw _0x3187f2;}function st(_0x17a53){const _0x5bdd1b=_0xf9ada0;return{'threadId':_0x17a53[_0x5bdd1b(0xc7)],'commentId':_0x17a53[_0x5bdd1b(0x98)],'content':_0x17a53[_0x5bdd1b(0x81)],'createdAt':_0x17a53[_0x5bdd1b(0xb0)],'authorId':_0x17a53[_0x5bdd1b(0xab)],'attributes':_0x17a53[_0x5bdd1b(0xd1)]||{}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x187d5b=_0xd56d;(function(_0x499943,_0x2c38b6){const _0x22453e=_0xd56d,_0x303b8d=_0x499943();while(!![]){try{const _0x336d7c=parseInt(_0x22453e(0x1a5))/0x1*(-parseInt(_0x22453e(0x19d))/0x2)+parseInt(_0x22453e(0x197))/0x3+-parseInt(_0x22453e(0x198))/0x4+-parseInt(_0x22453e(0x19c))/0x5+parseInt(_0x22453e(0x195))/0x6*(parseInt(_0x22453e(0x1a3))/0x7)+-parseInt(_0x22453e(0x19b))/0x8+parseInt(_0x22453e(0x191))/0x9*(parseInt(_0x22453e(0x19f))/0xa);if(_0x336d7c===_0x2c38b6)break;else _0x303b8d['push'](_0x303b8d['shift']());}catch(_0x101870){_0x303b8d['push'](_0x303b8d['shift']());}}}(_0x5b58,0xb7547));import{Plugin as _0x550243}from'ckeditor5/src/core.js';import{CloudServicesCommentsAdapter as _0x5ba3be}from'./realtimecollaborativecomments/cloudservicescommentsadapter.js';import{RealTimeCollaborativeEditing as _0x353d67}from'./realtimecollaborativeediting.js';import{WebSocketGateway as _0x5b3495}from'./realtimecollaborativeediting/websocketgateway.js';export class RealTimeCollaborativeComments extends _0x550243{static get[_0x187d5b(0x1a2)](){const _0x788e19=_0x187d5b;return[_0x788e19(0x1b0),_0x5ba3be,_0x353d67,_0x5b3495];}static get[_0x187d5b(0x1ad)](){const _0x49f7a4=_0x187d5b;return _0x49f7a4(0x1a9);}static get[_0x187d5b(0x1ae)](){return!0x0;}static get[_0x187d5b(0x19e)](){return!0x0;}[_0x187d5b(0x196)](){const _0x1d6c07=_0x187d5b,_0xf16699=this[_0x1d6c07(0x1a1)][_0x1d6c07(0x1ab)][_0x1d6c07(0x1a7)](_0x5b3495),_0x57ba3c=this[_0x1d6c07(0x1a1)][_0x1d6c07(0x1ab)][_0x1d6c07(0x1a7)](_0x1d6c07(0x1a6)),_0x227f97=this[_0x1d6c07(0x1a1)][_0x1d6c07(0x1ab)][_0x1d6c07(0x1a7)](_0x5ba3be);return this[_0x1d6c07(0x1a1)][_0x1d6c07(0x1b1)][_0x1d6c07(0x199)](_0x1d6c07(0x1af),()=>{const _0x1f2f97=_0x1d6c07;this[_0x1f2f97(0x1aa)](_0xf16699,_0x1f2f97(0x192),(_0x5d8a0c,_0x4d24d3,_0x56413b)=>{const _0x339e49=_0x1f2f97;_0x57ba3c[_0x339e49(0x193)]=_0x339e49(0x19a)!==_0x56413b;});}),this[_0x1d6c07(0x1aa)](_0xf16699,_0x1d6c07(0x192),(_0x346334,_0x5130b2,_0x5d9672)=>{const _0x363741=_0x1d6c07;this[_0x363741(0x1a1)][_0x363741(0x1ab)][_0x363741(0x1a7)](_0x363741(0x194))[_0x363741(0x1a8)](_0x363741(0x19a)!==_0x5d9672);}),_0x227f97[_0x1d6c07(0x1a0)](this[_0x1d6c07(0x1a1)][_0x1d6c07(0x1ac)][_0x1d6c07(0x1a7)](_0x1d6c07(0x1b3)));}[_0x187d5b(0x1b2)](){const _0x1a45f4=_0x187d5b;this[_0x1a45f4(0x1a1)][_0x1a45f4(0x1ab)][_0x1a45f4(0x1a7)](_0x5ba3be)[_0x1a45f4(0x1a4)](this[_0x1a45f4(0x1a1)][_0x1a45f4(0x1ac)][_0x1a45f4(0x1a7)](_0x1a45f4(0x1b3))),super[_0x1a45f4(0x1b2)]();}}function _0xd56d(_0x330047,_0x47ed14){const _0x5b5868=_0x5b58();return _0xd56d=function(_0xd56d2e,_0x189534){_0xd56d2e=_0xd56d2e-0x191;let _0x2da1c9=_0x5b5868[_0xd56d2e];return _0x2da1c9;},_0xd56d(_0x330047,_0x47ed14);}function _0x5b58(){const _0x5de6f1=['isOfficialPlugin','ready','Comments','data','destroy','collaboration.channelId','1531971KmPXUu','change:state','isThreadsLoadingPaused','CommentsRepository','228nipask','init','3349110FHvMnF','5338664wkUhcg','once','connected','3426072hYsijM','2900540KSXfIw','455402tRMxaF','isPremiumPlugin','160SrJmbb','_setUpService','editor','requires','30373nZIAFR','_terminateService','4KCNVlZ','CommentsEditing','get','switchReadOnly','RealTimeCollaborativeComments','listenTo','plugins','config','pluginName'];_0x5b58=function(){return _0x5de6f1;};return _0x5b58();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
((()=>_0x183c49)());[_0x1ec44f(0x1e7)];[_0x1ec44f(0x2c5)];[_0x1ec44f(0x219)];[_0x1ec44f(0x2a4)];[_0x1ec44f(0x1fc)];[_0x1ec44f(0x2d0)];[_0x1ec44f(0x23f)];[_0x1ec44f(0x25a)];[_0x1ec44f(0x21d)];[_0x1ec44f(0x21e)];[_0x1ec44f(0x1f4)];[_0x1ec44f(0x2b1)];[_0x1ec44f(0x24a)];[_0x1ec44f(0x22a)];[_0x1ec44f(0x23d)];[_0x1ec44f(0x2c8)];[_0x1ec44f(0x29f)];[_0x1ec44f(0x232)];static get[_0x1ec44f(0x2b2)](){return[_0x3511c3,_0x59f71b,_0xe885b3,_0x335996,_0x37a2dc,_0x195027];}static get[_0x1ec44f(0x212)](){const _0x37d6e6=_0x1ec44f;return _0x37d6e6(0x254);}static get[_0x1ec44f(0x2bf)](){return!0x0;}static get[_0x1ec44f(0x276)](){return!0x0;}get[_0x1ec44f(0x26b)](){const _0x3406f4=_0x1ec44f;return this[_0x3406f4(0x25b)]+this[_0x3406f4(0x1e7)];}get[_0x1ec44f(0x25b)](){const _0xe880da=_0x1ec44f;return this[_0xe880da(0x219)][_0xe880da(0x2d7)]-this[_0xe880da(0x1e7)];}get[_0x1ec44f(0x1e2)](){const _0x3e8d2f=_0x1ec44f,_0x386f59=this[_0x3e8d2f(0x219)][_0x3e8d2f(0x228)]();for(let _0x3b840d=_0x386f59[_0x3e8d2f(0x22b)]-0x1;_0x3b840d>=0x0;_0x3b840d--){const _0x10c8f7=_0x386f59[_0x3b840d];if(!this[_0x3e8d2f(0x29f)][_0x3e8d2f(0x223)](_0x10c8f7))return _0x10c8f7[_0x3e8d2f(0x222)]+0x1-this[_0x3e8d2f(0x1e7)];}return 0x0;}constructor(_0x4d9e0e){const _0x32a42a=_0x1ec44f;if(super(_0x4d9e0e),this[_0x32a42a(0x1e7)]=0x0,this[_0x32a42a(0x2c5)]=null,this[_0x32a42a(0x219)]=new _0x12243b(),this[_0x32a42a(0x20b)][_0x32a42a(0x1d7)][_0x32a42a(0x227)](_0x32a42a(0x231),{}),this[_0x32a42a(0x2a4)]=this[_0x32a42a(0x20b)][_0x32a42a(0x1d7)][_0x32a42a(0x2c9)](_0x32a42a(0x1f8)),!this[_0x32a42a(0x2a4)])throw new _0x454af8(_0x32a42a(0x26f),this);const _0x16db80=_0x4d9e0e[_0x32a42a(0x1d7)][_0x32a42a(0x2c9)](_0x32a42a(0x2c4))||_0x57a5ee;this[_0x32a42a(0x1fc)]=new l[(_0x32a42a(0x22e))](_0x16db80,this[_0x32a42a(0x2a4)]),this[_0x32a42a(0x2d0)]=this[_0x32a42a(0x20b)][_0x32a42a(0x215)][_0x32a42a(0x224)],this[_0x32a42a(0x23f)]=new _0x3c8e6f(),this[_0x32a42a(0x25a)]=[],this[_0x32a42a(0x21d)]=new WeakSet(),this[_0x32a42a(0x21e)]=new Set(),this[_0x32a42a(0x2d8)](_0x32a42a(0x29d),!0x1),this[_0x32a42a(0x2d8)](_0x32a42a(0x211),!0x1),this[_0x32a42a(0x1f4)]=null,this[_0x32a42a(0x2b1)]=!0x1,this[_0x32a42a(0x24a)]=null,this[_0x32a42a(0x22a)]=0x12c,this[_0x32a42a(0x23d)]=this[_0x32a42a(0x22a)],this[_0x32a42a(0x2c8)]=null,this[_0x32a42a(0x29f)]=new WeakSet(),this[_0x32a42a(0x232)]=new K(this[_0x32a42a(0x29f)]);}[_0x1ec44f(0x235)](){const _0x52cd69=_0x1ec44f,_0x490616=this[_0x52cd69(0x20b)],_0x3bc627=_0x490616[_0x52cd69(0x26d)][_0x52cd69(0x2c9)](_0x37a2dc),_0x1ceb63=_0x490616[_0x52cd69(0x26d)][_0x52cd69(0x2c9)](_0x3511c3);this[_0x52cd69(0x28c)](_0x3bc627,_0x52cd69(0x1e8),(_0x453639,_0x1f73c4)=>{const _0x23ad71=_0x52cd69,_0x137c94=_0x1f73c4[0x0];_0x137c94[_0x23ad71(0x2aa)]&&(_0x453639[_0x23ad71(0x2c7)]=_0x3bc627[_0x23ad71(0x1e0)](_0x137c94[_0x23ad71(0x2aa)]),_0x453639[_0x23ad71(0x257)]()),null===_0x137c94[_0x23ad71(0x2aa)]&&(_0x453639[_0x23ad71(0x2c7)]=null,_0x453639[_0x23ad71(0x257)]());},{'priority':_0x52cd69(0x2d5)}),this[_0x52cd69(0x28c)](_0x490616[_0x52cd69(0x215)][_0x52cd69(0x224)][_0x52cd69(0x29b)],_0x52cd69(0x26a),(_0x29c9dc,_0x5e2ca9)=>{const _0x19c24c=_0x52cd69;_0x5e2ca9[_0x19c24c(0x25f)]&&this[_0x19c24c(0x1d6)]();}),this[_0x52cd69(0x28c)](_0x490616[_0x52cd69(0x2c1)][_0x52cd69(0x258)],_0x52cd69(0x248),()=>{const _0x5f0642=_0x52cd69;this[_0x5f0642(0x1d6)]();}),this[_0x52cd69(0x253)](),_0x490616[_0x52cd69(0x215)]['on'](_0x52cd69(0x1e9),(_0x3591f8,_0x407fb9)=>{const _0x3d2d69=_0x52cd69,_0x236128=_0x407fb9[0x0];_0x236128[_0x3d2d69(0x239)]&&(this[_0x3d2d69(0x247)](_0x236128),this[_0x3d2d69(0x207)]()&&this[_0x3d2d69(0x2ab)]());}),this[_0x52cd69(0x1f1)](),this[_0x52cd69(0x282)](_0x52cd69(0x2a0))['to'](_0x1ceb63,_0x52cd69(0x1ef),this,_0x52cd69(0x211),(_0x7e07d1,_0x361fb0)=>_0x52cd69(0x218)===_0x7e07d1&&!_0x361fb0),this['on'](_0x52cd69(0x2c6),()=>{const _0x39ea41=_0x52cd69;this[_0x39ea41(0x2a0)]?_0x490616[_0x39ea41(0x2c2)](_0x39ea41(0x2b8)):_0x490616[_0x39ea41(0x265)](_0x39ea41(0x2b8));}),this[_0x52cd69(0x2a0)]?_0x490616[_0x52cd69(0x2c2)](_0x52cd69(0x2b8)):_0x490616[_0x52cd69(0x265)](_0x52cd69(0x2b8)),this[_0x52cd69(0x2d8)](_0x52cd69(0x28f),!0x1);}async[_0x1ec44f(0x261)](){const _0x51c8ff=_0x1ec44f,_0x3219ad=this[_0x51c8ff(0x20b)][_0x51c8ff(0x26d)][_0x51c8ff(0x2c9)](_0x59f71b),_0x3cefc5=this[_0x51c8ff(0x20b)][_0x51c8ff(0x26d)][_0x51c8ff(0x2c9)](_0x3511c3);try{this[_0x51c8ff(0x29d)]=!0x0,_0x3219ad[_0x51c8ff(0x2ba)](this[_0x51c8ff(0x2a4)]);const _0x3cacdd=await this[_0x51c8ff(0x1fc)][_0x51c8ff(0x261)](_0x3cefc5[_0x51c8ff(0x2cc)],this[_0x51c8ff(0x1e2)]);await this[_0x51c8ff(0x291)](_0x3cacdd)&&(this[_0x51c8ff(0x29d)]=!0x1,this[_0x51c8ff(0x2d9)]());const _0x57fcf8=await this[_0x51c8ff(0x1fc)][_0x51c8ff(0x281)]();_0x3219ad[_0x51c8ff(0x290)](this[_0x51c8ff(0x2a4)],_0x57fcf8),this[_0x51c8ff(0x210)](),this[_0x51c8ff(0x28f)]=!0x0;}catch(_0x5025e4){if(function(_0x517c4d){const _0xfc1579=_0x51c8ff;return _0xfc1579(0x297)===_0x517c4d[_0xfc1579(0x269)];}(_0x5025e4)&&this[_0x51c8ff(0x2c5)])await this[_0x51c8ff(0x242)]();else{if(function(_0x2b9ba4){const _0x1bf8ed=_0x51c8ff;return _0x1bf8ed(0x2ae)===_0x2b9ba4[_0x1bf8ed(0x269)];}(_0x5025e4)){const _0x4d9ad7=_0x5545a9(this[_0x51c8ff(0x20b)][_0x51c8ff(0x278)],_0x51c8ff(0x26e));this[_0x51c8ff(0x299)](_0x4d9ad7);}else{if(!(_0x5025e4 instanceof G))throw _0x5025e4;this[_0x51c8ff(0x299)]();}}}}[_0x1ec44f(0x1de)](){const _0x34d0a5=_0x1ec44f,_0x3dfc91=this[_0x34d0a5(0x20b)][_0x34d0a5(0x26d)][_0x34d0a5(0x2c9)](_0x3511c3),_0x472cca=this[_0x34d0a5(0x20b)][_0x34d0a5(0x26d)][_0x34d0a5(0x2c9)](_0x59f71b);this[_0x34d0a5(0x20b)][_0x34d0a5(0x265)](_0x34d0a5(0x2a5)),_0x472cca[_0x34d0a5(0x250)][_0x34d0a5(0x223)](this[_0x34d0a5(0x2a4)])&&_0x472cca[_0x34d0a5(0x2ba)](this[_0x34d0a5(0x2a4)]),_0x3dfc91[_0x34d0a5(0x21c)](this),this[_0x34d0a5(0x1d8)](),super[_0x34d0a5(0x1de)]();}async[_0x1ec44f(0x291)](_0x261671){const _0x12228c=_0x1ec44f;if(this[_0x12228c(0x2c5)]!==_0x261671[_0x12228c(0x2c5)]&&this[_0x12228c(0x2c8)]!==_0x261671[_0x12228c(0x225)])throw new G();return this[_0x12228c(0x2c5)]=_0x261671[_0x12228c(0x2c5)],this[_0x12228c(0x28e)]([],{..._0x261671,'wereChangesApplied':!0x1,'data':_0x261671[_0x12228c(0x279)]},_0x12228c(0x261));}async[_0x1ec44f(0x284)](_0x594519,_0x56099f=!0x1){const _0x3348f1=_0x1ec44f,{connection:_0x3e8f34}=this[_0x3348f1(0x20b)][_0x3348f1(0x26d)][_0x3348f1(0x2c9)](_0x3511c3);l[_0x3348f1(0x22e)][_0x3348f1(0x281)](_0x3e8f34,this[_0x3348f1(0x2a4)])[_0x3348f1(0x29c)](_0x8fb287=>this[_0x3348f1(0x238)](_0x8fb287))[_0x3348f1(0x2cb)](_0x391ad7=>{const _0x5eea77=_0x3348f1;this[_0x5eea77(0x237)](_0x5eea77(0x1fa),_0x391ad7);}),this[_0x3348f1(0x28c)](this[_0x3348f1(0x1fc)],_0x3348f1(0x2bd),this[_0x3348f1(0x25d)][_0x3348f1(0x282)](this)),this[_0x3348f1(0x28c)](this[_0x3348f1(0x1fc)],_0x3348f1(0x1e4),(_0x2f298f,_0xa1eb29)=>{const _0x3a4572=_0x3348f1;this[_0x3a4572(0x237)](_0x3a4572(0x277),_0xa1eb29);}),this[_0x3348f1(0x28c)](this[_0x3348f1(0x1fc)],_0x3348f1(0x280),()=>{const _0x2fab2d=_0x3348f1;this[_0x2fab2d(0x28f)]=!0x1;});const _0x22a4b5=this[_0x3348f1(0x232)][_0x3348f1(0x2d4)](_0x594519);this[_0x3348f1(0x29d)]=!0x0;const _0x5b2743=await this[_0x3348f1(0x1fc)][_0x3348f1(0x27b)](_0x3e8f34,this[_0x3348f1(0x209)](_0x594519),_0x22a4b5);if(this[_0x3348f1(0x2c5)]=_0x5b2743[_0x3348f1(0x2c5)],_0x56099f){if(!_0x5b2743[_0x3348f1(0x205)])return void this[_0x3348f1(0x299)]();this[_0x3348f1(0x29d)]=!0x1,this[_0x3348f1(0x2d9)](),this[_0x3348f1(0x219)][_0x3348f1(0x208)](),this[_0x3348f1(0x1e7)]=_0x5b2743[_0x3348f1(0x1fe)],this[_0x3348f1(0x219)][_0x3348f1(0x2d7)]=this[_0x3348f1(0x1e7)],await this[_0x3348f1(0x28e)](_0x594519,_0x5b2743,_0x3348f1(0x25e));}else await this[_0x3348f1(0x267)](_0x5b2743,_0x594519);this[_0x3348f1(0x210)](),this[_0x3348f1(0x28f)]=!0x0;}[_0x1ec44f(0x210)](){const _0x349e86=_0x1ec44f,_0x220b35=this[_0x349e86(0x20b)][_0x349e86(0x26d)][_0x349e86(0x2c9)](_0x59f71b),_0x1701b3=this[_0x349e86(0x20b)][_0x349e86(0x26d)][_0x349e86(0x2c9)](_0xe885b3),_0x54ab93=_0x220b35[_0x349e86(0x250)][_0x349e86(0x2c9)](this[_0x349e86(0x2a4)]);_0x54ab93&&_0x54ab93[_0x349e86(0x22b)]>0x1?_0x1701b3[_0x349e86(0x293)]():this[_0x349e86(0x28c)](_0x220b35,_0x349e86(0x23a)+this[_0x349e86(0x2a4)],()=>{const _0x1a9701=_0x349e86;0x2===_0x220b35[_0x1a9701(0x250)][_0x1a9701(0x2c9)](this[_0x1a9701(0x2a4)])[_0x1a9701(0x22b)]&&_0x1701b3[_0x1a9701(0x293)]();});}async[_0x1ec44f(0x25d)](_0x4ecbd0,_0x160bb0,_0x1ed622,_0x298b06){const _0x377148=_0x1ec44f;if(!this[_0x377148(0x29d)]&&this[_0x377148(0x2d0)][_0x377148(0x2d7)]==_0x160bb0){const _0x2f9a92=this[_0x377148(0x23c)](_0x1ed622,_0x298b06);await this[_0x377148(0x1ed)](_0x2f9a92),this[_0x377148(0x2b7)](_0x2f9a92,_0x160bb0,_0x1ed622[_0x377148(0x225)])||this[_0x377148(0x237)](_0x377148(0x27c));}}async[_0x1ec44f(0x242)](){const _0x1afea2=_0x1ec44f;this[_0x1afea2(0x1d8)]();const {locale:_0x5d91f0}=this[_0x1afea2(0x20b)];let _0x352ac5;try{_0x352ac5=await this[_0x1afea2(0x1fc)][_0x1afea2(0x2d3)]();}catch{const _0x3a2b9b=_0x5545a9(_0x5d91f0,_0x1afea2(0x262));return void this[_0x1afea2(0x299)](_0x3a2b9b);}const _0x3044aa=_0x352ac5[_0x1afea2(0x200)]||_0x352ac5[_0x1afea2(0x24b)];if(this[_0x1afea2(0x2c8)]!==_0x3044aa[_0x1afea2(0x225)]){const _0x1bb7dc=_0x5545a9(_0x5d91f0,_0x1afea2(0x256));return void this[_0x1afea2(0x299)](_0x1bb7dc);}await this[_0x1afea2(0x284)](this[_0x1afea2(0x20b)][_0x1afea2(0x215)][_0x1afea2(0x224)][_0x1afea2(0x23b)][_0x1afea2(0x228)](),!0x0);}[_0x1ec44f(0x1d8)](){const _0x2a940b=_0x1ec44f;this[_0x2a940b(0x1fc)][_0x2a940b(0x20a)](),this[_0x2a940b(0x25a)]=[],clearTimeout(this[_0x2a940b(0x24a)]),this[_0x2a940b(0x234)](this[_0x2a940b(0x1fc)]);}[_0x1ec44f(0x238)](_0x2995aa){const _0x260c1a=_0x1ec44f,_0x42257a=this[_0x260c1a(0x20b)][_0x260c1a(0x26d)][_0x260c1a(0x2c9)](_0x59f71b);this[_0x260c1a(0x28c)](_0x42257a,_0x260c1a(0x23a)+this[_0x260c1a(0x2a4)],(_0x12a661,{session:_0x306b34})=>{const _0x3d0d05=_0x260c1a;if(_0x306b34['id']===_0x42257a[_0x3d0d05(0x204)]){_0x12a661[_0x3d0d05(0x24c)]();const _0x335c0f=this[_0x3d0d05(0x20b)][_0x3d0d05(0x26d)][_0x3d0d05(0x223)](_0x3d0d05(0x27e))&&this[_0x3d0d05(0x20b)][_0x3d0d05(0x26d)][_0x3d0d05(0x2c9)](_0x3d0d05(0x27e));let _0xf1e8fb=_0x306b34[_0x3d0d05(0x23e)];_0x335c0f&&_0x335c0f[_0x3d0d05(0x2be)]&&(_0xf1e8fb=_0xf1e8fb[_0x3d0d05(0x206)](_0x240a62=>_0x3d0d05(0x25c)!==_0x240a62)),this[_0x3d0d05(0x20b)][_0x3d0d05(0x26d)][_0x3d0d05(0x2c9)](_0x3d0d05(0x2b3))[_0x3d0d05(0x203)](_0xf1e8fb,this[_0x3d0d05(0x2a4)]);}}),_0x42257a[_0x260c1a(0x290)](this[_0x260c1a(0x2a4)],_0x2995aa);}[_0x1ec44f(0x253)](){const _0x158e45=_0x1ec44f,_0x21a988=this[_0x158e45(0x20b)][_0x158e45(0x279)][_0x158e45(0x2d8)];this[_0x158e45(0x20b)][_0x158e45(0x279)][_0x158e45(0x2d8)]=(..._0x5df77a)=>{const _0x259379=_0x158e45;if(!_0x5df77a[_0x5df77a[_0x259379(0x22b)]-0x1][_0x259379(0x27d)])throw new _0x454af8(_0x259379(0x226),this);_0x21a988[_0x259379(0x27a)](this[_0x259379(0x20b)][_0x259379(0x279)],_0x5df77a);};}[_0x1ec44f(0x1f1)](){const _0x52909e=_0x1ec44f;this[_0x52909e(0x20b)][_0x52909e(0x279)]['on'](_0x52909e(0x235),(_0x41222e,[_0x33622f])=>{const _0x4a45da=_0x52909e;if(this[_0x4a45da(0x2d0)][_0x4a45da(0x2d7)])throw new _0x454af8(_0x4a45da(0x295),this);_0x41222e[_0x4a45da(0x257)](),this[_0x4a45da(0x213)]();const _0x43e89d=this[_0x4a45da(0x20b)][_0x4a45da(0x1d7)][_0x4a45da(0x2c9)](_0x4a45da(0x1df)),_0x4ba3b2=this[_0x4a45da(0x1ee)](_0x33622f,_0x43e89d);0x0==_0x4ba3b2[_0x4a45da(0x22b)]&&_0x4ba3b2[_0x4a45da(0x1e3)](new _0x158705(0x0)),_0x41222e[_0x4a45da(0x2c7)]=this[_0x4a45da(0x284)](_0x4ba3b2)[_0x4a45da(0x29c)](()=>{const _0x2779df=_0x4a45da;this[_0x2779df(0x20b)][_0x2779df(0x26d)][_0x2779df(0x2c9)](_0x3511c3)[_0x2779df(0x214)](this),this[_0x2779df(0x20b)][_0x2779df(0x279)][_0x2779df(0x1f3)](_0x2779df(0x275));})[_0x4a45da(0x2cb)](_0x2be33d=>this[_0x4a45da(0x237)](_0x4a45da(0x249),_0x2be33d))[_0x4a45da(0x22f)](()=>this[_0x4a45da(0x2d9)]());},{'priority':_0x52909e(0x2d5)}),this[_0x52909e(0x20b)]['on'](_0x52909e(0x298),async(_0x374d0e,[_0x166bce,_0x1729bd])=>{const _0x787589=_0x52909e;_0x374d0e[_0x787589(0x257)]();const _0x563cb8=this[_0x787589(0x20b)][_0x787589(0x215)][_0x787589(0x224)][_0x787589(0x230)](_0x166bce);if(!this[_0x787589(0x21e)][_0x787589(0x223)](_0x166bce)){const _0x2e9d4a=_0x1729bd&&_0x1729bd[_0x787589(0x279)]?_0x1729bd[_0x787589(0x279)]:'',_0xae2f40=_0x1729bd&&_0x1729bd[_0x787589(0x2ce)]?_0x1729bd[_0x787589(0x2ce)]:{};await this[_0x787589(0x20f)](_0x166bce,_0x2e9d4a,_0xae2f40);}this[_0x787589(0x20b)][_0x787589(0x215)][_0x787589(0x272)]({'isUndoable':!0x1},()=>{const _0x16ff0f=_0x787589;_0x563cb8[_0x16ff0f(0x1dc)]=!0x0,this[_0x16ff0f(0x20b)][_0x16ff0f(0x215)][_0x16ff0f(0x224)][_0x16ff0f(0x20e)][_0x16ff0f(0x22d)](_0x563cb8);});},{'priority':_0x52909e(0x2d5)});}async[_0x1ec44f(0x1ed)](_0x5e5684){const _0x1c6a8d=_0x1ec44f,_0x1c7bda=this[_0x1c6a8d(0x20b)][_0x1c6a8d(0x26d)][_0x1c6a8d(0x2c9)](_0x37a2dc),{connection:_0x5a9a6a}=this[_0x1c6a8d(0x20b)][_0x1c6a8d(0x26d)][_0x1c6a8d(0x2c9)](_0x3511c3),_0x2cb011=new Set();for(const _0x30f404 of _0x5e5684){const _0x18dbfd=_0x30f404[_0x1c6a8d(0x2aa)];_0x18dbfd&&!_0x1c7bda[_0x1c6a8d(0x1e0)](_0x18dbfd)&&_0x2cb011[_0x1c6a8d(0x1da)](_0x18dbfd);}if(0x0===_0x2cb011[_0x1c6a8d(0x285)])return;const _0x524c89=await _0x18b2a9[_0x1c6a8d(0x2bb)](_0x5a9a6a,Array[_0x1c6a8d(0x1d5)](_0x2cb011));for(const _0x407b77 of _0x524c89)_0x1c7bda[_0x1c6a8d(0x1e0)](_0x407b77['id'])||_0x1c7bda[_0x1c6a8d(0x263)](_0x407b77);}[_0x1ec44f(0x1ee)](_0x152842,_0x27480a={}){const _0x2c31d6=_0x1ec44f,_0x58aa5a=this[_0x2c31d6(0x20b)][_0x2c31d6(0x215)],_0x5411b9=[];let _0x4518f2=0x0;const _0x162a0f=_0x2c31d6(0x2d1)==typeof _0x152842?{'main':_0x152842}:_0x152842;for(const _0x3d9e9d of Object[_0x2c31d6(0x1db)](_0x162a0f)){if(!this[_0x2c31d6(0x2d0)][_0x2c31d6(0x20d)][_0x2c31d6(0x223)](_0x3d9e9d))throw new _0x454af8(_0x2c31d6(0x251),this);const _0x1395c2=this[_0x2c31d6(0x20b)][_0x2c31d6(0x279)][_0x2c31d6(0x29a)](_0x162a0f[_0x3d9e9d]),_0x5a1eab=this[_0x2c31d6(0x2d0)][_0x2c31d6(0x230)](_0x3d9e9d),_0x3cf062=new _0x5ade7c(_0x58aa5a[_0x2c31d6(0x2a8)](_0x5a1eab,0x0),_0x1395c2,_0x4518f2++);_0x5411b9[_0x2c31d6(0x1e3)](_0x3cf062);for(const [_0x2dde9f,_0x49a8bb]of _0x1395c2[_0x2c31d6(0x2ca)]){const _0x51a427=_0x58aa5a[_0x2c31d6(0x1ea)](_0x58aa5a[_0x2c31d6(0x244)](_0x5a1eab,_0x49a8bb[_0x2c31d6(0x2d2)][_0x2c31d6(0x1f0)][_0x2c31d6(0x245)]()),_0x58aa5a[_0x2c31d6(0x244)](_0x5a1eab,_0x49a8bb[_0x2c31d6(0x274)][_0x2c31d6(0x1f0)][_0x2c31d6(0x245)]())),_0x3c3391=new _0x17ab8a(_0x2dde9f,null,_0x51a427,_0x58aa5a[_0x2c31d6(0x2ca)],!0x0,_0x4518f2++);_0x5411b9[_0x2c31d6(0x1e3)](_0x3c3391);}}if(_0x27480a)for(const [_0x41cc43,_0x22e09a]of Object[_0x2c31d6(0x2ad)](_0x27480a)){const _0x13920b=_0x58aa5a[_0x2c31d6(0x224)][_0x2c31d6(0x230)](_0x41cc43);if(!_0x13920b)throw new _0x454af8(_0x2c31d6(0x266),null);for(const [_0x2be083,_0x266c89]of Object[_0x2c31d6(0x2ad)](_0x22e09a))if(null!==_0x266c89){const _0x2a2581=new _0x2b0723(_0x13920b,_0x2be083,null,_0x266c89,_0x4518f2++);_0x5411b9[_0x2c31d6(0x1e3)](_0x2a2581);}}return _0x5411b9;}async[_0x1ec44f(0x20f)](_0x9e62d6,_0x6ecb9c,_0x302c58){const _0xff0644=_0x1ec44f;this[_0xff0644(0x1ee)]({[_0x9e62d6]:_0x6ecb9c},{[_0x9e62d6]:_0x302c58})[_0xff0644(0x240)]((_0x304431,_0x2d14da)=>{const _0x53649f=_0xff0644;_0x304431[_0x53649f(0x222)]=this[_0x53649f(0x2d0)][_0x53649f(0x2d7)]+_0x2d14da,_0x304431[_0x53649f(0x1dd)]=!0x0,this[_0x53649f(0x247)](_0x304431);}),this[_0xff0644(0x2ab)](),await this[_0xff0644(0x236)]();}async[_0x1ec44f(0x267)](_0x204ff5,_0xd28426){const _0x112e1c=_0x1ec44f;let _0x57f3ba;this[_0x112e1c(0x1e7)]=_0x204ff5[_0x112e1c(0x1fe)];const _0x57edc8=_0x204ff5[_0x112e1c(0x205)]&&!_0x204ff5[_0x112e1c(0x271)],_0x3704da=_0x57edc8?0x0:_0x204ff5[_0x112e1c(0x279)][_0x112e1c(0x222)];if(_0xd28426[_0x112e1c(0x240)](_0x392040=>{const _0x5251b0=_0x112e1c;_0x392040[_0x5251b0(0x1dd)]=!0x0,_0x392040[_0x5251b0(0x1fd)]=_0x204ff5[_0x5251b0(0x22c)],_0x392040[_0x5251b0(0x2aa)]=null;}),_0x57edc8)_0x57f3ba=_0xd28426,this[_0x112e1c(0x28b)](_0x57f3ba,_0x57edc8);else{if(_0x204ff5[_0x112e1c(0x271)]){const _0x1792b4=this[_0x112e1c(0x1ee)](_0x204ff5[_0x112e1c(0x271)]);this[_0x112e1c(0x2d0)][_0x112e1c(0x23b)][_0x112e1c(0x2d7)]=-_0x1792b4[_0x112e1c(0x22b)],_0x1792b4[_0x112e1c(0x240)](_0x480f42=>{const _0x1df585=_0x112e1c;_0x480f42[_0x1df585(0x222)]-=_0x1792b4[_0x1df585(0x22b)],_0x480f42[_0x1df585(0x1fd)]=_0x204ff5[_0x1df585(0x22c)],_0x480f42[_0x1df585(0x1dd)]=!0x0,_0x480f42[_0x1df585(0x2aa)]=null;}),this[_0x112e1c(0x28b)](_0x1792b4,!0x0),this[_0x112e1c(0x219)][_0x112e1c(0x2d7)]=-_0x1792b4[_0x112e1c(0x22b)]+this[_0x112e1c(0x1e7)],this[_0x112e1c(0x252)](_0x1792b4);}this[_0x112e1c(0x2d0)][_0x112e1c(0x23b)][_0x112e1c(0x2d7)]=_0x3704da,_0x57f3ba=this[_0x112e1c(0x23c)](_0x204ff5[_0x112e1c(0x279)],_0x204ff5[_0x112e1c(0x296)]),await this[_0x112e1c(0x1ed)](_0x57f3ba),this[_0x112e1c(0x28b)](_0x57f3ba,_0x57edc8);}_0x204ff5[_0x112e1c(0x225)]&&(this[_0x112e1c(0x232)][_0x112e1c(0x255)](_0x57f3ba,_0x204ff5[_0x112e1c(0x225)]),this[_0x112e1c(0x2c8)]=_0x204ff5[_0x112e1c(0x225)]),this[_0x112e1c(0x219)][_0x112e1c(0x2d7)]=_0x3704da+this[_0x112e1c(0x1e7)],this[_0x112e1c(0x252)](_0x57f3ba),_0xd28426[_0x112e1c(0x206)](_0x363b0f=>{const _0x3de7cf=_0x112e1c,_0x52772c=this[_0x3de7cf(0x1e6)](_0x363b0f);return _0x52772c&&!this[_0x3de7cf(0x21e)][_0x3de7cf(0x223)](_0x52772c);})[_0x112e1c(0x240)]((_0x445108,_0x27a824)=>{const _0x4200bd=_0x112e1c;_0x445108[_0x4200bd(0x222)]=this[_0x4200bd(0x2d0)][_0x4200bd(0x2d7)]+_0x27a824,this[_0x4200bd(0x247)](_0x445108);}),this[_0x112e1c(0x207)]()?(this[_0x112e1c(0x23d)]=0x0,this[_0x112e1c(0x2ab)](!0x0),await this[_0x112e1c(0x236)]()):(this[_0x112e1c(0x29d)]=!0x1,this[_0x112e1c(0x2d9)]());}[_0x1ec44f(0x237)](_0x229c9d,_0x22aefb){const _0x5dc25a=_0x1ec44f,_0x2efd27=_0x22aefb&&_0x22aefb[_0x5dc25a(0x20c)];if(_0x2efd27&&_0x2efd27[_0x5dc25a(0x2c0)](_0x5dc25a(0x24d)))throw _0x22aefb;const _0x56c088=this[_0x5dc25a(0x20b)][_0x5dc25a(0x26d)][_0x5dc25a(0x2c9)](_0x3511c3);throw this[_0x5dc25a(0x29d)]=!0x0,_0x56c088[_0x5dc25a(0x20a)](),this[_0x5dc25a(0x20b)][_0x5dc25a(0x265)](_0x5dc25a(0x2b5)),new _0x454af8(_0x229c9d,this[_0x5dc25a(0x20b)],_0x2efd27?{'originalError':_0x2efd27}:void 0x0);}[_0x1ec44f(0x247)](_0x4c30df){const _0x34c008=_0x1ec44f;this[_0x34c008(0x21d)][_0x34c008(0x223)](_0x4c30df)||(this[_0x34c008(0x21d)][_0x34c008(0x1da)](_0x4c30df),this[_0x34c008(0x25a)][_0x34c008(0x1e3)](_0x4c30df),this[_0x34c008(0x1f4)]||_0x34c008(0x27f)==_0x4c30df[_0x34c008(0x243)]&&!_0x4c30df[_0x34c008(0x201)]||this[_0x34c008(0x213)]());}[_0x1ec44f(0x2ab)](_0x31b3fd=!0x1){const _0xf45c44=_0x1ec44f;!_0x31b3fd&&this[_0xf45c44(0x29d)]||(this[_0xf45c44(0x29d)]=!0x0,clearTimeout(this[_0xf45c44(0x24a)]),this[_0xf45c44(0x24a)]=setTimeout(()=>{const _0x3fe321=_0xf45c44;this[_0x3fe321(0x246)]()[_0x3fe321(0x29c)](_0x38f00d=>{const _0x547529=_0x3fe321;_0x38f00d&&(this[_0x547529(0x2d9)](),this[_0x547529(0x29d)]=!0x1);})[_0x3fe321(0x2cb)](_0x229117=>{const _0x3a15d0=_0x3fe321;this[_0x3a15d0(0x2d9)](),this[_0x3a15d0(0x29d)]=!0x1,function(_0x5dc40b){const _0x312944=_0x3a15d0;return _0x5dc40b[_0x312944(0x20c)][_0x312944(0x2c0)](_0x312944(0x268))||_0x5dc40b[_0x312944(0x20c)][_0x312944(0x2c0)](_0x312944(0x1ec))||_0x5dc40b[_0x312944(0x20c)][_0x312944(0x2c0)](_0x312944(0x2b0));}(_0x229117)||this[_0x3a15d0(0x237)](_0x229117[_0x3a15d0(0x20c)],_0x229117);});},this[_0xf45c44(0x23d)]));}[_0x1ec44f(0x236)](){return new Promise(_0x37db62=>{const _0x53bd47=_0x8480;this['on'](_0x53bd47(0x260),()=>{_0x37db62();});});}async[_0x1ec44f(0x246)](){const _0x5929a5=_0x1ec44f,_0x346e20=this[_0x5929a5(0x20b)][_0x5929a5(0x26d)][_0x5929a5(0x2c9)](_0xe885b3);if(this[_0x5929a5(0x1d9)]()&&(_0x346e20[_0x5929a5(0x293)](),this[_0x5929a5(0x2b1)]=!0x1),!this[_0x5929a5(0x207)]())return!0x0;const _0x4f02b6=[...this[_0x5929a5(0x25a)]];for(const _0x55d430 of _0x4f02b6)_0x55d430[_0x5929a5(0x229)]=this[_0x5929a5(0x2d0)][_0x5929a5(0x23b)][_0x5929a5(0x2a2)](_0x55d430);const _0xe5e526=this[_0x5929a5(0x232)][_0x5929a5(0x2d4)](_0x4f02b6),_0x324528=q++,_0x1f1142=this[_0x5929a5(0x209)](_0x4f02b6),_0x2bfa3e=await this[_0x5929a5(0x1fc)][_0x5929a5(0x287)](_0x1f1142,_0x1f1142[_0x5929a5(0x222)],_0xe5e526);try{return await this[_0x5929a5(0x28e)](_0x4f02b6,_0x2bfa3e,_0x324528);}catch(_0x4dd780){return this[_0x5929a5(0x237)](_0x5929a5(0x2bc),_0x4dd780);}}async[_0x1ec44f(0x28e)](_0x17853d,_0x309271,_0x14ecf2){const _0x1b5f41=_0x1ec44f;if(_0x1b5f41(0x1e4)in _0x309271)throw _0x309271[_0x1b5f41(0x1e4)];let _0x32018d=!0x1;if(_0x309271[_0x1b5f41(0x205)]){_0x309271[_0x1b5f41(0x225)]&&(this[_0x1b5f41(0x2c8)]=_0x309271[_0x1b5f41(0x225)]),this[_0x1b5f41(0x25a)]=this[_0x1b5f41(0x25a)][_0x1b5f41(0x206)](_0x491d8f=>!_0x17853d[_0x1b5f41(0x1ff)](_0x491d8f));for(const _0x203a51 of _0x17853d)_0x203a51[_0x1b5f41(0x1fd)]=_0x1b5f41(0x288)in _0x309271&&_0x309271[_0x1b5f41(0x288)]||void 0x0;$(_0x17853d,_0x309271[_0x1b5f41(0x2d7)]-_0x17853d[_0x1b5f41(0x22b)]),this[_0x1b5f41(0x252)](_0x17853d);const _0x217a96=_0x17853d[_0x1b5f41(0x206)](_0xe86640=>{const _0x3f457b=_0x1b5f41;if(!_0xe86640[_0x3f457b(0x1dd)])return!0x1;const _0x5c5977=this[_0x3f457b(0x1e6)](_0xe86640);return _0x5c5977&&!this[_0x3f457b(0x21e)][_0x3f457b(0x223)](_0x5c5977);});$(_0x217a96,this[_0x1b5f41(0x2d0)][_0x1b5f41(0x2d7)]),this[_0x1b5f41(0x28b)](_0x217a96),_0x32018d=!0x0,this[_0x1b5f41(0x23d)]=this[_0x1b5f41(0x22a)];}else{const _0x4c2a3e=this[_0x1b5f41(0x23c)](_0x309271[_0x1b5f41(0x279)],_0x309271[_0x1b5f41(0x296)])[_0x1b5f41(0x206)](_0x5021b1=>_0x5021b1[_0x1b5f41(0x222)]>=this[_0x1b5f41(0x25b)]);_0x4c2a3e[_0x1b5f41(0x240)](_0x52d2b6=>this[_0x1b5f41(0x21b)](_0x52d2b6)),this[_0x1b5f41(0x25a)]=this[_0x1b5f41(0x25a)][_0x1b5f41(0x206)](_0x590d76=>!_0x590d76[_0x1b5f41(0x1dd)]||!this[_0x1b5f41(0x21e)][_0x1b5f41(0x223)](this[_0x1b5f41(0x1e6)](_0x590d76))),this[_0x1b5f41(0x25a)][_0x1b5f41(0x22b)]&&$(this[_0x1b5f41(0x25a)],this[_0x1b5f41(0x25a)][0x0][_0x1b5f41(0x222)]),await this[_0x1b5f41(0x1ed)](_0x4c2a3e),_0x32018d=this[_0x1b5f41(0x2b7)](_0x4c2a3e,_0x309271[_0x1b5f41(0x2d7)],_0x309271[_0x1b5f41(0x225)]),this[_0x1b5f41(0x23d)]=Math[_0x1b5f41(0x1eb)](this[_0x1b5f41(0x23d)]/0x2);}return _0x32018d?!this[_0x1b5f41(0x207)]()||(this[_0x1b5f41(0x2ab)](!0x0),!0x1):this[_0x1b5f41(0x237)](_0x1b5f41(0x28a));}[_0x1ec44f(0x2b7)](_0x3769c6,_0x4e0b67,_0x41866e){const _0x4f97d6=_0x1ec44f;try{const _0xfeb10e={'document':this[_0x4f97d6(0x2d0)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x74baea,operationsB:_0x350aac,originalOperations:_0x39bbd3}=_0x57b2e1(_0x3769c6,this[_0x4f97d6(0x25a)],_0xfeb10e);$(_0x74baea,this[_0x4f97d6(0x2d0)][_0x4f97d6(0x2d7)]),$(_0x350aac,_0x4e0b67);for(const _0x1c94f2 of _0x74baea){const _0x18f748=_0x39bbd3[_0x4f97d6(0x2c9)](_0x1c94f2);_0x1c94f2[_0x4f97d6(0x2aa)]=_0x18f748?_0x18f748[_0x4f97d6(0x2aa)]:null;}_0x41866e&&(this[_0x4f97d6(0x232)][_0x4f97d6(0x255)](_0x3769c6,_0x41866e),this[_0x4f97d6(0x2c8)]=_0x41866e),this[_0x4f97d6(0x25a)]=[..._0x350aac],this[_0x4f97d6(0x28b)](_0x74baea),this[_0x4f97d6(0x252)](_0x3769c6);}catch(_0x103723){return console[_0x4f97d6(0x1e4)](_0x103723),!0x1;}return!0x0;}[_0x1ec44f(0x28b)](_0x3e9fa3,_0x24e231=!0x1){const _0x3141ed=_0x1ec44f;this[_0x3141ed(0x20b)][_0x3141ed(0x215)][_0x3141ed(0x272)]({'isUndoable':!0x1,'isLocal':!0x1},_0x5b2661=>{const _0xc71c07=_0x3141ed;for(const _0x4771c2 of _0x3e9fa3)this[_0xc71c07(0x21d)][_0xc71c07(0x1da)](_0x4771c2),this[_0xc71c07(0x21b)](_0x4771c2),_0x5b2661[_0xc71c07(0x220)][_0xc71c07(0x202)](_0x4771c2),this[_0xc71c07(0x20b)][_0xc71c07(0x215)][_0xc71c07(0x1e9)](_0x4771c2);});}[_0x1ec44f(0x21b)](_0x123b65){const _0x4d23fd=_0x1ec44f,_0x1c5e10=this[_0x4d23fd(0x1e6)](_0x123b65);_0x1c5e10&&this[_0x4d23fd(0x21e)][_0x4d23fd(0x1da)](_0x1c5e10);}[_0x1ec44f(0x1e6)](_0x30ed5f){const _0x23fcc9=_0x1ec44f;let _0x1d8bec,_0x3bb339;switch(_0x30ed5f[_0x23fcc9(0x243)]){case _0x23fcc9(0x283):_0x1d8bec=_0x30ed5f[_0x23fcc9(0x217)][_0x23fcc9(0x270)];break;case _0x23fcc9(0x27f):if(_0x3bb339=_0x30ed5f[_0x23fcc9(0x1f2)],!_0x3bb339)return null;_0x1d8bec=_0x3bb339[_0x23fcc9(0x270)];break;case _0x23fcc9(0x21a):_0x1d8bec=_0x30ed5f[_0x23fcc9(0x270)];break;case _0x23fcc9(0x2b4):_0x1d8bec=_0x30ed5f[_0x23fcc9(0x2a9)];break;case _0x23fcc9(0x2d6):_0x1d8bec=_0x30ed5f[_0x23fcc9(0x2c3)][_0x23fcc9(0x270)];break;default:return null;}return _0x1d8bec[_0x23fcc9(0x241)];}[_0x1ec44f(0x252)](_0x194a35){const _0x14062a=_0x1ec44f;_0x194a35[_0x14062a(0x240)](_0x3abfde=>{const _0x5775db=_0x14062a,_0x5bf0c3=_0x3abfde[_0x5775db(0x264)]();_0x5bf0c3[_0x5775db(0x2aa)]=_0x3abfde[_0x5775db(0x2aa)],_0x5bf0c3[_0x5775db(0x1dd)]=!!_0x3abfde[_0x5775db(0x1dd)],_0x5bf0c3[_0x5775db(0x1fd)]=_0x3abfde[_0x5775db(0x1fd)],_0x5bf0c3[_0x5775db(0x222)]+=this[_0x5775db(0x1e7)],_0x3abfde[_0x5775db(0x24e)]&&this[_0x5775db(0x29f)][_0x5775db(0x1da)](_0x5bf0c3),this[_0x5775db(0x219)][_0x5775db(0x202)](_0x5bf0c3);});}[_0x1ec44f(0x299)](_0x5b1b62){const _0x2187a3=_0x1ec44f,_0x48326a=this[_0x2187a3(0x20b)][_0x2187a3(0x26d)][_0x2187a3(0x2c9)](_0x2187a3(0x233)),_0x41cf39=this[_0x2187a3(0x20b)][_0x2187a3(0x278)];_0x5b1b62||(_0x5b1b62=_0x5545a9(_0x41cf39,_0x2187a3(0x273))),_0x48326a[_0x2187a3(0x2cf)](_0x5b1b62,{'title':_0x5545a9(_0x41cf39,_0x2187a3(0x2a3)),'namespace':_0x2187a3(0x1f7)}),this[_0x2187a3(0x211)]=!0x0,clearTimeout(this[_0x2187a3(0x24a)]),this[_0x2187a3(0x25a)]=[],this[_0x2187a3(0x20b)][_0x2187a3(0x26d)][_0x2187a3(0x2c9)](_0x3511c3)[_0x2187a3(0x20a)]();}[_0x1ec44f(0x213)](){const _0x4bc494=_0x1ec44f;this[_0x4bc494(0x1f4)]||(this[_0x4bc494(0x1f4)]=this[_0x4bc494(0x20b)][_0x4bc494(0x26d)][_0x4bc494(0x2c9)](_0x335996)[_0x4bc494(0x1da)](_0x5545a9(this[_0x4bc494(0x20b)][_0x4bc494(0x278)],_0x4bc494(0x1fb))));}[_0x1ec44f(0x2d9)](){const _0x55286d=_0x1ec44f;this[_0x55286d(0x1f4)]&&(this[_0x55286d(0x20b)][_0x55286d(0x26d)][_0x55286d(0x2c9)](_0x335996)[_0x55286d(0x289)](this[_0x55286d(0x1f4)]),this[_0x55286d(0x1f4)]=null);}[_0x1ec44f(0x209)](_0x598d70){const _0x580eb9=_0x1ec44f,_0x171f58=_0x598d70[_0x580eb9(0x21f)](_0xf9b93e=>_0xf9b93e[_0x580eb9(0x292)]());return this[_0x580eb9(0x23f)][_0x580eb9(0x2b9)](_0x171f58);}[_0x1ec44f(0x23c)](_0x2b93c6,_0x521e78){const _0x2171ad=_0x1ec44f;return this[_0x2171ad(0x23f)][_0x2171ad(0x28d)](_0x2b93c6)[_0x2171ad(0x21f)]((_0xd9ff3a,_0x1a4ec9)=>{const _0x2bb232=_0x2171ad,_0x3a6511=_0x2bb232(0x235)==_0x521e78[_0x1a4ec9][_0x2bb232(0x243)];if(_0x2bb232(0x2cd)==_0xd9ff3a[_0x2bb232(0x259)]){const _0x296c0f=_0xd9ff3a[_0x2bb232(0x217)][_0x2bb232(0x270)];!this[_0x2bb232(0x2d0)][_0x2bb232(0x230)](_0x296c0f)&&(this[_0x2bb232(0x2d0)][_0x2bb232(0x1e1)](_0x2bb232(0x221),_0x296c0f)[_0x2bb232(0x26c)]=!0x1);}const _0x31d427=_0x18e4d8[_0x2bb232(0x1e5)](_0xd9ff3a,this[_0x2bb232(0x2d0)]);return _0x31d427[_0x2bb232(0x229)]=_0xd9ff3a[_0x2bb232(0x229)],_0x31d427[_0x2bb232(0x1dd)]=_0x3a6511,_0x31d427[_0x2bb232(0x2aa)]=_0x3a6511?null:_0x521e78[_0x1a4ec9][_0x2bb232(0x2a6)],_0x31d427[_0x2bb232(0x24e)]=_0x2bb232(0x2b6)===_0x521e78[_0x1a4ec9][_0x2bb232(0x243)],_0x31d427[_0x2bb232(0x1fd)]=_0x521e78[_0x1a4ec9][_0x2bb232(0x1fd)],_0x31d427;});}[_0x1ec44f(0x1d6)](){const _0x1db23b=_0x1ec44f;this[_0x1db23b(0x2b1)]=!0x0,this[_0x1db23b(0x1d9)]()?this[_0x1db23b(0x2ab)]():this[_0x1db23b(0x2b1)]=!0x1;}[_0x1ec44f(0x1d9)](){const _0x559dbb=_0x1ec44f,_0x232ee3=this[_0x559dbb(0x20b)][_0x559dbb(0x26d)][_0x559dbb(0x2c9)](_0x59f71b)[_0x559dbb(0x250)][_0x559dbb(0x2c9)](this[_0x559dbb(0x2a4)]);return!this[_0x559dbb(0x20b)][_0x559dbb(0x2af)]&&!!_0x232ee3&&_0x232ee3[_0x559dbb(0x22b)]>0x1&&this[_0x559dbb(0x2b1)];}[_0x1ec44f(0x207)](){const _0x23b55e=_0x1ec44f;return this[_0x23b55e(0x25a)][_0x23b55e(0x22b)]>0x0||this[_0x23b55e(0x1d9)]();}}export{l as RealTimeCollaborationClient};function _0x4c86(){const _0x56c216=['offset','includes','currentDocumentSession','affectsData','addOperation','setPermissions','mySessionId','wereChangesApplied','filter','_shouldSendUpdate','reset','_compressOperations','disconnect','editor','message','roots','differ','_loadRoot','_handleSendingSelectionMarkers','_hasSynchronizationProblem','pluginName','_setPendingAction','addToReconnectionStack','model','3472056sYoJZJ','position','connected','serverHistory','addRootAttribute','_addKnownRoot','removeFromReconnectionStack','_knownOperations','_knownRootNames','map','batch','$root','baseVersion','has','document','lastOperationId','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','define','getOperations','wasUndone','_baseBufferDelay','length','sessionCreatedAt','_bufferRootLoad','CollaborativeEditingService','finally','getRoot','collaboration','_operationIdentifier','Notification','stopListening','init','_waitUntilSynced','_crash','_initSessionsHandling','isDocumentOperation','sessionAdd:','history','_decompressOperations','_currentBufferDelay','permissions','_compressor','forEach','rootName','_connectAfterSessionHasBeenFlushed','type','createPositionFromPath','slice','_sendBufferedOperations','_saveOperationInBuffer','change:hasDomSelection','realtimecollaborationclient-init-connection-failed','_sendBufferedOperationsDelayId','lastDocumentSession','off','realtimecollaborationclient','_isDisconnection','475920RYkiNx','channelSessions','realtimecollaborationclient-init-non-existent-root','_updateServerHistory','_initThrowingOnDataSet','RealTimeCollaborationClient','setIdForTheLastOperation','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.','stop','view','__className','_bufferedOperations','_lastServerVersion','document:write','_handleReceivedOperations','reconnection:\x20flushed\x20session','directChange','change:_isPendingUpdate','reconnect','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','addUser','clone','enableReadOnlyMode','multi-root-editor-root-attributes-no-root','_handleInitialConnectionData','cloud-services-internal-error:\x20Not\x20connected.','code','change:range','cloudDocumentVersion','_isAttached','plugins','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','collaboration-missing-channelid','root','initData','enqueueChange','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.','end','ready','isPremiumPlugin','realtimecollaborationclient-init-service-internal-error','locale','data','apply','connect','realtimecollaborationclient-init-service-incorrect-server-operation','suppressErrorInCollaboration','CommentsOnly','marker','disconnected','getConnectedSessions','bind','insert','_connectService','size','6702DZYrVX','sendOperations','lastOperationAcceptedAt','remove','realtimecollaborationclient-handleserverresponse','_applyOperationsSet','listenTo','decompress','_handleServerResponse','_isConnected','register','_handleReconnectionResponse','toJSON','createUserMarkerOperations','5720976VVqPka','realtimecollaborationclient-init-document-already-initialized','metadata','404','loadRoot','_handleReconnectionError','parse','selection','then','_isPendingUpdate','6dSaIvb','_disconnectionOperations','_isEditingAllowed','669qaUQoL','isUndoneOperation','Synchronization\x20issue','_channelId','rtc-destroyed','userId','_ignoredOperations','createPositionAt','affectedSelectable','_authorId','_sendBufferedOperationsDelayed','5533902UvKVRB','entries','409','isReadOnly','cloud-services-internal-error:\x20Request\x20timeout.','_hasSelectionChanged','requires','Permissions','addRoot','realtimecollaborationclient-error','cs:removeUser','_handleExternalOperations','rtc-offline','compress','unregister','getMany','realtimecollaborationclient-sendbufferedoperations','operationsReceived','isEnabled','isOfficialPlugin','startsWith','editing','disableReadOnlyMode','targetPosition','cloudServices.bundleVersion','sessionId','change:_isEditingAllowed','return','_lastSyncedOperationId','get','markers','catch','connection','InsertOperation','attributes','showWarning','_document','string','start','getDocumentDetails','getIdOfTheLastOperation','high','move','version','set','_clearPendingAction','from','_refreshUserSelectionMarkers','config','_disconnectService','_shouldSendSelectionUpdate','add','keys','_isLoaded','_isInit','destroy','rootsAttributes','getUser','createRoot','lastSyncVersion','push','error','fromJSON','_getAffectedRoot','_offset','getOperationAuthor','applyOperation','createRange','round','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','_fetchMissingUsers','_getOperationsFromInitData','state','path','_setUpDataInit','newRange','fire','_pendingAction','172405UoOUii','2103017mDpzBJ','real-time-collaboration','collaboration.channelId','_operationToId','realtimecollaborationclient-init-session-connection-error','PENDING_ACTION_SENDING_DATA','_service','createdAt'];_0x4c86=function(){return _0x56c216;};return _0x4c86();}class G extends Error{}function $(_0x83824c,_0x5519fd){const _0x29a170=_0x1ec44f;for(const _0x5a37b6 of _0x83824c)_0x5a37b6[_0x29a170(0x222)]=_0x5519fd++;}class K{[_0x1ec44f(0x2a7)];[_0x1ec44f(0x1f9)];constructor(_0x1dcb09){const _0xce57ca=_0x1ec44f;this[_0xce57ca(0x2a7)]=_0x1dcb09,this[_0xce57ca(0x1f9)]=new WeakMap();}[_0x1ec44f(0x2d4)](_0x38d1af){const _0x4d53c8=_0x1ec44f;let _0x5ba68f=_0x38d1af[_0x4d53c8(0x22b)];for(;_0x5ba68f--;){const _0x52de48=_0x38d1af[_0x5ba68f];if(!this[_0x4d53c8(0x2a7)][_0x4d53c8(0x223)](_0x52de48)){if(!this[_0x4d53c8(0x1f9)][_0x4d53c8(0x223)](_0x52de48)){const _0x17f828=_0x5eccf6()[_0x4d53c8(0x245)](0x1,0x12);this[_0x4d53c8(0x1f9)][_0x4d53c8(0x2d8)](_0x52de48,_0x17f828);}return this[_0x4d53c8(0x1f9)][_0x4d53c8(0x2c9)](_0x52de48);}}}[_0x1ec44f(0x255)](_0x3a2e2d,_0x385a18){const _0x1f1c95=_0x1ec44f;if(!_0x385a18)return;let _0x56f69f=_0x3a2e2d[_0x1f1c95(0x22b)];for(;_0x56f69f--;){const _0x14f984=_0x3a2e2d[_0x56f69f];this[_0x1f1c95(0x2a7)][_0x1f1c95(0x223)](_0x14f984)||this[_0x1f1c95(0x1f9)][_0x1f1c95(0x2d8)](_0x14f984,_0x385a18);}}}
|
|
23
|
+
const _0x1dd6e0=_0x3dbd;(function(_0x1e28d7,_0x4c2398){const _0x4aa5f6=_0x3dbd,_0x347124=_0x1e28d7();while(!![]){try{const _0x2a8d17=parseInt(_0x4aa5f6(0x1da))/0x1*(parseInt(_0x4aa5f6(0x122))/0x2)+parseInt(_0x4aa5f6(0x149))/0x3+-parseInt(_0x4aa5f6(0x1ee))/0x4*(-parseInt(_0x4aa5f6(0x1d6))/0x5)+parseInt(_0x4aa5f6(0x1b5))/0x6+parseInt(_0x4aa5f6(0x182))/0x7+parseInt(_0x4aa5f6(0x129))/0x8*(-parseInt(_0x4aa5f6(0x101))/0x9)+-parseInt(_0x4aa5f6(0x15b))/0xa*(parseInt(_0x4aa5f6(0x146))/0xb);if(_0x2a8d17===_0x4c2398)break;else _0x347124['push'](_0x347124['shift']());}catch(_0x4d9a88){_0x347124['push'](_0x347124['shift']());}}}(_0x2624,0x34086));import{Plugin as _0x39f00c,PendingActions as _0x2b33ae}from'ckeditor5/src/core.js';import{CKEditorError as _0x9abfc5,version as _0x4a7317,uid as _0x3332ff}from'ckeditor5/src/utils.js';import{Notification as _0x39330b}from'ckeditor5/src/ui.js';import{transformOperationSets as _0x319a47,NoOperation as _0x1ad666,InsertOperation as _0x26ee34,MarkerOperation as _0xd8f5c1,RootAttributeOperation as _0x36e685,OperationFactory as _0xaa4d68,History as _0x341c1d}from'ckeditor5/src/engine.js';function _0x2624(){const _0xfca22f=['editor','_connectService','372349aHYUMy','disconnect','_decompressOperations','_getAffectedRoot','disconnected','$root','getMany','initData','enqueueChange','realtimecollaborationclient-init-document-already-initialized','createdAt','_currentBufferDelay','_handleReconnectionResponse','applyOperation','_lastServerVersion','_waitUntilSynced','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','change:_isEditingAllowed','init','round','1668076oxaPWH','_handleReconnectionError','_handleSendingSelectionMarkers','wasUndone','realtimecollaborationclient-init-service-internal-error','version','sendOperations','_compressor','clone','_initThrowingOnDataSet','InsertOperation','data','isEnabled','_setUpDataInit','realtimecollaborationclient','model','high','set','affectedSelectable','entries','realtimecollaborationclient-init-non-existent-root','setIdForTheLastOperation','decompress','_offset','isOfficialPlugin','insert','9PzROGA','_channelId','startsWith','rootsAttributes','suppressErrorInCollaboration','newRange','realtimecollaborationclient-handleserverresponse','The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','setPermissions','_saveOperationInBuffer','destroy','_bufferedOperations','editing','differ','_isPendingUpdate','_isDisconnection','change:_isPendingUpdate','_lastSyncedOperationId','lastSyncVersion','root','_isInit','includes','Permissions','batch','currentDocumentSession','position','stopListening','_sendBufferedOperationsDelayed','_handleServerResponse','_operationToId','keys','fromJSON','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','2uvPrfH','_ignoredOperations','off','409','cloudServices.bundleVersion','from','remove','2597656XtdEBk','plugins','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','_document','filter','error','_initSessionsHandling','Notification','collaboration.channelId','change:range','reconnect','serverHistory','toJSON','connection','cs:removeUser','CollaborativeEditingService','showWarning','cloudDocumentVersion','forEach','_service','CommentsOnly','define','_sendBufferedOperationsDelayId','locale','collaboration-missing-channelid','attributes','_handleInitialConnectionData','_isConnected','createRange','451jOmdka','rootName','isReadOnly','1204227BIXrld','getUser','loadRoot','metadata','change:hasDomSelection','Synchronization\x20issue','length','isUndoneOperation','realtimecollaborationclient-sendbufferedoperations','finally','directChange','map','reconnection:\x20flushed\x20session','_knownOperations','operationsReceived','isDocumentOperation','message','view','305850JhECdA','lastOperationId','_compressOperations','getOperations','addUser','sessionId','return','path','start','connected','_pendingAction','apply','connect','size','catch','_isLoaded','_updateServerHistory','push','_addKnownRoot','_bufferRootLoad','realtimecollaborationclient-init-connection-failed','createUserMarkerOperations','_applyOperationsSet','roots','_handleExternalOperations','register','_connectAfterSessionHasBeenFlushed','_disconnectService','_fetchMissingUsers','compress','_getOperationsFromInitData','get','userId','getRoot','mySessionId','permissions','rtc-destroyed','createRoot','channelSessions','2119418DCsmBw','then','_knownRootNames','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','pluginName','removeFromReconnectionStack','PENDING_ACTION_SENDING_DATA','state','_refreshUserSelectionMarkers','config','__className','_authorId','slice','affectsData','RealTimeCollaborationClient','404','offset','lastDocumentSession','fire','document:write','reset','baseVersion','real-time-collaboration','getIdOfTheLastOperation','_handleReceivedOperations','_hasSynchronizationProblem','_setPendingAction','addToReconnectionStack','_hasSelectionChanged','multi-root-editor-root-attributes-no-root','_operationIdentifier','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.','_crash','document','realtimecollaborationclient-init-session-connection-error','lastOperationAcceptedAt','_isEditingAllowed','_clearPendingAction','addRoot','_loadRoot','_disconnectionOperations','getDocumentDetails','_isAttached','code','sessionAdd:','rtc-offline','targetPosition','collaboration','cloud-services-internal-error:\x20Request\x20timeout.','add','marker','1789602NVAJqk','addOperation','cloud-services-internal-error:\x20Not\x20connected.','wereChangesApplied','isPremiumPlugin','_shouldSendUpdate','realtimecollaborationclient-error','getOperationAuthor','has','_sendBufferedOperations','string','disableReadOnlyMode','realtimecollaborationclient-init-service-incorrect-server-operation','stop','getConnectedSessions','createPositionFromPath','createPositionAt','move','end','requires','addRootAttribute','_shouldSendSelectionUpdate','ready','type','sessionCreatedAt','listenTo','history','_baseBufferDelay','enableReadOnlyMode','unregister','selection','markers','parse','5YmTuTh','bind'];_0x2624=function(){return _0xfca22f;};return _0x2624();}import{WebSocketGateway as _0x1464a6}from'./websocketgateway.js';import{Sessions as _0x560465}from'./sessions.js';import{UserMarkers as _0x3e8655}from'./usermarkers.js';import{getTranslation as _0xb83a0b}from'../common-translations.js';function _0x3dbd(_0x6a0d2f,_0x3ce31e){const _0x2624ba=_0x2624();return _0x3dbd=function(_0x3dbdf3,_0x7d9f1c){_0x3dbdf3=_0x3dbdf3-0xf5;let _0xe4b414=_0x2624ba[_0x3dbdf3];return _0xe4b414;},_0x3dbd(_0x6a0d2f,_0x3ce31e);}import{Compressor as _0x12ffe6}from'@ckeditor/ckeditor5-operations-compressor';import{Users as _0x4688ef}from'ckeditor5-collaboration/src/collaboration-core.js';import{User as _0x160948,CollaborativeEditingService as _0x56d904}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let H=0x1;class l extends _0x39f00c{static [_0x1dd6e0(0x138)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x56d904)());[_0x1dd6e0(0xfe)];[_0x1dd6e0(0x160)];[_0x1dd6e0(0x134)];[_0x1dd6e0(0x102)];[_0x1dd6e0(0x13c)];[_0x1dd6e0(0x12c)];[_0x1dd6e0(0x1f5)];[_0x1dd6e0(0x10c)];[_0x1dd6e0(0x156)];[_0x1dd6e0(0x184)];[_0x1dd6e0(0x165)];[_0x1dd6e0(0x19e)];[_0x1dd6e0(0x13f)];[_0x1dd6e0(0x1d0)];[_0x1dd6e0(0x1e5)];[_0x1dd6e0(0x112)];[_0x1dd6e0(0x1aa)];[_0x1dd6e0(0x1a0)];static get[_0x1dd6e0(0x1c8)](){return[_0x1464a6,_0x560465,_0x3e8655,_0x2b33ae,_0x4688ef,_0x39330b];}static get[_0x1dd6e0(0x186)](){const _0x1bb8ce=_0x1dd6e0;return _0x1bb8ce(0x190);}static get[_0x1dd6e0(0xff)](){return!0x0;}static get[_0x1dd6e0(0x1b9)](){return!0x0;}get[_0x1dd6e0(0x13a)](){const _0x36d6a=_0x1dd6e0;return this[_0x36d6a(0x1e8)]+this[_0x36d6a(0xfe)];}get[_0x1dd6e0(0x1e8)](){const _0x29c838=_0x1dd6e0;return this[_0x29c838(0x134)][_0x29c838(0x1f3)]-this[_0x29c838(0xfe)];}get[_0x1dd6e0(0x113)](){const _0x3c6475=_0x1dd6e0,_0xe8ec84=this[_0x3c6475(0x134)][_0x3c6475(0x15e)]();for(let _0x536d6a=_0xe8ec84[_0x3c6475(0x14f)]-0x1;_0x536d6a>=0x0;_0x536d6a--){const _0x108b94=_0xe8ec84[_0x536d6a];if(!this[_0x3c6475(0x1aa)][_0x3c6475(0x1bd)](_0x108b94))return _0x108b94[_0x3c6475(0x197)]+0x1-this[_0x3c6475(0xfe)];}return 0x0;}constructor(_0x543cd5){const _0x1143ae=_0x1dd6e0;if(super(_0x543cd5),this[_0x1143ae(0xfe)]=0x0,this[_0x1143ae(0x160)]=null,this[_0x1143ae(0x134)]=new _0x341c1d(),this[_0x1143ae(0x1d8)][_0x1143ae(0x18b)][_0x1143ae(0x13e)](_0x1143ae(0x1b1),{}),this[_0x1143ae(0x102)]=this[_0x1143ae(0x1d8)][_0x1143ae(0x18b)][_0x1143ae(0x17a)](_0x1143ae(0x131)),!this[_0x1143ae(0x102)])throw new _0x9abfc5(_0x1143ae(0x141),this);const _0x5cba47=_0x543cd5[_0x1143ae(0x18b)][_0x1143ae(0x17a)](_0x1143ae(0x126))||_0x4a7317;this[_0x1143ae(0x13c)]=new l[(_0x1143ae(0x138))](_0x5cba47,this[_0x1143ae(0x102)]),this[_0x1143ae(0x12c)]=this[_0x1143ae(0x1d8)][_0x1143ae(0xf6)][_0x1143ae(0x1a3)],this[_0x1143ae(0x1f5)]=new _0x12ffe6(),this[_0x1143ae(0x10c)]=[],this[_0x1143ae(0x156)]=new WeakSet(),this[_0x1143ae(0x184)]=new Set(),this[_0x1143ae(0xf8)](_0x1143ae(0x10f),!0x1),this[_0x1143ae(0xf8)](_0x1143ae(0x19b),!0x1),this[_0x1143ae(0x165)]=null,this[_0x1143ae(0x19e)]=!0x1,this[_0x1143ae(0x13f)]=null,this[_0x1143ae(0x1d0)]=0x12c,this[_0x1143ae(0x1e5)]=this[_0x1143ae(0x1d0)],this[_0x1143ae(0x112)]=null,this[_0x1143ae(0x1aa)]=new WeakSet(),this[_0x1143ae(0x1a0)]=new F(this[_0x1143ae(0x1aa)]);}[_0x1dd6e0(0x1ec)](){const _0x37df08=_0x1dd6e0,_0x5f37ad=this[_0x37df08(0x1d8)],_0xd2fbbf=_0x5f37ad[_0x37df08(0x12a)][_0x37df08(0x17a)](_0x4688ef),_0xe877eb=_0x5f37ad[_0x37df08(0x12a)][_0x37df08(0x17a)](_0x1464a6);this[_0x37df08(0x1ce)](_0xd2fbbf,_0x37df08(0x1bc),(_0x1dbf88,_0x5658c2)=>{const _0x15c03b=_0x37df08,_0x12cc68=_0x5658c2[0x0];_0x12cc68[_0x15c03b(0x18d)]&&(_0x1dbf88[_0x15c03b(0x161)]=_0xd2fbbf[_0x15c03b(0x14a)](_0x12cc68[_0x15c03b(0x18d)]),_0x1dbf88[_0x15c03b(0x1c2)]()),null===_0x12cc68[_0x15c03b(0x18d)]&&(_0x1dbf88[_0x15c03b(0x161)]=null,_0x1dbf88[_0x15c03b(0x1c2)]());},{'priority':_0x37df08(0xf7)}),this[_0x37df08(0x1ce)](_0x5f37ad[_0x37df08(0xf6)][_0x37df08(0x1a3)][_0x37df08(0x1d3)],_0x37df08(0x132),(_0x48e2b2,_0x65f2ee)=>{const _0x4a4b90=_0x37df08;_0x65f2ee[_0x4a4b90(0x153)]&&this[_0x4a4b90(0x18a)]();}),this[_0x37df08(0x1ce)](_0x5f37ad[_0x37df08(0x10d)][_0x37df08(0x15a)],_0x37df08(0x14d),()=>{const _0x3f224d=_0x37df08;this[_0x3f224d(0x18a)]();}),this[_0x37df08(0x1f7)](),_0x5f37ad[_0x37df08(0xf6)]['on'](_0x37df08(0x1e7),(_0x2e7cba,_0x4aa027)=>{const _0x47f474=_0x37df08,_0x30d95f=_0x4aa027[0x0];_0x30d95f[_0x47f474(0x158)]&&(this[_0x47f474(0x10a)](_0x30d95f),this[_0x47f474(0x1ba)]()&&this[_0x47f474(0x11c)]());}),this[_0x37df08(0x1fb)](),this[_0x37df08(0x1d7)](_0x37df08(0x1a6))['to'](_0xe877eb,_0x37df08(0x189),this,_0x37df08(0x19b),(_0x1bc36c,_0x15ab85)=>_0x37df08(0x164)===_0x1bc36c&&!_0x15ab85),this['on'](_0x37df08(0x1eb),()=>{const _0x2a0d7d=_0x37df08;this[_0x2a0d7d(0x1a6)]?_0x5f37ad[_0x2a0d7d(0x1c0)](_0x2a0d7d(0x1af)):_0x5f37ad[_0x2a0d7d(0x1d1)](_0x2a0d7d(0x1af));}),this[_0x37df08(0x1a6)]?_0x5f37ad[_0x37df08(0x1c0)](_0x37df08(0x1af)):_0x5f37ad[_0x37df08(0x1d1)](_0x37df08(0x1af)),this[_0x37df08(0xf8)](_0x37df08(0x144),!0x1);}async[_0x1dd6e0(0x133)](){const _0x15a370=_0x1dd6e0,_0x178958=this[_0x15a370(0x1d8)][_0x15a370(0x12a)][_0x15a370(0x17a)](_0x560465),_0x4dabbf=this[_0x15a370(0x1d8)][_0x15a370(0x12a)][_0x15a370(0x17a)](_0x1464a6);try{this[_0x15a370(0x10f)]=!0x0,_0x178958[_0x15a370(0x1d2)](this[_0x15a370(0x102)]);const _0x3a4912=await this[_0x15a370(0x13c)][_0x15a370(0x133)](_0x4dabbf[_0x15a370(0x136)],this[_0x15a370(0x113)]);await this[_0x15a370(0x1e6)](_0x3a4912)&&(this[_0x15a370(0x10f)]=!0x1,this[_0x15a370(0x1a7)]());const _0x19d5d9=await this[_0x15a370(0x13c)][_0x15a370(0x1c3)]();_0x178958[_0x15a370(0x174)](this[_0x15a370(0x102)],_0x19d5d9),this[_0x15a370(0x1f0)](),this[_0x15a370(0x144)]=!0x0;}catch(_0x1d5635){if(function(_0x522a2b){const _0x219c8a=_0x15a370;return _0x219c8a(0x191)===_0x522a2b[_0x219c8a(0x1ad)];}(_0x1d5635)&&this[_0x15a370(0x160)])await this[_0x15a370(0x175)]();else{if(function(_0x2a580d){const _0x36135=_0x15a370;return _0x36135(0x125)===_0x2a580d[_0x36135(0x1ad)];}(_0x1d5635)){const _0xc233e5=_0xb83a0b(this[_0x15a370(0x1d8)][_0x15a370(0x140)],_0x15a370(0x12b));this[_0x15a370(0x1ef)](_0xc233e5);}else{if(!(_0x1d5635 instanceof V))throw _0x1d5635;this[_0x15a370(0x1ef)]();}}}}[_0x1dd6e0(0x10b)](){const _0x34e9f2=_0x1dd6e0,_0x188e10=this[_0x34e9f2(0x1d8)][_0x34e9f2(0x12a)][_0x34e9f2(0x17a)](_0x1464a6),_0x2a6756=this[_0x34e9f2(0x1d8)][_0x34e9f2(0x12a)][_0x34e9f2(0x17a)](_0x560465);this[_0x34e9f2(0x1d8)][_0x34e9f2(0x1d1)](_0x34e9f2(0x17f)),_0x2a6756[_0x34e9f2(0x181)][_0x34e9f2(0x1bd)](this[_0x34e9f2(0x102)])&&_0x2a6756[_0x34e9f2(0x1d2)](this[_0x34e9f2(0x102)]),_0x188e10[_0x34e9f2(0x187)](this),this[_0x34e9f2(0x176)](),super[_0x34e9f2(0x10b)]();}async[_0x1dd6e0(0x1e6)](_0x59314e){const _0x57179c=_0x1dd6e0;if(this[_0x57179c(0x160)]!==_0x59314e[_0x57179c(0x160)]&&this[_0x57179c(0x112)]!==_0x59314e[_0x57179c(0x15c)])throw new V();return this[_0x57179c(0x160)]=_0x59314e[_0x57179c(0x160)],this[_0x57179c(0x11d)]([],{..._0x59314e,'wereChangesApplied':!0x1,'data':_0x59314e[_0x57179c(0x1f9)]},_0x57179c(0x133));}async[_0x1dd6e0(0x1d9)](_0x4c1709,_0x49f65c=!0x1){const _0x149e98=_0x1dd6e0,{connection:_0x5c3179}=this[_0x149e98(0x1d8)][_0x149e98(0x12a)][_0x149e98(0x17a)](_0x1464a6);l[_0x149e98(0x138)][_0x149e98(0x1c3)](_0x5c3179,this[_0x149e98(0x102)])[_0x149e98(0x183)](_0x1d88ae=>this[_0x149e98(0x12f)](_0x1d88ae))[_0x149e98(0x169)](_0x380599=>{const _0x1db08b=_0x149e98;this[_0x1db08b(0x1a2)](_0x1db08b(0x1a4),_0x380599);}),this[_0x149e98(0x1ce)](this[_0x149e98(0x13c)],_0x149e98(0x157),this[_0x149e98(0x19a)][_0x149e98(0x1d7)](this)),this[_0x149e98(0x1ce)](this[_0x149e98(0x13c)],_0x149e98(0x12e),(_0x59dfea,_0x2f48f9)=>{const _0x4c4e11=_0x149e98;this[_0x4c4e11(0x1a2)](_0x4c4e11(0x1f2),_0x2f48f9);}),this[_0x149e98(0x1ce)](this[_0x149e98(0x13c)],_0x149e98(0x1de),()=>{const _0x35fabe=_0x149e98;this[_0x35fabe(0x144)]=!0x1;});const _0x5079fb=this[_0x149e98(0x1a0)][_0x149e98(0x199)](_0x4c1709);this[_0x149e98(0x10f)]=!0x0;const _0x2a709c=await this[_0x149e98(0x13c)][_0x149e98(0x167)](_0x5c3179,this[_0x149e98(0x15d)](_0x4c1709),_0x5079fb);if(this[_0x149e98(0x160)]=_0x2a709c[_0x149e98(0x160)],_0x49f65c){if(!_0x2a709c[_0x149e98(0x1b8)])return void this[_0x149e98(0x1ef)]();this[_0x149e98(0x10f)]=!0x1,this[_0x149e98(0x1a7)](),this[_0x149e98(0x134)][_0x149e98(0x196)](),this[_0x149e98(0xfe)]=_0x2a709c[_0x149e98(0x192)],this[_0x149e98(0x134)][_0x149e98(0x1f3)]=this[_0x149e98(0xfe)],await this[_0x149e98(0x11d)](_0x4c1709,_0x2a709c,_0x149e98(0x155));}else await this[_0x149e98(0x143)](_0x2a709c,_0x4c1709);this[_0x149e98(0x1f0)](),this[_0x149e98(0x144)]=!0x0;}[_0x1dd6e0(0x1f0)](){const _0x51fa26=_0x1dd6e0,_0x1fd3ac=this[_0x51fa26(0x1d8)][_0x51fa26(0x12a)][_0x51fa26(0x17a)](_0x560465),_0x4cb8e2=this[_0x51fa26(0x1d8)][_0x51fa26(0x12a)][_0x51fa26(0x17a)](_0x3e8655),_0x2da363=_0x1fd3ac[_0x51fa26(0x181)][_0x51fa26(0x17a)](this[_0x51fa26(0x102)]);_0x2da363&&_0x2da363[_0x51fa26(0x14f)]>0x1?_0x4cb8e2[_0x51fa26(0x170)]():this[_0x51fa26(0x1ce)](_0x1fd3ac,_0x51fa26(0x1ae)+this[_0x51fa26(0x102)],()=>{const _0x5ebcb7=_0x51fa26;0x2===_0x1fd3ac[_0x5ebcb7(0x181)][_0x5ebcb7(0x17a)](this[_0x5ebcb7(0x102)])[_0x5ebcb7(0x14f)]&&_0x4cb8e2[_0x5ebcb7(0x170)]();});}async[_0x1dd6e0(0x19a)](_0x493bc8,_0x4acb0e,_0x2a8924,_0x568365){const _0x432fa0=_0x1dd6e0;if(!this[_0x432fa0(0x10f)]&&this[_0x432fa0(0x12c)][_0x432fa0(0x1f3)]==_0x4acb0e){const _0x72f98a=this[_0x432fa0(0x1dc)](_0x2a8924,_0x568365);await this[_0x432fa0(0x177)](_0x72f98a),this[_0x432fa0(0x173)](_0x72f98a,_0x4acb0e,_0x2a8924[_0x432fa0(0x15c)])||this[_0x432fa0(0x1a2)](_0x432fa0(0x1c1));}}async[_0x1dd6e0(0x175)](){const _0x59fc1d=_0x1dd6e0;this[_0x59fc1d(0x176)]();const {locale:_0x12c6b7}=this[_0x59fc1d(0x1d8)];let _0x3edf64;try{_0x3edf64=await this[_0x59fc1d(0x13c)][_0x59fc1d(0x1ab)]();}catch{const _0xf99918=_0xb83a0b(_0x12c6b7,_0x59fc1d(0x185));return void this[_0x59fc1d(0x1ef)](_0xf99918);}const _0x2568e5=_0x3edf64[_0x59fc1d(0x119)]||_0x3edf64[_0x59fc1d(0x193)];if(this[_0x59fc1d(0x112)]!==_0x2568e5[_0x59fc1d(0x15c)]){const _0x95a25c=_0xb83a0b(_0x12c6b7,_0x59fc1d(0x108));return void this[_0x59fc1d(0x1ef)](_0x95a25c);}await this[_0x59fc1d(0x1d9)](this[_0x59fc1d(0x1d8)][_0x59fc1d(0xf6)][_0x59fc1d(0x1a3)][_0x59fc1d(0x1cf)][_0x59fc1d(0x15e)](),!0x0);}[_0x1dd6e0(0x176)](){const _0x12fd85=_0x1dd6e0;this[_0x12fd85(0x13c)][_0x12fd85(0x1db)](),this[_0x12fd85(0x10c)]=[],clearTimeout(this[_0x12fd85(0x13f)]),this[_0x12fd85(0x11b)](this[_0x12fd85(0x13c)]);}[_0x1dd6e0(0x12f)](_0x3f3ad2){const _0x50d682=_0x1dd6e0,_0x2b0f83=this[_0x50d682(0x1d8)][_0x50d682(0x12a)][_0x50d682(0x17a)](_0x560465);this[_0x50d682(0x1ce)](_0x2b0f83,_0x50d682(0x1ae)+this[_0x50d682(0x102)],(_0x1f7452,{session:_0x3ab2c3})=>{const _0x4057d4=_0x50d682;if(_0x3ab2c3['id']===_0x2b0f83[_0x4057d4(0x17d)]){_0x1f7452[_0x4057d4(0x124)]();const _0x242d58=this[_0x4057d4(0x1d8)][_0x4057d4(0x12a)][_0x4057d4(0x1bd)](_0x4057d4(0x13d))&&this[_0x4057d4(0x1d8)][_0x4057d4(0x12a)][_0x4057d4(0x17a)](_0x4057d4(0x13d));let _0x4c0c76=_0x3ab2c3[_0x4057d4(0x17e)];_0x242d58&&_0x242d58[_0x4057d4(0x1fa)]&&(_0x4c0c76=_0x4c0c76[_0x4057d4(0x12d)](_0x3a13fd=>_0x4057d4(0x195)!==_0x3a13fd)),this[_0x4057d4(0x1d8)][_0x4057d4(0x12a)][_0x4057d4(0x17a)](_0x4057d4(0x117))[_0x4057d4(0x109)](_0x4c0c76,this[_0x4057d4(0x102)]);}}),_0x2b0f83[_0x50d682(0x174)](this[_0x50d682(0x102)],_0x3f3ad2);}[_0x1dd6e0(0x1f7)](){const _0x30825e=_0x1dd6e0,_0x1f8db1=this[_0x30825e(0x1d8)][_0x30825e(0x1f9)][_0x30825e(0xf8)];this[_0x30825e(0x1d8)][_0x30825e(0x1f9)][_0x30825e(0xf8)]=(..._0x2b55b2)=>{const _0x3cbb3f=_0x30825e;if(!_0x2b55b2[_0x2b55b2[_0x3cbb3f(0x14f)]-0x1][_0x3cbb3f(0x105)])throw new _0x9abfc5(_0x3cbb3f(0x121),this);_0x1f8db1[_0x3cbb3f(0x166)](this[_0x3cbb3f(0x1d8)][_0x3cbb3f(0x1f9)],_0x2b55b2);};}[_0x1dd6e0(0x1fb)](){const _0x48ffe7=_0x1dd6e0;this[_0x48ffe7(0x1d8)][_0x48ffe7(0x1f9)]['on'](_0x48ffe7(0x1ec),(_0x2f14bc,[_0x3a778e])=>{const _0x4440c5=_0x48ffe7;if(this[_0x4440c5(0x12c)][_0x4440c5(0x1f3)])throw new _0x9abfc5(_0x4440c5(0x1e3),this);_0x2f14bc[_0x4440c5(0x1c2)](),this[_0x4440c5(0x19c)]();const _0x4ce3ab=this[_0x4440c5(0x1d8)][_0x4440c5(0x18b)][_0x4440c5(0x17a)](_0x4440c5(0x104)),_0x458e3a=this[_0x4440c5(0x179)](_0x3a778e,_0x4ce3ab);0x0==_0x458e3a[_0x4440c5(0x14f)]&&_0x458e3a[_0x4440c5(0x16c)](new _0x1ad666(0x0)),_0x2f14bc[_0x4440c5(0x161)]=this[_0x4440c5(0x1d9)](_0x458e3a)[_0x4440c5(0x183)](()=>{const _0x252694=_0x4440c5;this[_0x252694(0x1d8)][_0x252694(0x12a)][_0x252694(0x17a)](_0x1464a6)[_0x252694(0x19d)](this),this[_0x252694(0x1d8)][_0x252694(0x1f9)][_0x252694(0x194)](_0x252694(0x1cb));})[_0x4440c5(0x169)](_0x478c84=>this[_0x4440c5(0x1a2)](_0x4440c5(0x16f),_0x478c84))[_0x4440c5(0x152)](()=>this[_0x4440c5(0x1a7)]());},{'priority':_0x48ffe7(0xf7)}),this[_0x48ffe7(0x1d8)]['on'](_0x48ffe7(0x14b),async(_0x8f5348,[_0xe201ee,_0x453687])=>{const _0x3f28bf=_0x48ffe7;_0x8f5348[_0x3f28bf(0x1c2)]();const _0x4f50f9=this[_0x3f28bf(0x1d8)][_0x3f28bf(0xf6)][_0x3f28bf(0x1a3)][_0x3f28bf(0x17c)](_0xe201ee);if(!this[_0x3f28bf(0x184)][_0x3f28bf(0x1bd)](_0xe201ee)){const _0x42143c=_0x453687&&_0x453687[_0x3f28bf(0x1f9)]?_0x453687[_0x3f28bf(0x1f9)]:'',_0x293395=_0x453687&&_0x453687[_0x3f28bf(0x142)]?_0x453687[_0x3f28bf(0x142)]:{};await this[_0x3f28bf(0x1a9)](_0xe201ee,_0x42143c,_0x293395);}this[_0x3f28bf(0x1d8)][_0x3f28bf(0xf6)][_0x3f28bf(0x1e2)]({'isUndoable':!0x1},()=>{const _0x2a4480=_0x3f28bf;_0x4f50f9[_0x2a4480(0x16a)]=!0x0,this[_0x2a4480(0x1d8)][_0x2a4480(0xf6)][_0x2a4480(0x1a3)][_0x2a4480(0x10e)][_0x2a4480(0x16e)](_0x4f50f9);});},{'priority':_0x48ffe7(0xf7)});}async[_0x1dd6e0(0x177)](_0x51102c){const _0x316a04=_0x1dd6e0,_0x119088=this[_0x316a04(0x1d8)][_0x316a04(0x12a)][_0x316a04(0x17a)](_0x4688ef),{connection:_0x35b9f6}=this[_0x316a04(0x1d8)][_0x316a04(0x12a)][_0x316a04(0x17a)](_0x1464a6),_0x24ca02=new Set();for(const _0x2cd2ee of _0x51102c){const _0x231f45=_0x2cd2ee[_0x316a04(0x18d)];_0x231f45&&!_0x119088[_0x316a04(0x14a)](_0x231f45)&&_0x24ca02[_0x316a04(0x1b3)](_0x231f45);}if(0x0===_0x24ca02[_0x316a04(0x168)])return;const _0x56c7e7=await _0x160948[_0x316a04(0x1e0)](_0x35b9f6,Array[_0x316a04(0x127)](_0x24ca02));for(const _0xf3b7ac of _0x56c7e7)_0x119088[_0x316a04(0x14a)](_0xf3b7ac['id'])||_0x119088[_0x316a04(0x15f)](_0xf3b7ac);}[_0x1dd6e0(0x179)](_0x556da8,_0x1700a0={}){const _0x8d19=_0x1dd6e0,_0x16b132=this[_0x8d19(0x1d8)][_0x8d19(0xf6)],_0x38d981=[];let _0x1d2df1=0x0;const _0x26ca99=_0x8d19(0x1bf)==typeof _0x556da8?{'main':_0x556da8}:_0x556da8;for(const _0x157b1a of Object[_0x8d19(0x11f)](_0x26ca99)){if(!this[_0x8d19(0x12c)][_0x8d19(0x172)][_0x8d19(0x1bd)](_0x157b1a))throw new _0x9abfc5(_0x8d19(0xfb),this);const _0x317628=this[_0x8d19(0x1d8)][_0x8d19(0x1f9)][_0x8d19(0x1d5)](_0x26ca99[_0x157b1a]),_0x5b2707=this[_0x8d19(0x12c)][_0x8d19(0x17c)](_0x157b1a),_0x2332f6=new _0x26ee34(_0x16b132[_0x8d19(0x1c5)](_0x5b2707,0x0),_0x317628,_0x1d2df1++);_0x38d981[_0x8d19(0x16c)](_0x2332f6);for(const [_0x321e01,_0xea9ff6]of _0x317628[_0x8d19(0x1d4)]){const _0x14908a=_0x16b132[_0x8d19(0x145)](_0x16b132[_0x8d19(0x1c4)](_0x5b2707,_0xea9ff6[_0x8d19(0x163)][_0x8d19(0x162)][_0x8d19(0x18e)]()),_0x16b132[_0x8d19(0x1c4)](_0x5b2707,_0xea9ff6[_0x8d19(0x1c7)][_0x8d19(0x162)][_0x8d19(0x18e)]())),_0x4c26ac=new _0xd8f5c1(_0x321e01,null,_0x14908a,_0x16b132[_0x8d19(0x1d4)],!0x0,_0x1d2df1++);_0x38d981[_0x8d19(0x16c)](_0x4c26ac);}}if(_0x1700a0)for(const [_0x3d6eda,_0x5a9c79]of Object[_0x8d19(0xfa)](_0x1700a0)){const _0x4ca93e=_0x16b132[_0x8d19(0x1a3)][_0x8d19(0x17c)](_0x3d6eda);if(!_0x4ca93e)throw new _0x9abfc5(_0x8d19(0x19f),null);for(const [_0x2dee5c,_0xa3d24d]of Object[_0x8d19(0xfa)](_0x5a9c79))if(null!==_0xa3d24d){const _0x5b855e=new _0x36e685(_0x4ca93e,_0x2dee5c,null,_0xa3d24d,_0x1d2df1++);_0x38d981[_0x8d19(0x16c)](_0x5b855e);}}return _0x38d981;}async[_0x1dd6e0(0x1a9)](_0x207dd4,_0x15bcd3,_0x1ab844){const _0xdf0502=_0x1dd6e0;this[_0xdf0502(0x179)]({[_0x207dd4]:_0x15bcd3},{[_0x207dd4]:_0x1ab844})[_0xdf0502(0x13b)]((_0x31947f,_0x13fe54)=>{const _0xaa07c8=_0xdf0502;_0x31947f[_0xaa07c8(0x197)]=this[_0xaa07c8(0x12c)][_0xaa07c8(0x1f3)]+_0x13fe54,_0x31947f[_0xaa07c8(0x115)]=!0x0,this[_0xaa07c8(0x10a)](_0x31947f);}),this[_0xdf0502(0x11c)](),await this[_0xdf0502(0x1e9)]();}async[_0x1dd6e0(0x143)](_0x4662fb,_0x228d62){const _0x5cdc69=_0x1dd6e0;let _0x5a7786;this[_0x5cdc69(0xfe)]=_0x4662fb[_0x5cdc69(0x192)];const _0x42627e=_0x4662fb[_0x5cdc69(0x1b8)]&&!_0x4662fb[_0x5cdc69(0x1e1)],_0x7ea08e=_0x42627e?0x0:_0x4662fb[_0x5cdc69(0x1f9)][_0x5cdc69(0x197)];if(_0x228d62[_0x5cdc69(0x13b)](_0x3ab4b8=>{const _0xb5e41b=_0x5cdc69;_0x3ab4b8[_0xb5e41b(0x115)]=!0x0,_0x3ab4b8[_0xb5e41b(0x1e4)]=_0x4662fb[_0xb5e41b(0x1cd)],_0x3ab4b8[_0xb5e41b(0x18d)]=null;}),_0x42627e)_0x5a7786=_0x228d62,this[_0x5cdc69(0x171)](_0x5a7786,_0x42627e);else{if(_0x4662fb[_0x5cdc69(0x1e1)]){const _0x3d9940=this[_0x5cdc69(0x179)](_0x4662fb[_0x5cdc69(0x1e1)]);this[_0x5cdc69(0x12c)][_0x5cdc69(0x1cf)][_0x5cdc69(0x1f3)]=-_0x3d9940[_0x5cdc69(0x14f)],_0x3d9940[_0x5cdc69(0x13b)](_0x183785=>{const _0x28beb2=_0x5cdc69;_0x183785[_0x28beb2(0x197)]-=_0x3d9940[_0x28beb2(0x14f)],_0x183785[_0x28beb2(0x1e4)]=_0x4662fb[_0x28beb2(0x1cd)],_0x183785[_0x28beb2(0x115)]=!0x0,_0x183785[_0x28beb2(0x18d)]=null;}),this[_0x5cdc69(0x171)](_0x3d9940,!0x0),this[_0x5cdc69(0x134)][_0x5cdc69(0x1f3)]=-_0x3d9940[_0x5cdc69(0x14f)]+this[_0x5cdc69(0xfe)],this[_0x5cdc69(0x16b)](_0x3d9940);}this[_0x5cdc69(0x12c)][_0x5cdc69(0x1cf)][_0x5cdc69(0x1f3)]=_0x7ea08e,_0x5a7786=this[_0x5cdc69(0x1dc)](_0x4662fb[_0x5cdc69(0x1f9)],_0x4662fb[_0x5cdc69(0x14c)]),await this[_0x5cdc69(0x177)](_0x5a7786),this[_0x5cdc69(0x171)](_0x5a7786,_0x42627e);}_0x4662fb[_0x5cdc69(0x15c)]&&(this[_0x5cdc69(0x1a0)][_0x5cdc69(0xfc)](_0x5a7786,_0x4662fb[_0x5cdc69(0x15c)]),this[_0x5cdc69(0x112)]=_0x4662fb[_0x5cdc69(0x15c)]),this[_0x5cdc69(0x134)][_0x5cdc69(0x1f3)]=_0x7ea08e+this[_0x5cdc69(0xfe)],this[_0x5cdc69(0x16b)](_0x5a7786),_0x228d62[_0x5cdc69(0x12d)](_0x4fd3ea=>{const _0x3ba483=_0x5cdc69,_0x11d294=this[_0x3ba483(0x1dd)](_0x4fd3ea);return _0x11d294&&!this[_0x3ba483(0x184)][_0x3ba483(0x1bd)](_0x11d294);})[_0x5cdc69(0x13b)]((_0x21b7b4,_0xaa9389)=>{const _0x377c08=_0x5cdc69;_0x21b7b4[_0x377c08(0x197)]=this[_0x377c08(0x12c)][_0x377c08(0x1f3)]+_0xaa9389,this[_0x377c08(0x10a)](_0x21b7b4);}),this[_0x5cdc69(0x1ba)]()?(this[_0x5cdc69(0x1e5)]=0x0,this[_0x5cdc69(0x11c)](!0x0),await this[_0x5cdc69(0x1e9)]()):(this[_0x5cdc69(0x10f)]=!0x1,this[_0x5cdc69(0x1a7)]());}[_0x1dd6e0(0x1a2)](_0x49056d,_0x5d5e37){const _0x278ed3=_0x1dd6e0,_0x5b3c49=_0x5d5e37&&_0x5d5e37[_0x278ed3(0x159)];if(_0x5b3c49&&_0x5b3c49[_0x278ed3(0x103)](_0x278ed3(0xf5)))throw _0x5d5e37;const _0x49a628=this[_0x278ed3(0x1d8)][_0x278ed3(0x12a)][_0x278ed3(0x17a)](_0x1464a6);throw this[_0x278ed3(0x10f)]=!0x0,_0x49a628[_0x278ed3(0x1db)](),this[_0x278ed3(0x1d8)][_0x278ed3(0x1d1)](_0x278ed3(0x1bb)),new _0x9abfc5(_0x49056d,this[_0x278ed3(0x1d8)],_0x5b3c49?{'originalError':_0x5b3c49}:void 0x0);}[_0x1dd6e0(0x10a)](_0x3445f2){const _0x559854=_0x1dd6e0;this[_0x559854(0x156)][_0x559854(0x1bd)](_0x3445f2)||(this[_0x559854(0x156)][_0x559854(0x1b3)](_0x3445f2),this[_0x559854(0x10c)][_0x559854(0x16c)](_0x3445f2),this[_0x559854(0x165)]||_0x559854(0x1b4)==_0x3445f2[_0x559854(0x1cc)]&&!_0x3445f2[_0x559854(0x18f)]||this[_0x559854(0x19c)]());}[_0x1dd6e0(0x11c)](_0x3abf15=!0x1){const _0x426681=_0x1dd6e0;!_0x3abf15&&this[_0x426681(0x10f)]||(this[_0x426681(0x10f)]=!0x0,clearTimeout(this[_0x426681(0x13f)]),this[_0x426681(0x13f)]=setTimeout(()=>{const _0x343f0c=_0x426681;this[_0x343f0c(0x1be)]()[_0x343f0c(0x183)](_0x406a0e=>{const _0x54dc9b=_0x343f0c;_0x406a0e&&(this[_0x54dc9b(0x1a7)](),this[_0x54dc9b(0x10f)]=!0x1);})[_0x343f0c(0x169)](_0x51c09c=>{const _0x51528c=_0x343f0c;this[_0x51528c(0x1a7)](),this[_0x51528c(0x10f)]=!0x1,function(_0x5cde40){const _0x4a0fff=_0x51528c;return _0x5cde40[_0x4a0fff(0x159)][_0x4a0fff(0x103)](_0x4a0fff(0x1b7))||_0x5cde40[_0x4a0fff(0x159)][_0x4a0fff(0x103)](_0x4a0fff(0x1ea))||_0x5cde40[_0x4a0fff(0x159)][_0x4a0fff(0x103)](_0x4a0fff(0x1b2));}(_0x51c09c)||this[_0x51528c(0x1a2)](_0x51c09c[_0x51528c(0x159)],_0x51c09c);});},this[_0x426681(0x1e5)]));}[_0x1dd6e0(0x1e9)](){return new Promise(_0x43c0d4=>{const _0x407f61=_0x3dbd;this['on'](_0x407f61(0x111),()=>{_0x43c0d4();});});}async[_0x1dd6e0(0x1be)](){const _0x235540=_0x1dd6e0,_0x4794e3=this[_0x235540(0x1d8)][_0x235540(0x12a)][_0x235540(0x17a)](_0x3e8655);if(this[_0x235540(0x1ca)]()&&(_0x4794e3[_0x235540(0x170)](),this[_0x235540(0x19e)]=!0x1),!this[_0x235540(0x1ba)]())return!0x0;const _0x8954d8=[...this[_0x235540(0x10c)]];for(const _0xbd21aa of _0x8954d8)_0xbd21aa[_0x235540(0x1f1)]=this[_0x235540(0x12c)][_0x235540(0x1cf)][_0x235540(0x150)](_0xbd21aa);const _0x577806=this[_0x235540(0x1a0)][_0x235540(0x199)](_0x8954d8),_0x4eef10=H++,_0x2cbf25=this[_0x235540(0x15d)](_0x8954d8),_0x43e6a1=await this[_0x235540(0x13c)][_0x235540(0x1f4)](_0x2cbf25,_0x2cbf25[_0x235540(0x197)],_0x577806);try{return await this[_0x235540(0x11d)](_0x8954d8,_0x43e6a1,_0x4eef10);}catch(_0x435157){return this[_0x235540(0x1a2)](_0x235540(0x151),_0x435157);}}async[_0x1dd6e0(0x11d)](_0x22fd06,_0x179b6c,_0x380375){const _0x45e64c=_0x1dd6e0;if(_0x45e64c(0x12e)in _0x179b6c)throw _0x179b6c[_0x45e64c(0x12e)];let _0x571c89=!0x1;if(_0x179b6c[_0x45e64c(0x1b8)]){_0x179b6c[_0x45e64c(0x15c)]&&(this[_0x45e64c(0x112)]=_0x179b6c[_0x45e64c(0x15c)]),this[_0x45e64c(0x10c)]=this[_0x45e64c(0x10c)][_0x45e64c(0x12d)](_0x10fb43=>!_0x22fd06[_0x45e64c(0x116)](_0x10fb43));for(const _0x71c8f9 of _0x22fd06)_0x71c8f9[_0x45e64c(0x1e4)]=_0x45e64c(0x1a5)in _0x179b6c&&_0x179b6c[_0x45e64c(0x1a5)]||void 0x0;W(_0x22fd06,_0x179b6c[_0x45e64c(0x1f3)]-_0x22fd06[_0x45e64c(0x14f)]),this[_0x45e64c(0x16b)](_0x22fd06);const _0x3647cd=_0x22fd06[_0x45e64c(0x12d)](_0x3c75cd=>{const _0x358f24=_0x45e64c;if(!_0x3c75cd[_0x358f24(0x115)])return!0x1;const _0x3646c5=this[_0x358f24(0x1dd)](_0x3c75cd);return _0x3646c5&&!this[_0x358f24(0x184)][_0x358f24(0x1bd)](_0x3646c5);});W(_0x3647cd,this[_0x45e64c(0x12c)][_0x45e64c(0x1f3)]),this[_0x45e64c(0x171)](_0x3647cd),_0x571c89=!0x0,this[_0x45e64c(0x1e5)]=this[_0x45e64c(0x1d0)];}else{const _0x579835=this[_0x45e64c(0x1dc)](_0x179b6c[_0x45e64c(0x1f9)],_0x179b6c[_0x45e64c(0x14c)])[_0x45e64c(0x12d)](_0x1a0629=>_0x1a0629[_0x45e64c(0x197)]>=this[_0x45e64c(0x1e8)]);_0x579835[_0x45e64c(0x13b)](_0x45dc16=>this[_0x45e64c(0x16d)](_0x45dc16)),this[_0x45e64c(0x10c)]=this[_0x45e64c(0x10c)][_0x45e64c(0x12d)](_0x3560f0=>!_0x3560f0[_0x45e64c(0x115)]||!this[_0x45e64c(0x184)][_0x45e64c(0x1bd)](this[_0x45e64c(0x1dd)](_0x3560f0))),this[_0x45e64c(0x10c)][_0x45e64c(0x14f)]&&W(this[_0x45e64c(0x10c)],this[_0x45e64c(0x10c)][0x0][_0x45e64c(0x197)]),await this[_0x45e64c(0x177)](_0x579835),_0x571c89=this[_0x45e64c(0x173)](_0x579835,_0x179b6c[_0x45e64c(0x1f3)],_0x179b6c[_0x45e64c(0x15c)]),this[_0x45e64c(0x1e5)]=Math[_0x45e64c(0x1ed)](this[_0x45e64c(0x1e5)]/0x2);}return _0x571c89?!this[_0x45e64c(0x1ba)]()||(this[_0x45e64c(0x11c)](!0x0),!0x1):this[_0x45e64c(0x1a2)](_0x45e64c(0x107));}[_0x1dd6e0(0x173)](_0x2128c6,_0xa71064,_0x158a93){const _0x37b1f0=_0x1dd6e0;try{const _0x4f3e2a={'document':this[_0x37b1f0(0x12c)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0xf341f9,operationsB:_0x957dcd,originalOperations:_0xb1117f}=_0x319a47(_0x2128c6,this[_0x37b1f0(0x10c)],_0x4f3e2a);W(_0xf341f9,this[_0x37b1f0(0x12c)][_0x37b1f0(0x1f3)]),W(_0x957dcd,_0xa71064);for(const _0x82d0d6 of _0xf341f9){const _0x20118a=_0xb1117f[_0x37b1f0(0x17a)](_0x82d0d6);_0x82d0d6[_0x37b1f0(0x18d)]=_0x20118a?_0x20118a[_0x37b1f0(0x18d)]:null;}_0x158a93&&(this[_0x37b1f0(0x1a0)][_0x37b1f0(0xfc)](_0x2128c6,_0x158a93),this[_0x37b1f0(0x112)]=_0x158a93),this[_0x37b1f0(0x10c)]=[..._0x957dcd],this[_0x37b1f0(0x171)](_0xf341f9),this[_0x37b1f0(0x16b)](_0x2128c6);}catch(_0x37c1da){return console[_0x37b1f0(0x12e)](_0x37c1da),!0x1;}return!0x0;}[_0x1dd6e0(0x171)](_0x456fbc,_0x4e8883=!0x1){const _0x5d0901=_0x1dd6e0;this[_0x5d0901(0x1d8)][_0x5d0901(0xf6)][_0x5d0901(0x1e2)]({'isUndoable':!0x1,'isLocal':!0x1},_0x4745f4=>{const _0x1f7c9e=_0x5d0901;for(const _0x1d9e35 of _0x456fbc)this[_0x1f7c9e(0x156)][_0x1f7c9e(0x1b3)](_0x1d9e35),this[_0x1f7c9e(0x16d)](_0x1d9e35),_0x4745f4[_0x1f7c9e(0x118)][_0x1f7c9e(0x1b6)](_0x1d9e35),this[_0x1f7c9e(0x1d8)][_0x1f7c9e(0xf6)][_0x1f7c9e(0x1e7)](_0x1d9e35);});}[_0x1dd6e0(0x16d)](_0x5101e6){const _0x4c3742=_0x1dd6e0,_0x173eea=this[_0x4c3742(0x1dd)](_0x5101e6);_0x173eea&&this[_0x4c3742(0x184)][_0x4c3742(0x1b3)](_0x173eea);}[_0x1dd6e0(0x1dd)](_0x38e7c9){const _0x2822a6=_0x1dd6e0;let _0x279d04,_0x543916;switch(_0x38e7c9[_0x2822a6(0x1cc)]){case _0x2822a6(0x100):_0x279d04=_0x38e7c9[_0x2822a6(0x11a)][_0x2822a6(0x114)];break;case _0x2822a6(0x1b4):if(_0x543916=_0x38e7c9[_0x2822a6(0x106)],!_0x543916)return null;_0x279d04=_0x543916[_0x2822a6(0x114)];break;case _0x2822a6(0x1c9):_0x279d04=_0x38e7c9[_0x2822a6(0x114)];break;case _0x2822a6(0x1a8):_0x279d04=_0x38e7c9[_0x2822a6(0xf9)];break;case _0x2822a6(0x1c6):_0x279d04=_0x38e7c9[_0x2822a6(0x1b0)][_0x2822a6(0x114)];break;default:return null;}return _0x279d04[_0x2822a6(0x147)];}[_0x1dd6e0(0x16b)](_0x4a1639){const _0x225922=_0x1dd6e0;_0x4a1639[_0x225922(0x13b)](_0x1320f3=>{const _0x40d595=_0x225922,_0x5542d7=_0x1320f3[_0x40d595(0x1f6)]();_0x5542d7[_0x40d595(0x18d)]=_0x1320f3[_0x40d595(0x18d)],_0x5542d7[_0x40d595(0x115)]=!!_0x1320f3[_0x40d595(0x115)],_0x5542d7[_0x40d595(0x1e4)]=_0x1320f3[_0x40d595(0x1e4)],_0x5542d7[_0x40d595(0x197)]+=this[_0x40d595(0xfe)],_0x1320f3[_0x40d595(0x110)]&&this[_0x40d595(0x1aa)][_0x40d595(0x1b3)](_0x5542d7),this[_0x40d595(0x134)][_0x40d595(0x1b6)](_0x5542d7);});}[_0x1dd6e0(0x1ef)](_0x53ed38){const _0x384466=_0x1dd6e0,_0x36520e=this[_0x384466(0x1d8)][_0x384466(0x12a)][_0x384466(0x17a)](_0x384466(0x130)),_0x57b64e=this[_0x384466(0x1d8)][_0x384466(0x140)];_0x53ed38||(_0x53ed38=_0xb83a0b(_0x57b64e,_0x384466(0x1a1))),_0x36520e[_0x384466(0x139)](_0x53ed38,{'title':_0xb83a0b(_0x57b64e,_0x384466(0x14e)),'namespace':_0x384466(0x198)}),this[_0x384466(0x19b)]=!0x0,clearTimeout(this[_0x384466(0x13f)]),this[_0x384466(0x10c)]=[],this[_0x384466(0x1d8)][_0x384466(0x12a)][_0x384466(0x17a)](_0x1464a6)[_0x384466(0x1db)]();}[_0x1dd6e0(0x19c)](){const _0x1aecde=_0x1dd6e0;this[_0x1aecde(0x165)]||(this[_0x1aecde(0x165)]=this[_0x1aecde(0x1d8)][_0x1aecde(0x12a)][_0x1aecde(0x17a)](_0x2b33ae)[_0x1aecde(0x1b3)](_0xb83a0b(this[_0x1aecde(0x1d8)][_0x1aecde(0x140)],_0x1aecde(0x188))));}[_0x1dd6e0(0x1a7)](){const _0x307aeb=_0x1dd6e0;this[_0x307aeb(0x165)]&&(this[_0x307aeb(0x1d8)][_0x307aeb(0x12a)][_0x307aeb(0x17a)](_0x2b33ae)[_0x307aeb(0x128)](this[_0x307aeb(0x165)]),this[_0x307aeb(0x165)]=null);}[_0x1dd6e0(0x15d)](_0x47a72f){const _0x320268=_0x1dd6e0,_0x4661c2=_0x47a72f[_0x320268(0x154)](_0x132481=>_0x132481[_0x320268(0x135)]());return this[_0x320268(0x1f5)][_0x320268(0x178)](_0x4661c2);}[_0x1dd6e0(0x1dc)](_0x30b163,_0x3e50a9){const _0x466353=_0x1dd6e0;return this[_0x466353(0x1f5)][_0x466353(0xfd)](_0x30b163)[_0x466353(0x154)]((_0x5ef37d,_0x23e26d)=>{const _0x4faf23=_0x466353,_0x2ce815=_0x4faf23(0x1ec)==_0x3e50a9[_0x23e26d][_0x4faf23(0x1cc)];if(_0x4faf23(0x1f8)==_0x5ef37d[_0x4faf23(0x18c)]){const _0x1e80ae=_0x5ef37d[_0x4faf23(0x11a)][_0x4faf23(0x114)];!this[_0x4faf23(0x12c)][_0x4faf23(0x17c)](_0x1e80ae)&&(this[_0x4faf23(0x12c)][_0x4faf23(0x180)](_0x4faf23(0x1df),_0x1e80ae)[_0x4faf23(0x1ac)]=!0x1);}const _0x32b3fa=_0xaa4d68[_0x4faf23(0x120)](_0x5ef37d,this[_0x4faf23(0x12c)]);return _0x32b3fa[_0x4faf23(0x1f1)]=_0x5ef37d[_0x4faf23(0x1f1)],_0x32b3fa[_0x4faf23(0x115)]=_0x2ce815,_0x32b3fa[_0x4faf23(0x18d)]=_0x2ce815?null:_0x3e50a9[_0x23e26d][_0x4faf23(0x17b)],_0x32b3fa[_0x4faf23(0x110)]=_0x4faf23(0x137)===_0x3e50a9[_0x23e26d][_0x4faf23(0x1cc)],_0x32b3fa[_0x4faf23(0x1e4)]=_0x3e50a9[_0x23e26d][_0x4faf23(0x1e4)],_0x32b3fa;});}[_0x1dd6e0(0x18a)](){const _0x14d4b6=_0x1dd6e0;this[_0x14d4b6(0x19e)]=!0x0,this[_0x14d4b6(0x1ca)]()?this[_0x14d4b6(0x11c)]():this[_0x14d4b6(0x19e)]=!0x1;}[_0x1dd6e0(0x1ca)](){const _0x1ee0c3=_0x1dd6e0,_0x31a253=this[_0x1ee0c3(0x1d8)][_0x1ee0c3(0x12a)][_0x1ee0c3(0x17a)](_0x560465)[_0x1ee0c3(0x181)][_0x1ee0c3(0x17a)](this[_0x1ee0c3(0x102)]);return!this[_0x1ee0c3(0x1d8)][_0x1ee0c3(0x148)]&&!!_0x31a253&&_0x31a253[_0x1ee0c3(0x14f)]>0x1&&this[_0x1ee0c3(0x19e)];}[_0x1dd6e0(0x1ba)](){const _0x155ad8=_0x1dd6e0;return this[_0x155ad8(0x10c)][_0x155ad8(0x14f)]>0x0||this[_0x155ad8(0x1ca)]();}}export{l as RealTimeCollaborationClient};class V extends Error{}function W(_0x57989e,_0x19b7c2){const _0x23ac16=_0x1dd6e0;for(const _0x56eba4 of _0x57989e)_0x56eba4[_0x23ac16(0x197)]=_0x19b7c2++;}class F{[_0x1dd6e0(0x123)];[_0x1dd6e0(0x11e)];constructor(_0x57998f){const _0x1b9f15=_0x1dd6e0;this[_0x1b9f15(0x123)]=_0x57998f,this[_0x1b9f15(0x11e)]=new WeakMap();}[_0x1dd6e0(0x199)](_0x3f379c){const _0x4b5724=_0x1dd6e0;let _0xa2cb94=_0x3f379c[_0x4b5724(0x14f)];for(;_0xa2cb94--;){const _0x59a949=_0x3f379c[_0xa2cb94];if(!this[_0x4b5724(0x123)][_0x4b5724(0x1bd)](_0x59a949)){if(!this[_0x4b5724(0x11e)][_0x4b5724(0x1bd)](_0x59a949)){const _0x226d4b=_0x3332ff()[_0x4b5724(0x18e)](0x1,0x12);this[_0x4b5724(0x11e)][_0x4b5724(0xf8)](_0x59a949,_0x226d4b);}return this[_0x4b5724(0x11e)][_0x4b5724(0x17a)](_0x59a949);}}}[_0x1dd6e0(0xfc)](_0x4f082b,_0x3d9b49){const _0x3ef287=_0x1dd6e0;if(!_0x3d9b49)return;let _0x1ddc54=_0x4f082b[_0x3ef287(0x14f)];for(;_0x1ddc54--;){const _0x4c262f=_0x4f082b[_0x1ddc54];this[_0x3ef287(0x123)][_0x3ef287(0x1bd)](_0x4c262f)||this[_0x3ef287(0x11e)][_0x3ef287(0xf8)](_0x4c262f,_0x3d9b49);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x47ccfb=_0x32a1;(function(_0x19f4c9,_0xfcbc20){const _0x36fb1c=_0x32a1,_0x4a529c=_0x19f4c9();while(!![]){try{const _0x55f45b=parseInt(_0x36fb1c(0xc3))/0x1*(-parseInt(_0x36fb1c(0xb1))/0x2)+-parseInt(_0x36fb1c(0xdd))/0x3*(parseInt(_0x36fb1c(0xbb))/0x4)+parseInt(_0x36fb1c(0xd6))/0x5+parseInt(_0x36fb1c(0xbd))/0x6*(parseInt(_0x36fb1c(0xc7))/0x7)+parseInt(_0x36fb1c(0xd9))/0x8+-parseInt(_0x36fb1c(0xe7))/0x9+parseInt(_0x36fb1c(0xe8))/0xa;if(_0x55f45b===_0xfcbc20)break;else _0x4a529c['push'](_0x4a529c['shift']());}catch(_0x4302ca){_0x4a529c['push'](_0x4a529c['shift']());}}}(_0xd08f,0x962d6));function _0x32a1(_0x462d5d,_0x54a230){const _0xd08fb6=_0xd08f();return _0x32a1=function(_0x32a160,_0x416385){_0x32a160=_0x32a160-0xaf;let _0x27907d=_0xd08fb6[_0x32a160];return _0x27907d;},_0x32a1(_0x462d5d,_0x54a230);}function _0xd08f(){const _0x51d096=['178074hrCrVM','isOfficialPlugin','register','values','assign','getUserBySessionId','_handleSessionAdd','requires','plugins','_handleSessionRemove','4rnIohe','channelSessions','48204yAJlqu','has','state','_users','connection','stopListening','3YwjftU','fire','_uniqueUsersCount','role','357IoBlQA','sessions-register-already-registered','sessionId','listenTo','remove','add','getUser','allConnectedUsers','_createUser','mySessionId','connected','init','_registeredSessions','isPremiumPlugin','getUserRole','3642570eoqmhq','defineMe','delete','1316736Ciwbqo','unregister','hiddenInPresenceList','get','2530086JzOBpI','sessionAdd:','context','Sessions','user','channelConnectedUsers','clear','getUserSessions','orderNumber','sessions-unregister-not-exist','8841753MyILFX','14051760eQBkHH','set','isMe','pluginName','change:state','size','forEach','addUser'];_0xd08f=function(){return _0x51d096;};return _0xd08f();}import{ContextPlugin as _0x52d865}from'ckeditor5/src/core.js';import{Collection as _0x3fc3d5,CKEditorError as _0x10780c}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x241d94}from'./websocketgateway.js';import{Users as _0x206323}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0x52d865{[_0x47ccfb(0xbc)];[_0x47ccfb(0xe2)];[_0x47ccfb(0xce)];[_0x47ccfb(0xd3)];[_0x47ccfb(0xc5)];[_0x47ccfb(0xc0)];static get[_0x47ccfb(0xeb)](){const _0x4e5375=_0x47ccfb;return _0x4e5375(0xe0);}static get[_0x47ccfb(0xb2)](){return!0x0;}static get[_0x47ccfb(0xd4)](){return!0x0;}static get[_0x47ccfb(0xb8)](){return[_0x241d94,_0x206323];}constructor(_0x2bf1dc){const _0x4ab8e7=_0x47ccfb;super(_0x2bf1dc),this[_0x4ab8e7(0xbc)]=new Map(),this[_0x4ab8e7(0xe2)]=new Map(),this[_0x4ab8e7(0xce)]=new _0x3fc3d5(),this[_0x4ab8e7(0xd3)]=new Map(),this[_0x4ab8e7(0xc5)]=0x0,this[_0x4ab8e7(0xc0)]=this[_0x4ab8e7(0xdf)][_0x4ab8e7(0xb9)][_0x4ab8e7(0xdc)](_0x206323);}[_0x47ccfb(0xd2)](){const _0xbc349d=_0x47ccfb,_0x1a77d5=this[_0xbc349d(0xdf)][_0xbc349d(0xb9)][_0xbc349d(0xdc)](_0x241d94);this[_0xbc349d(0xca)](_0x1a77d5,_0xbc349d(0xec),(_0x1e04e4,_0x18055c,_0x14387e)=>{const _0x19e67a=_0xbc349d;if(_0x19e67a(0xd1)!==_0x14387e)this[_0x19e67a(0xbc)][_0x19e67a(0xaf)](_0x35b93b=>_0x35b93b[_0x19e67a(0xe3)]()),this[_0x19e67a(0xe2)][_0x19e67a(0xaf)](_0x16e5ae=>_0x16e5ae[_0x19e67a(0xe3)]()),this[_0x19e67a(0xce)][_0x19e67a(0xe3)]();else{for(const [_0x32a8c9,_0x10243e]of this[_0x19e67a(0xd3)])for(const _0x33d9b7 of _0x10243e)this[_0x19e67a(0xb7)](_0x32a8c9,_0x33d9b7);}}),this[_0xbc349d(0xcf)](_0x1a77d5[_0xbc349d(0xc1)]['me'],!0x0);}[_0x47ccfb(0xb3)](_0x534af3,_0x350a67){const _0x42b44d=_0x47ccfb;if(this[_0x42b44d(0xd3)][_0x42b44d(0xbe)](_0x534af3))throw new _0x10780c(_0x42b44d(0xc8),null,{'channelId':_0x534af3});this[_0x42b44d(0xd3)][_0x42b44d(0xe9)](_0x534af3,_0x350a67),this[_0x42b44d(0xbc)][_0x42b44d(0xe9)](_0x534af3,new _0x3fc3d5()),this[_0x42b44d(0xe2)][_0x42b44d(0xe9)](_0x534af3,new _0x3fc3d5()),this[_0x42b44d(0xca)](_0x350a67,_0x42b44d(0xcc),(_0x58a1e1,_0x539bf3)=>this[_0x42b44d(0xb7)](_0x534af3,_0x539bf3)),this[_0x42b44d(0xca)](_0x350a67,_0x42b44d(0xcb),(_0x40ea53,_0x32ba6c)=>this[_0x42b44d(0xba)](_0x534af3,_0x32ba6c));for(const _0x26f263 of _0x350a67)this[_0x42b44d(0xb7)](_0x534af3,_0x26f263);}[_0x47ccfb(0xda)](_0x3065d4){const _0x44ac4f=_0x47ccfb;if(!this[_0x44ac4f(0xd3)][_0x44ac4f(0xbe)](_0x3065d4))throw new _0x10780c(_0x44ac4f(0xe6),null,{'channelId':_0x3065d4});const _0x1652d8=this[_0x44ac4f(0xd3)][_0x44ac4f(0xdc)](_0x3065d4);this[_0x44ac4f(0xc2)](_0x1652d8);for(const _0x352922 of _0x1652d8)_0x44ac4f(0xd1)===this[_0x44ac4f(0xdf)][_0x44ac4f(0xb9)][_0x44ac4f(0xdc)](_0x241d94)[_0x44ac4f(0xbf)]&&this[_0x44ac4f(0xba)](_0x3065d4,_0x352922);this[_0x44ac4f(0xd3)][_0x44ac4f(0xd8)](_0x3065d4),this[_0x44ac4f(0xbc)][_0x44ac4f(0xd8)](_0x3065d4),this[_0x44ac4f(0xe2)][_0x44ac4f(0xd8)](_0x3065d4);}get[_0x47ccfb(0xd0)](){const _0x4f354f=_0x47ccfb;return this[_0x4f354f(0xdf)][_0x4f354f(0xb9)][_0x4f354f(0xdc)](_0x241d94)[_0x4f354f(0xc1)][_0x4f354f(0xc9)];}[_0x47ccfb(0xb6)](_0x849678){const _0x202d04=_0x47ccfb;for(const _0x18333f of this[_0x202d04(0xbc)][_0x202d04(0xb4)]())for(const _0x5b3cba of _0x18333f)if(_0x5b3cba['id']===_0x849678)return _0x5b3cba[_0x202d04(0xe1)];}[_0x47ccfb(0xe4)](_0x378ea5,_0x49471a){const _0x38819b=_0x47ccfb,_0x5ef794=_0x49471a?[this[_0x38819b(0xbc)][_0x38819b(0xdc)](_0x49471a)]:this[_0x38819b(0xbc)][_0x38819b(0xb4)](),_0xb131b3=new Set();for(const _0x197055 of _0x5ef794)for(const _0x3a32b1 of _0x197055)_0x3a32b1[_0x38819b(0xe1)]['id']===_0x378ea5['id']&&_0xb131b3[_0x38819b(0xcc)](_0x3a32b1['id']);return _0xb131b3;}[_0x47ccfb(0xd5)](_0x4c7c1b){const _0x303c57=_0x47ccfb;for(const _0x5a750f of this[_0x303c57(0xbc)][_0x303c57(0xb4)]())for(const _0x40372c of _0x5a750f)if(_0x40372c[_0x303c57(0xe1)]===_0x4c7c1b)return _0x40372c[_0x303c57(0xc6)];}[_0x47ccfb(0xb7)](_0x3cb8b9,_0x1fbdd2){const _0x41f463=_0x47ccfb;if(_0x41f463(0xd1)!==this[_0x41f463(0xdf)][_0x41f463(0xb9)][_0x41f463(0xdc)](_0x241d94)[_0x41f463(0xbf)])return;const _0xbdeda3=_0x1fbdd2[_0x41f463(0xe1)],_0x252a6f=this[_0x41f463(0xc0)][_0x41f463(0xcd)](_0xbdeda3['id'])||this[_0x41f463(0xcf)](_0xbdeda3),_0x35f0b9=Object[_0x41f463(0xb5)]({},_0x1fbdd2,{'user':_0x252a6f});if(this[_0x41f463(0xbc)][_0x41f463(0xdc)](_0x3cb8b9)[_0x41f463(0xcc)](_0x35f0b9),!_0xbdeda3[_0x41f463(0xdb)]){const _0x1e2272=this[_0x41f463(0xe2)][_0x41f463(0xdc)](_0x3cb8b9);_0x1e2272[_0x41f463(0xbe)](_0x252a6f['id'])||_0x1e2272[_0x41f463(0xcc)](_0x252a6f),this[_0x41f463(0xce)][_0x41f463(0xbe)](_0x252a6f['id'])||_0xbdeda3[_0x41f463(0xdb)]||this[_0x41f463(0xce)][_0x41f463(0xcc)](_0x252a6f,_0x252a6f[_0x41f463(0xea)]?0x0:void 0x0);}this[_0x41f463(0xc4)](_0x41f463(0xde)+_0x3cb8b9,{'channelId':_0x3cb8b9,'session':_0x35f0b9});}[_0x47ccfb(0xba)](_0x506dca,_0x2a5ad0){const _0x2aacc1=_0x47ccfb;if(_0x2aacc1(0xd1)!==this[_0x2aacc1(0xdf)][_0x2aacc1(0xb9)][_0x2aacc1(0xdc)](_0x241d94)[_0x2aacc1(0xbf)])return;const _0x9ad453=this[_0x2aacc1(0xe2)][_0x2aacc1(0xdc)](_0x506dca),_0x3dcaf4=_0x2a5ad0[_0x2aacc1(0xe1)];_0x3dcaf4['id']&&(this[_0x2aacc1(0xbc)][_0x2aacc1(0xdc)](_0x506dca)[_0x2aacc1(0xcb)](_0x2a5ad0['id']),_0x9ad453[_0x2aacc1(0xbe)](_0x3dcaf4['id'])&&!this[_0x2aacc1(0xe4)](_0x3dcaf4,_0x506dca)[_0x2aacc1(0xed)]&&_0x9ad453[_0x2aacc1(0xcb)](_0x3dcaf4['id']),this[_0x2aacc1(0xce)][_0x2aacc1(0xdc)](_0x3dcaf4['id'])&&!this[_0x2aacc1(0xe4)](_0x3dcaf4)[_0x2aacc1(0xed)]&&this[_0x2aacc1(0xce)][_0x2aacc1(0xcb)](_0x3dcaf4['id']));}[_0x47ccfb(0xcf)](_0x39f20b,_0xb3e5f2){const _0x5bf353=_0x47ccfb,_0x3bd552=this[_0x5bf353(0xc0)][_0x5bf353(0xb0)](_0x39f20b);return _0xb3e5f2&&this[_0x5bf353(0xc0)][_0x5bf353(0xd7)](_0x39f20b['id']),_0x3bd552[_0x5bf353(0xe5)]=this[_0x5bf353(0xc5)]++,_0x3bd552;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5b775e=_0x10d4;(function(_0x26775d,_0x1b36b5){const _0x5b0ecd=_0x10d4,_0x29491f=_0x26775d();while(!![]){try{const _0x15221f=parseInt(_0x5b0ecd(0x174))/0x1*(parseInt(_0x5b0ecd(0x184))/0x2)+parseInt(_0x5b0ecd(0x188))/0x3+-parseInt(_0x5b0ecd(0x17f))/0x4+parseInt(_0x5b0ecd(0x16a))/0x5+-parseInt(_0x5b0ecd(0x177))/0x6*(parseInt(_0x5b0ecd(0x161))/0x7)+parseInt(_0x5b0ecd(0x15d))/0x8+-parseInt(_0x5b0ecd(0x164))/0x9*(parseInt(_0x5b0ecd(0x16f))/0xa);if(_0x15221f===_0x1b36b5)break;else _0x29491f['push'](_0x29491f['shift']());}catch(_0x5a27d6){_0x29491f['push'](_0x29491f['shift']());}}}(_0x329d,0x489d3));import{Plugin as _0x10ceb2}from'ckeditor5/src/core.js';import{global as _0x2d29e6,DomEmitterMixin as _0x4f7d4a}from'ckeditor5/src/utils.js';import{Sessions as _0x4ac4b7}from'./sessions.js';import{ModelLiveRange as _0x31555d}from'ckeditor5/src/engine.js';function _0x329d(){const _0x1a3ac2=['classList','tableCell','editing','updateMarker','markerRange','name','render','marker','_domEmitter','user:position','enqueueChange','isSimilar','set','$text','isDocumentOperation','checkChild','element','setCustomProperty','user:range:','end','reconvertMarker','afterInit','createRange','nodeAfter','parent','add','change','rootName','newRange','mapper','2487352rlVjRh','markerNameToElements','getSelectionClass','createUIElement','104363TRipwo','undo','userPositionMarker','2531511UmcPXN','hasContent','change:range','destroy','addMarker','getContainedElement','1109335fDVuwf','editor','split','ck-user__selection','user:position:','10KDZTxO','model','isCollapsed','detach','span','311ryxOmx','Escape','markerToElement','60KjGcFs','createElement','getFirstRange','ck-user__marker\x20','spellcheck','false','init','removeClass','1364568JFAVkt','color','conversion','markers','for','3134OhVWMm','fromRange','mySessionId','getAttribute','146445MemYyC','listenTo','deletionPosition','document','startsWith','getPositions','getRange','isOfficialPlugin','getCustomProperty','get','$graveyard','size','getMarkerClass','mouseenter','user:','mouseleave','UserMarkers','textContent','batch','ck-user__marker_hovered','editingDowncast','oldRange','remove','contenteditable','highest','createUserMarkerOperations','user:range','requires','type','setAttribute','view','markerName','isInline','stopListening','removeMarker','delete','clear','isObject','pluginName','start','keydown','addEventListener','toDomElement','innerHTML','ck-user__marker-tooltip','data-session-id','getUserBySessionId','orderNumber','toRange','getNearestSelectionRange','plugins','isPremiumPlugin','root','_createdBatches','outerHTML','getStart','update:user:range','has','applyOperation','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','markerToHighlight','selection','commands','hasDomSelection','schema','isLimit'];_0x329d=function(){return _0x1a3ac2;};return _0x329d();}function _0x10d4(_0x1f2f2e,_0x3d7556){const _0x329dfd=_0x329d();return _0x10d4=function(_0x10d4c3,_0x39d821){_0x10d4c3=_0x10d4c3-0x112;let _0x4efb12=_0x329dfd[_0x10d4c3];return _0x4efb12;},_0x10d4(_0x1f2f2e,_0x3d7556);}import'../../theme/usermarkers.css';export class UserMarkers extends _0x10ceb2{[_0x5b775e(0x147)]=new(_0x4f7d4a())();static get[_0x5b775e(0x118)](){return[_0x4ac4b7];}static get[_0x5b775e(0x123)](){const _0x547bcb=_0x5b775e;return _0x547bcb(0x198);}static get[_0x5b775e(0x18f)](){return!0x0;}static get[_0x5b775e(0x130)](){return!0x0;}[_0x5b775e(0x17d)](){const _0x1c7ed9=_0x5b775e,_0x3a9774=this[_0x1c7ed9(0x16b)],_0x418000=_0x3a9774[_0x1c7ed9(0x12f)][_0x1c7ed9(0x191)](_0x4ac4b7);_0x3a9774[_0x1c7ed9(0x181)][_0x1c7ed9(0x183)](_0x1c7ed9(0x19c))[_0x1c7ed9(0x176)]({'model':_0x1c7ed9(0x148),'view':(_0x461c25,{writer:_0x52f944})=>function(_0x3f3d26,_0xabf3e2,_0x1db32a,_0x10e7e7){const _0x4ece79=_0x1c7ed9,_0x27c4bc=_0x3f3d26[_0x4ece79(0x11c)][_0x4ece79(0x16c)](':')[0x2],_0x327b46=_0x1db32a[_0x4ece79(0x12b)](_0x27c4bc);if(!_0x327b46||_0x27c4bc===_0x1db32a[_0x4ece79(0x186)])return;if(!_0x10e7e7[_0x4ece79(0x170)][_0x4ece79(0x13d)][_0x4ece79(0x14e)](_0x3f3d26[_0x4ece79(0x143)][_0x4ece79(0x124)],_0x4ece79(0x14c)))return;const _0x16cf9a={'class':_0x4ece79(0x17a)+_0x327b46[_0x4ece79(0x180)][_0x4ece79(0x194)](),'data-name':_0x327b46[_0x4ece79(0x144)],'data-session-id':_0x27c4bc},_0x3fbb4d=_0x10e7e7[_0x4ece79(0x170)][_0x4ece79(0x182)][_0x4ece79(0x191)](_0x3f3d26[_0x4ece79(0x11c)]),_0x7afb9c=_0x3fbb4d[_0x4ece79(0x134)](),_0x309ffe=_0x7afb9c[_0x4ece79(0x156)],_0x5cbd57=_0x10e7e7[_0x4ece79(0x170)][_0x4ece79(0x13d)];if(_0x309ffe&&_0x5cbd57[_0x4ece79(0x122)](_0x309ffe)&&_0x5cbd57[_0x4ece79(0x11d)](_0x309ffe)&&!_0x10e7e7[_0x4ece79(0x170)][_0x4ece79(0x182)][_0x4ece79(0x191)](_0x4ece79(0x151)+_0x27c4bc)[_0x4ece79(0x18e)]()[_0x4ece79(0x171)])return;const _0x372391=_0x7afb9c[_0x4ece79(0x157)];return _0x10e7e7[_0x4ece79(0x170)][_0x4ece79(0x13d)][_0x4ece79(0x13e)](_0x372391)&&!_0x10e7e7[_0x4ece79(0x170)][_0x4ece79(0x165)](_0x372391)&&(_0x16cf9a[_0x4ece79(0x114)]=!0x1),function(_0x30bd35,_0x2af5b8,_0x8e6741){const _0x545a9d=_0x4ece79,_0x4d0d5e=_0x30bd35[_0x545a9d(0x160)](_0x545a9d(0x173),_0x2af5b8);return _0x30bd35[_0x545a9d(0x150)](_0x545a9d(0x163),!0x0,_0x4d0d5e),_0x4d0d5e[_0x545a9d(0x145)]=function(_0x2743cd){const _0x38bc52=_0x545a9d,_0x509048=this[_0x38bc52(0x127)](_0x2743cd),_0x4f9b9a=document[_0x38bc52(0x178)](_0x38bc52(0x173));return _0x4f9b9a[_0x38bc52(0x13f)][_0x38bc52(0x158)](_0x38bc52(0x129)),_0x4f9b9a[_0x38bc52(0x11a)](_0x38bc52(0x114),_0x38bc52(0x17c)),_0x4f9b9a[_0x38bc52(0x11a)](_0x38bc52(0x17b),_0x38bc52(0x17c)),_0x4f9b9a[_0x38bc52(0x199)]=_0x8e6741[_0x38bc52(0x144)],_0x509048[_0x38bc52(0x128)]=_0x38bc52(0x138)+_0x4f9b9a[_0x38bc52(0x133)]+'',_0x509048[_0x38bc52(0x126)](_0x38bc52(0x195),()=>{const _0x7aaf99=_0x38bc52;_0x509048[_0x7aaf99(0x13f)][_0x7aaf99(0x158)](_0x7aaf99(0x19b));}),_0x509048[_0x38bc52(0x126)](_0x38bc52(0x197),()=>{const _0x111a5a=_0x38bc52;_0x509048[_0x111a5a(0x13f)][_0x111a5a(0x113)](_0x111a5a(0x19b));}),_0x509048;},_0x4d0d5e[_0x545a9d(0x14a)]=function(_0x40b78c){const _0x512d1a=_0x545a9d;return!(!this[_0x512d1a(0x190)](_0x512d1a(0x163))||!_0x40b78c[_0x512d1a(0x190)](_0x512d1a(0x163))||this[_0x512d1a(0x187)](_0x512d1a(0x12a))!=_0x40b78c[_0x512d1a(0x187)](_0x512d1a(0x12a)));},_0x4d0d5e;}(_0xabf3e2,_0x16cf9a,_0x327b46);}(_0x461c25,_0x52f944,_0x418000,_0x3a9774)}),_0x3a9774[_0x1c7ed9(0x181)][_0x1c7ed9(0x183)](_0x1c7ed9(0x19c))[_0x1c7ed9(0x139)]({'model':_0x1c7ed9(0x117),'view':_0x138a68=>function(_0x4ace0a,_0x1c541a){const _0x44cb64=_0x1c7ed9,_0x5ee89e=_0x4ace0a[_0x44cb64(0x11c)][_0x44cb64(0x16c)](':')[0x2];if(_0x5ee89e===_0x1c541a[_0x44cb64(0x186)])return null;const _0x4a645a=_0x1c541a[_0x44cb64(0x12b)](_0x5ee89e);if(!_0x4a645a)return{'id':_0x5ee89e,'classes':[]};return{'id':_0x5ee89e,'classes':[_0x44cb64(0x16d),_0x4a645a[_0x44cb64(0x180)][_0x44cb64(0x15f)]()],'attributes':{'data-session-id':_0x5ee89e},'priority':0x7d0+_0x4a645a[_0x44cb64(0x12c)]};}(_0x138a68,_0x418000)}),function(_0x480e13){const _0x5a6746=_0x1c7ed9,_0xad99d4=_0x480e13[_0x5a6746(0x170)],_0x3f96ef=new Map(),_0x106cf9=_0x480e13[_0x5a6746(0x12f)][_0x5a6746(0x191)](_0x4ac4b7);_0xad99d4[_0x5a6746(0x182)]['on'](_0x5a6746(0x135),(_0x58783e,_0x3f737b,_0x30e45f,_0x3afb19)=>{const _0x38f926=_0x5a6746;if(!_0x3afb19&&_0x3f96ef[_0x38f926(0x191)](_0x3f737b[_0x38f926(0x144)]))return _0x3f96ef[_0x38f926(0x191)](_0x3f737b[_0x38f926(0x144)])[_0x38f926(0x172)](),void _0x3f96ef[_0x38f926(0x120)](_0x3f737b[_0x38f926(0x144)]);const _0x16ca16=_0x3f737b[_0x38f926(0x144)][_0x38f926(0x16c)](':')[0x2];if(_0x16ca16===_0x106cf9[_0x38f926(0x186)])return;const _0x29af53=_0x38f926(0x16e)+_0x16ca16;_0xad99d4[_0x38f926(0x182)][_0x38f926(0x136)](_0x29af53)&&_0x480e13[_0x38f926(0x141)][_0x38f926(0x153)](_0x29af53),_0x3f737b['on'](_0x38f926(0x166),(_0x436123,_0x1580c0,_0x12cd04)=>{const _0x333be2=_0x38f926;if(_0x333be2(0x192)!=_0x1580c0[_0x333be2(0x131)][_0x333be2(0x15a)]&&_0x333be2(0x192)==_0x3f737b[_0x333be2(0x18e)]()[_0x333be2(0x131)][_0x333be2(0x15a)]&&!_0x3f96ef[_0x333be2(0x136)](_0x3f737b[_0x333be2(0x144)])){const _0x56f203=_0xad99d4[_0x333be2(0x13d)][_0x333be2(0x12e)](_0x12cd04[_0x333be2(0x18a)]);if(_0x56f203){const _0x4cfbf4=_0x31555d[_0x333be2(0x185)](_0x56f203);_0x3f96ef[_0x333be2(0x14b)](_0x3f737b[_0x333be2(0x144)],_0x4cfbf4),_0x4cfbf4['on'](_0x333be2(0x166),(_0x40b56d,_0x35cf6e,_0x493735)=>{const _0x42f8e9=_0x333be2;if(_0x42f8e9(0x192)==_0x4cfbf4[_0x42f8e9(0x131)][_0x42f8e9(0x15a)]){const _0x56d59b=_0xad99d4[_0x42f8e9(0x13d)][_0x42f8e9(0x12e)](_0x493735[_0x42f8e9(0x18a)]);_0x56d59b?(_0x4cfbf4[_0x42f8e9(0x124)]=_0x56d59b[_0x42f8e9(0x124)],_0x4cfbf4[_0x42f8e9(0x152)]=_0x56d59b[_0x42f8e9(0x152)]):(_0x3f96ef[_0x42f8e9(0x120)](_0x3f737b[_0x42f8e9(0x144)]),_0x4cfbf4[_0x42f8e9(0x172)]());}});}}});}),_0xad99d4[_0x5a6746(0x18b)]['on'](_0x5a6746(0x159),()=>{const _0x5c24b1=_0x5a6746;_0x3f96ef[_0x5c24b1(0x193)]>0x0&&_0xad99d4[_0x5c24b1(0x149)]({'isUndoable':!0x1},_0x3999da=>{const _0x13399d=_0x5c24b1;for(const [_0x36d2a2,_0x6fde53]of _0x3f96ef)_0x13399d(0x192)==_0xad99d4[_0x13399d(0x182)][_0x13399d(0x191)](_0x36d2a2)[_0x13399d(0x18e)]()[_0x13399d(0x131)][_0x13399d(0x15a)]&&(Y(_0x36d2a2[_0x13399d(0x16c)](':')[0x2],_0x6fde53[_0x13399d(0x12d)](),_0xad99d4,_0x3999da),_0x6fde53[_0x13399d(0x172)]());_0x3f96ef[_0x13399d(0x121)]();});});}(_0x3a9774),this[_0x1c7ed9(0x147)][_0x1c7ed9(0x189)](_0x2d29e6[_0x1c7ed9(0x18b)],_0x1c7ed9(0x125),(_0x32e288,{key:_0x51a2f6})=>{const _0x460d49=_0x1c7ed9;_0x460d49(0x175)===_0x51a2f6&&function(_0x1d1b54){const _0x176003=_0x460d49;_0x1d1b54[_0x176003(0x141)][_0x176003(0x11b)][_0x176003(0x159)](_0x50e9a7=>{const _0x26397b=_0x176003;for(const _0x58abb8 of _0x1d1b54[_0x26397b(0x170)][_0x26397b(0x182)]){if(!_0x58abb8[_0x26397b(0x144)][_0x26397b(0x18c)](_0x26397b(0x148)))continue;const _0x1f7d9a=_0x1d1b54[_0x26397b(0x141)][_0x26397b(0x15c)][_0x26397b(0x15e)](_0x58abb8[_0x26397b(0x144)]);if(_0x1f7d9a){for(const _0xd950e7 of _0x1f7d9a)_0x50e9a7[_0x26397b(0x17e)](_0x26397b(0x19b),_0xd950e7);}}});}(_0x3a9774);},{'useCapture':!0x0});}[_0x5b775e(0x154)](){const _0x18b304=_0x5b775e,_0x1e9fc3=this[_0x18b304(0x16b)],_0x429b97=_0x1e9fc3[_0x18b304(0x13b)][_0x18b304(0x191)](_0x18b304(0x162));_0x429b97&&_0x1e9fc3[_0x18b304(0x170)]['on'](_0x18b304(0x137),(_0x33cfe0,_0x1d7aee)=>{const _0x3bb507=_0x18b304,_0x26f33c=_0x1d7aee[0x0];if(!_0x26f33c[_0x3bb507(0x14d)])return;if(_0x3bb507(0x146)!=_0x26f33c[_0x3bb507(0x119)]||!_0x26f33c[_0x3bb507(0x144)][_0x3bb507(0x18c)](_0x3bb507(0x196)))return;const _0xdcfd2e=_0x26f33c[_0x3bb507(0x19a)];_0x429b97[_0x3bb507(0x132)][_0x3bb507(0x136)](_0xdcfd2e)&&(_0x26f33c[_0x3bb507(0x15b)]=_0x26f33c[_0x3bb507(0x112)]?_0x1e9fc3[_0x3bb507(0x170)][_0x3bb507(0x155)](_0x26f33c[_0x3bb507(0x112)][_0x3bb507(0x124)],_0x26f33c[_0x3bb507(0x112)][_0x3bb507(0x152)]):null);},{'priority':_0x18b304(0x115)});}[_0x5b775e(0x167)](){const _0x32374f=_0x5b775e;return this[_0x32374f(0x147)][_0x32374f(0x11e)](),super[_0x32374f(0x167)]();}[_0x5b775e(0x116)](){const _0x24142b=_0x5b775e,_0x1db336=this[_0x24142b(0x16b)],_0x326e7e=_0x1db336[_0x24142b(0x170)][_0x24142b(0x18b)],_0x4bfe25=_0x1db336[_0x24142b(0x12f)][_0x24142b(0x191)](_0x4ac4b7);_0x1db336[_0x24142b(0x170)][_0x24142b(0x149)]({'isUndoable':!0x1},_0x26c1be=>{const _0x2dbdd8=_0x24142b,_0x261a66=_0x2dbdd8(0x151)+_0x4bfe25[_0x2dbdd8(0x186)],_0x1ecd42=_0x2dbdd8(0x16e)+_0x4bfe25[_0x2dbdd8(0x186)],_0x4d4424=_0x1db336[_0x2dbdd8(0x170)][_0x2dbdd8(0x182)][_0x2dbdd8(0x136)](_0x261a66);_0x1db336[_0x2dbdd8(0x141)][_0x2dbdd8(0x11b)][_0x2dbdd8(0x13c)]?Y(_0x4bfe25[_0x2dbdd8(0x186)],_0x326e7e[_0x2dbdd8(0x13a)][_0x2dbdd8(0x179)](),_0x1db336[_0x2dbdd8(0x170)],_0x26c1be):_0x4d4424&&(_0x26c1be[_0x2dbdd8(0x11f)](_0x261a66),_0x26c1be[_0x2dbdd8(0x11f)](_0x1ecd42));});}}function Y(_0x117269,_0x2ab5a0,_0x30b270,_0x1757af){const _0x10c92d=_0x5b775e,_0x7ec184=_0x10c92d(0x151)+_0x117269,_0x573447=_0x10c92d(0x16e)+_0x117269,_0x23776d=_0x2ab5a0[_0x10c92d(0x169)]();let _0x159970=_0x2ab5a0[_0x10c92d(0x124)];if(_0x23776d&&_0x23776d['is'](_0x10c92d(0x14f),_0x10c92d(0x140))){const _0x2d1dca=function(_0x407142,_0x3b1644){const _0x5475f3=_0x10c92d;for(const _0x3563de of _0x407142[_0x5475f3(0x18d)]())if(_0x3b1644[_0x5475f3(0x13d)][_0x5475f3(0x14e)](_0x3563de,_0x5475f3(0x14c)))return _0x3563de;}(_0x2ab5a0,_0x30b270);_0x2d1dca&&(_0x159970=_0x2d1dca,_0x2ab5a0=_0x1757af[_0x10c92d(0x155)](_0x159970));}const _0x4ce950=_0x1757af[_0x10c92d(0x155)](_0x159970);_0x30b270[_0x10c92d(0x182)][_0x10c92d(0x136)](_0x7ec184)?(_0x1757af[_0x10c92d(0x142)](_0x7ec184,{'range':_0x2ab5a0}),_0x1757af[_0x10c92d(0x142)](_0x573447,{'range':_0x4ce950})):(_0x1757af[_0x10c92d(0x168)](_0x7ec184,{'range':_0x2ab5a0,'usingOperation':!0x0}),_0x1757af[_0x10c92d(0x168)](_0x573447,{'range':_0x4ce950,'usingOperation':!0x0}));}
|
|
23
|
+
const _0x530e04=_0x4846;(function(_0x641af8,_0x269345){const _0x56a15c=_0x4846,_0x41a890=_0x641af8();while(!![]){try{const _0x5256fa=-parseInt(_0x56a15c(0x1ae))/0x1+-parseInt(_0x56a15c(0x1b3))/0x2*(-parseInt(_0x56a15c(0x1c3))/0x3)+parseInt(_0x56a15c(0x1a2))/0x4+-parseInt(_0x56a15c(0x179))/0x5*(-parseInt(_0x56a15c(0x1db))/0x6)+-parseInt(_0x56a15c(0x1b8))/0x7*(parseInt(_0x56a15c(0x1c2))/0x8)+-parseInt(_0x56a15c(0x182))/0x9*(parseInt(_0x56a15c(0x192))/0xa)+parseInt(_0x56a15c(0x1e4))/0xb;if(_0x5256fa===_0x269345)break;else _0x41a890['push'](_0x41a890['shift']());}catch(_0x1d05ca){_0x41a890['push'](_0x41a890['shift']());}}}(_0x298b,0xc1d15));function _0x298b(){const _0x52cb33=['name','fromRange','has','data-session-id','stopListening','_createdBatches','createElement','clear','oldRange','getSelectionClass','setCustomProperty','getRange','orderNumber','isObject','$graveyard','applyOperation','$text','add','updateMarker','false','ck-user__marker\x20','createRange','user:','contenteditable','highest','textContent','getPositions','markerRange','10dKjYqA','mouseleave','UserMarkers','schema','afterInit','undo','isSimilar','requires','getAttribute','9414szgjwp','checkChild','outerHTML','addEventListener','conversion','model','getUserBySessionId','user:position','isInline','end','editor','detach','split','setAttribute','element','user:range:','350wlniZJ','nodeAfter','getStart','keydown','ck-user__selection','render','startsWith','markerToHighlight','start','getMarkerClass','getContainedElement','size','editing','get','isLimit','getNearestSelectionRange','4231672efDmNo','pluginName','color','userPositionMarker','classList','ck-user__marker-tooltip','getFirstRange','createUserMarkerOperations','update:user:range','document','delete','change:range','1527760zVtRSK','toRange','markerName','isPremiumPlugin','ck-user__marker_hovered','358rvykkK','mapper','batch','root','tableCell','371prWjdy','rootName','destroy','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','remove','commands','selection','createUIElement','marker','newRange','100360zrCYWC','3360sDNeqz','Escape','user:position:','span','init','innerHTML','spellcheck','deletionPosition','markerNameToElements','getCustomProperty','user:range','hasDomSelection','parent','view','type','markers','toDomElement','editingDowncast','markerToElement','hasContent','removeClass','reconvertMarker','enqueueChange','mouseenter','4234722LKjZJg','change','set','plugins','addMarker','_domEmitter','listenTo','mySessionId','isCollapsed','3884760lLrzhz','isOfficialPlugin','for','removeMarker','isDocumentOperation'];_0x298b=function(){return _0x52cb33;};return _0x298b();}import{Plugin as _0x3bca7e}from'ckeditor5/src/core.js';import{global as _0x19a0ff,DomEmitterMixin as _0x5eb613}from'ckeditor5/src/utils.js';import{Sessions as _0x1b6157}from'./sessions.js';import{ModelLiveRange as _0x4e34ce}from'ckeditor5/src/engine.js';function _0x4846(_0xec0c4d,_0x3db0c6){const _0x298b5a=_0x298b();return _0x4846=function(_0x484602,_0x1eace4){_0x484602=_0x484602-0x164;let _0x1d0bf3=_0x298b5a[_0x484602];return _0x1d0bf3;},_0x4846(_0xec0c4d,_0x3db0c6);}import'../../theme/usermarkers.css';export class UserMarkers extends _0x3bca7e{[_0x530e04(0x1e0)]=new(_0x5eb613())();static get[_0x530e04(0x180)](){return[_0x1b6157];}static get[_0x530e04(0x1a3)](){const _0x5d21b8=_0x530e04;return _0x5d21b8(0x17b);}static get[_0x530e04(0x1e5)](){return!0x0;}static get[_0x530e04(0x1b1)](){return!0x0;}[_0x530e04(0x1c7)](){const _0x5f40bd=_0x530e04,_0x28c363=this[_0x5f40bd(0x18c)],_0x1cf905=_0x28c363[_0x5f40bd(0x1de)][_0x5f40bd(0x19f)](_0x1b6157);_0x28c363[_0x5f40bd(0x186)][_0x5f40bd(0x1e6)](_0x5f40bd(0x1d4))[_0x5f40bd(0x1d5)]({'model':_0x5f40bd(0x189),'view':(_0x53eb1a,{writer:_0x4054d4})=>function(_0x50db73,_0x265a2d,_0x335257,_0x2d9eee){const _0x270e43=_0x5f40bd,_0xedaea0=_0x50db73[_0x270e43(0x1b0)][_0x270e43(0x18e)](':')[0x2],_0x4f4dd3=_0x335257[_0x270e43(0x188)](_0xedaea0);if(!_0x4f4dd3||_0xedaea0===_0x335257[_0x270e43(0x1e2)])return;if(!_0x2d9eee[_0x270e43(0x187)][_0x270e43(0x17c)][_0x270e43(0x183)](_0x50db73[_0x270e43(0x178)][_0x270e43(0x19a)],_0x270e43(0x16d)))return;const _0x11d334={'class':_0x270e43(0x171)+_0x4f4dd3[_0x270e43(0x1a4)][_0x270e43(0x19b)](),'data-name':_0x4f4dd3[_0x270e43(0x1e9)],'data-session-id':_0xedaea0},_0x503c95=_0x2d9eee[_0x270e43(0x187)][_0x270e43(0x1d2)][_0x270e43(0x19f)](_0x50db73[_0x270e43(0x1b0)]),_0xf9e0b1=_0x503c95[_0x270e43(0x194)](),_0x1b3e29=_0xf9e0b1[_0x270e43(0x193)],_0x11fcf9=_0x2d9eee[_0x270e43(0x187)][_0x270e43(0x17c)];if(_0x1b3e29&&_0x11fcf9[_0x270e43(0x16a)](_0x1b3e29)&&_0x11fcf9[_0x270e43(0x18a)](_0x1b3e29)&&!_0x2d9eee[_0x270e43(0x187)][_0x270e43(0x1d2)][_0x270e43(0x19f)](_0x270e43(0x191)+_0xedaea0)[_0x270e43(0x168)]()[_0x270e43(0x1e3)])return;const _0x54ddb1=_0xf9e0b1[_0x270e43(0x1cf)];return _0x2d9eee[_0x270e43(0x187)][_0x270e43(0x17c)][_0x270e43(0x1a0)](_0x54ddb1)&&!_0x2d9eee[_0x270e43(0x187)][_0x270e43(0x1d6)](_0x54ddb1)&&(_0x11d334[_0x270e43(0x174)]=!0x1),function(_0x3b49ab,_0x143544,_0x5a2de3){const _0x4f8c5e=_0x270e43,_0x218815=_0x3b49ab[_0x4f8c5e(0x1bf)](_0x4f8c5e(0x1c6),_0x143544);return _0x3b49ab[_0x4f8c5e(0x167)](_0x4f8c5e(0x1a5),!0x0,_0x218815),_0x218815[_0x4f8c5e(0x197)]=function(_0x3f1559){const _0x1a5ed0=_0x4f8c5e,_0x4ccc48=this[_0x1a5ed0(0x1d3)](_0x3f1559),_0x10abd6=document[_0x1a5ed0(0x1ef)](_0x1a5ed0(0x1c6));return _0x10abd6[_0x1a5ed0(0x1a6)][_0x1a5ed0(0x16e)](_0x1a5ed0(0x1a7)),_0x10abd6[_0x1a5ed0(0x18f)](_0x1a5ed0(0x174),_0x1a5ed0(0x170)),_0x10abd6[_0x1a5ed0(0x18f)](_0x1a5ed0(0x1c9),_0x1a5ed0(0x170)),_0x10abd6[_0x1a5ed0(0x176)]=_0x5a2de3[_0x1a5ed0(0x1e9)],_0x4ccc48[_0x1a5ed0(0x1c8)]=_0x1a5ed0(0x1bb)+_0x10abd6[_0x1a5ed0(0x184)]+'',_0x4ccc48[_0x1a5ed0(0x185)](_0x1a5ed0(0x1da),()=>{const _0x10c445=_0x1a5ed0;_0x4ccc48[_0x10c445(0x1a6)][_0x10c445(0x16e)](_0x10c445(0x1b2));}),_0x4ccc48[_0x1a5ed0(0x185)](_0x1a5ed0(0x17a),()=>{const _0x542ef3=_0x1a5ed0;_0x4ccc48[_0x542ef3(0x1a6)][_0x542ef3(0x1bc)](_0x542ef3(0x1b2));}),_0x4ccc48;},_0x218815[_0x4f8c5e(0x17f)]=function(_0x30c9f8){const _0x38f291=_0x4f8c5e;return!(!this[_0x38f291(0x1cc)](_0x38f291(0x1a5))||!_0x30c9f8[_0x38f291(0x1cc)](_0x38f291(0x1a5))||this[_0x38f291(0x181)](_0x38f291(0x1ec))!=_0x30c9f8[_0x38f291(0x181)](_0x38f291(0x1ec)));},_0x218815;}(_0x265a2d,_0x11d334,_0x4f4dd3);}(_0x53eb1a,_0x4054d4,_0x1cf905,_0x28c363)}),_0x28c363[_0x5f40bd(0x186)][_0x5f40bd(0x1e6)](_0x5f40bd(0x1d4))[_0x5f40bd(0x199)]({'model':_0x5f40bd(0x1cd),'view':_0x5e6062=>function(_0x51add5,_0x151b0e){const _0x4acc2b=_0x5f40bd,_0x13da4d=_0x51add5[_0x4acc2b(0x1b0)][_0x4acc2b(0x18e)](':')[0x2];if(_0x13da4d===_0x151b0e[_0x4acc2b(0x1e2)])return null;const _0x4dba9c=_0x151b0e[_0x4acc2b(0x188)](_0x13da4d);if(!_0x4dba9c)return{'id':_0x13da4d,'classes':[]};return{'id':_0x13da4d,'classes':[_0x4acc2b(0x196),_0x4dba9c[_0x4acc2b(0x1a4)][_0x4acc2b(0x166)]()],'attributes':{'data-session-id':_0x13da4d},'priority':0x7d0+_0x4dba9c[_0x4acc2b(0x169)]};}(_0x5e6062,_0x1cf905)}),function(_0xa8ebd6){const _0x3ca28c=_0x5f40bd,_0x32d4ba=_0xa8ebd6[_0x3ca28c(0x187)],_0x131ff1=new Map(),_0xc0ef0a=_0xa8ebd6[_0x3ca28c(0x1de)][_0x3ca28c(0x19f)](_0x1b6157);_0x32d4ba[_0x3ca28c(0x1d2)]['on'](_0x3ca28c(0x1aa),(_0x4b4675,_0x21df7d,_0x4d74c8,_0x20e710)=>{const _0x888576=_0x3ca28c;if(!_0x20e710&&_0x131ff1[_0x888576(0x19f)](_0x21df7d[_0x888576(0x1e9)]))return _0x131ff1[_0x888576(0x19f)](_0x21df7d[_0x888576(0x1e9)])[_0x888576(0x18d)](),void _0x131ff1[_0x888576(0x1ac)](_0x21df7d[_0x888576(0x1e9)]);const _0x40b72b=_0x21df7d[_0x888576(0x1e9)][_0x888576(0x18e)](':')[0x2];if(_0x40b72b===_0xc0ef0a[_0x888576(0x1e2)])return;const _0x5987d4=_0x888576(0x1c5)+_0x40b72b;_0x32d4ba[_0x888576(0x1d2)][_0x888576(0x1eb)](_0x5987d4)&&_0xa8ebd6[_0x888576(0x19e)][_0x888576(0x1d8)](_0x5987d4),_0x21df7d['on'](_0x888576(0x1ad),(_0x1d371c,_0x2f5dc7,_0x38d01f)=>{const _0x52dc14=_0x888576;if(_0x52dc14(0x16b)!=_0x2f5dc7[_0x52dc14(0x1b6)][_0x52dc14(0x1b9)]&&_0x52dc14(0x16b)==_0x21df7d[_0x52dc14(0x168)]()[_0x52dc14(0x1b6)][_0x52dc14(0x1b9)]&&!_0x131ff1[_0x52dc14(0x1eb)](_0x21df7d[_0x52dc14(0x1e9)])){const _0x45ee8f=_0x32d4ba[_0x52dc14(0x17c)][_0x52dc14(0x1a1)](_0x38d01f[_0x52dc14(0x1ca)]);if(_0x45ee8f){const _0xafcd1d=_0x4e34ce[_0x52dc14(0x1ea)](_0x45ee8f);_0x131ff1[_0x52dc14(0x1dd)](_0x21df7d[_0x52dc14(0x1e9)],_0xafcd1d),_0xafcd1d['on'](_0x52dc14(0x1ad),(_0x25a4a4,_0x5a8210,_0xc5946)=>{const _0x3b5f05=_0x52dc14;if(_0x3b5f05(0x16b)==_0xafcd1d[_0x3b5f05(0x1b6)][_0x3b5f05(0x1b9)]){const _0x302e44=_0x32d4ba[_0x3b5f05(0x17c)][_0x3b5f05(0x1a1)](_0xc5946[_0x3b5f05(0x1ca)]);_0x302e44?(_0xafcd1d[_0x3b5f05(0x19a)]=_0x302e44[_0x3b5f05(0x19a)],_0xafcd1d[_0x3b5f05(0x18b)]=_0x302e44[_0x3b5f05(0x18b)]):(_0x131ff1[_0x3b5f05(0x1ac)](_0x21df7d[_0x3b5f05(0x1e9)]),_0xafcd1d[_0x3b5f05(0x18d)]());}});}}});}),_0x32d4ba[_0x3ca28c(0x1ab)]['on'](_0x3ca28c(0x1dc),()=>{const _0xbc1655=_0x3ca28c;_0x131ff1[_0xbc1655(0x19d)]>0x0&&_0x32d4ba[_0xbc1655(0x1d9)]({'isUndoable':!0x1},_0x179fa4=>{const _0x88e253=_0xbc1655;for(const [_0x209cbe,_0x298a40]of _0x131ff1)_0x88e253(0x16b)==_0x32d4ba[_0x88e253(0x1d2)][_0x88e253(0x19f)](_0x209cbe)[_0x88e253(0x168)]()[_0x88e253(0x1b6)][_0x88e253(0x1b9)]&&(J(_0x209cbe[_0x88e253(0x18e)](':')[0x2],_0x298a40[_0x88e253(0x1af)](),_0x32d4ba,_0x179fa4),_0x298a40[_0x88e253(0x18d)]());_0x131ff1[_0x88e253(0x164)]();});});}(_0x28c363),this[_0x5f40bd(0x1e0)][_0x5f40bd(0x1e1)](_0x19a0ff[_0x5f40bd(0x1ab)],_0x5f40bd(0x195),(_0x167c94,{key:_0x19afcc})=>{const _0x50015d=_0x5f40bd;_0x50015d(0x1c4)===_0x19afcc&&function(_0x398273){const _0x483826=_0x50015d;_0x398273[_0x483826(0x19e)][_0x483826(0x1d0)][_0x483826(0x1dc)](_0x1e57b1=>{const _0x32b188=_0x483826;for(const _0x243ff7 of _0x398273[_0x32b188(0x187)][_0x32b188(0x1d2)]){if(!_0x243ff7[_0x32b188(0x1e9)][_0x32b188(0x198)](_0x32b188(0x189)))continue;const _0x2a3847=_0x398273[_0x32b188(0x19e)][_0x32b188(0x1b4)][_0x32b188(0x1cb)](_0x243ff7[_0x32b188(0x1e9)]);if(_0x2a3847){for(const _0x2c65e0 of _0x2a3847)_0x1e57b1[_0x32b188(0x1d7)](_0x32b188(0x1b2),_0x2c65e0);}}});}(_0x28c363);},{'useCapture':!0x0});}[_0x530e04(0x17d)](){const _0x2da78e=_0x530e04,_0x42be99=this[_0x2da78e(0x18c)],_0x268ca5=_0x42be99[_0x2da78e(0x1bd)][_0x2da78e(0x19f)](_0x2da78e(0x17e));_0x268ca5&&_0x42be99[_0x2da78e(0x187)]['on'](_0x2da78e(0x16c),(_0x112857,_0x507eb0)=>{const _0x23d237=_0x2da78e,_0x38066f=_0x507eb0[0x0];if(!_0x38066f[_0x23d237(0x1e8)])return;if(_0x23d237(0x1c0)!=_0x38066f[_0x23d237(0x1d1)]||!_0x38066f[_0x23d237(0x1e9)][_0x23d237(0x198)](_0x23d237(0x173)))return;const _0x3bc88e=_0x38066f[_0x23d237(0x1b5)];_0x268ca5[_0x23d237(0x1ee)][_0x23d237(0x1eb)](_0x3bc88e)&&(_0x38066f[_0x23d237(0x1c1)]=_0x38066f[_0x23d237(0x165)]?_0x42be99[_0x23d237(0x187)][_0x23d237(0x172)](_0x38066f[_0x23d237(0x165)][_0x23d237(0x19a)],_0x38066f[_0x23d237(0x165)][_0x23d237(0x18b)]):null);},{'priority':_0x2da78e(0x175)});}[_0x530e04(0x1ba)](){const _0x5c6e05=_0x530e04;return this[_0x5c6e05(0x1e0)][_0x5c6e05(0x1ed)](),super[_0x5c6e05(0x1ba)]();}[_0x530e04(0x1a9)](){const _0x2376db=_0x530e04,_0x40d90d=this[_0x2376db(0x18c)],_0x25311c=_0x40d90d[_0x2376db(0x187)][_0x2376db(0x1ab)],_0xb57798=_0x40d90d[_0x2376db(0x1de)][_0x2376db(0x19f)](_0x1b6157);_0x40d90d[_0x2376db(0x187)][_0x2376db(0x1d9)]({'isUndoable':!0x1},_0x4e5afa=>{const _0x51ba5f=_0x2376db,_0x58d8a9=_0x51ba5f(0x191)+_0xb57798[_0x51ba5f(0x1e2)],_0x5c3f47=_0x51ba5f(0x1c5)+_0xb57798[_0x51ba5f(0x1e2)],_0x4b5f4c=_0x40d90d[_0x51ba5f(0x187)][_0x51ba5f(0x1d2)][_0x51ba5f(0x1eb)](_0x58d8a9);_0x40d90d[_0x51ba5f(0x19e)][_0x51ba5f(0x1d0)][_0x51ba5f(0x1ce)]?J(_0xb57798[_0x51ba5f(0x1e2)],_0x25311c[_0x51ba5f(0x1be)][_0x51ba5f(0x1a8)](),_0x40d90d[_0x51ba5f(0x187)],_0x4e5afa):_0x4b5f4c&&(_0x4e5afa[_0x51ba5f(0x1e7)](_0x58d8a9),_0x4e5afa[_0x51ba5f(0x1e7)](_0x5c3f47));});}}function J(_0xd592ba,_0x5696f0,_0x5b7c94,_0x18c0ed){const _0x2b39a1=_0x530e04,_0x5bffed=_0x2b39a1(0x191)+_0xd592ba,_0x454327=_0x2b39a1(0x1c5)+_0xd592ba,_0x3fee13=_0x5696f0[_0x2b39a1(0x19c)]();let _0x37a00a=_0x5696f0[_0x2b39a1(0x19a)];if(_0x3fee13&&_0x3fee13['is'](_0x2b39a1(0x190),_0x2b39a1(0x1b7))){const _0x317375=function(_0x10fa94,_0x1e8d77){const _0x57ce16=_0x2b39a1;for(const _0x459d31 of _0x10fa94[_0x57ce16(0x177)]())if(_0x1e8d77[_0x57ce16(0x17c)][_0x57ce16(0x183)](_0x459d31,_0x57ce16(0x16d)))return _0x459d31;}(_0x5696f0,_0x5b7c94);_0x317375&&(_0x37a00a=_0x317375,_0x5696f0=_0x18c0ed[_0x2b39a1(0x172)](_0x37a00a));}const _0x11635d=_0x18c0ed[_0x2b39a1(0x172)](_0x37a00a);_0x5b7c94[_0x2b39a1(0x1d2)][_0x2b39a1(0x1eb)](_0x5bffed)?(_0x18c0ed[_0x2b39a1(0x16f)](_0x5bffed,{'range':_0x5696f0}),_0x18c0ed[_0x2b39a1(0x16f)](_0x454327,{'range':_0x11635d})):(_0x18c0ed[_0x2b39a1(0x1df)](_0x5bffed,{'range':_0x5696f0,'usingOperation':!0x0}),_0x18c0ed[_0x2b39a1(0x1df)](_0x454327,{'range':_0x11635d,'usingOperation':!0x0}));}
|