@ckeditor/ckeditor5-operations-compressor 41.3.0 → 41.4.0-alpha.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/dist/index-content.css +4 -0
- package/dist/index-editor.css +4 -0
- package/dist/index.css +4 -0
- package/dist/index.js +23 -0
- package/dist/types/actioncompressor/actioncompressor.d.ts +64 -0
- package/dist/types/actioncompressor/deletingactioncompressor.d.ts +32 -0
- package/dist/types/actioncompressor/forwarddeletingactioncompressor.d.ts +32 -0
- package/dist/types/actioncompressor/typingactioncompressor.d.ts +32 -0
- package/dist/types/actioncompressor/userselectionactioncompressor.d.ts +20 -0
- package/dist/types/compressor.d.ts +49 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/operationcompressor/annotationmarkeroperationcompressor.d.ts +26 -0
- package/dist/types/operationcompressor/attributeoperationcompressor.d.ts +21 -0
- package/dist/types/operationcompressor/insertoperationcompressor.d.ts +21 -0
- package/dist/types/operationcompressor/markeroperationcompressor.d.ts +17 -0
- package/dist/types/operationcompressor/nooperationcompressor.d.ts +24 -0
- package/dist/types/operationcompressor/operationcompressor.d.ts +32 -0
- package/dist/types/protobufdescriptions.d.ts +8 -0
- package/dist/types/protobuffactory.d.ts +9 -0
- package/dist/types/utils.d.ts +34 -0
- package/package.json +6 -3
- package/src/actioncompressor/actioncompressor.js +1 -1
- package/src/actioncompressor/deletingactioncompressor.js +1 -1
- package/src/actioncompressor/forwarddeletingactioncompressor.js +1 -1
- package/src/actioncompressor/typingactioncompressor.js +1 -1
- package/src/actioncompressor/userselectionactioncompressor.js +1 -1
- package/src/compressor.js +1 -1
- package/src/index.d.ts +5 -0
- package/src/index.js +23 -0
- package/src/lib/compiledmessages.js +1 -1
- package/src/operationcompressor/annotationmarkeroperationcompressor.js +1 -1
- package/src/operationcompressor/attributeoperationcompressor.js +1 -1
- package/src/operationcompressor/insertoperationcompressor.js +1 -1
- package/src/operationcompressor/markeroperationcompressor.js +1 -1
- package/src/operationcompressor/nooperationcompressor.js +1 -1
- package/src/operationcompressor/operationcompressor.js +1 -1
- package/src/protobufdescriptions.js +1 -1
- package/src/protobuffactory.js +1 -1
- package/src/utils.js +1 -1
package/dist/index.css
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
import{CKEditorError as _0x538892}from'@ckeditor/ckeditor5-utils/dist/index.js';import*as _0xa5d20 from'protobufjs/minimal.js';import{cloneDeep as _0x4a9e50,isEqual as _0x5df907,isObject as _0x244ab3}from'lodash-es';const j=_0xa5d20['Reader'],y=_0xa5d20['Writer'],k=_0xa5d20['util'],v=_0xa5d20['roots']['default']||(_0xa5d20['roots']['default']={}),M=v['AttributeOperation']=((()=>{function _0x1c37c2(_0x2e937e){if(_0x2e937e){for(let _0x3008df=Object['keys'](_0x2e937e),_0x6a0859=0x0;_0x6a0859<_0x3008df['length'];++_0x6a0859)null!=_0x2e937e[_0x3008df[_0x6a0859]]&&(this[_0x3008df[_0x6a0859]]=_0x2e937e[_0x3008df[_0x6a0859]]);}}return _0x1c37c2['prototype']['range']=null,_0x1c37c2['prototype']['key']='',_0x1c37c2['prototype']['oldValueBoolean']=!0x1,_0x1c37c2['prototype']['oldValueJson']='',_0x1c37c2['prototype']['newValueBoolean']=!0x1,_0x1c37c2['prototype']['newValueJson']='',_0x1c37c2['prototype']['wasUndone']=!0x1,_0x1c37c2['create']=function(_0x4376cb){return new _0x1c37c2(_0x4376cb);},_0x1c37c2['encode']=function(_0x1a47c3,_0x174304){return _0x174304||(_0x174304=y['create']()),null!=_0x1a47c3['range']&&Object['hasOwnProperty']['call'](_0x1a47c3,'range')&&v['Range']['encode'](_0x1a47c3['range'],_0x174304['uint32'](0xa)['fork']())['ldelim'](),null!=_0x1a47c3['key']&&Object['hasOwnProperty']['call'](_0x1a47c3,'key')&&_0x174304['uint32'](0x12)['string'](_0x1a47c3['key']),null!=_0x1a47c3['oldValueBoolean']&&Object['hasOwnProperty']['call'](_0x1a47c3,'oldValueBoolean')&&_0x174304['uint32'](0x18)['bool'](_0x1a47c3['oldValueBoolean']),null!=_0x1a47c3['oldValueJson']&&Object['hasOwnProperty']['call'](_0x1a47c3,'oldValueJson')&&_0x174304['uint32'](0x22)['string'](_0x1a47c3['oldValueJson']),null!=_0x1a47c3['newValueBoolean']&&Object['hasOwnProperty']['call'](_0x1a47c3,'newValueBoolean')&&_0x174304['uint32'](0x28)['bool'](_0x1a47c3['newValueBoolean']),null!=_0x1a47c3['newValueJson']&&Object['hasOwnProperty']['call'](_0x1a47c3,'newValueJson')&&_0x174304['uint32'](0x32)['string'](_0x1a47c3['newValueJson']),null!=_0x1a47c3['wasUndone']&&Object['hasOwnProperty']['call'](_0x1a47c3,'wasUndone')&&_0x174304['uint32'](0x38)['bool'](_0x1a47c3['wasUndone']),_0x174304;},_0x1c37c2['encodeDelimited']=function(_0x4250ab,_0x3e7824){return this['encode'](_0x4250ab,_0x3e7824)['ldelim']();},_0x1c37c2['decode']=function(_0x26dfde,_0x3848e6){_0x26dfde instanceof j||(_0x26dfde=j['create'](_0x26dfde));let _0x4792f4=void 0x0===_0x3848e6?_0x26dfde['len']:_0x26dfde['pos']+_0x3848e6,_0x2f6850=new v['AttributeOperation']();for(;_0x26dfde['pos']<_0x4792f4;){let _0x50dffd=_0x26dfde['uint32']();switch(_0x50dffd>>>0x3){case 0x1:_0x2f6850['range']=v['Range']['decode'](_0x26dfde,_0x26dfde['uint32']());break;case 0x2:_0x2f6850['key']=_0x26dfde['string']();break;case 0x3:_0x2f6850['oldValueBoolean']=_0x26dfde['bool']();break;case 0x4:_0x2f6850['oldValueJson']=_0x26dfde['string']();break;case 0x5:_0x2f6850['newValueBoolean']=_0x26dfde['bool']();break;case 0x6:_0x2f6850['newValueJson']=_0x26dfde['string']();break;case 0x7:_0x2f6850['wasUndone']=_0x26dfde['bool']();break;default:_0x26dfde['skipType'](0x7&_0x50dffd);}}return _0x2f6850;},_0x1c37c2['decodeDelimited']=function(_0x525512){return _0x525512 instanceof j||(_0x525512=new j(_0x525512)),this['decode'](_0x525512,_0x525512['uint32']());},_0x1c37c2['verify']=function(_0x42aca3){if('object'!=typeof _0x42aca3||null===_0x42aca3)return'object\x20expected';if(null!=_0x42aca3['range']&&_0x42aca3['hasOwnProperty']('range')){let _0x473730=v['Range']['verify'](_0x42aca3['range']);if(_0x473730)return'range.'+_0x473730;}return null!=_0x42aca3['key']&&_0x42aca3['hasOwnProperty']('key')&&!k['isString'](_0x42aca3['key'])?'key:\x20string\x20expected':null!=_0x42aca3['oldValueBoolean']&&_0x42aca3['hasOwnProperty']('oldValueBoolean')&&'boolean'!=typeof _0x42aca3['oldValueBoolean']?'oldValueBoolean:\x20boolean\x20expected':null!=_0x42aca3['oldValueJson']&&_0x42aca3['hasOwnProperty']('oldValueJson')&&!k['isString'](_0x42aca3['oldValueJson'])?'oldValueJson:\x20string\x20expected':null!=_0x42aca3['newValueBoolean']&&_0x42aca3['hasOwnProperty']('newValueBoolean')&&'boolean'!=typeof _0x42aca3['newValueBoolean']?'newValueBoolean:\x20boolean\x20expected':null!=_0x42aca3['newValueJson']&&_0x42aca3['hasOwnProperty']('newValueJson')&&!k['isString'](_0x42aca3['newValueJson'])?'newValueJson:\x20string\x20expected':null!=_0x42aca3['wasUndone']&&_0x42aca3['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x42aca3['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x1c37c2['fromObject']=function(_0x495762){if(_0x495762 instanceof v['AttributeOperation'])return _0x495762;let _0x589521=new v['AttributeOperation']();if(null!=_0x495762['range']){if('object'!=typeof _0x495762['range'])throw TypeError('.AttributeOperation.range:\x20object\x20expected');_0x589521['range']=v['Range']['fromObject'](_0x495762['range']);}return null!=_0x495762['key']&&(_0x589521['key']=String(_0x495762['key'])),null!=_0x495762['oldValueBoolean']&&(_0x589521['oldValueBoolean']=Boolean(_0x495762['oldValueBoolean'])),null!=_0x495762['oldValueJson']&&(_0x589521['oldValueJson']=String(_0x495762['oldValueJson'])),null!=_0x495762['newValueBoolean']&&(_0x589521['newValueBoolean']=Boolean(_0x495762['newValueBoolean'])),null!=_0x495762['newValueJson']&&(_0x589521['newValueJson']=String(_0x495762['newValueJson'])),null!=_0x495762['wasUndone']&&(_0x589521['wasUndone']=Boolean(_0x495762['wasUndone'])),_0x589521;},_0x1c37c2['toObject']=function(_0xe6b7f5,_0x21695e){_0x21695e||(_0x21695e={});let _0xdde25e={};return _0x21695e['defaults']&&(_0xdde25e['range']=null,_0xdde25e['key']='',_0xdde25e['oldValueBoolean']=!0x1,_0xdde25e['oldValueJson']='',_0xdde25e['newValueBoolean']=!0x1,_0xdde25e['newValueJson']='',_0xdde25e['wasUndone']=!0x1),null!=_0xe6b7f5['range']&&_0xe6b7f5['hasOwnProperty']('range')&&(_0xdde25e['range']=v['Range']['toObject'](_0xe6b7f5['range'],_0x21695e)),null!=_0xe6b7f5['key']&&_0xe6b7f5['hasOwnProperty']('key')&&(_0xdde25e['key']=_0xe6b7f5['key']),null!=_0xe6b7f5['oldValueBoolean']&&_0xe6b7f5['hasOwnProperty']('oldValueBoolean')&&(_0xdde25e['oldValueBoolean']=_0xe6b7f5['oldValueBoolean']),null!=_0xe6b7f5['oldValueJson']&&_0xe6b7f5['hasOwnProperty']('oldValueJson')&&(_0xdde25e['oldValueJson']=_0xe6b7f5['oldValueJson']),null!=_0xe6b7f5['newValueBoolean']&&_0xe6b7f5['hasOwnProperty']('newValueBoolean')&&(_0xdde25e['newValueBoolean']=_0xe6b7f5['newValueBoolean']),null!=_0xe6b7f5['newValueJson']&&_0xe6b7f5['hasOwnProperty']('newValueJson')&&(_0xdde25e['newValueJson']=_0xe6b7f5['newValueJson']),null!=_0xe6b7f5['wasUndone']&&_0xe6b7f5['hasOwnProperty']('wasUndone')&&(_0xdde25e['wasUndone']=_0xe6b7f5['wasUndone']),_0xdde25e;},_0x1c37c2['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,_0xa5d20['util']['toJSONOptions']);},_0x1c37c2['getTypeUrl']=function(_0xf9678c){return void 0x0===_0xf9678c&&(_0xf9678c='type.googleapis.com'),_0xf9678c+'/AttributeOperation';},_0x1c37c2;})()),B=v['InsertOperation']=((()=>{function _0x3ed20b(_0x21bb21){if(this['nodes']=[],_0x21bb21){for(let _0x1c2ed3=Object['keys'](_0x21bb21),_0xb9c0d=0x0;_0xb9c0d<_0x1c2ed3['length'];++_0xb9c0d)null!=_0x21bb21[_0x1c2ed3[_0xb9c0d]]&&(this[_0x1c2ed3[_0xb9c0d]]=_0x21bb21[_0x1c2ed3[_0xb9c0d]]);}}return _0x3ed20b['prototype']['position']=null,_0x3ed20b['prototype']['nodes']=k['emptyArray'],_0x3ed20b['prototype']['shouldReceiveAttributes']=!0x1,_0x3ed20b['prototype']['wasUndone']=!0x1,_0x3ed20b['create']=function(_0x289528){return new _0x3ed20b(_0x289528);},_0x3ed20b['encode']=function(_0x48c730,_0x489c72){if(_0x489c72||(_0x489c72=y['create']()),null!=_0x48c730['position']&&Object['hasOwnProperty']['call'](_0x48c730,'position')&&v['Position']['encode'](_0x48c730['position'],_0x489c72['uint32'](0xa)['fork']())['ldelim'](),null!=_0x48c730['nodes']&&_0x48c730['nodes']['length']){for(let _0x2a87ff=0x0;_0x2a87ff<_0x48c730['nodes']['length'];++_0x2a87ff)v['Element']['encode'](_0x48c730['nodes'][_0x2a87ff],_0x489c72['uint32'](0x12)['fork']())['ldelim']();}return null!=_0x48c730['shouldReceiveAttributes']&&Object['hasOwnProperty']['call'](_0x48c730,'shouldReceiveAttributes')&&_0x489c72['uint32'](0x18)['bool'](_0x48c730['shouldReceiveAttributes']),null!=_0x48c730['wasUndone']&&Object['hasOwnProperty']['call'](_0x48c730,'wasUndone')&&_0x489c72['uint32'](0x20)['bool'](_0x48c730['wasUndone']),_0x489c72;},_0x3ed20b['encodeDelimited']=function(_0x38a44f,_0x5c2e04){return this['encode'](_0x38a44f,_0x5c2e04)['ldelim']();},_0x3ed20b['decode']=function(_0x7c5a6e,_0x52953b){_0x7c5a6e instanceof j||(_0x7c5a6e=j['create'](_0x7c5a6e));let _0x3278cb=void 0x0===_0x52953b?_0x7c5a6e['len']:_0x7c5a6e['pos']+_0x52953b,_0x122129=new v['InsertOperation']();for(;_0x7c5a6e['pos']<_0x3278cb;){let _0x156b87=_0x7c5a6e['uint32']();switch(_0x156b87>>>0x3){case 0x1:_0x122129['position']=v['Position']['decode'](_0x7c5a6e,_0x7c5a6e['uint32']());break;case 0x2:_0x122129['nodes']&&_0x122129['nodes']['length']||(_0x122129['nodes']=[]),_0x122129['nodes']['push'](v['Element']['decode'](_0x7c5a6e,_0x7c5a6e['uint32']()));break;case 0x3:_0x122129['shouldReceiveAttributes']=_0x7c5a6e['bool']();break;case 0x4:_0x122129['wasUndone']=_0x7c5a6e['bool']();break;default:_0x7c5a6e['skipType'](0x7&_0x156b87);}}return _0x122129;},_0x3ed20b['decodeDelimited']=function(_0x29a68b){return _0x29a68b instanceof j||(_0x29a68b=new j(_0x29a68b)),this['decode'](_0x29a68b,_0x29a68b['uint32']());},_0x3ed20b['verify']=function(_0x31e1ce){if('object'!=typeof _0x31e1ce||null===_0x31e1ce)return'object\x20expected';if(null!=_0x31e1ce['position']&&_0x31e1ce['hasOwnProperty']('position')){let _0x4974e6=v['Position']['verify'](_0x31e1ce['position']);if(_0x4974e6)return'position.'+_0x4974e6;}if(null!=_0x31e1ce['nodes']&&_0x31e1ce['hasOwnProperty']('nodes')){if(!Array['isArray'](_0x31e1ce['nodes']))return'nodes:\x20array\x20expected';for(let _0x478dc6=0x0;_0x478dc6<_0x31e1ce['nodes']['length'];++_0x478dc6){let _0x500d12=v['Element']['verify'](_0x31e1ce['nodes'][_0x478dc6]);if(_0x500d12)return'nodes.'+_0x500d12;}}return null!=_0x31e1ce['shouldReceiveAttributes']&&_0x31e1ce['hasOwnProperty']('shouldReceiveAttributes')&&'boolean'!=typeof _0x31e1ce['shouldReceiveAttributes']?'shouldReceiveAttributes:\x20boolean\x20expected':null!=_0x31e1ce['wasUndone']&&_0x31e1ce['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x31e1ce['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x3ed20b['fromObject']=function(_0x393a10){if(_0x393a10 instanceof v['InsertOperation'])return _0x393a10;let _0x5b505e=new v['InsertOperation']();if(null!=_0x393a10['position']){if('object'!=typeof _0x393a10['position'])throw TypeError('.InsertOperation.position:\x20object\x20expected');_0x5b505e['position']=v['Position']['fromObject'](_0x393a10['position']);}if(_0x393a10['nodes']){if(!Array['isArray'](_0x393a10['nodes']))throw TypeError('.InsertOperation.nodes:\x20array\x20expected');_0x5b505e['nodes']=[];for(let _0x1eabdc=0x0;_0x1eabdc<_0x393a10['nodes']['length'];++_0x1eabdc){if('object'!=typeof _0x393a10['nodes'][_0x1eabdc])throw TypeError('.InsertOperation.nodes:\x20object\x20expected');_0x5b505e['nodes'][_0x1eabdc]=v['Element']['fromObject'](_0x393a10['nodes'][_0x1eabdc]);}}return null!=_0x393a10['shouldReceiveAttributes']&&(_0x5b505e['shouldReceiveAttributes']=Boolean(_0x393a10['shouldReceiveAttributes'])),null!=_0x393a10['wasUndone']&&(_0x5b505e['wasUndone']=Boolean(_0x393a10['wasUndone'])),_0x5b505e;},_0x3ed20b['toObject']=function(_0x14542f,_0x4761b7){_0x4761b7||(_0x4761b7={});let _0x352bcb={};if((_0x4761b7['arrays']||_0x4761b7['defaults'])&&(_0x352bcb['nodes']=[]),_0x4761b7['defaults']&&(_0x352bcb['position']=null,_0x352bcb['shouldReceiveAttributes']=!0x1,_0x352bcb['wasUndone']=!0x1),null!=_0x14542f['position']&&_0x14542f['hasOwnProperty']('position')&&(_0x352bcb['position']=v['Position']['toObject'](_0x14542f['position'],_0x4761b7)),_0x14542f['nodes']&&_0x14542f['nodes']['length']){_0x352bcb['nodes']=[];for(let _0x395513=0x0;_0x395513<_0x14542f['nodes']['length'];++_0x395513)_0x352bcb['nodes'][_0x395513]=v['Element']['toObject'](_0x14542f['nodes'][_0x395513],_0x4761b7);}return null!=_0x14542f['shouldReceiveAttributes']&&_0x14542f['hasOwnProperty']('shouldReceiveAttributes')&&(_0x352bcb['shouldReceiveAttributes']=_0x14542f['shouldReceiveAttributes']),null!=_0x14542f['wasUndone']&&_0x14542f['hasOwnProperty']('wasUndone')&&(_0x352bcb['wasUndone']=_0x14542f['wasUndone']),_0x352bcb;},_0x3ed20b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,_0xa5d20['util']['toJSONOptions']);},_0x3ed20b['getTypeUrl']=function(_0x351e55){return void 0x0===_0x351e55&&(_0x351e55='type.googleapis.com'),_0x351e55+'/InsertOperation';},_0x3ed20b;})()),V=v['MarkerOperation']=((()=>{function _0x32aeaf(_0x3cf155){if(_0x3cf155){for(let _0x5d37fb=Object['keys'](_0x3cf155),_0x47d0c2=0x0;_0x47d0c2<_0x5d37fb['length'];++_0x47d0c2)null!=_0x3cf155[_0x5d37fb[_0x47d0c2]]&&(this[_0x5d37fb[_0x47d0c2]]=_0x3cf155[_0x5d37fb[_0x47d0c2]]);}}return _0x32aeaf['prototype']['name']='',_0x32aeaf['prototype']['oldRange']=null,_0x32aeaf['prototype']['newRange']=null,_0x32aeaf['prototype']['affectsData']=!0x1,_0x32aeaf['prototype']['wasUndone']=!0x1,_0x32aeaf['create']=function(_0x1d105b){return new _0x32aeaf(_0x1d105b);},_0x32aeaf['encode']=function(_0x51f09c,_0x4c3850){return _0x4c3850||(_0x4c3850=y['create']()),null!=_0x51f09c['name']&&Object['hasOwnProperty']['call'](_0x51f09c,'name')&&_0x4c3850['uint32'](0xa)['string'](_0x51f09c['name']),null!=_0x51f09c['oldRange']&&Object['hasOwnProperty']['call'](_0x51f09c,'oldRange')&&v['Range']['encode'](_0x51f09c['oldRange'],_0x4c3850['uint32'](0x12)['fork']())['ldelim'](),null!=_0x51f09c['newRange']&&Object['hasOwnProperty']['call'](_0x51f09c,'newRange')&&v['Range']['encode'](_0x51f09c['newRange'],_0x4c3850['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x51f09c['affectsData']&&Object['hasOwnProperty']['call'](_0x51f09c,'affectsData')&&_0x4c3850['uint32'](0x20)['bool'](_0x51f09c['affectsData']),null!=_0x51f09c['wasUndone']&&Object['hasOwnProperty']['call'](_0x51f09c,'wasUndone')&&_0x4c3850['uint32'](0x28)['bool'](_0x51f09c['wasUndone']),_0x4c3850;},_0x32aeaf['encodeDelimited']=function(_0x38c1b6,_0x46cbda){return this['encode'](_0x38c1b6,_0x46cbda)['ldelim']();},_0x32aeaf['decode']=function(_0x1d494e,_0x345254){_0x1d494e instanceof j||(_0x1d494e=j['create'](_0x1d494e));let _0x665c91=void 0x0===_0x345254?_0x1d494e['len']:_0x1d494e['pos']+_0x345254,_0x254d9f=new v['MarkerOperation']();for(;_0x1d494e['pos']<_0x665c91;){let _0x4b83eb=_0x1d494e['uint32']();switch(_0x4b83eb>>>0x3){case 0x1:_0x254d9f['name']=_0x1d494e['string']();break;case 0x2:_0x254d9f['oldRange']=v['Range']['decode'](_0x1d494e,_0x1d494e['uint32']());break;case 0x3:_0x254d9f['newRange']=v['Range']['decode'](_0x1d494e,_0x1d494e['uint32']());break;case 0x4:_0x254d9f['affectsData']=_0x1d494e['bool']();break;case 0x5:_0x254d9f['wasUndone']=_0x1d494e['bool']();break;default:_0x1d494e['skipType'](0x7&_0x4b83eb);}}return _0x254d9f;},_0x32aeaf['decodeDelimited']=function(_0xc9f764){return _0xc9f764 instanceof j||(_0xc9f764=new j(_0xc9f764)),this['decode'](_0xc9f764,_0xc9f764['uint32']());},_0x32aeaf['verify']=function(_0x49498f){if('object'!=typeof _0x49498f||null===_0x49498f)return'object\x20expected';if(null!=_0x49498f['name']&&_0x49498f['hasOwnProperty']('name')&&!k['isString'](_0x49498f['name']))return'name:\x20string\x20expected';if(null!=_0x49498f['oldRange']&&_0x49498f['hasOwnProperty']('oldRange')){let _0x57f62c=v['Range']['verify'](_0x49498f['oldRange']);if(_0x57f62c)return'oldRange.'+_0x57f62c;}if(null!=_0x49498f['newRange']&&_0x49498f['hasOwnProperty']('newRange')){let _0x1e7505=v['Range']['verify'](_0x49498f['newRange']);if(_0x1e7505)return'newRange.'+_0x1e7505;}return null!=_0x49498f['affectsData']&&_0x49498f['hasOwnProperty']('affectsData')&&'boolean'!=typeof _0x49498f['affectsData']?'affectsData:\x20boolean\x20expected':null!=_0x49498f['wasUndone']&&_0x49498f['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x49498f['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x32aeaf['fromObject']=function(_0x37a9d3){if(_0x37a9d3 instanceof v['MarkerOperation'])return _0x37a9d3;let _0x4503ed=new v['MarkerOperation']();if(null!=_0x37a9d3['name']&&(_0x4503ed['name']=String(_0x37a9d3['name'])),null!=_0x37a9d3['oldRange']){if('object'!=typeof _0x37a9d3['oldRange'])throw TypeError('.MarkerOperation.oldRange:\x20object\x20expected');_0x4503ed['oldRange']=v['Range']['fromObject'](_0x37a9d3['oldRange']);}if(null!=_0x37a9d3['newRange']){if('object'!=typeof _0x37a9d3['newRange'])throw TypeError('.MarkerOperation.newRange:\x20object\x20expected');_0x4503ed['newRange']=v['Range']['fromObject'](_0x37a9d3['newRange']);}return null!=_0x37a9d3['affectsData']&&(_0x4503ed['affectsData']=Boolean(_0x37a9d3['affectsData'])),null!=_0x37a9d3['wasUndone']&&(_0x4503ed['wasUndone']=Boolean(_0x37a9d3['wasUndone'])),_0x4503ed;},_0x32aeaf['toObject']=function(_0x39d289,_0x5681cb){_0x5681cb||(_0x5681cb={});let _0x3beef5={};return _0x5681cb['defaults']&&(_0x3beef5['name']='',_0x3beef5['oldRange']=null,_0x3beef5['newRange']=null,_0x3beef5['affectsData']=!0x1,_0x3beef5['wasUndone']=!0x1),null!=_0x39d289['name']&&_0x39d289['hasOwnProperty']('name')&&(_0x3beef5['name']=_0x39d289['name']),null!=_0x39d289['oldRange']&&_0x39d289['hasOwnProperty']('oldRange')&&(_0x3beef5['oldRange']=v['Range']['toObject'](_0x39d289['oldRange'],_0x5681cb)),null!=_0x39d289['newRange']&&_0x39d289['hasOwnProperty']('newRange')&&(_0x3beef5['newRange']=v['Range']['toObject'](_0x39d289['newRange'],_0x5681cb)),null!=_0x39d289['affectsData']&&_0x39d289['hasOwnProperty']('affectsData')&&(_0x3beef5['affectsData']=_0x39d289['affectsData']),null!=_0x39d289['wasUndone']&&_0x39d289['hasOwnProperty']('wasUndone')&&(_0x3beef5['wasUndone']=_0x39d289['wasUndone']),_0x3beef5;},_0x32aeaf['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,_0xa5d20['util']['toJSONOptions']);},_0x32aeaf['getTypeUrl']=function(_0x5a5fc4){return void 0x0===_0x5a5fc4&&(_0x5a5fc4='type.googleapis.com'),_0x5a5fc4+'/MarkerOperation';},_0x32aeaf;})()),S=v['MergeOperation']=((()=>{function _0x4d8c31(_0x3d5d00){if(_0x3d5d00){for(let _0x1c1b39=Object['keys'](_0x3d5d00),_0x586bcd=0x0;_0x586bcd<_0x1c1b39['length'];++_0x586bcd)null!=_0x3d5d00[_0x1c1b39[_0x586bcd]]&&(this[_0x1c1b39[_0x586bcd]]=_0x3d5d00[_0x1c1b39[_0x586bcd]]);}}return _0x4d8c31['prototype']['sourcePosition']=null,_0x4d8c31['prototype']['targetPosition']=null,_0x4d8c31['prototype']['graveyardPosition']=null,_0x4d8c31['prototype']['howMany']=0x0,_0x4d8c31['prototype']['wasUndone']=!0x1,_0x4d8c31['create']=function(_0x128783){return new _0x4d8c31(_0x128783);},_0x4d8c31['encode']=function(_0x3b1055,_0x446482){return _0x446482||(_0x446482=y['create']()),null!=_0x3b1055['sourcePosition']&&Object['hasOwnProperty']['call'](_0x3b1055,'sourcePosition')&&v['Position']['encode'](_0x3b1055['sourcePosition'],_0x446482['uint32'](0xa)['fork']())['ldelim'](),null!=_0x3b1055['targetPosition']&&Object['hasOwnProperty']['call'](_0x3b1055,'targetPosition')&&v['Position']['encode'](_0x3b1055['targetPosition'],_0x446482['uint32'](0x12)['fork']())['ldelim'](),null!=_0x3b1055['graveyardPosition']&&Object['hasOwnProperty']['call'](_0x3b1055,'graveyardPosition')&&v['Position']['encode'](_0x3b1055['graveyardPosition'],_0x446482['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x3b1055['howMany']&&Object['hasOwnProperty']['call'](_0x3b1055,'howMany')&&_0x446482['uint32'](0x20)['uint32'](_0x3b1055['howMany']),null!=_0x3b1055['wasUndone']&&Object['hasOwnProperty']['call'](_0x3b1055,'wasUndone')&&_0x446482['uint32'](0x28)['bool'](_0x3b1055['wasUndone']),_0x446482;},_0x4d8c31['encodeDelimited']=function(_0x5ca2c0,_0x550082){return this['encode'](_0x5ca2c0,_0x550082)['ldelim']();},_0x4d8c31['decode']=function(_0xdc1ce7,_0xecc0ef){_0xdc1ce7 instanceof j||(_0xdc1ce7=j['create'](_0xdc1ce7));let _0x1b6f24=void 0x0===_0xecc0ef?_0xdc1ce7['len']:_0xdc1ce7['pos']+_0xecc0ef,_0x4e8f92=new v['MergeOperation']();for(;_0xdc1ce7['pos']<_0x1b6f24;){let _0x31af46=_0xdc1ce7['uint32']();switch(_0x31af46>>>0x3){case 0x1:_0x4e8f92['sourcePosition']=v['Position']['decode'](_0xdc1ce7,_0xdc1ce7['uint32']());break;case 0x2:_0x4e8f92['targetPosition']=v['Position']['decode'](_0xdc1ce7,_0xdc1ce7['uint32']());break;case 0x3:_0x4e8f92['graveyardPosition']=v['Position']['decode'](_0xdc1ce7,_0xdc1ce7['uint32']());break;case 0x4:_0x4e8f92['howMany']=_0xdc1ce7['uint32']();break;case 0x5:_0x4e8f92['wasUndone']=_0xdc1ce7['bool']();break;default:_0xdc1ce7['skipType'](0x7&_0x31af46);}}return _0x4e8f92;},_0x4d8c31['decodeDelimited']=function(_0x210e54){return _0x210e54 instanceof j||(_0x210e54=new j(_0x210e54)),this['decode'](_0x210e54,_0x210e54['uint32']());},_0x4d8c31['verify']=function(_0x487c82){if('object'!=typeof _0x487c82||null===_0x487c82)return'object\x20expected';if(null!=_0x487c82['sourcePosition']&&_0x487c82['hasOwnProperty']('sourcePosition')){let _0xef2f0d=v['Position']['verify'](_0x487c82['sourcePosition']);if(_0xef2f0d)return'sourcePosition.'+_0xef2f0d;}if(null!=_0x487c82['targetPosition']&&_0x487c82['hasOwnProperty']('targetPosition')){let _0x1fba28=v['Position']['verify'](_0x487c82['targetPosition']);if(_0x1fba28)return'targetPosition.'+_0x1fba28;}if(null!=_0x487c82['graveyardPosition']&&_0x487c82['hasOwnProperty']('graveyardPosition')){let _0x4344a4=v['Position']['verify'](_0x487c82['graveyardPosition']);if(_0x4344a4)return'graveyardPosition.'+_0x4344a4;}return null!=_0x487c82['howMany']&&_0x487c82['hasOwnProperty']('howMany')&&!k['isInteger'](_0x487c82['howMany'])?'howMany:\x20integer\x20expected':null!=_0x487c82['wasUndone']&&_0x487c82['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x487c82['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x4d8c31['fromObject']=function(_0x2659c6){if(_0x2659c6 instanceof v['MergeOperation'])return _0x2659c6;let _0x4e56b2=new v['MergeOperation']();if(null!=_0x2659c6['sourcePosition']){if('object'!=typeof _0x2659c6['sourcePosition'])throw TypeError('.MergeOperation.sourcePosition:\x20object\x20expected');_0x4e56b2['sourcePosition']=v['Position']['fromObject'](_0x2659c6['sourcePosition']);}if(null!=_0x2659c6['targetPosition']){if('object'!=typeof _0x2659c6['targetPosition'])throw TypeError('.MergeOperation.targetPosition:\x20object\x20expected');_0x4e56b2['targetPosition']=v['Position']['fromObject'](_0x2659c6['targetPosition']);}if(null!=_0x2659c6['graveyardPosition']){if('object'!=typeof _0x2659c6['graveyardPosition'])throw TypeError('.MergeOperation.graveyardPosition:\x20object\x20expected');_0x4e56b2['graveyardPosition']=v['Position']['fromObject'](_0x2659c6['graveyardPosition']);}return null!=_0x2659c6['howMany']&&(_0x4e56b2['howMany']=_0x2659c6['howMany']>>>0x0),null!=_0x2659c6['wasUndone']&&(_0x4e56b2['wasUndone']=Boolean(_0x2659c6['wasUndone'])),_0x4e56b2;},_0x4d8c31['toObject']=function(_0x4ed65d,_0x972d32){_0x972d32||(_0x972d32={});let _0x5e8301={};return _0x972d32['defaults']&&(_0x5e8301['sourcePosition']=null,_0x5e8301['targetPosition']=null,_0x5e8301['graveyardPosition']=null,_0x5e8301['howMany']=0x0,_0x5e8301['wasUndone']=!0x1),null!=_0x4ed65d['sourcePosition']&&_0x4ed65d['hasOwnProperty']('sourcePosition')&&(_0x5e8301['sourcePosition']=v['Position']['toObject'](_0x4ed65d['sourcePosition'],_0x972d32)),null!=_0x4ed65d['targetPosition']&&_0x4ed65d['hasOwnProperty']('targetPosition')&&(_0x5e8301['targetPosition']=v['Position']['toObject'](_0x4ed65d['targetPosition'],_0x972d32)),null!=_0x4ed65d['graveyardPosition']&&_0x4ed65d['hasOwnProperty']('graveyardPosition')&&(_0x5e8301['graveyardPosition']=v['Position']['toObject'](_0x4ed65d['graveyardPosition'],_0x972d32)),null!=_0x4ed65d['howMany']&&_0x4ed65d['hasOwnProperty']('howMany')&&(_0x5e8301['howMany']=_0x4ed65d['howMany']),null!=_0x4ed65d['wasUndone']&&_0x4ed65d['hasOwnProperty']('wasUndone')&&(_0x5e8301['wasUndone']=_0x4ed65d['wasUndone']),_0x5e8301;},_0x4d8c31['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,_0xa5d20['util']['toJSONOptions']);},_0x4d8c31['getTypeUrl']=function(_0x11a117){return void 0x0===_0x11a117&&(_0x11a117='type.googleapis.com'),_0x11a117+'/MergeOperation';},_0x4d8c31;})()),U=v['MoveOperation']=((()=>{function _0x3fc9c2(_0x4868f6){if(_0x4868f6){for(let _0x8e0af=Object['keys'](_0x4868f6),_0x5dd872=0x0;_0x5dd872<_0x8e0af['length'];++_0x5dd872)null!=_0x4868f6[_0x8e0af[_0x5dd872]]&&(this[_0x8e0af[_0x5dd872]]=_0x4868f6[_0x8e0af[_0x5dd872]]);}}return _0x3fc9c2['prototype']['sourcePosition']=null,_0x3fc9c2['prototype']['howMany']=0x0,_0x3fc9c2['prototype']['targetPosition']=null,_0x3fc9c2['prototype']['wasUndone']=!0x1,_0x3fc9c2['create']=function(_0x181c14){return new _0x3fc9c2(_0x181c14);},_0x3fc9c2['encode']=function(_0x3d839e,_0x59bafb){return _0x59bafb||(_0x59bafb=y['create']()),null!=_0x3d839e['sourcePosition']&&Object['hasOwnProperty']['call'](_0x3d839e,'sourcePosition')&&v['Position']['encode'](_0x3d839e['sourcePosition'],_0x59bafb['uint32'](0xa)['fork']())['ldelim'](),null!=_0x3d839e['howMany']&&Object['hasOwnProperty']['call'](_0x3d839e,'howMany')&&_0x59bafb['uint32'](0x10)['uint32'](_0x3d839e['howMany']),null!=_0x3d839e['targetPosition']&&Object['hasOwnProperty']['call'](_0x3d839e,'targetPosition')&&v['Position']['encode'](_0x3d839e['targetPosition'],_0x59bafb['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x3d839e['wasUndone']&&Object['hasOwnProperty']['call'](_0x3d839e,'wasUndone')&&_0x59bafb['uint32'](0x20)['bool'](_0x3d839e['wasUndone']),_0x59bafb;},_0x3fc9c2['encodeDelimited']=function(_0x20b717,_0x50c5e4){return this['encode'](_0x20b717,_0x50c5e4)['ldelim']();},_0x3fc9c2['decode']=function(_0x442585,_0x43077b){_0x442585 instanceof j||(_0x442585=j['create'](_0x442585));let _0x4e5005=void 0x0===_0x43077b?_0x442585['len']:_0x442585['pos']+_0x43077b,_0x19407f=new v['MoveOperation']();for(;_0x442585['pos']<_0x4e5005;){let _0x770818=_0x442585['uint32']();switch(_0x770818>>>0x3){case 0x1:_0x19407f['sourcePosition']=v['Position']['decode'](_0x442585,_0x442585['uint32']());break;case 0x2:_0x19407f['howMany']=_0x442585['uint32']();break;case 0x3:_0x19407f['targetPosition']=v['Position']['decode'](_0x442585,_0x442585['uint32']());break;case 0x4:_0x19407f['wasUndone']=_0x442585['bool']();break;default:_0x442585['skipType'](0x7&_0x770818);}}return _0x19407f;},_0x3fc9c2['decodeDelimited']=function(_0x3d18b4){return _0x3d18b4 instanceof j||(_0x3d18b4=new j(_0x3d18b4)),this['decode'](_0x3d18b4,_0x3d18b4['uint32']());},_0x3fc9c2['verify']=function(_0x571383){if('object'!=typeof _0x571383||null===_0x571383)return'object\x20expected';if(null!=_0x571383['sourcePosition']&&_0x571383['hasOwnProperty']('sourcePosition')){let _0x202b6f=v['Position']['verify'](_0x571383['sourcePosition']);if(_0x202b6f)return'sourcePosition.'+_0x202b6f;}if(null!=_0x571383['howMany']&&_0x571383['hasOwnProperty']('howMany')&&!k['isInteger'](_0x571383['howMany']))return'howMany:\x20integer\x20expected';if(null!=_0x571383['targetPosition']&&_0x571383['hasOwnProperty']('targetPosition')){let _0x3291c0=v['Position']['verify'](_0x571383['targetPosition']);if(_0x3291c0)return'targetPosition.'+_0x3291c0;}return null!=_0x571383['wasUndone']&&_0x571383['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x571383['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x3fc9c2['fromObject']=function(_0x422230){if(_0x422230 instanceof v['MoveOperation'])return _0x422230;let _0x3694f1=new v['MoveOperation']();if(null!=_0x422230['sourcePosition']){if('object'!=typeof _0x422230['sourcePosition'])throw TypeError('.MoveOperation.sourcePosition:\x20object\x20expected');_0x3694f1['sourcePosition']=v['Position']['fromObject'](_0x422230['sourcePosition']);}if(null!=_0x422230['howMany']&&(_0x3694f1['howMany']=_0x422230['howMany']>>>0x0),null!=_0x422230['targetPosition']){if('object'!=typeof _0x422230['targetPosition'])throw TypeError('.MoveOperation.targetPosition:\x20object\x20expected');_0x3694f1['targetPosition']=v['Position']['fromObject'](_0x422230['targetPosition']);}return null!=_0x422230['wasUndone']&&(_0x3694f1['wasUndone']=Boolean(_0x422230['wasUndone'])),_0x3694f1;},_0x3fc9c2['toObject']=function(_0x12a239,_0x439a79){_0x439a79||(_0x439a79={});let _0x160ec4={};return _0x439a79['defaults']&&(_0x160ec4['sourcePosition']=null,_0x160ec4['howMany']=0x0,_0x160ec4['targetPosition']=null,_0x160ec4['wasUndone']=!0x1),null!=_0x12a239['sourcePosition']&&_0x12a239['hasOwnProperty']('sourcePosition')&&(_0x160ec4['sourcePosition']=v['Position']['toObject'](_0x12a239['sourcePosition'],_0x439a79)),null!=_0x12a239['howMany']&&_0x12a239['hasOwnProperty']('howMany')&&(_0x160ec4['howMany']=_0x12a239['howMany']),null!=_0x12a239['targetPosition']&&_0x12a239['hasOwnProperty']('targetPosition')&&(_0x160ec4['targetPosition']=v['Position']['toObject'](_0x12a239['targetPosition'],_0x439a79)),null!=_0x12a239['wasUndone']&&_0x12a239['hasOwnProperty']('wasUndone')&&(_0x160ec4['wasUndone']=_0x12a239['wasUndone']),_0x160ec4;},_0x3fc9c2['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,_0xa5d20['util']['toJSONOptions']);},_0x3fc9c2['getTypeUrl']=function(_0x3326a6){return void 0x0===_0x3326a6&&(_0x3326a6='type.googleapis.com'),_0x3326a6+'/MoveOperation';},_0x3fc9c2;})()),A=v['RenameOperation']=((()=>{function _0x2d1559(_0x6d5f51){if(_0x6d5f51){for(let _0x113a6b=Object['keys'](_0x6d5f51),_0x383839=0x0;_0x383839<_0x113a6b['length'];++_0x383839)null!=_0x6d5f51[_0x113a6b[_0x383839]]&&(this[_0x113a6b[_0x383839]]=_0x6d5f51[_0x113a6b[_0x383839]]);}}return _0x2d1559['prototype']['position']=null,_0x2d1559['prototype']['oldName']='',_0x2d1559['prototype']['newName']='',_0x2d1559['prototype']['wasUndone']=!0x1,_0x2d1559['create']=function(_0x3bfd2d){return new _0x2d1559(_0x3bfd2d);},_0x2d1559['encode']=function(_0x10ef94,_0x5e1a28){return _0x5e1a28||(_0x5e1a28=y['create']()),null!=_0x10ef94['position']&&Object['hasOwnProperty']['call'](_0x10ef94,'position')&&v['Position']['encode'](_0x10ef94['position'],_0x5e1a28['uint32'](0xa)['fork']())['ldelim'](),null!=_0x10ef94['oldName']&&Object['hasOwnProperty']['call'](_0x10ef94,'oldName')&&_0x5e1a28['uint32'](0x12)['string'](_0x10ef94['oldName']),null!=_0x10ef94['newName']&&Object['hasOwnProperty']['call'](_0x10ef94,'newName')&&_0x5e1a28['uint32'](0x1a)['string'](_0x10ef94['newName']),null!=_0x10ef94['wasUndone']&&Object['hasOwnProperty']['call'](_0x10ef94,'wasUndone')&&_0x5e1a28['uint32'](0x20)['bool'](_0x10ef94['wasUndone']),_0x5e1a28;},_0x2d1559['encodeDelimited']=function(_0x193456,_0x31f335){return this['encode'](_0x193456,_0x31f335)['ldelim']();},_0x2d1559['decode']=function(_0x5407f6,_0x2236d2){_0x5407f6 instanceof j||(_0x5407f6=j['create'](_0x5407f6));let _0xb2de3e=void 0x0===_0x2236d2?_0x5407f6['len']:_0x5407f6['pos']+_0x2236d2,_0x491911=new v['RenameOperation']();for(;_0x5407f6['pos']<_0xb2de3e;){let _0x5200f1=_0x5407f6['uint32']();switch(_0x5200f1>>>0x3){case 0x1:_0x491911['position']=v['Position']['decode'](_0x5407f6,_0x5407f6['uint32']());break;case 0x2:_0x491911['oldName']=_0x5407f6['string']();break;case 0x3:_0x491911['newName']=_0x5407f6['string']();break;case 0x4:_0x491911['wasUndone']=_0x5407f6['bool']();break;default:_0x5407f6['skipType'](0x7&_0x5200f1);}}return _0x491911;},_0x2d1559['decodeDelimited']=function(_0x2da338){return _0x2da338 instanceof j||(_0x2da338=new j(_0x2da338)),this['decode'](_0x2da338,_0x2da338['uint32']());},_0x2d1559['verify']=function(_0x3803c3){if('object'!=typeof _0x3803c3||null===_0x3803c3)return'object\x20expected';if(null!=_0x3803c3['position']&&_0x3803c3['hasOwnProperty']('position')){let _0x1fdefe=v['Position']['verify'](_0x3803c3['position']);if(_0x1fdefe)return'position.'+_0x1fdefe;}return null!=_0x3803c3['oldName']&&_0x3803c3['hasOwnProperty']('oldName')&&!k['isString'](_0x3803c3['oldName'])?'oldName:\x20string\x20expected':null!=_0x3803c3['newName']&&_0x3803c3['hasOwnProperty']('newName')&&!k['isString'](_0x3803c3['newName'])?'newName:\x20string\x20expected':null!=_0x3803c3['wasUndone']&&_0x3803c3['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x3803c3['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x2d1559['fromObject']=function(_0x507a53){if(_0x507a53 instanceof v['RenameOperation'])return _0x507a53;let _0x468207=new v['RenameOperation']();if(null!=_0x507a53['position']){if('object'!=typeof _0x507a53['position'])throw TypeError('.RenameOperation.position:\x20object\x20expected');_0x468207['position']=v['Position']['fromObject'](_0x507a53['position']);}return null!=_0x507a53['oldName']&&(_0x468207['oldName']=String(_0x507a53['oldName'])),null!=_0x507a53['newName']&&(_0x468207['newName']=String(_0x507a53['newName'])),null!=_0x507a53['wasUndone']&&(_0x468207['wasUndone']=Boolean(_0x507a53['wasUndone'])),_0x468207;},_0x2d1559['toObject']=function(_0x51b8f7,_0x577e4a){_0x577e4a||(_0x577e4a={});let _0x48bf60={};return _0x577e4a['defaults']&&(_0x48bf60['position']=null,_0x48bf60['oldName']='',_0x48bf60['newName']='',_0x48bf60['wasUndone']=!0x1),null!=_0x51b8f7['position']&&_0x51b8f7['hasOwnProperty']('position')&&(_0x48bf60['position']=v['Position']['toObject'](_0x51b8f7['position'],_0x577e4a)),null!=_0x51b8f7['oldName']&&_0x51b8f7['hasOwnProperty']('oldName')&&(_0x48bf60['oldName']=_0x51b8f7['oldName']),null!=_0x51b8f7['newName']&&_0x51b8f7['hasOwnProperty']('newName')&&(_0x48bf60['newName']=_0x51b8f7['newName']),null!=_0x51b8f7['wasUndone']&&_0x51b8f7['hasOwnProperty']('wasUndone')&&(_0x48bf60['wasUndone']=_0x51b8f7['wasUndone']),_0x48bf60;},_0x2d1559['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,_0xa5d20['util']['toJSONOptions']);},_0x2d1559['getTypeUrl']=function(_0x50f505){return void 0x0===_0x50f505&&(_0x50f505='type.googleapis.com'),_0x50f505+'/RenameOperation';},_0x2d1559;})()),N=v['RootAttributeOperation']=((()=>{function _0x88f8e8(_0x152425){if(_0x152425){for(let _0x885350=Object['keys'](_0x152425),_0x16ad51=0x0;_0x16ad51<_0x885350['length'];++_0x16ad51)null!=_0x152425[_0x885350[_0x16ad51]]&&(this[_0x885350[_0x16ad51]]=_0x152425[_0x885350[_0x16ad51]]);}}return _0x88f8e8['prototype']['root']='',_0x88f8e8['prototype']['key']='',_0x88f8e8['prototype']['oldValueBoolean']=!0x1,_0x88f8e8['prototype']['oldValueJson']='',_0x88f8e8['prototype']['newValueBoolean']=!0x1,_0x88f8e8['prototype']['newValueJson']='',_0x88f8e8['prototype']['wasUndone']=!0x1,_0x88f8e8['create']=function(_0x1876a4){return new _0x88f8e8(_0x1876a4);},_0x88f8e8['encode']=function(_0x55a342,_0x50dfcf){return _0x50dfcf||(_0x50dfcf=y['create']()),null!=_0x55a342['root']&&Object['hasOwnProperty']['call'](_0x55a342,'root')&&_0x50dfcf['uint32'](0xa)['string'](_0x55a342['root']),null!=_0x55a342['key']&&Object['hasOwnProperty']['call'](_0x55a342,'key')&&_0x50dfcf['uint32'](0x12)['string'](_0x55a342['key']),null!=_0x55a342['oldValueBoolean']&&Object['hasOwnProperty']['call'](_0x55a342,'oldValueBoolean')&&_0x50dfcf['uint32'](0x18)['bool'](_0x55a342['oldValueBoolean']),null!=_0x55a342['oldValueJson']&&Object['hasOwnProperty']['call'](_0x55a342,'oldValueJson')&&_0x50dfcf['uint32'](0x22)['string'](_0x55a342['oldValueJson']),null!=_0x55a342['newValueBoolean']&&Object['hasOwnProperty']['call'](_0x55a342,'newValueBoolean')&&_0x50dfcf['uint32'](0x28)['bool'](_0x55a342['newValueBoolean']),null!=_0x55a342['newValueJson']&&Object['hasOwnProperty']['call'](_0x55a342,'newValueJson')&&_0x50dfcf['uint32'](0x32)['string'](_0x55a342['newValueJson']),null!=_0x55a342['wasUndone']&&Object['hasOwnProperty']['call'](_0x55a342,'wasUndone')&&_0x50dfcf['uint32'](0x38)['bool'](_0x55a342['wasUndone']),_0x50dfcf;},_0x88f8e8['encodeDelimited']=function(_0xdcea01,_0x4d677c){return this['encode'](_0xdcea01,_0x4d677c)['ldelim']();},_0x88f8e8['decode']=function(_0x408f2a,_0x2b39d3){_0x408f2a instanceof j||(_0x408f2a=j['create'](_0x408f2a));let _0x9a40ab=void 0x0===_0x2b39d3?_0x408f2a['len']:_0x408f2a['pos']+_0x2b39d3,_0x31b65c=new v['RootAttributeOperation']();for(;_0x408f2a['pos']<_0x9a40ab;){let _0x42c816=_0x408f2a['uint32']();switch(_0x42c816>>>0x3){case 0x1:_0x31b65c['root']=_0x408f2a['string']();break;case 0x2:_0x31b65c['key']=_0x408f2a['string']();break;case 0x3:_0x31b65c['oldValueBoolean']=_0x408f2a['bool']();break;case 0x4:_0x31b65c['oldValueJson']=_0x408f2a['string']();break;case 0x5:_0x31b65c['newValueBoolean']=_0x408f2a['bool']();break;case 0x6:_0x31b65c['newValueJson']=_0x408f2a['string']();break;case 0x7:_0x31b65c['wasUndone']=_0x408f2a['bool']();break;default:_0x408f2a['skipType'](0x7&_0x42c816);}}return _0x31b65c;},_0x88f8e8['decodeDelimited']=function(_0x3987aa){return _0x3987aa instanceof j||(_0x3987aa=new j(_0x3987aa)),this['decode'](_0x3987aa,_0x3987aa['uint32']());},_0x88f8e8['verify']=function(_0x445203){return'object'!=typeof _0x445203||null===_0x445203?'object\x20expected':null!=_0x445203['root']&&_0x445203['hasOwnProperty']('root')&&!k['isString'](_0x445203['root'])?'root:\x20string\x20expected':null!=_0x445203['key']&&_0x445203['hasOwnProperty']('key')&&!k['isString'](_0x445203['key'])?'key:\x20string\x20expected':null!=_0x445203['oldValueBoolean']&&_0x445203['hasOwnProperty']('oldValueBoolean')&&'boolean'!=typeof _0x445203['oldValueBoolean']?'oldValueBoolean:\x20boolean\x20expected':null!=_0x445203['oldValueJson']&&_0x445203['hasOwnProperty']('oldValueJson')&&!k['isString'](_0x445203['oldValueJson'])?'oldValueJson:\x20string\x20expected':null!=_0x445203['newValueBoolean']&&_0x445203['hasOwnProperty']('newValueBoolean')&&'boolean'!=typeof _0x445203['newValueBoolean']?'newValueBoolean:\x20boolean\x20expected':null!=_0x445203['newValueJson']&&_0x445203['hasOwnProperty']('newValueJson')&&!k['isString'](_0x445203['newValueJson'])?'newValueJson:\x20string\x20expected':null!=_0x445203['wasUndone']&&_0x445203['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x445203['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x88f8e8['fromObject']=function(_0x16d75c){if(_0x16d75c instanceof v['RootAttributeOperation'])return _0x16d75c;let _0x367448=new v['RootAttributeOperation']();return null!=_0x16d75c['root']&&(_0x367448['root']=String(_0x16d75c['root'])),null!=_0x16d75c['key']&&(_0x367448['key']=String(_0x16d75c['key'])),null!=_0x16d75c['oldValueBoolean']&&(_0x367448['oldValueBoolean']=Boolean(_0x16d75c['oldValueBoolean'])),null!=_0x16d75c['oldValueJson']&&(_0x367448['oldValueJson']=String(_0x16d75c['oldValueJson'])),null!=_0x16d75c['newValueBoolean']&&(_0x367448['newValueBoolean']=Boolean(_0x16d75c['newValueBoolean'])),null!=_0x16d75c['newValueJson']&&(_0x367448['newValueJson']=String(_0x16d75c['newValueJson'])),null!=_0x16d75c['wasUndone']&&(_0x367448['wasUndone']=Boolean(_0x16d75c['wasUndone'])),_0x367448;},_0x88f8e8['toObject']=function(_0x55bb75,_0x264b2b){_0x264b2b||(_0x264b2b={});let _0x31d090={};return _0x264b2b['defaults']&&(_0x31d090['root']='',_0x31d090['key']='',_0x31d090['oldValueBoolean']=!0x1,_0x31d090['oldValueJson']='',_0x31d090['newValueBoolean']=!0x1,_0x31d090['newValueJson']='',_0x31d090['wasUndone']=!0x1),null!=_0x55bb75['root']&&_0x55bb75['hasOwnProperty']('root')&&(_0x31d090['root']=_0x55bb75['root']),null!=_0x55bb75['key']&&_0x55bb75['hasOwnProperty']('key')&&(_0x31d090['key']=_0x55bb75['key']),null!=_0x55bb75['oldValueBoolean']&&_0x55bb75['hasOwnProperty']('oldValueBoolean')&&(_0x31d090['oldValueBoolean']=_0x55bb75['oldValueBoolean']),null!=_0x55bb75['oldValueJson']&&_0x55bb75['hasOwnProperty']('oldValueJson')&&(_0x31d090['oldValueJson']=_0x55bb75['oldValueJson']),null!=_0x55bb75['newValueBoolean']&&_0x55bb75['hasOwnProperty']('newValueBoolean')&&(_0x31d090['newValueBoolean']=_0x55bb75['newValueBoolean']),null!=_0x55bb75['newValueJson']&&_0x55bb75['hasOwnProperty']('newValueJson')&&(_0x31d090['newValueJson']=_0x55bb75['newValueJson']),null!=_0x55bb75['wasUndone']&&_0x55bb75['hasOwnProperty']('wasUndone')&&(_0x31d090['wasUndone']=_0x55bb75['wasUndone']),_0x31d090;},_0x88f8e8['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,_0xa5d20['util']['toJSONOptions']);},_0x88f8e8['getTypeUrl']=function(_0x12d73a){return void 0x0===_0x12d73a&&(_0x12d73a='type.googleapis.com'),_0x12d73a+'/RootAttributeOperation';},_0x88f8e8;})()),R=v['RootOperation']=((()=>{function _0x501943(_0x55b06e){if(_0x55b06e){for(let _0x576085=Object['keys'](_0x55b06e),_0x351398=0x0;_0x351398<_0x576085['length'];++_0x351398)null!=_0x55b06e[_0x576085[_0x351398]]&&(this[_0x576085[_0x351398]]=_0x55b06e[_0x576085[_0x351398]]);}}return _0x501943['prototype']['rootName']='',_0x501943['prototype']['elementName']='',_0x501943['prototype']['isAdd']=!0x1,_0x501943['prototype']['wasUndone']=!0x1,_0x501943['create']=function(_0x51d9a1){return new _0x501943(_0x51d9a1);},_0x501943['encode']=function(_0x30f636,_0x226a8e){return _0x226a8e||(_0x226a8e=y['create']()),null!=_0x30f636['rootName']&&Object['hasOwnProperty']['call'](_0x30f636,'rootName')&&_0x226a8e['uint32'](0xa)['string'](_0x30f636['rootName']),null!=_0x30f636['elementName']&&Object['hasOwnProperty']['call'](_0x30f636,'elementName')&&_0x226a8e['uint32'](0x12)['string'](_0x30f636['elementName']),null!=_0x30f636['isAdd']&&Object['hasOwnProperty']['call'](_0x30f636,'isAdd')&&_0x226a8e['uint32'](0x18)['bool'](_0x30f636['isAdd']),null!=_0x30f636['wasUndone']&&Object['hasOwnProperty']['call'](_0x30f636,'wasUndone')&&_0x226a8e['uint32'](0x20)['bool'](_0x30f636['wasUndone']),_0x226a8e;},_0x501943['encodeDelimited']=function(_0x4b3837,_0x17c364){return this['encode'](_0x4b3837,_0x17c364)['ldelim']();},_0x501943['decode']=function(_0x5dda7d,_0x267dfe){_0x5dda7d instanceof j||(_0x5dda7d=j['create'](_0x5dda7d));let _0x32e63a=void 0x0===_0x267dfe?_0x5dda7d['len']:_0x5dda7d['pos']+_0x267dfe,_0x310c8a=new v['RootOperation']();for(;_0x5dda7d['pos']<_0x32e63a;){let _0x49f743=_0x5dda7d['uint32']();switch(_0x49f743>>>0x3){case 0x1:_0x310c8a['rootName']=_0x5dda7d['string']();break;case 0x2:_0x310c8a['elementName']=_0x5dda7d['string']();break;case 0x3:_0x310c8a['isAdd']=_0x5dda7d['bool']();break;case 0x4:_0x310c8a['wasUndone']=_0x5dda7d['bool']();break;default:_0x5dda7d['skipType'](0x7&_0x49f743);}}return _0x310c8a;},_0x501943['decodeDelimited']=function(_0x2a34b0){return _0x2a34b0 instanceof j||(_0x2a34b0=new j(_0x2a34b0)),this['decode'](_0x2a34b0,_0x2a34b0['uint32']());},_0x501943['verify']=function(_0x4822c5){return'object'!=typeof _0x4822c5||null===_0x4822c5?'object\x20expected':null!=_0x4822c5['rootName']&&_0x4822c5['hasOwnProperty']('rootName')&&!k['isString'](_0x4822c5['rootName'])?'rootName:\x20string\x20expected':null!=_0x4822c5['elementName']&&_0x4822c5['hasOwnProperty']('elementName')&&!k['isString'](_0x4822c5['elementName'])?'elementName:\x20string\x20expected':null!=_0x4822c5['isAdd']&&_0x4822c5['hasOwnProperty']('isAdd')&&'boolean'!=typeof _0x4822c5['isAdd']?'isAdd:\x20boolean\x20expected':null!=_0x4822c5['wasUndone']&&_0x4822c5['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x4822c5['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x501943['fromObject']=function(_0x4550e3){if(_0x4550e3 instanceof v['RootOperation'])return _0x4550e3;let _0x3521ed=new v['RootOperation']();return null!=_0x4550e3['rootName']&&(_0x3521ed['rootName']=String(_0x4550e3['rootName'])),null!=_0x4550e3['elementName']&&(_0x3521ed['elementName']=String(_0x4550e3['elementName'])),null!=_0x4550e3['isAdd']&&(_0x3521ed['isAdd']=Boolean(_0x4550e3['isAdd'])),null!=_0x4550e3['wasUndone']&&(_0x3521ed['wasUndone']=Boolean(_0x4550e3['wasUndone'])),_0x3521ed;},_0x501943['toObject']=function(_0x3e1ce7,_0x51e585){_0x51e585||(_0x51e585={});let _0x165098={};return _0x51e585['defaults']&&(_0x165098['rootName']='',_0x165098['elementName']='',_0x165098['isAdd']=!0x1,_0x165098['wasUndone']=!0x1),null!=_0x3e1ce7['rootName']&&_0x3e1ce7['hasOwnProperty']('rootName')&&(_0x165098['rootName']=_0x3e1ce7['rootName']),null!=_0x3e1ce7['elementName']&&_0x3e1ce7['hasOwnProperty']('elementName')&&(_0x165098['elementName']=_0x3e1ce7['elementName']),null!=_0x3e1ce7['isAdd']&&_0x3e1ce7['hasOwnProperty']('isAdd')&&(_0x165098['isAdd']=_0x3e1ce7['isAdd']),null!=_0x3e1ce7['wasUndone']&&_0x3e1ce7['hasOwnProperty']('wasUndone')&&(_0x165098['wasUndone']=_0x3e1ce7['wasUndone']),_0x165098;},_0x501943['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,_0xa5d20['util']['toJSONOptions']);},_0x501943['getTypeUrl']=function(_0x2a65c4){return void 0x0===_0x2a65c4&&(_0x2a65c4='type.googleapis.com'),_0x2a65c4+'/RootOperation';},_0x501943;})()),E=v['SplitOperation']=((()=>{function _0xb465a2(_0x4cbb5c){if(_0x4cbb5c){for(let _0x52d090=Object['keys'](_0x4cbb5c),_0x2743a2=0x0;_0x2743a2<_0x52d090['length'];++_0x2743a2)null!=_0x4cbb5c[_0x52d090[_0x2743a2]]&&(this[_0x52d090[_0x2743a2]]=_0x4cbb5c[_0x52d090[_0x2743a2]]);}}return _0xb465a2['prototype']['splitPosition']=null,_0xb465a2['prototype']['graveyardPosition']=null,_0xb465a2['prototype']['howMany']=0x0,_0xb465a2['prototype']['insertionPosition']=null,_0xb465a2['prototype']['wasUndone']=!0x1,_0xb465a2['create']=function(_0x19e86d){return new _0xb465a2(_0x19e86d);},_0xb465a2['encode']=function(_0x3f6a80,_0x28ae1b){return _0x28ae1b||(_0x28ae1b=y['create']()),null!=_0x3f6a80['splitPosition']&&Object['hasOwnProperty']['call'](_0x3f6a80,'splitPosition')&&v['Position']['encode'](_0x3f6a80['splitPosition'],_0x28ae1b['uint32'](0xa)['fork']())['ldelim'](),null!=_0x3f6a80['graveyardPosition']&&Object['hasOwnProperty']['call'](_0x3f6a80,'graveyardPosition')&&v['Position']['encode'](_0x3f6a80['graveyardPosition'],_0x28ae1b['uint32'](0x12)['fork']())['ldelim'](),null!=_0x3f6a80['howMany']&&Object['hasOwnProperty']['call'](_0x3f6a80,'howMany')&&_0x28ae1b['uint32'](0x18)['uint32'](_0x3f6a80['howMany']),null!=_0x3f6a80['insertionPosition']&&Object['hasOwnProperty']['call'](_0x3f6a80,'insertionPosition')&&v['Position']['encode'](_0x3f6a80['insertionPosition'],_0x28ae1b['uint32'](0x22)['fork']())['ldelim'](),null!=_0x3f6a80['wasUndone']&&Object['hasOwnProperty']['call'](_0x3f6a80,'wasUndone')&&_0x28ae1b['uint32'](0x28)['bool'](_0x3f6a80['wasUndone']),_0x28ae1b;},_0xb465a2['encodeDelimited']=function(_0x5dc64e,_0x2b4bdc){return this['encode'](_0x5dc64e,_0x2b4bdc)['ldelim']();},_0xb465a2['decode']=function(_0x23d79a,_0x34f91a){_0x23d79a instanceof j||(_0x23d79a=j['create'](_0x23d79a));let _0xa06dd2=void 0x0===_0x34f91a?_0x23d79a['len']:_0x23d79a['pos']+_0x34f91a,_0x27a7cc=new v['SplitOperation']();for(;_0x23d79a['pos']<_0xa06dd2;){let _0x30db8c=_0x23d79a['uint32']();switch(_0x30db8c>>>0x3){case 0x1:_0x27a7cc['splitPosition']=v['Position']['decode'](_0x23d79a,_0x23d79a['uint32']());break;case 0x2:_0x27a7cc['graveyardPosition']=v['Position']['decode'](_0x23d79a,_0x23d79a['uint32']());break;case 0x3:_0x27a7cc['howMany']=_0x23d79a['uint32']();break;case 0x4:_0x27a7cc['insertionPosition']=v['Position']['decode'](_0x23d79a,_0x23d79a['uint32']());break;case 0x5:_0x27a7cc['wasUndone']=_0x23d79a['bool']();break;default:_0x23d79a['skipType'](0x7&_0x30db8c);}}return _0x27a7cc;},_0xb465a2['decodeDelimited']=function(_0x57cd36){return _0x57cd36 instanceof j||(_0x57cd36=new j(_0x57cd36)),this['decode'](_0x57cd36,_0x57cd36['uint32']());},_0xb465a2['verify']=function(_0x438030){if('object'!=typeof _0x438030||null===_0x438030)return'object\x20expected';if(null!=_0x438030['splitPosition']&&_0x438030['hasOwnProperty']('splitPosition')){let _0x5e6126=v['Position']['verify'](_0x438030['splitPosition']);if(_0x5e6126)return'splitPosition.'+_0x5e6126;}if(null!=_0x438030['graveyardPosition']&&_0x438030['hasOwnProperty']('graveyardPosition')){let _0x24967b=v['Position']['verify'](_0x438030['graveyardPosition']);if(_0x24967b)return'graveyardPosition.'+_0x24967b;}if(null!=_0x438030['howMany']&&_0x438030['hasOwnProperty']('howMany')&&!k['isInteger'](_0x438030['howMany']))return'howMany:\x20integer\x20expected';if(null!=_0x438030['insertionPosition']&&_0x438030['hasOwnProperty']('insertionPosition')){let _0x48010f=v['Position']['verify'](_0x438030['insertionPosition']);if(_0x48010f)return'insertionPosition.'+_0x48010f;}return null!=_0x438030['wasUndone']&&_0x438030['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x438030['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0xb465a2['fromObject']=function(_0x3543b3){if(_0x3543b3 instanceof v['SplitOperation'])return _0x3543b3;let _0x49122f=new v['SplitOperation']();if(null!=_0x3543b3['splitPosition']){if('object'!=typeof _0x3543b3['splitPosition'])throw TypeError('.SplitOperation.splitPosition:\x20object\x20expected');_0x49122f['splitPosition']=v['Position']['fromObject'](_0x3543b3['splitPosition']);}if(null!=_0x3543b3['graveyardPosition']){if('object'!=typeof _0x3543b3['graveyardPosition'])throw TypeError('.SplitOperation.graveyardPosition:\x20object\x20expected');_0x49122f['graveyardPosition']=v['Position']['fromObject'](_0x3543b3['graveyardPosition']);}if(null!=_0x3543b3['howMany']&&(_0x49122f['howMany']=_0x3543b3['howMany']>>>0x0),null!=_0x3543b3['insertionPosition']){if('object'!=typeof _0x3543b3['insertionPosition'])throw TypeError('.SplitOperation.insertionPosition:\x20object\x20expected');_0x49122f['insertionPosition']=v['Position']['fromObject'](_0x3543b3['insertionPosition']);}return null!=_0x3543b3['wasUndone']&&(_0x49122f['wasUndone']=Boolean(_0x3543b3['wasUndone'])),_0x49122f;},_0xb465a2['toObject']=function(_0x4fdbbc,_0x465323){_0x465323||(_0x465323={});let _0x31f29c={};return _0x465323['defaults']&&(_0x31f29c['splitPosition']=null,_0x31f29c['graveyardPosition']=null,_0x31f29c['howMany']=0x0,_0x31f29c['insertionPosition']=null,_0x31f29c['wasUndone']=!0x1),null!=_0x4fdbbc['splitPosition']&&_0x4fdbbc['hasOwnProperty']('splitPosition')&&(_0x31f29c['splitPosition']=v['Position']['toObject'](_0x4fdbbc['splitPosition'],_0x465323)),null!=_0x4fdbbc['graveyardPosition']&&_0x4fdbbc['hasOwnProperty']('graveyardPosition')&&(_0x31f29c['graveyardPosition']=v['Position']['toObject'](_0x4fdbbc['graveyardPosition'],_0x465323)),null!=_0x4fdbbc['howMany']&&_0x4fdbbc['hasOwnProperty']('howMany')&&(_0x31f29c['howMany']=_0x4fdbbc['howMany']),null!=_0x4fdbbc['insertionPosition']&&_0x4fdbbc['hasOwnProperty']('insertionPosition')&&(_0x31f29c['insertionPosition']=v['Position']['toObject'](_0x4fdbbc['insertionPosition'],_0x465323)),null!=_0x4fdbbc['wasUndone']&&_0x4fdbbc['hasOwnProperty']('wasUndone')&&(_0x31f29c['wasUndone']=_0x4fdbbc['wasUndone']),_0x31f29c;},_0xb465a2['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,_0xa5d20['util']['toJSONOptions']);},_0xb465a2['getTypeUrl']=function(_0x5a6eea){return void 0x0===_0x5a6eea&&(_0x5a6eea='type.googleapis.com'),_0x5a6eea+'/SplitOperation';},_0xb465a2;})()),T=v['Position']=((()=>{function _0xc54725(_0x16fc5c){if(this['path']=[],_0x16fc5c){for(let _0x32385f=Object['keys'](_0x16fc5c),_0x255e35=0x0;_0x255e35<_0x32385f['length'];++_0x255e35)null!=_0x16fc5c[_0x32385f[_0x255e35]]&&(this[_0x32385f[_0x255e35]]=_0x16fc5c[_0x32385f[_0x255e35]]);}}return _0xc54725['prototype']['root']='',_0xc54725['prototype']['rootMain']=!0x1,_0xc54725['prototype']['rootGraveyard']=!0x1,_0xc54725['prototype']['path']=k['emptyArray'],_0xc54725['prototype']['stickiness']='',_0xc54725['create']=function(_0x4fa81b){return new _0xc54725(_0x4fa81b);},_0xc54725['encode']=function(_0x141340,_0x2d8049){if(_0x2d8049||(_0x2d8049=y['create']()),null!=_0x141340['root']&&Object['hasOwnProperty']['call'](_0x141340,'root')&&_0x2d8049['uint32'](0xa)['string'](_0x141340['root']),null!=_0x141340['rootMain']&&Object['hasOwnProperty']['call'](_0x141340,'rootMain')&&_0x2d8049['uint32'](0x10)['bool'](_0x141340['rootMain']),null!=_0x141340['rootGraveyard']&&Object['hasOwnProperty']['call'](_0x141340,'rootGraveyard')&&_0x2d8049['uint32'](0x18)['bool'](_0x141340['rootGraveyard']),null!=_0x141340['path']&&_0x141340['path']['length']){_0x2d8049['uint32'](0x22)['fork']();for(let _0x339472=0x0;_0x339472<_0x141340['path']['length'];++_0x339472)_0x2d8049['uint32'](_0x141340['path'][_0x339472]);_0x2d8049['ldelim']();}return null!=_0x141340['stickiness']&&Object['hasOwnProperty']['call'](_0x141340,'stickiness')&&_0x2d8049['uint32'](0x2a)['string'](_0x141340['stickiness']),_0x2d8049;},_0xc54725['encodeDelimited']=function(_0x2e137c,_0x366916){return this['encode'](_0x2e137c,_0x366916)['ldelim']();},_0xc54725['decode']=function(_0x28315b,_0x5f5b9c){_0x28315b instanceof j||(_0x28315b=j['create'](_0x28315b));let _0x33654b=void 0x0===_0x5f5b9c?_0x28315b['len']:_0x28315b['pos']+_0x5f5b9c,_0x36058e=new v['Position']();for(;_0x28315b['pos']<_0x33654b;){let _0x4ad2a3=_0x28315b['uint32']();switch(_0x4ad2a3>>>0x3){case 0x1:_0x36058e['root']=_0x28315b['string']();break;case 0x2:_0x36058e['rootMain']=_0x28315b['bool']();break;case 0x3:_0x36058e['rootGraveyard']=_0x28315b['bool']();break;case 0x4:if(_0x36058e['path']&&_0x36058e['path']['length']||(_0x36058e['path']=[]),0x2==(0x7&_0x4ad2a3)){let _0x15b274=_0x28315b['uint32']()+_0x28315b['pos'];for(;_0x28315b['pos']<_0x15b274;)_0x36058e['path']['push'](_0x28315b['uint32']());}else _0x36058e['path']['push'](_0x28315b['uint32']());break;case 0x5:_0x36058e['stickiness']=_0x28315b['string']();break;default:_0x28315b['skipType'](0x7&_0x4ad2a3);}}return _0x36058e;},_0xc54725['decodeDelimited']=function(_0x2b8088){return _0x2b8088 instanceof j||(_0x2b8088=new j(_0x2b8088)),this['decode'](_0x2b8088,_0x2b8088['uint32']());},_0xc54725['verify']=function(_0xf3e5f2){if('object'!=typeof _0xf3e5f2||null===_0xf3e5f2)return'object\x20expected';if(null!=_0xf3e5f2['root']&&_0xf3e5f2['hasOwnProperty']('root')&&!k['isString'](_0xf3e5f2['root']))return'root:\x20string\x20expected';if(null!=_0xf3e5f2['rootMain']&&_0xf3e5f2['hasOwnProperty']('rootMain')&&'boolean'!=typeof _0xf3e5f2['rootMain'])return'rootMain:\x20boolean\x20expected';if(null!=_0xf3e5f2['rootGraveyard']&&_0xf3e5f2['hasOwnProperty']('rootGraveyard')&&'boolean'!=typeof _0xf3e5f2['rootGraveyard'])return'rootGraveyard:\x20boolean\x20expected';if(null!=_0xf3e5f2['path']&&_0xf3e5f2['hasOwnProperty']('path')){if(!Array['isArray'](_0xf3e5f2['path']))return'path:\x20array\x20expected';for(let _0x41818e=0x0;_0x41818e<_0xf3e5f2['path']['length'];++_0x41818e)if(!k['isInteger'](_0xf3e5f2['path'][_0x41818e]))return'path:\x20integer[]\x20expected';}return null!=_0xf3e5f2['stickiness']&&_0xf3e5f2['hasOwnProperty']('stickiness')&&!k['isString'](_0xf3e5f2['stickiness'])?'stickiness:\x20string\x20expected':null;},_0xc54725['fromObject']=function(_0x115d26){if(_0x115d26 instanceof v['Position'])return _0x115d26;let _0x1e2074=new v['Position']();if(null!=_0x115d26['root']&&(_0x1e2074['root']=String(_0x115d26['root'])),null!=_0x115d26['rootMain']&&(_0x1e2074['rootMain']=Boolean(_0x115d26['rootMain'])),null!=_0x115d26['rootGraveyard']&&(_0x1e2074['rootGraveyard']=Boolean(_0x115d26['rootGraveyard'])),_0x115d26['path']){if(!Array['isArray'](_0x115d26['path']))throw TypeError('.Position.path:\x20array\x20expected');_0x1e2074['path']=[];for(let _0x4ce200=0x0;_0x4ce200<_0x115d26['path']['length'];++_0x4ce200)_0x1e2074['path'][_0x4ce200]=_0x115d26['path'][_0x4ce200]>>>0x0;}return null!=_0x115d26['stickiness']&&(_0x1e2074['stickiness']=String(_0x115d26['stickiness'])),_0x1e2074;},_0xc54725['toObject']=function(_0x94edd2,_0x585c63){_0x585c63||(_0x585c63={});let _0x3afd45={};if((_0x585c63['arrays']||_0x585c63['defaults'])&&(_0x3afd45['path']=[]),_0x585c63['defaults']&&(_0x3afd45['root']='',_0x3afd45['rootMain']=!0x1,_0x3afd45['rootGraveyard']=!0x1,_0x3afd45['stickiness']=''),null!=_0x94edd2['root']&&_0x94edd2['hasOwnProperty']('root')&&(_0x3afd45['root']=_0x94edd2['root']),null!=_0x94edd2['rootMain']&&_0x94edd2['hasOwnProperty']('rootMain')&&(_0x3afd45['rootMain']=_0x94edd2['rootMain']),null!=_0x94edd2['rootGraveyard']&&_0x94edd2['hasOwnProperty']('rootGraveyard')&&(_0x3afd45['rootGraveyard']=_0x94edd2['rootGraveyard']),_0x94edd2['path']&&_0x94edd2['path']['length']){_0x3afd45['path']=[];for(let _0x3ee1bf=0x0;_0x3ee1bf<_0x94edd2['path']['length'];++_0x3ee1bf)_0x3afd45['path'][_0x3ee1bf]=_0x94edd2['path'][_0x3ee1bf];}return null!=_0x94edd2['stickiness']&&_0x94edd2['hasOwnProperty']('stickiness')&&(_0x3afd45['stickiness']=_0x94edd2['stickiness']),_0x3afd45;},_0xc54725['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,_0xa5d20['util']['toJSONOptions']);},_0xc54725['getTypeUrl']=function(_0x37eb17){return void 0x0===_0x37eb17&&(_0x37eb17='type.googleapis.com'),_0x37eb17+'/Position';},_0xc54725;})()),C=v['Range']=((()=>{function _0x3b2444(_0x51d782){if(_0x51d782){for(let _0xdbbd2d=Object['keys'](_0x51d782),_0x279fd1=0x0;_0x279fd1<_0xdbbd2d['length'];++_0x279fd1)null!=_0x51d782[_0xdbbd2d[_0x279fd1]]&&(this[_0xdbbd2d[_0x279fd1]]=_0x51d782[_0xdbbd2d[_0x279fd1]]);}}return _0x3b2444['prototype']['start']=null,_0x3b2444['prototype']['end']=null,_0x3b2444['create']=function(_0x30ce9c){return new _0x3b2444(_0x30ce9c);},_0x3b2444['encode']=function(_0x2b43a0,_0x3c2f1d){return _0x3c2f1d||(_0x3c2f1d=y['create']()),null!=_0x2b43a0['start']&&Object['hasOwnProperty']['call'](_0x2b43a0,'start')&&v['Position']['encode'](_0x2b43a0['start'],_0x3c2f1d['uint32'](0xa)['fork']())['ldelim'](),null!=_0x2b43a0['end']&&Object['hasOwnProperty']['call'](_0x2b43a0,'end')&&v['Position']['encode'](_0x2b43a0['end'],_0x3c2f1d['uint32'](0x12)['fork']())['ldelim'](),_0x3c2f1d;},_0x3b2444['encodeDelimited']=function(_0x1115ea,_0x5afb51){return this['encode'](_0x1115ea,_0x5afb51)['ldelim']();},_0x3b2444['decode']=function(_0x43f225,_0x693372){_0x43f225 instanceof j||(_0x43f225=j['create'](_0x43f225));let _0xa17163=void 0x0===_0x693372?_0x43f225['len']:_0x43f225['pos']+_0x693372,_0xe62edd=new v['Range']();for(;_0x43f225['pos']<_0xa17163;){let _0x518819=_0x43f225['uint32']();switch(_0x518819>>>0x3){case 0x1:_0xe62edd['start']=v['Position']['decode'](_0x43f225,_0x43f225['uint32']());break;case 0x2:_0xe62edd['end']=v['Position']['decode'](_0x43f225,_0x43f225['uint32']());break;default:_0x43f225['skipType'](0x7&_0x518819);}}return _0xe62edd;},_0x3b2444['decodeDelimited']=function(_0x428729){return _0x428729 instanceof j||(_0x428729=new j(_0x428729)),this['decode'](_0x428729,_0x428729['uint32']());},_0x3b2444['verify']=function(_0x452169){if('object'!=typeof _0x452169||null===_0x452169)return'object\x20expected';if(null!=_0x452169['start']&&_0x452169['hasOwnProperty']('start')){let _0x56b3f6=v['Position']['verify'](_0x452169['start']);if(_0x56b3f6)return'start.'+_0x56b3f6;}if(null!=_0x452169['end']&&_0x452169['hasOwnProperty']('end')){let _0x2c198a=v['Position']['verify'](_0x452169['end']);if(_0x2c198a)return'end.'+_0x2c198a;}return null;},_0x3b2444['fromObject']=function(_0x41f216){if(_0x41f216 instanceof v['Range'])return _0x41f216;let _0x28aa50=new v['Range']();if(null!=_0x41f216['start']){if('object'!=typeof _0x41f216['start'])throw TypeError('.Range.start:\x20object\x20expected');_0x28aa50['start']=v['Position']['fromObject'](_0x41f216['start']);}if(null!=_0x41f216['end']){if('object'!=typeof _0x41f216['end'])throw TypeError('.Range.end:\x20object\x20expected');_0x28aa50['end']=v['Position']['fromObject'](_0x41f216['end']);}return _0x28aa50;},_0x3b2444['toObject']=function(_0x2faf14,_0x1709cf){_0x1709cf||(_0x1709cf={});let _0x254157={};return _0x1709cf['defaults']&&(_0x254157['start']=null,_0x254157['end']=null),null!=_0x2faf14['start']&&_0x2faf14['hasOwnProperty']('start')&&(_0x254157['start']=v['Position']['toObject'](_0x2faf14['start'],_0x1709cf)),null!=_0x2faf14['end']&&_0x2faf14['hasOwnProperty']('end')&&(_0x254157['end']=v['Position']['toObject'](_0x2faf14['end'],_0x1709cf)),_0x254157;},_0x3b2444['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,_0xa5d20['util']['toJSONOptions']);},_0x3b2444['getTypeUrl']=function(_0x2d0ca7){return void 0x0===_0x2d0ca7&&(_0x2d0ca7='type.googleapis.com'),_0x2d0ca7+'/Range';},_0x3b2444;})()),D=v['Element']=((()=>{function _0x32f796(_0x6f1f71){if(this['children']=[],this['attributesBoolean']={},_0x6f1f71){for(let _0x5d1677=Object['keys'](_0x6f1f71),_0x3c31bc=0x0;_0x3c31bc<_0x5d1677['length'];++_0x3c31bc)null!=_0x6f1f71[_0x5d1677[_0x3c31bc]]&&(this[_0x5d1677[_0x3c31bc]]=_0x6f1f71[_0x5d1677[_0x3c31bc]]);}}return _0x32f796['prototype']['name']='',_0x32f796['prototype']['children']=k['emptyArray'],_0x32f796['prototype']['data']='',_0x32f796['prototype']['attributesBoolean']=k['emptyObject'],_0x32f796['prototype']['attributesJson']='',_0x32f796['create']=function(_0x1feceb){return new _0x32f796(_0x1feceb);},_0x32f796['encode']=function(_0x22e3e3,_0x2ffa0b){if(_0x2ffa0b||(_0x2ffa0b=y['create']()),null!=_0x22e3e3['name']&&Object['hasOwnProperty']['call'](_0x22e3e3,'name')&&_0x2ffa0b['uint32'](0xa)['string'](_0x22e3e3['name']),null!=_0x22e3e3['children']&&_0x22e3e3['children']['length']){for(let _0x4d1bdf=0x0;_0x4d1bdf<_0x22e3e3['children']['length'];++_0x4d1bdf)v['Element']['encode'](_0x22e3e3['children'][_0x4d1bdf],_0x2ffa0b['uint32'](0x12)['fork']())['ldelim']();}if(null!=_0x22e3e3['data']&&Object['hasOwnProperty']['call'](_0x22e3e3,'data')&&_0x2ffa0b['uint32'](0x1a)['string'](_0x22e3e3['data']),null!=_0x22e3e3['attributesBoolean']&&Object['hasOwnProperty']['call'](_0x22e3e3,'attributesBoolean')){for(let _0x496d47=Object['keys'](_0x22e3e3['attributesBoolean']),_0x201a50=0x0;_0x201a50<_0x496d47['length'];++_0x201a50)_0x2ffa0b['uint32'](0x22)['fork']()['uint32'](0xa)['string'](_0x496d47[_0x201a50])['uint32'](0x10)['bool'](_0x22e3e3['attributesBoolean'][_0x496d47[_0x201a50]])['ldelim']();}return null!=_0x22e3e3['attributesJson']&&Object['hasOwnProperty']['call'](_0x22e3e3,'attributesJson')&&_0x2ffa0b['uint32'](0x2a)['string'](_0x22e3e3['attributesJson']),_0x2ffa0b;},_0x32f796['encodeDelimited']=function(_0x42dbaa,_0x29c8ab){return this['encode'](_0x42dbaa,_0x29c8ab)['ldelim']();},_0x32f796['decode']=function(_0x2a31bc,_0x1a1fee){_0x2a31bc instanceof j||(_0x2a31bc=j['create'](_0x2a31bc));let _0x4da83e,_0x112bab,_0x48e6e0=void 0x0===_0x1a1fee?_0x2a31bc['len']:_0x2a31bc['pos']+_0x1a1fee,_0x18e304=new v['Element']();for(;_0x2a31bc['pos']<_0x48e6e0;){let _0x3d35fe=_0x2a31bc['uint32']();switch(_0x3d35fe>>>0x3){case 0x1:_0x18e304['name']=_0x2a31bc['string']();break;case 0x2:_0x18e304['children']&&_0x18e304['children']['length']||(_0x18e304['children']=[]),_0x18e304['children']['push'](v['Element']['decode'](_0x2a31bc,_0x2a31bc['uint32']()));break;case 0x3:_0x18e304['data']=_0x2a31bc['string']();break;case 0x4:{_0x18e304['attributesBoolean']===k['emptyObject']&&(_0x18e304['attributesBoolean']={});let _0x32980e=_0x2a31bc['uint32']()+_0x2a31bc['pos'];for(_0x4da83e='',_0x112bab=!0x1;_0x2a31bc['pos']<_0x32980e;){let _0x516d25=_0x2a31bc['uint32']();switch(_0x516d25>>>0x3){case 0x1:_0x4da83e=_0x2a31bc['string']();break;case 0x2:_0x112bab=_0x2a31bc['bool']();break;default:_0x2a31bc['skipType'](0x7&_0x516d25);}}_0x18e304['attributesBoolean'][_0x4da83e]=_0x112bab;break;}case 0x5:_0x18e304['attributesJson']=_0x2a31bc['string']();break;default:_0x2a31bc['skipType'](0x7&_0x3d35fe);}}return _0x18e304;},_0x32f796['decodeDelimited']=function(_0x53700c){return _0x53700c instanceof j||(_0x53700c=new j(_0x53700c)),this['decode'](_0x53700c,_0x53700c['uint32']());},_0x32f796['verify']=function(_0x17bbde){if('object'!=typeof _0x17bbde||null===_0x17bbde)return'object\x20expected';if(null!=_0x17bbde['name']&&_0x17bbde['hasOwnProperty']('name')&&!k['isString'](_0x17bbde['name']))return'name:\x20string\x20expected';if(null!=_0x17bbde['children']&&_0x17bbde['hasOwnProperty']('children')){if(!Array['isArray'](_0x17bbde['children']))return'children:\x20array\x20expected';for(let _0x536393=0x0;_0x536393<_0x17bbde['children']['length'];++_0x536393){let _0x5f4a55=v['Element']['verify'](_0x17bbde['children'][_0x536393]);if(_0x5f4a55)return'children.'+_0x5f4a55;}}if(null!=_0x17bbde['data']&&_0x17bbde['hasOwnProperty']('data')&&!k['isString'](_0x17bbde['data']))return'data:\x20string\x20expected';if(null!=_0x17bbde['attributesBoolean']&&_0x17bbde['hasOwnProperty']('attributesBoolean')){if(!k['isObject'](_0x17bbde['attributesBoolean']))return'attributesBoolean:\x20object\x20expected';let _0x17d733=Object['keys'](_0x17bbde['attributesBoolean']);for(let _0x32118f=0x0;_0x32118f<_0x17d733['length'];++_0x32118f)if('boolean'!=typeof _0x17bbde['attributesBoolean'][_0x17d733[_0x32118f]])return'attributesBoolean:\x20boolean{k:string}\x20expected';}return null!=_0x17bbde['attributesJson']&&_0x17bbde['hasOwnProperty']('attributesJson')&&!k['isString'](_0x17bbde['attributesJson'])?'attributesJson:\x20string\x20expected':null;},_0x32f796['fromObject']=function(_0x55d9ee){if(_0x55d9ee instanceof v['Element'])return _0x55d9ee;let _0x762d53=new v['Element']();if(null!=_0x55d9ee['name']&&(_0x762d53['name']=String(_0x55d9ee['name'])),_0x55d9ee['children']){if(!Array['isArray'](_0x55d9ee['children']))throw TypeError('.Element.children:\x20array\x20expected');_0x762d53['children']=[];for(let _0x4b1664=0x0;_0x4b1664<_0x55d9ee['children']['length'];++_0x4b1664){if('object'!=typeof _0x55d9ee['children'][_0x4b1664])throw TypeError('.Element.children:\x20object\x20expected');_0x762d53['children'][_0x4b1664]=v['Element']['fromObject'](_0x55d9ee['children'][_0x4b1664]);}}if(null!=_0x55d9ee['data']&&(_0x762d53['data']=String(_0x55d9ee['data'])),_0x55d9ee['attributesBoolean']){if('object'!=typeof _0x55d9ee['attributesBoolean'])throw TypeError('.Element.attributesBoolean:\x20object\x20expected');_0x762d53['attributesBoolean']={};for(let _0x176724=Object['keys'](_0x55d9ee['attributesBoolean']),_0x23b444=0x0;_0x23b444<_0x176724['length'];++_0x23b444)_0x762d53['attributesBoolean'][_0x176724[_0x23b444]]=Boolean(_0x55d9ee['attributesBoolean'][_0x176724[_0x23b444]]);}return null!=_0x55d9ee['attributesJson']&&(_0x762d53['attributesJson']=String(_0x55d9ee['attributesJson'])),_0x762d53;},_0x32f796['toObject']=function(_0x4529d9,_0x32141c){_0x32141c||(_0x32141c={});let _0x3194b4,_0x541d68={};if((_0x32141c['arrays']||_0x32141c['defaults'])&&(_0x541d68['children']=[]),(_0x32141c['objects']||_0x32141c['defaults'])&&(_0x541d68['attributesBoolean']={}),_0x32141c['defaults']&&(_0x541d68['name']='',_0x541d68['data']='',_0x541d68['attributesJson']=''),null!=_0x4529d9['name']&&_0x4529d9['hasOwnProperty']('name')&&(_0x541d68['name']=_0x4529d9['name']),_0x4529d9['children']&&_0x4529d9['children']['length']){_0x541d68['children']=[];for(let _0x568a21=0x0;_0x568a21<_0x4529d9['children']['length'];++_0x568a21)_0x541d68['children'][_0x568a21]=v['Element']['toObject'](_0x4529d9['children'][_0x568a21],_0x32141c);}if(null!=_0x4529d9['data']&&_0x4529d9['hasOwnProperty']('data')&&(_0x541d68['data']=_0x4529d9['data']),_0x4529d9['attributesBoolean']&&(_0x3194b4=Object['keys'](_0x4529d9['attributesBoolean']))['length']){_0x541d68['attributesBoolean']={};for(let _0x5992f1=0x0;_0x5992f1<_0x3194b4['length'];++_0x5992f1)_0x541d68['attributesBoolean'][_0x3194b4[_0x5992f1]]=_0x4529d9['attributesBoolean'][_0x3194b4[_0x5992f1]];}return null!=_0x4529d9['attributesJson']&&_0x4529d9['hasOwnProperty']('attributesJson')&&(_0x541d68['attributesJson']=_0x4529d9['attributesJson']),_0x541d68;},_0x32f796['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,_0xa5d20['util']['toJSONOptions']);},_0x32f796['getTypeUrl']=function(_0x576e36){return void 0x0===_0x576e36&&(_0x576e36='type.googleapis.com'),_0x576e36+'/Element';},_0x32f796;})());var u=Object['freeze']({'__proto__':null,'AttributeOperation':M,'Element':D,'InsertOperation':B,'MarkerOperation':V,'MergeOperation':S,'MoveOperation':U,'Position':T,'Range':C,'RenameOperation':A,'RootAttributeOperation':N,'RootOperation':R,'SplitOperation':E,'default':v});class r{['getDescriptor'](_0x3e0aee){return new I(this['_protobufRoot'][_0x3e0aee]);}constructor(){this['_protobufRoot']=u;}}class I{['compress'](_0x27b394){const _0x686a7f=this['_protobuf']['verify'](_0x27b394);if(_0x686a7f)throw Error(_0x686a7f);return this['_protobuf']['encode'](this['_protobuf']['create'](_0x27b394))['finish']();}['decompress'](_0x38d7be){return this['_protobuf']['toObject'](this['_protobuf']['decode'](_0x38d7be),{'oneofs':!0x0});}constructor(_0x3daba0){this['_protobuf']=_0x3daba0;}}function _(_0x373a05,_0x43eab1){const _0x4f5529=_0x4a9e50(_0x373a05);return _0x4f5529['path'][_0x4f5529['path']['length']-0x1]+=_0x43eab1,_0x4f5529;}function O(_0x3175ab,_0x3e5c0a){return _0x3175ab['root']===_0x3e5c0a['root']&&_0x5df907(_0x3175ab['path'],_0x3e5c0a['path']);}function $(_0x5a38ea){P(_0x5a38ea,_0x9284e9=>('main'==_0x9284e9['root']?(_0x9284e9['rootMain']=!0x0,delete _0x9284e9['root']):'$graveyard'==_0x9284e9['root']&&(_0x9284e9['rootGraveyard']=!0x0,delete _0x9284e9['root']),_0x9284e9));}function J(_0x52a58b){P(_0x52a58b,_0x3cf09b=>(_0x3cf09b['rootMain']?(_0x3cf09b['root']='main',delete _0x3cf09b['rootMain']):_0x3cf09b['rootGraveyard']&&(_0x3cf09b['root']='$graveyard',delete _0x3cf09b['rootGraveyard']),_0x3cf09b));}function P(_0x1e0c55,_0x56917d){for(const _0x2a02d6 in _0x1e0c55){const _0x4efe39=_0x1e0c55[_0x2a02d6];'nodes'!==_0x2a02d6&&_0x244ab3(_0x4efe39)&&(_0x4efe39['path']&&(_0x4efe39['root']||_0x4efe39['rootMain']||_0x4efe39['rootGraveyard'])?_0x1e0c55[_0x2a02d6]=_0x56917d(_0x4efe39):P(_0x4efe39,_0x56917d));}return _0x1e0c55;}class e{['compress'](_0x4377eb,_0x152981){const _0x6f1b4b=_0x152981['shift']();return $(_0x6f1b4b),_0x4377eb['buffers']['push'](this['_protobufDescriptor']['compress'](_0x6f1b4b)),_0x4377eb['types']['push'](this['_id']),!0x0;}['decompress'](_0x4d923e,_0x49daea){_0x49daea['types']['shift']();const _0xedba36=this['_protobufDescriptor']['decompress'](_0x49daea['buffers']['shift']());J(_0xedba36),_0xedba36['__className']=this['_operationName'],_0x4d923e['push'](_0xedba36);}constructor(_0x4702d6,_0x1f5a83,_0x108fcf){this['_id']=_0x4702d6,this['_operationName']=_0x1f5a83,this['_protobufDescriptor']=_0x108fcf;}}class s extends e{['compress'](_0x5508d3,_0x3178ec){const _0x1cc270=_0x3178ec['shift']();return this['_serializeOneOf']('oldValue',_0x1cc270),this['_serializeOneOf']('newValue',_0x1cc270),$(_0x1cc270),_0x5508d3['buffers']['push'](this['_protobufDescriptor']['compress'](_0x1cc270)),_0x5508d3['types']['push'](this['_id']),!0x0;}['decompress'](_0x5593d1,_0xed0b32){const {types:_0x48b4d8,buffers:_0x331b81}=_0xed0b32,_0x2c615a=this['_protobufDescriptor']['decompress'](_0x331b81['shift']());_0x48b4d8['shift'](),this['_deserializeOneOf']('oldValue',_0x2c615a),this['_deserializeOneOf']('newValue',_0x2c615a),J(_0x2c615a),_0x2c615a['__className']=this['_operationName'],_0x5593d1['push'](_0x2c615a);}['_serializeOneOf'](_0x387cf0,_0x142581){const _0x1e11a2=_0x142581[_0x387cf0];'boolean'==typeof _0x1e11a2?_0x142581[_0x387cf0+'Boolean']=_0x1e11a2:_0x142581[_0x387cf0+'Json']=JSON['stringify'](_0x1e11a2);}['_deserializeOneOf'](_0x46db2f,_0x5f3f5c){const _0x221889=_0x46db2f+'Json';_0x5f3f5c[_0x221889]?(_0x5f3f5c[_0x46db2f]=JSON['parse'](_0x5f3f5c[_0x221889]),delete _0x5f3f5c[_0x221889]):(_0x5f3f5c[_0x46db2f]=_0x5f3f5c[_0x46db2f+'Boolean'],delete _0x5f3f5c[_0x46db2f+'Boolean']);}}class i extends e{['compress'](_0x3e381b,_0x104437){const _0x470795=_0x104437['shift']();return this['_serializeNodesAttributes'](_0x470795['nodes']),$(_0x470795),_0x3e381b['buffers']['push'](this['_protobufDescriptor']['compress'](_0x470795)),_0x3e381b['types']['push'](this['_id']),!0x0;}['decompress'](_0x407e86,_0x245e59){const {types:_0x7a7938,buffers:_0x5b76c9}=_0x245e59,_0x3c2fc7=this['_protobufDescriptor']['decompress'](_0x5b76c9['shift']());_0x7a7938['shift'](),_0x3c2fc7['nodes']||(_0x3c2fc7['nodes']=[]),this['_deserializeNodesAttributes'](_0x3c2fc7['nodes']),J(_0x3c2fc7),_0x3c2fc7['__className']=this['_operationName'],_0x407e86['push'](_0x3c2fc7);}['_serializeNodesAttributes'](_0x2e67be){for(const _0x3f1f18 of _0x2e67be){if(_0x3f1f18['attributes']){const _0x54d09b=_0x3f1f18['attributes'];this['_areValuesBoolean'](_0x54d09b)?_0x3f1f18['attributesBoolean']=_0x54d09b:_0x3f1f18['attributesJson']=JSON['stringify'](_0x54d09b);}_0x3f1f18['children']&&this['_serializeNodesAttributes'](_0x3f1f18['children']);}}['_deserializeNodesAttributes'](_0x30b5a1){for(const _0x2d81ee of _0x30b5a1)(_0x2d81ee['attributesBoolean']||_0x2d81ee['attributesJson'])&&(_0x2d81ee['attributesBoolean']?(_0x2d81ee['attributes']=_0x2d81ee['attributesBoolean'],delete _0x2d81ee['attributesBoolean']):(_0x2d81ee['attributes']=JSON['parse'](_0x2d81ee['attributesJson']),delete _0x2d81ee['attributesJson'])),_0x2d81ee['children']&&this['_deserializeNodesAttributes'](_0x2d81ee['children']);}['_areValuesBoolean'](_0x3af2d9){return Object['keys'](_0x3af2d9)['every'](_0x1f4040=>'boolean'==typeof _0x3af2d9[_0x1f4040]);}}class n extends e{['decompress'](_0x2b5aad,_0x389495){super['decompress'](_0x2b5aad,_0x389495);const _0x373a5f=_0x2b5aad[_0x2b5aad['length']-0x1];_0x373a5f['oldRange']||(_0x373a5f['oldRange']=null),_0x373a5f['newRange']||(_0x373a5f['newRange']=null);}}class p extends e{['compress'](_0x5ec01a,_0x1ee1d1){return _0x1ee1d1['shift'](),_0x5ec01a['types']['push'](this['_id']),!0x0;}['decompress'](_0x86982e,_0x1d626a){_0x1d626a['types']['shift'](),_0x86982e['push']({'__className':this['_operationName']});}}class a extends n{['compress'](_0x115541,_0x5ec639){return!('MarkerOperation'!=_0x5ec639[0x0]['__className']||!_0x5ec639[0x0]['name']['startsWith'](this['_omittedNamespace']))&&(_0x5ec639[0x0]['name']=_0x5ec639[0x0]['name']['replace'](new RegExp('^'+this['_omittedNamespace']),''),super['compress'](_0x115541,_0x5ec639),!0x0);}['decompress'](_0x49a1de,_0x561db0){super['decompress'](_0x49a1de,_0x561db0);const _0x947330=_0x49a1de[_0x49a1de['length']-0x1];_0x947330['name']=this['_omittedNamespace']+_0x947330['name'];}constructor(_0x509647,_0x3e5686,_0x43c37b,_0x5977e5){super(_0x509647,_0x3e5686,_0x43c37b),this['_omittedNamespace']=_0x5977e5+':';}}class b{['compress'](_0x41f710,_0x328af1){let _0x5a9126;for(;_0x328af1['length']>0x1&&this['_compareOperations'](_0x328af1[0x0],_0x328af1[0x1]);)_0x5a9126?(_0x5a9126=this['_combineNext'](_0x328af1['shift'](),_0x5a9126),_0x41f710['types']['push'](0x0)):(_0x5a9126=_0x4a9e50(_0x328af1['shift']()),_0x41f710['types']['push'](this['_id']));return!!_0x5a9126&&(_0x5a9126=this['_combineNext'](_0x328af1['shift'](),_0x5a9126),_0x41f710['types']['push'](0x0),_0x41f710['buffers']['push'](this['_compressSingleOperation'](_0x5a9126)),!0x0);}['decompress'](_0x1571c7,_0x3f1d93){const _0x328c60=this['_decompressSingleOperation'](_0x3f1d93);for(;0x0==_0x3f1d93['types'][0x0];)_0x3f1d93['types']['shift'](),_0x1571c7['push'](this['_splitCurrent'](_0x328c60));_0x1571c7['push'](_0x328c60);}constructor(_0x220a7c,_0x415fc5){this['_id']=_0x220a7c,this['_context']=_0x415fc5;}}class m extends b{['_combineNext'](_0x50b278,_0x4e7066){return _0x4e7066['nodes'][0x0]['data']+=_0x50b278['nodes'][0x0]['data'],_0x4e7066;}['_splitCurrent'](_0x1e95ba){const _0x3c6d03=_0x4a9e50(_0x1e95ba),_0x1ab33a=_0x3c6d03['nodes'][0x0],_0x121988=_0x1e95ba['nodes'][0x0],_0x7a399=_0x121988['data'][Symbol['iterator']]()['next']()['value'],_0x140291=_0x7a399['length'];return _0x1ab33a['data']=_0x7a399,_0x121988['data']=_0x121988['data']['substr'](_0x140291),_0x1e95ba['position']=_(_0x1e95ba['position'],_0x140291),_0x3c6d03;}['_compareOperations'](_0x196e25,_0x304adb){if(this['_checkOperation'](_0x196e25)&&this['_checkOperation'](_0x304adb)){const _0x7b9ff7=_0x196e25['nodes'][0x0]['data']['length'],_0x286ffe=O(_(_0x196e25['position'],_0x7b9ff7),_0x304adb['position']),_0x29f7f7=_0x196e25['nodes'][0x0],_0x4fd1bd=_0x304adb['nodes'][0x0];return _0x286ffe&&this['_compareAttributes'](_0x29f7f7,_0x4fd1bd);}return!0x1;}['_compressSingleOperation'](_0x4c6480){const _0x51d8bb={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('InsertOperation')['compress'](_0x51d8bb,[_0x4c6480]),_0x51d8bb['buffers'][0x0];}['_decompressSingleOperation'](_0x4ed627){const _0x1f4955=[];return this['_context']['_getCompressorByName']('InsertOperation')['decompress'](_0x1f4955,_0x4ed627),_0x1f4955[0x0];}['_checkOperation'](_0x4b2636){return'InsertOperation'==_0x4b2636['__className']&&0x1==_0x4b2636['nodes']['length']&&_0x4b2636['nodes'][0x0]['data']&&!_0x4b2636['wasUndone']&&0x1==Array['from'](_0x4b2636['nodes'][0x0]['data'])['length'];}['_compareAttributes'](_0x375744,_0x3960a6){const _0x4d9d94=Object['keys'](_0x375744['attributes']||{}),_0x3cd36b=Object['keys'](_0x3960a6['attributes']||{});return _0x4d9d94['length']===_0x3cd36b['length']&&_0x4d9d94['every'](_0x277091=>_0x3960a6['attributes'][_0x277091]&&_0x3960a6['attributes'][_0x277091]===_0x375744['attributes'][_0x277091]);}}class c extends b{['_combineNext'](_0x24139d,_0xd3c284){return _0xd3c284['howMany']++,_0xd3c284['sourcePosition']=_0x4a9e50(_0x24139d['sourcePosition']),_0xd3c284;}['_splitCurrent'](_0x34a81f){const _0x403734=_0x4a9e50(_0x34a81f);return _0x34a81f['howMany']--,_0x403734['howMany']=0x1,_0x403734['sourcePosition']=_(_0x403734['sourcePosition'],_0x34a81f['howMany']),_0x403734;}['_compareOperations'](_0x5a6914,_0x2b0142){return!(!this['_checkOperation'](_0x5a6914)||!this['_checkOperation'](_0x2b0142))&&(O(_(_0x5a6914['sourcePosition'],-0x1),_0x2b0142['sourcePosition'])&&O(_0x5a6914['targetPosition'],_0x2b0142['targetPosition']));}['_compressSingleOperation'](_0x1252dd){const _0x2f3e56={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MoveOperation')['compress'](_0x2f3e56,[_0x1252dd]),_0x2f3e56['buffers'][0x0];}['_decompressSingleOperation'](_0x1a97e9){const _0x54dc80=[];return this['_context']['_getCompressorByName']('MoveOperation')['decompress'](_0x54dc80,_0x1a97e9),_0x54dc80[0x0];}['_checkOperation'](_0x266e8a){return'MoveOperation'==_0x266e8a['__className']&&'$graveyard'==_0x266e8a['targetPosition']['root']&&0x1==_0x266e8a['howMany']&&!_0x266e8a['wasUndone'];}}class h extends b{['_combineNext'](_0x3fab2e,_0x4ba438){return _0x4ba438['howMany']++,_0x4ba438;}['_splitCurrent'](_0x47bc46){const _0x5b9a14=_0x4a9e50(_0x47bc46);return _0x5b9a14['howMany']=0x1,_0x47bc46['howMany']--,_0x5b9a14;}['_compareOperations'](_0x2fa488,_0x111dc5){return!(!this['_checkOperation'](_0x2fa488)||!this['_checkOperation'](_0x111dc5))&&(O(_0x2fa488['sourcePosition'],_0x111dc5['sourcePosition'])&&O(_0x2fa488['targetPosition'],_0x111dc5['targetPosition']));}['_compressSingleOperation'](_0x1c4cd7){const _0x6c6110={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MoveOperation')['compress'](_0x6c6110,[_0x1c4cd7]),_0x6c6110['buffers'][0x0];}['_decompressSingleOperation'](_0x3c9350){const _0x2d8c7=[];return this['_context']['_getCompressorByName']('MoveOperation')['decompress'](_0x2d8c7,_0x3c9350),_0x2d8c7[0x0];}['_checkOperation'](_0x2339e4){return'MoveOperation'==_0x2339e4['__className']&&'$graveyard'==_0x2339e4['targetPosition']['root']&&0x1==_0x2339e4['howMany']&&!_0x2339e4['wasUndone'];}}class f extends b{['compress'](_0x94bcdf,_0x154a61){if(!this['_compareOperations'](_0x154a61[0x0],_0x154a61[0x1]))return!0x1;const _0x4a7f7f=_0x154a61['shift']();return _0x4a7f7f['oldRange']=null,_0x4a7f7f['newRange']&&O(_0x4a7f7f['newRange']['start'],_0x4a7f7f['newRange']['end'])&&(_0x4a7f7f['newRange']['end']=null),_0x154a61['shift'](),_0x94bcdf['types']['push'](this['_id']),_0x94bcdf['types']['push'](0x0),_0x94bcdf['buffers']['push'](this['_compressSingleOperation'](_0x4a7f7f)),!0x0;}['decompress'](_0x4969b3,_0x2c5916){const _0xdac16e=this['_decompressSingleOperation'](_0x2c5916);_0xdac16e['newRange']&&!_0xdac16e['newRange']['end']&&(_0xdac16e['newRange']['end']=_0x4a9e50(_0xdac16e['newRange']['start']));const _0x2f5c8a=_0x4a9e50(_0xdac16e);_0x2f5c8a['newRange']&&(_0x2f5c8a['newRange']['start']['stickiness']='toNone',_0x2f5c8a['newRange']['end']=_0x4a9e50(_0x2f5c8a['newRange']['start'])),_0x2f5c8a['name']='user:position:'+_0x2f5c8a['name']['split'](':')[0x2],_0x2c5916['types']['shift'](),_0x4969b3['push'](_0xdac16e),_0x4969b3['push'](_0x2f5c8a);}['_compressSingleOperation'](_0x2519bb){const _0x295ad0={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MarkerOperation')['compress'](_0x295ad0,[_0x2519bb]),_0x295ad0['buffers'][0x0];}['_decompressSingleOperation'](_0x5c33a1){const _0x5ca578=[];return this['_context']['_getCompressorByName']('MarkerOperation')['decompress'](_0x5ca578,_0x5c33a1),_0x5ca578[0x0];}['_compareOperations'](_0x3842bc,_0x4c07ea){return!(!_0x3842bc||!_0x4c07ea)&&('MarkerOperation'==_0x3842bc['__className']&&'MarkerOperation'==_0x4c07ea['__className']&&!(!_0x3842bc['name']['startsWith']('user:')||!_0x4c07ea['name']['startsWith']('user:')||_0x3842bc['name']==_0x4c07ea['name']));}}class g{['compress'](_0x3b6b5a){if(!_0x3b6b5a||!_0x3b6b5a[0x0])throw new _0x538892('no-operations-provided',this);const _0x1ac31b={'types':[],'buffers':[],'baseVersion':_0x3b6b5a[0x0]['baseVersion']};for(;_0x3b6b5a['length'];)this['_getCompressorByName']('UserSelectionAction')['compress'](_0x1ac31b,_0x3b6b5a)||this['_getCompressorByName']('TypingAction')['compress'](_0x1ac31b,_0x3b6b5a)||this['_getCompressorByName']('DeletingAction')['compress'](_0x1ac31b,_0x3b6b5a)||this['_getCompressorByName']('ForwardDeletingAction')['compress'](_0x1ac31b,_0x3b6b5a)||this['_getCompressorByName']('CommentMarkerOperation')['compress'](_0x1ac31b,_0x3b6b5a)||this['_getCompressorByName']('SuggestionMarkerOperation')['compress'](_0x1ac31b,_0x3b6b5a)||this['_getCompressorByName'](_0x3b6b5a[0x0]['__className'])['compress'](_0x1ac31b,_0x3b6b5a);return _0x1ac31b;}['decompress'](_0x4911c5){const _0x3a37b7=[];for(;_0x4911c5['types']['length'];){this['_compressorById']['get'](_0x4911c5['types'][0x0])['decompress'](_0x3a37b7,_0x4911c5);}return _0x3a37b7['forEach']((_0x412eb3,_0x55e564)=>_0x412eb3['baseVersion']=_0x4911c5['baseVersion']+_0x55e564),_0x3a37b7;}['_getCompressorByName'](_0x35a776){return this['_compressorByName']['get'](_0x35a776);}['_registerOperationCompressor'](_0x4bc3c4,_0x30105f,_0x4ddc8d){const _0x30b4e7=new _0x4ddc8d(_0x4bc3c4,_0x30105f,this['_protobufFactory']['getDescriptor'](_0x30105f));this['_registerCompressor'](_0x4bc3c4,_0x30105f,_0x30b4e7);}['_registerActionCompressor'](_0x217f77,_0x5ad5cd,_0x40b015){const _0x2446cb=new _0x40b015(_0x217f77,this);this['_registerCompressor'](_0x217f77,_0x5ad5cd,_0x2446cb);}['_registerCompressor'](_0x369747,_0x24c46f,_0x3e99ea){this['_compressorById']['set'](_0x369747,_0x3e99ea),this['_compressorByName']['set'](_0x24c46f,_0x3e99ea);}constructor(){this['_compressorById']=new Map(),this['_compressorByName']=new Map(),this['_protobufFactory']=new r();const _0xa87211=this['_protobufFactory']['getDescriptor']('MarkerOperation');this['_registerCompressor'](0x1,'NoOperation',new p(0x1,'NoOperation',void 0x0)),this['_registerOperationCompressor'](0xa,'AttributeOperation',s),this['_registerOperationCompressor'](0xb,'InsertOperation',i),this['_registerOperationCompressor'](0xc,'MarkerOperation',n),this['_registerOperationCompressor'](0xd,'MergeOperation',e),this['_registerOperationCompressor'](0xe,'MoveOperation',e),this['_registerOperationCompressor'](0xf,'RenameOperation',e),this['_registerOperationCompressor'](0x10,'RootAttributeOperation',s),this['_registerOperationCompressor'](0x11,'SplitOperation',e),this['_registerCompressor'](0x12,'CommentMarkerOperation',new a(0x12,'MarkerOperation',_0xa87211,'comment')),this['_registerCompressor'](0x13,'SuggestionMarkerOperation',new a(0x13,'MarkerOperation',_0xa87211,'suggestion')),this['_registerOperationCompressor'](0x14,'RootOperation',e),this['_registerActionCompressor'](0x64,'TypingAction',m),this['_registerActionCompressor'](0x65,'DeletingAction',c),this['_registerActionCompressor'](0x66,'ForwardDeletingAction',h),this['_registerActionCompressor'](0x67,'UserSelectionAction',f);}}export{g as Compressor};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
import type { CompressedOperationsData, default as Compressor } from '../compressor.js';
|
|
10
|
+
/**
|
|
11
|
+
* * Compresses and decompresses multiple operations into the one buffer.
|
|
12
|
+
*/
|
|
13
|
+
export default abstract class ActionCompressor {
|
|
14
|
+
constructor(id: number, context: Compressor);
|
|
15
|
+
/**
|
|
16
|
+
* Combines and compress operations from the list.
|
|
17
|
+
* Operations are consumed as long as match this compressor.
|
|
18
|
+
*
|
|
19
|
+
* @param result Object to which compression result should be added.
|
|
20
|
+
* @param operations List of operations in JSON format to compress.
|
|
21
|
+
* @returns `true` when operation is consumed `false` otherwise.
|
|
22
|
+
*/
|
|
23
|
+
compress(result: CompressedOperationsData, operations: Array<any>): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Decompress and split compressed operations. Decompressed operations are consumed (removed from the input data).
|
|
26
|
+
*
|
|
27
|
+
* @param result Decompressed operations in JSON format.
|
|
28
|
+
* @param data Compressed operations data.
|
|
29
|
+
*/
|
|
30
|
+
decompress(result: Array<any>, data: CompressedOperationsData): void;
|
|
31
|
+
/**
|
|
32
|
+
* Compresses single operation using a proper compressor.
|
|
33
|
+
*
|
|
34
|
+
* @param operation Operation in JSON format.
|
|
35
|
+
* @returns Operation JSON compressed to the binary format.
|
|
36
|
+
*/
|
|
37
|
+
protected abstract _compressSingleOperation(operation: any): Uint8Array;
|
|
38
|
+
/**
|
|
39
|
+
* Decompresses combined operation using a proper compressor.
|
|
40
|
+
*
|
|
41
|
+
* @param data Data to compress.
|
|
42
|
+
* @returns Decompressed operation in JSON format.
|
|
43
|
+
*/
|
|
44
|
+
protected abstract _decompressSingleOperation(data: CompressedOperationsData): any;
|
|
45
|
+
/**
|
|
46
|
+
* Combine next operation into the combined one.
|
|
47
|
+
*
|
|
48
|
+
* @param nextOperation Operation to combine in JSON format.
|
|
49
|
+
* @param combined Combined operation in JSON format.
|
|
50
|
+
* @returns Combined operation in JSON format.
|
|
51
|
+
*/
|
|
52
|
+
protected abstract _combineNext(nextOperation: any, combined: any): any;
|
|
53
|
+
/**
|
|
54
|
+
* Split operation from combined one.
|
|
55
|
+
*
|
|
56
|
+
* @param combined Combined operation in JSON format.
|
|
57
|
+
* @returns Split operation in JSON format.
|
|
58
|
+
*/
|
|
59
|
+
protected abstract _splitCurrent(combined: any): any;
|
|
60
|
+
/**
|
|
61
|
+
* Checks if two operations can be combined.
|
|
62
|
+
*/
|
|
63
|
+
protected abstract _compareOperations(opA: any, opB: any): boolean;
|
|
64
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
import ActionCompressor from './actioncompressor.js';
|
|
10
|
+
import type { CompressedOperationsData } from '../compressor.js';
|
|
11
|
+
export default class DeletingActionCompressor extends ActionCompressor {
|
|
12
|
+
/**
|
|
13
|
+
* @inheritDoc
|
|
14
|
+
*/
|
|
15
|
+
protected _combineNext(nextOperation: any, combined: any): any;
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
protected _splitCurrent(combined: any): any;
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
protected _compareOperations(opA: any, opB: any): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
protected _compressSingleOperation(operation: any): Uint8Array;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
protected _decompressSingleOperation(data: CompressedOperationsData): any;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
import ActionCompressor from './actioncompressor.js';
|
|
10
|
+
import type { CompressedOperationsData } from '../compressor.js';
|
|
11
|
+
export default class ForwardDeletingActionCompressor extends ActionCompressor {
|
|
12
|
+
/**
|
|
13
|
+
* @inheritDoc
|
|
14
|
+
*/
|
|
15
|
+
protected _combineNext(nextOperation: any, combined: any): any;
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
protected _splitCurrent(combined: any): any;
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
protected _compareOperations(opA: any, opB: any): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
protected _compressSingleOperation(operation: any): Uint8Array;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
protected _decompressSingleOperation(data: CompressedOperationsData): any;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
import ActionCompressor from './actioncompressor.js';
|
|
10
|
+
import type { CompressedOperationsData } from '../compressor.js';
|
|
11
|
+
export default class TypingActionCompressor extends ActionCompressor {
|
|
12
|
+
/**
|
|
13
|
+
* @inheritDocs
|
|
14
|
+
*/
|
|
15
|
+
protected _combineNext(nextOperation: any, combined: any): any;
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
protected _splitCurrent(combined: any): any;
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
protected _compareOperations(opA: any, opB: any): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
protected _compressSingleOperation(operation: any): Uint8Array;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
protected _decompressSingleOperation(data: CompressedOperationsData): any;
|
|
32
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
import ActionCompressor from './actioncompressor.js';
|
|
10
|
+
import type { CompressedOperationsData } from '../compressor.js';
|
|
11
|
+
export default class UserSelectionActionCompressor extends ActionCompressor {
|
|
12
|
+
/**
|
|
13
|
+
* @inheritDoc
|
|
14
|
+
*/
|
|
15
|
+
compress(result: CompressedOperationsData, operations: Array<any>): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
decompress(result: Array<any>, data: CompressedOperationsData): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Compresses and decompresses given set of operations in JSON format to/from the binary format using `Protocol Buffers`.
|
|
11
|
+
*/
|
|
12
|
+
export default class Compressor {
|
|
13
|
+
constructor();
|
|
14
|
+
/**
|
|
15
|
+
* Compress given list of operations in JSON format.
|
|
16
|
+
*
|
|
17
|
+
* **Note** It tries to combine typing-like or deleting-like operations into the one buffer.
|
|
18
|
+
* **Note** Input data will be consumed and modified during compression process. If you need untouched data
|
|
19
|
+
* you need to copy it before the compression.
|
|
20
|
+
*/
|
|
21
|
+
compress(operations: Array<any>): CompressedOperationsData;
|
|
22
|
+
/**
|
|
23
|
+
* Decompress given data to the list of operations in JSON format.
|
|
24
|
+
*
|
|
25
|
+
* **Note** Input data will be consumed during decompression process. If you need untouched data
|
|
26
|
+
* you need to copy it before the decompression.
|
|
27
|
+
*
|
|
28
|
+
* @param data Compressed operations.
|
|
29
|
+
* @returns List of operations in JSON format.
|
|
30
|
+
*/
|
|
31
|
+
decompress(data: CompressedOperationsData): Array<any>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Compressed operations data.
|
|
35
|
+
*/
|
|
36
|
+
export type CompressedOperationsData = {
|
|
37
|
+
/**
|
|
38
|
+
* List of operations compressed to the binary format.
|
|
39
|
+
*/
|
|
40
|
+
buffers: Array<Uint8Array>;
|
|
41
|
+
/**
|
|
42
|
+
* List of compressor identifiers. According to this types a proper compressor will be used for the decompression.
|
|
43
|
+
*/
|
|
44
|
+
types: Array<number>;
|
|
45
|
+
/**
|
|
46
|
+
* Base version of the first compressed operation.
|
|
47
|
+
*/
|
|
48
|
+
baseVersion: number;
|
|
49
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
export { default as Compressor, type CompressedOperationsData } from './compressor.js';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
import MarkerOperationCompressor from './markeroperationcompressor.js';
|
|
10
|
+
import type { ProtobufDescriptor } from '../protobuffactory.js';
|
|
11
|
+
import type { CompressedOperationsData } from '../compressor.js';
|
|
12
|
+
import type { MarkerOperation } from 'ckeditor5/src/engine.js';
|
|
13
|
+
export default class AnnotationMarkerOperationCompressor extends MarkerOperationCompressor {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
constructor(id: number, name: string, descriptor: ProtobufDescriptor, namespaceToOmit: string);
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
compress(result: CompressedOperationsData, operations: Array<MarkerOperation>): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
decompress(result: Array<MarkerOperation>, data: CompressedOperationsData): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
import OperationCompressor from './operationcompressor.js';
|
|
10
|
+
import type { CompressedOperationsData } from '../compressor.js';
|
|
11
|
+
import type { AttributeOperation } from 'ckeditor5/src/engine.js';
|
|
12
|
+
export default class AttributeOperationCompressor extends OperationCompressor {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
compress(result: CompressedOperationsData, operations: Array<AttributeOperation>): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
decompress(result: Array<AttributeOperation>, data: CompressedOperationsData): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
import OperationCompressor from './operationcompressor.js';
|
|
10
|
+
import type { CompressedOperationsData } from '../compressor.js';
|
|
11
|
+
import type { InsertOperation } from 'ckeditor5/src/engine.js';
|
|
12
|
+
export default class InsertOperationCompressor extends OperationCompressor {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
compress(result: CompressedOperationsData, operations: Array<InsertOperation>): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
decompress(result: Array<InsertOperation>, data: CompressedOperationsData): void;
|
|
21
|
+
}
|