@ckeditor/ckeditor5-operations-compressor 47.6.0 → 47.6.1-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.
- 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/errors.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
|
-
const
|
|
23
|
+
const _0x3e65b5=_0x38d7;function _0x38d7(_0x1aeda4,_0x2e04c5){const _0x18a7d6=_0x18a7();return _0x38d7=function(_0x38d7ce,_0x2227ad){_0x38d7ce=_0x38d7ce-0x13f;let _0x1a66af=_0x18a7d6[_0x38d7ce];return _0x1a66af;},_0x38d7(_0x1aeda4,_0x2e04c5);}(function(_0x274b3d,_0x604563){const _0x29b8ab=_0x38d7,_0x14f356=_0x274b3d();while(!![]){try{const _0x2f7f24=parseInt(_0x29b8ab(0x142))/0x1+parseInt(_0x29b8ab(0x145))/0x2*(parseInt(_0x29b8ab(0x14c))/0x3)+-parseInt(_0x29b8ab(0x141))/0x4+parseInt(_0x29b8ab(0x14a))/0x5*(parseInt(_0x29b8ab(0x146))/0x6)+-parseInt(_0x29b8ab(0x156))/0x7+-parseInt(_0x29b8ab(0x153))/0x8+-parseInt(_0x29b8ab(0x143))/0x9;if(_0x2f7f24===_0x604563)break;else _0x14f356['push'](_0x14f356['shift']());}catch(_0xabf1f7){_0x14f356['push'](_0x14f356['shift']());}}}(_0x18a7,0xe8d54));import{cloneDeep as _0x35c831}from'es-toolkit/compat';function _0x18a7(){const _0x73ad9c=['5119744Moywuw','1787554nvWExG','13796883KQjlPm','_splitCurrent','6LgVdHt','40650WHmBXO','index','_compressSingleOperation','types','810MQFacx','operations','1437033wGmrAW','_context','typeIndex','compress','_decompressSingleOperation','push','_id','457272ygoExC','_compareOperations','_combineNext','3488597SqmtpQ','decompress','buffers'];_0x18a7=function(){return _0x73ad9c;};return _0x18a7();}export class ActionCompressor{[_0x3e65b5(0x152)];[_0x3e65b5(0x14d)];constructor(_0x2b8bb5,_0x4f3cbb){const _0x31dfcf=_0x3e65b5;this[_0x31dfcf(0x152)]=_0x2b8bb5,this[_0x31dfcf(0x14d)]=_0x4f3cbb;}[_0x3e65b5(0x14f)](_0x1a48d2,_0x2bbf1e){const _0x494d9d=_0x3e65b5;let _0x416b81,_0x1dcb51=_0x2bbf1e[_0x494d9d(0x14b)][_0x2bbf1e[_0x494d9d(0x147)]],_0x5ee70b=_0x2bbf1e[_0x494d9d(0x14b)][_0x2bbf1e[_0x494d9d(0x147)]+0x1];for(;_0x5ee70b&&this[_0x494d9d(0x154)](_0x1dcb51,_0x5ee70b);)_0x416b81?(_0x416b81=this[_0x494d9d(0x155)](_0x1dcb51,_0x416b81),_0x1a48d2[_0x494d9d(0x149)][_0x494d9d(0x151)](0x0)):(_0x416b81=_0x35c831(_0x1dcb51),_0x1a48d2[_0x494d9d(0x149)][_0x494d9d(0x151)](this[_0x494d9d(0x152)])),_0x2bbf1e[_0x494d9d(0x147)]++,_0x1dcb51=_0x2bbf1e[_0x494d9d(0x14b)][_0x2bbf1e[_0x494d9d(0x147)]],_0x5ee70b=_0x2bbf1e[_0x494d9d(0x14b)][_0x2bbf1e[_0x494d9d(0x147)]+0x1];return!!_0x416b81&&(_0x416b81=this[_0x494d9d(0x155)](_0x2bbf1e[_0x494d9d(0x14b)][_0x2bbf1e[_0x494d9d(0x147)]++],_0x416b81),_0x1a48d2[_0x494d9d(0x149)][_0x494d9d(0x151)](0x0),_0x1a48d2[_0x494d9d(0x140)][_0x494d9d(0x151)](this[_0x494d9d(0x148)](_0x416b81)),!0x0);}[_0x3e65b5(0x13f)](_0x37df35,_0xbc84f3){const _0x1d5900=_0x3e65b5,_0x1127bf=this[_0x1d5900(0x150)](_0xbc84f3);for(;0x0==_0xbc84f3[_0x1d5900(0x149)][_0xbc84f3[_0x1d5900(0x14e)]];)_0xbc84f3[_0x1d5900(0x14e)]++,_0x37df35[_0x1d5900(0x151)](this[_0x1d5900(0x144)](_0x1127bf));_0x37df35[_0x1d5900(0x151)](_0x1127bf);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33652b=_0x455f;(function(_0x1f82aa,_0x2773dd){const _0x286dcf=_0x455f,_0x3d61eb=_0x1f82aa();while(!![]){try{const _0x35580b=parseInt(_0x286dcf(0x1a3))/0x1+-parseInt(_0x286dcf(0x1a0))/0x2*(parseInt(_0x286dcf(0x1a1))/0x3)+-parseInt(_0x286dcf(0x19d))/0x4+parseInt(_0x286dcf(0x1ae))/0x5*(parseInt(_0x286dcf(0x1a8))/0x6)+-parseInt(_0x286dcf(0x19e))/0x7+parseInt(_0x286dcf(0x1b1))/0x8+-parseInt(_0x286dcf(0x1a6))/0x9*(-parseInt(_0x286dcf(0x1b8))/0xa);if(_0x35580b===_0x2773dd)break;else _0x3d61eb['push'](_0x3d61eb['shift']());}catch(_0x25c66e){_0x3d61eb['push'](_0x3d61eb['shift']());}}}(_0x2b51,0xe4a73));import{ActionCompressor as _0x1f075c}from'./actioncompressor.js';function _0x455f(_0x3c4e79,_0xf4e5e){const _0x2b518a=_0x2b51();return _0x455f=function(_0x455f7b,_0xebae3f){_0x455f7b=_0x455f7b-0x19d;let _0x1c02d6=_0x2b518a[_0x455f7b];return _0x1c02d6;},_0x455f(_0x3c4e79,_0xf4e5e);}import{arePositionsEqual as _0x3ebe4a,getPositionShiftedBy as _0x5e38ae}from'../utils.js';function _0x2b51(){const _0x44cd43=['wasUndone','sourcePosition','_compareOperations','compress','_compressSingleOperation','53700gzqTgp','MoveOperation','1206876ZRyNHa','5487020dHkTqD','decompress','1774166gTQmXt','3lEsfFc','buffers','1269845QrYcQt','_getCompressorByName','_context','279zMRbsZ','_combineNext','853644ZHHrqv','_checkOperation','howMany','$graveyard','_decompressSingleOperation','targetPosition','45lMdjrj','_splitCurrent','__className','1539552AuavzJ','root'];_0x2b51=function(){return _0x44cd43;};return _0x2b51();}import{cloneDeep as _0xad04f9}from'es-toolkit/compat';export class DeletingActionCompressor extends _0x1f075c{[_0x33652b(0x1a7)](_0x1ac0ac,_0x347701){const _0x4808e0=_0x33652b;return _0x347701[_0x4808e0(0x1aa)]++,_0x347701[_0x4808e0(0x1b4)]=_0xad04f9(_0x1ac0ac[_0x4808e0(0x1b4)]),_0x347701;}[_0x33652b(0x1af)](_0x2c1881){const _0x7c3675=_0x33652b,_0x515104=_0xad04f9(_0x2c1881);return _0x2c1881[_0x7c3675(0x1aa)]--,_0x515104[_0x7c3675(0x1aa)]=0x1,_0x515104[_0x7c3675(0x1b4)]=_0x5e38ae(_0x515104[_0x7c3675(0x1b4)],_0x2c1881[_0x7c3675(0x1aa)]),_0x515104;}[_0x33652b(0x1b5)](_0x5ead0f,_0x216914){const _0x3ca144=_0x33652b;return!(!this[_0x3ca144(0x1a9)](_0x5ead0f)||!this[_0x3ca144(0x1a9)](_0x216914))&&(_0x3ebe4a(_0x5e38ae(_0x5ead0f[_0x3ca144(0x1b4)],-0x1),_0x216914[_0x3ca144(0x1b4)])&&_0x3ebe4a(_0x5ead0f[_0x3ca144(0x1ad)],_0x216914[_0x3ca144(0x1ad)]));}[_0x33652b(0x1b7)](_0x53b2f6){const _0x1ec491=_0x33652b,_0x22f332={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x1ec491(0x1a5)][_0x1ec491(0x1a4)](_0x1ec491(0x1b9))[_0x1ec491(0x1b6)](_0x22f332,{'operations':[_0x53b2f6],'index':0x0}),_0x22f332[_0x1ec491(0x1a2)][0x0];}[_0x33652b(0x1ac)](_0x323231){const _0x53b776=_0x33652b,_0x23853d=[];return this[_0x53b776(0x1a5)][_0x53b776(0x1a4)](_0x53b776(0x1b9))[_0x53b776(0x19f)](_0x23853d,_0x323231),_0x23853d[0x0];}[_0x33652b(0x1a9)](_0x96b6d6){const _0x2701c0=_0x33652b;return _0x2701c0(0x1b9)==_0x96b6d6[_0x2701c0(0x1b0)]&&_0x2701c0(0x1ab)==_0x96b6d6[_0x2701c0(0x1ad)][_0x2701c0(0x1b2)]&&0x1==_0x96b6d6[_0x2701c0(0x1aa)]&&!_0x96b6d6[_0x2701c0(0x1b3)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b1f3d=_0xd4bc;function _0x3a8f(){const _0xb2204c=['__className','1842EqvdQF','19715atpvlR','40IXqzSV','howMany','_decompressSingleOperation','wasUndone','11848yQDBfD','1651896cfLttZ','sourcePosition','6146KLhyID','MoveOperation','decompress','_compressSingleOperation','827916xlNMRZ','3VTWZNG','_compareOperations','root','_context','218636RSVlfx','_checkOperation','1926868diGdvW','buffers','_combineNext','_splitCurrent','_getCompressorByName','29836466vTCMWD','compress','targetPosition','$graveyard'];_0x3a8f=function(){return _0xb2204c;};return _0x3a8f();}(function(_0x3625aa,_0x3990de){const _0x1a8b1c=_0xd4bc,_0x4c6601=_0x3625aa();while(!![]){try{const _0x5cbb2d=-parseInt(_0x1a8b1c(0x1ba))/0x1+-parseInt(_0x1a8b1c(0x1b5))/0x2+parseInt(_0x1a8b1c(0x1b6))/0x3*(parseInt(_0x1a8b1c(0x1bc))/0x4)+-parseInt(_0x1a8b1c(0x1a9))/0x5*(parseInt(_0x1a8b1c(0x1c6))/0x6)+parseInt(_0x1a8b1c(0x1b1))/0x7*(-parseInt(_0x1a8b1c(0x1ae))/0x8)+parseInt(_0x1a8b1c(0x1af))/0x9*(parseInt(_0x1a8b1c(0x1aa))/0xa)+parseInt(_0x1a8b1c(0x1c1))/0xb;if(_0x5cbb2d===_0x3990de)break;else _0x4c6601['push'](_0x4c6601['shift']());}catch(_0xeab5a3){_0x4c6601['push'](_0x4c6601['shift']());}}}(_0x3a8f,0xbf9f6));import{ActionCompressor as _0x5894af}from'./actioncompressor.js';import{arePositionsEqual as _0x35a725}from'../utils.js';function _0xd4bc(_0x20e454,_0x44f538){const _0x3a8fb0=_0x3a8f();return _0xd4bc=function(_0xd4bc2c,_0x25f286){_0xd4bc2c=_0xd4bc2c-0x1a9;let _0x3cf21f=_0x3a8fb0[_0xd4bc2c];return _0x3cf21f;},_0xd4bc(_0x20e454,_0x44f538);}import{cloneDeep as _0x463603}from'es-toolkit/compat';export class ForwardDeletingActionCompressor extends _0x5894af{[_0x3b1f3d(0x1be)](_0x135e08,_0x5dba10){const _0x43a0cd=_0x3b1f3d;return _0x5dba10[_0x43a0cd(0x1ab)]++,_0x5dba10;}[_0x3b1f3d(0x1bf)](_0x1a0fd3){const _0xb412f1=_0x3b1f3d,_0x42acee=_0x463603(_0x1a0fd3);return _0x42acee[_0xb412f1(0x1ab)]=0x1,_0x1a0fd3[_0xb412f1(0x1ab)]--,_0x42acee;}[_0x3b1f3d(0x1b7)](_0x35e105,_0x1a2491){const _0x5de0f1=_0x3b1f3d;return!(!this[_0x5de0f1(0x1bb)](_0x35e105)||!this[_0x5de0f1(0x1bb)](_0x1a2491))&&(_0x35a725(_0x35e105[_0x5de0f1(0x1b0)],_0x1a2491[_0x5de0f1(0x1b0)])&&_0x35a725(_0x35e105[_0x5de0f1(0x1c3)],_0x1a2491[_0x5de0f1(0x1c3)]));}[_0x3b1f3d(0x1b4)](_0x4450fb){const _0x34bf0a=_0x3b1f3d,_0x50e393={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x34bf0a(0x1b9)][_0x34bf0a(0x1c0)](_0x34bf0a(0x1b2))[_0x34bf0a(0x1c2)](_0x50e393,{'operations':[_0x4450fb],'index':0x0}),_0x50e393[_0x34bf0a(0x1bd)][0x0];}[_0x3b1f3d(0x1ac)](_0x5fe871){const _0x9186e9=_0x3b1f3d,_0x5ce165=[];return this[_0x9186e9(0x1b9)][_0x9186e9(0x1c0)](_0x9186e9(0x1b2))[_0x9186e9(0x1b3)](_0x5ce165,_0x5fe871),_0x5ce165[0x0];}[_0x3b1f3d(0x1bb)](_0x11e0d8){const _0x2b46c3=_0x3b1f3d;return _0x2b46c3(0x1b2)==_0x11e0d8[_0x2b46c3(0x1c5)]&&_0x2b46c3(0x1c4)==_0x11e0d8[_0x2b46c3(0x1c3)][_0x2b46c3(0x1b8)]&&0x1==_0x11e0d8[_0x2b46c3(0x1ab)]&&!_0x11e0d8[_0x2b46c3(0x1ad)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x528a(){const _0x229011=['compress','1407516Kxzmux','5380VLnnZO','value','_decompressSingleOperation','_compareOperations','_getCompressorByName','wasUndone','substr','next','844uGZmLF','9478moXDYi','83ctgTez','position','decompress','__className','buffers','54PcNRyp','keys','_compressSingleOperation','every','_checkOperation','attributes','data','40sYzqIm','_context','_compareAttributes','iterator','3185tqGEzK','1081524YRWoeM','nodes','length','11PUSTwd','477Wxktqo','_splitCurrent','54453ygYMXE','_combineNext','from','InsertOperation'];_0x528a=function(){return _0x229011;};return _0x528a();}const _0x299d68=_0x5641;(function(_0x10acdb,_0xc0a48a){const _0x4c7894=_0x5641,_0x5859ca=_0x10acdb();while(!![]){try{const _0x14547e=-parseInt(_0x4c7894(0x105))/0x1*(-parseInt(_0x4c7894(0x104))/0x2)+-parseInt(_0x4c7894(0x116))/0x3+-parseInt(_0x4c7894(0x103))/0x4*(-parseInt(_0x4c7894(0x115))/0x5)+parseInt(_0x4c7894(0x10a))/0x6+-parseInt(_0x4c7894(0x11c))/0x7*(parseInt(_0x4c7894(0x111))/0x8)+parseInt(_0x4c7894(0x11a))/0x9*(parseInt(_0x4c7894(0x122))/0xa)+parseInt(_0x4c7894(0x119))/0xb*(parseInt(_0x4c7894(0x121))/0xc);if(_0x14547e===_0xc0a48a)break;else _0x5859ca['push'](_0x5859ca['shift']());}catch(_0x54f2d7){_0x5859ca['push'](_0x5859ca['shift']());}}}(_0x528a,0x42eed));import{ActionCompressor as _0x1551ca}from'./actioncompressor.js';function _0x5641(_0x452bc3,_0x489061){const _0x528acf=_0x528a();return _0x5641=function(_0x56413c,_0x47fb62){_0x56413c=_0x56413c-0x100;let _0x1a7e37=_0x528acf[_0x56413c];return _0x1a7e37;},_0x5641(_0x452bc3,_0x489061);}import{arePositionsEqual as _0xc95904,getPositionShiftedBy as _0x21b88e}from'../utils.js';import{cloneDeep as _0x1e1b4c}from'es-toolkit/compat';export class TypingActionCompressor extends _0x1551ca{[_0x299d68(0x11d)](_0x2fc47c,_0x52d762){const _0x5e7afc=_0x299d68;return _0x52d762[_0x5e7afc(0x117)][0x0][_0x5e7afc(0x110)]+=_0x2fc47c[_0x5e7afc(0x117)][0x0][_0x5e7afc(0x110)],_0x52d762;}[_0x299d68(0x11b)](_0x475712){const _0x4896b8=_0x299d68,_0x5d352f=_0x1e1b4c(_0x475712),_0x41190c=_0x5d352f[_0x4896b8(0x117)][0x0],_0x5c4897=_0x475712[_0x4896b8(0x117)][0x0],_0x16a98c=_0x5c4897[_0x4896b8(0x110)][Symbol[_0x4896b8(0x114)]]()[_0x4896b8(0x102)]()[_0x4896b8(0x123)],_0x4feee6=_0x16a98c[_0x4896b8(0x118)];return _0x41190c[_0x4896b8(0x110)]=_0x16a98c,_0x5c4897[_0x4896b8(0x110)]=_0x5c4897[_0x4896b8(0x110)][_0x4896b8(0x101)](_0x4feee6),_0x475712[_0x4896b8(0x106)]=_0x21b88e(_0x475712[_0x4896b8(0x106)],_0x4feee6),_0x5d352f;}[_0x299d68(0x125)](_0x48d1fb,_0x2aff2f){const _0x55541d=_0x299d68;if(this[_0x55541d(0x10e)](_0x48d1fb)&&this[_0x55541d(0x10e)](_0x2aff2f)){const _0x3a30f3=_0x48d1fb[_0x55541d(0x117)][0x0][_0x55541d(0x110)][_0x55541d(0x118)],_0x4cd8b6=_0xc95904(_0x21b88e(_0x48d1fb[_0x55541d(0x106)],_0x3a30f3),_0x2aff2f[_0x55541d(0x106)]),_0x55cb5f=_0x48d1fb[_0x55541d(0x117)][0x0],_0x2e66e4=_0x2aff2f[_0x55541d(0x117)][0x0];return _0x4cd8b6&&this[_0x55541d(0x113)](_0x55cb5f,_0x2e66e4);}return!0x1;}[_0x299d68(0x10c)](_0x4ad020){const _0x41bd47=_0x299d68,_0x2e7110={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x41bd47(0x112)][_0x41bd47(0x126)](_0x41bd47(0x11f))[_0x41bd47(0x120)](_0x2e7110,{'operations':[_0x4ad020],'index':0x0}),_0x2e7110[_0x41bd47(0x109)][0x0];}[_0x299d68(0x124)](_0x15350d){const _0x541ed0=_0x299d68,_0x3b7830=[];return this[_0x541ed0(0x112)][_0x541ed0(0x126)](_0x541ed0(0x11f))[_0x541ed0(0x107)](_0x3b7830,_0x15350d),_0x3b7830[0x0];}[_0x299d68(0x10e)](_0x51ae3f){const _0x133974=_0x299d68;return _0x133974(0x11f)==_0x51ae3f[_0x133974(0x108)]&&0x1==_0x51ae3f[_0x133974(0x117)][_0x133974(0x118)]&&_0x51ae3f[_0x133974(0x117)][0x0][_0x133974(0x110)]&&!_0x51ae3f[_0x133974(0x100)]&&0x1==Array[_0x133974(0x11e)](_0x51ae3f[_0x133974(0x117)][0x0][_0x133974(0x110)])[_0x133974(0x118)];}[_0x299d68(0x113)](_0x1077de,_0x438bf6){const _0x2a2f26=_0x299d68,_0x4c4b4e=Object[_0x2a2f26(0x10b)](_0x1077de[_0x2a2f26(0x10f)]||{}),_0x4cfed3=Object[_0x2a2f26(0x10b)](_0x438bf6[_0x2a2f26(0x10f)]||{});return _0x4c4b4e[_0x2a2f26(0x118)]===_0x4cfed3[_0x2a2f26(0x118)]&&_0x4c4b4e[_0x2a2f26(0x10d)](_0x29dfd6=>_0x438bf6[_0x2a2f26(0x10f)][_0x29dfd6]&&_0x438bf6[_0x2a2f26(0x10f)][_0x29dfd6]===_0x1077de[_0x2a2f26(0x10f)][_0x29dfd6]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b0571=_0xf2e4;(function(_0x26d11d,_0x24dc56){const _0x346f9a=_0xf2e4,_0x8f8eb5=_0x26d11d();while(!![]){try{const _0x2ee3cd=parseInt(_0x346f9a(0x95))/0x1*(parseInt(_0x346f9a(0xb0))/0x2)+parseInt(_0x346f9a(0x96))/0x3+-parseInt(_0x346f9a(0xa3))/0x4+parseInt(_0x346f9a(0x9e))/0x5+-parseInt(_0x346f9a(0xab))/0x6+-parseInt(_0x346f9a(0xa1))/0x7+parseInt(_0x346f9a(0xa7))/0x8*(-parseInt(_0x346f9a(0x9c))/0x9);if(_0x2ee3cd===_0x24dc56)break;else _0x8f8eb5['push'](_0x8f8eb5['shift']());}catch(_0x15ac05){_0x8f8eb5['push'](_0x8f8eb5['shift']());}}}(_0x3825,0xe6757));function _0x3825(){const _0x21e8e2=['1119978bZaeXS','startsWith','4073320DbXzKA','buffers','push','696710phuEVK','compress','2720108wrzwrX','split','user:position:','index','40MuekFG','user:','oldRange','_getCompressorByName','7970442uKgcWo','stickiness','typeIndex','start','name','170NaiVEW','_context','newRange','__className','_compressSingleOperation','MarkerOperation','_decompressSingleOperation','_id','end','21773ZfbrxN','3026292IufbZl','operations','decompress','toNone','types','_compareOperations'];_0x3825=function(){return _0x21e8e2;};return _0x3825();}function _0xf2e4(_0x2fab0c,_0x1fc9e1){const _0x3825f5=_0x3825();return _0xf2e4=function(_0xf2e4d0,_0x576fe3){_0xf2e4d0=_0xf2e4d0-0x92;let _0x2b9592=_0x3825f5[_0xf2e4d0];return _0x2b9592;},_0xf2e4(_0x2fab0c,_0x1fc9e1);}import{ActionCompressor as _0x42e8c9}from'./actioncompressor.js';import{arePositionsEqual as _0x2416f1}from'../utils.js';import{cloneDeep as _0x375df5}from'es-toolkit/compat';export class UserSelectionActionCompressor extends _0x42e8c9{[_0x3b0571(0xa2)](_0x321c83,_0x2bb9a3){const _0x373709=_0x3b0571;if(!this[_0x373709(0x9b)](_0x2bb9a3[_0x373709(0x97)][_0x2bb9a3[_0x373709(0xa6)]],_0x2bb9a3[_0x373709(0x97)][_0x2bb9a3[_0x373709(0xa6)]+0x1]))return!0x1;const _0x34d063=_0x2bb9a3[_0x373709(0x97)][_0x2bb9a3[_0x373709(0xa6)]++];return _0x34d063[_0x373709(0xa9)]=null,_0x34d063[_0x373709(0xb2)]&&_0x2416f1(_0x34d063[_0x373709(0xb2)][_0x373709(0xae)],_0x34d063[_0x373709(0xb2)][_0x373709(0x94)])&&(_0x34d063[_0x373709(0xb2)][_0x373709(0x94)]=null),_0x2bb9a3[_0x373709(0xa6)]++,_0x321c83[_0x373709(0x9a)][_0x373709(0xa0)](this[_0x373709(0x93)]),_0x321c83[_0x373709(0x9a)][_0x373709(0xa0)](0x0),_0x321c83[_0x373709(0x9f)][_0x373709(0xa0)](this[_0x373709(0xb4)](_0x34d063)),!0x0;}[_0x3b0571(0x98)](_0x137550,_0xeb5f17){const _0x20a72a=_0x3b0571,_0x51432e=this[_0x20a72a(0x92)](_0xeb5f17);_0x51432e[_0x20a72a(0xb2)]&&!_0x51432e[_0x20a72a(0xb2)][_0x20a72a(0x94)]&&(_0x51432e[_0x20a72a(0xb2)][_0x20a72a(0x94)]=_0x375df5(_0x51432e[_0x20a72a(0xb2)][_0x20a72a(0xae)]));const _0x2b3e6e=_0x375df5(_0x51432e);_0x2b3e6e[_0x20a72a(0xb2)]&&(_0x2b3e6e[_0x20a72a(0xb2)][_0x20a72a(0xae)][_0x20a72a(0xac)]=_0x20a72a(0x99),_0x2b3e6e[_0x20a72a(0xb2)][_0x20a72a(0x94)]=_0x375df5(_0x2b3e6e[_0x20a72a(0xb2)][_0x20a72a(0xae)])),_0x2b3e6e[_0x20a72a(0xaf)]=_0x20a72a(0xa5)+_0x2b3e6e[_0x20a72a(0xaf)][_0x20a72a(0xa4)](':')[0x2],_0xeb5f17[_0x20a72a(0xad)]++,_0x137550[_0x20a72a(0xa0)](_0x51432e),_0x137550[_0x20a72a(0xa0)](_0x2b3e6e);}[_0x3b0571(0xb4)](_0x23e7a0){const _0x320869=_0x3b0571,_0x3e3fa1={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x320869(0xb1)][_0x320869(0xaa)](_0x320869(0xb5))[_0x320869(0xa2)](_0x3e3fa1,{'operations':[_0x23e7a0],'index':0x0}),_0x3e3fa1[_0x320869(0x9f)][0x0];}[_0x3b0571(0x92)](_0x75d99f){const _0x2c6788=_0x3b0571,_0x15f502=[];return this[_0x2c6788(0xb1)][_0x2c6788(0xaa)](_0x2c6788(0xb5))[_0x2c6788(0x98)](_0x15f502,_0x75d99f),_0x15f502[0x0];}[_0x3b0571(0x9b)](_0x52d83a,_0x1cb8d8){const _0x39ca62=_0x3b0571;return!(!_0x52d83a||!_0x1cb8d8)&&(_0x39ca62(0xb5)==_0x52d83a[_0x39ca62(0xb3)]&&_0x39ca62(0xb5)==_0x1cb8d8[_0x39ca62(0xb3)]&&!(!_0x52d83a[_0x39ca62(0xaf)][_0x39ca62(0x9d)](_0x39ca62(0xa8))||!_0x1cb8d8[_0x39ca62(0xaf)][_0x39ca62(0x9d)](_0x39ca62(0xa8))||_0x52d83a[_0x39ca62(0xaf)]==_0x1cb8d8[_0x39ca62(0xaf)]));}}
|
package/src/compressor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e97e8=_0x53d8;(function(_0x12e5af,_0x227f68){const _0x5ce923=_0x53d8,_0x4b3c90=_0x12e5af();while(!![]){try{const _0x1c8d9e=-parseInt(_0x5ce923(0x104))/0x1+parseInt(_0x5ce923(0xf8))/0x2+-parseInt(_0x5ce923(0x102))/0x3*(-parseInt(_0x5ce923(0xee))/0x4)+-parseInt(_0x5ce923(0x105))/0x5+-parseInt(_0x5ce923(0xf7))/0x6*(-parseInt(_0x5ce923(0xf4))/0x7)+parseInt(_0x5ce923(0x10e))/0x8*(parseInt(_0x5ce923(0xe1))/0x9)+-parseInt(_0x5ce923(0xef))/0xa;if(_0x1c8d9e===_0x227f68)break;else _0x4b3c90['push'](_0x4b3c90['shift']());}catch(_0x1051db){_0x4b3c90['push'](_0x4b3c90['shift']());}}}(_0x4b03,0xdde3a));import{CKEditorError as _0x43c988}from'ckeditor5/src/utils.js';import{ProtobufFactory as _0x82214c}from'./protobuffactory.js';import{OperationCompressor as _0x2ab453}from'./operationcompressor/operationcompressor.js';import{AttributeOperationCompressor as _0x45c4a8}from'./operationcompressor/attributeoperationcompressor.js';import{InsertOperationCompressor as _0x339ea1}from'./operationcompressor/insertoperationcompressor.js';import{MarkerOperationCompressor as _0x2e93d7}from'./operationcompressor/markeroperationcompressor.js';import{NoOperationCompressor as _0xdea34f}from'./operationcompressor/nooperationcompressor.js';import{AnnotationMarkerOperationCompressor as _0x1a67a3}from'./operationcompressor/annotationmarkeroperationcompressor.js';import{TypingActionCompressor as _0x57fe08}from'./actioncompressor/typingactioncompressor.js';import{DeletingActionCompressor as _0x5196b1}from'./actioncompressor/deletingactioncompressor.js';import{ForwardDeletingActionCompressor as _0x2ee270}from'./actioncompressor/forwarddeletingactioncompressor.js';import{UserSelectionActionCompressor as _0x2cc5ba}from'./actioncompressor/userselectionactioncompressor.js';function _0x53d8(_0x3d832b,_0x381400){const _0x4b03ff=_0x4b03();return _0x53d8=function(_0x53d83b,_0x1d064c){_0x53d83b=_0x53d83b-0xdd;let _0x23ed92=_0x4b03ff[_0x53d83b];return _0x23ed92;},_0x53d8(_0x3d832b,_0x381400);}export class Compressor{[_0x5e97e8(0xfc)];[_0x5e97e8(0xe8)];[_0x5e97e8(0xe2)];constructor(){const _0x2f8942=_0x5e97e8;this[_0x2f8942(0xfc)]=new Map(),this[_0x2f8942(0xe8)]=new Map(),this[_0x2f8942(0xe2)]=new _0x82214c();const _0x26264a=this[_0x2f8942(0xe2)][_0x2f8942(0xe9)](_0x2f8942(0xf6));this[_0x2f8942(0x10b)](0x1,_0x2f8942(0xff),new _0xdea34f(0x1,_0x2f8942(0xff),void 0x0)),this[_0x2f8942(0xe6)](0xa,_0x2f8942(0xdd),_0x45c4a8),this[_0x2f8942(0xe6)](0xb,_0x2f8942(0xe3),_0x339ea1),this[_0x2f8942(0xe6)](0xc,_0x2f8942(0xf6),_0x2e93d7),this[_0x2f8942(0xe6)](0xd,_0x2f8942(0x100),_0x2ab453),this[_0x2f8942(0xe6)](0xe,_0x2f8942(0xf9),_0x2ab453),this[_0x2f8942(0xe6)](0xf,_0x2f8942(0xe7),_0x2ab453),this[_0x2f8942(0xe6)](0x10,_0x2f8942(0xf5),_0x45c4a8),this[_0x2f8942(0xe6)](0x11,_0x2f8942(0xfe),_0x2ab453),this[_0x2f8942(0x10b)](0x12,_0x2f8942(0x106),new _0x1a67a3(0x12,_0x2f8942(0xf6),_0x26264a,_0x2f8942(0x10a))),this[_0x2f8942(0x10b)](0x13,_0x2f8942(0xf1),new _0x1a67a3(0x13,_0x2f8942(0xf6),_0x26264a,_0x2f8942(0x10c))),this[_0x2f8942(0xe6)](0x14,_0x2f8942(0xf0),_0x2ab453),this[_0x2f8942(0xdf)](0x64,_0x2f8942(0x109),_0x57fe08),this[_0x2f8942(0xdf)](0x65,_0x2f8942(0x103),_0x5196b1),this[_0x2f8942(0xdf)](0x66,_0x2f8942(0xec),_0x2ee270),this[_0x2f8942(0xdf)](0x67,_0x2f8942(0xe5),_0x2cc5ba);}[_0x5e97e8(0x108)](_0x41d941){const _0x45a605=_0x5e97e8;if(!_0x41d941||!_0x41d941[0x0])throw new _0x43c988(_0x45a605(0xeb),this);const _0x1f3120={'operations':_0x41d941,'index':0x0},_0x2e9f70={'types':[],'buffers':[],'baseVersion':_0x41d941[0x0][_0x45a605(0xea)]};for(;_0x1f3120[_0x45a605(0xfb)]<_0x1f3120[_0x45a605(0x101)][_0x45a605(0xe4)];){if(this[_0x45a605(0xfa)](_0x45a605(0xe5))[_0x45a605(0x108)](_0x2e9f70,_0x1f3120))continue;if(this[_0x45a605(0xfa)](_0x45a605(0x109))[_0x45a605(0x108)](_0x2e9f70,_0x1f3120))continue;if(this[_0x45a605(0xfa)](_0x45a605(0x103))[_0x45a605(0x108)](_0x2e9f70,_0x1f3120))continue;if(this[_0x45a605(0xfa)](_0x45a605(0xec))[_0x45a605(0x108)](_0x2e9f70,_0x1f3120))continue;if(this[_0x45a605(0xfa)](_0x45a605(0x106))[_0x45a605(0x108)](_0x2e9f70,_0x1f3120))continue;if(this[_0x45a605(0xfa)](_0x45a605(0xf1))[_0x45a605(0x108)](_0x2e9f70,_0x1f3120))continue;const _0x5e2897=_0x1f3120[_0x45a605(0x101)][_0x1f3120[_0x45a605(0xfb)]][_0x45a605(0xf2)];this[_0x45a605(0xfa)](_0x5e2897)[_0x45a605(0x108)](_0x2e9f70,_0x1f3120);}return _0x2e9f70;}[_0x5e97e8(0x10f)](_0x198620){const _0x15b4e0=_0x5e97e8,_0x24ee7d=[],_0x6fbde2={'types':_0x198620[_0x15b4e0(0xf3)],'buffers':_0x198620[_0x15b4e0(0xed)],'baseVersion':_0x198620[_0x15b4e0(0xea)],'typeIndex':0x0,'bufferIndex':0x0};for(;_0x6fbde2[_0x15b4e0(0xe0)]<_0x6fbde2[_0x15b4e0(0xf3)][_0x15b4e0(0xe4)];){const _0x2c2edb=_0x6fbde2[_0x15b4e0(0xf3)][_0x6fbde2[_0x15b4e0(0xe0)]],_0x526e3a=this[_0x15b4e0(0xfc)][_0x15b4e0(0x107)](_0x2c2edb);if(!_0x526e3a)throw new _0x43c988(_0x15b4e0(0x10d),this,{'type':_0x2c2edb});_0x526e3a[_0x15b4e0(0x10f)](_0x24ee7d,_0x6fbde2);}return _0x24ee7d[_0x15b4e0(0xfd)]((_0x4114ad,_0x451597)=>_0x4114ad[_0x15b4e0(0xea)]=_0x198620[_0x15b4e0(0xea)]+_0x451597),_0x24ee7d;}[_0x5e97e8(0xfa)](_0xb57317){const _0x47e80c=_0x5e97e8;return this[_0x47e80c(0xe8)][_0x47e80c(0x107)](_0xb57317);}[_0x5e97e8(0xe6)](_0x4137d7,_0x586dac,_0x295401){const _0x221e5b=_0x5e97e8,_0x12e6cd=new _0x295401(_0x4137d7,_0x586dac,this[_0x221e5b(0xe2)][_0x221e5b(0xe9)](_0x586dac));this[_0x221e5b(0x10b)](_0x4137d7,_0x586dac,_0x12e6cd);}[_0x5e97e8(0xdf)](_0x181ab5,_0x51969e,_0x15b504){const _0x4ed3bc=_0x5e97e8,_0x3de1dd=new _0x15b504(_0x181ab5,this);this[_0x4ed3bc(0x10b)](_0x181ab5,_0x51969e,_0x3de1dd);}[_0x5e97e8(0x10b)](_0x378ea2,_0x13238e,_0x110df0){const _0x475251=_0x5e97e8;this[_0x475251(0xfc)][_0x475251(0xde)](_0x378ea2,_0x110df0),this[_0x475251(0xe8)][_0x475251(0xde)](_0x13238e,_0x110df0);}}function _0x4b03(){const _0x32cd0c=['compress','TypingAction','comment','_registerCompressor','suggestion','decompress-compressor-not-found','72VvGJst','decompress','AttributeOperation','set','_registerActionCompressor','typeIndex','892071drKBso','_protobufFactory','InsertOperation','length','UserSelectionAction','_registerOperationCompressor','RenameOperation','_compressorByName','getDescriptor','baseVersion','no-operations-provided','ForwardDeletingAction','buffers','28rSJCCf','24058300jbNzaV','RootOperation','SuggestionMarkerOperation','__className','types','112AFamfG','RootAttributeOperation','MarkerOperation','234108vWYmHH','3187528fDEtRm','MoveOperation','_getCompressorByName','index','_compressorById','forEach','SplitOperation','NoOperation','MergeOperation','operations','738957KSBxrl','DeletingAction','1352310VAQfnj','836790TURvOm','CommentMarkerOperation','get'];_0x4b03=function(){return _0x32cd0c;};return _0x4b03();}
|
package/src/errors.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x3b06(){var _0x1ce7be=['15yTOxSE','1156374huSrgg','1165278hsoswc','100QUFCCv','2295160xtQEUQ','1172283EKgpoD','2725656mMJSeg','4IiNjKv','5232208xXyNJo','406818DEWFmW'];_0x3b06=function(){return _0x1ce7be;};return _0x3b06();}function _0x1b54(_0x1ada72,_0x15db0c){var _0x3b0647=_0x3b06();return _0x1b54=function(_0x1b54bb,_0x298c56){_0x1b54bb=_0x1b54bb-0x93;var _0x4c8b32=_0x3b0647[_0x1b54bb];return _0x4c8b32;},_0x1b54(_0x1ada72,_0x15db0c);}(function(_0x4a15ea,_0x269e6f){var _0x2a0f7e=_0x1b54,_0x5f156b=_0x4a15ea();while(!![]){try{var _0x17c620=parseInt(_0x2a0f7e(0x96))/0x1+parseInt(_0x2a0f7e(0x97))/0x2+-parseInt(_0x2a0f7e(0x9a))/0x3*(parseInt(_0x2a0f7e(0x98))/0x4)+parseInt(_0x2a0f7e(0x9b))/0x5*(parseInt(_0x2a0f7e(0x93))/0x6)+-parseInt(_0x2a0f7e(0x95))/0x7+-parseInt(_0x2a0f7e(0x99))/0x8+-parseInt(_0x2a0f7e(0x9c))/0x9*(parseInt(_0x2a0f7e(0x94))/0xa);if(_0x17c620===_0x269e6f)break;else _0x5f156b['push'](_0x5f156b['shift']());}catch(_0x4d32ba){_0x5f156b['push'](_0x5f156b['shift']());}}}(_0x3b06,0xaea72));import{CKEditorError as _0x337750}from'ckeditor5/src/utils.js';
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x5107(_0x46b49f,_0x3a8672){var _0x5d6e65=_0x5d6e();return _0x5107=function(_0x5107b6,_0x406221){_0x5107b6=_0x5107b6-0x102;var _0x3fe7e3=_0x5d6e65[_0x5107b6];return _0x3fe7e3;},_0x5107(_0x46b49f,_0x3a8672);}(function(_0x15d0b1,_0x399ea1){var _0x2ab218=_0x5107,_0x15b607=_0x15d0b1();while(!![]){try{var _0x1c2031=parseInt(_0x2ab218(0x106))/0x1+-parseInt(_0x2ab218(0x109))/0x2*(parseInt(_0x2ab218(0x104))/0x3)+-parseInt(_0x2ab218(0x105))/0x4*(parseInt(_0x2ab218(0x108))/0x5)+-parseInt(_0x2ab218(0x10a))/0x6*(-parseInt(_0x2ab218(0x103))/0x7)+-parseInt(_0x2ab218(0x107))/0x8+-parseInt(_0x2ab218(0x10b))/0x9+parseInt(_0x2ab218(0x102))/0xa;if(_0x1c2031===_0x399ea1)break;else _0x15b607['push'](_0x15b607['shift']());}catch(_0x380958){_0x15b607['push'](_0x15b607['shift']());}}}(_0x5d6e,0x73c7c));export{Compressor}from'./compressor.js';function _0x5d6e(){var _0x3cb2e3=['17498010hPKoPh','14nvnFSM','3rgRNVd','208uFDtog','448945UVompZ','2272832srNbTb','86885hNYWlx','1366978gDLNvK','552882rLSnkB','338463HcdtQi'];_0x5d6e=function(){return _0x3cb2e3;};return _0x5d6e();}
|