@ckeditor/ckeditor5-operations-compressor 35.1.0 → 35.2.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/package.json +2 -2
- 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/commondescriptions.js +1 -1
- package/src/compressor.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/mergeoperationcompressor.js +1 -1
- package/src/operationcompressor/moveoperationcompressor.js +1 -1
- package/src/operationcompressor/nooperationcompressor.js +1 -1
- package/src/operationcompressor/operationcompressor.js +1 -1
- package/src/operationcompressor/renameoperationcompressor.js +1 -1
- package/src/operationcompressor/rootattributeoperationcompressor.js +1 -1
- package/src/operationcompressor/splitoperationcompressor.js +1 -1
- package/src/protobuffactory.js +1 -1
- package/src/utils.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-operations-compressor",
|
|
3
|
-
"version": "35.1
|
|
3
|
+
"version": "35.2.1",
|
|
4
4
|
"description": "CKEditor 5 operations compressor for real-time collaboration.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"homepage": "https://ckeditor.com/collaboration/real-time/",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"author": "CKSource (http://cksource.com/)",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"ckeditor5": "^35.1
|
|
30
|
+
"ckeditor5": "^35.2.1",
|
|
31
31
|
"lodash-es": "^4.17.11",
|
|
32
32
|
"protobufjs": "^6.8.8"
|
|
33
33
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2152=['_splitCurrent','shift','compress','length','buffers','push','_compressSingleOperation','_decompressSingleOperation','types','_combineNext'];(function(_0x1f7235,_0x2152c1){const _0x2af707=function(_0x1699f9){while(--_0x1699f9){_0x1f7235['push'](_0x1f7235['shift']());}};_0x2af707(++_0x2152c1);}(_0x2152,0xe8));const _0x2af7=function(_0x1f7235,_0x2152c1){_0x1f7235=_0x1f7235-0x0;let _0x2af707=_0x2152[_0x1f7235];return _0x2af707;};import{cloneDeep as _0x256d83}from'lodash-es';export default class j{constructor(_0x2bbdad,_0x1f8ca3){this['id']=_0x2bbdad,this['_context']=_0x1f8ca3;}[_0x2af7('0x0')](_0x40c726,_0x526a8d){let _0x48cc39;for(;_0x526a8d[_0x2af7('0x1')]>0x1&&this['_compareOperations'](_0x526a8d[0x0],_0x526a8d[0x1]);)_0x48cc39?(_0x48cc39=this[_0x2af7('0x7')](_0x526a8d[_0x2af7('0x9')](),_0x48cc39),_0x40c726[_0x2af7('0x6')][_0x2af7('0x3')](0x0)):(_0x48cc39=_0x256d83(_0x526a8d[_0x2af7('0x9')]()),_0x40c726[_0x2af7('0x6')][_0x2af7('0x3')](this['id']));return!!_0x48cc39&&(_0x48cc39=this[_0x2af7('0x7')](_0x526a8d[_0x2af7('0x9')](),_0x48cc39),_0x40c726[_0x2af7('0x6')][_0x2af7('0x3')](0x0),_0x40c726[_0x2af7('0x2')][_0x2af7('0x3')](this[_0x2af7('0x4')](_0x48cc39)),!0x0);}['decompress'](_0x49e315,_0x648066){const _0x346e75=this[_0x2af7('0x5')](_0x648066);for(;0x0==_0x648066[_0x2af7('0x6')][0x0];)_0x648066[_0x2af7('0x6')]['shift'](),_0x49e315[_0x2af7('0x3')](this[_0x2af7('0x8')](_0x346e75));_0x49e315[_0x2af7('0x3')](_0x346e75);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a47=['root','_compareOperations','_compressSingleOperation','__className','_decompressSingleOperation','targetPosition','decompress','sourcePosition','howMany','MoveOperation','_splitCurrent','_getCompressorByName','_context'];(function(_0x254e65,_0x4a47ab){const _0x409aaa=function(_0x4b7a24){while(--_0x4b7a24){_0x254e65['push'](_0x254e65['shift']());}};_0x409aaa(++_0x4a47ab);}(_0x4a47,0x100));const _0x409a=function(_0x254e65,_0x4a47ab){_0x254e65=_0x254e65-0x0;let _0x409aaa=_0x4a47[_0x254e65];return _0x409aaa;};import _0x242bb5 from'./actioncompressor';import{arePositionsEqual as _0x4637a5,getPositionShiftedBy as _0x4b4479}from'../utils';import{cloneDeep as _0x53183c}from'lodash-es';export default class u extends _0x242bb5{['_combineNext'](_0x3918ef,_0x36accb){return _0x36accb[_0x409a('0xc')]++,_0x36accb['sourcePosition']=_0x53183c(_0x3918ef[_0x409a('0xb')]),_0x36accb;}[_0x409a('0x1')](_0x36df10){const _0x2360df=_0x53183c(_0x36df10);return _0x36df10[_0x409a('0xc')]--,_0x2360df[_0x409a('0xc')]=0x1,_0x2360df[_0x409a('0xb')]=_0x4b4479(_0x2360df['sourcePosition'],_0x36df10[_0x409a('0xc')]),_0x2360df;}[_0x409a('0x5')](_0x68caa3,_0x5cdd94){return!(!S(_0x68caa3)||!S(_0x5cdd94))&&(_0x4637a5(_0x4b4479(_0x68caa3[_0x409a('0xb')],-0x1),_0x5cdd94[_0x409a('0xb')])&&_0x4637a5(_0x68caa3['targetPosition'],_0x5cdd94[_0x409a('0x9')]));}[_0x409a('0x6')](_0x49e94e){const _0x37dc3a={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x409a('0x3')][_0x409a('0x2')](_0x409a('0x0'))['compress'](_0x37dc3a,[_0x49e94e]),_0x37dc3a['buffers'][0x0];}[_0x409a('0x8')](_0x47b772){const _0x5568df=[];return this['_context'][_0x409a('0x2')](_0x409a('0x0'))[_0x409a('0xa')](_0x5568df,_0x47b772),_0x5568df[0x0];}}function S(_0xaf9c07){return _0x409a('0x0')==_0xaf9c07[_0x409a('0x7')]&&'$graveyard'==_0xaf9c07[_0x409a('0x9')][_0x409a('0x4')]&&0x1==_0xaf9c07[_0x409a('0xc')]&&!_0xaf9c07['wasUndone'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x388a=['__className','MoveOperation','root','targetPosition','decompress','_combineNext','sourcePosition','_context','buffers','_decompressSingleOperation','wasUndone','_compareOperations','$graveyard','howMany','_getCompressorByName','compress','_splitCurrent'];(function(_0x2f879c,_0x388a51){const _0xd780ce=function(_0x4bb690){while(--_0x4bb690){_0x2f879c['push'](_0x2f879c['shift']());}};_0xd780ce(++_0x388a51);}(_0x388a,0x12b));const _0xd780=function(_0x2f879c,_0x388a51){_0x2f879c=_0x2f879c-0x0;let _0xd780ce=_0x388a[_0x2f879c];return _0xd780ce;};import _0x46d688 from'./actioncompressor';import{arePositionsEqual as _0x45cffa}from'../utils';import{cloneDeep as _0x381d21}from'lodash-es';export default class l extends _0x46d688{[_0xd780('0xc')](_0x559480,_0x3f5d4d){return _0x3f5d4d[_0xd780('0x3')]++,_0x3f5d4d;}[_0xd780('0x6')](_0x4f95d9){const _0xd993d4=_0x381d21(_0x4f95d9);return _0xd993d4[_0xd780('0x3')]=0x1,_0x4f95d9[_0xd780('0x3')]--,_0xd993d4;}[_0xd780('0x1')](_0x5b2c8f,_0x4c255a){return!(!S(_0x5b2c8f)||!S(_0x4c255a))&&(_0x45cffa(_0x5b2c8f[_0xd780('0xd')],_0x4c255a['sourcePosition'])&&_0x45cffa(_0x5b2c8f[_0xd780('0xa')],_0x4c255a['targetPosition']));}['_compressSingleOperation'](_0x5f10d0){const _0x395045={'types':[],'buffers':[],'baseVersion':0x0};return this['_context'][_0xd780('0x4')]('MoveOperation')[_0xd780('0x5')](_0x395045,[_0x5f10d0]),_0x395045[_0xd780('0xf')][0x0];}[_0xd780('0x10')](_0x39cbe0){const _0x25416e=[];return this[_0xd780('0xe')][_0xd780('0x4')](_0xd780('0x8'))[_0xd780('0xb')](_0x25416e,_0x39cbe0),_0x25416e[0x0];}}function S(_0x435c95){return _0xd780('0x8')==_0x435c95[_0xd780('0x7')]&&_0xd780('0x2')==_0x435c95[_0xd780('0xa')][_0xd780('0x9')]&&0x1==_0x435c95[_0xd780('0x3')]&&!_0x435c95[_0xd780('0x0')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5381=['InsertOperation','length','decompress','_compareOperations','value','_getCompressorByName','_decompressSingleOperation','substr','every','data','__className','wasUndone','buffers','position','next','_context','attributes','nodes','keys','iterator','_combineNext'];(function(_0x57b830,_0x5381d9){const _0x524a25=function(_0x1fd552){while(--_0x1fd552){_0x57b830['push'](_0x57b830['shift']());}};_0x524a25(++_0x5381d9);}(_0x5381,0x1d4));const _0x524a=function(_0x57b830,_0x5381d9){_0x57b830=_0x57b830-0x0;let _0x524a25=_0x5381[_0x57b830];return _0x524a25;};import _0x5a3626 from'./actioncompressor';import{arePositionsEqual as _0x5cbaf5,getPositionShiftedBy as _0x5d8fcc}from'../utils';import{cloneDeep as _0x1ddcb4}from'lodash-es';export default class g extends _0x5a3626{[_0x524a('0xe')](_0x2f7f2c,_0xf53435){return _0xf53435[_0x524a('0xb')][0x0][_0x524a('0x3')]+=_0x2f7f2c[_0x524a('0xb')][0x0][_0x524a('0x3')],_0xf53435;}['_splitCurrent'](_0x45453e){const _0x5096a6=_0x1ddcb4(_0x45453e),_0x284c97=_0x5096a6[_0x524a('0xb')][0x0],_0x420332=_0x45453e['nodes'][0x0],_0x950e4f=_0x420332[_0x524a('0x3')][Symbol[_0x524a('0xd')]]()[_0x524a('0x8')]()[_0x524a('0x13')],_0x300e61=_0x950e4f['length'];return _0x284c97[_0x524a('0x3')]=_0x950e4f,_0x420332[_0x524a('0x3')]=_0x420332[_0x524a('0x3')][_0x524a('0x1')](_0x300e61),_0x45453e[_0x524a('0x7')]=_0x5d8fcc(_0x45453e[_0x524a('0x7')],_0x300e61),_0x5096a6;}[_0x524a('0x12')](_0x49407a,_0x2746f1){if(S(_0x49407a)&&S(_0x2746f1)){const _0x27b475=_0x49407a['nodes'][0x0][_0x524a('0x3')][_0x524a('0x10')],_0x380f9b=_0x5cbaf5(_0x5d8fcc(_0x49407a[_0x524a('0x7')],_0x27b475),_0x2746f1[_0x524a('0x7')]),_0xe539d4=_0x49407a['nodes'][0x0],_0x1a419d=_0x2746f1['nodes'][0x0];return _0x380f9b&&function(_0x5d8d63,_0x5961d3){const _0x5a5e79=Object[_0x524a('0xc')](_0x5d8d63[_0x524a('0xa')]||{}),_0x3bc7cd=Object['keys'](_0x5961d3[_0x524a('0xa')]||{});if(_0x5a5e79[_0x524a('0x10')]!==_0x3bc7cd[_0x524a('0x10')])return!0x1;return _0x5a5e79[_0x524a('0x2')](_0x540429=>_0x5961d3[_0x524a('0xa')][_0x540429]&&_0x5961d3[_0x524a('0xa')][_0x540429]===_0x5d8d63[_0x524a('0xa')][_0x540429]);}(_0xe539d4,_0x1a419d);}return!0x1;}['_compressSingleOperation'](_0x5dbbb3){const _0x41819e={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x524a('0x9')][_0x524a('0x14')](_0x524a('0xf'))['compress'](_0x41819e,[_0x5dbbb3]),_0x41819e[_0x524a('0x6')][0x0];}[_0x524a('0x0')](_0x417e4c){const _0x4d19b6=[];return this[_0x524a('0x9')][_0x524a('0x14')](_0x524a('0xf'))[_0x524a('0x11')](_0x4d19b6,_0x417e4c),_0x4d19b6[0x0];}}function S(_0x3c693b){return'InsertOperation'==_0x3c693b[_0x524a('0x4')]&&0x1==_0x3c693b['nodes'][_0x524a('0x10')]&&_0x3c693b[_0x524a('0xb')][0x0][_0x524a('0x3')]&&!_0x3c693b[_0x524a('0x5')]&&0x1==Array['from'](_0x3c693b[_0x524a('0xb')][0x0][_0x524a('0x3')])[_0x524a('0x10')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x221c=['oldRange','decompress','user:','stickiness','split','name','_compressSingleOperation','_decompressSingleOperation','push','_getCompressorByName','compress','end','startsWith','newRange','buffers','_context','types','__className','start','shift','MarkerOperation'];(function(_0x5f2801,_0x221c2e){const _0x1cf5a8=function(_0x3e50ae){while(--_0x3e50ae){_0x5f2801['push'](_0x5f2801['shift']());}};_0x1cf5a8(++_0x221c2e);}(_0x221c,0x7c));const _0x1cf5=function(_0x5f2801,_0x221c2e){_0x5f2801=_0x5f2801-0x0;let _0x1cf5a8=_0x221c[_0x5f2801];return _0x1cf5a8;};import _0x310ae0 from'./actioncompressor';import{arePositionsEqual as _0x453f82}from'../utils';import{cloneDeep as _0x87627c}from'lodash-es';export default class M extends _0x310ae0{['compress'](_0x340175,_0xbd2edd){if(!function(_0x37daa8,_0x50b96a){if(!_0x37daa8||!_0x50b96a)return!0x1;if(_0x1cf5('0x1')!=_0x37daa8[_0x1cf5('0x13')]||_0x1cf5('0x1')!=_0x50b96a[_0x1cf5('0x13')])return!0x1;if(_0x37daa8[_0x1cf5('0x7')][_0x1cf5('0xe')](_0x1cf5('0x4'))&&_0x50b96a[_0x1cf5('0x7')][_0x1cf5('0xe')]('user:')&&_0x37daa8[_0x1cf5('0x7')]!=_0x50b96a[_0x1cf5('0x7')])return!0x0;return!0x1;}(_0xbd2edd[0x0],_0xbd2edd[0x1]))return!0x1;const _0x57f7b0=_0xbd2edd[_0x1cf5('0x0')]();return _0x57f7b0[_0x1cf5('0x2')]=null,_0x57f7b0[_0x1cf5('0xf')]&&_0x453f82(_0x57f7b0['newRange'][_0x1cf5('0x14')],_0x57f7b0[_0x1cf5('0xf')][_0x1cf5('0xd')])&&(_0x57f7b0[_0x1cf5('0xf')][_0x1cf5('0xd')]=null),_0xbd2edd[_0x1cf5('0x0')](),_0x340175[_0x1cf5('0x12')][_0x1cf5('0xa')](this['id']),_0x340175[_0x1cf5('0x12')][_0x1cf5('0xa')](0x0),_0x340175[_0x1cf5('0x10')][_0x1cf5('0xa')](this[_0x1cf5('0x8')](_0x57f7b0)),!0x0;}[_0x1cf5('0x3')](_0x592c93,_0x2ddee0){const _0x57211d=this['_decompressSingleOperation'](_0x2ddee0);_0x57211d[_0x1cf5('0xf')]&&!_0x57211d[_0x1cf5('0xf')][_0x1cf5('0xd')]&&(_0x57211d[_0x1cf5('0xf')][_0x1cf5('0xd')]=_0x87627c(_0x57211d['newRange'][_0x1cf5('0x14')]));const _0x2b3146=_0x87627c(_0x57211d);_0x2b3146[_0x1cf5('0xf')]&&(_0x2b3146[_0x1cf5('0xf')]['start'][_0x1cf5('0x5')]='toNone',_0x2b3146['newRange'][_0x1cf5('0xd')]=_0x87627c(_0x2b3146[_0x1cf5('0xf')][_0x1cf5('0x14')])),_0x2b3146[_0x1cf5('0x7')]='user:position:'+_0x2b3146['name'][_0x1cf5('0x6')](':')[0x2],_0x2ddee0[_0x1cf5('0x12')][_0x1cf5('0x0')](),_0x592c93[_0x1cf5('0xa')](_0x57211d),_0x592c93['push'](_0x2b3146);}[_0x1cf5('0x8')](_0x24bc81){const _0x1faf05={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x1cf5('0x11')]['_getCompressorByName'](_0x1cf5('0x1'))[_0x1cf5('0xc')](_0x1faf05,[_0x24bc81]),_0x1faf05['buffers'][0x0];}[_0x1cf5('0x9')](_0x2a07ab){const _0x40eef8=[];return this[_0x1cf5('0x11')][_0x1cf5('0xb')](_0x1cf5('0x1'))[_0x1cf5('0x3')](_0x40eef8,_0x2a07ab),_0x40eef8[0x0];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3ae9=['string','uint32','repeated','Position','bool'];(function(_0x3662db,_0x3ae91f){var _0x3235f4=function(_0x26ebc9){while(--_0x26ebc9){_0x3662db['push'](_0x3662db['shift']());}};_0x3235f4(++_0x3ae91f);}(_0x3ae9,0x148));var _0x3235=function(_0x3662db,_0x3ae91f){_0x3662db=_0x3662db-0x0;var _0x3235f4=_0x3ae9[_0x3662db];return _0x3235f4;};export default{'Position':{'fields':{'root':{'type':_0x3235('0x2'),'id':0x1},'rootMain':{'type':'bool','id':0x2},'rootGraveyard':{'type':'bool','id':0x3},'path':{'rule':_0x3235('0x4'),'type':_0x3235('0x3'),'id':0x4},'stickiness':{'type':_0x3235('0x2'),'id':0x5}}},'Range':{'fields':{'start':{'type':_0x3235('0x0'),'id':0x1},'end':{'type':_0x3235('0x0'),'id':0x2}}},'Element':{'fields':{'name':{'type':_0x3235('0x2'),'id':0x1},'children':{'rule':_0x3235('0x4'),'type':'Element','id':0x2},'data':{'type':_0x3235('0x2'),'id':0x3},'attributesBoolean':{'keyType':'string','type':_0x3235('0x1'),'id':0x4},'attributesJson':{'type':'string','id':0x5}}}};
|
package/src/compressor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4426=['_compressorById','_protobufFactory','forEach','_compressorByName','UserSelectionAction','length','_registerCompressor','Range','types','baseVersion','suggestion','ForwardDeletingAction','CommentMarkerOperation','AttributeOperation','_getCompressorByName','compress','no-operations-provided','Position','set','MergeOperation','RenameOperation','_registerActionCompressor','MoveOperation','DeletingAction','SuggestionMarkerOperation','RootAttributeOperation','description','SplitOperation','build','MarkerOperation','registerDescriptor','comment','_registerOperationCompressor','getDescriptor','get','InsertOperation','TypingAction','Element','NoOperation','decompress'];(function(_0x3f6310,_0x4426d7){const _0x1489ce=function(_0x35b796){while(--_0x35b796){_0x3f6310['push'](_0x3f6310['shift']());}};_0x1489ce(++_0x4426d7);}(_0x4426,0x16e));const _0x1489=function(_0x3f6310,_0x4426d7){_0x3f6310=_0x3f6310-0x0;let _0x1489ce=_0x4426[_0x3f6310];return _0x1489ce;};import{CKEditorError as _0x3122b1}from'ckeditor5/src/utils';import _0x27f64d from'./protobuffactory';import _0x33f1c9 from'./commondescriptions';import _0x293be9 from'./operationcompressor/attributeoperationcompressor';import _0x56081a from'./operationcompressor/insertoperationcompressor';import _0x498ab2 from'./operationcompressor/markeroperationcompressor';import _0x149b68 from'./operationcompressor/mergeoperationcompressor';import _0x3a5c3e from'./operationcompressor/moveoperationcompressor';import _0x8cdfb6 from'./operationcompressor/renameoperationcompressor';import _0x55fc39 from'./operationcompressor/rootattributeoperationcompressor';import _0x5c690a from'./operationcompressor/splitoperationcompressor';import _0x55595d from'./operationcompressor/nooperationcompressor';import _0x11f131 from'./operationcompressor/annotationmarkeroperationcompressor';import _0x124ee5 from'./actioncompressor/typingactioncompressor';import _0x20aaf0 from'./actioncompressor/deletingactioncompressor';import _0x8ff981 from'./actioncompressor/forwarddeletingactioncompressor';import _0x4b502d from'./actioncompressor/userselectionactioncompressor';export default class w{constructor(){this[_0x1489('0x22')]=new Map(),this[_0x1489('0x25')]=new Map(),this[_0x1489('0x23')]=new _0x27f64d(),this[_0x1489('0x23')][_0x1489('0x18')](_0x1489('0xb'),_0x33f1c9[_0x1489('0xb')]),this['_protobufFactory'][_0x1489('0x18')](_0x1489('0x1'),_0x33f1c9[_0x1489('0x1')]),this['_protobufFactory']['registerDescriptor'](_0x1489('0x1f'),_0x33f1c9['Element']),this['_protobufFactory'][_0x1489('0x18')](_0x1489('0x7'),_0x293be9['description']),this[_0x1489('0x23')][_0x1489('0x18')](_0x1489('0x1d'),_0x56081a[_0x1489('0x14')]),this[_0x1489('0x23')][_0x1489('0x18')](_0x1489('0x17'),_0x498ab2[_0x1489('0x14')]),this[_0x1489('0x23')]['registerDescriptor'](_0x1489('0xd'),_0x149b68[_0x1489('0x14')]),this[_0x1489('0x23')][_0x1489('0x18')]('MoveOperation',_0x3a5c3e[_0x1489('0x14')]),this[_0x1489('0x23')][_0x1489('0x18')](_0x1489('0xe'),_0x8cdfb6[_0x1489('0x14')]),this[_0x1489('0x23')]['registerDescriptor'](_0x1489('0x13'),_0x55fc39[_0x1489('0x14')]),this['_protobufFactory'][_0x1489('0x18')](_0x1489('0x15'),_0x5c690a[_0x1489('0x14')]),this[_0x1489('0x23')][_0x1489('0x16')](),this['_registerCompressor'](0x1,_0x1489('0x20'),new _0x55595d(0x1,_0x1489('0x20'))),this['_registerOperationCompressor'](0xa,'AttributeOperation',_0x293be9),this[_0x1489('0x1a')](0xb,'InsertOperation',_0x56081a),this[_0x1489('0x1a')](0xc,_0x1489('0x17'),_0x498ab2),this[_0x1489('0x1a')](0xd,_0x1489('0xd'),_0x149b68),this[_0x1489('0x1a')](0xe,_0x1489('0x10'),_0x3a5c3e),this[_0x1489('0x1a')](0xf,'RenameOperation',_0x8cdfb6),this[_0x1489('0x1a')](0x10,_0x1489('0x13'),_0x55fc39),this[_0x1489('0x1a')](0x11,_0x1489('0x15'),_0x5c690a);const _0x56dd23=this[_0x1489('0x23')][_0x1489('0x1b')](_0x1489('0x17'));this[_0x1489('0x0')](0x12,'CommentMarkerOperation',new _0x11f131(0x12,_0x1489('0x17'),_0x56dd23,_0x1489('0x19'))),this[_0x1489('0x0')](0x13,'SuggestionMarkerOperation',new _0x11f131(0x13,_0x1489('0x17'),_0x56dd23,_0x1489('0x4'))),this['_registerActionCompressor'](0x64,_0x1489('0x1e'),_0x124ee5),this[_0x1489('0xf')](0x65,_0x1489('0x11'),_0x20aaf0),this['_registerActionCompressor'](0x66,_0x1489('0x5'),_0x8ff981),this[_0x1489('0xf')](0x67,_0x1489('0x26'),_0x4b502d);}[_0x1489('0x1a')](_0x3439bb,_0x3c9f9f,_0x2d8449){const _0x30011a=new _0x2d8449(_0x3439bb,_0x3c9f9f,this[_0x1489('0x23')][_0x1489('0x1b')](_0x3c9f9f));this[_0x1489('0x0')](_0x3439bb,_0x3c9f9f,_0x30011a);}[_0x1489('0xf')](_0x2014de,_0x10d3ed,_0x29d471){const _0x325180=new _0x29d471(_0x2014de,this);this[_0x1489('0x0')](_0x2014de,_0x10d3ed,_0x325180);}[_0x1489('0x0')](_0x2029b4,_0x39aa81,_0x2bd579){this[_0x1489('0x22')][_0x1489('0xc')](_0x2029b4,_0x2bd579),this[_0x1489('0x25')][_0x1489('0xc')](_0x39aa81,_0x2bd579);}['_getCompressorByName'](_0x3d7196){return this['_compressorByName'][_0x1489('0x1c')](_0x3d7196);}[_0x1489('0x9')](_0x1053de){if(!_0x1053de||!_0x1053de[0x0])throw new _0x3122b1(_0x1489('0xa'),this);const _0x1ccd9d={'types':[],'buffers':[],'baseVersion':_0x1053de[0x0]['baseVersion']};for(;_0x1053de[_0x1489('0x27')];)this[_0x1489('0x8')]('UserSelectionAction')['compress'](_0x1ccd9d,_0x1053de)||this[_0x1489('0x8')](_0x1489('0x1e'))[_0x1489('0x9')](_0x1ccd9d,_0x1053de)||this['_getCompressorByName']('DeletingAction')[_0x1489('0x9')](_0x1ccd9d,_0x1053de)||this[_0x1489('0x8')](_0x1489('0x5'))[_0x1489('0x9')](_0x1ccd9d,_0x1053de)||this[_0x1489('0x8')](_0x1489('0x6'))[_0x1489('0x9')](_0x1ccd9d,_0x1053de)||this[_0x1489('0x8')](_0x1489('0x12'))['compress'](_0x1ccd9d,_0x1053de)||this['_getCompressorByName'](_0x1053de[0x0]['__className'])[_0x1489('0x9')](_0x1ccd9d,_0x1053de);return _0x1ccd9d;}[_0x1489('0x21')](_0x265166){const _0x393016=[];for(;_0x265166['types'][_0x1489('0x27')];){this[_0x1489('0x22')][_0x1489('0x1c')](_0x265166[_0x1489('0x2')][0x0])[_0x1489('0x21')](_0x393016,_0x265166);}return _0x393016[_0x1489('0x24')]((_0x1ac8df,_0x2ce0a8)=>_0x1ac8df[_0x1489('0x3')]=_0x265166['baseVersion']+_0x2ce0a8),_0x393016;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x79bc=['compress','startsWith','decompress','name','MarkerOperation','length','__className','_omittedNamespace'];(function(_0x23c56a,_0x79bc51){const _0xc2c77b=function(_0x5ebec7){while(--_0x5ebec7){_0x23c56a['push'](_0x23c56a['shift']());}};_0xc2c77b(++_0x79bc51);}(_0x79bc,0xfa));const _0xc2c7=function(_0x23c56a,_0x79bc51){_0x23c56a=_0x23c56a-0x0;let _0xc2c77b=_0x79bc[_0x23c56a];return _0xc2c77b;};import _0x553824 from'./markeroperationcompressor';export default class O extends _0x553824{constructor(_0xc55727,_0xcd14a7,_0x52e062,_0x4433b1){super(_0xc55727,_0xcd14a7,_0x52e062),this['_omittedNamespace']=_0x4433b1+':';}[_0xc2c7('0x6')](_0x54b3e3,_0x41afee){return!(_0xc2c7('0x2')!=_0x41afee[0x0][_0xc2c7('0x4')]||!_0x41afee[0x0]['name'][_0xc2c7('0x7')](this['_omittedNamespace']))&&(_0x41afee[0x0][_0xc2c7('0x1')]=_0x41afee[0x0]['name']['replace'](new RegExp('^'+this['_omittedNamespace']),''),super[_0xc2c7('0x6')](_0x54b3e3,_0x41afee),!0x0);}['decompress'](_0x4f6c80,_0x11adfb){super[_0xc2c7('0x0')](_0x4f6c80,_0x11adfb);const _0x35de4f=_0x4f6c80[_0x4f6c80[_0xc2c7('0x3')]-0x1];_0x35de4f[_0xc2c7('0x1')]=this[_0xc2c7('0x5')]+_0x35de4f[_0xc2c7('0x1')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xae93=['string','Range','shift','decompress','push','newValue','operationName','compress','stringify','boolean','__className','_protobufDescriptor','description','Boolean','bool','oldValue'];(function(_0x528bc4,_0x28aa38){const _0x4a18b5=function(_0x1eb185){while(--_0x1eb185){_0x528bc4['push'](_0x528bc4['shift']());}};_0x4a18b5(++_0x28aa38);}(_0xae93,0x1bf));const _0x28aa=function(_0x528bc4,_0x28aa38){_0x528bc4=_0x528bc4-0x0;let _0x4a18b5=_0xae93[_0x528bc4];return _0x4a18b5;};import _0x11649c from'./operationcompressor';import{parsePositionBeforeCompression as _0x119b25,parsePositionAfterCompression as _0x11f6fb}from'../utils';export default class i extends _0x11649c{static get[_0x28aa('0xd')](){return{'fields':{'range':{'type':_0x28aa('0x2'),'id':0x1},'key':{'type':'string','id':0x2},'oldValueBoolean':{'type':_0x28aa('0xf'),'id':0x3},'oldValueJson':{'type':_0x28aa('0x1'),'id':0x4},'newValueBoolean':{'type':'bool','id':0x5},'newValueJson':{'type':_0x28aa('0x1'),'id':0x6},'wasUndone':{'type':'bool','id':0x7}}};}[_0x28aa('0x8')](_0x20ecc3,_0x1c6fce){const _0x1dd2e3=_0x1c6fce[_0x28aa('0x3')]();$(_0x28aa('0x0'),_0x1dd2e3),$(_0x28aa('0x6'),_0x1dd2e3),_0x119b25(_0x1dd2e3),_0x20ecc3['buffers'][_0x28aa('0x5')](this[_0x28aa('0xc')][_0x28aa('0x8')](_0x1dd2e3)),_0x20ecc3['types'][_0x28aa('0x5')](this['id']);}['decompress'](_0x2fa906,_0x14f98c){const {types:_0x138f9f,buffers:_0x115ea9}=_0x14f98c,_0x5019f5=this[_0x28aa('0xc')][_0x28aa('0x4')](_0x115ea9[_0x28aa('0x3')]());_0x138f9f['shift'](),N(_0x28aa('0x0'),_0x5019f5),N('newValue',_0x5019f5),_0x11f6fb(_0x5019f5),_0x5019f5[_0x28aa('0xb')]=this[_0x28aa('0x7')],_0x2fa906[_0x28aa('0x5')](_0x5019f5);}}function $(_0x2c4d04,_0x2b96ef){const _0x2f92fc=_0x2b96ef[_0x2c4d04];_0x28aa('0xa')==typeof _0x2f92fc?_0x2b96ef[_0x2c4d04+'Boolean']=_0x2f92fc:_0x2b96ef[_0x2c4d04+'Json']=JSON[_0x28aa('0x9')](_0x2f92fc);}function N(_0x2cf6e0,_0x12a857){const _0x173ffe=_0x2cf6e0+'Json';_0x12a857[_0x173ffe]?(_0x12a857[_0x2cf6e0]=JSON['parse'](_0x12a857[_0x173ffe]),delete _0x12a857[_0x173ffe]):(_0x12a857[_0x2cf6e0]=_0x12a857[_0x2cf6e0+_0x28aa('0xe')],delete _0x12a857[_0x2cf6e0+_0x28aa('0xe')]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5682=['every','keys','__className','stringify','shift','_protobufDescriptor','children','bool','parse','buffers','push','attributesJson','repeated','Position','decompress','description','Element','attributes','compress','operationName','attributesBoolean','nodes'];(function(_0x4af1c5,_0x568211){const _0x5e0328=function(_0x341cd5){while(--_0x341cd5){_0x4af1c5['push'](_0x4af1c5['shift']());}};_0x5e0328(++_0x568211);}(_0x5682,0x19f));const _0x5e03=function(_0x4af1c5,_0x568211){_0x4af1c5=_0x4af1c5-0x0;let _0x5e0328=_0x5682[_0x4af1c5];return _0x5e0328;};import _0x4bcaed from'./operationcompressor';import{parsePositionBeforeCompression as _0x6926dc,parsePositionAfterCompression as _0x2f3ee4}from'../utils';export default class s extends _0x4bcaed{static get[_0x5e03('0x12')](){return{'fields':{'position':{'type':_0x5e03('0x10'),'id':0x1},'nodes':{'rule':_0x5e03('0xf'),'type':_0x5e03('0x13'),'id':0x2},'shouldReceiveAttributes':{'type':_0x5e03('0xa'),'id':0x3},'wasUndone':{'type':_0x5e03('0xa'),'id':0x4}}};}[_0x5e03('0x15')](_0x43b45d,_0x2fc805){const _0x62a312=_0x2fc805[_0x5e03('0x7')]();A(_0x62a312[_0x5e03('0x2')]),_0x6926dc(_0x62a312),_0x43b45d[_0x5e03('0xc')][_0x5e03('0xd')](this[_0x5e03('0x8')][_0x5e03('0x15')](_0x62a312)),_0x43b45d['types']['push'](this['id']);}[_0x5e03('0x11')](_0x246803,_0xa8d440){const {types:_0x3f60e6,buffers:_0x865512}=_0xa8d440,_0x1d8e0f=this[_0x5e03('0x8')][_0x5e03('0x11')](_0x865512['shift']());_0x3f60e6['shift'](),_0x1d8e0f['nodes']||(_0x1d8e0f[_0x5e03('0x2')]=[]),E(_0x1d8e0f[_0x5e03('0x2')]),_0x2f3ee4(_0x1d8e0f),_0x1d8e0f[_0x5e03('0x5')]=this[_0x5e03('0x0')],_0x246803[_0x5e03('0xd')](_0x1d8e0f);}}function A(_0x321cb2){for(const _0x385b57 of _0x321cb2){if(_0x385b57[_0x5e03('0x14')]){const _0x33f5c5=_0x385b57[_0x5e03('0x14')];R(_0x33f5c5)?_0x385b57['attributesBoolean']=_0x33f5c5:_0x385b57['attributesJson']=JSON[_0x5e03('0x6')](_0x33f5c5);}_0x385b57[_0x5e03('0x9')]&&A(_0x385b57['children']);}}function E(_0xda8ffe){for(const _0x3eb51e of _0xda8ffe)(_0x3eb51e[_0x5e03('0x1')]||_0x3eb51e[_0x5e03('0xe')])&&(_0x3eb51e['attributesBoolean']?(_0x3eb51e['attributes']=_0x3eb51e[_0x5e03('0x1')],delete _0x3eb51e[_0x5e03('0x1')]):(_0x3eb51e[_0x5e03('0x14')]=JSON[_0x5e03('0xb')](_0x3eb51e[_0x5e03('0xe')]),delete _0x3eb51e[_0x5e03('0xe')])),_0x3eb51e[_0x5e03('0x9')]&&E(_0x3eb51e[_0x5e03('0x9')]);}function R(_0x2a2e46){return Object[_0x5e03('0x4')](_0x2a2e46)[_0x5e03('0x3')](_0x3c5e02=>'boolean'==typeof _0x2a2e46[_0x3c5e02]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x525f=['string','oldRange','Range','bool','newRange','length','description','decompress'];(function(_0x360b4f,_0x525f84){const _0x99e1e9=function(_0x551732){while(--_0x551732){_0x360b4f['push'](_0x360b4f['shift']());}};_0x99e1e9(++_0x525f84);}(_0x525f,0x147));const _0x99e1=function(_0x360b4f,_0x525f84){_0x360b4f=_0x360b4f-0x0;let _0x99e1e9=_0x525f[_0x360b4f];return _0x99e1e9;};import _0x1bae8d from'./operationcompressor';export default class n extends _0x1bae8d{static get[_0x99e1('0x7')](){return{'fields':{'name':{'type':_0x99e1('0x1'),'id':0x1},'oldRange':{'type':_0x99e1('0x3'),'id':0x2},'newRange':{'type':'Range','id':0x3},'affectsData':{'type':_0x99e1('0x4'),'id':0x4},'wasUndone':{'type':_0x99e1('0x4'),'id':0x5}}};}[_0x99e1('0x0')](_0x5942e7,_0x12d3c0){super[_0x99e1('0x0')](_0x5942e7,_0x12d3c0);const _0x4c9e2a=_0x5942e7[_0x5942e7[_0x99e1('0x6')]-0x1];_0x4c9e2a[_0x99e1('0x2')]||(_0x4c9e2a[_0x99e1('0x2')]=null),_0x4c9e2a['newRange']||(_0x4c9e2a[_0x99e1('0x5')]=null);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1e71=['uint32','bool','Position'];(function(_0x380b21,_0x1e71f4){var _0x192c4d=function(_0xe7dced){while(--_0xe7dced){_0x380b21['push'](_0x380b21['shift']());}};_0x192c4d(++_0x1e71f4);}(_0x1e71,0x14f));var _0x192c=function(_0x380b21,_0x1e71f4){_0x380b21=_0x380b21-0x0;var _0x192c4d=_0x1e71[_0x380b21];return _0x192c4d;};import _0x245953 from'./operationcompressor';export default class p extends _0x245953{static get['description'](){return{'fields':{'sourcePosition':{'type':_0x192c('0x0'),'id':0x1},'targetPosition':{'type':_0x192c('0x0'),'id':0x2},'graveyardPosition':{'type':_0x192c('0x0'),'id':0x3},'howMany':{'type':_0x192c('0x1'),'id':0x4},'wasUndone':{'type':_0x192c('0x2'),'id':0x5}}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x353a=['Position','uint32','bool'];(function(_0x26408d,_0x353a64){var _0x3a6268=function(_0x331ff7){while(--_0x331ff7){_0x26408d['push'](_0x26408d['shift']());}};_0x3a6268(++_0x353a64);}(_0x353a,0x104));var _0x3a62=function(_0x26408d,_0x353a64){_0x26408d=_0x26408d-0x0;var _0x3a6268=_0x353a[_0x26408d];return _0x3a6268;};import _0x3bbda4 from'./operationcompressor';export default class m extends _0x3bbda4{static get['description'](){return{'fields':{'sourcePosition':{'type':_0x3a62('0x1'),'id':0x1},'howMany':{'type':_0x3a62('0x2'),'id':0x2},'targetPosition':{'type':'Position','id':0x3},'wasUndone':{'type':_0x3a62('0x0'),'id':0x4}}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x189d=['types','decompress','push','shift'];(function(_0x2445b5,_0x189d72){var _0x2c67ab=function(_0x52c458){while(--_0x52c458){_0x2445b5['push'](_0x2445b5['shift']());}};_0x2c67ab(++_0x189d72);}(_0x189d,0xfc));var _0x2c67=function(_0x2445b5,_0x189d72){_0x2445b5=_0x2445b5-0x0;var _0x2c67ab=_0x189d[_0x2445b5];return _0x2c67ab;};import _0x5f4146 from'./operationcompressor';export default class f extends _0x5f4146{['compress'](_0x629f6c,_0x44e4d7){_0x44e4d7[_0x2c67('0x3')](),_0x629f6c['types']['push'](this['id']);}[_0x2c67('0x1')](_0x2114ae,_0x1ee2a7){_0x1ee2a7[_0x2c67('0x0')][_0x2c67('0x3')](),_0x2114ae[_0x2c67('0x2')]({'__className':this['operationName']});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2689=['__className','push','buffers','shift','compress','_protobufDescriptor','types','decompress','operationName'];(function(_0x2e7865,_0x268959){const _0xb984b5=function(_0x2d651a){while(--_0x2d651a){_0x2e7865['push'](_0x2e7865['shift']());}};_0xb984b5(++_0x268959);}(_0x2689,0x127));const _0xb984=function(_0x2e7865,_0x268959){_0x2e7865=_0x2e7865-0x0;let _0xb984b5=_0x2689[_0x2e7865];return _0xb984b5;};import{parsePositionBeforeCompression as _0x5dba10,parsePositionAfterCompression as _0x5c0d52}from'../utils';export default class V{constructor(_0x58787e,_0x4463b3,_0x36319d){this['id']=_0x58787e,this[_0xb984('0x1')]=_0x4463b3,this[_0xb984('0x7')]=_0x36319d;}[_0xb984('0x6')](_0x5efd98,_0x553601){const _0x4d1caa=_0x553601['shift']();_0x5dba10(_0x4d1caa),_0x5efd98[_0xb984('0x4')]['push'](this[_0xb984('0x7')]['compress'](_0x4d1caa)),_0x5efd98[_0xb984('0x8')][_0xb984('0x3')](this['id']);}[_0xb984('0x0')](_0x145846,_0x5051ed){_0x5051ed['types']['shift']();const _0x2c3ddd=this[_0xb984('0x7')][_0xb984('0x0')](_0x5051ed[_0xb984('0x4')][_0xb984('0x5')]());_0x5c0d52(_0x2c3ddd),_0x2c3ddd[_0xb984('0x2')]=this[_0xb984('0x1')],_0x145846['push'](_0x2c3ddd);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xc98c=['description','bool','string'];(function(_0x53b2e4,_0xc98c9a){var _0xd0d3fb=function(_0x380838){while(--_0x380838){_0x53b2e4['push'](_0x53b2e4['shift']());}};_0xd0d3fb(++_0xc98c9a);}(_0xc98c,0x1c3));var _0xd0d3=function(_0x53b2e4,_0xc98c9a){_0x53b2e4=_0x53b2e4-0x0;var _0xd0d3fb=_0xc98c[_0x53b2e4];return _0xd0d3fb;};import _0x5700c2 from'./operationcompressor';export default class a extends _0x5700c2{static get[_0xd0d3('0x2')](){return{'fields':{'position':{'type':'Position','id':0x1},'oldName':{'type':_0xd0d3('0x1'),'id':0x2},'newName':{'type':'string','id':0x3},'wasUndone':{'type':_0xd0d3('0x0'),'id':0x4}}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x447b=['description','fields','root'];(function(_0x4f6329,_0x447b29){const _0xc2f27f=function(_0xe80d77){while(--_0xe80d77){_0x4f6329['push'](_0x4f6329['shift']());}};_0xc2f27f(++_0x447b29);}(_0x447b,0x1b1));const _0xc2f2=function(_0x4f6329,_0x447b29){_0x4f6329=_0x4f6329-0x0;let _0xc2f27f=_0x447b[_0x4f6329];return _0xc2f27f;};import _0x405753 from'./attributeoperationcompressor';export default class c extends _0x405753{static get[_0xc2f2('0x2')](){const _0x5d5900=_0x405753[_0xc2f2('0x2')];return delete _0x5d5900[_0xc2f2('0x0')]['range'],_0x5d5900[_0xc2f2('0x0')][_0xc2f2('0x1')]={'type':'string','id':0x1},_0x5d5900;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5b77=['Position','uint32','description'];(function(_0x11a0d7,_0x5b77e7){var _0x5515fd=function(_0x31ccbb){while(--_0x31ccbb){_0x11a0d7['push'](_0x11a0d7['shift']());}};_0x5515fd(++_0x5b77e7);}(_0x5b77,0xae));var _0x5515=function(_0x11a0d7,_0x5b77e7){_0x11a0d7=_0x11a0d7-0x0;var _0x5515fd=_0x5b77[_0x11a0d7];return _0x5515fd;};import _0x407b10 from'./operationcompressor';export default class h extends _0x407b10{static get[_0x5515('0x2')](){return{'fields':{'splitPosition':{'type':'Position','id':0x1},'graveyardPosition':{'type':_0x5515('0x0'),'id':0x2},'howMany':{'type':_0x5515('0x1'),'id':0x3},'insertionPosition':{'type':'Position','id':0x4},'wasUndone':{'type':'bool','id':0x5}}};}}
|
package/src/protobuffactory.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15bf=['lookupType','fromJSON','decode','toObject','compress','registerDescriptor','nested','_protobufRoot','decompress','finish','_protobuf','_description','encode','create'];(function(_0x436266,_0x15bf4e){const _0x317cca=function(_0xdd28de){while(--_0xdd28de){_0x436266['push'](_0x436266['shift']());}};_0x317cca(++_0x15bf4e);}(_0x15bf,0x17f));const _0x317c=function(_0x436266,_0x15bf4e){_0x436266=_0x436266-0x0;let _0x317cca=_0x15bf[_0x436266];return _0x317cca;};import _0x2d1557 from'protobufjs/light';import{CKEditorError as _0x19a8f9}from'ckeditor5/src/utils';import{cloneDeep as _0x185bdd}from'lodash-es';export default class r{constructor(){this[_0x317c('0x6')]={'nested':{}};}[_0x317c('0x0')](_0x448336,_0x576e62){this[_0x317c('0x6')][_0x317c('0x1')][_0x448336]=_0x185bdd(_0x576e62);}['build'](){this[_0x317c('0x2')]=_0x2d1557['Root'][_0x317c('0xa')](this[_0x317c('0x6')]);}['getDescriptor'](_0x5ba11b){if(!this[_0x317c('0x2')])throw new _0x19a8f9('protobuffactory-cannot-get-descriptor-before-build',this);return new D(this['_protobufRoot'][_0x317c('0x9')](_0x5ba11b));}}class D{constructor(_0x3b1c87){this[_0x317c('0x5')]=_0x3b1c87;}[_0x317c('0xd')](_0x4e2211){const _0x13333a=this[_0x317c('0x5')]['verify'](_0x4e2211);if(_0x13333a)throw Error(_0x13333a);return this['_protobuf'][_0x317c('0x7')](this['_protobuf'][_0x317c('0x8')](_0x4e2211))[_0x317c('0x4')]();}[_0x317c('0x3')](_0x1e5911){return this[_0x317c('0x5')][_0x317c('0xc')](this[_0x317c('0x5')][_0x317c('0xb')](_0x1e5911),{'oneofs':!0x0});}}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ce1=['main','$graveyard','rootGraveyard','rootMain','nodes','root','path'];(function(_0x5ec598,_0x5ce1aa){const _0x23d475=function(_0x368b46){while(--_0x368b46){_0x5ec598['push'](_0x5ec598['shift']());}};_0x23d475(++_0x5ce1aa);}(_0x5ce1,0x1f2));const _0x23d4=function(_0x5ec598,_0x5ce1aa){_0x5ec598=_0x5ec598-0x0;let _0x23d475=_0x5ce1[_0x5ec598];return _0x23d475;};import{cloneDeep as _0x3d32bd,isEqual as _0x1d28e6,isObject as _0x5c10cd}from'lodash-es';export function getPositionShiftedBy(_0x168763,_0x34fc39){const _0xacef73=_0x3d32bd(_0x168763);return _0xacef73['path'][_0xacef73[_0x23d4('0x5')]['length']-0x1]+=_0x34fc39,_0xacef73;}export function arePositionsEqual(_0x5d8996,_0x43f2cb){return _0x5d8996[_0x23d4('0x4')]===_0x43f2cb[_0x23d4('0x4')]&&_0x1d28e6(_0x5d8996[_0x23d4('0x5')],_0x43f2cb[_0x23d4('0x5')]);}export function parsePositionBeforeCompression(_0x5ad669){y(_0x5ad669,_0x377c2d=>('main'==_0x377c2d[_0x23d4('0x4')]?(_0x377c2d[_0x23d4('0x2')]=!0x0,delete _0x377c2d['root']):_0x23d4('0x0')==_0x377c2d[_0x23d4('0x4')]&&(_0x377c2d[_0x23d4('0x1')]=!0x0,delete _0x377c2d[_0x23d4('0x4')]),_0x377c2d));}export function parsePositionAfterCompression(_0x582b34){y(_0x582b34,_0x54ff52=>(_0x54ff52[_0x23d4('0x2')]?(_0x54ff52[_0x23d4('0x4')]=_0x23d4('0x6'),delete _0x54ff52['rootMain']):_0x54ff52[_0x23d4('0x1')]&&(_0x54ff52[_0x23d4('0x4')]=_0x23d4('0x0'),delete _0x54ff52[_0x23d4('0x1')]),_0x54ff52));}function y(_0x3689c7,_0xea96d3){for(const _0x548dda in _0x3689c7){const _0x31671c=_0x3689c7[_0x548dda];_0x23d4('0x3')!==_0x548dda&&_0x5c10cd(_0x31671c)&&(_0x31671c[_0x23d4('0x5')]&&(_0x31671c[_0x23d4('0x4')]||_0x31671c[_0x23d4('0x2')]||_0x31671c[_0x23d4('0x1')])?_0x3689c7[_0x548dda]=_0xea96d3(_0x31671c):y(_0x31671c,_0xea96d3));}return _0x3689c7;}
|