@ckeditor/ckeditor5-operations-compressor 47.2.0-alpha.2 → 47.2.0-alpha.4
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.
- package/dist/index.js +2 -2
- package/package.json +3 -3
- package/src/actioncompressor/actioncompressor.js +1 -1
- package/src/actioncompressor/deletingactioncompressor.js +1 -1
- package/src/actioncompressor/forwarddeletingactioncompressor.js +1 -1
- package/src/actioncompressor/typingactioncompressor.js +1 -1
- package/src/actioncompressor/userselectionactioncompressor.js +1 -1
- package/src/compressor.js +1 -1
- package/src/index.js +1 -1
- package/src/lib/compiledmessages.js +2 -2
- package/src/lib/protobufdescriptions.js +1 -1
- package/src/operationcompressor/annotationmarkeroperationcompressor.js +1 -1
- package/src/operationcompressor/attributeoperationcompressor.js +1 -1
- package/src/operationcompressor/insertoperationcompressor.js +1 -1
- package/src/operationcompressor/markeroperationcompressor.js +1 -1
- package/src/operationcompressor/nooperationcompressor.js +1 -1
- package/src/operationcompressor/operationcompressor.js +1 -1
- package/src/protobuffactory.js +1 -1
- package/src/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x3b4ba2=_0x491e;function _0x5eb6(){var _0x320fba=['_id','3262645RaQLlR','9414YHKATg','483CQzyRf','2474346EIytmR','shift','11851592dshWnE','decompress','push','1368189BwijTL','7888QUWEbc','types','compress','19681321DcYXnJ','4smDvoo','10morJdS','_operationName','218csbpRY'];_0x5eb6=function(){return _0x320fba;};return _0x5eb6();}(function(_0x562ae6,_0x26521b){var _0x215c65=_0x491e,_0x5bccd9=_0x562ae6();while(!![]){try{var _0x22dd44=parseInt(_0x215c65(0x19a))/0x1*(-parseInt(_0x215c65(0x193))/0x2)+parseInt(_0x215c65(0x19f))/0x3+parseInt(_0x215c65(0x197))/0x4*(parseInt(_0x215c65(0x19c))/0x5)+parseInt(_0x215c65(0x19d))/0x6*(parseInt(_0x215c65(0x19e))/0x7)+-parseInt(_0x215c65(0x1a1))/0x8+-parseInt(_0x215c65(0x192))/0x9+-parseInt(_0x215c65(0x198))/0xa*(-parseInt(_0x215c65(0x196))/0xb);if(_0x22dd44===_0x26521b)break;else _0x5bccd9['push'](_0x5bccd9['shift']());}catch(_0x803e4b){_0x5bccd9['push'](_0x5bccd9['shift']());}}}(_0x5eb6,0xd7371));function _0x491e(_0x31726e,_0x2e1d42){var _0x5eb6fb=_0x5eb6();return _0x491e=function(_0x491ea1,_0x1167ce){_0x491ea1=_0x491ea1-0x191;var _0x429190=_0x5eb6fb[_0x491ea1];return _0x429190;},_0x491e(_0x31726e,_0x2e1d42);}import{OperationCompressor as _0x469207}from'./operationcompressor.js';export class NoOperationCompressor extends _0x469207{[_0x3b4ba2(0x195)](_0x15aebf,_0x218ae7){var _0xc88cdc=_0x3b4ba2;return _0x218ae7[_0xc88cdc(0x1a0)](),_0x15aebf[_0xc88cdc(0x194)][_0xc88cdc(0x191)](this[_0xc88cdc(0x19b)]),!0x0;}[_0x3b4ba2(0x1a2)](_0x5cdf47,_0x24b703){var _0x705e45=_0x3b4ba2;_0x24b703[_0x705e45(0x194)][_0x705e45(0x1a0)](),_0x5cdf47[_0x705e45(0x191)]({'__className':this[_0x705e45(0x199)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2dc117=_0x2463;(function(_0x22fba2,_0x4a14a1){const _0x3c5c3c=_0x2463,_0x56413a=_0x22fba2();while(!![]){try{const _0x46ab7a=parseInt(_0x3c5c3c(0x116))/0x1*(parseInt(_0x3c5c3c(0x122))/0x2)+parseInt(_0x3c5c3c(0x11e))/0x3+-parseInt(_0x3c5c3c(0x121))/0x4+parseInt(_0x3c5c3c(0x114))/0x5+parseInt(_0x3c5c3c(0x123))/0x6+-parseInt(_0x3c5c3c(0x11b))/0x7*(-parseInt(_0x3c5c3c(0x124))/0x8)+-parseInt(_0x3c5c3c(0x117))/0x9*(parseInt(_0x3c5c3c(0x119))/0xa);if(_0x46ab7a===_0x4a14a1)break;else _0x56413a['push'](_0x56413a['shift']());}catch(_0x4757ad){_0x56413a['push'](_0x56413a['shift']());}}}(_0x5772,0xe8018));function _0x5772(){const _0x1d7664=['push','2773050kxOrsD','compress','_operationName','272416nPLwsF','2keVfYJ','3684144yUFOiC','2698504ytORYq','shift','__className','buffers','5765435dasHDc','types','962257UtGtbu','27UHGWNc','_id','9908770qzjfAJ','decompress','7MRKbCr','_protobufDescriptor'];_0x5772=function(){return _0x1d7664;};return _0x5772();}function _0x2463(_0x17d0d8,_0x194b25){const _0x57721b=_0x5772();return _0x2463=function(_0x2463da,_0x152e18){_0x2463da=_0x2463da-0x113;let _0xb52f4d=_0x57721b[_0x2463da];return _0xb52f4d;},_0x2463(_0x17d0d8,_0x194b25);}import{parsePositionBeforeCompression as _0x1f7ebb,parsePositionAfterCompression as _0x806e01}from'../utils.js';export class OperationCompressor{[_0x2dc117(0x118)];[_0x2dc117(0x120)];[_0x2dc117(0x11c)];constructor(_0x43842d,_0x3b7532,_0x3be72b){const _0x498379=_0x2dc117;this[_0x498379(0x118)]=_0x43842d,this[_0x498379(0x120)]=_0x3b7532,this[_0x498379(0x11c)]=_0x3be72b;}[_0x2dc117(0x11f)](_0xa1dc9c,_0x19743d){const _0x426604=_0x2dc117,_0x247ead=_0x19743d[_0x426604(0x125)]();return _0x1f7ebb(_0x247ead),_0xa1dc9c[_0x426604(0x113)][_0x426604(0x11d)](this[_0x426604(0x11c)][_0x426604(0x11f)](_0x247ead)),_0xa1dc9c[_0x426604(0x115)][_0x426604(0x11d)](this[_0x426604(0x118)]),!0x0;}[_0x2dc117(0x11a)](_0x4f5d84,_0x49d733){const _0x12c15f=_0x2dc117;_0x49d733[_0x12c15f(0x115)][_0x12c15f(0x125)]();const _0x2bdfa1=this[_0x12c15f(0x11c)][_0x12c15f(0x11a)](_0x49d733[_0x12c15f(0x113)][_0x12c15f(0x125)]());_0x806e01(_0x2bdfa1),_0x2bdfa1[_0x12c15f(0x126)]=this[_0x12c15f(0x120)],_0x4f5d84[_0x12c15f(0x11d)](_0x2bdfa1);}}
|
package/src/protobuffactory.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x120e64=_0x2b3c;(function(_0x24c877,_0x1d5d82){const _0x425912=_0x2b3c,_0x40a4a0=_0x24c877();while(!![]){try{const _0x413079=-parseInt(_0x425912(0xdd))/0x1+-parseInt(_0x425912(0xe0))/0x2+-parseInt(_0x425912(0xea))/0x3+parseInt(_0x425912(0xe4))/0x4*(-parseInt(_0x425912(0xde))/0x5)+-parseInt(_0x425912(0xdf))/0x6+parseInt(_0x425912(0xe7))/0x7*(parseInt(_0x425912(0xe9))/0x8)+parseInt(_0x425912(0xe1))/0x9*(parseInt(_0x425912(0xed))/0xa);if(_0x413079===_0x1d5d82)break;else _0x40a4a0['push'](_0x40a4a0['shift']());}catch(_0x126efc){_0x40a4a0['push'](_0x40a4a0['shift']());}}}(_0x2919,0x43ae9));function _0x2919(){const _0x1ba75f=['create','68392sTHrVS','1429293nZZtzQ','finish','encode','1321660yxlHsB','decode','toObject','_protobufRoot','getDescriptor','28364SylRPZ','33445NDkxjn','163212tikBTw','109624VPFrRJ','54HBeOIH','decompress','compress','116EqAdzQ','verify','_protobuf','217LGEXgJ'];_0x2919=function(){return _0x1ba75f;};return _0x2919();}function _0x2b3c(_0x5ebe31,_0x24950f){const _0x2919d2=_0x2919();return _0x2b3c=function(_0x2b3c68,_0x4396e6){_0x2b3c68=_0x2b3c68-0xdd;let _0x260894=_0x2919d2[_0x2b3c68];return _0x260894;},_0x2b3c(_0x5ebe31,_0x24950f);}import{messages as _0x3980f8}from'./lib/compiledmessages.js';export class ProtobufFactory{[_0x120e64(0xf0)];constructor(){const _0x45a82=_0x120e64;this[_0x45a82(0xf0)]=_0x3980f8;}[_0x120e64(0xf1)](_0x279fca){const _0x109e9e=_0x120e64;return new ProtobufDescriptor(this[_0x109e9e(0xf0)][_0x279fca]);}}export class ProtobufDescriptor{[_0x120e64(0xe6)];constructor(_0x362397){const _0x1ef1b9=_0x120e64;this[_0x1ef1b9(0xe6)]=_0x362397;}[_0x120e64(0xe3)](_0x192c4d){const _0x5cfbfb=_0x120e64,_0x4c6e46=this[_0x5cfbfb(0xe6)][_0x5cfbfb(0xe5)](_0x192c4d);if(_0x4c6e46)throw Error(_0x4c6e46);return this[_0x5cfbfb(0xe6)][_0x5cfbfb(0xec)](this[_0x5cfbfb(0xe6)][_0x5cfbfb(0xe8)](_0x192c4d))[_0x5cfbfb(0xeb)]();}[_0x120e64(0xe2)](_0x4cdffb){const _0x4d2956=_0x120e64;return this[_0x4d2956(0xe6)][_0x4d2956(0xef)](this[_0x4d2956(0xe6)][_0x4d2956(0xee)](_0x4cdffb),{'oneofs':!0x0});}}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x57a337,_0x4da771){const _0x5e9cf1=_0x405d,_0x531691=_0x57a337();while(!![]){try{const _0x436d0f=-parseInt(_0x5e9cf1(0xd1))/0x1+-parseInt(_0x5e9cf1(0xde))/0x2*(-parseInt(_0x5e9cf1(0xd8))/0x3)+-parseInt(_0x5e9cf1(0xcf))/0x4*(-parseInt(_0x5e9cf1(0xda))/0x5)+parseInt(_0x5e9cf1(0xd9))/0x6*(-parseInt(_0x5e9cf1(0xd6))/0x7)+-parseInt(_0x5e9cf1(0xdb))/0x8*(parseInt(_0x5e9cf1(0xdd))/0x9)+-parseInt(_0x5e9cf1(0xdc))/0xa*(-parseInt(_0x5e9cf1(0xdf))/0xb)+-parseInt(_0x5e9cf1(0xd0))/0xc*(-parseInt(_0x5e9cf1(0xd5))/0xd);if(_0x436d0f===_0x4da771)break;else _0x531691['push'](_0x531691['shift']());}catch(_0x1931bf){_0x531691['push'](_0x531691['shift']());}}}(_0x2f5a,0x85d88));import{cloneDeep as _0x4f6022,isEqual as _0xf2fc44,isObject as _0x42d07f}from'es-toolkit/compat';function _0x2f5a(){const _0x1ff606=['32nWkKms','50OfxdUf','1837872xTDoEE','4MxYgzM','2381599CrbpIp','root','length','nodes','$graveyard','4YwKTJe','144wHBqgQ','931166KbfUCY','path','main','rootMain','324129hdfxNG','21wWBvSg','rootGraveyard','354189ZrGfoO','219126SgXGZx','3939630fgeMHg'];_0x2f5a=function(){return _0x1ff606;};return _0x2f5a();}export function getPositionShiftedBy(_0x1a5a4b,_0x561576){const _0x5a735c=_0x405d,_0x52a4fa=_0x4f6022(_0x1a5a4b);return _0x52a4fa[_0x5a735c(0xd2)][_0x52a4fa[_0x5a735c(0xd2)][_0x5a735c(0xe1)]-0x1]+=_0x561576,_0x52a4fa;}export function arePositionsEqual(_0x372992,_0x1dbba1){const _0x2e2069=_0x405d;return _0x372992[_0x2e2069(0xe0)]===_0x1dbba1[_0x2e2069(0xe0)]&&_0xf2fc44(_0x372992[_0x2e2069(0xd2)],_0x1dbba1[_0x2e2069(0xd2)]);}export function parsePositionBeforeCompression(_0x2eeea1){const _0xc085d6=_0x405d;P(_0x2eeea1,_0xc57e26=>(_0xc085d6(0xd3)==_0xc57e26[_0xc085d6(0xe0)]?(_0xc57e26[_0xc085d6(0xd4)]=!0x0,delete _0xc57e26[_0xc085d6(0xe0)]):_0xc085d6(0xe3)==_0xc57e26[_0xc085d6(0xe0)]&&(_0xc57e26[_0xc085d6(0xd7)]=!0x0,delete _0xc57e26[_0xc085d6(0xe0)]),_0xc57e26));}export function parsePositionAfterCompression(_0x5e6e3e){const _0x129d08=_0x405d;P(_0x5e6e3e,_0x2ec75e=>(_0x2ec75e[_0x129d08(0xd4)]?(_0x2ec75e[_0x129d08(0xe0)]=_0x129d08(0xd3),delete _0x2ec75e[_0x129d08(0xd4)]):_0x2ec75e[_0x129d08(0xd7)]&&(_0x2ec75e[_0x129d08(0xe0)]=_0x129d08(0xe3),delete _0x2ec75e[_0x129d08(0xd7)]),_0x2ec75e));}function _0x405d(_0x5f14e0,_0x520636){const _0x2f5a44=_0x2f5a();return _0x405d=function(_0x405da9,_0x174695){_0x405da9=_0x405da9-0xcf;let _0x4abe5e=_0x2f5a44[_0x405da9];return _0x4abe5e;},_0x405d(_0x5f14e0,_0x520636);}function P(_0x33d315,_0x20332b){const _0x30de04=_0x405d;for(const _0x5c27ed in _0x33d315){const _0xd4fb0=_0x33d315[_0x5c27ed];_0x30de04(0xe2)!==_0x5c27ed&&_0x42d07f(_0xd4fb0)&&(_0xd4fb0[_0x30de04(0xd2)]&&(_0xd4fb0[_0x30de04(0xe0)]||_0xd4fb0[_0x30de04(0xd4)]||_0xd4fb0[_0x30de04(0xd7)])?_0x33d315[_0x5c27ed]=_0x20332b(_0xd4fb0):P(_0xd4fb0,_0x20332b));}return _0x33d315;}
|