@ckeditor/ckeditor5-operations-compressor 47.7.0-alpha.0 → 47.7.0-alpha.2
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
|
-
|
|
23
|
+
function _0x4f05(){var _0x44fe92=['3433872Droziu','1370DtWsXa','push','68164ISAWyH','_operationName','8mxzhtk','decompress','1280389arNHyu','3ypeUAt','_id','342clLAsg','7OvDHVe','1023085qwbEju','index','237820jTUYUS','types','compress','89272xiuATh','typeIndex','45rtTZMc'];_0x4f05=function(){return _0x44fe92;};return _0x4f05();}var _0x2eec9f=_0x459c;(function(_0x30c414,_0x1ef781){var _0x478adf=_0x459c,_0x16a5fc=_0x30c414();while(!![]){try{var _0x4fbf4d=-parseInt(_0x478adf(0xee))/0x1*(-parseInt(_0x478adf(0xfa))/0x2)+parseInt(_0x478adf(0xeb))/0x3*(parseInt(_0x478adf(0xf4))/0x4)+-parseInt(_0x478adf(0xf8))/0x5*(-parseInt(_0x478adf(0xed))/0x6)+-parseInt(_0x478adf(0xef))/0x7*(-parseInt(_0x478adf(0xfc))/0x8)+parseInt(_0x478adf(0xf6))/0x9*(parseInt(_0x478adf(0xf1))/0xa)+-parseInt(_0x478adf(0xea))/0xb+-parseInt(_0x478adf(0xf7))/0xc;if(_0x4fbf4d===_0x1ef781)break;else _0x16a5fc['push'](_0x16a5fc['shift']());}catch(_0x17f06c){_0x16a5fc['push'](_0x16a5fc['shift']());}}}(_0x4f05,0x21f0c));import{OperationCompressor as _0x173e94}from'./operationcompressor.js';function _0x459c(_0xe4f314,_0x187b0e){var _0x4f05c4=_0x4f05();return _0x459c=function(_0x459c79,_0x458b8b){_0x459c79=_0x459c79-0xea;var _0x3ffdfb=_0x4f05c4[_0x459c79];return _0x3ffdfb;},_0x459c(_0xe4f314,_0x187b0e);}export class NoOperationCompressor extends _0x173e94{[_0x2eec9f(0xf3)](_0x404a2d,_0x107faa){var _0x2b91fc=_0x2eec9f;return _0x107faa[_0x2b91fc(0xf0)]++,_0x404a2d[_0x2b91fc(0xf2)][_0x2b91fc(0xf9)](this[_0x2b91fc(0xec)]),!0x0;}[_0x2eec9f(0xfd)](_0x4d07e7,_0x57cc99){var _0x4a4c29=_0x2eec9f;_0x57cc99[_0x4a4c29(0xf5)]++,_0x4d07e7[_0x4a4c29(0xf9)]({'__className':this[_0x4a4c29(0xfb)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44d22a=_0x3826;function _0x3826(_0x282179,_0x4946a9){const _0x5cf92d=_0x5cf9();return _0x3826=function(_0x38264b,_0x30815a){_0x38264b=_0x38264b-0x127;let _0x48e4b7=_0x5cf92d[_0x38264b];return _0x48e4b7;},_0x3826(_0x282179,_0x4946a9);}(function(_0x26ce52,_0x592832){const _0x634835=_0x3826,_0x35734d=_0x26ce52();while(!![]){try{const _0x4a958a=parseInt(_0x634835(0x136))/0x1*(parseInt(_0x634835(0x130))/0x2)+-parseInt(_0x634835(0x138))/0x3+parseInt(_0x634835(0x12e))/0x4+parseInt(_0x634835(0x12f))/0x5+-parseInt(_0x634835(0x12b))/0x6+parseInt(_0x634835(0x12d))/0x7+parseInt(_0x634835(0x139))/0x8*(parseInt(_0x634835(0x133))/0x9);if(_0x4a958a===_0x592832)break;else _0x35734d['push'](_0x35734d['shift']());}catch(_0x43ef73){_0x35734d['push'](_0x35734d['shift']());}}}(_0x5cf9,0x8fafc));function _0x5cf9(){const _0x4241db=['2533092GsjWCJ','_operationName','2421083PlaFMI','3760780wKJUkP','81510DiDcIC','2OhntPF','_id','__className','9cybSlt','operations','types','300981gYcMiu','bufferIndex','3217314HipMBM','3838504pcHEkY','index','_protobufDescriptor','compress','decompress','typeIndex','buffers','push'];_0x5cf9=function(){return _0x4241db;};return _0x5cf9();}import{parsePositionBeforeCompression as _0x17d429,parsePositionAfterCompression as _0x4f6530}from'../utils.js';export class OperationCompressor{[_0x44d22a(0x131)];[_0x44d22a(0x12c)];[_0x44d22a(0x13b)];constructor(_0x2dc148,_0x6e2039,_0x5205ff){const _0x47505c=_0x44d22a;this[_0x47505c(0x131)]=_0x2dc148,this[_0x47505c(0x12c)]=_0x6e2039,this[_0x47505c(0x13b)]=_0x5205ff;}[_0x44d22a(0x13c)](_0x422786,_0x2f1bca){const _0x444a94=_0x44d22a,_0x4a1fc8=_0x2f1bca[_0x444a94(0x134)][_0x2f1bca[_0x444a94(0x13a)]++];return _0x17d429(_0x4a1fc8),_0x422786[_0x444a94(0x129)][_0x444a94(0x12a)](this[_0x444a94(0x13b)][_0x444a94(0x13c)](_0x4a1fc8)),_0x422786[_0x444a94(0x135)][_0x444a94(0x12a)](this[_0x444a94(0x131)]),!0x0;}[_0x44d22a(0x127)](_0xeb3132,_0x47172e){const _0x2e9eb6=_0x44d22a;_0x47172e[_0x2e9eb6(0x128)]++;const _0x4351e7=_0x47172e[_0x2e9eb6(0x129)][_0x47172e[_0x2e9eb6(0x137)]++],_0x1f9d0e=this[_0x2e9eb6(0x13b)][_0x2e9eb6(0x127)](_0x4351e7);_0x4f6530(_0x1f9d0e),_0x1f9d0e[_0x2e9eb6(0x132)]=this[_0x2e9eb6(0x12c)],_0xeb3132[_0x2e9eb6(0x12a)](_0x1f9d0e);}}
|
package/src/protobuffactory.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1fb912=_0x2a15;(function(_0x5ea7b4,_0x531a4f){const _0x504eb=_0x2a15,_0x10d07e=_0x5ea7b4();while(!![]){try{const _0x24ab19=parseInt(_0x504eb(0x98))/0x1+-parseInt(_0x504eb(0xa5))/0x2*(parseInt(_0x504eb(0x8f))/0x3)+-parseInt(_0x504eb(0x9d))/0x4*(parseInt(_0x504eb(0x99))/0x5)+-parseInt(_0x504eb(0xa0))/0x6*(parseInt(_0x504eb(0x90))/0x7)+-parseInt(_0x504eb(0xa2))/0x8*(-parseInt(_0x504eb(0x91))/0x9)+-parseInt(_0x504eb(0x96))/0xa*(parseInt(_0x504eb(0x9e))/0xb)+parseInt(_0x504eb(0x92))/0xc;if(_0x24ab19===_0x531a4f)break;else _0x10d07e['push'](_0x10d07e['shift']());}catch(_0x107508){_0x10d07e['push'](_0x10d07e['shift']());}}}(_0x51c5,0x80e76));import{messages as _0x5310c3}from'./lib/compiledmessages.js';export class ProtobufFactory{[_0x1fb912(0x97)];constructor(){const _0x29e556=_0x1fb912;this[_0x29e556(0x97)]=_0x5310c3;}[_0x1fb912(0x94)](_0x4f24d0){const _0x3024f4=_0x1fb912;return new ProtobufDescriptor(this[_0x3024f4(0x97)][_0x4f24d0]);}}export class ProtobufDescriptor{[_0x1fb912(0x9b)];constructor(_0xb6b5cd){const _0x5a7faf=_0x1fb912;this[_0x5a7faf(0x9b)]=_0xb6b5cd;}[_0x1fb912(0xa3)](_0x4f3c90){const _0x451dc6=_0x1fb912,_0x481f6f=this[_0x451dc6(0x9b)][_0x451dc6(0x95)](_0x4f3c90);if(_0x481f6f)throw Error(_0x481f6f);return this[_0x451dc6(0x9b)][_0x451dc6(0xa1)](this[_0x451dc6(0x9b)][_0x451dc6(0x9c)](_0x4f3c90))[_0x451dc6(0x9a)]();}[_0x1fb912(0x93)](_0x21e188){const _0x3cdf7f=_0x1fb912;return this[_0x3cdf7f(0x9b)][_0x3cdf7f(0x9f)](this[_0x3cdf7f(0x9b)][_0x3cdf7f(0xa4)](_0x21e188),{'oneofs':!0x0});}}function _0x2a15(_0x49c231,_0x392184){const _0x51c59d=_0x51c5();return _0x2a15=function(_0x2a15e0,_0x2dacad){_0x2a15e0=_0x2a15e0-0x8f;let _0x46faf4=_0x51c59d[_0x2a15e0];return _0x46faf4;},_0x2a15(_0x49c231,_0x392184);}function _0x51c5(){const _0x5d5a2a=['873322pFHeHF','154340PryuIz','finish','_protobuf','create','92igziTr','11vupmNi','toObject','7044UUMYwG','encode','72AmVwrv','compress','decode','2IMQcIS','2627802mFLfFd','2156GlZiiS','886203UaSROG','17161452ygZbGh','decompress','getDescriptor','verify','7141660mkwqML','_protobufRoot'];_0x51c5=function(){return _0x5d5a2a;};return _0x51c5();}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x40eba9,_0x37b304){const _0xccc5c5=_0xb6f1,_0x3eff34=_0x40eba9();while(!![]){try{const _0x1d7fd9=-parseInt(_0xccc5c5(0x1d3))/0x1+-parseInt(_0xccc5c5(0x1d0))/0x2+-parseInt(_0xccc5c5(0x1d5))/0x3+parseInt(_0xccc5c5(0x1cc))/0x4+parseInt(_0xccc5c5(0x1ca))/0x5+parseInt(_0xccc5c5(0x1c6))/0x6*(parseInt(_0xccc5c5(0x1ce))/0x7)+-parseInt(_0xccc5c5(0x1cb))/0x8*(-parseInt(_0xccc5c5(0x1d6))/0x9);if(_0x1d7fd9===_0x37b304)break;else _0x3eff34['push'](_0x3eff34['shift']());}catch(_0x3d484c){_0x3eff34['push'](_0x3eff34['shift']());}}}(_0x580d,0x4a7cb));import{cloneDeep as _0x4ef3eb,isEqual as _0x4cac2d,isObject as _0x3dc11b}from'es-toolkit/compat';export function getPositionShiftedBy(_0xdfb21b,_0x4cc11a){const _0x59df1d=_0xb6f1,_0x67ed9e=_0x4ef3eb(_0xdfb21b);return _0x67ed9e[_0x59df1d(0x1c7)][_0x67ed9e[_0x59df1d(0x1c7)][_0x59df1d(0x1cf)]-0x1]+=_0x4cc11a,_0x67ed9e;}export function arePositionsEqual(_0x3791af,_0x432641){const _0x3af4f6=_0xb6f1;return _0x3791af[_0x3af4f6(0x1c8)]===_0x432641[_0x3af4f6(0x1c8)]&&_0x4cac2d(_0x3791af[_0x3af4f6(0x1c7)],_0x432641[_0x3af4f6(0x1c7)]);}export function parsePositionBeforeCompression(_0x5300d7){const _0x5adff5=_0xb6f1;P(_0x5300d7,_0x161be1=>(_0x5adff5(0x1d2)==_0x161be1[_0x5adff5(0x1c8)]?(_0x161be1[_0x5adff5(0x1d4)]=!0x0,delete _0x161be1[_0x5adff5(0x1c8)]):_0x5adff5(0x1cd)==_0x161be1[_0x5adff5(0x1c8)]&&(_0x161be1[_0x5adff5(0x1d1)]=!0x0,delete _0x161be1[_0x5adff5(0x1c8)]),_0x161be1));}export function parsePositionAfterCompression(_0x116914){const _0x28dca4=_0xb6f1;P(_0x116914,_0x469407=>(_0x469407[_0x28dca4(0x1d4)]?(_0x469407[_0x28dca4(0x1c8)]=_0x28dca4(0x1d2),delete _0x469407[_0x28dca4(0x1d4)]):_0x469407[_0x28dca4(0x1d1)]&&(_0x469407[_0x28dca4(0x1c8)]=_0x28dca4(0x1cd),delete _0x469407[_0x28dca4(0x1d1)]),_0x469407));}function _0xb6f1(_0x2d16c5,_0x2474e7){const _0x580d22=_0x580d();return _0xb6f1=function(_0xb6f15c,_0x5ba758){_0xb6f15c=_0xb6f15c-0x1c6;let _0x4179dd=_0x580d22[_0xb6f15c];return _0x4179dd;},_0xb6f1(_0x2d16c5,_0x2474e7);}function P(_0x16b150,_0x216762){const _0x37dccb=_0xb6f1;for(const _0x144b21 in _0x16b150){const _0xb89dbe=_0x16b150[_0x144b21];_0x37dccb(0x1c9)!==_0x144b21&&_0x3dc11b(_0xb89dbe)&&(_0xb89dbe[_0x37dccb(0x1c7)]&&(_0xb89dbe[_0x37dccb(0x1c8)]||_0xb89dbe[_0x37dccb(0x1d4)]||_0xb89dbe[_0x37dccb(0x1d1)])?_0x16b150[_0x144b21]=_0x216762(_0xb89dbe):P(_0xb89dbe,_0x216762));}return _0x16b150;}function _0x580d(){const _0x34c85b=['3807923MBJHjA','length','388596KqvRug','rootGraveyard','main','39323Hdcogn','rootMain','1352241PjNQXo','13491yzLexF','6gNcYJy','path','root','nodes','589665QukOSa','1544SgMtBH','152952lwiUsi','$graveyard'];_0x580d=function(){return _0x34c85b;};return _0x580d();}
|