@ckeditor/ckeditor5-operations-compressor 45.2.1-alpha.9 → 46.0.0-alpha.0

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.
Files changed (32) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +4 -4
  3. package/src/actioncompressor/actioncompressor.d.ts +2 -2
  4. package/src/actioncompressor/actioncompressor.js +1 -1
  5. package/src/actioncompressor/deletingactioncompressor.d.ts +2 -2
  6. package/src/actioncompressor/deletingactioncompressor.js +1 -1
  7. package/src/actioncompressor/forwarddeletingactioncompressor.d.ts +2 -2
  8. package/src/actioncompressor/forwarddeletingactioncompressor.js +1 -1
  9. package/src/actioncompressor/typingactioncompressor.d.ts +2 -2
  10. package/src/actioncompressor/typingactioncompressor.js +1 -1
  11. package/src/actioncompressor/userselectionactioncompressor.d.ts +2 -2
  12. package/src/actioncompressor/userselectionactioncompressor.js +1 -1
  13. package/src/compressor.d.ts +1 -1
  14. package/src/compressor.js +1 -1
  15. package/src/index.d.ts +1 -1
  16. package/src/index.js +1 -1
  17. package/src/lib/compiledmessages.js +2 -2
  18. package/src/lib/protobufdescriptions.js +1 -1
  19. package/src/operationcompressor/annotationmarkeroperationcompressor.d.ts +2 -2
  20. package/src/operationcompressor/annotationmarkeroperationcompressor.js +1 -1
  21. package/src/operationcompressor/attributeoperationcompressor.d.ts +2 -2
  22. package/src/operationcompressor/attributeoperationcompressor.js +1 -1
  23. package/src/operationcompressor/insertoperationcompressor.d.ts +2 -2
  24. package/src/operationcompressor/insertoperationcompressor.js +1 -1
  25. package/src/operationcompressor/markeroperationcompressor.d.ts +2 -2
  26. package/src/operationcompressor/markeroperationcompressor.js +1 -1
  27. package/src/operationcompressor/nooperationcompressor.d.ts +2 -2
  28. package/src/operationcompressor/nooperationcompressor.js +1 -1
  29. package/src/operationcompressor/operationcompressor.d.ts +1 -1
  30. package/src/operationcompressor/operationcompressor.js +1 -1
  31. package/src/protobuffactory.js +1 -1
  32. package/src/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x38a3(){const _0x430c25=['56224tinjAF','keys','2imBPEN','buffers','_id','552021GONiny','push','every','213730zidEib','attributesJson','attributesBoolean','_deserializeNodesAttributes','15EejtzR','132xVgOek','6ILroPT','attributes','shift','981TrIeTR','1880650QXgoWs','compress','166699xFuQcM','children','_operationName','decompress','14264VWjmJl','__className','types','boolean','stringify','parse','_areValuesBoolean','30836LrCoPM','_protobufDescriptor','_serializeNodesAttributes','nodes'];_0x38a3=function(){return _0x430c25;};return _0x38a3();}const _0x7f7fce=_0xde52;(function(_0x58b9b4,_0x36be0d){const _0x1b9071=_0xde52,_0x4324bc=_0x58b9b4();while(!![]){try{const _0x2c15de=parseInt(_0x1b9071(0xf1))/0x1+parseInt(_0x1b9071(0xdf))/0x2*(parseInt(_0x1b9071(0xe2))/0x3)+parseInt(_0x1b9071(0xd9))/0x4*(-parseInt(_0x1b9071(0xe9))/0x5)+parseInt(_0x1b9071(0xeb))/0x6*(parseInt(_0x1b9071(0xdd))/0x7)+-parseInt(_0x1b9071(0xf5))/0x8*(parseInt(_0x1b9071(0xee))/0x9)+-parseInt(_0x1b9071(0xef))/0xa+-parseInt(_0x1b9071(0xe5))/0xb*(-parseInt(_0x1b9071(0xea))/0xc);if(_0x2c15de===_0x36be0d)break;else _0x4324bc['push'](_0x4324bc['shift']());}catch(_0x18fb89){_0x4324bc['push'](_0x4324bc['shift']());}}}(_0x38a3,0x28c11));import _0x1f221f from'./operationcompressor.js';function _0xde52(_0x4b73bf,_0x48e7ce){const _0x38a31f=_0x38a3();return _0xde52=function(_0xde52b,_0x4ff90c){_0xde52b=_0xde52b-0xd6;let _0x482523=_0x38a31f[_0xde52b];return _0x482523;},_0xde52(_0x4b73bf,_0x48e7ce);}import{parsePositionBeforeCompression as _0x4002cf,parsePositionAfterCompression as _0x9d7535}from'../utils.js';export default class i extends _0x1f221f{[_0x7f7fce(0xf0)](_0x54c56b,_0x564e75){const _0x3fa1c4=_0x7f7fce,_0x10fc11=_0x564e75[_0x3fa1c4(0xed)]();return this[_0x3fa1c4(0xdb)](_0x10fc11[_0x3fa1c4(0xdc)]),_0x4002cf(_0x10fc11),_0x54c56b[_0x3fa1c4(0xe0)][_0x3fa1c4(0xe3)](this[_0x3fa1c4(0xda)][_0x3fa1c4(0xf0)](_0x10fc11)),_0x54c56b[_0x3fa1c4(0xf7)][_0x3fa1c4(0xe3)](this[_0x3fa1c4(0xe1)]),!0x0;}[_0x7f7fce(0xf4)](_0x27b1ca,_0x2b2553){const _0x51336e=_0x7f7fce,{types:_0x20fe83,buffers:_0x3f41df}=_0x2b2553,_0x20039e=this[_0x51336e(0xda)][_0x51336e(0xf4)](_0x3f41df[_0x51336e(0xed)]());_0x20fe83[_0x51336e(0xed)](),_0x20039e[_0x51336e(0xdc)]||(_0x20039e[_0x51336e(0xdc)]=[]),this[_0x51336e(0xe8)](_0x20039e[_0x51336e(0xdc)]),_0x9d7535(_0x20039e),_0x20039e[_0x51336e(0xf6)]=this[_0x51336e(0xf3)],_0x27b1ca[_0x51336e(0xe3)](_0x20039e);}[_0x7f7fce(0xdb)](_0x2d2cb2){const _0x525073=_0x7f7fce;for(const _0x17bcb1 of _0x2d2cb2){if(_0x17bcb1[_0x525073(0xec)]){const _0x5552b1=_0x17bcb1[_0x525073(0xec)];this[_0x525073(0xd8)](_0x5552b1)?_0x17bcb1[_0x525073(0xe7)]=_0x5552b1:_0x17bcb1[_0x525073(0xe6)]=JSON[_0x525073(0xd6)](_0x5552b1);}_0x17bcb1[_0x525073(0xf2)]&&this[_0x525073(0xdb)](_0x17bcb1[_0x525073(0xf2)]);}}[_0x7f7fce(0xe8)](_0x3f6e72){const _0xc3eca2=_0x7f7fce;for(const _0x2f2cbb of _0x3f6e72)(_0x2f2cbb[_0xc3eca2(0xe7)]||_0x2f2cbb[_0xc3eca2(0xe6)])&&(_0x2f2cbb[_0xc3eca2(0xe7)]?(_0x2f2cbb[_0xc3eca2(0xec)]=_0x2f2cbb[_0xc3eca2(0xe7)],delete _0x2f2cbb[_0xc3eca2(0xe7)]):(_0x2f2cbb[_0xc3eca2(0xec)]=JSON[_0xc3eca2(0xd7)](_0x2f2cbb[_0xc3eca2(0xe6)]),delete _0x2f2cbb[_0xc3eca2(0xe6)])),_0x2f2cbb[_0xc3eca2(0xf2)]&&this[_0xc3eca2(0xe8)](_0x2f2cbb[_0xc3eca2(0xf2)]);}[_0x7f7fce(0xd8)](_0x2bfc82){const _0x3991ae=_0x7f7fce;return Object[_0x3991ae(0xde)](_0x2bfc82)[_0x3991ae(0xe4)](_0x34f9c9=>_0x3991ae(0xf8)==typeof _0x2bfc82[_0x34f9c9]);}}
