@ckeditor/ckeditor5-operations-compressor 32.0.0 → 34.1.0

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/LICENSE.md CHANGED
@@ -2,7 +2,7 @@ Software License Agreement
2
2
  ==========================
3
3
 
4
4
  **CKEditor 5 operations compressor**<br>
5
- Copyright (c) 2003-2021, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
5
+ Copyright (c) 2003-2022, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
6
6
 
7
7
  CKEditor 5 operations compressor is licensed under a commercial license and is protected by copyright law.
8
8
  For more details about available licensing options please contact us at sales@cksource.com.
@@ -24,4 +24,4 @@ The following libraries are included in CKEditor 5 Operations Compressor under t
24
24
  Trademarks
25
25
  ----------
26
26
 
27
- **CKEditor** is a trademark of [CKSource](http://cksource.com) Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
27
+ **CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # CKEditor 5 operations compressor
2
2
 
3
+ [![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-operations-compressor.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-operations-compressor)
4
+ ![Dependency Status](https://img.shields.io/librariesio/release/npm/@ckeditor/ckeditor5-operations-compressor)
5
+
3
6
  CKEditor 5 operations compressor is a low-level API that compresses and decompresses operations to a normalized binary format in order to decrease network usage during real-time collaborative editing. It is required by the [CKEditor 5 real-time collaborative editing](https://ckeditor.com/collaboration/real-time/) feature to enable collaboration in [CKEditor 5](https://ckeditor.com/ckeditor-5/).
4
7
 
5
8
  ## Documentation
@@ -17,11 +20,11 @@ As a licensed CKEditor 5 Collaboration features user you can report bugs and req
17
20
  ## License
18
21
 
19
22
  **CKEditor 5 operations compressor**<br>
20
- Copyright (c) 2003-2021, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
23
+ Copyright (c) 2003-2022, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
21
24
 
22
25
  CKEditor 5 operations compressor is licensed under a commercial license and is protected by copyright law.
23
26
  For more details about available licensing options please contact us at sales@cksource.com.
24
27
 
25
28
  ### Trademarks
26
29
 
27
- **CKEditor** is a trademark of [CKSource](http://cksource.com) Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
30
+ **CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-operations-compressor",
3
- "version": "32.0.0",
3
+ "version": "34.1.0",
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": "^32.0.0",
30
+ "ckeditor5": "^34.1.0",
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 _0x3b5d=['shift','decompress','length','buffers','push','_compressSingleOperation','_combineNext','types','_decompressSingleOperation','compress'];(function(_0x4dea46,_0x3b5d55){const _0x49367b=function(_0x3d2482){while(--_0x3d2482){_0x4dea46['push'](_0x4dea46['shift']());}};_0x49367b(++_0x3b5d55);}(_0x3b5d,0x1ab));const _0x4936=function(_0x4dea46,_0x3b5d55){_0x4dea46=_0x4dea46-0x0;let _0x49367b=_0x3b5d[_0x4dea46];return _0x49367b;};import{cloneDeep as _0x1bd0fc}from'lodash-es';export default class j{constructor(_0x4dca60,_0x5c30a9){this['id']=_0x4dca60,this['_context']=_0x5c30a9;}[_0x4936('0x2')](_0x3bc301,_0x1c9c0e){let _0x3db4f1;for(;_0x1c9c0e[_0x4936('0x5')]>0x1&&this['_compareOperations'](_0x1c9c0e[0x0],_0x1c9c0e[0x1]);)_0x3db4f1?(_0x3db4f1=this[_0x4936('0x9')](_0x1c9c0e[_0x4936('0x3')](),_0x3db4f1),_0x3bc301[_0x4936('0x0')][_0x4936('0x7')](0x0)):(_0x3db4f1=_0x1bd0fc(_0x1c9c0e['shift']()),_0x3bc301[_0x4936('0x0')][_0x4936('0x7')](this['id']));return!!_0x3db4f1&&(_0x3db4f1=this['_combineNext'](_0x1c9c0e[_0x4936('0x3')](),_0x3db4f1),_0x3bc301[_0x4936('0x0')]['push'](0x0),_0x3bc301[_0x4936('0x6')][_0x4936('0x7')](this[_0x4936('0x8')](_0x3db4f1)),!0x0);}[_0x4936('0x4')](_0x41075b,_0x5df82a){const _0x42ce11=this[_0x4936('0x1')](_0x5df82a);for(;0x0==_0x5df82a[_0x4936('0x0')][0x0];)_0x5df82a['types'][_0x4936('0x3')](),_0x41075b['push'](this['_splitCurrent'](_0x42ce11));_0x41075b[_0x4936('0x7')](_0x42ce11);}}
23
+ const _0x2ddd=['push','types','shift','_decompressSingleOperation','compress','_splitCurrent','_combineNext','buffers','_compareOperations'];(function(_0x4d420b,_0x2ddd38){const _0x34f427=function(_0x5b8f05){while(--_0x5b8f05){_0x4d420b['push'](_0x4d420b['shift']());}};_0x34f427(++_0x2ddd38);}(_0x2ddd,0x1a8));const _0x34f4=function(_0x4d420b,_0x2ddd38){_0x4d420b=_0x4d420b-0x0;let _0x34f427=_0x2ddd[_0x4d420b];return _0x34f427;};import{cloneDeep as _0x25716b}from'lodash-es';export default class j{constructor(_0x216199,_0x3f885e){this['id']=_0x216199,this['_context']=_0x3f885e;}[_0x34f4('0x3')](_0x3410c2,_0x299de0){let _0x209f23;for(;_0x299de0['length']>0x1&&this[_0x34f4('0x7')](_0x299de0[0x0],_0x299de0[0x1]);)_0x209f23?(_0x209f23=this[_0x34f4('0x5')](_0x299de0[_0x34f4('0x1')](),_0x209f23),_0x3410c2[_0x34f4('0x0')]['push'](0x0)):(_0x209f23=_0x25716b(_0x299de0[_0x34f4('0x1')]()),_0x3410c2[_0x34f4('0x0')][_0x34f4('0x8')](this['id']));return!!_0x209f23&&(_0x209f23=this[_0x34f4('0x5')](_0x299de0[_0x34f4('0x1')](),_0x209f23),_0x3410c2['types'][_0x34f4('0x8')](0x0),_0x3410c2[_0x34f4('0x6')][_0x34f4('0x8')](this['_compressSingleOperation'](_0x209f23)),!0x0);}['decompress'](_0x376360,_0xd053ff){const _0xa0792e=this[_0x34f4('0x2')](_0xd053ff);for(;0x0==_0xd053ff[_0x34f4('0x0')][0x0];)_0xd053ff[_0x34f4('0x0')]['shift'](),_0x376360[_0x34f4('0x8')](this[_0x34f4('0x4')](_0xa0792e));_0x376360[_0x34f4('0x8')](_0xa0792e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52b5=['_getCompressorByName','compress','wasUndone','root','_combineNext','MoveOperation','decompress','_compareOperations','sourcePosition','howMany','__className','_decompressSingleOperation','targetPosition','buffers','_context'];(function(_0x556488,_0x52b542){const _0x134109=function(_0x23b09e){while(--_0x23b09e){_0x556488['push'](_0x556488['shift']());}};_0x134109(++_0x52b542);}(_0x52b5,0x7a));const _0x1341=function(_0x556488,_0x52b542){_0x556488=_0x556488-0x0;let _0x134109=_0x52b5[_0x556488];return _0x134109;};import _0x1d8fbb from'./actioncompressor';import{arePositionsEqual as _0x542d10,getPositionShiftedBy as _0xf91e13}from'../utils';import{cloneDeep as _0x2f1511}from'lodash-es';export default class u extends _0x1d8fbb{[_0x1341('0x2')](_0xfd4eae,_0x274bf5){return _0x274bf5[_0x1341('0x7')]++,_0x274bf5['sourcePosition']=_0x2f1511(_0xfd4eae[_0x1341('0x6')]),_0x274bf5;}['_splitCurrent'](_0x2cf6db){const _0x5de8a3=_0x2f1511(_0x2cf6db);return _0x2cf6db[_0x1341('0x7')]--,_0x5de8a3[_0x1341('0x7')]=0x1,_0x5de8a3['sourcePosition']=_0xf91e13(_0x5de8a3['sourcePosition'],_0x2cf6db[_0x1341('0x7')]),_0x5de8a3;}[_0x1341('0x5')](_0x5df57a,_0x474c4b){return!(!S(_0x5df57a)||!S(_0x474c4b))&&(_0x542d10(_0xf91e13(_0x5df57a[_0x1341('0x6')],-0x1),_0x474c4b['sourcePosition'])&&_0x542d10(_0x5df57a[_0x1341('0xa')],_0x474c4b[_0x1341('0xa')]));}['_compressSingleOperation'](_0x9d757){const _0x1ab153={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x1341('0xc')][_0x1341('0xd')](_0x1341('0x3'))[_0x1341('0xe')](_0x1ab153,[_0x9d757]),_0x1ab153[_0x1341('0xb')][0x0];}[_0x1341('0x9')](_0x1cfae9){const _0x259556=[];return this[_0x1341('0xc')][_0x1341('0xd')]('MoveOperation')[_0x1341('0x4')](_0x259556,_0x1cfae9),_0x259556[0x0];}}function S(_0x116234){return _0x1341('0x3')==_0x116234[_0x1341('0x8')]&&'$graveyard'==_0x116234[_0x1341('0xa')][_0x1341('0x1')]&&0x1==_0x116234[_0x1341('0x7')]&&!_0x116234[_0x1341('0x0')];}
23
+ const _0xda3f=['sourcePosition','howMany','MoveOperation','_getCompressorByName','buffers','__className','targetPosition','wasUndone','decompress','_combineNext','_compareOperations'];(function(_0x507ea2,_0xda3f96){const _0x1b0501=function(_0xc3b444){while(--_0xc3b444){_0x507ea2['push'](_0x507ea2['shift']());}};_0x1b0501(++_0xda3f96);}(_0xda3f,0x1b6));const _0x1b05=function(_0x507ea2,_0xda3f96){_0x507ea2=_0x507ea2-0x0;let _0x1b0501=_0xda3f[_0x507ea2];return _0x1b0501;};import _0x4d9cf3 from'./actioncompressor';import{arePositionsEqual as _0x396e60,getPositionShiftedBy as _0x2dcda0}from'../utils';import{cloneDeep as _0x47f36b}from'lodash-es';export default class u extends _0x4d9cf3{[_0x1b05('0x0')](_0x172ad5,_0x4e9a8c){return _0x4e9a8c[_0x1b05('0x3')]++,_0x4e9a8c[_0x1b05('0x2')]=_0x47f36b(_0x172ad5['sourcePosition']),_0x4e9a8c;}['_splitCurrent'](_0x28fee6){const _0x3c4243=_0x47f36b(_0x28fee6);return _0x28fee6[_0x1b05('0x3')]--,_0x3c4243[_0x1b05('0x3')]=0x1,_0x3c4243[_0x1b05('0x2')]=_0x2dcda0(_0x3c4243['sourcePosition'],_0x28fee6[_0x1b05('0x3')]),_0x3c4243;}[_0x1b05('0x1')](_0x45b2b5,_0x50390d){return!(!S(_0x45b2b5)||!S(_0x50390d))&&(_0x396e60(_0x2dcda0(_0x45b2b5[_0x1b05('0x2')],-0x1),_0x50390d[_0x1b05('0x2')])&&_0x396e60(_0x45b2b5[_0x1b05('0x8')],_0x50390d[_0x1b05('0x8')]));}['_compressSingleOperation'](_0x4c68ef){const _0x47f64c={'types':[],'buffers':[],'baseVersion':0x0};return this['_context'][_0x1b05('0x5')](_0x1b05('0x4'))['compress'](_0x47f64c,[_0x4c68ef]),_0x47f64c[_0x1b05('0x6')][0x0];}['_decompressSingleOperation'](_0x67473d){const _0x14ccba=[];return this['_context'][_0x1b05('0x5')](_0x1b05('0x4'))[_0x1b05('0xa')](_0x14ccba,_0x67473d),_0x14ccba[0x0];}}function S(_0x142f06){return _0x1b05('0x4')==_0x142f06[_0x1b05('0x7')]&&'$graveyard'==_0x142f06[_0x1b05('0x8')]['root']&&0x1==_0x142f06['howMany']&&!_0x142f06[_0x1b05('0x9')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ae9=['buffers','targetPosition','compress','_decompressSingleOperation','_splitCurrent','_compareOperations','sourcePosition','wasUndone','_getCompressorByName','_compressSingleOperation','_context','decompress','root','MoveOperation','howMany'];(function(_0x55cdd0,_0x3ae982){const _0x8cf927=function(_0x112554){while(--_0x112554){_0x55cdd0['push'](_0x55cdd0['shift']());}};_0x8cf927(++_0x3ae982);}(_0x3ae9,0x1cc));const _0x8cf9=function(_0x55cdd0,_0x3ae982){_0x55cdd0=_0x55cdd0-0x0;let _0x8cf927=_0x3ae9[_0x55cdd0];return _0x8cf927;};import _0x3e24d4 from'./actioncompressor';import{arePositionsEqual as _0x38122f}from'../utils';import{cloneDeep as _0x160d11}from'lodash-es';export default class l extends _0x3e24d4{['_combineNext'](_0x1406a9,_0x4b6f4f){return _0x4b6f4f[_0x8cf9('0x4')]++,_0x4b6f4f;}[_0x8cf9('0x9')](_0x197c52){const _0x21c635=_0x160d11(_0x197c52);return _0x21c635[_0x8cf9('0x4')]=0x1,_0x197c52[_0x8cf9('0x4')]--,_0x21c635;}[_0x8cf9('0xa')](_0x49abee,_0x264a45){return!(!S(_0x49abee)||!S(_0x264a45))&&(_0x38122f(_0x49abee[_0x8cf9('0xb')],_0x264a45[_0x8cf9('0xb')])&&_0x38122f(_0x49abee[_0x8cf9('0x6')],_0x264a45[_0x8cf9('0x6')]));}[_0x8cf9('0xe')](_0x149bec){const _0x45614d={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x8cf9('0x0')][_0x8cf9('0xd')](_0x8cf9('0x3'))[_0x8cf9('0x7')](_0x45614d,[_0x149bec]),_0x45614d[_0x8cf9('0x5')][0x0];}[_0x8cf9('0x8')](_0x37835d){const _0x4189eb=[];return this['_context'][_0x8cf9('0xd')](_0x8cf9('0x3'))[_0x8cf9('0x1')](_0x4189eb,_0x37835d),_0x4189eb[0x0];}}function S(_0x46d159){return'MoveOperation'==_0x46d159['__className']&&'$graveyard'==_0x46d159['targetPosition'][_0x8cf9('0x2')]&&0x1==_0x46d159[_0x8cf9('0x4')]&&!_0x46d159[_0x8cf9('0xc')];}
23
+ const _0x1cdd=['howMany','_decompressSingleOperation','_combineNext','targetPosition','root','buffers','_compareOperations','__className','_splitCurrent','decompress','_context','compress','_getCompressorByName','sourcePosition','MoveOperation'];(function(_0x47c115,_0x1cdd18){const _0x23e030=function(_0x15f87b){while(--_0x15f87b){_0x47c115['push'](_0x47c115['shift']());}};_0x23e030(++_0x1cdd18);}(_0x1cdd,0x191));const _0x23e0=function(_0x47c115,_0x1cdd18){_0x47c115=_0x47c115-0x0;let _0x23e030=_0x1cdd[_0x47c115];return _0x23e030;};import _0x39c049 from'./actioncompressor';import{arePositionsEqual as _0x34128e}from'../utils';import{cloneDeep as _0x161989}from'lodash-es';export default class l extends _0x39c049{[_0x23e0('0x6')](_0xa3e7aa,_0xc48393){return _0xc48393[_0x23e0('0x4')]++,_0xc48393;}[_0x23e0('0xc')](_0x3c0324){const _0x1b8ef2=_0x161989(_0x3c0324);return _0x1b8ef2[_0x23e0('0x4')]=0x1,_0x3c0324[_0x23e0('0x4')]--,_0x1b8ef2;}[_0x23e0('0xa')](_0x11a2d7,_0x10e6a1){return!(!S(_0x11a2d7)||!S(_0x10e6a1))&&(_0x34128e(_0x11a2d7[_0x23e0('0x2')],_0x10e6a1[_0x23e0('0x2')])&&_0x34128e(_0x11a2d7[_0x23e0('0x7')],_0x10e6a1['targetPosition']));}['_compressSingleOperation'](_0x53ab14){const _0x486893={'types':[],'buffers':[],'baseVersion':0x0};return this['_context'][_0x23e0('0x1')](_0x23e0('0x3'))[_0x23e0('0x0')](_0x486893,[_0x53ab14]),_0x486893[_0x23e0('0x9')][0x0];}[_0x23e0('0x5')](_0x70b9f7){const _0x49dd57=[];return this[_0x23e0('0xe')]['_getCompressorByName']('MoveOperation')[_0x23e0('0xd')](_0x49dd57,_0x70b9f7),_0x49dd57[0x0];}}function S(_0x584044){return'MoveOperation'==_0x584044[_0x23e0('0xb')]&&'$graveyard'==_0x584044['targetPosition'][_0x23e0('0x8')]&&0x1==_0x584044[_0x23e0('0x4')]&&!_0x584044['wasUndone'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd73b=['__className','_splitCurrent','_compareOperations','data','position','keys','InsertOperation','nodes','from','_context','every','decompress','length','wasUndone','_decompressSingleOperation','substr','attributes','_getCompressorByName','_compressSingleOperation','_combineNext'];(function(_0x496f12,_0xd73b56){const _0xf32008=function(_0x25a0b8){while(--_0x25a0b8){_0x496f12['push'](_0x496f12['shift']());}};_0xf32008(++_0xd73b56);}(_0xd73b,0x198));const _0xf320=function(_0x496f12,_0xd73b56){_0x496f12=_0x496f12-0x0;let _0xf32008=_0xd73b[_0x496f12];return _0xf32008;};import _0x536b77 from'./actioncompressor';import{arePositionsEqual as _0x1d1c50,getPositionShiftedBy as _0x5690b2}from'../utils';import{cloneDeep as _0x387c17}from'lodash-es';export default class g extends _0x536b77{[_0xf320('0xb')](_0x5f4528,_0x3f24ed){return _0x3f24ed['nodes'][0x0]['data']+=_0x5f4528[_0xf320('0x13')][0x0][_0xf320('0xf')],_0x3f24ed;}[_0xf320('0xd')](_0xaaec23){const _0x2ee8e1=_0x387c17(_0xaaec23),_0x59b0be=_0x2ee8e1['nodes'][0x0],_0x1965d1=_0xaaec23['nodes'][0x0],_0x588d68=Array[_0xf320('0x0')](_0x1965d1[_0xf320('0xf')])[0x0],_0x4b66b3=_0x588d68[_0xf320('0x4')];return _0x59b0be[_0xf320('0xf')]=_0x588d68,_0x1965d1[_0xf320('0xf')]=_0x1965d1[_0xf320('0xf')][_0xf320('0x7')](_0x4b66b3),_0xaaec23[_0xf320('0x10')]=_0x5690b2(_0xaaec23[_0xf320('0x10')],_0x4b66b3),_0x2ee8e1;}[_0xf320('0xe')](_0x18a191,_0x4afcbe){if(S(_0x18a191)&&S(_0x4afcbe)){const _0x2d0648=_0x18a191[_0xf320('0x13')][0x0]['data'][_0xf320('0x4')],_0xdfffc0=_0x1d1c50(_0x5690b2(_0x18a191[_0xf320('0x10')],_0x2d0648),_0x4afcbe['position']),_0x2493dd=_0x18a191[_0xf320('0x13')][0x0],_0x23f69c=_0x4afcbe[_0xf320('0x13')][0x0];return _0xdfffc0&&function(_0x210196,_0x449cf3){const _0x1396fc=Object['keys'](_0x210196[_0xf320('0x8')]||{}),_0x24be5a=Object[_0xf320('0x11')](_0x449cf3[_0xf320('0x8')]||{});if(_0x1396fc[_0xf320('0x4')]!==_0x24be5a['length'])return!0x1;return _0x1396fc[_0xf320('0x2')](_0x540632=>_0x449cf3['attributes'][_0x540632]&&_0x449cf3[_0xf320('0x8')][_0x540632]===_0x210196[_0xf320('0x8')][_0x540632]);}(_0x2493dd,_0x23f69c);}return!0x1;}[_0xf320('0xa')](_0x47c910){const _0x4fd7f1={'types':[],'buffers':[],'baseVersion':0x0};return this[_0xf320('0x1')][_0xf320('0x9')](_0xf320('0x12'))['compress'](_0x4fd7f1,[_0x47c910]),_0x4fd7f1['buffers'][0x0];}[_0xf320('0x6')](_0x46118b){const _0x3ce4bf=[];return this[_0xf320('0x1')][_0xf320('0x9')](_0xf320('0x12'))[_0xf320('0x3')](_0x3ce4bf,_0x46118b),_0x3ce4bf[0x0];}}function S(_0x55ce22){return _0xf320('0x12')==_0x55ce22[_0xf320('0xc')]&&0x1==_0x55ce22[_0xf320('0x13')][_0xf320('0x4')]&&_0x55ce22[_0xf320('0x13')][0x0]['data']&&!_0x55ce22[_0xf320('0x5')]&&0x1==Array[_0xf320('0x0')](_0x55ce22[_0xf320('0x13')][0x0][_0xf320('0xf')])[_0xf320('0x4')];}
23
+ const _0xc619=['keys','attributes','next','compress','_context','data','nodes','_getCompressorByName','wasUndone','length','__className','decompress','_combineNext','_compressSingleOperation','InsertOperation','position','buffers','substr','_compareOperations'];(function(_0x519ea0,_0xc619d3){const _0x56f5f9=function(_0x43896f){while(--_0x43896f){_0x519ea0['push'](_0x519ea0['shift']());}};_0x56f5f9(++_0xc619d3);}(_0xc619,0x1bb));const _0x56f5=function(_0x519ea0,_0xc619d3){_0x519ea0=_0x519ea0-0x0;let _0x56f5f9=_0xc619[_0x519ea0];return _0x56f5f9;};import _0x3cdf5e from'./actioncompressor';import{arePositionsEqual as _0x382d83,getPositionShiftedBy as _0x53f870}from'../utils';import{cloneDeep as _0xcdfcde}from'lodash-es';export default class g extends _0x3cdf5e{[_0x56f5('0x6')](_0x4eb4ac,_0x4b4993){return _0x4b4993['nodes'][0x0][_0x56f5('0x12')]+=_0x4eb4ac['nodes'][0x0]['data'],_0x4b4993;}['_splitCurrent'](_0x501ee3){const _0x5ddf5f=_0xcdfcde(_0x501ee3),_0x7c3a26=_0x5ddf5f['nodes'][0x0],_0x36e2fe=_0x501ee3[_0x56f5('0x0')][0x0],_0x318245=_0x36e2fe['data'][Symbol['iterator']]()[_0x56f5('0xf')]()['value'],_0x3d53c6=_0x318245[_0x56f5('0x3')];return _0x7c3a26[_0x56f5('0x12')]=_0x318245,_0x36e2fe[_0x56f5('0x12')]=_0x36e2fe[_0x56f5('0x12')][_0x56f5('0xb')](_0x3d53c6),_0x501ee3[_0x56f5('0x9')]=_0x53f870(_0x501ee3['position'],_0x3d53c6),_0x5ddf5f;}[_0x56f5('0xc')](_0x45ba8d,_0x2eb3c8){if(S(_0x45ba8d)&&S(_0x2eb3c8)){const _0x2304c2=_0x45ba8d[_0x56f5('0x0')][0x0]['data'][_0x56f5('0x3')],_0xc9ca9b=_0x382d83(_0x53f870(_0x45ba8d[_0x56f5('0x9')],_0x2304c2),_0x2eb3c8[_0x56f5('0x9')]),_0x267578=_0x45ba8d[_0x56f5('0x0')][0x0],_0x5a167f=_0x2eb3c8['nodes'][0x0];return _0xc9ca9b&&function(_0x5dfa91,_0x50f234){const _0x54ee07=Object[_0x56f5('0xd')](_0x5dfa91[_0x56f5('0xe')]||{}),_0x54b915=Object['keys'](_0x50f234[_0x56f5('0xe')]||{});if(_0x54ee07[_0x56f5('0x3')]!==_0x54b915[_0x56f5('0x3')])return!0x1;return _0x54ee07['every'](_0x10110f=>_0x50f234['attributes'][_0x10110f]&&_0x50f234[_0x56f5('0xe')][_0x10110f]===_0x5dfa91[_0x56f5('0xe')][_0x10110f]);}(_0x267578,_0x5a167f);}return!0x1;}[_0x56f5('0x7')](_0x21e7f2){const _0x551ebd={'types':[],'buffers':[],'baseVersion':0x0};return this['_context'][_0x56f5('0x1')](_0x56f5('0x8'))[_0x56f5('0x10')](_0x551ebd,[_0x21e7f2]),_0x551ebd[_0x56f5('0xa')][0x0];}['_decompressSingleOperation'](_0x5c5e48){const _0x981246=[];return this[_0x56f5('0x11')]['_getCompressorByName'](_0x56f5('0x8'))[_0x56f5('0x5')](_0x981246,_0x5c5e48),_0x981246[0x0];}}function S(_0x30ae14){return'InsertOperation'==_0x30ae14[_0x56f5('0x4')]&&0x1==_0x30ae14[_0x56f5('0x0')]['length']&&_0x30ae14['nodes'][0x0]['data']&&!_0x30ae14[_0x56f5('0x2')]&&0x1==Array['from'](_0x30ae14[_0x56f5('0x0')][0x0][_0x56f5('0x12')])[_0x56f5('0x3')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d45=['MarkerOperation','__className','compress','oldRange','user:position:','startsWith','_getCompressorByName','split','types','end','decompress','buffers','toNone','stickiness','shift','push','_compressSingleOperation','name','user:','start','newRange'];(function(_0x5b9d7e,_0x5d4546){const _0x156284=function(_0x17bc19){while(--_0x17bc19){_0x5b9d7e['push'](_0x5b9d7e['shift']());}};_0x156284(++_0x5d4546);}(_0x5d45,0x7c));const _0x1562=function(_0x5b9d7e,_0x5d4546){_0x5b9d7e=_0x5b9d7e-0x0;let _0x156284=_0x5d45[_0x5b9d7e];return _0x156284;};import _0x50d7cf from'./actioncompressor';import{arePositionsEqual as _0x361471}from'../utils';import{cloneDeep as _0x235266}from'lodash-es';export default class M extends _0x50d7cf{['compress'](_0x32fec8,_0x5921b6){if(!function(_0x2782ce,_0x2ed174){if(!_0x2782ce||!_0x2ed174)return!0x1;if(_0x1562('0x2')!=_0x2782ce[_0x1562('0x3')]||_0x1562('0x2')!=_0x2ed174[_0x1562('0x3')])return!0x1;if(_0x2782ce[_0x1562('0x13')][_0x1562('0x7')](_0x1562('0x14'))&&_0x2ed174[_0x1562('0x13')][_0x1562('0x7')](_0x1562('0x14'))&&_0x2782ce['name']!=_0x2ed174[_0x1562('0x13')])return!0x0;return!0x1;}(_0x5921b6[0x0],_0x5921b6[0x1]))return!0x1;const _0x1c8ac3=_0x5921b6[_0x1562('0x10')]();return _0x1c8ac3[_0x1562('0x5')]=null,_0x1c8ac3[_0x1562('0x1')]&&_0x361471(_0x1c8ac3['newRange'][_0x1562('0x0')],_0x1c8ac3[_0x1562('0x1')]['end'])&&(_0x1c8ac3[_0x1562('0x1')]['end']=null),_0x5921b6['shift'](),_0x32fec8[_0x1562('0xa')][_0x1562('0x11')](this['id']),_0x32fec8[_0x1562('0xa')]['push'](0x0),_0x32fec8[_0x1562('0xd')]['push'](this[_0x1562('0x12')](_0x1c8ac3)),!0x0;}[_0x1562('0xc')](_0x1a4995,_0x220506){const _0xc8456c=this['_decompressSingleOperation'](_0x220506);_0xc8456c['newRange']&&!_0xc8456c[_0x1562('0x1')]['end']&&(_0xc8456c[_0x1562('0x1')][_0x1562('0xb')]=_0x235266(_0xc8456c['newRange'][_0x1562('0x0')]));const _0x4a5661=_0x235266(_0xc8456c);_0x4a5661['newRange']&&(_0x4a5661[_0x1562('0x1')][_0x1562('0x0')][_0x1562('0xf')]=_0x1562('0xe'),_0x4a5661[_0x1562('0x1')][_0x1562('0xb')]=_0x235266(_0x4a5661[_0x1562('0x1')]['start'])),_0x4a5661[_0x1562('0x13')]=_0x1562('0x6')+_0x4a5661['name'][_0x1562('0x9')](':')[0x2],_0x220506[_0x1562('0xa')][_0x1562('0x10')](),_0x1a4995[_0x1562('0x11')](_0xc8456c),_0x1a4995[_0x1562('0x11')](_0x4a5661);}['_compressSingleOperation'](_0x384287){const _0x1ed3ec={'types':[],'buffers':[],'baseVersion':0x0};return this['_context'][_0x1562('0x8')](_0x1562('0x2'))[_0x1562('0x4')](_0x1ed3ec,[_0x384287]),_0x1ed3ec[_0x1562('0xd')][0x0];}['_decompressSingleOperation'](_0x3ffde0){const _0x5a8478=[];return this['_context'][_0x1562('0x8')](_0x1562('0x2'))[_0x1562('0xc')](_0x5a8478,_0x3ffde0),_0x5a8478[0x0];}}
23
+ const _0x4a40=['name','toNone','start','buffers','startsWith','decompress','push','_decompressSingleOperation','_getCompressorByName','MarkerOperation','user:position:','shift','_compressSingleOperation','__className','user:','newRange','compress','_context','end','types'];(function(_0x1cf7cd,_0x4a402d){const _0x445116=function(_0x419734){while(--_0x419734){_0x1cf7cd['push'](_0x1cf7cd['shift']());}};_0x445116(++_0x4a402d);}(_0x4a40,0xdd));const _0x4451=function(_0x1cf7cd,_0x4a402d){_0x1cf7cd=_0x1cf7cd-0x0;let _0x445116=_0x4a40[_0x1cf7cd];return _0x445116;};import _0x13c98e from'./actioncompressor';import{arePositionsEqual as _0x443e87}from'../utils';import{cloneDeep as _0x2f2f83}from'lodash-es';export default class M extends _0x13c98e{[_0x4451('0xf')](_0x188c50,_0x18293f){if(!function(_0x36735c,_0x4b1874){if(!_0x36735c||!_0x4b1874)return!0x1;if(_0x4451('0x8')!=_0x36735c[_0x4451('0xc')]||'MarkerOperation'!=_0x4b1874[_0x4451('0xc')])return!0x1;if(_0x36735c[_0x4451('0x13')][_0x4451('0x3')](_0x4451('0xd'))&&_0x4b1874['name'][_0x4451('0x3')](_0x4451('0xd'))&&_0x36735c[_0x4451('0x13')]!=_0x4b1874['name'])return!0x0;return!0x1;}(_0x18293f[0x0],_0x18293f[0x1]))return!0x1;const _0xf17eac=_0x18293f['shift']();return _0xf17eac['oldRange']=null,_0xf17eac[_0x4451('0xe')]&&_0x443e87(_0xf17eac[_0x4451('0xe')]['start'],_0xf17eac[_0x4451('0xe')][_0x4451('0x11')])&&(_0xf17eac[_0x4451('0xe')][_0x4451('0x11')]=null),_0x18293f['shift'](),_0x188c50[_0x4451('0x12')]['push'](this['id']),_0x188c50['types']['push'](0x0),_0x188c50[_0x4451('0x2')][_0x4451('0x5')](this[_0x4451('0xb')](_0xf17eac)),!0x0;}[_0x4451('0x4')](_0x3b3f4b,_0x44cf2c){const _0x328383=this[_0x4451('0x6')](_0x44cf2c);_0x328383[_0x4451('0xe')]&&!_0x328383['newRange'][_0x4451('0x11')]&&(_0x328383[_0x4451('0xe')][_0x4451('0x11')]=_0x2f2f83(_0x328383[_0x4451('0xe')][_0x4451('0x1')]));const _0x1cd16d=_0x2f2f83(_0x328383);_0x1cd16d['newRange']&&(_0x1cd16d[_0x4451('0xe')][_0x4451('0x1')]['stickiness']=_0x4451('0x0'),_0x1cd16d['newRange']['end']=_0x2f2f83(_0x1cd16d[_0x4451('0xe')][_0x4451('0x1')])),_0x1cd16d[_0x4451('0x13')]=_0x4451('0x9')+_0x1cd16d[_0x4451('0x13')]['split'](':')[0x2],_0x44cf2c['types'][_0x4451('0xa')](),_0x3b3f4b['push'](_0x328383),_0x3b3f4b['push'](_0x1cd16d);}[_0x4451('0xb')](_0x520f0b){const _0xbb95e0={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x4451('0x10')][_0x4451('0x7')](_0x4451('0x8'))[_0x4451('0xf')](_0xbb95e0,[_0x520f0b]),_0xbb95e0[_0x4451('0x2')][0x0];}[_0x4451('0x6')](_0x5519f6){const _0x4921dd=[];return this[_0x4451('0x10')]['_getCompressorByName'](_0x4451('0x8'))[_0x4451('0x4')](_0x4921dd,_0x5519f6),_0x4921dd[0x0];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4cb4=['Element','bool','uint32','Position','string','repeated'];(function(_0xdfe555,_0x4cb4af){var _0x21df1a=function(_0xd805bb){while(--_0xd805bb){_0xdfe555['push'](_0xdfe555['shift']());}};_0x21df1a(++_0x4cb4af);}(_0x4cb4,0x9e));var _0x21df=function(_0xdfe555,_0x4cb4af){_0xdfe555=_0xdfe555-0x0;var _0x21df1a=_0x4cb4[_0xdfe555];return _0x21df1a;};export default{'Position':{'fields':{'root':{'type':_0x21df('0x2'),'id':0x1},'rootMain':{'type':_0x21df('0x5'),'id':0x2},'rootGraveyard':{'type':_0x21df('0x5'),'id':0x3},'path':{'rule':'repeated','type':_0x21df('0x0'),'id':0x4},'stickiness':{'type':_0x21df('0x2'),'id':0x5}}},'Range':{'fields':{'start':{'type':'Position','id':0x1},'end':{'type':_0x21df('0x1'),'id':0x2}}},'Element':{'fields':{'name':{'type':'string','id':0x1},'children':{'rule':_0x21df('0x3'),'type':_0x21df('0x4'),'id':0x2},'data':{'type':_0x21df('0x2'),'id':0x3},'attributesBoolean':{'keyType':_0x21df('0x2'),'type':_0x21df('0x5'),'id':0x4},'attributesJson':{'type':_0x21df('0x2'),'id':0x5}}}};
23
+ var _0x5f47=['uint32','Element','Position','bool','repeated','string'];(function(_0x57c764,_0x5f478c){var _0x3ab1f4=function(_0x1ca0ab){while(--_0x1ca0ab){_0x57c764['push'](_0x57c764['shift']());}};_0x3ab1f4(++_0x5f478c);}(_0x5f47,0x1d5));var _0x3ab1=function(_0x57c764,_0x5f478c){_0x57c764=_0x57c764-0x0;var _0x3ab1f4=_0x5f47[_0x57c764];return _0x3ab1f4;};export default{'Position':{'fields':{'root':{'type':_0x3ab1('0x4'),'id':0x1},'rootMain':{'type':'bool','id':0x2},'rootGraveyard':{'type':_0x3ab1('0x2'),'id':0x3},'path':{'rule':_0x3ab1('0x3'),'type':_0x3ab1('0x5'),'id':0x4},'stickiness':{'type':_0x3ab1('0x4'),'id':0x5}}},'Range':{'fields':{'start':{'type':_0x3ab1('0x1'),'id':0x1},'end':{'type':_0x3ab1('0x1'),'id':0x2}}},'Element':{'fields':{'name':{'type':_0x3ab1('0x4'),'id':0x1},'children':{'rule':_0x3ab1('0x3'),'type':_0x3ab1('0x0'),'id':0x2},'data':{'type':_0x3ab1('0x4'),'id':0x3},'attributesBoolean':{'keyType':_0x3ab1('0x4'),'type':'bool','id':0x4},'attributesJson':{'type':_0x3ab1('0x4'),'id':0x5}}}};
package/src/compressor.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c0f=['ForwardDeletingAction','AttributeOperation','__className','types','DeletingAction','compress','forEach','_registerOperationCompressor','registerDescriptor','RenameOperation','_registerCompressor','RootAttributeOperation','TypingAction','_compressorById','length','_compressorByName','CommentMarkerOperation','MoveOperation','_protobufFactory','description','MergeOperation','Position','_registerActionCompressor','SplitOperation','InsertOperation','_getCompressorByName','MarkerOperation','get','no-operations-provided','NoOperation','set','UserSelectionAction','baseVersion','Range','decompress','Element','SuggestionMarkerOperation','getDescriptor','suggestion'];(function(_0x319bae,_0x4c0f1a){const _0x479184=function(_0xf02453){while(--_0xf02453){_0x319bae['push'](_0x319bae['shift']());}};_0x479184(++_0x4c0f1a);}(_0x4c0f,0x134));const _0x4791=function(_0x319bae,_0x4c0f1a){_0x319bae=_0x319bae-0x0;let _0x479184=_0x4c0f[_0x319bae];return _0x479184;};import{CKEditorError as _0x38c48b}from'ckeditor5/src/utils';import _0x4540e7 from'./protobuffactory';import _0x37c1c4 from'./commondescriptions';import _0x49b2b5 from'./operationcompressor/attributeoperationcompressor';import _0x421334 from'./operationcompressor/insertoperationcompressor';import _0x1aac2a from'./operationcompressor/markeroperationcompressor';import _0x3d6d72 from'./operationcompressor/mergeoperationcompressor';import _0x555439 from'./operationcompressor/moveoperationcompressor';import _0x2dd8bb from'./operationcompressor/renameoperationcompressor';import _0x3ff017 from'./operationcompressor/rootattributeoperationcompressor';import _0x2bc552 from'./operationcompressor/splitoperationcompressor';import _0x16c5e3 from'./operationcompressor/nooperationcompressor';import _0x19b2ad from'./operationcompressor/annotationmarkeroperationcompressor';import _0x500a19 from'./actioncompressor/typingactioncompressor';import _0x184133 from'./actioncompressor/deletingactioncompressor';import _0x1e0f27 from'./actioncompressor/forwarddeletingactioncompressor';import _0x4cc507 from'./actioncompressor/userselectionactioncompressor';export default class w{constructor(){this[_0x4791('0x11')]=new Map(),this['_compressorByName']=new Map(),this['_protobufFactory']=new _0x4540e7(),this['_protobufFactory'][_0x4791('0xc')]('Position',_0x37c1c4[_0x4791('0x19')]),this['_protobufFactory'][_0x4791('0xc')](_0x4791('0x25'),_0x37c1c4[_0x4791('0x25')]),this[_0x4791('0x16')]['registerDescriptor'](_0x4791('0x0'),_0x37c1c4[_0x4791('0x0')]),this[_0x4791('0x16')][_0x4791('0xc')](_0x4791('0x5'),_0x49b2b5[_0x4791('0x17')]),this[_0x4791('0x16')][_0x4791('0xc')](_0x4791('0x1c'),_0x421334[_0x4791('0x17')]),this['_protobufFactory'][_0x4791('0xc')]('MarkerOperation',_0x1aac2a[_0x4791('0x17')]),this[_0x4791('0x16')][_0x4791('0xc')](_0x4791('0x18'),_0x3d6d72['description']),this[_0x4791('0x16')][_0x4791('0xc')](_0x4791('0x15'),_0x555439[_0x4791('0x17')]),this['_protobufFactory'][_0x4791('0xc')](_0x4791('0xd'),_0x2dd8bb[_0x4791('0x17')]),this[_0x4791('0x16')][_0x4791('0xc')](_0x4791('0xf'),_0x3ff017[_0x4791('0x17')]),this[_0x4791('0x16')][_0x4791('0xc')](_0x4791('0x1b'),_0x2bc552[_0x4791('0x17')]),this['_protobufFactory']['build'](),this[_0x4791('0xe')](0x1,_0x4791('0x21'),new _0x16c5e3(0x1,_0x4791('0x21'))),this[_0x4791('0xb')](0xa,'AttributeOperation',_0x49b2b5),this['_registerOperationCompressor'](0xb,_0x4791('0x1c'),_0x421334),this[_0x4791('0xb')](0xc,_0x4791('0x1e'),_0x1aac2a),this[_0x4791('0xb')](0xd,'MergeOperation',_0x3d6d72),this[_0x4791('0xb')](0xe,'MoveOperation',_0x555439),this[_0x4791('0xb')](0xf,_0x4791('0xd'),_0x2dd8bb),this[_0x4791('0xb')](0x10,_0x4791('0xf'),_0x3ff017),this['_registerOperationCompressor'](0x11,_0x4791('0x1b'),_0x2bc552);const _0x39352a=this[_0x4791('0x16')][_0x4791('0x2')](_0x4791('0x1e'));this[_0x4791('0xe')](0x12,_0x4791('0x14'),new _0x19b2ad(0x12,_0x4791('0x1e'),_0x39352a,'comment')),this[_0x4791('0xe')](0x13,_0x4791('0x1'),new _0x19b2ad(0x13,_0x4791('0x1e'),_0x39352a,_0x4791('0x3'))),this[_0x4791('0x1a')](0x64,_0x4791('0x10'),_0x500a19),this[_0x4791('0x1a')](0x65,_0x4791('0x8'),_0x184133),this['_registerActionCompressor'](0x66,_0x4791('0x4'),_0x1e0f27),this[_0x4791('0x1a')](0x67,'UserSelectionAction',_0x4cc507);}[_0x4791('0xb')](_0x28cceb,_0x4c77ac,_0x225ca5){const _0x58df75=new _0x225ca5(_0x28cceb,_0x4c77ac,this['_protobufFactory'][_0x4791('0x2')](_0x4c77ac));this[_0x4791('0xe')](_0x28cceb,_0x4c77ac,_0x58df75);}[_0x4791('0x1a')](_0x265aca,_0x3bca3e,_0x43926a){const _0xb817e6=new _0x43926a(_0x265aca,this);this[_0x4791('0xe')](_0x265aca,_0x3bca3e,_0xb817e6);}[_0x4791('0xe')](_0x5b0f3c,_0x225da0,_0x1e6c64){this[_0x4791('0x11')][_0x4791('0x22')](_0x5b0f3c,_0x1e6c64),this[_0x4791('0x13')][_0x4791('0x22')](_0x225da0,_0x1e6c64);}['_getCompressorByName'](_0x293e68){return this[_0x4791('0x13')][_0x4791('0x1f')](_0x293e68);}[_0x4791('0x9')](_0x57430c){if(!_0x57430c||!_0x57430c[0x0])throw new _0x38c48b(_0x4791('0x20'),this);const _0x59b2f0={'types':[],'buffers':[],'baseVersion':_0x57430c[0x0][_0x4791('0x24')]};for(;_0x57430c[_0x4791('0x12')];)this['_getCompressorByName'](_0x4791('0x23'))['compress'](_0x59b2f0,_0x57430c)||this[_0x4791('0x1d')](_0x4791('0x10'))[_0x4791('0x9')](_0x59b2f0,_0x57430c)||this[_0x4791('0x1d')]('DeletingAction')[_0x4791('0x9')](_0x59b2f0,_0x57430c)||this['_getCompressorByName']('ForwardDeletingAction')[_0x4791('0x9')](_0x59b2f0,_0x57430c)||this[_0x4791('0x1d')](_0x4791('0x14'))[_0x4791('0x9')](_0x59b2f0,_0x57430c)||this[_0x4791('0x1d')](_0x4791('0x1'))[_0x4791('0x9')](_0x59b2f0,_0x57430c)||this[_0x4791('0x1d')](_0x57430c[0x0][_0x4791('0x6')])[_0x4791('0x9')](_0x59b2f0,_0x57430c);return _0x59b2f0;}[_0x4791('0x26')](_0x2a09a){const _0x598068=[];for(;_0x2a09a[_0x4791('0x7')][_0x4791('0x12')];){this[_0x4791('0x11')][_0x4791('0x1f')](_0x2a09a[_0x4791('0x7')][0x0])['decompress'](_0x598068,_0x2a09a);}return _0x598068[_0x4791('0xa')]((_0x847e14,_0x55576b)=>_0x847e14[_0x4791('0x24')]=_0x2a09a[_0x4791('0x24')]+_0x55576b),_0x598068;}}
23
+ const _0x46cc=['MergeOperation','getDescriptor','description','RootAttributeOperation','CommentMarkerOperation','_compressorById','TypingAction','set','_registerCompressor','compress','MoveOperation','comment','registerDescriptor','SuggestionMarkerOperation','MarkerOperation','DeletingAction','AttributeOperation','RenameOperation','types','Position','get','_compressorByName','InsertOperation','__className','_getCompressorByName','length','SplitOperation','baseVersion','NoOperation','ForwardDeletingAction','Element','UserSelectionAction','forEach','_protobufFactory','_registerOperationCompressor','_registerActionCompressor'];(function(_0x263f6c,_0x46cc97){const _0x71cc23=function(_0x485623){while(--_0x485623){_0x263f6c['push'](_0x263f6c['shift']());}};_0x71cc23(++_0x46cc97);}(_0x46cc,0x104));const _0x71cc=function(_0x263f6c,_0x46cc97){_0x263f6c=_0x263f6c-0x0;let _0x71cc23=_0x46cc[_0x263f6c];return _0x71cc23;};import{CKEditorError as _0xbecf83}from'ckeditor5/src/utils';import _0x5e4a04 from'./protobuffactory';import _0xe0c4b1 from'./commondescriptions';import _0x5f13ed from'./operationcompressor/attributeoperationcompressor';import _0x3bdc48 from'./operationcompressor/insertoperationcompressor';import _0x40ac79 from'./operationcompressor/markeroperationcompressor';import _0x2976b4 from'./operationcompressor/mergeoperationcompressor';import _0x294525 from'./operationcompressor/moveoperationcompressor';import _0x4a7896 from'./operationcompressor/renameoperationcompressor';import _0x3fd352 from'./operationcompressor/rootattributeoperationcompressor';import _0x56a5eb from'./operationcompressor/splitoperationcompressor';import _0xe6ab58 from'./operationcompressor/nooperationcompressor';import _0x4836ae from'./operationcompressor/annotationmarkeroperationcompressor';import _0x318efa from'./actioncompressor/typingactioncompressor';import _0x51e1e3 from'./actioncompressor/deletingactioncompressor';import _0x5860a8 from'./actioncompressor/forwarddeletingactioncompressor';import _0x5ceb6a from'./actioncompressor/userselectionactioncompressor';export default class w{constructor(){this[_0x71cc('0x21')]=new Map(),this[_0x71cc('0xd')]=new Map(),this[_0x71cc('0x19')]=new _0x5e4a04(),this[_0x71cc('0x19')]['registerDescriptor'](_0x71cc('0xb'),_0xe0c4b1[_0x71cc('0xb')]),this[_0x71cc('0x19')][_0x71cc('0x4')]('Range',_0xe0c4b1['Range']),this[_0x71cc('0x19')]['registerDescriptor'](_0x71cc('0x16'),_0xe0c4b1[_0x71cc('0x16')]),this['_protobufFactory']['registerDescriptor'](_0x71cc('0x8'),_0x5f13ed['description']),this[_0x71cc('0x19')][_0x71cc('0x4')](_0x71cc('0xe'),_0x3bdc48[_0x71cc('0x1e')]),this[_0x71cc('0x19')][_0x71cc('0x4')](_0x71cc('0x6'),_0x40ac79[_0x71cc('0x1e')]),this[_0x71cc('0x19')]['registerDescriptor']('MergeOperation',_0x2976b4[_0x71cc('0x1e')]),this['_protobufFactory'][_0x71cc('0x4')](_0x71cc('0x2'),_0x294525[_0x71cc('0x1e')]),this[_0x71cc('0x19')][_0x71cc('0x4')](_0x71cc('0x9'),_0x4a7896[_0x71cc('0x1e')]),this[_0x71cc('0x19')][_0x71cc('0x4')]('RootAttributeOperation',_0x3fd352[_0x71cc('0x1e')]),this[_0x71cc('0x19')]['registerDescriptor'](_0x71cc('0x12'),_0x56a5eb[_0x71cc('0x1e')]),this[_0x71cc('0x19')]['build'](),this[_0x71cc('0x0')](0x1,_0x71cc('0x14'),new _0xe6ab58(0x1,_0x71cc('0x14'))),this[_0x71cc('0x1a')](0xa,'AttributeOperation',_0x5f13ed),this[_0x71cc('0x1a')](0xb,_0x71cc('0xe'),_0x3bdc48),this[_0x71cc('0x1a')](0xc,_0x71cc('0x6'),_0x40ac79),this[_0x71cc('0x1a')](0xd,_0x71cc('0x1c'),_0x2976b4),this[_0x71cc('0x1a')](0xe,_0x71cc('0x2'),_0x294525),this[_0x71cc('0x1a')](0xf,_0x71cc('0x9'),_0x4a7896),this[_0x71cc('0x1a')](0x10,_0x71cc('0x1f'),_0x3fd352),this['_registerOperationCompressor'](0x11,_0x71cc('0x12'),_0x56a5eb);const _0x1d6c41=this[_0x71cc('0x19')][_0x71cc('0x1d')](_0x71cc('0x6'));this[_0x71cc('0x0')](0x12,_0x71cc('0x20'),new _0x4836ae(0x12,_0x71cc('0x6'),_0x1d6c41,_0x71cc('0x3'))),this['_registerCompressor'](0x13,_0x71cc('0x5'),new _0x4836ae(0x13,_0x71cc('0x6'),_0x1d6c41,'suggestion')),this[_0x71cc('0x1b')](0x64,_0x71cc('0x22'),_0x318efa),this[_0x71cc('0x1b')](0x65,_0x71cc('0x7'),_0x51e1e3),this[_0x71cc('0x1b')](0x66,'ForwardDeletingAction',_0x5860a8),this[_0x71cc('0x1b')](0x67,_0x71cc('0x17'),_0x5ceb6a);}[_0x71cc('0x1a')](_0x1b8122,_0x42b739,_0x5cba6d){const _0x57fb65=new _0x5cba6d(_0x1b8122,_0x42b739,this['_protobufFactory'][_0x71cc('0x1d')](_0x42b739));this[_0x71cc('0x0')](_0x1b8122,_0x42b739,_0x57fb65);}[_0x71cc('0x1b')](_0x4f4b1b,_0x49a9ca,_0x428736){const _0x5cb7d7=new _0x428736(_0x4f4b1b,this);this['_registerCompressor'](_0x4f4b1b,_0x49a9ca,_0x5cb7d7);}[_0x71cc('0x0')](_0x3b24aa,_0x2e0683,_0x19faf2){this[_0x71cc('0x21')]['set'](_0x3b24aa,_0x19faf2),this[_0x71cc('0xd')][_0x71cc('0x23')](_0x2e0683,_0x19faf2);}['_getCompressorByName'](_0x3cc9ae){return this['_compressorByName'][_0x71cc('0xc')](_0x3cc9ae);}[_0x71cc('0x1')](_0x4b91ea){if(!_0x4b91ea||!_0x4b91ea[0x0])throw new _0xbecf83('no-operations-provided',this);const _0x2cf58d={'types':[],'buffers':[],'baseVersion':_0x4b91ea[0x0][_0x71cc('0x13')]};for(;_0x4b91ea[_0x71cc('0x11')];)this[_0x71cc('0x10')](_0x71cc('0x17'))[_0x71cc('0x1')](_0x2cf58d,_0x4b91ea)||this[_0x71cc('0x10')](_0x71cc('0x22'))[_0x71cc('0x1')](_0x2cf58d,_0x4b91ea)||this[_0x71cc('0x10')](_0x71cc('0x7'))[_0x71cc('0x1')](_0x2cf58d,_0x4b91ea)||this[_0x71cc('0x10')](_0x71cc('0x15'))[_0x71cc('0x1')](_0x2cf58d,_0x4b91ea)||this['_getCompressorByName'](_0x71cc('0x20'))[_0x71cc('0x1')](_0x2cf58d,_0x4b91ea)||this['_getCompressorByName'](_0x71cc('0x5'))[_0x71cc('0x1')](_0x2cf58d,_0x4b91ea)||this[_0x71cc('0x10')](_0x4b91ea[0x0][_0x71cc('0xf')])['compress'](_0x2cf58d,_0x4b91ea);return _0x2cf58d;}['decompress'](_0x31bab5){const _0x2e5ef7=[];for(;_0x31bab5[_0x71cc('0xa')][_0x71cc('0x11')];){this[_0x71cc('0x21')]['get'](_0x31bab5['types'][0x0])['decompress'](_0x2e5ef7,_0x31bab5);}return _0x2e5ef7[_0x71cc('0x18')]((_0x161d5a,_0x32955f)=>_0x161d5a['baseVersion']=_0x31bab5[_0x71cc('0x13')]+_0x32955f),_0x2e5ef7;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c83=['replace','__className','decompress','startsWith','compress','MarkerOperation','name','_omittedNamespace','length'];(function(_0x2bda52,_0x1c8349){const _0x5842dc=function(_0x2c67d7){while(--_0x2c67d7){_0x2bda52['push'](_0x2bda52['shift']());}};_0x5842dc(++_0x1c8349);}(_0x1c83,0x11c));const _0x5842=function(_0x2bda52,_0x1c8349){_0x2bda52=_0x2bda52-0x0;let _0x5842dc=_0x1c83[_0x2bda52];return _0x5842dc;};import _0x2419af from'./markeroperationcompressor';export default class O extends _0x2419af{constructor(_0x388e4f,_0x555ad4,_0x3f5305,_0x334f07){super(_0x388e4f,_0x555ad4,_0x3f5305),this[_0x5842('0x2')]=_0x334f07+':';}[_0x5842('0x8')](_0x1bfdd8,_0x445cb7){return!(_0x5842('0x0')!=_0x445cb7[0x0][_0x5842('0x5')]||!_0x445cb7[0x0]['name'][_0x5842('0x7')](this[_0x5842('0x2')]))&&(_0x445cb7[0x0]['name']=_0x445cb7[0x0][_0x5842('0x1')][_0x5842('0x4')](new RegExp('^'+this[_0x5842('0x2')]),''),super[_0x5842('0x8')](_0x1bfdd8,_0x445cb7),!0x0);}[_0x5842('0x6')](_0x423b90,_0x18c8d1){super[_0x5842('0x6')](_0x423b90,_0x18c8d1);const _0x3b4e1a=_0x423b90[_0x423b90[_0x5842('0x3')]-0x1];_0x3b4e1a[_0x5842('0x1')]=this['_omittedNamespace']+_0x3b4e1a['name'];}}
23
+ const _0x1559=['compress','_omittedNamespace','MarkerOperation','decompress','name','replace','__className'];(function(_0xa387a1,_0x155997){const _0x46023d=function(_0x39f342){while(--_0x39f342){_0xa387a1['push'](_0xa387a1['shift']());}};_0x46023d(++_0x155997);}(_0x1559,0x8e));const _0x4602=function(_0xa387a1,_0x155997){_0xa387a1=_0xa387a1-0x0;let _0x46023d=_0x1559[_0xa387a1];return _0x46023d;};import _0x300972 from'./markeroperationcompressor';export default class O extends _0x300972{constructor(_0x17a170,_0xd7aa0,_0x57c6b9,_0x1c9842){super(_0x17a170,_0xd7aa0,_0x57c6b9),this['_omittedNamespace']=_0x1c9842+':';}[_0x4602('0x5')](_0x86432a,_0x2fbfd0){return!(_0x4602('0x0')!=_0x2fbfd0[0x0][_0x4602('0x4')]||!_0x2fbfd0[0x0][_0x4602('0x2')]['startsWith'](this['_omittedNamespace']))&&(_0x2fbfd0[0x0][_0x4602('0x2')]=_0x2fbfd0[0x0][_0x4602('0x2')][_0x4602('0x3')](new RegExp('^'+this[_0x4602('0x6')]),''),super['compress'](_0x86432a,_0x2fbfd0),!0x0);}[_0x4602('0x1')](_0x16582e,_0x14ce47){super[_0x4602('0x1')](_0x16582e,_0x14ce47);const _0x3bd9a0=_0x16582e[_0x16582e['length']-0x1];_0x3bd9a0['name']=this[_0x4602('0x6')]+_0x3bd9a0['name'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b8f=['Boolean','shift','stringify','description','compress','types','Json','newValue','string','Range','boolean','push','bool','oldValue','operationName','decompress','__className','parse'];(function(_0x64cdb8,_0x2b8f99){const _0x262d1a=function(_0x306e93){while(--_0x306e93){_0x64cdb8['push'](_0x64cdb8['shift']());}};_0x262d1a(++_0x2b8f99);}(_0x2b8f,0x7e));const _0x262d=function(_0x64cdb8,_0x2b8f99){_0x64cdb8=_0x64cdb8-0x0;let _0x262d1a=_0x2b8f[_0x64cdb8];return _0x262d1a;};import _0x1f97cb from'./operationcompressor';import{parsePositionBeforeCompression as _0x34c20b,parsePositionAfterCompression as _0x26ef96}from'../utils';export default class i extends _0x1f97cb{static get[_0x262d('0x3')](){return{'fields':{'range':{'type':_0x262d('0x9'),'id':0x1},'key':{'type':'string','id':0x2},'oldValueBoolean':{'type':_0x262d('0xc'),'id':0x3},'oldValueJson':{'type':_0x262d('0x8'),'id':0x4},'newValueBoolean':{'type':_0x262d('0xc'),'id':0x5},'newValueJson':{'type':_0x262d('0x8'),'id':0x6},'wasUndone':{'type':'bool','id':0x7}}};}[_0x262d('0x4')](_0x3b61e3,_0x204664){const _0x342d66=_0x204664[_0x262d('0x1')]();$(_0x262d('0xd'),_0x342d66),$('newValue',_0x342d66),_0x34c20b(_0x342d66),_0x3b61e3['buffers'][_0x262d('0xb')](this['_protobufDescriptor']['compress'](_0x342d66)),_0x3b61e3[_0x262d('0x5')][_0x262d('0xb')](this['id']);}[_0x262d('0xf')](_0x314620,_0x54f6ff){const {types:_0x25a3e1,buffers:_0x4a56d0}=_0x54f6ff,_0x598057=this['_protobufDescriptor'][_0x262d('0xf')](_0x4a56d0[_0x262d('0x1')]());_0x25a3e1['shift'](),N(_0x262d('0xd'),_0x598057),N(_0x262d('0x7'),_0x598057),_0x26ef96(_0x598057),_0x598057[_0x262d('0x10')]=this[_0x262d('0xe')],_0x314620['push'](_0x598057);}}function $(_0x5be699,_0x5957be){const _0x93b425=_0x5957be[_0x5be699];_0x262d('0xa')==typeof _0x93b425?_0x5957be[_0x5be699+_0x262d('0x0')]=_0x93b425:_0x5957be[_0x5be699+_0x262d('0x6')]=JSON[_0x262d('0x2')](_0x93b425);}function N(_0x30ad4d,_0x55a2bb){const _0x3665ee=_0x30ad4d+_0x262d('0x6');_0x55a2bb[_0x3665ee]?(_0x55a2bb[_0x30ad4d]=JSON[_0x262d('0x11')](_0x55a2bb[_0x3665ee]),delete _0x55a2bb[_0x3665ee]):(_0x55a2bb[_0x30ad4d]=_0x55a2bb[_0x30ad4d+_0x262d('0x0')],delete _0x55a2bb[_0x30ad4d+_0x262d('0x0')]);}
23
+ const _0x3f60=['Boolean','Range','shift','Json','string','operationName','bool','buffers','__className','parse','_protobufDescriptor','boolean','compress','push'];(function(_0x1f7258,_0x3f60ea){const _0x547234=function(_0x5bb596){while(--_0x5bb596){_0x1f7258['push'](_0x1f7258['shift']());}};_0x547234(++_0x3f60ea);}(_0x3f60,0xe8));const _0x5472=function(_0x1f7258,_0x3f60ea){_0x1f7258=_0x1f7258-0x0;let _0x547234=_0x3f60[_0x1f7258];return _0x547234;};import _0x3699ea from'./operationcompressor';import{parsePositionBeforeCompression as _0x30405e,parsePositionAfterCompression as _0x35feed}from'../utils';export default class i extends _0x3699ea{static get['description'](){return{'fields':{'range':{'type':_0x5472('0x7'),'id':0x1},'key':{'type':_0x5472('0xa'),'id':0x2},'oldValueBoolean':{'type':_0x5472('0xc'),'id':0x3},'oldValueJson':{'type':'string','id':0x4},'newValueBoolean':{'type':_0x5472('0xc'),'id':0x5},'newValueJson':{'type':_0x5472('0xa'),'id':0x6},'wasUndone':{'type':_0x5472('0xc'),'id':0x7}}};}['compress'](_0x25300c,_0x438e7d){const _0x8f3552=_0x438e7d[_0x5472('0x8')]();$('oldValue',_0x8f3552),$('newValue',_0x8f3552),_0x30405e(_0x8f3552),_0x25300c[_0x5472('0xd')][_0x5472('0x5')](this[_0x5472('0x2')][_0x5472('0x4')](_0x8f3552)),_0x25300c['types'][_0x5472('0x5')](this['id']);}['decompress'](_0x1be367,_0x4e0767){const {types:_0x1ebec2,buffers:_0x1831a1}=_0x4e0767,_0x597fba=this[_0x5472('0x2')]['decompress'](_0x1831a1[_0x5472('0x8')]());_0x1ebec2[_0x5472('0x8')](),N('oldValue',_0x597fba),N('newValue',_0x597fba),_0x35feed(_0x597fba),_0x597fba[_0x5472('0x0')]=this[_0x5472('0xb')],_0x1be367['push'](_0x597fba);}}function $(_0x270fae,_0x41a43f){const _0x53b973=_0x41a43f[_0x270fae];_0x5472('0x3')==typeof _0x53b973?_0x41a43f[_0x270fae+_0x5472('0x6')]=_0x53b973:_0x41a43f[_0x270fae+_0x5472('0x9')]=JSON['stringify'](_0x53b973);}function N(_0x28e05b,_0x345478){const _0x22e27a=_0x28e05b+_0x5472('0x9');_0x345478[_0x22e27a]?(_0x345478[_0x28e05b]=JSON[_0x5472('0x1')](_0x345478[_0x22e27a]),delete _0x345478[_0x22e27a]):(_0x345478[_0x28e05b]=_0x345478[_0x28e05b+_0x5472('0x6')],delete _0x345478[_0x28e05b+_0x5472('0x6')]);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x501f=['decompress','operationName','boolean','compress','push','stringify','repeated','attributesBoolean','attributesJson','shift','types','keys','description','children','Position','attributes','bool','every','nodes','_protobufDescriptor'];(function(_0x5d3271,_0x501f03){const _0x14fd69=function(_0x4be3dd){while(--_0x4be3dd){_0x5d3271['push'](_0x5d3271['shift']());}};_0x14fd69(++_0x501f03);}(_0x501f,0x1eb));const _0x14fd=function(_0x5d3271,_0x501f03){_0x5d3271=_0x5d3271-0x0;let _0x14fd69=_0x501f[_0x5d3271];return _0x14fd69;};import _0x5ebf63 from'./operationcompressor';import{parsePositionBeforeCompression as _0x2606ed,parsePositionAfterCompression as _0x2ecc64}from'../utils';export default class s extends _0x5ebf63{static get[_0x14fd('0x1')](){return{'fields':{'position':{'type':_0x14fd('0x3'),'id':0x1},'nodes':{'rule':_0x14fd('0xf'),'type':'Element','id':0x2},'shouldReceiveAttributes':{'type':_0x14fd('0x5'),'id':0x3},'wasUndone':{'type':_0x14fd('0x5'),'id':0x4}}};}[_0x14fd('0xc')](_0x2fd46b,_0x17e421){const _0x1d68b0=_0x17e421[_0x14fd('0x12')]();A(_0x1d68b0[_0x14fd('0x7')]),_0x2606ed(_0x1d68b0),_0x2fd46b['buffers']['push'](this[_0x14fd('0x8')][_0x14fd('0xc')](_0x1d68b0)),_0x2fd46b[_0x14fd('0x13')]['push'](this['id']);}[_0x14fd('0x9')](_0x392c1b,_0xd63707){const {types:_0x3c1661,buffers:_0x37324d}=_0xd63707,_0x1bdd2a=this[_0x14fd('0x8')][_0x14fd('0x9')](_0x37324d['shift']());_0x3c1661[_0x14fd('0x12')](),_0x1bdd2a[_0x14fd('0x7')]||(_0x1bdd2a[_0x14fd('0x7')]=[]),E(_0x1bdd2a[_0x14fd('0x7')]),_0x2ecc64(_0x1bdd2a),_0x1bdd2a['__className']=this[_0x14fd('0xa')],_0x392c1b[_0x14fd('0xd')](_0x1bdd2a);}}function A(_0x390725){for(const _0x5cf642 of _0x390725){if(_0x5cf642[_0x14fd('0x4')]){const _0x30d1a0=_0x5cf642[_0x14fd('0x4')];R(_0x30d1a0)?_0x5cf642['attributesBoolean']=_0x30d1a0:_0x5cf642[_0x14fd('0x11')]=JSON[_0x14fd('0xe')](_0x30d1a0);}_0x5cf642[_0x14fd('0x2')]&&A(_0x5cf642[_0x14fd('0x2')]);}}function E(_0x3ca54a){for(const _0x16e29b of _0x3ca54a)(_0x16e29b[_0x14fd('0x10')]||_0x16e29b[_0x14fd('0x11')])&&(_0x16e29b['attributesBoolean']?(_0x16e29b[_0x14fd('0x4')]=_0x16e29b[_0x14fd('0x10')],delete _0x16e29b[_0x14fd('0x10')]):(_0x16e29b['attributes']=JSON['parse'](_0x16e29b[_0x14fd('0x11')]),delete _0x16e29b[_0x14fd('0x11')])),_0x16e29b[_0x14fd('0x2')]&&E(_0x16e29b['children']);}function R(_0xf8ace3){return Object[_0x14fd('0x0')](_0xf8ace3)[_0x14fd('0x6')](_0x3709d2=>_0x14fd('0xb')==typeof _0xf8ace3[_0x3709d2]);}
23
+ const _0x1dec=['operationName','types','decompress','Element','children','nodes','__className','repeated','attributesJson','every','keys','_protobufDescriptor','compress','buffers','stringify','shift','attributes','Position','parse','bool','description','attributesBoolean','push'];(function(_0x396e12,_0x1dec1d){const _0x2b5de9=function(_0xab1050){while(--_0xab1050){_0x396e12['push'](_0x396e12['shift']());}};_0x2b5de9(++_0x1dec1d);}(_0x1dec,0x155));const _0x2b5d=function(_0x396e12,_0x1dec1d){_0x396e12=_0x396e12-0x0;let _0x2b5de9=_0x1dec[_0x396e12];return _0x2b5de9;};import _0x3d8f5c from'./operationcompressor';import{parsePositionBeforeCompression as _0x41d27d,parsePositionAfterCompression as _0x47f95f}from'../utils';export default class s extends _0x3d8f5c{static get[_0x2b5d('0x1')](){return{'fields':{'position':{'type':_0x2b5d('0x15'),'id':0x1},'nodes':{'rule':_0x2b5d('0xb'),'type':_0x2b5d('0x7'),'id':0x2},'shouldReceiveAttributes':{'type':_0x2b5d('0x0'),'id':0x3},'wasUndone':{'type':'bool','id':0x4}}};}[_0x2b5d('0x10')](_0x13f30d,_0x251ddc){const _0x481174=_0x251ddc[_0x2b5d('0x13')]();A(_0x481174['nodes']),_0x41d27d(_0x481174),_0x13f30d[_0x2b5d('0x11')]['push'](this[_0x2b5d('0xf')][_0x2b5d('0x10')](_0x481174)),_0x13f30d[_0x2b5d('0x5')][_0x2b5d('0x3')](this['id']);}[_0x2b5d('0x6')](_0x114e9a,_0x4f8c2b){const {types:_0xf4c9aa,buffers:_0xdbbe7e}=_0x4f8c2b,_0x5a11e6=this[_0x2b5d('0xf')]['decompress'](_0xdbbe7e[_0x2b5d('0x13')]());_0xf4c9aa[_0x2b5d('0x13')](),_0x5a11e6['nodes']||(_0x5a11e6[_0x2b5d('0x9')]=[]),E(_0x5a11e6[_0x2b5d('0x9')]),_0x47f95f(_0x5a11e6),_0x5a11e6[_0x2b5d('0xa')]=this[_0x2b5d('0x4')],_0x114e9a[_0x2b5d('0x3')](_0x5a11e6);}}function A(_0x21e809){for(const _0x192c43 of _0x21e809){if(_0x192c43[_0x2b5d('0x14')]){const _0x396ac5=_0x192c43['attributes'];R(_0x396ac5)?_0x192c43[_0x2b5d('0x2')]=_0x396ac5:_0x192c43[_0x2b5d('0xc')]=JSON[_0x2b5d('0x12')](_0x396ac5);}_0x192c43[_0x2b5d('0x8')]&&A(_0x192c43[_0x2b5d('0x8')]);}}function E(_0x582fe2){for(const _0x121a39 of _0x582fe2)(_0x121a39['attributesBoolean']||_0x121a39[_0x2b5d('0xc')])&&(_0x121a39[_0x2b5d('0x2')]?(_0x121a39[_0x2b5d('0x14')]=_0x121a39['attributesBoolean'],delete _0x121a39[_0x2b5d('0x2')]):(_0x121a39[_0x2b5d('0x14')]=JSON[_0x2b5d('0x16')](_0x121a39[_0x2b5d('0xc')]),delete _0x121a39[_0x2b5d('0xc')])),_0x121a39[_0x2b5d('0x8')]&&E(_0x121a39[_0x2b5d('0x8')]);}function R(_0x16cf0a){return Object[_0x2b5d('0xe')](_0x16cf0a)[_0x2b5d('0xd')](_0x15d2bc=>'boolean'==typeof _0x16cf0a[_0x15d2bc]);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc847=['Range','description','oldRange','decompress','length','string','bool','newRange'];(function(_0x1dadf3,_0xc8474c){const _0x18c30a=function(_0x238f78){while(--_0x238f78){_0x1dadf3['push'](_0x1dadf3['shift']());}};_0x18c30a(++_0xc8474c);}(_0xc847,0xe0));const _0x18c3=function(_0x1dadf3,_0xc8474c){_0x1dadf3=_0x1dadf3-0x0;let _0x18c30a=_0xc847[_0x1dadf3];return _0x18c30a;};import _0x38ae69 from'./operationcompressor';export default class n extends _0x38ae69{static get[_0x18c3('0x1')](){return{'fields':{'name':{'type':_0x18c3('0x5'),'id':0x1},'oldRange':{'type':_0x18c3('0x0'),'id':0x2},'newRange':{'type':_0x18c3('0x0'),'id':0x3},'affectsData':{'type':'bool','id':0x4},'wasUndone':{'type':_0x18c3('0x6'),'id':0x5}}};}['decompress'](_0x59fe95,_0x396406){super[_0x18c3('0x3')](_0x59fe95,_0x396406);const _0x343a59=_0x59fe95[_0x59fe95[_0x18c3('0x4')]-0x1];_0x343a59[_0x18c3('0x2')]||(_0x343a59[_0x18c3('0x2')]=null),_0x343a59['newRange']||(_0x343a59[_0x18c3('0x7')]=null);}}
23
+ const _0x41b6=['description','length','bool','newRange','Range','oldRange','decompress'];(function(_0x402717,_0x41b63e){const _0x294fae=function(_0x3d42fb){while(--_0x3d42fb){_0x402717['push'](_0x402717['shift']());}};_0x294fae(++_0x41b63e);}(_0x41b6,0x171));const _0x294f=function(_0x402717,_0x41b63e){_0x402717=_0x402717-0x0;let _0x294fae=_0x41b6[_0x402717];return _0x294fae;};import _0xec253 from'./operationcompressor';export default class n extends _0xec253{static get[_0x294f('0x2')](){return{'fields':{'name':{'type':'string','id':0x1},'oldRange':{'type':_0x294f('0x6'),'id':0x2},'newRange':{'type':_0x294f('0x6'),'id':0x3},'affectsData':{'type':_0x294f('0x4'),'id':0x4},'wasUndone':{'type':_0x294f('0x4'),'id':0x5}}};}['decompress'](_0x4ec928,_0x506b8e){super[_0x294f('0x1')](_0x4ec928,_0x506b8e);const _0xc801ad=_0x4ec928[_0x4ec928[_0x294f('0x3')]-0x1];_0xc801ad[_0x294f('0x0')]||(_0xc801ad[_0x294f('0x0')]=null),_0xc801ad[_0x294f('0x5')]||(_0xc801ad[_0x294f('0x5')]=null);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xb572=['uint32','Position','description'];(function(_0x35c130,_0xb57202){var _0x4b7bf2=function(_0x3f2b89){while(--_0x3f2b89){_0x35c130['push'](_0x35c130['shift']());}};_0x4b7bf2(++_0xb57202);}(_0xb572,0x146));var _0x4b7b=function(_0x35c130,_0xb57202){_0x35c130=_0x35c130-0x0;var _0x4b7bf2=_0xb572[_0x35c130];return _0x4b7bf2;};import _0x364e55 from'./operationcompressor';export default class p extends _0x364e55{static get[_0x4b7b('0x0')](){return{'fields':{'sourcePosition':{'type':_0x4b7b('0x2'),'id':0x1},'targetPosition':{'type':'Position','id':0x2},'graveyardPosition':{'type':_0x4b7b('0x2'),'id':0x3},'howMany':{'type':_0x4b7b('0x1'),'id':0x4},'wasUndone':{'type':'bool','id':0x5}}};}}
23
+ var _0xaff7=['description','Position','bool'];(function(_0x4a98c5,_0xaff7d9){var _0x45d960=function(_0x488393){while(--_0x488393){_0x4a98c5['push'](_0x4a98c5['shift']());}};_0x45d960(++_0xaff7d9);}(_0xaff7,0x19d));var _0x45d9=function(_0x4a98c5,_0xaff7d9){_0x4a98c5=_0x4a98c5-0x0;var _0x45d960=_0xaff7[_0x4a98c5];return _0x45d960;};import _0x210c35 from'./operationcompressor';export default class p extends _0x210c35{static get[_0x45d9('0x1')](){return{'fields':{'sourcePosition':{'type':_0x45d9('0x2'),'id':0x1},'targetPosition':{'type':_0x45d9('0x2'),'id':0x2},'graveyardPosition':{'type':_0x45d9('0x2'),'id':0x3},'howMany':{'type':'uint32','id':0x4},'wasUndone':{'type':_0x45d9('0x0'),'id':0x5}}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3d0e=['bool','Position'];(function(_0x3beea1,_0x3d0e26){var _0x10b91a=function(_0x5caa60){while(--_0x5caa60){_0x3beea1['push'](_0x3beea1['shift']());}};_0x10b91a(++_0x3d0e26);}(_0x3d0e,0x15f));var _0x10b9=function(_0x3beea1,_0x3d0e26){_0x3beea1=_0x3beea1-0x0;var _0x10b91a=_0x3d0e[_0x3beea1];return _0x10b91a;};import _0x31f799 from'./operationcompressor';export default class m extends _0x31f799{static get['description'](){return{'fields':{'sourcePosition':{'type':_0x10b9('0x0'),'id':0x1},'howMany':{'type':'uint32','id':0x2},'targetPosition':{'type':'Position','id':0x3},'wasUndone':{'type':_0x10b9('0x1'),'id':0x4}}};}}
23
+ var _0x37ed=['bool','description','uint32','Position'];(function(_0x95cdf9,_0x37ed2c){var _0x118e69=function(_0x4ed23c){while(--_0x4ed23c){_0x95cdf9['push'](_0x95cdf9['shift']());}};_0x118e69(++_0x37ed2c);}(_0x37ed,0x8b));var _0x118e=function(_0x95cdf9,_0x37ed2c){_0x95cdf9=_0x95cdf9-0x0;var _0x118e69=_0x37ed[_0x95cdf9];return _0x118e69;};import _0x284339 from'./operationcompressor';export default class m extends _0x284339{static get[_0x118e('0x2')](){return{'fields':{'sourcePosition':{'type':_0x118e('0x0'),'id':0x1},'howMany':{'type':_0x118e('0x3'),'id':0x2},'targetPosition':{'type':'Position','id':0x3},'wasUndone':{'type':_0x118e('0x1'),'id':0x4}}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x132d=['compress','decompress','push','shift','types','operationName'];(function(_0x4fddb2,_0x132d86){var _0x40699d=function(_0x38287e){while(--_0x38287e){_0x4fddb2['push'](_0x4fddb2['shift']());}};_0x40699d(++_0x132d86);}(_0x132d,0x1b3));var _0x4069=function(_0x4fddb2,_0x132d86){_0x4fddb2=_0x4fddb2-0x0;var _0x40699d=_0x132d[_0x4fddb2];return _0x40699d;};import _0x2bab3d from'./operationcompressor';export default class f extends _0x2bab3d{[_0x4069('0x3')](_0x4a402a,_0x295fbb){_0x295fbb[_0x4069('0x0')](),_0x4a402a['types'][_0x4069('0x5')](this['id']);}[_0x4069('0x4')](_0x4d4a50,_0x468e83){_0x468e83[_0x4069('0x1')][_0x4069('0x0')](),_0x4d4a50[_0x4069('0x5')]({'__className':this[_0x4069('0x2')]});}}
23
+ var _0x2668=['push','decompress','compress','shift','types','operationName'];(function(_0x274631,_0x266875){var _0x556493=function(_0x5ec1da){while(--_0x5ec1da){_0x274631['push'](_0x274631['shift']());}};_0x556493(++_0x266875);}(_0x2668,0x109));var _0x5564=function(_0x274631,_0x266875){_0x274631=_0x274631-0x0;var _0x556493=_0x2668[_0x274631];return _0x556493;};import _0x16e5d3 from'./operationcompressor';export default class f extends _0x16e5d3{[_0x5564('0x1')](_0x3197e3,_0x2228c7){_0x2228c7[_0x5564('0x2')](),_0x3197e3[_0x5564('0x3')][_0x5564('0x5')](this['id']);}[_0x5564('0x0')](_0x31135b,_0x276d7c){_0x276d7c[_0x5564('0x3')]['shift'](),_0x31135b[_0x5564('0x5')]({'__className':this[_0x5564('0x4')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a7f=['operationName','_protobufDescriptor','compress','buffers','shift','types','push','decompress','__className'];(function(_0x574521,_0x4a7f80){const _0x3b4b1a=function(_0x182e01){while(--_0x182e01){_0x574521['push'](_0x574521['shift']());}};_0x3b4b1a(++_0x4a7f80);}(_0x4a7f,0x1d2));const _0x3b4b=function(_0x574521,_0x4a7f80){_0x574521=_0x574521-0x0;let _0x3b4b1a=_0x4a7f[_0x574521];return _0x3b4b1a;};import{parsePositionBeforeCompression as _0x5cba11,parsePositionAfterCompression as _0x4d1e57}from'../utils';export default class V{constructor(_0x8b103e,_0x345ec4,_0x23b903){this['id']=_0x8b103e,this[_0x3b4b('0x2')]=_0x345ec4,this['_protobufDescriptor']=_0x23b903;}[_0x3b4b('0x4')](_0x423d95,_0x460214){const _0x3952ce=_0x460214[_0x3b4b('0x6')]();_0x5cba11(_0x3952ce),_0x423d95[_0x3b4b('0x5')]['push'](this[_0x3b4b('0x3')][_0x3b4b('0x4')](_0x3952ce)),_0x423d95[_0x3b4b('0x7')]['push'](this['id']);}[_0x3b4b('0x0')](_0x1278ea,_0x59f5ac){_0x59f5ac[_0x3b4b('0x7')][_0x3b4b('0x6')]();const _0x564a7c=this[_0x3b4b('0x3')][_0x3b4b('0x0')](_0x59f5ac[_0x3b4b('0x5')][_0x3b4b('0x6')]());_0x4d1e57(_0x564a7c),_0x564a7c[_0x3b4b('0x1')]=this[_0x3b4b('0x2')],_0x1278ea[_0x3b4b('0x8')](_0x564a7c);}}
23
+ const _0x2d14=['shift','__className','decompress','buffers','operationName','compress','_protobufDescriptor','push','types'];(function(_0x2f4666,_0x2d14ea){const _0xb1ceb=function(_0x35287e){while(--_0x35287e){_0x2f4666['push'](_0x2f4666['shift']());}};_0xb1ceb(++_0x2d14ea);}(_0x2d14,0x12a));const _0xb1ce=function(_0x2f4666,_0x2d14ea){_0x2f4666=_0x2f4666-0x0;let _0xb1ceb=_0x2d14[_0x2f4666];return _0xb1ceb;};import{parsePositionBeforeCompression as _0x10d070,parsePositionAfterCompression as _0x4f6f6f}from'../utils';export default class V{constructor(_0x5b2eb7,_0x4139bd,_0x4a46d6){this['id']=_0x5b2eb7,this['operationName']=_0x4139bd,this[_0xb1ce('0x5')]=_0x4a46d6;}[_0xb1ce('0x4')](_0x4e6ef3,_0x1abd43){const _0x10d8ff=_0x1abd43[_0xb1ce('0x8')]();_0x10d070(_0x10d8ff),_0x4e6ef3[_0xb1ce('0x2')][_0xb1ce('0x6')](this[_0xb1ce('0x5')]['compress'](_0x10d8ff)),_0x4e6ef3[_0xb1ce('0x7')][_0xb1ce('0x6')](this['id']);}[_0xb1ce('0x1')](_0x4360bc,_0x39fb11){_0x39fb11['types'][_0xb1ce('0x8')]();const _0x533a6b=this['_protobufDescriptor'][_0xb1ce('0x1')](_0x39fb11[_0xb1ce('0x2')][_0xb1ce('0x8')]());_0x4f6f6f(_0x533a6b),_0x533a6b[_0xb1ce('0x0')]=this[_0xb1ce('0x3')],_0x4360bc['push'](_0x533a6b);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x23da=['description','bool','Position'];(function(_0x43e4d4,_0x23daf6){var _0x45f202=function(_0x73999d){while(--_0x73999d){_0x43e4d4['push'](_0x43e4d4['shift']());}};_0x45f202(++_0x23daf6);}(_0x23da,0x181));var _0x45f2=function(_0x43e4d4,_0x23daf6){_0x43e4d4=_0x43e4d4-0x0;var _0x45f202=_0x23da[_0x43e4d4];return _0x45f202;};import _0x23ca9e from'./operationcompressor';export default class a extends _0x23ca9e{static get[_0x45f2('0x2')](){return{'fields':{'position':{'type':_0x45f2('0x1'),'id':0x1},'oldName':{'type':'string','id':0x2},'newName':{'type':'string','id':0x3},'wasUndone':{'type':_0x45f2('0x0'),'id':0x4}}};}}
23
+ var _0xc2af=['description','string'];(function(_0x27aa93,_0xc2af36){var _0x3f18cb=function(_0x58d475){while(--_0x58d475){_0x27aa93['push'](_0x27aa93['shift']());}};_0x3f18cb(++_0xc2af36);}(_0xc2af,0x10a));var _0x3f18=function(_0x27aa93,_0xc2af36){_0x27aa93=_0x27aa93-0x0;var _0x3f18cb=_0xc2af[_0x27aa93];return _0x3f18cb;};import _0x2aec49 from'./operationcompressor';export default class a extends _0x2aec49{static get[_0x3f18('0x0')](){return{'fields':{'position':{'type':'Position','id':0x1},'oldName':{'type':_0x3f18('0x1'),'id':0x2},'newName':{'type':_0x3f18('0x1'),'id':0x3},'wasUndone':{'type':'bool','id':0x4}}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x410b=['fields','root','range'];(function(_0x4f91de,_0x410b56){const _0x544bab=function(_0x4b9bb8){while(--_0x4b9bb8){_0x4f91de['push'](_0x4f91de['shift']());}};_0x544bab(++_0x410b56);}(_0x410b,0x1b2));const _0x544b=function(_0x4f91de,_0x410b56){_0x4f91de=_0x4f91de-0x0;let _0x544bab=_0x410b[_0x4f91de];return _0x544bab;};import _0x1818e0 from'./attributeoperationcompressor';export default class c extends _0x1818e0{static get['description'](){const _0x28c61a=_0x1818e0['description'];return delete _0x28c61a['fields'][_0x544b('0x0')],_0x28c61a[_0x544b('0x1')][_0x544b('0x2')]={'type':'string','id':0x1},_0x28c61a;}}
23
+ const _0x4c75=['fields','description','string','range','root'];(function(_0x47f2aa,_0x4c7593){const _0x5ef814=function(_0x17a520){while(--_0x17a520){_0x47f2aa['push'](_0x47f2aa['shift']());}};_0x5ef814(++_0x4c7593);}(_0x4c75,0x192));const _0x5ef8=function(_0x47f2aa,_0x4c7593){_0x47f2aa=_0x47f2aa-0x0;let _0x5ef814=_0x4c75[_0x47f2aa];return _0x5ef814;};import _0x4ca812 from'./attributeoperationcompressor';export default class c extends _0x4ca812{static get[_0x5ef8('0x4')](){const _0x3390be=_0x4ca812[_0x5ef8('0x4')];return delete _0x3390be['fields'][_0x5ef8('0x1')],_0x3390be[_0x5ef8('0x3')][_0x5ef8('0x2')]={'type':_0x5ef8('0x0'),'id':0x1},_0x3390be;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5172=['Position','description','uint32'];(function(_0x315740,_0x5172b9){var _0x3015e7=function(_0x45b4b2){while(--_0x45b4b2){_0x315740['push'](_0x315740['shift']());}};_0x3015e7(++_0x5172b9);}(_0x5172,0x133));var _0x3015=function(_0x315740,_0x5172b9){_0x315740=_0x315740-0x0;var _0x3015e7=_0x5172[_0x315740];return _0x3015e7;};import _0x349077 from'./operationcompressor';export default class h extends _0x349077{static get[_0x3015('0x0')](){return{'fields':{'splitPosition':{'type':'Position','id':0x1},'graveyardPosition':{'type':_0x3015('0x2'),'id':0x2},'howMany':{'type':_0x3015('0x1'),'id':0x3},'insertionPosition':{'type':_0x3015('0x2'),'id':0x4},'wasUndone':{'type':'bool','id':0x5}}};}}
23
+ var _0xa784=['uint32','Position','description','bool'];(function(_0x5a355c,_0xa78425){var _0x23ec9a=function(_0x4a0a24){while(--_0x4a0a24){_0x5a355c['push'](_0x5a355c['shift']());}};_0x23ec9a(++_0xa78425);}(_0xa784,0x1df));var _0x23ec=function(_0x5a355c,_0xa78425){_0x5a355c=_0x5a355c-0x0;var _0x23ec9a=_0xa784[_0x5a355c];return _0x23ec9a;};import _0x2dc64b from'./operationcompressor';export default class h extends _0x2dc64b{static get[_0x23ec('0x3')](){return{'fields':{'splitPosition':{'type':_0x23ec('0x2'),'id':0x1},'graveyardPosition':{'type':_0x23ec('0x2'),'id':0x2},'howMany':{'type':_0x23ec('0x1'),'id':0x3},'insertionPosition':{'type':_0x23ec('0x2'),'id':0x4},'wasUndone':{'type':_0x23ec('0x0'),'id':0x5}}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3228=['nested','build','lookupType','registerDescriptor','decompress','_protobufRoot','compress','create','_description','Root','fromJSON','toObject','finish','_protobuf'];(function(_0x4437ce,_0x32287c){const _0x5aa6d9=function(_0x49abae){while(--_0x49abae){_0x4437ce['push'](_0x4437ce['shift']());}};_0x5aa6d9(++_0x32287c);}(_0x3228,0x182));const _0x5aa6=function(_0x4437ce,_0x32287c){_0x4437ce=_0x4437ce-0x0;let _0x5aa6d9=_0x3228[_0x4437ce];return _0x5aa6d9;};import _0x4d9f08 from'protobufjs/light';import{CKEditorError as _0x25ece2}from'ckeditor5/src/utils';import{cloneDeep as _0x3e5d45}from'lodash-es';export default class r{constructor(){this[_0x5aa6('0x0')]={'nested':{}};}[_0x5aa6('0x9')](_0x3d547d,_0x116e8c){this[_0x5aa6('0x0')][_0x5aa6('0x6')][_0x3d547d]=_0x3e5d45(_0x116e8c);}[_0x5aa6('0x7')](){this['_protobufRoot']=_0x4d9f08[_0x5aa6('0x1')][_0x5aa6('0x2')](this[_0x5aa6('0x0')]);}['getDescriptor'](_0x5c46b1){if(!this['_protobufRoot'])throw new _0x25ece2('protobuffactory-cannot-get-descriptor-before-build',this);return new D(this[_0x5aa6('0xb')][_0x5aa6('0x8')](_0x5c46b1));}}class D{constructor(_0x8ca38b){this[_0x5aa6('0x5')]=_0x8ca38b;}[_0x5aa6('0xc')](_0x161474){const _0x30d294=this[_0x5aa6('0x5')]['verify'](_0x161474);if(_0x30d294)throw Error(_0x30d294);return this['_protobuf']['encode'](this[_0x5aa6('0x5')][_0x5aa6('0xd')](_0x161474))[_0x5aa6('0x4')]();}[_0x5aa6('0xa')](_0x3e2275){return this[_0x5aa6('0x5')][_0x5aa6('0x3')](this['_protobuf']['decode'](_0x3e2275),{'oneofs':!0x0});}}
23
+ const _0x8815=['decompress','lookupType','_description','_protobufRoot','finish','Root','_protobuf','encode','protobuffactory-cannot-get-descriptor-before-build','toObject','create','getDescriptor'];(function(_0x1244b7,_0x881593){const _0x2d47f9=function(_0x59e1c6){while(--_0x59e1c6){_0x1244b7['push'](_0x1244b7['shift']());}};_0x2d47f9(++_0x881593);}(_0x8815,0xb0));const _0x2d47=function(_0x1244b7,_0x881593){_0x1244b7=_0x1244b7-0x0;let _0x2d47f9=_0x8815[_0x1244b7];return _0x2d47f9;};import _0x2527f9 from'protobufjs/light';import{CKEditorError as _0x4598f5}from'ckeditor5/src/utils';import{cloneDeep as _0x3c479f}from'lodash-es';export default class r{constructor(){this[_0x2d47('0x6')]={'nested':{}};}['registerDescriptor'](_0x5af1ca,_0x44d595){this[_0x2d47('0x6')]['nested'][_0x5af1ca]=_0x3c479f(_0x44d595);}['build'](){this[_0x2d47('0x7')]=_0x2527f9[_0x2d47('0x9')]['fromJSON'](this[_0x2d47('0x6')]);}[_0x2d47('0x3')](_0x95678){if(!this['_protobufRoot'])throw new _0x4598f5(_0x2d47('0x0'),this);return new D(this[_0x2d47('0x7')][_0x2d47('0x5')](_0x95678));}}class D{constructor(_0x34dd49){this['_protobuf']=_0x34dd49;}['compress'](_0x5d87e7){const _0x4db643=this[_0x2d47('0xa')]['verify'](_0x5d87e7);if(_0x4db643)throw Error(_0x4db643);return this[_0x2d47('0xa')][_0x2d47('0xb')](this['_protobuf'][_0x2d47('0x2')](_0x5d87e7))[_0x2d47('0x8')]();}[_0x2d47('0x4')](_0x47d94e){return this[_0x2d47('0xa')][_0x2d47('0x1')](this[_0x2d47('0xa')]['decode'](_0x47d94e),{'oneofs':!0x0});}}
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c99=['path','rootGraveyard','$graveyard','main','root','rootMain','nodes'];(function(_0x4a7466,_0x4c992d){const _0x362a71=function(_0x1af0cf){while(--_0x1af0cf){_0x4a7466['push'](_0x4a7466['shift']());}};_0x362a71(++_0x4c992d);}(_0x4c99,0x19d));const _0x362a=function(_0x4a7466,_0x4c992d){_0x4a7466=_0x4a7466-0x0;let _0x362a71=_0x4c99[_0x4a7466];return _0x362a71;};import{cloneDeep as _0x3155b2,isEqual as _0x5c5ca2,isObject as _0x2aeebe}from'lodash-es';export function getPositionShiftedBy(_0x162130,_0x3a1104){const _0x21f8d7=_0x3155b2(_0x162130);return _0x21f8d7['path'][_0x21f8d7['path']['length']-0x1]+=_0x3a1104,_0x21f8d7;}export function arePositionsEqual(_0x21d448,_0x25717f){return _0x21d448[_0x362a('0x4')]===_0x25717f[_0x362a('0x4')]&&_0x5c5ca2(_0x21d448[_0x362a('0x0')],_0x25717f[_0x362a('0x0')]);}export function parsePositionBeforeCompression(_0xcb5dcb){y(_0xcb5dcb,_0x548ec8=>(_0x362a('0x3')==_0x548ec8[_0x362a('0x4')]?(_0x548ec8[_0x362a('0x5')]=!0x0,delete _0x548ec8[_0x362a('0x4')]):_0x362a('0x2')==_0x548ec8[_0x362a('0x4')]&&(_0x548ec8[_0x362a('0x1')]=!0x0,delete _0x548ec8['root']),_0x548ec8));}export function parsePositionAfterCompression(_0x5c6ad4){y(_0x5c6ad4,_0x4b720d=>(_0x4b720d[_0x362a('0x5')]?(_0x4b720d['root']=_0x362a('0x3'),delete _0x4b720d[_0x362a('0x5')]):_0x4b720d[_0x362a('0x1')]&&(_0x4b720d['root']=_0x362a('0x2'),delete _0x4b720d[_0x362a('0x1')]),_0x4b720d));}function y(_0x3a7250,_0x46cbef){for(const _0x80fafc in _0x3a7250){const _0x27953d=_0x3a7250[_0x80fafc];_0x362a('0x6')!==_0x80fafc&&_0x2aeebe(_0x27953d)&&(_0x27953d['path']&&(_0x27953d[_0x362a('0x4')]||_0x27953d[_0x362a('0x5')]||_0x27953d[_0x362a('0x1')])?_0x3a7250[_0x80fafc]=_0x46cbef(_0x27953d):y(_0x27953d,_0x46cbef));}return _0x3a7250;}
23
+ const _0x3cd9=['nodes','path','length','rootGraveyard','$graveyard','root','rootMain'];(function(_0x11617d,_0x3cd993){const _0x1caec8=function(_0x152783){while(--_0x152783){_0x11617d['push'](_0x11617d['shift']());}};_0x1caec8(++_0x3cd993);}(_0x3cd9,0xad));const _0x1cae=function(_0x11617d,_0x3cd993){_0x11617d=_0x11617d-0x0;let _0x1caec8=_0x3cd9[_0x11617d];return _0x1caec8;};import{cloneDeep as _0x224565,isEqual as _0xe4b557,isObject as _0x4f3029}from'lodash-es';export function getPositionShiftedBy(_0x69128a,_0x4e9458){const _0x1d7ed4=_0x224565(_0x69128a);return _0x1d7ed4[_0x1cae('0x3')][_0x1d7ed4[_0x1cae('0x3')][_0x1cae('0x4')]-0x1]+=_0x4e9458,_0x1d7ed4;}export function arePositionsEqual(_0x2ef2bd,_0x13519d){return _0x2ef2bd['root']===_0x13519d[_0x1cae('0x0')]&&_0xe4b557(_0x2ef2bd['path'],_0x13519d[_0x1cae('0x3')]);}export function parsePositionBeforeCompression(_0x5e9743){y(_0x5e9743,_0x5e18c3=>('main'==_0x5e18c3['root']?(_0x5e18c3[_0x1cae('0x1')]=!0x0,delete _0x5e18c3[_0x1cae('0x0')]):'$graveyard'==_0x5e18c3['root']&&(_0x5e18c3['rootGraveyard']=!0x0,delete _0x5e18c3['root']),_0x5e18c3));}export function parsePositionAfterCompression(_0x5446a0){y(_0x5446a0,_0x1372bd=>(_0x1372bd[_0x1cae('0x1')]?(_0x1372bd[_0x1cae('0x0')]='main',delete _0x1372bd['rootMain']):_0x1372bd[_0x1cae('0x5')]&&(_0x1372bd[_0x1cae('0x0')]=_0x1cae('0x6'),delete _0x1372bd[_0x1cae('0x5')]),_0x1372bd));}function y(_0x4087aa,_0x8e8ab9){for(const _0x371d36 in _0x4087aa){const _0x73855a=_0x4087aa[_0x371d36];_0x1cae('0x2')!==_0x371d36&&_0x4f3029(_0x73855a)&&(_0x73855a['path']&&(_0x73855a[_0x1cae('0x0')]||_0x73855a[_0x1cae('0x1')]||_0x73855a[_0x1cae('0x5')])?_0x4087aa[_0x371d36]=_0x8e8ab9(_0x73855a):y(_0x73855a,_0x8e8ab9));}return _0x4087aa;}