@ckeditor/ckeditor5-operations-compressor 44.1.0 → 44.2.0-alpha.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.
Files changed (54) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/dist/index-content.css +2 -2
  4. package/dist/index-editor.css +2 -2
  5. package/dist/index.css +2 -2
  6. package/dist/index.js +3 -3
  7. package/package.json +21 -3
  8. package/src/actioncompressor/actioncompressor.d.ts +1 -1
  9. package/src/actioncompressor/actioncompressor.js +2 -2
  10. package/src/actioncompressor/deletingactioncompressor.d.ts +1 -1
  11. package/src/actioncompressor/deletingactioncompressor.js +2 -2
  12. package/src/actioncompressor/forwarddeletingactioncompressor.d.ts +1 -1
  13. package/src/actioncompressor/forwarddeletingactioncompressor.js +2 -2
  14. package/src/actioncompressor/typingactioncompressor.d.ts +1 -1
  15. package/src/actioncompressor/typingactioncompressor.js +2 -2
  16. package/src/actioncompressor/userselectionactioncompressor.d.ts +1 -1
  17. package/src/actioncompressor/userselectionactioncompressor.js +2 -2
  18. package/src/compressor.d.ts +1 -1
  19. package/src/compressor.js +2 -2
  20. package/src/index.d.ts +1 -1
  21. package/src/index.js +2 -2
  22. package/src/lib/compiledmessages.js +3 -3
  23. package/src/lib/protobufdescriptions.js +2 -2
  24. package/src/operationcompressor/annotationmarkeroperationcompressor.d.ts +1 -1
  25. package/src/operationcompressor/annotationmarkeroperationcompressor.js +2 -2
  26. package/src/operationcompressor/attributeoperationcompressor.d.ts +1 -1
  27. package/src/operationcompressor/attributeoperationcompressor.js +2 -2
  28. package/src/operationcompressor/insertoperationcompressor.d.ts +1 -1
  29. package/src/operationcompressor/insertoperationcompressor.js +2 -2
  30. package/src/operationcompressor/markeroperationcompressor.d.ts +1 -1
  31. package/src/operationcompressor/markeroperationcompressor.js +2 -2
  32. package/src/operationcompressor/nooperationcompressor.d.ts +1 -1
  33. package/src/operationcompressor/nooperationcompressor.js +2 -2
  34. package/src/operationcompressor/operationcompressor.d.ts +1 -1
  35. package/src/operationcompressor/operationcompressor.js +2 -2
  36. package/src/protobuffactory.d.ts +1 -1
  37. package/src/protobuffactory.js +2 -2
  38. package/src/utils.d.ts +1 -1
  39. package/src/utils.js +2 -2
  40. package/dist/actioncompressor/actioncompressor.d.ts +0 -64
  41. package/dist/actioncompressor/deletingactioncompressor.d.ts +0 -32
  42. package/dist/actioncompressor/forwarddeletingactioncompressor.d.ts +0 -32
  43. package/dist/actioncompressor/typingactioncompressor.d.ts +0 -32
  44. package/dist/actioncompressor/userselectionactioncompressor.d.ts +0 -20
  45. package/dist/compressor.d.ts +0 -49
  46. package/dist/index.d.ts +0 -9
  47. package/dist/operationcompressor/annotationmarkeroperationcompressor.d.ts +0 -26
  48. package/dist/operationcompressor/attributeoperationcompressor.d.ts +0 -21
  49. package/dist/operationcompressor/insertoperationcompressor.d.ts +0 -21
  50. package/dist/operationcompressor/markeroperationcompressor.d.ts +0 -17
  51. package/dist/operationcompressor/nooperationcompressor.d.ts +0 -24
  52. package/dist/operationcompressor/operationcompressor.d.ts +0 -32
  53. package/dist/protobuffactory.d.ts +0 -9
  54. package/dist/utils.d.ts +0 -34
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15b554=_0x4f39;(function(_0x57421c,_0xeb892d){const _0x348bd4=_0x4f39,_0x14ec70=_0x57421c();while(!![]){try{const _0x3895c7=parseInt(_0x348bd4(0x115))/0x1*(parseInt(_0x348bd4(0x12c))/0x2)+parseInt(_0x348bd4(0x117))/0x3+parseInt(_0x348bd4(0x10f))/0x4+-parseInt(_0x348bd4(0x12d))/0x5*(parseInt(_0x348bd4(0x124))/0x6)+parseInt(_0x348bd4(0x119))/0x7+-parseInt(_0x348bd4(0x111))/0x8+parseInt(_0x348bd4(0x11b))/0x9*(-parseInt(_0x348bd4(0x123))/0xa);if(_0x3895c7===_0xeb892d)break;else _0x14ec70['push'](_0x14ec70['shift']());}catch(_0x5521f){_0x14ec70['push'](_0x14ec70['shift']());}}}(_0x21ef,0x6fa03));import _0x2c47f7 from'./operationcompressor.js';function _0x4f39(_0x2f7715,_0x4ee6cb){const _0x21ef38=_0x21ef();return _0x4f39=function(_0x4f3979,_0x3eecce){_0x4f3979=_0x4f3979-0x10d;let _0x4c5f48=_0x21ef38[_0x4f3979];return _0x4c5f48;},_0x4f39(_0x2f7715,_0x4ee6cb);}import{parsePositionBeforeCompression as _0x18b40a,parsePositionAfterCompression as _0x13d839}from'../utils.js';export default class i extends _0x2c47f7{[_0x15b554(0x121)](_0x2b87e7,_0x21e6ae){const _0x5570bc=_0x15b554,_0x5a18c2=_0x21e6ae[_0x5570bc(0x11a)]();return this[_0x5570bc(0x129)](_0x5a18c2[_0x5570bc(0x118)]),_0x18b40a(_0x5a18c2),_0x2b87e7[_0x5570bc(0x12b)][_0x5570bc(0x11f)](this[_0x5570bc(0x126)][_0x5570bc(0x121)](_0x5a18c2)),_0x2b87e7[_0x5570bc(0x112)][_0x5570bc(0x11f)](this[_0x5570bc(0x110)]),!0x0;}[_0x15b554(0x12a)](_0x3db761,_0x1bbcba){const _0x579eb1=_0x15b554,{types:_0x38093f,buffers:_0xb1d4bf}=_0x1bbcba,_0x2fa3b9=this[_0x579eb1(0x126)][_0x579eb1(0x12a)](_0xb1d4bf[_0x579eb1(0x11a)]());_0x38093f[_0x579eb1(0x11a)](),_0x2fa3b9[_0x579eb1(0x118)]||(_0x2fa3b9[_0x579eb1(0x118)]=[]),this[_0x579eb1(0x113)](_0x2fa3b9[_0x579eb1(0x118)]),_0x13d839(_0x2fa3b9),_0x2fa3b9[_0x579eb1(0x127)]=this[_0x579eb1(0x10d)],_0x3db761[_0x579eb1(0x11f)](_0x2fa3b9);}[_0x15b554(0x129)](_0x4784a9){const _0x19838e=_0x15b554;for(const _0x104817 of _0x4784a9){if(_0x104817[_0x19838e(0x128)]){const _0x19e54e=_0x104817[_0x19838e(0x128)];this[_0x19838e(0x120)](_0x19e54e)?_0x104817[_0x19838e(0x114)]=_0x19e54e:_0x104817[_0x19838e(0x11e)]=JSON[_0x19838e(0x116)](_0x19e54e);}_0x104817[_0x19838e(0x11d)]&&this[_0x19838e(0x129)](_0x104817[_0x19838e(0x11d)]);}}[_0x15b554(0x113)](_0x1124c9){const _0x5e03fc=_0x15b554;for(const _0x558658 of _0x1124c9)(_0x558658[_0x5e03fc(0x114)]||_0x558658[_0x5e03fc(0x11e)])&&(_0x558658[_0x5e03fc(0x114)]?(_0x558658[_0x5e03fc(0x128)]=_0x558658[_0x5e03fc(0x114)],delete _0x558658[_0x5e03fc(0x114)]):(_0x558658[_0x5e03fc(0x128)]=JSON[_0x5e03fc(0x122)](_0x558658[_0x5e03fc(0x11e)]),delete _0x558658[_0x5e03fc(0x11e)])),_0x558658[_0x5e03fc(0x11d)]&&this[_0x5e03fc(0x113)](_0x558658[_0x5e03fc(0x11d)]);}[_0x15b554(0x120)](_0x2cb211){const _0x4f8f6e=_0x15b554;return Object[_0x4f8f6e(0x11c)](_0x2cb211)[_0x4f8f6e(0x125)](_0x3b0a3c=>_0x4f8f6e(0x10e)==typeof _0x2cb211[_0x3b0a3c]);}}function _0x21ef(){const _0x141f36=['5QkkMum','_operationName','boolean','2150776TOSKTH','_id','2346584GEkGFG','types','_deserializeNodesAttributes','attributesBoolean','616763xxpgLB','stringify','2420811WbdXTP','nodes','6017872pWHaNq','shift','3905973gjQtHS','keys','children','attributesJson','push','_areValuesBoolean','compress','parse','30dlqwZs','4611342FpCAsQ','every','_protobufDescriptor','__className','attributes','_serializeNodesAttributes','decompress','buffers','2mvpABP'];_0x21ef=function(){return _0x141f36;};return _0x21ef();}
23
+ function _0x4589(){const _0x181fba=['attributes','keys','types','64569YuuxCd','children','every','997070RbgJEF','4751032bPdKSu','stringify','_serializeNodesAttributes','34qWCwBv','28RaysNL','push','parse','296702wshSmJ','nodes','_id','attributesBoolean','shift','27271776pElSIS','__className','1841170hansPg','5904429jokJRo','_protobufDescriptor','_deserializeNodesAttributes','44oYtgfo','162RmhcUl','boolean','decompress','_operationName','compress','_areValuesBoolean','9CttIQd','attributesJson','buffers'];_0x4589=function(){return _0x181fba;};return _0x4589();}const _0x3464f4=_0x4025;function _0x4025(_0x3116f8,_0x3091b6){const _0x4589b7=_0x4589();return _0x4025=function(_0x402595,_0x3e2d84){_0x402595=_0x402595-0x8a;let _0x23a3ae=_0x4589b7[_0x402595];return _0x23a3ae;},_0x4025(_0x3116f8,_0x3091b6);}(function(_0x6c4aa1,_0x3e8171){const _0x3be1c0=_0x4025,_0x4a2302=_0x6c4aa1();while(!![]){try{const _0x7687d2=parseInt(_0x3be1c0(0xa0))/0x1*(-parseInt(_0x3be1c0(0xa7))/0x2)+parseInt(_0x3be1c0(0x90))/0x3+-parseInt(_0x3be1c0(0xa8))/0x4*(-parseInt(_0x3be1c0(0xa3))/0x5)+parseInt(_0x3be1c0(0x94))/0x6*(parseInt(_0x3be1c0(0xab))/0x7)+-parseInt(_0x3be1c0(0xa4))/0x8*(-parseInt(_0x3be1c0(0x9a))/0x9)+parseInt(_0x3be1c0(0x8f))/0xa*(-parseInt(_0x3be1c0(0x93))/0xb)+-parseInt(_0x3be1c0(0x8d))/0xc;if(_0x7687d2===_0x3e8171)break;else _0x4a2302['push'](_0x4a2302['shift']());}catch(_0x16e0dc){_0x4a2302['push'](_0x4a2302['shift']());}}}(_0x4589,0xf30e1));import _0xc0ac10 from'./operationcompressor.js';import{parsePositionBeforeCompression as _0x12cdba,parsePositionAfterCompression as _0x57e67d}from'../utils.js';export default class i extends _0xc0ac10{[_0x3464f4(0x98)](_0x5a3b4b,_0x51cd64){const _0x7ff4ce=_0x3464f4,_0x35994a=_0x51cd64[_0x7ff4ce(0x8c)]();return this[_0x7ff4ce(0xa6)](_0x35994a[_0x7ff4ce(0xac)]),_0x12cdba(_0x35994a),_0x5a3b4b[_0x7ff4ce(0x9c)][_0x7ff4ce(0xa9)](this[_0x7ff4ce(0x91)][_0x7ff4ce(0x98)](_0x35994a)),_0x5a3b4b[_0x7ff4ce(0x9f)][_0x7ff4ce(0xa9)](this[_0x7ff4ce(0x8a)]),!0x0;}[_0x3464f4(0x96)](_0x339f6e,_0x374dc5){const _0x3cbcda=_0x3464f4,{types:_0x5bf025,buffers:_0x1cbc47}=_0x374dc5,_0x260e99=this[_0x3cbcda(0x91)][_0x3cbcda(0x96)](_0x1cbc47[_0x3cbcda(0x8c)]());_0x5bf025[_0x3cbcda(0x8c)](),_0x260e99[_0x3cbcda(0xac)]||(_0x260e99[_0x3cbcda(0xac)]=[]),this[_0x3cbcda(0x92)](_0x260e99[_0x3cbcda(0xac)]),_0x57e67d(_0x260e99),_0x260e99[_0x3cbcda(0x8e)]=this[_0x3cbcda(0x97)],_0x339f6e[_0x3cbcda(0xa9)](_0x260e99);}[_0x3464f4(0xa6)](_0x338bdd){const _0x3af0ce=_0x3464f4;for(const _0x4566aa of _0x338bdd){if(_0x4566aa[_0x3af0ce(0x9d)]){const _0x2e72b9=_0x4566aa[_0x3af0ce(0x9d)];this[_0x3af0ce(0x99)](_0x2e72b9)?_0x4566aa[_0x3af0ce(0x8b)]=_0x2e72b9:_0x4566aa[_0x3af0ce(0x9b)]=JSON[_0x3af0ce(0xa5)](_0x2e72b9);}_0x4566aa[_0x3af0ce(0xa1)]&&this[_0x3af0ce(0xa6)](_0x4566aa[_0x3af0ce(0xa1)]);}}[_0x3464f4(0x92)](_0x46b505){const _0x1f26d5=_0x3464f4;for(const _0x4af73c of _0x46b505)(_0x4af73c[_0x1f26d5(0x8b)]||_0x4af73c[_0x1f26d5(0x9b)])&&(_0x4af73c[_0x1f26d5(0x8b)]?(_0x4af73c[_0x1f26d5(0x9d)]=_0x4af73c[_0x1f26d5(0x8b)],delete _0x4af73c[_0x1f26d5(0x8b)]):(_0x4af73c[_0x1f26d5(0x9d)]=JSON[_0x1f26d5(0xaa)](_0x4af73c[_0x1f26d5(0x9b)]),delete _0x4af73c[_0x1f26d5(0x9b)])),_0x4af73c[_0x1f26d5(0xa1)]&&this[_0x1f26d5(0x92)](_0x4af73c[_0x1f26d5(0xa1)]);}[_0x3464f4(0x99)](_0xfa9719){const _0x28d59d=_0x3464f4;return Object[_0x28d59d(0x9e)](_0xfa9719)[_0x28d59d(0xa2)](_0x273965=>_0x28d59d(0x95)==typeof _0xfa9719[_0x273965]);}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
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
5
  import OperationCompressor from './operationcompressor.js';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x399c(_0x3eb8e4,_0xc72b18){const _0x4f140d=_0x4f14();return _0x399c=function(_0x399ca2,_0x18af74){_0x399ca2=_0x399ca2-0x142;let _0x8b8ad4=_0x4f140d[_0x399ca2];return _0x8b8ad4;},_0x399c(_0x3eb8e4,_0xc72b18);}const _0xcf677e=_0x399c;(function(_0x53fd63,_0x3eeea5){const _0x38b785=_0x399c,_0x11e82d=_0x53fd63();while(!![]){try{const _0x730d6d=-parseInt(_0x38b785(0x142))/0x1+parseInt(_0x38b785(0x14d))/0x2+-parseInt(_0x38b785(0x145))/0x3+parseInt(_0x38b785(0x14c))/0x4+-parseInt(_0x38b785(0x14a))/0x5+parseInt(_0x38b785(0x146))/0x6*(parseInt(_0x38b785(0x149))/0x7)+-parseInt(_0x38b785(0x147))/0x8*(parseInt(_0x38b785(0x148))/0x9);if(_0x730d6d===_0x3eeea5)break;else _0x11e82d['push'](_0x11e82d['shift']());}catch(_0x48dcec){_0x11e82d['push'](_0x11e82d['shift']());}}}(_0x4f14,0xa796b));function _0x4f14(){const _0x3f5eb7=['7983aLSmYx','154REnSRn','562870DSJIvx','decompress','1841400HhDlAo','2741986pBehmr','oldRange','30524sJtXjs','length','newRange','887979OlXjOF','325434axuFiN','17128RBtYkt'];_0x4f14=function(){return _0x3f5eb7;};return _0x4f14();}import _0x222e26 from'./operationcompressor.js';export default class n extends _0x222e26{[_0xcf677e(0x14b)](_0x2aab53,_0x145689){const _0x3ab645=_0xcf677e;super[_0x3ab645(0x14b)](_0x2aab53,_0x145689);const _0x50a0d9=_0x2aab53[_0x2aab53[_0x3ab645(0x143)]-0x1];_0x50a0d9[_0x3ab645(0x14e)]||(_0x50a0d9[_0x3ab645(0x14e)]=null),_0x50a0d9[_0x3ab645(0x144)]||(_0x50a0d9[_0x3ab645(0x144)]=null);}}
23
+ function _0x5ca5(_0x33c658,_0x2e86cd){const _0x3f246c=_0x3f24();return _0x5ca5=function(_0x5ca56f,_0x11cede){_0x5ca56f=_0x5ca56f-0x1d7;let _0x782ecb=_0x3f246c[_0x5ca56f];return _0x782ecb;},_0x5ca5(_0x33c658,_0x2e86cd);}const _0x350cbc=_0x5ca5;function _0x3f24(){const _0x109d9c=['818912BeZFTU','10328584sopKZm','oldRange','4210290CvSXlU','1238485fpUDtY','decompress','4500153YEeXMK','1150432PbgVfb','1117276ekRxEY','length','newRange','12MQJPUt'];_0x3f24=function(){return _0x109d9c;};return _0x3f24();}(function(_0x256645,_0x28c1dc){const _0x3a4d1c=_0x5ca5,_0x25ade5=_0x256645();while(!![]){try{const _0x549b6a=-parseInt(_0x3a4d1c(0x1d7))/0x1+-parseInt(_0x3a4d1c(0x1db))/0x2+parseInt(_0x3a4d1c(0x1da))/0x3*(parseInt(_0x3a4d1c(0x1e2))/0x4)+-parseInt(_0x3a4d1c(0x1df))/0x5+-parseInt(_0x3a4d1c(0x1de))/0x6+parseInt(_0x3a4d1c(0x1e1))/0x7+parseInt(_0x3a4d1c(0x1dc))/0x8;if(_0x549b6a===_0x28c1dc)break;else _0x25ade5['push'](_0x25ade5['shift']());}catch(_0x1bc124){_0x25ade5['push'](_0x25ade5['shift']());}}}(_0x3f24,0x947f0));import _0x3278e7 from'./operationcompressor.js';export default class n extends _0x3278e7{[_0x350cbc(0x1e0)](_0x3f3e9d,_0x3387ad){const _0x4bb772=_0x350cbc;super[_0x4bb772(0x1e0)](_0x3f3e9d,_0x3387ad);const _0x3811f4=_0x3f3e9d[_0x3f3e9d[_0x4bb772(0x1d8)]-0x1];_0x3811f4[_0x4bb772(0x1dd)]||(_0x3811f4[_0x4bb772(0x1dd)]=null),_0x3811f4[_0x4bb772(0x1d9)]||(_0x3811f4[_0x4bb772(0x1d9)]=null);}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
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
5
  import OperationCompressor from './operationcompressor.js';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3869fb=_0x4756;(function(_0x1c764d,_0x690924){var _0x14ab02=_0x4756,_0x323f21=_0x1c764d();while(!![]){try{var _0xad0263=-parseInt(_0x14ab02(0x1bf))/0x1*(-parseInt(_0x14ab02(0x1c2))/0x2)+parseInt(_0x14ab02(0x1b4))/0x3+parseInt(_0x14ab02(0x1bb))/0x4+-parseInt(_0x14ab02(0x1be))/0x5*(parseInt(_0x14ab02(0x1b8))/0x6)+parseInt(_0x14ab02(0x1c1))/0x7+-parseInt(_0x14ab02(0x1bd))/0x8+-parseInt(_0x14ab02(0x1b9))/0x9;if(_0xad0263===_0x690924)break;else _0x323f21['push'](_0x323f21['shift']());}catch(_0x2995c9){_0x323f21['push'](_0x323f21['shift']());}}}(_0x27d4,0x83d58));function _0x4756(_0x113abd,_0x42152f){var _0x27d4e6=_0x27d4();return _0x4756=function(_0x4756a5,_0x1f1899){_0x4756a5=_0x4756a5-0x1b4;var _0x329aaa=_0x27d4e6[_0x4756a5];return _0x329aaa;},_0x4756(_0x113abd,_0x42152f);}function _0x27d4(){var _0x156973=['decompress','types','compress','234PevRjO','11851524maATjA','_id','2188028nfNNxh','_operationName','6379208UJPCqZ','34665GdrEnU','16429HHBQIu','push','4374608VcAtNk','108mgGQJw','shift','2596497PRHlpK'];_0x27d4=function(){return _0x156973;};return _0x27d4();}import _0x465622 from'./operationcompressor.js';export default class p extends _0x465622{[_0x3869fb(0x1b7)](_0x171c11,_0xeb00ef){var _0x30b768=_0x3869fb;return _0xeb00ef[_0x30b768(0x1c3)](),_0x171c11[_0x30b768(0x1b6)][_0x30b768(0x1c0)](this[_0x30b768(0x1ba)]),!0x0;}[_0x3869fb(0x1b5)](_0x16ecd5,_0x3bfbbe){var _0x2265d3=_0x3869fb;_0x3bfbbe[_0x2265d3(0x1b6)][_0x2265d3(0x1c3)](),_0x16ecd5[_0x2265d3(0x1c0)]({'__className':this[_0x2265d3(0x1bc)]});}}
23
+ function _0x4c30(_0x394ad0,_0x30337b){var _0x2d9bdd=_0x2d9b();return _0x4c30=function(_0x4c30fb,_0x2b4705){_0x4c30fb=_0x4c30fb-0x11a;var _0x2f170c=_0x2d9bdd[_0x4c30fb];return _0x2f170c;},_0x4c30(_0x394ad0,_0x30337b);}var _0x5c612b=_0x4c30;(function(_0x19f57e,_0x49d73d){var _0x3b5a63=_0x4c30,_0x7c9288=_0x19f57e();while(!![]){try{var _0x11b081=parseInt(_0x3b5a63(0x11a))/0x1*(-parseInt(_0x3b5a63(0x12a))/0x2)+parseInt(_0x3b5a63(0x121))/0x3*(parseInt(_0x3b5a63(0x128))/0x4)+-parseInt(_0x3b5a63(0x122))/0x5*(parseInt(_0x3b5a63(0x11d))/0x6)+parseInt(_0x3b5a63(0x127))/0x7+-parseInt(_0x3b5a63(0x120))/0x8*(-parseInt(_0x3b5a63(0x11f))/0x9)+parseInt(_0x3b5a63(0x126))/0xa+parseInt(_0x3b5a63(0x11c))/0xb;if(_0x11b081===_0x49d73d)break;else _0x7c9288['push'](_0x7c9288['shift']());}catch(_0x5bfb6e){_0x7c9288['push'](_0x7c9288['shift']());}}}(_0x2d9b,0x6822f));import _0x55cc48 from'./operationcompressor.js';export default class p extends _0x55cc48{[_0x5c612b(0x123)](_0x28620c,_0xa7633d){var _0x481eee=_0x5c612b;return _0xa7633d[_0x481eee(0x124)](),_0x28620c[_0x481eee(0x11b)][_0x481eee(0x12b)](this[_0x481eee(0x11e)]),!0x0;}[_0x5c612b(0x129)](_0x22441b,_0x5553b3){var _0x1bc50a=_0x5c612b;_0x5553b3[_0x1bc50a(0x11b)][_0x1bc50a(0x124)](),_0x22441b[_0x1bc50a(0x12b)]({'__className':this[_0x1bc50a(0x125)]});}}function _0x2d9b(){var _0x2c9d6c=['9299532RZISfb','198ZoqGFC','_id','261TRPTkz','59928TVkffJ','93843wZggPr','72835nTtAiW','compress','shift','_operationName','1257780XQfTHN','343777MeYeoA','52tXsUDF','decompress','2oIxdnL','push','736939ZndMVW','types'];_0x2d9b=function(){return _0x2c9d6c;};return _0x2d9b();}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
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
5
  import type { CompressedOperationsData } from '../compressor.js';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x184a60=_0x4a3e;(function(_0x5f169c,_0x569a5b){const _0x1887ef=_0x4a3e,_0x1770dd=_0x5f169c();while(!![]){try{const _0x35b29a=-parseInt(_0x1887ef(0xf8))/0x1*(parseInt(_0x1887ef(0xf3))/0x2)+parseInt(_0x1887ef(0xef))/0x3+parseInt(_0x1887ef(0xf1))/0x4*(parseInt(_0x1887ef(0xfc))/0x5)+-parseInt(_0x1887ef(0xff))/0x6*(parseInt(_0x1887ef(0xf5))/0x7)+-parseInt(_0x1887ef(0xf6))/0x8+parseInt(_0x1887ef(0x101))/0x9+parseInt(_0x1887ef(0xf7))/0xa*(-parseInt(_0x1887ef(0xf2))/0xb);if(_0x35b29a===_0x569a5b)break;else _0x1770dd['push'](_0x1770dd['shift']());}catch(_0xc142b){_0x1770dd['push'](_0x1770dd['shift']());}}}(_0x54f9,0xa2da4));function _0x4a3e(_0x1ad3c7,_0x2c88c2){const _0x54f9d6=_0x54f9();return _0x4a3e=function(_0x4a3ea4,_0x2a3817){_0x4a3ea4=_0x4a3ea4-0xef;let _0x5230d3=_0x54f9d6[_0x4a3ea4];return _0x5230d3;},_0x4a3e(_0x1ad3c7,_0x2c88c2);}function _0x54f9(){const _0x12f50f=['11353662BDGeUY','_protobufDescriptor','_operationName','2512842bLNZOj','push','93408oAKGMR','209YKHVSR','2513848kCgfAL','buffers','119yZNEjX','108032RwBRUx','168020GIYAkZ','1fEoLDN','_id','types','__className','180ZcXhqF','compress','decompress','241092bJAshl','shift'];_0x54f9=function(){return _0x12f50f;};return _0x54f9();}import{parsePositionBeforeCompression as _0x42dac9,parsePositionAfterCompression as _0x38bb9f}from'../utils.js';export default class e{constructor(_0x9dedaf,_0x565b58,_0x17bb35){const _0x4e4b8b=_0x4a3e;this[_0x4e4b8b(0xf9)]=_0x9dedaf,this[_0x4e4b8b(0x103)]=_0x565b58,this[_0x4e4b8b(0x102)]=_0x17bb35;}[_0x184a60(0xfd)](_0xcfcf6,_0x2c27f1){const _0xd753aa=_0x184a60,_0x16bab7=_0x2c27f1[_0xd753aa(0x100)]();return _0x42dac9(_0x16bab7),_0xcfcf6[_0xd753aa(0xf4)][_0xd753aa(0xf0)](this[_0xd753aa(0x102)][_0xd753aa(0xfd)](_0x16bab7)),_0xcfcf6[_0xd753aa(0xfa)][_0xd753aa(0xf0)](this[_0xd753aa(0xf9)]),!0x0;}[_0x184a60(0xfe)](_0x34c931,_0x5a1844){const _0x4af2c9=_0x184a60;_0x5a1844[_0x4af2c9(0xfa)][_0x4af2c9(0x100)]();const _0x5c11d0=this[_0x4af2c9(0x102)][_0x4af2c9(0xfe)](_0x5a1844[_0x4af2c9(0xf4)][_0x4af2c9(0x100)]());_0x38bb9f(_0x5c11d0),_0x5c11d0[_0x4af2c9(0xfb)]=this[_0x4af2c9(0x103)],_0x34c931[_0x4af2c9(0xf0)](_0x5c11d0);}}
23
+ function _0x5bb7(){const _0x19f4e3=['compress','types','4502124iZLNZd','_operationName','_protobufDescriptor','1841589kjwAQw','5927978zIdhid','5619640SVeUJt','6080450RzCxJK','9oHTBpd','_id','30230XPKDZs','buffers','shift','push','1730776sUhvGh','__className','68QvMmnS','decompress','10HThABV'];_0x5bb7=function(){return _0x19f4e3;};return _0x5bb7();}function _0xb784(_0x21040d,_0x526c16){const _0x5bb720=_0x5bb7();return _0xb784=function(_0xb78477,_0x1ae809){_0xb78477=_0xb78477-0xc4;let _0x3e3c0c=_0x5bb720[_0xb78477];return _0x3e3c0c;},_0xb784(_0x21040d,_0x526c16);}const _0x231d21=_0xb784;(function(_0x40c006,_0x2ce3b5){const _0x575953=_0xb784,_0x372418=_0x40c006();while(!![]){try{const _0x4e89f4=parseInt(_0x575953(0xcd))/0x1*(-parseInt(_0x575953(0xd3))/0x2)+-parseInt(_0x575953(0xc7))/0x3+-parseInt(_0x575953(0xd1))/0x4*(-parseInt(_0x575953(0xd5))/0x5)+parseInt(_0x575953(0xc4))/0x6+parseInt(_0x575953(0xc8))/0x7+-parseInt(_0x575953(0xc9))/0x8+-parseInt(_0x575953(0xcb))/0x9*(-parseInt(_0x575953(0xca))/0xa);if(_0x4e89f4===_0x2ce3b5)break;else _0x372418['push'](_0x372418['shift']());}catch(_0x150606){_0x372418['push'](_0x372418['shift']());}}}(_0x5bb7,0xb15e7));import{parsePositionBeforeCompression as _0x38b1f6,parsePositionAfterCompression as _0x5722be}from'../utils.js';export default class e{constructor(_0x5a1230,_0x196ad8,_0x4635d4){const _0x2365e4=_0xb784;this[_0x2365e4(0xcc)]=_0x5a1230,this[_0x2365e4(0xc5)]=_0x196ad8,this[_0x2365e4(0xc6)]=_0x4635d4;}[_0x231d21(0xd6)](_0x1b6cd6,_0xf3e285){const _0x1573e9=_0x231d21,_0x52180d=_0xf3e285[_0x1573e9(0xcf)]();return _0x38b1f6(_0x52180d),_0x1b6cd6[_0x1573e9(0xce)][_0x1573e9(0xd0)](this[_0x1573e9(0xc6)][_0x1573e9(0xd6)](_0x52180d)),_0x1b6cd6[_0x1573e9(0xd7)][_0x1573e9(0xd0)](this[_0x1573e9(0xcc)]),!0x0;}[_0x231d21(0xd4)](_0x20f5c7,_0x48d2e6){const _0x449b88=_0x231d21;_0x48d2e6[_0x449b88(0xd7)][_0x449b88(0xcf)]();const _0x191f09=this[_0x449b88(0xc6)][_0x449b88(0xd4)](_0x48d2e6[_0x449b88(0xce)][_0x449b88(0xcf)]());_0x5722be(_0x191f09),_0x191f09[_0x449b88(0xd2)]=this[_0x449b88(0xc5)],_0x20f5c7[_0x449b88(0xd0)](_0x191f09);}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
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
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4bff71=_0x33f4;function _0x33f4(_0x4b7466,_0x4d01d3){const _0x102a60=_0x102a();return _0x33f4=function(_0x33f42c,_0x2f2e47){_0x33f42c=_0x33f42c-0x162;let _0x22a4b5=_0x102a60[_0x33f42c];return _0x22a4b5;},_0x33f4(_0x4b7466,_0x4d01d3);}(function(_0x490539,_0x2a6e0d){const _0x419a36=_0x33f4,_0x4c5f58=_0x490539();while(!![]){try{const _0x190410=-parseInt(_0x419a36(0x165))/0x1*(-parseInt(_0x419a36(0x164))/0x2)+-parseInt(_0x419a36(0x16f))/0x3+-parseInt(_0x419a36(0x173))/0x4+parseInt(_0x419a36(0x175))/0x5+parseInt(_0x419a36(0x170))/0x6+parseInt(_0x419a36(0x16d))/0x7*(parseInt(_0x419a36(0x16a))/0x8)+-parseInt(_0x419a36(0x16c))/0x9*(parseInt(_0x419a36(0x16e))/0xa);if(_0x190410===_0x2a6e0d)break;else _0x4c5f58['push'](_0x4c5f58['shift']());}catch(_0x17da23){_0x4c5f58['push'](_0x4c5f58['shift']());}}}(_0x102a,0xac5f2));import{messages as _0x51f2e5}from'./lib/compiledmessages.js';export default class r{constructor(){const _0x27ff61=_0x33f4;this[_0x27ff61(0x16b)]=_0x51f2e5;}[_0x4bff71(0x174)](_0x12d28e){const _0x1d2084=_0x4bff71;return new ProtobufDescriptor(this[_0x1d2084(0x16b)][_0x12d28e]);}}export class ProtobufDescriptor{constructor(_0x1e2a41){const _0x38f087=_0x4bff71;this[_0x38f087(0x172)]=_0x1e2a41;}[_0x4bff71(0x163)](_0x108a58){const _0x35127e=_0x4bff71,_0x2cc9ac=this[_0x35127e(0x172)][_0x35127e(0x166)](_0x108a58);if(_0x2cc9ac)throw Error(_0x2cc9ac);return this[_0x35127e(0x172)][_0x35127e(0x162)](this[_0x35127e(0x172)][_0x35127e(0x167)](_0x108a58))[_0x35127e(0x176)]();}[_0x4bff71(0x169)](_0x211c78){const _0x4ac589=_0x4bff71;return this[_0x4ac589(0x172)][_0x4ac589(0x168)](this[_0x4ac589(0x172)][_0x4ac589(0x171)](_0x211c78),{'oneofs':!0x0});}}function _0x102a(){const _0x4b2103=['toObject','decompress','539048wKxqzS','_protobufRoot','759357SpAyLc','112yJqaBq','110HtEgpp','2177229gGrvup','2410110gQmNht','decode','_protobuf','1823052itQioX','getDescriptor','6638495ryusCI','finish','encode','compress','2CYidVO','8163pKjQpk','verify','create'];_0x102a=function(){return _0x4b2103;};return _0x102a();}
23
+ function _0x20a0(_0x28baed,_0x4e95c4){const _0x250528=_0x2505();return _0x20a0=function(_0x20a08c,_0x4d4778){_0x20a08c=_0x20a08c-0x82;let _0x41d96e=_0x250528[_0x20a08c];return _0x41d96e;},_0x20a0(_0x28baed,_0x4e95c4);}const _0xf4929b=_0x20a0;(function(_0x1dc3c6,_0x5a288e){const _0x9b40e8=_0x20a0,_0x283331=_0x1dc3c6();while(!![]){try{const _0x1ef78e=-parseInt(_0x9b40e8(0x88))/0x1+parseInt(_0x9b40e8(0x87))/0x2+-parseInt(_0x9b40e8(0x94))/0x3+-parseInt(_0x9b40e8(0x93))/0x4+parseInt(_0x9b40e8(0x85))/0x5+-parseInt(_0x9b40e8(0x8d))/0x6*(parseInt(_0x9b40e8(0x8f))/0x7)+parseInt(_0x9b40e8(0x91))/0x8*(parseInt(_0x9b40e8(0x83))/0x9);if(_0x1ef78e===_0x5a288e)break;else _0x283331['push'](_0x283331['shift']());}catch(_0x3b4654){_0x283331['push'](_0x283331['shift']());}}}(_0x2505,0x5c4c7));import{messages as _0x29d101}from'./lib/compiledmessages.js';function _0x2505(){const _0x2b1a60=['372056DwkJQC','encode','616412ceVhtR','374586VJyCMS','compress','_protobufRoot','27xREoiL','decode','3582315YopJLG','create','867738NfBclZ','585882QgrSiW','_protobuf','verify','toObject','getDescriptor','6Skbtcz','finish','328657hNCHKo','decompress'];_0x2505=function(){return _0x2b1a60;};return _0x2505();}export default class r{constructor(){const _0x5aa190=_0x20a0;this[_0x5aa190(0x82)]=_0x29d101;}[_0xf4929b(0x8c)](_0x384c79){const _0x293926=_0xf4929b;return new ProtobufDescriptor(this[_0x293926(0x82)][_0x384c79]);}}export class ProtobufDescriptor{constructor(_0x27fec9){const _0x562a4c=_0xf4929b;this[_0x562a4c(0x89)]=_0x27fec9;}[_0xf4929b(0x95)](_0x405ee3){const _0x9e4ee6=_0xf4929b,_0x412b4f=this[_0x9e4ee6(0x89)][_0x9e4ee6(0x8a)](_0x405ee3);if(_0x412b4f)throw Error(_0x412b4f);return this[_0x9e4ee6(0x89)][_0x9e4ee6(0x92)](this[_0x9e4ee6(0x89)][_0x9e4ee6(0x86)](_0x405ee3))[_0x9e4ee6(0x8e)]();}[_0xf4929b(0x90)](_0x422f98){const _0x2d33b4=_0xf4929b;return this[_0x2d33b4(0x89)][_0x2d33b4(0x8b)](this[_0x2d33b4(0x89)][_0x2d33b4(0x84)](_0x422f98),{'oneofs':!0x0});}}
package/src/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
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
5
  /**
package/src/utils.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x10a57d,_0x59d072){const _0x3ebe08=_0x8eb2,_0x11a1aa=_0x10a57d();while(!![]){try{const _0x5f2852=-parseInt(_0x3ebe08(0xac))/0x1+-parseInt(_0x3ebe08(0xab))/0x2+parseInt(_0x3ebe08(0xb7))/0x3+-parseInt(_0x3ebe08(0xaa))/0x4+parseInt(_0x3ebe08(0xb4))/0x5*(-parseInt(_0x3ebe08(0xb0))/0x6)+parseInt(_0x3ebe08(0xad))/0x7*(parseInt(_0x3ebe08(0xb5))/0x8)+parseInt(_0x3ebe08(0xb3))/0x9;if(_0x5f2852===_0x59d072)break;else _0x11a1aa['push'](_0x11a1aa['shift']());}catch(_0x52c16f){_0x11a1aa['push'](_0x11a1aa['shift']());}}}(_0x3c19,0x9d582));import{cloneDeep as _0xb2a8de,isEqual as _0x9ace48,isObject as _0xb7b936}from'lodash-es';export function getPositionShiftedBy(_0x3f3766,_0x5c79a0){const _0x18108e=_0x8eb2,_0x22d4be=_0xb2a8de(_0x3f3766);return _0x22d4be[_0x18108e(0xb9)][_0x22d4be[_0x18108e(0xb9)][_0x18108e(0xb1)]-0x1]+=_0x5c79a0,_0x22d4be;}export function arePositionsEqual(_0x3e1c57,_0x2aa12b){const _0x7a75dc=_0x8eb2;return _0x3e1c57[_0x7a75dc(0xb8)]===_0x2aa12b[_0x7a75dc(0xb8)]&&_0x9ace48(_0x3e1c57[_0x7a75dc(0xb9)],_0x2aa12b[_0x7a75dc(0xb9)]);}export function parsePositionBeforeCompression(_0x408e6a){const _0x3286da=_0x8eb2;P(_0x408e6a,_0x2cd6ad=>(_0x3286da(0xae)==_0x2cd6ad[_0x3286da(0xb8)]?(_0x2cd6ad[_0x3286da(0xaf)]=!0x0,delete _0x2cd6ad[_0x3286da(0xb8)]):_0x3286da(0xb2)==_0x2cd6ad[_0x3286da(0xb8)]&&(_0x2cd6ad[_0x3286da(0xb6)]=!0x0,delete _0x2cd6ad[_0x3286da(0xb8)]),_0x2cd6ad));}export function parsePositionAfterCompression(_0x383d05){const _0x6b3dcb=_0x8eb2;P(_0x383d05,_0x21fc81=>(_0x21fc81[_0x6b3dcb(0xaf)]?(_0x21fc81[_0x6b3dcb(0xb8)]=_0x6b3dcb(0xae),delete _0x21fc81[_0x6b3dcb(0xaf)]):_0x21fc81[_0x6b3dcb(0xb6)]&&(_0x21fc81[_0x6b3dcb(0xb8)]=_0x6b3dcb(0xb2),delete _0x21fc81[_0x6b3dcb(0xb6)]),_0x21fc81));}function _0x8eb2(_0xa2cbd7,_0x1bef06){const _0x3c1937=_0x3c19();return _0x8eb2=function(_0x8eb2e5,_0x42044e){_0x8eb2e5=_0x8eb2e5-0xaa;let _0x50a775=_0x3c1937[_0x8eb2e5];return _0x50a775;},_0x8eb2(_0xa2cbd7,_0x1bef06);}function P(_0x5e85dd,_0x2776dd){const _0x15ce07=_0x8eb2;for(const _0x34077e in _0x5e85dd){const _0x23515a=_0x5e85dd[_0x34077e];_0x15ce07(0xba)!==_0x34077e&&_0xb7b936(_0x23515a)&&(_0x23515a[_0x15ce07(0xb9)]&&(_0x23515a[_0x15ce07(0xb8)]||_0x23515a[_0x15ce07(0xaf)]||_0x23515a[_0x15ce07(0xb6)])?_0x5e85dd[_0x34077e]=_0x2776dd(_0x23515a):P(_0x23515a,_0x2776dd));}return _0x5e85dd;}function _0x3c19(){const _0x55b4f6=['nodes','1400480qRsOkC','1259108lYQJwo','622537jPefEV','14rzWRJT','main','rootMain','1734rMdhHJ','length','$graveyard','9292203FKikaH','3090tORTQB','1851368fRbmLu','rootGraveyard','2789958OIKHmO','root','path'];_0x3c19=function(){return _0x55b4f6;};return _0x3c19();}
23
+ (function(_0x48fddf,_0x45e3fc){const _0x36d57c=_0x48d0,_0x45d594=_0x48fddf();while(!![]){try{const _0x352f8c=-parseInt(_0x36d57c(0x111))/0x1+-parseInt(_0x36d57c(0x119))/0x2+-parseInt(_0x36d57c(0x113))/0x3*(-parseInt(_0x36d57c(0x117))/0x4)+-parseInt(_0x36d57c(0x11d))/0x5*(-parseInt(_0x36d57c(0x115))/0x6)+-parseInt(_0x36d57c(0x11c))/0x7+parseInt(_0x36d57c(0x11b))/0x8*(parseInt(_0x36d57c(0x10e))/0x9)+-parseInt(_0x36d57c(0x112))/0xa*(-parseInt(_0x36d57c(0x110))/0xb);if(_0x352f8c===_0x45e3fc)break;else _0x45d594['push'](_0x45d594['shift']());}catch(_0x5bb8a3){_0x45d594['push'](_0x45d594['shift']());}}}(_0x3214,0x22fd1));import{cloneDeep as _0x3fdfc8,isEqual as _0x3c8118,isObject as _0x57be23}from'lodash-es';export function getPositionShiftedBy(_0x24e03c,_0x594b3c){const _0x24abef=_0x48d0,_0x2c9669=_0x3fdfc8(_0x24e03c);return _0x2c9669[_0x24abef(0x116)][_0x2c9669[_0x24abef(0x116)][_0x24abef(0x10c)]-0x1]+=_0x594b3c,_0x2c9669;}export function arePositionsEqual(_0x298ef9,_0x1ce103){const _0x4581a3=_0x48d0;return _0x298ef9[_0x4581a3(0x118)]===_0x1ce103[_0x4581a3(0x118)]&&_0x3c8118(_0x298ef9[_0x4581a3(0x116)],_0x1ce103[_0x4581a3(0x116)]);}function _0x48d0(_0x3e0e65,_0x265308){const _0x32148d=_0x3214();return _0x48d0=function(_0x48d0c8,_0x279359){_0x48d0c8=_0x48d0c8-0x10c;let _0xf1083b=_0x32148d[_0x48d0c8];return _0xf1083b;},_0x48d0(_0x3e0e65,_0x265308);}export function parsePositionBeforeCompression(_0xabc508){const _0xb31f69=_0x48d0;P(_0xabc508,_0x5f5261=>(_0xb31f69(0x11e)==_0x5f5261[_0xb31f69(0x118)]?(_0x5f5261[_0xb31f69(0x10d)]=!0x0,delete _0x5f5261[_0xb31f69(0x118)]):_0xb31f69(0x11a)==_0x5f5261[_0xb31f69(0x118)]&&(_0x5f5261[_0xb31f69(0x10f)]=!0x0,delete _0x5f5261[_0xb31f69(0x118)]),_0x5f5261));}function _0x3214(){const _0x3d3276=['length','rootMain','18pJsKYt','rootGraveyard','220iWTiEe','209246aHHbID','93430vgbjjB','21kTFYbL','nodes','6efvvCW','path','135092iczrEl','root','179206tqFsPb','$graveyard','48008TjFiQz','228522LKYgGE','197675GahQWd','main'];_0x3214=function(){return _0x3d3276;};return _0x3214();}export function parsePositionAfterCompression(_0xe04de5){const _0x5532fe=_0x48d0;P(_0xe04de5,_0x58f46d=>(_0x58f46d[_0x5532fe(0x10d)]?(_0x58f46d[_0x5532fe(0x118)]=_0x5532fe(0x11e),delete _0x58f46d[_0x5532fe(0x10d)]):_0x58f46d[_0x5532fe(0x10f)]&&(_0x58f46d[_0x5532fe(0x118)]=_0x5532fe(0x11a),delete _0x58f46d[_0x5532fe(0x10f)]),_0x58f46d));}function P(_0x42170d,_0x288729){const _0x393995=_0x48d0;for(const _0x45a09f in _0x42170d){const _0x5cdd71=_0x42170d[_0x45a09f];_0x393995(0x114)!==_0x45a09f&&_0x57be23(_0x5cdd71)&&(_0x5cdd71[_0x393995(0x116)]&&(_0x5cdd71[_0x393995(0x118)]||_0x5cdd71[_0x393995(0x10d)]||_0x5cdd71[_0x393995(0x10f)])?_0x42170d[_0x45a09f]=_0x288729(_0x5cdd71):P(_0x5cdd71,_0x288729));}return _0x42170d;}
@@ -1,64 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import type { CompressedOperationsData, default as Compressor } from '../compressor.js';
10
- /**
11
- * * Compresses and decompresses multiple operations into the one buffer.
12
- */
13
- export default abstract class ActionCompressor {
14
- constructor(id: number, context: Compressor);
15
- /**
16
- * Combines and compress operations from the list.
17
- * Operations are consumed as long as match this compressor.
18
- *
19
- * @param result Object to which compression result should be added.
20
- * @param operations List of operations in JSON format to compress.
21
- * @returns `true` when operation is consumed `false` otherwise.
22
- */
23
- compress(result: CompressedOperationsData, operations: Array<any>): boolean;
24
- /**
25
- * Decompress and split compressed operations. Decompressed operations are consumed (removed from the input data).
26
- *
27
- * @param result Decompressed operations in JSON format.
28
- * @param data Compressed operations data.
29
- */
30
- decompress(result: Array<any>, data: CompressedOperationsData): void;
31
- /**
32
- * Compresses single operation using a proper compressor.
33
- *
34
- * @param operation Operation in JSON format.
35
- * @returns Operation JSON compressed to the binary format.
36
- */
37
- protected abstract _compressSingleOperation(operation: any): Uint8Array;
38
- /**
39
- * Decompresses combined operation using a proper compressor.
40
- *
41
- * @param data Data to compress.
42
- * @returns Decompressed operation in JSON format.
43
- */
44
- protected abstract _decompressSingleOperation(data: CompressedOperationsData): any;
45
- /**
46
- * Combine next operation into the combined one.
47
- *
48
- * @param nextOperation Operation to combine in JSON format.
49
- * @param combined Combined operation in JSON format.
50
- * @returns Combined operation in JSON format.
51
- */
52
- protected abstract _combineNext(nextOperation: any, combined: any): any;
53
- /**
54
- * Split operation from combined one.
55
- *
56
- * @param combined Combined operation in JSON format.
57
- * @returns Split operation in JSON format.
58
- */
59
- protected abstract _splitCurrent(combined: any): any;
60
- /**
61
- * Checks if two operations can be combined.
62
- */
63
- protected abstract _compareOperations(opA: any, opB: any): boolean;
64
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import ActionCompressor from './actioncompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- export default class DeletingActionCompressor extends ActionCompressor {
12
- /**
13
- * @inheritDoc
14
- */
15
- protected _combineNext(nextOperation: any, combined: any): any;
16
- /**
17
- * @inheritDoc
18
- */
19
- protected _splitCurrent(combined: any): any;
20
- /**
21
- * @inheritDoc
22
- */
23
- protected _compareOperations(opA: any, opB: any): boolean;
24
- /**
25
- * @inheritDoc
26
- */
27
- protected _compressSingleOperation(operation: any): Uint8Array;
28
- /**
29
- * @inheritDoc
30
- */
31
- protected _decompressSingleOperation(data: CompressedOperationsData): any;
32
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import ActionCompressor from './actioncompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- export default class ForwardDeletingActionCompressor extends ActionCompressor {
12
- /**
13
- * @inheritDoc
14
- */
15
- protected _combineNext(nextOperation: any, combined: any): any;
16
- /**
17
- * @inheritDoc
18
- */
19
- protected _splitCurrent(combined: any): any;
20
- /**
21
- * @inheritDoc
22
- */
23
- protected _compareOperations(opA: any, opB: any): boolean;
24
- /**
25
- * @inheritDoc
26
- */
27
- protected _compressSingleOperation(operation: any): Uint8Array;
28
- /**
29
- * @inheritDoc
30
- */
31
- protected _decompressSingleOperation(data: CompressedOperationsData): any;
32
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import ActionCompressor from './actioncompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- export default class TypingActionCompressor extends ActionCompressor {
12
- /**
13
- * @inheritDocs
14
- */
15
- protected _combineNext(nextOperation: any, combined: any): any;
16
- /**
17
- * @inheritDoc
18
- */
19
- protected _splitCurrent(combined: any): any;
20
- /**
21
- * @inheritDoc
22
- */
23
- protected _compareOperations(opA: any, opB: any): boolean;
24
- /**
25
- * @inheritDoc
26
- */
27
- protected _compressSingleOperation(operation: any): Uint8Array;
28
- /**
29
- * @inheritDoc
30
- */
31
- protected _decompressSingleOperation(data: CompressedOperationsData): any;
32
- }
@@ -1,20 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import ActionCompressor from './actioncompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- export default class UserSelectionActionCompressor extends ActionCompressor {
12
- /**
13
- * @inheritDoc
14
- */
15
- compress(result: CompressedOperationsData, operations: Array<any>): boolean;
16
- /**
17
- * @inheritDoc
18
- */
19
- decompress(result: Array<any>, data: CompressedOperationsData): void;
20
- }
@@ -1,49 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- /**
10
- * Compresses and decompresses given set of operations in JSON format to/from the binary format using `Protocol Buffers`.
11
- */
12
- export default class Compressor {
13
- constructor();
14
- /**
15
- * Compress given list of operations in JSON format.
16
- *
17
- * **Note** It tries to combine typing-like or deleting-like operations into the one buffer.
18
- * **Note** Input data will be consumed and modified during compression process. If you need untouched data
19
- * you need to copy it before the compression.
20
- */
21
- compress(operations: Array<any>): CompressedOperationsData;
22
- /**
23
- * Decompress given data to the list of operations in JSON format.
24
- *
25
- * **Note** Input data will be consumed during decompression process. If you need untouched data
26
- * you need to copy it before the decompression.
27
- *
28
- * @param data Compressed operations.
29
- * @returns List of operations in JSON format.
30
- */
31
- decompress(data: CompressedOperationsData): Array<any>;
32
- }
33
- /**
34
- * Compressed operations data.
35
- */
36
- export type CompressedOperationsData = {
37
- /**
38
- * List of operations compressed to the binary format.
39
- */
40
- buffers: Array<Uint8Array>;
41
- /**
42
- * List of compressor identifiers. According to this types a proper compressor will be used for the decompression.
43
- */
44
- types: Array<number>;
45
- /**
46
- * Base version of the first compressed operation.
47
- */
48
- baseVersion: number;
49
- };
package/dist/index.d.ts DELETED
@@ -1,9 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- export { default as Compressor, type CompressedOperationsData } from './compressor.js';
@@ -1,26 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import MarkerOperationCompressor from './markeroperationcompressor.js';
10
- import type { ProtobufDescriptor } from '../protobuffactory.js';
11
- import type { CompressedOperationsData } from '../compressor.js';
12
- import type { MarkerOperation } from 'ckeditor5/src/engine.js';
13
- export default class AnnotationMarkerOperationCompressor extends MarkerOperationCompressor {
14
- /**
15
- * @inheritDoc
16
- */
17
- constructor(id: number, name: string, descriptor: ProtobufDescriptor, namespaceToOmit: string);
18
- /**
19
- * @inheritDoc
20
- */
21
- compress(result: CompressedOperationsData, operations: Array<MarkerOperation>): boolean;
22
- /**
23
- * @inheritDoc
24
- */
25
- decompress(result: Array<MarkerOperation>, data: CompressedOperationsData): void;
26
- }
@@ -1,21 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import OperationCompressor from './operationcompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- import type { AttributeOperation } from 'ckeditor5/src/engine.js';
12
- export default class AttributeOperationCompressor extends OperationCompressor {
13
- /**
14
- * @inheritDoc
15
- */
16
- compress(result: CompressedOperationsData, operations: Array<AttributeOperation>): boolean;
17
- /**
18
- * @inheritDoc
19
- */
20
- decompress(result: Array<AttributeOperation>, data: CompressedOperationsData): void;
21
- }
@@ -1,21 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import OperationCompressor from './operationcompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- import type { InsertOperation } from 'ckeditor5/src/engine.js';
12
- export default class InsertOperationCompressor extends OperationCompressor {
13
- /**
14
- * @inheritDoc
15
- */
16
- compress(result: CompressedOperationsData, operations: Array<InsertOperation>): boolean;
17
- /**
18
- * @inheritDoc
19
- */
20
- decompress(result: Array<InsertOperation>, data: CompressedOperationsData): void;
21
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import OperationCompressor from './operationcompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- import type { MarkerOperation } from 'ckeditor5/src/engine.js';
12
- export default class MarkerOperationCompressor extends OperationCompressor {
13
- /**
14
- * @inheritDoc
15
- */
16
- decompress(result: Array<MarkerOperation>, data: CompressedOperationsData): void;
17
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import OperationCompressor from './operationcompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- import type { Operation } from 'ckeditor5/src/engine.js';
12
- /**
13
- * @extends OperationCompressor
14
- */
15
- export default class NoOperationCompressor extends OperationCompressor {
16
- /**
17
- * @inheritDoc
18
- */
19
- compress(result: CompressedOperationsData, operations: Array<Operation>): boolean;
20
- /**
21
- * @inheritDoc
22
- */
23
- decompress(result: Array<any>, data: CompressedOperationsData): void;
24
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import type { CompressedOperationsData } from '../compressor.js';
10
- import type { ProtobufDescriptor } from '../protobuffactory.js';
11
- import type { Operation } from 'ckeditor5/src/engine.js';
12
- /**
13
- * Compresses and decompresses single operation to the binary format.
14
- */
15
- export default class OperationCompressor {
16
- constructor(id: number, operationName: string, protobufDescriptor: ProtobufDescriptor);
17
- /**
18
- * Serializes and consumes the first operation from the list.
19
- *
20
- * @param result Object to which compression result will be added.
21
- * @param operations List of operations to compress. The first one will be compressed
22
- * and removed from the list.
23
- */
24
- compress(result: CompressedOperationsData, operations: Array<Operation>): boolean;
25
- /**
26
- * Deserializes and consumes buffered operation.
27
- *
28
- * @param result Decompressed operation.
29
- * @param data Data to decompress.
30
- */
31
- decompress(result: Array<Operation>, data: CompressedOperationsData): void;
32
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- export {};