UNPKG

@ckeditor/ckeditor5-operations-compressor

Version:

CKEditor 5 operations compressor for real-time collaboration.

23 lines 4.12 kB
/* * Copyright (c) 2003-2026, 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x5d07da=_0x5510;function _0x5510(_0x136402,_0x1b6f20){const _0x11e32f=_0x11e3();return _0x5510=function(_0x551064,_0x46122e){_0x551064=_0x551064-0x7b;let _0x2eafb5=_0x11e32f[_0x551064];return _0x2eafb5;},_0x5510(_0x136402,_0x1b6f20);}(function(_0x32fa96,_0x270476){const _0x5f3882=_0x5510,_0x342eb4=_0x32fa96();while(!![]){try{const _0x4aa84a=parseInt(_0x5f3882(0x8a))/0x1*(parseInt(_0x5f3882(0x7b))/0x2)+-parseInt(_0x5f3882(0x89))/0x3+parseInt(_0x5f3882(0x7c))/0x4*(parseInt(_0x5f3882(0x86))/0x5)+parseInt(_0x5f3882(0x90))/0x6*(parseInt(_0x5f3882(0x82))/0x7)+-parseInt(_0x5f3882(0x91))/0x8*(parseInt(_0x5f3882(0x81))/0x9)+-parseInt(_0x5f3882(0x8b))/0xa+parseInt(_0x5f3882(0x8f))/0xb;if(_0x4aa84a===_0x270476)break;else _0x342eb4['push'](_0x342eb4['shift']());}catch(_0x56edc6){_0x342eb4['push'](_0x342eb4['shift']());}}}(_0x11e3,0x1a2c7));import{OperationCompressor as _0x524286}from'./operationcompressor.js';import{parsePositionBeforeCompression as _0x38146e,parsePositionAfterCompression as _0x12da78}from'../utils.js';export class AttributeOperationCompressor extends _0x524286{[_0x5d07da(0x7e)](_0x3e9567,_0x166f2a){const _0x4152a4=_0x5d07da,_0xe21d26=_0x166f2a[_0x4152a4(0x8c)]();return this[_0x4152a4(0x98)](_0x4152a4(0x8e),_0xe21d26),this[_0x4152a4(0x98)](_0x4152a4(0x7f),_0xe21d26),_0x38146e(_0xe21d26),_0x3e9567[_0x4152a4(0x80)][_0x4152a4(0x8d)](this[_0x4152a4(0x95)][_0x4152a4(0x7e)](_0xe21d26)),_0x3e9567[_0x4152a4(0x84)][_0x4152a4(0x8d)](this[_0x4152a4(0x85)]),!0x0;}[_0x5d07da(0x93)](_0x20b539,_0x1f2d15){const _0x2a768e=_0x5d07da,{types:_0x101a8c,buffers:_0x4f00c3}=_0x1f2d15,_0x18e5a3=this[_0x2a768e(0x95)][_0x2a768e(0x93)](_0x4f00c3[_0x2a768e(0x8c)]());_0x101a8c[_0x2a768e(0x8c)](),this[_0x2a768e(0x94)](_0x2a768e(0x8e),_0x18e5a3),this[_0x2a768e(0x94)](_0x2a768e(0x7f),_0x18e5a3),_0x12da78(_0x18e5a3),_0x18e5a3[_0x2a768e(0x96)]=this[_0x2a768e(0x7d)],_0x20b539[_0x2a768e(0x8d)](_0x18e5a3);}[_0x5d07da(0x98)](_0x427a3c,_0x216f5a){const _0x256f84=_0x5d07da,_0xb8cde8=_0x216f5a[_0x427a3c];_0x256f84(0x92)==typeof _0xb8cde8?_0x216f5a[_0x427a3c+_0x256f84(0x97)]=_0xb8cde8:_0x216f5a[_0x427a3c+_0x256f84(0x83)]=JSON[_0x256f84(0x87)](_0xb8cde8);}[_0x5d07da(0x94)](_0x1754d4,_0x330b4e){const _0x44ccfb=_0x5d07da,_0x11ee1e=_0x1754d4+_0x44ccfb(0x83);_0x330b4e[_0x11ee1e]?(_0x330b4e[_0x1754d4]=JSON[_0x44ccfb(0x88)](_0x330b4e[_0x11ee1e]),delete _0x330b4e[_0x11ee1e]):(_0x330b4e[_0x1754d4]=_0x330b4e[_0x1754d4+_0x44ccfb(0x97)],delete _0x330b4e[_0x1754d4+_0x44ccfb(0x97)]);}}function _0x11e3(){const _0x5a079a=['stringify','parse','486942dGFRRo','8522HGVcDc','1449510KynCda','shift','push','oldValue','977801kKLcXl','6WEYPMx','69336WwUMMS','boolean','decompress','_deserializeOneOf','_protobufDescriptor','__className','Boolean','_serializeOneOf','22kEadzR','40UYGZIZ','_operationName','compress','newValue','buffers','63YUpIWk','1248086zueXqE','Json','types','_id','57105FHrzcM'];_0x11e3=function(){return _0x5a079a;};return _0x11e3();}