@ckeditor/ckeditor5-real-time-collaboration 46.0.1-alpha.3 → 46.0.1-alpha.5

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.
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5aeec7=_0x51bb;(function(_0x1dc645,_0x5a931d){const _0x225188=_0x51bb,_0x533143=_0x1dc645();while(!![]){try{const _0xc3310b=parseInt(_0x225188(0xa2))/0x1+parseInt(_0x225188(0xa0))/0x2+-parseInt(_0x225188(0xc5))/0x3+-parseInt(_0x225188(0xee))/0x4*(-parseInt(_0x225188(0x9e))/0x5)+parseInt(_0x225188(0xbc))/0x6*(-parseInt(_0x225188(0xe7))/0x7)+parseInt(_0x225188(0xa4))/0x8*(parseInt(_0x225188(0xca))/0x9)+parseInt(_0x225188(0xfc))/0xa*(-parseInt(_0x225188(0xa5))/0xb);if(_0xc3310b===_0x5a931d)break;else _0x533143['push'](_0x533143['shift']());}catch(_0x11a7bf){_0x533143['push'](_0x533143['shift']());}}}(_0x36c5,0xc2498));import{Plugin as _0x16d655}from'ckeditor5/src/core.js';import{version as _0x293aec}from'ckeditor5/src/utils.js';import{Users as _0x54578d}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x36c5(){const _0x249160=['destroy','data','CONNECTED','_isPendingUpdate','reverse','change:_isPendingUpdate','setRevisionData','from','getUser','change:_isConnected','authorsIds','cloud-services-internal-error:\x20Not\x20connected.','getOperations','requires','getRevisions','buildRevisionData','addRevisionData','isOfficialPlugin','837955iCvfZq','plugins','865498GrRQHV','connection','1234986MEgLuS','diffData','49016EOniOm','803DyObUg','cloudServices.bundleVersion','revisionsUpdated','reconnect','isBundleUploaded','isPremiumPlugin','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','_preventResendingRevisionData','repository','map','reInit','creatorId','isConnected','config','_waitForServiceReady','affectsData','baseVersion','_offset','RevisionHistory','isEmptyCurrent','_startingVersion','_bufferedUpdates','get','8013066cIsNVt','_fetchMissingUsers','serverHistory','_handleRevisionsUpdate','_revisions','code','adapter','max','then','644799ixwqgw','_revisionTracker','CloudServicesRevisionHistoryAdapter','_revisionDataBuilder','currentRevision','1278SvyIul','cloud-services-internal-error:\x20Request\x20timeout.','bind','_getLatestVersion','collaboration.channelId','_lastRequestId','startsWith','updateRevisions','RevisionHistoryService','toVersion','_bufferUpdate','catch','sendBufferedUpdates','connected','isEnabled','off','editor','init','message','sessionId','getRevision','size','marker','has','_getLatestVersionFromServerOperations','state','authors','_handleReconnectionError','_update','7yVzVWo','getMany','once','addUser','remove','createdAt','setSource','28tteEMa','keys','fromVersion','type','_revisionHistoryService','wrongRequestId','RevisionTracker','listenTo','pluginName','_createCurrentRevision','addToReconnectionStack','_fixRevision','_oldOffset','400','186940yxCUVB','add','length','connect','_isConnected'];_0x36c5=function(){return _0x249160;};return _0x36c5();}import{RealTimeCollaborationClient as _0x3eeb7a}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x4c4cf3}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x2da23b}from'../realtimecollaborativeediting/sessions.js';function _0x51bb(_0x5157d1,_0x1bb412){const _0x36c5eb=_0x36c5();return _0x51bb=function(_0x51bbd3,_0x32984b){_0x51bbd3=_0x51bbd3-0x8c;let _0x4b8d19=_0x36c5eb[_0x51bbd3];return _0x4b8d19;},_0x51bb(_0x5157d1,_0x1bb412);}import{EditorService as _0x492719,RevisionHistoryService as _0xde5fe,User as _0x75386a,WEB_SOCKET_GATEWAY_STATES as _0x2aebb2}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class c extends _0x16d655{static [_0x5aeec7(0xd2)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0xde5fe)());[_0x5aeec7(0xcf)];[_0x5aeec7(0xc6)];[_0x5aeec7(0xf2)];[_0x5aeec7(0xfa)];static get[_0x5aeec7(0x99)](){const _0x405dd7=_0x5aeec7;return[_0x4c4cf3,_0x3eeb7a,_0x405dd7(0xb7),_0x2da23b,_0x54578d];}static get[_0x5aeec7(0xf6)](){const _0x54fdad=_0x5aeec7;return _0x54fdad(0xc7);}static get[_0x5aeec7(0x9d)](){return!0x0;}static get[_0x5aeec7(0xaa)](){return!0x0;}constructor(_0x2b88e6){const _0x2280eb=_0x5aeec7;super(_0x2b88e6);const _0x1ee75c=this[_0x2280eb(0xda)][_0x2280eb(0xb2)][_0x2280eb(0xbb)](_0x2280eb(0xce));this[_0x2280eb(0xcf)]=null,this[_0x2280eb(0xc6)]=this[_0x2280eb(0xda)][_0x2280eb(0x9f)][_0x2280eb(0xbb)](_0x2280eb(0xf4)),this[_0x2280eb(0xf2)]=new c[(_0x2280eb(0xd2))](_0x1ee75c);}async[_0x5aeec7(0xdb)](){const _0x252114=_0x5aeec7,_0x5fe91e=this[_0x252114(0xda)][_0x252114(0x9f)][_0x252114(0xbb)](_0x3eeb7a),_0x482a20=_0x5fe91e[_0x252114(0xbe)],_0x1810b0=this[_0x252114(0xda)][_0x252114(0x9f)][_0x252114(0xbb)](_0x4c4cf3);this[_0x252114(0xc6)][_0x252114(0xed)]({'history':_0x482a20,'getLatestVersion':()=>this[_0x252114(0xcd)](),'getCurrentRevisionId':()=>_0x5fe91e[_0x252114(0xdd)]});const _0x256499=this[_0x252114(0xda)][_0x252114(0xb2)][_0x252114(0xbb)](_0x252114(0xa6))||_0x293aec,_0x44670e=await _0x492719[_0x252114(0xa9)](_0x1810b0[_0x252114(0xa1)],_0x256499);this[_0x252114(0xda)][_0x252114(0x9f)][_0x252114(0xbb)](_0x252114(0xb7))[_0x252114(0xc2)]={'getRevision':async({revisionId:_0x21a139})=>(await this[_0x252114(0xb3)](),await this[_0x252114(0xf2)][_0x252114(0xde)](_0x21a139)),'updateRevisions':async _0x564173=>{const _0x4a7d85=_0x252114;await this[_0x4a7d85(0xb3)]();const _0x4cf1c8=this[_0x4a7d85(0xc6)][_0x4a7d85(0xc9)];if(_0x44670e&&0x1===_0x564173[_0x4a7d85(0xfe)]&&_0x564173[0x0]['id']===_0x4cf1c8['id'])return _0x564173;for(const _0x12d7fd of _0x564173)_0x12d7fd['id']===_0x4cf1c8['id']&&(_0x12d7fd[_0x4a7d85(0xb8)]=_0x12d7fd[_0x4a7d85(0xf0)]===_0x12d7fd[_0x4a7d85(0xd3)]);return this[_0x4a7d85(0xf2)][_0x4a7d85(0xd1)](_0x564173,this[_0x4a7d85(0xcf)])[_0x4a7d85(0xc4)](_0x36f2b5=>(this[_0x4a7d85(0xcf)]=_0x36f2b5,_0x564173))[_0x4a7d85(0xd5)](_0x11b21a=>{const _0x2e6ca0=_0x4a7d85;if(it(_0x11b21a)||_0x2e6ca0(0xfb)===_0x11b21a[_0x2e6ca0(0xc1)]&&void 0x0!==_0x11b21a[_0x2e6ca0(0x8d)][_0x2e6ca0(0xf3)]){for(const _0x48c40a of _0x564173){!this[_0x2e6ca0(0xc6)][_0x2e6ca0(0xad)][_0x2e6ca0(0xde)](_0x48c40a['id'])||this[_0x2e6ca0(0xc6)][_0x2e6ca0(0xd4)](_0x48c40a['id'],_0x48c40a,!0x1);}if(it(_0x11b21a))throw _0x11b21a;return _0x564173;}throw _0x11b21a;});}},this[_0x252114(0xf5)](this[_0x252114(0xf2)],_0x252114(0xa7),(_0x524196,{revisionsData:_0x18984b,requestId:_0x4c7a07})=>{const _0x39c81d=_0x252114;Math[_0x39c81d(0xc3)](..._0x18984b[_0x39c81d(0xae)](_0x57c5ee=>_0x57c5ee[_0x39c81d(0xd3)]))>this[_0x39c81d(0xe2)]()-0x1?this[_0x39c81d(0xcd)]()[_0x39c81d(0xc4)](()=>{const _0x33d101=_0x39c81d;this[_0x33d101(0xbf)](_0x18984b,_0x4c7a07);}):this[_0x39c81d(0xbf)](_0x18984b,_0x4c7a07);});const {revisions:_0x47e0ec,requestId:_0x55a419}=await this[_0x252114(0xf2)][_0x252114(0xff)](_0x1810b0[_0x252114(0xa1)]);_0x1810b0[_0x252114(0xf8)](this),this[_0x252114(0xcf)]=_0x55a419,await this[_0x252114(0xbd)](_0x47e0ec);for(const _0x4fb560 of _0x47e0ec)this[_0x252114(0xc6)][_0x252114(0x9c)](_0x4fb560);this[_0x252114(0xf5)](_0x5fe91e,_0x252114(0x95),(_0x65191e,_0x2a8976,_0x5d1290)=>{const _0xd6be4=_0x252114;_0x5d1290&&(this[_0xd6be4(0xfa)]=_0x5fe91e[_0xd6be4(0xb6)],_0x65191e[_0xd6be4(0xd9)]());}),this[_0x252114(0xc6)][_0x252114(0xcc)](_0x252114(0xd8))['to'](_0x1810b0,_0x252114(0xe3),_0xd35350=>_0xd35350===_0x2aebb2[_0x252114(0x8e)]);}async[_0x5aeec7(0xa8)](){const _0x5878a8=_0x5aeec7,_0xdd3296=this[_0x5878a8(0xda)][_0x5878a8(0x9f)][_0x5878a8(0xbb)](_0x4c4cf3),_0x5643fa=this[_0x5878a8(0xda)][_0x5878a8(0x9f)][_0x5878a8(0xbb)](_0x3eeb7a),_0x55ab77=async()=>{const _0x514635=_0x5878a8,_0x5f0bad=this[_0x514635(0xc6)][_0x514635(0xc9)],_0x2c00bc=_0x5f0bad['id'],_0x2944f3=_0x2c00bc!==_0x5643fa[_0x514635(0xdd)];if(_0x2944f3){const _0x5e5de9=_0x5643fa[_0x514635(0xb6)]-this[_0x514635(0xfa)],_0x106420=this[_0x514635(0xe2)]();this[_0x514635(0xc6)][_0x514635(0xc8)][_0x514635(0xaf)]();if(_0x5f0bad[_0x514635(0xd3)]+_0x5e5de9!==_0x106420){const _0x1edb62=_0x5f0bad[_0x514635(0xf0)]+_0x5e5de9,_0xf9f9b4=this[_0x514635(0xda)][_0x514635(0x9f)][_0x514635(0xbb)](_0x54578d),_0x4cdec7=this[_0x514635(0xc6)][_0x514635(0x9b)]({'revision':_0x5f0bad,'from':_0x1edb62,'to':_0x106420});_0x4cdec7['id']=_0x5f0bad['id'];const _0x43478d=_0x4cdec7[_0x514635(0x96)][_0x514635(0xae)](_0x5c4519=>_0xf9f9b4[_0x514635(0x94)](_0x5c4519));_0x5f0bad[_0x514635(0xe6)]({..._0x4cdec7,'authors':_0x43478d},!0x0),this[_0x514635(0xc6)][_0x514635(0xd4)](_0x5f0bad['id'],_0x4cdec7,!0x0);}this[_0x514635(0xc6)][_0x514635(0xb9)]=_0x106420,(_0x5f0bad[_0x514635(0xd3)]===_0x5f0bad[_0x514635(0xf0)]&&!this[_0x514635(0xc6)][_0x514635(0xba)][_0x514635(0xe1)](_0x2c00bc)&&this[_0x514635(0xc6)][_0x514635(0xad)][_0x514635(0xc0)][_0x514635(0xeb)](_0x2c00bc),this[_0x514635(0xc6)][_0x514635(0xf7)](_0x106420));}const {revisions:_0x35af51,requestId:_0x569e88}=await this[_0x514635(0xf2)][_0x514635(0xa8)](_0xdd3296[_0x514635(0xa1)],this[_0x514635(0xcf)]);_0x2944f3&&_0x35af51[_0x514635(0xfe)]>0x0?_0x5643fa[_0x514635(0xe5)]():(await this[_0x514635(0xbd)](_0x35af51),this[_0x514635(0xbf)](_0x35af51,_0x569e88),this[_0x514635(0xc6)][_0x514635(0xd6)]());};return _0x5643fa[_0x5878a8(0x100)]?_0x55ab77():new Promise((_0x5a320f,_0x2109b2)=>{const _0x1d4f03=_0x5878a8;_0x5643fa[_0x1d4f03(0xe9)](_0x1d4f03(0x95),()=>{const _0x36df21=_0x1d4f03;_0x55ab77()[_0x36df21(0xc4)](_0x5a320f)[_0x36df21(0xd5)](_0x2109b2);});});}[_0x5aeec7(0x8c)](){const _0x416680=_0x5aeec7;super[_0x416680(0x8c)]();}async[_0x5aeec7(0xb3)](){const _0x21c584=_0x5aeec7;this[_0x21c584(0xf2)][_0x21c584(0xb1)]||await new Promise(_0x11f499=>{const _0x45dc96=_0x21c584;this[_0x45dc96(0xf5)](this[_0x45dc96(0xf2)],_0x45dc96(0xd7),_0x15545b=>{const _0x3de164=_0x45dc96;_0x15545b[_0x3de164(0xd9)](),_0x11f499();});});}[_0x5aeec7(0xe2)](){const _0x3eabee=_0x5aeec7,_0x4265b9=this[_0x3eabee(0xda)][_0x3eabee(0x9f)][_0x3eabee(0xbb)](_0x3eeb7a)[_0x3eabee(0xbe)][_0x3eabee(0x98)]()[_0x3eabee(0x90)]();for(const _0x36ce68 of _0x4265b9)if(_0x3eabee(0xe0)!==_0x36ce68[_0x3eabee(0xf1)]||_0x36ce68[_0x3eabee(0xb4)])return _0x36ce68[_0x3eabee(0xb5)]+0x1;}[_0x5aeec7(0xcd)](){const _0x5ae069=_0x5aeec7,_0x949124=this[_0x5ae069(0xda)][_0x5ae069(0x9f)][_0x5ae069(0xbb)](_0x3eeb7a);return new Promise(_0x27acb4=>{const _0x4b7095=_0x5ae069;_0x949124[_0x4b7095(0x8f)]?_0x949124[_0x4b7095(0xe9)](_0x4b7095(0x91),()=>{const _0x2814ef=_0x4b7095;_0x27acb4(this[_0x2814ef(0xe2)]());}):_0x27acb4(this[_0x4b7095(0xe2)]());});}[_0x5aeec7(0xbf)](_0xc99f96,_0x59d7e0){const _0xd0504f=_0x5aeec7,_0x5a52f1=this[_0xd0504f(0xc6)][_0xd0504f(0xad)];this[_0xd0504f(0xcf)]=_0x59d7e0;for(const _0xa04c13 of _0xc99f96){const _0x395b98=_0x5a52f1[_0xd0504f(0xde)](_0xa04c13['id']);if(_0x395b98){if((_0xa04c13[_0xd0504f(0xf0)]||_0xa04c13[_0xd0504f(0xd3)])&&(_0xa04c13[_0xd0504f(0xa3)]=null),_0x395b98===this[_0xd0504f(0xc6)][_0xd0504f(0xc9)]){const _0x2a35be=Math[_0xd0504f(0xc3)](_0x395b98[_0xd0504f(0xd3)],_0xa04c13[_0xd0504f(0xd3)]),_0x25e245=Math[_0xd0504f(0xc3)](_0x395b98[_0xd0504f(0xf0)],_0xa04c13[_0xd0504f(0xf0)]);let _0x278774;_0x395b98[_0xd0504f(0xd3)]===_0xa04c13[_0xd0504f(0xd3)]&&_0x395b98[_0xd0504f(0xf0)]===_0xa04c13[_0xd0504f(0xf0)]?(_0x278774=!0x0,this[_0xd0504f(0xac)](_0xa04c13)):_0xa04c13[_0xd0504f(0xd3)]===_0x2a35be&&_0xa04c13[_0xd0504f(0xf0)]===_0x25e245?_0x278774=!0x1:(_0x395b98[_0xd0504f(0xd3)]===_0x2a35be&&_0x395b98[_0xd0504f(0xf0)]===_0x25e245||this[_0xd0504f(0xf9)]({'revision':_0x395b98,'from':_0x25e245,'to':_0x2a35be}),_0x278774=!0x0),_0x278774&&(delete _0xa04c13[_0xd0504f(0xf0)],delete _0xa04c13[_0xd0504f(0xd3)],delete _0xa04c13[_0xd0504f(0xa3)],delete _0xa04c13[_0xd0504f(0xec)],delete _0xa04c13[_0xd0504f(0x96)]);}this[_0xd0504f(0xc6)][_0xd0504f(0x92)](_0xa04c13),this[_0xd0504f(0xac)](_0xa04c13);}else this[_0xd0504f(0xc6)][_0xd0504f(0x9c)](_0xa04c13);}const _0x518d05=_0x5a52f1[_0xd0504f(0x9a)]();_0x518d05[_0xd0504f(0x90)]();for(let _0x59472f=0x0;_0x59472f<_0x518d05[_0xd0504f(0xfe)]-0x1;_0x59472f++){const _0x39d42e=_0x518d05[_0x59472f],_0x220112=_0x518d05[_0x59472f+0x1];if(_0x39d42e[_0xd0504f(0xf0)]<_0x220112[_0xd0504f(0xd3)]){const _0x1be173=_0x220112[_0xd0504f(0xd3)],_0x155588=Math[_0xd0504f(0xc3)](_0x1be173,_0x39d42e[_0xd0504f(0xd3)]);this[_0xd0504f(0xf9)]({'revision':_0x39d42e,'from':_0x1be173,'to':_0x155588});}}}[_0x5aeec7(0xf9)]({revision:_0x2be14e,from:_0x1f8ea5,to:_0x216603}={}){const _0x480cf9=_0x5aeec7,_0x3d2279=this[_0x480cf9(0xda)][_0x480cf9(0x9f)][_0x480cf9(0xbb)](_0x54578d),_0xd6643c=this[_0x480cf9(0xc6)][_0x480cf9(0x9b)]({'revision':_0x2be14e,'from':_0x1f8ea5,'to':_0x216603});_0xd6643c[_0x480cf9(0xe4)]=_0xd6643c[_0x480cf9(0x96)][_0x480cf9(0xae)](_0x526cf5=>_0x3d2279[_0x480cf9(0x94)](_0x526cf5)),_0x2be14e[_0x480cf9(0xe6)](_0xd6643c);}[_0x5aeec7(0xac)](_0x258f6f){const _0x4b0e8e=_0x5aeec7,_0x3a2aa3={};_0x3a2aa3['id']=_0x258f6f['id'];for(const _0x1b3c66 of Object[_0x4b0e8e(0xef)](_0x258f6f))'id'!==_0x1b3c66&&(_0x3a2aa3[_0x1b3c66]=void 0x0);this[_0x4b0e8e(0xc6)][_0x4b0e8e(0xd4)](_0x3a2aa3['id'],_0x3a2aa3,!0x0);}async[_0x5aeec7(0xbd)](_0x3430b9){const _0xfcb19b=_0x5aeec7,_0x3388bd=this[_0xfcb19b(0xda)][_0xfcb19b(0x9f)][_0xfcb19b(0xbb)](_0x54578d),{connection:_0x35fc51}=this[_0xfcb19b(0xda)][_0xfcb19b(0x9f)][_0xfcb19b(0xbb)](_0x4c4cf3),_0x2b1500=new Set();for(const _0xb035a2 of _0x3430b9){for(const _0x3d1682 of _0xb035a2[_0xfcb19b(0x96)])_0x19197c(_0x3d1682);_0xb035a2[_0xfcb19b(0xb0)]&&_0x19197c(_0xb035a2[_0xfcb19b(0xb0)]);}if(0x0===_0x2b1500[_0xfcb19b(0xdf)])return;const _0x598f91=await _0x75386a[_0xfcb19b(0xe8)](_0x35fc51,Array[_0xfcb19b(0x93)](_0x2b1500));for(const _0x2ffcc6 of _0x598f91)_0x3388bd[_0xfcb19b(0x94)](_0x2ffcc6['id'])||_0x3388bd[_0xfcb19b(0xea)](_0x2ffcc6);function _0x19197c(_0xb6f2cb){const _0x2314be=_0xfcb19b;_0x3388bd[_0x2314be(0x94)](_0xb6f2cb)||_0x2b1500[_0x2314be(0xfd)](_0xb6f2cb);}}}export{c as CloudServicesRevisionHistoryAdapter};function it(_0x5f59d4){const _0x2ad527=_0x5aeec7;return _0x5f59d4[_0x2ad527(0xdc)][_0x2ad527(0xd0)](_0x2ad527(0xab))||_0x5f59d4[_0x2ad527(0xdc)][_0x2ad527(0xd0)](_0x2ad527(0x97))||_0x5f59d4[_0x2ad527(0xdc)][_0x2ad527(0xd0)](_0x2ad527(0xcb));}
23
+ const _0x229557=_0x4799;(function(_0x2ecc49,_0x2791a9){const _0x4c183a=_0x4799,_0x307ff7=_0x2ecc49();while(!![]){try{const _0xb6d5c6=-parseInt(_0x4c183a(0x18b))/0x1*(parseInt(_0x4c183a(0x18f))/0x2)+parseInt(_0x4c183a(0x141))/0x3*(parseInt(_0x4c183a(0x174))/0x4)+-parseInt(_0x4c183a(0x132))/0x5+-parseInt(_0x4c183a(0x12d))/0x6*(parseInt(_0x4c183a(0x122))/0x7)+parseInt(_0x4c183a(0x170))/0x8+-parseInt(_0x4c183a(0x166))/0x9+parseInt(_0x4c183a(0x126))/0xa;if(_0xb6d5c6===_0x2791a9)break;else _0x307ff7['push'](_0x307ff7['shift']());}catch(_0x3fd0b4){_0x307ff7['push'](_0x307ff7['shift']());}}}(_0x371b,0x293b7));import{Plugin as _0x34e3ff}from'ckeditor5/src/core.js';function _0x4799(_0xb10541,_0x5b0657){const _0x371b8b=_0x371b();return _0x4799=function(_0x479937,_0x1f5f8f){_0x479937=_0x479937-0x11f;let _0x21585a=_0x371b8b[_0x479937];return _0x21585a;},_0x4799(_0xb10541,_0x5b0657);}import{version as _0x494685}from'ckeditor5/src/utils.js';import{Users as _0x1572e6}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x49f82d}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x3ba156}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x1f7a71}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x3196fa,RevisionHistoryService as _0x21d66b,User as _0x3f4fad,WEB_SOCKET_GATEWAY_STATES as _0x51622d}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class c extends _0x34e3ff{static [_0x229557(0x14b)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x21d66b)());[_0x229557(0x16f)];[_0x229557(0x168)];[_0x229557(0x12a)];[_0x229557(0x175)];static get[_0x229557(0x177)](){const _0x1c4400=_0x229557;return[_0x3ba156,_0x49f82d,_0x1c4400(0x13f),_0x1f7a71,_0x1572e6];}static get[_0x229557(0x14f)](){const _0x44f29a=_0x229557;return _0x44f29a(0x12e);}static get[_0x229557(0x167)](){return!0x0;}static get[_0x229557(0x18a)](){return!0x0;}constructor(_0x1d17ea){const _0x279cb9=_0x229557;super(_0x1d17ea);const _0x5ed839=this[_0x279cb9(0x184)][_0x279cb9(0x134)][_0x279cb9(0x14c)](_0x279cb9(0x152));this[_0x279cb9(0x16f)]=null,this[_0x279cb9(0x168)]=this[_0x279cb9(0x184)][_0x279cb9(0x147)][_0x279cb9(0x14c)](_0x279cb9(0x155)),this[_0x279cb9(0x12a)]=new c[(_0x279cb9(0x14b))](_0x5ed839);}async[_0x229557(0x181)](){const _0x5df2fc=_0x229557,_0x1dd356=this[_0x5df2fc(0x184)][_0x5df2fc(0x147)][_0x5df2fc(0x14c)](_0x49f82d),_0x5f3930=_0x1dd356[_0x5df2fc(0x189)],_0x3e85bc=this[_0x5df2fc(0x184)][_0x5df2fc(0x147)][_0x5df2fc(0x14c)](_0x3ba156);this[_0x5df2fc(0x168)][_0x5df2fc(0x131)]({'history':_0x5f3930,'getLatestVersion':()=>this[_0x5df2fc(0x183)](),'getCurrentRevisionId':()=>_0x1dd356[_0x5df2fc(0x180)]});const _0xce8b37=this[_0x5df2fc(0x184)][_0x5df2fc(0x134)][_0x5df2fc(0x14c)](_0x5df2fc(0x16b))||_0x494685,_0x5a4b62=await _0x3196fa[_0x5df2fc(0x120)](_0x3e85bc[_0x5df2fc(0x18e)],_0xce8b37);this[_0x5df2fc(0x184)][_0x5df2fc(0x147)][_0x5df2fc(0x14c)](_0x5df2fc(0x13f))[_0x5df2fc(0x145)]={'getRevision':async({revisionId:_0x46c282})=>(await this[_0x5df2fc(0x139)](),await this[_0x5df2fc(0x12a)][_0x5df2fc(0x14d)](_0x46c282)),'updateRevisions':async _0x3f3ae7=>{const _0xfadfb5=_0x5df2fc;await this[_0xfadfb5(0x139)]();const _0x1f6e9b=this[_0xfadfb5(0x168)][_0xfadfb5(0x16c)];if(_0x5a4b62&&0x1===_0x3f3ae7[_0xfadfb5(0x185)]&&_0x3f3ae7[0x0]['id']===_0x1f6e9b['id'])return _0x3f3ae7;for(const _0x3626c4 of _0x3f3ae7)_0x3626c4['id']===_0x1f6e9b['id']&&(_0x3626c4[_0xfadfb5(0x137)]=_0x3626c4[_0xfadfb5(0x178)]===_0x3626c4[_0xfadfb5(0x11f)]);return this[_0xfadfb5(0x12a)][_0xfadfb5(0x163)](_0x3f3ae7,this[_0xfadfb5(0x16f)])[_0xfadfb5(0x12c)](_0x1399b9=>(this[_0xfadfb5(0x16f)]=_0x1399b9,_0x3f3ae7))[_0xfadfb5(0x16a)](_0x597af7=>{const _0x11c3a7=_0xfadfb5;if(M(_0x597af7)||_0x11c3a7(0x13d)===_0x597af7[_0x11c3a7(0x15b)]&&void 0x0!==_0x597af7[_0x11c3a7(0x128)][_0x11c3a7(0x191)]){for(const _0x39a0d9 of _0x3f3ae7){!this[_0x11c3a7(0x168)][_0x11c3a7(0x164)][_0x11c3a7(0x14d)](_0x39a0d9['id'])||this[_0x11c3a7(0x168)][_0x11c3a7(0x133)](_0x39a0d9['id'],_0x39a0d9,!0x1);}if(M(_0x597af7))throw _0x597af7;return _0x3f3ae7;}throw _0x597af7;});}},this[_0x5df2fc(0x124)](this[_0x5df2fc(0x12a)],_0x5df2fc(0x15e),(_0x47f833,{revisionsData:_0xf4f459,requestId:_0x250449})=>{const _0xccba28=_0x5df2fc;Math[_0xccba28(0x15d)](..._0xf4f459[_0xccba28(0x192)](_0x3230d5=>_0x3230d5[_0xccba28(0x11f)]))>this[_0xccba28(0x12b)]()-0x1?this[_0xccba28(0x183)]()[_0xccba28(0x12c)](()=>{const _0x208101=_0xccba28;this[_0x208101(0x143)](_0xf4f459,_0x250449);}):this[_0xccba28(0x143)](_0xf4f459,_0x250449);});const {revisions:_0x2d6450,requestId:_0x5c07cd}=await this[_0x5df2fc(0x12a)][_0x5df2fc(0x17d)](_0x3e85bc[_0x5df2fc(0x18e)]);_0x3e85bc[_0x5df2fc(0x127)](this),this[_0x5df2fc(0x16f)]=_0x5c07cd,await this[_0x5df2fc(0x121)](_0x2d6450);for(const _0x2423b8 of _0x2d6450)this[_0x5df2fc(0x168)][_0x5df2fc(0x18c)](_0x2423b8);this[_0x5df2fc(0x124)](_0x1dd356,_0x5df2fc(0x138),(_0x28c032,_0x3a67a5,_0x308f91)=>{const _0x32b56c=_0x5df2fc;_0x308f91&&(this[_0x32b56c(0x175)]=_0x1dd356[_0x32b56c(0x158)],_0x28c032[_0x32b56c(0x15c)]());}),this[_0x5df2fc(0x168)][_0x5df2fc(0x17c)](_0x5df2fc(0x161))['to'](_0x3e85bc,_0x5df2fc(0x149),_0x1e983a=>_0x1e983a===_0x51622d[_0x5df2fc(0x159)]);}async[_0x229557(0x125)](){const _0x5960f5=_0x229557,_0x1dcc0e=this[_0x5960f5(0x184)][_0x5960f5(0x147)][_0x5960f5(0x14c)](_0x3ba156),_0x991512=this[_0x5960f5(0x184)][_0x5960f5(0x147)][_0x5960f5(0x14c)](_0x49f82d),_0x232c4c=async()=>{const _0x164e23=_0x5960f5,_0x48a038=this[_0x164e23(0x168)][_0x164e23(0x16c)],_0x31ac8b=_0x48a038['id'],_0x1e4259=_0x31ac8b!==_0x991512[_0x164e23(0x180)];if(_0x1e4259){const _0x5f4f5e=_0x991512[_0x164e23(0x158)]-this[_0x164e23(0x175)],_0x5c235c=this[_0x164e23(0x12b)]();this[_0x164e23(0x168)][_0x164e23(0x14e)][_0x164e23(0x188)]();if(_0x48a038[_0x164e23(0x11f)]+_0x5f4f5e!==_0x5c235c){const _0x45b983=_0x48a038[_0x164e23(0x178)]+_0x5f4f5e,_0x20257a=this[_0x164e23(0x184)][_0x164e23(0x147)][_0x164e23(0x14c)](_0x1572e6),_0x4e6499=this[_0x164e23(0x168)][_0x164e23(0x182)]({'revision':_0x48a038,'from':_0x45b983,'to':_0x5c235c});_0x4e6499['id']=_0x48a038['id'];const _0x50411c=_0x4e6499[_0x164e23(0x14a)][_0x164e23(0x192)](_0x3c8a4f=>_0x20257a[_0x164e23(0x129)](_0x3c8a4f));_0x48a038[_0x164e23(0x160)]({..._0x4e6499,'authors':_0x50411c},!0x0),this[_0x164e23(0x168)][_0x164e23(0x133)](_0x48a038['id'],_0x4e6499,!0x0);}this[_0x164e23(0x168)][_0x164e23(0x17f)]=_0x5c235c,(_0x48a038[_0x164e23(0x11f)]===_0x48a038[_0x164e23(0x178)]&&!this[_0x164e23(0x168)][_0x164e23(0x151)][_0x164e23(0x169)](_0x31ac8b)&&this[_0x164e23(0x168)][_0x164e23(0x164)][_0x164e23(0x172)][_0x164e23(0x135)](_0x31ac8b),this[_0x164e23(0x168)][_0x164e23(0x13c)](_0x5c235c));}const {revisions:_0x164d92,requestId:_0x2cbec0}=await this[_0x164e23(0x12a)][_0x164e23(0x125)](_0x1dcc0e[_0x164e23(0x18e)],this[_0x164e23(0x16f)]);_0x1e4259&&_0x164d92[_0x164e23(0x185)]>0x0?_0x991512[_0x164e23(0x190)]():(await this[_0x164e23(0x121)](_0x164d92),this[_0x164e23(0x143)](_0x164d92,_0x2cbec0),this[_0x164e23(0x168)][_0x164e23(0x146)]());};return _0x991512[_0x5960f5(0x165)]?_0x232c4c():new Promise((_0x5bcfd8,_0x1dac7f)=>{const _0x4ae009=_0x5960f5;_0x991512[_0x4ae009(0x187)](_0x4ae009(0x138),()=>{const _0x5d877c=_0x4ae009;_0x232c4c()[_0x5d877c(0x12c)](_0x5bcfd8)[_0x5d877c(0x16a)](_0x1dac7f);});});}[_0x229557(0x162)](){const _0x35c2f2=_0x229557;super[_0x35c2f2(0x162)]();}async[_0x229557(0x139)](){const _0xff709b=_0x229557;this[_0xff709b(0x12a)][_0xff709b(0x173)]||await new Promise(_0x1cf526=>{const _0x446b01=_0xff709b;this[_0x446b01(0x124)](this[_0x446b01(0x12a)],_0x446b01(0x142),_0x1bf424=>{const _0xd2a7c0=_0x446b01;_0x1bf424[_0xd2a7c0(0x15c)](),_0x1cf526();});});}[_0x229557(0x12b)](){const _0x2b78ec=_0x229557,_0x3ea99a=this[_0x2b78ec(0x184)][_0x2b78ec(0x147)][_0x2b78ec(0x14c)](_0x49f82d)[_0x2b78ec(0x189)][_0x2b78ec(0x154)]()[_0x2b78ec(0x157)]();for(const _0x3439b9 of _0x3ea99a)if(_0x2b78ec(0x140)!==_0x3439b9[_0x2b78ec(0x150)]||_0x3439b9[_0x2b78ec(0x15f)])return _0x3439b9[_0x2b78ec(0x186)]+0x1;}[_0x229557(0x183)](){const _0x2538e0=_0x229557,_0x4c4bdd=this[_0x2538e0(0x184)][_0x2538e0(0x147)][_0x2538e0(0x14c)](_0x49f82d);return new Promise(_0x48ec4f=>{const _0x5edb46=_0x2538e0;_0x4c4bdd[_0x5edb46(0x18d)]?_0x4c4bdd[_0x5edb46(0x187)](_0x5edb46(0x130),()=>{const _0x2c9a01=_0x5edb46;_0x48ec4f(this[_0x2c9a01(0x12b)]());}):_0x48ec4f(this[_0x5edb46(0x12b)]());});}[_0x229557(0x143)](_0x1587b1,_0x1a10a6){const _0x773847=_0x229557,_0x2f1356=this[_0x773847(0x168)][_0x773847(0x164)];this[_0x773847(0x16f)]=_0x1a10a6;for(const _0x57f98e of _0x1587b1){const _0x4d65e1=_0x2f1356[_0x773847(0x14d)](_0x57f98e['id']);if(_0x4d65e1){if((_0x57f98e[_0x773847(0x178)]||_0x57f98e[_0x773847(0x11f)])&&(_0x57f98e[_0x773847(0x123)]=null),_0x4d65e1===this[_0x773847(0x168)][_0x773847(0x16c)]){const _0x5c2976=Math[_0x773847(0x15d)](_0x4d65e1[_0x773847(0x11f)],_0x57f98e[_0x773847(0x11f)]),_0x473bd5=Math[_0x773847(0x15d)](_0x4d65e1[_0x773847(0x178)],_0x57f98e[_0x773847(0x178)]);let _0x27c09c;_0x4d65e1[_0x773847(0x11f)]===_0x57f98e[_0x773847(0x11f)]&&_0x4d65e1[_0x773847(0x178)]===_0x57f98e[_0x773847(0x178)]?(_0x27c09c=!0x0,this[_0x773847(0x136)](_0x57f98e)):_0x57f98e[_0x773847(0x11f)]===_0x5c2976&&_0x57f98e[_0x773847(0x178)]===_0x473bd5?_0x27c09c=!0x1:(_0x4d65e1[_0x773847(0x11f)]===_0x5c2976&&_0x4d65e1[_0x773847(0x178)]===_0x473bd5||this[_0x773847(0x13e)]({'revision':_0x4d65e1,'from':_0x473bd5,'to':_0x5c2976}),_0x27c09c=!0x0),_0x27c09c&&(delete _0x57f98e[_0x773847(0x178)],delete _0x57f98e[_0x773847(0x11f)],delete _0x57f98e[_0x773847(0x123)],delete _0x57f98e[_0x773847(0x12f)],delete _0x57f98e[_0x773847(0x14a)]);}this[_0x773847(0x168)][_0x773847(0x17a)](_0x57f98e),this[_0x773847(0x136)](_0x57f98e);}else this[_0x773847(0x168)][_0x773847(0x18c)](_0x57f98e);}const _0x61f603=_0x2f1356[_0x773847(0x176)]();_0x61f603[_0x773847(0x157)]();for(let _0x12d613=0x0;_0x12d613<_0x61f603[_0x773847(0x185)]-0x1;_0x12d613++){const _0x4973a7=_0x61f603[_0x12d613],_0x35fc54=_0x61f603[_0x12d613+0x1];if(_0x4973a7[_0x773847(0x178)]<_0x35fc54[_0x773847(0x11f)]){const _0x5f19b4=_0x35fc54[_0x773847(0x11f)],_0x10c04b=Math[_0x773847(0x15d)](_0x5f19b4,_0x4973a7[_0x773847(0x11f)]);this[_0x773847(0x13e)]({'revision':_0x4973a7,'from':_0x5f19b4,'to':_0x10c04b});}}}[_0x229557(0x13e)]({revision:_0xf8a238,from:_0x3b51b4,to:_0x3b98c2}={}){const _0x580aa9=_0x229557,_0x3655a2=this[_0x580aa9(0x184)][_0x580aa9(0x147)][_0x580aa9(0x14c)](_0x1572e6),_0x4fbb54=this[_0x580aa9(0x168)][_0x580aa9(0x182)]({'revision':_0xf8a238,'from':_0x3b51b4,'to':_0x3b98c2});_0x4fbb54[_0x580aa9(0x13a)]=_0x4fbb54[_0x580aa9(0x14a)][_0x580aa9(0x192)](_0x2a2cd9=>_0x3655a2[_0x580aa9(0x129)](_0x2a2cd9)),_0xf8a238[_0x580aa9(0x160)](_0x4fbb54);}[_0x229557(0x136)](_0x2f8ce7){const _0x12eddc=_0x229557,_0x3143c9={};_0x3143c9['id']=_0x2f8ce7['id'];for(const _0x581911 of Object[_0x12eddc(0x179)](_0x2f8ce7))'id'!==_0x581911&&(_0x3143c9[_0x581911]=void 0x0);this[_0x12eddc(0x168)][_0x12eddc(0x133)](_0x3143c9['id'],_0x3143c9,!0x0);}async[_0x229557(0x121)](_0x1f0a40){const _0x540c96=_0x229557,_0x5ec3ce=this[_0x540c96(0x184)][_0x540c96(0x147)][_0x540c96(0x14c)](_0x1572e6),{connection:_0x21816d}=this[_0x540c96(0x184)][_0x540c96(0x147)][_0x540c96(0x14c)](_0x3ba156),_0xfb9aa4=new Set();for(const _0x305365 of _0x1f0a40){for(const _0x52b4a7 of _0x305365[_0x540c96(0x14a)])_0x22da62(_0x52b4a7);_0x305365[_0x540c96(0x17e)]&&_0x22da62(_0x305365[_0x540c96(0x17e)]);}if(0x0===_0xfb9aa4[_0x540c96(0x148)])return;const _0x326d84=await _0x3f4fad[_0x540c96(0x13b)](_0x21816d,Array[_0x540c96(0x156)](_0xfb9aa4));for(const _0x51df66 of _0x326d84)_0x5ec3ce[_0x540c96(0x129)](_0x51df66['id'])||_0x5ec3ce[_0x540c96(0x144)](_0x51df66);function _0x22da62(_0x205339){const _0x5a0bcb=_0x540c96;_0x5ec3ce[_0x5a0bcb(0x129)](_0x205339)||_0xfb9aa4[_0x5a0bcb(0x17b)](_0x205339);}}}function _0x371b(){const _0x57dfc1=['_isPendingUpdate','connection','42Cxuaym','_handleReconnectionError','wrongRequestId','map','toVersion','isBundleUploaded','_fetchMissingUsers','110131wPFeDe','diffData','listenTo','reconnect','6969250UqJaRK','addToReconnectionStack','data','getUser','_revisionHistoryService','_getLatestVersionFromServerOperations','then','102PkOcWw','CloudServicesRevisionHistoryAdapter','createdAt','change:_isPendingUpdate','setSource','764875vriAyX','_bufferUpdate','config','remove','_preventResendingRevisionData','isEmptyCurrent','change:_isConnected','_waitForServiceReady','authors','getMany','_createCurrentRevision','400','_fixRevision','RevisionHistory','marker','84wCEWCy','connected','_handleRevisionsUpdate','addUser','adapter','sendBufferedUpdates','plugins','size','state','authorsIds','RevisionHistoryService','get','getRevision','_revisionDataBuilder','pluginName','type','_bufferedUpdates','collaboration.channelId','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','getOperations','RevisionTracker','from','reverse','_offset','CONNECTED','startsWith','code','off','max','revisionsUpdated','affectsData','_update','isEnabled','destroy','updateRevisions','repository','_isConnected','1265328PShqfH','isOfficialPlugin','_revisionTracker','has','catch','cloudServices.bundleVersion','currentRevision','cloud-services-internal-error:\x20Not\x20connected.','cloud-services-internal-error:\x20Request\x20timeout.','_lastRequestId','922984WalGvd','message','_revisions','isConnected','27900iAHyFT','_oldOffset','getRevisions','requires','fromVersion','keys','setRevisionData','add','bind','connect','creatorId','_startingVersion','sessionId','init','buildRevisionData','_getLatestVersion','editor','length','baseVersion','once','reInit','serverHistory','isPremiumPlugin','13223oVxasS','addRevisionData'];_0x371b=function(){return _0x57dfc1;};return _0x371b();}export{c as CloudServicesRevisionHistoryAdapter};function M(_0x3653f3){const _0x3f4b90=_0x229557;return _0x3653f3[_0x3f4b90(0x171)][_0x3f4b90(0x15a)](_0x3f4b90(0x153))||_0x3653f3[_0x3f4b90(0x171)][_0x3f4b90(0x15a)](_0x3f4b90(0x16d))||_0x3653f3[_0x3f4b90(0x171)][_0x3f4b90(0x15a)](_0x3f4b90(0x16e));}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x598608=_0x1fcc;(function(_0x564e1a,_0x501014){const _0x3cb4fe=_0x1fcc,_0x210011=_0x564e1a();while(!![]){try{const _0x49128b=parseInt(_0x3cb4fe(0xb8))/0x1+-parseInt(_0x3cb4fe(0x94))/0x2*(parseInt(_0x3cb4fe(0xa3))/0x3)+-parseInt(_0x3cb4fe(0x95))/0x4+-parseInt(_0x3cb4fe(0xb6))/0x5+parseInt(_0x3cb4fe(0xb7))/0x6+-parseInt(_0x3cb4fe(0xcd))/0x7*(parseInt(_0x3cb4fe(0xbb))/0x8)+parseInt(_0x3cb4fe(0xc8))/0x9*(parseInt(_0x3cb4fe(0xa9))/0xa);if(_0x49128b===_0x501014)break;else _0x210011['push'](_0x210011['shift']());}catch(_0x474afd){_0x210011['push'](_0x210011['shift']());}}}(_0x5968,0x66eb5));import{Plugin as _0x15147d}from'ckeditor5/src/core.js';function _0x5968(){const _0xc71001=['754456jYqiJf','collaboration.channelId','_bufferedRequests','find','type','values','size','addToReconnectionStack','pluginName','_fetchMissingUsersForThreads','update','message','CloudServicesTrackChangesAdapter','9yhEabF','cloud-services-internal-error:\x20Not\x20connected.','state','off','then','35QfGffw','requires','addUser','from','_saved','plugins','originalSuggestionId','2756GteCKc','2894596LlbEqZ','open','isOfficialPlugin','get','addSuggestionData','connected','connect','TrackChangesEditing','getSuggestion','getUser','_trackChangesService','getMany','reconnect','startsWith','393WhsjxD','editor','isConnected','set','isPremiumPlugin','TrackChangesService','8976770pLHphB','config','catch','suggestionUpdated','add','attributes','adapter','listenTo','cloud-services-internal-error:\x20Request\x20timeout.','_waitForServiceReady','init','connection','data','2183690UIbVtL','2987874gUSfIi','838341EYTptM','delete','hasSuggestion'];_0x5968=function(){return _0xc71001;};return _0x5968();}import{User as _0x1029aa,TrackChangesService as _0x4035b3}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';function _0x1fcc(_0x128b3c,_0x434514){const _0x596844=_0x5968();return _0x1fcc=function(_0x1fccaf,_0x60da95){_0x1fccaf=_0x1fccaf-0x91;let _0x574f47=_0x596844[_0x1fccaf];return _0x574f47;},_0x1fcc(_0x128b3c,_0x434514);}import{WebSocketGateway as _0x3a5f72}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0xbc9a38}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x5f34af}from'ckeditor5-collaboration/src/collaboration-core.js';class m extends _0x15147d{static [_0x598608(0xa8)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x4035b3)());[_0x598608(0xbd)];[_0x598608(0x9f)];static get[_0x598608(0xce)](){const _0x3cb339=_0x598608;return[_0xbc9a38,_0x3cb339(0x9c),_0x3a5f72];}static get[_0x598608(0xc3)](){const _0x3cf37e=_0x598608;return _0x3cf37e(0xc7);}static get[_0x598608(0x97)](){return!0x0;}static get[_0x598608(0xa7)](){return!0x0;}constructor(_0x5eb51a){const _0x1a41a2=_0x598608;super(_0x5eb51a);const _0x66c2b6=this[_0x1a41a2(0xa4)][_0x1a41a2(0xaa)][_0x1a41a2(0x98)](_0x1a41a2(0xbc));this[_0x1a41a2(0xbd)]=new Map(),this[_0x1a41a2(0x9f)]=new m[(_0x1a41a2(0xa8))](_0x66c2b6);}[_0x598608(0xb3)](){const _0x3912d3=_0x598608,_0x2819e7=this[_0x3912d3(0xa4)][_0x3912d3(0x92)][_0x3912d3(0x98)](_0x3a5f72),_0x51aeb2=this[_0x3912d3(0xa4)][_0x3912d3(0x92)][_0x3912d3(0x98)](_0x3912d3(0x9c));return _0x51aeb2[_0x3912d3(0xaf)]={'getSuggestion':async _0x2d29f8=>{const _0x45d15d=_0x3912d3;await this[_0x45d15d(0xb2)]();const _0xdbcd10=await this[_0x45d15d(0x9f)][_0x45d15d(0x98)](_0x2d29f8)[_0x45d15d(0xab)](A);return await this[_0x45d15d(0xc4)]([_0xdbcd10]),_0xdbcd10;},'addSuggestion':async({id:_0x4ea571,type:_0x956c55,data:_0x268f58,originalSuggestionId:_0x128baa,attributes:_0x15e53c})=>{const _0xe51bf5=_0x3912d3;await this[_0xe51bf5(0xb2)]();const _0x494664={'id':_0x4ea571,'type':_0x956c55,'data':_0x268f58,'originalSuggestionId':_0x128baa,'attributes':_0x15e53c},_0x3ada0e=await this[_0xe51bf5(0x9f)][_0xe51bf5(0xad)](_0x4ea571,_0x956c55,_0x268f58,_0x128baa,_0x15e53c)[_0xe51bf5(0xab)](_0x5d7019=>{if(it(_0x5d7019))return new Promise(_0x547ee8=>{const _0x430833=_0x1fcc;this[_0x430833(0xbd)][_0x430833(0xa6)](_0x4ea571,{'resolve':_0x547ee8,'suggestionData':_0x494664});});throw _0x5d7019;});return this[_0xe51bf5(0xbd)][_0xe51bf5(0xb9)](_0x4ea571),_0x3ada0e;},'updateSuggestion':async(_0x1862ae,_0x15bcf3)=>{const _0x33e3b7=_0x3912d3;if(await this[_0x33e3b7(0xb2)](),_0x33e3b7(0x96)!==_0x15bcf3[_0x33e3b7(0xca)])return this[_0x33e3b7(0x9f)][_0x33e3b7(0xc5)](_0x1862ae,_0x15bcf3)[_0x33e3b7(0xab)](A);}},this[_0x3912d3(0xb0)](this[_0x3912d3(0x9f)],_0x3912d3(0xac),(_0x1ca4b9,_0x3e4425)=>{const _0x4bf404=_0x3912d3;_0x51aeb2[_0x4bf404(0xba)](_0x3e4425['id'])&&(_0x51aeb2[_0x4bf404(0x9d)](_0x3e4425['id'])[_0x4bf404(0xae)]=_0x3e4425[_0x4bf404(0xae)]);}),this[_0x3912d3(0x9f)][_0x3912d3(0x9b)](_0x2819e7[_0x3912d3(0xb4)])[_0x3912d3(0xcc)](_0x1b8e13=>(_0x2819e7[_0x3912d3(0xc2)](this),this[_0x3912d3(0xc4)](_0x1b8e13)[_0x3912d3(0xcc)](()=>{const _0x3e5a4e=_0x3912d3;for(const _0x26cdac of _0x1b8e13){_0x51aeb2[_0x3e5a4e(0x99)](_0x26cdac)[_0x3e5a4e(0x91)]=!0x0;}})));}async[_0x598608(0xa1)](){const _0x38fb25=_0x598608,_0x3f07b7=this[_0x38fb25(0xa4)][_0x38fb25(0x92)][_0x38fb25(0x98)](_0x38fb25(0x9c)),{connection:_0x25fd87}=this[_0x38fb25(0xa4)][_0x38fb25(0x92)][_0x38fb25(0x98)](_0x3a5f72),_0x4b1ce2=await this[_0x38fb25(0x9f)][_0x38fb25(0x9b)](_0x25fd87);await this[_0x38fb25(0xc4)](_0x4b1ce2);for(const {suggestionData:_0x5f5ad0,resolve:_0x4520f7}of this[_0x38fb25(0xbd)][_0x38fb25(0xc0)]()){let _0x38d3c0=_0x4b1ce2[_0x38fb25(0xbe)](_0x6e9dae=>_0x6e9dae['id']===_0x5f5ad0['id']);_0x38d3c0||(_0x38d3c0=await this[_0x38fb25(0x9f)][_0x38fb25(0xad)](_0x5f5ad0['id'],_0x5f5ad0[_0x38fb25(0xbf)],_0x5f5ad0[_0x38fb25(0xb5)],_0x5f5ad0[_0x38fb25(0x93)])),_0x4520f7(_0x38d3c0);}for(const _0x1bc082 of _0x4b1ce2)_0x3f07b7[_0x38fb25(0xba)](_0x1bc082['id'])||_0x3f07b7[_0x38fb25(0x99)](_0x1bc082);}async[_0x598608(0xb2)](){const _0x59a3b9=_0x598608;this[_0x59a3b9(0x9f)][_0x59a3b9(0xa5)]||await new Promise(_0x23d8bc=>{const _0xb0436d=_0x59a3b9;this[_0xb0436d(0xb0)](this[_0xb0436d(0x9f)],_0xb0436d(0x9a),_0x116d15=>{const _0x14d605=_0xb0436d;_0x116d15[_0x14d605(0xcb)](),_0x23d8bc();});});}async[_0x598608(0xc4)](_0x446673){const _0x44504a=_0x598608,_0x5df0ef=this[_0x44504a(0xa4)][_0x44504a(0x92)][_0x44504a(0x98)](_0x5f34af),{connection:_0xf4ace1}=this[_0x44504a(0xa4)][_0x44504a(0x92)][_0x44504a(0x98)](_0x3a5f72),_0x2887d2=new Set();for(const {authorId:_0x2cc4aa}of _0x446673)_0x5df0ef[_0x44504a(0x9e)](_0x2cc4aa)||_0x2887d2[_0x44504a(0xad)](_0x2cc4aa);if(0x0===_0x2887d2[_0x44504a(0xc1)])return;const _0x2bf704=await _0x1029aa[_0x44504a(0xa0)](_0xf4ace1,Array[_0x44504a(0xd0)](_0x2887d2));for(const _0x3bc8ce of _0x2bf704)_0x5df0ef[_0x44504a(0x9e)](_0x3bc8ce['id'])||_0x5df0ef[_0x44504a(0xcf)](_0x3bc8ce);}}export{m as CloudServicesTrackChangesAdapter};function A(_0x45d322){if(it(_0x45d322))return new Promise(()=>{});throw _0x45d322;}function it(_0x3a6e66){const _0xda6e31=_0x598608;return _0x3a6e66[_0xda6e31(0xc6)][_0xda6e31(0xa2)](_0xda6e31(0xc9))||_0x3a6e66[_0xda6e31(0xc6)][_0xda6e31(0xa2)](_0xda6e31(0xb1));}
23
+ function _0x313b(){const _0x18b1d9=['editor','state','set','message','add','pluginName','data','requires','attributes','reconnect','open','isPremiumPlugin','150GJlDhg','CloudServicesTrackChangesAdapter','originalSuggestionId','TrackChangesEditing','init','12228rcXkEM','catch','then','29609866MfAhoB','find','isConnected','hasSuggestion','6UiMLZx','addToReconnectionStack','911574SfBAfI','getSuggestion','size','collaboration.channelId','adapter','listenTo','connection','isOfficialPlugin','connected','getUser','addUser','_fetchMissingUsersForThreads','7QWKSvN','off','config','_waitForServiceReady','connect','values','_bufferedRequests','TrackChangesService','delete','833575carekT','_trackChangesService','addSuggestionData','plugins','suggestionUpdated','cloud-services-internal-error:\x20Request\x20timeout.','type','cloud-services-internal-error:\x20Not\x20connected.','from','809272OaAPla','_saved','351171CxvYSh','248097MjLTvO','get','getMany','744CYnAhd','update','startsWith'];_0x313b=function(){return _0x18b1d9;};return _0x313b();}const _0x2d5c5d=_0x2255;(function(_0xc75ad1,_0x511dd1){const _0xd235af=_0x2255,_0x1f0942=_0xc75ad1();while(!![]){try{const _0x1e468d=parseInt(_0xd235af(0x1b5))/0x1*(-parseInt(_0xd235af(0x1d3))/0x2)+-parseInt(_0xd235af(0x1cc))/0x3*(parseInt(_0xd235af(0x1b8))/0x4)+parseInt(_0xd235af(0x1a9))/0x5+-parseInt(_0xd235af(0x1d5))/0x6+-parseInt(_0xd235af(0x1a0))/0x7*(parseInt(_0xd235af(0x1b2))/0x8)+parseInt(_0xd235af(0x1b4))/0x9*(-parseInt(_0xd235af(0x1c7))/0xa)+parseInt(_0xd235af(0x1cf))/0xb;if(_0x1e468d===_0x511dd1)break;else _0x1f0942['push'](_0x1f0942['shift']());}catch(_0x549b2f){_0x1f0942['push'](_0x1f0942['shift']());}}}(_0x313b,0x7e659));function _0x2255(_0x2c3249,_0x1fc619){const _0x313b3e=_0x313b();return _0x2255=function(_0x225591,_0x2ccb7a){_0x225591=_0x225591-0x19b;let _0xdf8214=_0x313b3e[_0x225591];return _0xdf8214;},_0x2255(_0x2c3249,_0x1fc619);}import{Plugin as _0x56d77d}from'ckeditor5/src/core.js';import{User as _0xc93293,TrackChangesService as _0x1c6294}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x563e06}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x158c9e}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x39a25a}from'ckeditor5-collaboration/src/collaboration-core.js';class m extends _0x56d77d{static [_0x2d5c5d(0x1a7)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x1c6294)());[_0x2d5c5d(0x1a6)];[_0x2d5c5d(0x1aa)];static get[_0x2d5c5d(0x1c2)](){const _0x311c3d=_0x2d5c5d;return[_0x158c9e,_0x311c3d(0x1ca),_0x563e06];}static get[_0x2d5c5d(0x1c0)](){const _0x17f8ae=_0x2d5c5d;return _0x17f8ae(0x1c8);}static get[_0x2d5c5d(0x19b)](){return!0x0;}static get[_0x2d5c5d(0x1c6)](){return!0x0;}constructor(_0x5a609a){const _0x433d06=_0x2d5c5d;super(_0x5a609a);const _0xab68c1=this[_0x433d06(0x1bb)][_0x433d06(0x1a2)][_0x433d06(0x1b6)](_0x433d06(0x1d8));this[_0x433d06(0x1a6)]=new Map(),this[_0x433d06(0x1aa)]=new m[(_0x433d06(0x1a7))](_0xab68c1);}[_0x2d5c5d(0x1cb)](){const _0x135f36=_0x2d5c5d,_0xdb8bc5=this[_0x135f36(0x1bb)][_0x135f36(0x1ac)][_0x135f36(0x1b6)](_0x563e06),_0x5b86be=this[_0x135f36(0x1bb)][_0x135f36(0x1ac)][_0x135f36(0x1b6)](_0x135f36(0x1ca));return _0x5b86be[_0x135f36(0x1d9)]={'getSuggestion':async _0x435b80=>{const _0x527a4b=_0x135f36;await this[_0x527a4b(0x1a3)]();const _0x18b32b=await this[_0x527a4b(0x1aa)][_0x527a4b(0x1b6)](_0x435b80)[_0x527a4b(0x1cd)](A);return await this[_0x527a4b(0x19f)]([_0x18b32b]),_0x18b32b;},'addSuggestion':async({id:_0x4f4e4d,type:_0x406cdf,data:_0x21a6e6,originalSuggestionId:_0x2a3499,attributes:_0xa85048})=>{const _0x169284=_0x135f36;await this[_0x169284(0x1a3)]();const _0x32ac37={'id':_0x4f4e4d,'type':_0x406cdf,'data':_0x21a6e6,'originalSuggestionId':_0x2a3499,'attributes':_0xa85048},_0x89d547=await this[_0x169284(0x1aa)][_0x169284(0x1bf)](_0x4f4e4d,_0x406cdf,_0x21a6e6,_0x2a3499,_0xa85048)[_0x169284(0x1cd)](_0x44cb14=>{if(M(_0x44cb14))return new Promise(_0x540a3d=>{const _0x56131a=_0x2255;this[_0x56131a(0x1a6)][_0x56131a(0x1bd)](_0x4f4e4d,{'resolve':_0x540a3d,'suggestionData':_0x32ac37});});throw _0x44cb14;});return this[_0x169284(0x1a6)][_0x169284(0x1a8)](_0x4f4e4d),_0x89d547;},'updateSuggestion':async(_0x4685ba,_0xcb4e79)=>{const _0x1c9d79=_0x135f36;if(await this[_0x1c9d79(0x1a3)](),_0x1c9d79(0x1c5)!==_0xcb4e79[_0x1c9d79(0x1bc)])return this[_0x1c9d79(0x1aa)][_0x1c9d79(0x1b9)](_0x4685ba,_0xcb4e79)[_0x1c9d79(0x1cd)](A);}},this[_0x135f36(0x1da)](this[_0x135f36(0x1aa)],_0x135f36(0x1ad),(_0x153db7,_0xb53318)=>{const _0x5bdedf=_0x135f36;_0x5b86be[_0x5bdedf(0x1d2)](_0xb53318['id'])&&(_0x5b86be[_0x5bdedf(0x1d6)](_0xb53318['id'])[_0x5bdedf(0x1c3)]=_0xb53318[_0x5bdedf(0x1c3)]);}),this[_0x135f36(0x1aa)][_0x135f36(0x1a4)](_0xdb8bc5[_0x135f36(0x1db)])[_0x135f36(0x1ce)](_0x49b448=>(_0xdb8bc5[_0x135f36(0x1d4)](this),this[_0x135f36(0x19f)](_0x49b448)[_0x135f36(0x1ce)](()=>{const _0x134ea7=_0x135f36;for(const _0x4b7298 of _0x49b448){_0x5b86be[_0x134ea7(0x1ab)](_0x4b7298)[_0x134ea7(0x1b3)]=!0x0;}})));}async[_0x2d5c5d(0x1c4)](){const _0xef8b0e=_0x2d5c5d,_0x1bd921=this[_0xef8b0e(0x1bb)][_0xef8b0e(0x1ac)][_0xef8b0e(0x1b6)](_0xef8b0e(0x1ca)),{connection:_0x337c71}=this[_0xef8b0e(0x1bb)][_0xef8b0e(0x1ac)][_0xef8b0e(0x1b6)](_0x563e06),_0x1def87=await this[_0xef8b0e(0x1aa)][_0xef8b0e(0x1a4)](_0x337c71);await this[_0xef8b0e(0x19f)](_0x1def87);for(const {suggestionData:_0x1f2d79,resolve:_0x409fdf}of this[_0xef8b0e(0x1a6)][_0xef8b0e(0x1a5)]()){let _0x564436=_0x1def87[_0xef8b0e(0x1d0)](_0x17bf1a=>_0x17bf1a['id']===_0x1f2d79['id']);_0x564436||(_0x564436=await this[_0xef8b0e(0x1aa)][_0xef8b0e(0x1bf)](_0x1f2d79['id'],_0x1f2d79[_0xef8b0e(0x1af)],_0x1f2d79[_0xef8b0e(0x1c1)],_0x1f2d79[_0xef8b0e(0x1c9)])),_0x409fdf(_0x564436);}for(const _0x5ab029 of _0x1def87)_0x1bd921[_0xef8b0e(0x1d2)](_0x5ab029['id'])||_0x1bd921[_0xef8b0e(0x1ab)](_0x5ab029);}async[_0x2d5c5d(0x1a3)](){const _0x31cbfe=_0x2d5c5d;this[_0x31cbfe(0x1aa)][_0x31cbfe(0x1d1)]||await new Promise(_0x2948b1=>{const _0x298548=_0x31cbfe;this[_0x298548(0x1da)](this[_0x298548(0x1aa)],_0x298548(0x19c),_0x413aa9=>{const _0x42999d=_0x298548;_0x413aa9[_0x42999d(0x1a1)](),_0x2948b1();});});}async[_0x2d5c5d(0x19f)](_0xef3e78){const _0x5d665d=_0x2d5c5d,_0x223718=this[_0x5d665d(0x1bb)][_0x5d665d(0x1ac)][_0x5d665d(0x1b6)](_0x39a25a),{connection:_0x1c6b05}=this[_0x5d665d(0x1bb)][_0x5d665d(0x1ac)][_0x5d665d(0x1b6)](_0x563e06),_0xa5930b=new Set();for(const {authorId:_0x18dec6}of _0xef3e78)_0x223718[_0x5d665d(0x19d)](_0x18dec6)||_0xa5930b[_0x5d665d(0x1bf)](_0x18dec6);if(0x0===_0xa5930b[_0x5d665d(0x1d7)])return;const _0xeb78ac=await _0xc93293[_0x5d665d(0x1b7)](_0x1c6b05,Array[_0x5d665d(0x1b1)](_0xa5930b));for(const _0x4c590e of _0xeb78ac)_0x223718[_0x5d665d(0x19d)](_0x4c590e['id'])||_0x223718[_0x5d665d(0x19e)](_0x4c590e);}}export{m as CloudServicesTrackChangesAdapter};function A(_0x437577){if(M(_0x437577))return new Promise(()=>{});throw _0x437577;}function M(_0x391a3c){const _0x2fa9de=_0x2d5c5d;return _0x391a3c[_0x2fa9de(0x1be)][_0x2fa9de(0x1ba)](_0x2fa9de(0x1b0))||_0x391a3c[_0x2fa9de(0x1be)][_0x2fa9de(0x1ba)](_0x2fa9de(0x1ae));}