23
+ const _0x2e94e3=_0xed29;(function(_0x10d331,_0x4250cd){const _0x291570=_0xed29,_0x2d4520=_0x10d331();while(!![]){try{const _0x20221c=-parseInt(_0x291570(0xcc))/0x1+-parseInt(_0x291570(0xc7))/0x2*(parseInt(_0x291570(0xd0))/0x3)+parseInt(_0x291570(0xdb))/0x4+parseInt(_0x291570(0xc8))/0x5*(-parseInt(_0x291570(0xc0))/0x6)+parseInt(_0x291570(0xd8))/0x7*(parseInt(_0x291570(0xd3))/0x8)+-parseInt(_0x291570(0xd1))/0x9+parseInt(_0x291570(0xd7))/0xa*(parseInt(_0x291570(0xc4))/0xb);if(_0x20221c===_0x4250cd)break;else _0x2d4520['push'](_0x2d4520['shift']());}catch(_0x2ccff5){_0x2d4520['push'](_0x2d4520['shift']());}}}(_0x5039,0x235fe));function _0xed29(_0x3c1ec7,_0x3211e7){const _0x503958=_0x5039();return _0xed29=function(_0xed29ac,_0x34536b){_0xed29ac=_0xed29ac-0xbc;let _0x284e7b=_0x503958[_0xed29ac];return _0x284e7b;},_0xed29(_0x3c1ec7,_0x3211e7);}import{OperationCompressor as _0x341278}from'./operationcompressor.js';function _0x5039(){const _0x1e6465=['stringify','_deserializeNodesAttributes','948132fbXZJs','push','boolean','children','319zauoef','_serializeNodesAttributes','every','28ozwOPz','5KBDxhZ','types','parse','attributes','21872gmcjuB','_areValuesBoolean','_protobufDescriptor','shift','18471PJlUjE','1890684zhaFqe','__className','16jFjVdy','compress','buffers','_id','79570VBlbji','937132ZePqrq','decompress','_operationName','490228rbBkHo','attributesBoolean','keys','nodes','attributesJson'];_0x5039=function(){return _0x1e6465;};return _0x5039();}import{parsePositionBeforeCompression as _0x3cd759,parsePositionAfterCompression as _0x7cf32e}from'../utils.js';export class InsertOperationCompressor extends _0x341278{[_0x2e94e3(0xd4)](_0x56ef39,_0x48b8bc){const _0x360c8e=_0x2e94e3,_0x18a7e8=_0x48b8bc[_0x360c8e(0xcf)]();return this[_0x360c8e(0xc5)](_0x18a7e8[_0x360c8e(0xbc)]),_0x3cd759(_0x18a7e8),_0x56ef39[_0x360c8e(0xd5)][_0x360c8e(0xc1)](this[_0x360c8e(0xce)][_0x360c8e(0xd4)](_0x18a7e8)),_0x56ef39[_0x360c8e(0xc9)][_0x360c8e(0xc1)](this[_0x360c8e(0xd6)]),!0x0;}[_0x2e94e3(0xd9)](_0x34ba76,_0x27ea34){const _0x5c63e6=_0x2e94e3,{types:_0x5b743b,buffers:_0x7ae0b9}=_0x27ea34,_0x2e3701=this[_0x5c63e6(0xce)][_0x5c63e6(0xd9)](_0x7ae0b9[_0x5c63e6(0xcf)]());_0x5b743b[_0x5c63e6(0xcf)](),_0x2e3701[_0x5c63e6(0xbc)]||(_0x2e3701[_0x5c63e6(0xbc)]=[]),this[_0x5c63e6(0xbf)](_0x2e3701[_0x5c63e6(0xbc)]),_0x7cf32e(_0x2e3701),_0x2e3701[_0x5c63e6(0xd2)]=this[_0x5c63e6(0xda)],_0x34ba76[_0x5c63e6(0xc1)](_0x2e3701);}[_0x2e94e3(0xc5)](_0xf57b62){const _0x3db362=_0x2e94e3;for(const _0x8d1f0c of _0xf57b62){if(_0x8d1f0c[_0x3db362(0xcb)]){const _0x95eed6=_0x8d1f0c[_0x3db362(0xcb)];this[_0x3db362(0xcd)](_0x95eed6)?_0x8d1f0c[_0x3db362(0xdc)]=_0x95eed6:_0x8d1f0c[_0x3db362(0xbd)]=JSON[_0x3db362(0xbe)](_0x95eed6);}_0x8d1f0c[_0x3db362(0xc3)]&&this[_0x3db362(0xc5)](_0x8d1f0c[_0x3db362(0xc3)]);}}[_0x2e94e3(0xbf)](_0x52f56a){const _0x4be010=_0x2e94e3;for(const _0x47860d of _0x52f56a)(_0x47860d[_0x4be010(0xdc)]||_0x47860d[_0x4be010(0xbd)])&&(_0x47860d[_0x4be010(0xdc)]?(_0x47860d[_0x4be010(0xcb)]=_0x47860d[_0x4be010(0xdc)],delete _0x47860d[_0x4be010(0xdc)]):(_0x47860d[_0x4be010(0xcb)]=JSON[_0x4be010(0xca)](_0x47860d[_0x4be010(0xbd)]),delete _0x47860d[_0x4be010(0xbd)])),_0x47860d[_0x4be010(0xc3)]&&this[_0x4be010(0xbf)](_0x47860d[_0x4be010(0xc3)]);}[_0x2e94e3(0xcd)](_0x40824c){const _0x3fa069=_0x2e94e3;return Object[_0x3fa069(0xdd)](_0x40824c)[_0x3fa069(0xc6)](_0x59b5c8=>_0x3fa069(0xc2)==typeof _0x40824c[_0x59b5c8]);}}
@@ -2,10 +2,10 @@
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import OperationCompressor from './operationcompressor.js';
5
+ import { OperationCompressor } from './operationcompressor.js';
6
6
  import type { CompressedOperationsData } from '../compressor.js';
