UNPKG

@ckeditor/ckeditor5-operations-compressor

Version:

CKEditor 5 operations compressor for real-time collaboration.

23 lines 4.21 kB
/* * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ function _0x3fb3(){const _0x3b852f=['3TCDDqY','decompress','Json','7660562sLysRx','buffers','__className','150AINHpx','_serializeOneOf','596bbFoKk','12BBLkvt','_id','_protobufDescriptor','stringify','_operationName','136545GGVtWf','2137324YMgizW','boolean','oldValue','push','parse','1791486RScyEZ','compress','2394tVxTBC','types','newValue','4746489KADVkX','shift','Boolean','9088152VwHkNp','30Qhtjgm','_deserializeOneOf'];_0x3fb3=function(){return _0x3b852f;};return _0x3fb3();}const _0x5aeedb=_0x2c86;(function(_0xc4f61e,_0x24f77a){const _0x4ab55a=_0x2c86,_0x5911be=_0xc4f61e();while(!![]){try{const _0x58726a=parseInt(_0x4ab55a(0x1d6))/0x1*(parseInt(_0x4ab55a(0x1e4))/0x2)+parseInt(_0x4ab55a(0x1ce))/0x3*(parseInt(_0x4ab55a(0x1dd))/0x4)+-parseInt(_0x4ab55a(0x1dc))/0x5*(-parseInt(_0x4ab55a(0x1d4))/0x6)+parseInt(_0x4ab55a(0x1d1))/0x7+-parseInt(_0x4ab55a(0x1cb))/0x8+parseInt(_0x4ab55a(0x1e2))/0x9*(-parseInt(_0x4ab55a(0x1cc))/0xa)+parseInt(_0x4ab55a(0x1e7))/0xb*(-parseInt(_0x4ab55a(0x1d7))/0xc);if(_0x58726a===_0x24f77a)break;else _0x5911be['push'](_0x5911be['shift']());}catch(_0x50f299){_0x5911be['push'](_0x5911be['shift']());}}}(_0x3fb3,0xd1ffa));function _0x2c86(_0x3971ed,_0x1f7405){const _0x3fb3f2=_0x3fb3();return _0x2c86=function(_0x2c8673,_0x13f227){_0x2c8673=_0x2c8673-0x1cb;let _0x1701e6=_0x3fb3f2[_0x2c8673];return _0x1701e6;},_0x2c86(_0x3971ed,_0x1f7405);}import{OperationCompressor as _0x1d1a2f}from'./operationcompressor.js';import{parsePositionBeforeCompression as _0xb549b6,parsePositionAfterCompression as _0x35f7d3}from'../utils.js';export class AttributeOperationCompressor extends _0x1d1a2f{[_0x5aeedb(0x1e3)](_0x324430,_0x341c4f){const _0x60f20=_0x5aeedb,_0x9f2c96=_0x341c4f[_0x60f20(0x1e8)]();return this[_0x60f20(0x1d5)](_0x60f20(0x1df),_0x9f2c96),this[_0x60f20(0x1d5)](_0x60f20(0x1e6),_0x9f2c96),_0xb549b6(_0x9f2c96),_0x324430[_0x60f20(0x1d2)][_0x60f20(0x1e0)](this[_0x60f20(0x1d9)][_0x60f20(0x1e3)](_0x9f2c96)),_0x324430[_0x60f20(0x1e5)][_0x60f20(0x1e0)](this[_0x60f20(0x1d8)]),!0x0;}[_0x5aeedb(0x1cf)](_0x3461ad,_0x265caa){const _0x3360a4=_0x5aeedb,{types:_0x11f833,buffers:_0x34ae1f}=_0x265caa,_0x4c6221=this[_0x3360a4(0x1d9)][_0x3360a4(0x1cf)](_0x34ae1f[_0x3360a4(0x1e8)]());_0x11f833[_0x3360a4(0x1e8)](),this[_0x3360a4(0x1cd)](_0x3360a4(0x1df),_0x4c6221),this[_0x3360a4(0x1cd)](_0x3360a4(0x1e6),_0x4c6221),_0x35f7d3(_0x4c6221),_0x4c6221[_0x3360a4(0x1d3)]=this[_0x3360a4(0x1db)],_0x3461ad[_0x3360a4(0x1e0)](_0x4c6221);}[_0x5aeedb(0x1d5)](_0x2b8654,_0x5fd1ac){const _0x5b8b4a=_0x5aeedb,_0x2ffc71=_0x5fd1ac[_0x2b8654];_0x5b8b4a(0x1de)==typeof _0x2ffc71?_0x5fd1ac[_0x2b8654+_0x5b8b4a(0x1e9)]=_0x2ffc71:_0x5fd1ac[_0x2b8654+_0x5b8b4a(0x1d0)]=JSON[_0x5b8b4a(0x1da)](_0x2ffc71);}[_0x5aeedb(0x1cd)](_0x3961e9,_0x12ae86){const _0x3af83c=_0x5aeedb,_0x34f3e9=_0x3961e9+_0x3af83c(0x1d0);_0x12ae86[_0x34f3e9]?(_0x12ae86[_0x3961e9]=JSON[_0x3af83c(0x1e1)](_0x12ae86[_0x34f3e9]),delete _0x12ae86[_0x34f3e9]):(_0x12ae86[_0x3961e9]=_0x12ae86[_0x3961e9+_0x3af83c(0x1e9)],delete _0x12ae86[_0x3961e9+_0x3af83c(0x1e9)]);}}