@univerjs-pro/collaboration 0.21.1 → 0.22.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/README.md +26 -7
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +26 -20
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xfc9601=_0x5cb6;(function(_0x2d4a6f,_0x5b7a98){const _0x44a6cc=_0x5cb6,_0x655217=_0x2d4a6f();while(!![]){try{const _0x2e23dd=-parseInt(_0x44a6cc(0x32c))/0x1*(parseInt(_0x44a6cc(0x351))/0x2)+-parseInt(_0x44a6cc(0x20a))/0x3+-parseInt(_0x44a6cc(0x2ff))/0x4+-parseInt(_0x44a6cc(0x3b9))/0x5*(-parseInt(_0x44a6cc(0x29e))/0x6)+-parseInt(_0x44a6cc(0x3e3))/0x7*(-parseInt(_0x44a6cc(0x207))/0x8)+-parseInt(_0x44a6cc(0x3cd))/0x9+parseInt(_0x44a6cc(0x2a3))/0xa;if(_0x2e23dd===_0x5b7a98)break;else _0x655217['push'](_0x655217['shift']());}catch(_0x4b4f1a){_0x655217['push'](_0x655217['shift']());}}}(_0x5f10,0x8e126),Object[_0xfc9601(0x238)](exports,Symbol[_0xfc9601(0x343)],{'value':'Module'}));let _univerjs_core=require('@univerjs/core'),_univerjs_docs=require('@univerjs/docs'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_thread_comment=require('@univerjs/thread-comment'),_univerjs_sheets_conditional_formatting=require('@univerjs/sheets-conditional-formatting'),_univerjs_data_validation=require('@univerjs/data-validation'),_univerjs_sheets_hyper_link=require('@univerjs/sheets-hyper-link'),_univerjs_sheets_filter=require('@univerjs/sheets-filter'),_univerjs_engine_formula=require('@univerjs/engine-formula'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),_univerjs_pro_license=require('@univerjs-pro/license'),_univerjs_protocol=require('@univerjs/protocol'),uuid=require('uuid');const CreateUnitMutation={'id':'univer.mutation.create-unit','type':_univerjs_core[_0xfc9601(0x21b)]['MUTATION'],'handler':()=>{return!![];}},RevertRevisionMutation={'id':_0xfc9601(0x37e),'type':_univerjs_core[_0xfc9601(0x21b)][_0xfc9601(0x3d4)],'handler':()=>{return!![];}};function isTransformMutationFailure(_0xbb6e4d){const _0x25a7d9=_0xfc9601;return!!_0xbb6e4d[_0x25a7d9(0x2ef)];}function isTransformMutationSuccess(_0x234101){return!isTransformMutationFailure(_0x234101);}function isInclineTransformMutationsFailure(_0x4a3abc){const _0x55a38d=_0xfc9601;return!!_0x4a3abc[_0x55a38d(0x2ef)];}function isTransformMutationsFailure(_0x3da8cb){const _0x3ae891=_0xfc9601;return!!_0x3da8cb[_0x3ae891(0x2ef)];}function isTransformMutationsSuccess(_0xe32c10){return!isTransformMutationsFailure(_0xe32c10);}function isTransformChangesetsFailure(_0x3d1d25){const _0x3805c3=_0xfc9601;return!!_0x3d1d25[_0x3805c3(0x2ef)];}function isTransformChangesetsSuccess(_0x483393){return!isTransformChangesetsFailure(_0x483393);}function isTransformMutationsWithChangesetFailure(_0x29b0f9){const _0x3a390b=_0xfc9601;return!!_0x29b0f9[_0x3a390b(0x2ef)];}function isTransformMutationsWithChangesetSuccess(_0x2b5dd9){return!isTransformMutationsWithChangesetFailure(_0x2b5dd9);}function _typeof(_0x14bf08){'@babel/helpers - typeof';const _0x2ee8e4=_0xfc9601;return _typeof=_0x2ee8e4(0x249)==typeof Symbol&&_0x2ee8e4(0x403)==typeof Symbol[_0x2ee8e4(0x218)]?function(_0x5d14af){return typeof _0x5d14af;}:function(_0xfbde49){const _0x5454f0=_0x2ee8e4;return _0xfbde49&&_0x5454f0(0x249)==typeof Symbol&&_0xfbde49[_0x5454f0(0x3a0)]===Symbol&&_0xfbde49!==Symbol[_0x5454f0(0x3c7)]?_0x5454f0(0x403):typeof _0xfbde49;},_typeof(_0x14bf08);}function toPrimitive(_0x371b41,_0x2e81d1){const _0x19efec=_0xfc9601;if('object'!=_typeof(_0x371b41)||!_0x371b41)return _0x371b41;var _0x482b4c=_0x371b41[Symbol[_0x19efec(0x38a)]];if(void 0x0!==_0x482b4c){var _0x2023f9=_0x482b4c[_0x19efec(0x2cd)](_0x371b41,_0x2e81d1||'default');if(_0x19efec(0x1e7)!=_typeof(_0x2023f9))return _0x2023f9;throw new TypeError(_0x19efec(0x3af));}return('string'===_0x2e81d1?String:Number)(_0x371b41);}function toPropertyKey(_0x7b8df8){const _0x3a61a9=_0xfc9601;var _0x156a24=toPrimitive(_0x7b8df8,_0x3a61a9(0x254));return _0x3a61a9(0x403)==_typeof(_0x156a24)?_0x156a24:_0x156a24+'';}function _defineProperty(_0x1da7a5,_0x520af2,_0x22acc0){return(_0x520af2=toPropertyKey(_0x520af2))in _0x1da7a5?Object['defineProperty'](_0x1da7a5,_0x520af2,{'value':_0x22acc0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1da7a5[_0x520af2]=_0x22acc0,_0x1da7a5;}function __decorateParam(_0x1bf0a1,_0x3f6b99){return function(_0x10f92c,_0x57a96b){_0x3f6b99(_0x10f92c,_0x57a96b,_0x1bf0a1);};}function __decorate(_0x8101b4,_0x57c925,_0x425689,_0x24d647){const _0x3768b3=_0xfc9601;var _0x47a8a1=arguments[_0x3768b3(0x29d)],_0x27755e=_0x47a8a1<0x3?_0x57c925:_0x24d647===null?_0x24d647=Object['getOwnPropertyDescriptor'](_0x57c925,_0x425689):_0x24d647,_0x3ec229;if(typeof Reflect==='object'&&typeof Reflect[_0x3768b3(0x366)]===_0x3768b3(0x249))_0x27755e=Reflect[_0x3768b3(0x366)](_0x8101b4,_0x57c925,_0x425689,_0x24d647);else{for(var _0x43a084=_0x8101b4[_0x3768b3(0x29d)]-0x1;_0x43a084>=0x0;_0x43a084--)if(_0x3ec229=_0x8101b4[_0x43a084])_0x27755e=(_0x47a8a1<0x3?_0x3ec229(_0x27755e):_0x47a8a1>0x3?_0x3ec229(_0x57c925,_0x425689,_0x27755e):_0x3ec229(_0x57c925,_0x425689))||_0x27755e;}return _0x47a8a1>0x3&&_0x27755e&&Object[_0x3768b3(0x238)](_0x57c925,_0x425689,_0x27755e),_0x27755e;}function _0x5cb6(_0x37fcd9,_0x76206a){_0x37fcd9=_0x37fcd9-0x1b7;const _0x5f10dc=_0x5f10();let _0x5cb659=_0x5f10dc[_0x37fcd9];return _0x5cb659;}const DEFAULT_LOOP_LIMIT_TIME=0xbb8,ITransformService=(0x0,_univerjs_core[_0xfc9601(0x279)])(_0xfc9601(0x32f));let TransformService=class TransformService extends _univerjs_core[_0xfc9601(0x2a7)]{constructor(_0x13509e){const _0x396c5f=_0xfc9601;super(),this[_0x396c5f(0x2a1)]=_0x13509e,_defineProperty(this,_0x396c5f(0x3e9),new Map()),_defineProperty(this,'_loopLimitTime',DEFAULT_LOOP_LIMIT_TIME),_defineProperty(this,_0x396c5f(0x2df),new Map());}[_0xfc9601(0x2c1)](){const _0x4425d1=_0xfc9601;this[_0x4425d1(0x3e9)][_0x4425d1(0x318)](),this[_0x4425d1(0x2df)][_0x4425d1(0x318)]();}[_0xfc9601(0x3c0)](_0x4e3102){const _0x1a32e8=_0xfc9601,{m1:_0x2b9a5e,m2:m2=_0x1a32e8(0x3fb)}=_0x4e3102;if(!this[_0x1a32e8(0x3e9)][_0x1a32e8(0x1d9)](_0x2b9a5e))this[_0x1a32e8(0x3e9)]['set'](_0x2b9a5e,new Map());const _0x342693=this[_0x1a32e8(0x3e9)][_0x1a32e8(0x3a1)](_0x2b9a5e);if(_0x342693[_0x1a32e8(0x1d9)](m2))throw new Error(_0x1a32e8(0x301)+_0x2b9a5e+_0x1a32e8(0x260)+m2+_0x1a32e8(0x1c1));_0x342693['set'](m2,_0x4e3102);}[_0xfc9601(0x290)](_0xa564d4,_0x56a627,_0x4f49eb){const _0x2bd20f=_0xfc9601;var _0x57feee,_0x3e7a28,_0x3f1984,_0x550912,_0x4b5456,_0x185f35;const _0x503528=this['_transformMap'],_0x384a10=((_0x57feee=_0x503528[_0x2bd20f(0x3a1)](_0xa564d4['id']))===null||_0x57feee===void 0x0?void 0x0:_0x57feee[_0x2bd20f(0x3a1)](_0x56a627['id']))||((_0x3e7a28=_0x503528['get'](_0xa564d4['id']))===null||_0x3e7a28===void 0x0?void 0x0:_0x3e7a28[_0x2bd20f(0x3a1)](_0x2bd20f(0x3fb)))||((_0x3f1984=_0x503528[_0x2bd20f(0x3a1)](_0x2bd20f(0x3fb)))===null||_0x3f1984===void 0x0?void 0x0:_0x3f1984['get'](_0x56a627['id']));if(_0x384a10)return _0x4f49eb?_0x384a10[_0x2bd20f(0x3f8)](_0xa564d4,_0x56a627,_0x4f49eb):_0x384a10[_0x2bd20f(0x3f8)](_0xa564d4,_0x56a627);const _0x81905e=((_0x550912=_0x503528[_0x2bd20f(0x3a1)](_0x56a627['id']))===null||_0x550912===void 0x0?void 0x0:_0x550912[_0x2bd20f(0x3a1)](_0xa564d4['id']))||((_0x4b5456=_0x503528[_0x2bd20f(0x3a1)](_0x56a627['id']))===null||_0x4b5456===void 0x0?void 0x0:_0x4b5456['get']('any'))||((_0x185f35=_0x503528[_0x2bd20f(0x3a1)](_0x2bd20f(0x3fb)))===null||_0x185f35===void 0x0?void 0x0:_0x185f35[_0x2bd20f(0x3a1)](_0xa564d4['id']));if(_0x81905e){const _0xfd9887=_0x4f49eb?_0x81905e[_0x2bd20f(0x3f8)](_0x56a627,_0xa564d4,_0x4f49eb):_0x81905e[_0x2bd20f(0x3f8)](_0x56a627,_0xa564d4);if(isTransformMutationSuccess(_0xfd9887))return _0x4f49eb?{'m2Prime':_0xfd9887[_0x2bd20f(0x39d)]}:{'m2Prime':_0xfd9887[_0x2bd20f(0x39d)],'m1Prime':_0xfd9887[_0x2bd20f(0x3d9)]};return _0xfd9887;}return{'m1Prime':_0xa564d4,'m2Prime':_0x56a627};}['transformMutations'](_0x3e404f,_0xb650c7,_0x164d3a){const _0x34cd56=_0xfc9601;this[_0x34cd56(0x2df)][_0x34cd56(0x209)]('m1',_0x3e404f),this[_0x34cd56(0x2df)][_0x34cd56(0x209)]('m2',_0xb650c7);const _0x4b1bb7=Date[_0x34cd56(0x1e0)](),_0x171e30=this[_0x34cd56(0x334)](_0x3e404f,_0xb650c7,_0x4b1bb7);if(isInclineTransformMutationsFailure(_0x171e30))return _0x171e30;if(_0x164d3a)return{'m2Prime':_0x171e30};const _0x2ccd9c=this[_0x34cd56(0x39b)](_0x3e404f,_0xb650c7,_0x4b1bb7);if(isInclineTransformMutationsFailure(_0x2ccd9c))return _0x2ccd9c;return this[_0x34cd56(0x2df)][_0x34cd56(0x318)](),{'m1Prime':_0x2ccd9c,'m2Prime':_0x171e30};}[_0xfc9601(0x334)](_0xcd8edf,_0x58bb92,_0x5eca67){const _0xcbe14c=_0xfc9601;Date[_0xcbe14c(0x1e0)]()===_0x5eca67&&(this[_0xcbe14c(0x2a1)][_0xcbe14c(0x283)](_0xcbe14c(0x24b)+new Date()[_0xcbe14c(0x21a)]()),this[_0xcbe14c(0x2a1)][_0xcbe14c(0x283)]('[debug]\x20m1Length:\x20',_0xcd8edf[_0xcbe14c(0x29d)]),this[_0xcbe14c(0x2a1)][_0xcbe14c(0x283)](_0xcbe14c(0x385),_0x58bb92[_0xcbe14c(0x29d)]));const _0x1bdd3c=_0xcd8edf[_0xcbe14c(0x29d)];let _0x26081d=0x0,_0x2b3916=0x0,_0x588337;for(_0x588337=0x0;_0x588337<_0x1bdd3c;_0x588337++){_0x26081d++;if(_0x26081d%0x2710===0x0&&Date[_0xcbe14c(0x1e0)]()-_0x5eca67>this[_0xcbe14c(0x20b)]){this[_0xcbe14c(0x34f)](_0xcbe14c(0x333)),this[_0xcbe14c(0x3f2)](_0xcd8edf[_0xcbe14c(0x29d)],_0x58bb92[_0xcbe14c(0x29d)],_0xcbe14c(0x333));throw new Error(_0xcbe14c(0x316));}let _0x1b0056=[_0xcd8edf[_0x588337]],_0x301170=[];for(let _0x50f8d4=0x0,_0x213592=_0x58bb92[_0xcbe14c(0x29d)];_0x50f8d4<_0x213592;_0x50f8d4++){_0x2b3916++;if(_0x2b3916%0x2710===0x0&&Date[_0xcbe14c(0x1e0)]()-_0x5eca67>this[_0xcbe14c(0x20b)]){this[_0xcbe14c(0x34f)](_0xcbe14c(0x40b)),this['_logCurrentTransformMutations'](_0xcd8edf[_0xcbe14c(0x29d)],_0x58bb92[_0xcbe14c(0x29d)],_0xcbe14c(0x40b));throw new Error(_0xcbe14c(0x2d1));}const _0x120f75=_0x58bb92[_0x50f8d4];let _0x27870d;if(_0x1b0056[_0xcbe14c(0x29d)]===0x0)_0x27870d=[_0x120f75],_0x1b0056=[];else{if(_0x1b0056[_0xcbe14c(0x29d)]===0x1){const _0x294815=this[_0xcbe14c(0x290)](_0x1b0056[0x0],_0x120f75);if(isTransformMutationFailure(_0x294815))return _0x294815;_0x27870d=makeArray(_0x294815[_0xcbe14c(0x3d9)]);if(!_0x294815[_0xcbe14c(0x39d)])throw new Error('Algorithm\x20error,\x20m1Prime\x20should\x20not\x20be\x20undefined.');_0x1b0056=makeArray(_0x294815['m1Prime']);}else{const _0x215e82=this[_0xcbe14c(0x334)](_0x1b0056,[_0x120f75],_0x5eca67);if(_0x215e82['error'])return _0x215e82;_0x27870d=_0x215e82;if(_0x50f8d4<_0x213592-0x1){const _0x1ed521=this[_0xcbe14c(0x39b)](_0x1b0056,[_0x120f75],_0x5eca67);if(_0x1ed521[_0xcbe14c(0x2ef)])return _0x1ed521;_0x1b0056=_0x1ed521;}}}_0x301170=_0x301170['concat'](_0x27870d);}_0x58bb92=_0x301170;}return _0x58bb92;}['_leftInclineTransformMutations'](_0x50fa09,_0x5a7cba,_0x3573fe){const _0x27a613=_0xfc9601;Date[_0x27a613(0x1e0)]()===_0x3573fe&&(this[_0x27a613(0x2a1)][_0x27a613(0x283)](_0x27a613(0x2cf)+new Date()['toISOString']()),this['_logService'][_0x27a613(0x283)](_0x27a613(0x38b),_0x50fa09[_0x27a613(0x29d)]),this[_0x27a613(0x2a1)][_0x27a613(0x283)](_0x27a613(0x385),_0x5a7cba['length']));const _0x2b5ae7=_0x5a7cba[_0x27a613(0x29d)];let _0xa3d4b9,_0x14f1b2=0x0,_0xc65c82=0x0;for(_0xa3d4b9=0x0;_0xa3d4b9<_0x2b5ae7;_0xa3d4b9++){_0x14f1b2++;if(_0x14f1b2%0x2710===0x0&&Date[_0x27a613(0x1e0)]()-_0x3573fe>this[_0x27a613(0x20b)]){this[_0x27a613(0x34f)](_0x27a613(0x321)),this[_0x27a613(0x3f2)](_0x50fa09['length'],_0x5a7cba[_0x27a613(0x29d)],'left-loop1');throw new Error(_0x27a613(0x2cb));}let _0x180fa6=[_0x5a7cba[_0xa3d4b9]],_0x304de0=[];for(let _0x455908=0x0,_0x175268=_0x50fa09[_0x27a613(0x29d)];_0x455908<_0x175268;_0x455908++){_0xc65c82++;if(_0xc65c82%0x2710===0x0&&Date['now']()-_0x3573fe>this['_loopLimitTime']){this['_logOriginTransformMutations'](_0x27a613(0x1b7)),this[_0x27a613(0x3f2)](_0x50fa09['length'],_0x5a7cba['length'],_0x27a613(0x1b7));throw new Error(_0x27a613(0x1b9));}const _0x3b269b=_0x50fa09[_0x455908];let _0x19d247;if(_0x180fa6[_0x27a613(0x29d)]===0x0)_0x19d247=[_0x3b269b],_0x180fa6=[];else{if(_0x180fa6[_0x27a613(0x29d)]===0x1){const _0x247375=this[_0x27a613(0x290)](_0x3b269b,_0x180fa6[0x0]);if(isTransformMutationFailure(_0x247375))return _0x247375;if(!_0x247375['m1Prime'])throw new Error(_0x27a613(0x337));_0x19d247=makeArray(_0x247375['m1Prime']),_0x180fa6=makeArray(_0x247375['m2Prime']);}else{const _0xfe5840=this[_0x27a613(0x39b)]([_0x3b269b],_0x180fa6,_0x3573fe);if(_0xfe5840[_0x27a613(0x2ef)])return _0xfe5840;_0x19d247=_0xfe5840;if(_0x455908<_0x175268-0x1){const _0x3b25f7=this[_0x27a613(0x334)]([_0x3b269b],_0x180fa6,_0x3573fe);if(_0x3b25f7['error'])return _0x3b25f7;_0x180fa6=_0x3b25f7;}}}_0x304de0=_0x304de0[_0x27a613(0x2da)](_0x19d247);}_0x50fa09=_0x304de0;}return _0x50fa09;}[_0xfc9601(0x35f)](_0x2cf296,_0x4afcf1,_0x3d2892){const _0x24a58b=_0xfc9601;if(!checkChangesetsAligned(_0x2cf296,_0x4afcf1))throw new Error(_0x24a58b(0x275)+_0x4afcf1[0x0][_0x24a58b(0x3ce)]+_0x24a58b(0x383)+_0x2cf296[0x0][_0x24a58b(0x37b)]+'.');const _0x471382=_0x2cf296[_0x24a58b(0x29d)],_0x590d38=_0x4afcf1['length'],_0x576fc6=makeMatrixArray(_0x471382,_0x590d38+0x1),_0x5a586b=makeMatrixArray(_0x471382+0x1,_0x590d38);_0x2cf296[_0x24a58b(0x302)]((_0x425372,_0x7617bf)=>_0x576fc6[_0x7617bf][0x0]=_0x425372),_0x4afcf1['forEach']((_0x2ba461,_0x57b28c)=>_0x5a586b[0x0][_0x57b28c]=_0x2ba461);try{for(let _0x171134=0x0;_0x171134<_0x590d38;_0x171134++)for(let _0xfb4ce5=0x0;_0xfb4ce5<_0x471382;_0xfb4ce5++){const _0x476d24=_0x5a586b[_0xfb4ce5][_0x171134],_0x2e8af9=_0x576fc6[_0xfb4ce5][_0x171134];if(!_0x476d24||!_0x2e8af9)throw new Error(_0x24a58b(0x2ca));const {mutations:_0x1d2184,..._0x16c12c}=_0x2e8af9,{mutations:_0x5c71a8,..._0x1f0f25}=_0x476d24;this[_0x24a58b(0x2a1)][_0x24a58b(0x283)](_0x24a58b(0x3d2)+new Date()[_0x24a58b(0x21a)]()),this[_0x24a58b(0x2a1)][_0x24a58b(0x283)](_0x24a58b(0x3ff),JSON[_0x24a58b(0x2f0)](_0x16c12c)),this['_logService'][_0x24a58b(0x283)](_0x24a58b(0x232),JSON[_0x24a58b(0x2f0)](_0x1f0f25));const _0x50a3e6=this[_0x24a58b(0x36e)](_0x1d2184,_0x5c71a8);if(isTransformMutationsFailure(_0x50a3e6))return{'error':_0x50a3e6[_0x24a58b(0x2ef)]};_0x5a586b[_0xfb4ce5+0x1][_0x171134]={..._0x476d24,'mutations':_0x50a3e6['m2Prime']},_0x576fc6[_0xfb4ce5][_0x171134+0x1]={..._0x2e8af9,'mutations':_0x50a3e6['m1Prime']};}if(!_0x3d2892)return{'c1Prime':_0x576fc6[_0x24a58b(0x3b3)](_0x237f4a=>_0x237f4a[_0x590d38])[_0x24a58b(0x1cc)](),'c2Prime':_0x5a586b[_0x471382]};return{'c2Prime':_0x5a586b[_0x471382]};}catch(_0x3065e4){console['error'](_0x3065e4);throw _0x3065e4;}}[_0xfc9601(0x2eb)](_0x20f0a6,_0x490839){const _0xdc2154=_0xfc9601,_0x53cf46=_0x20f0a6[_0xdc2154(0x356)],_0x639990=this[_0xdc2154(0x36e)](_0x53cf46,_0x490839);if(isTransformMutationsFailure(_0x639990))return{'error':_0x639990[_0xdc2154(0x2ef)]};return{'m2Prime':_0x639990[_0xdc2154(0x3d9)],'c1Prime':{..._0x20f0a6,'mutations':_0x639990[_0xdc2154(0x39d)]}};}[_0xfc9601(0x34f)](_0xe16314){const _0x5344ff=_0xfc9601;this[_0x5344ff(0x2a1)]['error'](_0x5344ff(0x273)+_0xe16314+_0x5344ff(0x204)+new Date()['toISOString']());const _0x16486f=this['_transformMutationsCache']['get']('m1'),_0x2598b3=this[_0x5344ff(0x2df)][_0x5344ff(0x3a1)]('m2');if(_0x16486f)_0x16486f[_0x5344ff(0x302)]((_0x6054f0,_0x16f5d8)=>{const _0x1dd651=_0x5344ff;this['_logService']['error'](_0x1dd651(0x310)+_0x16f5d8+']:\x20',JSON['stringify'](_0x6054f0));});if(_0x2598b3)_0x2598b3['forEach']((_0x409b57,_0x49254d)=>{const _0x5501ef=_0x5344ff;this['_logService'][_0x5501ef(0x2ef)](_0x5501ef(0x35b)+_0x49254d+':\x20',JSON[_0x5501ef(0x2f0)](_0x409b57));});}[_0xfc9601(0x3f2)](_0x2f766d,_0x4d138d,_0x378b2b){const _0x34a7f1=_0xfc9601;this[_0x34a7f1(0x2a1)][_0x34a7f1(0x2ef)](_0x34a7f1(0x3c6)+_0x378b2b+_0x34a7f1(0x204)+new Date()[_0x34a7f1(0x21a)]()),this[_0x34a7f1(0x2a1)][_0x34a7f1(0x2ef)](_0x34a7f1(0x371)+_0x2f766d),this['_logService'][_0x34a7f1(0x2ef)]('[Error]\x20m2Length:\x20'+_0x4d138d);}};TransformService=__decorate([__decorateParam(0x0,_univerjs_core[_0xfc9601(0x3df)])],TransformService);function checkChangesetsAligned(_0x3c7e01,_0x4663bc){const _0x51205c=_0xfc9601;if(_0x3c7e01[0x0]['revision']-0x1!==_0x4663bc[0x0][_0x51205c(0x3ce)])return![];return!![];}function makeMatrixArray(_0x10ac4e,_0x1852bf){return new Array(_0x10ac4e)['fill'](void 0x0)['map'](()=>new Array(_0x1852bf));}function makeArray(_0x496d5a){const _0x2b8fc4=_0xfc9601;return Array[_0x2b8fc4(0x276)](_0x496d5a)?_0x496d5a:[_0x496d5a];}function extractActionsBySegmentId(_0x497bbc,_0x560ef3){const _0x1c3ca5=_0xfc9601;if(!Array['isArray'](_0x497bbc))return;const _0x29f98f=_0x497bbc[_0x1c3ca5(0x3e1)](_0x1c3ca5(0x326))>-0x1?_0x497bbc:_0x497bbc[_0x1c3ca5(0x367)](_0x3c547b=>{const _0x4da00c=_0x1c3ca5;return Array['isArray'](_0x3c547b)&&_0x3c547b[_0x4da00c(0x3e1)](_0x4da00c(0x326))>-0x1;});if(!Array[_0x1c3ca5(0x276)](_0x29f98f))return;const _0x43fb36=_0x29f98f[_0x1c3ca5(0x3e1)]('body');if(_0x43fb36===-0x1)return;if((_0x43fb36===0x0?'':_0x29f98f[_0x43fb36-0x1])!==_0x560ef3)return;return _0x29f98f[_0x1c3ca5(0x228)](_0x43fb36);}function transformTextRanges(_0x1ae9d7,_0x1a0508,_0xe1ff69=_0xfc9601(0x34c)){const _0x169192=_0xfc9601;if(_0x1a0508[_0x169192(0x29d)]===0x0)return[];const {segmentId:_0x2c4f91}=_0x1a0508[0x0];if(_0x2c4f91==null)return _0x1a0508;const _0x27ec19=extractActionsBySegmentId(_0x1ae9d7,_0x2c4f91);if(_0x27ec19==null)return _0x1a0508;const _0x9df47d=[];for(const _0x51c0d0 of _0x1a0508){const _0x4162f0=_univerjs_core[_0x169192(0x350)]['transformPosition'](_0x27ec19,_0x51c0d0['startOffset'],_0xe1ff69),_0x111e6f=_univerjs_core[_0x169192(0x350)][_0x169192(0x39f)](_0x27ec19,_0x51c0d0[_0x169192(0x1c7)],_0xe1ff69),_0xfacdcf={..._0x51c0d0,'startOffset':_0x4162f0,'endOffset':_0x111e6f,'collapsed':_0x4162f0===_0x111e6f};_0x9df47d[_0x169192(0x380)](_0xfacdcf);}return _0x9df47d;}const RichTextEditingMutationWithSelf={'m1':_univerjs_docs['RichTextEditingMutation']['id'],'m2':_univerjs_docs[_0xfc9601(0x317)]['id'],'handler'(_0x551a7b,_0x85c4bf){const _0x20bd6a=_0xfc9601;if(_0x551a7b['params'][_0x20bd6a(0x1d0)]!==_0x85c4bf['params']['unitId'])return{'error':new Error('Two\x20mutation\x20need\x20have\x20the\x20same\x20unitId!')};const _0x484393=_univerjs_core['Tools'][_0x20bd6a(0x1cf)](_0x551a7b),_0x4cd822=_univerjs_core[_0x20bd6a(0x1c3)][_0x20bd6a(0x1cf)](_0x85c4bf);return{'m1Prime':{..._0x484393,'params':{..._0x484393[_0x20bd6a(0x3eb)],'actions':_univerjs_core[_0x20bd6a(0x350)]['transform'](_0x484393['params'][_0x20bd6a(0x272)],_0x4cd822[_0x20bd6a(0x3eb)][_0x20bd6a(0x272)],_0x20bd6a(0x214)),'textRanges':_0x484393[_0x20bd6a(0x3eb)][_0x20bd6a(0x3a7)]?transformTextRanges(_0x4cd822[_0x20bd6a(0x3eb)]['actions'],_0x484393[_0x20bd6a(0x3eb)]['textRanges'],_0x20bd6a(0x34c)):null}},'m2Prime':{..._0x4cd822,'params':{..._0x4cd822[_0x20bd6a(0x3eb)],'actions':_univerjs_core[_0x20bd6a(0x350)][_0x20bd6a(0x295)](_0x4cd822[_0x20bd6a(0x3eb)][_0x20bd6a(0x272)],_0x484393[_0x20bd6a(0x3eb)][_0x20bd6a(0x272)],_0x20bd6a(0x34c)),'textRanges':_0x4cd822[_0x20bd6a(0x3eb)][_0x20bd6a(0x3a7)]?transformTextRanges(_0x484393['params'][_0x20bd6a(0x272)],_0x4cd822['params'][_0x20bd6a(0x3a7)],'right'):null}}};}},DocAlgorithms=[RichTextEditingMutationWithSelf];let DocTransformController=class DocTransformController extends _univerjs_core['Disposable']{constructor(_0x1098d4){const _0x2e90f9=_0xfc9601;super(),this[_0x2e90f9(0x288)]=_0x1098d4,[...DocAlgorithms][_0x2e90f9(0x302)](_0x32f1ee=>{const _0x2105a0=_0x2e90f9;this[_0x2105a0(0x288)][_0x2105a0(0x3c0)](_0x32f1ee);});}};DocTransformController=__decorate([__decorateParam(0x0,ITransformService)],DocTransformController);const EmptyMutationInfo={'id':_univerjs_sheets[_0xfc9601(0x305)]['id'],'type':_univerjs_core[_0xfc9601(0x21b)][_0xfc9601(0x3d4)],'params':{}},addCommentMutationWithSelf={'m1':_univerjs_thread_comment[_0xfc9601(0x411)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x411)]['id'],'handler':(_0x232e4c,_0x3483c0)=>{const _0x590554=_0xfc9601,_0x241dd0=_0x232e4c[_0x590554(0x3eb)],_0x305706=_0x3483c0['params'],_0xf59a2d={'m1Prime':_0x232e4c,'m2Prime':_0x3483c0};if(_0x241dd0[_0x590554(0x1d0)]!==_0x305706[_0x590554(0x1d0)]||_0x241dd0['subUnitId']!==_0x305706[_0x590554(0x25e)]||_0x241dd0[_0x590554(0x223)]['ref']!==_0x305706[_0x590554(0x223)]['ref'])return _0xf59a2d;if(!_0x241dd0[_0x590554(0x223)][_0x590554(0x22d)]&&!_0x305706[_0x590554(0x223)][_0x590554(0x22d)]){const _0x5a743f=_univerjs_core[_0x590554(0x1c3)][_0x590554(0x1cf)](_0x3483c0);return _0x5a743f[_0x590554(0x3eb)][_0x590554(0x223)][_0x590554(0x22d)]=_0x232e4c['params'][_0x590554(0x223)]['id'],{'m1Prime':[{'id':_univerjs_thread_comment[_0x590554(0x2ba)]['id'],'params':{'unitId':_0x241dd0[_0x590554(0x1d0)],'subUnitId':_0x305706[_0x590554(0x25e)],'commentId':_0x305706[_0x590554(0x223)]['id']}},_0x232e4c,_0x5a743f],'m2Prime':[_0x5a743f]};}return _0xf59a2d;}},addConditionalFormattingRuleMutationWithSelf={'m1':_univerjs_sheets_conditional_formatting[_0xfc9601(0x40c)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x40c)]['id'],'handler'(_0x160e46,_0x2d4567){const _0x4d8cbc=_0xfc9601;if(_0x160e46['params']['unitId']!==_0x2d4567[_0x4d8cbc(0x3eb)][_0x4d8cbc(0x1d0)]||_0x160e46[_0x4d8cbc(0x3eb)][_0x4d8cbc(0x25e)]!==_0x2d4567[_0x4d8cbc(0x3eb)][_0x4d8cbc(0x25e)])return{'m1Prime':_0x160e46,'m2Prime':_0x2d4567};const {unitId:_0x1c92dc,subUnitId:_0x1c7255}=_0x160e46[_0x4d8cbc(0x3eb)],_0xb1837=_univerjs_core[_0x4d8cbc(0x1c3)][_0x4d8cbc(0x1cf)](_0x160e46),_0x12a77c=_univerjs_core[_0x4d8cbc(0x1c3)]['deepClone'](_0x2d4567),_0x43b7f9=[_0xb1837],_0x5f2bdb={'unitId':_0x1c92dc,'subUnitId':_0x1c7255,'start':{'id':_0x12a77c[_0x4d8cbc(0x3eb)][_0x4d8cbc(0x331)]['cfId'],'type':'before'},'end':{'id':_0x12a77c[_0x4d8cbc(0x3eb)][_0x4d8cbc(0x331)][_0x4d8cbc(0x24d)],'type':'after'}};return _0x43b7f9['push']({'id':_univerjs_sheets_conditional_formatting[_0x4d8cbc(0x23e)]['id'],'params':_0x5f2bdb}),{'m1Prime':_0x43b7f9,'m2Prime':_0x12a77c};}};function applyAddMutationTransform(_0x3f86a9,_0x3a580,_0xf5449a,_0x37722a){const _0x1d6dc5=_0xfc9601,_0x4899ce=new _univerjs_core['ObjectMatrix']();_0xf5449a[_0x1d6dc5(0x302)](_0x37c966=>{const _0x5b57fe=_0x1d6dc5;_0x37c966['ranges'][_0x5b57fe(0x302)](_0x293555=>{const _0x356625=_0x5b57fe;_univerjs_core[_0x356625(0x33f)][_0x356625(0x1d6)](_0x293555,(_0x59e112,_0x21babe)=>{const _0x2b0ded=_0x356625;_0x4899ce[_0x2b0ded(0x2fe)](_0x59e112,_0x21babe,_0x37c966[_0x2b0ded(0x1ec)]);});});}),_0x37722a[_0x1d6dc5(0x302)](_0x48cb92=>{const _0x5da53d=_0x1d6dc5;_0x48cb92[_0x5da53d(0x3a3)]['forEach'](_0x4fa45d=>{const _0x5e35c6=_0x5da53d;_univerjs_core[_0x5e35c6(0x33f)]['foreach'](_0x4fa45d,(_0x5ed434,_0xebe4a8)=>{_0x4899ce['setValue'](_0x5ed434,_0xebe4a8,_0x48cb92['uid']);});});});const _0x21e0cc=[];return _0xf5449a[_0x1d6dc5(0x302)](_0x5e949c=>{const _0x52251c=_0x1d6dc5,_0xbeab8b=(0x0,_univerjs_core[_0x52251c(0x1dc)])(_0x4899ce,_0x43bf0c=>_0x43bf0c===_0x5e949c[_0x52251c(0x1ec)]);if(!_0xbeab8b[_0x52251c(0x29d)]){const _0x15bb92={'ruleId':_0x5e949c[_0x52251c(0x1ec)],'unitId':_0x3f86a9,'subUnitId':_0x3a580};_0x21e0cc[_0x52251c(0x380)]({'id':_univerjs_data_validation['RemoveDataValidationMutation']['id'],'params':_0x15bb92});}else{if(!(0x0,_univerjs_core[_0x52251c(0x353)])(_0xbeab8b,_0x5e949c[_0x52251c(0x3a3)])){const _0x228937={'ruleId':_0x5e949c['uid'],'unitId':_0x3f86a9,'subUnitId':_0x3a580,'payload':{'type':_univerjs_data_validation[_0x52251c(0x28c)][_0x52251c(0x2fc)],'payload':_0xbeab8b}};_0x21e0cc[_0x52251c(0x380)]({'id':_univerjs_data_validation[_0x52251c(0x216)]['id'],'params':_0x228937});}}}),_0x21e0cc;}function mergeAddMutation(_0x1c3cce,_0x26d96a){const _0x500c3f=_0xfc9601,_0x149b07=_univerjs_core[_0x500c3f(0x1c3)][_0x500c3f(0x1cf)](Array[_0x500c3f(0x276)](_0x1c3cce[_0x500c3f(0x3eb)]['rule'])?_0x1c3cce[_0x500c3f(0x3eb)][_0x500c3f(0x331)]:[_0x1c3cce[_0x500c3f(0x3eb)][_0x500c3f(0x331)]]);return _0x26d96a[_0x500c3f(0x302)](_0x536ecc=>{const _0x388140=_0x500c3f;if(_0x536ecc['id']===_univerjs_data_validation[_0x388140(0x216)]['id']){const _0x5de4c0=_0x536ecc,_0x132c99=_0x149b07[_0x388140(0x367)](_0x4241e3=>_0x4241e3['uid']===_0x5de4c0[_0x388140(0x3eb)][_0x388140(0x2d2)]);_0x132c99[_0x388140(0x3a3)]=_0x5de4c0[_0x388140(0x3eb)]['payload'][_0x388140(0x210)];}else{if(_0x536ecc['id']===_univerjs_data_validation[_0x388140(0x252)]['id']){const _0x18ec21=_0x149b07[_0x388140(0x2e3)](_0x4b698d=>_0x4b698d[_0x388140(0x1ec)]===_0x536ecc[_0x388140(0x3eb)][_0x388140(0x2d2)]);_0x149b07[_0x18ec21]=null;}}}),_0x149b07[_0x500c3f(0x3cc)](Boolean)[_0x500c3f(0x29d)]?[{..._0x1c3cce,'params':{..._0x1c3cce[_0x500c3f(0x3eb)],'rule':_0x149b07['filter'](Boolean)}}]:[];}const addDataValidationMutationWithSelf={'m1':_univerjs_data_validation[_0xfc9601(0x311)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x311)]['id'],'handler':(_0x2d7b99,_0x2d8516)=>{const _0x54ef09=_0xfc9601,_0x4133f5={'m1Prime':_0x2d7b99,'m2Prime':_0x2d8516},_0x37cc4b=_0x2d7b99[_0x54ef09(0x3eb)],_0x5f198e=_0x2d8516[_0x54ef09(0x3eb)];if(_0x37cc4b[_0x54ef09(0x1d0)]!==_0x5f198e[_0x54ef09(0x1d0)]||_0x37cc4b[_0x54ef09(0x25e)]!==_0x5f198e[_0x54ef09(0x25e)])return _0x4133f5;const _0x51b370=_univerjs_core[_0x54ef09(0x1c3)][_0x54ef09(0x1cf)](_0x2d7b99),_0x2a73da=_univerjs_core[_0x54ef09(0x1c3)][_0x54ef09(0x1cf)](_0x2d8516),_0x5405de=_0x37cc4b[_0x54ef09(0x1d0)],_0x3c18cc=_0x5f198e[_0x54ef09(0x25e)],_0xd51b5a=_0x51b370[_0x54ef09(0x3eb)][_0x54ef09(0x331)],_0x8d1d34=_0x2a73da[_0x54ef09(0x3eb)][_0x54ef09(0x331)];if(Array['isArray'](_0xd51b5a)&&Array[_0x54ef09(0x276)](_0x8d1d34))return{'m1Prime':[],'m2Prime':[]};if(Array[_0x54ef09(0x276)](_0xd51b5a)){_0x51b370[_0x54ef09(0x3eb)]['index']=0x0;const _0x17af9c=applyAddMutationTransform(_0x5405de,_0x3c18cc,_0xd51b5a,[_0x8d1d34]);return{'m1Prime':mergeAddMutation(_0x51b370,_0x17af9c),'m2Prime':[..._0x17af9c,_0x2a73da]};}if(Array[_0x54ef09(0x276)](_0x8d1d34)){const _0x4f9c1a=applyAddMutationTransform(_0x5405de,_0x3c18cc,_0x8d1d34,[_0xd51b5a]);return _0x2a73da[_0x54ef09(0x3eb)]['index']=0x0,{'m1Prime':mergeAddMutation(_0x51b370,_0x4f9c1a),'m2Prime':[..._0x4f9c1a,_0x2a73da]};}const _0x4ddb9a=applyAddMutationTransform(_0x5405de,_0x3c18cc,[_0xd51b5a],[_0x8d1d34]);return _0x2a73da[_0x54ef09(0x3eb)]['index']=-0x1,{'m1Prime':mergeAddMutation(_0x51b370,_0x4ddb9a),'m2Prime':[..._0x4ddb9a,_0x2a73da]};}},addDataValidationMutationWithUpdate={'m1':_univerjs_data_validation['AddDataValidationMutation']['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x1f24c5,_0x188890)=>{const _0x46b816=_0xfc9601,_0x4d3da9={'m1Prime':_0x1f24c5,'m2Prime':_0x188890},_0x212de6=_0x1f24c5['params'],_0x30dffd=_0x188890['params'];if(_0x212de6['unitId']!==_0x30dffd[_0x46b816(0x1d0)]||_0x212de6[_0x46b816(0x25e)]!==_0x30dffd[_0x46b816(0x25e)])return _0x4d3da9;if(_0x188890[_0x46b816(0x3eb)][_0x46b816(0x210)][_0x46b816(0x266)]===_univerjs_data_validation[_0x46b816(0x28c)]['RANGE']){const {unitId:_0x592161,subUnitId:_0x1ec873}=_0x1f24c5[_0x46b816(0x3eb)],_0x35896c=Array[_0x46b816(0x276)](_0x1f24c5[_0x46b816(0x3eb)][_0x46b816(0x331)])?_0x1f24c5['params']['rule']:[_0x1f24c5[_0x46b816(0x3eb)]['rule']],_0x8f3d04=[],_0x2216d9=new _univerjs_core[(_0x46b816(0x3c2))]();return _0x35896c['forEach'](_0x3deac1=>{const _0x54c714=_0x46b816;_0x3deac1[_0x54c714(0x3a3)][_0x54c714(0x302)](_0x1cd094=>{const _0x528b38=_0x54c714;_univerjs_core[_0x528b38(0x33f)][_0x528b38(0x1d6)](_0x1cd094,(_0x37b4cf,_0x36b38a)=>{const _0x3ed8a4=_0x528b38;_0x2216d9[_0x3ed8a4(0x2fe)](_0x37b4cf,_0x36b38a,_0x3deac1[_0x3ed8a4(0x1ec)]);});});}),_0x188890[_0x46b816(0x3eb)]['payload'][_0x46b816(0x210)][_0x46b816(0x302)](_0x4bd764=>{const _0x17d9e3=_0x46b816;_univerjs_core['Range'][_0x17d9e3(0x1d6)](_0x4bd764,(_0x245cc0,_0x59ba83)=>{const _0x1a6709=_0x17d9e3;_0x2216d9[_0x1a6709(0x2fe)](_0x245cc0,_0x59ba83,_0x188890[_0x1a6709(0x3eb)][_0x1a6709(0x2d2)]);});}),_0x35896c[_0x46b816(0x302)](_0x24f6d9=>{const _0x4ffb97=_0x46b816,_0x2eb810=(0x0,_univerjs_core[_0x4ffb97(0x1dc)])(_0x2216d9,_0x57ad36=>_0x57ad36===_0x24f6d9[_0x4ffb97(0x1ec)]);if(!(0x0,_univerjs_core[_0x4ffb97(0x353)])(_0x2eb810,_0x24f6d9[_0x4ffb97(0x3a3)])){if(_0x2eb810[_0x4ffb97(0x29d)])_0x8f3d04[_0x4ffb97(0x380)]({'id':_univerjs_data_validation[_0x4ffb97(0x216)]['id'],'params':{'unitId':_0x592161,'subUnitId':_0x1ec873,'ruleId':_0x24f6d9['uid'],'payload':{'type':_univerjs_data_validation[_0x4ffb97(0x28c)][_0x4ffb97(0x2fc)],'payload':_0x2eb810}}});else _0x8f3d04['push']({'id':_univerjs_data_validation[_0x4ffb97(0x252)]['id'],'params':{'unitId':_0x592161,'subUnitId':_0x1ec873,'ruleId':_0x24f6d9[_0x4ffb97(0x1ec)]}});}}),{'m1Prime':mergeAddMutation(_0x1f24c5,_0x8f3d04),'m2Prime':[..._0x8f3d04,_0x188890]};}return _0x4d3da9;}},addHyperLinkWithSelf={'m1':_univerjs_sheets_hyper_link[_0xfc9601(0x400)]['id'],'m2':_univerjs_sheets_hyper_link['AddHyperLinkMutation']['id'],'handler':(_0x968789,_0x539dd4)=>{const _0x2231c5=_0xfc9601,_0x44fff8=_0x968789['params'],_0x57b766=_0x539dd4[_0x2231c5(0x3eb)];if(_0x44fff8[_0x2231c5(0x1d0)]===_0x57b766['unitId']&&_0x44fff8[_0x2231c5(0x25e)]===_0x57b766['subUnitId']&&_0x44fff8[_0x2231c5(0x35d)][_0x2231c5(0x2bb)]===_0x57b766['link'][_0x2231c5(0x2bb)]&&_0x44fff8[_0x2231c5(0x35d)]['column']===_0x57b766[_0x2231c5(0x35d)][_0x2231c5(0x2f4)])return{'m2Prime':_0x539dd4,'m1Prime':[]};return{'m1Prime':_0x968789,'m2Prime':_0x539dd4};}},addRangeProtectionWithAddComment={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x411)]['id'],'handler':(_0x264c6b,_0x190c73)=>{const _0x3d64c7=_0xfc9601,_0x2a11e8={'m1Prime':_0x264c6b,'m2Prime':_0x190c73};if(_0x264c6b[_0x3d64c7(0x3eb)]['unitId']!==_0x190c73[_0x3d64c7(0x3eb)][_0x3d64c7(0x1d0)]||_0x264c6b[_0x3d64c7(0x3eb)][_0x3d64c7(0x25e)]!==_0x190c73['params'][_0x3d64c7(0x25e)])return _0x2a11e8;return{'error':new Error(_0x3d64c7(0x1ff))};}},addRangeProtectionWithAddConditionRule={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x40c)]['id'],'handler':(_0x56576e,_0x146003)=>{const _0x775ae=_0xfc9601,_0x249723={'m1Prime':_0x56576e,'m2Prime':_0x146003};if(_0x56576e['params']['unitId']!==_0x146003['params'][_0x775ae(0x1d0)]||_0x56576e['params']['subUnitId']!==_0x146003[_0x775ae(0x3eb)][_0x775ae(0x25e)])return _0x249723;const _0x299d10=_0x56576e[_0x775ae(0x3eb)][_0x775ae(0x2f8)][_0x775ae(0x3b3)](_0x2a6e94=>_0x2a6e94[_0x775ae(0x3a3)])['flat'](),_0x528e2c=_0x146003[_0x775ae(0x3eb)]['rule'][_0x775ae(0x3a3)];if(_0x299d10[_0x775ae(0x3ad)](_0x2eb6c9=>_0x528e2c[_0x775ae(0x3ad)](_0x172f39=>_univerjs_core[_0x775ae(0x330)][_0x775ae(0x3b4)](_0x2eb6c9,_0x172f39))))return{'error':new Error(_0x775ae(0x38c))};return _0x249723;}},addRangeProtectionWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x200)]['id'],'handler':(_0x51a3b2,_0x56b4bf)=>{const _0x1382a1=_0xfc9601,_0x2600a0={'m1Prime':_0x51a3b2,'m2Prime':_0x56b4bf};if(_0x51a3b2['params'][_0x1382a1(0x1d0)]!==_0x56b4bf['params'][_0x1382a1(0x1d0)]||_0x51a3b2[_0x1382a1(0x3eb)]['subUnitId']!==_0x56b4bf[_0x1382a1(0x3eb)][_0x1382a1(0x25e)])return _0x2600a0;const _0x2fa4b1=_0x51a3b2['params']['rules']['map'](_0x3d5435=>_0x3d5435[_0x1382a1(0x3a3)])[_0x1382a1(0x1cc)](),_0x5d502f=_0x56b4bf[_0x1382a1(0x3eb)][_0x1382a1(0x2f8)][_0x1382a1(0x3b3)](_0x3f4aa8=>_0x3f4aa8['ranges'])[_0x1382a1(0x1cc)]();if(_0x2fa4b1[_0x1382a1(0x3ad)](_0x197860=>_0x5d502f[_0x1382a1(0x3ad)](_0x307c18=>_univerjs_core[_0x1382a1(0x330)][_0x1382a1(0x3b4)](_0x197860,_0x307c18))))return{'error':new Error(_0x1382a1(0x267))};return _0x2600a0;}},addRangeProtectionWithAddWorksheetMerge={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler':(_0x2f1429,_0x229cc8)=>{const _0x193d90=_0xfc9601,_0x183198={'m1Prime':_0x2f1429,'m2Prime':_0x229cc8};if(_0x2f1429[_0x193d90(0x3eb)]['unitId']!==_0x229cc8['params'][_0x193d90(0x1d0)]||_0x2f1429[_0x193d90(0x3eb)][_0x193d90(0x25e)]!==_0x229cc8[_0x193d90(0x3eb)]['subUnitId'])return _0x183198;const _0x25074c=_0x2f1429['params'][_0x193d90(0x2f8)]['map'](_0x47071c=>_0x47071c[_0x193d90(0x3a3)])[_0x193d90(0x1cc)](),_0x43f037=_0x229cc8[_0x193d90(0x3eb)][_0x193d90(0x3a3)];if(_0x25074c[_0x193d90(0x3ad)](_0x2f44ec=>_0x43f037[_0x193d90(0x3ad)](_0x20ab30=>_univerjs_core[_0x193d90(0x330)]['intersects'](_0x2f44ec,_0x20ab30))))return{'error':new Error(_0x193d90(0x24f))};return _0x183198;}},addRangeProtectionWithAddWorksheetProtection={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'handler':(_0x1a00c5,_0x1f1079)=>{const _0x56ba8d=_0xfc9601,_0x5d25f4={'m1Prime':_0x1a00c5,'m2Prime':_0x1f1079};if(_0x1a00c5['params'][_0x56ba8d(0x1d0)]!==_0x1f1079[_0x56ba8d(0x3eb)]['unitId']||_0x1a00c5[_0x56ba8d(0x3eb)][_0x56ba8d(0x25e)]!==_0x1f1079[_0x56ba8d(0x3eb)]['rule'][_0x56ba8d(0x25e)])return _0x5d25f4;return{'error':new Error(_0x56ba8d(0x292))};}},addRangeProtectionWithDeleteConditionFormattingRule={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x327)]['id'],'handler':(_0x2aca9,_0x540cf0)=>{const _0x1b4c1c=_0xfc9601,_0x11c273={'m1Prime':_0x2aca9,'m2Prime':_0x540cf0};if(_0x2aca9[_0x1b4c1c(0x3eb)][_0x1b4c1c(0x1d0)]!==_0x540cf0[_0x1b4c1c(0x3eb)][_0x1b4c1c(0x1d0)]||_0x2aca9[_0x1b4c1c(0x3eb)][_0x1b4c1c(0x25e)]!==_0x540cf0['params']['subUnitId'])return _0x11c273;return{'error':new Error(_0x1b4c1c(0x3f6))};}},addRangeProtectionWithInsertCol={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'handler':(_0x15331a,_0x460e4b)=>{const _0x18bf07=_0xfc9601,_0x56962c={'m1Prime':_0x15331a,'m2Prime':_0x460e4b};if(_0x15331a[_0x18bf07(0x3eb)][_0x18bf07(0x1d0)]!==_0x460e4b[_0x18bf07(0x3eb)][_0x18bf07(0x1d0)]||_0x15331a[_0x18bf07(0x3eb)][_0x18bf07(0x25e)]!==_0x460e4b['params'][_0x18bf07(0x25e)])return _0x56962c;const _0x8fa2b8=_0x15331a['params'][_0x18bf07(0x2f8)][_0x18bf07(0x3b3)](_0x595147=>_0x595147[_0x18bf07(0x3a3)])['flat'](),_0x56f33c=_0x460e4b[_0x18bf07(0x3eb)]['range'];if(_0x8fa2b8['some'](_0x4b5ef9=>_univerjs_core[_0x18bf07(0x330)][_0x18bf07(0x3b4)](_0x4b5ef9,_0x56f33c)))return{'error':new Error(_0x18bf07(0x37f))};return _0x56962c;}},addRangeProtectionWithInsertRow={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets['InsertRowMutation']['id'],'handler':(_0x5b311b,_0x5543b)=>{const _0x185958=_0xfc9601,_0x225783={'m1Prime':_0x5b311b,'m2Prime':_0x5543b};if(_0x5b311b[_0x185958(0x3eb)][_0x185958(0x1d0)]!==_0x5543b['params'][_0x185958(0x1d0)]||_0x5b311b[_0x185958(0x3eb)][_0x185958(0x25e)]!==_0x5543b[_0x185958(0x3eb)]['subUnitId'])return _0x225783;const _0xa55c2a=_0x5b311b['params'][_0x185958(0x2f8)][_0x185958(0x3b3)](_0x54a376=>_0x54a376[_0x185958(0x3a3)])['flat'](),_0x39fc3d=_0x5543b[_0x185958(0x3eb)][_0x185958(0x29a)];if(_0xa55c2a[_0x185958(0x3ad)](_0x3292e2=>_univerjs_core['Rectangle'][_0x185958(0x3b4)](_0x3292e2,_0x39fc3d)))return{'error':new Error(_0x185958(0x1ee))};return _0x225783;}},addRangeProtectionWithMoveCol={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets['MoveColsMutation']['id'],'handler':(_0x3698ee,_0x35b2f7)=>{const _0x1a0457=_0xfc9601,_0x31f5fc={'m1Prime':_0x3698ee,'m2Prime':_0x35b2f7};if(_0x3698ee[_0x1a0457(0x3eb)]['unitId']!==_0x35b2f7['params'][_0x1a0457(0x1d0)]||_0x3698ee['params']['subUnitId']!==_0x35b2f7[_0x1a0457(0x3eb)][_0x1a0457(0x25e)])return _0x31f5fc;const _0x3df5f2=_0x3698ee['params'][_0x1a0457(0x2f8)]['map'](_0x4adcc0=>_0x4adcc0[_0x1a0457(0x3a3)])[_0x1a0457(0x1cc)](),_0x2b9f66=[_0x35b2f7[_0x1a0457(0x3eb)][_0x1a0457(0x202)],_0x35b2f7[_0x1a0457(0x3eb)]['targetRange']];if(_0x3df5f2[_0x1a0457(0x3ad)](_0x51d840=>_0x2b9f66[_0x1a0457(0x3ad)](_0x497199=>_univerjs_core[_0x1a0457(0x330)][_0x1a0457(0x3b4)](_0x51d840,_0x497199))))return{'error':new Error(_0x1a0457(0x1f7))};return _0x31f5fc;}},addRangeProtectionWithMoveRange={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'handler':(_0x542b45,_0x3d9646)=>{const _0x19da55=_0xfc9601,_0xa4be08={'m1Prime':_0x542b45,'m2Prime':_0x3d9646};if(_0x542b45[_0x19da55(0x3eb)][_0x19da55(0x1d0)]!==_0x3d9646[_0x19da55(0x3eb)]['unitId']||_0x542b45['params'][_0x19da55(0x25e)]!==_0x3d9646[_0x19da55(0x3eb)]['from'][_0x19da55(0x25e)])return _0xa4be08;const _0x3d3f8d=_0x542b45[_0x19da55(0x3eb)][_0x19da55(0x2f8)]['map'](_0x2cf7ed=>_0x2cf7ed[_0x19da55(0x3a3)])[_0x19da55(0x1cc)](),_0x6f6713=[new _univerjs_core[(_0x19da55(0x3c2))](_0x3d9646['params'][_0x19da55(0x3a4)][_0x19da55(0x3e6)])[_0x19da55(0x3d1)](),new _univerjs_core[(_0x19da55(0x3c2))](_0x3d9646[_0x19da55(0x3eb)]['to'][_0x19da55(0x3e6)])[_0x19da55(0x3d1)]()];if(_0x3d3f8d[_0x19da55(0x3ad)](_0x22b2b7=>_0x6f6713['some'](_0x104577=>_univerjs_core[_0x19da55(0x330)][_0x19da55(0x3b4)](_0x22b2b7,_0x104577))))return{'error':new Error(_0x19da55(0x293))};return _0xa4be08;}},addRangeProtectionWithMoveRow={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x225)]['id'],'handler':(_0x3dce90,_0x1ac3eb)=>{const _0x53d74c=_0xfc9601,_0x198f08={'m1Prime':_0x3dce90,'m2Prime':_0x1ac3eb};if(_0x3dce90['params'][_0x53d74c(0x1d0)]!==_0x1ac3eb['params'][_0x53d74c(0x1d0)]||_0x3dce90[_0x53d74c(0x3eb)][_0x53d74c(0x25e)]!==_0x1ac3eb['params']['subUnitId'])return _0x198f08;const _0x729399=_0x3dce90['params'][_0x53d74c(0x2f8)][_0x53d74c(0x3b3)](_0x5c9a29=>_0x5c9a29['ranges'])[_0x53d74c(0x1cc)](),_0x2ad443=[_0x1ac3eb['params'][_0x53d74c(0x202)],_0x1ac3eb[_0x53d74c(0x3eb)][_0x53d74c(0x38d)]];if(_0x729399['some'](_0x2a08ea=>_0x2ad443[_0x53d74c(0x3ad)](_0x3b2c86=>_univerjs_core[_0x53d74c(0x330)][_0x53d74c(0x3b4)](_0x2a08ea,_0x3b2c86))))return{'error':new Error('add\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20row')};return _0x198f08;}},addRangeProtectionWithRemoveCol={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'handler':(_0x3e19ae,_0x10ca7b)=>{const _0x4c8b92=_0xfc9601,_0xb8572b={'m1Prime':_0x3e19ae,'m2Prime':_0x10ca7b};if(_0x3e19ae[_0x4c8b92(0x3eb)][_0x4c8b92(0x1d0)]!==_0x10ca7b[_0x4c8b92(0x3eb)]['unitId']||_0x3e19ae[_0x4c8b92(0x3eb)][_0x4c8b92(0x25e)]!==_0x10ca7b[_0x4c8b92(0x3eb)][_0x4c8b92(0x25e)])return _0xb8572b;const _0x4def4e=_0x3e19ae['params'][_0x4c8b92(0x2f8)][_0x4c8b92(0x3b3)](_0x58de38=>_0x58de38['ranges'])[_0x4c8b92(0x1cc)](),_0x5334aa=_0x10ca7b['params'][_0x4c8b92(0x29a)];if(_0x4def4e[_0x4c8b92(0x3ad)](_0x375d3f=>_univerjs_core[_0x4c8b92(0x330)][_0x4c8b92(0x3b4)](_0x375d3f,_0x5334aa)))return{'error':new Error('add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20col')};return _0xb8572b;}},addRangeProtectionWithRemoveDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x252)]['id'],'handler':(_0x559c28,_0x52faac)=>{const _0x4bd0a5=_0xfc9601,_0x4778a1={'m1Prime':_0x559c28,'m2Prime':_0x52faac};if(_0x559c28['params']['unitId']!==_0x52faac[_0x4bd0a5(0x3eb)][_0x4bd0a5(0x1d0)]||_0x559c28[_0x4bd0a5(0x3eb)][_0x4bd0a5(0x25e)]!==_0x52faac[_0x4bd0a5(0x3eb)][_0x4bd0a5(0x25e)])return _0x4778a1;return{'error':new Error(_0x4bd0a5(0x1fa))};}},addRangeProtectionWithRemoveNumfmt={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'handler':(_0x1ac984,_0x517e80)=>{const _0x48c0e4=_0xfc9601,_0x335aa9={'m1Prime':_0x1ac984,'m2Prime':_0x517e80};if(_0x1ac984[_0x48c0e4(0x3eb)][_0x48c0e4(0x1d0)]!==_0x517e80[_0x48c0e4(0x3eb)][_0x48c0e4(0x1d0)]||_0x1ac984[_0x48c0e4(0x3eb)][_0x48c0e4(0x25e)]!==_0x517e80[_0x48c0e4(0x3eb)]['subUnitId'])return _0x335aa9;const _0x23bc39=_0x1ac984[_0x48c0e4(0x3eb)][_0x48c0e4(0x2f8)]['map'](_0x344258=>_0x344258[_0x48c0e4(0x3a3)])['flat'](),_0x4d91b7=_0x517e80['params'][_0x48c0e4(0x3a3)];if(_0x23bc39['some'](_0x235f46=>_0x4d91b7[_0x48c0e4(0x3ad)](_0x52fe2b=>_univerjs_core[_0x48c0e4(0x330)][_0x48c0e4(0x3b4)](_0x235f46,_0x52fe2b))))return{'error':new Error(_0x48c0e4(0x1e9))};return _0x335aa9;}},addRangeProtectionWithRemoveFilter={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x274)]['id'],'handler':(_0x536efd,_0x516663)=>{const _0x225dcc=_0xfc9601,_0x53b202={'m1Prime':_0x536efd,'m2Prime':_0x516663};if(_0x536efd[_0x225dcc(0x3eb)]['unitId']!==_0x516663[_0x225dcc(0x3eb)]['unitId']||_0x536efd['params'][_0x225dcc(0x25e)]!==_0x516663['params'][_0x225dcc(0x25e)])return _0x53b202;return{'error':new Error(_0x225dcc(0x1db))};}},addRangeProtectionWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'handler':(_0x1e4c58,_0x4fd33c)=>{const _0xbc678a=_0xfc9601,_0x2497f8={'m1Prime':_0x1e4c58,'m2Prime':_0x4fd33c};if(_0x1e4c58['params'][_0xbc678a(0x1d0)]!==_0x4fd33c['params']['unitId']||_0x1e4c58[_0xbc678a(0x3eb)][_0xbc678a(0x25e)]!==_0x4fd33c[_0xbc678a(0x3eb)]['subUnitId'])return _0x2497f8;const _0x39d0c2=_0x1e4c58[_0xbc678a(0x3eb)][_0xbc678a(0x2f8)][_0xbc678a(0x3b3)](_0x3f91a5=>_0x3f91a5[_0xbc678a(0x3a3)])[_0xbc678a(0x1cc)](),_0x19e407=_0x4fd33c[_0xbc678a(0x3eb)][_0xbc678a(0x3a3)];if(_0x39d0c2[_0xbc678a(0x3ad)](_0x27cdc8=>_0x19e407['some'](_0xac35ab=>_univerjs_core[_0xbc678a(0x330)][_0xbc678a(0x3b4)](_0x27cdc8,_0xac35ab))))return{'error':new Error(_0xbc678a(0x2f7))};return _0x2497f8;}},addRangeProtectionWithSetConditionalFormattingRule={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets_conditional_formatting['SetConditionalRuleMutation']['id'],'handler':(_0x4740fb,_0xeefb00)=>{const _0x433d52=_0xfc9601,_0x2cb923={'m1Prime':_0x4740fb,'m2Prime':_0xeefb00};if(_0x4740fb[_0x433d52(0x3eb)]['unitId']!==_0xeefb00[_0x433d52(0x3eb)][_0x433d52(0x1d0)]||_0x4740fb[_0x433d52(0x3eb)][_0x433d52(0x25e)]!==_0xeefb00[_0x433d52(0x3eb)][_0x433d52(0x25e)])return _0x2cb923;const _0x5d30a6=_0x4740fb[_0x433d52(0x3eb)][_0x433d52(0x2f8)]['map'](_0xc84563=>_0xc84563['ranges'])[_0x433d52(0x1cc)](),_0x574e6d=_0xeefb00[_0x433d52(0x3eb)]['rule'][_0x433d52(0x3a3)];if(_0x5d30a6[_0x433d52(0x3ad)](_0x4f34e7=>_0x574e6d['some'](_0xc4bbf8=>_univerjs_core[_0x433d52(0x330)][_0x433d52(0x3b4)](_0x4f34e7,_0xc4bbf8))))return{'error':new Error(_0x433d52(0x3c3))};return _0x2cb923;}},addRangeProtectionWithSetFrozen={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets['SetFrozenMutation']['id'],'handler':(_0xc7d72,_0x359cf2)=>{const _0xb683a=_0xfc9601,_0x258a1e={'m1Prime':_0xc7d72,'m2Prime':_0x359cf2};if(_0xc7d72[_0xb683a(0x3eb)]['unitId']!==_0x359cf2[_0xb683a(0x3eb)][_0xb683a(0x1d0)]||_0xc7d72['params'][_0xb683a(0x25e)]!==_0x359cf2[_0xb683a(0x3eb)]['subUnitId'])return _0x258a1e;const _0x304dc5=_0xc7d72[_0xb683a(0x3eb)][_0xb683a(0x2f8)]['map'](_0x4e2b72=>_0x4e2b72['ranges'])[_0xb683a(0x1cc)](),_0x38b356=[{'startRow':_0x359cf2[_0xb683a(0x3eb)]['startRow'],'endRow':_0x359cf2[_0xb683a(0x3eb)]['startRow'],'startColumn':_0x359cf2[_0xb683a(0x3eb)][_0xb683a(0x245)],'endColumn':_0x359cf2['params'][_0xb683a(0x245)]}];if(_0x304dc5['some'](_0x41193a=>_0x38b356[_0xb683a(0x3ad)](_0x3a6f69=>_univerjs_core['Rectangle'][_0xb683a(0x3b4)](_0x41193a,_0x3a6f69))))return{'error':new Error(_0xb683a(0x28a))};return _0x258a1e;}},addRangeProtectionWithSetNumfmt={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x397)]['id'],'handler':(_0x772cd9,_0x1b274d)=>{const _0x4d14a3=_0xfc9601,_0x14a16f={'m1Prime':_0x772cd9,'m2Prime':_0x1b274d};if(_0x772cd9['params'][_0x4d14a3(0x1d0)]!==_0x1b274d[_0x4d14a3(0x3eb)][_0x4d14a3(0x1d0)]||_0x772cd9[_0x4d14a3(0x3eb)][_0x4d14a3(0x25e)]!==_0x1b274d[_0x4d14a3(0x3eb)]['subUnitId'])return _0x14a16f;return{'error':new Error(_0x4d14a3(0x1f8))};}},addRangeProtectionWithSetRangeProtection={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'handler':(_0x4f4e1e,_0xc3e51e)=>{const _0x4510f9=_0xfc9601,_0x225220={'m1Prime':_0x4f4e1e,'m2Prime':_0xc3e51e};if(_0x4f4e1e[_0x4510f9(0x3eb)]['unitId']!==_0xc3e51e[_0x4510f9(0x3eb)][_0x4510f9(0x1d0)]||_0x4f4e1e[_0x4510f9(0x3eb)][_0x4510f9(0x25e)]!==_0xc3e51e[_0x4510f9(0x3eb)][_0x4510f9(0x25e)])return _0x225220;const _0x4d3961=_0x4f4e1e[_0x4510f9(0x3eb)]['rules'][_0x4510f9(0x3b3)](_0xcbee9b=>_0xcbee9b['ranges'])['flat'](),_0x55a79b=_0xc3e51e[_0x4510f9(0x3eb)][_0x4510f9(0x331)][_0x4510f9(0x3a3)];if(_0x4d3961[_0x4510f9(0x3ad)](_0x3da529=>_0x55a79b[_0x4510f9(0x3ad)](_0x2ae262=>_univerjs_core[_0x4510f9(0x330)][_0x4510f9(0x3b4)](_0x3da529,_0x2ae262))))return{'error':new Error('add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20protection')};return _0x225220;}},addRangeProtectionWithSetRangeValue={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler':(_0x5d4d05,_0x4e9a8e)=>{const _0x1721b7=_0xfc9601,_0x40f090={'m1Prime':_0x5d4d05,'m2Prime':_0x4e9a8e};if(_0x5d4d05[_0x1721b7(0x3eb)][_0x1721b7(0x1d0)]!==_0x4e9a8e['params'][_0x1721b7(0x1d0)]||_0x5d4d05['params'][_0x1721b7(0x25e)]!==_0x4e9a8e[_0x1721b7(0x3eb)][_0x1721b7(0x25e)])return _0x40f090;const _0x440e20=_0x5d4d05['params'][_0x1721b7(0x2f8)][_0x1721b7(0x3b3)](_0x43a3b9=>_0x43a3b9['ranges'])[_0x1721b7(0x1cc)](),_0x1c1e3e=new _univerjs_core[(_0x1721b7(0x3c2))](_0x4e9a8e['params'][_0x1721b7(0x31f)])[_0x1721b7(0x3d1)]();if(_0x440e20[_0x1721b7(0x3ad)](_0x546544=>_univerjs_core[_0x1721b7(0x330)][_0x1721b7(0x3b4)](_0x546544,_0x1c1e3e)))return{'error':new Error(_0x1721b7(0x315))};return _0x40f090;}},addRangeProtectionWithSetWorksheetColWidth={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1f5)]['id'],'handler':(_0x2f0d66,_0xa35a4e)=>{const _0xbb71eb=_0xfc9601,_0x4d6e28={'m1Prime':_0x2f0d66,'m2Prime':_0xa35a4e};if(_0x2f0d66[_0xbb71eb(0x3eb)][_0xbb71eb(0x1d0)]!==_0xa35a4e[_0xbb71eb(0x3eb)][_0xbb71eb(0x1d0)]||_0x2f0d66[_0xbb71eb(0x3eb)][_0xbb71eb(0x25e)]!==_0xa35a4e[_0xbb71eb(0x3eb)][_0xbb71eb(0x25e)])return _0x4d6e28;const _0x5ac570=_0x2f0d66['params'][_0xbb71eb(0x2f8)]['map'](_0x37bfd8=>_0x37bfd8[_0xbb71eb(0x3a3)])['flat'](),_0x234f40=_0xa35a4e[_0xbb71eb(0x3eb)][_0xbb71eb(0x3a3)];if(_0x5ac570[_0xbb71eb(0x3ad)](_0x41fff7=>_0x234f40[_0xbb71eb(0x3ad)](_0xc70e1=>_univerjs_core[_0xbb71eb(0x330)]['intersects'](_0x41fff7,_0xc70e1))))return{'error':new Error('add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width')};return _0x4d6e28;}},addRangeProtectionWithUpdateComment={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x3ab)]['id'],'handler':(_0x2df1e8,_0x150906)=>{const _0x5bcca7=_0xfc9601,_0xcc33ca={'m1Prime':_0x2df1e8,'m2Prime':_0x150906};if(_0x2df1e8[_0x5bcca7(0x3eb)][_0x5bcca7(0x1d0)]!==_0x150906[_0x5bcca7(0x3eb)][_0x5bcca7(0x1d0)]||_0x2df1e8['params'][_0x5bcca7(0x25e)]!==_0x150906[_0x5bcca7(0x3eb)][_0x5bcca7(0x25e)])return _0xcc33ca;return{'error':new Error(_0x5bcca7(0x29c))};}},addRangeProtectionWithUpdateDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x200)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x33b71a,_0x5026eb)=>{const _0x50d555=_0xfc9601,_0xad51c0={'m1Prime':_0x33b71a,'m2Prime':_0x5026eb};if(_0x33b71a['params']['unitId']!==_0x5026eb[_0x50d555(0x3eb)][_0x50d555(0x1d0)]||_0x33b71a[_0x50d555(0x3eb)][_0x50d555(0x25e)]!==_0x5026eb[_0x50d555(0x3eb)][_0x50d555(0x25e)])return _0xad51c0;return{'error':new Error(_0x50d555(0x297))};}},addWorksheetMergeMutationWithSelf={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler'(_0x5ba144,_0x194e48){const _0x3f479d=_0xfc9601,_0x2337bb=_univerjs_core['Tools'][_0x3f479d(0x1cf)](_0x5ba144),_0x18e60c=_univerjs_core[_0x3f479d(0x1c3)]['deepClone'](_0x194e48);if(_0x5ba144[_0x3f479d(0x3eb)][_0x3f479d(0x1d0)]!==_0x194e48['params'][_0x3f479d(0x1d0)]||_0x5ba144['params'][_0x3f479d(0x25e)]!==_0x194e48['params']['subUnitId'])return{'m1Prime':_0x2337bb,'m2Prime':_0x18e60c};const _0x2ff5c0=_0x2337bb[_0x3f479d(0x3eb)][_0x3f479d(0x3a3)],_0x45b074=_0x18e60c[_0x3f479d(0x3eb)][_0x3f479d(0x3a3)],_0x34a567=[_0x18e60c],_0xbbb63e=new Set();for(let _0x56b963=0x0;_0x56b963<_0x2ff5c0[_0x3f479d(0x29d)];_0x56b963++)for(let _0x42050f=0x0;_0x42050f<_0x45b074[_0x3f479d(0x29d)];_0x42050f++)if(_univerjs_core['Rectangle'][_0x3f479d(0x3b4)](_0x2ff5c0[_0x56b963],_0x45b074[_0x42050f])){_0xbbb63e[_0x3f479d(0x3b0)](_0x2ff5c0[_0x56b963]),_0x2ff5c0[_0x3f479d(0x247)](_0x56b963,0x1),_0x56b963--;break;}if(_0xbbb63e[_0x3f479d(0x3a5)]>0x0)_0x34a567[_0x3f479d(0x398)]({'id':_univerjs_sheets[_0x3f479d(0x374)]['id'],'params':{'unitId':_0x5ba144[_0x3f479d(0x3eb)][_0x3f479d(0x1d0)],'subUnitId':_0x5ba144['params'][_0x3f479d(0x25e)],'ranges':Array[_0x3f479d(0x3a4)](_0xbbb63e)}});if(_0x2ff5c0[_0x3f479d(0x29d)]===0x0)_0x2337bb['id']=_univerjs_sheets['EmptyMutation']['id'];return{'m1Prime':_0x2337bb,'m2Prime':_0x34a567[_0x3f479d(0x29d)]>0x1?_0x34a567:_0x18e60c};}},addWorksheetMergeMutationWithInsertColMutation={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'handler'(_0x4726bb,_0x23e96a){const _0xbe19cf=_0xfc9601,_0xbcb95d=_univerjs_core[_0xbe19cf(0x1c3)][_0xbe19cf(0x1cf)](_0x4726bb),_0x1c6db7=_univerjs_core[_0xbe19cf(0x1c3)][_0xbe19cf(0x1cf)](_0x23e96a);if(_0x4726bb[_0xbe19cf(0x3eb)][_0xbe19cf(0x1d0)]!==_0x23e96a[_0xbe19cf(0x3eb)][_0xbe19cf(0x1d0)]||_0x4726bb[_0xbe19cf(0x3eb)][_0xbe19cf(0x25e)]!==_0x23e96a[_0xbe19cf(0x3eb)][_0xbe19cf(0x25e)])return{'m1Prime':_0xbcb95d,'m2Prime':_0x1c6db7};const _0x55cc99=_0x4726bb[_0xbe19cf(0x3eb)]['unitId'],_0x15bcd4=_0x4726bb[_0xbe19cf(0x3eb)][_0xbe19cf(0x25e)],_0x4da82a=[_0x1c6db7],_0x2c71df=[],_0x55ab59=[];_0xbcb95d[_0xbe19cf(0x3eb)]['ranges']['forEach'](_0xdad25e=>{const _0x56bf71=_0xbe19cf,_0x176376=_0x23e96a['params'][_0x56bf71(0x29a)],_0x49deca=_0x176376[_0x56bf71(0x22a)]-_0x176376[_0x56bf71(0x245)]+0x1;if(_0x176376[_0x56bf71(0x245)]<=_0xdad25e[_0x56bf71(0x245)])_0x2c71df['push']({..._0xdad25e}),_0x55ab59[_0x56bf71(0x380)]({..._0xdad25e,'startColumn':_0xdad25e[_0x56bf71(0x245)]+_0x49deca,'endColumn':_0xdad25e[_0x56bf71(0x22a)]+_0x49deca}),_0xdad25e[_0x56bf71(0x245)]=_0xdad25e[_0x56bf71(0x245)]+_0x49deca,_0xdad25e[_0x56bf71(0x22a)]=_0xdad25e['endColumn']+_0x49deca;else _0x176376[_0x56bf71(0x245)]>_0xdad25e[_0x56bf71(0x245)]&&_0x176376[_0x56bf71(0x245)]<=_0xdad25e[_0x56bf71(0x22a)]&&(_0x2c71df[_0x56bf71(0x380)]({..._0xdad25e}),_0x55ab59[_0x56bf71(0x380)]({..._0xdad25e,'endColumn':_0xdad25e[_0x56bf71(0x22a)]+_0x49deca}),_0xdad25e['endColumn']=_0xdad25e[_0x56bf71(0x22a)]+_0x49deca);});if(_0x2c71df[_0xbe19cf(0x29d)]>0x0)_0x4da82a[_0xbe19cf(0x398)]({'id':_univerjs_sheets[_0xbe19cf(0x374)]['id'],'params':{'unitId':_0x55cc99,'subUnitId':_0x15bcd4,'ranges':_0x2c71df}});if(_0x55ab59[_0xbe19cf(0x29d)]>0x0)_0x4da82a[_0xbe19cf(0x380)]({'id':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'params':{'unitId':_0x55cc99,'subUnitId':_0x15bcd4,'ranges':_0x55ab59}});return{'m1Prime':_0xbcb95d,'m2Prime':_0x4da82a['length']>0x1?_0x4da82a:_0x4da82a[0x0]};}},addWorksheetMergeMutationWithInsertRowMutation={'m1':_univerjs_sheets[_0xfc9601(0x379)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x286)]['id'],'handler'(_0x34dd08,_0x18464d){const _0x4a8733=_0xfc9601,_0x4a565d=_univerjs_core[_0x4a8733(0x1c3)]['deepClone'](_0x34dd08),_0x31b64e=_univerjs_core[_0x4a8733(0x1c3)][_0x4a8733(0x1cf)](_0x18464d);if(_0x34dd08[_0x4a8733(0x3eb)]['unitId']!==_0x18464d[_0x4a8733(0x3eb)][_0x4a8733(0x1d0)]||_0x34dd08['params'][_0x4a8733(0x25e)]!==_0x18464d[_0x4a8733(0x3eb)][_0x4a8733(0x25e)])return{'m1Prime':_0x4a565d,'m2Prime':_0x31b64e};const _0x3ba798=_0x34dd08[_0x4a8733(0x3eb)][_0x4a8733(0x1d0)],_0x1c05cf=_0x34dd08[_0x4a8733(0x3eb)]['subUnitId'],_0x5163cb=[_0x31b64e],_0xd109b2=[],_0x1f4ef7=[];_0x4a565d[_0x4a8733(0x3eb)]['ranges'][_0x4a8733(0x302)](_0x51b7cc=>{const _0x21525c=_0x4a8733,_0x5dc0c5=_0x18464d['params'][_0x21525c(0x29a)],_0x2acf91=_0x5dc0c5[_0x21525c(0x3aa)]-_0x5dc0c5['startRow']+0x1;if(_0x5dc0c5[_0x21525c(0x357)]<=_0x51b7cc[_0x21525c(0x357)])_0xd109b2[_0x21525c(0x380)]({..._0x51b7cc}),_0x1f4ef7['push']({..._0x51b7cc,'startRow':_0x51b7cc['startRow']+_0x2acf91,'endRow':_0x51b7cc[_0x21525c(0x3aa)]+_0x2acf91}),_0x51b7cc[_0x21525c(0x357)]=_0x51b7cc[_0x21525c(0x357)]+_0x2acf91,_0x51b7cc[_0x21525c(0x3aa)]=_0x51b7cc[_0x21525c(0x3aa)]+_0x2acf91;else _0x5dc0c5[_0x21525c(0x357)]>_0x51b7cc[_0x21525c(0x357)]&&_0x5dc0c5[_0x21525c(0x357)]<=_0x51b7cc[_0x21525c(0x3aa)]&&(_0xd109b2[_0x21525c(0x380)]({..._0x51b7cc}),_0x1f4ef7[_0x21525c(0x380)]({..._0x51b7cc,'endRow':_0x51b7cc[_0x21525c(0x3aa)]+_0x2acf91}),_0x51b7cc['endRow']=_0x51b7cc[_0x21525c(0x3aa)]+_0x2acf91);});if(_0xd109b2[_0x4a8733(0x29d)]>0x0)_0x5163cb[_0x4a8733(0x398)]({'id':_univerjs_sheets[_0x4a8733(0x374)]['id'],'params':{'unitId':_0x3ba798,'subUnitId':_0x1c05cf,'ranges':_0xd109b2}});if(_0x1f4ef7['length']>0x0)_0x5163cb['push']({'id':_univerjs_sheets[_0x4a8733(0x379)]['id'],'params':{'unitId':_0x3ba798,'subUnitId':_0x1c05cf,'ranges':_0x1f4ef7}});return{'m1Prime':_0x4a565d,'m2Prime':_0x5163cb[_0x4a8733(0x29d)]>0x1?_0x5163cb:_0x5163cb[0x0]};}},addWorksheetMergeMutationWithMoveColMutation={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x363)]['id'],'handler'(_0x4a640c,_0x108559){const _0x299e3a=_0xfc9601,_0x53b55f=_univerjs_core[_0x299e3a(0x1c3)][_0x299e3a(0x1cf)](_0x4a640c),_0x55b87b=_univerjs_core['Tools']['deepClone'](_0x108559);if(_0x4a640c[_0x299e3a(0x3eb)]['unitId']!==_0x108559[_0x299e3a(0x3eb)]['unitId']||_0x4a640c[_0x299e3a(0x3eb)][_0x299e3a(0x25e)]!==_0x108559[_0x299e3a(0x3eb)][_0x299e3a(0x25e)])return{'m1Prime':_0x53b55f,'m2Prime':_0x55b87b};const _0x57a635=[],_0x1b38d4=[],_0x43c586=[_0x55b87b];for(let _0x4f260c=0x0;_0x4f260c<_0x53b55f[_0x299e3a(0x3eb)][_0x299e3a(0x3a3)]['length'];_0x4f260c++){const _0x37565e=_0x53b55f[_0x299e3a(0x3eb)][_0x299e3a(0x3a3)][_0x4f260c],{sourceRange:_0x412cee,targetRange:_0x2cb98a}=_0x108559['params'];if(_univerjs_core[_0x299e3a(0x330)][_0x299e3a(0x3b4)](_0x37565e,_0x412cee)||_univerjs_core[_0x299e3a(0x330)][_0x299e3a(0x3b4)](_0x37565e,_0x2cb98a))_0x57a635['push']({..._0x37565e}),_0x53b55f[_0x299e3a(0x3eb)][_0x299e3a(0x3a3)][_0x299e3a(0x247)](_0x4f260c,0x1),_0x4f260c--;else{if(_0x412cee[_0x299e3a(0x245)]<_0x37565e['startColumn']&&_0x2cb98a[_0x299e3a(0x245)]>_0x37565e[_0x299e3a(0x22a)])_0x57a635[_0x299e3a(0x380)]({..._0x37565e}),_0x1b38d4[_0x299e3a(0x380)]({..._0x37565e,'startColumn':_0x37565e['startColumn']-(_0x412cee[_0x299e3a(0x22a)]-_0x412cee['startColumn']+0x1),'endColumn':_0x37565e[_0x299e3a(0x22a)]-(_0x412cee[_0x299e3a(0x22a)]-_0x412cee[_0x299e3a(0x245)]+0x1)}),_0x37565e[_0x299e3a(0x245)]=_0x37565e[_0x299e3a(0x245)]-(_0x412cee['endColumn']-_0x412cee[_0x299e3a(0x245)]+0x1),_0x37565e['endColumn']=_0x37565e[_0x299e3a(0x22a)]-(_0x412cee[_0x299e3a(0x22a)]-_0x412cee[_0x299e3a(0x245)]+0x1);else _0x412cee[_0x299e3a(0x245)]>_0x37565e['endColumn']&&_0x2cb98a[_0x299e3a(0x22a)]<_0x37565e[_0x299e3a(0x245)]&&(_0x57a635[_0x299e3a(0x380)]({..._0x37565e}),_0x1b38d4['push']({..._0x37565e,'startColumn':_0x37565e[_0x299e3a(0x245)]+(_0x412cee[_0x299e3a(0x22a)]-_0x412cee[_0x299e3a(0x245)]+0x1),'endColumn':_0x37565e['endColumn']+(_0x412cee[_0x299e3a(0x22a)]-_0x412cee[_0x299e3a(0x245)]+0x1)}),_0x37565e[_0x299e3a(0x245)]=_0x37565e[_0x299e3a(0x245)]+(_0x412cee[_0x299e3a(0x22a)]-_0x412cee[_0x299e3a(0x245)]+0x1),_0x37565e[_0x299e3a(0x22a)]=_0x37565e[_0x299e3a(0x22a)]+(_0x412cee[_0x299e3a(0x22a)]-_0x412cee[_0x299e3a(0x245)]+0x1));}}if(_0x57a635[_0x299e3a(0x29d)]>0x0)_0x43c586[_0x299e3a(0x398)]({'id':_univerjs_sheets[_0x299e3a(0x374)]['id'],'params':{'unitId':_0x4a640c[_0x299e3a(0x3eb)][_0x299e3a(0x1d0)],'subUnitId':_0x4a640c[_0x299e3a(0x3eb)][_0x299e3a(0x25e)],'ranges':_0x57a635}});if(_0x1b38d4[_0x299e3a(0x29d)]>0x0)_0x43c586[_0x299e3a(0x380)]({'id':_univerjs_sheets[_0x299e3a(0x379)]['id'],'params':{'unitId':_0x4a640c[_0x299e3a(0x3eb)][_0x299e3a(0x1d0)],'subUnitId':_0x4a640c[_0x299e3a(0x3eb)][_0x299e3a(0x25e)],'ranges':_0x1b38d4}});if(_0x53b55f[_0x299e3a(0x3eb)][_0x299e3a(0x3a3)][_0x299e3a(0x29d)]===0x0)_0x53b55f['id']=_univerjs_sheets[_0x299e3a(0x305)]['id'];return{'m1Prime':_0x53b55f,'m2Prime':_0x43c586['length']>0x1?_0x43c586:_0x43c586[0x0]};}},addWorksheetMergeMutationWithMoveRangeMutation={'m1':_univerjs_sheets[_0xfc9601(0x379)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'handler'(_0x2441c9,_0x238c6b){const _0xb00bb1=_0xfc9601,_0x2bfdc1=_univerjs_core['Tools'][_0xb00bb1(0x1cf)](_0x2441c9),_0x241b61=_univerjs_core['Tools'][_0xb00bb1(0x1cf)](_0x238c6b);if(_0x2441c9['params'][_0xb00bb1(0x1d0)]!==_0x238c6b[_0xb00bb1(0x3eb)]['unitId'])return{'m1Prime':_0x2bfdc1,'m2Prime':_0x241b61};const _0x53c480=[],_0x46632d=[_0x241b61],_0xf3ab03=new _univerjs_core[(_0xb00bb1(0x3c2))](_0x238c6b['params']['from']['value'])['getDataRange'](),_0x27ebf3=new _univerjs_core[(_0xb00bb1(0x3c2))](_0x238c6b[_0xb00bb1(0x3eb)]['to'][_0xb00bb1(0x3e6)])[_0xb00bb1(0x3d1)]();for(let _0x5a670d=0x0;_0x5a670d<_0x2bfdc1[_0xb00bb1(0x3eb)][_0xb00bb1(0x3a3)][_0xb00bb1(0x29d)];_0x5a670d++){const _0x5bcccd=_0x2bfdc1['params']['ranges'][_0x5a670d];(_univerjs_core[_0xb00bb1(0x330)][_0xb00bb1(0x3b4)](_0xf3ab03,_0x5bcccd)||_univerjs_core[_0xb00bb1(0x330)]['intersects'](_0x27ebf3,_0x5bcccd))&&(_0x53c480[_0xb00bb1(0x380)](_0x5bcccd),_0x2bfdc1['params']['ranges'][_0xb00bb1(0x247)](_0x5a670d,0x1),_0x5a670d--);}if(_0x53c480[_0xb00bb1(0x29d)]>0x0)_0x46632d['unshift']({'id':_univerjs_sheets[_0xb00bb1(0x374)]['id'],'params':{'unitId':_0x2441c9[_0xb00bb1(0x3eb)]['unitId'],'subUnitId':_0x2441c9['params'][_0xb00bb1(0x25e)],'ranges':_0x53c480}});if(_0x2bfdc1[_0xb00bb1(0x3eb)]['ranges']['length']===0x0)_0x2bfdc1['id']=_univerjs_sheets[_0xb00bb1(0x305)]['id'];return{'m1Prime':_0x2bfdc1,'m2Prime':_0x46632d[_0xb00bb1(0x29d)]>0x1?_0x46632d:_0x46632d[0x0]};}},addWorksheetMergeMutationWithMoveRowMutation={'m1':_univerjs_sheets[_0xfc9601(0x379)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x225)]['id'],'handler'(_0x30cb5d,_0x591df9){const _0x1cae39=_0xfc9601,_0x4e3088=_univerjs_core[_0x1cae39(0x1c3)][_0x1cae39(0x1cf)](_0x30cb5d),_0x55d252=_univerjs_core[_0x1cae39(0x1c3)]['deepClone'](_0x591df9);if(_0x30cb5d[_0x1cae39(0x3eb)]['unitId']!==_0x591df9[_0x1cae39(0x3eb)][_0x1cae39(0x1d0)]||_0x30cb5d[_0x1cae39(0x3eb)]['subUnitId']!==_0x591df9[_0x1cae39(0x3eb)][_0x1cae39(0x25e)])return{'m1Prime':_0x4e3088,'m2Prime':_0x55d252};const _0x2cda1d=[],_0x3d4721=[],_0x1e482f=[_0x55d252];for(let _0x41880f=0x0;_0x41880f<_0x4e3088[_0x1cae39(0x3eb)]['ranges'][_0x1cae39(0x29d)];_0x41880f++){const _0x5c7b52=_0x4e3088[_0x1cae39(0x3eb)][_0x1cae39(0x3a3)][_0x41880f],{sourceRange:_0xf44744,targetRange:_0x31881f}=_0x591df9['params'];if(_univerjs_core['Rectangle']['intersects'](_0x5c7b52,_0xf44744)||_univerjs_core['Rectangle'][_0x1cae39(0x3b4)](_0x5c7b52,_0x31881f))_0x2cda1d[_0x1cae39(0x380)]({..._0x5c7b52}),_0x4e3088[_0x1cae39(0x3eb)][_0x1cae39(0x3a3)][_0x1cae39(0x247)](_0x41880f,0x1),_0x41880f--;else{if(_0xf44744[_0x1cae39(0x357)]<_0x5c7b52[_0x1cae39(0x357)]&&_0x31881f[_0x1cae39(0x357)]>_0x5c7b52[_0x1cae39(0x3aa)])_0x2cda1d[_0x1cae39(0x380)]({..._0x5c7b52}),_0x3d4721[_0x1cae39(0x380)]({..._0x5c7b52,'startRow':_0x5c7b52['startRow']-(_0xf44744[_0x1cae39(0x3aa)]-_0xf44744['startRow']+0x1),'endRow':_0x5c7b52[_0x1cae39(0x3aa)]-(_0xf44744['endRow']-_0xf44744[_0x1cae39(0x357)]+0x1)}),_0x5c7b52[_0x1cae39(0x357)]=_0x5c7b52[_0x1cae39(0x357)]-(_0xf44744[_0x1cae39(0x3aa)]-_0xf44744[_0x1cae39(0x357)]+0x1),_0x5c7b52[_0x1cae39(0x3aa)]=_0x5c7b52[_0x1cae39(0x3aa)]-(_0xf44744['endRow']-_0xf44744[_0x1cae39(0x357)]+0x1);else _0xf44744[_0x1cae39(0x357)]>_0x5c7b52[_0x1cae39(0x3aa)]&&_0x31881f[_0x1cae39(0x3aa)]<_0x5c7b52['startRow']&&(_0x2cda1d[_0x1cae39(0x380)]({..._0x5c7b52}),_0x3d4721[_0x1cae39(0x380)]({..._0x5c7b52,'startRow':_0x5c7b52[_0x1cae39(0x357)]+(_0xf44744[_0x1cae39(0x3aa)]-_0xf44744[_0x1cae39(0x357)]+0x1),'endRow':_0x5c7b52[_0x1cae39(0x3aa)]+(_0xf44744[_0x1cae39(0x3aa)]-_0xf44744[_0x1cae39(0x357)]+0x1)}),_0x5c7b52['startRow']=_0x5c7b52[_0x1cae39(0x357)]+(_0xf44744[_0x1cae39(0x3aa)]-_0xf44744[_0x1cae39(0x357)]+0x1),_0x5c7b52[_0x1cae39(0x3aa)]=_0x5c7b52[_0x1cae39(0x3aa)]+(_0xf44744[_0x1cae39(0x3aa)]-_0xf44744[_0x1cae39(0x357)]+0x1));}}if(_0x2cda1d[_0x1cae39(0x29d)]>0x0)_0x1e482f[_0x1cae39(0x398)]({'id':_univerjs_sheets[_0x1cae39(0x374)]['id'],'params':{'unitId':_0x30cb5d[_0x1cae39(0x3eb)][_0x1cae39(0x1d0)],'subUnitId':_0x30cb5d[_0x1cae39(0x3eb)][_0x1cae39(0x25e)],'ranges':_0x2cda1d}});if(_0x3d4721[_0x1cae39(0x29d)]>0x0)_0x1e482f[_0x1cae39(0x380)]({'id':_univerjs_sheets[_0x1cae39(0x379)]['id'],'params':{'unitId':_0x30cb5d[_0x1cae39(0x3eb)][_0x1cae39(0x1d0)],'subUnitId':_0x30cb5d['params'][_0x1cae39(0x25e)],'ranges':_0x3d4721}});if(_0x4e3088[_0x1cae39(0x3eb)][_0x1cae39(0x3a3)][_0x1cae39(0x29d)]===0x0)_0x4e3088['id']=_univerjs_sheets['EmptyMutation']['id'];return{'m1Prime':_0x4e3088,'m2Prime':_0x1e482f['length']>0x1?_0x1e482f:_0x1e482f[0x0]};}};function isMergeCell(_0x55a39e){const _0x58e9f0=_0xfc9601;if(_0x55a39e[_0x58e9f0(0x245)]>_0x55a39e[_0x58e9f0(0x22a)]||_0x55a39e['startRow']>_0x55a39e[_0x58e9f0(0x3aa)])return![];return!(_0x55a39e['startRow']===_0x55a39e[_0x58e9f0(0x3aa)]&&_0x55a39e[_0x58e9f0(0x245)]===_0x55a39e['endColumn']);}const addWorksheetMergeMutationWithRemoveColMutation={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets['RemoveColMutation']['id'],'handler'(_0x34ccbd,_0x44cd6d){const _0x1521d7=_0xfc9601,_0x2bcf63=_univerjs_core['Tools']['deepClone'](_0x34ccbd),_0x15fb1a=_univerjs_core[_0x1521d7(0x1c3)]['deepClone'](_0x44cd6d);if(_0x34ccbd['params']['unitId']!==_0x44cd6d[_0x1521d7(0x3eb)][_0x1521d7(0x1d0)]||_0x34ccbd['params'][_0x1521d7(0x25e)]!==_0x44cd6d['params'][_0x1521d7(0x25e)])return{'m1Prime':_0x2bcf63,'m2Prime':_0x15fb1a};const _0x270553=_0x34ccbd[_0x1521d7(0x3eb)]['unitId'],_0x5c4ee8=_0x34ccbd[_0x1521d7(0x3eb)][_0x1521d7(0x25e)],_0xece427=[_0x15fb1a],_0x3b4b5d=[],_0x26e204=[];for(let _0x4e3bd5=0x0;_0x4e3bd5<_0x2bcf63[_0x1521d7(0x3eb)][_0x1521d7(0x3a3)]['length'];_0x4e3bd5++){const _0x4722e1=_0x2bcf63[_0x1521d7(0x3eb)]['ranges'][_0x4e3bd5],_0x500554=_0x44cd6d[_0x1521d7(0x3eb)][_0x1521d7(0x29a)],_0x147158=_0x500554[_0x1521d7(0x22a)]-_0x500554['startColumn']+0x1;if(_0x500554['startColumn']<_0x4722e1[_0x1521d7(0x245)]&&_0x500554[_0x1521d7(0x22a)]<_0x4722e1[_0x1521d7(0x245)])_0x3b4b5d[_0x1521d7(0x380)]({..._0x4722e1}),_0x26e204[_0x1521d7(0x380)]({..._0x4722e1,'startColumn':_0x4722e1[_0x1521d7(0x245)]-_0x147158,'endColumn':_0x4722e1['endColumn']-_0x147158}),_0x4722e1['startColumn']=_0x4722e1[_0x1521d7(0x245)]-_0x147158,_0x4722e1[_0x1521d7(0x22a)]=_0x4722e1['endColumn']-_0x147158;else{if(_0x500554[_0x1521d7(0x245)]<_0x4722e1[_0x1521d7(0x245)]&&_0x500554['endColumn']>=_0x4722e1[_0x1521d7(0x245)]&&_0x500554[_0x1521d7(0x22a)]<=_0x4722e1[_0x1521d7(0x22a)]){_0x3b4b5d['push']({..._0x4722e1});const _0x33f0f1={..._0x4722e1,'startColumn':_0x500554[_0x1521d7(0x245)],'endColumn':_0x4722e1[_0x1521d7(0x22a)]-_0x147158};isMergeCell(_0x33f0f1)&&_0x500554[_0x1521d7(0x22a)]<_0x4722e1[_0x1521d7(0x22a)]?(_0x500554[_0x1521d7(0x22a)]<_0x4722e1[_0x1521d7(0x22a)]&&_0x26e204[_0x1521d7(0x380)](_0x33f0f1),_0x4722e1[_0x1521d7(0x245)]=_0x500554['startColumn'],_0x4722e1[_0x1521d7(0x22a)]=_0x4722e1[_0x1521d7(0x22a)]-_0x147158):(_0x2bcf63['params'][_0x1521d7(0x3a3)][_0x1521d7(0x247)](_0x4e3bd5,0x1),_0x4e3bd5--);}else{if(_0x500554[_0x1521d7(0x245)]>_0x4722e1[_0x1521d7(0x245)]&&_0x500554[_0x1521d7(0x22a)]<_0x4722e1[_0x1521d7(0x22a)]){_0x3b4b5d[_0x1521d7(0x380)]({..._0x4722e1});const _0x1891c4={..._0x4722e1,'endColumn':_0x4722e1[_0x1521d7(0x22a)]-_0x147158};isMergeCell(_0x1891c4)?(_0x26e204[_0x1521d7(0x380)](_0x1891c4),_0x4722e1[_0x1521d7(0x22a)]=_0x4722e1[_0x1521d7(0x22a)]-_0x147158):(_0x2bcf63[_0x1521d7(0x3eb)][_0x1521d7(0x3a3)][_0x1521d7(0x247)](_0x4e3bd5,0x1),_0x4e3bd5--);}else{if(_0x500554[_0x1521d7(0x245)]>=_0x4722e1['startColumn']&&_0x500554[_0x1521d7(0x245)]<=_0x4722e1[_0x1521d7(0x22a)]&&_0x500554[_0x1521d7(0x22a)]>_0x4722e1[_0x1521d7(0x22a)]){_0x3b4b5d[_0x1521d7(0x380)]({..._0x4722e1});const _0x48578a={..._0x4722e1,'endColumn':_0x500554[_0x1521d7(0x245)]-0x1};isMergeCell(_0x48578a)&&_0x500554[_0x1521d7(0x245)]>_0x4722e1[_0x1521d7(0x245)]?(_0x26e204[_0x1521d7(0x380)](_0x48578a),_0x4722e1[_0x1521d7(0x22a)]=_0x500554[_0x1521d7(0x245)]-0x1):(_0x2bcf63[_0x1521d7(0x3eb)][_0x1521d7(0x3a3)]['splice'](_0x4e3bd5,0x1),_0x4e3bd5--);}else{if(_0x500554[_0x1521d7(0x245)]>_0x4722e1['endColumn']){}else _0x500554[_0x1521d7(0x245)]<=_0x4722e1[_0x1521d7(0x245)]&&_0x500554[_0x1521d7(0x22a)]>=_0x4722e1['endColumn']&&(_0x3b4b5d[_0x1521d7(0x380)]({..._0x4722e1}),_0x2bcf63[_0x1521d7(0x3eb)][_0x1521d7(0x3a3)][_0x1521d7(0x247)](_0x4e3bd5,0x1),_0x4e3bd5--);}}}}}if(_0x3b4b5d[_0x1521d7(0x29d)]>0x0)_0xece427[_0x1521d7(0x398)]({'id':_univerjs_sheets[_0x1521d7(0x374)]['id'],'params':{'unitId':_0x270553,'subUnitId':_0x5c4ee8,'ranges':_0x3b4b5d}});if(_0x26e204[_0x1521d7(0x29d)]>0x0)_0xece427[_0x1521d7(0x380)]({'id':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'params':{'unitId':_0x270553,'subUnitId':_0x5c4ee8,'ranges':_0x26e204}});if(_0x2bcf63['params'][_0x1521d7(0x3a3)]['length']===0x0)_0x2bcf63['id']=_univerjs_sheets['EmptyMutation']['id'];return{'m1Prime':_0x2bcf63,'m2Prime':_0xece427[_0x1521d7(0x29d)]>0x1?_0xece427:_0xece427[0x0]};}},addWorksheetMergeMutationWithRemoveRowMutation={'m1':_univerjs_sheets[_0xfc9601(0x379)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'handler'(_0x1e460c,_0x337157){const _0x393724=_0xfc9601,_0x4b6e3f=_univerjs_core[_0x393724(0x1c3)][_0x393724(0x1cf)](_0x1e460c),_0x52f712=_univerjs_core['Tools'][_0x393724(0x1cf)](_0x337157);if(_0x1e460c[_0x393724(0x3eb)][_0x393724(0x1d0)]!==_0x337157[_0x393724(0x3eb)]['unitId']||_0x1e460c['params'][_0x393724(0x25e)]!==_0x337157[_0x393724(0x3eb)]['subUnitId'])return{'m1Prime':_0x4b6e3f,'m2Prime':_0x52f712};const _0x5991bb=_0x1e460c[_0x393724(0x3eb)][_0x393724(0x1d0)],_0x214634=_0x1e460c[_0x393724(0x3eb)][_0x393724(0x25e)],_0x13fe29=[_0x52f712],_0x28ac33=[],_0x55258d=[];for(let _0x7d409e=0x0;_0x7d409e<_0x4b6e3f[_0x393724(0x3eb)][_0x393724(0x3a3)]['length'];_0x7d409e++){const _0x175ed8=_0x4b6e3f[_0x393724(0x3eb)][_0x393724(0x3a3)][_0x7d409e],_0xec13d4=_0x337157[_0x393724(0x3eb)][_0x393724(0x29a)],_0x10a07a=_0xec13d4['endRow']-_0xec13d4[_0x393724(0x357)]+0x1;if(_0xec13d4[_0x393724(0x357)]<_0x175ed8['startRow']&&_0xec13d4[_0x393724(0x3aa)]<_0x175ed8[_0x393724(0x357)])_0x28ac33[_0x393724(0x380)]({..._0x175ed8}),_0x55258d[_0x393724(0x380)]({..._0x175ed8,'startRow':_0x175ed8[_0x393724(0x357)]-_0x10a07a,'endRow':_0x175ed8[_0x393724(0x3aa)]-_0x10a07a}),_0x175ed8[_0x393724(0x357)]=_0x175ed8['startRow']-_0x10a07a,_0x175ed8[_0x393724(0x3aa)]=_0x175ed8[_0x393724(0x3aa)]-_0x10a07a;else{if(_0xec13d4[_0x393724(0x357)]<_0x175ed8['startRow']&&_0xec13d4['endRow']>=_0x175ed8['startRow']&&_0xec13d4[_0x393724(0x3aa)]<=_0x175ed8['endRow']){_0x28ac33[_0x393724(0x380)]({..._0x175ed8});const _0x29d709={..._0x175ed8,'startRow':_0xec13d4['startRow'],'endRow':_0x175ed8['endRow']-_0x10a07a};isMergeCell(_0x29d709)&&_0xec13d4['endRow']<_0x175ed8['endRow']?(_0xec13d4['endRow']<_0x175ed8[_0x393724(0x3aa)]&&_0x55258d['push'](_0x29d709),_0x175ed8[_0x393724(0x357)]=_0xec13d4[_0x393724(0x357)],_0x175ed8[_0x393724(0x3aa)]=_0x175ed8[_0x393724(0x3aa)]-_0x10a07a):(_0x4b6e3f['params'][_0x393724(0x3a3)][_0x393724(0x247)](_0x7d409e,0x1),_0x7d409e--);}else{if(_0xec13d4[_0x393724(0x357)]>_0x175ed8[_0x393724(0x357)]&&_0xec13d4[_0x393724(0x3aa)]<_0x175ed8[_0x393724(0x3aa)]){_0x28ac33['push']({..._0x175ed8});const _0x4537e9={..._0x175ed8,'endRow':_0x175ed8[_0x393724(0x3aa)]-_0x10a07a};isMergeCell(_0x4537e9)?(_0x55258d[_0x393724(0x380)](_0x4537e9),_0x175ed8['endRow']=_0x175ed8[_0x393724(0x3aa)]-_0x10a07a):(_0x4b6e3f['params'][_0x393724(0x3a3)][_0x393724(0x247)](_0x7d409e,0x1),_0x7d409e--);}else{if(_0xec13d4['startRow']>=_0x175ed8[_0x393724(0x357)]&&_0xec13d4['startRow']<=_0x175ed8['endRow']&&_0xec13d4[_0x393724(0x3aa)]>_0x175ed8[_0x393724(0x3aa)]){_0x28ac33['push']({..._0x175ed8});const _0x3f031f={..._0x175ed8,'endRow':_0xec13d4[_0x393724(0x357)]-0x1};isMergeCell(_0x3f031f)&&_0xec13d4['startRow']>_0x175ed8[_0x393724(0x357)]?(_0x55258d['push'](_0x3f031f),_0x175ed8[_0x393724(0x3aa)]=_0xec13d4[_0x393724(0x357)]-0x1):(_0x4b6e3f['params'][_0x393724(0x3a3)]['splice'](_0x7d409e,0x1),_0x7d409e--);}else{if(_0xec13d4[_0x393724(0x357)]>_0x175ed8[_0x393724(0x3aa)]){}else _0xec13d4[_0x393724(0x357)]<=_0x175ed8['startRow']&&_0xec13d4[_0x393724(0x3aa)]>=_0x175ed8[_0x393724(0x3aa)]&&(_0x28ac33[_0x393724(0x380)]({..._0x175ed8}),_0x4b6e3f[_0x393724(0x3eb)][_0x393724(0x3a3)][_0x393724(0x247)](_0x7d409e,0x1),_0x7d409e--);}}}}}if(_0x28ac33[_0x393724(0x29d)]>0x0)_0x13fe29[_0x393724(0x398)]({'id':_univerjs_sheets[_0x393724(0x374)]['id'],'params':{'unitId':_0x5991bb,'subUnitId':_0x214634,'ranges':_0x28ac33}});if(_0x55258d[_0x393724(0x29d)]>0x0)_0x13fe29['push']({'id':_univerjs_sheets[_0x393724(0x379)]['id'],'params':{'unitId':_0x5991bb,'subUnitId':_0x214634,'ranges':_0x55258d}});if(_0x4b6e3f[_0x393724(0x3eb)][_0x393724(0x3a3)]['length']===0x0)_0x4b6e3f['id']=_univerjs_sheets[_0x393724(0x305)]['id'];return{'m1Prime':_0x4b6e3f,'m2Prime':_0x13fe29[_0x393724(0x29d)]>0x1?_0x13fe29:_0x13fe29[0x0]};}},addWorksheetMergeMutationWithRemoveWorksheetMergeMutation={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x374)]['id'],'handler'(_0x49f635,_0x482bf7){const _0xf6a34d=_0xfc9601,_0x2322bf=_univerjs_core[_0xf6a34d(0x1c3)][_0xf6a34d(0x1cf)](_0x49f635),_0x8b33a2=_univerjs_core[_0xf6a34d(0x1c3)][_0xf6a34d(0x1cf)](_0x482bf7);if(_0x49f635[_0xf6a34d(0x3eb)][_0xf6a34d(0x1d0)]!==_0x482bf7[_0xf6a34d(0x3eb)]['unitId']||_0x49f635[_0xf6a34d(0x3eb)]['subUnitId']!==_0x482bf7[_0xf6a34d(0x3eb)][_0xf6a34d(0x25e)])return{'m1Prime':_0x2322bf,'m2Prime':_0x8b33a2};const _0x966940=[..._0x8b33a2['params']['ranges']];for(let _0x5ec4e0=0x0;_0x5ec4e0<_0x2322bf[_0xf6a34d(0x3eb)][_0xf6a34d(0x3a3)][_0xf6a34d(0x29d)];_0x5ec4e0++){let _0x5320de=![];for(let _0x4c809c=0x0;_0x4c809c<_0x8b33a2['params'][_0xf6a34d(0x3a3)][_0xf6a34d(0x29d)];_0x4c809c++){const _0x5dce20=_0x2322bf[_0xf6a34d(0x3eb)]['ranges'][_0x5ec4e0],_0x4c74d0=_0x8b33a2[_0xf6a34d(0x3eb)][_0xf6a34d(0x3a3)][_0x4c809c];if(_univerjs_core[_0xf6a34d(0x330)][_0xf6a34d(0x3b4)](_0x5dce20,_0x4c74d0)){_0x5320de=!![];break;}}_0x5320de&&(_0x966940[_0xf6a34d(0x380)](_0x2322bf[_0xf6a34d(0x3eb)]['ranges'][_0x5ec4e0]),_0x2322bf[_0xf6a34d(0x3eb)]['ranges'][_0xf6a34d(0x247)](_0x5ec4e0,0x1),_0x5ec4e0--);}_0x8b33a2[_0xf6a34d(0x3eb)][_0xf6a34d(0x3a3)]=_0x966940;if(_0x2322bf['params']['ranges'][_0xf6a34d(0x29d)]===0x0)_0x2322bf['id']=_univerjs_sheets[_0xf6a34d(0x305)]['id'];return{'m1Prime':_0x2322bf,'m2Prime':_0x8b33a2};}},addWorksheetMergeMutationWithSetRangeValues={'m1':_univerjs_sheets[_0xfc9601(0x379)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler'(_0x50439f,_0x13b6d3){const _0x369c0e=_0xfc9601,_0x30ffcd=_univerjs_core[_0x369c0e(0x1c3)][_0x369c0e(0x1cf)](_0x50439f),_0x1a8e03=_univerjs_core[_0x369c0e(0x1c3)]['deepClone'](_0x13b6d3);if(_0x50439f[_0x369c0e(0x3eb)]['unitId']!==_0x13b6d3['params'][_0x369c0e(0x1d0)]||_0x50439f[_0x369c0e(0x3eb)][_0x369c0e(0x25e)]!==_0x13b6d3[_0x369c0e(0x3eb)][_0x369c0e(0x25e)])return{'m1Prime':_0x30ffcd,'m2Prime':_0x1a8e03};const _0x247f9b=[_0x30ffcd],_0x3d949a=[_0x1a8e03],_0x58f954=new _univerjs_core['ObjectMatrix'](_univerjs_core['Tools'][_0x369c0e(0x1cf)](_0x13b6d3[_0x369c0e(0x3eb)]['cellValue'])),_0x3d5dc6=new Set(),_0x16d2ae={};for(let _0x292f92=0x0;_0x292f92<_0x30ffcd[_0x369c0e(0x3eb)][_0x369c0e(0x3a3)][_0x369c0e(0x29d)];_0x292f92++){const _0x351011=_0x30ffcd[_0x369c0e(0x3eb)]['ranges'][_0x292f92],{startRow:_0x5f08a4,startColumn:_0x538738,endRow:_0x14f540,endColumn:_0x3aa7c3}=_0x351011;let _0x3f041c=![];_0x58f954[_0x369c0e(0x387)]((_0x50fb90,_0x3c921a,_0x214c74)=>{const _0x47bede=_0x369c0e;if(_0x50fb90>=_0x5f08a4&&_0x50fb90<=_0x14f540&&_0x3c921a>=_0x538738&&_0x3c921a<=_0x3aa7c3){const _0x585085=_0x58f954[_0x47bede(0x2f1)](_0x50fb90,_0x3c921a),_0x91f4b9=_0x585085===null?{'v':null,'s':null,'t':null,'si':null,'p':null,'f':null}:_0x585085;if(_0x91f4b9){if(!_0x16d2ae[_0x50fb90])_0x16d2ae[_0x50fb90]={};_0x16d2ae[_0x50fb90][_0x3c921a]={},(_0x214c74===null||_0x214c74===void 0x0?void 0x0:_0x214c74['v'])!==void 0x0&&(_0x16d2ae[_0x50fb90][_0x3c921a]['v']=null,delete _0x91f4b9['v']),(_0x214c74===null||_0x214c74===void 0x0?void 0x0:_0x214c74['f'])!==void 0x0&&(_0x16d2ae[_0x50fb90][_0x3c921a]['f']=null,delete _0x91f4b9['f']),(_0x214c74===null||_0x214c74===void 0x0?void 0x0:_0x214c74['t'])!==void 0x0&&(_0x16d2ae[_0x50fb90][_0x3c921a]['t']=null,delete _0x91f4b9['t']),(_0x214c74===null||_0x214c74===void 0x0?void 0x0:_0x214c74['si'])!==void 0x0&&(_0x16d2ae[_0x50fb90][_0x3c921a]['si']=null,delete _0x91f4b9['si']),(_0x214c74===null||_0x214c74===void 0x0?void 0x0:_0x214c74['p'])!==void 0x0&&(_0x16d2ae[_0x50fb90][_0x3c921a]['p']=null,delete _0x91f4b9['p']),(_0x214c74===null||_0x214c74===void 0x0?void 0x0:_0x214c74['s'])!==void 0x0&&(_0x16d2ae[_0x50fb90][_0x3c921a]['s']=null,delete _0x91f4b9['s']),_0x58f954[_0x47bede(0x2fe)](_0x50fb90,_0x3c921a,_0x91f4b9),_0x3f041c=!![];}}}),_0x3f041c&&(_0x3d5dc6[_0x369c0e(0x3b0)]({..._0x351011}),_0x30ffcd['params'][_0x369c0e(0x3a3)][_0x369c0e(0x247)](_0x292f92,0x1),_0x292f92--);}_0x1a8e03[_0x369c0e(0x3eb)]['cellValue']=_0x58f954[_0x369c0e(0x1d1)]();if(_0x3d5dc6[_0x369c0e(0x3a5)]>0x0)_0x3d949a[_0x369c0e(0x398)]({'id':_univerjs_sheets[_0x369c0e(0x374)]['id'],'params':{'unitId':_0x50439f[_0x369c0e(0x3eb)][_0x369c0e(0x1d0)],'subUnitId':_0x50439f['params'][_0x369c0e(0x25e)],'ranges':Array[_0x369c0e(0x3a4)](_0x3d5dc6)}});if(_0x30ffcd['params'][_0x369c0e(0x3a3)][_0x369c0e(0x29d)]===0x0)_0x30ffcd['id']=_univerjs_sheets[_0x369c0e(0x305)]['id'];if(Object[_0x369c0e(0x38e)](_0x16d2ae)[_0x369c0e(0x29d)]>0x0)_0x247f9b[_0x369c0e(0x398)]({'id':_univerjs_sheets[_0x369c0e(0x30f)]['id'],'params':{'unitId':_0x50439f[_0x369c0e(0x3eb)][_0x369c0e(0x1d0)],'subUnitId':_0x50439f[_0x369c0e(0x3eb)][_0x369c0e(0x25e)],'cellValue':_0x16d2ae}});return{'m1Prime':_0x247f9b[_0x369c0e(0x29d)]>0x1?_0x247f9b:_0x247f9b[0x0],'m2Prime':_0x3d949a[_0x369c0e(0x29d)]>0x1?_0x3d949a:_0x3d949a[0x0]};}},addWorksheetMergeMutationWithSetSelection={'m1':_univerjs_sheets[_0xfc9601(0x379)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1cd)]['id'],'handler'(_0x5c552b,_0x4e3ed0){const _0x182c67=_0xfc9601,_0x5f5bbf={'m1Prime':[],'m2Prime':[]};if(_0x5c552b[_0x182c67(0x3eb)]['unitId']!==_0x4e3ed0[_0x182c67(0x3eb)][_0x182c67(0x1d0)]||_0x5c552b[_0x182c67(0x3eb)][_0x182c67(0x25e)]!==_0x4e3ed0[_0x182c67(0x3eb)][_0x182c67(0x25e)])return _0x5f5bbf;const _0x2fde6b=_univerjs_core[_0x182c67(0x1c3)][_0x182c67(0x1cf)](_0x4e3ed0),_0x275555=_0x2fde6b['params'][_0x182c67(0x3e0)];_0x275555[_0x182c67(0x302)]((_0x5b123b,_0x363aa3)=>{const _0x3a748a=_0x182c67,{range:_0x37fce1,primary:_0x46d366}=_0x5b123b;_0x5c552b[_0x3a748a(0x3eb)][_0x3a748a(0x3a3)][_0x3a748a(0x302)](_0x464560=>{const _0x43d9be=_0x3a748a;_univerjs_core[_0x43d9be(0x330)][_0x43d9be(0x3b4)](_0x464560,_0x37fce1)&&(_0x37fce1[_0x43d9be(0x357)]=Math[_0x43d9be(0x1d8)](_0x464560[_0x43d9be(0x357)],_0x37fce1[_0x43d9be(0x357)]),_0x37fce1[_0x43d9be(0x245)]=Math[_0x43d9be(0x1d8)](_0x464560[_0x43d9be(0x245)],_0x37fce1['startColumn']),_0x37fce1[_0x43d9be(0x3aa)]=Math[_0x43d9be(0x2bd)](_0x464560[_0x43d9be(0x3aa)],_0x37fce1['endRow']),_0x37fce1[_0x43d9be(0x22a)]=Math['max'](_0x464560[_0x43d9be(0x22a)],_0x37fce1[_0x43d9be(0x22a)]));if(_0x46d366&&_univerjs_core['Rectangle']['intersects'](_0x464560,_0x46d366)&&_0x363aa3===_0x275555[_0x43d9be(0x29d)]-0x1){if(_0x46d366[_0x43d9be(0x245)]===_0x464560['startColumn']&&_0x46d366[_0x43d9be(0x357)]&&_0x464560[_0x43d9be(0x357)])_0x46d366[_0x43d9be(0x201)]=!![];_0x46d366[_0x43d9be(0x357)]=Math[_0x43d9be(0x1d8)](_0x464560[_0x43d9be(0x357)],_0x46d366[_0x43d9be(0x357)]),_0x46d366[_0x43d9be(0x245)]=Math[_0x43d9be(0x1d8)](_0x464560[_0x43d9be(0x245)],_0x46d366[_0x43d9be(0x245)]),_0x46d366['endRow']=Math[_0x43d9be(0x2bd)](_0x464560[_0x43d9be(0x3aa)],_0x46d366['endRow']),_0x46d366['endColumn']=Math[_0x43d9be(0x2bd)](_0x464560[_0x43d9be(0x22a)],_0x46d366['endColumn']),_0x46d366[_0x43d9be(0x373)]=!![];}});}),_0x275555[_0x182c67(0x3be)]((_0x15a975,_0x2682e2)=>{const _0x4d8593=_0x182c67,_0x523a73=_0x15a975['range'],_0x33432b=_0x2682e2[_0x4d8593(0x29a)];if(_0x523a73[_0x4d8593(0x357)]===_0x33432b[_0x4d8593(0x357)])return _0x523a73['startColumn']-_0x33432b['startColumn'];return _0x523a73['startRow']-_0x33432b[_0x4d8593(0x357)];});const _0x13f44d=[];let _0x3adbc6=null;for(const _0x5da8a2 of _0x275555)if(_0x3adbc6===null||!_univerjs_core[_0x182c67(0x330)][_0x182c67(0x3b4)](_0x3adbc6[_0x182c67(0x29a)],_0x5da8a2[_0x182c67(0x29a)]))_0x13f44d['push'](_0x5da8a2),_0x3adbc6=_0x5da8a2;else{_0x3adbc6[_0x182c67(0x29a)][_0x182c67(0x357)]=Math[_0x182c67(0x1d8)](_0x3adbc6[_0x182c67(0x29a)][_0x182c67(0x357)],_0x5da8a2[_0x182c67(0x29a)][_0x182c67(0x357)]),_0x3adbc6[_0x182c67(0x29a)][_0x182c67(0x245)]=Math[_0x182c67(0x1d8)](_0x3adbc6[_0x182c67(0x29a)][_0x182c67(0x245)],_0x5da8a2[_0x182c67(0x29a)][_0x182c67(0x245)]),_0x3adbc6[_0x182c67(0x29a)][_0x182c67(0x3aa)]=Math[_0x182c67(0x2bd)](_0x3adbc6[_0x182c67(0x29a)][_0x182c67(0x3aa)],_0x5da8a2['range'][_0x182c67(0x3aa)]),_0x3adbc6['range'][_0x182c67(0x22a)]=Math['max'](_0x3adbc6['range'][_0x182c67(0x22a)],_0x5da8a2[_0x182c67(0x29a)][_0x182c67(0x22a)]);if(_0x5da8a2[_0x182c67(0x40d)])_0x3adbc6[_0x182c67(0x40d)]=_0x5da8a2[_0x182c67(0x40d)];}return _0x2fde6b[_0x182c67(0x3eb)][_0x182c67(0x3e0)]=_0x13f44d,_0x5f5bbf[_0x182c67(0x3d9)]['push'](_0x2fde6b),_0x5f5bbf;}},addWorksheetProtectionWithAddComment={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x411)]['id'],'handler':(_0x5ca3fb,_0x92b66a)=>{const _0x299c59=_0xfc9601,_0x3014b0={'m1Prime':_0x5ca3fb,'m2Prime':_0x92b66a};if(_0x5ca3fb[_0x299c59(0x3eb)]['unitId']!==_0x92b66a[_0x299c59(0x3eb)]['unitId']||_0x5ca3fb['params']['subUnitId']!==_0x92b66a['params']['subUnitId'])return _0x3014b0;return{'error':new Error(_0x299c59(0x2e5))};}},addWorksheetProtectionWithAddConditionRule={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x40c)]['id'],'handler':(_0x3c53f8,_0x3165b6)=>{const _0x368c12=_0xfc9601,_0x3e417a={'m1Prime':_0x3c53f8,'m2Prime':_0x3165b6};if(_0x3c53f8[_0x368c12(0x3eb)][_0x368c12(0x1d0)]!==_0x3165b6[_0x368c12(0x3eb)][_0x368c12(0x1d0)]||_0x3c53f8['params']['subUnitId']!==_0x3165b6[_0x368c12(0x3eb)][_0x368c12(0x25e)])return _0x3e417a;return{'error':new Error(_0x368c12(0x368))};}},addWorksheetProtectionWithAddRangeProtection={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x200)]['id'],'handler':(_0x408d58,_0x200246)=>{const _0x418f16=_0xfc9601,_0x56ac44={'m1Prime':_0x408d58,'m2Prime':_0x200246};if(_0x408d58[_0x418f16(0x3eb)][_0x418f16(0x1d0)]!==_0x200246['params'][_0x418f16(0x1d0)]||_0x408d58[_0x418f16(0x3eb)]['subUnitId']!==_0x200246[_0x418f16(0x3eb)][_0x418f16(0x25e)])return _0x56ac44;return{'error':new Error('add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20range\x20protection')};}},addWorksheetProtectionWithAddWorksheetMerge={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler':(_0x525add,_0x3e0ce)=>{const _0x416e8b=_0xfc9601,_0x1d5704={'m1Prime':_0x525add,'m2Prime':_0x3e0ce};if(_0x525add[_0x416e8b(0x3eb)]['unitId']!==_0x3e0ce[_0x416e8b(0x3eb)][_0x416e8b(0x1d0)]||_0x525add[_0x416e8b(0x3eb)][_0x416e8b(0x25e)]!==_0x3e0ce[_0x416e8b(0x3eb)]['subUnitId'])return _0x1d5704;return{'error':new Error(_0x416e8b(0x26d))};}},addWorksheetProtectionWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'handler':(_0x2a34ce,_0x425f25)=>{const _0x2599a8=_0xfc9601,_0x516628={'m1Prime':_0x2a34ce,'m2Prime':_0x425f25};if(_0x2a34ce['params'][_0x2599a8(0x1d0)]!==_0x425f25[_0x2599a8(0x3eb)][_0x2599a8(0x1d0)]||_0x2a34ce[_0x2599a8(0x3eb)][_0x2599a8(0x25e)]!==_0x425f25['params'][_0x2599a8(0x331)][_0x2599a8(0x25e)])return _0x516628;return{'error':new Error(_0x2599a8(0x26f))};}},addWorksheetProtectionWithChangeSheetOrder={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x389)]['id'],'handler':(_0x38d4fc,_0x6a1fdf)=>{const _0x58590c=_0xfc9601,_0x50afcf={'m1Prime':_0x38d4fc,'m2Prime':_0x6a1fdf};if(_0x38d4fc[_0x58590c(0x3eb)][_0x58590c(0x1d0)]!==_0x6a1fdf[_0x58590c(0x3eb)][_0x58590c(0x1d0)]||_0x38d4fc[_0x58590c(0x3eb)]['subUnitId']!==_0x6a1fdf[_0x58590c(0x3eb)][_0x58590c(0x25e)])return _0x50afcf;return{'error':new Error(_0x58590c(0x313))};}},addWorksheetProtectionWithDeleteConditionFormattingRule={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x327)]['id'],'handler':(_0x4853a4,_0x586a7f)=>{const _0x2658ff=_0xfc9601,_0x1b4d4={'m1Prime':_0x4853a4,'m2Prime':_0x586a7f};if(_0x4853a4[_0x2658ff(0x3eb)][_0x2658ff(0x1d0)]!==_0x586a7f[_0x2658ff(0x3eb)][_0x2658ff(0x1d0)]||_0x4853a4[_0x2658ff(0x3eb)]['subUnitId']!==_0x586a7f[_0x2658ff(0x3eb)][_0x2658ff(0x25e)])return _0x1b4d4;return{'error':new Error('add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20delete\x20conditional\x20formatting\x20rule')};}},addWorksheetProtectionWithInsertCol={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'handler':(_0x5bbe0a,_0x9c8d)=>{const _0x281f34=_0xfc9601,_0x466f8e={'m1Prime':_0x5bbe0a,'m2Prime':_0x9c8d};if(_0x5bbe0a[_0x281f34(0x3eb)][_0x281f34(0x1d0)]!==_0x9c8d['params']['unitId']||_0x5bbe0a['params']['subUnitId']!==_0x9c8d['params'][_0x281f34(0x25e)])return _0x466f8e;return{'error':new Error(_0x281f34(0x2c4))};}},addWorksheetProtectionWithInsertRow={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x286)]['id'],'handler':(_0x54632f,_0x289831)=>{const _0x32a0db=_0xfc9601,_0x1daefe={'m1Prime':_0x54632f,'m2Prime':_0x289831};if(_0x54632f[_0x32a0db(0x3eb)]['unitId']!==_0x289831[_0x32a0db(0x3eb)][_0x32a0db(0x1d0)]||_0x54632f[_0x32a0db(0x3eb)][_0x32a0db(0x25e)]!==_0x289831['params']['subUnitId'])return _0x1daefe;return{'error':new Error(_0x32a0db(0x1f3))};}},addWorksheetProtectionWithMoveCol={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets['MoveColsMutation']['id'],'handler':(_0x577a9e,_0x5b9aa9)=>{const _0x552fde=_0xfc9601,_0x38891e={'m1Prime':_0x577a9e,'m2Prime':_0x5b9aa9};if(_0x577a9e[_0x552fde(0x3eb)]['unitId']!==_0x5b9aa9['params'][_0x552fde(0x1d0)]||_0x577a9e[_0x552fde(0x3eb)][_0x552fde(0x25e)]!==_0x5b9aa9[_0x552fde(0x3eb)][_0x552fde(0x25e)])return _0x38891e;return{'error':new Error(_0x552fde(0x1d4))};}},addWorksheetProtectionWithMoveRange={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'handler':(_0x2e02ee,_0x4a0be9)=>{const _0x180948=_0xfc9601,_0x4564c0={'m1Prime':_0x2e02ee,'m2Prime':_0x4a0be9};if(_0x2e02ee[_0x180948(0x3eb)][_0x180948(0x1d0)]!==_0x4a0be9[_0x180948(0x3eb)]['unitId']||_0x2e02ee[_0x180948(0x3eb)]['subUnitId']!==_0x4a0be9[_0x180948(0x3eb)]['from']['subUnitId'])return _0x4564c0;return{'error':new Error(_0x180948(0x231))};}},addWorksheetProtectionWithMoveRow={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets['MoveRowsMutation']['id'],'handler':(_0x13a85b,_0x4aebf3)=>{const _0x169635=_0xfc9601,_0xa23e01={'m1Prime':_0x13a85b,'m2Prime':_0x4aebf3};if(_0x13a85b[_0x169635(0x3eb)][_0x169635(0x1d0)]!==_0x4aebf3[_0x169635(0x3eb)]['unitId']||_0x13a85b[_0x169635(0x3eb)][_0x169635(0x25e)]!==_0x4aebf3[_0x169635(0x3eb)][_0x169635(0x25e)])return _0xa23e01;return{'error':new Error(_0x169635(0x31e))};}},addWorksheetProtectionWithRemoveCol={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets['RemoveColMutation']['id'],'handler':(_0x3f0e6b,_0x199d6f)=>{const _0x336ed1=_0xfc9601,_0x10dadb={'m1Prime':_0x3f0e6b,'m2Prime':_0x199d6f};if(_0x3f0e6b[_0x336ed1(0x3eb)]['unitId']!==_0x199d6f[_0x336ed1(0x3eb)]['unitId']||_0x3f0e6b[_0x336ed1(0x3eb)][_0x336ed1(0x25e)]!==_0x199d6f[_0x336ed1(0x3eb)]['subUnitId'])return _0x10dadb;return{'error':new Error(_0x336ed1(0x2f5))};}},addWorksheetProtectionWithRemoveDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x252)]['id'],'handler':(_0x2dedda,_0x4eea67)=>{const _0x2bfbc6=_0xfc9601,_0x26bb44={'m1Prime':_0x2dedda,'m2Prime':_0x4eea67};if(_0x2dedda[_0x2bfbc6(0x3eb)]['unitId']!==_0x4eea67[_0x2bfbc6(0x3eb)]['unitId']||_0x2dedda['params'][_0x2bfbc6(0x25e)]!==_0x4eea67['params'][_0x2bfbc6(0x25e)])return _0x26bb44;return{'error':new Error(_0x2bfbc6(0x2b9))};}},addWorksheetProtectionWithRemoveNumfmt={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'handler':(_0xbeee42,_0x59474b)=>{const _0x1175b3=_0xfc9601,_0x3939ea={'m1Prime':_0xbeee42,'m2Prime':_0x59474b};if(_0xbeee42['params']['unitId']!==_0x59474b['params'][_0x1175b3(0x1d0)]||_0xbeee42['params'][_0x1175b3(0x25e)]!==_0x59474b[_0x1175b3(0x3eb)][_0x1175b3(0x25e)])return _0x3939ea;return{'error':new Error(_0x1175b3(0x25d))};}},addWorksheetProtectionWithRemoveRow={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'handler':(_0x39a3a1,_0x14d20c)=>{const _0x4ce519=_0xfc9601,_0xe695a9={'m1Prime':_0x39a3a1,'m2Prime':_0x14d20c};if(_0x39a3a1['params'][_0x4ce519(0x1d0)]!==_0x14d20c[_0x4ce519(0x3eb)]['unitId']||_0x39a3a1[_0x4ce519(0x3eb)][_0x4ce519(0x25e)]!==_0x14d20c[_0x4ce519(0x3eb)][_0x4ce519(0x25e)])return _0xe695a9;return{'error':new Error(_0x4ce519(0x3cf))};}},addWorksheetProtectionWithRemoveFilter={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x274)]['id'],'handler':(_0x57c2d5,_0xb37bfc)=>{const _0x1af8f6=_0xfc9601,_0x41bb31={'m1Prime':_0x57c2d5,'m2Prime':_0xb37bfc};if(_0x57c2d5['params'][_0x1af8f6(0x1d0)]!==_0xb37bfc[_0x1af8f6(0x3eb)][_0x1af8f6(0x1d0)]||_0x57c2d5[_0x1af8f6(0x3eb)][_0x1af8f6(0x25e)]!==_0xb37bfc[_0x1af8f6(0x3eb)]['subUnitId'])return _0x41bb31;return{'error':new Error(_0x1af8f6(0x409))};}},addWorksheetProtectionWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'handler':(_0x267bc7,_0x1f0a2b)=>{const _0x58b4c9=_0xfc9601,_0x94e3ab={'m1Prime':_0x267bc7,'m2Prime':_0x1f0a2b};if(_0x267bc7[_0x58b4c9(0x3eb)][_0x58b4c9(0x1d0)]!==_0x1f0a2b['params'][_0x58b4c9(0x1d0)]||_0x267bc7['params']['subUnitId']!==_0x1f0a2b[_0x58b4c9(0x3eb)]['subUnitId'])return _0x94e3ab;return{'error':new Error('add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20worksheet\x20merge')};}},addWorksheetProtectionWithRemoveWorksheet={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x376)]['id'],'handler':(_0x3d879b,_0x35dbe2)=>{const _0x54b290=_0xfc9601;if(_0x3d879b['params'][_0x54b290(0x1d0)]!==_0x35dbe2[_0x54b290(0x3eb)]['unitId']||_0x3d879b[_0x54b290(0x3eb)][_0x54b290(0x25e)]!==_0x35dbe2[_0x54b290(0x3eb)][_0x54b290(0x25e)])return{'m1Prime':_0x3d879b,'m2Prime':_0x35dbe2};return{'error':new Error(_0x54b290(0x29b))};}},addWorksheetProtectionWithSetConditionalFormattingRule={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x36f)]['id'],'handler':(_0x24cef4,_0x43b5b0)=>{const _0x574e6f=_0xfc9601,_0x83b3d8={'m1Prime':_0x24cef4,'m2Prime':_0x43b5b0};if(_0x24cef4[_0x574e6f(0x3eb)][_0x574e6f(0x1d0)]!==_0x43b5b0['params'][_0x574e6f(0x1d0)]||_0x24cef4['params'][_0x574e6f(0x25e)]!==_0x43b5b0[_0x574e6f(0x3eb)][_0x574e6f(0x25e)])return _0x83b3d8;return{'error':new Error(_0x574e6f(0x3e4))};}},addWorksheetProtectionWithSetFrozen={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2ec)]['id'],'handler':(_0xb695bf,_0x58787e)=>{const _0xbf54cb=_0xfc9601,_0x5195b1={'m1Prime':_0xb695bf,'m2Prime':_0x58787e};if(_0xb695bf[_0xbf54cb(0x3eb)][_0xbf54cb(0x1d0)]!==_0x58787e[_0xbf54cb(0x3eb)]['unitId']||_0xb695bf[_0xbf54cb(0x3eb)][_0xbf54cb(0x25e)]!==_0x58787e[_0xbf54cb(0x3eb)][_0xbf54cb(0x25e)])return _0x5195b1;return{'error':new Error(_0xbf54cb(0x3bf))};}},addWorksheetProtectionWithSetNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x397)]['id'],'handler':(_0x3f4285,_0x386a2a)=>{const _0x455b8f=_0xfc9601,_0xa2d8f2={'m1Prime':_0x3f4285,'m2Prime':_0x386a2a};if(_0x3f4285['params'][_0x455b8f(0x1d0)]!==_0x386a2a['params'][_0x455b8f(0x1d0)]||_0x3f4285['params'][_0x455b8f(0x25e)]!==_0x386a2a[_0x455b8f(0x3eb)][_0x455b8f(0x25e)])return _0xa2d8f2;return{'error':new Error('add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20numfmt')};}},addWorksheetProtectionWithSetRangeProtection={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'handler':(_0x1ad1f3,_0x1eb3f6)=>{const _0x90208d=_0xfc9601,_0x2e3899={'m1Prime':_0x1ad1f3,'m2Prime':_0x1eb3f6};if(_0x1ad1f3['params'][_0x90208d(0x1d0)]!==_0x1eb3f6['params'][_0x90208d(0x1d0)]||_0x1ad1f3[_0x90208d(0x3eb)][_0x90208d(0x25e)]!==_0x1eb3f6[_0x90208d(0x3eb)][_0x90208d(0x25e)])return _0x2e3899;return{'error':new Error(_0x90208d(0x262))};}},addWorksheetProtectionWithSetWorksheetColWidth={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1f5)]['id'],'handler':(_0x3e2107,_0x3db191)=>{const _0x79bfc9=_0xfc9601,_0x3041a6={'m1Prime':_0x3e2107,'m2Prime':_0x3db191};if(_0x3e2107[_0x79bfc9(0x3eb)][_0x79bfc9(0x1d0)]!==_0x3db191[_0x79bfc9(0x3eb)][_0x79bfc9(0x1d0)]||_0x3e2107[_0x79bfc9(0x3eb)][_0x79bfc9(0x25e)]!==_0x3db191[_0x79bfc9(0x3eb)][_0x79bfc9(0x25e)])return _0x3041a6;return{'error':new Error(_0x79bfc9(0x3e7))};}},addWorksheetProtectionWithSetWorksheetName={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x3f9)]['id'],'handler':(_0x262f48,_0xe58286)=>{const _0x2b18c5=_0xfc9601,_0x1532ad={'m1Prime':_0x262f48,'m2Prime':_0xe58286};if(_0x262f48[_0x2b18c5(0x3eb)]['unitId']!==_0xe58286[_0x2b18c5(0x3eb)][_0x2b18c5(0x1d0)]||_0x262f48[_0x2b18c5(0x3eb)]['subUnitId']!==_0xe58286[_0x2b18c5(0x3eb)]['subUnitId'])return _0x1532ad;return{'error':new Error(_0x2b18c5(0x21f))};}},addWorksheetProtectionWithUpdateComment={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x3ab)]['id'],'handler':(_0x14ee75,_0x4fc45b)=>{const _0x107c67=_0xfc9601,_0xc18365={'m1Prime':_0x14ee75,'m2Prime':_0x4fc45b};if(_0x14ee75[_0x107c67(0x3eb)][_0x107c67(0x1d0)]!==_0x4fc45b[_0x107c67(0x3eb)][_0x107c67(0x1d0)]||_0x14ee75[_0x107c67(0x3eb)][_0x107c67(0x25e)]!==_0x4fc45b['params']['subUnitId'])return _0xc18365;return{'error':new Error(_0x107c67(0x3ba))};}},addWorksheetProtectionWithUpdateDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x2b1)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x375ab2,_0x45ee89)=>{const _0x5f5a39=_0xfc9601,_0x3e4ef9={'m1Prime':_0x375ab2,'m2Prime':_0x45ee89};if(_0x375ab2[_0x5f5a39(0x3eb)][_0x5f5a39(0x1d0)]!==_0x45ee89['params'][_0x5f5a39(0x1d0)]||_0x375ab2['params']['subUnitId']!==_0x45ee89[_0x5f5a39(0x3eb)][_0x5f5a39(0x25e)])return _0x3e4ef9;return{'error':new Error(_0x5f5a39(0x390))};}},deleteCommentMutationWithAdd={'m1':_univerjs_thread_comment['DeleteCommentMutation']['id'],'m2':_univerjs_thread_comment['AddCommentMutation']['id'],'handler':(_0x54d2ec,_0x47b007)=>{const _0x4a087f=_0xfc9601,_0x286d90=_0x54d2ec[_0x4a087f(0x3eb)],_0x4bbbbe=_0x47b007['params'];if(_0x286d90[_0x4a087f(0x1d0)]===_0x4bbbbe[_0x4a087f(0x1d0)]&&_0x286d90['subUnitId']===_0x4bbbbe['subUnitId']&&_0x286d90[_0x4a087f(0x287)]===_0x4bbbbe['comment'][_0x4a087f(0x22d)])return{'m1Prime':_0x54d2ec,'m2Prime':[]};return{'m1Prime':_0x54d2ec,'m2Prime':_0x47b007};}},deleteCommentMutationWithSelf={'m1':_univerjs_thread_comment[_0xfc9601(0x2ba)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x2ba)]['id'],'handler':(_0x45cfcb,_0x506903)=>{const _0x5178f9=_0xfc9601,_0x52111f=_0x45cfcb[_0x5178f9(0x3eb)],_0x2d068e=_0x506903[_0x5178f9(0x3eb)],_0x41c4f9={'m1Prime':_0x45cfcb,'m2Prime':_0x506903};if(_0x52111f[_0x5178f9(0x1d0)]!==_0x2d068e[_0x5178f9(0x1d0)]||_0x52111f[_0x5178f9(0x25e)]!==_0x2d068e[_0x5178f9(0x25e)]||_0x52111f['commentId']!==_0x2d068e['commentId'])return _0x41c4f9;return{'m1Prime':[],'m2Prime':[]};}},deleteConditionalFormattingRuleMutationWithSelf={'m1':_univerjs_sheets_conditional_formatting[_0xfc9601(0x327)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x327)]['id'],'handler'(_0x2b8dbb,_0x2d770b){return{'m1Prime':_0x2b8dbb,'m2Prime':_0x2d770b};}},transformAddCommentWithRefRange=(_0x186d3e,_0x512354)=>{const _0x4c1839=_0xfc9601,_0x2c94f5=(0x0,_univerjs_engine_formula['singleReferenceToGrid'])(_0x186d3e[_0x4c1839(0x3eb)]['comment'][_0x4c1839(0x233)]),_0x4e66ac=(0x0,_univerjs_sheets[_0x4c1839(0x284)])({'startColumn':_0x2c94f5[_0x4c1839(0x2f4)],'endColumn':_0x2c94f5[_0x4c1839(0x2f4)],'startRow':_0x2c94f5[_0x4c1839(0x2bb)],'endRow':_0x2c94f5[_0x4c1839(0x2bb)]},_0x512354);if(!_0x4e66ac)return[{'id':_univerjs_thread_comment[_0x4c1839(0x2ba)]['id'],'params':{..._0x186d3e[_0x4c1839(0x3eb)],'comment':void 0x0,'commentId':_0x186d3e['params'][_0x4c1839(0x223)]['id']}}];const _0xb0f2be=(0x0,_univerjs_engine_formula[_0x4c1839(0x336)])(_0x4e66ac);if(_0xb0f2be===_0x186d3e['params'][_0x4c1839(0x223)][_0x4c1839(0x233)])return[];return[{'id':_univerjs_thread_comment[_0x4c1839(0x365)]['id'],'params':{..._0x186d3e[_0x4c1839(0x3eb)],'comment':void 0x0,'payload':{'ref':_0xb0f2be,'commentId':_0x186d3e[_0x4c1839(0x3eb)][_0x4c1839(0x223)]['id']}}}];},insertColWithAddComment={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x411)]['id'],'handler':(_0x33490e,_0x1da4eb)=>{const _0x556605=_0xfc9601,_0x345f12={'m1Prime':_0x33490e,'m2Prime':_0x1da4eb};if(_0x33490e[_0x556605(0x3eb)][_0x556605(0x1d0)]!==_0x1da4eb[_0x556605(0x3eb)][_0x556605(0x1d0)]||_0x33490e[_0x556605(0x3eb)][_0x556605(0x25e)]!==_0x1da4eb['params'][_0x556605(0x25e)])return _0x345f12;const _0x3670f9=transformAddCommentWithRefRange(_0x1da4eb,{'id':_univerjs_sheets[_0x556605(0x2a2)]['id'],'params':{'unitId':_0x33490e[_0x556605(0x3eb)][_0x556605(0x1d0)],'subUnitId':_0x33490e[_0x556605(0x3eb)][_0x556605(0x25e)],'range':_0x33490e[_0x556605(0x3eb)]['range']}});return{'m1Prime':[_0x33490e,..._0x3670f9],'m2Prime':[_0x1da4eb,..._0x3670f9]};}};function toColumn(_0x3e9857){const _0x28d516=_0xfc9601;return{..._0x3e9857,'rangeType':_univerjs_core[_0x28d516(0x377)][_0x28d516(0x27b)]};}function moveRows(_0x967c9,_0x53c799,_0x7798d8,_0x40e5df){const _0x3c52a2=_0xfc9601;if(_0x40e5df<0x0){for(let _0x379b26=_0x53c799;_0x379b26<_0x53c799+_0x7798d8;_0x379b26++)if(_0x967c9[_0x3c52a2(0x2b6)](_0x379b26)){if(!_0x967c9['hasOwnProperty'](_0x379b26+_0x40e5df))_0x967c9[_0x379b26+_0x40e5df]={};const _0x11fa0c=_0x967c9[_0x379b26],_0x33c57b=Object[_0x3c52a2(0x38e)](_0x11fa0c)['map'](Number)[_0x3c52a2(0x3be)]((_0x20e861,_0x1d8fcf)=>_0x20e861-_0x1d8fcf);for(const _0x3748a7 of _0x33c57b)_0x967c9[_0x379b26+_0x40e5df][_0x3748a7]=_0x11fa0c[_0x3748a7];delete _0x967c9[_0x379b26];}else delete _0x967c9[_0x379b26+_0x40e5df];}else{for(let _0x1379a2=_0x53c799+_0x7798d8-0x1;_0x1379a2>=_0x53c799;_0x1379a2--)if(_0x967c9[_0x3c52a2(0x2b6)](_0x1379a2)){if(!_0x967c9[_0x3c52a2(0x2b6)](_0x1379a2+_0x40e5df))_0x967c9[_0x1379a2+_0x40e5df]={};const _0x1de7c7=_0x967c9[_0x1379a2],_0x16c8b6=Object['keys'](_0x1de7c7)[_0x3c52a2(0x3b3)](Number)[_0x3c52a2(0x3be)]((_0x442908,_0x221ecc)=>_0x442908-_0x221ecc);for(const _0x2ce1e4 of _0x16c8b6)_0x967c9[_0x1379a2+_0x40e5df][_0x2ce1e4]=_0x1de7c7[_0x2ce1e4];delete _0x967c9[_0x1379a2];}else delete _0x967c9[_0x1379a2+_0x40e5df];}}function moveColumns(_0x1d20a6,_0x3b9d6b,_0x1c6e78,_0x186b1f){const _0x24fef5=_0xfc9601,_0x3eff25=Object[_0x24fef5(0x38e)](_0x1d20a6)[_0x24fef5(0x3b3)](Number)[_0x24fef5(0x3be)]((_0x2d9d09,_0x5aa603)=>_0x2d9d09-_0x5aa603);if(_0x186b1f<0x0)for(const _0x54aaf3 of _0x3eff25){const _0x53b20a=_0x1d20a6[_0x54aaf3];for(let _0x11f9b2=_0x3b9d6b;_0x11f9b2<_0x3b9d6b+_0x1c6e78;_0x11f9b2++)if(_0x53b20a['hasOwnProperty'](_0x11f9b2))_0x53b20a[_0x11f9b2+_0x186b1f]=_0x53b20a[_0x11f9b2],delete _0x53b20a[_0x11f9b2];else delete _0x53b20a[_0x11f9b2+_0x186b1f];}else for(const _0xd17cac of _0x3eff25){const _0x50b4b8=_0x1d20a6[_0xd17cac];for(let _0x363c7e=_0x3b9d6b+_0x1c6e78-0x1;_0x363c7e>=_0x3b9d6b;_0x363c7e--)if(_0x50b4b8[_0x24fef5(0x2b6)](_0x363c7e))_0x50b4b8[_0x363c7e+_0x186b1f]=_0x50b4b8[_0x363c7e],delete _0x50b4b8[_0x363c7e];else delete _0x50b4b8[_0x363c7e+_0x186b1f];}}function RangeSubtractRanges(_0x235076,_0x5db9b0){const _0x473bca=_0xfc9601;return new _univerjs_sheets['RangeMergeUtil']()[_0x473bca(0x3b0)](_0x235076)[_0x473bca(0x404)](..._0x5db9b0)[_0x473bca(0x23c)]();}function processFormulaString(_0x9df542,_0x156ff7,_0x57d6b8,_0x1acb2a){const _0x3d5c5a=_0xfc9601,_0x41b941=new _univerjs_engine_formula[(_0x3d5c5a(0x412))]()[_0x3d5c5a(0x37c)](_0x57d6b8);if(_0x41b941==null)return _0x57d6b8;const _0x3fd931=[];for(let _0x3f1209=0x0,_0x86179a=_0x41b941['length'];_0x3f1209<_0x86179a;_0x3f1209++){const _0x5d789e=_0x41b941[_0x3f1209];if(typeof _0x5d789e===_0x3d5c5a(0x254)||_0x5d789e['nodeType']!==_univerjs_engine_formula[_0x3d5c5a(0x3d3)][_0x3d5c5a(0x370)]){_0x3fd931[_0x3d5c5a(0x380)](_0x5d789e);continue;}const {token:_0x525735}=_0x5d789e,{range:_0x4a6cf5,sheetName:_0xe70d40,unitId:_0x5662ef}=(0x0,_univerjs_engine_formula[_0x3d5c5a(0x3cb)])(_0x525735);if((_0x9df542===_0x5662ef||_0x5662ef==='')&&(_0x156ff7===_0xe70d40||_0xe70d40==='')){const _0x5aa62f=_0x1acb2a(_0x4a6cf5),_0x3a4dcf=_0x5aa62f?(0x0,_univerjs_engine_formula[_0x3d5c5a(0x320)])({'range':_0x5aa62f,'sheetName':_0xe70d40,'unitId':_0x5662ef}):_univerjs_engine_formula[_0x3d5c5a(0x36d)][_0x3d5c5a(0x234)];_0x3fd931[_0x3d5c5a(0x380)]({..._0x5d789e,'token':_0x3a4dcf});}else _0x3fd931[_0x3d5c5a(0x380)](_0x5d789e);}return'='+(0x0,_univerjs_engine_formula[_0x3d5c5a(0x36b)])(_0x3fd931);}function intersect(_0x5574e3,_0x35d3e9){const _0x1a2bc2=_0xfc9601;return _0x5574e3[_0x1a2bc2(0x40e)]<=_0x35d3e9[_0x1a2bc2(0x3bc)]&&_0x5574e3[_0x1a2bc2(0x3bc)]>=_0x35d3e9['start'];}function _0x5f10(){const _0x3704e9=['add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20order','submit_changeset','add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20value','[TransformService]:\x20_rightInclineTransformMutations\x20loop1\x20exceeded\x20the\x20limit\x20time.','RichTextEditingMutation','clear','UpdateHyperLinkMutation','move\x20range\x20is\x20conflict\x20with\x20set\x20numfmt','UNIVER_SHEET','SETTING','SheetTypes','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20move\x20row','cellValue','serializeRangeToRefString','left-loop1','b64DecodeUnicode','set\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20merge','transformSnapshotToDocumentData():\x20snapshot.doc\x20is\x20undefined.','insert\x20col\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width','body','DeleteConditionalRuleMutation','getSnapshot','__splitChunk__','InsertColMutation','insert\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20auto\x20height','2gHqbEx','fromOrder','rowHeight','univer-pro.collaboration.transform-service','Rectangle','rule','ISnapshotServerService','right-loop1','_rightInclineTransformMutations','isFormulaString','serializeRange','Algorithm\x20error,\x20m1Prime\x20should\x20not\x20be\x20undefined.','Plugin','set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20row','MoveRangeMutation','USERS_LEAVE','move\x20col\x20is\x20conflict\x20with\x20remove\x20numfmt','parseChangesetToProtocol','index','Range','Remove-cols\x20has\x20conflicts\x20with\x20move-range','changeset_rej','RemoveHyperLinkMutation','toStringTag','getSheets','insert\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20height','move\x20col\x20is\x20conflict\x20with\x20move\x20col','remove\x20row\x20is\x20conflict\x20with\x20set\x20numfmt','SetColDataMutation','SetRowVisibleMutation','_handleCompressNumberMapMutationSend','DrawingApplyType','right','MoveColsCommand','[transformWorkbookDataToSnapshot()]:\x20Failed\x20to\x20save\x20sheet\x20blocks.','_logOriginTransformMutations','JSONX','341566AIhsud','CHANGESET_REJ','isRangesEqual','DeleteWorksheetProtectionMutation','fetch_missing','mutations','startRow','SHOULD_CLOSE_CONN','move\x20col\x20is\x20conflict\x20with\x20move\x20range','loadDoc','[Error]\x20m2\x20origin\x20mutation\x20','COMMENT_UPDATE','link','_handleInsertSheetCompressMutationSend','transformChangesets','getUnitOnRev','handleCommonDefaultRangeChangeWithEffectRefCommands','UNISCRIPT_RUN','MoveColsMutation','parse\x20blocks\x20end,\x20took\x20','UpdateCommentRefMutation','decorate','find','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20conditional\x20rule',']\x20end,\x20took\x20','move\x20row\x20is\x20conflict\x20with\x20set\x20row\x20hidden','generateStringWithSequence','_commandService','ErrorType','transformMutations','SetConditionalRuleMutation','REFERENCE','[Error]\x20m1Length:\x20','set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width','isMerged','RemoveWorksheetMergeMutation','values','RemoveSheetMutation','RANGE_TYPE','set\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20col','AddWorksheetMergeMutation','SetWorksheetRowIsAutoHeightMutation','revision','sequenceNodesBuilder','remove\x20cols\x20is\x20conflict\x20with\x20set\x20range\x20values\x20mutation','univer.mutation.revert-version','add\x20range\x20protection\x20is\x20conflict\x20with\x20insert\x20col','push','SUBMIT_CHANGESET','spliceArray','\x20and\x20the\x20\x27revision\x27\x20of\x20c1\x20is\x20','sheetOrder','[debug]\x20m2Length:\x20','liveshare.request_host','forValue','\x20Sheet\x20Metas:\x20','SetWorksheetOrderMutation','toPrimitive','[debug]\x20m1Length:\x20','add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20conditional\x20rule','targetRange','keys','IUniverInstanceService','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20update\x20data\x20validation\x20rule','moveMatrixArray',']\x20failed\x20after\x20','fetchThroughInterceptors','code','isTransformMutationsFailure','formula1','SetNumfmtMutation','unshift','COMPRESS_MUTATION_SEND','UNIT_DELETE','_leftInclineTransformMutations','SetColHiddenMutation','m1Prime','blockID','transformPosition','constructor','get','getSheetBlocksFromSnapshot','ranges','from','size',']\x20took\x20a\x20long\x20time:\x20','textRanges','RemoveRowMutation','all','endRow','UpdateCommentMutation','Missing\x20sheet\x20block\x20','some','new_changesets','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','add','removeRows','sheets','map','intersects','LIVESHARE_NEW_HOST','ReCalcSheetsFilterMutation','toOrder','SetWorksheetNameMutation\x20conflicts\x20with\x20InsertSheetMutation\x20on\x20the\x20same\x20worksheet\x20ID.','55lRNzKy','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20update\x20comment','move\x20col\x20is\x20conflict\x20with\x20set\x20numfmft','end','UniverCollaborationPlugin','sort','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20frozen','registerTransformAlgorithm','_injector','ObjectMatrix','add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20conditional\x20formatting\x20rule','liveshare.operation','col','[Error]\x20_logCurrentTransformMutations\x20','prototype','insert\x20row\x20is\x20conflict\x20with\x20set\x20row\x20visible','move\x20col\x20is\x20conflict\x20with\x20set\x20numfmt','univer.snapshot-server-service','deserializeRangeWithSheetWithCache','filter','5552577TJTsrq','baseRev','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20row','ICommandService','getDataRange','[debug]\x20transformChangesets.\x20Date\x20now:\x20','sequenceNodeType','MUTATION','getSliceDataAndCellCountByRows','set\x20range\x20protection\x20is\x20conflict\x20with\x20insert\x20col','version','SetRowHiddenMutation','m2Prime','Two\x20SetWorksheetOrderMutation\x20have\x20conflicts!','data','NEW_CHANGESETS','\x20Sheet\x20Order:\x20','move\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20is\x20auto\x20height','ILogService','selections','indexOf','_snapshotServerService','161PfCTgP','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20conditional\x20formatting\x20rule','handleBaseMoveRowsCols','value','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width','COMPRESS_MUTATION_APPLY','_transformMap','objects','params','includes','transformSnapshotToWorkbookData','Set-range-values\x20mutation\x20and\x20move-range\x20mutation\x20have\x20an\x20overlapping\x20range.','rev','liveshare.fetch_operations','\x20(1)','_logCurrentTransformMutations','GRID','Missing\x20workbook\x20meta\x20in\x20snapshot','criteria','add\x20range\x20protection\x20is\x20conflict\x20with\x20delete\x20conditional\x20formatting\x20rule','[generateTemporarySnap()]','handler','SetWorksheetNameMutation','move\x20range\x20is\x20conflict\x20with\x20reorder\x20range','any','parse\x20blocks\x20start,\x20total\x20','textDecoder','MoveRowsCommand','[debug]\x20c1:\x20','AddHyperLinkMutation','isTransformMutationsWithChangesetFailure','set\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20comment','symbol','subtract','workbook','encode','isTransformMutationFailure','columnData','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20filter','handleBaseRemoveRange','right-loop2','AddConditionalRuleMutation','primary','start','Block\x20not\x20found','move\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20height','AddCommentMutation','LexerTreeBuilder','remove\x20col\x20is\x20conflict\x20with\x20remove\x20numfmt','\x20blocks','compress','setRevOfUnit','remove\x20cols\x20is\x20conflict\x20with\x20set\x20range\x20values\x20mutation,\x20trying\x20to\x20write\x20a\x20formula\x20reference\x20to\x20a\x20removed\x20column','actualRow','left-loop2','columnCount','[TransformService]:\x20_leftInclineTransformMutations\x20loop2\x20exceeded\x20the\x20limit\x20time.','isDefine','moveRows','colId','SetRangeProtectionMutation','insert\x20col\x20is\x20conflict\x20with\x20remove\x20numfmt','drawingIds','UPDATE_CURSOR','\x20already\x20exists.','insert\x20row\x20is\x20conflict\x20with\x20set\x20row\x20hidden','Tools','uniscript.run','rowsAutoHeightInfo','rowCount','endOffset','getSheet','should_close_conn','ReorderRangeMutation','parseProtocolChangeset','flat','SetSelectionsOperation','set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20data\x20validation\x20rule','deepClone','unitId','getMatrix','syncExecuteCommand','setConfig','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20move\x20col','SetDrawingApplyMutation','foreach','PERMISSION_REJ','min','has','Two\x20mutation\x20have\x20the\x20same\x20worksheetId!','add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20filter','queryObjectMatrix','async\x20[','Sheet\x20block\x20mismatch!\x20','Inject','now','[ParseBlocks]','JSON1','SINGLE_HISTORY_MUTATIONS','SetWorksheetHideMutation','RemoveColMutation','DocTransformController','object','SINGLE_SNAPSHOT_MUTATIONS','add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20numfmt','ErrorCode','rotateRange','uid','SnapshotSaveService','add\x20range\x20protection\x20is\x20conflict\x20with\x20insert\x20row','insert\x20row\x20is\x20conflict\x20with\x20remove\x20row','DependentOn','insertMatrixArray','ApplyCompressedChangesetsSync','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20insert\x20row','move\x20row\x20is\x20conflict\x20with\x20remove\x20numfmt','SetWorksheetColWidthMutation','unit_delete','add\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20col','add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20numfmt','liveshare.new_host','add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20data\x20validation\x20rule','set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20col','toFixed','[transformWorkbookDataToSnapshot()]:\x20Failed\x20to\x20save\x20sheet\x20blocks.\x20','move\x20col\x20is\x20conflict\x20with\x20set\x20col\x20visible','add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20comment','AddRangeProtectionMutation','isMergedMainCell','sourceRange','cellData','.\x20Date\x20now:\x20','[RevisionService]:\x20cannot\x20find\x20document\x20with\x20unitID:\x20','decode','133352FrbdgQ','getUnit','set','1062195YPtFtl','_loopLimitTime','users_leave','pseudo_fetch_missing_result','insert\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20is\x20auto\x20height','saveSnapshot','payload','edit\x20range\x20of\x20same\x20data-validation\x20rule\x20is\x20not\x20allowed','UPDATE_PERMISSION_OBJ','0.21.1','left','[SnapshotService]:\x20failed\x20to\x20get\x20sheet\x20blocks.\x20','UpdateDataValidationMutation','getResources','iterator','blockMeta','toISOString','CommandType','RemoveRowCommand','transformWorkbookDataToSnapshot():\x20Failed\x20to\x20save\x20snapshot.\x0aErrorCode:\x20','changeset_ack','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20name','sync\x20[',']\x20start\x20','_handleDecompressNumberMapMutationApply','comment','reorder\x20range\x20is\x20conflict\x20with\x20reorder\x20range','MoveRowsMutation','UpdateHyperLinkRefMutation','isTransformMutationsWithChangesetSuccess','slice','intercept','endColumn','@univerjs-pro/collaboration','uuidv4','parentId','InterceptorManager','Workbook\x20metadata\x20is\x20not\x20available','PSEUDO_FETCH_MISSING_RESULT','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20move\x20range','[debug]\x20c2:\x20','ref','ERROR','actualColumn','CreateUnitMutation','comment_update','defineProperty','styleRefMap','shift','getRealRange','merge','LIVESHARE_FETCH_OPERATIONS','MoveConditionalRuleMutation','moveColumns','IConfigService','parse','realDeleteValue','InsertSheetMutation','_revisionService','startColumn','blocks','splice','SetTabColorMutation','function','resources','[debug]\x20_rightInclineTransformMutations\x20start\x20transforming\x20mutations.\x20Date\x20now:\x20','_univerInstanceService','cfId','updateSheet','add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20merge','isError','collaboration.config','RemoveDataValidationMutation','_resourceManagerService','string','getRev','generateRandomId','removeColumns','SheetTransformController','every','concatRows','generateTempDocumentSnapshot','error_msg','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20numfmt','subUnitId','users_enter','\x20and\x20','unitID','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20protection','measureAsyncOperation','permission_rej','transformSnapshotToDocumentData','type','add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20range\x20protection','saveSheet','title','interceptor','move\x20col\x20is\x20conflict\x20with\x20set\x20col\x20hidden','ceil','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20merge','loadSheet','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20protection','reportUnitRoutingStats','RevertRevisionMutation\x20conflicts\x20with\x20other\x20mutations!','actions','[Error]\x20_logOriginTransformMutations\x20','RemoveSheetsFilterMutation','[TransformService]:\x20changesets\x20revisions\x20miss\x20match.\x20The\x20\x27baseRev\x27\x20of\x20c2\x20is\x20','isArray','\x20Block\x20Metas:\x20','transformDocumentDataToSnapshot','createIdentifier','remove\x20col\x20is\x20conflict\x20with\x20move\x20col','COLUMN','originalMeta','set\x20range\x20protection\x20is\x20conflict\x20with\x20delete\x20conditional\x20formatting\x20rule','SetSheetsFilterRangeMutation','move\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20auto\x20height','0123456789','textEncoder','LIVESHARE_TERMINATE','debug','handleDefaultRangeChangeWithEffectRefCommands','b64EncodeUnicode','InsertRowMutation','commentId','_transformService','Parsing\x20blocks\x20took\x20a\x20long\x20time:\x20','add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20frozen','insert\x20col\x20is\x20conflict\x20with\x20set\x20numfmt','UpdateRuleType','Failed\x20to\x20get\x20sheet\x20block:\x20','warn','number','transformMutation','parseMutationToProtocol','add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20protection','add\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20range','move\x20row\x20is\x20conflict\x20with\x20move\x20range','transform','update_cursor','add\x20range\x20protection\x20is\x20conflict\x20with\x20update\x20data\x20validation\x20rule','transformDocumentDataToSnapshot():\x20Failed\x20to\x20save\x20snapshot.\x0aErrorCode:\x20','remove\x20row\x20is\x20conflict\x20with\x20move\x20row','range','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20sheet','add\x20range\x20protection\x20is\x20conflict\x20with\x20update\x20comment','length','559422oQSyvW','set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20filter','isTransformChangesetsFailure','_logService','InsertColCommand','9520380TXLabs','remove\x20rows\x20is\x20conflict\x20with\x20set\x20range\x20values\x20mutation','reduce','\x20ms','Disposable','_snapshotService','RemoveColCommand','TransformService','total\x20','block','getDeserializedSheetBlock','charCodeAt','step','MSG_FOR_ERROR','AddWorksheetProtectionMutation','getCurrentRevOfUnit','round','entries','changeset_should_retry','hasOwnProperty','sheet','EN_US','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20data\x20validation\x20rule','DeleteCommentMutation','row','_config','max','_init','set\x20range\x20protection\x20is\x20conflict\x20with\x20insert\x20row','SnapshotService','dispose','FETCH_MISSING','UniverInstanceType','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20insert\x20col','SetWorksheetRowAutoHeightMutation','message','SetColVisibleMutation','CopyWorksheetEndMutation','RemoveNumfmtMutation','Algorithm\x20error,\x20the\x20changeset\x20does\x20not\x20exist!','[TransformService]:\x20_leftInclineTransformMutations\x20loop1\x20exceeded\x20the\x20limit\x20time.','[GetBlocks]','call','saveDoc','[debug]\x20_leftInclineTransformMutations\x20start\x20transforming\x20mutations.\x20Date\x20now:\x20','getUnitId','[TransformService]:\x20_rightInclineTransformMutations\x20loop2\x20exceeded\x20the\x20limit\x20time.','ruleId','isTransformMutationsSuccess','incrementRevOfUnit','delete','USERS_ENTER','drawingId','order','[generateTemporarySnap()]:\x20Sheet\x20block\x20mismatch','concat','getDoc','set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20conditional\x20formatting\x20rule','createInterceptorKey','colWidth','_transformMutationsCache','Sheet\x20order\x20mismatch!\x20','incrementRev','liveshare.terminate','findIndex','insert\x20row\x20is\x20conflict\x20with\x20set\x20numfmt','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20comment','formula2','UNIVER_DOC','InsertRowCommand','set\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20conditional\x20rule','pluginName','transformMutationsWithChangeset','SetFrozenMutation','saveSheetBlock','handleBaseInsertRange','error','stringify','getValue','set\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20range','name','column','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20col','\x20Sheet\x20raw:\x20','add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20worksheet\x20merge','rules','IResourceManagerService','[transformWorkbookDataToSnapshot()]','set\x20range\x20protection\x20is\x20conflict\x20with\x20update\x20comment','RANGE','rowData','setValue','1866088PPcKro','CompressMutationService','[TransformService]\x20Transform\x20algorithm\x20for\x20','forEach','SetRowDataMutation','SetWorksheetRowHeightMutation','EmptyMutation','CHANGESET_ACK','_compressMutationService','onStarting','SetSheetsFilterCriteriaMutation','SetWorksheetPermissionPointsMutation','set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20value','getInterceptPoints','_initSetRangeValues','Move\x20conditional\x20formatting\x20rule\x20\x20is\x20conflict\x20with\x20self','SetRangeValuesMutation','[Error]\x20m1\x20origin\x20mutation\x20','AddDataValidationMutation','registerDependencies'];_0x5f10=function(){return _0x3704e9;};return _0x5f10();}function contain(_0xa0ef26,_0x5e946d){const _0x28857c=_0xfc9601;return _0xa0ef26[_0x28857c(0x40e)]<=_0x5e946d[_0x28857c(0x40e)]&&_0xa0ef26[_0x28857c(0x3bc)]>=_0x5e946d[_0x28857c(0x3bc)];}function lineSubtractLines(_0x58ee27,_0x5ea489){const _0x442687=_0xfc9601;let _0x5d0d15=[_0x58ee27];for(const _0x292ecb of _0x5ea489){const _0x344024=[];for(const _0x5646c0 of _0x5d0d15)_0x344024[_0x442687(0x380)](...lineSubtractLine(_0x5646c0,_0x292ecb));_0x5d0d15=_0x344024;}return _0x5d0d15;}function lineSubtractLine(_0x2e171c,_0x3b25fa){const _0x47d2e5=_0xfc9601,_0x127998=[];if(contain(_0x3b25fa,_0x2e171c))return _0x127998;if(contain(_0x2e171c,_0x3b25fa)){const _0x468984=_0x2e171c['start'],_0x4ccf73=_0x3b25fa[_0x47d2e5(0x40e)]-0x1,_0xb7ca54=_0x3b25fa[_0x47d2e5(0x3bc)]+0x1,_0x3baf46=_0x2e171c[_0x47d2e5(0x3bc)];if(_0x468984<=_0x4ccf73)_0x127998[_0x47d2e5(0x380)]({'start':_0x468984,'end':_0x4ccf73});if(_0xb7ca54<=_0x3baf46)_0x127998[_0x47d2e5(0x380)]({'start':_0xb7ca54,'end':_0x3baf46});return _0x127998;}if(intersect(_0x2e171c,_0x3b25fa)){if(_0x2e171c[_0x47d2e5(0x40e)]<_0x3b25fa[_0x47d2e5(0x40e)])_0x127998[_0x47d2e5(0x380)]({'start':_0x2e171c[_0x47d2e5(0x40e)],'end':_0x3b25fa[_0x47d2e5(0x40e)]-0x1});if(_0x2e171c[_0x47d2e5(0x3bc)]>_0x3b25fa['end'])_0x127998[_0x47d2e5(0x380)]({'start':_0x3b25fa[_0x47d2e5(0x3bc)]+0x1,'end':_0x2e171c[_0x47d2e5(0x3bc)]});return _0x127998;}return[_0x2e171c];}function handleInsert(_0x37b6a8,_0x2a6327){const _0x5f1f92=_0xfc9601,_0x5df1fa=(0x0,_univerjs_sheets[_0x5f1f92(0x2ee)])({'startColumn':_0x37b6a8[_0x5f1f92(0x40e)],'endColumn':_0x37b6a8[_0x5f1f92(0x3bc)],'startRow':0x0,'endRow':0x1,'rangeType':_univerjs_core[_0x5f1f92(0x377)][_0x5f1f92(0x27b)]},{'startColumn':_0x2a6327[_0x5f1f92(0x40e)],'endColumn':_0x2a6327[_0x5f1f92(0x3bc)],'startRow':0x0,'endRow':0x1,'rangeType':_univerjs_core[_0x5f1f92(0x377)][_0x5f1f92(0x27b)]});return{'start':_0x2a6327['start']+_0x5df1fa[_0x5f1f92(0x2af)],'end':_0x2a6327[_0x5f1f92(0x3bc)]+_0x5df1fa['step']+_0x5df1fa[_0x5f1f92(0x29d)]};}function handleRemove(_0x1b93c7,_0x234868){const _0x5b1179=_0xfc9601,_0x2f430c=(0x0,_univerjs_sheets['handleBaseRemoveRange'])({'startColumn':_0x1b93c7[_0x5b1179(0x40e)],'endColumn':_0x1b93c7[_0x5b1179(0x3bc)],'startRow':0x0,'endRow':0x1,'rangeType':_univerjs_core[_0x5b1179(0x377)][_0x5b1179(0x27b)]},{'startColumn':_0x234868[_0x5b1179(0x40e)],'endColumn':_0x234868[_0x5b1179(0x3bc)],'startRow':0x0,'endRow':0x1,'rangeType':_univerjs_core[_0x5b1179(0x377)][_0x5b1179(0x27b)]});if(_0x2f430c===null)return null;return{'start':_0x234868[_0x5b1179(0x40e)]+_0x2f430c[_0x5b1179(0x2af)],'end':_0x234868['end']+_0x2f430c[_0x5b1179(0x2af)]+_0x2f430c[_0x5b1179(0x29d)]};}function transformAddDataValidationWithRefRange(_0x8b4d01,_0x1218d3){const _0x2a6977=_0xfc9601,{unitId:_0x5553d3,subUnitId:_0x225a9e}=_0x8b4d01[_0x2a6977(0x3eb)],_0x3e1c9a=_0x3a5110=>{return processFormulaString(_0x5553d3,_0x225a9e,_0x3a5110,_0x2b2f6c=>{const _0x299dc5=_0x5cb6;return(0x0,_univerjs_sheets[_0x299dc5(0x284)])(_0x2b2f6c,_0x1218d3);});},_0x31053a=[],_0x311687=_0x1a2345=>{const _0x263652=_0x2a6977;var _0x49f4ad,_0x3efb28;const _0x32b3f=_0x1a2345[_0x263652(0x1ec)],_0x110ea5=_0x1a2345['ranges'][_0x263652(0x3b3)](_0x313689=>(0x0,_univerjs_sheets[_0x263652(0x361)])(_0x313689,_0x1218d3)),_0x40c1b2=(_0x49f4ad=_0x1a2345[_0x263652(0x396)])!==null&&_0x49f4ad!==void 0x0?_0x49f4ad:'',_0x2d815e=(_0x3efb28=_0x1a2345[_0x263652(0x2e6)])!==null&&_0x3efb28!==void 0x0?_0x3efb28:'';let _0x11810d=_0x40c1b2,_0x5db739=_0x2d815e;if((0x0,_univerjs_core['isFormulaString'])(_0x40c1b2))_0x11810d=_0x3e1c9a(_0x40c1b2);if((0x0,_univerjs_core[_0x263652(0x335)])(_0x2d815e))_0x5db739=_0x3e1c9a(_0x2d815e);if(_0x11810d!==_0x40c1b2||_0x5db739!==_0x2d815e)_0x31053a[_0x263652(0x380)]({'id':_univerjs_data_validation[_0x263652(0x216)]['id'],'params':{'unitId':_0x5553d3,'subUnitId':_0x225a9e,'ruleId':_0x32b3f,'payload':{'type':_univerjs_data_validation['UpdateRuleType'][_0x263652(0x31c)],'payload':{'type':_0x1a2345['type'],'formula1':_0x11810d,'formula2':_0x5db739}}}});const _0x4fb578=_0x110ea5[_0x263652(0x1cc)]()[_0x263652(0x3cc)](Boolean);if(!(0x0,_univerjs_core[_0x263652(0x353)])(_0x1a2345[_0x263652(0x3a3)],_0x4fb578))_0x31053a['push']({'id':_univerjs_data_validation[_0x263652(0x216)]['id'],'params':{'unitId':_0x5553d3,'subUnitId':_0x225a9e,'ruleId':_0x32b3f,'payload':{'type':_univerjs_data_validation['UpdateRuleType'][_0x263652(0x2fc)],'payload':_0x4fb578}}});};if(Array[_0x2a6977(0x276)](_0x8b4d01['params']['rule']))_0x8b4d01[_0x2a6977(0x3eb)][_0x2a6977(0x331)][_0x2a6977(0x302)](_0x40a194=>_0x311687(_0x40a194));else _0x311687(_0x8b4d01[_0x2a6977(0x3eb)][_0x2a6977(0x331)]);return _0x31053a;}const moveColMutationWithAddDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x311)]['id'],'handler'(_0x18bc53,_0x28ee66){const _0x3ed863=_0xfc9601,_0x13ff48={'m1Prime':_0x18bc53,'m2Prime':_0x28ee66};if(_0x18bc53['params'][_0x3ed863(0x1d0)]!==_0x28ee66[_0x3ed863(0x3eb)][_0x3ed863(0x1d0)]||_0x18bc53[_0x3ed863(0x3eb)][_0x3ed863(0x25e)]!==_0x28ee66[_0x3ed863(0x3eb)]['subUnitId'])return _0x13ff48;const _0x252d0a=transformAddDataValidationWithRefRange(_0x28ee66,{'id':_univerjs_sheets['MoveColsCommand']['id'],'params':{'fromRange':_0x18bc53[_0x3ed863(0x3eb)][_0x3ed863(0x202)],'toRange':_0x18bc53['params']['targetRange']}});return{'m1Prime':[_0x18bc53,..._0x252d0a],'m2Prime':[_0x28ee66,..._0x252d0a]};}},insertColMutationWithAddDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x311)]['id'],'handler'(_0x515e99,_0x543ac9){const _0x5efbf8=_0xfc9601,_0x1dc080={'m1Prime':_0x515e99,'m2Prime':_0x543ac9};if(_0x515e99[_0x5efbf8(0x3eb)][_0x5efbf8(0x1d0)]!==_0x543ac9[_0x5efbf8(0x3eb)][_0x5efbf8(0x1d0)]||_0x515e99[_0x5efbf8(0x3eb)]['subUnitId']!==_0x543ac9[_0x5efbf8(0x3eb)]['subUnitId'])return _0x1dc080;const _0x27dbd7=transformAddDataValidationWithRefRange(_0x543ac9,{'id':_univerjs_sheets[_0x5efbf8(0x2a2)]['id'],'params':{'unitId':_0x515e99[_0x5efbf8(0x3eb)]['unitId'],'subUnitId':_0x515e99[_0x5efbf8(0x3eb)][_0x5efbf8(0x25e)],'range':_0x515e99[_0x5efbf8(0x3eb)]['range']}});return{'m1Prime':[_0x515e99,..._0x27dbd7],'m2Prime':[_0x543ac9,..._0x27dbd7]};}},insertColMutationWithAddMerge={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler'(_0x22a40e,_0x5e8caf){const _0x213bd0=_0xfc9601,_0xdca8a=addWorksheetMergeMutationWithInsertColMutation[_0x213bd0(0x3f8)](_0x5e8caf,_0x22a40e);if(isTransformMutationSuccess(_0xdca8a))return{'m1Prime':_0xdca8a['m2Prime'],'m2Prime':_0xdca8a[_0x213bd0(0x39d)]};else return _0xdca8a;}},insertColMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'handler'(_0x53005b,_0x497a94){const _0x4b5df2=_0xfc9601,_0x11bc32={'m1Prime':_0x53005b,'m2Prime':_0x497a94};if(_0x53005b[_0x4b5df2(0x3eb)][_0x4b5df2(0x1d0)]!==_0x497a94[_0x4b5df2(0x3eb)][_0x4b5df2(0x1d0)]||_0x53005b[_0x4b5df2(0x3eb)]['subUnitId']!==_0x497a94[_0x4b5df2(0x3eb)][_0x4b5df2(0x25e)])return _0x11bc32;const _0x351e16=_univerjs_core[_0x4b5df2(0x1c3)][_0x4b5df2(0x1cf)](_0x53005b),_0x4a8a06=_univerjs_core['Tools'][_0x4b5df2(0x1cf)](_0x497a94),_0x18daa6=(0x0,_univerjs_sheets[_0x4b5df2(0x2ee)])(toColumn(_0x53005b[_0x4b5df2(0x3eb)]['range']),toColumn(_0x497a94[_0x4b5df2(0x3eb)][_0x4b5df2(0x29a)]));if(_0x18daa6)_0x4a8a06[_0x4b5df2(0x3eb)][_0x4b5df2(0x29a)][_0x4b5df2(0x245)]+=_0x18daa6['step'],_0x4a8a06[_0x4b5df2(0x3eb)][_0x4b5df2(0x29a)][_0x4b5df2(0x22a)]+=_0x18daa6[_0x4b5df2(0x2af)]+(_0x18daa6[_0x4b5df2(0x29d)]||0x0);else _0x4a8a06['id']=_univerjs_sheets[_0x4b5df2(0x305)]['id'];if(_0x53005b['params'][_0x4b5df2(0x29a)][_0x4b5df2(0x245)]!==_0x497a94[_0x4b5df2(0x3eb)][_0x4b5df2(0x29a)]['startColumn']){const _0x440148=(0x0,_univerjs_sheets[_0x4b5df2(0x2ee)])(toColumn(_0x497a94[_0x4b5df2(0x3eb)][_0x4b5df2(0x29a)]),toColumn(_0x53005b[_0x4b5df2(0x3eb)]['range']));if(_0x440148)_0x351e16['params'][_0x4b5df2(0x29a)][_0x4b5df2(0x245)]+=_0x440148[_0x4b5df2(0x2af)],_0x351e16['params'][_0x4b5df2(0x29a)][_0x4b5df2(0x22a)]+=_0x440148[_0x4b5df2(0x2af)]+(_0x440148[_0x4b5df2(0x29d)]||0x0);else _0x351e16['id']=_univerjs_sheets[_0x4b5df2(0x305)]['id'];}return{'m1Prime':_0x351e16,'m2Prime':_0x4a8a06};}},insertColMutationWithMoveCol={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x363)]['id'],'handler'(_0x2d7c85,_0x5e74f6){const _0x134ebc=_0xfc9601,_0x5117af={'m1Prime':_0x2d7c85,'m2Prime':_0x5e74f6};if(_0x2d7c85[_0x134ebc(0x3eb)][_0x134ebc(0x1d0)]!==_0x5e74f6[_0x134ebc(0x3eb)][_0x134ebc(0x1d0)]||_0x2d7c85[_0x134ebc(0x3eb)]['subUnitId']!==_0x5e74f6[_0x134ebc(0x3eb)][_0x134ebc(0x25e)])return _0x5117af;const _0x1a88e3=_univerjs_core[_0x134ebc(0x1c3)][_0x134ebc(0x1cf)](_0x2d7c85),_0xbb2dcd=_univerjs_core[_0x134ebc(0x1c3)][_0x134ebc(0x1cf)](_0x5e74f6),_0x3a9e73=_0x5e74f6[_0x134ebc(0x3eb)]['sourceRange'],_0x2b6bea=_0x5e74f6[_0x134ebc(0x3eb)][_0x134ebc(0x38d)];if(_0x2d7c85['params']['range'][_0x134ebc(0x245)]>_0x3a9e73[_0x134ebc(0x245)]&&_0x2d7c85[_0x134ebc(0x3eb)]['range'][_0x134ebc(0x245)]<=_0x3a9e73[_0x134ebc(0x22a)]||_0x2d7c85[_0x134ebc(0x3eb)][_0x134ebc(0x29a)][_0x134ebc(0x245)]>_0x2b6bea[_0x134ebc(0x245)]&&_0x2d7c85[_0x134ebc(0x3eb)][_0x134ebc(0x29a)][_0x134ebc(0x245)]<=_0x2b6bea[_0x134ebc(0x22a)])return{'error':new Error('insert\x20col\x20is\x20conflict\x20with\x20move\x20col')};const _0x5bbd64=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn(_0x2d7c85[_0x134ebc(0x3eb)]['range']),toColumn(_0x3a9e73)),_0x16c752=(0x0,_univerjs_sheets[_0x134ebc(0x2ee)])(toColumn(_0x2d7c85['params'][_0x134ebc(0x29a)]),toColumn(_0x2b6bea));_0xbb2dcd[_0x134ebc(0x3eb)][_0x134ebc(0x202)][_0x134ebc(0x245)]+=_0x5bbd64[_0x134ebc(0x2af)],_0xbb2dcd[_0x134ebc(0x3eb)][_0x134ebc(0x202)]['endColumn']+=_0x5bbd64[_0x134ebc(0x2af)]+(_0x5bbd64['length']||0x0),_0xbb2dcd[_0x134ebc(0x3eb)][_0x134ebc(0x38d)][_0x134ebc(0x245)]+=_0x16c752[_0x134ebc(0x2af)],_0xbb2dcd[_0x134ebc(0x3eb)][_0x134ebc(0x38d)][_0x134ebc(0x22a)]+=_0x16c752[_0x134ebc(0x2af)]+(_0x16c752[_0x134ebc(0x29d)]||0x0);if(_0x3a9e73['startColumn']>=_0x2d7c85[_0x134ebc(0x3eb)]['range'][_0x134ebc(0x245)]&&_0x2b6bea[_0x134ebc(0x245)]<_0x2d7c85[_0x134ebc(0x3eb)]['range'][_0x134ebc(0x245)]){const _0xfacce2=_0x2b6bea['endColumn']-_0x2b6bea[_0x134ebc(0x245)]+0x1;_0x1a88e3[_0x134ebc(0x3eb)][_0x134ebc(0x29a)]['startColumn']+=_0xfacce2,_0x1a88e3[_0x134ebc(0x3eb)][_0x134ebc(0x29a)]['endColumn']+=_0xfacce2;}else{if(_0x3a9e73[_0x134ebc(0x22a)]<_0x2d7c85[_0x134ebc(0x3eb)][_0x134ebc(0x29a)]['startColumn']&&_0x2b6bea[_0x134ebc(0x245)]>=_0x2d7c85[_0x134ebc(0x3eb)][_0x134ebc(0x29a)][_0x134ebc(0x245)]){const _0x3534fa=_0x3a9e73[_0x134ebc(0x22a)]-_0x3a9e73[_0x134ebc(0x245)]+0x1;_0x1a88e3[_0x134ebc(0x3eb)][_0x134ebc(0x29a)][_0x134ebc(0x245)]-=_0x3534fa,_0x1a88e3['params'][_0x134ebc(0x29a)]['endColumn']-=_0x3534fa;}}return{'m1Prime':_0x1a88e3,'m2Prime':_0xbb2dcd};}},insertColMutationWithMoveRange={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler'(_0x4be01e,_0x201f96){const _0x4ff6e3=_0xfc9601,_0x596254={'m1Prime':_0x4be01e,'m2Prime':_0x201f96};if(_0x4be01e[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x1d0)]!==_0x201f96[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x1d0)]||_0x4be01e[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x25e)]!==_0x201f96[_0x4ff6e3(0x3eb)]['from'][_0x4ff6e3(0x25e)]&&_0x4be01e[_0x4ff6e3(0x3eb)]['subUnitId']!==_0x201f96['params']['to'][_0x4ff6e3(0x25e)])return _0x596254;const _0x4d80de=_univerjs_core[_0x4ff6e3(0x1c3)]['deepClone'](_0x4be01e),_0x2fcd10=_univerjs_core[_0x4ff6e3(0x1c3)][_0x4ff6e3(0x1cf)](_0x201f96);if(_0x4be01e['params'][_0x4ff6e3(0x25e)]===_0x201f96[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x3a4)][_0x4ff6e3(0x25e)]){const _0x29a847=new _univerjs_core[(_0x4ff6e3(0x3c2))](_0x2fcd10[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x3a4)][_0x4ff6e3(0x3e6)])[_0x4ff6e3(0x3d1)](),{startColumn:_0x59f47b,endColumn:_0x59f111}=_0x29a847,{startColumn:_0x15f327,endColumn:_0x5885dd}=_0x4be01e[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x29a)],{step:_0x3409d0,length:_0x5b430b}=(0x0,_univerjs_sheets[_0x4ff6e3(0x2ee)])(_0x4be01e[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x29a)],_0x29a847);if(_0x3409d0>0x0&&_0x5b430b===0x0)moveColumns(_0x2fcd10[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x3a4)][_0x4ff6e3(0x3e6)],_0x59f47b,_0x59f111-_0x59f47b+0x1,_0x3409d0);if(_0x3409d0===0x0&&_0x5b430b>0x0)moveColumns(_0x2fcd10['params'][_0x4ff6e3(0x3a4)][_0x4ff6e3(0x3e6)],_0x15f327,_0x59f111-_0x15f327+0x1,_0x5885dd-_0x15f327+0x1);}if(_0x4be01e[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x25e)]===_0x201f96['params']['to'][_0x4ff6e3(0x25e)]){const _0x1fe177=new _univerjs_core[(_0x4ff6e3(0x3c2))](_0x2fcd10[_0x4ff6e3(0x3eb)]['to'][_0x4ff6e3(0x3e6)])[_0x4ff6e3(0x3d1)](),{startColumn:_0x4d8e7c,endColumn:_0x508c8b}=_0x1fe177,{startColumn:_0x490c2e,endColumn:_0x552d03}=_0x4be01e['params']['range'],{step:_0x54dda0,length:_0x5d3beb}=(0x0,_univerjs_sheets[_0x4ff6e3(0x2ee)])(_0x4be01e[_0x4ff6e3(0x3eb)][_0x4ff6e3(0x29a)],_0x1fe177);if(_0x54dda0>0x0&&_0x5d3beb===0x0)moveColumns(_0x2fcd10['params']['to'][_0x4ff6e3(0x3e6)],_0x4d8e7c,_0x508c8b-_0x4d8e7c+0x1,_0x54dda0);if(_0x54dda0===0x0&&_0x5d3beb>0x0)moveColumns(_0x2fcd10[_0x4ff6e3(0x3eb)]['to'][_0x4ff6e3(0x3e6)],_0x490c2e,_0x508c8b-_0x490c2e+0x1,_0x552d03-_0x490c2e+0x1);}return{'m1Prime':_0x4d80de,'m2Prime':_0x2fcd10};}},insertColMutationWithRemoveCol={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'handler'(_0x6be73f,_0xa1a514){const _0x4cc160=_0xfc9601,_0xe9411f={'m1Prime':_0x6be73f,'m2Prime':_0xa1a514};if(_0x6be73f['params'][_0x4cc160(0x1d0)]!==_0xa1a514[_0x4cc160(0x3eb)][_0x4cc160(0x1d0)]||_0x6be73f[_0x4cc160(0x3eb)]['subUnitId']!==_0xa1a514[_0x4cc160(0x3eb)][_0x4cc160(0x25e)])return _0xe9411f;const _0xc93e98=_univerjs_core[_0x4cc160(0x1c3)][_0x4cc160(0x1cf)](_0x6be73f),_0x5460aa=_univerjs_core[_0x4cc160(0x1c3)][_0x4cc160(0x1cf)](_0xa1a514);if(_0x6be73f['params'][_0x4cc160(0x29a)][_0x4cc160(0x245)]<=_0xa1a514[_0x4cc160(0x3eb)]['range'][_0x4cc160(0x22a)]&&_0x6be73f[_0x4cc160(0x3eb)][_0x4cc160(0x29a)][_0x4cc160(0x245)]>_0xa1a514[_0x4cc160(0x3eb)][_0x4cc160(0x29a)]['startColumn'])return{'error':new Error(_0x4cc160(0x1ef))};const _0x28898e=(0x0,_univerjs_sheets[_0x4cc160(0x2ee)])(toColumn(_0x6be73f['params']['range']),toColumn(_0xa1a514['params'][_0x4cc160(0x29a)]));if(_0x28898e)_0x5460aa[_0x4cc160(0x3eb)][_0x4cc160(0x29a)][_0x4cc160(0x245)]+=_0x28898e[_0x4cc160(0x2af)],_0x5460aa[_0x4cc160(0x3eb)][_0x4cc160(0x29a)][_0x4cc160(0x22a)]+=_0x28898e[_0x4cc160(0x2af)]+(_0x28898e[_0x4cc160(0x29d)]||0x0);else _0x5460aa['id']=_univerjs_sheets['EmptyMutation']['id'];const _0x11ae03=(0x0,_univerjs_sheets[_0x4cc160(0x40a)])(toColumn(_0xa1a514[_0x4cc160(0x3eb)][_0x4cc160(0x29a)]),toColumn(_0x6be73f['params']['range']));return _0x11ae03&&(_0xc93e98[_0x4cc160(0x3eb)][_0x4cc160(0x29a)]['startColumn']+=_0x11ae03[_0x4cc160(0x2af)],_0xc93e98[_0x4cc160(0x3eb)][_0x4cc160(0x29a)][_0x4cc160(0x22a)]+=_0x11ae03['step']+(_0x11ae03[_0x4cc160(0x29d)]||0x0)),{'m1Prime':_0xc93e98,'m2Prime':_0x5460aa};}},insertColMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'handler'(_0x2c510a,_0x1a094a){const _0x17d566=_0xfc9601,_0x382173={'m1Prime':_0x2c510a,'m2Prime':_0x1a094a};if(_0x2c510a[_0x17d566(0x3eb)][_0x17d566(0x1d0)]!==_0x1a094a[_0x17d566(0x3eb)][_0x17d566(0x1d0)]||_0x2c510a[_0x17d566(0x3eb)]['subUnitId']!==_0x1a094a[_0x17d566(0x3eb)][_0x17d566(0x25e)])return _0x382173;const _0x112a9a=_univerjs_core[_0x17d566(0x1c3)][_0x17d566(0x1cf)](_0x2c510a),_0xb5abbc=_univerjs_core[_0x17d566(0x1c3)]['deepClone'](_0x1a094a),{ranges:_0x68f765}=_0xb5abbc['params'];if(_0x68f765[_0x17d566(0x3ad)](_0xfabbbe=>{const _0xd117fb=_0x17d566,_0x4b7c69=(0x0,_univerjs_sheets[_0xd117fb(0x2ee)])(toColumn(_0x2c510a[_0xd117fb(0x3eb)]['range']),toColumn(_0xfabbbe));if(_0x4b7c69[_0xd117fb(0x29d)]!==0x0)return!![];return _0xfabbbe[_0xd117fb(0x245)]+=_0x4b7c69[_0xd117fb(0x2af)],_0xfabbbe[_0xd117fb(0x22a)]+=_0x4b7c69[_0xd117fb(0x2af)],![];}))return{'error':new Error(_0x17d566(0x1be))};return{'m1Prime':_0x112a9a,'m2Prime':_0xb5abbc};}},insertColMutationWithRemoveWorksheetMergeMutation={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'handler'(_0x26f40a,_0x1d6be3){const _0x25ecb9=_0xfc9601,_0x98f991=_univerjs_core[_0x25ecb9(0x1c3)]['deepClone'](_0x26f40a),_0x43f5f9=_univerjs_core[_0x25ecb9(0x1c3)]['deepClone'](_0x1d6be3);if(_0x26f40a['params'][_0x25ecb9(0x1d0)]!==_0x1d6be3[_0x25ecb9(0x3eb)][_0x25ecb9(0x1d0)]||_0x26f40a[_0x25ecb9(0x3eb)]['subUnitId']!==_0x1d6be3[_0x25ecb9(0x3eb)]['subUnitId'])return{'m1Prime':_0x98f991,'m2Prime':_0x43f5f9};const _0x2ba574=_0x43f5f9[_0x25ecb9(0x3eb)]['ranges'][_0x25ecb9(0x3b3)](_0xa28f49=>{const _0x401cf2=_0x25ecb9,_0x4603c6=_0x98f991[_0x401cf2(0x3eb)]['range'],_0x3427de=_0x4603c6[_0x401cf2(0x22a)]-_0x4603c6[_0x401cf2(0x245)]+0x1;if(_0x4603c6['startColumn']<=_0xa28f49['startColumn'])return{..._0xa28f49,'startColumn':_0xa28f49[_0x401cf2(0x245)]+_0x3427de,'endColumn':_0xa28f49['endColumn']+_0x3427de};else{if(_0x4603c6[_0x401cf2(0x245)]>_0xa28f49[_0x401cf2(0x245)]&&_0x4603c6[_0x401cf2(0x245)]<=_0xa28f49[_0x401cf2(0x22a)])return{..._0xa28f49,'endColumn':_0xa28f49[_0x401cf2(0x22a)]+_0x3427de};else return{..._0xa28f49};}});return _0x43f5f9[_0x25ecb9(0x3eb)][_0x25ecb9(0x3a3)]=_0x2ba574,{'m1Prime':_0x98f991,'m2Prime':_0x43f5f9};}},insertColMutationWithReorderRange={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1ca)]['id'],'handler'(_0x38653c,_0x4687af){const _0x5cb7d9=_0xfc9601,_0x5db2ba={'m1Prime':_0x38653c,'m2Prime':_0x4687af};if(_0x38653c[_0x5cb7d9(0x3eb)][_0x5cb7d9(0x1d0)]!==_0x4687af[_0x5cb7d9(0x3eb)][_0x5cb7d9(0x1d0)]||_0x38653c['params'][_0x5cb7d9(0x25e)]!==_0x4687af['params'][_0x5cb7d9(0x25e)])return _0x5db2ba;const _0xbf75db=_univerjs_core[_0x5cb7d9(0x1c3)][_0x5cb7d9(0x1cf)](_0x4687af),_0x197f3c=(0x0,_univerjs_sheets[_0x5cb7d9(0x2ee)])(toColumn(_0x38653c['params'][_0x5cb7d9(0x29a)]),toColumn(_0x4687af['params']['range']));return _0xbf75db[_0x5cb7d9(0x3eb)][_0x5cb7d9(0x29a)][_0x5cb7d9(0x245)]+=_0x197f3c[_0x5cb7d9(0x2af)],_0xbf75db[_0x5cb7d9(0x3eb)][_0x5cb7d9(0x29a)][_0x5cb7d9(0x22a)]+=_0x197f3c[_0x5cb7d9(0x2af)]+(_0x197f3c[_0x5cb7d9(0x29d)]||0x0),{'m1Prime':_0x38653c,'m2Prime':_0xbf75db};}},insertColMutationWithSetColData={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x348)]['id'],'handler'(_0x3b66b7,_0xc397c2){const _0x5d542b=_0xfc9601,_0x52ff5d={'m1Prime':_0x3b66b7,'m2Prime':_0xc397c2};if(_0x3b66b7[_0x5d542b(0x3eb)][_0x5d542b(0x1d0)]!==_0xc397c2[_0x5d542b(0x3eb)]['unitId']||_0x3b66b7[_0x5d542b(0x3eb)][_0x5d542b(0x25e)]!==_0xc397c2[_0x5d542b(0x3eb)][_0x5d542b(0x25e)])return _0x52ff5d;const _0x11652c=_univerjs_core['Tools']['deepClone'](_0x3b66b7),_0x59dca5=_univerjs_core['Tools'][_0x5d542b(0x1cf)](_0xc397c2),{columnData:_0x384589}=_0x59dca5['params'];for(let _0xa91fa8=_0x3b66b7[_0x5d542b(0x3eb)][_0x5d542b(0x29a)][_0x5d542b(0x245)];_0xa91fa8<=_0x3b66b7[_0x5d542b(0x3eb)][_0x5d542b(0x29a)][_0x5d542b(0x22a)];_0xa91fa8++)(0x0,_univerjs_core['insertMatrixArray'])(_0xa91fa8,void 0x0,_0x384589);return{'m1Prime':_0x11652c,'m2Prime':_0x59dca5};}},insertColMutationWithSetColHidden={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets['SetColHiddenMutation']['id'],'handler'(_0x47013f,_0x50b0b0){const _0x912ee0=_0xfc9601,_0x4f27fb={'m1Prime':_0x47013f,'m2Prime':_0x50b0b0};if(_0x47013f[_0x912ee0(0x3eb)][_0x912ee0(0x1d0)]!==_0x50b0b0[_0x912ee0(0x3eb)][_0x912ee0(0x1d0)]||_0x47013f['params'][_0x912ee0(0x25e)]!==_0x50b0b0[_0x912ee0(0x3eb)][_0x912ee0(0x25e)])return _0x4f27fb;const _0x374f9a=_univerjs_core[_0x912ee0(0x1c3)][_0x912ee0(0x1cf)](_0x47013f),_0x45d41e=_univerjs_core['Tools'][_0x912ee0(0x1cf)](_0x50b0b0),{ranges:_0x206cbf}=_0x45d41e[_0x912ee0(0x3eb)];if(_0x206cbf['some'](_0x380615=>{const _0x2c6dd3=_0x912ee0,_0x2030e9=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn(_0x47013f['params'][_0x2c6dd3(0x29a)]),_0x380615);if(_0x2030e9[_0x2c6dd3(0x29d)]!==0x0)return!![];return _0x380615[_0x2c6dd3(0x245)]+=_0x2030e9[_0x2c6dd3(0x2af)],_0x380615[_0x2c6dd3(0x22a)]+=_0x2030e9['step'],![];}))return{'error':new Error('insert\x20col\x20is\x20conflict\x20with\x20set\x20col\x20hidden')};return{'m1Prime':_0x374f9a,'m2Prime':_0x45d41e};}},insertColMutationWithSetColVisible={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c7)]['id'],'handler'(_0xbed14b,_0x187bc0){const _0x3964f1=_0xfc9601,_0x2c95fb={'m1Prime':_0xbed14b,'m2Prime':_0x187bc0};if(_0xbed14b['params'][_0x3964f1(0x1d0)]!==_0x187bc0[_0x3964f1(0x3eb)][_0x3964f1(0x1d0)]||_0xbed14b[_0x3964f1(0x3eb)]['subUnitId']!==_0x187bc0['params'][_0x3964f1(0x25e)])return _0x2c95fb;const _0x2cc888=_univerjs_core[_0x3964f1(0x1c3)][_0x3964f1(0x1cf)](_0xbed14b),_0x76f700=_univerjs_core[_0x3964f1(0x1c3)][_0x3964f1(0x1cf)](_0x187bc0),{ranges:_0x3e34b4}=_0x76f700[_0x3964f1(0x3eb)];if(_0x3e34b4[_0x3964f1(0x3ad)](_0x4e1367=>{const _0x3e3ed6=_0x3964f1,_0x34f119=(0x0,_univerjs_sheets[_0x3e3ed6(0x2ee)])(toColumn(_0xbed14b['params']['range']),_0x4e1367);if(_0x34f119[_0x3e3ed6(0x29d)]!==0x0)return!![];return _0x4e1367[_0x3e3ed6(0x245)]+=_0x34f119[_0x3e3ed6(0x2af)],_0x4e1367[_0x3e3ed6(0x22a)]+=_0x34f119[_0x3e3ed6(0x2af)],![];}))return{'error':new Error('insert\x20col\x20is\x20conflict\x20with\x20set\x20col\x20visible')};return{'m1Prime':_0x2cc888,'m2Prime':_0x76f700};}},insertColMutationWithSetNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x397)]['id'],'handler'(_0x9e0e51,_0x5a3f54){const _0x53d22e=_0xfc9601,_0x231d57={'m1Prime':_0x9e0e51,'m2Prime':_0x5a3f54};if(_0x9e0e51['params'][_0x53d22e(0x1d0)]!==_0x5a3f54[_0x53d22e(0x3eb)][_0x53d22e(0x1d0)]||_0x9e0e51[_0x53d22e(0x3eb)][_0x53d22e(0x25e)]!==_0x5a3f54[_0x53d22e(0x3eb)][_0x53d22e(0x25e)])return _0x231d57;const _0x592666=[_univerjs_core[_0x53d22e(0x1c3)][_0x53d22e(0x1cf)](_0x9e0e51)],_0x20a8d3=_univerjs_core['Tools'][_0x53d22e(0x1cf)](_0x5a3f54),{values:_0x4596ce}=_0x20a8d3[_0x53d22e(0x3eb)],_0x542204=[];let _0x57d30d=![];for(const _0x125a04 in _0x4596ce){const _0x536b48=_0x4596ce[_0x125a04];_0x542204['push'](..._0x536b48['ranges']);if(_0x536b48[_0x53d22e(0x3a3)]['some'](_0x4fed42=>{const _0x4392b9=_0x53d22e,_0x358e82=(0x0,_univerjs_sheets[_0x4392b9(0x2ee)])(toColumn(_0x9e0e51[_0x4392b9(0x3eb)][_0x4392b9(0x29a)]),toColumn(_0x4fed42));if(_0x358e82[_0x4392b9(0x29d)]!==0x0)return!![];if(_0x358e82['step']!==0x0)_0x57d30d=!![];return _0x4fed42['startColumn']+=_0x358e82[_0x4392b9(0x2af)],_0x4fed42[_0x4392b9(0x22a)]+=_0x358e82['step'],![];}))return{'error':new Error(_0x53d22e(0x28b))};}if(_0x57d30d){const _0xc47f51={'id':_univerjs_sheets[_0x53d22e(0x2c9)]['id'],'params':{'unitId':_0x5a3f54[_0x53d22e(0x3eb)][_0x53d22e(0x1d0)],'subUnitId':_0x5a3f54[_0x53d22e(0x3eb)]['subUnitId'],'ranges':_0x542204}};_0x592666[_0x53d22e(0x380)](_0xc47f51,_0x20a8d3);}return{'m1Prime':_0x592666,'m2Prime':_0x20a8d3};}},insertColMutationWithSetRangeValues={'m1':_univerjs_sheets['InsertColMutation']['id'],'m2':_univerjs_sheets['SetRangeValuesMutation']['id'],'handler'(_0x41647e,_0x1059a7){const _0x4a47b3=_0xfc9601,_0x2511e6={'m1Prime':_0x41647e,'m2Prime':_0x1059a7};if(_0x41647e[_0x4a47b3(0x3eb)][_0x4a47b3(0x1d0)]!==_0x1059a7[_0x4a47b3(0x3eb)][_0x4a47b3(0x1d0)]||_0x41647e[_0x4a47b3(0x3eb)][_0x4a47b3(0x25e)]!==_0x1059a7['params'][_0x4a47b3(0x25e)])return _0x2511e6;const _0x42b05f=[_univerjs_core[_0x4a47b3(0x1c3)][_0x4a47b3(0x1cf)](_0x41647e)],_0x461d7f=_univerjs_core['Tools']['deepClone'](_0x1059a7),_0x1780e3=new _univerjs_core[(_0x4a47b3(0x3c2))](_0x461d7f['params'][_0x4a47b3(0x31f)]),_0x3df455=_0x1780e3[_0x4a47b3(0x3d1)](),_0x2833eb=_0x41647e[_0x4a47b3(0x3eb)][_0x4a47b3(0x29a)],_0x5a4a0a=_0x2833eb[_0x4a47b3(0x22a)]-_0x2833eb[_0x4a47b3(0x245)]+0x1;if(_0x461d7f[_0x4a47b3(0x3eb)][_0x4a47b3(0x31f)]&&_0x2833eb[_0x4a47b3(0x245)]<=_0x3df455[_0x4a47b3(0x22a)]){const _0x51f9e7=Math[_0x4a47b3(0x2bd)](_0x3df455[_0x4a47b3(0x245)],_0x2833eb[_0x4a47b3(0x245)]);moveColumns(_0x461d7f[_0x4a47b3(0x3eb)][_0x4a47b3(0x31f)],_0x51f9e7,_0x3df455[_0x4a47b3(0x22a)]-_0x51f9e7+0x1,_0x5a4a0a);}const _0x4699e1=new _univerjs_core[(_0x4a47b3(0x3c2))]();let _0x4ee9ad=![];_0x1780e3['forValue']((_0x3d8998,_0x84dede,_0x831ffb)=>{const _0x465690=_0x4a47b3;if(_0x831ffb&&_0x831ffb['f']){const _0x3617aa=_0x831ffb['f'];let _0x150a2e=![];const _0x1bcd26=processFormulaString(_0x41647e['params']['unitId'],_0x41647e[_0x465690(0x3eb)][_0x465690(0x25e)],_0x3617aa,_0x5e5880=>{const _0x546f81=_0x465690,_0x2ed8a3=(0x0,_univerjs_sheets[_0x546f81(0x2ee)])(toColumn(_0x41647e['params'][_0x546f81(0x29a)]),toColumn(_0x5e5880));return(_0x2ed8a3[_0x546f81(0x2af)]!==0x0||_0x2ed8a3['length']!==0x0)&&(_0x150a2e=!![],_0x5e5880[_0x546f81(0x245)]+=_0x2ed8a3[_0x546f81(0x2af)],_0x5e5880[_0x546f81(0x22a)]+=_0x2ed8a3[_0x546f81(0x2af)]+_0x2ed8a3['length']),_0x5e5880;});_0x150a2e&&(_0x4ee9ad=!![],_0x831ffb['f']=_0x1bcd26,_0x4699e1[_0x465690(0x2fe)](_0x3d8998,_0x84dede,{..._0x831ffb}));}});if(_0x4ee9ad){const _0x4148f9={'id':_univerjs_sheets[_0x4a47b3(0x30f)]['id'],'params':{'unitId':_0x1059a7['params'][_0x4a47b3(0x1d0)],'subUnitId':_0x1059a7[_0x4a47b3(0x3eb)][_0x4a47b3(0x25e)],'cellValue':_0x4699e1[_0x4a47b3(0x1d1)]()}};_0x42b05f[_0x4a47b3(0x380)](_0x4148f9);}return{'m1Prime':_0x42b05f,'m2Prime':_0x461d7f};}},insertColMutationWithSetSelection={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1cd)]['id'],'handler'(_0x3a54e5,_0x3e835b){const _0x4ee8e4=_0xfc9601,_0x2bf6dc={'m1Prime':[],'m2Prime':[]};if(_0x3a54e5[_0x4ee8e4(0x3eb)][_0x4ee8e4(0x1d0)]!==_0x3e835b[_0x4ee8e4(0x3eb)]['unitId']||_0x3a54e5[_0x4ee8e4(0x3eb)][_0x4ee8e4(0x25e)]!==_0x3e835b[_0x4ee8e4(0x3eb)][_0x4ee8e4(0x25e)])return _0x2bf6dc;const _0x2d7b5c=_univerjs_core['Tools']['deepClone'](_0x3e835b);let _0x198c49=![];_0x2d7b5c['params'][_0x4ee8e4(0x3e0)][_0x4ee8e4(0x302)](_0x2b5b63=>{const _0x15d420=_0x4ee8e4,{range:_0x14fe3f,primary:_0x569927}=_0x2b5b63,_0x41639e=(0x0,_univerjs_sheets[_0x15d420(0x2ee)])(toColumn(_0x3a54e5[_0x15d420(0x3eb)]['range']),toColumn(_0x14fe3f));if(_0x41639e[_0x15d420(0x29d)]||_0x41639e[_0x15d420(0x2af)]){_0x14fe3f[_0x15d420(0x245)]+=_0x41639e[_0x15d420(0x2af)],_0x14fe3f[_0x15d420(0x22a)]+=_0x41639e[_0x15d420(0x2af)]+(_0x41639e[_0x15d420(0x29d)]||0x0);if(_0x569927){const _0x334f2c=(0x0,_univerjs_sheets[_0x15d420(0x2ee)])(toColumn(_0x3a54e5[_0x15d420(0x3eb)]['range']),toColumn(_0x569927));(_0x334f2c[_0x15d420(0x29d)]||_0x334f2c[_0x15d420(0x2af)])&&(_0x569927['startColumn']+=_0x334f2c['step'],_0x569927[_0x15d420(0x22a)]+=_0x334f2c[_0x15d420(0x2af)],_0x569927[_0x15d420(0x235)]+=_0x334f2c['step']);}_0x198c49=!![];}});if(_0x198c49)_0x2bf6dc[_0x4ee8e4(0x3d9)][_0x4ee8e4(0x380)](_0x2d7b5c);return _0x2bf6dc;}},insertColMutationWithSetSheetsFilterCriteria={'m1':_univerjs_sheets['InsertColMutation']['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x309)]['id'],'handler'(_0x4d2f38,_0x3c7075){const _0x262400=_0xfc9601,_0x1fbc06={'m1Prime':_0x4d2f38,'m2Prime':_0x3c7075};if(_0x4d2f38[_0x262400(0x3eb)][_0x262400(0x1d0)]!==_0x3c7075[_0x262400(0x3eb)][_0x262400(0x1d0)]||_0x4d2f38[_0x262400(0x3eb)]['subUnitId']!==_0x3c7075[_0x262400(0x3eb)][_0x262400(0x25e)])return _0x1fbc06;const _0x36c03=_univerjs_core[_0x262400(0x1c3)]['deepClone'](_0x4d2f38),_0x1766a9=_univerjs_core[_0x262400(0x1c3)][_0x262400(0x1cf)](_0x3c7075),_0x57306d=handleInsert({'start':_0x4d2f38[_0x262400(0x3eb)][_0x262400(0x29a)][_0x262400(0x245)],'end':_0x4d2f38[_0x262400(0x3eb)][_0x262400(0x29a)]['endColumn']},{'start':_0x3c7075[_0x262400(0x3eb)]['col'],'end':_0x3c7075[_0x262400(0x3eb)][_0x262400(0x3c5)]});if(_0x1766a9[_0x262400(0x3eb)][_0x262400(0x3c5)]===_0x57306d[_0x262400(0x40e)])return _0x1fbc06;_0x1766a9['params']['col']=_0x57306d[_0x262400(0x40e)];if(_0x1766a9[_0x262400(0x3eb)][_0x262400(0x3f5)])_0x1766a9[_0x262400(0x3eb)][_0x262400(0x3f5)][_0x262400(0x1bc)]=_0x57306d[_0x262400(0x40e)];const _0x52377f=_univerjs_core[_0x262400(0x1c3)][_0x262400(0x1cf)](_0x3c7075);return _0x52377f[_0x262400(0x3eb)][_0x262400(0x3f5)]=null,{'m1Prime':[_0x52377f,_0x1766a9,_0x36c03],'m2Prime':[_0x1766a9]};}},insertColMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x27e)]['id'],'handler'(_0x4f02d9,_0x18ea90){const _0x3f8406=_0xfc9601,_0x46251f={'m1Prime':_0x4f02d9,'m2Prime':_0x18ea90};if(_0x4f02d9[_0x3f8406(0x3eb)][_0x3f8406(0x1d0)]!==_0x18ea90[_0x3f8406(0x3eb)][_0x3f8406(0x1d0)]||_0x4f02d9[_0x3f8406(0x3eb)]['subUnitId']!==_0x18ea90[_0x3f8406(0x3eb)][_0x3f8406(0x25e)])return _0x46251f;const _0x5d37a9=_univerjs_core['Tools']['deepClone'](_0x4f02d9),_0x1487df=_univerjs_core[_0x3f8406(0x1c3)]['deepClone'](_0x18ea90),_0x16bbb8=handleInsert({'start':_0x4f02d9[_0x3f8406(0x3eb)]['range'][_0x3f8406(0x245)],'end':_0x4f02d9[_0x3f8406(0x3eb)][_0x3f8406(0x29a)][_0x3f8406(0x22a)]},{'start':_0x18ea90[_0x3f8406(0x3eb)][_0x3f8406(0x29a)][_0x3f8406(0x245)],'end':_0x18ea90[_0x3f8406(0x3eb)][_0x3f8406(0x29a)][_0x3f8406(0x22a)]});if(_0x1487df[_0x3f8406(0x3eb)]['range'][_0x3f8406(0x245)]===_0x16bbb8[_0x3f8406(0x40e)]&&_0x1487df[_0x3f8406(0x3eb)][_0x3f8406(0x29a)][_0x3f8406(0x22a)]===_0x16bbb8['end'])return _0x46251f;return _0x1487df[_0x3f8406(0x3eb)][_0x3f8406(0x29a)][_0x3f8406(0x245)]=_0x16bbb8[_0x3f8406(0x40e)],_0x1487df[_0x3f8406(0x3eb)][_0x3f8406(0x29a)][_0x3f8406(0x22a)]=_0x16bbb8[_0x3f8406(0x3bc)],{'m1Prime':[_0x1487df,_0x5d37a9],'m2Prime':[_0x1487df]};}},insertColMutationWithSetWorksheetColWidth={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1f5)]['id'],'handler'(_0x2f8936,_0x55037c){const _0x334a17=_0xfc9601,_0x5c4c10={'m1Prime':_0x2f8936,'m2Prime':_0x55037c};if(_0x2f8936[_0x334a17(0x3eb)][_0x334a17(0x1d0)]!==_0x55037c[_0x334a17(0x3eb)]['unitId']||_0x2f8936['params'][_0x334a17(0x25e)]!==_0x55037c['params'][_0x334a17(0x25e)])return _0x5c4c10;const _0x70ed71=_univerjs_core[_0x334a17(0x1c3)][_0x334a17(0x1cf)](_0x2f8936),_0x5cff6d=_univerjs_core[_0x334a17(0x1c3)]['deepClone'](_0x55037c),{ranges:_0x3380d3,colWidth:_0x582ead}=_0x5cff6d[_0x334a17(0x3eb)];if(_0x3380d3[_0x334a17(0x3ad)](_0x174574=>{const _0x587c76=_0x334a17,_0x279f20=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn(_0x2f8936[_0x587c76(0x3eb)][_0x587c76(0x29a)]),_0x174574);if(_0x279f20[_0x587c76(0x29d)]!==0x0)return!![];return _0x174574[_0x587c76(0x245)]+=_0x279f20[_0x587c76(0x2af)],_0x174574[_0x587c76(0x22a)]+=_0x279f20[_0x587c76(0x2af)],![];}))return{'error':new Error(_0x334a17(0x325))};if(typeof _0x582ead!==_0x334a17(0x28f)){for(let _0x12b8fa=_0x2f8936[_0x334a17(0x3eb)]['range'][_0x334a17(0x245)];_0x12b8fa<=_0x2f8936[_0x334a17(0x3eb)][_0x334a17(0x29a)][_0x334a17(0x22a)];_0x12b8fa++)(0x0,_univerjs_core[_0x334a17(0x1f1)])(_0x12b8fa,void 0x0,_0x582ead);}return{'m1Prime':_0x70ed71,'m2Prime':_0x5cff6d};}},transformUpdateCommentRefWithRefRange=(_0x138c33,_0x397a35)=>{const _0x421f21=_0xfc9601,_0x1e65d4=(0x0,_univerjs_engine_formula['singleReferenceToGrid'])(_0x138c33[_0x421f21(0x3eb)][_0x421f21(0x210)][_0x421f21(0x233)]),_0x1e1315=(0x0,_univerjs_sheets[_0x421f21(0x284)])({'startColumn':_0x1e65d4['column'],'endColumn':_0x1e65d4[_0x421f21(0x2f4)],'startRow':_0x1e65d4[_0x421f21(0x2bb)],'endRow':_0x1e65d4['row']},_0x397a35);if(!_0x1e1315)return[{'id':_univerjs_thread_comment[_0x421f21(0x2ba)]['id'],'params':{..._0x138c33[_0x421f21(0x3eb)],'comment':void 0x0,'commentId':_0x138c33[_0x421f21(0x3eb)][_0x421f21(0x210)][_0x421f21(0x287)]}}];const _0x264b70=(0x0,_univerjs_engine_formula['serializeRange'])(_0x1e1315);if(_0x264b70===_0x138c33['params']['payload']['ref'])return[];return[{'id':_univerjs_thread_comment['UpdateCommentRefMutation']['id'],'params':{..._0x138c33[_0x421f21(0x3eb)],'comment':void 0x0,'payload':{'ref':_0x264b70,'commentId':_0x138c33[_0x421f21(0x3eb)][_0x421f21(0x210)][_0x421f21(0x287)]}}}];},insertColWithUpdateCommentRef={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x365)]['id'],'handler':(_0x1879c4,_0x255e42)=>{const _0x148de3=_0xfc9601,_0xca6dcc={'m1Prime':_0x1879c4,'m2Prime':_0x255e42};if(_0x1879c4['params'][_0x148de3(0x1d0)]!==_0x255e42['params'][_0x148de3(0x1d0)]||_0x1879c4[_0x148de3(0x3eb)][_0x148de3(0x25e)]!==_0x255e42[_0x148de3(0x3eb)][_0x148de3(0x25e)])return _0xca6dcc;const _0x52b455=transformUpdateCommentRefWithRefRange(_0x255e42,{'id':_univerjs_sheets[_0x148de3(0x2a2)]['id'],'params':{'unitId':_0x1879c4['params'][_0x148de3(0x1d0)],'subUnitId':_0x1879c4[_0x148de3(0x3eb)]['subUnitId'],'range':_0x1879c4[_0x148de3(0x3eb)][_0x148de3(0x29a)]}});return{'m1Prime':[_0x1879c4,..._0x52b455],'m2Prime':[_0x255e42,..._0x52b455]};}};function transformUpdateDataValidationWithRefRange(_0x16b4d0,_0x5f1b44){const _0x4fea43=_0xfc9601,{payload:_0x3d7290,unitId:_0x284fc7,subUnitId:_0x49c820,ruleId:_0x142fae}=_0x16b4d0[_0x4fea43(0x3eb)];switch(_0x3d7290[_0x4fea43(0x266)]){case _univerjs_data_validation[_0x4fea43(0x28c)][_0x4fea43(0x2fc)]:{const _0x50b754=_0x3d7290[_0x4fea43(0x210)][_0x4fea43(0x3b3)](_0x841757=>(0x0,_univerjs_sheets[_0x4fea43(0x361)])(_0x841757,_0x5f1b44))[_0x4fea43(0x3cc)](Boolean)[_0x4fea43(0x1cc)]();if(!(0x0,_univerjs_core[_0x4fea43(0x353)])(_0x50b754,_0x3d7290['payload']))return[{'id':_univerjs_data_validation['UpdateDataValidationMutation']['id'],'params':{'unitId':_0x284fc7,'subUnitId':_0x49c820,'ruleId':_0x142fae,'payload':{'type':_univerjs_data_validation[_0x4fea43(0x28c)][_0x4fea43(0x2fc)],'payload':_0x50b754}}}];break;}case _univerjs_data_validation[_0x4fea43(0x28c)][_0x4fea43(0x31c)]:{var _0x3475c7,_0x147805;const _0x26605f=_0x96758b=>{return processFormulaString(_0x284fc7,_0x49c820,_0x96758b,_0x15f58f=>{const _0x3be8b6=_0x5cb6;return(0x0,_univerjs_sheets[_0x3be8b6(0x284)])(_0x15f58f,_0x5f1b44);});},_0x433e23=(_0x3475c7=_0x3d7290[_0x4fea43(0x210)][_0x4fea43(0x396)])!==null&&_0x3475c7!==void 0x0?_0x3475c7:'',_0x58be84=(_0x147805=_0x3d7290['payload']['formula2'])!==null&&_0x147805!==void 0x0?_0x147805:'';let _0x219e7a=_0x433e23,_0x36d3ad=_0x58be84;if((0x0,_univerjs_core[_0x4fea43(0x335)])(_0x433e23))_0x219e7a=_0x26605f(_0x433e23);if((0x0,_univerjs_core[_0x4fea43(0x335)])(_0x58be84))_0x36d3ad=_0x26605f(_0x58be84);if(_0x219e7a!==_0x433e23||_0x36d3ad!==_0x58be84)return[{'id':_univerjs_data_validation[_0x4fea43(0x216)]['id'],'params':{'unitId':_0x284fc7,'subUnitId':_0x49c820,'ruleId':_0x142fae,'payload':{'type':_univerjs_data_validation['UpdateRuleType']['SETTING'],'payload':{'type':_0x3d7290[_0x4fea43(0x210)][_0x4fea43(0x266)],'formula1':_0x219e7a,'formula2':_0x36d3ad}}}}];break;}default:break;}return[];}const moveColMutationWithUpdateDataValidation={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x54bdc6,_0x87c478)=>{const _0x2d1b59=_0xfc9601,_0x20e705={'m1Prime':_0x54bdc6,'m2Prime':_0x87c478};if(_0x54bdc6[_0x2d1b59(0x3eb)][_0x2d1b59(0x1d0)]!==_0x87c478[_0x2d1b59(0x3eb)][_0x2d1b59(0x1d0)]||_0x87c478[_0x2d1b59(0x3eb)][_0x2d1b59(0x25e)]!==_0x54bdc6[_0x2d1b59(0x3eb)][_0x2d1b59(0x25e)])return _0x20e705;const _0x235ee3=transformUpdateDataValidationWithRefRange(_0x87c478,{'id':_univerjs_sheets['MoveColsCommand']['id'],'params':{'fromRange':_0x54bdc6['params']['sourceRange'],'toRange':_0x54bdc6[_0x2d1b59(0x3eb)][_0x2d1b59(0x38d)]}});return{'m1Prime':[_0x54bdc6,..._0x235ee3],'m2Prime':[_0x87c478,..._0x235ee3]};}},insertColMutationWithUpdateDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0xdf03d4,_0x5bec60)=>{const _0x5af681=_0xfc9601,_0x1e385a={'m1Prime':_0xdf03d4,'m2Prime':_0x5bec60};if(_0xdf03d4[_0x5af681(0x3eb)]['unitId']!==_0x5bec60['params'][_0x5af681(0x1d0)]||_0x5bec60[_0x5af681(0x3eb)][_0x5af681(0x25e)]!==_0xdf03d4[_0x5af681(0x3eb)][_0x5af681(0x25e)])return _0x1e385a;const _0x485adb=transformUpdateDataValidationWithRefRange(_0x5bec60,{'id':_univerjs_sheets[_0x5af681(0x2a2)]['id'],'params':{'unitId':_0xdf03d4[_0x5af681(0x3eb)][_0x5af681(0x1d0)],'subUnitId':_0xdf03d4[_0x5af681(0x3eb)][_0x5af681(0x25e)],'range':_0xdf03d4['params'][_0x5af681(0x29a)]}});return{'m1Prime':[_0xdf03d4,..._0x485adb],'m2Prime':[_0x5bec60,..._0x485adb]};}},insertRowWithAddComment={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x411)]['id'],'handler':(_0x2e755f,_0x104764)=>{const _0xfd4ffe=_0xfc9601,_0x519bad={'m1Prime':_0x2e755f,'m2Prime':_0x104764};if(_0x2e755f['params'][_0xfd4ffe(0x1d0)]!==_0x104764[_0xfd4ffe(0x3eb)][_0xfd4ffe(0x1d0)]||_0x2e755f['params'][_0xfd4ffe(0x25e)]!==_0x104764['params'][_0xfd4ffe(0x25e)])return _0x519bad;const _0x368c38=transformAddCommentWithRefRange(_0x104764,{'id':_univerjs_sheets[_0xfd4ffe(0x2e8)]['id'],'params':{'unitId':_0x2e755f[_0xfd4ffe(0x3eb)]['unitId'],'subUnitId':_0x2e755f[_0xfd4ffe(0x3eb)][_0xfd4ffe(0x25e)],'range':_0x2e755f[_0xfd4ffe(0x3eb)][_0xfd4ffe(0x29a)]}});return{'m1Prime':[_0x2e755f,..._0x368c38],'m2Prime':[_0x104764,..._0x368c38]};}},insertRowMutationWithAddMerge={'m1':_univerjs_sheets['InsertRowMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler'(_0x223bf5,_0x3f4419){const _0x2932f7=_0xfc9601,_0x3b10a6=addWorksheetMergeMutationWithInsertRowMutation[_0x2932f7(0x3f8)](_0x3f4419,_0x223bf5);if(isTransformMutationSuccess(_0x3b10a6))return{'m1Prime':_0x3b10a6[_0x2932f7(0x3d9)],'m2Prime':_0x3b10a6[_0x2932f7(0x39d)]};else return _0x3b10a6;}},insertRowMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets['InsertRowMutation']['id'],'handler'(_0x2bf2aa,_0x205c92){const _0x1e51fd=_0xfc9601,_0x4cc57f={'m1Prime':_0x2bf2aa,'m2Prime':_0x205c92};if(_0x2bf2aa[_0x1e51fd(0x3eb)][_0x1e51fd(0x1d0)]!==_0x205c92[_0x1e51fd(0x3eb)][_0x1e51fd(0x1d0)]||_0x2bf2aa[_0x1e51fd(0x3eb)][_0x1e51fd(0x25e)]!==_0x205c92['params'][_0x1e51fd(0x25e)])return _0x4cc57f;const _0x2c2ac4=_univerjs_core[_0x1e51fd(0x1c3)][_0x1e51fd(0x1cf)](_0x2bf2aa),_0x4d3513=_univerjs_core[_0x1e51fd(0x1c3)][_0x1e51fd(0x1cf)](_0x205c92),_0x5526a6=(0x0,_univerjs_sheets[_0x1e51fd(0x2ee)])(toColumn((0x0,_univerjs_sheets[_0x1e51fd(0x1eb)])(_0x2bf2aa[_0x1e51fd(0x3eb)][_0x1e51fd(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x1e51fd(0x1eb)])(_0x205c92[_0x1e51fd(0x3eb)][_0x1e51fd(0x29a)])));if(_0x5526a6)_0x4d3513['params'][_0x1e51fd(0x29a)][_0x1e51fd(0x357)]+=_0x5526a6[_0x1e51fd(0x2af)],_0x4d3513['params'][_0x1e51fd(0x29a)]['endRow']+=_0x5526a6[_0x1e51fd(0x2af)]+(_0x5526a6['length']||0x0);else _0x4d3513['id']=_univerjs_sheets[_0x1e51fd(0x305)]['id'];if(_0x2bf2aa[_0x1e51fd(0x3eb)][_0x1e51fd(0x29a)]['startRow']!==_0x205c92[_0x1e51fd(0x3eb)][_0x1e51fd(0x29a)]['startRow']){const _0x5763a7=(0x0,_univerjs_sheets[_0x1e51fd(0x2ee)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x205c92[_0x1e51fd(0x3eb)][_0x1e51fd(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x1e51fd(0x1eb)])(_0x2bf2aa[_0x1e51fd(0x3eb)][_0x1e51fd(0x29a)])));if(_0x5763a7)_0x2c2ac4[_0x1e51fd(0x3eb)]['range'][_0x1e51fd(0x357)]+=_0x5763a7['step'],_0x2c2ac4[_0x1e51fd(0x3eb)]['range']['endRow']+=_0x5763a7[_0x1e51fd(0x2af)]+(_0x5763a7[_0x1e51fd(0x29d)]||0x0);else _0x2c2ac4['id']=_univerjs_sheets[_0x1e51fd(0x305)]['id'];}return{'m1Prime':_0x2c2ac4,'m2Prime':_0x4d3513};}},insertRowMutationWithMoveRange={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler'(_0x340136,_0x533910){const _0x45958c=_0xfc9601,_0x1a58ab={'m1Prime':_0x340136,'m2Prime':_0x533910};if(_0x340136[_0x45958c(0x3eb)]['unitId']!==_0x533910[_0x45958c(0x3eb)][_0x45958c(0x1d0)]||_0x340136[_0x45958c(0x3eb)]['subUnitId']!==_0x533910[_0x45958c(0x3eb)][_0x45958c(0x3a4)][_0x45958c(0x25e)]&&_0x340136['params'][_0x45958c(0x25e)]!==_0x533910[_0x45958c(0x3eb)]['to'][_0x45958c(0x25e)])return _0x1a58ab;const _0x54e6dd=_univerjs_core[_0x45958c(0x1c3)][_0x45958c(0x1cf)](_0x340136),_0x508762=_univerjs_core[_0x45958c(0x1c3)]['deepClone'](_0x533910);if(_0x340136[_0x45958c(0x3eb)][_0x45958c(0x25e)]===_0x533910[_0x45958c(0x3eb)][_0x45958c(0x3a4)][_0x45958c(0x25e)]){const _0x3fd1d7=new _univerjs_core['ObjectMatrix'](_0x508762[_0x45958c(0x3eb)]['from'][_0x45958c(0x3e6)])[_0x45958c(0x3d1)](),{startRow:_0x2f1f18,endRow:_0x4dd51d}=_0x3fd1d7,{startRow:_0x38e641,endRow:_0x20096c}=_0x340136[_0x45958c(0x3eb)][_0x45958c(0x29a)],{step:_0x54b941,length:_0x1f01d2}=(0x0,_univerjs_sheets['handleBaseInsertRange'])((0x0,_univerjs_sheets['rotateRange'])(_0x340136[_0x45958c(0x3eb)][_0x45958c(0x29a)]),(0x0,_univerjs_sheets[_0x45958c(0x1eb)])(_0x3fd1d7));if(_0x54b941>0x0&&_0x1f01d2===0x0)moveRows(_0x508762[_0x45958c(0x3eb)]['from'][_0x45958c(0x3e6)],_0x2f1f18,_0x4dd51d-_0x2f1f18+0x1,_0x54b941);if(_0x54b941===0x0&&_0x1f01d2>0x0)moveRows(_0x508762[_0x45958c(0x3eb)][_0x45958c(0x3a4)]['value'],_0x38e641,_0x4dd51d-_0x38e641+0x1,_0x20096c-_0x38e641+0x1);}if(_0x340136[_0x45958c(0x3eb)][_0x45958c(0x25e)]===_0x533910[_0x45958c(0x3eb)]['to'][_0x45958c(0x25e)]){const _0x592b69=new _univerjs_core[(_0x45958c(0x3c2))](_0x533910[_0x45958c(0x3eb)]['to']['value'])[_0x45958c(0x3d1)](),{startRow:_0xae2f6e,endRow:_0x3d900f}=_0x592b69,{startRow:_0x31df8b,endRow:_0x3f2ee0}=_0x340136[_0x45958c(0x3eb)][_0x45958c(0x29a)],{step:_0xdcd6a5,length:_0x370fc5}=(0x0,_univerjs_sheets[_0x45958c(0x2ee)])((0x0,_univerjs_sheets[_0x45958c(0x1eb)])(_0x340136[_0x45958c(0x3eb)][_0x45958c(0x29a)]),(0x0,_univerjs_sheets[_0x45958c(0x1eb)])(_0x592b69));if(_0xdcd6a5>0x0&&_0x370fc5===0x0)moveRows(_0x508762[_0x45958c(0x3eb)]['to'][_0x45958c(0x3e6)],_0xae2f6e,_0x3d900f-_0xae2f6e+0x1,_0xdcd6a5);if(_0xdcd6a5===0x0&&_0x370fc5>0x0)moveRows(_0x508762[_0x45958c(0x3eb)]['to']['value'],_0x31df8b,_0x3d900f-_0x31df8b+0x1,_0x3f2ee0-_0x31df8b+0x1);}return{'m1Prime':_0x54e6dd,'m2Prime':_0x508762};}},insertRowMutationWithMoveRow={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets['MoveRowsMutation']['id'],'handler'(_0x2ea72f,_0x55df75){const _0xc385c5=_0xfc9601,_0x3dcea9={'m1Prime':_0x2ea72f,'m2Prime':_0x55df75};if(_0x2ea72f[_0xc385c5(0x3eb)][_0xc385c5(0x1d0)]!==_0x55df75[_0xc385c5(0x3eb)][_0xc385c5(0x1d0)]||_0x2ea72f[_0xc385c5(0x3eb)][_0xc385c5(0x25e)]!==_0x55df75[_0xc385c5(0x3eb)][_0xc385c5(0x25e)])return _0x3dcea9;const _0x56ab58=_univerjs_core[_0xc385c5(0x1c3)][_0xc385c5(0x1cf)](_0x2ea72f),_0x1cb0d3=_univerjs_core['Tools'][_0xc385c5(0x1cf)](_0x55df75),_0x1dd21f=_0x55df75['params']['sourceRange'],_0x3ad3ef=_0x55df75['params'][_0xc385c5(0x38d)];if(_0x2ea72f[_0xc385c5(0x3eb)][_0xc385c5(0x29a)][_0xc385c5(0x357)]>_0x1dd21f[_0xc385c5(0x357)]&&_0x2ea72f[_0xc385c5(0x3eb)]['range']['startRow']<=_0x1dd21f[_0xc385c5(0x3aa)]||_0x2ea72f[_0xc385c5(0x3eb)][_0xc385c5(0x29a)][_0xc385c5(0x357)]>_0x3ad3ef[_0xc385c5(0x357)]&&_0x2ea72f[_0xc385c5(0x3eb)][_0xc385c5(0x29a)]['startRow']<=_0x3ad3ef[_0xc385c5(0x3aa)])return{'error':new Error('insert\x20col\x20is\x20conflict\x20with\x20move\x20col')};const _0x2df956=(0x0,_univerjs_sheets[_0xc385c5(0x2ee)])(toColumn((0x0,_univerjs_sheets[_0xc385c5(0x1eb)])(_0x2ea72f['params'][_0xc385c5(0x29a)])),toColumn((0x0,_univerjs_sheets[_0xc385c5(0x1eb)])(_0x1dd21f))),_0x420cc7=(0x0,_univerjs_sheets[_0xc385c5(0x2ee)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x2ea72f[_0xc385c5(0x3eb)]['range'])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x3ad3ef)));_0x1cb0d3['params']['sourceRange'][_0xc385c5(0x357)]+=_0x2df956[_0xc385c5(0x2af)],_0x1cb0d3[_0xc385c5(0x3eb)][_0xc385c5(0x202)][_0xc385c5(0x3aa)]+=_0x2df956['step']+(_0x2df956[_0xc385c5(0x29d)]||0x0),_0x1cb0d3[_0xc385c5(0x3eb)]['targetRange'][_0xc385c5(0x357)]+=_0x420cc7['step'],_0x1cb0d3[_0xc385c5(0x3eb)]['targetRange'][_0xc385c5(0x3aa)]+=_0x420cc7[_0xc385c5(0x2af)]+(_0x420cc7[_0xc385c5(0x29d)]||0x0);if(_0x1dd21f[_0xc385c5(0x357)]>=_0x2ea72f[_0xc385c5(0x3eb)][_0xc385c5(0x29a)][_0xc385c5(0x357)]&&_0x3ad3ef[_0xc385c5(0x357)]<_0x2ea72f['params'][_0xc385c5(0x29a)][_0xc385c5(0x357)]){const _0x2d7b1d=_0x3ad3ef['endRow']-_0x3ad3ef[_0xc385c5(0x357)]+0x1;_0x56ab58[_0xc385c5(0x3eb)][_0xc385c5(0x29a)][_0xc385c5(0x357)]+=_0x2d7b1d,_0x56ab58[_0xc385c5(0x3eb)][_0xc385c5(0x29a)]['endRow']+=_0x2d7b1d;}else{if(_0x1dd21f[_0xc385c5(0x3aa)]<_0x2ea72f['params'][_0xc385c5(0x29a)][_0xc385c5(0x357)]&&_0x3ad3ef[_0xc385c5(0x357)]>=_0x2ea72f[_0xc385c5(0x3eb)][_0xc385c5(0x29a)][_0xc385c5(0x357)]){const _0x432e71=_0x1dd21f[_0xc385c5(0x3aa)]-_0x1dd21f[_0xc385c5(0x357)]+0x1;_0x56ab58[_0xc385c5(0x3eb)]['range'][_0xc385c5(0x357)]-=_0x432e71,_0x56ab58[_0xc385c5(0x3eb)]['range'][_0xc385c5(0x3aa)]-=_0x432e71;}}return{'m1Prime':_0x56ab58,'m2Prime':_0x1cb0d3};}},insertRowMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'handler'(_0x47dd82,_0x362096){const _0x35c0bf=_0xfc9601,_0x3d763e={'m1Prime':_0x47dd82,'m2Prime':_0x362096};if(_0x47dd82[_0x35c0bf(0x3eb)]['unitId']!==_0x362096[_0x35c0bf(0x3eb)][_0x35c0bf(0x1d0)]||_0x47dd82[_0x35c0bf(0x3eb)]['subUnitId']!==_0x362096['params'][_0x35c0bf(0x25e)])return _0x3d763e;const _0x1b367a=_univerjs_core[_0x35c0bf(0x1c3)][_0x35c0bf(0x1cf)](_0x47dd82),_0x4d646f=_univerjs_core['Tools'][_0x35c0bf(0x1cf)](_0x362096),{ranges:_0x45b365}=_0x4d646f['params'];if(_0x45b365[_0x35c0bf(0x3ad)](_0x396856=>{const _0xc76c89=_0x35c0bf,_0x24e42c=(0x0,_univerjs_sheets[_0xc76c89(0x2ee)])(toColumn((0x0,_univerjs_sheets[_0xc76c89(0x1eb)])(_0x47dd82['params'][_0xc76c89(0x29a)])),toColumn((0x0,_univerjs_sheets[_0xc76c89(0x1eb)])(_0x396856)));if(_0x24e42c[_0xc76c89(0x29d)]!==0x0)return!![];return _0x396856[_0xc76c89(0x357)]+=_0x24e42c[_0xc76c89(0x2af)],_0x396856[_0xc76c89(0x3aa)]+=_0x24e42c[_0xc76c89(0x2af)],![];}))return{'error':new Error('insert\x20row\x20is\x20conflict\x20with\x20remove\x20numfmt')};return{'m1Prime':_0x1b367a,'m2Prime':_0x4d646f};}},insertRowMutationWithRemoveRow={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets['RemoveRowMutation']['id'],'handler'(_0x4ce447,_0x378ef2){const _0x55bb3d=_0xfc9601,_0x245322={'m1Prime':_0x4ce447,'m2Prime':_0x378ef2};if(_0x4ce447[_0x55bb3d(0x3eb)]['unitId']!==_0x378ef2[_0x55bb3d(0x3eb)][_0x55bb3d(0x1d0)]||_0x4ce447[_0x55bb3d(0x3eb)][_0x55bb3d(0x25e)]!==_0x378ef2['params'][_0x55bb3d(0x25e)])return _0x245322;const _0x47440a=_univerjs_core[_0x55bb3d(0x1c3)]['deepClone'](_0x4ce447),_0x342c6b=_univerjs_core[_0x55bb3d(0x1c3)][_0x55bb3d(0x1cf)](_0x378ef2);if(_0x4ce447[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)][_0x55bb3d(0x357)]<=_0x378ef2['params'][_0x55bb3d(0x29a)][_0x55bb3d(0x3aa)]&&_0x4ce447[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)][_0x55bb3d(0x357)]>_0x378ef2[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)][_0x55bb3d(0x357)])return{'error':new Error(_0x55bb3d(0x1ef))};const _0x4aed46=(0x0,_univerjs_sheets[_0x55bb3d(0x2ee)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x4ce447[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x55bb3d(0x1eb)])(_0x378ef2['params'][_0x55bb3d(0x29a)])));if(_0x4aed46)_0x342c6b[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)]['startRow']+=_0x4aed46[_0x55bb3d(0x2af)],_0x342c6b[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)][_0x55bb3d(0x3aa)]+=_0x4aed46[_0x55bb3d(0x2af)]+(_0x4aed46[_0x55bb3d(0x29d)]||0x0);else _0x342c6b['id']=_univerjs_sheets[_0x55bb3d(0x305)]['id'];const _0x30eacf=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x378ef2[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x55bb3d(0x1eb)])(_0x4ce447[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)])));return _0x30eacf&&(_0x47440a[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)][_0x55bb3d(0x357)]+=_0x30eacf[_0x55bb3d(0x2af)],_0x47440a[_0x55bb3d(0x3eb)][_0x55bb3d(0x29a)]['endRow']+=_0x30eacf['step']+(_0x30eacf[_0x55bb3d(0x29d)]||0x0)),{'m1Prime':_0x47440a,'m2Prime':_0x342c6b};}},insertRowMutationWithRemoveWorksheetMergeMutation={'m1':_univerjs_sheets['InsertRowMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x374)]['id'],'handler'(_0x4dd05d,_0x4ca13e){const _0x596390=_0xfc9601,_0x17882c=_univerjs_core[_0x596390(0x1c3)]['deepClone'](_0x4dd05d),_0x5ef75a=_univerjs_core[_0x596390(0x1c3)][_0x596390(0x1cf)](_0x4ca13e);if(_0x4dd05d['params'][_0x596390(0x1d0)]!==_0x4ca13e['params'][_0x596390(0x1d0)]||_0x4dd05d[_0x596390(0x3eb)]['subUnitId']!==_0x4ca13e['params'][_0x596390(0x25e)])return{'m1Prime':_0x17882c,'m2Prime':_0x5ef75a};const _0x425f2c=_0x5ef75a['params'][_0x596390(0x3a3)][_0x596390(0x3b3)](_0x110172=>{const _0x34fd0c=_0x596390,_0x34ac31=_0x17882c['params']['range'],_0x2ad93a=_0x34ac31[_0x34fd0c(0x3aa)]-_0x34ac31[_0x34fd0c(0x357)]+0x1;if(_0x34ac31[_0x34fd0c(0x357)]<=_0x110172[_0x34fd0c(0x357)])return{..._0x110172,'startRow':_0x110172[_0x34fd0c(0x357)]+_0x2ad93a,'endRow':_0x110172[_0x34fd0c(0x3aa)]+_0x2ad93a};else{if(_0x34ac31[_0x34fd0c(0x357)]>_0x110172[_0x34fd0c(0x357)]&&_0x34ac31['startRow']<=_0x110172[_0x34fd0c(0x3aa)])return{..._0x110172,'endRow':_0x110172[_0x34fd0c(0x3aa)]+_0x2ad93a};else return{..._0x110172};}});return _0x5ef75a['params'][_0x596390(0x3a3)]=_0x425f2c,{'m1Prime':_0x17882c,'m2Prime':_0x5ef75a};}},insertRowMutationWithReorderRange={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1ca)]['id'],'handler'(_0x46c44a,_0x437b60){const _0x2b85e5=_0xfc9601,_0x308dc2={'m1Prime':_0x46c44a,'m2Prime':_0x437b60};if(_0x46c44a[_0x2b85e5(0x3eb)]['unitId']!==_0x437b60[_0x2b85e5(0x3eb)][_0x2b85e5(0x1d0)]||_0x46c44a[_0x2b85e5(0x3eb)][_0x2b85e5(0x25e)]!==_0x437b60[_0x2b85e5(0x3eb)][_0x2b85e5(0x25e)])return _0x308dc2;const _0x595992=_univerjs_core[_0x2b85e5(0x1c3)][_0x2b85e5(0x1cf)](_0x437b60),_0x4e9eb3=(0x0,_univerjs_sheets[_0x2b85e5(0x2ee)])(toColumn((0x0,_univerjs_sheets[_0x2b85e5(0x1eb)])(_0x46c44a[_0x2b85e5(0x3eb)][_0x2b85e5(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x2b85e5(0x1eb)])(_0x437b60[_0x2b85e5(0x3eb)][_0x2b85e5(0x29a)])));_0x595992[_0x2b85e5(0x3eb)]['range'][_0x2b85e5(0x357)]+=_0x4e9eb3[_0x2b85e5(0x2af)],_0x595992[_0x2b85e5(0x3eb)][_0x2b85e5(0x29a)]['endRow']+=_0x4e9eb3[_0x2b85e5(0x2af)]+(_0x4e9eb3[_0x2b85e5(0x29d)]||0x0);const _0x801159=_0x46c44a[_0x2b85e5(0x3eb)][_0x2b85e5(0x29a)][_0x2b85e5(0x357)],_0x3ac6de=_0x46c44a[_0x2b85e5(0x3eb)][_0x2b85e5(0x29a)][_0x2b85e5(0x3aa)]-_0x46c44a['params']['range'][_0x2b85e5(0x357)]+0x1,_0x50c810={};for(const _0xd6ed40 in _0x437b60[_0x2b85e5(0x3eb)][_0x2b85e5(0x2d8)]){let _0x3c2dfb=Number(_0xd6ed40),_0x17d9bc=_0x437b60[_0x2b85e5(0x3eb)][_0x2b85e5(0x2d8)][_0xd6ed40];_0x3c2dfb=orderMap$1(_0x801159,_0x3ac6de,_0x3c2dfb),_0x17d9bc=orderMap$1(_0x801159,_0x3ac6de,_0x17d9bc),_0x50c810[_0x3c2dfb]=_0x17d9bc;}return _0x595992[_0x2b85e5(0x3eb)][_0x2b85e5(0x2d8)]=_0x50c810,{'m1Prime':_0x46c44a,'m2Prime':_0x595992};}},orderMap$1=(_0x436418,_0x19376a,_0x2bf2e9)=>{if(_0x2bf2e9>=_0x436418)return _0x2bf2e9+_0x19376a;return _0x2bf2e9;},insertRowMutationWithSetNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x397)]['id'],'handler'(_0x18211f,_0x2ad87c){const _0x5c4cad=_0xfc9601,_0x34b106={'m1Prime':_0x18211f,'m2Prime':_0x2ad87c};if(_0x18211f[_0x5c4cad(0x3eb)][_0x5c4cad(0x1d0)]!==_0x2ad87c[_0x5c4cad(0x3eb)]['unitId']||_0x18211f[_0x5c4cad(0x3eb)]['subUnitId']!==_0x2ad87c[_0x5c4cad(0x3eb)][_0x5c4cad(0x25e)])return _0x34b106;const _0x52b9bd=[_univerjs_core[_0x5c4cad(0x1c3)][_0x5c4cad(0x1cf)](_0x18211f)],_0x4d0090=_univerjs_core[_0x5c4cad(0x1c3)]['deepClone'](_0x2ad87c),{values:_0x4a1551}=_0x4d0090[_0x5c4cad(0x3eb)],_0x245ac7=[];let _0x13a6c4=![];for(const _0x24ca86 in _0x4a1551){const _0x5b5a92=_0x4a1551[_0x24ca86];_0x245ac7[_0x5c4cad(0x380)](..._0x5b5a92[_0x5c4cad(0x3a3)]);if(_0x5b5a92[_0x5c4cad(0x3a3)][_0x5c4cad(0x3ad)](_0x2b490b=>{const _0x99cbbc=_0x5c4cad,_0x585ba1=(0x0,_univerjs_sheets[_0x99cbbc(0x2ee)])(toColumn((0x0,_univerjs_sheets[_0x99cbbc(0x1eb)])(_0x18211f[_0x99cbbc(0x3eb)][_0x99cbbc(0x29a)])),(0x0,_univerjs_sheets[_0x99cbbc(0x1eb)])(toColumn(_0x2b490b)));if(_0x585ba1[_0x99cbbc(0x29d)]!==0x0)return!![];if(_0x585ba1['step']!==0x0)_0x13a6c4=!![];return _0x2b490b[_0x99cbbc(0x357)]+=_0x585ba1[_0x99cbbc(0x2af)],_0x2b490b['endRow']+=_0x585ba1[_0x99cbbc(0x2af)],![];}))return{'error':new Error(_0x5c4cad(0x2e4))};}if(_0x13a6c4){const _0x3792d1={'id':_univerjs_sheets[_0x5c4cad(0x2c9)]['id'],'params':{'unitId':_0x2ad87c['params'][_0x5c4cad(0x1d0)],'subUnitId':_0x2ad87c[_0x5c4cad(0x3eb)][_0x5c4cad(0x25e)],'ranges':_0x245ac7}};_0x52b9bd[_0x5c4cad(0x380)](_0x3792d1,_0x4d0090);}return{'m1Prime':_0x52b9bd,'m2Prime':_0x4d0090};}},insertRowMutationWithSetRangeValues={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler'(_0x4c546a,_0x3951ce){const _0x3a9ca1=_0xfc9601,_0x5abc04={'m1Prime':_0x4c546a,'m2Prime':_0x3951ce};if(_0x4c546a['params'][_0x3a9ca1(0x1d0)]!==_0x3951ce[_0x3a9ca1(0x3eb)][_0x3a9ca1(0x1d0)]||_0x4c546a[_0x3a9ca1(0x3eb)][_0x3a9ca1(0x25e)]!==_0x3951ce[_0x3a9ca1(0x3eb)][_0x3a9ca1(0x25e)])return _0x5abc04;const _0x48b10f=[_univerjs_core[_0x3a9ca1(0x1c3)]['deepClone'](_0x4c546a)],_0x3f6c4c=_univerjs_core[_0x3a9ca1(0x1c3)][_0x3a9ca1(0x1cf)](_0x3951ce),_0x62b6af=new _univerjs_core[(_0x3a9ca1(0x3c2))](_0x3f6c4c[_0x3a9ca1(0x3eb)]['cellValue']),_0x437145=_0x62b6af[_0x3a9ca1(0x3d1)](),_0x3427b5=_0x4c546a[_0x3a9ca1(0x3eb)][_0x3a9ca1(0x29a)],_0x51cf37=_0x3427b5[_0x3a9ca1(0x3aa)]-_0x3427b5[_0x3a9ca1(0x357)]+0x1;if(_0x3f6c4c['params']['cellValue']&&_0x3427b5[_0x3a9ca1(0x357)]<=_0x437145['endRow']){const _0x3f434c=Math[_0x3a9ca1(0x2bd)](_0x437145[_0x3a9ca1(0x357)],_0x3427b5['startRow']);moveRows(_0x3f6c4c['params'][_0x3a9ca1(0x31f)],_0x3f434c,_0x437145[_0x3a9ca1(0x3aa)]-_0x3f434c+0x1,_0x51cf37);}const _0x26ef7c=new _univerjs_core[(_0x3a9ca1(0x3c2))]();let _0x4b4f01=![];_0x62b6af[_0x3a9ca1(0x387)]((_0x573567,_0x2b0a44,_0x53883f)=>{const _0x23d18a=_0x3a9ca1;if(_0x53883f&&_0x53883f['f']){const _0x4cf3f6=_0x53883f['f'];let _0x48a8a1=![];const _0x35d8dc=processFormulaString(_0x4c546a[_0x23d18a(0x3eb)]['unitId'],_0x4c546a[_0x23d18a(0x3eb)]['subUnitId'],_0x4cf3f6,_0x4f45e1=>{const _0x4cc0b6=_0x23d18a,_0x58d8ad=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn((0x0,_univerjs_sheets[_0x4cc0b6(0x1eb)])(_0x4c546a[_0x4cc0b6(0x3eb)][_0x4cc0b6(0x29a)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x4f45e1)));return(_0x58d8ad[_0x4cc0b6(0x2af)]!==0x0||_0x58d8ad[_0x4cc0b6(0x29d)]!==0x0)&&(_0x48a8a1=!![],_0x4f45e1[_0x4cc0b6(0x357)]+=_0x58d8ad[_0x4cc0b6(0x2af)],_0x4f45e1[_0x4cc0b6(0x3aa)]+=_0x58d8ad['step']+_0x58d8ad[_0x4cc0b6(0x29d)]),_0x4f45e1;});_0x48a8a1&&(_0x4b4f01=!![],_0x53883f['f']=_0x35d8dc,_0x26ef7c[_0x23d18a(0x2fe)](_0x573567,_0x2b0a44,{..._0x53883f}));}});if(_0x4b4f01){const _0x587852={'id':_univerjs_sheets[_0x3a9ca1(0x30f)]['id'],'params':{'unitId':_0x3951ce[_0x3a9ca1(0x3eb)][_0x3a9ca1(0x1d0)],'subUnitId':_0x3951ce[_0x3a9ca1(0x3eb)][_0x3a9ca1(0x25e)],'cellValue':_0x26ef7c[_0x3a9ca1(0x1d1)]()}};_0x48b10f['push'](_0x587852);}return{'m1Prime':_0x48b10f,'m2Prime':_0x3f6c4c};}},insertRowMutationWithSetRowData={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x303)]['id'],'handler'(_0x415e13,_0x20303e){const _0x272b63=_0xfc9601,_0x112551={'m1Prime':_0x415e13,'m2Prime':_0x20303e};if(_0x415e13[_0x272b63(0x3eb)][_0x272b63(0x1d0)]!==_0x20303e[_0x272b63(0x3eb)]['unitId']||_0x415e13['params'][_0x272b63(0x25e)]!==_0x20303e['params'][_0x272b63(0x25e)])return _0x112551;const _0x83dcd9=_univerjs_core[_0x272b63(0x1c3)][_0x272b63(0x1cf)](_0x415e13),_0xe587ac=_univerjs_core[_0x272b63(0x1c3)][_0x272b63(0x1cf)](_0x20303e),{rowData:_0x1d18f0}=_0xe587ac[_0x272b63(0x3eb)];for(let _0x33c32e=_0x415e13[_0x272b63(0x3eb)]['range']['startRow'];_0x33c32e<=_0x415e13['params'][_0x272b63(0x29a)][_0x272b63(0x3aa)];_0x33c32e++)(0x0,_univerjs_core['insertMatrixArray'])(_0x33c32e,void 0x0,_0x1d18f0);return{'m1Prime':_0x83dcd9,'m2Prime':_0xe587ac};}},insertRowMutationWithSetRowHidden={'m1':_univerjs_sheets['InsertRowMutation']['id'],'m2':_univerjs_sheets['SetRowHiddenMutation']['id'],'handler'(_0x5ca106,_0xb66917){const _0x54b0ae=_0xfc9601,_0x5676a5={'m1Prime':_0x5ca106,'m2Prime':_0xb66917};if(_0x5ca106[_0x54b0ae(0x3eb)][_0x54b0ae(0x1d0)]!==_0xb66917[_0x54b0ae(0x3eb)][_0x54b0ae(0x1d0)]||_0x5ca106[_0x54b0ae(0x3eb)][_0x54b0ae(0x25e)]!==_0xb66917[_0x54b0ae(0x3eb)][_0x54b0ae(0x25e)])return _0x5676a5;const _0x13fb76=_univerjs_core[_0x54b0ae(0x1c3)][_0x54b0ae(0x1cf)](_0x5ca106),_0x119033=_univerjs_core[_0x54b0ae(0x1c3)][_0x54b0ae(0x1cf)](_0xb66917),{ranges:_0x518d75}=_0x119033['params'];if(_0x518d75[_0x54b0ae(0x3ad)](_0x36af4d=>{const _0x58a766=_0x54b0ae,_0xd6a467=(0x0,_univerjs_sheets[_0x58a766(0x2ee)])(toColumn((0x0,_univerjs_sheets[_0x58a766(0x1eb)])(_0x5ca106[_0x58a766(0x3eb)][_0x58a766(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x58a766(0x1eb)])(_0x36af4d)));if(_0xd6a467[_0x58a766(0x29d)]!==0x0)return!![];return _0x36af4d[_0x58a766(0x357)]+=_0xd6a467[_0x58a766(0x2af)],_0x36af4d[_0x58a766(0x3aa)]+=_0xd6a467[_0x58a766(0x2af)],![];}))return{'error':new Error(_0x54b0ae(0x1c2))};return{'m1Prime':_0x13fb76,'m2Prime':_0x119033};}},insertRowMutationWithSetRowVisible={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x349)]['id'],'handler'(_0x4caf78,_0x79c0e9){const _0x38e32a=_0xfc9601,_0x3c9fb0={'m1Prime':_0x4caf78,'m2Prime':_0x79c0e9};if(_0x4caf78[_0x38e32a(0x3eb)][_0x38e32a(0x1d0)]!==_0x79c0e9[_0x38e32a(0x3eb)]['unitId']||_0x4caf78[_0x38e32a(0x3eb)][_0x38e32a(0x25e)]!==_0x79c0e9[_0x38e32a(0x3eb)]['subUnitId'])return _0x3c9fb0;const _0x1efc94=_univerjs_core[_0x38e32a(0x1c3)][_0x38e32a(0x1cf)](_0x4caf78),_0x3bb920=_univerjs_core['Tools'][_0x38e32a(0x1cf)](_0x79c0e9),{ranges:_0x252a16}=_0x3bb920[_0x38e32a(0x3eb)];if(_0x252a16[_0x38e32a(0x3ad)](_0x280bc1=>{const _0x2ccfd3=_0x38e32a,_0x2e9647=(0x0,_univerjs_sheets[_0x2ccfd3(0x2ee)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x4caf78[_0x2ccfd3(0x3eb)][_0x2ccfd3(0x29a)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x280bc1)));if(_0x2e9647[_0x2ccfd3(0x29d)]!==0x0)return!![];return _0x280bc1[_0x2ccfd3(0x357)]+=_0x2e9647[_0x2ccfd3(0x2af)],_0x280bc1[_0x2ccfd3(0x3aa)]+=_0x2e9647[_0x2ccfd3(0x2af)],![];}))return{'error':new Error(_0x38e32a(0x3c8))};return{'m1Prime':_0x1efc94,'m2Prime':_0x3bb920};}},insertRowMutationWithSetSelection={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets['SetSelectionsOperation']['id'],'handler'(_0x3d5808,_0x279c0f){const _0x45858c=_0xfc9601,_0x5c8ca5={'m1Prime':[],'m2Prime':[]};if(_0x3d5808[_0x45858c(0x3eb)][_0x45858c(0x1d0)]!==_0x279c0f[_0x45858c(0x3eb)][_0x45858c(0x1d0)]||_0x3d5808['params'][_0x45858c(0x25e)]!==_0x279c0f[_0x45858c(0x3eb)][_0x45858c(0x25e)])return _0x5c8ca5;const _0x149530=_univerjs_core['Tools']['deepClone'](_0x279c0f);let _0x5c2176=![];_0x149530[_0x45858c(0x3eb)]['selections']['forEach'](_0x39a392=>{const _0x5df938=_0x45858c,{range:_0x4a0fea,primary:_0x5c0ed5}=_0x39a392,_0x369387=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x3d5808['params'][_0x5df938(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x5df938(0x1eb)])(_0x4a0fea)));if(_0x369387[_0x5df938(0x29d)]||_0x369387['step']){_0x4a0fea[_0x5df938(0x357)]+=_0x369387[_0x5df938(0x2af)],_0x4a0fea['endRow']+=_0x369387['step']+(_0x369387[_0x5df938(0x29d)]||0x0);if(_0x5c0ed5){const _0x5ce8d3=(0x0,_univerjs_sheets[_0x5df938(0x2ee)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x3d5808['params'][_0x5df938(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x5df938(0x1eb)])(_0x5c0ed5)));(_0x5ce8d3['length']||_0x5ce8d3[_0x5df938(0x2af)])&&(_0x5c0ed5[_0x5df938(0x357)]+=_0x5ce8d3[_0x5df938(0x2af)],_0x5c0ed5[_0x5df938(0x3aa)]+=_0x5ce8d3[_0x5df938(0x2af)],_0x5c0ed5[_0x5df938(0x418)]+=_0x5ce8d3[_0x5df938(0x2af)]);}_0x5c2176=!![];}});if(_0x5c2176)_0x5c8ca5['m2Prime'][_0x45858c(0x380)](_0x149530);return _0x5c8ca5;}},insertRowMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x27e)]['id'],'handler'(_0x454520,_0x3aaa83){const _0xc1234b=_0xfc9601,_0x456edc={'m1Prime':[_0x454520],'m2Prime':[_0x3aaa83]};if(_0x454520[_0xc1234b(0x3eb)][_0xc1234b(0x1d0)]!==_0x3aaa83[_0xc1234b(0x3eb)][_0xc1234b(0x1d0)]||_0x454520[_0xc1234b(0x3eb)]['subUnitId']!==_0x3aaa83[_0xc1234b(0x3eb)][_0xc1234b(0x25e)])return _0x456edc;const _0x2679e6=_univerjs_core[_0xc1234b(0x1c3)][_0xc1234b(0x1cf)](_0x454520),_0x120ddb=_univerjs_core[_0xc1234b(0x1c3)]['deepClone'](_0x3aaa83),_0x82fdf1=handleInsert({'start':_0x454520[_0xc1234b(0x3eb)][_0xc1234b(0x29a)][_0xc1234b(0x357)],'end':_0x454520[_0xc1234b(0x3eb)][_0xc1234b(0x29a)][_0xc1234b(0x3aa)]},{'start':_0x3aaa83[_0xc1234b(0x3eb)][_0xc1234b(0x29a)]['startRow'],'end':_0x3aaa83[_0xc1234b(0x3eb)][_0xc1234b(0x29a)]['endRow']});if(_0x120ddb[_0xc1234b(0x3eb)][_0xc1234b(0x29a)][_0xc1234b(0x357)]===_0x82fdf1[_0xc1234b(0x40e)]&&_0x120ddb[_0xc1234b(0x3eb)][_0xc1234b(0x29a)][_0xc1234b(0x3aa)]===_0x82fdf1['end'])return _0x456edc;return _0x120ddb[_0xc1234b(0x3eb)]['range'][_0xc1234b(0x357)]=_0x82fdf1[_0xc1234b(0x40e)],_0x120ddb['params']['range'][_0xc1234b(0x3aa)]=_0x82fdf1[_0xc1234b(0x3bc)],{'m1Prime':[_0x120ddb,_0x2679e6],'m2Prime':[_0x120ddb]};}},insertRowMutationWithSetWorksheetRowAutoHeight={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c5)]['id'],'handler'(_0x3e1e2a,_0x38e5a7){const _0x442761=_0xfc9601,_0x34426e={'m1Prime':_0x3e1e2a,'m2Prime':_0x38e5a7};if(_0x3e1e2a['params'][_0x442761(0x1d0)]!==_0x38e5a7[_0x442761(0x3eb)][_0x442761(0x1d0)]||_0x3e1e2a[_0x442761(0x3eb)][_0x442761(0x25e)]!==_0x38e5a7[_0x442761(0x3eb)]['subUnitId'])return _0x34426e;const _0x399702=_univerjs_core[_0x442761(0x1c3)]['deepClone'](_0x3e1e2a),_0x3bca0e=_univerjs_core[_0x442761(0x1c3)][_0x442761(0x1cf)](_0x38e5a7),{rowsAutoHeightInfo:_0x129c8a}=_0x3bca0e[_0x442761(0x3eb)];if(_0x129c8a[_0x442761(0x3ad)](_0x22a7f8=>{const _0x568def=_0x442761,_0x533c70={'startRow':_0x22a7f8[_0x568def(0x2bb)],'endRow':_0x22a7f8[_0x568def(0x2bb)],'startColumn':0x0,'endColumn':0x0},_0x1b85b4=(0x0,_univerjs_sheets[_0x568def(0x2ee)])(toColumn((0x0,_univerjs_sheets[_0x568def(0x1eb)])(_0x3e1e2a[_0x568def(0x3eb)][_0x568def(0x29a)])),(0x0,_univerjs_sheets['rotateRange'])(_0x533c70));if(_0x1b85b4[_0x568def(0x29d)]!==0x0)return!![];return _0x22a7f8[_0x568def(0x2bb)]+=_0x1b85b4[_0x568def(0x2af)],![];}))return{'error':new Error(_0x442761(0x32b))};return{'m1Prime':_0x399702,'m2Prime':_0x3bca0e};}},insertRowMutationWithSetWorksheetRowHeight={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x304)]['id'],'handler'(_0x1602b0,_0x403c5a){const _0x4cf2e9=_0xfc9601,_0x2d49fc={'m1Prime':_0x1602b0,'m2Prime':_0x403c5a};if(_0x1602b0['params'][_0x4cf2e9(0x1d0)]!==_0x403c5a[_0x4cf2e9(0x3eb)][_0x4cf2e9(0x1d0)]||_0x1602b0[_0x4cf2e9(0x3eb)]['subUnitId']!==_0x403c5a['params'][_0x4cf2e9(0x25e)])return _0x2d49fc;const _0x44ed62=_univerjs_core['Tools'][_0x4cf2e9(0x1cf)](_0x1602b0),_0x355551=_univerjs_core[_0x4cf2e9(0x1c3)][_0x4cf2e9(0x1cf)](_0x403c5a),{ranges:_0x38e9c0,rowHeight:_0x281de2}=_0x355551[_0x4cf2e9(0x3eb)];if(_0x38e9c0[_0x4cf2e9(0x3ad)](_0x5c3d0b=>{const _0x36d036=_0x4cf2e9,_0x550c23=(0x0,_univerjs_sheets[_0x36d036(0x2ee)])(toColumn((0x0,_univerjs_sheets[_0x36d036(0x1eb)])(_0x1602b0[_0x36d036(0x3eb)]['range'])),(0x0,_univerjs_sheets[_0x36d036(0x1eb)])(_0x5c3d0b));if(_0x550c23[_0x36d036(0x29d)]!==0x0)return!![];return _0x5c3d0b['startRow']+=_0x550c23[_0x36d036(0x2af)],_0x5c3d0b['endRow']+=_0x550c23[_0x36d036(0x2af)],![];}))return{'error':new Error(_0x4cf2e9(0x345))};if(typeof _0x281de2!==_0x4cf2e9(0x28f)){for(let _0x4b3d96=_0x1602b0['params'][_0x4cf2e9(0x29a)][_0x4cf2e9(0x357)];_0x4b3d96<=_0x1602b0[_0x4cf2e9(0x3eb)][_0x4cf2e9(0x29a)][_0x4cf2e9(0x3aa)];_0x4b3d96++)(0x0,_univerjs_core['insertMatrixArray'])(_0x4b3d96,void 0x0,_0x281de2);}return{'m1Prime':_0x44ed62,'m2Prime':_0x355551};}},insertRowMutationWithSetWorksheetRowIsAutoHeight={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x37a)]['id'],'handler'(_0x10b171,_0x568efa){const _0x26f69a=_0xfc9601,_0x2154f9={'m1Prime':_0x10b171,'m2Prime':_0x568efa};if(_0x10b171[_0x26f69a(0x3eb)]['unitId']!==_0x568efa[_0x26f69a(0x3eb)][_0x26f69a(0x1d0)]||_0x10b171['params']['subUnitId']!==_0x568efa[_0x26f69a(0x3eb)]['subUnitId'])return _0x2154f9;const _0xe28493=_univerjs_core[_0x26f69a(0x1c3)]['deepClone'](_0x10b171),_0x1937c4=_univerjs_core['Tools'][_0x26f69a(0x1cf)](_0x568efa),{ranges:_0x192fd0,autoHeightInfo:_0x28c9e0}=_0x1937c4['params'];if(_0x192fd0[_0x26f69a(0x3ad)](_0x28265d=>{const _0x88acb5=_0x26f69a,_0x1d5bdb=(0x0,_univerjs_sheets[_0x88acb5(0x2ee)])(toColumn((0x0,_univerjs_sheets[_0x88acb5(0x1eb)])(_0x10b171['params'][_0x88acb5(0x29a)])),(0x0,_univerjs_sheets[_0x88acb5(0x1eb)])(_0x28265d));if(_0x1d5bdb[_0x88acb5(0x29d)]!==0x0)return!![];return _0x28265d[_0x88acb5(0x357)]+=_0x1d5bdb[_0x88acb5(0x2af)],_0x28265d['endRow']+=_0x1d5bdb[_0x88acb5(0x2af)],![];}))return{'error':new Error(_0x26f69a(0x20e))};if(typeof _0x28c9e0!==_0x26f69a(0x28f)){for(let _0x265cae=_0x10b171[_0x26f69a(0x3eb)][_0x26f69a(0x29a)][_0x26f69a(0x357)];_0x265cae<=_0x10b171[_0x26f69a(0x3eb)][_0x26f69a(0x29a)]['endRow'];_0x265cae++)(0x0,_univerjs_core['insertMatrixArray'])(_0x265cae,void 0x0,_0x28c9e0);}return{'m1Prime':_0xe28493,'m2Prime':_0x1937c4};}},insertRowWithUpdateCommentRef={'m1':_univerjs_sheets['InsertRowMutation']['id'],'m2':_univerjs_thread_comment['UpdateCommentRefMutation']['id'],'handler':(_0x167253,_0x486073)=>{const _0x31e637=_0xfc9601,_0x488db1={'m1Prime':_0x167253,'m2Prime':_0x486073};if(_0x167253['params']['unitId']!==_0x486073['params'][_0x31e637(0x1d0)]||_0x167253[_0x31e637(0x3eb)][_0x31e637(0x25e)]!==_0x486073['params']['subUnitId'])return _0x488db1;const _0x38bbe8=transformUpdateCommentRefWithRefRange(_0x486073,{'id':_univerjs_sheets[_0x31e637(0x2e8)]['id'],'params':{'unitId':_0x167253[_0x31e637(0x3eb)]['unitId'],'subUnitId':_0x167253[_0x31e637(0x3eb)]['subUnitId'],'range':_0x167253[_0x31e637(0x3eb)]['range']}});return{'m1Prime':[_0x167253,..._0x38bbe8],'m2Prime':[_0x486073,..._0x38bbe8]};}},insertRowMutationWithUpdateDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x286)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x418206,_0x1feae0)=>{const _0x425dd4=_0xfc9601,_0x43fa6d={'m1Prime':_0x418206,'m2Prime':_0x1feae0};if(_0x418206[_0x425dd4(0x3eb)][_0x425dd4(0x1d0)]!==_0x1feae0[_0x425dd4(0x3eb)][_0x425dd4(0x1d0)]||_0x1feae0['params'][_0x425dd4(0x25e)]!==_0x418206[_0x425dd4(0x3eb)][_0x425dd4(0x25e)])return _0x43fa6d;const _0x39d544=transformUpdateDataValidationWithRefRange(_0x1feae0,{'id':_univerjs_sheets[_0x425dd4(0x2e8)]['id'],'params':{'unitId':_0x418206[_0x425dd4(0x3eb)][_0x425dd4(0x1d0)],'subUnitId':_0x418206[_0x425dd4(0x3eb)]['subUnitId'],'range':_0x418206[_0x425dd4(0x3eb)]['range']}});return{'m1Prime':[_0x418206,..._0x39d544],'m2Prime':[_0x1feae0,..._0x39d544]};}},moveColWithAddComment={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x411)]['id'],'handler':(_0x2702bb,_0x5c29a7)=>{const _0x58725b=_0xfc9601,_0x233af5={'m1Prime':_0x2702bb,'m2Prime':_0x5c29a7};if(_0x2702bb[_0x58725b(0x3eb)][_0x58725b(0x1d0)]!==_0x5c29a7[_0x58725b(0x3eb)][_0x58725b(0x1d0)]||_0x2702bb[_0x58725b(0x3eb)][_0x58725b(0x25e)]!==_0x5c29a7['params']['subUnitId'])return _0x233af5;const _0x5bb607=transformAddCommentWithRefRange(_0x5c29a7,{'id':_univerjs_sheets['MoveColsCommand']['id'],'params':{'unitId':_0x2702bb[_0x58725b(0x3eb)][_0x58725b(0x1d0)],'subUnitId':_0x2702bb['params'][_0x58725b(0x25e)],'fromRange':_0x2702bb[_0x58725b(0x3eb)]['sourceRange'],'toRange':_0x2702bb[_0x58725b(0x3eb)][_0x58725b(0x38d)]}});return{'m1Prime':[_0x2702bb,..._0x5bb607],'m2Prime':[_0x5c29a7,..._0x5bb607]};}},moveColMutationWithAddMerge={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'handler'(_0x47c0e9,_0x2ff135){const _0x1a381a=_0xfc9601,_0x924479=addWorksheetMergeMutationWithMoveColMutation['handler'](_0x2ff135,_0x47c0e9);if(isTransformMutationSuccess(_0x924479))return{'m1Prime':_0x924479[_0x1a381a(0x3d9)],'m2Prime':_0x924479[_0x1a381a(0x39d)]};else return _0x924479;}},moveColMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x363)]['id'],'handler'(_0x2db5f9,_0x13ebd2){const _0x3d6e71=_0xfc9601,_0x366184={'m1Prime':_0x2db5f9,'m2Prime':_0x13ebd2};if(_0x2db5f9[_0x3d6e71(0x3eb)][_0x3d6e71(0x1d0)]!==_0x13ebd2['params'][_0x3d6e71(0x1d0)]||_0x2db5f9[_0x3d6e71(0x3eb)][_0x3d6e71(0x25e)]!==_0x13ebd2[_0x3d6e71(0x3eb)][_0x3d6e71(0x25e)])return _0x366184;const _0x211b25=_univerjs_core['Tools'][_0x3d6e71(0x1cf)](_0x2db5f9),_0x5a7a6f=_univerjs_core['Tools'][_0x3d6e71(0x1cf)](_0x13ebd2),_0x3e1d11=_0x13ebd2[_0x3d6e71(0x3eb)][_0x3d6e71(0x202)],_0x5d5fb3=_0x13ebd2[_0x3d6e71(0x3eb)]['targetRange'],_0x160829=_0x2db5f9[_0x3d6e71(0x3eb)][_0x3d6e71(0x202)],_0x4f127e=_0x2db5f9[_0x3d6e71(0x3eb)][_0x3d6e71(0x38d)];if(_0x160829[_0x3d6e71(0x22a)]>=_0x3e1d11[_0x3d6e71(0x245)]&&_0x160829['startColumn']<=_0x3e1d11[_0x3d6e71(0x22a)])return{'error':new Error(_0x3d6e71(0x346))};const _0x387eda=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x160829[_0x3d6e71(0x245)],'end':_0x160829[_0x3d6e71(0x22a)]},{'start':_0x4f127e[_0x3d6e71(0x245)],'end':_0x4f127e[_0x3d6e71(0x22a)]},{'start':_0x3e1d11[_0x3d6e71(0x245)],'end':_0x3e1d11[_0x3d6e71(0x22a)]}),_0x282073=(0x0,_univerjs_sheets[_0x3d6e71(0x3e5)])({'start':_0x160829[_0x3d6e71(0x245)],'end':_0x160829['endColumn']},{'start':_0x4f127e[_0x3d6e71(0x245)],'end':_0x4f127e[_0x3d6e71(0x22a)]},{'start':_0x5d5fb3['startColumn'],'end':_0x5d5fb3[_0x3d6e71(0x22a)]});if(_0x387eda&&_0x282073)_0x5a7a6f['params'][_0x3d6e71(0x202)]['startColumn']+=_0x387eda['step'],_0x5a7a6f[_0x3d6e71(0x3eb)][_0x3d6e71(0x202)]['endColumn']+=_0x387eda[_0x3d6e71(0x2af)]+(_0x387eda[_0x3d6e71(0x29d)]||0x0),_0x5a7a6f[_0x3d6e71(0x3eb)][_0x3d6e71(0x38d)][_0x3d6e71(0x245)]+=_0x282073[_0x3d6e71(0x2af)],_0x5a7a6f[_0x3d6e71(0x3eb)][_0x3d6e71(0x38d)][_0x3d6e71(0x22a)]+=_0x282073[_0x3d6e71(0x2af)]+(_0x282073[_0x3d6e71(0x29d)]||0x0);else _0x5a7a6f['id']=_univerjs_sheets[_0x3d6e71(0x305)]['id'];const _0x3006e7=(0x0,_univerjs_sheets[_0x3d6e71(0x3e5)])({'start':_0x3e1d11['startColumn'],'end':_0x3e1d11[_0x3d6e71(0x22a)]},{'start':_0x5d5fb3[_0x3d6e71(0x245)],'end':_0x5d5fb3[_0x3d6e71(0x22a)]},{'start':_0x160829['startColumn'],'end':_0x160829[_0x3d6e71(0x22a)]}),_0x2b032e=(0x0,_univerjs_sheets[_0x3d6e71(0x3e5)])({'start':_0x3e1d11[_0x3d6e71(0x245)],'end':_0x3e1d11['endColumn']},{'start':_0x5d5fb3[_0x3d6e71(0x245)],'end':_0x5d5fb3[_0x3d6e71(0x22a)]},{'start':_0x4f127e[_0x3d6e71(0x245)],'end':_0x4f127e[_0x3d6e71(0x22a)]});if(_0x3006e7&&_0x2b032e)_0x211b25['params'][_0x3d6e71(0x202)]['startColumn']+=_0x3006e7[_0x3d6e71(0x2af)],_0x211b25[_0x3d6e71(0x3eb)][_0x3d6e71(0x202)][_0x3d6e71(0x22a)]+=_0x3006e7[_0x3d6e71(0x2af)]+(_0x3006e7[_0x3d6e71(0x29d)]||0x0),_0x211b25[_0x3d6e71(0x3eb)][_0x3d6e71(0x38d)][_0x3d6e71(0x245)]+=_0x2b032e['step'],_0x211b25[_0x3d6e71(0x3eb)][_0x3d6e71(0x38d)]['endColumn']+=_0x2b032e[_0x3d6e71(0x2af)]+(_0x2b032e[_0x3d6e71(0x29d)]||0x0);else _0x211b25['id']=_univerjs_sheets[_0x3d6e71(0x305)]['id'];return{'m1Prime':_0x211b25,'m2Prime':_0x5a7a6f};}},moveColMutationWithMoveRange={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler'(_0x19d7a5,_0x2e3595){const _0x316f00=_0xfc9601,_0x4715dd={'m1Prime':_0x19d7a5,'m2Prime':_0x2e3595};if(_0x19d7a5[_0x316f00(0x3eb)]['unitId']!==_0x2e3595[_0x316f00(0x3eb)][_0x316f00(0x1d0)]||_0x19d7a5[_0x316f00(0x3eb)][_0x316f00(0x25e)]!==_0x2e3595[_0x316f00(0x3eb)]['from'][_0x316f00(0x25e)]&&_0x19d7a5[_0x316f00(0x3eb)][_0x316f00(0x25e)]!==_0x2e3595[_0x316f00(0x3eb)]['to']['subUnitId'])return _0x4715dd;const _0x445284=_univerjs_core[_0x316f00(0x1c3)][_0x316f00(0x1cf)](_0x19d7a5),_0x36ae96=_univerjs_core[_0x316f00(0x1c3)][_0x316f00(0x1cf)](_0x2e3595),_0x32399e=_0x19d7a5['params'][_0x316f00(0x202)],_0x1df6bd=_0x19d7a5[_0x316f00(0x3eb)][_0x316f00(0x38d)];if(_0x19d7a5['params'][_0x316f00(0x25e)]===_0x2e3595['params'][_0x316f00(0x3a4)][_0x316f00(0x25e)]){const _0x4a2201=new _univerjs_core[(_0x316f00(0x3c2))](_0x36ae96[_0x316f00(0x3eb)]['from'][_0x316f00(0x3e6)]),_0x830f07=_0x4a2201['getDataRange']();if(intersect({'start':_0x32399e['startColumn'],'end':_0x32399e[_0x316f00(0x22a)]},{'start':_0x830f07['startColumn'],'end':_0x830f07['endColumn']})||intersect({'start':_0x1df6bd[_0x316f00(0x245)],'end':_0x1df6bd['endColumn']},{'start':_0x830f07[_0x316f00(0x245)],'end':_0x830f07[_0x316f00(0x22a)]}))return{'error':new Error(_0x316f00(0x359))};const _0x3aec59=(0x0,_univerjs_sheets[_0x316f00(0x3e5)])({'start':_0x32399e[_0x316f00(0x245)],'end':_0x32399e['endColumn']},{'start':_0x1df6bd[_0x316f00(0x245)],'end':_0x1df6bd[_0x316f00(0x22a)]},{'start':_0x830f07[_0x316f00(0x245)],'end':_0x830f07[_0x316f00(0x22a)]});if(_0x3aec59[_0x316f00(0x29d)]!==0x0)return{'error':new Error(_0x316f00(0x359))};if(_0x3aec59['step']!==0x0)_0x4a2201['moveColumns'](_0x32399e[_0x316f00(0x245)],_0x32399e[_0x316f00(0x22a)]-_0x32399e[_0x316f00(0x245)]+0x1,_0x1df6bd[_0x316f00(0x245)]);_0x36ae96[_0x316f00(0x3eb)][_0x316f00(0x3a4)][_0x316f00(0x3e6)]=_0x4a2201['getMatrix']();}if(_0x19d7a5[_0x316f00(0x3eb)][_0x316f00(0x25e)]===_0x2e3595[_0x316f00(0x3eb)]['to'][_0x316f00(0x25e)]){const _0x529ef9=new _univerjs_core[(_0x316f00(0x3c2))](_0x36ae96[_0x316f00(0x3eb)]['to'][_0x316f00(0x3e6)]),_0x3ae59e=_0x529ef9['getDataRange']();if(intersect({'start':_0x32399e[_0x316f00(0x245)],'end':_0x32399e[_0x316f00(0x22a)]},{'start':_0x3ae59e['startColumn'],'end':_0x3ae59e[_0x316f00(0x22a)]})||intersect({'start':_0x1df6bd[_0x316f00(0x245)],'end':_0x1df6bd[_0x316f00(0x22a)]},{'start':_0x3ae59e['startColumn'],'end':_0x3ae59e[_0x316f00(0x22a)]}))return{'error':new Error('move\x20col\x20is\x20conflict\x20with\x20move\x20range')};const _0x163f8a=(0x0,_univerjs_sheets[_0x316f00(0x3e5)])({'start':_0x32399e[_0x316f00(0x245)],'end':_0x32399e[_0x316f00(0x22a)]},{'start':_0x1df6bd[_0x316f00(0x245)],'end':_0x1df6bd[_0x316f00(0x22a)]},{'start':_0x3ae59e['startColumn'],'end':_0x3ae59e[_0x316f00(0x22a)]});if(_0x163f8a['length']!==0x0)return{'error':new Error(_0x316f00(0x359))};if(_0x163f8a[_0x316f00(0x2af)]!==0x0)_0x529ef9[_0x316f00(0x23f)](_0x32399e['startColumn'],_0x32399e[_0x316f00(0x22a)]-_0x32399e[_0x316f00(0x245)]+0x1,_0x1df6bd[_0x316f00(0x245)]);_0x36ae96[_0x316f00(0x3eb)]['to'][_0x316f00(0x3e6)]=_0x529ef9[_0x316f00(0x1d1)]();}return{'m1Prime':_0x445284,'m2Prime':_0x36ae96};}},moveColMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'handler'(_0x117162,_0x2c137a){const _0x425efe=_0xfc9601,_0x2a2ce6={'m1Prime':_0x117162,'m2Prime':_0x2c137a};if(_0x117162[_0x425efe(0x3eb)]['unitId']!==_0x2c137a['params'][_0x425efe(0x1d0)]||_0x117162['params'][_0x425efe(0x25e)]!==_0x2c137a[_0x425efe(0x3eb)]['subUnitId'])return _0x2a2ce6;const _0x5a5438=_univerjs_core[_0x425efe(0x1c3)]['deepClone'](_0x117162),_0x4f10b5=_univerjs_core['Tools']['deepClone'](_0x2c137a),{sourceRange:_0x16bf2d,targetRange:_0x136459}=_0x117162[_0x425efe(0x3eb)],_0x125220={'start':_0x16bf2d['startColumn'],'end':_0x16bf2d[_0x425efe(0x22a)]},_0x64b459={'start':_0x136459[_0x425efe(0x245)],'end':_0x136459['endColumn']};if(_0x4f10b5[_0x425efe(0x3eb)][_0x425efe(0x3a3)][_0x425efe(0x3ad)](_0x248cfc=>{const _0x54aec3=_0x425efe,_0x3108df={'start':_0x248cfc[_0x54aec3(0x245)],'end':_0x248cfc[_0x54aec3(0x22a)]},_0x6cba61=intersect(_0x125220,_0x3108df),_0x2e8126=intersect(_0x64b459,_0x3108df);if(_0x6cba61||_0x2e8126)return!![];const _0x3c7b13=(0x0,_univerjs_sheets[_0x54aec3(0x3e5)])(_0x125220,_0x64b459,_0x3108df);if(_0x3c7b13[_0x54aec3(0x29d)]!==0x0)return!![];return _0x248cfc[_0x54aec3(0x245)]+=_0x3c7b13[_0x54aec3(0x2af)],_0x248cfc[_0x54aec3(0x22a)]+=_0x3c7b13[_0x54aec3(0x2af)],![];}))return{'error':new Error(_0x425efe(0x33c))};return{'m1Prime':_0x5a5438,'m2Prime':_0x4f10b5};}},moveColMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x374)]['id'],'handler'(_0x169247,_0x3520c5){const _0x5b2dd5=_0xfc9601,_0x265400=_univerjs_core[_0x5b2dd5(0x1c3)]['deepClone'](_0x169247),_0x13ecbd=_univerjs_core['Tools'][_0x5b2dd5(0x1cf)](_0x3520c5);if(_0x169247['params'][_0x5b2dd5(0x1d0)]!==_0x3520c5[_0x5b2dd5(0x3eb)][_0x5b2dd5(0x1d0)]||_0x169247[_0x5b2dd5(0x3eb)]['subUnitId']!==_0x3520c5['params'][_0x5b2dd5(0x25e)])return{'m1Prime':_0x265400,'m2Prime':_0x13ecbd};const _0x19b44d=_0x13ecbd[_0x5b2dd5(0x3eb)][_0x5b2dd5(0x3a3)][_0x5b2dd5(0x2a5)]((_0x45879f,_0x2eb479)=>{const _0x214545=_0x5b2dd5,{sourceRange:_0x1bd97b,targetRange:_0xea7a2e}=_0x169247[_0x214545(0x3eb)],_0x32e472={..._0x2eb479};if(_0x1bd97b['endColumn']<_0x32e472[_0x214545(0x245)]&&_0xea7a2e[_0x214545(0x245)]>_0x32e472['endColumn'])_0x32e472[_0x214545(0x245)]-=_0x1bd97b['endColumn']-_0x1bd97b[_0x214545(0x245)]+0x1,_0x32e472['endColumn']-=_0x1bd97b[_0x214545(0x22a)]-_0x1bd97b['startColumn']+0x1,isMergeCell(_0x32e472)&&_0x45879f[_0x214545(0x380)](_0x32e472);else{if(_0x1bd97b['startColumn']>_0x32e472['endColumn']&&_0xea7a2e['endColumn']<_0x32e472[_0x214545(0x245)])_0x32e472[_0x214545(0x245)]+=_0x1bd97b[_0x214545(0x22a)]-_0x1bd97b['startColumn']+0x1,_0x32e472['endColumn']+=_0x1bd97b[_0x214545(0x22a)]-_0x1bd97b['startColumn']+0x1,isMergeCell(_0x32e472)&&_0x45879f[_0x214545(0x380)](_0x32e472);else{if(_univerjs_core['Rectangle'][_0x214545(0x3b4)](_0x32e472,_0x1bd97b)||_univerjs_core['Rectangle'][_0x214545(0x3b4)](_0x32e472,_0xea7a2e)){}else _0x45879f[_0x214545(0x380)](_0x32e472);}}return _0x45879f;},[]);_0x13ecbd[_0x5b2dd5(0x3eb)][_0x5b2dd5(0x3a3)]=_0x19b44d;if(_0x13ecbd['params']['ranges'][_0x5b2dd5(0x29d)]===0x0)_0x13ecbd['id']=_univerjs_sheets[_0x5b2dd5(0x305)]['id'];return{'m1Prime':_0x265400,'m2Prime':_0x13ecbd};}},moveColMutationWithReorderRange={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1ca)]['id'],'handler'(_0x244ef5,_0x15455b){const _0xaca232=_0xfc9601,_0x4413c6={'m1Prime':_0x244ef5,'m2Prime':_0x15455b};if(_0x244ef5['params'][_0xaca232(0x1d0)]!==_0x15455b[_0xaca232(0x3eb)][_0xaca232(0x1d0)]||_0x244ef5['params'][_0xaca232(0x25e)]!==_0x15455b[_0xaca232(0x3eb)]['subUnitId'])return _0x4413c6;const _0x4144ff=_0x244ef5[_0xaca232(0x3eb)][_0xaca232(0x202)][_0xaca232(0x245)],_0x2ceb3f=_0x244ef5['params'][_0xaca232(0x202)][_0xaca232(0x22a)],_0x386a76=_0x244ef5[_0xaca232(0x3eb)]['targetRange'][_0xaca232(0x245)],_0x46ddd3=_0x244ef5[_0xaca232(0x3eb)][_0xaca232(0x38d)][_0xaca232(0x22a)],_0x2d42b0=_0x15455b['params'][_0xaca232(0x29a)][_0xaca232(0x245)],_0x2ec63b=_0x15455b['params'][_0xaca232(0x29a)][_0xaca232(0x22a)];if(_0x4144ff<=_0x2ec63b&&_0x2ceb3f>=_0x2d42b0||_0x386a76<=_0x2ec63b&&_0x46ddd3>=_0x2d42b0)return{'error':new Error(_0xaca232(0x3fa))};const _0x1b20cc=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x4144ff,'end':_0x2ceb3f},{'start':_0x386a76,'end':_0x46ddd3},{'start':_0x2d42b0,'end':_0x2ec63b}),_0x51ec19=_univerjs_core[_0xaca232(0x1c3)][_0xaca232(0x1cf)](_0x15455b);return _0x51ec19[_0xaca232(0x3eb)][_0xaca232(0x29a)]['startColumn']+=_0x1b20cc[_0xaca232(0x2af)],_0x51ec19['params']['range'][_0xaca232(0x22a)]+=_0x1b20cc['step']+(_0x1b20cc[_0xaca232(0x29d)]||0x0),{'m1Prime':_0x244ef5,'m2Prime':_0x51ec19};}},moveColMutationWithSetColData={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets['SetColDataMutation']['id'],'handler'(_0x3d4f5a,_0xaae2df){const _0x1fe12c=_0xfc9601,_0x4dc2b0={'m1Prime':_0x3d4f5a,'m2Prime':_0xaae2df};if(_0x3d4f5a[_0x1fe12c(0x3eb)]['unitId']!==_0xaae2df[_0x1fe12c(0x3eb)][_0x1fe12c(0x1d0)]||_0x3d4f5a[_0x1fe12c(0x3eb)][_0x1fe12c(0x25e)]!==_0xaae2df[_0x1fe12c(0x3eb)][_0x1fe12c(0x25e)])return _0x4dc2b0;const _0x55b3a4=_univerjs_core[_0x1fe12c(0x1c3)]['deepClone'](_0x3d4f5a),_0x310682=_univerjs_core['Tools']['deepClone'](_0xaae2df),{columnData:_0x1b43ce}=_0x310682[_0x1fe12c(0x3eb)],{sourceRange:_0x59625c,targetRange:_0x4ca90f}=_0x3d4f5a['params'];return(0x0,_univerjs_core[_0x1fe12c(0x391)])(_0x59625c[_0x1fe12c(0x245)],_0x59625c[_0x1fe12c(0x22a)]-_0x59625c[_0x1fe12c(0x245)]+0x1,_0x4ca90f[_0x1fe12c(0x245)],_0x1b43ce),{'m1Prime':_0x55b3a4,'m2Prime':_0x310682};}},moveColMutationWithSetColHidden={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x39c)]['id'],'handler'(_0x30a2e1,_0x5f2e46){const _0x1ae427=_0xfc9601,_0x3f5c1a={'m1Prime':_0x30a2e1,'m2Prime':_0x5f2e46};if(_0x30a2e1[_0x1ae427(0x3eb)][_0x1ae427(0x1d0)]!==_0x5f2e46[_0x1ae427(0x3eb)][_0x1ae427(0x1d0)]||_0x30a2e1[_0x1ae427(0x3eb)][_0x1ae427(0x25e)]!==_0x5f2e46['params'][_0x1ae427(0x25e)])return _0x3f5c1a;const _0x12ab9d=_univerjs_core[_0x1ae427(0x1c3)][_0x1ae427(0x1cf)](_0x30a2e1),_0x2494a9=_univerjs_core['Tools'][_0x1ae427(0x1cf)](_0x5f2e46),{ranges:_0x13c726}=_0x2494a9[_0x1ae427(0x3eb)],{sourceRange:_0x3b0de5,targetRange:_0x5f5816}=_0x30a2e1[_0x1ae427(0x3eb)],_0x23c30e={'start':_0x3b0de5[_0x1ae427(0x245)],'end':_0x3b0de5['endColumn']},_0x22c31d={'start':_0x5f5816[_0x1ae427(0x245)],'end':_0x5f5816['endColumn']};if(_0x13c726[_0x1ae427(0x3ad)](_0x10c43f=>{const _0x456fc9=_0x1ae427,_0x10cd00={'start':_0x10c43f['startColumn'],'end':_0x10c43f[_0x456fc9(0x22a)]},_0x4881d8=intersect(_0x23c30e,_0x10cd00),_0x3e6280=intersect(_0x22c31d,_0x10cd00);if(_0x4881d8||_0x3e6280)return!![];const _0x56d869=(0x0,_univerjs_sheets[_0x456fc9(0x3e5)])(_0x23c30e,_0x22c31d,_0x10cd00);if(_0x56d869['length']!==0x0)return!![];return _0x10c43f['startColumn']+=_0x56d869[_0x456fc9(0x2af)],_0x10c43f[_0x456fc9(0x22a)]+=_0x56d869[_0x456fc9(0x2af)],![];}))return{'error':new Error(_0x1ae427(0x26b))};return{'m1Prime':_0x12ab9d,'m2Prime':_0x2494a9};}},moveColMutationWithSetColVisible={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_sheets['SetColVisibleMutation']['id'],'handler'(_0xf86daa,_0x50a43e){const _0x43f575=_0xfc9601,_0x3d4ceb={'m1Prime':_0xf86daa,'m2Prime':_0x50a43e};if(_0xf86daa[_0x43f575(0x3eb)][_0x43f575(0x1d0)]!==_0x50a43e[_0x43f575(0x3eb)][_0x43f575(0x1d0)]||_0xf86daa['params'][_0x43f575(0x25e)]!==_0x50a43e[_0x43f575(0x3eb)][_0x43f575(0x25e)])return _0x3d4ceb;const _0x38f186=_univerjs_core[_0x43f575(0x1c3)][_0x43f575(0x1cf)](_0xf86daa),_0x81ead3=_univerjs_core[_0x43f575(0x1c3)]['deepClone'](_0x50a43e),{ranges:_0x329532}=_0x81ead3[_0x43f575(0x3eb)],{sourceRange:_0x1e8ee2,targetRange:_0x5e63c9}=_0xf86daa[_0x43f575(0x3eb)],_0xadfc90={'start':_0x1e8ee2['startColumn'],'end':_0x1e8ee2[_0x43f575(0x22a)]},_0xffeecb={'start':_0x5e63c9[_0x43f575(0x245)],'end':_0x5e63c9[_0x43f575(0x22a)]};if(_0x329532[_0x43f575(0x3ad)](_0x421783=>{const _0x38b7b6=_0x43f575,_0x40c3d5={'start':_0x421783[_0x38b7b6(0x245)],'end':_0x421783[_0x38b7b6(0x22a)]},_0x2f3677=intersect(_0xadfc90,_0x40c3d5),_0x2dee10=intersect(_0xffeecb,_0x40c3d5);if(_0x2f3677||_0x2dee10)return!![];const _0xb5e8ad=(0x0,_univerjs_sheets[_0x38b7b6(0x3e5)])(_0xadfc90,_0xffeecb,_0x40c3d5);if(_0xb5e8ad[_0x38b7b6(0x29d)]!==0x0)return!![];return _0x421783[_0x38b7b6(0x245)]+=_0xb5e8ad[_0x38b7b6(0x2af)],_0x421783[_0x38b7b6(0x22a)]+=_0xb5e8ad[_0x38b7b6(0x2af)],![];}))return{'error':new Error(_0x43f575(0x1fe))};return{'m1Prime':_0x38f186,'m2Prime':_0x81ead3};}},moveColMutationWithSetNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets['SetNumfmtMutation']['id'],'handler'(_0x170c41,_0x5dfba7){const _0xa5d330=_0xfc9601,_0x4e33c1={'m1Prime':_0x170c41,'m2Prime':_0x5dfba7};if(_0x170c41[_0xa5d330(0x3eb)][_0xa5d330(0x1d0)]!==_0x5dfba7[_0xa5d330(0x3eb)][_0xa5d330(0x1d0)]||_0x170c41[_0xa5d330(0x3eb)][_0xa5d330(0x25e)]!==_0x5dfba7['params'][_0xa5d330(0x25e)])return _0x4e33c1;const _0x325847=[_univerjs_core[_0xa5d330(0x1c3)][_0xa5d330(0x1cf)](_0x170c41)],_0xcbe51c=_univerjs_core['Tools'][_0xa5d330(0x1cf)](_0x5dfba7),{sourceRange:_0x2a1ee7,targetRange:_0x232389}=_0x170c41[_0xa5d330(0x3eb)],_0xe0fd29={'start':_0x2a1ee7[_0xa5d330(0x245)],'end':_0x2a1ee7[_0xa5d330(0x22a)]},_0xcbdf75={'start':_0x232389[_0xa5d330(0x245)],'end':_0x232389[_0xa5d330(0x22a)]},{values:_0x2f2005}=_0xcbe51c[_0xa5d330(0x3eb)],_0x23fb96=[];let _0x4763d9=![];for(const _0x17b27c in _0x2f2005){const _0xc277a1=_0x2f2005[_0x17b27c];_0x23fb96[_0xa5d330(0x380)](..._0xc277a1[_0xa5d330(0x3a3)]);if(_0xc277a1[_0xa5d330(0x3a3)][_0xa5d330(0x3ad)](_0x1b2448=>{const _0x477e75=_0xa5d330,_0x400dbc={'start':_0x1b2448[_0x477e75(0x245)],'end':_0x1b2448['endColumn']},_0x28b593=intersect(_0xe0fd29,_0x400dbc),_0x4b7609=intersect(_0xcbdf75,_0x400dbc);if(_0x28b593||_0x4b7609)return!![];const _0x18ea15=(0x0,_univerjs_sheets[_0x477e75(0x3e5)])(_0xe0fd29,_0xcbdf75,_0x400dbc);if(_0x18ea15[_0x477e75(0x29d)]!==0x0)return!![];if(_0x18ea15['step']!==0x0)_0x4763d9=!![];return _0x1b2448[_0x477e75(0x245)]+=_0x18ea15[_0x477e75(0x2af)],_0x1b2448['endColumn']+=_0x18ea15[_0x477e75(0x2af)],![];}))return{'error':new Error(_0xa5d330(0x3c9))};}if(_0x4763d9){const _0x4313e8={'id':_univerjs_sheets[_0xa5d330(0x2c9)]['id'],'params':{'unitId':_0x5dfba7[_0xa5d330(0x3eb)][_0xa5d330(0x1d0)],'subUnitId':_0x5dfba7['params'][_0xa5d330(0x25e)],'ranges':_0x23fb96}};_0x325847[_0xa5d330(0x380)](_0x4313e8,_0xcbe51c);}return{'m1Prime':_0x325847,'m2Prime':_0xcbe51c};}},moveColMutationWithSetRangeValues={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler'(_0x41c7c2,_0x1ae08b){const _0x3eb28b=_0xfc9601,_0x560dc9={'m1Prime':_0x41c7c2,'m2Prime':_0x1ae08b};if(_0x41c7c2[_0x3eb28b(0x3eb)][_0x3eb28b(0x1d0)]!==_0x1ae08b[_0x3eb28b(0x3eb)][_0x3eb28b(0x1d0)]||_0x41c7c2['params']['subUnitId']!==_0x1ae08b['params'][_0x3eb28b(0x25e)])return _0x560dc9;const _0x159c96=[_univerjs_core[_0x3eb28b(0x1c3)][_0x3eb28b(0x1cf)](_0x41c7c2)],_0x46e4d2=_univerjs_core[_0x3eb28b(0x1c3)]['deepClone'](_0x1ae08b),_0x354232=new _univerjs_core['ObjectMatrix'](_0x46e4d2['params']['cellValue']),{sourceRange:_0x2ed457,targetRange:_0x117a6f}=_0x41c7c2[_0x3eb28b(0x3eb)],_0x35fdb6=_0x2ed457['startColumn'],_0x113eca=_0x2ed457[_0x3eb28b(0x22a)]-_0x2ed457[_0x3eb28b(0x245)]+0x1,_0x4d4941=_0x117a6f[_0x3eb28b(0x245)];_0x354232['moveColumns'](_0x35fdb6,_0x113eca,_0x4d4941);const _0x11b1c=new _univerjs_core[(_0x3eb28b(0x3c2))]();let _0x2c64e7=![];_0x354232['forValue']((_0x509778,_0x28d503,_0x28dc6e)=>{const _0x23e06e=_0x3eb28b;if(_0x28dc6e&&_0x28dc6e['f']){const _0x4904ed=_0x28dc6e['f'];let _0x4998f5=![];const _0x1f07d6=processFormulaString(_0x41c7c2['params'][_0x23e06e(0x1d0)],_0x41c7c2[_0x23e06e(0x3eb)][_0x23e06e(0x25e)],_0x4904ed,_0x683710=>{const _0x2f65d3=_0x23e06e,_0x52404a=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x41c7c2['params']['sourceRange']['startColumn'],'end':_0x41c7c2[_0x2f65d3(0x3eb)][_0x2f65d3(0x202)][_0x2f65d3(0x22a)]},{'start':_0x41c7c2[_0x2f65d3(0x3eb)][_0x2f65d3(0x38d)][_0x2f65d3(0x245)],'end':_0x41c7c2[_0x2f65d3(0x3eb)][_0x2f65d3(0x38d)]['endColumn']},{'start':_0x683710[_0x2f65d3(0x245)],'end':_0x683710[_0x2f65d3(0x22a)]});return(_0x52404a[_0x2f65d3(0x2af)]!==0x0||_0x52404a['length']!==0x0)&&(_0x4998f5=!![],_0x683710[_0x2f65d3(0x245)]+=_0x52404a['step'],_0x683710[_0x2f65d3(0x22a)]+=_0x52404a['step']+_0x52404a['length']),_0x683710;});_0x4998f5&&(_0x2c64e7=!![],_0x28dc6e['f']=_0x1f07d6,_0x11b1c[_0x23e06e(0x2fe)](_0x509778,_0x28d503,{..._0x28dc6e}));}});if(_0x2c64e7){const _0x575daf={'id':_univerjs_sheets[_0x3eb28b(0x30f)]['id'],'params':{'unitId':_0x1ae08b[_0x3eb28b(0x3eb)][_0x3eb28b(0x1d0)],'subUnitId':_0x1ae08b[_0x3eb28b(0x3eb)][_0x3eb28b(0x25e)],'cellValue':_0x11b1c[_0x3eb28b(0x1d1)]()}};_0x159c96['push'](_0x575daf);}return _0x46e4d2[_0x3eb28b(0x3eb)][_0x3eb28b(0x31f)]=_0x354232[_0x3eb28b(0x1d1)](),{'m1Prime':_0x159c96,'m2Prime':_0x46e4d2};}},moveColMutationWithSetSelection={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1cd)]['id'],'handler'(_0x56e301,_0x1dce58){const _0xb75bb6=_0xfc9601,_0x9f6ba8={'m1Prime':[],'m2Prime':[]};if(_0x56e301[_0xb75bb6(0x3eb)][_0xb75bb6(0x1d0)]!==_0x1dce58[_0xb75bb6(0x3eb)][_0xb75bb6(0x1d0)]||_0x56e301[_0xb75bb6(0x3eb)][_0xb75bb6(0x25e)]!==_0x1dce58['params'][_0xb75bb6(0x25e)])return _0x9f6ba8;const _0xd2c7d4=_univerjs_core[_0xb75bb6(0x1c3)][_0xb75bb6(0x1cf)](_0x1dce58);let _0x251605=![];_0xd2c7d4['params']['selections'][_0xb75bb6(0x302)](_0x1fd512=>{const _0x53051d=_0xb75bb6,{range:_0x3ae580,primary:_0x3dc29e}=_0x1fd512,_0x3a6f36=(0x0,_univerjs_sheets[_0x53051d(0x3e5)])({'start':_0x56e301[_0x53051d(0x3eb)][_0x53051d(0x202)][_0x53051d(0x245)],'end':_0x56e301['params'][_0x53051d(0x202)]['endColumn']},{'start':_0x56e301['params']['targetRange']['startColumn'],'end':_0x56e301['params'][_0x53051d(0x38d)]['endColumn']},{'start':_0x3ae580[_0x53051d(0x245)],'end':_0x3ae580[_0x53051d(0x22a)]});if(_0x3a6f36[_0x53051d(0x29d)]||_0x3a6f36[_0x53051d(0x2af)]){_0x3ae580['startColumn']+=_0x3a6f36['step'],_0x3ae580[_0x53051d(0x22a)]+=_0x3a6f36['step']+(_0x3a6f36[_0x53051d(0x29d)]||0x0);if(_0x3dc29e){const _0x958c90=(0x0,_univerjs_sheets[_0x53051d(0x3e5)])({'start':_0x56e301[_0x53051d(0x3eb)][_0x53051d(0x202)]['startColumn'],'end':_0x56e301[_0x53051d(0x3eb)][_0x53051d(0x202)][_0x53051d(0x22a)]},{'start':_0x56e301['params'][_0x53051d(0x38d)][_0x53051d(0x245)],'end':_0x56e301['params'][_0x53051d(0x38d)][_0x53051d(0x22a)]},{'start':_0x3dc29e[_0x53051d(0x245)],'end':_0x3dc29e[_0x53051d(0x22a)]});(_0x958c90[_0x53051d(0x29d)]||_0x958c90['step'])&&(_0x3dc29e[_0x53051d(0x245)]+=_0x958c90[_0x53051d(0x2af)],_0x3dc29e[_0x53051d(0x22a)]+=_0x958c90['step'],_0x3dc29e[_0x53051d(0x235)]+=_0x958c90[_0x53051d(0x2af)]);}_0x251605=!![];}});if(_0x251605)_0x9f6ba8[_0xb75bb6(0x3d9)][_0xb75bb6(0x380)](_0xd2c7d4);return _0x9f6ba8;}},moveColMutationWithSetSheetsFilterCriteria={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x309)]['id'],'handler'(_0x315591,_0x496d6c){const _0x3a3111=_0xfc9601,_0x3e687c={'m1Prime':_0x315591,'m2Prime':_0x496d6c};if(_0x315591[_0x3a3111(0x3eb)]['unitId']!==_0x496d6c[_0x3a3111(0x3eb)][_0x3a3111(0x1d0)]||_0x315591[_0x3a3111(0x3eb)]['subUnitId']!==_0x496d6c[_0x3a3111(0x3eb)][_0x3a3111(0x25e)])return _0x3e687c;const _0x41f708=_univerjs_core['Tools'][_0x3a3111(0x1cf)](_0x315591),_0x51eeee=_univerjs_core[_0x3a3111(0x1c3)][_0x3a3111(0x1cf)](_0x496d6c),_0x41d185=(0x0,_univerjs_sheets[_0x3a3111(0x3e5)])({'start':_0x315591[_0x3a3111(0x3eb)][_0x3a3111(0x202)][_0x3a3111(0x245)],'end':_0x315591[_0x3a3111(0x3eb)][_0x3a3111(0x202)][_0x3a3111(0x22a)]},{'start':_0x315591[_0x3a3111(0x3eb)][_0x3a3111(0x38d)][_0x3a3111(0x245)],'end':_0x315591[_0x3a3111(0x3eb)][_0x3a3111(0x38d)][_0x3a3111(0x22a)]},{'start':_0x496d6c['params'][_0x3a3111(0x3c5)],'end':_0x496d6c[_0x3a3111(0x3eb)][_0x3a3111(0x3c5)]});if(_0x41d185['step']===0x0)return _0x3e687c;_0x51eeee[_0x3a3111(0x3eb)][_0x3a3111(0x3c5)]+=_0x41d185[_0x3a3111(0x2af)];if(_0x51eeee['params'][_0x3a3111(0x3f5)])_0x51eeee[_0x3a3111(0x3eb)][_0x3a3111(0x3f5)][_0x3a3111(0x1bc)]+=_0x41d185[_0x3a3111(0x2af)];const _0x56e573=_univerjs_core[_0x3a3111(0x1c3)][_0x3a3111(0x1cf)](_0x496d6c);return _0x56e573[_0x3a3111(0x3eb)][_0x3a3111(0x3f5)]=null,{'m1Prime':[_0x56e573,_0x51eeee,_0x41f708],'m2Prime':[_0x51eeee]};}},moveColMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_sheets_filter['SetSheetsFilterRangeMutation']['id'],'handler'(_0x2f0936,_0x5e92b4){const _0x4b5b89=_0xfc9601,_0x4f9fee={'m1Prime':[_0x2f0936],'m2Prime':[_0x5e92b4]};if(_0x2f0936[_0x4b5b89(0x3eb)][_0x4b5b89(0x1d0)]!==_0x5e92b4[_0x4b5b89(0x3eb)][_0x4b5b89(0x1d0)]||_0x2f0936[_0x4b5b89(0x3eb)][_0x4b5b89(0x25e)]!==_0x5e92b4[_0x4b5b89(0x3eb)][_0x4b5b89(0x25e)])return _0x4f9fee;const _0x18a9d8=_univerjs_core[_0x4b5b89(0x1c3)][_0x4b5b89(0x1cf)](_0x2f0936),_0x4457d4=_univerjs_core[_0x4b5b89(0x1c3)][_0x4b5b89(0x1cf)](_0x5e92b4),_0x27ed88=(0x0,_univerjs_sheets[_0x4b5b89(0x3e5)])({'start':_0x2f0936[_0x4b5b89(0x3eb)]['sourceRange'][_0x4b5b89(0x245)],'end':_0x2f0936['params']['sourceRange'][_0x4b5b89(0x22a)]},{'start':_0x2f0936[_0x4b5b89(0x3eb)][_0x4b5b89(0x38d)][_0x4b5b89(0x245)],'end':_0x2f0936['params'][_0x4b5b89(0x38d)]['endColumn']},{'start':_0x5e92b4['params'][_0x4b5b89(0x29a)][_0x4b5b89(0x245)],'end':_0x5e92b4[_0x4b5b89(0x3eb)][_0x4b5b89(0x29a)][_0x4b5b89(0x22a)]});return _0x4457d4['params'][_0x4b5b89(0x29a)][_0x4b5b89(0x245)]+=_0x27ed88[_0x4b5b89(0x2af)],_0x4457d4[_0x4b5b89(0x3eb)][_0x4b5b89(0x29a)][_0x4b5b89(0x22a)]+=_0x27ed88[_0x4b5b89(0x2af)]+_0x27ed88['length'],{'m1Prime':[_0x4457d4,_0x18a9d8],'m2Prime':[_0x4457d4]};}},moveColMutationWithSetWorksheetColWidth={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x1f5)]['id'],'handler'(_0x2dc498,_0x3d53f1){const _0x27d4c7=_0xfc9601,_0x24b911={'m1Prime':_0x2dc498,'m2Prime':_0x3d53f1};if(_0x2dc498[_0x27d4c7(0x3eb)][_0x27d4c7(0x1d0)]!==_0x3d53f1['params']['unitId']||_0x2dc498['params'][_0x27d4c7(0x25e)]!==_0x3d53f1[_0x27d4c7(0x3eb)][_0x27d4c7(0x25e)])return _0x24b911;const _0x47a92d=_univerjs_core[_0x27d4c7(0x1c3)][_0x27d4c7(0x1cf)](_0x2dc498),_0x80f319=_univerjs_core[_0x27d4c7(0x1c3)][_0x27d4c7(0x1cf)](_0x3d53f1),{ranges:_0x312057,colWidth:_0x1cb42f}=_0x80f319[_0x27d4c7(0x3eb)],{sourceRange:_0x238d3b,targetRange:_0x411f3f}=_0x2dc498[_0x27d4c7(0x3eb)],_0x1a42d5={'start':_0x238d3b[_0x27d4c7(0x245)],'end':_0x238d3b[_0x27d4c7(0x22a)]},_0x231adc={'start':_0x411f3f[_0x27d4c7(0x245)],'end':_0x411f3f['endColumn']};if(_0x312057[_0x27d4c7(0x3ad)](_0x4ae653=>{const _0x365a5f=_0x27d4c7,_0xfcd341=(0x0,_univerjs_sheets[_0x365a5f(0x3e5)])(_0x1a42d5,_0x231adc,{'start':_0x4ae653['startColumn'],'end':_0x4ae653[_0x365a5f(0x22a)]});if(_0xfcd341[_0x365a5f(0x29d)]!==0x0)return!![];return _0x4ae653[_0x365a5f(0x245)]+=_0xfcd341[_0x365a5f(0x2af)],_0x4ae653['endColumn']+=_0xfcd341[_0x365a5f(0x2af)],![];}))return{'error':new Error('move\x20col\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width')};if(typeof _0x1cb42f!==_0x27d4c7(0x28f))(0x0,_univerjs_core[_0x27d4c7(0x391)])(_0x238d3b['startColumn'],_0x238d3b[_0x27d4c7(0x22a)]-_0x238d3b[_0x27d4c7(0x245)]+0x1,_0x411f3f['startColumn'],_0x1cb42f);return{'m1Prime':_0x47a92d,'m2Prime':_0x80f319};}},moveColsWithUpdateCommentRef={'m1':_univerjs_sheets[_0xfc9601(0x363)]['id'],'m2':_univerjs_thread_comment['UpdateCommentRefMutation']['id'],'handler':(_0x15b8ca,_0x341fbe)=>{const _0x551657=_0xfc9601,_0xb30bb4={'m1Prime':_0x15b8ca,'m2Prime':_0x341fbe};if(_0x15b8ca[_0x551657(0x3eb)][_0x551657(0x1d0)]!==_0x341fbe[_0x551657(0x3eb)][_0x551657(0x1d0)]||_0x15b8ca[_0x551657(0x3eb)][_0x551657(0x25e)]!==_0x341fbe[_0x551657(0x3eb)][_0x551657(0x25e)])return _0xb30bb4;const _0x4b061f=transformUpdateCommentRefWithRefRange(_0x341fbe,{'id':_univerjs_sheets[_0x551657(0x34d)]['id'],'params':{'unitId':_0x15b8ca[_0x551657(0x3eb)][_0x551657(0x1d0)],'subUnitId':_0x15b8ca[_0x551657(0x3eb)][_0x551657(0x25e)],'fromRange':_0x15b8ca['params'][_0x551657(0x202)],'toRange':_0x15b8ca[_0x551657(0x3eb)][_0x551657(0x38d)]}});return{'m1Prime':[_0x15b8ca,..._0x4b061f],'m2Prime':[_0x341fbe,..._0x4b061f]};}},moveConditionalFormattingRuleMutationWithSelf={'m1':_univerjs_sheets_conditional_formatting['MoveConditionalRuleMutation']['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x23e)]['id'],'handler'(_0x4af1a2,_0x2d5618){const _0x42471e=_0xfc9601;if(_0x4af1a2[_0x42471e(0x3eb)][_0x42471e(0x1d0)]!==_0x2d5618[_0x42471e(0x3eb)]['unitId']||_0x4af1a2[_0x42471e(0x3eb)][_0x42471e(0x25e)]!==_0x2d5618[_0x42471e(0x3eb)][_0x42471e(0x25e)])return{'m1Prime':_0x4af1a2,'m2Prime':_0x2d5618};if(_0x4af1a2[_0x42471e(0x3eb)][_0x42471e(0x40e)]['id']===_0x2d5618[_0x42471e(0x3eb)]['start']['id']&&_0x4af1a2[_0x42471e(0x3eb)][_0x42471e(0x3bc)]['id']===_0x2d5618[_0x42471e(0x3eb)][_0x42471e(0x3bc)]['id']&&_0x4af1a2[_0x42471e(0x3eb)][_0x42471e(0x40e)][_0x42471e(0x266)]===_0x2d5618[_0x42471e(0x3eb)]['start'][_0x42471e(0x266)]&&_0x4af1a2[_0x42471e(0x3eb)]['end'][_0x42471e(0x266)]===_0x2d5618[_0x42471e(0x3eb)][_0x42471e(0x3bc)][_0x42471e(0x266)])return{'m1Prime':[],'m2Prime':[]};return{'error':new Error(_0x42471e(0x30e))};}},moveRangeMutationWithAddMerge={'m1':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler'(_0x2d7209,_0x470ec3){const _0x4cf329=_0xfc9601,_0x330f7d=addWorksheetMergeMutationWithMoveRangeMutation[_0x4cf329(0x3f8)](_0x470ec3,_0x2d7209);if(isTransformMutationSuccess(_0x330f7d))return{'m1Prime':_0x330f7d[_0x4cf329(0x3d9)],'m2Prime':_0x330f7d[_0x4cf329(0x39d)]};else return _0x330f7d;}},moveRangeMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'handler'(_0xa90959,_0x3888ce){const _0x3f3594=_0xfc9601,_0x78c8c7={'m1Prime':_0xa90959,'m2Prime':_0x3888ce};if(_0xa90959[_0x3f3594(0x3eb)][_0x3f3594(0x1d0)]!==_0x3888ce['params'][_0x3f3594(0x1d0)])return _0x78c8c7;const _0x303af1=new _univerjs_core[(_0x3f3594(0x3c2))](_0xa90959[_0x3f3594(0x3eb)]['from'][_0x3f3594(0x3e6)])['getDataRange'](),_0x19ce16=new _univerjs_core[(_0x3f3594(0x3c2))](_0x3888ce[_0x3f3594(0x3eb)][_0x3f3594(0x3a4)][_0x3f3594(0x3e6)])[_0x3f3594(0x3d1)](),_0x31647d=new _univerjs_core[(_0x3f3594(0x3c2))](_0xa90959[_0x3f3594(0x3eb)]['to'][_0x3f3594(0x3e6)])[_0x3f3594(0x3d1)](),_0x2ec993=new _univerjs_core['ObjectMatrix'](_0x3888ce['params']['to'][_0x3f3594(0x3e6)])[_0x3f3594(0x3d1)]();if(_0xa90959[_0x3f3594(0x3eb)][_0x3f3594(0x3a4)][_0x3f3594(0x25e)]===_0x3888ce[_0x3f3594(0x3eb)][_0x3f3594(0x3a4)][_0x3f3594(0x25e)]&&_univerjs_core['Rectangle'][_0x3f3594(0x3b4)](_0x303af1,_0x19ce16)||_0xa90959[_0x3f3594(0x3eb)]['to']['subUnitId']===_0x3888ce[_0x3f3594(0x3eb)]['to'][_0x3f3594(0x25e)]&&_univerjs_core[_0x3f3594(0x330)][_0x3f3594(0x3b4)](_0x31647d,_0x2ec993)||_0xa90959[_0x3f3594(0x3eb)][_0x3f3594(0x3a4)][_0x3f3594(0x25e)]===_0x3888ce['params']['to'][_0x3f3594(0x25e)]&&_univerjs_core[_0x3f3594(0x330)][_0x3f3594(0x3b4)](_0x303af1,_0x2ec993)||_0xa90959[_0x3f3594(0x3eb)]['to'][_0x3f3594(0x25e)]===_0x3888ce[_0x3f3594(0x3eb)][_0x3f3594(0x3a4)][_0x3f3594(0x25e)]&&_univerjs_core['Rectangle'][_0x3f3594(0x3b4)](_0x31647d,_0x19ce16))return{'error':new Error('Two\x20move-range\x20mutations\x20have\x20an\x20overlapping\x20range.')};return _0x78c8c7;}},moveRangeMutationWithRemoveNumfmt={'m1':_univerjs_sheets['MoveRangeMutation']['id'],'m2':_univerjs_sheets['RemoveNumfmtMutation']['id'],'handler'(_0x372f23,_0x5e4357){const _0x3bb8be=_0xfc9601,_0x3d64af={'m1Prime':_0x372f23,'m2Prime':_0x5e4357};if(_0x372f23[_0x3bb8be(0x3eb)][_0x3bb8be(0x1d0)]!==_0x5e4357[_0x3bb8be(0x3eb)]['unitId']||_0x372f23[_0x3bb8be(0x3eb)][_0x3bb8be(0x3a4)]['subUnitId']!==_0x5e4357[_0x3bb8be(0x3eb)]['subUnitId']&&_0x372f23[_0x3bb8be(0x3eb)]['to'][_0x3bb8be(0x25e)]!==_0x5e4357[_0x3bb8be(0x3eb)][_0x3bb8be(0x25e)])return _0x3d64af;const _0x1b3990=new _univerjs_core[(_0x3bb8be(0x3c2))](_0x372f23[_0x3bb8be(0x3eb)][_0x3bb8be(0x3a4)][_0x3bb8be(0x3e6)])['getDataRange'](),_0x363bb2=new _univerjs_core[(_0x3bb8be(0x3c2))](_0x372f23[_0x3bb8be(0x3eb)]['to'][_0x3bb8be(0x3e6)])['getDataRange']();if(_0x372f23[_0x3bb8be(0x3eb)][_0x3bb8be(0x3a4)][_0x3bb8be(0x25e)]===_0x5e4357['params'][_0x3bb8be(0x25e)]){if(_0x5e4357[_0x3bb8be(0x3eb)]['ranges'][_0x3bb8be(0x3ad)](_0x117068=>{const _0x205783=_0x3bb8be;return _univerjs_core[_0x205783(0x330)][_0x205783(0x3b4)](_0x117068,_0x1b3990);}))return{'error':new Error(_0x3bb8be(0x31a))};}if(_0x372f23['params']['to'][_0x3bb8be(0x25e)]===_0x5e4357[_0x3bb8be(0x3eb)][_0x3bb8be(0x25e)]){if(_0x5e4357[_0x3bb8be(0x3eb)][_0x3bb8be(0x3a3)][_0x3bb8be(0x3ad)](_0x455308=>{const _0x19efa0=_0x3bb8be;return _univerjs_core[_0x19efa0(0x330)][_0x19efa0(0x3b4)](_0x455308,_0x363bb2);}))return{'error':new Error(_0x3bb8be(0x31a))};}return _0x3d64af;}},moveRangeMutationWithReorderRange={'m1':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1ca)]['id'],'handler'(_0x3648f,_0x3936c1){const _0x2a547d=_0xfc9601,_0x5604c8={'m1Prime':_0x3648f,'m2Prime':_0x3936c1};if(_0x3648f[_0x2a547d(0x3eb)][_0x2a547d(0x1d0)]!==_0x3936c1[_0x2a547d(0x3eb)][_0x2a547d(0x1d0)]||_0x3648f['params'][_0x2a547d(0x3a4)][_0x2a547d(0x25e)]!==_0x3936c1['params'][_0x2a547d(0x25e)]&&_0x3648f[_0x2a547d(0x3eb)]['to'][_0x2a547d(0x25e)]!==_0x3936c1['params']['subUnitId'])return _0x5604c8;if(_0x3648f['params'][_0x2a547d(0x3a4)][_0x2a547d(0x25e)]===_0x3936c1[_0x2a547d(0x3eb)][_0x2a547d(0x25e)]){const _0x23530d=new _univerjs_core[(_0x2a547d(0x3c2))](_0x3648f[_0x2a547d(0x3eb)][_0x2a547d(0x3a4)][_0x2a547d(0x3e6)])[_0x2a547d(0x3d1)]();if(_univerjs_core['Rectangle'][_0x2a547d(0x3b4)](_0x23530d,_0x3936c1['params'][_0x2a547d(0x29a)]))return{'error':new Error(_0x2a547d(0x3fa))};}if(_0x3648f[_0x2a547d(0x3eb)]['to'][_0x2a547d(0x25e)]===_0x3936c1[_0x2a547d(0x3eb)]['subUnitId']){const _0x3b21f6=new _univerjs_core[(_0x2a547d(0x3c2))](_0x3648f['params']['to']['value'])['getDataRange']();if(_univerjs_core[_0x2a547d(0x330)][_0x2a547d(0x3b4)](_0x3b21f6,_0x3936c1[_0x2a547d(0x3eb)]['range']))return{'error':new Error(_0x2a547d(0x3fa))};}return _0x5604c8;}},moveRangeMutationWithSetNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x397)]['id'],'handler'(_0xfae8db,_0x4e1bf8){const _0x59092a=_0xfc9601,_0x53e717={'m1Prime':_0xfae8db,'m2Prime':_0x4e1bf8};if(_0xfae8db[_0x59092a(0x3eb)]['unitId']!==_0x4e1bf8[_0x59092a(0x3eb)][_0x59092a(0x1d0)]||_0xfae8db['params'][_0x59092a(0x3a4)]['subUnitId']!==_0x4e1bf8['params'][_0x59092a(0x25e)]&&_0xfae8db[_0x59092a(0x3eb)]['to'][_0x59092a(0x25e)]!==_0x4e1bf8[_0x59092a(0x3eb)][_0x59092a(0x25e)])return _0x53e717;const _0x27f38d=new _univerjs_core[(_0x59092a(0x3c2))](_0xfae8db[_0x59092a(0x3eb)]['from']['value'])['getDataRange'](),_0x54f648=new _univerjs_core[(_0x59092a(0x3c2))](_0xfae8db[_0x59092a(0x3eb)]['to'][_0x59092a(0x3e6)])[_0x59092a(0x3d1)]();if(_0xfae8db[_0x59092a(0x3eb)]['from'][_0x59092a(0x25e)]===_0x4e1bf8[_0x59092a(0x3eb)][_0x59092a(0x25e)]){const {values:_0x44d8ea}=_0x4e1bf8['params'];for(const _0xe5534a in _0x44d8ea)if(_0x44d8ea[_0xe5534a]['ranges'][_0x59092a(0x3ad)](_0x2d259e=>{const _0x11d28f=_0x59092a;return _univerjs_core[_0x11d28f(0x330)][_0x11d28f(0x3b4)](_0x2d259e,_0x27f38d);}))return{'error':new Error(_0x59092a(0x31a))};}if(_0xfae8db[_0x59092a(0x3eb)]['to'][_0x59092a(0x25e)]===_0x4e1bf8[_0x59092a(0x3eb)]['subUnitId']){const {values:_0x90a4e3}=_0x4e1bf8[_0x59092a(0x3eb)];for(const _0x1c157a in _0x90a4e3)if(_0x90a4e3[_0x1c157a][_0x59092a(0x3a3)][_0x59092a(0x3ad)](_0x54f599=>{const _0xe7cc26=_0x59092a;return _univerjs_core[_0xe7cc26(0x330)][_0xe7cc26(0x3b4)](_0x54f599,_0x54f648);}))return{'error':new Error('move\x20range\x20is\x20conflict\x20with\x20set\x20numfmt')};}return _0x53e717;}},moveRowWithAddComment={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_thread_comment['AddCommentMutation']['id'],'handler':(_0x3af091,_0x122706)=>{const _0x3fa188=_0xfc9601,_0x373193={'m1Prime':_0x3af091,'m2Prime':_0x122706};if(_0x3af091[_0x3fa188(0x3eb)][_0x3fa188(0x1d0)]!==_0x122706[_0x3fa188(0x3eb)][_0x3fa188(0x1d0)]||_0x3af091[_0x3fa188(0x3eb)]['subUnitId']!==_0x122706['params']['subUnitId'])return _0x373193;const _0x357afd=transformAddCommentWithRefRange(_0x122706,{'id':_univerjs_sheets[_0x3fa188(0x3fe)]['id'],'params':{'unitId':_0x3af091['params'][_0x3fa188(0x1d0)],'subUnitId':_0x3af091[_0x3fa188(0x3eb)]['subUnitId'],'fromRange':_0x3af091[_0x3fa188(0x3eb)][_0x3fa188(0x202)],'toRange':_0x3af091[_0x3fa188(0x3eb)]['targetRange']}});return{'m1Prime':[_0x3af091,..._0x357afd],'m2Prime':[_0x122706,..._0x357afd]};}},moveRowMutationWithAddDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x311)]['id'],'handler'(_0x216a0d,_0x65422){const _0x49de33=_0xfc9601,_0x15807f={'m1Prime':_0x216a0d,'m2Prime':_0x65422};if(_0x216a0d[_0x49de33(0x3eb)][_0x49de33(0x1d0)]!==_0x65422[_0x49de33(0x3eb)][_0x49de33(0x1d0)]||_0x216a0d[_0x49de33(0x3eb)]['subUnitId']!==_0x65422['params'][_0x49de33(0x25e)])return _0x15807f;const _0x167dfc=transformAddDataValidationWithRefRange(_0x65422,{'id':_univerjs_sheets['MoveRowsCommand']['id'],'params':{'fromRange':_0x216a0d[_0x49de33(0x3eb)][_0x49de33(0x202)],'toRange':_0x216a0d[_0x49de33(0x3eb)][_0x49de33(0x38d)]}});return{'m1Prime':[_0x216a0d,..._0x167dfc],'m2Prime':[_0x65422,..._0x167dfc]};}},moveRowsMutationWithAddMerge={'m1':_univerjs_sheets['MoveRowsMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler'(_0x325ceb,_0x430639){const _0x359756=_0xfc9601,_0x10a5be=addWorksheetMergeMutationWithMoveRowMutation[_0x359756(0x3f8)](_0x430639,_0x325ceb);if(isTransformMutationSuccess(_0x10a5be))return{'m1Prime':_0x10a5be[_0x359756(0x3d9)],'m2Prime':_0x10a5be['m1Prime']};else return _0x10a5be;}},moveRowMutationWithMoveRange={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler'(_0x5e8258,_0xa7444e){const _0x30a61a=_0xfc9601,_0x422e9f={'m1Prime':_0x5e8258,'m2Prime':_0xa7444e};if(_0x5e8258[_0x30a61a(0x3eb)][_0x30a61a(0x1d0)]!==_0xa7444e['params']['unitId']||_0x5e8258[_0x30a61a(0x3eb)]['subUnitId']!==_0xa7444e[_0x30a61a(0x3eb)][_0x30a61a(0x3a4)][_0x30a61a(0x25e)]&&_0x5e8258[_0x30a61a(0x3eb)][_0x30a61a(0x25e)]!==_0xa7444e[_0x30a61a(0x3eb)]['to'][_0x30a61a(0x25e)])return _0x422e9f;const _0x4c2172=_univerjs_core['Tools'][_0x30a61a(0x1cf)](_0x5e8258),_0x2f0445=_univerjs_core[_0x30a61a(0x1c3)][_0x30a61a(0x1cf)](_0xa7444e),_0x579ec9=_0x5e8258[_0x30a61a(0x3eb)][_0x30a61a(0x202)],_0x8b2399=_0x5e8258[_0x30a61a(0x3eb)]['targetRange'];if(_0x5e8258[_0x30a61a(0x3eb)][_0x30a61a(0x25e)]===_0xa7444e['params'][_0x30a61a(0x3a4)][_0x30a61a(0x25e)]){const _0x59e28c=new _univerjs_core[(_0x30a61a(0x3c2))](_0x2f0445[_0x30a61a(0x3eb)][_0x30a61a(0x3a4)][_0x30a61a(0x3e6)]),_0x22aa1f=_0x59e28c['getDataRange']();if(intersect({'start':_0x579ec9[_0x30a61a(0x357)],'end':_0x579ec9[_0x30a61a(0x3aa)]},{'start':_0x22aa1f['startRow'],'end':_0x22aa1f['endRow']})||intersect({'start':_0x8b2399[_0x30a61a(0x357)],'end':_0x8b2399[_0x30a61a(0x3aa)]},{'start':_0x22aa1f[_0x30a61a(0x357)],'end':_0x22aa1f[_0x30a61a(0x3aa)]}))return{'error':new Error(_0x30a61a(0x294))};const _0xa7e117=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x579ec9['startRow'],'end':_0x579ec9['endRow']},{'start':_0x8b2399[_0x30a61a(0x357)],'end':_0x8b2399[_0x30a61a(0x3aa)]},{'start':_0x22aa1f[_0x30a61a(0x357)],'end':_0x22aa1f['endRow']});if(_0xa7e117[_0x30a61a(0x29d)]!==0x0)return{'error':new Error(_0x30a61a(0x294))};if(_0xa7e117['step']!==0x0)_0x59e28c[_0x30a61a(0x1bb)](_0x579ec9[_0x30a61a(0x357)],_0x579ec9[_0x30a61a(0x3aa)]-_0x579ec9[_0x30a61a(0x357)]+0x1,_0x8b2399[_0x30a61a(0x357)]);_0x2f0445[_0x30a61a(0x3eb)]['from']['value']=_0x59e28c[_0x30a61a(0x1d1)]();}if(_0x5e8258['params']['subUnitId']===_0xa7444e[_0x30a61a(0x3eb)]['to']['subUnitId']){const _0x433189=new _univerjs_core[(_0x30a61a(0x3c2))](_0x2f0445[_0x30a61a(0x3eb)]['to'][_0x30a61a(0x3e6)]),_0xe74153=_0x433189[_0x30a61a(0x3d1)]();if(intersect({'start':_0x579ec9[_0x30a61a(0x357)],'end':_0x579ec9['endRow']},{'start':_0xe74153[_0x30a61a(0x357)],'end':_0xe74153[_0x30a61a(0x3aa)]})||intersect({'start':_0x8b2399[_0x30a61a(0x357)],'end':_0x8b2399[_0x30a61a(0x3aa)]},{'start':_0xe74153[_0x30a61a(0x357)],'end':_0xe74153[_0x30a61a(0x3aa)]}))return{'error':new Error('move\x20row\x20is\x20conflict\x20with\x20move\x20range')};const _0x51ec7e=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x579ec9[_0x30a61a(0x357)],'end':_0x579ec9['endRow']},{'start':_0x8b2399[_0x30a61a(0x357)],'end':_0x8b2399[_0x30a61a(0x3aa)]},{'start':_0xe74153[_0x30a61a(0x357)],'end':_0xe74153[_0x30a61a(0x3aa)]});if(_0x51ec7e[_0x30a61a(0x29d)]!==0x0)return{'error':new Error('move\x20row\x20is\x20conflict\x20with\x20move\x20range')};if(_0x51ec7e['step']!==0x0)_0x433189[_0x30a61a(0x1bb)](_0x579ec9[_0x30a61a(0x357)],_0x579ec9['endRow']-_0x579ec9[_0x30a61a(0x357)]+0x1,_0x8b2399[_0x30a61a(0x357)]);_0x2f0445['params']['to'][_0x30a61a(0x3e6)]=_0x433189[_0x30a61a(0x1d1)]();}return{'m1Prime':_0x4c2172,'m2Prime':_0x2f0445};}},moveRowMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets['MoveRowsMutation']['id'],'handler'(_0x173d13,_0x628fca){const _0x239147=_0xfc9601,_0x265dc3={'m1Prime':_0x173d13,'m2Prime':_0x628fca};if(_0x173d13[_0x239147(0x3eb)][_0x239147(0x1d0)]!==_0x628fca['params'][_0x239147(0x1d0)]||_0x173d13['params'][_0x239147(0x25e)]!==_0x628fca[_0x239147(0x3eb)][_0x239147(0x25e)])return _0x265dc3;const _0x5b4340=_univerjs_core['Tools'][_0x239147(0x1cf)](_0x173d13),_0x5caa1b=_univerjs_core[_0x239147(0x1c3)][_0x239147(0x1cf)](_0x628fca),_0x1f54ee=_0x628fca['params']['sourceRange'],_0xc9c1a1=_0x628fca['params'][_0x239147(0x38d)],_0x3a4c60=_0x173d13['params'][_0x239147(0x202)],_0x4440e0=_0x173d13[_0x239147(0x3eb)][_0x239147(0x38d)];if(_0x3a4c60[_0x239147(0x3aa)]>=_0x1f54ee[_0x239147(0x357)]&&_0x3a4c60[_0x239147(0x357)]<=_0x1f54ee[_0x239147(0x3aa)])return{'error':new Error('move\x20row\x20is\x20conflict\x20with\x20move\x20row')};const _0x1810ce=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x3a4c60[_0x239147(0x357)],'end':_0x3a4c60[_0x239147(0x3aa)]},{'start':_0x4440e0[_0x239147(0x357)],'end':_0x4440e0[_0x239147(0x3aa)]},{'start':_0x1f54ee['startRow'],'end':_0x1f54ee[_0x239147(0x3aa)]}),_0x45b41c=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x3a4c60[_0x239147(0x357)],'end':_0x3a4c60[_0x239147(0x3aa)]},{'start':_0x4440e0[_0x239147(0x357)],'end':_0x4440e0[_0x239147(0x3aa)]},{'start':_0xc9c1a1[_0x239147(0x357)],'end':_0xc9c1a1[_0x239147(0x3aa)]});if(_0x1810ce&&_0x45b41c)_0x5caa1b[_0x239147(0x3eb)][_0x239147(0x202)]['startRow']+=_0x1810ce[_0x239147(0x2af)],_0x5caa1b[_0x239147(0x3eb)][_0x239147(0x202)][_0x239147(0x3aa)]+=_0x1810ce[_0x239147(0x2af)]+(_0x1810ce[_0x239147(0x29d)]||0x0),_0x5caa1b[_0x239147(0x3eb)][_0x239147(0x38d)][_0x239147(0x357)]+=_0x45b41c[_0x239147(0x2af)],_0x5caa1b[_0x239147(0x3eb)][_0x239147(0x38d)]['endRow']+=_0x45b41c[_0x239147(0x2af)]+(_0x45b41c[_0x239147(0x29d)]||0x0);else _0x5caa1b['id']=_univerjs_sheets['EmptyMutation']['id'];const _0x290567=(0x0,_univerjs_sheets[_0x239147(0x3e5)])({'start':_0x1f54ee[_0x239147(0x357)],'end':_0x1f54ee[_0x239147(0x3aa)]},{'start':_0xc9c1a1[_0x239147(0x357)],'end':_0xc9c1a1[_0x239147(0x3aa)]},{'start':_0x3a4c60[_0x239147(0x357)],'end':_0x3a4c60[_0x239147(0x3aa)]}),_0x2980d8=(0x0,_univerjs_sheets[_0x239147(0x3e5)])({'start':_0x1f54ee[_0x239147(0x357)],'end':_0x1f54ee['endRow']},{'start':_0xc9c1a1['startRow'],'end':_0xc9c1a1[_0x239147(0x3aa)]},{'start':_0x4440e0['startRow'],'end':_0x4440e0['endRow']});if(_0x290567&&_0x2980d8)_0x5b4340[_0x239147(0x3eb)][_0x239147(0x202)]['startRow']+=_0x290567[_0x239147(0x2af)],_0x5b4340[_0x239147(0x3eb)][_0x239147(0x202)][_0x239147(0x3aa)]+=_0x290567['step']+(_0x290567['length']||0x0),_0x5b4340[_0x239147(0x3eb)][_0x239147(0x38d)][_0x239147(0x357)]+=_0x2980d8['step'],_0x5b4340[_0x239147(0x3eb)]['targetRange']['endRow']+=_0x2980d8[_0x239147(0x2af)]+(_0x2980d8[_0x239147(0x29d)]||0x0);else _0x5b4340['id']=_univerjs_sheets[_0x239147(0x305)]['id'];return{'m1Prime':_0x5b4340,'m2Prime':_0x5caa1b};}},moveRowMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets['RemoveNumfmtMutation']['id'],'handler'(_0x27c477,_0x512d33){const _0x2e4964=_0xfc9601,_0x2f051a={'m1Prime':_0x27c477,'m2Prime':_0x512d33};if(_0x27c477['params'][_0x2e4964(0x1d0)]!==_0x512d33[_0x2e4964(0x3eb)][_0x2e4964(0x1d0)]||_0x27c477[_0x2e4964(0x3eb)][_0x2e4964(0x25e)]!==_0x512d33[_0x2e4964(0x3eb)][_0x2e4964(0x25e)])return _0x2f051a;const _0x3e4275=_univerjs_core[_0x2e4964(0x1c3)][_0x2e4964(0x1cf)](_0x27c477),_0x3a347d=_univerjs_core[_0x2e4964(0x1c3)]['deepClone'](_0x512d33),{sourceRange:_0x12343b,targetRange:_0x4fa595}=_0x27c477['params'],_0xbb493c={'start':_0x12343b[_0x2e4964(0x357)],'end':_0x12343b[_0x2e4964(0x3aa)]},_0x58b5eb={'start':_0x4fa595[_0x2e4964(0x357)],'end':_0x4fa595[_0x2e4964(0x3aa)]};if(_0x3a347d[_0x2e4964(0x3eb)][_0x2e4964(0x3a3)]['some'](_0x45fc62=>{const _0xe95d44=_0x2e4964,_0x147dd7={'start':_0x45fc62[_0xe95d44(0x357)],'end':_0x45fc62[_0xe95d44(0x3aa)]},_0x5becda=intersect(_0xbb493c,_0x147dd7),_0x2af30b=intersect(_0x58b5eb,_0x147dd7);if(_0x5becda||_0x2af30b)return!![];const _0x3c7722=(0x0,_univerjs_sheets[_0xe95d44(0x3e5)])(_0xbb493c,_0x58b5eb,_0x147dd7);if(_0x3c7722['length']!==0x0)return!![];return _0x45fc62[_0xe95d44(0x357)]+=_0x3c7722[_0xe95d44(0x2af)],_0x45fc62[_0xe95d44(0x3aa)]+=_0x3c7722['step'],![];}))return{'error':new Error(_0x2e4964(0x1f4))};return{'m1Prime':_0x3e4275,'m2Prime':_0x3a347d};}},moveRowMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x374)]['id'],'handler'(_0x50d09b,_0x233e70){const _0x21a61c=_0xfc9601,_0x414f87=_univerjs_core[_0x21a61c(0x1c3)][_0x21a61c(0x1cf)](_0x50d09b),_0x1affe2=_univerjs_core[_0x21a61c(0x1c3)][_0x21a61c(0x1cf)](_0x233e70);if(_0x50d09b['params'][_0x21a61c(0x1d0)]!==_0x233e70[_0x21a61c(0x3eb)][_0x21a61c(0x1d0)]||_0x50d09b[_0x21a61c(0x3eb)][_0x21a61c(0x25e)]!==_0x233e70[_0x21a61c(0x3eb)][_0x21a61c(0x25e)])return{'m1Prime':_0x414f87,'m2Prime':_0x1affe2};const _0x3a50f5=_0x1affe2[_0x21a61c(0x3eb)][_0x21a61c(0x3a3)][_0x21a61c(0x2a5)]((_0x1026b0,_0x4cfa7a)=>{const _0x18f0d0=_0x21a61c,{sourceRange:_0xc5179b,targetRange:_0x356b5a}=_0x50d09b[_0x18f0d0(0x3eb)],_0x277c73={..._0x4cfa7a};if(_0xc5179b[_0x18f0d0(0x3aa)]<_0x277c73['startRow']&&_0x356b5a[_0x18f0d0(0x357)]>_0x277c73[_0x18f0d0(0x3aa)])_0x277c73['startRow']-=_0xc5179b[_0x18f0d0(0x3aa)]-_0xc5179b[_0x18f0d0(0x357)]+0x1,_0x277c73['endRow']-=_0xc5179b[_0x18f0d0(0x3aa)]-_0xc5179b[_0x18f0d0(0x357)]+0x1,isMergeCell(_0x277c73)&&_0x1026b0[_0x18f0d0(0x380)](_0x277c73);else{if(_0xc5179b[_0x18f0d0(0x357)]>_0x277c73['endRow']&&_0x356b5a[_0x18f0d0(0x3aa)]<_0x277c73[_0x18f0d0(0x357)])_0x277c73[_0x18f0d0(0x357)]+=_0xc5179b[_0x18f0d0(0x3aa)]-_0xc5179b['startRow']+0x1,_0x277c73[_0x18f0d0(0x3aa)]+=_0xc5179b[_0x18f0d0(0x3aa)]-_0xc5179b['startRow']+0x1,isMergeCell(_0x277c73)&&_0x1026b0['push'](_0x277c73);else{if(_univerjs_core[_0x18f0d0(0x330)]['intersects'](_0x277c73,_0xc5179b)||_univerjs_core['Rectangle'][_0x18f0d0(0x3b4)](_0x277c73,_0x356b5a)){}else _0x1026b0['push'](_0x277c73);}}return _0x1026b0;},[]);_0x1affe2[_0x21a61c(0x3eb)]['ranges']=_0x3a50f5;if(_0x1affe2[_0x21a61c(0x3eb)][_0x21a61c(0x3a3)]['length']===0x0)_0x1affe2['id']=_univerjs_sheets[_0x21a61c(0x305)]['id'];return{'m1Prime':_0x414f87,'m2Prime':_0x1affe2};}},moveRowMutationWithReorderRange={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1ca)]['id'],'handler'(_0x52993d,_0x1f0889){const _0x5cc92f=_0xfc9601,_0xa0a451={'m1Prime':_0x52993d,'m2Prime':_0x1f0889};if(_0x52993d[_0x5cc92f(0x3eb)][_0x5cc92f(0x1d0)]!==_0x1f0889[_0x5cc92f(0x3eb)][_0x5cc92f(0x1d0)]||_0x52993d[_0x5cc92f(0x3eb)][_0x5cc92f(0x25e)]!==_0x1f0889['params']['subUnitId'])return _0xa0a451;const _0x164e70=orderMapGenerator(_0x52993d['params'][_0x5cc92f(0x202)],_0x52993d['params']['targetRange']),_0x4fe82b=_univerjs_core[_0x5cc92f(0x1c3)][_0x5cc92f(0x1cf)](_0x1f0889),{range:_0x282dfd}=_0x4fe82b[_0x5cc92f(0x3eb)],_0x2e93cd=Array[_0x5cc92f(0x3a4)]({'length':_0x282dfd['endRow']-_0x282dfd[_0x5cc92f(0x357)]+0x1},(_0x13b50d,_0x12f264)=>_0x12f264+_0x282dfd[_0x5cc92f(0x357)]),_0x133a80={},_0x23549a={},_0x527df7=Math[_0x5cc92f(0x1d8)](_0x52993d[_0x5cc92f(0x3eb)][_0x5cc92f(0x202)][_0x5cc92f(0x357)],_0x52993d[_0x5cc92f(0x3eb)][_0x5cc92f(0x38d)]['startRow'],..._0x2e93cd),_0x1ed547=Math['max'](_0x52993d[_0x5cc92f(0x3eb)]['sourceRange'][_0x5cc92f(0x3aa)],_0x52993d[_0x5cc92f(0x3eb)][_0x5cc92f(0x38d)][_0x5cc92f(0x3aa)],..._0x2e93cd);for(let _0x4467e4=_0x527df7;_0x4467e4<=_0x1ed547;_0x4467e4++){var _0x601944;const _0x2cf038=_0x4467e4,_0x1f5588=(_0x601944=_0x1f0889['params'][_0x5cc92f(0x2d8)][_0x4467e4])!==null&&_0x601944!==void 0x0?_0x601944:_0x2cf038,_0x3345d5=_0x164e70(_0x1f5588);if(_0x2cf038!==_0x3345d5)_0x133a80[_0x2cf038]=_0x3345d5;if(_0x1f5588!==_0x3345d5)_0x23549a[_0x1f5588]=_0x3345d5;}_0x4fe82b[_0x5cc92f(0x3eb)]['order']=_0x133a80;const _0x1db158=Object[_0x5cc92f(0x38e)](_0x133a80)[_0x5cc92f(0x3b3)](Number);_0x282dfd['startRow']=Math[_0x5cc92f(0x1d8)](..._0x1db158),_0x282dfd[_0x5cc92f(0x3aa)]=Math[_0x5cc92f(0x2bd)](..._0x1db158);const _0x51ffb7=[_0x52993d],_0x763569=Object[_0x5cc92f(0x38e)](_0x23549a)[_0x5cc92f(0x3b3)](Number);if(_0x763569['length']>0x0)_0x51ffb7[_0x5cc92f(0x398)]({'id':_univerjs_sheets[_0x5cc92f(0x1ca)]['id'],'params':{'unitId':_0x52993d[_0x5cc92f(0x3eb)]['unitId'],'subUnitId':_0x52993d[_0x5cc92f(0x3eb)]['subUnitId'],'range':{'startColumn':_0x1f0889[_0x5cc92f(0x3eb)][_0x5cc92f(0x29a)]['startColumn'],'endColumn':_0x1f0889[_0x5cc92f(0x3eb)]['range']['endColumn'],'startRow':Math['min'](..._0x763569),'endRow':Math['max'](..._0x763569)},'order':_0x23549a}});return{'m1Prime':_0x51ffb7,'m2Prime':_0x4fe82b};}},orderMapGenerator=(_0x3b69ae,_0x380d4b)=>{const _0x18ae61=_0xfc9601,_0x1768c5=_0x3b69ae['endRow']-_0x3b69ae[_0x18ae61(0x357)]+0x1,_0x6b98c5=_0x3b69ae[_0x18ae61(0x357)],_0x3c5352=_0x380d4b['startRow'];return _0x125e76=>{const _0x2e810f=_0x18ae61;if(_0x6b98c5<=_0x3c5352){const _0x1f1588=_0x380d4b[_0x2e810f(0x357)]-_0x3b69ae[_0x2e810f(0x3aa)]-0x1;if(_0x125e76>=_0x3b69ae[_0x2e810f(0x357)]&&_0x125e76<=_0x3b69ae[_0x2e810f(0x3aa)])return _0x125e76+_0x1f1588;else{if(_0x125e76>_0x3b69ae[_0x2e810f(0x3aa)]&&_0x125e76<_0x380d4b[_0x2e810f(0x357)])return _0x125e76-_0x1768c5;}}if(_0x6b98c5>_0x3c5352){const _0x1dc1d3=_0x3b69ae['startRow']-_0x380d4b[_0x2e810f(0x357)];if(_0x125e76>=_0x380d4b[_0x2e810f(0x357)]&&_0x125e76<_0x3b69ae[_0x2e810f(0x357)])return _0x125e76+_0x1768c5;else{if(_0x125e76>=_0x3b69ae[_0x2e810f(0x357)]&&_0x125e76<=_0x3b69ae[_0x2e810f(0x3aa)])return _0x125e76-_0x1dc1d3;}}return _0x125e76;};},moveRowMutationWithSetNumfmt={'m1':_univerjs_sheets['MoveRowsMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x397)]['id'],'handler'(_0x3c1725,_0x2dbd95){const _0x256b30=_0xfc9601,_0x3ef426={'m1Prime':_0x3c1725,'m2Prime':_0x2dbd95};if(_0x3c1725[_0x256b30(0x3eb)][_0x256b30(0x1d0)]!==_0x2dbd95[_0x256b30(0x3eb)]['unitId']||_0x3c1725[_0x256b30(0x3eb)][_0x256b30(0x25e)]!==_0x2dbd95[_0x256b30(0x3eb)]['subUnitId'])return _0x3ef426;const _0x3c2597=[_univerjs_core[_0x256b30(0x1c3)][_0x256b30(0x1cf)](_0x3c1725)],_0x977965=_univerjs_core[_0x256b30(0x1c3)]['deepClone'](_0x2dbd95),{sourceRange:_0x55b2f1,targetRange:_0x79c4af}=_0x3c1725['params'],_0x15d523={'start':_0x55b2f1[_0x256b30(0x357)],'end':_0x55b2f1[_0x256b30(0x3aa)]},_0x1da8a8={'start':_0x79c4af[_0x256b30(0x357)],'end':_0x79c4af[_0x256b30(0x3aa)]},{values:_0x2a512b}=_0x977965[_0x256b30(0x3eb)],_0x788890=[];let _0x3bb091=![];for(const _0xb5c58 in _0x2a512b){const _0x3d30ec=_0x2a512b[_0xb5c58];_0x788890[_0x256b30(0x380)](..._0x3d30ec['ranges']);if(_0x3d30ec['ranges'][_0x256b30(0x3ad)](_0x10798d=>{const _0x27eabe=_0x256b30,_0x22cc0e={'start':_0x10798d['startRow'],'end':_0x10798d[_0x27eabe(0x3aa)]},_0x5d7435=intersect(_0x15d523,_0x22cc0e),_0xc3d1b4=intersect(_0x1da8a8,_0x22cc0e);if(_0x5d7435||_0xc3d1b4)return!![];const _0x50ccdc=(0x0,_univerjs_sheets[_0x27eabe(0x3e5)])(_0x15d523,_0x1da8a8,_0x22cc0e);if(_0x50ccdc[_0x27eabe(0x29d)]!==0x0)return!![];if(_0x50ccdc[_0x27eabe(0x2af)]!==0x0)_0x3bb091=!![];return _0x10798d[_0x27eabe(0x357)]+=_0x50ccdc[_0x27eabe(0x2af)],_0x10798d[_0x27eabe(0x3aa)]+=_0x50ccdc['step'],![];}))return{'error':new Error(_0x256b30(0x3bb))};}if(_0x3bb091){const _0x12bb1b={'id':_univerjs_sheets[_0x256b30(0x2c9)]['id'],'params':{'unitId':_0x2dbd95[_0x256b30(0x3eb)][_0x256b30(0x1d0)],'subUnitId':_0x2dbd95['params'][_0x256b30(0x25e)],'ranges':_0x788890}};_0x3c2597[_0x256b30(0x380)](_0x12bb1b,_0x977965);}return{'m1Prime':_0x3c2597,'m2Prime':_0x977965};}},moveRowMutationWithSetRangeValues={'m1':_univerjs_sheets['MoveRowsMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler'(_0x7b45d,_0x414f58){const _0x1c8a21=_0xfc9601,_0x349472={'m1Prime':_0x7b45d,'m2Prime':_0x414f58};if(_0x7b45d[_0x1c8a21(0x3eb)][_0x1c8a21(0x1d0)]!==_0x414f58[_0x1c8a21(0x3eb)]['unitId']||_0x7b45d[_0x1c8a21(0x3eb)]['subUnitId']!==_0x414f58[_0x1c8a21(0x3eb)][_0x1c8a21(0x25e)])return _0x349472;const _0x15c263=[_univerjs_core['Tools']['deepClone'](_0x7b45d)],_0x1c36ee=_univerjs_core['Tools']['deepClone'](_0x414f58),_0x4ae733=new _univerjs_core[(_0x1c8a21(0x3c2))](_0x1c36ee[_0x1c8a21(0x3eb)][_0x1c8a21(0x31f)]),{sourceRange:_0x261456,targetRange:_0x2aac75}=_0x7b45d[_0x1c8a21(0x3eb)],_0x3f97b1=_0x261456['startRow'],_0x1b7f27=_0x261456[_0x1c8a21(0x3aa)]-_0x261456[_0x1c8a21(0x357)]+0x1,_0x57a4f9=_0x2aac75[_0x1c8a21(0x357)];_0x4ae733[_0x1c8a21(0x1bb)](_0x3f97b1,_0x1b7f27,_0x57a4f9);const _0xa56be4=new _univerjs_core[(_0x1c8a21(0x3c2))]();let _0x1f8575=![];_0x4ae733[_0x1c8a21(0x387)]((_0x1a8038,_0x1f5534,_0xffd1)=>{const _0x398d3d=_0x1c8a21;if(_0xffd1&&_0xffd1['f']){const _0x139267=_0xffd1['f'];let _0x190b0b=![];const _0xf951ae=processFormulaString(_0x7b45d[_0x398d3d(0x3eb)][_0x398d3d(0x1d0)],_0x7b45d[_0x398d3d(0x3eb)][_0x398d3d(0x25e)],_0x139267,_0x5c893b=>{const _0x36f31c=_0x398d3d,_0x26f389=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x7b45d[_0x36f31c(0x3eb)]['sourceRange'][_0x36f31c(0x357)],'end':_0x7b45d[_0x36f31c(0x3eb)][_0x36f31c(0x202)]['endRow']},{'start':_0x7b45d[_0x36f31c(0x3eb)][_0x36f31c(0x38d)]['startRow'],'end':_0x7b45d[_0x36f31c(0x3eb)][_0x36f31c(0x38d)][_0x36f31c(0x3aa)]},{'start':_0x5c893b[_0x36f31c(0x357)],'end':_0x5c893b[_0x36f31c(0x3aa)]});return(_0x26f389['step']!==0x0||_0x26f389[_0x36f31c(0x29d)]!==0x0)&&(_0x190b0b=!![],_0x5c893b[_0x36f31c(0x357)]+=_0x26f389[_0x36f31c(0x2af)],_0x5c893b[_0x36f31c(0x3aa)]+=_0x26f389[_0x36f31c(0x2af)]+_0x26f389[_0x36f31c(0x29d)]),_0x5c893b;});_0x190b0b&&(_0x1f8575=!![],_0xffd1['f']=_0xf951ae,_0xa56be4[_0x398d3d(0x2fe)](_0x1a8038,_0x1f5534,{..._0xffd1}));}});if(_0x1f8575){const _0x3d0087={'id':_univerjs_sheets[_0x1c8a21(0x30f)]['id'],'params':{'unitId':_0x414f58[_0x1c8a21(0x3eb)][_0x1c8a21(0x1d0)],'subUnitId':_0x414f58[_0x1c8a21(0x3eb)][_0x1c8a21(0x25e)],'cellValue':_0xa56be4[_0x1c8a21(0x1d1)]()}};_0x15c263[_0x1c8a21(0x380)](_0x3d0087);}return _0x1c36ee[_0x1c8a21(0x3eb)]['cellValue']=_0x4ae733['getMatrix'](),{'m1Prime':_0x15c263,'m2Prime':_0x1c36ee};}},moveRowMutationWithSetRowData={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x303)]['id'],'handler'(_0x44a92d,_0x525fa3){const _0x21bfb4=_0xfc9601,_0x1736ab={'m1Prime':_0x44a92d,'m2Prime':_0x525fa3};if(_0x44a92d[_0x21bfb4(0x3eb)][_0x21bfb4(0x1d0)]!==_0x525fa3[_0x21bfb4(0x3eb)]['unitId']||_0x44a92d[_0x21bfb4(0x3eb)][_0x21bfb4(0x25e)]!==_0x525fa3[_0x21bfb4(0x3eb)][_0x21bfb4(0x25e)])return _0x1736ab;const _0x2911aa=_univerjs_core[_0x21bfb4(0x1c3)][_0x21bfb4(0x1cf)](_0x44a92d),_0x4c56e6=_univerjs_core[_0x21bfb4(0x1c3)][_0x21bfb4(0x1cf)](_0x525fa3),{rowData:_0x1cac46}=_0x4c56e6[_0x21bfb4(0x3eb)],{sourceRange:_0x49fe22,targetRange:_0x1dc6c3}=_0x44a92d[_0x21bfb4(0x3eb)];return(0x0,_univerjs_core['moveMatrixArray'])(_0x49fe22['startRow'],_0x49fe22['endRow']-_0x49fe22[_0x21bfb4(0x357)]+0x1,_0x1dc6c3['startRow'],_0x1cac46),{'m1Prime':_0x2911aa,'m2Prime':_0x4c56e6};}},moveRowMutationWithSetRowHidden={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x3d8)]['id'],'handler'(_0x2072ca,_0x3629c8){const _0x50ca4=_0xfc9601,_0x293cdc={'m1Prime':_0x2072ca,'m2Prime':_0x3629c8};if(_0x2072ca[_0x50ca4(0x3eb)][_0x50ca4(0x1d0)]!==_0x3629c8[_0x50ca4(0x3eb)][_0x50ca4(0x1d0)]||_0x2072ca['params'][_0x50ca4(0x25e)]!==_0x3629c8['params']['subUnitId'])return _0x293cdc;const _0x572bf7=_univerjs_core[_0x50ca4(0x1c3)][_0x50ca4(0x1cf)](_0x2072ca),_0x5a4448=_univerjs_core[_0x50ca4(0x1c3)][_0x50ca4(0x1cf)](_0x3629c8),{ranges:_0xa77b29}=_0x5a4448['params'],{sourceRange:_0x26b8f9,targetRange:_0x317d71}=_0x2072ca['params'],_0x2192ba={'start':_0x26b8f9[_0x50ca4(0x357)],'end':_0x26b8f9[_0x50ca4(0x3aa)]},_0x42c1eb={'start':_0x317d71[_0x50ca4(0x357)],'end':_0x317d71[_0x50ca4(0x3aa)]};if(_0xa77b29[_0x50ca4(0x3ad)](_0x4584bc=>{const _0x52cb5a=_0x50ca4,_0x23f40c={'start':_0x4584bc[_0x52cb5a(0x357)],'end':_0x4584bc[_0x52cb5a(0x3aa)]},_0x2058a1=intersect(_0x2192ba,_0x23f40c),_0x3f93fe=intersect(_0x42c1eb,_0x23f40c);if(_0x2058a1||_0x3f93fe)return!![];const _0x2be4ff=(0x0,_univerjs_sheets[_0x52cb5a(0x3e5)])(_0x2192ba,_0x42c1eb,_0x23f40c);if(_0x2be4ff['length']!==0x0)return!![];return _0x4584bc[_0x52cb5a(0x357)]+=_0x2be4ff[_0x52cb5a(0x2af)],_0x4584bc[_0x52cb5a(0x3aa)]+=_0x2be4ff[_0x52cb5a(0x2af)],![];}))return{'error':new Error(_0x50ca4(0x36a))};return{'m1Prime':_0x572bf7,'m2Prime':_0x5a4448};}},moveRowMutationWithSetRowVisible={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets['SetRowVisibleMutation']['id'],'handler'(_0x13cbad,_0x4d7b0d){const _0x4eddef=_0xfc9601,_0x4eb6db={'m1Prime':_0x13cbad,'m2Prime':_0x4d7b0d};if(_0x13cbad[_0x4eddef(0x3eb)][_0x4eddef(0x1d0)]!==_0x4d7b0d['params'][_0x4eddef(0x1d0)]||_0x13cbad[_0x4eddef(0x3eb)][_0x4eddef(0x25e)]!==_0x4d7b0d[_0x4eddef(0x3eb)][_0x4eddef(0x25e)])return _0x4eb6db;const _0x4c823b=_univerjs_core[_0x4eddef(0x1c3)][_0x4eddef(0x1cf)](_0x13cbad),_0x1a90a4=_univerjs_core[_0x4eddef(0x1c3)][_0x4eddef(0x1cf)](_0x4d7b0d),{ranges:_0x3a5d1a}=_0x1a90a4[_0x4eddef(0x3eb)],{sourceRange:_0x438ac5,targetRange:_0x53f687}=_0x13cbad['params'],_0x4e63be={'start':_0x438ac5[_0x4eddef(0x357)],'end':_0x438ac5[_0x4eddef(0x3aa)]},_0x5a8a4b={'start':_0x53f687['startRow'],'end':_0x53f687[_0x4eddef(0x3aa)]};if(_0x3a5d1a[_0x4eddef(0x3ad)](_0x2a4c67=>{const _0x503d66=_0x4eddef,_0x295fdd={'start':_0x2a4c67[_0x503d66(0x357)],'end':_0x2a4c67[_0x503d66(0x3aa)]},_0x1e356c=intersect(_0x4e63be,_0x295fdd),_0x396ba7=intersect(_0x5a8a4b,_0x295fdd);if(_0x1e356c||_0x396ba7)return!![];const _0x5831a8=(0x0,_univerjs_sheets[_0x503d66(0x3e5)])(_0x4e63be,_0x5a8a4b,_0x295fdd);if(_0x5831a8['length']!==0x0)return!![];return _0x2a4c67[_0x503d66(0x357)]+=_0x5831a8[_0x503d66(0x2af)],_0x2a4c67['endRow']+=_0x5831a8['step'],![];}))return{'error':new Error('move\x20row\x20is\x20conflict\x20with\x20set\x20row\x20visible')};return{'m1Prime':_0x4c823b,'m2Prime':_0x1a90a4};}},moveRowMutationWithSetSelection={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1cd)]['id'],'handler'(_0x2bffca,_0x439089){const _0x49e2f2=_0xfc9601,_0x54ca3c={'m1Prime':[],'m2Prime':[]};if(_0x2bffca[_0x49e2f2(0x3eb)][_0x49e2f2(0x1d0)]!==_0x439089['params'][_0x49e2f2(0x1d0)]||_0x2bffca[_0x49e2f2(0x3eb)][_0x49e2f2(0x25e)]!==_0x439089['params']['subUnitId'])return _0x54ca3c;const _0x3b06d4=_univerjs_core[_0x49e2f2(0x1c3)][_0x49e2f2(0x1cf)](_0x439089);let _0x348eb7=![];_0x3b06d4['params']['selections'][_0x49e2f2(0x302)](_0x51d2ba=>{const _0x2fe3d3=_0x49e2f2,{range:_0x577c82,primary:_0x1799ad}=_0x51d2ba,_0x238d3e=(0x0,_univerjs_sheets[_0x2fe3d3(0x3e5)])({'start':_0x2bffca[_0x2fe3d3(0x3eb)][_0x2fe3d3(0x202)][_0x2fe3d3(0x357)],'end':_0x2bffca[_0x2fe3d3(0x3eb)][_0x2fe3d3(0x202)][_0x2fe3d3(0x3aa)]},{'start':_0x2bffca[_0x2fe3d3(0x3eb)]['targetRange'][_0x2fe3d3(0x357)],'end':_0x2bffca[_0x2fe3d3(0x3eb)]['targetRange'][_0x2fe3d3(0x3aa)]},{'start':_0x577c82[_0x2fe3d3(0x357)],'end':_0x577c82[_0x2fe3d3(0x3aa)]});if(_0x238d3e[_0x2fe3d3(0x29d)]||_0x238d3e['step']){_0x577c82['startRow']+=_0x238d3e['step'],_0x577c82[_0x2fe3d3(0x3aa)]+=_0x238d3e['step']+(_0x238d3e['length']||0x0);if(_0x1799ad){const _0x17c784=(0x0,_univerjs_sheets[_0x2fe3d3(0x3e5)])({'start':_0x2bffca[_0x2fe3d3(0x3eb)][_0x2fe3d3(0x202)][_0x2fe3d3(0x357)],'end':_0x2bffca[_0x2fe3d3(0x3eb)][_0x2fe3d3(0x202)]['endRow']},{'start':_0x2bffca[_0x2fe3d3(0x3eb)][_0x2fe3d3(0x38d)][_0x2fe3d3(0x357)],'end':_0x2bffca[_0x2fe3d3(0x3eb)]['targetRange'][_0x2fe3d3(0x3aa)]},{'start':_0x1799ad[_0x2fe3d3(0x357)],'end':_0x1799ad['endRow']});(_0x17c784['length']||_0x17c784[_0x2fe3d3(0x2af)])&&(_0x1799ad[_0x2fe3d3(0x357)]+=_0x17c784[_0x2fe3d3(0x2af)],_0x1799ad[_0x2fe3d3(0x3aa)]+=_0x17c784[_0x2fe3d3(0x2af)],_0x1799ad[_0x2fe3d3(0x418)]+=_0x17c784[_0x2fe3d3(0x2af)]);}_0x348eb7=!![];}});if(_0x348eb7)_0x54ca3c[_0x49e2f2(0x3d9)][_0x49e2f2(0x380)](_0x3b06d4);return _0x54ca3c;}},moveRowMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets_filter['SetSheetsFilterRangeMutation']['id'],'handler'(_0x3ed9c0,_0x3540cb){const _0xe3b69=_0xfc9601,_0xf7735d={'m1Prime':[_0x3ed9c0],'m2Prime':[_0x3540cb]};if(_0x3ed9c0[_0xe3b69(0x3eb)][_0xe3b69(0x1d0)]!==_0x3540cb[_0xe3b69(0x3eb)]['unitId']||_0x3ed9c0[_0xe3b69(0x3eb)]['subUnitId']!==_0x3540cb[_0xe3b69(0x3eb)]['subUnitId'])return _0xf7735d;const _0x3a0183=_univerjs_core[_0xe3b69(0x1c3)][_0xe3b69(0x1cf)](_0x3ed9c0),_0x265fbf=_univerjs_core[_0xe3b69(0x1c3)][_0xe3b69(0x1cf)](_0x3540cb),_0xfd8e32=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x3ed9c0[_0xe3b69(0x3eb)][_0xe3b69(0x202)]['startRow'],'end':_0x3ed9c0['params'][_0xe3b69(0x202)]['endRow']},{'start':_0x3ed9c0[_0xe3b69(0x3eb)][_0xe3b69(0x38d)][_0xe3b69(0x357)],'end':_0x3ed9c0[_0xe3b69(0x3eb)]['targetRange']['endRow']},{'start':_0x3540cb[_0xe3b69(0x3eb)][_0xe3b69(0x29a)]['startRow'],'end':_0x3540cb[_0xe3b69(0x3eb)]['range'][_0xe3b69(0x3aa)]});return _0x265fbf['params'][_0xe3b69(0x29a)][_0xe3b69(0x357)]+=_0xfd8e32[_0xe3b69(0x2af)],_0x265fbf[_0xe3b69(0x3eb)][_0xe3b69(0x29a)]['endRow']+=_0xfd8e32['step']+_0xfd8e32[_0xe3b69(0x29d)],{'m1Prime':[_0x265fbf,_0x3a0183],'m2Prime':[_0x265fbf]};}},moveRowMutationWithSetWorksheetRowAutoHeight={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c5)]['id'],'handler'(_0x1b6b5c,_0x1343a9){const _0x2568c9=_0xfc9601,_0x28a975={'m1Prime':_0x1b6b5c,'m2Prime':_0x1343a9};if(_0x1b6b5c[_0x2568c9(0x3eb)]['unitId']!==_0x1343a9['params']['unitId']||_0x1b6b5c['params']['subUnitId']!==_0x1343a9[_0x2568c9(0x3eb)][_0x2568c9(0x25e)])return _0x28a975;const _0x37fca9=_univerjs_core['Tools'][_0x2568c9(0x1cf)](_0x1b6b5c),_0x1958c9=_univerjs_core[_0x2568c9(0x1c3)][_0x2568c9(0x1cf)](_0x1343a9),{rowsAutoHeightInfo:_0x7c8758}=_0x1958c9[_0x2568c9(0x3eb)],{sourceRange:_0x50773c,targetRange:_0x19a85b}=_0x1b6b5c[_0x2568c9(0x3eb)],_0x3e0fa0={'start':_0x50773c['startRow'],'end':_0x50773c['endRow']},_0x42b3cd={'start':_0x19a85b[_0x2568c9(0x357)],'end':_0x19a85b['endRow']};if(_0x7c8758[_0x2568c9(0x3ad)](_0x573776=>{const _0x32fbb0=_0x2568c9,_0x443046=(0x0,_univerjs_sheets[_0x32fbb0(0x3e5)])(_0x3e0fa0,_0x42b3cd,{'start':_0x573776[_0x32fbb0(0x2bb)],'end':_0x573776[_0x32fbb0(0x2bb)]});if(_0x443046[_0x32fbb0(0x29d)]!==0x0)return!![];return _0x573776['row']+=_0x443046[_0x32fbb0(0x2af)],![];}))return{'error':new Error(_0x2568c9(0x27f))};return{'m1Prime':_0x37fca9,'m2Prime':_0x1958c9};}},moveRowMutationWithSetWorksheetRowHeight={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x304)]['id'],'handler'(_0x11f98d,_0x2c8f02){const _0x11e6c3=_0xfc9601,_0x2913e5={'m1Prime':_0x11f98d,'m2Prime':_0x2c8f02};if(_0x11f98d[_0x11e6c3(0x3eb)][_0x11e6c3(0x1d0)]!==_0x2c8f02['params'][_0x11e6c3(0x1d0)]||_0x11f98d['params'][_0x11e6c3(0x25e)]!==_0x2c8f02['params'][_0x11e6c3(0x25e)])return _0x2913e5;const _0x3df278=_univerjs_core[_0x11e6c3(0x1c3)][_0x11e6c3(0x1cf)](_0x11f98d),_0xd72bfc=_univerjs_core['Tools'][_0x11e6c3(0x1cf)](_0x2c8f02),{ranges:_0x501b46,rowHeight:_0x2afcb3}=_0xd72bfc['params'],{sourceRange:_0x5813f6,targetRange:_0x3d6c97}=_0x11f98d[_0x11e6c3(0x3eb)],_0x42ba74={'start':_0x5813f6[_0x11e6c3(0x357)],'end':_0x5813f6[_0x11e6c3(0x3aa)]},_0x20d3a2={'start':_0x3d6c97[_0x11e6c3(0x357)],'end':_0x3d6c97[_0x11e6c3(0x3aa)]};if(_0x501b46[_0x11e6c3(0x3ad)](_0x1b9d55=>{const _0x56f20d=_0x11e6c3,_0xaa3a4d=(0x0,_univerjs_sheets[_0x56f20d(0x3e5)])(_0x42ba74,_0x20d3a2,{'start':_0x1b9d55[_0x56f20d(0x357)],'end':_0x1b9d55[_0x56f20d(0x3aa)]});if(_0xaa3a4d[_0x56f20d(0x29d)]!==0x0)return!![];return _0x1b9d55['startRow']+=_0xaa3a4d[_0x56f20d(0x2af)],_0x1b9d55['endRow']+=_0xaa3a4d['step'],![];}))return{'error':new Error(_0x11e6c3(0x410))};if(typeof _0x2afcb3!=='number')(0x0,_univerjs_core[_0x11e6c3(0x391)])(_0x5813f6[_0x11e6c3(0x357)],_0x5813f6['endRow']-_0x5813f6[_0x11e6c3(0x357)]+0x1,_0x3d6c97[_0x11e6c3(0x357)],_0x2afcb3);return{'m1Prime':_0x3df278,'m2Prime':_0xd72bfc};}},moveRowMutationWithSetWorksheetRowIsAutoHeight={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x37a)]['id'],'handler'(_0x2e0c05,_0x47f2f2){const _0x148a7e=_0xfc9601,_0x1ebe80={'m1Prime':_0x2e0c05,'m2Prime':_0x47f2f2};if(_0x2e0c05['params']['unitId']!==_0x47f2f2['params'][_0x148a7e(0x1d0)]||_0x2e0c05['params']['subUnitId']!==_0x47f2f2[_0x148a7e(0x3eb)][_0x148a7e(0x25e)])return _0x1ebe80;const _0x904b73=_univerjs_core[_0x148a7e(0x1c3)]['deepClone'](_0x2e0c05),_0xeb7997=_univerjs_core[_0x148a7e(0x1c3)]['deepClone'](_0x47f2f2),{ranges:_0x25877e,autoHeightInfo:_0x48ee94}=_0xeb7997[_0x148a7e(0x3eb)],{sourceRange:_0x365c9a,targetRange:_0xbfe7c3}=_0x2e0c05[_0x148a7e(0x3eb)],_0x35de8a={'start':_0x365c9a[_0x148a7e(0x357)],'end':_0x365c9a['endRow']},_0x322dbe={'start':_0xbfe7c3['startRow'],'end':_0xbfe7c3[_0x148a7e(0x3aa)]};if(_0x25877e[_0x148a7e(0x3ad)](_0x20918c=>{const _0x173194=_0x148a7e,_0x4a6e7e=(0x0,_univerjs_sheets[_0x173194(0x3e5)])(_0x35de8a,_0x322dbe,{'start':_0x20918c[_0x173194(0x357)],'end':_0x20918c[_0x173194(0x3aa)]});if(_0x4a6e7e['length']!==0x0)return!![];return _0x20918c[_0x173194(0x357)]+=_0x4a6e7e['step'],_0x20918c['endRow']+=_0x4a6e7e['step'],![];}))return{'error':new Error(_0x148a7e(0x3de))};if(typeof _0x48ee94!==_0x148a7e(0x28f))(0x0,_univerjs_core['moveMatrixArray'])(_0x365c9a[_0x148a7e(0x357)],_0x365c9a[_0x148a7e(0x3aa)]-_0x365c9a[_0x148a7e(0x357)]+0x1,_0xbfe7c3[_0x148a7e(0x357)],_0x48ee94);return{'m1Prime':_0x904b73,'m2Prime':_0xeb7997};}},moveRowsWithUpdateCommentRef={'m1':_univerjs_sheets[_0xfc9601(0x225)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x365)]['id'],'handler':(_0x3d3c91,_0x1be466)=>{const _0x221b06=_0xfc9601,_0x590578={'m1Prime':_0x3d3c91,'m2Prime':_0x1be466};if(_0x3d3c91['params'][_0x221b06(0x1d0)]!==_0x1be466['params'][_0x221b06(0x1d0)]||_0x3d3c91[_0x221b06(0x3eb)][_0x221b06(0x25e)]!==_0x1be466[_0x221b06(0x3eb)]['subUnitId'])return _0x590578;const _0x27d5d5=transformUpdateCommentRefWithRefRange(_0x1be466,{'id':_univerjs_sheets[_0x221b06(0x3fe)]['id'],'params':{'unitId':_0x3d3c91[_0x221b06(0x3eb)][_0x221b06(0x1d0)],'subUnitId':_0x3d3c91[_0x221b06(0x3eb)][_0x221b06(0x25e)],'fromRange':_0x3d3c91[_0x221b06(0x3eb)][_0x221b06(0x202)],'toRange':_0x3d3c91[_0x221b06(0x3eb)][_0x221b06(0x38d)]}});return{'m1Prime':[_0x3d3c91,..._0x27d5d5],'m2Prime':[_0x1be466,..._0x27d5d5]};}},moveRowMutationWithUpdateDataValidation={'m1':_univerjs_sheets['MoveRowsMutation']['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x38441f,_0x2fc458)=>{const _0x1ef05a=_0xfc9601,_0xda0288={'m1Prime':_0x38441f,'m2Prime':_0x2fc458};if(_0x38441f[_0x1ef05a(0x3eb)][_0x1ef05a(0x1d0)]!==_0x2fc458[_0x1ef05a(0x3eb)][_0x1ef05a(0x1d0)]||_0x2fc458['params'][_0x1ef05a(0x25e)]!==_0x38441f[_0x1ef05a(0x3eb)][_0x1ef05a(0x25e)])return _0xda0288;const _0x2d11d5=transformUpdateDataValidationWithRefRange(_0x2fc458,{'id':_univerjs_sheets[_0x1ef05a(0x3fe)]['id'],'params':{'fromRange':_0x38441f[_0x1ef05a(0x3eb)][_0x1ef05a(0x202)],'toRange':_0x38441f[_0x1ef05a(0x3eb)][_0x1ef05a(0x38d)]}});return{'m1Prime':[_0x38441f,..._0x2d11d5],'m2Prime':[_0x2fc458,..._0x2d11d5]};}},removeColWithAddComment={'m1':_univerjs_sheets['RemoveColMutation']['id'],'m2':_univerjs_thread_comment['AddCommentMutation']['id'],'handler':(_0x1c96a0,_0x5de0eb)=>{const _0x57cded=_0xfc9601,_0x2a310c={'m1Prime':_0x1c96a0,'m2Prime':_0x5de0eb};if(_0x1c96a0[_0x57cded(0x3eb)][_0x57cded(0x1d0)]!==_0x5de0eb[_0x57cded(0x3eb)][_0x57cded(0x1d0)]||_0x1c96a0['params']['subUnitId']!==_0x5de0eb[_0x57cded(0x3eb)]['subUnitId'])return _0x2a310c;const _0x48c6ab=transformAddCommentWithRefRange(_0x5de0eb,{'id':_univerjs_sheets['RemoveColCommand']['id'],'params':{'unitId':_0x1c96a0[_0x57cded(0x3eb)][_0x57cded(0x1d0)],'subUnitId':_0x1c96a0['params']['subUnitId'],'range':_0x1c96a0['params'][_0x57cded(0x29a)]}});return{'m1Prime':[_0x1c96a0,..._0x48c6ab],'m2Prime':[_0x5de0eb,..._0x48c6ab]};}},removeColMutationWithAddDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x311)]['id'],'handler'(_0x1ddf55,_0x1b562a){const _0x3f55fc=_0xfc9601,_0x43aa41={'m1Prime':_0x1ddf55,'m2Prime':_0x1b562a};if(_0x1ddf55['params'][_0x3f55fc(0x1d0)]!==_0x1b562a[_0x3f55fc(0x3eb)]['unitId']||_0x1ddf55[_0x3f55fc(0x3eb)][_0x3f55fc(0x25e)]!==_0x1b562a[_0x3f55fc(0x3eb)][_0x3f55fc(0x25e)])return _0x43aa41;const _0x2369d2=transformAddDataValidationWithRefRange(_0x1b562a,{'id':_univerjs_sheets[_0x3f55fc(0x2a9)]['id'],'params':{'range':_0x1ddf55[_0x3f55fc(0x3eb)]['range']}});return{'m1Prime':[_0x1ddf55,..._0x2369d2],'m2Prime':[_0x1b562a,..._0x2369d2]};}},removeColMutationWithAddMerge={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'handler'(_0x43639b,_0x3ced95){const _0x3954c3=_0xfc9601,_0x11ad7c=addWorksheetMergeMutationWithRemoveColMutation['handler'](_0x3ced95,_0x43639b);if(isTransformMutationSuccess(_0x11ad7c))return{'m1Prime':_0x11ad7c['m2Prime'],'m2Prime':_0x11ad7c[_0x3954c3(0x39d)]};else return _0x11ad7c;}},removeColMutationWithMoveCol={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x363)]['id'],'handler'(_0x299062,_0x40a298){const _0x3b73b2=_0xfc9601,_0x1d9e77={'m1Prime':_0x299062,'m2Prime':_0x40a298};if(_0x299062[_0x3b73b2(0x3eb)][_0x3b73b2(0x1d0)]!==_0x40a298[_0x3b73b2(0x3eb)][_0x3b73b2(0x1d0)]||_0x299062['params'][_0x3b73b2(0x25e)]!==_0x40a298[_0x3b73b2(0x3eb)][_0x3b73b2(0x25e)])return _0x1d9e77;const _0x2559d8=_univerjs_core[_0x3b73b2(0x1c3)]['deepClone'](_0x299062),_0x2e5b9f=_univerjs_core[_0x3b73b2(0x1c3)][_0x3b73b2(0x1cf)](_0x40a298);if(_0x299062['params'][_0x3b73b2(0x29a)][_0x3b73b2(0x245)]<=_0x40a298['params'][_0x3b73b2(0x202)][_0x3b73b2(0x22a)]&&_0x299062[_0x3b73b2(0x3eb)][_0x3b73b2(0x29a)][_0x3b73b2(0x22a)]>=_0x40a298['params']['sourceRange'][_0x3b73b2(0x245)]||_0x299062[_0x3b73b2(0x3eb)]['range'][_0x3b73b2(0x245)]<=_0x40a298[_0x3b73b2(0x3eb)][_0x3b73b2(0x38d)][_0x3b73b2(0x22a)]&&_0x299062[_0x3b73b2(0x3eb)]['range'][_0x3b73b2(0x22a)]>=_0x40a298['params'][_0x3b73b2(0x38d)][_0x3b73b2(0x245)])return{'error':new Error(_0x3b73b2(0x27a))};const _0xd8c060=(0x0,_univerjs_sheets[_0x3b73b2(0x40a)])(toColumn(_0x299062['params'][_0x3b73b2(0x29a)]),toColumn(_0x40a298[_0x3b73b2(0x3eb)][_0x3b73b2(0x202)])),_0x2d820e=(0x0,_univerjs_sheets[_0x3b73b2(0x40a)])(toColumn(_0x299062[_0x3b73b2(0x3eb)][_0x3b73b2(0x29a)]),toColumn(_0x40a298[_0x3b73b2(0x3eb)][_0x3b73b2(0x38d)]));if(_0xd8c060&&_0x2d820e)_0x2e5b9f[_0x3b73b2(0x3eb)][_0x3b73b2(0x202)][_0x3b73b2(0x245)]+=_0xd8c060['step'],_0x2e5b9f[_0x3b73b2(0x3eb)][_0x3b73b2(0x202)]['endColumn']+=_0xd8c060[_0x3b73b2(0x2af)]+(_0xd8c060[_0x3b73b2(0x29d)]||0x0),_0x2e5b9f[_0x3b73b2(0x3eb)][_0x3b73b2(0x38d)][_0x3b73b2(0x245)]+=_0x2d820e[_0x3b73b2(0x2af)],_0x2e5b9f['params'][_0x3b73b2(0x38d)][_0x3b73b2(0x22a)]+=_0x2d820e['step']+(_0x2d820e[_0x3b73b2(0x29d)]||0x0);else _0x2e5b9f['id']=_univerjs_sheets[_0x3b73b2(0x305)]['id'];const _0x3ff669=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x40a298[_0x3b73b2(0x3eb)][_0x3b73b2(0x202)][_0x3b73b2(0x245)],'end':_0x40a298[_0x3b73b2(0x3eb)][_0x3b73b2(0x202)][_0x3b73b2(0x22a)]},{'start':_0x40a298[_0x3b73b2(0x3eb)]['targetRange'][_0x3b73b2(0x245)],'end':_0x40a298['params']['targetRange'][_0x3b73b2(0x22a)]},{'start':_0x299062[_0x3b73b2(0x3eb)]['range'][_0x3b73b2(0x245)],'end':_0x299062['params'][_0x3b73b2(0x29a)]['endColumn']});if(_0x3ff669){const {step:_0x286b96,length:_0x4a5aa2}=_0x3ff669;_0x2559d8[_0x3b73b2(0x3eb)][_0x3b73b2(0x29a)][_0x3b73b2(0x245)]+=_0x286b96,_0x2559d8['params'][_0x3b73b2(0x29a)][_0x3b73b2(0x22a)]+=_0x286b96+(_0x4a5aa2||0x0);}else _0x2559d8[_0x3b73b2(0x3eb)]['range'][_0x3b73b2(0x245)]=0x0,_0x2559d8[_0x3b73b2(0x3eb)][_0x3b73b2(0x29a)][_0x3b73b2(0x22a)]=-0x1;return{'m1Prime':_0x2559d8,'m2Prime':_0x2e5b9f};}},removeColMutationWithMoveRange={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler'(_0x13a12a,_0x2ee53a){const _0x52d02d=_0xfc9601,_0x58c890={'m1Prime':_0x13a12a,'m2Prime':_0x2ee53a};if(_0x13a12a['params']['unitId']!==_0x2ee53a[_0x52d02d(0x3eb)][_0x52d02d(0x1d0)]||_0x13a12a[_0x52d02d(0x3eb)][_0x52d02d(0x25e)]!==_0x2ee53a[_0x52d02d(0x3eb)]['from'][_0x52d02d(0x25e)]&&_0x13a12a[_0x52d02d(0x3eb)][_0x52d02d(0x25e)]!==_0x2ee53a['params']['to'][_0x52d02d(0x25e)])return _0x58c890;const _0xa2d6e3=_univerjs_core['Tools']['deepClone'](_0x13a12a),_0x19953e=_univerjs_core['Tools'][_0x52d02d(0x1cf)](_0x2ee53a),{startColumn:_0x55f441,endColumn:_0x5a17e0}=_0x13a12a[_0x52d02d(0x3eb)][_0x52d02d(0x29a)];if(_0x13a12a[_0x52d02d(0x3eb)][_0x52d02d(0x25e)]===_0x2ee53a[_0x52d02d(0x3eb)][_0x52d02d(0x3a4)][_0x52d02d(0x25e)]){const _0x6f4029=new _univerjs_core[(_0x52d02d(0x3c2))](_0x19953e[_0x52d02d(0x3eb)][_0x52d02d(0x3a4)][_0x52d02d(0x3e6)]),{startColumn:_0x3215f5,endColumn:_0x1f396d}=_0x6f4029[_0x52d02d(0x3d1)]();if(_0x3215f5<=_0x5a17e0&&_0x1f396d>=_0x55f441)return{'error':new Error(_0x52d02d(0x340))};if(_0x5a17e0<_0x3215f5)_0x6f4029[_0x52d02d(0x257)](_0x55f441,_0x5a17e0-_0x55f441+0x1);_0x19953e['params'][_0x52d02d(0x3a4)][_0x52d02d(0x3e6)]=_0x6f4029[_0x52d02d(0x1d1)]();}if(_0x13a12a['params'][_0x52d02d(0x25e)]===_0x2ee53a[_0x52d02d(0x3eb)]['to'][_0x52d02d(0x25e)]){const _0x32e4a4=new _univerjs_core[(_0x52d02d(0x3c2))](_0x19953e[_0x52d02d(0x3eb)]['to'][_0x52d02d(0x3e6)]),{startColumn:_0x37783b,endColumn:_0x5e46cc}=_0x32e4a4['getDataRange']();if(_0x37783b<=_0x5a17e0&&_0x5e46cc>=_0x55f441)return{'error':new Error(_0x52d02d(0x340))};if(_0x5a17e0<_0x37783b)_0x32e4a4[_0x52d02d(0x257)](_0x55f441,_0x5a17e0-_0x55f441+0x1);_0x19953e[_0x52d02d(0x3eb)]['to'][_0x52d02d(0x3e6)]=_0x32e4a4[_0x52d02d(0x1d1)]();}return{'m1Prime':_0xa2d6e3,'m2Prime':_0x19953e};}},removeColMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'handler'(_0x7fe125,_0x1b4bba){const _0x3c43cd=_0xfc9601,_0x4a9c10={'m1Prime':_0x7fe125,'m2Prime':_0x1b4bba};if(_0x7fe125[_0x3c43cd(0x3eb)][_0x3c43cd(0x1d0)]!==_0x1b4bba[_0x3c43cd(0x3eb)][_0x3c43cd(0x1d0)]||_0x7fe125[_0x3c43cd(0x3eb)][_0x3c43cd(0x25e)]!==_0x1b4bba[_0x3c43cd(0x3eb)][_0x3c43cd(0x25e)])return _0x4a9c10;const _0x431274=_univerjs_core[_0x3c43cd(0x1c3)][_0x3c43cd(0x1cf)](_0x7fe125),_0x16b0b3=_univerjs_core[_0x3c43cd(0x1c3)][_0x3c43cd(0x1cf)](_0x1b4bba),_0x332696=(0x0,_univerjs_sheets[_0x3c43cd(0x40a)])(_0x7fe125[_0x3c43cd(0x3eb)][_0x3c43cd(0x29a)],_0x1b4bba[_0x3c43cd(0x3eb)]['range']);if(_0x332696){const {step:_0x4a237f,length:_0x49f2be}=_0x332696;_0x16b0b3['params'][_0x3c43cd(0x29a)][_0x3c43cd(0x245)]+=_0x4a237f,_0x16b0b3[_0x3c43cd(0x3eb)][_0x3c43cd(0x29a)][_0x3c43cd(0x22a)]+=_0x4a237f+(_0x49f2be||0x0);}else _0x16b0b3['id']=_univerjs_sheets[_0x3c43cd(0x305)]['id'];const _0x15f72a=(0x0,_univerjs_sheets[_0x3c43cd(0x40a)])(_0x1b4bba['params']['range'],_0x7fe125[_0x3c43cd(0x3eb)]['range']);if(_0x15f72a){const {step:_0x4c3755,length:_0xb0ca5}=_0x15f72a;_0x431274[_0x3c43cd(0x3eb)][_0x3c43cd(0x29a)][_0x3c43cd(0x245)]+=_0x4c3755,_0x431274[_0x3c43cd(0x3eb)][_0x3c43cd(0x29a)][_0x3c43cd(0x22a)]+=_0x4c3755+(_0xb0ca5||0x0);}else _0x431274['id']=_univerjs_sheets[_0x3c43cd(0x305)]['id'];return{'m1Prime':_0x431274,'m2Prime':_0x16b0b3};}},removeColMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'handler'(_0x4f93f6,_0x40765b){const _0x561fca=_0xfc9601,_0x61a127={'m1Prime':_0x4f93f6,'m2Prime':_0x40765b};if(_0x4f93f6[_0x561fca(0x3eb)][_0x561fca(0x1d0)]!==_0x40765b['params'][_0x561fca(0x1d0)]||_0x4f93f6[_0x561fca(0x3eb)]['subUnitId']!==_0x40765b[_0x561fca(0x3eb)][_0x561fca(0x25e)])return _0x61a127;const _0x72b7f4=_univerjs_core['Tools'][_0x561fca(0x1cf)](_0x4f93f6),_0x15c690=_univerjs_core[_0x561fca(0x1c3)][_0x561fca(0x1cf)](_0x40765b),{ranges:_0x35de4a}=_0x15c690[_0x561fca(0x3eb)];if(_0x35de4a[_0x561fca(0x3ad)](_0x2b2dba=>{const _0x3b0fb7=_0x561fca,_0x48277f=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn(_0x4f93f6['params'][_0x3b0fb7(0x29a)]),toColumn(_0x2b2dba));if(_0x48277f===null||_0x48277f[_0x3b0fb7(0x29d)]!==0x0)return!![];return _0x2b2dba[_0x3b0fb7(0x245)]+=_0x48277f[_0x3b0fb7(0x2af)],_0x2b2dba['endColumn']+=_0x48277f[_0x3b0fb7(0x2af)],![];}))return{'error':new Error(_0x561fca(0x413))};return{'m1Prime':_0x72b7f4,'m2Prime':_0x15c690};}},removeColMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x374)]['id'],'handler'(_0x973156,_0x4c88ab){const _0x379ca4=_0xfc9601,_0x2e2fb7=_univerjs_core[_0x379ca4(0x1c3)][_0x379ca4(0x1cf)](_0x973156),_0x3162f1=_univerjs_core['Tools'][_0x379ca4(0x1cf)](_0x4c88ab);if(_0x973156['params'][_0x379ca4(0x1d0)]!==_0x4c88ab['params'][_0x379ca4(0x1d0)]||_0x973156['params'][_0x379ca4(0x25e)]!==_0x4c88ab[_0x379ca4(0x3eb)][_0x379ca4(0x25e)])return{'m1Prime':_0x2e2fb7,'m2Prime':_0x3162f1};const _0x3f2a36=_0x3162f1[_0x379ca4(0x3eb)][_0x379ca4(0x3a3)][_0x379ca4(0x2a5)]((_0x28a82a,_0x2cad26)=>{const _0x3bc801=_0x379ca4,_0x25d21e=_0x2e2fb7[_0x3bc801(0x3eb)][_0x3bc801(0x29a)],_0xf13388=_0x25d21e[_0x3bc801(0x22a)]-_0x25d21e['startColumn']+0x1;let _0x3ea7ef={..._0x2cad26};if(_0x25d21e[_0x3bc801(0x245)]>_0x2cad26[_0x3bc801(0x22a)])_0x3ea7ef={..._0x2cad26};else{if(_0x25d21e[_0x3bc801(0x245)]>=_0x2cad26[_0x3bc801(0x245)]&&_0x25d21e[_0x3bc801(0x245)]<=_0x2cad26[_0x3bc801(0x22a)]&&_0x25d21e[_0x3bc801(0x22a)]>_0x2cad26[_0x3bc801(0x22a)]){_0x3ea7ef[_0x3bc801(0x22a)]=_0x25d21e[_0x3bc801(0x245)]-0x1;if(_0x25d21e[_0x3bc801(0x245)]===_0x2cad26['startColumn'])_0x3ea7ef=null;}else{if(_0x25d21e[_0x3bc801(0x245)]>_0x2cad26[_0x3bc801(0x245)]&&_0x25d21e['endColumn']<_0x2cad26[_0x3bc801(0x22a)])_0x3ea7ef[_0x3bc801(0x22a)]=_0x2cad26[_0x3bc801(0x22a)]-_0xf13388;else{if(_0x25d21e[_0x3bc801(0x245)]<_0x2cad26[_0x3bc801(0x245)]&&_0x25d21e[_0x3bc801(0x22a)]>=_0x2cad26[_0x3bc801(0x245)]&&_0x25d21e['endColumn']<=_0x2cad26[_0x3bc801(0x22a)]){_0x3ea7ef[_0x3bc801(0x245)]=_0x25d21e['startColumn'],_0x3ea7ef[_0x3bc801(0x22a)]=_0x2cad26[_0x3bc801(0x22a)]-_0xf13388;if(_0x25d21e['endColumn']===_0x2cad26['endColumn'])_0x3ea7ef=null;}else{if(_0x25d21e[_0x3bc801(0x245)]<=_0x2cad26[_0x3bc801(0x245)]&&_0x25d21e[_0x3bc801(0x22a)]>=_0x2cad26[_0x3bc801(0x22a)])_0x3ea7ef=null;else _0x25d21e[_0x3bc801(0x22a)]<_0x2cad26[_0x3bc801(0x245)]&&(_0x3ea7ef['startColumn']=_0x2cad26['startColumn']-_0xf13388,_0x3ea7ef['endColumn']=_0x2cad26['endColumn']-_0xf13388);}}}}if(_0x3ea7ef&&!(_0x3ea7ef['startRow']===_0x3ea7ef[_0x3bc801(0x3aa)]&&_0x3ea7ef[_0x3bc801(0x245)]===_0x3ea7ef[_0x3bc801(0x22a)]))return _0x28a82a['push'](_0x3ea7ef),_0x28a82a;else return _0x28a82a;},[]);return _0x3162f1[_0x379ca4(0x3eb)]['ranges']=_0x3f2a36,{'m1Prime':_0x2e2fb7,'m2Prime':_0x3162f1};}},removeColMutationWithReorderRange={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets['ReorderRangeMutation']['id'],'handler'(_0x5ed8ad,_0x5db59e){const _0x35cc62=_0xfc9601,_0x24e154={'m1Prime':_0x5ed8ad,'m2Prime':_0x5db59e};if(_0x5ed8ad[_0x35cc62(0x3eb)][_0x35cc62(0x1d0)]!==_0x5db59e['params']['unitId']||_0x5ed8ad[_0x35cc62(0x3eb)][_0x35cc62(0x25e)]!==_0x5db59e[_0x35cc62(0x3eb)][_0x35cc62(0x25e)])return _0x24e154;const _0x126da7=(0x0,_univerjs_sheets[_0x35cc62(0x40a)])(toColumn(_0x5ed8ad['params'][_0x35cc62(0x29a)]),toColumn(_0x5db59e[_0x35cc62(0x3eb)]['range']));if(!_0x126da7)return{'m1Prime':_0x5ed8ad,'m2Prime':[]};const _0x534e6c=_univerjs_core['Tools'][_0x35cc62(0x1cf)](_0x5db59e);return _0x534e6c[_0x35cc62(0x3eb)]['range'][_0x35cc62(0x245)]+=_0x126da7['step'],_0x534e6c[_0x35cc62(0x3eb)][_0x35cc62(0x29a)]['endColumn']+=_0x126da7['step']+(_0x126da7['length']||0x0),{'m1Prime':_0x5ed8ad,'m2Prime':_0x534e6c};}},removeColMutationWithSetColData={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x348)]['id'],'handler'(_0x3b3220,_0x2ad64f){const _0xf1e01b=_0xfc9601,_0x459419={'m1Prime':_0x3b3220,'m2Prime':_0x2ad64f};if(_0x3b3220[_0xf1e01b(0x3eb)]['unitId']!==_0x2ad64f[_0xf1e01b(0x3eb)][_0xf1e01b(0x1d0)]||_0x3b3220[_0xf1e01b(0x3eb)][_0xf1e01b(0x25e)]!==_0x2ad64f[_0xf1e01b(0x3eb)]['subUnitId'])return _0x459419;const _0x331ea1=_univerjs_core[_0xf1e01b(0x1c3)][_0xf1e01b(0x1cf)](_0x3b3220),_0x542b23=_univerjs_core['Tools'][_0xf1e01b(0x1cf)](_0x2ad64f),{columnData:_0x1b49d1}=_0x542b23[_0xf1e01b(0x3eb)];return(0x0,_univerjs_core[_0xf1e01b(0x382)])(_0x3b3220[_0xf1e01b(0x3eb)]['range']['startColumn'],_0x3b3220[_0xf1e01b(0x3eb)][_0xf1e01b(0x29a)][_0xf1e01b(0x22a)]-_0x3b3220[_0xf1e01b(0x3eb)]['range'][_0xf1e01b(0x245)]+0x1,_0x1b49d1),{'m1Prime':_0x331ea1,'m2Prime':_0x542b23};}},removeColMutationWithSetColHidden={'m1':_univerjs_sheets['RemoveColMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x39c)]['id'],'handler'(_0x1819a7,_0x1b164a){const _0x1df779=_0xfc9601,_0x2b4b6e={'m1Prime':_0x1819a7,'m2Prime':_0x1b164a};if(_0x1819a7[_0x1df779(0x3eb)][_0x1df779(0x1d0)]!==_0x1b164a[_0x1df779(0x3eb)]['unitId']||_0x1819a7[_0x1df779(0x3eb)]['subUnitId']!==_0x1b164a[_0x1df779(0x3eb)][_0x1df779(0x25e)])return _0x2b4b6e;const _0x4d2213=_univerjs_core[_0x1df779(0x1c3)]['deepClone'](_0x1819a7),_0x3256ab=_univerjs_core[_0x1df779(0x1c3)][_0x1df779(0x1cf)](_0x1b164a),{ranges:_0x3df6c6}=_0x3256ab[_0x1df779(0x3eb)];return _0x3df6c6[_0x1df779(0x302)](_0x23d2a9=>{const _0x56ec2b=_0x1df779,_0x3c2a4e=(0x0,_univerjs_sheets[_0x56ec2b(0x40a)])(toColumn(_0x1819a7[_0x56ec2b(0x3eb)][_0x56ec2b(0x29a)]),_0x23d2a9);if(_0x3c2a4e==null)_0x3256ab['id']=_univerjs_sheets[_0x56ec2b(0x305)]['id'];else _0x23d2a9[_0x56ec2b(0x245)]+=_0x3c2a4e['step'],_0x23d2a9[_0x56ec2b(0x22a)]+=_0x3c2a4e['step']+_0x3c2a4e['length'];}),{'m1Prime':_0x4d2213,'m2Prime':_0x3256ab};}},removeColMutationWithSetColVisible={'m1':_univerjs_sheets['RemoveColMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c7)]['id'],'handler'(_0x525b57,_0x15c106){const _0x20b48e=_0xfc9601,_0xcaadef={'m1Prime':_0x525b57,'m2Prime':_0x15c106};if(_0x525b57['params'][_0x20b48e(0x1d0)]!==_0x15c106['params'][_0x20b48e(0x1d0)]||_0x525b57['params'][_0x20b48e(0x25e)]!==_0x15c106[_0x20b48e(0x3eb)][_0x20b48e(0x25e)])return _0xcaadef;const _0x24bf93=_univerjs_core[_0x20b48e(0x1c3)]['deepClone'](_0x525b57),_0x37878a=_univerjs_core['Tools']['deepClone'](_0x15c106),{ranges:_0x21916a}=_0x37878a['params'];return _0x21916a[_0x20b48e(0x302)](_0x47a3da=>{const _0x168c9a=_0x20b48e,_0x2faf67=(0x0,_univerjs_sheets[_0x168c9a(0x40a)])(toColumn(_0x525b57['params'][_0x168c9a(0x29a)]),_0x47a3da);if(_0x2faf67==null)_0x37878a['id']=_univerjs_sheets['EmptyMutation']['id'];else _0x47a3da['startColumn']+=_0x2faf67[_0x168c9a(0x2af)],_0x47a3da[_0x168c9a(0x22a)]+=_0x2faf67[_0x168c9a(0x2af)]+_0x2faf67['length'];}),{'m1Prime':_0x24bf93,'m2Prime':_0x37878a};}},removeColMutationWithSetNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets['SetNumfmtMutation']['id'],'handler'(_0x2d75e4,_0x51bbf6){const _0x2f961c=_0xfc9601,_0x379c73={'m1Prime':_0x2d75e4,'m2Prime':_0x51bbf6};if(_0x2d75e4[_0x2f961c(0x3eb)][_0x2f961c(0x1d0)]!==_0x51bbf6[_0x2f961c(0x3eb)]['unitId']||_0x2d75e4[_0x2f961c(0x3eb)][_0x2f961c(0x25e)]!==_0x51bbf6['params']['subUnitId'])return _0x379c73;const _0x56582c=[_univerjs_core[_0x2f961c(0x1c3)][_0x2f961c(0x1cf)](_0x2d75e4)],_0x42f459=_univerjs_core[_0x2f961c(0x1c3)][_0x2f961c(0x1cf)](_0x51bbf6),{values:_0x1fa9fe}=_0x42f459[_0x2f961c(0x3eb)],_0x473387=[];let _0x1c1f2e=![];for(const _0x56b03a in _0x1fa9fe){const _0x2da0ed=_0x1fa9fe[_0x56b03a];_0x473387[_0x2f961c(0x380)](..._0x2da0ed[_0x2f961c(0x3a3)]);if(_0x2da0ed[_0x2f961c(0x3a3)][_0x2f961c(0x3ad)](_0x9cef87=>{const _0x1f2d32=_0x2f961c,_0x1fdfe5=(0x0,_univerjs_sheets[_0x1f2d32(0x40a)])(toColumn(_0x2d75e4[_0x1f2d32(0x3eb)][_0x1f2d32(0x29a)]),toColumn(_0x9cef87));if(_0x1fdfe5==null||_0x1fdfe5[_0x1f2d32(0x29d)]!==0x0)return!![];if(_0x1fdfe5[_0x1f2d32(0x2af)]!==0x0)_0x1c1f2e=!![];return _0x9cef87['startColumn']+=_0x1fdfe5[_0x1f2d32(0x2af)],_0x9cef87[_0x1f2d32(0x22a)]+=_0x1fdfe5[_0x1f2d32(0x2af)],![];}))return{'error':new Error('remove\x20col\x20is\x20conflict\x20with\x20set\x20numfmt')};}if(_0x1c1f2e){const _0x2cc8b4={'id':_univerjs_sheets[_0x2f961c(0x2c9)]['id'],'params':{'unitId':_0x51bbf6[_0x2f961c(0x3eb)][_0x2f961c(0x1d0)],'subUnitId':_0x51bbf6[_0x2f961c(0x3eb)][_0x2f961c(0x25e)],'ranges':_0x473387}};_0x56582c[_0x2f961c(0x380)](_0x2cc8b4,_0x42f459);}return{'m1Prime':_0x56582c,'m2Prime':_0x42f459};}},removeColMutationWithSetRangeValues={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler'(_0x5c5e8e,_0x46f6b2){const _0x4ff240=_0xfc9601,_0x14dc25={'m1Prime':_0x5c5e8e,'m2Prime':_0x46f6b2};if(_0x5c5e8e[_0x4ff240(0x3eb)][_0x4ff240(0x1d0)]!==_0x46f6b2['params']['unitId']||_0x5c5e8e['params'][_0x4ff240(0x25e)]!==_0x46f6b2[_0x4ff240(0x3eb)][_0x4ff240(0x25e)])return _0x14dc25;const _0x183d2b=[_univerjs_core['Tools'][_0x4ff240(0x1cf)](_0x5c5e8e)],_0xf6f02e=_univerjs_core['Tools'][_0x4ff240(0x1cf)](_0x46f6b2),_0x21e62c=new _univerjs_core[(_0x4ff240(0x3c2))](_0xf6f02e['params'][_0x4ff240(0x31f)]),_0x341587=_0x21e62c['getDataRange'](),_0x1314f6=_0x5c5e8e[_0x4ff240(0x3eb)][_0x4ff240(0x29a)],_0x22ad50=_0x1314f6[_0x4ff240(0x22a)]-_0x1314f6[_0x4ff240(0x245)]+0x1;if(_0xf6f02e['params']['cellValue']&&_0x1314f6['endColumn']<_0x341587[_0x4ff240(0x245)])moveColumns(_0xf6f02e['params']['cellValue'],_0x341587[_0x4ff240(0x245)],_0x341587[_0x4ff240(0x22a)]-_0x341587['startColumn']+0x1,-_0x22ad50);else{if(_0x1314f6[_0x4ff240(0x245)]<=_0x341587[_0x4ff240(0x22a)])return{'error':new Error(_0x4ff240(0x37d))};}const _0x1ee485=new _univerjs_core[(_0x4ff240(0x3c2))]();let _0x26819d=![],_0x58efd4=![];_0x21e62c[_0x4ff240(0x387)]((_0x2bed9e,_0x98a31e,_0x23607a)=>{const _0x352c22=_0x4ff240;if(_0x23607a&&_0x23607a['f']){const _0x43eac7=_0x23607a['f'];let _0x351568=![];const _0x3abe1d=processFormulaString(_0x5c5e8e[_0x352c22(0x3eb)][_0x352c22(0x1d0)],_0x5c5e8e[_0x352c22(0x3eb)][_0x352c22(0x25e)],_0x43eac7,_0x486f45=>{const _0x38ce50=_0x352c22,_0xffc89d=(0x0,_univerjs_sheets[_0x38ce50(0x40a)])(toColumn(_0x5c5e8e[_0x38ce50(0x3eb)]['range']),toColumn(_0x486f45));if(_0xffc89d===null)return _0x26819d=!![],_0x486f45;return(_0xffc89d[_0x38ce50(0x2af)]!==0x0||_0xffc89d[_0x38ce50(0x29d)]!==0x0)&&(_0x351568=!![],_0x486f45[_0x38ce50(0x245)]+=_0xffc89d[_0x38ce50(0x2af)],_0x486f45['endColumn']+=_0xffc89d[_0x38ce50(0x2af)]+_0xffc89d[_0x38ce50(0x29d)]),_0x486f45;});_0x351568&&(_0x58efd4=!![],_0x23607a['f']=_0x3abe1d,_0x1ee485[_0x352c22(0x2fe)](_0x2bed9e,_0x98a31e,{..._0x23607a}));}});if(_0x26819d)return{'error':new Error(_0x4ff240(0x417))};if(_0x58efd4){const _0x1a5c50={'id':_univerjs_sheets[_0x4ff240(0x30f)]['id'],'params':{'unitId':_0x46f6b2[_0x4ff240(0x3eb)][_0x4ff240(0x1d0)],'subUnitId':_0x46f6b2['params'][_0x4ff240(0x25e)],'cellValue':_0x1ee485['getMatrix']()}};_0x183d2b[_0x4ff240(0x380)](_0x1a5c50);}return{'m1Prime':_0x183d2b,'m2Prime':_0xf6f02e};}},removeColMutationWithSetSelection={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets['SetSelectionsOperation']['id'],'handler'(_0xb9f6e9,_0x27aa14){const _0x2b14ce=_0xfc9601,_0x112d77={'m1Prime':[],'m2Prime':[]};if(_0xb9f6e9[_0x2b14ce(0x3eb)][_0x2b14ce(0x1d0)]!==_0x27aa14[_0x2b14ce(0x3eb)][_0x2b14ce(0x1d0)]||_0xb9f6e9[_0x2b14ce(0x3eb)]['subUnitId']!==_0x27aa14[_0x2b14ce(0x3eb)]['subUnitId'])return _0x112d77;const _0x173efd=_univerjs_core['Tools'][_0x2b14ce(0x1cf)](_0x27aa14);let _0x3302a6=![];_0x173efd[_0x2b14ce(0x3eb)]['selections'][_0x2b14ce(0x302)](_0x2dec01=>{const _0x32f89b=_0x2b14ce,{range:_0x55b6f7,primary:_0x30492c}=_0x2dec01,_0x4a9663=(0x0,_univerjs_sheets[_0x32f89b(0x40a)])(toColumn(_0xb9f6e9[_0x32f89b(0x3eb)][_0x32f89b(0x29a)]),toColumn(_0x55b6f7));if(_0x4a9663==null)return;if(_0x4a9663[_0x32f89b(0x29d)]||_0x4a9663[_0x32f89b(0x2af)]){_0x55b6f7['startColumn']+=_0x4a9663['step'],_0x55b6f7[_0x32f89b(0x22a)]+=_0x4a9663[_0x32f89b(0x2af)]+(_0x4a9663[_0x32f89b(0x29d)]||0x0);if(_0x30492c){const _0x459705=(0x0,_univerjs_sheets[_0x32f89b(0x40a)])(toColumn(_0xb9f6e9[_0x32f89b(0x3eb)][_0x32f89b(0x29a)]),toColumn(_0x30492c));if(_0x459705==null){_0x30492c[_0x32f89b(0x245)]=_0x55b6f7['startColumn'],_0x30492c[_0x32f89b(0x22a)]=_0x55b6f7[_0x32f89b(0x245)],_0x30492c[_0x32f89b(0x235)]=_0x55b6f7[_0x32f89b(0x245)];return;}(_0x459705[_0x32f89b(0x29d)]||_0x459705['step'])&&(_0x30492c[_0x32f89b(0x245)]+=_0x459705[_0x32f89b(0x2af)],_0x30492c['endColumn']+=_0x459705[_0x32f89b(0x2af)],_0x30492c['actualColumn']+=_0x459705[_0x32f89b(0x2af)]);}_0x3302a6=!![];}});if(_0x3302a6)_0x112d77[_0x2b14ce(0x3d9)]['push'](_0x173efd);return _0x112d77;}},removeColMutationWithSetSheetsFilterCriteria={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets_filter['SetSheetsFilterCriteriaMutation']['id'],'handler'(_0x381420,_0x527700){const _0x58327f=_0xfc9601,_0x190562={'m1Prime':_0x381420,'m2Prime':_0x527700};if(_0x381420[_0x58327f(0x3eb)]['unitId']!==_0x527700[_0x58327f(0x3eb)][_0x58327f(0x1d0)]||_0x381420[_0x58327f(0x3eb)][_0x58327f(0x25e)]!==_0x527700[_0x58327f(0x3eb)][_0x58327f(0x25e)])return _0x190562;const _0x1f6a8a=_univerjs_core[_0x58327f(0x1c3)][_0x58327f(0x1cf)](_0x381420),_0x3ee782=_univerjs_core['Tools'][_0x58327f(0x1cf)](_0x527700),_0x5643e0=handleRemove({'start':_0x381420[_0x58327f(0x3eb)][_0x58327f(0x29a)]['startColumn'],'end':_0x381420[_0x58327f(0x3eb)][_0x58327f(0x29a)]['endColumn']},{'start':_0x527700[_0x58327f(0x3eb)][_0x58327f(0x3c5)],'end':_0x527700[_0x58327f(0x3eb)][_0x58327f(0x3c5)]}),_0x3dd6bf=_univerjs_core[_0x58327f(0x1c3)][_0x58327f(0x1cf)](_0x527700);_0x3dd6bf[_0x58327f(0x3eb)]['criteria']=null;if(_0x5643e0===null)return{'m1Prime':[_0x1f6a8a,_0x3dd6bf],'m2Prime':[]};if(_0x3ee782[_0x58327f(0x3eb)][_0x58327f(0x3c5)]===_0x5643e0[_0x58327f(0x40e)])return _0x190562;_0x3ee782[_0x58327f(0x3eb)][_0x58327f(0x3c5)]=_0x5643e0['start'];if(_0x3ee782['params'][_0x58327f(0x3f5)])_0x3ee782['params'][_0x58327f(0x3f5)][_0x58327f(0x1bc)]=_0x5643e0[_0x58327f(0x40e)];return{'m1Prime':[_0x3dd6bf,_0x3ee782,_0x1f6a8a],'m2Prime':[_0x3ee782]};}},removeColMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x27e)]['id'],'handler'(_0x5e04a6,_0x4dae25){const _0x511ce5=_0xfc9601,_0x4a1913={'m1Prime':[_0x5e04a6],'m2Prime':[_0x4dae25]};if(_0x5e04a6[_0x511ce5(0x3eb)][_0x511ce5(0x1d0)]!==_0x4dae25[_0x511ce5(0x3eb)][_0x511ce5(0x1d0)]||_0x5e04a6[_0x511ce5(0x3eb)][_0x511ce5(0x25e)]!==_0x4dae25['params'][_0x511ce5(0x25e)])return _0x4a1913;const _0x61b6d3=_univerjs_core[_0x511ce5(0x1c3)]['deepClone'](_0x5e04a6),_0x2b4d32=_univerjs_core['Tools'][_0x511ce5(0x1cf)](_0x4dae25),_0x1f1395=handleRemove({'start':_0x5e04a6[_0x511ce5(0x3eb)]['range']['startColumn'],'end':_0x5e04a6[_0x511ce5(0x3eb)][_0x511ce5(0x29a)][_0x511ce5(0x22a)]},{'start':_0x4dae25[_0x511ce5(0x3eb)][_0x511ce5(0x29a)][_0x511ce5(0x245)],'end':_0x4dae25[_0x511ce5(0x3eb)]['range']['endColumn']});if(_0x1f1395===null)return{'m1Prime':[_0x61b6d3,{'id':_univerjs_sheets_filter['RemoveSheetsFilterMutation']['id'],'params':{'unitId':_0x4dae25['params'][_0x511ce5(0x1d0)],'subUnitId':_0x4dae25['params'][_0x511ce5(0x1d0)]}}],'m2Prime':[]};return _0x2b4d32[_0x511ce5(0x3eb)]['range'][_0x511ce5(0x245)]=_0x1f1395[_0x511ce5(0x40e)],_0x2b4d32[_0x511ce5(0x3eb)][_0x511ce5(0x29a)][_0x511ce5(0x22a)]=_0x1f1395['end'],{'m1Prime':[_0x2b4d32,_0x61b6d3],'m2Prime':[_0x2b4d32]};}},removeColMutationWithSetWorksheetColWidth={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1f5)]['id'],'handler'(_0x11980f,_0x5bfa9f){const _0x41a5e5=_0xfc9601,_0x1ae13b={'m1Prime':_0x11980f,'m2Prime':_0x5bfa9f};if(_0x11980f[_0x41a5e5(0x3eb)][_0x41a5e5(0x1d0)]!==_0x5bfa9f['params']['unitId']||_0x11980f['params']['subUnitId']!==_0x5bfa9f['params'][_0x41a5e5(0x25e)])return _0x1ae13b;const _0xb0c401=_univerjs_core[_0x41a5e5(0x1c3)][_0x41a5e5(0x1cf)](_0x11980f),_0x16bf24=_univerjs_core[_0x41a5e5(0x1c3)][_0x41a5e5(0x1cf)](_0x5bfa9f),{ranges:_0x55c212,colWidth:_0x2f3930}=_0x16bf24['params'];_0x55c212['forEach'](_0x2c9ea6=>{const _0x1f147e=_0x41a5e5,_0x4e2d8d=(0x0,_univerjs_sheets[_0x1f147e(0x40a)])(toColumn(_0x11980f[_0x1f147e(0x3eb)][_0x1f147e(0x29a)]),_0x2c9ea6);if(_0x4e2d8d==null)_0x16bf24['id']=_univerjs_sheets[_0x1f147e(0x305)]['id'];else _0x2c9ea6[_0x1f147e(0x245)]+=_0x4e2d8d['step'],_0x2c9ea6[_0x1f147e(0x22a)]+=_0x4e2d8d[_0x1f147e(0x2af)]+_0x4e2d8d[_0x1f147e(0x29d)];});if(typeof _0x2f3930!==_0x41a5e5(0x28f))(0x0,_univerjs_core[_0x41a5e5(0x382)])(_0x11980f[_0x41a5e5(0x3eb)][_0x41a5e5(0x29a)][_0x41a5e5(0x245)],_0x11980f[_0x41a5e5(0x3eb)][_0x41a5e5(0x29a)][_0x41a5e5(0x22a)]-_0x11980f[_0x41a5e5(0x3eb)][_0x41a5e5(0x29a)]['startColumn']+0x1,_0x2f3930);return{'m1Prime':_0xb0c401,'m2Prime':_0x16bf24};}},removeColWithUpdateCommentRef={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x365)]['id'],'handler':(_0xa8bf89,_0x40af85)=>{const _0x1e670d=_0xfc9601,_0x423d5c={'m1Prime':_0xa8bf89,'m2Prime':_0x40af85};if(_0xa8bf89[_0x1e670d(0x3eb)]['unitId']!==_0x40af85[_0x1e670d(0x3eb)][_0x1e670d(0x1d0)]||_0xa8bf89[_0x1e670d(0x3eb)]['subUnitId']!==_0x40af85['params'][_0x1e670d(0x25e)])return _0x423d5c;const _0x5eea9e=transformUpdateCommentRefWithRefRange(_0x40af85,{'id':_univerjs_sheets[_0x1e670d(0x2a9)]['id'],'params':{'unitId':_0xa8bf89[_0x1e670d(0x3eb)][_0x1e670d(0x1d0)],'subUnitId':_0xa8bf89[_0x1e670d(0x3eb)][_0x1e670d(0x25e)],'range':_0xa8bf89[_0x1e670d(0x3eb)][_0x1e670d(0x29a)]}});return{'m1Prime':[_0xa8bf89,..._0x5eea9e],'m2Prime':[_0x40af85,..._0x5eea9e]};}},removeColMutationWithUpdateDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x3ac457,_0x68f1c3)=>{const _0xd7c117=_0xfc9601,_0x5a887a={'m1Prime':_0x3ac457,'m2Prime':_0x68f1c3};if(_0x3ac457[_0xd7c117(0x3eb)][_0xd7c117(0x1d0)]!==_0x68f1c3[_0xd7c117(0x3eb)][_0xd7c117(0x1d0)]||_0x68f1c3[_0xd7c117(0x3eb)][_0xd7c117(0x25e)]!==_0x3ac457[_0xd7c117(0x3eb)]['subUnitId'])return _0x5a887a;const _0x1bb8f1=transformUpdateDataValidationWithRefRange(_0x68f1c3,{'id':_univerjs_sheets[_0xd7c117(0x2a9)]['id'],'params':{'range':_0x3ac457['params'][_0xd7c117(0x29a)]}});return{'m1Prime':[_0x3ac457,..._0x1bb8f1],'m2Prime':[_0x68f1c3,..._0x1bb8f1]};}},removeDataValidationMutationWithSelf={'m1':_univerjs_data_validation[_0xfc9601(0x252)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x252)]['id'],'handler':(_0x20de96,_0x3e9f86)=>{const _0x43eeec=_0xfc9601,_0xf6a4ff={'m1Prime':_0x20de96,'m2Prime':_0x3e9f86};if(_0x20de96[_0x43eeec(0x3eb)]['unitId']===_0x3e9f86[_0x43eeec(0x3eb)][_0x43eeec(0x1d0)]&&_0x20de96[_0x43eeec(0x3eb)][_0x43eeec(0x25e)]===_0x3e9f86['params']['subUnitId']&&_0x20de96[_0x43eeec(0x3eb)][_0x43eeec(0x2d2)]===_0x3e9f86[_0x43eeec(0x3eb)][_0x43eeec(0x2d2)])return{'m1Prime':[],'m2Prime':[]};return _0xf6a4ff;}},removeHyperLinkWithSelf={'m1':_univerjs_sheets_hyper_link[_0xfc9601(0x342)]['id'],'m2':_univerjs_sheets_hyper_link['RemoveHyperLinkMutation']['id'],'handler':(_0x24db15,_0x7757b9)=>{const _0x5436dc=_0xfc9601,_0x63953f=_0x24db15[_0x5436dc(0x3eb)],_0x2c626c=_0x7757b9['params'];if(_0x63953f[_0x5436dc(0x1d0)]===_0x2c626c[_0x5436dc(0x1d0)]&&_0x63953f[_0x5436dc(0x25e)]===_0x2c626c['subUnitId']&&_0x63953f['id']===_0x2c626c['id'])return{'m2Prime':[],'m1Prime':[]};return{'m1Prime':_0x24db15,'m2Prime':_0x7757b9};}},removeNumfmtMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'handler'(_0x4bed6a,_0x552d2d){const _0x1a0d56=_0xfc9601;if(_0x4bed6a[_0x1a0d56(0x3eb)][_0x1a0d56(0x1d0)]!==_0x552d2d[_0x1a0d56(0x3eb)][_0x1a0d56(0x1d0)]||_0x4bed6a[_0x1a0d56(0x3eb)][_0x1a0d56(0x25e)]!==_0x552d2d[_0x1a0d56(0x3eb)][_0x1a0d56(0x25e)])return{'m1Prime':_0x4bed6a,'m2Prime':_0x552d2d};const _0x38ae06=_univerjs_core['Tools'][_0x1a0d56(0x1cf)](_0x4bed6a),_0x2644d2=_univerjs_core[_0x1a0d56(0x1c3)][_0x1a0d56(0x1cf)](_0x552d2d),_0xc1ffca=[],_0x1ae73f=_0x2644d2[_0x1a0d56(0x3eb)][_0x1a0d56(0x3a3)];return _0x38ae06[_0x1a0d56(0x3eb)][_0x1a0d56(0x3a3)][_0x1a0d56(0x302)](_0x5ddcc5=>{const _0x3fe95f=_0x1a0d56,_0x52056f=RangeSubtractRanges(_0x5ddcc5,_0x1ae73f);if(_0x52056f[_0x3fe95f(0x29d)]>0x0)_0xc1ffca[_0x3fe95f(0x380)](..._0x52056f);}),_0x38ae06[_0x1a0d56(0x3eb)][_0x1a0d56(0x3a3)]=_0xc1ffca,{'m1Prime':_0x4bed6a,'m2Prime':_0x552d2d};}},removeNumfmtMutationWithSetNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x397)]['id'],'handler'(_0x5ecdf5,_0x1d29ad){const _0x2944d4=_0xfc9601;if(_0x5ecdf5[_0x2944d4(0x3eb)][_0x2944d4(0x1d0)]!==_0x1d29ad['params'][_0x2944d4(0x1d0)]||_0x5ecdf5['params'][_0x2944d4(0x25e)]!==_0x1d29ad['params'][_0x2944d4(0x25e)])return{'m1Prime':_0x5ecdf5,'m2Prime':_0x1d29ad};const _0x1ebac6=_univerjs_core['Tools'][_0x2944d4(0x1cf)](_0x5ecdf5),_0x506095=_univerjs_core['Tools'][_0x2944d4(0x1cf)](_0x1d29ad),_0x5d4012=[],_0x26b6cd=Object[_0x2944d4(0x375)](_0x506095[_0x2944d4(0x3eb)][_0x2944d4(0x375)])['map'](_0x495881=>_0x495881[_0x2944d4(0x3a3)])['flat']();return _0x1ebac6[_0x2944d4(0x3eb)]['ranges'][_0x2944d4(0x302)](_0x5821d4=>{const _0xa6df0c=_0x2944d4,_0x565d4f=RangeSubtractRanges(_0x5821d4,_0x26b6cd);if(_0x565d4f[_0xa6df0c(0x29d)]>0x0)_0x5d4012[_0xa6df0c(0x380)](..._0x565d4f);}),_0x1ebac6[_0x2944d4(0x3eb)][_0x2944d4(0x3a3)]=_0x5d4012,{'m1Prime':_0x1ebac6,'m2Prime':_0x506095};}},removeRowWithAddComment={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x411)]['id'],'handler':(_0x4be509,_0x4a3e41)=>{const _0x186ba6=_0xfc9601,_0x3a8377={'m1Prime':_0x4be509,'m2Prime':_0x4a3e41};if(_0x4be509[_0x186ba6(0x3eb)][_0x186ba6(0x1d0)]!==_0x4a3e41[_0x186ba6(0x3eb)]['unitId']||_0x4be509[_0x186ba6(0x3eb)][_0x186ba6(0x25e)]!==_0x4a3e41['params'][_0x186ba6(0x25e)])return _0x3a8377;const _0xda1693=transformAddCommentWithRefRange(_0x4a3e41,{'id':_univerjs_sheets['RemoveRowCommand']['id'],'params':{'unitId':_0x4be509[_0x186ba6(0x3eb)][_0x186ba6(0x1d0)],'subUnitId':_0x4be509[_0x186ba6(0x3eb)][_0x186ba6(0x25e)],'range':_0x4be509['params'][_0x186ba6(0x29a)]}});return{'m1Prime':[_0x4be509,..._0xda1693],'m2Prime':[_0x4a3e41,..._0xda1693]};}},removeRowMutationWithAddDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x311)]['id'],'handler'(_0x5198d2,_0x330b10){const _0x226933=_0xfc9601,_0x471947={'m1Prime':_0x5198d2,'m2Prime':_0x330b10};if(_0x5198d2[_0x226933(0x3eb)][_0x226933(0x1d0)]!==_0x330b10[_0x226933(0x3eb)][_0x226933(0x1d0)]||_0x5198d2[_0x226933(0x3eb)][_0x226933(0x25e)]!==_0x330b10[_0x226933(0x3eb)][_0x226933(0x25e)])return _0x471947;const _0x17ed81=transformAddDataValidationWithRefRange(_0x330b10,{'id':_univerjs_sheets['RemoveRowCommand']['id'],'params':{'range':_0x5198d2['params'][_0x226933(0x29a)]}});return{'m1Prime':[_0x5198d2,..._0x17ed81],'m2Prime':[_0x330b10,..._0x17ed81]};}},removeRowMutationWithAddMerge={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler'(_0x59bb3d,_0x401b99){const _0x312bef=_0xfc9601,_0x1c4d2d=addWorksheetMergeMutationWithRemoveRowMutation[_0x312bef(0x3f8)](_0x401b99,_0x59bb3d);if(isTransformMutationSuccess(_0x1c4d2d))return{'m1Prime':_0x1c4d2d[_0x312bef(0x3d9)],'m2Prime':_0x1c4d2d['m1Prime']};else return _0x1c4d2d;}},removeRowMutationWithMoveRange={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler'(_0x32f90a,_0x48ae6e){const _0x254051=_0xfc9601,_0x271941={'m1Prime':_0x32f90a,'m2Prime':_0x48ae6e};if(_0x32f90a[_0x254051(0x3eb)]['unitId']!==_0x48ae6e[_0x254051(0x3eb)][_0x254051(0x1d0)]||_0x32f90a['params'][_0x254051(0x25e)]!==_0x48ae6e[_0x254051(0x3eb)][_0x254051(0x3a4)]['subUnitId']&&_0x32f90a[_0x254051(0x3eb)]['subUnitId']!==_0x48ae6e['params']['to'][_0x254051(0x25e)])return _0x271941;const _0x117087=_univerjs_core[_0x254051(0x1c3)][_0x254051(0x1cf)](_0x32f90a),_0x3bb7e7=_univerjs_core[_0x254051(0x1c3)][_0x254051(0x1cf)](_0x48ae6e),{startRow:_0x57f102,endRow:_0x169091}=_0x32f90a[_0x254051(0x3eb)][_0x254051(0x29a)];if(_0x32f90a[_0x254051(0x3eb)][_0x254051(0x25e)]===_0x48ae6e[_0x254051(0x3eb)][_0x254051(0x3a4)]['subUnitId']){const _0xd23e7f=new _univerjs_core[(_0x254051(0x3c2))](_0x3bb7e7['params'][_0x254051(0x3a4)][_0x254051(0x3e6)]),{startRow:_0x5303db,endRow:_0x1a0413}=_0xd23e7f[_0x254051(0x3d1)]();if(_0x5303db<=_0x169091&&_0x1a0413>=_0x57f102)return{'error':new Error(_0x254051(0x340))};if(_0x169091<_0x5303db)_0xd23e7f[_0x254051(0x3b1)](_0x57f102,_0x169091-_0x57f102+0x1);_0x3bb7e7[_0x254051(0x3eb)][_0x254051(0x3a4)]['value']=_0xd23e7f[_0x254051(0x1d1)]();}if(_0x32f90a[_0x254051(0x3eb)][_0x254051(0x25e)]===_0x48ae6e[_0x254051(0x3eb)]['to']['subUnitId']){const _0x143922=new _univerjs_core['ObjectMatrix'](_0x3bb7e7[_0x254051(0x3eb)]['to'][_0x254051(0x3e6)]),{startRow:_0xdb6ab7,endRow:_0x25ec15}=_0x143922[_0x254051(0x3d1)]();if(_0xdb6ab7<=_0x169091&&_0x25ec15>=_0x57f102)return{'error':new Error(_0x254051(0x340))};if(_0x169091<_0xdb6ab7)_0x143922[_0x254051(0x3b1)](_0x57f102,_0x169091-_0x57f102+0x1);_0x3bb7e7['params']['to'][_0x254051(0x3e6)]=_0x143922[_0x254051(0x1d1)]();}return{'m1Prime':_0x117087,'m2Prime':_0x3bb7e7};}},removeRowMutationWithMoveRow={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x225)]['id'],'handler'(_0x1ce499,_0x3f4a10){const _0x3da1d7=_0xfc9601,_0x70a04a={'m1Prime':_0x1ce499,'m2Prime':_0x3f4a10};if(_0x1ce499['params'][_0x3da1d7(0x1d0)]!==_0x3f4a10[_0x3da1d7(0x3eb)][_0x3da1d7(0x1d0)]||_0x1ce499['params']['subUnitId']!==_0x3f4a10[_0x3da1d7(0x3eb)][_0x3da1d7(0x25e)])return _0x70a04a;const _0x419c3=_univerjs_core[_0x3da1d7(0x1c3)][_0x3da1d7(0x1cf)](_0x1ce499),_0x3c3145=_univerjs_core[_0x3da1d7(0x1c3)][_0x3da1d7(0x1cf)](_0x3f4a10);if(_0x1ce499[_0x3da1d7(0x3eb)][_0x3da1d7(0x29a)]['startRow']<=_0x3f4a10['params']['sourceRange'][_0x3da1d7(0x3aa)]&&_0x1ce499['params'][_0x3da1d7(0x29a)][_0x3da1d7(0x3aa)]>=_0x3f4a10[_0x3da1d7(0x3eb)][_0x3da1d7(0x202)]['startRow']||_0x1ce499[_0x3da1d7(0x3eb)]['range'][_0x3da1d7(0x357)]<=_0x3f4a10[_0x3da1d7(0x3eb)][_0x3da1d7(0x38d)]['endRow']&&_0x1ce499['params'][_0x3da1d7(0x29a)][_0x3da1d7(0x3aa)]>=_0x3f4a10[_0x3da1d7(0x3eb)][_0x3da1d7(0x38d)][_0x3da1d7(0x357)])return{'error':new Error(_0x3da1d7(0x299))};const _0xbb02e=(0x0,_univerjs_sheets[_0x3da1d7(0x40a)])(toColumn((0x0,_univerjs_sheets[_0x3da1d7(0x1eb)])(_0x1ce499[_0x3da1d7(0x3eb)][_0x3da1d7(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x3da1d7(0x1eb)])(_0x3f4a10[_0x3da1d7(0x3eb)][_0x3da1d7(0x202)]))),_0x21ab2a=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets[_0x3da1d7(0x1eb)])(_0x1ce499[_0x3da1d7(0x3eb)][_0x3da1d7(0x29a)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x3f4a10[_0x3da1d7(0x3eb)][_0x3da1d7(0x38d)])));if(_0xbb02e&&_0x21ab2a)_0x3c3145[_0x3da1d7(0x3eb)][_0x3da1d7(0x202)]['startRow']+=_0xbb02e[_0x3da1d7(0x2af)],_0x3c3145[_0x3da1d7(0x3eb)][_0x3da1d7(0x202)][_0x3da1d7(0x3aa)]+=_0xbb02e[_0x3da1d7(0x2af)]+(_0xbb02e[_0x3da1d7(0x29d)]||0x0),_0x3c3145[_0x3da1d7(0x3eb)]['targetRange']['startRow']+=_0x21ab2a[_0x3da1d7(0x2af)],_0x3c3145['params']['targetRange'][_0x3da1d7(0x3aa)]+=_0x21ab2a[_0x3da1d7(0x2af)]+(_0x21ab2a[_0x3da1d7(0x29d)]||0x0);else _0x3c3145['id']=_univerjs_sheets[_0x3da1d7(0x305)]['id'];const _0x1543f4=(0x0,_univerjs_sheets[_0x3da1d7(0x3e5)])({'start':_0x3f4a10[_0x3da1d7(0x3eb)][_0x3da1d7(0x202)][_0x3da1d7(0x357)],'end':_0x3f4a10[_0x3da1d7(0x3eb)]['sourceRange'][_0x3da1d7(0x3aa)]},{'start':_0x3f4a10['params'][_0x3da1d7(0x38d)][_0x3da1d7(0x357)],'end':_0x3f4a10[_0x3da1d7(0x3eb)][_0x3da1d7(0x38d)][_0x3da1d7(0x3aa)]},{'start':_0x1ce499['params'][_0x3da1d7(0x29a)]['startRow'],'end':_0x1ce499[_0x3da1d7(0x3eb)][_0x3da1d7(0x29a)][_0x3da1d7(0x3aa)]});if(_0x1543f4){const {step:_0x36b133,length:_0xc91e57}=_0x1543f4;_0x419c3[_0x3da1d7(0x3eb)][_0x3da1d7(0x29a)]['startRow']+=_0x36b133,_0x419c3[_0x3da1d7(0x3eb)]['range'][_0x3da1d7(0x3aa)]+=_0x36b133+(_0xc91e57||0x0);}else _0x419c3['id']=_univerjs_sheets[_0x3da1d7(0x305)]['id'];return{'m1Prime':_0x419c3,'m2Prime':_0x3c3145};}},removeRowMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'handler'(_0x3203ca,_0x3278db){const _0x313b7c=_0xfc9601,_0x468824={'m1Prime':_0x3203ca,'m2Prime':_0x3278db};if(_0x3203ca['params'][_0x313b7c(0x1d0)]!==_0x3278db[_0x313b7c(0x3eb)][_0x313b7c(0x1d0)]||_0x3203ca[_0x313b7c(0x3eb)][_0x313b7c(0x25e)]!==_0x3278db[_0x313b7c(0x3eb)][_0x313b7c(0x25e)])return _0x468824;const _0x324a88=_univerjs_core['Tools'][_0x313b7c(0x1cf)](_0x3203ca),_0x4e4443=_univerjs_core['Tools'][_0x313b7c(0x1cf)](_0x3278db),{ranges:_0x382b26}=_0x4e4443['params'];if(_0x382b26[_0x313b7c(0x3ad)](_0x408b77=>{const _0x2467ec=_0x313b7c,_0x328b80=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets[_0x2467ec(0x1eb)])(_0x3203ca[_0x2467ec(0x3eb)][_0x2467ec(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x2467ec(0x1eb)])(_0x408b77)));if(_0x328b80===null||_0x328b80['length']!==0x0)return!![];return _0x408b77['startRow']+=_0x328b80['step'],_0x408b77[_0x2467ec(0x3aa)]+=_0x328b80[_0x2467ec(0x2af)],![];}))return{'error':new Error('remove\x20row\x20is\x20conflict\x20with\x20remove\x20numfmt')};return{'m1Prime':_0x324a88,'m2Prime':_0x4e4443};}},removeRowMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'handler'(_0x597fb0,_0x11247b){const _0x440e1c=_0xfc9601,_0xfc79aa={'m1Prime':_0x597fb0,'m2Prime':_0x11247b};if(_0x597fb0['params'][_0x440e1c(0x1d0)]!==_0x11247b[_0x440e1c(0x3eb)][_0x440e1c(0x1d0)]||_0x597fb0[_0x440e1c(0x3eb)][_0x440e1c(0x25e)]!==_0x11247b[_0x440e1c(0x3eb)][_0x440e1c(0x25e)])return _0xfc79aa;const _0x402586=_univerjs_core['Tools'][_0x440e1c(0x1cf)](_0x597fb0),_0x6dcfe4=_univerjs_core[_0x440e1c(0x1c3)][_0x440e1c(0x1cf)](_0x11247b),_0x5105a4=(0x0,_univerjs_sheets[_0x440e1c(0x40a)])(toColumn((0x0,_univerjs_sheets[_0x440e1c(0x1eb)])(_0x597fb0[_0x440e1c(0x3eb)][_0x440e1c(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x440e1c(0x1eb)])(_0x11247b[_0x440e1c(0x3eb)][_0x440e1c(0x29a)])));if(_0x5105a4){const {step:_0x4cfa54,length:_0x1c936b}=_0x5105a4;_0x6dcfe4['params'][_0x440e1c(0x29a)][_0x440e1c(0x357)]+=_0x4cfa54,_0x6dcfe4[_0x440e1c(0x3eb)][_0x440e1c(0x29a)]['endRow']+=_0x4cfa54+(_0x1c936b||0x0);}else _0x6dcfe4['id']=_univerjs_sheets[_0x440e1c(0x305)]['id'];const _0x5695e0=(0x0,_univerjs_sheets[_0x440e1c(0x40a)])(toColumn((0x0,_univerjs_sheets[_0x440e1c(0x1eb)])(_0x11247b[_0x440e1c(0x3eb)][_0x440e1c(0x29a)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x597fb0[_0x440e1c(0x3eb)][_0x440e1c(0x29a)])));if(_0x5695e0){const {step:_0x3a5680,length:_0x13b65c}=_0x5695e0;_0x402586[_0x440e1c(0x3eb)]['range'][_0x440e1c(0x357)]+=_0x3a5680,_0x402586[_0x440e1c(0x3eb)]['range'][_0x440e1c(0x3aa)]+=_0x3a5680+(_0x13b65c||0x0);}else _0x402586['id']=_univerjs_sheets[_0x440e1c(0x305)]['id'];return{'m1Prime':_0x402586,'m2Prime':_0x6dcfe4};}},removeRowMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'handler'(_0xfccce,_0x49ae11){const _0x42fa1e=_0xfc9601,_0x42de8c=_univerjs_core[_0x42fa1e(0x1c3)][_0x42fa1e(0x1cf)](_0xfccce),_0x437a4f=_univerjs_core[_0x42fa1e(0x1c3)][_0x42fa1e(0x1cf)](_0x49ae11);if(_0xfccce['params'][_0x42fa1e(0x1d0)]!==_0x49ae11[_0x42fa1e(0x3eb)][_0x42fa1e(0x1d0)]||_0xfccce[_0x42fa1e(0x3eb)][_0x42fa1e(0x25e)]!==_0x49ae11[_0x42fa1e(0x3eb)][_0x42fa1e(0x25e)])return{'m1Prime':_0x42de8c,'m2Prime':_0x437a4f};const _0x5425c8=_0x437a4f[_0x42fa1e(0x3eb)][_0x42fa1e(0x3a3)][_0x42fa1e(0x2a5)]((_0x2b6108,_0x34e0a5)=>{const _0xf4d4ca=_0x42fa1e,_0x4f4f1d=_0x42de8c[_0xf4d4ca(0x3eb)][_0xf4d4ca(0x29a)],_0x465f63=_0x4f4f1d['endRow']-_0x4f4f1d[_0xf4d4ca(0x357)]+0x1;let _0x1ffe8a={..._0x34e0a5};if(_0x4f4f1d['startRow']>_0x34e0a5[_0xf4d4ca(0x3aa)])_0x1ffe8a={..._0x34e0a5};else{if(_0x4f4f1d[_0xf4d4ca(0x357)]>=_0x34e0a5[_0xf4d4ca(0x357)]&&_0x4f4f1d['startRow']<=_0x34e0a5[_0xf4d4ca(0x3aa)]&&_0x4f4f1d[_0xf4d4ca(0x3aa)]>_0x34e0a5[_0xf4d4ca(0x3aa)]){_0x1ffe8a['endRow']=_0x4f4f1d[_0xf4d4ca(0x357)]-0x1;if(_0x4f4f1d[_0xf4d4ca(0x357)]===_0x34e0a5['startRow'])_0x1ffe8a=null;}else{if(_0x4f4f1d[_0xf4d4ca(0x357)]>_0x34e0a5[_0xf4d4ca(0x357)]&&_0x4f4f1d[_0xf4d4ca(0x3aa)]<_0x34e0a5[_0xf4d4ca(0x3aa)])_0x1ffe8a['endRow']=_0x34e0a5['endRow']-_0x465f63;else{if(_0x4f4f1d['startRow']<_0x34e0a5[_0xf4d4ca(0x357)]&&_0x4f4f1d['endRow']>=_0x34e0a5[_0xf4d4ca(0x357)]&&_0x4f4f1d['endRow']<=_0x34e0a5[_0xf4d4ca(0x3aa)]){_0x1ffe8a[_0xf4d4ca(0x357)]=_0x4f4f1d[_0xf4d4ca(0x357)],_0x1ffe8a['endRow']=_0x34e0a5[_0xf4d4ca(0x3aa)]-_0x465f63;if(_0x4f4f1d[_0xf4d4ca(0x3aa)]===_0x34e0a5['endRow'])_0x1ffe8a=null;}else{if(_0x4f4f1d[_0xf4d4ca(0x357)]<=_0x34e0a5[_0xf4d4ca(0x357)]&&_0x4f4f1d[_0xf4d4ca(0x3aa)]>=_0x34e0a5[_0xf4d4ca(0x3aa)])_0x1ffe8a=null;else _0x4f4f1d[_0xf4d4ca(0x3aa)]<_0x34e0a5[_0xf4d4ca(0x357)]&&(_0x1ffe8a[_0xf4d4ca(0x357)]=_0x34e0a5[_0xf4d4ca(0x357)]-_0x465f63,_0x1ffe8a['endRow']=_0x34e0a5[_0xf4d4ca(0x3aa)]-_0x465f63);}}}}if(_0x1ffe8a&&!(_0x1ffe8a[_0xf4d4ca(0x357)]===_0x1ffe8a[_0xf4d4ca(0x3aa)]&&_0x1ffe8a[_0xf4d4ca(0x245)]===_0x1ffe8a[_0xf4d4ca(0x22a)]))return _0x2b6108['push'](_0x1ffe8a),_0x2b6108;else return _0x2b6108;},[]);return _0x437a4f['params'][_0x42fa1e(0x3a3)]=_0x5425c8,{'m1Prime':_0x42de8c,'m2Prime':_0x437a4f};}},removeRowMutationWithReorderRange={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1ca)]['id'],'handler'(_0x18d7cb,_0xba6c6){const _0x49a042=_0xfc9601,_0x136b4={'m1Prime':_0x18d7cb,'m2Prime':_0xba6c6};if(_0x18d7cb[_0x49a042(0x3eb)]['unitId']!==_0xba6c6[_0x49a042(0x3eb)][_0x49a042(0x1d0)]||_0x18d7cb['params']['subUnitId']!==_0xba6c6[_0x49a042(0x3eb)][_0x49a042(0x25e)])return _0x136b4;const _0x156526=_univerjs_core[_0x49a042(0x1c3)][_0x49a042(0x1cf)](_0xba6c6),_0x5119ab=_univerjs_core[_0x49a042(0x1c3)][_0x49a042(0x1cf)](_0x18d7cb),_0x12029f=(0x0,_univerjs_sheets[_0x49a042(0x40a)])(toColumn((0x0,_univerjs_sheets[_0x49a042(0x1eb)])(_0x18d7cb['params'][_0x49a042(0x29a)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0xba6c6['params'][_0x49a042(0x29a)])));if(!_0x12029f)return{'m1Prime':_0x18d7cb,'m2Prime':[]};if(_0x12029f[_0x49a042(0x29d)]===0x0&&_0x12029f[_0x49a042(0x2af)]===0x0)return{'m1Prime':_0x18d7cb,'m2Prime':_0xba6c6};const {startRow:_0x589dc9,endRow:_0xbc3b09}=_0x18d7cb[_0x49a042(0x3eb)][_0x49a042(0x29a)];_0x156526[_0x49a042(0x3eb)][_0x49a042(0x29a)][_0x49a042(0x357)]+=_0x12029f['step'],_0x156526[_0x49a042(0x3eb)]['range'][_0x49a042(0x3aa)]+=_0x12029f['step']+(_0x12029f[_0x49a042(0x29d)]||0x0);const _0x2270f8=Object[_0x49a042(0x38e)](_0xba6c6[_0x49a042(0x3eb)][_0x49a042(0x2d8)])[_0x49a042(0x3b3)](_0x1406fd=>orderMap(_0x589dc9,_0xbc3b09,Number(_0x1406fd)))[_0x49a042(0x3cc)](_0x1ced12=>_0x1ced12!==null),_0x1fa522={};for(const _0x17ee1e in _0xba6c6[_0x49a042(0x3eb)][_0x49a042(0x2d8)]){let _0x142dde=_0xba6c6['params'][_0x49a042(0x2d8)][_0x17ee1e];_0x142dde=orderMap(_0x589dc9,_0xbc3b09,_0x142dde);if(_0x142dde!==null)_0x1fa522[_0x2270f8[_0x49a042(0x23a)]()]=_0x142dde;}_0x156526['params'][_0x49a042(0x2d8)]=_0x1fa522;const _0x1c73ad=reorderRemoveRows(_0xba6c6['params']['order'],{'start':_0x18d7cb[_0x49a042(0x3eb)][_0x49a042(0x29a)][_0x49a042(0x357)],'end':_0x18d7cb['params'][_0x49a042(0x29a)]['endRow']}),_0x399b2e=[_0x5119ab];if(_0x1c73ad)_0x399b2e[_0x49a042(0x398)]({'id':_univerjs_sheets['ReorderRangeMutation']['id'],'params':{..._0x18d7cb['params'],'order':_0x1c73ad[_0x49a042(0x2d8)],'range':{..._0xba6c6[_0x49a042(0x3eb)]['range'],..._0x1c73ad[_0x49a042(0x29a)]}}});return{'m1Prime':_0x399b2e,'m2Prime':_0x156526};}},reorderRemoveRows=(_0x1c2640,_0x12680d)=>{const _0x4eafb4=_0xfc9601,_0x2a0ca1=Object['keys'](_0x1c2640)[_0x4eafb4(0x3b3)](Number)[_0x4eafb4(0x3be)]((_0x72c423,_0x3dc8c2)=>_0x72c423-_0x3dc8c2);if(_0x2a0ca1[_0x4eafb4(0x29d)]===0x0)return null;const _0x19c5cf=_0x2a0ca1[0x0],_0x1ddc44=_0x2a0ca1[_0x2a0ca1[_0x4eafb4(0x29d)]-0x1];if(_0x19c5cf>_0x12680d[_0x4eafb4(0x3bc)]||_0x1ddc44<_0x12680d[_0x4eafb4(0x40e)])return null;const _0x2dea5d=_0x2a0ca1[_0x4eafb4(0x3cc)](_0x58c288=>_0x1c2640[_0x58c288]>=_0x12680d[_0x4eafb4(0x40e)]&&_0x1c2640[_0x58c288]<=_0x12680d[_0x4eafb4(0x3bc)]);if(_0x2dea5d[_0x4eafb4(0x29d)]===0x0)return null;const _0x917813=_0x2dea5d['map'](_0x2477e8=>_0x1c2640[_0x2477e8]),_0x9c52eb={},_0x27f8b2=Math[_0x4eafb4(0x1d8)](_0x2dea5d[0x0],_0x12680d[_0x4eafb4(0x40e)]),_0x25fe3c=Math['max'](_0x2dea5d[_0x2dea5d[_0x4eafb4(0x29d)]-0x1],_0x12680d[_0x4eafb4(0x3bc)]),_0x2e5fc3=Array['from']({'length':_0x25fe3c-_0x27f8b2+0x1},(_0x2ba80f,_0xdec420)=>_0xdec420+_0x27f8b2)[_0x4eafb4(0x3cc)](_0x286c3a=>!_0x2dea5d[_0x4eafb4(0x3ec)](_0x286c3a));return Array[_0x4eafb4(0x3a4)]({'length':_0x25fe3c-_0x27f8b2+0x1},(_0x4b85e2,_0x1a6e9d)=>_0x1a6e9d+_0x27f8b2)[_0x4eafb4(0x3cc)](_0xc5526b=>!_0x917813[_0x4eafb4(0x3ec)](_0xc5526b))[_0x4eafb4(0x302)]((_0x4194b,_0x52ebb4)=>{_0x9c52eb[_0x4194b]=_0x2e5fc3[_0x52ebb4];}),_0x917813[_0x4eafb4(0x302)]((_0x11dd01,_0x9f0ec3)=>{_0x9c52eb[_0x11dd01]=_0x2dea5d[_0x9f0ec3];}),{'range':{'startRow':_0x27f8b2,'endRow':_0x25fe3c},'order':_0x9c52eb};},orderMap=(_0x3aa2b1,_0x576f26,_0x3532f2)=>{if(_0x3532f2>=_0x3aa2b1&&_0x3532f2<=_0x576f26)return null;if(_0x3532f2>_0x576f26)return _0x3532f2-(_0x576f26-_0x3aa2b1+0x1);return _0x3532f2;},removeRowMutationWithSetNumfmt={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x397)]['id'],'handler'(_0x6e6e4f,_0x483457){const _0x3827a9=_0xfc9601,_0x3196aa={'m1Prime':_0x6e6e4f,'m2Prime':_0x483457};if(_0x6e6e4f[_0x3827a9(0x3eb)]['unitId']!==_0x483457[_0x3827a9(0x3eb)][_0x3827a9(0x1d0)]||_0x6e6e4f[_0x3827a9(0x3eb)][_0x3827a9(0x25e)]!==_0x483457[_0x3827a9(0x3eb)][_0x3827a9(0x25e)])return _0x3196aa;const _0x12941f=[_univerjs_core['Tools'][_0x3827a9(0x1cf)](_0x6e6e4f)],_0x3e3850=_univerjs_core[_0x3827a9(0x1c3)][_0x3827a9(0x1cf)](_0x483457),{values:_0x31e760}=_0x3e3850['params'],_0x5b6a17=[];let _0x49b94c=![];for(const _0x5c768c in _0x31e760){const _0x3541bb=_0x31e760[_0x5c768c];_0x5b6a17['push'](..._0x3541bb[_0x3827a9(0x3a3)]);if(_0x3541bb[_0x3827a9(0x3a3)][_0x3827a9(0x3ad)](_0x30324f=>{const _0x1ffbd5=_0x3827a9,_0x2302e7=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x6e6e4f['params'][_0x1ffbd5(0x29a)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x30324f)));if(_0x2302e7==null||_0x2302e7['length']!==0x0)return!![];if(_0x2302e7[_0x1ffbd5(0x2af)]!==0x0)_0x49b94c=!![];return _0x30324f[_0x1ffbd5(0x357)]+=_0x2302e7[_0x1ffbd5(0x2af)],_0x30324f[_0x1ffbd5(0x3aa)]+=_0x2302e7[_0x1ffbd5(0x2af)],![];}))return{'error':new Error(_0x3827a9(0x347))};}if(_0x49b94c){const _0x43ea94={'id':_univerjs_sheets['RemoveNumfmtMutation']['id'],'params':{'unitId':_0x483457[_0x3827a9(0x3eb)][_0x3827a9(0x1d0)],'subUnitId':_0x483457[_0x3827a9(0x3eb)][_0x3827a9(0x25e)],'ranges':_0x5b6a17}};_0x12941f[_0x3827a9(0x380)](_0x43ea94,_0x3e3850);}return{'m1Prime':_0x12941f,'m2Prime':_0x3e3850};}},removeRowMutationWithSetRangeValues={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler'(_0x1fae9d,_0x279853){const _0xfecd9=_0xfc9601,_0x55b2dd={'m1Prime':_0x1fae9d,'m2Prime':_0x279853};if(_0x1fae9d['params'][_0xfecd9(0x1d0)]!==_0x279853[_0xfecd9(0x3eb)][_0xfecd9(0x1d0)]||_0x1fae9d[_0xfecd9(0x3eb)][_0xfecd9(0x25e)]!==_0x279853[_0xfecd9(0x3eb)][_0xfecd9(0x25e)])return _0x55b2dd;const _0x16fbc3=[_univerjs_core['Tools']['deepClone'](_0x1fae9d)],_0x3d106e=_univerjs_core[_0xfecd9(0x1c3)][_0xfecd9(0x1cf)](_0x279853),_0x23188e=new _univerjs_core[(_0xfecd9(0x3c2))](_0x3d106e['params']['cellValue']),_0x1f205f=_0x23188e[_0xfecd9(0x3d1)](),_0x25eefb=_0x1fae9d['params']['range'],_0x4f9f79=_0x25eefb[_0xfecd9(0x3aa)]-_0x25eefb['startRow']+0x1;if(_0x3d106e['params'][_0xfecd9(0x31f)]&&_0x25eefb[_0xfecd9(0x3aa)]<_0x1f205f[_0xfecd9(0x357)])moveRows(_0x3d106e[_0xfecd9(0x3eb)]['cellValue'],_0x1f205f[_0xfecd9(0x357)],_0x1f205f[_0xfecd9(0x3aa)]-_0x1f205f[_0xfecd9(0x357)]+0x1,-_0x4f9f79);else{if(_0x25eefb[_0xfecd9(0x357)]<=_0x1f205f[_0xfecd9(0x3aa)])return{'error':new Error(_0xfecd9(0x2a4))};}const _0x2f3740=new _univerjs_core[(_0xfecd9(0x3c2))]();let _0x104d4b=![],_0x49889a=![];_0x23188e[_0xfecd9(0x387)]((_0x57eb49,_0x320f10,_0x352942)=>{const _0x5060b4=_0xfecd9;if(_0x352942&&_0x352942['f']){const _0x2f67a0=_0x352942['f'];let _0x17defc=![];const _0x243350=processFormulaString(_0x1fae9d[_0x5060b4(0x3eb)][_0x5060b4(0x1d0)],_0x1fae9d[_0x5060b4(0x3eb)][_0x5060b4(0x25e)],_0x2f67a0,_0x5e4a36=>{const _0x2b5335=_0x5060b4,_0x152297=(0x0,_univerjs_sheets[_0x2b5335(0x40a)])(toColumn((0x0,_univerjs_sheets[_0x2b5335(0x1eb)])(_0x1fae9d[_0x2b5335(0x3eb)][_0x2b5335(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x2b5335(0x1eb)])(_0x5e4a36)));if(_0x152297===null)return _0x104d4b=!![],_0x5e4a36;return(_0x152297[_0x2b5335(0x2af)]!==0x0||_0x152297[_0x2b5335(0x29d)]!==0x0)&&(_0x17defc=!![],_0x5e4a36['startRow']+=_0x152297['step'],_0x5e4a36[_0x2b5335(0x3aa)]+=_0x152297['step']+_0x152297[_0x2b5335(0x29d)]),_0x5e4a36;});_0x17defc&&(_0x49889a=!![],_0x352942['f']=_0x243350,_0x2f3740[_0x5060b4(0x2fe)](_0x57eb49,_0x320f10,{..._0x352942}));}});if(_0x104d4b)return{'error':new Error('remove\x20rows\x20is\x20conflict\x20with\x20set\x20range\x20values\x20mutation,\x20trying\x20to\x20write\x20a\x20formula\x20reference\x20to\x20a\x20removed\x20row')};if(_0x49889a){const _0x23609f={'id':_univerjs_sheets[_0xfecd9(0x30f)]['id'],'params':{'unitId':_0x279853['params'][_0xfecd9(0x1d0)],'subUnitId':_0x279853[_0xfecd9(0x3eb)][_0xfecd9(0x25e)],'cellValue':_0x2f3740[_0xfecd9(0x1d1)]()}};_0x16fbc3[_0xfecd9(0x380)](_0x23609f);}return{'m1Prime':_0x16fbc3,'m2Prime':_0x3d106e};}},removeRowMutationWithSetRowData={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x303)]['id'],'handler'(_0x3023a3,_0x323806){const _0xfdcaa5=_0xfc9601,_0x4f25f={'m1Prime':_0x3023a3,'m2Prime':_0x323806};if(_0x3023a3[_0xfdcaa5(0x3eb)][_0xfdcaa5(0x1d0)]!==_0x323806[_0xfdcaa5(0x3eb)][_0xfdcaa5(0x1d0)]||_0x3023a3[_0xfdcaa5(0x3eb)][_0xfdcaa5(0x25e)]!==_0x323806['params'][_0xfdcaa5(0x25e)])return _0x4f25f;const _0x9859e5=_univerjs_core[_0xfdcaa5(0x1c3)][_0xfdcaa5(0x1cf)](_0x3023a3),_0x3fcadb=_univerjs_core[_0xfdcaa5(0x1c3)]['deepClone'](_0x323806),{rowData:_0x33d1ef}=_0x3fcadb[_0xfdcaa5(0x3eb)];return(0x0,_univerjs_core['spliceArray'])(_0x3023a3[_0xfdcaa5(0x3eb)][_0xfdcaa5(0x29a)][_0xfdcaa5(0x357)],_0x3023a3[_0xfdcaa5(0x3eb)][_0xfdcaa5(0x29a)]['endRow']-_0x3023a3[_0xfdcaa5(0x3eb)][_0xfdcaa5(0x29a)][_0xfdcaa5(0x357)]+0x1,_0x33d1ef),{'m1Prime':_0x9859e5,'m2Prime':_0x3fcadb};}},removeRowMutationWithSetRowHidden={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x3d8)]['id'],'handler'(_0x299178,_0x2e4e12){const _0x42b72e=_0xfc9601,_0x390231={'m1Prime':_0x299178,'m2Prime':_0x2e4e12};if(_0x299178[_0x42b72e(0x3eb)][_0x42b72e(0x1d0)]!==_0x2e4e12['params'][_0x42b72e(0x1d0)]||_0x299178[_0x42b72e(0x3eb)][_0x42b72e(0x25e)]!==_0x2e4e12[_0x42b72e(0x3eb)][_0x42b72e(0x25e)])return _0x390231;const _0x503b5c=_univerjs_core[_0x42b72e(0x1c3)][_0x42b72e(0x1cf)](_0x299178),_0x55460f=_univerjs_core['Tools'][_0x42b72e(0x1cf)](_0x2e4e12),{ranges:_0x57d671}=_0x55460f['params'];return _0x57d671[_0x42b72e(0x302)](_0x23db96=>{const _0x59c9bb=_0x42b72e,_0x541d35=(0x0,_univerjs_sheets[_0x59c9bb(0x40a)])(toColumn((0x0,_univerjs_sheets[_0x59c9bb(0x1eb)])(_0x299178[_0x59c9bb(0x3eb)][_0x59c9bb(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x59c9bb(0x1eb)])(_0x23db96)));if(_0x541d35==null)_0x55460f['id']=_univerjs_sheets[_0x59c9bb(0x305)]['id'];else _0x23db96['startRow']+=_0x541d35[_0x59c9bb(0x2af)],_0x23db96[_0x59c9bb(0x3aa)]+=_0x541d35[_0x59c9bb(0x2af)]+_0x541d35['length'];}),{'m1Prime':_0x503b5c,'m2Prime':_0x55460f};}},removeRowMutationWithSetRowVisible={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets['SetRowVisibleMutation']['id'],'handler'(_0x3ed3b4,_0x4226f5){const _0x5eb5d3=_0xfc9601,_0x5310a8={'m1Prime':_0x3ed3b4,'m2Prime':_0x4226f5};if(_0x3ed3b4['params']['unitId']!==_0x4226f5[_0x5eb5d3(0x3eb)][_0x5eb5d3(0x1d0)]||_0x3ed3b4[_0x5eb5d3(0x3eb)][_0x5eb5d3(0x25e)]!==_0x4226f5[_0x5eb5d3(0x3eb)][_0x5eb5d3(0x25e)])return _0x5310a8;const _0x1a834f=_univerjs_core[_0x5eb5d3(0x1c3)][_0x5eb5d3(0x1cf)](_0x3ed3b4),_0x1f306c=_univerjs_core[_0x5eb5d3(0x1c3)][_0x5eb5d3(0x1cf)](_0x4226f5),{ranges:_0x417778}=_0x1f306c[_0x5eb5d3(0x3eb)];return _0x417778['forEach'](_0x1663aa=>{const _0x514904=_0x5eb5d3,_0x31f6c7=(0x0,_univerjs_sheets[_0x514904(0x40a)])(toColumn((0x0,_univerjs_sheets[_0x514904(0x1eb)])(_0x3ed3b4[_0x514904(0x3eb)]['range'])),toColumn((0x0,_univerjs_sheets[_0x514904(0x1eb)])(_0x1663aa)));if(_0x31f6c7==null)_0x1f306c['id']=_univerjs_sheets[_0x514904(0x305)]['id'];else _0x1663aa[_0x514904(0x357)]+=_0x31f6c7[_0x514904(0x2af)],_0x1663aa['endRow']+=_0x31f6c7[_0x514904(0x2af)]+_0x31f6c7[_0x514904(0x29d)];}),{'m1Prime':_0x1a834f,'m2Prime':_0x1f306c};}},removeRowMutationWithSetSelection={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1cd)]['id'],'handler'(_0x5c51bc,_0x21ccd6){const _0x111703=_0xfc9601,_0x285bcc={'m1Prime':[],'m2Prime':[]};if(_0x5c51bc[_0x111703(0x3eb)][_0x111703(0x1d0)]!==_0x21ccd6[_0x111703(0x3eb)][_0x111703(0x1d0)]||_0x5c51bc[_0x111703(0x3eb)][_0x111703(0x25e)]!==_0x21ccd6[_0x111703(0x3eb)][_0x111703(0x25e)])return _0x285bcc;const _0x2f64e9=_univerjs_core[_0x111703(0x1c3)]['deepClone'](_0x21ccd6);let _0x492a60=![];_0x2f64e9['params']['selections']['forEach'](_0x4baae7=>{const _0x320094=_0x111703,{range:_0x1b911c,primary:_0x202ce4}=_0x4baae7,_0x478ee3=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets[_0x320094(0x1eb)])(_0x5c51bc[_0x320094(0x3eb)]['range'])),toColumn((0x0,_univerjs_sheets[_0x320094(0x1eb)])(_0x1b911c)));if(_0x478ee3==null)return;if(_0x478ee3[_0x320094(0x29d)]||_0x478ee3[_0x320094(0x2af)]){_0x1b911c['startRow']+=_0x478ee3[_0x320094(0x2af)],_0x1b911c['endRow']+=_0x478ee3[_0x320094(0x2af)]+(_0x478ee3[_0x320094(0x29d)]||0x0);if(_0x202ce4){const _0x3f37e4=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets[_0x320094(0x1eb)])(_0x5c51bc['params'][_0x320094(0x29a)])),toColumn((0x0,_univerjs_sheets[_0x320094(0x1eb)])(_0x202ce4)));if(_0x3f37e4==null){_0x202ce4[_0x320094(0x357)]=_0x1b911c[_0x320094(0x357)],_0x202ce4[_0x320094(0x3aa)]=_0x1b911c[_0x320094(0x357)],_0x202ce4[_0x320094(0x418)]=_0x1b911c['startRow'];return;}(_0x3f37e4[_0x320094(0x29d)]||_0x3f37e4[_0x320094(0x2af)])&&(_0x202ce4['startRow']+=_0x3f37e4[_0x320094(0x2af)],_0x202ce4[_0x320094(0x3aa)]+=_0x3f37e4['step'],_0x202ce4[_0x320094(0x418)]+=_0x3f37e4[_0x320094(0x2af)]);}_0x492a60=!![];}});if(_0x492a60)_0x285bcc[_0x111703(0x3d9)]['push'](_0x2f64e9);return _0x285bcc;}},removeRowMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x27e)]['id'],'handler'(_0x54fe5d,_0x2ccae9){const _0x38f730=_0xfc9601,_0xeeae7d={'m1Prime':[_0x54fe5d],'m2Prime':[_0x2ccae9]};if(_0x54fe5d['params']['unitId']!==_0x2ccae9[_0x38f730(0x3eb)][_0x38f730(0x1d0)]||_0x54fe5d['params'][_0x38f730(0x25e)]!==_0x2ccae9[_0x38f730(0x3eb)]['subUnitId'])return _0xeeae7d;const _0x335767=_univerjs_core[_0x38f730(0x1c3)]['deepClone'](_0x54fe5d),_0x3c928b=_univerjs_core[_0x38f730(0x1c3)]['deepClone'](_0x2ccae9),_0x1f1c57=handleRemove({'start':_0x54fe5d[_0x38f730(0x3eb)]['range'][_0x38f730(0x357)],'end':_0x54fe5d[_0x38f730(0x3eb)][_0x38f730(0x29a)][_0x38f730(0x3aa)]},{'start':_0x2ccae9[_0x38f730(0x3eb)][_0x38f730(0x29a)][_0x38f730(0x357)],'end':_0x2ccae9[_0x38f730(0x3eb)][_0x38f730(0x29a)]['endRow']});if(_0x1f1c57===null)return{'m1Prime':[_0x335767,{'id':_univerjs_sheets_filter[_0x38f730(0x274)]['id'],'params':{'unitId':_0x2ccae9[_0x38f730(0x3eb)]['unitId'],'subUnitId':_0x2ccae9[_0x38f730(0x3eb)][_0x38f730(0x1d0)]}}],'m2Prime':[]};return _0x3c928b[_0x38f730(0x3eb)][_0x38f730(0x29a)][_0x38f730(0x357)]=_0x1f1c57[_0x38f730(0x40e)],_0x3c928b[_0x38f730(0x3eb)][_0x38f730(0x29a)][_0x38f730(0x3aa)]=_0x1f1c57[_0x38f730(0x3bc)],{'m1Prime':[_0x3c928b,_0x335767],'m2Prime':[_0x3c928b]};}},removeRowMutationWithSetWorksheetRowAutoHeight={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c5)]['id'],'handler'(_0x2874cf,_0x469247){const _0x10675f=_0xfc9601,_0x166e50={'m1Prime':_0x2874cf,'m2Prime':_0x469247};if(_0x2874cf['params']['unitId']!==_0x469247[_0x10675f(0x3eb)][_0x10675f(0x1d0)]||_0x2874cf[_0x10675f(0x3eb)]['subUnitId']!==_0x469247[_0x10675f(0x3eb)][_0x10675f(0x25e)])return _0x166e50;const _0x16d099=_univerjs_core[_0x10675f(0x1c3)][_0x10675f(0x1cf)](_0x2874cf),_0xb55587=_univerjs_core['Tools']['deepClone'](_0x469247),{rowsAutoHeightInfo:_0x43d81b}=_0xb55587['params'];for(let _0x32911b=_0x43d81b['length']-0x1;_0x32911b>=0x0;_0x32911b--){const _0x5c0f51=_0x43d81b[_0x32911b],_0x32ef16={'startRow':_0x5c0f51[_0x10675f(0x2bb)],'endRow':_0x5c0f51[_0x10675f(0x2bb)],'startColumn':0x0,'endColumn':0x0},_0x597d15=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets[_0x10675f(0x1eb)])(_0x2874cf[_0x10675f(0x3eb)][_0x10675f(0x29a)])),(0x0,_univerjs_sheets[_0x10675f(0x1eb)])(_0x32ef16));if(_0x597d15==null)_0x43d81b[_0x10675f(0x247)](_0x32911b,0x1);else _0x5c0f51[_0x10675f(0x2bb)]+=_0x597d15[_0x10675f(0x2af)];}return{'m1Prime':_0x16d099,'m2Prime':_0xb55587};}},removeRowMutationWithSetWorksheetRowHeight={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x304)]['id'],'handler'(_0x525851,_0x3bd1df){const _0x219e6f=_0xfc9601,_0x1b0f56={'m1Prime':_0x525851,'m2Prime':_0x3bd1df};if(_0x525851['params'][_0x219e6f(0x1d0)]!==_0x3bd1df[_0x219e6f(0x3eb)]['unitId']||_0x525851[_0x219e6f(0x3eb)][_0x219e6f(0x25e)]!==_0x3bd1df['params'][_0x219e6f(0x25e)])return _0x1b0f56;const _0x47e39a=_univerjs_core[_0x219e6f(0x1c3)][_0x219e6f(0x1cf)](_0x525851),_0x14710d=_univerjs_core[_0x219e6f(0x1c3)][_0x219e6f(0x1cf)](_0x3bd1df),{ranges:_0x3ca93e,rowHeight:_0x10d3f8}=_0x14710d[_0x219e6f(0x3eb)];_0x3ca93e[_0x219e6f(0x302)](_0x549e88=>{const _0x337e9e=_0x219e6f,_0x1f8009=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets[_0x337e9e(0x1eb)])(_0x525851[_0x337e9e(0x3eb)][_0x337e9e(0x29a)])),(0x0,_univerjs_sheets['rotateRange'])(_0x549e88));if(_0x1f8009==null)_0x14710d['id']=_univerjs_sheets['EmptyMutation']['id'];else _0x549e88[_0x337e9e(0x357)]+=_0x1f8009[_0x337e9e(0x2af)],_0x549e88[_0x337e9e(0x3aa)]+=_0x1f8009[_0x337e9e(0x2af)]+_0x1f8009[_0x337e9e(0x29d)];});if(typeof _0x10d3f8!==_0x219e6f(0x28f))(0x0,_univerjs_core[_0x219e6f(0x382)])(_0x525851[_0x219e6f(0x3eb)][_0x219e6f(0x29a)][_0x219e6f(0x357)],_0x525851[_0x219e6f(0x3eb)][_0x219e6f(0x29a)][_0x219e6f(0x3aa)]-_0x525851[_0x219e6f(0x3eb)][_0x219e6f(0x29a)][_0x219e6f(0x357)]+0x1,_0x10d3f8);return{'m1Prime':_0x47e39a,'m2Prime':_0x14710d};}},removeRowMutationWithSetWorksheetRowIsAutoHeight={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x37a)]['id'],'handler'(_0x5b0bba,_0xe6c55f){const _0x4c767a=_0xfc9601,_0x5ec68f={'m1Prime':_0x5b0bba,'m2Prime':_0xe6c55f};if(_0x5b0bba[_0x4c767a(0x3eb)][_0x4c767a(0x1d0)]!==_0xe6c55f['params'][_0x4c767a(0x1d0)]||_0x5b0bba[_0x4c767a(0x3eb)][_0x4c767a(0x25e)]!==_0xe6c55f[_0x4c767a(0x3eb)][_0x4c767a(0x25e)])return _0x5ec68f;const _0x74e324=_univerjs_core[_0x4c767a(0x1c3)]['deepClone'](_0x5b0bba),_0x173cd4=_univerjs_core['Tools'][_0x4c767a(0x1cf)](_0xe6c55f),{ranges:_0x582431,autoHeightInfo:_0x12a45a}=_0x173cd4[_0x4c767a(0x3eb)];_0x582431[_0x4c767a(0x302)](_0x16c2da=>{const _0x46534d=_0x4c767a,_0x3cbb6a=(0x0,_univerjs_sheets[_0x46534d(0x40a)])(toColumn((0x0,_univerjs_sheets[_0x46534d(0x1eb)])(_0x5b0bba[_0x46534d(0x3eb)][_0x46534d(0x29a)])),(0x0,_univerjs_sheets['rotateRange'])(_0x16c2da));if(_0x3cbb6a==null)_0x173cd4['id']=_univerjs_sheets[_0x46534d(0x305)]['id'];else _0x16c2da['startRow']+=_0x3cbb6a[_0x46534d(0x2af)],_0x16c2da[_0x46534d(0x3aa)]+=_0x3cbb6a['step']+_0x3cbb6a['length'];});if(typeof _0x12a45a!=='number')(0x0,_univerjs_core[_0x4c767a(0x382)])(_0x5b0bba['params']['range'][_0x4c767a(0x357)],_0x5b0bba[_0x4c767a(0x3eb)][_0x4c767a(0x29a)][_0x4c767a(0x3aa)]-_0x5b0bba['params'][_0x4c767a(0x29a)][_0x4c767a(0x357)]+0x1,_0x12a45a);return{'m1Prime':_0x74e324,'m2Prime':_0x173cd4};}},removeRowWithUpdateCommentRef={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x365)]['id'],'handler':(_0x301538,_0x518b5b)=>{const _0x2f249a=_0xfc9601,_0x213017={'m1Prime':_0x301538,'m2Prime':_0x518b5b};if(_0x301538['params'][_0x2f249a(0x1d0)]!==_0x518b5b['params'][_0x2f249a(0x1d0)]||_0x301538[_0x2f249a(0x3eb)][_0x2f249a(0x25e)]!==_0x518b5b[_0x2f249a(0x3eb)][_0x2f249a(0x25e)])return _0x213017;const _0x289790=transformUpdateCommentRefWithRefRange(_0x518b5b,{'id':_univerjs_sheets[_0x2f249a(0x21c)]['id'],'params':{'unitId':_0x301538['params'][_0x2f249a(0x1d0)],'subUnitId':_0x301538[_0x2f249a(0x3eb)][_0x2f249a(0x25e)],'range':_0x301538[_0x2f249a(0x3eb)][_0x2f249a(0x29a)]}});return{'m1Prime':[_0x301538,..._0x289790],'m2Prime':[_0x518b5b,..._0x289790]};}},removeRowMutationWithUpdateDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x3a8)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x17f84b,_0x1233ce)=>{const _0x5aca7f=_0xfc9601,_0x5468f7={'m1Prime':_0x17f84b,'m2Prime':_0x1233ce};if(_0x17f84b['params'][_0x5aca7f(0x1d0)]!==_0x1233ce[_0x5aca7f(0x3eb)][_0x5aca7f(0x1d0)]||_0x1233ce[_0x5aca7f(0x3eb)][_0x5aca7f(0x25e)]!==_0x17f84b[_0x5aca7f(0x3eb)][_0x5aca7f(0x25e)])return _0x5468f7;const _0x50c0e8=transformUpdateDataValidationWithRefRange(_0x1233ce,{'id':_univerjs_sheets['RemoveRowCommand']['id'],'params':{'range':_0x17f84b['params'][_0x5aca7f(0x29a)]}});return{'m1Prime':[_0x17f84b,..._0x50c0e8],'m2Prime':[_0x1233ce,..._0x50c0e8]};}},removeWorksheetMergeMutationWithAddMerge={'m1':_univerjs_sheets[_0xfc9601(0x374)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler'(_0x281c74,_0x32e130){const _0x57f016=_0xfc9601,_0x2d9b76=_univerjs_core[_0x57f016(0x1c3)][_0x57f016(0x1cf)](_0x281c74),_0x3086b3=_univerjs_core[_0x57f016(0x1c3)][_0x57f016(0x1cf)](_0x32e130);if(_0x281c74[_0x57f016(0x3eb)][_0x57f016(0x1d0)]!==_0x32e130[_0x57f016(0x3eb)]['unitId']||_0x281c74['params'][_0x57f016(0x25e)]!==_0x32e130[_0x57f016(0x3eb)][_0x57f016(0x25e)])return{'m1Prime':_0x2d9b76,'m2Prime':_0x3086b3};for(let _0x352dff=0x0;_0x352dff<_0x2d9b76[_0x57f016(0x3eb)][_0x57f016(0x3a3)][_0x57f016(0x29d)];_0x352dff++){let _0x38062e=![];for(let _0x234164=0x0;_0x234164<_0x3086b3['params'][_0x57f016(0x3a3)][_0x57f016(0x29d)];_0x234164++){const _0x19f308=_0x2d9b76[_0x57f016(0x3eb)]['ranges'][_0x352dff],_0x57581e=_0x3086b3[_0x57f016(0x3eb)][_0x57f016(0x3a3)][_0x234164];if(_univerjs_core[_0x57f016(0x330)][_0x57f016(0x3b4)](_0x19f308,_0x57581e)){_0x38062e=!![];break;}}_0x38062e&&(_0x2d9b76[_0x57f016(0x3eb)][_0x57f016(0x3a3)]['splice'](_0x352dff,0x1),_0x352dff--);}if(_0x2d9b76['params'][_0x57f016(0x3a3)][_0x57f016(0x29d)]===0x0)_0x2d9b76['id']=_univerjs_sheets[_0x57f016(0x305)]['id'];return{'m1Prime':_0x2d9b76,'m2Prime':_0x3086b3};}},removeWorksheetMergeMutationWithInsertColMutation={'m1':_univerjs_sheets[_0xfc9601(0x374)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'handler'(_0x335555,_0x41970b){const _0x5265cf=_0xfc9601,_0x3ffe15=_univerjs_core[_0x5265cf(0x1c3)][_0x5265cf(0x1cf)](_0x335555),_0x7ea036=_univerjs_core[_0x5265cf(0x1c3)][_0x5265cf(0x1cf)](_0x41970b);if(_0x335555[_0x5265cf(0x3eb)][_0x5265cf(0x1d0)]!==_0x41970b[_0x5265cf(0x3eb)]['unitId']||_0x335555[_0x5265cf(0x3eb)]['subUnitId']!==_0x41970b[_0x5265cf(0x3eb)]['subUnitId'])return{'m1Prime':_0x3ffe15,'m2Prime':_0x7ea036};const _0x190d72=_0x3ffe15[_0x5265cf(0x3eb)][_0x5265cf(0x3a3)]['map'](_0x33a91e=>{const _0x2c0b6c=_0x5265cf,_0x4446a8=_0x7ea036[_0x2c0b6c(0x3eb)][_0x2c0b6c(0x29a)],_0x341de7=_0x4446a8['endColumn']-_0x4446a8[_0x2c0b6c(0x245)]+0x1;if(_0x4446a8[_0x2c0b6c(0x245)]<=_0x33a91e[_0x2c0b6c(0x245)])return{..._0x33a91e,'startColumn':_0x33a91e[_0x2c0b6c(0x245)]+_0x341de7,'endColumn':_0x33a91e[_0x2c0b6c(0x22a)]+_0x341de7};else{if(_0x4446a8[_0x2c0b6c(0x245)]>_0x33a91e[_0x2c0b6c(0x245)]&&_0x4446a8['startColumn']<=_0x33a91e[_0x2c0b6c(0x22a)])return{..._0x33a91e,'endColumn':_0x33a91e[_0x2c0b6c(0x22a)]+_0x341de7};else return{..._0x33a91e};}});return _0x3ffe15[_0x5265cf(0x3eb)][_0x5265cf(0x3a3)]=_0x190d72,{'m1Prime':_0x3ffe15,'m2Prime':_0x7ea036};}},removeWorksheetMergeMutationWithInsertRowMutation={'m1':_univerjs_sheets[_0xfc9601(0x374)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x286)]['id'],'handler'(_0xb02588,_0x27baa8){const _0x7c6878=_0xfc9601,_0x295333=_univerjs_core[_0x7c6878(0x1c3)][_0x7c6878(0x1cf)](_0xb02588),_0x2c4b87=_univerjs_core['Tools']['deepClone'](_0x27baa8);if(_0xb02588['params'][_0x7c6878(0x1d0)]!==_0x27baa8[_0x7c6878(0x3eb)][_0x7c6878(0x1d0)]||_0xb02588[_0x7c6878(0x3eb)][_0x7c6878(0x25e)]!==_0x27baa8[_0x7c6878(0x3eb)][_0x7c6878(0x25e)])return{'m1Prime':_0x295333,'m2Prime':_0x2c4b87};const _0x4f7e90=_0x295333[_0x7c6878(0x3eb)][_0x7c6878(0x3a3)][_0x7c6878(0x3b3)](_0x207303=>{const _0x29b22c=_0x7c6878,_0x30d8c5=_0x2c4b87[_0x29b22c(0x3eb)]['range'],_0x18f8c4=_0x30d8c5[_0x29b22c(0x3aa)]-_0x30d8c5[_0x29b22c(0x357)]+0x1;if(_0x30d8c5[_0x29b22c(0x357)]<=_0x207303[_0x29b22c(0x357)])return{..._0x207303,'startRow':_0x207303[_0x29b22c(0x357)]+_0x18f8c4,'endRow':_0x207303[_0x29b22c(0x3aa)]+_0x18f8c4};else{if(_0x30d8c5[_0x29b22c(0x357)]>_0x207303['startRow']&&_0x30d8c5[_0x29b22c(0x357)]<=_0x207303[_0x29b22c(0x3aa)])return{..._0x207303,'endRow':_0x207303[_0x29b22c(0x3aa)]+_0x18f8c4};else return{..._0x207303};}});return _0x295333[_0x7c6878(0x3eb)][_0x7c6878(0x3a3)]=_0x4f7e90,{'m1Prime':_0x295333,'m2Prime':_0x2c4b87};}},removeWorksheetMergeMutationWithMoveColMutation={'m1':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'m2':_univerjs_sheets['MoveColsMutation']['id'],'handler'(_0xc82d12,_0x4d07bd){const _0x5cc4fa=_0xfc9601,_0x2c1ecb=_univerjs_core[_0x5cc4fa(0x1c3)][_0x5cc4fa(0x1cf)](_0xc82d12),_0x6aee1c=_univerjs_core[_0x5cc4fa(0x1c3)]['deepClone'](_0x4d07bd);if(_0xc82d12[_0x5cc4fa(0x3eb)][_0x5cc4fa(0x1d0)]!==_0x4d07bd[_0x5cc4fa(0x3eb)]['unitId']||_0xc82d12['params']['subUnitId']!==_0x4d07bd['params'][_0x5cc4fa(0x25e)])return{'m1Prime':_0x2c1ecb,'m2Prime':_0x6aee1c};const _0x4dab6a=_0x2c1ecb[_0x5cc4fa(0x3eb)]['ranges']['reduce']((_0x4f0ac5,_0x237550)=>{const _0x4c09ee=_0x5cc4fa,{sourceRange:_0x55fd21,targetRange:_0xdedb2}=_0x4d07bd[_0x4c09ee(0x3eb)],_0x1b2cf0={..._0x237550};if(_0x55fd21[_0x4c09ee(0x22a)]<_0x1b2cf0[_0x4c09ee(0x245)]&&_0xdedb2['startColumn']>_0x1b2cf0[_0x4c09ee(0x22a)])_0x1b2cf0[_0x4c09ee(0x245)]-=_0x55fd21['endColumn']-_0x55fd21[_0x4c09ee(0x245)]+0x1,_0x1b2cf0[_0x4c09ee(0x22a)]-=_0x55fd21[_0x4c09ee(0x22a)]-_0x55fd21[_0x4c09ee(0x245)]+0x1,isMergeCell(_0x1b2cf0)&&_0x4f0ac5[_0x4c09ee(0x380)](_0x1b2cf0);else{if(_0x55fd21[_0x4c09ee(0x245)]>_0x1b2cf0[_0x4c09ee(0x22a)]&&_0xdedb2['endColumn']<_0x1b2cf0['startColumn'])_0x1b2cf0[_0x4c09ee(0x245)]+=_0x55fd21[_0x4c09ee(0x22a)]-_0x55fd21['startColumn']+0x1,_0x1b2cf0[_0x4c09ee(0x22a)]+=_0x55fd21[_0x4c09ee(0x22a)]-_0x55fd21['startColumn']+0x1,isMergeCell(_0x1b2cf0)&&_0x4f0ac5[_0x4c09ee(0x380)](_0x1b2cf0);else{if(_univerjs_core[_0x4c09ee(0x330)][_0x4c09ee(0x3b4)](_0x1b2cf0,_0x55fd21)||_univerjs_core[_0x4c09ee(0x330)][_0x4c09ee(0x3b4)](_0x1b2cf0,_0xdedb2)){}else _0x4f0ac5[_0x4c09ee(0x380)](_0x1b2cf0);}}return _0x4f0ac5;},[]);_0x2c1ecb[_0x5cc4fa(0x3eb)]['ranges']=_0x4dab6a;if(_0x2c1ecb[_0x5cc4fa(0x3eb)]['ranges'][_0x5cc4fa(0x29d)]===0x0)_0x2c1ecb['id']=_univerjs_sheets[_0x5cc4fa(0x305)]['id'];return{'m1Prime':_0x2c1ecb,'m2Prime':_0x6aee1c};}},removeWorksheetMergeMutationWithMoveRowMutation={'m1':_univerjs_sheets[_0xfc9601(0x374)]['id'],'m2':_univerjs_sheets['MoveRowsMutation']['id'],'handler'(_0x36c54d,_0x13266a){const _0x504c07=_0xfc9601,_0x58b6dc=_univerjs_core['Tools'][_0x504c07(0x1cf)](_0x36c54d),_0x3ee815=_univerjs_core[_0x504c07(0x1c3)][_0x504c07(0x1cf)](_0x13266a);if(_0x36c54d[_0x504c07(0x3eb)][_0x504c07(0x1d0)]!==_0x13266a[_0x504c07(0x3eb)][_0x504c07(0x1d0)]||_0x36c54d[_0x504c07(0x3eb)][_0x504c07(0x25e)]!==_0x13266a['params'][_0x504c07(0x25e)])return{'m1Prime':_0x58b6dc,'m2Prime':_0x3ee815};const _0x5bddf6=_0x58b6dc[_0x504c07(0x3eb)][_0x504c07(0x3a3)][_0x504c07(0x2a5)]((_0xdde9a1,_0x1809cd)=>{const _0x22ec85=_0x504c07,{sourceRange:_0xa3ac51,targetRange:_0x40c1ee}=_0x13266a[_0x22ec85(0x3eb)],_0x2f5428={..._0x1809cd};if(_0xa3ac51['endRow']<_0x2f5428[_0x22ec85(0x357)]&&_0x40c1ee['startRow']>_0x2f5428[_0x22ec85(0x3aa)])_0x2f5428[_0x22ec85(0x357)]-=_0xa3ac51[_0x22ec85(0x3aa)]-_0xa3ac51[_0x22ec85(0x357)]+0x1,_0x2f5428[_0x22ec85(0x3aa)]-=_0xa3ac51[_0x22ec85(0x3aa)]-_0xa3ac51[_0x22ec85(0x357)]+0x1,isMergeCell(_0x2f5428)&&_0xdde9a1[_0x22ec85(0x380)](_0x2f5428);else{if(_0xa3ac51[_0x22ec85(0x357)]>_0x2f5428['endRow']&&_0x40c1ee[_0x22ec85(0x3aa)]<_0x2f5428[_0x22ec85(0x357)])_0x2f5428[_0x22ec85(0x357)]+=_0xa3ac51[_0x22ec85(0x3aa)]-_0xa3ac51[_0x22ec85(0x357)]+0x1,_0x2f5428[_0x22ec85(0x3aa)]+=_0xa3ac51[_0x22ec85(0x3aa)]-_0xa3ac51['startRow']+0x1,isMergeCell(_0x2f5428)&&_0xdde9a1[_0x22ec85(0x380)](_0x2f5428);else{if(_univerjs_core[_0x22ec85(0x330)][_0x22ec85(0x3b4)](_0x2f5428,_0xa3ac51)||_univerjs_core['Rectangle'][_0x22ec85(0x3b4)](_0x2f5428,_0x40c1ee)){}else _0xdde9a1[_0x22ec85(0x380)](_0x2f5428);}}return _0xdde9a1;},[]);_0x58b6dc[_0x504c07(0x3eb)][_0x504c07(0x3a3)]=_0x5bddf6;if(_0x58b6dc['params'][_0x504c07(0x3a3)][_0x504c07(0x29d)]===0x0)_0x58b6dc['id']=_univerjs_sheets[_0x504c07(0x305)]['id'];return{'m1Prime':_0x58b6dc,'m2Prime':_0x3ee815};}},removeWorksheetMergeMutationWithRemoveColMutation={'m1':_univerjs_sheets[_0xfc9601(0x374)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'handler'(_0x25a69b,_0x3a3c93){const _0x49249a=_0xfc9601,_0x570912=_univerjs_core[_0x49249a(0x1c3)]['deepClone'](_0x25a69b),_0x3fbb16=_univerjs_core['Tools'][_0x49249a(0x1cf)](_0x3a3c93);if(_0x25a69b['params']['unitId']!==_0x3a3c93[_0x49249a(0x3eb)][_0x49249a(0x1d0)]||_0x25a69b['params'][_0x49249a(0x25e)]!==_0x3a3c93[_0x49249a(0x3eb)][_0x49249a(0x25e)])return{'m1Prime':_0x570912,'m2Prime':_0x3fbb16};const _0x3c4245=_0x570912[_0x49249a(0x3eb)][_0x49249a(0x3a3)][_0x49249a(0x2a5)]((_0x75c996,_0x2dd507)=>{const _0xb24fb8=_0x49249a,_0x3f453b=_0x3fbb16[_0xb24fb8(0x3eb)][_0xb24fb8(0x29a)],_0x44de86=_0x3f453b[_0xb24fb8(0x22a)]-_0x3f453b['startColumn']+0x1;let _0x4d2146={..._0x2dd507};if(_0x3f453b[_0xb24fb8(0x245)]>_0x2dd507[_0xb24fb8(0x22a)])_0x4d2146={..._0x2dd507};else{if(_0x3f453b[_0xb24fb8(0x245)]>=_0x2dd507[_0xb24fb8(0x245)]&&_0x3f453b[_0xb24fb8(0x245)]<=_0x2dd507[_0xb24fb8(0x22a)]&&_0x3f453b['endColumn']>_0x2dd507['endColumn']){_0x4d2146[_0xb24fb8(0x22a)]=_0x3f453b[_0xb24fb8(0x245)]-0x1;if(_0x3f453b['startColumn']===_0x2dd507[_0xb24fb8(0x245)])_0x4d2146=null;}else{if(_0x3f453b['startColumn']>_0x2dd507[_0xb24fb8(0x245)]&&_0x3f453b[_0xb24fb8(0x22a)]<_0x2dd507[_0xb24fb8(0x22a)])_0x4d2146['endColumn']=_0x2dd507[_0xb24fb8(0x22a)]-_0x44de86;else{if(_0x3f453b['startColumn']<_0x2dd507[_0xb24fb8(0x245)]&&_0x3f453b[_0xb24fb8(0x22a)]>=_0x2dd507[_0xb24fb8(0x245)]&&_0x3f453b[_0xb24fb8(0x22a)]<=_0x2dd507['endColumn']){_0x4d2146[_0xb24fb8(0x245)]=_0x3f453b[_0xb24fb8(0x245)],_0x4d2146[_0xb24fb8(0x22a)]=_0x2dd507[_0xb24fb8(0x22a)]-_0x44de86;if(_0x3f453b[_0xb24fb8(0x22a)]===_0x2dd507[_0xb24fb8(0x22a)])_0x4d2146=null;}else{if(_0x3f453b[_0xb24fb8(0x245)]<=_0x2dd507[_0xb24fb8(0x245)]&&_0x3f453b['endColumn']>=_0x2dd507[_0xb24fb8(0x22a)])_0x4d2146=null;else _0x3f453b['endColumn']<_0x2dd507[_0xb24fb8(0x245)]&&(_0x4d2146[_0xb24fb8(0x245)]=_0x2dd507[_0xb24fb8(0x245)]-_0x44de86,_0x4d2146[_0xb24fb8(0x22a)]=_0x2dd507[_0xb24fb8(0x22a)]-_0x44de86);}}}}if(_0x4d2146&&!(_0x4d2146[_0xb24fb8(0x357)]===_0x4d2146['endRow']&&_0x4d2146['startColumn']===_0x4d2146[_0xb24fb8(0x22a)]))return _0x75c996[_0xb24fb8(0x380)](_0x4d2146),_0x75c996;else return _0x75c996;},[]);_0x570912[_0x49249a(0x3eb)]['ranges']=_0x3c4245;if(_0x570912[_0x49249a(0x3eb)][_0x49249a(0x3a3)][_0x49249a(0x29d)]===0x0)_0x570912['id']=_univerjs_sheets[_0x49249a(0x305)]['id'];return{'m1Prime':_0x570912,'m2Prime':_0x3fbb16};}},removeWorksheetMergeMutationWithRemoveRowMutation={'m1':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'m2':_univerjs_sheets['RemoveRowMutation']['id'],'handler'(_0x5e5ce1,_0x42547e){const _0x2f346e=_0xfc9601,_0x5890b6=_univerjs_core[_0x2f346e(0x1c3)]['deepClone'](_0x5e5ce1),_0x20e1a2=_univerjs_core[_0x2f346e(0x1c3)][_0x2f346e(0x1cf)](_0x42547e);if(_0x5e5ce1['params']['unitId']!==_0x42547e[_0x2f346e(0x3eb)][_0x2f346e(0x1d0)]||_0x5e5ce1[_0x2f346e(0x3eb)][_0x2f346e(0x25e)]!==_0x42547e['params'][_0x2f346e(0x25e)])return{'m1Prime':_0x5890b6,'m2Prime':_0x20e1a2};const _0x3e0165=_0x5890b6['params']['ranges'][_0x2f346e(0x2a5)]((_0x2ff714,_0x3e709f)=>{const _0xb59321=_0x2f346e,_0x2f0905=_0x20e1a2[_0xb59321(0x3eb)][_0xb59321(0x29a)],_0x475885=_0x2f0905[_0xb59321(0x3aa)]-_0x2f0905[_0xb59321(0x357)]+0x1;let _0x4ebc1d={..._0x3e709f};if(_0x2f0905[_0xb59321(0x357)]>_0x3e709f[_0xb59321(0x3aa)])_0x4ebc1d={..._0x3e709f};else{if(_0x2f0905[_0xb59321(0x357)]>=_0x3e709f[_0xb59321(0x357)]&&_0x2f0905[_0xb59321(0x357)]<=_0x3e709f[_0xb59321(0x3aa)]&&_0x2f0905[_0xb59321(0x3aa)]>_0x3e709f['endRow']){_0x4ebc1d[_0xb59321(0x3aa)]=_0x2f0905[_0xb59321(0x357)]-0x1;if(_0x2f0905['startRow']===_0x3e709f[_0xb59321(0x357)])_0x4ebc1d=null;}else{if(_0x2f0905[_0xb59321(0x357)]>_0x3e709f['startRow']&&_0x2f0905[_0xb59321(0x3aa)]<_0x3e709f[_0xb59321(0x3aa)])_0x4ebc1d['endRow']=_0x3e709f['endRow']-_0x475885;else{if(_0x2f0905[_0xb59321(0x357)]<_0x3e709f[_0xb59321(0x357)]&&_0x2f0905[_0xb59321(0x3aa)]>=_0x3e709f[_0xb59321(0x357)]&&_0x2f0905[_0xb59321(0x3aa)]<=_0x3e709f[_0xb59321(0x3aa)]){_0x4ebc1d[_0xb59321(0x357)]=_0x2f0905[_0xb59321(0x357)],_0x4ebc1d[_0xb59321(0x3aa)]=_0x3e709f[_0xb59321(0x3aa)]-_0x475885;if(_0x2f0905['endRow']===_0x3e709f['endRow'])_0x4ebc1d=null;}else{if(_0x2f0905[_0xb59321(0x357)]<=_0x3e709f[_0xb59321(0x357)]&&_0x2f0905['endRow']>=_0x3e709f[_0xb59321(0x3aa)])_0x4ebc1d=null;else _0x2f0905[_0xb59321(0x3aa)]<_0x3e709f[_0xb59321(0x357)]&&(_0x4ebc1d[_0xb59321(0x357)]=_0x3e709f[_0xb59321(0x357)]-_0x475885,_0x4ebc1d[_0xb59321(0x3aa)]=_0x3e709f[_0xb59321(0x3aa)]-_0x475885);}}}}if(_0x4ebc1d&&!(_0x4ebc1d[_0xb59321(0x357)]===_0x4ebc1d['endRow']&&_0x4ebc1d['startColumn']===_0x4ebc1d[_0xb59321(0x22a)]))return _0x2ff714[_0xb59321(0x380)](_0x4ebc1d),_0x2ff714;else return _0x2ff714;},[]);_0x5890b6[_0x2f346e(0x3eb)][_0x2f346e(0x3a3)]=_0x3e0165;if(_0x5890b6[_0x2f346e(0x3eb)][_0x2f346e(0x3a3)][_0x2f346e(0x29d)]===0x0)_0x5890b6['id']=_univerjs_sheets[_0x2f346e(0x305)]['id'];return{'m1Prime':_0x5890b6,'m2Prime':_0x20e1a2};}},removeWorksheetMergeMutationWithSetSelection={'m1':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x1cd)]['id'],'handler'(_0x2f812e,_0x18e09b){const _0x454e6f=_0xfc9601,_0xb0e169={'m1Prime':[],'m2Prime':[]};if(_0x2f812e[_0x454e6f(0x3eb)][_0x454e6f(0x1d0)]!==_0x18e09b[_0x454e6f(0x3eb)][_0x454e6f(0x1d0)]||_0x2f812e['params'][_0x454e6f(0x25e)]!==_0x18e09b[_0x454e6f(0x3eb)][_0x454e6f(0x25e)])return _0xb0e169;const _0x43451f=_univerjs_core[_0x454e6f(0x1c3)][_0x454e6f(0x1cf)](_0x18e09b),_0x27c985=_0x43451f[_0x454e6f(0x3eb)]['selections'],_0x3a66dc=_0x27c985[_0x27c985[_0x454e6f(0x29d)]-0x1][_0x454e6f(0x40d)];return _0x2f812e['params']['ranges'][_0x454e6f(0x302)](_0x33bb13=>{const _0x62bbbc=_0x454e6f;_0x3a66dc&&_univerjs_core[_0x62bbbc(0x330)][_0x62bbbc(0x3b4)](_0x33bb13,_0x3a66dc)&&(_0x3a66dc[_0x62bbbc(0x373)]=![],_0x3a66dc[_0x62bbbc(0x201)]=![],_0x3a66dc[_0x62bbbc(0x357)]=_0x33bb13['startRow'],_0x3a66dc['startColumn']=_0x33bb13[_0x62bbbc(0x245)],_0x3a66dc[_0x62bbbc(0x3aa)]=_0x33bb13['startRow'],_0x3a66dc[_0x62bbbc(0x22a)]=_0x33bb13['startColumn'],_0x3a66dc['actualColumn']=_0x33bb13['startColumn'],_0x3a66dc[_0x62bbbc(0x418)]=_0x33bb13[_0x62bbbc(0x357)]);}),_0xb0e169[_0x454e6f(0x3d9)][_0x454e6f(0x380)](_0x43451f),_0xb0e169;}},ReorderRangeUndoMutationFactory=_0x354541=>{const _0x31daed=_0xfc9601,{order:_0x19d392}=_0x354541,_0x1a2085={};return Object[_0x31daed(0x38e)](_0x19d392)[_0x31daed(0x302)](_0x5e288e=>{_0x1a2085[_0x19d392[Number(_0x5e288e)]]=Number(_0x5e288e);}),{..._0x354541,'order':_0x1a2085};},mergeOrder=(_0x273ba4,_0x34da26)=>{const _0x4483bf=_0xfc9601,_0x7c4dfc={};return Array[_0x4483bf(0x3a4)](new Set(Object[_0x4483bf(0x38e)](_0x273ba4)[_0x4483bf(0x2da)](Object[_0x4483bf(0x38e)](_0x34da26))[_0x4483bf(0x3b3)](Number)))[_0x4483bf(0x302)](_0x2411fb=>{let _0x4e9617;if(_0x2411fb in _0x34da26){_0x4e9617=_0x34da26[_0x2411fb];if(_0x4e9617 in _0x273ba4)_0x4e9617=_0x273ba4[_0x4e9617];}else _0x4e9617=_0x273ba4[_0x2411fb];_0x7c4dfc[_0x2411fb]=_0x4e9617;}),_0x7c4dfc;},reorderRangeMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x1ca)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1ca)]['id'],'handler'(_0x31d808,_0x19b736){const _0x3e6072=_0xfc9601,_0x3e7395={'m1Prime':_0x31d808,'m2Prime':_0x19b736};if(_0x31d808[_0x3e6072(0x3eb)]['unitId']!==_0x19b736[_0x3e6072(0x3eb)][_0x3e6072(0x1d0)])return _0x3e7395;const {range:_0x25c4c7}=_0x31d808[_0x3e6072(0x3eb)],{range:_0xafc116}=_0x19b736[_0x3e6072(0x3eb)];if(_0xafc116[_0x3e6072(0x245)]===_0x25c4c7[_0x3e6072(0x245)]&&_0xafc116['endColumn']===_0x25c4c7[_0x3e6072(0x22a)]&&_0xafc116[_0x3e6072(0x357)]<=_0x25c4c7[_0x3e6072(0x357)]&&_0xafc116['endRow']>=_0x25c4c7[_0x3e6072(0x3aa)]){const _0x2798fa=ReorderRangeUndoMutationFactory(_0x31d808['params'])[_0x3e6072(0x2d8)];return{'m1Prime':[],'m2Prime':{'id':_univerjs_sheets['ReorderRangeMutation']['id'],'params':{..._0x19b736['params'],'range':_0xafc116,'order':mergeOrder(_0x2798fa,_0x19b736[_0x3e6072(0x3eb)][_0x3e6072(0x2d8)])}}};}if(_univerjs_core[_0x3e6072(0x330)][_0x3e6072(0x3b4)](_0x25c4c7,_0xafc116))return{'error':new Error(_0x3e6072(0x224))};return _0x3e7395;}},RevertRevisionMutationWithOthers={'m1':RevertRevisionMutation['id'],'m2':_0xfc9601(0x3fb),'handler'(_0x44fcde,_0x2a1a65){const _0x3bf1c3=_0xfc9601;return{'error':new Error(_0x3bf1c3(0x271))};}},OthersWithRevertRevision={'m1':_0xfc9601(0x3fb),'m2':RevertRevisionMutation['id'],'handler'(_0x5b2c8b,_0x8dc052){const _0x3f1397=_0xfc9601;if(_0x5b2c8b[_0x3f1397(0x3eb)][_0x3f1397(0x1d0)]===_0x8dc052['params'][_0x3f1397(0x1d0)])return{'m1Prime':[],'m2Prime':_0x8dc052};return{'m1Prime':_0x5b2c8b,'m2Prime':_0x8dc052};}},setColDataMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x348)]['id'],'m2':_univerjs_sheets['SetColDataMutation']['id'],'handler'(_0x56fefb,_0x4847a1){const _0x3e5cda=_0xfc9601,_0x2875f7={'m1Prime':_0x56fefb,'m2Prime':_0x4847a1};if(_0x56fefb['params'][_0x3e5cda(0x1d0)]!==_0x4847a1[_0x3e5cda(0x3eb)][_0x3e5cda(0x1d0)]||_0x56fefb[_0x3e5cda(0x3eb)][_0x3e5cda(0x25e)]!==_0x4847a1[_0x3e5cda(0x3eb)]['subUnitId'])return _0x2875f7;const _0x128bfb=_0x56fefb[_0x3e5cda(0x3eb)][_0x3e5cda(0x408)],_0xaa4cd3=_0x4847a1[_0x3e5cda(0x3eb)]['columnData'],_0x4f593f={},_0x3c0a1b=_univerjs_core[_0x3e5cda(0x1c3)][_0x3e5cda(0x1cf)](_0x56fefb),_0x183edf=new Set([...Object[_0x3e5cda(0x38e)](_0x128bfb)[_0x3e5cda(0x3b3)](Number),...Object[_0x3e5cda(0x38e)](_0xaa4cd3)[_0x3e5cda(0x3b3)](Number)]);for(const _0x3bb867 of _0x183edf){const _0xc6be53=_0x128bfb[_0x3bb867],_0x4be574=_0xaa4cd3[_0x3bb867];if(_0xc6be53&&_0x4be574)_0x4f593f[_0x3bb867]={..._0xc6be53,..._0x4be574};else{if(_0xc6be53)_0x4f593f[_0x3bb867]=_0xc6be53;else{if(_0x4be574)_0x4f593f[_0x3bb867]=_0x4be574;}}}return _0x3c0a1b['params'][_0x3e5cda(0x408)]=_0x4f593f,{'m1Prime':_0x3c0a1b,'m2Prime':_0x4847a1};}},setConditionalFormattingRuleMutationWithSelf={'m1':_univerjs_sheets_conditional_formatting[_0xfc9601(0x36f)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x36f)]['id'],'handler'(_0x338611,_0x3752be){const _0x45736d=_0xfc9601;if(_0x338611[_0x45736d(0x3eb)][_0x45736d(0x1d0)]!==_0x3752be[_0x45736d(0x3eb)]['unitId']||_0x338611[_0x45736d(0x3eb)][_0x45736d(0x25e)]!==_0x3752be[_0x45736d(0x3eb)][_0x45736d(0x25e)])return{'m1Prime':_0x338611,'m2Prime':_0x3752be};if((_0x338611[_0x45736d(0x3eb)][_0x45736d(0x24d)]||_0x338611[_0x45736d(0x3eb)]['rule']['cfId'])!==(_0x3752be[_0x45736d(0x3eb)][_0x45736d(0x24d)]||_0x3752be[_0x45736d(0x3eb)]['rule'][_0x45736d(0x24d)]))return{'m1Prime':_0x338611,'m2Prime':_0x3752be};return{'m1Prime':[],'m2Prime':_univerjs_core[_0x45736d(0x1c3)]['deepClone'](_0x3752be)};}};function drawingObjectsIntersect(_0x288d3e,_0x526901){const _0x498147=_0xfc9601,_0x37c01b=_0x288d3e[_0x498147(0x2a5)]((_0x1ed7e8,_0xd83a24)=>{const _0x200b4f=_0x498147;return _0x1ed7e8[_0x200b4f(0x209)](_0xd83a24[_0x200b4f(0x2d7)],!![]),_0x1ed7e8;},new Map());return _0x526901['some'](_0x4a0526=>_0x37c01b[_0x498147(0x3a1)](_0x4a0526[_0x498147(0x2d7)])!==void 0x0);}function drawingOrderObjectsIntersect(_0x18673d,_0x2ddd9a){const _0x49c2cb=_0xfc9601,_0x1bea71=_0x18673d[_0x49c2cb(0x1bf)];return _0x2ddd9a[_0x49c2cb(0x1bf)][_0x49c2cb(0x3ad)](_0x3da18b=>_0x1bea71[_0x49c2cb(0x3e1)](_0x3da18b)!==-0x1);}const {UPDATE,REMOVE,ARRANGE}=_univerjs_sheets_drawing[_0xfc9601(0x34b)],setDrawingApplyMutationWithSelf={'m1':_univerjs_sheets_drawing[_0xfc9601(0x1d5)]['id'],'m2':_univerjs_sheets_drawing[_0xfc9601(0x1d5)]['id'],'handler'(_0x2dae3c,_0x361edd){const _0x1bccca=_0xfc9601,_0x1e9d76=_0x2dae3c[_0x1bccca(0x3eb)],_0x1d5335=_0x361edd[_0x1bccca(0x3eb)];if(_0x1e9d76['unitId']!==_0x1d5335[_0x1bccca(0x1d0)]||_0x1e9d76[_0x1bccca(0x25e)]!==_0x1d5335[_0x1bccca(0x25e)])return{'m1Prime':_0x2dae3c,'m2Prime':_0x361edd};const _0x39ab4b=_0x1e9d76['type'],_0x4eacdd=_0x1d5335[_0x1bccca(0x266)];if(_0x39ab4b===REMOVE&&_0x4eacdd===UPDATE){if(drawingObjectsIntersect(_0x1e9d76[_0x1bccca(0x3ea)],_0x1d5335[_0x1bccca(0x3ea)]))return{'m1Prime':_univerjs_core['Tools'][_0x1bccca(0x1cf)](_0x2dae3c),'m2Prime':[]};}if(_0x39ab4b===ARRANGE&&_0x4eacdd===ARRANGE){if(drawingOrderObjectsIntersect(_0x1e9d76[_0x1bccca(0x3ea)],_0x1d5335['objects'])){const _0x58f261=_univerjs_core[_0x1bccca(0x1c3)]['deepClone'](_0x2dae3c),_0x4ad175=_univerjs_core[_0x1bccca(0x1c3)][_0x1bccca(0x1cf)](_0x361edd);return{'m1Prime':{..._0x58f261,'params':{..._0x58f261[_0x1bccca(0x3eb)],'op':_univerjs_core[_0x1bccca(0x1e2)]['type'][_0x1bccca(0x295)](_0x58f261[_0x1bccca(0x3eb)]['op'],_0x4ad175[_0x1bccca(0x3eb)]['op'],'left')}},'m2Prime':{..._0x4ad175,'params':{..._0x4ad175[_0x1bccca(0x3eb)],'op':_univerjs_core[_0x1bccca(0x1e2)][_0x1bccca(0x266)][_0x1bccca(0x295)](_0x4ad175[_0x1bccca(0x3eb)]['op'],_0x58f261[_0x1bccca(0x3eb)]['op'],_0x1bccca(0x34c))}}};}}return{'m1Prime':_0x2dae3c,'m2Prime':_0x361edd};}},setFrozenMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x2ec)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2ec)]['id'],'handler'(_0x4faf3e,_0x230c7f){const _0x2a15f1=_0xfc9601;if(_0x4faf3e[_0x2a15f1(0x3eb)][_0x2a15f1(0x1d0)]!==_0x230c7f[_0x2a15f1(0x3eb)][_0x2a15f1(0x1d0)]||_0x4faf3e[_0x2a15f1(0x3eb)][_0x2a15f1(0x25e)]!==_0x230c7f[_0x2a15f1(0x3eb)][_0x2a15f1(0x25e)])return{'m1Prime':_0x4faf3e,'m2Prime':_0x230c7f};return{'m1Prime':[],'m2Prime':_0x230c7f};}},setNumfmtMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x397)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c9)]['id'],'handler'(_0x18c9a4,_0x30d4a9){const _0x5ab05f=_0xfc9601;if(_0x18c9a4['params'][_0x5ab05f(0x1d0)]!==_0x30d4a9[_0x5ab05f(0x3eb)]['unitId']||_0x18c9a4[_0x5ab05f(0x3eb)][_0x5ab05f(0x25e)]!==_0x30d4a9['params'][_0x5ab05f(0x25e)])return{'m1Prime':_0x18c9a4,'m2Prime':_0x30d4a9};const _0x520b9e=_univerjs_core[_0x5ab05f(0x1c3)][_0x5ab05f(0x1cf)](_0x18c9a4),_0x15f06b=_univerjs_core[_0x5ab05f(0x1c3)][_0x5ab05f(0x1cf)](_0x30d4a9),_0x4de83b=_0x520b9e[_0x5ab05f(0x3eb)][_0x5ab05f(0x375)],_0x3a047b=_0x15f06b['params']['ranges'];for(const _0x4df3dd in _0x4de83b){const _0x47b398=_0x4de83b[_0x4df3dd][_0x5ab05f(0x3a3)],_0x595c88=[];_0x47b398[_0x5ab05f(0x302)](_0x334b65=>{const _0x89d018=_0x5ab05f,_0x5be732=RangeSubtractRanges(_0x334b65,_0x3a047b);if(_0x5be732['length']>0x0)_0x595c88[_0x89d018(0x380)](..._0x5be732);}),_0x4de83b[_0x4df3dd][_0x5ab05f(0x3a3)]=_0x595c88;}return{'m1Prime':_0x520b9e,'m2Prime':_0x15f06b};}},setNumfmtMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x397)]['id'],'m2':_univerjs_sheets['SetNumfmtMutation']['id'],'handler'(_0x247d02,_0x3fb7c1){const _0x38b1bd=_0xfc9601;if(_0x247d02['params'][_0x38b1bd(0x1d0)]!==_0x3fb7c1[_0x38b1bd(0x3eb)][_0x38b1bd(0x1d0)]||_0x247d02['params'][_0x38b1bd(0x25e)]!==_0x3fb7c1[_0x38b1bd(0x3eb)][_0x38b1bd(0x25e)])return{'m1Prime':_0x247d02,'m2Prime':_0x3fb7c1};const _0x4ffc7c=_univerjs_core[_0x38b1bd(0x1c3)][_0x38b1bd(0x1cf)](_0x247d02),_0xe0eddc=_univerjs_core[_0x38b1bd(0x1c3)][_0x38b1bd(0x1cf)](_0x3fb7c1),_0xb1707e=_0x4ffc7c[_0x38b1bd(0x3eb)][_0x38b1bd(0x375)],_0x26c750=Object['values'](_0xe0eddc[_0x38b1bd(0x3eb)]['values'])[_0x38b1bd(0x3b3)](_0x27b642=>_0x27b642[_0x38b1bd(0x3a3)])['flat']();for(const _0x450391 in _0xb1707e){const _0x17e7a3=_0xb1707e[_0x450391][_0x38b1bd(0x3a3)],_0xbd6e39=[];_0x17e7a3[_0x38b1bd(0x302)](_0x237abe=>{const _0x102a9e=_0x38b1bd,_0x2a2f89=RangeSubtractRanges(_0x237abe,_0x26c750);if(_0x2a2f89[_0x102a9e(0x29d)]>0x0)_0xbd6e39[_0x102a9e(0x380)](..._0x2a2f89);}),_0xb1707e[_0x450391]['ranges']=_0xbd6e39;}return{'m1Prime':_0x4ffc7c,'m2Prime':_0xe0eddc};}},setRangeProtectionWithAddComment={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x411)]['id'],'handler':(_0x34009f,_0x3726e9)=>{const _0x5cdfd1=_0xfc9601,_0x341eaf={'m1Prime':_0x34009f,'m2Prime':_0x3726e9};if(_0x34009f[_0x5cdfd1(0x3eb)][_0x5cdfd1(0x1d0)]!==_0x3726e9[_0x5cdfd1(0x3eb)][_0x5cdfd1(0x1d0)]||_0x34009f[_0x5cdfd1(0x3eb)][_0x5cdfd1(0x25e)]!==_0x3726e9[_0x5cdfd1(0x3eb)][_0x5cdfd1(0x25e)])return _0x341eaf;return{'error':new Error(_0x5cdfd1(0x402))};}},setRangeProtectionWithAddConditionRule={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets_conditional_formatting['AddConditionalRuleMutation']['id'],'handler':(_0x702dad,_0xd49c86)=>{const _0x58b9ba=_0xfc9601,_0x348b2e={'m1Prime':_0x702dad,'m2Prime':_0xd49c86};if(_0x702dad['params']['unitId']!==_0xd49c86[_0x58b9ba(0x3eb)]['unitId']||_0x702dad[_0x58b9ba(0x3eb)][_0x58b9ba(0x25e)]!==_0xd49c86[_0x58b9ba(0x3eb)][_0x58b9ba(0x25e)])return _0x348b2e;const _0x5b5d03=_0x702dad[_0x58b9ba(0x3eb)][_0x58b9ba(0x331)]['ranges'],_0x5975dd=_0xd49c86[_0x58b9ba(0x3eb)][_0x58b9ba(0x331)]['ranges'];if(_0x5b5d03[_0x58b9ba(0x3ad)](_0x49d785=>_0x5975dd['some'](_0x539c72=>_univerjs_core[_0x58b9ba(0x330)][_0x58b9ba(0x3b4)](_0x49d785,_0x539c72))))return{'error':new Error(_0x58b9ba(0x2e9))};return _0x348b2e;}},setRangeProtectionWithAddWorksheetMerge={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'handler':(_0x29aee0,_0xa5bcec)=>{const _0x5c55ac=_0xfc9601,_0x4a2cab={'m1Prime':_0x29aee0,'m2Prime':_0xa5bcec};if(_0x29aee0[_0x5c55ac(0x3eb)][_0x5c55ac(0x1d0)]!==_0xa5bcec[_0x5c55ac(0x3eb)][_0x5c55ac(0x1d0)]||_0x29aee0[_0x5c55ac(0x3eb)][_0x5c55ac(0x25e)]!==_0xa5bcec[_0x5c55ac(0x3eb)][_0x5c55ac(0x25e)])return _0x4a2cab;const _0x511dcd=_0x29aee0[_0x5c55ac(0x3eb)][_0x5c55ac(0x331)][_0x5c55ac(0x3a3)],_0x53efc5=_0xa5bcec[_0x5c55ac(0x3eb)]['ranges'];if(_0x511dcd[_0x5c55ac(0x3ad)](_0x8473ee=>_0x53efc5[_0x5c55ac(0x3ad)](_0x7117d9=>_univerjs_core[_0x5c55ac(0x330)][_0x5c55ac(0x3b4)](_0x8473ee,_0x7117d9))))return{'error':new Error(_0x5c55ac(0x323))};return _0x4a2cab;}},setRangeProtectionWithAddWorksheetProtection={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'handler':(_0xf9cb05,_0x4b174d)=>{const _0x30748b=_0xfc9601,_0x561a91={'m1Prime':_0xf9cb05,'m2Prime':_0x4b174d};if(_0xf9cb05[_0x30748b(0x3eb)][_0x30748b(0x1d0)]!==_0x4b174d['params'][_0x30748b(0x1d0)]||_0xf9cb05[_0x30748b(0x3eb)]['subUnitId']!==_0x4b174d[_0x30748b(0x3eb)][_0x30748b(0x331)][_0x30748b(0x25e)])return _0x561a91;return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20protection')};}},setRangeProtectionWithDeleteConditionFormattingRule={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x327)]['id'],'handler':(_0x2d4983,_0x5a0d96)=>{const _0x18c0e8=_0xfc9601,_0x708780={'m1Prime':_0x2d4983,'m2Prime':_0x5a0d96};if(_0x2d4983[_0x18c0e8(0x3eb)][_0x18c0e8(0x1d0)]!==_0x5a0d96[_0x18c0e8(0x3eb)][_0x18c0e8(0x1d0)]||_0x2d4983[_0x18c0e8(0x3eb)][_0x18c0e8(0x25e)]!==_0x5a0d96['params'][_0x18c0e8(0x25e)])return _0x708780;return{'error':new Error(_0x18c0e8(0x27d))};}},setRangeProtectionWithInsertCol={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x32a)]['id'],'handler':(_0x2b1b5a,_0x2d2caa)=>{const _0x45df4f=_0xfc9601,_0x296801={'m1Prime':_0x2b1b5a,'m2Prime':_0x2d2caa};if(_0x2b1b5a[_0x45df4f(0x3eb)][_0x45df4f(0x1d0)]!==_0x2d2caa[_0x45df4f(0x3eb)][_0x45df4f(0x1d0)]||_0x2b1b5a['params'][_0x45df4f(0x25e)]!==_0x2d2caa[_0x45df4f(0x3eb)][_0x45df4f(0x25e)])return _0x296801;const _0x39b90c=_0x2b1b5a['params'][_0x45df4f(0x331)]['ranges'],_0x442f67=_0x2d2caa[_0x45df4f(0x3eb)][_0x45df4f(0x29a)];if(_0x39b90c[_0x45df4f(0x3ad)](_0x2c8974=>_univerjs_core['Rectangle'][_0x45df4f(0x3b4)](_0x2c8974,_0x442f67)))return{'error':new Error(_0x45df4f(0x3d6))};return _0x296801;}},setRangeProtectionWithInsertRow={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x286)]['id'],'handler':(_0x155c00,_0x503ab8)=>{const _0x4854b4=_0xfc9601,_0x1d94b6={'m1Prime':_0x155c00,'m2Prime':_0x503ab8};if(_0x155c00[_0x4854b4(0x3eb)][_0x4854b4(0x1d0)]!==_0x503ab8[_0x4854b4(0x3eb)][_0x4854b4(0x1d0)]||_0x155c00[_0x4854b4(0x3eb)][_0x4854b4(0x25e)]!==_0x503ab8['params']['subUnitId'])return _0x1d94b6;const _0x1fc8e2=_0x155c00['params'][_0x4854b4(0x331)][_0x4854b4(0x3a3)],_0x59cee9=_0x503ab8[_0x4854b4(0x3eb)]['range'];if(_0x1fc8e2[_0x4854b4(0x3ad)](_0x1bc799=>_univerjs_core[_0x4854b4(0x330)][_0x4854b4(0x3b4)](_0x1bc799,_0x59cee9)))return{'error':new Error(_0x4854b4(0x2bf))};return _0x1d94b6;}},setRangeProtectionWithMoveCol={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x363)]['id'],'handler':(_0x4d2fa1,_0x2b0458)=>{const _0x3bbbbe=_0xfc9601,_0x329f97={'m1Prime':_0x4d2fa1,'m2Prime':_0x2b0458};if(_0x4d2fa1[_0x3bbbbe(0x3eb)]['unitId']!==_0x2b0458['params']['unitId']||_0x4d2fa1[_0x3bbbbe(0x3eb)]['subUnitId']!==_0x2b0458[_0x3bbbbe(0x3eb)][_0x3bbbbe(0x25e)])return _0x329f97;const _0x5fac10=_0x4d2fa1[_0x3bbbbe(0x3eb)]['rule'][_0x3bbbbe(0x3a3)],_0x2e206d=[_0x2b0458[_0x3bbbbe(0x3eb)][_0x3bbbbe(0x202)],_0x2b0458[_0x3bbbbe(0x3eb)]['targetRange']];if(_0x5fac10[_0x3bbbbe(0x3ad)](_0x53d570=>_0x2e206d['some'](_0x32d834=>_univerjs_core[_0x3bbbbe(0x330)][_0x3bbbbe(0x3b4)](_0x53d570,_0x32d834))))return{'error':new Error(_0x3bbbbe(0x378))};return _0x329f97;}},setRangeProtectionWithMoveRange={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'handler':(_0x560a98,_0x5df139)=>{const _0x4d04b5=_0xfc9601,_0x10a659={'m1Prime':_0x560a98,'m2Prime':_0x5df139};if(_0x560a98['params'][_0x4d04b5(0x1d0)]!==_0x5df139['params'][_0x4d04b5(0x1d0)]||_0x560a98['params'][_0x4d04b5(0x25e)]!==_0x5df139[_0x4d04b5(0x3eb)][_0x4d04b5(0x3a4)][_0x4d04b5(0x25e)])return _0x10a659;const _0x49047f=_0x560a98[_0x4d04b5(0x3eb)]['rule'][_0x4d04b5(0x3a3)],_0x18b80e=[new _univerjs_core['ObjectMatrix'](_0x5df139[_0x4d04b5(0x3eb)]['from']['value'])['getDataRange'](),new _univerjs_core[(_0x4d04b5(0x3c2))](_0x5df139[_0x4d04b5(0x3eb)]['to'][_0x4d04b5(0x3e6)])[_0x4d04b5(0x3d1)]()];if(_0x49047f['some'](_0x42d0c6=>_0x18b80e[_0x4d04b5(0x3ad)](_0x5d3e50=>_univerjs_core[_0x4d04b5(0x330)]['intersects'](_0x42d0c6,_0x5d3e50))))return{'error':new Error(_0x4d04b5(0x2f2))};return _0x10a659;}},setRangeProtectionWithMoveRow={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x225)]['id'],'handler':(_0x529d58,_0x11fc8d)=>{const _0x1cbac7=_0xfc9601,_0x223326={'m1Prime':_0x529d58,'m2Prime':_0x11fc8d};if(_0x529d58[_0x1cbac7(0x3eb)][_0x1cbac7(0x1d0)]!==_0x11fc8d[_0x1cbac7(0x3eb)][_0x1cbac7(0x1d0)]||_0x529d58[_0x1cbac7(0x3eb)]['subUnitId']!==_0x11fc8d[_0x1cbac7(0x3eb)][_0x1cbac7(0x25e)])return _0x223326;const _0x5c6993=_0x529d58[_0x1cbac7(0x3eb)][_0x1cbac7(0x331)][_0x1cbac7(0x3a3)],_0x3c5a24=[_0x11fc8d[_0x1cbac7(0x3eb)]['sourceRange'],_0x11fc8d[_0x1cbac7(0x3eb)]['targetRange']];if(_0x5c6993[_0x1cbac7(0x3ad)](_0xd0b677=>_0x3c5a24[_0x1cbac7(0x3ad)](_0x436e96=>_univerjs_core[_0x1cbac7(0x330)][_0x1cbac7(0x3b4)](_0xd0b677,_0x436e96))))return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20row')};return _0x223326;}},setRangeProtectionWithRemoveCol={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1e5)]['id'],'handler':(_0x45411c,_0x75629e)=>{const _0x481ef4=_0xfc9601,_0x18c875={'m1Prime':_0x45411c,'m2Prime':_0x75629e};if(_0x45411c[_0x481ef4(0x3eb)][_0x481ef4(0x1d0)]!==_0x75629e[_0x481ef4(0x3eb)][_0x481ef4(0x1d0)]||_0x45411c[_0x481ef4(0x3eb)][_0x481ef4(0x25e)]!==_0x75629e['params'][_0x481ef4(0x25e)])return _0x18c875;const _0x462df0=_0x45411c['params'][_0x481ef4(0x331)][_0x481ef4(0x3a3)],_0xf76ac4=_0x75629e[_0x481ef4(0x3eb)][_0x481ef4(0x29a)];if(_0x462df0[_0x481ef4(0x3ad)](_0xeea0f2=>_univerjs_core[_0x481ef4(0x330)][_0x481ef4(0x3b4)](_0xeea0f2,_0xf76ac4)))return{'error':new Error(_0x481ef4(0x1fb))};return _0x18c875;}},setRangeProtectionWithRemoveDataValidation={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_data_validation[_0xfc9601(0x252)]['id'],'handler':(_0x2b4a10,_0x352cd1)=>{const _0x5d47b2=_0xfc9601,_0x1a97dc={'m1Prime':_0x2b4a10,'m2Prime':_0x352cd1};if(_0x2b4a10[_0x5d47b2(0x3eb)][_0x5d47b2(0x1d0)]!==_0x352cd1[_0x5d47b2(0x3eb)][_0x5d47b2(0x1d0)]||_0x2b4a10[_0x5d47b2(0x3eb)][_0x5d47b2(0x25e)]!==_0x352cd1[_0x5d47b2(0x3eb)][_0x5d47b2(0x25e)])return _0x1a97dc;return{'error':new Error(_0x5d47b2(0x1ce))};}},setRangeProtectionWithRemoveRow={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_sheets['RemoveRowMutation']['id'],'handler':(_0xe6e7d1,_0x27e43d)=>{const _0x2da0f9=_0xfc9601,_0x1f7d7e={'m1Prime':_0xe6e7d1,'m2Prime':_0x27e43d};if(_0xe6e7d1['params'][_0x2da0f9(0x1d0)]!==_0x27e43d[_0x2da0f9(0x3eb)][_0x2da0f9(0x1d0)]||_0xe6e7d1['params'][_0x2da0f9(0x25e)]!==_0x27e43d[_0x2da0f9(0x3eb)][_0x2da0f9(0x25e)])return _0x1f7d7e;const _0x6c5250=_0xe6e7d1['params']['rule'][_0x2da0f9(0x3a3)],_0x35555a=_0x27e43d['params'][_0x2da0f9(0x29a)];if(_0x6c5250[_0x2da0f9(0x3ad)](_0x4235c1=>_univerjs_core[_0x2da0f9(0x330)]['intersects'](_0x4235c1,_0x35555a)))return{'error':new Error(_0x2da0f9(0x339))};return _0x1f7d7e;}},setRangeProtectionWithRemoveFilter={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets_filter['RemoveSheetsFilterMutation']['id'],'handler':(_0x30437c,_0x16f723)=>{const _0x53edde=_0xfc9601,_0x232899={'m1Prime':_0x30437c,'m2Prime':_0x16f723};if(_0x30437c[_0x53edde(0x3eb)]['unitId']!==_0x16f723['params']['unitId']||_0x30437c[_0x53edde(0x3eb)][_0x53edde(0x25e)]!==_0x16f723['params'][_0x53edde(0x25e)])return _0x232899;return{'error':new Error(_0x53edde(0x29f))};}},setRangeProtectionWithRemoveWorksheetMerge={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x374)]['id'],'handler':(_0x1f9b13,_0x9c005e)=>{const _0x4a6636=_0xfc9601,_0x5f5aae={'m1Prime':_0x1f9b13,'m2Prime':_0x9c005e};if(_0x1f9b13['params'][_0x4a6636(0x1d0)]!==_0x9c005e['params'][_0x4a6636(0x1d0)]||_0x1f9b13[_0x4a6636(0x3eb)][_0x4a6636(0x25e)]!==_0x9c005e['params'][_0x4a6636(0x25e)])return _0x5f5aae;const _0xadd0d8=_0x1f9b13[_0x4a6636(0x3eb)]['rule'][_0x4a6636(0x3a3)],_0x31e1f9=_0x9c005e[_0x4a6636(0x3eb)]['ranges'];if(_0xadd0d8[_0x4a6636(0x3ad)](_0x2ceed4=>_0x31e1f9[_0x4a6636(0x3ad)](_0x12a470=>_univerjs_core['Rectangle']['intersects'](_0x2ceed4,_0x12a470))))return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20worksheet\x20merge')};return _0x5f5aae;}},setRangeProtectionWithSetConditionalFormattingRule={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0xfc9601(0x36f)]['id'],'handler':(_0x2ec249,_0x13239b)=>{const _0x2c4bd5=_0xfc9601,_0xd47390={'m1Prime':_0x2ec249,'m2Prime':_0x13239b};if(_0x2ec249[_0x2c4bd5(0x3eb)][_0x2c4bd5(0x1d0)]!==_0x13239b[_0x2c4bd5(0x3eb)]['unitId']||_0x2ec249[_0x2c4bd5(0x3eb)][_0x2c4bd5(0x25e)]!==_0x13239b['params'][_0x2c4bd5(0x25e)])return _0xd47390;const _0x222e74=_0x2ec249[_0x2c4bd5(0x3eb)][_0x2c4bd5(0x331)][_0x2c4bd5(0x3a3)],_0x5ba652=_0x13239b[_0x2c4bd5(0x3eb)][_0x2c4bd5(0x331)][_0x2c4bd5(0x3a3)];if(_0x222e74['some'](_0xc335cd=>_0x5ba652['some'](_0x179a63=>_univerjs_core[_0x2c4bd5(0x330)][_0x2c4bd5(0x3b4)](_0xc335cd,_0x179a63))))return{'error':new Error(_0x2c4bd5(0x2dc))};return _0xd47390;}},setRangeProtectionWithSetFrozen={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2ec)]['id'],'handler':(_0x48dce8,_0x5e4558)=>{const _0x39e6ef=_0xfc9601,_0x142b4a={'m1Prime':_0x48dce8,'m2Prime':_0x5e4558};if(_0x48dce8[_0x39e6ef(0x3eb)]['unitId']!==_0x5e4558[_0x39e6ef(0x3eb)][_0x39e6ef(0x1d0)]||_0x48dce8[_0x39e6ef(0x3eb)][_0x39e6ef(0x25e)]!==_0x5e4558[_0x39e6ef(0x3eb)]['subUnitId'])return _0x142b4a;const _0x1c8dd3=_0x48dce8[_0x39e6ef(0x3eb)][_0x39e6ef(0x331)][_0x39e6ef(0x3a3)],_0x4a5dfb=[{'startRow':_0x5e4558[_0x39e6ef(0x3eb)][_0x39e6ef(0x357)],'endRow':_0x5e4558[_0x39e6ef(0x3eb)][_0x39e6ef(0x357)],'startColumn':_0x5e4558[_0x39e6ef(0x3eb)][_0x39e6ef(0x245)],'endColumn':_0x5e4558[_0x39e6ef(0x3eb)][_0x39e6ef(0x245)]}];if(_0x1c8dd3['some'](_0x598eb9=>_0x4a5dfb[_0x39e6ef(0x3ad)](_0x23f015=>_univerjs_core[_0x39e6ef(0x330)][_0x39e6ef(0x3b4)](_0x598eb9,_0x23f015))))return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20frozen')};return _0x142b4a;}},setRangeProtectionWithSetNumfmt={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x397)]['id'],'handler':(_0x11ea33,_0x255f36)=>{const _0x50d66c=_0xfc9601,_0x3a90d2={'m1Prime':_0x11ea33,'m2Prime':_0x255f36};if(_0x11ea33['params']['unitId']!==_0x255f36[_0x50d66c(0x3eb)][_0x50d66c(0x1d0)]||_0x11ea33['params'][_0x50d66c(0x25e)]!==_0x255f36[_0x50d66c(0x3eb)]['subUnitId'])return _0x3a90d2;return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20numfmt')};}},setRangeProtectionWithSetRangeProtection={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'handler':(_0x588da2,_0x1927f4)=>{const _0x4e4eaa=_0xfc9601,_0x53a170={'m1Prime':_0x588da2,'m2Prime':_0x1927f4};if(_0x588da2[_0x4e4eaa(0x3eb)][_0x4e4eaa(0x1d0)]!==_0x1927f4[_0x4e4eaa(0x3eb)][_0x4e4eaa(0x1d0)]||_0x588da2[_0x4e4eaa(0x3eb)][_0x4e4eaa(0x25e)]!==_0x1927f4['params'][_0x4e4eaa(0x25e)])return _0x53a170;const _0x32c427=_0x588da2[_0x4e4eaa(0x3eb)][_0x4e4eaa(0x331)][_0x4e4eaa(0x3a3)],_0x51da88=_0x1927f4['params'][_0x4e4eaa(0x331)][_0x4e4eaa(0x3a3)];if(_0x32c427[_0x4e4eaa(0x3ad)](_0x2fd674=>_0x51da88[_0x4e4eaa(0x3ad)](_0x174658=>_univerjs_core[_0x4e4eaa(0x330)][_0x4e4eaa(0x3b4)](_0x2fd674,_0x174658))))return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20protection')};return _0x53a170;}},setRangeProtectionWithSetRangeValue={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler':(_0x2bf1b4,_0x2bdc6a)=>{const _0x3897f0=_0xfc9601,_0x371dda={'m1Prime':_0x2bf1b4,'m2Prime':_0x2bdc6a};if(_0x2bf1b4[_0x3897f0(0x3eb)][_0x3897f0(0x1d0)]!==_0x2bdc6a[_0x3897f0(0x3eb)][_0x3897f0(0x1d0)]||_0x2bf1b4[_0x3897f0(0x3eb)]['subUnitId']!==_0x2bdc6a['params'][_0x3897f0(0x25e)])return _0x371dda;const _0x4c59a5=_0x2bf1b4['params'][_0x3897f0(0x331)]['ranges'],_0x475b72=new _univerjs_core[(_0x3897f0(0x3c2))](_0x2bdc6a[_0x3897f0(0x3eb)][_0x3897f0(0x31f)])[_0x3897f0(0x3d1)]();if(_0x4c59a5[_0x3897f0(0x3ad)](_0x44dcd3=>_univerjs_core['Rectangle'][_0x3897f0(0x3b4)](_0x44dcd3,_0x475b72)))return{'error':new Error(_0x3897f0(0x30b))};return _0x371dda;}},setRangeProtectionWithSetWorksheetColWidth={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1f5)]['id'],'handler':(_0x10d1af,_0x44020d)=>{const _0x4083ed=_0xfc9601,_0x4e2fa8={'m1Prime':_0x10d1af,'m2Prime':_0x44020d};if(_0x10d1af[_0x4083ed(0x3eb)]['unitId']!==_0x44020d[_0x4083ed(0x3eb)]['unitId']||_0x10d1af[_0x4083ed(0x3eb)][_0x4083ed(0x25e)]!==_0x44020d['params'][_0x4083ed(0x25e)])return _0x4e2fa8;const _0x2a823c=_0x10d1af[_0x4083ed(0x3eb)][_0x4083ed(0x331)][_0x4083ed(0x3a3)],_0x43e8e6=_0x44020d[_0x4083ed(0x3eb)][_0x4083ed(0x3a3)];if(_0x2a823c[_0x4083ed(0x3ad)](_0xcd6214=>_0x43e8e6[_0x4083ed(0x3ad)](_0x489a5c=>_univerjs_core[_0x4083ed(0x330)][_0x4083ed(0x3b4)](_0xcd6214,_0x489a5c))))return{'error':new Error(_0x4083ed(0x372))};return _0x4e2fa8;}},setRangeProtectionWithUpdateComment={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x3ab)]['id'],'handler':(_0x22074a,_0x564b23)=>{const _0x1e0220=_0xfc9601,_0xe479d6={'m1Prime':_0x22074a,'m2Prime':_0x564b23};if(_0x22074a['params'][_0x1e0220(0x1d0)]!==_0x564b23[_0x1e0220(0x3eb)]['unitId']||_0x22074a[_0x1e0220(0x3eb)]['subUnitId']!==_0x564b23[_0x1e0220(0x3eb)][_0x1e0220(0x25e)])return _0xe479d6;return{'error':new Error(_0x1e0220(0x2fb))};}},setRangeProtectionWithUpdateDataValidation={'m1':_univerjs_sheets[_0xfc9601(0x1bd)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x969ae9,_0x1b27d5)=>{const _0x410e10=_0xfc9601,_0x12b108={'m1Prime':_0x969ae9,'m2Prime':_0x1b27d5};if(_0x969ae9[_0x410e10(0x3eb)][_0x410e10(0x1d0)]!==_0x1b27d5[_0x410e10(0x3eb)][_0x410e10(0x1d0)]||_0x969ae9[_0x410e10(0x3eb)][_0x410e10(0x25e)]!==_0x1b27d5['params'][_0x410e10(0x25e)])return _0x12b108;return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20update\x20data\x20validation\x20rule')};}},setRangeValueMutationWithAddMerge={'m1':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler'(_0x3e5293,_0x20256d){const _0x3be107=_0xfc9601,_0x2127d6=addWorksheetMergeMutationWithSetRangeValues[_0x3be107(0x3f8)](_0x20256d,_0x3e5293);if(isTransformMutationSuccess(_0x2127d6))return{'m1Prime':_0x2127d6[_0x3be107(0x3d9)],'m2Prime':_0x2127d6[_0x3be107(0x39d)]};else return _0x2127d6;}},setRangeValuesWithMoveRange={'m1':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x33a)]['id'],'handler'(_0x48ffc0,_0x3cfe6d){const _0x38bf84=_0xfc9601,_0x275f4b={'m1Prime':_0x48ffc0,'m2Prime':_0x3cfe6d};if(_0x48ffc0['params']['unitId']!==_0x3cfe6d[_0x38bf84(0x3eb)]['unitId'])return _0x275f4b;const _0xbf3ab8=new _univerjs_core[(_0x38bf84(0x3c2))](_0x48ffc0[_0x38bf84(0x3eb)][_0x38bf84(0x31f)])[_0x38bf84(0x3d1)](),_0x12f6a4=new _univerjs_core[(_0x38bf84(0x3c2))](_0x3cfe6d[_0x38bf84(0x3eb)][_0x38bf84(0x3a4)][_0x38bf84(0x3e6)])[_0x38bf84(0x3d1)](),_0x1092b2=new _univerjs_core[(_0x38bf84(0x3c2))](_0x3cfe6d['params']['to'][_0x38bf84(0x3e6)])[_0x38bf84(0x3d1)]();if(_0x48ffc0[_0x38bf84(0x3eb)][_0x38bf84(0x25e)]===_0x3cfe6d[_0x38bf84(0x3eb)][_0x38bf84(0x3a4)][_0x38bf84(0x25e)]&&_univerjs_core[_0x38bf84(0x330)][_0x38bf84(0x3b4)](_0xbf3ab8,_0x12f6a4)||_0x48ffc0[_0x38bf84(0x3eb)]['subUnitId']===_0x3cfe6d[_0x38bf84(0x3eb)]['to'][_0x38bf84(0x25e)]&&_univerjs_core[_0x38bf84(0x330)][_0x38bf84(0x3b4)](_0xbf3ab8,_0x1092b2))return{'error':new Error(_0x38bf84(0x3ee))};return _0x275f4b;}},setRangeValuesMutationWithReorderRange={'m1':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1ca)]['id'],'handler'(_0x4419d3,_0xd1ed59){const _0x2578e6=_0xfc9601,_0x300453={'m1Prime':_0x4419d3,'m2Prime':_0xd1ed59};if(_0x4419d3[_0x2578e6(0x3eb)][_0x2578e6(0x1d0)]!==_0xd1ed59['params'][_0x2578e6(0x1d0)]||_0x4419d3[_0x2578e6(0x3eb)]['subUnitId']!==_0xd1ed59['params'][_0x2578e6(0x25e)])return _0x300453;const _0x169636=_univerjs_core['Tools']['deepClone'](_0x4419d3),{cellValue:_0xa32bdc}=_0x169636['params'],_0x158992=new _univerjs_core[(_0x2578e6(0x3c2))](_0xa32bdc),{range:_0x2a208b}=_0xd1ed59[_0x2578e6(0x3eb)],_0x1626fc=new Map();for(let _0x270dcc=_0x2a208b[_0x2578e6(0x245)];_0x270dcc<=_0x2a208b['endColumn'];_0x270dcc++)for(let _0x3a2745=_0x2a208b[_0x2578e6(0x357)];_0x3a2745<=_0x2a208b[_0x2578e6(0x3aa)];_0x3a2745++){var _0x5f1626;if((_0xa32bdc===null||_0xa32bdc===void 0x0||(_0x5f1626=_0xa32bdc[_0x3a2745])===null||_0x5f1626===void 0x0?void 0x0:_0x5f1626[_0x270dcc])!==void 0x0){var _0x2a3f00;const _0x2462de=(_0x2a3f00=_0xd1ed59[_0x2578e6(0x3eb)]['order'][_0x3a2745])!==null&&_0x2a3f00!==void 0x0?_0x2a3f00:_0x3a2745;if(_0x2462de!==_0x3a2745){if(!_0x1626fc[_0x2578e6(0x1d9)](_0x2462de))_0x1626fc[_0x2578e6(0x209)](_0x2462de,new Map());_0x1626fc[_0x2578e6(0x3a1)](_0x2462de)[_0x2578e6(0x209)](_0x270dcc,_0xa32bdc[_0x3a2745][_0x270dcc]),_0x158992[_0x2578e6(0x242)](_0x3a2745,_0x270dcc);}}}return _0x1626fc[_0x2578e6(0x302)]((_0x1d2996,_0x285a60)=>{_0x1d2996['forEach']((_0x16759a,_0x46d3cc)=>{const _0x32fac1=_0x5cb6;_0x158992[_0x32fac1(0x2fe)](_0x285a60,_0x46d3cc,_0x16759a);});}),{'m1Prime':_0x169636,'m2Prime':_0xd1ed59};}},mergeStyles=(_0x3a14aa,_0x30e5fd)=>{if(!_0x3a14aa)return _0x30e5fd;if(!_0x30e5fd)return _0x3a14aa;return{..._0x3a14aa,..._0x30e5fd};},setRangeValuesMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler'(_0x4d63b4,_0xc386c4){const _0x54d81c=_0xfc9601,_0x2b6ddc={'m1Prime':_0x4d63b4,'m2Prime':_0xc386c4};if(_0x4d63b4['params'][_0x54d81c(0x1d0)]!==_0xc386c4[_0x54d81c(0x3eb)]['unitId']||_0x4d63b4[_0x54d81c(0x3eb)][_0x54d81c(0x25e)]!==_0xc386c4[_0x54d81c(0x3eb)][_0x54d81c(0x25e)])return _0x2b6ddc;const _0x360f98=_univerjs_core[_0x54d81c(0x1c3)]['deepClone'](_0x4d63b4),_0x536a7c=_univerjs_core['Tools'][_0x54d81c(0x1cf)](_0xc386c4),_0x5b8c51=new _univerjs_core[(_0x54d81c(0x3c2))](_0x360f98[_0x54d81c(0x3eb)][_0x54d81c(0x31f)]),_0x3d65ad=_0x5b8c51[_0x54d81c(0x3d1)](),_0x50024a=new _univerjs_core[(_0x54d81c(0x3c2))](_0xc386c4['params'][_0x54d81c(0x31f)]),_0x42977f=_0x50024a[_0x54d81c(0x3d1)]();if(!_univerjs_core[_0x54d81c(0x330)][_0x54d81c(0x3b4)](_0x3d65ad,_0x42977f))return _0x2b6ddc;return _0x5b8c51[_0x54d81c(0x387)]((_0x3abb4a,_0x5ca234,_0x236df9)=>{const _0x334682=_0x54d81c,_0x1773da=_0x50024a[_0x334682(0x2f1)](_0x3abb4a,_0x5ca234);if(_0x236df9&&_0x1773da){var _0x49769b,_0x2fe7f2;_0x1773da['s']=mergeStyles(_univerjs_core[_0x334682(0x1c3)]['deepClone'](typeof _0x236df9['s']===_0x334682(0x254)?(_0x49769b=_0x360f98[_0x334682(0x3eb)]['styleRefMap'])===null||_0x49769b===void 0x0?void 0x0:_0x49769b[_0x236df9['s']]:_0x236df9['s']),_univerjs_core[_0x334682(0x1c3)][_0x334682(0x1cf)](typeof _0x1773da['s']===_0x334682(0x254)?(_0x2fe7f2=_0x536a7c[_0x334682(0x3eb)][_0x334682(0x239)])===null||_0x2fe7f2===void 0x0?void 0x0:_0x2fe7f2[_0x1773da['s']]:_0x1773da['s'])),_0x50024a[_0x334682(0x2fe)](_0x3abb4a,_0x5ca234,_0x1773da),_0x5b8c51[_0x334682(0x242)](_0x3abb4a,_0x5ca234);}}),_0x360f98[_0x54d81c(0x3eb)][_0x54d81c(0x31f)]=_0x5b8c51[_0x54d81c(0x1d1)](),_0x536a7c[_0x54d81c(0x3eb)][_0x54d81c(0x31f)]=_0x50024a[_0x54d81c(0x1d1)](),{'m1Prime':_0x360f98,'m2Prime':_0x536a7c};}},setRowDataMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x303)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x303)]['id'],'handler'(_0x10ce75,_0x2f834b){const _0x52c29a=_0xfc9601,_0x261227={'m1Prime':_0x10ce75,'m2Prime':_0x2f834b};if(_0x10ce75['params'][_0x52c29a(0x1d0)]!==_0x2f834b[_0x52c29a(0x3eb)]['unitId']||_0x10ce75[_0x52c29a(0x3eb)][_0x52c29a(0x25e)]!==_0x2f834b[_0x52c29a(0x3eb)][_0x52c29a(0x25e)])return _0x261227;const _0xfa2ee6=_0x10ce75[_0x52c29a(0x3eb)]['rowData'],_0x45aadd=_0x2f834b[_0x52c29a(0x3eb)][_0x52c29a(0x2fd)],_0x36234d={},_0x4e3a43=_univerjs_core[_0x52c29a(0x1c3)]['deepClone'](_0x10ce75),_0x2e2ac7=new Set([...Object[_0x52c29a(0x38e)](_0xfa2ee6)[_0x52c29a(0x3b3)](Number),...Object['keys'](_0x45aadd)['map'](Number)]);for(const _0x5384a4 of _0x2e2ac7){const _0x4f62e8=_0xfa2ee6[_0x5384a4],_0x2f3add=_0x45aadd[_0x5384a4];if(_0x4f62e8&&_0x2f3add)_0x36234d[_0x5384a4]={..._0x4f62e8,..._0x2f3add};else{if(_0x4f62e8)_0x36234d[_0x5384a4]=_0x4f62e8;else{if(_0x2f3add)_0x36234d[_0x5384a4]=_0x2f3add;}}}return _0x4e3a43['params']['rowData']=_0x36234d,{'m1Prime':_0x4e3a43,'m2Prime':_0x2f834b};}},setSheetsFilterCriteriaWithMoveRange={'m1':_univerjs_sheets_filter[_0xfc9601(0x309)]['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler'(_0x3a79aa,_0x4e040c){const _0x38a024=_0xfc9601,_0x4ca8fe={'m1Prime':_0x3a79aa,'m2Prime':_0x4e040c};if(_0x3a79aa[_0x38a024(0x3eb)][_0x38a024(0x1d0)]!==_0x4e040c[_0x38a024(0x3eb)][_0x38a024(0x1d0)]||_0x3a79aa[_0x38a024(0x3eb)][_0x38a024(0x25e)]!==_0x4e040c[_0x38a024(0x3eb)][_0x38a024(0x3a4)][_0x38a024(0x25e)]&&_0x3a79aa[_0x38a024(0x3eb)][_0x38a024(0x25e)]!==_0x4e040c[_0x38a024(0x3eb)]['to']['subUnitId'])return _0x4ca8fe;let _0x3339b7=null;if(_0x3a79aa['params']['subUnitId']===_0x4e040c[_0x38a024(0x3eb)][_0x38a024(0x3a4)][_0x38a024(0x25e)])new _univerjs_core['ObjectMatrix'](_0x4e040c[_0x38a024(0x3eb)][_0x38a024(0x3a4)][_0x38a024(0x3e6)])[_0x38a024(0x387)]((_0x460aa1,_0x34c885)=>{const _0x20e814=_0x38a024;if(_0x34c885===_0x3a79aa[_0x20e814(0x3eb)][_0x20e814(0x3c5)])_0x3339b7=_0x4e040c[_0x20e814(0x3eb)][_0x20e814(0x3a4)]['subUnitId'];});if(_0x3a79aa[_0x38a024(0x3eb)]['subUnitId']===_0x4e040c[_0x38a024(0x3eb)]['to'][_0x38a024(0x25e)])new _univerjs_core[(_0x38a024(0x3c2))](_0x4e040c[_0x38a024(0x3eb)]['to'][_0x38a024(0x3e6)])[_0x38a024(0x387)]((_0x343ece,_0xa96c4f)=>{const _0x46611f=_0x38a024;if(_0xa96c4f===_0x3a79aa[_0x46611f(0x3eb)][_0x46611f(0x3c5)])_0x3339b7=_0x4e040c[_0x46611f(0x3eb)]['to']['subUnitId'];});if(_0x3339b7)return{'m1Prime':_0x3a79aa,'m2Prime':[_0x4e040c,{'id':_univerjs_sheets_filter[_0x38a024(0x3b6)]['id'],'params':{'unitId':_0x4e040c[_0x38a024(0x3eb)][_0x38a024(0x1d0)],'subUnitId':_0x3339b7}}]};return _0x4ca8fe;}},setSheetsFilterCriteriaWithRemoveSheetsFilter={'m1':_univerjs_sheets_filter['SetSheetsFilterCriteriaMutation']['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x274)]['id'],'handler'(_0x1669bd,_0x5bb1a3){const _0x414ff0=_0xfc9601,_0x41c850={'m1Prime':_0x1669bd,'m2Prime':_0x5bb1a3};if(_0x1669bd[_0x414ff0(0x3eb)][_0x414ff0(0x1d0)]!==_0x5bb1a3[_0x414ff0(0x3eb)]['unitId']||_0x1669bd[_0x414ff0(0x3eb)][_0x414ff0(0x25e)]!==_0x5bb1a3[_0x414ff0(0x3eb)][_0x414ff0(0x25e)])return _0x41c850;return{'m1Prime':[],'m2Prime':[_0x5bb1a3]};}},setSheetsFilterCriteriaWithSetRangeValues={'m1':_univerjs_sheets_filter['SetSheetsFilterCriteriaMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x30f)]['id'],'handler'(_0xb82dfb,_0x409a2c){const _0x48e710=_0xfc9601,_0x79f9f={'m1Prime':_0xb82dfb,'m2Prime':_0x409a2c};if(_0xb82dfb[_0x48e710(0x3eb)][_0x48e710(0x1d0)]!==_0x409a2c[_0x48e710(0x3eb)][_0x48e710(0x1d0)]||_0xb82dfb[_0x48e710(0x3eb)]['subUnitId']!==_0x409a2c[_0x48e710(0x3eb)]['subUnitId'])return _0x79f9f;let _0x1aa2bb=![];new _univerjs_core[(_0x48e710(0x3c2))](_0x409a2c[_0x48e710(0x3eb)]['cellValue'])[_0x48e710(0x387)]((_0x14485e,_0x69c79e)=>{const _0x19e000=_0x48e710;if(_0x69c79e===_0xb82dfb[_0x19e000(0x3eb)][_0x19e000(0x3c5)])_0x1aa2bb=!![];});if(_0x1aa2bb)return{'m1Prime':_0xb82dfb,'m2Prime':[_0x409a2c,{'id':_univerjs_sheets_filter['ReCalcSheetsFilterMutation']['id'],'params':{'unitId':_0x409a2c[_0x48e710(0x3eb)][_0x48e710(0x1d0)],'subUnitId':_0x409a2c[_0x48e710(0x3eb)][_0x48e710(0x25e)]}}]};return _0x79f9f;}},setSheetsFilterCriteriaWithSelf={'m1':_univerjs_sheets_filter['SetSheetsFilterCriteriaMutation']['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x309)]['id'],'handler'(_0x226686,_0x551f2f){const _0x3f3589=_0xfc9601,_0x4052a6={'m1Prime':_0x226686,'m2Prime':_0x551f2f};if(_0x226686[_0x3f3589(0x3eb)]['unitId']!==_0x551f2f[_0x3f3589(0x3eb)][_0x3f3589(0x1d0)]||_0x226686[_0x3f3589(0x3eb)][_0x3f3589(0x25e)]!==_0x551f2f['params'][_0x3f3589(0x25e)]||_0x226686[_0x3f3589(0x3eb)]['col']!==_0x551f2f[_0x3f3589(0x3eb)][_0x3f3589(0x3c5)])return _0x4052a6;return{'m1Prime':[],'m2Prime':[_0x551f2f]};}},setSheetsFilterRangeWithRemoveSheetsFilter={'m1':_univerjs_sheets_filter[_0xfc9601(0x27e)]['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x274)]['id'],'handler'(_0x558d98,_0xbf11ec){const _0x4f7c6d=_0xfc9601,_0x1a616b={'m1Prime':_0x558d98,'m2Prime':_0xbf11ec};if(_0x558d98[_0x4f7c6d(0x3eb)]['unitId']!==_0xbf11ec['params']['unitId']||_0x558d98[_0x4f7c6d(0x3eb)][_0x4f7c6d(0x25e)]!==_0xbf11ec[_0x4f7c6d(0x3eb)]['subUnitId'])return _0x1a616b;return{'m1Prime':[],'m2Prime':[_0xbf11ec]};}},setSheetsFilterRangeWithSelf={'m1':_univerjs_sheets_filter[_0xfc9601(0x27e)]['id'],'m2':_univerjs_sheets_filter[_0xfc9601(0x27e)]['id'],'handler'(_0x213f48,_0xa6c301){const _0xb8f71a=_0xfc9601,_0x3337e3={'m1Prime':_0x213f48,'m2Prime':_0xa6c301};if(_0x213f48[_0xb8f71a(0x3eb)][_0xb8f71a(0x1d0)]!==_0xa6c301[_0xb8f71a(0x3eb)]['unitId']||_0x213f48[_0xb8f71a(0x3eb)][_0xb8f71a(0x25e)]!==_0xa6c301[_0xb8f71a(0x3eb)][_0xb8f71a(0x25e)])return _0x3337e3;return{'m1Prime':[],'m2Prime':[_0xa6c301]};}},setTabColorMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x248)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x248)]['id'],'handler'(_0x592880,_0x3effec){const _0x4706e7=_0xfc9601;if(_0x592880[_0x4706e7(0x3eb)][_0x4706e7(0x1d0)]!==_0x3effec[_0x4706e7(0x3eb)][_0x4706e7(0x1d0)]||_0x592880[_0x4706e7(0x3eb)][_0x4706e7(0x25e)]!==_0x3effec[_0x4706e7(0x3eb)][_0x4706e7(0x25e)])return{'m1Prime':_0x592880,'m2Prime':_0x3effec};return{'m1Prime':[],'m2Prime':_0x3effec};}},setWorksheetColWidthMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x1f5)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x1f5)]['id'],'handler'(_0x343d7b,_0xe99279){const _0x5763f8=_0xfc9601,_0x2bdc41={'m1Prime':_0x343d7b,'m2Prime':_0xe99279};if(_0x343d7b[_0x5763f8(0x3eb)][_0x5763f8(0x1d0)]!==_0xe99279['params'][_0x5763f8(0x1d0)]||_0x343d7b[_0x5763f8(0x3eb)]['subUnitId']!==_0xe99279[_0x5763f8(0x3eb)]['subUnitId'])return _0x2bdc41;const _0x638d28=_0x343d7b[_0x5763f8(0x3eb)][_0x5763f8(0x3a3)],_0x443229=[],_0xbd32f5=_univerjs_core[_0x5763f8(0x1c3)][_0x5763f8(0x1cf)](_0x343d7b),_0x16a2fb=_0xe99279['params'][_0x5763f8(0x3a3)];_0x638d28[_0x5763f8(0x302)](_0x5d6775=>{const _0x53f8f0=_0x5763f8,_0x57ddcf=lineSubtractLines({'start':_0x5d6775[_0x53f8f0(0x245)],'end':_0x5d6775['endColumn']},_0x16a2fb[_0x53f8f0(0x3b3)](_0x222611=>({'start':_0x222611[_0x53f8f0(0x245)],'end':_0x222611['endColumn']})))[_0x53f8f0(0x3b3)](_0x400e70=>({..._0x5d6775,'startColumn':_0x400e70[_0x53f8f0(0x40e)],'endColumn':_0x400e70[_0x53f8f0(0x3bc)]}));_0x443229[_0x53f8f0(0x380)](..._0x57ddcf);}),_0xbd32f5[_0x5763f8(0x3eb)]['ranges']=_0x443229;const {colWidth:_0x31caff}=_0xbd32f5['params'],{colWidth:_0xebf5f4}=_0xe99279['params'],_0x51609b=_0x31caff,_0x2bac66=_0xebf5f4;if(typeof _0x51609b!==_0x5763f8(0x28f)){if(typeof _0x2bac66!==_0x5763f8(0x28f))Object['keys'](_0x2bac66)['map'](Number)[_0x5763f8(0x302)](_0x3278ae=>{if(_0x51609b[_0x3278ae]!=null)delete _0x51609b[_0x3278ae];});else _0x16a2fb[_0x5763f8(0x302)](_0x13e995=>{const _0x4e4961=_0x5763f8;for(let _0x2e8a92=_0x13e995[_0x4e4961(0x245)];_0x2e8a92<=_0x13e995[_0x4e4961(0x22a)];_0x2e8a92++)delete _0x51609b[_0x2e8a92];});}return{'m1Prime':_0xbd32f5,'m2Prime':_0xe99279};}},setWorksheetNameWithInsertSheet={'m1':_univerjs_sheets[_0xfc9601(0x3f9)]['id'],'m2':_univerjs_sheets['InsertSheetMutation']['id'],'handler'(_0x439493,_0x1dfc91){const _0xdb241=_0xfc9601;if(_0x439493[_0xdb241(0x3eb)][_0xdb241(0x1d0)]!==_0x1dfc91['params'][_0xdb241(0x1d0)])return{'m1Prime':_0x439493,'m2Prime':_0x1dfc91};if(_0x439493[_0xdb241(0x3eb)]['subUnitId']===_0x1dfc91['params'][_0xdb241(0x2b7)]['id'])return{'error':new Error(_0xdb241(0x3b8))};if(_0x439493[_0xdb241(0x3eb)][_0xdb241(0x2f3)]===_0x1dfc91[_0xdb241(0x3eb)][_0xdb241(0x2b7)]['name']){const _0x68dba1={'id':_univerjs_sheets[_0xdb241(0x3f9)]['id'],'params':{'unitId':_0x439493[_0xdb241(0x3eb)][_0xdb241(0x1d0)],'subUnitId':_0x439493['params'][_0xdb241(0x25e)],'name':_0x439493['params'][_0xdb241(0x2f3)]+_0xdb241(0x3f1)}};return{'m1Prime':_0x68dba1,'m2Prime':[_0x68dba1,_0x1dfc91]};}return{'m1Prime':[],'m2Prime':[]};}},setWorksheetNameMutationWithSelf={'m1':_univerjs_sheets['SetWorksheetNameMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x3f9)]['id'],'handler'(_0x320756,_0x2333fe){const _0x16de89=_0xfc9601;if(_0x320756['params'][_0x16de89(0x1d0)]!==_0x2333fe[_0x16de89(0x3eb)][_0x16de89(0x1d0)])return{'m1Prime':_0x320756,'m2Prime':_0x2333fe};if(_0x320756[_0x16de89(0x3eb)][_0x16de89(0x25e)]===_0x2333fe['params']['subUnitId']){if(_0x320756[_0x16de89(0x3eb)][_0x16de89(0x2f3)]!==_0x2333fe['params'][_0x16de89(0x2f3)])return{'m1Prime':[],'m2Prime':_0x2333fe};return{'m1Prime':[],'m2Prime':[]};}else{if(_0x320756['params']['name']!==_0x2333fe[_0x16de89(0x3eb)]['name'])return{'m1Prime':[],'m2Prime':[]};const _0x3759f4={'id':_univerjs_sheets[_0x16de89(0x3f9)]['id'],'params':{'unitId':_0x2333fe[_0x16de89(0x3eb)][_0x16de89(0x1d0)],'subUnitId':_0x2333fe[_0x16de89(0x3eb)][_0x16de89(0x25e)],'name':_0x2333fe['params'][_0x16de89(0x2f3)]+_0x16de89(0x3f1)}};return{'m1Prime':[_0x3759f4,_0x320756],'m2Prime':_0x3759f4};}}},setWorksheetRowAutoHeightMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x2c5)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x2c5)]['id'],'handler'(_0x4d4e8c,_0x378639){const _0xce8e09=_0xfc9601,_0x165584={'m1Prime':_0x4d4e8c,'m2Prime':_0x378639};if(_0x4d4e8c[_0xce8e09(0x3eb)][_0xce8e09(0x1d0)]!==_0x378639['params'][_0xce8e09(0x1d0)]||_0x4d4e8c[_0xce8e09(0x3eb)]['subUnitId']!==_0x378639['params']['subUnitId'])return _0x165584;const _0x127892=_0x4d4e8c['params'][_0xce8e09(0x1c5)],_0x402b90=[],_0x22bc6f=_univerjs_core['Tools'][_0xce8e09(0x1cf)](_0x4d4e8c),_0x3e4234=_0x378639[_0xce8e09(0x3eb)][_0xce8e09(0x1c5)];return _0x127892[_0xce8e09(0x302)](_0x413116=>{const _0x1551b7=_0xce8e09;if(!_0x3e4234[_0x1551b7(0x367)](_0x129896=>_0x129896[_0x1551b7(0x2bb)]===_0x413116['row']))_0x402b90[_0x1551b7(0x380)](_0x413116);}),_0x22bc6f[_0xce8e09(0x3eb)][_0xce8e09(0x1c5)]=_0x402b90,{'m1Prime':_0x22bc6f,'m2Prime':_0x378639};}},setWorksheetRowHeightMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x304)]['id'],'m2':_univerjs_sheets['SetWorksheetRowHeightMutation']['id'],'handler'(_0x13a461,_0x51b046){const _0x32a69f=_0xfc9601,_0x373d4d={'m1Prime':_0x13a461,'m2Prime':_0x51b046};if(_0x13a461[_0x32a69f(0x3eb)][_0x32a69f(0x1d0)]!==_0x51b046[_0x32a69f(0x3eb)]['unitId']||_0x13a461[_0x32a69f(0x3eb)][_0x32a69f(0x25e)]!==_0x51b046['params']['subUnitId'])return _0x373d4d;const _0x2b9a76=_0x13a461[_0x32a69f(0x3eb)][_0x32a69f(0x3a3)],_0x59d5b5=[],_0x2187e6=_univerjs_core[_0x32a69f(0x1c3)]['deepClone'](_0x13a461),_0x2b32a5=_0x51b046[_0x32a69f(0x3eb)]['ranges'];_0x2b9a76[_0x32a69f(0x302)](_0x62b4e7=>{const _0x28f308=_0x32a69f,_0x545f37=lineSubtractLines({'start':_0x62b4e7[_0x28f308(0x357)],'end':_0x62b4e7[_0x28f308(0x3aa)]},_0x2b32a5[_0x28f308(0x3b3)](_0x708f17=>({'start':_0x708f17[_0x28f308(0x357)],'end':_0x708f17[_0x28f308(0x3aa)]})))[_0x28f308(0x3b3)](_0x3d94b4=>({..._0x62b4e7,'startRow':_0x3d94b4[_0x28f308(0x40e)],'endRow':_0x3d94b4[_0x28f308(0x3bc)]}));_0x59d5b5['push'](..._0x545f37);}),_0x2187e6['params'][_0x32a69f(0x3a3)]=_0x59d5b5;const {rowHeight:_0x4914b1}=_0x2187e6[_0x32a69f(0x3eb)],{rowHeight:_0x5052f0}=_0x51b046[_0x32a69f(0x3eb)],_0x251882=_0x4914b1,_0x5c5f8e=_0x5052f0;if(typeof _0x251882!==_0x32a69f(0x28f)){if(typeof _0x5c5f8e!==_0x32a69f(0x28f))Object['keys'](_0x5c5f8e)['map'](Number)['forEach'](_0x159bbb=>{if(_0x251882[_0x159bbb]!=null)delete _0x251882[_0x159bbb];});else _0x2b32a5['forEach'](_0xcdf512=>{const _0x5671fe=_0x32a69f;for(let _0x4a0067=_0xcdf512[_0x5671fe(0x357)];_0x4a0067<=_0xcdf512[_0x5671fe(0x3aa)];_0x4a0067++)delete _0x251882[_0x4a0067];});}return{'m1Prime':_0x2187e6,'m2Prime':_0x51b046};}},setWorksheetRowIsAutoHeightMutationWithSelf={'m1':_univerjs_sheets['SetWorksheetRowIsAutoHeightMutation']['id'],'m2':_univerjs_sheets['SetWorksheetRowIsAutoHeightMutation']['id'],'handler'(_0x2875a5,_0x4db6cf){const _0x3ca90b=_0xfc9601,_0x24c2ff={'m1Prime':_0x2875a5,'m2Prime':_0x4db6cf};if(_0x2875a5['params'][_0x3ca90b(0x1d0)]!==_0x4db6cf[_0x3ca90b(0x3eb)][_0x3ca90b(0x1d0)]||_0x2875a5[_0x3ca90b(0x3eb)][_0x3ca90b(0x25e)]!==_0x4db6cf[_0x3ca90b(0x3eb)][_0x3ca90b(0x25e)])return _0x24c2ff;const _0x529c14=_0x2875a5[_0x3ca90b(0x3eb)][_0x3ca90b(0x3a3)],_0x29a0ef=[],_0x382018=_univerjs_core['Tools']['deepClone'](_0x2875a5),_0x24f07d=_0x4db6cf[_0x3ca90b(0x3eb)]['ranges'];_0x529c14[_0x3ca90b(0x302)](_0x538b5a=>{const _0x4d7433=_0x3ca90b,_0x1710ab=lineSubtractLines({'start':_0x538b5a[_0x4d7433(0x357)],'end':_0x538b5a[_0x4d7433(0x3aa)]},_0x24f07d[_0x4d7433(0x3b3)](_0x5bd222=>({'start':_0x5bd222[_0x4d7433(0x357)],'end':_0x5bd222[_0x4d7433(0x3aa)]})))['map'](_0x13c75e=>({..._0x538b5a,'startRow':_0x13c75e[_0x4d7433(0x40e)],'endRow':_0x13c75e[_0x4d7433(0x3bc)]}));_0x29a0ef[_0x4d7433(0x380)](..._0x1710ab);}),_0x382018[_0x3ca90b(0x3eb)][_0x3ca90b(0x3a3)]=_0x29a0ef;const {autoHeightInfo:_0xe788f6}=_0x382018[_0x3ca90b(0x3eb)],{autoHeightInfo:_0x1bd806}=_0x4db6cf['params'];if(typeof _0xe788f6!==_0x3ca90b(0x28f)){if(typeof _0x1bd806!=='number')Object[_0x3ca90b(0x38e)](_0x1bd806)[_0x3ca90b(0x3b3)](Number)[_0x3ca90b(0x302)](_0x29f39a=>{if(_0xe788f6[_0x29f39a]!=null)delete _0xe788f6[_0x29f39a];});else _0x24f07d[_0x3ca90b(0x302)](_0x1ed659=>{for(let _0x2d80a7=_0x1ed659['startRow'];_0x2d80a7<=_0x1ed659['endRow'];_0x2d80a7++)delete _0xe788f6[_0x2d80a7];});}return{'m1Prime':_0x382018,'m2Prime':_0x4db6cf};}},updateCommentRefWithSelf={'m1':_univerjs_thread_comment[_0xfc9601(0x365)]['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x365)]['id'],'handler':(_0x30332e,_0x2169f5)=>{const _0x3d117f=_0xfc9601,_0x14650f=_0x30332e['params'],_0x2aba92=_0x2169f5[_0x3d117f(0x3eb)];if(_0x14650f[_0x3d117f(0x1d0)]===_0x2aba92[_0x3d117f(0x1d0)]&&_0x14650f['subUnitId']===_0x2aba92[_0x3d117f(0x25e)]&&_0x14650f[_0x3d117f(0x210)][_0x3d117f(0x287)]===_0x2aba92[_0x3d117f(0x210)][_0x3d117f(0x287)])return{'m1Prime':[],'m2Prime':_0x2169f5};return{'m1Prime':_0x30332e,'m2Prime':_0x2169f5};}},updateCommentWithSelf={'m1':_univerjs_thread_comment['UpdateCommentMutation']['id'],'m2':_univerjs_thread_comment[_0xfc9601(0x3ab)]['id'],'handler':(_0xcf4e4f,_0x195e7e)=>{const _0x11cf25=_0xfc9601,_0x34c5e4=_0xcf4e4f['params'],_0x2d443b=_0x195e7e['params'];if(_0x34c5e4[_0x11cf25(0x1d0)]===_0x2d443b[_0x11cf25(0x1d0)]&&_0x34c5e4[_0x11cf25(0x25e)]===_0x2d443b[_0x11cf25(0x25e)]&&_0x34c5e4[_0x11cf25(0x210)][_0x11cf25(0x287)]===_0x2d443b[_0x11cf25(0x210)][_0x11cf25(0x287)])return{'m1Prime':[],'m2Prime':_0x195e7e};return{'m1Prime':_0xcf4e4f,'m2Prime':_0x195e7e};}},updateDataValidationMutationWithAdd={'m1':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x311)]['id'],'handler':(_0x50827c,_0x25fe75)=>{const _0x57c344=_0xfc9601,_0x54f856={'m1Prime':_0x50827c,'m2Prime':_0x25fe75},_0x35234a=_0x50827c['params'],_0x2fd406=_0x25fe75[_0x57c344(0x3eb)];if(_0x35234a[_0x57c344(0x1d0)]!==_0x2fd406[_0x57c344(0x1d0)]||_0x35234a[_0x57c344(0x25e)]!==_0x2fd406['subUnitId'])return _0x54f856;if(_0x50827c[_0x57c344(0x3eb)][_0x57c344(0x210)][_0x57c344(0x266)]===_univerjs_data_validation[_0x57c344(0x28c)][_0x57c344(0x2fc)]){const {unitId:_0x558f68,subUnitId:_0x5e6f48}=_0x50827c[_0x57c344(0x3eb)],_0x38c190=Array[_0x57c344(0x276)](_0x25fe75[_0x57c344(0x3eb)]['rule'])?_0x25fe75['params'][_0x57c344(0x331)]:[_0x25fe75[_0x57c344(0x3eb)][_0x57c344(0x331)]],_0x2872d7=[],_0x3705b7=new _univerjs_core[(_0x57c344(0x3c2))](),_0x1c0bcc=_0x50827c[_0x57c344(0x3eb)]['payload'][_0x57c344(0x210)];_0x1c0bcc[_0x57c344(0x302)](_0x4528e1=>{_univerjs_core['Range']['foreach'](_0x4528e1,(_0x107bc9,_0xb57a62)=>{const _0x43c748=_0x5cb6;_0x3705b7[_0x43c748(0x2fe)](_0x107bc9,_0xb57a62,_0x50827c[_0x43c748(0x3eb)]['ruleId']);});}),_0x38c190['forEach'](_0x38829b=>{const _0x2dfffa=_0x57c344;_0x38829b[_0x2dfffa(0x3a3)][_0x2dfffa(0x302)](_0x28a202=>{const _0x23140a=_0x2dfffa;_univerjs_core[_0x23140a(0x33f)][_0x23140a(0x1d6)](_0x28a202,(_0x4dc200,_0x11007f)=>{const _0x5c6c17=_0x23140a;_0x3705b7[_0x5c6c17(0x2fe)](_0x4dc200,_0x11007f,_0x38829b['uid']);});});});const _0x50dce8=_0x50827c[_0x57c344(0x3eb)]['ruleId'];if(!_0x50dce8)return _0x54f856;const _0x2f4b69=(0x0,_univerjs_core[_0x57c344(0x1dc)])(_0x3705b7,_0x288940=>_0x288940===_0x50dce8);if(!(0x0,_univerjs_core['isRangesEqual'])(_0x2f4b69,_0x1c0bcc)){if(_0x2f4b69[_0x57c344(0x29d)])_0x2872d7['push']({'id':_univerjs_data_validation['UpdateDataValidationMutation']['id'],'params':{'unitId':_0x558f68,'subUnitId':_0x5e6f48,'ruleId':_0x50dce8,'payload':{'type':_univerjs_data_validation[_0x57c344(0x28c)][_0x57c344(0x2fc)],'payload':_0x2f4b69}}});else _0x2872d7[_0x57c344(0x380)]({'id':_univerjs_data_validation[_0x57c344(0x252)]['id'],'params':{'unitId':_0x558f68,'subUnitId':_0x5e6f48,'ruleId':_0x50dce8}});}return{'m1Prime':_0x2872d7[_0x57c344(0x29d)]?_0x2872d7:[_0x50827c],'m2Prime':[..._0x2872d7,_0x25fe75]};}return _0x54f856;}},updateDataValidationMutationWithRemoveSelf={'m1':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x252)]['id'],'handler':(_0x1e5b11,_0xd657c6)=>{const _0x1076f3=_0xfc9601,_0x2e9cd6={'m1Prime':_0x1e5b11,'m2Prime':_0xd657c6};if(_0x1e5b11[_0x1076f3(0x3eb)]['unitId']!==_0xd657c6[_0x1076f3(0x3eb)]['unitId']||_0x1e5b11[_0x1076f3(0x3eb)][_0x1076f3(0x25e)]!==_0xd657c6['params'][_0x1076f3(0x25e)])return _0x2e9cd6;const _0x3f4654=_0x1e5b11['params']['ruleId'];if((Array['isArray'](_0xd657c6['params'][_0x1076f3(0x2d2)])?_0xd657c6[_0x1076f3(0x3eb)][_0x1076f3(0x2d2)]:[_0xd657c6[_0x1076f3(0x3eb)][_0x1076f3(0x2d2)]])[_0x1076f3(0x3e1)](_0x3f4654)>-0x1)return{'m1Prime':[],'m2Prime':_0xd657c6};return _0x2e9cd6;}},updateDataValidationMutationWithSelf={'m1':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'m2':_univerjs_data_validation[_0xfc9601(0x216)]['id'],'handler':(_0x13ce74,_0x42ff5c)=>{const _0x48e6ad=_0xfc9601,_0x3a8949={'m1Prime':_0x13ce74,'m2Prime':_0x42ff5c},_0x17e729=_0x13ce74[_0x48e6ad(0x3eb)],_0x3443d6=_0x42ff5c[_0x48e6ad(0x3eb)];if(_0x17e729['unitId']===_0x3443d6[_0x48e6ad(0x1d0)]&&_0x17e729[_0x48e6ad(0x25e)]===_0x3443d6[_0x48e6ad(0x25e)]){const _0x5bf641=_univerjs_core['Tools']['deepClone'](_0x42ff5c);if(_0x3443d6['ruleId']===_0x17e729['ruleId']&&_0x17e729[_0x48e6ad(0x210)]['type']===_0x3443d6['payload'][_0x48e6ad(0x266)]){if(_0x17e729[_0x48e6ad(0x210)]['type']===_univerjs_data_validation[_0x48e6ad(0x28c)][_0x48e6ad(0x2fc)]&&!(0x0,_univerjs_core['isRangesEqual'])(_0x17e729['payload'][_0x48e6ad(0x210)],_0x3443d6[_0x48e6ad(0x210)]['payload']))return{'error':new Error(_0x48e6ad(0x211))};return{'m1Prime':[],'m2Prime':_0x5bf641};}if(_0x17e729['payload'][_0x48e6ad(0x266)]===_univerjs_data_validation[_0x48e6ad(0x28c)][_0x48e6ad(0x2fc)]&&_0x3443d6['payload'][_0x48e6ad(0x266)]===_univerjs_data_validation['UpdateRuleType'][_0x48e6ad(0x2fc)]&&_0x3443d6[_0x48e6ad(0x2d2)]!==_0x17e729[_0x48e6ad(0x2d2)]){const _0x78d760=new _univerjs_core['ObjectMatrix']();function _0x36f72a(_0xd7d573,_0x63ff70){_0xd7d573['forEach'](_0x45f98a=>{const _0x8620b2=_0x5cb6;_univerjs_core[_0x8620b2(0x33f)][_0x8620b2(0x1d6)](_0x45f98a,(_0x3a17af,_0x461ba8)=>{const _0x2f9d39=_0x8620b2;_0x78d760[_0x2f9d39(0x2fe)](_0x3a17af,_0x461ba8,_0x63ff70);});});}_0x36f72a(_0x17e729[_0x48e6ad(0x210)][_0x48e6ad(0x210)],_0x17e729[_0x48e6ad(0x2d2)]),_0x36f72a(_0x3443d6['payload']['payload'],_0x3443d6[_0x48e6ad(0x2d2)]);const _0x2ddb36=(0x0,_univerjs_core[_0x48e6ad(0x1dc)])(_0x78d760,_0x18bdca=>_0x18bdca===_0x17e729[_0x48e6ad(0x2d2)]),_0x39b393=!(0x0,_univerjs_core[_0x48e6ad(0x353)])(_0x17e729['payload']['payload'],_0x2ddb36)?_0x2ddb36['length']?[{'id':_univerjs_data_validation['UpdateDataValidationMutation']['id'],'params':{..._0x17e729,'payload':{'type':_univerjs_data_validation[_0x48e6ad(0x28c)]['RANGE'],'payload':_0x2ddb36}}}]:[{'id':_univerjs_data_validation[_0x48e6ad(0x252)]['id'],'params':{..._0x17e729,'payload':void 0x0}}]:[];return{'m1Prime':[_0x13ce74],'m2Prime':[..._0x39b393,_0x42ff5c]};}}return _0x3a8949;}},updateHyperLinkRefWithSelf={'m1':_univerjs_sheets_hyper_link[_0xfc9601(0x226)]['id'],'m2':_univerjs_sheets_hyper_link['UpdateHyperLinkRefMutation']['id'],'handler':(_0x1bdf55,_0x3a5542)=>{const _0x153fcc=_0xfc9601,_0x24c39b=_0x1bdf55[_0x153fcc(0x3eb)],_0x377fb9=_0x3a5542['params'];if(_0x24c39b[_0x153fcc(0x1d0)]===_0x377fb9[_0x153fcc(0x1d0)]&&_0x24c39b[_0x153fcc(0x25e)]===_0x377fb9[_0x153fcc(0x25e)]&&_0x24c39b['id']===_0x377fb9['id'])return{'m2Prime':_0x3a5542,'m1Prime':[]};return{'m1Prime':_0x1bdf55,'m2Prime':_0x3a5542};}},updateHyperLinkWithSelf={'m1':_univerjs_sheets_hyper_link[_0xfc9601(0x319)]['id'],'m2':_univerjs_sheets_hyper_link[_0xfc9601(0x319)]['id'],'handler':(_0x2f7f1a,_0x2977d4)=>{const _0x32f9c6=_0xfc9601,_0x5c48ad=_0x2f7f1a[_0x32f9c6(0x3eb)],_0x46ca83=_0x2977d4[_0x32f9c6(0x3eb)];if(_0x5c48ad[_0x32f9c6(0x1d0)]===_0x46ca83[_0x32f9c6(0x1d0)]&&_0x5c48ad[_0x32f9c6(0x25e)]===_0x46ca83['subUnitId']&&_0x5c48ad['id']===_0x46ca83['id'])return{'m2Prime':_0x2977d4,'m1Prime':[]};return{'m1Prime':_0x2f7f1a,'m2Prime':_0x2977d4};}},removeSheetMutationWithAddWorksheetMerge={'m1':_univerjs_sheets['RemoveSheetMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x379)]['id'],'handler'(_0x30337e,_0x1fcf5a){const _0x320830=_0xfc9601;if(_0x30337e[_0x320830(0x3eb)][_0x320830(0x1d0)]!==_0x1fcf5a[_0x320830(0x3eb)][_0x320830(0x1d0)]||_0x30337e[_0x320830(0x3eb)][_0x320830(0x25e)]!==_0x1fcf5a[_0x320830(0x3eb)][_0x320830(0x25e)])return{'m1Prime':_0x30337e,'m2Prime':_0x1fcf5a};return{'m1Prime':_0x30337e,'m2Prime':[]};}},removeSheetMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0xfc9601(0x376)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x374)]['id'],'handler'(_0x53fbc2,_0x370a2f){const _0x55a55c=_0xfc9601;if(_0x53fbc2[_0x55a55c(0x3eb)]['unitId']!==_0x370a2f[_0x55a55c(0x3eb)][_0x55a55c(0x1d0)]||_0x53fbc2['params'][_0x55a55c(0x25e)]!==_0x370a2f['params']['subUnitId'])return{'m1Prime':_0x53fbc2,'m2Prime':_0x370a2f};return{'m1Prime':_0x53fbc2,'m2Prime':[]};}},InsertSheetMutationWithSelf={'m1':_univerjs_sheets[_0xfc9601(0x243)]['id'],'m2':_univerjs_sheets[_0xfc9601(0x243)]['id'],'handler'(_0x370902,_0x55082d){const _0x23b99e=_0xfc9601;if(_0x370902[_0x23b99e(0x3eb)]['sheet']['id']===_0x55082d['params'][_0x23b99e(0x2b7)]['id'])return{'error':new Error(_0x23b99e(0x1da))};const _0x21e826=_univerjs_core['Tools'][_0x23b99e(0x1cf)](_0x370902),_0x2ee4f8=_univerjs_core[_0x23b99e(0x1c3)][_0x23b99e(0x1cf)](_0x55082d);if(_0x21e826[_0x23b99e(0x3eb)]['index']<=_0x2ee4f8[_0x23b99e(0x3eb)][_0x23b99e(0x33e)])_0x2ee4f8[_0x23b99e(0x3eb)][_0x23b99e(0x33e)]+=0x1;else{if(_0x21e826['params'][_0x23b99e(0x33e)]>_0x2ee4f8[_0x23b99e(0x3eb)][_0x23b99e(0x33e)])_0x21e826[_0x23b99e(0x3eb)][_0x23b99e(0x33e)]+=0x1;}if(_0x370902[_0x23b99e(0x3eb)][_0x23b99e(0x2b7)]['name']===_0x55082d['params']['sheet'][_0x23b99e(0x2f3)]){const _0x55c5b2={'id':_univerjs_sheets['SetWorksheetNameMutation']['id'],'params':{'unitId':_0x55082d[_0x23b99e(0x3eb)][_0x23b99e(0x1d0)],'subUnitId':_0x55082d[_0x23b99e(0x3eb)][_0x23b99e(0x2b7)]['id'],'name':_0x55082d[_0x23b99e(0x3eb)][_0x23b99e(0x2b7)][_0x23b99e(0x2f3)]+'\x20(1)'}};return{'m1Prime':[_0x55c5b2,_0x21e826],'m2Prime':[_0x2ee4f8,_0x55c5b2]};}return{'m1Prime':_0x21e826,'m2Prime':_0x2ee4f8};}},RemoveSheetMutationWithOthers={'m1':_univerjs_sheets['RemoveSheetMutation']['id'],'m2':_0xfc9601(0x3fb),'handler'(_0x3bcc2e,_0xb76756){const _0x5e3e95=_0xfc9601;if(_0x3bcc2e[_0x5e3e95(0x3eb)][_0x5e3e95(0x1d0)]!==_0xb76756[_0x5e3e95(0x3eb)][_0x5e3e95(0x1d0)]||_0x3bcc2e[_0x5e3e95(0x3eb)][_0x5e3e95(0x25e)]!==_0xb76756['params'][_0x5e3e95(0x25e)])return{'m1Prime':_0x3bcc2e,'m2Prime':_0xb76756};if(_0x3bcc2e['id']===_0xb76756['id'])return{'m1Prime':[],'m2Prime':[]};return{'m1Prime':_0x3bcc2e,'m2Prime':[]};}},SetWorksheetOrderMutationWithSelf={'m1':_univerjs_sheets['SetWorksheetOrderMutation']['id'],'m2':_univerjs_sheets[_0xfc9601(0x389)]['id'],'handler'(_0x675e51,_0x1036bc){const _0x16888b=_0xfc9601,_0x4880ae=_univerjs_core['Tools'][_0x16888b(0x1cf)](_0x675e51),_0x43db52=_univerjs_core[_0x16888b(0x1c3)][_0x16888b(0x1cf)](_0x1036bc),_0x5994f7={'error':new Error(_0x16888b(0x3da))};if(_0x675e51[_0x16888b(0x3eb)][_0x16888b(0x32d)]===_0x1036bc[_0x16888b(0x3eb)][_0x16888b(0x32d)])_0x4880ae['id']=_univerjs_sheets[_0x16888b(0x305)]['id'],_0x43db52['params'][_0x16888b(0x32d)]=_0x675e51['params'][_0x16888b(0x3b7)];else{if(_0x675e51[_0x16888b(0x3eb)][_0x16888b(0x32d)]===_0x675e51[_0x16888b(0x3eb)]['toOrder'])_0x4880ae['id']=_univerjs_sheets[_0x16888b(0x305)]['id'];if(_0x1036bc[_0x16888b(0x3eb)][_0x16888b(0x32d)]===_0x1036bc[_0x16888b(0x3eb)][_0x16888b(0x3b7)])_0x43db52['id']=_univerjs_sheets[_0x16888b(0x305)]['id'];const _0x2d9db8=[Math[_0x16888b(0x1d8)](_0x675e51[_0x16888b(0x3eb)][_0x16888b(0x32d)],_0x675e51['params'][_0x16888b(0x3b7)]),Math[_0x16888b(0x2bd)](_0x675e51[_0x16888b(0x3eb)]['fromOrder'],_0x675e51[_0x16888b(0x3eb)][_0x16888b(0x3b7)])],_0x257fa8=[Math[_0x16888b(0x1d8)](_0x1036bc[_0x16888b(0x3eb)][_0x16888b(0x32d)],_0x1036bc[_0x16888b(0x3eb)]['toOrder']),Math['max'](_0x1036bc[_0x16888b(0x3eb)][_0x16888b(0x32d)],_0x1036bc[_0x16888b(0x3eb)][_0x16888b(0x3b7)])];if(_0x2d9db8[0x0]<=_0x257fa8[0x1]&&_0x2d9db8[0x1]>=_0x257fa8[0x0])return _0x5994f7;}return{'m1Prime':_0x4880ae,'m2Prime':_0x43db52};}},InsetSheetMutationWithSetWorksheetOrder={'m1':_univerjs_sheets[_0xfc9601(0x243)]['id'],'m2':_univerjs_sheets['SetWorksheetOrderMutation']['id'],'handler'(_0x4d08fb,_0x9a6e81){const _0x3505a2=_0xfc9601,_0x10e3e7=_univerjs_core[_0x3505a2(0x1c3)]['deepClone'](_0x4d08fb),_0x18530c=_univerjs_core[_0x3505a2(0x1c3)][_0x3505a2(0x1cf)](_0x9a6e81);if(_0x4d08fb[_0x3505a2(0x3eb)][_0x3505a2(0x33e)]<=_0x9a6e81['params'][_0x3505a2(0x2d8)])_0x18530c[_0x3505a2(0x3eb)][_0x3505a2(0x2d8)]+=0x1;return{'m1Prime':_0x10e3e7,'m2Prime':_0x18530c};}},OthersWithRemoveSheetMutation={'m1':'any','m2':_univerjs_sheets[_0xfc9601(0x376)]['id'],'handler'(_0x5d631d,_0x1848c4){const _0x151eb9=_0xfc9601;if(_0x5d631d[_0x151eb9(0x3eb)][_0x151eb9(0x1d0)]!==_0x1848c4[_0x151eb9(0x3eb)][_0x151eb9(0x1d0)]||_0x5d631d[_0x151eb9(0x3eb)]['subUnitId']!==_0x1848c4[_0x151eb9(0x3eb)][_0x151eb9(0x25e)])return{'m1Prime':_0x5d631d,'m2Prime':_0x1848c4};if(_0x5d631d['id']===_0x1848c4['id'])return{'m1Prime':[],'m2Prime':[]};return{'m1Prime':[],'m2Prime':_0x1848c4};}},WorksheetAlgorithms=[InsertSheetMutationWithSelf,InsetSheetMutationWithSetWorksheetOrder,RemoveSheetMutationWithOthers,OthersWithRemoveSheetMutation,SetWorksheetOrderMutationWithSelf],SHEET_ALL_ALGORITHMS=[...WorksheetAlgorithms,insertColMutationWithSelf,insertColMutationWithMoveCol,insertColMutationWithMoveRange,insertColMutationWithRemoveCol,insertColMutationWithSetRangeValues,insertColMutationWithSetColData,insertColMutationWithSetColHidden,insertColMutationWithSetColVisible,insertColMutationWithSetWorksheetColWidth,insertColMutationWithSetNumfmt,insertColMutationWithRemoveNumfmt,insertColMutationWithSetSelection,insertRowMutationWithSelf,insertRowMutationWithMoveRange,insertRowMutationWithMoveRow,insertRowMutationWithRemoveRow,insertRowMutationWithSetRangeValues,insertRowMutationWithSetWorksheetRowAutoHeight,insertRowMutationWithSetWorksheetRowHeight,insertRowMutationWithSetWorksheetRowIsAutoHeight,insertRowMutationWithSetRowData,insertRowMutationWithSetRowHidden,insertRowMutationWithSetRowVisible,insertRowMutationWithSetNumfmt,insertRowMutationWithRemoveNumfmt,insertRowMutationWithSetSelection,moveColMutationWithSelf,moveColMutationWithSetRangeValues,moveColMutationWithMoveRange,moveColMutationWithSetColData,moveColMutationWithSetColHidden,moveColMutationWithSetColVisible,moveColMutationWithSetWorksheetColWidth,moveColMutationWithSetNumfmt,moveColMutationWithSetSelection,moveColMutationWithRemoveNumfmt,moveRowMutationWithSelf,moveRowMutationWithSetRangeValues,moveRowMutationWithMoveRange,moveRowMutationWithSetWorksheetRowAutoHeight,moveRowMutationWithSetWorksheetRowHeight,moveRowMutationWithSetWorksheetRowIsAutoHeight,moveRowMutationWithSetRowData,moveRowMutationWithSetRowHidden,moveRowMutationWithSetRowVisible,moveRowMutationWithSetNumfmt,moveRowMutationWithRemoveNumfmt,moveRowMutationWithSetSelection,moveRangeMutationWithSelf,moveRangeMutationWithSetNumfmt,moveRangeMutationWithRemoveNumfmt,removeColMutationWithSelf,removeColMutationWithMoveCol,removeColMutationWithMoveRange,removeColMutationWithSetRangeValues,removeColMutationWithSetColData,removeColMutationWithSetColHidden,removeColMutationWithSetColVisible,removeColMutationWithSetWorksheetColWidth,removeColMutationWithSetNumfmt,removeColMutationWithRemoveNumfmt,removeColMutationWithSetSelection,removeRowMutationWithSelf,removeRowMutationWithMoveRow,removeRowMutationWithMoveRange,removeRowMutationWithSetRangeValues,removeRowMutationWithSetWorksheetRowAutoHeight,removeRowMutationWithSetWorksheetRowHeight,removeRowMutationWithSetWorksheetRowIsAutoHeight,removeRowMutationWithSetRowData,removeRowMutationWithSetRowHidden,removeRowMutationWithSetRowVisible,removeRowMutationWithSetNumfmt,removeRowMutationWithRemoveNumfmt,removeRowMutationWithSetSelection,setRangeValuesMutationWithSelf,setRangeValuesWithMoveRange,setWorksheetNameWithInsertSheet,setWorksheetNameMutationWithSelf,setFrozenMutationWithSelf,setTabColorMutationWithSelf,setWorksheetColWidthMutationWithSelf,setWorksheetRowAutoHeightMutationWithSelf,setWorksheetRowHeightMutationWithSelf,setWorksheetRowIsAutoHeightMutationWithSelf,setRowDataMutationWithSelf,setColDataMutationWithSelf,setNumfmtMutationWithSelf,setNumfmtMutationWithRemoveNumfmt,removeNumfmtMutationWithSelf,removeNumfmtMutationWithSetNumfmt,addConditionalFormattingRuleMutationWithSelf,setConditionalFormattingRuleMutationWithSelf,moveConditionalFormattingRuleMutationWithSelf,deleteConditionalFormattingRuleMutationWithSelf,addDataValidationMutationWithSelf,updateDataValidationMutationWithSelf,removeDataValidationMutationWithSelf,moveColMutationWithAddDataValidation,moveRowMutationWithAddDataValidation,insertColMutationWithAddDataValidation,removeColMutationWithAddDataValidation,removeRowMutationWithAddDataValidation,moveColMutationWithUpdateDataValidation,moveRowMutationWithUpdateDataValidation,insertColMutationWithUpdateDataValidation,insertRowMutationWithUpdateDataValidation,removeColMutationWithUpdateDataValidation,removeRowMutationWithUpdateDataValidation,addDataValidationMutationWithUpdate,updateDataValidationMutationWithAdd,updateDataValidationMutationWithRemoveSelf,insertColMutationWithSetSheetsFilterCriteria,insertColMutationWithSetSheetsFilterRange,insertRowMutationWithSetSheetsFilterRange,moveColMutationWithSetSheetsFilterCriteria,moveColMutationWithSetSheetsFilterRange,moveRowMutationWithSetSheetsFilterRange,removeColMutationWithSetSheetsFilterCriteria,removeColMutationWithSetSheetsFilterRange,removeRowMutationWithSetSheetsFilterRange,setSheetsFilterCriteriaWithSelf,setSheetsFilterCriteriaWithRemoveSheetsFilter,setSheetsFilterCriteriaWithSetRangeValues,setSheetsFilterCriteriaWithMoveRange,setSheetsFilterRangeWithSelf,setSheetsFilterRangeWithRemoveSheetsFilter,addWorksheetMergeMutationWithSelf,addWorksheetMergeMutationWithInsertColMutation,insertColMutationWithAddMerge,addWorksheetMergeMutationWithInsertRowMutation,insertRowMutationWithAddMerge,addWorksheetMergeMutationWithMoveColMutation,moveColMutationWithAddMerge,addWorksheetMergeMutationWithMoveRowMutation,moveRowsMutationWithAddMerge,addWorksheetMergeMutationWithMoveRangeMutation,moveRangeMutationWithAddMerge,addWorksheetMergeMutationWithRemoveColMutation,removeColMutationWithAddMerge,addWorksheetMergeMutationWithRemoveRowMutation,removeRowMutationWithAddMerge,addWorksheetMergeMutationWithSetRangeValues,setRangeValueMutationWithAddMerge,addWorksheetMergeMutationWithRemoveWorksheetMergeMutation,removeSheetMutationWithAddWorksheetMerge,insertColMutationWithRemoveWorksheetMergeMutation,insertRowMutationWithRemoveWorksheetMergeMutation,moveColMutationWithRemoveWorksheetMerge,moveRowMutationWithRemoveWorksheetMerge,removeColMutationWithRemoveWorksheetMerge,removeRowMutationWithRemoveWorksheetMerge,removeSheetMutationWithRemoveWorksheetMerge,removeWorksheetMergeMutationWithAddMerge,removeWorksheetMergeMutationWithInsertRowMutation,removeWorksheetMergeMutationWithInsertColMutation,removeWorksheetMergeMutationWithMoveColMutation,removeWorksheetMergeMutationWithMoveRowMutation,removeWorksheetMergeMutationWithRemoveColMutation,removeWorksheetMergeMutationWithRemoveRowMutation,addWorksheetMergeMutationWithSetSelection,removeWorksheetMergeMutationWithSetSelection,addCommentMutationWithSelf,deleteCommentMutationWithAdd,deleteCommentMutationWithSelf,updateCommentRefWithSelf,updateCommentWithSelf,insertColWithAddComment,insertRowWithAddComment,moveColWithAddComment,moveRowWithAddComment,removeColWithAddComment,removeRowWithAddComment,insertColWithUpdateCommentRef,insertRowWithUpdateCommentRef,moveColsWithUpdateCommentRef,moveRowsWithUpdateCommentRef,removeColWithUpdateCommentRef,removeRowWithUpdateCommentRef,addHyperLinkWithSelf,removeHyperLinkWithSelf,updateHyperLinkWithSelf,updateHyperLinkRefWithSelf,addRangeProtectionWithAddComment,addRangeProtectionWithAddConditionRule,addRangeProtectionWithSelf,addRangeProtectionWithAddWorksheetMerge,addRangeProtectionWithAddWorksheetProtection,addRangeProtectionWithDeleteConditionFormattingRule,addRangeProtectionWithInsertCol,addRangeProtectionWithInsertRow,addRangeProtectionWithMoveCol,addRangeProtectionWithMoveRange,addRangeProtectionWithMoveRow,addRangeProtectionWithRemoveCol,addRangeProtectionWithRemoveDataValidation,addRangeProtectionWithRemoveNumfmt,addRangeProtectionWithRemoveFilter,addRangeProtectionWithRemoveWorksheetMerge,addRangeProtectionWithSetConditionalFormattingRule,addRangeProtectionWithSetFrozen,addRangeProtectionWithSetNumfmt,addRangeProtectionWithSetRangeProtection,addRangeProtectionWithSetRangeValue,addRangeProtectionWithSetWorksheetColWidth,addRangeProtectionWithUpdateComment,addRangeProtectionWithUpdateDataValidation,setRangeProtectionWithAddComment,setRangeProtectionWithAddConditionRule,setRangeProtectionWithAddWorksheetMerge,setRangeProtectionWithAddWorksheetProtection,setRangeProtectionWithDeleteConditionFormattingRule,setRangeProtectionWithInsertCol,setRangeProtectionWithInsertRow,setRangeProtectionWithMoveCol,setRangeProtectionWithMoveRange,setRangeProtectionWithMoveRow,setRangeProtectionWithRemoveCol,setRangeProtectionWithRemoveRow,setRangeProtectionWithRemoveDataValidation,setRangeProtectionWithRemoveFilter,setRangeProtectionWithRemoveWorksheetMerge,setRangeProtectionWithSetConditionalFormattingRule,setRangeProtectionWithSetFrozen,setRangeProtectionWithSetNumfmt,setRangeProtectionWithSetRangeProtection,setRangeProtectionWithSetRangeValue,setRangeProtectionWithSetWorksheetColWidth,setRangeProtectionWithUpdateComment,setRangeProtectionWithUpdateDataValidation,addWorksheetProtectionWithAddComment,addWorksheetProtectionWithAddConditionRule,addWorksheetProtectionWithAddRangeProtection,addWorksheetProtectionWithAddWorksheetMerge,addWorksheetProtectionWithSelf,addWorksheetProtectionWithChangeSheetOrder,addWorksheetProtectionWithDeleteConditionFormattingRule,addWorksheetProtectionWithInsertCol,addWorksheetProtectionWithInsertRow,addWorksheetProtectionWithMoveCol,addWorksheetProtectionWithMoveRow,addWorksheetProtectionWithMoveRange,addWorksheetProtectionWithRemoveCol,addWorksheetProtectionWithRemoveRow,addWorksheetProtectionWithRemoveDataValidation,addWorksheetProtectionWithRemoveNumfmt,addWorksheetProtectionWithRemoveWorksheetMerge,addWorksheetProtectionWithRemoveFilter,addWorksheetProtectionWithRemoveWorksheet,addWorksheetProtectionWithSetConditionalFormattingRule,addWorksheetProtectionWithSetFrozen,addWorksheetProtectionWithSetNumfmt,addWorksheetProtectionWithSetRangeProtection,addWorksheetProtectionWithSetWorksheetColWidth,addWorksheetProtectionWithSetWorksheetName,addWorksheetProtectionWithUpdateComment,addWorksheetProtectionWithUpdateDataValidation,insertRowMutationWithReorderRange,insertColMutationWithReorderRange,removeRowMutationWithReorderRange,removeColMutationWithReorderRange,moveRowMutationWithReorderRange,moveColMutationWithReorderRange,moveRangeMutationWithReorderRange,setRangeValuesMutationWithReorderRange,reorderRangeMutationWithSelf,setDrawingApplyMutationWithSelf,OthersWithRevertRevision,RevertRevisionMutationWithOthers];let SheetTransformController=class SheetTransformController extends _univerjs_core['Disposable']{constructor(_0x17c8ed){const _0xd1b569=_0xfc9601;super(),this[_0xd1b569(0x288)]=_0x17c8ed,SHEET_ALL_ALGORITHMS[_0xd1b569(0x302)](_0x2dc128=>{const _0x460c1e=_0xd1b569;this[_0x460c1e(0x288)]['registerTransformAlgorithm'](_0x2dc128);});}};SheetTransformController=__decorate([__decorateParam(0x0,ITransformService)],SheetTransformController);function parseProtocolChangeset(_0x5770a2){const _0x22be7b=_0xfc9601;var _0x19e808,_0x5e6e4b;return{..._0x5770a2,'mutations':(_0x19e808=(_0x5e6e4b=_0x5770a2[_0x22be7b(0x356)])===null||_0x5e6e4b===void 0x0?void 0x0:_0x5e6e4b[_0x22be7b(0x3b3)](parseProtocolMutation))!==null&&_0x19e808!==void 0x0?_0x19e808:[]};}function parseProtocolCommand(_0x88ecd5){const _0xd6f29c=_0xfc9601;return _0x88ecd5[_0xd6f29c(0x3b3)](_0x47ca2e=>({'id':_0x47ca2e['id'],'params':JSON['parse'](_0x47ca2e['data'])}));}function parseChangesetToProtocol(_0x40b2ab){const _0x10c0b1=_0xfc9601;var _0x117f98,_0x5fe42d;return{..._0x40b2ab,'mutations':(_0x117f98=(_0x5fe42d=_0x40b2ab[_0x10c0b1(0x356)])===null||_0x5fe42d===void 0x0?void 0x0:_0x5fe42d['map'](parseMutationToProtocol))!==null&&_0x117f98!==void 0x0?_0x117f98:[]};}function parseProtocolMutation(_0x58a965){const _0x1f6c88=_0xfc9601;return{'id':_0x58a965['id'],'params':JSON[_0x1f6c88(0x241)](_0x58a965[_0x1f6c88(0x3db)])};}function parseMutationToProtocol(_0x1fad05){const _0x40c54c=_0xfc9601;return{'id':_0x1fad05['id'],'data':JSON[_0x40c54c(0x2f0)](_0x1fad05['params'])};}let CollaborationEvent=function(_0x224799){const _0x33f615=_0xfc9601;return _0x224799[_0x33f615(0x2c2)]=_0x33f615(0x355),_0x224799[_0x33f615(0x230)]=_0x33f615(0x20d),_0x224799[_0x33f615(0x381)]=_0x33f615(0x314),_0x224799[_0x33f615(0x306)]=_0x33f615(0x21e),_0x224799[_0x33f615(0x352)]=_0x33f615(0x341),_0x224799['CHANGESET_SHOULD_RETRY']=_0x33f615(0x2b5),_0x224799[_0x33f615(0x3dc)]=_0x33f615(0x3ae),_0x224799[_0x33f615(0x1c0)]=_0x33f615(0x296),_0x224799[_0x33f615(0x2d6)]=_0x33f615(0x25f),_0x224799[_0x33f615(0x33b)]=_0x33f615(0x20c),_0x224799[_0x33f615(0x39a)]=_0x33f615(0x1f6),_0x224799['LIVESHARE_REQUEST_HOST']=_0x33f615(0x386),_0x224799[_0x33f615(0x3b5)]=_0x33f615(0x1f9),_0x224799['LIVESHARE_OPERATION']=_0x33f615(0x3c4),_0x224799[_0x33f615(0x23d)]=_0x33f615(0x3f0),_0x224799[_0x33f615(0x282)]=_0x33f615(0x2e2),_0x224799[_0x33f615(0x2b0)]=_0x33f615(0x25c),_0x224799[_0x33f615(0x1d7)]=_0x33f615(0x264),_0x224799[_0x33f615(0x35c)]=_0x33f615(0x237),_0x224799[_0x33f615(0x212)]='update_permission_obj',_0x224799[_0x33f615(0x358)]=_0x33f615(0x1c9),_0x224799[_0x33f615(0x362)]=_0x33f615(0x1c4),_0x224799;}({});var name=_0xfc9601(0x22b),version=_0xfc9601(0x213);const COLLABORATION_PLUGIN_CONFIG_KEY=_0xfc9601(0x251),configSymbol=Symbol(COLLABORATION_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let RevisionController=class RevisionController extends _univerjs_core[_0xfc9601(0x2a7)]{constructor(_0x3e5de1){const _0x57ba88=_0xfc9601;super(),this['_commandService']=_0x3e5de1,[RevertRevisionMutation]['forEach'](_0x2effec=>this[_0x57ba88(0x36c)]['registerCommand'](_0x2effec));}};RevisionController=__decorate([__decorateParam(0x0,_univerjs_core[_0xfc9601(0x3d0)])],RevisionController);function packNumberMap(_0x437147){const _0x4df497=_0xfc9601,_0xe89750={},_0x1e0c27={},_0x1f4714=Object[_0x4df497(0x38e)](_0x437147)[_0x4df497(0x3b3)](Number)[_0x4df497(0x3be)]((_0x5d76df,_0x311677)=>_0x5d76df-_0x311677);if(_0x1f4714[_0x4df497(0x29d)]===0x0)return _0xe89750;for(const _0x47fee1 of _0x1f4714){const _0x17e791=_0x437147[_0x47fee1];if(!_univerjs_core[_0x4df497(0x1c3)][_0x4df497(0x1ba)](_0x17e791))continue;const _0x7ae8f1=String(_0x17e791);if(!_0x1e0c27[_0x7ae8f1])_0x1e0c27[_0x7ae8f1]=[];_0x1e0c27[_0x7ae8f1][_0x4df497(0x380)](_0x47fee1);}for(const [_0x44749e,_0x4ab2b5]of Object[_0x4df497(0x2b4)](_0x1e0c27)){const _0x4ee4f7=[];if(_0x4ab2b5['length']===0x0)continue;let _0x55d5c6=_0x4ab2b5[0x0],_0x11d509=_0x55d5c6;for(let _0x1a2c96=0x1;_0x1a2c96<_0x4ab2b5[_0x4df497(0x29d)];_0x1a2c96++){const _0x38ac51=_0x4ab2b5[_0x1a2c96];if(_0x38ac51!==_0x11d509+0x1){if(_0x55d5c6===_0x11d509)_0x4ee4f7[_0x4df497(0x380)](_0x55d5c6);else _0x4ee4f7[_0x4df497(0x380)]([_0x55d5c6,_0x11d509]);_0x55d5c6=_0x38ac51;}_0x11d509=_0x38ac51;}if(_0x55d5c6===_0x11d509)_0x4ee4f7['push'](_0x55d5c6);else _0x4ee4f7[_0x4df497(0x380)]([_0x55d5c6,_0x11d509]);if(_0x4ee4f7['length']===0x1&&typeof _0x4ee4f7[0x0]===_0x4df497(0x28f))_0xe89750[_0x44749e]=_0x4ee4f7[0x0];else _0xe89750[_0x44749e]=_0x4ee4f7;}return _0xe89750;}function unpackNumberMap(_0x1ca6a4){const _0x3840f2=_0xfc9601,_0x2687b9={};for(const [_0x2c797c,_0x54ebb7]of Object[_0x3840f2(0x2b4)](_0x1ca6a4)){const _0x51bac7=Number(_0x2c797c);if(typeof _0x54ebb7===_0x3840f2(0x28f)){_0x2687b9[_0x54ebb7]=_0x51bac7;continue;}for(const _0x35e731 of _0x54ebb7)if(Array['isArray'](_0x35e731)){const [_0x4dc3f0,_0x313844]=_0x35e731;for(let _0x6dcd64=_0x4dc3f0;_0x6dcd64<=_0x313844;_0x6dcd64++)_0x2687b9[_0x6dcd64]=_0x51bac7;}else _0x2687b9[_0x35e731]=_0x51bac7;}return _0x2687b9;}const transformRefStyleFromCells=_0x14346f=>{const _0x58c852=_0xfc9601,_0x3c77a0={};if(!_0x14346f)return{'cellValue':_0x14346f,'styleRefMap':void 0x0};const _0x26a93b=[];return{'cellValue':new _univerjs_core[(_0x58c852(0x3c2))](_univerjs_core['Tools']['deepClone'](_0x14346f))[_0x58c852(0x387)]((_0x58e218,_0x3f32d1,_0x183299)=>{const _0x29e3d6=_0x58c852,_0x4c2a49=_0x183299&&_0x183299['s'];if(_0x4c2a49){if(typeof _0x4c2a49===_0x29e3d6(0x1e7)){const _0x332d0a=JSON[_0x29e3d6(0x2f0)](_0x4c2a49),_0x5d7239=_0x26a93b[_0x29e3d6(0x2e3)](_0x3b4c48=>_0x3b4c48===_0x332d0a);if(_0x5d7239>-0x1)_0x183299['s']=''+_0x5d7239;else{const _0x29e70b=_0x26a93b['push'](_0x332d0a)-0x1;_0x3c77a0[_0x29e70b]=_0x4c2a49,_0x183299['s']=''+_0x29e70b;}}}})[_0x58c852(0x1d1)](),'styleRefMap':_0x3c77a0};},transformCellsFromRefStyle=(_0x36e15d,_0x462e07)=>{const _0x1a1e3e=_0xfc9601;if(!_0x36e15d||!_0x462e07)return _0x36e15d;return new _univerjs_core['ObjectMatrix'](_univerjs_core[_0x1a1e3e(0x1c3)]['deepClone'](_0x36e15d))[_0x1a1e3e(0x387)]((_0x3d7220,_0x571a54,_0x30b406)=>{const _0x45c78b=_0x1a1e3e,_0x30ab70=_0x30b406&&_0x30b406['s'];if(_0x30ab70){if(typeof _0x30ab70===_0x45c78b(0x254)){const _0x24c99e=_0x462e07[_0x30ab70];if(_0x24c99e)_0x30b406['s']=_0x24c99e;}}})['getMatrix']();},COMPRESS_MUTATION_APPLY=(0x0,_univerjs_core[_0xfc9601(0x2dd)])(_0xfc9601(0x3e8)),COMPRESS_MUTATION_SEND=(0x0,_univerjs_core[_0xfc9601(0x2dd)])(_0xfc9601(0x399));var CompressMutationService=class{constructor(){const _0x306296=_0xfc9601;_defineProperty(this,_0x306296(0x26a),new _univerjs_core[(_0x306296(0x22e))]({'COMPRESS_MUTATION_APPLY':COMPRESS_MUTATION_APPLY,'COMPRESS_MUTATION_SEND':COMPRESS_MUTATION_SEND})),this[_0x306296(0x2be)]();}[_0xfc9601(0x2be)](){const _0x4c9fdd=_0xfc9601;this[_0x4c9fdd(0x26a)]['intercept'](this[_0x4c9fdd(0x26a)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'],{'priority':-0x1,'handler':_0x1e64bf=>_0x1e64bf}),this['interceptor'][_0x4c9fdd(0x229)](this[_0x4c9fdd(0x26a)][_0x4c9fdd(0x30c)]()[_0x4c9fdd(0x399)],{'priority':-0x1,'handler':_0x22b2b4=>_0x22b2b4}),this[_0x4c9fdd(0x30d)]();}[_0xfc9601(0x30d)](){const _0x7784c6=_0xfc9601;this[_0x7784c6(0x26a)]['intercept'](this['interceptor']['getInterceptPoints']()[_0x7784c6(0x3e8)],{'handler':(_0x2991ed,_0x39ad19,_0x225713)=>{const _0x41a10f=_0x7784c6;if(!_0x2991ed)return _0x225713(_0x2991ed);return _0x225713(_0x2991ed[_0x41a10f(0x3b3)](_0x300b72=>{const _0x922ea7=_0x41a10f;if(_0x300b72['params'][_0x922ea7(0x329)])return _0x300b72;if(_0x300b72['id']===_univerjs_sheets[_0x922ea7(0x30f)]['id']){const _0x522cf1=_0x300b72[_0x922ea7(0x3eb)];if(!_0x522cf1[_0x922ea7(0x239)])return _0x300b72;const _0x13dfd4=transformCellsFromRefStyle(_0x522cf1[_0x922ea7(0x31f)],_0x522cf1[_0x922ea7(0x239)]);return{..._0x300b72,'params':{..._0x522cf1,'cellValue':_0x13dfd4}};}if(_0x300b72['id']===_univerjs_sheets[_0x922ea7(0x304)]['id']||_0x300b72['id']===_univerjs_sheets[_0x922ea7(0x1f5)]['id'])return this['_handleDecompressNumberMapMutationApply'](_0x300b72);return _0x300b72;}));}}),this[_0x7784c6(0x26a)][_0x7784c6(0x229)](this['interceptor'][_0x7784c6(0x30c)]()[_0x7784c6(0x399)],{'handler':(_0x5f107a,_0x51ef43,_0x17f1d9)=>{if(!_0x5f107a)return _0x17f1d9(_0x5f107a);return _0x17f1d9(_0x5f107a['map'](_0x461fad=>{const _0x87bc08=_0x5cb6;if(_0x461fad[_0x87bc08(0x3eb)][_0x87bc08(0x329)])return _0x461fad;if(_0x461fad['id']===_univerjs_sheets['SetRangeValuesMutation']['id']){const _0x72cd95=_0x461fad[_0x87bc08(0x3eb)];if(_0x72cd95[_0x87bc08(0x239)])return _0x461fad;return{..._0x461fad,'params':{..._0x72cd95,...transformRefStyleFromCells(_0x72cd95['cellValue'])}};}else{if(_0x461fad['id']===_univerjs_sheets[_0x87bc08(0x243)]['id'])return this[_0x87bc08(0x35e)](_0x461fad,_0x51ef43);else{if(_0x461fad['id']===_univerjs_sheets[_0x87bc08(0x304)]['id']||_0x461fad['id']===_univerjs_sheets[_0x87bc08(0x1f5)]['id'])return this[_0x87bc08(0x34a)](_0x461fad);}}return _0x461fad;}));}});}['_handleInsertSheetCompressMutationSend'](_0x244a38,_0x466817){const _0x495e83=_0xfc9601,_0x2c499f=_0x244a38[_0x495e83(0x3eb)],{unitId:_0x30f569,sheet:_0x39f539}=_0x2c499f,_0x2a83d0=_0x466817[_0x495e83(0x208)](_0x30f569,_univerjs_core[_0x495e83(0x2c3)][_0x495e83(0x31b)]);if(!_0x2a83d0)return _0x244a38;const _0x2a6922={};return new _univerjs_core[(_0x495e83(0x3c2))](_0x39f539[_0x495e83(0x203)])[_0x495e83(0x387)]((_0x664043,_0x50811d,_0x451712)=>{const _0x2fe5d3=_0x495e83;if(_0x451712&&_0x451712['s']&&typeof _0x451712['s']===_0x2fe5d3(0x254)&&!_0x2a6922[_0x451712['s']])_0x2a6922[_0x451712['s']]=_0x2a83d0['getStyles']()[_0x2fe5d3(0x3a1)](_0x451712['s']);}),{..._0x244a38,'params':{..._0x2c499f,'styles':_0x2a6922}};}[_0xfc9601(0x34a)](_0x4ce1bb){const _0xb85d08=_0xfc9601,_0x2dca64=_0x4ce1bb[_0xb85d08(0x3eb)];let _0x352d0d,_0xe9b8ba;'rowHeight'in _0x2dca64?(_0x352d0d=_0xb85d08(0x32e),_0xe9b8ba=_0x2dca64[_0xb85d08(0x32e)]):(_0x352d0d=_0xb85d08(0x2de),_0xe9b8ba=_0x2dca64[_0xb85d08(0x2de)]);if(typeof _0xe9b8ba===_0xb85d08(0x28f))return _0x4ce1bb;const _0x412657=packNumberMap(_0xe9b8ba);return{..._0x4ce1bb,'params':{..._0x2dca64,[_0x352d0d]:_0x412657,'compress':!![]}};}[_0xfc9601(0x222)](_0x295986){const _0x17f4c4=_0xfc9601,_0x5212c7=_0x295986[_0x17f4c4(0x3eb)];if(!(_0x17f4c4(0x415)in _0x5212c7)||!_0x5212c7[_0x17f4c4(0x415)])return _0x295986;let _0x27d37b,_0x2ffbad;if(_0x17f4c4(0x32e)in _0x5212c7)_0x27d37b='rowHeight',_0x2ffbad=_0x5212c7['rowHeight'];else{if(_0x17f4c4(0x2de)in _0x5212c7)_0x27d37b=_0x17f4c4(0x2de),_0x2ffbad=_0x5212c7['colWidth'];else return _0x295986;}if(typeof _0x2ffbad==='number')return _0x295986;const _0x29459d=unpackNumberMap(_0x2ffbad);return{..._0x295986,'params':{..._0x5212c7,[_0x27d37b]:_0x29459d}};}};const SINGLE_SNAPSHOT_MUTATIONS=new Set([_univerjs_sheets[_0xfc9601(0x243)]['id'],_univerjs_sheets[_0xfc9601(0x376)]['id'],_univerjs_sheets[_0xfc9601(0x2c8)]['id']]),SINGLE_HISTORY_MUTATIONS=new Set([_univerjs_sheets[_0xfc9601(0x243)]['id'],_univerjs_sheets[_0xfc9601(0x376)]['id'],RevertRevisionMutation['id'],_univerjs_sheets[_0xfc9601(0x2ec)]['id'],_univerjs_sheets[_0xfc9601(0x3a8)]['id'],_univerjs_sheets[_0xfc9601(0x1e5)]['id'],_univerjs_sheets[_0xfc9601(0x3d8)]['id'],_univerjs_sheets[_0xfc9601(0x39c)]['id'],CreateUnitMutation['id'],_univerjs_sheets[_0xfc9601(0x3f9)]['id'],_univerjs_sheets[_0xfc9601(0x389)]['id'],_univerjs_sheets[_0xfc9601(0x1e4)]['id'],_univerjs_sheets['CopyWorksheetEndMutation']['id'],_univerjs_sheets['SetTabColorMutation']['id'],_univerjs_sheets['SetWorkbookNameMutation']['id'],_univerjs_sheets[_0xfc9601(0x2b1)]['id'],_univerjs_sheets['SetWorksheetProtectionMutation']['id'],_univerjs_sheets[_0xfc9601(0x354)]['id'],_univerjs_sheets[_0xfc9601(0x30a)]['id']]);let RevisionService=class RevisionService{constructor(_0x87a98e){const _0x952727=_0xfc9601;this[_0x952727(0x24c)]=_0x87a98e;}[_0xfc9601(0x2b2)](_0x2f5342){const _0x3cb801=_0xfc9601,_0x41eb3c=this[_0x3cb801(0x24c)]['getUnit'](_0x2f5342);if(!_0x41eb3c)throw new Error('[RevisionService]:\x20cannot\x20find\x20document\x20with\x20unitId:\x20'+_0x2f5342+'.');return _0x41eb3c[_0x3cb801(0x255)]();}['incrementRevOfUnit'](_0x480c92){const _0x45bdf3=_0xfc9601,_0x14f97e=this['_univerInstanceService'][_0x45bdf3(0x208)](_0x480c92);if(!_0x14f97e)throw new Error(_0x45bdf3(0x205)+_0x480c92+'.');return _0x14f97e[_0x45bdf3(0x2e1)](),_0x14f97e[_0x45bdf3(0x255)]();}[_0xfc9601(0x416)](_0x272fee,_0x5b7c98){const _0x11f1aa=_0xfc9601,_0xcc52db=this['_univerInstanceService'][_0x11f1aa(0x208)](_0x272fee);if(_0xcc52db)_0xcc52db['setRev'](_0x5b7c98);}};RevisionService=__decorate([__decorateParam(0x0,_univerjs_core[_0xfc9601(0x38f)])],RevisionService);const textEncoder=new TextEncoder(),textDecoder=new TextDecoder();function encodeWorksheetOtherMetas(_0x7e104b){const _0x3aaf15=_0xfc9601,_0x58464=['id','name','rowCount',_0x3aaf15(0x1b8),_0x3aaf15(0x203)],_0x44ed24={};return Object[_0x3aaf15(0x38e)](_0x7e104b)[_0x3aaf15(0x302)](_0x2f3422=>{const _0x1280a5=_0x3aaf15;if(!_0x58464[_0x1280a5(0x3ec)](_0x2f3422))_0x44ed24[_0x2f3422]=_univerjs_core[_0x1280a5(0x1c3)][_0x1280a5(0x1cf)](_0x7e104b[_0x2f3422]);}),textEncoder[_0x3aaf15(0x406)](JSON['stringify'](_0x44ed24));}function encodeWorkbookOtherMetas(_0x13be65){const _0x408062=_0xfc9601,_0xc6e24f=['id',_0x408062(0x3ef),_0x408062(0x2f3),_0x408062(0x384),_0x408062(0x3b2),_0x408062(0x24a)],_0x583119={};return Object[_0x408062(0x38e)](_0x13be65)[_0x408062(0x302)](_0x2e12ce=>{const _0x4e5ddc=_0x408062;if(!_0xc6e24f[_0x4e5ddc(0x3ec)](_0x2e12ce))_0x583119[_0x2e12ce]=_univerjs_core[_0x4e5ddc(0x1c3)]['deepClone'](_0x13be65[_0x2e12ce]);}),textEncoder[_0x408062(0x406)](JSON[_0x408062(0x2f0)](_0x583119));}function encodeDocOriginalMeta(_0x109e85){const _0x38259f=_0xfc9601,_0x31126d=['id',_0x38259f(0x3ef),_0x38259f(0x269),_0x38259f(0x24a)],_0x22bcea={};return Object['keys'](_0x109e85)[_0x38259f(0x302)](_0x49b1df=>{const _0x5dcbeb=_0x38259f;if(!_0x31126d['includes'](_0x49b1df))_0x22bcea[_0x49b1df]=_univerjs_core[_0x5dcbeb(0x1c3)][_0x5dcbeb(0x1cf)](_0x109e85[_0x49b1df]);}),textEncoder[_0x38259f(0x406)](JSON[_0x38259f(0x2f0)](_0x22bcea));}function decodeWorksheetOtherMetas(_0x464f23){const _0x26792a=_0xfc9601;if(typeof _0x464f23===_0x26792a(0x254))return JSON[_0x26792a(0x241)](b64DecodeUnicode(_0x464f23));return JSON['parse'](textDecoder[_0x26792a(0x206)](_0x464f23));}function decodePartOfCellData(_0x56e5b8){const _0x177016=_0xfc9601;if(_0x56e5b8 instanceof Uint8Array){let _0xd6b9ed=textDecoder[_0x177016(0x206)](_0x56e5b8);const _0x44cb98=JSON[_0x177016(0x241)](_0xd6b9ed);return _0xd6b9ed=null,_0x44cb98;}return _0x56e5b8;}function decodeDocOriginalMeta(_0x150f32){const _0x3caeac=_0xfc9601;if(typeof _0x150f32===_0x3caeac(0x254))return JSON[_0x3caeac(0x241)](b64DecodeUnicode(_0x150f32));return JSON['parse'](textDecoder[_0x3caeac(0x206)](_0x150f32));}const FRAGMENT_CELL_COUNT=0x100*0x14*0x14,MIN_BLOCK_SIZE=0x1*0x400*0x400;function splitCellDataToBlocks(_0x563bda,_0x26d45f=FRAGMENT_CELL_COUNT,_0x145203=MIN_BLOCK_SIZE){const _0x2b5e3=_0xfc9601,_0x3c58dc=Date['now'](),_0x5aff75=new _univerjs_core[(_0x2b5e3(0x3c2))](_0x563bda),{startRow:_0x30ce4d,endRow:_0x3aedd6,startColumn:_0x170e9c,endColumn:_0x14b583}=_0x5aff75[_0x2b5e3(0x23b)](),_0xe65cbc=[],_0x334771=Math[_0x2b5e3(0x26c)](_0x26d45f/(_0x14b583-_0x170e9c+0x1));let _0x33bb0a=_0x30ce4d,_0x363428=null,_0x5e9ed4=null,_0x156e83=0x0,_0x4d8091=0x0,_0x36300c=0x0,_0x1e07bd=0x0;while(_0x33bb0a<=_0x3aedd6){const _0x205373=Math['min'](_0x33bb0a+_0x334771-0x1,_0x3aedd6),{sliceData:_0x9b13c5,cellCount:_0x11fd1f}=_0x5aff75[_0x2b5e3(0x3d5)](_0x33bb0a,_0x205373);if(_0x11fd1f===0x0){if(_0x205373>=_0x3aedd6&&_0x5e9ed4!==null){const _0xa06820=serializeCellDataSlice(_0x5e9ed4);_0xe65cbc[_0x2b5e3(0x380)]({'id':(0x0,_univerjs_core[_0x2b5e3(0x256)])(0x13,_0x2b5e3(0x280)),'startRow':_0x156e83,'endRow':_0x3aedd6,'data':_0xa06820});}_0x33bb0a=_0x205373+0x1;continue;}if(_0x5e9ed4===null)_0x5e9ed4=_0x9b13c5,_0x156e83=_0x33bb0a;else _0x5e9ed4[_0x2b5e3(0x25a)](_0x9b13c5);_0x4d8091+=_0x11fd1f,_0x1e07bd+=_0x11fd1f;if(_0x363428===null)_0x36300c=serializeCellDataSlice(_0x5e9ed4)['byteLength'],_0x363428=_0x36300c/_0x4d8091;else _0x36300c+=_0x11fd1f*_0x363428;if(_0x205373>=_0x3aedd6||_0x36300c>=_0x145203){const _0x54234c=serializeCellDataSlice(_0x5e9ed4);_0xe65cbc['push']({'id':(0x0,_univerjs_core[_0x2b5e3(0x256)])(0x13,'0123456789'),'startRow':_0x156e83,'endRow':_0x205373,'data':_0x54234c}),_0x5e9ed4=null,_0x156e83=0x0,_0x4d8091=0x0,_0x36300c=0x0;}if(_0x205373>=_0x3aedd6)break;_0x33bb0a=_0x205373+0x1;}return{'blocks':_0xe65cbc,'totalCells':_0x1e07bd,'totalTime':Date[_0x2b5e3(0x1e0)]()-_0x3c58dc};}function serializeCellDataSlice(_0x17d317){const _0xd11aa4=_0xfc9601,_0x129480=_0x17d317[_0xd11aa4(0x1d1)]();return textEncoder['encode'](JSON[_0xd11aa4(0x2f0)](_0x129480));}function mapDocumentTypeToUniverInstanceType(_0x536f3d){return _0x536f3d;}function b64EncodeUnicode(_0x2a94a3){const _0xa67f85=_0xfc9601,_0x5922d8=textEncoder['encode'](_0x2a94a3);let _0x1acca3='';for(let _0x44cff4=0x0;_0x44cff4<_0x5922d8[_0xa67f85(0x29d)];_0x44cff4++)_0x1acca3+=String['fromCharCode'](_0x5922d8[_0x44cff4]);return btoa(_0x1acca3);}function b64DecodeUnicode(_0x355336){const _0x3267e6=_0xfc9601,_0x157449=atob(_0x355336),_0x30d73f=_0x157449['length'];let _0x3b0a49=new Uint8Array(_0x30d73f);for(let _0x1e8654=0x0;_0x1e8654<_0x30d73f;_0x1e8654++)_0x3b0a49[_0x1e8654]=_0x157449[_0x3267e6(0x2ae)](_0x1e8654);const _0x287999=textDecoder[_0x3267e6(0x206)](_0x3b0a49);return _0x3b0a49=null,_0x287999;}async function limitConcurrencyTasks({tasks:_0x516866,handleTaskResult:_0x602fca,limit:limit=0xa,options:options={'retryCount':0x3,'retryDelay':0xc8},onError:_0x27f918}){const _0x3ed844=_0xfc9601;if(_0x516866[_0x3ed844(0x29d)]===0x0)return;const {retryCount:_0x138df2,retryDelay:_0x313a26}=options,_0x5486c8=_0x439db3=>new Promise(_0x1ec66f=>setTimeout(_0x1ec66f,_0x439db3)),_0x5cd42b=async _0x387cf3=>{let _0x489a74=0x0;while(!![])try{return await _0x387cf3();}catch(_0x23cf6c){_0x27f918===null||_0x27f918===void 0x0||_0x27f918(_0x23cf6c),_0x489a74++;if(_0x489a74>_0x138df2)throw _0x23cf6c;await _0x5486c8(_0x313a26);}};let _0x52f78e=0x0;const _0x1dad2d=Array[_0x3ed844(0x3a4)]({'length':Math['min'](limit,_0x516866[_0x3ed844(0x29d)])},async()=>{const _0x4fea78=_0x3ed844;while(!![]){const _0x35afc1=_0x52f78e++;if(_0x35afc1>=_0x516866[_0x4fea78(0x29d)])break;let _0x50a581=await _0x5cd42b(_0x516866[_0x35afc1]);if(_0x602fca)_0x602fca(_0x50a581);_0x50a581=null;}});await Promise[_0x3ed844(0x3a9)](_0x1dad2d);}async function measureAsyncOperation(_0x4a8634,_0x41b52c,_0x3fb1db,_0x42ed6d=0x2710,_0x4e536e){const _0x4a5f94=_0xfc9601,_0x2becd3=performance['now']();_0x3fb1db===null||_0x3fb1db===void 0x0||_0x3fb1db[_0x4a5f94(0x283)](_0x4a5f94(0x1dd)+_0x4a8634+_0x4a5f94(0x221)+(_0x4e536e!==null&&_0x4e536e!==void 0x0?_0x4e536e:''));try{const _0x219394=await _0x41b52c(),_0x34ae75=performance[_0x4a5f94(0x1e0)]()-_0x2becd3;if(_0x34ae75>_0x42ed6d)_0x3fb1db[_0x4a5f94(0x28e)](_0x4a5f94(0x1dd)+_0x4a8634+_0x4a5f94(0x3a6)+_0x34ae75[_0x4a5f94(0x1fc)](0x2)+_0x4a5f94(0x2a6));else _0x3fb1db[_0x4a5f94(0x283)](_0x4a5f94(0x1dd)+_0x4a8634+_0x4a5f94(0x369)+_0x34ae75[_0x4a5f94(0x1fc)](0x2)+'\x20ms');return _0x219394;}catch(_0x172b35){const _0x2daba0=performance['now']()-_0x2becd3;_0x3fb1db[_0x4a5f94(0x2ef)](_0x4a5f94(0x1dd)+_0x4a8634+_0x4a5f94(0x392)+_0x2daba0['toFixed'](0x2)+'\x20ms',_0x172b35);throw _0x172b35;}}function measureSyncOperation(_0x2b27c3,_0x4220a1,_0x496c55,_0x568a55=0x2710,_0x1e1d55){const _0x3b643b=_0xfc9601,_0x196cdf=performance['now']();_0x496c55===null||_0x496c55===void 0x0||_0x496c55[_0x3b643b(0x283)](_0x3b643b(0x220)+_0x2b27c3+_0x3b643b(0x221)+(_0x1e1d55!==null&&_0x1e1d55!==void 0x0?_0x1e1d55:''));try{const _0xf38db8=_0x4220a1(),_0x11fd7a=performance[_0x3b643b(0x1e0)]()-_0x196cdf;if(_0x11fd7a>_0x568a55)_0x496c55['warn'](_0x3b643b(0x220)+_0x2b27c3+_0x3b643b(0x3a6)+_0x11fd7a[_0x3b643b(0x1fc)](0x2)+_0x3b643b(0x2a6));else _0x496c55[_0x3b643b(0x283)](_0x3b643b(0x220)+_0x2b27c3+_0x3b643b(0x369)+_0x11fd7a[_0x3b643b(0x1fc)](0x2)+_0x3b643b(0x2a6));return _0xf38db8;}catch(_0x342f69){const _0x295e77=performance[_0x3b643b(0x1e0)]()-_0x196cdf;_0x496c55[_0x3b643b(0x2ef)]('sync\x20['+_0x2b27c3+_0x3b643b(0x392)+_0x295e77[_0x3b643b(0x1fc)](0x2)+_0x3b643b(0x2a6),_0x342f69);throw _0x342f69;}}async function yieldToEventLoop(){await new Promise(_0x34a2f4=>{const _0x3baa35=_0x5cb6;typeof setImmediate===_0x3baa35(0x249)?setImmediate(_0x34a2f4):setTimeout(_0x34a2f4,0x0);});}async function generateTempDocumentSnapshot(_0xa91e3f,_0xf3c477,_0x57e268,_0x4622fc){const _0x2bb990=_0xfc9601;var _0x436d8f;const _0x3af2c1={'unitID':_0xf3c477['id'],'rev':_0x4622fc,'creator':'','name':(_0x436d8f=_0xf3c477[_0x2bb990(0x269)])!==null&&_0x436d8f!==void 0x0?_0x436d8f:'','resources':_0xf3c477['resources']||[],'originalMeta':encodeDocOriginalMeta(_0xf3c477)};return{'snapshot':{'unitID':_0x57e268,'rev':_0x3af2c1[_0x2bb990(0x3ef)],'type':_univerjs_core[_0x2bb990(0x2c3)]['UNIVER_DOC'],'workbook':void 0x0,'doc':_0x3af2c1}};}async function generateTemporarySnap(_0x4931ca,_0x25e5bf,_0x27b7b9,_0x29f68c,_0x4818f3,_0xc462df){const _0x5e8daf=_0xfc9601,_0x3ff01b={},_0x459384={};if(!await Promise[_0x5e8daf(0x3a9)](Object['entries'](_0x25e5bf[_0x5e8daf(0x3b2)])[_0x5e8daf(0x3b3)](async([_0x1635c1,_0x4781f3])=>{const _0x45da79=_0x5e8daf;_0x459384[_0x1635c1]={'id':_0x4781f3['id'],'type':_univerjs_core[_0x45da79(0x31d)]['GRID'],'name':_0x4781f3[_0x45da79(0x2f3)],'rowCount':_0x4781f3[_0x45da79(0x1c6)],'columnCount':_0x4781f3[_0x45da79(0x1b8)],'originalMeta':encodeWorksheetOtherMetas(_0x4781f3)};if(_0x4781f3[_0x45da79(0x203)]){const {blocks:_0x4064cc}=splitCellDataToBlocks(_0x4781f3[_0x45da79(0x203)]),_0x319b85=await Promise['all'](_0x4064cc[_0x45da79(0x3b3)](_0x3e084a=>_0x4818f3['saveSheetBlock'](_0x4931ca,{'unitID':_0x27b7b9,'type':_univerjs_core['UniverInstanceType'][_0x45da79(0x31b)],'block':_0x3e084a})));if(_0x319b85[_0x45da79(0x3ad)](_0x435c1d=>{const _0x41621b=_0x45da79;var _0x53824c;return((_0x53824c=_0x435c1d[_0x41621b(0x2ef)])===null||_0x53824c===void 0x0?void 0x0:_0x53824c[_0x41621b(0x394)])!==_univerjs_protocol['ErrorCode']['OK'];}))return![];_0x3ff01b[_0x1635c1]={'sheetID':_0x1635c1,'blocks':_0x319b85['map'](_0x2bcd15=>_0x2bcd15['blockID'])};}return!![];})))throw new Error(_0x5e8daf(0x34e));const _0x4c76ef=encodeWorkbookOtherMetas(_0x25e5bf),_0x65cebc={'unitID':_0x25e5bf['id'],'rev':_0x29f68c,'creator':'','name':_0x25e5bf[_0x5e8daf(0x2f3)],'sheetOrder':_0x25e5bf['sheetOrder'],'sheets':_0x459384,'blockMeta':_0x3ff01b,'resources':_0x25e5bf[_0x5e8daf(0x24a)]||[],'originalMeta':_0x4c76ef},_0x4a8bce=(_0x328632,_0x2732f1)=>{const _0x58ba21=_0x5e8daf;return _0x328632[_0x58ba21(0x259)](_0x5c26ea=>_0x2732f1[_0x58ba21(0x2b6)](_0x5c26ea));},_0x436a9a=_0x25e5bf[_0x5e8daf(0x384)]['length'],_0x43f0c9=Object[_0x5e8daf(0x38e)](_0x65cebc[_0x5e8daf(0x3b2)]),_0xed636d=Object[_0x5e8daf(0x38e)](_0x65cebc[_0x5e8daf(0x219)]);if(_0x436a9a!==_0x43f0c9[_0x5e8daf(0x29d)]||!_0x4a8bce(_0x25e5bf[_0x5e8daf(0x384)],_0x65cebc[_0x5e8daf(0x3b2)])){_0xc462df===null||_0xc462df===void 0x0||_0xc462df[_0x5e8daf(0x2ef)](_0x5e8daf(0x3f7),_0x5e8daf(0x2e0)+_0x27b7b9+'\x20'+_0x436a9a+'\x20'+_0x43f0c9[_0x5e8daf(0x29d)]+_0x5e8daf(0x3dd)+JSON[_0x5e8daf(0x2f0)](_0x25e5bf[_0x5e8daf(0x384)])+_0x5e8daf(0x388)+JSON[_0x5e8daf(0x2f0)](_0x43f0c9)+_0x5e8daf(0x2f6)+JSON['stringify'](Object[_0x5e8daf(0x38e)](_0x25e5bf['sheets'])));throw new Error('[generateTemporarySnap()]:\x20Sheet\x20order\x20mismatch');}if(_0x43f0c9[_0x5e8daf(0x29d)]!==_0xed636d['length']||!_0x4a8bce(_0x43f0c9,_0x65cebc[_0x5e8daf(0x219)])||!_0x4a8bce(_0xed636d,_0x65cebc[_0x5e8daf(0x3b2)])){_0xc462df===null||_0xc462df===void 0x0||_0xc462df['error'](_0x5e8daf(0x3f7),_0x5e8daf(0x1de)+_0x27b7b9+'\x20'+_0x43f0c9['length']+'\x20'+_0xed636d[_0x5e8daf(0x29d)]+_0x5e8daf(0x388)+JSON[_0x5e8daf(0x2f0)](_0x43f0c9)+'\x20Block\x20Metas:\x20'+JSON['stringify'](_0xed636d)+_0x5e8daf(0x2f6)+JSON[_0x5e8daf(0x2f0)](Object[_0x5e8daf(0x38e)](_0x25e5bf[_0x5e8daf(0x3b2)])));throw new Error(_0x5e8daf(0x2d9));}return{'snapshot':{'unitID':_0x27b7b9,'rev':_0x65cebc['rev'],'type':_univerjs_core[_0x5e8daf(0x2c3)][_0x5e8daf(0x31b)],'workbook':_0x65cebc,'doc':void 0x0}};}async function transformWorkbookDataToSnapshotNoSave(_0x2f888f,_0x5af838,_0x21a082,_0x576bbf){const _0x75ddf5=_0xfc9601,_0x115c11={};if(!await Promise[_0x75ddf5(0x3a9)](Object[_0x75ddf5(0x2b4)](_0x5af838[_0x75ddf5(0x3b2)])['map'](async([_0x30508a,_0x263b40])=>{const _0xfa1564=_0x75ddf5;if(_0x263b40[_0xfa1564(0x203)]){const {blocks:_0x47573d}=splitCellDataToBlocks(_0x263b40[_0xfa1564(0x203)]),_0x437e0e=await Promise[_0xfa1564(0x3a9)](_0x47573d[_0xfa1564(0x3b3)](_0x3237eb=>_0x576bbf[_0xfa1564(0x2ed)](_0x2f888f,{'unitID':_0x21a082,'type':_univerjs_core[_0xfa1564(0x2c3)][_0xfa1564(0x31b)],'block':_0x3237eb})));if(_0x437e0e[_0xfa1564(0x3ad)](_0x13445e=>{const _0x7da96f=_0xfa1564;var _0xbdd600;return((_0xbdd600=_0x13445e[_0x7da96f(0x2ef)])===null||_0xbdd600===void 0x0?void 0x0:_0xbdd600[_0x7da96f(0x394)])!==_univerjs_protocol[_0x7da96f(0x1ea)]['OK'];}))return![];_0x115c11[_0x30508a]={'sheetID':_0x30508a,'blocks':_0x437e0e['map'](_0x2155ea=>_0x2155ea[_0xfa1564(0x39e)])};}return!![];})))throw new Error('[transformWorkbookDataToSnapshot()]:\x20Failed\x20to\x20save\x20sheet\x20blocks.');return _0x115c11;}async function transformWorkbookDataToSnapshot(_0x4088e5,_0x5b4069,_0x1e8e04,_0x4b1fd2,_0x4c5929,_0x2f1ffb){const _0x38edc4=_0xfc9601;var _0x519f14;const _0xff3445={},_0x360355={};let _0x4263b3=0x0,_0x1e2f6f=0x0;const _0x5588a2=[];for(const _0x5575 in _0x5b4069[_0x38edc4(0x3b2)]){const _0x4272a8=Date[_0x38edc4(0x1e0)](),_0x28c64a=_0x5b4069[_0x38edc4(0x3b2)][_0x5575];_0x360355[_0x5575]={'id':_0x28c64a['id'],'type':_univerjs_core[_0x38edc4(0x31d)][_0x38edc4(0x3f3)],'name':_0x28c64a['name'],'rowCount':_0x28c64a[_0x38edc4(0x1c6)],'columnCount':_0x28c64a[_0x38edc4(0x1b8)],'originalMeta':encodeWorksheetOtherMetas(_0x28c64a)},_0xff3445[_0x5575]={'sheetID':_0x5575,'blocks':[]},_0x1e2f6f+=Date['now']()-_0x4272a8;if(_0x28c64a[_0x38edc4(0x203)]){const {blocks:_0x190ba3,totalCells:_0x47c6a4,totalTime:_0x166f0c}=splitCellDataToBlocks(_0x28c64a[_0x38edc4(0x203)]);_0x4263b3+=_0x47c6a4,_0x1e2f6f+=_0x166f0c;const _0x57232e=_0x190ba3['map'](_0x20c8ca=>()=>_0x4c5929[_0x38edc4(0x2ed)](_0x4088e5,{'unitID':_0x1e8e04,'type':_univerjs_core[_0x38edc4(0x2c3)]['UNIVER_SHEET'],'block':_0x20c8ca}));_0x5588a2[_0x38edc4(0x380)]((async _0x41011d=>{const _0x1ecd80=_0x38edc4;try{await limitConcurrencyTasks({'tasks':_0x57232e,'handleTaskResult':_0x79bd7d=>{const _0x489a7e=_0x5cb6;var _0x336e35;if(((_0x336e35=_0x79bd7d[_0x489a7e(0x2ef)])===null||_0x336e35===void 0x0?void 0x0:_0x336e35[_0x489a7e(0x394)])!==_univerjs_protocol[_0x489a7e(0x1ea)]['OK'])throw new Error(_0x489a7e(0x34e));_0xff3445[_0x41011d][_0x489a7e(0x246)]['push'](_0x79bd7d[_0x489a7e(0x39e)]);},'onError':_0x3ce094=>{const _0x9579b=_0x5cb6;_0x2f1ffb===null||_0x2f1ffb===void 0x0||_0x2f1ffb[_0x9579b(0x2ef)]('[transformWorkbookDataToSnapshot()]','Error\x20saving\x20block\x20for\x20sheet\x20'+_0x41011d+':\x20'+_0x3ce094);}});}catch(_0x45e756){throw new Error(_0x1ecd80(0x1fd)+JSON['stringify'](_0x45e756));}})(_0x5575));}}await Promise[_0x38edc4(0x3a9)](_0x5588a2);const _0x415a6a=Date[_0x38edc4(0x1e0)](),_0x157e05=encodeWorkbookOtherMetas(_0x5b4069),_0x4d3867={'unitID':_0x5b4069['id'],'rev':_0x4b1fd2,'creator':'','name':_0x5b4069[_0x38edc4(0x2f3)],'sheetOrder':_0x5b4069[_0x38edc4(0x384)],'sheets':_0x360355,'blockMeta':_0xff3445,'resources':_0x5b4069[_0x38edc4(0x24a)]||[],'originalMeta':_0x157e05},_0x5defe4=(_0x4056bd,_0x485e65)=>{const _0x5eb029=_0x38edc4;return _0x4056bd[_0x5eb029(0x259)](_0xc2bbc6=>_0x485e65[_0x5eb029(0x2b6)](_0xc2bbc6));},_0xd62b87=_0x5b4069[_0x38edc4(0x384)][_0x38edc4(0x29d)],_0x109717=Object[_0x38edc4(0x38e)](_0x4d3867[_0x38edc4(0x3b2)]),_0x4a8796=Object['keys'](_0x4d3867[_0x38edc4(0x219)]);if(_0xd62b87!==_0x109717[_0x38edc4(0x29d)]||!_0x5defe4(_0x5b4069['sheetOrder'],_0x4d3867['sheets'])){_0x2f1ffb===null||_0x2f1ffb===void 0x0||_0x2f1ffb[_0x38edc4(0x2ef)](_0x38edc4(0x2fa),_0x38edc4(0x2e0)+_0x5b4069['id']+'\x20'+_0xd62b87+'\x20'+_0x109717[_0x38edc4(0x29d)]+_0x38edc4(0x3dd)+JSON[_0x38edc4(0x2f0)](_0x5b4069['sheetOrder'])+_0x38edc4(0x388)+JSON['stringify'](_0x109717)+_0x38edc4(0x2f6)+JSON[_0x38edc4(0x2f0)](Object[_0x38edc4(0x38e)](_0x5b4069['sheets'])));throw new Error('[transformWorkbookDataToSnapshot()]:\x20Sheet\x20order\x20mismatch');}if(_0x109717[_0x38edc4(0x29d)]!==_0x4a8796[_0x38edc4(0x29d)]||!_0x5defe4(_0x109717,_0x4d3867[_0x38edc4(0x219)])||!_0x5defe4(_0x4a8796,_0x4d3867['sheets'])){_0x2f1ffb===null||_0x2f1ffb===void 0x0||_0x2f1ffb[_0x38edc4(0x2ef)](_0x38edc4(0x2fa),_0x38edc4(0x1de)+_0x5b4069['id']+'\x20'+_0x109717[_0x38edc4(0x29d)]+'\x20'+_0x4a8796['length']+_0x38edc4(0x388)+JSON[_0x38edc4(0x2f0)](_0x109717)+_0x38edc4(0x277)+JSON[_0x38edc4(0x2f0)](_0x4a8796)+_0x38edc4(0x2f6)+JSON[_0x38edc4(0x2f0)](Object[_0x38edc4(0x38e)](_0x5b4069[_0x38edc4(0x3b2)])));throw new Error('[transformWorkbookDataToSnapshot()]:\x20Sheet\x20block\x20mismatch');}_0x1e2f6f+=Date[_0x38edc4(0x1e0)]()-_0x415a6a;const _0x385524={'unitID':_0x1e8e04,'rev':_0x4d3867[_0x38edc4(0x3ef)],'type':_univerjs_core[_0x38edc4(0x2c3)][_0x38edc4(0x31b)],'workbook':_0x4d3867,'doc':void 0x0},_0x5f2efd=await _0x4c5929[_0x38edc4(0x20f)](_0x4088e5,{'unitID':_0x1e8e04,'type':_univerjs_core[_0x38edc4(0x2c3)][_0x38edc4(0x31b)],'snapshot':_0x385524});(_0x519f14=_0x4c5929[_0x38edc4(0x270)])===null||_0x519f14===void 0x0||_0x519f14[_0x38edc4(0x2cd)](_0x4c5929,_0x4088e5,{'unitId':_0x1e8e04,'estimatedCells':_0x4263b3,'snapshotTime':Math[_0x38edc4(0x2b3)](_0x1e2f6f/0x3e8)});if((0x0,_univerjs_protocol[_0x38edc4(0x250)])(_0x5f2efd[_0x38edc4(0x2ef)])){var _0x53032d,_0x1af152;throw new Error(_0x38edc4(0x21d)+((_0x53032d=_0x5f2efd['error'])===null||_0x53032d===void 0x0?void 0x0:_0x53032d[_0x38edc4(0x394)])+':'+((_0x1af152=_0x5f2efd[_0x38edc4(0x2ef)])===null||_0x1af152===void 0x0?void 0x0:_0x1af152['message']));}return{'snapshot':_0x385524};}async function transformSnapshotToWorkbookData(_0xc9686d,_0x2e743f,_0x5d717c,_0x39124d){const _0xb46264=_0xfc9601,_0x3b1612=_0xc9686d[_0xb46264(0x405)];if(!_0x3b1612)throw new Error(_0xb46264(0x3f4));const _0x4a1e65={};Object[_0xb46264(0x2b4)](_0x3b1612[_0xb46264(0x3b2)])['forEach'](([_0x5010a8,_0x45373a])=>{const _0x4af206=_0xb46264,_0x470e61=decodeWorksheetOtherMetas(_0x45373a[_0x4af206(0x27c)]);_0x4a1e65[_0x5010a8]={'id':_0x45373a['id'],'name':_0x45373a[_0x4af206(0x2f3)],'rowCount':_0x45373a[_0x4af206(0x1c6)],'columnCount':_0x45373a[_0x4af206(0x1b8)],..._0x470e61};});const _0x37e3ed=new Map();for(let _0x4c28fb=0x0;_0x4c28fb<_0x2e743f[_0xb46264(0x29d)];_0x4c28fb++)_0x37e3ed[_0xb46264(0x209)](_0x2e743f[_0x4c28fb]['id'],{'index':_0x4c28fb,'block':_0x2e743f[_0x4c28fb]});const _0x39c463=performance[_0xb46264(0x1e0)]();_0x39124d===null||_0x39124d===void 0x0||_0x39124d['debug']('[ParseBlocks]',_0xb46264(0x3fc)+_0x2e743f[_0xb46264(0x29d)]+_0xb46264(0x414));if(_0x3b1612['blockMeta'])for(const [_0x23f8bf,_0x14efb1]of Object[_0xb46264(0x2b4)](_0x3b1612['blockMeta'])){if(!_0x4a1e65[_0x23f8bf])continue;const _0x8936dd={};if(_0x14efb1[_0xb46264(0x246)]&&_0x14efb1[_0xb46264(0x246)]['length']>0x0)for(const _0x559bad of _0x14efb1[_0xb46264(0x246)]){if(!_0x37e3ed['has'](_0x559bad))throw new Error(_0xb46264(0x3ac)+_0x559bad+'\x20for\x20sheet\x20'+_0x23f8bf);const {index:_0x3fb1ff,block:_0x3211ab}=_0x37e3ed[_0xb46264(0x3a1)](_0x559bad);if(_0x3211ab){const _0x33e989=decodePartOfCellData(_0x3211ab[_0xb46264(0x3db)]);for(const _0x4eac7f in _0x33e989)_0x8936dd[Number(_0x4eac7f)]=_0x33e989[_0x4eac7f];_0x37e3ed[_0xb46264(0x2d5)](_0x559bad),_0x2e743f[_0x3fb1ff]=null,_0x3211ab[_0xb46264(0x3db)]=null;}await yieldToEventLoop();}_0x4a1e65[_0x23f8bf]['cellData']=_0x8936dd;}const _0x5a3692=performance[_0xb46264(0x1e0)]();if(_0x5a3692-_0x39c463>0x2710)_0x39124d===null||_0x39124d===void 0x0||_0x39124d[_0xb46264(0x283)]('[ParseBlocks]',_0xb46264(0x289)+(_0x5a3692-_0x39c463)['toFixed'](0x2)+_0xb46264(0x2a6));else _0x39124d===null||_0x39124d===void 0x0||_0x39124d[_0xb46264(0x283)](_0xb46264(0x1e1),_0xb46264(0x364)+(_0x5a3692-_0x39c463)['toFixed'](0x2)+_0xb46264(0x2a6));_0x37e3ed[_0xb46264(0x318)](),_0x2e743f[_0xb46264(0x29d)]=0x0;const _0x1afe99=decodeWorksheetOtherMetas(_0x3b1612['originalMeta']);return{'id':_0xc9686d[_0xb46264(0x261)]||_0x3b1612['unitID'],'rev':_0xc9686d[_0xb46264(0x3ef)]||_0x3b1612[_0xb46264(0x3ef)],'name':_0x3b1612['name'],'sheetOrder':_0x3b1612[_0xb46264(0x384)],'appVersion':'','locale':_univerjs_core['LocaleType']['EN_US'],'sheets':_0x4a1e65,'styles':{},'resources':_0x3b1612[_0xb46264(0x24a)]||[],..._0x1afe99};}function transformSnapshotToDocumentData(_0x5c44aa){const _0x165973=_0xfc9601,_0x2af700=_0x5c44aa['doc'];if(_0x2af700==null)throw new Error(_0x165973(0x324));const {unitID:_0x4458cb,rev:_0x2cfc8e,name:_0x3214e1,originalMeta:_0x17db8e,resources:resources=[]}=_0x2af700,{body:_0x3da116,documentStyle:documentStyle={},settings:settings={},drawings:drawings={},drawingsOrder:drawingsOrder=[],tableSource:tableSource={},headers:headers={},footers:footers={},lists:lists={}}=decodeDocOriginalMeta(_0x17db8e);return{'id':_0x4458cb,'rev':_0x2cfc8e,'locale':_univerjs_core['LocaleType'][_0x165973(0x2b8)],'title':_0x3214e1,'body':_0x3da116,'documentStyle':documentStyle,'settings':settings,'drawings':drawings,'drawingsOrder':drawingsOrder,'resources':resources,'tableSource':tableSource,'headers':headers,'footers':footers,'lists':lists};}async function transformDocumentDataToSnapshot(_0x2725f2,_0x3b14e5,_0x5e3368,_0x2fd201,_0xb33900){const _0x2488c5=_0xfc9601;var _0xbf284e;const _0x2f68e7={'unitID':_0x3b14e5['id'],'rev':_0x2fd201,'creator':'','name':(_0xbf284e=_0x3b14e5[_0x2488c5(0x269)])!==null&&_0xbf284e!==void 0x0?_0xbf284e:'','resources':_0x3b14e5['resources']||[],'originalMeta':encodeDocOriginalMeta(_0x3b14e5)},_0x13e912={'unitID':_0x5e3368,'rev':_0x2f68e7[_0x2488c5(0x3ef)],'type':_univerjs_core[_0x2488c5(0x2c3)][_0x2488c5(0x2e7)],'workbook':void 0x0,'doc':_0x2f68e7},_0x5e9868=await _0xb33900['saveSnapshot'](_0x2725f2,{'unitID':_0x5e3368,'type':_univerjs_core[_0x2488c5(0x2c3)][_0x2488c5(0x2e7)],'snapshot':_0x13e912});if((0x0,_univerjs_protocol[_0x2488c5(0x250)])(_0x5e9868[_0x2488c5(0x2ef)])){var _0x253e9f,_0x312ab1;throw new Error(_0x2488c5(0x298)+((_0x253e9f=_0x5e9868[_0x2488c5(0x2ef)])===null||_0x253e9f===void 0x0?void 0x0:_0x253e9f[_0x2488c5(0x394)])+':'+((_0x312ab1=_0x5e9868[_0x2488c5(0x2ef)])===null||_0x312ab1===void 0x0?void 0x0:_0x312ab1[_0x2488c5(0x2c6)]));}return{'snapshot':_0x13e912};}async function getSheetBlocksFromSnapshot(_0x435e67,_0x376434){const _0x3e00a7=_0xfc9601,_0x390af5=_0x435e67['workbook'];if(!_0x390af5)throw new Error(_0x3e00a7(0x22f));const _0x50ff6c=[],_0x21c3fd=[];return Object[_0x3e00a7(0x2b4)](_0x390af5[_0x3e00a7(0x219)])['forEach'](([_0x17d4a4,_0x3d78b7])=>{const _0x1a638b=_0x3e00a7,_0x2307e6=_0x3d78b7[_0x1a638b(0x246)][_0x1a638b(0x3b3)](async _0x20d0fd=>{const _0x4eb60a=_0x1a638b,_0x1df441={'unitID':_0x390af5[_0x4eb60a(0x261)],'type':_univerjs_core[_0x4eb60a(0x2c3)][_0x4eb60a(0x31b)],'blockID':_0x20d0fd},{block:_0x4e1dc2}=await _0x376434['getSheetBlock']({},_0x1df441);if(_0x4e1dc2)_0x50ff6c[_0x4eb60a(0x380)](_0x4e1dc2);else throw new Error(_0x4eb60a(0x40f));});_0x21c3fd[_0x1a638b(0x380)](..._0x2307e6);}),await Promise[_0x3e00a7(0x3a9)](_0x21c3fd),_0x50ff6c;}const ISnapshotServerService=(0x0,_univerjs_core[_0xfc9601(0x279)])(_0xfc9601(0x3ca));let SnapshotService=class SnapshotService{constructor(_0x447e3c,_0x2c2a7a,_0x1ca16a,_0x769c3a,_0x35cf7c,_0x28a6bf,_0x3b72ad){const _0x16cc65=_0xfc9601;this[_0x16cc65(0x244)]=_0x447e3c,this[_0x16cc65(0x24c)]=_0x2c2a7a,this[_0x16cc65(0x3e2)]=_0x1ca16a,this['_commandService']=_0x769c3a,this[_0x16cc65(0x2a1)]=_0x35cf7c,this[_0x16cc65(0x307)]=_0x28a6bf,this[_0x16cc65(0x253)]=_0x3b72ad;}async[_0xfc9601(0x26e)](_0x22793a,_0x1efd8e,_0x5bd0d1={'metadata':{'Trace-Id':(0x0,uuid['v4'])()}}){const _0x3e0bb1=_0xfc9601;var _0x3a41ee;const _0x153ef4=this[_0x3e0bb1(0x24c)]['getUnit'](_0x22793a,_univerjs_core[_0x3e0bb1(0x2c3)][_0x3e0bb1(0x31b)]);if(_0x153ef4)return _0x153ef4;const {snapshot:_0x533411,changesets:_0x582f39,error:_0x579800}=await this[_0x3e0bb1(0x3e2)][_0x3e0bb1(0x360)](_0x5bd0d1,{'unitID':_0x22793a,'type':_univerjs_core['UniverInstanceType']['UNIVER_SHEET'],'revision':_0x1efd8e});if((0x0,_univerjs_protocol['isError'])(_0x579800)||!_0x533411||!_0x533411[_0x3e0bb1(0x405)]){const _0x290ed3={..._0x579800};_0x290ed3[_0x3e0bb1(0x2c6)]='[SnapshotService]:\x20request\x20snapshot\x20error!\x20The\x20original\x20error\x20is:\x20'+(_0x579800===null||_0x579800===void 0x0?void 0x0:_0x579800[_0x3e0bb1(0x2c6)]);throw _0x290ed3;}const _0x288472=(_0x3a41ee=_0x582f39===null||_0x582f39===void 0x0?void 0x0:_0x582f39[_0x3e0bb1(0x29d)])!==null&&_0x3a41ee!==void 0x0?_0x3a41ee:0x0;if(_0x1efd8e!==0x0&&_0x533411[_0x3e0bb1(0x3ef)]+_0x288472!==_0x1efd8e)throw new Error('[SnapshotService]:\x20wrong\x20rev\x20from\x20the\x20server!');const {workbook:_0x3f134d}=_0x533411,_0x2f3719=(_0x3f134d[_0x3e0bb1(0x219)]?Object['entries'](_0x3f134d[_0x3e0bb1(0x219)])[_0x3e0bb1(0x3b3)](([_0x438eca,_0x19875d])=>{const _0xa34e74=_0x3e0bb1;var _0x3ff445,_0x238972;return(_0x3ff445=(_0x238972=_0x19875d[_0xa34e74(0x246)])===null||_0x238972===void 0x0?void 0x0:_0x238972[_0xa34e74(0x3b3)](_0x51c9cb=>_0x51c9cb))!==null&&_0x3ff445!==void 0x0?_0x3ff445:[];})[_0x3e0bb1(0x1cc)]():[])[_0x3e0bb1(0x3b3)](_0x5b5cb1=>()=>this[_0x3e0bb1(0x3e2)][_0x3e0bb1(0x2ad)](_0x5bd0d1,{'unitID':_0x22793a,'type':_univerjs_core[_0x3e0bb1(0x2c3)][_0x3e0bb1(0x31b)],'blockID':_0x5b5cb1})),_0x52c2b9=[];try{await measureAsyncOperation('GetBlocks',()=>limitConcurrencyTasks({'tasks':_0x2f3719,'handleTaskResult':_0x42be18=>{const _0x332507=_0x3e0bb1;if(_0x42be18[_0x332507(0x2ac)])_0x52c2b9[_0x332507(0x380)](_0x42be18[_0x332507(0x2ac)]);},'onError':_0x107959=>{const _0x573415=_0x3e0bb1;this['_logService'][_0x573415(0x2ef)](_0x573415(0x2cc),_0x573415(0x28d)+_0x107959);}}),this[_0x3e0bb1(0x2a1)],0x2710,_0x3e0bb1(0x2ab)+_0x2f3719[_0x3e0bb1(0x29d)]+'\x20blocks');}catch(_0x1a7e38){throw new Error(_0x3e0bb1(0x215)+JSON[_0x3e0bb1(0x2f0)](_0x1a7e38));}const _0xcd37dd=await measureAsyncOperation(_0x3e0bb1(0x3ed),()=>transformSnapshotToWorkbookData(_0x533411,_0x52c2b9,_0x5bd0d1,this[_0x3e0bb1(0x2a1)]),this[_0x3e0bb1(0x2a1)]),_0x4a850d=this[_0x3e0bb1(0x24c)]['createUnit'](_univerjs_core[_0x3e0bb1(0x2c3)][_0x3e0bb1(0x31b)],_0xcd37dd);return measureSyncOperation(_0x3e0bb1(0x1f2),()=>{const _0x4223c4=_0x3e0bb1,_0x4db647=this['_compressMutationService'][_0x4223c4(0x26a)][_0x4223c4(0x393)](this[_0x4223c4(0x307)][_0x4223c4(0x26a)][_0x4223c4(0x30c)]()[_0x4223c4(0x3e8)]);_0x582f39===null||_0x582f39===void 0x0||_0x582f39[_0x4223c4(0x302)](_0x4ee95f=>{const _0x31a8d3=_0x4223c4;if(_0x4ee95f[_0x31a8d3(0x356)]===null||_0x4ee95f['mutations']===void 0x0)_0x4ee95f[_0x31a8d3(0x356)]=[];const _0x5b9467=_0x4ee95f[_0x31a8d3(0x356)][_0x31a8d3(0x3b3)](_0x303d8f=>({'id':_0x303d8f['id'],'params':JSON[_0x31a8d3(0x241)](_0x303d8f[_0x31a8d3(0x3db)])}));({..._0x4ee95f,'mutations':_0x4db647(_0x5b9467,null)||_0x5b9467}[_0x31a8d3(0x356)][_0x31a8d3(0x302)](_0x1e9159=>this[_0x31a8d3(0x36c)][_0x31a8d3(0x1d2)](_0x1e9159['id'],_0x1e9159[_0x31a8d3(0x3eb)],{'fromChangeset':!![]})),this[_0x31a8d3(0x244)][_0x31a8d3(0x2d4)](_0x22793a));});},this[_0x3e0bb1(0x2a1)]),_0x4a850d;}async[_0xfc9601(0x35a)](_0x3300b7,_0x4d8286,_0x486916={'metadata':{'Trace-Id':(0x0,uuid['v4'])()}}){const _0x24bc6d=_0xfc9601;var _0x4ef90a;const {snapshot:_0x53d177,changesets:_0x342727,error:_0x195f04}=await this['_snapshotServerService'][_0x24bc6d(0x360)](_0x486916,{'unitID':_0x3300b7,'type':_univerjs_core[_0x24bc6d(0x2c3)][_0x24bc6d(0x2e7)],'revision':_0x4d8286});if((0x0,_univerjs_protocol[_0x24bc6d(0x250)])(_0x195f04)||!_0x53d177||!_0x53d177['doc']){const _0x3156c7={..._0x195f04};_0x3156c7[_0x24bc6d(0x2c6)]='[SnapshotService]:\x20request\x20snapshot\x20error!';throw _0x3156c7;}const _0x3634f9=(_0x4ef90a=_0x342727===null||_0x342727===void 0x0?void 0x0:_0x342727[_0x24bc6d(0x29d)])!==null&&_0x4ef90a!==void 0x0?_0x4ef90a:0x0;if(_0x4d8286!==0x0&&_0x53d177[_0x24bc6d(0x3ef)]+_0x3634f9!==_0x4d8286)throw new Error('[SnapshotService]:\x20wrong\x20rev\x20from\x20the\x20server!');const _0xdd15f7=transformSnapshotToDocumentData(_0x53d177),_0xac17da=this[_0x24bc6d(0x24c)]['createUnit'](_univerjs_core[_0x24bc6d(0x2c3)][_0x24bc6d(0x2e7)],_0xdd15f7);return _0x342727===null||_0x342727===void 0x0||_0x342727['forEach'](_0x3ea771=>{const _0x4a09e1=_0x24bc6d;if(_0x3ea771[_0x4a09e1(0x356)]===null||_0x3ea771[_0x4a09e1(0x356)]===void 0x0)_0x3ea771[_0x4a09e1(0x356)]=[];_0x3ea771['mutations'][_0x4a09e1(0x3b3)](_0x35da9d=>({'id':_0x35da9d['id'],'params':JSON[_0x4a09e1(0x241)](_0x35da9d[_0x4a09e1(0x3db)])}))[_0x4a09e1(0x302)](_0x365f2e=>this[_0x4a09e1(0x36c)][_0x4a09e1(0x1d2)](_0x365f2e['id'],_0x365f2e[_0x4a09e1(0x3eb)],{'fromChangeset':!![]})),this[_0x4a09e1(0x244)][_0x4a09e1(0x2d4)](_0x3300b7);}),_0xac17da;}[_0xfc9601(0x268)](_0x16e485,_0x8c1133){const _0x372f4b=_0xfc9601,_0x505d0b={..._0x8c1133[_0x372f4b(0x328)]()};return _0x8c1133[_0x372f4b(0x344)]()['forEach'](_0x30a12a=>{const _0x5cd6f2=_0x372f4b;_0x505d0b[_0x5cd6f2(0x3b2)][_0x30a12a['getSheetId']()]=_univerjs_core[_0x5cd6f2(0x1c3)][_0x5cd6f2(0x1cf)](_0x30a12a['getSnapshot']());}),_0x505d0b[_0x372f4b(0x24a)]=this['_resourceManagerService'][_0x372f4b(0x217)](_0x8c1133[_0x372f4b(0x2d0)](),_univerjs_core[_0x372f4b(0x2c3)]['UNIVER_SHEET']),_0x505d0b;}[_0xfc9601(0x2ce)](_0x204789,_0x1cf18d){const _0x41933d=_0xfc9601,_0x5b2653={..._0x1cf18d[_0x41933d(0x328)]()};return _0x5b2653[_0x41933d(0x24a)]=this[_0x41933d(0x253)][_0x41933d(0x217)](_0x1cf18d[_0x41933d(0x2d0)](),_univerjs_core['UniverInstanceType'][_0x41933d(0x2e7)]),_0x5b2653;}};SnapshotService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0xfc9601(0x1df)])(RevisionService)),__decorateParam(0x1,_univerjs_core['IUniverInstanceService']),__decorateParam(0x2,ISnapshotServerService),__decorateParam(0x3,_univerjs_core[_0xfc9601(0x3d0)]),__decorateParam(0x4,_univerjs_core[_0xfc9601(0x3df)]),__decorateParam(0x5,(0x0,_univerjs_core[_0xfc9601(0x1df)])(CompressMutationService)),__decorateParam(0x6,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0xfc9601(0x2f9)]))],SnapshotService);let UniverCollaborationPlugin=class UniverCollaborationPlugin extends _univerjs_core[_0xfc9601(0x338)]{constructor(_0x49261b=defaultPluginConfig,_0xb88ede,_0x11de49){const _0x1332fd=_0xfc9601;super(),this['_config']=_0x49261b,this[_0x1332fd(0x3c1)]=_0xb88ede,this['_configService']=_0x11de49;const {..._0x3032a1}=(0x0,_univerjs_core[_0x1332fd(0x23c)])({},defaultPluginConfig,this[_0x1332fd(0x2bc)]);this['_configService'][_0x1332fd(0x1d3)](COLLABORATION_PLUGIN_CONFIG_KEY,_0x3032a1);}[_0xfc9601(0x308)](){const _0x14cb8b=_0xfc9601;(0x0,_univerjs_core[_0x14cb8b(0x312)])(this[_0x14cb8b(0x3c1)],[[RevisionService],[RevisionController],[SheetTransformController],[DocTransformController],[SnapshotService],[ITransformService,{'useClass':TransformService}],[CompressMutationService]]),(0x0,_univerjs_core['touchDependencies'])(this[_0x14cb8b(0x3c1)],[[DocTransformController],[RevisionController],[SheetTransformController]]);}};_defineProperty(UniverCollaborationPlugin,_0xfc9601(0x2ea),'UNIVER_COLLABORATION_PLUGIN'),_defineProperty(UniverCollaborationPlugin,'packageName',name),_defineProperty(UniverCollaborationPlugin,_0xfc9601(0x3d7),version),UniverCollaborationPlugin=__decorate([(0x0,_univerjs_core[_0xfc9601(0x1f0)])(_univerjs_pro_license['UniverLicensePlugin']),__decorateParam(0x1,(0x0,_univerjs_core[_0xfc9601(0x1df)])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core[_0xfc9601(0x240)])],UniverCollaborationPlugin);let SnapshotSaveService=class SnapshotSaveService{constructor(_0x286da8,_0x2165d8,_0x251fc3){const _0x1a470a=_0xfc9601;this['_snapshotServerService']=_0x286da8,this[_0x1a470a(0x2a8)]=_0x2165d8,this[_0x1a470a(0x2a1)]=_0x251fc3;}async[_0xfc9601(0x268)](_0x45fc06,_0x1f2b09,_0x8d3049,_0x2ece8f,_0x319cfc){const _0x1a7080=_0xfc9601;return transformWorkbookDataToSnapshot(_0x45fc06,_0x319cfc||this[_0x1a7080(0x2a8)][_0x1a7080(0x268)](_0x45fc06,_0x2ece8f),_0x1f2b09,_0x8d3049,this[_0x1a7080(0x3e2)],this[_0x1a7080(0x2a1)]);}async[_0xfc9601(0x24e)](_0x20e633,_0x4148b8,_0x168e82,_0x387717){const _0x4baa4b=_0xfc9601;return transformWorkbookDataToSnapshotNoSave(_0x20e633,_0x387717||this[_0x4baa4b(0x2a8)][_0x4baa4b(0x268)](_0x20e633,_0x168e82),_0x4148b8,this[_0x4baa4b(0x3e2)]);}async[_0xfc9601(0x1c8)](_0x31a444,_0x1fb576,_0x14cd2b,_0x2b151e){const _0x2f5d7d=_0xfc9601;return generateTemporarySnap(_0x31a444,this[_0x2f5d7d(0x2a8)][_0x2f5d7d(0x268)](_0x31a444,_0x2b151e),_0x1fb576,_0x14cd2b,this[_0x2f5d7d(0x3e2)],this[_0x2f5d7d(0x2a1)]);}async[_0xfc9601(0x2db)](_0x44d855,_0x241da7,_0x145ce0,_0x59f157){const _0x47b2d9=_0xfc9601;return generateTempDocumentSnapshot(_0x44d855,this[_0x47b2d9(0x2a8)][_0x47b2d9(0x2ce)](_0x44d855,_0x59f157),_0x241da7,_0x145ce0);}async[_0xfc9601(0x2ce)](_0x20ae42,_0x2e4172,_0x5b504c,_0x3f1793,_0x2e7bbd){const _0x2bdd9b=_0xfc9601;return transformDocumentDataToSnapshot(_0x20ae42,_0x2e7bbd||this[_0x2bdd9b(0x2a8)][_0x2bdd9b(0x2ce)](_0x20ae42,_0x3f1793),_0x2e4172,_0x5b504c,this[_0x2bdd9b(0x3e2)]);}};SnapshotSaveService=__decorate([__decorateParam(0x0,ISnapshotServerService),__decorateParam(0x1,(0x0,_univerjs_core[_0xfc9601(0x1df)])(SnapshotService)),__decorateParam(0x2,(0x0,_univerjs_core[_0xfc9601(0x1df)])(_univerjs_core[_0xfc9601(0x3df)]))],SnapshotSaveService),exports['CollaborationEvent']=CollaborationEvent,exports[_0xfc9601(0x300)]=CompressMutationService,exports[_0xfc9601(0x236)]=CreateUnitMutation,Object[_0xfc9601(0x238)](exports,_0xfc9601(0x1e6),{'enumerable':!![],'get':function(){return DocTransformController;}}),exports['EmptyMutationInfo']=EmptyMutationInfo,exports[_0xfc9601(0x332)]=ISnapshotServerService,exports['ITransformService']=ITransformService,exports['RevertRevisionMutation']=RevertRevisionMutation,Object[_0xfc9601(0x238)](exports,'RevisionService',{'enumerable':!![],'get':function(){return RevisionService;}}),exports[_0xfc9601(0x1e3)]=SINGLE_HISTORY_MUTATIONS,exports[_0xfc9601(0x1e8)]=SINGLE_SNAPSHOT_MUTATIONS,Object[_0xfc9601(0x238)](exports,_0xfc9601(0x258),{'enumerable':!![],'get':function(){return SheetTransformController;}}),Object['defineProperty'](exports,_0xfc9601(0x1ed),{'enumerable':!![],'get':function(){return SnapshotSaveService;}}),Object[_0xfc9601(0x238)](exports,_0xfc9601(0x2c0),{'enumerable':!![],'get':function(){return SnapshotService;}}),Object[_0xfc9601(0x238)](exports,_0xfc9601(0x2aa),{'enumerable':!![],'get':function(){return TransformService;}}),Object[_0xfc9601(0x238)](exports,_0xfc9601(0x3bd),{'enumerable':!![],'get':function(){return UniverCollaborationPlugin;}}),exports[_0xfc9601(0x322)]=b64DecodeUnicode,exports[_0xfc9601(0x285)]=b64EncodeUnicode,exports[_0xfc9601(0x25b)]=generateTempDocumentSnapshot,exports['generateTemporarySnap']=generateTemporarySnap,exports[_0xfc9601(0x3a2)]=getSheetBlocksFromSnapshot,exports[_0xfc9601(0x2a0)]=isTransformChangesetsFailure,exports['isTransformChangesetsSuccess']=isTransformChangesetsSuccess,exports[_0xfc9601(0x407)]=isTransformMutationFailure,exports['isTransformMutationSuccess']=isTransformMutationSuccess,exports[_0xfc9601(0x395)]=isTransformMutationsFailure,exports[_0xfc9601(0x2d3)]=isTransformMutationsSuccess,exports[_0xfc9601(0x401)]=isTransformMutationsWithChangesetFailure,exports[_0xfc9601(0x227)]=isTransformMutationsWithChangesetSuccess,exports['mapDocumentTypeToUniverInstanceType']=mapDocumentTypeToUniverInstanceType,exports[_0xfc9601(0x263)]=measureAsyncOperation,exports['measureSyncOperation']=measureSyncOperation,exports[_0xfc9601(0x33d)]=parseChangesetToProtocol,exports[_0xfc9601(0x291)]=parseMutationToProtocol,exports[_0xfc9601(0x1cb)]=parseProtocolChangeset,exports['parseProtocolCommand']=parseProtocolCommand,exports['parseProtocolMutation']=parseProtocolMutation,exports[_0xfc9601(0x3fd)]=textDecoder,exports[_0xfc9601(0x281)]=textEncoder,exports[_0xfc9601(0x278)]=transformDocumentDataToSnapshot,exports[_0xfc9601(0x265)]=transformSnapshotToDocumentData,exports[_0xfc9601(0x3ed)]=transformSnapshotToWorkbookData,exports['transformWorkbookDataToSnapshot']=transformWorkbookDataToSnapshot,Object['defineProperty'](exports,_0xfc9601(0x22c),{'enumerable':!![],'get':function(){return uuid['v4'];}});
|
|
1
|
+
const _0x4fd226=_0x3e21;(function(_0xb08d3,_0x4f60c2){const _0x3a6fd5=_0x3e21,_0x59f5ac=_0xb08d3();while(!![]){try{const _0x1c734b=parseInt(_0x3a6fd5(0x385))/0x1*(parseInt(_0x3a6fd5(0x3d5))/0x2)+-parseInt(_0x3a6fd5(0x2f5))/0x3+parseInt(_0x3a6fd5(0x34f))/0x4+-parseInt(_0x3a6fd5(0x310))/0x5+parseInt(_0x3a6fd5(0x315))/0x6*(-parseInt(_0x3a6fd5(0x2ae))/0x7)+-parseInt(_0x3a6fd5(0x31f))/0x8*(-parseInt(_0x3a6fd5(0x3ef))/0x9)+parseInt(_0x3a6fd5(0x21c))/0xa*(-parseInt(_0x3a6fd5(0x3a6))/0xb);if(_0x1c734b===_0x4f60c2)break;else _0x59f5ac['push'](_0x59f5ac['shift']());}catch(_0x21ad08){_0x59f5ac['push'](_0x59f5ac['shift']());}}}(_0x159c,0x1e110),Object[_0x4fd226(0x374)](exports,Symbol[_0x4fd226(0x329)],{'value':_0x4fd226(0x20b)}));let _univerjs_core=require('@univerjs/core'),_univerjs_docs=require('@univerjs/docs'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_thread_comment=require('@univerjs/thread-comment'),_univerjs_sheets_conditional_formatting=require('@univerjs/sheets-conditional-formatting'),_univerjs_data_validation=require('@univerjs/data-validation'),_univerjs_sheets_hyper_link=require('@univerjs/sheets-hyper-link'),_univerjs_sheets_filter=require('@univerjs/sheets-filter'),_univerjs_engine_formula=require('@univerjs/engine-formula'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),_univerjs_pro_license=require('@univerjs-pro/license'),_univerjs_protocol=require('@univerjs/protocol'),uuid=require('uuid');const CreateUnitMutation={'id':'univer.mutation.create-unit','type':_univerjs_core['CommandType']['MUTATION'],'handler':()=>{return!![];}},RevertRevisionMutation={'id':'univer.mutation.revert-version','type':_univerjs_core['CommandType'][_0x4fd226(0x280)],'handler':()=>{return!![];}};function isTransformMutationFailure(_0x218026){const _0x578086=_0x4fd226;return!!_0x218026[_0x578086(0x1bf)];}function isTransformMutationSuccess(_0x51b093){return!isTransformMutationFailure(_0x51b093);}function isInclineTransformMutationsFailure(_0x522dbe){const _0x162bbf=_0x4fd226;return!!_0x522dbe[_0x162bbf(0x1bf)];}function isTransformMutationsFailure(_0x3ac9d4){const _0x2c0113=_0x4fd226;return!!_0x3ac9d4[_0x2c0113(0x1bf)];}function isTransformMutationsSuccess(_0x5d06bc){return!isTransformMutationsFailure(_0x5d06bc);}function _0x159c(){const _0x333fec=['getResources','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20data\x20validation\x20rule','EmptyMutation','keys','encode','_snapshotServerService','getValue','foreach','handleBaseMoveRowsCols','subUnitId','transform','LIVESHARE_OPERATION','Algorithm\x20error,\x20the\x20changeset\x20does\x20not\x20exist!','COMPRESS_MUTATION_SEND','SheetTransformController','right','fetchThroughInterceptors','add\x20range\x20protection\x20is\x20conflict\x20with\x20delete\x20conditional\x20formatting\x20rule','textRanges','getUnit','formula1','COMPRESS_MUTATION_APPLY','193090xwOHiv','block','remove\x20rows\x20is\x20conflict\x20with\x20set\x20range\x20values\x20mutation,\x20trying\x20to\x20write\x20a\x20formula\x20reference\x20to\x20a\x20removed\x20row','liveshare.new_host','cfId','798yxaIkE','all','[Error]\x20_logOriginTransformMutations\x20','transformDocumentDataToSnapshot','SetSheetsFilterCriteriaMutation','packageName','decorate','mutations','after','add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20col','47848sEnzQf','CHANGESET_SHOULD_RETRY','RemoveSheetMutation','textEncoder','warn','EmptyMutationInfo','getSheet','toFixed','moveRows','RemoveHyperLinkMutation','toStringTag','update_cursor','getSheets','ruleId','find','DeleteWorksheetProtectionMutation','incrementRev','b64EncodeUnicode','add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20protection','move\x20range\x20is\x20conflict\x20with\x20reorder\x20range','saveSheet','LIVESHARE_TERMINATE','RichTextEditingMutation','set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20protection','endColumn','size','order','getSnapshot','add\x20range\x20protection\x20is\x20conflict\x20with\x20update\x20comment','pseudo_fetch_missing_result','move\x20row\x20is\x20conflict\x20with\x20move\x20range','[debug]\x20c1:\x20','uniscript.run','AddWorksheetMergeMutation','getDoc','InsertColMutation','serializeRangeToRefString','set\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20protection','0.22.0','[generateTemporarySnap()]','move\x20col\x20is\x20conflict\x20with\x20set\x20col\x20visible','_logService','string','removeColumns','\x20ms','UpdateHyperLinkMutation','insert\x20col\x20is\x20conflict\x20with\x20move\x20col','slice','616592MnwDlv','[debug]\x20c2:\x20','rule','UNISCRIPT_RUN','set\x20range\x20protection\x20is\x20conflict\x20with\x20update\x20comment','IResourceManagerService','value','registerCommand','toOrder','[transformWorkbookDataToSnapshot()]','rev','MoveRangeMutation','add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20conditional\x20formatting\x20rule','SetRangeValuesMutation','\x20Sheet\x20Order:\x20','registerTransformAlgorithm','column','actualColumn','SetRowDataMutation','ILogService','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width','Block\x20not\x20found','[Error]\x20_logCurrentTransformMutations\x20','fromCharCode','length',']\x20took\x20a\x20long\x20time:\x20','createUnit','add\x20range\x20protection\x20is\x20conflict\x20with\x20update\x20data\x20validation\x20rule','liveshare.fetch_operations','getInterceptPoints','_init','insert\x20row\x20is\x20conflict\x20with\x20remove\x20row','UniverInstanceType','InterceptorManager','DeleteConditionalRuleMutation','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20col','drawingId','defineProperty','_loopLimitTime','measureAsyncOperation','move\x20col\x20is\x20conflict\x20with\x20remove\x20numfmt','merge','move\x20col\x20is\x20conflict\x20with\x20set\x20col\x20hidden','move\x20col\x20is\x20conflict\x20with\x20set\x20numfmt','reduce','_univerInstanceService','code','findIndex','_resourceManagerService','call','set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20data\x20validation\x20rule','MoveRowsCommand','SetColVisibleMutation','getRev','27iTXNEO','formula2','setRevOfUnit','unshift','charCodeAt','SetWorksheetHideMutation','ref','add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20frozen','byteLength','insert\x20row\x20is\x20conflict\x20with\x20set\x20row\x20hidden','[debug]\x20m2Length:\x20','SetColHiddenMutation','queryObjectMatrix','USERS_ENTER','DeleteCommentMutation','Rectangle','isTransformMutationsWithChangesetSuccess','remove\x20col\x20is\x20conflict\x20with\x20remove\x20numfmt','concatRows','forValue','selections','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20range\x20protection','before','_logOriginTransformMutations','UpdateCommentMutation','spliceArray','right-loop1','set\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20row','insert\x20col\x20is\x20conflict\x20with\x20set\x20numfmt','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20insert\x20col','realDeleteValue','handleCommonDefaultRangeChangeWithEffectRefCommands','move\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20is\x20auto\x20height','25366CHsTPU','UNIVER_COLLABORATION_PLUGIN','set\x20range\x20protection\x20is\x20conflict\x20with\x20delete\x20conditional\x20formatting\x20rule','parentId','RemoveRowCommand','edit\x20range\x20of\x20same\x20data-validation\x20rule\x20is\x20not\x20allowed','sequenceNodesBuilder','isRangesEqual','loadSheet','transformMutationsWithChangeset','USERS_LEAVE','move\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20auto\x20height','SetWorksheetRowIsAutoHeightMutation','univer-pro.collaboration.transform-service','Parsing\x20blocks\x20took\x20a\x20long\x20time:\x20','AddConditionalRuleMutation','MoveColsCommand','transformSnapshotToWorkbookData','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20order','round','toPrimitive','remove\x20row\x20is\x20conflict\x20with\x20set\x20numfmt','ICommandService','IConfigService','onStarting','UPDATE_PERMISSION_OBJ','clear','COLUMN','[Error]\x20m1\x20origin\x20mutation\x20','[SnapshotService]:\x20failed\x20to\x20get\x20sheet\x20blocks.\x20','[debug]\x20m1Length:\x20','Two\x20mutation\x20have\x20the\x20same\x20worksheetId!','fill','generateStringWithSequence','rotateRange','handleBaseRemoveRange','isArray','add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20numfmt','unitId','moveMatrixArray','SetWorksheetPermissionPointsMutation','transformPosition','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20move\x20range','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20worksheet\x20merge','cellData','link','[GetBlocks]','12876nKZQWB','sheetOrder','symbol','transformWorkbookDataToSnapshot','m2Prime','add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20range\x20protection','Inject','InsertRowMutation','add\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20row','serializeRange','Disposable','SetRowHiddenMutation','commentId','endRow','set\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20conditional\x20rule','ranges',']\x20failed\x20after\x20','iterator','SheetTypes','_transformService','update_permission_obj','concat','SetDrawingApplyMutation','compress','col','insert\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20height','369BytmeG','rules','generateTemporarySnap','values','SetRangeProtectionMutation','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20numfmt','insert\x20col\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width','ReCalcSheetsFilterMutation','LexerTreeBuilder','SetNumfmtMutation','insert\x20col\x20is\x20conflict\x20with\x20set\x20col\x20visible','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20filter','blocks','set\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20comment','insert\x20row\x20is\x20conflict\x20with\x20remove\x20numfmt','[TransformService]:\x20_leftInclineTransformMutations\x20loop2\x20exceeded\x20the\x20limit\x20time.','RemoveWorksheetMergeMutation','UPDATE_CURSOR','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20merge','actualRow','mapDocumentTypeToUniverInstanceType','isTransformChangesetsFailure','InsertRowCommand','AddWorksheetProtectionMutation','indexOf','setValue','remove\x20row\x20is\x20conflict\x20with\x20remove\x20numfmt','remove\x20row\x20is\x20conflict\x20with\x20move\x20row','move\x20row\x20is\x20conflict\x20with\x20set\x20row\x20hidden','comment','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20move\x20row','UNIVER_DOC','RANGE','function','objects','parse','[transformWorkbookDataToSnapshot()]:\x20Sheet\x20order\x20mismatch','getMatrix','rowHeight','[debug]\x20transformChangesets.\x20Date\x20now:\x20','left','\x20Block\x20Metas:\x20','set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20conditional\x20formatting\x20rule','SetWorksheetRowHeightMutation','Missing\x20workbook\x20meta\x20in\x20snapshot','SetColDataMutation','left-loop1','error','some','entries','liveshare.request_host','[transformWorkbookDataToSnapshot()]:\x20Failed\x20to\x20save\x20sheet\x20blocks.','row','transformSnapshotToDocumentData','Range','getOwnPropertyDescriptor','set\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20range','interceptor','_handleInsertSheetCompressMutationSend','set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width','CHANGESET_REJ','primary','_compressMutationService','getSheetBlock','CollaborationEvent','intercept','data','SetFrozenMutation','UpdateDataValidationMutation','Tools','async\x20[','SetWorksheetNameMutation','columnCount','isMerged','FETCH_MISSING','isDefine','JSONX','\x20already\x20exists.','Failed\x20to\x20get\x20sheet\x20block:\x20',']:\x20','name','handleBaseInsertRange','ISnapshotServerService','title','@univerjs-pro/collaboration','deserializeRangeWithSheetWithCache','submit_changeset','step','SHOULD_CLOSE_CONN','sequenceNodeType','getSliceDataAndCellCountByRows','actions','saveDoc','columnData','InsertSheetMutation','MoveConditionalRuleMutation','rowData','styleRefMap','min','ErrorType','set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20frozen','generateRandomId','[TransformService]\x20Transform\x20algorithm\x20for\x20','SnapshotService','end','remove\x20cols\x20is\x20conflict\x20with\x20set\x20range\x20values\x20mutation,\x20trying\x20to\x20write\x20a\x20formula\x20reference\x20to\x20a\x20removed\x20column','SetConditionalRuleMutation','right-loop2','SetWorksheetOrderMutation','b64DecodeUnicode','CreateUnitMutation','body','sourceRange','ReorderRangeMutation','[RevisionService]:\x20cannot\x20find\x20document\x20with\x20unitID:\x20','SetRowVisibleMutation','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20numfmt','permission_rej','workbook','AddRangeProtectionMutation','map','parseProtocolChangeset','removeRows','Module','touchDependencies','decode','RemoveNumfmtMutation','getUnitOnRev','index','COMMENT_UPDATE','_leftInclineTransformMutations','_handleCompressNumberMapMutationSend','[transformWorkbookDataToSnapshot()]:\x20Failed\x20to\x20save\x20sheet\x20blocks.\x20','RemoveColCommand','generateTempDocumentSnapshot','add\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20col','sort','transformMutation','parseProtocolCommand','saveSheetBlock','760qqqJna','debug','unit_delete','parse\x20blocks\x20start,\x20total\x20','parse\x20blocks\x20end,\x20took\x20','_logCurrentTransformMutations','forEach','ERROR','[TransformService]:\x20_leftInclineTransformMutations\x20loop1\x20exceeded\x20the\x20limit\x20time.','add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20merge','createIdentifier','insert\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20auto\x20height','RemoveColMutation','MoveRowsMutation','has','type','any','[transformWorkbookDataToSnapshot()]:\x20Sheet\x20block\x20mismatch','getDeserializedSheetBlock','SetSheetsFilterRangeMutation','changeset_rej','delete','new_changesets','transformDocumentDataToSnapshot():\x20Failed\x20to\x20save\x20snapshot.\x0aErrorCode:\x20','move\x20range\x20is\x20conflict\x20with\x20set\x20numfmt','params','left-loop2','sheet','fromOrder','colWidth','toISOString','liveshare.operation','.\x20Date\x20now:\x20','move\x20col\x20is\x20conflict\x20with\x20move\x20col','_handleDecompressNumberMapMutationApply','uuidv4','set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20filter','handleDefaultRangeChangeWithEffectRefCommands','default','parseChangesetToProtocol','[TransformService]:\x20_rightInclineTransformMutations\x20loop2\x20exceeded\x20the\x20limit\x20time.','pluginName','nodeType','shift','set\x20range\x20protection\x20is\x20conflict\x20with\x20insert\x20col','ceil','IUniverInstanceService','UNIVER_SHEET','SetWorksheetColWidthMutation','start','EN_US','SETTING','registerDependencies','InsertColCommand','Missing\x20sheet\x20block\x20','m1Prime','LIVESHARE_REQUEST_HOST','moveColumns','createInterceptorKey','now','blockMeta',']\x20end,\x20took\x20','Algorithm\x20error,\x20m1Prime\x20should\x20not\x20be\x20undefined.',']\x20start\x20','singleReferenceToGrid','_revisionService','add','insert\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20is\x20auto\x20height','add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20conditional\x20rule','drawingIds','DrawingApplyType','get','move\x20row\x20is\x20conflict\x20with\x20set\x20row\x20visible','total\x20','_config','\x20blocks','\x20Sheet\x20Metas:\x20','add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width','insert\x20col\x20is\x20conflict\x20with\x20set\x20col\x20hidden','__splitChunk__','targetRange','isTransformMutationsFailure','ErrorCode','startRow','from','blockID','originalMeta','0123456789','UpdateHyperLinkRefMutation','sheets','set\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20col','getDataRange','isTransformMutationsWithChangesetFailure','RANGE_TYPE','isError','UpdateCommentRefMutation','add\x20range\x20protection\x20is\x20conflict\x20with\x20insert\x20row','UpdateRuleType','[debug]\x20_leftInclineTransformMutations\x20start\x20transforming\x20mutations.\x20Date\x20now:\x20','unitID','MUTATION','subtract','parseMutationToProtocol','_transformMutationsCache','move\x20col\x20is\x20conflict\x20with\x20move\x20range','push','add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20protection','collaboration.config','set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20col','_configService','saveSnapshot','CopyWorksheetEndMutation','ApplyCompressedChangesetsSync','getCurrentRevOfUnit','deepClone','startColumn','RemoveSheetsFilterMutation','SnapshotSaveService','set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20row','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20row','_initSetRangeValues','_snapshotService','isMergedMainCell','Injector','getRealRange','isFormulaString','hasOwnProperty','SetTabColorMutation','Error\x20saving\x20block\x20for\x20sheet\x20','UNIT_DELETE','getUnitId','every','_rightInclineTransformMutations','splice','[TransformService]:\x20changesets\x20revisions\x20miss\x20match.\x20The\x20\x27baseRev\x27\x20of\x20c2\x20is\x20','RemoveDataValidationMutation','move\x20row\x20is\x20conflict\x20with\x20remove\x20numfmt','transformMutations','setRev','Two\x20SetWorksheetOrderMutation\x20have\x20conflicts!','includes','[SnapshotService]:\x20wrong\x20rev\x20from\x20the\x20server!','max','[ParseBlocks]','uid','reorder\x20range\x20is\x20conflict\x20with\x20reorder\x20range','9373BXicbB','number','[Error]\x20m2Length:\x20','changeset_ack','prototype','MoveColsMutation','Sheet\x20order\x20mismatch!\x20','object','AddDataValidationMutation','Sheet\x20block\x20mismatch!\x20','RemoveRowMutation','setConfig','UniverCollaborationPlugin','Set-range-values\x20mutation\x20and\x20move-range\x20mutation\x20have\x20an\x20overlapping\x20range.','[TransformService]:\x20_rightInclineTransformMutations\x20loop1\x20exceeded\x20the\x20limit\x20time.','set','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20insert\x20row','insert\x20row\x20is\x20conflict\x20with\x20set\x20numfmt','Remove-cols\x20has\x20conflicts\x20with\x20move-range','add\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20value','\x20Sheet\x20raw:\x20','resources','comment_update','payload','[Error]\x20m2\x20origin\x20mutation\x20','syncExecuteCommand','criteria','should_close_conn','incrementRevOfUnit','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20update\x20comment','SetWorksheetRowAutoHeightMutation','_injector','move\x20row\x20is\x20conflict\x20with\x20set\x20worksheet\x20row\x20height','GRID','range','colId','SINGLE_HISTORY_MUTATIONS','stringify','message','textDecoder','revision','isTransformMutationsSuccess','insertMatrixArray','SetWorksheetProtectionMutation','intersects','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20move\x20col','baseRev','SetSelectionsOperation','AddCommentMutation','set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20numfmt','[generateTemporarySnap()]:\x20Sheet\x20block\x20mismatch','endOffset','rowCount','JSON1','add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20conditional\x20rule','sync\x20[','SINGLE_SNAPSHOT_MUTATIONS','SetWorkbookNameMutation','flat','_commandService','_transformMap','isTransformMutationFailure','filter','ObjectMatrix','GetBlocks','handler','version','insert\x20row\x20is\x20conflict\x20with\x20set\x20row\x20visible','rowsAutoHeightInfo','add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20numfmt','LocaleType','174246VRQClt','REFERENCE','transformWorkbookDataToSnapshot():\x20Failed\x20to\x20save\x20snapshot.\x0aErrorCode:\x20','cellValue','startOffset'];_0x159c=function(){return _0x333fec;};return _0x159c();}function isTransformChangesetsFailure(_0x346130){const _0x5ab824=_0x4fd226;return!!_0x346130[_0x5ab824(0x1bf)];}function isTransformChangesetsSuccess(_0x218496){return!isTransformChangesetsFailure(_0x218496);}function isTransformMutationsWithChangesetFailure(_0x157524){const _0x4cfebe=_0x4fd226;return!!_0x157524[_0x4cfebe(0x1bf)];}function isTransformMutationsWithChangesetSuccess(_0x4dd2ae){return!isTransformMutationsWithChangesetFailure(_0x4dd2ae);}function _typeof(_0x314378){'@babel/helpers - typeof';const _0x97691d=_0x4fd226;return _typeof=_0x97691d(0x410)==typeof Symbol&&_0x97691d(0x3d7)==typeof Symbol[_0x97691d(0x3e6)]?function(_0x1c053b){return typeof _0x1c053b;}:function(_0x25064d){const _0x36c6e1=_0x97691d;return _0x25064d&&_0x36c6e1(0x410)==typeof Symbol&&_0x25064d['constructor']===Symbol&&_0x25064d!==Symbol[_0x36c6e1(0x2b2)]?_0x36c6e1(0x3d7):typeof _0x25064d;},_typeof(_0x314378);}function toPrimitive(_0x125d17,_0x5ea430){const _0x598d51=_0x4fd226;if(_0x598d51(0x2b5)!=_typeof(_0x125d17)||!_0x125d17)return _0x125d17;var _0x536acb=_0x125d17[Symbol[_0x598d51(0x3ba)]];if(void 0x0!==_0x536acb){var _0x4e26de=_0x536acb[_0x598d51(0x380)](_0x125d17,_0x5ea430||_0x598d51(0x242));if('object'!=_typeof(_0x4e26de))return _0x4e26de;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x598d51(0x349)===_0x5ea430?String:Number)(_0x125d17);}function toPropertyKey(_0x98714e){var _0x5600b5=toPrimitive(_0x98714e,'string');return'symbol'==_typeof(_0x5600b5)?_0x5600b5:_0x5600b5+'';}function _defineProperty(_0x5f32ec,_0x260411,_0x44f737){const _0xfa999b=_0x4fd226;return(_0x260411=toPropertyKey(_0x260411))in _0x5f32ec?Object[_0xfa999b(0x374)](_0x5f32ec,_0x260411,{'value':_0x44f737,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5f32ec[_0x260411]=_0x44f737,_0x5f32ec;}function __decorateParam(_0x47336f,_0x4e6bf4){return function(_0x2fe13b,_0x468d1d){_0x4e6bf4(_0x2fe13b,_0x468d1d,_0x47336f);};}function __decorate(_0x19f4b2,_0x38ddd4,_0x177209,_0x125c36){const _0x26430e=_0x4fd226;var _0x57e8fd=arguments[_0x26430e(0x367)],_0x5887f9=_0x57e8fd<0x3?_0x38ddd4:_0x125c36===null?_0x125c36=Object[_0x26430e(0x1c7)](_0x38ddd4,_0x177209):_0x125c36,_0x48e727;if(typeof Reflect==='object'&&typeof Reflect[_0x26430e(0x31b)]===_0x26430e(0x410))_0x5887f9=Reflect[_0x26430e(0x31b)](_0x19f4b2,_0x38ddd4,_0x177209,_0x125c36);else{for(var _0x19d7f3=_0x19f4b2[_0x26430e(0x367)]-0x1;_0x19d7f3>=0x0;_0x19d7f3--)if(_0x48e727=_0x19f4b2[_0x19d7f3])_0x5887f9=(_0x57e8fd<0x3?_0x48e727(_0x5887f9):_0x57e8fd>0x3?_0x48e727(_0x38ddd4,_0x177209,_0x5887f9):_0x48e727(_0x38ddd4,_0x177209))||_0x5887f9;}return _0x57e8fd>0x3&&_0x5887f9&&Object[_0x26430e(0x374)](_0x38ddd4,_0x177209,_0x5887f9),_0x5887f9;}const DEFAULT_LOOP_LIMIT_TIME=0xbb8,ITransformService=(0x0,_univerjs_core['createIdentifier'])(_0x4fd226(0x3b3));let TransformService=class TransformService extends _univerjs_core[_0x4fd226(0x3df)]{constructor(_0x46e85e){const _0x239092=_0x4fd226;super(),this[_0x239092(0x348)]=_0x46e85e,_defineProperty(this,_0x239092(0x2ea),new Map()),_defineProperty(this,_0x239092(0x375),DEFAULT_LOOP_LIMIT_TIME),_defineProperty(this,_0x239092(0x283),new Map());}['dispose'](){const _0x42472a=_0x4fd226;this[_0x42472a(0x2ea)][_0x42472a(0x3c0)](),this['_transformMutationsCache'][_0x42472a(0x3c0)]();}[_0x4fd226(0x35e)](_0x19795f){const _0x45cf7f=_0x4fd226,{m1:_0x15238c,m2:m2=_0x45cf7f(0x22c)}=_0x19795f;if(!this[_0x45cf7f(0x2ea)]['has'](_0x15238c))this[_0x45cf7f(0x2ea)][_0x45cf7f(0x2bd)](_0x15238c,new Map());const _0x2c4bb4=this[_0x45cf7f(0x2ea)][_0x45cf7f(0x263)](_0x15238c);if(_0x2c4bb4[_0x45cf7f(0x22a)](m2))throw new Error(_0x45cf7f(0x1f6)+_0x15238c+'\x20and\x20'+m2+_0x45cf7f(0x1dd));_0x2c4bb4[_0x45cf7f(0x2bd)](m2,_0x19795f);}[_0x4fd226(0x219)](_0x541d82,_0x493990,_0x2d6784){const _0x2934e9=_0x4fd226;var _0x4a222c,_0x229ee4,_0x3ed118,_0x75089f,_0x4e2688,_0x56720f;const _0x96642e=this[_0x2934e9(0x2ea)],_0x15f421=((_0x4a222c=_0x96642e['get'](_0x541d82['id']))===null||_0x4a222c===void 0x0?void 0x0:_0x4a222c['get'](_0x493990['id']))||((_0x229ee4=_0x96642e[_0x2934e9(0x263)](_0x541d82['id']))===null||_0x229ee4===void 0x0?void 0x0:_0x229ee4[_0x2934e9(0x263)]('any'))||((_0x3ed118=_0x96642e[_0x2934e9(0x263)](_0x2934e9(0x22c)))===null||_0x3ed118===void 0x0?void 0x0:_0x3ed118[_0x2934e9(0x263)](_0x493990['id']));if(_0x15f421)return _0x2d6784?_0x15f421[_0x2934e9(0x2ef)](_0x541d82,_0x493990,_0x2d6784):_0x15f421['handler'](_0x541d82,_0x493990);const _0x2e5cc4=((_0x75089f=_0x96642e[_0x2934e9(0x263)](_0x493990['id']))===null||_0x75089f===void 0x0?void 0x0:_0x75089f['get'](_0x541d82['id']))||((_0x4e2688=_0x96642e[_0x2934e9(0x263)](_0x493990['id']))===null||_0x4e2688===void 0x0?void 0x0:_0x4e2688[_0x2934e9(0x263)]('any'))||((_0x56720f=_0x96642e[_0x2934e9(0x263)](_0x2934e9(0x22c)))===null||_0x56720f===void 0x0?void 0x0:_0x56720f[_0x2934e9(0x263)](_0x541d82['id']));if(_0x2e5cc4){const _0x5af8f0=_0x2d6784?_0x2e5cc4[_0x2934e9(0x2ef)](_0x493990,_0x541d82,_0x2d6784):_0x2e5cc4['handler'](_0x493990,_0x541d82);if(isTransformMutationSuccess(_0x5af8f0))return _0x2d6784?{'m2Prime':_0x5af8f0[_0x2934e9(0x253)]}:{'m2Prime':_0x5af8f0[_0x2934e9(0x253)],'m1Prime':_0x5af8f0['m2Prime']};return _0x5af8f0;}return{'m1Prime':_0x541d82,'m2Prime':_0x493990};}[_0x4fd226(0x2a5)](_0x35ab60,_0x2e9f88,_0x13f988){const _0x5b29b7=_0x4fd226;this['_transformMutationsCache'][_0x5b29b7(0x2bd)]('m1',_0x35ab60),this[_0x5b29b7(0x283)][_0x5b29b7(0x2bd)]('m2',_0x2e9f88);const _0x24db16=Date[_0x5b29b7(0x257)](),_0x3d79ca=this[_0x5b29b7(0x2a0)](_0x35ab60,_0x2e9f88,_0x24db16);if(isInclineTransformMutationsFailure(_0x3d79ca))return _0x3d79ca;if(_0x13f988)return{'m2Prime':_0x3d79ca};const _0x1ca5d6=this['_leftInclineTransformMutations'](_0x35ab60,_0x2e9f88,_0x24db16);if(isInclineTransformMutationsFailure(_0x1ca5d6))return _0x1ca5d6;return this['_transformMutationsCache'][_0x5b29b7(0x3c0)](),{'m1Prime':_0x1ca5d6,'m2Prime':_0x3d79ca};}[_0x4fd226(0x2a0)](_0x11c990,_0x1a6130,_0x3c7d0b){const _0x160df4=_0x4fd226;Date['now']()===_0x3c7d0b&&(this[_0x160df4(0x348)][_0x160df4(0x21d)]('[debug]\x20_rightInclineTransformMutations\x20start\x20transforming\x20mutations.\x20Date\x20now:\x20'+new Date()[_0x160df4(0x23a)]()),this[_0x160df4(0x348)][_0x160df4(0x21d)](_0x160df4(0x3c4),_0x11c990['length']),this[_0x160df4(0x348)][_0x160df4(0x21d)](_0x160df4(0x38f),_0x1a6130[_0x160df4(0x367)]));const _0x552f48=_0x11c990[_0x160df4(0x367)];let _0x23345a=0x0,_0x177d52=0x0,_0x1f8a7a;for(_0x1f8a7a=0x0;_0x1f8a7a<_0x552f48;_0x1f8a7a++){_0x23345a++;if(_0x23345a%0x2710===0x0&&Date[_0x160df4(0x257)]()-_0x3c7d0b>this[_0x160df4(0x375)]){this['_logOriginTransformMutations'](_0x160df4(0x39f)),this[_0x160df4(0x221)](_0x11c990[_0x160df4(0x367)],_0x1a6130[_0x160df4(0x367)],_0x160df4(0x39f));throw new Error(_0x160df4(0x2bc));}let _0x45d56b=[_0x11c990[_0x1f8a7a]],_0x5d6d4e=[];for(let _0x395f2c=0x0,_0x40f91c=_0x1a6130[_0x160df4(0x367)];_0x395f2c<_0x40f91c;_0x395f2c++){_0x177d52++;if(_0x177d52%0x2710===0x0&&Date[_0x160df4(0x257)]()-_0x3c7d0b>this[_0x160df4(0x375)]){this[_0x160df4(0x39c)](_0x160df4(0x1fb)),this[_0x160df4(0x221)](_0x11c990[_0x160df4(0x367)],_0x1a6130[_0x160df4(0x367)],_0x160df4(0x1fb));throw new Error(_0x160df4(0x244));}const _0x5e52b8=_0x1a6130[_0x395f2c];let _0x41adee;if(_0x45d56b[_0x160df4(0x367)]===0x0)_0x41adee=[_0x5e52b8],_0x45d56b=[];else{if(_0x45d56b[_0x160df4(0x367)]===0x1){const _0x1231ce=this[_0x160df4(0x219)](_0x45d56b[0x0],_0x5e52b8);if(isTransformMutationFailure(_0x1231ce))return _0x1231ce;_0x41adee=makeArray(_0x1231ce[_0x160df4(0x3d9)]);if(!_0x1231ce[_0x160df4(0x253)])throw new Error(_0x160df4(0x25a));_0x45d56b=makeArray(_0x1231ce['m1Prime']);}else{const _0x3a7c38=this[_0x160df4(0x2a0)](_0x45d56b,[_0x5e52b8],_0x3c7d0b);if(_0x3a7c38[_0x160df4(0x1bf)])return _0x3a7c38;_0x41adee=_0x3a7c38;if(_0x395f2c<_0x40f91c-0x1){const _0x40f4fc=this[_0x160df4(0x212)](_0x45d56b,[_0x5e52b8],_0x3c7d0b);if(_0x40f4fc[_0x160df4(0x1bf)])return _0x40f4fc;_0x45d56b=_0x40f4fc;}}}_0x5d6d4e=_0x5d6d4e['concat'](_0x41adee);}_0x1a6130=_0x5d6d4e;}return _0x1a6130;}[_0x4fd226(0x212)](_0x121950,_0x577514,_0x3ce191){const _0x1a30e1=_0x4fd226;Date['now']()===_0x3ce191&&(this[_0x1a30e1(0x348)][_0x1a30e1(0x21d)](_0x1a30e1(0x27e)+new Date()[_0x1a30e1(0x23a)]()),this[_0x1a30e1(0x348)][_0x1a30e1(0x21d)](_0x1a30e1(0x3c4),_0x121950[_0x1a30e1(0x367)]),this['_logService']['debug'](_0x1a30e1(0x38f),_0x577514['length']));const _0x496a24=_0x577514[_0x1a30e1(0x367)];let _0x1e9a5c,_0x18c4a0=0x0,_0x24f7d0=0x0;for(_0x1e9a5c=0x0;_0x1e9a5c<_0x496a24;_0x1e9a5c++){_0x18c4a0++;if(_0x18c4a0%0x2710===0x0&&Date[_0x1a30e1(0x257)]()-_0x3ce191>this[_0x1a30e1(0x375)]){this[_0x1a30e1(0x39c)](_0x1a30e1(0x1be)),this[_0x1a30e1(0x221)](_0x121950[_0x1a30e1(0x367)],_0x577514[_0x1a30e1(0x367)],_0x1a30e1(0x1be));throw new Error(_0x1a30e1(0x224));}let _0x5be11a=[_0x577514[_0x1e9a5c]],_0x267516=[];for(let _0x1002de=0x0,_0x296ea1=_0x121950[_0x1a30e1(0x367)];_0x1002de<_0x296ea1;_0x1002de++){_0x24f7d0++;if(_0x24f7d0%0x2710===0x0&&Date[_0x1a30e1(0x257)]()-_0x3ce191>this[_0x1a30e1(0x375)]){this['_logOriginTransformMutations'](_0x1a30e1(0x236)),this[_0x1a30e1(0x221)](_0x121950['length'],_0x577514[_0x1a30e1(0x367)],'left-loop2');throw new Error(_0x1a30e1(0x3fe));}const _0x222d99=_0x121950[_0x1002de];let _0x297dec;if(_0x5be11a['length']===0x0)_0x297dec=[_0x222d99],_0x5be11a=[];else{if(_0x5be11a[_0x1a30e1(0x367)]===0x1){const _0x4fcc30=this[_0x1a30e1(0x219)](_0x222d99,_0x5be11a[0x0]);if(isTransformMutationFailure(_0x4fcc30))return _0x4fcc30;if(!_0x4fcc30['m1Prime'])throw new Error(_0x1a30e1(0x25a));_0x297dec=makeArray(_0x4fcc30['m1Prime']),_0x5be11a=makeArray(_0x4fcc30['m2Prime']);}else{const _0xaab810=this[_0x1a30e1(0x212)]([_0x222d99],_0x5be11a,_0x3ce191);if(_0xaab810[_0x1a30e1(0x1bf)])return _0xaab810;_0x297dec=_0xaab810;if(_0x1002de<_0x296ea1-0x1){const _0x52e3af=this[_0x1a30e1(0x2a0)]([_0x222d99],_0x5be11a,_0x3ce191);if(_0x52e3af['error'])return _0x52e3af;_0x5be11a=_0x52e3af;}}}_0x267516=_0x267516[_0x1a30e1(0x3ea)](_0x297dec);}_0x121950=_0x267516;}return _0x121950;}['transformChangesets'](_0x455961,_0x310860,_0x3cf8ea){const _0x51b1c1=_0x4fd226;if(!checkChangesetsAligned(_0x455961,_0x310860))throw new Error(_0x51b1c1(0x2a2)+_0x310860[0x0][_0x51b1c1(0x2dc)]+'\x20and\x20the\x20\x27revision\x27\x20of\x20c1\x20is\x20'+_0x455961[0x0][_0x51b1c1(0x2d6)]+'.');const _0x4844bb=_0x455961[_0x51b1c1(0x367)],_0x18270e=_0x310860[_0x51b1c1(0x367)],_0xed5289=makeMatrixArray(_0x4844bb,_0x18270e+0x1),_0x49fc5e=makeMatrixArray(_0x4844bb+0x1,_0x18270e);_0x455961[_0x51b1c1(0x222)]((_0x2df7c4,_0x5b323a)=>_0xed5289[_0x5b323a][0x0]=_0x2df7c4),_0x310860['forEach']((_0x4176a5,_0x5f16ff)=>_0x49fc5e[0x0][_0x5f16ff]=_0x4176a5);try{for(let _0x2f47db=0x0;_0x2f47db<_0x18270e;_0x2f47db++)for(let _0x17c502=0x0;_0x17c502<_0x4844bb;_0x17c502++){const _0x1671f2=_0x49fc5e[_0x17c502][_0x2f47db],_0x58cc91=_0xed5289[_0x17c502][_0x2f47db];if(!_0x1671f2||!_0x58cc91)throw new Error(_0x51b1c1(0x306));const {mutations:_0x371232,..._0x207e6b}=_0x58cc91,{mutations:_0x1ea168,..._0x50bf3f}=_0x1671f2;this[_0x51b1c1(0x348)][_0x51b1c1(0x21d)](_0x51b1c1(0x416)+new Date()[_0x51b1c1(0x23a)]()),this[_0x51b1c1(0x348)][_0x51b1c1(0x21d)](_0x51b1c1(0x33e),JSON[_0x51b1c1(0x2d3)](_0x207e6b)),this[_0x51b1c1(0x348)]['debug'](_0x51b1c1(0x350),JSON['stringify'](_0x50bf3f));const _0x513f48=this['transformMutations'](_0x371232,_0x1ea168);if(isTransformMutationsFailure(_0x513f48))return{'error':_0x513f48[_0x51b1c1(0x1bf)]};_0x49fc5e[_0x17c502+0x1][_0x2f47db]={..._0x1671f2,'mutations':_0x513f48['m2Prime']},_0xed5289[_0x17c502][_0x2f47db+0x1]={..._0x58cc91,'mutations':_0x513f48['m1Prime']};}if(!_0x3cf8ea)return{'c1Prime':_0xed5289[_0x51b1c1(0x208)](_0x355be3=>_0x355be3[_0x18270e])[_0x51b1c1(0x2e8)](),'c2Prime':_0x49fc5e[_0x4844bb]};return{'c2Prime':_0x49fc5e[_0x4844bb]};}catch(_0x2a16cd){console[_0x51b1c1(0x1bf)](_0x2a16cd);throw _0x2a16cd;}}[_0x4fd226(0x3af)](_0x84e0d4,_0x53c8fe){const _0x644fb1=_0x4fd226,_0x46838a=_0x84e0d4[_0x644fb1(0x31c)],_0x1df00e=this[_0x644fb1(0x2a5)](_0x46838a,_0x53c8fe);if(isTransformMutationsFailure(_0x1df00e))return{'error':_0x1df00e[_0x644fb1(0x1bf)]};return{'m2Prime':_0x1df00e[_0x644fb1(0x3d9)],'c1Prime':{..._0x84e0d4,'mutations':_0x1df00e[_0x644fb1(0x253)]}};}['_logOriginTransformMutations'](_0x4b3bfa){const _0x1f0945=_0x4fd226;this[_0x1f0945(0x348)][_0x1f0945(0x1bf)](_0x1f0945(0x317)+_0x4b3bfa+_0x1f0945(0x23c)+new Date()[_0x1f0945(0x23a)]());const _0x63c5ba=this[_0x1f0945(0x283)][_0x1f0945(0x263)]('m1'),_0x337b98=this[_0x1f0945(0x283)][_0x1f0945(0x263)]('m2');if(_0x63c5ba)_0x63c5ba[_0x1f0945(0x222)]((_0x233b20,_0x47048f)=>{const _0xf865bf=_0x1f0945;this['_logService'][_0xf865bf(0x1bf)](_0xf865bf(0x3c2)+_0x47048f+_0xf865bf(0x1df),JSON['stringify'](_0x233b20));});if(_0x337b98)_0x337b98[_0x1f0945(0x222)]((_0x3fac81,_0x3a2136)=>{const _0x3b0224=_0x1f0945;this[_0x3b0224(0x348)][_0x3b0224(0x1bf)](_0x3b0224(0x2c6)+_0x3a2136+':\x20',JSON[_0x3b0224(0x2d3)](_0x3fac81));});}[_0x4fd226(0x221)](_0x38e087,_0x19a11e,_0x58f64d){const _0x3e96b1=_0x4fd226;this[_0x3e96b1(0x348)]['error'](_0x3e96b1(0x365)+_0x58f64d+_0x3e96b1(0x23c)+new Date()[_0x3e96b1(0x23a)]()),this[_0x3e96b1(0x348)][_0x3e96b1(0x1bf)]('[Error]\x20m1Length:\x20'+_0x38e087),this[_0x3e96b1(0x348)]['error'](_0x3e96b1(0x2b0)+_0x19a11e);}};TransformService=__decorate([__decorateParam(0x0,_univerjs_core['ILogService'])],TransformService);function checkChangesetsAligned(_0x3fb636,_0x5afb7b){const _0x51d2ab=_0x4fd226;if(_0x3fb636[0x0][_0x51d2ab(0x2d6)]-0x1!==_0x5afb7b[0x0]['baseRev'])return![];return!![];}function makeMatrixArray(_0x3dde47,_0x271ed6){const _0x116da6=_0x4fd226;return new Array(_0x3dde47)[_0x116da6(0x3c6)](void 0x0)[_0x116da6(0x208)](()=>new Array(_0x271ed6));}function makeArray(_0x458e74){const _0x1dccf9=_0x4fd226;return Array[_0x1dccf9(0x3ca)](_0x458e74)?_0x458e74:[_0x458e74];}function extractActionsBySegmentId(_0x4734ab,_0x3822e9){const _0x2b7f5e=_0x4fd226;if(!Array['isArray'](_0x4734ab))return;const _0x265e04=_0x4734ab[_0x2b7f5e(0x407)](_0x2b7f5e(0x1ff))>-0x1?_0x4734ab:_0x4734ab[_0x2b7f5e(0x32d)](_0x5499af=>{const _0x7efedf=_0x2b7f5e;return Array['isArray'](_0x5499af)&&_0x5499af[_0x7efedf(0x407)]('body')>-0x1;});if(!Array[_0x2b7f5e(0x3ca)](_0x265e04))return;const _0x20334f=_0x265e04[_0x2b7f5e(0x407)](_0x2b7f5e(0x1ff));if(_0x20334f===-0x1)return;if((_0x20334f===0x0?'':_0x265e04[_0x20334f-0x1])!==_0x3822e9)return;return _0x265e04[_0x2b7f5e(0x34e)](_0x20334f);}function transformTextRanges(_0x199c74,_0x438c70,_0x19d7b2=_0x4fd226(0x309)){const _0x17be17=_0x4fd226;if(_0x438c70['length']===0x0)return[];const {segmentId:_0x36b259}=_0x438c70[0x0];if(_0x36b259==null)return _0x438c70;const _0x1cddd7=extractActionsBySegmentId(_0x199c74,_0x36b259);if(_0x1cddd7==null)return _0x438c70;const _0x19042b=[];for(const _0x35ad2b of _0x438c70){const _0xef8d13=_univerjs_core[_0x17be17(0x1dc)]['transformPosition'](_0x1cddd7,_0x35ad2b[_0x17be17(0x2f9)],_0x19d7b2),_0x4d9600=_univerjs_core[_0x17be17(0x1dc)][_0x17be17(0x3cf)](_0x1cddd7,_0x35ad2b[_0x17be17(0x2e1)],_0x19d7b2),_0x5e0ab0={..._0x35ad2b,'startOffset':_0xef8d13,'endOffset':_0x4d9600,'collapsed':_0xef8d13===_0x4d9600};_0x19042b[_0x17be17(0x285)](_0x5e0ab0);}return _0x19042b;}const RichTextEditingMutationWithSelf={'m1':_univerjs_docs[_0x4fd226(0x335)]['id'],'m2':_univerjs_docs[_0x4fd226(0x335)]['id'],'handler'(_0x300705,_0x2501c6){const _0x11dab0=_0x4fd226;if(_0x300705['params'][_0x11dab0(0x3cc)]!==_0x2501c6[_0x11dab0(0x235)]['unitId'])return{'error':new Error('Two\x20mutation\x20need\x20have\x20the\x20same\x20unitId!')};const _0x1c8bcb=_univerjs_core[_0x11dab0(0x1d5)][_0x11dab0(0x28e)](_0x300705),_0x48a522=_univerjs_core[_0x11dab0(0x1d5)][_0x11dab0(0x28e)](_0x2501c6);return{'m1Prime':{..._0x1c8bcb,'params':{..._0x1c8bcb[_0x11dab0(0x235)],'actions':_univerjs_core[_0x11dab0(0x1dc)]['transform'](_0x1c8bcb[_0x11dab0(0x235)][_0x11dab0(0x1eb)],_0x48a522[_0x11dab0(0x235)][_0x11dab0(0x1eb)],_0x11dab0(0x417)),'textRanges':_0x1c8bcb[_0x11dab0(0x235)]['textRanges']?transformTextRanges(_0x48a522[_0x11dab0(0x235)][_0x11dab0(0x1eb)],_0x1c8bcb[_0x11dab0(0x235)][_0x11dab0(0x30c)],_0x11dab0(0x309)):null}},'m2Prime':{..._0x48a522,'params':{..._0x48a522['params'],'actions':_univerjs_core[_0x11dab0(0x1dc)][_0x11dab0(0x304)](_0x48a522[_0x11dab0(0x235)]['actions'],_0x1c8bcb[_0x11dab0(0x235)][_0x11dab0(0x1eb)],_0x11dab0(0x309)),'textRanges':_0x48a522['params'][_0x11dab0(0x30c)]?transformTextRanges(_0x1c8bcb['params'][_0x11dab0(0x1eb)],_0x48a522[_0x11dab0(0x235)][_0x11dab0(0x30c)],_0x11dab0(0x309)):null}}};}},DocAlgorithms=[RichTextEditingMutationWithSelf];let DocTransformController=class DocTransformController extends _univerjs_core[_0x4fd226(0x3df)]{constructor(_0x2786ea){super(),this['_transformService']=_0x2786ea,[...DocAlgorithms]['forEach'](_0x1cac6f=>{const _0x5e9c20=_0x3e21;this[_0x5e9c20(0x3e8)][_0x5e9c20(0x35e)](_0x1cac6f);});}};DocTransformController=__decorate([__decorateParam(0x0,ITransformService)],DocTransformController);const EmptyMutationInfo={'id':_univerjs_sheets[_0x4fd226(0x2fc)]['id'],'type':_univerjs_core['CommandType'][_0x4fd226(0x280)],'params':{}},addCommentMutationWithSelf={'m1':_univerjs_thread_comment['AddCommentMutation']['id'],'m2':_univerjs_thread_comment[_0x4fd226(0x2de)]['id'],'handler':(_0x1f7f8d,_0x39f641)=>{const _0x535075=_0x4fd226,_0xdb763c=_0x1f7f8d['params'],_0x45d751=_0x39f641[_0x535075(0x235)],_0x3e3dac={'m1Prime':_0x1f7f8d,'m2Prime':_0x39f641};if(_0xdb763c['unitId']!==_0x45d751[_0x535075(0x3cc)]||_0xdb763c['subUnitId']!==_0x45d751['subUnitId']||_0xdb763c[_0x535075(0x40c)][_0x535075(0x38b)]!==_0x45d751[_0x535075(0x40c)]['ref'])return _0x3e3dac;if(!_0xdb763c[_0x535075(0x40c)][_0x535075(0x3a9)]&&!_0x45d751[_0x535075(0x40c)][_0x535075(0x3a9)]){const _0x184536=_univerjs_core['Tools'][_0x535075(0x28e)](_0x39f641);return _0x184536['params'][_0x535075(0x40c)]['parentId']=_0x1f7f8d[_0x535075(0x235)][_0x535075(0x40c)]['id'],{'m1Prime':[{'id':_univerjs_thread_comment[_0x535075(0x393)]['id'],'params':{'unitId':_0xdb763c[_0x535075(0x3cc)],'subUnitId':_0x45d751[_0x535075(0x303)],'commentId':_0x45d751[_0x535075(0x40c)]['id']}},_0x1f7f8d,_0x184536],'m2Prime':[_0x184536]};}return _0x3e3dac;}},addConditionalFormattingRuleMutationWithSelf={'m1':_univerjs_sheets_conditional_formatting[_0x4fd226(0x3b5)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0x4fd226(0x3b5)]['id'],'handler'(_0x4f5f29,_0x1845dd){const _0x2695f5=_0x4fd226;if(_0x4f5f29['params'][_0x2695f5(0x3cc)]!==_0x1845dd[_0x2695f5(0x235)][_0x2695f5(0x3cc)]||_0x4f5f29['params'][_0x2695f5(0x303)]!==_0x1845dd[_0x2695f5(0x235)][_0x2695f5(0x303)])return{'m1Prime':_0x4f5f29,'m2Prime':_0x1845dd};const {unitId:_0x51f04f,subUnitId:_0x443fca}=_0x4f5f29[_0x2695f5(0x235)],_0x2335ce=_univerjs_core[_0x2695f5(0x1d5)][_0x2695f5(0x28e)](_0x4f5f29),_0x41e18f=_univerjs_core[_0x2695f5(0x1d5)]['deepClone'](_0x1845dd),_0x4d81e8=[_0x2335ce],_0x33f517={'unitId':_0x51f04f,'subUnitId':_0x443fca,'start':{'id':_0x41e18f['params']['rule'][_0x2695f5(0x314)],'type':_0x2695f5(0x39b)},'end':{'id':_0x41e18f[_0x2695f5(0x235)][_0x2695f5(0x351)][_0x2695f5(0x314)],'type':_0x2695f5(0x31d)}};return _0x4d81e8[_0x2695f5(0x285)]({'id':_univerjs_sheets_conditional_formatting[_0x2695f5(0x1ef)]['id'],'params':_0x33f517}),{'m1Prime':_0x4d81e8,'m2Prime':_0x41e18f};}};function applyAddMutationTransform(_0x587169,_0x109965,_0x364b03,_0x338cf6){const _0x10153b=_0x4fd226,_0x5acd12=new _univerjs_core[(_0x10153b(0x2ed))]();_0x364b03[_0x10153b(0x222)](_0x27fd70=>{const _0x29b092=_0x10153b;_0x27fd70[_0x29b092(0x3e4)]['forEach'](_0x3d6982=>{const _0x145b02=_0x29b092;_univerjs_core[_0x145b02(0x1c6)][_0x145b02(0x301)](_0x3d6982,(_0x1ebac9,_0x20aab3)=>{const _0xb02b=_0x145b02;_0x5acd12[_0xb02b(0x408)](_0x1ebac9,_0x20aab3,_0x27fd70[_0xb02b(0x2ac)]);});});}),_0x338cf6['forEach'](_0xe420e1=>{_0xe420e1['ranges']['forEach'](_0x241bec=>{const _0x1e110a=_0x3e21;_univerjs_core[_0x1e110a(0x1c6)][_0x1e110a(0x301)](_0x241bec,(_0x2cdf83,_0x18dd65)=>{const _0xc0a362=_0x1e110a;_0x5acd12['setValue'](_0x2cdf83,_0x18dd65,_0xe420e1[_0xc0a362(0x2ac)]);});});});const _0x3a32b3=[];return _0x364b03[_0x10153b(0x222)](_0x54287e=>{const _0x40433c=_0x10153b,_0x29050b=(0x0,_univerjs_core['queryObjectMatrix'])(_0x5acd12,_0x1e1ec6=>_0x1e1ec6===_0x54287e[_0x40433c(0x2ac)]);if(!_0x29050b[_0x40433c(0x367)]){const _0x2dbfc3={'ruleId':_0x54287e[_0x40433c(0x2ac)],'unitId':_0x587169,'subUnitId':_0x109965};_0x3a32b3[_0x40433c(0x285)]({'id':_univerjs_data_validation['RemoveDataValidationMutation']['id'],'params':_0x2dbfc3});}else{if(!(0x0,_univerjs_core[_0x40433c(0x3ad)])(_0x29050b,_0x54287e[_0x40433c(0x3e4)])){const _0x6c86cd={'ruleId':_0x54287e[_0x40433c(0x2ac)],'unitId':_0x587169,'subUnitId':_0x109965,'payload':{'type':_univerjs_data_validation[_0x40433c(0x27d)][_0x40433c(0x40f)],'payload':_0x29050b}};_0x3a32b3[_0x40433c(0x285)]({'id':_univerjs_data_validation['UpdateDataValidationMutation']['id'],'params':_0x6c86cd});}}}),_0x3a32b3;}function mergeAddMutation(_0x41bd06,_0x1a79a8){const _0x7da0a3=_0x4fd226,_0x39d468=_univerjs_core[_0x7da0a3(0x1d5)][_0x7da0a3(0x28e)](Array['isArray'](_0x41bd06[_0x7da0a3(0x235)][_0x7da0a3(0x351)])?_0x41bd06[_0x7da0a3(0x235)][_0x7da0a3(0x351)]:[_0x41bd06[_0x7da0a3(0x235)]['rule']]);return _0x1a79a8[_0x7da0a3(0x222)](_0x57242c=>{const _0x3176f7=_0x7da0a3;if(_0x57242c['id']===_univerjs_data_validation[_0x3176f7(0x1d4)]['id']){const _0x4c8642=_0x57242c,_0x25202b=_0x39d468['find'](_0x3188f5=>_0x3188f5['uid']===_0x4c8642['params'][_0x3176f7(0x32c)]);_0x25202b[_0x3176f7(0x3e4)]=_0x4c8642[_0x3176f7(0x235)][_0x3176f7(0x2c5)][_0x3176f7(0x2c5)];}else{if(_0x57242c['id']===_univerjs_data_validation[_0x3176f7(0x2a3)]['id']){const _0x2ac6fe=_0x39d468[_0x3176f7(0x37e)](_0x4ae343=>_0x4ae343[_0x3176f7(0x2ac)]===_0x57242c[_0x3176f7(0x235)][_0x3176f7(0x32c)]);_0x39d468[_0x2ac6fe]=null;}}}),_0x39d468[_0x7da0a3(0x2ec)](Boolean)[_0x7da0a3(0x367)]?[{..._0x41bd06,'params':{..._0x41bd06['params'],'rule':_0x39d468['filter'](Boolean)}}]:[];}const addDataValidationMutationWithSelf={'m1':_univerjs_data_validation[_0x4fd226(0x2b6)]['id'],'m2':_univerjs_data_validation[_0x4fd226(0x2b6)]['id'],'handler':(_0x3416ce,_0x114410)=>{const _0x338c4e=_0x4fd226,_0x4be8c3={'m1Prime':_0x3416ce,'m2Prime':_0x114410},_0x538116=_0x3416ce[_0x338c4e(0x235)],_0x176f78=_0x114410[_0x338c4e(0x235)];if(_0x538116['unitId']!==_0x176f78[_0x338c4e(0x3cc)]||_0x538116['subUnitId']!==_0x176f78[_0x338c4e(0x303)])return _0x4be8c3;const _0x4d15d5=_univerjs_core[_0x338c4e(0x1d5)][_0x338c4e(0x28e)](_0x3416ce),_0x30e86a=_univerjs_core['Tools'][_0x338c4e(0x28e)](_0x114410),_0x248b8d=_0x538116['unitId'],_0x373117=_0x176f78[_0x338c4e(0x303)],_0x4d4608=_0x4d15d5[_0x338c4e(0x235)][_0x338c4e(0x351)],_0x4ed4f3=_0x30e86a['params'][_0x338c4e(0x351)];if(Array[_0x338c4e(0x3ca)](_0x4d4608)&&Array[_0x338c4e(0x3ca)](_0x4ed4f3))return{'m1Prime':[],'m2Prime':[]};if(Array[_0x338c4e(0x3ca)](_0x4d4608)){_0x4d15d5['params'][_0x338c4e(0x210)]=0x0;const _0x5cc68b=applyAddMutationTransform(_0x248b8d,_0x373117,_0x4d4608,[_0x4ed4f3]);return{'m1Prime':mergeAddMutation(_0x4d15d5,_0x5cc68b),'m2Prime':[..._0x5cc68b,_0x30e86a]};}if(Array[_0x338c4e(0x3ca)](_0x4ed4f3)){const _0x176e06=applyAddMutationTransform(_0x248b8d,_0x373117,_0x4ed4f3,[_0x4d4608]);return _0x30e86a['params'][_0x338c4e(0x210)]=0x0,{'m1Prime':mergeAddMutation(_0x4d15d5,_0x176e06),'m2Prime':[..._0x176e06,_0x30e86a]};}const _0x4f7b9e=applyAddMutationTransform(_0x248b8d,_0x373117,[_0x4d4608],[_0x4ed4f3]);return _0x30e86a[_0x338c4e(0x235)][_0x338c4e(0x210)]=-0x1,{'m1Prime':mergeAddMutation(_0x4d15d5,_0x4f7b9e),'m2Prime':[..._0x4f7b9e,_0x30e86a]};}},addDataValidationMutationWithUpdate={'m1':_univerjs_data_validation[_0x4fd226(0x2b6)]['id'],'m2':_univerjs_data_validation[_0x4fd226(0x1d4)]['id'],'handler':(_0x2ce2ce,_0x588c12)=>{const _0x19b8c1=_0x4fd226,_0x474d67={'m1Prime':_0x2ce2ce,'m2Prime':_0x588c12},_0x85a18b=_0x2ce2ce[_0x19b8c1(0x235)],_0x319228=_0x588c12['params'];if(_0x85a18b['unitId']!==_0x319228[_0x19b8c1(0x3cc)]||_0x85a18b[_0x19b8c1(0x303)]!==_0x319228[_0x19b8c1(0x303)])return _0x474d67;if(_0x588c12['params'][_0x19b8c1(0x2c5)][_0x19b8c1(0x22b)]===_univerjs_data_validation[_0x19b8c1(0x27d)][_0x19b8c1(0x40f)]){const {unitId:_0x595df4,subUnitId:_0x3475be}=_0x2ce2ce[_0x19b8c1(0x235)],_0x48b172=Array[_0x19b8c1(0x3ca)](_0x2ce2ce[_0x19b8c1(0x235)][_0x19b8c1(0x351)])?_0x2ce2ce[_0x19b8c1(0x235)][_0x19b8c1(0x351)]:[_0x2ce2ce['params']['rule']],_0x27e7c9=[],_0x176086=new _univerjs_core[(_0x19b8c1(0x2ed))]();return _0x48b172['forEach'](_0x90db6d=>{const _0x426887=_0x19b8c1;_0x90db6d[_0x426887(0x3e4)][_0x426887(0x222)](_0x10ccfb=>{const _0x216908=_0x426887;_univerjs_core['Range'][_0x216908(0x301)](_0x10ccfb,(_0x11523a,_0x440861)=>{const _0x3f88b3=_0x216908;_0x176086[_0x3f88b3(0x408)](_0x11523a,_0x440861,_0x90db6d[_0x3f88b3(0x2ac)]);});});}),_0x588c12[_0x19b8c1(0x235)]['payload'][_0x19b8c1(0x2c5)]['forEach'](_0x2a5475=>{const _0x5d6cd3=_0x19b8c1;_univerjs_core['Range'][_0x5d6cd3(0x301)](_0x2a5475,(_0x3924e7,_0x2f1cfa)=>{const _0x3db8f9=_0x5d6cd3;_0x176086[_0x3db8f9(0x408)](_0x3924e7,_0x2f1cfa,_0x588c12[_0x3db8f9(0x235)][_0x3db8f9(0x32c)]);});}),_0x48b172[_0x19b8c1(0x222)](_0x2c9aa3=>{const _0x421213=_0x19b8c1,_0x5a1486=(0x0,_univerjs_core['queryObjectMatrix'])(_0x176086,_0x2b4743=>_0x2b4743===_0x2c9aa3[_0x421213(0x2ac)]);if(!(0x0,_univerjs_core['isRangesEqual'])(_0x5a1486,_0x2c9aa3[_0x421213(0x3e4)])){if(_0x5a1486[_0x421213(0x367)])_0x27e7c9[_0x421213(0x285)]({'id':_univerjs_data_validation[_0x421213(0x1d4)]['id'],'params':{'unitId':_0x595df4,'subUnitId':_0x3475be,'ruleId':_0x2c9aa3['uid'],'payload':{'type':_univerjs_data_validation['UpdateRuleType']['RANGE'],'payload':_0x5a1486}}});else _0x27e7c9[_0x421213(0x285)]({'id':_univerjs_data_validation[_0x421213(0x2a3)]['id'],'params':{'unitId':_0x595df4,'subUnitId':_0x3475be,'ruleId':_0x2c9aa3[_0x421213(0x2ac)]}});}}),{'m1Prime':mergeAddMutation(_0x2ce2ce,_0x27e7c9),'m2Prime':[..._0x27e7c9,_0x588c12]};}return _0x474d67;}},addHyperLinkWithSelf={'m1':_univerjs_sheets_hyper_link['AddHyperLinkMutation']['id'],'m2':_univerjs_sheets_hyper_link['AddHyperLinkMutation']['id'],'handler':(_0x22541a,_0x33c398)=>{const _0x4ccca6=_0x4fd226,_0x37adaa=_0x22541a[_0x4ccca6(0x235)],_0x18405c=_0x33c398['params'];if(_0x37adaa[_0x4ccca6(0x3cc)]===_0x18405c[_0x4ccca6(0x3cc)]&&_0x37adaa[_0x4ccca6(0x303)]===_0x18405c[_0x4ccca6(0x303)]&&_0x37adaa['link']['row']===_0x18405c[_0x4ccca6(0x3d3)][_0x4ccca6(0x1c4)]&&_0x37adaa[_0x4ccca6(0x3d3)][_0x4ccca6(0x35f)]===_0x18405c[_0x4ccca6(0x3d3)][_0x4ccca6(0x35f)])return{'m2Prime':_0x33c398,'m1Prime':[]};return{'m1Prime':_0x22541a,'m2Prime':_0x33c398};}},addRangeProtectionWithAddComment={'m1':_univerjs_sheets[_0x4fd226(0x207)]['id'],'m2':_univerjs_thread_comment[_0x4fd226(0x2de)]['id'],'handler':(_0x5d595a,_0x4180f4)=>{const _0x3a57e1=_0x4fd226,_0x17cdae={'m1Prime':_0x5d595a,'m2Prime':_0x4180f4};if(_0x5d595a['params']['unitId']!==_0x4180f4['params']['unitId']||_0x5d595a[_0x3a57e1(0x235)][_0x3a57e1(0x303)]!==_0x4180f4['params'][_0x3a57e1(0x303)])return _0x17cdae;return{'error':new Error('add\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20comment')};}},addRangeProtectionWithAddConditionRule={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets_conditional_formatting['AddConditionalRuleMutation']['id'],'handler':(_0x5116aa,_0x594863)=>{const _0x268ab0=_0x4fd226,_0x449f54={'m1Prime':_0x5116aa,'m2Prime':_0x594863};if(_0x5116aa[_0x268ab0(0x235)][_0x268ab0(0x3cc)]!==_0x594863['params'][_0x268ab0(0x3cc)]||_0x5116aa[_0x268ab0(0x235)][_0x268ab0(0x303)]!==_0x594863[_0x268ab0(0x235)][_0x268ab0(0x303)])return _0x449f54;const _0x4287f7=_0x5116aa[_0x268ab0(0x235)][_0x268ab0(0x3f0)][_0x268ab0(0x208)](_0x153b8d=>_0x153b8d[_0x268ab0(0x3e4)])[_0x268ab0(0x2e8)](),_0x440ee3=_0x594863[_0x268ab0(0x235)][_0x268ab0(0x351)][_0x268ab0(0x3e4)];if(_0x4287f7[_0x268ab0(0x1c0)](_0x560777=>_0x440ee3[_0x268ab0(0x1c0)](_0x51e984=>_univerjs_core['Rectangle']['intersects'](_0x560777,_0x51e984))))return{'error':new Error(_0x268ab0(0x260))};return _0x449f54;}},addRangeProtectionWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x207)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x207)]['id'],'handler':(_0x595f40,_0x1665c8)=>{const _0x243f25=_0x4fd226,_0x20b3ff={'m1Prime':_0x595f40,'m2Prime':_0x1665c8};if(_0x595f40[_0x243f25(0x235)][_0x243f25(0x3cc)]!==_0x1665c8[_0x243f25(0x235)][_0x243f25(0x3cc)]||_0x595f40[_0x243f25(0x235)][_0x243f25(0x303)]!==_0x1665c8[_0x243f25(0x235)]['subUnitId'])return _0x20b3ff;const _0x56ca9a=_0x595f40[_0x243f25(0x235)][_0x243f25(0x3f0)]['map'](_0x5752c0=>_0x5752c0[_0x243f25(0x3e4)])[_0x243f25(0x2e8)](),_0x146fda=_0x1665c8[_0x243f25(0x235)][_0x243f25(0x3f0)]['map'](_0x436065=>_0x436065[_0x243f25(0x3e4)])['flat']();if(_0x56ca9a['some'](_0x3020f1=>_0x146fda[_0x243f25(0x1c0)](_0x4c051b=>_univerjs_core[_0x243f25(0x394)][_0x243f25(0x2da)](_0x3020f1,_0x4c051b))))return{'error':new Error(_0x243f25(0x3da))};return _0x20b3ff;}},addRangeProtectionWithAddWorksheetMerge={'m1':_univerjs_sheets[_0x4fd226(0x207)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x340)]['id'],'handler':(_0x1733ff,_0xb545d8)=>{const _0x4e5353=_0x4fd226,_0x52c5d7={'m1Prime':_0x1733ff,'m2Prime':_0xb545d8};if(_0x1733ff['params'][_0x4e5353(0x3cc)]!==_0xb545d8[_0x4e5353(0x235)][_0x4e5353(0x3cc)]||_0x1733ff[_0x4e5353(0x235)][_0x4e5353(0x303)]!==_0xb545d8[_0x4e5353(0x235)]['subUnitId'])return _0x52c5d7;const _0xbcd89=_0x1733ff['params']['rules'][_0x4e5353(0x208)](_0x122f67=>_0x122f67['ranges'])[_0x4e5353(0x2e8)](),_0x4b8b72=_0xb545d8[_0x4e5353(0x235)]['ranges'];if(_0xbcd89['some'](_0x3c3373=>_0x4b8b72[_0x4e5353(0x1c0)](_0x25c0e4=>_univerjs_core[_0x4e5353(0x394)]['intersects'](_0x3c3373,_0x25c0e4))))return{'error':new Error(_0x4e5353(0x225))};return _0x52c5d7;}},addRangeProtectionWithAddWorksheetProtection={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x406)]['id'],'handler':(_0x442a5c,_0x3cd478)=>{const _0x3ac0a9=_0x4fd226,_0xe4edd2={'m1Prime':_0x442a5c,'m2Prime':_0x3cd478};if(_0x442a5c[_0x3ac0a9(0x235)][_0x3ac0a9(0x3cc)]!==_0x3cd478[_0x3ac0a9(0x235)][_0x3ac0a9(0x3cc)]||_0x442a5c[_0x3ac0a9(0x235)][_0x3ac0a9(0x303)]!==_0x3cd478[_0x3ac0a9(0x235)]['rule'][_0x3ac0a9(0x303)])return _0xe4edd2;return{'error':new Error(_0x3ac0a9(0x331))};}},addRangeProtectionWithDeleteConditionFormattingRule={'m1':_univerjs_sheets[_0x4fd226(0x207)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0x4fd226(0x371)]['id'],'handler':(_0xe56ba9,_0x30f36d)=>{const _0x3a23cb=_0x4fd226,_0x31cc10={'m1Prime':_0xe56ba9,'m2Prime':_0x30f36d};if(_0xe56ba9[_0x3a23cb(0x235)]['unitId']!==_0x30f36d[_0x3a23cb(0x235)][_0x3a23cb(0x3cc)]||_0xe56ba9['params'][_0x3a23cb(0x303)]!==_0x30f36d[_0x3a23cb(0x235)][_0x3a23cb(0x303)])return _0x31cc10;return{'error':new Error(_0x3a23cb(0x30b))};}},addRangeProtectionWithInsertCol={'m1':_univerjs_sheets[_0x4fd226(0x207)]['id'],'m2':_univerjs_sheets['InsertColMutation']['id'],'handler':(_0x51640f,_0x5f1384)=>{const _0x557eae=_0x4fd226,_0x234187={'m1Prime':_0x51640f,'m2Prime':_0x5f1384};if(_0x51640f[_0x557eae(0x235)]['unitId']!==_0x5f1384[_0x557eae(0x235)][_0x557eae(0x3cc)]||_0x51640f[_0x557eae(0x235)][_0x557eae(0x303)]!==_0x5f1384[_0x557eae(0x235)]['subUnitId'])return _0x234187;const _0x5993c3=_0x51640f[_0x557eae(0x235)][_0x557eae(0x3f0)][_0x557eae(0x208)](_0x158647=>_0x158647[_0x557eae(0x3e4)])[_0x557eae(0x2e8)](),_0x244c43=_0x5f1384['params']['range'];if(_0x5993c3[_0x557eae(0x1c0)](_0x28153f=>_univerjs_core[_0x557eae(0x394)][_0x557eae(0x2da)](_0x28153f,_0x244c43)))return{'error':new Error('add\x20range\x20protection\x20is\x20conflict\x20with\x20insert\x20col')};return _0x234187;}},addRangeProtectionWithInsertRow={'m1':_univerjs_sheets[_0x4fd226(0x207)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'handler':(_0x47c922,_0x311785)=>{const _0x59567e=_0x4fd226,_0x3fb695={'m1Prime':_0x47c922,'m2Prime':_0x311785};if(_0x47c922['params']['unitId']!==_0x311785[_0x59567e(0x235)][_0x59567e(0x3cc)]||_0x47c922[_0x59567e(0x235)]['subUnitId']!==_0x311785['params'][_0x59567e(0x303)])return _0x3fb695;const _0x43def3=_0x47c922[_0x59567e(0x235)][_0x59567e(0x3f0)]['map'](_0x53de41=>_0x53de41['ranges'])['flat'](),_0x546f79=_0x311785[_0x59567e(0x235)][_0x59567e(0x2d0)];if(_0x43def3[_0x59567e(0x1c0)](_0x22e1d3=>_univerjs_core[_0x59567e(0x394)][_0x59567e(0x2da)](_0x22e1d3,_0x546f79)))return{'error':new Error(_0x59567e(0x27c))};return _0x3fb695;}},addRangeProtectionWithMoveCol={'m1':_univerjs_sheets[_0x4fd226(0x207)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x2b3)]['id'],'handler':(_0xf9cad8,_0x4387bd)=>{const _0x5df29e=_0x4fd226,_0x3616d4={'m1Prime':_0xf9cad8,'m2Prime':_0x4387bd};if(_0xf9cad8['params']['unitId']!==_0x4387bd[_0x5df29e(0x235)][_0x5df29e(0x3cc)]||_0xf9cad8['params'][_0x5df29e(0x303)]!==_0x4387bd[_0x5df29e(0x235)][_0x5df29e(0x303)])return _0x3616d4;const _0xd0c962=_0xf9cad8[_0x5df29e(0x235)][_0x5df29e(0x3f0)][_0x5df29e(0x208)](_0x1ed40d=>_0x1ed40d[_0x5df29e(0x3e4)])[_0x5df29e(0x2e8)](),_0x28195d=[_0x4387bd[_0x5df29e(0x235)][_0x5df29e(0x200)],_0x4387bd[_0x5df29e(0x235)][_0x5df29e(0x26c)]];if(_0xd0c962[_0x5df29e(0x1c0)](_0x263347=>_0x28195d[_0x5df29e(0x1c0)](_0x3797f9=>_univerjs_core['Rectangle'][_0x5df29e(0x2da)](_0x263347,_0x3797f9))))return{'error':new Error(_0x5df29e(0x217))};return _0x3616d4;}},addRangeProtectionWithMoveRange={'m1':_univerjs_sheets[_0x4fd226(0x207)]['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler':(_0x52cf5b,_0x58b85f)=>{const _0x40f7d4=_0x4fd226,_0x2b323d={'m1Prime':_0x52cf5b,'m2Prime':_0x58b85f};if(_0x52cf5b[_0x40f7d4(0x235)][_0x40f7d4(0x3cc)]!==_0x58b85f['params'][_0x40f7d4(0x3cc)]||_0x52cf5b[_0x40f7d4(0x235)][_0x40f7d4(0x303)]!==_0x58b85f[_0x40f7d4(0x235)]['from'][_0x40f7d4(0x303)])return _0x2b323d;const _0x1ebe4c=_0x52cf5b[_0x40f7d4(0x235)][_0x40f7d4(0x3f0)][_0x40f7d4(0x208)](_0x48c572=>_0x48c572[_0x40f7d4(0x3e4)])[_0x40f7d4(0x2e8)](),_0x588a26=[new _univerjs_core[(_0x40f7d4(0x2ed))](_0x58b85f[_0x40f7d4(0x235)]['from'][_0x40f7d4(0x355)])['getDataRange'](),new _univerjs_core[(_0x40f7d4(0x2ed))](_0x58b85f['params']['to'][_0x40f7d4(0x355)])[_0x40f7d4(0x277)]()];if(_0x1ebe4c[_0x40f7d4(0x1c0)](_0x5cfe8f=>_0x588a26[_0x40f7d4(0x1c0)](_0x1da9a2=>_univerjs_core[_0x40f7d4(0x394)]['intersects'](_0x5cfe8f,_0x1da9a2))))return{'error':new Error('add\x20range\x20protection\x20is\x20conflict\x20with\x20move\x20range')};return _0x2b323d;}},addRangeProtectionWithMoveRow={'m1':_univerjs_sheets[_0x4fd226(0x207)]['id'],'m2':_univerjs_sheets['MoveRowsMutation']['id'],'handler':(_0xe72b6d,_0x13eba2)=>{const _0x54539f=_0x4fd226,_0x4d7276={'m1Prime':_0xe72b6d,'m2Prime':_0x13eba2};if(_0xe72b6d[_0x54539f(0x235)][_0x54539f(0x3cc)]!==_0x13eba2[_0x54539f(0x235)][_0x54539f(0x3cc)]||_0xe72b6d['params'][_0x54539f(0x303)]!==_0x13eba2['params'][_0x54539f(0x303)])return _0x4d7276;const _0x51cc97=_0xe72b6d[_0x54539f(0x235)][_0x54539f(0x3f0)][_0x54539f(0x208)](_0x1858bb=>_0x1858bb[_0x54539f(0x3e4)])[_0x54539f(0x2e8)](),_0xe95991=[_0x13eba2[_0x54539f(0x235)][_0x54539f(0x200)],_0x13eba2[_0x54539f(0x235)][_0x54539f(0x26c)]];if(_0x51cc97[_0x54539f(0x1c0)](_0x38fa65=>_0xe95991[_0x54539f(0x1c0)](_0x5777dc=>_univerjs_core[_0x54539f(0x394)][_0x54539f(0x2da)](_0x38fa65,_0x5777dc))))return{'error':new Error(_0x54539f(0x3dd))};return _0x4d7276;}},addRangeProtectionWithRemoveCol={'m1':_univerjs_sheets[_0x4fd226(0x207)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x228)]['id'],'handler':(_0x19bd9e,_0x589283)=>{const _0xa5979f=_0x4fd226,_0x2e4ae0={'m1Prime':_0x19bd9e,'m2Prime':_0x589283};if(_0x19bd9e[_0xa5979f(0x235)]['unitId']!==_0x589283[_0xa5979f(0x235)]['unitId']||_0x19bd9e['params']['subUnitId']!==_0x589283[_0xa5979f(0x235)][_0xa5979f(0x303)])return _0x2e4ae0;const _0x4f4038=_0x19bd9e[_0xa5979f(0x235)][_0xa5979f(0x3f0)][_0xa5979f(0x208)](_0x44cf39=>_0x44cf39[_0xa5979f(0x3e4)])[_0xa5979f(0x2e8)](),_0x58721b=_0x589283[_0xa5979f(0x235)][_0xa5979f(0x2d0)];if(_0x4f4038[_0xa5979f(0x1c0)](_0x4f9c30=>_univerjs_core['Rectangle'][_0xa5979f(0x2da)](_0x4f9c30,_0x58721b)))return{'error':new Error(_0xa5979f(0x31e))};return _0x2e4ae0;}},addRangeProtectionWithRemoveDataValidation={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_data_validation[_0x4fd226(0x2a3)]['id'],'handler':(_0x11d5d0,_0x5d477)=>{const _0x16271a=_0x4fd226,_0x3a277a={'m1Prime':_0x11d5d0,'m2Prime':_0x5d477};if(_0x11d5d0['params'][_0x16271a(0x3cc)]!==_0x5d477[_0x16271a(0x235)][_0x16271a(0x3cc)]||_0x11d5d0[_0x16271a(0x235)]['subUnitId']!==_0x5d477[_0x16271a(0x235)][_0x16271a(0x303)])return _0x3a277a;return{'error':new Error('add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20data\x20validation\x20rule')};}},addRangeProtectionWithRemoveNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x207)]['id'],'m2':_univerjs_sheets['RemoveNumfmtMutation']['id'],'handler':(_0x471e91,_0x40fbbe)=>{const _0x1cbd65=_0x4fd226,_0x5f0f67={'m1Prime':_0x471e91,'m2Prime':_0x40fbbe};if(_0x471e91['params'][_0x1cbd65(0x3cc)]!==_0x40fbbe[_0x1cbd65(0x235)][_0x1cbd65(0x3cc)]||_0x471e91[_0x1cbd65(0x235)][_0x1cbd65(0x303)]!==_0x40fbbe['params'][_0x1cbd65(0x303)])return _0x5f0f67;const _0x4e036c=_0x471e91[_0x1cbd65(0x235)][_0x1cbd65(0x3f0)][_0x1cbd65(0x208)](_0x3a5dd5=>_0x3a5dd5[_0x1cbd65(0x3e4)])[_0x1cbd65(0x2e8)](),_0x4cf750=_0x40fbbe[_0x1cbd65(0x235)][_0x1cbd65(0x3e4)];if(_0x4e036c['some'](_0x5a7804=>_0x4cf750[_0x1cbd65(0x1c0)](_0x200b02=>_univerjs_core['Rectangle'][_0x1cbd65(0x2da)](_0x5a7804,_0x200b02))))return{'error':new Error(_0x1cbd65(0x2f3))};return _0x5f0f67;}},addRangeProtectionWithRemoveFilter={'m1':_univerjs_sheets[_0x4fd226(0x207)]['id'],'m2':_univerjs_sheets_filter[_0x4fd226(0x290)]['id'],'handler':(_0x43ce20,_0x373a7c)=>{const _0x65244a=_0x4fd226,_0x5767cf={'m1Prime':_0x43ce20,'m2Prime':_0x373a7c};if(_0x43ce20['params'][_0x65244a(0x3cc)]!==_0x373a7c[_0x65244a(0x235)][_0x65244a(0x3cc)]||_0x43ce20[_0x65244a(0x235)][_0x65244a(0x303)]!==_0x373a7c[_0x65244a(0x235)][_0x65244a(0x303)])return _0x5767cf;return{'error':new Error('add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20filter')};}},addRangeProtectionWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0x4fd226(0x207)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3ff)]['id'],'handler':(_0x14cb83,_0x564904)=>{const _0x454e79=_0x4fd226,_0x1a2971={'m1Prime':_0x14cb83,'m2Prime':_0x564904};if(_0x14cb83[_0x454e79(0x235)][_0x454e79(0x3cc)]!==_0x564904[_0x454e79(0x235)][_0x454e79(0x3cc)]||_0x14cb83[_0x454e79(0x235)]['subUnitId']!==_0x564904[_0x454e79(0x235)]['subUnitId'])return _0x1a2971;const _0x171b1e=_0x14cb83[_0x454e79(0x235)]['rules']['map'](_0x34668d=>_0x34668d[_0x454e79(0x3e4)])[_0x454e79(0x2e8)](),_0x493ab3=_0x564904[_0x454e79(0x235)][_0x454e79(0x3e4)];if(_0x171b1e[_0x454e79(0x1c0)](_0xf24a31=>_0x493ab3['some'](_0xb09547=>_univerjs_core[_0x454e79(0x394)][_0x454e79(0x2da)](_0xf24a31,_0xb09547))))return{'error':new Error('add\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20worksheet\x20merge')};return _0x1a2971;}},addRangeProtectionWithSetConditionalFormattingRule={'m1':_univerjs_sheets[_0x4fd226(0x207)]['id'],'m2':_univerjs_sheets_conditional_formatting['SetConditionalRuleMutation']['id'],'handler':(_0x4830fd,_0x4ecb46)=>{const _0x5d3b25=_0x4fd226,_0x984e3e={'m1Prime':_0x4830fd,'m2Prime':_0x4ecb46};if(_0x4830fd[_0x5d3b25(0x235)][_0x5d3b25(0x3cc)]!==_0x4ecb46[_0x5d3b25(0x235)][_0x5d3b25(0x3cc)]||_0x4830fd[_0x5d3b25(0x235)]['subUnitId']!==_0x4ecb46[_0x5d3b25(0x235)][_0x5d3b25(0x303)])return _0x984e3e;const _0x5521c3=_0x4830fd[_0x5d3b25(0x235)]['rules'][_0x5d3b25(0x208)](_0x3b1ea2=>_0x3b1ea2[_0x5d3b25(0x3e4)])['flat'](),_0x459dbf=_0x4ecb46['params'][_0x5d3b25(0x351)][_0x5d3b25(0x3e4)];if(_0x5521c3[_0x5d3b25(0x1c0)](_0x34b011=>_0x459dbf[_0x5d3b25(0x1c0)](_0x4cde60=>_univerjs_core[_0x5d3b25(0x394)][_0x5d3b25(0x2da)](_0x34b011,_0x4cde60))))return{'error':new Error(_0x5d3b25(0x35b))};return _0x984e3e;}},addRangeProtectionWithSetFrozen={'m1':_univerjs_sheets[_0x4fd226(0x207)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x1d3)]['id'],'handler':(_0x31fe93,_0x5b4172)=>{const _0x4260cd=_0x4fd226,_0x5c445e={'m1Prime':_0x31fe93,'m2Prime':_0x5b4172};if(_0x31fe93[_0x4260cd(0x235)][_0x4260cd(0x3cc)]!==_0x5b4172[_0x4260cd(0x235)][_0x4260cd(0x3cc)]||_0x31fe93['params'][_0x4260cd(0x303)]!==_0x5b4172['params'][_0x4260cd(0x303)])return _0x5c445e;const _0x428bdd=_0x31fe93[_0x4260cd(0x235)][_0x4260cd(0x3f0)]['map'](_0x389336=>_0x389336[_0x4260cd(0x3e4)])[_0x4260cd(0x2e8)](),_0x187769=[{'startRow':_0x5b4172[_0x4260cd(0x235)][_0x4260cd(0x26f)],'endRow':_0x5b4172[_0x4260cd(0x235)][_0x4260cd(0x26f)],'startColumn':_0x5b4172[_0x4260cd(0x235)][_0x4260cd(0x28f)],'endColumn':_0x5b4172[_0x4260cd(0x235)][_0x4260cd(0x28f)]}];if(_0x428bdd[_0x4260cd(0x1c0)](_0x4a1ffa=>_0x187769['some'](_0xddfb6=>_univerjs_core[_0x4260cd(0x394)][_0x4260cd(0x2da)](_0x4a1ffa,_0xddfb6))))return{'error':new Error(_0x4260cd(0x38c))};return _0x5c445e;}},addRangeProtectionWithSetNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x207)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3f8)]['id'],'handler':(_0x5d6a1a,_0x4e1712)=>{const _0x4163db=_0x4fd226,_0x78c803={'m1Prime':_0x5d6a1a,'m2Prime':_0x4e1712};if(_0x5d6a1a[_0x4163db(0x235)][_0x4163db(0x3cc)]!==_0x4e1712['params'][_0x4163db(0x3cc)]||_0x5d6a1a['params'][_0x4163db(0x303)]!==_0x4e1712['params'][_0x4163db(0x303)])return _0x78c803;return{'error':new Error(_0x4163db(0x3cb))};}},addRangeProtectionWithSetRangeProtection={'m1':_univerjs_sheets[_0x4fd226(0x207)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'handler':(_0x2f18e4,_0x415638)=>{const _0x25a087=_0x4fd226,_0x2d27b0={'m1Prime':_0x2f18e4,'m2Prime':_0x415638};if(_0x2f18e4[_0x25a087(0x235)][_0x25a087(0x3cc)]!==_0x415638[_0x25a087(0x235)][_0x25a087(0x3cc)]||_0x2f18e4[_0x25a087(0x235)]['subUnitId']!==_0x415638['params'][_0x25a087(0x303)])return _0x2d27b0;const _0x2fe53d=_0x2f18e4[_0x25a087(0x235)][_0x25a087(0x3f0)][_0x25a087(0x208)](_0x234e60=>_0x234e60[_0x25a087(0x3e4)])[_0x25a087(0x2e8)](),_0x1e7514=_0x415638[_0x25a087(0x235)][_0x25a087(0x351)][_0x25a087(0x3e4)];if(_0x2fe53d['some'](_0x108579=>_0x1e7514[_0x25a087(0x1c0)](_0x5d2ed6=>_univerjs_core['Rectangle'][_0x25a087(0x2da)](_0x108579,_0x5d2ed6))))return{'error':new Error(_0x25a087(0x286))};return _0x2d27b0;}},addRangeProtectionWithSetRangeValue={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x35c)]['id'],'handler':(_0x30dd8c,_0x48c8ae)=>{const _0x2e9ba8=_0x4fd226,_0x393315={'m1Prime':_0x30dd8c,'m2Prime':_0x48c8ae};if(_0x30dd8c['params'][_0x2e9ba8(0x3cc)]!==_0x48c8ae[_0x2e9ba8(0x235)]['unitId']||_0x30dd8c['params'][_0x2e9ba8(0x303)]!==_0x48c8ae[_0x2e9ba8(0x235)]['subUnitId'])return _0x393315;const _0x242090=_0x30dd8c[_0x2e9ba8(0x235)][_0x2e9ba8(0x3f0)][_0x2e9ba8(0x208)](_0x2f9c2f=>_0x2f9c2f[_0x2e9ba8(0x3e4)])[_0x2e9ba8(0x2e8)](),_0x15e7fe=new _univerjs_core[(_0x2e9ba8(0x2ed))](_0x48c8ae[_0x2e9ba8(0x235)][_0x2e9ba8(0x2f8)])[_0x2e9ba8(0x277)]();if(_0x242090[_0x2e9ba8(0x1c0)](_0x6f2248=>_univerjs_core[_0x2e9ba8(0x394)][_0x2e9ba8(0x2da)](_0x6f2248,_0x15e7fe)))return{'error':new Error(_0x2e9ba8(0x2c1))};return _0x393315;}},addRangeProtectionWithSetWorksheetColWidth={'m1':_univerjs_sheets[_0x4fd226(0x207)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x24c)]['id'],'handler':(_0x50b9b2,_0x7f7242)=>{const _0x216f69=_0x4fd226,_0x5c99a0={'m1Prime':_0x50b9b2,'m2Prime':_0x7f7242};if(_0x50b9b2[_0x216f69(0x235)][_0x216f69(0x3cc)]!==_0x7f7242['params']['unitId']||_0x50b9b2[_0x216f69(0x235)][_0x216f69(0x303)]!==_0x7f7242[_0x216f69(0x235)][_0x216f69(0x303)])return _0x5c99a0;const _0x145067=_0x50b9b2[_0x216f69(0x235)][_0x216f69(0x3f0)]['map'](_0x4e81d7=>_0x4e81d7['ranges'])[_0x216f69(0x2e8)](),_0x1690a6=_0x7f7242[_0x216f69(0x235)]['ranges'];if(_0x145067[_0x216f69(0x1c0)](_0x4fdbad=>_0x1690a6[_0x216f69(0x1c0)](_0x4404e4=>_univerjs_core['Rectangle'][_0x216f69(0x2da)](_0x4fdbad,_0x4404e4))))return{'error':new Error(_0x216f69(0x269))};return _0x5c99a0;}},addRangeProtectionWithUpdateComment={'m1':_univerjs_sheets[_0x4fd226(0x207)]['id'],'m2':_univerjs_thread_comment[_0x4fd226(0x39d)]['id'],'handler':(_0x297c23,_0x1aff3b)=>{const _0x84ea29=_0x4fd226,_0x54f0e9={'m1Prime':_0x297c23,'m2Prime':_0x1aff3b};if(_0x297c23[_0x84ea29(0x235)]['unitId']!==_0x1aff3b[_0x84ea29(0x235)][_0x84ea29(0x3cc)]||_0x297c23[_0x84ea29(0x235)][_0x84ea29(0x303)]!==_0x1aff3b[_0x84ea29(0x235)][_0x84ea29(0x303)])return _0x54f0e9;return{'error':new Error(_0x84ea29(0x33b))};}},addRangeProtectionWithUpdateDataValidation={'m1':_univerjs_sheets['AddRangeProtectionMutation']['id'],'m2':_univerjs_data_validation[_0x4fd226(0x1d4)]['id'],'handler':(_0x177542,_0xed7b49)=>{const _0x18b7f1=_0x4fd226,_0x28c715={'m1Prime':_0x177542,'m2Prime':_0xed7b49};if(_0x177542[_0x18b7f1(0x235)]['unitId']!==_0xed7b49[_0x18b7f1(0x235)][_0x18b7f1(0x3cc)]||_0x177542['params'][_0x18b7f1(0x303)]!==_0xed7b49[_0x18b7f1(0x235)][_0x18b7f1(0x303)])return _0x28c715;return{'error':new Error(_0x18b7f1(0x36a))};}},addWorksheetMergeMutationWithSelf={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x340)]['id'],'handler'(_0x416e4f,_0x7595bc){const _0x1692e2=_0x4fd226,_0x45b02e=_univerjs_core[_0x1692e2(0x1d5)]['deepClone'](_0x416e4f),_0x5f4544=_univerjs_core[_0x1692e2(0x1d5)]['deepClone'](_0x7595bc);if(_0x416e4f['params'][_0x1692e2(0x3cc)]!==_0x7595bc['params']['unitId']||_0x416e4f[_0x1692e2(0x235)][_0x1692e2(0x303)]!==_0x7595bc['params'][_0x1692e2(0x303)])return{'m1Prime':_0x45b02e,'m2Prime':_0x5f4544};const _0x15f46e=_0x45b02e[_0x1692e2(0x235)][_0x1692e2(0x3e4)],_0x55bb6d=_0x5f4544['params'][_0x1692e2(0x3e4)],_0x3f8621=[_0x5f4544],_0xcf5f77=new Set();for(let _0x4fefc5=0x0;_0x4fefc5<_0x15f46e[_0x1692e2(0x367)];_0x4fefc5++)for(let _0x5bc82d=0x0;_0x5bc82d<_0x55bb6d[_0x1692e2(0x367)];_0x5bc82d++)if(_univerjs_core[_0x1692e2(0x394)][_0x1692e2(0x2da)](_0x15f46e[_0x4fefc5],_0x55bb6d[_0x5bc82d])){_0xcf5f77[_0x1692e2(0x25e)](_0x15f46e[_0x4fefc5]),_0x15f46e[_0x1692e2(0x2a1)](_0x4fefc5,0x1),_0x4fefc5--;break;}if(_0xcf5f77[_0x1692e2(0x338)]>0x0)_0x3f8621[_0x1692e2(0x388)]({'id':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'params':{'unitId':_0x416e4f['params'][_0x1692e2(0x3cc)],'subUnitId':_0x416e4f[_0x1692e2(0x235)]['subUnitId'],'ranges':Array[_0x1692e2(0x270)](_0xcf5f77)}});if(_0x15f46e[_0x1692e2(0x367)]===0x0)_0x45b02e['id']=_univerjs_sheets[_0x1692e2(0x2fc)]['id'];return{'m1Prime':_0x45b02e,'m2Prime':_0x3f8621[_0x1692e2(0x367)]>0x1?_0x3f8621:_0x5f4544};}},addWorksheetMergeMutationWithInsertColMutation={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x342)]['id'],'handler'(_0x16ee8a,_0x304253){const _0x43637f=_0x4fd226,_0x370476=_univerjs_core['Tools'][_0x43637f(0x28e)](_0x16ee8a),_0x131bfc=_univerjs_core[_0x43637f(0x1d5)]['deepClone'](_0x304253);if(_0x16ee8a[_0x43637f(0x235)]['unitId']!==_0x304253[_0x43637f(0x235)]['unitId']||_0x16ee8a[_0x43637f(0x235)][_0x43637f(0x303)]!==_0x304253[_0x43637f(0x235)]['subUnitId'])return{'m1Prime':_0x370476,'m2Prime':_0x131bfc};const _0xefa8f0=_0x16ee8a['params'][_0x43637f(0x3cc)],_0x370249=_0x16ee8a[_0x43637f(0x235)]['subUnitId'],_0x1f2b26=[_0x131bfc],_0x578af7=[],_0x5ce5d4=[];_0x370476[_0x43637f(0x235)][_0x43637f(0x3e4)][_0x43637f(0x222)](_0x49b887=>{const _0x307985=_0x43637f,_0x22519e=_0x304253['params'][_0x307985(0x2d0)],_0x536547=_0x22519e[_0x307985(0x337)]-_0x22519e[_0x307985(0x28f)]+0x1;if(_0x22519e[_0x307985(0x28f)]<=_0x49b887[_0x307985(0x28f)])_0x578af7[_0x307985(0x285)]({..._0x49b887}),_0x5ce5d4[_0x307985(0x285)]({..._0x49b887,'startColumn':_0x49b887['startColumn']+_0x536547,'endColumn':_0x49b887[_0x307985(0x337)]+_0x536547}),_0x49b887[_0x307985(0x28f)]=_0x49b887[_0x307985(0x28f)]+_0x536547,_0x49b887[_0x307985(0x337)]=_0x49b887[_0x307985(0x337)]+_0x536547;else _0x22519e[_0x307985(0x28f)]>_0x49b887['startColumn']&&_0x22519e[_0x307985(0x28f)]<=_0x49b887[_0x307985(0x337)]&&(_0x578af7['push']({..._0x49b887}),_0x5ce5d4['push']({..._0x49b887,'endColumn':_0x49b887['endColumn']+_0x536547}),_0x49b887[_0x307985(0x337)]=_0x49b887[_0x307985(0x337)]+_0x536547);});if(_0x578af7['length']>0x0)_0x1f2b26[_0x43637f(0x388)]({'id':_univerjs_sheets[_0x43637f(0x3ff)]['id'],'params':{'unitId':_0xefa8f0,'subUnitId':_0x370249,'ranges':_0x578af7}});if(_0x5ce5d4[_0x43637f(0x367)]>0x0)_0x1f2b26['push']({'id':_univerjs_sheets[_0x43637f(0x340)]['id'],'params':{'unitId':_0xefa8f0,'subUnitId':_0x370249,'ranges':_0x5ce5d4}});return{'m1Prime':_0x370476,'m2Prime':_0x1f2b26['length']>0x1?_0x1f2b26:_0x1f2b26[0x0]};}},addWorksheetMergeMutationWithInsertRowMutation={'m1':_univerjs_sheets[_0x4fd226(0x340)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'handler'(_0x3862f3,_0x5e9c4a){const _0x24405c=_0x4fd226,_0xb00288=_univerjs_core[_0x24405c(0x1d5)][_0x24405c(0x28e)](_0x3862f3),_0x21d70e=_univerjs_core[_0x24405c(0x1d5)][_0x24405c(0x28e)](_0x5e9c4a);if(_0x3862f3['params'][_0x24405c(0x3cc)]!==_0x5e9c4a[_0x24405c(0x235)][_0x24405c(0x3cc)]||_0x3862f3[_0x24405c(0x235)]['subUnitId']!==_0x5e9c4a[_0x24405c(0x235)]['subUnitId'])return{'m1Prime':_0xb00288,'m2Prime':_0x21d70e};const _0x237277=_0x3862f3[_0x24405c(0x235)][_0x24405c(0x3cc)],_0x549198=_0x3862f3['params'][_0x24405c(0x303)],_0x19efa6=[_0x21d70e],_0x1ea580=[],_0x37f730=[];_0xb00288[_0x24405c(0x235)][_0x24405c(0x3e4)]['forEach'](_0x4a588f=>{const _0xd92a81=_0x24405c,_0x3c214d=_0x5e9c4a[_0xd92a81(0x235)][_0xd92a81(0x2d0)],_0x4b3f41=_0x3c214d[_0xd92a81(0x3e2)]-_0x3c214d[_0xd92a81(0x26f)]+0x1;if(_0x3c214d['startRow']<=_0x4a588f[_0xd92a81(0x26f)])_0x1ea580[_0xd92a81(0x285)]({..._0x4a588f}),_0x37f730['push']({..._0x4a588f,'startRow':_0x4a588f[_0xd92a81(0x26f)]+_0x4b3f41,'endRow':_0x4a588f[_0xd92a81(0x3e2)]+_0x4b3f41}),_0x4a588f[_0xd92a81(0x26f)]=_0x4a588f[_0xd92a81(0x26f)]+_0x4b3f41,_0x4a588f[_0xd92a81(0x3e2)]=_0x4a588f['endRow']+_0x4b3f41;else _0x3c214d[_0xd92a81(0x26f)]>_0x4a588f[_0xd92a81(0x26f)]&&_0x3c214d[_0xd92a81(0x26f)]<=_0x4a588f[_0xd92a81(0x3e2)]&&(_0x1ea580[_0xd92a81(0x285)]({..._0x4a588f}),_0x37f730[_0xd92a81(0x285)]({..._0x4a588f,'endRow':_0x4a588f[_0xd92a81(0x3e2)]+_0x4b3f41}),_0x4a588f[_0xd92a81(0x3e2)]=_0x4a588f['endRow']+_0x4b3f41);});if(_0x1ea580['length']>0x0)_0x19efa6[_0x24405c(0x388)]({'id':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'params':{'unitId':_0x237277,'subUnitId':_0x549198,'ranges':_0x1ea580}});if(_0x37f730[_0x24405c(0x367)]>0x0)_0x19efa6[_0x24405c(0x285)]({'id':_univerjs_sheets[_0x24405c(0x340)]['id'],'params':{'unitId':_0x237277,'subUnitId':_0x549198,'ranges':_0x37f730}});return{'m1Prime':_0xb00288,'m2Prime':_0x19efa6[_0x24405c(0x367)]>0x1?_0x19efa6:_0x19efa6[0x0]};}},addWorksheetMergeMutationWithMoveColMutation={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x2b3)]['id'],'handler'(_0x408e57,_0x571c61){const _0x164f86=_0x4fd226,_0x293bf3=_univerjs_core[_0x164f86(0x1d5)][_0x164f86(0x28e)](_0x408e57),_0x35c344=_univerjs_core[_0x164f86(0x1d5)][_0x164f86(0x28e)](_0x571c61);if(_0x408e57['params'][_0x164f86(0x3cc)]!==_0x571c61[_0x164f86(0x235)][_0x164f86(0x3cc)]||_0x408e57[_0x164f86(0x235)][_0x164f86(0x303)]!==_0x571c61[_0x164f86(0x235)]['subUnitId'])return{'m1Prime':_0x293bf3,'m2Prime':_0x35c344};const _0x2a4f45=[],_0x327fa1=[],_0xb42197=[_0x35c344];for(let _0x18245c=0x0;_0x18245c<_0x293bf3[_0x164f86(0x235)][_0x164f86(0x3e4)][_0x164f86(0x367)];_0x18245c++){const _0x3dd3fd=_0x293bf3['params'][_0x164f86(0x3e4)][_0x18245c],{sourceRange:_0x157b8b,targetRange:_0x20e50a}=_0x571c61[_0x164f86(0x235)];if(_univerjs_core[_0x164f86(0x394)][_0x164f86(0x2da)](_0x3dd3fd,_0x157b8b)||_univerjs_core[_0x164f86(0x394)][_0x164f86(0x2da)](_0x3dd3fd,_0x20e50a))_0x2a4f45[_0x164f86(0x285)]({..._0x3dd3fd}),_0x293bf3[_0x164f86(0x235)]['ranges'][_0x164f86(0x2a1)](_0x18245c,0x1),_0x18245c--;else{if(_0x157b8b[_0x164f86(0x28f)]<_0x3dd3fd[_0x164f86(0x28f)]&&_0x20e50a['startColumn']>_0x3dd3fd[_0x164f86(0x337)])_0x2a4f45[_0x164f86(0x285)]({..._0x3dd3fd}),_0x327fa1[_0x164f86(0x285)]({..._0x3dd3fd,'startColumn':_0x3dd3fd[_0x164f86(0x28f)]-(_0x157b8b[_0x164f86(0x337)]-_0x157b8b[_0x164f86(0x28f)]+0x1),'endColumn':_0x3dd3fd[_0x164f86(0x337)]-(_0x157b8b['endColumn']-_0x157b8b[_0x164f86(0x28f)]+0x1)}),_0x3dd3fd[_0x164f86(0x28f)]=_0x3dd3fd['startColumn']-(_0x157b8b['endColumn']-_0x157b8b['startColumn']+0x1),_0x3dd3fd['endColumn']=_0x3dd3fd[_0x164f86(0x337)]-(_0x157b8b['endColumn']-_0x157b8b[_0x164f86(0x28f)]+0x1);else _0x157b8b['startColumn']>_0x3dd3fd[_0x164f86(0x337)]&&_0x20e50a['endColumn']<_0x3dd3fd[_0x164f86(0x28f)]&&(_0x2a4f45[_0x164f86(0x285)]({..._0x3dd3fd}),_0x327fa1['push']({..._0x3dd3fd,'startColumn':_0x3dd3fd['startColumn']+(_0x157b8b[_0x164f86(0x337)]-_0x157b8b['startColumn']+0x1),'endColumn':_0x3dd3fd['endColumn']+(_0x157b8b['endColumn']-_0x157b8b['startColumn']+0x1)}),_0x3dd3fd['startColumn']=_0x3dd3fd[_0x164f86(0x28f)]+(_0x157b8b[_0x164f86(0x337)]-_0x157b8b[_0x164f86(0x28f)]+0x1),_0x3dd3fd[_0x164f86(0x337)]=_0x3dd3fd['endColumn']+(_0x157b8b[_0x164f86(0x337)]-_0x157b8b[_0x164f86(0x28f)]+0x1));}}if(_0x2a4f45[_0x164f86(0x367)]>0x0)_0xb42197[_0x164f86(0x388)]({'id':_univerjs_sheets[_0x164f86(0x3ff)]['id'],'params':{'unitId':_0x408e57[_0x164f86(0x235)][_0x164f86(0x3cc)],'subUnitId':_0x408e57[_0x164f86(0x235)]['subUnitId'],'ranges':_0x2a4f45}});if(_0x327fa1[_0x164f86(0x367)]>0x0)_0xb42197['push']({'id':_univerjs_sheets[_0x164f86(0x340)]['id'],'params':{'unitId':_0x408e57[_0x164f86(0x235)][_0x164f86(0x3cc)],'subUnitId':_0x408e57[_0x164f86(0x235)][_0x164f86(0x303)],'ranges':_0x327fa1}});if(_0x293bf3['params']['ranges'][_0x164f86(0x367)]===0x0)_0x293bf3['id']=_univerjs_sheets[_0x164f86(0x2fc)]['id'];return{'m1Prime':_0x293bf3,'m2Prime':_0xb42197[_0x164f86(0x367)]>0x1?_0xb42197:_0xb42197[0x0]};}},addWorksheetMergeMutationWithMoveRangeMutation={'m1':_univerjs_sheets[_0x4fd226(0x340)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x35a)]['id'],'handler'(_0x2c6f78,_0x3a0c74){const _0x3d5b39=_0x4fd226,_0x33cd95=_univerjs_core[_0x3d5b39(0x1d5)][_0x3d5b39(0x28e)](_0x2c6f78),_0x3be7e3=_univerjs_core['Tools'][_0x3d5b39(0x28e)](_0x3a0c74);if(_0x2c6f78[_0x3d5b39(0x235)]['unitId']!==_0x3a0c74['params'][_0x3d5b39(0x3cc)])return{'m1Prime':_0x33cd95,'m2Prime':_0x3be7e3};const _0x2d5261=[],_0x39b68c=[_0x3be7e3],_0x4a69ee=new _univerjs_core[(_0x3d5b39(0x2ed))](_0x3a0c74[_0x3d5b39(0x235)][_0x3d5b39(0x270)][_0x3d5b39(0x355)])[_0x3d5b39(0x277)](),_0x2868a9=new _univerjs_core[(_0x3d5b39(0x2ed))](_0x3a0c74[_0x3d5b39(0x235)]['to'][_0x3d5b39(0x355)])[_0x3d5b39(0x277)]();for(let _0x5656b1=0x0;_0x5656b1<_0x33cd95['params'][_0x3d5b39(0x3e4)][_0x3d5b39(0x367)];_0x5656b1++){const _0x12638d=_0x33cd95[_0x3d5b39(0x235)][_0x3d5b39(0x3e4)][_0x5656b1];(_univerjs_core[_0x3d5b39(0x394)][_0x3d5b39(0x2da)](_0x4a69ee,_0x12638d)||_univerjs_core['Rectangle']['intersects'](_0x2868a9,_0x12638d))&&(_0x2d5261[_0x3d5b39(0x285)](_0x12638d),_0x33cd95['params'][_0x3d5b39(0x3e4)][_0x3d5b39(0x2a1)](_0x5656b1,0x1),_0x5656b1--);}if(_0x2d5261['length']>0x0)_0x39b68c[_0x3d5b39(0x388)]({'id':_univerjs_sheets[_0x3d5b39(0x3ff)]['id'],'params':{'unitId':_0x2c6f78['params'][_0x3d5b39(0x3cc)],'subUnitId':_0x2c6f78[_0x3d5b39(0x235)][_0x3d5b39(0x303)],'ranges':_0x2d5261}});if(_0x33cd95[_0x3d5b39(0x235)][_0x3d5b39(0x3e4)]['length']===0x0)_0x33cd95['id']=_univerjs_sheets[_0x3d5b39(0x2fc)]['id'];return{'m1Prime':_0x33cd95,'m2Prime':_0x39b68c['length']>0x1?_0x39b68c:_0x39b68c[0x0]};}},addWorksheetMergeMutationWithMoveRowMutation={'m1':_univerjs_sheets[_0x4fd226(0x340)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x229)]['id'],'handler'(_0x2f3ff1,_0x1ca13c){const _0x1eaa2e=_0x4fd226,_0x2531ff=_univerjs_core[_0x1eaa2e(0x1d5)][_0x1eaa2e(0x28e)](_0x2f3ff1),_0x502418=_univerjs_core['Tools'][_0x1eaa2e(0x28e)](_0x1ca13c);if(_0x2f3ff1[_0x1eaa2e(0x235)]['unitId']!==_0x1ca13c[_0x1eaa2e(0x235)]['unitId']||_0x2f3ff1[_0x1eaa2e(0x235)][_0x1eaa2e(0x303)]!==_0x1ca13c['params']['subUnitId'])return{'m1Prime':_0x2531ff,'m2Prime':_0x502418};const _0x4a65d0=[],_0x449ef8=[],_0x5021be=[_0x502418];for(let _0x17f95e=0x0;_0x17f95e<_0x2531ff[_0x1eaa2e(0x235)]['ranges']['length'];_0x17f95e++){const _0x5e7e6e=_0x2531ff[_0x1eaa2e(0x235)][_0x1eaa2e(0x3e4)][_0x17f95e],{sourceRange:_0x374357,targetRange:_0x3c769d}=_0x1ca13c[_0x1eaa2e(0x235)];if(_univerjs_core['Rectangle'][_0x1eaa2e(0x2da)](_0x5e7e6e,_0x374357)||_univerjs_core[_0x1eaa2e(0x394)][_0x1eaa2e(0x2da)](_0x5e7e6e,_0x3c769d))_0x4a65d0[_0x1eaa2e(0x285)]({..._0x5e7e6e}),_0x2531ff['params'][_0x1eaa2e(0x3e4)][_0x1eaa2e(0x2a1)](_0x17f95e,0x1),_0x17f95e--;else{if(_0x374357['startRow']<_0x5e7e6e[_0x1eaa2e(0x26f)]&&_0x3c769d[_0x1eaa2e(0x26f)]>_0x5e7e6e['endRow'])_0x4a65d0['push']({..._0x5e7e6e}),_0x449ef8['push']({..._0x5e7e6e,'startRow':_0x5e7e6e[_0x1eaa2e(0x26f)]-(_0x374357[_0x1eaa2e(0x3e2)]-_0x374357['startRow']+0x1),'endRow':_0x5e7e6e[_0x1eaa2e(0x3e2)]-(_0x374357[_0x1eaa2e(0x3e2)]-_0x374357[_0x1eaa2e(0x26f)]+0x1)}),_0x5e7e6e[_0x1eaa2e(0x26f)]=_0x5e7e6e[_0x1eaa2e(0x26f)]-(_0x374357[_0x1eaa2e(0x3e2)]-_0x374357['startRow']+0x1),_0x5e7e6e['endRow']=_0x5e7e6e['endRow']-(_0x374357[_0x1eaa2e(0x3e2)]-_0x374357[_0x1eaa2e(0x26f)]+0x1);else _0x374357[_0x1eaa2e(0x26f)]>_0x5e7e6e[_0x1eaa2e(0x3e2)]&&_0x3c769d[_0x1eaa2e(0x3e2)]<_0x5e7e6e[_0x1eaa2e(0x26f)]&&(_0x4a65d0[_0x1eaa2e(0x285)]({..._0x5e7e6e}),_0x449ef8[_0x1eaa2e(0x285)]({..._0x5e7e6e,'startRow':_0x5e7e6e[_0x1eaa2e(0x26f)]+(_0x374357[_0x1eaa2e(0x3e2)]-_0x374357[_0x1eaa2e(0x26f)]+0x1),'endRow':_0x5e7e6e[_0x1eaa2e(0x3e2)]+(_0x374357['endRow']-_0x374357[_0x1eaa2e(0x26f)]+0x1)}),_0x5e7e6e[_0x1eaa2e(0x26f)]=_0x5e7e6e['startRow']+(_0x374357[_0x1eaa2e(0x3e2)]-_0x374357[_0x1eaa2e(0x26f)]+0x1),_0x5e7e6e[_0x1eaa2e(0x3e2)]=_0x5e7e6e[_0x1eaa2e(0x3e2)]+(_0x374357['endRow']-_0x374357[_0x1eaa2e(0x26f)]+0x1));}}if(_0x4a65d0[_0x1eaa2e(0x367)]>0x0)_0x5021be['unshift']({'id':_univerjs_sheets[_0x1eaa2e(0x3ff)]['id'],'params':{'unitId':_0x2f3ff1[_0x1eaa2e(0x235)][_0x1eaa2e(0x3cc)],'subUnitId':_0x2f3ff1[_0x1eaa2e(0x235)]['subUnitId'],'ranges':_0x4a65d0}});if(_0x449ef8['length']>0x0)_0x5021be['push']({'id':_univerjs_sheets[_0x1eaa2e(0x340)]['id'],'params':{'unitId':_0x2f3ff1[_0x1eaa2e(0x235)][_0x1eaa2e(0x3cc)],'subUnitId':_0x2f3ff1[_0x1eaa2e(0x235)][_0x1eaa2e(0x303)],'ranges':_0x449ef8}});if(_0x2531ff[_0x1eaa2e(0x235)][_0x1eaa2e(0x3e4)][_0x1eaa2e(0x367)]===0x0)_0x2531ff['id']=_univerjs_sheets[_0x1eaa2e(0x2fc)]['id'];return{'m1Prime':_0x2531ff,'m2Prime':_0x5021be[_0x1eaa2e(0x367)]>0x1?_0x5021be:_0x5021be[0x0]};}};function isMergeCell(_0x5222e7){const _0x40f32e=_0x4fd226;if(_0x5222e7[_0x40f32e(0x28f)]>_0x5222e7['endColumn']||_0x5222e7[_0x40f32e(0x26f)]>_0x5222e7[_0x40f32e(0x3e2)])return![];return!(_0x5222e7['startRow']===_0x5222e7['endRow']&&_0x5222e7[_0x40f32e(0x28f)]===_0x5222e7['endColumn']);}const addWorksheetMergeMutationWithRemoveColMutation={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x228)]['id'],'handler'(_0x1bda11,_0x5875e0){const _0x4d0191=_0x4fd226,_0x4edfbd=_univerjs_core[_0x4d0191(0x1d5)][_0x4d0191(0x28e)](_0x1bda11),_0x54bcb7=_univerjs_core['Tools'][_0x4d0191(0x28e)](_0x5875e0);if(_0x1bda11[_0x4d0191(0x235)][_0x4d0191(0x3cc)]!==_0x5875e0[_0x4d0191(0x235)]['unitId']||_0x1bda11[_0x4d0191(0x235)][_0x4d0191(0x303)]!==_0x5875e0[_0x4d0191(0x235)]['subUnitId'])return{'m1Prime':_0x4edfbd,'m2Prime':_0x54bcb7};const _0x449cff=_0x1bda11[_0x4d0191(0x235)][_0x4d0191(0x3cc)],_0x4652b6=_0x1bda11[_0x4d0191(0x235)]['subUnitId'],_0x12b4d8=[_0x54bcb7],_0x2f5c50=[],_0x3b6789=[];for(let _0x3a0521=0x0;_0x3a0521<_0x4edfbd[_0x4d0191(0x235)]['ranges'][_0x4d0191(0x367)];_0x3a0521++){const _0x395ac6=_0x4edfbd[_0x4d0191(0x235)][_0x4d0191(0x3e4)][_0x3a0521],_0x42f9c9=_0x5875e0[_0x4d0191(0x235)][_0x4d0191(0x2d0)],_0xf0bce7=_0x42f9c9[_0x4d0191(0x337)]-_0x42f9c9[_0x4d0191(0x28f)]+0x1;if(_0x42f9c9[_0x4d0191(0x28f)]<_0x395ac6[_0x4d0191(0x28f)]&&_0x42f9c9[_0x4d0191(0x337)]<_0x395ac6[_0x4d0191(0x28f)])_0x2f5c50[_0x4d0191(0x285)]({..._0x395ac6}),_0x3b6789[_0x4d0191(0x285)]({..._0x395ac6,'startColumn':_0x395ac6[_0x4d0191(0x28f)]-_0xf0bce7,'endColumn':_0x395ac6[_0x4d0191(0x337)]-_0xf0bce7}),_0x395ac6[_0x4d0191(0x28f)]=_0x395ac6['startColumn']-_0xf0bce7,_0x395ac6[_0x4d0191(0x337)]=_0x395ac6['endColumn']-_0xf0bce7;else{if(_0x42f9c9['startColumn']<_0x395ac6[_0x4d0191(0x28f)]&&_0x42f9c9[_0x4d0191(0x337)]>=_0x395ac6['startColumn']&&_0x42f9c9[_0x4d0191(0x337)]<=_0x395ac6['endColumn']){_0x2f5c50['push']({..._0x395ac6});const _0x5d6afa={..._0x395ac6,'startColumn':_0x42f9c9['startColumn'],'endColumn':_0x395ac6[_0x4d0191(0x337)]-_0xf0bce7};isMergeCell(_0x5d6afa)&&_0x42f9c9[_0x4d0191(0x337)]<_0x395ac6[_0x4d0191(0x337)]?(_0x42f9c9[_0x4d0191(0x337)]<_0x395ac6[_0x4d0191(0x337)]&&_0x3b6789[_0x4d0191(0x285)](_0x5d6afa),_0x395ac6['startColumn']=_0x42f9c9['startColumn'],_0x395ac6['endColumn']=_0x395ac6[_0x4d0191(0x337)]-_0xf0bce7):(_0x4edfbd[_0x4d0191(0x235)][_0x4d0191(0x3e4)][_0x4d0191(0x2a1)](_0x3a0521,0x1),_0x3a0521--);}else{if(_0x42f9c9[_0x4d0191(0x28f)]>_0x395ac6[_0x4d0191(0x28f)]&&_0x42f9c9[_0x4d0191(0x337)]<_0x395ac6[_0x4d0191(0x337)]){_0x2f5c50['push']({..._0x395ac6});const _0x23fc6f={..._0x395ac6,'endColumn':_0x395ac6[_0x4d0191(0x337)]-_0xf0bce7};isMergeCell(_0x23fc6f)?(_0x3b6789[_0x4d0191(0x285)](_0x23fc6f),_0x395ac6[_0x4d0191(0x337)]=_0x395ac6['endColumn']-_0xf0bce7):(_0x4edfbd[_0x4d0191(0x235)][_0x4d0191(0x3e4)]['splice'](_0x3a0521,0x1),_0x3a0521--);}else{if(_0x42f9c9[_0x4d0191(0x28f)]>=_0x395ac6[_0x4d0191(0x28f)]&&_0x42f9c9[_0x4d0191(0x28f)]<=_0x395ac6[_0x4d0191(0x337)]&&_0x42f9c9[_0x4d0191(0x337)]>_0x395ac6['endColumn']){_0x2f5c50['push']({..._0x395ac6});const _0x860e66={..._0x395ac6,'endColumn':_0x42f9c9['startColumn']-0x1};isMergeCell(_0x860e66)&&_0x42f9c9[_0x4d0191(0x28f)]>_0x395ac6[_0x4d0191(0x28f)]?(_0x3b6789['push'](_0x860e66),_0x395ac6[_0x4d0191(0x337)]=_0x42f9c9[_0x4d0191(0x28f)]-0x1):(_0x4edfbd[_0x4d0191(0x235)][_0x4d0191(0x3e4)][_0x4d0191(0x2a1)](_0x3a0521,0x1),_0x3a0521--);}else{if(_0x42f9c9[_0x4d0191(0x28f)]>_0x395ac6[_0x4d0191(0x337)]){}else _0x42f9c9[_0x4d0191(0x28f)]<=_0x395ac6[_0x4d0191(0x28f)]&&_0x42f9c9[_0x4d0191(0x337)]>=_0x395ac6['endColumn']&&(_0x2f5c50[_0x4d0191(0x285)]({..._0x395ac6}),_0x4edfbd['params'][_0x4d0191(0x3e4)]['splice'](_0x3a0521,0x1),_0x3a0521--);}}}}}if(_0x2f5c50[_0x4d0191(0x367)]>0x0)_0x12b4d8[_0x4d0191(0x388)]({'id':_univerjs_sheets[_0x4d0191(0x3ff)]['id'],'params':{'unitId':_0x449cff,'subUnitId':_0x4652b6,'ranges':_0x2f5c50}});if(_0x3b6789[_0x4d0191(0x367)]>0x0)_0x12b4d8[_0x4d0191(0x285)]({'id':_univerjs_sheets[_0x4d0191(0x340)]['id'],'params':{'unitId':_0x449cff,'subUnitId':_0x4652b6,'ranges':_0x3b6789}});if(_0x4edfbd[_0x4d0191(0x235)][_0x4d0191(0x3e4)][_0x4d0191(0x367)]===0x0)_0x4edfbd['id']=_univerjs_sheets['EmptyMutation']['id'];return{'m1Prime':_0x4edfbd,'m2Prime':_0x12b4d8['length']>0x1?_0x12b4d8:_0x12b4d8[0x0]};}},addWorksheetMergeMutationWithRemoveRowMutation={'m1':_univerjs_sheets[_0x4fd226(0x340)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'handler'(_0x34fb14,_0x57a197){const _0x38b8fc=_0x4fd226,_0xb7acc7=_univerjs_core[_0x38b8fc(0x1d5)][_0x38b8fc(0x28e)](_0x34fb14),_0x45e163=_univerjs_core[_0x38b8fc(0x1d5)][_0x38b8fc(0x28e)](_0x57a197);if(_0x34fb14[_0x38b8fc(0x235)][_0x38b8fc(0x3cc)]!==_0x57a197[_0x38b8fc(0x235)][_0x38b8fc(0x3cc)]||_0x34fb14[_0x38b8fc(0x235)][_0x38b8fc(0x303)]!==_0x57a197['params']['subUnitId'])return{'m1Prime':_0xb7acc7,'m2Prime':_0x45e163};const _0x32b91a=_0x34fb14[_0x38b8fc(0x235)][_0x38b8fc(0x3cc)],_0x32f8ae=_0x34fb14[_0x38b8fc(0x235)][_0x38b8fc(0x303)],_0x474f8e=[_0x45e163],_0x382577=[],_0x24aa79=[];for(let _0x43d299=0x0;_0x43d299<_0xb7acc7[_0x38b8fc(0x235)][_0x38b8fc(0x3e4)]['length'];_0x43d299++){const _0x4a2ad5=_0xb7acc7[_0x38b8fc(0x235)][_0x38b8fc(0x3e4)][_0x43d299],_0x28e57b=_0x57a197['params'][_0x38b8fc(0x2d0)],_0x24435f=_0x28e57b[_0x38b8fc(0x3e2)]-_0x28e57b[_0x38b8fc(0x26f)]+0x1;if(_0x28e57b[_0x38b8fc(0x26f)]<_0x4a2ad5['startRow']&&_0x28e57b[_0x38b8fc(0x3e2)]<_0x4a2ad5[_0x38b8fc(0x26f)])_0x382577['push']({..._0x4a2ad5}),_0x24aa79[_0x38b8fc(0x285)]({..._0x4a2ad5,'startRow':_0x4a2ad5[_0x38b8fc(0x26f)]-_0x24435f,'endRow':_0x4a2ad5[_0x38b8fc(0x3e2)]-_0x24435f}),_0x4a2ad5['startRow']=_0x4a2ad5[_0x38b8fc(0x26f)]-_0x24435f,_0x4a2ad5[_0x38b8fc(0x3e2)]=_0x4a2ad5[_0x38b8fc(0x3e2)]-_0x24435f;else{if(_0x28e57b[_0x38b8fc(0x26f)]<_0x4a2ad5[_0x38b8fc(0x26f)]&&_0x28e57b[_0x38b8fc(0x3e2)]>=_0x4a2ad5[_0x38b8fc(0x26f)]&&_0x28e57b[_0x38b8fc(0x3e2)]<=_0x4a2ad5[_0x38b8fc(0x3e2)]){_0x382577[_0x38b8fc(0x285)]({..._0x4a2ad5});const _0x28bf38={..._0x4a2ad5,'startRow':_0x28e57b['startRow'],'endRow':_0x4a2ad5['endRow']-_0x24435f};isMergeCell(_0x28bf38)&&_0x28e57b['endRow']<_0x4a2ad5[_0x38b8fc(0x3e2)]?(_0x28e57b[_0x38b8fc(0x3e2)]<_0x4a2ad5[_0x38b8fc(0x3e2)]&&_0x24aa79[_0x38b8fc(0x285)](_0x28bf38),_0x4a2ad5[_0x38b8fc(0x26f)]=_0x28e57b['startRow'],_0x4a2ad5[_0x38b8fc(0x3e2)]=_0x4a2ad5['endRow']-_0x24435f):(_0xb7acc7[_0x38b8fc(0x235)][_0x38b8fc(0x3e4)][_0x38b8fc(0x2a1)](_0x43d299,0x1),_0x43d299--);}else{if(_0x28e57b[_0x38b8fc(0x26f)]>_0x4a2ad5[_0x38b8fc(0x26f)]&&_0x28e57b[_0x38b8fc(0x3e2)]<_0x4a2ad5[_0x38b8fc(0x3e2)]){_0x382577[_0x38b8fc(0x285)]({..._0x4a2ad5});const _0x5b0ffa={..._0x4a2ad5,'endRow':_0x4a2ad5[_0x38b8fc(0x3e2)]-_0x24435f};isMergeCell(_0x5b0ffa)?(_0x24aa79[_0x38b8fc(0x285)](_0x5b0ffa),_0x4a2ad5['endRow']=_0x4a2ad5['endRow']-_0x24435f):(_0xb7acc7[_0x38b8fc(0x235)]['ranges'][_0x38b8fc(0x2a1)](_0x43d299,0x1),_0x43d299--);}else{if(_0x28e57b[_0x38b8fc(0x26f)]>=_0x4a2ad5[_0x38b8fc(0x26f)]&&_0x28e57b[_0x38b8fc(0x26f)]<=_0x4a2ad5[_0x38b8fc(0x3e2)]&&_0x28e57b[_0x38b8fc(0x3e2)]>_0x4a2ad5['endRow']){_0x382577[_0x38b8fc(0x285)]({..._0x4a2ad5});const _0x50eecb={..._0x4a2ad5,'endRow':_0x28e57b[_0x38b8fc(0x26f)]-0x1};isMergeCell(_0x50eecb)&&_0x28e57b['startRow']>_0x4a2ad5[_0x38b8fc(0x26f)]?(_0x24aa79['push'](_0x50eecb),_0x4a2ad5['endRow']=_0x28e57b['startRow']-0x1):(_0xb7acc7['params'][_0x38b8fc(0x3e4)][_0x38b8fc(0x2a1)](_0x43d299,0x1),_0x43d299--);}else{if(_0x28e57b[_0x38b8fc(0x26f)]>_0x4a2ad5[_0x38b8fc(0x3e2)]){}else _0x28e57b[_0x38b8fc(0x26f)]<=_0x4a2ad5[_0x38b8fc(0x26f)]&&_0x28e57b['endRow']>=_0x4a2ad5[_0x38b8fc(0x3e2)]&&(_0x382577['push']({..._0x4a2ad5}),_0xb7acc7[_0x38b8fc(0x235)][_0x38b8fc(0x3e4)][_0x38b8fc(0x2a1)](_0x43d299,0x1),_0x43d299--);}}}}}if(_0x382577['length']>0x0)_0x474f8e['unshift']({'id':_univerjs_sheets[_0x38b8fc(0x3ff)]['id'],'params':{'unitId':_0x32b91a,'subUnitId':_0x32f8ae,'ranges':_0x382577}});if(_0x24aa79[_0x38b8fc(0x367)]>0x0)_0x474f8e['push']({'id':_univerjs_sheets[_0x38b8fc(0x340)]['id'],'params':{'unitId':_0x32b91a,'subUnitId':_0x32f8ae,'ranges':_0x24aa79}});if(_0xb7acc7[_0x38b8fc(0x235)][_0x38b8fc(0x3e4)]['length']===0x0)_0xb7acc7['id']=_univerjs_sheets[_0x38b8fc(0x2fc)]['id'];return{'m1Prime':_0xb7acc7,'m2Prime':_0x474f8e[_0x38b8fc(0x367)]>0x1?_0x474f8e:_0x474f8e[0x0]};}},addWorksheetMergeMutationWithRemoveWorksheetMergeMutation={'m1':_univerjs_sheets[_0x4fd226(0x340)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3ff)]['id'],'handler'(_0x4c4ca1,_0x3fd983){const _0x3fbccb=_0x4fd226,_0x570b47=_univerjs_core['Tools'][_0x3fbccb(0x28e)](_0x4c4ca1),_0x44bb7f=_univerjs_core[_0x3fbccb(0x1d5)][_0x3fbccb(0x28e)](_0x3fd983);if(_0x4c4ca1[_0x3fbccb(0x235)][_0x3fbccb(0x3cc)]!==_0x3fd983[_0x3fbccb(0x235)]['unitId']||_0x4c4ca1[_0x3fbccb(0x235)]['subUnitId']!==_0x3fd983['params']['subUnitId'])return{'m1Prime':_0x570b47,'m2Prime':_0x44bb7f};const _0x1b01fb=[..._0x44bb7f[_0x3fbccb(0x235)][_0x3fbccb(0x3e4)]];for(let _0x4d5ef2=0x0;_0x4d5ef2<_0x570b47['params'][_0x3fbccb(0x3e4)][_0x3fbccb(0x367)];_0x4d5ef2++){let _0x34345f=![];for(let _0x23e3a7=0x0;_0x23e3a7<_0x44bb7f[_0x3fbccb(0x235)][_0x3fbccb(0x3e4)][_0x3fbccb(0x367)];_0x23e3a7++){const _0x1f1844=_0x570b47[_0x3fbccb(0x235)][_0x3fbccb(0x3e4)][_0x4d5ef2],_0x391642=_0x44bb7f[_0x3fbccb(0x235)]['ranges'][_0x23e3a7];if(_univerjs_core[_0x3fbccb(0x394)][_0x3fbccb(0x2da)](_0x1f1844,_0x391642)){_0x34345f=!![];break;}}_0x34345f&&(_0x1b01fb[_0x3fbccb(0x285)](_0x570b47[_0x3fbccb(0x235)][_0x3fbccb(0x3e4)][_0x4d5ef2]),_0x570b47['params']['ranges'][_0x3fbccb(0x2a1)](_0x4d5ef2,0x1),_0x4d5ef2--);}_0x44bb7f[_0x3fbccb(0x235)]['ranges']=_0x1b01fb;if(_0x570b47[_0x3fbccb(0x235)]['ranges']['length']===0x0)_0x570b47['id']=_univerjs_sheets[_0x3fbccb(0x2fc)]['id'];return{'m1Prime':_0x570b47,'m2Prime':_0x44bb7f};}},addWorksheetMergeMutationWithSetRangeValues={'m1':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x35c)]['id'],'handler'(_0x598bd2,_0x382d03){const _0x18b81b=_0x4fd226,_0x52e2d4=_univerjs_core[_0x18b81b(0x1d5)][_0x18b81b(0x28e)](_0x598bd2),_0x561c7e=_univerjs_core[_0x18b81b(0x1d5)][_0x18b81b(0x28e)](_0x382d03);if(_0x598bd2[_0x18b81b(0x235)][_0x18b81b(0x3cc)]!==_0x382d03[_0x18b81b(0x235)][_0x18b81b(0x3cc)]||_0x598bd2[_0x18b81b(0x235)][_0x18b81b(0x303)]!==_0x382d03[_0x18b81b(0x235)][_0x18b81b(0x303)])return{'m1Prime':_0x52e2d4,'m2Prime':_0x561c7e};const _0x187d94=[_0x52e2d4],_0x4b1759=[_0x561c7e],_0x2e43e9=new _univerjs_core[(_0x18b81b(0x2ed))](_univerjs_core[_0x18b81b(0x1d5)]['deepClone'](_0x382d03[_0x18b81b(0x235)][_0x18b81b(0x2f8)])),_0x161964=new Set(),_0x356988={};for(let _0x36434e=0x0;_0x36434e<_0x52e2d4[_0x18b81b(0x235)][_0x18b81b(0x3e4)][_0x18b81b(0x367)];_0x36434e++){const _0x578f88=_0x52e2d4['params']['ranges'][_0x36434e],{startRow:_0x547b87,startColumn:_0x586846,endRow:_0x1c8c0e,endColumn:_0x465322}=_0x578f88;let _0x218d64=![];_0x2e43e9[_0x18b81b(0x398)]((_0x400a29,_0x320cf1,_0x10a8b1)=>{const _0x574931=_0x18b81b;if(_0x400a29>=_0x547b87&&_0x400a29<=_0x1c8c0e&&_0x320cf1>=_0x586846&&_0x320cf1<=_0x465322){const _0x2147b9=_0x2e43e9[_0x574931(0x300)](_0x400a29,_0x320cf1),_0x14768f=_0x2147b9===null?{'v':null,'s':null,'t':null,'si':null,'p':null,'f':null}:_0x2147b9;if(_0x14768f){if(!_0x356988[_0x400a29])_0x356988[_0x400a29]={};_0x356988[_0x400a29][_0x320cf1]={},(_0x10a8b1===null||_0x10a8b1===void 0x0?void 0x0:_0x10a8b1['v'])!==void 0x0&&(_0x356988[_0x400a29][_0x320cf1]['v']=null,delete _0x14768f['v']),(_0x10a8b1===null||_0x10a8b1===void 0x0?void 0x0:_0x10a8b1['f'])!==void 0x0&&(_0x356988[_0x400a29][_0x320cf1]['f']=null,delete _0x14768f['f']),(_0x10a8b1===null||_0x10a8b1===void 0x0?void 0x0:_0x10a8b1['t'])!==void 0x0&&(_0x356988[_0x400a29][_0x320cf1]['t']=null,delete _0x14768f['t']),(_0x10a8b1===null||_0x10a8b1===void 0x0?void 0x0:_0x10a8b1['si'])!==void 0x0&&(_0x356988[_0x400a29][_0x320cf1]['si']=null,delete _0x14768f['si']),(_0x10a8b1===null||_0x10a8b1===void 0x0?void 0x0:_0x10a8b1['p'])!==void 0x0&&(_0x356988[_0x400a29][_0x320cf1]['p']=null,delete _0x14768f['p']),(_0x10a8b1===null||_0x10a8b1===void 0x0?void 0x0:_0x10a8b1['s'])!==void 0x0&&(_0x356988[_0x400a29][_0x320cf1]['s']=null,delete _0x14768f['s']),_0x2e43e9[_0x574931(0x408)](_0x400a29,_0x320cf1,_0x14768f),_0x218d64=!![];}}}),_0x218d64&&(_0x161964[_0x18b81b(0x25e)]({..._0x578f88}),_0x52e2d4[_0x18b81b(0x235)][_0x18b81b(0x3e4)]['splice'](_0x36434e,0x1),_0x36434e--);}_0x561c7e[_0x18b81b(0x235)][_0x18b81b(0x2f8)]=_0x2e43e9[_0x18b81b(0x414)]();if(_0x161964[_0x18b81b(0x338)]>0x0)_0x4b1759[_0x18b81b(0x388)]({'id':_univerjs_sheets[_0x18b81b(0x3ff)]['id'],'params':{'unitId':_0x598bd2[_0x18b81b(0x235)]['unitId'],'subUnitId':_0x598bd2[_0x18b81b(0x235)][_0x18b81b(0x303)],'ranges':Array[_0x18b81b(0x270)](_0x161964)}});if(_0x52e2d4[_0x18b81b(0x235)][_0x18b81b(0x3e4)][_0x18b81b(0x367)]===0x0)_0x52e2d4['id']=_univerjs_sheets['EmptyMutation']['id'];if(Object[_0x18b81b(0x2fd)](_0x356988)[_0x18b81b(0x367)]>0x0)_0x187d94[_0x18b81b(0x388)]({'id':_univerjs_sheets[_0x18b81b(0x35c)]['id'],'params':{'unitId':_0x598bd2['params']['unitId'],'subUnitId':_0x598bd2['params'][_0x18b81b(0x303)],'cellValue':_0x356988}});return{'m1Prime':_0x187d94[_0x18b81b(0x367)]>0x1?_0x187d94:_0x187d94[0x0],'m2Prime':_0x4b1759[_0x18b81b(0x367)]>0x1?_0x4b1759:_0x4b1759[0x0]};}},addWorksheetMergeMutationWithSetSelection={'m1':_univerjs_sheets[_0x4fd226(0x340)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x2dd)]['id'],'handler'(_0x28e42f,_0x1b5ba2){const _0x1e4838=_0x4fd226,_0x110900={'m1Prime':[],'m2Prime':[]};if(_0x28e42f[_0x1e4838(0x235)][_0x1e4838(0x3cc)]!==_0x1b5ba2[_0x1e4838(0x235)]['unitId']||_0x28e42f[_0x1e4838(0x235)][_0x1e4838(0x303)]!==_0x1b5ba2[_0x1e4838(0x235)]['subUnitId'])return _0x110900;const _0x5ed6ff=_univerjs_core[_0x1e4838(0x1d5)][_0x1e4838(0x28e)](_0x1b5ba2),_0x50c8d7=_0x5ed6ff[_0x1e4838(0x235)][_0x1e4838(0x399)];_0x50c8d7[_0x1e4838(0x222)]((_0x108102,_0x53ac16)=>{const _0x571b33=_0x1e4838,{range:_0x3bcd0e,primary:_0x18ea2e}=_0x108102;_0x28e42f['params']['ranges'][_0x571b33(0x222)](_0x226cde=>{const _0x544d21=_0x571b33;_univerjs_core[_0x544d21(0x394)]['intersects'](_0x226cde,_0x3bcd0e)&&(_0x3bcd0e[_0x544d21(0x26f)]=Math['min'](_0x226cde[_0x544d21(0x26f)],_0x3bcd0e[_0x544d21(0x26f)]),_0x3bcd0e[_0x544d21(0x28f)]=Math['min'](_0x226cde[_0x544d21(0x28f)],_0x3bcd0e['startColumn']),_0x3bcd0e[_0x544d21(0x3e2)]=Math['max'](_0x226cde[_0x544d21(0x3e2)],_0x3bcd0e[_0x544d21(0x3e2)]),_0x3bcd0e['endColumn']=Math['max'](_0x226cde['endColumn'],_0x3bcd0e[_0x544d21(0x337)]));if(_0x18ea2e&&_univerjs_core['Rectangle'][_0x544d21(0x2da)](_0x226cde,_0x18ea2e)&&_0x53ac16===_0x50c8d7['length']-0x1){if(_0x18ea2e['startColumn']===_0x226cde[_0x544d21(0x28f)]&&_0x18ea2e[_0x544d21(0x26f)]&&_0x226cde[_0x544d21(0x26f)])_0x18ea2e['isMergedMainCell']=!![];_0x18ea2e['startRow']=Math[_0x544d21(0x1f2)](_0x226cde['startRow'],_0x18ea2e[_0x544d21(0x26f)]),_0x18ea2e[_0x544d21(0x28f)]=Math[_0x544d21(0x1f2)](_0x226cde[_0x544d21(0x28f)],_0x18ea2e[_0x544d21(0x28f)]),_0x18ea2e[_0x544d21(0x3e2)]=Math[_0x544d21(0x2aa)](_0x226cde['endRow'],_0x18ea2e[_0x544d21(0x3e2)]),_0x18ea2e[_0x544d21(0x337)]=Math[_0x544d21(0x2aa)](_0x226cde['endColumn'],_0x18ea2e[_0x544d21(0x337)]),_0x18ea2e[_0x544d21(0x1d9)]=!![];}});}),_0x50c8d7[_0x1e4838(0x218)]((_0x352182,_0x5e406f)=>{const _0x51a60a=_0x1e4838,_0x4fcff4=_0x352182[_0x51a60a(0x2d0)],_0x4c938f=_0x5e406f[_0x51a60a(0x2d0)];if(_0x4fcff4['startRow']===_0x4c938f[_0x51a60a(0x26f)])return _0x4fcff4[_0x51a60a(0x28f)]-_0x4c938f['startColumn'];return _0x4fcff4[_0x51a60a(0x26f)]-_0x4c938f[_0x51a60a(0x26f)];});const _0x1c8a7b=[];let _0x423b83=null;for(const _0x1a619e of _0x50c8d7)if(_0x423b83===null||!_univerjs_core[_0x1e4838(0x394)][_0x1e4838(0x2da)](_0x423b83[_0x1e4838(0x2d0)],_0x1a619e[_0x1e4838(0x2d0)]))_0x1c8a7b[_0x1e4838(0x285)](_0x1a619e),_0x423b83=_0x1a619e;else{_0x423b83['range'][_0x1e4838(0x26f)]=Math['min'](_0x423b83['range']['startRow'],_0x1a619e['range'][_0x1e4838(0x26f)]),_0x423b83[_0x1e4838(0x2d0)][_0x1e4838(0x28f)]=Math[_0x1e4838(0x1f2)](_0x423b83[_0x1e4838(0x2d0)][_0x1e4838(0x28f)],_0x1a619e['range'][_0x1e4838(0x28f)]),_0x423b83[_0x1e4838(0x2d0)][_0x1e4838(0x3e2)]=Math[_0x1e4838(0x2aa)](_0x423b83['range'][_0x1e4838(0x3e2)],_0x1a619e[_0x1e4838(0x2d0)]['endRow']),_0x423b83[_0x1e4838(0x2d0)]['endColumn']=Math[_0x1e4838(0x2aa)](_0x423b83[_0x1e4838(0x2d0)][_0x1e4838(0x337)],_0x1a619e[_0x1e4838(0x2d0)][_0x1e4838(0x337)]);if(_0x1a619e[_0x1e4838(0x1cd)])_0x423b83[_0x1e4838(0x1cd)]=_0x1a619e[_0x1e4838(0x1cd)];}return _0x5ed6ff[_0x1e4838(0x235)]['selections']=_0x1c8a7b,_0x110900[_0x1e4838(0x3d9)][_0x1e4838(0x285)](_0x5ed6ff),_0x110900;}},addWorksheetProtectionWithAddComment={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_thread_comment['AddCommentMutation']['id'],'handler':(_0x33bece,_0x1c7898)=>{const _0x4d2119=_0x4fd226,_0x2958c5={'m1Prime':_0x33bece,'m2Prime':_0x1c7898};if(_0x33bece[_0x4d2119(0x235)][_0x4d2119(0x3cc)]!==_0x1c7898[_0x4d2119(0x235)][_0x4d2119(0x3cc)]||_0x33bece[_0x4d2119(0x235)]['subUnitId']!==_0x1c7898[_0x4d2119(0x235)][_0x4d2119(0x303)])return _0x2958c5;return{'error':new Error('add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20comment')};}},addWorksheetProtectionWithAddConditionRule={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0x4fd226(0x3b5)]['id'],'handler':(_0x97f636,_0x3d50e3)=>{const _0x2b549d=_0x4fd226,_0x982ce5={'m1Prime':_0x97f636,'m2Prime':_0x3d50e3};if(_0x97f636['params'][_0x2b549d(0x3cc)]!==_0x3d50e3[_0x2b549d(0x235)]['unitId']||_0x97f636[_0x2b549d(0x235)][_0x2b549d(0x303)]!==_0x3d50e3['params'][_0x2b549d(0x303)])return _0x982ce5;return{'error':new Error(_0x2b549d(0x2e4))};}},addWorksheetProtectionWithAddRangeProtection={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x207)]['id'],'handler':(_0x357245,_0x3cc13c)=>{const _0x39e847=_0x4fd226,_0x47957c={'m1Prime':_0x357245,'m2Prime':_0x3cc13c};if(_0x357245[_0x39e847(0x235)][_0x39e847(0x3cc)]!==_0x3cc13c[_0x39e847(0x235)][_0x39e847(0x3cc)]||_0x357245['params'][_0x39e847(0x303)]!==_0x3cc13c[_0x39e847(0x235)][_0x39e847(0x303)])return _0x47957c;return{'error':new Error(_0x39e847(0x39a))};}},addWorksheetProtectionWithAddWorksheetMerge={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'handler':(_0x6b7e8e,_0x291fcb)=>{const _0x1e8c8f=_0x4fd226,_0x2ad9fd={'m1Prime':_0x6b7e8e,'m2Prime':_0x291fcb};if(_0x6b7e8e['params']['unitId']!==_0x291fcb['params'][_0x1e8c8f(0x3cc)]||_0x6b7e8e['params'][_0x1e8c8f(0x303)]!==_0x291fcb[_0x1e8c8f(0x235)][_0x1e8c8f(0x303)])return _0x2ad9fd;return{'error':new Error(_0x1e8c8f(0x401))};}},addWorksheetProtectionWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'handler':(_0x278c77,_0xef502)=>{const _0x32f263=_0x4fd226,_0xddb020={'m1Prime':_0x278c77,'m2Prime':_0xef502};if(_0x278c77['params'][_0x32f263(0x3cc)]!==_0xef502[_0x32f263(0x235)][_0x32f263(0x3cc)]||_0x278c77[_0x32f263(0x235)][_0x32f263(0x303)]!==_0xef502[_0x32f263(0x235)][_0x32f263(0x351)][_0x32f263(0x303)])return _0xddb020;return{'error':new Error('add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20protection')};}},addWorksheetProtectionWithChangeSheetOrder={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x1fc)]['id'],'handler':(_0x12ffac,_0x5dc389)=>{const _0x56639e=_0x4fd226,_0x5af1c0={'m1Prime':_0x12ffac,'m2Prime':_0x5dc389};if(_0x12ffac['params'][_0x56639e(0x3cc)]!==_0x5dc389[_0x56639e(0x235)]['unitId']||_0x12ffac[_0x56639e(0x235)][_0x56639e(0x303)]!==_0x5dc389[_0x56639e(0x235)]['subUnitId'])return _0x5af1c0;return{'error':new Error(_0x56639e(0x3b8))};}},addWorksheetProtectionWithDeleteConditionFormattingRule={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0x4fd226(0x371)]['id'],'handler':(_0x1780ed,_0x1c4c32)=>{const _0x3d10d6=_0x4fd226,_0x387ebd={'m1Prime':_0x1780ed,'m2Prime':_0x1c4c32};if(_0x1780ed[_0x3d10d6(0x235)][_0x3d10d6(0x3cc)]!==_0x1c4c32[_0x3d10d6(0x235)][_0x3d10d6(0x3cc)]||_0x1780ed[_0x3d10d6(0x235)][_0x3d10d6(0x303)]!==_0x1c4c32[_0x3d10d6(0x235)][_0x3d10d6(0x303)])return _0x387ebd;return{'error':new Error('add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20delete\x20conditional\x20formatting\x20rule')};}},addWorksheetProtectionWithInsertCol={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x342)]['id'],'handler':(_0xa1bff2,_0x35df33)=>{const _0x2f7a36=_0x4fd226,_0x343d5f={'m1Prime':_0xa1bff2,'m2Prime':_0x35df33};if(_0xa1bff2[_0x2f7a36(0x235)][_0x2f7a36(0x3cc)]!==_0x35df33[_0x2f7a36(0x235)][_0x2f7a36(0x3cc)]||_0xa1bff2[_0x2f7a36(0x235)][_0x2f7a36(0x303)]!==_0x35df33[_0x2f7a36(0x235)][_0x2f7a36(0x303)])return _0x343d5f;return{'error':new Error(_0x2f7a36(0x3a2))};}},addWorksheetProtectionWithInsertRow={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'handler':(_0x2f44b2,_0x407538)=>{const _0x3e936e=_0x4fd226,_0x17cd6b={'m1Prime':_0x2f44b2,'m2Prime':_0x407538};if(_0x2f44b2[_0x3e936e(0x235)]['unitId']!==_0x407538['params'][_0x3e936e(0x3cc)]||_0x2f44b2['params'][_0x3e936e(0x303)]!==_0x407538['params'][_0x3e936e(0x303)])return _0x17cd6b;return{'error':new Error(_0x3e936e(0x2be))};}},addWorksheetProtectionWithMoveCol={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_sheets['MoveColsMutation']['id'],'handler':(_0x2de511,_0xd929cf)=>{const _0x1c3c18=_0x4fd226,_0x45ba5e={'m1Prime':_0x2de511,'m2Prime':_0xd929cf};if(_0x2de511[_0x1c3c18(0x235)]['unitId']!==_0xd929cf[_0x1c3c18(0x235)][_0x1c3c18(0x3cc)]||_0x2de511[_0x1c3c18(0x235)][_0x1c3c18(0x303)]!==_0xd929cf[_0x1c3c18(0x235)][_0x1c3c18(0x303)])return _0x45ba5e;return{'error':new Error(_0x1c3c18(0x2db))};}},addWorksheetProtectionWithMoveRange={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler':(_0x415b49,_0x5dbb25)=>{const _0x3b56c9=_0x4fd226,_0x5ab553={'m1Prime':_0x415b49,'m2Prime':_0x5dbb25};if(_0x415b49[_0x3b56c9(0x235)]['unitId']!==_0x5dbb25['params']['unitId']||_0x415b49[_0x3b56c9(0x235)][_0x3b56c9(0x303)]!==_0x5dbb25[_0x3b56c9(0x235)][_0x3b56c9(0x270)][_0x3b56c9(0x303)])return _0x5ab553;return{'error':new Error(_0x3b56c9(0x3d0))};}},addWorksheetProtectionWithMoveRow={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_sheets['MoveRowsMutation']['id'],'handler':(_0x105f06,_0x2d27b4)=>{const _0x2fb112=_0x4fd226,_0x20bced={'m1Prime':_0x105f06,'m2Prime':_0x2d27b4};if(_0x105f06[_0x2fb112(0x235)][_0x2fb112(0x3cc)]!==_0x2d27b4[_0x2fb112(0x235)][_0x2fb112(0x3cc)]||_0x105f06[_0x2fb112(0x235)][_0x2fb112(0x303)]!==_0x2d27b4[_0x2fb112(0x235)][_0x2fb112(0x303)])return _0x20bced;return{'error':new Error(_0x2fb112(0x40d))};}},addWorksheetProtectionWithRemoveCol={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_sheets['RemoveColMutation']['id'],'handler':(_0x132f06,_0x45e8f3)=>{const _0x46f86f=_0x4fd226,_0x10df7a={'m1Prime':_0x132f06,'m2Prime':_0x45e8f3};if(_0x132f06[_0x46f86f(0x235)]['unitId']!==_0x45e8f3['params'][_0x46f86f(0x3cc)]||_0x132f06[_0x46f86f(0x235)][_0x46f86f(0x303)]!==_0x45e8f3[_0x46f86f(0x235)][_0x46f86f(0x303)])return _0x10df7a;return{'error':new Error(_0x46f86f(0x372))};}},addWorksheetProtectionWithRemoveDataValidation={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_data_validation[_0x4fd226(0x2a3)]['id'],'handler':(_0xe9cf44,_0x21213a)=>{const _0x57e335=_0x4fd226,_0x58062b={'m1Prime':_0xe9cf44,'m2Prime':_0x21213a};if(_0xe9cf44[_0x57e335(0x235)][_0x57e335(0x3cc)]!==_0x21213a[_0x57e335(0x235)][_0x57e335(0x3cc)]||_0xe9cf44[_0x57e335(0x235)]['subUnitId']!==_0x21213a[_0x57e335(0x235)]['subUnitId'])return _0x58062b;return{'error':new Error(_0x57e335(0x2fb))};}},addWorksheetProtectionWithRemoveNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x20e)]['id'],'handler':(_0x1c3ab1,_0xcd73e9)=>{const _0xc0b9e8=_0x4fd226,_0x294260={'m1Prime':_0x1c3ab1,'m2Prime':_0xcd73e9};if(_0x1c3ab1[_0xc0b9e8(0x235)][_0xc0b9e8(0x3cc)]!==_0xcd73e9[_0xc0b9e8(0x235)][_0xc0b9e8(0x3cc)]||_0x1c3ab1[_0xc0b9e8(0x235)][_0xc0b9e8(0x303)]!==_0xcd73e9[_0xc0b9e8(0x235)][_0xc0b9e8(0x303)])return _0x294260;return{'error':new Error(_0xc0b9e8(0x204))};}},addWorksheetProtectionWithRemoveRow={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'handler':(_0xcbfc7,_0x29cb4e)=>{const _0x2b24dc=_0x4fd226,_0x23d948={'m1Prime':_0xcbfc7,'m2Prime':_0x29cb4e};if(_0xcbfc7[_0x2b24dc(0x235)][_0x2b24dc(0x3cc)]!==_0x29cb4e['params'][_0x2b24dc(0x3cc)]||_0xcbfc7['params'][_0x2b24dc(0x303)]!==_0x29cb4e[_0x2b24dc(0x235)][_0x2b24dc(0x303)])return _0x23d948;return{'error':new Error(_0x2b24dc(0x293))};}},addWorksheetProtectionWithRemoveFilter={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_sheets_filter[_0x4fd226(0x290)]['id'],'handler':(_0x494870,_0x2f1fe6)=>{const _0x311053=_0x4fd226,_0x523aef={'m1Prime':_0x494870,'m2Prime':_0x2f1fe6};if(_0x494870[_0x311053(0x235)][_0x311053(0x3cc)]!==_0x2f1fe6[_0x311053(0x235)][_0x311053(0x3cc)]||_0x494870['params'][_0x311053(0x303)]!==_0x2f1fe6[_0x311053(0x235)]['subUnitId'])return _0x523aef;return{'error':new Error(_0x311053(0x3fa))};}},addWorksheetProtectionWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3ff)]['id'],'handler':(_0x13d14a,_0xc56312)=>{const _0x1c28a9=_0x4fd226,_0x3cfc01={'m1Prime':_0x13d14a,'m2Prime':_0xc56312};if(_0x13d14a[_0x1c28a9(0x235)][_0x1c28a9(0x3cc)]!==_0xc56312[_0x1c28a9(0x235)][_0x1c28a9(0x3cc)]||_0x13d14a['params'][_0x1c28a9(0x303)]!==_0xc56312[_0x1c28a9(0x235)][_0x1c28a9(0x303)])return _0x3cfc01;return{'error':new Error(_0x1c28a9(0x3d1))};}},addWorksheetProtectionWithRemoveWorksheet={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x321)]['id'],'handler':(_0xe18926,_0x1ec76b)=>{const _0x5d1e5e=_0x4fd226;if(_0xe18926[_0x5d1e5e(0x235)][_0x5d1e5e(0x3cc)]!==_0x1ec76b[_0x5d1e5e(0x235)][_0x5d1e5e(0x3cc)]||_0xe18926[_0x5d1e5e(0x235)]['subUnitId']!==_0x1ec76b[_0x5d1e5e(0x235)][_0x5d1e5e(0x303)])return{'m1Prime':_0xe18926,'m2Prime':_0x1ec76b};return{'error':new Error('add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20remove\x20sheet')};}},addWorksheetProtectionWithSetConditionalFormattingRule={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0x4fd226(0x1fa)]['id'],'handler':(_0x57e91c,_0x39b18e)=>{const _0x5f5a92=_0x4fd226,_0x15d1c0={'m1Prime':_0x57e91c,'m2Prime':_0x39b18e};if(_0x57e91c[_0x5f5a92(0x235)][_0x5f5a92(0x3cc)]!==_0x39b18e[_0x5f5a92(0x235)][_0x5f5a92(0x3cc)]||_0x57e91c[_0x5f5a92(0x235)]['subUnitId']!==_0x39b18e[_0x5f5a92(0x235)][_0x5f5a92(0x303)])return _0x15d1c0;return{'error':new Error('add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20conditional\x20formatting\x20rule')};}},addWorksheetProtectionWithSetFrozen={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x1d3)]['id'],'handler':(_0x4f5ffb,_0x35035b)=>{const _0x48734e=_0x4fd226,_0x1f406a={'m1Prime':_0x4f5ffb,'m2Prime':_0x35035b};if(_0x4f5ffb[_0x48734e(0x235)][_0x48734e(0x3cc)]!==_0x35035b[_0x48734e(0x235)][_0x48734e(0x3cc)]||_0x4f5ffb['params'][_0x48734e(0x303)]!==_0x35035b[_0x48734e(0x235)]['subUnitId'])return _0x1f406a;return{'error':new Error('add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20frozen')};}},addWorksheetProtectionWithSetNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3f8)]['id'],'handler':(_0x46e4aa,_0x21aba7)=>{const _0x3c60cc=_0x4fd226,_0x2cbac6={'m1Prime':_0x46e4aa,'m2Prime':_0x21aba7};if(_0x46e4aa['params']['unitId']!==_0x21aba7[_0x3c60cc(0x235)]['unitId']||_0x46e4aa[_0x3c60cc(0x235)][_0x3c60cc(0x303)]!==_0x21aba7[_0x3c60cc(0x235)][_0x3c60cc(0x303)])return _0x2cbac6;return{'error':new Error(_0x3c60cc(0x3f4))};}},addWorksheetProtectionWithSetRangeProtection={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'handler':(_0x226acf,_0x3d752e)=>{const _0x1a00c4=_0x4fd226,_0x424d86={'m1Prime':_0x226acf,'m2Prime':_0x3d752e};if(_0x226acf[_0x1a00c4(0x235)][_0x1a00c4(0x3cc)]!==_0x3d752e[_0x1a00c4(0x235)]['unitId']||_0x226acf[_0x1a00c4(0x235)][_0x1a00c4(0x303)]!==_0x3d752e[_0x1a00c4(0x235)]['subUnitId'])return _0x424d86;return{'error':new Error('add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20protection')};}},addWorksheetProtectionWithSetWorksheetColWidth={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_sheets['SetWorksheetColWidthMutation']['id'],'handler':(_0x4c1104,_0x358911)=>{const _0x3265cd=_0x4fd226,_0x464c16={'m1Prime':_0x4c1104,'m2Prime':_0x358911};if(_0x4c1104['params'][_0x3265cd(0x3cc)]!==_0x358911['params']['unitId']||_0x4c1104[_0x3265cd(0x235)]['subUnitId']!==_0x358911[_0x3265cd(0x235)][_0x3265cd(0x303)])return _0x464c16;return{'error':new Error(_0x3265cd(0x363))};}},addWorksheetProtectionWithSetWorksheetName={'m1':_univerjs_sheets['AddWorksheetProtectionMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x1d7)]['id'],'handler':(_0x505557,_0x3e2f7d)=>{const _0x5b7fc9=_0x4fd226,_0x577467={'m1Prime':_0x505557,'m2Prime':_0x3e2f7d};if(_0x505557[_0x5b7fc9(0x235)]['unitId']!==_0x3e2f7d['params'][_0x5b7fc9(0x3cc)]||_0x505557[_0x5b7fc9(0x235)]['subUnitId']!==_0x3e2f7d[_0x5b7fc9(0x235)]['subUnitId'])return _0x577467;return{'error':new Error('add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20set\x20worksheet\x20name')};}},addWorksheetProtectionWithUpdateComment={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_thread_comment['UpdateCommentMutation']['id'],'handler':(_0x460082,_0x208417)=>{const _0x389dfc=_0x4fd226,_0x514b3d={'m1Prime':_0x460082,'m2Prime':_0x208417};if(_0x460082['params']['unitId']!==_0x208417['params']['unitId']||_0x460082[_0x389dfc(0x235)]['subUnitId']!==_0x208417[_0x389dfc(0x235)][_0x389dfc(0x303)])return _0x514b3d;return{'error':new Error(_0x389dfc(0x2cb))};}},addWorksheetProtectionWithUpdateDataValidation={'m1':_univerjs_sheets[_0x4fd226(0x406)]['id'],'m2':_univerjs_data_validation[_0x4fd226(0x1d4)]['id'],'handler':(_0x5f1a64,_0x5e8ec8)=>{const _0x17139c=_0x4fd226,_0x5c6b0b={'m1Prime':_0x5f1a64,'m2Prime':_0x5e8ec8};if(_0x5f1a64[_0x17139c(0x235)][_0x17139c(0x3cc)]!==_0x5e8ec8[_0x17139c(0x235)][_0x17139c(0x3cc)]||_0x5f1a64['params'][_0x17139c(0x303)]!==_0x5e8ec8[_0x17139c(0x235)][_0x17139c(0x303)])return _0x5c6b0b;return{'error':new Error('add\x20worksheet\x20protection\x20is\x20conflict\x20with\x20update\x20data\x20validation\x20rule')};}},deleteCommentMutationWithAdd={'m1':_univerjs_thread_comment[_0x4fd226(0x393)]['id'],'m2':_univerjs_thread_comment[_0x4fd226(0x2de)]['id'],'handler':(_0x303bf0,_0x433247)=>{const _0x48c512=_0x4fd226,_0x3f14d6=_0x303bf0['params'],_0x3fdbfc=_0x433247['params'];if(_0x3f14d6[_0x48c512(0x3cc)]===_0x3fdbfc[_0x48c512(0x3cc)]&&_0x3f14d6[_0x48c512(0x303)]===_0x3fdbfc['subUnitId']&&_0x3f14d6['commentId']===_0x3fdbfc[_0x48c512(0x40c)][_0x48c512(0x3a9)])return{'m1Prime':_0x303bf0,'m2Prime':[]};return{'m1Prime':_0x303bf0,'m2Prime':_0x433247};}},deleteCommentMutationWithSelf={'m1':_univerjs_thread_comment[_0x4fd226(0x393)]['id'],'m2':_univerjs_thread_comment[_0x4fd226(0x393)]['id'],'handler':(_0x182026,_0x1a4499)=>{const _0x23fc21=_0x4fd226,_0x4a06b6=_0x182026[_0x23fc21(0x235)],_0x5b2d23=_0x1a4499[_0x23fc21(0x235)],_0x57b0e7={'m1Prime':_0x182026,'m2Prime':_0x1a4499};if(_0x4a06b6[_0x23fc21(0x3cc)]!==_0x5b2d23[_0x23fc21(0x3cc)]||_0x4a06b6[_0x23fc21(0x303)]!==_0x5b2d23[_0x23fc21(0x303)]||_0x4a06b6[_0x23fc21(0x3e1)]!==_0x5b2d23[_0x23fc21(0x3e1)])return _0x57b0e7;return{'m1Prime':[],'m2Prime':[]};}},deleteConditionalFormattingRuleMutationWithSelf={'m1':_univerjs_sheets_conditional_formatting[_0x4fd226(0x371)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0x4fd226(0x371)]['id'],'handler'(_0x295726,_0x1064c2){return{'m1Prime':_0x295726,'m2Prime':_0x1064c2};}},transformAddCommentWithRefRange=(_0x11b046,_0x182ab4)=>{const _0x46e975=_0x4fd226,_0x22081c=(0x0,_univerjs_engine_formula[_0x46e975(0x25c)])(_0x11b046[_0x46e975(0x235)][_0x46e975(0x40c)][_0x46e975(0x38b)]),_0x596eaa=(0x0,_univerjs_sheets[_0x46e975(0x241)])({'startColumn':_0x22081c['column'],'endColumn':_0x22081c[_0x46e975(0x35f)],'startRow':_0x22081c[_0x46e975(0x1c4)],'endRow':_0x22081c[_0x46e975(0x1c4)]},_0x182ab4);if(!_0x596eaa)return[{'id':_univerjs_thread_comment['DeleteCommentMutation']['id'],'params':{..._0x11b046['params'],'comment':void 0x0,'commentId':_0x11b046[_0x46e975(0x235)][_0x46e975(0x40c)]['id']}}];const _0x1460c3=(0x0,_univerjs_engine_formula[_0x46e975(0x3de)])(_0x596eaa);if(_0x1460c3===_0x11b046[_0x46e975(0x235)]['comment'][_0x46e975(0x38b)])return[];return[{'id':_univerjs_thread_comment['UpdateCommentRefMutation']['id'],'params':{..._0x11b046[_0x46e975(0x235)],'comment':void 0x0,'payload':{'ref':_0x1460c3,'commentId':_0x11b046[_0x46e975(0x235)][_0x46e975(0x40c)]['id']}}}];},insertColWithAddComment={'m1':_univerjs_sheets[_0x4fd226(0x342)]['id'],'m2':_univerjs_thread_comment[_0x4fd226(0x2de)]['id'],'handler':(_0x12b5d7,_0x1bba52)=>{const _0x4f32c7=_0x4fd226,_0x4a6148={'m1Prime':_0x12b5d7,'m2Prime':_0x1bba52};if(_0x12b5d7[_0x4f32c7(0x235)][_0x4f32c7(0x3cc)]!==_0x1bba52[_0x4f32c7(0x235)]['unitId']||_0x12b5d7['params']['subUnitId']!==_0x1bba52['params']['subUnitId'])return _0x4a6148;const _0x4f4f4c=transformAddCommentWithRefRange(_0x1bba52,{'id':_univerjs_sheets[_0x4f32c7(0x251)]['id'],'params':{'unitId':_0x12b5d7[_0x4f32c7(0x235)]['unitId'],'subUnitId':_0x12b5d7['params'][_0x4f32c7(0x303)],'range':_0x12b5d7[_0x4f32c7(0x235)][_0x4f32c7(0x2d0)]}});return{'m1Prime':[_0x12b5d7,..._0x4f4f4c],'m2Prime':[_0x1bba52,..._0x4f4f4c]};}};function toColumn(_0x5117dc){const _0x2a8d5f=_0x4fd226;return{..._0x5117dc,'rangeType':_univerjs_core[_0x2a8d5f(0x279)]['COLUMN']};}function moveRows(_0xc7b14a,_0x32939b,_0x120d5d,_0x1c0147){const _0x530622=_0x4fd226;if(_0x1c0147<0x0){for(let _0x2cc5eb=_0x32939b;_0x2cc5eb<_0x32939b+_0x120d5d;_0x2cc5eb++)if(_0xc7b14a[_0x530622(0x29a)](_0x2cc5eb)){if(!_0xc7b14a[_0x530622(0x29a)](_0x2cc5eb+_0x1c0147))_0xc7b14a[_0x2cc5eb+_0x1c0147]={};const _0x2fbb9c=_0xc7b14a[_0x2cc5eb],_0x3113d0=Object[_0x530622(0x2fd)](_0x2fbb9c)['map'](Number)[_0x530622(0x218)]((_0x445ed6,_0x339aa6)=>_0x445ed6-_0x339aa6);for(const _0x292ce0 of _0x3113d0)_0xc7b14a[_0x2cc5eb+_0x1c0147][_0x292ce0]=_0x2fbb9c[_0x292ce0];delete _0xc7b14a[_0x2cc5eb];}else delete _0xc7b14a[_0x2cc5eb+_0x1c0147];}else{for(let _0xcc3eda=_0x32939b+_0x120d5d-0x1;_0xcc3eda>=_0x32939b;_0xcc3eda--)if(_0xc7b14a['hasOwnProperty'](_0xcc3eda)){if(!_0xc7b14a['hasOwnProperty'](_0xcc3eda+_0x1c0147))_0xc7b14a[_0xcc3eda+_0x1c0147]={};const _0x4896e6=_0xc7b14a[_0xcc3eda],_0x56e745=Object['keys'](_0x4896e6)[_0x530622(0x208)](Number)[_0x530622(0x218)]((_0x327e55,_0x202a62)=>_0x327e55-_0x202a62);for(const _0x3ae928 of _0x56e745)_0xc7b14a[_0xcc3eda+_0x1c0147][_0x3ae928]=_0x4896e6[_0x3ae928];delete _0xc7b14a[_0xcc3eda];}else delete _0xc7b14a[_0xcc3eda+_0x1c0147];}}function moveColumns(_0x334765,_0x1f4248,_0x1b489b,_0x558b53){const _0x1f1e1f=_0x4fd226,_0x36f4ab=Object[_0x1f1e1f(0x2fd)](_0x334765)[_0x1f1e1f(0x208)](Number)[_0x1f1e1f(0x218)]((_0x42a15d,_0x4db911)=>_0x42a15d-_0x4db911);if(_0x558b53<0x0)for(const _0x4863ae of _0x36f4ab){const _0x395f5c=_0x334765[_0x4863ae];for(let _0x158061=_0x1f4248;_0x158061<_0x1f4248+_0x1b489b;_0x158061++)if(_0x395f5c['hasOwnProperty'](_0x158061))_0x395f5c[_0x158061+_0x558b53]=_0x395f5c[_0x158061],delete _0x395f5c[_0x158061];else delete _0x395f5c[_0x158061+_0x558b53];}else for(const _0x1b8492 of _0x36f4ab){const _0x5e19ae=_0x334765[_0x1b8492];for(let _0x111739=_0x1f4248+_0x1b489b-0x1;_0x111739>=_0x1f4248;_0x111739--)if(_0x5e19ae[_0x1f1e1f(0x29a)](_0x111739))_0x5e19ae[_0x111739+_0x558b53]=_0x5e19ae[_0x111739],delete _0x5e19ae[_0x111739];else delete _0x5e19ae[_0x111739+_0x558b53];}}function RangeSubtractRanges(_0x11b8dd,_0x23b311){const _0x3e3aa0=_0x4fd226;return new _univerjs_sheets['RangeMergeUtil']()[_0x3e3aa0(0x25e)](_0x11b8dd)[_0x3e3aa0(0x281)](..._0x23b311)['merge']();}function processFormulaString(_0x18aecf,_0x1daa7b,_0x5d3509,_0x1f783e){const _0x149fd5=_0x4fd226,_0x2ea6b0=new _univerjs_engine_formula[(_0x149fd5(0x3f7))]()[_0x149fd5(0x3ac)](_0x5d3509);if(_0x2ea6b0==null)return _0x5d3509;const _0x350e5f=[];for(let _0x18b33f=0x0,_0xcfb1b3=_0x2ea6b0[_0x149fd5(0x367)];_0x18b33f<_0xcfb1b3;_0x18b33f++){const _0x35dd28=_0x2ea6b0[_0x18b33f];if(typeof _0x35dd28===_0x149fd5(0x349)||_0x35dd28[_0x149fd5(0x246)]!==_univerjs_engine_formula[_0x149fd5(0x1e9)][_0x149fd5(0x2f6)]){_0x350e5f[_0x149fd5(0x285)](_0x35dd28);continue;}const {token:_0x233444}=_0x35dd28,{range:_0x1db6e1,sheetName:_0x51552e,unitId:_0x115b6c}=(0x0,_univerjs_engine_formula[_0x149fd5(0x1e5)])(_0x233444);if((_0x18aecf===_0x115b6c||_0x115b6c==='')&&(_0x1daa7b===_0x51552e||_0x51552e==='')){const _0x354b06=_0x1f783e(_0x1db6e1),_0x372953=_0x354b06?(0x0,_univerjs_engine_formula[_0x149fd5(0x343)])({'range':_0x354b06,'sheetName':_0x51552e,'unitId':_0x115b6c}):_univerjs_engine_formula[_0x149fd5(0x1f3)][_0x149fd5(0x223)];_0x350e5f[_0x149fd5(0x285)]({..._0x35dd28,'token':_0x372953});}else _0x350e5f[_0x149fd5(0x285)](_0x35dd28);}return'='+(0x0,_univerjs_engine_formula[_0x149fd5(0x3c7)])(_0x350e5f);}function intersect(_0x1fc1d5,_0x37f9dc){const _0x220269=_0x4fd226;return _0x1fc1d5[_0x220269(0x24d)]<=_0x37f9dc['end']&&_0x1fc1d5[_0x220269(0x1f8)]>=_0x37f9dc['start'];}function _0x3e21(_0x10a970,_0x55ed6d){_0x10a970=_0x10a970-0x1ba;const _0x159cbc=_0x159c();let _0x3e219e=_0x159cbc[_0x10a970];return _0x3e219e;}function contain(_0x4e154c,_0x3e62ee){const _0x5c0f19=_0x4fd226;return _0x4e154c['start']<=_0x3e62ee[_0x5c0f19(0x24d)]&&_0x4e154c[_0x5c0f19(0x1f8)]>=_0x3e62ee['end'];}function lineSubtractLines(_0x5e1bc4,_0x4e43c6){const _0x727697=_0x4fd226;let _0x3a139e=[_0x5e1bc4];for(const _0x32292d of _0x4e43c6){const _0x40f78b=[];for(const _0x219930 of _0x3a139e)_0x40f78b[_0x727697(0x285)](...lineSubtractLine(_0x219930,_0x32292d));_0x3a139e=_0x40f78b;}return _0x3a139e;}function lineSubtractLine(_0x2b5487,_0x5e65b2){const _0x434719=_0x4fd226,_0x58ccff=[];if(contain(_0x5e65b2,_0x2b5487))return _0x58ccff;if(contain(_0x2b5487,_0x5e65b2)){const _0x49c031=_0x2b5487['start'],_0x56c608=_0x5e65b2[_0x434719(0x24d)]-0x1,_0x16cad1=_0x5e65b2['end']+0x1,_0x415b2c=_0x2b5487['end'];if(_0x49c031<=_0x56c608)_0x58ccff[_0x434719(0x285)]({'start':_0x49c031,'end':_0x56c608});if(_0x16cad1<=_0x415b2c)_0x58ccff[_0x434719(0x285)]({'start':_0x16cad1,'end':_0x415b2c});return _0x58ccff;}if(intersect(_0x2b5487,_0x5e65b2)){if(_0x2b5487[_0x434719(0x24d)]<_0x5e65b2[_0x434719(0x24d)])_0x58ccff[_0x434719(0x285)]({'start':_0x2b5487[_0x434719(0x24d)],'end':_0x5e65b2[_0x434719(0x24d)]-0x1});if(_0x2b5487[_0x434719(0x1f8)]>_0x5e65b2[_0x434719(0x1f8)])_0x58ccff[_0x434719(0x285)]({'start':_0x5e65b2[_0x434719(0x1f8)]+0x1,'end':_0x2b5487[_0x434719(0x1f8)]});return _0x58ccff;}return[_0x2b5487];}function handleInsert(_0x454564,_0x46ee47){const _0x5715b0=_0x4fd226,_0x18a7e9=(0x0,_univerjs_sheets['handleBaseInsertRange'])({'startColumn':_0x454564[_0x5715b0(0x24d)],'endColumn':_0x454564[_0x5715b0(0x1f8)],'startRow':0x0,'endRow':0x1,'rangeType':_univerjs_core[_0x5715b0(0x279)][_0x5715b0(0x3c1)]},{'startColumn':_0x46ee47[_0x5715b0(0x24d)],'endColumn':_0x46ee47[_0x5715b0(0x1f8)],'startRow':0x0,'endRow':0x1,'rangeType':_univerjs_core[_0x5715b0(0x279)][_0x5715b0(0x3c1)]});return{'start':_0x46ee47[_0x5715b0(0x24d)]+_0x18a7e9['step'],'end':_0x46ee47[_0x5715b0(0x1f8)]+_0x18a7e9[_0x5715b0(0x1e7)]+_0x18a7e9['length']};}function handleRemove(_0x512f65,_0x3ff142){const _0x26dcc0=_0x4fd226,_0xd3c47=(0x0,_univerjs_sheets['handleBaseRemoveRange'])({'startColumn':_0x512f65[_0x26dcc0(0x24d)],'endColumn':_0x512f65[_0x26dcc0(0x1f8)],'startRow':0x0,'endRow':0x1,'rangeType':_univerjs_core['RANGE_TYPE']['COLUMN']},{'startColumn':_0x3ff142['start'],'endColumn':_0x3ff142[_0x26dcc0(0x1f8)],'startRow':0x0,'endRow':0x1,'rangeType':_univerjs_core[_0x26dcc0(0x279)][_0x26dcc0(0x3c1)]});if(_0xd3c47===null)return null;return{'start':_0x3ff142['start']+_0xd3c47['step'],'end':_0x3ff142['end']+_0xd3c47['step']+_0xd3c47[_0x26dcc0(0x367)]};}function transformAddDataValidationWithRefRange(_0x4ba505,_0x1e5391){const _0x4a5962=_0x4fd226,{unitId:_0x1592e0,subUnitId:_0x269802}=_0x4ba505[_0x4a5962(0x235)],_0x333a54=_0x43cc30=>{return processFormulaString(_0x1592e0,_0x269802,_0x43cc30,_0x20780a=>{const _0x3b7666=_0x3e21;return(0x0,_univerjs_sheets[_0x3b7666(0x241)])(_0x20780a,_0x1e5391);});},_0x5aaf06=[],_0x390309=_0x54ed40=>{const _0x3f824d=_0x4a5962;var _0x1558a1,_0x234042;const _0x38d3ec=_0x54ed40[_0x3f824d(0x2ac)],_0x45b13a=_0x54ed40[_0x3f824d(0x3e4)]['map'](_0x2964a7=>(0x0,_univerjs_sheets[_0x3f824d(0x3a4)])(_0x2964a7,_0x1e5391)),_0x5499be=(_0x1558a1=_0x54ed40[_0x3f824d(0x30e)])!==null&&_0x1558a1!==void 0x0?_0x1558a1:'',_0x263c7c=(_0x234042=_0x54ed40[_0x3f824d(0x386)])!==null&&_0x234042!==void 0x0?_0x234042:'';let _0x18f5ea=_0x5499be,_0x2a1991=_0x263c7c;if((0x0,_univerjs_core['isFormulaString'])(_0x5499be))_0x18f5ea=_0x333a54(_0x5499be);if((0x0,_univerjs_core[_0x3f824d(0x299)])(_0x263c7c))_0x2a1991=_0x333a54(_0x263c7c);if(_0x18f5ea!==_0x5499be||_0x2a1991!==_0x263c7c)_0x5aaf06[_0x3f824d(0x285)]({'id':_univerjs_data_validation[_0x3f824d(0x1d4)]['id'],'params':{'unitId':_0x1592e0,'subUnitId':_0x269802,'ruleId':_0x38d3ec,'payload':{'type':_univerjs_data_validation[_0x3f824d(0x27d)][_0x3f824d(0x24f)],'payload':{'type':_0x54ed40[_0x3f824d(0x22b)],'formula1':_0x18f5ea,'formula2':_0x2a1991}}}});const _0x285122=_0x45b13a['flat']()[_0x3f824d(0x2ec)](Boolean);if(!(0x0,_univerjs_core[_0x3f824d(0x3ad)])(_0x54ed40[_0x3f824d(0x3e4)],_0x285122))_0x5aaf06[_0x3f824d(0x285)]({'id':_univerjs_data_validation[_0x3f824d(0x1d4)]['id'],'params':{'unitId':_0x1592e0,'subUnitId':_0x269802,'ruleId':_0x38d3ec,'payload':{'type':_univerjs_data_validation[_0x3f824d(0x27d)][_0x3f824d(0x40f)],'payload':_0x285122}}});};if(Array[_0x4a5962(0x3ca)](_0x4ba505[_0x4a5962(0x235)][_0x4a5962(0x351)]))_0x4ba505['params'][_0x4a5962(0x351)]['forEach'](_0x3d6040=>_0x390309(_0x3d6040));else _0x390309(_0x4ba505[_0x4a5962(0x235)][_0x4a5962(0x351)]);return _0x5aaf06;}const moveColMutationWithAddDataValidation={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_data_validation[_0x4fd226(0x2b6)]['id'],'handler'(_0x313687,_0x44d5d2){const _0x47fca9=_0x4fd226,_0x79ab83={'m1Prime':_0x313687,'m2Prime':_0x44d5d2};if(_0x313687[_0x47fca9(0x235)][_0x47fca9(0x3cc)]!==_0x44d5d2[_0x47fca9(0x235)][_0x47fca9(0x3cc)]||_0x313687[_0x47fca9(0x235)]['subUnitId']!==_0x44d5d2[_0x47fca9(0x235)][_0x47fca9(0x303)])return _0x79ab83;const _0x3f5f3a=transformAddDataValidationWithRefRange(_0x44d5d2,{'id':_univerjs_sheets[_0x47fca9(0x3b6)]['id'],'params':{'fromRange':_0x313687[_0x47fca9(0x235)][_0x47fca9(0x200)],'toRange':_0x313687[_0x47fca9(0x235)][_0x47fca9(0x26c)]}});return{'m1Prime':[_0x313687,..._0x3f5f3a],'m2Prime':[_0x44d5d2,..._0x3f5f3a]};}},insertColMutationWithAddDataValidation={'m1':_univerjs_sheets['InsertColMutation']['id'],'m2':_univerjs_data_validation['AddDataValidationMutation']['id'],'handler'(_0x43941e,_0x6c2db9){const _0x31c4a8=_0x4fd226,_0x12bdd4={'m1Prime':_0x43941e,'m2Prime':_0x6c2db9};if(_0x43941e[_0x31c4a8(0x235)]['unitId']!==_0x6c2db9[_0x31c4a8(0x235)][_0x31c4a8(0x3cc)]||_0x43941e['params'][_0x31c4a8(0x303)]!==_0x6c2db9['params'][_0x31c4a8(0x303)])return _0x12bdd4;const _0x149905=transformAddDataValidationWithRefRange(_0x6c2db9,{'id':_univerjs_sheets[_0x31c4a8(0x251)]['id'],'params':{'unitId':_0x43941e[_0x31c4a8(0x235)][_0x31c4a8(0x3cc)],'subUnitId':_0x43941e[_0x31c4a8(0x235)]['subUnitId'],'range':_0x43941e['params'][_0x31c4a8(0x2d0)]}});return{'m1Prime':[_0x43941e,..._0x149905],'m2Prime':[_0x6c2db9,..._0x149905]};}},insertColMutationWithAddMerge={'m1':_univerjs_sheets['InsertColMutation']['id'],'m2':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'handler'(_0x33b803,_0xae4ecf){const _0x514a86=_0x4fd226,_0x4b406e=addWorksheetMergeMutationWithInsertColMutation['handler'](_0xae4ecf,_0x33b803);if(isTransformMutationSuccess(_0x4b406e))return{'m1Prime':_0x4b406e['m2Prime'],'m2Prime':_0x4b406e[_0x514a86(0x253)]};else return _0x4b406e;}},insertColMutationWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x342)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x342)]['id'],'handler'(_0x412c56,_0x288241){const _0x3b3f8b=_0x4fd226,_0x46d0f2={'m1Prime':_0x412c56,'m2Prime':_0x288241};if(_0x412c56[_0x3b3f8b(0x235)][_0x3b3f8b(0x3cc)]!==_0x288241['params'][_0x3b3f8b(0x3cc)]||_0x412c56[_0x3b3f8b(0x235)][_0x3b3f8b(0x303)]!==_0x288241['params'][_0x3b3f8b(0x303)])return _0x46d0f2;const _0x24cea4=_univerjs_core[_0x3b3f8b(0x1d5)][_0x3b3f8b(0x28e)](_0x412c56),_0x1a044d=_univerjs_core[_0x3b3f8b(0x1d5)][_0x3b3f8b(0x28e)](_0x288241),_0x2fcda3=(0x0,_univerjs_sheets[_0x3b3f8b(0x1e1)])(toColumn(_0x412c56[_0x3b3f8b(0x235)][_0x3b3f8b(0x2d0)]),toColumn(_0x288241['params']['range']));if(_0x2fcda3)_0x1a044d['params'][_0x3b3f8b(0x2d0)][_0x3b3f8b(0x28f)]+=_0x2fcda3[_0x3b3f8b(0x1e7)],_0x1a044d[_0x3b3f8b(0x235)][_0x3b3f8b(0x2d0)][_0x3b3f8b(0x337)]+=_0x2fcda3[_0x3b3f8b(0x1e7)]+(_0x2fcda3[_0x3b3f8b(0x367)]||0x0);else _0x1a044d['id']=_univerjs_sheets[_0x3b3f8b(0x2fc)]['id'];if(_0x412c56[_0x3b3f8b(0x235)]['range'][_0x3b3f8b(0x28f)]!==_0x288241[_0x3b3f8b(0x235)][_0x3b3f8b(0x2d0)]['startColumn']){const _0xcd8ef6=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn(_0x288241[_0x3b3f8b(0x235)][_0x3b3f8b(0x2d0)]),toColumn(_0x412c56[_0x3b3f8b(0x235)]['range']));if(_0xcd8ef6)_0x24cea4['params'][_0x3b3f8b(0x2d0)][_0x3b3f8b(0x28f)]+=_0xcd8ef6[_0x3b3f8b(0x1e7)],_0x24cea4[_0x3b3f8b(0x235)][_0x3b3f8b(0x2d0)][_0x3b3f8b(0x337)]+=_0xcd8ef6[_0x3b3f8b(0x1e7)]+(_0xcd8ef6[_0x3b3f8b(0x367)]||0x0);else _0x24cea4['id']=_univerjs_sheets['EmptyMutation']['id'];}return{'m1Prime':_0x24cea4,'m2Prime':_0x1a044d};}},insertColMutationWithMoveCol={'m1':_univerjs_sheets[_0x4fd226(0x342)]['id'],'m2':_univerjs_sheets['MoveColsMutation']['id'],'handler'(_0x5a9318,_0x12eacd){const _0x5711b2=_0x4fd226,_0x97229d={'m1Prime':_0x5a9318,'m2Prime':_0x12eacd};if(_0x5a9318[_0x5711b2(0x235)]['unitId']!==_0x12eacd['params']['unitId']||_0x5a9318[_0x5711b2(0x235)]['subUnitId']!==_0x12eacd[_0x5711b2(0x235)]['subUnitId'])return _0x97229d;const _0x2d1a31=_univerjs_core[_0x5711b2(0x1d5)][_0x5711b2(0x28e)](_0x5a9318),_0x2dbd89=_univerjs_core[_0x5711b2(0x1d5)]['deepClone'](_0x12eacd),_0x334641=_0x12eacd[_0x5711b2(0x235)]['sourceRange'],_0x4c6aec=_0x12eacd['params'][_0x5711b2(0x26c)];if(_0x5a9318[_0x5711b2(0x235)]['range'][_0x5711b2(0x28f)]>_0x334641[_0x5711b2(0x28f)]&&_0x5a9318['params'][_0x5711b2(0x2d0)][_0x5711b2(0x28f)]<=_0x334641[_0x5711b2(0x337)]||_0x5a9318[_0x5711b2(0x235)][_0x5711b2(0x2d0)]['startColumn']>_0x4c6aec[_0x5711b2(0x28f)]&&_0x5a9318[_0x5711b2(0x235)][_0x5711b2(0x2d0)][_0x5711b2(0x28f)]<=_0x4c6aec['endColumn'])return{'error':new Error(_0x5711b2(0x34d))};const _0x1dab4b=(0x0,_univerjs_sheets[_0x5711b2(0x1e1)])(toColumn(_0x5a9318[_0x5711b2(0x235)][_0x5711b2(0x2d0)]),toColumn(_0x334641)),_0x167e4d=(0x0,_univerjs_sheets[_0x5711b2(0x1e1)])(toColumn(_0x5a9318['params'][_0x5711b2(0x2d0)]),toColumn(_0x4c6aec));_0x2dbd89[_0x5711b2(0x235)][_0x5711b2(0x200)][_0x5711b2(0x28f)]+=_0x1dab4b[_0x5711b2(0x1e7)],_0x2dbd89[_0x5711b2(0x235)][_0x5711b2(0x200)]['endColumn']+=_0x1dab4b[_0x5711b2(0x1e7)]+(_0x1dab4b[_0x5711b2(0x367)]||0x0),_0x2dbd89[_0x5711b2(0x235)][_0x5711b2(0x26c)][_0x5711b2(0x28f)]+=_0x167e4d[_0x5711b2(0x1e7)],_0x2dbd89[_0x5711b2(0x235)][_0x5711b2(0x26c)][_0x5711b2(0x337)]+=_0x167e4d[_0x5711b2(0x1e7)]+(_0x167e4d['length']||0x0);if(_0x334641[_0x5711b2(0x28f)]>=_0x5a9318['params'][_0x5711b2(0x2d0)][_0x5711b2(0x28f)]&&_0x4c6aec[_0x5711b2(0x28f)]<_0x5a9318[_0x5711b2(0x235)][_0x5711b2(0x2d0)][_0x5711b2(0x28f)]){const _0x5dfac7=_0x4c6aec[_0x5711b2(0x337)]-_0x4c6aec[_0x5711b2(0x28f)]+0x1;_0x2d1a31['params']['range']['startColumn']+=_0x5dfac7,_0x2d1a31[_0x5711b2(0x235)][_0x5711b2(0x2d0)][_0x5711b2(0x337)]+=_0x5dfac7;}else{if(_0x334641[_0x5711b2(0x337)]<_0x5a9318[_0x5711b2(0x235)][_0x5711b2(0x2d0)]['startColumn']&&_0x4c6aec[_0x5711b2(0x28f)]>=_0x5a9318[_0x5711b2(0x235)][_0x5711b2(0x2d0)][_0x5711b2(0x28f)]){const _0x166470=_0x334641[_0x5711b2(0x337)]-_0x334641[_0x5711b2(0x28f)]+0x1;_0x2d1a31[_0x5711b2(0x235)]['range'][_0x5711b2(0x28f)]-=_0x166470,_0x2d1a31[_0x5711b2(0x235)][_0x5711b2(0x2d0)]['endColumn']-=_0x166470;}}return{'m1Prime':_0x2d1a31,'m2Prime':_0x2dbd89};}},insertColMutationWithMoveRange={'m1':_univerjs_sheets[_0x4fd226(0x342)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x35a)]['id'],'handler'(_0x20a150,_0x54f4ad){const _0x3c93e6=_0x4fd226,_0x5e33aa={'m1Prime':_0x20a150,'m2Prime':_0x54f4ad};if(_0x20a150['params'][_0x3c93e6(0x3cc)]!==_0x54f4ad[_0x3c93e6(0x235)][_0x3c93e6(0x3cc)]||_0x20a150['params']['subUnitId']!==_0x54f4ad[_0x3c93e6(0x235)]['from'][_0x3c93e6(0x303)]&&_0x20a150[_0x3c93e6(0x235)][_0x3c93e6(0x303)]!==_0x54f4ad[_0x3c93e6(0x235)]['to']['subUnitId'])return _0x5e33aa;const _0x385a6f=_univerjs_core[_0x3c93e6(0x1d5)]['deepClone'](_0x20a150),_0x16c988=_univerjs_core[_0x3c93e6(0x1d5)][_0x3c93e6(0x28e)](_0x54f4ad);if(_0x20a150['params'][_0x3c93e6(0x303)]===_0x54f4ad[_0x3c93e6(0x235)][_0x3c93e6(0x270)][_0x3c93e6(0x303)]){const _0x13c547=new _univerjs_core['ObjectMatrix'](_0x16c988['params'][_0x3c93e6(0x270)][_0x3c93e6(0x355)])['getDataRange'](),{startColumn:_0x18046b,endColumn:_0x586c2a}=_0x13c547,{startColumn:_0x1ff6ef,endColumn:_0x5499ab}=_0x20a150[_0x3c93e6(0x235)][_0x3c93e6(0x2d0)],{step:_0x74c766,length:_0x484c9d}=(0x0,_univerjs_sheets[_0x3c93e6(0x1e1)])(_0x20a150[_0x3c93e6(0x235)][_0x3c93e6(0x2d0)],_0x13c547);if(_0x74c766>0x0&&_0x484c9d===0x0)moveColumns(_0x16c988[_0x3c93e6(0x235)][_0x3c93e6(0x270)]['value'],_0x18046b,_0x586c2a-_0x18046b+0x1,_0x74c766);if(_0x74c766===0x0&&_0x484c9d>0x0)moveColumns(_0x16c988['params'][_0x3c93e6(0x270)][_0x3c93e6(0x355)],_0x1ff6ef,_0x586c2a-_0x1ff6ef+0x1,_0x5499ab-_0x1ff6ef+0x1);}if(_0x20a150[_0x3c93e6(0x235)][_0x3c93e6(0x303)]===_0x54f4ad[_0x3c93e6(0x235)]['to']['subUnitId']){const _0x53a59c=new _univerjs_core[(_0x3c93e6(0x2ed))](_0x16c988[_0x3c93e6(0x235)]['to'][_0x3c93e6(0x355)])['getDataRange'](),{startColumn:_0xebb9d,endColumn:_0x3717cb}=_0x53a59c,{startColumn:_0x288d46,endColumn:_0x5a072f}=_0x20a150[_0x3c93e6(0x235)]['range'],{step:_0x5a8b77,length:_0x3f6948}=(0x0,_univerjs_sheets[_0x3c93e6(0x1e1)])(_0x20a150[_0x3c93e6(0x235)][_0x3c93e6(0x2d0)],_0x53a59c);if(_0x5a8b77>0x0&&_0x3f6948===0x0)moveColumns(_0x16c988[_0x3c93e6(0x235)]['to'][_0x3c93e6(0x355)],_0xebb9d,_0x3717cb-_0xebb9d+0x1,_0x5a8b77);if(_0x5a8b77===0x0&&_0x3f6948>0x0)moveColumns(_0x16c988[_0x3c93e6(0x235)]['to'][_0x3c93e6(0x355)],_0x288d46,_0x3717cb-_0x288d46+0x1,_0x5a072f-_0x288d46+0x1);}return{'m1Prime':_0x385a6f,'m2Prime':_0x16c988};}},insertColMutationWithRemoveCol={'m1':_univerjs_sheets['InsertColMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x228)]['id'],'handler'(_0x39c6bb,_0x4f81d4){const _0x325c6b=_0x4fd226,_0x2faf36={'m1Prime':_0x39c6bb,'m2Prime':_0x4f81d4};if(_0x39c6bb[_0x325c6b(0x235)][_0x325c6b(0x3cc)]!==_0x4f81d4[_0x325c6b(0x235)][_0x325c6b(0x3cc)]||_0x39c6bb['params'][_0x325c6b(0x303)]!==_0x4f81d4[_0x325c6b(0x235)][_0x325c6b(0x303)])return _0x2faf36;const _0x2b491a=_univerjs_core[_0x325c6b(0x1d5)][_0x325c6b(0x28e)](_0x39c6bb),_0x4b2931=_univerjs_core['Tools'][_0x325c6b(0x28e)](_0x4f81d4);if(_0x39c6bb[_0x325c6b(0x235)]['range'][_0x325c6b(0x28f)]<=_0x4f81d4['params'][_0x325c6b(0x2d0)][_0x325c6b(0x337)]&&_0x39c6bb[_0x325c6b(0x235)]['range'][_0x325c6b(0x28f)]>_0x4f81d4[_0x325c6b(0x235)][_0x325c6b(0x2d0)][_0x325c6b(0x28f)])return{'error':new Error(_0x325c6b(0x36e))};const _0x473bed=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn(_0x39c6bb[_0x325c6b(0x235)][_0x325c6b(0x2d0)]),toColumn(_0x4f81d4['params']['range']));if(_0x473bed)_0x4b2931[_0x325c6b(0x235)][_0x325c6b(0x2d0)]['startColumn']+=_0x473bed[_0x325c6b(0x1e7)],_0x4b2931[_0x325c6b(0x235)][_0x325c6b(0x2d0)]['endColumn']+=_0x473bed[_0x325c6b(0x1e7)]+(_0x473bed['length']||0x0);else _0x4b2931['id']=_univerjs_sheets[_0x325c6b(0x2fc)]['id'];const _0x55926e=(0x0,_univerjs_sheets[_0x325c6b(0x3c9)])(toColumn(_0x4f81d4['params'][_0x325c6b(0x2d0)]),toColumn(_0x39c6bb[_0x325c6b(0x235)][_0x325c6b(0x2d0)]));return _0x55926e&&(_0x2b491a[_0x325c6b(0x235)][_0x325c6b(0x2d0)][_0x325c6b(0x28f)]+=_0x55926e[_0x325c6b(0x1e7)],_0x2b491a['params'][_0x325c6b(0x2d0)][_0x325c6b(0x337)]+=_0x55926e['step']+(_0x55926e[_0x325c6b(0x367)]||0x0)),{'m1Prime':_0x2b491a,'m2Prime':_0x4b2931};}},insertColMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x342)]['id'],'m2':_univerjs_sheets['RemoveNumfmtMutation']['id'],'handler'(_0x528493,_0xfbcd58){const _0x2ac78b=_0x4fd226,_0x38c372={'m1Prime':_0x528493,'m2Prime':_0xfbcd58};if(_0x528493[_0x2ac78b(0x235)][_0x2ac78b(0x3cc)]!==_0xfbcd58[_0x2ac78b(0x235)][_0x2ac78b(0x3cc)]||_0x528493['params']['subUnitId']!==_0xfbcd58[_0x2ac78b(0x235)][_0x2ac78b(0x303)])return _0x38c372;const _0x8e2d1=_univerjs_core['Tools']['deepClone'](_0x528493),_0x2f44f0=_univerjs_core[_0x2ac78b(0x1d5)][_0x2ac78b(0x28e)](_0xfbcd58),{ranges:_0x212ec1}=_0x2f44f0['params'];if(_0x212ec1[_0x2ac78b(0x1c0)](_0x4eca09=>{const _0x18a9fe=_0x2ac78b,_0x8d3376=(0x0,_univerjs_sheets[_0x18a9fe(0x1e1)])(toColumn(_0x528493['params']['range']),toColumn(_0x4eca09));if(_0x8d3376[_0x18a9fe(0x367)]!==0x0)return!![];return _0x4eca09[_0x18a9fe(0x28f)]+=_0x8d3376[_0x18a9fe(0x1e7)],_0x4eca09[_0x18a9fe(0x337)]+=_0x8d3376[_0x18a9fe(0x1e7)],![];}))return{'error':new Error('insert\x20col\x20is\x20conflict\x20with\x20remove\x20numfmt')};return{'m1Prime':_0x8e2d1,'m2Prime':_0x2f44f0};}},insertColMutationWithRemoveWorksheetMergeMutation={'m1':_univerjs_sheets['InsertColMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x3ff)]['id'],'handler'(_0x3b40c0,_0x3c2314){const _0x3a289c=_0x4fd226,_0x5a551f=_univerjs_core[_0x3a289c(0x1d5)]['deepClone'](_0x3b40c0),_0x55b1b3=_univerjs_core[_0x3a289c(0x1d5)][_0x3a289c(0x28e)](_0x3c2314);if(_0x3b40c0[_0x3a289c(0x235)][_0x3a289c(0x3cc)]!==_0x3c2314['params'][_0x3a289c(0x3cc)]||_0x3b40c0[_0x3a289c(0x235)][_0x3a289c(0x303)]!==_0x3c2314[_0x3a289c(0x235)][_0x3a289c(0x303)])return{'m1Prime':_0x5a551f,'m2Prime':_0x55b1b3};const _0xdcf73b=_0x55b1b3[_0x3a289c(0x235)][_0x3a289c(0x3e4)]['map'](_0x112e9e=>{const _0x5db323=_0x3a289c,_0x365eb7=_0x5a551f[_0x5db323(0x235)][_0x5db323(0x2d0)],_0x2de716=_0x365eb7[_0x5db323(0x337)]-_0x365eb7[_0x5db323(0x28f)]+0x1;if(_0x365eb7[_0x5db323(0x28f)]<=_0x112e9e[_0x5db323(0x28f)])return{..._0x112e9e,'startColumn':_0x112e9e['startColumn']+_0x2de716,'endColumn':_0x112e9e['endColumn']+_0x2de716};else{if(_0x365eb7['startColumn']>_0x112e9e[_0x5db323(0x28f)]&&_0x365eb7[_0x5db323(0x28f)]<=_0x112e9e[_0x5db323(0x337)])return{..._0x112e9e,'endColumn':_0x112e9e[_0x5db323(0x337)]+_0x2de716};else return{..._0x112e9e};}});return _0x55b1b3[_0x3a289c(0x235)][_0x3a289c(0x3e4)]=_0xdcf73b,{'m1Prime':_0x5a551f,'m2Prime':_0x55b1b3};}},insertColMutationWithReorderRange={'m1':_univerjs_sheets[_0x4fd226(0x342)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x201)]['id'],'handler'(_0x390fef,_0x2a3162){const _0x6d62be=_0x4fd226,_0x7f0b13={'m1Prime':_0x390fef,'m2Prime':_0x2a3162};if(_0x390fef[_0x6d62be(0x235)][_0x6d62be(0x3cc)]!==_0x2a3162[_0x6d62be(0x235)][_0x6d62be(0x3cc)]||_0x390fef[_0x6d62be(0x235)][_0x6d62be(0x303)]!==_0x2a3162[_0x6d62be(0x235)][_0x6d62be(0x303)])return _0x7f0b13;const _0x403bb8=_univerjs_core['Tools'][_0x6d62be(0x28e)](_0x2a3162),_0x62cd62=(0x0,_univerjs_sheets[_0x6d62be(0x1e1)])(toColumn(_0x390fef[_0x6d62be(0x235)][_0x6d62be(0x2d0)]),toColumn(_0x2a3162[_0x6d62be(0x235)][_0x6d62be(0x2d0)]));return _0x403bb8['params'][_0x6d62be(0x2d0)][_0x6d62be(0x28f)]+=_0x62cd62[_0x6d62be(0x1e7)],_0x403bb8[_0x6d62be(0x235)][_0x6d62be(0x2d0)][_0x6d62be(0x337)]+=_0x62cd62[_0x6d62be(0x1e7)]+(_0x62cd62[_0x6d62be(0x367)]||0x0),{'m1Prime':_0x390fef,'m2Prime':_0x403bb8};}},insertColMutationWithSetColData={'m1':_univerjs_sheets[_0x4fd226(0x342)]['id'],'m2':_univerjs_sheets['SetColDataMutation']['id'],'handler'(_0x153d94,_0x207d96){const _0x1995b5=_0x4fd226,_0x40baed={'m1Prime':_0x153d94,'m2Prime':_0x207d96};if(_0x153d94[_0x1995b5(0x235)][_0x1995b5(0x3cc)]!==_0x207d96[_0x1995b5(0x235)][_0x1995b5(0x3cc)]||_0x153d94['params']['subUnitId']!==_0x207d96[_0x1995b5(0x235)][_0x1995b5(0x303)])return _0x40baed;const _0x4c5fe5=_univerjs_core[_0x1995b5(0x1d5)][_0x1995b5(0x28e)](_0x153d94),_0x1a1a93=_univerjs_core[_0x1995b5(0x1d5)][_0x1995b5(0x28e)](_0x207d96),{columnData:_0x11d651}=_0x1a1a93[_0x1995b5(0x235)];for(let _0x55c1be=_0x153d94[_0x1995b5(0x235)][_0x1995b5(0x2d0)][_0x1995b5(0x28f)];_0x55c1be<=_0x153d94['params']['range'][_0x1995b5(0x337)];_0x55c1be++)(0x0,_univerjs_core[_0x1995b5(0x2d8)])(_0x55c1be,void 0x0,_0x11d651);return{'m1Prime':_0x4c5fe5,'m2Prime':_0x1a1a93};}},insertColMutationWithSetColHidden={'m1':_univerjs_sheets['InsertColMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x390)]['id'],'handler'(_0x164871,_0x17d105){const _0x554257=_0x4fd226,_0x116f5b={'m1Prime':_0x164871,'m2Prime':_0x17d105};if(_0x164871[_0x554257(0x235)][_0x554257(0x3cc)]!==_0x17d105[_0x554257(0x235)][_0x554257(0x3cc)]||_0x164871[_0x554257(0x235)][_0x554257(0x303)]!==_0x17d105[_0x554257(0x235)][_0x554257(0x303)])return _0x116f5b;const _0x1a3cc3=_univerjs_core[_0x554257(0x1d5)][_0x554257(0x28e)](_0x164871),_0x3388ed=_univerjs_core[_0x554257(0x1d5)]['deepClone'](_0x17d105),{ranges:_0x2bf896}=_0x3388ed[_0x554257(0x235)];if(_0x2bf896[_0x554257(0x1c0)](_0x3ae79e=>{const _0x5d6d68=_0x554257,_0x39be9c=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn(_0x164871['params'][_0x5d6d68(0x2d0)]),_0x3ae79e);if(_0x39be9c[_0x5d6d68(0x367)]!==0x0)return!![];return _0x3ae79e[_0x5d6d68(0x28f)]+=_0x39be9c[_0x5d6d68(0x1e7)],_0x3ae79e[_0x5d6d68(0x337)]+=_0x39be9c[_0x5d6d68(0x1e7)],![];}))return{'error':new Error(_0x554257(0x26a))};return{'m1Prime':_0x1a3cc3,'m2Prime':_0x3388ed};}},insertColMutationWithSetColVisible={'m1':_univerjs_sheets[_0x4fd226(0x342)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x383)]['id'],'handler'(_0x17c62c,_0x5a5c7b){const _0xe0223f=_0x4fd226,_0x598ba4={'m1Prime':_0x17c62c,'m2Prime':_0x5a5c7b};if(_0x17c62c[_0xe0223f(0x235)][_0xe0223f(0x3cc)]!==_0x5a5c7b[_0xe0223f(0x235)][_0xe0223f(0x3cc)]||_0x17c62c[_0xe0223f(0x235)][_0xe0223f(0x303)]!==_0x5a5c7b[_0xe0223f(0x235)][_0xe0223f(0x303)])return _0x598ba4;const _0x15bf22=_univerjs_core[_0xe0223f(0x1d5)][_0xe0223f(0x28e)](_0x17c62c),_0x570076=_univerjs_core['Tools']['deepClone'](_0x5a5c7b),{ranges:_0x496f40}=_0x570076['params'];if(_0x496f40[_0xe0223f(0x1c0)](_0x38410e=>{const _0x3bbbd1=_0xe0223f,_0x353859=(0x0,_univerjs_sheets[_0x3bbbd1(0x1e1)])(toColumn(_0x17c62c[_0x3bbbd1(0x235)][_0x3bbbd1(0x2d0)]),_0x38410e);if(_0x353859[_0x3bbbd1(0x367)]!==0x0)return!![];return _0x38410e[_0x3bbbd1(0x28f)]+=_0x353859[_0x3bbbd1(0x1e7)],_0x38410e[_0x3bbbd1(0x337)]+=_0x353859[_0x3bbbd1(0x1e7)],![];}))return{'error':new Error(_0xe0223f(0x3f9))};return{'m1Prime':_0x15bf22,'m2Prime':_0x570076};}},insertColMutationWithSetNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x342)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3f8)]['id'],'handler'(_0x33083f,_0x1a649a){const _0x562934=_0x4fd226,_0x3e4d7d={'m1Prime':_0x33083f,'m2Prime':_0x1a649a};if(_0x33083f[_0x562934(0x235)][_0x562934(0x3cc)]!==_0x1a649a['params'][_0x562934(0x3cc)]||_0x33083f[_0x562934(0x235)][_0x562934(0x303)]!==_0x1a649a[_0x562934(0x235)]['subUnitId'])return _0x3e4d7d;const _0x560c61=[_univerjs_core[_0x562934(0x1d5)][_0x562934(0x28e)](_0x33083f)],_0x708146=_univerjs_core[_0x562934(0x1d5)][_0x562934(0x28e)](_0x1a649a),{values:_0x278e7d}=_0x708146['params'],_0xfa0be6=[];let _0x596517=![];for(const _0x3686dc in _0x278e7d){const _0x107236=_0x278e7d[_0x3686dc];_0xfa0be6[_0x562934(0x285)](..._0x107236['ranges']);if(_0x107236[_0x562934(0x3e4)][_0x562934(0x1c0)](_0xbece4e=>{const _0x1f7c6c=_0x562934,_0x44d101=(0x0,_univerjs_sheets[_0x1f7c6c(0x1e1)])(toColumn(_0x33083f[_0x1f7c6c(0x235)][_0x1f7c6c(0x2d0)]),toColumn(_0xbece4e));if(_0x44d101[_0x1f7c6c(0x367)]!==0x0)return!![];if(_0x44d101[_0x1f7c6c(0x1e7)]!==0x0)_0x596517=!![];return _0xbece4e['startColumn']+=_0x44d101[_0x1f7c6c(0x1e7)],_0xbece4e[_0x1f7c6c(0x337)]+=_0x44d101[_0x1f7c6c(0x1e7)],![];}))return{'error':new Error(_0x562934(0x3a1))};}if(_0x596517){const _0x83b19f={'id':_univerjs_sheets[_0x562934(0x20e)]['id'],'params':{'unitId':_0x1a649a['params'][_0x562934(0x3cc)],'subUnitId':_0x1a649a[_0x562934(0x235)][_0x562934(0x303)],'ranges':_0xfa0be6}};_0x560c61[_0x562934(0x285)](_0x83b19f,_0x708146);}return{'m1Prime':_0x560c61,'m2Prime':_0x708146};}},insertColMutationWithSetRangeValues={'m1':_univerjs_sheets[_0x4fd226(0x342)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x35c)]['id'],'handler'(_0x2bf77b,_0x13c0dc){const _0x150ff5=_0x4fd226,_0x25ab92={'m1Prime':_0x2bf77b,'m2Prime':_0x13c0dc};if(_0x2bf77b[_0x150ff5(0x235)]['unitId']!==_0x13c0dc[_0x150ff5(0x235)][_0x150ff5(0x3cc)]||_0x2bf77b[_0x150ff5(0x235)][_0x150ff5(0x303)]!==_0x13c0dc[_0x150ff5(0x235)][_0x150ff5(0x303)])return _0x25ab92;const _0x4d6e82=[_univerjs_core['Tools']['deepClone'](_0x2bf77b)],_0x39d9de=_univerjs_core[_0x150ff5(0x1d5)][_0x150ff5(0x28e)](_0x13c0dc),_0x36aa3d=new _univerjs_core[(_0x150ff5(0x2ed))](_0x39d9de[_0x150ff5(0x235)][_0x150ff5(0x2f8)]),_0x4b667f=_0x36aa3d[_0x150ff5(0x277)](),_0x13537b=_0x2bf77b[_0x150ff5(0x235)][_0x150ff5(0x2d0)],_0x3355c2=_0x13537b[_0x150ff5(0x337)]-_0x13537b['startColumn']+0x1;if(_0x39d9de[_0x150ff5(0x235)][_0x150ff5(0x2f8)]&&_0x13537b[_0x150ff5(0x28f)]<=_0x4b667f[_0x150ff5(0x337)]){const _0x4b4c25=Math[_0x150ff5(0x2aa)](_0x4b667f[_0x150ff5(0x28f)],_0x13537b['startColumn']);moveColumns(_0x39d9de[_0x150ff5(0x235)][_0x150ff5(0x2f8)],_0x4b4c25,_0x4b667f[_0x150ff5(0x337)]-_0x4b4c25+0x1,_0x3355c2);}const _0x313943=new _univerjs_core[(_0x150ff5(0x2ed))]();let _0xdc0929=![];_0x36aa3d[_0x150ff5(0x398)]((_0x1d42cd,_0x1a3957,_0x4e41c8)=>{const _0x209969=_0x150ff5;if(_0x4e41c8&&_0x4e41c8['f']){const _0x40737d=_0x4e41c8['f'];let _0x1d35e3=![];const _0x5e3039=processFormulaString(_0x2bf77b['params'][_0x209969(0x3cc)],_0x2bf77b['params'][_0x209969(0x303)],_0x40737d,_0x3210d9=>{const _0x3ac8ab=_0x209969,_0x5663ac=(0x0,_univerjs_sheets[_0x3ac8ab(0x1e1)])(toColumn(_0x2bf77b['params']['range']),toColumn(_0x3210d9));return(_0x5663ac['step']!==0x0||_0x5663ac[_0x3ac8ab(0x367)]!==0x0)&&(_0x1d35e3=!![],_0x3210d9[_0x3ac8ab(0x28f)]+=_0x5663ac[_0x3ac8ab(0x1e7)],_0x3210d9[_0x3ac8ab(0x337)]+=_0x5663ac[_0x3ac8ab(0x1e7)]+_0x5663ac['length']),_0x3210d9;});_0x1d35e3&&(_0xdc0929=!![],_0x4e41c8['f']=_0x5e3039,_0x313943[_0x209969(0x408)](_0x1d42cd,_0x1a3957,{..._0x4e41c8}));}});if(_0xdc0929){const _0x3cdff6={'id':_univerjs_sheets[_0x150ff5(0x35c)]['id'],'params':{'unitId':_0x13c0dc[_0x150ff5(0x235)]['unitId'],'subUnitId':_0x13c0dc[_0x150ff5(0x235)][_0x150ff5(0x303)],'cellValue':_0x313943[_0x150ff5(0x414)]()}};_0x4d6e82[_0x150ff5(0x285)](_0x3cdff6);}return{'m1Prime':_0x4d6e82,'m2Prime':_0x39d9de};}},insertColMutationWithSetSelection={'m1':_univerjs_sheets[_0x4fd226(0x342)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x2dd)]['id'],'handler'(_0x3699f,_0x50570f){const _0x5b7525=_0x4fd226,_0x173896={'m1Prime':[],'m2Prime':[]};if(_0x3699f['params'][_0x5b7525(0x3cc)]!==_0x50570f['params'][_0x5b7525(0x3cc)]||_0x3699f[_0x5b7525(0x235)][_0x5b7525(0x303)]!==_0x50570f['params'][_0x5b7525(0x303)])return _0x173896;const _0x52e55b=_univerjs_core[_0x5b7525(0x1d5)]['deepClone'](_0x50570f);let _0x227b28=![];_0x52e55b[_0x5b7525(0x235)][_0x5b7525(0x399)][_0x5b7525(0x222)](_0xda9497=>{const _0x1ce3cb=_0x5b7525,{range:_0x2ee6fa,primary:_0x2d95fe}=_0xda9497,_0x4cc671=(0x0,_univerjs_sheets[_0x1ce3cb(0x1e1)])(toColumn(_0x3699f['params'][_0x1ce3cb(0x2d0)]),toColumn(_0x2ee6fa));if(_0x4cc671[_0x1ce3cb(0x367)]||_0x4cc671[_0x1ce3cb(0x1e7)]){_0x2ee6fa[_0x1ce3cb(0x28f)]+=_0x4cc671[_0x1ce3cb(0x1e7)],_0x2ee6fa[_0x1ce3cb(0x337)]+=_0x4cc671[_0x1ce3cb(0x1e7)]+(_0x4cc671[_0x1ce3cb(0x367)]||0x0);if(_0x2d95fe){const _0x5834ce=(0x0,_univerjs_sheets[_0x1ce3cb(0x1e1)])(toColumn(_0x3699f['params'][_0x1ce3cb(0x2d0)]),toColumn(_0x2d95fe));(_0x5834ce[_0x1ce3cb(0x367)]||_0x5834ce[_0x1ce3cb(0x1e7)])&&(_0x2d95fe['startColumn']+=_0x5834ce['step'],_0x2d95fe[_0x1ce3cb(0x337)]+=_0x5834ce[_0x1ce3cb(0x1e7)],_0x2d95fe[_0x1ce3cb(0x360)]+=_0x5834ce[_0x1ce3cb(0x1e7)]);}_0x227b28=!![];}});if(_0x227b28)_0x173896[_0x5b7525(0x3d9)][_0x5b7525(0x285)](_0x52e55b);return _0x173896;}},insertColMutationWithSetSheetsFilterCriteria={'m1':_univerjs_sheets['InsertColMutation']['id'],'m2':_univerjs_sheets_filter[_0x4fd226(0x319)]['id'],'handler'(_0x123bd9,_0x26edba){const _0x2f651a=_0x4fd226,_0x218921={'m1Prime':_0x123bd9,'m2Prime':_0x26edba};if(_0x123bd9['params'][_0x2f651a(0x3cc)]!==_0x26edba[_0x2f651a(0x235)][_0x2f651a(0x3cc)]||_0x123bd9[_0x2f651a(0x235)][_0x2f651a(0x303)]!==_0x26edba['params'][_0x2f651a(0x303)])return _0x218921;const _0x37e62f=_univerjs_core[_0x2f651a(0x1d5)]['deepClone'](_0x123bd9),_0xfc549=_univerjs_core[_0x2f651a(0x1d5)][_0x2f651a(0x28e)](_0x26edba),_0x5d55ca=handleInsert({'start':_0x123bd9['params']['range']['startColumn'],'end':_0x123bd9[_0x2f651a(0x235)]['range'][_0x2f651a(0x337)]},{'start':_0x26edba[_0x2f651a(0x235)]['col'],'end':_0x26edba[_0x2f651a(0x235)][_0x2f651a(0x3ed)]});if(_0xfc549[_0x2f651a(0x235)][_0x2f651a(0x3ed)]===_0x5d55ca['start'])return _0x218921;_0xfc549['params'][_0x2f651a(0x3ed)]=_0x5d55ca[_0x2f651a(0x24d)];if(_0xfc549['params'][_0x2f651a(0x2c8)])_0xfc549['params'][_0x2f651a(0x2c8)][_0x2f651a(0x2d1)]=_0x5d55ca[_0x2f651a(0x24d)];const _0x438ab8=_univerjs_core[_0x2f651a(0x1d5)][_0x2f651a(0x28e)](_0x26edba);return _0x438ab8['params'][_0x2f651a(0x2c8)]=null,{'m1Prime':[_0x438ab8,_0xfc549,_0x37e62f],'m2Prime':[_0xfc549]};}},insertColMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0x4fd226(0x342)]['id'],'m2':_univerjs_sheets_filter['SetSheetsFilterRangeMutation']['id'],'handler'(_0x3afdff,_0x31c4d2){const _0x1bf6e1=_0x4fd226,_0x499194={'m1Prime':_0x3afdff,'m2Prime':_0x31c4d2};if(_0x3afdff['params'][_0x1bf6e1(0x3cc)]!==_0x31c4d2[_0x1bf6e1(0x235)][_0x1bf6e1(0x3cc)]||_0x3afdff['params']['subUnitId']!==_0x31c4d2[_0x1bf6e1(0x235)]['subUnitId'])return _0x499194;const _0xb80ee2=_univerjs_core[_0x1bf6e1(0x1d5)][_0x1bf6e1(0x28e)](_0x3afdff),_0x406c7a=_univerjs_core[_0x1bf6e1(0x1d5)][_0x1bf6e1(0x28e)](_0x31c4d2),_0x5b18c5=handleInsert({'start':_0x3afdff[_0x1bf6e1(0x235)]['range'][_0x1bf6e1(0x28f)],'end':_0x3afdff[_0x1bf6e1(0x235)]['range'][_0x1bf6e1(0x337)]},{'start':_0x31c4d2[_0x1bf6e1(0x235)]['range'][_0x1bf6e1(0x28f)],'end':_0x31c4d2['params']['range'][_0x1bf6e1(0x337)]});if(_0x406c7a[_0x1bf6e1(0x235)][_0x1bf6e1(0x2d0)][_0x1bf6e1(0x28f)]===_0x5b18c5[_0x1bf6e1(0x24d)]&&_0x406c7a[_0x1bf6e1(0x235)][_0x1bf6e1(0x2d0)][_0x1bf6e1(0x337)]===_0x5b18c5['end'])return _0x499194;return _0x406c7a['params'][_0x1bf6e1(0x2d0)]['startColumn']=_0x5b18c5[_0x1bf6e1(0x24d)],_0x406c7a[_0x1bf6e1(0x235)][_0x1bf6e1(0x2d0)][_0x1bf6e1(0x337)]=_0x5b18c5[_0x1bf6e1(0x1f8)],{'m1Prime':[_0x406c7a,_0xb80ee2],'m2Prime':[_0x406c7a]};}},insertColMutationWithSetWorksheetColWidth={'m1':_univerjs_sheets[_0x4fd226(0x342)]['id'],'m2':_univerjs_sheets['SetWorksheetColWidthMutation']['id'],'handler'(_0x422d23,_0x5e9e7c){const _0x5a1005=_0x4fd226,_0x5db0e5={'m1Prime':_0x422d23,'m2Prime':_0x5e9e7c};if(_0x422d23[_0x5a1005(0x235)][_0x5a1005(0x3cc)]!==_0x5e9e7c[_0x5a1005(0x235)]['unitId']||_0x422d23[_0x5a1005(0x235)][_0x5a1005(0x303)]!==_0x5e9e7c[_0x5a1005(0x235)][_0x5a1005(0x303)])return _0x5db0e5;const _0x1b6765=_univerjs_core[_0x5a1005(0x1d5)][_0x5a1005(0x28e)](_0x422d23),_0x3c487d=_univerjs_core[_0x5a1005(0x1d5)][_0x5a1005(0x28e)](_0x5e9e7c),{ranges:_0x33d196,colWidth:_0x171579}=_0x3c487d[_0x5a1005(0x235)];if(_0x33d196[_0x5a1005(0x1c0)](_0x5c7bf7=>{const _0x58aaee=_0x5a1005,_0x19dee1=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn(_0x422d23[_0x58aaee(0x235)]['range']),_0x5c7bf7);if(_0x19dee1['length']!==0x0)return!![];return _0x5c7bf7[_0x58aaee(0x28f)]+=_0x19dee1[_0x58aaee(0x1e7)],_0x5c7bf7[_0x58aaee(0x337)]+=_0x19dee1[_0x58aaee(0x1e7)],![];}))return{'error':new Error(_0x5a1005(0x3f5))};if(typeof _0x171579!==_0x5a1005(0x2af)){for(let _0x33f2b0=_0x422d23[_0x5a1005(0x235)]['range']['startColumn'];_0x33f2b0<=_0x422d23['params'][_0x5a1005(0x2d0)][_0x5a1005(0x337)];_0x33f2b0++)(0x0,_univerjs_core[_0x5a1005(0x2d8)])(_0x33f2b0,void 0x0,_0x171579);}return{'m1Prime':_0x1b6765,'m2Prime':_0x3c487d};}},transformUpdateCommentRefWithRefRange=(_0x5706e8,_0x1387bf)=>{const _0x4c7c9f=_0x4fd226,_0xea5276=(0x0,_univerjs_engine_formula['singleReferenceToGrid'])(_0x5706e8[_0x4c7c9f(0x235)][_0x4c7c9f(0x2c5)][_0x4c7c9f(0x38b)]),_0x5cce86=(0x0,_univerjs_sheets[_0x4c7c9f(0x241)])({'startColumn':_0xea5276[_0x4c7c9f(0x35f)],'endColumn':_0xea5276[_0x4c7c9f(0x35f)],'startRow':_0xea5276[_0x4c7c9f(0x1c4)],'endRow':_0xea5276[_0x4c7c9f(0x1c4)]},_0x1387bf);if(!_0x5cce86)return[{'id':_univerjs_thread_comment['DeleteCommentMutation']['id'],'params':{..._0x5706e8[_0x4c7c9f(0x235)],'comment':void 0x0,'commentId':_0x5706e8[_0x4c7c9f(0x235)][_0x4c7c9f(0x2c5)][_0x4c7c9f(0x3e1)]}}];const _0x21c162=(0x0,_univerjs_engine_formula[_0x4c7c9f(0x3de)])(_0x5cce86);if(_0x21c162===_0x5706e8[_0x4c7c9f(0x235)][_0x4c7c9f(0x2c5)]['ref'])return[];return[{'id':_univerjs_thread_comment[_0x4c7c9f(0x27b)]['id'],'params':{..._0x5706e8[_0x4c7c9f(0x235)],'comment':void 0x0,'payload':{'ref':_0x21c162,'commentId':_0x5706e8[_0x4c7c9f(0x235)][_0x4c7c9f(0x2c5)][_0x4c7c9f(0x3e1)]}}}];},insertColWithUpdateCommentRef={'m1':_univerjs_sheets['InsertColMutation']['id'],'m2':_univerjs_thread_comment[_0x4fd226(0x27b)]['id'],'handler':(_0x5b9ddd,_0x3759c3)=>{const _0xc60a8e=_0x4fd226,_0x5a455b={'m1Prime':_0x5b9ddd,'m2Prime':_0x3759c3};if(_0x5b9ddd[_0xc60a8e(0x235)]['unitId']!==_0x3759c3[_0xc60a8e(0x235)]['unitId']||_0x5b9ddd[_0xc60a8e(0x235)][_0xc60a8e(0x303)]!==_0x3759c3[_0xc60a8e(0x235)][_0xc60a8e(0x303)])return _0x5a455b;const _0x5d5762=transformUpdateCommentRefWithRefRange(_0x3759c3,{'id':_univerjs_sheets[_0xc60a8e(0x251)]['id'],'params':{'unitId':_0x5b9ddd['params'][_0xc60a8e(0x3cc)],'subUnitId':_0x5b9ddd[_0xc60a8e(0x235)][_0xc60a8e(0x303)],'range':_0x5b9ddd[_0xc60a8e(0x235)]['range']}});return{'m1Prime':[_0x5b9ddd,..._0x5d5762],'m2Prime':[_0x3759c3,..._0x5d5762]};}};function transformUpdateDataValidationWithRefRange(_0x38c1ce,_0x2fb08b){const _0x446f58=_0x4fd226,{payload:_0x2839bc,unitId:_0x2b2290,subUnitId:_0x3d281e,ruleId:_0x38b68a}=_0x38c1ce['params'];switch(_0x2839bc[_0x446f58(0x22b)]){case _univerjs_data_validation[_0x446f58(0x27d)][_0x446f58(0x40f)]:{const _0x49f78e=_0x2839bc[_0x446f58(0x2c5)][_0x446f58(0x208)](_0xb90e80=>(0x0,_univerjs_sheets['handleCommonDefaultRangeChangeWithEffectRefCommands'])(_0xb90e80,_0x2fb08b))[_0x446f58(0x2ec)](Boolean)[_0x446f58(0x2e8)]();if(!(0x0,_univerjs_core[_0x446f58(0x3ad)])(_0x49f78e,_0x2839bc['payload']))return[{'id':_univerjs_data_validation[_0x446f58(0x1d4)]['id'],'params':{'unitId':_0x2b2290,'subUnitId':_0x3d281e,'ruleId':_0x38b68a,'payload':{'type':_univerjs_data_validation['UpdateRuleType'][_0x446f58(0x40f)],'payload':_0x49f78e}}}];break;}case _univerjs_data_validation[_0x446f58(0x27d)][_0x446f58(0x24f)]:{var _0x4ecdf9,_0x2ccd9c;const _0x330f2d=_0x58a054=>{return processFormulaString(_0x2b2290,_0x3d281e,_0x58a054,_0x367bf5=>{const _0x425773=_0x3e21;return(0x0,_univerjs_sheets[_0x425773(0x241)])(_0x367bf5,_0x2fb08b);});},_0x523132=(_0x4ecdf9=_0x2839bc[_0x446f58(0x2c5)][_0x446f58(0x30e)])!==null&&_0x4ecdf9!==void 0x0?_0x4ecdf9:'',_0xf974cc=(_0x2ccd9c=_0x2839bc['payload'][_0x446f58(0x386)])!==null&&_0x2ccd9c!==void 0x0?_0x2ccd9c:'';let _0xc26194=_0x523132,_0x1d0bfb=_0xf974cc;if((0x0,_univerjs_core['isFormulaString'])(_0x523132))_0xc26194=_0x330f2d(_0x523132);if((0x0,_univerjs_core[_0x446f58(0x299)])(_0xf974cc))_0x1d0bfb=_0x330f2d(_0xf974cc);if(_0xc26194!==_0x523132||_0x1d0bfb!==_0xf974cc)return[{'id':_univerjs_data_validation[_0x446f58(0x1d4)]['id'],'params':{'unitId':_0x2b2290,'subUnitId':_0x3d281e,'ruleId':_0x38b68a,'payload':{'type':_univerjs_data_validation['UpdateRuleType'][_0x446f58(0x24f)],'payload':{'type':_0x2839bc[_0x446f58(0x2c5)][_0x446f58(0x22b)],'formula1':_0xc26194,'formula2':_0x1d0bfb}}}}];break;}default:break;}return[];}const moveColMutationWithUpdateDataValidation={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_data_validation[_0x4fd226(0x1d4)]['id'],'handler':(_0x58b85c,_0x54b335)=>{const _0x22a214=_0x4fd226,_0xe63cb3={'m1Prime':_0x58b85c,'m2Prime':_0x54b335};if(_0x58b85c[_0x22a214(0x235)][_0x22a214(0x3cc)]!==_0x54b335[_0x22a214(0x235)][_0x22a214(0x3cc)]||_0x54b335[_0x22a214(0x235)][_0x22a214(0x303)]!==_0x58b85c[_0x22a214(0x235)]['subUnitId'])return _0xe63cb3;const _0x3f02ac=transformUpdateDataValidationWithRefRange(_0x54b335,{'id':_univerjs_sheets[_0x22a214(0x3b6)]['id'],'params':{'fromRange':_0x58b85c[_0x22a214(0x235)]['sourceRange'],'toRange':_0x58b85c[_0x22a214(0x235)][_0x22a214(0x26c)]}});return{'m1Prime':[_0x58b85c,..._0x3f02ac],'m2Prime':[_0x54b335,..._0x3f02ac]};}},insertColMutationWithUpdateDataValidation={'m1':_univerjs_sheets[_0x4fd226(0x342)]['id'],'m2':_univerjs_data_validation[_0x4fd226(0x1d4)]['id'],'handler':(_0x7aeab9,_0xe4141f)=>{const _0x4bafe7=_0x4fd226,_0x457d14={'m1Prime':_0x7aeab9,'m2Prime':_0xe4141f};if(_0x7aeab9[_0x4bafe7(0x235)][_0x4bafe7(0x3cc)]!==_0xe4141f[_0x4bafe7(0x235)]['unitId']||_0xe4141f[_0x4bafe7(0x235)][_0x4bafe7(0x303)]!==_0x7aeab9[_0x4bafe7(0x235)][_0x4bafe7(0x303)])return _0x457d14;const _0x4d5d00=transformUpdateDataValidationWithRefRange(_0xe4141f,{'id':_univerjs_sheets[_0x4bafe7(0x251)]['id'],'params':{'unitId':_0x7aeab9['params'][_0x4bafe7(0x3cc)],'subUnitId':_0x7aeab9[_0x4bafe7(0x235)][_0x4bafe7(0x303)],'range':_0x7aeab9[_0x4bafe7(0x235)]['range']}});return{'m1Prime':[_0x7aeab9,..._0x4d5d00],'m2Prime':[_0xe4141f,..._0x4d5d00]};}},insertRowWithAddComment={'m1':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'m2':_univerjs_thread_comment['AddCommentMutation']['id'],'handler':(_0x529186,_0x455871)=>{const _0x33a00d=_0x4fd226,_0x46eedd={'m1Prime':_0x529186,'m2Prime':_0x455871};if(_0x529186[_0x33a00d(0x235)][_0x33a00d(0x3cc)]!==_0x455871[_0x33a00d(0x235)]['unitId']||_0x529186[_0x33a00d(0x235)][_0x33a00d(0x303)]!==_0x455871[_0x33a00d(0x235)][_0x33a00d(0x303)])return _0x46eedd;const _0x286b5f=transformAddCommentWithRefRange(_0x455871,{'id':_univerjs_sheets[_0x33a00d(0x405)]['id'],'params':{'unitId':_0x529186[_0x33a00d(0x235)][_0x33a00d(0x3cc)],'subUnitId':_0x529186[_0x33a00d(0x235)][_0x33a00d(0x303)],'range':_0x529186[_0x33a00d(0x235)][_0x33a00d(0x2d0)]}});return{'m1Prime':[_0x529186,..._0x286b5f],'m2Prime':[_0x455871,..._0x286b5f]};}},insertRowMutationWithAddMerge={'m1':_univerjs_sheets['InsertRowMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x340)]['id'],'handler'(_0x4a71aa,_0x189c7d){const _0x4b8f61=_0x4fd226,_0x48ca21=addWorksheetMergeMutationWithInsertRowMutation['handler'](_0x189c7d,_0x4a71aa);if(isTransformMutationSuccess(_0x48ca21))return{'m1Prime':_0x48ca21[_0x4b8f61(0x3d9)],'m2Prime':_0x48ca21[_0x4b8f61(0x253)]};else return _0x48ca21;}},insertRowMutationWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'m2':_univerjs_sheets['InsertRowMutation']['id'],'handler'(_0x5d4f74,_0x2c8acc){const _0x25977a=_0x4fd226,_0x331a99={'m1Prime':_0x5d4f74,'m2Prime':_0x2c8acc};if(_0x5d4f74['params'][_0x25977a(0x3cc)]!==_0x2c8acc[_0x25977a(0x235)][_0x25977a(0x3cc)]||_0x5d4f74['params'][_0x25977a(0x303)]!==_0x2c8acc[_0x25977a(0x235)][_0x25977a(0x303)])return _0x331a99;const _0x3a3ae2=_univerjs_core[_0x25977a(0x1d5)][_0x25977a(0x28e)](_0x5d4f74),_0x3f4abd=_univerjs_core['Tools']['deepClone'](_0x2c8acc),_0x37f142=(0x0,_univerjs_sheets[_0x25977a(0x1e1)])(toColumn((0x0,_univerjs_sheets[_0x25977a(0x3c8)])(_0x5d4f74[_0x25977a(0x235)][_0x25977a(0x2d0)])),toColumn((0x0,_univerjs_sheets[_0x25977a(0x3c8)])(_0x2c8acc[_0x25977a(0x235)][_0x25977a(0x2d0)])));if(_0x37f142)_0x3f4abd['params'][_0x25977a(0x2d0)][_0x25977a(0x26f)]+=_0x37f142[_0x25977a(0x1e7)],_0x3f4abd[_0x25977a(0x235)]['range'][_0x25977a(0x3e2)]+=_0x37f142['step']+(_0x37f142[_0x25977a(0x367)]||0x0);else _0x3f4abd['id']=_univerjs_sheets[_0x25977a(0x2fc)]['id'];if(_0x5d4f74[_0x25977a(0x235)]['range']['startRow']!==_0x2c8acc[_0x25977a(0x235)][_0x25977a(0x2d0)][_0x25977a(0x26f)]){const _0x437ed3=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn((0x0,_univerjs_sheets[_0x25977a(0x3c8)])(_0x2c8acc[_0x25977a(0x235)]['range'])),toColumn((0x0,_univerjs_sheets[_0x25977a(0x3c8)])(_0x5d4f74[_0x25977a(0x235)]['range'])));if(_0x437ed3)_0x3a3ae2[_0x25977a(0x235)]['range'][_0x25977a(0x26f)]+=_0x437ed3[_0x25977a(0x1e7)],_0x3a3ae2['params'][_0x25977a(0x2d0)][_0x25977a(0x3e2)]+=_0x437ed3['step']+(_0x437ed3[_0x25977a(0x367)]||0x0);else _0x3a3ae2['id']=_univerjs_sheets['EmptyMutation']['id'];}return{'m1Prime':_0x3a3ae2,'m2Prime':_0x3f4abd};}},insertRowMutationWithMoveRange={'m1':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler'(_0x937690,_0xd90c2a){const _0xa4e8ea=_0x4fd226,_0x35265c={'m1Prime':_0x937690,'m2Prime':_0xd90c2a};if(_0x937690['params'][_0xa4e8ea(0x3cc)]!==_0xd90c2a[_0xa4e8ea(0x235)][_0xa4e8ea(0x3cc)]||_0x937690[_0xa4e8ea(0x235)][_0xa4e8ea(0x303)]!==_0xd90c2a[_0xa4e8ea(0x235)]['from'][_0xa4e8ea(0x303)]&&_0x937690['params']['subUnitId']!==_0xd90c2a[_0xa4e8ea(0x235)]['to'][_0xa4e8ea(0x303)])return _0x35265c;const _0x52d4a7=_univerjs_core['Tools'][_0xa4e8ea(0x28e)](_0x937690),_0x398c86=_univerjs_core[_0xa4e8ea(0x1d5)]['deepClone'](_0xd90c2a);if(_0x937690[_0xa4e8ea(0x235)]['subUnitId']===_0xd90c2a[_0xa4e8ea(0x235)][_0xa4e8ea(0x270)][_0xa4e8ea(0x303)]){const _0x313b50=new _univerjs_core[(_0xa4e8ea(0x2ed))](_0x398c86[_0xa4e8ea(0x235)][_0xa4e8ea(0x270)]['value'])[_0xa4e8ea(0x277)](),{startRow:_0x3f6c47,endRow:_0x5dbc05}=_0x313b50,{startRow:_0x58620e,endRow:_0xae9fbd}=_0x937690[_0xa4e8ea(0x235)][_0xa4e8ea(0x2d0)],{step:_0x194dc5,length:_0x3b33f2}=(0x0,_univerjs_sheets[_0xa4e8ea(0x1e1)])((0x0,_univerjs_sheets['rotateRange'])(_0x937690['params'][_0xa4e8ea(0x2d0)]),(0x0,_univerjs_sheets[_0xa4e8ea(0x3c8)])(_0x313b50));if(_0x194dc5>0x0&&_0x3b33f2===0x0)moveRows(_0x398c86[_0xa4e8ea(0x235)][_0xa4e8ea(0x270)]['value'],_0x3f6c47,_0x5dbc05-_0x3f6c47+0x1,_0x194dc5);if(_0x194dc5===0x0&&_0x3b33f2>0x0)moveRows(_0x398c86['params'][_0xa4e8ea(0x270)][_0xa4e8ea(0x355)],_0x58620e,_0x5dbc05-_0x58620e+0x1,_0xae9fbd-_0x58620e+0x1);}if(_0x937690[_0xa4e8ea(0x235)][_0xa4e8ea(0x303)]===_0xd90c2a[_0xa4e8ea(0x235)]['to'][_0xa4e8ea(0x303)]){const _0x31c96a=new _univerjs_core['ObjectMatrix'](_0xd90c2a[_0xa4e8ea(0x235)]['to'][_0xa4e8ea(0x355)])[_0xa4e8ea(0x277)](),{startRow:_0x478bff,endRow:_0x1cc3f9}=_0x31c96a,{startRow:_0x117743,endRow:_0x3f063f}=_0x937690['params'][_0xa4e8ea(0x2d0)],{step:_0x1a3cb9,length:_0x2a8bc7}=(0x0,_univerjs_sheets['handleBaseInsertRange'])((0x0,_univerjs_sheets['rotateRange'])(_0x937690[_0xa4e8ea(0x235)]['range']),(0x0,_univerjs_sheets[_0xa4e8ea(0x3c8)])(_0x31c96a));if(_0x1a3cb9>0x0&&_0x2a8bc7===0x0)moveRows(_0x398c86[_0xa4e8ea(0x235)]['to'][_0xa4e8ea(0x355)],_0x478bff,_0x1cc3f9-_0x478bff+0x1,_0x1a3cb9);if(_0x1a3cb9===0x0&&_0x2a8bc7>0x0)moveRows(_0x398c86[_0xa4e8ea(0x235)]['to']['value'],_0x117743,_0x1cc3f9-_0x117743+0x1,_0x3f063f-_0x117743+0x1);}return{'m1Prime':_0x52d4a7,'m2Prime':_0x398c86};}},insertRowMutationWithMoveRow={'m1':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x229)]['id'],'handler'(_0x5d968a,_0x1af990){const _0x3fc053=_0x4fd226,_0x3dd062={'m1Prime':_0x5d968a,'m2Prime':_0x1af990};if(_0x5d968a[_0x3fc053(0x235)]['unitId']!==_0x1af990[_0x3fc053(0x235)]['unitId']||_0x5d968a[_0x3fc053(0x235)][_0x3fc053(0x303)]!==_0x1af990[_0x3fc053(0x235)]['subUnitId'])return _0x3dd062;const _0xb6e96e=_univerjs_core['Tools']['deepClone'](_0x5d968a),_0x500480=_univerjs_core[_0x3fc053(0x1d5)][_0x3fc053(0x28e)](_0x1af990),_0x29ec52=_0x1af990[_0x3fc053(0x235)][_0x3fc053(0x200)],_0x458097=_0x1af990[_0x3fc053(0x235)][_0x3fc053(0x26c)];if(_0x5d968a['params'][_0x3fc053(0x2d0)]['startRow']>_0x29ec52[_0x3fc053(0x26f)]&&_0x5d968a['params'][_0x3fc053(0x2d0)][_0x3fc053(0x26f)]<=_0x29ec52[_0x3fc053(0x3e2)]||_0x5d968a[_0x3fc053(0x235)]['range']['startRow']>_0x458097['startRow']&&_0x5d968a[_0x3fc053(0x235)][_0x3fc053(0x2d0)]['startRow']<=_0x458097[_0x3fc053(0x3e2)])return{'error':new Error(_0x3fc053(0x34d))};const _0x230690=(0x0,_univerjs_sheets[_0x3fc053(0x1e1)])(toColumn((0x0,_univerjs_sheets[_0x3fc053(0x3c8)])(_0x5d968a[_0x3fc053(0x235)]['range'])),toColumn((0x0,_univerjs_sheets[_0x3fc053(0x3c8)])(_0x29ec52))),_0x51b696=(0x0,_univerjs_sheets[_0x3fc053(0x1e1)])(toColumn((0x0,_univerjs_sheets[_0x3fc053(0x3c8)])(_0x5d968a[_0x3fc053(0x235)][_0x3fc053(0x2d0)])),toColumn((0x0,_univerjs_sheets[_0x3fc053(0x3c8)])(_0x458097)));_0x500480[_0x3fc053(0x235)]['sourceRange'][_0x3fc053(0x26f)]+=_0x230690['step'],_0x500480[_0x3fc053(0x235)][_0x3fc053(0x200)][_0x3fc053(0x3e2)]+=_0x230690[_0x3fc053(0x1e7)]+(_0x230690[_0x3fc053(0x367)]||0x0),_0x500480[_0x3fc053(0x235)]['targetRange'][_0x3fc053(0x26f)]+=_0x51b696['step'],_0x500480[_0x3fc053(0x235)][_0x3fc053(0x26c)][_0x3fc053(0x3e2)]+=_0x51b696[_0x3fc053(0x1e7)]+(_0x51b696[_0x3fc053(0x367)]||0x0);if(_0x29ec52['startRow']>=_0x5d968a[_0x3fc053(0x235)][_0x3fc053(0x2d0)][_0x3fc053(0x26f)]&&_0x458097[_0x3fc053(0x26f)]<_0x5d968a[_0x3fc053(0x235)][_0x3fc053(0x2d0)]['startRow']){const _0x5d8a48=_0x458097['endRow']-_0x458097['startRow']+0x1;_0xb6e96e[_0x3fc053(0x235)]['range'][_0x3fc053(0x26f)]+=_0x5d8a48,_0xb6e96e['params'][_0x3fc053(0x2d0)][_0x3fc053(0x3e2)]+=_0x5d8a48;}else{if(_0x29ec52['endRow']<_0x5d968a['params']['range'][_0x3fc053(0x26f)]&&_0x458097[_0x3fc053(0x26f)]>=_0x5d968a['params'][_0x3fc053(0x2d0)][_0x3fc053(0x26f)]){const _0x1f8267=_0x29ec52[_0x3fc053(0x3e2)]-_0x29ec52[_0x3fc053(0x26f)]+0x1;_0xb6e96e['params'][_0x3fc053(0x2d0)][_0x3fc053(0x26f)]-=_0x1f8267,_0xb6e96e['params']['range']['endRow']-=_0x1f8267;}}return{'m1Prime':_0xb6e96e,'m2Prime':_0x500480};}},insertRowMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x20e)]['id'],'handler'(_0x228dc0,_0x8aa79e){const _0x1c6644=_0x4fd226,_0xc591ad={'m1Prime':_0x228dc0,'m2Prime':_0x8aa79e};if(_0x228dc0[_0x1c6644(0x235)]['unitId']!==_0x8aa79e[_0x1c6644(0x235)][_0x1c6644(0x3cc)]||_0x228dc0[_0x1c6644(0x235)][_0x1c6644(0x303)]!==_0x8aa79e[_0x1c6644(0x235)]['subUnitId'])return _0xc591ad;const _0x59c15a=_univerjs_core[_0x1c6644(0x1d5)][_0x1c6644(0x28e)](_0x228dc0),_0x5f176b=_univerjs_core['Tools']['deepClone'](_0x8aa79e),{ranges:_0x43fc9b}=_0x5f176b[_0x1c6644(0x235)];if(_0x43fc9b['some'](_0x2c55ea=>{const _0x44f41d=_0x1c6644,_0xfda500=(0x0,_univerjs_sheets[_0x44f41d(0x1e1)])(toColumn((0x0,_univerjs_sheets[_0x44f41d(0x3c8)])(_0x228dc0[_0x44f41d(0x235)]['range'])),toColumn((0x0,_univerjs_sheets[_0x44f41d(0x3c8)])(_0x2c55ea)));if(_0xfda500[_0x44f41d(0x367)]!==0x0)return!![];return _0x2c55ea[_0x44f41d(0x26f)]+=_0xfda500[_0x44f41d(0x1e7)],_0x2c55ea[_0x44f41d(0x3e2)]+=_0xfda500[_0x44f41d(0x1e7)],![];}))return{'error':new Error(_0x1c6644(0x3fd))};return{'m1Prime':_0x59c15a,'m2Prime':_0x5f176b};}},insertRowMutationWithRemoveRow={'m1':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'handler'(_0x50b0dd,_0x1c1229){const _0x2f8e99=_0x4fd226,_0x4c5ee7={'m1Prime':_0x50b0dd,'m2Prime':_0x1c1229};if(_0x50b0dd[_0x2f8e99(0x235)][_0x2f8e99(0x3cc)]!==_0x1c1229[_0x2f8e99(0x235)][_0x2f8e99(0x3cc)]||_0x50b0dd[_0x2f8e99(0x235)][_0x2f8e99(0x303)]!==_0x1c1229[_0x2f8e99(0x235)][_0x2f8e99(0x303)])return _0x4c5ee7;const _0x23b081=_univerjs_core['Tools']['deepClone'](_0x50b0dd),_0xdb0a57=_univerjs_core[_0x2f8e99(0x1d5)]['deepClone'](_0x1c1229);if(_0x50b0dd[_0x2f8e99(0x235)]['range'][_0x2f8e99(0x26f)]<=_0x1c1229[_0x2f8e99(0x235)]['range'][_0x2f8e99(0x3e2)]&&_0x50b0dd[_0x2f8e99(0x235)]['range'][_0x2f8e99(0x26f)]>_0x1c1229[_0x2f8e99(0x235)][_0x2f8e99(0x2d0)][_0x2f8e99(0x26f)])return{'error':new Error(_0x2f8e99(0x36e))};const _0x347e0e=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn((0x0,_univerjs_sheets[_0x2f8e99(0x3c8)])(_0x50b0dd['params'][_0x2f8e99(0x2d0)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x1c1229['params'][_0x2f8e99(0x2d0)])));if(_0x347e0e)_0xdb0a57['params'][_0x2f8e99(0x2d0)][_0x2f8e99(0x26f)]+=_0x347e0e[_0x2f8e99(0x1e7)],_0xdb0a57['params'][_0x2f8e99(0x2d0)][_0x2f8e99(0x3e2)]+=_0x347e0e['step']+(_0x347e0e[_0x2f8e99(0x367)]||0x0);else _0xdb0a57['id']=_univerjs_sheets[_0x2f8e99(0x2fc)]['id'];const _0x230599=(0x0,_univerjs_sheets[_0x2f8e99(0x3c9)])(toColumn((0x0,_univerjs_sheets[_0x2f8e99(0x3c8)])(_0x1c1229[_0x2f8e99(0x235)][_0x2f8e99(0x2d0)])),toColumn((0x0,_univerjs_sheets[_0x2f8e99(0x3c8)])(_0x50b0dd[_0x2f8e99(0x235)][_0x2f8e99(0x2d0)])));return _0x230599&&(_0x23b081[_0x2f8e99(0x235)]['range'][_0x2f8e99(0x26f)]+=_0x230599[_0x2f8e99(0x1e7)],_0x23b081[_0x2f8e99(0x235)][_0x2f8e99(0x2d0)]['endRow']+=_0x230599[_0x2f8e99(0x1e7)]+(_0x230599[_0x2f8e99(0x367)]||0x0)),{'m1Prime':_0x23b081,'m2Prime':_0xdb0a57};}},insertRowMutationWithRemoveWorksheetMergeMutation={'m1':_univerjs_sheets['InsertRowMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x3ff)]['id'],'handler'(_0x55e791,_0x506e19){const _0x480717=_0x4fd226,_0x4665fb=_univerjs_core['Tools']['deepClone'](_0x55e791),_0x3ce5a0=_univerjs_core['Tools']['deepClone'](_0x506e19);if(_0x55e791[_0x480717(0x235)]['unitId']!==_0x506e19[_0x480717(0x235)][_0x480717(0x3cc)]||_0x55e791['params'][_0x480717(0x303)]!==_0x506e19[_0x480717(0x235)][_0x480717(0x303)])return{'m1Prime':_0x4665fb,'m2Prime':_0x3ce5a0};const _0x135f96=_0x3ce5a0['params'][_0x480717(0x3e4)]['map'](_0x3c25c9=>{const _0x3fd605=_0x480717,_0x215819=_0x4665fb[_0x3fd605(0x235)][_0x3fd605(0x2d0)],_0x558b13=_0x215819[_0x3fd605(0x3e2)]-_0x215819[_0x3fd605(0x26f)]+0x1;if(_0x215819[_0x3fd605(0x26f)]<=_0x3c25c9[_0x3fd605(0x26f)])return{..._0x3c25c9,'startRow':_0x3c25c9[_0x3fd605(0x26f)]+_0x558b13,'endRow':_0x3c25c9['endRow']+_0x558b13};else{if(_0x215819[_0x3fd605(0x26f)]>_0x3c25c9[_0x3fd605(0x26f)]&&_0x215819[_0x3fd605(0x26f)]<=_0x3c25c9[_0x3fd605(0x3e2)])return{..._0x3c25c9,'endRow':_0x3c25c9[_0x3fd605(0x3e2)]+_0x558b13};else return{..._0x3c25c9};}});return _0x3ce5a0[_0x480717(0x235)][_0x480717(0x3e4)]=_0x135f96,{'m1Prime':_0x4665fb,'m2Prime':_0x3ce5a0};}},insertRowMutationWithReorderRange={'m1':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x201)]['id'],'handler'(_0x5d3f37,_0x49887b){const _0x15a1fd=_0x4fd226,_0x2096b2={'m1Prime':_0x5d3f37,'m2Prime':_0x49887b};if(_0x5d3f37[_0x15a1fd(0x235)]['unitId']!==_0x49887b[_0x15a1fd(0x235)][_0x15a1fd(0x3cc)]||_0x5d3f37['params'][_0x15a1fd(0x303)]!==_0x49887b[_0x15a1fd(0x235)]['subUnitId'])return _0x2096b2;const _0x67da91=_univerjs_core['Tools'][_0x15a1fd(0x28e)](_0x49887b),_0x55c469=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn((0x0,_univerjs_sheets[_0x15a1fd(0x3c8)])(_0x5d3f37[_0x15a1fd(0x235)][_0x15a1fd(0x2d0)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x49887b[_0x15a1fd(0x235)][_0x15a1fd(0x2d0)])));_0x67da91[_0x15a1fd(0x235)][_0x15a1fd(0x2d0)][_0x15a1fd(0x26f)]+=_0x55c469[_0x15a1fd(0x1e7)],_0x67da91[_0x15a1fd(0x235)][_0x15a1fd(0x2d0)][_0x15a1fd(0x3e2)]+=_0x55c469['step']+(_0x55c469[_0x15a1fd(0x367)]||0x0);const _0x2fbc4b=_0x5d3f37[_0x15a1fd(0x235)][_0x15a1fd(0x2d0)][_0x15a1fd(0x26f)],_0x2c1258=_0x5d3f37[_0x15a1fd(0x235)][_0x15a1fd(0x2d0)]['endRow']-_0x5d3f37['params']['range'][_0x15a1fd(0x26f)]+0x1,_0x85b189={};for(const _0x4bc442 in _0x49887b[_0x15a1fd(0x235)][_0x15a1fd(0x339)]){let _0x58c028=Number(_0x4bc442),_0x1847ad=_0x49887b[_0x15a1fd(0x235)][_0x15a1fd(0x339)][_0x4bc442];_0x58c028=orderMap$1(_0x2fbc4b,_0x2c1258,_0x58c028),_0x1847ad=orderMap$1(_0x2fbc4b,_0x2c1258,_0x1847ad),_0x85b189[_0x58c028]=_0x1847ad;}return _0x67da91['params'][_0x15a1fd(0x339)]=_0x85b189,{'m1Prime':_0x5d3f37,'m2Prime':_0x67da91};}},orderMap$1=(_0x469f74,_0x5c964c,_0x3edd4c)=>{if(_0x3edd4c>=_0x469f74)return _0x3edd4c+_0x5c964c;return _0x3edd4c;},insertRowMutationWithSetNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'m2':_univerjs_sheets['SetNumfmtMutation']['id'],'handler'(_0x44cea3,_0x1348b9){const _0x149cc3=_0x4fd226,_0x16911d={'m1Prime':_0x44cea3,'m2Prime':_0x1348b9};if(_0x44cea3[_0x149cc3(0x235)][_0x149cc3(0x3cc)]!==_0x1348b9[_0x149cc3(0x235)][_0x149cc3(0x3cc)]||_0x44cea3[_0x149cc3(0x235)][_0x149cc3(0x303)]!==_0x1348b9[_0x149cc3(0x235)]['subUnitId'])return _0x16911d;const _0x105944=[_univerjs_core[_0x149cc3(0x1d5)][_0x149cc3(0x28e)](_0x44cea3)],_0x221056=_univerjs_core[_0x149cc3(0x1d5)][_0x149cc3(0x28e)](_0x1348b9),{values:_0x1a402a}=_0x221056[_0x149cc3(0x235)],_0x19c293=[];let _0x2b91b5=![];for(const _0x3b307f in _0x1a402a){const _0x3c0b30=_0x1a402a[_0x3b307f];_0x19c293[_0x149cc3(0x285)](..._0x3c0b30[_0x149cc3(0x3e4)]);if(_0x3c0b30['ranges'][_0x149cc3(0x1c0)](_0x3ae6c3=>{const _0x537766=_0x149cc3,_0x424b6d=(0x0,_univerjs_sheets[_0x537766(0x1e1)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x44cea3[_0x537766(0x235)]['range'])),(0x0,_univerjs_sheets['rotateRange'])(toColumn(_0x3ae6c3)));if(_0x424b6d['length']!==0x0)return!![];if(_0x424b6d[_0x537766(0x1e7)]!==0x0)_0x2b91b5=!![];return _0x3ae6c3[_0x537766(0x26f)]+=_0x424b6d[_0x537766(0x1e7)],_0x3ae6c3[_0x537766(0x3e2)]+=_0x424b6d[_0x537766(0x1e7)],![];}))return{'error':new Error(_0x149cc3(0x2bf))};}if(_0x2b91b5){const _0x107b8c={'id':_univerjs_sheets[_0x149cc3(0x20e)]['id'],'params':{'unitId':_0x1348b9[_0x149cc3(0x235)][_0x149cc3(0x3cc)],'subUnitId':_0x1348b9[_0x149cc3(0x235)][_0x149cc3(0x303)],'ranges':_0x19c293}};_0x105944[_0x149cc3(0x285)](_0x107b8c,_0x221056);}return{'m1Prime':_0x105944,'m2Prime':_0x221056};}},insertRowMutationWithSetRangeValues={'m1':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x35c)]['id'],'handler'(_0x4b85af,_0x48773f){const _0x1da7f6=_0x4fd226,_0x49404c={'m1Prime':_0x4b85af,'m2Prime':_0x48773f};if(_0x4b85af[_0x1da7f6(0x235)][_0x1da7f6(0x3cc)]!==_0x48773f[_0x1da7f6(0x235)][_0x1da7f6(0x3cc)]||_0x4b85af[_0x1da7f6(0x235)]['subUnitId']!==_0x48773f[_0x1da7f6(0x235)][_0x1da7f6(0x303)])return _0x49404c;const _0x1d206b=[_univerjs_core[_0x1da7f6(0x1d5)]['deepClone'](_0x4b85af)],_0x35cb07=_univerjs_core['Tools']['deepClone'](_0x48773f),_0x3032b1=new _univerjs_core['ObjectMatrix'](_0x35cb07['params']['cellValue']),_0xc047c6=_0x3032b1[_0x1da7f6(0x277)](),_0x5ad235=_0x4b85af[_0x1da7f6(0x235)][_0x1da7f6(0x2d0)],_0x59ccb8=_0x5ad235['endRow']-_0x5ad235[_0x1da7f6(0x26f)]+0x1;if(_0x35cb07[_0x1da7f6(0x235)][_0x1da7f6(0x2f8)]&&_0x5ad235['startRow']<=_0xc047c6['endRow']){const _0x2bed70=Math[_0x1da7f6(0x2aa)](_0xc047c6[_0x1da7f6(0x26f)],_0x5ad235['startRow']);moveRows(_0x35cb07['params'][_0x1da7f6(0x2f8)],_0x2bed70,_0xc047c6['endRow']-_0x2bed70+0x1,_0x59ccb8);}const _0x40ad43=new _univerjs_core[(_0x1da7f6(0x2ed))]();let _0x5b5aeb=![];_0x3032b1[_0x1da7f6(0x398)]((_0x1f1e32,_0x40bd66,_0x4d35bf)=>{const _0x21d0c0=_0x1da7f6;if(_0x4d35bf&&_0x4d35bf['f']){const _0x358789=_0x4d35bf['f'];let _0xd69447=![];const _0x3a8356=processFormulaString(_0x4b85af[_0x21d0c0(0x235)]['unitId'],_0x4b85af[_0x21d0c0(0x235)][_0x21d0c0(0x303)],_0x358789,_0x3fa1d6=>{const _0x53c563=_0x21d0c0,_0x118d4e=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn((0x0,_univerjs_sheets[_0x53c563(0x3c8)])(_0x4b85af[_0x53c563(0x235)][_0x53c563(0x2d0)])),toColumn((0x0,_univerjs_sheets[_0x53c563(0x3c8)])(_0x3fa1d6)));return(_0x118d4e[_0x53c563(0x1e7)]!==0x0||_0x118d4e[_0x53c563(0x367)]!==0x0)&&(_0xd69447=!![],_0x3fa1d6['startRow']+=_0x118d4e['step'],_0x3fa1d6['endRow']+=_0x118d4e[_0x53c563(0x1e7)]+_0x118d4e[_0x53c563(0x367)]),_0x3fa1d6;});_0xd69447&&(_0x5b5aeb=!![],_0x4d35bf['f']=_0x3a8356,_0x40ad43[_0x21d0c0(0x408)](_0x1f1e32,_0x40bd66,{..._0x4d35bf}));}});if(_0x5b5aeb){const _0x49e49d={'id':_univerjs_sheets['SetRangeValuesMutation']['id'],'params':{'unitId':_0x48773f[_0x1da7f6(0x235)][_0x1da7f6(0x3cc)],'subUnitId':_0x48773f[_0x1da7f6(0x235)]['subUnitId'],'cellValue':_0x40ad43[_0x1da7f6(0x414)]()}};_0x1d206b[_0x1da7f6(0x285)](_0x49e49d);}return{'m1Prime':_0x1d206b,'m2Prime':_0x35cb07};}},insertRowMutationWithSetRowData={'m1':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x361)]['id'],'handler'(_0x37b301,_0xab3c25){const _0x49eefe=_0x4fd226,_0x18b1c7={'m1Prime':_0x37b301,'m2Prime':_0xab3c25};if(_0x37b301[_0x49eefe(0x235)]['unitId']!==_0xab3c25['params']['unitId']||_0x37b301[_0x49eefe(0x235)][_0x49eefe(0x303)]!==_0xab3c25[_0x49eefe(0x235)]['subUnitId'])return _0x18b1c7;const _0x4e3e09=_univerjs_core[_0x49eefe(0x1d5)][_0x49eefe(0x28e)](_0x37b301),_0x5875f2=_univerjs_core[_0x49eefe(0x1d5)]['deepClone'](_0xab3c25),{rowData:_0x443d47}=_0x5875f2[_0x49eefe(0x235)];for(let _0x2f05cf=_0x37b301[_0x49eefe(0x235)]['range'][_0x49eefe(0x26f)];_0x2f05cf<=_0x37b301[_0x49eefe(0x235)][_0x49eefe(0x2d0)][_0x49eefe(0x3e2)];_0x2f05cf++)(0x0,_univerjs_core[_0x49eefe(0x2d8)])(_0x2f05cf,void 0x0,_0x443d47);return{'m1Prime':_0x4e3e09,'m2Prime':_0x5875f2};}},insertRowMutationWithSetRowHidden={'m1':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'m2':_univerjs_sheets['SetRowHiddenMutation']['id'],'handler'(_0x13674f,_0x31d96a){const _0x186557=_0x4fd226,_0x8c8b13={'m1Prime':_0x13674f,'m2Prime':_0x31d96a};if(_0x13674f[_0x186557(0x235)][_0x186557(0x3cc)]!==_0x31d96a['params'][_0x186557(0x3cc)]||_0x13674f[_0x186557(0x235)]['subUnitId']!==_0x31d96a['params'][_0x186557(0x303)])return _0x8c8b13;const _0x558fe2=_univerjs_core[_0x186557(0x1d5)][_0x186557(0x28e)](_0x13674f),_0x4a9415=_univerjs_core['Tools'][_0x186557(0x28e)](_0x31d96a),{ranges:_0x1a8fe7}=_0x4a9415[_0x186557(0x235)];if(_0x1a8fe7[_0x186557(0x1c0)](_0x2bc2c5=>{const _0x28c6a1=_0x186557,_0x36feee=(0x0,_univerjs_sheets[_0x28c6a1(0x1e1)])(toColumn((0x0,_univerjs_sheets[_0x28c6a1(0x3c8)])(_0x13674f[_0x28c6a1(0x235)][_0x28c6a1(0x2d0)])),toColumn((0x0,_univerjs_sheets[_0x28c6a1(0x3c8)])(_0x2bc2c5)));if(_0x36feee[_0x28c6a1(0x367)]!==0x0)return!![];return _0x2bc2c5[_0x28c6a1(0x26f)]+=_0x36feee['step'],_0x2bc2c5[_0x28c6a1(0x3e2)]+=_0x36feee[_0x28c6a1(0x1e7)],![];}))return{'error':new Error(_0x186557(0x38e))};return{'m1Prime':_0x558fe2,'m2Prime':_0x4a9415};}},insertRowMutationWithSetRowVisible={'m1':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x203)]['id'],'handler'(_0x24f7b5,_0x1a0b72){const _0x1da124=_0x4fd226,_0x53607d={'m1Prime':_0x24f7b5,'m2Prime':_0x1a0b72};if(_0x24f7b5[_0x1da124(0x235)][_0x1da124(0x3cc)]!==_0x1a0b72[_0x1da124(0x235)][_0x1da124(0x3cc)]||_0x24f7b5[_0x1da124(0x235)][_0x1da124(0x303)]!==_0x1a0b72[_0x1da124(0x235)][_0x1da124(0x303)])return _0x53607d;const _0x2b66bb=_univerjs_core['Tools'][_0x1da124(0x28e)](_0x24f7b5),_0x412bd5=_univerjs_core[_0x1da124(0x1d5)][_0x1da124(0x28e)](_0x1a0b72),{ranges:_0x30b3fc}=_0x412bd5[_0x1da124(0x235)];if(_0x30b3fc[_0x1da124(0x1c0)](_0x282062=>{const _0x40b08e=_0x1da124,_0x2c1269=(0x0,_univerjs_sheets[_0x40b08e(0x1e1)])(toColumn((0x0,_univerjs_sheets[_0x40b08e(0x3c8)])(_0x24f7b5[_0x40b08e(0x235)][_0x40b08e(0x2d0)])),toColumn((0x0,_univerjs_sheets[_0x40b08e(0x3c8)])(_0x282062)));if(_0x2c1269[_0x40b08e(0x367)]!==0x0)return!![];return _0x282062[_0x40b08e(0x26f)]+=_0x2c1269[_0x40b08e(0x1e7)],_0x282062['endRow']+=_0x2c1269[_0x40b08e(0x1e7)],![];}))return{'error':new Error(_0x1da124(0x2f1))};return{'m1Prime':_0x2b66bb,'m2Prime':_0x412bd5};}},insertRowMutationWithSetSelection={'m1':_univerjs_sheets['InsertRowMutation']['id'],'m2':_univerjs_sheets['SetSelectionsOperation']['id'],'handler'(_0xb4024b,_0x25b8ea){const _0x52223a=_0x4fd226,_0x324334={'m1Prime':[],'m2Prime':[]};if(_0xb4024b[_0x52223a(0x235)]['unitId']!==_0x25b8ea[_0x52223a(0x235)][_0x52223a(0x3cc)]||_0xb4024b[_0x52223a(0x235)][_0x52223a(0x303)]!==_0x25b8ea[_0x52223a(0x235)][_0x52223a(0x303)])return _0x324334;const _0x1520c0=_univerjs_core[_0x52223a(0x1d5)][_0x52223a(0x28e)](_0x25b8ea);let _0x23c026=![];_0x1520c0[_0x52223a(0x235)][_0x52223a(0x399)][_0x52223a(0x222)](_0x50873e=>{const _0x4cd858=_0x52223a,{range:_0x1b0ba8,primary:_0x9935ac}=_0x50873e,_0x2f4a79=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn((0x0,_univerjs_sheets[_0x4cd858(0x3c8)])(_0xb4024b['params'][_0x4cd858(0x2d0)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x1b0ba8)));if(_0x2f4a79[_0x4cd858(0x367)]||_0x2f4a79['step']){_0x1b0ba8[_0x4cd858(0x26f)]+=_0x2f4a79[_0x4cd858(0x1e7)],_0x1b0ba8[_0x4cd858(0x3e2)]+=_0x2f4a79[_0x4cd858(0x1e7)]+(_0x2f4a79[_0x4cd858(0x367)]||0x0);if(_0x9935ac){const _0x168472=(0x0,_univerjs_sheets[_0x4cd858(0x1e1)])(toColumn((0x0,_univerjs_sheets[_0x4cd858(0x3c8)])(_0xb4024b['params'][_0x4cd858(0x2d0)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x9935ac)));(_0x168472[_0x4cd858(0x367)]||_0x168472['step'])&&(_0x9935ac[_0x4cd858(0x26f)]+=_0x168472[_0x4cd858(0x1e7)],_0x9935ac[_0x4cd858(0x3e2)]+=_0x168472['step'],_0x9935ac[_0x4cd858(0x402)]+=_0x168472[_0x4cd858(0x1e7)]);}_0x23c026=!![];}});if(_0x23c026)_0x324334[_0x52223a(0x3d9)][_0x52223a(0x285)](_0x1520c0);return _0x324334;}},insertRowMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'m2':_univerjs_sheets_filter['SetSheetsFilterRangeMutation']['id'],'handler'(_0x46b6b1,_0x4cddb0){const _0x386d52=_0x4fd226,_0x505ef5={'m1Prime':[_0x46b6b1],'m2Prime':[_0x4cddb0]};if(_0x46b6b1['params']['unitId']!==_0x4cddb0['params'][_0x386d52(0x3cc)]||_0x46b6b1[_0x386d52(0x235)][_0x386d52(0x303)]!==_0x4cddb0[_0x386d52(0x235)][_0x386d52(0x303)])return _0x505ef5;const _0x1d6d0e=_univerjs_core[_0x386d52(0x1d5)][_0x386d52(0x28e)](_0x46b6b1),_0x5f4fa1=_univerjs_core[_0x386d52(0x1d5)][_0x386d52(0x28e)](_0x4cddb0),_0x313e0a=handleInsert({'start':_0x46b6b1[_0x386d52(0x235)][_0x386d52(0x2d0)]['startRow'],'end':_0x46b6b1[_0x386d52(0x235)][_0x386d52(0x2d0)][_0x386d52(0x3e2)]},{'start':_0x4cddb0[_0x386d52(0x235)][_0x386d52(0x2d0)][_0x386d52(0x26f)],'end':_0x4cddb0[_0x386d52(0x235)][_0x386d52(0x2d0)][_0x386d52(0x3e2)]});if(_0x5f4fa1[_0x386d52(0x235)]['range'][_0x386d52(0x26f)]===_0x313e0a[_0x386d52(0x24d)]&&_0x5f4fa1[_0x386d52(0x235)][_0x386d52(0x2d0)][_0x386d52(0x3e2)]===_0x313e0a['end'])return _0x505ef5;return _0x5f4fa1['params'][_0x386d52(0x2d0)][_0x386d52(0x26f)]=_0x313e0a[_0x386d52(0x24d)],_0x5f4fa1[_0x386d52(0x235)][_0x386d52(0x2d0)]['endRow']=_0x313e0a[_0x386d52(0x1f8)],{'m1Prime':[_0x5f4fa1,_0x1d6d0e],'m2Prime':[_0x5f4fa1]};}},insertRowMutationWithSetWorksheetRowAutoHeight={'m1':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x2cc)]['id'],'handler'(_0x2da1da,_0x1001c8){const _0x3c6d74=_0x4fd226,_0x48b8ab={'m1Prime':_0x2da1da,'m2Prime':_0x1001c8};if(_0x2da1da['params'][_0x3c6d74(0x3cc)]!==_0x1001c8['params'][_0x3c6d74(0x3cc)]||_0x2da1da[_0x3c6d74(0x235)]['subUnitId']!==_0x1001c8['params'][_0x3c6d74(0x303)])return _0x48b8ab;const _0x5b2cb9=_univerjs_core[_0x3c6d74(0x1d5)][_0x3c6d74(0x28e)](_0x2da1da),_0x4ad69c=_univerjs_core['Tools'][_0x3c6d74(0x28e)](_0x1001c8),{rowsAutoHeightInfo:_0x2131cf}=_0x4ad69c[_0x3c6d74(0x235)];if(_0x2131cf[_0x3c6d74(0x1c0)](_0x2ebbdd=>{const _0x1be024=_0x3c6d74,_0x179c56={'startRow':_0x2ebbdd[_0x1be024(0x1c4)],'endRow':_0x2ebbdd[_0x1be024(0x1c4)],'startColumn':0x0,'endColumn':0x0},_0x1ba1b3=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn((0x0,_univerjs_sheets[_0x1be024(0x3c8)])(_0x2da1da['params'][_0x1be024(0x2d0)])),(0x0,_univerjs_sheets[_0x1be024(0x3c8)])(_0x179c56));if(_0x1ba1b3[_0x1be024(0x367)]!==0x0)return!![];return _0x2ebbdd[_0x1be024(0x1c4)]+=_0x1ba1b3[_0x1be024(0x1e7)],![];}))return{'error':new Error(_0x3c6d74(0x227))};return{'m1Prime':_0x5b2cb9,'m2Prime':_0x4ad69c};}},insertRowMutationWithSetWorksheetRowHeight={'m1':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x1bb)]['id'],'handler'(_0x437c45,_0x560943){const _0x4eeeed=_0x4fd226,_0x524b02={'m1Prime':_0x437c45,'m2Prime':_0x560943};if(_0x437c45['params']['unitId']!==_0x560943['params'][_0x4eeeed(0x3cc)]||_0x437c45['params'][_0x4eeeed(0x303)]!==_0x560943[_0x4eeeed(0x235)][_0x4eeeed(0x303)])return _0x524b02;const _0x1b6938=_univerjs_core[_0x4eeeed(0x1d5)][_0x4eeeed(0x28e)](_0x437c45),_0x201545=_univerjs_core[_0x4eeeed(0x1d5)][_0x4eeeed(0x28e)](_0x560943),{ranges:_0x3df1e9,rowHeight:_0x2b8b3e}=_0x201545[_0x4eeeed(0x235)];if(_0x3df1e9[_0x4eeeed(0x1c0)](_0x488d49=>{const _0x443164=_0x4eeeed,_0x339ad3=(0x0,_univerjs_sheets['handleBaseInsertRange'])(toColumn((0x0,_univerjs_sheets[_0x443164(0x3c8)])(_0x437c45[_0x443164(0x235)]['range'])),(0x0,_univerjs_sheets[_0x443164(0x3c8)])(_0x488d49));if(_0x339ad3['length']!==0x0)return!![];return _0x488d49[_0x443164(0x26f)]+=_0x339ad3[_0x443164(0x1e7)],_0x488d49[_0x443164(0x3e2)]+=_0x339ad3['step'],![];}))return{'error':new Error(_0x4eeeed(0x3ee))};if(typeof _0x2b8b3e!==_0x4eeeed(0x2af)){for(let _0xf9c6e1=_0x437c45['params'][_0x4eeeed(0x2d0)][_0x4eeeed(0x26f)];_0xf9c6e1<=_0x437c45[_0x4eeeed(0x235)][_0x4eeeed(0x2d0)][_0x4eeeed(0x3e2)];_0xf9c6e1++)(0x0,_univerjs_core[_0x4eeeed(0x2d8)])(_0xf9c6e1,void 0x0,_0x2b8b3e);}return{'m1Prime':_0x1b6938,'m2Prime':_0x201545};}},insertRowMutationWithSetWorksheetRowIsAutoHeight={'m1':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'m2':_univerjs_sheets['SetWorksheetRowIsAutoHeightMutation']['id'],'handler'(_0x3a07ce,_0x25f208){const _0x17c7cc=_0x4fd226,_0xae9bf5={'m1Prime':_0x3a07ce,'m2Prime':_0x25f208};if(_0x3a07ce[_0x17c7cc(0x235)][_0x17c7cc(0x3cc)]!==_0x25f208[_0x17c7cc(0x235)][_0x17c7cc(0x3cc)]||_0x3a07ce[_0x17c7cc(0x235)]['subUnitId']!==_0x25f208[_0x17c7cc(0x235)][_0x17c7cc(0x303)])return _0xae9bf5;const _0x34b2ac=_univerjs_core[_0x17c7cc(0x1d5)][_0x17c7cc(0x28e)](_0x3a07ce),_0x1cfc25=_univerjs_core[_0x17c7cc(0x1d5)][_0x17c7cc(0x28e)](_0x25f208),{ranges:_0x7265d1,autoHeightInfo:_0x2eac56}=_0x1cfc25[_0x17c7cc(0x235)];if(_0x7265d1[_0x17c7cc(0x1c0)](_0x35c8c7=>{const _0x42e29e=_0x17c7cc,_0x53527a=(0x0,_univerjs_sheets[_0x42e29e(0x1e1)])(toColumn((0x0,_univerjs_sheets[_0x42e29e(0x3c8)])(_0x3a07ce[_0x42e29e(0x235)][_0x42e29e(0x2d0)])),(0x0,_univerjs_sheets['rotateRange'])(_0x35c8c7));if(_0x53527a[_0x42e29e(0x367)]!==0x0)return!![];return _0x35c8c7[_0x42e29e(0x26f)]+=_0x53527a['step'],_0x35c8c7[_0x42e29e(0x3e2)]+=_0x53527a[_0x42e29e(0x1e7)],![];}))return{'error':new Error(_0x17c7cc(0x25f))};if(typeof _0x2eac56!=='number'){for(let _0x53eeeb=_0x3a07ce[_0x17c7cc(0x235)][_0x17c7cc(0x2d0)][_0x17c7cc(0x26f)];_0x53eeeb<=_0x3a07ce[_0x17c7cc(0x235)][_0x17c7cc(0x2d0)][_0x17c7cc(0x3e2)];_0x53eeeb++)(0x0,_univerjs_core[_0x17c7cc(0x2d8)])(_0x53eeeb,void 0x0,_0x2eac56);}return{'m1Prime':_0x34b2ac,'m2Prime':_0x1cfc25};}},insertRowWithUpdateCommentRef={'m1':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'m2':_univerjs_thread_comment[_0x4fd226(0x27b)]['id'],'handler':(_0x1d09f6,_0x45dc3e)=>{const _0x29a077=_0x4fd226,_0x4d2c5d={'m1Prime':_0x1d09f6,'m2Prime':_0x45dc3e};if(_0x1d09f6[_0x29a077(0x235)][_0x29a077(0x3cc)]!==_0x45dc3e[_0x29a077(0x235)]['unitId']||_0x1d09f6[_0x29a077(0x235)][_0x29a077(0x303)]!==_0x45dc3e[_0x29a077(0x235)]['subUnitId'])return _0x4d2c5d;const _0x31eaf5=transformUpdateCommentRefWithRefRange(_0x45dc3e,{'id':_univerjs_sheets[_0x29a077(0x405)]['id'],'params':{'unitId':_0x1d09f6['params'][_0x29a077(0x3cc)],'subUnitId':_0x1d09f6[_0x29a077(0x235)][_0x29a077(0x303)],'range':_0x1d09f6[_0x29a077(0x235)][_0x29a077(0x2d0)]}});return{'m1Prime':[_0x1d09f6,..._0x31eaf5],'m2Prime':[_0x45dc3e,..._0x31eaf5]};}},insertRowMutationWithUpdateDataValidation={'m1':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'m2':_univerjs_data_validation['UpdateDataValidationMutation']['id'],'handler':(_0x188d71,_0x77e60)=>{const _0x2d98a1=_0x4fd226,_0x40ee56={'m1Prime':_0x188d71,'m2Prime':_0x77e60};if(_0x188d71[_0x2d98a1(0x235)][_0x2d98a1(0x3cc)]!==_0x77e60[_0x2d98a1(0x235)][_0x2d98a1(0x3cc)]||_0x77e60[_0x2d98a1(0x235)][_0x2d98a1(0x303)]!==_0x188d71[_0x2d98a1(0x235)][_0x2d98a1(0x303)])return _0x40ee56;const _0x4a1cfd=transformUpdateDataValidationWithRefRange(_0x77e60,{'id':_univerjs_sheets[_0x2d98a1(0x405)]['id'],'params':{'unitId':_0x188d71[_0x2d98a1(0x235)]['unitId'],'subUnitId':_0x188d71[_0x2d98a1(0x235)][_0x2d98a1(0x303)],'range':_0x188d71[_0x2d98a1(0x235)][_0x2d98a1(0x2d0)]}});return{'m1Prime':[_0x188d71,..._0x4a1cfd],'m2Prime':[_0x77e60,..._0x4a1cfd]};}},moveColWithAddComment={'m1':_univerjs_sheets[_0x4fd226(0x2b3)]['id'],'m2':_univerjs_thread_comment[_0x4fd226(0x2de)]['id'],'handler':(_0x404c50,_0x5c4a46)=>{const _0x727492=_0x4fd226,_0x545c1e={'m1Prime':_0x404c50,'m2Prime':_0x5c4a46};if(_0x404c50[_0x727492(0x235)][_0x727492(0x3cc)]!==_0x5c4a46[_0x727492(0x235)][_0x727492(0x3cc)]||_0x404c50[_0x727492(0x235)][_0x727492(0x303)]!==_0x5c4a46[_0x727492(0x235)][_0x727492(0x303)])return _0x545c1e;const _0x287384=transformAddCommentWithRefRange(_0x5c4a46,{'id':_univerjs_sheets[_0x727492(0x3b6)]['id'],'params':{'unitId':_0x404c50['params'][_0x727492(0x3cc)],'subUnitId':_0x404c50[_0x727492(0x235)][_0x727492(0x303)],'fromRange':_0x404c50['params'][_0x727492(0x200)],'toRange':_0x404c50[_0x727492(0x235)]['targetRange']}});return{'m1Prime':[_0x404c50,..._0x287384],'m2Prime':[_0x5c4a46,..._0x287384]};}},moveColMutationWithAddMerge={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x340)]['id'],'handler'(_0x37b6dd,_0x163de5){const _0x3008cd=_0x4fd226,_0x2d61de=addWorksheetMergeMutationWithMoveColMutation[_0x3008cd(0x2ef)](_0x163de5,_0x37b6dd);if(isTransformMutationSuccess(_0x2d61de))return{'m1Prime':_0x2d61de[_0x3008cd(0x3d9)],'m2Prime':_0x2d61de[_0x3008cd(0x253)]};else return _0x2d61de;}},moveColMutationWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x2b3)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x2b3)]['id'],'handler'(_0x1404a8,_0x55e0bd){const _0x1e3b5d=_0x4fd226,_0x13accb={'m1Prime':_0x1404a8,'m2Prime':_0x55e0bd};if(_0x1404a8['params'][_0x1e3b5d(0x3cc)]!==_0x55e0bd[_0x1e3b5d(0x235)][_0x1e3b5d(0x3cc)]||_0x1404a8[_0x1e3b5d(0x235)][_0x1e3b5d(0x303)]!==_0x55e0bd[_0x1e3b5d(0x235)][_0x1e3b5d(0x303)])return _0x13accb;const _0x59e2e7=_univerjs_core[_0x1e3b5d(0x1d5)]['deepClone'](_0x1404a8),_0x1032f8=_univerjs_core[_0x1e3b5d(0x1d5)][_0x1e3b5d(0x28e)](_0x55e0bd),_0x143e36=_0x55e0bd[_0x1e3b5d(0x235)][_0x1e3b5d(0x200)],_0x330225=_0x55e0bd[_0x1e3b5d(0x235)][_0x1e3b5d(0x26c)],_0x120838=_0x1404a8[_0x1e3b5d(0x235)][_0x1e3b5d(0x200)],_0x2722a3=_0x1404a8['params']['targetRange'];if(_0x120838[_0x1e3b5d(0x337)]>=_0x143e36[_0x1e3b5d(0x28f)]&&_0x120838[_0x1e3b5d(0x28f)]<=_0x143e36[_0x1e3b5d(0x337)])return{'error':new Error(_0x1e3b5d(0x23d))};const _0x209d33=(0x0,_univerjs_sheets[_0x1e3b5d(0x302)])({'start':_0x120838['startColumn'],'end':_0x120838[_0x1e3b5d(0x337)]},{'start':_0x2722a3['startColumn'],'end':_0x2722a3[_0x1e3b5d(0x337)]},{'start':_0x143e36[_0x1e3b5d(0x28f)],'end':_0x143e36['endColumn']}),_0x446d18=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x120838[_0x1e3b5d(0x28f)],'end':_0x120838[_0x1e3b5d(0x337)]},{'start':_0x2722a3[_0x1e3b5d(0x28f)],'end':_0x2722a3[_0x1e3b5d(0x337)]},{'start':_0x330225[_0x1e3b5d(0x28f)],'end':_0x330225[_0x1e3b5d(0x337)]});if(_0x209d33&&_0x446d18)_0x1032f8['params'][_0x1e3b5d(0x200)][_0x1e3b5d(0x28f)]+=_0x209d33[_0x1e3b5d(0x1e7)],_0x1032f8['params'][_0x1e3b5d(0x200)][_0x1e3b5d(0x337)]+=_0x209d33[_0x1e3b5d(0x1e7)]+(_0x209d33['length']||0x0),_0x1032f8[_0x1e3b5d(0x235)]['targetRange'][_0x1e3b5d(0x28f)]+=_0x446d18[_0x1e3b5d(0x1e7)],_0x1032f8['params'][_0x1e3b5d(0x26c)]['endColumn']+=_0x446d18[_0x1e3b5d(0x1e7)]+(_0x446d18[_0x1e3b5d(0x367)]||0x0);else _0x1032f8['id']=_univerjs_sheets[_0x1e3b5d(0x2fc)]['id'];const _0x1611da=(0x0,_univerjs_sheets[_0x1e3b5d(0x302)])({'start':_0x143e36[_0x1e3b5d(0x28f)],'end':_0x143e36['endColumn']},{'start':_0x330225[_0x1e3b5d(0x28f)],'end':_0x330225[_0x1e3b5d(0x337)]},{'start':_0x120838[_0x1e3b5d(0x28f)],'end':_0x120838[_0x1e3b5d(0x337)]}),_0x158c8c=(0x0,_univerjs_sheets[_0x1e3b5d(0x302)])({'start':_0x143e36[_0x1e3b5d(0x28f)],'end':_0x143e36['endColumn']},{'start':_0x330225[_0x1e3b5d(0x28f)],'end':_0x330225['endColumn']},{'start':_0x2722a3['startColumn'],'end':_0x2722a3[_0x1e3b5d(0x337)]});if(_0x1611da&&_0x158c8c)_0x59e2e7['params']['sourceRange'][_0x1e3b5d(0x28f)]+=_0x1611da['step'],_0x59e2e7['params'][_0x1e3b5d(0x200)][_0x1e3b5d(0x337)]+=_0x1611da[_0x1e3b5d(0x1e7)]+(_0x1611da[_0x1e3b5d(0x367)]||0x0),_0x59e2e7[_0x1e3b5d(0x235)][_0x1e3b5d(0x26c)][_0x1e3b5d(0x28f)]+=_0x158c8c['step'],_0x59e2e7[_0x1e3b5d(0x235)]['targetRange'][_0x1e3b5d(0x337)]+=_0x158c8c[_0x1e3b5d(0x1e7)]+(_0x158c8c[_0x1e3b5d(0x367)]||0x0);else _0x59e2e7['id']=_univerjs_sheets[_0x1e3b5d(0x2fc)]['id'];return{'m1Prime':_0x59e2e7,'m2Prime':_0x1032f8};}},moveColMutationWithMoveRange={'m1':_univerjs_sheets[_0x4fd226(0x2b3)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x35a)]['id'],'handler'(_0x5e8e1a,_0x3dea82){const _0x11ae28=_0x4fd226,_0x200a15={'m1Prime':_0x5e8e1a,'m2Prime':_0x3dea82};if(_0x5e8e1a['params'][_0x11ae28(0x3cc)]!==_0x3dea82['params'][_0x11ae28(0x3cc)]||_0x5e8e1a[_0x11ae28(0x235)]['subUnitId']!==_0x3dea82[_0x11ae28(0x235)][_0x11ae28(0x270)]['subUnitId']&&_0x5e8e1a[_0x11ae28(0x235)][_0x11ae28(0x303)]!==_0x3dea82[_0x11ae28(0x235)]['to'][_0x11ae28(0x303)])return _0x200a15;const _0x2292c0=_univerjs_core[_0x11ae28(0x1d5)]['deepClone'](_0x5e8e1a),_0x1d776a=_univerjs_core[_0x11ae28(0x1d5)]['deepClone'](_0x3dea82),_0x49fc9a=_0x5e8e1a[_0x11ae28(0x235)][_0x11ae28(0x200)],_0x2dc256=_0x5e8e1a[_0x11ae28(0x235)]['targetRange'];if(_0x5e8e1a['params']['subUnitId']===_0x3dea82['params'][_0x11ae28(0x270)]['subUnitId']){const _0x30186a=new _univerjs_core['ObjectMatrix'](_0x1d776a[_0x11ae28(0x235)][_0x11ae28(0x270)][_0x11ae28(0x355)]),_0x12f18a=_0x30186a['getDataRange']();if(intersect({'start':_0x49fc9a[_0x11ae28(0x28f)],'end':_0x49fc9a[_0x11ae28(0x337)]},{'start':_0x12f18a['startColumn'],'end':_0x12f18a['endColumn']})||intersect({'start':_0x2dc256['startColumn'],'end':_0x2dc256['endColumn']},{'start':_0x12f18a[_0x11ae28(0x28f)],'end':_0x12f18a[_0x11ae28(0x337)]}))return{'error':new Error('move\x20col\x20is\x20conflict\x20with\x20move\x20range')};const _0x2fe192=(0x0,_univerjs_sheets[_0x11ae28(0x302)])({'start':_0x49fc9a[_0x11ae28(0x28f)],'end':_0x49fc9a[_0x11ae28(0x337)]},{'start':_0x2dc256[_0x11ae28(0x28f)],'end':_0x2dc256[_0x11ae28(0x337)]},{'start':_0x12f18a['startColumn'],'end':_0x12f18a[_0x11ae28(0x337)]});if(_0x2fe192[_0x11ae28(0x367)]!==0x0)return{'error':new Error('move\x20col\x20is\x20conflict\x20with\x20move\x20range')};if(_0x2fe192[_0x11ae28(0x1e7)]!==0x0)_0x30186a[_0x11ae28(0x255)](_0x49fc9a[_0x11ae28(0x28f)],_0x49fc9a['endColumn']-_0x49fc9a['startColumn']+0x1,_0x2dc256[_0x11ae28(0x28f)]);_0x1d776a[_0x11ae28(0x235)][_0x11ae28(0x270)]['value']=_0x30186a[_0x11ae28(0x414)]();}if(_0x5e8e1a[_0x11ae28(0x235)]['subUnitId']===_0x3dea82['params']['to'][_0x11ae28(0x303)]){const _0x2d01b3=new _univerjs_core[(_0x11ae28(0x2ed))](_0x1d776a[_0x11ae28(0x235)]['to'][_0x11ae28(0x355)]),_0x30b014=_0x2d01b3[_0x11ae28(0x277)]();if(intersect({'start':_0x49fc9a[_0x11ae28(0x28f)],'end':_0x49fc9a[_0x11ae28(0x337)]},{'start':_0x30b014[_0x11ae28(0x28f)],'end':_0x30b014[_0x11ae28(0x337)]})||intersect({'start':_0x2dc256[_0x11ae28(0x28f)],'end':_0x2dc256[_0x11ae28(0x337)]},{'start':_0x30b014[_0x11ae28(0x28f)],'end':_0x30b014[_0x11ae28(0x337)]}))return{'error':new Error(_0x11ae28(0x284))};const _0x114a2b=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x49fc9a[_0x11ae28(0x28f)],'end':_0x49fc9a[_0x11ae28(0x337)]},{'start':_0x2dc256['startColumn'],'end':_0x2dc256[_0x11ae28(0x337)]},{'start':_0x30b014[_0x11ae28(0x28f)],'end':_0x30b014['endColumn']});if(_0x114a2b[_0x11ae28(0x367)]!==0x0)return{'error':new Error('move\x20col\x20is\x20conflict\x20with\x20move\x20range')};if(_0x114a2b[_0x11ae28(0x1e7)]!==0x0)_0x2d01b3[_0x11ae28(0x255)](_0x49fc9a[_0x11ae28(0x28f)],_0x49fc9a[_0x11ae28(0x337)]-_0x49fc9a[_0x11ae28(0x28f)]+0x1,_0x2dc256[_0x11ae28(0x28f)]);_0x1d776a['params']['to'][_0x11ae28(0x355)]=_0x2d01b3[_0x11ae28(0x414)]();}return{'m1Prime':_0x2292c0,'m2Prime':_0x1d776a};}},moveColMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x2b3)]['id'],'m2':_univerjs_sheets['RemoveNumfmtMutation']['id'],'handler'(_0x243393,_0xf5861e){const _0x2f07a3=_0x4fd226,_0x161df4={'m1Prime':_0x243393,'m2Prime':_0xf5861e};if(_0x243393[_0x2f07a3(0x235)][_0x2f07a3(0x3cc)]!==_0xf5861e[_0x2f07a3(0x235)][_0x2f07a3(0x3cc)]||_0x243393[_0x2f07a3(0x235)][_0x2f07a3(0x303)]!==_0xf5861e[_0x2f07a3(0x235)][_0x2f07a3(0x303)])return _0x161df4;const _0x49232e=_univerjs_core[_0x2f07a3(0x1d5)][_0x2f07a3(0x28e)](_0x243393),_0x1bd865=_univerjs_core['Tools']['deepClone'](_0xf5861e),{sourceRange:_0x559a5c,targetRange:_0x2dd4a8}=_0x243393['params'],_0x24da57={'start':_0x559a5c[_0x2f07a3(0x28f)],'end':_0x559a5c[_0x2f07a3(0x337)]},_0x1624f9={'start':_0x2dd4a8[_0x2f07a3(0x28f)],'end':_0x2dd4a8[_0x2f07a3(0x337)]};if(_0x1bd865[_0x2f07a3(0x235)][_0x2f07a3(0x3e4)][_0x2f07a3(0x1c0)](_0x1b7441=>{const _0x28c5fd=_0x2f07a3,_0x223b0d={'start':_0x1b7441[_0x28c5fd(0x28f)],'end':_0x1b7441['endColumn']},_0xaac835=intersect(_0x24da57,_0x223b0d),_0x2dec06=intersect(_0x1624f9,_0x223b0d);if(_0xaac835||_0x2dec06)return!![];const _0x67e760=(0x0,_univerjs_sheets[_0x28c5fd(0x302)])(_0x24da57,_0x1624f9,_0x223b0d);if(_0x67e760['length']!==0x0)return!![];return _0x1b7441['startColumn']+=_0x67e760[_0x28c5fd(0x1e7)],_0x1b7441[_0x28c5fd(0x337)]+=_0x67e760[_0x28c5fd(0x1e7)],![];}))return{'error':new Error(_0x2f07a3(0x377))};return{'m1Prime':_0x49232e,'m2Prime':_0x1bd865};}},moveColMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0x4fd226(0x2b3)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3ff)]['id'],'handler'(_0x224151,_0x469536){const _0x547011=_0x4fd226,_0x44776e=_univerjs_core[_0x547011(0x1d5)][_0x547011(0x28e)](_0x224151),_0x30adb6=_univerjs_core[_0x547011(0x1d5)]['deepClone'](_0x469536);if(_0x224151[_0x547011(0x235)][_0x547011(0x3cc)]!==_0x469536['params'][_0x547011(0x3cc)]||_0x224151['params']['subUnitId']!==_0x469536[_0x547011(0x235)][_0x547011(0x303)])return{'m1Prime':_0x44776e,'m2Prime':_0x30adb6};const _0x4251d0=_0x30adb6[_0x547011(0x235)]['ranges'][_0x547011(0x37b)]((_0x172abb,_0x56e9f5)=>{const _0x6ed303=_0x547011,{sourceRange:_0x577dc7,targetRange:_0x4c211d}=_0x224151[_0x6ed303(0x235)],_0x287e97={..._0x56e9f5};if(_0x577dc7[_0x6ed303(0x337)]<_0x287e97[_0x6ed303(0x28f)]&&_0x4c211d[_0x6ed303(0x28f)]>_0x287e97[_0x6ed303(0x337)])_0x287e97[_0x6ed303(0x28f)]-=_0x577dc7[_0x6ed303(0x337)]-_0x577dc7[_0x6ed303(0x28f)]+0x1,_0x287e97[_0x6ed303(0x337)]-=_0x577dc7[_0x6ed303(0x337)]-_0x577dc7[_0x6ed303(0x28f)]+0x1,isMergeCell(_0x287e97)&&_0x172abb[_0x6ed303(0x285)](_0x287e97);else{if(_0x577dc7[_0x6ed303(0x28f)]>_0x287e97[_0x6ed303(0x337)]&&_0x4c211d[_0x6ed303(0x337)]<_0x287e97['startColumn'])_0x287e97[_0x6ed303(0x28f)]+=_0x577dc7[_0x6ed303(0x337)]-_0x577dc7[_0x6ed303(0x28f)]+0x1,_0x287e97[_0x6ed303(0x337)]+=_0x577dc7[_0x6ed303(0x337)]-_0x577dc7[_0x6ed303(0x28f)]+0x1,isMergeCell(_0x287e97)&&_0x172abb[_0x6ed303(0x285)](_0x287e97);else{if(_univerjs_core[_0x6ed303(0x394)][_0x6ed303(0x2da)](_0x287e97,_0x577dc7)||_univerjs_core[_0x6ed303(0x394)][_0x6ed303(0x2da)](_0x287e97,_0x4c211d)){}else _0x172abb[_0x6ed303(0x285)](_0x287e97);}}return _0x172abb;},[]);_0x30adb6[_0x547011(0x235)]['ranges']=_0x4251d0;if(_0x30adb6[_0x547011(0x235)][_0x547011(0x3e4)][_0x547011(0x367)]===0x0)_0x30adb6['id']=_univerjs_sheets[_0x547011(0x2fc)]['id'];return{'m1Prime':_0x44776e,'m2Prime':_0x30adb6};}},moveColMutationWithReorderRange={'m1':_univerjs_sheets[_0x4fd226(0x2b3)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x201)]['id'],'handler'(_0x27760c,_0x41366c){const _0x463035=_0x4fd226,_0x13c46e={'m1Prime':_0x27760c,'m2Prime':_0x41366c};if(_0x27760c['params'][_0x463035(0x3cc)]!==_0x41366c[_0x463035(0x235)][_0x463035(0x3cc)]||_0x27760c[_0x463035(0x235)][_0x463035(0x303)]!==_0x41366c[_0x463035(0x235)][_0x463035(0x303)])return _0x13c46e;const _0x39de96=_0x27760c[_0x463035(0x235)]['sourceRange'][_0x463035(0x28f)],_0x591906=_0x27760c['params']['sourceRange'][_0x463035(0x337)],_0xcd75bf=_0x27760c[_0x463035(0x235)]['targetRange'][_0x463035(0x28f)],_0x3520c3=_0x27760c[_0x463035(0x235)]['targetRange'][_0x463035(0x337)],_0x2f1897=_0x41366c[_0x463035(0x235)][_0x463035(0x2d0)][_0x463035(0x28f)],_0x46b17d=_0x41366c['params'][_0x463035(0x2d0)]['endColumn'];if(_0x39de96<=_0x46b17d&&_0x591906>=_0x2f1897||_0xcd75bf<=_0x46b17d&&_0x3520c3>=_0x2f1897)return{'error':new Error(_0x463035(0x332))};const _0x372e6a=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x39de96,'end':_0x591906},{'start':_0xcd75bf,'end':_0x3520c3},{'start':_0x2f1897,'end':_0x46b17d}),_0x43f2c0=_univerjs_core['Tools']['deepClone'](_0x41366c);return _0x43f2c0['params'][_0x463035(0x2d0)][_0x463035(0x28f)]+=_0x372e6a['step'],_0x43f2c0[_0x463035(0x235)]['range'][_0x463035(0x337)]+=_0x372e6a['step']+(_0x372e6a[_0x463035(0x367)]||0x0),{'m1Prime':_0x27760c,'m2Prime':_0x43f2c0};}},moveColMutationWithSetColData={'m1':_univerjs_sheets[_0x4fd226(0x2b3)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x1bd)]['id'],'handler'(_0x515a61,_0xe7e403){const _0x253005=_0x4fd226,_0x512948={'m1Prime':_0x515a61,'m2Prime':_0xe7e403};if(_0x515a61['params']['unitId']!==_0xe7e403[_0x253005(0x235)]['unitId']||_0x515a61[_0x253005(0x235)][_0x253005(0x303)]!==_0xe7e403[_0x253005(0x235)][_0x253005(0x303)])return _0x512948;const _0x51c480=_univerjs_core[_0x253005(0x1d5)]['deepClone'](_0x515a61),_0x444dbe=_univerjs_core[_0x253005(0x1d5)][_0x253005(0x28e)](_0xe7e403),{columnData:_0x1370d4}=_0x444dbe['params'],{sourceRange:_0xcb0487,targetRange:_0x2eeae9}=_0x515a61[_0x253005(0x235)];return(0x0,_univerjs_core[_0x253005(0x3cd)])(_0xcb0487['startColumn'],_0xcb0487[_0x253005(0x337)]-_0xcb0487[_0x253005(0x28f)]+0x1,_0x2eeae9['startColumn'],_0x1370d4),{'m1Prime':_0x51c480,'m2Prime':_0x444dbe};}},moveColMutationWithSetColHidden={'m1':_univerjs_sheets[_0x4fd226(0x2b3)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x390)]['id'],'handler'(_0x17c6d2,_0x396fcb){const _0x12b45e=_0x4fd226,_0x2417ef={'m1Prime':_0x17c6d2,'m2Prime':_0x396fcb};if(_0x17c6d2['params'][_0x12b45e(0x3cc)]!==_0x396fcb[_0x12b45e(0x235)][_0x12b45e(0x3cc)]||_0x17c6d2['params'][_0x12b45e(0x303)]!==_0x396fcb['params']['subUnitId'])return _0x2417ef;const _0x50907c=_univerjs_core[_0x12b45e(0x1d5)][_0x12b45e(0x28e)](_0x17c6d2),_0x2ee2b9=_univerjs_core[_0x12b45e(0x1d5)]['deepClone'](_0x396fcb),{ranges:_0x9691c5}=_0x2ee2b9['params'],{sourceRange:_0x3737aa,targetRange:_0x4ec0b5}=_0x17c6d2[_0x12b45e(0x235)],_0xab85f0={'start':_0x3737aa[_0x12b45e(0x28f)],'end':_0x3737aa['endColumn']},_0x97740b={'start':_0x4ec0b5[_0x12b45e(0x28f)],'end':_0x4ec0b5[_0x12b45e(0x337)]};if(_0x9691c5['some'](_0x4d8747=>{const _0xe87626=_0x12b45e,_0x6f219e={'start':_0x4d8747[_0xe87626(0x28f)],'end':_0x4d8747[_0xe87626(0x337)]},_0x301975=intersect(_0xab85f0,_0x6f219e),_0x2cbc7d=intersect(_0x97740b,_0x6f219e);if(_0x301975||_0x2cbc7d)return!![];const _0x400fdb=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])(_0xab85f0,_0x97740b,_0x6f219e);if(_0x400fdb[_0xe87626(0x367)]!==0x0)return!![];return _0x4d8747[_0xe87626(0x28f)]+=_0x400fdb['step'],_0x4d8747['endColumn']+=_0x400fdb['step'],![];}))return{'error':new Error(_0x12b45e(0x379))};return{'m1Prime':_0x50907c,'m2Prime':_0x2ee2b9};}},moveColMutationWithSetColVisible={'m1':_univerjs_sheets[_0x4fd226(0x2b3)]['id'],'m2':_univerjs_sheets['SetColVisibleMutation']['id'],'handler'(_0x4fa244,_0x3d8860){const _0x3f71e2=_0x4fd226,_0x3ff82e={'m1Prime':_0x4fa244,'m2Prime':_0x3d8860};if(_0x4fa244['params'][_0x3f71e2(0x3cc)]!==_0x3d8860[_0x3f71e2(0x235)][_0x3f71e2(0x3cc)]||_0x4fa244[_0x3f71e2(0x235)][_0x3f71e2(0x303)]!==_0x3d8860[_0x3f71e2(0x235)][_0x3f71e2(0x303)])return _0x3ff82e;const _0x4ef623=_univerjs_core[_0x3f71e2(0x1d5)][_0x3f71e2(0x28e)](_0x4fa244),_0x29bae6=_univerjs_core[_0x3f71e2(0x1d5)][_0x3f71e2(0x28e)](_0x3d8860),{ranges:_0x28818}=_0x29bae6['params'],{sourceRange:_0x2098f7,targetRange:_0x333c2e}=_0x4fa244[_0x3f71e2(0x235)],_0xa379a4={'start':_0x2098f7['startColumn'],'end':_0x2098f7[_0x3f71e2(0x337)]},_0x189449={'start':_0x333c2e['startColumn'],'end':_0x333c2e[_0x3f71e2(0x337)]};if(_0x28818[_0x3f71e2(0x1c0)](_0x59ed41=>{const _0x538ca0=_0x3f71e2,_0x38b988={'start':_0x59ed41[_0x538ca0(0x28f)],'end':_0x59ed41[_0x538ca0(0x337)]},_0x3d689d=intersect(_0xa379a4,_0x38b988),_0xbfea4d=intersect(_0x189449,_0x38b988);if(_0x3d689d||_0xbfea4d)return!![];const _0x115e69=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])(_0xa379a4,_0x189449,_0x38b988);if(_0x115e69[_0x538ca0(0x367)]!==0x0)return!![];return _0x59ed41[_0x538ca0(0x28f)]+=_0x115e69[_0x538ca0(0x1e7)],_0x59ed41[_0x538ca0(0x337)]+=_0x115e69[_0x538ca0(0x1e7)],![];}))return{'error':new Error(_0x3f71e2(0x347))};return{'m1Prime':_0x4ef623,'m2Prime':_0x29bae6};}},moveColMutationWithSetNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x2b3)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3f8)]['id'],'handler'(_0x4b53c7,_0x47d847){const _0x2a5e70=_0x4fd226,_0x540706={'m1Prime':_0x4b53c7,'m2Prime':_0x47d847};if(_0x4b53c7[_0x2a5e70(0x235)][_0x2a5e70(0x3cc)]!==_0x47d847[_0x2a5e70(0x235)][_0x2a5e70(0x3cc)]||_0x4b53c7[_0x2a5e70(0x235)][_0x2a5e70(0x303)]!==_0x47d847[_0x2a5e70(0x235)][_0x2a5e70(0x303)])return _0x540706;const _0x636b2=[_univerjs_core[_0x2a5e70(0x1d5)][_0x2a5e70(0x28e)](_0x4b53c7)],_0x28fe6a=_univerjs_core[_0x2a5e70(0x1d5)][_0x2a5e70(0x28e)](_0x47d847),{sourceRange:_0x41f46c,targetRange:_0x1ad28}=_0x4b53c7[_0x2a5e70(0x235)],_0x14ea93={'start':_0x41f46c[_0x2a5e70(0x28f)],'end':_0x41f46c[_0x2a5e70(0x337)]},_0x41223a={'start':_0x1ad28[_0x2a5e70(0x28f)],'end':_0x1ad28[_0x2a5e70(0x337)]},{values:_0x2973c8}=_0x28fe6a[_0x2a5e70(0x235)],_0x3e9b45=[];let _0x79dce4=![];for(const _0x3702e4 in _0x2973c8){const _0x5f0f09=_0x2973c8[_0x3702e4];_0x3e9b45[_0x2a5e70(0x285)](..._0x5f0f09[_0x2a5e70(0x3e4)]);if(_0x5f0f09[_0x2a5e70(0x3e4)][_0x2a5e70(0x1c0)](_0xab9d68=>{const _0x12293c=_0x2a5e70,_0x5b18e2={'start':_0xab9d68['startColumn'],'end':_0xab9d68[_0x12293c(0x337)]},_0x4b532e=intersect(_0x14ea93,_0x5b18e2),_0x53d215=intersect(_0x41223a,_0x5b18e2);if(_0x4b532e||_0x53d215)return!![];const _0x5c2cd7=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])(_0x14ea93,_0x41223a,_0x5b18e2);if(_0x5c2cd7[_0x12293c(0x367)]!==0x0)return!![];if(_0x5c2cd7[_0x12293c(0x1e7)]!==0x0)_0x79dce4=!![];return _0xab9d68[_0x12293c(0x28f)]+=_0x5c2cd7[_0x12293c(0x1e7)],_0xab9d68['endColumn']+=_0x5c2cd7[_0x12293c(0x1e7)],![];}))return{'error':new Error(_0x2a5e70(0x37a))};}if(_0x79dce4){const _0x2e8209={'id':_univerjs_sheets[_0x2a5e70(0x20e)]['id'],'params':{'unitId':_0x47d847[_0x2a5e70(0x235)][_0x2a5e70(0x3cc)],'subUnitId':_0x47d847[_0x2a5e70(0x235)][_0x2a5e70(0x303)],'ranges':_0x3e9b45}};_0x636b2[_0x2a5e70(0x285)](_0x2e8209,_0x28fe6a);}return{'m1Prime':_0x636b2,'m2Prime':_0x28fe6a};}},moveColMutationWithSetRangeValues={'m1':_univerjs_sheets[_0x4fd226(0x2b3)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x35c)]['id'],'handler'(_0x22430d,_0x6bc1e2){const _0x3976ef=_0x4fd226,_0x3012c9={'m1Prime':_0x22430d,'m2Prime':_0x6bc1e2};if(_0x22430d[_0x3976ef(0x235)]['unitId']!==_0x6bc1e2[_0x3976ef(0x235)]['unitId']||_0x22430d['params'][_0x3976ef(0x303)]!==_0x6bc1e2[_0x3976ef(0x235)][_0x3976ef(0x303)])return _0x3012c9;const _0x3f35b3=[_univerjs_core['Tools'][_0x3976ef(0x28e)](_0x22430d)],_0x5e37a2=_univerjs_core[_0x3976ef(0x1d5)]['deepClone'](_0x6bc1e2),_0x55fa57=new _univerjs_core[(_0x3976ef(0x2ed))](_0x5e37a2[_0x3976ef(0x235)][_0x3976ef(0x2f8)]),{sourceRange:_0x4df938,targetRange:_0xf5ccaf}=_0x22430d['params'],_0x2be233=_0x4df938[_0x3976ef(0x28f)],_0x22c43c=_0x4df938[_0x3976ef(0x337)]-_0x4df938[_0x3976ef(0x28f)]+0x1,_0x56188c=_0xf5ccaf[_0x3976ef(0x28f)];_0x55fa57[_0x3976ef(0x255)](_0x2be233,_0x22c43c,_0x56188c);const _0x255b78=new _univerjs_core[(_0x3976ef(0x2ed))]();let _0x109cbc=![];_0x55fa57[_0x3976ef(0x398)]((_0x9eb91f,_0x5a1787,_0x1bd448)=>{const _0x2ffa30=_0x3976ef;if(_0x1bd448&&_0x1bd448['f']){const _0x46445a=_0x1bd448['f'];let _0x421760=![];const _0x1777ad=processFormulaString(_0x22430d['params'][_0x2ffa30(0x3cc)],_0x22430d[_0x2ffa30(0x235)][_0x2ffa30(0x303)],_0x46445a,_0x562219=>{const _0x39afc0=_0x2ffa30,_0x4c53be=(0x0,_univerjs_sheets[_0x39afc0(0x302)])({'start':_0x22430d[_0x39afc0(0x235)][_0x39afc0(0x200)][_0x39afc0(0x28f)],'end':_0x22430d[_0x39afc0(0x235)]['sourceRange'][_0x39afc0(0x337)]},{'start':_0x22430d[_0x39afc0(0x235)][_0x39afc0(0x26c)][_0x39afc0(0x28f)],'end':_0x22430d[_0x39afc0(0x235)][_0x39afc0(0x26c)][_0x39afc0(0x337)]},{'start':_0x562219[_0x39afc0(0x28f)],'end':_0x562219[_0x39afc0(0x337)]});return(_0x4c53be[_0x39afc0(0x1e7)]!==0x0||_0x4c53be[_0x39afc0(0x367)]!==0x0)&&(_0x421760=!![],_0x562219[_0x39afc0(0x28f)]+=_0x4c53be[_0x39afc0(0x1e7)],_0x562219[_0x39afc0(0x337)]+=_0x4c53be[_0x39afc0(0x1e7)]+_0x4c53be[_0x39afc0(0x367)]),_0x562219;});_0x421760&&(_0x109cbc=!![],_0x1bd448['f']=_0x1777ad,_0x255b78[_0x2ffa30(0x408)](_0x9eb91f,_0x5a1787,{..._0x1bd448}));}});if(_0x109cbc){const _0x518abe={'id':_univerjs_sheets[_0x3976ef(0x35c)]['id'],'params':{'unitId':_0x6bc1e2[_0x3976ef(0x235)][_0x3976ef(0x3cc)],'subUnitId':_0x6bc1e2[_0x3976ef(0x235)]['subUnitId'],'cellValue':_0x255b78[_0x3976ef(0x414)]()}};_0x3f35b3[_0x3976ef(0x285)](_0x518abe);}return _0x5e37a2['params'][_0x3976ef(0x2f8)]=_0x55fa57[_0x3976ef(0x414)](),{'m1Prime':_0x3f35b3,'m2Prime':_0x5e37a2};}},moveColMutationWithSetSelection={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x2dd)]['id'],'handler'(_0x5d5315,_0x211408){const _0xf1fe98=_0x4fd226,_0x186f00={'m1Prime':[],'m2Prime':[]};if(_0x5d5315['params']['unitId']!==_0x211408[_0xf1fe98(0x235)][_0xf1fe98(0x3cc)]||_0x5d5315[_0xf1fe98(0x235)][_0xf1fe98(0x303)]!==_0x211408[_0xf1fe98(0x235)][_0xf1fe98(0x303)])return _0x186f00;const _0x40fb10=_univerjs_core[_0xf1fe98(0x1d5)]['deepClone'](_0x211408);let _0x2441d1=![];_0x40fb10[_0xf1fe98(0x235)][_0xf1fe98(0x399)][_0xf1fe98(0x222)](_0x31c4fe=>{const _0x5d2d88=_0xf1fe98,{range:_0x27be34,primary:_0x409b78}=_0x31c4fe,_0x499ff2=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x5d5315[_0x5d2d88(0x235)]['sourceRange'][_0x5d2d88(0x28f)],'end':_0x5d5315[_0x5d2d88(0x235)][_0x5d2d88(0x200)][_0x5d2d88(0x337)]},{'start':_0x5d5315[_0x5d2d88(0x235)]['targetRange'][_0x5d2d88(0x28f)],'end':_0x5d5315['params'][_0x5d2d88(0x26c)]['endColumn']},{'start':_0x27be34[_0x5d2d88(0x28f)],'end':_0x27be34['endColumn']});if(_0x499ff2['length']||_0x499ff2[_0x5d2d88(0x1e7)]){_0x27be34[_0x5d2d88(0x28f)]+=_0x499ff2[_0x5d2d88(0x1e7)],_0x27be34['endColumn']+=_0x499ff2[_0x5d2d88(0x1e7)]+(_0x499ff2['length']||0x0);if(_0x409b78){const _0x444e2c=(0x0,_univerjs_sheets[_0x5d2d88(0x302)])({'start':_0x5d5315[_0x5d2d88(0x235)]['sourceRange'][_0x5d2d88(0x28f)],'end':_0x5d5315['params'][_0x5d2d88(0x200)][_0x5d2d88(0x337)]},{'start':_0x5d5315['params']['targetRange']['startColumn'],'end':_0x5d5315[_0x5d2d88(0x235)]['targetRange'][_0x5d2d88(0x337)]},{'start':_0x409b78['startColumn'],'end':_0x409b78['endColumn']});(_0x444e2c[_0x5d2d88(0x367)]||_0x444e2c[_0x5d2d88(0x1e7)])&&(_0x409b78['startColumn']+=_0x444e2c[_0x5d2d88(0x1e7)],_0x409b78[_0x5d2d88(0x337)]+=_0x444e2c['step'],_0x409b78['actualColumn']+=_0x444e2c[_0x5d2d88(0x1e7)]);}_0x2441d1=!![];}});if(_0x2441d1)_0x186f00['m2Prime'][_0xf1fe98(0x285)](_0x40fb10);return _0x186f00;}},moveColMutationWithSetSheetsFilterCriteria={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_sheets_filter[_0x4fd226(0x319)]['id'],'handler'(_0x5e52a0,_0x2bc9f3){const _0x26c2db=_0x4fd226,_0x1a1e74={'m1Prime':_0x5e52a0,'m2Prime':_0x2bc9f3};if(_0x5e52a0[_0x26c2db(0x235)][_0x26c2db(0x3cc)]!==_0x2bc9f3[_0x26c2db(0x235)]['unitId']||_0x5e52a0[_0x26c2db(0x235)]['subUnitId']!==_0x2bc9f3[_0x26c2db(0x235)][_0x26c2db(0x303)])return _0x1a1e74;const _0x2e3a30=_univerjs_core[_0x26c2db(0x1d5)]['deepClone'](_0x5e52a0),_0x4f8850=_univerjs_core['Tools']['deepClone'](_0x2bc9f3),_0x4a1ed6=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x5e52a0[_0x26c2db(0x235)][_0x26c2db(0x200)][_0x26c2db(0x28f)],'end':_0x5e52a0['params']['sourceRange'][_0x26c2db(0x337)]},{'start':_0x5e52a0[_0x26c2db(0x235)][_0x26c2db(0x26c)][_0x26c2db(0x28f)],'end':_0x5e52a0[_0x26c2db(0x235)][_0x26c2db(0x26c)]['endColumn']},{'start':_0x2bc9f3['params'][_0x26c2db(0x3ed)],'end':_0x2bc9f3['params']['col']});if(_0x4a1ed6[_0x26c2db(0x1e7)]===0x0)return _0x1a1e74;_0x4f8850[_0x26c2db(0x235)][_0x26c2db(0x3ed)]+=_0x4a1ed6[_0x26c2db(0x1e7)];if(_0x4f8850[_0x26c2db(0x235)]['criteria'])_0x4f8850[_0x26c2db(0x235)]['criteria'][_0x26c2db(0x2d1)]+=_0x4a1ed6[_0x26c2db(0x1e7)];const _0x3ec79f=_univerjs_core[_0x26c2db(0x1d5)]['deepClone'](_0x2bc9f3);return _0x3ec79f[_0x26c2db(0x235)][_0x26c2db(0x2c8)]=null,{'m1Prime':[_0x3ec79f,_0x4f8850,_0x2e3a30],'m2Prime':[_0x4f8850]};}},moveColMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets[_0x4fd226(0x2b3)]['id'],'m2':_univerjs_sheets_filter['SetSheetsFilterRangeMutation']['id'],'handler'(_0x64567d,_0x5597f9){const _0x44ca36=_0x4fd226,_0xb62c37={'m1Prime':[_0x64567d],'m2Prime':[_0x5597f9]};if(_0x64567d[_0x44ca36(0x235)][_0x44ca36(0x3cc)]!==_0x5597f9[_0x44ca36(0x235)][_0x44ca36(0x3cc)]||_0x64567d[_0x44ca36(0x235)][_0x44ca36(0x303)]!==_0x5597f9[_0x44ca36(0x235)][_0x44ca36(0x303)])return _0xb62c37;const _0x3f5bf5=_univerjs_core[_0x44ca36(0x1d5)][_0x44ca36(0x28e)](_0x64567d),_0x27acb1=_univerjs_core[_0x44ca36(0x1d5)][_0x44ca36(0x28e)](_0x5597f9),_0x19f86e=(0x0,_univerjs_sheets[_0x44ca36(0x302)])({'start':_0x64567d[_0x44ca36(0x235)][_0x44ca36(0x200)]['startColumn'],'end':_0x64567d[_0x44ca36(0x235)][_0x44ca36(0x200)][_0x44ca36(0x337)]},{'start':_0x64567d['params'][_0x44ca36(0x26c)][_0x44ca36(0x28f)],'end':_0x64567d['params'][_0x44ca36(0x26c)]['endColumn']},{'start':_0x5597f9['params'][_0x44ca36(0x2d0)][_0x44ca36(0x28f)],'end':_0x5597f9[_0x44ca36(0x235)][_0x44ca36(0x2d0)]['endColumn']});return _0x27acb1[_0x44ca36(0x235)][_0x44ca36(0x2d0)][_0x44ca36(0x28f)]+=_0x19f86e[_0x44ca36(0x1e7)],_0x27acb1[_0x44ca36(0x235)][_0x44ca36(0x2d0)][_0x44ca36(0x337)]+=_0x19f86e[_0x44ca36(0x1e7)]+_0x19f86e[_0x44ca36(0x367)],{'m1Prime':[_0x27acb1,_0x3f5bf5],'m2Prime':[_0x27acb1]};}},moveColMutationWithSetWorksheetColWidth={'m1':_univerjs_sheets['MoveColsMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x24c)]['id'],'handler'(_0xc2bcc0,_0x26cb77){const _0x1fd7e7=_0x4fd226,_0x119e01={'m1Prime':_0xc2bcc0,'m2Prime':_0x26cb77};if(_0xc2bcc0[_0x1fd7e7(0x235)][_0x1fd7e7(0x3cc)]!==_0x26cb77['params'][_0x1fd7e7(0x3cc)]||_0xc2bcc0[_0x1fd7e7(0x235)][_0x1fd7e7(0x303)]!==_0x26cb77['params']['subUnitId'])return _0x119e01;const _0x34d91d=_univerjs_core[_0x1fd7e7(0x1d5)][_0x1fd7e7(0x28e)](_0xc2bcc0),_0x176717=_univerjs_core['Tools'][_0x1fd7e7(0x28e)](_0x26cb77),{ranges:_0x5ada77,colWidth:_0x33c83c}=_0x176717[_0x1fd7e7(0x235)],{sourceRange:_0x39c6ff,targetRange:_0x478e1c}=_0xc2bcc0['params'],_0x8c77cb={'start':_0x39c6ff[_0x1fd7e7(0x28f)],'end':_0x39c6ff['endColumn']},_0x22831d={'start':_0x478e1c['startColumn'],'end':_0x478e1c['endColumn']};if(_0x5ada77[_0x1fd7e7(0x1c0)](_0x358632=>{const _0x313f0a=_0x1fd7e7,_0x47b0d1=(0x0,_univerjs_sheets[_0x313f0a(0x302)])(_0x8c77cb,_0x22831d,{'start':_0x358632['startColumn'],'end':_0x358632[_0x313f0a(0x337)]});if(_0x47b0d1[_0x313f0a(0x367)]!==0x0)return!![];return _0x358632['startColumn']+=_0x47b0d1['step'],_0x358632['endColumn']+=_0x47b0d1[_0x313f0a(0x1e7)],![];}))return{'error':new Error('move\x20col\x20is\x20conflict\x20with\x20set\x20worksheet\x20col\x20width')};if(typeof _0x33c83c!==_0x1fd7e7(0x2af))(0x0,_univerjs_core[_0x1fd7e7(0x3cd)])(_0x39c6ff[_0x1fd7e7(0x28f)],_0x39c6ff['endColumn']-_0x39c6ff[_0x1fd7e7(0x28f)]+0x1,_0x478e1c[_0x1fd7e7(0x28f)],_0x33c83c);return{'m1Prime':_0x34d91d,'m2Prime':_0x176717};}},moveColsWithUpdateCommentRef={'m1':_univerjs_sheets[_0x4fd226(0x2b3)]['id'],'m2':_univerjs_thread_comment['UpdateCommentRefMutation']['id'],'handler':(_0x3ab094,_0x1476de)=>{const _0xfab37d=_0x4fd226,_0x298b8f={'m1Prime':_0x3ab094,'m2Prime':_0x1476de};if(_0x3ab094[_0xfab37d(0x235)][_0xfab37d(0x3cc)]!==_0x1476de[_0xfab37d(0x235)][_0xfab37d(0x3cc)]||_0x3ab094[_0xfab37d(0x235)][_0xfab37d(0x303)]!==_0x1476de[_0xfab37d(0x235)][_0xfab37d(0x303)])return _0x298b8f;const _0x56de14=transformUpdateCommentRefWithRefRange(_0x1476de,{'id':_univerjs_sheets[_0xfab37d(0x3b6)]['id'],'params':{'unitId':_0x3ab094['params'][_0xfab37d(0x3cc)],'subUnitId':_0x3ab094[_0xfab37d(0x235)]['subUnitId'],'fromRange':_0x3ab094['params'][_0xfab37d(0x200)],'toRange':_0x3ab094['params'][_0xfab37d(0x26c)]}});return{'m1Prime':[_0x3ab094,..._0x56de14],'m2Prime':[_0x1476de,..._0x56de14]};}},moveConditionalFormattingRuleMutationWithSelf={'m1':_univerjs_sheets_conditional_formatting[_0x4fd226(0x1ef)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0x4fd226(0x1ef)]['id'],'handler'(_0x324576,_0x178cf9){const _0x5e643e=_0x4fd226;if(_0x324576[_0x5e643e(0x235)][_0x5e643e(0x3cc)]!==_0x178cf9[_0x5e643e(0x235)][_0x5e643e(0x3cc)]||_0x324576[_0x5e643e(0x235)][_0x5e643e(0x303)]!==_0x178cf9['params'][_0x5e643e(0x303)])return{'m1Prime':_0x324576,'m2Prime':_0x178cf9};if(_0x324576[_0x5e643e(0x235)][_0x5e643e(0x24d)]['id']===_0x178cf9[_0x5e643e(0x235)]['start']['id']&&_0x324576[_0x5e643e(0x235)][_0x5e643e(0x1f8)]['id']===_0x178cf9[_0x5e643e(0x235)]['end']['id']&&_0x324576[_0x5e643e(0x235)][_0x5e643e(0x24d)][_0x5e643e(0x22b)]===_0x178cf9['params'][_0x5e643e(0x24d)]['type']&&_0x324576['params'][_0x5e643e(0x1f8)]['type']===_0x178cf9[_0x5e643e(0x235)][_0x5e643e(0x1f8)][_0x5e643e(0x22b)])return{'m1Prime':[],'m2Prime':[]};return{'error':new Error('Move\x20conditional\x20formatting\x20rule\x20\x20is\x20conflict\x20with\x20self')};}},moveRangeMutationWithAddMerge={'m1':_univerjs_sheets['MoveRangeMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x340)]['id'],'handler'(_0xb0d17d,_0x21338d){const _0x196b7f=_0x4fd226,_0x5c48ec=addWorksheetMergeMutationWithMoveRangeMutation[_0x196b7f(0x2ef)](_0x21338d,_0xb0d17d);if(isTransformMutationSuccess(_0x5c48ec))return{'m1Prime':_0x5c48ec[_0x196b7f(0x3d9)],'m2Prime':_0x5c48ec[_0x196b7f(0x253)]};else return _0x5c48ec;}},moveRangeMutationWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x35a)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x35a)]['id'],'handler'(_0x240d06,_0xc64168){const _0x29461=_0x4fd226,_0x33ae76={'m1Prime':_0x240d06,'m2Prime':_0xc64168};if(_0x240d06['params'][_0x29461(0x3cc)]!==_0xc64168[_0x29461(0x235)][_0x29461(0x3cc)])return _0x33ae76;const _0x46c237=new _univerjs_core[(_0x29461(0x2ed))](_0x240d06[_0x29461(0x235)]['from'][_0x29461(0x355)])['getDataRange'](),_0x48abfb=new _univerjs_core[(_0x29461(0x2ed))](_0xc64168['params'][_0x29461(0x270)][_0x29461(0x355)])[_0x29461(0x277)](),_0x7191c9=new _univerjs_core[(_0x29461(0x2ed))](_0x240d06[_0x29461(0x235)]['to'][_0x29461(0x355)])[_0x29461(0x277)](),_0x2fcbad=new _univerjs_core['ObjectMatrix'](_0xc64168[_0x29461(0x235)]['to'][_0x29461(0x355)])[_0x29461(0x277)]();if(_0x240d06['params'][_0x29461(0x270)][_0x29461(0x303)]===_0xc64168[_0x29461(0x235)][_0x29461(0x270)][_0x29461(0x303)]&&_univerjs_core[_0x29461(0x394)][_0x29461(0x2da)](_0x46c237,_0x48abfb)||_0x240d06[_0x29461(0x235)]['to'][_0x29461(0x303)]===_0xc64168[_0x29461(0x235)]['to'][_0x29461(0x303)]&&_univerjs_core[_0x29461(0x394)][_0x29461(0x2da)](_0x7191c9,_0x2fcbad)||_0x240d06[_0x29461(0x235)][_0x29461(0x270)][_0x29461(0x303)]===_0xc64168[_0x29461(0x235)]['to']['subUnitId']&&_univerjs_core[_0x29461(0x394)][_0x29461(0x2da)](_0x46c237,_0x2fcbad)||_0x240d06['params']['to'][_0x29461(0x303)]===_0xc64168[_0x29461(0x235)][_0x29461(0x270)]['subUnitId']&&_univerjs_core[_0x29461(0x394)][_0x29461(0x2da)](_0x7191c9,_0x48abfb))return{'error':new Error('Two\x20move-range\x20mutations\x20have\x20an\x20overlapping\x20range.')};return _0x33ae76;}},moveRangeMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x35a)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x20e)]['id'],'handler'(_0x3cc072,_0x33abf5){const _0x58b358=_0x4fd226,_0x21e367={'m1Prime':_0x3cc072,'m2Prime':_0x33abf5};if(_0x3cc072[_0x58b358(0x235)]['unitId']!==_0x33abf5['params'][_0x58b358(0x3cc)]||_0x3cc072[_0x58b358(0x235)][_0x58b358(0x270)][_0x58b358(0x303)]!==_0x33abf5[_0x58b358(0x235)]['subUnitId']&&_0x3cc072[_0x58b358(0x235)]['to']['subUnitId']!==_0x33abf5['params'][_0x58b358(0x303)])return _0x21e367;const _0xc4b84=new _univerjs_core[(_0x58b358(0x2ed))](_0x3cc072[_0x58b358(0x235)]['from'][_0x58b358(0x355)])[_0x58b358(0x277)](),_0x2f9dc1=new _univerjs_core[(_0x58b358(0x2ed))](_0x3cc072[_0x58b358(0x235)]['to']['value'])[_0x58b358(0x277)]();if(_0x3cc072[_0x58b358(0x235)][_0x58b358(0x270)][_0x58b358(0x303)]===_0x33abf5[_0x58b358(0x235)][_0x58b358(0x303)]){if(_0x33abf5[_0x58b358(0x235)][_0x58b358(0x3e4)]['some'](_0x59ee64=>{const _0x337c9d=_0x58b358;return _univerjs_core['Rectangle'][_0x337c9d(0x2da)](_0x59ee64,_0xc4b84);}))return{'error':new Error('move\x20range\x20is\x20conflict\x20with\x20set\x20numfmt')};}if(_0x3cc072[_0x58b358(0x235)]['to']['subUnitId']===_0x33abf5[_0x58b358(0x235)][_0x58b358(0x303)]){if(_0x33abf5[_0x58b358(0x235)]['ranges']['some'](_0x1c6bb1=>{const _0x53cf25=_0x58b358;return _univerjs_core['Rectangle'][_0x53cf25(0x2da)](_0x1c6bb1,_0x2f9dc1);}))return{'error':new Error(_0x58b358(0x234))};}return _0x21e367;}},moveRangeMutationWithReorderRange={'m1':_univerjs_sheets[_0x4fd226(0x35a)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x201)]['id'],'handler'(_0x14dec8,_0x458948){const _0x5e4155=_0x4fd226,_0x56522b={'m1Prime':_0x14dec8,'m2Prime':_0x458948};if(_0x14dec8[_0x5e4155(0x235)][_0x5e4155(0x3cc)]!==_0x458948[_0x5e4155(0x235)][_0x5e4155(0x3cc)]||_0x14dec8[_0x5e4155(0x235)][_0x5e4155(0x270)][_0x5e4155(0x303)]!==_0x458948[_0x5e4155(0x235)][_0x5e4155(0x303)]&&_0x14dec8[_0x5e4155(0x235)]['to'][_0x5e4155(0x303)]!==_0x458948[_0x5e4155(0x235)]['subUnitId'])return _0x56522b;if(_0x14dec8['params'][_0x5e4155(0x270)][_0x5e4155(0x303)]===_0x458948[_0x5e4155(0x235)]['subUnitId']){const _0x271141=new _univerjs_core[(_0x5e4155(0x2ed))](_0x14dec8[_0x5e4155(0x235)][_0x5e4155(0x270)][_0x5e4155(0x355)])[_0x5e4155(0x277)]();if(_univerjs_core['Rectangle'][_0x5e4155(0x2da)](_0x271141,_0x458948[_0x5e4155(0x235)][_0x5e4155(0x2d0)]))return{'error':new Error(_0x5e4155(0x332))};}if(_0x14dec8[_0x5e4155(0x235)]['to'][_0x5e4155(0x303)]===_0x458948[_0x5e4155(0x235)][_0x5e4155(0x303)]){const _0x1731f3=new _univerjs_core[(_0x5e4155(0x2ed))](_0x14dec8[_0x5e4155(0x235)]['to'][_0x5e4155(0x355)])[_0x5e4155(0x277)]();if(_univerjs_core[_0x5e4155(0x394)][_0x5e4155(0x2da)](_0x1731f3,_0x458948[_0x5e4155(0x235)][_0x5e4155(0x2d0)]))return{'error':new Error(_0x5e4155(0x332))};}return _0x56522b;}},moveRangeMutationWithSetNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x35a)]['id'],'m2':_univerjs_sheets['SetNumfmtMutation']['id'],'handler'(_0x7a32b6,_0x4cbba1){const _0x556895=_0x4fd226,_0x16fbf1={'m1Prime':_0x7a32b6,'m2Prime':_0x4cbba1};if(_0x7a32b6[_0x556895(0x235)][_0x556895(0x3cc)]!==_0x4cbba1[_0x556895(0x235)]['unitId']||_0x7a32b6[_0x556895(0x235)]['from'][_0x556895(0x303)]!==_0x4cbba1[_0x556895(0x235)][_0x556895(0x303)]&&_0x7a32b6[_0x556895(0x235)]['to'][_0x556895(0x303)]!==_0x4cbba1[_0x556895(0x235)]['subUnitId'])return _0x16fbf1;const _0x173665=new _univerjs_core[(_0x556895(0x2ed))](_0x7a32b6[_0x556895(0x235)]['from'][_0x556895(0x355)])[_0x556895(0x277)](),_0x12e7fa=new _univerjs_core[(_0x556895(0x2ed))](_0x7a32b6[_0x556895(0x235)]['to'][_0x556895(0x355)])[_0x556895(0x277)]();if(_0x7a32b6[_0x556895(0x235)][_0x556895(0x270)]['subUnitId']===_0x4cbba1[_0x556895(0x235)][_0x556895(0x303)]){const {values:_0x4c8288}=_0x4cbba1[_0x556895(0x235)];for(const _0x4af39c in _0x4c8288)if(_0x4c8288[_0x4af39c][_0x556895(0x3e4)][_0x556895(0x1c0)](_0x1f4760=>{const _0x3562d6=_0x556895;return _univerjs_core[_0x3562d6(0x394)][_0x3562d6(0x2da)](_0x1f4760,_0x173665);}))return{'error':new Error(_0x556895(0x234))};}if(_0x7a32b6[_0x556895(0x235)]['to']['subUnitId']===_0x4cbba1['params']['subUnitId']){const {values:_0x192273}=_0x4cbba1[_0x556895(0x235)];for(const _0xe2283f in _0x192273)if(_0x192273[_0xe2283f]['ranges'][_0x556895(0x1c0)](_0x5a1410=>{return _univerjs_core['Rectangle']['intersects'](_0x5a1410,_0x12e7fa);}))return{'error':new Error('move\x20range\x20is\x20conflict\x20with\x20set\x20numfmt')};}return _0x16fbf1;}},moveRowWithAddComment={'m1':_univerjs_sheets[_0x4fd226(0x229)]['id'],'m2':_univerjs_thread_comment['AddCommentMutation']['id'],'handler':(_0x5590ca,_0x1077c4)=>{const _0x37238d=_0x4fd226,_0x236c1b={'m1Prime':_0x5590ca,'m2Prime':_0x1077c4};if(_0x5590ca[_0x37238d(0x235)][_0x37238d(0x3cc)]!==_0x1077c4[_0x37238d(0x235)]['unitId']||_0x5590ca[_0x37238d(0x235)][_0x37238d(0x303)]!==_0x1077c4[_0x37238d(0x235)]['subUnitId'])return _0x236c1b;const _0xb596d3=transformAddCommentWithRefRange(_0x1077c4,{'id':_univerjs_sheets[_0x37238d(0x382)]['id'],'params':{'unitId':_0x5590ca[_0x37238d(0x235)][_0x37238d(0x3cc)],'subUnitId':_0x5590ca[_0x37238d(0x235)][_0x37238d(0x303)],'fromRange':_0x5590ca['params'][_0x37238d(0x200)],'toRange':_0x5590ca[_0x37238d(0x235)][_0x37238d(0x26c)]}});return{'m1Prime':[_0x5590ca,..._0xb596d3],'m2Prime':[_0x1077c4,..._0xb596d3]};}},moveRowMutationWithAddDataValidation={'m1':_univerjs_sheets['MoveRowsMutation']['id'],'m2':_univerjs_data_validation[_0x4fd226(0x2b6)]['id'],'handler'(_0x308b43,_0x390a23){const _0x1c5d7f=_0x4fd226,_0x3aa75e={'m1Prime':_0x308b43,'m2Prime':_0x390a23};if(_0x308b43[_0x1c5d7f(0x235)][_0x1c5d7f(0x3cc)]!==_0x390a23[_0x1c5d7f(0x235)][_0x1c5d7f(0x3cc)]||_0x308b43[_0x1c5d7f(0x235)][_0x1c5d7f(0x303)]!==_0x390a23[_0x1c5d7f(0x235)][_0x1c5d7f(0x303)])return _0x3aa75e;const _0x22166b=transformAddDataValidationWithRefRange(_0x390a23,{'id':_univerjs_sheets[_0x1c5d7f(0x382)]['id'],'params':{'fromRange':_0x308b43[_0x1c5d7f(0x235)]['sourceRange'],'toRange':_0x308b43['params']['targetRange']}});return{'m1Prime':[_0x308b43,..._0x22166b],'m2Prime':[_0x390a23,..._0x22166b]};}},moveRowsMutationWithAddMerge={'m1':_univerjs_sheets[_0x4fd226(0x229)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x340)]['id'],'handler'(_0x1682f3,_0x1407f9){const _0x176fe7=_0x4fd226,_0x55b528=addWorksheetMergeMutationWithMoveRowMutation['handler'](_0x1407f9,_0x1682f3);if(isTransformMutationSuccess(_0x55b528))return{'m1Prime':_0x55b528['m2Prime'],'m2Prime':_0x55b528[_0x176fe7(0x253)]};else return _0x55b528;}},moveRowMutationWithMoveRange={'m1':_univerjs_sheets['MoveRowsMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x35a)]['id'],'handler'(_0x24ee88,_0x181d59){const _0x51a115=_0x4fd226,_0x2c5b23={'m1Prime':_0x24ee88,'m2Prime':_0x181d59};if(_0x24ee88[_0x51a115(0x235)][_0x51a115(0x3cc)]!==_0x181d59['params'][_0x51a115(0x3cc)]||_0x24ee88[_0x51a115(0x235)][_0x51a115(0x303)]!==_0x181d59[_0x51a115(0x235)][_0x51a115(0x270)]['subUnitId']&&_0x24ee88[_0x51a115(0x235)][_0x51a115(0x303)]!==_0x181d59['params']['to']['subUnitId'])return _0x2c5b23;const _0xffac4d=_univerjs_core[_0x51a115(0x1d5)][_0x51a115(0x28e)](_0x24ee88),_0x154b70=_univerjs_core[_0x51a115(0x1d5)][_0x51a115(0x28e)](_0x181d59),_0x13aeb1=_0x24ee88[_0x51a115(0x235)]['sourceRange'],_0x475968=_0x24ee88[_0x51a115(0x235)][_0x51a115(0x26c)];if(_0x24ee88['params']['subUnitId']===_0x181d59[_0x51a115(0x235)][_0x51a115(0x270)]['subUnitId']){const _0x495b1c=new _univerjs_core['ObjectMatrix'](_0x154b70[_0x51a115(0x235)][_0x51a115(0x270)][_0x51a115(0x355)]),_0x516d7a=_0x495b1c[_0x51a115(0x277)]();if(intersect({'start':_0x13aeb1[_0x51a115(0x26f)],'end':_0x13aeb1[_0x51a115(0x3e2)]},{'start':_0x516d7a[_0x51a115(0x26f)],'end':_0x516d7a[_0x51a115(0x3e2)]})||intersect({'start':_0x475968[_0x51a115(0x26f)],'end':_0x475968[_0x51a115(0x3e2)]},{'start':_0x516d7a[_0x51a115(0x26f)],'end':_0x516d7a[_0x51a115(0x3e2)]}))return{'error':new Error('move\x20row\x20is\x20conflict\x20with\x20move\x20range')};const _0x19f42c=(0x0,_univerjs_sheets[_0x51a115(0x302)])({'start':_0x13aeb1[_0x51a115(0x26f)],'end':_0x13aeb1['endRow']},{'start':_0x475968['startRow'],'end':_0x475968['endRow']},{'start':_0x516d7a[_0x51a115(0x26f)],'end':_0x516d7a[_0x51a115(0x3e2)]});if(_0x19f42c['length']!==0x0)return{'error':new Error(_0x51a115(0x33d))};if(_0x19f42c[_0x51a115(0x1e7)]!==0x0)_0x495b1c[_0x51a115(0x327)](_0x13aeb1[_0x51a115(0x26f)],_0x13aeb1['endRow']-_0x13aeb1[_0x51a115(0x26f)]+0x1,_0x475968[_0x51a115(0x26f)]);_0x154b70[_0x51a115(0x235)][_0x51a115(0x270)][_0x51a115(0x355)]=_0x495b1c[_0x51a115(0x414)]();}if(_0x24ee88['params']['subUnitId']===_0x181d59[_0x51a115(0x235)]['to']['subUnitId']){const _0x2fb063=new _univerjs_core[(_0x51a115(0x2ed))](_0x154b70[_0x51a115(0x235)]['to'][_0x51a115(0x355)]),_0x3bf891=_0x2fb063[_0x51a115(0x277)]();if(intersect({'start':_0x13aeb1[_0x51a115(0x26f)],'end':_0x13aeb1[_0x51a115(0x3e2)]},{'start':_0x3bf891['startRow'],'end':_0x3bf891['endRow']})||intersect({'start':_0x475968[_0x51a115(0x26f)],'end':_0x475968[_0x51a115(0x3e2)]},{'start':_0x3bf891[_0x51a115(0x26f)],'end':_0x3bf891['endRow']}))return{'error':new Error(_0x51a115(0x33d))};const _0x475738=(0x0,_univerjs_sheets[_0x51a115(0x302)])({'start':_0x13aeb1[_0x51a115(0x26f)],'end':_0x13aeb1[_0x51a115(0x3e2)]},{'start':_0x475968['startRow'],'end':_0x475968[_0x51a115(0x3e2)]},{'start':_0x3bf891[_0x51a115(0x26f)],'end':_0x3bf891[_0x51a115(0x3e2)]});if(_0x475738[_0x51a115(0x367)]!==0x0)return{'error':new Error('move\x20row\x20is\x20conflict\x20with\x20move\x20range')};if(_0x475738['step']!==0x0)_0x2fb063[_0x51a115(0x327)](_0x13aeb1[_0x51a115(0x26f)],_0x13aeb1[_0x51a115(0x3e2)]-_0x13aeb1[_0x51a115(0x26f)]+0x1,_0x475968['startRow']);_0x154b70[_0x51a115(0x235)]['to'][_0x51a115(0x355)]=_0x2fb063[_0x51a115(0x414)]();}return{'m1Prime':_0xffac4d,'m2Prime':_0x154b70};}},moveRowMutationWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x229)]['id'],'m2':_univerjs_sheets['MoveRowsMutation']['id'],'handler'(_0x27b43b,_0xdd62b4){const _0x957550=_0x4fd226,_0x2fe1d7={'m1Prime':_0x27b43b,'m2Prime':_0xdd62b4};if(_0x27b43b[_0x957550(0x235)][_0x957550(0x3cc)]!==_0xdd62b4['params'][_0x957550(0x3cc)]||_0x27b43b[_0x957550(0x235)]['subUnitId']!==_0xdd62b4[_0x957550(0x235)][_0x957550(0x303)])return _0x2fe1d7;const _0x3840cc=_univerjs_core[_0x957550(0x1d5)]['deepClone'](_0x27b43b),_0x2228c4=_univerjs_core[_0x957550(0x1d5)][_0x957550(0x28e)](_0xdd62b4),_0x2b3c73=_0xdd62b4[_0x957550(0x235)][_0x957550(0x200)],_0x36dbd4=_0xdd62b4[_0x957550(0x235)][_0x957550(0x26c)],_0x5645ce=_0x27b43b[_0x957550(0x235)][_0x957550(0x200)],_0x17443d=_0x27b43b[_0x957550(0x235)][_0x957550(0x26c)];if(_0x5645ce[_0x957550(0x3e2)]>=_0x2b3c73[_0x957550(0x26f)]&&_0x5645ce[_0x957550(0x26f)]<=_0x2b3c73['endRow'])return{'error':new Error('move\x20row\x20is\x20conflict\x20with\x20move\x20row')};const _0x2326f5=(0x0,_univerjs_sheets[_0x957550(0x302)])({'start':_0x5645ce['startRow'],'end':_0x5645ce[_0x957550(0x3e2)]},{'start':_0x17443d[_0x957550(0x26f)],'end':_0x17443d['endRow']},{'start':_0x2b3c73[_0x957550(0x26f)],'end':_0x2b3c73['endRow']}),_0x31503a=(0x0,_univerjs_sheets[_0x957550(0x302)])({'start':_0x5645ce[_0x957550(0x26f)],'end':_0x5645ce[_0x957550(0x3e2)]},{'start':_0x17443d[_0x957550(0x26f)],'end':_0x17443d[_0x957550(0x3e2)]},{'start':_0x36dbd4['startRow'],'end':_0x36dbd4[_0x957550(0x3e2)]});if(_0x2326f5&&_0x31503a)_0x2228c4[_0x957550(0x235)][_0x957550(0x200)][_0x957550(0x26f)]+=_0x2326f5['step'],_0x2228c4['params'][_0x957550(0x200)][_0x957550(0x3e2)]+=_0x2326f5['step']+(_0x2326f5[_0x957550(0x367)]||0x0),_0x2228c4[_0x957550(0x235)]['targetRange'][_0x957550(0x26f)]+=_0x31503a['step'],_0x2228c4[_0x957550(0x235)]['targetRange'][_0x957550(0x3e2)]+=_0x31503a['step']+(_0x31503a[_0x957550(0x367)]||0x0);else _0x2228c4['id']=_univerjs_sheets[_0x957550(0x2fc)]['id'];const _0x3e3d91=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x2b3c73[_0x957550(0x26f)],'end':_0x2b3c73[_0x957550(0x3e2)]},{'start':_0x36dbd4[_0x957550(0x26f)],'end':_0x36dbd4[_0x957550(0x3e2)]},{'start':_0x5645ce[_0x957550(0x26f)],'end':_0x5645ce[_0x957550(0x3e2)]}),_0x223bd3=(0x0,_univerjs_sheets[_0x957550(0x302)])({'start':_0x2b3c73['startRow'],'end':_0x2b3c73[_0x957550(0x3e2)]},{'start':_0x36dbd4[_0x957550(0x26f)],'end':_0x36dbd4[_0x957550(0x3e2)]},{'start':_0x17443d[_0x957550(0x26f)],'end':_0x17443d[_0x957550(0x3e2)]});if(_0x3e3d91&&_0x223bd3)_0x3840cc['params']['sourceRange']['startRow']+=_0x3e3d91[_0x957550(0x1e7)],_0x3840cc[_0x957550(0x235)]['sourceRange'][_0x957550(0x3e2)]+=_0x3e3d91[_0x957550(0x1e7)]+(_0x3e3d91[_0x957550(0x367)]||0x0),_0x3840cc[_0x957550(0x235)][_0x957550(0x26c)][_0x957550(0x26f)]+=_0x223bd3[_0x957550(0x1e7)],_0x3840cc[_0x957550(0x235)][_0x957550(0x26c)][_0x957550(0x3e2)]+=_0x223bd3[_0x957550(0x1e7)]+(_0x223bd3[_0x957550(0x367)]||0x0);else _0x3840cc['id']=_univerjs_sheets[_0x957550(0x2fc)]['id'];return{'m1Prime':_0x3840cc,'m2Prime':_0x2228c4};}},moveRowMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x229)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x20e)]['id'],'handler'(_0x5cba55,_0x3abf52){const _0x1a3e7e=_0x4fd226,_0x589ba5={'m1Prime':_0x5cba55,'m2Prime':_0x3abf52};if(_0x5cba55['params']['unitId']!==_0x3abf52[_0x1a3e7e(0x235)][_0x1a3e7e(0x3cc)]||_0x5cba55[_0x1a3e7e(0x235)][_0x1a3e7e(0x303)]!==_0x3abf52[_0x1a3e7e(0x235)][_0x1a3e7e(0x303)])return _0x589ba5;const _0x588c56=_univerjs_core[_0x1a3e7e(0x1d5)][_0x1a3e7e(0x28e)](_0x5cba55),_0xba721=_univerjs_core[_0x1a3e7e(0x1d5)][_0x1a3e7e(0x28e)](_0x3abf52),{sourceRange:_0x2c89b1,targetRange:_0x2de16b}=_0x5cba55[_0x1a3e7e(0x235)],_0x8dc68d={'start':_0x2c89b1[_0x1a3e7e(0x26f)],'end':_0x2c89b1['endRow']},_0x48ccc6={'start':_0x2de16b[_0x1a3e7e(0x26f)],'end':_0x2de16b[_0x1a3e7e(0x3e2)]};if(_0xba721['params'][_0x1a3e7e(0x3e4)]['some'](_0x318fac=>{const _0x143751=_0x1a3e7e,_0x25fc9d={'start':_0x318fac[_0x143751(0x26f)],'end':_0x318fac[_0x143751(0x3e2)]},_0x1ba40b=intersect(_0x8dc68d,_0x25fc9d),_0x138c54=intersect(_0x48ccc6,_0x25fc9d);if(_0x1ba40b||_0x138c54)return!![];const _0x2b015f=(0x0,_univerjs_sheets[_0x143751(0x302)])(_0x8dc68d,_0x48ccc6,_0x25fc9d);if(_0x2b015f['length']!==0x0)return!![];return _0x318fac['startRow']+=_0x2b015f[_0x143751(0x1e7)],_0x318fac[_0x143751(0x3e2)]+=_0x2b015f[_0x143751(0x1e7)],![];}))return{'error':new Error(_0x1a3e7e(0x2a4))};return{'m1Prime':_0x588c56,'m2Prime':_0xba721};}},moveRowMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0x4fd226(0x229)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3ff)]['id'],'handler'(_0x1381a6,_0x2c9737){const _0x14a50b=_0x4fd226,_0x4f1562=_univerjs_core[_0x14a50b(0x1d5)][_0x14a50b(0x28e)](_0x1381a6),_0x27dbfa=_univerjs_core['Tools'][_0x14a50b(0x28e)](_0x2c9737);if(_0x1381a6[_0x14a50b(0x235)][_0x14a50b(0x3cc)]!==_0x2c9737[_0x14a50b(0x235)][_0x14a50b(0x3cc)]||_0x1381a6[_0x14a50b(0x235)][_0x14a50b(0x303)]!==_0x2c9737[_0x14a50b(0x235)]['subUnitId'])return{'m1Prime':_0x4f1562,'m2Prime':_0x27dbfa};const _0xa4b784=_0x27dbfa[_0x14a50b(0x235)][_0x14a50b(0x3e4)]['reduce']((_0x244032,_0x204af5)=>{const _0x1e8d0b=_0x14a50b,{sourceRange:_0x13e206,targetRange:_0x189c8e}=_0x1381a6[_0x1e8d0b(0x235)],_0x2739b8={..._0x204af5};if(_0x13e206['endRow']<_0x2739b8['startRow']&&_0x189c8e[_0x1e8d0b(0x26f)]>_0x2739b8[_0x1e8d0b(0x3e2)])_0x2739b8[_0x1e8d0b(0x26f)]-=_0x13e206[_0x1e8d0b(0x3e2)]-_0x13e206['startRow']+0x1,_0x2739b8[_0x1e8d0b(0x3e2)]-=_0x13e206[_0x1e8d0b(0x3e2)]-_0x13e206[_0x1e8d0b(0x26f)]+0x1,isMergeCell(_0x2739b8)&&_0x244032['push'](_0x2739b8);else{if(_0x13e206[_0x1e8d0b(0x26f)]>_0x2739b8[_0x1e8d0b(0x3e2)]&&_0x189c8e['endRow']<_0x2739b8[_0x1e8d0b(0x26f)])_0x2739b8[_0x1e8d0b(0x26f)]+=_0x13e206[_0x1e8d0b(0x3e2)]-_0x13e206[_0x1e8d0b(0x26f)]+0x1,_0x2739b8[_0x1e8d0b(0x3e2)]+=_0x13e206[_0x1e8d0b(0x3e2)]-_0x13e206[_0x1e8d0b(0x26f)]+0x1,isMergeCell(_0x2739b8)&&_0x244032[_0x1e8d0b(0x285)](_0x2739b8);else{if(_univerjs_core[_0x1e8d0b(0x394)][_0x1e8d0b(0x2da)](_0x2739b8,_0x13e206)||_univerjs_core[_0x1e8d0b(0x394)][_0x1e8d0b(0x2da)](_0x2739b8,_0x189c8e)){}else _0x244032[_0x1e8d0b(0x285)](_0x2739b8);}}return _0x244032;},[]);_0x27dbfa[_0x14a50b(0x235)][_0x14a50b(0x3e4)]=_0xa4b784;if(_0x27dbfa['params'][_0x14a50b(0x3e4)][_0x14a50b(0x367)]===0x0)_0x27dbfa['id']=_univerjs_sheets[_0x14a50b(0x2fc)]['id'];return{'m1Prime':_0x4f1562,'m2Prime':_0x27dbfa};}},moveRowMutationWithReorderRange={'m1':_univerjs_sheets['MoveRowsMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x201)]['id'],'handler'(_0x3f20a8,_0x3f2cb9){const _0x54b70e=_0x4fd226,_0x4c7fa7={'m1Prime':_0x3f20a8,'m2Prime':_0x3f2cb9};if(_0x3f20a8[_0x54b70e(0x235)][_0x54b70e(0x3cc)]!==_0x3f2cb9[_0x54b70e(0x235)][_0x54b70e(0x3cc)]||_0x3f20a8[_0x54b70e(0x235)]['subUnitId']!==_0x3f2cb9[_0x54b70e(0x235)][_0x54b70e(0x303)])return _0x4c7fa7;const _0x4f9315=orderMapGenerator(_0x3f20a8[_0x54b70e(0x235)][_0x54b70e(0x200)],_0x3f20a8[_0x54b70e(0x235)][_0x54b70e(0x26c)]),_0x11917e=_univerjs_core[_0x54b70e(0x1d5)][_0x54b70e(0x28e)](_0x3f2cb9),{range:_0x3909d9}=_0x11917e[_0x54b70e(0x235)],_0x138183=Array[_0x54b70e(0x270)]({'length':_0x3909d9[_0x54b70e(0x3e2)]-_0x3909d9[_0x54b70e(0x26f)]+0x1},(_0x874fa,_0x22b9f2)=>_0x22b9f2+_0x3909d9[_0x54b70e(0x26f)]),_0x2dbdf7={},_0x59e932={},_0x5cf254=Math['min'](_0x3f20a8['params'][_0x54b70e(0x200)][_0x54b70e(0x26f)],_0x3f20a8[_0x54b70e(0x235)][_0x54b70e(0x26c)][_0x54b70e(0x26f)],..._0x138183),_0x22465e=Math[_0x54b70e(0x2aa)](_0x3f20a8[_0x54b70e(0x235)][_0x54b70e(0x200)][_0x54b70e(0x3e2)],_0x3f20a8['params']['targetRange']['endRow'],..._0x138183);for(let _0x26c840=_0x5cf254;_0x26c840<=_0x22465e;_0x26c840++){var _0x826334;const _0x48024c=_0x26c840,_0x2ee2ec=(_0x826334=_0x3f2cb9['params']['order'][_0x26c840])!==null&&_0x826334!==void 0x0?_0x826334:_0x48024c,_0x1eee00=_0x4f9315(_0x2ee2ec);if(_0x48024c!==_0x1eee00)_0x2dbdf7[_0x48024c]=_0x1eee00;if(_0x2ee2ec!==_0x1eee00)_0x59e932[_0x2ee2ec]=_0x1eee00;}_0x11917e[_0x54b70e(0x235)][_0x54b70e(0x339)]=_0x2dbdf7;const _0x3364f3=Object[_0x54b70e(0x2fd)](_0x2dbdf7)[_0x54b70e(0x208)](Number);_0x3909d9[_0x54b70e(0x26f)]=Math['min'](..._0x3364f3),_0x3909d9[_0x54b70e(0x3e2)]=Math[_0x54b70e(0x2aa)](..._0x3364f3);const _0x165b88=[_0x3f20a8],_0x2b5da3=Object[_0x54b70e(0x2fd)](_0x59e932)[_0x54b70e(0x208)](Number);if(_0x2b5da3[_0x54b70e(0x367)]>0x0)_0x165b88['unshift']({'id':_univerjs_sheets[_0x54b70e(0x201)]['id'],'params':{'unitId':_0x3f20a8['params'][_0x54b70e(0x3cc)],'subUnitId':_0x3f20a8[_0x54b70e(0x235)][_0x54b70e(0x303)],'range':{'startColumn':_0x3f2cb9[_0x54b70e(0x235)]['range']['startColumn'],'endColumn':_0x3f2cb9[_0x54b70e(0x235)][_0x54b70e(0x2d0)]['endColumn'],'startRow':Math[_0x54b70e(0x1f2)](..._0x2b5da3),'endRow':Math[_0x54b70e(0x2aa)](..._0x2b5da3)},'order':_0x59e932}});return{'m1Prime':_0x165b88,'m2Prime':_0x11917e};}},orderMapGenerator=(_0x38b785,_0x400f9b)=>{const _0x59808e=_0x4fd226,_0x2e97d6=_0x38b785['endRow']-_0x38b785[_0x59808e(0x26f)]+0x1,_0xc22ddb=_0x38b785[_0x59808e(0x26f)],_0x1ba62b=_0x400f9b[_0x59808e(0x26f)];return _0x25f8d7=>{const _0x365af0=_0x59808e;if(_0xc22ddb<=_0x1ba62b){const _0x390f49=_0x400f9b['startRow']-_0x38b785['endRow']-0x1;if(_0x25f8d7>=_0x38b785[_0x365af0(0x26f)]&&_0x25f8d7<=_0x38b785['endRow'])return _0x25f8d7+_0x390f49;else{if(_0x25f8d7>_0x38b785['endRow']&&_0x25f8d7<_0x400f9b[_0x365af0(0x26f)])return _0x25f8d7-_0x2e97d6;}}if(_0xc22ddb>_0x1ba62b){const _0x3f3c33=_0x38b785['startRow']-_0x400f9b[_0x365af0(0x26f)];if(_0x25f8d7>=_0x400f9b['startRow']&&_0x25f8d7<_0x38b785['startRow'])return _0x25f8d7+_0x2e97d6;else{if(_0x25f8d7>=_0x38b785[_0x365af0(0x26f)]&&_0x25f8d7<=_0x38b785[_0x365af0(0x3e2)])return _0x25f8d7-_0x3f3c33;}}return _0x25f8d7;};},moveRowMutationWithSetNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x229)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3f8)]['id'],'handler'(_0x22f7ba,_0x257cc7){const _0x2820ad=_0x4fd226,_0x2775bc={'m1Prime':_0x22f7ba,'m2Prime':_0x257cc7};if(_0x22f7ba[_0x2820ad(0x235)][_0x2820ad(0x3cc)]!==_0x257cc7[_0x2820ad(0x235)][_0x2820ad(0x3cc)]||_0x22f7ba[_0x2820ad(0x235)][_0x2820ad(0x303)]!==_0x257cc7[_0x2820ad(0x235)]['subUnitId'])return _0x2775bc;const _0x1891a7=[_univerjs_core['Tools']['deepClone'](_0x22f7ba)],_0x2fa4e2=_univerjs_core[_0x2820ad(0x1d5)][_0x2820ad(0x28e)](_0x257cc7),{sourceRange:_0x32be1c,targetRange:_0x3a209d}=_0x22f7ba[_0x2820ad(0x235)],_0x514798={'start':_0x32be1c['startRow'],'end':_0x32be1c['endRow']},_0x884428={'start':_0x3a209d[_0x2820ad(0x26f)],'end':_0x3a209d['endRow']},{values:_0x4de882}=_0x2fa4e2['params'],_0x435258=[];let _0xf7b611=![];for(const _0x582d6c in _0x4de882){const _0x441ea5=_0x4de882[_0x582d6c];_0x435258['push'](..._0x441ea5['ranges']);if(_0x441ea5['ranges'][_0x2820ad(0x1c0)](_0x234466=>{const _0x3062d1=_0x2820ad,_0x25dfe9={'start':_0x234466['startRow'],'end':_0x234466[_0x3062d1(0x3e2)]},_0x195e56=intersect(_0x514798,_0x25dfe9),_0x1a7ad3=intersect(_0x884428,_0x25dfe9);if(_0x195e56||_0x1a7ad3)return!![];const _0x541508=(0x0,_univerjs_sheets[_0x3062d1(0x302)])(_0x514798,_0x884428,_0x25dfe9);if(_0x541508['length']!==0x0)return!![];if(_0x541508[_0x3062d1(0x1e7)]!==0x0)_0xf7b611=!![];return _0x234466[_0x3062d1(0x26f)]+=_0x541508[_0x3062d1(0x1e7)],_0x234466[_0x3062d1(0x3e2)]+=_0x541508[_0x3062d1(0x1e7)],![];}))return{'error':new Error('move\x20col\x20is\x20conflict\x20with\x20set\x20numfmft')};}if(_0xf7b611){const _0x380d52={'id':_univerjs_sheets[_0x2820ad(0x20e)]['id'],'params':{'unitId':_0x257cc7[_0x2820ad(0x235)][_0x2820ad(0x3cc)],'subUnitId':_0x257cc7['params'][_0x2820ad(0x303)],'ranges':_0x435258}};_0x1891a7[_0x2820ad(0x285)](_0x380d52,_0x2fa4e2);}return{'m1Prime':_0x1891a7,'m2Prime':_0x2fa4e2};}},moveRowMutationWithSetRangeValues={'m1':_univerjs_sheets[_0x4fd226(0x229)]['id'],'m2':_univerjs_sheets['SetRangeValuesMutation']['id'],'handler'(_0x4b875a,_0x569806){const _0x5f3e06=_0x4fd226,_0x3ac4a8={'m1Prime':_0x4b875a,'m2Prime':_0x569806};if(_0x4b875a['params']['unitId']!==_0x569806['params']['unitId']||_0x4b875a[_0x5f3e06(0x235)][_0x5f3e06(0x303)]!==_0x569806[_0x5f3e06(0x235)][_0x5f3e06(0x303)])return _0x3ac4a8;const _0x37757f=[_univerjs_core['Tools'][_0x5f3e06(0x28e)](_0x4b875a)],_0x4471b6=_univerjs_core['Tools'][_0x5f3e06(0x28e)](_0x569806),_0xcc4ed0=new _univerjs_core[(_0x5f3e06(0x2ed))](_0x4471b6[_0x5f3e06(0x235)][_0x5f3e06(0x2f8)]),{sourceRange:_0x478c16,targetRange:_0x1a3d2f}=_0x4b875a['params'],_0x116bf2=_0x478c16[_0x5f3e06(0x26f)],_0x267597=_0x478c16['endRow']-_0x478c16[_0x5f3e06(0x26f)]+0x1,_0x1baca4=_0x1a3d2f[_0x5f3e06(0x26f)];_0xcc4ed0[_0x5f3e06(0x327)](_0x116bf2,_0x267597,_0x1baca4);const _0x3bedfd=new _univerjs_core['ObjectMatrix']();let _0x1c2861=![];_0xcc4ed0[_0x5f3e06(0x398)]((_0x2e81fe,_0x22a68,_0x12450b)=>{const _0x1e2b0a=_0x5f3e06;if(_0x12450b&&_0x12450b['f']){const _0xace715=_0x12450b['f'];let _0x5d5285=![];const _0x2e69d1=processFormulaString(_0x4b875a[_0x1e2b0a(0x235)][_0x1e2b0a(0x3cc)],_0x4b875a['params'][_0x1e2b0a(0x303)],_0xace715,_0x3e9228=>{const _0x1b3436=_0x1e2b0a,_0x175146=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x4b875a[_0x1b3436(0x235)][_0x1b3436(0x200)][_0x1b3436(0x26f)],'end':_0x4b875a[_0x1b3436(0x235)][_0x1b3436(0x200)][_0x1b3436(0x3e2)]},{'start':_0x4b875a[_0x1b3436(0x235)][_0x1b3436(0x26c)][_0x1b3436(0x26f)],'end':_0x4b875a[_0x1b3436(0x235)][_0x1b3436(0x26c)][_0x1b3436(0x3e2)]},{'start':_0x3e9228[_0x1b3436(0x26f)],'end':_0x3e9228[_0x1b3436(0x3e2)]});return(_0x175146[_0x1b3436(0x1e7)]!==0x0||_0x175146[_0x1b3436(0x367)]!==0x0)&&(_0x5d5285=!![],_0x3e9228[_0x1b3436(0x26f)]+=_0x175146['step'],_0x3e9228[_0x1b3436(0x3e2)]+=_0x175146[_0x1b3436(0x1e7)]+_0x175146[_0x1b3436(0x367)]),_0x3e9228;});_0x5d5285&&(_0x1c2861=!![],_0x12450b['f']=_0x2e69d1,_0x3bedfd['setValue'](_0x2e81fe,_0x22a68,{..._0x12450b}));}});if(_0x1c2861){const _0x4fe03b={'id':_univerjs_sheets[_0x5f3e06(0x35c)]['id'],'params':{'unitId':_0x569806[_0x5f3e06(0x235)][_0x5f3e06(0x3cc)],'subUnitId':_0x569806['params'][_0x5f3e06(0x303)],'cellValue':_0x3bedfd[_0x5f3e06(0x414)]()}};_0x37757f[_0x5f3e06(0x285)](_0x4fe03b);}return _0x4471b6['params']['cellValue']=_0xcc4ed0[_0x5f3e06(0x414)](),{'m1Prime':_0x37757f,'m2Prime':_0x4471b6};}},moveRowMutationWithSetRowData={'m1':_univerjs_sheets[_0x4fd226(0x229)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x361)]['id'],'handler'(_0x4b978a,_0x73415a){const _0x18d6cf=_0x4fd226,_0x3bbd22={'m1Prime':_0x4b978a,'m2Prime':_0x73415a};if(_0x4b978a[_0x18d6cf(0x235)][_0x18d6cf(0x3cc)]!==_0x73415a[_0x18d6cf(0x235)]['unitId']||_0x4b978a['params'][_0x18d6cf(0x303)]!==_0x73415a[_0x18d6cf(0x235)]['subUnitId'])return _0x3bbd22;const _0x3f546b=_univerjs_core[_0x18d6cf(0x1d5)][_0x18d6cf(0x28e)](_0x4b978a),_0x55e10b=_univerjs_core[_0x18d6cf(0x1d5)][_0x18d6cf(0x28e)](_0x73415a),{rowData:_0x49caef}=_0x55e10b[_0x18d6cf(0x235)],{sourceRange:_0x1a56e1,targetRange:_0x12f60a}=_0x4b978a[_0x18d6cf(0x235)];return(0x0,_univerjs_core[_0x18d6cf(0x3cd)])(_0x1a56e1[_0x18d6cf(0x26f)],_0x1a56e1[_0x18d6cf(0x3e2)]-_0x1a56e1[_0x18d6cf(0x26f)]+0x1,_0x12f60a['startRow'],_0x49caef),{'m1Prime':_0x3f546b,'m2Prime':_0x55e10b};}},moveRowMutationWithSetRowHidden={'m1':_univerjs_sheets[_0x4fd226(0x229)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3e0)]['id'],'handler'(_0xb59ece,_0x39bd78){const _0x1f0a1d=_0x4fd226,_0x239361={'m1Prime':_0xb59ece,'m2Prime':_0x39bd78};if(_0xb59ece[_0x1f0a1d(0x235)][_0x1f0a1d(0x3cc)]!==_0x39bd78[_0x1f0a1d(0x235)][_0x1f0a1d(0x3cc)]||_0xb59ece[_0x1f0a1d(0x235)]['subUnitId']!==_0x39bd78[_0x1f0a1d(0x235)][_0x1f0a1d(0x303)])return _0x239361;const _0x12cddb=_univerjs_core[_0x1f0a1d(0x1d5)][_0x1f0a1d(0x28e)](_0xb59ece),_0x16c948=_univerjs_core[_0x1f0a1d(0x1d5)][_0x1f0a1d(0x28e)](_0x39bd78),{ranges:_0x4fd1ed}=_0x16c948[_0x1f0a1d(0x235)],{sourceRange:_0x3a853d,targetRange:_0x33b22e}=_0xb59ece[_0x1f0a1d(0x235)],_0x2cd6f7={'start':_0x3a853d['startRow'],'end':_0x3a853d[_0x1f0a1d(0x3e2)]},_0x1a9d88={'start':_0x33b22e[_0x1f0a1d(0x26f)],'end':_0x33b22e[_0x1f0a1d(0x3e2)]};if(_0x4fd1ed[_0x1f0a1d(0x1c0)](_0x51aa5c=>{const _0x156c79=_0x1f0a1d,_0x3f23c6={'start':_0x51aa5c[_0x156c79(0x26f)],'end':_0x51aa5c[_0x156c79(0x3e2)]},_0x3918b7=intersect(_0x2cd6f7,_0x3f23c6),_0x39b0d9=intersect(_0x1a9d88,_0x3f23c6);if(_0x3918b7||_0x39b0d9)return!![];const _0x2823cf=(0x0,_univerjs_sheets[_0x156c79(0x302)])(_0x2cd6f7,_0x1a9d88,_0x3f23c6);if(_0x2823cf[_0x156c79(0x367)]!==0x0)return!![];return _0x51aa5c['startRow']+=_0x2823cf[_0x156c79(0x1e7)],_0x51aa5c[_0x156c79(0x3e2)]+=_0x2823cf[_0x156c79(0x1e7)],![];}))return{'error':new Error(_0x1f0a1d(0x40b))};return{'m1Prime':_0x12cddb,'m2Prime':_0x16c948};}},moveRowMutationWithSetRowVisible={'m1':_univerjs_sheets[_0x4fd226(0x229)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x203)]['id'],'handler'(_0x587307,_0x4daa52){const _0x3495ea=_0x4fd226,_0x76e7a6={'m1Prime':_0x587307,'m2Prime':_0x4daa52};if(_0x587307[_0x3495ea(0x235)][_0x3495ea(0x3cc)]!==_0x4daa52[_0x3495ea(0x235)][_0x3495ea(0x3cc)]||_0x587307[_0x3495ea(0x235)][_0x3495ea(0x303)]!==_0x4daa52['params'][_0x3495ea(0x303)])return _0x76e7a6;const _0x104532=_univerjs_core[_0x3495ea(0x1d5)][_0x3495ea(0x28e)](_0x587307),_0x378d29=_univerjs_core[_0x3495ea(0x1d5)][_0x3495ea(0x28e)](_0x4daa52),{ranges:_0x285aaa}=_0x378d29['params'],{sourceRange:_0x6085c1,targetRange:_0xca290a}=_0x587307[_0x3495ea(0x235)],_0x2b183f={'start':_0x6085c1['startRow'],'end':_0x6085c1[_0x3495ea(0x3e2)]},_0x3c7b81={'start':_0xca290a[_0x3495ea(0x26f)],'end':_0xca290a['endRow']};if(_0x285aaa[_0x3495ea(0x1c0)](_0xd90622=>{const _0x9af552=_0x3495ea,_0xc5c80b={'start':_0xd90622[_0x9af552(0x26f)],'end':_0xd90622[_0x9af552(0x3e2)]},_0x47281e=intersect(_0x2b183f,_0xc5c80b),_0x453fce=intersect(_0x3c7b81,_0xc5c80b);if(_0x47281e||_0x453fce)return!![];const _0x417981=(0x0,_univerjs_sheets[_0x9af552(0x302)])(_0x2b183f,_0x3c7b81,_0xc5c80b);if(_0x417981[_0x9af552(0x367)]!==0x0)return!![];return _0xd90622[_0x9af552(0x26f)]+=_0x417981[_0x9af552(0x1e7)],_0xd90622[_0x9af552(0x3e2)]+=_0x417981[_0x9af552(0x1e7)],![];}))return{'error':new Error(_0x3495ea(0x264))};return{'m1Prime':_0x104532,'m2Prime':_0x378d29};}},moveRowMutationWithSetSelection={'m1':_univerjs_sheets['MoveRowsMutation']['id'],'m2':_univerjs_sheets['SetSelectionsOperation']['id'],'handler'(_0x25b764,_0x5159f5){const _0x3d1889=_0x4fd226,_0x1abd6a={'m1Prime':[],'m2Prime':[]};if(_0x25b764[_0x3d1889(0x235)][_0x3d1889(0x3cc)]!==_0x5159f5[_0x3d1889(0x235)][_0x3d1889(0x3cc)]||_0x25b764[_0x3d1889(0x235)]['subUnitId']!==_0x5159f5['params'][_0x3d1889(0x303)])return _0x1abd6a;const _0x10d86d=_univerjs_core[_0x3d1889(0x1d5)][_0x3d1889(0x28e)](_0x5159f5);let _0x93a1ce=![];_0x10d86d[_0x3d1889(0x235)][_0x3d1889(0x399)]['forEach'](_0x1892e2=>{const _0x2511f1=_0x3d1889,{range:_0x4651ec,primary:_0x5c0a40}=_0x1892e2,_0x44e26d=(0x0,_univerjs_sheets[_0x2511f1(0x302)])({'start':_0x25b764[_0x2511f1(0x235)]['sourceRange'][_0x2511f1(0x26f)],'end':_0x25b764[_0x2511f1(0x235)]['sourceRange']['endRow']},{'start':_0x25b764[_0x2511f1(0x235)]['targetRange']['startRow'],'end':_0x25b764[_0x2511f1(0x235)]['targetRange']['endRow']},{'start':_0x4651ec[_0x2511f1(0x26f)],'end':_0x4651ec[_0x2511f1(0x3e2)]});if(_0x44e26d[_0x2511f1(0x367)]||_0x44e26d[_0x2511f1(0x1e7)]){_0x4651ec[_0x2511f1(0x26f)]+=_0x44e26d['step'],_0x4651ec['endRow']+=_0x44e26d[_0x2511f1(0x1e7)]+(_0x44e26d[_0x2511f1(0x367)]||0x0);if(_0x5c0a40){const _0x4f254f=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x25b764[_0x2511f1(0x235)][_0x2511f1(0x200)][_0x2511f1(0x26f)],'end':_0x25b764[_0x2511f1(0x235)][_0x2511f1(0x200)][_0x2511f1(0x3e2)]},{'start':_0x25b764['params'][_0x2511f1(0x26c)][_0x2511f1(0x26f)],'end':_0x25b764[_0x2511f1(0x235)][_0x2511f1(0x26c)][_0x2511f1(0x3e2)]},{'start':_0x5c0a40[_0x2511f1(0x26f)],'end':_0x5c0a40['endRow']});(_0x4f254f[_0x2511f1(0x367)]||_0x4f254f[_0x2511f1(0x1e7)])&&(_0x5c0a40[_0x2511f1(0x26f)]+=_0x4f254f['step'],_0x5c0a40[_0x2511f1(0x3e2)]+=_0x4f254f['step'],_0x5c0a40['actualRow']+=_0x4f254f[_0x2511f1(0x1e7)]);}_0x93a1ce=!![];}});if(_0x93a1ce)_0x1abd6a['m2Prime'][_0x3d1889(0x285)](_0x10d86d);return _0x1abd6a;}},moveRowMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets['MoveRowsMutation']['id'],'m2':_univerjs_sheets_filter[_0x4fd226(0x22f)]['id'],'handler'(_0x2764fb,_0x4fb8f4){const _0x56d555=_0x4fd226,_0x109bf3={'m1Prime':[_0x2764fb],'m2Prime':[_0x4fb8f4]};if(_0x2764fb[_0x56d555(0x235)]['unitId']!==_0x4fb8f4['params'][_0x56d555(0x3cc)]||_0x2764fb[_0x56d555(0x235)][_0x56d555(0x303)]!==_0x4fb8f4['params'][_0x56d555(0x303)])return _0x109bf3;const _0x856697=_univerjs_core[_0x56d555(0x1d5)][_0x56d555(0x28e)](_0x2764fb),_0x494ec1=_univerjs_core[_0x56d555(0x1d5)]['deepClone'](_0x4fb8f4),_0x505a91=(0x0,_univerjs_sheets['handleBaseMoveRowsCols'])({'start':_0x2764fb[_0x56d555(0x235)]['sourceRange']['startRow'],'end':_0x2764fb[_0x56d555(0x235)][_0x56d555(0x200)][_0x56d555(0x3e2)]},{'start':_0x2764fb[_0x56d555(0x235)][_0x56d555(0x26c)][_0x56d555(0x26f)],'end':_0x2764fb['params']['targetRange'][_0x56d555(0x3e2)]},{'start':_0x4fb8f4[_0x56d555(0x235)]['range']['startRow'],'end':_0x4fb8f4[_0x56d555(0x235)]['range'][_0x56d555(0x3e2)]});return _0x494ec1[_0x56d555(0x235)][_0x56d555(0x2d0)]['startRow']+=_0x505a91['step'],_0x494ec1[_0x56d555(0x235)][_0x56d555(0x2d0)][_0x56d555(0x3e2)]+=_0x505a91[_0x56d555(0x1e7)]+_0x505a91['length'],{'m1Prime':[_0x494ec1,_0x856697],'m2Prime':[_0x494ec1]};}},moveRowMutationWithSetWorksheetRowAutoHeight={'m1':_univerjs_sheets[_0x4fd226(0x229)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x2cc)]['id'],'handler'(_0x16ca18,_0xe03eff){const _0x56534e=_0x4fd226,_0x211fa1={'m1Prime':_0x16ca18,'m2Prime':_0xe03eff};if(_0x16ca18[_0x56534e(0x235)][_0x56534e(0x3cc)]!==_0xe03eff[_0x56534e(0x235)][_0x56534e(0x3cc)]||_0x16ca18[_0x56534e(0x235)][_0x56534e(0x303)]!==_0xe03eff[_0x56534e(0x235)]['subUnitId'])return _0x211fa1;const _0x4cb95e=_univerjs_core[_0x56534e(0x1d5)]['deepClone'](_0x16ca18),_0x2f5d75=_univerjs_core[_0x56534e(0x1d5)][_0x56534e(0x28e)](_0xe03eff),{rowsAutoHeightInfo:_0x3f8b58}=_0x2f5d75[_0x56534e(0x235)],{sourceRange:_0x458a1b,targetRange:_0x5a7e33}=_0x16ca18[_0x56534e(0x235)],_0xd9bf38={'start':_0x458a1b['startRow'],'end':_0x458a1b['endRow']},_0x52a787={'start':_0x5a7e33['startRow'],'end':_0x5a7e33[_0x56534e(0x3e2)]};if(_0x3f8b58['some'](_0x3d4e1f=>{const _0x1c4d52=_0x56534e,_0x2e7288=(0x0,_univerjs_sheets[_0x1c4d52(0x302)])(_0xd9bf38,_0x52a787,{'start':_0x3d4e1f[_0x1c4d52(0x1c4)],'end':_0x3d4e1f[_0x1c4d52(0x1c4)]});if(_0x2e7288[_0x1c4d52(0x367)]!==0x0)return!![];return _0x3d4e1f['row']+=_0x2e7288['step'],![];}))return{'error':new Error(_0x56534e(0x3b1))};return{'m1Prime':_0x4cb95e,'m2Prime':_0x2f5d75};}},moveRowMutationWithSetWorksheetRowHeight={'m1':_univerjs_sheets[_0x4fd226(0x229)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x1bb)]['id'],'handler'(_0x54090f,_0x2285d0){const _0x3dbed6=_0x4fd226,_0x1c0435={'m1Prime':_0x54090f,'m2Prime':_0x2285d0};if(_0x54090f[_0x3dbed6(0x235)][_0x3dbed6(0x3cc)]!==_0x2285d0[_0x3dbed6(0x235)]['unitId']||_0x54090f[_0x3dbed6(0x235)][_0x3dbed6(0x303)]!==_0x2285d0[_0x3dbed6(0x235)]['subUnitId'])return _0x1c0435;const _0x36d368=_univerjs_core['Tools']['deepClone'](_0x54090f),_0x2d9ace=_univerjs_core['Tools']['deepClone'](_0x2285d0),{ranges:_0x4d4361,rowHeight:_0x445e83}=_0x2d9ace[_0x3dbed6(0x235)],{sourceRange:_0x558b8d,targetRange:_0x476d67}=_0x54090f['params'],_0x4c94a0={'start':_0x558b8d['startRow'],'end':_0x558b8d['endRow']},_0x4469a0={'start':_0x476d67[_0x3dbed6(0x26f)],'end':_0x476d67[_0x3dbed6(0x3e2)]};if(_0x4d4361[_0x3dbed6(0x1c0)](_0x216df0=>{const _0x3939d4=_0x3dbed6,_0x55c32d=(0x0,_univerjs_sheets[_0x3939d4(0x302)])(_0x4c94a0,_0x4469a0,{'start':_0x216df0[_0x3939d4(0x26f)],'end':_0x216df0[_0x3939d4(0x3e2)]});if(_0x55c32d[_0x3939d4(0x367)]!==0x0)return!![];return _0x216df0['startRow']+=_0x55c32d['step'],_0x216df0[_0x3939d4(0x3e2)]+=_0x55c32d['step'],![];}))return{'error':new Error(_0x3dbed6(0x2ce))};if(typeof _0x445e83!==_0x3dbed6(0x2af))(0x0,_univerjs_core['moveMatrixArray'])(_0x558b8d['startRow'],_0x558b8d[_0x3dbed6(0x3e2)]-_0x558b8d[_0x3dbed6(0x26f)]+0x1,_0x476d67[_0x3dbed6(0x26f)],_0x445e83);return{'m1Prime':_0x36d368,'m2Prime':_0x2d9ace};}},moveRowMutationWithSetWorksheetRowIsAutoHeight={'m1':_univerjs_sheets['MoveRowsMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x3b2)]['id'],'handler'(_0xaf95b0,_0x190575){const _0x51a82d=_0x4fd226,_0x510bc9={'m1Prime':_0xaf95b0,'m2Prime':_0x190575};if(_0xaf95b0[_0x51a82d(0x235)][_0x51a82d(0x3cc)]!==_0x190575[_0x51a82d(0x235)]['unitId']||_0xaf95b0[_0x51a82d(0x235)]['subUnitId']!==_0x190575[_0x51a82d(0x235)][_0x51a82d(0x303)])return _0x510bc9;const _0x259dcd=_univerjs_core[_0x51a82d(0x1d5)]['deepClone'](_0xaf95b0),_0x26d9d2=_univerjs_core['Tools']['deepClone'](_0x190575),{ranges:_0x147dd0,autoHeightInfo:_0x741cbc}=_0x26d9d2[_0x51a82d(0x235)],{sourceRange:_0x22416c,targetRange:_0x51ecbd}=_0xaf95b0[_0x51a82d(0x235)],_0x1afa2e={'start':_0x22416c[_0x51a82d(0x26f)],'end':_0x22416c[_0x51a82d(0x3e2)]},_0x1644ff={'start':_0x51ecbd[_0x51a82d(0x26f)],'end':_0x51ecbd['endRow']};if(_0x147dd0[_0x51a82d(0x1c0)](_0x1af8b0=>{const _0x200e2a=_0x51a82d,_0x436802=(0x0,_univerjs_sheets[_0x200e2a(0x302)])(_0x1afa2e,_0x1644ff,{'start':_0x1af8b0[_0x200e2a(0x26f)],'end':_0x1af8b0['endRow']});if(_0x436802[_0x200e2a(0x367)]!==0x0)return!![];return _0x1af8b0['startRow']+=_0x436802['step'],_0x1af8b0[_0x200e2a(0x3e2)]+=_0x436802['step'],![];}))return{'error':new Error(_0x51a82d(0x3a5))};if(typeof _0x741cbc!==_0x51a82d(0x2af))(0x0,_univerjs_core[_0x51a82d(0x3cd)])(_0x22416c[_0x51a82d(0x26f)],_0x22416c['endRow']-_0x22416c['startRow']+0x1,_0x51ecbd['startRow'],_0x741cbc);return{'m1Prime':_0x259dcd,'m2Prime':_0x26d9d2};}},moveRowsWithUpdateCommentRef={'m1':_univerjs_sheets[_0x4fd226(0x229)]['id'],'m2':_univerjs_thread_comment['UpdateCommentRefMutation']['id'],'handler':(_0x448e27,_0x56dd0a)=>{const _0x2c0e61=_0x4fd226,_0x1072a7={'m1Prime':_0x448e27,'m2Prime':_0x56dd0a};if(_0x448e27[_0x2c0e61(0x235)][_0x2c0e61(0x3cc)]!==_0x56dd0a[_0x2c0e61(0x235)][_0x2c0e61(0x3cc)]||_0x448e27[_0x2c0e61(0x235)][_0x2c0e61(0x303)]!==_0x56dd0a['params'][_0x2c0e61(0x303)])return _0x1072a7;const _0x307145=transformUpdateCommentRefWithRefRange(_0x56dd0a,{'id':_univerjs_sheets[_0x2c0e61(0x382)]['id'],'params':{'unitId':_0x448e27['params'][_0x2c0e61(0x3cc)],'subUnitId':_0x448e27[_0x2c0e61(0x235)]['subUnitId'],'fromRange':_0x448e27[_0x2c0e61(0x235)]['sourceRange'],'toRange':_0x448e27[_0x2c0e61(0x235)][_0x2c0e61(0x26c)]}});return{'m1Prime':[_0x448e27,..._0x307145],'m2Prime':[_0x56dd0a,..._0x307145]};}},moveRowMutationWithUpdateDataValidation={'m1':_univerjs_sheets[_0x4fd226(0x229)]['id'],'m2':_univerjs_data_validation[_0x4fd226(0x1d4)]['id'],'handler':(_0x2161ff,_0x56db5c)=>{const _0x2ee5ae=_0x4fd226,_0x2d1ff3={'m1Prime':_0x2161ff,'m2Prime':_0x56db5c};if(_0x2161ff[_0x2ee5ae(0x235)]['unitId']!==_0x56db5c[_0x2ee5ae(0x235)][_0x2ee5ae(0x3cc)]||_0x56db5c[_0x2ee5ae(0x235)]['subUnitId']!==_0x2161ff[_0x2ee5ae(0x235)][_0x2ee5ae(0x303)])return _0x2d1ff3;const _0x499326=transformUpdateDataValidationWithRefRange(_0x56db5c,{'id':_univerjs_sheets[_0x2ee5ae(0x382)]['id'],'params':{'fromRange':_0x2161ff[_0x2ee5ae(0x235)][_0x2ee5ae(0x200)],'toRange':_0x2161ff['params'][_0x2ee5ae(0x26c)]}});return{'m1Prime':[_0x2161ff,..._0x499326],'m2Prime':[_0x56db5c,..._0x499326]};}},removeColWithAddComment={'m1':_univerjs_sheets['RemoveColMutation']['id'],'m2':_univerjs_thread_comment[_0x4fd226(0x2de)]['id'],'handler':(_0x4ff65b,_0x5bc0fa)=>{const _0x3635f0=_0x4fd226,_0x42e781={'m1Prime':_0x4ff65b,'m2Prime':_0x5bc0fa};if(_0x4ff65b['params'][_0x3635f0(0x3cc)]!==_0x5bc0fa['params'][_0x3635f0(0x3cc)]||_0x4ff65b[_0x3635f0(0x235)][_0x3635f0(0x303)]!==_0x5bc0fa[_0x3635f0(0x235)][_0x3635f0(0x303)])return _0x42e781;const _0x520e69=transformAddCommentWithRefRange(_0x5bc0fa,{'id':_univerjs_sheets[_0x3635f0(0x215)]['id'],'params':{'unitId':_0x4ff65b['params'][_0x3635f0(0x3cc)],'subUnitId':_0x4ff65b[_0x3635f0(0x235)][_0x3635f0(0x303)],'range':_0x4ff65b[_0x3635f0(0x235)]['range']}});return{'m1Prime':[_0x4ff65b,..._0x520e69],'m2Prime':[_0x5bc0fa,..._0x520e69]};}},removeColMutationWithAddDataValidation={'m1':_univerjs_sheets['RemoveColMutation']['id'],'m2':_univerjs_data_validation[_0x4fd226(0x2b6)]['id'],'handler'(_0x27c55f,_0x5471b6){const _0x55fdb1=_0x4fd226,_0x351bf6={'m1Prime':_0x27c55f,'m2Prime':_0x5471b6};if(_0x27c55f[_0x55fdb1(0x235)][_0x55fdb1(0x3cc)]!==_0x5471b6[_0x55fdb1(0x235)][_0x55fdb1(0x3cc)]||_0x27c55f[_0x55fdb1(0x235)]['subUnitId']!==_0x5471b6['params'][_0x55fdb1(0x303)])return _0x351bf6;const _0x231a29=transformAddDataValidationWithRefRange(_0x5471b6,{'id':_univerjs_sheets[_0x55fdb1(0x215)]['id'],'params':{'range':_0x27c55f[_0x55fdb1(0x235)][_0x55fdb1(0x2d0)]}});return{'m1Prime':[_0x27c55f,..._0x231a29],'m2Prime':[_0x5471b6,..._0x231a29]};}},removeColMutationWithAddMerge={'m1':_univerjs_sheets[_0x4fd226(0x228)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x340)]['id'],'handler'(_0x112a5e,_0x279d41){const _0x793f7a=_0x4fd226,_0x720445=addWorksheetMergeMutationWithRemoveColMutation[_0x793f7a(0x2ef)](_0x279d41,_0x112a5e);if(isTransformMutationSuccess(_0x720445))return{'m1Prime':_0x720445[_0x793f7a(0x3d9)],'m2Prime':_0x720445[_0x793f7a(0x253)]};else return _0x720445;}},removeColMutationWithMoveCol={'m1':_univerjs_sheets[_0x4fd226(0x228)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x2b3)]['id'],'handler'(_0x2c4e2c,_0x11e45e){const _0x7d74fc=_0x4fd226,_0x4262ba={'m1Prime':_0x2c4e2c,'m2Prime':_0x11e45e};if(_0x2c4e2c[_0x7d74fc(0x235)][_0x7d74fc(0x3cc)]!==_0x11e45e[_0x7d74fc(0x235)]['unitId']||_0x2c4e2c[_0x7d74fc(0x235)][_0x7d74fc(0x303)]!==_0x11e45e[_0x7d74fc(0x235)][_0x7d74fc(0x303)])return _0x4262ba;const _0x30ac7b=_univerjs_core[_0x7d74fc(0x1d5)][_0x7d74fc(0x28e)](_0x2c4e2c),_0x4c7e1c=_univerjs_core['Tools'][_0x7d74fc(0x28e)](_0x11e45e);if(_0x2c4e2c[_0x7d74fc(0x235)][_0x7d74fc(0x2d0)][_0x7d74fc(0x28f)]<=_0x11e45e[_0x7d74fc(0x235)][_0x7d74fc(0x200)][_0x7d74fc(0x337)]&&_0x2c4e2c[_0x7d74fc(0x235)]['range'][_0x7d74fc(0x337)]>=_0x11e45e[_0x7d74fc(0x235)][_0x7d74fc(0x200)][_0x7d74fc(0x28f)]||_0x2c4e2c[_0x7d74fc(0x235)][_0x7d74fc(0x2d0)][_0x7d74fc(0x28f)]<=_0x11e45e[_0x7d74fc(0x235)][_0x7d74fc(0x26c)][_0x7d74fc(0x337)]&&_0x2c4e2c['params'][_0x7d74fc(0x2d0)][_0x7d74fc(0x337)]>=_0x11e45e['params'][_0x7d74fc(0x26c)]['startColumn'])return{'error':new Error('remove\x20col\x20is\x20conflict\x20with\x20move\x20col')};const _0x4ef8bd=(0x0,_univerjs_sheets[_0x7d74fc(0x3c9)])(toColumn(_0x2c4e2c[_0x7d74fc(0x235)][_0x7d74fc(0x2d0)]),toColumn(_0x11e45e[_0x7d74fc(0x235)][_0x7d74fc(0x200)])),_0x6a7a13=(0x0,_univerjs_sheets[_0x7d74fc(0x3c9)])(toColumn(_0x2c4e2c['params']['range']),toColumn(_0x11e45e[_0x7d74fc(0x235)][_0x7d74fc(0x26c)]));if(_0x4ef8bd&&_0x6a7a13)_0x4c7e1c['params']['sourceRange'][_0x7d74fc(0x28f)]+=_0x4ef8bd[_0x7d74fc(0x1e7)],_0x4c7e1c[_0x7d74fc(0x235)]['sourceRange'][_0x7d74fc(0x337)]+=_0x4ef8bd[_0x7d74fc(0x1e7)]+(_0x4ef8bd[_0x7d74fc(0x367)]||0x0),_0x4c7e1c['params']['targetRange'][_0x7d74fc(0x28f)]+=_0x6a7a13['step'],_0x4c7e1c[_0x7d74fc(0x235)]['targetRange']['endColumn']+=_0x6a7a13['step']+(_0x6a7a13[_0x7d74fc(0x367)]||0x0);else _0x4c7e1c['id']=_univerjs_sheets['EmptyMutation']['id'];const _0x2daf20=(0x0,_univerjs_sheets[_0x7d74fc(0x302)])({'start':_0x11e45e[_0x7d74fc(0x235)][_0x7d74fc(0x200)][_0x7d74fc(0x28f)],'end':_0x11e45e[_0x7d74fc(0x235)][_0x7d74fc(0x200)]['endColumn']},{'start':_0x11e45e[_0x7d74fc(0x235)][_0x7d74fc(0x26c)]['startColumn'],'end':_0x11e45e[_0x7d74fc(0x235)][_0x7d74fc(0x26c)][_0x7d74fc(0x337)]},{'start':_0x2c4e2c[_0x7d74fc(0x235)][_0x7d74fc(0x2d0)]['startColumn'],'end':_0x2c4e2c[_0x7d74fc(0x235)][_0x7d74fc(0x2d0)][_0x7d74fc(0x337)]});if(_0x2daf20){const {step:_0x42cfde,length:_0x5ef526}=_0x2daf20;_0x30ac7b[_0x7d74fc(0x235)]['range'][_0x7d74fc(0x28f)]+=_0x42cfde,_0x30ac7b[_0x7d74fc(0x235)][_0x7d74fc(0x2d0)][_0x7d74fc(0x337)]+=_0x42cfde+(_0x5ef526||0x0);}else _0x30ac7b[_0x7d74fc(0x235)][_0x7d74fc(0x2d0)][_0x7d74fc(0x28f)]=0x0,_0x30ac7b[_0x7d74fc(0x235)][_0x7d74fc(0x2d0)]['endColumn']=-0x1;return{'m1Prime':_0x30ac7b,'m2Prime':_0x4c7e1c};}},removeColMutationWithMoveRange={'m1':_univerjs_sheets[_0x4fd226(0x228)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x35a)]['id'],'handler'(_0x28799f,_0x592657){const _0x20e812=_0x4fd226,_0x51fce9={'m1Prime':_0x28799f,'m2Prime':_0x592657};if(_0x28799f[_0x20e812(0x235)]['unitId']!==_0x592657[_0x20e812(0x235)]['unitId']||_0x28799f[_0x20e812(0x235)][_0x20e812(0x303)]!==_0x592657[_0x20e812(0x235)][_0x20e812(0x270)][_0x20e812(0x303)]&&_0x28799f[_0x20e812(0x235)]['subUnitId']!==_0x592657[_0x20e812(0x235)]['to'][_0x20e812(0x303)])return _0x51fce9;const _0xa26f72=_univerjs_core[_0x20e812(0x1d5)][_0x20e812(0x28e)](_0x28799f),_0xe34ab9=_univerjs_core[_0x20e812(0x1d5)][_0x20e812(0x28e)](_0x592657),{startColumn:_0x3fd9b4,endColumn:_0x31fd46}=_0x28799f[_0x20e812(0x235)][_0x20e812(0x2d0)];if(_0x28799f[_0x20e812(0x235)][_0x20e812(0x303)]===_0x592657[_0x20e812(0x235)][_0x20e812(0x270)][_0x20e812(0x303)]){const _0x38f6e3=new _univerjs_core[(_0x20e812(0x2ed))](_0xe34ab9[_0x20e812(0x235)][_0x20e812(0x270)][_0x20e812(0x355)]),{startColumn:_0x35409e,endColumn:_0x2fc3bc}=_0x38f6e3[_0x20e812(0x277)]();if(_0x35409e<=_0x31fd46&&_0x2fc3bc>=_0x3fd9b4)return{'error':new Error(_0x20e812(0x2c0))};if(_0x31fd46<_0x35409e)_0x38f6e3['removeColumns'](_0x3fd9b4,_0x31fd46-_0x3fd9b4+0x1);_0xe34ab9['params'][_0x20e812(0x270)][_0x20e812(0x355)]=_0x38f6e3['getMatrix']();}if(_0x28799f[_0x20e812(0x235)][_0x20e812(0x303)]===_0x592657['params']['to'][_0x20e812(0x303)]){const _0x44e96b=new _univerjs_core['ObjectMatrix'](_0xe34ab9[_0x20e812(0x235)]['to'][_0x20e812(0x355)]),{startColumn:_0x26944a,endColumn:_0x706984}=_0x44e96b['getDataRange']();if(_0x26944a<=_0x31fd46&&_0x706984>=_0x3fd9b4)return{'error':new Error('Remove-cols\x20has\x20conflicts\x20with\x20move-range')};if(_0x31fd46<_0x26944a)_0x44e96b[_0x20e812(0x34a)](_0x3fd9b4,_0x31fd46-_0x3fd9b4+0x1);_0xe34ab9['params']['to'][_0x20e812(0x355)]=_0x44e96b[_0x20e812(0x414)]();}return{'m1Prime':_0xa26f72,'m2Prime':_0xe34ab9};}},removeColMutationWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x228)]['id'],'m2':_univerjs_sheets['RemoveColMutation']['id'],'handler'(_0x26f993,_0x1db72d){const _0x49486b=_0x4fd226,_0x32ef79={'m1Prime':_0x26f993,'m2Prime':_0x1db72d};if(_0x26f993[_0x49486b(0x235)][_0x49486b(0x3cc)]!==_0x1db72d[_0x49486b(0x235)][_0x49486b(0x3cc)]||_0x26f993[_0x49486b(0x235)][_0x49486b(0x303)]!==_0x1db72d[_0x49486b(0x235)]['subUnitId'])return _0x32ef79;const _0x356efb=_univerjs_core['Tools'][_0x49486b(0x28e)](_0x26f993),_0x20680b=_univerjs_core['Tools']['deepClone'](_0x1db72d),_0x52bd09=(0x0,_univerjs_sheets[_0x49486b(0x3c9)])(_0x26f993[_0x49486b(0x235)][_0x49486b(0x2d0)],_0x1db72d[_0x49486b(0x235)][_0x49486b(0x2d0)]);if(_0x52bd09){const {step:_0x2f802f,length:_0x2f8d8e}=_0x52bd09;_0x20680b[_0x49486b(0x235)][_0x49486b(0x2d0)][_0x49486b(0x28f)]+=_0x2f802f,_0x20680b['params'][_0x49486b(0x2d0)]['endColumn']+=_0x2f802f+(_0x2f8d8e||0x0);}else _0x20680b['id']=_univerjs_sheets['EmptyMutation']['id'];const _0x2ab034=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(_0x1db72d[_0x49486b(0x235)][_0x49486b(0x2d0)],_0x26f993['params']['range']);if(_0x2ab034){const {step:_0x1a3f7a,length:_0x21d2bd}=_0x2ab034;_0x356efb[_0x49486b(0x235)][_0x49486b(0x2d0)]['startColumn']+=_0x1a3f7a,_0x356efb[_0x49486b(0x235)][_0x49486b(0x2d0)][_0x49486b(0x337)]+=_0x1a3f7a+(_0x21d2bd||0x0);}else _0x356efb['id']=_univerjs_sheets[_0x49486b(0x2fc)]['id'];return{'m1Prime':_0x356efb,'m2Prime':_0x20680b};}},removeColMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x228)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x20e)]['id'],'handler'(_0x1cb198,_0x400e7e){const _0x5e38c3=_0x4fd226,_0x5ee58d={'m1Prime':_0x1cb198,'m2Prime':_0x400e7e};if(_0x1cb198['params'][_0x5e38c3(0x3cc)]!==_0x400e7e[_0x5e38c3(0x235)][_0x5e38c3(0x3cc)]||_0x1cb198[_0x5e38c3(0x235)][_0x5e38c3(0x303)]!==_0x400e7e[_0x5e38c3(0x235)]['subUnitId'])return _0x5ee58d;const _0x212426=_univerjs_core[_0x5e38c3(0x1d5)]['deepClone'](_0x1cb198),_0x4839b8=_univerjs_core[_0x5e38c3(0x1d5)][_0x5e38c3(0x28e)](_0x400e7e),{ranges:_0x174502}=_0x4839b8[_0x5e38c3(0x235)];if(_0x174502[_0x5e38c3(0x1c0)](_0x3a56a7=>{const _0x40ffab=_0x5e38c3,_0x58bdd0=(0x0,_univerjs_sheets[_0x40ffab(0x3c9)])(toColumn(_0x1cb198[_0x40ffab(0x235)]['range']),toColumn(_0x3a56a7));if(_0x58bdd0===null||_0x58bdd0[_0x40ffab(0x367)]!==0x0)return!![];return _0x3a56a7[_0x40ffab(0x28f)]+=_0x58bdd0[_0x40ffab(0x1e7)],_0x3a56a7[_0x40ffab(0x337)]+=_0x58bdd0['step'],![];}))return{'error':new Error(_0x5e38c3(0x396))};return{'m1Prime':_0x212426,'m2Prime':_0x4839b8};}},removeColMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0x4fd226(0x228)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3ff)]['id'],'handler'(_0x119a20,_0x5a6eaa){const _0x18ded8=_0x4fd226,_0x528090=_univerjs_core[_0x18ded8(0x1d5)]['deepClone'](_0x119a20),_0x119f35=_univerjs_core['Tools'][_0x18ded8(0x28e)](_0x5a6eaa);if(_0x119a20[_0x18ded8(0x235)][_0x18ded8(0x3cc)]!==_0x5a6eaa[_0x18ded8(0x235)][_0x18ded8(0x3cc)]||_0x119a20[_0x18ded8(0x235)][_0x18ded8(0x303)]!==_0x5a6eaa[_0x18ded8(0x235)][_0x18ded8(0x303)])return{'m1Prime':_0x528090,'m2Prime':_0x119f35};const _0x4ad9ff=_0x119f35['params'][_0x18ded8(0x3e4)][_0x18ded8(0x37b)]((_0x57e0df,_0x717cc9)=>{const _0x57fbe8=_0x18ded8,_0x1060fb=_0x528090[_0x57fbe8(0x235)][_0x57fbe8(0x2d0)],_0x1541dd=_0x1060fb[_0x57fbe8(0x337)]-_0x1060fb[_0x57fbe8(0x28f)]+0x1;let _0x59f4ee={..._0x717cc9};if(_0x1060fb['startColumn']>_0x717cc9[_0x57fbe8(0x337)])_0x59f4ee={..._0x717cc9};else{if(_0x1060fb[_0x57fbe8(0x28f)]>=_0x717cc9['startColumn']&&_0x1060fb[_0x57fbe8(0x28f)]<=_0x717cc9[_0x57fbe8(0x337)]&&_0x1060fb['endColumn']>_0x717cc9[_0x57fbe8(0x337)]){_0x59f4ee['endColumn']=_0x1060fb[_0x57fbe8(0x28f)]-0x1;if(_0x1060fb[_0x57fbe8(0x28f)]===_0x717cc9[_0x57fbe8(0x28f)])_0x59f4ee=null;}else{if(_0x1060fb[_0x57fbe8(0x28f)]>_0x717cc9[_0x57fbe8(0x28f)]&&_0x1060fb[_0x57fbe8(0x337)]<_0x717cc9[_0x57fbe8(0x337)])_0x59f4ee[_0x57fbe8(0x337)]=_0x717cc9[_0x57fbe8(0x337)]-_0x1541dd;else{if(_0x1060fb[_0x57fbe8(0x28f)]<_0x717cc9[_0x57fbe8(0x28f)]&&_0x1060fb['endColumn']>=_0x717cc9[_0x57fbe8(0x28f)]&&_0x1060fb['endColumn']<=_0x717cc9['endColumn']){_0x59f4ee['startColumn']=_0x1060fb[_0x57fbe8(0x28f)],_0x59f4ee[_0x57fbe8(0x337)]=_0x717cc9[_0x57fbe8(0x337)]-_0x1541dd;if(_0x1060fb[_0x57fbe8(0x337)]===_0x717cc9[_0x57fbe8(0x337)])_0x59f4ee=null;}else{if(_0x1060fb[_0x57fbe8(0x28f)]<=_0x717cc9['startColumn']&&_0x1060fb['endColumn']>=_0x717cc9[_0x57fbe8(0x337)])_0x59f4ee=null;else _0x1060fb[_0x57fbe8(0x337)]<_0x717cc9[_0x57fbe8(0x28f)]&&(_0x59f4ee['startColumn']=_0x717cc9[_0x57fbe8(0x28f)]-_0x1541dd,_0x59f4ee[_0x57fbe8(0x337)]=_0x717cc9['endColumn']-_0x1541dd);}}}}if(_0x59f4ee&&!(_0x59f4ee['startRow']===_0x59f4ee[_0x57fbe8(0x3e2)]&&_0x59f4ee['startColumn']===_0x59f4ee['endColumn']))return _0x57e0df['push'](_0x59f4ee),_0x57e0df;else return _0x57e0df;},[]);return _0x119f35[_0x18ded8(0x235)]['ranges']=_0x4ad9ff,{'m1Prime':_0x528090,'m2Prime':_0x119f35};}},removeColMutationWithReorderRange={'m1':_univerjs_sheets[_0x4fd226(0x228)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x201)]['id'],'handler'(_0x454516,_0x5657e4){const _0x2d74ff=_0x4fd226,_0x2533c9={'m1Prime':_0x454516,'m2Prime':_0x5657e4};if(_0x454516[_0x2d74ff(0x235)]['unitId']!==_0x5657e4['params'][_0x2d74ff(0x3cc)]||_0x454516[_0x2d74ff(0x235)]['subUnitId']!==_0x5657e4[_0x2d74ff(0x235)][_0x2d74ff(0x303)])return _0x2533c9;const _0x45d5b8=(0x0,_univerjs_sheets[_0x2d74ff(0x3c9)])(toColumn(_0x454516[_0x2d74ff(0x235)][_0x2d74ff(0x2d0)]),toColumn(_0x5657e4[_0x2d74ff(0x235)][_0x2d74ff(0x2d0)]));if(!_0x45d5b8)return{'m1Prime':_0x454516,'m2Prime':[]};const _0x1d43dd=_univerjs_core['Tools'][_0x2d74ff(0x28e)](_0x5657e4);return _0x1d43dd[_0x2d74ff(0x235)][_0x2d74ff(0x2d0)]['startColumn']+=_0x45d5b8['step'],_0x1d43dd[_0x2d74ff(0x235)]['range'][_0x2d74ff(0x337)]+=_0x45d5b8[_0x2d74ff(0x1e7)]+(_0x45d5b8[_0x2d74ff(0x367)]||0x0),{'m1Prime':_0x454516,'m2Prime':_0x1d43dd};}},removeColMutationWithSetColData={'m1':_univerjs_sheets[_0x4fd226(0x228)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x1bd)]['id'],'handler'(_0x2caf86,_0x3365e4){const _0x5f0784=_0x4fd226,_0x1a22a0={'m1Prime':_0x2caf86,'m2Prime':_0x3365e4};if(_0x2caf86[_0x5f0784(0x235)]['unitId']!==_0x3365e4[_0x5f0784(0x235)]['unitId']||_0x2caf86[_0x5f0784(0x235)][_0x5f0784(0x303)]!==_0x3365e4['params'][_0x5f0784(0x303)])return _0x1a22a0;const _0x2d310b=_univerjs_core[_0x5f0784(0x1d5)][_0x5f0784(0x28e)](_0x2caf86),_0x18a760=_univerjs_core[_0x5f0784(0x1d5)]['deepClone'](_0x3365e4),{columnData:_0x11cf2d}=_0x18a760[_0x5f0784(0x235)];return(0x0,_univerjs_core['spliceArray'])(_0x2caf86[_0x5f0784(0x235)]['range'][_0x5f0784(0x28f)],_0x2caf86[_0x5f0784(0x235)]['range'][_0x5f0784(0x337)]-_0x2caf86['params']['range'][_0x5f0784(0x28f)]+0x1,_0x11cf2d),{'m1Prime':_0x2d310b,'m2Prime':_0x18a760};}},removeColMutationWithSetColHidden={'m1':_univerjs_sheets[_0x4fd226(0x228)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x390)]['id'],'handler'(_0x1d0dfb,_0x53f689){const _0x379ca4=_0x4fd226,_0x1f0240={'m1Prime':_0x1d0dfb,'m2Prime':_0x53f689};if(_0x1d0dfb[_0x379ca4(0x235)]['unitId']!==_0x53f689['params'][_0x379ca4(0x3cc)]||_0x1d0dfb['params']['subUnitId']!==_0x53f689[_0x379ca4(0x235)][_0x379ca4(0x303)])return _0x1f0240;const _0x41e402=_univerjs_core[_0x379ca4(0x1d5)][_0x379ca4(0x28e)](_0x1d0dfb),_0x624f28=_univerjs_core[_0x379ca4(0x1d5)][_0x379ca4(0x28e)](_0x53f689),{ranges:_0x5d9e66}=_0x624f28[_0x379ca4(0x235)];return _0x5d9e66['forEach'](_0x57fd81=>{const _0x269ca0=_0x379ca4,_0x568166=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn(_0x1d0dfb[_0x269ca0(0x235)][_0x269ca0(0x2d0)]),_0x57fd81);if(_0x568166==null)_0x624f28['id']=_univerjs_sheets[_0x269ca0(0x2fc)]['id'];else _0x57fd81[_0x269ca0(0x28f)]+=_0x568166['step'],_0x57fd81[_0x269ca0(0x337)]+=_0x568166['step']+_0x568166[_0x269ca0(0x367)];}),{'m1Prime':_0x41e402,'m2Prime':_0x624f28};}},removeColMutationWithSetColVisible={'m1':_univerjs_sheets[_0x4fd226(0x228)]['id'],'m2':_univerjs_sheets['SetColVisibleMutation']['id'],'handler'(_0x5b2126,_0x259d1b){const _0x28ab37=_0x4fd226,_0x4efd4c={'m1Prime':_0x5b2126,'m2Prime':_0x259d1b};if(_0x5b2126['params']['unitId']!==_0x259d1b['params'][_0x28ab37(0x3cc)]||_0x5b2126[_0x28ab37(0x235)][_0x28ab37(0x303)]!==_0x259d1b[_0x28ab37(0x235)][_0x28ab37(0x303)])return _0x4efd4c;const _0x44294a=_univerjs_core['Tools']['deepClone'](_0x5b2126),_0x3893da=_univerjs_core['Tools'][_0x28ab37(0x28e)](_0x259d1b),{ranges:_0x5899b3}=_0x3893da[_0x28ab37(0x235)];return _0x5899b3['forEach'](_0x9874bf=>{const _0xf4bbba=_0x28ab37,_0x39e912=(0x0,_univerjs_sheets[_0xf4bbba(0x3c9)])(toColumn(_0x5b2126[_0xf4bbba(0x235)][_0xf4bbba(0x2d0)]),_0x9874bf);if(_0x39e912==null)_0x3893da['id']=_univerjs_sheets[_0xf4bbba(0x2fc)]['id'];else _0x9874bf[_0xf4bbba(0x28f)]+=_0x39e912['step'],_0x9874bf[_0xf4bbba(0x337)]+=_0x39e912[_0xf4bbba(0x1e7)]+_0x39e912[_0xf4bbba(0x367)];}),{'m1Prime':_0x44294a,'m2Prime':_0x3893da};}},removeColMutationWithSetNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x228)]['id'],'m2':_univerjs_sheets['SetNumfmtMutation']['id'],'handler'(_0x1ddcf2,_0x1f4c8c){const _0x3324b4=_0x4fd226,_0x278f8a={'m1Prime':_0x1ddcf2,'m2Prime':_0x1f4c8c};if(_0x1ddcf2[_0x3324b4(0x235)][_0x3324b4(0x3cc)]!==_0x1f4c8c[_0x3324b4(0x235)][_0x3324b4(0x3cc)]||_0x1ddcf2['params'][_0x3324b4(0x303)]!==_0x1f4c8c[_0x3324b4(0x235)][_0x3324b4(0x303)])return _0x278f8a;const _0x326cd7=[_univerjs_core[_0x3324b4(0x1d5)][_0x3324b4(0x28e)](_0x1ddcf2)],_0x3b7248=_univerjs_core[_0x3324b4(0x1d5)][_0x3324b4(0x28e)](_0x1f4c8c),{values:_0x340e90}=_0x3b7248['params'],_0x4f0791=[];let _0x30f66f=![];for(const _0x2e869b in _0x340e90){const _0x1c81f0=_0x340e90[_0x2e869b];_0x4f0791[_0x3324b4(0x285)](..._0x1c81f0['ranges']);if(_0x1c81f0['ranges'][_0x3324b4(0x1c0)](_0x1b7143=>{const _0x154b24=_0x3324b4,_0x1d699a=(0x0,_univerjs_sheets[_0x154b24(0x3c9)])(toColumn(_0x1ddcf2['params']['range']),toColumn(_0x1b7143));if(_0x1d699a==null||_0x1d699a[_0x154b24(0x367)]!==0x0)return!![];if(_0x1d699a['step']!==0x0)_0x30f66f=!![];return _0x1b7143[_0x154b24(0x28f)]+=_0x1d699a[_0x154b24(0x1e7)],_0x1b7143[_0x154b24(0x337)]+=_0x1d699a['step'],![];}))return{'error':new Error('remove\x20col\x20is\x20conflict\x20with\x20set\x20numfmt')};}if(_0x30f66f){const _0x2455ef={'id':_univerjs_sheets[_0x3324b4(0x20e)]['id'],'params':{'unitId':_0x1f4c8c[_0x3324b4(0x235)]['unitId'],'subUnitId':_0x1f4c8c[_0x3324b4(0x235)][_0x3324b4(0x303)],'ranges':_0x4f0791}};_0x326cd7[_0x3324b4(0x285)](_0x2455ef,_0x3b7248);}return{'m1Prime':_0x326cd7,'m2Prime':_0x3b7248};}},removeColMutationWithSetRangeValues={'m1':_univerjs_sheets['RemoveColMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x35c)]['id'],'handler'(_0x568a3a,_0x1a8af5){const _0x4fa9ba=_0x4fd226,_0x189e10={'m1Prime':_0x568a3a,'m2Prime':_0x1a8af5};if(_0x568a3a[_0x4fa9ba(0x235)][_0x4fa9ba(0x3cc)]!==_0x1a8af5[_0x4fa9ba(0x235)][_0x4fa9ba(0x3cc)]||_0x568a3a['params'][_0x4fa9ba(0x303)]!==_0x1a8af5[_0x4fa9ba(0x235)]['subUnitId'])return _0x189e10;const _0x33e577=[_univerjs_core['Tools'][_0x4fa9ba(0x28e)](_0x568a3a)],_0x314671=_univerjs_core['Tools']['deepClone'](_0x1a8af5),_0x276733=new _univerjs_core[(_0x4fa9ba(0x2ed))](_0x314671['params']['cellValue']),_0x5d620f=_0x276733[_0x4fa9ba(0x277)](),_0x451c63=_0x568a3a[_0x4fa9ba(0x235)][_0x4fa9ba(0x2d0)],_0x4ebcc1=_0x451c63['endColumn']-_0x451c63[_0x4fa9ba(0x28f)]+0x1;if(_0x314671[_0x4fa9ba(0x235)][_0x4fa9ba(0x2f8)]&&_0x451c63[_0x4fa9ba(0x337)]<_0x5d620f[_0x4fa9ba(0x28f)])moveColumns(_0x314671[_0x4fa9ba(0x235)]['cellValue'],_0x5d620f[_0x4fa9ba(0x28f)],_0x5d620f['endColumn']-_0x5d620f[_0x4fa9ba(0x28f)]+0x1,-_0x4ebcc1);else{if(_0x451c63[_0x4fa9ba(0x28f)]<=_0x5d620f[_0x4fa9ba(0x337)])return{'error':new Error('remove\x20cols\x20is\x20conflict\x20with\x20set\x20range\x20values\x20mutation')};}const _0x4ee465=new _univerjs_core[(_0x4fa9ba(0x2ed))]();let _0x5aa396=![],_0x3774a0=![];_0x276733[_0x4fa9ba(0x398)]((_0x2b0e98,_0x581ed2,_0x3d8d25)=>{const _0x250bbf=_0x4fa9ba;if(_0x3d8d25&&_0x3d8d25['f']){const _0x396ed2=_0x3d8d25['f'];let _0x2ef990=![];const _0x814cfc=processFormulaString(_0x568a3a[_0x250bbf(0x235)][_0x250bbf(0x3cc)],_0x568a3a[_0x250bbf(0x235)][_0x250bbf(0x303)],_0x396ed2,_0x10e1c2=>{const _0x1d704f=_0x250bbf,_0x1eb55d=(0x0,_univerjs_sheets[_0x1d704f(0x3c9)])(toColumn(_0x568a3a['params'][_0x1d704f(0x2d0)]),toColumn(_0x10e1c2));if(_0x1eb55d===null)return _0x5aa396=!![],_0x10e1c2;return(_0x1eb55d[_0x1d704f(0x1e7)]!==0x0||_0x1eb55d[_0x1d704f(0x367)]!==0x0)&&(_0x2ef990=!![],_0x10e1c2[_0x1d704f(0x28f)]+=_0x1eb55d[_0x1d704f(0x1e7)],_0x10e1c2[_0x1d704f(0x337)]+=_0x1eb55d['step']+_0x1eb55d[_0x1d704f(0x367)]),_0x10e1c2;});_0x2ef990&&(_0x3774a0=!![],_0x3d8d25['f']=_0x814cfc,_0x4ee465[_0x250bbf(0x408)](_0x2b0e98,_0x581ed2,{..._0x3d8d25}));}});if(_0x5aa396)return{'error':new Error(_0x4fa9ba(0x1f9))};if(_0x3774a0){const _0x3209b4={'id':_univerjs_sheets['SetRangeValuesMutation']['id'],'params':{'unitId':_0x1a8af5[_0x4fa9ba(0x235)][_0x4fa9ba(0x3cc)],'subUnitId':_0x1a8af5[_0x4fa9ba(0x235)][_0x4fa9ba(0x303)],'cellValue':_0x4ee465['getMatrix']()}};_0x33e577[_0x4fa9ba(0x285)](_0x3209b4);}return{'m1Prime':_0x33e577,'m2Prime':_0x314671};}},removeColMutationWithSetSelection={'m1':_univerjs_sheets[_0x4fd226(0x228)]['id'],'m2':_univerjs_sheets['SetSelectionsOperation']['id'],'handler'(_0x54bdd2,_0x51b89d){const _0x847f95=_0x4fd226,_0x3a43ab={'m1Prime':[],'m2Prime':[]};if(_0x54bdd2[_0x847f95(0x235)]['unitId']!==_0x51b89d['params'][_0x847f95(0x3cc)]||_0x54bdd2[_0x847f95(0x235)][_0x847f95(0x303)]!==_0x51b89d[_0x847f95(0x235)][_0x847f95(0x303)])return _0x3a43ab;const _0x1aec4c=_univerjs_core[_0x847f95(0x1d5)][_0x847f95(0x28e)](_0x51b89d);let _0x584f2c=![];_0x1aec4c[_0x847f95(0x235)]['selections'][_0x847f95(0x222)](_0x207c24=>{const _0x234b18=_0x847f95,{range:_0x5e1b2d,primary:_0x38c63b}=_0x207c24,_0x376970=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn(_0x54bdd2[_0x234b18(0x235)]['range']),toColumn(_0x5e1b2d));if(_0x376970==null)return;if(_0x376970[_0x234b18(0x367)]||_0x376970['step']){_0x5e1b2d[_0x234b18(0x28f)]+=_0x376970[_0x234b18(0x1e7)],_0x5e1b2d[_0x234b18(0x337)]+=_0x376970[_0x234b18(0x1e7)]+(_0x376970[_0x234b18(0x367)]||0x0);if(_0x38c63b){const _0x664f3d=(0x0,_univerjs_sheets[_0x234b18(0x3c9)])(toColumn(_0x54bdd2['params'][_0x234b18(0x2d0)]),toColumn(_0x38c63b));if(_0x664f3d==null){_0x38c63b[_0x234b18(0x28f)]=_0x5e1b2d[_0x234b18(0x28f)],_0x38c63b['endColumn']=_0x5e1b2d[_0x234b18(0x28f)],_0x38c63b[_0x234b18(0x360)]=_0x5e1b2d[_0x234b18(0x28f)];return;}(_0x664f3d[_0x234b18(0x367)]||_0x664f3d[_0x234b18(0x1e7)])&&(_0x38c63b[_0x234b18(0x28f)]+=_0x664f3d['step'],_0x38c63b['endColumn']+=_0x664f3d[_0x234b18(0x1e7)],_0x38c63b[_0x234b18(0x360)]+=_0x664f3d[_0x234b18(0x1e7)]);}_0x584f2c=!![];}});if(_0x584f2c)_0x3a43ab[_0x847f95(0x3d9)][_0x847f95(0x285)](_0x1aec4c);return _0x3a43ab;}},removeColMutationWithSetSheetsFilterCriteria={'m1':_univerjs_sheets[_0x4fd226(0x228)]['id'],'m2':_univerjs_sheets_filter['SetSheetsFilterCriteriaMutation']['id'],'handler'(_0x39974c,_0x369ace){const _0x47d1e4=_0x4fd226,_0x6213f5={'m1Prime':_0x39974c,'m2Prime':_0x369ace};if(_0x39974c[_0x47d1e4(0x235)][_0x47d1e4(0x3cc)]!==_0x369ace[_0x47d1e4(0x235)][_0x47d1e4(0x3cc)]||_0x39974c['params'][_0x47d1e4(0x303)]!==_0x369ace[_0x47d1e4(0x235)][_0x47d1e4(0x303)])return _0x6213f5;const _0x4aa1fa=_univerjs_core[_0x47d1e4(0x1d5)][_0x47d1e4(0x28e)](_0x39974c),_0x18f65e=_univerjs_core[_0x47d1e4(0x1d5)][_0x47d1e4(0x28e)](_0x369ace),_0x1723e6=handleRemove({'start':_0x39974c[_0x47d1e4(0x235)]['range']['startColumn'],'end':_0x39974c['params'][_0x47d1e4(0x2d0)][_0x47d1e4(0x337)]},{'start':_0x369ace['params'][_0x47d1e4(0x3ed)],'end':_0x369ace[_0x47d1e4(0x235)][_0x47d1e4(0x3ed)]}),_0x5639c9=_univerjs_core[_0x47d1e4(0x1d5)][_0x47d1e4(0x28e)](_0x369ace);_0x5639c9['params'][_0x47d1e4(0x2c8)]=null;if(_0x1723e6===null)return{'m1Prime':[_0x4aa1fa,_0x5639c9],'m2Prime':[]};if(_0x18f65e['params']['col']===_0x1723e6['start'])return _0x6213f5;_0x18f65e[_0x47d1e4(0x235)]['col']=_0x1723e6[_0x47d1e4(0x24d)];if(_0x18f65e['params'][_0x47d1e4(0x2c8)])_0x18f65e[_0x47d1e4(0x235)][_0x47d1e4(0x2c8)]['colId']=_0x1723e6[_0x47d1e4(0x24d)];return{'m1Prime':[_0x5639c9,_0x18f65e,_0x4aa1fa],'m2Prime':[_0x18f65e]};}},removeColMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets['RemoveColMutation']['id'],'m2':_univerjs_sheets_filter[_0x4fd226(0x22f)]['id'],'handler'(_0xe1d2a9,_0x3ca172){const _0x4ffb28=_0x4fd226,_0xcf13a9={'m1Prime':[_0xe1d2a9],'m2Prime':[_0x3ca172]};if(_0xe1d2a9[_0x4ffb28(0x235)]['unitId']!==_0x3ca172[_0x4ffb28(0x235)][_0x4ffb28(0x3cc)]||_0xe1d2a9[_0x4ffb28(0x235)][_0x4ffb28(0x303)]!==_0x3ca172[_0x4ffb28(0x235)][_0x4ffb28(0x303)])return _0xcf13a9;const _0x3e7b01=_univerjs_core[_0x4ffb28(0x1d5)][_0x4ffb28(0x28e)](_0xe1d2a9),_0x1cdf43=_univerjs_core[_0x4ffb28(0x1d5)][_0x4ffb28(0x28e)](_0x3ca172),_0x344d99=handleRemove({'start':_0xe1d2a9['params'][_0x4ffb28(0x2d0)][_0x4ffb28(0x28f)],'end':_0xe1d2a9[_0x4ffb28(0x235)][_0x4ffb28(0x2d0)][_0x4ffb28(0x337)]},{'start':_0x3ca172[_0x4ffb28(0x235)][_0x4ffb28(0x2d0)][_0x4ffb28(0x28f)],'end':_0x3ca172[_0x4ffb28(0x235)][_0x4ffb28(0x2d0)][_0x4ffb28(0x337)]});if(_0x344d99===null)return{'m1Prime':[_0x3e7b01,{'id':_univerjs_sheets_filter['RemoveSheetsFilterMutation']['id'],'params':{'unitId':_0x3ca172[_0x4ffb28(0x235)][_0x4ffb28(0x3cc)],'subUnitId':_0x3ca172[_0x4ffb28(0x235)][_0x4ffb28(0x3cc)]}}],'m2Prime':[]};return _0x1cdf43[_0x4ffb28(0x235)][_0x4ffb28(0x2d0)]['startColumn']=_0x344d99[_0x4ffb28(0x24d)],_0x1cdf43[_0x4ffb28(0x235)][_0x4ffb28(0x2d0)][_0x4ffb28(0x337)]=_0x344d99['end'],{'m1Prime':[_0x1cdf43,_0x3e7b01],'m2Prime':[_0x1cdf43]};}},removeColMutationWithSetWorksheetColWidth={'m1':_univerjs_sheets[_0x4fd226(0x228)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x24c)]['id'],'handler'(_0x4cd5b0,_0x408b83){const _0x1b1408=_0x4fd226,_0x2306d8={'m1Prime':_0x4cd5b0,'m2Prime':_0x408b83};if(_0x4cd5b0[_0x1b1408(0x235)][_0x1b1408(0x3cc)]!==_0x408b83[_0x1b1408(0x235)]['unitId']||_0x4cd5b0['params'][_0x1b1408(0x303)]!==_0x408b83[_0x1b1408(0x235)][_0x1b1408(0x303)])return _0x2306d8;const _0xee587e=_univerjs_core[_0x1b1408(0x1d5)][_0x1b1408(0x28e)](_0x4cd5b0),_0x12f349=_univerjs_core['Tools'][_0x1b1408(0x28e)](_0x408b83),{ranges:_0x464d76,colWidth:_0x1e6353}=_0x12f349['params'];_0x464d76['forEach'](_0x73d1a2=>{const _0x2fbf98=_0x1b1408,_0x3d8849=(0x0,_univerjs_sheets[_0x2fbf98(0x3c9)])(toColumn(_0x4cd5b0[_0x2fbf98(0x235)][_0x2fbf98(0x2d0)]),_0x73d1a2);if(_0x3d8849==null)_0x12f349['id']=_univerjs_sheets[_0x2fbf98(0x2fc)]['id'];else _0x73d1a2[_0x2fbf98(0x28f)]+=_0x3d8849[_0x2fbf98(0x1e7)],_0x73d1a2[_0x2fbf98(0x337)]+=_0x3d8849[_0x2fbf98(0x1e7)]+_0x3d8849[_0x2fbf98(0x367)];});if(typeof _0x1e6353!==_0x1b1408(0x2af))(0x0,_univerjs_core[_0x1b1408(0x39e)])(_0x4cd5b0['params']['range']['startColumn'],_0x4cd5b0['params'][_0x1b1408(0x2d0)]['endColumn']-_0x4cd5b0[_0x1b1408(0x235)][_0x1b1408(0x2d0)][_0x1b1408(0x28f)]+0x1,_0x1e6353);return{'m1Prime':_0xee587e,'m2Prime':_0x12f349};}},removeColWithUpdateCommentRef={'m1':_univerjs_sheets['RemoveColMutation']['id'],'m2':_univerjs_thread_comment[_0x4fd226(0x27b)]['id'],'handler':(_0x551dbf,_0x44b45a)=>{const _0x3e24f7=_0x4fd226,_0x2d06df={'m1Prime':_0x551dbf,'m2Prime':_0x44b45a};if(_0x551dbf[_0x3e24f7(0x235)][_0x3e24f7(0x3cc)]!==_0x44b45a[_0x3e24f7(0x235)][_0x3e24f7(0x3cc)]||_0x551dbf[_0x3e24f7(0x235)][_0x3e24f7(0x303)]!==_0x44b45a[_0x3e24f7(0x235)][_0x3e24f7(0x303)])return _0x2d06df;const _0x41b69c=transformUpdateCommentRefWithRefRange(_0x44b45a,{'id':_univerjs_sheets[_0x3e24f7(0x215)]['id'],'params':{'unitId':_0x551dbf[_0x3e24f7(0x235)][_0x3e24f7(0x3cc)],'subUnitId':_0x551dbf[_0x3e24f7(0x235)][_0x3e24f7(0x303)],'range':_0x551dbf[_0x3e24f7(0x235)][_0x3e24f7(0x2d0)]}});return{'m1Prime':[_0x551dbf,..._0x41b69c],'m2Prime':[_0x44b45a,..._0x41b69c]};}},removeColMutationWithUpdateDataValidation={'m1':_univerjs_sheets[_0x4fd226(0x228)]['id'],'m2':_univerjs_data_validation['UpdateDataValidationMutation']['id'],'handler':(_0x2f6bb9,_0x33e33)=>{const _0x3b6967=_0x4fd226,_0x1179c4={'m1Prime':_0x2f6bb9,'m2Prime':_0x33e33};if(_0x2f6bb9['params'][_0x3b6967(0x3cc)]!==_0x33e33['params']['unitId']||_0x33e33['params']['subUnitId']!==_0x2f6bb9[_0x3b6967(0x235)][_0x3b6967(0x303)])return _0x1179c4;const _0x347cd3=transformUpdateDataValidationWithRefRange(_0x33e33,{'id':_univerjs_sheets['RemoveColCommand']['id'],'params':{'range':_0x2f6bb9['params'][_0x3b6967(0x2d0)]}});return{'m1Prime':[_0x2f6bb9,..._0x347cd3],'m2Prime':[_0x33e33,..._0x347cd3]};}},removeDataValidationMutationWithSelf={'m1':_univerjs_data_validation[_0x4fd226(0x2a3)]['id'],'m2':_univerjs_data_validation['RemoveDataValidationMutation']['id'],'handler':(_0x3335df,_0x2ad455)=>{const _0x4430d6=_0x4fd226,_0x77af81={'m1Prime':_0x3335df,'m2Prime':_0x2ad455};if(_0x3335df[_0x4430d6(0x235)]['unitId']===_0x2ad455[_0x4430d6(0x235)][_0x4430d6(0x3cc)]&&_0x3335df[_0x4430d6(0x235)][_0x4430d6(0x303)]===_0x2ad455[_0x4430d6(0x235)][_0x4430d6(0x303)]&&_0x3335df[_0x4430d6(0x235)]['ruleId']===_0x2ad455[_0x4430d6(0x235)]['ruleId'])return{'m1Prime':[],'m2Prime':[]};return _0x77af81;}},removeHyperLinkWithSelf={'m1':_univerjs_sheets_hyper_link[_0x4fd226(0x328)]['id'],'m2':_univerjs_sheets_hyper_link['RemoveHyperLinkMutation']['id'],'handler':(_0x47214a,_0x31de51)=>{const _0x47d52b=_0x4fd226,_0x39067b=_0x47214a[_0x47d52b(0x235)],_0x645faa=_0x31de51['params'];if(_0x39067b[_0x47d52b(0x3cc)]===_0x645faa[_0x47d52b(0x3cc)]&&_0x39067b[_0x47d52b(0x303)]===_0x645faa['subUnitId']&&_0x39067b['id']===_0x645faa['id'])return{'m2Prime':[],'m1Prime':[]};return{'m1Prime':_0x47214a,'m2Prime':_0x31de51};}},removeNumfmtMutationWithSelf={'m1':_univerjs_sheets['RemoveNumfmtMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x20e)]['id'],'handler'(_0x5f0cc1,_0x3eae39){const _0x9f03db=_0x4fd226;if(_0x5f0cc1[_0x9f03db(0x235)]['unitId']!==_0x3eae39[_0x9f03db(0x235)][_0x9f03db(0x3cc)]||_0x5f0cc1[_0x9f03db(0x235)][_0x9f03db(0x303)]!==_0x3eae39['params'][_0x9f03db(0x303)])return{'m1Prime':_0x5f0cc1,'m2Prime':_0x3eae39};const _0x2dc253=_univerjs_core['Tools'][_0x9f03db(0x28e)](_0x5f0cc1),_0x51871f=_univerjs_core[_0x9f03db(0x1d5)][_0x9f03db(0x28e)](_0x3eae39),_0x24fead=[],_0xd131ca=_0x51871f[_0x9f03db(0x235)][_0x9f03db(0x3e4)];return _0x2dc253[_0x9f03db(0x235)]['ranges'][_0x9f03db(0x222)](_0x59c16d=>{const _0x4339dd=_0x9f03db,_0x323923=RangeSubtractRanges(_0x59c16d,_0xd131ca);if(_0x323923['length']>0x0)_0x24fead[_0x4339dd(0x285)](..._0x323923);}),_0x2dc253[_0x9f03db(0x235)]['ranges']=_0x24fead,{'m1Prime':_0x5f0cc1,'m2Prime':_0x3eae39};}},removeNumfmtMutationWithSetNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x20e)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3f8)]['id'],'handler'(_0x3deb9e,_0x4ca4fa){const _0xe1d841=_0x4fd226;if(_0x3deb9e[_0xe1d841(0x235)][_0xe1d841(0x3cc)]!==_0x4ca4fa[_0xe1d841(0x235)]['unitId']||_0x3deb9e[_0xe1d841(0x235)][_0xe1d841(0x303)]!==_0x4ca4fa['params']['subUnitId'])return{'m1Prime':_0x3deb9e,'m2Prime':_0x4ca4fa};const _0x414dab=_univerjs_core['Tools'][_0xe1d841(0x28e)](_0x3deb9e),_0x1de04f=_univerjs_core[_0xe1d841(0x1d5)][_0xe1d841(0x28e)](_0x4ca4fa),_0x3cc634=[],_0x502754=Object['values'](_0x1de04f[_0xe1d841(0x235)][_0xe1d841(0x3f2)])[_0xe1d841(0x208)](_0x313814=>_0x313814['ranges'])[_0xe1d841(0x2e8)]();return _0x414dab[_0xe1d841(0x235)]['ranges']['forEach'](_0x4835da=>{const _0xe1deb9=_0xe1d841,_0x182332=RangeSubtractRanges(_0x4835da,_0x502754);if(_0x182332[_0xe1deb9(0x367)]>0x0)_0x3cc634['push'](..._0x182332);}),_0x414dab[_0xe1d841(0x235)][_0xe1d841(0x3e4)]=_0x3cc634,{'m1Prime':_0x414dab,'m2Prime':_0x1de04f};}},removeRowWithAddComment={'m1':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'m2':_univerjs_thread_comment[_0x4fd226(0x2de)]['id'],'handler':(_0x140098,_0x227ded)=>{const _0x2bf942=_0x4fd226,_0x5375ed={'m1Prime':_0x140098,'m2Prime':_0x227ded};if(_0x140098['params'][_0x2bf942(0x3cc)]!==_0x227ded[_0x2bf942(0x235)][_0x2bf942(0x3cc)]||_0x140098[_0x2bf942(0x235)][_0x2bf942(0x303)]!==_0x227ded[_0x2bf942(0x235)][_0x2bf942(0x303)])return _0x5375ed;const _0x4edcdb=transformAddCommentWithRefRange(_0x227ded,{'id':_univerjs_sheets['RemoveRowCommand']['id'],'params':{'unitId':_0x140098[_0x2bf942(0x235)]['unitId'],'subUnitId':_0x140098[_0x2bf942(0x235)]['subUnitId'],'range':_0x140098[_0x2bf942(0x235)][_0x2bf942(0x2d0)]}});return{'m1Prime':[_0x140098,..._0x4edcdb],'m2Prime':[_0x227ded,..._0x4edcdb]};}},removeRowMutationWithAddDataValidation={'m1':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'m2':_univerjs_data_validation[_0x4fd226(0x2b6)]['id'],'handler'(_0x1f2fcd,_0x13a545){const _0x4b459f=_0x4fd226,_0x2aa901={'m1Prime':_0x1f2fcd,'m2Prime':_0x13a545};if(_0x1f2fcd[_0x4b459f(0x235)][_0x4b459f(0x3cc)]!==_0x13a545['params']['unitId']||_0x1f2fcd[_0x4b459f(0x235)][_0x4b459f(0x303)]!==_0x13a545['params'][_0x4b459f(0x303)])return _0x2aa901;const _0x383cf1=transformAddDataValidationWithRefRange(_0x13a545,{'id':_univerjs_sheets[_0x4b459f(0x3aa)]['id'],'params':{'range':_0x1f2fcd['params'][_0x4b459f(0x2d0)]}});return{'m1Prime':[_0x1f2fcd,..._0x383cf1],'m2Prime':[_0x13a545,..._0x383cf1]};}},removeRowMutationWithAddMerge={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x340)]['id'],'handler'(_0xc5dc40,_0x1bb751){const _0x2dd55c=_0x4fd226,_0x4c44b2=addWorksheetMergeMutationWithRemoveRowMutation[_0x2dd55c(0x2ef)](_0x1bb751,_0xc5dc40);if(isTransformMutationSuccess(_0x4c44b2))return{'m1Prime':_0x4c44b2[_0x2dd55c(0x3d9)],'m2Prime':_0x4c44b2[_0x2dd55c(0x253)]};else return _0x4c44b2;}},removeRowMutationWithMoveRange={'m1':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x35a)]['id'],'handler'(_0x1f680a,_0x3cf0ec){const _0xc36ca5=_0x4fd226,_0x368036={'m1Prime':_0x1f680a,'m2Prime':_0x3cf0ec};if(_0x1f680a[_0xc36ca5(0x235)][_0xc36ca5(0x3cc)]!==_0x3cf0ec[_0xc36ca5(0x235)][_0xc36ca5(0x3cc)]||_0x1f680a[_0xc36ca5(0x235)][_0xc36ca5(0x303)]!==_0x3cf0ec[_0xc36ca5(0x235)][_0xc36ca5(0x270)]['subUnitId']&&_0x1f680a[_0xc36ca5(0x235)][_0xc36ca5(0x303)]!==_0x3cf0ec[_0xc36ca5(0x235)]['to']['subUnitId'])return _0x368036;const _0x1ad94a=_univerjs_core[_0xc36ca5(0x1d5)][_0xc36ca5(0x28e)](_0x1f680a),_0x5e78ac=_univerjs_core[_0xc36ca5(0x1d5)][_0xc36ca5(0x28e)](_0x3cf0ec),{startRow:_0x145fb8,endRow:_0x45af6e}=_0x1f680a[_0xc36ca5(0x235)]['range'];if(_0x1f680a['params']['subUnitId']===_0x3cf0ec[_0xc36ca5(0x235)][_0xc36ca5(0x270)]['subUnitId']){const _0x2073af=new _univerjs_core['ObjectMatrix'](_0x5e78ac[_0xc36ca5(0x235)][_0xc36ca5(0x270)][_0xc36ca5(0x355)]),{startRow:_0x1badda,endRow:_0x2e9844}=_0x2073af['getDataRange']();if(_0x1badda<=_0x45af6e&&_0x2e9844>=_0x145fb8)return{'error':new Error(_0xc36ca5(0x2c0))};if(_0x45af6e<_0x1badda)_0x2073af['removeRows'](_0x145fb8,_0x45af6e-_0x145fb8+0x1);_0x5e78ac[_0xc36ca5(0x235)][_0xc36ca5(0x270)][_0xc36ca5(0x355)]=_0x2073af[_0xc36ca5(0x414)]();}if(_0x1f680a[_0xc36ca5(0x235)][_0xc36ca5(0x303)]===_0x3cf0ec[_0xc36ca5(0x235)]['to'][_0xc36ca5(0x303)]){const _0x57919a=new _univerjs_core[(_0xc36ca5(0x2ed))](_0x5e78ac[_0xc36ca5(0x235)]['to'][_0xc36ca5(0x355)]),{startRow:_0x98d3b1,endRow:_0x2cddcd}=_0x57919a[_0xc36ca5(0x277)]();if(_0x98d3b1<=_0x45af6e&&_0x2cddcd>=_0x145fb8)return{'error':new Error(_0xc36ca5(0x2c0))};if(_0x45af6e<_0x98d3b1)_0x57919a[_0xc36ca5(0x20a)](_0x145fb8,_0x45af6e-_0x145fb8+0x1);_0x5e78ac[_0xc36ca5(0x235)]['to'][_0xc36ca5(0x355)]=_0x57919a[_0xc36ca5(0x414)]();}return{'m1Prime':_0x1ad94a,'m2Prime':_0x5e78ac};}},removeRowMutationWithMoveRow={'m1':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x229)]['id'],'handler'(_0x484687,_0x4ea5da){const _0x5c0b44=_0x4fd226,_0x2c558e={'m1Prime':_0x484687,'m2Prime':_0x4ea5da};if(_0x484687[_0x5c0b44(0x235)][_0x5c0b44(0x3cc)]!==_0x4ea5da[_0x5c0b44(0x235)][_0x5c0b44(0x3cc)]||_0x484687[_0x5c0b44(0x235)][_0x5c0b44(0x303)]!==_0x4ea5da[_0x5c0b44(0x235)][_0x5c0b44(0x303)])return _0x2c558e;const _0x3dea0f=_univerjs_core[_0x5c0b44(0x1d5)][_0x5c0b44(0x28e)](_0x484687),_0x235d3d=_univerjs_core[_0x5c0b44(0x1d5)][_0x5c0b44(0x28e)](_0x4ea5da);if(_0x484687[_0x5c0b44(0x235)][_0x5c0b44(0x2d0)][_0x5c0b44(0x26f)]<=_0x4ea5da[_0x5c0b44(0x235)]['sourceRange'][_0x5c0b44(0x3e2)]&&_0x484687[_0x5c0b44(0x235)]['range'][_0x5c0b44(0x3e2)]>=_0x4ea5da[_0x5c0b44(0x235)][_0x5c0b44(0x200)]['startRow']||_0x484687['params']['range'][_0x5c0b44(0x26f)]<=_0x4ea5da[_0x5c0b44(0x235)][_0x5c0b44(0x26c)]['endRow']&&_0x484687[_0x5c0b44(0x235)][_0x5c0b44(0x2d0)][_0x5c0b44(0x3e2)]>=_0x4ea5da[_0x5c0b44(0x235)][_0x5c0b44(0x26c)][_0x5c0b44(0x26f)])return{'error':new Error(_0x5c0b44(0x40a))};const _0xb3ce01=(0x0,_univerjs_sheets[_0x5c0b44(0x3c9)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x484687[_0x5c0b44(0x235)][_0x5c0b44(0x2d0)])),toColumn((0x0,_univerjs_sheets[_0x5c0b44(0x3c8)])(_0x4ea5da[_0x5c0b44(0x235)][_0x5c0b44(0x200)]))),_0xa8f434=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets[_0x5c0b44(0x3c8)])(_0x484687[_0x5c0b44(0x235)]['range'])),toColumn((0x0,_univerjs_sheets[_0x5c0b44(0x3c8)])(_0x4ea5da[_0x5c0b44(0x235)][_0x5c0b44(0x26c)])));if(_0xb3ce01&&_0xa8f434)_0x235d3d[_0x5c0b44(0x235)][_0x5c0b44(0x200)][_0x5c0b44(0x26f)]+=_0xb3ce01[_0x5c0b44(0x1e7)],_0x235d3d['params'][_0x5c0b44(0x200)]['endRow']+=_0xb3ce01[_0x5c0b44(0x1e7)]+(_0xb3ce01[_0x5c0b44(0x367)]||0x0),_0x235d3d[_0x5c0b44(0x235)]['targetRange'][_0x5c0b44(0x26f)]+=_0xa8f434[_0x5c0b44(0x1e7)],_0x235d3d[_0x5c0b44(0x235)][_0x5c0b44(0x26c)][_0x5c0b44(0x3e2)]+=_0xa8f434[_0x5c0b44(0x1e7)]+(_0xa8f434[_0x5c0b44(0x367)]||0x0);else _0x235d3d['id']=_univerjs_sheets[_0x5c0b44(0x2fc)]['id'];const _0x7df478=(0x0,_univerjs_sheets[_0x5c0b44(0x302)])({'start':_0x4ea5da[_0x5c0b44(0x235)][_0x5c0b44(0x200)][_0x5c0b44(0x26f)],'end':_0x4ea5da['params'][_0x5c0b44(0x200)][_0x5c0b44(0x3e2)]},{'start':_0x4ea5da[_0x5c0b44(0x235)][_0x5c0b44(0x26c)][_0x5c0b44(0x26f)],'end':_0x4ea5da[_0x5c0b44(0x235)]['targetRange'][_0x5c0b44(0x3e2)]},{'start':_0x484687['params'][_0x5c0b44(0x2d0)]['startRow'],'end':_0x484687[_0x5c0b44(0x235)][_0x5c0b44(0x2d0)][_0x5c0b44(0x3e2)]});if(_0x7df478){const {step:_0xf86d13,length:_0x5e3aa4}=_0x7df478;_0x3dea0f['params'][_0x5c0b44(0x2d0)][_0x5c0b44(0x26f)]+=_0xf86d13,_0x3dea0f[_0x5c0b44(0x235)][_0x5c0b44(0x2d0)]['endRow']+=_0xf86d13+(_0x5e3aa4||0x0);}else _0x3dea0f['id']=_univerjs_sheets[_0x5c0b44(0x2fc)]['id'];return{'m1Prime':_0x3dea0f,'m2Prime':_0x235d3d};}},removeRowMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x20e)]['id'],'handler'(_0x27fc78,_0x5e2a8e){const _0x462333=_0x4fd226,_0x3cc562={'m1Prime':_0x27fc78,'m2Prime':_0x5e2a8e};if(_0x27fc78[_0x462333(0x235)][_0x462333(0x3cc)]!==_0x5e2a8e[_0x462333(0x235)][_0x462333(0x3cc)]||_0x27fc78['params']['subUnitId']!==_0x5e2a8e['params'][_0x462333(0x303)])return _0x3cc562;const _0x545f7a=_univerjs_core[_0x462333(0x1d5)][_0x462333(0x28e)](_0x27fc78),_0x4a77bf=_univerjs_core['Tools'][_0x462333(0x28e)](_0x5e2a8e),{ranges:_0x5d5cbb}=_0x4a77bf[_0x462333(0x235)];if(_0x5d5cbb[_0x462333(0x1c0)](_0x3bd7bb=>{const _0x3a2a6d=_0x462333,_0x2aef52=(0x0,_univerjs_sheets[_0x3a2a6d(0x3c9)])(toColumn((0x0,_univerjs_sheets[_0x3a2a6d(0x3c8)])(_0x27fc78[_0x3a2a6d(0x235)][_0x3a2a6d(0x2d0)])),toColumn((0x0,_univerjs_sheets[_0x3a2a6d(0x3c8)])(_0x3bd7bb)));if(_0x2aef52===null||_0x2aef52['length']!==0x0)return!![];return _0x3bd7bb[_0x3a2a6d(0x26f)]+=_0x2aef52['step'],_0x3bd7bb['endRow']+=_0x2aef52[_0x3a2a6d(0x1e7)],![];}))return{'error':new Error(_0x462333(0x409))};return{'m1Prime':_0x545f7a,'m2Prime':_0x4a77bf};}},removeRowMutationWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'handler'(_0x5d3afe,_0x5f038d){const _0x324417=_0x4fd226,_0x4b6b73={'m1Prime':_0x5d3afe,'m2Prime':_0x5f038d};if(_0x5d3afe[_0x324417(0x235)][_0x324417(0x3cc)]!==_0x5f038d['params'][_0x324417(0x3cc)]||_0x5d3afe[_0x324417(0x235)][_0x324417(0x303)]!==_0x5f038d['params'][_0x324417(0x303)])return _0x4b6b73;const _0x522311=_univerjs_core[_0x324417(0x1d5)][_0x324417(0x28e)](_0x5d3afe),_0xade8ac=_univerjs_core[_0x324417(0x1d5)][_0x324417(0x28e)](_0x5f038d),_0x441384=(0x0,_univerjs_sheets[_0x324417(0x3c9)])(toColumn((0x0,_univerjs_sheets[_0x324417(0x3c8)])(_0x5d3afe[_0x324417(0x235)][_0x324417(0x2d0)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x5f038d[_0x324417(0x235)][_0x324417(0x2d0)])));if(_0x441384){const {step:_0x5f051b,length:_0x4aac38}=_0x441384;_0xade8ac['params'][_0x324417(0x2d0)][_0x324417(0x26f)]+=_0x5f051b,_0xade8ac[_0x324417(0x235)][_0x324417(0x2d0)][_0x324417(0x3e2)]+=_0x5f051b+(_0x4aac38||0x0);}else _0xade8ac['id']=_univerjs_sheets['EmptyMutation']['id'];const _0x556b21=(0x0,_univerjs_sheets[_0x324417(0x3c9)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x5f038d['params']['range'])),toColumn((0x0,_univerjs_sheets[_0x324417(0x3c8)])(_0x5d3afe[_0x324417(0x235)][_0x324417(0x2d0)])));if(_0x556b21){const {step:_0x1d7e38,length:_0x424bfe}=_0x556b21;_0x522311[_0x324417(0x235)][_0x324417(0x2d0)]['startRow']+=_0x1d7e38,_0x522311[_0x324417(0x235)][_0x324417(0x2d0)]['endRow']+=_0x1d7e38+(_0x424bfe||0x0);}else _0x522311['id']=_univerjs_sheets[_0x324417(0x2fc)]['id'];return{'m1Prime':_0x522311,'m2Prime':_0xade8ac};}},removeRowMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3ff)]['id'],'handler'(_0x4a73d1,_0x184252){const _0x5da4d8=_0x4fd226,_0x5f4aa2=_univerjs_core[_0x5da4d8(0x1d5)][_0x5da4d8(0x28e)](_0x4a73d1),_0x43a4b0=_univerjs_core[_0x5da4d8(0x1d5)]['deepClone'](_0x184252);if(_0x4a73d1[_0x5da4d8(0x235)][_0x5da4d8(0x3cc)]!==_0x184252['params'][_0x5da4d8(0x3cc)]||_0x4a73d1['params'][_0x5da4d8(0x303)]!==_0x184252[_0x5da4d8(0x235)][_0x5da4d8(0x303)])return{'m1Prime':_0x5f4aa2,'m2Prime':_0x43a4b0};const _0x49cc2a=_0x43a4b0['params'][_0x5da4d8(0x3e4)][_0x5da4d8(0x37b)]((_0x88c97b,_0x3e055c)=>{const _0x4c6af2=_0x5da4d8,_0x43b360=_0x5f4aa2[_0x4c6af2(0x235)][_0x4c6af2(0x2d0)],_0x4ecc32=_0x43b360[_0x4c6af2(0x3e2)]-_0x43b360[_0x4c6af2(0x26f)]+0x1;let _0x523b48={..._0x3e055c};if(_0x43b360[_0x4c6af2(0x26f)]>_0x3e055c['endRow'])_0x523b48={..._0x3e055c};else{if(_0x43b360['startRow']>=_0x3e055c[_0x4c6af2(0x26f)]&&_0x43b360['startRow']<=_0x3e055c[_0x4c6af2(0x3e2)]&&_0x43b360[_0x4c6af2(0x3e2)]>_0x3e055c['endRow']){_0x523b48[_0x4c6af2(0x3e2)]=_0x43b360['startRow']-0x1;if(_0x43b360[_0x4c6af2(0x26f)]===_0x3e055c[_0x4c6af2(0x26f)])_0x523b48=null;}else{if(_0x43b360[_0x4c6af2(0x26f)]>_0x3e055c[_0x4c6af2(0x26f)]&&_0x43b360['endRow']<_0x3e055c[_0x4c6af2(0x3e2)])_0x523b48['endRow']=_0x3e055c[_0x4c6af2(0x3e2)]-_0x4ecc32;else{if(_0x43b360['startRow']<_0x3e055c[_0x4c6af2(0x26f)]&&_0x43b360['endRow']>=_0x3e055c[_0x4c6af2(0x26f)]&&_0x43b360[_0x4c6af2(0x3e2)]<=_0x3e055c['endRow']){_0x523b48['startRow']=_0x43b360[_0x4c6af2(0x26f)],_0x523b48[_0x4c6af2(0x3e2)]=_0x3e055c['endRow']-_0x4ecc32;if(_0x43b360['endRow']===_0x3e055c[_0x4c6af2(0x3e2)])_0x523b48=null;}else{if(_0x43b360[_0x4c6af2(0x26f)]<=_0x3e055c[_0x4c6af2(0x26f)]&&_0x43b360['endRow']>=_0x3e055c[_0x4c6af2(0x3e2)])_0x523b48=null;else _0x43b360[_0x4c6af2(0x3e2)]<_0x3e055c[_0x4c6af2(0x26f)]&&(_0x523b48[_0x4c6af2(0x26f)]=_0x3e055c[_0x4c6af2(0x26f)]-_0x4ecc32,_0x523b48[_0x4c6af2(0x3e2)]=_0x3e055c[_0x4c6af2(0x3e2)]-_0x4ecc32);}}}}if(_0x523b48&&!(_0x523b48[_0x4c6af2(0x26f)]===_0x523b48[_0x4c6af2(0x3e2)]&&_0x523b48[_0x4c6af2(0x28f)]===_0x523b48[_0x4c6af2(0x337)]))return _0x88c97b[_0x4c6af2(0x285)](_0x523b48),_0x88c97b;else return _0x88c97b;},[]);return _0x43a4b0[_0x5da4d8(0x235)]['ranges']=_0x49cc2a,{'m1Prime':_0x5f4aa2,'m2Prime':_0x43a4b0};}},removeRowMutationWithReorderRange={'m1':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x201)]['id'],'handler'(_0x3f18aa,_0x1394a2){const _0x5290db=_0x4fd226,_0x3750c4={'m1Prime':_0x3f18aa,'m2Prime':_0x1394a2};if(_0x3f18aa[_0x5290db(0x235)][_0x5290db(0x3cc)]!==_0x1394a2[_0x5290db(0x235)][_0x5290db(0x3cc)]||_0x3f18aa[_0x5290db(0x235)][_0x5290db(0x303)]!==_0x1394a2[_0x5290db(0x235)][_0x5290db(0x303)])return _0x3750c4;const _0x5c8ce8=_univerjs_core['Tools'][_0x5290db(0x28e)](_0x1394a2),_0x346b28=_univerjs_core[_0x5290db(0x1d5)]['deepClone'](_0x3f18aa),_0x7ea3c6=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets[_0x5290db(0x3c8)])(_0x3f18aa[_0x5290db(0x235)][_0x5290db(0x2d0)])),toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x1394a2[_0x5290db(0x235)][_0x5290db(0x2d0)])));if(!_0x7ea3c6)return{'m1Prime':_0x3f18aa,'m2Prime':[]};if(_0x7ea3c6[_0x5290db(0x367)]===0x0&&_0x7ea3c6[_0x5290db(0x1e7)]===0x0)return{'m1Prime':_0x3f18aa,'m2Prime':_0x1394a2};const {startRow:_0x3b3853,endRow:_0x200aa7}=_0x3f18aa[_0x5290db(0x235)]['range'];_0x5c8ce8[_0x5290db(0x235)][_0x5290db(0x2d0)][_0x5290db(0x26f)]+=_0x7ea3c6['step'],_0x5c8ce8[_0x5290db(0x235)][_0x5290db(0x2d0)][_0x5290db(0x3e2)]+=_0x7ea3c6[_0x5290db(0x1e7)]+(_0x7ea3c6[_0x5290db(0x367)]||0x0);const _0x34126d=Object['keys'](_0x1394a2['params'][_0x5290db(0x339)])[_0x5290db(0x208)](_0x225202=>orderMap(_0x3b3853,_0x200aa7,Number(_0x225202)))['filter'](_0x2e794b=>_0x2e794b!==null),_0x38e0e2={};for(const _0x41ad53 in _0x1394a2[_0x5290db(0x235)][_0x5290db(0x339)]){let _0x2466f4=_0x1394a2[_0x5290db(0x235)][_0x5290db(0x339)][_0x41ad53];_0x2466f4=orderMap(_0x3b3853,_0x200aa7,_0x2466f4);if(_0x2466f4!==null)_0x38e0e2[_0x34126d[_0x5290db(0x247)]()]=_0x2466f4;}_0x5c8ce8['params'][_0x5290db(0x339)]=_0x38e0e2;const _0x542d29=reorderRemoveRows(_0x1394a2['params'][_0x5290db(0x339)],{'start':_0x3f18aa['params']['range'][_0x5290db(0x26f)],'end':_0x3f18aa[_0x5290db(0x235)][_0x5290db(0x2d0)]['endRow']}),_0x471ddb=[_0x346b28];if(_0x542d29)_0x471ddb[_0x5290db(0x388)]({'id':_univerjs_sheets[_0x5290db(0x201)]['id'],'params':{..._0x3f18aa[_0x5290db(0x235)],'order':_0x542d29[_0x5290db(0x339)],'range':{..._0x1394a2[_0x5290db(0x235)][_0x5290db(0x2d0)],..._0x542d29['range']}}});return{'m1Prime':_0x471ddb,'m2Prime':_0x5c8ce8};}},reorderRemoveRows=(_0x416b51,_0x2e1f28)=>{const _0x4d2c2c=_0x4fd226,_0x20c69f=Object[_0x4d2c2c(0x2fd)](_0x416b51)[_0x4d2c2c(0x208)](Number)[_0x4d2c2c(0x218)]((_0x48e912,_0x3d9c28)=>_0x48e912-_0x3d9c28);if(_0x20c69f[_0x4d2c2c(0x367)]===0x0)return null;const _0xcdfd8e=_0x20c69f[0x0],_0x220aa8=_0x20c69f[_0x20c69f[_0x4d2c2c(0x367)]-0x1];if(_0xcdfd8e>_0x2e1f28[_0x4d2c2c(0x1f8)]||_0x220aa8<_0x2e1f28[_0x4d2c2c(0x24d)])return null;const _0x2888f1=_0x20c69f[_0x4d2c2c(0x2ec)](_0x52f246=>_0x416b51[_0x52f246]>=_0x2e1f28[_0x4d2c2c(0x24d)]&&_0x416b51[_0x52f246]<=_0x2e1f28[_0x4d2c2c(0x1f8)]);if(_0x2888f1[_0x4d2c2c(0x367)]===0x0)return null;const _0x2d11dd=_0x2888f1[_0x4d2c2c(0x208)](_0x100600=>_0x416b51[_0x100600]),_0x3532b4={},_0x2b7bd5=Math[_0x4d2c2c(0x1f2)](_0x2888f1[0x0],_0x2e1f28[_0x4d2c2c(0x24d)]),_0x152049=Math[_0x4d2c2c(0x2aa)](_0x2888f1[_0x2888f1[_0x4d2c2c(0x367)]-0x1],_0x2e1f28[_0x4d2c2c(0x1f8)]),_0x13cfce=Array[_0x4d2c2c(0x270)]({'length':_0x152049-_0x2b7bd5+0x1},(_0x19249b,_0x3d5966)=>_0x3d5966+_0x2b7bd5)[_0x4d2c2c(0x2ec)](_0x222bf2=>!_0x2888f1[_0x4d2c2c(0x2a8)](_0x222bf2));return Array[_0x4d2c2c(0x270)]({'length':_0x152049-_0x2b7bd5+0x1},(_0x4cdf53,_0x504934)=>_0x504934+_0x2b7bd5)[_0x4d2c2c(0x2ec)](_0x5da738=>!_0x2d11dd[_0x4d2c2c(0x2a8)](_0x5da738))[_0x4d2c2c(0x222)]((_0x2234b8,_0x55012a)=>{_0x3532b4[_0x2234b8]=_0x13cfce[_0x55012a];}),_0x2d11dd[_0x4d2c2c(0x222)]((_0x174f2f,_0x4bfebb)=>{_0x3532b4[_0x174f2f]=_0x2888f1[_0x4bfebb];}),{'range':{'startRow':_0x2b7bd5,'endRow':_0x152049},'order':_0x3532b4};},orderMap=(_0x188292,_0x248ef7,_0x5e6ef7)=>{if(_0x5e6ef7>=_0x188292&&_0x5e6ef7<=_0x248ef7)return null;if(_0x5e6ef7>_0x248ef7)return _0x5e6ef7-(_0x248ef7-_0x188292+0x1);return _0x5e6ef7;},removeRowMutationWithSetNumfmt={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets['SetNumfmtMutation']['id'],'handler'(_0x47fa0b,_0x3d5434){const _0x5d8217=_0x4fd226,_0x2ad672={'m1Prime':_0x47fa0b,'m2Prime':_0x3d5434};if(_0x47fa0b[_0x5d8217(0x235)][_0x5d8217(0x3cc)]!==_0x3d5434[_0x5d8217(0x235)][_0x5d8217(0x3cc)]||_0x47fa0b['params'][_0x5d8217(0x303)]!==_0x3d5434[_0x5d8217(0x235)]['subUnitId'])return _0x2ad672;const _0x3804f0=[_univerjs_core[_0x5d8217(0x1d5)][_0x5d8217(0x28e)](_0x47fa0b)],_0x543d07=_univerjs_core[_0x5d8217(0x1d5)][_0x5d8217(0x28e)](_0x3d5434),{values:_0x3717af}=_0x543d07[_0x5d8217(0x235)],_0xe0bb1e=[];let _0x478034=![];for(const _0x9235ec in _0x3717af){const _0x4111eb=_0x3717af[_0x9235ec];_0xe0bb1e[_0x5d8217(0x285)](..._0x4111eb[_0x5d8217(0x3e4)]);if(_0x4111eb['ranges'][_0x5d8217(0x1c0)](_0x3f3142=>{const _0x4f2139=_0x5d8217,_0x104d1f=(0x0,_univerjs_sheets[_0x4f2139(0x3c9)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x47fa0b['params']['range'])),toColumn((0x0,_univerjs_sheets[_0x4f2139(0x3c8)])(_0x3f3142)));if(_0x104d1f==null||_0x104d1f[_0x4f2139(0x367)]!==0x0)return!![];if(_0x104d1f[_0x4f2139(0x1e7)]!==0x0)_0x478034=!![];return _0x3f3142[_0x4f2139(0x26f)]+=_0x104d1f[_0x4f2139(0x1e7)],_0x3f3142[_0x4f2139(0x3e2)]+=_0x104d1f['step'],![];}))return{'error':new Error(_0x5d8217(0x3bb))};}if(_0x478034){const _0x1a24c0={'id':_univerjs_sheets['RemoveNumfmtMutation']['id'],'params':{'unitId':_0x3d5434[_0x5d8217(0x235)]['unitId'],'subUnitId':_0x3d5434[_0x5d8217(0x235)][_0x5d8217(0x303)],'ranges':_0xe0bb1e}};_0x3804f0['push'](_0x1a24c0,_0x543d07);}return{'m1Prime':_0x3804f0,'m2Prime':_0x543d07};}},removeRowMutationWithSetRangeValues={'m1':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x35c)]['id'],'handler'(_0xfbc59a,_0x3b513e){const _0x5e93dd=_0x4fd226,_0x10c410={'m1Prime':_0xfbc59a,'m2Prime':_0x3b513e};if(_0xfbc59a[_0x5e93dd(0x235)]['unitId']!==_0x3b513e[_0x5e93dd(0x235)][_0x5e93dd(0x3cc)]||_0xfbc59a[_0x5e93dd(0x235)][_0x5e93dd(0x303)]!==_0x3b513e[_0x5e93dd(0x235)][_0x5e93dd(0x303)])return _0x10c410;const _0x4e132d=[_univerjs_core[_0x5e93dd(0x1d5)][_0x5e93dd(0x28e)](_0xfbc59a)],_0x56d839=_univerjs_core['Tools'][_0x5e93dd(0x28e)](_0x3b513e),_0x3e5625=new _univerjs_core[(_0x5e93dd(0x2ed))](_0x56d839[_0x5e93dd(0x235)][_0x5e93dd(0x2f8)]),_0x22e713=_0x3e5625[_0x5e93dd(0x277)](),_0x1d7885=_0xfbc59a[_0x5e93dd(0x235)]['range'],_0x436f4e=_0x1d7885['endRow']-_0x1d7885[_0x5e93dd(0x26f)]+0x1;if(_0x56d839[_0x5e93dd(0x235)]['cellValue']&&_0x1d7885[_0x5e93dd(0x3e2)]<_0x22e713[_0x5e93dd(0x26f)])moveRows(_0x56d839[_0x5e93dd(0x235)][_0x5e93dd(0x2f8)],_0x22e713[_0x5e93dd(0x26f)],_0x22e713[_0x5e93dd(0x3e2)]-_0x22e713[_0x5e93dd(0x26f)]+0x1,-_0x436f4e);else{if(_0x1d7885[_0x5e93dd(0x26f)]<=_0x22e713[_0x5e93dd(0x3e2)])return{'error':new Error('remove\x20rows\x20is\x20conflict\x20with\x20set\x20range\x20values\x20mutation')};}const _0xb72724=new _univerjs_core[(_0x5e93dd(0x2ed))]();let _0x547b72=![],_0x125d48=![];_0x3e5625['forValue']((_0x8a6aa8,_0x122ac0,_0x521cc5)=>{const _0x4a25ce=_0x5e93dd;if(_0x521cc5&&_0x521cc5['f']){const _0x3c6f88=_0x521cc5['f'];let _0x197ed6=![];const _0x41c745=processFormulaString(_0xfbc59a['params'][_0x4a25ce(0x3cc)],_0xfbc59a[_0x4a25ce(0x235)]['subUnitId'],_0x3c6f88,_0x227b9c=>{const _0x2a8831=_0x4a25ce,_0x18840b=(0x0,_univerjs_sheets[_0x2a8831(0x3c9)])(toColumn((0x0,_univerjs_sheets[_0x2a8831(0x3c8)])(_0xfbc59a[_0x2a8831(0x235)][_0x2a8831(0x2d0)])),toColumn((0x0,_univerjs_sheets[_0x2a8831(0x3c8)])(_0x227b9c)));if(_0x18840b===null)return _0x547b72=!![],_0x227b9c;return(_0x18840b['step']!==0x0||_0x18840b[_0x2a8831(0x367)]!==0x0)&&(_0x197ed6=!![],_0x227b9c['startRow']+=_0x18840b[_0x2a8831(0x1e7)],_0x227b9c['endRow']+=_0x18840b['step']+_0x18840b[_0x2a8831(0x367)]),_0x227b9c;});_0x197ed6&&(_0x125d48=!![],_0x521cc5['f']=_0x41c745,_0xb72724[_0x4a25ce(0x408)](_0x8a6aa8,_0x122ac0,{..._0x521cc5}));}});if(_0x547b72)return{'error':new Error(_0x5e93dd(0x312))};if(_0x125d48){const _0x1de1c4={'id':_univerjs_sheets[_0x5e93dd(0x35c)]['id'],'params':{'unitId':_0x3b513e[_0x5e93dd(0x235)][_0x5e93dd(0x3cc)],'subUnitId':_0x3b513e[_0x5e93dd(0x235)][_0x5e93dd(0x303)],'cellValue':_0xb72724[_0x5e93dd(0x414)]()}};_0x4e132d[_0x5e93dd(0x285)](_0x1de1c4);}return{'m1Prime':_0x4e132d,'m2Prime':_0x56d839};}},removeRowMutationWithSetRowData={'m1':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'m2':_univerjs_sheets['SetRowDataMutation']['id'],'handler'(_0x410ea1,_0x28eb1f){const _0x2ab11b=_0x4fd226,_0x451ea0={'m1Prime':_0x410ea1,'m2Prime':_0x28eb1f};if(_0x410ea1[_0x2ab11b(0x235)]['unitId']!==_0x28eb1f[_0x2ab11b(0x235)][_0x2ab11b(0x3cc)]||_0x410ea1[_0x2ab11b(0x235)][_0x2ab11b(0x303)]!==_0x28eb1f['params'][_0x2ab11b(0x303)])return _0x451ea0;const _0x3829de=_univerjs_core[_0x2ab11b(0x1d5)][_0x2ab11b(0x28e)](_0x410ea1),_0xe18039=_univerjs_core[_0x2ab11b(0x1d5)][_0x2ab11b(0x28e)](_0x28eb1f),{rowData:_0x3be9d3}=_0xe18039[_0x2ab11b(0x235)];return(0x0,_univerjs_core[_0x2ab11b(0x39e)])(_0x410ea1['params'][_0x2ab11b(0x2d0)][_0x2ab11b(0x26f)],_0x410ea1[_0x2ab11b(0x235)]['range'][_0x2ab11b(0x3e2)]-_0x410ea1['params']['range'][_0x2ab11b(0x26f)]+0x1,_0x3be9d3),{'m1Prime':_0x3829de,'m2Prime':_0xe18039};}},removeRowMutationWithSetRowHidden={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x3e0)]['id'],'handler'(_0x35e08f,_0x7f11de){const _0x10ccb9=_0x4fd226,_0x1ff041={'m1Prime':_0x35e08f,'m2Prime':_0x7f11de};if(_0x35e08f[_0x10ccb9(0x235)][_0x10ccb9(0x3cc)]!==_0x7f11de['params'][_0x10ccb9(0x3cc)]||_0x35e08f['params']['subUnitId']!==_0x7f11de[_0x10ccb9(0x235)][_0x10ccb9(0x303)])return _0x1ff041;const _0x47671b=_univerjs_core[_0x10ccb9(0x1d5)]['deepClone'](_0x35e08f),_0x21e450=_univerjs_core[_0x10ccb9(0x1d5)][_0x10ccb9(0x28e)](_0x7f11de),{ranges:_0x2eb141}=_0x21e450[_0x10ccb9(0x235)];return _0x2eb141['forEach'](_0x20fed7=>{const _0x2ae2c6=_0x10ccb9,_0x5b1a11=(0x0,_univerjs_sheets[_0x2ae2c6(0x3c9)])(toColumn((0x0,_univerjs_sheets[_0x2ae2c6(0x3c8)])(_0x35e08f['params'][_0x2ae2c6(0x2d0)])),toColumn((0x0,_univerjs_sheets[_0x2ae2c6(0x3c8)])(_0x20fed7)));if(_0x5b1a11==null)_0x21e450['id']=_univerjs_sheets['EmptyMutation']['id'];else _0x20fed7['startRow']+=_0x5b1a11[_0x2ae2c6(0x1e7)],_0x20fed7[_0x2ae2c6(0x3e2)]+=_0x5b1a11['step']+_0x5b1a11[_0x2ae2c6(0x367)];}),{'m1Prime':_0x47671b,'m2Prime':_0x21e450};}},removeRowMutationWithSetRowVisible={'m1':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'m2':_univerjs_sheets['SetRowVisibleMutation']['id'],'handler'(_0x28f184,_0x507545){const _0x1900e8=_0x4fd226,_0x3ada73={'m1Prime':_0x28f184,'m2Prime':_0x507545};if(_0x28f184[_0x1900e8(0x235)][_0x1900e8(0x3cc)]!==_0x507545[_0x1900e8(0x235)][_0x1900e8(0x3cc)]||_0x28f184[_0x1900e8(0x235)][_0x1900e8(0x303)]!==_0x507545['params']['subUnitId'])return _0x3ada73;const _0x296b94=_univerjs_core[_0x1900e8(0x1d5)][_0x1900e8(0x28e)](_0x28f184),_0x55dabb=_univerjs_core['Tools']['deepClone'](_0x507545),{ranges:_0x361e30}=_0x55dabb[_0x1900e8(0x235)];return _0x361e30['forEach'](_0x16fc5c=>{const _0x54b2f2=_0x1900e8,_0x5a05a8=(0x0,_univerjs_sheets[_0x54b2f2(0x3c9)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x28f184[_0x54b2f2(0x235)]['range'])),toColumn((0x0,_univerjs_sheets[_0x54b2f2(0x3c8)])(_0x16fc5c)));if(_0x5a05a8==null)_0x55dabb['id']=_univerjs_sheets[_0x54b2f2(0x2fc)]['id'];else _0x16fc5c[_0x54b2f2(0x26f)]+=_0x5a05a8[_0x54b2f2(0x1e7)],_0x16fc5c['endRow']+=_0x5a05a8[_0x54b2f2(0x1e7)]+_0x5a05a8['length'];}),{'m1Prime':_0x296b94,'m2Prime':_0x55dabb};}},removeRowMutationWithSetSelection={'m1':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x2dd)]['id'],'handler'(_0x3929d0,_0x551358){const _0x20ba5b=_0x4fd226,_0x358d4d={'m1Prime':[],'m2Prime':[]};if(_0x3929d0['params']['unitId']!==_0x551358[_0x20ba5b(0x235)][_0x20ba5b(0x3cc)]||_0x3929d0[_0x20ba5b(0x235)]['subUnitId']!==_0x551358[_0x20ba5b(0x235)]['subUnitId'])return _0x358d4d;const _0x1565e8=_univerjs_core[_0x20ba5b(0x1d5)][_0x20ba5b(0x28e)](_0x551358);let _0x6025f3=![];_0x1565e8[_0x20ba5b(0x235)][_0x20ba5b(0x399)][_0x20ba5b(0x222)](_0x1a5a89=>{const _0x5bc66e=_0x20ba5b,{range:_0x4deba7,primary:_0x437879}=_0x1a5a89,_0x14a563=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x3929d0['params'][_0x5bc66e(0x2d0)])),toColumn((0x0,_univerjs_sheets[_0x5bc66e(0x3c8)])(_0x4deba7)));if(_0x14a563==null)return;if(_0x14a563[_0x5bc66e(0x367)]||_0x14a563['step']){_0x4deba7[_0x5bc66e(0x26f)]+=_0x14a563['step'],_0x4deba7['endRow']+=_0x14a563[_0x5bc66e(0x1e7)]+(_0x14a563[_0x5bc66e(0x367)]||0x0);if(_0x437879){const _0x349ac0=(0x0,_univerjs_sheets['handleBaseRemoveRange'])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x3929d0[_0x5bc66e(0x235)]['range'])),toColumn((0x0,_univerjs_sheets[_0x5bc66e(0x3c8)])(_0x437879)));if(_0x349ac0==null){_0x437879['startRow']=_0x4deba7['startRow'],_0x437879[_0x5bc66e(0x3e2)]=_0x4deba7[_0x5bc66e(0x26f)],_0x437879[_0x5bc66e(0x402)]=_0x4deba7[_0x5bc66e(0x26f)];return;}(_0x349ac0['length']||_0x349ac0[_0x5bc66e(0x1e7)])&&(_0x437879[_0x5bc66e(0x26f)]+=_0x349ac0[_0x5bc66e(0x1e7)],_0x437879[_0x5bc66e(0x3e2)]+=_0x349ac0[_0x5bc66e(0x1e7)],_0x437879[_0x5bc66e(0x402)]+=_0x349ac0[_0x5bc66e(0x1e7)]);}_0x6025f3=!![];}});if(_0x6025f3)_0x358d4d[_0x20ba5b(0x3d9)][_0x20ba5b(0x285)](_0x1565e8);return _0x358d4d;}},removeRowMutationWithSetSheetsFilterRange={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_sheets_filter[_0x4fd226(0x22f)]['id'],'handler'(_0x51a105,_0xacbd96){const _0x3ce369=_0x4fd226,_0x490ae5={'m1Prime':[_0x51a105],'m2Prime':[_0xacbd96]};if(_0x51a105['params'][_0x3ce369(0x3cc)]!==_0xacbd96[_0x3ce369(0x235)][_0x3ce369(0x3cc)]||_0x51a105[_0x3ce369(0x235)][_0x3ce369(0x303)]!==_0xacbd96[_0x3ce369(0x235)]['subUnitId'])return _0x490ae5;const _0x33692b=_univerjs_core[_0x3ce369(0x1d5)]['deepClone'](_0x51a105),_0x33b8bb=_univerjs_core[_0x3ce369(0x1d5)][_0x3ce369(0x28e)](_0xacbd96),_0x25bde7=handleRemove({'start':_0x51a105[_0x3ce369(0x235)]['range'][_0x3ce369(0x26f)],'end':_0x51a105[_0x3ce369(0x235)][_0x3ce369(0x2d0)][_0x3ce369(0x3e2)]},{'start':_0xacbd96[_0x3ce369(0x235)][_0x3ce369(0x2d0)][_0x3ce369(0x26f)],'end':_0xacbd96[_0x3ce369(0x235)][_0x3ce369(0x2d0)]['endRow']});if(_0x25bde7===null)return{'m1Prime':[_0x33692b,{'id':_univerjs_sheets_filter[_0x3ce369(0x290)]['id'],'params':{'unitId':_0xacbd96[_0x3ce369(0x235)][_0x3ce369(0x3cc)],'subUnitId':_0xacbd96[_0x3ce369(0x235)]['unitId']}}],'m2Prime':[]};return _0x33b8bb[_0x3ce369(0x235)][_0x3ce369(0x2d0)]['startRow']=_0x25bde7[_0x3ce369(0x24d)],_0x33b8bb[_0x3ce369(0x235)]['range']['endRow']=_0x25bde7[_0x3ce369(0x1f8)],{'m1Prime':[_0x33b8bb,_0x33692b],'m2Prime':[_0x33b8bb]};}},removeRowMutationWithSetWorksheetRowAutoHeight={'m1':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x2cc)]['id'],'handler'(_0x37694c,_0x26ecf7){const _0x18adf5=_0x4fd226,_0x3b5210={'m1Prime':_0x37694c,'m2Prime':_0x26ecf7};if(_0x37694c[_0x18adf5(0x235)][_0x18adf5(0x3cc)]!==_0x26ecf7[_0x18adf5(0x235)][_0x18adf5(0x3cc)]||_0x37694c[_0x18adf5(0x235)]['subUnitId']!==_0x26ecf7['params'][_0x18adf5(0x303)])return _0x3b5210;const _0x49309c=_univerjs_core[_0x18adf5(0x1d5)][_0x18adf5(0x28e)](_0x37694c),_0x17ed4e=_univerjs_core[_0x18adf5(0x1d5)][_0x18adf5(0x28e)](_0x26ecf7),{rowsAutoHeightInfo:_0x764846}=_0x17ed4e[_0x18adf5(0x235)];for(let _0x2e4c56=_0x764846['length']-0x1;_0x2e4c56>=0x0;_0x2e4c56--){const _0x5181b3=_0x764846[_0x2e4c56],_0x2ce0e7={'startRow':_0x5181b3[_0x18adf5(0x1c4)],'endRow':_0x5181b3['row'],'startColumn':0x0,'endColumn':0x0},_0x3f6510=(0x0,_univerjs_sheets[_0x18adf5(0x3c9)])(toColumn((0x0,_univerjs_sheets[_0x18adf5(0x3c8)])(_0x37694c[_0x18adf5(0x235)]['range'])),(0x0,_univerjs_sheets[_0x18adf5(0x3c8)])(_0x2ce0e7));if(_0x3f6510==null)_0x764846[_0x18adf5(0x2a1)](_0x2e4c56,0x1);else _0x5181b3[_0x18adf5(0x1c4)]+=_0x3f6510[_0x18adf5(0x1e7)];}return{'m1Prime':_0x49309c,'m2Prime':_0x17ed4e};}},removeRowMutationWithSetWorksheetRowHeight={'m1':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x1bb)]['id'],'handler'(_0x402e45,_0x45c606){const _0x3c3a5d=_0x4fd226,_0x1283ea={'m1Prime':_0x402e45,'m2Prime':_0x45c606};if(_0x402e45[_0x3c3a5d(0x235)]['unitId']!==_0x45c606[_0x3c3a5d(0x235)][_0x3c3a5d(0x3cc)]||_0x402e45[_0x3c3a5d(0x235)][_0x3c3a5d(0x303)]!==_0x45c606[_0x3c3a5d(0x235)][_0x3c3a5d(0x303)])return _0x1283ea;const _0x34dab5=_univerjs_core[_0x3c3a5d(0x1d5)]['deepClone'](_0x402e45),_0x4688dc=_univerjs_core[_0x3c3a5d(0x1d5)][_0x3c3a5d(0x28e)](_0x45c606),{ranges:_0x3d9b07,rowHeight:_0x513a96}=_0x4688dc[_0x3c3a5d(0x235)];_0x3d9b07[_0x3c3a5d(0x222)](_0x522cfd=>{const _0xafb154=_0x3c3a5d,_0x166197=(0x0,_univerjs_sheets[_0xafb154(0x3c9)])(toColumn((0x0,_univerjs_sheets[_0xafb154(0x3c8)])(_0x402e45[_0xafb154(0x235)]['range'])),(0x0,_univerjs_sheets[_0xafb154(0x3c8)])(_0x522cfd));if(_0x166197==null)_0x4688dc['id']=_univerjs_sheets['EmptyMutation']['id'];else _0x522cfd[_0xafb154(0x26f)]+=_0x166197['step'],_0x522cfd['endRow']+=_0x166197[_0xafb154(0x1e7)]+_0x166197[_0xafb154(0x367)];});if(typeof _0x513a96!=='number')(0x0,_univerjs_core[_0x3c3a5d(0x39e)])(_0x402e45['params'][_0x3c3a5d(0x2d0)]['startRow'],_0x402e45[_0x3c3a5d(0x235)][_0x3c3a5d(0x2d0)][_0x3c3a5d(0x3e2)]-_0x402e45[_0x3c3a5d(0x235)][_0x3c3a5d(0x2d0)][_0x3c3a5d(0x26f)]+0x1,_0x513a96);return{'m1Prime':_0x34dab5,'m2Prime':_0x4688dc};}},removeRowMutationWithSetWorksheetRowIsAutoHeight={'m1':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3b2)]['id'],'handler'(_0x36785a,_0x2f21f7){const _0x334525=_0x4fd226,_0x427fb8={'m1Prime':_0x36785a,'m2Prime':_0x2f21f7};if(_0x36785a[_0x334525(0x235)][_0x334525(0x3cc)]!==_0x2f21f7[_0x334525(0x235)][_0x334525(0x3cc)]||_0x36785a['params'][_0x334525(0x303)]!==_0x2f21f7[_0x334525(0x235)][_0x334525(0x303)])return _0x427fb8;const _0x4cb70b=_univerjs_core[_0x334525(0x1d5)]['deepClone'](_0x36785a),_0x1858d5=_univerjs_core[_0x334525(0x1d5)][_0x334525(0x28e)](_0x2f21f7),{ranges:_0x12c495,autoHeightInfo:_0x31a0da}=_0x1858d5[_0x334525(0x235)];_0x12c495[_0x334525(0x222)](_0x90239f=>{const _0x35fb79=_0x334525,_0x3e52e7=(0x0,_univerjs_sheets[_0x35fb79(0x3c9)])(toColumn((0x0,_univerjs_sheets['rotateRange'])(_0x36785a['params']['range'])),(0x0,_univerjs_sheets['rotateRange'])(_0x90239f));if(_0x3e52e7==null)_0x1858d5['id']=_univerjs_sheets[_0x35fb79(0x2fc)]['id'];else _0x90239f[_0x35fb79(0x26f)]+=_0x3e52e7[_0x35fb79(0x1e7)],_0x90239f[_0x35fb79(0x3e2)]+=_0x3e52e7['step']+_0x3e52e7[_0x35fb79(0x367)];});if(typeof _0x31a0da!=='number')(0x0,_univerjs_core[_0x334525(0x39e)])(_0x36785a['params'][_0x334525(0x2d0)]['startRow'],_0x36785a[_0x334525(0x235)][_0x334525(0x2d0)][_0x334525(0x3e2)]-_0x36785a['params']['range']['startRow']+0x1,_0x31a0da);return{'m1Prime':_0x4cb70b,'m2Prime':_0x1858d5};}},removeRowWithUpdateCommentRef={'m1':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'m2':_univerjs_thread_comment[_0x4fd226(0x27b)]['id'],'handler':(_0x4d7588,_0x156ee1)=>{const _0x4a0098=_0x4fd226,_0x1f7d07={'m1Prime':_0x4d7588,'m2Prime':_0x156ee1};if(_0x4d7588[_0x4a0098(0x235)]['unitId']!==_0x156ee1[_0x4a0098(0x235)][_0x4a0098(0x3cc)]||_0x4d7588['params']['subUnitId']!==_0x156ee1[_0x4a0098(0x235)]['subUnitId'])return _0x1f7d07;const _0x14e81a=transformUpdateCommentRefWithRefRange(_0x156ee1,{'id':_univerjs_sheets['RemoveRowCommand']['id'],'params':{'unitId':_0x4d7588[_0x4a0098(0x235)][_0x4a0098(0x3cc)],'subUnitId':_0x4d7588[_0x4a0098(0x235)][_0x4a0098(0x303)],'range':_0x4d7588[_0x4a0098(0x235)]['range']}});return{'m1Prime':[_0x4d7588,..._0x14e81a],'m2Prime':[_0x156ee1,..._0x14e81a]};}},removeRowMutationWithUpdateDataValidation={'m1':_univerjs_sheets['RemoveRowMutation']['id'],'m2':_univerjs_data_validation[_0x4fd226(0x1d4)]['id'],'handler':(_0x1126be,_0x4b0db3)=>{const _0x45faf2=_0x4fd226,_0x553826={'m1Prime':_0x1126be,'m2Prime':_0x4b0db3};if(_0x1126be[_0x45faf2(0x235)][_0x45faf2(0x3cc)]!==_0x4b0db3[_0x45faf2(0x235)][_0x45faf2(0x3cc)]||_0x4b0db3['params']['subUnitId']!==_0x1126be['params'][_0x45faf2(0x303)])return _0x553826;const _0x3759b9=transformUpdateDataValidationWithRefRange(_0x4b0db3,{'id':_univerjs_sheets[_0x45faf2(0x3aa)]['id'],'params':{'range':_0x1126be[_0x45faf2(0x235)][_0x45faf2(0x2d0)]}});return{'m1Prime':[_0x1126be,..._0x3759b9],'m2Prime':[_0x4b0db3,..._0x3759b9]};}},removeWorksheetMergeMutationWithAddMerge={'m1':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x340)]['id'],'handler'(_0x21470c,_0x3ab76e){const _0x4fd8ca=_0x4fd226,_0x1ac8a1=_univerjs_core[_0x4fd8ca(0x1d5)][_0x4fd8ca(0x28e)](_0x21470c),_0x129ece=_univerjs_core['Tools'][_0x4fd8ca(0x28e)](_0x3ab76e);if(_0x21470c[_0x4fd8ca(0x235)][_0x4fd8ca(0x3cc)]!==_0x3ab76e['params'][_0x4fd8ca(0x3cc)]||_0x21470c[_0x4fd8ca(0x235)]['subUnitId']!==_0x3ab76e['params']['subUnitId'])return{'m1Prime':_0x1ac8a1,'m2Prime':_0x129ece};for(let _0x55b78a=0x0;_0x55b78a<_0x1ac8a1['params'][_0x4fd8ca(0x3e4)][_0x4fd8ca(0x367)];_0x55b78a++){let _0x42f94f=![];for(let _0x279648=0x0;_0x279648<_0x129ece['params'][_0x4fd8ca(0x3e4)][_0x4fd8ca(0x367)];_0x279648++){const _0x2a4b04=_0x1ac8a1[_0x4fd8ca(0x235)][_0x4fd8ca(0x3e4)][_0x55b78a],_0x1e4899=_0x129ece[_0x4fd8ca(0x235)][_0x4fd8ca(0x3e4)][_0x279648];if(_univerjs_core[_0x4fd8ca(0x394)][_0x4fd8ca(0x2da)](_0x2a4b04,_0x1e4899)){_0x42f94f=!![];break;}}_0x42f94f&&(_0x1ac8a1[_0x4fd8ca(0x235)]['ranges']['splice'](_0x55b78a,0x1),_0x55b78a--);}if(_0x1ac8a1[_0x4fd8ca(0x235)][_0x4fd8ca(0x3e4)][_0x4fd8ca(0x367)]===0x0)_0x1ac8a1['id']=_univerjs_sheets[_0x4fd8ca(0x2fc)]['id'];return{'m1Prime':_0x1ac8a1,'m2Prime':_0x129ece};}},removeWorksheetMergeMutationWithInsertColMutation={'m1':_univerjs_sheets[_0x4fd226(0x3ff)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x342)]['id'],'handler'(_0x4f0a23,_0x1ae07f){const _0x3b8c3e=_0x4fd226,_0x5803fd=_univerjs_core['Tools'][_0x3b8c3e(0x28e)](_0x4f0a23),_0x85b03f=_univerjs_core[_0x3b8c3e(0x1d5)][_0x3b8c3e(0x28e)](_0x1ae07f);if(_0x4f0a23[_0x3b8c3e(0x235)]['unitId']!==_0x1ae07f['params']['unitId']||_0x4f0a23[_0x3b8c3e(0x235)][_0x3b8c3e(0x303)]!==_0x1ae07f[_0x3b8c3e(0x235)]['subUnitId'])return{'m1Prime':_0x5803fd,'m2Prime':_0x85b03f};const _0x1e1e60=_0x5803fd['params'][_0x3b8c3e(0x3e4)][_0x3b8c3e(0x208)](_0x55c5fb=>{const _0x186fe5=_0x3b8c3e,_0x271773=_0x85b03f[_0x186fe5(0x235)][_0x186fe5(0x2d0)],_0x2081ad=_0x271773['endColumn']-_0x271773[_0x186fe5(0x28f)]+0x1;if(_0x271773['startColumn']<=_0x55c5fb['startColumn'])return{..._0x55c5fb,'startColumn':_0x55c5fb[_0x186fe5(0x28f)]+_0x2081ad,'endColumn':_0x55c5fb[_0x186fe5(0x337)]+_0x2081ad};else{if(_0x271773[_0x186fe5(0x28f)]>_0x55c5fb[_0x186fe5(0x28f)]&&_0x271773[_0x186fe5(0x28f)]<=_0x55c5fb[_0x186fe5(0x337)])return{..._0x55c5fb,'endColumn':_0x55c5fb[_0x186fe5(0x337)]+_0x2081ad};else return{..._0x55c5fb};}});return _0x5803fd[_0x3b8c3e(0x235)][_0x3b8c3e(0x3e4)]=_0x1e1e60,{'m1Prime':_0x5803fd,'m2Prime':_0x85b03f};}},removeWorksheetMergeMutationWithInsertRowMutation={'m1':_univerjs_sheets[_0x4fd226(0x3ff)]['id'],'m2':_univerjs_sheets['InsertRowMutation']['id'],'handler'(_0x3b4372,_0x523a90){const _0x49c7b2=_0x4fd226,_0x5b7523=_univerjs_core[_0x49c7b2(0x1d5)][_0x49c7b2(0x28e)](_0x3b4372),_0x2b2122=_univerjs_core[_0x49c7b2(0x1d5)][_0x49c7b2(0x28e)](_0x523a90);if(_0x3b4372[_0x49c7b2(0x235)]['unitId']!==_0x523a90[_0x49c7b2(0x235)][_0x49c7b2(0x3cc)]||_0x3b4372[_0x49c7b2(0x235)]['subUnitId']!==_0x523a90[_0x49c7b2(0x235)][_0x49c7b2(0x303)])return{'m1Prime':_0x5b7523,'m2Prime':_0x2b2122};const _0x33b401=_0x5b7523[_0x49c7b2(0x235)][_0x49c7b2(0x3e4)][_0x49c7b2(0x208)](_0x41c454=>{const _0x43a820=_0x49c7b2,_0x10e2f8=_0x2b2122[_0x43a820(0x235)][_0x43a820(0x2d0)],_0x2a995a=_0x10e2f8['endRow']-_0x10e2f8[_0x43a820(0x26f)]+0x1;if(_0x10e2f8[_0x43a820(0x26f)]<=_0x41c454[_0x43a820(0x26f)])return{..._0x41c454,'startRow':_0x41c454[_0x43a820(0x26f)]+_0x2a995a,'endRow':_0x41c454[_0x43a820(0x3e2)]+_0x2a995a};else{if(_0x10e2f8['startRow']>_0x41c454['startRow']&&_0x10e2f8[_0x43a820(0x26f)]<=_0x41c454[_0x43a820(0x3e2)])return{..._0x41c454,'endRow':_0x41c454['endRow']+_0x2a995a};else return{..._0x41c454};}});return _0x5b7523[_0x49c7b2(0x235)][_0x49c7b2(0x3e4)]=_0x33b401,{'m1Prime':_0x5b7523,'m2Prime':_0x2b2122};}},removeWorksheetMergeMutationWithMoveColMutation={'m1':_univerjs_sheets[_0x4fd226(0x3ff)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x2b3)]['id'],'handler'(_0xfe2e78,_0x5f195f){const _0x2d0c8d=_0x4fd226,_0x359186=_univerjs_core['Tools'][_0x2d0c8d(0x28e)](_0xfe2e78),_0x3db75b=_univerjs_core[_0x2d0c8d(0x1d5)][_0x2d0c8d(0x28e)](_0x5f195f);if(_0xfe2e78[_0x2d0c8d(0x235)][_0x2d0c8d(0x3cc)]!==_0x5f195f[_0x2d0c8d(0x235)][_0x2d0c8d(0x3cc)]||_0xfe2e78[_0x2d0c8d(0x235)]['subUnitId']!==_0x5f195f[_0x2d0c8d(0x235)][_0x2d0c8d(0x303)])return{'m1Prime':_0x359186,'m2Prime':_0x3db75b};const _0xd432c4=_0x359186[_0x2d0c8d(0x235)][_0x2d0c8d(0x3e4)][_0x2d0c8d(0x37b)]((_0x36d7d5,_0x1fb0fc)=>{const _0x33202c=_0x2d0c8d,{sourceRange:_0xc12d12,targetRange:_0x23cc3a}=_0x5f195f[_0x33202c(0x235)],_0x41f233={..._0x1fb0fc};if(_0xc12d12['endColumn']<_0x41f233[_0x33202c(0x28f)]&&_0x23cc3a['startColumn']>_0x41f233['endColumn'])_0x41f233[_0x33202c(0x28f)]-=_0xc12d12[_0x33202c(0x337)]-_0xc12d12[_0x33202c(0x28f)]+0x1,_0x41f233[_0x33202c(0x337)]-=_0xc12d12[_0x33202c(0x337)]-_0xc12d12['startColumn']+0x1,isMergeCell(_0x41f233)&&_0x36d7d5['push'](_0x41f233);else{if(_0xc12d12[_0x33202c(0x28f)]>_0x41f233['endColumn']&&_0x23cc3a[_0x33202c(0x337)]<_0x41f233[_0x33202c(0x28f)])_0x41f233['startColumn']+=_0xc12d12[_0x33202c(0x337)]-_0xc12d12[_0x33202c(0x28f)]+0x1,_0x41f233[_0x33202c(0x337)]+=_0xc12d12[_0x33202c(0x337)]-_0xc12d12['startColumn']+0x1,isMergeCell(_0x41f233)&&_0x36d7d5['push'](_0x41f233);else{if(_univerjs_core[_0x33202c(0x394)][_0x33202c(0x2da)](_0x41f233,_0xc12d12)||_univerjs_core[_0x33202c(0x394)][_0x33202c(0x2da)](_0x41f233,_0x23cc3a)){}else _0x36d7d5[_0x33202c(0x285)](_0x41f233);}}return _0x36d7d5;},[]);_0x359186['params'][_0x2d0c8d(0x3e4)]=_0xd432c4;if(_0x359186['params'][_0x2d0c8d(0x3e4)][_0x2d0c8d(0x367)]===0x0)_0x359186['id']=_univerjs_sheets[_0x2d0c8d(0x2fc)]['id'];return{'m1Prime':_0x359186,'m2Prime':_0x3db75b};}},removeWorksheetMergeMutationWithMoveRowMutation={'m1':_univerjs_sheets[_0x4fd226(0x3ff)]['id'],'m2':_univerjs_sheets['MoveRowsMutation']['id'],'handler'(_0x5292cc,_0x42564b){const _0x4564e8=_0x4fd226,_0x511176=_univerjs_core[_0x4564e8(0x1d5)]['deepClone'](_0x5292cc),_0xdecc08=_univerjs_core['Tools'][_0x4564e8(0x28e)](_0x42564b);if(_0x5292cc[_0x4564e8(0x235)]['unitId']!==_0x42564b[_0x4564e8(0x235)]['unitId']||_0x5292cc[_0x4564e8(0x235)]['subUnitId']!==_0x42564b[_0x4564e8(0x235)]['subUnitId'])return{'m1Prime':_0x511176,'m2Prime':_0xdecc08};const _0x1c9919=_0x511176['params'][_0x4564e8(0x3e4)][_0x4564e8(0x37b)]((_0x3d1b0b,_0x51b90b)=>{const _0x3200c2=_0x4564e8,{sourceRange:_0x43785d,targetRange:_0x2a36a0}=_0x42564b['params'],_0x4af5d1={..._0x51b90b};if(_0x43785d[_0x3200c2(0x3e2)]<_0x4af5d1['startRow']&&_0x2a36a0[_0x3200c2(0x26f)]>_0x4af5d1[_0x3200c2(0x3e2)])_0x4af5d1[_0x3200c2(0x26f)]-=_0x43785d[_0x3200c2(0x3e2)]-_0x43785d[_0x3200c2(0x26f)]+0x1,_0x4af5d1[_0x3200c2(0x3e2)]-=_0x43785d[_0x3200c2(0x3e2)]-_0x43785d['startRow']+0x1,isMergeCell(_0x4af5d1)&&_0x3d1b0b[_0x3200c2(0x285)](_0x4af5d1);else{if(_0x43785d[_0x3200c2(0x26f)]>_0x4af5d1['endRow']&&_0x2a36a0[_0x3200c2(0x3e2)]<_0x4af5d1[_0x3200c2(0x26f)])_0x4af5d1[_0x3200c2(0x26f)]+=_0x43785d[_0x3200c2(0x3e2)]-_0x43785d[_0x3200c2(0x26f)]+0x1,_0x4af5d1[_0x3200c2(0x3e2)]+=_0x43785d[_0x3200c2(0x3e2)]-_0x43785d[_0x3200c2(0x26f)]+0x1,isMergeCell(_0x4af5d1)&&_0x3d1b0b[_0x3200c2(0x285)](_0x4af5d1);else{if(_univerjs_core[_0x3200c2(0x394)][_0x3200c2(0x2da)](_0x4af5d1,_0x43785d)||_univerjs_core['Rectangle']['intersects'](_0x4af5d1,_0x2a36a0)){}else _0x3d1b0b['push'](_0x4af5d1);}}return _0x3d1b0b;},[]);_0x511176[_0x4564e8(0x235)][_0x4564e8(0x3e4)]=_0x1c9919;if(_0x511176[_0x4564e8(0x235)]['ranges'][_0x4564e8(0x367)]===0x0)_0x511176['id']=_univerjs_sheets[_0x4564e8(0x2fc)]['id'];return{'m1Prime':_0x511176,'m2Prime':_0xdecc08};}},removeWorksheetMergeMutationWithRemoveColMutation={'m1':_univerjs_sheets[_0x4fd226(0x3ff)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x228)]['id'],'handler'(_0x9c1802,_0x683501){const _0x2ad48c=_0x4fd226,_0x26a52d=_univerjs_core[_0x2ad48c(0x1d5)]['deepClone'](_0x9c1802),_0x50e313=_univerjs_core[_0x2ad48c(0x1d5)][_0x2ad48c(0x28e)](_0x683501);if(_0x9c1802[_0x2ad48c(0x235)]['unitId']!==_0x683501[_0x2ad48c(0x235)][_0x2ad48c(0x3cc)]||_0x9c1802['params'][_0x2ad48c(0x303)]!==_0x683501[_0x2ad48c(0x235)][_0x2ad48c(0x303)])return{'m1Prime':_0x26a52d,'m2Prime':_0x50e313};const _0x53914c=_0x26a52d[_0x2ad48c(0x235)][_0x2ad48c(0x3e4)]['reduce']((_0x6f5bd2,_0x4a004e)=>{const _0x4ff1bd=_0x2ad48c,_0x5f247b=_0x50e313[_0x4ff1bd(0x235)][_0x4ff1bd(0x2d0)],_0x3ebb3e=_0x5f247b[_0x4ff1bd(0x337)]-_0x5f247b['startColumn']+0x1;let _0x1618fd={..._0x4a004e};if(_0x5f247b['startColumn']>_0x4a004e['endColumn'])_0x1618fd={..._0x4a004e};else{if(_0x5f247b[_0x4ff1bd(0x28f)]>=_0x4a004e[_0x4ff1bd(0x28f)]&&_0x5f247b[_0x4ff1bd(0x28f)]<=_0x4a004e[_0x4ff1bd(0x337)]&&_0x5f247b[_0x4ff1bd(0x337)]>_0x4a004e[_0x4ff1bd(0x337)]){_0x1618fd['endColumn']=_0x5f247b['startColumn']-0x1;if(_0x5f247b[_0x4ff1bd(0x28f)]===_0x4a004e[_0x4ff1bd(0x28f)])_0x1618fd=null;}else{if(_0x5f247b[_0x4ff1bd(0x28f)]>_0x4a004e[_0x4ff1bd(0x28f)]&&_0x5f247b['endColumn']<_0x4a004e['endColumn'])_0x1618fd[_0x4ff1bd(0x337)]=_0x4a004e[_0x4ff1bd(0x337)]-_0x3ebb3e;else{if(_0x5f247b[_0x4ff1bd(0x28f)]<_0x4a004e[_0x4ff1bd(0x28f)]&&_0x5f247b[_0x4ff1bd(0x337)]>=_0x4a004e['startColumn']&&_0x5f247b[_0x4ff1bd(0x337)]<=_0x4a004e[_0x4ff1bd(0x337)]){_0x1618fd[_0x4ff1bd(0x28f)]=_0x5f247b[_0x4ff1bd(0x28f)],_0x1618fd[_0x4ff1bd(0x337)]=_0x4a004e[_0x4ff1bd(0x337)]-_0x3ebb3e;if(_0x5f247b[_0x4ff1bd(0x337)]===_0x4a004e['endColumn'])_0x1618fd=null;}else{if(_0x5f247b['startColumn']<=_0x4a004e[_0x4ff1bd(0x28f)]&&_0x5f247b[_0x4ff1bd(0x337)]>=_0x4a004e[_0x4ff1bd(0x337)])_0x1618fd=null;else _0x5f247b[_0x4ff1bd(0x337)]<_0x4a004e[_0x4ff1bd(0x28f)]&&(_0x1618fd[_0x4ff1bd(0x28f)]=_0x4a004e[_0x4ff1bd(0x28f)]-_0x3ebb3e,_0x1618fd['endColumn']=_0x4a004e[_0x4ff1bd(0x337)]-_0x3ebb3e);}}}}if(_0x1618fd&&!(_0x1618fd[_0x4ff1bd(0x26f)]===_0x1618fd['endRow']&&_0x1618fd[_0x4ff1bd(0x28f)]===_0x1618fd[_0x4ff1bd(0x337)]))return _0x6f5bd2[_0x4ff1bd(0x285)](_0x1618fd),_0x6f5bd2;else return _0x6f5bd2;},[]);_0x26a52d['params'][_0x2ad48c(0x3e4)]=_0x53914c;if(_0x26a52d[_0x2ad48c(0x235)][_0x2ad48c(0x3e4)]['length']===0x0)_0x26a52d['id']=_univerjs_sheets[_0x2ad48c(0x2fc)]['id'];return{'m1Prime':_0x26a52d,'m2Prime':_0x50e313};}},removeWorksheetMergeMutationWithRemoveRowMutation={'m1':_univerjs_sheets[_0x4fd226(0x3ff)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'handler'(_0x2159ce,_0x15fd97){const _0x45b230=_0x4fd226,_0x4e76fe=_univerjs_core[_0x45b230(0x1d5)][_0x45b230(0x28e)](_0x2159ce),_0x1b8d72=_univerjs_core[_0x45b230(0x1d5)][_0x45b230(0x28e)](_0x15fd97);if(_0x2159ce[_0x45b230(0x235)][_0x45b230(0x3cc)]!==_0x15fd97['params'][_0x45b230(0x3cc)]||_0x2159ce['params'][_0x45b230(0x303)]!==_0x15fd97['params'][_0x45b230(0x303)])return{'m1Prime':_0x4e76fe,'m2Prime':_0x1b8d72};const _0x4aa8a6=_0x4e76fe['params'][_0x45b230(0x3e4)][_0x45b230(0x37b)]((_0x387947,_0x4e4a32)=>{const _0x52b394=_0x45b230,_0x13fa7e=_0x1b8d72[_0x52b394(0x235)][_0x52b394(0x2d0)],_0x28c47d=_0x13fa7e[_0x52b394(0x3e2)]-_0x13fa7e['startRow']+0x1;let _0xb81e7e={..._0x4e4a32};if(_0x13fa7e[_0x52b394(0x26f)]>_0x4e4a32[_0x52b394(0x3e2)])_0xb81e7e={..._0x4e4a32};else{if(_0x13fa7e['startRow']>=_0x4e4a32[_0x52b394(0x26f)]&&_0x13fa7e[_0x52b394(0x26f)]<=_0x4e4a32[_0x52b394(0x3e2)]&&_0x13fa7e['endRow']>_0x4e4a32[_0x52b394(0x3e2)]){_0xb81e7e[_0x52b394(0x3e2)]=_0x13fa7e[_0x52b394(0x26f)]-0x1;if(_0x13fa7e[_0x52b394(0x26f)]===_0x4e4a32[_0x52b394(0x26f)])_0xb81e7e=null;}else{if(_0x13fa7e[_0x52b394(0x26f)]>_0x4e4a32[_0x52b394(0x26f)]&&_0x13fa7e[_0x52b394(0x3e2)]<_0x4e4a32[_0x52b394(0x3e2)])_0xb81e7e[_0x52b394(0x3e2)]=_0x4e4a32['endRow']-_0x28c47d;else{if(_0x13fa7e[_0x52b394(0x26f)]<_0x4e4a32[_0x52b394(0x26f)]&&_0x13fa7e[_0x52b394(0x3e2)]>=_0x4e4a32[_0x52b394(0x26f)]&&_0x13fa7e['endRow']<=_0x4e4a32[_0x52b394(0x3e2)]){_0xb81e7e[_0x52b394(0x26f)]=_0x13fa7e[_0x52b394(0x26f)],_0xb81e7e[_0x52b394(0x3e2)]=_0x4e4a32['endRow']-_0x28c47d;if(_0x13fa7e[_0x52b394(0x3e2)]===_0x4e4a32['endRow'])_0xb81e7e=null;}else{if(_0x13fa7e[_0x52b394(0x26f)]<=_0x4e4a32[_0x52b394(0x26f)]&&_0x13fa7e['endRow']>=_0x4e4a32[_0x52b394(0x3e2)])_0xb81e7e=null;else _0x13fa7e[_0x52b394(0x3e2)]<_0x4e4a32[_0x52b394(0x26f)]&&(_0xb81e7e['startRow']=_0x4e4a32[_0x52b394(0x26f)]-_0x28c47d,_0xb81e7e[_0x52b394(0x3e2)]=_0x4e4a32[_0x52b394(0x3e2)]-_0x28c47d);}}}}if(_0xb81e7e&&!(_0xb81e7e[_0x52b394(0x26f)]===_0xb81e7e[_0x52b394(0x3e2)]&&_0xb81e7e[_0x52b394(0x28f)]===_0xb81e7e[_0x52b394(0x337)]))return _0x387947['push'](_0xb81e7e),_0x387947;else return _0x387947;},[]);_0x4e76fe[_0x45b230(0x235)]['ranges']=_0x4aa8a6;if(_0x4e76fe[_0x45b230(0x235)][_0x45b230(0x3e4)][_0x45b230(0x367)]===0x0)_0x4e76fe['id']=_univerjs_sheets[_0x45b230(0x2fc)]['id'];return{'m1Prime':_0x4e76fe,'m2Prime':_0x1b8d72};}},removeWorksheetMergeMutationWithSetSelection={'m1':_univerjs_sheets['RemoveWorksheetMergeMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x2dd)]['id'],'handler'(_0x1bbf4d,_0x5e813b){const _0x52ca6d=_0x4fd226,_0x1339bb={'m1Prime':[],'m2Prime':[]};if(_0x1bbf4d['params'][_0x52ca6d(0x3cc)]!==_0x5e813b[_0x52ca6d(0x235)][_0x52ca6d(0x3cc)]||_0x1bbf4d[_0x52ca6d(0x235)][_0x52ca6d(0x303)]!==_0x5e813b[_0x52ca6d(0x235)]['subUnitId'])return _0x1339bb;const _0xf3b342=_univerjs_core[_0x52ca6d(0x1d5)][_0x52ca6d(0x28e)](_0x5e813b),_0x583049=_0xf3b342[_0x52ca6d(0x235)][_0x52ca6d(0x399)],_0x5a8878=_0x583049[_0x583049[_0x52ca6d(0x367)]-0x1][_0x52ca6d(0x1cd)];return _0x1bbf4d[_0x52ca6d(0x235)]['ranges'][_0x52ca6d(0x222)](_0x532b1b=>{const _0x11568d=_0x52ca6d;_0x5a8878&&_univerjs_core['Rectangle'][_0x11568d(0x2da)](_0x532b1b,_0x5a8878)&&(_0x5a8878[_0x11568d(0x1d9)]=![],_0x5a8878[_0x11568d(0x296)]=![],_0x5a8878['startRow']=_0x532b1b[_0x11568d(0x26f)],_0x5a8878[_0x11568d(0x28f)]=_0x532b1b[_0x11568d(0x28f)],_0x5a8878['endRow']=_0x532b1b[_0x11568d(0x26f)],_0x5a8878[_0x11568d(0x337)]=_0x532b1b[_0x11568d(0x28f)],_0x5a8878['actualColumn']=_0x532b1b[_0x11568d(0x28f)],_0x5a8878[_0x11568d(0x402)]=_0x532b1b[_0x11568d(0x26f)]);}),_0x1339bb[_0x52ca6d(0x3d9)]['push'](_0xf3b342),_0x1339bb;}},ReorderRangeUndoMutationFactory=_0x38463e=>{const _0x249ec4=_0x4fd226,{order:_0x27201d}=_0x38463e,_0x1456fb={};return Object[_0x249ec4(0x2fd)](_0x27201d)['forEach'](_0xe2e550=>{_0x1456fb[_0x27201d[Number(_0xe2e550)]]=Number(_0xe2e550);}),{..._0x38463e,'order':_0x1456fb};},mergeOrder=(_0x20a271,_0x7cb857)=>{const _0x584b29=_0x4fd226,_0x39a9da={};return Array[_0x584b29(0x270)](new Set(Object[_0x584b29(0x2fd)](_0x20a271)[_0x584b29(0x3ea)](Object[_0x584b29(0x2fd)](_0x7cb857))['map'](Number)))[_0x584b29(0x222)](_0x3b6912=>{let _0x554578;if(_0x3b6912 in _0x7cb857){_0x554578=_0x7cb857[_0x3b6912];if(_0x554578 in _0x20a271)_0x554578=_0x20a271[_0x554578];}else _0x554578=_0x20a271[_0x3b6912];_0x39a9da[_0x3b6912]=_0x554578;}),_0x39a9da;},reorderRangeMutationWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x201)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x201)]['id'],'handler'(_0x213211,_0x2fb60d){const _0x2e9894=_0x4fd226,_0x393ad9={'m1Prime':_0x213211,'m2Prime':_0x2fb60d};if(_0x213211['params'][_0x2e9894(0x3cc)]!==_0x2fb60d['params'][_0x2e9894(0x3cc)])return _0x393ad9;const {range:_0x446b84}=_0x213211[_0x2e9894(0x235)],{range:_0x3d48e5}=_0x2fb60d[_0x2e9894(0x235)];if(_0x3d48e5['startColumn']===_0x446b84[_0x2e9894(0x28f)]&&_0x3d48e5[_0x2e9894(0x337)]===_0x446b84[_0x2e9894(0x337)]&&_0x3d48e5['startRow']<=_0x446b84[_0x2e9894(0x26f)]&&_0x3d48e5[_0x2e9894(0x3e2)]>=_0x446b84[_0x2e9894(0x3e2)]){const _0x2a1ec8=ReorderRangeUndoMutationFactory(_0x213211['params'])[_0x2e9894(0x339)];return{'m1Prime':[],'m2Prime':{'id':_univerjs_sheets[_0x2e9894(0x201)]['id'],'params':{..._0x2fb60d[_0x2e9894(0x235)],'range':_0x3d48e5,'order':mergeOrder(_0x2a1ec8,_0x2fb60d['params'][_0x2e9894(0x339)])}}};}if(_univerjs_core[_0x2e9894(0x394)][_0x2e9894(0x2da)](_0x446b84,_0x3d48e5))return{'error':new Error(_0x2e9894(0x2ad))};return _0x393ad9;}},RevertRevisionMutationWithOthers={'m1':RevertRevisionMutation['id'],'m2':_0x4fd226(0x22c),'handler'(_0x1857a8,_0xe681e4){return{'error':new Error('RevertRevisionMutation\x20conflicts\x20with\x20other\x20mutations!')};}},OthersWithRevertRevision={'m1':_0x4fd226(0x22c),'m2':RevertRevisionMutation['id'],'handler'(_0x9dfddc,_0x1a6546){const _0x35fe9c=_0x4fd226;if(_0x9dfddc['params'][_0x35fe9c(0x3cc)]===_0x1a6546[_0x35fe9c(0x235)][_0x35fe9c(0x3cc)])return{'m1Prime':[],'m2Prime':_0x1a6546};return{'m1Prime':_0x9dfddc,'m2Prime':_0x1a6546};}},setColDataMutationWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x1bd)]['id'],'m2':_univerjs_sheets['SetColDataMutation']['id'],'handler'(_0x1c7d18,_0x26b756){const _0x31fc73=_0x4fd226,_0x5692b9={'m1Prime':_0x1c7d18,'m2Prime':_0x26b756};if(_0x1c7d18['params'][_0x31fc73(0x3cc)]!==_0x26b756[_0x31fc73(0x235)][_0x31fc73(0x3cc)]||_0x1c7d18[_0x31fc73(0x235)][_0x31fc73(0x303)]!==_0x26b756[_0x31fc73(0x235)]['subUnitId'])return _0x5692b9;const _0x428088=_0x1c7d18[_0x31fc73(0x235)]['columnData'],_0x523f65=_0x26b756['params']['columnData'],_0x148a27={},_0x3ab2a3=_univerjs_core[_0x31fc73(0x1d5)]['deepClone'](_0x1c7d18),_0x2a6b9c=new Set([...Object[_0x31fc73(0x2fd)](_0x428088)[_0x31fc73(0x208)](Number),...Object[_0x31fc73(0x2fd)](_0x523f65)[_0x31fc73(0x208)](Number)]);for(const _0x115455 of _0x2a6b9c){const _0x5cb461=_0x428088[_0x115455],_0x5c0e66=_0x523f65[_0x115455];if(_0x5cb461&&_0x5c0e66)_0x148a27[_0x115455]={..._0x5cb461,..._0x5c0e66};else{if(_0x5cb461)_0x148a27[_0x115455]=_0x5cb461;else{if(_0x5c0e66)_0x148a27[_0x115455]=_0x5c0e66;}}}return _0x3ab2a3[_0x31fc73(0x235)][_0x31fc73(0x1ed)]=_0x148a27,{'m1Prime':_0x3ab2a3,'m2Prime':_0x26b756};}},setConditionalFormattingRuleMutationWithSelf={'m1':_univerjs_sheets_conditional_formatting['SetConditionalRuleMutation']['id'],'m2':_univerjs_sheets_conditional_formatting['SetConditionalRuleMutation']['id'],'handler'(_0x326237,_0x7e5846){const _0x6d6f44=_0x4fd226;if(_0x326237['params'][_0x6d6f44(0x3cc)]!==_0x7e5846['params'][_0x6d6f44(0x3cc)]||_0x326237['params'][_0x6d6f44(0x303)]!==_0x7e5846[_0x6d6f44(0x235)][_0x6d6f44(0x303)])return{'m1Prime':_0x326237,'m2Prime':_0x7e5846};if((_0x326237[_0x6d6f44(0x235)][_0x6d6f44(0x314)]||_0x326237[_0x6d6f44(0x235)][_0x6d6f44(0x351)][_0x6d6f44(0x314)])!==(_0x7e5846[_0x6d6f44(0x235)]['cfId']||_0x7e5846['params']['rule'][_0x6d6f44(0x314)]))return{'m1Prime':_0x326237,'m2Prime':_0x7e5846};return{'m1Prime':[],'m2Prime':_univerjs_core['Tools'][_0x6d6f44(0x28e)](_0x7e5846)};}};function drawingObjectsIntersect(_0x26b237,_0x5429fa){const _0x461b32=_0x4fd226,_0x2d601d=_0x26b237[_0x461b32(0x37b)]((_0x590b5c,_0x4627b4)=>{const _0x2a6522=_0x461b32;return _0x590b5c['set'](_0x4627b4[_0x2a6522(0x373)],!![]),_0x590b5c;},new Map());return _0x5429fa['some'](_0x4e1be3=>_0x2d601d[_0x461b32(0x263)](_0x4e1be3[_0x461b32(0x373)])!==void 0x0);}function drawingOrderObjectsIntersect(_0x42d20c,_0x518467){const _0x5da86f=_0x4fd226,_0x4dee7d=_0x42d20c[_0x5da86f(0x261)];return _0x518467[_0x5da86f(0x261)][_0x5da86f(0x1c0)](_0x166994=>_0x4dee7d[_0x5da86f(0x407)](_0x166994)!==-0x1);}const {UPDATE,REMOVE,ARRANGE}=_univerjs_sheets_drawing[_0x4fd226(0x262)],setDrawingApplyMutationWithSelf={'m1':_univerjs_sheets_drawing[_0x4fd226(0x3eb)]['id'],'m2':_univerjs_sheets_drawing[_0x4fd226(0x3eb)]['id'],'handler'(_0x5bbe49,_0x466d43){const _0x318af7=_0x4fd226,_0x59f1ff=_0x5bbe49[_0x318af7(0x235)],_0x46957c=_0x466d43[_0x318af7(0x235)];if(_0x59f1ff[_0x318af7(0x3cc)]!==_0x46957c[_0x318af7(0x3cc)]||_0x59f1ff['subUnitId']!==_0x46957c['subUnitId'])return{'m1Prime':_0x5bbe49,'m2Prime':_0x466d43};const _0x4effc1=_0x59f1ff['type'],_0x109a86=_0x46957c[_0x318af7(0x22b)];if(_0x4effc1===REMOVE&&_0x109a86===UPDATE){if(drawingObjectsIntersect(_0x59f1ff[_0x318af7(0x411)],_0x46957c[_0x318af7(0x411)]))return{'m1Prime':_univerjs_core[_0x318af7(0x1d5)][_0x318af7(0x28e)](_0x5bbe49),'m2Prime':[]};}if(_0x4effc1===ARRANGE&&_0x109a86===ARRANGE){if(drawingOrderObjectsIntersect(_0x59f1ff['objects'],_0x46957c['objects'])){const _0x3d42d6=_univerjs_core[_0x318af7(0x1d5)][_0x318af7(0x28e)](_0x5bbe49),_0x4d7982=_univerjs_core[_0x318af7(0x1d5)]['deepClone'](_0x466d43);return{'m1Prime':{..._0x3d42d6,'params':{..._0x3d42d6[_0x318af7(0x235)],'op':_univerjs_core[_0x318af7(0x2e3)][_0x318af7(0x22b)]['transform'](_0x3d42d6[_0x318af7(0x235)]['op'],_0x4d7982[_0x318af7(0x235)]['op'],_0x318af7(0x417))}},'m2Prime':{..._0x4d7982,'params':{..._0x4d7982[_0x318af7(0x235)],'op':_univerjs_core[_0x318af7(0x2e3)][_0x318af7(0x22b)]['transform'](_0x4d7982[_0x318af7(0x235)]['op'],_0x3d42d6['params']['op'],_0x318af7(0x309))}}};}}return{'m1Prime':_0x5bbe49,'m2Prime':_0x466d43};}},setFrozenMutationWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x1d3)]['id'],'m2':_univerjs_sheets['SetFrozenMutation']['id'],'handler'(_0x2f22d8,_0x2bb93b){const _0x7ed661=_0x4fd226;if(_0x2f22d8[_0x7ed661(0x235)][_0x7ed661(0x3cc)]!==_0x2bb93b[_0x7ed661(0x235)][_0x7ed661(0x3cc)]||_0x2f22d8['params']['subUnitId']!==_0x2bb93b[_0x7ed661(0x235)][_0x7ed661(0x303)])return{'m1Prime':_0x2f22d8,'m2Prime':_0x2bb93b};return{'m1Prime':[],'m2Prime':_0x2bb93b};}},setNumfmtMutationWithRemoveNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x3f8)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x20e)]['id'],'handler'(_0x4e966e,_0x28aa63){const _0x45d1b5=_0x4fd226;if(_0x4e966e[_0x45d1b5(0x235)]['unitId']!==_0x28aa63[_0x45d1b5(0x235)]['unitId']||_0x4e966e[_0x45d1b5(0x235)]['subUnitId']!==_0x28aa63[_0x45d1b5(0x235)]['subUnitId'])return{'m1Prime':_0x4e966e,'m2Prime':_0x28aa63};const _0x410980=_univerjs_core[_0x45d1b5(0x1d5)][_0x45d1b5(0x28e)](_0x4e966e),_0x2e2379=_univerjs_core[_0x45d1b5(0x1d5)][_0x45d1b5(0x28e)](_0x28aa63),_0x2e8d1d=_0x410980[_0x45d1b5(0x235)]['values'],_0x44e515=_0x2e2379['params'][_0x45d1b5(0x3e4)];for(const _0x466a8b in _0x2e8d1d){const _0x5e4c43=_0x2e8d1d[_0x466a8b][_0x45d1b5(0x3e4)],_0x2a2777=[];_0x5e4c43[_0x45d1b5(0x222)](_0x5c2319=>{const _0x26f3a8=_0x45d1b5,_0x57d2e1=RangeSubtractRanges(_0x5c2319,_0x44e515);if(_0x57d2e1[_0x26f3a8(0x367)]>0x0)_0x2a2777['push'](..._0x57d2e1);}),_0x2e8d1d[_0x466a8b][_0x45d1b5(0x3e4)]=_0x2a2777;}return{'m1Prime':_0x410980,'m2Prime':_0x2e2379};}},setNumfmtMutationWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x3f8)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3f8)]['id'],'handler'(_0x437795,_0x5ed5a5){const _0x2cc83b=_0x4fd226;if(_0x437795['params'][_0x2cc83b(0x3cc)]!==_0x5ed5a5[_0x2cc83b(0x235)][_0x2cc83b(0x3cc)]||_0x437795['params'][_0x2cc83b(0x303)]!==_0x5ed5a5[_0x2cc83b(0x235)]['subUnitId'])return{'m1Prime':_0x437795,'m2Prime':_0x5ed5a5};const _0x3707b6=_univerjs_core['Tools'][_0x2cc83b(0x28e)](_0x437795),_0x4f007b=_univerjs_core[_0x2cc83b(0x1d5)]['deepClone'](_0x5ed5a5),_0xd7765b=_0x3707b6[_0x2cc83b(0x235)][_0x2cc83b(0x3f2)],_0x9be667=Object['values'](_0x4f007b[_0x2cc83b(0x235)][_0x2cc83b(0x3f2)])[_0x2cc83b(0x208)](_0x34866e=>_0x34866e[_0x2cc83b(0x3e4)])[_0x2cc83b(0x2e8)]();for(const _0x4ab9ff in _0xd7765b){const _0x2d4854=_0xd7765b[_0x4ab9ff][_0x2cc83b(0x3e4)],_0x594bd8=[];_0x2d4854[_0x2cc83b(0x222)](_0x293828=>{const _0x118369=_0x2cc83b,_0x4a0145=RangeSubtractRanges(_0x293828,_0x9be667);if(_0x4a0145['length']>0x0)_0x594bd8[_0x118369(0x285)](..._0x4a0145);}),_0xd7765b[_0x4ab9ff][_0x2cc83b(0x3e4)]=_0x594bd8;}return{'m1Prime':_0x3707b6,'m2Prime':_0x4f007b};}},setRangeProtectionWithAddComment={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_thread_comment[_0x4fd226(0x2de)]['id'],'handler':(_0x1b6289,_0x304ee0)=>{const _0x403d9c=_0x4fd226,_0x567316={'m1Prime':_0x1b6289,'m2Prime':_0x304ee0};if(_0x1b6289[_0x403d9c(0x235)]['unitId']!==_0x304ee0['params'][_0x403d9c(0x3cc)]||_0x1b6289[_0x403d9c(0x235)][_0x403d9c(0x303)]!==_0x304ee0['params'][_0x403d9c(0x303)])return _0x567316;return{'error':new Error(_0x403d9c(0x3fc))};}},setRangeProtectionWithAddConditionRule={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0x4fd226(0x3b5)]['id'],'handler':(_0x31ef43,_0x2017d5)=>{const _0x156346=_0x4fd226,_0x2a95f6={'m1Prime':_0x31ef43,'m2Prime':_0x2017d5};if(_0x31ef43[_0x156346(0x235)]['unitId']!==_0x2017d5['params']['unitId']||_0x31ef43[_0x156346(0x235)][_0x156346(0x303)]!==_0x2017d5[_0x156346(0x235)][_0x156346(0x303)])return _0x2a95f6;const _0x5541fb=_0x31ef43[_0x156346(0x235)][_0x156346(0x351)][_0x156346(0x3e4)],_0xe9d8e=_0x2017d5[_0x156346(0x235)]['rule'][_0x156346(0x3e4)];if(_0x5541fb[_0x156346(0x1c0)](_0x2548c2=>_0xe9d8e[_0x156346(0x1c0)](_0x45799d=>_univerjs_core[_0x156346(0x394)][_0x156346(0x2da)](_0x2548c2,_0x45799d))))return{'error':new Error(_0x156346(0x3e3))};return _0x2a95f6;}},setRangeProtectionWithAddWorksheetMerge={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_sheets['AddWorksheetMergeMutation']['id'],'handler':(_0x47cb02,_0x27e2c5)=>{const _0x31dd04=_0x4fd226,_0xdc31e={'m1Prime':_0x47cb02,'m2Prime':_0x27e2c5};if(_0x47cb02['params']['unitId']!==_0x27e2c5[_0x31dd04(0x235)][_0x31dd04(0x3cc)]||_0x47cb02['params'][_0x31dd04(0x303)]!==_0x27e2c5['params']['subUnitId'])return _0xdc31e;const _0x1739ce=_0x47cb02[_0x31dd04(0x235)][_0x31dd04(0x351)][_0x31dd04(0x3e4)],_0xda60ee=_0x27e2c5['params'][_0x31dd04(0x3e4)];if(_0x1739ce[_0x31dd04(0x1c0)](_0xe2b0d2=>_0xda60ee['some'](_0x160085=>_univerjs_core[_0x31dd04(0x394)]['intersects'](_0xe2b0d2,_0x160085))))return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20add\x20worksheet\x20merge')};return _0xdc31e;}},setRangeProtectionWithAddWorksheetProtection={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x406)]['id'],'handler':(_0x342d58,_0x40f52c)=>{const _0x450d0c=_0x4fd226,_0x28fec1={'m1Prime':_0x342d58,'m2Prime':_0x40f52c};if(_0x342d58[_0x450d0c(0x235)][_0x450d0c(0x3cc)]!==_0x40f52c[_0x450d0c(0x235)]['unitId']||_0x342d58[_0x450d0c(0x235)][_0x450d0c(0x303)]!==_0x40f52c['params']['rule'][_0x450d0c(0x303)])return _0x28fec1;return{'error':new Error(_0x450d0c(0x344))};}},setRangeProtectionWithDeleteConditionFormattingRule={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0x4fd226(0x371)]['id'],'handler':(_0x21241c,_0x4128fe)=>{const _0x37b6fb=_0x4fd226,_0x25dae9={'m1Prime':_0x21241c,'m2Prime':_0x4128fe};if(_0x21241c[_0x37b6fb(0x235)]['unitId']!==_0x4128fe['params'][_0x37b6fb(0x3cc)]||_0x21241c[_0x37b6fb(0x235)][_0x37b6fb(0x303)]!==_0x4128fe['params'][_0x37b6fb(0x303)])return _0x25dae9;return{'error':new Error(_0x37b6fb(0x3a8))};}},setRangeProtectionWithInsertCol={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x342)]['id'],'handler':(_0x38fb15,_0x5ee430)=>{const _0x222a21=_0x4fd226,_0x168e34={'m1Prime':_0x38fb15,'m2Prime':_0x5ee430};if(_0x38fb15[_0x222a21(0x235)]['unitId']!==_0x5ee430['params'][_0x222a21(0x3cc)]||_0x38fb15['params']['subUnitId']!==_0x5ee430[_0x222a21(0x235)][_0x222a21(0x303)])return _0x168e34;const _0x1af818=_0x38fb15['params'][_0x222a21(0x351)][_0x222a21(0x3e4)],_0x21a3e4=_0x5ee430['params'][_0x222a21(0x2d0)];if(_0x1af818['some'](_0x236fc9=>_univerjs_core[_0x222a21(0x394)]['intersects'](_0x236fc9,_0x21a3e4)))return{'error':new Error(_0x222a21(0x248))};return _0x168e34;}},setRangeProtectionWithInsertRow={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x3dc)]['id'],'handler':(_0x19c40c,_0x5287fb)=>{const _0x50096f=_0x4fd226,_0xadaf8b={'m1Prime':_0x19c40c,'m2Prime':_0x5287fb};if(_0x19c40c[_0x50096f(0x235)][_0x50096f(0x3cc)]!==_0x5287fb[_0x50096f(0x235)][_0x50096f(0x3cc)]||_0x19c40c['params'][_0x50096f(0x303)]!==_0x5287fb[_0x50096f(0x235)][_0x50096f(0x303)])return _0xadaf8b;const _0x46d7f9=_0x19c40c[_0x50096f(0x235)][_0x50096f(0x351)]['ranges'],_0x749f73=_0x5287fb[_0x50096f(0x235)][_0x50096f(0x2d0)];if(_0x46d7f9[_0x50096f(0x1c0)](_0x24ef36=>_univerjs_core[_0x50096f(0x394)][_0x50096f(0x2da)](_0x24ef36,_0x749f73)))return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20insert\x20row')};return _0xadaf8b;}},setRangeProtectionWithMoveCol={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_sheets['MoveColsMutation']['id'],'handler':(_0x7692c0,_0x391391)=>{const _0x4fee97=_0x4fd226,_0x30c17f={'m1Prime':_0x7692c0,'m2Prime':_0x391391};if(_0x7692c0[_0x4fee97(0x235)][_0x4fee97(0x3cc)]!==_0x391391[_0x4fee97(0x235)][_0x4fee97(0x3cc)]||_0x7692c0[_0x4fee97(0x235)]['subUnitId']!==_0x391391['params'][_0x4fee97(0x303)])return _0x30c17f;const _0x11fd57=_0x7692c0[_0x4fee97(0x235)]['rule'][_0x4fee97(0x3e4)],_0x5b77fe=[_0x391391[_0x4fee97(0x235)][_0x4fee97(0x200)],_0x391391[_0x4fee97(0x235)]['targetRange']];if(_0x11fd57[_0x4fee97(0x1c0)](_0x8dde6d=>_0x5b77fe[_0x4fee97(0x1c0)](_0xd5ac14=>_univerjs_core[_0x4fee97(0x394)][_0x4fee97(0x2da)](_0x8dde6d,_0xd5ac14))))return{'error':new Error(_0x4fee97(0x276))};return _0x30c17f;}},setRangeProtectionWithMoveRange={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x35a)]['id'],'handler':(_0x343084,_0x4b1d44)=>{const _0x702ffa=_0x4fd226,_0x58e05a={'m1Prime':_0x343084,'m2Prime':_0x4b1d44};if(_0x343084['params'][_0x702ffa(0x3cc)]!==_0x4b1d44[_0x702ffa(0x235)][_0x702ffa(0x3cc)]||_0x343084['params']['subUnitId']!==_0x4b1d44[_0x702ffa(0x235)][_0x702ffa(0x270)][_0x702ffa(0x303)])return _0x58e05a;const _0x69ed8f=_0x343084['params'][_0x702ffa(0x351)]['ranges'],_0x3ecda6=[new _univerjs_core[(_0x702ffa(0x2ed))](_0x4b1d44[_0x702ffa(0x235)]['from']['value'])[_0x702ffa(0x277)](),new _univerjs_core[(_0x702ffa(0x2ed))](_0x4b1d44[_0x702ffa(0x235)]['to'][_0x702ffa(0x355)])['getDataRange']()];if(_0x69ed8f[_0x702ffa(0x1c0)](_0x52e055=>_0x3ecda6[_0x702ffa(0x1c0)](_0xd8d4c6=>_univerjs_core[_0x702ffa(0x394)][_0x702ffa(0x2da)](_0x52e055,_0xd8d4c6))))return{'error':new Error(_0x702ffa(0x1c8))};return _0x58e05a;}},setRangeProtectionWithMoveRow={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_sheets['MoveRowsMutation']['id'],'handler':(_0x4caeb5,_0x45ed01)=>{const _0x2adf6f=_0x4fd226,_0x543bfe={'m1Prime':_0x4caeb5,'m2Prime':_0x45ed01};if(_0x4caeb5[_0x2adf6f(0x235)]['unitId']!==_0x45ed01[_0x2adf6f(0x235)]['unitId']||_0x4caeb5[_0x2adf6f(0x235)][_0x2adf6f(0x303)]!==_0x45ed01['params'][_0x2adf6f(0x303)])return _0x543bfe;const _0x161b8f=_0x4caeb5[_0x2adf6f(0x235)][_0x2adf6f(0x351)][_0x2adf6f(0x3e4)],_0xd21b03=[_0x45ed01['params'][_0x2adf6f(0x200)],_0x45ed01[_0x2adf6f(0x235)][_0x2adf6f(0x26c)]];if(_0x161b8f[_0x2adf6f(0x1c0)](_0x45f43e=>_0xd21b03[_0x2adf6f(0x1c0)](_0x2e7ed0=>_univerjs_core[_0x2adf6f(0x394)]['intersects'](_0x45f43e,_0x2e7ed0))))return{'error':new Error(_0x2adf6f(0x3a0))};return _0x543bfe;}},setRangeProtectionWithRemoveCol={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x228)]['id'],'handler':(_0x14fc58,_0x3f8501)=>{const _0x15eab3=_0x4fd226,_0x4d1c33={'m1Prime':_0x14fc58,'m2Prime':_0x3f8501};if(_0x14fc58['params'][_0x15eab3(0x3cc)]!==_0x3f8501[_0x15eab3(0x235)][_0x15eab3(0x3cc)]||_0x14fc58[_0x15eab3(0x235)][_0x15eab3(0x303)]!==_0x3f8501[_0x15eab3(0x235)][_0x15eab3(0x303)])return _0x4d1c33;const _0x4e9afe=_0x14fc58[_0x15eab3(0x235)]['rule'][_0x15eab3(0x3e4)],_0x4e592a=_0x3f8501[_0x15eab3(0x235)]['range'];if(_0x4e9afe[_0x15eab3(0x1c0)](_0x34063f=>_univerjs_core[_0x15eab3(0x394)][_0x15eab3(0x2da)](_0x34063f,_0x4e592a)))return{'error':new Error(_0x15eab3(0x288))};return _0x4d1c33;}},setRangeProtectionWithRemoveDataValidation={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_data_validation[_0x4fd226(0x2a3)]['id'],'handler':(_0x4eb04b,_0x1a5405)=>{const _0x3339c8=_0x4fd226,_0x2b2d87={'m1Prime':_0x4eb04b,'m2Prime':_0x1a5405};if(_0x4eb04b[_0x3339c8(0x235)]['unitId']!==_0x1a5405[_0x3339c8(0x235)]['unitId']||_0x4eb04b[_0x3339c8(0x235)]['subUnitId']!==_0x1a5405[_0x3339c8(0x235)][_0x3339c8(0x303)])return _0x2b2d87;return{'error':new Error(_0x3339c8(0x381))};}},setRangeProtectionWithRemoveRow={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x2b8)]['id'],'handler':(_0x2a3395,_0x232d30)=>{const _0x363f5b=_0x4fd226,_0x52db00={'m1Prime':_0x2a3395,'m2Prime':_0x232d30};if(_0x2a3395[_0x363f5b(0x235)][_0x363f5b(0x3cc)]!==_0x232d30[_0x363f5b(0x235)][_0x363f5b(0x3cc)]||_0x2a3395[_0x363f5b(0x235)][_0x363f5b(0x303)]!==_0x232d30[_0x363f5b(0x235)]['subUnitId'])return _0x52db00;const _0x203c39=_0x2a3395[_0x363f5b(0x235)][_0x363f5b(0x351)][_0x363f5b(0x3e4)],_0x37cf9a=_0x232d30[_0x363f5b(0x235)]['range'];if(_0x203c39[_0x363f5b(0x1c0)](_0x1d5bd0=>_univerjs_core[_0x363f5b(0x394)][_0x363f5b(0x2da)](_0x1d5bd0,_0x37cf9a)))return{'error':new Error(_0x363f5b(0x292))};return _0x52db00;}},setRangeProtectionWithRemoveFilter={'m1':_univerjs_sheets['SetRangeProtectionMutation']['id'],'m2':_univerjs_sheets_filter[_0x4fd226(0x290)]['id'],'handler':(_0x161ff7,_0x1e38d0)=>{const _0x3dc387=_0x4fd226,_0x3f8e22={'m1Prime':_0x161ff7,'m2Prime':_0x1e38d0};if(_0x161ff7[_0x3dc387(0x235)]['unitId']!==_0x1e38d0[_0x3dc387(0x235)][_0x3dc387(0x3cc)]||_0x161ff7[_0x3dc387(0x235)][_0x3dc387(0x303)]!==_0x1e38d0[_0x3dc387(0x235)][_0x3dc387(0x303)])return _0x3f8e22;return{'error':new Error(_0x3dc387(0x240))};}},setRangeProtectionWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3ff)]['id'],'handler':(_0x5d46b6,_0x4ebc59)=>{const _0x2a9cfd=_0x4fd226,_0x538fa7={'m1Prime':_0x5d46b6,'m2Prime':_0x4ebc59};if(_0x5d46b6[_0x2a9cfd(0x235)][_0x2a9cfd(0x3cc)]!==_0x4ebc59['params'][_0x2a9cfd(0x3cc)]||_0x5d46b6[_0x2a9cfd(0x235)][_0x2a9cfd(0x303)]!==_0x4ebc59[_0x2a9cfd(0x235)][_0x2a9cfd(0x303)])return _0x538fa7;const _0x53c9a7=_0x5d46b6[_0x2a9cfd(0x235)][_0x2a9cfd(0x351)][_0x2a9cfd(0x3e4)],_0x2343fb=_0x4ebc59[_0x2a9cfd(0x235)][_0x2a9cfd(0x3e4)];if(_0x53c9a7[_0x2a9cfd(0x1c0)](_0x24ae8e=>_0x2343fb[_0x2a9cfd(0x1c0)](_0x47088b=>_univerjs_core['Rectangle'][_0x2a9cfd(0x2da)](_0x24ae8e,_0x47088b))))return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20remove\x20worksheet\x20merge')};return _0x538fa7;}},setRangeProtectionWithSetConditionalFormattingRule={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_sheets_conditional_formatting[_0x4fd226(0x1fa)]['id'],'handler':(_0x8775af,_0x4e762f)=>{const _0x357f24=_0x4fd226,_0x479a29={'m1Prime':_0x8775af,'m2Prime':_0x4e762f};if(_0x8775af[_0x357f24(0x235)][_0x357f24(0x3cc)]!==_0x4e762f['params'][_0x357f24(0x3cc)]||_0x8775af['params'][_0x357f24(0x303)]!==_0x4e762f[_0x357f24(0x235)][_0x357f24(0x303)])return _0x479a29;const _0x172987=_0x8775af[_0x357f24(0x235)][_0x357f24(0x351)][_0x357f24(0x3e4)],_0x5d9a2d=_0x4e762f[_0x357f24(0x235)][_0x357f24(0x351)][_0x357f24(0x3e4)];if(_0x172987['some'](_0xb3a996=>_0x5d9a2d[_0x357f24(0x1c0)](_0x48c407=>_univerjs_core[_0x357f24(0x394)]['intersects'](_0xb3a996,_0x48c407))))return{'error':new Error(_0x357f24(0x1ba))};return _0x479a29;}},setRangeProtectionWithSetFrozen={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x1d3)]['id'],'handler':(_0x25e687,_0x502d37)=>{const _0x1b37da=_0x4fd226,_0x33d598={'m1Prime':_0x25e687,'m2Prime':_0x502d37};if(_0x25e687[_0x1b37da(0x235)][_0x1b37da(0x3cc)]!==_0x502d37[_0x1b37da(0x235)]['unitId']||_0x25e687['params'][_0x1b37da(0x303)]!==_0x502d37[_0x1b37da(0x235)][_0x1b37da(0x303)])return _0x33d598;const _0x2ef515=_0x25e687[_0x1b37da(0x235)][_0x1b37da(0x351)][_0x1b37da(0x3e4)],_0x517810=[{'startRow':_0x502d37[_0x1b37da(0x235)][_0x1b37da(0x26f)],'endRow':_0x502d37[_0x1b37da(0x235)][_0x1b37da(0x26f)],'startColumn':_0x502d37[_0x1b37da(0x235)]['startColumn'],'endColumn':_0x502d37['params']['startColumn']}];if(_0x2ef515[_0x1b37da(0x1c0)](_0x5a7f83=>_0x517810[_0x1b37da(0x1c0)](_0x3acc67=>_univerjs_core['Rectangle']['intersects'](_0x5a7f83,_0x3acc67))))return{'error':new Error(_0x1b37da(0x1f4))};return _0x33d598;}},setRangeProtectionWithSetNumfmt={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3f8)]['id'],'handler':(_0x2853e0,_0x12d4e7)=>{const _0x2ebd98=_0x4fd226,_0x4908d0={'m1Prime':_0x2853e0,'m2Prime':_0x12d4e7};if(_0x2853e0[_0x2ebd98(0x235)][_0x2ebd98(0x3cc)]!==_0x12d4e7[_0x2ebd98(0x235)]['unitId']||_0x2853e0[_0x2ebd98(0x235)][_0x2ebd98(0x303)]!==_0x12d4e7[_0x2ebd98(0x235)][_0x2ebd98(0x303)])return _0x4908d0;return{'error':new Error(_0x2ebd98(0x2df))};}},setRangeProtectionWithSetRangeProtection={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'handler':(_0x560132,_0x5dd46a)=>{const _0x57e12d=_0x4fd226,_0x36e40c={'m1Prime':_0x560132,'m2Prime':_0x5dd46a};if(_0x560132[_0x57e12d(0x235)][_0x57e12d(0x3cc)]!==_0x5dd46a[_0x57e12d(0x235)][_0x57e12d(0x3cc)]||_0x560132[_0x57e12d(0x235)][_0x57e12d(0x303)]!==_0x5dd46a[_0x57e12d(0x235)][_0x57e12d(0x303)])return _0x36e40c;const _0x46822b=_0x560132[_0x57e12d(0x235)]['rule'][_0x57e12d(0x3e4)],_0xf96558=_0x5dd46a[_0x57e12d(0x235)][_0x57e12d(0x351)][_0x57e12d(0x3e4)];if(_0x46822b['some'](_0x1c812e=>_0xf96558['some'](_0x5d9b9c=>_univerjs_core[_0x57e12d(0x394)][_0x57e12d(0x2da)](_0x1c812e,_0x5d9b9c))))return{'error':new Error(_0x57e12d(0x336))};return _0x36e40c;}},setRangeProtectionWithSetRangeValue={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x35c)]['id'],'handler':(_0x513c69,_0x5a53e4)=>{const _0xaacd5d=_0x4fd226,_0x52a33f={'m1Prime':_0x513c69,'m2Prime':_0x5a53e4};if(_0x513c69[_0xaacd5d(0x235)][_0xaacd5d(0x3cc)]!==_0x5a53e4[_0xaacd5d(0x235)]['unitId']||_0x513c69[_0xaacd5d(0x235)]['subUnitId']!==_0x5a53e4[_0xaacd5d(0x235)][_0xaacd5d(0x303)])return _0x52a33f;const _0x60f771=_0x513c69[_0xaacd5d(0x235)][_0xaacd5d(0x351)][_0xaacd5d(0x3e4)],_0x40804d=new _univerjs_core[(_0xaacd5d(0x2ed))](_0x5a53e4[_0xaacd5d(0x235)][_0xaacd5d(0x2f8)])[_0xaacd5d(0x277)]();if(_0x60f771['some'](_0x289819=>_univerjs_core[_0xaacd5d(0x394)][_0xaacd5d(0x2da)](_0x289819,_0x40804d)))return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20set\x20range\x20value')};return _0x52a33f;}},setRangeProtectionWithSetWorksheetColWidth={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x24c)]['id'],'handler':(_0x18f33c,_0x1833d0)=>{const _0xe58b01=_0x4fd226,_0x487032={'m1Prime':_0x18f33c,'m2Prime':_0x1833d0};if(_0x18f33c[_0xe58b01(0x235)]['unitId']!==_0x1833d0['params'][_0xe58b01(0x3cc)]||_0x18f33c['params'][_0xe58b01(0x303)]!==_0x1833d0['params'][_0xe58b01(0x303)])return _0x487032;const _0x1972ec=_0x18f33c[_0xe58b01(0x235)][_0xe58b01(0x351)]['ranges'],_0x594a4b=_0x1833d0[_0xe58b01(0x235)][_0xe58b01(0x3e4)];if(_0x1972ec[_0xe58b01(0x1c0)](_0xfd9812=>_0x594a4b[_0xe58b01(0x1c0)](_0x1b8902=>_univerjs_core['Rectangle'][_0xe58b01(0x2da)](_0xfd9812,_0x1b8902))))return{'error':new Error(_0xe58b01(0x1cb))};return _0x487032;}},setRangeProtectionWithUpdateComment={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_thread_comment[_0x4fd226(0x39d)]['id'],'handler':(_0x231630,_0xee6001)=>{const _0x577ef5=_0x4fd226,_0x5545a5={'m1Prime':_0x231630,'m2Prime':_0xee6001};if(_0x231630[_0x577ef5(0x235)][_0x577ef5(0x3cc)]!==_0xee6001[_0x577ef5(0x235)][_0x577ef5(0x3cc)]||_0x231630[_0x577ef5(0x235)]['subUnitId']!==_0xee6001[_0x577ef5(0x235)][_0x577ef5(0x303)])return _0x5545a5;return{'error':new Error(_0x577ef5(0x353))};}},setRangeProtectionWithUpdateDataValidation={'m1':_univerjs_sheets[_0x4fd226(0x3f3)]['id'],'m2':_univerjs_data_validation['UpdateDataValidationMutation']['id'],'handler':(_0x5747ce,_0x2408bc)=>{const _0x20d292=_0x4fd226,_0x10bcca={'m1Prime':_0x5747ce,'m2Prime':_0x2408bc};if(_0x5747ce[_0x20d292(0x235)][_0x20d292(0x3cc)]!==_0x2408bc['params'][_0x20d292(0x3cc)]||_0x5747ce[_0x20d292(0x235)]['subUnitId']!==_0x2408bc['params'][_0x20d292(0x303)])return _0x10bcca;return{'error':new Error('set\x20range\x20protection\x20is\x20conflict\x20with\x20update\x20data\x20validation\x20rule')};}},setRangeValueMutationWithAddMerge={'m1':_univerjs_sheets['SetRangeValuesMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x340)]['id'],'handler'(_0x1af8a2,_0x223059){const _0x4089bb=_0x4fd226,_0x39395e=addWorksheetMergeMutationWithSetRangeValues['handler'](_0x223059,_0x1af8a2);if(isTransformMutationSuccess(_0x39395e))return{'m1Prime':_0x39395e[_0x4089bb(0x3d9)],'m2Prime':_0x39395e[_0x4089bb(0x253)]};else return _0x39395e;}},setRangeValuesWithMoveRange={'m1':_univerjs_sheets[_0x4fd226(0x35c)]['id'],'m2':_univerjs_sheets['MoveRangeMutation']['id'],'handler'(_0xcc77a0,_0x2b0b76){const _0x36ce2d=_0x4fd226,_0x36ffb1={'m1Prime':_0xcc77a0,'m2Prime':_0x2b0b76};if(_0xcc77a0[_0x36ce2d(0x235)][_0x36ce2d(0x3cc)]!==_0x2b0b76[_0x36ce2d(0x235)][_0x36ce2d(0x3cc)])return _0x36ffb1;const _0x288595=new _univerjs_core[(_0x36ce2d(0x2ed))](_0xcc77a0[_0x36ce2d(0x235)][_0x36ce2d(0x2f8)])[_0x36ce2d(0x277)](),_0x2fb700=new _univerjs_core[(_0x36ce2d(0x2ed))](_0x2b0b76[_0x36ce2d(0x235)][_0x36ce2d(0x270)][_0x36ce2d(0x355)])['getDataRange'](),_0x129ced=new _univerjs_core['ObjectMatrix'](_0x2b0b76[_0x36ce2d(0x235)]['to'][_0x36ce2d(0x355)])[_0x36ce2d(0x277)]();if(_0xcc77a0['params'][_0x36ce2d(0x303)]===_0x2b0b76[_0x36ce2d(0x235)][_0x36ce2d(0x270)][_0x36ce2d(0x303)]&&_univerjs_core[_0x36ce2d(0x394)][_0x36ce2d(0x2da)](_0x288595,_0x2fb700)||_0xcc77a0[_0x36ce2d(0x235)][_0x36ce2d(0x303)]===_0x2b0b76[_0x36ce2d(0x235)]['to'][_0x36ce2d(0x303)]&&_univerjs_core['Rectangle']['intersects'](_0x288595,_0x129ced))return{'error':new Error(_0x36ce2d(0x2bb))};return _0x36ffb1;}},setRangeValuesMutationWithReorderRange={'m1':_univerjs_sheets['SetRangeValuesMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x201)]['id'],'handler'(_0xeef353,_0x4e68c5){const _0x4a9fd9=_0x4fd226,_0x1b5af9={'m1Prime':_0xeef353,'m2Prime':_0x4e68c5};if(_0xeef353[_0x4a9fd9(0x235)][_0x4a9fd9(0x3cc)]!==_0x4e68c5[_0x4a9fd9(0x235)]['unitId']||_0xeef353[_0x4a9fd9(0x235)][_0x4a9fd9(0x303)]!==_0x4e68c5[_0x4a9fd9(0x235)][_0x4a9fd9(0x303)])return _0x1b5af9;const _0x3e5f98=_univerjs_core[_0x4a9fd9(0x1d5)][_0x4a9fd9(0x28e)](_0xeef353),{cellValue:_0x3bc5b4}=_0x3e5f98['params'],_0x4ca00b=new _univerjs_core['ObjectMatrix'](_0x3bc5b4),{range:_0x4ded14}=_0x4e68c5[_0x4a9fd9(0x235)],_0x1910f5=new Map();for(let _0x2f6a4d=_0x4ded14[_0x4a9fd9(0x28f)];_0x2f6a4d<=_0x4ded14[_0x4a9fd9(0x337)];_0x2f6a4d++)for(let _0x2dec2b=_0x4ded14[_0x4a9fd9(0x26f)];_0x2dec2b<=_0x4ded14['endRow'];_0x2dec2b++){var _0x231ef8;if((_0x3bc5b4===null||_0x3bc5b4===void 0x0||(_0x231ef8=_0x3bc5b4[_0x2dec2b])===null||_0x231ef8===void 0x0?void 0x0:_0x231ef8[_0x2f6a4d])!==void 0x0){var _0x53d038;const _0x37dd02=(_0x53d038=_0x4e68c5[_0x4a9fd9(0x235)][_0x4a9fd9(0x339)][_0x2dec2b])!==null&&_0x53d038!==void 0x0?_0x53d038:_0x2dec2b;if(_0x37dd02!==_0x2dec2b){if(!_0x1910f5[_0x4a9fd9(0x22a)](_0x37dd02))_0x1910f5[_0x4a9fd9(0x2bd)](_0x37dd02,new Map());_0x1910f5[_0x4a9fd9(0x263)](_0x37dd02)['set'](_0x2f6a4d,_0x3bc5b4[_0x2dec2b][_0x2f6a4d]),_0x4ca00b['realDeleteValue'](_0x2dec2b,_0x2f6a4d);}}}return _0x1910f5[_0x4a9fd9(0x222)]((_0x135b1d,_0x1cb1a0)=>{_0x135b1d['forEach']((_0x37518f,_0x1e036a)=>{_0x4ca00b['setValue'](_0x1cb1a0,_0x1e036a,_0x37518f);});}),{'m1Prime':_0x3e5f98,'m2Prime':_0x4e68c5};}},mergeStyles=(_0x4c0e5f,_0xd1cde1)=>{if(!_0x4c0e5f)return _0xd1cde1;if(!_0xd1cde1)return _0x4c0e5f;return{..._0x4c0e5f,..._0xd1cde1};},setRangeValuesMutationWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x35c)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x35c)]['id'],'handler'(_0x48fc75,_0x13de63){const _0x4437d3=_0x4fd226,_0x375a0f={'m1Prime':_0x48fc75,'m2Prime':_0x13de63};if(_0x48fc75['params'][_0x4437d3(0x3cc)]!==_0x13de63[_0x4437d3(0x235)][_0x4437d3(0x3cc)]||_0x48fc75['params']['subUnitId']!==_0x13de63[_0x4437d3(0x235)][_0x4437d3(0x303)])return _0x375a0f;const _0x5d208e=_univerjs_core[_0x4437d3(0x1d5)][_0x4437d3(0x28e)](_0x48fc75),_0x46faa0=_univerjs_core['Tools'][_0x4437d3(0x28e)](_0x13de63),_0x292e5b=new _univerjs_core[(_0x4437d3(0x2ed))](_0x5d208e[_0x4437d3(0x235)][_0x4437d3(0x2f8)]),_0x8c0220=_0x292e5b['getDataRange'](),_0x521008=new _univerjs_core['ObjectMatrix'](_0x13de63['params'][_0x4437d3(0x2f8)]),_0xfb53c5=_0x521008[_0x4437d3(0x277)]();if(!_univerjs_core[_0x4437d3(0x394)][_0x4437d3(0x2da)](_0x8c0220,_0xfb53c5))return _0x375a0f;return _0x292e5b['forValue']((_0x592e2a,_0x1cea0d,_0x145740)=>{const _0x524f6a=_0x4437d3,_0x3bc8b4=_0x521008[_0x524f6a(0x300)](_0x592e2a,_0x1cea0d);if(_0x145740&&_0x3bc8b4){var _0x16b066,_0x5ec4b9;_0x3bc8b4['s']=mergeStyles(_univerjs_core['Tools'][_0x524f6a(0x28e)](typeof _0x145740['s']===_0x524f6a(0x349)?(_0x16b066=_0x5d208e[_0x524f6a(0x235)][_0x524f6a(0x1f1)])===null||_0x16b066===void 0x0?void 0x0:_0x16b066[_0x145740['s']]:_0x145740['s']),_univerjs_core['Tools'][_0x524f6a(0x28e)](typeof _0x3bc8b4['s']===_0x524f6a(0x349)?(_0x5ec4b9=_0x46faa0['params'][_0x524f6a(0x1f1)])===null||_0x5ec4b9===void 0x0?void 0x0:_0x5ec4b9[_0x3bc8b4['s']]:_0x3bc8b4['s'])),_0x521008[_0x524f6a(0x408)](_0x592e2a,_0x1cea0d,_0x3bc8b4),_0x292e5b[_0x524f6a(0x3a3)](_0x592e2a,_0x1cea0d);}}),_0x5d208e['params'][_0x4437d3(0x2f8)]=_0x292e5b[_0x4437d3(0x414)](),_0x46faa0[_0x4437d3(0x235)][_0x4437d3(0x2f8)]=_0x521008[_0x4437d3(0x414)](),{'m1Prime':_0x5d208e,'m2Prime':_0x46faa0};}},setRowDataMutationWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x361)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x361)]['id'],'handler'(_0x3eab3e,_0x28fe19){const _0x44c6aa=_0x4fd226,_0x4c049d={'m1Prime':_0x3eab3e,'m2Prime':_0x28fe19};if(_0x3eab3e[_0x44c6aa(0x235)][_0x44c6aa(0x3cc)]!==_0x28fe19[_0x44c6aa(0x235)]['unitId']||_0x3eab3e['params'][_0x44c6aa(0x303)]!==_0x28fe19[_0x44c6aa(0x235)]['subUnitId'])return _0x4c049d;const _0x1dfeb6=_0x3eab3e[_0x44c6aa(0x235)][_0x44c6aa(0x1f0)],_0x2a0d00=_0x28fe19[_0x44c6aa(0x235)][_0x44c6aa(0x1f0)],_0xcc09e7={},_0x536be1=_univerjs_core[_0x44c6aa(0x1d5)]['deepClone'](_0x3eab3e),_0x2c0a88=new Set([...Object[_0x44c6aa(0x2fd)](_0x1dfeb6)[_0x44c6aa(0x208)](Number),...Object[_0x44c6aa(0x2fd)](_0x2a0d00)[_0x44c6aa(0x208)](Number)]);for(const _0x9ba431 of _0x2c0a88){const _0x1b3378=_0x1dfeb6[_0x9ba431],_0x31c348=_0x2a0d00[_0x9ba431];if(_0x1b3378&&_0x31c348)_0xcc09e7[_0x9ba431]={..._0x1b3378,..._0x31c348};else{if(_0x1b3378)_0xcc09e7[_0x9ba431]=_0x1b3378;else{if(_0x31c348)_0xcc09e7[_0x9ba431]=_0x31c348;}}}return _0x536be1[_0x44c6aa(0x235)][_0x44c6aa(0x1f0)]=_0xcc09e7,{'m1Prime':_0x536be1,'m2Prime':_0x28fe19};}},setSheetsFilterCriteriaWithMoveRange={'m1':_univerjs_sheets_filter[_0x4fd226(0x319)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x35a)]['id'],'handler'(_0x2f15ee,_0x3bcc8d){const _0x2e49ac=_0x4fd226,_0x3bb7ed={'m1Prime':_0x2f15ee,'m2Prime':_0x3bcc8d};if(_0x2f15ee['params'][_0x2e49ac(0x3cc)]!==_0x3bcc8d[_0x2e49ac(0x235)][_0x2e49ac(0x3cc)]||_0x2f15ee[_0x2e49ac(0x235)][_0x2e49ac(0x303)]!==_0x3bcc8d[_0x2e49ac(0x235)][_0x2e49ac(0x270)]['subUnitId']&&_0x2f15ee[_0x2e49ac(0x235)][_0x2e49ac(0x303)]!==_0x3bcc8d['params']['to'][_0x2e49ac(0x303)])return _0x3bb7ed;let _0x4ffa7b=null;if(_0x2f15ee[_0x2e49ac(0x235)][_0x2e49ac(0x303)]===_0x3bcc8d[_0x2e49ac(0x235)][_0x2e49ac(0x270)]['subUnitId'])new _univerjs_core[(_0x2e49ac(0x2ed))](_0x3bcc8d[_0x2e49ac(0x235)][_0x2e49ac(0x270)][_0x2e49ac(0x355)])[_0x2e49ac(0x398)]((_0x4018b2,_0x93299)=>{const _0x4a703d=_0x2e49ac;if(_0x93299===_0x2f15ee[_0x4a703d(0x235)][_0x4a703d(0x3ed)])_0x4ffa7b=_0x3bcc8d['params']['from'][_0x4a703d(0x303)];});if(_0x2f15ee[_0x2e49ac(0x235)][_0x2e49ac(0x303)]===_0x3bcc8d[_0x2e49ac(0x235)]['to'][_0x2e49ac(0x303)])new _univerjs_core[(_0x2e49ac(0x2ed))](_0x3bcc8d[_0x2e49ac(0x235)]['to']['value'])[_0x2e49ac(0x398)]((_0x2038b4,_0x20c429)=>{const _0x293c1e=_0x2e49ac;if(_0x20c429===_0x2f15ee['params'][_0x293c1e(0x3ed)])_0x4ffa7b=_0x3bcc8d[_0x293c1e(0x235)]['to'][_0x293c1e(0x303)];});if(_0x4ffa7b)return{'m1Prime':_0x2f15ee,'m2Prime':[_0x3bcc8d,{'id':_univerjs_sheets_filter[_0x2e49ac(0x3f6)]['id'],'params':{'unitId':_0x3bcc8d[_0x2e49ac(0x235)][_0x2e49ac(0x3cc)],'subUnitId':_0x4ffa7b}}]};return _0x3bb7ed;}},setSheetsFilterCriteriaWithRemoveSheetsFilter={'m1':_univerjs_sheets_filter['SetSheetsFilterCriteriaMutation']['id'],'m2':_univerjs_sheets_filter[_0x4fd226(0x290)]['id'],'handler'(_0xe0e8ab,_0x442609){const _0xffe67f=_0x4fd226,_0x36a775={'m1Prime':_0xe0e8ab,'m2Prime':_0x442609};if(_0xe0e8ab[_0xffe67f(0x235)][_0xffe67f(0x3cc)]!==_0x442609[_0xffe67f(0x235)][_0xffe67f(0x3cc)]||_0xe0e8ab['params']['subUnitId']!==_0x442609[_0xffe67f(0x235)][_0xffe67f(0x303)])return _0x36a775;return{'m1Prime':[],'m2Prime':[_0x442609]};}},setSheetsFilterCriteriaWithSetRangeValues={'m1':_univerjs_sheets_filter[_0x4fd226(0x319)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x35c)]['id'],'handler'(_0xc523e9,_0x55b8dc){const _0x4d1f82=_0x4fd226,_0x3c9d67={'m1Prime':_0xc523e9,'m2Prime':_0x55b8dc};if(_0xc523e9[_0x4d1f82(0x235)][_0x4d1f82(0x3cc)]!==_0x55b8dc[_0x4d1f82(0x235)][_0x4d1f82(0x3cc)]||_0xc523e9['params'][_0x4d1f82(0x303)]!==_0x55b8dc[_0x4d1f82(0x235)]['subUnitId'])return _0x3c9d67;let _0x35b925=![];new _univerjs_core[(_0x4d1f82(0x2ed))](_0x55b8dc[_0x4d1f82(0x235)][_0x4d1f82(0x2f8)])['forValue']((_0x39c91a,_0x46c4b8)=>{if(_0x46c4b8===_0xc523e9['params']['col'])_0x35b925=!![];});if(_0x35b925)return{'m1Prime':_0xc523e9,'m2Prime':[_0x55b8dc,{'id':_univerjs_sheets_filter[_0x4d1f82(0x3f6)]['id'],'params':{'unitId':_0x55b8dc[_0x4d1f82(0x235)][_0x4d1f82(0x3cc)],'subUnitId':_0x55b8dc['params'][_0x4d1f82(0x303)]}}]};return _0x3c9d67;}},setSheetsFilterCriteriaWithSelf={'m1':_univerjs_sheets_filter[_0x4fd226(0x319)]['id'],'m2':_univerjs_sheets_filter[_0x4fd226(0x319)]['id'],'handler'(_0x6a862a,_0x4657e5){const _0x246f2c=_0x4fd226,_0x5eb4ba={'m1Prime':_0x6a862a,'m2Prime':_0x4657e5};if(_0x6a862a[_0x246f2c(0x235)]['unitId']!==_0x4657e5[_0x246f2c(0x235)]['unitId']||_0x6a862a[_0x246f2c(0x235)][_0x246f2c(0x303)]!==_0x4657e5[_0x246f2c(0x235)]['subUnitId']||_0x6a862a[_0x246f2c(0x235)]['col']!==_0x4657e5[_0x246f2c(0x235)][_0x246f2c(0x3ed)])return _0x5eb4ba;return{'m1Prime':[],'m2Prime':[_0x4657e5]};}},setSheetsFilterRangeWithRemoveSheetsFilter={'m1':_univerjs_sheets_filter[_0x4fd226(0x22f)]['id'],'m2':_univerjs_sheets_filter[_0x4fd226(0x290)]['id'],'handler'(_0x535a31,_0x189fb4){const _0x50491f=_0x4fd226,_0x4cdb1b={'m1Prime':_0x535a31,'m2Prime':_0x189fb4};if(_0x535a31[_0x50491f(0x235)][_0x50491f(0x3cc)]!==_0x189fb4[_0x50491f(0x235)]['unitId']||_0x535a31[_0x50491f(0x235)]['subUnitId']!==_0x189fb4[_0x50491f(0x235)]['subUnitId'])return _0x4cdb1b;return{'m1Prime':[],'m2Prime':[_0x189fb4]};}},setSheetsFilterRangeWithSelf={'m1':_univerjs_sheets_filter[_0x4fd226(0x22f)]['id'],'m2':_univerjs_sheets_filter[_0x4fd226(0x22f)]['id'],'handler'(_0x1dcba0,_0x5e42fe){const _0x5bdb78=_0x4fd226,_0x104dc5={'m1Prime':_0x1dcba0,'m2Prime':_0x5e42fe};if(_0x1dcba0[_0x5bdb78(0x235)][_0x5bdb78(0x3cc)]!==_0x5e42fe[_0x5bdb78(0x235)][_0x5bdb78(0x3cc)]||_0x1dcba0[_0x5bdb78(0x235)][_0x5bdb78(0x303)]!==_0x5e42fe['params'][_0x5bdb78(0x303)])return _0x104dc5;return{'m1Prime':[],'m2Prime':[_0x5e42fe]};}},setTabColorMutationWithSelf={'m1':_univerjs_sheets['SetTabColorMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x29b)]['id'],'handler'(_0x4c9c36,_0x418041){const _0x597ea3=_0x4fd226;if(_0x4c9c36[_0x597ea3(0x235)]['unitId']!==_0x418041[_0x597ea3(0x235)][_0x597ea3(0x3cc)]||_0x4c9c36['params']['subUnitId']!==_0x418041['params']['subUnitId'])return{'m1Prime':_0x4c9c36,'m2Prime':_0x418041};return{'m1Prime':[],'m2Prime':_0x418041};}},setWorksheetColWidthMutationWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x24c)]['id'],'m2':_univerjs_sheets['SetWorksheetColWidthMutation']['id'],'handler'(_0x596418,_0x3d08d4){const _0x2e8a5e=_0x4fd226,_0x34e748={'m1Prime':_0x596418,'m2Prime':_0x3d08d4};if(_0x596418[_0x2e8a5e(0x235)][_0x2e8a5e(0x3cc)]!==_0x3d08d4['params'][_0x2e8a5e(0x3cc)]||_0x596418[_0x2e8a5e(0x235)]['subUnitId']!==_0x3d08d4[_0x2e8a5e(0x235)]['subUnitId'])return _0x34e748;const _0x262590=_0x596418[_0x2e8a5e(0x235)][_0x2e8a5e(0x3e4)],_0x1985c6=[],_0x285e46=_univerjs_core['Tools'][_0x2e8a5e(0x28e)](_0x596418),_0x448d6a=_0x3d08d4['params']['ranges'];_0x262590[_0x2e8a5e(0x222)](_0x32b1e8=>{const _0x387581=_0x2e8a5e,_0x29796b=lineSubtractLines({'start':_0x32b1e8[_0x387581(0x28f)],'end':_0x32b1e8['endColumn']},_0x448d6a['map'](_0x33125=>({'start':_0x33125['startColumn'],'end':_0x33125['endColumn']})))[_0x387581(0x208)](_0xf8204a=>({..._0x32b1e8,'startColumn':_0xf8204a[_0x387581(0x24d)],'endColumn':_0xf8204a[_0x387581(0x1f8)]}));_0x1985c6['push'](..._0x29796b);}),_0x285e46[_0x2e8a5e(0x235)]['ranges']=_0x1985c6;const {colWidth:_0x4212f4}=_0x285e46[_0x2e8a5e(0x235)],{colWidth:_0x358059}=_0x3d08d4[_0x2e8a5e(0x235)],_0x271573=_0x4212f4,_0x3b80c5=_0x358059;if(typeof _0x271573!==_0x2e8a5e(0x2af)){if(typeof _0x3b80c5!=='number')Object[_0x2e8a5e(0x2fd)](_0x3b80c5)[_0x2e8a5e(0x208)](Number)[_0x2e8a5e(0x222)](_0x3d7685=>{if(_0x271573[_0x3d7685]!=null)delete _0x271573[_0x3d7685];});else _0x448d6a['forEach'](_0x3c3b11=>{const _0x51a40c=_0x2e8a5e;for(let _0x166c74=_0x3c3b11[_0x51a40c(0x28f)];_0x166c74<=_0x3c3b11['endColumn'];_0x166c74++)delete _0x271573[_0x166c74];});}return{'m1Prime':_0x285e46,'m2Prime':_0x3d08d4};}},setWorksheetNameWithInsertSheet={'m1':_univerjs_sheets[_0x4fd226(0x1d7)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x1ee)]['id'],'handler'(_0x33c0c5,_0x2e94e9){const _0x15c568=_0x4fd226;if(_0x33c0c5[_0x15c568(0x235)][_0x15c568(0x3cc)]!==_0x2e94e9[_0x15c568(0x235)][_0x15c568(0x3cc)])return{'m1Prime':_0x33c0c5,'m2Prime':_0x2e94e9};if(_0x33c0c5[_0x15c568(0x235)][_0x15c568(0x303)]===_0x2e94e9[_0x15c568(0x235)][_0x15c568(0x237)]['id'])return{'error':new Error('SetWorksheetNameMutation\x20conflicts\x20with\x20InsertSheetMutation\x20on\x20the\x20same\x20worksheet\x20ID.')};if(_0x33c0c5[_0x15c568(0x235)][_0x15c568(0x1e0)]===_0x2e94e9[_0x15c568(0x235)][_0x15c568(0x237)][_0x15c568(0x1e0)]){const _0x4574af={'id':_univerjs_sheets[_0x15c568(0x1d7)]['id'],'params':{'unitId':_0x33c0c5['params'][_0x15c568(0x3cc)],'subUnitId':_0x33c0c5[_0x15c568(0x235)][_0x15c568(0x303)],'name':_0x33c0c5[_0x15c568(0x235)][_0x15c568(0x1e0)]+'\x20(1)'}};return{'m1Prime':_0x4574af,'m2Prime':[_0x4574af,_0x2e94e9]};}return{'m1Prime':[],'m2Prime':[]};}},setWorksheetNameMutationWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x1d7)]['id'],'m2':_univerjs_sheets['SetWorksheetNameMutation']['id'],'handler'(_0x3fea17,_0x35bb03){const _0x2e4b01=_0x4fd226;if(_0x3fea17[_0x2e4b01(0x235)][_0x2e4b01(0x3cc)]!==_0x35bb03['params']['unitId'])return{'m1Prime':_0x3fea17,'m2Prime':_0x35bb03};if(_0x3fea17[_0x2e4b01(0x235)][_0x2e4b01(0x303)]===_0x35bb03[_0x2e4b01(0x235)][_0x2e4b01(0x303)]){if(_0x3fea17[_0x2e4b01(0x235)][_0x2e4b01(0x1e0)]!==_0x35bb03[_0x2e4b01(0x235)][_0x2e4b01(0x1e0)])return{'m1Prime':[],'m2Prime':_0x35bb03};return{'m1Prime':[],'m2Prime':[]};}else{if(_0x3fea17['params']['name']!==_0x35bb03[_0x2e4b01(0x235)]['name'])return{'m1Prime':[],'m2Prime':[]};const _0x3d0a47={'id':_univerjs_sheets[_0x2e4b01(0x1d7)]['id'],'params':{'unitId':_0x35bb03['params'][_0x2e4b01(0x3cc)],'subUnitId':_0x35bb03[_0x2e4b01(0x235)][_0x2e4b01(0x303)],'name':_0x35bb03[_0x2e4b01(0x235)][_0x2e4b01(0x1e0)]+'\x20(1)'}};return{'m1Prime':[_0x3d0a47,_0x3fea17],'m2Prime':_0x3d0a47};}}},setWorksheetRowAutoHeightMutationWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x2cc)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x2cc)]['id'],'handler'(_0x500099,_0x440786){const _0x3a121b=_0x4fd226,_0x32b774={'m1Prime':_0x500099,'m2Prime':_0x440786};if(_0x500099[_0x3a121b(0x235)][_0x3a121b(0x3cc)]!==_0x440786[_0x3a121b(0x235)][_0x3a121b(0x3cc)]||_0x500099['params']['subUnitId']!==_0x440786['params'][_0x3a121b(0x303)])return _0x32b774;const _0x40e653=_0x500099['params']['rowsAutoHeightInfo'],_0xba204d=[],_0x3292f0=_univerjs_core['Tools']['deepClone'](_0x500099),_0x5a71f5=_0x440786[_0x3a121b(0x235)][_0x3a121b(0x2f2)];return _0x40e653['forEach'](_0x9436b2=>{const _0x1800b9=_0x3a121b;if(!_0x5a71f5[_0x1800b9(0x32d)](_0x25a70f=>_0x25a70f[_0x1800b9(0x1c4)]===_0x9436b2['row']))_0xba204d[_0x1800b9(0x285)](_0x9436b2);}),_0x3292f0[_0x3a121b(0x235)][_0x3a121b(0x2f2)]=_0xba204d,{'m1Prime':_0x3292f0,'m2Prime':_0x440786};}},setWorksheetRowHeightMutationWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x1bb)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x1bb)]['id'],'handler'(_0x5f468d,_0x2dfaf6){const _0x1ca433=_0x4fd226,_0x4304ae={'m1Prime':_0x5f468d,'m2Prime':_0x2dfaf6};if(_0x5f468d[_0x1ca433(0x235)]['unitId']!==_0x2dfaf6[_0x1ca433(0x235)][_0x1ca433(0x3cc)]||_0x5f468d['params'][_0x1ca433(0x303)]!==_0x2dfaf6[_0x1ca433(0x235)][_0x1ca433(0x303)])return _0x4304ae;const _0x3d4af7=_0x5f468d[_0x1ca433(0x235)][_0x1ca433(0x3e4)],_0x223b77=[],_0xf22893=_univerjs_core[_0x1ca433(0x1d5)]['deepClone'](_0x5f468d),_0x3537c6=_0x2dfaf6[_0x1ca433(0x235)][_0x1ca433(0x3e4)];_0x3d4af7[_0x1ca433(0x222)](_0x1849d8=>{const _0x3aff73=_0x1ca433,_0x30636d=lineSubtractLines({'start':_0x1849d8[_0x3aff73(0x26f)],'end':_0x1849d8[_0x3aff73(0x3e2)]},_0x3537c6[_0x3aff73(0x208)](_0x1d5d74=>({'start':_0x1d5d74['startRow'],'end':_0x1d5d74[_0x3aff73(0x3e2)]})))['map'](_0x430c0f=>({..._0x1849d8,'startRow':_0x430c0f[_0x3aff73(0x24d)],'endRow':_0x430c0f[_0x3aff73(0x1f8)]}));_0x223b77[_0x3aff73(0x285)](..._0x30636d);}),_0xf22893[_0x1ca433(0x235)][_0x1ca433(0x3e4)]=_0x223b77;const {rowHeight:_0x3a76ca}=_0xf22893[_0x1ca433(0x235)],{rowHeight:_0x5a15ba}=_0x2dfaf6[_0x1ca433(0x235)],_0x27d826=_0x3a76ca,_0x55d0a0=_0x5a15ba;if(typeof _0x27d826!=='number'){if(typeof _0x55d0a0!=='number')Object['keys'](_0x55d0a0)[_0x1ca433(0x208)](Number)[_0x1ca433(0x222)](_0x4c032f=>{if(_0x27d826[_0x4c032f]!=null)delete _0x27d826[_0x4c032f];});else _0x3537c6[_0x1ca433(0x222)](_0xf9ac6d=>{const _0x20d922=_0x1ca433;for(let _0x344626=_0xf9ac6d[_0x20d922(0x26f)];_0x344626<=_0xf9ac6d[_0x20d922(0x3e2)];_0x344626++)delete _0x27d826[_0x344626];});}return{'m1Prime':_0xf22893,'m2Prime':_0x2dfaf6};}},setWorksheetRowIsAutoHeightMutationWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x3b2)]['id'],'m2':_univerjs_sheets['SetWorksheetRowIsAutoHeightMutation']['id'],'handler'(_0x4b156f,_0x449e80){const _0xf06abc=_0x4fd226,_0x452d70={'m1Prime':_0x4b156f,'m2Prime':_0x449e80};if(_0x4b156f[_0xf06abc(0x235)][_0xf06abc(0x3cc)]!==_0x449e80[_0xf06abc(0x235)][_0xf06abc(0x3cc)]||_0x4b156f[_0xf06abc(0x235)][_0xf06abc(0x303)]!==_0x449e80[_0xf06abc(0x235)]['subUnitId'])return _0x452d70;const _0x1c9168=_0x4b156f['params']['ranges'],_0x359a63=[],_0xe2835e=_univerjs_core['Tools']['deepClone'](_0x4b156f),_0x3fa685=_0x449e80[_0xf06abc(0x235)][_0xf06abc(0x3e4)];_0x1c9168[_0xf06abc(0x222)](_0x39259a=>{const _0x22e22e=_0xf06abc,_0x16c073=lineSubtractLines({'start':_0x39259a[_0x22e22e(0x26f)],'end':_0x39259a[_0x22e22e(0x3e2)]},_0x3fa685['map'](_0xdd3cbf=>({'start':_0xdd3cbf[_0x22e22e(0x26f)],'end':_0xdd3cbf['endRow']})))[_0x22e22e(0x208)](_0x4de1bc=>({..._0x39259a,'startRow':_0x4de1bc[_0x22e22e(0x24d)],'endRow':_0x4de1bc[_0x22e22e(0x1f8)]}));_0x359a63['push'](..._0x16c073);}),_0xe2835e['params']['ranges']=_0x359a63;const {autoHeightInfo:_0x26b3da}=_0xe2835e[_0xf06abc(0x235)],{autoHeightInfo:_0x482f20}=_0x449e80[_0xf06abc(0x235)];if(typeof _0x26b3da!==_0xf06abc(0x2af)){if(typeof _0x482f20!==_0xf06abc(0x2af))Object[_0xf06abc(0x2fd)](_0x482f20)[_0xf06abc(0x208)](Number)[_0xf06abc(0x222)](_0x34b191=>{if(_0x26b3da[_0x34b191]!=null)delete _0x26b3da[_0x34b191];});else _0x3fa685[_0xf06abc(0x222)](_0x26377f=>{const _0x16fc77=_0xf06abc;for(let _0x167672=_0x26377f[_0x16fc77(0x26f)];_0x167672<=_0x26377f['endRow'];_0x167672++)delete _0x26b3da[_0x167672];});}return{'m1Prime':_0xe2835e,'m2Prime':_0x449e80};}},updateCommentRefWithSelf={'m1':_univerjs_thread_comment[_0x4fd226(0x27b)]['id'],'m2':_univerjs_thread_comment[_0x4fd226(0x27b)]['id'],'handler':(_0x5a0d14,_0x2f7d33)=>{const _0x5c0d27=_0x4fd226,_0x571b20=_0x5a0d14[_0x5c0d27(0x235)],_0x5bffae=_0x2f7d33['params'];if(_0x571b20['unitId']===_0x5bffae[_0x5c0d27(0x3cc)]&&_0x571b20[_0x5c0d27(0x303)]===_0x5bffae[_0x5c0d27(0x303)]&&_0x571b20['payload'][_0x5c0d27(0x3e1)]===_0x5bffae[_0x5c0d27(0x2c5)]['commentId'])return{'m1Prime':[],'m2Prime':_0x2f7d33};return{'m1Prime':_0x5a0d14,'m2Prime':_0x2f7d33};}},updateCommentWithSelf={'m1':_univerjs_thread_comment[_0x4fd226(0x39d)]['id'],'m2':_univerjs_thread_comment[_0x4fd226(0x39d)]['id'],'handler':(_0x5d4c4d,_0x2f4c2a)=>{const _0x35369c=_0x4fd226,_0x23be7d=_0x5d4c4d[_0x35369c(0x235)],_0xd85171=_0x2f4c2a['params'];if(_0x23be7d[_0x35369c(0x3cc)]===_0xd85171[_0x35369c(0x3cc)]&&_0x23be7d[_0x35369c(0x303)]===_0xd85171[_0x35369c(0x303)]&&_0x23be7d[_0x35369c(0x2c5)]['commentId']===_0xd85171[_0x35369c(0x2c5)]['commentId'])return{'m1Prime':[],'m2Prime':_0x2f4c2a};return{'m1Prime':_0x5d4c4d,'m2Prime':_0x2f4c2a};}},updateDataValidationMutationWithAdd={'m1':_univerjs_data_validation['UpdateDataValidationMutation']['id'],'m2':_univerjs_data_validation[_0x4fd226(0x2b6)]['id'],'handler':(_0x575b94,_0x2ee7ce)=>{const _0x3fbf30=_0x4fd226,_0xe2d299={'m1Prime':_0x575b94,'m2Prime':_0x2ee7ce},_0x48cddb=_0x575b94[_0x3fbf30(0x235)],_0x32c5b6=_0x2ee7ce[_0x3fbf30(0x235)];if(_0x48cddb[_0x3fbf30(0x3cc)]!==_0x32c5b6[_0x3fbf30(0x3cc)]||_0x48cddb[_0x3fbf30(0x303)]!==_0x32c5b6[_0x3fbf30(0x303)])return _0xe2d299;if(_0x575b94[_0x3fbf30(0x235)][_0x3fbf30(0x2c5)][_0x3fbf30(0x22b)]===_univerjs_data_validation[_0x3fbf30(0x27d)][_0x3fbf30(0x40f)]){const {unitId:_0x439083,subUnitId:_0x2da550}=_0x575b94[_0x3fbf30(0x235)],_0xeb8dee=Array['isArray'](_0x2ee7ce[_0x3fbf30(0x235)][_0x3fbf30(0x351)])?_0x2ee7ce[_0x3fbf30(0x235)][_0x3fbf30(0x351)]:[_0x2ee7ce[_0x3fbf30(0x235)][_0x3fbf30(0x351)]],_0x9e90ed=[],_0xabcb33=new _univerjs_core[(_0x3fbf30(0x2ed))](),_0x46065d=_0x575b94['params'][_0x3fbf30(0x2c5)][_0x3fbf30(0x2c5)];_0x46065d['forEach'](_0x920f9f=>{const _0x1520c1=_0x3fbf30;_univerjs_core[_0x1520c1(0x1c6)][_0x1520c1(0x301)](_0x920f9f,(_0x1b50b4,_0x464d0e)=>{_0xabcb33['setValue'](_0x1b50b4,_0x464d0e,_0x575b94['params']['ruleId']);});}),_0xeb8dee[_0x3fbf30(0x222)](_0x2500a0=>{const _0x20aae7=_0x3fbf30;_0x2500a0[_0x20aae7(0x3e4)]['forEach'](_0x949033=>{const _0x54b3ab=_0x20aae7;_univerjs_core[_0x54b3ab(0x1c6)][_0x54b3ab(0x301)](_0x949033,(_0x27f312,_0x578ebf)=>{const _0xd9c883=_0x54b3ab;_0xabcb33['setValue'](_0x27f312,_0x578ebf,_0x2500a0[_0xd9c883(0x2ac)]);});});});const _0x54d09d=_0x575b94[_0x3fbf30(0x235)]['ruleId'];if(!_0x54d09d)return _0xe2d299;const _0x34770d=(0x0,_univerjs_core[_0x3fbf30(0x391)])(_0xabcb33,_0x390222=>_0x390222===_0x54d09d);if(!(0x0,_univerjs_core['isRangesEqual'])(_0x34770d,_0x46065d)){if(_0x34770d[_0x3fbf30(0x367)])_0x9e90ed['push']({'id':_univerjs_data_validation[_0x3fbf30(0x1d4)]['id'],'params':{'unitId':_0x439083,'subUnitId':_0x2da550,'ruleId':_0x54d09d,'payload':{'type':_univerjs_data_validation[_0x3fbf30(0x27d)][_0x3fbf30(0x40f)],'payload':_0x34770d}}});else _0x9e90ed[_0x3fbf30(0x285)]({'id':_univerjs_data_validation[_0x3fbf30(0x2a3)]['id'],'params':{'unitId':_0x439083,'subUnitId':_0x2da550,'ruleId':_0x54d09d}});}return{'m1Prime':_0x9e90ed[_0x3fbf30(0x367)]?_0x9e90ed:[_0x575b94],'m2Prime':[..._0x9e90ed,_0x2ee7ce]};}return _0xe2d299;}},updateDataValidationMutationWithRemoveSelf={'m1':_univerjs_data_validation['UpdateDataValidationMutation']['id'],'m2':_univerjs_data_validation['RemoveDataValidationMutation']['id'],'handler':(_0x290b27,_0x198f2b)=>{const _0x349635=_0x4fd226,_0x48ab98={'m1Prime':_0x290b27,'m2Prime':_0x198f2b};if(_0x290b27[_0x349635(0x235)]['unitId']!==_0x198f2b[_0x349635(0x235)][_0x349635(0x3cc)]||_0x290b27[_0x349635(0x235)][_0x349635(0x303)]!==_0x198f2b[_0x349635(0x235)][_0x349635(0x303)])return _0x48ab98;const _0x337eb6=_0x290b27[_0x349635(0x235)]['ruleId'];if((Array['isArray'](_0x198f2b[_0x349635(0x235)]['ruleId'])?_0x198f2b[_0x349635(0x235)][_0x349635(0x32c)]:[_0x198f2b[_0x349635(0x235)][_0x349635(0x32c)]])[_0x349635(0x407)](_0x337eb6)>-0x1)return{'m1Prime':[],'m2Prime':_0x198f2b};return _0x48ab98;}},updateDataValidationMutationWithSelf={'m1':_univerjs_data_validation['UpdateDataValidationMutation']['id'],'m2':_univerjs_data_validation[_0x4fd226(0x1d4)]['id'],'handler':(_0x1492ca,_0x240c45)=>{const _0x4e45c5=_0x4fd226,_0x5ce4ff={'m1Prime':_0x1492ca,'m2Prime':_0x240c45},_0x4cd993=_0x1492ca[_0x4e45c5(0x235)],_0x3a3a58=_0x240c45[_0x4e45c5(0x235)];if(_0x4cd993[_0x4e45c5(0x3cc)]===_0x3a3a58['unitId']&&_0x4cd993['subUnitId']===_0x3a3a58['subUnitId']){const _0x32f542=_univerjs_core[_0x4e45c5(0x1d5)][_0x4e45c5(0x28e)](_0x240c45);if(_0x3a3a58[_0x4e45c5(0x32c)]===_0x4cd993[_0x4e45c5(0x32c)]&&_0x4cd993[_0x4e45c5(0x2c5)][_0x4e45c5(0x22b)]===_0x3a3a58[_0x4e45c5(0x2c5)][_0x4e45c5(0x22b)]){if(_0x4cd993[_0x4e45c5(0x2c5)]['type']===_univerjs_data_validation['UpdateRuleType'][_0x4e45c5(0x40f)]&&!(0x0,_univerjs_core['isRangesEqual'])(_0x4cd993['payload'][_0x4e45c5(0x2c5)],_0x3a3a58['payload'][_0x4e45c5(0x2c5)]))return{'error':new Error(_0x4e45c5(0x3ab))};return{'m1Prime':[],'m2Prime':_0x32f542};}if(_0x4cd993[_0x4e45c5(0x2c5)]['type']===_univerjs_data_validation[_0x4e45c5(0x27d)][_0x4e45c5(0x40f)]&&_0x3a3a58[_0x4e45c5(0x2c5)][_0x4e45c5(0x22b)]===_univerjs_data_validation[_0x4e45c5(0x27d)][_0x4e45c5(0x40f)]&&_0x3a3a58[_0x4e45c5(0x32c)]!==_0x4cd993[_0x4e45c5(0x32c)]){const _0x1927d2=new _univerjs_core[(_0x4e45c5(0x2ed))]();function _0x4080af(_0x2d1203,_0x1caafd){const _0xefa1fb=_0x4e45c5;_0x2d1203[_0xefa1fb(0x222)](_0x5613ea=>{const _0x289777=_0xefa1fb;_univerjs_core[_0x289777(0x1c6)][_0x289777(0x301)](_0x5613ea,(_0xf14fcc,_0x442ee5)=>{const _0x5ac21e=_0x289777;_0x1927d2[_0x5ac21e(0x408)](_0xf14fcc,_0x442ee5,_0x1caafd);});});}_0x4080af(_0x4cd993[_0x4e45c5(0x2c5)]['payload'],_0x4cd993['ruleId']),_0x4080af(_0x3a3a58[_0x4e45c5(0x2c5)][_0x4e45c5(0x2c5)],_0x3a3a58[_0x4e45c5(0x32c)]);const _0x1b424f=(0x0,_univerjs_core[_0x4e45c5(0x391)])(_0x1927d2,_0x414093=>_0x414093===_0x4cd993[_0x4e45c5(0x32c)]),_0x2a0f1c=!(0x0,_univerjs_core[_0x4e45c5(0x3ad)])(_0x4cd993[_0x4e45c5(0x2c5)]['payload'],_0x1b424f)?_0x1b424f[_0x4e45c5(0x367)]?[{'id':_univerjs_data_validation[_0x4e45c5(0x1d4)]['id'],'params':{..._0x4cd993,'payload':{'type':_univerjs_data_validation[_0x4e45c5(0x27d)]['RANGE'],'payload':_0x1b424f}}}]:[{'id':_univerjs_data_validation[_0x4e45c5(0x2a3)]['id'],'params':{..._0x4cd993,'payload':void 0x0}}]:[];return{'m1Prime':[_0x1492ca],'m2Prime':[..._0x2a0f1c,_0x240c45]};}}return _0x5ce4ff;}},updateHyperLinkRefWithSelf={'m1':_univerjs_sheets_hyper_link['UpdateHyperLinkRefMutation']['id'],'m2':_univerjs_sheets_hyper_link[_0x4fd226(0x274)]['id'],'handler':(_0x3a8f54,_0x3c5635)=>{const _0x2151a0=_0x4fd226,_0x415bd3=_0x3a8f54[_0x2151a0(0x235)],_0x2c7bc3=_0x3c5635[_0x2151a0(0x235)];if(_0x415bd3[_0x2151a0(0x3cc)]===_0x2c7bc3[_0x2151a0(0x3cc)]&&_0x415bd3['subUnitId']===_0x2c7bc3['subUnitId']&&_0x415bd3['id']===_0x2c7bc3['id'])return{'m2Prime':_0x3c5635,'m1Prime':[]};return{'m1Prime':_0x3a8f54,'m2Prime':_0x3c5635};}},updateHyperLinkWithSelf={'m1':_univerjs_sheets_hyper_link[_0x4fd226(0x34c)]['id'],'m2':_univerjs_sheets_hyper_link[_0x4fd226(0x34c)]['id'],'handler':(_0x1dde6c,_0x24d0a4)=>{const _0x567fb4=_0x4fd226,_0x1d691d=_0x1dde6c[_0x567fb4(0x235)],_0x469d31=_0x24d0a4['params'];if(_0x1d691d['unitId']===_0x469d31[_0x567fb4(0x3cc)]&&_0x1d691d[_0x567fb4(0x303)]===_0x469d31['subUnitId']&&_0x1d691d['id']===_0x469d31['id'])return{'m2Prime':_0x24d0a4,'m1Prime':[]};return{'m1Prime':_0x1dde6c,'m2Prime':_0x24d0a4};}},removeSheetMutationWithAddWorksheetMerge={'m1':_univerjs_sheets['RemoveSheetMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x340)]['id'],'handler'(_0x4c88fa,_0x1d4c59){const _0x223adb=_0x4fd226;if(_0x4c88fa['params'][_0x223adb(0x3cc)]!==_0x1d4c59[_0x223adb(0x235)]['unitId']||_0x4c88fa[_0x223adb(0x235)][_0x223adb(0x303)]!==_0x1d4c59[_0x223adb(0x235)]['subUnitId'])return{'m1Prime':_0x4c88fa,'m2Prime':_0x1d4c59};return{'m1Prime':_0x4c88fa,'m2Prime':[]};}},removeSheetMutationWithRemoveWorksheetMerge={'m1':_univerjs_sheets[_0x4fd226(0x321)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x3ff)]['id'],'handler'(_0x5797f9,_0x1f8987){const _0x2b1a15=_0x4fd226;if(_0x5797f9[_0x2b1a15(0x235)]['unitId']!==_0x1f8987[_0x2b1a15(0x235)][_0x2b1a15(0x3cc)]||_0x5797f9[_0x2b1a15(0x235)][_0x2b1a15(0x303)]!==_0x1f8987['params'][_0x2b1a15(0x303)])return{'m1Prime':_0x5797f9,'m2Prime':_0x1f8987};return{'m1Prime':_0x5797f9,'m2Prime':[]};}},InsertSheetMutationWithSelf={'m1':_univerjs_sheets[_0x4fd226(0x1ee)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x1ee)]['id'],'handler'(_0x49e55e,_0xd14537){const _0x801c0b=_0x4fd226;if(_0x49e55e[_0x801c0b(0x235)][_0x801c0b(0x237)]['id']===_0xd14537[_0x801c0b(0x235)]['sheet']['id'])return{'error':new Error(_0x801c0b(0x3c5))};const _0x1d8c42=_univerjs_core[_0x801c0b(0x1d5)]['deepClone'](_0x49e55e),_0x3cd0eb=_univerjs_core[_0x801c0b(0x1d5)][_0x801c0b(0x28e)](_0xd14537);if(_0x1d8c42[_0x801c0b(0x235)][_0x801c0b(0x210)]<=_0x3cd0eb[_0x801c0b(0x235)][_0x801c0b(0x210)])_0x3cd0eb[_0x801c0b(0x235)][_0x801c0b(0x210)]+=0x1;else{if(_0x1d8c42[_0x801c0b(0x235)][_0x801c0b(0x210)]>_0x3cd0eb[_0x801c0b(0x235)][_0x801c0b(0x210)])_0x1d8c42['params'][_0x801c0b(0x210)]+=0x1;}if(_0x49e55e['params'][_0x801c0b(0x237)][_0x801c0b(0x1e0)]===_0xd14537[_0x801c0b(0x235)][_0x801c0b(0x237)][_0x801c0b(0x1e0)]){const _0x3b83a4={'id':_univerjs_sheets['SetWorksheetNameMutation']['id'],'params':{'unitId':_0xd14537['params']['unitId'],'subUnitId':_0xd14537[_0x801c0b(0x235)]['sheet']['id'],'name':_0xd14537[_0x801c0b(0x235)][_0x801c0b(0x237)][_0x801c0b(0x1e0)]+'\x20(1)'}};return{'m1Prime':[_0x3b83a4,_0x1d8c42],'m2Prime':[_0x3cd0eb,_0x3b83a4]};}return{'m1Prime':_0x1d8c42,'m2Prime':_0x3cd0eb};}},RemoveSheetMutationWithOthers={'m1':_univerjs_sheets[_0x4fd226(0x321)]['id'],'m2':_0x4fd226(0x22c),'handler'(_0x158eb5,_0xdc7bf5){const _0x7a320=_0x4fd226;if(_0x158eb5[_0x7a320(0x235)][_0x7a320(0x3cc)]!==_0xdc7bf5['params']['unitId']||_0x158eb5['params']['subUnitId']!==_0xdc7bf5['params'][_0x7a320(0x303)])return{'m1Prime':_0x158eb5,'m2Prime':_0xdc7bf5};if(_0x158eb5['id']===_0xdc7bf5['id'])return{'m1Prime':[],'m2Prime':[]};return{'m1Prime':_0x158eb5,'m2Prime':[]};}},SetWorksheetOrderMutationWithSelf={'m1':_univerjs_sheets['SetWorksheetOrderMutation']['id'],'m2':_univerjs_sheets[_0x4fd226(0x1fc)]['id'],'handler'(_0x3410dd,_0x47a6fd){const _0x56df45=_0x4fd226,_0x3c222d=_univerjs_core[_0x56df45(0x1d5)]['deepClone'](_0x3410dd),_0x50c3d9=_univerjs_core[_0x56df45(0x1d5)][_0x56df45(0x28e)](_0x47a6fd),_0xa8547c={'error':new Error(_0x56df45(0x2a7))};if(_0x3410dd[_0x56df45(0x235)][_0x56df45(0x238)]===_0x47a6fd['params'][_0x56df45(0x238)])_0x3c222d['id']=_univerjs_sheets[_0x56df45(0x2fc)]['id'],_0x50c3d9[_0x56df45(0x235)][_0x56df45(0x238)]=_0x3410dd[_0x56df45(0x235)]['toOrder'];else{if(_0x3410dd['params']['fromOrder']===_0x3410dd['params'][_0x56df45(0x357)])_0x3c222d['id']=_univerjs_sheets[_0x56df45(0x2fc)]['id'];if(_0x47a6fd[_0x56df45(0x235)]['fromOrder']===_0x47a6fd['params'][_0x56df45(0x357)])_0x50c3d9['id']=_univerjs_sheets[_0x56df45(0x2fc)]['id'];const _0x44b7ad=[Math[_0x56df45(0x1f2)](_0x3410dd[_0x56df45(0x235)]['fromOrder'],_0x3410dd[_0x56df45(0x235)][_0x56df45(0x357)]),Math[_0x56df45(0x2aa)](_0x3410dd['params']['fromOrder'],_0x3410dd[_0x56df45(0x235)]['toOrder'])],_0x203fe0=[Math[_0x56df45(0x1f2)](_0x47a6fd['params']['fromOrder'],_0x47a6fd[_0x56df45(0x235)]['toOrder']),Math['max'](_0x47a6fd['params']['fromOrder'],_0x47a6fd[_0x56df45(0x235)][_0x56df45(0x357)])];if(_0x44b7ad[0x0]<=_0x203fe0[0x1]&&_0x44b7ad[0x1]>=_0x203fe0[0x0])return _0xa8547c;}return{'m1Prime':_0x3c222d,'m2Prime':_0x50c3d9};}},InsetSheetMutationWithSetWorksheetOrder={'m1':_univerjs_sheets[_0x4fd226(0x1ee)]['id'],'m2':_univerjs_sheets[_0x4fd226(0x1fc)]['id'],'handler'(_0x2aee8a,_0x105cd4){const _0x2f15f9=_0x4fd226,_0x7104eb=_univerjs_core[_0x2f15f9(0x1d5)][_0x2f15f9(0x28e)](_0x2aee8a),_0x23a88c=_univerjs_core[_0x2f15f9(0x1d5)][_0x2f15f9(0x28e)](_0x105cd4);if(_0x2aee8a[_0x2f15f9(0x235)][_0x2f15f9(0x210)]<=_0x105cd4[_0x2f15f9(0x235)]['order'])_0x23a88c[_0x2f15f9(0x235)]['order']+=0x1;return{'m1Prime':_0x7104eb,'m2Prime':_0x23a88c};}},OthersWithRemoveSheetMutation={'m1':_0x4fd226(0x22c),'m2':_univerjs_sheets['RemoveSheetMutation']['id'],'handler'(_0x70688c,_0x21c1ae){const _0x5e7783=_0x4fd226;if(_0x70688c[_0x5e7783(0x235)]['unitId']!==_0x21c1ae[_0x5e7783(0x235)]['unitId']||_0x70688c[_0x5e7783(0x235)][_0x5e7783(0x303)]!==_0x21c1ae[_0x5e7783(0x235)][_0x5e7783(0x303)])return{'m1Prime':_0x70688c,'m2Prime':_0x21c1ae};if(_0x70688c['id']===_0x21c1ae['id'])return{'m1Prime':[],'m2Prime':[]};return{'m1Prime':[],'m2Prime':_0x21c1ae};}},WorksheetAlgorithms=[InsertSheetMutationWithSelf,InsetSheetMutationWithSetWorksheetOrder,RemoveSheetMutationWithOthers,OthersWithRemoveSheetMutation,SetWorksheetOrderMutationWithSelf],SHEET_ALL_ALGORITHMS=[...WorksheetAlgorithms,insertColMutationWithSelf,insertColMutationWithMoveCol,insertColMutationWithMoveRange,insertColMutationWithRemoveCol,insertColMutationWithSetRangeValues,insertColMutationWithSetColData,insertColMutationWithSetColHidden,insertColMutationWithSetColVisible,insertColMutationWithSetWorksheetColWidth,insertColMutationWithSetNumfmt,insertColMutationWithRemoveNumfmt,insertColMutationWithSetSelection,insertRowMutationWithSelf,insertRowMutationWithMoveRange,insertRowMutationWithMoveRow,insertRowMutationWithRemoveRow,insertRowMutationWithSetRangeValues,insertRowMutationWithSetWorksheetRowAutoHeight,insertRowMutationWithSetWorksheetRowHeight,insertRowMutationWithSetWorksheetRowIsAutoHeight,insertRowMutationWithSetRowData,insertRowMutationWithSetRowHidden,insertRowMutationWithSetRowVisible,insertRowMutationWithSetNumfmt,insertRowMutationWithRemoveNumfmt,insertRowMutationWithSetSelection,moveColMutationWithSelf,moveColMutationWithSetRangeValues,moveColMutationWithMoveRange,moveColMutationWithSetColData,moveColMutationWithSetColHidden,moveColMutationWithSetColVisible,moveColMutationWithSetWorksheetColWidth,moveColMutationWithSetNumfmt,moveColMutationWithSetSelection,moveColMutationWithRemoveNumfmt,moveRowMutationWithSelf,moveRowMutationWithSetRangeValues,moveRowMutationWithMoveRange,moveRowMutationWithSetWorksheetRowAutoHeight,moveRowMutationWithSetWorksheetRowHeight,moveRowMutationWithSetWorksheetRowIsAutoHeight,moveRowMutationWithSetRowData,moveRowMutationWithSetRowHidden,moveRowMutationWithSetRowVisible,moveRowMutationWithSetNumfmt,moveRowMutationWithRemoveNumfmt,moveRowMutationWithSetSelection,moveRangeMutationWithSelf,moveRangeMutationWithSetNumfmt,moveRangeMutationWithRemoveNumfmt,removeColMutationWithSelf,removeColMutationWithMoveCol,removeColMutationWithMoveRange,removeColMutationWithSetRangeValues,removeColMutationWithSetColData,removeColMutationWithSetColHidden,removeColMutationWithSetColVisible,removeColMutationWithSetWorksheetColWidth,removeColMutationWithSetNumfmt,removeColMutationWithRemoveNumfmt,removeColMutationWithSetSelection,removeRowMutationWithSelf,removeRowMutationWithMoveRow,removeRowMutationWithMoveRange,removeRowMutationWithSetRangeValues,removeRowMutationWithSetWorksheetRowAutoHeight,removeRowMutationWithSetWorksheetRowHeight,removeRowMutationWithSetWorksheetRowIsAutoHeight,removeRowMutationWithSetRowData,removeRowMutationWithSetRowHidden,removeRowMutationWithSetRowVisible,removeRowMutationWithSetNumfmt,removeRowMutationWithRemoveNumfmt,removeRowMutationWithSetSelection,setRangeValuesMutationWithSelf,setRangeValuesWithMoveRange,setWorksheetNameWithInsertSheet,setWorksheetNameMutationWithSelf,setFrozenMutationWithSelf,setTabColorMutationWithSelf,setWorksheetColWidthMutationWithSelf,setWorksheetRowAutoHeightMutationWithSelf,setWorksheetRowHeightMutationWithSelf,setWorksheetRowIsAutoHeightMutationWithSelf,setRowDataMutationWithSelf,setColDataMutationWithSelf,setNumfmtMutationWithSelf,setNumfmtMutationWithRemoveNumfmt,removeNumfmtMutationWithSelf,removeNumfmtMutationWithSetNumfmt,addConditionalFormattingRuleMutationWithSelf,setConditionalFormattingRuleMutationWithSelf,moveConditionalFormattingRuleMutationWithSelf,deleteConditionalFormattingRuleMutationWithSelf,addDataValidationMutationWithSelf,updateDataValidationMutationWithSelf,removeDataValidationMutationWithSelf,moveColMutationWithAddDataValidation,moveRowMutationWithAddDataValidation,insertColMutationWithAddDataValidation,removeColMutationWithAddDataValidation,removeRowMutationWithAddDataValidation,moveColMutationWithUpdateDataValidation,moveRowMutationWithUpdateDataValidation,insertColMutationWithUpdateDataValidation,insertRowMutationWithUpdateDataValidation,removeColMutationWithUpdateDataValidation,removeRowMutationWithUpdateDataValidation,addDataValidationMutationWithUpdate,updateDataValidationMutationWithAdd,updateDataValidationMutationWithRemoveSelf,insertColMutationWithSetSheetsFilterCriteria,insertColMutationWithSetSheetsFilterRange,insertRowMutationWithSetSheetsFilterRange,moveColMutationWithSetSheetsFilterCriteria,moveColMutationWithSetSheetsFilterRange,moveRowMutationWithSetSheetsFilterRange,removeColMutationWithSetSheetsFilterCriteria,removeColMutationWithSetSheetsFilterRange,removeRowMutationWithSetSheetsFilterRange,setSheetsFilterCriteriaWithSelf,setSheetsFilterCriteriaWithRemoveSheetsFilter,setSheetsFilterCriteriaWithSetRangeValues,setSheetsFilterCriteriaWithMoveRange,setSheetsFilterRangeWithSelf,setSheetsFilterRangeWithRemoveSheetsFilter,addWorksheetMergeMutationWithSelf,addWorksheetMergeMutationWithInsertColMutation,insertColMutationWithAddMerge,addWorksheetMergeMutationWithInsertRowMutation,insertRowMutationWithAddMerge,addWorksheetMergeMutationWithMoveColMutation,moveColMutationWithAddMerge,addWorksheetMergeMutationWithMoveRowMutation,moveRowsMutationWithAddMerge,addWorksheetMergeMutationWithMoveRangeMutation,moveRangeMutationWithAddMerge,addWorksheetMergeMutationWithRemoveColMutation,removeColMutationWithAddMerge,addWorksheetMergeMutationWithRemoveRowMutation,removeRowMutationWithAddMerge,addWorksheetMergeMutationWithSetRangeValues,setRangeValueMutationWithAddMerge,addWorksheetMergeMutationWithRemoveWorksheetMergeMutation,removeSheetMutationWithAddWorksheetMerge,insertColMutationWithRemoveWorksheetMergeMutation,insertRowMutationWithRemoveWorksheetMergeMutation,moveColMutationWithRemoveWorksheetMerge,moveRowMutationWithRemoveWorksheetMerge,removeColMutationWithRemoveWorksheetMerge,removeRowMutationWithRemoveWorksheetMerge,removeSheetMutationWithRemoveWorksheetMerge,removeWorksheetMergeMutationWithAddMerge,removeWorksheetMergeMutationWithInsertRowMutation,removeWorksheetMergeMutationWithInsertColMutation,removeWorksheetMergeMutationWithMoveColMutation,removeWorksheetMergeMutationWithMoveRowMutation,removeWorksheetMergeMutationWithRemoveColMutation,removeWorksheetMergeMutationWithRemoveRowMutation,addWorksheetMergeMutationWithSetSelection,removeWorksheetMergeMutationWithSetSelection,addCommentMutationWithSelf,deleteCommentMutationWithAdd,deleteCommentMutationWithSelf,updateCommentRefWithSelf,updateCommentWithSelf,insertColWithAddComment,insertRowWithAddComment,moveColWithAddComment,moveRowWithAddComment,removeColWithAddComment,removeRowWithAddComment,insertColWithUpdateCommentRef,insertRowWithUpdateCommentRef,moveColsWithUpdateCommentRef,moveRowsWithUpdateCommentRef,removeColWithUpdateCommentRef,removeRowWithUpdateCommentRef,addHyperLinkWithSelf,removeHyperLinkWithSelf,updateHyperLinkWithSelf,updateHyperLinkRefWithSelf,addRangeProtectionWithAddComment,addRangeProtectionWithAddConditionRule,addRangeProtectionWithSelf,addRangeProtectionWithAddWorksheetMerge,addRangeProtectionWithAddWorksheetProtection,addRangeProtectionWithDeleteConditionFormattingRule,addRangeProtectionWithInsertCol,addRangeProtectionWithInsertRow,addRangeProtectionWithMoveCol,addRangeProtectionWithMoveRange,addRangeProtectionWithMoveRow,addRangeProtectionWithRemoveCol,addRangeProtectionWithRemoveDataValidation,addRangeProtectionWithRemoveNumfmt,addRangeProtectionWithRemoveFilter,addRangeProtectionWithRemoveWorksheetMerge,addRangeProtectionWithSetConditionalFormattingRule,addRangeProtectionWithSetFrozen,addRangeProtectionWithSetNumfmt,addRangeProtectionWithSetRangeProtection,addRangeProtectionWithSetRangeValue,addRangeProtectionWithSetWorksheetColWidth,addRangeProtectionWithUpdateComment,addRangeProtectionWithUpdateDataValidation,setRangeProtectionWithAddComment,setRangeProtectionWithAddConditionRule,setRangeProtectionWithAddWorksheetMerge,setRangeProtectionWithAddWorksheetProtection,setRangeProtectionWithDeleteConditionFormattingRule,setRangeProtectionWithInsertCol,setRangeProtectionWithInsertRow,setRangeProtectionWithMoveCol,setRangeProtectionWithMoveRange,setRangeProtectionWithMoveRow,setRangeProtectionWithRemoveCol,setRangeProtectionWithRemoveRow,setRangeProtectionWithRemoveDataValidation,setRangeProtectionWithRemoveFilter,setRangeProtectionWithRemoveWorksheetMerge,setRangeProtectionWithSetConditionalFormattingRule,setRangeProtectionWithSetFrozen,setRangeProtectionWithSetNumfmt,setRangeProtectionWithSetRangeProtection,setRangeProtectionWithSetRangeValue,setRangeProtectionWithSetWorksheetColWidth,setRangeProtectionWithUpdateComment,setRangeProtectionWithUpdateDataValidation,addWorksheetProtectionWithAddComment,addWorksheetProtectionWithAddConditionRule,addWorksheetProtectionWithAddRangeProtection,addWorksheetProtectionWithAddWorksheetMerge,addWorksheetProtectionWithSelf,addWorksheetProtectionWithChangeSheetOrder,addWorksheetProtectionWithDeleteConditionFormattingRule,addWorksheetProtectionWithInsertCol,addWorksheetProtectionWithInsertRow,addWorksheetProtectionWithMoveCol,addWorksheetProtectionWithMoveRow,addWorksheetProtectionWithMoveRange,addWorksheetProtectionWithRemoveCol,addWorksheetProtectionWithRemoveRow,addWorksheetProtectionWithRemoveDataValidation,addWorksheetProtectionWithRemoveNumfmt,addWorksheetProtectionWithRemoveWorksheetMerge,addWorksheetProtectionWithRemoveFilter,addWorksheetProtectionWithRemoveWorksheet,addWorksheetProtectionWithSetConditionalFormattingRule,addWorksheetProtectionWithSetFrozen,addWorksheetProtectionWithSetNumfmt,addWorksheetProtectionWithSetRangeProtection,addWorksheetProtectionWithSetWorksheetColWidth,addWorksheetProtectionWithSetWorksheetName,addWorksheetProtectionWithUpdateComment,addWorksheetProtectionWithUpdateDataValidation,insertRowMutationWithReorderRange,insertColMutationWithReorderRange,removeRowMutationWithReorderRange,removeColMutationWithReorderRange,moveRowMutationWithReorderRange,moveColMutationWithReorderRange,moveRangeMutationWithReorderRange,setRangeValuesMutationWithReorderRange,reorderRangeMutationWithSelf,setDrawingApplyMutationWithSelf,OthersWithRevertRevision,RevertRevisionMutationWithOthers];let SheetTransformController=class SheetTransformController extends _univerjs_core['Disposable']{constructor(_0x4eef8e){const _0x1e2682=_0x4fd226;super(),this['_transformService']=_0x4eef8e,SHEET_ALL_ALGORITHMS[_0x1e2682(0x222)](_0x42dfed=>{const _0x16703c=_0x1e2682;this[_0x16703c(0x3e8)][_0x16703c(0x35e)](_0x42dfed);});}};SheetTransformController=__decorate([__decorateParam(0x0,ITransformService)],SheetTransformController);function parseProtocolChangeset(_0x35bf42){const _0x1b48ed=_0x4fd226;var _0x2fb5e6,_0x43f437;return{..._0x35bf42,'mutations':(_0x2fb5e6=(_0x43f437=_0x35bf42['mutations'])===null||_0x43f437===void 0x0?void 0x0:_0x43f437[_0x1b48ed(0x208)](parseProtocolMutation))!==null&&_0x2fb5e6!==void 0x0?_0x2fb5e6:[]};}function parseProtocolCommand(_0x18bef7){const _0x5f5451=_0x4fd226;return _0x18bef7['map'](_0x86f129=>({'id':_0x86f129['id'],'params':JSON[_0x5f5451(0x412)](_0x86f129[_0x5f5451(0x1d2)])}));}function parseChangesetToProtocol(_0xf17dd){const _0x80dc00=_0x4fd226;var _0x2337ea,_0x56ece9;return{..._0xf17dd,'mutations':(_0x2337ea=(_0x56ece9=_0xf17dd[_0x80dc00(0x31c)])===null||_0x56ece9===void 0x0?void 0x0:_0x56ece9[_0x80dc00(0x208)](parseMutationToProtocol))!==null&&_0x2337ea!==void 0x0?_0x2337ea:[]};}function parseProtocolMutation(_0x5099fc){const _0x4aa33e=_0x4fd226;return{'id':_0x5099fc['id'],'params':JSON[_0x4aa33e(0x412)](_0x5099fc[_0x4aa33e(0x1d2)])};}function parseMutationToProtocol(_0x4a592b){const _0xaf1707=_0x4fd226;return{'id':_0x4a592b['id'],'data':JSON[_0xaf1707(0x2d3)](_0x4a592b[_0xaf1707(0x235)])};}let CollaborationEvent=function(_0x67926e){const _0x47a23f=_0x4fd226;return _0x67926e[_0x47a23f(0x1da)]='fetch_missing',_0x67926e['PSEUDO_FETCH_MISSING_RESULT']=_0x47a23f(0x33c),_0x67926e['SUBMIT_CHANGESET']=_0x47a23f(0x1e6),_0x67926e['CHANGESET_ACK']=_0x47a23f(0x2b1),_0x67926e[_0x47a23f(0x1cc)]=_0x47a23f(0x230),_0x67926e[_0x47a23f(0x320)]='changeset_should_retry',_0x67926e['NEW_CHANGESETS']=_0x47a23f(0x232),_0x67926e[_0x47a23f(0x400)]=_0x47a23f(0x32a),_0x67926e[_0x47a23f(0x392)]='users_enter',_0x67926e[_0x47a23f(0x3b0)]='users_leave',_0x67926e[_0x47a23f(0x29d)]=_0x47a23f(0x21e),_0x67926e[_0x47a23f(0x254)]=_0x47a23f(0x1c2),_0x67926e['LIVESHARE_NEW_HOST']=_0x47a23f(0x313),_0x67926e[_0x47a23f(0x305)]=_0x47a23f(0x23b),_0x67926e['LIVESHARE_FETCH_OPERATIONS']=_0x47a23f(0x36b),_0x67926e[_0x47a23f(0x334)]='liveshare.terminate',_0x67926e['MSG_FOR_ERROR']='error_msg',_0x67926e['PERMISSION_REJ']=_0x47a23f(0x205),_0x67926e[_0x47a23f(0x211)]=_0x47a23f(0x2c4),_0x67926e[_0x47a23f(0x3bf)]=_0x47a23f(0x3e9),_0x67926e[_0x47a23f(0x1e8)]=_0x47a23f(0x2c9),_0x67926e[_0x47a23f(0x352)]=_0x47a23f(0x33f),_0x67926e;}({});var name=_0x4fd226(0x1e4),version=_0x4fd226(0x345);const COLLABORATION_PLUGIN_CONFIG_KEY=_0x4fd226(0x287),configSymbol=Symbol(COLLABORATION_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let RevisionController=class RevisionController extends _univerjs_core['Disposable']{constructor(_0x591ab4){const _0x465cf0=_0x4fd226;super(),this['_commandService']=_0x591ab4,[RevertRevisionMutation]['forEach'](_0x2f115d=>this['_commandService'][_0x465cf0(0x356)](_0x2f115d));}};RevisionController=__decorate([__decorateParam(0x0,_univerjs_core['ICommandService'])],RevisionController);function packNumberMap(_0x47aecc){const _0x2e6b60=_0x4fd226,_0x3558c3={},_0x241c7f={},_0x478ac5=Object[_0x2e6b60(0x2fd)](_0x47aecc)['map'](Number)[_0x2e6b60(0x218)]((_0x355cfd,_0x121597)=>_0x355cfd-_0x121597);if(_0x478ac5[_0x2e6b60(0x367)]===0x0)return _0x3558c3;for(const _0x474752 of _0x478ac5){const _0x41c8f3=_0x47aecc[_0x474752];if(!_univerjs_core[_0x2e6b60(0x1d5)][_0x2e6b60(0x1db)](_0x41c8f3))continue;const _0xe01749=String(_0x41c8f3);if(!_0x241c7f[_0xe01749])_0x241c7f[_0xe01749]=[];_0x241c7f[_0xe01749][_0x2e6b60(0x285)](_0x474752);}for(const [_0x2f5ccf,_0x4d8236]of Object[_0x2e6b60(0x1c1)](_0x241c7f)){const _0x5298ea=[];if(_0x4d8236[_0x2e6b60(0x367)]===0x0)continue;let _0x114da9=_0x4d8236[0x0],_0x14ab8f=_0x114da9;for(let _0xab48f2=0x1;_0xab48f2<_0x4d8236['length'];_0xab48f2++){const _0x46d874=_0x4d8236[_0xab48f2];if(_0x46d874!==_0x14ab8f+0x1){if(_0x114da9===_0x14ab8f)_0x5298ea[_0x2e6b60(0x285)](_0x114da9);else _0x5298ea['push']([_0x114da9,_0x14ab8f]);_0x114da9=_0x46d874;}_0x14ab8f=_0x46d874;}if(_0x114da9===_0x14ab8f)_0x5298ea['push'](_0x114da9);else _0x5298ea[_0x2e6b60(0x285)]([_0x114da9,_0x14ab8f]);if(_0x5298ea[_0x2e6b60(0x367)]===0x1&&typeof _0x5298ea[0x0]===_0x2e6b60(0x2af))_0x3558c3[_0x2f5ccf]=_0x5298ea[0x0];else _0x3558c3[_0x2f5ccf]=_0x5298ea;}return _0x3558c3;}function unpackNumberMap(_0x4966a7){const _0x3e3763=_0x4fd226,_0x394e71={};for(const [_0x1ddfe5,_0x2dfbdd]of Object[_0x3e3763(0x1c1)](_0x4966a7)){const _0x18f012=Number(_0x1ddfe5);if(typeof _0x2dfbdd===_0x3e3763(0x2af)){_0x394e71[_0x2dfbdd]=_0x18f012;continue;}for(const _0x8d2355 of _0x2dfbdd)if(Array[_0x3e3763(0x3ca)](_0x8d2355)){const [_0x1a4dfe,_0x171502]=_0x8d2355;for(let _0x1bf094=_0x1a4dfe;_0x1bf094<=_0x171502;_0x1bf094++)_0x394e71[_0x1bf094]=_0x18f012;}else _0x394e71[_0x8d2355]=_0x18f012;}return _0x394e71;}const transformRefStyleFromCells=_0x1f097c=>{const _0x27d3a3=_0x4fd226,_0x17641d={};if(!_0x1f097c)return{'cellValue':_0x1f097c,'styleRefMap':void 0x0};const _0x479ffc=[];return{'cellValue':new _univerjs_core[(_0x27d3a3(0x2ed))](_univerjs_core['Tools'][_0x27d3a3(0x28e)](_0x1f097c))[_0x27d3a3(0x398)]((_0x522230,_0x504e86,_0x50f229)=>{const _0x53cd98=_0x27d3a3,_0x27f7f5=_0x50f229&&_0x50f229['s'];if(_0x27f7f5){if(typeof _0x27f7f5==='object'){const _0x14f74f=JSON[_0x53cd98(0x2d3)](_0x27f7f5),_0xd2e339=_0x479ffc[_0x53cd98(0x37e)](_0x14c59b=>_0x14c59b===_0x14f74f);if(_0xd2e339>-0x1)_0x50f229['s']=''+_0xd2e339;else{const _0x30f3ec=_0x479ffc['push'](_0x14f74f)-0x1;_0x17641d[_0x30f3ec]=_0x27f7f5,_0x50f229['s']=''+_0x30f3ec;}}}})[_0x27d3a3(0x414)](),'styleRefMap':_0x17641d};},transformCellsFromRefStyle=(_0x4c30ac,_0x173c46)=>{const _0x253d54=_0x4fd226;if(!_0x4c30ac||!_0x173c46)return _0x4c30ac;return new _univerjs_core[(_0x253d54(0x2ed))](_univerjs_core[_0x253d54(0x1d5)][_0x253d54(0x28e)](_0x4c30ac))['forValue']((_0x5dde45,_0x57f258,_0x3959b8)=>{const _0x18dfb0=_0x253d54,_0x443ecf=_0x3959b8&&_0x3959b8['s'];if(_0x443ecf){if(typeof _0x443ecf===_0x18dfb0(0x349)){const _0x266478=_0x173c46[_0x443ecf];if(_0x266478)_0x3959b8['s']=_0x266478;}}})[_0x253d54(0x414)]();},COMPRESS_MUTATION_APPLY=(0x0,_univerjs_core['createInterceptorKey'])('COMPRESS_MUTATION_APPLY'),COMPRESS_MUTATION_SEND=(0x0,_univerjs_core[_0x4fd226(0x256)])(_0x4fd226(0x307));var CompressMutationService=class{constructor(){const _0xbf1938=_0x4fd226;_defineProperty(this,_0xbf1938(0x1c9),new _univerjs_core[(_0xbf1938(0x370))]({'COMPRESS_MUTATION_APPLY':COMPRESS_MUTATION_APPLY,'COMPRESS_MUTATION_SEND':COMPRESS_MUTATION_SEND})),this[_0xbf1938(0x36d)]();}[_0x4fd226(0x36d)](){const _0x1dbef0=_0x4fd226;this[_0x1dbef0(0x1c9)]['intercept'](this[_0x1dbef0(0x1c9)][_0x1dbef0(0x36c)]()[_0x1dbef0(0x30f)],{'priority':-0x1,'handler':_0x2a8f52=>_0x2a8f52}),this[_0x1dbef0(0x1c9)][_0x1dbef0(0x1d1)](this[_0x1dbef0(0x1c9)][_0x1dbef0(0x36c)]()[_0x1dbef0(0x307)],{'priority':-0x1,'handler':_0x392a59=>_0x392a59}),this['_initSetRangeValues']();}[_0x4fd226(0x294)](){const _0x4360dd=_0x4fd226;this[_0x4360dd(0x1c9)]['intercept'](this['interceptor'][_0x4360dd(0x36c)]()[_0x4360dd(0x30f)],{'handler':(_0x242284,_0x2eacd4,_0x1e940e)=>{const _0x25134e=_0x4360dd;if(!_0x242284)return _0x1e940e(_0x242284);return _0x1e940e(_0x242284[_0x25134e(0x208)](_0x303131=>{const _0xb846dd=_0x25134e;if(_0x303131[_0xb846dd(0x235)][_0xb846dd(0x26b)])return _0x303131;if(_0x303131['id']===_univerjs_sheets['SetRangeValuesMutation']['id']){const _0x2e308d=_0x303131[_0xb846dd(0x235)];if(!_0x2e308d['styleRefMap'])return _0x303131;const _0x3f13a5=transformCellsFromRefStyle(_0x2e308d[_0xb846dd(0x2f8)],_0x2e308d['styleRefMap']);return{..._0x303131,'params':{..._0x2e308d,'cellValue':_0x3f13a5}};}if(_0x303131['id']===_univerjs_sheets[_0xb846dd(0x1bb)]['id']||_0x303131['id']===_univerjs_sheets[_0xb846dd(0x24c)]['id'])return this[_0xb846dd(0x23e)](_0x303131);return _0x303131;}));}}),this[_0x4360dd(0x1c9)][_0x4360dd(0x1d1)](this[_0x4360dd(0x1c9)][_0x4360dd(0x36c)]()[_0x4360dd(0x307)],{'handler':(_0x2ae422,_0x5dbee6,_0x5685df)=>{const _0x2a8391=_0x4360dd;if(!_0x2ae422)return _0x5685df(_0x2ae422);return _0x5685df(_0x2ae422[_0x2a8391(0x208)](_0x41dfed=>{const _0x7dfc4b=_0x2a8391;if(_0x41dfed[_0x7dfc4b(0x235)][_0x7dfc4b(0x26b)])return _0x41dfed;if(_0x41dfed['id']===_univerjs_sheets[_0x7dfc4b(0x35c)]['id']){const _0x381e9b=_0x41dfed[_0x7dfc4b(0x235)];if(_0x381e9b[_0x7dfc4b(0x1f1)])return _0x41dfed;return{..._0x41dfed,'params':{..._0x381e9b,...transformRefStyleFromCells(_0x381e9b[_0x7dfc4b(0x2f8)])}};}else{if(_0x41dfed['id']===_univerjs_sheets[_0x7dfc4b(0x1ee)]['id'])return this[_0x7dfc4b(0x1ca)](_0x41dfed,_0x5dbee6);else{if(_0x41dfed['id']===_univerjs_sheets[_0x7dfc4b(0x1bb)]['id']||_0x41dfed['id']===_univerjs_sheets[_0x7dfc4b(0x24c)]['id'])return this[_0x7dfc4b(0x213)](_0x41dfed);}}return _0x41dfed;}));}});}[_0x4fd226(0x1ca)](_0x45a386,_0x4bb6ce){const _0x39f563=_0x4fd226,_0x4ec715=_0x45a386[_0x39f563(0x235)],{unitId:_0x19ced8,sheet:_0x43450d}=_0x4ec715,_0x6930f=_0x4bb6ce[_0x39f563(0x30d)](_0x19ced8,_univerjs_core[_0x39f563(0x36f)][_0x39f563(0x24b)]);if(!_0x6930f)return _0x45a386;const _0x3831e8={};return new _univerjs_core[(_0x39f563(0x2ed))](_0x43450d[_0x39f563(0x3d2)])[_0x39f563(0x398)]((_0xb2ec8f,_0x33d646,_0x655ab9)=>{const _0x2c8b3a=_0x39f563;if(_0x655ab9&&_0x655ab9['s']&&typeof _0x655ab9['s']===_0x2c8b3a(0x349)&&!_0x3831e8[_0x655ab9['s']])_0x3831e8[_0x655ab9['s']]=_0x6930f['getStyles']()[_0x2c8b3a(0x263)](_0x655ab9['s']);}),{..._0x45a386,'params':{..._0x4ec715,'styles':_0x3831e8}};}['_handleCompressNumberMapMutationSend'](_0x46ebc4){const _0x3f140a=_0x4fd226,_0x2bd5da=_0x46ebc4[_0x3f140a(0x235)];let _0x452971,_0x202ccc;_0x3f140a(0x415)in _0x2bd5da?(_0x452971=_0x3f140a(0x415),_0x202ccc=_0x2bd5da[_0x3f140a(0x415)]):(_0x452971=_0x3f140a(0x239),_0x202ccc=_0x2bd5da['colWidth']);if(typeof _0x202ccc===_0x3f140a(0x2af))return _0x46ebc4;const _0x47f5a8=packNumberMap(_0x202ccc);return{..._0x46ebc4,'params':{..._0x2bd5da,[_0x452971]:_0x47f5a8,'compress':!![]}};}[_0x4fd226(0x23e)](_0x2b3a2f){const _0x63a48f=_0x4fd226,_0x3c8a25=_0x2b3a2f[_0x63a48f(0x235)];if(!('compress'in _0x3c8a25)||!_0x3c8a25[_0x63a48f(0x3ec)])return _0x2b3a2f;let _0x43d911,_0x1a16ec;if(_0x63a48f(0x415)in _0x3c8a25)_0x43d911='rowHeight',_0x1a16ec=_0x3c8a25[_0x63a48f(0x415)];else{if(_0x63a48f(0x239)in _0x3c8a25)_0x43d911=_0x63a48f(0x239),_0x1a16ec=_0x3c8a25[_0x63a48f(0x239)];else return _0x2b3a2f;}if(typeof _0x1a16ec===_0x63a48f(0x2af))return _0x2b3a2f;const _0x44f701=unpackNumberMap(_0x1a16ec);return{..._0x2b3a2f,'params':{..._0x3c8a25,[_0x43d911]:_0x44f701}};}};const SINGLE_SNAPSHOT_MUTATIONS=new Set([_univerjs_sheets[_0x4fd226(0x1ee)]['id'],_univerjs_sheets['RemoveSheetMutation']['id'],_univerjs_sheets[_0x4fd226(0x28b)]['id']]),SINGLE_HISTORY_MUTATIONS=new Set([_univerjs_sheets[_0x4fd226(0x1ee)]['id'],_univerjs_sheets['RemoveSheetMutation']['id'],RevertRevisionMutation['id'],_univerjs_sheets[_0x4fd226(0x1d3)]['id'],_univerjs_sheets[_0x4fd226(0x2b8)]['id'],_univerjs_sheets['RemoveColMutation']['id'],_univerjs_sheets[_0x4fd226(0x3e0)]['id'],_univerjs_sheets[_0x4fd226(0x390)]['id'],CreateUnitMutation['id'],_univerjs_sheets[_0x4fd226(0x1d7)]['id'],_univerjs_sheets['SetWorksheetOrderMutation']['id'],_univerjs_sheets[_0x4fd226(0x38a)]['id'],_univerjs_sheets[_0x4fd226(0x28b)]['id'],_univerjs_sheets[_0x4fd226(0x29b)]['id'],_univerjs_sheets[_0x4fd226(0x2e7)]['id'],_univerjs_sheets[_0x4fd226(0x406)]['id'],_univerjs_sheets[_0x4fd226(0x2d9)]['id'],_univerjs_sheets[_0x4fd226(0x32e)]['id'],_univerjs_sheets[_0x4fd226(0x3ce)]['id']]);let RevisionService=class RevisionService{constructor(_0xea5b89){this['_univerInstanceService']=_0xea5b89;}[_0x4fd226(0x28d)](_0x3237ea){const _0x411fa2=_0x4fd226,_0x81241d=this[_0x411fa2(0x37c)][_0x411fa2(0x30d)](_0x3237ea);if(!_0x81241d)throw new Error('[RevisionService]:\x20cannot\x20find\x20document\x20with\x20unitId:\x20'+_0x3237ea+'.');return _0x81241d[_0x411fa2(0x384)]();}[_0x4fd226(0x2ca)](_0x12a1d7){const _0x9f4abd=_0x4fd226,_0x1b584d=this[_0x9f4abd(0x37c)]['getUnit'](_0x12a1d7);if(!_0x1b584d)throw new Error(_0x9f4abd(0x202)+_0x12a1d7+'.');return _0x1b584d[_0x9f4abd(0x32f)](),_0x1b584d[_0x9f4abd(0x384)]();}[_0x4fd226(0x387)](_0x3ec3d6,_0x49933f){const _0x48bef6=_0x4fd226,_0x262ee5=this[_0x48bef6(0x37c)]['getUnit'](_0x3ec3d6);if(_0x262ee5)_0x262ee5[_0x48bef6(0x2a6)](_0x49933f);}};RevisionService=__decorate([__decorateParam(0x0,_univerjs_core['IUniverInstanceService'])],RevisionService);const textEncoder=new TextEncoder(),textDecoder=new TextDecoder();function encodeWorksheetOtherMetas(_0x5213f0){const _0x5512f7=_0x4fd226,_0x18ba34=['id',_0x5512f7(0x1e0),'rowCount','columnCount',_0x5512f7(0x3d2)],_0x7b8b18={};return Object['keys'](_0x5213f0)['forEach'](_0x453d06=>{const _0xc4f084=_0x5512f7;if(!_0x18ba34[_0xc4f084(0x2a8)](_0x453d06))_0x7b8b18[_0x453d06]=_univerjs_core[_0xc4f084(0x1d5)]['deepClone'](_0x5213f0[_0x453d06]);}),textEncoder['encode'](JSON['stringify'](_0x7b8b18));}function encodeWorkbookOtherMetas(_0x508103){const _0x309910=_0x4fd226,_0xdaa462=['id',_0x309910(0x359),_0x309910(0x1e0),_0x309910(0x3d6),_0x309910(0x275),_0x309910(0x2c3)],_0x4d47c7={};return Object[_0x309910(0x2fd)](_0x508103)[_0x309910(0x222)](_0x292c91=>{const _0x53c1a4=_0x309910;if(!_0xdaa462['includes'](_0x292c91))_0x4d47c7[_0x292c91]=_univerjs_core[_0x53c1a4(0x1d5)][_0x53c1a4(0x28e)](_0x508103[_0x292c91]);}),textEncoder[_0x309910(0x2fe)](JSON[_0x309910(0x2d3)](_0x4d47c7));}function encodeDocOriginalMeta(_0x411d95){const _0x5523d7=_0x4fd226,_0x2cbf92=['id',_0x5523d7(0x359),_0x5523d7(0x1e3),'resources'],_0xad4824={};return Object[_0x5523d7(0x2fd)](_0x411d95)[_0x5523d7(0x222)](_0x54e53a=>{const _0x2a5110=_0x5523d7;if(!_0x2cbf92['includes'](_0x54e53a))_0xad4824[_0x54e53a]=_univerjs_core['Tools'][_0x2a5110(0x28e)](_0x411d95[_0x54e53a]);}),textEncoder[_0x5523d7(0x2fe)](JSON[_0x5523d7(0x2d3)](_0xad4824));}function decodeWorksheetOtherMetas(_0x48de54){const _0x7fa588=_0x4fd226;if(typeof _0x48de54===_0x7fa588(0x349))return JSON[_0x7fa588(0x412)](b64DecodeUnicode(_0x48de54));return JSON[_0x7fa588(0x412)](textDecoder[_0x7fa588(0x20d)](_0x48de54));}function decodePartOfCellData(_0x4d1c07){const _0x15266b=_0x4fd226;if(_0x4d1c07 instanceof Uint8Array){let _0x58a0e2=textDecoder['decode'](_0x4d1c07);const _0x12074d=JSON[_0x15266b(0x412)](_0x58a0e2);return _0x58a0e2=null,_0x12074d;}return _0x4d1c07;}function decodeDocOriginalMeta(_0x5c43ec){const _0x258e82=_0x4fd226;if(typeof _0x5c43ec===_0x258e82(0x349))return JSON[_0x258e82(0x412)](b64DecodeUnicode(_0x5c43ec));return JSON[_0x258e82(0x412)](textDecoder[_0x258e82(0x20d)](_0x5c43ec));}const FRAGMENT_CELL_COUNT=0x100*0x14*0x14,MIN_BLOCK_SIZE=0x1*0x400*0x400;function splitCellDataToBlocks(_0x147a24,_0x366670=FRAGMENT_CELL_COUNT,_0x12cb2a=MIN_BLOCK_SIZE){const _0x467063=_0x4fd226,_0x88b5e1=Date['now'](),_0x1a746d=new _univerjs_core[(_0x467063(0x2ed))](_0x147a24),{startRow:_0x35dd2d,endRow:_0x2d8bcc,startColumn:_0x2f97c6,endColumn:_0x1c1ba7}=_0x1a746d[_0x467063(0x298)](),_0x1cddb7=[],_0x8209b1=Math[_0x467063(0x249)](_0x366670/(_0x1c1ba7-_0x2f97c6+0x1));let _0x335fa1=_0x35dd2d,_0x3d1ce5=null,_0x292868=null,_0x4b733c=0x0,_0x5745e7=0x0,_0x59e178=0x0,_0x5b6261=0x0;while(_0x335fa1<=_0x2d8bcc){const _0x4f0473=Math['min'](_0x335fa1+_0x8209b1-0x1,_0x2d8bcc),{sliceData:_0x55cd87,cellCount:_0x1add28}=_0x1a746d[_0x467063(0x1ea)](_0x335fa1,_0x4f0473);if(_0x1add28===0x0){if(_0x4f0473>=_0x2d8bcc&&_0x292868!==null){const _0x335742=serializeCellDataSlice(_0x292868);_0x1cddb7[_0x467063(0x285)]({'id':(0x0,_univerjs_core[_0x467063(0x1f5)])(0x13,_0x467063(0x273)),'startRow':_0x4b733c,'endRow':_0x2d8bcc,'data':_0x335742});}_0x335fa1=_0x4f0473+0x1;continue;}if(_0x292868===null)_0x292868=_0x55cd87,_0x4b733c=_0x335fa1;else _0x292868[_0x467063(0x397)](_0x55cd87);_0x5745e7+=_0x1add28,_0x5b6261+=_0x1add28;if(_0x3d1ce5===null)_0x59e178=serializeCellDataSlice(_0x292868)[_0x467063(0x38d)],_0x3d1ce5=_0x59e178/_0x5745e7;else _0x59e178+=_0x1add28*_0x3d1ce5;if(_0x4f0473>=_0x2d8bcc||_0x59e178>=_0x12cb2a){const _0x14dc29=serializeCellDataSlice(_0x292868);_0x1cddb7[_0x467063(0x285)]({'id':(0x0,_univerjs_core['generateRandomId'])(0x13,_0x467063(0x273)),'startRow':_0x4b733c,'endRow':_0x4f0473,'data':_0x14dc29}),_0x292868=null,_0x4b733c=0x0,_0x5745e7=0x0,_0x59e178=0x0;}if(_0x4f0473>=_0x2d8bcc)break;_0x335fa1=_0x4f0473+0x1;}return{'blocks':_0x1cddb7,'totalCells':_0x5b6261,'totalTime':Date[_0x467063(0x257)]()-_0x88b5e1};}function serializeCellDataSlice(_0x2ee2a3){const _0x21500b=_0x4fd226,_0x2e3878=_0x2ee2a3[_0x21500b(0x414)]();return textEncoder['encode'](JSON[_0x21500b(0x2d3)](_0x2e3878));}function mapDocumentTypeToUniverInstanceType(_0x16f34f){return _0x16f34f;}function b64EncodeUnicode(_0x3fcbff){const _0x5cbfe6=_0x4fd226,_0x1a42b2=textEncoder['encode'](_0x3fcbff);let _0x28cf25='';for(let _0x520473=0x0;_0x520473<_0x1a42b2[_0x5cbfe6(0x367)];_0x520473++)_0x28cf25+=String[_0x5cbfe6(0x366)](_0x1a42b2[_0x520473]);return btoa(_0x28cf25);}function b64DecodeUnicode(_0x5d7ee9){const _0x1f0b98=_0x4fd226,_0x52f8ec=atob(_0x5d7ee9),_0x255e6b=_0x52f8ec[_0x1f0b98(0x367)];let _0x3500ab=new Uint8Array(_0x255e6b);for(let _0x5ba6d7=0x0;_0x5ba6d7<_0x255e6b;_0x5ba6d7++)_0x3500ab[_0x5ba6d7]=_0x52f8ec[_0x1f0b98(0x389)](_0x5ba6d7);const _0x5209df=textDecoder[_0x1f0b98(0x20d)](_0x3500ab);return _0x3500ab=null,_0x5209df;}async function limitConcurrencyTasks({tasks:_0x3441b8,handleTaskResult:_0x1345b6,limit:limit=0xa,options:options={'retryCount':0x3,'retryDelay':0xc8},onError:_0x4e9904}){const _0x50777e=_0x4fd226;if(_0x3441b8[_0x50777e(0x367)]===0x0)return;const {retryCount:_0x1594f2,retryDelay:_0x36ab96}=options,_0xcfe950=_0x34207b=>new Promise(_0x19aa34=>setTimeout(_0x19aa34,_0x34207b)),_0x80d077=async _0xd4422d=>{let _0x2f2075=0x0;while(!![])try{return await _0xd4422d();}catch(_0x34876e){_0x4e9904===null||_0x4e9904===void 0x0||_0x4e9904(_0x34876e),_0x2f2075++;if(_0x2f2075>_0x1594f2)throw _0x34876e;await _0xcfe950(_0x36ab96);}};let _0x396573=0x0;const _0x2a8ff7=Array[_0x50777e(0x270)]({'length':Math[_0x50777e(0x1f2)](limit,_0x3441b8[_0x50777e(0x367)])},async()=>{const _0x3de5f0=_0x50777e;while(!![]){const _0x26a604=_0x396573++;if(_0x26a604>=_0x3441b8[_0x3de5f0(0x367)])break;let _0x2a026b=await _0x80d077(_0x3441b8[_0x26a604]);if(_0x1345b6)_0x1345b6(_0x2a026b);_0x2a026b=null;}});await Promise['all'](_0x2a8ff7);}async function measureAsyncOperation(_0x1bb3cf,_0x3f0901,_0x2185a3,_0x6aa38e=0x2710,_0x47e43d){const _0x3c7860=_0x4fd226,_0x25c7d3=performance['now']();_0x2185a3===null||_0x2185a3===void 0x0||_0x2185a3[_0x3c7860(0x21d)](_0x3c7860(0x1d6)+_0x1bb3cf+_0x3c7860(0x25b)+(_0x47e43d!==null&&_0x47e43d!==void 0x0?_0x47e43d:''));try{const _0x5c9eae=await _0x3f0901(),_0x3dd216=performance[_0x3c7860(0x257)]()-_0x25c7d3;if(_0x3dd216>_0x6aa38e)_0x2185a3[_0x3c7860(0x323)](_0x3c7860(0x1d6)+_0x1bb3cf+_0x3c7860(0x368)+_0x3dd216[_0x3c7860(0x326)](0x2)+_0x3c7860(0x34b));else _0x2185a3[_0x3c7860(0x21d)](_0x3c7860(0x1d6)+_0x1bb3cf+_0x3c7860(0x259)+_0x3dd216[_0x3c7860(0x326)](0x2)+_0x3c7860(0x34b));return _0x5c9eae;}catch(_0x5eac73){const _0x27de85=performance[_0x3c7860(0x257)]()-_0x25c7d3;_0x2185a3[_0x3c7860(0x1bf)](_0x3c7860(0x1d6)+_0x1bb3cf+_0x3c7860(0x3e5)+_0x27de85[_0x3c7860(0x326)](0x2)+_0x3c7860(0x34b),_0x5eac73);throw _0x5eac73;}}function measureSyncOperation(_0x3b8a86,_0x125279,_0x4f4a52,_0xc3df5b=0x2710,_0x15fd85){const _0x5b9a32=_0x4fd226,_0x3a492d=performance[_0x5b9a32(0x257)]();_0x4f4a52===null||_0x4f4a52===void 0x0||_0x4f4a52[_0x5b9a32(0x21d)](_0x5b9a32(0x2e5)+_0x3b8a86+_0x5b9a32(0x25b)+(_0x15fd85!==null&&_0x15fd85!==void 0x0?_0x15fd85:''));try{const _0x540e91=_0x125279(),_0x26bc7a=performance[_0x5b9a32(0x257)]()-_0x3a492d;if(_0x26bc7a>_0xc3df5b)_0x4f4a52[_0x5b9a32(0x323)](_0x5b9a32(0x2e5)+_0x3b8a86+_0x5b9a32(0x368)+_0x26bc7a[_0x5b9a32(0x326)](0x2)+_0x5b9a32(0x34b));else _0x4f4a52['debug'](_0x5b9a32(0x2e5)+_0x3b8a86+_0x5b9a32(0x259)+_0x26bc7a['toFixed'](0x2)+'\x20ms');return _0x540e91;}catch(_0x53416e){const _0x544c01=performance[_0x5b9a32(0x257)]()-_0x3a492d;_0x4f4a52[_0x5b9a32(0x1bf)](_0x5b9a32(0x2e5)+_0x3b8a86+_0x5b9a32(0x3e5)+_0x544c01[_0x5b9a32(0x326)](0x2)+'\x20ms',_0x53416e);throw _0x53416e;}}async function yieldToEventLoop(){await new Promise(_0x5f0987=>{typeof setImmediate==='function'?setImmediate(_0x5f0987):setTimeout(_0x5f0987,0x0);});}async function generateTempDocumentSnapshot(_0x55bf28,_0x1f8604,_0x5b3fdb,_0x1a8d66){const _0x386c1d=_0x4fd226;var _0x322ab9;const _0xe901fc={'unitID':_0x1f8604['id'],'rev':_0x1a8d66,'creator':'','name':(_0x322ab9=_0x1f8604[_0x386c1d(0x1e3)])!==null&&_0x322ab9!==void 0x0?_0x322ab9:'','resources':_0x1f8604[_0x386c1d(0x2c3)]||[],'originalMeta':encodeDocOriginalMeta(_0x1f8604)};return{'snapshot':{'unitID':_0x5b3fdb,'rev':_0xe901fc['rev'],'type':_univerjs_core[_0x386c1d(0x36f)][_0x386c1d(0x40e)],'workbook':void 0x0,'doc':_0xe901fc}};}async function generateTemporarySnap(_0x186925,_0x147d77,_0x35eff9,_0x16750a,_0xbe5c8,_0x39bfa8){const _0x3073e9=_0x4fd226,_0x2f4531={},_0x45bb02={};if(!await Promise[_0x3073e9(0x316)](Object[_0x3073e9(0x1c1)](_0x147d77['sheets'])[_0x3073e9(0x208)](async([_0x46fd3b,_0x502a8c])=>{const _0x296657=_0x3073e9;_0x45bb02[_0x46fd3b]={'id':_0x502a8c['id'],'type':_univerjs_core[_0x296657(0x3e7)][_0x296657(0x2cf)],'name':_0x502a8c[_0x296657(0x1e0)],'rowCount':_0x502a8c[_0x296657(0x2e2)],'columnCount':_0x502a8c['columnCount'],'originalMeta':encodeWorksheetOtherMetas(_0x502a8c)};if(_0x502a8c[_0x296657(0x3d2)]){const {blocks:_0x1bf7b1}=splitCellDataToBlocks(_0x502a8c[_0x296657(0x3d2)]),_0x17bd09=await Promise[_0x296657(0x316)](_0x1bf7b1[_0x296657(0x208)](_0x4e9ddc=>_0xbe5c8['saveSheetBlock'](_0x186925,{'unitID':_0x35eff9,'type':_univerjs_core[_0x296657(0x36f)][_0x296657(0x24b)],'block':_0x4e9ddc})));if(_0x17bd09[_0x296657(0x1c0)](_0x3ea1fe=>{const _0xa9fa7=_0x296657;var _0x5a688c;return((_0x5a688c=_0x3ea1fe[_0xa9fa7(0x1bf)])===null||_0x5a688c===void 0x0?void 0x0:_0x5a688c['code'])!==_univerjs_protocol[_0xa9fa7(0x26e)]['OK'];}))return![];_0x2f4531[_0x46fd3b]={'sheetID':_0x46fd3b,'blocks':_0x17bd09[_0x296657(0x208)](_0x588903=>_0x588903[_0x296657(0x271)])};}return!![];})))throw new Error(_0x3073e9(0x1c3));const _0xd48687=encodeWorkbookOtherMetas(_0x147d77),_0x6dd879={'unitID':_0x147d77['id'],'rev':_0x16750a,'creator':'','name':_0x147d77[_0x3073e9(0x1e0)],'sheetOrder':_0x147d77[_0x3073e9(0x3d6)],'sheets':_0x45bb02,'blockMeta':_0x2f4531,'resources':_0x147d77['resources']||[],'originalMeta':_0xd48687},_0x6d4bc9=(_0x5100ab,_0x1d47e8)=>{const _0xb1b123=_0x3073e9;return _0x5100ab[_0xb1b123(0x29f)](_0x6b3cd7=>_0x1d47e8[_0xb1b123(0x29a)](_0x6b3cd7));},_0x10391f=_0x147d77[_0x3073e9(0x3d6)][_0x3073e9(0x367)],_0x52b019=Object['keys'](_0x6dd879['sheets']),_0x34886a=Object[_0x3073e9(0x2fd)](_0x6dd879['blockMeta']);if(_0x10391f!==_0x52b019[_0x3073e9(0x367)]||!_0x6d4bc9(_0x147d77[_0x3073e9(0x3d6)],_0x6dd879['sheets'])){_0x39bfa8===null||_0x39bfa8===void 0x0||_0x39bfa8['error'](_0x3073e9(0x346),'Sheet\x20order\x20mismatch!\x20'+_0x35eff9+'\x20'+_0x10391f+'\x20'+_0x52b019[_0x3073e9(0x367)]+_0x3073e9(0x35d)+JSON['stringify'](_0x147d77[_0x3073e9(0x3d6)])+_0x3073e9(0x268)+JSON['stringify'](_0x52b019)+_0x3073e9(0x2c2)+JSON[_0x3073e9(0x2d3)](Object['keys'](_0x147d77[_0x3073e9(0x275)])));throw new Error('[generateTemporarySnap()]:\x20Sheet\x20order\x20mismatch');}if(_0x52b019[_0x3073e9(0x367)]!==_0x34886a[_0x3073e9(0x367)]||!_0x6d4bc9(_0x52b019,_0x6dd879[_0x3073e9(0x258)])||!_0x6d4bc9(_0x34886a,_0x6dd879[_0x3073e9(0x275)])){_0x39bfa8===null||_0x39bfa8===void 0x0||_0x39bfa8['error'](_0x3073e9(0x346),_0x3073e9(0x2b7)+_0x35eff9+'\x20'+_0x52b019[_0x3073e9(0x367)]+'\x20'+_0x34886a[_0x3073e9(0x367)]+_0x3073e9(0x268)+JSON['stringify'](_0x52b019)+_0x3073e9(0x418)+JSON[_0x3073e9(0x2d3)](_0x34886a)+'\x20Sheet\x20raw:\x20'+JSON['stringify'](Object[_0x3073e9(0x2fd)](_0x147d77[_0x3073e9(0x275)])));throw new Error(_0x3073e9(0x2e0));}return{'snapshot':{'unitID':_0x35eff9,'rev':_0x6dd879[_0x3073e9(0x359)],'type':_univerjs_core[_0x3073e9(0x36f)]['UNIVER_SHEET'],'workbook':_0x6dd879,'doc':void 0x0}};}async function transformWorkbookDataToSnapshotNoSave(_0x30a003,_0x38e80d,_0x1ba4c2,_0x3efb8a){const _0x2760f1=_0x4fd226,_0x11e89b={};if(!await Promise[_0x2760f1(0x316)](Object[_0x2760f1(0x1c1)](_0x38e80d['sheets'])[_0x2760f1(0x208)](async([_0x422cf6,_0x301e99])=>{const _0x1fdc26=_0x2760f1;if(_0x301e99[_0x1fdc26(0x3d2)]){const {blocks:_0x431b97}=splitCellDataToBlocks(_0x301e99[_0x1fdc26(0x3d2)]),_0x1411db=await Promise[_0x1fdc26(0x316)](_0x431b97[_0x1fdc26(0x208)](_0x57b536=>_0x3efb8a[_0x1fdc26(0x21b)](_0x30a003,{'unitID':_0x1ba4c2,'type':_univerjs_core[_0x1fdc26(0x36f)]['UNIVER_SHEET'],'block':_0x57b536})));if(_0x1411db[_0x1fdc26(0x1c0)](_0x3924c3=>{const _0x5e1013=_0x1fdc26;var _0xbbd07b;return((_0xbbd07b=_0x3924c3['error'])===null||_0xbbd07b===void 0x0?void 0x0:_0xbbd07b[_0x5e1013(0x37d)])!==_univerjs_protocol[_0x5e1013(0x26e)]['OK'];}))return![];_0x11e89b[_0x422cf6]={'sheetID':_0x422cf6,'blocks':_0x1411db[_0x1fdc26(0x208)](_0x41be6f=>_0x41be6f['blockID'])};}return!![];})))throw new Error(_0x2760f1(0x1c3));return _0x11e89b;}async function transformWorkbookDataToSnapshot(_0x3171f2,_0x3e7a48,_0x34aa2d,_0x53b1b4,_0x528ef5,_0x43958b){const _0x16fbc6=_0x4fd226;var _0x468e31;const _0x4d9dca={},_0x26e5c6={};let _0x57c120=0x0,_0x3a5d3f=0x0;const _0x56793d=[];for(const _0x2a236a in _0x3e7a48[_0x16fbc6(0x275)]){const _0x5bdd93=Date[_0x16fbc6(0x257)](),_0xc7e110=_0x3e7a48['sheets'][_0x2a236a];_0x26e5c6[_0x2a236a]={'id':_0xc7e110['id'],'type':_univerjs_core[_0x16fbc6(0x3e7)][_0x16fbc6(0x2cf)],'name':_0xc7e110[_0x16fbc6(0x1e0)],'rowCount':_0xc7e110[_0x16fbc6(0x2e2)],'columnCount':_0xc7e110['columnCount'],'originalMeta':encodeWorksheetOtherMetas(_0xc7e110)},_0x4d9dca[_0x2a236a]={'sheetID':_0x2a236a,'blocks':[]},_0x3a5d3f+=Date[_0x16fbc6(0x257)]()-_0x5bdd93;if(_0xc7e110[_0x16fbc6(0x3d2)]){const {blocks:_0x47356c,totalCells:_0x8f0a8c,totalTime:_0x3c4ff0}=splitCellDataToBlocks(_0xc7e110[_0x16fbc6(0x3d2)]);_0x57c120+=_0x8f0a8c,_0x3a5d3f+=_0x3c4ff0;const _0x33afc3=_0x47356c[_0x16fbc6(0x208)](_0x5c495b=>()=>_0x528ef5[_0x16fbc6(0x21b)](_0x3171f2,{'unitID':_0x34aa2d,'type':_univerjs_core['UniverInstanceType'][_0x16fbc6(0x24b)],'block':_0x5c495b}));_0x56793d[_0x16fbc6(0x285)]((async _0x5e4b64=>{const _0x3544d0=_0x16fbc6;try{await limitConcurrencyTasks({'tasks':_0x33afc3,'handleTaskResult':_0x4ed849=>{const _0x248bfb=_0x3e21;var _0x4db63e;if(((_0x4db63e=_0x4ed849[_0x248bfb(0x1bf)])===null||_0x4db63e===void 0x0?void 0x0:_0x4db63e[_0x248bfb(0x37d)])!==_univerjs_protocol[_0x248bfb(0x26e)]['OK'])throw new Error(_0x248bfb(0x1c3));_0x4d9dca[_0x5e4b64][_0x248bfb(0x3fb)]['push'](_0x4ed849[_0x248bfb(0x271)]);},'onError':_0x1f6509=>{const _0x29c255=_0x3e21;_0x43958b===null||_0x43958b===void 0x0||_0x43958b[_0x29c255(0x1bf)](_0x29c255(0x358),_0x29c255(0x29c)+_0x5e4b64+':\x20'+_0x1f6509);}});}catch(_0x51e63a){throw new Error(_0x3544d0(0x214)+JSON[_0x3544d0(0x2d3)](_0x51e63a));}})(_0x2a236a));}}await Promise['all'](_0x56793d);const _0x3b80db=Date[_0x16fbc6(0x257)](),_0x9ebb2a=encodeWorkbookOtherMetas(_0x3e7a48),_0x5d798e={'unitID':_0x3e7a48['id'],'rev':_0x53b1b4,'creator':'','name':_0x3e7a48['name'],'sheetOrder':_0x3e7a48[_0x16fbc6(0x3d6)],'sheets':_0x26e5c6,'blockMeta':_0x4d9dca,'resources':_0x3e7a48[_0x16fbc6(0x2c3)]||[],'originalMeta':_0x9ebb2a},_0xb885ad=(_0x5d0cc0,_0x355ccd)=>{return _0x5d0cc0['every'](_0x2939ca=>_0x355ccd['hasOwnProperty'](_0x2939ca));},_0x3c4951=_0x3e7a48[_0x16fbc6(0x3d6)][_0x16fbc6(0x367)],_0x533835=Object[_0x16fbc6(0x2fd)](_0x5d798e[_0x16fbc6(0x275)]),_0x538fd6=Object[_0x16fbc6(0x2fd)](_0x5d798e[_0x16fbc6(0x258)]);if(_0x3c4951!==_0x533835[_0x16fbc6(0x367)]||!_0xb885ad(_0x3e7a48['sheetOrder'],_0x5d798e['sheets'])){_0x43958b===null||_0x43958b===void 0x0||_0x43958b['error'](_0x16fbc6(0x358),_0x16fbc6(0x2b4)+_0x3e7a48['id']+'\x20'+_0x3c4951+'\x20'+_0x533835[_0x16fbc6(0x367)]+_0x16fbc6(0x35d)+JSON[_0x16fbc6(0x2d3)](_0x3e7a48['sheetOrder'])+_0x16fbc6(0x268)+JSON[_0x16fbc6(0x2d3)](_0x533835)+_0x16fbc6(0x2c2)+JSON[_0x16fbc6(0x2d3)](Object['keys'](_0x3e7a48['sheets'])));throw new Error(_0x16fbc6(0x413));}if(_0x533835[_0x16fbc6(0x367)]!==_0x538fd6[_0x16fbc6(0x367)]||!_0xb885ad(_0x533835,_0x5d798e[_0x16fbc6(0x258)])||!_0xb885ad(_0x538fd6,_0x5d798e[_0x16fbc6(0x275)])){_0x43958b===null||_0x43958b===void 0x0||_0x43958b[_0x16fbc6(0x1bf)](_0x16fbc6(0x358),'Sheet\x20block\x20mismatch!\x20'+_0x3e7a48['id']+'\x20'+_0x533835[_0x16fbc6(0x367)]+'\x20'+_0x538fd6[_0x16fbc6(0x367)]+'\x20Sheet\x20Metas:\x20'+JSON[_0x16fbc6(0x2d3)](_0x533835)+_0x16fbc6(0x418)+JSON[_0x16fbc6(0x2d3)](_0x538fd6)+_0x16fbc6(0x2c2)+JSON[_0x16fbc6(0x2d3)](Object[_0x16fbc6(0x2fd)](_0x3e7a48[_0x16fbc6(0x275)])));throw new Error(_0x16fbc6(0x22d));}_0x3a5d3f+=Date['now']()-_0x3b80db;const _0xb59db2={'unitID':_0x34aa2d,'rev':_0x5d798e[_0x16fbc6(0x359)],'type':_univerjs_core[_0x16fbc6(0x36f)][_0x16fbc6(0x24b)],'workbook':_0x5d798e,'doc':void 0x0},_0x2cabd6=await _0x528ef5[_0x16fbc6(0x28a)](_0x3171f2,{'unitID':_0x34aa2d,'type':_univerjs_core[_0x16fbc6(0x36f)][_0x16fbc6(0x24b)],'snapshot':_0xb59db2});(_0x468e31=_0x528ef5['reportUnitRoutingStats'])===null||_0x468e31===void 0x0||_0x468e31['call'](_0x528ef5,_0x3171f2,{'unitId':_0x34aa2d,'estimatedCells':_0x57c120,'snapshotTime':Math[_0x16fbc6(0x3b9)](_0x3a5d3f/0x3e8)});if((0x0,_univerjs_protocol['isError'])(_0x2cabd6[_0x16fbc6(0x1bf)])){var _0x4f45f2,_0x57ff64;throw new Error(_0x16fbc6(0x2f7)+((_0x4f45f2=_0x2cabd6[_0x16fbc6(0x1bf)])===null||_0x4f45f2===void 0x0?void 0x0:_0x4f45f2[_0x16fbc6(0x37d)])+':'+((_0x57ff64=_0x2cabd6[_0x16fbc6(0x1bf)])===null||_0x57ff64===void 0x0?void 0x0:_0x57ff64['message']));}return{'snapshot':_0xb59db2};}async function transformSnapshotToWorkbookData(_0x18f1d1,_0x521f7a,_0x5e339f,_0x363249){const _0x6f24e=_0x4fd226,_0x230a4d=_0x18f1d1[_0x6f24e(0x206)];if(!_0x230a4d)throw new Error(_0x6f24e(0x1bc));const _0xf1ea07={};Object['entries'](_0x230a4d['sheets'])['forEach'](([_0x36bc34,_0x27147a])=>{const _0x5ec656=_0x6f24e,_0x130920=decodeWorksheetOtherMetas(_0x27147a[_0x5ec656(0x272)]);_0xf1ea07[_0x36bc34]={'id':_0x27147a['id'],'name':_0x27147a['name'],'rowCount':_0x27147a[_0x5ec656(0x2e2)],'columnCount':_0x27147a[_0x5ec656(0x1d8)],..._0x130920};});const _0x302ae2=new Map();for(let _0x1c54c2=0x0;_0x1c54c2<_0x521f7a[_0x6f24e(0x367)];_0x1c54c2++)_0x302ae2[_0x6f24e(0x2bd)](_0x521f7a[_0x1c54c2]['id'],{'index':_0x1c54c2,'block':_0x521f7a[_0x1c54c2]});const _0x10814e=performance['now']();_0x363249===null||_0x363249===void 0x0||_0x363249[_0x6f24e(0x21d)](_0x6f24e(0x2ab),_0x6f24e(0x21f)+_0x521f7a['length']+'\x20blocks');if(_0x230a4d[_0x6f24e(0x258)])for(const [_0x3710c8,_0x5c3df1]of Object['entries'](_0x230a4d[_0x6f24e(0x258)])){if(!_0xf1ea07[_0x3710c8])continue;const _0x36bc04={};if(_0x5c3df1[_0x6f24e(0x3fb)]&&_0x5c3df1[_0x6f24e(0x3fb)]['length']>0x0)for(const _0x2ee47d of _0x5c3df1[_0x6f24e(0x3fb)]){if(!_0x302ae2[_0x6f24e(0x22a)](_0x2ee47d))throw new Error(_0x6f24e(0x252)+_0x2ee47d+'\x20for\x20sheet\x20'+_0x3710c8);const {index:_0x1ca44e,block:_0x3602f7}=_0x302ae2[_0x6f24e(0x263)](_0x2ee47d);if(_0x3602f7){const _0x3ba872=decodePartOfCellData(_0x3602f7[_0x6f24e(0x1d2)]);for(const _0xb42612 in _0x3ba872)_0x36bc04[Number(_0xb42612)]=_0x3ba872[_0xb42612];_0x302ae2[_0x6f24e(0x231)](_0x2ee47d),_0x521f7a[_0x1ca44e]=null,_0x3602f7[_0x6f24e(0x1d2)]=null;}await yieldToEventLoop();}_0xf1ea07[_0x3710c8][_0x6f24e(0x3d2)]=_0x36bc04;}const _0x3a6746=performance[_0x6f24e(0x257)]();if(_0x3a6746-_0x10814e>0x2710)_0x363249===null||_0x363249===void 0x0||_0x363249[_0x6f24e(0x21d)](_0x6f24e(0x2ab),_0x6f24e(0x3b4)+(_0x3a6746-_0x10814e)[_0x6f24e(0x326)](0x2)+'\x20ms');else _0x363249===null||_0x363249===void 0x0||_0x363249[_0x6f24e(0x21d)]('[ParseBlocks]',_0x6f24e(0x220)+(_0x3a6746-_0x10814e)['toFixed'](0x2)+'\x20ms');_0x302ae2['clear'](),_0x521f7a[_0x6f24e(0x367)]=0x0;const _0x88adca=decodeWorksheetOtherMetas(_0x230a4d[_0x6f24e(0x272)]);return{'id':_0x18f1d1[_0x6f24e(0x27f)]||_0x230a4d[_0x6f24e(0x27f)],'rev':_0x18f1d1[_0x6f24e(0x359)]||_0x230a4d[_0x6f24e(0x359)],'name':_0x230a4d['name'],'sheetOrder':_0x230a4d[_0x6f24e(0x3d6)],'appVersion':'','locale':_univerjs_core['LocaleType']['EN_US'],'sheets':_0xf1ea07,'styles':{},'resources':_0x230a4d[_0x6f24e(0x2c3)]||[],..._0x88adca};}function transformSnapshotToDocumentData(_0x3e73af){const _0x1ea397=_0x4fd226,_0x59cf76=_0x3e73af['doc'];if(_0x59cf76==null)throw new Error('transformSnapshotToDocumentData():\x20snapshot.doc\x20is\x20undefined.');const {unitID:_0x2b80c6,rev:_0x186596,name:_0x45cba8,originalMeta:_0x5d5da8,resources:resources=[]}=_0x59cf76,{body:_0x3f6746,documentStyle:documentStyle={},settings:settings={},drawings:drawings={},drawingsOrder:drawingsOrder=[],tableSource:tableSource={},headers:headers={},footers:footers={},lists:lists={}}=decodeDocOriginalMeta(_0x5d5da8);return{'id':_0x2b80c6,'rev':_0x186596,'locale':_univerjs_core[_0x1ea397(0x2f4)][_0x1ea397(0x24e)],'title':_0x45cba8,'body':_0x3f6746,'documentStyle':documentStyle,'settings':settings,'drawings':drawings,'drawingsOrder':drawingsOrder,'resources':resources,'tableSource':tableSource,'headers':headers,'footers':footers,'lists':lists};}async function transformDocumentDataToSnapshot(_0x33e4ad,_0x3387f4,_0x351700,_0x191e15,_0x500cd8){const _0x4fb35a=_0x4fd226;var _0x3b0d24;const _0x124a5d={'unitID':_0x3387f4['id'],'rev':_0x191e15,'creator':'','name':(_0x3b0d24=_0x3387f4[_0x4fb35a(0x1e3)])!==null&&_0x3b0d24!==void 0x0?_0x3b0d24:'','resources':_0x3387f4[_0x4fb35a(0x2c3)]||[],'originalMeta':encodeDocOriginalMeta(_0x3387f4)},_0x4225aa={'unitID':_0x351700,'rev':_0x124a5d['rev'],'type':_univerjs_core[_0x4fb35a(0x36f)][_0x4fb35a(0x40e)],'workbook':void 0x0,'doc':_0x124a5d},_0x1ec206=await _0x500cd8[_0x4fb35a(0x28a)](_0x33e4ad,{'unitID':_0x351700,'type':_univerjs_core[_0x4fb35a(0x36f)][_0x4fb35a(0x40e)],'snapshot':_0x4225aa});if((0x0,_univerjs_protocol[_0x4fb35a(0x27a)])(_0x1ec206[_0x4fb35a(0x1bf)])){var _0x409753,_0x1e9d44;throw new Error(_0x4fb35a(0x233)+((_0x409753=_0x1ec206[_0x4fb35a(0x1bf)])===null||_0x409753===void 0x0?void 0x0:_0x409753[_0x4fb35a(0x37d)])+':'+((_0x1e9d44=_0x1ec206[_0x4fb35a(0x1bf)])===null||_0x1e9d44===void 0x0?void 0x0:_0x1e9d44[_0x4fb35a(0x2d4)]));}return{'snapshot':_0x4225aa};}async function getSheetBlocksFromSnapshot(_0x727684,_0x18c2fb){const _0x295d24=_0x4fd226,_0x253df8=_0x727684[_0x295d24(0x206)];if(!_0x253df8)throw new Error('Workbook\x20metadata\x20is\x20not\x20available');const _0x38ac50=[],_0x2f8478=[];return Object[_0x295d24(0x1c1)](_0x253df8[_0x295d24(0x258)])[_0x295d24(0x222)](([_0x235faf,_0x14065a])=>{const _0x3773ba=_0x295d24,_0x3a70f6=_0x14065a[_0x3773ba(0x3fb)][_0x3773ba(0x208)](async _0x677f50=>{const _0x2c96b1=_0x3773ba,_0x4f2468={'unitID':_0x253df8[_0x2c96b1(0x27f)],'type':_univerjs_core['UniverInstanceType'][_0x2c96b1(0x24b)],'blockID':_0x677f50},{block:_0x4ef052}=await _0x18c2fb[_0x2c96b1(0x1cf)]({},_0x4f2468);if(_0x4ef052)_0x38ac50[_0x2c96b1(0x285)](_0x4ef052);else throw new Error(_0x2c96b1(0x364));});_0x2f8478[_0x3773ba(0x285)](..._0x3a70f6);}),await Promise[_0x295d24(0x316)](_0x2f8478),_0x38ac50;}const ISnapshotServerService=(0x0,_univerjs_core[_0x4fd226(0x226)])('univer.snapshot-server-service');let SnapshotService=class SnapshotService{constructor(_0x29a55a,_0x152dfb,_0x53b1e3,_0x59640d,_0x56dad4,_0x51df87,_0x45ba97){const _0x5bc341=_0x4fd226;this['_revisionService']=_0x29a55a,this[_0x5bc341(0x37c)]=_0x152dfb,this[_0x5bc341(0x2ff)]=_0x53b1e3,this['_commandService']=_0x59640d,this['_logService']=_0x56dad4,this['_compressMutationService']=_0x51df87,this[_0x5bc341(0x37f)]=_0x45ba97;}async[_0x4fd226(0x3ae)](_0x3414dc,_0x520cc2,_0x521ba3={'metadata':{'Trace-Id':(0x0,uuid['v4'])()}}){const _0x2fc266=_0x4fd226;var _0x43b1b6;const _0x5dd94e=this[_0x2fc266(0x37c)][_0x2fc266(0x30d)](_0x3414dc,_univerjs_core[_0x2fc266(0x36f)][_0x2fc266(0x24b)]);if(_0x5dd94e)return _0x5dd94e;const {snapshot:_0x2facd2,changesets:_0x1d387d,error:_0xf432e8}=await this[_0x2fc266(0x2ff)]['getUnitOnRev'](_0x521ba3,{'unitID':_0x3414dc,'type':_univerjs_core['UniverInstanceType'][_0x2fc266(0x24b)],'revision':_0x520cc2});if((0x0,_univerjs_protocol[_0x2fc266(0x27a)])(_0xf432e8)||!_0x2facd2||!_0x2facd2[_0x2fc266(0x206)]){const _0x44d666={..._0xf432e8};_0x44d666[_0x2fc266(0x2d4)]='[SnapshotService]:\x20request\x20snapshot\x20error!\x20The\x20original\x20error\x20is:\x20'+(_0xf432e8===null||_0xf432e8===void 0x0?void 0x0:_0xf432e8['message']);throw _0x44d666;}const _0x169559=(_0x43b1b6=_0x1d387d===null||_0x1d387d===void 0x0?void 0x0:_0x1d387d['length'])!==null&&_0x43b1b6!==void 0x0?_0x43b1b6:0x0;if(_0x520cc2!==0x0&&_0x2facd2[_0x2fc266(0x359)]+_0x169559!==_0x520cc2)throw new Error(_0x2fc266(0x2a9));const {workbook:_0x3875cf}=_0x2facd2,_0x4eb55d=(_0x3875cf[_0x2fc266(0x258)]?Object['entries'](_0x3875cf[_0x2fc266(0x258)])[_0x2fc266(0x208)](([_0x2458eb,_0x200f2f])=>{const _0x58b81e=_0x2fc266;var _0x840206,_0x5c6af7;return(_0x840206=(_0x5c6af7=_0x200f2f[_0x58b81e(0x3fb)])===null||_0x5c6af7===void 0x0?void 0x0:_0x5c6af7[_0x58b81e(0x208)](_0xd3b233=>_0xd3b233))!==null&&_0x840206!==void 0x0?_0x840206:[];})[_0x2fc266(0x2e8)]():[])[_0x2fc266(0x208)](_0x5948b7=>()=>this[_0x2fc266(0x2ff)][_0x2fc266(0x22e)](_0x521ba3,{'unitID':_0x3414dc,'type':_univerjs_core[_0x2fc266(0x36f)]['UNIVER_SHEET'],'blockID':_0x5948b7})),_0x353a29=[];try{await measureAsyncOperation(_0x2fc266(0x2ee),()=>limitConcurrencyTasks({'tasks':_0x4eb55d,'handleTaskResult':_0x5bde47=>{const _0x2ad9c5=_0x2fc266;if(_0x5bde47[_0x2ad9c5(0x311)])_0x353a29['push'](_0x5bde47['block']);},'onError':_0x4127e8=>{const _0x273fdd=_0x2fc266;this[_0x273fdd(0x348)][_0x273fdd(0x1bf)](_0x273fdd(0x3d4),_0x273fdd(0x1de)+_0x4127e8);}}),this[_0x2fc266(0x348)],0x2710,_0x2fc266(0x265)+_0x4eb55d[_0x2fc266(0x367)]+_0x2fc266(0x267));}catch(_0x29fb24){throw new Error(_0x2fc266(0x3c3)+JSON[_0x2fc266(0x2d3)](_0x29fb24));}const _0x4eb3ca=await measureAsyncOperation(_0x2fc266(0x3b7),()=>transformSnapshotToWorkbookData(_0x2facd2,_0x353a29,_0x521ba3,this[_0x2fc266(0x348)]),this[_0x2fc266(0x348)]),_0x30364e=this['_univerInstanceService'][_0x2fc266(0x369)](_univerjs_core[_0x2fc266(0x36f)]['UNIVER_SHEET'],_0x4eb3ca);return measureSyncOperation(_0x2fc266(0x28c),()=>{const _0x498f1a=_0x2fc266,_0x4ed6c2=this[_0x498f1a(0x1ce)][_0x498f1a(0x1c9)][_0x498f1a(0x30a)](this[_0x498f1a(0x1ce)][_0x498f1a(0x1c9)][_0x498f1a(0x36c)]()[_0x498f1a(0x30f)]);_0x1d387d===null||_0x1d387d===void 0x0||_0x1d387d[_0x498f1a(0x222)](_0x13b2bb=>{const _0x10afb5=_0x498f1a;if(_0x13b2bb['mutations']===null||_0x13b2bb[_0x10afb5(0x31c)]===void 0x0)_0x13b2bb[_0x10afb5(0x31c)]=[];const _0x30b2ef=_0x13b2bb[_0x10afb5(0x31c)][_0x10afb5(0x208)](_0x3578d3=>({'id':_0x3578d3['id'],'params':JSON[_0x10afb5(0x412)](_0x3578d3[_0x10afb5(0x1d2)])}));({..._0x13b2bb,'mutations':_0x4ed6c2(_0x30b2ef,null)||_0x30b2ef}['mutations'][_0x10afb5(0x222)](_0x3433a3=>this[_0x10afb5(0x2e9)]['syncExecuteCommand'](_0x3433a3['id'],_0x3433a3['params'],{'fromChangeset':!![]})),this[_0x10afb5(0x25d)][_0x10afb5(0x2ca)](_0x3414dc));});},this[_0x2fc266(0x348)]),_0x30364e;}async['loadDoc'](_0x422c96,_0x164399,_0x3456d8={'metadata':{'Trace-Id':(0x0,uuid['v4'])()}}){const _0x168dd9=_0x4fd226;var _0x4285c3;const {snapshot:_0x30d920,changesets:_0x537955,error:_0xfe172d}=await this[_0x168dd9(0x2ff)][_0x168dd9(0x20f)](_0x3456d8,{'unitID':_0x422c96,'type':_univerjs_core['UniverInstanceType'][_0x168dd9(0x40e)],'revision':_0x164399});if((0x0,_univerjs_protocol[_0x168dd9(0x27a)])(_0xfe172d)||!_0x30d920||!_0x30d920['doc']){const _0x574b6b={..._0xfe172d};_0x574b6b['message']='[SnapshotService]:\x20request\x20snapshot\x20error!';throw _0x574b6b;}const _0x9bfc91=(_0x4285c3=_0x537955===null||_0x537955===void 0x0?void 0x0:_0x537955[_0x168dd9(0x367)])!==null&&_0x4285c3!==void 0x0?_0x4285c3:0x0;if(_0x164399!==0x0&&_0x30d920[_0x168dd9(0x359)]+_0x9bfc91!==_0x164399)throw new Error(_0x168dd9(0x2a9));const _0x3ec63b=transformSnapshotToDocumentData(_0x30d920),_0x4025f0=this[_0x168dd9(0x37c)][_0x168dd9(0x369)](_univerjs_core[_0x168dd9(0x36f)]['UNIVER_DOC'],_0x3ec63b);return _0x537955===null||_0x537955===void 0x0||_0x537955[_0x168dd9(0x222)](_0x538813=>{const _0x4c49b2=_0x168dd9;if(_0x538813[_0x4c49b2(0x31c)]===null||_0x538813[_0x4c49b2(0x31c)]===void 0x0)_0x538813[_0x4c49b2(0x31c)]=[];_0x538813['mutations'][_0x4c49b2(0x208)](_0xa8bd99=>({'id':_0xa8bd99['id'],'params':JSON[_0x4c49b2(0x412)](_0xa8bd99[_0x4c49b2(0x1d2)])}))[_0x4c49b2(0x222)](_0x5c6f97=>this['_commandService'][_0x4c49b2(0x2c7)](_0x5c6f97['id'],_0x5c6f97[_0x4c49b2(0x235)],{'fromChangeset':!![]})),this[_0x4c49b2(0x25d)][_0x4c49b2(0x2ca)](_0x422c96);}),_0x4025f0;}[_0x4fd226(0x333)](_0x5c69ef,_0x49ab42){const _0x4e3418=_0x4fd226,_0xe81b98={..._0x49ab42[_0x4e3418(0x33a)]()};return _0x49ab42[_0x4e3418(0x32b)]()[_0x4e3418(0x222)](_0x179d9d=>{const _0x2ec922=_0x4e3418;_0xe81b98[_0x2ec922(0x275)][_0x179d9d['getSheetId']()]=_univerjs_core[_0x2ec922(0x1d5)][_0x2ec922(0x28e)](_0x179d9d[_0x2ec922(0x33a)]());}),_0xe81b98[_0x4e3418(0x2c3)]=this[_0x4e3418(0x37f)]['getResources'](_0x49ab42[_0x4e3418(0x29e)](),_univerjs_core[_0x4e3418(0x36f)][_0x4e3418(0x24b)]),_0xe81b98;}[_0x4fd226(0x1ec)](_0x24de39,_0x17a428){const _0x4c24e4=_0x4fd226,_0x3f0f23={..._0x17a428[_0x4c24e4(0x33a)]()};return _0x3f0f23[_0x4c24e4(0x2c3)]=this[_0x4c24e4(0x37f)][_0x4c24e4(0x2fa)](_0x17a428[_0x4c24e4(0x29e)](),_univerjs_core[_0x4c24e4(0x36f)]['UNIVER_DOC']),_0x3f0f23;}};SnapshotService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x4fd226(0x3db)])(RevisionService)),__decorateParam(0x1,_univerjs_core[_0x4fd226(0x24a)]),__decorateParam(0x2,ISnapshotServerService),__decorateParam(0x3,_univerjs_core[_0x4fd226(0x3bc)]),__decorateParam(0x4,_univerjs_core[_0x4fd226(0x362)]),__decorateParam(0x5,(0x0,_univerjs_core[_0x4fd226(0x3db)])(CompressMutationService)),__decorateParam(0x6,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x4fd226(0x354)]))],SnapshotService);let UniverCollaborationPlugin=class UniverCollaborationPlugin extends _univerjs_core['Plugin']{constructor(_0x480d8e=defaultPluginConfig,_0x288276,_0x4456a1){const _0x11126a=_0x4fd226;super(),this[_0x11126a(0x266)]=_0x480d8e,this[_0x11126a(0x2cd)]=_0x288276,this['_configService']=_0x4456a1;const {..._0x18e95c}=(0x0,_univerjs_core[_0x11126a(0x378)])({},defaultPluginConfig,this[_0x11126a(0x266)]);this[_0x11126a(0x289)][_0x11126a(0x2b9)](COLLABORATION_PLUGIN_CONFIG_KEY,_0x18e95c);}[_0x4fd226(0x3be)](){const _0x355a73=_0x4fd226;(0x0,_univerjs_core[_0x355a73(0x250)])(this['_injector'],[[RevisionService],[RevisionController],[SheetTransformController],[DocTransformController],[SnapshotService],[ITransformService,{'useClass':TransformService}],[CompressMutationService]]),(0x0,_univerjs_core[_0x355a73(0x20c)])(this[_0x355a73(0x2cd)],[[DocTransformController],[RevisionController],[SheetTransformController]]);}};_defineProperty(UniverCollaborationPlugin,_0x4fd226(0x245),_0x4fd226(0x3a7)),_defineProperty(UniverCollaborationPlugin,_0x4fd226(0x31a),name),_defineProperty(UniverCollaborationPlugin,_0x4fd226(0x2f0),version),UniverCollaborationPlugin=__decorate([(0x0,_univerjs_core['DependentOn'])(_univerjs_pro_license['UniverLicensePlugin']),__decorateParam(0x1,(0x0,_univerjs_core[_0x4fd226(0x3db)])(_univerjs_core[_0x4fd226(0x297)])),__decorateParam(0x2,_univerjs_core[_0x4fd226(0x3bd)])],UniverCollaborationPlugin);let SnapshotSaveService=class SnapshotSaveService{constructor(_0x5aebe2,_0x3d6b2d,_0x57759e){const _0x22f14f=_0x4fd226;this['_snapshotServerService']=_0x5aebe2,this[_0x22f14f(0x295)]=_0x3d6b2d,this[_0x22f14f(0x348)]=_0x57759e;}async[_0x4fd226(0x333)](_0x5ae437,_0x39809d,_0xd73663,_0x389f15,_0x379e83){const _0x56ce9e=_0x4fd226;return transformWorkbookDataToSnapshot(_0x5ae437,_0x379e83||this['_snapshotService'][_0x56ce9e(0x333)](_0x5ae437,_0x389f15),_0x39809d,_0xd73663,this[_0x56ce9e(0x2ff)],this['_logService']);}async['updateSheet'](_0x1c0d26,_0x55cfea,_0x2680a4,_0x9e8cde){const _0x13ea76=_0x4fd226;return transformWorkbookDataToSnapshotNoSave(_0x1c0d26,_0x9e8cde||this[_0x13ea76(0x295)]['saveSheet'](_0x1c0d26,_0x2680a4),_0x55cfea,this[_0x13ea76(0x2ff)]);}async[_0x4fd226(0x325)](_0x5c72c8,_0x3c608f,_0x58e35a,_0x23f59a){const _0x3de27d=_0x4fd226;return generateTemporarySnap(_0x5c72c8,this[_0x3de27d(0x295)][_0x3de27d(0x333)](_0x5c72c8,_0x23f59a),_0x3c608f,_0x58e35a,this[_0x3de27d(0x2ff)],this[_0x3de27d(0x348)]);}async[_0x4fd226(0x341)](_0xae4781,_0x38bb18,_0x330564,_0x337cb2){const _0x8e6ca0=_0x4fd226;return generateTempDocumentSnapshot(_0xae4781,this['_snapshotService'][_0x8e6ca0(0x1ec)](_0xae4781,_0x337cb2),_0x38bb18,_0x330564);}async[_0x4fd226(0x1ec)](_0x316284,_0x3ffe0b,_0x327ffc,_0x4f41d8,_0x239a9d){const _0x49210e=_0x4fd226;return transformDocumentDataToSnapshot(_0x316284,_0x239a9d||this[_0x49210e(0x295)][_0x49210e(0x1ec)](_0x316284,_0x4f41d8),_0x3ffe0b,_0x327ffc,this[_0x49210e(0x2ff)]);}};SnapshotSaveService=__decorate([__decorateParam(0x0,ISnapshotServerService),__decorateParam(0x1,(0x0,_univerjs_core[_0x4fd226(0x3db)])(SnapshotService)),__decorateParam(0x2,(0x0,_univerjs_core[_0x4fd226(0x3db)])(_univerjs_core[_0x4fd226(0x362)]))],SnapshotSaveService),exports[_0x4fd226(0x1d0)]=CollaborationEvent,exports['CompressMutationService']=CompressMutationService,exports[_0x4fd226(0x1fe)]=CreateUnitMutation,Object['defineProperty'](exports,'DocTransformController',{'enumerable':!![],'get':function(){return DocTransformController;}}),exports[_0x4fd226(0x324)]=EmptyMutationInfo,exports[_0x4fd226(0x1e2)]=ISnapshotServerService,exports['ITransformService']=ITransformService,exports['RevertRevisionMutation']=RevertRevisionMutation,Object['defineProperty'](exports,'RevisionService',{'enumerable':!![],'get':function(){return RevisionService;}}),exports[_0x4fd226(0x2d2)]=SINGLE_HISTORY_MUTATIONS,exports[_0x4fd226(0x2e6)]=SINGLE_SNAPSHOT_MUTATIONS,Object['defineProperty'](exports,_0x4fd226(0x308),{'enumerable':!![],'get':function(){return SheetTransformController;}}),Object[_0x4fd226(0x374)](exports,_0x4fd226(0x291),{'enumerable':!![],'get':function(){return SnapshotSaveService;}}),Object[_0x4fd226(0x374)](exports,_0x4fd226(0x1f7),{'enumerable':!![],'get':function(){return SnapshotService;}}),Object[_0x4fd226(0x374)](exports,'TransformService',{'enumerable':!![],'get':function(){return TransformService;}}),Object[_0x4fd226(0x374)](exports,_0x4fd226(0x2ba),{'enumerable':!![],'get':function(){return UniverCollaborationPlugin;}}),exports[_0x4fd226(0x1fd)]=b64DecodeUnicode,exports[_0x4fd226(0x330)]=b64EncodeUnicode,exports[_0x4fd226(0x216)]=generateTempDocumentSnapshot,exports[_0x4fd226(0x3f1)]=generateTemporarySnap,exports['getSheetBlocksFromSnapshot']=getSheetBlocksFromSnapshot,exports[_0x4fd226(0x404)]=isTransformChangesetsFailure,exports['isTransformChangesetsSuccess']=isTransformChangesetsSuccess,exports[_0x4fd226(0x2eb)]=isTransformMutationFailure,exports['isTransformMutationSuccess']=isTransformMutationSuccess,exports[_0x4fd226(0x26d)]=isTransformMutationsFailure,exports[_0x4fd226(0x2d7)]=isTransformMutationsSuccess,exports[_0x4fd226(0x278)]=isTransformMutationsWithChangesetFailure,exports[_0x4fd226(0x395)]=isTransformMutationsWithChangesetSuccess,exports[_0x4fd226(0x403)]=mapDocumentTypeToUniverInstanceType,exports[_0x4fd226(0x376)]=measureAsyncOperation,exports['measureSyncOperation']=measureSyncOperation,exports[_0x4fd226(0x243)]=parseChangesetToProtocol,exports[_0x4fd226(0x282)]=parseMutationToProtocol,exports[_0x4fd226(0x209)]=parseProtocolChangeset,exports[_0x4fd226(0x21a)]=parseProtocolCommand,exports['parseProtocolMutation']=parseProtocolMutation,exports[_0x4fd226(0x2d5)]=textDecoder,exports[_0x4fd226(0x322)]=textEncoder,exports[_0x4fd226(0x318)]=transformDocumentDataToSnapshot,exports[_0x4fd226(0x1c5)]=transformSnapshotToDocumentData,exports['transformSnapshotToWorkbookData']=transformSnapshotToWorkbookData,exports[_0x4fd226(0x3d8)]=transformWorkbookDataToSnapshot,Object[_0x4fd226(0x374)](exports,_0x4fd226(0x23f),{'enumerable':!![],'get':function(){return uuid['v4'];}});
|