7
7
  import type { MarkerOperation } from 'ckeditor5/src/engine.js';
8
- export default class MarkerOperationCompressor extends OperationCompressor {
8
+ export declare class MarkerOperationCompressor extends OperationCompressor {
9
9
  /**
10
10
  * @inheritDoc
11
11
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1118(){const _0x5e088a=['8gFsMFA','52zjdPJc','354940jUqsgM','36gxeqnu','30xzXwRB','1666NpEGGG','oldRange','289037chcZBP','5kTnTrK','newRange','84wKxwZJ','1750194noieve','109071DFwimA','90696PwsgVN','599643zhJflx','decompress','length'];_0x1118=function(){return _0x5e088a;};return _0x1118();}const _0x158277=_0x2ec2;(function(_0x54ccc7,_0x57dd92){const _0x3ae6c1=_0x2ec2,_0x2c4f2c=_0x54ccc7();while(!![]){try{const _0x2eb9d9=-parseInt(_0x3ae6c1(0x165))/0x1+-parseInt(_0x3ae6c1(0x15e))/0x2*(-parseInt(_0x3ae6c1(0x163))/0x3)+-parseInt(_0x3ae6c1(0x15b))/0x4*(-parseInt(_0x3ae6c1(0x161))/0x5)+parseInt(_0x3ae6c1(0x15c))/0x6*(-parseInt(_0x3ae6c1(0x160))/0x7)+parseInt(_0x3ae6c1(0x159))/0x8*(parseInt(_0x3ae6c1(0x164))/0x9)+parseInt(_0x3ae6c1(0x15d))/0xa*(parseInt(_0x3ae6c1(0x167))/0xb)+-parseInt(_0x3ae6c1(0x166))/0xc*(-parseInt(_0x3ae6c1(0x15a))/0xd);if(_0x2eb9d9===_0x57dd92)break;else _0x2c4f2c['push'](_0x2c4f2c['shift']());}catch(_0x55b563){_0x2c4f2c['push'](_0x2c4f2c['shift']());}}}(_0x1118,0x23077));import _0x1604e7 from'./operationcompressor.js';function _0x2ec2(_0x126c91,_0x400a74){const _0x111882=_0x1118();return _0x2ec2=function(_0x2ec245,_0x2408fe){_0x2ec245=_0x2ec245-0x158;let _0x176095=_0x111882[_0x2ec245];return _0x176095;},_0x2ec2(_0x126c91,_0x400a74);}export default class n extends _0x1604e7{[_0x158277(0x168)](_0x124b40,_0x24c2f2){const _0x2d1771=_0x158277;super[_0x2d1771(0x168)](_0x124b40,_0x24c2f2);const _0x25ccdf=_0x124b40[_0x124b40[_0x2d1771(0x158)]-0x1];_0x25ccdf[_0x2d1771(0x15f)]||(_0x25ccdf[_0x2d1771(0x15f)]=null),_0x25ccdf[_0x2d1771(0x162)]||(_0x25ccdf[_0x2d1771(0x162)]=null);}}
23
+ const _0x16ba54=_0x3a13;function _0xd7fc(){const _0xe6e664=['370oHISuS','decompress','6oJbsaA','newRange','4760112pcsSJx','20GBTDjK','319946EtlEeb','oldRange','3867381dipHqO','length','50DQIhUX','297018qPBNun','6475800dGKOhf','15516kAaWhA','1884968HNtAWE'];_0xd7fc=function(){return _0xe6e664;};return _0xd7fc();}(function(_0x510c89,_0x1c49ff){const _0x5a4add=_0x3a13,_0x4054c1=_0x510c89();while(!![]){try{const _0x4736b7=-parseInt(_0x5a4add(0xc5))/0x1*(-parseInt(_0x5a4add(0xbd))/0x2)+-parseInt(_0x5a4add(0xba))/0x3*(-parseInt(_0x5a4add(0xc6))/0x4)+-parseInt(_0x5a4add(0xc2))/0x5*(-parseInt(_0x5a4add(0xc3))/0x6)+parseInt(_0x5a4add(0xbc))/0x7+-parseInt(_0x5a4add(0xc4))/0x8+parseInt(_0x5a4add(0xc0))/0x9+-parseInt(_0x5a4add(0xc7))/0xa*(parseInt(_0x5a4add(0xbe))/0xb);if(_0x4736b7===_0x1c49ff)break;else _0x4054c1['push'](_0x4054c1['shift']());}catch(_0x1de802){_0x4054c1['push'](_0x4054c1['shift']());}}}(_0xd7fc,0xc7666));import{OperationCompressor as _0x194b79}from'./operationcompressor.js';function _0x3a13(_0x5a3708,_0x19da86){const _0xd7fc9a=_0xd7fc();return _0x3a13=function(_0x3a1396,_0xd50abb){_0x3a1396=_0x3a1396-0xb9;let _0x16b124=_0xd7fc9a[_0x3a1396];return _0x16b124;},_0x3a13(_0x5a3708,_0x19da86);}export class MarkerOperationCompressor extends _0x194b79{[_0x16ba54(0xb9)](_0x5f1e22,_0x15aa5c){const _0x10de60=_0x16ba54;super[_0x10de60(0xb9)](_0x5f1e22,_0x15aa5c);const _0x1b523a=_0x5f1e22[_0x5f1e22[_0x10de60(0xc1)]-0x1];_0x1b523a[_0x10de60(0xbf)]||(_0x1b523a[_0x10de60(0xbf)]=null),_0x1b523a[_0x10de60(0xbb)]||(_0x1b523a[_0x10de60(0xbb)]=null);}}
@@ -2,13 +2,13 @@
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import OperationCompressor from './operationcompressor.js';
5
+ import { OperationCompressor } from './operationcompressor.js';
6
6
  import type { CompressedOperationsData } from '../compressor.js';
7
7
  import type { Operation } from 'ckeditor5/src/engine.js';
8
8
  /**
9
9
  * @extends OperationCompressor
10
10
  */
11
- export default class NoOperationCompressor extends OperationCompressor {
11
+ export declare class NoOperationCompressor extends OperationCompressor {
12
12
  /**
13
13
  * @inheritDoc
14
14
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x589ecc=_0xf857;(function(_0x34a764,_0x1c0a49){var _0x53f150=_0xf857,_0x2e755f=_0x34a764();while(!![]){try{var _0x3c5159=parseInt(_0x53f150(0x1c5))/0x1*(-parseInt(_0x53f150(0x1c8))/0x2)+-parseInt(_0x53f150(0x1bd))/0x3*(-parseInt(_0x53f150(0x1cb))/0x4)+parseInt(_0x53f150(0x1c3))/0x5*(parseInt(_0x53f150(0x1bf))/0x6)+-parseInt(_0x53f150(0x1bc))/0x7+-parseInt(_0x53f150(0x1c6))/0x8+parseInt(_0x53f150(0x1c9))/0x9+parseInt(_0x53f150(0x1ca))/0xa;if(_0x3c5159===_0x1c0a49)break;else _0x2e755f['push'](_0x2e755f['shift']());}catch(_0x3771b5){_0x2e755f['push'](_0x2e755f['shift']());}}}(_0x4a24,0x3fc9c));import _0x287108 from'./operationcompressor.js';function _0x4a24(){var _0x4e788b=['149CUcEms','173304EaTttP','_operationName','5714kNflKn','2331369FxJTmd','1525030iELaek','20000IROnwN','types','1946273QihiPe','300YzZLzy','compress','34674IdZKcM','shift','decompress','push','65hGQqlx','_id'];_0x4a24=function(){return _0x4e788b;};return _0x4a24();}function _0xf857(_0x9cc6ee,_0x1bd2ff){var _0x4a24f3=_0x4a24();return _0xf857=function(_0xf8577a,_0x2d0f33){_0xf8577a=_0xf8577a-0x1bb;var _0x276542=_0x4a24f3[_0xf8577a];return _0x276542;},_0xf857(_0x9cc6ee,_0x1bd2ff);}export default class p extends _0x287108{[_0x589ecc(0x1be)](_0x2607bd,_0x3756c5){var _0x108c19=_0x589ecc;return _0x3756c5[_0x108c19(0x1c0)](),_0x2607bd[_0x108c19(0x1bb)][_0x108c19(0x1c2)](this[_0x108c19(0x1c4)]),!0x0;}[_0x589ecc(0x1c1)](_0x4ed906,_0x286ef5){var _0x165870=_0x589ecc;_0x286ef5[_0x165870(0x1bb)][_0x165870(0x1c0)](),_0x4ed906[_0x165870(0x1c2)]({'__className':this[_0x165870(0x1c7)]});}}
23
+ function _0x5338(){var _0x27718b=['3700120ebIFfx','5731848eYgFvW','17301RgbsHl','_id','964084wMRuPi','254xIvWvi','929748OVifzn','1746240LvfNbF','decompress','shift','4996540cvuoIZ','types','153bduluS','push','_operationName','7sSXkEE','compress'];_0x5338=function(){return _0x27718b;};return _0x5338();}var _0x412bdc=_0x57c3;(function(_0x1547d1,_0x48a6c0){var _0x11f86c=_0x57c3,_0x390846=_0x1547d1();while(!![]){try{var _0x57b16a=parseInt(_0x11f86c(0x1f6))/0x1+parseInt(_0x11f86c(0x1f5))/0x2*(-parseInt(_0x11f86c(0x203))/0x3)+-parseInt(_0x11f86c(0x1f4))/0x4+-parseInt(_0x11f86c(0x1fa))/0x5+-parseInt(_0x11f86c(0x202))/0x6+parseInt(_0x11f86c(0x1ff))/0x7*(-parseInt(_0x11f86c(0x201))/0x8)+parseInt(_0x11f86c(0x1fc))/0x9*(parseInt(_0x11f86c(0x1f7))/0xa);if(_0x57b16a===_0x48a6c0)break;else _0x390846['push'](_0x390846['shift']());}catch(_0x39db10){_0x390846['push'](_0x390846['shift']());}}}(_0x5338,0x7bf93));import{OperationCompressor as _0x3d2e89}from'./operationcompressor.js';function _0x57c3(_0x405515,_0x29977c){var _0x53389e=_0x5338();return _0x57c3=function(_0x57c3bc,_0x461913){_0x57c3bc=_0x57c3bc-0x1f3;var _0x15374d=_0x53389e[_0x57c3bc];return _0x15374d;},_0x57c3(_0x405515,_0x29977c);}export class NoOperationCompressor extends _0x3d2e89{[_0x412bdc(0x200)](_0x41a976,_0x568831){var _0x525969=_0x412bdc;return _0x568831[_0x525969(0x1f9)](),_0x41a976[_0x525969(0x1fb)][_0x525969(0x1fd)](this[_0x525969(0x1f3)]),!0x0;}[_0x412bdc(0x1f8)](_0x397eac,_0x1ba64f){var _0x373e0e=_0x412bdc;_0x1ba64f[_0x373e0e(0x1fb)][_0x373e0e(0x1f9)](),_0x397eac[_0x373e0e(0x1fd)]({'__className':this[_0x373e0e(0x1fe)]});}}
@@ -8,7 +8,7 @@ import type { Operation } from 'ckeditor5/src/engine.js';
8
8
  /**
9
9
  * Compresses and decompresses single operation to the binary format.
10
10
  */
11
- export default class OperationCompressor {
11
+ export declare class OperationCompressor {
12
12
  constructor(id: number, operationName: string, protobufDescriptor: ProtobufDescriptor);
13
13
  /**
14
14
  * Serializes and consumes the first operation from the list.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x515796=_0x1db1;function _0x4c1c(){const _0x422397=['buffers','types','compress','push','300GayRku','495760kfCpFF','2941834wZfBSc','_operationName','4163958fztwwk','__className','shift','316WgddqW','60298NKqqdz','2228tFYwRP','decompress','_protobufDescriptor','549788VnHppx','1469bKhvlt','_id','9dTsCWP','10aDDKBh','200497qEnrIq','8RZldRi','24WKOqlc'];_0x4c1c=function(){return _0x422397;};return _0x4c1c();}function _0x1db1(_0x246628,_0x5df679){const _0x4c1c3e=_0x4c1c();return _0x1db1=function(_0x1db184,_0xa0d064){_0x1db184=_0x1db184-0x161;let _0xd09414=_0x4c1c3e[_0x1db184];return _0xd09414;},_0x1db1(_0x246628,_0x5df679);}(function(_0x561d91,_0x7ab5dd){const _0x4d296d=_0x1db1,_0x2a3d68=_0x561d91();while(!![]){try{const _0x86c07c=parseInt(_0x4d296d(0x173))/0x1*(parseInt(_0x4d296d(0x171))/0x2)+-parseInt(_0x4d296d(0x161))/0x3*(parseInt(_0x4d296d(0x176))/0x4)+parseInt(_0x4d296d(0x16b))/0x5*(parseInt(_0x4d296d(0x165))/0x6)+parseInt(_0x4d296d(0x16c))/0x7*(parseInt(_0x4d296d(0x164))/0x8)+parseInt(_0x4d296d(0x16e))/0x9*(-parseInt(_0x4d296d(0x162))/0xa)+parseInt(_0x4d296d(0x163))/0xb*(parseInt(_0x4d296d(0x16a))/0xc)+-parseInt(_0x4d296d(0x177))/0xd*(parseInt(_0x4d296d(0x172))/0xe);if(_0x86c07c===_0x7ab5dd)break;else _0x2a3d68['push'](_0x2a3d68['shift']());}catch(_0x5377cf){_0x2a3d68['push'](_0x2a3d68['shift']());}}}(_0x4c1c,0x402db));import{parsePositionBeforeCompression as _0x8dbacf,parsePositionAfterCompression as _0x1e6f01}from'../utils.js';export default class e{[_0x515796(0x178)];[_0x515796(0x16d)];[_0x515796(0x175)];constructor(_0x289f87,_0x2d68c5,_0x35ae82){const _0x408429=_0x515796;this[_0x408429(0x178)]=_0x289f87,this[_0x408429(0x16d)]=_0x2d68c5,this[_0x408429(0x175)]=_0x35ae82;}[_0x515796(0x168)](_0x5ae684,_0x33ca9f){const _0x59b9a7=_0x515796,_0x438cb0=_0x33ca9f[_0x59b9a7(0x170)]();return _0x8dbacf(_0x438cb0),_0x5ae684[_0x59b9a7(0x166)][_0x59b9a7(0x169)](this[_0x59b9a7(0x175)][_0x59b9a7(0x168)](_0x438cb0)),_0x5ae684[_0x59b9a7(0x167)][_0x59b9a7(0x169)](this[_0x59b9a7(0x178)]),!0x0;}[_0x515796(0x174)](_0x3895dd,_0x45c6d5){const _0x400534=_0x515796;_0x45c6d5[_0x400534(0x167)][_0x400534(0x170)]();const _0x131e7d=this[_0x400534(0x175)][_0x400534(0x174)](_0x45c6d5[_0x400534(0x166)][_0x400534(0x170)]());_0x1e6f01(_0x131e7d),_0x131e7d[_0x400534(0x16f)]=this[_0x400534(0x16d)],_0x3895dd[_0x400534(0x169)](_0x131e7d);}}
23
+ const _0x131db9=_0x434f;(function(_0x545022,_0x49c929){const _0x1a3437=_0x434f,_0x8871d1=_0x545022();while(!![]){try{const _0x3489f0=-parseInt(_0x1a3437(0x1e1))/0x1*(parseInt(_0x1a3437(0x1d4))/0x2)+parseInt(_0x1a3437(0x1df))/0x3+-parseInt(_0x1a3437(0x1d0))/0x4*(parseInt(_0x1a3437(0x1db))/0x5)+parseInt(_0x1a3437(0x1e4))/0x6+parseInt(_0x1a3437(0x1d8))/0x7*(-parseInt(_0x1a3437(0x1d5))/0x8)+-parseInt(_0x1a3437(0x1d6))/0x9+parseInt(_0x1a3437(0x1e2))/0xa*(parseInt(_0x1a3437(0x1d1))/0xb);if(_0x3489f0===_0x49c929)break;else _0x8871d1['push'](_0x8871d1['shift']());}catch(_0x302d72){_0x8871d1['push'](_0x8871d1['shift']());}}}(_0x2d91,0x855fd));function _0x434f(_0x32f92d,_0x245162){const _0x2d91bb=_0x2d91();return _0x434f=function(_0x434f92,_0x4c774a){_0x434f92=_0x434f92-0x1d0;let _0x559ffc=_0x2d91bb[_0x434f92];return _0x559ffc;},_0x434f(_0x32f92d,_0x245162);}import{parsePositionBeforeCompression as _0x12c94b,parsePositionAfterCompression as _0x5efd53}from'../utils.js';export class OperationCompressor{[_0x131db9(0x1d2)];[_0x131db9(0x1dd)];[_0x131db9(0x1d7)];constructor(_0x1850e0,_0x5112f3,_0x4bb9d1){const _0x5e0ae0=_0x131db9;this[_0x5e0ae0(0x1d2)]=_0x1850e0,this[_0x5e0ae0(0x1dd)]=_0x5112f3,this[_0x5e0ae0(0x1d7)]=_0x4bb9d1;}[_0x131db9(0x1da)](_0x569c28,_0x7aa4e8){const _0x555a14=_0x131db9,_0x4e1c5f=_0x7aa4e8[_0x555a14(0x1e0)]();return _0x12c94b(_0x4e1c5f),_0x569c28[_0x555a14(0x1dc)][_0x555a14(0x1e3)](this[_0x555a14(0x1d7)][_0x555a14(0x1da)](_0x4e1c5f)),_0x569c28[_0x555a14(0x1d3)][_0x555a14(0x1e3)](this[_0x555a14(0x1d2)]),!0x0;}[_0x131db9(0x1d9)](_0x2f1b2a,_0x2f8356){const _0x304faf=_0x131db9;_0x2f8356[_0x304faf(0x1d3)][_0x304faf(0x1e0)]();const _0x505fd1=this[_0x304faf(0x1d7)][_0x304faf(0x1d9)](_0x2f8356[_0x304faf(0x1dc)][_0x304faf(0x1e0)]());_0x5efd53(_0x505fd1),_0x505fd1[_0x304faf(0x1de)]=this[_0x304faf(0x1dd)],_0x2f1b2a[_0x304faf(0x1e3)](_0x505fd1);}}function _0x2d91(){const _0x302e8e=['_operationName','__className','3067464dRafoQ','shift','517151WcIHio','40XUltFL','push','1345878QDXLFR','4cXVCRu','4913568pBkdlp','_id','types','2HkkpjM','16ruKwuv','8281584jbZsjo','_protobufDescriptor','1532209aaLfNq','decompress','compress','3060755rdxQJX','buffers'];_0x2d91=function(){return _0x302e8e;};return _0x2d91();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x50f6(_0x4535a3,_0x30c391){const _0x3ac1d0=_0x3ac1();return _0x50f6=function(_0x50f6f8,_0x244454){_0x50f6f8=_0x50f6f8-0xb6;let _0x159866=_0x3ac1d0[_0x50f6f8];return _0x159866;},_0x50f6(_0x4535a3,_0x30c391);}function _0x3ac1(){const _0x3a04b3=['finish','4303404CndGtP','345nVWlPP','compress','3222SeTGgS','_protobufRoot','348wYfeqc','24hkuhCA','3405051FKfWIz','51810FmdFFG','6395900JLFcwi','getDescriptor','toObject','979JfJewR','3036jwrrDO','verify','create','982nAGCar','decompress','358710cxTDvo','_protobuf','encode','decode'];_0x3ac1=function(){return _0x3a04b3;};return _0x3ac1();}const _0x1f6e82=_0x50f6;(function(_0x19de8c,_0x2b8664){const _0x247fc8=_0x50f6,_0x1f6a2b=_0x19de8c();while(!![]){try{const _0x1ebd1d=-parseInt(_0x247fc8(0xb9))/0x1*(-parseInt(_0x247fc8(0xbd))/0x2)+parseInt(_0x247fc8(0xcb))/0x3+-parseInt(_0x247fc8(0xb6))/0x4+-parseInt(_0x247fc8(0xc5))/0x5*(parseInt(_0x247fc8(0xba))/0x6)+parseInt(_0x247fc8(0xc4))/0x7*(-parseInt(_0x247fc8(0xca))/0x8)+-parseInt(_0x247fc8(0xc7))/0x9*(-parseInt(_0x247fc8(0xcc))/0xa)+-parseInt(_0x247fc8(0xbf))/0xb*(-parseInt(_0x247fc8(0xc9))/0xc);if(_0x1ebd1d===_0x2b8664)break;else _0x1f6a2b['push'](_0x1f6a2b['shift']());}catch(_0x34dc89){_0x1f6a2b['push'](_0x1f6a2b['shift']());}}}(_0x3ac1,0xe5005));import{messages as _0x2d00b8}from'./lib/compiledmessages.js';export default class r{[_0x1f6e82(0xc8)];constructor(){const _0x3c253f=_0x1f6e82;this[_0x3c253f(0xc8)]=_0x2d00b8;}[_0x1f6e82(0xb7)](_0x29a097){const _0x1634c2=_0x1f6e82;return new ProtobufDescriptor(this[_0x1634c2(0xc8)][_0x29a097]);}}export class ProtobufDescriptor{[_0x1f6e82(0xc0)];constructor(_0x54eed2){const _0x2575af=_0x1f6e82;this[_0x2575af(0xc0)]=_0x54eed2;}[_0x1f6e82(0xc6)](_0xa3969d){const _0x2e6bd2=_0x1f6e82,_0x5bee51=this[_0x2e6bd2(0xc0)][_0x2e6bd2(0xbb)](_0xa3969d);if(_0x5bee51)throw Error(_0x5bee51);return this[_0x2e6bd2(0xc0)][_0x2e6bd2(0xc1)](this[_0x2e6bd2(0xc0)][_0x2e6bd2(0xbc)](_0xa3969d))[_0x2e6bd2(0xc3)]();}[_0x1f6e82(0xbe)](_0x3c9560){const _0x3626e8=_0x1f6e82;return this[_0x3626e8(0xc0)][_0x3626e8(0xb8)](this[_0x3626e8(0xc0)][_0x3626e8(0xc2)](_0x3c9560),{'oneofs':!0x0});}}
23
+ const _0x5103fe=_0x189f;function _0x189f(_0x3e5595,_0xfa96da){const _0x10f836=_0x10f8();return _0x189f=function(_0x189f54,_0x1e5a39){_0x189f54=_0x189f54-0xff;let _0x3b54bd=_0x10f836[_0x189f54];return _0x3b54bd;},_0x189f(_0x3e5595,_0xfa96da);}(function(_0x5b2d62,_0x548939){const _0x325fea=_0x189f,_0x32397e=_0x5b2d62();while(!![]){try{const _0x20856c=parseInt(_0x325fea(0x101))/0x1+parseInt(_0x325fea(0x10f))/0x2*(-parseInt(_0x325fea(0x103))/0x3)+-parseInt(_0x325fea(0x105))/0x4+parseInt(_0x325fea(0x109))/0x5+parseInt(_0x325fea(0x10a))/0x6+parseInt(_0x325fea(0x108))/0x7+-parseInt(_0x325fea(0x111))/0x8;if(_0x20856c===_0x548939)break;else _0x32397e['push'](_0x32397e['shift']());}catch(_0x5514ad){_0x32397e['push'](_0x32397e['shift']());}}}(_0x10f8,0x26f41));import{messages as _0x2664e4}from'./lib/compiledmessages.js';function _0x10f8(){const _0x1747d8=['decompress','finish','1502543JdWhaV','1511625qATTnZ','1570914vQkWLu','verify','getDescriptor','toObject','decode','2sZNBKO','compress','1143048kEesZd','create','encode','28961XhFNBx','_protobufRoot','908379lWoooH','_protobuf','810108pVgZhN'];_0x10f8=function(){return _0x1747d8;};return _0x10f8();}export class ProtobufFactory{[_0x5103fe(0x102)];constructor(){const _0x53c124=_0x5103fe;this[_0x53c124(0x102)]=_0x2664e4;}[_0x5103fe(0x10c)](_0x361d4f){const _0x21731d=_0x5103fe;return new ProtobufDescriptor(this[_0x21731d(0x102)][_0x361d4f]);}}export class ProtobufDescriptor{[_0x5103fe(0x104)];constructor(_0x567c0e){const _0x35cede=_0x5103fe;this[_0x35cede(0x104)]=_0x567c0e;}[_0x5103fe(0x110)](_0x3496d3){const _0x30737d=_0x5103fe,_0x30ce88=this[_0x30737d(0x104)][_0x30737d(0x10b)](_0x3496d3);if(_0x30ce88)throw Error(_0x30ce88);return this[_0x30737d(0x104)][_0x30737d(0x100)](this[_0x30737d(0x104)][_0x30737d(0xff)](_0x3496d3))[_0x30737d(0x107)]();}[_0x5103fe(0x106)](_0x3ea0af){const _0x19fa7f=_0x5103fe;return this[_0x19fa7f(0x104)][_0x19fa7f(0x10d)](this[_0x19fa7f(0x104)][_0x19fa7f(0x10e)](_0x3ea0af),{'oneofs':!0x0});}}
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x13cf(_0x3bd381,_0x23387d){const _0xb3cff4=_0xb3cf();return _0x13cf=function(_0x13cf9c,_0x10cc58){_0x13cf9c=_0x13cf9c-0x10c;let _0x5ebf67=_0xb3cff4[_0x13cf9c];return _0x5ebf67;},_0x13cf(_0x3bd381,_0x23387d);}(function(_0x13c46e,_0x20c3e8){const _0x1d31a5=_0x13cf,_0x4f82d8=_0x13c46e();while(!![]){try{const _0xc60cc7=-parseInt(_0x1d31a5(0x11a))/0x1+-parseInt(_0x1d31a5(0x10e))/0x2+-parseInt(_0x1d31a5(0x111))/0x3+-parseInt(_0x1d31a5(0x114))/0x4+parseInt(_0x1d31a5(0x110))/0x5+-parseInt(_0x1d31a5(0x115))/0x6*(parseInt(_0x1d31a5(0x117))/0x7)+parseInt(_0x1d31a5(0x113))/0x8;if(_0xc60cc7===_0x20c3e8)break;else _0x4f82d8['push'](_0x4f82d8['shift']());}catch(_0x4c30bc){_0x4f82d8['push'](_0x4f82d8['shift']());}}}(_0xb3cf,0x4b71b));import{cloneDeep as _0x2e4ed3,isEqual as _0x22f387,isObject as _0x405926}from'es-toolkit/compat';export function getPositionShiftedBy(_0x45d5a5,_0x2ff81e){const _0x3af228=_0x13cf,_0xb9916e=_0x2e4ed3(_0x45d5a5);return _0xb9916e[_0x3af228(0x118)][_0xb9916e[_0x3af228(0x118)][_0x3af228(0x119)]-0x1]+=_0x2ff81e,_0xb9916e;}export function arePositionsEqual(_0x29e9bb,_0x6933ac){const _0x43fce2=_0x13cf;return _0x29e9bb[_0x43fce2(0x112)]===_0x6933ac[_0x43fce2(0x112)]&&_0x22f387(_0x29e9bb[_0x43fce2(0x118)],_0x6933ac[_0x43fce2(0x118)]);}export function parsePositionBeforeCompression(_0xca34a1){const _0x37b138=_0x13cf;P(_0xca34a1,_0x1916e6=>(_0x37b138(0x10f)==_0x1916e6[_0x37b138(0x112)]?(_0x1916e6[_0x37b138(0x116)]=!0x0,delete _0x1916e6[_0x37b138(0x112)]):_0x37b138(0x10d)==_0x1916e6[_0x37b138(0x112)]&&(_0x1916e6[_0x37b138(0x10c)]=!0x0,delete _0x1916e6[_0x37b138(0x112)]),_0x1916e6));}function _0xb3cf(){const _0x28ee8b=['main','1856395DfdEDn','878361WRaSFG','root','10409552CspvbZ','957540nYccnG','66maPXxL','rootMain','186487amJzLY','path','length','103518iKcYsM','nodes','rootGraveyard','$graveyard','869426ijqusc'];_0xb3cf=function(){return _0x28ee8b;};return _0xb3cf();}export function parsePositionAfterCompression(_0x146641){const _0x20109e=_0x13cf;P(_0x146641,_0x109e48=>(_0x109e48[_0x20109e(0x116)]?(_0x109e48[_0x20109e(0x112)]=_0x20109e(0x10f),delete _0x109e48[_0x20109e(0x116)]):_0x109e48[_0x20109e(0x10c)]&&(_0x109e48[_0x20109e(0x112)]=_0x20109e(0x10d),delete _0x109e48[_0x20109e(0x10c)]),_0x109e48));}function P(_0x533fa8,_0x20bebf){const _0x4daf9d=_0x13cf;for(const _0x70e8e2 in _0x533fa8){const _0x5129a2=_0x533fa8[_0x70e8e2];_0x4daf9d(0x11b)!==_0x70e8e2&&_0x405926(_0x5129a2)&&(_0x5129a2[_0x4daf9d(0x118)]&&(_0x5129a2[_0x4daf9d(0x112)]||_0x5129a2[_0x4daf9d(0x116)]||_0x5129a2[_0x4daf9d(0x10c)])?_0x533fa8[_0x70e8e2]=_0x20bebf(_0x5129a2):P(_0x5129a2,_0x20bebf));}return _0x533fa8;}
23
+ (function(_0x166d14,_0x1bb7bf){const _0x592b27=_0xf38a,_0x44a9ac=_0x166d14();while(!![]){try{const _0x642feb=-parseInt(_0x592b27(0x192))/0x1+-parseInt(_0x592b27(0x18e))/0x2+-parseInt(_0x592b27(0x194))/0x3*(parseInt(_0x592b27(0x197))/0x4)+-parseInt(_0x592b27(0x199))/0x5*(parseInt(_0x592b27(0x193))/0x6)+parseInt(_0x592b27(0x198))/0x7*(parseInt(_0x592b27(0x18f))/0x8)+-parseInt(_0x592b27(0x196))/0x9+parseInt(_0x592b27(0x19c))/0xa;if(_0x642feb===_0x1bb7bf)break;else _0x44a9ac['push'](_0x44a9ac['shift']());}catch(_0x461079){_0x44a9ac['push'](_0x44a9ac['shift']());}}}(_0x17fe,0xef3fe));function _0x17fe(){const _0xdd0348=['80340290MJbPnz','path','main','rootGraveyard','2826850WQfeWJ','8HEXOBk','$graveyard','nodes','1187614SeLdCc','132996QmejdF','5066421EhRWod','root','16282908MHDxCO','4oHKFYx','3865981ZArYfN','340PAemZM','length','rootMain'];_0x17fe=function(){return _0xdd0348;};return _0x17fe();}import{cloneDeep as _0x20f5f2,isEqual as _0x261874,isObject as _0x392954}from'es-toolkit/compat';function _0xf38a(_0x47f2ad,_0xbc6586){const _0x17fe79=_0x17fe();return _0xf38a=function(_0xf38a26,_0x19b079){_0xf38a26=_0xf38a26-0x18d;let _0xd47eaf=_0x17fe79[_0xf38a26];return _0xd47eaf;},_0xf38a(_0x47f2ad,_0xbc6586);}export function getPositionShiftedBy(_0x29161a,_0x2d4ab1){const _0x2aeef4=_0xf38a,_0x2d5f68=_0x20f5f2(_0x29161a);return _0x2d5f68[_0x2aeef4(0x19d)][_0x2d5f68[_0x2aeef4(0x19d)][_0x2aeef4(0x19a)]-0x1]+=_0x2d4ab1,_0x2d5f68;}export function arePositionsEqual(_0x3c2595,_0x1a93b8){const _0x5dc97f=_0xf38a;return _0x3c2595[_0x5dc97f(0x195)]===_0x1a93b8[_0x5dc97f(0x195)]&&_0x261874(_0x3c2595[_0x5dc97f(0x19d)],_0x1a93b8[_0x5dc97f(0x19d)]);}export function parsePositionBeforeCompression(_0x41734a){const _0xa8d613=_0xf38a;P(_0x41734a,_0x36bdd0=>(_0xa8d613(0x19e)==_0x36bdd0[_0xa8d613(0x195)]?(_0x36bdd0[_0xa8d613(0x19b)]=!0x0,delete _0x36bdd0[_0xa8d613(0x195)]):_0xa8d613(0x190)==_0x36bdd0[_0xa8d613(0x195)]&&(_0x36bdd0[_0xa8d613(0x18d)]=!0x0,delete _0x36bdd0[_0xa8d613(0x195)]),_0x36bdd0));}export function parsePositionAfterCompression(_0x36ee9e){const _0x1b48a0=_0xf38a;P(_0x36ee9e,_0xab7da7=>(_0xab7da7[_0x1b48a0(0x19b)]?(_0xab7da7[_0x1b48a0(0x195)]=_0x1b48a0(0x19e),delete _0xab7da7[_0x1b48a0(0x19b)]):_0xab7da7[_0x1b48a0(0x18d)]&&(_0xab7da7[_0x1b48a0(0x195)]=_0x1b48a0(0x190),delete _0xab7da7[_0x1b48a0(0x18d)]),_0xab7da7));}function P(_0x336bb9,_0x1b9e9f){const _0x160149=_0xf38a;for(const _0x385c1d in _0x336bb9){const _0x4f41b9=_0x336bb9[_0x385c1d];_0x160149(0x191)!==_0x385c1d&&_0x392954(_0x4f41b9)&&(_0x4f41b9[_0x160149(0x19d)]&&(_0x4f41b9[_0x160149(0x195)]||_0x4f41b9[_0x160149(0x19b)]||_0x4f41b9[_0x160149(0x18d)])?_0x336bb9[_0x385c1d]=_0x1b9e9f(_0x4f41b9):P(_0x4f41b9,_0x1b9e9f));}return _0x336bb9;}