@ckeditor/ckeditor5-operations-compressor 40.2.0 → 41.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 +1 -1
- package/README.md +2 -2
- package/package.json +3 -2
- package/src/actioncompressor/actioncompressor.d.ts +2 -2
- package/src/actioncompressor/actioncompressor.js +2 -2
- package/src/actioncompressor/deletingactioncompressor.d.ts +3 -3
- package/src/actioncompressor/deletingactioncompressor.js +2 -2
- package/src/actioncompressor/forwarddeletingactioncompressor.d.ts +3 -3
- package/src/actioncompressor/forwarddeletingactioncompressor.js +2 -2
- package/src/actioncompressor/typingactioncompressor.d.ts +3 -3
- package/src/actioncompressor/typingactioncompressor.js +2 -2
- package/src/actioncompressor/userselectionactioncompressor.d.ts +3 -3
- package/src/actioncompressor/userselectionactioncompressor.js +2 -2
- package/src/compressor.d.ts +1 -1
- package/src/compressor.js +2 -2
- package/src/lib/compiledmessages.js +2 -2
- package/src/operationcompressor/annotationmarkeroperationcompressor.d.ts +5 -5
- package/src/operationcompressor/annotationmarkeroperationcompressor.js +2 -2
- package/src/operationcompressor/attributeoperationcompressor.d.ts +4 -4
- package/src/operationcompressor/attributeoperationcompressor.js +2 -2
- package/src/operationcompressor/insertoperationcompressor.d.ts +4 -4
- package/src/operationcompressor/insertoperationcompressor.js +2 -2
- package/src/operationcompressor/markeroperationcompressor.d.ts +4 -4
- package/src/operationcompressor/markeroperationcompressor.js +2 -2
- package/src/operationcompressor/nooperationcompressor.d.ts +4 -4
- package/src/operationcompressor/nooperationcompressor.js +2 -2
- package/src/operationcompressor/operationcompressor.d.ts +4 -4
- package/src/operationcompressor/operationcompressor.js +2 -2
- package/src/protobufdescriptions.d.ts +1 -1
- package/src/protobufdescriptions.js +2 -2
- package/src/protobuffactory.d.ts +1 -1
- package/src/protobuffactory.js +2 -2
- package/src/utils.d.ts +1 -1
- package/src/utils.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3107=['push','_areValuesBoolean','attributesJson','children','decompress','attributesBoolean','attributes','parse','shift','every','_deserializeNodesAttributes','compress','_operationName','types','nodes','_serializeNodesAttributes','_id','_protobufDescriptor','keys'];(function(_0x5165cc,_0x3107e0){const _0x26eaed=function(_0x385edd){while(--_0x385edd){_0x5165cc['push'](_0x5165cc['shift']());}};_0x26eaed(++_0x3107e0);}(_0x3107,0x1ba));const _0x26ea=function(_0x5165cc,_0x3107e0){_0x5165cc=_0x5165cc-0x0;let _0x26eaed=_0x3107[_0x5165cc];return _0x26eaed;};import _0x3c84ce from'./operationcompressor.js';import{parsePositionBeforeCompression as _0x1006af,parsePositionAfterCompression as _0x3fc9e6}from'../utils.js';export default class i extends _0x3c84ce{[_0x26ea('0x6')](_0x930ab1,_0x2a9ad2){const _0x3cb74c=_0x2a9ad2[_0x26ea('0x3')]();return this['_serializeNodesAttributes'](_0x3cb74c[_0x26ea('0x9')]),_0x1006af(_0x3cb74c),_0x930ab1['buffers'][_0x26ea('0xe')](this[_0x26ea('0xc')][_0x26ea('0x6')](_0x3cb74c)),_0x930ab1[_0x26ea('0x8')][_0x26ea('0xe')](this[_0x26ea('0xb')]),!0x0;}[_0x26ea('0x12')](_0x4e1b26,_0x54a49b){const {types:_0x36e961,buffers:_0xd393e}=_0x54a49b,_0x2eb83a=this[_0x26ea('0xc')]['decompress'](_0xd393e[_0x26ea('0x3')]());_0x36e961[_0x26ea('0x3')](),_0x2eb83a[_0x26ea('0x9')]||(_0x2eb83a[_0x26ea('0x9')]=[]),this[_0x26ea('0x5')](_0x2eb83a[_0x26ea('0x9')]),_0x3fc9e6(_0x2eb83a),_0x2eb83a['__className']=this[_0x26ea('0x7')],_0x4e1b26[_0x26ea('0xe')](_0x2eb83a);}[_0x26ea('0xa')](_0x435904){for(const _0x4dd59d of _0x435904){if(_0x4dd59d['attributes']){const _0x518860=_0x4dd59d[_0x26ea('0x1')];this[_0x26ea('0xf')](_0x518860)?_0x4dd59d[_0x26ea('0x0')]=_0x518860:_0x4dd59d['attributesJson']=JSON['stringify'](_0x518860);}_0x4dd59d[_0x26ea('0x11')]&&this[_0x26ea('0xa')](_0x4dd59d[_0x26ea('0x11')]);}}[_0x26ea('0x5')](_0x3a6362){for(const _0x34ca70 of _0x3a6362)(_0x34ca70['attributesBoolean']||_0x34ca70[_0x26ea('0x10')])&&(_0x34ca70[_0x26ea('0x0')]?(_0x34ca70['attributes']=_0x34ca70[_0x26ea('0x0')],delete _0x34ca70['attributesBoolean']):(_0x34ca70[_0x26ea('0x1')]=JSON[_0x26ea('0x2')](_0x34ca70[_0x26ea('0x10')]),delete _0x34ca70['attributesJson'])),_0x34ca70['children']&&this['_deserializeNodesAttributes'](_0x34ca70['children']);}[_0x26ea('0xf')](_0x29792f){return Object[_0x26ea('0xd')](_0x29792f)[_0x26ea('0x4')](_0x4aae3e=>'boolean'==typeof _0x29792f[_0x4aae3e]);}}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import OperationCompressor from './operationcompressor';
|
|
6
|
-
import type { CompressedOperationsData } from '../compressor';
|
|
7
|
-
import type { MarkerOperation } from 'ckeditor5/src/engine';
|
|
5
|
+
import OperationCompressor from './operationcompressor.js';
|
|
6
|
+
import type { CompressedOperationsData } from '../compressor.js';
|
|
7
|
+
import type { MarkerOperation } from 'ckeditor5/src/engine.js';
|
|
8
8
|
export default class MarkerOperationCompressor extends OperationCompressor {
|
|
9
9
|
/**
|
|
10
10
|
* @inheritDoc
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5986=['decompress','length','oldRange'];(function(_0x48a3d0,_0x5986f9){const _0x3f4403=function(_0x16bb98){while(--_0x16bb98){_0x48a3d0['push'](_0x48a3d0['shift']());}};_0x3f4403(++_0x5986f9);}(_0x5986,0x195));const _0x3f44=function(_0x48a3d0,_0x5986f9){_0x48a3d0=_0x48a3d0-0x0;let _0x3f4403=_0x5986[_0x48a3d0];return _0x3f4403;};import _0x318ffb from'./operationcompressor.js';export default class n extends _0x318ffb{[_0x3f44('0x0')](_0x115858,_0x17fb80){super[_0x3f44('0x0')](_0x115858,_0x17fb80);const _0xab3697=_0x115858[_0x115858[_0x3f44('0x1')]-0x1];_0xab3697['oldRange']||(_0xab3697[_0x3f44('0x2')]=null),_0xab3697['newRange']||(_0xab3697['newRange']=null);}}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import OperationCompressor from './operationcompressor';
|
|
6
|
-
import type { CompressedOperationsData } from '../compressor';
|
|
7
|
-
import type { Operation } from 'ckeditor5/src/engine';
|
|
5
|
+
import OperationCompressor from './operationcompressor.js';
|
|
6
|
+
import type { CompressedOperationsData } from '../compressor.js';
|
|
7
|
+
import type { Operation } from 'ckeditor5/src/engine.js';
|
|
8
8
|
/**
|
|
9
9
|
* @extends OperationCompressor
|
|
10
10
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x39ae=['decompress','shift','push','_operationName','_id','types','compress'];(function(_0x2b9dc2,_0x39ae23){var _0x37574a=function(_0x3b718e){while(--_0x3b718e){_0x2b9dc2['push'](_0x2b9dc2['shift']());}};_0x37574a(++_0x39ae23);}(_0x39ae,0x11b));var _0x3757=function(_0x2b9dc2,_0x39ae23){_0x2b9dc2=_0x2b9dc2-0x0;var _0x37574a=_0x39ae[_0x2b9dc2];return _0x37574a;};import _0x5826a7 from'./operationcompressor.js';export default class p extends _0x5826a7{[_0x3757('0x3')](_0x13ef62,_0x35240d){return _0x35240d[_0x3757('0x5')](),_0x13ef62['types'][_0x3757('0x6')](this[_0x3757('0x1')]),!0x0;}[_0x3757('0x4')](_0x1a5713,_0x559852){_0x559852[_0x3757('0x2')][_0x3757('0x5')](),_0x1a5713[_0x3757('0x6')]({'__className':this[_0x3757('0x0')]});}}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import type { CompressedOperationsData } from '../compressor';
|
|
6
|
-
import type { ProtobufDescriptor } from '../protobuffactory';
|
|
7
|
-
import type { Operation } from 'ckeditor5/src/engine';
|
|
5
|
+
import type { CompressedOperationsData } from '../compressor.js';
|
|
6
|
+
import type { ProtobufDescriptor } from '../protobuffactory.js';
|
|
7
|
+
import type { Operation } from 'ckeditor5/src/engine.js';
|
|
8
8
|
/**
|
|
9
9
|
* Compresses and decompresses single operation to the binary format.
|
|
10
10
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e31=['decompress','types','_operationName','_protobufDescriptor','buffers','push','shift','compress'];(function(_0x2cff7e,_0x3e3162){const _0x300cf4=function(_0x2128c9){while(--_0x2128c9){_0x2cff7e['push'](_0x2cff7e['shift']());}};_0x300cf4(++_0x3e3162);}(_0x3e31,0x121));const _0x300c=function(_0x2cff7e,_0x3e3162){_0x2cff7e=_0x2cff7e-0x0;let _0x300cf4=_0x3e31[_0x2cff7e];return _0x300cf4;};import{parsePositionBeforeCompression as _0x46b2c4,parsePositionAfterCompression as _0x338003}from'../utils.js';export default class e{constructor(_0x34a705,_0x22cab2,_0x1c0ff6){this['_id']=_0x34a705,this[_0x300c('0x1')]=_0x22cab2,this[_0x300c('0x2')]=_0x1c0ff6;}[_0x300c('0x6')](_0x4fb2d1,_0xe010a6){const _0x2684dc=_0xe010a6[_0x300c('0x5')]();return _0x46b2c4(_0x2684dc),_0x4fb2d1['buffers']['push'](this[_0x300c('0x2')]['compress'](_0x2684dc)),_0x4fb2d1[_0x300c('0x0')][_0x300c('0x4')](this['_id']),!0x0;}[_0x300c('0x7')](_0x3b9eee,_0x504440){_0x504440[_0x300c('0x0')][_0x300c('0x5')]();const _0x54b02d=this[_0x300c('0x2')][_0x300c('0x7')](_0x504440[_0x300c('0x3')][_0x300c('0x5')]());_0x338003(_0x54b02d),_0x54b02d['__className']=this[_0x300c('0x1')],_0x3b9eee[_0x300c('0x4')](_0x54b02d);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1324=['Range','Position','exports','string','repeated','uint32','Element','bool'];(function(_0x51ec0a,_0x1324c5){var _0x503304=function(_0x4a87e0){while(--_0x4a87e0){_0x51ec0a['push'](_0x51ec0a['shift']());}};_0x503304(++_0x1324c5);}(_0x1324,0x1bc));var _0x5033=function(_0x51ec0a,_0x1324c5){_0x51ec0a=_0x51ec0a-0x0;var _0x503304=_0x1324[_0x51ec0a];return _0x503304;};'use strict';module[_0x5033('0x6')]={'AttributeOperation':{'fields':{'range':{'type':'Range','id':0x1},'key':{'type':_0x5033('0x7'),'id':0x2},'oldValueBoolean':{'type':_0x5033('0x3'),'id':0x3},'oldValueJson':{'type':_0x5033('0x7'),'id':0x4},'newValueBoolean':{'type':_0x5033('0x3'),'id':0x5},'newValueJson':{'type':'string','id':0x6},'wasUndone':{'type':_0x5033('0x3'),'id':0x7}}},'InsertOperation':{'fields':{'position':{'type':_0x5033('0x5'),'id':0x1},'nodes':{'rule':_0x5033('0x0'),'type':'Element','id':0x2},'shouldReceiveAttributes':{'type':_0x5033('0x3'),'id':0x3},'wasUndone':{'type':_0x5033('0x3'),'id':0x4}}},'MarkerOperation':{'fields':{'name':{'type':_0x5033('0x7'),'id':0x1},'oldRange':{'type':_0x5033('0x4'),'id':0x2},'newRange':{'type':_0x5033('0x4'),'id':0x3},'affectsData':{'type':'bool','id':0x4},'wasUndone':{'type':'bool','id':0x5}}},'MergeOperation':{'fields':{'sourcePosition':{'type':_0x5033('0x5'),'id':0x1},'targetPosition':{'type':_0x5033('0x5'),'id':0x2},'graveyardPosition':{'type':_0x5033('0x5'),'id':0x3},'howMany':{'type':'uint32','id':0x4},'wasUndone':{'type':_0x5033('0x3'),'id':0x5}}},'MoveOperation':{'fields':{'sourcePosition':{'type':_0x5033('0x5'),'id':0x1},'howMany':{'type':_0x5033('0x1'),'id':0x2},'targetPosition':{'type':_0x5033('0x5'),'id':0x3},'wasUndone':{'type':_0x5033('0x3'),'id':0x4}}},'RenameOperation':{'fields':{'position':{'type':'Position','id':0x1},'oldName':{'type':_0x5033('0x7'),'id':0x2},'newName':{'type':_0x5033('0x7'),'id':0x3},'wasUndone':{'type':_0x5033('0x3'),'id':0x4}}},'RootAttributeOperation':{'fields':{'root':{'type':_0x5033('0x7'),'id':0x1},'key':{'type':_0x5033('0x7'),'id':0x2},'oldValueBoolean':{'type':_0x5033('0x3'),'id':0x3},'oldValueJson':{'type':'string','id':0x4},'newValueBoolean':{'type':'bool','id':0x5},'newValueJson':{'type':_0x5033('0x7'),'id':0x6},'wasUndone':{'type':_0x5033('0x3'),'id':0x7}}},'RootOperation':{'fields':{'rootName':{'type':_0x5033('0x7'),'id':0x1},'elementName':{'type':_0x5033('0x7'),'id':0x2},'isAdd':{'type':_0x5033('0x3'),'id':0x3},'wasUndone':{'type':_0x5033('0x3'),'id':0x4}}},'SplitOperation':{'fields':{'splitPosition':{'type':_0x5033('0x5'),'id':0x1},'graveyardPosition':{'type':'Position','id':0x2},'howMany':{'type':'uint32','id':0x3},'insertionPosition':{'type':_0x5033('0x5'),'id':0x4},'wasUndone':{'type':_0x5033('0x3'),'id':0x5}}},'Position':{'fields':{'root':{'type':_0x5033('0x7'),'id':0x1},'rootMain':{'type':_0x5033('0x3'),'id':0x2},'rootGraveyard':{'type':_0x5033('0x3'),'id':0x3},'path':{'rule':_0x5033('0x0'),'type':_0x5033('0x1'),'id':0x4},'stickiness':{'type':'string','id':0x5}}},'Range':{'fields':{'start':{'type':_0x5033('0x5'),'id':0x1},'end':{'type':_0x5033('0x5'),'id':0x2}}},'Element':{'fields':{'name':{'type':_0x5033('0x7'),'id':0x1},'children':{'rule':_0x5033('0x0'),'type':_0x5033('0x2'),'id':0x2},'data':{'type':_0x5033('0x7'),'id':0x3},'attributesBoolean':{'keyType':_0x5033('0x7'),'type':_0x5033('0x3'),'id':0x4},'attributesJson':{'type':_0x5033('0x7'),'id':0x5}}}};
|
package/src/protobuffactory.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
export {};
|
package/src/protobuffactory.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1583=['verify','finish','_protobuf','compress','_protobufRoot','encode'];(function(_0x4bc2d3,_0x15830e){const _0x23bb46=function(_0x42d8c9){while(--_0x42d8c9){_0x4bc2d3['push'](_0x4bc2d3['shift']());}};_0x23bb46(++_0x15830e);}(_0x1583,0x1a2));const _0x23bb=function(_0x4bc2d3,_0x15830e){_0x4bc2d3=_0x4bc2d3-0x0;let _0x23bb46=_0x1583[_0x4bc2d3];return _0x23bb46;};import*as _0x28df14 from'./lib/compiledmessages.js';export default class r{constructor(){this[_0x23bb('0x0')]=_0x28df14;}['getDescriptor'](_0x3aa2ca){return new ProtobufDescriptor(this[_0x23bb('0x0')][_0x3aa2ca]);}}export class ProtobufDescriptor{constructor(_0x55414a){this[_0x23bb('0x4')]=_0x55414a;}[_0x23bb('0x5')](_0x15f2bb){const _0x561b1c=this[_0x23bb('0x4')][_0x23bb('0x2')](_0x15f2bb);if(_0x561b1c)throw Error(_0x561b1c);return this[_0x23bb('0x4')][_0x23bb('0x1')](this['_protobuf']['create'](_0x15f2bb))[_0x23bb('0x3')]();}['decompress'](_0x55a13f){return this[_0x23bb('0x4')]['toObject'](this[_0x23bb('0x4')]['decode'](_0x55a13f),{'oneofs':!0x0});}}
|
package/src/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
package/src/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2898=['root','path','$graveyard','rootMain','length','main','rootGraveyard'];(function(_0x20d458,_0x2898b3){const _0x23d48d=function(_0x46369b){while(--_0x46369b){_0x20d458['push'](_0x20d458['shift']());}};_0x23d48d(++_0x2898b3);}(_0x2898,0xee));const _0x23d4=function(_0x20d458,_0x2898b3){_0x20d458=_0x20d458-0x0;let _0x23d48d=_0x2898[_0x20d458];return _0x23d48d;};import{cloneDeep as _0x459909,isEqual as _0x3f4aa3,isObject as _0x4601e5}from'lodash-es';export function getPositionShiftedBy(_0x5197f9,_0x47fb8c){const _0x53de6f=_0x459909(_0x5197f9);return _0x53de6f['path'][_0x53de6f[_0x23d4('0x1')][_0x23d4('0x4')]-0x1]+=_0x47fb8c,_0x53de6f;}export function arePositionsEqual(_0x2fb1eb,_0x5de2cf){return _0x2fb1eb[_0x23d4('0x0')]===_0x5de2cf[_0x23d4('0x0')]&&_0x3f4aa3(_0x2fb1eb['path'],_0x5de2cf[_0x23d4('0x1')]);}export function parsePositionBeforeCompression(_0x2887dc){P(_0x2887dc,_0x1b486b=>(_0x23d4('0x5')==_0x1b486b[_0x23d4('0x0')]?(_0x1b486b[_0x23d4('0x3')]=!0x0,delete _0x1b486b[_0x23d4('0x0')]):_0x23d4('0x2')==_0x1b486b[_0x23d4('0x0')]&&(_0x1b486b['rootGraveyard']=!0x0,delete _0x1b486b[_0x23d4('0x0')]),_0x1b486b));}export function parsePositionAfterCompression(_0x475a13){P(_0x475a13,_0x3b484b=>(_0x3b484b['rootMain']?(_0x3b484b[_0x23d4('0x0')]=_0x23d4('0x5'),delete _0x3b484b[_0x23d4('0x3')]):_0x3b484b['rootGraveyard']&&(_0x3b484b['root']=_0x23d4('0x2'),delete _0x3b484b[_0x23d4('0x6')]),_0x3b484b));}function P(_0x33e57d,_0xf57c7f){for(const _0x2dd04f in _0x33e57d){const _0x4438e3=_0x33e57d[_0x2dd04f];'nodes'!==_0x2dd04f&&_0x4601e5(_0x4438e3)&&(_0x4438e3['path']&&(_0x4438e3[_0x23d4('0x0')]||_0x4438e3[_0x23d4('0x3')]||_0x4438e3[_0x23d4('0x6')])?_0x33e57d[_0x2dd04f]=_0xf57c7f(_0x4438e3):P(_0x4438e3,_0xf57c7f));}return _0x33e57d;}
|