@univerjs-pro/sheets-outline 1.0.1 → 1.0.2
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/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x5c60e5=_0x13d4;(function(_0x13da71,_0xab6891){var _0x24fc2b=_0x13d4,_0x3e13e2=_0x13da71();while(!![]){try{var _0x741d2f=-parseInt(_0x24fc2b(0x1f9))/0x1+-parseInt(_0x24fc2b(0x1f8))/0x2+-parseInt(_0x24fc2b(0x1e6))/0x3*(-parseInt(_0x24fc2b(0x1fa))/0x4)+-parseInt(_0x24fc2b(0x1f5))/0x5+parseInt(_0x24fc2b(0x1fb))/0x6*(-parseInt(_0x24fc2b(0x1e5))/0x7)+parseInt(_0x24fc2b(0x1e9))/0x8+-parseInt(_0x24fc2b(0x1ef))/0x9*(-parseInt(_0x24fc2b(0x1ed))/0xa);if(_0x741d2f===_0xab6891)break;else _0x3e13e2['push'](_0x3e13e2['shift']());}catch(_0x1c665e){_0x3e13e2['push'](_0x3e13e2['shift']());}}}(_0x1f4e,0xe8645));function _0x1f4e(){var _0x5c33f6=['1400830hDyYtH','_workbook','45yNfZta','syncExecuteCommand','addColumnOutline','DimensionOutlineErrorReason','_worksheet','axis','1785045EnwkLs','removeDimensionOutline','COLUMN','494766avjLwl','310732bsCMdh','28wJcNxM','6AgCfyJ','addRowOutline','FWorksheet','getOutlines','_commandService','RemoveDimensionOutlineCommand','getSheetId','extend','getUnitId','4125982mNJhcC','52641ykUCay','DimensionOutlineAxis','AddDimensionOutlineCommand','13065464GVQTXy','SheetsOutlineModel','filter','_addDimensionOutline'];_0x1f4e=function(){return _0x5c33f6;};return _0x1f4e();}let e=require('@univerjs-pro/sheets-outline'),t=require('@univerjs/core/facade'),n=require('@univerjs/sheets/facade');function _0x13d4(_0x111372,_0xd011b5){_0x111372=_0x111372-0x1df;var _0x1f4e5c=_0x1f4e();var _0x13d412=_0x1f4e5c[_0x111372];return _0x13d412;}var r=class extends t['FEnum']{get[_0x5c60e5(0x1e7)](){var _0x28ad08=_0x5c60e5;return e[_0x28ad08(0x1e7)];}get[_0x5c60e5(0x1f2)](){var _0x7bd659=_0x5c60e5;return e[_0x7bd659(0x1f2)];}};t['FEnum'][_0x5c60e5(0x1e3)](r);var i=class extends n['FWorksheet']{[_0x5c60e5(0x1fc)](_0x230d85,_0x47029d){var _0x3d6509=_0x5c60e5;return this[_0x3d6509(0x1ec)](e[_0x3d6509(0x1e7)]['ROW'],_0x230d85,_0x47029d);}[_0x5c60e5(0x1f1)](_0x5d1749,_0x5cb67e){var _0x1de987=_0x5c60e5;return this[_0x1de987(0x1ec)](e[_0x1de987(0x1e7)][_0x1de987(0x1f7)],_0x5d1749,_0x5cb67e);}[_0x5c60e5(0x1f6)](_0x2346c2){var _0x275073=_0x5c60e5;return this[_0x275073(0x1e0)]['syncExecuteCommand'](e[_0x275073(0x1e1)]['id'],{'unitId':this[_0x275073(0x1ee)][_0x275073(0x1e4)](),'subUnitId':this['_worksheet'][_0x275073(0x1e2)](),'outlineId':_0x2346c2}),this;}['setDimensionOutlineCollapsed'](_0x451e27,_0x3f0b3a){var _0x5e8253=_0x5c60e5;return this[_0x5e8253(0x1e0)][_0x5e8253(0x1f0)](e['SetDimensionOutlineCollapsedCommand']['id'],{'unitId':this[_0x5e8253(0x1ee)]['getUnitId'](),'subUnitId':this[_0x5e8253(0x1f3)][_0x5e8253(0x1e2)](),'outlineId':_0x451e27,'collapsed':_0x3f0b3a}),this;}['clearDimensionOutlines'](_0x2a61fd,_0x2ae426,_0xa370d9){var _0x2aac3d=_0x5c60e5;return this[_0x2aac3d(0x1e0)][_0x2aac3d(0x1f0)](e['ClearDimensionOutlinesCommand']['id'],{'unitId':this[_0x2aac3d(0x1ee)][_0x2aac3d(0x1e4)](),'subUnitId':this['_worksheet']['getSheetId'](),'axis':_0x2a61fd,'start':_0x2ae426,'end':_0xa370d9}),this;}['getDimensionOutlines'](_0x1977fd){var _0x27c1c7=_0x5c60e5;let _0x26a7d5=this['_injector']['get'](e[_0x27c1c7(0x1ea)])[_0x27c1c7(0x1df)](this[_0x27c1c7(0x1ee)][_0x27c1c7(0x1e4)](),this[_0x27c1c7(0x1f3)][_0x27c1c7(0x1e2)]());return _0x1977fd?_0x26a7d5[_0x27c1c7(0x1eb)](_0x215ea3=>_0x215ea3[_0x27c1c7(0x1f4)]===_0x1977fd):_0x26a7d5;}[_0x5c60e5(0x1ec)](_0x258242,_0x171e0d,_0x2e932f){var _0x3c2a41=_0x5c60e5;return this['_commandService'][_0x3c2a41(0x1f0)](e[_0x3c2a41(0x1e8)]['id'],{'unitId':this[_0x3c2a41(0x1ee)][_0x3c2a41(0x1e4)](),'subUnitId':this[_0x3c2a41(0x1f3)][_0x3c2a41(0x1e2)](),'axis':_0x258242,'start':_0x171e0d,'end':_0x171e0d+_0x2e932f-0x1}),this;}};n[_0x5c60e5(0x1fd)][_0x5c60e5(0x1e3)](i);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2cfd2a=_0x5ac2;(function(_0x57d802,_0x1f0106){const _0x122d7=_0x5ac2,_0x424a03=_0x57d802();while(!![]){try{const _0x3a32fc=-parseInt(_0x122d7(0xf1))/0x1*(parseInt(_0x122d7(0xc7))/0x2)+parseInt(_0x122d7(0xf4))/0x3+-parseInt(_0x122d7(0x102))/0x4+-parseInt(_0x122d7(0xa6))/0x5+-parseInt(_0x122d7(0xdd))/0x6*(-parseInt(_0x122d7(0xf7))/0x7)+-parseInt(_0x122d7(0xd7))/0x8*(parseInt(_0x122d7(0x124))/0x9)+parseInt(_0x122d7(0x16e))/0xa*(parseInt(_0x122d7(0xbc))/0xb);if(_0x3a32fc===_0x1f0106)break;else _0x424a03['push'](_0x424a03['shift']());}catch(_0x848af){_0x424a03['push'](_0x424a03['shift']());}}}(_0x3577,0x5866a),Object[_0x2cfd2a(0x94)](exports,Symbol[_0x2cfd2a(0x109)],{'value':_0x2cfd2a(0xbf)}));let e=require('@univerjs/core'),t=require('@univerjs/sheets'),n=require('rxjs'),r=require('rxjs/operators'),i=require('@univerjs-pro/license'),a=function(_0x273544){const _0x8dc5b1=_0x2cfd2a;return _0x273544['ROW']=_0x8dc5b1(0x12e),_0x273544[_0x8dc5b1(0xb1)]=_0x8dc5b1(0x16b),_0x273544;}({}),o=function(_0x54174d){const _0x2cee1c=_0x2cfd2a;return _0x54174d[_0x2cee1c(0xba)]='invalid-range',_0x54174d[_0x2cee1c(0x10d)]='out-of-bounds',_0x54174d[_0x2cee1c(0x13f)]=_0x2cee1c(0xe9),_0x54174d[_0x2cee1c(0x108)]='max-depth',_0x54174d[_0x2cee1c(0xa3)]='move-splits-outline',_0x54174d['CLEAR_RANGE_NOT_CONTAIN_OUTLINE']=_0x2cee1c(0xa2),_0x54174d[_0x2cee1c(0x12c)]=_0x2cee1c(0x11f),_0x54174d;}({});var s=class extends Error{constructor(_0x1c3022,_0x1fa31b,_0xd1090b){const _0x51e986=_0x2cfd2a;super(_0x1fa31b),this[_0x51e986(0x9a)]=_0x1c3022,this[_0x51e986(0x169)]=_0xd1090b,this[_0x51e986(0x9b)]=_0x51e986(0x122);}};function c(_0x108b5a){const _0x1cded6=_0x2cfd2a;return _0x108b5a instanceof s?_0x108b5a['reason']:_0x108b5a instanceof Error?_0x108b5a[_0x1cded6(0x129)][_0x1cded6(0xab)](_0x1cded6(0xe7))?_0x1cded6(0xcf):_0x108b5a[_0x1cded6(0x129)]['includes'](_0x1cded6(0xad))?'max-depth':_0x108b5a[_0x1cded6(0x129)]['includes'](_0x1cded6(0x9e))?_0x1cded6(0xe9):_0x108b5a['message'][_0x1cded6(0xab)](_0x1cded6(0xd5))?_0x1cded6(0x13b):_0x1cded6(0x11f):'unknown';}function l(_0x448ecf){const _0x371667=_0x2cfd2a;return _0x448ecf instanceof s?_0x448ecf[_0x371667(0x169)]:void 0x0;}const u=0x2**0x35-0x1;function d(_0x273bb7,_0x14aa5a){const _0x14b1c0=_0x2cfd2a;return _0x273bb7[_0x14b1c0(0x95)]===_0x14aa5a[_0x14b1c0(0x95)]&&_0x273bb7['subUnitId']===_0x14aa5a[_0x14b1c0(0xdb)]&&_0x273bb7[_0x14b1c0(0xb8)]===_0x14aa5a[_0x14b1c0(0xb8)];}function f(_0x140d06,_0x45f4ac={}){const _0x4a521c=_0x2cfd2a;let _0x2860da=_0x45f4ac[_0x4a521c(0x98)]??0x8,_0x4290db=new Map();for(let _0x751e7c of _0x140d06){let _0x13a76c=_0x751e7c[_0x4a521c(0x95)]+':'+_0x751e7c['subUnitId']+':'+_0x751e7c['axis'],_0x188b47=_0x4290db[_0x4a521c(0x138)](_0x13a76c);_0x188b47?_0x188b47[_0x4a521c(0xae)](_0x751e7c):_0x4290db[_0x4a521c(0x143)](_0x13a76c,[_0x751e7c]);}let _0x5f2867=[];for(let _0xa99e82 of _0x4290db[_0x4a521c(0x115)]()){let _0x375c49=[..._0xa99e82][_0x4a521c(0xf8)](S),_0x1ab7c5=[];for(let _0x508326 of _0x375c49){for(se(_0x508326);_0x1ab7c5[_0x4a521c(0x154)]>0x0&&_0x508326[_0x4a521c(0x9c)]>_0x1ab7c5[_0x1ab7c5[_0x4a521c(0x154)]-0x1][_0x4a521c(0x147)];)_0x1ab7c5[_0x4a521c(0x135)]();let _0x2e4ae3=_0x1ab7c5[_0x1ab7c5[_0x4a521c(0x154)]-0x1];if(_0x2e4ae3&&_0x508326['end']>_0x2e4ae3[_0x4a521c(0x147)])throw new s(_0x4a521c(0xe9),_0x4a521c(0x127),_0x508326['id']);let _0x3336f8=_0x2e4ae3?_0x2e4ae3['depth']+0x1:0x1;if(_0x3336f8>_0x2860da)throw new s(_0x4a521c(0xde),_0x4a521c(0x131)+_0x2860da,_0x508326['id']);let _0x4c4e7b={..._0x508326,'depth':_0x3336f8,'parentId':_0x2e4ae3==null?void 0x0:_0x2e4ae3['id'],'anchor':_0x508326[_0x4a521c(0x147)],'children':[]};_0x2e4ae3?_0x2e4ae3[_0x4a521c(0x10e)][_0x4a521c(0xae)](_0x4c4e7b):_0x5f2867[_0x4a521c(0xae)](_0x4c4e7b),_0x1ab7c5[_0x4a521c(0xae)](_0x4c4e7b);}}return _0x5f2867;}function p(_0x50301c,_0x12ccdc,_0x4f08ef={}){const _0x2a38a6=_0x2cfd2a;if(_0x12ccdc[_0x2a38a6(0x9c)]<0x0||_0x12ccdc[_0x2a38a6(0x9c)]>_0x12ccdc['end'])return{'valid':!0x1,'reason':_0x2a38a6(0x13b)};if(_0x4f08ef['maxIndex']!=null&&_0x12ccdc['end']>=_0x4f08ef[_0x2a38a6(0x159)])return{'valid':!0x1,'reason':_0x2a38a6(0x15c)};let _0x146d3e=_0x50301c[_0x2a38a6(0xfc)](_0x5344a1=>d(_0x5344a1,_0x12ccdc));for(let _0x26f89d of _0x146d3e)if(C(_0x26f89d,_0x12ccdc))return{'valid':!0x1,'reason':'crossing'};try{f([..._0x50301c,_0x12ccdc],_0x4f08ef);}catch(_0x253adf){let _0x31c72d=c(_0x253adf);return _0x31c72d===_0x2a38a6(0xde)?{'valid':!0x1,'reason':'max-depth'}:_0x31c72d==='invalid-range'?{'valid':!0x1,'reason':_0x2a38a6(0x13b)}:{'valid':!0x1,'reason':_0x2a38a6(0xe9)};}return{'valid':!0x0};}function m(_0x47fb58,_0x230f9a,_0x172d04={}){const _0x4aa27a=_0x2cfd2a;let _0x10d153=p(_0x47fb58,_0x230f9a,_0x172d04);if(!_0x10d153[_0x4aa27a(0xfa)])throw Error(_0x10d153['reason']??_0x4aa27a(0xa7));return[..._0x47fb58,_0x230f9a];}function ee(_0x27d8cc,_0x56cf57){const _0x252ffe=_0x2cfd2a;let _0x474062=_0x56cf57[_0x252ffe(0x9c)],_0x254fb1=_0x56cf57[_0x252ffe(0x147)],_0x320c41=[],_0x743e9a=!0x0;for(;_0x743e9a;){_0x743e9a=!0x1;for(let _0x7a2bf4 of _0x27d8cc)!_0x320c41['includes'](_0x7a2bf4)&&d(_0x7a2bf4,_0x56cf57)&&ae(_0x7a2bf4['start'],_0x7a2bf4[_0x252ffe(0x147)],_0x474062,_0x254fb1)&&(_0x320c41['push'](_0x7a2bf4),_0x474062=Math[_0x252ffe(0xfd)](_0x474062,_0x7a2bf4['start']),_0x254fb1=Math[_0x252ffe(0x11d)](_0x254fb1,_0x7a2bf4[_0x252ffe(0x147)]),_0x743e9a=!0x0);}if(_0x320c41[_0x252ffe(0x154)]===0x0)return null;let [_0x5f0597]=[..._0x320c41]['sort'](S);return{'mergedOutline':{..._0x5f0597,'start':_0x474062,'end':_0x254fb1},'mergedOutlines':_0x320c41};}function h(_0xe4245d,_0x49fc50){const _0x281139=_0x2cfd2a;return _0xe4245d[_0x281139(0xfc)](_0x27cade=>!d(_0x27cade,_0x49fc50)||!(_0x27cade['start']>=_0x49fc50[_0x281139(0x9c)]&&_0x27cade[_0x281139(0x147)]<=_0x49fc50[_0x281139(0x147)]));}function g(_0x1750ad,_0xd99541,_0x49b4ea,_0x4804e4){const _0x5be221=_0x2cfd2a;return _(_0x1750ad[_0x5be221(0xfc)](_0x5bd7a7=>_0x5bd7a7[_0x5be221(0x95)]===_0xd99541&&_0x5bd7a7[_0x5be221(0xdb)]===_0x49b4ea&&_0x5bd7a7[_0x5be221(0xb8)]===_0x4804e4&&_0x5bd7a7['collapsed'])['map'](_0x3fdb85=>({'start':_0x3fdb85[_0x5be221(0x9c)],'end':_0x3fdb85['end']})));}function _(_0x16b4e5){const _0x1d1ddf=_0x2cfd2a;if(_0x16b4e5[_0x1d1ddf(0x154)]===0x0)return[];let _0x9282f0=[..._0x16b4e5][_0x1d1ddf(0xf8)]((_0x598f3d,_0x2c24fd)=>_0x598f3d['start']-_0x2c24fd[_0x1d1ddf(0x9c)]||_0x598f3d[_0x1d1ddf(0x147)]-_0x2c24fd[_0x1d1ddf(0x147)]),_0x3f3585=[];for(let _0x403c04 of _0x9282f0){let _0x4ce3b6=_0x3f3585[_0x3f3585['length']-0x1];!_0x4ce3b6||_0x403c04[_0x1d1ddf(0x9c)]>_0x4ce3b6[_0x1d1ddf(0x147)]+0x1?_0x3f3585[_0x1d1ddf(0xae)]({..._0x403c04}):_0x4ce3b6[_0x1d1ddf(0x147)]=Math[_0x1d1ddf(0x11d)](_0x4ce3b6[_0x1d1ddf(0x147)],_0x403c04[_0x1d1ddf(0x147)]);}return _0x3f3585;}function v(_0x5860b5,_0x14afe3){const _0x2303d2=_0x2cfd2a;return _0x14afe3[_0x2303d2(0xd6)]<=0x0?_0x5860b5:x(_0x5860b5[_0x2303d2(0x14b)](_0x2cf1b4=>d(_0x2cf1b4,_0x14afe3)?_0x14afe3[_0x2303d2(0xc2)]<=_0x2cf1b4['start']?{..._0x2cf1b4,'start':_0x2cf1b4[_0x2303d2(0x9c)]+_0x14afe3[_0x2303d2(0xd6)],'end':_0x2cf1b4[_0x2303d2(0x147)]+_0x14afe3[_0x2303d2(0xd6)]}:_0x2cf1b4[_0x2303d2(0x9c)]<_0x14afe3['index']&&_0x14afe3[_0x2303d2(0xc2)]<=_0x2cf1b4['end']?{..._0x2cf1b4,'end':_0x2cf1b4[_0x2303d2(0x147)]+_0x14afe3[_0x2303d2(0xd6)]}:_0x2cf1b4:_0x2cf1b4));}function y(_0xb17686,_0x50fde8){const _0x132add=_0x2cfd2a;if(_0x50fde8[_0x132add(0x9c)]>_0x50fde8['end'])return _0xb17686;let _0x369b62=_0x50fde8[_0x132add(0x147)]-_0x50fde8[_0x132add(0x9c)]+0x1,_0x3467f7=[];for(let _0x207cfa of _0xb17686){if(!d(_0x207cfa,_0x50fde8)){_0x3467f7[_0x132add(0xae)](_0x207cfa);continue;}if(_0x207cfa[_0x132add(0x147)]<_0x50fde8[_0x132add(0x9c)]){_0x3467f7[_0x132add(0xae)](_0x207cfa);continue;}if(_0x207cfa[_0x132add(0x9c)]>_0x50fde8[_0x132add(0x147)]){_0x3467f7[_0x132add(0xae)]({..._0x207cfa,'start':_0x207cfa[_0x132add(0x9c)]-_0x369b62,'end':_0x207cfa['end']-_0x369b62});continue;}let _0x358358=Math[_0x132add(0x11d)](_0x207cfa[_0x132add(0x9c)],_0x50fde8[_0x132add(0x9c)]),_0x59dbd2=Math['min'](_0x207cfa[_0x132add(0x147)],_0x50fde8[_0x132add(0x147)]),_0x229c3c=Math[_0x132add(0x11d)](0x0,_0x59dbd2-_0x358358+0x1),_0x5e579e=_0x207cfa[_0x132add(0x147)]-_0x207cfa[_0x132add(0x9c)]+0x1-_0x229c3c;if(_0x5e579e<=0x0)continue;let _0x590a22=_0x207cfa[_0x132add(0x9c)]<_0x50fde8[_0x132add(0x9c)]?_0x207cfa['start']:_0x50fde8[_0x132add(0x9c)];_0x3467f7[_0x132add(0xae)]({..._0x207cfa,'start':_0x590a22,'end':_0x590a22+_0x5e579e-0x1});}return x(_0x3467f7);}function b(_0x1f6b74,_0x5dff14){const _0x309c76=_0x2cfd2a;if(_0x5dff14[_0x309c76(0xfe)]>_0x5dff14[_0x309c76(0xe4)])return _0x1f6b74;let _0x327490=[];for(let _0x824d53 of _0x1f6b74){if(!d(_0x824d53,_0x5dff14)){_0x327490[_0x309c76(0xae)](_0x824d53);continue;}let _0x5cbbb2=te(_0x824d53,_0x5dff14);if(_0x5cbbb2['type']===_0x309c76(0x161))throw new s(_0x309c76(0xcf),_0x309c76(0xc1)+_0x824d53['id'],_0x824d53['id']);_0x327490['push'](_0x5cbbb2[_0x309c76(0x168)]);}return x(_0x327490);}function te(_0x3d25ae,_0x2aaf73){const _0x28b4cd=_0x2cfd2a;let _0x385085=ne(_0x2aaf73['sourceStart'],_0x2aaf73[_0x28b4cd(0xe4)]+0x1,_0x2aaf73[_0x28b4cd(0xf5)]),_0x3ecf26=[],_0xe87931={'start':_0x3d25ae[_0x28b4cd(0x9c)],'end':_0x3d25ae[_0x28b4cd(0x147)]+0x1};for(let _0x222f3a of _0x385085){let _0xe191bf=re(_0xe87931,_0x222f3a[_0x28b4cd(0xd5)]);_0xe191bf&&_0x3ecf26[_0x28b4cd(0xae)]({'start':_0xe191bf[_0x28b4cd(0x9c)]+_0x222f3a[_0x28b4cd(0x103)],'end':_0xe191bf[_0x28b4cd(0x147)]+_0x222f3a[_0x28b4cd(0x103)]});}let _0x48a4fd=ie(_0x3ecf26);return _0x48a4fd['length']===0x1?{'type':'ok','outline':{..._0x3d25ae,'start':_0x48a4fd[0x0][_0x28b4cd(0x9c)],'end':_0x48a4fd[0x0][_0x28b4cd(0x147)]-0x1}}:{'type':_0x28b4cd(0x161),'outline':_0x3d25ae,'ranges':_0x48a4fd};}function ne(_0x1784c6,_0xfde511,_0x530f72){const _0x5e734c=_0x2cfd2a;let _0x2cde18=_0xfde511-_0x1784c6;if(_0x2cde18<=0x0)throw Error(_0x5e734c(0xc9));return _0x530f72>=_0x1784c6&&_0x530f72<=_0xfde511?[{'range':{'start':0x0,'end':u},'offset':0x0}]:_0x530f72<_0x1784c6?[{'range':{'start':0x0,'end':_0x530f72},'offset':0x0},{'range':{'start':_0x530f72,'end':_0x1784c6},'offset':_0x2cde18},{'range':{'start':_0x1784c6,'end':_0xfde511},'offset':_0x530f72-_0x1784c6},{'range':{'start':_0xfde511,'end':u},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x1784c6},'offset':0x0},{'range':{'start':_0x1784c6,'end':_0xfde511},'offset':_0x530f72-_0xfde511},{'range':{'start':_0xfde511,'end':_0x530f72},'offset':-_0x2cde18},{'range':{'start':_0x530f72,'end':u},'offset':0x0}];}function re(_0x3aad5c,_0xf6e5c2){const _0x1089fa=_0x2cfd2a;let _0x8e7174=Math[_0x1089fa(0x11d)](_0x3aad5c[_0x1089fa(0x9c)],_0xf6e5c2['start']),_0x47b8bb=Math['min'](_0x3aad5c['end'],_0xf6e5c2['end']);return _0x8e7174>=_0x47b8bb?null:{'start':_0x8e7174,'end':_0x47b8bb};}function ie(_0x3fe11d){const _0x12fccd=_0x2cfd2a;if(_0x3fe11d[_0x12fccd(0x154)]===0x0)return[];let _0x2c159e=[..._0x3fe11d][_0x12fccd(0xf8)]((_0x31ecf8,_0x531bd9)=>_0x31ecf8['start']-_0x531bd9['start']||_0x31ecf8[_0x12fccd(0x147)]-_0x531bd9[_0x12fccd(0x147)]),_0x57cbc0=[];for(let _0x5ac581 of _0x2c159e){let _0x4819f6=_0x57cbc0[_0x57cbc0[_0x12fccd(0x154)]-0x1];!_0x4819f6||_0x5ac581[_0x12fccd(0x9c)]>_0x4819f6[_0x12fccd(0x147)]?_0x57cbc0[_0x12fccd(0xae)]({..._0x5ac581}):_0x4819f6['end']=Math[_0x12fccd(0x11d)](_0x4819f6[_0x12fccd(0x147)],_0x5ac581[_0x12fccd(0x147)]);}return _0x57cbc0;}function ae(_0x36a1dc,_0x31858c,_0x5d0a9a,_0x1faef5){return _0x31858c+0x1===_0x5d0a9a||_0x1faef5+0x1===_0x36a1dc;}function x(_0x597861){let _0x3e22f6=oe(_0x597861);return f(_0x3e22f6),_0x3e22f6;}function oe(_0xaed7b6){const _0x106529=_0x2cfd2a;let _0x2abd5c=new Map();for(let _0x28bbd4 of _0xaed7b6){let _0xe506a5=[_0x28bbd4[_0x106529(0x95)],_0x28bbd4[_0x106529(0xdb)],_0x28bbd4['axis'],_0x28bbd4[_0x106529(0x9c)],_0x28bbd4[_0x106529(0x147)]][_0x106529(0xa5)](':'),_0x3692f4=_0x2abd5c[_0x106529(0x138)](_0xe506a5);if(!_0x3692f4){_0x2abd5c[_0x106529(0x143)](_0xe506a5,_0x28bbd4);continue;}_0x2abd5c[_0x106529(0x143)](_0xe506a5,{..._0x3692f4,'collapsed':_0x3692f4[_0x106529(0x117)]||_0x28bbd4['collapsed']});}return Array['from'](_0x2abd5c[_0x106529(0x115)]());}function _0x5ac2(_0x34ed03,_0x2b22c8){_0x34ed03=_0x34ed03-0x92;const _0x357770=_0x3577();let _0x5ac271=_0x357770[_0x34ed03];return _0x5ac271;}function S(_0x2ee824,_0x4cc401){const _0xb9ee1=_0x2cfd2a;return _0x2ee824[_0xb9ee1(0x95)]===_0x4cc401[_0xb9ee1(0x95)]?_0x2ee824[_0xb9ee1(0xdb)]===_0x4cc401[_0xb9ee1(0xdb)]?_0x2ee824[_0xb9ee1(0xb8)]===_0x4cc401[_0xb9ee1(0xb8)]?_0x2ee824[_0xb9ee1(0x9c)]===_0x4cc401[_0xb9ee1(0x9c)]?_0x4cc401[_0xb9ee1(0x147)]-_0x2ee824[_0xb9ee1(0x147)]:_0x2ee824[_0xb9ee1(0x9c)]-_0x4cc401[_0xb9ee1(0x9c)]:_0x2ee824[_0xb9ee1(0xb8)]['localeCompare'](_0x4cc401[_0xb9ee1(0xb8)]):_0x2ee824[_0xb9ee1(0xdb)][_0xb9ee1(0x150)](_0x4cc401['subUnitId']):_0x2ee824[_0xb9ee1(0x95)]['localeCompare'](_0x4cc401[_0xb9ee1(0x95)]);}function se(_0x316fb8){const _0x48be99=_0x2cfd2a;if(_0x316fb8[_0x48be99(0x9c)]>_0x316fb8[_0x48be99(0x147)])throw new s(_0x48be99(0x13b),_0x48be99(0x155),_0x316fb8['id']);}function C(_0x2f089d,_0x89c5cc){const _0x68d9de=_0x2cfd2a;let _0x1610eb=_0x2f089d[_0x68d9de(0x9c)]<=_0x89c5cc['end']&&_0x89c5cc[_0x68d9de(0x9c)]<=_0x2f089d[_0x68d9de(0x147)],_0x564834=_0x2f089d[_0x68d9de(0x9c)]<=_0x89c5cc[_0x68d9de(0x9c)]&&_0x89c5cc[_0x68d9de(0x147)]<=_0x2f089d[_0x68d9de(0x147)],_0x198dc8=_0x89c5cc[_0x68d9de(0x9c)]<=_0x2f089d['start']&&_0x2f089d[_0x68d9de(0x147)]<=_0x89c5cc[_0x68d9de(0x147)];return _0x1610eb&&!_0x564834&&!_0x198dc8;}function w(_0x49d16b){'@babel/helpers - typeof';const _0x2ccacb=_0x2cfd2a;return w=typeof Symbol==_0x2ccacb(0x120)&&typeof Symbol['iterator']=='symbol'?function(_0x41d1da){return typeof _0x41d1da;}:function(_0x585580){const _0x4110f8=_0x2ccacb;return _0x585580&&typeof Symbol==_0x4110f8(0x120)&&_0x585580[_0x4110f8(0x11a)]===Symbol&&_0x585580!==Symbol[_0x4110f8(0x12b)]?'symbol':typeof _0x585580;},w(_0x49d16b);}function ce(_0x102eac,_0x57b01c){const _0x472a94=_0x2cfd2a;if(w(_0x102eac)!=_0x472a94(0x11c)||!_0x102eac)return _0x102eac;var _0x5c2c7a=_0x102eac[Symbol[_0x472a94(0xf9)]];if(_0x5c2c7a!==void 0x0){var _0xaf5fe0=_0x5c2c7a[_0x472a94(0xaa)](_0x102eac,_0x57b01c||_0x472a94(0x152));if(w(_0xaf5fe0)!=_0x472a94(0x11c))return _0xaf5fe0;throw TypeError(_0x472a94(0x9f));}return(_0x57b01c===_0x472a94(0xdc)?String:Number)(_0x102eac);}function le(_0x3b86d0){const _0x9b8872=_0x2cfd2a;var _0x4d7883=ce(_0x3b86d0,_0x9b8872(0xdc));return w(_0x4d7883)=='symbol'?_0x4d7883:_0x4d7883+'';}function T(_0x173fc3,_0x10b43d,_0x570b7d){const _0x409817=_0x2cfd2a;return(_0x10b43d=le(_0x10b43d))in _0x173fc3?Object[_0x409817(0x94)](_0x173fc3,_0x10b43d,{'value':_0x570b7d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x173fc3[_0x10b43d]=_0x570b7d,_0x173fc3;}var E=class extends e[_0x2cfd2a(0xe8)]{constructor(..._0xde5d52){const _0x152190=_0x2cfd2a;super(..._0xde5d52),T(this,_0x152190(0x116),new Map()),T(this,_0x152190(0xb0),new n['Subject']()),T(this,_0x152190(0xe2),this[_0x152190(0xb0)][_0x152190(0x97)]());}[_0x2cfd2a(0x106)](_0x309369,_0x217e62){const _0xfd845f=_0x2cfd2a;var _0x37ca72;return[...((_0x37ca72=this['_outlines'][_0xfd845f(0x138)](_0x309369))==null?void 0x0:_0x37ca72['get'](_0x217e62))??[]];}[_0x2cfd2a(0x16c)](_0x17afcf){const _0x90d088=_0x2cfd2a;let _0x2da83e=this[_0x90d088(0x116)][_0x90d088(0x138)](_0x17afcf),_0xecb0d5=new Map();return _0x2da83e==null||_0x2da83e[_0x90d088(0xe0)]((_0x52386d,_0x1b16a0)=>{const _0xf96a5d=_0x90d088;_0xecb0d5[_0xf96a5d(0x143)](_0x1b16a0,[..._0x52386d]);}),_0xecb0d5;}['setOutlines'](_0x4fda62,_0x4fb81c,_0x264ab5){const _0x298626=_0x2cfd2a;this[_0x298626(0xac)](_0x4fda62)['set'](_0x4fb81c,[..._0x264ab5]),this[_0x298626(0xb0)]['next']({'unitId':_0x4fda62,'subUnitId':_0x4fb81c});}[_0x2cfd2a(0xe1)](_0xb805ef){const _0x294e5c=_0x2cfd2a;this[_0x294e5c(0x116)][_0x294e5c(0xaf)](_0xb805ef),this['_change$']['next']({'unitId':_0xb805ef});}[_0x2cfd2a(0x157)](_0x21245a){const _0x5426ab=_0x2cfd2a;let _0x1e06a1=this[_0x5426ab(0x116)][_0x5426ab(0x138)](_0x21245a),_0x3e06d6={};return _0x1e06a1==null||_0x1e06a1['forEach']((_0xc731b,_0x192a54)=>{_0x3e06d6[_0x192a54]={'outlineList':[..._0xc731b]};}),_0x3e06d6;}[_0x2cfd2a(0x125)](_0x386788,_0x46e575){const _0x2dc987=_0x2cfd2a;let _0xb90953=new Map();Object[_0x2dc987(0x114)](_0x46e575)[_0x2dc987(0xe0)](([_0x2fdc09,_0x41570c])=>{const _0x4d9f86=_0x2dc987;_0xb90953['set'](_0x2fdc09,[..._0x41570c[_0x4d9f86(0xe3)]??[]]);}),this[_0x2dc987(0x116)][_0x2dc987(0x143)](_0x386788,_0xb90953),this[_0x2dc987(0xb0)][_0x2dc987(0x105)]({'unitId':_0x386788});}['dispose'](){const _0x5318aa=_0x2cfd2a;super['dispose'](),this[_0x5318aa(0x116)][_0x5318aa(0xa8)](),this[_0x5318aa(0xb0)][_0x5318aa(0x165)]();}[_0x2cfd2a(0xac)](_0x55cd1e){const _0x2f05d1=_0x2cfd2a;let _0x2f9be4=this[_0x2f05d1(0x116)][_0x2f05d1(0x138)](_0x55cd1e);return _0x2f9be4||(_0x2f9be4=new Map(),this['_outlines'][_0x2f05d1(0x143)](_0x55cd1e,_0x2f9be4)),_0x2f9be4;}},D=class extends e['Disposable']{constructor(..._0x417cac){const _0x2ac54f=_0x2cfd2a;super(..._0x417cac),T(this,_0x2ac54f(0x144),new n[(_0x2ac54f(0x14e))]()),T(this,_0x2ac54f(0xdf),this[_0x2ac54f(0x144)]['asObservable']());}[_0x2cfd2a(0xfb)](_0x4fdf8d){const _0x4cb129=_0x2cfd2a;this['_error$'][_0x4cb129(0x105)](_0x4fdf8d);}[_0x2cfd2a(0xb4)](){const _0x2e9cbb=_0x2cfd2a;super[_0x2e9cbb(0xb4)](),this[_0x2e9cbb(0x144)][_0x2e9cbb(0x165)]();}};const O={'id':_0x2cfd2a(0xc5),'type':e[_0x2cfd2a(0x101)][_0x2cfd2a(0xca)],'handler':(_0x50f271,_0x49be45)=>{const _0x24d6f7=_0x2cfd2a;let _0x48493b=_0x50f271[_0x24d6f7(0x138)](E),_0x3a7b27=_0x48493b['getOutlines'](_0x49be45[_0x24d6f7(0x95)],_0x49be45[_0x24d6f7(0xdb)]);return _0x48493b['setOutlines'](_0x49be45[_0x24d6f7(0x95)],_0x49be45['subUnitId'],m(_0x3a7b27,_0x49be45[_0x24d6f7(0x168)])),!0x0;}},k={'id':_0x2cfd2a(0x12d),'type':e[_0x2cfd2a(0x101)]['MUTATION'],'handler':(_0x203257,_0x51f5fe)=>{const _0x23d120=_0x2cfd2a;let _0x31e326=_0x203257[_0x23d120(0x138)](E),_0x12dc85=_0x31e326[_0x23d120(0x106)](_0x51f5fe[_0x23d120(0x95)],_0x51f5fe[_0x23d120(0xdb)]);return _0x31e326[_0x23d120(0x11b)](_0x51f5fe[_0x23d120(0x95)],_0x51f5fe[_0x23d120(0xdb)],_0x12dc85[_0x23d120(0xfc)](_0x1bf57d=>_0x1bf57d['id']!==_0x51f5fe[_0x23d120(0x169)])),!0x0;}};function A(_0x220537,_0x5e5a8c,_0x36beb6){const _0x2a1f32=_0x2cfd2a;let _0xef341e=de(_0x220537);return!_0xef341e||_0xef341e[_0x2a1f32(0x134)]({'workbookTypes':[t[_0x2a1f32(0x14d)]],'worksheetTypes':[t['WorksheetViewPermission']]},_0x5e5a8c,_0x36beb6);}function ue(_0x1160c9,_0x558a85,_0x473e04){const _0x4bc8ac=_0x2cfd2a;let _0xefb9c8=fe(_0x1160c9);return((_0xefb9c8==null?void 0x0:_0xefb9c8[_0x4bc8ac(0x123)])??(0x0,n['of'])(null))[_0x4bc8ac(0xf3)]((0x0,r[_0x4bc8ac(0xea)])(0x64),(0x0,r[_0x4bc8ac(0xd4)])(null),(0x0,r[_0x4bc8ac(0x14b)])(()=>A(_0x1160c9,_0x558a85,_0x473e04)));}function _0x3577(){const _0x54169e=['invalid-range','_config','UNIVER_SHEET','decorate','CROSSING','restoreOutlines','stringify','getColumnCount','set','_error$','_injector','_univerInstanceService','end','getCurrentUnitOfType','TransformDimensionOutlinesMutation','getSheetCommandTarget','map','mergedOutline','WorkbookViewPermission','Subject','_configService','localeCompare','_sheetsOutlineModel','default','RemoveColCommand','length','Invalid\x20outline\x20range','InsertRowCommand','serialize','IUndoRedoService','maxIndex','params','MoveColsCommand','out-of-bounds','sheet.mutation.set-dimension-outline-collapsed','@univerjs-pro/sheets-outline','ICommandService','merge','split','Injector','insert','onStarting','complete','sheet.mutation.clear-dimension-outlines','UniverLicensePlugin','outline','outlineId','getDimensionOutlineViewPermission$','column','getUnitOutlines','_commandService','14314390DONoSM','_initResource','sheets-outline.config','generateRandomId','defineProperty','unitId','UniverSheetsPlugin','asObservable','maxDepth','endColumn','reason','name','start','MoveRowsCommand','Crossing','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','parse','some','clear-range-not-contain-outline','MOVE_SPLITS_OUTLINE','RemoveRowCommand','join','2446755xrczTj','invalid-dimension-outline','clear','getUnitId','call','includes','_ensureUnitOutlines','depth','push','delete','_change$','COLUMN','add','has','dispose','getSheetId','mergedOutlines','canAddDimensionOutline','axis','redos','INVALID_RANGE','disposeWithMe','11fqbBOp','registerPluginResource','type','Module','getRowCount','Move\x20would\x20split\x20dimension\x20outline:\x20','index','getSheetBySheetId','SetDimensionOutlineCollapsedMutation','sheet.mutation.add-dimension-outline','_sheetsOutlineErrorService','24186avCJgH','sheet.command.add-dimension-outline','Invalid\x20dimension\x20outline\x20move\x20source\x20range','MUTATION','SHEET_OUTLINE_PLUGIN','_sheetInterceptorService','_initCommandInterceptor','RemoveDimensionOutlineCommand','move-splits-outline','result','CustomCommandExecutionError','getOwnPropertyDescriptor','find','startWith','range','count','104PPPKPW','preUndos','1.0.1','IPermissionService','subUnitId','string','6QSFdqw','max-depth','error$','forEach','removeUnit','change$','outlineList','sourceEnd','pushUndoRedo','hasDimensionOutlineViewPermission','split\x20dimension\x20outline','Disposable','crossing','debounceTime','COMMAND','buildDimensionOutlineTree','UniverInstanceType','SetRowHiddenMutation','DependentOn','Inject','41KJfuoB','_initRegisterCommand','pipe','575442ABGXjC','destinationIndex','startRow','4722795BFWxdI','sort','toPrimitive','valid','emit','filter','min','sourceStart','AddDimensionOutlineCommand','startColumn','CommandType','1114492QGNZGO','offset','sheet.command.clear-dimension-outlines','next','getOutlines','SheetInterceptorService','MAX_DEPTH','toStringTag','preRedos','packageName','InsertColCommand','OUT_OF_BOUNDS','children','sequenceExecute','Invalid\x20dimension\x20outline\x20mutation','SetColVisibleMutation','fromRange','IUniverInstanceService','entries','values','_outlines','collapsed','_resourceManagerService','interceptCommand','constructor','setOutlines','object','max','_getCommandScope','unknown','function','sheet.mutation.transform-dimension-outlines','DimensionOutlineError','permissionPointUpdate$','465273TQDCpV','deserialize','AddDimensionOutlineMutation','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','move','message','endRow','prototype','UNKNOWN','sheet.mutation.remove-dimension-outline','row','ClearDimensionOutlinesCommand','getUnit','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','registerCommand','DimensionOutlineAxis','permissionCheckWithoutRange','pop','ClearDimensionOutlinesMutation','toRange','get','sheet.command.remove-dimension-outline','undos'];_0x3577=function(){return _0x54169e;};return _0x3577();}function de(_0xa87eff){const _0x414697=_0x2cfd2a;if(typeof _0xa87eff[_0x414697(0xb3)]==_0x414697(0x120)&&!_0xa87eff['has'](t['SheetPermissionCheckController']))return null;try{return _0xa87eff[_0x414697(0x138)](t['SheetPermissionCheckController']);}catch{return null;}}function fe(_0x5a7bf3){const _0x3d6af5=_0x2cfd2a;if(typeof _0x5a7bf3['has']=='function'&&!_0x5a7bf3['has'](e[_0x3d6af5(0xda)]))return null;try{return _0x5a7bf3[_0x3d6af5(0x138)](e[_0x3d6af5(0xda)]);}catch{return null;}}const j={'id':_0x2cfd2a(0xc8),'type':e['CommandType'][_0x2cfd2a(0xeb)],'handler':(_0x45f3ed,_0x5f302e)=>{const _0x40966f=_0x2cfd2a;if(!_0x5f302e)return!0x1;let _0xe1b495=(0x0,t[_0x40966f(0x14a)])(_0x45f3ed[_0x40966f(0x138)](e['IUniverInstanceService']),_0x5f302e);if(!_0xe1b495)return!0x1;let {unitId:_0x11bc3b,subUnitId:_0x362281,worksheet:_0xb64361}=_0xe1b495;if(!A(_0x45f3ed,_0x11bc3b,_0x362281))return!0x1;let _0x2789b3=_0x45f3ed[_0x40966f(0x138)](E),_0x58bf8d={'id':'dimension-outline-'+(0x0,e[_0x40966f(0x93)])(0x6),'unitId':_0x11bc3b,'subUnitId':_0x362281,'axis':_0x5f302e[_0x40966f(0xb8)],'start':_0x5f302e[_0x40966f(0x9c)],'end':_0x5f302e[_0x40966f(0x147)],'collapsed':!0x1},_0x10f430=_0x5f302e[_0x40966f(0xb8)]===_0x40966f(0x12e)?_0xb64361[_0x40966f(0xc0)]():_0xb64361[_0x40966f(0x142)](),_0x2c7b26=_0x2789b3[_0x40966f(0x106)](_0x11bc3b,_0x362281),_0x290576=ee(_0x2c7b26,_0x58bf8d),_0x50916f=(_0x290576==null?void 0x0:_0x290576[_0x40966f(0xb6)])??[],_0x3c6a69=(_0x290576==null?void 0x0:_0x290576[_0x40966f(0x14c)])??_0x58bf8d,_0x6d09cd=p(_0x290576?_0x2c7b26['filter'](_0x2103ef=>!_0x50916f[_0x40966f(0xa1)](_0x3a49dd=>_0x3a49dd['id']===_0x2103ef['id'])):_0x2c7b26,_0x3c6a69,{'maxIndex':_0x10f430});if(!_0x6d09cd[_0x40966f(0xfa)])return _0x45f3ed[_0x40966f(0x138)](D)[_0x40966f(0xfb)]({'reason':_0x6d09cd[_0x40966f(0x9a)]??'unknown','commandId':j['id'],'unitId':_0x11bc3b,'subUnitId':_0x362281,'axis':_0x5f302e['axis'],'outlineId':_0x3c6a69['id']}),!0x1;let _0xde4e73=[..._0x50916f[_0x40966f(0x14b)](_0x471392=>({'id':k['id'],'params':{'unitId':_0x11bc3b,'subUnitId':_0x362281,'outlineId':_0x471392['id']}})),{'id':O['id'],'params':{'unitId':_0x11bc3b,'subUnitId':_0x362281,'outline':_0x3c6a69}}],_0x18c9c3=[{'id':k['id'],'params':{'unitId':_0x11bc3b,'subUnitId':_0x362281,'outlineId':_0x3c6a69['id']}},..._0x50916f[_0x40966f(0x14b)](_0x363cd3=>({'id':O['id'],'params':{'unitId':_0x11bc3b,'subUnitId':_0x362281,'outline':_0x363cd3}}))];return(0x0,e['sequenceExecute'])(_0xde4e73,_0x45f3ed[_0x40966f(0x138)](e[_0x40966f(0x15f)]))['result']?(_0x45f3ed['get'](e[_0x40966f(0x158)])['pushUndoRedo']({'unitID':_0x11bc3b,'undoMutations':_0x18c9c3,'redoMutations':_0xde4e73}),!0x0):!0x1;}},M={'id':_0x2cfd2a(0x166),'type':e['CommandType'][_0x2cfd2a(0xca)],'handler':(_0x3ce3c1,_0x534c19)=>{const _0x55a424=_0x2cfd2a;let _0x30e29c=_0x3ce3c1['get'](E),_0x2327f3=_0x30e29c['getOutlines'](_0x534c19[_0x55a424(0x95)],_0x534c19[_0x55a424(0xdb)]);return _0x30e29c['setOutlines'](_0x534c19[_0x55a424(0x95)],_0x534c19[_0x55a424(0xdb)],h(_0x2327f3,_0x534c19)),!0x0;}},N={'id':_0x2cfd2a(0x104),'type':e[_0x2cfd2a(0x101)][_0x2cfd2a(0xeb)],'handler':(_0x2c8c0b,_0x4c31a9)=>{const _0x169320=_0x2cfd2a;if(!_0x4c31a9)return!0x1;let _0x342e99=(0x0,t['getSheetCommandTarget'])(_0x2c8c0b[_0x169320(0x138)](e[_0x169320(0x113)]),_0x4c31a9);if(!_0x342e99)return!0x1;let {unitId:_0x51758d,subUnitId:_0x48bd39}=_0x342e99;if(!A(_0x2c8c0b,_0x51758d,_0x48bd39))return!0x1;let _0x37fe5b={'unitId':_0x51758d,'subUnitId':_0x48bd39,'axis':_0x4c31a9['axis'],'start':_0x4c31a9['start'],'end':_0x4c31a9[_0x169320(0x147)]},_0x5e43b9=_0x2c8c0b[_0x169320(0x138)](E)[_0x169320(0x106)](_0x51758d,_0x48bd39)[_0x169320(0xfc)](_0x38f886=>d(_0x38f886,_0x37fe5b)&&_0x38f886[_0x169320(0x9c)]>=_0x4c31a9[_0x169320(0x9c)]&&_0x38f886[_0x169320(0x147)]<=_0x4c31a9[_0x169320(0x147)]);if(_0x5e43b9[_0x169320(0x154)]===0x0)return _0x2c8c0b[_0x169320(0x138)](D)[_0x169320(0xfb)]({'reason':'clear-range-not-contain-outline','commandId':N['id'],'unitId':_0x51758d,'subUnitId':_0x48bd39,'axis':_0x4c31a9[_0x169320(0xb8)]}),!0x1;let _0x29fd06=[{'id':M['id'],'params':{..._0x37fe5b,'removedOutlineIds':_0x5e43b9[_0x169320(0x14b)](_0x56c70a=>_0x56c70a['id'])}}],_0x319a2d=_0x5e43b9[_0x169320(0x14b)](_0x110794=>({'id':O['id'],'params':{'unitId':_0x51758d,'subUnitId':_0x48bd39,'outline':_0x110794}}));return(0x0,e[_0x169320(0x10f)])(_0x29fd06,_0x2c8c0b[_0x169320(0x138)](e[_0x169320(0x15f)]))['result']?(_0x2c8c0b[_0x169320(0x138)](e[_0x169320(0x158)])[_0x169320(0xe5)]({'unitID':_0x51758d,'undoMutations':_0x319a2d,'redoMutations':_0x29fd06}),!0x0):!0x1;}},P={'id':_0x2cfd2a(0x139),'type':e[_0x2cfd2a(0x101)][_0x2cfd2a(0xeb)],'handler':(_0x7c430c,_0x4941df)=>{const _0x192c15=_0x2cfd2a;if(!_0x4941df)return!0x1;let _0x42ba01=(0x0,t['getSheetCommandTarget'])(_0x7c430c[_0x192c15(0x138)](e[_0x192c15(0x113)]),_0x4941df);if(!_0x42ba01)return!0x1;let {unitId:_0x633097,subUnitId:_0x7ec299}=_0x42ba01;if(!A(_0x7c430c,_0x633097,_0x7ec299))return!0x1;let _0x3754e6=_0x7c430c[_0x192c15(0x138)](E)['getOutlines'](_0x633097,_0x7ec299)[_0x192c15(0xd3)](_0x25594e=>_0x25594e['id']===_0x4941df['outlineId']);if(!_0x3754e6)return!0x1;let _0x47dd06=[{'id':k['id'],'params':{'unitId':_0x633097,'subUnitId':_0x7ec299,'outlineId':_0x3754e6['id'],'outline':_0x3754e6}}],_0x326be5=[{'id':O['id'],'params':{'unitId':_0x633097,'subUnitId':_0x7ec299,'outline':_0x3754e6}}];return(0x0,e[_0x192c15(0x10f)])(_0x47dd06,_0x7c430c[_0x192c15(0x138)](e[_0x192c15(0x15f)]))[_0x192c15(0xd0)]?(_0x7c430c[_0x192c15(0x138)](e[_0x192c15(0x158)])[_0x192c15(0xe5)]({'unitID':_0x633097,'undoMutations':_0x326be5,'redoMutations':_0x47dd06}),!0x0):!0x1;}},F={'id':_0x2cfd2a(0x15d),'type':e[_0x2cfd2a(0x101)][_0x2cfd2a(0xca)],'handler':(_0x4f9963,_0x492627)=>{const _0x4d7485=_0x2cfd2a;let _0x421e21=_0x4f9963[_0x4d7485(0x138)](E),_0x4c805b=_0x421e21[_0x4d7485(0x106)](_0x492627['unitId'],_0x492627[_0x4d7485(0xdb)]),_0x5190b7=_0x4c805b[_0x4d7485(0xd3)](_0x4711a6=>_0x4711a6['id']===_0x492627[_0x4d7485(0x169)]);return _0x5190b7&&_0x421e21[_0x4d7485(0x11b)](_0x492627[_0x4d7485(0x95)],_0x492627[_0x4d7485(0xdb)],_0x4c805b[_0x4d7485(0x14b)](_0x5088cc=>_0x5088cc[_0x4d7485(0x95)]!==_0x5190b7[_0x4d7485(0x95)]||_0x5088cc[_0x4d7485(0xdb)]!==_0x5190b7[_0x4d7485(0xdb)]||_0x5088cc['axis']!==_0x5190b7[_0x4d7485(0xb8)]||_0x5088cc[_0x4d7485(0x9c)]!==_0x5190b7[_0x4d7485(0x9c)]||_0x5088cc[_0x4d7485(0x147)]!==_0x5190b7[_0x4d7485(0x147)]?_0x5088cc:{..._0x5088cc,'collapsed':_0x492627[_0x4d7485(0x117)]})),!0x0;}};function I(_0x4732d1,_0x11fcfb,_0x511bc9,_0xeed5e7){const _0x2e5f6f=_0x2cfd2a;return _0x4732d1===_0x2e5f6f(0x12e)?{'startRow':_0x11fcfb,'endRow':_0x511bc9,'startColumn':0x0,'endColumn':_0xeed5e7['getMaxColumns']()-0x1}:{'startRow':0x0,'endRow':_0xeed5e7[_0x2e5f6f(0xc0)]()-0x1,'startColumn':_0x11fcfb,'endColumn':_0x511bc9};}function pe(_0x54d092){const _0x5e4767=_0x2cfd2a;return _0x54d092===_0x5e4767(0x12e)?t[_0x5e4767(0xee)]['id']:t['SetColHiddenMutation']['id'];}function me(_0x3a4fbe){const _0x45e306=_0x2cfd2a;return _0x3a4fbe===_0x45e306(0x12e)?t['SetRowVisibleMutation']['id']:t[_0x45e306(0x111)]['id'];}function L(_0x1deec5,_0xe3b344,_0x19c0d0,_0x28b42f){const _0x4b74b0=_0x2cfd2a;let _0x18c24e=_0xe3b344?[I(_0x1deec5[_0x4b74b0(0xb8)],_0x1deec5[_0x4b74b0(0x9c)],_0x1deec5[_0x4b74b0(0x147)],_0x19c0d0)]:he(_0x1deec5,_0x28b42f,_0x19c0d0),_0x2d0c9d=_0xe3b344?pe(_0x1deec5['axis']):me(_0x1deec5[_0x4b74b0(0xb8)]);return[{'id':F['id'],'params':{'unitId':_0x1deec5[_0x4b74b0(0x95)],'subUnitId':_0x1deec5['subUnitId'],'outlineId':_0x1deec5['id'],'outline':_0x1deec5,'collapsed':_0xe3b344}},..._0x18c24e[_0x4b74b0(0x14b)](_0x48293b=>({'id':_0x2d0c9d,'params':{'unitId':_0x1deec5[_0x4b74b0(0x95)],'subUnitId':_0x1deec5['subUnitId'],'ranges':[_0x48293b],'dimensionOutlineId':_0x1deec5['id']}}))];}function he(_0x31a821,_0x55dcf4,_0x233617){const _0x171297=_0x2cfd2a;let _0x443156=g(_0x55dcf4[_0x171297(0x14b)](_0x2469c3=>R(_0x2469c3,_0x31a821)?{..._0x2469c3,'collapsed':!0x1}:_0x2469c3),_0x31a821['unitId'],_0x31a821[_0x171297(0xdb)],_0x31a821[_0x171297(0xb8)]);return ge({'start':_0x31a821[_0x171297(0x9c)],'end':_0x31a821['end']},_0x443156)[_0x171297(0x14b)](_0xc20923=>I(_0x31a821[_0x171297(0xb8)],_0xc20923['start'],_0xc20923[_0x171297(0x147)],_0x233617));}function R(_0x306edb,_0x1c063d){const _0x56708c=_0x2cfd2a;return _0x306edb[_0x56708c(0x95)]===_0x1c063d[_0x56708c(0x95)]&&_0x306edb[_0x56708c(0xdb)]===_0x1c063d['subUnitId']&&_0x306edb[_0x56708c(0xb8)]===_0x1c063d['axis']&&_0x306edb[_0x56708c(0x9c)]===_0x1c063d[_0x56708c(0x9c)]&&_0x306edb[_0x56708c(0x147)]===_0x1c063d[_0x56708c(0x147)];}function ge(_0x41ea46,_0x259160){const _0x391e95=_0x2cfd2a;let _0x5a7f69=_0x41ea46[_0x391e95(0x9c)],_0x4c518d=[];for(let _0x1355ae of _0x259160)if(!(_0x1355ae[_0x391e95(0x147)]<_0x5a7f69||_0x1355ae[_0x391e95(0x9c)]>_0x41ea46[_0x391e95(0x147)])&&(_0x1355ae['start']>_0x5a7f69&&_0x4c518d['push']({'start':_0x5a7f69,'end':Math['min'](_0x1355ae[_0x391e95(0x9c)]-0x1,_0x41ea46[_0x391e95(0x147)])}),_0x5a7f69=Math[_0x391e95(0x11d)](_0x5a7f69,_0x1355ae[_0x391e95(0x147)]+0x1),_0x5a7f69>_0x41ea46[_0x391e95(0x147)]))break;return _0x5a7f69<=_0x41ea46[_0x391e95(0x147)]&&_0x4c518d[_0x391e95(0xae)]({'start':_0x5a7f69,'end':_0x41ea46[_0x391e95(0x147)]}),_0x4c518d;}const z={'id':'sheet.command.set-dimension-outline-collapsed','type':e[_0x2cfd2a(0x101)]['COMMAND'],'handler':(_0x3e0509,_0x1759c3)=>{const _0x30cc0a=_0x2cfd2a;if(!_0x1759c3)return!0x1;let _0x539801=(0x0,t['getSheetCommandTarget'])(_0x3e0509[_0x30cc0a(0x138)](e[_0x30cc0a(0x113)]),_0x1759c3);if(!_0x539801)return!0x1;let {unitId:_0x258434,subUnitId:_0x21f448,worksheet:_0x325036}=_0x539801;if(!A(_0x3e0509,_0x258434,_0x21f448))return!0x1;let _0xd1bca1=_0x3e0509[_0x30cc0a(0x138)](E)[_0x30cc0a(0x106)](_0x258434,_0x21f448),_0x208cb6=_0xd1bca1[_0x30cc0a(0xd3)](_0x18b790=>_0x18b790['id']===_0x1759c3[_0x30cc0a(0x169)]);if(!_0x208cb6||_0x208cb6[_0x30cc0a(0x117)]===_0x1759c3['collapsed'])return!0x1;let _0x44b7b7=L(_0x208cb6,_0x1759c3['collapsed'],_0x325036,_0xd1bca1),_0x126c10=L(_0x208cb6,!_0x1759c3[_0x30cc0a(0x117)],_0x325036,_0xd1bca1);return(0x0,e[_0x30cc0a(0x10f)])(_0x44b7b7,_0x3e0509[_0x30cc0a(0x138)](e[_0x30cc0a(0x15f)]))[_0x30cc0a(0xd0)]?(_0x3e0509['get'](e[_0x30cc0a(0x158)])[_0x30cc0a(0xe5)]({'unitID':_0x258434,'undoMutations':_0x126c10,'redoMutations':_0x44b7b7}),!0x0):!0x1;}},B={'id':_0x2cfd2a(0x121),'type':e[_0x2cfd2a(0x101)][_0x2cfd2a(0xca)],'handler':(_0x414faf,_0x4358ce)=>{const _0x4bf9b6=_0x2cfd2a;let _0xfaa601=_0x414faf[_0x4bf9b6(0x138)](E),_0x57e10e=_e(_0xfaa601[_0x4bf9b6(0x106)](_0x4358ce['unitId'],_0x4358ce[_0x4bf9b6(0xdb)]),_0x4358ce);return _0xfaa601['setOutlines'](_0x4358ce[_0x4bf9b6(0x95)],_0x4358ce['subUnitId'],_0x57e10e),!0x0;}};function _e(_0x56f363,_0x4fc9f4){const _0x1b27f1=_0x2cfd2a;switch(_0x4fc9f4[_0x1b27f1(0xbe)]){case'insert':return _0x4fc9f4['restoreOutlines']?ve(_0x56f363,_0x4fc9f4):v(_0x56f363,_0x4fc9f4);case'delete':return y(_0x56f363,_0x4fc9f4);case _0x1b27f1(0x128):return b(_0x56f363,_0x4fc9f4);}}function ve(_0x9e29c7,_0x1484f6){const _0x1b66a9=_0x2cfd2a;return[..._0x9e29c7['filter'](_0x45f58c=>_0x45f58c['unitId']!==_0x1484f6['unitId']||_0x45f58c[_0x1b66a9(0xdb)]!==_0x1484f6[_0x1b66a9(0xdb)]||_0x45f58c[_0x1b66a9(0xb8)]!==_0x1484f6['axis']),..._0x1484f6[_0x1b66a9(0x140)]];}const V=_0x2cfd2a(0xcb);var ye=_0x2cfd2a(0x15e),be=_0x2cfd2a(0xd9);const H={};function U(_0xc64274,_0x4ce555){return function(_0x49fe71,_0x7b0525){_0x4ce555(_0x49fe71,_0x7b0525,_0xc64274);};}function W(_0x1a709e,_0x2751c7,_0x21c3d4,_0x5e935a){const _0x3ebf5f=_0x2cfd2a;var _0x4b965a=arguments[_0x3ebf5f(0x154)],_0xd4d236=_0x4b965a<0x3?_0x2751c7:_0x5e935a===null?_0x5e935a=Object[_0x3ebf5f(0xd2)](_0x2751c7,_0x21c3d4):_0x5e935a,_0x5e9a7b;if(typeof Reflect==_0x3ebf5f(0x11c)&&typeof Reflect[_0x3ebf5f(0x13e)]==_0x3ebf5f(0x120))_0xd4d236=Reflect[_0x3ebf5f(0x13e)](_0x1a709e,_0x2751c7,_0x21c3d4,_0x5e935a);else{for(var _0x3a6f0f=_0x1a709e[_0x3ebf5f(0x154)]-0x1;_0x3a6f0f>=0x0;_0x3a6f0f--)(_0x5e9a7b=_0x1a709e[_0x3a6f0f])&&(_0xd4d236=(_0x4b965a<0x3?_0x5e9a7b(_0xd4d236):_0x4b965a>0x3?_0x5e9a7b(_0x2751c7,_0x21c3d4,_0xd4d236):_0x5e9a7b(_0x2751c7,_0x21c3d4))||_0xd4d236);}return _0x4b965a>0x3&&_0xd4d236&&Object[_0x3ebf5f(0x94)](_0x2751c7,_0x21c3d4,_0xd4d236),_0xd4d236;}const G={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let K=class extends e[_0x2cfd2a(0xe8)]{constructor(_0x5ef781,_0x7c2e8b,_0x2fa664,_0x306315){const _0x415421=_0x2cfd2a;super(),this[_0x415421(0x146)]=_0x5ef781,this[_0x415421(0xcc)]=_0x7c2e8b,this['_sheetsOutlineModel']=_0x2fa664,this[_0x415421(0xc6)]=_0x306315,this[_0x415421(0xcd)]();}[_0x2cfd2a(0xcd)](){const _0x38713d=_0x2cfd2a;this[_0x38713d(0xbb)](this[_0x38713d(0xcc)][_0x38713d(0x119)]({'getMutations':_0x1b1971=>xe(_0x1b1971,(_0x27f60a,_0x2ec534)=>this[_0x38713d(0x151)]['getOutlines'](_0x27f60a,_0x2ec534),this['_getCommandScope'](_0x1b1971[_0x38713d(0x15a)]),_0x104c62=>this[_0x38713d(0xc6)][_0x38713d(0xfb)](_0x104c62))}));}[_0x2cfd2a(0x11e)](_0x1e12a9){const _0x4c4939=_0x2cfd2a;let _0x639df3=_0x1e12a9,_0x15486a=_0x639df3!=null&&_0x639df3[_0x4c4939(0x95)]?this['_univerInstanceService'][_0x4c4939(0x130)](_0x639df3[_0x4c4939(0x95)],e[_0x4c4939(0xed)][_0x4c4939(0x13d)]):this[_0x4c4939(0x146)][_0x4c4939(0x148)](e[_0x4c4939(0xed)]['UNIVER_SHEET']);if(!_0x15486a)return;let _0x489fef=_0x639df3!=null&&_0x639df3[_0x4c4939(0xdb)]?_0x15486a[_0x4c4939(0xc3)](_0x639df3['subUnitId']):_0x15486a['getActiveSheet']();if(_0x489fef)return{'unitId':_0x15486a[_0x4c4939(0xa9)](),'subUnitId':_0x489fef[_0x4c4939(0xb5)]()};}};K=W([U(0x0,e[_0x2cfd2a(0x113)]),U(0x1,(0x0,e[_0x2cfd2a(0xf0)])(t[_0x2cfd2a(0x107)])),U(0x2,(0x0,e['Inject'])(E)),U(0x3,(0x0,e[_0x2cfd2a(0xf0)])(D))],K);function xe(_0x225de5,_0x2b9932,_0x90504b,_0x2d1cb6){const _0x7af10a=_0x2cfd2a;let _0x55fc66=Ce(_0x225de5,_0x90504b);if(!_0x55fc66)return Z();let _0x47c175=_0x2b9932(_0x55fc66['unitId'],_0x55fc66[_0x7af10a(0xdb)]);if(!_0x47c175[_0x7af10a(0xa1)](_0x24793f=>_0x24793f['axis']===_0x55fc66[_0x7af10a(0xb8)]))return Z();Se(_0x47c175,_0x55fc66,_0x225de5['id'],_0x2d1cb6);let _0x5ea711=we(_0x55fc66,_0x47c175);return{'redos':[{'id':B['id'],'params':_0x55fc66}],'undos':[{'id':B['id'],'params':_0x5ea711}],'preRedos':[],'preUndos':[]};}function Se(_0x46025a,_0x3271e6,_0x5a5711,_0x204833){const _0x47dc9a=_0x2cfd2a;try{switch(_0x3271e6[_0x47dc9a(0xbe)]){case'insert':v(_0x46025a,_0x3271e6);break;case _0x47dc9a(0xaf):y(_0x46025a,_0x3271e6);break;case _0x47dc9a(0x128):b(_0x46025a,_0x3271e6);}}catch(_0xd58b2c){throw _0x204833==null||_0x204833({'reason':c(_0xd58b2c),'commandId':_0x5a5711,'unitId':_0x3271e6[_0x47dc9a(0x95)],'subUnitId':_0x3271e6[_0x47dc9a(0xdb)],'axis':_0x3271e6[_0x47dc9a(0xb8)],'outlineId':l(_0xd58b2c)}),new e[(_0x47dc9a(0xd1))](_0xd58b2c instanceof Error?_0xd58b2c[_0x47dc9a(0x129)]:_0x47dc9a(0x110));}}function Ce(_0x25f9e3,_0x449185){const _0xd03e06=_0x2cfd2a;switch(_0x25f9e3['id']){case t[_0xd03e06(0x156)]['id']:return q(_0x25f9e3['params'],'row',_0x449185);case t[_0xd03e06(0x10c)]['id']:return q(_0x25f9e3['params'],_0xd03e06(0x16b),_0x449185);case t[_0xd03e06(0xa4)]['id']:return J(_0x25f9e3['params'],_0xd03e06(0x12e),_0x449185);case t[_0xd03e06(0x153)]['id']:return J(_0x25f9e3['params'],_0xd03e06(0x16b),_0x449185);case t[_0xd03e06(0x9d)]['id']:return Y(_0x25f9e3[_0xd03e06(0x15a)],_0xd03e06(0x12e),_0x449185);case t[_0xd03e06(0x15b)]['id']:return Y(_0x25f9e3[_0xd03e06(0x15a)],_0xd03e06(0x16b),_0x449185);default:return null;}}function q(_0x1a9690,_0x428f48,_0x2b30f8){const _0x411407=_0x2cfd2a;let _0xb813e4=X(_0x1a9690,_0x2b30f8);if(!(_0x1a9690!=null&&_0x1a9690[_0x411407(0xd5)])||!_0xb813e4)return null;let _0x321999=_0x428f48==='row'?_0x1a9690[_0x411407(0xd5)][_0x411407(0xf6)]:_0x1a9690[_0x411407(0xd5)][_0x411407(0x100)],_0x3ec034=_0x428f48==='row'?_0x1a9690[_0x411407(0xd5)][_0x411407(0x12a)]:_0x1a9690[_0x411407(0xd5)]['endColumn'];return{..._0xb813e4,'axis':_0x428f48,'type':_0x411407(0x163),'index':_0x321999,'count':_0x3ec034-_0x321999+0x1};}function J(_0x1328a1,_0x5c4b96,_0x210876){const _0x58f34d=_0x2cfd2a;let _0x1d75d5=X(_0x1328a1,_0x210876);if(!(_0x1328a1!=null&&_0x1328a1[_0x58f34d(0xd5)])||!_0x1d75d5)return null;let _0x64b7b1=_0x5c4b96===_0x58f34d(0x12e)?_0x1328a1['range'][_0x58f34d(0xf6)]:_0x1328a1[_0x58f34d(0xd5)][_0x58f34d(0x100)],_0x4d7b69=_0x5c4b96==='row'?_0x1328a1[_0x58f34d(0xd5)][_0x58f34d(0x12a)]:_0x1328a1[_0x58f34d(0xd5)][_0x58f34d(0x99)];return{..._0x1d75d5,'axis':_0x5c4b96,'type':_0x58f34d(0xaf),'start':_0x64b7b1,'end':_0x4d7b69};}function Y(_0x2aca86,_0x357fb4,_0xe30667){const _0x1a2ae4=_0x2cfd2a;let _0x5eb9b3=X(_0x2aca86,_0xe30667);if(!(_0x2aca86!=null&&_0x2aca86[_0x1a2ae4(0x112)])||!_0x2aca86[_0x1a2ae4(0x137)]||!_0x5eb9b3)return null;let _0x29bcfd=_0x357fb4==='row'?_0x2aca86['fromRange'][_0x1a2ae4(0xf6)]:_0x2aca86[_0x1a2ae4(0x112)][_0x1a2ae4(0x100)],_0x4d7127=_0x357fb4===_0x1a2ae4(0x12e)?_0x2aca86[_0x1a2ae4(0x112)][_0x1a2ae4(0x12a)]:_0x2aca86[_0x1a2ae4(0x112)][_0x1a2ae4(0x99)],_0x1aef6f=_0x357fb4===_0x1a2ae4(0x12e)?_0x2aca86[_0x1a2ae4(0x137)][_0x1a2ae4(0xf6)]:_0x2aca86[_0x1a2ae4(0x137)][_0x1a2ae4(0x100)];return{..._0x5eb9b3,'axis':_0x357fb4,'type':_0x1a2ae4(0x128),'sourceStart':_0x29bcfd,'sourceEnd':_0x4d7127,'destinationIndex':_0x1aef6f};}function we(_0x47d97d,_0x4b2918){const _0x4d1e6e=_0x2cfd2a;switch(_0x47d97d[_0x4d1e6e(0xbe)]){case _0x4d1e6e(0x163):return{'unitId':_0x47d97d['unitId'],'subUnitId':_0x47d97d[_0x4d1e6e(0xdb)],'axis':_0x47d97d[_0x4d1e6e(0xb8)],'type':_0x4d1e6e(0xaf),'start':_0x47d97d[_0x4d1e6e(0xc2)],'end':_0x47d97d['index']+_0x47d97d[_0x4d1e6e(0xd6)]-0x1};case _0x4d1e6e(0xaf):return{'unitId':_0x47d97d[_0x4d1e6e(0x95)],'subUnitId':_0x47d97d[_0x4d1e6e(0xdb)],'axis':_0x47d97d[_0x4d1e6e(0xb8)],'type':'insert','index':_0x47d97d[_0x4d1e6e(0x9c)],'count':_0x47d97d[_0x4d1e6e(0x147)]-_0x47d97d[_0x4d1e6e(0x9c)]+0x1,'restoreOutlines':_0x4b2918['filter'](_0x18fdd8=>_0x18fdd8[_0x4d1e6e(0x95)]===_0x47d97d[_0x4d1e6e(0x95)]&&_0x18fdd8['subUnitId']===_0x47d97d[_0x4d1e6e(0xdb)]&&_0x18fdd8[_0x4d1e6e(0xb8)]===_0x47d97d['axis'])};case _0x4d1e6e(0x128):return Te(_0x47d97d);}}function Te(_0x1f7175){const _0x1fb25c=_0x2cfd2a;let _0x3f284d=_0x1f7175[_0x1fb25c(0xe4)]-_0x1f7175[_0x1fb25c(0xfe)]+0x1;return _0x1f7175['destinationIndex']>=_0x1f7175['sourceStart']&&_0x1f7175['destinationIndex']<=_0x1f7175[_0x1fb25c(0xe4)]+0x1?{..._0x1f7175}:_0x1f7175[_0x1fb25c(0xf5)]>_0x1f7175[_0x1fb25c(0xe4)]+0x1?{..._0x1f7175,'sourceStart':_0x1f7175['destinationIndex']-_0x3f284d,'sourceEnd':_0x1f7175['destinationIndex']-0x1,'destinationIndex':_0x1f7175[_0x1fb25c(0xfe)]}:{..._0x1f7175,'sourceStart':_0x1f7175[_0x1fb25c(0xf5)],'sourceEnd':_0x1f7175[_0x1fb25c(0xf5)]+_0x3f284d-0x1,'destinationIndex':_0x1f7175['sourceEnd']+0x1};}function X(_0x28db15,_0x533a77){const _0x379f66=_0x2cfd2a;let _0x33765f=(_0x28db15==null?void 0x0:_0x28db15[_0x379f66(0x95)])??(_0x533a77==null?void 0x0:_0x533a77[_0x379f66(0x95)]),_0x52040a=(_0x28db15==null?void 0x0:_0x28db15[_0x379f66(0xdb)])??(_0x533a77==null?void 0x0:_0x533a77['subUnitId']);return _0x33765f&&_0x52040a?{'unitId':_0x33765f,'subUnitId':_0x52040a}:null;}function Z(){const _0x2e4981=_0x2cfd2a;return{'redos':[...G[_0x2e4981(0xb9)]],'undos':[...G[_0x2e4981(0x13a)]],'preRedos':[...G[_0x2e4981(0x10a)]??[]],'preUndos':[...G[_0x2e4981(0xd8)]??[]]};}let Q=class extends e[_0x2cfd2a(0xe8)]{constructor(_0x42ab3e,_0x3a2b82){const _0x5d4f35=_0x2cfd2a;super(),this[_0x5d4f35(0x118)]=_0x42ab3e,this[_0x5d4f35(0x151)]=_0x3a2b82,this[_0x5d4f35(0x16f)]();}[_0x2cfd2a(0x16f)](){const _0x434111=_0x2cfd2a;this[_0x434111(0xbb)](this[_0x434111(0x118)][_0x434111(0xbd)]({'pluginName':V,'businesses':[e[_0x434111(0xed)][_0x434111(0x13d)]],'toJson':_0x534e40=>JSON[_0x434111(0x141)](this['_sheetsOutlineModel'][_0x434111(0x157)](_0x534e40)),'parseJson':_0xe360d5=>JSON[_0x434111(0xa0)](_0xe360d5),'onLoad':(_0x4efac1,_0x3b69aa)=>this[_0x434111(0x151)][_0x434111(0x125)](_0x4efac1,_0x3b69aa),'onUnLoad':_0x542b62=>this[_0x434111(0x151)][_0x434111(0xe1)](_0x542b62)}));}};Q=W([U(0x0,e['IResourceManagerService']),U(0x1,(0x0,e[_0x2cfd2a(0xf0)])(E))],Q);let $=class extends e['Plugin']{constructor(_0x46d37d=H,_0x49d613,_0x505af1,_0x38f668){const _0x2fc6aa=_0x2cfd2a;super(),this[_0x2fc6aa(0x13c)]=_0x46d37d,this['_injector']=_0x49d613,this[_0x2fc6aa(0x16d)]=_0x505af1,this[_0x2fc6aa(0x14f)]=_0x38f668;let {..._0x6e014e}=(0x0,e[_0x2fc6aa(0x160)])({},H,this[_0x2fc6aa(0x13c)]);this[_0x2fc6aa(0x14f)]['setConfig'](_0x2fc6aa(0x92),_0x6e014e);}[_0x2cfd2a(0x164)](){const _0x12c0ac=_0x2cfd2a;this[_0x12c0ac(0x145)][_0x12c0ac(0xb2)]([E]),this[_0x12c0ac(0x145)][_0x12c0ac(0xb2)]([D]),this[_0x12c0ac(0x145)][_0x12c0ac(0xb2)]([Q]),this[_0x12c0ac(0x145)][_0x12c0ac(0xb2)]([K]),this[_0x12c0ac(0xf2)](),this['_injector']['get'](E),this[_0x12c0ac(0x145)]['get'](D),this['_injector'][_0x12c0ac(0x138)](Q),this['_injector'][_0x12c0ac(0x138)](K);}[_0x2cfd2a(0xf2)](){const _0x36a9f1=_0x2cfd2a;[j,P,z,N]['forEach'](_0x552acc=>{const _0x4c383b=_0x5ac2;this['disposeWithMe'](this[_0x4c383b(0x16d)]['registerCommand'](_0x552acc));}),[O,k,F,M,B][_0x36a9f1(0xe0)](_0x58442c=>{const _0x564ba7=_0x36a9f1;this[_0x564ba7(0xbb)](this[_0x564ba7(0x16d)][_0x564ba7(0x132)](_0x58442c));});}};T($,'pluginName',V),T($,_0x2cfd2a(0x10b),ye),T($,'version',be),T($,_0x2cfd2a(0xbe),e[_0x2cfd2a(0xed)]['UNIVER_SHEET']),$=W([(0x0,e[_0x2cfd2a(0xef)])(i[_0x2cfd2a(0x167)],t[_0x2cfd2a(0x96)]),U(0x1,(0x0,e[_0x2cfd2a(0xf0)])(e[_0x2cfd2a(0x162)])),U(0x2,e[_0x2cfd2a(0x15f)]),U(0x3,e['IConfigService'])],$),exports[_0x2cfd2a(0xff)]=j,exports[_0x2cfd2a(0x126)]=O,exports[_0x2cfd2a(0x12f)]=N,exports[_0x2cfd2a(0x136)]=M,exports[_0x2cfd2a(0x133)]=a,exports['DimensionOutlineErrorReason']=o,exports[_0x2cfd2a(0xce)]=P,exports['RemoveDimensionOutlineMutation']=k,exports[_0x2cfd2a(0xcb)]=V,exports['SetDimensionOutlineCollapsedCommand']=z,exports[_0x2cfd2a(0xc4)]=F,exports['SheetsOutlineErrorService']=D,exports['SheetsOutlineModel']=E,exports[_0x2cfd2a(0x149)]=B,Object[_0x2cfd2a(0x94)](exports,'UniverSheetsOutlinePlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x2cfd2a(0xec)]=f,exports[_0x2cfd2a(0xb7)]=p,exports[_0x2cfd2a(0x16a)]=ue,exports[_0x2cfd2a(0xe6)]=A,exports['transformOutlinesByDelete']=y,exports['transformOutlinesByInsert']=v,exports['transformOutlinesByMove']=b;
|
|
1
|
+
const _0x48b523=_0x3157;(function(_0x4aa2ec,_0x4c8a64){const _0x3fc1d9=_0x3157,_0x3c71b0=_0x4aa2ec();while(!![]){try{const _0x5d35cb=-parseInt(_0x3fc1d9(0x1fe))/0x1+parseInt(_0x3fc1d9(0x191))/0x2*(-parseInt(_0x3fc1d9(0x1f7))/0x3)+-parseInt(_0x3fc1d9(0x1c5))/0x4*(parseInt(_0x3fc1d9(0x187))/0x5)+-parseInt(_0x3fc1d9(0x21d))/0x6*(-parseInt(_0x3fc1d9(0x205))/0x7)+parseInt(_0x3fc1d9(0x18c))/0x8*(parseInt(_0x3fc1d9(0x1c4))/0x9)+-parseInt(_0x3fc1d9(0x177))/0xa+parseInt(_0x3fc1d9(0x1e9))/0xb;if(_0x5d35cb===_0x4c8a64)break;else _0x3c71b0['push'](_0x3c71b0['shift']());}catch(_0x3e6fe3){_0x3c71b0['push'](_0x3c71b0['shift']());}}}(_0x17e6,0x2078f),Object[_0x48b523(0x1f5)](exports,Symbol[_0x48b523(0x16a)],{'value':_0x48b523(0x1e6)}));let e=require('@univerjs/core'),t=require('@univerjs/sheets'),n=require('rxjs'),r=require('rxjs/operators'),i=require('@univerjs-pro/license'),a=function(_0x518bae){const _0x5cbf44=_0x48b523;return _0x518bae[_0x5cbf44(0x207)]='row',_0x518bae[_0x5cbf44(0x1f9)]=_0x5cbf44(0x1bf),_0x518bae;}({}),o=function(_0x338007){const _0x23e58a=_0x48b523;return _0x338007[_0x23e58a(0x1ee)]=_0x23e58a(0x193),_0x338007['OUT_OF_BOUNDS']='out-of-bounds',_0x338007[_0x23e58a(0x1c7)]=_0x23e58a(0x20e),_0x338007[_0x23e58a(0x23f)]=_0x23e58a(0x23c),_0x338007[_0x23e58a(0x1d7)]='move-splits-outline',_0x338007[_0x23e58a(0x19e)]='clear-range-not-contain-outline',_0x338007['UNKNOWN']=_0x23e58a(0x1cc),_0x338007;}({});var s=class extends Error{constructor(_0x492bf6,_0x4b7abf,_0x449641){const _0x21d330=_0x48b523;super(_0x4b7abf),this['reason']=_0x492bf6,this['outlineId']=_0x449641,this[_0x21d330(0x1d0)]=_0x21d330(0x22a);}};function c(_0x4a96b3){const _0x4bc490=_0x48b523;return _0x4a96b3 instanceof s?_0x4a96b3[_0x4bc490(0x16f)]:_0x4a96b3 instanceof Error?_0x4a96b3['message']['includes'](_0x4bc490(0x232))?_0x4bc490(0x1a6):_0x4a96b3[_0x4bc490(0x210)]['includes'](_0x4bc490(0x16e))?_0x4bc490(0x23c):_0x4a96b3[_0x4bc490(0x210)][_0x4bc490(0x1ca)]('Crossing')?_0x4bc490(0x20e):_0x4a96b3[_0x4bc490(0x210)][_0x4bc490(0x1ca)]('range')?_0x4bc490(0x193):_0x4bc490(0x1cc):_0x4bc490(0x1cc);}function l(_0x20b76a){const _0x435056=_0x48b523;return _0x20b76a instanceof s?_0x20b76a[_0x435056(0x223)]:void 0x0;}const u=0x2**0x35-0x1;function d(_0x209a5e,_0x181d58){const _0x347a7c=_0x48b523;return _0x209a5e[_0x347a7c(0x16d)]===_0x181d58['unitId']&&_0x209a5e[_0x347a7c(0x20f)]===_0x181d58[_0x347a7c(0x20f)]&&_0x209a5e[_0x347a7c(0x217)]===_0x181d58['axis'];}function f(_0x2ea40f,_0x7df242={}){const _0x2bc0e9=_0x48b523;let _0x3ce275=_0x7df242[_0x2bc0e9(0x206)]??0x8,_0x5bf73c=new Map();for(let _0x50b1c2 of _0x2ea40f){let _0x46094a=_0x50b1c2[_0x2bc0e9(0x16d)]+':'+_0x50b1c2[_0x2bc0e9(0x20f)]+':'+_0x50b1c2[_0x2bc0e9(0x217)],_0x6d3950=_0x5bf73c[_0x2bc0e9(0x22e)](_0x46094a);_0x6d3950?_0x6d3950[_0x2bc0e9(0x23b)](_0x50b1c2):_0x5bf73c[_0x2bc0e9(0x202)](_0x46094a,[_0x50b1c2]);}let _0x450212=[];for(let _0x138f46 of _0x5bf73c[_0x2bc0e9(0x22d)]()){let _0x2e8922=[..._0x138f46]['sort'](S),_0x5730c0=[];for(let _0x45833c of _0x2e8922){for(se(_0x45833c);_0x5730c0[_0x2bc0e9(0x1ab)]>0x0&&_0x45833c[_0x2bc0e9(0x1d1)]>_0x5730c0[_0x5730c0[_0x2bc0e9(0x1ab)]-0x1][_0x2bc0e9(0x17e)];)_0x5730c0['pop']();let _0x1ff447=_0x5730c0[_0x5730c0[_0x2bc0e9(0x1ab)]-0x1];if(_0x1ff447&&_0x45833c[_0x2bc0e9(0x17e)]>_0x1ff447[_0x2bc0e9(0x17e)])throw new s(_0x2bc0e9(0x20e),_0x2bc0e9(0x1e3),_0x45833c['id']);let _0x105ad4=_0x1ff447?_0x1ff447[_0x2bc0e9(0x16e)]+0x1:0x1;if(_0x105ad4>_0x3ce275)throw new s(_0x2bc0e9(0x23c),'Dimension\x20outline\x20depth\x20cannot\x20exceed\x20'+_0x3ce275,_0x45833c['id']);let _0x1da35a={..._0x45833c,'depth':_0x105ad4,'parentId':_0x1ff447==null?void 0x0:_0x1ff447['id'],'anchor':_0x45833c[_0x2bc0e9(0x17e)],'children':[]};_0x1ff447?_0x1ff447[_0x2bc0e9(0x1c3)][_0x2bc0e9(0x23b)](_0x1da35a):_0x450212[_0x2bc0e9(0x23b)](_0x1da35a),_0x5730c0[_0x2bc0e9(0x23b)](_0x1da35a);}}return _0x450212;}function p(_0x350997,_0xd05f64,_0x3876ef={}){const _0x57c677=_0x48b523;if(_0xd05f64[_0x57c677(0x1d1)]<0x0||_0xd05f64['start']>_0xd05f64[_0x57c677(0x17e)])return{'valid':!0x1,'reason':'invalid-range'};if(_0x3876ef[_0x57c677(0x1a5)]!=null&&_0xd05f64['end']>=_0x3876ef[_0x57c677(0x1a5)])return{'valid':!0x1,'reason':'out-of-bounds'};let _0x4c95af=_0x350997['filter'](_0x49082b=>d(_0x49082b,_0xd05f64));for(let _0x910038 of _0x4c95af)if(C(_0x910038,_0xd05f64))return{'valid':!0x1,'reason':_0x57c677(0x20e)};try{f([..._0x350997,_0xd05f64],_0x3876ef);}catch(_0x34b197){let _0x31af2d=c(_0x34b197);return _0x31af2d==='max-depth'?{'valid':!0x1,'reason':_0x57c677(0x23c)}:_0x31af2d===_0x57c677(0x193)?{'valid':!0x1,'reason':'invalid-range'}:{'valid':!0x1,'reason':_0x57c677(0x20e)};}return{'valid':!0x0};}function m(_0x3da1be,_0x4545e0,_0x53b6b2={}){const _0xfeae6e=_0x48b523;let _0x3e1831=p(_0x3da1be,_0x4545e0,_0x53b6b2);if(!_0x3e1831[_0xfeae6e(0x175)])throw Error(_0x3e1831['reason']??_0xfeae6e(0x1d9));return[..._0x3da1be,_0x4545e0];}function ee(_0x21d678,_0x2ec0bc){const _0x4b8078=_0x48b523;let _0x38feb1=_0x2ec0bc[_0x4b8078(0x1d1)],_0x1a5a21=_0x2ec0bc[_0x4b8078(0x17e)],_0x28e0c8=[],_0x3d8221=!0x0;for(;_0x3d8221;){_0x3d8221=!0x1;for(let _0xe5bd02 of _0x21d678)!_0x28e0c8[_0x4b8078(0x1ca)](_0xe5bd02)&&d(_0xe5bd02,_0x2ec0bc)&&ae(_0xe5bd02['start'],_0xe5bd02[_0x4b8078(0x17e)],_0x38feb1,_0x1a5a21)&&(_0x28e0c8[_0x4b8078(0x23b)](_0xe5bd02),_0x38feb1=Math['min'](_0x38feb1,_0xe5bd02[_0x4b8078(0x1d1)]),_0x1a5a21=Math['max'](_0x1a5a21,_0xe5bd02[_0x4b8078(0x17e)]),_0x3d8221=!0x0);}if(_0x28e0c8['length']===0x0)return null;let [_0x1d18a6]=[..._0x28e0c8]['sort'](S);return{'mergedOutline':{..._0x1d18a6,'start':_0x38feb1,'end':_0x1a5a21},'mergedOutlines':_0x28e0c8};}function h(_0x263736,_0x5b50ee){const _0x569622=_0x48b523;return _0x263736['filter'](_0x2ea491=>!d(_0x2ea491,_0x5b50ee)||!(_0x2ea491[_0x569622(0x1d1)]>=_0x5b50ee[_0x569622(0x1d1)]&&_0x2ea491['end']<=_0x5b50ee[_0x569622(0x17e)]));}function g(_0x4fc0b0,_0x25a210,_0x6815fe,_0x3249ba){const _0x2afb6d=_0x48b523;return _(_0x4fc0b0[_0x2afb6d(0x1c6)](_0x37249e=>_0x37249e[_0x2afb6d(0x16d)]===_0x25a210&&_0x37249e[_0x2afb6d(0x20f)]===_0x6815fe&&_0x37249e[_0x2afb6d(0x217)]===_0x3249ba&&_0x37249e[_0x2afb6d(0x1ef)])['map'](_0x3bf702=>({'start':_0x3bf702['start'],'end':_0x3bf702[_0x2afb6d(0x17e)]})));}function _(_0x5c250e){const _0x26eecf=_0x48b523;if(_0x5c250e[_0x26eecf(0x1ab)]===0x0)return[];let _0x4d275b=[..._0x5c250e][_0x26eecf(0x1a7)]((_0x16c766,_0x5b769e)=>_0x16c766[_0x26eecf(0x1d1)]-_0x5b769e['start']||_0x16c766[_0x26eecf(0x17e)]-_0x5b769e['end']),_0x10c3f9=[];for(let _0x4b6665 of _0x4d275b){let _0x2c1997=_0x10c3f9[_0x10c3f9[_0x26eecf(0x1ab)]-0x1];!_0x2c1997||_0x4b6665['start']>_0x2c1997[_0x26eecf(0x17e)]+0x1?_0x10c3f9[_0x26eecf(0x23b)]({..._0x4b6665}):_0x2c1997[_0x26eecf(0x17e)]=Math[_0x26eecf(0x21b)](_0x2c1997[_0x26eecf(0x17e)],_0x4b6665[_0x26eecf(0x17e)]);}return _0x10c3f9;}function v(_0x3c0052,_0x21fd4b){const _0x5dc84a=_0x48b523;return _0x21fd4b[_0x5dc84a(0x1f6)]<=0x0?_0x3c0052:x(_0x3c0052[_0x5dc84a(0x1b9)](_0x2ec644=>d(_0x2ec644,_0x21fd4b)?_0x21fd4b[_0x5dc84a(0x1b4)]<=_0x2ec644[_0x5dc84a(0x1d1)]?{..._0x2ec644,'start':_0x2ec644[_0x5dc84a(0x1d1)]+_0x21fd4b[_0x5dc84a(0x1f6)],'end':_0x2ec644[_0x5dc84a(0x17e)]+_0x21fd4b[_0x5dc84a(0x1f6)]}:_0x2ec644[_0x5dc84a(0x1d1)]<_0x21fd4b['index']&&_0x21fd4b[_0x5dc84a(0x1b4)]<=_0x2ec644[_0x5dc84a(0x17e)]?{..._0x2ec644,'end':_0x2ec644[_0x5dc84a(0x17e)]+_0x21fd4b['count']}:_0x2ec644:_0x2ec644));}function y(_0x2080aa,_0x553033){const _0x18b5f1=_0x48b523;if(_0x553033[_0x18b5f1(0x1d1)]>_0x553033['end'])return _0x2080aa;let _0xda49f=_0x553033[_0x18b5f1(0x17e)]-_0x553033['start']+0x1,_0x58b319=[];for(let _0x248ae5 of _0x2080aa){if(!d(_0x248ae5,_0x553033)){_0x58b319[_0x18b5f1(0x23b)](_0x248ae5);continue;}if(_0x248ae5['end']<_0x553033[_0x18b5f1(0x1d1)]){_0x58b319[_0x18b5f1(0x23b)](_0x248ae5);continue;}if(_0x248ae5['start']>_0x553033[_0x18b5f1(0x17e)]){_0x58b319[_0x18b5f1(0x23b)]({..._0x248ae5,'start':_0x248ae5[_0x18b5f1(0x1d1)]-_0xda49f,'end':_0x248ae5[_0x18b5f1(0x17e)]-_0xda49f});continue;}let _0x108d7e=Math[_0x18b5f1(0x21b)](_0x248ae5[_0x18b5f1(0x1d1)],_0x553033[_0x18b5f1(0x1d1)]),_0x33df27=Math[_0x18b5f1(0x1aa)](_0x248ae5[_0x18b5f1(0x17e)],_0x553033[_0x18b5f1(0x17e)]),_0x1dddc2=Math[_0x18b5f1(0x21b)](0x0,_0x33df27-_0x108d7e+0x1),_0xb8b970=_0x248ae5[_0x18b5f1(0x17e)]-_0x248ae5['start']+0x1-_0x1dddc2;if(_0xb8b970<=0x0)continue;let _0x341743=_0x248ae5['start']<_0x553033[_0x18b5f1(0x1d1)]?_0x248ae5[_0x18b5f1(0x1d1)]:_0x553033['start'];_0x58b319['push']({..._0x248ae5,'start':_0x341743,'end':_0x341743+_0xb8b970-0x1});}return x(_0x58b319);}function b(_0x1acdfe,_0x14d3b9){const _0xc56258=_0x48b523;if(_0x14d3b9[_0xc56258(0x1ce)]>_0x14d3b9[_0xc56258(0x1b1)])return _0x1acdfe;let _0x17920d=[];for(let _0x290660 of _0x1acdfe){if(!d(_0x290660,_0x14d3b9)){_0x17920d[_0xc56258(0x23b)](_0x290660);continue;}let _0x5cef6e=te(_0x290660,_0x14d3b9);if(_0x5cef6e[_0xc56258(0x1bc)]==='split')throw new s(_0xc56258(0x1a6),_0xc56258(0x215)+_0x290660['id'],_0x290660['id']);_0x17920d[_0xc56258(0x23b)](_0x5cef6e['outline']);}return x(_0x17920d);}function te(_0x4e0990,_0xcd82b1){const _0x273c85=_0x48b523;let _0x18fe9b=ne(_0xcd82b1['sourceStart'],_0xcd82b1[_0x273c85(0x1b1)]+0x1,_0xcd82b1['destinationIndex']),_0x5c58b4=[],_0x292c33={'start':_0x4e0990[_0x273c85(0x1d1)],'end':_0x4e0990[_0x273c85(0x17e)]+0x1};for(let _0x255488 of _0x18fe9b){let _0x37f288=re(_0x292c33,_0x255488['range']);_0x37f288&&_0x5c58b4[_0x273c85(0x23b)]({'start':_0x37f288['start']+_0x255488[_0x273c85(0x189)],'end':_0x37f288[_0x273c85(0x17e)]+_0x255488[_0x273c85(0x189)]});}let _0x3ae938=ie(_0x5c58b4);return _0x3ae938[_0x273c85(0x1ab)]===0x1?{'type':'ok','outline':{..._0x4e0990,'start':_0x3ae938[0x0]['start'],'end':_0x3ae938[0x0][_0x273c85(0x17e)]-0x1}}:{'type':_0x273c85(0x1c8),'outline':_0x4e0990,'ranges':_0x3ae938};}function ne(_0x148728,_0x38fedf,_0x1bb8d9){const _0xd51513=_0x48b523;let _0x3533dc=_0x38fedf-_0x148728;if(_0x3533dc<=0x0)throw Error(_0xd51513(0x1bd));return _0x1bb8d9>=_0x148728&&_0x1bb8d9<=_0x38fedf?[{'range':{'start':0x0,'end':u},'offset':0x0}]:_0x1bb8d9<_0x148728?[{'range':{'start':0x0,'end':_0x1bb8d9},'offset':0x0},{'range':{'start':_0x1bb8d9,'end':_0x148728},'offset':_0x3533dc},{'range':{'start':_0x148728,'end':_0x38fedf},'offset':_0x1bb8d9-_0x148728},{'range':{'start':_0x38fedf,'end':u},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x148728},'offset':0x0},{'range':{'start':_0x148728,'end':_0x38fedf},'offset':_0x1bb8d9-_0x38fedf},{'range':{'start':_0x38fedf,'end':_0x1bb8d9},'offset':-_0x3533dc},{'range':{'start':_0x1bb8d9,'end':u},'offset':0x0}];}function re(_0x1a92ff,_0x357346){const _0x44886f=_0x48b523;let _0x5ad1ac=Math[_0x44886f(0x21b)](_0x1a92ff[_0x44886f(0x1d1)],_0x357346[_0x44886f(0x1d1)]),_0x208d40=Math[_0x44886f(0x1aa)](_0x1a92ff[_0x44886f(0x17e)],_0x357346[_0x44886f(0x17e)]);return _0x5ad1ac>=_0x208d40?null:{'start':_0x5ad1ac,'end':_0x208d40};}function ie(_0x13430c){const _0x1508ed=_0x48b523;if(_0x13430c[_0x1508ed(0x1ab)]===0x0)return[];let _0x2f8ba5=[..._0x13430c]['sort']((_0x1558e8,_0x43a043)=>_0x1558e8['start']-_0x43a043[_0x1508ed(0x1d1)]||_0x1558e8[_0x1508ed(0x17e)]-_0x43a043[_0x1508ed(0x17e)]),_0x4ebc6f=[];for(let _0x5a569d of _0x2f8ba5){let _0x2b0218=_0x4ebc6f[_0x4ebc6f['length']-0x1];!_0x2b0218||_0x5a569d[_0x1508ed(0x1d1)]>_0x2b0218[_0x1508ed(0x17e)]?_0x4ebc6f[_0x1508ed(0x23b)]({..._0x5a569d}):_0x2b0218['end']=Math[_0x1508ed(0x21b)](_0x2b0218[_0x1508ed(0x17e)],_0x5a569d[_0x1508ed(0x17e)]);}return _0x4ebc6f;}function ae(_0x1af0ea,_0x4b305c,_0xd1092f,_0x6e59aa){return _0x4b305c+0x1===_0xd1092f||_0x6e59aa+0x1===_0x1af0ea;}function _0x17e6(){const _0x2bec5a=['clear','SheetInterceptorService','AddDimensionOutlineCommand','getMaxColumns','entries','push','max-depth','constructor','MoveRowsCommand','MAX_DEPTH','toStringTag','Subject','redos','unitId','depth','reason','TransformDimensionOutlinesMutation','dispose','sheets-outline.config','RemoveColCommand','packageName','valid','getColumnCount','2508560PSRsYF','disposeWithMe','Invalid\x20outline\x20range','DependentOn','MoveColsCommand','asObservable','MUTATION','end','_outlines','function','WorksheetViewPermission','find','undos','permissionPointUpdate$','UniverLicensePlugin','InsertRowCommand','5yLEkRx','RemoveRowCommand','offset','Injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','8nDIlah','delete','ICommandService','SetRowVisibleMutation','COMMAND','2RivOZF','result','invalid-range','UniverSheetsPlugin','sheet.mutation.transform-dimension-outlines','merge','getUnitOutlines','SetColVisibleMutation','CommandType','transformOutlinesByDelete','some','params','mergedOutlines','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','SheetsOutlineModel','@univerjs-pro/sheets-outline','SheetPermissionCheckController','UniverSheetsOutlinePlugin','transformOutlinesByMove','ClearDimensionOutlinesCommand','maxIndex','move-splits-outline','sort','_injector','serialize','min','length','setOutlines','sequenceExecute','has','Plugin','SetRowHiddenMutation','sourceEnd','forEach','_config','index','_sheetsOutlineModel','IConfigService','_getCommandScope','WorkbookViewPermission','map','destinationIndex','pluginName','type','Invalid\x20dimension\x20outline\x20move\x20source\x20range','buildDimensionOutlineTree','column','Inject','_ensureUnitOutlines','SheetsOutlineErrorService','children','1516014mRgyBE','873332aZJgxp','filter','CROSSING','split','stringify','includes','add','unknown','transformOutlinesByInsert','sourceStart','getDimensionOutlineViewPermission$','name','start','IPermissionService','iterator','_commandService','permissionCheckWithoutRange','SetDimensionOutlineCollapsedCommand','MOVE_SPLITS_OUTLINE','range','invalid-dimension-outline','fromRange','complete','getRowCount','sheet.command.clear-dimension-outlines','RemoveDimensionOutlineMutation','toRange','error$','next','RemoveDimensionOutlineCommand','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','setConfig','preRedos','Module','getActiveSheet','object','7672291nZODUc','_initRegisterCommand','_univerInstanceService','getSheetId','UniverInstanceType','INVALID_RANGE','collapsed','registerCommand','ClearDimensionOutlinesMutation','sheet.mutation.clear-dimension-outlines','registerPluginResource','emit','defineProperty','count','762213VycYWc','UNIVER_SHEET','COLUMN','CustomCommandExecutionError','mergedOutline','_resourceManagerService','endRow','116671sUALtt','IUniverInstanceService','getOutlines','DimensionOutlineAxis','set','onStarting','getSheetCommandTarget','7qNXTTs','maxDepth','ROW','clear-range-not-contain-outline','localeCompare','move','pushUndoRedo','pipe','getCurrentUnitOfType','crossing','subUnitId','message','canAddDimensionOutline','string','startColumn','Invalid\x20dimension\x20outline\x20mutation','Move\x20would\x20split\x20dimension\x20outline:\x20','interceptCommand','axis','IUndoRedoService','_change$','row','max','outlineList','642066kvIMCs','getUnitId','SHEET_OUTLINE_PLUGIN','_error$','_initCommandInterceptor','call','outlineId','parse','deserialize','startRow','change$','endColumn','restoreOutlines','DimensionOutlineError','symbol','sheet.mutation.set-dimension-outline-collapsed','values','get','getUnit','join','Disposable','split\x20dimension\x20outline','insert','outline','AddDimensionOutlineMutation'];_0x17e6=function(){return _0x2bec5a;};return _0x17e6();}function x(_0x2f6f7b){let _0x1f15c7=oe(_0x2f6f7b);return f(_0x1f15c7),_0x1f15c7;}function oe(_0x576c51){const _0x5bc104=_0x48b523;let _0x38472e=new Map();for(let _0x3dbf28 of _0x576c51){let _0x440069=[_0x3dbf28[_0x5bc104(0x16d)],_0x3dbf28[_0x5bc104(0x20f)],_0x3dbf28['axis'],_0x3dbf28[_0x5bc104(0x1d1)],_0x3dbf28['end']][_0x5bc104(0x230)](':'),_0xf01827=_0x38472e[_0x5bc104(0x22e)](_0x440069);if(!_0xf01827){_0x38472e[_0x5bc104(0x202)](_0x440069,_0x3dbf28);continue;}_0x38472e[_0x5bc104(0x202)](_0x440069,{..._0xf01827,'collapsed':_0xf01827[_0x5bc104(0x1ef)]||_0x3dbf28['collapsed']});}return Array['from'](_0x38472e[_0x5bc104(0x22d)]());}function S(_0x1fa943,_0x38b964){const _0x41fb75=_0x48b523;return _0x1fa943[_0x41fb75(0x16d)]===_0x38b964[_0x41fb75(0x16d)]?_0x1fa943[_0x41fb75(0x20f)]===_0x38b964[_0x41fb75(0x20f)]?_0x1fa943[_0x41fb75(0x217)]===_0x38b964[_0x41fb75(0x217)]?_0x1fa943[_0x41fb75(0x1d1)]===_0x38b964[_0x41fb75(0x1d1)]?_0x38b964['end']-_0x1fa943[_0x41fb75(0x17e)]:_0x1fa943[_0x41fb75(0x1d1)]-_0x38b964[_0x41fb75(0x1d1)]:_0x1fa943['axis']['localeCompare'](_0x38b964[_0x41fb75(0x217)]):_0x1fa943[_0x41fb75(0x20f)][_0x41fb75(0x209)](_0x38b964[_0x41fb75(0x20f)]):_0x1fa943[_0x41fb75(0x16d)][_0x41fb75(0x209)](_0x38b964[_0x41fb75(0x16d)]);}function se(_0x2c7d55){const _0x21d143=_0x48b523;if(_0x2c7d55['start']>_0x2c7d55[_0x21d143(0x17e)])throw new s('invalid-range',_0x21d143(0x179),_0x2c7d55['id']);}function C(_0x5b9eb0,_0x2d6d5a){const _0x505708=_0x48b523;let _0xcf1933=_0x5b9eb0['start']<=_0x2d6d5a[_0x505708(0x17e)]&&_0x2d6d5a[_0x505708(0x1d1)]<=_0x5b9eb0[_0x505708(0x17e)],_0x340960=_0x5b9eb0[_0x505708(0x1d1)]<=_0x2d6d5a[_0x505708(0x1d1)]&&_0x2d6d5a[_0x505708(0x17e)]<=_0x5b9eb0[_0x505708(0x17e)],_0x1a8827=_0x2d6d5a[_0x505708(0x1d1)]<=_0x5b9eb0['start']&&_0x5b9eb0[_0x505708(0x17e)]<=_0x2d6d5a[_0x505708(0x17e)];return _0xcf1933&&!_0x340960&&!_0x1a8827;}function w(_0x405e47){'@babel/helpers - typeof';const _0x5ac49a=_0x48b523;return w=typeof Symbol=='function'&&typeof Symbol[_0x5ac49a(0x1d3)]==_0x5ac49a(0x22b)?function(_0x570241){return typeof _0x570241;}:function(_0x585c82){const _0x54c90e=_0x5ac49a;return _0x585c82&&typeof Symbol=='function'&&_0x585c82[_0x54c90e(0x23d)]===Symbol&&_0x585c82!==Symbol['prototype']?_0x54c90e(0x22b):typeof _0x585c82;},w(_0x405e47);}function ce(_0x4f24ef,_0x2cb998){const _0x12920a=_0x48b523;if(w(_0x4f24ef)!=_0x12920a(0x1e8)||!_0x4f24ef)return _0x4f24ef;var _0x39cf80=_0x4f24ef[Symbol['toPrimitive']];if(_0x39cf80!==void 0x0){var _0x390921=_0x39cf80[_0x12920a(0x222)](_0x4f24ef,_0x2cb998||'default');if(w(_0x390921)!=_0x12920a(0x1e8))return _0x390921;throw TypeError(_0x12920a(0x18b));}return(_0x2cb998==='string'?String:Number)(_0x4f24ef);}function _0x3157(_0x5dc044,_0x521195){_0x5dc044=_0x5dc044-0x16a;const _0x17e6d2=_0x17e6();let _0x31577b=_0x17e6d2[_0x5dc044];return _0x31577b;}function le(_0x60e0d8){const _0x15a775=_0x48b523;var _0x45ddc1=ce(_0x60e0d8,_0x15a775(0x212));return w(_0x45ddc1)==_0x15a775(0x22b)?_0x45ddc1:_0x45ddc1+'';}function T(_0xc9a6e5,_0x2f36c3,_0x264bd3){const _0x2d968c=_0x48b523;return(_0x2f36c3=le(_0x2f36c3))in _0xc9a6e5?Object[_0x2d968c(0x1f5)](_0xc9a6e5,_0x2f36c3,{'value':_0x264bd3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc9a6e5[_0x2f36c3]=_0x264bd3,_0xc9a6e5;}var E=class extends e['Disposable']{constructor(..._0x2e5404){const _0x373403=_0x48b523;super(..._0x2e5404),T(this,_0x373403(0x17f),new Map()),T(this,_0x373403(0x219),new n[(_0x373403(0x16b))]()),T(this,_0x373403(0x227),this['_change$']['asObservable']());}['getOutlines'](_0x5ce1c2,_0x518c83){const _0x2088dd=_0x48b523;var _0x2c3f3f;return[...((_0x2c3f3f=this[_0x2088dd(0x17f)][_0x2088dd(0x22e)](_0x5ce1c2))==null?void 0x0:_0x2c3f3f[_0x2088dd(0x22e)](_0x518c83))??[]];}[_0x48b523(0x197)](_0x57992d){const _0x4fc6c4=_0x48b523;let _0x71b7e3=this[_0x4fc6c4(0x17f)]['get'](_0x57992d),_0x5278d1=new Map();return _0x71b7e3==null||_0x71b7e3[_0x4fc6c4(0x1b2)]((_0x19f893,_0x4c3b3a)=>{const _0x178374=_0x4fc6c4;_0x5278d1[_0x178374(0x202)](_0x4c3b3a,[..._0x19f893]);}),_0x5278d1;}[_0x48b523(0x1ac)](_0x2ac5be,_0x2e6fb4,_0x4d9d8c){const _0x2af092=_0x48b523;this[_0x2af092(0x1c1)](_0x2ac5be)[_0x2af092(0x202)](_0x2e6fb4,[..._0x4d9d8c]),this['_change$'][_0x2af092(0x1e1)]({'unitId':_0x2ac5be,'subUnitId':_0x2e6fb4});}['removeUnit'](_0x5716e7){const _0xb6dff1=_0x48b523;this[_0xb6dff1(0x17f)][_0xb6dff1(0x18d)](_0x5716e7),this[_0xb6dff1(0x219)][_0xb6dff1(0x1e1)]({'unitId':_0x5716e7});}[_0x48b523(0x1a9)](_0x3141a){const _0x3e097d=_0x48b523;let _0x3b0883=this[_0x3e097d(0x17f)][_0x3e097d(0x22e)](_0x3141a),_0x33bc0b={};return _0x3b0883==null||_0x3b0883['forEach']((_0x1e89bd,_0x3e72b4)=>{_0x33bc0b[_0x3e72b4]={'outlineList':[..._0x1e89bd]};}),_0x33bc0b;}[_0x48b523(0x225)](_0x5da6c9,_0x57144a){const _0x14ebd5=_0x48b523;let _0x36d408=new Map();Object[_0x14ebd5(0x23a)](_0x57144a)[_0x14ebd5(0x1b2)](([_0x4e6c8d,_0x2b972a])=>{const _0x1669de=_0x14ebd5;_0x36d408[_0x1669de(0x202)](_0x4e6c8d,[..._0x2b972a[_0x1669de(0x21c)]??[]]);}),this[_0x14ebd5(0x17f)][_0x14ebd5(0x202)](_0x5da6c9,_0x36d408),this[_0x14ebd5(0x219)]['next']({'unitId':_0x5da6c9});}[_0x48b523(0x171)](){const _0x3e33a4=_0x48b523;super[_0x3e33a4(0x171)](),this[_0x3e33a4(0x17f)][_0x3e33a4(0x236)](),this[_0x3e33a4(0x219)][_0x3e33a4(0x1db)]();}[_0x48b523(0x1c1)](_0x41a37c){const _0x2ca73d=_0x48b523;let _0x113c3e=this['_outlines'][_0x2ca73d(0x22e)](_0x41a37c);return _0x113c3e||(_0x113c3e=new Map(),this[_0x2ca73d(0x17f)][_0x2ca73d(0x202)](_0x41a37c,_0x113c3e)),_0x113c3e;}},D=class extends e[_0x48b523(0x231)]{constructor(..._0x5b7b50){const _0x3fc3c2=_0x48b523;super(..._0x5b7b50),T(this,_0x3fc3c2(0x220),new n[(_0x3fc3c2(0x16b))]()),T(this,_0x3fc3c2(0x1e0),this[_0x3fc3c2(0x220)][_0x3fc3c2(0x17c)]());}[_0x48b523(0x1f4)](_0x4e25a4){const _0x187a3a=_0x48b523;this[_0x187a3a(0x220)][_0x187a3a(0x1e1)](_0x4e25a4);}[_0x48b523(0x171)](){const _0x4f3060=_0x48b523;super[_0x4f3060(0x171)](),this[_0x4f3060(0x220)]['complete']();}};const O={'id':'sheet.mutation.add-dimension-outline','type':e[_0x48b523(0x199)][_0x48b523(0x17d)],'handler':(_0xd317e1,_0x1a3037)=>{const _0xd8095d=_0x48b523;let _0xecfd1=_0xd317e1['get'](E),_0x124a34=_0xecfd1[_0xd8095d(0x200)](_0x1a3037[_0xd8095d(0x16d)],_0x1a3037['subUnitId']);return _0xecfd1[_0xd8095d(0x1ac)](_0x1a3037[_0xd8095d(0x16d)],_0x1a3037['subUnitId'],m(_0x124a34,_0x1a3037[_0xd8095d(0x234)])),!0x0;}},k={'id':'sheet.mutation.remove-dimension-outline','type':e['CommandType'][_0x48b523(0x17d)],'handler':(_0x392801,_0x5cb61f)=>{const _0x24b6d3=_0x48b523;let _0x186be1=_0x392801[_0x24b6d3(0x22e)](E),_0x5a99e8=_0x186be1['getOutlines'](_0x5cb61f[_0x24b6d3(0x16d)],_0x5cb61f['subUnitId']);return _0x186be1[_0x24b6d3(0x1ac)](_0x5cb61f['unitId'],_0x5cb61f[_0x24b6d3(0x20f)],_0x5a99e8['filter'](_0x494163=>_0x494163['id']!==_0x5cb61f['outlineId'])),!0x0;}};function A(_0x1db40d,_0x5a2d16,_0x762ff1){const _0xaa0636=_0x48b523;let _0x3f4c97=de(_0x1db40d);return!_0x3f4c97||_0x3f4c97[_0xaa0636(0x1d5)]({'workbookTypes':[t[_0xaa0636(0x1b8)]],'worksheetTypes':[t[_0xaa0636(0x181)]]},_0x5a2d16,_0x762ff1);}function ue(_0x37f457,_0x274189,_0x1d14b9){const _0x3a5702=_0x48b523;let _0x502b43=fe(_0x37f457);return((_0x502b43==null?void 0x0:_0x502b43[_0x3a5702(0x184)])??(0x0,n['of'])(null))[_0x3a5702(0x20c)]((0x0,r['debounceTime'])(0x64),(0x0,r['startWith'])(null),(0x0,r[_0x3a5702(0x1b9)])(()=>A(_0x37f457,_0x274189,_0x1d14b9)));}function de(_0x211af5){const _0x2b4bce=_0x48b523;if(typeof _0x211af5['has']==_0x2b4bce(0x180)&&!_0x211af5[_0x2b4bce(0x1ae)](t['SheetPermissionCheckController']))return null;try{return _0x211af5[_0x2b4bce(0x22e)](t[_0x2b4bce(0x1a1)]);}catch{return null;}}function fe(_0xeb3da){const _0x4f3424=_0x48b523;if(typeof _0xeb3da[_0x4f3424(0x1ae)]==_0x4f3424(0x180)&&!_0xeb3da[_0x4f3424(0x1ae)](e[_0x4f3424(0x1d2)]))return null;try{return _0xeb3da[_0x4f3424(0x22e)](e[_0x4f3424(0x1d2)]);}catch{return null;}}const j={'id':'sheet.command.add-dimension-outline','type':e[_0x48b523(0x199)][_0x48b523(0x190)],'handler':(_0x2ee479,_0x47df92)=>{const _0x58f98c=_0x48b523;if(!_0x47df92)return!0x1;let _0x35b8ce=(0x0,t[_0x58f98c(0x204)])(_0x2ee479[_0x58f98c(0x22e)](e[_0x58f98c(0x1ff)]),_0x47df92);if(!_0x35b8ce)return!0x1;let {unitId:_0x4dfa8d,subUnitId:_0x38ab2f,worksheet:_0x4b3577}=_0x35b8ce;if(!A(_0x2ee479,_0x4dfa8d,_0x38ab2f))return!0x1;let _0x557565=_0x2ee479[_0x58f98c(0x22e)](E),_0x528f22={'id':'dimension-outline-'+(0x0,e['generateRandomId'])(0x6),'unitId':_0x4dfa8d,'subUnitId':_0x38ab2f,'axis':_0x47df92[_0x58f98c(0x217)],'start':_0x47df92[_0x58f98c(0x1d1)],'end':_0x47df92[_0x58f98c(0x17e)],'collapsed':!0x1},_0xdc4eb6=_0x47df92[_0x58f98c(0x217)]===_0x58f98c(0x21a)?_0x4b3577[_0x58f98c(0x1dc)]():_0x4b3577[_0x58f98c(0x176)](),_0x1670fb=_0x557565['getOutlines'](_0x4dfa8d,_0x38ab2f),_0x4e5be0=ee(_0x1670fb,_0x528f22),_0x31a6db=(_0x4e5be0==null?void 0x0:_0x4e5be0[_0x58f98c(0x19d)])??[],_0x277b80=(_0x4e5be0==null?void 0x0:_0x4e5be0[_0x58f98c(0x1fb)])??_0x528f22,_0xd26c30=p(_0x4e5be0?_0x1670fb[_0x58f98c(0x1c6)](_0x2eb842=>!_0x31a6db[_0x58f98c(0x19b)](_0x390c60=>_0x390c60['id']===_0x2eb842['id'])):_0x1670fb,_0x277b80,{'maxIndex':_0xdc4eb6});if(!_0xd26c30[_0x58f98c(0x175)])return _0x2ee479[_0x58f98c(0x22e)](D)[_0x58f98c(0x1f4)]({'reason':_0xd26c30['reason']??_0x58f98c(0x1cc),'commandId':j['id'],'unitId':_0x4dfa8d,'subUnitId':_0x38ab2f,'axis':_0x47df92[_0x58f98c(0x217)],'outlineId':_0x277b80['id']}),!0x1;let _0xf1fca9=[..._0x31a6db['map'](_0xa3e546=>({'id':k['id'],'params':{'unitId':_0x4dfa8d,'subUnitId':_0x38ab2f,'outlineId':_0xa3e546['id']}})),{'id':O['id'],'params':{'unitId':_0x4dfa8d,'subUnitId':_0x38ab2f,'outline':_0x277b80}}],_0x4f403a=[{'id':k['id'],'params':{'unitId':_0x4dfa8d,'subUnitId':_0x38ab2f,'outlineId':_0x277b80['id']}},..._0x31a6db[_0x58f98c(0x1b9)](_0x2668d1=>({'id':O['id'],'params':{'unitId':_0x4dfa8d,'subUnitId':_0x38ab2f,'outline':_0x2668d1}}))];return(0x0,e[_0x58f98c(0x1ad)])(_0xf1fca9,_0x2ee479[_0x58f98c(0x22e)](e['ICommandService']))[_0x58f98c(0x192)]?(_0x2ee479[_0x58f98c(0x22e)](e[_0x58f98c(0x218)])[_0x58f98c(0x20b)]({'unitID':_0x4dfa8d,'undoMutations':_0x4f403a,'redoMutations':_0xf1fca9}),!0x0):!0x1;}},M={'id':_0x48b523(0x1f2),'type':e['CommandType']['MUTATION'],'handler':(_0x125ec5,_0x3d3606)=>{const _0x653b7e=_0x48b523;let _0x353e3d=_0x125ec5['get'](E),_0x4a93d3=_0x353e3d['getOutlines'](_0x3d3606['unitId'],_0x3d3606['subUnitId']);return _0x353e3d['setOutlines'](_0x3d3606['unitId'],_0x3d3606[_0x653b7e(0x20f)],h(_0x4a93d3,_0x3d3606)),!0x0;}},N={'id':_0x48b523(0x1dd),'type':e[_0x48b523(0x199)][_0x48b523(0x190)],'handler':(_0x904da3,_0x432d71)=>{const _0xbb7d55=_0x48b523;if(!_0x432d71)return!0x1;let _0x3d485=(0x0,t[_0xbb7d55(0x204)])(_0x904da3['get'](e['IUniverInstanceService']),_0x432d71);if(!_0x3d485)return!0x1;let {unitId:_0x3bf396,subUnitId:_0x4e8ec6}=_0x3d485;if(!A(_0x904da3,_0x3bf396,_0x4e8ec6))return!0x1;let _0x50f808={'unitId':_0x3bf396,'subUnitId':_0x4e8ec6,'axis':_0x432d71['axis'],'start':_0x432d71[_0xbb7d55(0x1d1)],'end':_0x432d71[_0xbb7d55(0x17e)]},_0x69908f=_0x904da3[_0xbb7d55(0x22e)](E)[_0xbb7d55(0x200)](_0x3bf396,_0x4e8ec6)[_0xbb7d55(0x1c6)](_0x3b28eb=>d(_0x3b28eb,_0x50f808)&&_0x3b28eb[_0xbb7d55(0x1d1)]>=_0x432d71[_0xbb7d55(0x1d1)]&&_0x3b28eb[_0xbb7d55(0x17e)]<=_0x432d71[_0xbb7d55(0x17e)]);if(_0x69908f['length']===0x0)return _0x904da3[_0xbb7d55(0x22e)](D)['emit']({'reason':_0xbb7d55(0x208),'commandId':N['id'],'unitId':_0x3bf396,'subUnitId':_0x4e8ec6,'axis':_0x432d71['axis']}),!0x1;let _0x7f534f=[{'id':M['id'],'params':{..._0x50f808,'removedOutlineIds':_0x69908f[_0xbb7d55(0x1b9)](_0x4fe95f=>_0x4fe95f['id'])}}],_0x4dfb03=_0x69908f[_0xbb7d55(0x1b9)](_0x24ad0b=>({'id':O['id'],'params':{'unitId':_0x3bf396,'subUnitId':_0x4e8ec6,'outline':_0x24ad0b}}));return(0x0,e[_0xbb7d55(0x1ad)])(_0x7f534f,_0x904da3[_0xbb7d55(0x22e)](e[_0xbb7d55(0x18e)]))[_0xbb7d55(0x192)]?(_0x904da3[_0xbb7d55(0x22e)](e[_0xbb7d55(0x218)])['pushUndoRedo']({'unitID':_0x3bf396,'undoMutations':_0x4dfb03,'redoMutations':_0x7f534f}),!0x0):!0x1;}},P={'id':'sheet.command.remove-dimension-outline','type':e[_0x48b523(0x199)]['COMMAND'],'handler':(_0x5a4f84,_0x209f92)=>{const _0x56586e=_0x48b523;if(!_0x209f92)return!0x1;let _0x186685=(0x0,t['getSheetCommandTarget'])(_0x5a4f84[_0x56586e(0x22e)](e[_0x56586e(0x1ff)]),_0x209f92);if(!_0x186685)return!0x1;let {unitId:_0x3c30fe,subUnitId:_0x490fea}=_0x186685;if(!A(_0x5a4f84,_0x3c30fe,_0x490fea))return!0x1;let _0x12cd25=_0x5a4f84[_0x56586e(0x22e)](E)['getOutlines'](_0x3c30fe,_0x490fea)[_0x56586e(0x182)](_0x17065b=>_0x17065b['id']===_0x209f92[_0x56586e(0x223)]);if(!_0x12cd25)return!0x1;let _0x4353ae=[{'id':k['id'],'params':{'unitId':_0x3c30fe,'subUnitId':_0x490fea,'outlineId':_0x12cd25['id'],'outline':_0x12cd25}}],_0x2f521a=[{'id':O['id'],'params':{'unitId':_0x3c30fe,'subUnitId':_0x490fea,'outline':_0x12cd25}}];return(0x0,e['sequenceExecute'])(_0x4353ae,_0x5a4f84[_0x56586e(0x22e)](e[_0x56586e(0x18e)]))[_0x56586e(0x192)]?(_0x5a4f84[_0x56586e(0x22e)](e['IUndoRedoService'])['pushUndoRedo']({'unitID':_0x3c30fe,'undoMutations':_0x2f521a,'redoMutations':_0x4353ae}),!0x0):!0x1;}},F={'id':_0x48b523(0x22c),'type':e['CommandType']['MUTATION'],'handler':(_0x40f64b,_0x2ebbeb)=>{const _0x2629ae=_0x48b523;let _0x4d151e=_0x40f64b[_0x2629ae(0x22e)](E),_0x6451ef=_0x4d151e['getOutlines'](_0x2ebbeb['unitId'],_0x2ebbeb[_0x2629ae(0x20f)]),_0x2aeda5=_0x6451ef[_0x2629ae(0x182)](_0x3ba54c=>_0x3ba54c['id']===_0x2ebbeb['outlineId']);return _0x2aeda5&&_0x4d151e[_0x2629ae(0x1ac)](_0x2ebbeb['unitId'],_0x2ebbeb[_0x2629ae(0x20f)],_0x6451ef[_0x2629ae(0x1b9)](_0x81e3ff=>_0x81e3ff[_0x2629ae(0x16d)]!==_0x2aeda5[_0x2629ae(0x16d)]||_0x81e3ff[_0x2629ae(0x20f)]!==_0x2aeda5[_0x2629ae(0x20f)]||_0x81e3ff['axis']!==_0x2aeda5['axis']||_0x81e3ff[_0x2629ae(0x1d1)]!==_0x2aeda5[_0x2629ae(0x1d1)]||_0x81e3ff[_0x2629ae(0x17e)]!==_0x2aeda5['end']?_0x81e3ff:{..._0x81e3ff,'collapsed':_0x2ebbeb[_0x2629ae(0x1ef)]})),!0x0;}};function I(_0x44e61c,_0x5ea835,_0x466215,_0xbfc229){const _0x6278c0=_0x48b523;return _0x44e61c===_0x6278c0(0x21a)?{'startRow':_0x5ea835,'endRow':_0x466215,'startColumn':0x0,'endColumn':_0xbfc229[_0x6278c0(0x239)]()-0x1}:{'startRow':0x0,'endRow':_0xbfc229[_0x6278c0(0x1dc)]()-0x1,'startColumn':_0x5ea835,'endColumn':_0x466215};}function pe(_0x2ecf01){const _0x516bec=_0x48b523;return _0x2ecf01===_0x516bec(0x21a)?t[_0x516bec(0x1b0)]['id']:t['SetColHiddenMutation']['id'];}function me(_0x3a3281){const _0x1a2e69=_0x48b523;return _0x3a3281===_0x1a2e69(0x21a)?t[_0x1a2e69(0x18f)]['id']:t[_0x1a2e69(0x198)]['id'];}function L(_0x32781c,_0x2e69ab,_0x3cc8a2,_0xefd582){const _0x429e90=_0x48b523;let _0xafc8bd=_0x2e69ab?[I(_0x32781c[_0x429e90(0x217)],_0x32781c[_0x429e90(0x1d1)],_0x32781c['end'],_0x3cc8a2)]:he(_0x32781c,_0xefd582,_0x3cc8a2),_0x4836d5=_0x2e69ab?pe(_0x32781c['axis']):me(_0x32781c[_0x429e90(0x217)]);return[{'id':F['id'],'params':{'unitId':_0x32781c[_0x429e90(0x16d)],'subUnitId':_0x32781c['subUnitId'],'outlineId':_0x32781c['id'],'outline':_0x32781c,'collapsed':_0x2e69ab}},..._0xafc8bd[_0x429e90(0x1b9)](_0x418b7e=>({'id':_0x4836d5,'params':{'unitId':_0x32781c[_0x429e90(0x16d)],'subUnitId':_0x32781c[_0x429e90(0x20f)],'ranges':[_0x418b7e],'dimensionOutlineId':_0x32781c['id']}}))];}function he(_0x5946c9,_0x2e14a0,_0x1a55a1){const _0x3ff53e=_0x48b523;let _0x2a6614=g(_0x2e14a0[_0x3ff53e(0x1b9)](_0x2173e5=>R(_0x2173e5,_0x5946c9)?{..._0x2173e5,'collapsed':!0x1}:_0x2173e5),_0x5946c9['unitId'],_0x5946c9['subUnitId'],_0x5946c9['axis']);return ge({'start':_0x5946c9[_0x3ff53e(0x1d1)],'end':_0x5946c9[_0x3ff53e(0x17e)]},_0x2a6614)[_0x3ff53e(0x1b9)](_0x1311b6=>I(_0x5946c9[_0x3ff53e(0x217)],_0x1311b6[_0x3ff53e(0x1d1)],_0x1311b6[_0x3ff53e(0x17e)],_0x1a55a1));}function R(_0x16d0c2,_0x2a69d4){const _0x598924=_0x48b523;return _0x16d0c2[_0x598924(0x16d)]===_0x2a69d4[_0x598924(0x16d)]&&_0x16d0c2[_0x598924(0x20f)]===_0x2a69d4[_0x598924(0x20f)]&&_0x16d0c2['axis']===_0x2a69d4[_0x598924(0x217)]&&_0x16d0c2[_0x598924(0x1d1)]===_0x2a69d4[_0x598924(0x1d1)]&&_0x16d0c2['end']===_0x2a69d4[_0x598924(0x17e)];}function ge(_0x4f6ae1,_0x574061){const _0x58f380=_0x48b523;let _0x476644=_0x4f6ae1['start'],_0xd5091d=[];for(let _0x26885f of _0x574061)if(!(_0x26885f['end']<_0x476644||_0x26885f[_0x58f380(0x1d1)]>_0x4f6ae1[_0x58f380(0x17e)])&&(_0x26885f[_0x58f380(0x1d1)]>_0x476644&&_0xd5091d['push']({'start':_0x476644,'end':Math[_0x58f380(0x1aa)](_0x26885f[_0x58f380(0x1d1)]-0x1,_0x4f6ae1['end'])}),_0x476644=Math[_0x58f380(0x21b)](_0x476644,_0x26885f[_0x58f380(0x17e)]+0x1),_0x476644>_0x4f6ae1[_0x58f380(0x17e)]))break;return _0x476644<=_0x4f6ae1[_0x58f380(0x17e)]&&_0xd5091d['push']({'start':_0x476644,'end':_0x4f6ae1[_0x58f380(0x17e)]}),_0xd5091d;}const z={'id':'sheet.command.set-dimension-outline-collapsed','type':e[_0x48b523(0x199)][_0x48b523(0x190)],'handler':(_0xc82c87,_0xe33337)=>{const _0x3bfd5e=_0x48b523;if(!_0xe33337)return!0x1;let _0x4942a5=(0x0,t['getSheetCommandTarget'])(_0xc82c87[_0x3bfd5e(0x22e)](e[_0x3bfd5e(0x1ff)]),_0xe33337);if(!_0x4942a5)return!0x1;let {unitId:_0x5dfb65,subUnitId:_0x226fc9,worksheet:_0x5e9d65}=_0x4942a5;if(!A(_0xc82c87,_0x5dfb65,_0x226fc9))return!0x1;let _0x1a0263=_0xc82c87[_0x3bfd5e(0x22e)](E)[_0x3bfd5e(0x200)](_0x5dfb65,_0x226fc9),_0x7c4c88=_0x1a0263[_0x3bfd5e(0x182)](_0x3a9bb3=>_0x3a9bb3['id']===_0xe33337[_0x3bfd5e(0x223)]);if(!_0x7c4c88||_0x7c4c88[_0x3bfd5e(0x1ef)]===_0xe33337[_0x3bfd5e(0x1ef)])return!0x1;let _0x57abc5=L(_0x7c4c88,_0xe33337[_0x3bfd5e(0x1ef)],_0x5e9d65,_0x1a0263),_0x48c552=L(_0x7c4c88,!_0xe33337[_0x3bfd5e(0x1ef)],_0x5e9d65,_0x1a0263);return(0x0,e[_0x3bfd5e(0x1ad)])(_0x57abc5,_0xc82c87[_0x3bfd5e(0x22e)](e[_0x3bfd5e(0x18e)]))['result']?(_0xc82c87[_0x3bfd5e(0x22e)](e['IUndoRedoService'])[_0x3bfd5e(0x20b)]({'unitID':_0x5dfb65,'undoMutations':_0x48c552,'redoMutations':_0x57abc5}),!0x0):!0x1;}},B={'id':_0x48b523(0x195),'type':e['CommandType'][_0x48b523(0x17d)],'handler':(_0x526bc8,_0x1fd44b)=>{const _0x5c523d=_0x48b523;let _0x17ac34=_0x526bc8[_0x5c523d(0x22e)](E),_0x1e545f=_e(_0x17ac34['getOutlines'](_0x1fd44b[_0x5c523d(0x16d)],_0x1fd44b[_0x5c523d(0x20f)]),_0x1fd44b);return _0x17ac34[_0x5c523d(0x1ac)](_0x1fd44b[_0x5c523d(0x16d)],_0x1fd44b[_0x5c523d(0x20f)],_0x1e545f),!0x0;}};function _e(_0x24e065,_0x57daa1){const _0x463e7c=_0x48b523;switch(_0x57daa1[_0x463e7c(0x1bc)]){case'insert':return _0x57daa1[_0x463e7c(0x229)]?ve(_0x24e065,_0x57daa1):v(_0x24e065,_0x57daa1);case'delete':return y(_0x24e065,_0x57daa1);case _0x463e7c(0x20a):return b(_0x24e065,_0x57daa1);}}function ve(_0x41e526,_0x4c4482){const _0x5d4d7f=_0x48b523;return[..._0x41e526[_0x5d4d7f(0x1c6)](_0x24a17e=>_0x24a17e['unitId']!==_0x4c4482['unitId']||_0x24a17e[_0x5d4d7f(0x20f)]!==_0x4c4482[_0x5d4d7f(0x20f)]||_0x24a17e['axis']!==_0x4c4482[_0x5d4d7f(0x217)]),..._0x4c4482[_0x5d4d7f(0x229)]];}const V='SHEET_OUTLINE_PLUGIN';var ye=_0x48b523(0x1a0),be='1.0.2';const H={};function U(_0x3aaeaa,_0xf75851){return function(_0x33d75a,_0xce2811){_0xf75851(_0x33d75a,_0xce2811,_0x3aaeaa);};}function W(_0x504462,_0x266d16,_0xa56d97,_0x402e77){const _0x240148=_0x48b523;var _0x3e65c5=arguments[_0x240148(0x1ab)],_0x47cdff=_0x3e65c5<0x3?_0x266d16:_0x402e77===null?_0x402e77=Object['getOwnPropertyDescriptor'](_0x266d16,_0xa56d97):_0x402e77,_0x70bb7f;if(typeof Reflect==_0x240148(0x1e8)&&typeof Reflect['decorate']==_0x240148(0x180))_0x47cdff=Reflect['decorate'](_0x504462,_0x266d16,_0xa56d97,_0x402e77);else{for(var _0x50b536=_0x504462[_0x240148(0x1ab)]-0x1;_0x50b536>=0x0;_0x50b536--)(_0x70bb7f=_0x504462[_0x50b536])&&(_0x47cdff=(_0x3e65c5<0x3?_0x70bb7f(_0x47cdff):_0x3e65c5>0x3?_0x70bb7f(_0x266d16,_0xa56d97,_0x47cdff):_0x70bb7f(_0x266d16,_0xa56d97))||_0x47cdff);}return _0x3e65c5>0x3&&_0x47cdff&&Object[_0x240148(0x1f5)](_0x266d16,_0xa56d97,_0x47cdff),_0x47cdff;}const G={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let K=class extends e['Disposable']{constructor(_0x1f1977,_0x138380,_0x3e3984,_0x993907){const _0x2773aa=_0x48b523;super(),this[_0x2773aa(0x1eb)]=_0x1f1977,this['_sheetInterceptorService']=_0x138380,this[_0x2773aa(0x1b5)]=_0x3e3984,this['_sheetsOutlineErrorService']=_0x993907,this[_0x2773aa(0x221)]();}[_0x48b523(0x221)](){const _0x3e2eee=_0x48b523;this[_0x3e2eee(0x178)](this['_sheetInterceptorService'][_0x3e2eee(0x216)]({'getMutations':_0x3e7644=>xe(_0x3e7644,(_0x33effa,_0x4fc269)=>this[_0x3e2eee(0x1b5)][_0x3e2eee(0x200)](_0x33effa,_0x4fc269),this[_0x3e2eee(0x1b7)](_0x3e7644[_0x3e2eee(0x19c)]),_0x2df2da=>this['_sheetsOutlineErrorService'][_0x3e2eee(0x1f4)](_0x2df2da))}));}[_0x48b523(0x1b7)](_0x384603){const _0x34534f=_0x48b523;let _0x1bcecf=_0x384603,_0x43c215=_0x1bcecf!=null&&_0x1bcecf['unitId']?this[_0x34534f(0x1eb)][_0x34534f(0x22f)](_0x1bcecf['unitId'],e[_0x34534f(0x1ed)][_0x34534f(0x1f8)]):this['_univerInstanceService'][_0x34534f(0x20d)](e[_0x34534f(0x1ed)]['UNIVER_SHEET']);if(!_0x43c215)return;let _0x551cbf=_0x1bcecf!=null&&_0x1bcecf[_0x34534f(0x20f)]?_0x43c215['getSheetBySheetId'](_0x1bcecf[_0x34534f(0x20f)]):_0x43c215[_0x34534f(0x1e7)]();if(_0x551cbf)return{'unitId':_0x43c215[_0x34534f(0x21e)](),'subUnitId':_0x551cbf[_0x34534f(0x1ec)]()};}};K=W([U(0x0,e[_0x48b523(0x1ff)]),U(0x1,(0x0,e['Inject'])(t[_0x48b523(0x237)])),U(0x2,(0x0,e[_0x48b523(0x1c0)])(E)),U(0x3,(0x0,e['Inject'])(D))],K);function xe(_0x2f8cdf,_0x803beb,_0x5ee2b9,_0x2f789b){const _0x1fa89b=_0x48b523;let _0x5d68b8=Ce(_0x2f8cdf,_0x5ee2b9);if(!_0x5d68b8)return Z();let _0x14d9a5=_0x803beb(_0x5d68b8[_0x1fa89b(0x16d)],_0x5d68b8[_0x1fa89b(0x20f)]);if(!_0x14d9a5[_0x1fa89b(0x19b)](_0x56673d=>_0x56673d[_0x1fa89b(0x217)]===_0x5d68b8[_0x1fa89b(0x217)]))return Z();Se(_0x14d9a5,_0x5d68b8,_0x2f8cdf['id'],_0x2f789b);let _0x3e0b9a=we(_0x5d68b8,_0x14d9a5);return{'redos':[{'id':B['id'],'params':_0x5d68b8}],'undos':[{'id':B['id'],'params':_0x3e0b9a}],'preRedos':[],'preUndos':[]};}function Se(_0x770c0f,_0x2fa6fc,_0x225be4,_0x4caccf){const _0x4964ba=_0x48b523;try{switch(_0x2fa6fc[_0x4964ba(0x1bc)]){case _0x4964ba(0x233):v(_0x770c0f,_0x2fa6fc);break;case _0x4964ba(0x18d):y(_0x770c0f,_0x2fa6fc);break;case'move':b(_0x770c0f,_0x2fa6fc);}}catch(_0x5ce4c5){throw _0x4caccf==null||_0x4caccf({'reason':c(_0x5ce4c5),'commandId':_0x225be4,'unitId':_0x2fa6fc[_0x4964ba(0x16d)],'subUnitId':_0x2fa6fc['subUnitId'],'axis':_0x2fa6fc['axis'],'outlineId':l(_0x5ce4c5)}),new e[(_0x4964ba(0x1fa))](_0x5ce4c5 instanceof Error?_0x5ce4c5[_0x4964ba(0x210)]:_0x4964ba(0x214));}}function Ce(_0x27818c,_0xcd4005){const _0x54dde3=_0x48b523;switch(_0x27818c['id']){case t[_0x54dde3(0x186)]['id']:return q(_0x27818c[_0x54dde3(0x19c)],_0x54dde3(0x21a),_0xcd4005);case t['InsertColCommand']['id']:return q(_0x27818c[_0x54dde3(0x19c)],_0x54dde3(0x1bf),_0xcd4005);case t[_0x54dde3(0x188)]['id']:return J(_0x27818c[_0x54dde3(0x19c)],_0x54dde3(0x21a),_0xcd4005);case t[_0x54dde3(0x173)]['id']:return J(_0x27818c[_0x54dde3(0x19c)],_0x54dde3(0x1bf),_0xcd4005);case t[_0x54dde3(0x23e)]['id']:return Y(_0x27818c['params'],_0x54dde3(0x21a),_0xcd4005);case t[_0x54dde3(0x17b)]['id']:return Y(_0x27818c[_0x54dde3(0x19c)],'column',_0xcd4005);default:return null;}}function q(_0xa4d09d,_0x3d009c,_0x3688a5){const _0x25f3cb=_0x48b523;let _0x1727f9=X(_0xa4d09d,_0x3688a5);if(!(_0xa4d09d!=null&&_0xa4d09d['range'])||!_0x1727f9)return null;let _0x4a993e=_0x3d009c===_0x25f3cb(0x21a)?_0xa4d09d['range']['startRow']:_0xa4d09d[_0x25f3cb(0x1d8)][_0x25f3cb(0x213)],_0x5f5643=_0x3d009c===_0x25f3cb(0x21a)?_0xa4d09d[_0x25f3cb(0x1d8)][_0x25f3cb(0x1fd)]:_0xa4d09d[_0x25f3cb(0x1d8)][_0x25f3cb(0x228)];return{..._0x1727f9,'axis':_0x3d009c,'type':_0x25f3cb(0x233),'index':_0x4a993e,'count':_0x5f5643-_0x4a993e+0x1};}function J(_0x487e36,_0x2eabe7,_0x1c9bbb){const _0x4633ec=_0x48b523;let _0x1e02a9=X(_0x487e36,_0x1c9bbb);if(!(_0x487e36!=null&&_0x487e36[_0x4633ec(0x1d8)])||!_0x1e02a9)return null;let _0x49285f=_0x2eabe7===_0x4633ec(0x21a)?_0x487e36[_0x4633ec(0x1d8)][_0x4633ec(0x226)]:_0x487e36[_0x4633ec(0x1d8)][_0x4633ec(0x213)],_0x5c6487=_0x2eabe7===_0x4633ec(0x21a)?_0x487e36[_0x4633ec(0x1d8)][_0x4633ec(0x1fd)]:_0x487e36[_0x4633ec(0x1d8)][_0x4633ec(0x228)];return{..._0x1e02a9,'axis':_0x2eabe7,'type':_0x4633ec(0x18d),'start':_0x49285f,'end':_0x5c6487};}function Y(_0x198267,_0x15c1dd,_0x3e9fd0){const _0x542731=_0x48b523;let _0x276201=X(_0x198267,_0x3e9fd0);if(!(_0x198267!=null&&_0x198267[_0x542731(0x1da)])||!_0x198267[_0x542731(0x1df)]||!_0x276201)return null;let _0x5ca367=_0x15c1dd===_0x542731(0x21a)?_0x198267[_0x542731(0x1da)][_0x542731(0x226)]:_0x198267['fromRange'][_0x542731(0x213)],_0x3a6625=_0x15c1dd==='row'?_0x198267[_0x542731(0x1da)]['endRow']:_0x198267[_0x542731(0x1da)][_0x542731(0x228)],_0x4c528c=_0x15c1dd===_0x542731(0x21a)?_0x198267[_0x542731(0x1df)]['startRow']:_0x198267[_0x542731(0x1df)][_0x542731(0x213)];return{..._0x276201,'axis':_0x15c1dd,'type':_0x542731(0x20a),'sourceStart':_0x5ca367,'sourceEnd':_0x3a6625,'destinationIndex':_0x4c528c};}function we(_0x14d878,_0x244993){const _0x38de9f=_0x48b523;switch(_0x14d878[_0x38de9f(0x1bc)]){case _0x38de9f(0x233):return{'unitId':_0x14d878[_0x38de9f(0x16d)],'subUnitId':_0x14d878[_0x38de9f(0x20f)],'axis':_0x14d878['axis'],'type':'delete','start':_0x14d878[_0x38de9f(0x1b4)],'end':_0x14d878['index']+_0x14d878[_0x38de9f(0x1f6)]-0x1};case _0x38de9f(0x18d):return{'unitId':_0x14d878[_0x38de9f(0x16d)],'subUnitId':_0x14d878[_0x38de9f(0x20f)],'axis':_0x14d878[_0x38de9f(0x217)],'type':_0x38de9f(0x233),'index':_0x14d878[_0x38de9f(0x1d1)],'count':_0x14d878[_0x38de9f(0x17e)]-_0x14d878[_0x38de9f(0x1d1)]+0x1,'restoreOutlines':_0x244993['filter'](_0x504f4e=>_0x504f4e[_0x38de9f(0x16d)]===_0x14d878['unitId']&&_0x504f4e['subUnitId']===_0x14d878[_0x38de9f(0x20f)]&&_0x504f4e[_0x38de9f(0x217)]===_0x14d878[_0x38de9f(0x217)])};case _0x38de9f(0x20a):return Te(_0x14d878);}}function Te(_0x3f89e5){const _0x2b6727=_0x48b523;let _0x42dea1=_0x3f89e5['sourceEnd']-_0x3f89e5[_0x2b6727(0x1ce)]+0x1;return _0x3f89e5[_0x2b6727(0x1ba)]>=_0x3f89e5['sourceStart']&&_0x3f89e5[_0x2b6727(0x1ba)]<=_0x3f89e5[_0x2b6727(0x1b1)]+0x1?{..._0x3f89e5}:_0x3f89e5[_0x2b6727(0x1ba)]>_0x3f89e5[_0x2b6727(0x1b1)]+0x1?{..._0x3f89e5,'sourceStart':_0x3f89e5[_0x2b6727(0x1ba)]-_0x42dea1,'sourceEnd':_0x3f89e5[_0x2b6727(0x1ba)]-0x1,'destinationIndex':_0x3f89e5[_0x2b6727(0x1ce)]}:{..._0x3f89e5,'sourceStart':_0x3f89e5[_0x2b6727(0x1ba)],'sourceEnd':_0x3f89e5['destinationIndex']+_0x42dea1-0x1,'destinationIndex':_0x3f89e5['sourceEnd']+0x1};}function X(_0x2f17fc,_0x4c54ab){const _0x565a55=_0x48b523;let _0x51424b=(_0x2f17fc==null?void 0x0:_0x2f17fc[_0x565a55(0x16d)])??(_0x4c54ab==null?void 0x0:_0x4c54ab[_0x565a55(0x16d)]),_0x14daae=(_0x2f17fc==null?void 0x0:_0x2f17fc[_0x565a55(0x20f)])??(_0x4c54ab==null?void 0x0:_0x4c54ab[_0x565a55(0x20f)]);return _0x51424b&&_0x14daae?{'unitId':_0x51424b,'subUnitId':_0x14daae}:null;}function Z(){const _0x3f6b76=_0x48b523;return{'redos':[...G[_0x3f6b76(0x16c)]],'undos':[...G[_0x3f6b76(0x183)]],'preRedos':[...G[_0x3f6b76(0x1e5)]??[]],'preUndos':[...G['preUndos']??[]]};}let Q=class extends e[_0x48b523(0x231)]{constructor(_0xc8fab1,_0x3a3287){const _0xd27704=_0x48b523;super(),this[_0xd27704(0x1fc)]=_0xc8fab1,this['_sheetsOutlineModel']=_0x3a3287,this['_initResource']();}['_initResource'](){const _0x3ba98e=_0x48b523;this[_0x3ba98e(0x178)](this[_0x3ba98e(0x1fc)][_0x3ba98e(0x1f3)]({'pluginName':V,'businesses':[e['UniverInstanceType'][_0x3ba98e(0x1f8)]],'toJson':_0x530243=>JSON[_0x3ba98e(0x1c9)](this[_0x3ba98e(0x1b5)][_0x3ba98e(0x1a9)](_0x530243)),'parseJson':_0xe4d31=>JSON[_0x3ba98e(0x224)](_0xe4d31),'onLoad':(_0x264d52,_0x1f9fed)=>this[_0x3ba98e(0x1b5)][_0x3ba98e(0x225)](_0x264d52,_0x1f9fed),'onUnLoad':_0x130aeb=>this['_sheetsOutlineModel']['removeUnit'](_0x130aeb)}));}};Q=W([U(0x0,e['IResourceManagerService']),U(0x1,(0x0,e[_0x48b523(0x1c0)])(E))],Q);let $=class extends e[_0x48b523(0x1af)]{constructor(_0x1e1929=H,_0x47303a,_0x5c0d89,_0x557d4c){const _0x37ca45=_0x48b523;super(),this[_0x37ca45(0x1b3)]=_0x1e1929,this[_0x37ca45(0x1a8)]=_0x47303a,this[_0x37ca45(0x1d4)]=_0x5c0d89,this['_configService']=_0x557d4c;let {..._0x38fd0e}=(0x0,e[_0x37ca45(0x196)])({},H,this[_0x37ca45(0x1b3)]);this['_configService'][_0x37ca45(0x1e4)](_0x37ca45(0x172),_0x38fd0e);}[_0x48b523(0x203)](){const _0x207561=_0x48b523;this[_0x207561(0x1a8)][_0x207561(0x1cb)]([E]),this[_0x207561(0x1a8)]['add']([D]),this[_0x207561(0x1a8)][_0x207561(0x1cb)]([Q]),this['_injector'][_0x207561(0x1cb)]([K]),this[_0x207561(0x1ea)](),this[_0x207561(0x1a8)][_0x207561(0x22e)](E),this['_injector'][_0x207561(0x22e)](D),this['_injector'][_0x207561(0x22e)](Q),this[_0x207561(0x1a8)]['get'](K);}['_initRegisterCommand'](){const _0x134ac6=_0x48b523;[j,P,z,N][_0x134ac6(0x1b2)](_0x1349c5=>{const _0xb28343=_0x134ac6;this[_0xb28343(0x178)](this['_commandService'][_0xb28343(0x1f0)](_0x1349c5));}),[O,k,F,M,B]['forEach'](_0x476605=>{const _0x36d6e=_0x134ac6;this[_0x36d6e(0x178)](this['_commandService']['registerCommand'](_0x476605));});}};T($,_0x48b523(0x1bb),V),T($,_0x48b523(0x174),ye),T($,'version',be),T($,_0x48b523(0x1bc),e[_0x48b523(0x1ed)][_0x48b523(0x1f8)]),$=W([(0x0,e[_0x48b523(0x17a)])(i[_0x48b523(0x185)],t[_0x48b523(0x194)]),U(0x1,(0x0,e[_0x48b523(0x1c0)])(e[_0x48b523(0x18a)])),U(0x2,e[_0x48b523(0x18e)]),U(0x3,e[_0x48b523(0x1b6)])],$),exports[_0x48b523(0x238)]=j,exports[_0x48b523(0x235)]=O,exports[_0x48b523(0x1a4)]=N,exports[_0x48b523(0x1f1)]=M,exports[_0x48b523(0x201)]=a,exports['DimensionOutlineErrorReason']=o,exports[_0x48b523(0x1e2)]=P,exports[_0x48b523(0x1de)]=k,exports[_0x48b523(0x21f)]=V,exports[_0x48b523(0x1d6)]=z,exports['SetDimensionOutlineCollapsedMutation']=F,exports[_0x48b523(0x1c2)]=D,exports[_0x48b523(0x19f)]=E,exports[_0x48b523(0x170)]=B,Object['defineProperty'](exports,_0x48b523(0x1a2),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x48b523(0x1be)]=f,exports[_0x48b523(0x211)]=p,exports[_0x48b523(0x1cf)]=ue,exports['hasDimensionOutlineViewPermission']=A,exports[_0x48b523(0x19a)]=y,exports[_0x48b523(0x1cd)]=v,exports[_0x48b523(0x1a3)]=b;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x39e1aa=_0xe1b9;(function(_0x25c429,_0x54851c){var _0x950144=_0xe1b9,_0x4b3585=_0x25c429();while(!![]){try{var _0x1a0692=-parseInt(_0x950144(0x192))/0x1*(parseInt(_0x950144(0x181))/0x2)+parseInt(_0x950144(0x17a))/0x3+-parseInt(_0x950144(0x191))/0x4*(parseInt(_0x950144(0x180))/0x5)+parseInt(_0x950144(0x189))/0x6+-parseInt(_0x950144(0x185))/0x7+parseInt(_0x950144(0x18a))/0x8+-parseInt(_0x950144(0x186))/0x9*(-parseInt(_0x950144(0x178))/0xa);if(_0x1a0692===_0x54851c)break;else _0x4b3585['push'](_0x4b3585['shift']());}catch(_0x117dc5){_0x4b3585['push'](_0x4b3585['shift']());}}}(_0x1a96,0x73c78));import{AddDimensionOutlineCommand as _0x14ba49,ClearDimensionOutlinesCommand as _0x467796,DimensionOutlineAxis as _0x1258d0,DimensionOutlineErrorReason as _0x29ab78,RemoveDimensionOutlineCommand as _0xdb1f28,SetDimensionOutlineCollapsedCommand as _0x3e79e2,SheetsOutlineModel as _0x3526e7}from'@univerjs-pro/sheets-outline';import{FEnum as _0x5da7be}from'@univerjs/core/facade';function _0xe1b9(_0x4a694b,_0x55d8bf){_0x4a694b=_0x4a694b-0x178;var _0x1a961f=_0x1a96();var _0xe1b946=_0x1a961f[_0x4a694b];return _0xe1b946;}import{FWorksheet as _0x47c83b}from'@univerjs/sheets/facade';var l=class extends _0x5da7be{get[_0x39e1aa(0x184)](){return _0x1258d0;}get[_0x39e1aa(0x18f)](){return _0x29ab78;}};_0x5da7be[_0x39e1aa(0x17f)](l);var u=class extends _0x47c83b{[_0x39e1aa(0x190)](_0x50e197,_0xe81133){var _0x49c791=_0x39e1aa;return this[_0x49c791(0x183)](_0x1258d0[_0x49c791(0x18d)],_0x50e197,_0xe81133);}['addColumnOutline'](_0x1b94f5,_0x3667e5){var _0x34a4a9=_0x39e1aa;return this['_addDimensionOutline'](_0x1258d0[_0x34a4a9(0x188)],_0x1b94f5,_0x3667e5);}['removeDimensionOutline'](_0x8efba3){var _0x285d04=_0x39e1aa;return this[_0x285d04(0x187)]['syncExecuteCommand'](_0xdb1f28['id'],{'unitId':this[_0x285d04(0x17d)][_0x285d04(0x18e)](),'subUnitId':this[_0x285d04(0x18b)][_0x285d04(0x182)](),'outlineId':_0x8efba3}),this;}['setDimensionOutlineCollapsed'](_0x50e367,_0x4b2e4f){var _0xb1b056=_0x39e1aa;return this['_commandService'][_0xb1b056(0x17b)](_0x3e79e2['id'],{'unitId':this[_0xb1b056(0x17d)][_0xb1b056(0x18e)](),'subUnitId':this[_0xb1b056(0x18b)]['getSheetId'](),'outlineId':_0x50e367,'collapsed':_0x4b2e4f}),this;}[_0x39e1aa(0x17c)](_0x3ecb52,_0x538777,_0x330d6c){var _0x470d8a=_0x39e1aa;return this['_commandService'][_0x470d8a(0x17b)](_0x467796['id'],{'unitId':this[_0x470d8a(0x17d)][_0x470d8a(0x18e)](),'subUnitId':this[_0x470d8a(0x18b)][_0x470d8a(0x182)](),'axis':_0x3ecb52,'start':_0x538777,'end':_0x330d6c}),this;}['getDimensionOutlines'](_0x4ec3a7){var _0x24dc2b=_0x39e1aa;let _0x3cf39d=this['_injector'][_0x24dc2b(0x17e)](_0x3526e7)['getOutlines'](this[_0x24dc2b(0x17d)]['getUnitId'](),this[_0x24dc2b(0x18b)][_0x24dc2b(0x182)]());return _0x4ec3a7?_0x3cf39d[_0x24dc2b(0x179)](_0x5ca77=>_0x5ca77[_0x24dc2b(0x18c)]===_0x4ec3a7):_0x3cf39d;}['_addDimensionOutline'](_0xc4c11c,_0xb895ad,_0x2f5961){var _0x114850=_0x39e1aa;return this[_0x114850(0x187)][_0x114850(0x17b)](_0x14ba49['id'],{'unitId':this[_0x114850(0x17d)][_0x114850(0x18e)](),'subUnitId':this[_0x114850(0x18b)][_0x114850(0x182)](),'axis':_0xc4c11c,'start':_0xb895ad,'end':_0xb895ad+_0x2f5961-0x1}),this;}};_0x47c83b[_0x39e1aa(0x17f)](u);export{};function _0x1a96(){var _0x138778=['addRowOutline','1114700qIuVIi','721642zlgdqY','170tQqGHs','filter','83670MuwoCc','syncExecuteCommand','clearDimensionOutlines','_workbook','get','extend','5BUPCxt','2KZsBZD','getSheetId','_addDimensionOutline','DimensionOutlineAxis','5597403CzhFAs','362709vcmcmd','_commandService','COLUMN','5112546irRhef','5672640saQgXo','_worksheet','axis','ROW','getUnitId','DimensionOutlineErrorReason'];_0x1a96=function(){return _0x138778;};return _0x1a96();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3a3b(_0x4752cf,_0x36561c){_0x4752cf=_0x4752cf-0xb5;const _0x3d421d=_0x3d42();let _0x3a3b38=_0x3d421d[_0x4752cf];return _0x3a3b38;}const _0x43fe3d=_0x3a3b;(function(_0x38672e,_0x5683d5){const _0x33b28f=_0x3a3b,_0x336cde=_0x38672e();while(!![]){try{const _0xf5a685=parseInt(_0x33b28f(0x104))/0x1*(-parseInt(_0x33b28f(0x14e))/0x2)+-parseInt(_0x33b28f(0x12b))/0x3+parseInt(_0x33b28f(0x15d))/0x4+-parseInt(_0x33b28f(0xe8))/0x5+parseInt(_0x33b28f(0xbf))/0x6*(parseInt(_0x33b28f(0xe6))/0x7)+parseInt(_0x33b28f(0xe5))/0x8*(-parseInt(_0x33b28f(0x111))/0x9)+parseInt(_0x33b28f(0xde))/0xa*(parseInt(_0x33b28f(0xdf))/0xb);if(_0xf5a685===_0x5683d5)break;else _0x336cde['push'](_0x336cde['shift']());}catch(_0x36833a){_0x336cde['push'](_0x336cde['shift']());}}}(_0x3d42,0x3bfe4));import{CommandType as _0x5ebc9c,CustomCommandExecutionError as _0x539be5,DependentOn as _0x5c43ca,Disposable as _0xb1c262,ICommandService as _0x1cacbb,IConfigService as _0x473018,IPermissionService as _0x55e23e,IResourceManagerService as _0x3f3d7f,IUndoRedoService as _0x15d8cf,IUniverInstanceService as _0x4d64de,Inject as _0x3d40bd,Injector as _0x217502,Plugin as _0xacd159,UniverInstanceType as _0x4481f0,generateRandomId as _0x31b1a4,merge as _0x36a193,sequenceExecute as _0x490769}from'@univerjs/core';import{InsertColCommand as _0x41349b,InsertRowCommand as _0x54e0ab,MoveColsCommand as _0x1ce04b,MoveRowsCommand as _0x1c660a,RemoveColCommand as _0x41aa47,RemoveRowCommand as _0x2ea397,SetColHiddenMutation as _0x2e1ef4,SetColVisibleMutation as _0xb20ffe,SetRowHiddenMutation as _0x5cbb57,SetRowVisibleMutation as _0x233235,SheetInterceptorService as _0x55c49d,SheetPermissionCheckController as _0x40ba24,UniverSheetsPlugin as _0x57e74f,WorkbookViewPermission as _0x4f9205,WorksheetViewPermission as _0x48e18f,getSheetCommandTarget as _0x1a148e}from'@univerjs/sheets';import{Subject as _0x34a108,of as _0x2723ca}from'rxjs';import{debounceTime as _0x4d308a,map as _0x333349,startWith as _0x2ad35a}from'rxjs/operators';function _0x3d42(){const _0x334731=['children','ROW','@univerjs-pro/sheets-outline','decorate','mergedOutline','index','getUnitOutlines','function','restoreOutlines','sourceEnd','_initRegisterCommand','sheet.command.remove-dimension-outline','unitId','startRow','push','invalid-dimension-outline','COLUMN','sheet.mutation.remove-dimension-outline','maxDepth','some','_ensureUnitOutlines','preRedos','_commandService','preUndos','find','packageName','disposeWithMe','next','call','70kZPrfR','1678897CpfleQ','row','setOutlines','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','getActiveSheet','_resourceManagerService','12048bvVvdQ','468797lOQuWR','map','2336620IBeNiY','dispose','permissionPointUpdate$','removeUnit','Invalid\x20dimension\x20outline\x20mutation','emit','getUnitId','move-splits-outline','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','end','error$','includes','filter','symbol','column','_sheetsOutlineModel','registerCommand','default','stringify','getColumnCount','_sheetInterceptorService','dimension-outline-','parse','toPrimitive','MUTATION','_initResource','_injector','delete','128vgDjkj','getMaxColumns','params','_error$','deserialize','permissionCheckWithoutRange','constructor','pushUndoRedo','pipe','Invalid\x20dimension\x20outline\x20move\x20source\x20range','sheet.command.add-dimension-outline','add','toRange','1251yPRReX','range','asObservable','CROSSING','OUT_OF_BOUNDS','crossing','unknown','type','UNIVER_SHEET','Move\x20would\x20split\x20dimension\x20outline:\x20','fromRange','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','sheet.mutation.set-dimension-outline-collapsed','forEach','_outlines','maxIndex','min','subUnitId','_config','1.0.1','clear-range-not-contain-outline','COMMAND','has','endColumn','complete','sheet.command.set-dimension-outline-collapsed','217194cZmPAC','out-of-bounds','max-depth','serialize','message','getOutlines','_configService','interceptCommand','sheet.mutation.clear-dimension-outlines','change$','_change$','pluginName','version','from','collapsed','axis','insert','valid','_univerInstanceService','reason','clear','sheet.mutation.transform-dimension-outlines','max','split','sourceStart','mergedOutlines','name','count','Invalid\x20outline\x20range','_sheetsOutlineErrorService','getSheetBySheetId','values','string','INVALID_RANGE','sheet.mutation.add-dimension-outline','4762lKtUqS','redos','outlineList','move','object','length','get','result','getRowCount','sheets-outline.config','UNKNOWN','startColumn','getSheetId','outlineId','start','656784qTVpDQ','MAX_DEPTH','prototype','DimensionOutlineError','split\x20dimension\x20outline','set','invalid-range','_getCommandScope','localeCompare','pop','depth','Crossing','_initCommandInterceptor','destinationIndex','6WoSTHr','sort'];_0x3d42=function(){return _0x334731;};return _0x3d42();}import{UniverLicensePlugin as _0x3b8092}from'@univerjs-pro/license';let _e=function(_0x47019a){const _0x4d5c5e=_0x3a3b;return _0x47019a[_0x4d5c5e(0xc2)]=_0x4d5c5e(0xe0),_0x47019a[_0x4d5c5e(0xd1)]=_0x4d5c5e(0xf6),_0x47019a;}({}),ve=function(_0x14accf){const _0x35cdbd=_0x3a3b;return _0x14accf[_0x35cdbd(0x14c)]=_0x35cdbd(0xb7),_0x14accf[_0x35cdbd(0x115)]=_0x35cdbd(0x12c),_0x14accf[_0x35cdbd(0x114)]=_0x35cdbd(0x116),_0x14accf[_0x35cdbd(0x15e)]=_0x35cdbd(0x12d),_0x14accf['MOVE_SPLITS_OUTLINE']=_0x35cdbd(0xef),_0x14accf[_0x35cdbd(0x11c)]=_0x35cdbd(0x125),_0x14accf[_0x35cdbd(0x158)]='unknown',_0x14accf;}({});var S=class extends Error{constructor(_0x1ed3db,_0x1422c3,_0x482c7f){const _0x4a24e2=_0x3a3b;super(_0x1422c3),this[_0x4a24e2(0x13e)]=_0x1ed3db,this[_0x4a24e2(0x15b)]=_0x482c7f,this[_0x4a24e2(0x145)]=_0x4a24e2(0x160);}};function ye(_0x3a464c){const _0x52f75d=_0x3a3b;return _0x3a464c instanceof S?_0x3a464c[_0x52f75d(0x13e)]:_0x3a464c instanceof Error?_0x3a464c[_0x52f75d(0x12f)][_0x52f75d(0xf3)](_0x52f75d(0xb5))?_0x52f75d(0xef):_0x3a464c[_0x52f75d(0x12f)]['includes'](_0x52f75d(0xbb))?_0x52f75d(0x12d):_0x3a464c[_0x52f75d(0x12f)]['includes'](_0x52f75d(0xbc))?_0x52f75d(0x116):_0x3a464c[_0x52f75d(0x12f)][_0x52f75d(0xf3)]('range')?_0x52f75d(0xb7):'unknown':_0x52f75d(0x117);}function be(_0x32737f){const _0x40d126=_0x3a3b;return _0x32737f instanceof S?_0x32737f[_0x40d126(0x15b)]:void 0x0;}const C=0x2**0x35-0x1;function w(_0x4d795b,_0x1c675c){const _0x9bba2f=_0x3a3b;return _0x4d795b[_0x9bba2f(0xcd)]===_0x1c675c['unitId']&&_0x4d795b[_0x9bba2f(0x122)]===_0x1c675c['subUnitId']&&_0x4d795b['axis']===_0x1c675c[_0x9bba2f(0x13a)];}function T(_0x5d0244,_0x2e1d60={}){const _0x305a1e=_0x3a3b;let _0x4d2116=_0x2e1d60[_0x305a1e(0xd3)]??0x8,_0x4bffe6=new Map();for(let _0x291b9b of _0x5d0244){let _0x3ce7f8=_0x291b9b[_0x305a1e(0xcd)]+':'+_0x291b9b[_0x305a1e(0x122)]+':'+_0x291b9b[_0x305a1e(0x13a)],_0x5ccf45=_0x4bffe6[_0x305a1e(0x154)](_0x3ce7f8);_0x5ccf45?_0x5ccf45['push'](_0x291b9b):_0x4bffe6[_0x305a1e(0xb6)](_0x3ce7f8,[_0x291b9b]);}let _0x3a87af=[];for(let _0x321040 of _0x4bffe6[_0x305a1e(0x14a)]()){let _0x2dc4ba=[..._0x321040]['sort'](j),_0x4916dd=[];for(let _0x4a533c of _0x2dc4ba){for(Me(_0x4a533c);_0x4916dd['length']>0x0&&_0x4a533c[_0x305a1e(0x15c)]>_0x4916dd[_0x4916dd[_0x305a1e(0x153)]-0x1][_0x305a1e(0xf1)];)_0x4916dd[_0x305a1e(0xba)]();let _0x5c414e=_0x4916dd[_0x4916dd[_0x305a1e(0x153)]-0x1];if(_0x5c414e&&_0x4a533c['end']>_0x5c414e[_0x305a1e(0xf1)])throw new S(_0x305a1e(0x116),_0x305a1e(0xe2),_0x4a533c['id']);let _0x10aab3=_0x5c414e?_0x5c414e['depth']+0x1:0x1;if(_0x10aab3>_0x4d2116)throw new S(_0x305a1e(0x12d),_0x305a1e(0xf0)+_0x4d2116,_0x4a533c['id']);let _0x234090={..._0x4a533c,'depth':_0x10aab3,'parentId':_0x5c414e==null?void 0x0:_0x5c414e['id'],'anchor':_0x4a533c[_0x305a1e(0xf1)],'children':[]};_0x5c414e?_0x5c414e[_0x305a1e(0xc1)][_0x305a1e(0xcf)](_0x234090):_0x3a87af['push'](_0x234090),_0x4916dd['push'](_0x234090);}}return _0x3a87af;}function E(_0x4c3766,_0xa448f5,_0x2c6c88={}){const _0x4ceb4b=_0x3a3b;if(_0xa448f5[_0x4ceb4b(0x15c)]<0x0||_0xa448f5[_0x4ceb4b(0x15c)]>_0xa448f5[_0x4ceb4b(0xf1)])return{'valid':!0x1,'reason':'invalid-range'};if(_0x2c6c88['maxIndex']!=null&&_0xa448f5['end']>=_0x2c6c88[_0x4ceb4b(0x120)])return{'valid':!0x1,'reason':_0x4ceb4b(0x12c)};let _0x83906e=_0x4c3766[_0x4ceb4b(0xf4)](_0x350618=>w(_0x350618,_0xa448f5));for(let _0x1e9ff1 of _0x83906e)if(Ne(_0x1e9ff1,_0xa448f5))return{'valid':!0x1,'reason':_0x4ceb4b(0x116)};try{T([..._0x4c3766,_0xa448f5],_0x2c6c88);}catch(_0x23ab74){let _0x2a9505=ye(_0x23ab74);return _0x2a9505===_0x4ceb4b(0x12d)?{'valid':!0x1,'reason':_0x4ceb4b(0x12d)}:_0x2a9505===_0x4ceb4b(0xb7)?{'valid':!0x1,'reason':_0x4ceb4b(0xb7)}:{'valid':!0x1,'reason':_0x4ceb4b(0x116)};}return{'valid':!0x0};}function xe(_0x107d3d,_0x3f7c9d,_0x545c61={}){const _0x5c9ce1=_0x3a3b;let _0x280293=E(_0x107d3d,_0x3f7c9d,_0x545c61);if(!_0x280293[_0x5c9ce1(0x13c)])throw Error(_0x280293[_0x5c9ce1(0x13e)]??_0x5c9ce1(0xd0));return[..._0x107d3d,_0x3f7c9d];}function Se(_0x4d4100,_0x212d3a){const _0x23adfc=_0x3a3b;let _0xe3e865=_0x212d3a['start'],_0xf89f01=_0x212d3a[_0x23adfc(0xf1)],_0x4a2712=[],_0x1b6cf8=!0x0;for(;_0x1b6cf8;){_0x1b6cf8=!0x1;for(let _0x13188e of _0x4d4100)!_0x4a2712[_0x23adfc(0xf3)](_0x13188e)&&w(_0x13188e,_0x212d3a)&&Ae(_0x13188e[_0x23adfc(0x15c)],_0x13188e[_0x23adfc(0xf1)],_0xe3e865,_0xf89f01)&&(_0x4a2712[_0x23adfc(0xcf)](_0x13188e),_0xe3e865=Math['min'](_0xe3e865,_0x13188e[_0x23adfc(0x15c)]),_0xf89f01=Math['max'](_0xf89f01,_0x13188e[_0x23adfc(0xf1)]),_0x1b6cf8=!0x0);}if(_0x4a2712['length']===0x0)return null;let [_0x45e094]=[..._0x4a2712][_0x23adfc(0xc0)](j);return{'mergedOutline':{..._0x45e094,'start':_0xe3e865,'end':_0xf89f01},'mergedOutlines':_0x4a2712};}function Ce(_0x43ac61,_0x33eec8){const _0x13a54a=_0x3a3b;return _0x43ac61['filter'](_0x12e4e7=>!w(_0x12e4e7,_0x33eec8)||!(_0x12e4e7[_0x13a54a(0x15c)]>=_0x33eec8[_0x13a54a(0x15c)]&&_0x12e4e7['end']<=_0x33eec8[_0x13a54a(0xf1)]));}function we(_0x39c51a,_0x2b5cf7,_0x3e204d,_0x28fe83){const _0x3d054c=_0x3a3b;return Te(_0x39c51a[_0x3d054c(0xf4)](_0x4935ca=>_0x4935ca[_0x3d054c(0xcd)]===_0x2b5cf7&&_0x4935ca[_0x3d054c(0x122)]===_0x3e204d&&_0x4935ca[_0x3d054c(0x13a)]===_0x28fe83&&_0x4935ca[_0x3d054c(0x139)])[_0x3d054c(0xe7)](_0x539c57=>({'start':_0x539c57[_0x3d054c(0x15c)],'end':_0x539c57[_0x3d054c(0xf1)]})));}function Te(_0xf37ee){const _0x41c98d=_0x3a3b;if(_0xf37ee['length']===0x0)return[];let _0x24fa35=[..._0xf37ee][_0x41c98d(0xc0)]((_0x2ae5f4,_0x2d8009)=>_0x2ae5f4[_0x41c98d(0x15c)]-_0x2d8009[_0x41c98d(0x15c)]||_0x2ae5f4['end']-_0x2d8009[_0x41c98d(0xf1)]),_0x340b24=[];for(let _0x156464 of _0x24fa35){let _0x3b2490=_0x340b24[_0x340b24[_0x41c98d(0x153)]-0x1];!_0x3b2490||_0x156464['start']>_0x3b2490[_0x41c98d(0xf1)]+0x1?_0x340b24[_0x41c98d(0xcf)]({..._0x156464}):_0x3b2490[_0x41c98d(0xf1)]=Math[_0x41c98d(0x141)](_0x3b2490['end'],_0x156464[_0x41c98d(0xf1)]);}return _0x340b24;}function D(_0x45826a,_0xc6ca7c){const _0x3c7917=_0x3a3b;return _0xc6ca7c[_0x3c7917(0x146)]<=0x0?_0x45826a:A(_0x45826a['map'](_0x53850c=>w(_0x53850c,_0xc6ca7c)?_0xc6ca7c['index']<=_0x53850c[_0x3c7917(0x15c)]?{..._0x53850c,'start':_0x53850c[_0x3c7917(0x15c)]+_0xc6ca7c[_0x3c7917(0x146)],'end':_0x53850c[_0x3c7917(0xf1)]+_0xc6ca7c['count']}:_0x53850c['start']<_0xc6ca7c['index']&&_0xc6ca7c[_0x3c7917(0xc6)]<=_0x53850c['end']?{..._0x53850c,'end':_0x53850c[_0x3c7917(0xf1)]+_0xc6ca7c['count']}:_0x53850c:_0x53850c));}function O(_0xecface,_0x3219ff){const _0x40ef17=_0x3a3b;if(_0x3219ff[_0x40ef17(0x15c)]>_0x3219ff[_0x40ef17(0xf1)])return _0xecface;let _0x17bd94=_0x3219ff['end']-_0x3219ff[_0x40ef17(0x15c)]+0x1,_0x26b719=[];for(let _0x110d53 of _0xecface){if(!w(_0x110d53,_0x3219ff)){_0x26b719[_0x40ef17(0xcf)](_0x110d53);continue;}if(_0x110d53[_0x40ef17(0xf1)]<_0x3219ff['start']){_0x26b719[_0x40ef17(0xcf)](_0x110d53);continue;}if(_0x110d53['start']>_0x3219ff[_0x40ef17(0xf1)]){_0x26b719[_0x40ef17(0xcf)]({..._0x110d53,'start':_0x110d53[_0x40ef17(0x15c)]-_0x17bd94,'end':_0x110d53['end']-_0x17bd94});continue;}let _0x4f7213=Math[_0x40ef17(0x141)](_0x110d53[_0x40ef17(0x15c)],_0x3219ff['start']),_0x3a5e27=Math[_0x40ef17(0x121)](_0x110d53[_0x40ef17(0xf1)],_0x3219ff[_0x40ef17(0xf1)]),_0x17b399=Math['max'](0x0,_0x3a5e27-_0x4f7213+0x1),_0x1f8d55=_0x110d53[_0x40ef17(0xf1)]-_0x110d53[_0x40ef17(0x15c)]+0x1-_0x17b399;if(_0x1f8d55<=0x0)continue;let _0x46b809=_0x110d53['start']<_0x3219ff[_0x40ef17(0x15c)]?_0x110d53[_0x40ef17(0x15c)]:_0x3219ff[_0x40ef17(0x15c)];_0x26b719[_0x40ef17(0xcf)]({..._0x110d53,'start':_0x46b809,'end':_0x46b809+_0x1f8d55-0x1});}return A(_0x26b719);}function k(_0x2dc7db,_0xd20cab){const _0x276ef6=_0x3a3b;if(_0xd20cab[_0x276ef6(0x143)]>_0xd20cab[_0x276ef6(0xca)])return _0x2dc7db;let _0x3c4d17=[];for(let _0x1d50c2 of _0x2dc7db){if(!w(_0x1d50c2,_0xd20cab)){_0x3c4d17[_0x276ef6(0xcf)](_0x1d50c2);continue;}let _0x28179a=Ee(_0x1d50c2,_0xd20cab);if(_0x28179a['type']===_0x276ef6(0x142))throw new S('move-splits-outline',_0x276ef6(0x11a)+_0x1d50c2['id'],_0x1d50c2['id']);_0x3c4d17['push'](_0x28179a['outline']);}return A(_0x3c4d17);}function Ee(_0x28b91e,_0x548c12){const _0x1809e9=_0x3a3b;let _0x24a75f=De(_0x548c12['sourceStart'],_0x548c12[_0x1809e9(0xca)]+0x1,_0x548c12['destinationIndex']),_0x321437=[],_0x3a4266={'start':_0x28b91e[_0x1809e9(0x15c)],'end':_0x28b91e[_0x1809e9(0xf1)]+0x1};for(let _0xf69c66 of _0x24a75f){let _0x2ac3c8=Oe(_0x3a4266,_0xf69c66[_0x1809e9(0x112)]);_0x2ac3c8&&_0x321437[_0x1809e9(0xcf)]({'start':_0x2ac3c8[_0x1809e9(0x15c)]+_0xf69c66['offset'],'end':_0x2ac3c8[_0x1809e9(0xf1)]+_0xf69c66['offset']});}let _0x2d9c08=ke(_0x321437);return _0x2d9c08[_0x1809e9(0x153)]===0x1?{'type':'ok','outline':{..._0x28b91e,'start':_0x2d9c08[0x0]['start'],'end':_0x2d9c08[0x0][_0x1809e9(0xf1)]-0x1}}:{'type':'split','outline':_0x28b91e,'ranges':_0x2d9c08};}function De(_0x5baaae,_0x392a16,_0xca03a3){const _0x116cd2=_0x3a3b;let _0xc167fb=_0x392a16-_0x5baaae;if(_0xc167fb<=0x0)throw Error(_0x116cd2(0x10d));return _0xca03a3>=_0x5baaae&&_0xca03a3<=_0x392a16?[{'range':{'start':0x0,'end':C},'offset':0x0}]:_0xca03a3<_0x5baaae?[{'range':{'start':0x0,'end':_0xca03a3},'offset':0x0},{'range':{'start':_0xca03a3,'end':_0x5baaae},'offset':_0xc167fb},{'range':{'start':_0x5baaae,'end':_0x392a16},'offset':_0xca03a3-_0x5baaae},{'range':{'start':_0x392a16,'end':C},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x5baaae},'offset':0x0},{'range':{'start':_0x5baaae,'end':_0x392a16},'offset':_0xca03a3-_0x392a16},{'range':{'start':_0x392a16,'end':_0xca03a3},'offset':-_0xc167fb},{'range':{'start':_0xca03a3,'end':C},'offset':0x0}];}function Oe(_0x4fa1b2,_0x2498b0){const _0x8f5db0=_0x3a3b;let _0xe2e390=Math[_0x8f5db0(0x141)](_0x4fa1b2[_0x8f5db0(0x15c)],_0x2498b0[_0x8f5db0(0x15c)]),_0x52c00b=Math[_0x8f5db0(0x121)](_0x4fa1b2['end'],_0x2498b0[_0x8f5db0(0xf1)]);return _0xe2e390>=_0x52c00b?null:{'start':_0xe2e390,'end':_0x52c00b};}function ke(_0x2ab61e){const _0x2e71d0=_0x3a3b;if(_0x2ab61e[_0x2e71d0(0x153)]===0x0)return[];let _0x17841c=[..._0x2ab61e][_0x2e71d0(0xc0)]((_0x59de9b,_0x1e6524)=>_0x59de9b[_0x2e71d0(0x15c)]-_0x1e6524[_0x2e71d0(0x15c)]||_0x59de9b[_0x2e71d0(0xf1)]-_0x1e6524[_0x2e71d0(0xf1)]),_0x35451b=[];for(let _0x61f906 of _0x17841c){let _0x547bc9=_0x35451b[_0x35451b[_0x2e71d0(0x153)]-0x1];!_0x547bc9||_0x61f906[_0x2e71d0(0x15c)]>_0x547bc9[_0x2e71d0(0xf1)]?_0x35451b['push']({..._0x61f906}):_0x547bc9['end']=Math['max'](_0x547bc9[_0x2e71d0(0xf1)],_0x61f906[_0x2e71d0(0xf1)]);}return _0x35451b;}function Ae(_0x127b01,_0x3ea50e,_0xd82b86,_0x49dfa6){return _0x3ea50e+0x1===_0xd82b86||_0x49dfa6+0x1===_0x127b01;}function A(_0x373c0f){let _0xebf50b=je(_0x373c0f);return T(_0xebf50b),_0xebf50b;}function je(_0x31a935){const _0x464be7=_0x3a3b;let _0xa5cf1b=new Map();for(let _0x491762 of _0x31a935){let _0x2c0c51=[_0x491762[_0x464be7(0xcd)],_0x491762[_0x464be7(0x122)],_0x491762[_0x464be7(0x13a)],_0x491762[_0x464be7(0x15c)],_0x491762[_0x464be7(0xf1)]]['join'](':'),_0x3b9b4b=_0xa5cf1b[_0x464be7(0x154)](_0x2c0c51);if(!_0x3b9b4b){_0xa5cf1b[_0x464be7(0xb6)](_0x2c0c51,_0x491762);continue;}_0xa5cf1b[_0x464be7(0xb6)](_0x2c0c51,{..._0x3b9b4b,'collapsed':_0x3b9b4b[_0x464be7(0x139)]||_0x491762[_0x464be7(0x139)]});}return Array[_0x464be7(0x138)](_0xa5cf1b[_0x464be7(0x14a)]());}function j(_0xf13602,_0xbd296a){const _0x2dd550=_0x3a3b;return _0xf13602[_0x2dd550(0xcd)]===_0xbd296a[_0x2dd550(0xcd)]?_0xf13602[_0x2dd550(0x122)]===_0xbd296a['subUnitId']?_0xf13602[_0x2dd550(0x13a)]===_0xbd296a[_0x2dd550(0x13a)]?_0xf13602[_0x2dd550(0x15c)]===_0xbd296a[_0x2dd550(0x15c)]?_0xbd296a[_0x2dd550(0xf1)]-_0xf13602[_0x2dd550(0xf1)]:_0xf13602[_0x2dd550(0x15c)]-_0xbd296a[_0x2dd550(0x15c)]:_0xf13602[_0x2dd550(0x13a)]['localeCompare'](_0xbd296a[_0x2dd550(0x13a)]):_0xf13602[_0x2dd550(0x122)]['localeCompare'](_0xbd296a['subUnitId']):_0xf13602['unitId'][_0x2dd550(0xb9)](_0xbd296a[_0x2dd550(0xcd)]);}function Me(_0x4f958e){const _0x16ab05=_0x3a3b;if(_0x4f958e[_0x16ab05(0x15c)]>_0x4f958e[_0x16ab05(0xf1)])throw new S('invalid-range',_0x16ab05(0x147),_0x4f958e['id']);}function Ne(_0x11fe64,_0x339efe){const _0x48bd79=_0x3a3b;let _0x13b85f=_0x11fe64[_0x48bd79(0x15c)]<=_0x339efe[_0x48bd79(0xf1)]&&_0x339efe[_0x48bd79(0x15c)]<=_0x11fe64[_0x48bd79(0xf1)],_0x4a6c84=_0x11fe64[_0x48bd79(0x15c)]<=_0x339efe['start']&&_0x339efe['end']<=_0x11fe64[_0x48bd79(0xf1)],_0x4230df=_0x339efe[_0x48bd79(0x15c)]<=_0x11fe64['start']&&_0x11fe64[_0x48bd79(0xf1)]<=_0x339efe[_0x48bd79(0xf1)];return _0x13b85f&&!_0x4a6c84&&!_0x4230df;}function M(_0x1edba0){'@babel/helpers - typeof';const _0x416641=_0x3a3b;return M=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x416641(0xf5)?function(_0x4c22e4){return typeof _0x4c22e4;}:function(_0x53d536){const _0x291df2=_0x416641;return _0x53d536&&typeof Symbol==_0x291df2(0xc8)&&_0x53d536[_0x291df2(0x10a)]===Symbol&&_0x53d536!==Symbol[_0x291df2(0x15f)]?_0x291df2(0xf5):typeof _0x53d536;},M(_0x1edba0);}function Pe(_0x2a8c7d,_0x32341f){const _0x4a69ec=_0x3a3b;if(M(_0x2a8c7d)!=_0x4a69ec(0x152)||!_0x2a8c7d)return _0x2a8c7d;var _0x4559fd=_0x2a8c7d[Symbol[_0x4a69ec(0xff)]];if(_0x4559fd!==void 0x0){var _0x3964e1=_0x4559fd[_0x4a69ec(0xdd)](_0x2a8c7d,_0x32341f||_0x4a69ec(0xf9));if(M(_0x3964e1)!=_0x4a69ec(0x152))return _0x3964e1;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x32341f===_0x4a69ec(0x14b)?String:Number)(_0x2a8c7d);}function Fe(_0x501497){const _0x34bbd8=_0x3a3b;var _0x310689=Pe(_0x501497,_0x34bbd8(0x14b));return M(_0x310689)==_0x34bbd8(0xf5)?_0x310689:_0x310689+'';}function N(_0x22f62e,_0x36252d,_0x41c51c){return(_0x36252d=Fe(_0x36252d))in _0x22f62e?Object['defineProperty'](_0x22f62e,_0x36252d,{'value':_0x41c51c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x22f62e[_0x36252d]=_0x41c51c,_0x22f62e;}var P=class extends _0xb1c262{constructor(..._0x30d2ea){const _0x509efc=_0x3a3b;super(..._0x30d2ea),N(this,'_outlines',new Map()),N(this,_0x509efc(0x135),new _0x34a108()),N(this,_0x509efc(0x134),this['_change$'][_0x509efc(0x113)]());}[_0x43fe3d(0x130)](_0x1f4123,_0x36d699){const _0x148f37=_0x43fe3d;var _0x564b74;return[...((_0x564b74=this[_0x148f37(0x11f)]['get'](_0x1f4123))==null?void 0x0:_0x564b74[_0x148f37(0x154)](_0x36d699))??[]];}[_0x43fe3d(0xc7)](_0x5805ce){const _0x24f2ca=_0x43fe3d;let _0x39ebcb=this['_outlines'][_0x24f2ca(0x154)](_0x5805ce),_0x33d78c=new Map();return _0x39ebcb==null||_0x39ebcb['forEach']((_0x502b9a,_0x42a79e)=>{const _0x2e74fb=_0x24f2ca;_0x33d78c[_0x2e74fb(0xb6)](_0x42a79e,[..._0x502b9a]);}),_0x33d78c;}[_0x43fe3d(0xe1)](_0x3356c5,_0x55e0ac,_0x388020){const _0x4bdf69=_0x43fe3d;this[_0x4bdf69(0xd5)](_0x3356c5)['set'](_0x55e0ac,[..._0x388020]),this['_change$'][_0x4bdf69(0xdc)]({'unitId':_0x3356c5,'subUnitId':_0x55e0ac});}['removeUnit'](_0x59f860){const _0x184125=_0x43fe3d;this[_0x184125(0x11f)][_0x184125(0x103)](_0x59f860),this['_change$'][_0x184125(0xdc)]({'unitId':_0x59f860});}['serialize'](_0x85d9f5){const _0x5bdf35=_0x43fe3d;let _0xe8bec0=this[_0x5bdf35(0x11f)][_0x5bdf35(0x154)](_0x85d9f5),_0x125b5f={};return _0xe8bec0==null||_0xe8bec0['forEach']((_0x42a9cd,_0x3cac87)=>{_0x125b5f[_0x3cac87]={'outlineList':[..._0x42a9cd]};}),_0x125b5f;}[_0x43fe3d(0x108)](_0x198768,_0x5261c6){const _0x47442f=_0x43fe3d;let _0x1a5376=new Map();Object['entries'](_0x5261c6)[_0x47442f(0x11e)](([_0x451e81,_0x55e918])=>{const _0x4dbde3=_0x47442f;_0x1a5376[_0x4dbde3(0xb6)](_0x451e81,[..._0x55e918[_0x4dbde3(0x150)]??[]]);}),this[_0x47442f(0x11f)][_0x47442f(0xb6)](_0x198768,_0x1a5376),this[_0x47442f(0x135)][_0x47442f(0xdc)]({'unitId':_0x198768});}[_0x43fe3d(0xe9)](){const _0x5f4ad6=_0x43fe3d;super[_0x5f4ad6(0xe9)](),this[_0x5f4ad6(0x11f)][_0x5f4ad6(0x13f)](),this[_0x5f4ad6(0x135)][_0x5f4ad6(0x129)]();}[_0x43fe3d(0xd5)](_0x6fb93b){const _0x36c5ad=_0x43fe3d;let _0x24fba4=this['_outlines'][_0x36c5ad(0x154)](_0x6fb93b);return _0x24fba4||(_0x24fba4=new Map(),this[_0x36c5ad(0x11f)][_0x36c5ad(0xb6)](_0x6fb93b,_0x24fba4)),_0x24fba4;}},F=class extends _0xb1c262{constructor(..._0x4ac2c1){const _0x2dc35a=_0x43fe3d;super(..._0x4ac2c1),N(this,_0x2dc35a(0x107),new _0x34a108()),N(this,_0x2dc35a(0xf2),this['_error$'][_0x2dc35a(0x113)]());}['emit'](_0xcf10c8){const _0x5ce92c=_0x43fe3d;this['_error$'][_0x5ce92c(0xdc)](_0xcf10c8);}[_0x43fe3d(0xe9)](){const _0x1f4cfa=_0x43fe3d;super['dispose'](),this[_0x1f4cfa(0x107)]['complete']();}};const I={'id':_0x43fe3d(0x14d),'type':_0x5ebc9c['MUTATION'],'handler':(_0x5499c2,_0x1f3af8)=>{const _0x292088=_0x43fe3d;let _0x481b16=_0x5499c2[_0x292088(0x154)](P),_0x26a35f=_0x481b16[_0x292088(0x130)](_0x1f3af8[_0x292088(0xcd)],_0x1f3af8[_0x292088(0x122)]);return _0x481b16[_0x292088(0xe1)](_0x1f3af8[_0x292088(0xcd)],_0x1f3af8['subUnitId'],xe(_0x26a35f,_0x1f3af8['outline'])),!0x0;}},L={'id':_0x43fe3d(0xd2),'type':_0x5ebc9c[_0x43fe3d(0x100)],'handler':(_0x44262c,_0x2d9958)=>{const _0x24ea76=_0x43fe3d;let _0x59d55f=_0x44262c['get'](P),_0x2e6443=_0x59d55f[_0x24ea76(0x130)](_0x2d9958['unitId'],_0x2d9958[_0x24ea76(0x122)]);return _0x59d55f[_0x24ea76(0xe1)](_0x2d9958[_0x24ea76(0xcd)],_0x2d9958[_0x24ea76(0x122)],_0x2e6443['filter'](_0x5762b3=>_0x5762b3['id']!==_0x2d9958[_0x24ea76(0x15b)])),!0x0;}};function R(_0x584e0c,_0x29d501,_0x554641){const _0x4b2c94=_0x43fe3d;let _0x3d7dd7=Le(_0x584e0c);return!_0x3d7dd7||_0x3d7dd7[_0x4b2c94(0x109)]({'workbookTypes':[_0x4f9205],'worksheetTypes':[_0x48e18f]},_0x29d501,_0x554641);}function Ie(_0x330d87,_0x1fb5db,_0x4f9703){const _0x423c5c=_0x43fe3d;let _0x380d97=Re(_0x330d87);return((_0x380d97==null?void 0x0:_0x380d97[_0x423c5c(0xea)])??_0x2723ca(null))[_0x423c5c(0x10c)](_0x4d308a(0x64),_0x2ad35a(null),_0x333349(()=>R(_0x330d87,_0x1fb5db,_0x4f9703)));}function Le(_0x2aec25){const _0x5b0e8d=_0x43fe3d;if(typeof _0x2aec25['has']==_0x5b0e8d(0xc8)&&!_0x2aec25[_0x5b0e8d(0x127)](_0x40ba24))return null;try{return _0x2aec25[_0x5b0e8d(0x154)](_0x40ba24);}catch{return null;}}function Re(_0x12badb){const _0x390a62=_0x43fe3d;if(typeof _0x12badb[_0x390a62(0x127)]==_0x390a62(0xc8)&&!_0x12badb['has'](_0x55e23e))return null;try{return _0x12badb[_0x390a62(0x154)](_0x55e23e);}catch{return null;}}const z={'id':_0x43fe3d(0x10e),'type':_0x5ebc9c[_0x43fe3d(0x126)],'handler':(_0x49ef07,_0x4b5d47)=>{const _0x32f5ff=_0x43fe3d;if(!_0x4b5d47)return!0x1;let _0x38c469=_0x1a148e(_0x49ef07['get'](_0x4d64de),_0x4b5d47);if(!_0x38c469)return!0x1;let {unitId:_0x15d3aa,subUnitId:_0x122393,worksheet:_0x39ef57}=_0x38c469;if(!R(_0x49ef07,_0x15d3aa,_0x122393))return!0x1;let _0x1ffc98=_0x49ef07[_0x32f5ff(0x154)](P),_0x436e52={'id':_0x32f5ff(0xfd)+_0x31b1a4(0x6),'unitId':_0x15d3aa,'subUnitId':_0x122393,'axis':_0x4b5d47[_0x32f5ff(0x13a)],'start':_0x4b5d47[_0x32f5ff(0x15c)],'end':_0x4b5d47['end'],'collapsed':!0x1},_0x5d4931=_0x4b5d47[_0x32f5ff(0x13a)]===_0x32f5ff(0xe0)?_0x39ef57[_0x32f5ff(0x156)]():_0x39ef57[_0x32f5ff(0xfb)](),_0x37073e=_0x1ffc98[_0x32f5ff(0x130)](_0x15d3aa,_0x122393),_0x44d160=Se(_0x37073e,_0x436e52),_0x2c2ebb=(_0x44d160==null?void 0x0:_0x44d160[_0x32f5ff(0x144)])??[],_0x1d65c3=(_0x44d160==null?void 0x0:_0x44d160[_0x32f5ff(0xc5)])??_0x436e52,_0x4a0c73=E(_0x44d160?_0x37073e['filter'](_0x4ca5ee=>!_0x2c2ebb[_0x32f5ff(0xd4)](_0x5a2168=>_0x5a2168['id']===_0x4ca5ee['id'])):_0x37073e,_0x1d65c3,{'maxIndex':_0x5d4931});if(!_0x4a0c73[_0x32f5ff(0x13c)])return _0x49ef07[_0x32f5ff(0x154)](F)['emit']({'reason':_0x4a0c73[_0x32f5ff(0x13e)]??_0x32f5ff(0x117),'commandId':z['id'],'unitId':_0x15d3aa,'subUnitId':_0x122393,'axis':_0x4b5d47[_0x32f5ff(0x13a)],'outlineId':_0x1d65c3['id']}),!0x1;let _0x4e1f16=[..._0x2c2ebb[_0x32f5ff(0xe7)](_0x19fcb2=>({'id':L['id'],'params':{'unitId':_0x15d3aa,'subUnitId':_0x122393,'outlineId':_0x19fcb2['id']}})),{'id':I['id'],'params':{'unitId':_0x15d3aa,'subUnitId':_0x122393,'outline':_0x1d65c3}}],_0x5533e4=[{'id':L['id'],'params':{'unitId':_0x15d3aa,'subUnitId':_0x122393,'outlineId':_0x1d65c3['id']}},..._0x2c2ebb[_0x32f5ff(0xe7)](_0x44e520=>({'id':I['id'],'params':{'unitId':_0x15d3aa,'subUnitId':_0x122393,'outline':_0x44e520}}))];return _0x490769(_0x4e1f16,_0x49ef07[_0x32f5ff(0x154)](_0x1cacbb))['result']?(_0x49ef07['get'](_0x15d8cf)['pushUndoRedo']({'unitID':_0x15d3aa,'undoMutations':_0x5533e4,'redoMutations':_0x4e1f16}),!0x0):!0x1;}},B={'id':_0x43fe3d(0x133),'type':_0x5ebc9c['MUTATION'],'handler':(_0x16c6d4,_0x195500)=>{const _0x89a93c=_0x43fe3d;let _0x212c12=_0x16c6d4[_0x89a93c(0x154)](P),_0x55cf0d=_0x212c12['getOutlines'](_0x195500[_0x89a93c(0xcd)],_0x195500['subUnitId']);return _0x212c12[_0x89a93c(0xe1)](_0x195500[_0x89a93c(0xcd)],_0x195500[_0x89a93c(0x122)],Ce(_0x55cf0d,_0x195500)),!0x0;}},V={'id':'sheet.command.clear-dimension-outlines','type':_0x5ebc9c[_0x43fe3d(0x126)],'handler':(_0x2218e2,_0x242bce)=>{const _0x3917f9=_0x43fe3d;if(!_0x242bce)return!0x1;let _0x4d0d96=_0x1a148e(_0x2218e2[_0x3917f9(0x154)](_0x4d64de),_0x242bce);if(!_0x4d0d96)return!0x1;let {unitId:_0x230154,subUnitId:_0x353d87}=_0x4d0d96;if(!R(_0x2218e2,_0x230154,_0x353d87))return!0x1;let _0x526cb3={'unitId':_0x230154,'subUnitId':_0x353d87,'axis':_0x242bce[_0x3917f9(0x13a)],'start':_0x242bce[_0x3917f9(0x15c)],'end':_0x242bce['end']},_0x4d8ea7=_0x2218e2['get'](P)[_0x3917f9(0x130)](_0x230154,_0x353d87)[_0x3917f9(0xf4)](_0x363454=>w(_0x363454,_0x526cb3)&&_0x363454['start']>=_0x242bce[_0x3917f9(0x15c)]&&_0x363454[_0x3917f9(0xf1)]<=_0x242bce[_0x3917f9(0xf1)]);if(_0x4d8ea7['length']===0x0)return _0x2218e2[_0x3917f9(0x154)](F)[_0x3917f9(0xed)]({'reason':_0x3917f9(0x125),'commandId':V['id'],'unitId':_0x230154,'subUnitId':_0x353d87,'axis':_0x242bce[_0x3917f9(0x13a)]}),!0x1;let _0x246059=[{'id':B['id'],'params':{..._0x526cb3,'removedOutlineIds':_0x4d8ea7['map'](_0x128209=>_0x128209['id'])}}],_0x2755d8=_0x4d8ea7[_0x3917f9(0xe7)](_0x2ccb71=>({'id':I['id'],'params':{'unitId':_0x230154,'subUnitId':_0x353d87,'outline':_0x2ccb71}}));return _0x490769(_0x246059,_0x2218e2[_0x3917f9(0x154)](_0x1cacbb))[_0x3917f9(0x155)]?(_0x2218e2[_0x3917f9(0x154)](_0x15d8cf)[_0x3917f9(0x10b)]({'unitID':_0x230154,'undoMutations':_0x2755d8,'redoMutations':_0x246059}),!0x0):!0x1;}},ze={'id':_0x43fe3d(0xcc),'type':_0x5ebc9c['COMMAND'],'handler':(_0x3e3f32,_0x473d0e)=>{const _0x582496=_0x43fe3d;if(!_0x473d0e)return!0x1;let _0xf352ac=_0x1a148e(_0x3e3f32['get'](_0x4d64de),_0x473d0e);if(!_0xf352ac)return!0x1;let {unitId:_0x40a9ae,subUnitId:_0x53c43e}=_0xf352ac;if(!R(_0x3e3f32,_0x40a9ae,_0x53c43e))return!0x1;let _0x1aa529=_0x3e3f32[_0x582496(0x154)](P)[_0x582496(0x130)](_0x40a9ae,_0x53c43e)[_0x582496(0xd9)](_0xa71fa4=>_0xa71fa4['id']===_0x473d0e[_0x582496(0x15b)]);if(!_0x1aa529)return!0x1;let _0x35f9a1=[{'id':L['id'],'params':{'unitId':_0x40a9ae,'subUnitId':_0x53c43e,'outlineId':_0x1aa529['id'],'outline':_0x1aa529}}],_0x330fdc=[{'id':I['id'],'params':{'unitId':_0x40a9ae,'subUnitId':_0x53c43e,'outline':_0x1aa529}}];return _0x490769(_0x35f9a1,_0x3e3f32[_0x582496(0x154)](_0x1cacbb))[_0x582496(0x155)]?(_0x3e3f32['get'](_0x15d8cf)[_0x582496(0x10b)]({'unitID':_0x40a9ae,'undoMutations':_0x330fdc,'redoMutations':_0x35f9a1}),!0x0):!0x1;}},H={'id':_0x43fe3d(0x11d),'type':_0x5ebc9c['MUTATION'],'handler':(_0x2f7604,_0x1114ee)=>{const _0x90a759=_0x43fe3d;let _0x494ee2=_0x2f7604[_0x90a759(0x154)](P),_0x508fb2=_0x494ee2[_0x90a759(0x130)](_0x1114ee[_0x90a759(0xcd)],_0x1114ee[_0x90a759(0x122)]),_0x22d343=_0x508fb2[_0x90a759(0xd9)](_0x5eae08=>_0x5eae08['id']===_0x1114ee[_0x90a759(0x15b)]);return _0x22d343&&_0x494ee2[_0x90a759(0xe1)](_0x1114ee[_0x90a759(0xcd)],_0x1114ee['subUnitId'],_0x508fb2['map'](_0x1d460c=>_0x1d460c[_0x90a759(0xcd)]!==_0x22d343[_0x90a759(0xcd)]||_0x1d460c['subUnitId']!==_0x22d343[_0x90a759(0x122)]||_0x1d460c[_0x90a759(0x13a)]!==_0x22d343['axis']||_0x1d460c[_0x90a759(0x15c)]!==_0x22d343['start']||_0x1d460c[_0x90a759(0xf1)]!==_0x22d343[_0x90a759(0xf1)]?_0x1d460c:{..._0x1d460c,'collapsed':_0x1114ee[_0x90a759(0x139)]})),!0x0;}};function Be(_0x11742b,_0x576eca,_0xe446bd,_0x5f41f3){const _0x689272=_0x43fe3d;return _0x11742b==='row'?{'startRow':_0x576eca,'endRow':_0xe446bd,'startColumn':0x0,'endColumn':_0x5f41f3[_0x689272(0x105)]()-0x1}:{'startRow':0x0,'endRow':_0x5f41f3['getRowCount']()-0x1,'startColumn':_0x576eca,'endColumn':_0xe446bd};}function Ve(_0x2292ae){return _0x2292ae==='row'?_0x5cbb57['id']:_0x2e1ef4['id'];}function He(_0x5d9e80){const _0x3aeaf0=_0x43fe3d;return _0x5d9e80===_0x3aeaf0(0xe0)?_0x233235['id']:_0xb20ffe['id'];}function Ue(_0x844aa5,_0x3e6278,_0x158a30,_0x25ebb9){const _0xfbda62=_0x43fe3d;let _0x202cce=_0x3e6278?[Be(_0x844aa5[_0xfbda62(0x13a)],_0x844aa5[_0xfbda62(0x15c)],_0x844aa5[_0xfbda62(0xf1)],_0x158a30)]:We(_0x844aa5,_0x25ebb9,_0x158a30),_0x59a14b=_0x3e6278?Ve(_0x844aa5[_0xfbda62(0x13a)]):He(_0x844aa5[_0xfbda62(0x13a)]);return[{'id':H['id'],'params':{'unitId':_0x844aa5[_0xfbda62(0xcd)],'subUnitId':_0x844aa5[_0xfbda62(0x122)],'outlineId':_0x844aa5['id'],'outline':_0x844aa5,'collapsed':_0x3e6278}},..._0x202cce[_0xfbda62(0xe7)](_0x29e120=>({'id':_0x59a14b,'params':{'unitId':_0x844aa5[_0xfbda62(0xcd)],'subUnitId':_0x844aa5[_0xfbda62(0x122)],'ranges':[_0x29e120],'dimensionOutlineId':_0x844aa5['id']}}))];}function We(_0x5bfb37,_0x3fd0d7,_0x340275){const _0x3d527d=_0x43fe3d;let _0x258c63=we(_0x3fd0d7[_0x3d527d(0xe7)](_0xc682be=>Ge(_0xc682be,_0x5bfb37)?{..._0xc682be,'collapsed':!0x1}:_0xc682be),_0x5bfb37['unitId'],_0x5bfb37[_0x3d527d(0x122)],_0x5bfb37[_0x3d527d(0x13a)]);return Ke({'start':_0x5bfb37['start'],'end':_0x5bfb37['end']},_0x258c63)[_0x3d527d(0xe7)](_0x12aa1a=>Be(_0x5bfb37[_0x3d527d(0x13a)],_0x12aa1a[_0x3d527d(0x15c)],_0x12aa1a[_0x3d527d(0xf1)],_0x340275));}function Ge(_0x4ec6cb,_0x400b1b){const _0xa1aa14=_0x43fe3d;return _0x4ec6cb[_0xa1aa14(0xcd)]===_0x400b1b[_0xa1aa14(0xcd)]&&_0x4ec6cb['subUnitId']===_0x400b1b[_0xa1aa14(0x122)]&&_0x4ec6cb[_0xa1aa14(0x13a)]===_0x400b1b[_0xa1aa14(0x13a)]&&_0x4ec6cb[_0xa1aa14(0x15c)]===_0x400b1b[_0xa1aa14(0x15c)]&&_0x4ec6cb[_0xa1aa14(0xf1)]===_0x400b1b['end'];}function Ke(_0x10db2b,_0xa90ca5){const _0x30aa10=_0x43fe3d;let _0x18442d=_0x10db2b['start'],_0x164515=[];for(let _0x2f46f3 of _0xa90ca5)if(!(_0x2f46f3['end']<_0x18442d||_0x2f46f3['start']>_0x10db2b['end'])&&(_0x2f46f3[_0x30aa10(0x15c)]>_0x18442d&&_0x164515[_0x30aa10(0xcf)]({'start':_0x18442d,'end':Math[_0x30aa10(0x121)](_0x2f46f3[_0x30aa10(0x15c)]-0x1,_0x10db2b[_0x30aa10(0xf1)])}),_0x18442d=Math[_0x30aa10(0x141)](_0x18442d,_0x2f46f3[_0x30aa10(0xf1)]+0x1),_0x18442d>_0x10db2b[_0x30aa10(0xf1)]))break;return _0x18442d<=_0x10db2b[_0x30aa10(0xf1)]&&_0x164515[_0x30aa10(0xcf)]({'start':_0x18442d,'end':_0x10db2b[_0x30aa10(0xf1)]}),_0x164515;}const qe={'id':_0x43fe3d(0x12a),'type':_0x5ebc9c[_0x43fe3d(0x126)],'handler':(_0x2fe255,_0x5481c5)=>{const _0x39aba5=_0x43fe3d;if(!_0x5481c5)return!0x1;let _0x15ebda=_0x1a148e(_0x2fe255['get'](_0x4d64de),_0x5481c5);if(!_0x15ebda)return!0x1;let {unitId:_0x5bfe8c,subUnitId:_0x2b6c01,worksheet:_0x58b8fe}=_0x15ebda;if(!R(_0x2fe255,_0x5bfe8c,_0x2b6c01))return!0x1;let _0x38a2da=_0x2fe255[_0x39aba5(0x154)](P)[_0x39aba5(0x130)](_0x5bfe8c,_0x2b6c01),_0x21cab4=_0x38a2da[_0x39aba5(0xd9)](_0x1bbb75=>_0x1bbb75['id']===_0x5481c5[_0x39aba5(0x15b)]);if(!_0x21cab4||_0x21cab4['collapsed']===_0x5481c5[_0x39aba5(0x139)])return!0x1;let _0x81e84f=Ue(_0x21cab4,_0x5481c5[_0x39aba5(0x139)],_0x58b8fe,_0x38a2da),_0x22b831=Ue(_0x21cab4,!_0x5481c5[_0x39aba5(0x139)],_0x58b8fe,_0x38a2da);return _0x490769(_0x81e84f,_0x2fe255[_0x39aba5(0x154)](_0x1cacbb))['result']?(_0x2fe255['get'](_0x15d8cf)[_0x39aba5(0x10b)]({'unitID':_0x5bfe8c,'undoMutations':_0x22b831,'redoMutations':_0x81e84f}),!0x0):!0x1;}},U={'id':_0x43fe3d(0x140),'type':_0x5ebc9c['MUTATION'],'handler':(_0xa38703,_0x5dbb76)=>{const _0x5c17cd=_0x43fe3d;let _0x5c88ac=_0xa38703[_0x5c17cd(0x154)](P),_0x135176=Je(_0x5c88ac[_0x5c17cd(0x130)](_0x5dbb76[_0x5c17cd(0xcd)],_0x5dbb76[_0x5c17cd(0x122)]),_0x5dbb76);return _0x5c88ac[_0x5c17cd(0xe1)](_0x5dbb76[_0x5c17cd(0xcd)],_0x5dbb76[_0x5c17cd(0x122)],_0x135176),!0x0;}};function Je(_0x37a266,_0x4b9b04){const _0x23f92b=_0x43fe3d;switch(_0x4b9b04['type']){case _0x23f92b(0x13b):return _0x4b9b04[_0x23f92b(0xc9)]?Ye(_0x37a266,_0x4b9b04):D(_0x37a266,_0x4b9b04);case _0x23f92b(0x103):return O(_0x37a266,_0x4b9b04);case'move':return k(_0x37a266,_0x4b9b04);}}function Ye(_0x21ef0a,_0x829ac3){const _0x78a337=_0x43fe3d;return[..._0x21ef0a[_0x78a337(0xf4)](_0x467fe5=>_0x467fe5[_0x78a337(0xcd)]!==_0x829ac3[_0x78a337(0xcd)]||_0x467fe5['subUnitId']!==_0x829ac3['subUnitId']||_0x467fe5[_0x78a337(0x13a)]!==_0x829ac3[_0x78a337(0x13a)]),..._0x829ac3['restoreOutlines']];}const W='SHEET_OUTLINE_PLUGIN';var Xe=_0x43fe3d(0xc3),Ze=_0x43fe3d(0x124);const Qe={};function G(_0xfeeba,_0x1bae4a){return function(_0x2007aa,_0x52ae35){_0x1bae4a(_0x2007aa,_0x52ae35,_0xfeeba);};}function K(_0xc82b75,_0x2c384d,_0x41f656,_0x7c426c){const _0x5db574=_0x43fe3d;var _0x4c687a=arguments[_0x5db574(0x153)],_0x205683=_0x4c687a<0x3?_0x2c384d:_0x7c426c===null?_0x7c426c=Object['getOwnPropertyDescriptor'](_0x2c384d,_0x41f656):_0x7c426c,_0xa1cbd5;if(typeof Reflect==_0x5db574(0x152)&&typeof Reflect['decorate']==_0x5db574(0xc8))_0x205683=Reflect[_0x5db574(0xc4)](_0xc82b75,_0x2c384d,_0x41f656,_0x7c426c);else{for(var _0x49fe17=_0xc82b75[_0x5db574(0x153)]-0x1;_0x49fe17>=0x0;_0x49fe17--)(_0xa1cbd5=_0xc82b75[_0x49fe17])&&(_0x205683=(_0x4c687a<0x3?_0xa1cbd5(_0x205683):_0x4c687a>0x3?_0xa1cbd5(_0x2c384d,_0x41f656,_0x205683):_0xa1cbd5(_0x2c384d,_0x41f656))||_0x205683);}return _0x4c687a>0x3&&_0x205683&&Object['defineProperty'](_0x2c384d,_0x41f656,_0x205683),_0x205683;}const q={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let J=class extends _0xb1c262{constructor(_0x26ab57,_0x1cb256,_0x3ae8f8,_0x3a89af){const _0x5a28f1=_0x43fe3d;super(),this[_0x5a28f1(0x13d)]=_0x26ab57,this['_sheetInterceptorService']=_0x1cb256,this[_0x5a28f1(0xf7)]=_0x3ae8f8,this[_0x5a28f1(0x148)]=_0x3a89af,this[_0x5a28f1(0xbd)]();}[_0x43fe3d(0xbd)](){const _0x2ef41b=_0x43fe3d;this[_0x2ef41b(0xdb)](this[_0x2ef41b(0xfc)][_0x2ef41b(0x132)]({'getMutations':_0x98a86b=>$e(_0x98a86b,(_0x3f9ee4,_0x1d957d)=>this['_sheetsOutlineModel'][_0x2ef41b(0x130)](_0x3f9ee4,_0x1d957d),this[_0x2ef41b(0xb8)](_0x98a86b[_0x2ef41b(0x106)]),_0x328497=>this['_sheetsOutlineErrorService'][_0x2ef41b(0xed)](_0x328497))}));}[_0x43fe3d(0xb8)](_0x12c1e4){const _0x55a7de=_0x43fe3d;let _0xa597df=_0x12c1e4,_0x3cf03b=_0xa597df!=null&&_0xa597df[_0x55a7de(0xcd)]?this['_univerInstanceService']['getUnit'](_0xa597df['unitId'],_0x4481f0['UNIVER_SHEET']):this[_0x55a7de(0x13d)]['getCurrentUnitOfType'](_0x4481f0[_0x55a7de(0x119)]);if(!_0x3cf03b)return;let _0x39bcf2=_0xa597df!=null&&_0xa597df[_0x55a7de(0x122)]?_0x3cf03b[_0x55a7de(0x149)](_0xa597df[_0x55a7de(0x122)]):_0x3cf03b[_0x55a7de(0xe3)]();if(_0x39bcf2)return{'unitId':_0x3cf03b[_0x55a7de(0xee)](),'subUnitId':_0x39bcf2[_0x55a7de(0x15a)]()};}};J=K([G(0x0,_0x4d64de),G(0x1,_0x3d40bd(_0x55c49d)),G(0x2,_0x3d40bd(P)),G(0x3,_0x3d40bd(F))],J);function $e(_0x595cf4,_0x9a74f7,_0x502e5c,_0x61d3f){const _0x218541=_0x43fe3d;let _0x394836=tt(_0x595cf4,_0x502e5c);if(!_0x394836)return Z();let _0x2cde1a=_0x9a74f7(_0x394836['unitId'],_0x394836['subUnitId']);if(!_0x2cde1a[_0x218541(0xd4)](_0x3398c0=>_0x3398c0[_0x218541(0x13a)]===_0x394836[_0x218541(0x13a)]))return Z();et(_0x2cde1a,_0x394836,_0x595cf4['id'],_0x61d3f);let _0x1454c8=it(_0x394836,_0x2cde1a);return{'redos':[{'id':U['id'],'params':_0x394836}],'undos':[{'id':U['id'],'params':_0x1454c8}],'preRedos':[],'preUndos':[]};}function et(_0x2fb4e8,_0xd168a5,_0x1d4d87,_0x4ee56e){const _0x46284a=_0x43fe3d;try{switch(_0xd168a5['type']){case _0x46284a(0x13b):D(_0x2fb4e8,_0xd168a5);break;case _0x46284a(0x103):O(_0x2fb4e8,_0xd168a5);break;case _0x46284a(0x151):k(_0x2fb4e8,_0xd168a5);}}catch(_0x28449a){throw _0x4ee56e==null||_0x4ee56e({'reason':ye(_0x28449a),'commandId':_0x1d4d87,'unitId':_0xd168a5[_0x46284a(0xcd)],'subUnitId':_0xd168a5['subUnitId'],'axis':_0xd168a5['axis'],'outlineId':be(_0x28449a)}),new _0x539be5(_0x28449a instanceof Error?_0x28449a[_0x46284a(0x12f)]:_0x46284a(0xec));}}function tt(_0x14a832,_0x4c0a16){const _0x5e8853=_0x43fe3d;switch(_0x14a832['id']){case _0x54e0ab['id']:return Y(_0x14a832['params'],_0x5e8853(0xe0),_0x4c0a16);case _0x41349b['id']:return Y(_0x14a832[_0x5e8853(0x106)],_0x5e8853(0xf6),_0x4c0a16);case _0x2ea397['id']:return nt(_0x14a832[_0x5e8853(0x106)],_0x5e8853(0xe0),_0x4c0a16);case _0x41aa47['id']:return nt(_0x14a832[_0x5e8853(0x106)],'column',_0x4c0a16);case _0x1c660a['id']:return rt(_0x14a832[_0x5e8853(0x106)],_0x5e8853(0xe0),_0x4c0a16);case _0x1ce04b['id']:return rt(_0x14a832[_0x5e8853(0x106)],_0x5e8853(0xf6),_0x4c0a16);default:return null;}}function Y(_0x1b96a6,_0x27b813,_0x2290ce){const _0x433d64=_0x43fe3d;let _0x1c49be=X(_0x1b96a6,_0x2290ce);if(!(_0x1b96a6!=null&&_0x1b96a6[_0x433d64(0x112)])||!_0x1c49be)return null;let _0x353fb6=_0x27b813===_0x433d64(0xe0)?_0x1b96a6[_0x433d64(0x112)]['startRow']:_0x1b96a6['range'][_0x433d64(0x159)],_0x265394=_0x27b813==='row'?_0x1b96a6[_0x433d64(0x112)]['endRow']:_0x1b96a6[_0x433d64(0x112)][_0x433d64(0x128)];return{..._0x1c49be,'axis':_0x27b813,'type':'insert','index':_0x353fb6,'count':_0x265394-_0x353fb6+0x1};}function nt(_0x5024ce,_0x1bb957,_0x1d6d54){const _0x43b115=_0x43fe3d;let _0x7f0307=X(_0x5024ce,_0x1d6d54);if(!(_0x5024ce!=null&&_0x5024ce['range'])||!_0x7f0307)return null;let _0x28f6fa=_0x1bb957===_0x43b115(0xe0)?_0x5024ce['range']['startRow']:_0x5024ce[_0x43b115(0x112)]['startColumn'],_0x5903e7=_0x1bb957===_0x43b115(0xe0)?_0x5024ce[_0x43b115(0x112)]['endRow']:_0x5024ce['range'][_0x43b115(0x128)];return{..._0x7f0307,'axis':_0x1bb957,'type':'delete','start':_0x28f6fa,'end':_0x5903e7};}function rt(_0xe61232,_0x22dc38,_0x2fa5fb){const _0x25eb83=_0x43fe3d;let _0x4152e4=X(_0xe61232,_0x2fa5fb);if(!(_0xe61232!=null&&_0xe61232['fromRange'])||!_0xe61232[_0x25eb83(0x110)]||!_0x4152e4)return null;let _0x41cc62=_0x22dc38===_0x25eb83(0xe0)?_0xe61232[_0x25eb83(0x11b)][_0x25eb83(0xce)]:_0xe61232[_0x25eb83(0x11b)][_0x25eb83(0x159)],_0x14001c=_0x22dc38===_0x25eb83(0xe0)?_0xe61232[_0x25eb83(0x11b)]['endRow']:_0xe61232[_0x25eb83(0x11b)][_0x25eb83(0x128)],_0x41f30f=_0x22dc38===_0x25eb83(0xe0)?_0xe61232[_0x25eb83(0x110)][_0x25eb83(0xce)]:_0xe61232[_0x25eb83(0x110)][_0x25eb83(0x159)];return{..._0x4152e4,'axis':_0x22dc38,'type':'move','sourceStart':_0x41cc62,'sourceEnd':_0x14001c,'destinationIndex':_0x41f30f};}function it(_0x3d184a,_0x71c911){const _0x845738=_0x43fe3d;switch(_0x3d184a[_0x845738(0x118)]){case _0x845738(0x13b):return{'unitId':_0x3d184a[_0x845738(0xcd)],'subUnitId':_0x3d184a[_0x845738(0x122)],'axis':_0x3d184a[_0x845738(0x13a)],'type':_0x845738(0x103),'start':_0x3d184a[_0x845738(0xc6)],'end':_0x3d184a[_0x845738(0xc6)]+_0x3d184a[_0x845738(0x146)]-0x1};case _0x845738(0x103):return{'unitId':_0x3d184a[_0x845738(0xcd)],'subUnitId':_0x3d184a[_0x845738(0x122)],'axis':_0x3d184a['axis'],'type':_0x845738(0x13b),'index':_0x3d184a['start'],'count':_0x3d184a[_0x845738(0xf1)]-_0x3d184a[_0x845738(0x15c)]+0x1,'restoreOutlines':_0x71c911[_0x845738(0xf4)](_0x33dacc=>_0x33dacc[_0x845738(0xcd)]===_0x3d184a[_0x845738(0xcd)]&&_0x33dacc[_0x845738(0x122)]===_0x3d184a[_0x845738(0x122)]&&_0x33dacc[_0x845738(0x13a)]===_0x3d184a[_0x845738(0x13a)])};case _0x845738(0x151):return at(_0x3d184a);}}function at(_0x365f18){const _0x450bf5=_0x43fe3d;let _0x1ed8d4=_0x365f18[_0x450bf5(0xca)]-_0x365f18[_0x450bf5(0x143)]+0x1;return _0x365f18['destinationIndex']>=_0x365f18[_0x450bf5(0x143)]&&_0x365f18[_0x450bf5(0xbe)]<=_0x365f18[_0x450bf5(0xca)]+0x1?{..._0x365f18}:_0x365f18[_0x450bf5(0xbe)]>_0x365f18[_0x450bf5(0xca)]+0x1?{..._0x365f18,'sourceStart':_0x365f18['destinationIndex']-_0x1ed8d4,'sourceEnd':_0x365f18[_0x450bf5(0xbe)]-0x1,'destinationIndex':_0x365f18['sourceStart']}:{..._0x365f18,'sourceStart':_0x365f18[_0x450bf5(0xbe)],'sourceEnd':_0x365f18[_0x450bf5(0xbe)]+_0x1ed8d4-0x1,'destinationIndex':_0x365f18[_0x450bf5(0xca)]+0x1};}function X(_0x29c495,_0x48731a){const _0x35ab79=_0x43fe3d;let _0x20f2f4=(_0x29c495==null?void 0x0:_0x29c495[_0x35ab79(0xcd)])??(_0x48731a==null?void 0x0:_0x48731a[_0x35ab79(0xcd)]),_0x138280=(_0x29c495==null?void 0x0:_0x29c495[_0x35ab79(0x122)])??(_0x48731a==null?void 0x0:_0x48731a[_0x35ab79(0x122)]);return _0x20f2f4&&_0x138280?{'unitId':_0x20f2f4,'subUnitId':_0x138280}:null;}function Z(){const _0x1cc6e7=_0x43fe3d;return{'redos':[...q[_0x1cc6e7(0x14f)]],'undos':[...q['undos']],'preRedos':[...q[_0x1cc6e7(0xd6)]??[]],'preUndos':[...q[_0x1cc6e7(0xd8)]??[]]};}let Q=class extends _0xb1c262{constructor(_0x43240c,_0x4a3536){const _0x1d3b05=_0x43fe3d;super(),this[_0x1d3b05(0xe4)]=_0x43240c,this[_0x1d3b05(0xf7)]=_0x4a3536,this[_0x1d3b05(0x101)]();}['_initResource'](){const _0x30abf9=_0x43fe3d;this['disposeWithMe'](this[_0x30abf9(0xe4)]['registerPluginResource']({'pluginName':W,'businesses':[_0x4481f0[_0x30abf9(0x119)]],'toJson':_0x5bbbe0=>JSON[_0x30abf9(0xfa)](this[_0x30abf9(0xf7)][_0x30abf9(0x12e)](_0x5bbbe0)),'parseJson':_0x48a9f9=>JSON[_0x30abf9(0xfe)](_0x48a9f9),'onLoad':(_0x23ecbd,_0x170c24)=>this[_0x30abf9(0xf7)][_0x30abf9(0x108)](_0x23ecbd,_0x170c24),'onUnLoad':_0x470af8=>this['_sheetsOutlineModel'][_0x30abf9(0xeb)](_0x470af8)}));}};Q=K([G(0x0,_0x3f3d7f),G(0x1,_0x3d40bd(P))],Q);let $=class extends _0xacd159{constructor(_0x2e0844=Qe,_0x1f16f1,_0x1f391e,_0x59e337){const _0x29eb91=_0x43fe3d;super(),this[_0x29eb91(0x123)]=_0x2e0844,this[_0x29eb91(0x102)]=_0x1f16f1,this[_0x29eb91(0xd7)]=_0x1f391e,this['_configService']=_0x59e337;let {..._0x58a328}=_0x36a193({},Qe,this[_0x29eb91(0x123)]);this[_0x29eb91(0x131)]['setConfig'](_0x29eb91(0x157),_0x58a328);}['onStarting'](){const _0x7a9f37=_0x43fe3d;this[_0x7a9f37(0x102)][_0x7a9f37(0x10f)]([P]),this[_0x7a9f37(0x102)][_0x7a9f37(0x10f)]([F]),this[_0x7a9f37(0x102)][_0x7a9f37(0x10f)]([Q]),this[_0x7a9f37(0x102)][_0x7a9f37(0x10f)]([J]),this[_0x7a9f37(0xcb)](),this[_0x7a9f37(0x102)][_0x7a9f37(0x154)](P),this[_0x7a9f37(0x102)]['get'](F),this[_0x7a9f37(0x102)][_0x7a9f37(0x154)](Q),this[_0x7a9f37(0x102)]['get'](J);}[_0x43fe3d(0xcb)](){const _0x2c66ef=_0x43fe3d;[z,ze,qe,V]['forEach'](_0x4d9486=>{const _0x168308=_0x3a3b;this[_0x168308(0xdb)](this[_0x168308(0xd7)][_0x168308(0xf8)](_0x4d9486));}),[I,L,H,B,U][_0x2c66ef(0x11e)](_0x4dd794=>{const _0x7fbbae=_0x2c66ef;this[_0x7fbbae(0xdb)](this['_commandService'][_0x7fbbae(0xf8)](_0x4dd794));});}};N($,_0x43fe3d(0x136),W),N($,_0x43fe3d(0xda),Xe),N($,_0x43fe3d(0x137),Ze),N($,_0x43fe3d(0x118),_0x4481f0['UNIVER_SHEET']),$=K([_0x5c43ca(_0x3b8092,_0x57e74f),G(0x1,_0x3d40bd(_0x217502)),G(0x2,_0x1cacbb),G(0x3,_0x473018)],$);export{z as AddDimensionOutlineCommand,I as AddDimensionOutlineMutation,V as ClearDimensionOutlinesCommand,B as ClearDimensionOutlinesMutation,_e as DimensionOutlineAxis,ve as DimensionOutlineErrorReason,ze as RemoveDimensionOutlineCommand,L as RemoveDimensionOutlineMutation,W as SHEET_OUTLINE_PLUGIN,qe as SetDimensionOutlineCollapsedCommand,H as SetDimensionOutlineCollapsedMutation,F as SheetsOutlineErrorService,P as SheetsOutlineModel,U as TransformDimensionOutlinesMutation,$ as UniverSheetsOutlinePlugin,T as buildDimensionOutlineTree,E as canAddDimensionOutline,Ie as getDimensionOutlineViewPermission$,R as hasDimensionOutlineViewPermission,O as transformOutlinesByDelete,D as transformOutlinesByInsert,k as transformOutlinesByMove};
|
|
1
|
+
const _0x2552be=_0x38a2;(function(_0x138e3b,_0x12de20){const _0x9ba323=_0x38a2,_0x3b044d=_0x138e3b();while(!![]){try{const _0x329dff=-parseInt(_0x9ba323(0x1f6))/0x1+-parseInt(_0x9ba323(0x19b))/0x2*(-parseInt(_0x9ba323(0x1ca))/0x3)+parseInt(_0x9ba323(0x1bf))/0x4*(-parseInt(_0x9ba323(0x1de))/0x5)+-parseInt(_0x9ba323(0x1ea))/0x6+parseInt(_0x9ba323(0x1ce))/0x7*(-parseInt(_0x9ba323(0x185))/0x8)+parseInt(_0x9ba323(0x192))/0x9*(-parseInt(_0x9ba323(0x16e))/0xa)+parseInt(_0x9ba323(0x16d))/0xb*(parseInt(_0x9ba323(0x1da))/0xc);if(_0x329dff===_0x12de20)break;else _0x3b044d['push'](_0x3b044d['shift']());}catch(_0x1a479b){_0x3b044d['push'](_0x3b044d['shift']());}}}(_0x327d,0x4a300));import{CommandType as _0x42c5de,CustomCommandExecutionError as _0x6678d2,DependentOn as _0x24a179,Disposable as _0x1f59cd,ICommandService as _0xec1c95,IConfigService as _0x88f4c1,IPermissionService as _0x51f3bd,IResourceManagerService as _0x12fef9,IUndoRedoService as _0x3d7842,IUniverInstanceService as _0x241e59,Inject as _0x259385,Injector as _0x2948c4,Plugin as _0x14323e,UniverInstanceType as _0x149174,generateRandomId as _0x293be6,merge as _0x2da987,sequenceExecute as _0x5c69e0}from'@univerjs/core';import{InsertColCommand as _0x540713,InsertRowCommand as _0x576ba9,MoveColsCommand as _0x5c3cdd,MoveRowsCommand as _0x32509d,RemoveColCommand as _0x289843,RemoveRowCommand as _0x19474a,SetColHiddenMutation as _0x5d70bb,SetColVisibleMutation as _0x34dce4,SetRowHiddenMutation as _0x3c2892,SetRowVisibleMutation as _0x35cb71,SheetInterceptorService as _0x2d3c87,SheetPermissionCheckController as _0x891372,UniverSheetsPlugin as _0x4eb0bf,WorkbookViewPermission as _0xd8479c,WorksheetViewPermission as _0x230a03,getSheetCommandTarget as _0x5bb827}from'@univerjs/sheets';import{Subject as _0x2a2d34,of as _0x4fe5d5}from'rxjs';import{debounceTime as _0x1bdf9f,map as _0x5d1f67,startWith as _0x4ef7b8}from'rxjs/operators';import{UniverLicensePlugin as _0x41b4af}from'@univerjs-pro/license';let _e=function(_0x540cd2){const _0x540868=_0x38a2;return _0x540cd2['ROW']=_0x540868(0x1d6),_0x540cd2[_0x540868(0x1e1)]=_0x540868(0x1b5),_0x540cd2;}({}),ve=function(_0x4d02c8){const _0x1d446d=_0x38a2;return _0x4d02c8[_0x1d446d(0x1ae)]=_0x1d446d(0x19d),_0x4d02c8['OUT_OF_BOUNDS']=_0x1d446d(0x1b3),_0x4d02c8[_0x1d446d(0x1d4)]=_0x1d446d(0x202),_0x4d02c8[_0x1d446d(0x1bd)]=_0x1d446d(0x1c3),_0x4d02c8['MOVE_SPLITS_OUTLINE']=_0x1d446d(0x1a6),_0x4d02c8[_0x1d446d(0x191)]='clear-range-not-contain-outline',_0x4d02c8[_0x1d446d(0x1e4)]='unknown',_0x4d02c8;}({});var S=class extends Error{constructor(_0x43a6ab,_0x49ca70,_0x1ae695){const _0x5d6e48=_0x38a2;super(_0x49ca70),this[_0x5d6e48(0x1fa)]=_0x43a6ab,this[_0x5d6e48(0x1b6)]=_0x1ae695,this[_0x5d6e48(0x159)]=_0x5d6e48(0x1a5);}};function ye(_0x2c0ef3){const _0x556606=_0x38a2;return _0x2c0ef3 instanceof S?_0x2c0ef3[_0x556606(0x1fa)]:_0x2c0ef3 instanceof Error?_0x2c0ef3['message'][_0x556606(0x197)](_0x556606(0x15d))?_0x556606(0x1a6):_0x2c0ef3[_0x556606(0x195)]['includes']('depth')?_0x556606(0x1c3):_0x2c0ef3[_0x556606(0x195)][_0x556606(0x197)](_0x556606(0x19e))?_0x556606(0x202):_0x2c0ef3[_0x556606(0x195)][_0x556606(0x197)](_0x556606(0x18d))?_0x556606(0x19d):_0x556606(0x17d):_0x556606(0x17d);}function be(_0x1dca98){return _0x1dca98 instanceof S?_0x1dca98['outlineId']:void 0x0;}const C=0x2**0x35-0x1;function w(_0x1cc3c7,_0xbc12c2){const _0x11f578=_0x38a2;return _0x1cc3c7[_0x11f578(0x181)]===_0xbc12c2[_0x11f578(0x181)]&&_0x1cc3c7[_0x11f578(0x1c4)]===_0xbc12c2[_0x11f578(0x1c4)]&&_0x1cc3c7[_0x11f578(0x1cc)]===_0xbc12c2[_0x11f578(0x1cc)];}function T(_0x354cfa,_0x28f916={}){const _0x2eb016=_0x38a2;let _0x5cab63=_0x28f916[_0x2eb016(0x161)]??0x8,_0x129948=new Map();for(let _0x2c6263 of _0x354cfa){let _0x380152=_0x2c6263['unitId']+':'+_0x2c6263[_0x2eb016(0x1c4)]+':'+_0x2c6263['axis'],_0x174c26=_0x129948['get'](_0x380152);_0x174c26?_0x174c26[_0x2eb016(0x170)](_0x2c6263):_0x129948[_0x2eb016(0x1ec)](_0x380152,[_0x2c6263]);}let _0x131be8=[];for(let _0x242736 of _0x129948[_0x2eb016(0x163)]()){let _0x525cc5=[..._0x242736]['sort'](j),_0x485872=[];for(let _0x2a1339 of _0x525cc5){for(Me(_0x2a1339);_0x485872[_0x2eb016(0x198)]>0x0&&_0x2a1339['start']>_0x485872[_0x485872[_0x2eb016(0x198)]-0x1]['end'];)_0x485872[_0x2eb016(0x1cb)]();let _0x2699d5=_0x485872[_0x485872[_0x2eb016(0x198)]-0x1];if(_0x2699d5&&_0x2a1339[_0x2eb016(0x18a)]>_0x2699d5[_0x2eb016(0x18a)])throw new S(_0x2eb016(0x202),_0x2eb016(0x182),_0x2a1339['id']);let _0x85054a=_0x2699d5?_0x2699d5[_0x2eb016(0x18f)]+0x1:0x1;if(_0x85054a>_0x5cab63)throw new S(_0x2eb016(0x1c3),_0x2eb016(0x1f3)+_0x5cab63,_0x2a1339['id']);let _0x4a1ea2={..._0x2a1339,'depth':_0x85054a,'parentId':_0x2699d5==null?void 0x0:_0x2699d5['id'],'anchor':_0x2a1339[_0x2eb016(0x18a)],'children':[]};_0x2699d5?_0x2699d5[_0x2eb016(0x203)][_0x2eb016(0x170)](_0x4a1ea2):_0x131be8['push'](_0x4a1ea2),_0x485872['push'](_0x4a1ea2);}}return _0x131be8;}function E(_0xf59297,_0x389074,_0x5daf0e={}){const _0x487226=_0x38a2;if(_0x389074['start']<0x0||_0x389074[_0x487226(0x19f)]>_0x389074[_0x487226(0x18a)])return{'valid':!0x1,'reason':_0x487226(0x19d)};if(_0x5daf0e[_0x487226(0x1f7)]!=null&&_0x389074['end']>=_0x5daf0e[_0x487226(0x1f7)])return{'valid':!0x1,'reason':'out-of-bounds'};let _0x4729d5=_0xf59297[_0x487226(0x188)](_0x4e6799=>w(_0x4e6799,_0x389074));for(let _0x295e51 of _0x4729d5)if(Ne(_0x295e51,_0x389074))return{'valid':!0x1,'reason':_0x487226(0x202)};try{T([..._0xf59297,_0x389074],_0x5daf0e);}catch(_0x28d658){let _0x2609f0=ye(_0x28d658);return _0x2609f0===_0x487226(0x1c3)?{'valid':!0x1,'reason':_0x487226(0x1c3)}:_0x2609f0===_0x487226(0x19d)?{'valid':!0x1,'reason':'invalid-range'}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function xe(_0x424feb,_0x4f774d,_0x4c5257={}){const _0x5175dc=_0x38a2;let _0xd396fe=E(_0x424feb,_0x4f774d,_0x4c5257);if(!_0xd396fe['valid'])throw Error(_0xd396fe[_0x5175dc(0x1fa)]??_0x5175dc(0x16c));return[..._0x424feb,_0x4f774d];}function Se(_0x5a30db,_0x25270a){const _0x5e1d32=_0x38a2;let _0x5dacce=_0x25270a['start'],_0x4be6e8=_0x25270a[_0x5e1d32(0x18a)],_0xef5eea=[],_0x379e9f=!0x0;for(;_0x379e9f;){_0x379e9f=!0x1;for(let _0x118a3c of _0x5a30db)!_0xef5eea[_0x5e1d32(0x197)](_0x118a3c)&&w(_0x118a3c,_0x25270a)&&Ae(_0x118a3c[_0x5e1d32(0x19f)],_0x118a3c['end'],_0x5dacce,_0x4be6e8)&&(_0xef5eea[_0x5e1d32(0x170)](_0x118a3c),_0x5dacce=Math[_0x5e1d32(0x1d7)](_0x5dacce,_0x118a3c['start']),_0x4be6e8=Math[_0x5e1d32(0x17b)](_0x4be6e8,_0x118a3c[_0x5e1d32(0x18a)]),_0x379e9f=!0x0);}if(_0xef5eea['length']===0x0)return null;let [_0x52ec2a]=[..._0xef5eea][_0x5e1d32(0x1bb)](j);return{'mergedOutline':{..._0x52ec2a,'start':_0x5dacce,'end':_0x4be6e8},'mergedOutlines':_0xef5eea};}function Ce(_0x14ebc0,_0x58a22a){const _0x1f5cac=_0x38a2;return _0x14ebc0[_0x1f5cac(0x188)](_0x4d1e25=>!w(_0x4d1e25,_0x58a22a)||!(_0x4d1e25[_0x1f5cac(0x19f)]>=_0x58a22a[_0x1f5cac(0x19f)]&&_0x4d1e25['end']<=_0x58a22a[_0x1f5cac(0x18a)]));}function we(_0x10d4c7,_0x560281,_0x528b35,_0x291688){const _0x46d67c=_0x38a2;return Te(_0x10d4c7[_0x46d67c(0x188)](_0x3f2b17=>_0x3f2b17[_0x46d67c(0x181)]===_0x560281&&_0x3f2b17['subUnitId']===_0x528b35&&_0x3f2b17[_0x46d67c(0x1cc)]===_0x291688&&_0x3f2b17['collapsed'])[_0x46d67c(0x1a2)](_0x44cf9d=>({'start':_0x44cf9d[_0x46d67c(0x19f)],'end':_0x44cf9d['end']})));}function Te(_0x4739af){const _0x2f2eb1=_0x38a2;if(_0x4739af['length']===0x0)return[];let _0x30c425=[..._0x4739af][_0x2f2eb1(0x1bb)]((_0x2623be,_0x51289d)=>_0x2623be[_0x2f2eb1(0x19f)]-_0x51289d['start']||_0x2623be[_0x2f2eb1(0x18a)]-_0x51289d[_0x2f2eb1(0x18a)]),_0xc044b7=[];for(let _0x4a4f84 of _0x30c425){let _0x2b2ac9=_0xc044b7[_0xc044b7[_0x2f2eb1(0x198)]-0x1];!_0x2b2ac9||_0x4a4f84[_0x2f2eb1(0x19f)]>_0x2b2ac9[_0x2f2eb1(0x18a)]+0x1?_0xc044b7[_0x2f2eb1(0x170)]({..._0x4a4f84}):_0x2b2ac9[_0x2f2eb1(0x18a)]=Math['max'](_0x2b2ac9[_0x2f2eb1(0x18a)],_0x4a4f84['end']);}return _0xc044b7;}function D(_0xc08f69,_0x4509c0){const _0x178770=_0x38a2;return _0x4509c0[_0x178770(0x1dd)]<=0x0?_0xc08f69:A(_0xc08f69[_0x178770(0x1a2)](_0x2f5fdf=>w(_0x2f5fdf,_0x4509c0)?_0x4509c0[_0x178770(0x1d1)]<=_0x2f5fdf['start']?{..._0x2f5fdf,'start':_0x2f5fdf[_0x178770(0x19f)]+_0x4509c0[_0x178770(0x1dd)],'end':_0x2f5fdf[_0x178770(0x18a)]+_0x4509c0['count']}:_0x2f5fdf[_0x178770(0x19f)]<_0x4509c0['index']&&_0x4509c0[_0x178770(0x1d1)]<=_0x2f5fdf[_0x178770(0x18a)]?{..._0x2f5fdf,'end':_0x2f5fdf['end']+_0x4509c0[_0x178770(0x1dd)]}:_0x2f5fdf:_0x2f5fdf));}function O(_0xbe358b,_0x3dd186){const _0x3d4da2=_0x38a2;if(_0x3dd186[_0x3d4da2(0x19f)]>_0x3dd186[_0x3d4da2(0x18a)])return _0xbe358b;let _0xcb3c3f=_0x3dd186[_0x3d4da2(0x18a)]-_0x3dd186[_0x3d4da2(0x19f)]+0x1,_0x47497a=[];for(let _0x54c7d5 of _0xbe358b){if(!w(_0x54c7d5,_0x3dd186)){_0x47497a[_0x3d4da2(0x170)](_0x54c7d5);continue;}if(_0x54c7d5[_0x3d4da2(0x18a)]<_0x3dd186[_0x3d4da2(0x19f)]){_0x47497a[_0x3d4da2(0x170)](_0x54c7d5);continue;}if(_0x54c7d5[_0x3d4da2(0x19f)]>_0x3dd186['end']){_0x47497a['push']({..._0x54c7d5,'start':_0x54c7d5['start']-_0xcb3c3f,'end':_0x54c7d5[_0x3d4da2(0x18a)]-_0xcb3c3f});continue;}let _0x220dc5=Math[_0x3d4da2(0x17b)](_0x54c7d5['start'],_0x3dd186[_0x3d4da2(0x19f)]),_0x994b60=Math['min'](_0x54c7d5['end'],_0x3dd186['end']),_0x295feb=Math[_0x3d4da2(0x17b)](0x0,_0x994b60-_0x220dc5+0x1),_0x168613=_0x54c7d5[_0x3d4da2(0x18a)]-_0x54c7d5[_0x3d4da2(0x19f)]+0x1-_0x295feb;if(_0x168613<=0x0)continue;let _0xf0b37e=_0x54c7d5[_0x3d4da2(0x19f)]<_0x3dd186[_0x3d4da2(0x19f)]?_0x54c7d5[_0x3d4da2(0x19f)]:_0x3dd186[_0x3d4da2(0x19f)];_0x47497a[_0x3d4da2(0x170)]({..._0x54c7d5,'start':_0xf0b37e,'end':_0xf0b37e+_0x168613-0x1});}return A(_0x47497a);}function k(_0x5e940b,_0x5cd25c){const _0x5c94e6=_0x38a2;if(_0x5cd25c[_0x5c94e6(0x178)]>_0x5cd25c['sourceEnd'])return _0x5e940b;let _0x74df84=[];for(let _0x3022a3 of _0x5e940b){if(!w(_0x3022a3,_0x5cd25c)){_0x74df84[_0x5c94e6(0x170)](_0x3022a3);continue;}let _0x35c535=Ee(_0x3022a3,_0x5cd25c);if(_0x35c535[_0x5c94e6(0x201)]===_0x5c94e6(0x19c))throw new S('move-splits-outline',_0x5c94e6(0x1cf)+_0x3022a3['id'],_0x3022a3['id']);_0x74df84['push'](_0x35c535[_0x5c94e6(0x175)]);}return A(_0x74df84);}function Ee(_0xdc0242,_0x5b6f50){const _0x5e3401=_0x38a2;let _0x4ed35d=De(_0x5b6f50['sourceStart'],_0x5b6f50['sourceEnd']+0x1,_0x5b6f50[_0x5e3401(0x1ed)]),_0x43cf24=[],_0x2ab225={'start':_0xdc0242[_0x5e3401(0x19f)],'end':_0xdc0242[_0x5e3401(0x18a)]+0x1};for(let _0x5080bb of _0x4ed35d){let _0x4b1b78=Oe(_0x2ab225,_0x5080bb[_0x5e3401(0x18d)]);_0x4b1b78&&_0x43cf24[_0x5e3401(0x170)]({'start':_0x4b1b78[_0x5e3401(0x19f)]+_0x5080bb[_0x5e3401(0x15b)],'end':_0x4b1b78[_0x5e3401(0x18a)]+_0x5080bb[_0x5e3401(0x15b)]});}let _0xc609f0=ke(_0x43cf24);return _0xc609f0[_0x5e3401(0x198)]===0x1?{'type':'ok','outline':{..._0xdc0242,'start':_0xc609f0[0x0][_0x5e3401(0x19f)],'end':_0xc609f0[0x0][_0x5e3401(0x18a)]-0x1}}:{'type':'split','outline':_0xdc0242,'ranges':_0xc609f0};}function De(_0x1f5319,_0x542517,_0x318d5a){let _0x4a2f29=_0x542517-_0x1f5319;if(_0x4a2f29<=0x0)throw Error('Invalid\x20dimension\x20outline\x20move\x20source\x20range');return _0x318d5a>=_0x1f5319&&_0x318d5a<=_0x542517?[{'range':{'start':0x0,'end':C},'offset':0x0}]:_0x318d5a<_0x1f5319?[{'range':{'start':0x0,'end':_0x318d5a},'offset':0x0},{'range':{'start':_0x318d5a,'end':_0x1f5319},'offset':_0x4a2f29},{'range':{'start':_0x1f5319,'end':_0x542517},'offset':_0x318d5a-_0x1f5319},{'range':{'start':_0x542517,'end':C},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x1f5319},'offset':0x0},{'range':{'start':_0x1f5319,'end':_0x542517},'offset':_0x318d5a-_0x542517},{'range':{'start':_0x542517,'end':_0x318d5a},'offset':-_0x4a2f29},{'range':{'start':_0x318d5a,'end':C},'offset':0x0}];}function Oe(_0x3beb0c,_0x5cc76f){const _0x3b6e7c=_0x38a2;let _0x2add85=Math[_0x3b6e7c(0x17b)](_0x3beb0c['start'],_0x5cc76f[_0x3b6e7c(0x19f)]),_0x276c87=Math[_0x3b6e7c(0x1d7)](_0x3beb0c[_0x3b6e7c(0x18a)],_0x5cc76f[_0x3b6e7c(0x18a)]);return _0x2add85>=_0x276c87?null:{'start':_0x2add85,'end':_0x276c87};}function ke(_0x2c9e05){const _0xcd5553=_0x38a2;if(_0x2c9e05['length']===0x0)return[];let _0x48433a=[..._0x2c9e05][_0xcd5553(0x1bb)]((_0x1bf9ba,_0x521fd4)=>_0x1bf9ba[_0xcd5553(0x19f)]-_0x521fd4['start']||_0x1bf9ba[_0xcd5553(0x18a)]-_0x521fd4['end']),_0x3f8ede=[];for(let _0x347ec2 of _0x48433a){let _0x289f34=_0x3f8ede[_0x3f8ede[_0xcd5553(0x198)]-0x1];!_0x289f34||_0x347ec2['start']>_0x289f34[_0xcd5553(0x18a)]?_0x3f8ede[_0xcd5553(0x170)]({..._0x347ec2}):_0x289f34[_0xcd5553(0x18a)]=Math[_0xcd5553(0x17b)](_0x289f34[_0xcd5553(0x18a)],_0x347ec2['end']);}return _0x3f8ede;}function Ae(_0x3b9120,_0x3543f4,_0x861bec,_0x59bdb0){return _0x3543f4+0x1===_0x861bec||_0x59bdb0+0x1===_0x3b9120;}function A(_0x267172){let _0x354354=je(_0x267172);return T(_0x354354),_0x354354;}function je(_0x508cdf){const _0x168fda=_0x38a2;let _0x506e9d=new Map();for(let _0x4d7d55 of _0x508cdf){let _0x2ea65b=[_0x4d7d55[_0x168fda(0x181)],_0x4d7d55['subUnitId'],_0x4d7d55[_0x168fda(0x1cc)],_0x4d7d55['start'],_0x4d7d55[_0x168fda(0x18a)]]['join'](':'),_0x1f1a24=_0x506e9d[_0x168fda(0x194)](_0x2ea65b);if(!_0x1f1a24){_0x506e9d['set'](_0x2ea65b,_0x4d7d55);continue;}_0x506e9d[_0x168fda(0x1ec)](_0x2ea65b,{..._0x1f1a24,'collapsed':_0x1f1a24['collapsed']||_0x4d7d55['collapsed']});}return Array[_0x168fda(0x1c0)](_0x506e9d[_0x168fda(0x163)]());}function j(_0x18578d,_0x2102c9){const _0x26f8b3=_0x38a2;return _0x18578d['unitId']===_0x2102c9[_0x26f8b3(0x181)]?_0x18578d['subUnitId']===_0x2102c9['subUnitId']?_0x18578d['axis']===_0x2102c9[_0x26f8b3(0x1cc)]?_0x18578d[_0x26f8b3(0x19f)]===_0x2102c9[_0x26f8b3(0x19f)]?_0x2102c9[_0x26f8b3(0x18a)]-_0x18578d['end']:_0x18578d[_0x26f8b3(0x19f)]-_0x2102c9[_0x26f8b3(0x19f)]:_0x18578d[_0x26f8b3(0x1cc)]['localeCompare'](_0x2102c9['axis']):_0x18578d['subUnitId'][_0x26f8b3(0x1fe)](_0x2102c9[_0x26f8b3(0x1c4)]):_0x18578d[_0x26f8b3(0x181)][_0x26f8b3(0x1fe)](_0x2102c9[_0x26f8b3(0x181)]);}function Me(_0x2f171c){const _0x18997=_0x38a2;if(_0x2f171c[_0x18997(0x19f)]>_0x2f171c[_0x18997(0x18a)])throw new S(_0x18997(0x19d),_0x18997(0x1f9),_0x2f171c['id']);}function Ne(_0x5f1be7,_0x598ca1){const _0x474be9=_0x38a2;let _0x1708f1=_0x5f1be7[_0x474be9(0x19f)]<=_0x598ca1['end']&&_0x598ca1[_0x474be9(0x19f)]<=_0x5f1be7[_0x474be9(0x18a)],_0x1c3941=_0x5f1be7[_0x474be9(0x19f)]<=_0x598ca1[_0x474be9(0x19f)]&&_0x598ca1['end']<=_0x5f1be7[_0x474be9(0x18a)],_0x2d5829=_0x598ca1['start']<=_0x5f1be7[_0x474be9(0x19f)]&&_0x5f1be7['end']<=_0x598ca1[_0x474be9(0x18a)];return _0x1708f1&&!_0x1c3941&&!_0x2d5829;}function _0x327d(){const _0x2e9111=['184613fGgTOB','53180yfOhzQ','MUTATION','push','move','setConfig','endColumn','registerCommand','outline','_sheetsOutlineErrorService','sheets-outline.config','sourceStart','entries','call','max','getUnit','unknown','getMaxColumns','_resourceManagerService','result','unitId','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','undos','registerPluginResource','1595096mAxHZh','_initResource','dimension-outline-','filter','sourceEnd','end','string','sheet.mutation.transform-dimension-outlines','range','toRange','depth','fromRange','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','54qsrhDy','collapsed','get','message','_sheetInterceptorService','includes','length','getSheetBySheetId','getRowCount','84fOaTAF','split','invalid-range','Crossing','start','emit','change$','map','sheet.command.set-dimension-outline-collapsed','preUndos','DimensionOutlineError','move-splits-outline','version','stringify','sheet.command.remove-dimension-outline','Invalid\x20dimension\x20outline\x20mutation','complete','_sheetsOutlineModel','_configService','INVALID_RANGE','getActiveSheet','sheet.mutation.add-dimension-outline','startRow','forEach','out-of-bounds','_commandService','column','outlineId','mergedOutline','getUnitOutlines','getColumnCount','restoreOutlines','sort','UNIVER_SHEET','MAX_DEPTH','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','795332rNYFFt','from','function','endRow','max-depth','subUnitId','serialize','clear','_error$','getOutlines','_getCommandScope','42594VbhfuO','pop','axis','pluginName','21XRZURA','Move\x20would\x20split\x20dimension\x20outline:\x20','some','index','decorate','startColumn','CROSSING','_univerInstanceService','row','min','setOutlines','outlineList','1140IIMIYq','deserialize','@univerjs-pro/sheets-outline','count','5vdzYbg','sheet.command.add-dimension-outline','getUnitId','COLUMN','has','dispose','UNKNOWN','COMMAND','delete','disposeWithMe','pipe','sheet.mutation.remove-dimension-outline','2715432oyyBli','parse','set','destinationIndex','_injector','insert','_outlines','onStarting','getOwnPropertyDescriptor','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','object','params','605355LEWYpr','maxIndex','_initRegisterCommand','Invalid\x20outline\x20range','reason','1.0.2','defineProperty','add','localeCompare','getSheetId','sheet.command.clear-dimension-outlines','type','crossing','children','getCurrentUnitOfType','name','toPrimitive','offset','_config','split\x20dimension\x20outline','redos','removeUnit','_change$','maxDepth','find','values','SHEET_OUTLINE_PLUGIN','permissionPointUpdate$','packageName','pushUndoRedo','symbol','permissionCheckWithoutRange','next','preRedos','invalid-dimension-outline'];_0x327d=function(){return _0x2e9111;};return _0x327d();}function M(_0x5f2107){'@babel/helpers - typeof';const _0xa43912=_0x38a2;return M=typeof Symbol=='function'&&typeof Symbol['iterator']==_0xa43912(0x168)?function(_0x1b8531){return typeof _0x1b8531;}:function(_0x440a77){const _0x3db1cd=_0xa43912;return _0x440a77&&typeof Symbol==_0x3db1cd(0x1c1)&&_0x440a77['constructor']===Symbol&&_0x440a77!==Symbol['prototype']?'symbol':typeof _0x440a77;},M(_0x5f2107);}function Pe(_0x21445b,_0x5a7377){const _0x565a41=_0x38a2;if(M(_0x21445b)!=_0x565a41(0x1f4)||!_0x21445b)return _0x21445b;var _0x436338=_0x21445b[Symbol[_0x565a41(0x15a)]];if(_0x436338!==void 0x0){var _0x11b927=_0x436338[_0x565a41(0x17a)](_0x21445b,_0x5a7377||'default');if(M(_0x11b927)!='object')return _0x11b927;throw TypeError(_0x565a41(0x1be));}return(_0x5a7377===_0x565a41(0x18b)?String:Number)(_0x21445b);}function Fe(_0x46865a){const _0x5abf7f=_0x38a2;var _0x16295c=Pe(_0x46865a,_0x5abf7f(0x18b));return M(_0x16295c)==_0x5abf7f(0x168)?_0x16295c:_0x16295c+'';}function N(_0x5cdda2,_0x497ba8,_0x315bf7){const _0x1d226c=_0x38a2;return(_0x497ba8=Fe(_0x497ba8))in _0x5cdda2?Object[_0x1d226c(0x1fc)](_0x5cdda2,_0x497ba8,{'value':_0x315bf7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5cdda2[_0x497ba8]=_0x315bf7,_0x5cdda2;}var P=class extends _0x1f59cd{constructor(..._0x2ac573){const _0x5ca148=_0x38a2;super(..._0x2ac573),N(this,'_outlines',new Map()),N(this,_0x5ca148(0x160),new _0x2a2d34()),N(this,_0x5ca148(0x1a1),this[_0x5ca148(0x160)]['asObservable']());}[_0x2552be(0x1c8)](_0x7f983f,_0x2d68fd){const _0x5e9db7=_0x2552be;var _0x4797d3;return[...((_0x4797d3=this[_0x5e9db7(0x1f0)][_0x5e9db7(0x194)](_0x7f983f))==null?void 0x0:_0x4797d3[_0x5e9db7(0x194)](_0x2d68fd))??[]];}[_0x2552be(0x1b8)](_0x61bcc0){const _0x108009=_0x2552be;let _0x4b69d8=this[_0x108009(0x1f0)][_0x108009(0x194)](_0x61bcc0),_0x2defc2=new Map();return _0x4b69d8==null||_0x4b69d8['forEach']((_0x57502f,_0x340e5f)=>{const _0x10e1c5=_0x108009;_0x2defc2[_0x10e1c5(0x1ec)](_0x340e5f,[..._0x57502f]);}),_0x2defc2;}[_0x2552be(0x1d8)](_0x327a5c,_0x14989d,_0x1d82f6){const _0x120bdb=_0x2552be;this['_ensureUnitOutlines'](_0x327a5c)[_0x120bdb(0x1ec)](_0x14989d,[..._0x1d82f6]),this['_change$']['next']({'unitId':_0x327a5c,'subUnitId':_0x14989d});}[_0x2552be(0x15f)](_0x479a3c){const _0x35024f=_0x2552be;this[_0x35024f(0x1f0)]['delete'](_0x479a3c),this[_0x35024f(0x160)]['next']({'unitId':_0x479a3c});}['serialize'](_0xe43e82){const _0x33f54c=_0x2552be;let _0x4a4930=this[_0x33f54c(0x1f0)][_0x33f54c(0x194)](_0xe43e82),_0x4d5e8c={};return _0x4a4930==null||_0x4a4930[_0x33f54c(0x1b2)]((_0x1ecb64,_0x1aedd5)=>{_0x4d5e8c[_0x1aedd5]={'outlineList':[..._0x1ecb64]};}),_0x4d5e8c;}[_0x2552be(0x1db)](_0x32db43,_0x3221b0){const _0x5e2a1c=_0x2552be;let _0x3204e3=new Map();Object[_0x5e2a1c(0x179)](_0x3221b0)[_0x5e2a1c(0x1b2)](([_0x4860aa,_0x10b7bf])=>{const _0x10ae6b=_0x5e2a1c;_0x3204e3[_0x10ae6b(0x1ec)](_0x4860aa,[..._0x10b7bf[_0x10ae6b(0x1d9)]??[]]);}),this[_0x5e2a1c(0x1f0)][_0x5e2a1c(0x1ec)](_0x32db43,_0x3204e3),this['_change$'][_0x5e2a1c(0x16a)]({'unitId':_0x32db43});}[_0x2552be(0x1e3)](){const _0x2162f8=_0x2552be;super[_0x2162f8(0x1e3)](),this[_0x2162f8(0x1f0)][_0x2162f8(0x1c6)](),this[_0x2162f8(0x160)]['complete']();}['_ensureUnitOutlines'](_0x414ba9){const _0x9124e8=_0x2552be;let _0x42065a=this['_outlines'][_0x9124e8(0x194)](_0x414ba9);return _0x42065a||(_0x42065a=new Map(),this[_0x9124e8(0x1f0)][_0x9124e8(0x1ec)](_0x414ba9,_0x42065a)),_0x42065a;}},F=class extends _0x1f59cd{constructor(..._0x428f75){const _0x3fcfa1=_0x2552be;super(..._0x428f75),N(this,'_error$',new _0x2a2d34()),N(this,'error$',this[_0x3fcfa1(0x1c7)]['asObservable']());}['emit'](_0x58f457){const _0x966952=_0x2552be;this[_0x966952(0x1c7)][_0x966952(0x16a)](_0x58f457);}[_0x2552be(0x1e3)](){const _0x422c9c=_0x2552be;super[_0x422c9c(0x1e3)](),this[_0x422c9c(0x1c7)][_0x422c9c(0x1ab)]();}};const I={'id':_0x2552be(0x1b0),'type':_0x42c5de[_0x2552be(0x16f)],'handler':(_0x10a33c,_0xa19a29)=>{const _0x50075e=_0x2552be;let _0x4879c9=_0x10a33c[_0x50075e(0x194)](P),_0x5091a3=_0x4879c9[_0x50075e(0x1c8)](_0xa19a29[_0x50075e(0x181)],_0xa19a29[_0x50075e(0x1c4)]);return _0x4879c9['setOutlines'](_0xa19a29[_0x50075e(0x181)],_0xa19a29['subUnitId'],xe(_0x5091a3,_0xa19a29[_0x50075e(0x175)])),!0x0;}},L={'id':_0x2552be(0x1e9),'type':_0x42c5de[_0x2552be(0x16f)],'handler':(_0x23e142,_0x17b863)=>{const _0x23c802=_0x2552be;let _0x345e37=_0x23e142['get'](P),_0x182679=_0x345e37['getOutlines'](_0x17b863[_0x23c802(0x181)],_0x17b863[_0x23c802(0x1c4)]);return _0x345e37[_0x23c802(0x1d8)](_0x17b863[_0x23c802(0x181)],_0x17b863[_0x23c802(0x1c4)],_0x182679[_0x23c802(0x188)](_0x2c555a=>_0x2c555a['id']!==_0x17b863[_0x23c802(0x1b6)])),!0x0;}};function R(_0x515a84,_0x4c11c4,_0x21739e){const _0x54fcd6=_0x2552be;let _0x4a507c=Le(_0x515a84);return!_0x4a507c||_0x4a507c[_0x54fcd6(0x169)]({'workbookTypes':[_0xd8479c],'worksheetTypes':[_0x230a03]},_0x4c11c4,_0x21739e);}function Ie(_0x5a7b03,_0x231799,_0x11051d){const _0x49a20d=_0x2552be;let _0x4a94f5=Re(_0x5a7b03);return((_0x4a94f5==null?void 0x0:_0x4a94f5[_0x49a20d(0x165)])??_0x4fe5d5(null))[_0x49a20d(0x1e8)](_0x1bdf9f(0x64),_0x4ef7b8(null),_0x5d1f67(()=>R(_0x5a7b03,_0x231799,_0x11051d)));}function Le(_0x145936){const _0x187edf=_0x2552be;if(typeof _0x145936[_0x187edf(0x1e2)]==_0x187edf(0x1c1)&&!_0x145936['has'](_0x891372))return null;try{return _0x145936[_0x187edf(0x194)](_0x891372);}catch{return null;}}function Re(_0x1658e0){const _0x513d38=_0x2552be;if(typeof _0x1658e0[_0x513d38(0x1e2)]==_0x513d38(0x1c1)&&!_0x1658e0[_0x513d38(0x1e2)](_0x51f3bd))return null;try{return _0x1658e0[_0x513d38(0x194)](_0x51f3bd);}catch{return null;}}const z={'id':_0x2552be(0x1df),'type':_0x42c5de[_0x2552be(0x1e5)],'handler':(_0x5c4c58,_0x28d55b)=>{const _0x215766=_0x2552be;if(!_0x28d55b)return!0x1;let _0x4b07c6=_0x5bb827(_0x5c4c58[_0x215766(0x194)](_0x241e59),_0x28d55b);if(!_0x4b07c6)return!0x1;let {unitId:_0x253be2,subUnitId:_0x489a70,worksheet:_0x5f278f}=_0x4b07c6;if(!R(_0x5c4c58,_0x253be2,_0x489a70))return!0x1;let _0x45f60a=_0x5c4c58[_0x215766(0x194)](P),_0x5d0e39={'id':_0x215766(0x187)+_0x293be6(0x6),'unitId':_0x253be2,'subUnitId':_0x489a70,'axis':_0x28d55b[_0x215766(0x1cc)],'start':_0x28d55b[_0x215766(0x19f)],'end':_0x28d55b[_0x215766(0x18a)],'collapsed':!0x1},_0x849c4a=_0x28d55b[_0x215766(0x1cc)]===_0x215766(0x1d6)?_0x5f278f[_0x215766(0x19a)]():_0x5f278f[_0x215766(0x1b9)](),_0x5a1569=_0x45f60a[_0x215766(0x1c8)](_0x253be2,_0x489a70),_0x5628d7=Se(_0x5a1569,_0x5d0e39),_0x40293c=(_0x5628d7==null?void 0x0:_0x5628d7['mergedOutlines'])??[],_0x233d4b=(_0x5628d7==null?void 0x0:_0x5628d7[_0x215766(0x1b7)])??_0x5d0e39,_0x1e59f4=E(_0x5628d7?_0x5a1569[_0x215766(0x188)](_0x57c307=>!_0x40293c[_0x215766(0x1d0)](_0x114622=>_0x114622['id']===_0x57c307['id'])):_0x5a1569,_0x233d4b,{'maxIndex':_0x849c4a});if(!_0x1e59f4['valid'])return _0x5c4c58[_0x215766(0x194)](F)[_0x215766(0x1a0)]({'reason':_0x1e59f4[_0x215766(0x1fa)]??_0x215766(0x17d),'commandId':z['id'],'unitId':_0x253be2,'subUnitId':_0x489a70,'axis':_0x28d55b[_0x215766(0x1cc)],'outlineId':_0x233d4b['id']}),!0x1;let _0x3d993e=[..._0x40293c[_0x215766(0x1a2)](_0x262d52=>({'id':L['id'],'params':{'unitId':_0x253be2,'subUnitId':_0x489a70,'outlineId':_0x262d52['id']}})),{'id':I['id'],'params':{'unitId':_0x253be2,'subUnitId':_0x489a70,'outline':_0x233d4b}}],_0x4bbeb5=[{'id':L['id'],'params':{'unitId':_0x253be2,'subUnitId':_0x489a70,'outlineId':_0x233d4b['id']}},..._0x40293c[_0x215766(0x1a2)](_0x4d8be8=>({'id':I['id'],'params':{'unitId':_0x253be2,'subUnitId':_0x489a70,'outline':_0x4d8be8}}))];return _0x5c69e0(_0x3d993e,_0x5c4c58['get'](_0xec1c95))[_0x215766(0x180)]?(_0x5c4c58['get'](_0x3d7842)['pushUndoRedo']({'unitID':_0x253be2,'undoMutations':_0x4bbeb5,'redoMutations':_0x3d993e}),!0x0):!0x1;}},B={'id':'sheet.mutation.clear-dimension-outlines','type':_0x42c5de[_0x2552be(0x16f)],'handler':(_0x57b757,_0x34b06e)=>{const _0x333a19=_0x2552be;let _0x3baa0d=_0x57b757[_0x333a19(0x194)](P),_0x314209=_0x3baa0d['getOutlines'](_0x34b06e['unitId'],_0x34b06e[_0x333a19(0x1c4)]);return _0x3baa0d['setOutlines'](_0x34b06e['unitId'],_0x34b06e['subUnitId'],Ce(_0x314209,_0x34b06e)),!0x0;}},V={'id':_0x2552be(0x200),'type':_0x42c5de['COMMAND'],'handler':(_0x147d6b,_0x5b5d83)=>{const _0x216dee=_0x2552be;if(!_0x5b5d83)return!0x1;let _0x23ff78=_0x5bb827(_0x147d6b[_0x216dee(0x194)](_0x241e59),_0x5b5d83);if(!_0x23ff78)return!0x1;let {unitId:_0x6a1fc2,subUnitId:_0x47e9c2}=_0x23ff78;if(!R(_0x147d6b,_0x6a1fc2,_0x47e9c2))return!0x1;let _0x27be32={'unitId':_0x6a1fc2,'subUnitId':_0x47e9c2,'axis':_0x5b5d83[_0x216dee(0x1cc)],'start':_0x5b5d83[_0x216dee(0x19f)],'end':_0x5b5d83['end']},_0xb65329=_0x147d6b[_0x216dee(0x194)](P)[_0x216dee(0x1c8)](_0x6a1fc2,_0x47e9c2)['filter'](_0x4c2f33=>w(_0x4c2f33,_0x27be32)&&_0x4c2f33[_0x216dee(0x19f)]>=_0x5b5d83['start']&&_0x4c2f33[_0x216dee(0x18a)]<=_0x5b5d83[_0x216dee(0x18a)]);if(_0xb65329[_0x216dee(0x198)]===0x0)return _0x147d6b[_0x216dee(0x194)](F)[_0x216dee(0x1a0)]({'reason':'clear-range-not-contain-outline','commandId':V['id'],'unitId':_0x6a1fc2,'subUnitId':_0x47e9c2,'axis':_0x5b5d83[_0x216dee(0x1cc)]}),!0x1;let _0x5d7797=[{'id':B['id'],'params':{..._0x27be32,'removedOutlineIds':_0xb65329[_0x216dee(0x1a2)](_0x5e326f=>_0x5e326f['id'])}}],_0x2fef0b=_0xb65329[_0x216dee(0x1a2)](_0x571fa0=>({'id':I['id'],'params':{'unitId':_0x6a1fc2,'subUnitId':_0x47e9c2,'outline':_0x571fa0}}));return _0x5c69e0(_0x5d7797,_0x147d6b[_0x216dee(0x194)](_0xec1c95))[_0x216dee(0x180)]?(_0x147d6b[_0x216dee(0x194)](_0x3d7842)[_0x216dee(0x167)]({'unitID':_0x6a1fc2,'undoMutations':_0x2fef0b,'redoMutations':_0x5d7797}),!0x0):!0x1;}},ze={'id':_0x2552be(0x1a9),'type':_0x42c5de[_0x2552be(0x1e5)],'handler':(_0x19b640,_0xe9cf2d)=>{const _0x5294eb=_0x2552be;if(!_0xe9cf2d)return!0x1;let _0xd84f79=_0x5bb827(_0x19b640['get'](_0x241e59),_0xe9cf2d);if(!_0xd84f79)return!0x1;let {unitId:_0x129088,subUnitId:_0x44e473}=_0xd84f79;if(!R(_0x19b640,_0x129088,_0x44e473))return!0x1;let _0x57e34c=_0x19b640['get'](P)[_0x5294eb(0x1c8)](_0x129088,_0x44e473)[_0x5294eb(0x162)](_0x3f499e=>_0x3f499e['id']===_0xe9cf2d['outlineId']);if(!_0x57e34c)return!0x1;let _0x5b1899=[{'id':L['id'],'params':{'unitId':_0x129088,'subUnitId':_0x44e473,'outlineId':_0x57e34c['id'],'outline':_0x57e34c}}],_0xf14de2=[{'id':I['id'],'params':{'unitId':_0x129088,'subUnitId':_0x44e473,'outline':_0x57e34c}}];return _0x5c69e0(_0x5b1899,_0x19b640[_0x5294eb(0x194)](_0xec1c95))[_0x5294eb(0x180)]?(_0x19b640[_0x5294eb(0x194)](_0x3d7842)[_0x5294eb(0x167)]({'unitID':_0x129088,'undoMutations':_0xf14de2,'redoMutations':_0x5b1899}),!0x0):!0x1;}},H={'id':'sheet.mutation.set-dimension-outline-collapsed','type':_0x42c5de[_0x2552be(0x16f)],'handler':(_0x8b13a6,_0x5a6a2e)=>{const _0x510f3=_0x2552be;let _0x4ead48=_0x8b13a6['get'](P),_0x448b1c=_0x4ead48[_0x510f3(0x1c8)](_0x5a6a2e['unitId'],_0x5a6a2e[_0x510f3(0x1c4)]),_0x2573ec=_0x448b1c[_0x510f3(0x162)](_0x1deac0=>_0x1deac0['id']===_0x5a6a2e[_0x510f3(0x1b6)]);return _0x2573ec&&_0x4ead48[_0x510f3(0x1d8)](_0x5a6a2e['unitId'],_0x5a6a2e[_0x510f3(0x1c4)],_0x448b1c[_0x510f3(0x1a2)](_0x260d50=>_0x260d50[_0x510f3(0x181)]!==_0x2573ec['unitId']||_0x260d50['subUnitId']!==_0x2573ec[_0x510f3(0x1c4)]||_0x260d50[_0x510f3(0x1cc)]!==_0x2573ec['axis']||_0x260d50['start']!==_0x2573ec[_0x510f3(0x19f)]||_0x260d50[_0x510f3(0x18a)]!==_0x2573ec[_0x510f3(0x18a)]?_0x260d50:{..._0x260d50,'collapsed':_0x5a6a2e[_0x510f3(0x193)]})),!0x0;}};function Be(_0x150999,_0x2f6de1,_0x3f2b40,_0x1ad0df){const _0x4e8e82=_0x2552be;return _0x150999===_0x4e8e82(0x1d6)?{'startRow':_0x2f6de1,'endRow':_0x3f2b40,'startColumn':0x0,'endColumn':_0x1ad0df[_0x4e8e82(0x17e)]()-0x1}:{'startRow':0x0,'endRow':_0x1ad0df[_0x4e8e82(0x19a)]()-0x1,'startColumn':_0x2f6de1,'endColumn':_0x3f2b40};}function Ve(_0x362e95){return _0x362e95==='row'?_0x3c2892['id']:_0x5d70bb['id'];}function He(_0x24045d){return _0x24045d==='row'?_0x35cb71['id']:_0x34dce4['id'];}function Ue(_0x22c288,_0x31fd9b,_0x4ba758,_0x24c0be){const _0x4c563b=_0x2552be;let _0x3eef17=_0x31fd9b?[Be(_0x22c288[_0x4c563b(0x1cc)],_0x22c288[_0x4c563b(0x19f)],_0x22c288[_0x4c563b(0x18a)],_0x4ba758)]:We(_0x22c288,_0x24c0be,_0x4ba758),_0x5d6c61=_0x31fd9b?Ve(_0x22c288[_0x4c563b(0x1cc)]):He(_0x22c288['axis']);return[{'id':H['id'],'params':{'unitId':_0x22c288[_0x4c563b(0x181)],'subUnitId':_0x22c288['subUnitId'],'outlineId':_0x22c288['id'],'outline':_0x22c288,'collapsed':_0x31fd9b}},..._0x3eef17[_0x4c563b(0x1a2)](_0x120e67=>({'id':_0x5d6c61,'params':{'unitId':_0x22c288[_0x4c563b(0x181)],'subUnitId':_0x22c288[_0x4c563b(0x1c4)],'ranges':[_0x120e67],'dimensionOutlineId':_0x22c288['id']}}))];}function We(_0x506140,_0x361739,_0x327434){const _0x5a15fc=_0x2552be;let _0x103f42=we(_0x361739[_0x5a15fc(0x1a2)](_0x529153=>Ge(_0x529153,_0x506140)?{..._0x529153,'collapsed':!0x1}:_0x529153),_0x506140[_0x5a15fc(0x181)],_0x506140['subUnitId'],_0x506140[_0x5a15fc(0x1cc)]);return Ke({'start':_0x506140['start'],'end':_0x506140[_0x5a15fc(0x18a)]},_0x103f42)[_0x5a15fc(0x1a2)](_0xefe5a7=>Be(_0x506140[_0x5a15fc(0x1cc)],_0xefe5a7[_0x5a15fc(0x19f)],_0xefe5a7[_0x5a15fc(0x18a)],_0x327434));}function Ge(_0x126872,_0x17f447){const _0xfce4c4=_0x2552be;return _0x126872[_0xfce4c4(0x181)]===_0x17f447[_0xfce4c4(0x181)]&&_0x126872[_0xfce4c4(0x1c4)]===_0x17f447[_0xfce4c4(0x1c4)]&&_0x126872[_0xfce4c4(0x1cc)]===_0x17f447[_0xfce4c4(0x1cc)]&&_0x126872[_0xfce4c4(0x19f)]===_0x17f447[_0xfce4c4(0x19f)]&&_0x126872[_0xfce4c4(0x18a)]===_0x17f447['end'];}function Ke(_0x2fad72,_0x4084f2){const _0x36b7c9=_0x2552be;let _0xfc5c88=_0x2fad72[_0x36b7c9(0x19f)],_0x516ffa=[];for(let _0x24a2d7 of _0x4084f2)if(!(_0x24a2d7[_0x36b7c9(0x18a)]<_0xfc5c88||_0x24a2d7[_0x36b7c9(0x19f)]>_0x2fad72[_0x36b7c9(0x18a)])&&(_0x24a2d7['start']>_0xfc5c88&&_0x516ffa[_0x36b7c9(0x170)]({'start':_0xfc5c88,'end':Math[_0x36b7c9(0x1d7)](_0x24a2d7[_0x36b7c9(0x19f)]-0x1,_0x2fad72[_0x36b7c9(0x18a)])}),_0xfc5c88=Math[_0x36b7c9(0x17b)](_0xfc5c88,_0x24a2d7[_0x36b7c9(0x18a)]+0x1),_0xfc5c88>_0x2fad72[_0x36b7c9(0x18a)]))break;return _0xfc5c88<=_0x2fad72[_0x36b7c9(0x18a)]&&_0x516ffa[_0x36b7c9(0x170)]({'start':_0xfc5c88,'end':_0x2fad72[_0x36b7c9(0x18a)]}),_0x516ffa;}const qe={'id':_0x2552be(0x1a3),'type':_0x42c5de[_0x2552be(0x1e5)],'handler':(_0x67a539,_0x58eba9)=>{const _0x17982b=_0x2552be;if(!_0x58eba9)return!0x1;let _0x552f38=_0x5bb827(_0x67a539['get'](_0x241e59),_0x58eba9);if(!_0x552f38)return!0x1;let {unitId:_0xe5ccd9,subUnitId:_0x1b3504,worksheet:_0x1ea647}=_0x552f38;if(!R(_0x67a539,_0xe5ccd9,_0x1b3504))return!0x1;let _0x5e36c8=_0x67a539[_0x17982b(0x194)](P)[_0x17982b(0x1c8)](_0xe5ccd9,_0x1b3504),_0x1cfd45=_0x5e36c8[_0x17982b(0x162)](_0x11c0a9=>_0x11c0a9['id']===_0x58eba9[_0x17982b(0x1b6)]);if(!_0x1cfd45||_0x1cfd45[_0x17982b(0x193)]===_0x58eba9[_0x17982b(0x193)])return!0x1;let _0x513644=Ue(_0x1cfd45,_0x58eba9[_0x17982b(0x193)],_0x1ea647,_0x5e36c8),_0x58730a=Ue(_0x1cfd45,!_0x58eba9[_0x17982b(0x193)],_0x1ea647,_0x5e36c8);return _0x5c69e0(_0x513644,_0x67a539[_0x17982b(0x194)](_0xec1c95))[_0x17982b(0x180)]?(_0x67a539[_0x17982b(0x194)](_0x3d7842)['pushUndoRedo']({'unitID':_0xe5ccd9,'undoMutations':_0x58730a,'redoMutations':_0x513644}),!0x0):!0x1;}},U={'id':_0x2552be(0x18c),'type':_0x42c5de['MUTATION'],'handler':(_0x559171,_0x323a59)=>{const _0x45af3e=_0x2552be;let _0xc91e27=_0x559171[_0x45af3e(0x194)](P),_0x534ddd=Je(_0xc91e27[_0x45af3e(0x1c8)](_0x323a59[_0x45af3e(0x181)],_0x323a59[_0x45af3e(0x1c4)]),_0x323a59);return _0xc91e27[_0x45af3e(0x1d8)](_0x323a59[_0x45af3e(0x181)],_0x323a59['subUnitId'],_0x534ddd),!0x0;}};function Je(_0x224f60,_0x242938){const _0x14e1f2=_0x2552be;switch(_0x242938[_0x14e1f2(0x201)]){case _0x14e1f2(0x1ef):return _0x242938['restoreOutlines']?Ye(_0x224f60,_0x242938):D(_0x224f60,_0x242938);case'delete':return O(_0x224f60,_0x242938);case'move':return k(_0x224f60,_0x242938);}}function Ye(_0x244f3b,_0x59ab84){const _0x16338f=_0x2552be;return[..._0x244f3b[_0x16338f(0x188)](_0x241421=>_0x241421[_0x16338f(0x181)]!==_0x59ab84[_0x16338f(0x181)]||_0x241421['subUnitId']!==_0x59ab84[_0x16338f(0x1c4)]||_0x241421['axis']!==_0x59ab84['axis']),..._0x59ab84[_0x16338f(0x1ba)]];}const W=_0x2552be(0x164);var Xe=_0x2552be(0x1dc),Ze=_0x2552be(0x1fb);const Qe={};function _0x38a2(_0x419161,_0x1a9cb8){_0x419161=_0x419161-0x158;const _0x327d3e=_0x327d();let _0x38a208=_0x327d3e[_0x419161];return _0x38a208;}function G(_0x51ab05,_0x228909){return function(_0x72c19,_0x25a0bc){_0x228909(_0x72c19,_0x25a0bc,_0x51ab05);};}function K(_0x28b277,_0x32874d,_0x1e40d6,_0x501e79){const _0x40a916=_0x2552be;var _0x213ba6=arguments[_0x40a916(0x198)],_0x20993e=_0x213ba6<0x3?_0x32874d:_0x501e79===null?_0x501e79=Object[_0x40a916(0x1f2)](_0x32874d,_0x1e40d6):_0x501e79,_0x404f41;if(typeof Reflect==_0x40a916(0x1f4)&&typeof Reflect[_0x40a916(0x1d2)]==_0x40a916(0x1c1))_0x20993e=Reflect[_0x40a916(0x1d2)](_0x28b277,_0x32874d,_0x1e40d6,_0x501e79);else{for(var _0x143a0b=_0x28b277[_0x40a916(0x198)]-0x1;_0x143a0b>=0x0;_0x143a0b--)(_0x404f41=_0x28b277[_0x143a0b])&&(_0x20993e=(_0x213ba6<0x3?_0x404f41(_0x20993e):_0x213ba6>0x3?_0x404f41(_0x32874d,_0x1e40d6,_0x20993e):_0x404f41(_0x32874d,_0x1e40d6))||_0x20993e);}return _0x213ba6>0x3&&_0x20993e&&Object[_0x40a916(0x1fc)](_0x32874d,_0x1e40d6,_0x20993e),_0x20993e;}const q={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let J=class extends _0x1f59cd{constructor(_0x46c477,_0x5413f,_0x809106,_0x44a9f8){const _0x4803b1=_0x2552be;super(),this[_0x4803b1(0x1d5)]=_0x46c477,this[_0x4803b1(0x196)]=_0x5413f,this[_0x4803b1(0x1ac)]=_0x809106,this[_0x4803b1(0x176)]=_0x44a9f8,this['_initCommandInterceptor']();}['_initCommandInterceptor'](){const _0x139fc4=_0x2552be;this[_0x139fc4(0x1e7)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x3620ea=>$e(_0x3620ea,(_0x4e2f91,_0x4d465c)=>this[_0x139fc4(0x1ac)][_0x139fc4(0x1c8)](_0x4e2f91,_0x4d465c),this['_getCommandScope'](_0x3620ea[_0x139fc4(0x1f5)]),_0x5bbfa6=>this[_0x139fc4(0x176)][_0x139fc4(0x1a0)](_0x5bbfa6))}));}[_0x2552be(0x1c9)](_0x460caf){const _0x4b3f5c=_0x2552be;let _0xddc4a0=_0x460caf,_0x11e16d=_0xddc4a0!=null&&_0xddc4a0[_0x4b3f5c(0x181)]?this[_0x4b3f5c(0x1d5)][_0x4b3f5c(0x17c)](_0xddc4a0['unitId'],_0x149174['UNIVER_SHEET']):this[_0x4b3f5c(0x1d5)][_0x4b3f5c(0x158)](_0x149174[_0x4b3f5c(0x1bc)]);if(!_0x11e16d)return;let _0x5d2ff6=_0xddc4a0!=null&&_0xddc4a0['subUnitId']?_0x11e16d[_0x4b3f5c(0x199)](_0xddc4a0['subUnitId']):_0x11e16d[_0x4b3f5c(0x1af)]();if(_0x5d2ff6)return{'unitId':_0x11e16d[_0x4b3f5c(0x1e0)](),'subUnitId':_0x5d2ff6[_0x4b3f5c(0x1ff)]()};}};J=K([G(0x0,_0x241e59),G(0x1,_0x259385(_0x2d3c87)),G(0x2,_0x259385(P)),G(0x3,_0x259385(F))],J);function $e(_0x405408,_0x1ef5ce,_0x4a75b8,_0x4590ac){const _0x1b62d2=_0x2552be;let _0x571aa1=tt(_0x405408,_0x4a75b8);if(!_0x571aa1)return Z();let _0x1bb55b=_0x1ef5ce(_0x571aa1[_0x1b62d2(0x181)],_0x571aa1[_0x1b62d2(0x1c4)]);if(!_0x1bb55b['some'](_0x18b16f=>_0x18b16f['axis']===_0x571aa1[_0x1b62d2(0x1cc)]))return Z();et(_0x1bb55b,_0x571aa1,_0x405408['id'],_0x4590ac);let _0x453cb0=it(_0x571aa1,_0x1bb55b);return{'redos':[{'id':U['id'],'params':_0x571aa1}],'undos':[{'id':U['id'],'params':_0x453cb0}],'preRedos':[],'preUndos':[]};}function et(_0x3b0d27,_0x51daeb,_0x28eb9b,_0x266195){const _0xc4a5d=_0x2552be;try{switch(_0x51daeb[_0xc4a5d(0x201)]){case _0xc4a5d(0x1ef):D(_0x3b0d27,_0x51daeb);break;case _0xc4a5d(0x1e6):O(_0x3b0d27,_0x51daeb);break;case _0xc4a5d(0x171):k(_0x3b0d27,_0x51daeb);}}catch(_0x597264){throw _0x266195==null||_0x266195({'reason':ye(_0x597264),'commandId':_0x28eb9b,'unitId':_0x51daeb[_0xc4a5d(0x181)],'subUnitId':_0x51daeb[_0xc4a5d(0x1c4)],'axis':_0x51daeb['axis'],'outlineId':be(_0x597264)}),new _0x6678d2(_0x597264 instanceof Error?_0x597264[_0xc4a5d(0x195)]:_0xc4a5d(0x1aa));}}function tt(_0x4f65fd,_0x44b4c6){const _0x3a70f3=_0x2552be;switch(_0x4f65fd['id']){case _0x576ba9['id']:return Y(_0x4f65fd[_0x3a70f3(0x1f5)],_0x3a70f3(0x1d6),_0x44b4c6);case _0x540713['id']:return Y(_0x4f65fd[_0x3a70f3(0x1f5)],_0x3a70f3(0x1b5),_0x44b4c6);case _0x19474a['id']:return nt(_0x4f65fd[_0x3a70f3(0x1f5)],'row',_0x44b4c6);case _0x289843['id']:return nt(_0x4f65fd[_0x3a70f3(0x1f5)],_0x3a70f3(0x1b5),_0x44b4c6);case _0x32509d['id']:return rt(_0x4f65fd[_0x3a70f3(0x1f5)],'row',_0x44b4c6);case _0x5c3cdd['id']:return rt(_0x4f65fd['params'],'column',_0x44b4c6);default:return null;}}function Y(_0x53cfdc,_0x2ec943,_0x334792){const _0x1645cc=_0x2552be;let _0x51c991=X(_0x53cfdc,_0x334792);if(!(_0x53cfdc!=null&&_0x53cfdc[_0x1645cc(0x18d)])||!_0x51c991)return null;let _0x18ddad=_0x2ec943==='row'?_0x53cfdc['range']['startRow']:_0x53cfdc[_0x1645cc(0x18d)][_0x1645cc(0x1d3)],_0x5ce83f=_0x2ec943===_0x1645cc(0x1d6)?_0x53cfdc['range'][_0x1645cc(0x1c2)]:_0x53cfdc[_0x1645cc(0x18d)]['endColumn'];return{..._0x51c991,'axis':_0x2ec943,'type':'insert','index':_0x18ddad,'count':_0x5ce83f-_0x18ddad+0x1};}function nt(_0x527605,_0x47950d,_0x303da3){const _0x419e17=_0x2552be;let _0x191159=X(_0x527605,_0x303da3);if(!(_0x527605!=null&&_0x527605[_0x419e17(0x18d)])||!_0x191159)return null;let _0x3bddf6=_0x47950d===_0x419e17(0x1d6)?_0x527605['range']['startRow']:_0x527605[_0x419e17(0x18d)]['startColumn'],_0x555a9e=_0x47950d===_0x419e17(0x1d6)?_0x527605[_0x419e17(0x18d)]['endRow']:_0x527605[_0x419e17(0x18d)][_0x419e17(0x173)];return{..._0x191159,'axis':_0x47950d,'type':_0x419e17(0x1e6),'start':_0x3bddf6,'end':_0x555a9e};}function rt(_0x23effb,_0x4cd064,_0x40d035){const _0x850808=_0x2552be;let _0x372da1=X(_0x23effb,_0x40d035);if(!(_0x23effb!=null&&_0x23effb[_0x850808(0x190)])||!_0x23effb[_0x850808(0x18e)]||!_0x372da1)return null;let _0x4e05eb=_0x4cd064===_0x850808(0x1d6)?_0x23effb[_0x850808(0x190)][_0x850808(0x1b1)]:_0x23effb['fromRange'][_0x850808(0x1d3)],_0x42c9bc=_0x4cd064==='row'?_0x23effb[_0x850808(0x190)]['endRow']:_0x23effb[_0x850808(0x190)]['endColumn'],_0x323287=_0x4cd064==='row'?_0x23effb[_0x850808(0x18e)][_0x850808(0x1b1)]:_0x23effb[_0x850808(0x18e)]['startColumn'];return{..._0x372da1,'axis':_0x4cd064,'type':_0x850808(0x171),'sourceStart':_0x4e05eb,'sourceEnd':_0x42c9bc,'destinationIndex':_0x323287};}function it(_0x1dc0e2,_0x4599d6){const _0x19ec84=_0x2552be;switch(_0x1dc0e2[_0x19ec84(0x201)]){case _0x19ec84(0x1ef):return{'unitId':_0x1dc0e2[_0x19ec84(0x181)],'subUnitId':_0x1dc0e2['subUnitId'],'axis':_0x1dc0e2[_0x19ec84(0x1cc)],'type':_0x19ec84(0x1e6),'start':_0x1dc0e2[_0x19ec84(0x1d1)],'end':_0x1dc0e2[_0x19ec84(0x1d1)]+_0x1dc0e2[_0x19ec84(0x1dd)]-0x1};case'delete':return{'unitId':_0x1dc0e2['unitId'],'subUnitId':_0x1dc0e2[_0x19ec84(0x1c4)],'axis':_0x1dc0e2[_0x19ec84(0x1cc)],'type':'insert','index':_0x1dc0e2[_0x19ec84(0x19f)],'count':_0x1dc0e2['end']-_0x1dc0e2[_0x19ec84(0x19f)]+0x1,'restoreOutlines':_0x4599d6[_0x19ec84(0x188)](_0x38e353=>_0x38e353[_0x19ec84(0x181)]===_0x1dc0e2[_0x19ec84(0x181)]&&_0x38e353[_0x19ec84(0x1c4)]===_0x1dc0e2['subUnitId']&&_0x38e353[_0x19ec84(0x1cc)]===_0x1dc0e2[_0x19ec84(0x1cc)])};case _0x19ec84(0x171):return at(_0x1dc0e2);}}function at(_0x3f2c43){const _0x2be49b=_0x2552be;let _0x1cae23=_0x3f2c43[_0x2be49b(0x189)]-_0x3f2c43[_0x2be49b(0x178)]+0x1;return _0x3f2c43[_0x2be49b(0x1ed)]>=_0x3f2c43['sourceStart']&&_0x3f2c43[_0x2be49b(0x1ed)]<=_0x3f2c43[_0x2be49b(0x189)]+0x1?{..._0x3f2c43}:_0x3f2c43[_0x2be49b(0x1ed)]>_0x3f2c43[_0x2be49b(0x189)]+0x1?{..._0x3f2c43,'sourceStart':_0x3f2c43['destinationIndex']-_0x1cae23,'sourceEnd':_0x3f2c43[_0x2be49b(0x1ed)]-0x1,'destinationIndex':_0x3f2c43[_0x2be49b(0x178)]}:{..._0x3f2c43,'sourceStart':_0x3f2c43[_0x2be49b(0x1ed)],'sourceEnd':_0x3f2c43['destinationIndex']+_0x1cae23-0x1,'destinationIndex':_0x3f2c43['sourceEnd']+0x1};}function X(_0x117a10,_0x59e733){const _0x5f839=_0x2552be;let _0x403ef0=(_0x117a10==null?void 0x0:_0x117a10[_0x5f839(0x181)])??(_0x59e733==null?void 0x0:_0x59e733[_0x5f839(0x181)]),_0x2cee26=(_0x117a10==null?void 0x0:_0x117a10[_0x5f839(0x1c4)])??(_0x59e733==null?void 0x0:_0x59e733[_0x5f839(0x1c4)]);return _0x403ef0&&_0x2cee26?{'unitId':_0x403ef0,'subUnitId':_0x2cee26}:null;}function Z(){const _0x50bd84=_0x2552be;return{'redos':[...q[_0x50bd84(0x15e)]],'undos':[...q[_0x50bd84(0x183)]],'preRedos':[...q[_0x50bd84(0x16b)]??[]],'preUndos':[...q[_0x50bd84(0x1a4)]??[]]};}let Q=class extends _0x1f59cd{constructor(_0x260ae3,_0x141566){const _0x551fd1=_0x2552be;super(),this[_0x551fd1(0x17f)]=_0x260ae3,this[_0x551fd1(0x1ac)]=_0x141566,this['_initResource']();}[_0x2552be(0x186)](){const _0x2e0d35=_0x2552be;this['disposeWithMe'](this['_resourceManagerService'][_0x2e0d35(0x184)]({'pluginName':W,'businesses':[_0x149174[_0x2e0d35(0x1bc)]],'toJson':_0x36216e=>JSON[_0x2e0d35(0x1a8)](this[_0x2e0d35(0x1ac)][_0x2e0d35(0x1c5)](_0x36216e)),'parseJson':_0x3baf8b=>JSON[_0x2e0d35(0x1eb)](_0x3baf8b),'onLoad':(_0x2471d6,_0x4e666e)=>this[_0x2e0d35(0x1ac)][_0x2e0d35(0x1db)](_0x2471d6,_0x4e666e),'onUnLoad':_0x425c43=>this[_0x2e0d35(0x1ac)][_0x2e0d35(0x15f)](_0x425c43)}));}};Q=K([G(0x0,_0x12fef9),G(0x1,_0x259385(P))],Q);let $=class extends _0x14323e{constructor(_0x13e0cb=Qe,_0x1f57eb,_0x60d41,_0x28ff81){const _0x27a1f3=_0x2552be;super(),this[_0x27a1f3(0x15c)]=_0x13e0cb,this['_injector']=_0x1f57eb,this[_0x27a1f3(0x1b4)]=_0x60d41,this[_0x27a1f3(0x1ad)]=_0x28ff81;let {..._0x31e9f8}=_0x2da987({},Qe,this[_0x27a1f3(0x15c)]);this[_0x27a1f3(0x1ad)][_0x27a1f3(0x172)](_0x27a1f3(0x177),_0x31e9f8);}[_0x2552be(0x1f1)](){const _0x53cfa5=_0x2552be;this[_0x53cfa5(0x1ee)][_0x53cfa5(0x1fd)]([P]),this[_0x53cfa5(0x1ee)][_0x53cfa5(0x1fd)]([F]),this['_injector'][_0x53cfa5(0x1fd)]([Q]),this[_0x53cfa5(0x1ee)][_0x53cfa5(0x1fd)]([J]),this[_0x53cfa5(0x1f8)](),this[_0x53cfa5(0x1ee)][_0x53cfa5(0x194)](P),this[_0x53cfa5(0x1ee)]['get'](F),this[_0x53cfa5(0x1ee)][_0x53cfa5(0x194)](Q),this[_0x53cfa5(0x1ee)]['get'](J);}['_initRegisterCommand'](){[z,ze,qe,V]['forEach'](_0x211e9b=>{const _0x254b04=_0x38a2;this[_0x254b04(0x1e7)](this['_commandService'][_0x254b04(0x174)](_0x211e9b));}),[I,L,H,B,U]['forEach'](_0x1a6f0c=>{const _0x8d7eb9=_0x38a2;this[_0x8d7eb9(0x1e7)](this[_0x8d7eb9(0x1b4)]['registerCommand'](_0x1a6f0c));});}};N($,_0x2552be(0x1cd),W),N($,_0x2552be(0x166),Xe),N($,_0x2552be(0x1a7),Ze),N($,_0x2552be(0x201),_0x149174['UNIVER_SHEET']),$=K([_0x24a179(_0x41b4af,_0x4eb0bf),G(0x1,_0x259385(_0x2948c4)),G(0x2,_0xec1c95),G(0x3,_0x88f4c1)],$);export{z as AddDimensionOutlineCommand,I as AddDimensionOutlineMutation,V as ClearDimensionOutlinesCommand,B as ClearDimensionOutlinesMutation,_e as DimensionOutlineAxis,ve as DimensionOutlineErrorReason,ze as RemoveDimensionOutlineCommand,L as RemoveDimensionOutlineMutation,W as SHEET_OUTLINE_PLUGIN,qe as SetDimensionOutlineCollapsedCommand,H as SetDimensionOutlineCollapsedMutation,F as SheetsOutlineErrorService,P as SheetsOutlineModel,U as TransformDimensionOutlinesMutation,$ as UniverSheetsOutlinePlugin,T as buildDimensionOutlineTree,E as canAddDimensionOutline,Ie as getDimensionOutlineViewPermission$,R as hasDimensionOutlineViewPermission,O as transformOutlinesByDelete,D as transformOutlinesByInsert,k as transformOutlinesByMove};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x39e1aa=_0xe1b9;(function(_0x25c429,_0x54851c){var _0x950144=_0xe1b9,_0x4b3585=_0x25c429();while(!![]){try{var _0x1a0692=-parseInt(_0x950144(0x192))/0x1*(parseInt(_0x950144(0x181))/0x2)+parseInt(_0x950144(0x17a))/0x3+-parseInt(_0x950144(0x191))/0x4*(parseInt(_0x950144(0x180))/0x5)+parseInt(_0x950144(0x189))/0x6+-parseInt(_0x950144(0x185))/0x7+parseInt(_0x950144(0x18a))/0x8+-parseInt(_0x950144(0x186))/0x9*(-parseInt(_0x950144(0x178))/0xa);if(_0x1a0692===_0x54851c)break;else _0x4b3585['push'](_0x4b3585['shift']());}catch(_0x117dc5){_0x4b3585['push'](_0x4b3585['shift']());}}}(_0x1a96,0x73c78));import{AddDimensionOutlineCommand as _0x14ba49,ClearDimensionOutlinesCommand as _0x467796,DimensionOutlineAxis as _0x1258d0,DimensionOutlineErrorReason as _0x29ab78,RemoveDimensionOutlineCommand as _0xdb1f28,SetDimensionOutlineCollapsedCommand as _0x3e79e2,SheetsOutlineModel as _0x3526e7}from'@univerjs-pro/sheets-outline';import{FEnum as _0x5da7be}from'@univerjs/core/facade';function _0xe1b9(_0x4a694b,_0x55d8bf){_0x4a694b=_0x4a694b-0x178;var _0x1a961f=_0x1a96();var _0xe1b946=_0x1a961f[_0x4a694b];return _0xe1b946;}import{FWorksheet as _0x47c83b}from'@univerjs/sheets/facade';var l=class extends _0x5da7be{get[_0x39e1aa(0x184)](){return _0x1258d0;}get[_0x39e1aa(0x18f)](){return _0x29ab78;}};_0x5da7be[_0x39e1aa(0x17f)](l);var u=class extends _0x47c83b{[_0x39e1aa(0x190)](_0x50e197,_0xe81133){var _0x49c791=_0x39e1aa;return this[_0x49c791(0x183)](_0x1258d0[_0x49c791(0x18d)],_0x50e197,_0xe81133);}['addColumnOutline'](_0x1b94f5,_0x3667e5){var _0x34a4a9=_0x39e1aa;return this['_addDimensionOutline'](_0x1258d0[_0x34a4a9(0x188)],_0x1b94f5,_0x3667e5);}['removeDimensionOutline'](_0x8efba3){var _0x285d04=_0x39e1aa;return this[_0x285d04(0x187)]['syncExecuteCommand'](_0xdb1f28['id'],{'unitId':this[_0x285d04(0x17d)][_0x285d04(0x18e)](),'subUnitId':this[_0x285d04(0x18b)][_0x285d04(0x182)](),'outlineId':_0x8efba3}),this;}['setDimensionOutlineCollapsed'](_0x50e367,_0x4b2e4f){var _0xb1b056=_0x39e1aa;return this['_commandService'][_0xb1b056(0x17b)](_0x3e79e2['id'],{'unitId':this[_0xb1b056(0x17d)][_0xb1b056(0x18e)](),'subUnitId':this[_0xb1b056(0x18b)]['getSheetId'](),'outlineId':_0x50e367,'collapsed':_0x4b2e4f}),this;}[_0x39e1aa(0x17c)](_0x3ecb52,_0x538777,_0x330d6c){var _0x470d8a=_0x39e1aa;return this['_commandService'][_0x470d8a(0x17b)](_0x467796['id'],{'unitId':this[_0x470d8a(0x17d)][_0x470d8a(0x18e)](),'subUnitId':this[_0x470d8a(0x18b)][_0x470d8a(0x182)](),'axis':_0x3ecb52,'start':_0x538777,'end':_0x330d6c}),this;}['getDimensionOutlines'](_0x4ec3a7){var _0x24dc2b=_0x39e1aa;let _0x3cf39d=this['_injector'][_0x24dc2b(0x17e)](_0x3526e7)['getOutlines'](this[_0x24dc2b(0x17d)]['getUnitId'](),this[_0x24dc2b(0x18b)][_0x24dc2b(0x182)]());return _0x4ec3a7?_0x3cf39d[_0x24dc2b(0x179)](_0x5ca77=>_0x5ca77[_0x24dc2b(0x18c)]===_0x4ec3a7):_0x3cf39d;}['_addDimensionOutline'](_0xc4c11c,_0xb895ad,_0x2f5961){var _0x114850=_0x39e1aa;return this[_0x114850(0x187)][_0x114850(0x17b)](_0x14ba49['id'],{'unitId':this[_0x114850(0x17d)][_0x114850(0x18e)](),'subUnitId':this[_0x114850(0x18b)][_0x114850(0x182)](),'axis':_0xc4c11c,'start':_0xb895ad,'end':_0xb895ad+_0x2f5961-0x1}),this;}};_0x47c83b[_0x39e1aa(0x17f)](u);export{};function _0x1a96(){var _0x138778=['addRowOutline','1114700qIuVIi','721642zlgdqY','170tQqGHs','filter','83670MuwoCc','syncExecuteCommand','clearDimensionOutlines','_workbook','get','extend','5BUPCxt','2KZsBZD','getSheetId','_addDimensionOutline','DimensionOutlineAxis','5597403CzhFAs','362709vcmcmd','_commandService','COLUMN','5112546irRhef','5672640saQgXo','_worksheet','axis','ROW','getUnitId','DimensionOutlineErrorReason'];_0x1a96=function(){return _0x138778;};return _0x1a96();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3a3b(_0x4752cf,_0x36561c){_0x4752cf=_0x4752cf-0xb5;const _0x3d421d=_0x3d42();let _0x3a3b38=_0x3d421d[_0x4752cf];return _0x3a3b38;}const _0x43fe3d=_0x3a3b;(function(_0x38672e,_0x5683d5){const _0x33b28f=_0x3a3b,_0x336cde=_0x38672e();while(!![]){try{const _0xf5a685=parseInt(_0x33b28f(0x104))/0x1*(-parseInt(_0x33b28f(0x14e))/0x2)+-parseInt(_0x33b28f(0x12b))/0x3+parseInt(_0x33b28f(0x15d))/0x4+-parseInt(_0x33b28f(0xe8))/0x5+parseInt(_0x33b28f(0xbf))/0x6*(parseInt(_0x33b28f(0xe6))/0x7)+parseInt(_0x33b28f(0xe5))/0x8*(-parseInt(_0x33b28f(0x111))/0x9)+parseInt(_0x33b28f(0xde))/0xa*(parseInt(_0x33b28f(0xdf))/0xb);if(_0xf5a685===_0x5683d5)break;else _0x336cde['push'](_0x336cde['shift']());}catch(_0x36833a){_0x336cde['push'](_0x336cde['shift']());}}}(_0x3d42,0x3bfe4));import{CommandType as _0x5ebc9c,CustomCommandExecutionError as _0x539be5,DependentOn as _0x5c43ca,Disposable as _0xb1c262,ICommandService as _0x1cacbb,IConfigService as _0x473018,IPermissionService as _0x55e23e,IResourceManagerService as _0x3f3d7f,IUndoRedoService as _0x15d8cf,IUniverInstanceService as _0x4d64de,Inject as _0x3d40bd,Injector as _0x217502,Plugin as _0xacd159,UniverInstanceType as _0x4481f0,generateRandomId as _0x31b1a4,merge as _0x36a193,sequenceExecute as _0x490769}from'@univerjs/core';import{InsertColCommand as _0x41349b,InsertRowCommand as _0x54e0ab,MoveColsCommand as _0x1ce04b,MoveRowsCommand as _0x1c660a,RemoveColCommand as _0x41aa47,RemoveRowCommand as _0x2ea397,SetColHiddenMutation as _0x2e1ef4,SetColVisibleMutation as _0xb20ffe,SetRowHiddenMutation as _0x5cbb57,SetRowVisibleMutation as _0x233235,SheetInterceptorService as _0x55c49d,SheetPermissionCheckController as _0x40ba24,UniverSheetsPlugin as _0x57e74f,WorkbookViewPermission as _0x4f9205,WorksheetViewPermission as _0x48e18f,getSheetCommandTarget as _0x1a148e}from'@univerjs/sheets';import{Subject as _0x34a108,of as _0x2723ca}from'rxjs';import{debounceTime as _0x4d308a,map as _0x333349,startWith as _0x2ad35a}from'rxjs/operators';function _0x3d42(){const _0x334731=['children','ROW','@univerjs-pro/sheets-outline','decorate','mergedOutline','index','getUnitOutlines','function','restoreOutlines','sourceEnd','_initRegisterCommand','sheet.command.remove-dimension-outline','unitId','startRow','push','invalid-dimension-outline','COLUMN','sheet.mutation.remove-dimension-outline','maxDepth','some','_ensureUnitOutlines','preRedos','_commandService','preUndos','find','packageName','disposeWithMe','next','call','70kZPrfR','1678897CpfleQ','row','setOutlines','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','getActiveSheet','_resourceManagerService','12048bvVvdQ','468797lOQuWR','map','2336620IBeNiY','dispose','permissionPointUpdate$','removeUnit','Invalid\x20dimension\x20outline\x20mutation','emit','getUnitId','move-splits-outline','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','end','error$','includes','filter','symbol','column','_sheetsOutlineModel','registerCommand','default','stringify','getColumnCount','_sheetInterceptorService','dimension-outline-','parse','toPrimitive','MUTATION','_initResource','_injector','delete','128vgDjkj','getMaxColumns','params','_error$','deserialize','permissionCheckWithoutRange','constructor','pushUndoRedo','pipe','Invalid\x20dimension\x20outline\x20move\x20source\x20range','sheet.command.add-dimension-outline','add','toRange','1251yPRReX','range','asObservable','CROSSING','OUT_OF_BOUNDS','crossing','unknown','type','UNIVER_SHEET','Move\x20would\x20split\x20dimension\x20outline:\x20','fromRange','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','sheet.mutation.set-dimension-outline-collapsed','forEach','_outlines','maxIndex','min','subUnitId','_config','1.0.1','clear-range-not-contain-outline','COMMAND','has','endColumn','complete','sheet.command.set-dimension-outline-collapsed','217194cZmPAC','out-of-bounds','max-depth','serialize','message','getOutlines','_configService','interceptCommand','sheet.mutation.clear-dimension-outlines','change$','_change$','pluginName','version','from','collapsed','axis','insert','valid','_univerInstanceService','reason','clear','sheet.mutation.transform-dimension-outlines','max','split','sourceStart','mergedOutlines','name','count','Invalid\x20outline\x20range','_sheetsOutlineErrorService','getSheetBySheetId','values','string','INVALID_RANGE','sheet.mutation.add-dimension-outline','4762lKtUqS','redos','outlineList','move','object','length','get','result','getRowCount','sheets-outline.config','UNKNOWN','startColumn','getSheetId','outlineId','start','656784qTVpDQ','MAX_DEPTH','prototype','DimensionOutlineError','split\x20dimension\x20outline','set','invalid-range','_getCommandScope','localeCompare','pop','depth','Crossing','_initCommandInterceptor','destinationIndex','6WoSTHr','sort'];_0x3d42=function(){return _0x334731;};return _0x3d42();}import{UniverLicensePlugin as _0x3b8092}from'@univerjs-pro/license';let _e=function(_0x47019a){const _0x4d5c5e=_0x3a3b;return _0x47019a[_0x4d5c5e(0xc2)]=_0x4d5c5e(0xe0),_0x47019a[_0x4d5c5e(0xd1)]=_0x4d5c5e(0xf6),_0x47019a;}({}),ve=function(_0x14accf){const _0x35cdbd=_0x3a3b;return _0x14accf[_0x35cdbd(0x14c)]=_0x35cdbd(0xb7),_0x14accf[_0x35cdbd(0x115)]=_0x35cdbd(0x12c),_0x14accf[_0x35cdbd(0x114)]=_0x35cdbd(0x116),_0x14accf[_0x35cdbd(0x15e)]=_0x35cdbd(0x12d),_0x14accf['MOVE_SPLITS_OUTLINE']=_0x35cdbd(0xef),_0x14accf[_0x35cdbd(0x11c)]=_0x35cdbd(0x125),_0x14accf[_0x35cdbd(0x158)]='unknown',_0x14accf;}({});var S=class extends Error{constructor(_0x1ed3db,_0x1422c3,_0x482c7f){const _0x4a24e2=_0x3a3b;super(_0x1422c3),this[_0x4a24e2(0x13e)]=_0x1ed3db,this[_0x4a24e2(0x15b)]=_0x482c7f,this[_0x4a24e2(0x145)]=_0x4a24e2(0x160);}};function ye(_0x3a464c){const _0x52f75d=_0x3a3b;return _0x3a464c instanceof S?_0x3a464c[_0x52f75d(0x13e)]:_0x3a464c instanceof Error?_0x3a464c[_0x52f75d(0x12f)][_0x52f75d(0xf3)](_0x52f75d(0xb5))?_0x52f75d(0xef):_0x3a464c[_0x52f75d(0x12f)]['includes'](_0x52f75d(0xbb))?_0x52f75d(0x12d):_0x3a464c[_0x52f75d(0x12f)]['includes'](_0x52f75d(0xbc))?_0x52f75d(0x116):_0x3a464c[_0x52f75d(0x12f)][_0x52f75d(0xf3)]('range')?_0x52f75d(0xb7):'unknown':_0x52f75d(0x117);}function be(_0x32737f){const _0x40d126=_0x3a3b;return _0x32737f instanceof S?_0x32737f[_0x40d126(0x15b)]:void 0x0;}const C=0x2**0x35-0x1;function w(_0x4d795b,_0x1c675c){const _0x9bba2f=_0x3a3b;return _0x4d795b[_0x9bba2f(0xcd)]===_0x1c675c['unitId']&&_0x4d795b[_0x9bba2f(0x122)]===_0x1c675c['subUnitId']&&_0x4d795b['axis']===_0x1c675c[_0x9bba2f(0x13a)];}function T(_0x5d0244,_0x2e1d60={}){const _0x305a1e=_0x3a3b;let _0x4d2116=_0x2e1d60[_0x305a1e(0xd3)]??0x8,_0x4bffe6=new Map();for(let _0x291b9b of _0x5d0244){let _0x3ce7f8=_0x291b9b[_0x305a1e(0xcd)]+':'+_0x291b9b[_0x305a1e(0x122)]+':'+_0x291b9b[_0x305a1e(0x13a)],_0x5ccf45=_0x4bffe6[_0x305a1e(0x154)](_0x3ce7f8);_0x5ccf45?_0x5ccf45['push'](_0x291b9b):_0x4bffe6[_0x305a1e(0xb6)](_0x3ce7f8,[_0x291b9b]);}let _0x3a87af=[];for(let _0x321040 of _0x4bffe6[_0x305a1e(0x14a)]()){let _0x2dc4ba=[..._0x321040]['sort'](j),_0x4916dd=[];for(let _0x4a533c of _0x2dc4ba){for(Me(_0x4a533c);_0x4916dd['length']>0x0&&_0x4a533c[_0x305a1e(0x15c)]>_0x4916dd[_0x4916dd[_0x305a1e(0x153)]-0x1][_0x305a1e(0xf1)];)_0x4916dd[_0x305a1e(0xba)]();let _0x5c414e=_0x4916dd[_0x4916dd[_0x305a1e(0x153)]-0x1];if(_0x5c414e&&_0x4a533c['end']>_0x5c414e[_0x305a1e(0xf1)])throw new S(_0x305a1e(0x116),_0x305a1e(0xe2),_0x4a533c['id']);let _0x10aab3=_0x5c414e?_0x5c414e['depth']+0x1:0x1;if(_0x10aab3>_0x4d2116)throw new S(_0x305a1e(0x12d),_0x305a1e(0xf0)+_0x4d2116,_0x4a533c['id']);let _0x234090={..._0x4a533c,'depth':_0x10aab3,'parentId':_0x5c414e==null?void 0x0:_0x5c414e['id'],'anchor':_0x4a533c[_0x305a1e(0xf1)],'children':[]};_0x5c414e?_0x5c414e[_0x305a1e(0xc1)][_0x305a1e(0xcf)](_0x234090):_0x3a87af['push'](_0x234090),_0x4916dd['push'](_0x234090);}}return _0x3a87af;}function E(_0x4c3766,_0xa448f5,_0x2c6c88={}){const _0x4ceb4b=_0x3a3b;if(_0xa448f5[_0x4ceb4b(0x15c)]<0x0||_0xa448f5[_0x4ceb4b(0x15c)]>_0xa448f5[_0x4ceb4b(0xf1)])return{'valid':!0x1,'reason':'invalid-range'};if(_0x2c6c88['maxIndex']!=null&&_0xa448f5['end']>=_0x2c6c88[_0x4ceb4b(0x120)])return{'valid':!0x1,'reason':_0x4ceb4b(0x12c)};let _0x83906e=_0x4c3766[_0x4ceb4b(0xf4)](_0x350618=>w(_0x350618,_0xa448f5));for(let _0x1e9ff1 of _0x83906e)if(Ne(_0x1e9ff1,_0xa448f5))return{'valid':!0x1,'reason':_0x4ceb4b(0x116)};try{T([..._0x4c3766,_0xa448f5],_0x2c6c88);}catch(_0x23ab74){let _0x2a9505=ye(_0x23ab74);return _0x2a9505===_0x4ceb4b(0x12d)?{'valid':!0x1,'reason':_0x4ceb4b(0x12d)}:_0x2a9505===_0x4ceb4b(0xb7)?{'valid':!0x1,'reason':_0x4ceb4b(0xb7)}:{'valid':!0x1,'reason':_0x4ceb4b(0x116)};}return{'valid':!0x0};}function xe(_0x107d3d,_0x3f7c9d,_0x545c61={}){const _0x5c9ce1=_0x3a3b;let _0x280293=E(_0x107d3d,_0x3f7c9d,_0x545c61);if(!_0x280293[_0x5c9ce1(0x13c)])throw Error(_0x280293[_0x5c9ce1(0x13e)]??_0x5c9ce1(0xd0));return[..._0x107d3d,_0x3f7c9d];}function Se(_0x4d4100,_0x212d3a){const _0x23adfc=_0x3a3b;let _0xe3e865=_0x212d3a['start'],_0xf89f01=_0x212d3a[_0x23adfc(0xf1)],_0x4a2712=[],_0x1b6cf8=!0x0;for(;_0x1b6cf8;){_0x1b6cf8=!0x1;for(let _0x13188e of _0x4d4100)!_0x4a2712[_0x23adfc(0xf3)](_0x13188e)&&w(_0x13188e,_0x212d3a)&&Ae(_0x13188e[_0x23adfc(0x15c)],_0x13188e[_0x23adfc(0xf1)],_0xe3e865,_0xf89f01)&&(_0x4a2712[_0x23adfc(0xcf)](_0x13188e),_0xe3e865=Math['min'](_0xe3e865,_0x13188e[_0x23adfc(0x15c)]),_0xf89f01=Math['max'](_0xf89f01,_0x13188e[_0x23adfc(0xf1)]),_0x1b6cf8=!0x0);}if(_0x4a2712['length']===0x0)return null;let [_0x45e094]=[..._0x4a2712][_0x23adfc(0xc0)](j);return{'mergedOutline':{..._0x45e094,'start':_0xe3e865,'end':_0xf89f01},'mergedOutlines':_0x4a2712};}function Ce(_0x43ac61,_0x33eec8){const _0x13a54a=_0x3a3b;return _0x43ac61['filter'](_0x12e4e7=>!w(_0x12e4e7,_0x33eec8)||!(_0x12e4e7[_0x13a54a(0x15c)]>=_0x33eec8[_0x13a54a(0x15c)]&&_0x12e4e7['end']<=_0x33eec8[_0x13a54a(0xf1)]));}function we(_0x39c51a,_0x2b5cf7,_0x3e204d,_0x28fe83){const _0x3d054c=_0x3a3b;return Te(_0x39c51a[_0x3d054c(0xf4)](_0x4935ca=>_0x4935ca[_0x3d054c(0xcd)]===_0x2b5cf7&&_0x4935ca[_0x3d054c(0x122)]===_0x3e204d&&_0x4935ca[_0x3d054c(0x13a)]===_0x28fe83&&_0x4935ca[_0x3d054c(0x139)])[_0x3d054c(0xe7)](_0x539c57=>({'start':_0x539c57[_0x3d054c(0x15c)],'end':_0x539c57[_0x3d054c(0xf1)]})));}function Te(_0xf37ee){const _0x41c98d=_0x3a3b;if(_0xf37ee['length']===0x0)return[];let _0x24fa35=[..._0xf37ee][_0x41c98d(0xc0)]((_0x2ae5f4,_0x2d8009)=>_0x2ae5f4[_0x41c98d(0x15c)]-_0x2d8009[_0x41c98d(0x15c)]||_0x2ae5f4['end']-_0x2d8009[_0x41c98d(0xf1)]),_0x340b24=[];for(let _0x156464 of _0x24fa35){let _0x3b2490=_0x340b24[_0x340b24[_0x41c98d(0x153)]-0x1];!_0x3b2490||_0x156464['start']>_0x3b2490[_0x41c98d(0xf1)]+0x1?_0x340b24[_0x41c98d(0xcf)]({..._0x156464}):_0x3b2490[_0x41c98d(0xf1)]=Math[_0x41c98d(0x141)](_0x3b2490['end'],_0x156464[_0x41c98d(0xf1)]);}return _0x340b24;}function D(_0x45826a,_0xc6ca7c){const _0x3c7917=_0x3a3b;return _0xc6ca7c[_0x3c7917(0x146)]<=0x0?_0x45826a:A(_0x45826a['map'](_0x53850c=>w(_0x53850c,_0xc6ca7c)?_0xc6ca7c['index']<=_0x53850c[_0x3c7917(0x15c)]?{..._0x53850c,'start':_0x53850c[_0x3c7917(0x15c)]+_0xc6ca7c[_0x3c7917(0x146)],'end':_0x53850c[_0x3c7917(0xf1)]+_0xc6ca7c['count']}:_0x53850c['start']<_0xc6ca7c['index']&&_0xc6ca7c[_0x3c7917(0xc6)]<=_0x53850c['end']?{..._0x53850c,'end':_0x53850c[_0x3c7917(0xf1)]+_0xc6ca7c['count']}:_0x53850c:_0x53850c));}function O(_0xecface,_0x3219ff){const _0x40ef17=_0x3a3b;if(_0x3219ff[_0x40ef17(0x15c)]>_0x3219ff[_0x40ef17(0xf1)])return _0xecface;let _0x17bd94=_0x3219ff['end']-_0x3219ff[_0x40ef17(0x15c)]+0x1,_0x26b719=[];for(let _0x110d53 of _0xecface){if(!w(_0x110d53,_0x3219ff)){_0x26b719[_0x40ef17(0xcf)](_0x110d53);continue;}if(_0x110d53[_0x40ef17(0xf1)]<_0x3219ff['start']){_0x26b719[_0x40ef17(0xcf)](_0x110d53);continue;}if(_0x110d53['start']>_0x3219ff[_0x40ef17(0xf1)]){_0x26b719[_0x40ef17(0xcf)]({..._0x110d53,'start':_0x110d53[_0x40ef17(0x15c)]-_0x17bd94,'end':_0x110d53['end']-_0x17bd94});continue;}let _0x4f7213=Math[_0x40ef17(0x141)](_0x110d53[_0x40ef17(0x15c)],_0x3219ff['start']),_0x3a5e27=Math[_0x40ef17(0x121)](_0x110d53[_0x40ef17(0xf1)],_0x3219ff[_0x40ef17(0xf1)]),_0x17b399=Math['max'](0x0,_0x3a5e27-_0x4f7213+0x1),_0x1f8d55=_0x110d53[_0x40ef17(0xf1)]-_0x110d53[_0x40ef17(0x15c)]+0x1-_0x17b399;if(_0x1f8d55<=0x0)continue;let _0x46b809=_0x110d53['start']<_0x3219ff[_0x40ef17(0x15c)]?_0x110d53[_0x40ef17(0x15c)]:_0x3219ff[_0x40ef17(0x15c)];_0x26b719[_0x40ef17(0xcf)]({..._0x110d53,'start':_0x46b809,'end':_0x46b809+_0x1f8d55-0x1});}return A(_0x26b719);}function k(_0x2dc7db,_0xd20cab){const _0x276ef6=_0x3a3b;if(_0xd20cab[_0x276ef6(0x143)]>_0xd20cab[_0x276ef6(0xca)])return _0x2dc7db;let _0x3c4d17=[];for(let _0x1d50c2 of _0x2dc7db){if(!w(_0x1d50c2,_0xd20cab)){_0x3c4d17[_0x276ef6(0xcf)](_0x1d50c2);continue;}let _0x28179a=Ee(_0x1d50c2,_0xd20cab);if(_0x28179a['type']===_0x276ef6(0x142))throw new S('move-splits-outline',_0x276ef6(0x11a)+_0x1d50c2['id'],_0x1d50c2['id']);_0x3c4d17['push'](_0x28179a['outline']);}return A(_0x3c4d17);}function Ee(_0x28b91e,_0x548c12){const _0x1809e9=_0x3a3b;let _0x24a75f=De(_0x548c12['sourceStart'],_0x548c12[_0x1809e9(0xca)]+0x1,_0x548c12['destinationIndex']),_0x321437=[],_0x3a4266={'start':_0x28b91e[_0x1809e9(0x15c)],'end':_0x28b91e[_0x1809e9(0xf1)]+0x1};for(let _0xf69c66 of _0x24a75f){let _0x2ac3c8=Oe(_0x3a4266,_0xf69c66[_0x1809e9(0x112)]);_0x2ac3c8&&_0x321437[_0x1809e9(0xcf)]({'start':_0x2ac3c8[_0x1809e9(0x15c)]+_0xf69c66['offset'],'end':_0x2ac3c8[_0x1809e9(0xf1)]+_0xf69c66['offset']});}let _0x2d9c08=ke(_0x321437);return _0x2d9c08[_0x1809e9(0x153)]===0x1?{'type':'ok','outline':{..._0x28b91e,'start':_0x2d9c08[0x0]['start'],'end':_0x2d9c08[0x0][_0x1809e9(0xf1)]-0x1}}:{'type':'split','outline':_0x28b91e,'ranges':_0x2d9c08};}function De(_0x5baaae,_0x392a16,_0xca03a3){const _0x116cd2=_0x3a3b;let _0xc167fb=_0x392a16-_0x5baaae;if(_0xc167fb<=0x0)throw Error(_0x116cd2(0x10d));return _0xca03a3>=_0x5baaae&&_0xca03a3<=_0x392a16?[{'range':{'start':0x0,'end':C},'offset':0x0}]:_0xca03a3<_0x5baaae?[{'range':{'start':0x0,'end':_0xca03a3},'offset':0x0},{'range':{'start':_0xca03a3,'end':_0x5baaae},'offset':_0xc167fb},{'range':{'start':_0x5baaae,'end':_0x392a16},'offset':_0xca03a3-_0x5baaae},{'range':{'start':_0x392a16,'end':C},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x5baaae},'offset':0x0},{'range':{'start':_0x5baaae,'end':_0x392a16},'offset':_0xca03a3-_0x392a16},{'range':{'start':_0x392a16,'end':_0xca03a3},'offset':-_0xc167fb},{'range':{'start':_0xca03a3,'end':C},'offset':0x0}];}function Oe(_0x4fa1b2,_0x2498b0){const _0x8f5db0=_0x3a3b;let _0xe2e390=Math[_0x8f5db0(0x141)](_0x4fa1b2[_0x8f5db0(0x15c)],_0x2498b0[_0x8f5db0(0x15c)]),_0x52c00b=Math[_0x8f5db0(0x121)](_0x4fa1b2['end'],_0x2498b0[_0x8f5db0(0xf1)]);return _0xe2e390>=_0x52c00b?null:{'start':_0xe2e390,'end':_0x52c00b};}function ke(_0x2ab61e){const _0x2e71d0=_0x3a3b;if(_0x2ab61e[_0x2e71d0(0x153)]===0x0)return[];let _0x17841c=[..._0x2ab61e][_0x2e71d0(0xc0)]((_0x59de9b,_0x1e6524)=>_0x59de9b[_0x2e71d0(0x15c)]-_0x1e6524[_0x2e71d0(0x15c)]||_0x59de9b[_0x2e71d0(0xf1)]-_0x1e6524[_0x2e71d0(0xf1)]),_0x35451b=[];for(let _0x61f906 of _0x17841c){let _0x547bc9=_0x35451b[_0x35451b[_0x2e71d0(0x153)]-0x1];!_0x547bc9||_0x61f906[_0x2e71d0(0x15c)]>_0x547bc9[_0x2e71d0(0xf1)]?_0x35451b['push']({..._0x61f906}):_0x547bc9['end']=Math['max'](_0x547bc9[_0x2e71d0(0xf1)],_0x61f906[_0x2e71d0(0xf1)]);}return _0x35451b;}function Ae(_0x127b01,_0x3ea50e,_0xd82b86,_0x49dfa6){return _0x3ea50e+0x1===_0xd82b86||_0x49dfa6+0x1===_0x127b01;}function A(_0x373c0f){let _0xebf50b=je(_0x373c0f);return T(_0xebf50b),_0xebf50b;}function je(_0x31a935){const _0x464be7=_0x3a3b;let _0xa5cf1b=new Map();for(let _0x491762 of _0x31a935){let _0x2c0c51=[_0x491762[_0x464be7(0xcd)],_0x491762[_0x464be7(0x122)],_0x491762[_0x464be7(0x13a)],_0x491762[_0x464be7(0x15c)],_0x491762[_0x464be7(0xf1)]]['join'](':'),_0x3b9b4b=_0xa5cf1b[_0x464be7(0x154)](_0x2c0c51);if(!_0x3b9b4b){_0xa5cf1b[_0x464be7(0xb6)](_0x2c0c51,_0x491762);continue;}_0xa5cf1b[_0x464be7(0xb6)](_0x2c0c51,{..._0x3b9b4b,'collapsed':_0x3b9b4b[_0x464be7(0x139)]||_0x491762[_0x464be7(0x139)]});}return Array[_0x464be7(0x138)](_0xa5cf1b[_0x464be7(0x14a)]());}function j(_0xf13602,_0xbd296a){const _0x2dd550=_0x3a3b;return _0xf13602[_0x2dd550(0xcd)]===_0xbd296a[_0x2dd550(0xcd)]?_0xf13602[_0x2dd550(0x122)]===_0xbd296a['subUnitId']?_0xf13602[_0x2dd550(0x13a)]===_0xbd296a[_0x2dd550(0x13a)]?_0xf13602[_0x2dd550(0x15c)]===_0xbd296a[_0x2dd550(0x15c)]?_0xbd296a[_0x2dd550(0xf1)]-_0xf13602[_0x2dd550(0xf1)]:_0xf13602[_0x2dd550(0x15c)]-_0xbd296a[_0x2dd550(0x15c)]:_0xf13602[_0x2dd550(0x13a)]['localeCompare'](_0xbd296a[_0x2dd550(0x13a)]):_0xf13602[_0x2dd550(0x122)]['localeCompare'](_0xbd296a['subUnitId']):_0xf13602['unitId'][_0x2dd550(0xb9)](_0xbd296a[_0x2dd550(0xcd)]);}function Me(_0x4f958e){const _0x16ab05=_0x3a3b;if(_0x4f958e[_0x16ab05(0x15c)]>_0x4f958e[_0x16ab05(0xf1)])throw new S('invalid-range',_0x16ab05(0x147),_0x4f958e['id']);}function Ne(_0x11fe64,_0x339efe){const _0x48bd79=_0x3a3b;let _0x13b85f=_0x11fe64[_0x48bd79(0x15c)]<=_0x339efe[_0x48bd79(0xf1)]&&_0x339efe[_0x48bd79(0x15c)]<=_0x11fe64[_0x48bd79(0xf1)],_0x4a6c84=_0x11fe64[_0x48bd79(0x15c)]<=_0x339efe['start']&&_0x339efe['end']<=_0x11fe64[_0x48bd79(0xf1)],_0x4230df=_0x339efe[_0x48bd79(0x15c)]<=_0x11fe64['start']&&_0x11fe64[_0x48bd79(0xf1)]<=_0x339efe[_0x48bd79(0xf1)];return _0x13b85f&&!_0x4a6c84&&!_0x4230df;}function M(_0x1edba0){'@babel/helpers - typeof';const _0x416641=_0x3a3b;return M=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x416641(0xf5)?function(_0x4c22e4){return typeof _0x4c22e4;}:function(_0x53d536){const _0x291df2=_0x416641;return _0x53d536&&typeof Symbol==_0x291df2(0xc8)&&_0x53d536[_0x291df2(0x10a)]===Symbol&&_0x53d536!==Symbol[_0x291df2(0x15f)]?_0x291df2(0xf5):typeof _0x53d536;},M(_0x1edba0);}function Pe(_0x2a8c7d,_0x32341f){const _0x4a69ec=_0x3a3b;if(M(_0x2a8c7d)!=_0x4a69ec(0x152)||!_0x2a8c7d)return _0x2a8c7d;var _0x4559fd=_0x2a8c7d[Symbol[_0x4a69ec(0xff)]];if(_0x4559fd!==void 0x0){var _0x3964e1=_0x4559fd[_0x4a69ec(0xdd)](_0x2a8c7d,_0x32341f||_0x4a69ec(0xf9));if(M(_0x3964e1)!=_0x4a69ec(0x152))return _0x3964e1;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x32341f===_0x4a69ec(0x14b)?String:Number)(_0x2a8c7d);}function Fe(_0x501497){const _0x34bbd8=_0x3a3b;var _0x310689=Pe(_0x501497,_0x34bbd8(0x14b));return M(_0x310689)==_0x34bbd8(0xf5)?_0x310689:_0x310689+'';}function N(_0x22f62e,_0x36252d,_0x41c51c){return(_0x36252d=Fe(_0x36252d))in _0x22f62e?Object['defineProperty'](_0x22f62e,_0x36252d,{'value':_0x41c51c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x22f62e[_0x36252d]=_0x41c51c,_0x22f62e;}var P=class extends _0xb1c262{constructor(..._0x30d2ea){const _0x509efc=_0x3a3b;super(..._0x30d2ea),N(this,'_outlines',new Map()),N(this,_0x509efc(0x135),new _0x34a108()),N(this,_0x509efc(0x134),this['_change$'][_0x509efc(0x113)]());}[_0x43fe3d(0x130)](_0x1f4123,_0x36d699){const _0x148f37=_0x43fe3d;var _0x564b74;return[...((_0x564b74=this[_0x148f37(0x11f)]['get'](_0x1f4123))==null?void 0x0:_0x564b74[_0x148f37(0x154)](_0x36d699))??[]];}[_0x43fe3d(0xc7)](_0x5805ce){const _0x24f2ca=_0x43fe3d;let _0x39ebcb=this['_outlines'][_0x24f2ca(0x154)](_0x5805ce),_0x33d78c=new Map();return _0x39ebcb==null||_0x39ebcb['forEach']((_0x502b9a,_0x42a79e)=>{const _0x2e74fb=_0x24f2ca;_0x33d78c[_0x2e74fb(0xb6)](_0x42a79e,[..._0x502b9a]);}),_0x33d78c;}[_0x43fe3d(0xe1)](_0x3356c5,_0x55e0ac,_0x388020){const _0x4bdf69=_0x43fe3d;this[_0x4bdf69(0xd5)](_0x3356c5)['set'](_0x55e0ac,[..._0x388020]),this['_change$'][_0x4bdf69(0xdc)]({'unitId':_0x3356c5,'subUnitId':_0x55e0ac});}['removeUnit'](_0x59f860){const _0x184125=_0x43fe3d;this[_0x184125(0x11f)][_0x184125(0x103)](_0x59f860),this['_change$'][_0x184125(0xdc)]({'unitId':_0x59f860});}['serialize'](_0x85d9f5){const _0x5bdf35=_0x43fe3d;let _0xe8bec0=this[_0x5bdf35(0x11f)][_0x5bdf35(0x154)](_0x85d9f5),_0x125b5f={};return _0xe8bec0==null||_0xe8bec0['forEach']((_0x42a9cd,_0x3cac87)=>{_0x125b5f[_0x3cac87]={'outlineList':[..._0x42a9cd]};}),_0x125b5f;}[_0x43fe3d(0x108)](_0x198768,_0x5261c6){const _0x47442f=_0x43fe3d;let _0x1a5376=new Map();Object['entries'](_0x5261c6)[_0x47442f(0x11e)](([_0x451e81,_0x55e918])=>{const _0x4dbde3=_0x47442f;_0x1a5376[_0x4dbde3(0xb6)](_0x451e81,[..._0x55e918[_0x4dbde3(0x150)]??[]]);}),this[_0x47442f(0x11f)][_0x47442f(0xb6)](_0x198768,_0x1a5376),this[_0x47442f(0x135)][_0x47442f(0xdc)]({'unitId':_0x198768});}[_0x43fe3d(0xe9)](){const _0x5f4ad6=_0x43fe3d;super[_0x5f4ad6(0xe9)](),this[_0x5f4ad6(0x11f)][_0x5f4ad6(0x13f)](),this[_0x5f4ad6(0x135)][_0x5f4ad6(0x129)]();}[_0x43fe3d(0xd5)](_0x6fb93b){const _0x36c5ad=_0x43fe3d;let _0x24fba4=this['_outlines'][_0x36c5ad(0x154)](_0x6fb93b);return _0x24fba4||(_0x24fba4=new Map(),this[_0x36c5ad(0x11f)][_0x36c5ad(0xb6)](_0x6fb93b,_0x24fba4)),_0x24fba4;}},F=class extends _0xb1c262{constructor(..._0x4ac2c1){const _0x2dc35a=_0x43fe3d;super(..._0x4ac2c1),N(this,_0x2dc35a(0x107),new _0x34a108()),N(this,_0x2dc35a(0xf2),this['_error$'][_0x2dc35a(0x113)]());}['emit'](_0xcf10c8){const _0x5ce92c=_0x43fe3d;this['_error$'][_0x5ce92c(0xdc)](_0xcf10c8);}[_0x43fe3d(0xe9)](){const _0x1f4cfa=_0x43fe3d;super['dispose'](),this[_0x1f4cfa(0x107)]['complete']();}};const I={'id':_0x43fe3d(0x14d),'type':_0x5ebc9c['MUTATION'],'handler':(_0x5499c2,_0x1f3af8)=>{const _0x292088=_0x43fe3d;let _0x481b16=_0x5499c2[_0x292088(0x154)](P),_0x26a35f=_0x481b16[_0x292088(0x130)](_0x1f3af8[_0x292088(0xcd)],_0x1f3af8[_0x292088(0x122)]);return _0x481b16[_0x292088(0xe1)](_0x1f3af8[_0x292088(0xcd)],_0x1f3af8['subUnitId'],xe(_0x26a35f,_0x1f3af8['outline'])),!0x0;}},L={'id':_0x43fe3d(0xd2),'type':_0x5ebc9c[_0x43fe3d(0x100)],'handler':(_0x44262c,_0x2d9958)=>{const _0x24ea76=_0x43fe3d;let _0x59d55f=_0x44262c['get'](P),_0x2e6443=_0x59d55f[_0x24ea76(0x130)](_0x2d9958['unitId'],_0x2d9958[_0x24ea76(0x122)]);return _0x59d55f[_0x24ea76(0xe1)](_0x2d9958[_0x24ea76(0xcd)],_0x2d9958[_0x24ea76(0x122)],_0x2e6443['filter'](_0x5762b3=>_0x5762b3['id']!==_0x2d9958[_0x24ea76(0x15b)])),!0x0;}};function R(_0x584e0c,_0x29d501,_0x554641){const _0x4b2c94=_0x43fe3d;let _0x3d7dd7=Le(_0x584e0c);return!_0x3d7dd7||_0x3d7dd7[_0x4b2c94(0x109)]({'workbookTypes':[_0x4f9205],'worksheetTypes':[_0x48e18f]},_0x29d501,_0x554641);}function Ie(_0x330d87,_0x1fb5db,_0x4f9703){const _0x423c5c=_0x43fe3d;let _0x380d97=Re(_0x330d87);return((_0x380d97==null?void 0x0:_0x380d97[_0x423c5c(0xea)])??_0x2723ca(null))[_0x423c5c(0x10c)](_0x4d308a(0x64),_0x2ad35a(null),_0x333349(()=>R(_0x330d87,_0x1fb5db,_0x4f9703)));}function Le(_0x2aec25){const _0x5b0e8d=_0x43fe3d;if(typeof _0x2aec25['has']==_0x5b0e8d(0xc8)&&!_0x2aec25[_0x5b0e8d(0x127)](_0x40ba24))return null;try{return _0x2aec25[_0x5b0e8d(0x154)](_0x40ba24);}catch{return null;}}function Re(_0x12badb){const _0x390a62=_0x43fe3d;if(typeof _0x12badb[_0x390a62(0x127)]==_0x390a62(0xc8)&&!_0x12badb['has'](_0x55e23e))return null;try{return _0x12badb[_0x390a62(0x154)](_0x55e23e);}catch{return null;}}const z={'id':_0x43fe3d(0x10e),'type':_0x5ebc9c[_0x43fe3d(0x126)],'handler':(_0x49ef07,_0x4b5d47)=>{const _0x32f5ff=_0x43fe3d;if(!_0x4b5d47)return!0x1;let _0x38c469=_0x1a148e(_0x49ef07['get'](_0x4d64de),_0x4b5d47);if(!_0x38c469)return!0x1;let {unitId:_0x15d3aa,subUnitId:_0x122393,worksheet:_0x39ef57}=_0x38c469;if(!R(_0x49ef07,_0x15d3aa,_0x122393))return!0x1;let _0x1ffc98=_0x49ef07[_0x32f5ff(0x154)](P),_0x436e52={'id':_0x32f5ff(0xfd)+_0x31b1a4(0x6),'unitId':_0x15d3aa,'subUnitId':_0x122393,'axis':_0x4b5d47[_0x32f5ff(0x13a)],'start':_0x4b5d47[_0x32f5ff(0x15c)],'end':_0x4b5d47['end'],'collapsed':!0x1},_0x5d4931=_0x4b5d47[_0x32f5ff(0x13a)]===_0x32f5ff(0xe0)?_0x39ef57[_0x32f5ff(0x156)]():_0x39ef57[_0x32f5ff(0xfb)](),_0x37073e=_0x1ffc98[_0x32f5ff(0x130)](_0x15d3aa,_0x122393),_0x44d160=Se(_0x37073e,_0x436e52),_0x2c2ebb=(_0x44d160==null?void 0x0:_0x44d160[_0x32f5ff(0x144)])??[],_0x1d65c3=(_0x44d160==null?void 0x0:_0x44d160[_0x32f5ff(0xc5)])??_0x436e52,_0x4a0c73=E(_0x44d160?_0x37073e['filter'](_0x4ca5ee=>!_0x2c2ebb[_0x32f5ff(0xd4)](_0x5a2168=>_0x5a2168['id']===_0x4ca5ee['id'])):_0x37073e,_0x1d65c3,{'maxIndex':_0x5d4931});if(!_0x4a0c73[_0x32f5ff(0x13c)])return _0x49ef07[_0x32f5ff(0x154)](F)['emit']({'reason':_0x4a0c73[_0x32f5ff(0x13e)]??_0x32f5ff(0x117),'commandId':z['id'],'unitId':_0x15d3aa,'subUnitId':_0x122393,'axis':_0x4b5d47[_0x32f5ff(0x13a)],'outlineId':_0x1d65c3['id']}),!0x1;let _0x4e1f16=[..._0x2c2ebb[_0x32f5ff(0xe7)](_0x19fcb2=>({'id':L['id'],'params':{'unitId':_0x15d3aa,'subUnitId':_0x122393,'outlineId':_0x19fcb2['id']}})),{'id':I['id'],'params':{'unitId':_0x15d3aa,'subUnitId':_0x122393,'outline':_0x1d65c3}}],_0x5533e4=[{'id':L['id'],'params':{'unitId':_0x15d3aa,'subUnitId':_0x122393,'outlineId':_0x1d65c3['id']}},..._0x2c2ebb[_0x32f5ff(0xe7)](_0x44e520=>({'id':I['id'],'params':{'unitId':_0x15d3aa,'subUnitId':_0x122393,'outline':_0x44e520}}))];return _0x490769(_0x4e1f16,_0x49ef07[_0x32f5ff(0x154)](_0x1cacbb))['result']?(_0x49ef07['get'](_0x15d8cf)['pushUndoRedo']({'unitID':_0x15d3aa,'undoMutations':_0x5533e4,'redoMutations':_0x4e1f16}),!0x0):!0x1;}},B={'id':_0x43fe3d(0x133),'type':_0x5ebc9c['MUTATION'],'handler':(_0x16c6d4,_0x195500)=>{const _0x89a93c=_0x43fe3d;let _0x212c12=_0x16c6d4[_0x89a93c(0x154)](P),_0x55cf0d=_0x212c12['getOutlines'](_0x195500[_0x89a93c(0xcd)],_0x195500['subUnitId']);return _0x212c12[_0x89a93c(0xe1)](_0x195500[_0x89a93c(0xcd)],_0x195500[_0x89a93c(0x122)],Ce(_0x55cf0d,_0x195500)),!0x0;}},V={'id':'sheet.command.clear-dimension-outlines','type':_0x5ebc9c[_0x43fe3d(0x126)],'handler':(_0x2218e2,_0x242bce)=>{const _0x3917f9=_0x43fe3d;if(!_0x242bce)return!0x1;let _0x4d0d96=_0x1a148e(_0x2218e2[_0x3917f9(0x154)](_0x4d64de),_0x242bce);if(!_0x4d0d96)return!0x1;let {unitId:_0x230154,subUnitId:_0x353d87}=_0x4d0d96;if(!R(_0x2218e2,_0x230154,_0x353d87))return!0x1;let _0x526cb3={'unitId':_0x230154,'subUnitId':_0x353d87,'axis':_0x242bce[_0x3917f9(0x13a)],'start':_0x242bce[_0x3917f9(0x15c)],'end':_0x242bce['end']},_0x4d8ea7=_0x2218e2['get'](P)[_0x3917f9(0x130)](_0x230154,_0x353d87)[_0x3917f9(0xf4)](_0x363454=>w(_0x363454,_0x526cb3)&&_0x363454['start']>=_0x242bce[_0x3917f9(0x15c)]&&_0x363454[_0x3917f9(0xf1)]<=_0x242bce[_0x3917f9(0xf1)]);if(_0x4d8ea7['length']===0x0)return _0x2218e2[_0x3917f9(0x154)](F)[_0x3917f9(0xed)]({'reason':_0x3917f9(0x125),'commandId':V['id'],'unitId':_0x230154,'subUnitId':_0x353d87,'axis':_0x242bce[_0x3917f9(0x13a)]}),!0x1;let _0x246059=[{'id':B['id'],'params':{..._0x526cb3,'removedOutlineIds':_0x4d8ea7['map'](_0x128209=>_0x128209['id'])}}],_0x2755d8=_0x4d8ea7[_0x3917f9(0xe7)](_0x2ccb71=>({'id':I['id'],'params':{'unitId':_0x230154,'subUnitId':_0x353d87,'outline':_0x2ccb71}}));return _0x490769(_0x246059,_0x2218e2[_0x3917f9(0x154)](_0x1cacbb))[_0x3917f9(0x155)]?(_0x2218e2[_0x3917f9(0x154)](_0x15d8cf)[_0x3917f9(0x10b)]({'unitID':_0x230154,'undoMutations':_0x2755d8,'redoMutations':_0x246059}),!0x0):!0x1;}},ze={'id':_0x43fe3d(0xcc),'type':_0x5ebc9c['COMMAND'],'handler':(_0x3e3f32,_0x473d0e)=>{const _0x582496=_0x43fe3d;if(!_0x473d0e)return!0x1;let _0xf352ac=_0x1a148e(_0x3e3f32['get'](_0x4d64de),_0x473d0e);if(!_0xf352ac)return!0x1;let {unitId:_0x40a9ae,subUnitId:_0x53c43e}=_0xf352ac;if(!R(_0x3e3f32,_0x40a9ae,_0x53c43e))return!0x1;let _0x1aa529=_0x3e3f32[_0x582496(0x154)](P)[_0x582496(0x130)](_0x40a9ae,_0x53c43e)[_0x582496(0xd9)](_0xa71fa4=>_0xa71fa4['id']===_0x473d0e[_0x582496(0x15b)]);if(!_0x1aa529)return!0x1;let _0x35f9a1=[{'id':L['id'],'params':{'unitId':_0x40a9ae,'subUnitId':_0x53c43e,'outlineId':_0x1aa529['id'],'outline':_0x1aa529}}],_0x330fdc=[{'id':I['id'],'params':{'unitId':_0x40a9ae,'subUnitId':_0x53c43e,'outline':_0x1aa529}}];return _0x490769(_0x35f9a1,_0x3e3f32[_0x582496(0x154)](_0x1cacbb))[_0x582496(0x155)]?(_0x3e3f32['get'](_0x15d8cf)[_0x582496(0x10b)]({'unitID':_0x40a9ae,'undoMutations':_0x330fdc,'redoMutations':_0x35f9a1}),!0x0):!0x1;}},H={'id':_0x43fe3d(0x11d),'type':_0x5ebc9c['MUTATION'],'handler':(_0x2f7604,_0x1114ee)=>{const _0x90a759=_0x43fe3d;let _0x494ee2=_0x2f7604[_0x90a759(0x154)](P),_0x508fb2=_0x494ee2[_0x90a759(0x130)](_0x1114ee[_0x90a759(0xcd)],_0x1114ee[_0x90a759(0x122)]),_0x22d343=_0x508fb2[_0x90a759(0xd9)](_0x5eae08=>_0x5eae08['id']===_0x1114ee[_0x90a759(0x15b)]);return _0x22d343&&_0x494ee2[_0x90a759(0xe1)](_0x1114ee[_0x90a759(0xcd)],_0x1114ee['subUnitId'],_0x508fb2['map'](_0x1d460c=>_0x1d460c[_0x90a759(0xcd)]!==_0x22d343[_0x90a759(0xcd)]||_0x1d460c['subUnitId']!==_0x22d343[_0x90a759(0x122)]||_0x1d460c[_0x90a759(0x13a)]!==_0x22d343['axis']||_0x1d460c[_0x90a759(0x15c)]!==_0x22d343['start']||_0x1d460c[_0x90a759(0xf1)]!==_0x22d343[_0x90a759(0xf1)]?_0x1d460c:{..._0x1d460c,'collapsed':_0x1114ee[_0x90a759(0x139)]})),!0x0;}};function Be(_0x11742b,_0x576eca,_0xe446bd,_0x5f41f3){const _0x689272=_0x43fe3d;return _0x11742b==='row'?{'startRow':_0x576eca,'endRow':_0xe446bd,'startColumn':0x0,'endColumn':_0x5f41f3[_0x689272(0x105)]()-0x1}:{'startRow':0x0,'endRow':_0x5f41f3['getRowCount']()-0x1,'startColumn':_0x576eca,'endColumn':_0xe446bd};}function Ve(_0x2292ae){return _0x2292ae==='row'?_0x5cbb57['id']:_0x2e1ef4['id'];}function He(_0x5d9e80){const _0x3aeaf0=_0x43fe3d;return _0x5d9e80===_0x3aeaf0(0xe0)?_0x233235['id']:_0xb20ffe['id'];}function Ue(_0x844aa5,_0x3e6278,_0x158a30,_0x25ebb9){const _0xfbda62=_0x43fe3d;let _0x202cce=_0x3e6278?[Be(_0x844aa5[_0xfbda62(0x13a)],_0x844aa5[_0xfbda62(0x15c)],_0x844aa5[_0xfbda62(0xf1)],_0x158a30)]:We(_0x844aa5,_0x25ebb9,_0x158a30),_0x59a14b=_0x3e6278?Ve(_0x844aa5[_0xfbda62(0x13a)]):He(_0x844aa5[_0xfbda62(0x13a)]);return[{'id':H['id'],'params':{'unitId':_0x844aa5[_0xfbda62(0xcd)],'subUnitId':_0x844aa5[_0xfbda62(0x122)],'outlineId':_0x844aa5['id'],'outline':_0x844aa5,'collapsed':_0x3e6278}},..._0x202cce[_0xfbda62(0xe7)](_0x29e120=>({'id':_0x59a14b,'params':{'unitId':_0x844aa5[_0xfbda62(0xcd)],'subUnitId':_0x844aa5[_0xfbda62(0x122)],'ranges':[_0x29e120],'dimensionOutlineId':_0x844aa5['id']}}))];}function We(_0x5bfb37,_0x3fd0d7,_0x340275){const _0x3d527d=_0x43fe3d;let _0x258c63=we(_0x3fd0d7[_0x3d527d(0xe7)](_0xc682be=>Ge(_0xc682be,_0x5bfb37)?{..._0xc682be,'collapsed':!0x1}:_0xc682be),_0x5bfb37['unitId'],_0x5bfb37[_0x3d527d(0x122)],_0x5bfb37[_0x3d527d(0x13a)]);return Ke({'start':_0x5bfb37['start'],'end':_0x5bfb37['end']},_0x258c63)[_0x3d527d(0xe7)](_0x12aa1a=>Be(_0x5bfb37[_0x3d527d(0x13a)],_0x12aa1a[_0x3d527d(0x15c)],_0x12aa1a[_0x3d527d(0xf1)],_0x340275));}function Ge(_0x4ec6cb,_0x400b1b){const _0xa1aa14=_0x43fe3d;return _0x4ec6cb[_0xa1aa14(0xcd)]===_0x400b1b[_0xa1aa14(0xcd)]&&_0x4ec6cb['subUnitId']===_0x400b1b[_0xa1aa14(0x122)]&&_0x4ec6cb[_0xa1aa14(0x13a)]===_0x400b1b[_0xa1aa14(0x13a)]&&_0x4ec6cb[_0xa1aa14(0x15c)]===_0x400b1b[_0xa1aa14(0x15c)]&&_0x4ec6cb[_0xa1aa14(0xf1)]===_0x400b1b['end'];}function Ke(_0x10db2b,_0xa90ca5){const _0x30aa10=_0x43fe3d;let _0x18442d=_0x10db2b['start'],_0x164515=[];for(let _0x2f46f3 of _0xa90ca5)if(!(_0x2f46f3['end']<_0x18442d||_0x2f46f3['start']>_0x10db2b['end'])&&(_0x2f46f3[_0x30aa10(0x15c)]>_0x18442d&&_0x164515[_0x30aa10(0xcf)]({'start':_0x18442d,'end':Math[_0x30aa10(0x121)](_0x2f46f3[_0x30aa10(0x15c)]-0x1,_0x10db2b[_0x30aa10(0xf1)])}),_0x18442d=Math[_0x30aa10(0x141)](_0x18442d,_0x2f46f3[_0x30aa10(0xf1)]+0x1),_0x18442d>_0x10db2b[_0x30aa10(0xf1)]))break;return _0x18442d<=_0x10db2b[_0x30aa10(0xf1)]&&_0x164515[_0x30aa10(0xcf)]({'start':_0x18442d,'end':_0x10db2b[_0x30aa10(0xf1)]}),_0x164515;}const qe={'id':_0x43fe3d(0x12a),'type':_0x5ebc9c[_0x43fe3d(0x126)],'handler':(_0x2fe255,_0x5481c5)=>{const _0x39aba5=_0x43fe3d;if(!_0x5481c5)return!0x1;let _0x15ebda=_0x1a148e(_0x2fe255['get'](_0x4d64de),_0x5481c5);if(!_0x15ebda)return!0x1;let {unitId:_0x5bfe8c,subUnitId:_0x2b6c01,worksheet:_0x58b8fe}=_0x15ebda;if(!R(_0x2fe255,_0x5bfe8c,_0x2b6c01))return!0x1;let _0x38a2da=_0x2fe255[_0x39aba5(0x154)](P)[_0x39aba5(0x130)](_0x5bfe8c,_0x2b6c01),_0x21cab4=_0x38a2da[_0x39aba5(0xd9)](_0x1bbb75=>_0x1bbb75['id']===_0x5481c5[_0x39aba5(0x15b)]);if(!_0x21cab4||_0x21cab4['collapsed']===_0x5481c5[_0x39aba5(0x139)])return!0x1;let _0x81e84f=Ue(_0x21cab4,_0x5481c5[_0x39aba5(0x139)],_0x58b8fe,_0x38a2da),_0x22b831=Ue(_0x21cab4,!_0x5481c5[_0x39aba5(0x139)],_0x58b8fe,_0x38a2da);return _0x490769(_0x81e84f,_0x2fe255[_0x39aba5(0x154)](_0x1cacbb))['result']?(_0x2fe255['get'](_0x15d8cf)[_0x39aba5(0x10b)]({'unitID':_0x5bfe8c,'undoMutations':_0x22b831,'redoMutations':_0x81e84f}),!0x0):!0x1;}},U={'id':_0x43fe3d(0x140),'type':_0x5ebc9c['MUTATION'],'handler':(_0xa38703,_0x5dbb76)=>{const _0x5c17cd=_0x43fe3d;let _0x5c88ac=_0xa38703[_0x5c17cd(0x154)](P),_0x135176=Je(_0x5c88ac[_0x5c17cd(0x130)](_0x5dbb76[_0x5c17cd(0xcd)],_0x5dbb76[_0x5c17cd(0x122)]),_0x5dbb76);return _0x5c88ac[_0x5c17cd(0xe1)](_0x5dbb76[_0x5c17cd(0xcd)],_0x5dbb76[_0x5c17cd(0x122)],_0x135176),!0x0;}};function Je(_0x37a266,_0x4b9b04){const _0x23f92b=_0x43fe3d;switch(_0x4b9b04['type']){case _0x23f92b(0x13b):return _0x4b9b04[_0x23f92b(0xc9)]?Ye(_0x37a266,_0x4b9b04):D(_0x37a266,_0x4b9b04);case _0x23f92b(0x103):return O(_0x37a266,_0x4b9b04);case'move':return k(_0x37a266,_0x4b9b04);}}function Ye(_0x21ef0a,_0x829ac3){const _0x78a337=_0x43fe3d;return[..._0x21ef0a[_0x78a337(0xf4)](_0x467fe5=>_0x467fe5[_0x78a337(0xcd)]!==_0x829ac3[_0x78a337(0xcd)]||_0x467fe5['subUnitId']!==_0x829ac3['subUnitId']||_0x467fe5[_0x78a337(0x13a)]!==_0x829ac3[_0x78a337(0x13a)]),..._0x829ac3['restoreOutlines']];}const W='SHEET_OUTLINE_PLUGIN';var Xe=_0x43fe3d(0xc3),Ze=_0x43fe3d(0x124);const Qe={};function G(_0xfeeba,_0x1bae4a){return function(_0x2007aa,_0x52ae35){_0x1bae4a(_0x2007aa,_0x52ae35,_0xfeeba);};}function K(_0xc82b75,_0x2c384d,_0x41f656,_0x7c426c){const _0x5db574=_0x43fe3d;var _0x4c687a=arguments[_0x5db574(0x153)],_0x205683=_0x4c687a<0x3?_0x2c384d:_0x7c426c===null?_0x7c426c=Object['getOwnPropertyDescriptor'](_0x2c384d,_0x41f656):_0x7c426c,_0xa1cbd5;if(typeof Reflect==_0x5db574(0x152)&&typeof Reflect['decorate']==_0x5db574(0xc8))_0x205683=Reflect[_0x5db574(0xc4)](_0xc82b75,_0x2c384d,_0x41f656,_0x7c426c);else{for(var _0x49fe17=_0xc82b75[_0x5db574(0x153)]-0x1;_0x49fe17>=0x0;_0x49fe17--)(_0xa1cbd5=_0xc82b75[_0x49fe17])&&(_0x205683=(_0x4c687a<0x3?_0xa1cbd5(_0x205683):_0x4c687a>0x3?_0xa1cbd5(_0x2c384d,_0x41f656,_0x205683):_0xa1cbd5(_0x2c384d,_0x41f656))||_0x205683);}return _0x4c687a>0x3&&_0x205683&&Object['defineProperty'](_0x2c384d,_0x41f656,_0x205683),_0x205683;}const q={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let J=class extends _0xb1c262{constructor(_0x26ab57,_0x1cb256,_0x3ae8f8,_0x3a89af){const _0x5a28f1=_0x43fe3d;super(),this[_0x5a28f1(0x13d)]=_0x26ab57,this['_sheetInterceptorService']=_0x1cb256,this[_0x5a28f1(0xf7)]=_0x3ae8f8,this[_0x5a28f1(0x148)]=_0x3a89af,this[_0x5a28f1(0xbd)]();}[_0x43fe3d(0xbd)](){const _0x2ef41b=_0x43fe3d;this[_0x2ef41b(0xdb)](this[_0x2ef41b(0xfc)][_0x2ef41b(0x132)]({'getMutations':_0x98a86b=>$e(_0x98a86b,(_0x3f9ee4,_0x1d957d)=>this['_sheetsOutlineModel'][_0x2ef41b(0x130)](_0x3f9ee4,_0x1d957d),this[_0x2ef41b(0xb8)](_0x98a86b[_0x2ef41b(0x106)]),_0x328497=>this['_sheetsOutlineErrorService'][_0x2ef41b(0xed)](_0x328497))}));}[_0x43fe3d(0xb8)](_0x12c1e4){const _0x55a7de=_0x43fe3d;let _0xa597df=_0x12c1e4,_0x3cf03b=_0xa597df!=null&&_0xa597df[_0x55a7de(0xcd)]?this['_univerInstanceService']['getUnit'](_0xa597df['unitId'],_0x4481f0['UNIVER_SHEET']):this[_0x55a7de(0x13d)]['getCurrentUnitOfType'](_0x4481f0[_0x55a7de(0x119)]);if(!_0x3cf03b)return;let _0x39bcf2=_0xa597df!=null&&_0xa597df[_0x55a7de(0x122)]?_0x3cf03b[_0x55a7de(0x149)](_0xa597df[_0x55a7de(0x122)]):_0x3cf03b[_0x55a7de(0xe3)]();if(_0x39bcf2)return{'unitId':_0x3cf03b[_0x55a7de(0xee)](),'subUnitId':_0x39bcf2[_0x55a7de(0x15a)]()};}};J=K([G(0x0,_0x4d64de),G(0x1,_0x3d40bd(_0x55c49d)),G(0x2,_0x3d40bd(P)),G(0x3,_0x3d40bd(F))],J);function $e(_0x595cf4,_0x9a74f7,_0x502e5c,_0x61d3f){const _0x218541=_0x43fe3d;let _0x394836=tt(_0x595cf4,_0x502e5c);if(!_0x394836)return Z();let _0x2cde1a=_0x9a74f7(_0x394836['unitId'],_0x394836['subUnitId']);if(!_0x2cde1a[_0x218541(0xd4)](_0x3398c0=>_0x3398c0[_0x218541(0x13a)]===_0x394836[_0x218541(0x13a)]))return Z();et(_0x2cde1a,_0x394836,_0x595cf4['id'],_0x61d3f);let _0x1454c8=it(_0x394836,_0x2cde1a);return{'redos':[{'id':U['id'],'params':_0x394836}],'undos':[{'id':U['id'],'params':_0x1454c8}],'preRedos':[],'preUndos':[]};}function et(_0x2fb4e8,_0xd168a5,_0x1d4d87,_0x4ee56e){const _0x46284a=_0x43fe3d;try{switch(_0xd168a5['type']){case _0x46284a(0x13b):D(_0x2fb4e8,_0xd168a5);break;case _0x46284a(0x103):O(_0x2fb4e8,_0xd168a5);break;case _0x46284a(0x151):k(_0x2fb4e8,_0xd168a5);}}catch(_0x28449a){throw _0x4ee56e==null||_0x4ee56e({'reason':ye(_0x28449a),'commandId':_0x1d4d87,'unitId':_0xd168a5[_0x46284a(0xcd)],'subUnitId':_0xd168a5['subUnitId'],'axis':_0xd168a5['axis'],'outlineId':be(_0x28449a)}),new _0x539be5(_0x28449a instanceof Error?_0x28449a[_0x46284a(0x12f)]:_0x46284a(0xec));}}function tt(_0x14a832,_0x4c0a16){const _0x5e8853=_0x43fe3d;switch(_0x14a832['id']){case _0x54e0ab['id']:return Y(_0x14a832['params'],_0x5e8853(0xe0),_0x4c0a16);case _0x41349b['id']:return Y(_0x14a832[_0x5e8853(0x106)],_0x5e8853(0xf6),_0x4c0a16);case _0x2ea397['id']:return nt(_0x14a832[_0x5e8853(0x106)],_0x5e8853(0xe0),_0x4c0a16);case _0x41aa47['id']:return nt(_0x14a832[_0x5e8853(0x106)],'column',_0x4c0a16);case _0x1c660a['id']:return rt(_0x14a832[_0x5e8853(0x106)],_0x5e8853(0xe0),_0x4c0a16);case _0x1ce04b['id']:return rt(_0x14a832[_0x5e8853(0x106)],_0x5e8853(0xf6),_0x4c0a16);default:return null;}}function Y(_0x1b96a6,_0x27b813,_0x2290ce){const _0x433d64=_0x43fe3d;let _0x1c49be=X(_0x1b96a6,_0x2290ce);if(!(_0x1b96a6!=null&&_0x1b96a6[_0x433d64(0x112)])||!_0x1c49be)return null;let _0x353fb6=_0x27b813===_0x433d64(0xe0)?_0x1b96a6[_0x433d64(0x112)]['startRow']:_0x1b96a6['range'][_0x433d64(0x159)],_0x265394=_0x27b813==='row'?_0x1b96a6[_0x433d64(0x112)]['endRow']:_0x1b96a6[_0x433d64(0x112)][_0x433d64(0x128)];return{..._0x1c49be,'axis':_0x27b813,'type':'insert','index':_0x353fb6,'count':_0x265394-_0x353fb6+0x1};}function nt(_0x5024ce,_0x1bb957,_0x1d6d54){const _0x43b115=_0x43fe3d;let _0x7f0307=X(_0x5024ce,_0x1d6d54);if(!(_0x5024ce!=null&&_0x5024ce['range'])||!_0x7f0307)return null;let _0x28f6fa=_0x1bb957===_0x43b115(0xe0)?_0x5024ce['range']['startRow']:_0x5024ce[_0x43b115(0x112)]['startColumn'],_0x5903e7=_0x1bb957===_0x43b115(0xe0)?_0x5024ce[_0x43b115(0x112)]['endRow']:_0x5024ce['range'][_0x43b115(0x128)];return{..._0x7f0307,'axis':_0x1bb957,'type':'delete','start':_0x28f6fa,'end':_0x5903e7};}function rt(_0xe61232,_0x22dc38,_0x2fa5fb){const _0x25eb83=_0x43fe3d;let _0x4152e4=X(_0xe61232,_0x2fa5fb);if(!(_0xe61232!=null&&_0xe61232['fromRange'])||!_0xe61232[_0x25eb83(0x110)]||!_0x4152e4)return null;let _0x41cc62=_0x22dc38===_0x25eb83(0xe0)?_0xe61232[_0x25eb83(0x11b)][_0x25eb83(0xce)]:_0xe61232[_0x25eb83(0x11b)][_0x25eb83(0x159)],_0x14001c=_0x22dc38===_0x25eb83(0xe0)?_0xe61232[_0x25eb83(0x11b)]['endRow']:_0xe61232[_0x25eb83(0x11b)][_0x25eb83(0x128)],_0x41f30f=_0x22dc38===_0x25eb83(0xe0)?_0xe61232[_0x25eb83(0x110)][_0x25eb83(0xce)]:_0xe61232[_0x25eb83(0x110)][_0x25eb83(0x159)];return{..._0x4152e4,'axis':_0x22dc38,'type':'move','sourceStart':_0x41cc62,'sourceEnd':_0x14001c,'destinationIndex':_0x41f30f};}function it(_0x3d184a,_0x71c911){const _0x845738=_0x43fe3d;switch(_0x3d184a[_0x845738(0x118)]){case _0x845738(0x13b):return{'unitId':_0x3d184a[_0x845738(0xcd)],'subUnitId':_0x3d184a[_0x845738(0x122)],'axis':_0x3d184a[_0x845738(0x13a)],'type':_0x845738(0x103),'start':_0x3d184a[_0x845738(0xc6)],'end':_0x3d184a[_0x845738(0xc6)]+_0x3d184a[_0x845738(0x146)]-0x1};case _0x845738(0x103):return{'unitId':_0x3d184a[_0x845738(0xcd)],'subUnitId':_0x3d184a[_0x845738(0x122)],'axis':_0x3d184a['axis'],'type':_0x845738(0x13b),'index':_0x3d184a['start'],'count':_0x3d184a[_0x845738(0xf1)]-_0x3d184a[_0x845738(0x15c)]+0x1,'restoreOutlines':_0x71c911[_0x845738(0xf4)](_0x33dacc=>_0x33dacc[_0x845738(0xcd)]===_0x3d184a[_0x845738(0xcd)]&&_0x33dacc[_0x845738(0x122)]===_0x3d184a[_0x845738(0x122)]&&_0x33dacc[_0x845738(0x13a)]===_0x3d184a[_0x845738(0x13a)])};case _0x845738(0x151):return at(_0x3d184a);}}function at(_0x365f18){const _0x450bf5=_0x43fe3d;let _0x1ed8d4=_0x365f18[_0x450bf5(0xca)]-_0x365f18[_0x450bf5(0x143)]+0x1;return _0x365f18['destinationIndex']>=_0x365f18[_0x450bf5(0x143)]&&_0x365f18[_0x450bf5(0xbe)]<=_0x365f18[_0x450bf5(0xca)]+0x1?{..._0x365f18}:_0x365f18[_0x450bf5(0xbe)]>_0x365f18[_0x450bf5(0xca)]+0x1?{..._0x365f18,'sourceStart':_0x365f18['destinationIndex']-_0x1ed8d4,'sourceEnd':_0x365f18[_0x450bf5(0xbe)]-0x1,'destinationIndex':_0x365f18['sourceStart']}:{..._0x365f18,'sourceStart':_0x365f18[_0x450bf5(0xbe)],'sourceEnd':_0x365f18[_0x450bf5(0xbe)]+_0x1ed8d4-0x1,'destinationIndex':_0x365f18[_0x450bf5(0xca)]+0x1};}function X(_0x29c495,_0x48731a){const _0x35ab79=_0x43fe3d;let _0x20f2f4=(_0x29c495==null?void 0x0:_0x29c495[_0x35ab79(0xcd)])??(_0x48731a==null?void 0x0:_0x48731a[_0x35ab79(0xcd)]),_0x138280=(_0x29c495==null?void 0x0:_0x29c495[_0x35ab79(0x122)])??(_0x48731a==null?void 0x0:_0x48731a[_0x35ab79(0x122)]);return _0x20f2f4&&_0x138280?{'unitId':_0x20f2f4,'subUnitId':_0x138280}:null;}function Z(){const _0x1cc6e7=_0x43fe3d;return{'redos':[...q[_0x1cc6e7(0x14f)]],'undos':[...q['undos']],'preRedos':[...q[_0x1cc6e7(0xd6)]??[]],'preUndos':[...q[_0x1cc6e7(0xd8)]??[]]};}let Q=class extends _0xb1c262{constructor(_0x43240c,_0x4a3536){const _0x1d3b05=_0x43fe3d;super(),this[_0x1d3b05(0xe4)]=_0x43240c,this[_0x1d3b05(0xf7)]=_0x4a3536,this[_0x1d3b05(0x101)]();}['_initResource'](){const _0x30abf9=_0x43fe3d;this['disposeWithMe'](this[_0x30abf9(0xe4)]['registerPluginResource']({'pluginName':W,'businesses':[_0x4481f0[_0x30abf9(0x119)]],'toJson':_0x5bbbe0=>JSON[_0x30abf9(0xfa)](this[_0x30abf9(0xf7)][_0x30abf9(0x12e)](_0x5bbbe0)),'parseJson':_0x48a9f9=>JSON[_0x30abf9(0xfe)](_0x48a9f9),'onLoad':(_0x23ecbd,_0x170c24)=>this[_0x30abf9(0xf7)][_0x30abf9(0x108)](_0x23ecbd,_0x170c24),'onUnLoad':_0x470af8=>this['_sheetsOutlineModel'][_0x30abf9(0xeb)](_0x470af8)}));}};Q=K([G(0x0,_0x3f3d7f),G(0x1,_0x3d40bd(P))],Q);let $=class extends _0xacd159{constructor(_0x2e0844=Qe,_0x1f16f1,_0x1f391e,_0x59e337){const _0x29eb91=_0x43fe3d;super(),this[_0x29eb91(0x123)]=_0x2e0844,this[_0x29eb91(0x102)]=_0x1f16f1,this[_0x29eb91(0xd7)]=_0x1f391e,this['_configService']=_0x59e337;let {..._0x58a328}=_0x36a193({},Qe,this[_0x29eb91(0x123)]);this[_0x29eb91(0x131)]['setConfig'](_0x29eb91(0x157),_0x58a328);}['onStarting'](){const _0x7a9f37=_0x43fe3d;this[_0x7a9f37(0x102)][_0x7a9f37(0x10f)]([P]),this[_0x7a9f37(0x102)][_0x7a9f37(0x10f)]([F]),this[_0x7a9f37(0x102)][_0x7a9f37(0x10f)]([Q]),this[_0x7a9f37(0x102)][_0x7a9f37(0x10f)]([J]),this[_0x7a9f37(0xcb)](),this[_0x7a9f37(0x102)][_0x7a9f37(0x154)](P),this[_0x7a9f37(0x102)]['get'](F),this[_0x7a9f37(0x102)][_0x7a9f37(0x154)](Q),this[_0x7a9f37(0x102)]['get'](J);}[_0x43fe3d(0xcb)](){const _0x2c66ef=_0x43fe3d;[z,ze,qe,V]['forEach'](_0x4d9486=>{const _0x168308=_0x3a3b;this[_0x168308(0xdb)](this[_0x168308(0xd7)][_0x168308(0xf8)](_0x4d9486));}),[I,L,H,B,U][_0x2c66ef(0x11e)](_0x4dd794=>{const _0x7fbbae=_0x2c66ef;this[_0x7fbbae(0xdb)](this['_commandService'][_0x7fbbae(0xf8)](_0x4dd794));});}};N($,_0x43fe3d(0x136),W),N($,_0x43fe3d(0xda),Xe),N($,_0x43fe3d(0x137),Ze),N($,_0x43fe3d(0x118),_0x4481f0['UNIVER_SHEET']),$=K([_0x5c43ca(_0x3b8092,_0x57e74f),G(0x1,_0x3d40bd(_0x217502)),G(0x2,_0x1cacbb),G(0x3,_0x473018)],$);export{z as AddDimensionOutlineCommand,I as AddDimensionOutlineMutation,V as ClearDimensionOutlinesCommand,B as ClearDimensionOutlinesMutation,_e as DimensionOutlineAxis,ve as DimensionOutlineErrorReason,ze as RemoveDimensionOutlineCommand,L as RemoveDimensionOutlineMutation,W as SHEET_OUTLINE_PLUGIN,qe as SetDimensionOutlineCollapsedCommand,H as SetDimensionOutlineCollapsedMutation,F as SheetsOutlineErrorService,P as SheetsOutlineModel,U as TransformDimensionOutlinesMutation,$ as UniverSheetsOutlinePlugin,T as buildDimensionOutlineTree,E as canAddDimensionOutline,Ie as getDimensionOutlineViewPermission$,R as hasDimensionOutlineViewPermission,O as transformOutlinesByDelete,D as transformOutlinesByInsert,k as transformOutlinesByMove};
|
|
1
|
+
const _0x2552be=_0x38a2;(function(_0x138e3b,_0x12de20){const _0x9ba323=_0x38a2,_0x3b044d=_0x138e3b();while(!![]){try{const _0x329dff=-parseInt(_0x9ba323(0x1f6))/0x1+-parseInt(_0x9ba323(0x19b))/0x2*(-parseInt(_0x9ba323(0x1ca))/0x3)+parseInt(_0x9ba323(0x1bf))/0x4*(-parseInt(_0x9ba323(0x1de))/0x5)+-parseInt(_0x9ba323(0x1ea))/0x6+parseInt(_0x9ba323(0x1ce))/0x7*(-parseInt(_0x9ba323(0x185))/0x8)+parseInt(_0x9ba323(0x192))/0x9*(-parseInt(_0x9ba323(0x16e))/0xa)+parseInt(_0x9ba323(0x16d))/0xb*(parseInt(_0x9ba323(0x1da))/0xc);if(_0x329dff===_0x12de20)break;else _0x3b044d['push'](_0x3b044d['shift']());}catch(_0x1a479b){_0x3b044d['push'](_0x3b044d['shift']());}}}(_0x327d,0x4a300));import{CommandType as _0x42c5de,CustomCommandExecutionError as _0x6678d2,DependentOn as _0x24a179,Disposable as _0x1f59cd,ICommandService as _0xec1c95,IConfigService as _0x88f4c1,IPermissionService as _0x51f3bd,IResourceManagerService as _0x12fef9,IUndoRedoService as _0x3d7842,IUniverInstanceService as _0x241e59,Inject as _0x259385,Injector as _0x2948c4,Plugin as _0x14323e,UniverInstanceType as _0x149174,generateRandomId as _0x293be6,merge as _0x2da987,sequenceExecute as _0x5c69e0}from'@univerjs/core';import{InsertColCommand as _0x540713,InsertRowCommand as _0x576ba9,MoveColsCommand as _0x5c3cdd,MoveRowsCommand as _0x32509d,RemoveColCommand as _0x289843,RemoveRowCommand as _0x19474a,SetColHiddenMutation as _0x5d70bb,SetColVisibleMutation as _0x34dce4,SetRowHiddenMutation as _0x3c2892,SetRowVisibleMutation as _0x35cb71,SheetInterceptorService as _0x2d3c87,SheetPermissionCheckController as _0x891372,UniverSheetsPlugin as _0x4eb0bf,WorkbookViewPermission as _0xd8479c,WorksheetViewPermission as _0x230a03,getSheetCommandTarget as _0x5bb827}from'@univerjs/sheets';import{Subject as _0x2a2d34,of as _0x4fe5d5}from'rxjs';import{debounceTime as _0x1bdf9f,map as _0x5d1f67,startWith as _0x4ef7b8}from'rxjs/operators';import{UniverLicensePlugin as _0x41b4af}from'@univerjs-pro/license';let _e=function(_0x540cd2){const _0x540868=_0x38a2;return _0x540cd2['ROW']=_0x540868(0x1d6),_0x540cd2[_0x540868(0x1e1)]=_0x540868(0x1b5),_0x540cd2;}({}),ve=function(_0x4d02c8){const _0x1d446d=_0x38a2;return _0x4d02c8[_0x1d446d(0x1ae)]=_0x1d446d(0x19d),_0x4d02c8['OUT_OF_BOUNDS']=_0x1d446d(0x1b3),_0x4d02c8[_0x1d446d(0x1d4)]=_0x1d446d(0x202),_0x4d02c8[_0x1d446d(0x1bd)]=_0x1d446d(0x1c3),_0x4d02c8['MOVE_SPLITS_OUTLINE']=_0x1d446d(0x1a6),_0x4d02c8[_0x1d446d(0x191)]='clear-range-not-contain-outline',_0x4d02c8[_0x1d446d(0x1e4)]='unknown',_0x4d02c8;}({});var S=class extends Error{constructor(_0x43a6ab,_0x49ca70,_0x1ae695){const _0x5d6e48=_0x38a2;super(_0x49ca70),this[_0x5d6e48(0x1fa)]=_0x43a6ab,this[_0x5d6e48(0x1b6)]=_0x1ae695,this[_0x5d6e48(0x159)]=_0x5d6e48(0x1a5);}};function ye(_0x2c0ef3){const _0x556606=_0x38a2;return _0x2c0ef3 instanceof S?_0x2c0ef3[_0x556606(0x1fa)]:_0x2c0ef3 instanceof Error?_0x2c0ef3['message'][_0x556606(0x197)](_0x556606(0x15d))?_0x556606(0x1a6):_0x2c0ef3[_0x556606(0x195)]['includes']('depth')?_0x556606(0x1c3):_0x2c0ef3[_0x556606(0x195)][_0x556606(0x197)](_0x556606(0x19e))?_0x556606(0x202):_0x2c0ef3[_0x556606(0x195)][_0x556606(0x197)](_0x556606(0x18d))?_0x556606(0x19d):_0x556606(0x17d):_0x556606(0x17d);}function be(_0x1dca98){return _0x1dca98 instanceof S?_0x1dca98['outlineId']:void 0x0;}const C=0x2**0x35-0x1;function w(_0x1cc3c7,_0xbc12c2){const _0x11f578=_0x38a2;return _0x1cc3c7[_0x11f578(0x181)]===_0xbc12c2[_0x11f578(0x181)]&&_0x1cc3c7[_0x11f578(0x1c4)]===_0xbc12c2[_0x11f578(0x1c4)]&&_0x1cc3c7[_0x11f578(0x1cc)]===_0xbc12c2[_0x11f578(0x1cc)];}function T(_0x354cfa,_0x28f916={}){const _0x2eb016=_0x38a2;let _0x5cab63=_0x28f916[_0x2eb016(0x161)]??0x8,_0x129948=new Map();for(let _0x2c6263 of _0x354cfa){let _0x380152=_0x2c6263['unitId']+':'+_0x2c6263[_0x2eb016(0x1c4)]+':'+_0x2c6263['axis'],_0x174c26=_0x129948['get'](_0x380152);_0x174c26?_0x174c26[_0x2eb016(0x170)](_0x2c6263):_0x129948[_0x2eb016(0x1ec)](_0x380152,[_0x2c6263]);}let _0x131be8=[];for(let _0x242736 of _0x129948[_0x2eb016(0x163)]()){let _0x525cc5=[..._0x242736]['sort'](j),_0x485872=[];for(let _0x2a1339 of _0x525cc5){for(Me(_0x2a1339);_0x485872[_0x2eb016(0x198)]>0x0&&_0x2a1339['start']>_0x485872[_0x485872[_0x2eb016(0x198)]-0x1]['end'];)_0x485872[_0x2eb016(0x1cb)]();let _0x2699d5=_0x485872[_0x485872[_0x2eb016(0x198)]-0x1];if(_0x2699d5&&_0x2a1339[_0x2eb016(0x18a)]>_0x2699d5[_0x2eb016(0x18a)])throw new S(_0x2eb016(0x202),_0x2eb016(0x182),_0x2a1339['id']);let _0x85054a=_0x2699d5?_0x2699d5[_0x2eb016(0x18f)]+0x1:0x1;if(_0x85054a>_0x5cab63)throw new S(_0x2eb016(0x1c3),_0x2eb016(0x1f3)+_0x5cab63,_0x2a1339['id']);let _0x4a1ea2={..._0x2a1339,'depth':_0x85054a,'parentId':_0x2699d5==null?void 0x0:_0x2699d5['id'],'anchor':_0x2a1339[_0x2eb016(0x18a)],'children':[]};_0x2699d5?_0x2699d5[_0x2eb016(0x203)][_0x2eb016(0x170)](_0x4a1ea2):_0x131be8['push'](_0x4a1ea2),_0x485872['push'](_0x4a1ea2);}}return _0x131be8;}function E(_0xf59297,_0x389074,_0x5daf0e={}){const _0x487226=_0x38a2;if(_0x389074['start']<0x0||_0x389074[_0x487226(0x19f)]>_0x389074[_0x487226(0x18a)])return{'valid':!0x1,'reason':_0x487226(0x19d)};if(_0x5daf0e[_0x487226(0x1f7)]!=null&&_0x389074['end']>=_0x5daf0e[_0x487226(0x1f7)])return{'valid':!0x1,'reason':'out-of-bounds'};let _0x4729d5=_0xf59297[_0x487226(0x188)](_0x4e6799=>w(_0x4e6799,_0x389074));for(let _0x295e51 of _0x4729d5)if(Ne(_0x295e51,_0x389074))return{'valid':!0x1,'reason':_0x487226(0x202)};try{T([..._0xf59297,_0x389074],_0x5daf0e);}catch(_0x28d658){let _0x2609f0=ye(_0x28d658);return _0x2609f0===_0x487226(0x1c3)?{'valid':!0x1,'reason':_0x487226(0x1c3)}:_0x2609f0===_0x487226(0x19d)?{'valid':!0x1,'reason':'invalid-range'}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function xe(_0x424feb,_0x4f774d,_0x4c5257={}){const _0x5175dc=_0x38a2;let _0xd396fe=E(_0x424feb,_0x4f774d,_0x4c5257);if(!_0xd396fe['valid'])throw Error(_0xd396fe[_0x5175dc(0x1fa)]??_0x5175dc(0x16c));return[..._0x424feb,_0x4f774d];}function Se(_0x5a30db,_0x25270a){const _0x5e1d32=_0x38a2;let _0x5dacce=_0x25270a['start'],_0x4be6e8=_0x25270a[_0x5e1d32(0x18a)],_0xef5eea=[],_0x379e9f=!0x0;for(;_0x379e9f;){_0x379e9f=!0x1;for(let _0x118a3c of _0x5a30db)!_0xef5eea[_0x5e1d32(0x197)](_0x118a3c)&&w(_0x118a3c,_0x25270a)&&Ae(_0x118a3c[_0x5e1d32(0x19f)],_0x118a3c['end'],_0x5dacce,_0x4be6e8)&&(_0xef5eea[_0x5e1d32(0x170)](_0x118a3c),_0x5dacce=Math[_0x5e1d32(0x1d7)](_0x5dacce,_0x118a3c['start']),_0x4be6e8=Math[_0x5e1d32(0x17b)](_0x4be6e8,_0x118a3c[_0x5e1d32(0x18a)]),_0x379e9f=!0x0);}if(_0xef5eea['length']===0x0)return null;let [_0x52ec2a]=[..._0xef5eea][_0x5e1d32(0x1bb)](j);return{'mergedOutline':{..._0x52ec2a,'start':_0x5dacce,'end':_0x4be6e8},'mergedOutlines':_0xef5eea};}function Ce(_0x14ebc0,_0x58a22a){const _0x1f5cac=_0x38a2;return _0x14ebc0[_0x1f5cac(0x188)](_0x4d1e25=>!w(_0x4d1e25,_0x58a22a)||!(_0x4d1e25[_0x1f5cac(0x19f)]>=_0x58a22a[_0x1f5cac(0x19f)]&&_0x4d1e25['end']<=_0x58a22a[_0x1f5cac(0x18a)]));}function we(_0x10d4c7,_0x560281,_0x528b35,_0x291688){const _0x46d67c=_0x38a2;return Te(_0x10d4c7[_0x46d67c(0x188)](_0x3f2b17=>_0x3f2b17[_0x46d67c(0x181)]===_0x560281&&_0x3f2b17['subUnitId']===_0x528b35&&_0x3f2b17[_0x46d67c(0x1cc)]===_0x291688&&_0x3f2b17['collapsed'])[_0x46d67c(0x1a2)](_0x44cf9d=>({'start':_0x44cf9d[_0x46d67c(0x19f)],'end':_0x44cf9d['end']})));}function Te(_0x4739af){const _0x2f2eb1=_0x38a2;if(_0x4739af['length']===0x0)return[];let _0x30c425=[..._0x4739af][_0x2f2eb1(0x1bb)]((_0x2623be,_0x51289d)=>_0x2623be[_0x2f2eb1(0x19f)]-_0x51289d['start']||_0x2623be[_0x2f2eb1(0x18a)]-_0x51289d[_0x2f2eb1(0x18a)]),_0xc044b7=[];for(let _0x4a4f84 of _0x30c425){let _0x2b2ac9=_0xc044b7[_0xc044b7[_0x2f2eb1(0x198)]-0x1];!_0x2b2ac9||_0x4a4f84[_0x2f2eb1(0x19f)]>_0x2b2ac9[_0x2f2eb1(0x18a)]+0x1?_0xc044b7[_0x2f2eb1(0x170)]({..._0x4a4f84}):_0x2b2ac9[_0x2f2eb1(0x18a)]=Math['max'](_0x2b2ac9[_0x2f2eb1(0x18a)],_0x4a4f84['end']);}return _0xc044b7;}function D(_0xc08f69,_0x4509c0){const _0x178770=_0x38a2;return _0x4509c0[_0x178770(0x1dd)]<=0x0?_0xc08f69:A(_0xc08f69[_0x178770(0x1a2)](_0x2f5fdf=>w(_0x2f5fdf,_0x4509c0)?_0x4509c0[_0x178770(0x1d1)]<=_0x2f5fdf['start']?{..._0x2f5fdf,'start':_0x2f5fdf[_0x178770(0x19f)]+_0x4509c0[_0x178770(0x1dd)],'end':_0x2f5fdf[_0x178770(0x18a)]+_0x4509c0['count']}:_0x2f5fdf[_0x178770(0x19f)]<_0x4509c0['index']&&_0x4509c0[_0x178770(0x1d1)]<=_0x2f5fdf[_0x178770(0x18a)]?{..._0x2f5fdf,'end':_0x2f5fdf['end']+_0x4509c0[_0x178770(0x1dd)]}:_0x2f5fdf:_0x2f5fdf));}function O(_0xbe358b,_0x3dd186){const _0x3d4da2=_0x38a2;if(_0x3dd186[_0x3d4da2(0x19f)]>_0x3dd186[_0x3d4da2(0x18a)])return _0xbe358b;let _0xcb3c3f=_0x3dd186[_0x3d4da2(0x18a)]-_0x3dd186[_0x3d4da2(0x19f)]+0x1,_0x47497a=[];for(let _0x54c7d5 of _0xbe358b){if(!w(_0x54c7d5,_0x3dd186)){_0x47497a[_0x3d4da2(0x170)](_0x54c7d5);continue;}if(_0x54c7d5[_0x3d4da2(0x18a)]<_0x3dd186[_0x3d4da2(0x19f)]){_0x47497a[_0x3d4da2(0x170)](_0x54c7d5);continue;}if(_0x54c7d5[_0x3d4da2(0x19f)]>_0x3dd186['end']){_0x47497a['push']({..._0x54c7d5,'start':_0x54c7d5['start']-_0xcb3c3f,'end':_0x54c7d5[_0x3d4da2(0x18a)]-_0xcb3c3f});continue;}let _0x220dc5=Math[_0x3d4da2(0x17b)](_0x54c7d5['start'],_0x3dd186[_0x3d4da2(0x19f)]),_0x994b60=Math['min'](_0x54c7d5['end'],_0x3dd186['end']),_0x295feb=Math[_0x3d4da2(0x17b)](0x0,_0x994b60-_0x220dc5+0x1),_0x168613=_0x54c7d5[_0x3d4da2(0x18a)]-_0x54c7d5[_0x3d4da2(0x19f)]+0x1-_0x295feb;if(_0x168613<=0x0)continue;let _0xf0b37e=_0x54c7d5[_0x3d4da2(0x19f)]<_0x3dd186[_0x3d4da2(0x19f)]?_0x54c7d5[_0x3d4da2(0x19f)]:_0x3dd186[_0x3d4da2(0x19f)];_0x47497a[_0x3d4da2(0x170)]({..._0x54c7d5,'start':_0xf0b37e,'end':_0xf0b37e+_0x168613-0x1});}return A(_0x47497a);}function k(_0x5e940b,_0x5cd25c){const _0x5c94e6=_0x38a2;if(_0x5cd25c[_0x5c94e6(0x178)]>_0x5cd25c['sourceEnd'])return _0x5e940b;let _0x74df84=[];for(let _0x3022a3 of _0x5e940b){if(!w(_0x3022a3,_0x5cd25c)){_0x74df84[_0x5c94e6(0x170)](_0x3022a3);continue;}let _0x35c535=Ee(_0x3022a3,_0x5cd25c);if(_0x35c535[_0x5c94e6(0x201)]===_0x5c94e6(0x19c))throw new S('move-splits-outline',_0x5c94e6(0x1cf)+_0x3022a3['id'],_0x3022a3['id']);_0x74df84['push'](_0x35c535[_0x5c94e6(0x175)]);}return A(_0x74df84);}function Ee(_0xdc0242,_0x5b6f50){const _0x5e3401=_0x38a2;let _0x4ed35d=De(_0x5b6f50['sourceStart'],_0x5b6f50['sourceEnd']+0x1,_0x5b6f50[_0x5e3401(0x1ed)]),_0x43cf24=[],_0x2ab225={'start':_0xdc0242[_0x5e3401(0x19f)],'end':_0xdc0242[_0x5e3401(0x18a)]+0x1};for(let _0x5080bb of _0x4ed35d){let _0x4b1b78=Oe(_0x2ab225,_0x5080bb[_0x5e3401(0x18d)]);_0x4b1b78&&_0x43cf24[_0x5e3401(0x170)]({'start':_0x4b1b78[_0x5e3401(0x19f)]+_0x5080bb[_0x5e3401(0x15b)],'end':_0x4b1b78[_0x5e3401(0x18a)]+_0x5080bb[_0x5e3401(0x15b)]});}let _0xc609f0=ke(_0x43cf24);return _0xc609f0[_0x5e3401(0x198)]===0x1?{'type':'ok','outline':{..._0xdc0242,'start':_0xc609f0[0x0][_0x5e3401(0x19f)],'end':_0xc609f0[0x0][_0x5e3401(0x18a)]-0x1}}:{'type':'split','outline':_0xdc0242,'ranges':_0xc609f0};}function De(_0x1f5319,_0x542517,_0x318d5a){let _0x4a2f29=_0x542517-_0x1f5319;if(_0x4a2f29<=0x0)throw Error('Invalid\x20dimension\x20outline\x20move\x20source\x20range');return _0x318d5a>=_0x1f5319&&_0x318d5a<=_0x542517?[{'range':{'start':0x0,'end':C},'offset':0x0}]:_0x318d5a<_0x1f5319?[{'range':{'start':0x0,'end':_0x318d5a},'offset':0x0},{'range':{'start':_0x318d5a,'end':_0x1f5319},'offset':_0x4a2f29},{'range':{'start':_0x1f5319,'end':_0x542517},'offset':_0x318d5a-_0x1f5319},{'range':{'start':_0x542517,'end':C},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x1f5319},'offset':0x0},{'range':{'start':_0x1f5319,'end':_0x542517},'offset':_0x318d5a-_0x542517},{'range':{'start':_0x542517,'end':_0x318d5a},'offset':-_0x4a2f29},{'range':{'start':_0x318d5a,'end':C},'offset':0x0}];}function Oe(_0x3beb0c,_0x5cc76f){const _0x3b6e7c=_0x38a2;let _0x2add85=Math[_0x3b6e7c(0x17b)](_0x3beb0c['start'],_0x5cc76f[_0x3b6e7c(0x19f)]),_0x276c87=Math[_0x3b6e7c(0x1d7)](_0x3beb0c[_0x3b6e7c(0x18a)],_0x5cc76f[_0x3b6e7c(0x18a)]);return _0x2add85>=_0x276c87?null:{'start':_0x2add85,'end':_0x276c87};}function ke(_0x2c9e05){const _0xcd5553=_0x38a2;if(_0x2c9e05['length']===0x0)return[];let _0x48433a=[..._0x2c9e05][_0xcd5553(0x1bb)]((_0x1bf9ba,_0x521fd4)=>_0x1bf9ba[_0xcd5553(0x19f)]-_0x521fd4['start']||_0x1bf9ba[_0xcd5553(0x18a)]-_0x521fd4['end']),_0x3f8ede=[];for(let _0x347ec2 of _0x48433a){let _0x289f34=_0x3f8ede[_0x3f8ede[_0xcd5553(0x198)]-0x1];!_0x289f34||_0x347ec2['start']>_0x289f34[_0xcd5553(0x18a)]?_0x3f8ede[_0xcd5553(0x170)]({..._0x347ec2}):_0x289f34[_0xcd5553(0x18a)]=Math[_0xcd5553(0x17b)](_0x289f34[_0xcd5553(0x18a)],_0x347ec2['end']);}return _0x3f8ede;}function Ae(_0x3b9120,_0x3543f4,_0x861bec,_0x59bdb0){return _0x3543f4+0x1===_0x861bec||_0x59bdb0+0x1===_0x3b9120;}function A(_0x267172){let _0x354354=je(_0x267172);return T(_0x354354),_0x354354;}function je(_0x508cdf){const _0x168fda=_0x38a2;let _0x506e9d=new Map();for(let _0x4d7d55 of _0x508cdf){let _0x2ea65b=[_0x4d7d55[_0x168fda(0x181)],_0x4d7d55['subUnitId'],_0x4d7d55[_0x168fda(0x1cc)],_0x4d7d55['start'],_0x4d7d55[_0x168fda(0x18a)]]['join'](':'),_0x1f1a24=_0x506e9d[_0x168fda(0x194)](_0x2ea65b);if(!_0x1f1a24){_0x506e9d['set'](_0x2ea65b,_0x4d7d55);continue;}_0x506e9d[_0x168fda(0x1ec)](_0x2ea65b,{..._0x1f1a24,'collapsed':_0x1f1a24['collapsed']||_0x4d7d55['collapsed']});}return Array[_0x168fda(0x1c0)](_0x506e9d[_0x168fda(0x163)]());}function j(_0x18578d,_0x2102c9){const _0x26f8b3=_0x38a2;return _0x18578d['unitId']===_0x2102c9[_0x26f8b3(0x181)]?_0x18578d['subUnitId']===_0x2102c9['subUnitId']?_0x18578d['axis']===_0x2102c9[_0x26f8b3(0x1cc)]?_0x18578d[_0x26f8b3(0x19f)]===_0x2102c9[_0x26f8b3(0x19f)]?_0x2102c9[_0x26f8b3(0x18a)]-_0x18578d['end']:_0x18578d[_0x26f8b3(0x19f)]-_0x2102c9[_0x26f8b3(0x19f)]:_0x18578d[_0x26f8b3(0x1cc)]['localeCompare'](_0x2102c9['axis']):_0x18578d['subUnitId'][_0x26f8b3(0x1fe)](_0x2102c9[_0x26f8b3(0x1c4)]):_0x18578d[_0x26f8b3(0x181)][_0x26f8b3(0x1fe)](_0x2102c9[_0x26f8b3(0x181)]);}function Me(_0x2f171c){const _0x18997=_0x38a2;if(_0x2f171c[_0x18997(0x19f)]>_0x2f171c[_0x18997(0x18a)])throw new S(_0x18997(0x19d),_0x18997(0x1f9),_0x2f171c['id']);}function Ne(_0x5f1be7,_0x598ca1){const _0x474be9=_0x38a2;let _0x1708f1=_0x5f1be7[_0x474be9(0x19f)]<=_0x598ca1['end']&&_0x598ca1[_0x474be9(0x19f)]<=_0x5f1be7[_0x474be9(0x18a)],_0x1c3941=_0x5f1be7[_0x474be9(0x19f)]<=_0x598ca1[_0x474be9(0x19f)]&&_0x598ca1['end']<=_0x5f1be7[_0x474be9(0x18a)],_0x2d5829=_0x598ca1['start']<=_0x5f1be7[_0x474be9(0x19f)]&&_0x5f1be7['end']<=_0x598ca1[_0x474be9(0x18a)];return _0x1708f1&&!_0x1c3941&&!_0x2d5829;}function _0x327d(){const _0x2e9111=['184613fGgTOB','53180yfOhzQ','MUTATION','push','move','setConfig','endColumn','registerCommand','outline','_sheetsOutlineErrorService','sheets-outline.config','sourceStart','entries','call','max','getUnit','unknown','getMaxColumns','_resourceManagerService','result','unitId','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','undos','registerPluginResource','1595096mAxHZh','_initResource','dimension-outline-','filter','sourceEnd','end','string','sheet.mutation.transform-dimension-outlines','range','toRange','depth','fromRange','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','54qsrhDy','collapsed','get','message','_sheetInterceptorService','includes','length','getSheetBySheetId','getRowCount','84fOaTAF','split','invalid-range','Crossing','start','emit','change$','map','sheet.command.set-dimension-outline-collapsed','preUndos','DimensionOutlineError','move-splits-outline','version','stringify','sheet.command.remove-dimension-outline','Invalid\x20dimension\x20outline\x20mutation','complete','_sheetsOutlineModel','_configService','INVALID_RANGE','getActiveSheet','sheet.mutation.add-dimension-outline','startRow','forEach','out-of-bounds','_commandService','column','outlineId','mergedOutline','getUnitOutlines','getColumnCount','restoreOutlines','sort','UNIVER_SHEET','MAX_DEPTH','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','795332rNYFFt','from','function','endRow','max-depth','subUnitId','serialize','clear','_error$','getOutlines','_getCommandScope','42594VbhfuO','pop','axis','pluginName','21XRZURA','Move\x20would\x20split\x20dimension\x20outline:\x20','some','index','decorate','startColumn','CROSSING','_univerInstanceService','row','min','setOutlines','outlineList','1140IIMIYq','deserialize','@univerjs-pro/sheets-outline','count','5vdzYbg','sheet.command.add-dimension-outline','getUnitId','COLUMN','has','dispose','UNKNOWN','COMMAND','delete','disposeWithMe','pipe','sheet.mutation.remove-dimension-outline','2715432oyyBli','parse','set','destinationIndex','_injector','insert','_outlines','onStarting','getOwnPropertyDescriptor','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','object','params','605355LEWYpr','maxIndex','_initRegisterCommand','Invalid\x20outline\x20range','reason','1.0.2','defineProperty','add','localeCompare','getSheetId','sheet.command.clear-dimension-outlines','type','crossing','children','getCurrentUnitOfType','name','toPrimitive','offset','_config','split\x20dimension\x20outline','redos','removeUnit','_change$','maxDepth','find','values','SHEET_OUTLINE_PLUGIN','permissionPointUpdate$','packageName','pushUndoRedo','symbol','permissionCheckWithoutRange','next','preRedos','invalid-dimension-outline'];_0x327d=function(){return _0x2e9111;};return _0x327d();}function M(_0x5f2107){'@babel/helpers - typeof';const _0xa43912=_0x38a2;return M=typeof Symbol=='function'&&typeof Symbol['iterator']==_0xa43912(0x168)?function(_0x1b8531){return typeof _0x1b8531;}:function(_0x440a77){const _0x3db1cd=_0xa43912;return _0x440a77&&typeof Symbol==_0x3db1cd(0x1c1)&&_0x440a77['constructor']===Symbol&&_0x440a77!==Symbol['prototype']?'symbol':typeof _0x440a77;},M(_0x5f2107);}function Pe(_0x21445b,_0x5a7377){const _0x565a41=_0x38a2;if(M(_0x21445b)!=_0x565a41(0x1f4)||!_0x21445b)return _0x21445b;var _0x436338=_0x21445b[Symbol[_0x565a41(0x15a)]];if(_0x436338!==void 0x0){var _0x11b927=_0x436338[_0x565a41(0x17a)](_0x21445b,_0x5a7377||'default');if(M(_0x11b927)!='object')return _0x11b927;throw TypeError(_0x565a41(0x1be));}return(_0x5a7377===_0x565a41(0x18b)?String:Number)(_0x21445b);}function Fe(_0x46865a){const _0x5abf7f=_0x38a2;var _0x16295c=Pe(_0x46865a,_0x5abf7f(0x18b));return M(_0x16295c)==_0x5abf7f(0x168)?_0x16295c:_0x16295c+'';}function N(_0x5cdda2,_0x497ba8,_0x315bf7){const _0x1d226c=_0x38a2;return(_0x497ba8=Fe(_0x497ba8))in _0x5cdda2?Object[_0x1d226c(0x1fc)](_0x5cdda2,_0x497ba8,{'value':_0x315bf7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5cdda2[_0x497ba8]=_0x315bf7,_0x5cdda2;}var P=class extends _0x1f59cd{constructor(..._0x2ac573){const _0x5ca148=_0x38a2;super(..._0x2ac573),N(this,'_outlines',new Map()),N(this,_0x5ca148(0x160),new _0x2a2d34()),N(this,_0x5ca148(0x1a1),this[_0x5ca148(0x160)]['asObservable']());}[_0x2552be(0x1c8)](_0x7f983f,_0x2d68fd){const _0x5e9db7=_0x2552be;var _0x4797d3;return[...((_0x4797d3=this[_0x5e9db7(0x1f0)][_0x5e9db7(0x194)](_0x7f983f))==null?void 0x0:_0x4797d3[_0x5e9db7(0x194)](_0x2d68fd))??[]];}[_0x2552be(0x1b8)](_0x61bcc0){const _0x108009=_0x2552be;let _0x4b69d8=this[_0x108009(0x1f0)][_0x108009(0x194)](_0x61bcc0),_0x2defc2=new Map();return _0x4b69d8==null||_0x4b69d8['forEach']((_0x57502f,_0x340e5f)=>{const _0x10e1c5=_0x108009;_0x2defc2[_0x10e1c5(0x1ec)](_0x340e5f,[..._0x57502f]);}),_0x2defc2;}[_0x2552be(0x1d8)](_0x327a5c,_0x14989d,_0x1d82f6){const _0x120bdb=_0x2552be;this['_ensureUnitOutlines'](_0x327a5c)[_0x120bdb(0x1ec)](_0x14989d,[..._0x1d82f6]),this['_change$']['next']({'unitId':_0x327a5c,'subUnitId':_0x14989d});}[_0x2552be(0x15f)](_0x479a3c){const _0x35024f=_0x2552be;this[_0x35024f(0x1f0)]['delete'](_0x479a3c),this[_0x35024f(0x160)]['next']({'unitId':_0x479a3c});}['serialize'](_0xe43e82){const _0x33f54c=_0x2552be;let _0x4a4930=this[_0x33f54c(0x1f0)][_0x33f54c(0x194)](_0xe43e82),_0x4d5e8c={};return _0x4a4930==null||_0x4a4930[_0x33f54c(0x1b2)]((_0x1ecb64,_0x1aedd5)=>{_0x4d5e8c[_0x1aedd5]={'outlineList':[..._0x1ecb64]};}),_0x4d5e8c;}[_0x2552be(0x1db)](_0x32db43,_0x3221b0){const _0x5e2a1c=_0x2552be;let _0x3204e3=new Map();Object[_0x5e2a1c(0x179)](_0x3221b0)[_0x5e2a1c(0x1b2)](([_0x4860aa,_0x10b7bf])=>{const _0x10ae6b=_0x5e2a1c;_0x3204e3[_0x10ae6b(0x1ec)](_0x4860aa,[..._0x10b7bf[_0x10ae6b(0x1d9)]??[]]);}),this[_0x5e2a1c(0x1f0)][_0x5e2a1c(0x1ec)](_0x32db43,_0x3204e3),this['_change$'][_0x5e2a1c(0x16a)]({'unitId':_0x32db43});}[_0x2552be(0x1e3)](){const _0x2162f8=_0x2552be;super[_0x2162f8(0x1e3)](),this[_0x2162f8(0x1f0)][_0x2162f8(0x1c6)](),this[_0x2162f8(0x160)]['complete']();}['_ensureUnitOutlines'](_0x414ba9){const _0x9124e8=_0x2552be;let _0x42065a=this['_outlines'][_0x9124e8(0x194)](_0x414ba9);return _0x42065a||(_0x42065a=new Map(),this[_0x9124e8(0x1f0)][_0x9124e8(0x1ec)](_0x414ba9,_0x42065a)),_0x42065a;}},F=class extends _0x1f59cd{constructor(..._0x428f75){const _0x3fcfa1=_0x2552be;super(..._0x428f75),N(this,'_error$',new _0x2a2d34()),N(this,'error$',this[_0x3fcfa1(0x1c7)]['asObservable']());}['emit'](_0x58f457){const _0x966952=_0x2552be;this[_0x966952(0x1c7)][_0x966952(0x16a)](_0x58f457);}[_0x2552be(0x1e3)](){const _0x422c9c=_0x2552be;super[_0x422c9c(0x1e3)](),this[_0x422c9c(0x1c7)][_0x422c9c(0x1ab)]();}};const I={'id':_0x2552be(0x1b0),'type':_0x42c5de[_0x2552be(0x16f)],'handler':(_0x10a33c,_0xa19a29)=>{const _0x50075e=_0x2552be;let _0x4879c9=_0x10a33c[_0x50075e(0x194)](P),_0x5091a3=_0x4879c9[_0x50075e(0x1c8)](_0xa19a29[_0x50075e(0x181)],_0xa19a29[_0x50075e(0x1c4)]);return _0x4879c9['setOutlines'](_0xa19a29[_0x50075e(0x181)],_0xa19a29['subUnitId'],xe(_0x5091a3,_0xa19a29[_0x50075e(0x175)])),!0x0;}},L={'id':_0x2552be(0x1e9),'type':_0x42c5de[_0x2552be(0x16f)],'handler':(_0x23e142,_0x17b863)=>{const _0x23c802=_0x2552be;let _0x345e37=_0x23e142['get'](P),_0x182679=_0x345e37['getOutlines'](_0x17b863[_0x23c802(0x181)],_0x17b863[_0x23c802(0x1c4)]);return _0x345e37[_0x23c802(0x1d8)](_0x17b863[_0x23c802(0x181)],_0x17b863[_0x23c802(0x1c4)],_0x182679[_0x23c802(0x188)](_0x2c555a=>_0x2c555a['id']!==_0x17b863[_0x23c802(0x1b6)])),!0x0;}};function R(_0x515a84,_0x4c11c4,_0x21739e){const _0x54fcd6=_0x2552be;let _0x4a507c=Le(_0x515a84);return!_0x4a507c||_0x4a507c[_0x54fcd6(0x169)]({'workbookTypes':[_0xd8479c],'worksheetTypes':[_0x230a03]},_0x4c11c4,_0x21739e);}function Ie(_0x5a7b03,_0x231799,_0x11051d){const _0x49a20d=_0x2552be;let _0x4a94f5=Re(_0x5a7b03);return((_0x4a94f5==null?void 0x0:_0x4a94f5[_0x49a20d(0x165)])??_0x4fe5d5(null))[_0x49a20d(0x1e8)](_0x1bdf9f(0x64),_0x4ef7b8(null),_0x5d1f67(()=>R(_0x5a7b03,_0x231799,_0x11051d)));}function Le(_0x145936){const _0x187edf=_0x2552be;if(typeof _0x145936[_0x187edf(0x1e2)]==_0x187edf(0x1c1)&&!_0x145936['has'](_0x891372))return null;try{return _0x145936[_0x187edf(0x194)](_0x891372);}catch{return null;}}function Re(_0x1658e0){const _0x513d38=_0x2552be;if(typeof _0x1658e0[_0x513d38(0x1e2)]==_0x513d38(0x1c1)&&!_0x1658e0[_0x513d38(0x1e2)](_0x51f3bd))return null;try{return _0x1658e0[_0x513d38(0x194)](_0x51f3bd);}catch{return null;}}const z={'id':_0x2552be(0x1df),'type':_0x42c5de[_0x2552be(0x1e5)],'handler':(_0x5c4c58,_0x28d55b)=>{const _0x215766=_0x2552be;if(!_0x28d55b)return!0x1;let _0x4b07c6=_0x5bb827(_0x5c4c58[_0x215766(0x194)](_0x241e59),_0x28d55b);if(!_0x4b07c6)return!0x1;let {unitId:_0x253be2,subUnitId:_0x489a70,worksheet:_0x5f278f}=_0x4b07c6;if(!R(_0x5c4c58,_0x253be2,_0x489a70))return!0x1;let _0x45f60a=_0x5c4c58[_0x215766(0x194)](P),_0x5d0e39={'id':_0x215766(0x187)+_0x293be6(0x6),'unitId':_0x253be2,'subUnitId':_0x489a70,'axis':_0x28d55b[_0x215766(0x1cc)],'start':_0x28d55b[_0x215766(0x19f)],'end':_0x28d55b[_0x215766(0x18a)],'collapsed':!0x1},_0x849c4a=_0x28d55b[_0x215766(0x1cc)]===_0x215766(0x1d6)?_0x5f278f[_0x215766(0x19a)]():_0x5f278f[_0x215766(0x1b9)](),_0x5a1569=_0x45f60a[_0x215766(0x1c8)](_0x253be2,_0x489a70),_0x5628d7=Se(_0x5a1569,_0x5d0e39),_0x40293c=(_0x5628d7==null?void 0x0:_0x5628d7['mergedOutlines'])??[],_0x233d4b=(_0x5628d7==null?void 0x0:_0x5628d7[_0x215766(0x1b7)])??_0x5d0e39,_0x1e59f4=E(_0x5628d7?_0x5a1569[_0x215766(0x188)](_0x57c307=>!_0x40293c[_0x215766(0x1d0)](_0x114622=>_0x114622['id']===_0x57c307['id'])):_0x5a1569,_0x233d4b,{'maxIndex':_0x849c4a});if(!_0x1e59f4['valid'])return _0x5c4c58[_0x215766(0x194)](F)[_0x215766(0x1a0)]({'reason':_0x1e59f4[_0x215766(0x1fa)]??_0x215766(0x17d),'commandId':z['id'],'unitId':_0x253be2,'subUnitId':_0x489a70,'axis':_0x28d55b[_0x215766(0x1cc)],'outlineId':_0x233d4b['id']}),!0x1;let _0x3d993e=[..._0x40293c[_0x215766(0x1a2)](_0x262d52=>({'id':L['id'],'params':{'unitId':_0x253be2,'subUnitId':_0x489a70,'outlineId':_0x262d52['id']}})),{'id':I['id'],'params':{'unitId':_0x253be2,'subUnitId':_0x489a70,'outline':_0x233d4b}}],_0x4bbeb5=[{'id':L['id'],'params':{'unitId':_0x253be2,'subUnitId':_0x489a70,'outlineId':_0x233d4b['id']}},..._0x40293c[_0x215766(0x1a2)](_0x4d8be8=>({'id':I['id'],'params':{'unitId':_0x253be2,'subUnitId':_0x489a70,'outline':_0x4d8be8}}))];return _0x5c69e0(_0x3d993e,_0x5c4c58['get'](_0xec1c95))[_0x215766(0x180)]?(_0x5c4c58['get'](_0x3d7842)['pushUndoRedo']({'unitID':_0x253be2,'undoMutations':_0x4bbeb5,'redoMutations':_0x3d993e}),!0x0):!0x1;}},B={'id':'sheet.mutation.clear-dimension-outlines','type':_0x42c5de[_0x2552be(0x16f)],'handler':(_0x57b757,_0x34b06e)=>{const _0x333a19=_0x2552be;let _0x3baa0d=_0x57b757[_0x333a19(0x194)](P),_0x314209=_0x3baa0d['getOutlines'](_0x34b06e['unitId'],_0x34b06e[_0x333a19(0x1c4)]);return _0x3baa0d['setOutlines'](_0x34b06e['unitId'],_0x34b06e['subUnitId'],Ce(_0x314209,_0x34b06e)),!0x0;}},V={'id':_0x2552be(0x200),'type':_0x42c5de['COMMAND'],'handler':(_0x147d6b,_0x5b5d83)=>{const _0x216dee=_0x2552be;if(!_0x5b5d83)return!0x1;let _0x23ff78=_0x5bb827(_0x147d6b[_0x216dee(0x194)](_0x241e59),_0x5b5d83);if(!_0x23ff78)return!0x1;let {unitId:_0x6a1fc2,subUnitId:_0x47e9c2}=_0x23ff78;if(!R(_0x147d6b,_0x6a1fc2,_0x47e9c2))return!0x1;let _0x27be32={'unitId':_0x6a1fc2,'subUnitId':_0x47e9c2,'axis':_0x5b5d83[_0x216dee(0x1cc)],'start':_0x5b5d83[_0x216dee(0x19f)],'end':_0x5b5d83['end']},_0xb65329=_0x147d6b[_0x216dee(0x194)](P)[_0x216dee(0x1c8)](_0x6a1fc2,_0x47e9c2)['filter'](_0x4c2f33=>w(_0x4c2f33,_0x27be32)&&_0x4c2f33[_0x216dee(0x19f)]>=_0x5b5d83['start']&&_0x4c2f33[_0x216dee(0x18a)]<=_0x5b5d83[_0x216dee(0x18a)]);if(_0xb65329[_0x216dee(0x198)]===0x0)return _0x147d6b[_0x216dee(0x194)](F)[_0x216dee(0x1a0)]({'reason':'clear-range-not-contain-outline','commandId':V['id'],'unitId':_0x6a1fc2,'subUnitId':_0x47e9c2,'axis':_0x5b5d83[_0x216dee(0x1cc)]}),!0x1;let _0x5d7797=[{'id':B['id'],'params':{..._0x27be32,'removedOutlineIds':_0xb65329[_0x216dee(0x1a2)](_0x5e326f=>_0x5e326f['id'])}}],_0x2fef0b=_0xb65329[_0x216dee(0x1a2)](_0x571fa0=>({'id':I['id'],'params':{'unitId':_0x6a1fc2,'subUnitId':_0x47e9c2,'outline':_0x571fa0}}));return _0x5c69e0(_0x5d7797,_0x147d6b[_0x216dee(0x194)](_0xec1c95))[_0x216dee(0x180)]?(_0x147d6b[_0x216dee(0x194)](_0x3d7842)[_0x216dee(0x167)]({'unitID':_0x6a1fc2,'undoMutations':_0x2fef0b,'redoMutations':_0x5d7797}),!0x0):!0x1;}},ze={'id':_0x2552be(0x1a9),'type':_0x42c5de[_0x2552be(0x1e5)],'handler':(_0x19b640,_0xe9cf2d)=>{const _0x5294eb=_0x2552be;if(!_0xe9cf2d)return!0x1;let _0xd84f79=_0x5bb827(_0x19b640['get'](_0x241e59),_0xe9cf2d);if(!_0xd84f79)return!0x1;let {unitId:_0x129088,subUnitId:_0x44e473}=_0xd84f79;if(!R(_0x19b640,_0x129088,_0x44e473))return!0x1;let _0x57e34c=_0x19b640['get'](P)[_0x5294eb(0x1c8)](_0x129088,_0x44e473)[_0x5294eb(0x162)](_0x3f499e=>_0x3f499e['id']===_0xe9cf2d['outlineId']);if(!_0x57e34c)return!0x1;let _0x5b1899=[{'id':L['id'],'params':{'unitId':_0x129088,'subUnitId':_0x44e473,'outlineId':_0x57e34c['id'],'outline':_0x57e34c}}],_0xf14de2=[{'id':I['id'],'params':{'unitId':_0x129088,'subUnitId':_0x44e473,'outline':_0x57e34c}}];return _0x5c69e0(_0x5b1899,_0x19b640[_0x5294eb(0x194)](_0xec1c95))[_0x5294eb(0x180)]?(_0x19b640[_0x5294eb(0x194)](_0x3d7842)[_0x5294eb(0x167)]({'unitID':_0x129088,'undoMutations':_0xf14de2,'redoMutations':_0x5b1899}),!0x0):!0x1;}},H={'id':'sheet.mutation.set-dimension-outline-collapsed','type':_0x42c5de[_0x2552be(0x16f)],'handler':(_0x8b13a6,_0x5a6a2e)=>{const _0x510f3=_0x2552be;let _0x4ead48=_0x8b13a6['get'](P),_0x448b1c=_0x4ead48[_0x510f3(0x1c8)](_0x5a6a2e['unitId'],_0x5a6a2e[_0x510f3(0x1c4)]),_0x2573ec=_0x448b1c[_0x510f3(0x162)](_0x1deac0=>_0x1deac0['id']===_0x5a6a2e[_0x510f3(0x1b6)]);return _0x2573ec&&_0x4ead48[_0x510f3(0x1d8)](_0x5a6a2e['unitId'],_0x5a6a2e[_0x510f3(0x1c4)],_0x448b1c[_0x510f3(0x1a2)](_0x260d50=>_0x260d50[_0x510f3(0x181)]!==_0x2573ec['unitId']||_0x260d50['subUnitId']!==_0x2573ec[_0x510f3(0x1c4)]||_0x260d50[_0x510f3(0x1cc)]!==_0x2573ec['axis']||_0x260d50['start']!==_0x2573ec[_0x510f3(0x19f)]||_0x260d50[_0x510f3(0x18a)]!==_0x2573ec[_0x510f3(0x18a)]?_0x260d50:{..._0x260d50,'collapsed':_0x5a6a2e[_0x510f3(0x193)]})),!0x0;}};function Be(_0x150999,_0x2f6de1,_0x3f2b40,_0x1ad0df){const _0x4e8e82=_0x2552be;return _0x150999===_0x4e8e82(0x1d6)?{'startRow':_0x2f6de1,'endRow':_0x3f2b40,'startColumn':0x0,'endColumn':_0x1ad0df[_0x4e8e82(0x17e)]()-0x1}:{'startRow':0x0,'endRow':_0x1ad0df[_0x4e8e82(0x19a)]()-0x1,'startColumn':_0x2f6de1,'endColumn':_0x3f2b40};}function Ve(_0x362e95){return _0x362e95==='row'?_0x3c2892['id']:_0x5d70bb['id'];}function He(_0x24045d){return _0x24045d==='row'?_0x35cb71['id']:_0x34dce4['id'];}function Ue(_0x22c288,_0x31fd9b,_0x4ba758,_0x24c0be){const _0x4c563b=_0x2552be;let _0x3eef17=_0x31fd9b?[Be(_0x22c288[_0x4c563b(0x1cc)],_0x22c288[_0x4c563b(0x19f)],_0x22c288[_0x4c563b(0x18a)],_0x4ba758)]:We(_0x22c288,_0x24c0be,_0x4ba758),_0x5d6c61=_0x31fd9b?Ve(_0x22c288[_0x4c563b(0x1cc)]):He(_0x22c288['axis']);return[{'id':H['id'],'params':{'unitId':_0x22c288[_0x4c563b(0x181)],'subUnitId':_0x22c288['subUnitId'],'outlineId':_0x22c288['id'],'outline':_0x22c288,'collapsed':_0x31fd9b}},..._0x3eef17[_0x4c563b(0x1a2)](_0x120e67=>({'id':_0x5d6c61,'params':{'unitId':_0x22c288[_0x4c563b(0x181)],'subUnitId':_0x22c288[_0x4c563b(0x1c4)],'ranges':[_0x120e67],'dimensionOutlineId':_0x22c288['id']}}))];}function We(_0x506140,_0x361739,_0x327434){const _0x5a15fc=_0x2552be;let _0x103f42=we(_0x361739[_0x5a15fc(0x1a2)](_0x529153=>Ge(_0x529153,_0x506140)?{..._0x529153,'collapsed':!0x1}:_0x529153),_0x506140[_0x5a15fc(0x181)],_0x506140['subUnitId'],_0x506140[_0x5a15fc(0x1cc)]);return Ke({'start':_0x506140['start'],'end':_0x506140[_0x5a15fc(0x18a)]},_0x103f42)[_0x5a15fc(0x1a2)](_0xefe5a7=>Be(_0x506140[_0x5a15fc(0x1cc)],_0xefe5a7[_0x5a15fc(0x19f)],_0xefe5a7[_0x5a15fc(0x18a)],_0x327434));}function Ge(_0x126872,_0x17f447){const _0xfce4c4=_0x2552be;return _0x126872[_0xfce4c4(0x181)]===_0x17f447[_0xfce4c4(0x181)]&&_0x126872[_0xfce4c4(0x1c4)]===_0x17f447[_0xfce4c4(0x1c4)]&&_0x126872[_0xfce4c4(0x1cc)]===_0x17f447[_0xfce4c4(0x1cc)]&&_0x126872[_0xfce4c4(0x19f)]===_0x17f447[_0xfce4c4(0x19f)]&&_0x126872[_0xfce4c4(0x18a)]===_0x17f447['end'];}function Ke(_0x2fad72,_0x4084f2){const _0x36b7c9=_0x2552be;let _0xfc5c88=_0x2fad72[_0x36b7c9(0x19f)],_0x516ffa=[];for(let _0x24a2d7 of _0x4084f2)if(!(_0x24a2d7[_0x36b7c9(0x18a)]<_0xfc5c88||_0x24a2d7[_0x36b7c9(0x19f)]>_0x2fad72[_0x36b7c9(0x18a)])&&(_0x24a2d7['start']>_0xfc5c88&&_0x516ffa[_0x36b7c9(0x170)]({'start':_0xfc5c88,'end':Math[_0x36b7c9(0x1d7)](_0x24a2d7[_0x36b7c9(0x19f)]-0x1,_0x2fad72[_0x36b7c9(0x18a)])}),_0xfc5c88=Math[_0x36b7c9(0x17b)](_0xfc5c88,_0x24a2d7[_0x36b7c9(0x18a)]+0x1),_0xfc5c88>_0x2fad72[_0x36b7c9(0x18a)]))break;return _0xfc5c88<=_0x2fad72[_0x36b7c9(0x18a)]&&_0x516ffa[_0x36b7c9(0x170)]({'start':_0xfc5c88,'end':_0x2fad72[_0x36b7c9(0x18a)]}),_0x516ffa;}const qe={'id':_0x2552be(0x1a3),'type':_0x42c5de[_0x2552be(0x1e5)],'handler':(_0x67a539,_0x58eba9)=>{const _0x17982b=_0x2552be;if(!_0x58eba9)return!0x1;let _0x552f38=_0x5bb827(_0x67a539['get'](_0x241e59),_0x58eba9);if(!_0x552f38)return!0x1;let {unitId:_0xe5ccd9,subUnitId:_0x1b3504,worksheet:_0x1ea647}=_0x552f38;if(!R(_0x67a539,_0xe5ccd9,_0x1b3504))return!0x1;let _0x5e36c8=_0x67a539[_0x17982b(0x194)](P)[_0x17982b(0x1c8)](_0xe5ccd9,_0x1b3504),_0x1cfd45=_0x5e36c8[_0x17982b(0x162)](_0x11c0a9=>_0x11c0a9['id']===_0x58eba9[_0x17982b(0x1b6)]);if(!_0x1cfd45||_0x1cfd45[_0x17982b(0x193)]===_0x58eba9[_0x17982b(0x193)])return!0x1;let _0x513644=Ue(_0x1cfd45,_0x58eba9[_0x17982b(0x193)],_0x1ea647,_0x5e36c8),_0x58730a=Ue(_0x1cfd45,!_0x58eba9[_0x17982b(0x193)],_0x1ea647,_0x5e36c8);return _0x5c69e0(_0x513644,_0x67a539[_0x17982b(0x194)](_0xec1c95))[_0x17982b(0x180)]?(_0x67a539[_0x17982b(0x194)](_0x3d7842)['pushUndoRedo']({'unitID':_0xe5ccd9,'undoMutations':_0x58730a,'redoMutations':_0x513644}),!0x0):!0x1;}},U={'id':_0x2552be(0x18c),'type':_0x42c5de['MUTATION'],'handler':(_0x559171,_0x323a59)=>{const _0x45af3e=_0x2552be;let _0xc91e27=_0x559171[_0x45af3e(0x194)](P),_0x534ddd=Je(_0xc91e27[_0x45af3e(0x1c8)](_0x323a59[_0x45af3e(0x181)],_0x323a59[_0x45af3e(0x1c4)]),_0x323a59);return _0xc91e27[_0x45af3e(0x1d8)](_0x323a59[_0x45af3e(0x181)],_0x323a59['subUnitId'],_0x534ddd),!0x0;}};function Je(_0x224f60,_0x242938){const _0x14e1f2=_0x2552be;switch(_0x242938[_0x14e1f2(0x201)]){case _0x14e1f2(0x1ef):return _0x242938['restoreOutlines']?Ye(_0x224f60,_0x242938):D(_0x224f60,_0x242938);case'delete':return O(_0x224f60,_0x242938);case'move':return k(_0x224f60,_0x242938);}}function Ye(_0x244f3b,_0x59ab84){const _0x16338f=_0x2552be;return[..._0x244f3b[_0x16338f(0x188)](_0x241421=>_0x241421[_0x16338f(0x181)]!==_0x59ab84[_0x16338f(0x181)]||_0x241421['subUnitId']!==_0x59ab84[_0x16338f(0x1c4)]||_0x241421['axis']!==_0x59ab84['axis']),..._0x59ab84[_0x16338f(0x1ba)]];}const W=_0x2552be(0x164);var Xe=_0x2552be(0x1dc),Ze=_0x2552be(0x1fb);const Qe={};function _0x38a2(_0x419161,_0x1a9cb8){_0x419161=_0x419161-0x158;const _0x327d3e=_0x327d();let _0x38a208=_0x327d3e[_0x419161];return _0x38a208;}function G(_0x51ab05,_0x228909){return function(_0x72c19,_0x25a0bc){_0x228909(_0x72c19,_0x25a0bc,_0x51ab05);};}function K(_0x28b277,_0x32874d,_0x1e40d6,_0x501e79){const _0x40a916=_0x2552be;var _0x213ba6=arguments[_0x40a916(0x198)],_0x20993e=_0x213ba6<0x3?_0x32874d:_0x501e79===null?_0x501e79=Object[_0x40a916(0x1f2)](_0x32874d,_0x1e40d6):_0x501e79,_0x404f41;if(typeof Reflect==_0x40a916(0x1f4)&&typeof Reflect[_0x40a916(0x1d2)]==_0x40a916(0x1c1))_0x20993e=Reflect[_0x40a916(0x1d2)](_0x28b277,_0x32874d,_0x1e40d6,_0x501e79);else{for(var _0x143a0b=_0x28b277[_0x40a916(0x198)]-0x1;_0x143a0b>=0x0;_0x143a0b--)(_0x404f41=_0x28b277[_0x143a0b])&&(_0x20993e=(_0x213ba6<0x3?_0x404f41(_0x20993e):_0x213ba6>0x3?_0x404f41(_0x32874d,_0x1e40d6,_0x20993e):_0x404f41(_0x32874d,_0x1e40d6))||_0x20993e);}return _0x213ba6>0x3&&_0x20993e&&Object[_0x40a916(0x1fc)](_0x32874d,_0x1e40d6,_0x20993e),_0x20993e;}const q={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let J=class extends _0x1f59cd{constructor(_0x46c477,_0x5413f,_0x809106,_0x44a9f8){const _0x4803b1=_0x2552be;super(),this[_0x4803b1(0x1d5)]=_0x46c477,this[_0x4803b1(0x196)]=_0x5413f,this[_0x4803b1(0x1ac)]=_0x809106,this[_0x4803b1(0x176)]=_0x44a9f8,this['_initCommandInterceptor']();}['_initCommandInterceptor'](){const _0x139fc4=_0x2552be;this[_0x139fc4(0x1e7)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x3620ea=>$e(_0x3620ea,(_0x4e2f91,_0x4d465c)=>this[_0x139fc4(0x1ac)][_0x139fc4(0x1c8)](_0x4e2f91,_0x4d465c),this['_getCommandScope'](_0x3620ea[_0x139fc4(0x1f5)]),_0x5bbfa6=>this[_0x139fc4(0x176)][_0x139fc4(0x1a0)](_0x5bbfa6))}));}[_0x2552be(0x1c9)](_0x460caf){const _0x4b3f5c=_0x2552be;let _0xddc4a0=_0x460caf,_0x11e16d=_0xddc4a0!=null&&_0xddc4a0[_0x4b3f5c(0x181)]?this[_0x4b3f5c(0x1d5)][_0x4b3f5c(0x17c)](_0xddc4a0['unitId'],_0x149174['UNIVER_SHEET']):this[_0x4b3f5c(0x1d5)][_0x4b3f5c(0x158)](_0x149174[_0x4b3f5c(0x1bc)]);if(!_0x11e16d)return;let _0x5d2ff6=_0xddc4a0!=null&&_0xddc4a0['subUnitId']?_0x11e16d[_0x4b3f5c(0x199)](_0xddc4a0['subUnitId']):_0x11e16d[_0x4b3f5c(0x1af)]();if(_0x5d2ff6)return{'unitId':_0x11e16d[_0x4b3f5c(0x1e0)](),'subUnitId':_0x5d2ff6[_0x4b3f5c(0x1ff)]()};}};J=K([G(0x0,_0x241e59),G(0x1,_0x259385(_0x2d3c87)),G(0x2,_0x259385(P)),G(0x3,_0x259385(F))],J);function $e(_0x405408,_0x1ef5ce,_0x4a75b8,_0x4590ac){const _0x1b62d2=_0x2552be;let _0x571aa1=tt(_0x405408,_0x4a75b8);if(!_0x571aa1)return Z();let _0x1bb55b=_0x1ef5ce(_0x571aa1[_0x1b62d2(0x181)],_0x571aa1[_0x1b62d2(0x1c4)]);if(!_0x1bb55b['some'](_0x18b16f=>_0x18b16f['axis']===_0x571aa1[_0x1b62d2(0x1cc)]))return Z();et(_0x1bb55b,_0x571aa1,_0x405408['id'],_0x4590ac);let _0x453cb0=it(_0x571aa1,_0x1bb55b);return{'redos':[{'id':U['id'],'params':_0x571aa1}],'undos':[{'id':U['id'],'params':_0x453cb0}],'preRedos':[],'preUndos':[]};}function et(_0x3b0d27,_0x51daeb,_0x28eb9b,_0x266195){const _0xc4a5d=_0x2552be;try{switch(_0x51daeb[_0xc4a5d(0x201)]){case _0xc4a5d(0x1ef):D(_0x3b0d27,_0x51daeb);break;case _0xc4a5d(0x1e6):O(_0x3b0d27,_0x51daeb);break;case _0xc4a5d(0x171):k(_0x3b0d27,_0x51daeb);}}catch(_0x597264){throw _0x266195==null||_0x266195({'reason':ye(_0x597264),'commandId':_0x28eb9b,'unitId':_0x51daeb[_0xc4a5d(0x181)],'subUnitId':_0x51daeb[_0xc4a5d(0x1c4)],'axis':_0x51daeb['axis'],'outlineId':be(_0x597264)}),new _0x6678d2(_0x597264 instanceof Error?_0x597264[_0xc4a5d(0x195)]:_0xc4a5d(0x1aa));}}function tt(_0x4f65fd,_0x44b4c6){const _0x3a70f3=_0x2552be;switch(_0x4f65fd['id']){case _0x576ba9['id']:return Y(_0x4f65fd[_0x3a70f3(0x1f5)],_0x3a70f3(0x1d6),_0x44b4c6);case _0x540713['id']:return Y(_0x4f65fd[_0x3a70f3(0x1f5)],_0x3a70f3(0x1b5),_0x44b4c6);case _0x19474a['id']:return nt(_0x4f65fd[_0x3a70f3(0x1f5)],'row',_0x44b4c6);case _0x289843['id']:return nt(_0x4f65fd[_0x3a70f3(0x1f5)],_0x3a70f3(0x1b5),_0x44b4c6);case _0x32509d['id']:return rt(_0x4f65fd[_0x3a70f3(0x1f5)],'row',_0x44b4c6);case _0x5c3cdd['id']:return rt(_0x4f65fd['params'],'column',_0x44b4c6);default:return null;}}function Y(_0x53cfdc,_0x2ec943,_0x334792){const _0x1645cc=_0x2552be;let _0x51c991=X(_0x53cfdc,_0x334792);if(!(_0x53cfdc!=null&&_0x53cfdc[_0x1645cc(0x18d)])||!_0x51c991)return null;let _0x18ddad=_0x2ec943==='row'?_0x53cfdc['range']['startRow']:_0x53cfdc[_0x1645cc(0x18d)][_0x1645cc(0x1d3)],_0x5ce83f=_0x2ec943===_0x1645cc(0x1d6)?_0x53cfdc['range'][_0x1645cc(0x1c2)]:_0x53cfdc[_0x1645cc(0x18d)]['endColumn'];return{..._0x51c991,'axis':_0x2ec943,'type':'insert','index':_0x18ddad,'count':_0x5ce83f-_0x18ddad+0x1};}function nt(_0x527605,_0x47950d,_0x303da3){const _0x419e17=_0x2552be;let _0x191159=X(_0x527605,_0x303da3);if(!(_0x527605!=null&&_0x527605[_0x419e17(0x18d)])||!_0x191159)return null;let _0x3bddf6=_0x47950d===_0x419e17(0x1d6)?_0x527605['range']['startRow']:_0x527605[_0x419e17(0x18d)]['startColumn'],_0x555a9e=_0x47950d===_0x419e17(0x1d6)?_0x527605[_0x419e17(0x18d)]['endRow']:_0x527605[_0x419e17(0x18d)][_0x419e17(0x173)];return{..._0x191159,'axis':_0x47950d,'type':_0x419e17(0x1e6),'start':_0x3bddf6,'end':_0x555a9e};}function rt(_0x23effb,_0x4cd064,_0x40d035){const _0x850808=_0x2552be;let _0x372da1=X(_0x23effb,_0x40d035);if(!(_0x23effb!=null&&_0x23effb[_0x850808(0x190)])||!_0x23effb[_0x850808(0x18e)]||!_0x372da1)return null;let _0x4e05eb=_0x4cd064===_0x850808(0x1d6)?_0x23effb[_0x850808(0x190)][_0x850808(0x1b1)]:_0x23effb['fromRange'][_0x850808(0x1d3)],_0x42c9bc=_0x4cd064==='row'?_0x23effb[_0x850808(0x190)]['endRow']:_0x23effb[_0x850808(0x190)]['endColumn'],_0x323287=_0x4cd064==='row'?_0x23effb[_0x850808(0x18e)][_0x850808(0x1b1)]:_0x23effb[_0x850808(0x18e)]['startColumn'];return{..._0x372da1,'axis':_0x4cd064,'type':_0x850808(0x171),'sourceStart':_0x4e05eb,'sourceEnd':_0x42c9bc,'destinationIndex':_0x323287};}function it(_0x1dc0e2,_0x4599d6){const _0x19ec84=_0x2552be;switch(_0x1dc0e2[_0x19ec84(0x201)]){case _0x19ec84(0x1ef):return{'unitId':_0x1dc0e2[_0x19ec84(0x181)],'subUnitId':_0x1dc0e2['subUnitId'],'axis':_0x1dc0e2[_0x19ec84(0x1cc)],'type':_0x19ec84(0x1e6),'start':_0x1dc0e2[_0x19ec84(0x1d1)],'end':_0x1dc0e2[_0x19ec84(0x1d1)]+_0x1dc0e2[_0x19ec84(0x1dd)]-0x1};case'delete':return{'unitId':_0x1dc0e2['unitId'],'subUnitId':_0x1dc0e2[_0x19ec84(0x1c4)],'axis':_0x1dc0e2[_0x19ec84(0x1cc)],'type':'insert','index':_0x1dc0e2[_0x19ec84(0x19f)],'count':_0x1dc0e2['end']-_0x1dc0e2[_0x19ec84(0x19f)]+0x1,'restoreOutlines':_0x4599d6[_0x19ec84(0x188)](_0x38e353=>_0x38e353[_0x19ec84(0x181)]===_0x1dc0e2[_0x19ec84(0x181)]&&_0x38e353[_0x19ec84(0x1c4)]===_0x1dc0e2['subUnitId']&&_0x38e353[_0x19ec84(0x1cc)]===_0x1dc0e2[_0x19ec84(0x1cc)])};case _0x19ec84(0x171):return at(_0x1dc0e2);}}function at(_0x3f2c43){const _0x2be49b=_0x2552be;let _0x1cae23=_0x3f2c43[_0x2be49b(0x189)]-_0x3f2c43[_0x2be49b(0x178)]+0x1;return _0x3f2c43[_0x2be49b(0x1ed)]>=_0x3f2c43['sourceStart']&&_0x3f2c43[_0x2be49b(0x1ed)]<=_0x3f2c43[_0x2be49b(0x189)]+0x1?{..._0x3f2c43}:_0x3f2c43[_0x2be49b(0x1ed)]>_0x3f2c43[_0x2be49b(0x189)]+0x1?{..._0x3f2c43,'sourceStart':_0x3f2c43['destinationIndex']-_0x1cae23,'sourceEnd':_0x3f2c43[_0x2be49b(0x1ed)]-0x1,'destinationIndex':_0x3f2c43[_0x2be49b(0x178)]}:{..._0x3f2c43,'sourceStart':_0x3f2c43[_0x2be49b(0x1ed)],'sourceEnd':_0x3f2c43['destinationIndex']+_0x1cae23-0x1,'destinationIndex':_0x3f2c43['sourceEnd']+0x1};}function X(_0x117a10,_0x59e733){const _0x5f839=_0x2552be;let _0x403ef0=(_0x117a10==null?void 0x0:_0x117a10[_0x5f839(0x181)])??(_0x59e733==null?void 0x0:_0x59e733[_0x5f839(0x181)]),_0x2cee26=(_0x117a10==null?void 0x0:_0x117a10[_0x5f839(0x1c4)])??(_0x59e733==null?void 0x0:_0x59e733[_0x5f839(0x1c4)]);return _0x403ef0&&_0x2cee26?{'unitId':_0x403ef0,'subUnitId':_0x2cee26}:null;}function Z(){const _0x50bd84=_0x2552be;return{'redos':[...q[_0x50bd84(0x15e)]],'undos':[...q[_0x50bd84(0x183)]],'preRedos':[...q[_0x50bd84(0x16b)]??[]],'preUndos':[...q[_0x50bd84(0x1a4)]??[]]};}let Q=class extends _0x1f59cd{constructor(_0x260ae3,_0x141566){const _0x551fd1=_0x2552be;super(),this[_0x551fd1(0x17f)]=_0x260ae3,this[_0x551fd1(0x1ac)]=_0x141566,this['_initResource']();}[_0x2552be(0x186)](){const _0x2e0d35=_0x2552be;this['disposeWithMe'](this['_resourceManagerService'][_0x2e0d35(0x184)]({'pluginName':W,'businesses':[_0x149174[_0x2e0d35(0x1bc)]],'toJson':_0x36216e=>JSON[_0x2e0d35(0x1a8)](this[_0x2e0d35(0x1ac)][_0x2e0d35(0x1c5)](_0x36216e)),'parseJson':_0x3baf8b=>JSON[_0x2e0d35(0x1eb)](_0x3baf8b),'onLoad':(_0x2471d6,_0x4e666e)=>this[_0x2e0d35(0x1ac)][_0x2e0d35(0x1db)](_0x2471d6,_0x4e666e),'onUnLoad':_0x425c43=>this[_0x2e0d35(0x1ac)][_0x2e0d35(0x15f)](_0x425c43)}));}};Q=K([G(0x0,_0x12fef9),G(0x1,_0x259385(P))],Q);let $=class extends _0x14323e{constructor(_0x13e0cb=Qe,_0x1f57eb,_0x60d41,_0x28ff81){const _0x27a1f3=_0x2552be;super(),this[_0x27a1f3(0x15c)]=_0x13e0cb,this['_injector']=_0x1f57eb,this[_0x27a1f3(0x1b4)]=_0x60d41,this[_0x27a1f3(0x1ad)]=_0x28ff81;let {..._0x31e9f8}=_0x2da987({},Qe,this[_0x27a1f3(0x15c)]);this[_0x27a1f3(0x1ad)][_0x27a1f3(0x172)](_0x27a1f3(0x177),_0x31e9f8);}[_0x2552be(0x1f1)](){const _0x53cfa5=_0x2552be;this[_0x53cfa5(0x1ee)][_0x53cfa5(0x1fd)]([P]),this[_0x53cfa5(0x1ee)][_0x53cfa5(0x1fd)]([F]),this['_injector'][_0x53cfa5(0x1fd)]([Q]),this[_0x53cfa5(0x1ee)][_0x53cfa5(0x1fd)]([J]),this[_0x53cfa5(0x1f8)](),this[_0x53cfa5(0x1ee)][_0x53cfa5(0x194)](P),this[_0x53cfa5(0x1ee)]['get'](F),this[_0x53cfa5(0x1ee)][_0x53cfa5(0x194)](Q),this[_0x53cfa5(0x1ee)]['get'](J);}['_initRegisterCommand'](){[z,ze,qe,V]['forEach'](_0x211e9b=>{const _0x254b04=_0x38a2;this[_0x254b04(0x1e7)](this['_commandService'][_0x254b04(0x174)](_0x211e9b));}),[I,L,H,B,U]['forEach'](_0x1a6f0c=>{const _0x8d7eb9=_0x38a2;this[_0x8d7eb9(0x1e7)](this[_0x8d7eb9(0x1b4)]['registerCommand'](_0x1a6f0c));});}};N($,_0x2552be(0x1cd),W),N($,_0x2552be(0x166),Xe),N($,_0x2552be(0x1a7),Ze),N($,_0x2552be(0x201),_0x149174['UNIVER_SHEET']),$=K([_0x24a179(_0x41b4af,_0x4eb0bf),G(0x1,_0x259385(_0x2948c4)),G(0x2,_0xec1c95),G(0x3,_0x88f4c1)],$);export{z as AddDimensionOutlineCommand,I as AddDimensionOutlineMutation,V as ClearDimensionOutlinesCommand,B as ClearDimensionOutlinesMutation,_e as DimensionOutlineAxis,ve as DimensionOutlineErrorReason,ze as RemoveDimensionOutlineCommand,L as RemoveDimensionOutlineMutation,W as SHEET_OUTLINE_PLUGIN,qe as SetDimensionOutlineCollapsedCommand,H as SetDimensionOutlineCollapsedMutation,F as SheetsOutlineErrorService,P as SheetsOutlineModel,U as TransformDimensionOutlinesMutation,$ as UniverSheetsOutlinePlugin,T as buildDimensionOutlineTree,E as canAddDimensionOutline,Ie as getDimensionOutlineViewPermission$,R as hasDimensionOutlineViewPermission,O as transformOutlinesByDelete,D as transformOutlinesByInsert,k as transformOutlinesByMove};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5882(_0x597d59,_0x2503b8){_0x597d59=_0x597d59-0xcd;var _0x1e9591=_0x1e95();var _0x5882a8=_0x1e9591[_0x597d59];return _0x5882a8;}(function(_0x245f50,_0x5f233d){var _0x13aa12=_0x5882,_0x248819=_0x245f50();while(!![]){try{var _0x1065b1=-parseInt(_0x13aa12(0xdc))/0x1+-parseInt(_0x13aa12(0xd0))/0x2+parseInt(_0x13aa12(0xec))/0x3+-parseInt(_0x13aa12(0xe8))/0x4*(-parseInt(_0x13aa12(0xe3))/0x5)+parseInt(_0x13aa12(0xde))/0x6+-parseInt(_0x13aa12(0xf2))/0x7+parseInt(_0x13aa12(0xdd))/0x8;if(_0x1065b1===_0x5f233d)break;else _0x248819['push'](_0x248819['shift']());}catch(_0x800ca1){_0x248819['push'](_0x248819['shift']());}}}(_0x1e95,0x3b248),function(_0x1c1833,_0x4c8568){var _0x37c209=_0x5882;typeof exports==_0x37c209(0xd2)&&typeof module<'u'?_0x4c8568(require('@univerjs-pro/sheets-outline'),require('@univerjs/core/facade'),require('@univerjs/sheets/facade')):typeof define==_0x37c209(0xe5)&&define['amd']?define([_0x37c209(0xe1),_0x37c209(0xe6),_0x37c209(0xd4)],_0x4c8568):(_0x1c1833=typeof globalThis<'u'?globalThis:_0x1c1833||self,_0x4c8568(_0x1c1833[_0x37c209(0xda)],_0x1c1833['UniverCoreFacade'],_0x1c1833[_0x37c209(0xd1)]));}(this,function(_0x223a88,_0x20957b,_0x4f8992){var _0x1d1920=_0x5882,_0x5d25de=class extends _0x20957b[_0x1d1920(0xcd)]{get[_0x1d1920(0xd6)](){var _0x16bb0d=_0x1d1920;return _0x223a88[_0x16bb0d(0xd6)];}get['DimensionOutlineErrorReason'](){return _0x223a88['DimensionOutlineErrorReason'];}};_0x20957b[_0x1d1920(0xcd)][_0x1d1920(0xe0)](_0x5d25de);var _0x273640=class extends _0x4f8992[_0x1d1920(0xcf)]{[_0x1d1920(0xf3)](_0x47b425,_0x3df0ea){var _0x409c53=_0x1d1920;return this[_0x409c53(0xe7)](_0x223a88['DimensionOutlineAxis'][_0x409c53(0xed)],_0x47b425,_0x3df0ea);}[_0x1d1920(0xce)](_0x4fd0ed,_0x2d27b8){return this['_addDimensionOutline'](_0x223a88['DimensionOutlineAxis']['COLUMN'],_0x4fd0ed,_0x2d27b8);}[_0x1d1920(0xea)](_0x41c6de){var _0x357b19=_0x1d1920;return this[_0x357b19(0xd9)][_0x357b19(0xdf)](_0x223a88[_0x357b19(0xe9)]['id'],{'unitId':this['_workbook'][_0x357b19(0xf1)](),'subUnitId':this[_0x357b19(0xdb)]['getSheetId'](),'outlineId':_0x41c6de}),this;}[_0x1d1920(0xee)](_0x4d765d,_0x292673){var _0x24b8fb=_0x1d1920;return this[_0x24b8fb(0xd9)][_0x24b8fb(0xdf)](_0x223a88[_0x24b8fb(0xe2)]['id'],{'unitId':this[_0x24b8fb(0xd5)][_0x24b8fb(0xf1)](),'subUnitId':this['_worksheet'][_0x24b8fb(0xd7)](),'outlineId':_0x4d765d,'collapsed':_0x292673}),this;}['clearDimensionOutlines'](_0x8ae71c,_0x3eb7ee,_0x2f5626){var _0x9a0aa7=_0x1d1920;return this['_commandService'][_0x9a0aa7(0xdf)](_0x223a88[_0x9a0aa7(0xeb)]['id'],{'unitId':this['_workbook'][_0x9a0aa7(0xf1)](),'subUnitId':this[_0x9a0aa7(0xdb)][_0x9a0aa7(0xd7)](),'axis':_0x8ae71c,'start':_0x3eb7ee,'end':_0x2f5626}),this;}[_0x1d1920(0xf4)](_0x5f595f){var _0x49f555=_0x1d1920;let _0x3f7aef=this[_0x49f555(0xef)]['get'](_0x223a88[_0x49f555(0xe4)])['getOutlines'](this[_0x49f555(0xd5)][_0x49f555(0xf1)](),this[_0x49f555(0xdb)]['getSheetId']());return _0x5f595f?_0x3f7aef[_0x49f555(0xd8)](_0x416754=>_0x416754[_0x49f555(0xf0)]===_0x5f595f):_0x3f7aef;}[_0x1d1920(0xe7)](_0x5d7cd7,_0x5bbb95,_0x8ec491){var _0x501f14=_0x1d1920;return this[_0x501f14(0xd9)][_0x501f14(0xdf)](_0x223a88[_0x501f14(0xd3)]['id'],{'unitId':this[_0x501f14(0xd5)][_0x501f14(0xf1)](),'subUnitId':this[_0x501f14(0xdb)]['getSheetId'](),'axis':_0x5d7cd7,'start':_0x5bbb95,'end':_0x5bbb95+_0x8ec491-0x1}),this;}};_0x4f8992[_0x1d1920(0xcf)]['extend'](_0x273640);}));function _0x1e95(){var _0x38a015=['FWorksheet','749682oIsBGq','UniverSheetsFacade','object','AddDimensionOutlineCommand','@univerjs/sheets/facade','_workbook','DimensionOutlineAxis','getSheetId','filter','_commandService','UniverProSheetsOutline','_worksheet','290390KXGIAD','4722192zecScB','138102xdYirE','syncExecuteCommand','extend','@univerjs-pro/sheets-outline','SetDimensionOutlineCollapsedCommand','9490itIKDe','SheetsOutlineModel','function','@univerjs/core/facade','_addDimensionOutline','444BbekOa','RemoveDimensionOutlineCommand','removeDimensionOutline','ClearDimensionOutlinesCommand','335952WMEMCh','ROW','setDimensionOutlineCollapsed','_injector','axis','getUnitId','199318FpMhZf','addRowOutline','getDimensionOutlines','FEnum','addColumnOutline'];_0x1e95=function(){return _0x38a015;};return _0x1e95();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x320e(_0x369427,_0x3e9990){_0x369427=_0x369427-0x178;const _0x65e507=_0x65e5();let _0x320e66=_0x65e507[_0x369427];return _0x320e66;}function _0x65e5(){const _0x56f4c9=['endColumn','UNIVER_SHEET','_change$','_config','DependentOn','IUniverInstanceService','out-of-bounds','UniverSheetsOutlinePlugin','length','InsertColCommand','column','invalid-dimension-outline','function','registerPluginResource','ICommandService','pushUndoRedo','Invalid\x20dimension\x20outline\x20mutation','SHEET_OUTLINE_PLUGIN','pop','UniverCore','OUT_OF_BOUNDS','_injector','Injector','384357KrPCmO','_configService','6mhFDfd','_univerInstanceService','decorate','type','result','40umApmZ','entries','defineProperty','prototype','@univerjs/core','InsertRowCommand','destinationIndex','sheet.mutation.set-dimension-outline-collapsed','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','insert','@univerjs-pro/license','Move\x20would\x20split\x20dimension\x20outline:\x20','9187240jdPfDx','UniverLicensePlugin','unknown','SheetInterceptorService','UniverProLicense','transformOutlinesByMove','getCurrentUnitOfType','sheet.command.add-dimension-outline','startRow','sequenceExecute','outline','_commandService','sheet.command.remove-dimension-outline','split','COLUMN','clear-range-not-contain-outline','SetColVisibleMutation','UniverSheets','CommandType','pluginName','toRange','start','registerCommand','Subject','clear','next','IConfigService','emit','invalid-range','min','move','sheet.mutation.remove-dimension-outline','@univerjs-pro/sheets-outline','filter','redos','interceptCommand','sourceStart','reason','iterator','packageName','parse','MAX_DEPTH','range','UNKNOWN','amd','UniverInstanceType','subUnitId','6YQpMwq','maxIndex','SheetsOutlineModel','Module','WorksheetViewPermission','UniverSheetsPlugin','sheets-outline.config','ClearDimensionOutlinesCommand','disposeWithMe','message','has','CustomCommandExecutionError','map','sheet.command.clear-dimension-outlines','_outlines','SetRowVisibleMutation','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','complete','sheet.command.set-dimension-outline-collapsed','index','transformOutlinesByDelete','split\x20dimension\x20outline','getOwnPropertyDescriptor','asObservable','SetDimensionOutlineCollapsedCommand','removeUnit','_sheetInterceptorService','toStringTag','rxjs','unitId','1.0.1','maxDepth','dispose','sort','find','deserialize','move-splits-outline','sourceEnd','startWith','_initRegisterCommand','Inject','COMMAND','rxjs/operators','getSheetCommandTarget','get','restoreOutlines','Disposable','preUndos','MoveRowsCommand','Invalid\x20dimension\x20outline\x20move\x20source\x20range','serialize','getUnit','SheetPermissionCheckController','delete','Invalid\x20outline\x20range','RemoveDimensionOutlineMutation','_ensureUnitOutlines','hasDimensionOutlineViewPermission','IPermissionService','error$','1757239gtpdFV','values','@univerjs/sheets','name','UniverProSheetsOutline','count','getUnitId','getSheetBySheetId','_error$','_getCommandScope','call','children','_sheetsOutlineErrorService','setConfig','DimensionOutlineAxis','getMaxColumns','crossing','push','localeCompare','814779eJilnS','debounceTime','offset','forEach','startColumn','some','object','collapsed','setOutlines','DimensionOutlineError','depth','exports','MUTATION','undos','getActiveSheet','120AQgFuk','outlineId','toPrimitive','getRowCount','INVALID_RANGE','3771900UZdmTJ','canAddDimensionOutline','_initResource','permissionCheckWithoutRange','operators','params','_initCommandInterceptor','471465yBhNwu','fromRange','SetRowHiddenMutation','max','includes','add','axis','IResourceManagerService','Crossing','getColumnCount','set','end','version','symbol','from','838909lJYuXS','_resourceManagerService','string','getOutlines','row','mergedOutline','IUndoRedoService','sheet.mutation.add-dimension-outline','max-depth','MoveColsCommand','AddDimensionOutlineMutation','getUnitOutlines','buildDimensionOutlineTree','_sheetsOutlineModel'];_0x65e5=function(){return _0x56f4c9;};return _0x65e5();}(function(_0x4e6603,_0x5f1dd5){const _0x2c95aa=_0x320e,_0x44d762=_0x4e6603();while(!![]){try{const _0x325ca3=parseInt(_0x2c95aa(0x1e3))/0x1+parseInt(_0x2c95aa(0x20a))/0x2*(-parseInt(_0x2c95aa(0x208))/0x3)+-parseInt(_0x2c95aa(0x20f))/0x4*(parseInt(_0x2c95aa(0x1d4))/0x5)+parseInt(_0x2c95aa(0x24a))/0x6*(-parseInt(_0x2c95aa(0x1b9))/0x7)+-parseInt(_0x2c95aa(0x21b))/0x8+parseInt(_0x2c95aa(0x1cd))/0x9+-parseInt(_0x2c95aa(0x1c8))/0xa*(-parseInt(_0x2c95aa(0x1a6))/0xb);if(_0x325ca3===_0x5f1dd5)break;else _0x44d762['push'](_0x44d762['shift']());}catch(_0x160ccd){_0x44d762['push'](_0x44d762['shift']());}}}(_0x65e5,0x8e4fc),function(_0x127181,_0x1b4c5e){const _0x33846b=_0x320e;typeof exports==_0x33846b(0x1bf)&&typeof module<'u'?_0x1b4c5e(exports,require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs-pro/license')):typeof define==_0x33846b(0x1fd)&&define[_0x33846b(0x247)]?define([_0x33846b(0x1c4),_0x33846b(0x213),_0x33846b(0x1a8),_0x33846b(0x186),_0x33846b(0x194),_0x33846b(0x219)],_0x1b4c5e):(_0x127181=typeof globalThis<'u'?globalThis:_0x127181||self,_0x1b4c5e(_0x127181[_0x33846b(0x1aa)]={},_0x127181[_0x33846b(0x204)],_0x127181[_0x33846b(0x22c)],_0x127181[_0x33846b(0x186)],_0x127181[_0x33846b(0x186)][_0x33846b(0x1d1)],_0x127181[_0x33846b(0x21f)]));}(this,function(_0x24956f,_0x393454,_0x377db9,_0xa50384,_0x528fbc,_0x430856){const _0xa584d1=_0x320e;Object[_0xa584d1(0x211)](_0x24956f,Symbol[_0xa584d1(0x185)],{'value':_0xa584d1(0x24d)});let _0x384e67=function(_0x1d633a){const _0x5f2939=_0xa584d1;return _0x1d633a['ROW']=_0x5f2939(0x1e7),_0x1d633a[_0x5f2939(0x229)]='column',_0x1d633a;}({}),_0x8c4e7e=function(_0x410246){const _0x5d0f34=_0xa584d1;return _0x410246[_0x5d0f34(0x1cc)]=_0x5d0f34(0x237),_0x410246[_0x5d0f34(0x205)]=_0x5d0f34(0x1f7),_0x410246['CROSSING']='crossing',_0x410246[_0x5d0f34(0x244)]=_0x5d0f34(0x1eb),_0x410246['MOVE_SPLITS_OUTLINE']=_0x5d0f34(0x18e),_0x410246[_0x5d0f34(0x17a)]=_0x5d0f34(0x22a),_0x410246[_0x5d0f34(0x246)]='unknown',_0x410246;}({});var _0x3b8590=class extends Error{constructor(_0x9f9f9d,_0x18405c,_0x4727f5){const _0x237c5b=_0xa584d1;super(_0x18405c),this[_0x237c5b(0x240)]=_0x9f9f9d,this['outlineId']=_0x4727f5,this[_0x237c5b(0x1a9)]=_0x237c5b(0x1c2);}};function _0x1dbb44(_0xc7c0b4){const _0x25d416=_0xa584d1;return _0xc7c0b4 instanceof _0x3b8590?_0xc7c0b4[_0x25d416(0x240)]:_0xc7c0b4 instanceof Error?_0xc7c0b4[_0x25d416(0x253)][_0x25d416(0x1d8)](_0x25d416(0x17f))?_0x25d416(0x18e):_0xc7c0b4[_0x25d416(0x253)][_0x25d416(0x1d8)](_0x25d416(0x1c3))?_0x25d416(0x1eb):_0xc7c0b4['message']['includes'](_0x25d416(0x1dc))?_0x25d416(0x1b6):_0xc7c0b4[_0x25d416(0x253)][_0x25d416(0x1d8)](_0x25d416(0x245))?_0x25d416(0x237):_0x25d416(0x21d):_0x25d416(0x21d);}function _0x1024bb(_0x383e9b){const _0x1476be=_0xa584d1;return _0x383e9b instanceof _0x3b8590?_0x383e9b[_0x1476be(0x1c9)]:void 0x0;}let _0x25701d=0x2**0x35-0x1;function _0x4dd9c5(_0x32c43c,_0x154486){const _0x56d7b9=_0xa584d1;return _0x32c43c['unitId']===_0x154486[_0x56d7b9(0x187)]&&_0x32c43c[_0x56d7b9(0x249)]===_0x154486[_0x56d7b9(0x249)]&&_0x32c43c[_0x56d7b9(0x1da)]===_0x154486[_0x56d7b9(0x1da)];}function _0x3d1efa(_0x1445a2,_0x3eb5c9={}){const _0x2413a8=_0xa584d1;let _0x47edcd=_0x3eb5c9[_0x2413a8(0x189)]??0x8,_0x1fb57=new Map();for(let _0x4d5652 of _0x1445a2){let _0x558c25=_0x4d5652[_0x2413a8(0x187)]+':'+_0x4d5652['subUnitId']+':'+_0x4d5652[_0x2413a8(0x1da)],_0x235e0c=_0x1fb57[_0x2413a8(0x196)](_0x558c25);_0x235e0c?_0x235e0c[_0x2413a8(0x1b7)](_0x4d5652):_0x1fb57[_0x2413a8(0x1de)](_0x558c25,[_0x4d5652]);}let _0x55b4c7=[];for(let _0x575197 of _0x1fb57[_0x2413a8(0x1a7)]()){let _0x113a29=[..._0x575197][_0x2413a8(0x18b)](_0x3c0e3d),_0x45131d=[];for(let _0x57dd7b of _0x113a29){for(_0x7e58b0(_0x57dd7b);_0x45131d[_0x2413a8(0x1f9)]>0x0&&_0x57dd7b[_0x2413a8(0x230)]>_0x45131d[_0x45131d[_0x2413a8(0x1f9)]-0x1][_0x2413a8(0x1df)];)_0x45131d[_0x2413a8(0x203)]();let _0x52d012=_0x45131d[_0x45131d[_0x2413a8(0x1f9)]-0x1];if(_0x52d012&&_0x57dd7b[_0x2413a8(0x1df)]>_0x52d012[_0x2413a8(0x1df)])throw new _0x3b8590(_0x2413a8(0x1b6),'Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed',_0x57dd7b['id']);let _0x4ddfae=_0x52d012?_0x52d012[_0x2413a8(0x1c3)]+0x1:0x1;if(_0x4ddfae>_0x47edcd)throw new _0x3b8590(_0x2413a8(0x1eb),'Dimension\x20outline\x20depth\x20cannot\x20exceed\x20'+_0x47edcd,_0x57dd7b['id']);let _0x221d38={..._0x57dd7b,'depth':_0x4ddfae,'parentId':_0x52d012==null?void 0x0:_0x52d012['id'],'anchor':_0x57dd7b[_0x2413a8(0x1df)],'children':[]};_0x52d012?_0x52d012[_0x2413a8(0x1b1)][_0x2413a8(0x1b7)](_0x221d38):_0x55b4c7[_0x2413a8(0x1b7)](_0x221d38),_0x45131d['push'](_0x221d38);}}return _0x55b4c7;}function _0x2bad67(_0x522153,_0x3315cb,_0x99f2e1={}){const _0x2b32e0=_0xa584d1;if(_0x3315cb[_0x2b32e0(0x230)]<0x0||_0x3315cb[_0x2b32e0(0x230)]>_0x3315cb[_0x2b32e0(0x1df)])return{'valid':!0x1,'reason':'invalid-range'};if(_0x99f2e1[_0x2b32e0(0x24b)]!=null&&_0x3315cb['end']>=_0x99f2e1[_0x2b32e0(0x24b)])return{'valid':!0x1,'reason':_0x2b32e0(0x1f7)};let _0x2e1169=_0x522153[_0x2b32e0(0x23c)](_0x15fbfb=>_0x4dd9c5(_0x15fbfb,_0x3315cb));for(let _0x40de36 of _0x2e1169)if(_0x424c59(_0x40de36,_0x3315cb))return{'valid':!0x1,'reason':_0x2b32e0(0x1b6)};try{_0x3d1efa([..._0x522153,_0x3315cb],_0x99f2e1);}catch(_0x478da4){let _0x3dc6dc=_0x1dbb44(_0x478da4);return _0x3dc6dc===_0x2b32e0(0x1eb)?{'valid':!0x1,'reason':_0x2b32e0(0x1eb)}:_0x3dc6dc==='invalid-range'?{'valid':!0x1,'reason':'invalid-range'}:{'valid':!0x1,'reason':_0x2b32e0(0x1b6)};}return{'valid':!0x0};}function _0x1a0823(_0x451c11,_0x2b1a98,_0x1f12e1={}){const _0xb5227f=_0xa584d1;let _0x300544=_0x2bad67(_0x451c11,_0x2b1a98,_0x1f12e1);if(!_0x300544['valid'])throw Error(_0x300544[_0xb5227f(0x240)]??_0xb5227f(0x1fc));return[..._0x451c11,_0x2b1a98];}function _0x191a3b(_0x477296,_0x395a3f){const _0x37dddd=_0xa584d1;let _0x164355=_0x395a3f[_0x37dddd(0x230)],_0x12fc9c=_0x395a3f[_0x37dddd(0x1df)],_0x182bc6=[],_0x1ebaae=!0x0;for(;_0x1ebaae;){_0x1ebaae=!0x1;for(let _0x3433db of _0x477296)!_0x182bc6[_0x37dddd(0x1d8)](_0x3433db)&&_0x4dd9c5(_0x3433db,_0x395a3f)&&_0xc67ab7(_0x3433db['start'],_0x3433db[_0x37dddd(0x1df)],_0x164355,_0x12fc9c)&&(_0x182bc6[_0x37dddd(0x1b7)](_0x3433db),_0x164355=Math[_0x37dddd(0x238)](_0x164355,_0x3433db[_0x37dddd(0x230)]),_0x12fc9c=Math['max'](_0x12fc9c,_0x3433db[_0x37dddd(0x1df)]),_0x1ebaae=!0x0);}if(_0x182bc6[_0x37dddd(0x1f9)]===0x0)return null;let [_0x2e2a9e]=[..._0x182bc6][_0x37dddd(0x18b)](_0x3c0e3d);return{'mergedOutline':{..._0x2e2a9e,'start':_0x164355,'end':_0x12fc9c},'mergedOutlines':_0x182bc6};}function _0x599f93(_0x31f82f,_0x3e52d4){const _0x2df315=_0xa584d1;return _0x31f82f['filter'](_0x44337f=>!_0x4dd9c5(_0x44337f,_0x3e52d4)||!(_0x44337f[_0x2df315(0x230)]>=_0x3e52d4['start']&&_0x44337f[_0x2df315(0x1df)]<=_0x3e52d4['end']));}function _0x474cd5(_0x341a2e,_0x417dc2,_0x690075,_0x55f6ad){const _0x1fe79c=_0xa584d1;return _0x2286f5(_0x341a2e[_0x1fe79c(0x23c)](_0x2851ac=>_0x2851ac[_0x1fe79c(0x187)]===_0x417dc2&&_0x2851ac[_0x1fe79c(0x249)]===_0x690075&&_0x2851ac[_0x1fe79c(0x1da)]===_0x55f6ad&&_0x2851ac['collapsed'])[_0x1fe79c(0x256)](_0x3195dd=>({'start':_0x3195dd['start'],'end':_0x3195dd[_0x1fe79c(0x1df)]})));}function _0x2286f5(_0x44c242){const _0x4782c3=_0xa584d1;if(_0x44c242['length']===0x0)return[];let _0x468a96=[..._0x44c242][_0x4782c3(0x18b)]((_0xfe7bc0,_0x15bd42)=>_0xfe7bc0['start']-_0x15bd42[_0x4782c3(0x230)]||_0xfe7bc0['end']-_0x15bd42[_0x4782c3(0x1df)]),_0x2a4388=[];for(let _0x472fd8 of _0x468a96){let _0x4684c2=_0x2a4388[_0x2a4388[_0x4782c3(0x1f9)]-0x1];!_0x4684c2||_0x472fd8['start']>_0x4684c2['end']+0x1?_0x2a4388['push']({..._0x472fd8}):_0x4684c2[_0x4782c3(0x1df)]=Math[_0x4782c3(0x1d7)](_0x4684c2[_0x4782c3(0x1df)],_0x472fd8[_0x4782c3(0x1df)]);}return _0x2a4388;}function _0x13733f(_0x51f9fd,_0x1119ce){const _0x1633d4=_0xa584d1;return _0x1119ce[_0x1633d4(0x1ab)]<=0x0?_0x51f9fd:_0x368817(_0x51f9fd[_0x1633d4(0x256)](_0x2ee78b=>_0x4dd9c5(_0x2ee78b,_0x1119ce)?_0x1119ce[_0x1633d4(0x17d)]<=_0x2ee78b[_0x1633d4(0x230)]?{..._0x2ee78b,'start':_0x2ee78b[_0x1633d4(0x230)]+_0x1119ce[_0x1633d4(0x1ab)],'end':_0x2ee78b[_0x1633d4(0x1df)]+_0x1119ce[_0x1633d4(0x1ab)]}:_0x2ee78b['start']<_0x1119ce[_0x1633d4(0x17d)]&&_0x1119ce[_0x1633d4(0x17d)]<=_0x2ee78b[_0x1633d4(0x1df)]?{..._0x2ee78b,'end':_0x2ee78b[_0x1633d4(0x1df)]+_0x1119ce[_0x1633d4(0x1ab)]}:_0x2ee78b:_0x2ee78b));}function _0x3b2344(_0x1e47d5,_0x1a0dc6){const _0x1fd889=_0xa584d1;if(_0x1a0dc6['start']>_0x1a0dc6[_0x1fd889(0x1df)])return _0x1e47d5;let _0x8b6e0d=_0x1a0dc6[_0x1fd889(0x1df)]-_0x1a0dc6[_0x1fd889(0x230)]+0x1,_0x33e152=[];for(let _0xab3a92 of _0x1e47d5){if(!_0x4dd9c5(_0xab3a92,_0x1a0dc6)){_0x33e152[_0x1fd889(0x1b7)](_0xab3a92);continue;}if(_0xab3a92['end']<_0x1a0dc6['start']){_0x33e152[_0x1fd889(0x1b7)](_0xab3a92);continue;}if(_0xab3a92[_0x1fd889(0x230)]>_0x1a0dc6[_0x1fd889(0x1df)]){_0x33e152[_0x1fd889(0x1b7)]({..._0xab3a92,'start':_0xab3a92[_0x1fd889(0x230)]-_0x8b6e0d,'end':_0xab3a92[_0x1fd889(0x1df)]-_0x8b6e0d});continue;}let _0xeac02a=Math[_0x1fd889(0x1d7)](_0xab3a92[_0x1fd889(0x230)],_0x1a0dc6[_0x1fd889(0x230)]),_0x1dc274=Math[_0x1fd889(0x238)](_0xab3a92[_0x1fd889(0x1df)],_0x1a0dc6['end']),_0x2948cf=Math[_0x1fd889(0x1d7)](0x0,_0x1dc274-_0xeac02a+0x1),_0x8e68a2=_0xab3a92['end']-_0xab3a92[_0x1fd889(0x230)]+0x1-_0x2948cf;if(_0x8e68a2<=0x0)continue;let _0x431d6c=_0xab3a92[_0x1fd889(0x230)]<_0x1a0dc6['start']?_0xab3a92['start']:_0x1a0dc6['start'];_0x33e152[_0x1fd889(0x1b7)]({..._0xab3a92,'start':_0x431d6c,'end':_0x431d6c+_0x8e68a2-0x1});}return _0x368817(_0x33e152);}function _0x7064f5(_0x4252f5,_0x1e88c){const _0x5ad5d7=_0xa584d1;if(_0x1e88c[_0x5ad5d7(0x23f)]>_0x1e88c[_0x5ad5d7(0x18f)])return _0x4252f5;let _0x33e15d=[];for(let _0x465910 of _0x4252f5){if(!_0x4dd9c5(_0x465910,_0x1e88c)){_0x33e15d[_0x5ad5d7(0x1b7)](_0x465910);continue;}let _0x358834=_0x3a1754(_0x465910,_0x1e88c);if(_0x358834[_0x5ad5d7(0x20d)]===_0x5ad5d7(0x228))throw new _0x3b8590('move-splits-outline',_0x5ad5d7(0x21a)+_0x465910['id'],_0x465910['id']);_0x33e15d['push'](_0x358834[_0x5ad5d7(0x225)]);}return _0x368817(_0x33e15d);}function _0x3a1754(_0x51943a,_0x9b93de){const _0x764bbb=_0xa584d1;let _0x28a88c=_0x3f40ae(_0x9b93de['sourceStart'],_0x9b93de['sourceEnd']+0x1,_0x9b93de['destinationIndex']),_0x205421=[],_0x317785={'start':_0x51943a[_0x764bbb(0x230)],'end':_0x51943a[_0x764bbb(0x1df)]+0x1};for(let _0x48ca10 of _0x28a88c){let _0x183aad=_0x4ea8ed(_0x317785,_0x48ca10[_0x764bbb(0x245)]);_0x183aad&&_0x205421[_0x764bbb(0x1b7)]({'start':_0x183aad[_0x764bbb(0x230)]+_0x48ca10[_0x764bbb(0x1bb)],'end':_0x183aad[_0x764bbb(0x1df)]+_0x48ca10[_0x764bbb(0x1bb)]});}let _0x37c72a=_0x46d0e4(_0x205421);return _0x37c72a[_0x764bbb(0x1f9)]===0x1?{'type':'ok','outline':{..._0x51943a,'start':_0x37c72a[0x0]['start'],'end':_0x37c72a[0x0][_0x764bbb(0x1df)]-0x1}}:{'type':_0x764bbb(0x228),'outline':_0x51943a,'ranges':_0x37c72a};}function _0x3f40ae(_0x355728,_0x5335ed,_0xd964d4){const _0x16bfd6=_0xa584d1;let _0x4e2077=_0x5335ed-_0x355728;if(_0x4e2077<=0x0)throw Error(_0x16bfd6(0x19b));return _0xd964d4>=_0x355728&&_0xd964d4<=_0x5335ed?[{'range':{'start':0x0,'end':_0x25701d},'offset':0x0}]:_0xd964d4<_0x355728?[{'range':{'start':0x0,'end':_0xd964d4},'offset':0x0},{'range':{'start':_0xd964d4,'end':_0x355728},'offset':_0x4e2077},{'range':{'start':_0x355728,'end':_0x5335ed},'offset':_0xd964d4-_0x355728},{'range':{'start':_0x5335ed,'end':_0x25701d},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x355728},'offset':0x0},{'range':{'start':_0x355728,'end':_0x5335ed},'offset':_0xd964d4-_0x5335ed},{'range':{'start':_0x5335ed,'end':_0xd964d4},'offset':-_0x4e2077},{'range':{'start':_0xd964d4,'end':_0x25701d},'offset':0x0}];}function _0x4ea8ed(_0x43785f,_0x4aa746){const _0x351b57=_0xa584d1;let _0x1640da=Math['max'](_0x43785f[_0x351b57(0x230)],_0x4aa746[_0x351b57(0x230)]),_0x53158f=Math['min'](_0x43785f['end'],_0x4aa746[_0x351b57(0x1df)]);return _0x1640da>=_0x53158f?null:{'start':_0x1640da,'end':_0x53158f};}function _0x46d0e4(_0x355a2d){const _0x3e519f=_0xa584d1;if(_0x355a2d[_0x3e519f(0x1f9)]===0x0)return[];let _0x33c2c2=[..._0x355a2d][_0x3e519f(0x18b)]((_0x46b420,_0x4244c5)=>_0x46b420[_0x3e519f(0x230)]-_0x4244c5[_0x3e519f(0x230)]||_0x46b420[_0x3e519f(0x1df)]-_0x4244c5[_0x3e519f(0x1df)]),_0x44ad9f=[];for(let _0x15be94 of _0x33c2c2){let _0x5a0ced=_0x44ad9f[_0x44ad9f[_0x3e519f(0x1f9)]-0x1];!_0x5a0ced||_0x15be94[_0x3e519f(0x230)]>_0x5a0ced['end']?_0x44ad9f[_0x3e519f(0x1b7)]({..._0x15be94}):_0x5a0ced['end']=Math[_0x3e519f(0x1d7)](_0x5a0ced['end'],_0x15be94[_0x3e519f(0x1df)]);}return _0x44ad9f;}function _0xc67ab7(_0x43899f,_0x41b57f,_0xeab655,_0x1934a0){return _0x41b57f+0x1===_0xeab655||_0x1934a0+0x1===_0x43899f;}function _0x368817(_0x23dcf8){let _0x477563=_0x266c70(_0x23dcf8);return _0x3d1efa(_0x477563),_0x477563;}function _0x266c70(_0xc82fd9){const _0x465e1a=_0xa584d1;let _0x282f00=new Map();for(let _0x30d06e of _0xc82fd9){let _0x1e171e=[_0x30d06e[_0x465e1a(0x187)],_0x30d06e[_0x465e1a(0x249)],_0x30d06e[_0x465e1a(0x1da)],_0x30d06e[_0x465e1a(0x230)],_0x30d06e[_0x465e1a(0x1df)]]['join'](':'),_0x15a993=_0x282f00[_0x465e1a(0x196)](_0x1e171e);if(!_0x15a993){_0x282f00[_0x465e1a(0x1de)](_0x1e171e,_0x30d06e);continue;}_0x282f00[_0x465e1a(0x1de)](_0x1e171e,{..._0x15a993,'collapsed':_0x15a993[_0x465e1a(0x1c0)]||_0x30d06e['collapsed']});}return Array[_0x465e1a(0x1e2)](_0x282f00[_0x465e1a(0x1a7)]());}function _0x3c0e3d(_0x71b92b,_0x862655){const _0x7f8ed7=_0xa584d1;return _0x71b92b[_0x7f8ed7(0x187)]===_0x862655[_0x7f8ed7(0x187)]?_0x71b92b[_0x7f8ed7(0x249)]===_0x862655['subUnitId']?_0x71b92b['axis']===_0x862655[_0x7f8ed7(0x1da)]?_0x71b92b[_0x7f8ed7(0x230)]===_0x862655[_0x7f8ed7(0x230)]?_0x862655[_0x7f8ed7(0x1df)]-_0x71b92b['end']:_0x71b92b['start']-_0x862655[_0x7f8ed7(0x230)]:_0x71b92b[_0x7f8ed7(0x1da)][_0x7f8ed7(0x1b8)](_0x862655[_0x7f8ed7(0x1da)]):_0x71b92b[_0x7f8ed7(0x249)][_0x7f8ed7(0x1b8)](_0x862655[_0x7f8ed7(0x249)]):_0x71b92b[_0x7f8ed7(0x187)][_0x7f8ed7(0x1b8)](_0x862655['unitId']);}function _0x7e58b0(_0x56747a){const _0x4408a5=_0xa584d1;if(_0x56747a[_0x4408a5(0x230)]>_0x56747a[_0x4408a5(0x1df)])throw new _0x3b8590('invalid-range',_0x4408a5(0x1a0),_0x56747a['id']);}function _0x424c59(_0x388e23,_0xfe1803){const _0x2a7396=_0xa584d1;let _0x229032=_0x388e23['start']<=_0xfe1803['end']&&_0xfe1803[_0x2a7396(0x230)]<=_0x388e23[_0x2a7396(0x1df)],_0x1199f0=_0x388e23[_0x2a7396(0x230)]<=_0xfe1803[_0x2a7396(0x230)]&&_0xfe1803[_0x2a7396(0x1df)]<=_0x388e23[_0x2a7396(0x1df)],_0x54d6bb=_0xfe1803[_0x2a7396(0x230)]<=_0x388e23['start']&&_0x388e23[_0x2a7396(0x1df)]<=_0xfe1803[_0x2a7396(0x1df)];return _0x229032&&!_0x1199f0&&!_0x54d6bb;}function _0x190279(_0x94e6ec){'@babel/helpers - typeof';const _0x8862c3=_0xa584d1;return _0x190279=typeof Symbol==_0x8862c3(0x1fd)&&typeof Symbol[_0x8862c3(0x241)]==_0x8862c3(0x1e1)?function(_0x428e4f){return typeof _0x428e4f;}:function(_0x425a5f){const _0x55461f=_0x8862c3;return _0x425a5f&&typeof Symbol=='function'&&_0x425a5f['constructor']===Symbol&&_0x425a5f!==Symbol[_0x55461f(0x212)]?'symbol':typeof _0x425a5f;},_0x190279(_0x94e6ec);}function _0x27df8e(_0x20376e,_0x4b2242){const _0x4fc47a=_0xa584d1;if(_0x190279(_0x20376e)!=_0x4fc47a(0x1bf)||!_0x20376e)return _0x20376e;var _0x8bc694=_0x20376e[Symbol[_0x4fc47a(0x1ca)]];if(_0x8bc694!==void 0x0){var _0x12a100=_0x8bc694[_0x4fc47a(0x1b0)](_0x20376e,_0x4b2242||'default');if(_0x190279(_0x12a100)!=_0x4fc47a(0x1bf))return _0x12a100;throw TypeError(_0x4fc47a(0x217));}return(_0x4b2242===_0x4fc47a(0x1e5)?String:Number)(_0x20376e);}function _0x380657(_0x1cc005){const _0x14d4d6=_0xa584d1;var _0x525e60=_0x27df8e(_0x1cc005,_0x14d4d6(0x1e5));return _0x190279(_0x525e60)==_0x14d4d6(0x1e1)?_0x525e60:_0x525e60+'';}function _0xf0a614(_0x62525a,_0x53d5d5,_0x28825e){return(_0x53d5d5=_0x380657(_0x53d5d5))in _0x62525a?Object['defineProperty'](_0x62525a,_0x53d5d5,{'value':_0x28825e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x62525a[_0x53d5d5]=_0x28825e,_0x62525a;}var _0x4b881f=class extends _0x393454['Disposable']{constructor(..._0x55af1e){const _0xfc4d04=_0xa584d1;super(..._0x55af1e),_0xf0a614(this,'_outlines',new Map()),_0xf0a614(this,_0xfc4d04(0x1f3),new _0xa50384[(_0xfc4d04(0x232))]()),_0xf0a614(this,'change$',this[_0xfc4d04(0x1f3)][_0xfc4d04(0x181)]());}[_0xa584d1(0x1e6)](_0x160f8c,_0x1eeb5d){const _0x2bf49d=_0xa584d1;var _0x28ab90;return[...((_0x28ab90=this['_outlines'][_0x2bf49d(0x196)](_0x160f8c))==null?void 0x0:_0x28ab90[_0x2bf49d(0x196)](_0x1eeb5d))??[]];}[_0xa584d1(0x1ee)](_0x387aaa){const _0x541644=_0xa584d1;let _0x5f50d6=this[_0x541644(0x178)][_0x541644(0x196)](_0x387aaa),_0x333a79=new Map();return _0x5f50d6==null||_0x5f50d6[_0x541644(0x1bc)]((_0x42d381,_0x23d444)=>{const _0x3fe9b7=_0x541644;_0x333a79[_0x3fe9b7(0x1de)](_0x23d444,[..._0x42d381]);}),_0x333a79;}[_0xa584d1(0x1c1)](_0x510643,_0x1c5e55,_0x1b3caf){const _0xa5072e=_0xa584d1;this[_0xa5072e(0x1a2)](_0x510643)[_0xa5072e(0x1de)](_0x1c5e55,[..._0x1b3caf]),this[_0xa5072e(0x1f3)][_0xa5072e(0x234)]({'unitId':_0x510643,'subUnitId':_0x1c5e55});}[_0xa584d1(0x183)](_0x49cbf1){const _0x102108=_0xa584d1;this[_0x102108(0x178)]['delete'](_0x49cbf1),this[_0x102108(0x1f3)][_0x102108(0x234)]({'unitId':_0x49cbf1});}[_0xa584d1(0x19c)](_0x7e5987){const _0x3d66e8=_0xa584d1;let _0x5102a6=this[_0x3d66e8(0x178)]['get'](_0x7e5987),_0x3d3ce7={};return _0x5102a6==null||_0x5102a6[_0x3d66e8(0x1bc)]((_0x3ace6d,_0x2320f1)=>{_0x3d3ce7[_0x2320f1]={'outlineList':[..._0x3ace6d]};}),_0x3d3ce7;}[_0xa584d1(0x18d)](_0x265594,_0x5887e0){const _0x31c43d=_0xa584d1;let _0x4bc9af=new Map();Object[_0x31c43d(0x210)](_0x5887e0)[_0x31c43d(0x1bc)](([_0x48805f,_0x1def14])=>{const _0x5e1054=_0x31c43d;_0x4bc9af[_0x5e1054(0x1de)](_0x48805f,[..._0x1def14['outlineList']??[]]);}),this[_0x31c43d(0x178)][_0x31c43d(0x1de)](_0x265594,_0x4bc9af),this['_change$']['next']({'unitId':_0x265594});}[_0xa584d1(0x18a)](){const _0xcc0533=_0xa584d1;super[_0xcc0533(0x18a)](),this[_0xcc0533(0x178)][_0xcc0533(0x233)](),this[_0xcc0533(0x1f3)][_0xcc0533(0x17b)]();}[_0xa584d1(0x1a2)](_0x137909){const _0x20b2f4=_0xa584d1;let _0x5a203b=this[_0x20b2f4(0x178)]['get'](_0x137909);return _0x5a203b||(_0x5a203b=new Map(),this[_0x20b2f4(0x178)]['set'](_0x137909,_0x5a203b)),_0x5a203b;}},_0x1d60ea=class extends _0x393454[_0xa584d1(0x198)]{constructor(..._0x357d63){const _0x606e79=_0xa584d1;super(..._0x357d63),_0xf0a614(this,_0x606e79(0x1ae),new _0xa50384[(_0x606e79(0x232))]()),_0xf0a614(this,_0x606e79(0x1a5),this[_0x606e79(0x1ae)]['asObservable']());}[_0xa584d1(0x236)](_0x22957e){const _0x28fcfa=_0xa584d1;this[_0x28fcfa(0x1ae)][_0x28fcfa(0x234)](_0x22957e);}[_0xa584d1(0x18a)](){const _0xab6512=_0xa584d1;super[_0xab6512(0x18a)](),this[_0xab6512(0x1ae)][_0xab6512(0x17b)]();}};let _0x45a8b8={'id':_0xa584d1(0x1ea),'type':_0x393454[_0xa584d1(0x22d)][_0xa584d1(0x1c5)],'handler':(_0xca8bf0,_0x506694)=>{const _0x14ce3d=_0xa584d1;let _0x18fc93=_0xca8bf0['get'](_0x4b881f),_0xc2b637=_0x18fc93[_0x14ce3d(0x1e6)](_0x506694[_0x14ce3d(0x187)],_0x506694[_0x14ce3d(0x249)]);return _0x18fc93[_0x14ce3d(0x1c1)](_0x506694[_0x14ce3d(0x187)],_0x506694['subUnitId'],_0x1a0823(_0xc2b637,_0x506694[_0x14ce3d(0x225)])),!0x0;}},_0x4177d0={'id':_0xa584d1(0x23a),'type':_0x393454['CommandType'][_0xa584d1(0x1c5)],'handler':(_0x29063c,_0x2d7540)=>{const _0x3ba912=_0xa584d1;let _0xf22e1d=_0x29063c[_0x3ba912(0x196)](_0x4b881f),_0x58f650=_0xf22e1d[_0x3ba912(0x1e6)](_0x2d7540['unitId'],_0x2d7540[_0x3ba912(0x249)]);return _0xf22e1d[_0x3ba912(0x1c1)](_0x2d7540[_0x3ba912(0x187)],_0x2d7540['subUnitId'],_0x58f650[_0x3ba912(0x23c)](_0x22db3f=>_0x22db3f['id']!==_0x2d7540[_0x3ba912(0x1c9)])),!0x0;}};function _0x49c341(_0x103a45,_0xdca6b5,_0x4011b6){const _0x266585=_0xa584d1;let _0x4c7b52=_0x4c3456(_0x103a45);return!_0x4c7b52||_0x4c7b52[_0x266585(0x1d0)]({'workbookTypes':[_0x377db9['WorkbookViewPermission']],'worksheetTypes':[_0x377db9[_0x266585(0x24e)]]},_0xdca6b5,_0x4011b6);}function _0x277568(_0x17e7a8,_0x6a0626,_0x45c127){const _0x2794f8=_0xa584d1;let _0x37c6a1=_0x2474bd(_0x17e7a8);return((_0x37c6a1==null?void 0x0:_0x37c6a1['permissionPointUpdate$'])??(0x0,_0xa50384['of'])(null))['pipe']((0x0,_0x528fbc[_0x2794f8(0x1ba)])(0x64),(0x0,_0x528fbc[_0x2794f8(0x190)])(null),(0x0,_0x528fbc[_0x2794f8(0x256)])(()=>_0x49c341(_0x17e7a8,_0x6a0626,_0x45c127)));}function _0x4c3456(_0x19a8eb){const _0x2ab4dd=_0xa584d1;if(typeof _0x19a8eb[_0x2ab4dd(0x254)]==_0x2ab4dd(0x1fd)&&!_0x19a8eb[_0x2ab4dd(0x254)](_0x377db9[_0x2ab4dd(0x19e)]))return null;try{return _0x19a8eb[_0x2ab4dd(0x196)](_0x377db9[_0x2ab4dd(0x19e)]);}catch{return null;}}function _0x2474bd(_0x4b8fac){const _0x1b869b=_0xa584d1;if(typeof _0x4b8fac[_0x1b869b(0x254)]==_0x1b869b(0x1fd)&&!_0x4b8fac[_0x1b869b(0x254)](_0x393454[_0x1b869b(0x1a4)]))return null;try{return _0x4b8fac['get'](_0x393454[_0x1b869b(0x1a4)]);}catch{return null;}}let _0x388860={'id':_0xa584d1(0x222),'type':_0x393454[_0xa584d1(0x22d)][_0xa584d1(0x193)],'handler':(_0x271971,_0x2747a4)=>{const _0x422807=_0xa584d1;if(!_0x2747a4)return!0x1;let _0x47aa99=(0x0,_0x377db9[_0x422807(0x195)])(_0x271971[_0x422807(0x196)](_0x393454[_0x422807(0x1f6)]),_0x2747a4);if(!_0x47aa99)return!0x1;let {unitId:_0x55c95a,subUnitId:_0xda9e6b,worksheet:_0x32ff97}=_0x47aa99;if(!_0x49c341(_0x271971,_0x55c95a,_0xda9e6b))return!0x1;let _0x2aa9b9=_0x271971[_0x422807(0x196)](_0x4b881f),_0x4330d9={'id':'dimension-outline-'+(0x0,_0x393454['generateRandomId'])(0x6),'unitId':_0x55c95a,'subUnitId':_0xda9e6b,'axis':_0x2747a4[_0x422807(0x1da)],'start':_0x2747a4[_0x422807(0x230)],'end':_0x2747a4['end'],'collapsed':!0x1},_0x36eae4=_0x2747a4[_0x422807(0x1da)]===_0x422807(0x1e7)?_0x32ff97[_0x422807(0x1cb)]():_0x32ff97[_0x422807(0x1dd)](),_0x3ea8fe=_0x2aa9b9[_0x422807(0x1e6)](_0x55c95a,_0xda9e6b),_0x4b4e0c=_0x191a3b(_0x3ea8fe,_0x4330d9),_0x19bb80=(_0x4b4e0c==null?void 0x0:_0x4b4e0c['mergedOutlines'])??[],_0x29e562=(_0x4b4e0c==null?void 0x0:_0x4b4e0c[_0x422807(0x1e8)])??_0x4330d9,_0x592b11=_0x2bad67(_0x4b4e0c?_0x3ea8fe[_0x422807(0x23c)](_0x58b009=>!_0x19bb80[_0x422807(0x1be)](_0x7be56d=>_0x7be56d['id']===_0x58b009['id'])):_0x3ea8fe,_0x29e562,{'maxIndex':_0x36eae4});if(!_0x592b11['valid'])return _0x271971[_0x422807(0x196)](_0x1d60ea)[_0x422807(0x236)]({'reason':_0x592b11['reason']??_0x422807(0x21d),'commandId':_0x388860['id'],'unitId':_0x55c95a,'subUnitId':_0xda9e6b,'axis':_0x2747a4[_0x422807(0x1da)],'outlineId':_0x29e562['id']}),!0x1;let _0x5daba1=[..._0x19bb80[_0x422807(0x256)](_0x2454b1=>({'id':_0x4177d0['id'],'params':{'unitId':_0x55c95a,'subUnitId':_0xda9e6b,'outlineId':_0x2454b1['id']}})),{'id':_0x45a8b8['id'],'params':{'unitId':_0x55c95a,'subUnitId':_0xda9e6b,'outline':_0x29e562}}],_0x4f8ca8=[{'id':_0x4177d0['id'],'params':{'unitId':_0x55c95a,'subUnitId':_0xda9e6b,'outlineId':_0x29e562['id']}},..._0x19bb80[_0x422807(0x256)](_0x1196bd=>({'id':_0x45a8b8['id'],'params':{'unitId':_0x55c95a,'subUnitId':_0xda9e6b,'outline':_0x1196bd}}))];return(0x0,_0x393454[_0x422807(0x224)])(_0x5daba1,_0x271971[_0x422807(0x196)](_0x393454[_0x422807(0x1ff)]))[_0x422807(0x20e)]?(_0x271971[_0x422807(0x196)](_0x393454[_0x422807(0x1e9)])['pushUndoRedo']({'unitID':_0x55c95a,'undoMutations':_0x4f8ca8,'redoMutations':_0x5daba1}),!0x0):!0x1;}},_0x10395a={'id':'sheet.mutation.clear-dimension-outlines','type':_0x393454[_0xa584d1(0x22d)][_0xa584d1(0x1c5)],'handler':(_0x302760,_0x1180d1)=>{const _0x1f5ec6=_0xa584d1;let _0x157d6b=_0x302760['get'](_0x4b881f),_0x90a200=_0x157d6b[_0x1f5ec6(0x1e6)](_0x1180d1[_0x1f5ec6(0x187)],_0x1180d1[_0x1f5ec6(0x249)]);return _0x157d6b[_0x1f5ec6(0x1c1)](_0x1180d1[_0x1f5ec6(0x187)],_0x1180d1[_0x1f5ec6(0x249)],_0x599f93(_0x90a200,_0x1180d1)),!0x0;}},_0x23ba42={'id':_0xa584d1(0x257),'type':_0x393454[_0xa584d1(0x22d)]['COMMAND'],'handler':(_0x6157ea,_0x346e5c)=>{const _0x40a14f=_0xa584d1;if(!_0x346e5c)return!0x1;let _0xbf3c5=(0x0,_0x377db9[_0x40a14f(0x195)])(_0x6157ea[_0x40a14f(0x196)](_0x393454[_0x40a14f(0x1f6)]),_0x346e5c);if(!_0xbf3c5)return!0x1;let {unitId:_0x4fb7cc,subUnitId:_0x717773}=_0xbf3c5;if(!_0x49c341(_0x6157ea,_0x4fb7cc,_0x717773))return!0x1;let _0xeaec0e={'unitId':_0x4fb7cc,'subUnitId':_0x717773,'axis':_0x346e5c[_0x40a14f(0x1da)],'start':_0x346e5c['start'],'end':_0x346e5c[_0x40a14f(0x1df)]},_0x5b2a34=_0x6157ea[_0x40a14f(0x196)](_0x4b881f)[_0x40a14f(0x1e6)](_0x4fb7cc,_0x717773)[_0x40a14f(0x23c)](_0x48e1b5=>_0x4dd9c5(_0x48e1b5,_0xeaec0e)&&_0x48e1b5[_0x40a14f(0x230)]>=_0x346e5c[_0x40a14f(0x230)]&&_0x48e1b5[_0x40a14f(0x1df)]<=_0x346e5c[_0x40a14f(0x1df)]);if(_0x5b2a34[_0x40a14f(0x1f9)]===0x0)return _0x6157ea[_0x40a14f(0x196)](_0x1d60ea)[_0x40a14f(0x236)]({'reason':_0x40a14f(0x22a),'commandId':_0x23ba42['id'],'unitId':_0x4fb7cc,'subUnitId':_0x717773,'axis':_0x346e5c[_0x40a14f(0x1da)]}),!0x1;let _0x19aab4=[{'id':_0x10395a['id'],'params':{..._0xeaec0e,'removedOutlineIds':_0x5b2a34[_0x40a14f(0x256)](_0x5a86e0=>_0x5a86e0['id'])}}],_0x4b9be2=_0x5b2a34[_0x40a14f(0x256)](_0x285480=>({'id':_0x45a8b8['id'],'params':{'unitId':_0x4fb7cc,'subUnitId':_0x717773,'outline':_0x285480}}));return(0x0,_0x393454[_0x40a14f(0x224)])(_0x19aab4,_0x6157ea[_0x40a14f(0x196)](_0x393454[_0x40a14f(0x1ff)]))[_0x40a14f(0x20e)]?(_0x6157ea['get'](_0x393454[_0x40a14f(0x1e9)])[_0x40a14f(0x200)]({'unitID':_0x4fb7cc,'undoMutations':_0x4b9be2,'redoMutations':_0x19aab4}),!0x0):!0x1;}},_0x1963d8={'id':_0xa584d1(0x227),'type':_0x393454[_0xa584d1(0x22d)]['COMMAND'],'handler':(_0x2c09ca,_0x6f573f)=>{const _0xf1b7bb=_0xa584d1;if(!_0x6f573f)return!0x1;let _0x22adcf=(0x0,_0x377db9['getSheetCommandTarget'])(_0x2c09ca[_0xf1b7bb(0x196)](_0x393454[_0xf1b7bb(0x1f6)]),_0x6f573f);if(!_0x22adcf)return!0x1;let {unitId:_0x59bffd,subUnitId:_0x1da869}=_0x22adcf;if(!_0x49c341(_0x2c09ca,_0x59bffd,_0x1da869))return!0x1;let _0x20bb1f=_0x2c09ca['get'](_0x4b881f)[_0xf1b7bb(0x1e6)](_0x59bffd,_0x1da869)[_0xf1b7bb(0x18c)](_0xf8fc2=>_0xf8fc2['id']===_0x6f573f['outlineId']);if(!_0x20bb1f)return!0x1;let _0x1da536=[{'id':_0x4177d0['id'],'params':{'unitId':_0x59bffd,'subUnitId':_0x1da869,'outlineId':_0x20bb1f['id'],'outline':_0x20bb1f}}],_0x2ab51d=[{'id':_0x45a8b8['id'],'params':{'unitId':_0x59bffd,'subUnitId':_0x1da869,'outline':_0x20bb1f}}];return(0x0,_0x393454[_0xf1b7bb(0x224)])(_0x1da536,_0x2c09ca[_0xf1b7bb(0x196)](_0x393454[_0xf1b7bb(0x1ff)]))['result']?(_0x2c09ca[_0xf1b7bb(0x196)](_0x393454[_0xf1b7bb(0x1e9)])[_0xf1b7bb(0x200)]({'unitID':_0x59bffd,'undoMutations':_0x2ab51d,'redoMutations':_0x1da536}),!0x0):!0x1;}},_0xacdb82={'id':_0xa584d1(0x216),'type':_0x393454[_0xa584d1(0x22d)][_0xa584d1(0x1c5)],'handler':(_0x4ffd2b,_0x17f759)=>{const _0x29895e=_0xa584d1;let _0x144698=_0x4ffd2b[_0x29895e(0x196)](_0x4b881f),_0x3b7098=_0x144698[_0x29895e(0x1e6)](_0x17f759[_0x29895e(0x187)],_0x17f759[_0x29895e(0x249)]),_0x573c33=_0x3b7098[_0x29895e(0x18c)](_0x430bfb=>_0x430bfb['id']===_0x17f759[_0x29895e(0x1c9)]);return _0x573c33&&_0x144698[_0x29895e(0x1c1)](_0x17f759[_0x29895e(0x187)],_0x17f759[_0x29895e(0x249)],_0x3b7098[_0x29895e(0x256)](_0x3ad089=>_0x3ad089['unitId']!==_0x573c33[_0x29895e(0x187)]||_0x3ad089[_0x29895e(0x249)]!==_0x573c33['subUnitId']||_0x3ad089[_0x29895e(0x1da)]!==_0x573c33[_0x29895e(0x1da)]||_0x3ad089[_0x29895e(0x230)]!==_0x573c33[_0x29895e(0x230)]||_0x3ad089[_0x29895e(0x1df)]!==_0x573c33[_0x29895e(0x1df)]?_0x3ad089:{..._0x3ad089,'collapsed':_0x17f759[_0x29895e(0x1c0)]})),!0x0;}};function _0x547ac6(_0xe62fe1,_0x8e5e98,_0x2077b7,_0x243fa9){const _0xa47075=_0xa584d1;return _0xe62fe1==='row'?{'startRow':_0x8e5e98,'endRow':_0x2077b7,'startColumn':0x0,'endColumn':_0x243fa9[_0xa47075(0x1b5)]()-0x1}:{'startRow':0x0,'endRow':_0x243fa9['getRowCount']()-0x1,'startColumn':_0x8e5e98,'endColumn':_0x2077b7};}function _0xa36fde(_0xcfb7c0){const _0x1de79e=_0xa584d1;return _0xcfb7c0==='row'?_0x377db9[_0x1de79e(0x1d6)]['id']:_0x377db9['SetColHiddenMutation']['id'];}function _0x184416(_0x2324f8){const _0x3f8453=_0xa584d1;return _0x2324f8===_0x3f8453(0x1e7)?_0x377db9[_0x3f8453(0x179)]['id']:_0x377db9[_0x3f8453(0x22b)]['id'];}function _0xa6086(_0xd90380,_0x42e981,_0x52a5da,_0x17911b){const _0x3f39b8=_0xa584d1;let _0x3d29aa=_0x42e981?[_0x547ac6(_0xd90380['axis'],_0xd90380[_0x3f39b8(0x230)],_0xd90380[_0x3f39b8(0x1df)],_0x52a5da)]:_0x1bc783(_0xd90380,_0x17911b,_0x52a5da),_0x314b71=_0x42e981?_0xa36fde(_0xd90380[_0x3f39b8(0x1da)]):_0x184416(_0xd90380[_0x3f39b8(0x1da)]);return[{'id':_0xacdb82['id'],'params':{'unitId':_0xd90380['unitId'],'subUnitId':_0xd90380[_0x3f39b8(0x249)],'outlineId':_0xd90380['id'],'outline':_0xd90380,'collapsed':_0x42e981}},..._0x3d29aa[_0x3f39b8(0x256)](_0x5f354c=>({'id':_0x314b71,'params':{'unitId':_0xd90380[_0x3f39b8(0x187)],'subUnitId':_0xd90380[_0x3f39b8(0x249)],'ranges':[_0x5f354c],'dimensionOutlineId':_0xd90380['id']}}))];}function _0x1bc783(_0x4dfebf,_0x151158,_0x1bcb84){const _0x9e5d9a=_0xa584d1;let _0x5c4b09=_0x474cd5(_0x151158[_0x9e5d9a(0x256)](_0x3e5280=>_0x1fa7f6(_0x3e5280,_0x4dfebf)?{..._0x3e5280,'collapsed':!0x1}:_0x3e5280),_0x4dfebf[_0x9e5d9a(0x187)],_0x4dfebf[_0x9e5d9a(0x249)],_0x4dfebf[_0x9e5d9a(0x1da)]);return _0x14100f({'start':_0x4dfebf[_0x9e5d9a(0x230)],'end':_0x4dfebf[_0x9e5d9a(0x1df)]},_0x5c4b09)[_0x9e5d9a(0x256)](_0x8546de=>_0x547ac6(_0x4dfebf[_0x9e5d9a(0x1da)],_0x8546de['start'],_0x8546de[_0x9e5d9a(0x1df)],_0x1bcb84));}function _0x1fa7f6(_0x3b5422,_0x3df050){const _0x39900a=_0xa584d1;return _0x3b5422[_0x39900a(0x187)]===_0x3df050[_0x39900a(0x187)]&&_0x3b5422[_0x39900a(0x249)]===_0x3df050['subUnitId']&&_0x3b5422['axis']===_0x3df050['axis']&&_0x3b5422[_0x39900a(0x230)]===_0x3df050[_0x39900a(0x230)]&&_0x3b5422['end']===_0x3df050['end'];}function _0x14100f(_0x241e57,_0xcdb3ca){const _0x4b953f=_0xa584d1;let _0x535745=_0x241e57[_0x4b953f(0x230)],_0xef548c=[];for(let _0x21115d of _0xcdb3ca)if(!(_0x21115d[_0x4b953f(0x1df)]<_0x535745||_0x21115d['start']>_0x241e57[_0x4b953f(0x1df)])&&(_0x21115d['start']>_0x535745&&_0xef548c['push']({'start':_0x535745,'end':Math[_0x4b953f(0x238)](_0x21115d[_0x4b953f(0x230)]-0x1,_0x241e57[_0x4b953f(0x1df)])}),_0x535745=Math[_0x4b953f(0x1d7)](_0x535745,_0x21115d['end']+0x1),_0x535745>_0x241e57['end']))break;return _0x535745<=_0x241e57[_0x4b953f(0x1df)]&&_0xef548c[_0x4b953f(0x1b7)]({'start':_0x535745,'end':_0x241e57['end']}),_0xef548c;}let _0x451ce6={'id':_0xa584d1(0x17c),'type':_0x393454[_0xa584d1(0x22d)][_0xa584d1(0x193)],'handler':(_0x522144,_0x3dc1f1)=>{const _0x464efe=_0xa584d1;if(!_0x3dc1f1)return!0x1;let _0x5a1723=(0x0,_0x377db9[_0x464efe(0x195)])(_0x522144[_0x464efe(0x196)](_0x393454[_0x464efe(0x1f6)]),_0x3dc1f1);if(!_0x5a1723)return!0x1;let {unitId:_0x32510f,subUnitId:_0x41c302,worksheet:_0x56a6d2}=_0x5a1723;if(!_0x49c341(_0x522144,_0x32510f,_0x41c302))return!0x1;let _0x4331ff=_0x522144[_0x464efe(0x196)](_0x4b881f)[_0x464efe(0x1e6)](_0x32510f,_0x41c302),_0x23c226=_0x4331ff[_0x464efe(0x18c)](_0x2d24db=>_0x2d24db['id']===_0x3dc1f1[_0x464efe(0x1c9)]);if(!_0x23c226||_0x23c226[_0x464efe(0x1c0)]===_0x3dc1f1[_0x464efe(0x1c0)])return!0x1;let _0x2e3327=_0xa6086(_0x23c226,_0x3dc1f1[_0x464efe(0x1c0)],_0x56a6d2,_0x4331ff),_0x454a8f=_0xa6086(_0x23c226,!_0x3dc1f1[_0x464efe(0x1c0)],_0x56a6d2,_0x4331ff);return(0x0,_0x393454[_0x464efe(0x224)])(_0x2e3327,_0x522144[_0x464efe(0x196)](_0x393454[_0x464efe(0x1ff)]))[_0x464efe(0x20e)]?(_0x522144['get'](_0x393454['IUndoRedoService'])[_0x464efe(0x200)]({'unitID':_0x32510f,'undoMutations':_0x454a8f,'redoMutations':_0x2e3327}),!0x0):!0x1;}},_0x4aaa20={'id':'sheet.mutation.transform-dimension-outlines','type':_0x393454[_0xa584d1(0x22d)]['MUTATION'],'handler':(_0xddc3a8,_0x1322f1)=>{const _0x34208d=_0xa584d1;let _0x4c59e8=_0xddc3a8[_0x34208d(0x196)](_0x4b881f),_0x81f9ee=_0x1600f0(_0x4c59e8[_0x34208d(0x1e6)](_0x1322f1[_0x34208d(0x187)],_0x1322f1[_0x34208d(0x249)]),_0x1322f1);return _0x4c59e8['setOutlines'](_0x1322f1[_0x34208d(0x187)],_0x1322f1[_0x34208d(0x249)],_0x81f9ee),!0x0;}};function _0x1600f0(_0x33861d,_0x85c153){const _0x42a7fa=_0xa584d1;switch(_0x85c153['type']){case _0x42a7fa(0x218):return _0x85c153[_0x42a7fa(0x197)]?_0x4b26ef(_0x33861d,_0x85c153):_0x13733f(_0x33861d,_0x85c153);case'delete':return _0x3b2344(_0x33861d,_0x85c153);case _0x42a7fa(0x239):return _0x7064f5(_0x33861d,_0x85c153);}}function _0x4b26ef(_0x348ed8,_0x45b21e){const _0x34a4e6=_0xa584d1;return[..._0x348ed8[_0x34a4e6(0x23c)](_0x1a2d6c=>_0x1a2d6c[_0x34a4e6(0x187)]!==_0x45b21e[_0x34a4e6(0x187)]||_0x1a2d6c[_0x34a4e6(0x249)]!==_0x45b21e[_0x34a4e6(0x249)]||_0x1a2d6c[_0x34a4e6(0x1da)]!==_0x45b21e[_0x34a4e6(0x1da)]),..._0x45b21e[_0x34a4e6(0x197)]];}let _0x355cb5='SHEET_OUTLINE_PLUGIN';var _0x40f4ab=_0xa584d1(0x23b),_0xf0bbbf=_0xa584d1(0x188);let _0x2fda69={};function _0x113ebe(_0x56c478,_0x15fe9d){return function(_0x19971b,_0x45da58){_0x15fe9d(_0x19971b,_0x45da58,_0x56c478);};}function _0x344a4d(_0x35752a,_0x509055,_0x213ceb,_0x4603e4){const _0x43cfc2=_0xa584d1;var _0x5ae716=arguments[_0x43cfc2(0x1f9)],_0x3555b4=_0x5ae716<0x3?_0x509055:_0x4603e4===null?_0x4603e4=Object[_0x43cfc2(0x180)](_0x509055,_0x213ceb):_0x4603e4,_0x10fb7e;if(typeof Reflect==_0x43cfc2(0x1bf)&&typeof Reflect[_0x43cfc2(0x20c)]=='function')_0x3555b4=Reflect[_0x43cfc2(0x20c)](_0x35752a,_0x509055,_0x213ceb,_0x4603e4);else{for(var _0x561ec3=_0x35752a[_0x43cfc2(0x1f9)]-0x1;_0x561ec3>=0x0;_0x561ec3--)(_0x10fb7e=_0x35752a[_0x561ec3])&&(_0x3555b4=(_0x5ae716<0x3?_0x10fb7e(_0x3555b4):_0x5ae716>0x3?_0x10fb7e(_0x509055,_0x213ceb,_0x3555b4):_0x10fb7e(_0x509055,_0x213ceb))||_0x3555b4);}return _0x5ae716>0x3&&_0x3555b4&&Object[_0x43cfc2(0x211)](_0x509055,_0x213ceb,_0x3555b4),_0x3555b4;}let _0x6657de={'redos':[],'undos':[],'preRedos':[],'preUndos':[]},_0xd83d69=class extends _0x393454[_0xa584d1(0x198)]{constructor(_0x40cf3b,_0x165418,_0x17545e,_0x4ead9e){const _0x1494e6=_0xa584d1;super(),this[_0x1494e6(0x20b)]=_0x40cf3b,this[_0x1494e6(0x184)]=_0x165418,this[_0x1494e6(0x1f0)]=_0x17545e,this[_0x1494e6(0x1b2)]=_0x4ead9e,this['_initCommandInterceptor']();}[_0xa584d1(0x1d3)](){const _0x42593d=_0xa584d1;this['disposeWithMe'](this[_0x42593d(0x184)][_0x42593d(0x23e)]({'getMutations':_0x3efe6e=>_0x1ec2a0(_0x3efe6e,(_0xc57aa7,_0x4c5bce)=>this[_0x42593d(0x1f0)][_0x42593d(0x1e6)](_0xc57aa7,_0x4c5bce),this['_getCommandScope'](_0x3efe6e['params']),_0x430801=>this[_0x42593d(0x1b2)][_0x42593d(0x236)](_0x430801))}));}[_0xa584d1(0x1af)](_0x3100a){const _0xc2f99f=_0xa584d1;let _0x55cfb3=_0x3100a,_0x40fd7c=_0x55cfb3!=null&&_0x55cfb3[_0xc2f99f(0x187)]?this['_univerInstanceService'][_0xc2f99f(0x19d)](_0x55cfb3['unitId'],_0x393454[_0xc2f99f(0x248)][_0xc2f99f(0x1f2)]):this[_0xc2f99f(0x20b)][_0xc2f99f(0x221)](_0x393454[_0xc2f99f(0x248)][_0xc2f99f(0x1f2)]);if(!_0x40fd7c)return;let _0x39b906=_0x55cfb3!=null&&_0x55cfb3[_0xc2f99f(0x249)]?_0x40fd7c[_0xc2f99f(0x1ad)](_0x55cfb3[_0xc2f99f(0x249)]):_0x40fd7c[_0xc2f99f(0x1c7)]();if(_0x39b906)return{'unitId':_0x40fd7c[_0xc2f99f(0x1ac)](),'subUnitId':_0x39b906['getSheetId']()};}};_0xd83d69=_0x344a4d([_0x113ebe(0x0,_0x393454['IUniverInstanceService']),_0x113ebe(0x1,(0x0,_0x393454[_0xa584d1(0x192)])(_0x377db9[_0xa584d1(0x21e)])),_0x113ebe(0x2,(0x0,_0x393454[_0xa584d1(0x192)])(_0x4b881f)),_0x113ebe(0x3,(0x0,_0x393454['Inject'])(_0x1d60ea))],_0xd83d69);function _0x1ec2a0(_0x4c09f6,_0x9e7d21,_0x45ef3f,_0x563f87){const _0x50240=_0xa584d1;let _0x80a95d=_0x1ec6d5(_0x4c09f6,_0x45ef3f);if(!_0x80a95d)return _0x458f35();let _0x35fbb7=_0x9e7d21(_0x80a95d[_0x50240(0x187)],_0x80a95d[_0x50240(0x249)]);if(!_0x35fbb7[_0x50240(0x1be)](_0xce1490=>_0xce1490[_0x50240(0x1da)]===_0x80a95d['axis']))return _0x458f35();_0x2a808a(_0x35fbb7,_0x80a95d,_0x4c09f6['id'],_0x563f87);let _0x508a9d=_0x569174(_0x80a95d,_0x35fbb7);return{'redos':[{'id':_0x4aaa20['id'],'params':_0x80a95d}],'undos':[{'id':_0x4aaa20['id'],'params':_0x508a9d}],'preRedos':[],'preUndos':[]};}function _0x2a808a(_0x2f1546,_0x4421bd,_0x4898cb,_0x134e9d){const _0x2db0be=_0xa584d1;try{switch(_0x4421bd['type']){case _0x2db0be(0x218):_0x13733f(_0x2f1546,_0x4421bd);break;case _0x2db0be(0x19f):_0x3b2344(_0x2f1546,_0x4421bd);break;case _0x2db0be(0x239):_0x7064f5(_0x2f1546,_0x4421bd);}}catch(_0x5a610d){throw _0x134e9d==null||_0x134e9d({'reason':_0x1dbb44(_0x5a610d),'commandId':_0x4898cb,'unitId':_0x4421bd[_0x2db0be(0x187)],'subUnitId':_0x4421bd['subUnitId'],'axis':_0x4421bd[_0x2db0be(0x1da)],'outlineId':_0x1024bb(_0x5a610d)}),new _0x393454[(_0x2db0be(0x255))](_0x5a610d instanceof Error?_0x5a610d[_0x2db0be(0x253)]:_0x2db0be(0x201));}}function _0x1ec6d5(_0x37e988,_0x419f36){const _0x31c44f=_0xa584d1;switch(_0x37e988['id']){case _0x377db9[_0x31c44f(0x214)]['id']:return _0x147196(_0x37e988['params'],_0x31c44f(0x1e7),_0x419f36);case _0x377db9[_0x31c44f(0x1fa)]['id']:return _0x147196(_0x37e988[_0x31c44f(0x1d2)],_0x31c44f(0x1fb),_0x419f36);case _0x377db9['RemoveRowCommand']['id']:return _0x5ca528(_0x37e988['params'],'row',_0x419f36);case _0x377db9['RemoveColCommand']['id']:return _0x5ca528(_0x37e988[_0x31c44f(0x1d2)],_0x31c44f(0x1fb),_0x419f36);case _0x377db9[_0x31c44f(0x19a)]['id']:return _0x44dfd6(_0x37e988['params'],_0x31c44f(0x1e7),_0x419f36);case _0x377db9[_0x31c44f(0x1ec)]['id']:return _0x44dfd6(_0x37e988[_0x31c44f(0x1d2)],_0x31c44f(0x1fb),_0x419f36);default:return null;}}function _0x147196(_0x28578d,_0x50a5a2,_0x304ee1){const _0x229fe5=_0xa584d1;let _0x410134=_0x171cd7(_0x28578d,_0x304ee1);if(!(_0x28578d!=null&&_0x28578d[_0x229fe5(0x245)])||!_0x410134)return null;let _0x155a2f=_0x50a5a2===_0x229fe5(0x1e7)?_0x28578d[_0x229fe5(0x245)][_0x229fe5(0x223)]:_0x28578d[_0x229fe5(0x245)][_0x229fe5(0x1bd)],_0x51d940=_0x50a5a2===_0x229fe5(0x1e7)?_0x28578d['range']['endRow']:_0x28578d[_0x229fe5(0x245)][_0x229fe5(0x1f1)];return{..._0x410134,'axis':_0x50a5a2,'type':_0x229fe5(0x218),'index':_0x155a2f,'count':_0x51d940-_0x155a2f+0x1};}function _0x5ca528(_0x56f5d4,_0x11cd16,_0x346610){const _0xa901b9=_0xa584d1;let _0x2c523b=_0x171cd7(_0x56f5d4,_0x346610);if(!(_0x56f5d4!=null&&_0x56f5d4[_0xa901b9(0x245)])||!_0x2c523b)return null;let _0x155536=_0x11cd16===_0xa901b9(0x1e7)?_0x56f5d4['range'][_0xa901b9(0x223)]:_0x56f5d4['range'][_0xa901b9(0x1bd)],_0xd729c3=_0x11cd16===_0xa901b9(0x1e7)?_0x56f5d4[_0xa901b9(0x245)]['endRow']:_0x56f5d4[_0xa901b9(0x245)][_0xa901b9(0x1f1)];return{..._0x2c523b,'axis':_0x11cd16,'type':_0xa901b9(0x19f),'start':_0x155536,'end':_0xd729c3};}function _0x44dfd6(_0x5cc975,_0xd609d,_0x38994d){const _0x29385f=_0xa584d1;let _0x16f420=_0x171cd7(_0x5cc975,_0x38994d);if(!(_0x5cc975!=null&&_0x5cc975[_0x29385f(0x1d5)])||!_0x5cc975[_0x29385f(0x22f)]||!_0x16f420)return null;let _0x97c2e0=_0xd609d===_0x29385f(0x1e7)?_0x5cc975[_0x29385f(0x1d5)][_0x29385f(0x223)]:_0x5cc975[_0x29385f(0x1d5)][_0x29385f(0x1bd)],_0x3b2184=_0xd609d===_0x29385f(0x1e7)?_0x5cc975[_0x29385f(0x1d5)]['endRow']:_0x5cc975[_0x29385f(0x1d5)]['endColumn'],_0x3af7ff=_0xd609d===_0x29385f(0x1e7)?_0x5cc975[_0x29385f(0x22f)]['startRow']:_0x5cc975[_0x29385f(0x22f)][_0x29385f(0x1bd)];return{..._0x16f420,'axis':_0xd609d,'type':'move','sourceStart':_0x97c2e0,'sourceEnd':_0x3b2184,'destinationIndex':_0x3af7ff};}function _0x569174(_0x2d641b,_0x26cc19){const _0xd2ff9b=_0xa584d1;switch(_0x2d641b[_0xd2ff9b(0x20d)]){case _0xd2ff9b(0x218):return{'unitId':_0x2d641b[_0xd2ff9b(0x187)],'subUnitId':_0x2d641b[_0xd2ff9b(0x249)],'axis':_0x2d641b['axis'],'type':_0xd2ff9b(0x19f),'start':_0x2d641b[_0xd2ff9b(0x17d)],'end':_0x2d641b[_0xd2ff9b(0x17d)]+_0x2d641b['count']-0x1};case _0xd2ff9b(0x19f):return{'unitId':_0x2d641b['unitId'],'subUnitId':_0x2d641b['subUnitId'],'axis':_0x2d641b[_0xd2ff9b(0x1da)],'type':_0xd2ff9b(0x218),'index':_0x2d641b[_0xd2ff9b(0x230)],'count':_0x2d641b[_0xd2ff9b(0x1df)]-_0x2d641b[_0xd2ff9b(0x230)]+0x1,'restoreOutlines':_0x26cc19[_0xd2ff9b(0x23c)](_0x326093=>_0x326093[_0xd2ff9b(0x187)]===_0x2d641b[_0xd2ff9b(0x187)]&&_0x326093[_0xd2ff9b(0x249)]===_0x2d641b[_0xd2ff9b(0x249)]&&_0x326093[_0xd2ff9b(0x1da)]===_0x2d641b[_0xd2ff9b(0x1da)])};case _0xd2ff9b(0x239):return _0x24f94f(_0x2d641b);}}function _0x24f94f(_0x257c12){const _0x5f602d=_0xa584d1;let _0x3a83d4=_0x257c12[_0x5f602d(0x18f)]-_0x257c12[_0x5f602d(0x23f)]+0x1;return _0x257c12[_0x5f602d(0x215)]>=_0x257c12['sourceStart']&&_0x257c12['destinationIndex']<=_0x257c12[_0x5f602d(0x18f)]+0x1?{..._0x257c12}:_0x257c12[_0x5f602d(0x215)]>_0x257c12[_0x5f602d(0x18f)]+0x1?{..._0x257c12,'sourceStart':_0x257c12[_0x5f602d(0x215)]-_0x3a83d4,'sourceEnd':_0x257c12[_0x5f602d(0x215)]-0x1,'destinationIndex':_0x257c12[_0x5f602d(0x23f)]}:{..._0x257c12,'sourceStart':_0x257c12[_0x5f602d(0x215)],'sourceEnd':_0x257c12[_0x5f602d(0x215)]+_0x3a83d4-0x1,'destinationIndex':_0x257c12[_0x5f602d(0x18f)]+0x1};}function _0x171cd7(_0x6cb429,_0x477607){const _0xfcecf7=_0xa584d1;let _0x5dfa07=(_0x6cb429==null?void 0x0:_0x6cb429[_0xfcecf7(0x187)])??(_0x477607==null?void 0x0:_0x477607[_0xfcecf7(0x187)]),_0x53119c=(_0x6cb429==null?void 0x0:_0x6cb429[_0xfcecf7(0x249)])??(_0x477607==null?void 0x0:_0x477607[_0xfcecf7(0x249)]);return _0x5dfa07&&_0x53119c?{'unitId':_0x5dfa07,'subUnitId':_0x53119c}:null;}function _0x458f35(){const _0x46f5dd=_0xa584d1;return{'redos':[..._0x6657de[_0x46f5dd(0x23d)]],'undos':[..._0x6657de[_0x46f5dd(0x1c6)]],'preRedos':[..._0x6657de['preRedos']??[]],'preUndos':[..._0x6657de[_0x46f5dd(0x199)]??[]]};}let _0x4a656d=class extends _0x393454[_0xa584d1(0x198)]{constructor(_0x4a7cd3,_0x499b3a){const _0x37c144=_0xa584d1;super(),this[_0x37c144(0x1e4)]=_0x4a7cd3,this[_0x37c144(0x1f0)]=_0x499b3a,this[_0x37c144(0x1cf)]();}[_0xa584d1(0x1cf)](){const _0x21b39e=_0xa584d1;this[_0x21b39e(0x252)](this['_resourceManagerService'][_0x21b39e(0x1fe)]({'pluginName':_0x355cb5,'businesses':[_0x393454[_0x21b39e(0x248)]['UNIVER_SHEET']],'toJson':_0x550ca1=>JSON['stringify'](this[_0x21b39e(0x1f0)][_0x21b39e(0x19c)](_0x550ca1)),'parseJson':_0x4a3816=>JSON[_0x21b39e(0x243)](_0x4a3816),'onLoad':(_0x107a87,_0x582abe)=>this[_0x21b39e(0x1f0)]['deserialize'](_0x107a87,_0x582abe),'onUnLoad':_0x1bd5e6=>this['_sheetsOutlineModel'][_0x21b39e(0x183)](_0x1bd5e6)}));}};_0x4a656d=_0x344a4d([_0x113ebe(0x0,_0x393454[_0xa584d1(0x1db)]),_0x113ebe(0x1,(0x0,_0x393454[_0xa584d1(0x192)])(_0x4b881f))],_0x4a656d);let _0x44bf41=class extends _0x393454['Plugin']{constructor(_0xa185fb=_0x2fda69,_0xcf28b0,_0x37bf2d,_0x19c96a){const _0x4f15ee=_0xa584d1;super(),this[_0x4f15ee(0x1f4)]=_0xa185fb,this[_0x4f15ee(0x206)]=_0xcf28b0,this['_commandService']=_0x37bf2d,this['_configService']=_0x19c96a;let {..._0x4d9feb}=(0x0,_0x393454['merge'])({},_0x2fda69,this[_0x4f15ee(0x1f4)]);this[_0x4f15ee(0x209)][_0x4f15ee(0x1b3)](_0x4f15ee(0x250),_0x4d9feb);}['onStarting'](){const _0x32e251=_0xa584d1;this[_0x32e251(0x206)]['add']([_0x4b881f]),this[_0x32e251(0x206)][_0x32e251(0x1d9)]([_0x1d60ea]),this[_0x32e251(0x206)][_0x32e251(0x1d9)]([_0x4a656d]),this['_injector'][_0x32e251(0x1d9)]([_0xd83d69]),this[_0x32e251(0x191)](),this[_0x32e251(0x206)][_0x32e251(0x196)](_0x4b881f),this[_0x32e251(0x206)][_0x32e251(0x196)](_0x1d60ea),this[_0x32e251(0x206)][_0x32e251(0x196)](_0x4a656d),this[_0x32e251(0x206)][_0x32e251(0x196)](_0xd83d69);}[_0xa584d1(0x191)](){const _0x5d2909=_0xa584d1;[_0x388860,_0x1963d8,_0x451ce6,_0x23ba42][_0x5d2909(0x1bc)](_0x491281=>{const _0x371f7e=_0x5d2909;this['disposeWithMe'](this['_commandService'][_0x371f7e(0x231)](_0x491281));}),[_0x45a8b8,_0x4177d0,_0xacdb82,_0x10395a,_0x4aaa20][_0x5d2909(0x1bc)](_0x2bbc3d=>{const _0x18757d=_0x5d2909;this[_0x18757d(0x252)](this[_0x18757d(0x226)][_0x18757d(0x231)](_0x2bbc3d));});}};_0xf0a614(_0x44bf41,_0xa584d1(0x22e),_0x355cb5),_0xf0a614(_0x44bf41,_0xa584d1(0x242),_0x40f4ab),_0xf0a614(_0x44bf41,_0xa584d1(0x1e0),_0xf0bbbf),_0xf0a614(_0x44bf41,_0xa584d1(0x20d),_0x393454[_0xa584d1(0x248)][_0xa584d1(0x1f2)]),_0x44bf41=_0x344a4d([(0x0,_0x393454[_0xa584d1(0x1f5)])(_0x430856[_0xa584d1(0x21c)],_0x377db9[_0xa584d1(0x24f)]),_0x113ebe(0x1,(0x0,_0x393454[_0xa584d1(0x192)])(_0x393454[_0xa584d1(0x207)])),_0x113ebe(0x2,_0x393454[_0xa584d1(0x1ff)]),_0x113ebe(0x3,_0x393454[_0xa584d1(0x235)])],_0x44bf41),_0x24956f['AddDimensionOutlineCommand']=_0x388860,_0x24956f[_0xa584d1(0x1ed)]=_0x45a8b8,_0x24956f[_0xa584d1(0x251)]=_0x23ba42,_0x24956f['ClearDimensionOutlinesMutation']=_0x10395a,_0x24956f[_0xa584d1(0x1b4)]=_0x384e67,_0x24956f['DimensionOutlineErrorReason']=_0x8c4e7e,_0x24956f['RemoveDimensionOutlineCommand']=_0x1963d8,_0x24956f[_0xa584d1(0x1a1)]=_0x4177d0,_0x24956f[_0xa584d1(0x202)]=_0x355cb5,_0x24956f[_0xa584d1(0x182)]=_0x451ce6,_0x24956f['SetDimensionOutlineCollapsedMutation']=_0xacdb82,_0x24956f['SheetsOutlineErrorService']=_0x1d60ea,_0x24956f[_0xa584d1(0x24c)]=_0x4b881f,_0x24956f['TransformDimensionOutlinesMutation']=_0x4aaa20,Object[_0xa584d1(0x211)](_0x24956f,_0xa584d1(0x1f8),{'enumerable':!0x0,'get':function(){return _0x44bf41;}}),_0x24956f[_0xa584d1(0x1ef)]=_0x3d1efa,_0x24956f[_0xa584d1(0x1ce)]=_0x2bad67,_0x24956f['getDimensionOutlineViewPermission$']=_0x277568,_0x24956f[_0xa584d1(0x1a3)]=_0x49c341,_0x24956f[_0xa584d1(0x17e)]=_0x3b2344,_0x24956f['transformOutlinesByInsert']=_0x13733f,_0x24956f[_0xa584d1(0x220)]=_0x7064f5;}));
|
|
1
|
+
function _0x108c(_0x192833,_0x23bc08){_0x192833=_0x192833-0xbc;const _0x444734=_0x4447();let _0x108cc2=_0x444734[_0x192833];return _0x108cc2;}function _0x4447(){const _0x2e880a=['DependentOn','_configService','sheet.command.set-dimension-outline-collapsed','Invalid\x20dimension\x20outline\x20mutation','pop','COLUMN','UniverSheetsOutlinePlugin','getSheetId','dispose','sheets-outline.config','hasDimensionOutlineViewPermission','startWith','depth','2501916nKQJwt','_initResource','params','_resourceManagerService','_sheetsOutlineModel','_initRegisterCommand','interceptCommand','find','split','clear','CommandType','_sheetsOutlineErrorService','ClearDimensionOutlinesCommand','redos','defineProperty','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','ROW','27320TMUKmF','sheet.command.clear-dimension-outlines','pluginName','join','Module','SheetsOutlineErrorService','1407093astemi','getRowCount','operators','IUniverInstanceService','endRow','sheet.mutation.set-dimension-outline-collapsed','rxjs','permissionPointUpdate$','TransformDimensionOutlinesMutation','SetColHiddenMutation','range','move-splits-outline','delete','AddDimensionOutlineMutation','min','default','object','startRow','1124263NCXfam','set','string','row','transformOutlinesByInsert','_outlines','RemoveDimensionOutlineMutation','decorate','end','Disposable','maxDepth','WorksheetViewPermission','change$','call','buildDimensionOutlineTree','emit','InsertRowCommand','InsertColCommand','getActiveSheet','Invalid\x20outline\x20range','next','337785HZMAnf','_error$','getSheetCommandTarget','values','IPermissionService','length','CustomCommandExecutionError','getUnit','IUndoRedoService','sort','_injector','maxIndex','MAX_DEPTH','_change$','map','error$','removeUnit','result','Subject','symbol','undos','localeCompare','add','version','getSheetBySheetId','SetRowVisibleMutation','sheet.mutation.transform-dimension-outlines','transformOutlinesByDelete','destinationIndex','prototype','some','insert','Crossing','sequenceExecute','UniverSheetsPlugin','UNKNOWN','Inject','_ensureUnitOutlines','MUTATION','count','1.0.2','unitId','UniverCore','registerCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','mergedOutlines','_sheetInterceptorService','deserialize','_getCommandScope','split\x20dimension\x20outline','UniverSheets','ICommandService','sourceEnd','176700kSKLlx','startColumn','toRange','rxjs/operators','registerPluginResource','Plugin','iterator','push','setConfig','_univerInstanceService','clear-range-not-contain-outline','get','filter','getOwnPropertyDescriptor','collapsed','exports','sourceStart','children','message','max-depth','sheet.command.add-dimension-outline','sheet.command.remove-dimension-outline','start','DimensionOutlineErrorReason','outline','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','_config','complete','WorkbookViewPermission','asObservable','@univerjs/sheets','UniverProSheetsOutline','pipe','disposeWithMe','name','INVALID_RANGE','@univerjs-pro/sheets-outline','function','constructor','amd','invalid-range','ClearDimensionOutlinesMutation','18VjFlvz','preUndos','UniverProLicense','RemoveColCommand','720vJzeeH','setOutlines','stringify','endColumn','@univerjs-pro/license','RemoveDimensionOutlineCommand','type','forEach','toStringTag','move','mergedOutline','debounceTime','UNIVER_SHEET','crossing','dimension-outline-','SetDimensionOutlineCollapsedMutation','getOutlines','has','MOVE_SPLITS_OUTLINE','sheet.mutation.add-dimension-outline','restoreOutlines','out-of-bounds','SheetPermissionCheckController','index','DimensionOutlineAxis','packageName','fromRange','outlineId','getUnitOutlines','_commandService','pushUndoRedo','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','includes','reason','merge','canAddDimensionOutline','AddDimensionOutlineCommand','serialize','UniverInstanceType','column','MoveColsCommand','onStarting','axis','798658ASKuOU','unknown','subUnitId','valid','Move\x20would\x20split\x20dimension\x20outline:\x20','offset','DimensionOutlineError','COMMAND'];_0x4447=function(){return _0x2e880a;};return _0x4447();}(function(_0x3cfc89,_0x4951aa){const _0x3dd5b5=_0x108c,_0x4b6260=_0x3cfc89();while(!![]){try{const _0x18e32e=parseInt(_0x3dd5b5(0x12f))/0x1+parseInt(_0x3dd5b5(0x188))/0x2+parseInt(_0x3dd5b5(0xd3))/0x3+-parseInt(_0x3dd5b5(0xbc))/0x4+-parseInt(_0x3dd5b5(0xfa))/0x5*(parseInt(_0x3dd5b5(0x159))/0x6)+-parseInt(_0x3dd5b5(0xe5))/0x7+parseInt(_0x3dd5b5(0xcd))/0x8*(parseInt(_0x3dd5b5(0x15d))/0x9);if(_0x18e32e===_0x4951aa)break;else _0x4b6260['push'](_0x4b6260['shift']());}catch(_0x238e59){_0x4b6260['push'](_0x4b6260['shift']());}}}(_0x4447,0x5071d),function(_0x369f8b,_0x5e502b){const _0x4f9f45=_0x108c;typeof exports==_0x4f9f45(0xe3)&&typeof module<'u'?_0x5e502b(exports,require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs-pro/license')):typeof define==_0x4f9f45(0x154)&&define[_0x4f9f45(0x156)]?define([_0x4f9f45(0x13e),'@univerjs/core',_0x4f9f45(0x14d),_0x4f9f45(0xd9),_0x4f9f45(0x132),_0x4f9f45(0x161)],_0x5e502b):(_0x369f8b=typeof globalThis<'u'?globalThis:_0x369f8b||self,_0x5e502b(_0x369f8b[_0x4f9f45(0x14e)]={},_0x369f8b[_0x4f9f45(0x124)],_0x369f8b[_0x4f9f45(0x12c)],_0x369f8b[_0x4f9f45(0xd9)],_0x369f8b['rxjs'][_0x4f9f45(0xd5)],_0x369f8b[_0x4f9f45(0x15b)]));}(this,function(_0x548ebf,_0x1bfc8b,_0x1349f0,_0x49dce8,_0x2f5655,_0x2da048){const _0x40b04a=_0x108c;Object[_0x40b04a(0xca)](_0x548ebf,Symbol[_0x40b04a(0x165)],{'value':_0x40b04a(0xd1)});let _0x59ce2c=function(_0x3e8a16){const _0x4486b3=_0x40b04a;return _0x3e8a16[_0x4486b3(0xcc)]=_0x4486b3(0xe8),_0x3e8a16[_0x4486b3(0x195)]=_0x4486b3(0x184),_0x3e8a16;}({}),_0x31de7f=function(_0x169173){const _0x12454e=_0x40b04a;return _0x169173[_0x12454e(0x152)]=_0x12454e(0x157),_0x169173['OUT_OF_BOUNDS']=_0x12454e(0x172),_0x169173['CROSSING']=_0x12454e(0x16a),_0x169173[_0x12454e(0x106)]='max-depth',_0x169173[_0x12454e(0x16f)]=_0x12454e(0xde),_0x169173[_0x12454e(0xcb)]='clear-range-not-contain-outline',_0x169173[_0x12454e(0x11d)]=_0x12454e(0x189),_0x169173;}({});var _0x49a3ce=class extends Error{constructor(_0x5867cc,_0x91c547,_0x3c4fd3){const _0x13803f=_0x40b04a;super(_0x91c547),this[_0x13803f(0x17e)]=_0x5867cc,this['outlineId']=_0x3c4fd3,this[_0x13803f(0x151)]=_0x13803f(0x18e);}};function _0x11b222(_0x4cd020){const _0x60cdb1=_0x40b04a;return _0x4cd020 instanceof _0x49a3ce?_0x4cd020[_0x60cdb1(0x17e)]:_0x4cd020 instanceof Error?_0x4cd020[_0x60cdb1(0x141)][_0x60cdb1(0x17d)](_0x60cdb1(0x12b))?_0x60cdb1(0xde):_0x4cd020[_0x60cdb1(0x141)]['includes'](_0x60cdb1(0x19c))?'max-depth':_0x4cd020[_0x60cdb1(0x141)][_0x60cdb1(0x17d)](_0x60cdb1(0x11a))?_0x60cdb1(0x16a):_0x4cd020[_0x60cdb1(0x141)][_0x60cdb1(0x17d)]('range')?_0x60cdb1(0x157):'unknown':_0x60cdb1(0x189);}function _0x272753(_0x136da8){const _0x33e2f8=_0x40b04a;return _0x136da8 instanceof _0x49a3ce?_0x136da8[_0x33e2f8(0x178)]:void 0x0;}let _0x11e042=0x2**0x35-0x1;function _0x35aadb(_0x2724b4,_0x48392a){const _0x585fe2=_0x40b04a;return _0x2724b4[_0x585fe2(0x123)]===_0x48392a[_0x585fe2(0x123)]&&_0x2724b4[_0x585fe2(0x18a)]===_0x48392a[_0x585fe2(0x18a)]&&_0x2724b4[_0x585fe2(0x187)]===_0x48392a['axis'];}function _0x2a6a78(_0x564ab8,_0x2af50e={}){const _0xf8ddd2=_0x40b04a;let _0x2d5029=_0x2af50e[_0xf8ddd2(0xef)]??0x8,_0x30d471=new Map();for(let _0x1d627e of _0x564ab8){let _0x1eb8a1=_0x1d627e['unitId']+':'+_0x1d627e[_0xf8ddd2(0x18a)]+':'+_0x1d627e[_0xf8ddd2(0x187)],_0x2d7f74=_0x30d471[_0xf8ddd2(0x13a)](_0x1eb8a1);_0x2d7f74?_0x2d7f74['push'](_0x1d627e):_0x30d471[_0xf8ddd2(0xe6)](_0x1eb8a1,[_0x1d627e]);}let _0x405d3d=[];for(let _0x131f0d of _0x30d471[_0xf8ddd2(0xfd)]()){let _0x2abfa2=[..._0x131f0d][_0xf8ddd2(0x103)](_0x2e1329),_0x1772c0=[];for(let _0x4f3976 of _0x2abfa2){for(_0x29b502(_0x4f3976);_0x1772c0[_0xf8ddd2(0xff)]>0x0&&_0x4f3976[_0xf8ddd2(0x145)]>_0x1772c0[_0x1772c0[_0xf8ddd2(0xff)]-0x1]['end'];)_0x1772c0[_0xf8ddd2(0x194)]();let _0x59644e=_0x1772c0[_0x1772c0[_0xf8ddd2(0xff)]-0x1];if(_0x59644e&&_0x4f3976[_0xf8ddd2(0xed)]>_0x59644e[_0xf8ddd2(0xed)])throw new _0x49a3ce('crossing',_0xf8ddd2(0x148),_0x4f3976['id']);let _0x3337f4=_0x59644e?_0x59644e['depth']+0x1:0x1;if(_0x3337f4>_0x2d5029)throw new _0x49a3ce(_0xf8ddd2(0x142),_0xf8ddd2(0x17c)+_0x2d5029,_0x4f3976['id']);let _0x35706d={..._0x4f3976,'depth':_0x3337f4,'parentId':_0x59644e==null?void 0x0:_0x59644e['id'],'anchor':_0x4f3976[_0xf8ddd2(0xed)],'children':[]};_0x59644e?_0x59644e[_0xf8ddd2(0x140)][_0xf8ddd2(0x136)](_0x35706d):_0x405d3d['push'](_0x35706d),_0x1772c0[_0xf8ddd2(0x136)](_0x35706d);}}return _0x405d3d;}function _0x19a930(_0x13a576,_0x568241,_0x3463f4={}){const _0x2781f1=_0x40b04a;if(_0x568241['start']<0x0||_0x568241[_0x2781f1(0x145)]>_0x568241[_0x2781f1(0xed)])return{'valid':!0x1,'reason':_0x2781f1(0x157)};if(_0x3463f4[_0x2781f1(0x105)]!=null&&_0x568241[_0x2781f1(0xed)]>=_0x3463f4[_0x2781f1(0x105)])return{'valid':!0x1,'reason':_0x2781f1(0x172)};let _0x50b3bc=_0x13a576[_0x2781f1(0x13b)](_0x5eb27f=>_0x35aadb(_0x5eb27f,_0x568241));for(let _0x5e8517 of _0x50b3bc)if(_0x31d536(_0x5e8517,_0x568241))return{'valid':!0x1,'reason':_0x2781f1(0x16a)};try{_0x2a6a78([..._0x13a576,_0x568241],_0x3463f4);}catch(_0x225f21){let _0x3c408c=_0x11b222(_0x225f21);return _0x3c408c===_0x2781f1(0x142)?{'valid':!0x1,'reason':_0x2781f1(0x142)}:_0x3c408c===_0x2781f1(0x157)?{'valid':!0x1,'reason':_0x2781f1(0x157)}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function _0x17ede1(_0x3ee498,_0x4b37d0,_0x4b11f7={}){const _0x594958=_0x40b04a;let _0x2e591c=_0x19a930(_0x3ee498,_0x4b37d0,_0x4b11f7);if(!_0x2e591c[_0x594958(0x18b)])throw Error(_0x2e591c['reason']??'invalid-dimension-outline');return[..._0x3ee498,_0x4b37d0];}function _0x478419(_0x1ccada,_0x4260c8){const _0x581d29=_0x40b04a;let _0x5ac3bc=_0x4260c8[_0x581d29(0x145)],_0x341313=_0x4260c8[_0x581d29(0xed)],_0x1f9019=[],_0x2ec76a=!0x0;for(;_0x2ec76a;){_0x2ec76a=!0x1;for(let _0x1e4af4 of _0x1ccada)!_0x1f9019[_0x581d29(0x17d)](_0x1e4af4)&&_0x35aadb(_0x1e4af4,_0x4260c8)&&_0x1ea73e(_0x1e4af4[_0x581d29(0x145)],_0x1e4af4[_0x581d29(0xed)],_0x5ac3bc,_0x341313)&&(_0x1f9019[_0x581d29(0x136)](_0x1e4af4),_0x5ac3bc=Math[_0x581d29(0xe1)](_0x5ac3bc,_0x1e4af4['start']),_0x341313=Math['max'](_0x341313,_0x1e4af4[_0x581d29(0xed)]),_0x2ec76a=!0x0);}if(_0x1f9019[_0x581d29(0xff)]===0x0)return null;let [_0x351992]=[..._0x1f9019][_0x581d29(0x103)](_0x2e1329);return{'mergedOutline':{..._0x351992,'start':_0x5ac3bc,'end':_0x341313},'mergedOutlines':_0x1f9019};}function _0x48a8f5(_0xcbc6c6,_0x180158){const _0x2fba09=_0x40b04a;return _0xcbc6c6[_0x2fba09(0x13b)](_0x42ceda=>!_0x35aadb(_0x42ceda,_0x180158)||!(_0x42ceda['start']>=_0x180158[_0x2fba09(0x145)]&&_0x42ceda[_0x2fba09(0xed)]<=_0x180158['end']));}function _0x4d2898(_0x5b592c,_0x40c388,_0x2da05d,_0x1bd5e2){const _0x22ace1=_0x40b04a;return _0x4b69b8(_0x5b592c[_0x22ace1(0x13b)](_0x47b96e=>_0x47b96e[_0x22ace1(0x123)]===_0x40c388&&_0x47b96e[_0x22ace1(0x18a)]===_0x2da05d&&_0x47b96e[_0x22ace1(0x187)]===_0x1bd5e2&&_0x47b96e[_0x22ace1(0x13d)])[_0x22ace1(0x108)](_0x5cb1fa=>({'start':_0x5cb1fa[_0x22ace1(0x145)],'end':_0x5cb1fa[_0x22ace1(0xed)]})));}function _0x4b69b8(_0x24b475){const _0x2c8f0b=_0x40b04a;if(_0x24b475[_0x2c8f0b(0xff)]===0x0)return[];let _0x1bbcc5=[..._0x24b475][_0x2c8f0b(0x103)]((_0x7e2e85,_0x588333)=>_0x7e2e85[_0x2c8f0b(0x145)]-_0x588333[_0x2c8f0b(0x145)]||_0x7e2e85[_0x2c8f0b(0xed)]-_0x588333[_0x2c8f0b(0xed)]),_0x4558bb=[];for(let _0x1269e4 of _0x1bbcc5){let _0x139f4b=_0x4558bb[_0x4558bb[_0x2c8f0b(0xff)]-0x1];!_0x139f4b||_0x1269e4[_0x2c8f0b(0x145)]>_0x139f4b[_0x2c8f0b(0xed)]+0x1?_0x4558bb[_0x2c8f0b(0x136)]({..._0x1269e4}):_0x139f4b['end']=Math['max'](_0x139f4b['end'],_0x1269e4[_0x2c8f0b(0xed)]);}return _0x4558bb;}function _0x3ddb88(_0x5db1f4,_0x484cf2){const _0x5aee76=_0x40b04a;return _0x484cf2[_0x5aee76(0x121)]<=0x0?_0x5db1f4:_0x36b560(_0x5db1f4['map'](_0x14dea2=>_0x35aadb(_0x14dea2,_0x484cf2)?_0x484cf2['index']<=_0x14dea2[_0x5aee76(0x145)]?{..._0x14dea2,'start':_0x14dea2['start']+_0x484cf2[_0x5aee76(0x121)],'end':_0x14dea2[_0x5aee76(0xed)]+_0x484cf2[_0x5aee76(0x121)]}:_0x14dea2[_0x5aee76(0x145)]<_0x484cf2[_0x5aee76(0x174)]&&_0x484cf2[_0x5aee76(0x174)]<=_0x14dea2['end']?{..._0x14dea2,'end':_0x14dea2[_0x5aee76(0xed)]+_0x484cf2['count']}:_0x14dea2:_0x14dea2));}function _0x1fbe99(_0x250620,_0x39bb7b){const _0x5f5b6d=_0x40b04a;if(_0x39bb7b[_0x5f5b6d(0x145)]>_0x39bb7b[_0x5f5b6d(0xed)])return _0x250620;let _0x5e3531=_0x39bb7b['end']-_0x39bb7b[_0x5f5b6d(0x145)]+0x1,_0x3fe837=[];for(let _0x53166b of _0x250620){if(!_0x35aadb(_0x53166b,_0x39bb7b)){_0x3fe837[_0x5f5b6d(0x136)](_0x53166b);continue;}if(_0x53166b[_0x5f5b6d(0xed)]<_0x39bb7b['start']){_0x3fe837['push'](_0x53166b);continue;}if(_0x53166b[_0x5f5b6d(0x145)]>_0x39bb7b[_0x5f5b6d(0xed)]){_0x3fe837[_0x5f5b6d(0x136)]({..._0x53166b,'start':_0x53166b[_0x5f5b6d(0x145)]-_0x5e3531,'end':_0x53166b[_0x5f5b6d(0xed)]-_0x5e3531});continue;}let _0xbde0b2=Math['max'](_0x53166b[_0x5f5b6d(0x145)],_0x39bb7b[_0x5f5b6d(0x145)]),_0x1a6835=Math[_0x5f5b6d(0xe1)](_0x53166b[_0x5f5b6d(0xed)],_0x39bb7b[_0x5f5b6d(0xed)]),_0x4cc659=Math['max'](0x0,_0x1a6835-_0xbde0b2+0x1),_0x470c0f=_0x53166b[_0x5f5b6d(0xed)]-_0x53166b[_0x5f5b6d(0x145)]+0x1-_0x4cc659;if(_0x470c0f<=0x0)continue;let _0x2f85fe=_0x53166b[_0x5f5b6d(0x145)]<_0x39bb7b['start']?_0x53166b['start']:_0x39bb7b[_0x5f5b6d(0x145)];_0x3fe837[_0x5f5b6d(0x136)]({..._0x53166b,'start':_0x2f85fe,'end':_0x2f85fe+_0x470c0f-0x1});}return _0x36b560(_0x3fe837);}function _0x5322fd(_0x59d059,_0x5dce8a){const _0x1010a8=_0x40b04a;if(_0x5dce8a[_0x1010a8(0x13f)]>_0x5dce8a[_0x1010a8(0x12e)])return _0x59d059;let _0x5674ce=[];for(let _0xfbf1b2 of _0x59d059){if(!_0x35aadb(_0xfbf1b2,_0x5dce8a)){_0x5674ce[_0x1010a8(0x136)](_0xfbf1b2);continue;}let _0x3e0bc3=_0x3e1e30(_0xfbf1b2,_0x5dce8a);if(_0x3e0bc3[_0x1010a8(0x163)]===_0x1010a8(0xc4))throw new _0x49a3ce(_0x1010a8(0xde),_0x1010a8(0x18c)+_0xfbf1b2['id'],_0xfbf1b2['id']);_0x5674ce[_0x1010a8(0x136)](_0x3e0bc3[_0x1010a8(0x147)]);}return _0x36b560(_0x5674ce);}function _0x3e1e30(_0x30bac3,_0x1d5b3d){const _0x19479e=_0x40b04a;let _0xce11eb=_0x4881f0(_0x1d5b3d[_0x19479e(0x13f)],_0x1d5b3d[_0x19479e(0x12e)]+0x1,_0x1d5b3d[_0x19479e(0x116)]),_0x5f0fd4=[],_0x332fc9={'start':_0x30bac3[_0x19479e(0x145)],'end':_0x30bac3[_0x19479e(0xed)]+0x1};for(let _0x1de4ee of _0xce11eb){let _0x4435cb=_0xfe920a(_0x332fc9,_0x1de4ee[_0x19479e(0xdd)]);_0x4435cb&&_0x5f0fd4[_0x19479e(0x136)]({'start':_0x4435cb[_0x19479e(0x145)]+_0x1de4ee['offset'],'end':_0x4435cb[_0x19479e(0xed)]+_0x1de4ee[_0x19479e(0x18d)]});}let _0x9b7d1d=_0x1c295c(_0x5f0fd4);return _0x9b7d1d[_0x19479e(0xff)]===0x1?{'type':'ok','outline':{..._0x30bac3,'start':_0x9b7d1d[0x0][_0x19479e(0x145)],'end':_0x9b7d1d[0x0][_0x19479e(0xed)]-0x1}}:{'type':_0x19479e(0xc4),'outline':_0x30bac3,'ranges':_0x9b7d1d};}function _0x4881f0(_0xe368ee,_0x1cabcc,_0x9bb112){let _0x3a3cda=_0x1cabcc-_0xe368ee;if(_0x3a3cda<=0x0)throw Error('Invalid\x20dimension\x20outline\x20move\x20source\x20range');return _0x9bb112>=_0xe368ee&&_0x9bb112<=_0x1cabcc?[{'range':{'start':0x0,'end':_0x11e042},'offset':0x0}]:_0x9bb112<_0xe368ee?[{'range':{'start':0x0,'end':_0x9bb112},'offset':0x0},{'range':{'start':_0x9bb112,'end':_0xe368ee},'offset':_0x3a3cda},{'range':{'start':_0xe368ee,'end':_0x1cabcc},'offset':_0x9bb112-_0xe368ee},{'range':{'start':_0x1cabcc,'end':_0x11e042},'offset':0x0}]:[{'range':{'start':0x0,'end':_0xe368ee},'offset':0x0},{'range':{'start':_0xe368ee,'end':_0x1cabcc},'offset':_0x9bb112-_0x1cabcc},{'range':{'start':_0x1cabcc,'end':_0x9bb112},'offset':-_0x3a3cda},{'range':{'start':_0x9bb112,'end':_0x11e042},'offset':0x0}];}function _0xfe920a(_0x4e7725,_0xad2750){const _0x382f02=_0x40b04a;let _0x218198=Math['max'](_0x4e7725[_0x382f02(0x145)],_0xad2750[_0x382f02(0x145)]),_0x559c11=Math[_0x382f02(0xe1)](_0x4e7725[_0x382f02(0xed)],_0xad2750['end']);return _0x218198>=_0x559c11?null:{'start':_0x218198,'end':_0x559c11};}function _0x1c295c(_0x25f413){const _0x18b963=_0x40b04a;if(_0x25f413[_0x18b963(0xff)]===0x0)return[];let _0x555e92=[..._0x25f413]['sort']((_0x2fcc87,_0x5e489d)=>_0x2fcc87[_0x18b963(0x145)]-_0x5e489d['start']||_0x2fcc87[_0x18b963(0xed)]-_0x5e489d[_0x18b963(0xed)]),_0x1a6ff3=[];for(let _0x434099 of _0x555e92){let _0x356e06=_0x1a6ff3[_0x1a6ff3[_0x18b963(0xff)]-0x1];!_0x356e06||_0x434099[_0x18b963(0x145)]>_0x356e06[_0x18b963(0xed)]?_0x1a6ff3[_0x18b963(0x136)]({..._0x434099}):_0x356e06[_0x18b963(0xed)]=Math['max'](_0x356e06[_0x18b963(0xed)],_0x434099['end']);}return _0x1a6ff3;}function _0x1ea73e(_0x547b4e,_0x307d17,_0x3d0575,_0x35298b){return _0x307d17+0x1===_0x3d0575||_0x35298b+0x1===_0x547b4e;}function _0x36b560(_0x10b82a){let _0x191b6b=_0x4fd963(_0x10b82a);return _0x2a6a78(_0x191b6b),_0x191b6b;}function _0x4fd963(_0x2f6bfe){const _0x230d68=_0x40b04a;let _0x58bbf3=new Map();for(let _0x541d42 of _0x2f6bfe){let _0x56f809=[_0x541d42[_0x230d68(0x123)],_0x541d42['subUnitId'],_0x541d42[_0x230d68(0x187)],_0x541d42[_0x230d68(0x145)],_0x541d42['end']][_0x230d68(0xd0)](':'),_0x1c5bb4=_0x58bbf3['get'](_0x56f809);if(!_0x1c5bb4){_0x58bbf3[_0x230d68(0xe6)](_0x56f809,_0x541d42);continue;}_0x58bbf3[_0x230d68(0xe6)](_0x56f809,{..._0x1c5bb4,'collapsed':_0x1c5bb4[_0x230d68(0x13d)]||_0x541d42['collapsed']});}return Array['from'](_0x58bbf3[_0x230d68(0xfd)]());}function _0x2e1329(_0x362576,_0x19f887){const _0x1b2f92=_0x40b04a;return _0x362576[_0x1b2f92(0x123)]===_0x19f887['unitId']?_0x362576['subUnitId']===_0x19f887[_0x1b2f92(0x18a)]?_0x362576[_0x1b2f92(0x187)]===_0x19f887['axis']?_0x362576[_0x1b2f92(0x145)]===_0x19f887[_0x1b2f92(0x145)]?_0x19f887['end']-_0x362576[_0x1b2f92(0xed)]:_0x362576[_0x1b2f92(0x145)]-_0x19f887[_0x1b2f92(0x145)]:_0x362576['axis'][_0x1b2f92(0x10f)](_0x19f887['axis']):_0x362576[_0x1b2f92(0x18a)]['localeCompare'](_0x19f887[_0x1b2f92(0x18a)]):_0x362576[_0x1b2f92(0x123)][_0x1b2f92(0x10f)](_0x19f887[_0x1b2f92(0x123)]);}function _0x29b502(_0x36d223){const _0x18c15b=_0x40b04a;if(_0x36d223['start']>_0x36d223[_0x18c15b(0xed)])throw new _0x49a3ce(_0x18c15b(0x157),_0x18c15b(0xf8),_0x36d223['id']);}function _0x31d536(_0x5798ec,_0xe36dc8){const _0x290e35=_0x40b04a;let _0x452760=_0x5798ec[_0x290e35(0x145)]<=_0xe36dc8[_0x290e35(0xed)]&&_0xe36dc8['start']<=_0x5798ec[_0x290e35(0xed)],_0x2296f0=_0x5798ec[_0x290e35(0x145)]<=_0xe36dc8[_0x290e35(0x145)]&&_0xe36dc8[_0x290e35(0xed)]<=_0x5798ec[_0x290e35(0xed)],_0x2851e8=_0xe36dc8[_0x290e35(0x145)]<=_0x5798ec['start']&&_0x5798ec['end']<=_0xe36dc8['end'];return _0x452760&&!_0x2296f0&&!_0x2851e8;}function _0x40d2f9(_0x3a18e5){'@babel/helpers - typeof';const _0x5c104e=_0x40b04a;return _0x40d2f9=typeof Symbol==_0x5c104e(0x154)&&typeof Symbol[_0x5c104e(0x135)]==_0x5c104e(0x10d)?function(_0x30e66a){return typeof _0x30e66a;}:function(_0x72891b){const _0x1fb0a9=_0x5c104e;return _0x72891b&&typeof Symbol==_0x1fb0a9(0x154)&&_0x72891b[_0x1fb0a9(0x155)]===Symbol&&_0x72891b!==Symbol[_0x1fb0a9(0x117)]?'symbol':typeof _0x72891b;},_0x40d2f9(_0x3a18e5);}function _0x1868a1(_0x165eee,_0x2dc0e8){const _0x30f073=_0x40b04a;if(_0x40d2f9(_0x165eee)!='object'||!_0x165eee)return _0x165eee;var _0x459cbe=_0x165eee[Symbol['toPrimitive']];if(_0x459cbe!==void 0x0){var _0x3d7cd3=_0x459cbe[_0x30f073(0xf2)](_0x165eee,_0x2dc0e8||_0x30f073(0xe2));if(_0x40d2f9(_0x3d7cd3)!=_0x30f073(0xe3))return _0x3d7cd3;throw TypeError(_0x30f073(0x126));}return(_0x2dc0e8===_0x30f073(0xe7)?String:Number)(_0x165eee);}function _0x34b0b5(_0x2f5931){var _0xbffd6b=_0x1868a1(_0x2f5931,'string');return _0x40d2f9(_0xbffd6b)=='symbol'?_0xbffd6b:_0xbffd6b+'';}function _0x365a78(_0x2dc107,_0x7bb776,_0x350fb1){const _0x2175fb=_0x40b04a;return(_0x7bb776=_0x34b0b5(_0x7bb776))in _0x2dc107?Object[_0x2175fb(0xca)](_0x2dc107,_0x7bb776,{'value':_0x350fb1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2dc107[_0x7bb776]=_0x350fb1,_0x2dc107;}var _0x59094b=class extends _0x1bfc8b[_0x40b04a(0xee)]{constructor(..._0x5614b0){const _0xc55bd=_0x40b04a;super(..._0x5614b0),_0x365a78(this,'_outlines',new Map()),_0x365a78(this,_0xc55bd(0x107),new _0x49dce8[(_0xc55bd(0x10c))]()),_0x365a78(this,_0xc55bd(0xf1),this['_change$']['asObservable']());}['getOutlines'](_0x50e12c,_0x29c178){const _0x307f7b=_0x40b04a;var _0x4be19d;return[...((_0x4be19d=this['_outlines'][_0x307f7b(0x13a)](_0x50e12c))==null?void 0x0:_0x4be19d['get'](_0x29c178))??[]];}[_0x40b04a(0x179)](_0x211fae){const _0x260c67=_0x40b04a;let _0x48fdff=this[_0x260c67(0xea)][_0x260c67(0x13a)](_0x211fae),_0x1e925e=new Map();return _0x48fdff==null||_0x48fdff[_0x260c67(0x164)]((_0x1a4ea9,_0x55210d)=>{const _0x188d01=_0x260c67;_0x1e925e[_0x188d01(0xe6)](_0x55210d,[..._0x1a4ea9]);}),_0x1e925e;}[_0x40b04a(0x15e)](_0x4fb4d0,_0x27ff36,_0x334b1b){const _0x4eebc8=_0x40b04a;this[_0x4eebc8(0x11f)](_0x4fb4d0)[_0x4eebc8(0xe6)](_0x27ff36,[..._0x334b1b]),this[_0x4eebc8(0x107)]['next']({'unitId':_0x4fb4d0,'subUnitId':_0x27ff36});}['removeUnit'](_0x5b4565){const _0x514222=_0x40b04a;this['_outlines'][_0x514222(0xdf)](_0x5b4565),this['_change$'][_0x514222(0xf9)]({'unitId':_0x5b4565});}[_0x40b04a(0x182)](_0x3b05aa){const _0x242dce=_0x40b04a;let _0x17c53a=this[_0x242dce(0xea)][_0x242dce(0x13a)](_0x3b05aa),_0x1611e7={};return _0x17c53a==null||_0x17c53a['forEach']((_0x59fa95,_0x23c47e)=>{_0x1611e7[_0x23c47e]={'outlineList':[..._0x59fa95]};}),_0x1611e7;}[_0x40b04a(0x129)](_0x5589e1,_0xa23fe5){const _0x5bc919=_0x40b04a;let _0x5dd3c7=new Map();Object['entries'](_0xa23fe5)['forEach'](([_0x3aa52a,_0x168048])=>{const _0x39fb06=_0x108c;_0x5dd3c7[_0x39fb06(0xe6)](_0x3aa52a,[..._0x168048['outlineList']??[]]);}),this[_0x5bc919(0xea)][_0x5bc919(0xe6)](_0x5589e1,_0x5dd3c7),this[_0x5bc919(0x107)][_0x5bc919(0xf9)]({'unitId':_0x5589e1});}[_0x40b04a(0x198)](){const _0xb6ef3=_0x40b04a;super['dispose'](),this[_0xb6ef3(0xea)][_0xb6ef3(0xc5)](),this[_0xb6ef3(0x107)][_0xb6ef3(0x14a)]();}[_0x40b04a(0x11f)](_0x197aa0){const _0x5c4042=_0x40b04a;let _0x1cdab9=this['_outlines'][_0x5c4042(0x13a)](_0x197aa0);return _0x1cdab9||(_0x1cdab9=new Map(),this[_0x5c4042(0xea)][_0x5c4042(0xe6)](_0x197aa0,_0x1cdab9)),_0x1cdab9;}},_0x9be8a4=class extends _0x1bfc8b[_0x40b04a(0xee)]{constructor(..._0x458291){const _0x538347=_0x40b04a;super(..._0x458291),_0x365a78(this,'_error$',new _0x49dce8['Subject']()),_0x365a78(this,_0x538347(0x109),this[_0x538347(0xfb)][_0x538347(0x14c)]());}[_0x40b04a(0xf4)](_0x1ad6f2){const _0xe67e7f=_0x40b04a;this['_error$'][_0xe67e7f(0xf9)](_0x1ad6f2);}[_0x40b04a(0x198)](){const _0x2c0337=_0x40b04a;super[_0x2c0337(0x198)](),this[_0x2c0337(0xfb)][_0x2c0337(0x14a)]();}};let _0x1f2a85={'id':_0x40b04a(0x170),'type':_0x1bfc8b['CommandType']['MUTATION'],'handler':(_0x3685b2,_0x55cbab)=>{const _0x3df7a7=_0x40b04a;let _0x129ed4=_0x3685b2[_0x3df7a7(0x13a)](_0x59094b),_0x28db7c=_0x129ed4['getOutlines'](_0x55cbab[_0x3df7a7(0x123)],_0x55cbab[_0x3df7a7(0x18a)]);return _0x129ed4['setOutlines'](_0x55cbab[_0x3df7a7(0x123)],_0x55cbab[_0x3df7a7(0x18a)],_0x17ede1(_0x28db7c,_0x55cbab[_0x3df7a7(0x147)])),!0x0;}},_0x3bdced={'id':'sheet.mutation.remove-dimension-outline','type':_0x1bfc8b['CommandType'][_0x40b04a(0x120)],'handler':(_0x217560,_0x2abfda)=>{const _0x21e577=_0x40b04a;let _0x37699e=_0x217560[_0x21e577(0x13a)](_0x59094b),_0x5d4953=_0x37699e[_0x21e577(0x16d)](_0x2abfda[_0x21e577(0x123)],_0x2abfda[_0x21e577(0x18a)]);return _0x37699e[_0x21e577(0x15e)](_0x2abfda[_0x21e577(0x123)],_0x2abfda[_0x21e577(0x18a)],_0x5d4953[_0x21e577(0x13b)](_0xa580a6=>_0xa580a6['id']!==_0x2abfda[_0x21e577(0x178)])),!0x0;}};function _0x253bf1(_0xb6361a,_0x518986,_0x402103){const _0x15338c=_0x40b04a;let _0x3c7e7a=_0x3a0fde(_0xb6361a);return!_0x3c7e7a||_0x3c7e7a['permissionCheckWithoutRange']({'workbookTypes':[_0x1349f0[_0x15338c(0x14b)]],'worksheetTypes':[_0x1349f0[_0x15338c(0xf0)]]},_0x518986,_0x402103);}function _0x1ccc12(_0x20a777,_0x36df75,_0x324e0c){const _0x14b833=_0x40b04a;let _0x5aac19=_0x53a669(_0x20a777);return((_0x5aac19==null?void 0x0:_0x5aac19[_0x14b833(0xda)])??(0x0,_0x49dce8['of'])(null))[_0x14b833(0x14f)]((0x0,_0x2f5655[_0x14b833(0x168)])(0x64),(0x0,_0x2f5655[_0x14b833(0x19b)])(null),(0x0,_0x2f5655['map'])(()=>_0x253bf1(_0x20a777,_0x36df75,_0x324e0c)));}function _0x3a0fde(_0xd9d2a5){const _0x177d8f=_0x40b04a;if(typeof _0xd9d2a5[_0x177d8f(0x16e)]==_0x177d8f(0x154)&&!_0xd9d2a5[_0x177d8f(0x16e)](_0x1349f0[_0x177d8f(0x173)]))return null;try{return _0xd9d2a5[_0x177d8f(0x13a)](_0x1349f0['SheetPermissionCheckController']);}catch{return null;}}function _0x53a669(_0x2fd784){const _0x14730a=_0x40b04a;if(typeof _0x2fd784['has']==_0x14730a(0x154)&&!_0x2fd784[_0x14730a(0x16e)](_0x1bfc8b['IPermissionService']))return null;try{return _0x2fd784[_0x14730a(0x13a)](_0x1bfc8b[_0x14730a(0xfe)]);}catch{return null;}}let _0x952f6a={'id':_0x40b04a(0x143),'type':_0x1bfc8b[_0x40b04a(0xc6)]['COMMAND'],'handler':(_0x4c9329,_0x2ccbe1)=>{const _0x3bff94=_0x40b04a;if(!_0x2ccbe1)return!0x1;let _0x413418=(0x0,_0x1349f0[_0x3bff94(0xfc)])(_0x4c9329[_0x3bff94(0x13a)](_0x1bfc8b[_0x3bff94(0xd6)]),_0x2ccbe1);if(!_0x413418)return!0x1;let {unitId:_0x5a397c,subUnitId:_0x13f4b1,worksheet:_0x220531}=_0x413418;if(!_0x253bf1(_0x4c9329,_0x5a397c,_0x13f4b1))return!0x1;let _0x449065=_0x4c9329[_0x3bff94(0x13a)](_0x59094b),_0x19bbe2={'id':_0x3bff94(0x16b)+(0x0,_0x1bfc8b['generateRandomId'])(0x6),'unitId':_0x5a397c,'subUnitId':_0x13f4b1,'axis':_0x2ccbe1[_0x3bff94(0x187)],'start':_0x2ccbe1[_0x3bff94(0x145)],'end':_0x2ccbe1[_0x3bff94(0xed)],'collapsed':!0x1},_0x36f168=_0x2ccbe1['axis']==='row'?_0x220531[_0x3bff94(0xd4)]():_0x220531['getColumnCount'](),_0x16b63c=_0x449065['getOutlines'](_0x5a397c,_0x13f4b1),_0x3ec5d8=_0x478419(_0x16b63c,_0x19bbe2),_0x48884e=(_0x3ec5d8==null?void 0x0:_0x3ec5d8[_0x3bff94(0x127)])??[],_0x49e54f=(_0x3ec5d8==null?void 0x0:_0x3ec5d8[_0x3bff94(0x167)])??_0x19bbe2,_0x544212=_0x19a930(_0x3ec5d8?_0x16b63c[_0x3bff94(0x13b)](_0x3beffe=>!_0x48884e[_0x3bff94(0x118)](_0x29c087=>_0x29c087['id']===_0x3beffe['id'])):_0x16b63c,_0x49e54f,{'maxIndex':_0x36f168});if(!_0x544212['valid'])return _0x4c9329[_0x3bff94(0x13a)](_0x9be8a4)[_0x3bff94(0xf4)]({'reason':_0x544212['reason']??_0x3bff94(0x189),'commandId':_0x952f6a['id'],'unitId':_0x5a397c,'subUnitId':_0x13f4b1,'axis':_0x2ccbe1[_0x3bff94(0x187)],'outlineId':_0x49e54f['id']}),!0x1;let _0x541770=[..._0x48884e[_0x3bff94(0x108)](_0x4ae106=>({'id':_0x3bdced['id'],'params':{'unitId':_0x5a397c,'subUnitId':_0x13f4b1,'outlineId':_0x4ae106['id']}})),{'id':_0x1f2a85['id'],'params':{'unitId':_0x5a397c,'subUnitId':_0x13f4b1,'outline':_0x49e54f}}],_0xdc3ef2=[{'id':_0x3bdced['id'],'params':{'unitId':_0x5a397c,'subUnitId':_0x13f4b1,'outlineId':_0x49e54f['id']}},..._0x48884e[_0x3bff94(0x108)](_0x420a79=>({'id':_0x1f2a85['id'],'params':{'unitId':_0x5a397c,'subUnitId':_0x13f4b1,'outline':_0x420a79}}))];return(0x0,_0x1bfc8b[_0x3bff94(0x11b)])(_0x541770,_0x4c9329[_0x3bff94(0x13a)](_0x1bfc8b[_0x3bff94(0x12d)]))[_0x3bff94(0x10b)]?(_0x4c9329[_0x3bff94(0x13a)](_0x1bfc8b[_0x3bff94(0x102)])[_0x3bff94(0x17b)]({'unitID':_0x5a397c,'undoMutations':_0xdc3ef2,'redoMutations':_0x541770}),!0x0):!0x1;}},_0x5997ef={'id':'sheet.mutation.clear-dimension-outlines','type':_0x1bfc8b[_0x40b04a(0xc6)]['MUTATION'],'handler':(_0xa999fb,_0x40423f)=>{const _0x2bdc74=_0x40b04a;let _0x78f657=_0xa999fb['get'](_0x59094b),_0x568c51=_0x78f657[_0x2bdc74(0x16d)](_0x40423f['unitId'],_0x40423f[_0x2bdc74(0x18a)]);return _0x78f657[_0x2bdc74(0x15e)](_0x40423f[_0x2bdc74(0x123)],_0x40423f[_0x2bdc74(0x18a)],_0x48a8f5(_0x568c51,_0x40423f)),!0x0;}},_0x4ea615={'id':_0x40b04a(0xce),'type':_0x1bfc8b['CommandType'][_0x40b04a(0x18f)],'handler':(_0x2986e8,_0x324cac)=>{const _0x1f8b8d=_0x40b04a;if(!_0x324cac)return!0x1;let _0x3b6d1c=(0x0,_0x1349f0['getSheetCommandTarget'])(_0x2986e8[_0x1f8b8d(0x13a)](_0x1bfc8b[_0x1f8b8d(0xd6)]),_0x324cac);if(!_0x3b6d1c)return!0x1;let {unitId:_0x33864c,subUnitId:_0x356877}=_0x3b6d1c;if(!_0x253bf1(_0x2986e8,_0x33864c,_0x356877))return!0x1;let _0x33bd11={'unitId':_0x33864c,'subUnitId':_0x356877,'axis':_0x324cac['axis'],'start':_0x324cac['start'],'end':_0x324cac[_0x1f8b8d(0xed)]},_0x32d99d=_0x2986e8['get'](_0x59094b)[_0x1f8b8d(0x16d)](_0x33864c,_0x356877)[_0x1f8b8d(0x13b)](_0x4bbf3d=>_0x35aadb(_0x4bbf3d,_0x33bd11)&&_0x4bbf3d[_0x1f8b8d(0x145)]>=_0x324cac['start']&&_0x4bbf3d[_0x1f8b8d(0xed)]<=_0x324cac[_0x1f8b8d(0xed)]);if(_0x32d99d[_0x1f8b8d(0xff)]===0x0)return _0x2986e8[_0x1f8b8d(0x13a)](_0x9be8a4)[_0x1f8b8d(0xf4)]({'reason':_0x1f8b8d(0x139),'commandId':_0x4ea615['id'],'unitId':_0x33864c,'subUnitId':_0x356877,'axis':_0x324cac[_0x1f8b8d(0x187)]}),!0x1;let _0x3f0ace=[{'id':_0x5997ef['id'],'params':{..._0x33bd11,'removedOutlineIds':_0x32d99d[_0x1f8b8d(0x108)](_0x5fcd=>_0x5fcd['id'])}}],_0x267936=_0x32d99d[_0x1f8b8d(0x108)](_0x1b6412=>({'id':_0x1f2a85['id'],'params':{'unitId':_0x33864c,'subUnitId':_0x356877,'outline':_0x1b6412}}));return(0x0,_0x1bfc8b[_0x1f8b8d(0x11b)])(_0x3f0ace,_0x2986e8[_0x1f8b8d(0x13a)](_0x1bfc8b['ICommandService']))['result']?(_0x2986e8['get'](_0x1bfc8b[_0x1f8b8d(0x102)])['pushUndoRedo']({'unitID':_0x33864c,'undoMutations':_0x267936,'redoMutations':_0x3f0ace}),!0x0):!0x1;}},_0x8a92d1={'id':_0x40b04a(0x144),'type':_0x1bfc8b[_0x40b04a(0xc6)]['COMMAND'],'handler':(_0x5a91cf,_0x2b49b5)=>{const _0x361831=_0x40b04a;if(!_0x2b49b5)return!0x1;let _0x426cfc=(0x0,_0x1349f0[_0x361831(0xfc)])(_0x5a91cf[_0x361831(0x13a)](_0x1bfc8b[_0x361831(0xd6)]),_0x2b49b5);if(!_0x426cfc)return!0x1;let {unitId:_0x573d70,subUnitId:_0x53f1fc}=_0x426cfc;if(!_0x253bf1(_0x5a91cf,_0x573d70,_0x53f1fc))return!0x1;let _0x1b3af0=_0x5a91cf['get'](_0x59094b)[_0x361831(0x16d)](_0x573d70,_0x53f1fc)[_0x361831(0xc3)](_0x181833=>_0x181833['id']===_0x2b49b5[_0x361831(0x178)]);if(!_0x1b3af0)return!0x1;let _0x377e04=[{'id':_0x3bdced['id'],'params':{'unitId':_0x573d70,'subUnitId':_0x53f1fc,'outlineId':_0x1b3af0['id'],'outline':_0x1b3af0}}],_0x471e6b=[{'id':_0x1f2a85['id'],'params':{'unitId':_0x573d70,'subUnitId':_0x53f1fc,'outline':_0x1b3af0}}];return(0x0,_0x1bfc8b[_0x361831(0x11b)])(_0x377e04,_0x5a91cf[_0x361831(0x13a)](_0x1bfc8b[_0x361831(0x12d)]))['result']?(_0x5a91cf[_0x361831(0x13a)](_0x1bfc8b[_0x361831(0x102)])[_0x361831(0x17b)]({'unitID':_0x573d70,'undoMutations':_0x471e6b,'redoMutations':_0x377e04}),!0x0):!0x1;}},_0x362a2c={'id':_0x40b04a(0xd8),'type':_0x1bfc8b['CommandType'][_0x40b04a(0x120)],'handler':(_0x4e8654,_0x4fc459)=>{const _0x4ffa95=_0x40b04a;let _0x177c80=_0x4e8654[_0x4ffa95(0x13a)](_0x59094b),_0x3e6ce0=_0x177c80[_0x4ffa95(0x16d)](_0x4fc459[_0x4ffa95(0x123)],_0x4fc459[_0x4ffa95(0x18a)]),_0x4224d8=_0x3e6ce0[_0x4ffa95(0xc3)](_0x5d5eab=>_0x5d5eab['id']===_0x4fc459[_0x4ffa95(0x178)]);return _0x4224d8&&_0x177c80[_0x4ffa95(0x15e)](_0x4fc459[_0x4ffa95(0x123)],_0x4fc459['subUnitId'],_0x3e6ce0[_0x4ffa95(0x108)](_0x4f0bd1=>_0x4f0bd1[_0x4ffa95(0x123)]!==_0x4224d8[_0x4ffa95(0x123)]||_0x4f0bd1['subUnitId']!==_0x4224d8[_0x4ffa95(0x18a)]||_0x4f0bd1[_0x4ffa95(0x187)]!==_0x4224d8[_0x4ffa95(0x187)]||_0x4f0bd1[_0x4ffa95(0x145)]!==_0x4224d8[_0x4ffa95(0x145)]||_0x4f0bd1[_0x4ffa95(0xed)]!==_0x4224d8[_0x4ffa95(0xed)]?_0x4f0bd1:{..._0x4f0bd1,'collapsed':_0x4fc459[_0x4ffa95(0x13d)]})),!0x0;}};function _0x15e9b8(_0x5e3d12,_0x110310,_0x3662d4,_0x5b1493){const _0x13ec86=_0x40b04a;return _0x5e3d12===_0x13ec86(0xe8)?{'startRow':_0x110310,'endRow':_0x3662d4,'startColumn':0x0,'endColumn':_0x5b1493['getMaxColumns']()-0x1}:{'startRow':0x0,'endRow':_0x5b1493[_0x13ec86(0xd4)]()-0x1,'startColumn':_0x110310,'endColumn':_0x3662d4};}function _0x4fabeb(_0x5dd6b6){const _0x30bd4a=_0x40b04a;return _0x5dd6b6===_0x30bd4a(0xe8)?_0x1349f0['SetRowHiddenMutation']['id']:_0x1349f0[_0x30bd4a(0xdc)]['id'];}function _0x45014b(_0x15c4a9){const _0x58cf88=_0x40b04a;return _0x15c4a9===_0x58cf88(0xe8)?_0x1349f0[_0x58cf88(0x113)]['id']:_0x1349f0['SetColVisibleMutation']['id'];}function _0x2076f0(_0xd881cf,_0x36d453,_0x3b579b,_0x12062f){const _0x5e896d=_0x40b04a;let _0x4f6448=_0x36d453?[_0x15e9b8(_0xd881cf['axis'],_0xd881cf[_0x5e896d(0x145)],_0xd881cf['end'],_0x3b579b)]:_0x5e97cf(_0xd881cf,_0x12062f,_0x3b579b),_0x499033=_0x36d453?_0x4fabeb(_0xd881cf['axis']):_0x45014b(_0xd881cf[_0x5e896d(0x187)]);return[{'id':_0x362a2c['id'],'params':{'unitId':_0xd881cf[_0x5e896d(0x123)],'subUnitId':_0xd881cf[_0x5e896d(0x18a)],'outlineId':_0xd881cf['id'],'outline':_0xd881cf,'collapsed':_0x36d453}},..._0x4f6448['map'](_0x323ebc=>({'id':_0x499033,'params':{'unitId':_0xd881cf[_0x5e896d(0x123)],'subUnitId':_0xd881cf[_0x5e896d(0x18a)],'ranges':[_0x323ebc],'dimensionOutlineId':_0xd881cf['id']}}))];}function _0x5e97cf(_0x107d4a,_0x41576b,_0x277536){const _0x24cb1d=_0x40b04a;let _0x172042=_0x4d2898(_0x41576b['map'](_0x5983f3=>_0x1ee330(_0x5983f3,_0x107d4a)?{..._0x5983f3,'collapsed':!0x1}:_0x5983f3),_0x107d4a[_0x24cb1d(0x123)],_0x107d4a[_0x24cb1d(0x18a)],_0x107d4a['axis']);return _0x1e434c({'start':_0x107d4a[_0x24cb1d(0x145)],'end':_0x107d4a[_0x24cb1d(0xed)]},_0x172042)[_0x24cb1d(0x108)](_0x5cb5ef=>_0x15e9b8(_0x107d4a[_0x24cb1d(0x187)],_0x5cb5ef[_0x24cb1d(0x145)],_0x5cb5ef[_0x24cb1d(0xed)],_0x277536));}function _0x1ee330(_0x2b0be3,_0x59f616){const _0x95c9c9=_0x40b04a;return _0x2b0be3[_0x95c9c9(0x123)]===_0x59f616[_0x95c9c9(0x123)]&&_0x2b0be3['subUnitId']===_0x59f616['subUnitId']&&_0x2b0be3[_0x95c9c9(0x187)]===_0x59f616[_0x95c9c9(0x187)]&&_0x2b0be3[_0x95c9c9(0x145)]===_0x59f616[_0x95c9c9(0x145)]&&_0x2b0be3[_0x95c9c9(0xed)]===_0x59f616['end'];}function _0x1e434c(_0x450ec9,_0x250869){const _0x266f97=_0x40b04a;let _0x2706a2=_0x450ec9[_0x266f97(0x145)],_0x12118c=[];for(let _0x37b5f5 of _0x250869)if(!(_0x37b5f5[_0x266f97(0xed)]<_0x2706a2||_0x37b5f5[_0x266f97(0x145)]>_0x450ec9[_0x266f97(0xed)])&&(_0x37b5f5[_0x266f97(0x145)]>_0x2706a2&&_0x12118c[_0x266f97(0x136)]({'start':_0x2706a2,'end':Math[_0x266f97(0xe1)](_0x37b5f5[_0x266f97(0x145)]-0x1,_0x450ec9['end'])}),_0x2706a2=Math['max'](_0x2706a2,_0x37b5f5[_0x266f97(0xed)]+0x1),_0x2706a2>_0x450ec9[_0x266f97(0xed)]))break;return _0x2706a2<=_0x450ec9[_0x266f97(0xed)]&&_0x12118c[_0x266f97(0x136)]({'start':_0x2706a2,'end':_0x450ec9[_0x266f97(0xed)]}),_0x12118c;}let _0x1d728a={'id':_0x40b04a(0x192),'type':_0x1bfc8b[_0x40b04a(0xc6)][_0x40b04a(0x18f)],'handler':(_0xdb57c8,_0x59920e)=>{const _0x56d8d9=_0x40b04a;if(!_0x59920e)return!0x1;let _0x38d167=(0x0,_0x1349f0[_0x56d8d9(0xfc)])(_0xdb57c8[_0x56d8d9(0x13a)](_0x1bfc8b['IUniverInstanceService']),_0x59920e);if(!_0x38d167)return!0x1;let {unitId:_0x33e4f9,subUnitId:_0x46f976,worksheet:_0x39effd}=_0x38d167;if(!_0x253bf1(_0xdb57c8,_0x33e4f9,_0x46f976))return!0x1;let _0x448c03=_0xdb57c8['get'](_0x59094b)[_0x56d8d9(0x16d)](_0x33e4f9,_0x46f976),_0x39b3f3=_0x448c03[_0x56d8d9(0xc3)](_0x361d09=>_0x361d09['id']===_0x59920e[_0x56d8d9(0x178)]);if(!_0x39b3f3||_0x39b3f3[_0x56d8d9(0x13d)]===_0x59920e['collapsed'])return!0x1;let _0x4b027a=_0x2076f0(_0x39b3f3,_0x59920e[_0x56d8d9(0x13d)],_0x39effd,_0x448c03),_0x229255=_0x2076f0(_0x39b3f3,!_0x59920e[_0x56d8d9(0x13d)],_0x39effd,_0x448c03);return(0x0,_0x1bfc8b[_0x56d8d9(0x11b)])(_0x4b027a,_0xdb57c8['get'](_0x1bfc8b[_0x56d8d9(0x12d)]))[_0x56d8d9(0x10b)]?(_0xdb57c8[_0x56d8d9(0x13a)](_0x1bfc8b[_0x56d8d9(0x102)])[_0x56d8d9(0x17b)]({'unitID':_0x33e4f9,'undoMutations':_0x229255,'redoMutations':_0x4b027a}),!0x0):!0x1;}},_0x14effe={'id':_0x40b04a(0x114),'type':_0x1bfc8b[_0x40b04a(0xc6)][_0x40b04a(0x120)],'handler':(_0x3cc4c4,_0x220c2f)=>{const _0x5781bf=_0x40b04a;let _0x5a4ca2=_0x3cc4c4[_0x5781bf(0x13a)](_0x59094b),_0x48b639=_0x1c4915(_0x5a4ca2[_0x5781bf(0x16d)](_0x220c2f[_0x5781bf(0x123)],_0x220c2f[_0x5781bf(0x18a)]),_0x220c2f);return _0x5a4ca2[_0x5781bf(0x15e)](_0x220c2f[_0x5781bf(0x123)],_0x220c2f[_0x5781bf(0x18a)],_0x48b639),!0x0;}};function _0x1c4915(_0x5671fd,_0x3963ab){const _0x33036f=_0x40b04a;switch(_0x3963ab[_0x33036f(0x163)]){case _0x33036f(0x119):return _0x3963ab[_0x33036f(0x171)]?_0x338819(_0x5671fd,_0x3963ab):_0x3ddb88(_0x5671fd,_0x3963ab);case _0x33036f(0xdf):return _0x1fbe99(_0x5671fd,_0x3963ab);case _0x33036f(0x166):return _0x5322fd(_0x5671fd,_0x3963ab);}}function _0x338819(_0x253939,_0x3f80bf){const _0x46c803=_0x40b04a;return[..._0x253939[_0x46c803(0x13b)](_0x37e564=>_0x37e564[_0x46c803(0x123)]!==_0x3f80bf[_0x46c803(0x123)]||_0x37e564[_0x46c803(0x18a)]!==_0x3f80bf[_0x46c803(0x18a)]||_0x37e564[_0x46c803(0x187)]!==_0x3f80bf[_0x46c803(0x187)]),..._0x3f80bf[_0x46c803(0x171)]];}let _0x4bb432='SHEET_OUTLINE_PLUGIN';var _0x125004=_0x40b04a(0x153),_0x87ade2=_0x40b04a(0x122);let _0x229e5b={};function _0x56eec0(_0x4d24b4,_0x5454be){return function(_0x2ff175,_0x3a0ca6){_0x5454be(_0x2ff175,_0x3a0ca6,_0x4d24b4);};}function _0xa2a049(_0x426a58,_0x4207ce,_0x310fcc,_0x2d3cec){const _0x231b96=_0x40b04a;var _0x18f1b8=arguments[_0x231b96(0xff)],_0x124c4c=_0x18f1b8<0x3?_0x4207ce:_0x2d3cec===null?_0x2d3cec=Object[_0x231b96(0x13c)](_0x4207ce,_0x310fcc):_0x2d3cec,_0x5ec86a;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x124c4c=Reflect[_0x231b96(0xec)](_0x426a58,_0x4207ce,_0x310fcc,_0x2d3cec);else{for(var _0xeb9ad=_0x426a58[_0x231b96(0xff)]-0x1;_0xeb9ad>=0x0;_0xeb9ad--)(_0x5ec86a=_0x426a58[_0xeb9ad])&&(_0x124c4c=(_0x18f1b8<0x3?_0x5ec86a(_0x124c4c):_0x18f1b8>0x3?_0x5ec86a(_0x4207ce,_0x310fcc,_0x124c4c):_0x5ec86a(_0x4207ce,_0x310fcc))||_0x124c4c);}return _0x18f1b8>0x3&&_0x124c4c&&Object[_0x231b96(0xca)](_0x4207ce,_0x310fcc,_0x124c4c),_0x124c4c;}let _0xa30acc={'redos':[],'undos':[],'preRedos':[],'preUndos':[]},_0x29865c=class extends _0x1bfc8b[_0x40b04a(0xee)]{constructor(_0x53427a,_0x5bf8b8,_0x56bfb1,_0x2826d1){const _0x271354=_0x40b04a;super(),this[_0x271354(0x138)]=_0x53427a,this[_0x271354(0x128)]=_0x5bf8b8,this[_0x271354(0xc0)]=_0x56bfb1,this[_0x271354(0xc7)]=_0x2826d1,this['_initCommandInterceptor']();}['_initCommandInterceptor'](){const _0xe03aea=_0x40b04a;this[_0xe03aea(0x150)](this[_0xe03aea(0x128)][_0xe03aea(0xc2)]({'getMutations':_0x2c23d0=>_0x57aaa0(_0x2c23d0,(_0x1d0279,_0x4eb70c)=>this['_sheetsOutlineModel']['getOutlines'](_0x1d0279,_0x4eb70c),this[_0xe03aea(0x12a)](_0x2c23d0[_0xe03aea(0xbe)]),_0x5ed494=>this[_0xe03aea(0xc7)][_0xe03aea(0xf4)](_0x5ed494))}));}[_0x40b04a(0x12a)](_0x327759){const _0x5b2c15=_0x40b04a;let _0x378a3e=_0x327759,_0x2c6436=_0x378a3e!=null&&_0x378a3e[_0x5b2c15(0x123)]?this[_0x5b2c15(0x138)][_0x5b2c15(0x101)](_0x378a3e[_0x5b2c15(0x123)],_0x1bfc8b['UniverInstanceType'][_0x5b2c15(0x169)]):this[_0x5b2c15(0x138)]['getCurrentUnitOfType'](_0x1bfc8b['UniverInstanceType'][_0x5b2c15(0x169)]);if(!_0x2c6436)return;let _0x2ffb63=_0x378a3e!=null&&_0x378a3e[_0x5b2c15(0x18a)]?_0x2c6436[_0x5b2c15(0x112)](_0x378a3e[_0x5b2c15(0x18a)]):_0x2c6436[_0x5b2c15(0xf7)]();if(_0x2ffb63)return{'unitId':_0x2c6436['getUnitId'](),'subUnitId':_0x2ffb63[_0x5b2c15(0x197)]()};}};_0x29865c=_0xa2a049([_0x56eec0(0x0,_0x1bfc8b[_0x40b04a(0xd6)]),_0x56eec0(0x1,(0x0,_0x1bfc8b[_0x40b04a(0x11e)])(_0x1349f0['SheetInterceptorService'])),_0x56eec0(0x2,(0x0,_0x1bfc8b[_0x40b04a(0x11e)])(_0x59094b)),_0x56eec0(0x3,(0x0,_0x1bfc8b[_0x40b04a(0x11e)])(_0x9be8a4))],_0x29865c);function _0x57aaa0(_0x21f244,_0x29a3ef,_0x2df5a5,_0x56b995){const _0x3c9a8f=_0x40b04a;let _0x63059b=_0x502ec1(_0x21f244,_0x2df5a5);if(!_0x63059b)return _0x36ec3d();let _0x50f4a0=_0x29a3ef(_0x63059b['unitId'],_0x63059b[_0x3c9a8f(0x18a)]);if(!_0x50f4a0['some'](_0x107e67=>_0x107e67[_0x3c9a8f(0x187)]===_0x63059b[_0x3c9a8f(0x187)]))return _0x36ec3d();_0x12fb68(_0x50f4a0,_0x63059b,_0x21f244['id'],_0x56b995);let _0x396144=_0x573634(_0x63059b,_0x50f4a0);return{'redos':[{'id':_0x14effe['id'],'params':_0x63059b}],'undos':[{'id':_0x14effe['id'],'params':_0x396144}],'preRedos':[],'preUndos':[]};}function _0x12fb68(_0x163de7,_0x4fe355,_0x437fa6,_0x20463d){const _0x251411=_0x40b04a;try{switch(_0x4fe355['type']){case'insert':_0x3ddb88(_0x163de7,_0x4fe355);break;case _0x251411(0xdf):_0x1fbe99(_0x163de7,_0x4fe355);break;case _0x251411(0x166):_0x5322fd(_0x163de7,_0x4fe355);}}catch(_0x3af097){throw _0x20463d==null||_0x20463d({'reason':_0x11b222(_0x3af097),'commandId':_0x437fa6,'unitId':_0x4fe355[_0x251411(0x123)],'subUnitId':_0x4fe355[_0x251411(0x18a)],'axis':_0x4fe355[_0x251411(0x187)],'outlineId':_0x272753(_0x3af097)}),new _0x1bfc8b[(_0x251411(0x100))](_0x3af097 instanceof Error?_0x3af097[_0x251411(0x141)]:_0x251411(0x193));}}function _0x502ec1(_0x6e6888,_0x55a612){const _0x5e2554=_0x40b04a;switch(_0x6e6888['id']){case _0x1349f0[_0x5e2554(0xf5)]['id']:return _0x3c9f13(_0x6e6888[_0x5e2554(0xbe)],_0x5e2554(0xe8),_0x55a612);case _0x1349f0[_0x5e2554(0xf6)]['id']:return _0x3c9f13(_0x6e6888[_0x5e2554(0xbe)],_0x5e2554(0x184),_0x55a612);case _0x1349f0['RemoveRowCommand']['id']:return _0x3df7b3(_0x6e6888[_0x5e2554(0xbe)],_0x5e2554(0xe8),_0x55a612);case _0x1349f0[_0x5e2554(0x15c)]['id']:return _0x3df7b3(_0x6e6888[_0x5e2554(0xbe)],_0x5e2554(0x184),_0x55a612);case _0x1349f0['MoveRowsCommand']['id']:return _0x24389b(_0x6e6888['params'],_0x5e2554(0xe8),_0x55a612);case _0x1349f0[_0x5e2554(0x185)]['id']:return _0x24389b(_0x6e6888[_0x5e2554(0xbe)],_0x5e2554(0x184),_0x55a612);default:return null;}}function _0x3c9f13(_0x29161c,_0x4abfcf,_0xa335ae){const _0x221364=_0x40b04a;let _0x43e2af=_0x8c7feb(_0x29161c,_0xa335ae);if(!(_0x29161c!=null&&_0x29161c[_0x221364(0xdd)])||!_0x43e2af)return null;let _0x46a100=_0x4abfcf===_0x221364(0xe8)?_0x29161c[_0x221364(0xdd)]['startRow']:_0x29161c[_0x221364(0xdd)][_0x221364(0x130)],_0x1ae18d=_0x4abfcf==='row'?_0x29161c['range'][_0x221364(0xd7)]:_0x29161c[_0x221364(0xdd)][_0x221364(0x160)];return{..._0x43e2af,'axis':_0x4abfcf,'type':_0x221364(0x119),'index':_0x46a100,'count':_0x1ae18d-_0x46a100+0x1};}function _0x3df7b3(_0x1731c7,_0x3ad028,_0x893b20){const _0x655b99=_0x40b04a;let _0x20f16f=_0x8c7feb(_0x1731c7,_0x893b20);if(!(_0x1731c7!=null&&_0x1731c7[_0x655b99(0xdd)])||!_0x20f16f)return null;let _0x2f7654=_0x3ad028===_0x655b99(0xe8)?_0x1731c7[_0x655b99(0xdd)][_0x655b99(0xe4)]:_0x1731c7[_0x655b99(0xdd)][_0x655b99(0x130)],_0x41f7ff=_0x3ad028===_0x655b99(0xe8)?_0x1731c7['range'][_0x655b99(0xd7)]:_0x1731c7[_0x655b99(0xdd)][_0x655b99(0x160)];return{..._0x20f16f,'axis':_0x3ad028,'type':_0x655b99(0xdf),'start':_0x2f7654,'end':_0x41f7ff};}function _0x24389b(_0x24a883,_0xc0ff28,_0x3c9915){const _0x19a9ca=_0x40b04a;let _0x4fa428=_0x8c7feb(_0x24a883,_0x3c9915);if(!(_0x24a883!=null&&_0x24a883['fromRange'])||!_0x24a883[_0x19a9ca(0x131)]||!_0x4fa428)return null;let _0x5c0540=_0xc0ff28===_0x19a9ca(0xe8)?_0x24a883[_0x19a9ca(0x177)][_0x19a9ca(0xe4)]:_0x24a883[_0x19a9ca(0x177)][_0x19a9ca(0x130)],_0x166fd8=_0xc0ff28===_0x19a9ca(0xe8)?_0x24a883['fromRange']['endRow']:_0x24a883[_0x19a9ca(0x177)]['endColumn'],_0x221555=_0xc0ff28==='row'?_0x24a883[_0x19a9ca(0x131)][_0x19a9ca(0xe4)]:_0x24a883[_0x19a9ca(0x131)]['startColumn'];return{..._0x4fa428,'axis':_0xc0ff28,'type':_0x19a9ca(0x166),'sourceStart':_0x5c0540,'sourceEnd':_0x166fd8,'destinationIndex':_0x221555};}function _0x573634(_0x4cc072,_0x46bcd4){const _0x51146f=_0x40b04a;switch(_0x4cc072[_0x51146f(0x163)]){case _0x51146f(0x119):return{'unitId':_0x4cc072[_0x51146f(0x123)],'subUnitId':_0x4cc072['subUnitId'],'axis':_0x4cc072['axis'],'type':'delete','start':_0x4cc072[_0x51146f(0x174)],'end':_0x4cc072[_0x51146f(0x174)]+_0x4cc072[_0x51146f(0x121)]-0x1};case _0x51146f(0xdf):return{'unitId':_0x4cc072[_0x51146f(0x123)],'subUnitId':_0x4cc072[_0x51146f(0x18a)],'axis':_0x4cc072['axis'],'type':_0x51146f(0x119),'index':_0x4cc072[_0x51146f(0x145)],'count':_0x4cc072['end']-_0x4cc072[_0x51146f(0x145)]+0x1,'restoreOutlines':_0x46bcd4['filter'](_0x1494d7=>_0x1494d7[_0x51146f(0x123)]===_0x4cc072['unitId']&&_0x1494d7[_0x51146f(0x18a)]===_0x4cc072[_0x51146f(0x18a)]&&_0x1494d7[_0x51146f(0x187)]===_0x4cc072['axis'])};case _0x51146f(0x166):return _0x210788(_0x4cc072);}}function _0x210788(_0x588139){const _0x191404=_0x40b04a;let _0xec0a80=_0x588139[_0x191404(0x12e)]-_0x588139['sourceStart']+0x1;return _0x588139[_0x191404(0x116)]>=_0x588139[_0x191404(0x13f)]&&_0x588139['destinationIndex']<=_0x588139['sourceEnd']+0x1?{..._0x588139}:_0x588139[_0x191404(0x116)]>_0x588139[_0x191404(0x12e)]+0x1?{..._0x588139,'sourceStart':_0x588139['destinationIndex']-_0xec0a80,'sourceEnd':_0x588139['destinationIndex']-0x1,'destinationIndex':_0x588139['sourceStart']}:{..._0x588139,'sourceStart':_0x588139[_0x191404(0x116)],'sourceEnd':_0x588139[_0x191404(0x116)]+_0xec0a80-0x1,'destinationIndex':_0x588139['sourceEnd']+0x1};}function _0x8c7feb(_0x50ab67,_0x19691e){const _0x5e0901=_0x40b04a;let _0x445550=(_0x50ab67==null?void 0x0:_0x50ab67[_0x5e0901(0x123)])??(_0x19691e==null?void 0x0:_0x19691e[_0x5e0901(0x123)]),_0x423a93=(_0x50ab67==null?void 0x0:_0x50ab67[_0x5e0901(0x18a)])??(_0x19691e==null?void 0x0:_0x19691e[_0x5e0901(0x18a)]);return _0x445550&&_0x423a93?{'unitId':_0x445550,'subUnitId':_0x423a93}:null;}function _0x36ec3d(){const _0x332f89=_0x40b04a;return{'redos':[..._0xa30acc[_0x332f89(0xc9)]],'undos':[..._0xa30acc[_0x332f89(0x10e)]],'preRedos':[..._0xa30acc['preRedos']??[]],'preUndos':[..._0xa30acc[_0x332f89(0x15a)]??[]]};}let _0x355c76=class extends _0x1bfc8b[_0x40b04a(0xee)]{constructor(_0x21c182,_0x3a631b){const _0x54f1b2=_0x40b04a;super(),this[_0x54f1b2(0xbf)]=_0x21c182,this['_sheetsOutlineModel']=_0x3a631b,this[_0x54f1b2(0xbd)]();}['_initResource'](){const _0x2d9f8a=_0x40b04a;this[_0x2d9f8a(0x150)](this[_0x2d9f8a(0xbf)][_0x2d9f8a(0x133)]({'pluginName':_0x4bb432,'businesses':[_0x1bfc8b[_0x2d9f8a(0x183)][_0x2d9f8a(0x169)]],'toJson':_0x2193d6=>JSON[_0x2d9f8a(0x15f)](this['_sheetsOutlineModel'][_0x2d9f8a(0x182)](_0x2193d6)),'parseJson':_0x1c814b=>JSON['parse'](_0x1c814b),'onLoad':(_0x22fb23,_0x5088d7)=>this['_sheetsOutlineModel'][_0x2d9f8a(0x129)](_0x22fb23,_0x5088d7),'onUnLoad':_0xc02c9d=>this['_sheetsOutlineModel'][_0x2d9f8a(0x10a)](_0xc02c9d)}));}};_0x355c76=_0xa2a049([_0x56eec0(0x0,_0x1bfc8b['IResourceManagerService']),_0x56eec0(0x1,(0x0,_0x1bfc8b['Inject'])(_0x59094b))],_0x355c76);let _0x410006=class extends _0x1bfc8b[_0x40b04a(0x134)]{constructor(_0x1f6635=_0x229e5b,_0x371dd5,_0x4a29ad,_0x1cacd9){const _0x531e6c=_0x40b04a;super(),this[_0x531e6c(0x149)]=_0x1f6635,this[_0x531e6c(0x104)]=_0x371dd5,this[_0x531e6c(0x17a)]=_0x4a29ad,this[_0x531e6c(0x191)]=_0x1cacd9;let {..._0x799e6e}=(0x0,_0x1bfc8b[_0x531e6c(0x17f)])({},_0x229e5b,this[_0x531e6c(0x149)]);this['_configService'][_0x531e6c(0x137)](_0x531e6c(0x199),_0x799e6e);}[_0x40b04a(0x186)](){const _0x39a511=_0x40b04a;this['_injector'][_0x39a511(0x110)]([_0x59094b]),this[_0x39a511(0x104)][_0x39a511(0x110)]([_0x9be8a4]),this[_0x39a511(0x104)][_0x39a511(0x110)]([_0x355c76]),this[_0x39a511(0x104)][_0x39a511(0x110)]([_0x29865c]),this[_0x39a511(0xc1)](),this[_0x39a511(0x104)][_0x39a511(0x13a)](_0x59094b),this['_injector'][_0x39a511(0x13a)](_0x9be8a4),this['_injector']['get'](_0x355c76),this[_0x39a511(0x104)][_0x39a511(0x13a)](_0x29865c);}[_0x40b04a(0xc1)](){const _0x4e1342=_0x40b04a;[_0x952f6a,_0x8a92d1,_0x1d728a,_0x4ea615]['forEach'](_0x3ec182=>{const _0x4b8973=_0x108c;this[_0x4b8973(0x150)](this[_0x4b8973(0x17a)][_0x4b8973(0x125)](_0x3ec182));}),[_0x1f2a85,_0x3bdced,_0x362a2c,_0x5997ef,_0x14effe][_0x4e1342(0x164)](_0x47e210=>{const _0x116238=_0x4e1342;this[_0x116238(0x150)](this[_0x116238(0x17a)][_0x116238(0x125)](_0x47e210));});}};_0x365a78(_0x410006,_0x40b04a(0xcf),_0x4bb432),_0x365a78(_0x410006,_0x40b04a(0x176),_0x125004),_0x365a78(_0x410006,_0x40b04a(0x111),_0x87ade2),_0x365a78(_0x410006,_0x40b04a(0x163),_0x1bfc8b['UniverInstanceType'][_0x40b04a(0x169)]),_0x410006=_0xa2a049([(0x0,_0x1bfc8b[_0x40b04a(0x190)])(_0x2da048['UniverLicensePlugin'],_0x1349f0[_0x40b04a(0x11c)]),_0x56eec0(0x1,(0x0,_0x1bfc8b[_0x40b04a(0x11e)])(_0x1bfc8b['Injector'])),_0x56eec0(0x2,_0x1bfc8b[_0x40b04a(0x12d)]),_0x56eec0(0x3,_0x1bfc8b['IConfigService'])],_0x410006),_0x548ebf[_0x40b04a(0x181)]=_0x952f6a,_0x548ebf[_0x40b04a(0xe0)]=_0x1f2a85,_0x548ebf[_0x40b04a(0xc8)]=_0x4ea615,_0x548ebf[_0x40b04a(0x158)]=_0x5997ef,_0x548ebf[_0x40b04a(0x175)]=_0x59ce2c,_0x548ebf[_0x40b04a(0x146)]=_0x31de7f,_0x548ebf[_0x40b04a(0x162)]=_0x8a92d1,_0x548ebf[_0x40b04a(0xeb)]=_0x3bdced,_0x548ebf['SHEET_OUTLINE_PLUGIN']=_0x4bb432,_0x548ebf['SetDimensionOutlineCollapsedCommand']=_0x1d728a,_0x548ebf[_0x40b04a(0x16c)]=_0x362a2c,_0x548ebf[_0x40b04a(0xd2)]=_0x9be8a4,_0x548ebf['SheetsOutlineModel']=_0x59094b,_0x548ebf[_0x40b04a(0xdb)]=_0x14effe,Object[_0x40b04a(0xca)](_0x548ebf,_0x40b04a(0x196),{'enumerable':!0x0,'get':function(){return _0x410006;}}),_0x548ebf[_0x40b04a(0xf3)]=_0x2a6a78,_0x548ebf[_0x40b04a(0x180)]=_0x19a930,_0x548ebf['getDimensionOutlineViewPermission$']=_0x1ccc12,_0x548ebf[_0x40b04a(0x19a)]=_0x253bf1,_0x548ebf[_0x40b04a(0x115)]=_0x1fbe99,_0x548ebf[_0x40b04a(0xe9)]=_0x3ddb88,_0x548ebf['transformOutlinesByMove']=_0x5322fd;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-outline",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Dimension outline model integration for Univer Sheets.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
"rxjs": ">=7.0.0"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@univerjs-pro/license": "1.0.
|
|
65
|
-
"@univerjs/core": "1.0.
|
|
66
|
-
"@univerjs/sheets": "1.0.
|
|
64
|
+
"@univerjs-pro/license": "1.0.2",
|
|
65
|
+
"@univerjs/core": "1.0.2",
|
|
66
|
+
"@univerjs/sheets": "1.0.2"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@univerjs-infra/shared": "1.0.
|
|
69
|
+
"@univerjs-infra/shared": "1.0.2",
|
|
70
70
|
"rxjs": "7.8.2",
|
|
71
71
|
"typescript": "^6.0.3",
|
|
72
72
|
"vitest": "^5.0.0"
|