@univerjs-pro/sheets-outline 1.0.0-alpha.8 → 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x190f75=_0x50df;(function(_0x52de3d,_0x45790c){var _0x27018d=_0x50df,_0x2dc4ca=_0x52de3d();while(!![]){try{var _0xee0c36=-parseInt(_0x27018d(0x1a7))/0x1+-parseInt(_0x27018d(0x1ae))/0x2+parseInt(_0x27018d(0x1b3))/0x3*(-parseInt(_0x27018d(0x1bc))/0x4)+parseInt(_0x27018d(0x1aa))/0x5*(-parseInt(_0x27018d(0x1a8))/0x6)+-parseInt(_0x27018d(0x1a1))/0x7*(parseInt(_0x27018d(0x1b1))/0x8)+parseInt(_0x27018d(0x1a0))/0x9+-parseInt(_0x27018d(0x1a4))/0xa*(-parseInt(_0x27018d(0x1a6))/0xb);if(_0xee0c36===_0x45790c)break;else _0x2dc4ca['push'](_0x2dc4ca['shift']());}catch(_0x1b3896){_0x2dc4ca['push'](_0x2dc4ca['shift']());}}}(_0x4c0a,0x87150));let e=require('@univerjs-pro/sheets-outline'),t=require('@univerjs/core/facade'),n=require('@univerjs/sheets/facade');var r=class extends t[_0x190f75(0x1b5)]{get[_0x190f75(0x1b6)](){var _0x274879=_0x190f75;return e[_0x274879(0x1b6)];}get[_0x190f75(0x1b2)](){var _0x48596e=_0x190f75;return e[_0x48596e(0x1b2)];}};t[_0x190f75(0x1b5)][_0x190f75(0x1b4)](r);var i=class extends n['FWorksheet']{[_0x190f75(0x1ab)](_0x286633,_0x65e481){var _0x396fc5=_0x190f75;return this[_0x396fc5(0x1b8)](e['DimensionOutlineAxis'][_0x396fc5(0x1ad)],_0x286633,_0x65e481);}[_0x190f75(0x1bf)](_0x530d07,_0x3e315d){var _0xb46d97=_0x190f75;return this[_0xb46d97(0x1b8)](e['DimensionOutlineAxis']['COLUMN'],_0x530d07,_0x3e315d);}['removeDimensionOutline'](_0x33096c){var _0x2d3146=_0x190f75;return this['_commandService']['syncExecuteCommand'](e['RemoveDimensionOutlineCommand']['id'],{'unitId':this[_0x2d3146(0x1b7)][_0x2d3146(0x1a3)](),'subUnitId':this['_worksheet'][_0x2d3146(0x1af)](),'outlineId':_0x33096c}),this;}[_0x190f75(0x1bd)](_0x3760d2,_0x118127){var _0x948e8d=_0x190f75;return this[_0x948e8d(0x19e)]['syncExecuteCommand'](e[_0x948e8d(0x1b0)]['id'],{'unitId':this[_0x948e8d(0x1b7)][_0x948e8d(0x1a3)](),'subUnitId':this[_0x948e8d(0x1a9)][_0x948e8d(0x1af)](),'outlineId':_0x3760d2,'collapsed':_0x118127}),this;}[_0x190f75(0x1a5)](_0x5cec71,_0x3056e8,_0x4aa35d){var _0x49afa0=_0x190f75;return this[_0x49afa0(0x19e)][_0x49afa0(0x19d)](e[_0x49afa0(0x19c)]['id'],{'unitId':this[_0x49afa0(0x1b7)][_0x49afa0(0x1a3)](),'subUnitId':this[_0x49afa0(0x1a9)]['getSheetId'](),'axis':_0x5cec71,'start':_0x3056e8,'end':_0x4aa35d}),this;}[_0x190f75(0x1bb)](_0x21bb7d){var _0x535324=_0x190f75;let _0x31ba21=this[_0x535324(0x1a2)][_0x535324(0x19f)](e[_0x535324(0x1b9)])['getOutlines'](this[_0x535324(0x1b7)][_0x535324(0x1a3)](),this[_0x535324(0x1a9)][_0x535324(0x1af)]());return _0x21bb7d?_0x31ba21[_0x535324(0x1ba)](_0x2029bf=>_0x2029bf[_0x535324(0x1ac)]===_0x21bb7d):_0x31ba21;}[_0x190f75(0x1b8)](_0x2cac44,_0x4980c2,_0x41bf2c){var _0x1262dc=_0x190f75;return this[_0x1262dc(0x19e)]['syncExecuteCommand'](e['AddDimensionOutlineCommand']['id'],{'unitId':this[_0x1262dc(0x1b7)]['getUnitId'](),'subUnitId':this[_0x1262dc(0x1a9)]['getSheetId'](),'axis':_0x2cac44,'start':_0x4980c2,'end':_0x4980c2+_0x41bf2c-0x1}),this;}};function _0x4c0a(){var _0x19e80f=['axis','ROW','1911018nUmwUk','getSheetId','SetDimensionOutlineCollapsedCommand','224184zKizdM','DimensionOutlineErrorReason','4974RfUarX','extend','FEnum','DimensionOutlineAxis','_workbook','_addDimensionOutline','SheetsOutlineModel','filter','getDimensionOutlines','356KDdcrF','setDimensionOutlineCollapsed','FWorksheet','addColumnOutline','ClearDimensionOutlinesCommand','syncExecuteCommand','_commandService','get','4992237hXanpk','70raeYmo','_injector','getUnitId','10RMZPGB','clearDimensionOutlines','25026133cSonLy','671724MmFtNs','18wqItPa','_worksheet','369125ZbPzAV','addRowOutline'];_0x4c0a=function(){return _0x19e80f;};return _0x4c0a();}function _0x50df(_0x2cd061,_0x1e2f0c){_0x2cd061=_0x2cd061-0x19c;var _0x4c0a4b=_0x4c0a();var _0x50dfbf=_0x4c0a4b[_0x2cd061];return _0x50dfbf;}n[_0x190f75(0x1be)][_0x190f75(0x1b4)](i);
1
+ var _0x107add=_0x2b5e;(function(_0x2be839,_0x360c50){var _0x1f9c1c=_0x2b5e,_0x571a30=_0x2be839();while(!![]){try{var _0x5ecb11=parseInt(_0x1f9c1c(0x7a))/0x1*(parseInt(_0x1f9c1c(0x77))/0x2)+-parseInt(_0x1f9c1c(0x7d))/0x3*(-parseInt(_0x1f9c1c(0x88))/0x4)+parseInt(_0x1f9c1c(0x74))/0x5*(parseInt(_0x1f9c1c(0x89))/0x6)+-parseInt(_0x1f9c1c(0x73))/0x7+parseInt(_0x1f9c1c(0x6f))/0x8*(-parseInt(_0x1f9c1c(0x81))/0x9)+parseInt(_0x1f9c1c(0x8e))/0xa+parseInt(_0x1f9c1c(0x7f))/0xb*(-parseInt(_0x1f9c1c(0x85))/0xc);if(_0x5ecb11===_0x360c50)break;else _0x571a30['push'](_0x571a30['shift']());}catch(_0x97bf79){_0x571a30['push'](_0x571a30['shift']());}}}(_0x24f2,0x18bd4));let e=require('@univerjs-pro/sheets-outline'),t=require('@univerjs/core/facade'),n=require('@univerjs/sheets/facade');var r=class extends t[_0x107add(0x92)]{get[_0x107add(0x8d)](){var _0x19e28d=_0x107add;return e[_0x19e28d(0x8d)];}get[_0x107add(0x86)](){var _0x51b0c9=_0x107add;return e[_0x51b0c9(0x86)];}};function _0x2b5e(_0x1186f4,_0x59de73){_0x1186f4=_0x1186f4-0x6d;var _0x24f207=_0x24f2();var _0x2b5e4f=_0x24f207[_0x1186f4];return _0x2b5e4f;}t['FEnum'][_0x107add(0x91)](r);var i=class extends n[_0x107add(0x6e)]{[_0x107add(0x90)](_0xb0c80d,_0x423354){var _0x1a1411=_0x107add;return this[_0x1a1411(0x78)](e['DimensionOutlineAxis']['ROW'],_0xb0c80d,_0x423354);}['addColumnOutline'](_0x453090,_0x34cac6){var _0x203c4b=_0x107add;return this[_0x203c4b(0x78)](e[_0x203c4b(0x8d)]['COLUMN'],_0x453090,_0x34cac6);}[_0x107add(0x84)](_0x5b885a){var _0x3b523f=_0x107add;return this['_commandService'][_0x3b523f(0x70)](e[_0x3b523f(0x7e)]['id'],{'unitId':this[_0x3b523f(0x83)][_0x3b523f(0x75)](),'subUnitId':this[_0x3b523f(0x8f)][_0x3b523f(0x87)](),'outlineId':_0x5b885a}),this;}[_0x107add(0x7c)](_0x486a5d,_0x1b1ace){var _0x3908a7=_0x107add;return this[_0x3908a7(0x8c)][_0x3908a7(0x70)](e[_0x3908a7(0x71)]['id'],{'unitId':this[_0x3908a7(0x83)][_0x3908a7(0x75)](),'subUnitId':this[_0x3908a7(0x8f)]['getSheetId'](),'outlineId':_0x486a5d,'collapsed':_0x1b1ace}),this;}[_0x107add(0x8b)](_0x45e489,_0x1811d5,_0x50e203){var _0x52b7e5=_0x107add;return this['_commandService'][_0x52b7e5(0x70)](e[_0x52b7e5(0x8a)]['id'],{'unitId':this[_0x52b7e5(0x83)]['getUnitId'](),'subUnitId':this[_0x52b7e5(0x8f)][_0x52b7e5(0x87)](),'axis':_0x45e489,'start':_0x1811d5,'end':_0x50e203}),this;}['getDimensionOutlines'](_0x34daa2){var _0x25471b=_0x107add;let _0x3d20bf=this[_0x25471b(0x72)][_0x25471b(0x7b)](e[_0x25471b(0x80)])[_0x25471b(0x79)](this[_0x25471b(0x83)][_0x25471b(0x75)](),this[_0x25471b(0x8f)][_0x25471b(0x87)]());return _0x34daa2?_0x3d20bf[_0x25471b(0x6d)](_0x5090d1=>_0x5090d1[_0x25471b(0x76)]===_0x34daa2):_0x3d20bf;}[_0x107add(0x78)](_0x441eb6,_0x1c0073,_0x15e8e2){var _0x2b4d32=_0x107add;return this['_commandService'][_0x2b4d32(0x70)](e[_0x2b4d32(0x82)]['id'],{'unitId':this[_0x2b4d32(0x83)][_0x2b4d32(0x75)](),'subUnitId':this['_worksheet'][_0x2b4d32(0x87)](),'axis':_0x441eb6,'start':_0x1c0073,'end':_0x1c0073+_0x15e8e2-0x1}),this;}};function _0x24f2(){var _0x1935c3=['get','setDimensionOutlineCollapsed','2904HMBXmG','RemoveDimensionOutlineCommand','11pLnXtj','SheetsOutlineModel','10620CRrGTR','AddDimensionOutlineCommand','_workbook','removeDimensionOutline','1645632LJhlWr','DimensionOutlineErrorReason','getSheetId','284IJVMac','6KoCPCo','ClearDimensionOutlinesCommand','clearDimensionOutlines','_commandService','DimensionOutlineAxis','1539650NbVGUH','_worksheet','addRowOutline','extend','FEnum','filter','FWorksheet','304vHiKHN','syncExecuteCommand','SetDimensionOutlineCollapsedCommand','_injector','768551PDeKmh','342385nbiMqO','getUnitId','axis','3342KIsCFv','_addDimensionOutline','getOutlines','61DgvjVO'];_0x24f2=function(){return _0x1935c3;};return _0x24f2();}n['FWorksheet'][_0x107add(0x91)](i);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x44bb9a=_0x1484;(function(_0x504cc2,_0x55f200){const _0x370a3a=_0x1484,_0xa5dc7a=_0x504cc2();while(!![]){try{const _0x269e96=-parseInt(_0x370a3a(0x92))/0x1+-parseInt(_0x370a3a(0xc4))/0x2+parseInt(_0x370a3a(0x132))/0x3*(parseInt(_0x370a3a(0xde))/0x4)+-parseInt(_0x370a3a(0x12b))/0x5+parseInt(_0x370a3a(0xc2))/0x6*(-parseInt(_0x370a3a(0xd7))/0x7)+-parseInt(_0x370a3a(0xa4))/0x8+parseInt(_0x370a3a(0x88))/0x9;if(_0x269e96===_0x55f200)break;else _0xa5dc7a['push'](_0xa5dc7a['shift']());}catch(_0x58a549){_0xa5dc7a['push'](_0xa5dc7a['shift']());}}}(_0x1ff4,0x39867),Object[_0x44bb9a(0x117)](exports,Symbol[_0x44bb9a(0xb4)],{'value':_0x44bb9a(0x112)}));let e=require('@univerjs/core'),t=require('@univerjs/sheets'),n=require('rxjs'),r=require('rxjs/operators'),i=require('@univerjs-pro/license'),a=function(_0x49ca18){const _0x3b002e=_0x44bb9a;return _0x49ca18['ROW']=_0x3b002e(0x93),_0x49ca18[_0x3b002e(0xec)]=_0x3b002e(0xc1),_0x49ca18;}({}),o=function(_0x6ddd09){const _0x56b0f6=_0x44bb9a;return _0x6ddd09[_0x56b0f6(0xbf)]=_0x56b0f6(0xa7),_0x6ddd09[_0x56b0f6(0x145)]='out-of-bounds',_0x6ddd09['CROSSING']=_0x56b0f6(0x10b),_0x6ddd09['MAX_DEPTH']=_0x56b0f6(0x11a),_0x6ddd09[_0x56b0f6(0x90)]='move-splits-outline',_0x6ddd09[_0x56b0f6(0xed)]=_0x56b0f6(0xd6),_0x6ddd09[_0x56b0f6(0x131)]='unknown',_0x6ddd09;}({});var s=class extends Error{constructor(_0x38ccef,_0x431b0a,_0x3e8c8e){const _0x4e3b4b=_0x44bb9a;super(_0x431b0a),this['reason']=_0x38ccef,this[_0x4e3b4b(0xe8)]=_0x3e8c8e,this[_0x4e3b4b(0x99)]=_0x4e3b4b(0x106);}};function c(_0x16528e){const _0xb91afa=_0x44bb9a;return _0x16528e instanceof s?_0x16528e[_0xb91afa(0x122)]:_0x16528e instanceof Error?_0x16528e[_0xb91afa(0x7e)]['includes']('split\x20dimension\x20outline')?_0xb91afa(0x130):_0x16528e[_0xb91afa(0x7e)][_0xb91afa(0xf8)]('depth')?_0xb91afa(0x11a):_0x16528e[_0xb91afa(0x7e)][_0xb91afa(0xf8)](_0xb91afa(0x115))?_0xb91afa(0x10b):_0x16528e[_0xb91afa(0x7e)][_0xb91afa(0xf8)](_0xb91afa(0x142))?_0xb91afa(0xa7):_0xb91afa(0xaa):_0xb91afa(0xaa);}function l(_0x82433){const _0x1a9dd1=_0x44bb9a;return _0x82433 instanceof s?_0x82433[_0x1a9dd1(0xe8)]:void 0x0;}const u=0x2**0x35-0x1;function d(_0x104d8c,_0x20f0b2){const _0x385513=_0x44bb9a;return _0x104d8c['unitId']===_0x20f0b2[_0x385513(0x11b)]&&_0x104d8c[_0x385513(0x102)]===_0x20f0b2[_0x385513(0x102)]&&_0x104d8c[_0x385513(0xdc)]===_0x20f0b2[_0x385513(0xdc)];}function f(_0x2f7909,_0x25dc24={}){const _0x5095cc=_0x44bb9a;var _0x5f514a;let _0x3ed340=(_0x5f514a=_0x25dc24[_0x5095cc(0xf5)])==null?0x8:_0x5f514a,_0xa410b5=new Map();for(let _0x552962 of _0x2f7909){let _0x351b00=_0x552962[_0x5095cc(0x11b)]+':'+_0x552962['subUnitId']+':'+_0x552962[_0x5095cc(0xdc)],_0x34ac99=_0xa410b5['get'](_0x351b00);_0x34ac99?_0x34ac99[_0x5095cc(0x12f)](_0x552962):_0xa410b5[_0x5095cc(0x8c)](_0x351b00,[_0x552962]);}let _0x450833=[];for(let _0x38372d of _0xa410b5['values']()){let _0x3f5b03=[..._0x38372d][_0x5095cc(0xda)](C),_0x412a3d=[];for(let _0x506a92 of _0x3f5b03){for(oe(_0x506a92);_0x412a3d['length']>0x0&&_0x506a92[_0x5095cc(0xe5)]>_0x412a3d[_0x412a3d[_0x5095cc(0xb9)]-0x1]['end'];)_0x412a3d['pop']();let _0x5774f7=_0x412a3d[_0x412a3d[_0x5095cc(0xb9)]-0x1];if(_0x5774f7&&_0x506a92[_0x5095cc(0x94)]>_0x5774f7[_0x5095cc(0x94)])throw new s('crossing',_0x5095cc(0x13c),_0x506a92['id']);let _0x46eda6=_0x5774f7?_0x5774f7['depth']+0x1:0x1;if(_0x46eda6>_0x3ed340)throw new s(_0x5095cc(0x11a),_0x5095cc(0xdb)+_0x3ed340,_0x506a92['id']);let _0x9af2aa={..._0x506a92,'depth':_0x46eda6,'parentId':_0x5774f7==null?void 0x0:_0x5774f7['id'],'anchor':_0x506a92[_0x5095cc(0x94)],'children':[]};_0x5774f7?_0x5774f7[_0x5095cc(0xcc)][_0x5095cc(0x12f)](_0x9af2aa):_0x450833[_0x5095cc(0x12f)](_0x9af2aa),_0x412a3d[_0x5095cc(0x12f)](_0x9af2aa);}}return _0x450833;}function p(_0x48a4ab,_0x4364d3,_0x23a387={}){const _0x57f9f2=_0x44bb9a;if(_0x4364d3[_0x57f9f2(0xe5)]<0x0||_0x4364d3['start']>_0x4364d3[_0x57f9f2(0x94)])return{'valid':!0x1,'reason':'invalid-range'};if(_0x23a387[_0x57f9f2(0x139)]!=null&&_0x4364d3[_0x57f9f2(0x94)]>=_0x23a387[_0x57f9f2(0x139)])return{'valid':!0x1,'reason':_0x57f9f2(0x9c)};let _0x23a144=_0x48a4ab[_0x57f9f2(0x84)](_0x21443c=>d(_0x21443c,_0x4364d3));for(let _0x4778f6 of _0x23a144)if(se(_0x4778f6,_0x4364d3))return{'valid':!0x1,'reason':_0x57f9f2(0x10b)};try{f([..._0x48a4ab,_0x4364d3],_0x23a387);}catch(_0x464d40){let _0x4ba89c=c(_0x464d40);return _0x4ba89c===_0x57f9f2(0x11a)?{'valid':!0x1,'reason':'max-depth'}:_0x4ba89c===_0x57f9f2(0xa7)?{'valid':!0x1,'reason':_0x57f9f2(0xa7)}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function m(_0x55fd4b,_0x1955c1,_0xd425d5={}){const _0x10e3a9=_0x44bb9a;let _0x5c490f=p(_0x55fd4b,_0x1955c1,_0xd425d5);if(!_0x5c490f['valid']){var _0x90c1fd;throw Error((_0x90c1fd=_0x5c490f['reason'])==null?_0x10e3a9(0x11f):_0x90c1fd);}return[..._0x55fd4b,_0x1955c1];}function ee(_0x20735d,_0x56d992){const _0x414f70=_0x44bb9a;let _0x41b539=_0x56d992[_0x414f70(0xe5)],_0x7d342c=_0x56d992[_0x414f70(0x94)],_0x59b996=[],_0x32b7dc=!0x0;for(;_0x32b7dc;){_0x32b7dc=!0x1;for(let _0x13f234 of _0x20735d)_0x59b996[_0x414f70(0xf8)](_0x13f234)||!d(_0x13f234,_0x56d992)||!ie(_0x13f234[_0x414f70(0xe5)],_0x13f234[_0x414f70(0x94)],_0x41b539,_0x7d342c)||(_0x59b996[_0x414f70(0x12f)](_0x13f234),_0x41b539=Math[_0x414f70(0x140)](_0x41b539,_0x13f234[_0x414f70(0xe5)]),_0x7d342c=Math['max'](_0x7d342c,_0x13f234['end']),_0x32b7dc=!0x0);}if(_0x59b996['length']===0x0)return null;let [_0x28f309]=[..._0x59b996]['sort'](C);return{'mergedOutline':{..._0x28f309,'start':_0x41b539,'end':_0x7d342c},'mergedOutlines':_0x59b996};}function h(_0x45d258,_0x16d0c3){const _0x503941=_0x44bb9a;return _0x45d258[_0x503941(0x84)](_0x484bc4=>!d(_0x484bc4,_0x16d0c3)||!(_0x484bc4[_0x503941(0xe5)]>=_0x16d0c3[_0x503941(0xe5)]&&_0x484bc4[_0x503941(0x94)]<=_0x16d0c3[_0x503941(0x94)]));}function g(_0x1bd536,_0x15c231,_0x50540a,_0x2de046){const _0x376cff=_0x44bb9a;return _(_0x1bd536[_0x376cff(0x84)](_0x3d4e99=>_0x3d4e99[_0x376cff(0x11b)]===_0x15c231&&_0x3d4e99['subUnitId']===_0x50540a&&_0x3d4e99[_0x376cff(0xdc)]===_0x2de046&&_0x3d4e99[_0x376cff(0xfd)])['map'](_0x2cd32a=>({'start':_0x2cd32a[_0x376cff(0xe5)],'end':_0x2cd32a[_0x376cff(0x94)]})));}function _(_0x574000){const _0x150b9d=_0x44bb9a;if(_0x574000[_0x150b9d(0xb9)]===0x0)return[];let _0x244bd2=[..._0x574000][_0x150b9d(0xda)]((_0x2ab469,_0x5cd9e0)=>_0x2ab469[_0x150b9d(0xe5)]-_0x5cd9e0[_0x150b9d(0xe5)]||_0x2ab469[_0x150b9d(0x94)]-_0x5cd9e0[_0x150b9d(0x94)]),_0x238071=[];for(let _0x10ef5b of _0x244bd2){let _0x52364f=_0x238071[_0x238071['length']-0x1];!_0x52364f||_0x10ef5b[_0x150b9d(0xe5)]>_0x52364f['end']+0x1?_0x238071[_0x150b9d(0x12f)]({..._0x10ef5b}):_0x52364f[_0x150b9d(0x94)]=Math[_0x150b9d(0x9b)](_0x52364f['end'],_0x10ef5b[_0x150b9d(0x94)]);}return _0x238071;}function v(_0xe7eac7,_0xd17f88){const _0x16c46e=_0x44bb9a;return _0xd17f88[_0x16c46e(0x9e)]<=0x0?_0xe7eac7:S(_0xe7eac7[_0x16c46e(0x109)](_0x54e7b2=>d(_0x54e7b2,_0xd17f88)?_0xd17f88[_0x16c46e(0x147)]<=_0x54e7b2[_0x16c46e(0xe5)]?{..._0x54e7b2,'start':_0x54e7b2['start']+_0xd17f88[_0x16c46e(0x9e)],'end':_0x54e7b2[_0x16c46e(0x94)]+_0xd17f88[_0x16c46e(0x9e)]}:_0x54e7b2['start']<_0xd17f88[_0x16c46e(0x147)]&&_0xd17f88[_0x16c46e(0x147)]<=_0x54e7b2[_0x16c46e(0x94)]?{..._0x54e7b2,'end':_0x54e7b2[_0x16c46e(0x94)]+_0xd17f88[_0x16c46e(0x9e)]}:_0x54e7b2:_0x54e7b2));}function y(_0x6dce27,_0x485ce9){const _0x19aa4f=_0x44bb9a;if(_0x485ce9[_0x19aa4f(0xe5)]>_0x485ce9[_0x19aa4f(0x94)])return _0x6dce27;let _0x1420ee=_0x485ce9[_0x19aa4f(0x94)]-_0x485ce9[_0x19aa4f(0xe5)]+0x1,_0x34911e=[];for(let _0x24e8a9 of _0x6dce27){if(!d(_0x24e8a9,_0x485ce9)){_0x34911e[_0x19aa4f(0x12f)](_0x24e8a9);continue;}if(_0x24e8a9[_0x19aa4f(0x94)]<_0x485ce9[_0x19aa4f(0xe5)]){_0x34911e['push'](_0x24e8a9);continue;}if(_0x24e8a9[_0x19aa4f(0xe5)]>_0x485ce9['end']){_0x34911e[_0x19aa4f(0x12f)]({..._0x24e8a9,'start':_0x24e8a9[_0x19aa4f(0xe5)]-_0x1420ee,'end':_0x24e8a9[_0x19aa4f(0x94)]-_0x1420ee});continue;}let _0x50476b=Math['max'](_0x24e8a9[_0x19aa4f(0xe5)],_0x485ce9['start']),_0x46cce6=Math[_0x19aa4f(0x140)](_0x24e8a9[_0x19aa4f(0x94)],_0x485ce9[_0x19aa4f(0x94)]),_0x4e2282=Math[_0x19aa4f(0x9b)](0x0,_0x46cce6-_0x50476b+0x1),_0x44f80d=_0x24e8a9['end']-_0x24e8a9['start']+0x1-_0x4e2282;if(_0x44f80d<=0x0)continue;let _0x42ffca=_0x24e8a9[_0x19aa4f(0xe5)]<_0x485ce9[_0x19aa4f(0xe5)]?_0x24e8a9['start']:_0x485ce9[_0x19aa4f(0xe5)];_0x34911e[_0x19aa4f(0x12f)]({..._0x24e8a9,'start':_0x42ffca,'end':_0x42ffca+_0x44f80d-0x1});}return S(_0x34911e);}function b(_0x1c5b00,_0x2ba326){const _0x188427=_0x44bb9a;if(_0x2ba326[_0x188427(0xa2)]>_0x2ba326[_0x188427(0x138)])return _0x1c5b00;let _0x5af7a3=[];for(let _0x46ae7c of _0x1c5b00){if(!d(_0x46ae7c,_0x2ba326)){_0x5af7a3[_0x188427(0x12f)](_0x46ae7c);continue;}let _0x41097b=x(_0x46ae7c,_0x2ba326);if(_0x41097b[_0x188427(0x103)]==='split')throw new s(_0x188427(0x130),'Move\x20would\x20split\x20dimension\x20outline:\x20'+_0x46ae7c['id'],_0x46ae7c['id']);_0x5af7a3['push'](_0x41097b[_0x188427(0x137)]);}return S(_0x5af7a3);}function x(_0x2f4f64,_0x71aefa){const _0x1e75a1=_0x44bb9a;let _0x2c5009=te(_0x71aefa[_0x1e75a1(0xa2)],_0x71aefa[_0x1e75a1(0x138)]+0x1,_0x71aefa['destinationIndex']),_0x20a21f=[],_0x21a2cc={'start':_0x2f4f64[_0x1e75a1(0xe5)],'end':_0x2f4f64['end']+0x1};for(let _0xb4832d of _0x2c5009){let _0x1bdf57=ne(_0x21a2cc,_0xb4832d[_0x1e75a1(0x142)]);_0x1bdf57&&_0x20a21f['push']({'start':_0x1bdf57[_0x1e75a1(0xe5)]+_0xb4832d[_0x1e75a1(0xb7)],'end':_0x1bdf57[_0x1e75a1(0x94)]+_0xb4832d['offset']});}let _0x33e397=re(_0x20a21f);return _0x33e397[_0x1e75a1(0xb9)]===0x1?{'type':'ok','outline':{..._0x2f4f64,'start':_0x33e397[0x0]['start'],'end':_0x33e397[0x0][_0x1e75a1(0x94)]-0x1}}:{'type':_0x1e75a1(0x95),'outline':_0x2f4f64,'ranges':_0x33e397};}function te(_0x7f971f,_0x3172c6,_0x5a74a4){const _0x32091f=_0x44bb9a;let _0x125df6=_0x3172c6-_0x7f971f;if(_0x125df6<=0x0)throw Error(_0x32091f(0x10e));return _0x5a74a4>=_0x7f971f&&_0x5a74a4<=_0x3172c6?[{'range':{'start':0x0,'end':u},'offset':0x0}]:_0x5a74a4<_0x7f971f?[{'range':{'start':0x0,'end':_0x5a74a4},'offset':0x0},{'range':{'start':_0x5a74a4,'end':_0x7f971f},'offset':_0x125df6},{'range':{'start':_0x7f971f,'end':_0x3172c6},'offset':_0x5a74a4-_0x7f971f},{'range':{'start':_0x3172c6,'end':u},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x7f971f},'offset':0x0},{'range':{'start':_0x7f971f,'end':_0x3172c6},'offset':_0x5a74a4-_0x3172c6},{'range':{'start':_0x3172c6,'end':_0x5a74a4},'offset':-_0x125df6},{'range':{'start':_0x5a74a4,'end':u},'offset':0x0}];}function ne(_0x46b926,_0x40bc8e){const _0x2d7922=_0x44bb9a;let _0x385cb3=Math['max'](_0x46b926[_0x2d7922(0xe5)],_0x40bc8e['start']),_0x2c65bf=Math[_0x2d7922(0x140)](_0x46b926[_0x2d7922(0x94)],_0x40bc8e[_0x2d7922(0x94)]);return _0x385cb3>=_0x2c65bf?null:{'start':_0x385cb3,'end':_0x2c65bf};}function re(_0x39e8bb){const _0x18e497=_0x44bb9a;if(_0x39e8bb[_0x18e497(0xb9)]===0x0)return[];let _0x166f36=[..._0x39e8bb][_0x18e497(0xda)]((_0x4cd042,_0x2203ef)=>_0x4cd042[_0x18e497(0xe5)]-_0x2203ef[_0x18e497(0xe5)]||_0x4cd042[_0x18e497(0x94)]-_0x2203ef[_0x18e497(0x94)]),_0x353a5b=[];for(let _0x26ef24 of _0x166f36){let _0x4d0e0e=_0x353a5b[_0x353a5b[_0x18e497(0xb9)]-0x1];!_0x4d0e0e||_0x26ef24[_0x18e497(0xe5)]>_0x4d0e0e[_0x18e497(0x94)]?_0x353a5b['push']({..._0x26ef24}):_0x4d0e0e['end']=Math[_0x18e497(0x9b)](_0x4d0e0e[_0x18e497(0x94)],_0x26ef24[_0x18e497(0x94)]);}return _0x353a5b;}function ie(_0x3dbd43,_0x144850,_0x435974,_0x2e41df){return _0x144850+0x1===_0x435974||_0x2e41df+0x1===_0x3dbd43;}function S(_0x5e04be){let _0x1d8f7e=ae(_0x5e04be);return f(_0x1d8f7e),_0x1d8f7e;}function ae(_0x195223){const _0x59c88d=_0x44bb9a;let _0xc1fb9f=new Map();for(let _0x11c0b9 of _0x195223){let _0x324540=[_0x11c0b9[_0x59c88d(0x11b)],_0x11c0b9['subUnitId'],_0x11c0b9[_0x59c88d(0xdc)],_0x11c0b9['start'],_0x11c0b9[_0x59c88d(0x94)]][_0x59c88d(0xfe)](':'),_0x19897d=_0xc1fb9f[_0x59c88d(0xa5)](_0x324540);if(!_0x19897d){_0xc1fb9f[_0x59c88d(0x8c)](_0x324540,_0x11c0b9);continue;}_0xc1fb9f['set'](_0x324540,{..._0x19897d,'collapsed':_0x19897d['collapsed']||_0x11c0b9['collapsed']});}return Array[_0x59c88d(0xbc)](_0xc1fb9f[_0x59c88d(0xb1)]());}function C(_0x25636c,_0x508dca){const _0x14b9cd=_0x44bb9a;return _0x25636c[_0x14b9cd(0x11b)]===_0x508dca['unitId']?_0x25636c[_0x14b9cd(0x102)]===_0x508dca[_0x14b9cd(0x102)]?_0x25636c[_0x14b9cd(0xdc)]===_0x508dca[_0x14b9cd(0xdc)]?_0x25636c[_0x14b9cd(0xe5)]===_0x508dca[_0x14b9cd(0xe5)]?_0x508dca[_0x14b9cd(0x94)]-_0x25636c[_0x14b9cd(0x94)]:_0x25636c['start']-_0x508dca[_0x14b9cd(0xe5)]:_0x25636c[_0x14b9cd(0xdc)][_0x14b9cd(0x11e)](_0x508dca[_0x14b9cd(0xdc)]):_0x25636c[_0x14b9cd(0x102)][_0x14b9cd(0x11e)](_0x508dca['subUnitId']):_0x25636c[_0x14b9cd(0x11b)][_0x14b9cd(0x11e)](_0x508dca[_0x14b9cd(0x11b)]);}function oe(_0x2b6ab9){const _0x5cbe1c=_0x44bb9a;if(_0x2b6ab9[_0x5cbe1c(0xe5)]>_0x2b6ab9['end'])throw new s(_0x5cbe1c(0xa7),_0x5cbe1c(0x9d),_0x2b6ab9['id']);}function se(_0x15cc50,_0x220644){const _0x510a8d=_0x44bb9a;let _0x188f99=_0x15cc50[_0x510a8d(0xe5)]<=_0x220644['end']&&_0x220644['start']<=_0x15cc50[_0x510a8d(0x94)],_0x1ae8ae=_0x15cc50[_0x510a8d(0xe5)]<=_0x220644['start']&&_0x220644[_0x510a8d(0x94)]<=_0x15cc50[_0x510a8d(0x94)],_0x5e0f9c=_0x220644[_0x510a8d(0xe5)]<=_0x15cc50[_0x510a8d(0xe5)]&&_0x15cc50[_0x510a8d(0x94)]<=_0x220644['end'];return _0x188f99&&!_0x1ae8ae&&!_0x5e0f9c;}function w(_0x4eef60){'@babel/helpers - typeof';const _0x94535d=_0x44bb9a;return w=typeof Symbol==_0x94535d(0xc5)&&typeof Symbol[_0x94535d(0x111)]==_0x94535d(0xf7)?function(_0x52a5f8){return typeof _0x52a5f8;}:function(_0x1ed1e9){const _0x4ac041=_0x94535d;return _0x1ed1e9&&typeof Symbol==_0x4ac041(0xc5)&&_0x1ed1e9[_0x4ac041(0x100)]===Symbol&&_0x1ed1e9!==Symbol['prototype']?_0x4ac041(0xf7):typeof _0x1ed1e9;},w(_0x4eef60);}function ce(_0x27cf00,_0x111dd8){const _0xbb10d7=_0x44bb9a;if(w(_0x27cf00)!=_0xbb10d7(0xa8)||!_0x27cf00)return _0x27cf00;var _0x16b1f0=_0x27cf00[Symbol[_0xbb10d7(0xf1)]];if(_0x16b1f0!==void 0x0){var _0x48536e=_0x16b1f0['call'](_0x27cf00,_0x111dd8||_0xbb10d7(0xfb));if(w(_0x48536e)!='object')return _0x48536e;throw TypeError(_0xbb10d7(0xbe));}return(_0x111dd8===_0xbb10d7(0xd4)?String:Number)(_0x27cf00);}function _0x1484(_0x114b57,_0x14ab44){_0x114b57=_0x114b57-0x7a;const _0x1ff4b1=_0x1ff4();let _0x148465=_0x1ff4b1[_0x114b57];return _0x148465;}function le(_0x104948){const _0x7a2ddc=_0x44bb9a;var _0x5ef399=ce(_0x104948,_0x7a2ddc(0xd4));return w(_0x5ef399)==_0x7a2ddc(0xf7)?_0x5ef399:_0x5ef399+'';}function T(_0x1d282f,_0x381ff8,_0x334a67){const _0x4c4dc6=_0x44bb9a;return(_0x381ff8=le(_0x381ff8))in _0x1d282f?Object[_0x4c4dc6(0x117)](_0x1d282f,_0x381ff8,{'value':_0x334a67,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1d282f[_0x381ff8]=_0x334a67,_0x1d282f;}var E=class extends e[_0x44bb9a(0x10f)]{constructor(..._0x4ad2cd){const _0xab81c1=_0x44bb9a;super(..._0x4ad2cd),T(this,_0xab81c1(0xd5),new Map()),T(this,_0xab81c1(0x124),new n[(_0xab81c1(0x123))]()),T(this,_0xab81c1(0xc9),this[_0xab81c1(0x124)][_0xab81c1(0x108)]());}[_0x44bb9a(0xf4)](_0x32267b,_0x1b9a01){const _0x46b4cf=_0x44bb9a;var _0x271093,_0x332119;return[...(_0x271093=(_0x332119=this['_outlines'][_0x46b4cf(0xa5)](_0x32267b))==null?void 0x0:_0x332119[_0x46b4cf(0xa5)](_0x1b9a01))==null?[]:_0x271093];}['getUnitOutlines'](_0x702344){const _0x5ecdfa=_0x44bb9a;let _0xcf64e4=this[_0x5ecdfa(0xd5)][_0x5ecdfa(0xa5)](_0x702344),_0x31dcf5=new Map();return _0xcf64e4==null||_0xcf64e4[_0x5ecdfa(0xc0)]((_0x2a8b94,_0x2685bd)=>{const _0x359b6d=_0x5ecdfa;_0x31dcf5[_0x359b6d(0x8c)](_0x2685bd,[..._0x2a8b94]);}),_0x31dcf5;}['setOutlines'](_0x382efb,_0x5c4165,_0x2d1af3){const _0x2d7010=_0x44bb9a;this[_0x2d7010(0xc3)](_0x382efb)[_0x2d7010(0x8c)](_0x5c4165,[..._0x2d1af3]),this[_0x2d7010(0x124)][_0x2d7010(0xab)]({'unitId':_0x382efb,'subUnitId':_0x5c4165});}[_0x44bb9a(0x114)](_0x3b07c0){const _0x427285=_0x44bb9a;this[_0x427285(0xd5)][_0x427285(0x113)](_0x3b07c0),this['_change$'][_0x427285(0xab)]({'unitId':_0x3b07c0});}[_0x44bb9a(0x8a)](_0x522548){const _0x559c7d=_0x44bb9a;let _0x3eee53=this['_outlines'][_0x559c7d(0xa5)](_0x522548),_0x5441a3={};return _0x3eee53==null||_0x3eee53[_0x559c7d(0xc0)]((_0x571946,_0x59e7d3)=>{_0x5441a3[_0x59e7d3]={'outlineList':[..._0x571946]};}),_0x5441a3;}[_0x44bb9a(0xd3)](_0x2356c5,_0x3140f4){const _0x16c96f=_0x44bb9a;let _0x25ce5e=new Map();Object[_0x16c96f(0xf9)](_0x3140f4)[_0x16c96f(0xc0)](([_0x58708a,_0x593a6b])=>{const _0x54d6ed=_0x16c96f;var _0x38eff9;_0x25ce5e['set'](_0x58708a,[...(_0x38eff9=_0x593a6b[_0x54d6ed(0x8f)])==null?[]:_0x38eff9]);}),this[_0x16c96f(0xd5)][_0x16c96f(0x8c)](_0x2356c5,_0x25ce5e),this[_0x16c96f(0x124)][_0x16c96f(0xab)]({'unitId':_0x2356c5});}[_0x44bb9a(0xac)](){const _0xf5a82=_0x44bb9a;super[_0xf5a82(0xac)](),this[_0xf5a82(0xd5)]['clear'](),this['_change$'][_0xf5a82(0x10a)]();}[_0x44bb9a(0xc3)](_0x23f94e){const _0xc061ca=_0x44bb9a;let _0x6114af=this[_0xc061ca(0xd5)][_0xc061ca(0xa5)](_0x23f94e);return _0x6114af||(_0x6114af=new Map(),this['_outlines'][_0xc061ca(0x8c)](_0x23f94e,_0x6114af)),_0x6114af;}},D=class extends e['Disposable']{constructor(..._0x57f17e){const _0xd9bb79=_0x44bb9a;super(..._0x57f17e),T(this,'_error$',new n[(_0xd9bb79(0x123))]()),T(this,_0xd9bb79(0xc8),this[_0xd9bb79(0xd0)][_0xd9bb79(0x108)]());}[_0x44bb9a(0xe0)](_0x446b68){const _0x3b60d2=_0x44bb9a;this['_error$'][_0x3b60d2(0xab)](_0x446b68);}[_0x44bb9a(0xac)](){const _0x59cd69=_0x44bb9a;super['dispose'](),this[_0x59cd69(0xd0)][_0x59cd69(0x10a)]();}};const O={'id':'sheet.mutation.add-dimension-outline','type':e[_0x44bb9a(0xe2)]['MUTATION'],'handler':(_0x435376,_0x94efeb)=>{const _0x2020e7=_0x44bb9a;let _0x77352f=_0x435376['get'](E),_0xb26b2b=_0x77352f[_0x2020e7(0xf4)](_0x94efeb['unitId'],_0x94efeb['subUnitId']);return _0x77352f[_0x2020e7(0x8d)](_0x94efeb[_0x2020e7(0x11b)],_0x94efeb[_0x2020e7(0x102)],m(_0xb26b2b,_0x94efeb[_0x2020e7(0x137)])),!0x0;}},k={'id':'sheet.mutation.remove-dimension-outline','type':e[_0x44bb9a(0xe2)][_0x44bb9a(0xb6)],'handler':(_0x53eb2c,_0x32a6db)=>{const _0x1e493f=_0x44bb9a;let _0x87df56=_0x53eb2c[_0x1e493f(0xa5)](E),_0x5ea4c7=_0x87df56[_0x1e493f(0xf4)](_0x32a6db['unitId'],_0x32a6db[_0x1e493f(0x102)]);return _0x87df56[_0x1e493f(0x8d)](_0x32a6db[_0x1e493f(0x11b)],_0x32a6db[_0x1e493f(0x102)],_0x5ea4c7[_0x1e493f(0x84)](_0xe2a700=>_0xe2a700['id']!==_0x32a6db[_0x1e493f(0xe8)])),!0x0;}};function A(_0x240e15,_0xdd4a99,_0x5c7f00){const _0x2a6be1=_0x44bb9a;let _0x4d2d30=de(_0x240e15);return!_0x4d2d30||_0x4d2d30[_0x2a6be1(0x129)]({'workbookTypes':[t[_0x2a6be1(0x119)]],'worksheetTypes':[t['WorksheetViewPermission']]},_0xdd4a99,_0x5c7f00);}function ue(_0x3a015f,_0x6f1f5c,_0x4cad0c){const _0x39aae9=_0x44bb9a;var _0x453de6;let _0x654379=fe(_0x3a015f);return((_0x453de6=_0x654379==null?void 0x0:_0x654379[_0x39aae9(0xf3)])==null?(0x0,n['of'])(null):_0x453de6)['pipe']((0x0,r[_0x39aae9(0x118)])(0x64),(0x0,r[_0x39aae9(0x146)])(null),(0x0,r['map'])(()=>A(_0x3a015f,_0x6f1f5c,_0x4cad0c)));}function de(_0xf1d709){const _0x3eac75=_0x44bb9a;if(typeof _0xf1d709[_0x3eac75(0x116)]==_0x3eac75(0xc5)&&!_0xf1d709['has'](t['SheetPermissionCheckController']))return null;try{return _0xf1d709[_0x3eac75(0xa5)](t[_0x3eac75(0x7a)]);}catch{return null;}}function fe(_0x23cdb6){const _0x5e4c68=_0x44bb9a;if(typeof _0x23cdb6['has']==_0x5e4c68(0xc5)&&!_0x23cdb6[_0x5e4c68(0x116)](e[_0x5e4c68(0xbb)]))return null;try{return _0x23cdb6['get'](e[_0x5e4c68(0xbb)]);}catch{return null;}}const j={'id':'sheet.command.add-dimension-outline','type':e[_0x44bb9a(0xe2)][_0x44bb9a(0x125)],'handler':(_0x3c090d,_0x51a921)=>{const _0x164587=_0x44bb9a;var _0x4f4709,_0x22f5b9;if(!_0x51a921)return!0x1;let _0x512d1b=(0x0,t[_0x164587(0xdd)])(_0x3c090d[_0x164587(0xa5)](e['IUniverInstanceService']),_0x51a921);if(!_0x512d1b)return!0x1;let {unitId:_0x2a745a,subUnitId:_0x3e07f1,worksheet:_0xc7901f}=_0x512d1b;if(!A(_0x3c090d,_0x2a745a,_0x3e07f1))return!0x1;let _0x3a5d10=_0x3c090d[_0x164587(0xa5)](E),_0x2db17a={'id':_0x164587(0xaf)+(0x0,e[_0x164587(0x128)])(0x6),'unitId':_0x2a745a,'subUnitId':_0x3e07f1,'axis':_0x51a921[_0x164587(0xdc)],'start':_0x51a921[_0x164587(0xe5)],'end':_0x51a921[_0x164587(0x94)],'collapsed':!0x1},_0x3eddb5=_0x51a921[_0x164587(0xdc)]===_0x164587(0x93)?_0xc7901f['getRowCount']():_0xc7901f['getColumnCount'](),_0x2d3c96=_0x3a5d10[_0x164587(0xf4)](_0x2a745a,_0x3e07f1),_0x2c9fbe=ee(_0x2d3c96,_0x2db17a),_0x55aef2=(_0x4f4709=_0x2c9fbe==null?void 0x0:_0x2c9fbe[_0x164587(0x120)])==null?[]:_0x4f4709,_0x16f8ce=(_0x22f5b9=_0x2c9fbe==null?void 0x0:_0x2c9fbe[_0x164587(0xf6)])==null?_0x2db17a:_0x22f5b9,_0x22bd6d=p(_0x2c9fbe?_0x2d3c96[_0x164587(0x84)](_0x2c8726=>!_0x55aef2[_0x164587(0x91)](_0x3593ac=>_0x3593ac['id']===_0x2c8726['id'])):_0x2d3c96,_0x16f8ce,{'maxIndex':_0x3eddb5});if(!_0x22bd6d[_0x164587(0x97)]){var _0xd32b05;return _0x3c090d[_0x164587(0xa5)](D)[_0x164587(0xe0)]({'reason':(_0xd32b05=_0x22bd6d['reason'])==null?_0x164587(0xaa):_0xd32b05,'commandId':j['id'],'unitId':_0x2a745a,'subUnitId':_0x3e07f1,'axis':_0x51a921[_0x164587(0xdc)],'outlineId':_0x16f8ce['id']}),!0x1;}let _0xc53062=[..._0x55aef2[_0x164587(0x109)](_0x167f40=>({'id':k['id'],'params':{'unitId':_0x2a745a,'subUnitId':_0x3e07f1,'outlineId':_0x167f40['id']}})),{'id':O['id'],'params':{'unitId':_0x2a745a,'subUnitId':_0x3e07f1,'outline':_0x16f8ce}}],_0x2d7f9a=[{'id':k['id'],'params':{'unitId':_0x2a745a,'subUnitId':_0x3e07f1,'outlineId':_0x16f8ce['id']}},..._0x55aef2['map'](_0x2ef030=>({'id':O['id'],'params':{'unitId':_0x2a745a,'subUnitId':_0x3e07f1,'outline':_0x2ef030}}))];return(0x0,e[_0x164587(0x96)])(_0xc53062,_0x3c090d['get'](e[_0x164587(0xeb)]))[_0x164587(0xcd)]?(_0x3c090d[_0x164587(0xa5)](e[_0x164587(0xef)])[_0x164587(0xe9)]({'unitID':_0x2a745a,'undoMutations':_0x2d7f9a,'redoMutations':_0xc53062}),!0x0):!0x1;}},M={'id':_0x44bb9a(0xe1),'type':e[_0x44bb9a(0xe2)][_0x44bb9a(0xb6)],'handler':(_0x371322,_0xe2e48f)=>{const _0xc8442b=_0x44bb9a;let _0x53a8d7=_0x371322['get'](E),_0x449e27=_0x53a8d7[_0xc8442b(0xf4)](_0xe2e48f[_0xc8442b(0x11b)],_0xe2e48f['subUnitId']);return _0x53a8d7[_0xc8442b(0x8d)](_0xe2e48f[_0xc8442b(0x11b)],_0xe2e48f[_0xc8442b(0x102)],h(_0x449e27,_0xe2e48f)),!0x0;}},N={'id':_0x44bb9a(0x7d),'type':e[_0x44bb9a(0xe2)]['COMMAND'],'handler':(_0x327282,_0x1d5e97)=>{const _0x2afcf6=_0x44bb9a;if(!_0x1d5e97)return!0x1;let _0xdb2d75=(0x0,t[_0x2afcf6(0xdd)])(_0x327282['get'](e[_0x2afcf6(0x13d)]),_0x1d5e97);if(!_0xdb2d75)return!0x1;let {unitId:_0x1071bb,subUnitId:_0x493062}=_0xdb2d75;if(!A(_0x327282,_0x1071bb,_0x493062))return!0x1;let _0x1ba377={'unitId':_0x1071bb,'subUnitId':_0x493062,'axis':_0x1d5e97[_0x2afcf6(0xdc)],'start':_0x1d5e97[_0x2afcf6(0xe5)],'end':_0x1d5e97['end']},_0x32510b=_0x327282['get'](E)[_0x2afcf6(0xf4)](_0x1071bb,_0x493062)[_0x2afcf6(0x84)](_0x2c7619=>d(_0x2c7619,_0x1ba377)&&_0x2c7619[_0x2afcf6(0xe5)]>=_0x1d5e97[_0x2afcf6(0xe5)]&&_0x2c7619[_0x2afcf6(0x94)]<=_0x1d5e97[_0x2afcf6(0x94)]);if(_0x32510b[_0x2afcf6(0xb9)]===0x0)return _0x327282['get'](D)['emit']({'reason':_0x2afcf6(0xd6),'commandId':N['id'],'unitId':_0x1071bb,'subUnitId':_0x493062,'axis':_0x1d5e97[_0x2afcf6(0xdc)]}),!0x1;let _0x2b5929=[{'id':M['id'],'params':{..._0x1ba377,'removedOutlineIds':_0x32510b['map'](_0x109e72=>_0x109e72['id'])}}],_0x318a49=_0x32510b['map'](_0xe2ed3a=>({'id':O['id'],'params':{'unitId':_0x1071bb,'subUnitId':_0x493062,'outline':_0xe2ed3a}}));return(0x0,e[_0x2afcf6(0x96)])(_0x2b5929,_0x327282[_0x2afcf6(0xa5)](e['ICommandService']))[_0x2afcf6(0xcd)]?(_0x327282[_0x2afcf6(0xa5)](e[_0x2afcf6(0xef)])[_0x2afcf6(0xe9)]({'unitID':_0x1071bb,'undoMutations':_0x318a49,'redoMutations':_0x2b5929}),!0x0):!0x1;}},P={'id':'sheet.command.remove-dimension-outline','type':e[_0x44bb9a(0xe2)][_0x44bb9a(0x125)],'handler':(_0xf22a34,_0x39aada)=>{const _0x46076b=_0x44bb9a;if(!_0x39aada)return!0x1;let _0x377664=(0x0,t[_0x46076b(0xdd)])(_0xf22a34[_0x46076b(0xa5)](e[_0x46076b(0x13d)]),_0x39aada);if(!_0x377664)return!0x1;let {unitId:_0x10c4cc,subUnitId:_0x392a3b}=_0x377664;if(!A(_0xf22a34,_0x10c4cc,_0x392a3b))return!0x1;let _0x27355d=_0xf22a34[_0x46076b(0xa5)](E)['getOutlines'](_0x10c4cc,_0x392a3b)[_0x46076b(0x13e)](_0x26ce86=>_0x26ce86['id']===_0x39aada[_0x46076b(0xe8)]);if(!_0x27355d)return!0x1;let _0x35da25=[{'id':k['id'],'params':{'unitId':_0x10c4cc,'subUnitId':_0x392a3b,'outlineId':_0x27355d['id'],'outline':_0x27355d}}],_0x5613b2=[{'id':O['id'],'params':{'unitId':_0x10c4cc,'subUnitId':_0x392a3b,'outline':_0x27355d}}];return(0x0,e['sequenceExecute'])(_0x35da25,_0xf22a34['get'](e[_0x46076b(0xeb)]))['result']?(_0xf22a34[_0x46076b(0xa5)](e['IUndoRedoService'])[_0x46076b(0xe9)]({'unitID':_0x10c4cc,'undoMutations':_0x5613b2,'redoMutations':_0x35da25}),!0x0):!0x1;}},F={'id':_0x44bb9a(0xb0),'type':e['CommandType']['MUTATION'],'handler':(_0x560965,_0xb3533d)=>{const _0x3affca=_0x44bb9a;let _0x348b5e=_0x560965[_0x3affca(0xa5)](E),_0x2fed4f=_0x348b5e[_0x3affca(0xf4)](_0xb3533d[_0x3affca(0x11b)],_0xb3533d['subUnitId']),_0x28e2c9=_0x2fed4f['find'](_0x20a35e=>_0x20a35e['id']===_0xb3533d[_0x3affca(0xe8)]);return _0x28e2c9&&_0x348b5e[_0x3affca(0x8d)](_0xb3533d[_0x3affca(0x11b)],_0xb3533d[_0x3affca(0x102)],_0x2fed4f['map'](_0x26dda6=>_0x26dda6[_0x3affca(0x11b)]!==_0x28e2c9['unitId']||_0x26dda6[_0x3affca(0x102)]!==_0x28e2c9[_0x3affca(0x102)]||_0x26dda6[_0x3affca(0xdc)]!==_0x28e2c9[_0x3affca(0xdc)]||_0x26dda6[_0x3affca(0xe5)]!==_0x28e2c9[_0x3affca(0xe5)]||_0x26dda6[_0x3affca(0x94)]!==_0x28e2c9[_0x3affca(0x94)]?_0x26dda6:{..._0x26dda6,'collapsed':_0xb3533d['collapsed']})),!0x0;}};function I(_0xa6f308,_0x24d65b,_0x1e6132,_0x30b589){const _0x1354ac=_0x44bb9a;return _0xa6f308===_0x1354ac(0x93)?{'startRow':_0x24d65b,'endRow':_0x1e6132,'startColumn':0x0,'endColumn':_0x30b589[_0x1354ac(0x126)]()-0x1}:{'startRow':0x0,'endRow':_0x30b589[_0x1354ac(0x8e)]()-0x1,'startColumn':_0x24d65b,'endColumn':_0x1e6132};}function pe(_0x4f6cea){const _0x1cebdd=_0x44bb9a;return _0x4f6cea===_0x1cebdd(0x93)?t['SetRowHiddenMutation']['id']:t['SetColHiddenMutation']['id'];}function me(_0x812dc0){const _0x2761de=_0x44bb9a;return _0x812dc0===_0x2761de(0x93)?t[_0x2761de(0xea)]['id']:t[_0x2761de(0xd9)]['id'];}function L(_0x37ab15,_0x208142,_0x53d7de,_0xab6649){const _0x4fb707=_0x44bb9a;let _0x38d488=_0x208142?[I(_0x37ab15[_0x4fb707(0xdc)],_0x37ab15['start'],_0x37ab15['end'],_0x53d7de)]:he(_0x37ab15,_0xab6649,_0x53d7de),_0x4fc8d1=_0x208142?pe(_0x37ab15[_0x4fb707(0xdc)]):me(_0x37ab15[_0x4fb707(0xdc)]);return[{'id':F['id'],'params':{'unitId':_0x37ab15[_0x4fb707(0x11b)],'subUnitId':_0x37ab15['subUnitId'],'outlineId':_0x37ab15['id'],'outline':_0x37ab15,'collapsed':_0x208142}},..._0x38d488[_0x4fb707(0x109)](_0x5a8fbf=>({'id':_0x4fc8d1,'params':{'unitId':_0x37ab15[_0x4fb707(0x11b)],'subUnitId':_0x37ab15['subUnitId'],'ranges':[_0x5a8fbf],'dimensionOutlineId':_0x37ab15['id']}}))];}function he(_0x4c597c,_0x1141cf,_0x4cacd0){const _0x1a84dd=_0x44bb9a;let _0x33dfab=g(_0x1141cf[_0x1a84dd(0x109)](_0x3e6cf7=>R(_0x3e6cf7,_0x4c597c)?{..._0x3e6cf7,'collapsed':!0x1}:_0x3e6cf7),_0x4c597c[_0x1a84dd(0x11b)],_0x4c597c[_0x1a84dd(0x102)],_0x4c597c[_0x1a84dd(0xdc)]);return ge({'start':_0x4c597c[_0x1a84dd(0xe5)],'end':_0x4c597c['end']},_0x33dfab)['map'](_0x4208e8=>I(_0x4c597c[_0x1a84dd(0xdc)],_0x4208e8[_0x1a84dd(0xe5)],_0x4208e8[_0x1a84dd(0x94)],_0x4cacd0));}function R(_0x4f2c3e,_0x2a3b07){const _0x5bc4b9=_0x44bb9a;return _0x4f2c3e[_0x5bc4b9(0x11b)]===_0x2a3b07[_0x5bc4b9(0x11b)]&&_0x4f2c3e[_0x5bc4b9(0x102)]===_0x2a3b07[_0x5bc4b9(0x102)]&&_0x4f2c3e[_0x5bc4b9(0xdc)]===_0x2a3b07[_0x5bc4b9(0xdc)]&&_0x4f2c3e[_0x5bc4b9(0xe5)]===_0x2a3b07['start']&&_0x4f2c3e[_0x5bc4b9(0x94)]===_0x2a3b07[_0x5bc4b9(0x94)];}function ge(_0x24cc3f,_0x39656f){const _0x48c633=_0x44bb9a;let _0x66b25e=_0x24cc3f['start'],_0x5a1c8c=[];for(let _0x394603 of _0x39656f)if(!(_0x394603[_0x48c633(0x94)]<_0x66b25e||_0x394603[_0x48c633(0xe5)]>_0x24cc3f[_0x48c633(0x94)])&&(_0x394603[_0x48c633(0xe5)]>_0x66b25e&&_0x5a1c8c['push']({'start':_0x66b25e,'end':Math[_0x48c633(0x140)](_0x394603[_0x48c633(0xe5)]-0x1,_0x24cc3f['end'])}),_0x66b25e=Math[_0x48c633(0x9b)](_0x66b25e,_0x394603[_0x48c633(0x94)]+0x1),_0x66b25e>_0x24cc3f['end']))break;return _0x66b25e<=_0x24cc3f[_0x48c633(0x94)]&&_0x5a1c8c[_0x48c633(0x12f)]({'start':_0x66b25e,'end':_0x24cc3f[_0x48c633(0x94)]}),_0x5a1c8c;}const z={'id':_0x44bb9a(0xc6),'type':e[_0x44bb9a(0xe2)][_0x44bb9a(0x125)],'handler':(_0xb720e6,_0x1edfc8)=>{const _0x34d6e6=_0x44bb9a;if(!_0x1edfc8)return!0x1;let _0x3ebb69=(0x0,t[_0x34d6e6(0xdd)])(_0xb720e6['get'](e[_0x34d6e6(0x13d)]),_0x1edfc8);if(!_0x3ebb69)return!0x1;let {unitId:_0x1fe19b,subUnitId:_0x4e5647,worksheet:_0x5d2aab}=_0x3ebb69;if(!A(_0xb720e6,_0x1fe19b,_0x4e5647))return!0x1;let _0x5b4433=_0xb720e6[_0x34d6e6(0xa5)](E)['getOutlines'](_0x1fe19b,_0x4e5647),_0x3554db=_0x5b4433[_0x34d6e6(0x13e)](_0x47457c=>_0x47457c['id']===_0x1edfc8[_0x34d6e6(0xe8)]);if(!_0x3554db||_0x3554db[_0x34d6e6(0xfd)]===_0x1edfc8[_0x34d6e6(0xfd)])return!0x1;let _0x456f81=L(_0x3554db,_0x1edfc8[_0x34d6e6(0xfd)],_0x5d2aab,_0x5b4433),_0x59245a=L(_0x3554db,!_0x1edfc8[_0x34d6e6(0xfd)],_0x5d2aab,_0x5b4433);return(0x0,e['sequenceExecute'])(_0x456f81,_0xb720e6['get'](e[_0x34d6e6(0xeb)]))['result']?(_0xb720e6['get'](e[_0x34d6e6(0xef)])[_0x34d6e6(0xe9)]({'unitID':_0x1fe19b,'undoMutations':_0x59245a,'redoMutations':_0x456f81}),!0x0):!0x1;}},B={'id':'sheet.mutation.transform-dimension-outlines','type':e[_0x44bb9a(0xe2)][_0x44bb9a(0xb6)],'handler':(_0x2df4e3,_0x5ec12f)=>{const _0x273f=_0x44bb9a;let _0x55773c=_0x2df4e3['get'](E),_0xbbf933=_e(_0x55773c[_0x273f(0xf4)](_0x5ec12f[_0x273f(0x11b)],_0x5ec12f[_0x273f(0x102)]),_0x5ec12f);return _0x55773c['setOutlines'](_0x5ec12f['unitId'],_0x5ec12f[_0x273f(0x102)],_0xbbf933),!0x0;}};function _e(_0x2113e2,_0x27635b){const _0x9ec653=_0x44bb9a;switch(_0x27635b[_0x9ec653(0x103)]){case _0x9ec653(0x136):return _0x27635b['restoreOutlines']?ve(_0x2113e2,_0x27635b):v(_0x2113e2,_0x27635b);case _0x9ec653(0x113):return y(_0x2113e2,_0x27635b);case _0x9ec653(0xfc):return b(_0x2113e2,_0x27635b);}}function ve(_0x8339a7,_0x189455){const _0x29e5d5=_0x44bb9a;return[..._0x8339a7[_0x29e5d5(0x84)](_0x1596ec=>_0x1596ec[_0x29e5d5(0x11b)]!==_0x189455['unitId']||_0x1596ec[_0x29e5d5(0x102)]!==_0x189455[_0x29e5d5(0x102)]||_0x1596ec['axis']!==_0x189455['axis']),..._0x189455['restoreOutlines']];}const V=_0x44bb9a(0xba);var ye=_0x44bb9a(0x134),be=_0x44bb9a(0xae);const H={};function U(_0x130a2a,_0x4d8a94){return function(_0x38449a,_0x3d355b){_0x4d8a94(_0x38449a,_0x3d355b,_0x130a2a);};}function W(_0x3593d8,_0x37c196,_0x5aa0ea,_0x5ed8cb){const _0x32f0cd=_0x44bb9a;var _0x59a5a7=arguments['length'],_0x1500c5=_0x59a5a7<0x3?_0x37c196:_0x5ed8cb===null?_0x5ed8cb=Object[_0x32f0cd(0x89)](_0x37c196,_0x5aa0ea):_0x5ed8cb,_0x180d8f;if(typeof Reflect==_0x32f0cd(0xa8)&&typeof Reflect[_0x32f0cd(0x82)]=='function')_0x1500c5=Reflect[_0x32f0cd(0x82)](_0x3593d8,_0x37c196,_0x5aa0ea,_0x5ed8cb);else{for(var _0x205d79=_0x3593d8['length']-0x1;_0x205d79>=0x0;_0x205d79--)(_0x180d8f=_0x3593d8[_0x205d79])&&(_0x1500c5=(_0x59a5a7<0x3?_0x180d8f(_0x1500c5):_0x59a5a7>0x3?_0x180d8f(_0x37c196,_0x5aa0ea,_0x1500c5):_0x180d8f(_0x37c196,_0x5aa0ea))||_0x1500c5);}return _0x59a5a7>0x3&&_0x1500c5&&Object[_0x32f0cd(0x117)](_0x37c196,_0x5aa0ea,_0x1500c5),_0x1500c5;}const G={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let K=class extends e['Disposable']{constructor(_0x33f88e,_0x174f19,_0x2d753a,_0x270dc8){const _0x49df62=_0x44bb9a;super(),this[_0x49df62(0xf2)]=_0x33f88e,this[_0x49df62(0xca)]=_0x174f19,this[_0x49df62(0x98)]=_0x2d753a,this['_sheetsOutlineErrorService']=_0x270dc8,this['_initCommandInterceptor']();}[_0x44bb9a(0xff)](){const _0x309d9b=_0x44bb9a;this[_0x309d9b(0x7f)](this[_0x309d9b(0xca)]['interceptCommand']({'getMutations':_0x9f12ef=>xe(_0x9f12ef,(_0x179228,_0x23bf60)=>this[_0x309d9b(0x98)][_0x309d9b(0xf4)](_0x179228,_0x23bf60),this['_getCommandScope'](_0x9f12ef[_0x309d9b(0xf0)]),_0x1f748a=>this[_0x309d9b(0x12a)]['emit'](_0x1f748a))}));}[_0x44bb9a(0x80)](_0x47fd4d){const _0x3ce15f=_0x44bb9a;let _0x5e57e6=_0x47fd4d,_0x3df6a8=_0x5e57e6!=null&&_0x5e57e6[_0x3ce15f(0x11b)]?this[_0x3ce15f(0xf2)][_0x3ce15f(0xd1)](_0x5e57e6[_0x3ce15f(0x11b)],e['UniverInstanceType'][_0x3ce15f(0x13b)]):this['_univerInstanceService'][_0x3ce15f(0x9f)](e[_0x3ce15f(0x107)][_0x3ce15f(0x13b)]);if(!_0x3df6a8)return;let _0x48a587=_0x5e57e6!=null&&_0x5e57e6[_0x3ce15f(0x102)]?_0x3df6a8['getSheetBySheetId'](_0x5e57e6[_0x3ce15f(0x102)]):_0x3df6a8['getActiveSheet']();if(_0x48a587)return{'unitId':_0x3df6a8['getUnitId'](),'subUnitId':_0x48a587[_0x3ce15f(0xdf)]()};}};K=W([U(0x0,e[_0x44bb9a(0x13d)]),U(0x1,(0x0,e[_0x44bb9a(0xe6)])(t[_0x44bb9a(0xe3)])),U(0x2,(0x0,e[_0x44bb9a(0xe6)])(E)),U(0x3,(0x0,e['Inject'])(D))],K);function xe(_0x2164ae,_0x4a1c7a,_0x4ece0b,_0x157e29){const _0x1cae5d=_0x44bb9a;let _0x563792=Ce(_0x2164ae,_0x4ece0b);if(!_0x563792)return Z();let _0xd9943b=_0x4a1c7a(_0x563792[_0x1cae5d(0x11b)],_0x563792[_0x1cae5d(0x102)]);if(!_0xd9943b[_0x1cae5d(0x91)](_0x4e7e7c=>_0x4e7e7c['axis']===_0x563792[_0x1cae5d(0xdc)]))return Z();Se(_0xd9943b,_0x563792,_0x2164ae['id'],_0x157e29);let _0x77bcd8=we(_0x563792,_0xd9943b);return{'redos':[{'id':B['id'],'params':_0x563792}],'undos':[{'id':B['id'],'params':_0x77bcd8}],'preRedos':[],'preUndos':[]};}function Se(_0x5b67c8,_0x4c8faa,_0x7b1d3,_0x288e1b){const _0x174fc3=_0x44bb9a;try{switch(_0x4c8faa[_0x174fc3(0x103)]){case _0x174fc3(0x136):v(_0x5b67c8,_0x4c8faa);break;case _0x174fc3(0x113):y(_0x5b67c8,_0x4c8faa);break;case _0x174fc3(0xfc):b(_0x5b67c8,_0x4c8faa);break;}}catch(_0xff5f42){throw _0x288e1b==null||_0x288e1b({'reason':c(_0xff5f42),'commandId':_0x7b1d3,'unitId':_0x4c8faa[_0x174fc3(0x11b)],'subUnitId':_0x4c8faa[_0x174fc3(0x102)],'axis':_0x4c8faa[_0x174fc3(0xdc)],'outlineId':l(_0xff5f42)}),new e[(_0x174fc3(0x144))](_0xff5f42 instanceof Error?_0xff5f42[_0x174fc3(0x7e)]:_0x174fc3(0x7c));}}function Ce(_0x3a4619,_0x2d3b38){const _0x3aca9f=_0x44bb9a;switch(_0x3a4619['id']){case t[_0x3aca9f(0xb5)]['id']:return q(_0x3a4619[_0x3aca9f(0xf0)],_0x3aca9f(0x93),_0x2d3b38);case t['InsertColCommand']['id']:return q(_0x3a4619[_0x3aca9f(0xf0)],'column',_0x2d3b38);case t['RemoveRowCommand']['id']:return J(_0x3a4619['params'],_0x3aca9f(0x93),_0x2d3b38);case t[_0x3aca9f(0x135)]['id']:return J(_0x3a4619[_0x3aca9f(0xf0)],_0x3aca9f(0xc1),_0x2d3b38);case t[_0x3aca9f(0x13a)]['id']:return Y(_0x3a4619[_0x3aca9f(0xf0)],_0x3aca9f(0x93),_0x2d3b38);case t[_0x3aca9f(0xce)]['id']:return Y(_0x3a4619[_0x3aca9f(0xf0)],_0x3aca9f(0xc1),_0x2d3b38);default:return null;}}function q(_0x4b2e0f,_0x253328,_0x2189b5){const _0x4a9a88=_0x44bb9a;let _0x302059=X(_0x4b2e0f,_0x2189b5);if(!(_0x4b2e0f!=null&&_0x4b2e0f[_0x4a9a88(0x142)])||!_0x302059)return null;let _0x5a360b=_0x253328===_0x4a9a88(0x93)?_0x4b2e0f['range']['startRow']:_0x4b2e0f[_0x4a9a88(0x142)][_0x4a9a88(0x12c)],_0xf8a6db=_0x253328==='row'?_0x4b2e0f[_0x4a9a88(0x142)]['endRow']:_0x4b2e0f['range']['endColumn'];return{..._0x302059,'axis':_0x253328,'type':_0x4a9a88(0x136),'index':_0x5a360b,'count':_0xf8a6db-_0x5a360b+0x1};}function J(_0x2cc4b1,_0x43f318,_0x517768){const _0x36e74d=_0x44bb9a;let _0x270fa3=X(_0x2cc4b1,_0x517768);if(!(_0x2cc4b1!=null&&_0x2cc4b1[_0x36e74d(0x142)])||!_0x270fa3)return null;let _0xff57fa=_0x43f318==='row'?_0x2cc4b1[_0x36e74d(0x142)]['startRow']:_0x2cc4b1[_0x36e74d(0x142)][_0x36e74d(0x12c)],_0xfb175b=_0x43f318===_0x36e74d(0x93)?_0x2cc4b1[_0x36e74d(0x142)]['endRow']:_0x2cc4b1[_0x36e74d(0x142)]['endColumn'];return{..._0x270fa3,'axis':_0x43f318,'type':'delete','start':_0xff57fa,'end':_0xfb175b};}function Y(_0x13ef86,_0x18288e,_0x58dd78){const _0x599479=_0x44bb9a;let _0x58f1da=X(_0x13ef86,_0x58dd78);if(!(_0x13ef86!=null&&_0x13ef86[_0x599479(0x121)])||!_0x13ef86[_0x599479(0x143)]||!_0x58f1da)return null;let _0xbd4b9a=_0x18288e===_0x599479(0x93)?_0x13ef86[_0x599479(0x121)][_0x599479(0x141)]:_0x13ef86['fromRange'][_0x599479(0x12c)],_0x1e83bf=_0x18288e==='row'?_0x13ef86[_0x599479(0x121)][_0x599479(0xcb)]:_0x13ef86[_0x599479(0x121)]['endColumn'],_0x3aa2f0=_0x18288e===_0x599479(0x93)?_0x13ef86[_0x599479(0x143)][_0x599479(0x141)]:_0x13ef86['toRange'][_0x599479(0x12c)];return{..._0x58f1da,'axis':_0x18288e,'type':_0x599479(0xfc),'sourceStart':_0xbd4b9a,'sourceEnd':_0x1e83bf,'destinationIndex':_0x3aa2f0};}function we(_0x4320de,_0x34ab94){const _0x370a3b=_0x44bb9a;switch(_0x4320de['type']){case _0x370a3b(0x136):return{'unitId':_0x4320de[_0x370a3b(0x11b)],'subUnitId':_0x4320de[_0x370a3b(0x102)],'axis':_0x4320de[_0x370a3b(0xdc)],'type':_0x370a3b(0x113),'start':_0x4320de[_0x370a3b(0x147)],'end':_0x4320de[_0x370a3b(0x147)]+_0x4320de['count']-0x1};case _0x370a3b(0x113):return{'unitId':_0x4320de['unitId'],'subUnitId':_0x4320de[_0x370a3b(0x102)],'axis':_0x4320de['axis'],'type':_0x370a3b(0x136),'index':_0x4320de[_0x370a3b(0xe5)],'count':_0x4320de[_0x370a3b(0x94)]-_0x4320de[_0x370a3b(0xe5)]+0x1,'restoreOutlines':_0x34ab94[_0x370a3b(0x84)](_0x1bee0a=>_0x1bee0a['unitId']===_0x4320de[_0x370a3b(0x11b)]&&_0x1bee0a[_0x370a3b(0x102)]===_0x4320de[_0x370a3b(0x102)]&&_0x1bee0a[_0x370a3b(0xdc)]===_0x4320de[_0x370a3b(0xdc)])};case _0x370a3b(0xfc):return Te(_0x4320de);}}function _0x1ff4(){const _0x4a51fe=['object','UniverSheetsPlugin','unknown','next','dispose','_configService','1.0.0-alpha.8','dimension-outline-','sheet.mutation.set-dimension-outline-collapsed','values','preUndos','SheetsOutlineErrorService','toStringTag','InsertRowCommand','MUTATION','offset','transformOutlinesByDelete','length','SHEET_OUTLINE_PLUGIN','IPermissionService','from','SetDimensionOutlineCollapsedCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','INVALID_RANGE','forEach','column','6xTbQZA','_ensureUnitOutlines','10640umHeoH','function','sheet.command.set-dimension-outline-collapsed','hasDimensionOutlineViewPermission','error$','change$','_sheetInterceptorService','endRow','children','result','MoveColsCommand','transformOutlinesByMove','_error$','getUnit','onStarting','deserialize','string','_outlines','clear-range-not-contain-outline','2302594dZYbNY','IResourceManagerService','SetColVisibleMutation','sort','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','axis','getSheetCommandTarget','4iULmjt','getSheetId','emit','sheet.mutation.clear-dimension-outlines','CommandType','SheetInterceptorService','redos','start','Inject','RemoveDimensionOutlineCommand','outlineId','pushUndoRedo','SetRowVisibleMutation','ICommandService','COLUMN','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','transformOutlinesByInsert','IUndoRedoService','params','toPrimitive','_univerInstanceService','permissionPointUpdate$','getOutlines','maxDepth','mergedOutline','symbol','includes','entries','_resourceManagerService','default','move','collapsed','join','_initCommandInterceptor','constructor','DependentOn','subUnitId','type','_injector','DimensionOutlineAxis','DimensionOutlineError','UniverInstanceType','asObservable','map','complete','crossing','DimensionOutlineErrorReason','UniverSheetsOutlinePlugin','Invalid\x20dimension\x20outline\x20move\x20source\x20range','Disposable','merge','iterator','Module','delete','removeUnit','Crossing','has','defineProperty','debounceTime','WorkbookViewPermission','max-depth','unitId','registerCommand','SetDimensionOutlineCollapsedMutation','localeCompare','invalid-dimension-outline','mergedOutlines','fromRange','reason','Subject','_change$','COMMAND','getMaxColumns','pluginName','generateRandomId','permissionCheckWithoutRange','_sheetsOutlineErrorService','1573160cZGShT','startColumn','_config','RemoveDimensionOutlineMutation','push','move-splits-outline','UNKNOWN','980259ccYhxL','sheets-outline.config','@univerjs-pro/sheets-outline','RemoveColCommand','insert','outline','sourceEnd','maxIndex','MoveRowsCommand','UNIVER_SHEET','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','IUniverInstanceService','find','IConfigService','min','startRow','range','toRange','CustomCommandExecutionError','OUT_OF_BOUNDS','startWith','index','SheetPermissionCheckController','add','Invalid\x20dimension\x20outline\x20mutation','sheet.command.clear-dimension-outlines','message','disposeWithMe','_getCommandScope','setConfig','decorate','packageName','filter','_commandService','version','buildDimensionOutlineTree','10996101NqaELN','getOwnPropertyDescriptor','serialize','_initResource','set','setOutlines','getRowCount','outlineList','MOVE_SPLITS_OUTLINE','some','250656lwUpnX','row','end','split','sequenceExecute','valid','_sheetsOutlineModel','name','destinationIndex','max','out-of-bounds','Invalid\x20outline\x20range','count','getCurrentUnitOfType','registerPluginResource','_initRegisterCommand','sourceStart','AddDimensionOutlineMutation','3306952GhpWje','get','Plugin','invalid-range'];_0x1ff4=function(){return _0x4a51fe;};return _0x1ff4();}function Te(_0x2b25f0){const _0x39d6d8=_0x44bb9a;let _0x4710b4=_0x2b25f0[_0x39d6d8(0x138)]-_0x2b25f0[_0x39d6d8(0xa2)]+0x1;return _0x2b25f0[_0x39d6d8(0x9a)]>=_0x2b25f0[_0x39d6d8(0xa2)]&&_0x2b25f0[_0x39d6d8(0x9a)]<=_0x2b25f0[_0x39d6d8(0x138)]+0x1?{..._0x2b25f0}:_0x2b25f0['destinationIndex']>_0x2b25f0['sourceEnd']+0x1?{..._0x2b25f0,'sourceStart':_0x2b25f0[_0x39d6d8(0x9a)]-_0x4710b4,'sourceEnd':_0x2b25f0['destinationIndex']-0x1,'destinationIndex':_0x2b25f0[_0x39d6d8(0xa2)]}:{..._0x2b25f0,'sourceStart':_0x2b25f0['destinationIndex'],'sourceEnd':_0x2b25f0[_0x39d6d8(0x9a)]+_0x4710b4-0x1,'destinationIndex':_0x2b25f0[_0x39d6d8(0x138)]+0x1};}function X(_0x316f93,_0x568178){const _0x457126=_0x44bb9a;var _0x545be8,_0x152a2d;let _0x5c98b0=(_0x545be8=_0x316f93==null?void 0x0:_0x316f93['unitId'])==null?_0x568178==null?void 0x0:_0x568178['unitId']:_0x545be8,_0x397e84=(_0x152a2d=_0x316f93==null?void 0x0:_0x316f93[_0x457126(0x102)])==null?_0x568178==null?void 0x0:_0x568178[_0x457126(0x102)]:_0x152a2d;return _0x5c98b0&&_0x397e84?{'unitId':_0x5c98b0,'subUnitId':_0x397e84}:null;}function Z(){const _0x21f4a9=_0x44bb9a;var _0x4d677c,_0x3d0f60;return{'redos':[...G[_0x21f4a9(0xe4)]],'undos':[...G['undos']],'preRedos':[...(_0x4d677c=G['preRedos'])==null?[]:_0x4d677c],'preUndos':[...(_0x3d0f60=G[_0x21f4a9(0xb2)])==null?[]:_0x3d0f60]};}let Q=class extends e[_0x44bb9a(0x10f)]{constructor(_0x6870ab,_0x4c98e9){const _0x240ae3=_0x44bb9a;super(),this['_resourceManagerService']=_0x6870ab,this['_sheetsOutlineModel']=_0x4c98e9,this[_0x240ae3(0x8b)]();}[_0x44bb9a(0x8b)](){const _0x30640f=_0x44bb9a;this[_0x30640f(0x7f)](this[_0x30640f(0xfa)][_0x30640f(0xa0)]({'pluginName':V,'businesses':[e[_0x30640f(0x107)][_0x30640f(0x13b)]],'toJson':_0x3cec3b=>JSON['stringify'](this[_0x30640f(0x98)][_0x30640f(0x8a)](_0x3cec3b)),'parseJson':_0x4dda9d=>JSON['parse'](_0x4dda9d),'onLoad':(_0x5c372a,_0x2bc842)=>this[_0x30640f(0x98)][_0x30640f(0xd3)](_0x5c372a,_0x2bc842),'onUnLoad':_0xc8276f=>this[_0x30640f(0x98)][_0x30640f(0x114)](_0xc8276f)}));}};Q=W([U(0x0,e[_0x44bb9a(0xd8)]),U(0x1,(0x0,e['Inject'])(E))],Q);let $=class extends e[_0x44bb9a(0xa6)]{constructor(_0x2244c1=H,_0x40cdb9,_0x11c736,_0x3b5345){const _0x37c1d7=_0x44bb9a;super(),this[_0x37c1d7(0x12d)]=_0x2244c1,this[_0x37c1d7(0x104)]=_0x40cdb9,this[_0x37c1d7(0x85)]=_0x11c736,this[_0x37c1d7(0xad)]=_0x3b5345;let {..._0x2ee8d7}=(0x0,e[_0x37c1d7(0x110)])({},H,this[_0x37c1d7(0x12d)]);this[_0x37c1d7(0xad)][_0x37c1d7(0x81)](_0x37c1d7(0x133),_0x2ee8d7);}[_0x44bb9a(0xd2)](){const _0x159033=_0x44bb9a;this[_0x159033(0x104)][_0x159033(0x7b)]([E]),this['_injector'][_0x159033(0x7b)]([D]),this[_0x159033(0x104)][_0x159033(0x7b)]([Q]),this[_0x159033(0x104)][_0x159033(0x7b)]([K]),this[_0x159033(0xa1)](),this[_0x159033(0x104)][_0x159033(0xa5)](E),this['_injector'][_0x159033(0xa5)](D),this[_0x159033(0x104)]['get'](Q),this[_0x159033(0x104)][_0x159033(0xa5)](K);}[_0x44bb9a(0xa1)](){const _0x57bc5a=_0x44bb9a;[j,P,z,N][_0x57bc5a(0xc0)](_0xa43bf1=>{const _0x5a26d4=_0x57bc5a;this[_0x5a26d4(0x7f)](this[_0x5a26d4(0x85)]['registerCommand'](_0xa43bf1));}),[O,k,F,M,B][_0x57bc5a(0xc0)](_0x372e94=>{const _0x59cba2=_0x57bc5a;this[_0x59cba2(0x7f)](this[_0x59cba2(0x85)][_0x59cba2(0x11c)](_0x372e94));});}};T($,_0x44bb9a(0x127),V),T($,_0x44bb9a(0x83),ye),T($,_0x44bb9a(0x86),be),T($,'type',e[_0x44bb9a(0x107)][_0x44bb9a(0x13b)]),$=W([(0x0,e[_0x44bb9a(0x101)])(i['UniverLicensePlugin'],t[_0x44bb9a(0xa9)]),U(0x1,(0x0,e['Inject'])(e['Injector'])),U(0x2,e[_0x44bb9a(0xeb)]),U(0x3,e[_0x44bb9a(0x13f)])],$),exports['AddDimensionOutlineCommand']=j,exports[_0x44bb9a(0xa3)]=O,exports['ClearDimensionOutlinesCommand']=N,exports['ClearDimensionOutlinesMutation']=M,exports[_0x44bb9a(0x105)]=a,exports[_0x44bb9a(0x10c)]=o,exports[_0x44bb9a(0xe7)]=P,exports[_0x44bb9a(0x12e)]=k,exports[_0x44bb9a(0xba)]=V,exports[_0x44bb9a(0xbd)]=z,exports[_0x44bb9a(0x11d)]=F,exports[_0x44bb9a(0xb3)]=D,exports['SheetsOutlineModel']=E,exports['TransformDimensionOutlinesMutation']=B,Object[_0x44bb9a(0x117)](exports,_0x44bb9a(0x10d),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x44bb9a(0x87)]=f,exports['canAddDimensionOutline']=p,exports['getDimensionOutlineViewPermission$']=ue,exports[_0x44bb9a(0xc7)]=A,exports[_0x44bb9a(0xb8)]=y,exports[_0x44bb9a(0xee)]=v,exports[_0x44bb9a(0xcf)]=b;
1
+ const _0x5e2e85=_0x66e5;(function(_0x26d8df,_0x89af14){const _0x5a23e6=_0x66e5,_0x1399f5=_0x26d8df();while(!![]){try{const _0x33fb93=parseInt(_0x5a23e6(0x1f1))/0x1+-parseInt(_0x5a23e6(0x1e6))/0x2*(parseInt(_0x5a23e6(0x1f0))/0x3)+parseInt(_0x5a23e6(0x18f))/0x4*(-parseInt(_0x5a23e6(0x215))/0x5)+-parseInt(_0x5a23e6(0x1ab))/0x6*(parseInt(_0x5a23e6(0x1ff))/0x7)+-parseInt(_0x5a23e6(0x217))/0x8+-parseInt(_0x5a23e6(0x1a8))/0x9*(-parseInt(_0x5a23e6(0x1bf))/0xa)+-parseInt(_0x5a23e6(0x20f))/0xb*(-parseInt(_0x5a23e6(0x21a))/0xc);if(_0x33fb93===_0x89af14)break;else _0x1399f5['push'](_0x1399f5['shift']());}catch(_0x56e9be){_0x1399f5['push'](_0x1399f5['shift']());}}}(_0xd4ca,0xeeada),Object[_0x5e2e85(0x1f9)](exports,Symbol[_0x5e2e85(0x1cd)],{'value':_0x5e2e85(0x214)}));let e=require('@univerjs/core'),t=require('@univerjs/sheets'),n=require('rxjs'),r=require('rxjs/operators'),i=require('@univerjs-pro/license'),a=function(_0x19f816){const _0x5c1634=_0x5e2e85;return _0x19f816[_0x5c1634(0x1aa)]=_0x5c1634(0x261),_0x19f816[_0x5c1634(0x220)]=_0x5c1634(0x200),_0x19f816;}({}),o=function(_0x427d9d){const _0x22d368=_0x5e2e85;return _0x427d9d['INVALID_RANGE']=_0x22d368(0x21e),_0x427d9d[_0x22d368(0x1a9)]=_0x22d368(0x255),_0x427d9d['CROSSING']='crossing',_0x427d9d[_0x22d368(0x192)]=_0x22d368(0x1be),_0x427d9d['MOVE_SPLITS_OUTLINE']=_0x22d368(0x22b),_0x427d9d[_0x22d368(0x20e)]=_0x22d368(0x254),_0x427d9d[_0x22d368(0x228)]=_0x22d368(0x198),_0x427d9d;}({});var s=class extends Error{constructor(_0x438a44,_0x3d699c,_0x4ec90c){const _0x33f0ee=_0x5e2e85;super(_0x3d699c),this[_0x33f0ee(0x1e2)]=_0x438a44,this[_0x33f0ee(0x23a)]=_0x4ec90c,this[_0x33f0ee(0x1e5)]=_0x33f0ee(0x22c);}};function c(_0x3fc14d){const _0x485ef4=_0x5e2e85;return _0x3fc14d instanceof s?_0x3fc14d[_0x485ef4(0x1e2)]:_0x3fc14d instanceof Error?_0x3fc14d[_0x485ef4(0x24d)][_0x485ef4(0x210)](_0x485ef4(0x189))?'move-splits-outline':_0x3fc14d[_0x485ef4(0x24d)][_0x485ef4(0x210)](_0x485ef4(0x232))?_0x485ef4(0x1be):_0x3fc14d[_0x485ef4(0x24d)]['includes'](_0x485ef4(0x1fa))?'crossing':_0x3fc14d[_0x485ef4(0x24d)]['includes'](_0x485ef4(0x197))?'invalid-range':_0x485ef4(0x198):_0x485ef4(0x198);}function l(_0x4bcc47){const _0x37df9d=_0x5e2e85;return _0x4bcc47 instanceof s?_0x4bcc47[_0x37df9d(0x23a)]:void 0x0;}const u=0x2**0x35-0x1;function d(_0x40a6da,_0x32d5ec){const _0x2b70b8=_0x5e2e85;return _0x40a6da['unitId']===_0x32d5ec[_0x2b70b8(0x19b)]&&_0x40a6da[_0x2b70b8(0x1eb)]===_0x32d5ec[_0x2b70b8(0x1eb)]&&_0x40a6da[_0x2b70b8(0x22a)]===_0x32d5ec['axis'];}function f(_0x12f60f,_0x433ad4={}){const _0x541e3b=_0x5e2e85;let _0x4b747d=_0x433ad4[_0x541e3b(0x1b6)]??0x8,_0x8072e8=new Map();for(let _0x406b88 of _0x12f60f){let _0x59e0b0=_0x406b88['unitId']+':'+_0x406b88['subUnitId']+':'+_0x406b88[_0x541e3b(0x22a)],_0x5bcaf2=_0x8072e8[_0x541e3b(0x25e)](_0x59e0b0);_0x5bcaf2?_0x5bcaf2[_0x541e3b(0x1d5)](_0x406b88):_0x8072e8[_0x541e3b(0x1b0)](_0x59e0b0,[_0x406b88]);}let _0x3e234f=[];for(let _0x213677 of _0x8072e8[_0x541e3b(0x227)]()){let _0x2deea2=[..._0x213677][_0x541e3b(0x246)](S),_0x101758=[];for(let _0x36a415 of _0x2deea2){for(se(_0x36a415);_0x101758[_0x541e3b(0x243)]>0x0&&_0x36a415['start']>_0x101758[_0x101758['length']-0x1][_0x541e3b(0x19f)];)_0x101758[_0x541e3b(0x1e1)]();let _0x2fcfb1=_0x101758[_0x101758['length']-0x1];if(_0x2fcfb1&&_0x36a415[_0x541e3b(0x19f)]>_0x2fcfb1[_0x541e3b(0x19f)])throw new s(_0x541e3b(0x252),_0x541e3b(0x1db),_0x36a415['id']);let _0x128c00=_0x2fcfb1?_0x2fcfb1[_0x541e3b(0x232)]+0x1:0x1;if(_0x128c00>_0x4b747d)throw new s('max-depth',_0x541e3b(0x1a6)+_0x4b747d,_0x36a415['id']);let _0xc45edd={..._0x36a415,'depth':_0x128c00,'parentId':_0x2fcfb1==null?void 0x0:_0x2fcfb1['id'],'anchor':_0x36a415[_0x541e3b(0x19f)],'children':[]};_0x2fcfb1?_0x2fcfb1[_0x541e3b(0x23c)][_0x541e3b(0x1d5)](_0xc45edd):_0x3e234f['push'](_0xc45edd),_0x101758[_0x541e3b(0x1d5)](_0xc45edd);}}return _0x3e234f;}function p(_0x1009a0,_0x242bb5,_0xf89a23={}){const _0x265a57=_0x5e2e85;if(_0x242bb5['start']<0x0||_0x242bb5['start']>_0x242bb5[_0x265a57(0x19f)])return{'valid':!0x1,'reason':'invalid-range'};if(_0xf89a23[_0x265a57(0x253)]!=null&&_0x242bb5[_0x265a57(0x19f)]>=_0xf89a23[_0x265a57(0x253)])return{'valid':!0x1,'reason':_0x265a57(0x255)};let _0x1f4101=_0x1009a0['filter'](_0x22d781=>d(_0x22d781,_0x242bb5));for(let _0x59072e of _0x1f4101)if(C(_0x59072e,_0x242bb5))return{'valid':!0x1,'reason':_0x265a57(0x252)};try{f([..._0x1009a0,_0x242bb5],_0xf89a23);}catch(_0x536ace){let _0x5c122f=c(_0x536ace);return _0x5c122f===_0x265a57(0x1be)?{'valid':!0x1,'reason':_0x265a57(0x1be)}:_0x5c122f===_0x265a57(0x21e)?{'valid':!0x1,'reason':'invalid-range'}:{'valid':!0x1,'reason':_0x265a57(0x252)};}return{'valid':!0x0};}function m(_0x4ed9b6,_0x2e8f41,_0x1bf08f={}){const _0x48df11=_0x5e2e85;let _0x486752=p(_0x4ed9b6,_0x2e8f41,_0x1bf08f);if(!_0x486752[_0x48df11(0x250)])throw Error(_0x486752[_0x48df11(0x1e2)]??'invalid-dimension-outline');return[..._0x4ed9b6,_0x2e8f41];}function ee(_0x5c25ed,_0x3e3b98){const _0x447cc1=_0x5e2e85;let _0x1ef9f7=_0x3e3b98['start'],_0x34cfa2=_0x3e3b98[_0x447cc1(0x19f)],_0x40ba88=[],_0x35f7d0=!0x0;for(;_0x35f7d0;){_0x35f7d0=!0x1;for(let _0xbd97d3 of _0x5c25ed)_0x40ba88[_0x447cc1(0x210)](_0xbd97d3)||!d(_0xbd97d3,_0x3e3b98)||!ae(_0xbd97d3[_0x447cc1(0x19e)],_0xbd97d3[_0x447cc1(0x19f)],_0x1ef9f7,_0x34cfa2)||(_0x40ba88[_0x447cc1(0x1d5)](_0xbd97d3),_0x1ef9f7=Math[_0x447cc1(0x207)](_0x1ef9f7,_0xbd97d3[_0x447cc1(0x19e)]),_0x34cfa2=Math[_0x447cc1(0x226)](_0x34cfa2,_0xbd97d3[_0x447cc1(0x19f)]),_0x35f7d0=!0x0);}if(_0x40ba88['length']===0x0)return null;let [_0x5c9606]=[..._0x40ba88][_0x447cc1(0x246)](S);return{'mergedOutline':{..._0x5c9606,'start':_0x1ef9f7,'end':_0x34cfa2},'mergedOutlines':_0x40ba88};}function h(_0x105b45,_0x56fb06){const _0x5b3453=_0x5e2e85;return _0x105b45['filter'](_0x280ea3=>!d(_0x280ea3,_0x56fb06)||!(_0x280ea3[_0x5b3453(0x19e)]>=_0x56fb06['start']&&_0x280ea3['end']<=_0x56fb06['end']));}function g(_0x34e41b,_0x3b5ac5,_0x25a936,_0x3ab034){const _0x422724=_0x5e2e85;return _(_0x34e41b[_0x422724(0x190)](_0x126ac0=>_0x126ac0[_0x422724(0x19b)]===_0x3b5ac5&&_0x126ac0[_0x422724(0x1eb)]===_0x25a936&&_0x126ac0[_0x422724(0x22a)]===_0x3ab034&&_0x126ac0[_0x422724(0x19d)])[_0x422724(0x1f3)](_0x21690e=>({'start':_0x21690e[_0x422724(0x19e)],'end':_0x21690e['end']})));}function _(_0x2c78fb){const _0x138457=_0x5e2e85;if(_0x2c78fb['length']===0x0)return[];let _0x3df7d5=[..._0x2c78fb]['sort']((_0x3f0584,_0x3f73b0)=>_0x3f0584['start']-_0x3f73b0['start']||_0x3f0584[_0x138457(0x19f)]-_0x3f73b0['end']),_0x538bb3=[];for(let _0x2325fa of _0x3df7d5){let _0x5127e4=_0x538bb3[_0x538bb3[_0x138457(0x243)]-0x1];!_0x5127e4||_0x2325fa[_0x138457(0x19e)]>_0x5127e4['end']+0x1?_0x538bb3[_0x138457(0x1d5)]({..._0x2325fa}):_0x5127e4[_0x138457(0x19f)]=Math[_0x138457(0x226)](_0x5127e4['end'],_0x2325fa[_0x138457(0x19f)]);}return _0x538bb3;}function v(_0x3e6063,_0x1dd9bd){const _0x208288=_0x5e2e85;return _0x1dd9bd[_0x208288(0x25c)]<=0x0?_0x3e6063:x(_0x3e6063['map'](_0x12b35b=>d(_0x12b35b,_0x1dd9bd)?_0x1dd9bd[_0x208288(0x18b)]<=_0x12b35b[_0x208288(0x19e)]?{..._0x12b35b,'start':_0x12b35b[_0x208288(0x19e)]+_0x1dd9bd['count'],'end':_0x12b35b['end']+_0x1dd9bd[_0x208288(0x25c)]}:_0x12b35b[_0x208288(0x19e)]<_0x1dd9bd[_0x208288(0x18b)]&&_0x1dd9bd[_0x208288(0x18b)]<=_0x12b35b[_0x208288(0x19f)]?{..._0x12b35b,'end':_0x12b35b[_0x208288(0x19f)]+_0x1dd9bd[_0x208288(0x25c)]}:_0x12b35b:_0x12b35b));}function y(_0x32c660,_0x32f5f4){const _0x441940=_0x5e2e85;if(_0x32f5f4[_0x441940(0x19e)]>_0x32f5f4[_0x441940(0x19f)])return _0x32c660;let _0x488fbc=_0x32f5f4[_0x441940(0x19f)]-_0x32f5f4[_0x441940(0x19e)]+0x1,_0x16288d=[];for(let _0x3fe186 of _0x32c660){if(!d(_0x3fe186,_0x32f5f4)){_0x16288d[_0x441940(0x1d5)](_0x3fe186);continue;}if(_0x3fe186[_0x441940(0x19f)]<_0x32f5f4[_0x441940(0x19e)]){_0x16288d[_0x441940(0x1d5)](_0x3fe186);continue;}if(_0x3fe186['start']>_0x32f5f4[_0x441940(0x19f)]){_0x16288d['push']({..._0x3fe186,'start':_0x3fe186['start']-_0x488fbc,'end':_0x3fe186['end']-_0x488fbc});continue;}let _0xa433d0=Math[_0x441940(0x226)](_0x3fe186[_0x441940(0x19e)],_0x32f5f4[_0x441940(0x19e)]),_0x29bf94=Math[_0x441940(0x207)](_0x3fe186[_0x441940(0x19f)],_0x32f5f4['end']),_0x3656e7=Math[_0x441940(0x226)](0x0,_0x29bf94-_0xa433d0+0x1),_0x20049d=_0x3fe186[_0x441940(0x19f)]-_0x3fe186[_0x441940(0x19e)]+0x1-_0x3656e7;if(_0x20049d<=0x0)continue;let _0xb18dd3=_0x3fe186[_0x441940(0x19e)]<_0x32f5f4[_0x441940(0x19e)]?_0x3fe186[_0x441940(0x19e)]:_0x32f5f4['start'];_0x16288d[_0x441940(0x1d5)]({..._0x3fe186,'start':_0xb18dd3,'end':_0xb18dd3+_0x20049d-0x1});}return x(_0x16288d);}function b(_0x14eb74,_0x22b36d){const _0xb38bab=_0x5e2e85;if(_0x22b36d[_0xb38bab(0x234)]>_0x22b36d['sourceEnd'])return _0x14eb74;let _0x4c9cd8=[];for(let _0x42c3ab of _0x14eb74){if(!d(_0x42c3ab,_0x22b36d)){_0x4c9cd8[_0xb38bab(0x1d5)](_0x42c3ab);continue;}let _0x418d1e=te(_0x42c3ab,_0x22b36d);if(_0x418d1e[_0xb38bab(0x1d4)]===_0xb38bab(0x18d))throw new s(_0xb38bab(0x22b),'Move\x20would\x20split\x20dimension\x20outline:\x20'+_0x42c3ab['id'],_0x42c3ab['id']);_0x4c9cd8[_0xb38bab(0x1d5)](_0x418d1e[_0xb38bab(0x1af)]);}return x(_0x4c9cd8);}function te(_0x5316b0,_0x511680){const _0x1718ee=_0x5e2e85;let _0x51ddc7=ne(_0x511680['sourceStart'],_0x511680[_0x1718ee(0x1ef)]+0x1,_0x511680[_0x1718ee(0x1d0)]),_0x1db217=[],_0x15c549={'start':_0x5316b0[_0x1718ee(0x19e)],'end':_0x5316b0[_0x1718ee(0x19f)]+0x1};for(let _0x489e19 of _0x51ddc7){let _0x522b5f=re(_0x15c549,_0x489e19['range']);_0x522b5f&&_0x1db217[_0x1718ee(0x1d5)]({'start':_0x522b5f[_0x1718ee(0x19e)]+_0x489e19[_0x1718ee(0x1a3)],'end':_0x522b5f['end']+_0x489e19[_0x1718ee(0x1a3)]});}let _0x527e88=ie(_0x1db217);return _0x527e88['length']===0x1?{'type':'ok','outline':{..._0x5316b0,'start':_0x527e88[0x0][_0x1718ee(0x19e)],'end':_0x527e88[0x0][_0x1718ee(0x19f)]-0x1}}:{'type':_0x1718ee(0x18d),'outline':_0x5316b0,'ranges':_0x527e88};}function ne(_0x4bab84,_0x540470,_0x3fbdb1){const _0x3f2c6b=_0x5e2e85;let _0x3da92c=_0x540470-_0x4bab84;if(_0x3da92c<=0x0)throw Error(_0x3f2c6b(0x223));return _0x3fbdb1>=_0x4bab84&&_0x3fbdb1<=_0x540470?[{'range':{'start':0x0,'end':u},'offset':0x0}]:_0x3fbdb1<_0x4bab84?[{'range':{'start':0x0,'end':_0x3fbdb1},'offset':0x0},{'range':{'start':_0x3fbdb1,'end':_0x4bab84},'offset':_0x3da92c},{'range':{'start':_0x4bab84,'end':_0x540470},'offset':_0x3fbdb1-_0x4bab84},{'range':{'start':_0x540470,'end':u},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x4bab84},'offset':0x0},{'range':{'start':_0x4bab84,'end':_0x540470},'offset':_0x3fbdb1-_0x540470},{'range':{'start':_0x540470,'end':_0x3fbdb1},'offset':-_0x3da92c},{'range':{'start':_0x3fbdb1,'end':u},'offset':0x0}];}function re(_0x22ec36,_0x55daf){const _0x17560b=_0x5e2e85;let _0x1db050=Math[_0x17560b(0x226)](_0x22ec36[_0x17560b(0x19e)],_0x55daf[_0x17560b(0x19e)]),_0x91a0f8=Math[_0x17560b(0x207)](_0x22ec36[_0x17560b(0x19f)],_0x55daf[_0x17560b(0x19f)]);return _0x1db050>=_0x91a0f8?null:{'start':_0x1db050,'end':_0x91a0f8};}function ie(_0x180f43){const _0x3144d0=_0x5e2e85;if(_0x180f43[_0x3144d0(0x243)]===0x0)return[];let _0x4dd814=[..._0x180f43][_0x3144d0(0x246)]((_0x375b96,_0x1a8e8a)=>_0x375b96[_0x3144d0(0x19e)]-_0x1a8e8a['start']||_0x375b96[_0x3144d0(0x19f)]-_0x1a8e8a[_0x3144d0(0x19f)]),_0xa9d840=[];for(let _0x3a5e8b of _0x4dd814){let _0x34b45a=_0xa9d840[_0xa9d840[_0x3144d0(0x243)]-0x1];!_0x34b45a||_0x3a5e8b[_0x3144d0(0x19e)]>_0x34b45a[_0x3144d0(0x19f)]?_0xa9d840[_0x3144d0(0x1d5)]({..._0x3a5e8b}):_0x34b45a[_0x3144d0(0x19f)]=Math[_0x3144d0(0x226)](_0x34b45a[_0x3144d0(0x19f)],_0x3a5e8b[_0x3144d0(0x19f)]);}return _0xa9d840;}function ae(_0x5eb994,_0x3a7c2c,_0x3e20ef,_0x11dc01){return _0x3a7c2c+0x1===_0x3e20ef||_0x11dc01+0x1===_0x5eb994;}function x(_0x1273a9){let _0x11c5de=oe(_0x1273a9);return f(_0x11c5de),_0x11c5de;}function oe(_0x320978){const _0x355b06=_0x5e2e85;let _0x336f6c=new Map();for(let _0x4a926c of _0x320978){let _0x1dca43=[_0x4a926c[_0x355b06(0x19b)],_0x4a926c[_0x355b06(0x1eb)],_0x4a926c['axis'],_0x4a926c[_0x355b06(0x19e)],_0x4a926c['end']]['join'](':'),_0x359adc=_0x336f6c[_0x355b06(0x25e)](_0x1dca43);if(!_0x359adc){_0x336f6c['set'](_0x1dca43,_0x4a926c);continue;}_0x336f6c['set'](_0x1dca43,{..._0x359adc,'collapsed':_0x359adc['collapsed']||_0x4a926c[_0x355b06(0x19d)]});}return Array[_0x355b06(0x260)](_0x336f6c[_0x355b06(0x227)]());}function S(_0x2cd041,_0x27bfeb){const _0x2a826a=_0x5e2e85;return _0x2cd041[_0x2a826a(0x19b)]===_0x27bfeb[_0x2a826a(0x19b)]?_0x2cd041['subUnitId']===_0x27bfeb[_0x2a826a(0x1eb)]?_0x2cd041['axis']===_0x27bfeb[_0x2a826a(0x22a)]?_0x2cd041[_0x2a826a(0x19e)]===_0x27bfeb[_0x2a826a(0x19e)]?_0x27bfeb[_0x2a826a(0x19f)]-_0x2cd041['end']:_0x2cd041[_0x2a826a(0x19e)]-_0x27bfeb[_0x2a826a(0x19e)]:_0x2cd041['axis'][_0x2a826a(0x23d)](_0x27bfeb[_0x2a826a(0x22a)]):_0x2cd041[_0x2a826a(0x1eb)]['localeCompare'](_0x27bfeb[_0x2a826a(0x1eb)]):_0x2cd041[_0x2a826a(0x19b)][_0x2a826a(0x23d)](_0x27bfeb[_0x2a826a(0x19b)]);}function se(_0x13d82b){const _0xca7b2f=_0x5e2e85;if(_0x13d82b[_0xca7b2f(0x19e)]>_0x13d82b[_0xca7b2f(0x19f)])throw new s(_0xca7b2f(0x21e),_0xca7b2f(0x1ea),_0x13d82b['id']);}function C(_0x26c262,_0x5b3af9){const _0x309b8f=_0x5e2e85;let _0x3af372=_0x26c262[_0x309b8f(0x19e)]<=_0x5b3af9[_0x309b8f(0x19f)]&&_0x5b3af9[_0x309b8f(0x19e)]<=_0x26c262[_0x309b8f(0x19f)],_0x59e0b7=_0x26c262[_0x309b8f(0x19e)]<=_0x5b3af9['start']&&_0x5b3af9[_0x309b8f(0x19f)]<=_0x26c262[_0x309b8f(0x19f)],_0x341734=_0x5b3af9[_0x309b8f(0x19e)]<=_0x26c262[_0x309b8f(0x19e)]&&_0x26c262['end']<=_0x5b3af9[_0x309b8f(0x19f)];return _0x3af372&&!_0x59e0b7&&!_0x341734;}function w(_0x17257a){'@babel/helpers - typeof';const _0x5db63e=_0x5e2e85;return w=typeof Symbol==_0x5db63e(0x201)&&typeof Symbol[_0x5db63e(0x1d6)]=='symbol'?function(_0x125dcc){return typeof _0x125dcc;}:function(_0x32d96e){const _0x5d2dd0=_0x5db63e;return _0x32d96e&&typeof Symbol==_0x5d2dd0(0x201)&&_0x32d96e[_0x5d2dd0(0x1b5)]===Symbol&&_0x32d96e!==Symbol[_0x5d2dd0(0x25b)]?_0x5d2dd0(0x233):typeof _0x32d96e;},w(_0x17257a);}function ce(_0x592c2a,_0x1ed8d){const _0x15fdc2=_0x5e2e85;if(w(_0x592c2a)!='object'||!_0x592c2a)return _0x592c2a;var _0x2017e8=_0x592c2a[Symbol[_0x15fdc2(0x18a)]];if(_0x2017e8!==void 0x0){var _0x480c04=_0x2017e8['call'](_0x592c2a,_0x1ed8d||_0x15fdc2(0x1ed));if(w(_0x480c04)!=_0x15fdc2(0x196))return _0x480c04;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1ed8d===_0x15fdc2(0x249)?String:Number)(_0x592c2a);}function le(_0x2ef618){const _0x46a5b2=_0x5e2e85;var _0x401dee=ce(_0x2ef618,_0x46a5b2(0x249));return w(_0x401dee)==_0x46a5b2(0x233)?_0x401dee:_0x401dee+'';}function T(_0x33168e,_0x5d38c9,_0x3f2d51){const _0x20966f=_0x5e2e85;return(_0x5d38c9=le(_0x5d38c9))in _0x33168e?Object[_0x20966f(0x1f9)](_0x33168e,_0x5d38c9,{'value':_0x3f2d51,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x33168e[_0x5d38c9]=_0x3f2d51,_0x33168e;}var E=class extends e[_0x5e2e85(0x1b3)]{constructor(..._0x500b2c){const _0x2cd26e=_0x5e2e85;super(..._0x500b2c),T(this,_0x2cd26e(0x240),new Map()),T(this,_0x2cd26e(0x1c8),new n['Subject']()),T(this,'change$',this[_0x2cd26e(0x1c8)]['asObservable']());}[_0x5e2e85(0x247)](_0x351da4,_0x5d4026){const _0x477065=_0x5e2e85;var _0x32d4af;return[...((_0x32d4af=this[_0x477065(0x240)][_0x477065(0x25e)](_0x351da4))==null?void 0x0:_0x32d4af[_0x477065(0x25e)](_0x5d4026))??[]];}[_0x5e2e85(0x236)](_0x5232ac){const _0x466aa7=_0x5e2e85;let _0x4913f2=this[_0x466aa7(0x240)][_0x466aa7(0x25e)](_0x5232ac),_0x1277aa=new Map();return _0x4913f2==null||_0x4913f2[_0x466aa7(0x1fe)]((_0x5155f2,_0x2e7e83)=>{const _0x35680c=_0x466aa7;_0x1277aa[_0x35680c(0x1b0)](_0x2e7e83,[..._0x5155f2]);}),_0x1277aa;}[_0x5e2e85(0x203)](_0x17bc4e,_0x38e8dd,_0x2dd8a4){const _0xa83c1c=_0x5e2e85;this[_0xa83c1c(0x209)](_0x17bc4e)['set'](_0x38e8dd,[..._0x2dd8a4]),this[_0xa83c1c(0x1c8)][_0xa83c1c(0x20b)]({'unitId':_0x17bc4e,'subUnitId':_0x38e8dd});}['removeUnit'](_0x57f010){const _0x20123e=_0x5e2e85;this[_0x20123e(0x240)]['delete'](_0x57f010),this[_0x20123e(0x1c8)][_0x20123e(0x20b)]({'unitId':_0x57f010});}[_0x5e2e85(0x239)](_0x277e80){const _0x54b07e=_0x5e2e85;let _0x2a2407=this[_0x54b07e(0x240)][_0x54b07e(0x25e)](_0x277e80),_0x20c9a4={};return _0x2a2407==null||_0x2a2407[_0x54b07e(0x1fe)]((_0x450cbe,_0x11c864)=>{_0x20c9a4[_0x11c864]={'outlineList':[..._0x450cbe]};}),_0x20c9a4;}[_0x5e2e85(0x1f2)](_0x78b42,_0x204c6a){const _0x48d23f=_0x5e2e85;let _0x7751c7=new Map();Object[_0x48d23f(0x193)](_0x204c6a)[_0x48d23f(0x1fe)](([_0x1ad4f0,_0x588b42])=>{const _0x2ba433=_0x48d23f;_0x7751c7[_0x2ba433(0x1b0)](_0x1ad4f0,[..._0x588b42[_0x2ba433(0x213)]??[]]);}),this[_0x48d23f(0x240)][_0x48d23f(0x1b0)](_0x78b42,_0x7751c7),this[_0x48d23f(0x1c8)][_0x48d23f(0x20b)]({'unitId':_0x78b42});}[_0x5e2e85(0x25f)](){const _0x8e88aa=_0x5e2e85;super[_0x8e88aa(0x25f)](),this[_0x8e88aa(0x240)][_0x8e88aa(0x1ad)](),this[_0x8e88aa(0x1c8)]['complete']();}[_0x5e2e85(0x209)](_0x45b02a){const _0x21e6d1=_0x5e2e85;let _0x5af0de=this['_outlines'][_0x21e6d1(0x25e)](_0x45b02a);return _0x5af0de||(_0x5af0de=new Map(),this[_0x21e6d1(0x240)][_0x21e6d1(0x1b0)](_0x45b02a,_0x5af0de)),_0x5af0de;}},D=class extends e['Disposable']{constructor(..._0x1d640a){const _0x5bf5cd=_0x5e2e85;super(..._0x1d640a),T(this,'_error$',new n['Subject']()),T(this,_0x5bf5cd(0x23e),this[_0x5bf5cd(0x259)]['asObservable']());}[_0x5e2e85(0x1f8)](_0x569ea2){const _0x37bfa1=_0x5e2e85;this[_0x37bfa1(0x259)][_0x37bfa1(0x20b)](_0x569ea2);}[_0x5e2e85(0x25f)](){const _0x2d1ed2=_0x5e2e85;super[_0x2d1ed2(0x25f)](),this[_0x2d1ed2(0x259)][_0x2d1ed2(0x229)]();}};const O={'id':'sheet.mutation.add-dimension-outline','type':e['CommandType'][_0x5e2e85(0x1e9)],'handler':(_0x21b5cc,_0x1353c3)=>{const _0x19676f=_0x5e2e85;let _0x1dfe3f=_0x21b5cc[_0x19676f(0x25e)](E),_0x246565=_0x1dfe3f['getOutlines'](_0x1353c3['unitId'],_0x1353c3[_0x19676f(0x1eb)]);return _0x1dfe3f[_0x19676f(0x203)](_0x1353c3['unitId'],_0x1353c3[_0x19676f(0x1eb)],m(_0x246565,_0x1353c3[_0x19676f(0x1af)])),!0x0;}},k={'id':'sheet.mutation.remove-dimension-outline','type':e[_0x5e2e85(0x218)][_0x5e2e85(0x1e9)],'handler':(_0x3ecbfb,_0x577c01)=>{const _0x4a522d=_0x5e2e85;let _0x1741f0=_0x3ecbfb[_0x4a522d(0x25e)](E),_0x5b13bd=_0x1741f0[_0x4a522d(0x247)](_0x577c01[_0x4a522d(0x19b)],_0x577c01[_0x4a522d(0x1eb)]);return _0x1741f0[_0x4a522d(0x203)](_0x577c01['unitId'],_0x577c01[_0x4a522d(0x1eb)],_0x5b13bd[_0x4a522d(0x190)](_0x2a99df=>_0x2a99df['id']!==_0x577c01[_0x4a522d(0x23a)])),!0x0;}};function A(_0x466b78,_0x7daf50,_0xc708b3){const _0x74f85a=_0x5e2e85;let _0x237407=de(_0x466b78);return!_0x237407||_0x237407[_0x74f85a(0x1a2)]({'workbookTypes':[t[_0x74f85a(0x222)]],'worksheetTypes':[t[_0x74f85a(0x1a1)]]},_0x7daf50,_0xc708b3);}function ue(_0x5166a4,_0xc5f865,_0x40067e){const _0xa97e8d=_0x5e2e85;let _0x38159b=fe(_0x5166a4);return((_0x38159b==null?void 0x0:_0x38159b[_0xa97e8d(0x221)])??(0x0,n['of'])(null))[_0xa97e8d(0x1ae)]((0x0,r[_0xa97e8d(0x1bd)])(0x64),(0x0,r['startWith'])(null),(0x0,r['map'])(()=>A(_0x5166a4,_0xc5f865,_0x40067e)));}function de(_0x15a05b){const _0x358ece=_0x5e2e85;if(typeof _0x15a05b[_0x358ece(0x1d9)]==_0x358ece(0x201)&&!_0x15a05b[_0x358ece(0x1d9)](t[_0x358ece(0x21c)]))return null;try{return _0x15a05b[_0x358ece(0x25e)](t[_0x358ece(0x21c)]);}catch{return null;}}function fe(_0x58fe02){const _0xc85ac7=_0x5e2e85;if(typeof _0x58fe02['has']==_0xc85ac7(0x201)&&!_0x58fe02[_0xc85ac7(0x1d9)](e[_0xc85ac7(0x24f)]))return null;try{return _0x58fe02[_0xc85ac7(0x25e)](e[_0xc85ac7(0x24f)]);}catch{return null;}}const j={'id':_0x5e2e85(0x248),'type':e[_0x5e2e85(0x218)][_0x5e2e85(0x23f)],'handler':(_0x3304e6,_0x5de15d)=>{const _0x1ac33f=_0x5e2e85;if(!_0x5de15d)return!0x1;let _0x3395ab=(0x0,t[_0x1ac33f(0x245)])(_0x3304e6['get'](e['IUniverInstanceService']),_0x5de15d);if(!_0x3395ab)return!0x1;let {unitId:_0x3ee468,subUnitId:_0x1f0063,worksheet:_0x216b4c}=_0x3395ab;if(!A(_0x3304e6,_0x3ee468,_0x1f0063))return!0x1;let _0x46e076=_0x3304e6['get'](E),_0xd5ef46={'id':'dimension-outline-'+(0x0,e[_0x1ac33f(0x1f6)])(0x6),'unitId':_0x3ee468,'subUnitId':_0x1f0063,'axis':_0x5de15d['axis'],'start':_0x5de15d[_0x1ac33f(0x19e)],'end':_0x5de15d['end'],'collapsed':!0x1},_0xb71f95=_0x5de15d[_0x1ac33f(0x22a)]===_0x1ac33f(0x261)?_0x216b4c[_0x1ac33f(0x1ec)]():_0x216b4c[_0x1ac33f(0x1da)](),_0x599cb7=_0x46e076[_0x1ac33f(0x247)](_0x3ee468,_0x1f0063),_0x34df89=ee(_0x599cb7,_0xd5ef46),_0x47cdd9=(_0x34df89==null?void 0x0:_0x34df89[_0x1ac33f(0x1a5)])??[],_0x1774f1=(_0x34df89==null?void 0x0:_0x34df89[_0x1ac33f(0x1e8)])??_0xd5ef46,_0x38b806=p(_0x34df89?_0x599cb7['filter'](_0x39d268=>!_0x47cdd9['some'](_0xfb2228=>_0xfb2228['id']===_0x39d268['id'])):_0x599cb7,_0x1774f1,{'maxIndex':_0xb71f95});if(!_0x38b806[_0x1ac33f(0x250)])return _0x3304e6['get'](D)[_0x1ac33f(0x1f8)]({'reason':_0x38b806[_0x1ac33f(0x1e2)]??_0x1ac33f(0x198),'commandId':j['id'],'unitId':_0x3ee468,'subUnitId':_0x1f0063,'axis':_0x5de15d[_0x1ac33f(0x22a)],'outlineId':_0x1774f1['id']}),!0x1;let _0x29969b=[..._0x47cdd9[_0x1ac33f(0x1f3)](_0x226ea8=>({'id':k['id'],'params':{'unitId':_0x3ee468,'subUnitId':_0x1f0063,'outlineId':_0x226ea8['id']}})),{'id':O['id'],'params':{'unitId':_0x3ee468,'subUnitId':_0x1f0063,'outline':_0x1774f1}}],_0x309c33=[{'id':k['id'],'params':{'unitId':_0x3ee468,'subUnitId':_0x1f0063,'outlineId':_0x1774f1['id']}},..._0x47cdd9[_0x1ac33f(0x1f3)](_0x473890=>({'id':O['id'],'params':{'unitId':_0x3ee468,'subUnitId':_0x1f0063,'outline':_0x473890}}))];return(0x0,e[_0x1ac33f(0x1c6)])(_0x29969b,_0x3304e6[_0x1ac33f(0x25e)](e[_0x1ac33f(0x18c)]))[_0x1ac33f(0x22e)]?(_0x3304e6[_0x1ac33f(0x25e)](e[_0x1ac33f(0x1cf)])['pushUndoRedo']({'unitID':_0x3ee468,'undoMutations':_0x309c33,'redoMutations':_0x29969b}),!0x0):!0x1;}},M={'id':_0x5e2e85(0x22d),'type':e['CommandType']['MUTATION'],'handler':(_0xfe30e2,_0x5bdeb1)=>{const _0x1b4f35=_0x5e2e85;let _0x451f93=_0xfe30e2[_0x1b4f35(0x25e)](E),_0x273b63=_0x451f93['getOutlines'](_0x5bdeb1[_0x1b4f35(0x19b)],_0x5bdeb1[_0x1b4f35(0x1eb)]);return _0x451f93[_0x1b4f35(0x203)](_0x5bdeb1[_0x1b4f35(0x19b)],_0x5bdeb1[_0x1b4f35(0x1eb)],h(_0x273b63,_0x5bdeb1)),!0x0;}},N={'id':_0x5e2e85(0x21d),'type':e[_0x5e2e85(0x218)][_0x5e2e85(0x23f)],'handler':(_0x18043f,_0x34d376)=>{const _0x141c76=_0x5e2e85;if(!_0x34d376)return!0x1;let _0x4e3ae6=(0x0,t[_0x141c76(0x245)])(_0x18043f[_0x141c76(0x25e)](e[_0x141c76(0x1d7)]),_0x34d376);if(!_0x4e3ae6)return!0x1;let {unitId:_0x3d6134,subUnitId:_0x52dc43}=_0x4e3ae6;if(!A(_0x18043f,_0x3d6134,_0x52dc43))return!0x1;let _0x260b68={'unitId':_0x3d6134,'subUnitId':_0x52dc43,'axis':_0x34d376[_0x141c76(0x22a)],'start':_0x34d376[_0x141c76(0x19e)],'end':_0x34d376[_0x141c76(0x19f)]},_0x5bb278=_0x18043f[_0x141c76(0x25e)](E)[_0x141c76(0x247)](_0x3d6134,_0x52dc43)[_0x141c76(0x190)](_0xa7ec2f=>d(_0xa7ec2f,_0x260b68)&&_0xa7ec2f['start']>=_0x34d376['start']&&_0xa7ec2f[_0x141c76(0x19f)]<=_0x34d376[_0x141c76(0x19f)]);if(_0x5bb278[_0x141c76(0x243)]===0x0)return _0x18043f[_0x141c76(0x25e)](D)['emit']({'reason':_0x141c76(0x254),'commandId':N['id'],'unitId':_0x3d6134,'subUnitId':_0x52dc43,'axis':_0x34d376[_0x141c76(0x22a)]}),!0x1;let _0x3f4873=[{'id':M['id'],'params':{..._0x260b68,'removedOutlineIds':_0x5bb278[_0x141c76(0x1f3)](_0x59bcde=>_0x59bcde['id'])}}],_0x27bd03=_0x5bb278[_0x141c76(0x1f3)](_0x5dbf1e=>({'id':O['id'],'params':{'unitId':_0x3d6134,'subUnitId':_0x52dc43,'outline':_0x5dbf1e}}));return(0x0,e[_0x141c76(0x1c6)])(_0x3f4873,_0x18043f[_0x141c76(0x25e)](e['ICommandService']))['result']?(_0x18043f[_0x141c76(0x25e)](e['IUndoRedoService'])[_0x141c76(0x188)]({'unitID':_0x3d6134,'undoMutations':_0x27bd03,'redoMutations':_0x3f4873}),!0x0):!0x1;}},P={'id':_0x5e2e85(0x1a0),'type':e['CommandType'][_0x5e2e85(0x23f)],'handler':(_0x35c45a,_0x176394)=>{const _0xc95780=_0x5e2e85;if(!_0x176394)return!0x1;let _0x36e813=(0x0,t[_0xc95780(0x245)])(_0x35c45a[_0xc95780(0x25e)](e[_0xc95780(0x1d7)]),_0x176394);if(!_0x36e813)return!0x1;let {unitId:_0x23bfe0,subUnitId:_0xfceab}=_0x36e813;if(!A(_0x35c45a,_0x23bfe0,_0xfceab))return!0x1;let _0x179490=_0x35c45a[_0xc95780(0x25e)](E)['getOutlines'](_0x23bfe0,_0xfceab)[_0xc95780(0x211)](_0x4af9c7=>_0x4af9c7['id']===_0x176394[_0xc95780(0x23a)]);if(!_0x179490)return!0x1;let _0x25a579=[{'id':k['id'],'params':{'unitId':_0x23bfe0,'subUnitId':_0xfceab,'outlineId':_0x179490['id'],'outline':_0x179490}}],_0x298de4=[{'id':O['id'],'params':{'unitId':_0x23bfe0,'subUnitId':_0xfceab,'outline':_0x179490}}];return(0x0,e[_0xc95780(0x1c6)])(_0x25a579,_0x35c45a['get'](e[_0xc95780(0x18c)]))[_0xc95780(0x22e)]?(_0x35c45a[_0xc95780(0x25e)](e[_0xc95780(0x1cf)])[_0xc95780(0x188)]({'unitID':_0x23bfe0,'undoMutations':_0x298de4,'redoMutations':_0x25a579}),!0x0):!0x1;}},F={'id':_0x5e2e85(0x1ac),'type':e[_0x5e2e85(0x218)]['MUTATION'],'handler':(_0x49c35b,_0x2bd7b6)=>{const _0x5ef3c3=_0x5e2e85;let _0x2a417b=_0x49c35b[_0x5ef3c3(0x25e)](E),_0x506ce9=_0x2a417b[_0x5ef3c3(0x247)](_0x2bd7b6['unitId'],_0x2bd7b6[_0x5ef3c3(0x1eb)]),_0x549adf=_0x506ce9['find'](_0x57a808=>_0x57a808['id']===_0x2bd7b6[_0x5ef3c3(0x23a)]);return _0x549adf&&_0x2a417b['setOutlines'](_0x2bd7b6[_0x5ef3c3(0x19b)],_0x2bd7b6[_0x5ef3c3(0x1eb)],_0x506ce9['map'](_0x130f3f=>_0x130f3f['unitId']!==_0x549adf['unitId']||_0x130f3f['subUnitId']!==_0x549adf[_0x5ef3c3(0x1eb)]||_0x130f3f[_0x5ef3c3(0x22a)]!==_0x549adf[_0x5ef3c3(0x22a)]||_0x130f3f[_0x5ef3c3(0x19e)]!==_0x549adf[_0x5ef3c3(0x19e)]||_0x130f3f[_0x5ef3c3(0x19f)]!==_0x549adf[_0x5ef3c3(0x19f)]?_0x130f3f:{..._0x130f3f,'collapsed':_0x2bd7b6['collapsed']})),!0x0;}};function I(_0x1e5199,_0x4d97aa,_0x3918ab,_0x1c0c1d){const _0x376625=_0x5e2e85;return _0x1e5199===_0x376625(0x261)?{'startRow':_0x4d97aa,'endRow':_0x3918ab,'startColumn':0x0,'endColumn':_0x1c0c1d[_0x376625(0x1c9)]()-0x1}:{'startRow':0x0,'endRow':_0x1c0c1d[_0x376625(0x1ec)]()-0x1,'startColumn':_0x4d97aa,'endColumn':_0x3918ab};}function pe(_0x35c40f){const _0x59579d=_0x5e2e85;return _0x35c40f==='row'?t['SetRowHiddenMutation']['id']:t[_0x59579d(0x1a7)]['id'];}function me(_0x393f30){const _0x223a21=_0x5e2e85;return _0x393f30===_0x223a21(0x261)?t[_0x223a21(0x1b4)]['id']:t['SetColVisibleMutation']['id'];}function L(_0xde828,_0x5efb89,_0x2058fa,_0x34a46e){const _0x1b1e41=_0x5e2e85;let _0x48178b=_0x5efb89?[I(_0xde828[_0x1b1e41(0x22a)],_0xde828['start'],_0xde828[_0x1b1e41(0x19f)],_0x2058fa)]:he(_0xde828,_0x34a46e,_0x2058fa),_0x2642d8=_0x5efb89?pe(_0xde828[_0x1b1e41(0x22a)]):me(_0xde828[_0x1b1e41(0x22a)]);return[{'id':F['id'],'params':{'unitId':_0xde828[_0x1b1e41(0x19b)],'subUnitId':_0xde828['subUnitId'],'outlineId':_0xde828['id'],'outline':_0xde828,'collapsed':_0x5efb89}},..._0x48178b[_0x1b1e41(0x1f3)](_0x2e282b=>({'id':_0x2642d8,'params':{'unitId':_0xde828[_0x1b1e41(0x19b)],'subUnitId':_0xde828[_0x1b1e41(0x1eb)],'ranges':[_0x2e282b],'dimensionOutlineId':_0xde828['id']}}))];}function he(_0x447ad6,_0x2c035f,_0x2b8248){const _0x50f944=_0x5e2e85;let _0xd8cf49=g(_0x2c035f['map'](_0x71b240=>R(_0x71b240,_0x447ad6)?{..._0x71b240,'collapsed':!0x1}:_0x71b240),_0x447ad6['unitId'],_0x447ad6[_0x50f944(0x1eb)],_0x447ad6[_0x50f944(0x22a)]);return ge({'start':_0x447ad6[_0x50f944(0x19e)],'end':_0x447ad6[_0x50f944(0x19f)]},_0xd8cf49)[_0x50f944(0x1f3)](_0x1c5ac3=>I(_0x447ad6[_0x50f944(0x22a)],_0x1c5ac3[_0x50f944(0x19e)],_0x1c5ac3[_0x50f944(0x19f)],_0x2b8248));}function R(_0x22c6d2,_0x21296f){const _0x5bca0f=_0x5e2e85;return _0x22c6d2[_0x5bca0f(0x19b)]===_0x21296f['unitId']&&_0x22c6d2['subUnitId']===_0x21296f[_0x5bca0f(0x1eb)]&&_0x22c6d2[_0x5bca0f(0x22a)]===_0x21296f[_0x5bca0f(0x22a)]&&_0x22c6d2[_0x5bca0f(0x19e)]===_0x21296f['start']&&_0x22c6d2['end']===_0x21296f[_0x5bca0f(0x19f)];}function _0xd4ca(){const _0x479da1=['SetRowVisibleMutation','constructor','maxDepth','_initResource','pluginName','MoveColsCommand','_commandService','1.0.0-beta.0','Plugin','debounceTime','max-depth','1636330ItBGQJ','add','getActiveSheet','sheet.command.set-dimension-outline-collapsed','hasDimensionOutlineViewPermission','delete','AddDimensionOutlineCommand','sequenceExecute','_getCommandScope','_change$','getMaxColumns','getSheetId','Inject','_initCommandInterceptor','toStringTag','decorate','IUndoRedoService','destinationIndex','canAddDimensionOutline','SetDimensionOutlineCollapsedCommand','InsertColCommand','type','push','iterator','IUniverInstanceService','TransformDimensionOutlinesMutation','has','getColumnCount','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','_sheetInterceptorService','SheetInterceptorService','IConfigService','setConfig','removeUnit','pop','reason','params','_initRegisterCommand','name','2SElkgy','RemoveRowCommand','mergedOutline','MUTATION','Invalid\x20outline\x20range','subUnitId','getRowCount','default','UniverSheetsOutlinePlugin','sourceEnd','2477073zjvzej','1062530oBkSVG','deserialize','map','UniverInstanceType','stringify','generateRandomId','@univerjs-pro/sheets-outline','emit','defineProperty','Crossing','undos','redos','getOwnPropertyDescriptor','forEach','5403419CZYrSA','column','function','RemoveDimensionOutlineMutation','setOutlines','getDimensionOutlineViewPermission$','transformOutlinesByMove','toRange','min','MoveRowsCommand','_ensureUnitOutlines','_sheetsOutlineErrorService','next','_sheetsOutlineModel','restoreOutlines','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','3079087VXHzPQ','includes','find','sheets-outline.config','outlineList','Module','9235FadmWx','startRow','5136608uEabmF','CommandType','fromRange','24pCZRdK','merge','SheetPermissionCheckController','sheet.command.clear-dimension-outlines','invalid-range','_univerInstanceService','COLUMN','permissionPointUpdate$','WorkbookViewPermission','Invalid\x20dimension\x20outline\x20move\x20source\x20range','InsertRowCommand','registerCommand','max','values','UNKNOWN','complete','axis','move-splits-outline','DimensionOutlineError','sheet.mutation.clear-dimension-outlines','result','insert','registerPluginResource','_configService','depth','symbol','sourceStart','buildDimensionOutlineTree','getUnitOutlines','version','getUnitId','serialize','outlineId','SHEET_OUTLINE_PLUGIN','children','localeCompare','error$','COMMAND','_outlines','DimensionOutlineErrorReason','ClearDimensionOutlinesCommand','length','disposeWithMe','getSheetCommandTarget','sort','getOutlines','sheet.command.add-dimension-outline','string','parse','transformOutlinesByDelete','endColumn','message','ClearDimensionOutlinesMutation','IPermissionService','valid','startColumn','crossing','maxIndex','clear-range-not-contain-outline','out-of-bounds','RemoveDimensionOutlineCommand','RemoveColCommand','move','_error$','UniverLicensePlugin','prototype','count','_resourceManagerService','get','dispose','from','row','pushUndoRedo','split\x20dimension\x20outline','toPrimitive','index','ICommandService','split','AddDimensionOutlineMutation','444DCltIL','filter','_injector','MAX_DEPTH','entries','SheetsOutlineErrorService','packageName','object','range','unknown','onStarting','SetDimensionOutlineCollapsedMutation','unitId','UNIVER_SHEET','collapsed','start','end','sheet.command.remove-dimension-outline','WorksheetViewPermission','permissionCheckWithoutRange','offset','Invalid\x20dimension\x20outline\x20mutation','mergedOutlines','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','SetColHiddenMutation','99JWqGQh','OUT_OF_BOUNDS','ROW','6FGpTZx','sheet.mutation.set-dimension-outline-collapsed','clear','pipe','outline','set','getCurrentUnitOfType','endRow','Disposable'];_0xd4ca=function(){return _0x479da1;};return _0xd4ca();}function ge(_0x1dc0d9,_0x1e86cf){const _0x1788e3=_0x5e2e85;let _0x1145e0=_0x1dc0d9[_0x1788e3(0x19e)],_0x157764=[];for(let _0x35b463 of _0x1e86cf)if(!(_0x35b463[_0x1788e3(0x19f)]<_0x1145e0||_0x35b463[_0x1788e3(0x19e)]>_0x1dc0d9[_0x1788e3(0x19f)])&&(_0x35b463[_0x1788e3(0x19e)]>_0x1145e0&&_0x157764['push']({'start':_0x1145e0,'end':Math[_0x1788e3(0x207)](_0x35b463[_0x1788e3(0x19e)]-0x1,_0x1dc0d9['end'])}),_0x1145e0=Math[_0x1788e3(0x226)](_0x1145e0,_0x35b463[_0x1788e3(0x19f)]+0x1),_0x1145e0>_0x1dc0d9['end']))break;return _0x1145e0<=_0x1dc0d9['end']&&_0x157764[_0x1788e3(0x1d5)]({'start':_0x1145e0,'end':_0x1dc0d9[_0x1788e3(0x19f)]}),_0x157764;}const z={'id':_0x5e2e85(0x1c2),'type':e[_0x5e2e85(0x218)][_0x5e2e85(0x23f)],'handler':(_0x1e646a,_0x595e14)=>{const _0xb3f46c=_0x5e2e85;if(!_0x595e14)return!0x1;let _0x5e8e09=(0x0,t[_0xb3f46c(0x245)])(_0x1e646a[_0xb3f46c(0x25e)](e[_0xb3f46c(0x1d7)]),_0x595e14);if(!_0x5e8e09)return!0x1;let {unitId:_0x1bfb7b,subUnitId:_0x1c8f8c,worksheet:_0x6f4e5c}=_0x5e8e09;if(!A(_0x1e646a,_0x1bfb7b,_0x1c8f8c))return!0x1;let _0x175705=_0x1e646a[_0xb3f46c(0x25e)](E)[_0xb3f46c(0x247)](_0x1bfb7b,_0x1c8f8c),_0x2b4b55=_0x175705[_0xb3f46c(0x211)](_0x39b576=>_0x39b576['id']===_0x595e14[_0xb3f46c(0x23a)]);if(!_0x2b4b55||_0x2b4b55[_0xb3f46c(0x19d)]===_0x595e14[_0xb3f46c(0x19d)])return!0x1;let _0x365538=L(_0x2b4b55,_0x595e14[_0xb3f46c(0x19d)],_0x6f4e5c,_0x175705),_0x3eacd4=L(_0x2b4b55,!_0x595e14[_0xb3f46c(0x19d)],_0x6f4e5c,_0x175705);return(0x0,e[_0xb3f46c(0x1c6)])(_0x365538,_0x1e646a['get'](e[_0xb3f46c(0x18c)]))['result']?(_0x1e646a['get'](e[_0xb3f46c(0x1cf)])[_0xb3f46c(0x188)]({'unitID':_0x1bfb7b,'undoMutations':_0x3eacd4,'redoMutations':_0x365538}),!0x0):!0x1;}},B={'id':'sheet.mutation.transform-dimension-outlines','type':e[_0x5e2e85(0x218)]['MUTATION'],'handler':(_0x418250,_0x504b52)=>{const _0x30fe03=_0x5e2e85;let _0x407af9=_0x418250[_0x30fe03(0x25e)](E),_0x2139bd=_e(_0x407af9[_0x30fe03(0x247)](_0x504b52[_0x30fe03(0x19b)],_0x504b52[_0x30fe03(0x1eb)]),_0x504b52);return _0x407af9[_0x30fe03(0x203)](_0x504b52['unitId'],_0x504b52[_0x30fe03(0x1eb)],_0x2139bd),!0x0;}};function _0x66e5(_0x3e5876,_0x2015e4){_0x3e5876=_0x3e5876-0x188;const _0xd4cae=_0xd4ca();let _0x66e511=_0xd4cae[_0x3e5876];return _0x66e511;}function _e(_0x2fcd40,_0x5213c0){const _0x3db332=_0x5e2e85;switch(_0x5213c0[_0x3db332(0x1d4)]){case'insert':return _0x5213c0[_0x3db332(0x20d)]?ve(_0x2fcd40,_0x5213c0):v(_0x2fcd40,_0x5213c0);case _0x3db332(0x1c4):return y(_0x2fcd40,_0x5213c0);case _0x3db332(0x258):return b(_0x2fcd40,_0x5213c0);}}function ve(_0x76f8c8,_0x2078a3){const _0x379703=_0x5e2e85;return[..._0x76f8c8[_0x379703(0x190)](_0x345e5f=>_0x345e5f[_0x379703(0x19b)]!==_0x2078a3[_0x379703(0x19b)]||_0x345e5f[_0x379703(0x1eb)]!==_0x2078a3[_0x379703(0x1eb)]||_0x345e5f['axis']!==_0x2078a3['axis']),..._0x2078a3[_0x379703(0x20d)]];}const V=_0x5e2e85(0x23b);var ye=_0x5e2e85(0x1f7),be=_0x5e2e85(0x1bb);const H={};function U(_0x5a61cc,_0x465f75){return function(_0x53f26e,_0x4d0584){_0x465f75(_0x53f26e,_0x4d0584,_0x5a61cc);};}function W(_0xcda6c1,_0x167210,_0x379cb5,_0x540dd8){const _0x354e77=_0x5e2e85;var _0x4f51b8=arguments[_0x354e77(0x243)],_0x5c4fdf=_0x4f51b8<0x3?_0x167210:_0x540dd8===null?_0x540dd8=Object[_0x354e77(0x1fd)](_0x167210,_0x379cb5):_0x540dd8,_0x144d43;if(typeof Reflect==_0x354e77(0x196)&&typeof Reflect['decorate']==_0x354e77(0x201))_0x5c4fdf=Reflect[_0x354e77(0x1ce)](_0xcda6c1,_0x167210,_0x379cb5,_0x540dd8);else{for(var _0x148c5f=_0xcda6c1[_0x354e77(0x243)]-0x1;_0x148c5f>=0x0;_0x148c5f--)(_0x144d43=_0xcda6c1[_0x148c5f])&&(_0x5c4fdf=(_0x4f51b8<0x3?_0x144d43(_0x5c4fdf):_0x4f51b8>0x3?_0x144d43(_0x167210,_0x379cb5,_0x5c4fdf):_0x144d43(_0x167210,_0x379cb5))||_0x5c4fdf);}return _0x4f51b8>0x3&&_0x5c4fdf&&Object['defineProperty'](_0x167210,_0x379cb5,_0x5c4fdf),_0x5c4fdf;}const G={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let K=class extends e['Disposable']{constructor(_0x58e80a,_0x287f7b,_0x37fa74,_0x2333c3){const _0x1b8f1e=_0x5e2e85;super(),this[_0x1b8f1e(0x21f)]=_0x58e80a,this[_0x1b8f1e(0x1dc)]=_0x287f7b,this[_0x1b8f1e(0x20c)]=_0x37fa74,this['_sheetsOutlineErrorService']=_0x2333c3,this[_0x1b8f1e(0x1cc)]();}[_0x5e2e85(0x1cc)](){const _0x46caec=_0x5e2e85;this[_0x46caec(0x244)](this[_0x46caec(0x1dc)]['interceptCommand']({'getMutations':_0x58c5db=>xe(_0x58c5db,(_0x39ef88,_0x2e7bbc)=>this[_0x46caec(0x20c)][_0x46caec(0x247)](_0x39ef88,_0x2e7bbc),this[_0x46caec(0x1c7)](_0x58c5db['params']),_0xa0ef6f=>this[_0x46caec(0x20a)][_0x46caec(0x1f8)](_0xa0ef6f))}));}['_getCommandScope'](_0x1081c5){const _0xf0daf9=_0x5e2e85;let _0x4c7dc3=_0x1081c5,_0x53bc9c=_0x4c7dc3!=null&&_0x4c7dc3['unitId']?this[_0xf0daf9(0x21f)]['getUnit'](_0x4c7dc3[_0xf0daf9(0x19b)],e[_0xf0daf9(0x1f4)]['UNIVER_SHEET']):this['_univerInstanceService'][_0xf0daf9(0x1b1)](e[_0xf0daf9(0x1f4)]['UNIVER_SHEET']);if(!_0x53bc9c)return;let _0x1b4f1a=_0x4c7dc3!=null&&_0x4c7dc3[_0xf0daf9(0x1eb)]?_0x53bc9c['getSheetBySheetId'](_0x4c7dc3['subUnitId']):_0x53bc9c[_0xf0daf9(0x1c1)]();if(_0x1b4f1a)return{'unitId':_0x53bc9c[_0xf0daf9(0x238)](),'subUnitId':_0x1b4f1a[_0xf0daf9(0x1ca)]()};}};K=W([U(0x0,e['IUniverInstanceService']),U(0x1,(0x0,e[_0x5e2e85(0x1cb)])(t[_0x5e2e85(0x1dd)])),U(0x2,(0x0,e[_0x5e2e85(0x1cb)])(E)),U(0x3,(0x0,e[_0x5e2e85(0x1cb)])(D))],K);function xe(_0xd2101,_0x12ec08,_0x2414ab,_0x4347bc){const _0x2685e5=_0x5e2e85;let _0x287d7f=Ce(_0xd2101,_0x2414ab);if(!_0x287d7f)return Z();let _0x11f8d3=_0x12ec08(_0x287d7f[_0x2685e5(0x19b)],_0x287d7f['subUnitId']);if(!_0x11f8d3['some'](_0x47f355=>_0x47f355['axis']===_0x287d7f['axis']))return Z();Se(_0x11f8d3,_0x287d7f,_0xd2101['id'],_0x4347bc);let _0x4f6d81=we(_0x287d7f,_0x11f8d3);return{'redos':[{'id':B['id'],'params':_0x287d7f}],'undos':[{'id':B['id'],'params':_0x4f6d81}],'preRedos':[],'preUndos':[]};}function Se(_0x390d30,_0x4031f1,_0x431c15,_0x30c09b){const _0x514c74=_0x5e2e85;try{switch(_0x4031f1[_0x514c74(0x1d4)]){case'insert':v(_0x390d30,_0x4031f1);break;case _0x514c74(0x1c4):y(_0x390d30,_0x4031f1);break;case'move':b(_0x390d30,_0x4031f1);break;}}catch(_0x39c264){throw _0x30c09b==null||_0x30c09b({'reason':c(_0x39c264),'commandId':_0x431c15,'unitId':_0x4031f1[_0x514c74(0x19b)],'subUnitId':_0x4031f1[_0x514c74(0x1eb)],'axis':_0x4031f1[_0x514c74(0x22a)],'outlineId':l(_0x39c264)}),new e['CustomCommandExecutionError'](_0x39c264 instanceof Error?_0x39c264[_0x514c74(0x24d)]:_0x514c74(0x1a4));}}function Ce(_0x16966f,_0x46fa08){const _0x2bf940=_0x5e2e85;switch(_0x16966f['id']){case t[_0x2bf940(0x224)]['id']:return q(_0x16966f[_0x2bf940(0x1e3)],'row',_0x46fa08);case t[_0x2bf940(0x1d3)]['id']:return q(_0x16966f[_0x2bf940(0x1e3)],_0x2bf940(0x200),_0x46fa08);case t[_0x2bf940(0x1e7)]['id']:return J(_0x16966f[_0x2bf940(0x1e3)],_0x2bf940(0x261),_0x46fa08);case t[_0x2bf940(0x257)]['id']:return J(_0x16966f[_0x2bf940(0x1e3)],_0x2bf940(0x200),_0x46fa08);case t[_0x2bf940(0x208)]['id']:return Y(_0x16966f['params'],_0x2bf940(0x261),_0x46fa08);case t[_0x2bf940(0x1b9)]['id']:return Y(_0x16966f[_0x2bf940(0x1e3)],_0x2bf940(0x200),_0x46fa08);default:return null;}}function q(_0x5825d3,_0x12daa2,_0x33f376){const _0x354939=_0x5e2e85;let _0x249ca0=X(_0x5825d3,_0x33f376);if(!(_0x5825d3!=null&&_0x5825d3[_0x354939(0x197)])||!_0x249ca0)return null;let _0x5663dd=_0x12daa2===_0x354939(0x261)?_0x5825d3[_0x354939(0x197)]['startRow']:_0x5825d3['range']['startColumn'],_0xdc106b=_0x12daa2===_0x354939(0x261)?_0x5825d3['range'][_0x354939(0x1b2)]:_0x5825d3[_0x354939(0x197)]['endColumn'];return{..._0x249ca0,'axis':_0x12daa2,'type':_0x354939(0x22f),'index':_0x5663dd,'count':_0xdc106b-_0x5663dd+0x1};}function J(_0x53cdb9,_0x3b3c96,_0x5bf2c5){const _0x47a08b=_0x5e2e85;let _0x2b5789=X(_0x53cdb9,_0x5bf2c5);if(!(_0x53cdb9!=null&&_0x53cdb9[_0x47a08b(0x197)])||!_0x2b5789)return null;let _0x2713f3=_0x3b3c96==='row'?_0x53cdb9[_0x47a08b(0x197)][_0x47a08b(0x216)]:_0x53cdb9['range'][_0x47a08b(0x251)],_0x247df9=_0x3b3c96===_0x47a08b(0x261)?_0x53cdb9['range'][_0x47a08b(0x1b2)]:_0x53cdb9[_0x47a08b(0x197)]['endColumn'];return{..._0x2b5789,'axis':_0x3b3c96,'type':_0x47a08b(0x1c4),'start':_0x2713f3,'end':_0x247df9};}function Y(_0x35124d,_0xa5808f,_0x43e152){const _0x1527bf=_0x5e2e85;let _0x3911de=X(_0x35124d,_0x43e152);if(!(_0x35124d!=null&&_0x35124d[_0x1527bf(0x219)])||!_0x35124d[_0x1527bf(0x206)]||!_0x3911de)return null;let _0x1e0082=_0xa5808f===_0x1527bf(0x261)?_0x35124d['fromRange'][_0x1527bf(0x216)]:_0x35124d[_0x1527bf(0x219)]['startColumn'],_0x448705=_0xa5808f===_0x1527bf(0x261)?_0x35124d[_0x1527bf(0x219)][_0x1527bf(0x1b2)]:_0x35124d[_0x1527bf(0x219)][_0x1527bf(0x24c)],_0x214ed6=_0xa5808f===_0x1527bf(0x261)?_0x35124d[_0x1527bf(0x206)][_0x1527bf(0x216)]:_0x35124d[_0x1527bf(0x206)][_0x1527bf(0x251)];return{..._0x3911de,'axis':_0xa5808f,'type':'move','sourceStart':_0x1e0082,'sourceEnd':_0x448705,'destinationIndex':_0x214ed6};}function we(_0x6df312,_0x598035){const _0x20d4cc=_0x5e2e85;switch(_0x6df312[_0x20d4cc(0x1d4)]){case _0x20d4cc(0x22f):return{'unitId':_0x6df312[_0x20d4cc(0x19b)],'subUnitId':_0x6df312[_0x20d4cc(0x1eb)],'axis':_0x6df312[_0x20d4cc(0x22a)],'type':_0x20d4cc(0x1c4),'start':_0x6df312[_0x20d4cc(0x18b)],'end':_0x6df312[_0x20d4cc(0x18b)]+_0x6df312[_0x20d4cc(0x25c)]-0x1};case'delete':return{'unitId':_0x6df312[_0x20d4cc(0x19b)],'subUnitId':_0x6df312[_0x20d4cc(0x1eb)],'axis':_0x6df312[_0x20d4cc(0x22a)],'type':'insert','index':_0x6df312[_0x20d4cc(0x19e)],'count':_0x6df312[_0x20d4cc(0x19f)]-_0x6df312[_0x20d4cc(0x19e)]+0x1,'restoreOutlines':_0x598035[_0x20d4cc(0x190)](_0x23736b=>_0x23736b[_0x20d4cc(0x19b)]===_0x6df312[_0x20d4cc(0x19b)]&&_0x23736b[_0x20d4cc(0x1eb)]===_0x6df312[_0x20d4cc(0x1eb)]&&_0x23736b['axis']===_0x6df312[_0x20d4cc(0x22a)])};case _0x20d4cc(0x258):return Te(_0x6df312);}}function Te(_0x5f4f3d){const _0x98900a=_0x5e2e85;let _0x65a565=_0x5f4f3d['sourceEnd']-_0x5f4f3d[_0x98900a(0x234)]+0x1;return _0x5f4f3d[_0x98900a(0x1d0)]>=_0x5f4f3d[_0x98900a(0x234)]&&_0x5f4f3d['destinationIndex']<=_0x5f4f3d[_0x98900a(0x1ef)]+0x1?{..._0x5f4f3d}:_0x5f4f3d['destinationIndex']>_0x5f4f3d['sourceEnd']+0x1?{..._0x5f4f3d,'sourceStart':_0x5f4f3d[_0x98900a(0x1d0)]-_0x65a565,'sourceEnd':_0x5f4f3d[_0x98900a(0x1d0)]-0x1,'destinationIndex':_0x5f4f3d[_0x98900a(0x234)]}:{..._0x5f4f3d,'sourceStart':_0x5f4f3d[_0x98900a(0x1d0)],'sourceEnd':_0x5f4f3d['destinationIndex']+_0x65a565-0x1,'destinationIndex':_0x5f4f3d[_0x98900a(0x1ef)]+0x1};}function X(_0x4f958d,_0x229f43){const _0x2277dd=_0x5e2e85;let _0x1f108f=(_0x4f958d==null?void 0x0:_0x4f958d[_0x2277dd(0x19b)])??(_0x229f43==null?void 0x0:_0x229f43[_0x2277dd(0x19b)]),_0x1c756b=(_0x4f958d==null?void 0x0:_0x4f958d[_0x2277dd(0x1eb)])??(_0x229f43==null?void 0x0:_0x229f43[_0x2277dd(0x1eb)]);return _0x1f108f&&_0x1c756b?{'unitId':_0x1f108f,'subUnitId':_0x1c756b}:null;}function Z(){const _0x1a172c=_0x5e2e85;return{'redos':[...G[_0x1a172c(0x1fc)]],'undos':[...G[_0x1a172c(0x1fb)]],'preRedos':[...G['preRedos']??[]],'preUndos':[...G['preUndos']??[]]};}let Q=class extends e[_0x5e2e85(0x1b3)]{constructor(_0x5e68b2,_0x4f8f81){const _0x3b43fd=_0x5e2e85;super(),this[_0x3b43fd(0x25d)]=_0x5e68b2,this['_sheetsOutlineModel']=_0x4f8f81,this[_0x3b43fd(0x1b7)]();}[_0x5e2e85(0x1b7)](){const _0x310158=_0x5e2e85;this[_0x310158(0x244)](this[_0x310158(0x25d)][_0x310158(0x230)]({'pluginName':V,'businesses':[e[_0x310158(0x1f4)][_0x310158(0x19c)]],'toJson':_0xa011=>JSON[_0x310158(0x1f5)](this[_0x310158(0x20c)][_0x310158(0x239)](_0xa011)),'parseJson':_0x34d8b0=>JSON[_0x310158(0x24a)](_0x34d8b0),'onLoad':(_0xe8fb8a,_0x18fe84)=>this[_0x310158(0x20c)]['deserialize'](_0xe8fb8a,_0x18fe84),'onUnLoad':_0x322a67=>this['_sheetsOutlineModel'][_0x310158(0x1e0)](_0x322a67)}));}};Q=W([U(0x0,e['IResourceManagerService']),U(0x1,(0x0,e[_0x5e2e85(0x1cb)])(E))],Q);let $=class extends e[_0x5e2e85(0x1bc)]{constructor(_0xc5f33=H,_0x45cfa5,_0x289618,_0x67aacc){const _0x4929c0=_0x5e2e85;super(),this['_config']=_0xc5f33,this[_0x4929c0(0x191)]=_0x45cfa5,this[_0x4929c0(0x1ba)]=_0x289618,this[_0x4929c0(0x231)]=_0x67aacc;let {..._0x3d6a39}=(0x0,e[_0x4929c0(0x21b)])({},H,this['_config']);this[_0x4929c0(0x231)][_0x4929c0(0x1df)](_0x4929c0(0x212),_0x3d6a39);}[_0x5e2e85(0x199)](){const _0x4b6a48=_0x5e2e85;this['_injector'][_0x4b6a48(0x1c0)]([E]),this[_0x4b6a48(0x191)][_0x4b6a48(0x1c0)]([D]),this['_injector']['add']([Q]),this[_0x4b6a48(0x191)][_0x4b6a48(0x1c0)]([K]),this[_0x4b6a48(0x1e4)](),this[_0x4b6a48(0x191)]['get'](E),this['_injector'][_0x4b6a48(0x25e)](D),this[_0x4b6a48(0x191)][_0x4b6a48(0x25e)](Q),this[_0x4b6a48(0x191)]['get'](K);}[_0x5e2e85(0x1e4)](){const _0x5d3923=_0x5e2e85;[j,P,z,N][_0x5d3923(0x1fe)](_0x12f329=>{const _0x497aa6=_0x5d3923;this[_0x497aa6(0x244)](this[_0x497aa6(0x1ba)][_0x497aa6(0x225)](_0x12f329));}),[O,k,F,M,B]['forEach'](_0x2b8bc6=>{const _0x50db1d=_0x5d3923;this['disposeWithMe'](this[_0x50db1d(0x1ba)][_0x50db1d(0x225)](_0x2b8bc6));});}};T($,_0x5e2e85(0x1b8),V),T($,_0x5e2e85(0x195),ye),T($,_0x5e2e85(0x237),be),T($,'type',e['UniverInstanceType'][_0x5e2e85(0x19c)]),$=W([(0x0,e['DependentOn'])(i[_0x5e2e85(0x25a)],t['UniverSheetsPlugin']),U(0x1,(0x0,e[_0x5e2e85(0x1cb)])(e['Injector'])),U(0x2,e[_0x5e2e85(0x18c)]),U(0x3,e[_0x5e2e85(0x1de)])],$),exports[_0x5e2e85(0x1c5)]=j,exports[_0x5e2e85(0x18e)]=O,exports[_0x5e2e85(0x242)]=N,exports[_0x5e2e85(0x24e)]=M,exports['DimensionOutlineAxis']=a,exports[_0x5e2e85(0x241)]=o,exports[_0x5e2e85(0x256)]=P,exports[_0x5e2e85(0x202)]=k,exports[_0x5e2e85(0x23b)]=V,exports[_0x5e2e85(0x1d2)]=z,exports[_0x5e2e85(0x19a)]=F,exports[_0x5e2e85(0x194)]=D,exports['SheetsOutlineModel']=E,exports[_0x5e2e85(0x1d8)]=B,Object[_0x5e2e85(0x1f9)](exports,_0x5e2e85(0x1ee),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x5e2e85(0x235)]=f,exports[_0x5e2e85(0x1d1)]=p,exports[_0x5e2e85(0x204)]=ue,exports[_0x5e2e85(0x1c3)]=A,exports[_0x5e2e85(0x24b)]=y,exports['transformOutlinesByInsert']=v,exports[_0x5e2e85(0x205)]=b;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x1f07e6=_0x5ccc;(function(_0x2f6e27,_0x29817d){var _0x2d2f65=_0x5ccc,_0x39a7cd=_0x2f6e27();while(!![]){try{var _0x29003e=-parseInt(_0x2d2f65(0x11f))/0x1+parseInt(_0x2d2f65(0x121))/0x2*(parseInt(_0x2d2f65(0x117))/0x3)+-parseInt(_0x2d2f65(0x11e))/0x4+parseInt(_0x2d2f65(0x10e))/0x5*(parseInt(_0x2d2f65(0x112))/0x6)+-parseInt(_0x2d2f65(0x126))/0x7*(-parseInt(_0x2d2f65(0x125))/0x8)+parseInt(_0x2d2f65(0x11b))/0x9*(-parseInt(_0x2d2f65(0x127))/0xa)+parseInt(_0x2d2f65(0x10c))/0xb*(parseInt(_0x2d2f65(0x119))/0xc);if(_0x29003e===_0x29817d)break;else _0x39a7cd['push'](_0x39a7cd['shift']());}catch(_0x331cca){_0x39a7cd['push'](_0x39a7cd['shift']());}}}(_0x1cb7,0x8501e));import{AddDimensionOutlineCommand as _0x33bbae,ClearDimensionOutlinesCommand as _0x511c5c,DimensionOutlineAxis as _0xeadc3b,DimensionOutlineErrorReason as _0x3874ba,RemoveDimensionOutlineCommand as _0x220cb2,SetDimensionOutlineCollapsedCommand as _0x1a1d35,SheetsOutlineModel as _0x41b355}from'@univerjs-pro/sheets-outline';import{FEnum as _0x3b5ff1}from'@univerjs/core/facade';import{FWorksheet as _0x26be29}from'@univerjs/sheets/facade';var l=class extends _0x3b5ff1{get[_0x1f07e6(0x122)](){return _0xeadc3b;}get[_0x1f07e6(0x10f)](){return _0x3874ba;}};_0x3b5ff1[_0x1f07e6(0x123)](l);var u=class extends _0x26be29{[_0x1f07e6(0x10d)](_0x167928,_0x4b5399){var _0xf14ce7=_0x1f07e6;return this[_0xf14ce7(0x116)](_0xeadc3b[_0xf14ce7(0x115)],_0x167928,_0x4b5399);}[_0x1f07e6(0x118)](_0x19b9ef,_0x395f50){var _0x4776ff=_0x1f07e6;return this[_0x4776ff(0x116)](_0xeadc3b[_0x4776ff(0x124)],_0x19b9ef,_0x395f50);}[_0x1f07e6(0x114)](_0x542b7f){var _0x47fb0f=_0x1f07e6;return this[_0x47fb0f(0x108)][_0x47fb0f(0x110)](_0x220cb2['id'],{'unitId':this['_workbook'][_0x47fb0f(0x11a)](),'subUnitId':this[_0x47fb0f(0x11d)][_0x47fb0f(0x10a)](),'outlineId':_0x542b7f}),this;}['setDimensionOutlineCollapsed'](_0x1aa8c5,_0x2af9c4){var _0x9662ef=_0x1f07e6;return this[_0x9662ef(0x108)][_0x9662ef(0x110)](_0x1a1d35['id'],{'unitId':this[_0x9662ef(0x120)][_0x9662ef(0x11a)](),'subUnitId':this[_0x9662ef(0x11d)][_0x9662ef(0x10a)](),'outlineId':_0x1aa8c5,'collapsed':_0x2af9c4}),this;}['clearDimensionOutlines'](_0x2132c2,_0x11d52f,_0x4a4b5c){var _0xeb23f2=_0x1f07e6;return this[_0xeb23f2(0x108)]['syncExecuteCommand'](_0x511c5c['id'],{'unitId':this['_workbook'][_0xeb23f2(0x11a)](),'subUnitId':this[_0xeb23f2(0x11d)][_0xeb23f2(0x10a)](),'axis':_0x2132c2,'start':_0x11d52f,'end':_0x4a4b5c}),this;}[_0x1f07e6(0x11c)](_0x5593c8){var _0x24f354=_0x1f07e6;let _0x2e522d=this[_0x24f354(0x10b)][_0x24f354(0x111)](_0x41b355)[_0x24f354(0x128)](this['_workbook'][_0x24f354(0x11a)](),this[_0x24f354(0x11d)][_0x24f354(0x10a)]());return _0x5593c8?_0x2e522d[_0x24f354(0x113)](_0x38d924=>_0x38d924[_0x24f354(0x109)]===_0x5593c8):_0x2e522d;}[_0x1f07e6(0x116)](_0x4b0a60,_0x1e644a,_0x387544){var _0x38bf82=_0x1f07e6;return this['_commandService'][_0x38bf82(0x110)](_0x33bbae['id'],{'unitId':this['_workbook'][_0x38bf82(0x11a)](),'subUnitId':this[_0x38bf82(0x11d)]['getSheetId'](),'axis':_0x4b0a60,'start':_0x1e644a,'end':_0x1e644a+_0x387544-0x1}),this;}};function _0x5ccc(_0x53c7a9,_0x167394){_0x53c7a9=_0x53c7a9-0x108;var _0x1cb7d3=_0x1cb7();var _0x5ccc38=_0x1cb7d3[_0x53c7a9];return _0x5ccc38;}function _0x1cb7(){var _0x2ea655=['getSheetId','_injector','33TvTgNy','addRowOutline','3310IGHkBL','DimensionOutlineErrorReason','syncExecuteCommand','get','1656AFRcOA','filter','removeDimensionOutline','ROW','_addDimensionOutline','3fzdcJl','addColumnOutline','4308156vsrryd','getUnitId','514638CIMHmY','getDimensionOutlines','_worksheet','4092112iIcdqZ','454514NfcQsO','_workbook','1994766FXrvmG','DimensionOutlineAxis','extend','COLUMN','176xEikuN','70847wZHEnr','80jQEINS','getOutlines','_commandService','axis'];_0x1cb7=function(){return _0x2ea655;};return _0x1cb7();}_0x26be29[_0x1f07e6(0x123)](u);export{};
1
+ var _0x5d81d7=_0x4c3b;(function(_0x1bbfab,_0x4f6ee6){var _0x41dcd8=_0x4c3b,_0xd2e521=_0x1bbfab();while(!![]){try{var _0x37d1bb=-parseInt(_0x41dcd8(0xf3))/0x1+-parseInt(_0x41dcd8(0xf5))/0x2+-parseInt(_0x41dcd8(0xfe))/0x3*(parseInt(_0x41dcd8(0x103))/0x4)+-parseInt(_0x41dcd8(0xfc))/0x5*(parseInt(_0x41dcd8(0xef))/0x6)+-parseInt(_0x41dcd8(0xed))/0x7+parseInt(_0x41dcd8(0xfd))/0x8+-parseInt(_0x41dcd8(0xee))/0x9*(-parseInt(_0x41dcd8(0xf0))/0xa);if(_0x37d1bb===_0x4f6ee6)break;else _0xd2e521['push'](_0xd2e521['shift']());}catch(_0x172aa1){_0xd2e521['push'](_0xd2e521['shift']());}}}(_0x1749,0x28491));import{AddDimensionOutlineCommand as _0x259005,ClearDimensionOutlinesCommand as _0x3bbff1,DimensionOutlineAxis as _0x5e0f8d,DimensionOutlineErrorReason as _0x11c631,RemoveDimensionOutlineCommand as _0x1fbe3f,SetDimensionOutlineCollapsedCommand as _0x394f92,SheetsOutlineModel as _0x59f6d6}from'@univerjs-pro/sheets-outline';import{FEnum as _0x3bd20f}from'@univerjs/core/facade';import{FWorksheet as _0x2fe98c}from'@univerjs/sheets/facade';var l=class extends _0x3bd20f{get[_0x5d81d7(0xfb)](){return _0x5e0f8d;}get[_0x5d81d7(0x105)](){return _0x11c631;}};_0x3bd20f[_0x5d81d7(0xf4)](l);function _0x4c3b(_0x5f2450,_0x3f5227){_0x5f2450=_0x5f2450-0xec;var _0x17493d=_0x1749();var _0x4c3b9f=_0x17493d[_0x5f2450];return _0x4c3b9f;}var u=class extends _0x2fe98c{[_0x5d81d7(0xf6)](_0x3e17a2,_0x5ce5b1){var _0x4a4c4e=_0x5d81d7;return this[_0x4a4c4e(0x109)](_0x5e0f8d[_0x4a4c4e(0xf8)],_0x3e17a2,_0x5ce5b1);}[_0x5d81d7(0xf1)](_0x17e392,_0x4de3d1){var _0x44851b=_0x5d81d7;return this[_0x44851b(0x109)](_0x5e0f8d[_0x44851b(0xff)],_0x17e392,_0x4de3d1);}[_0x5d81d7(0x101)](_0x5af96b){var _0x511e71=_0x5d81d7;return this[_0x511e71(0xfa)][_0x511e71(0x104)](_0x1fbe3f['id'],{'unitId':this[_0x511e71(0x107)]['getUnitId'](),'subUnitId':this[_0x511e71(0x102)][_0x511e71(0xf7)](),'outlineId':_0x5af96b}),this;}[_0x5d81d7(0xf9)](_0x51b911,_0x21a646){var _0x132db6=_0x5d81d7;return this[_0x132db6(0xfa)][_0x132db6(0x104)](_0x394f92['id'],{'unitId':this[_0x132db6(0x107)]['getUnitId'](),'subUnitId':this[_0x132db6(0x102)]['getSheetId'](),'outlineId':_0x51b911,'collapsed':_0x21a646}),this;}['clearDimensionOutlines'](_0x279edb,_0x32dd76,_0x594a5a){var _0x976350=_0x5d81d7;return this[_0x976350(0xfa)][_0x976350(0x104)](_0x3bbff1['id'],{'unitId':this[_0x976350(0x107)][_0x976350(0x106)](),'subUnitId':this[_0x976350(0x102)]['getSheetId'](),'axis':_0x279edb,'start':_0x32dd76,'end':_0x594a5a}),this;}[_0x5d81d7(0x108)](_0x12f975){var _0x2ed3a0=_0x5d81d7;let _0x392b70=this[_0x2ed3a0(0xf2)]['get'](_0x59f6d6)[_0x2ed3a0(0xec)](this[_0x2ed3a0(0x107)]['getUnitId'](),this[_0x2ed3a0(0x102)]['getSheetId']());return _0x12f975?_0x392b70['filter'](_0x45c2c2=>_0x45c2c2[_0x2ed3a0(0x100)]===_0x12f975):_0x392b70;}['_addDimensionOutline'](_0x5db2e6,_0x51434c,_0x203d9c){var _0x4a32bd=_0x5d81d7;return this[_0x4a32bd(0xfa)][_0x4a32bd(0x104)](_0x259005['id'],{'unitId':this['_workbook']['getUnitId'](),'subUnitId':this[_0x4a32bd(0x102)]['getSheetId'](),'axis':_0x5db2e6,'start':_0x51434c,'end':_0x51434c+_0x203d9c-0x1}),this;}};function _0x1749(){var _0x2d2a58=['addRowOutline','getSheetId','ROW','setDimensionOutlineCollapsed','_commandService','DimensionOutlineAxis','40vCNtsX','1124992UVINEe','626877JVLgzw','COLUMN','axis','removeDimensionOutline','_worksheet','4kluXyi','syncExecuteCommand','DimensionOutlineErrorReason','getUnitId','_workbook','getDimensionOutlines','_addDimensionOutline','getOutlines','916727SIrQUv','8631RHLdNZ','165660eIweOJ','11420iPcPbD','addColumnOutline','_injector','229812DprSaz','extend','560362DoDjHN'];_0x1749=function(){return _0x2d2a58;};return _0x1749();}_0x2fe98c[_0x5d81d7(0xf4)](u);export{};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1833dd=_0x3a4b;(function(_0x17b778,_0x40cd91){const _0x4e063b=_0x3a4b,_0x5ce106=_0x17b778();while(!![]){try{const _0x4123d5=parseInt(_0x4e063b(0x129))/0x1*(parseInt(_0x4e063b(0xf1))/0x2)+-parseInt(_0x4e063b(0xe7))/0x3+parseInt(_0x4e063b(0xda))/0x4*(-parseInt(_0x4e063b(0x122))/0x5)+-parseInt(_0x4e063b(0x15b))/0x6*(parseInt(_0x4e063b(0x159))/0x7)+parseInt(_0x4e063b(0x13e))/0x8*(-parseInt(_0x4e063b(0xeb))/0x9)+parseInt(_0x4e063b(0x128))/0xa*(parseInt(_0x4e063b(0xf5))/0xb)+parseInt(_0x4e063b(0x127))/0xc*(parseInt(_0x4e063b(0x10a))/0xd);if(_0x4123d5===_0x40cd91)break;else _0x5ce106['push'](_0x5ce106['shift']());}catch(_0x511cb8){_0x5ce106['push'](_0x5ce106['shift']());}}}(_0x5989,0xbc7ba));import{CommandType as _0x5c5c9a,CustomCommandExecutionError as _0x548967,DependentOn as _0x517b95,Disposable as _0xe18af3,ICommandService as _0xb641c0,IConfigService as _0x3f4535,IPermissionService as _0x19652f,IResourceManagerService as _0x4dc04c,IUndoRedoService as _0x50b520,IUniverInstanceService as _0x1aff8c,Inject as _0x140d65,Injector as _0x1b6645,Plugin as _0x26df20,UniverInstanceType as _0x84cb88,generateRandomId as _0x3e222e,merge as _0x25c148,sequenceExecute as _0x1fddcb}from'@univerjs/core';import{InsertColCommand as _0x45efe8,InsertRowCommand as _0x16cb71,MoveColsCommand as _0x29ddad,MoveRowsCommand as _0xc01a4,RemoveColCommand as _0x4c0222,RemoveRowCommand as _0x367b42,SetColHiddenMutation as _0x58466f,SetColVisibleMutation as _0x13e49f,SetRowHiddenMutation as _0x33d7d0,SetRowVisibleMutation as _0x39df2b,SheetInterceptorService as _0x1fddbb,SheetPermissionCheckController as _0x12b494,UniverSheetsPlugin as _0x276c49,WorkbookViewPermission as _0x9f8f44,WorksheetViewPermission as _0x1b0ba6,getSheetCommandTarget as _0xe99487}from'@univerjs/sheets';import{Subject as _0x54b96e,of as _0x401f9f}from'rxjs';import{debounceTime as _0x316122,map as _0x411084,startWith as _0x308174}from'rxjs/operators';import{UniverLicensePlugin as _0x332882}from'@univerjs-pro/license';let ge=function(_0x347c77){const _0x4ff5aa=_0x3a4b;return _0x347c77['ROW']=_0x4ff5aa(0x134),_0x347c77[_0x4ff5aa(0xfd)]='column',_0x347c77;}({}),_e=function(_0x25bb2c){const _0x47c084=_0x3a4b;return _0x25bb2c['INVALID_RANGE']=_0x47c084(0xd3),_0x25bb2c[_0x47c084(0x157)]=_0x47c084(0x149),_0x25bb2c[_0x47c084(0xf2)]=_0x47c084(0x126),_0x25bb2c[_0x47c084(0x144)]=_0x47c084(0x107),_0x25bb2c[_0x47c084(0xfb)]='move-splits-outline',_0x25bb2c[_0x47c084(0xd9)]=_0x47c084(0x14f),_0x25bb2c[_0x47c084(0x12e)]=_0x47c084(0x140),_0x25bb2c;}({});var C=class extends Error{constructor(_0x2954e7,_0x27b0aa,_0x587b45){const _0x3344df=_0x3a4b;super(_0x27b0aa),this[_0x3344df(0xe5)]=_0x2954e7,this[_0x3344df(0xce)]=_0x587b45,this[_0x3344df(0xe6)]='DimensionOutlineError';}};function ve(_0x506742){const _0xe1ebe0=_0x3a4b;return _0x506742 instanceof C?_0x506742[_0xe1ebe0(0xe5)]:_0x506742 instanceof Error?_0x506742[_0xe1ebe0(0x14a)][_0xe1ebe0(0x16c)]('split\x20dimension\x20outline')?'move-splits-outline':_0x506742[_0xe1ebe0(0x14a)][_0xe1ebe0(0x16c)]('depth')?_0xe1ebe0(0x107):_0x506742[_0xe1ebe0(0x14a)][_0xe1ebe0(0x16c)](_0xe1ebe0(0x15c))?_0xe1ebe0(0x126):_0x506742[_0xe1ebe0(0x14a)]['includes'](_0xe1ebe0(0x16a))?_0xe1ebe0(0xd3):'unknown':'unknown';}function ye(_0x47e994){const _0x1352a1=_0x3a4b;return _0x47e994 instanceof C?_0x47e994[_0x1352a1(0xce)]:void 0x0;}const w=0x2**0x35-0x1;function T(_0x494d65,_0x5e6ff7){const _0x7a7cbf=_0x3a4b;return _0x494d65['unitId']===_0x5e6ff7[_0x7a7cbf(0x161)]&&_0x494d65[_0x7a7cbf(0x156)]===_0x5e6ff7[_0x7a7cbf(0x156)]&&_0x494d65[_0x7a7cbf(0xf7)]===_0x5e6ff7[_0x7a7cbf(0xf7)];}function E(_0x44eb7b,_0x3415cb={}){const _0x4ead1c=_0x3a4b;var _0x540a6d;let _0x36a87b=(_0x540a6d=_0x3415cb[_0x4ead1c(0x12c)])==null?0x8:_0x540a6d,_0x2ca4a0=new Map();for(let _0xdeace1 of _0x44eb7b){let _0x4fce2e=_0xdeace1[_0x4ead1c(0x161)]+':'+_0xdeace1[_0x4ead1c(0x156)]+':'+_0xdeace1[_0x4ead1c(0xf7)],_0x43435a=_0x2ca4a0[_0x4ead1c(0x136)](_0x4fce2e);_0x43435a?_0x43435a[_0x4ead1c(0x10b)](_0xdeace1):_0x2ca4a0[_0x4ead1c(0x171)](_0x4fce2e,[_0xdeace1]);}let _0x3aeb93=[];for(let _0x3646f0 of _0x2ca4a0['values']()){let _0x1ba90b=[..._0x3646f0]['sort'](je),_0x995ea2=[];for(let _0x13e4e2 of _0x1ba90b){for(Me(_0x13e4e2);_0x995ea2[_0x4ead1c(0x123)]>0x0&&_0x13e4e2[_0x4ead1c(0x16d)]>_0x995ea2[_0x995ea2[_0x4ead1c(0x123)]-0x1][_0x4ead1c(0x165)];)_0x995ea2['pop']();let _0x2773fe=_0x995ea2[_0x995ea2['length']-0x1];if(_0x2773fe&&_0x13e4e2[_0x4ead1c(0x165)]>_0x2773fe[_0x4ead1c(0x165)])throw new C(_0x4ead1c(0x126),_0x4ead1c(0x11e),_0x13e4e2['id']);let _0x54e9f2=_0x2773fe?_0x2773fe['depth']+0x1:0x1;if(_0x54e9f2>_0x36a87b)throw new C(_0x4ead1c(0x107),_0x4ead1c(0x12b)+_0x36a87b,_0x13e4e2['id']);let _0x2ea53f={..._0x13e4e2,'depth':_0x54e9f2,'parentId':_0x2773fe==null?void 0x0:_0x2773fe['id'],'anchor':_0x13e4e2[_0x4ead1c(0x165)],'children':[]};_0x2773fe?_0x2773fe[_0x4ead1c(0xcc)][_0x4ead1c(0x10b)](_0x2ea53f):_0x3aeb93[_0x4ead1c(0x10b)](_0x2ea53f),_0x995ea2['push'](_0x2ea53f);}}return _0x3aeb93;}function _0x5989(){const _0x4f9643=['1422ttnIvM','Crossing','Invalid\x20outline\x20range','1.0.0-alpha.8','undos','startRow','unitId','change$','_outlines','params','end','sheet.command.set-dimension-outline-collapsed','_sheetsOutlineModel','permissionPointUpdate$','split','range','_initRegisterCommand','includes','start','asObservable','_resourceManagerService','preUndos','set','filter','sheet.command.add-dimension-outline','emit','defineProperty','outlineList','next','children','object','outlineId','sourceEnd','collapsed','sort','sourceStart','invalid-range','insert','_commandService','result','pushUndoRedo','add','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','284exExfW','sheet.mutation.add-dimension-outline','dispose','parse','destinationIndex','sheet.command.clear-dimension-outlines','_initCommandInterceptor','removeUnit','MUTATION','maxIndex','getActiveSheet','reason','name','398886gHwvfb','startColumn','sheets-outline.config','@univerjs-pro/sheets-outline','48285bgGYPG','_config','getUnit','Move\x20would\x20split\x20dimension\x20outline:\x20','COMMAND','localeCompare','2EGlZmn','CROSSING','getOutlines','sheet.mutation.clear-dimension-outlines','187JExLOM','getMaxColumns','axis','index','stringify','find','MOVE_SPLITS_OUTLINE','_getCommandScope','COLUMN','pipe','Invalid\x20dimension\x20outline\x20mutation','getSheetId','disposeWithMe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_configService','error$','move-splits-outline','valid','max-depth','_ensureUnitOutlines','count','26ujfzIq','push','map','from','clear','packageName','interceptCommand','values','outline','some','version','pluginName','column','toPrimitive','getOwnPropertyDescriptor','_injector','forEach','Invalid\x20dimension\x20outline\x20move\x20source\x20range','restoreOutlines','registerPluginResource','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','decorate','getCurrentUnitOfType','fromRange','97615GOnZRV','length','constructor','symbol','crossing','12869976QANixw','721610TIPmnT','542765JrtYxb','has','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','maxDepth','getRowCount','UNKNOWN','registerCommand','prototype','endRow','function','toRange','row','iterator','get','move','sheet.command.remove-dimension-outline','_error$','_sheetsOutlineErrorService','redos','join','UNIVER_SHEET','1528JGmrqX','preRedos','unknown','endColumn','sheet.mutation.remove-dimension-outline','deserialize','MAX_DEPTH','complete','serialize','setConfig','_change$','out-of-bounds','message','string','min','setOutlines','type','clear-range-not-contain-outline','entries','sheet.mutation.transform-dimension-outlines','_univerInstanceService','getSheetBySheetId','max','mergedOutlines','subUnitId','OUT_OF_BOUNDS','_sheetInterceptorService','17682eQCMhW','delete'];_0x5989=function(){return _0x4f9643;};return _0x5989();}function D(_0x409c0d,_0x1b2a4e,_0x4d8462={}){const _0x458112=_0x3a4b;if(_0x1b2a4e['start']<0x0||_0x1b2a4e[_0x458112(0x16d)]>_0x1b2a4e[_0x458112(0x165)])return{'valid':!0x1,'reason':_0x458112(0xd3)};if(_0x4d8462[_0x458112(0xe3)]!=null&&_0x1b2a4e[_0x458112(0x165)]>=_0x4d8462[_0x458112(0xe3)])return{'valid':!0x1,'reason':_0x458112(0x149)};let _0x45367d=_0x409c0d['filter'](_0x20660e=>T(_0x20660e,_0x1b2a4e));for(let _0x2d6dc7 of _0x45367d)if(Ne(_0x2d6dc7,_0x1b2a4e))return{'valid':!0x1,'reason':_0x458112(0x126)};try{E([..._0x409c0d,_0x1b2a4e],_0x4d8462);}catch(_0x22dffb){let _0x20cbb8=ve(_0x22dffb);return _0x20cbb8===_0x458112(0x107)?{'valid':!0x1,'reason':'max-depth'}:_0x20cbb8===_0x458112(0xd3)?{'valid':!0x1,'reason':_0x458112(0xd3)}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function be(_0x2f5240,_0x3350b8,_0x505202={}){const _0x417d4c=_0x3a4b;let _0x174360=D(_0x2f5240,_0x3350b8,_0x505202);if(!_0x174360[_0x417d4c(0x106)]){var _0x1e2122;throw Error((_0x1e2122=_0x174360[_0x417d4c(0xe5)])==null?'invalid-dimension-outline':_0x1e2122);}return[..._0x2f5240,_0x3350b8];}function xe(_0x3ba329,_0x2aba27){const _0x411ec0=_0x3a4b;let _0x563675=_0x2aba27[_0x411ec0(0x16d)],_0x1ed7b3=_0x2aba27[_0x411ec0(0x165)],_0x1df0e6=[],_0x104691=!0x0;for(;_0x104691;){_0x104691=!0x1;for(let _0x2ada90 of _0x3ba329)_0x1df0e6[_0x411ec0(0x16c)](_0x2ada90)||!T(_0x2ada90,_0x2aba27)||!ke(_0x2ada90[_0x411ec0(0x16d)],_0x2ada90[_0x411ec0(0x165)],_0x563675,_0x1ed7b3)||(_0x1df0e6[_0x411ec0(0x10b)](_0x2ada90),_0x563675=Math[_0x411ec0(0x14c)](_0x563675,_0x2ada90[_0x411ec0(0x16d)]),_0x1ed7b3=Math[_0x411ec0(0x154)](_0x1ed7b3,_0x2ada90['end']),_0x104691=!0x0);}if(_0x1df0e6[_0x411ec0(0x123)]===0x0)return null;let [_0x5790ac]=[..._0x1df0e6][_0x411ec0(0xd1)](je);return{'mergedOutline':{..._0x5790ac,'start':_0x563675,'end':_0x1ed7b3},'mergedOutlines':_0x1df0e6};}function Se(_0x2af61a,_0x2f99d6){const _0x5e0e83=_0x3a4b;return _0x2af61a[_0x5e0e83(0x172)](_0x1e83e0=>!T(_0x1e83e0,_0x2f99d6)||!(_0x1e83e0[_0x5e0e83(0x16d)]>=_0x2f99d6[_0x5e0e83(0x16d)]&&_0x1e83e0[_0x5e0e83(0x165)]<=_0x2f99d6[_0x5e0e83(0x165)]));}function Ce(_0xc8d588,_0x4becb3,_0x49e2a2,_0x1a357a){const _0x4b31fe=_0x3a4b;return we(_0xc8d588[_0x4b31fe(0x172)](_0x306948=>_0x306948[_0x4b31fe(0x161)]===_0x4becb3&&_0x306948[_0x4b31fe(0x156)]===_0x49e2a2&&_0x306948[_0x4b31fe(0xf7)]===_0x1a357a&&_0x306948[_0x4b31fe(0xd0)])[_0x4b31fe(0x10c)](_0x4cb881=>({'start':_0x4cb881[_0x4b31fe(0x16d)],'end':_0x4cb881[_0x4b31fe(0x165)]})));}function we(_0xe0fec7){const _0x3065f1=_0x3a4b;if(_0xe0fec7[_0x3065f1(0x123)]===0x0)return[];let _0x4364bb=[..._0xe0fec7][_0x3065f1(0xd1)]((_0x242e4e,_0x11ee1f)=>_0x242e4e[_0x3065f1(0x16d)]-_0x11ee1f[_0x3065f1(0x16d)]||_0x242e4e['end']-_0x11ee1f[_0x3065f1(0x165)]),_0x1ed1af=[];for(let _0x435165 of _0x4364bb){let _0x47d5ca=_0x1ed1af[_0x1ed1af[_0x3065f1(0x123)]-0x1];!_0x47d5ca||_0x435165['start']>_0x47d5ca[_0x3065f1(0x165)]+0x1?_0x1ed1af[_0x3065f1(0x10b)]({..._0x435165}):_0x47d5ca[_0x3065f1(0x165)]=Math[_0x3065f1(0x154)](_0x47d5ca[_0x3065f1(0x165)],_0x435165[_0x3065f1(0x165)]);}return _0x1ed1af;}function O(_0x5b17f2,_0x187cce){const _0x2f28db=_0x3a4b;return _0x187cce['count']<=0x0?_0x5b17f2:j(_0x5b17f2[_0x2f28db(0x10c)](_0x4dab65=>T(_0x4dab65,_0x187cce)?_0x187cce['index']<=_0x4dab65[_0x2f28db(0x16d)]?{..._0x4dab65,'start':_0x4dab65[_0x2f28db(0x16d)]+_0x187cce[_0x2f28db(0x109)],'end':_0x4dab65[_0x2f28db(0x165)]+_0x187cce[_0x2f28db(0x109)]}:_0x4dab65[_0x2f28db(0x16d)]<_0x187cce[_0x2f28db(0xf8)]&&_0x187cce[_0x2f28db(0xf8)]<=_0x4dab65[_0x2f28db(0x165)]?{..._0x4dab65,'end':_0x4dab65[_0x2f28db(0x165)]+_0x187cce[_0x2f28db(0x109)]}:_0x4dab65:_0x4dab65));}function k(_0x33126d,_0x162f5b){const _0x32bf07=_0x3a4b;if(_0x162f5b[_0x32bf07(0x16d)]>_0x162f5b[_0x32bf07(0x165)])return _0x33126d;let _0x5a27f=_0x162f5b[_0x32bf07(0x165)]-_0x162f5b[_0x32bf07(0x16d)]+0x1,_0xfe49ad=[];for(let _0x1cec0b of _0x33126d){if(!T(_0x1cec0b,_0x162f5b)){_0xfe49ad[_0x32bf07(0x10b)](_0x1cec0b);continue;}if(_0x1cec0b[_0x32bf07(0x165)]<_0x162f5b[_0x32bf07(0x16d)]){_0xfe49ad[_0x32bf07(0x10b)](_0x1cec0b);continue;}if(_0x1cec0b['start']>_0x162f5b[_0x32bf07(0x165)]){_0xfe49ad[_0x32bf07(0x10b)]({..._0x1cec0b,'start':_0x1cec0b['start']-_0x5a27f,'end':_0x1cec0b[_0x32bf07(0x165)]-_0x5a27f});continue;}let _0x50a7c3=Math['max'](_0x1cec0b[_0x32bf07(0x16d)],_0x162f5b[_0x32bf07(0x16d)]),_0x146f73=Math[_0x32bf07(0x14c)](_0x1cec0b[_0x32bf07(0x165)],_0x162f5b[_0x32bf07(0x165)]),_0x32f062=Math['max'](0x0,_0x146f73-_0x50a7c3+0x1),_0x4c0c39=_0x1cec0b[_0x32bf07(0x165)]-_0x1cec0b[_0x32bf07(0x16d)]+0x1-_0x32f062;if(_0x4c0c39<=0x0)continue;let _0x8af8b=_0x1cec0b[_0x32bf07(0x16d)]<_0x162f5b[_0x32bf07(0x16d)]?_0x1cec0b[_0x32bf07(0x16d)]:_0x162f5b['start'];_0xfe49ad[_0x32bf07(0x10b)]({..._0x1cec0b,'start':_0x8af8b,'end':_0x8af8b+_0x4c0c39-0x1});}return j(_0xfe49ad);}function A(_0x50e11d,_0x75d1ca){const _0x107048=_0x3a4b;if(_0x75d1ca[_0x107048(0xd2)]>_0x75d1ca[_0x107048(0xcf)])return _0x50e11d;let _0x76a714=[];for(let _0x460a85 of _0x50e11d){if(!T(_0x460a85,_0x75d1ca)){_0x76a714[_0x107048(0x10b)](_0x460a85);continue;}let _0x2da7b6=Te(_0x460a85,_0x75d1ca);if(_0x2da7b6[_0x107048(0x14e)]==='split')throw new C(_0x107048(0x105),_0x107048(0xee)+_0x460a85['id'],_0x460a85['id']);_0x76a714['push'](_0x2da7b6['outline']);}return j(_0x76a714);}function Te(_0x23c047,_0x317bd7){const _0x8f1b6b=_0x3a4b;let _0x1ff638=Ee(_0x317bd7[_0x8f1b6b(0xd2)],_0x317bd7['sourceEnd']+0x1,_0x317bd7[_0x8f1b6b(0xde)]),_0x149b7b=[],_0x34976b={'start':_0x23c047[_0x8f1b6b(0x16d)],'end':_0x23c047[_0x8f1b6b(0x165)]+0x1};for(let _0x3d6a17 of _0x1ff638){let _0x26b005=De(_0x34976b,_0x3d6a17['range']);_0x26b005&&_0x149b7b['push']({'start':_0x26b005[_0x8f1b6b(0x16d)]+_0x3d6a17['offset'],'end':_0x26b005[_0x8f1b6b(0x165)]+_0x3d6a17['offset']});}let _0x4e3ed5=Oe(_0x149b7b);return _0x4e3ed5[_0x8f1b6b(0x123)]===0x1?{'type':'ok','outline':{..._0x23c047,'start':_0x4e3ed5[0x0]['start'],'end':_0x4e3ed5[0x0][_0x8f1b6b(0x165)]-0x1}}:{'type':_0x8f1b6b(0x169),'outline':_0x23c047,'ranges':_0x4e3ed5};}function Ee(_0x19903d,_0x5cb359,_0x43ab4b){const _0x234ac2=_0x3a4b;let _0x333f4f=_0x5cb359-_0x19903d;if(_0x333f4f<=0x0)throw Error(_0x234ac2(0x11b));return _0x43ab4b>=_0x19903d&&_0x43ab4b<=_0x5cb359?[{'range':{'start':0x0,'end':w},'offset':0x0}]:_0x43ab4b<_0x19903d?[{'range':{'start':0x0,'end':_0x43ab4b},'offset':0x0},{'range':{'start':_0x43ab4b,'end':_0x19903d},'offset':_0x333f4f},{'range':{'start':_0x19903d,'end':_0x5cb359},'offset':_0x43ab4b-_0x19903d},{'range':{'start':_0x5cb359,'end':w},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x19903d},'offset':0x0},{'range':{'start':_0x19903d,'end':_0x5cb359},'offset':_0x43ab4b-_0x5cb359},{'range':{'start':_0x5cb359,'end':_0x43ab4b},'offset':-_0x333f4f},{'range':{'start':_0x43ab4b,'end':w},'offset':0x0}];}function De(_0x57094f,_0x1a973a){const _0x32af29=_0x3a4b;let _0x4afef2=Math[_0x32af29(0x154)](_0x57094f[_0x32af29(0x16d)],_0x1a973a[_0x32af29(0x16d)]),_0x3e0f5e=Math[_0x32af29(0x14c)](_0x57094f['end'],_0x1a973a[_0x32af29(0x165)]);return _0x4afef2>=_0x3e0f5e?null:{'start':_0x4afef2,'end':_0x3e0f5e};}function Oe(_0x543093){const _0x3efded=_0x3a4b;if(_0x543093[_0x3efded(0x123)]===0x0)return[];let _0x49806e=[..._0x543093][_0x3efded(0xd1)]((_0x3845ae,_0x193a36)=>_0x3845ae['start']-_0x193a36[_0x3efded(0x16d)]||_0x3845ae['end']-_0x193a36[_0x3efded(0x165)]),_0x4e3ddf=[];for(let _0xd0ec4c of _0x49806e){let _0x30471d=_0x4e3ddf[_0x4e3ddf['length']-0x1];!_0x30471d||_0xd0ec4c['start']>_0x30471d[_0x3efded(0x165)]?_0x4e3ddf['push']({..._0xd0ec4c}):_0x30471d[_0x3efded(0x165)]=Math[_0x3efded(0x154)](_0x30471d[_0x3efded(0x165)],_0xd0ec4c[_0x3efded(0x165)]);}return _0x4e3ddf;}function ke(_0x5bbc6d,_0x1be9bc,_0x4a0e0a,_0x3f5f3c){return _0x1be9bc+0x1===_0x4a0e0a||_0x3f5f3c+0x1===_0x5bbc6d;}function j(_0x47e03b){let _0x4213a2=Ae(_0x47e03b);return E(_0x4213a2),_0x4213a2;}function Ae(_0x5d5360){const _0x3ec201=_0x3a4b;let _0x569bfc=new Map();for(let _0x489b6c of _0x5d5360){let _0x1be399=[_0x489b6c['unitId'],_0x489b6c[_0x3ec201(0x156)],_0x489b6c[_0x3ec201(0xf7)],_0x489b6c[_0x3ec201(0x16d)],_0x489b6c['end']][_0x3ec201(0x13c)](':'),_0x1bfc9d=_0x569bfc[_0x3ec201(0x136)](_0x1be399);if(!_0x1bfc9d){_0x569bfc[_0x3ec201(0x171)](_0x1be399,_0x489b6c);continue;}_0x569bfc[_0x3ec201(0x171)](_0x1be399,{..._0x1bfc9d,'collapsed':_0x1bfc9d[_0x3ec201(0xd0)]||_0x489b6c['collapsed']});}return Array[_0x3ec201(0x10d)](_0x569bfc[_0x3ec201(0x111)]());}function je(_0x4e86c1,_0x17a96c){const _0x1a380e=_0x3a4b;return _0x4e86c1[_0x1a380e(0x161)]===_0x17a96c[_0x1a380e(0x161)]?_0x4e86c1[_0x1a380e(0x156)]===_0x17a96c['subUnitId']?_0x4e86c1['axis']===_0x17a96c['axis']?_0x4e86c1['start']===_0x17a96c[_0x1a380e(0x16d)]?_0x17a96c['end']-_0x4e86c1[_0x1a380e(0x165)]:_0x4e86c1['start']-_0x17a96c[_0x1a380e(0x16d)]:_0x4e86c1[_0x1a380e(0xf7)][_0x1a380e(0xf0)](_0x17a96c[_0x1a380e(0xf7)]):_0x4e86c1[_0x1a380e(0x156)][_0x1a380e(0xf0)](_0x17a96c[_0x1a380e(0x156)]):_0x4e86c1[_0x1a380e(0x161)][_0x1a380e(0xf0)](_0x17a96c[_0x1a380e(0x161)]);}function Me(_0xb22f7d){const _0x3fbb5c=_0x3a4b;if(_0xb22f7d[_0x3fbb5c(0x16d)]>_0xb22f7d[_0x3fbb5c(0x165)])throw new C(_0x3fbb5c(0xd3),_0x3fbb5c(0x15d),_0xb22f7d['id']);}function Ne(_0x371475,_0x2ed2e7){const _0x40980d=_0x3a4b;let _0x56978f=_0x371475[_0x40980d(0x16d)]<=_0x2ed2e7[_0x40980d(0x165)]&&_0x2ed2e7['start']<=_0x371475[_0x40980d(0x165)],_0x1bb2ec=_0x371475[_0x40980d(0x16d)]<=_0x2ed2e7[_0x40980d(0x16d)]&&_0x2ed2e7[_0x40980d(0x165)]<=_0x371475[_0x40980d(0x165)],_0x286def=_0x2ed2e7[_0x40980d(0x16d)]<=_0x371475[_0x40980d(0x16d)]&&_0x371475[_0x40980d(0x165)]<=_0x2ed2e7[_0x40980d(0x165)];return _0x56978f&&!_0x1bb2ec&&!_0x286def;}function M(_0x5c34f8){'@babel/helpers - typeof';const _0x4816e1=_0x3a4b;return M=typeof Symbol==_0x4816e1(0x132)&&typeof Symbol[_0x4816e1(0x135)]==_0x4816e1(0x125)?function(_0x2a1016){return typeof _0x2a1016;}:function(_0x573d44){const _0x343f3a=_0x4816e1;return _0x573d44&&typeof Symbol==_0x343f3a(0x132)&&_0x573d44[_0x343f3a(0x124)]===Symbol&&_0x573d44!==Symbol[_0x343f3a(0x130)]?_0x343f3a(0x125):typeof _0x573d44;},M(_0x5c34f8);}function Pe(_0x311b19,_0x46acb){const _0x4991d7=_0x3a4b;if(M(_0x311b19)!=_0x4991d7(0xcd)||!_0x311b19)return _0x311b19;var _0x267d23=_0x311b19[Symbol[_0x4991d7(0x117)]];if(_0x267d23!==void 0x0){var _0x3e28e9=_0x267d23['call'](_0x311b19,_0x46acb||'default');if(M(_0x3e28e9)!=_0x4991d7(0xcd))return _0x3e28e9;throw TypeError(_0x4991d7(0x102));}return(_0x46acb===_0x4991d7(0x14b)?String:Number)(_0x311b19);}function Fe(_0x254d1f){const _0x58a885=_0x3a4b;var _0x164444=Pe(_0x254d1f,_0x58a885(0x14b));return M(_0x164444)==_0x58a885(0x125)?_0x164444:_0x164444+'';}function N(_0x1ea92b,_0x5b6ad1,_0x4d7dde){const _0x2f0368=_0x3a4b;return(_0x5b6ad1=Fe(_0x5b6ad1))in _0x1ea92b?Object[_0x2f0368(0xc9)](_0x1ea92b,_0x5b6ad1,{'value':_0x4d7dde,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1ea92b[_0x5b6ad1]=_0x4d7dde,_0x1ea92b;}var P=class extends _0xe18af3{constructor(..._0x26a79e){const _0x478a1c=_0x3a4b;super(..._0x26a79e),N(this,_0x478a1c(0x163),new Map()),N(this,_0x478a1c(0x148),new _0x54b96e()),N(this,_0x478a1c(0x162),this[_0x478a1c(0x148)][_0x478a1c(0x16e)]());}[_0x1833dd(0xf3)](_0x44704f,_0x23f7ef){const _0x4b9cc6=_0x1833dd;var _0x4d2783,_0x3e9386;return[...(_0x4d2783=(_0x3e9386=this['_outlines'][_0x4b9cc6(0x136)](_0x44704f))==null?void 0x0:_0x3e9386[_0x4b9cc6(0x136)](_0x23f7ef))==null?[]:_0x4d2783];}['getUnitOutlines'](_0x4b03d3){const _0x4702b2=_0x1833dd;let _0x32f14d=this['_outlines'][_0x4702b2(0x136)](_0x4b03d3),_0x2b777f=new Map();return _0x32f14d==null||_0x32f14d[_0x4702b2(0x11a)]((_0x218d2f,_0x1a9c4a)=>{const _0x10d298=_0x4702b2;_0x2b777f[_0x10d298(0x171)](_0x1a9c4a,[..._0x218d2f]);}),_0x2b777f;}[_0x1833dd(0x14d)](_0x20b588,_0x2dd5ed,_0x1b5ff4){const _0x277bb5=_0x1833dd;this[_0x277bb5(0x108)](_0x20b588)[_0x277bb5(0x171)](_0x2dd5ed,[..._0x1b5ff4]),this['_change$'][_0x277bb5(0xcb)]({'unitId':_0x20b588,'subUnitId':_0x2dd5ed});}[_0x1833dd(0xe1)](_0x2d0407){const _0x5698af=_0x1833dd;this[_0x5698af(0x163)][_0x5698af(0x15a)](_0x2d0407),this['_change$'][_0x5698af(0xcb)]({'unitId':_0x2d0407});}[_0x1833dd(0x146)](_0x4df28e){const _0x3daad6=_0x1833dd;let _0x19632c=this[_0x3daad6(0x163)][_0x3daad6(0x136)](_0x4df28e),_0x590179={};return _0x19632c==null||_0x19632c['forEach']((_0x340ed5,_0x4e84e5)=>{_0x590179[_0x4e84e5]={'outlineList':[..._0x340ed5]};}),_0x590179;}[_0x1833dd(0x143)](_0x2bb53b,_0x210b6f){const _0x11dac2=_0x1833dd;let _0x461031=new Map();Object[_0x11dac2(0x150)](_0x210b6f)['forEach'](([_0x3737cf,_0x48bdb4])=>{const _0x7fd109=_0x11dac2;var _0x5a6357;_0x461031[_0x7fd109(0x171)](_0x3737cf,[...(_0x5a6357=_0x48bdb4[_0x7fd109(0xca)])==null?[]:_0x5a6357]);}),this['_outlines'][_0x11dac2(0x171)](_0x2bb53b,_0x461031),this[_0x11dac2(0x148)][_0x11dac2(0xcb)]({'unitId':_0x2bb53b});}[_0x1833dd(0xdc)](){const _0x422b41=_0x1833dd;super[_0x422b41(0xdc)](),this['_outlines'][_0x422b41(0x10e)](),this[_0x422b41(0x148)][_0x422b41(0x145)]();}[_0x1833dd(0x108)](_0x2386d5){const _0x58b171=_0x1833dd;let _0x1e22d0=this[_0x58b171(0x163)][_0x58b171(0x136)](_0x2386d5);return _0x1e22d0||(_0x1e22d0=new Map(),this['_outlines'][_0x58b171(0x171)](_0x2386d5,_0x1e22d0)),_0x1e22d0;}},F=class extends _0xe18af3{constructor(..._0x35fab9){const _0x38ead9=_0x1833dd;super(..._0x35fab9),N(this,'_error$',new _0x54b96e()),N(this,_0x38ead9(0x104),this['_error$'][_0x38ead9(0x16e)]());}[_0x1833dd(0x174)](_0x4fdeaa){const _0x429673=_0x1833dd;this[_0x429673(0x139)][_0x429673(0xcb)](_0x4fdeaa);}[_0x1833dd(0xdc)](){const _0xe9dcb7=_0x1833dd;super[_0xe9dcb7(0xdc)](),this[_0xe9dcb7(0x139)][_0xe9dcb7(0x145)]();}};const I={'id':_0x1833dd(0xdb),'type':_0x5c5c9a['MUTATION'],'handler':(_0x10f68e,_0x36eb29)=>{const _0xee29f4=_0x1833dd;let _0x3d976f=_0x10f68e[_0xee29f4(0x136)](P),_0x2caae0=_0x3d976f[_0xee29f4(0xf3)](_0x36eb29[_0xee29f4(0x161)],_0x36eb29[_0xee29f4(0x156)]);return _0x3d976f[_0xee29f4(0x14d)](_0x36eb29['unitId'],_0x36eb29[_0xee29f4(0x156)],be(_0x2caae0,_0x36eb29[_0xee29f4(0x112)])),!0x0;}},L={'id':_0x1833dd(0x142),'type':_0x5c5c9a[_0x1833dd(0xe2)],'handler':(_0x100609,_0x166a17)=>{const _0x3048c4=_0x1833dd;let _0x1f5bf9=_0x100609['get'](P),_0x1ee680=_0x1f5bf9[_0x3048c4(0xf3)](_0x166a17[_0x3048c4(0x161)],_0x166a17['subUnitId']);return _0x1f5bf9[_0x3048c4(0x14d)](_0x166a17[_0x3048c4(0x161)],_0x166a17[_0x3048c4(0x156)],_0x1ee680[_0x3048c4(0x172)](_0x188207=>_0x188207['id']!==_0x166a17[_0x3048c4(0xce)])),!0x0;}};function R(_0x2fda71,_0x349911,_0x29e7e2){let _0x281a8d=Le(_0x2fda71);return!_0x281a8d||_0x281a8d['permissionCheckWithoutRange']({'workbookTypes':[_0x9f8f44],'worksheetTypes':[_0x1b0ba6]},_0x349911,_0x29e7e2);}function Ie(_0x36e7ce,_0x4a701b,_0xc6dea1){const _0x243661=_0x1833dd;var _0x78c432;let _0x61c5ba=Re(_0x36e7ce);return((_0x78c432=_0x61c5ba==null?void 0x0:_0x61c5ba[_0x243661(0x168)])==null?_0x401f9f(null):_0x78c432)[_0x243661(0xfe)](_0x316122(0x64),_0x308174(null),_0x411084(()=>R(_0x36e7ce,_0x4a701b,_0xc6dea1)));}function Le(_0x559fec){const _0x943267=_0x1833dd;if(typeof _0x559fec['has']==_0x943267(0x132)&&!_0x559fec['has'](_0x12b494))return null;try{return _0x559fec[_0x943267(0x136)](_0x12b494);}catch{return null;}}function Re(_0x2fbdf9){const _0x3d954d=_0x1833dd;if(typeof _0x2fbdf9[_0x3d954d(0x12a)]=='function'&&!_0x2fbdf9[_0x3d954d(0x12a)](_0x19652f))return null;try{return _0x2fbdf9[_0x3d954d(0x136)](_0x19652f);}catch{return null;}}const z={'id':_0x1833dd(0x173),'type':_0x5c5c9a[_0x1833dd(0xef)],'handler':(_0x27fad4,_0x2579a9)=>{const _0x98dfba=_0x1833dd;var _0x470e2b,_0x125aff;if(!_0x2579a9)return!0x1;let _0x5bf76f=_0xe99487(_0x27fad4[_0x98dfba(0x136)](_0x1aff8c),_0x2579a9);if(!_0x5bf76f)return!0x1;let {unitId:_0x126359,subUnitId:_0x3923a7,worksheet:_0x575864}=_0x5bf76f;if(!R(_0x27fad4,_0x126359,_0x3923a7))return!0x1;let _0x59a646=_0x27fad4[_0x98dfba(0x136)](P),_0x381d8f={'id':'dimension-outline-'+_0x3e222e(0x6),'unitId':_0x126359,'subUnitId':_0x3923a7,'axis':_0x2579a9[_0x98dfba(0xf7)],'start':_0x2579a9[_0x98dfba(0x16d)],'end':_0x2579a9[_0x98dfba(0x165)],'collapsed':!0x1},_0x2ea394=_0x2579a9['axis']===_0x98dfba(0x134)?_0x575864[_0x98dfba(0x12d)]():_0x575864['getColumnCount'](),_0x167039=_0x59a646[_0x98dfba(0xf3)](_0x126359,_0x3923a7),_0x3197a4=xe(_0x167039,_0x381d8f),_0x436cfa=(_0x470e2b=_0x3197a4==null?void 0x0:_0x3197a4[_0x98dfba(0x155)])==null?[]:_0x470e2b,_0xa21696=(_0x125aff=_0x3197a4==null?void 0x0:_0x3197a4['mergedOutline'])==null?_0x381d8f:_0x125aff,_0x3e7009=D(_0x3197a4?_0x167039[_0x98dfba(0x172)](_0x1308fe=>!_0x436cfa[_0x98dfba(0x113)](_0x90a477=>_0x90a477['id']===_0x1308fe['id'])):_0x167039,_0xa21696,{'maxIndex':_0x2ea394});if(!_0x3e7009[_0x98dfba(0x106)]){var _0xdb6c7a;return _0x27fad4[_0x98dfba(0x136)](F)[_0x98dfba(0x174)]({'reason':(_0xdb6c7a=_0x3e7009[_0x98dfba(0xe5)])==null?'unknown':_0xdb6c7a,'commandId':z['id'],'unitId':_0x126359,'subUnitId':_0x3923a7,'axis':_0x2579a9[_0x98dfba(0xf7)],'outlineId':_0xa21696['id']}),!0x1;}let _0x359ac3=[..._0x436cfa[_0x98dfba(0x10c)](_0x8fedd3=>({'id':L['id'],'params':{'unitId':_0x126359,'subUnitId':_0x3923a7,'outlineId':_0x8fedd3['id']}})),{'id':I['id'],'params':{'unitId':_0x126359,'subUnitId':_0x3923a7,'outline':_0xa21696}}],_0x58f422=[{'id':L['id'],'params':{'unitId':_0x126359,'subUnitId':_0x3923a7,'outlineId':_0xa21696['id']}},..._0x436cfa['map'](_0x3e26f8=>({'id':I['id'],'params':{'unitId':_0x126359,'subUnitId':_0x3923a7,'outline':_0x3e26f8}}))];return _0x1fddcb(_0x359ac3,_0x27fad4[_0x98dfba(0x136)](_0xb641c0))[_0x98dfba(0xd6)]?(_0x27fad4['get'](_0x50b520)['pushUndoRedo']({'unitID':_0x126359,'undoMutations':_0x58f422,'redoMutations':_0x359ac3}),!0x0):!0x1;}},B={'id':_0x1833dd(0xf4),'type':_0x5c5c9a['MUTATION'],'handler':(_0x400b20,_0x40511d)=>{const _0x700662=_0x1833dd;let _0x3f7a08=_0x400b20[_0x700662(0x136)](P),_0x2e2283=_0x3f7a08[_0x700662(0xf3)](_0x40511d[_0x700662(0x161)],_0x40511d[_0x700662(0x156)]);return _0x3f7a08[_0x700662(0x14d)](_0x40511d[_0x700662(0x161)],_0x40511d[_0x700662(0x156)],Se(_0x2e2283,_0x40511d)),!0x0;}},V={'id':_0x1833dd(0xdf),'type':_0x5c5c9a[_0x1833dd(0xef)],'handler':(_0x5849d7,_0x2f47eb)=>{const _0x5c0842=_0x1833dd;if(!_0x2f47eb)return!0x1;let _0x50c54b=_0xe99487(_0x5849d7[_0x5c0842(0x136)](_0x1aff8c),_0x2f47eb);if(!_0x50c54b)return!0x1;let {unitId:_0x4254de,subUnitId:_0x29f035}=_0x50c54b;if(!R(_0x5849d7,_0x4254de,_0x29f035))return!0x1;let _0x51dd1e={'unitId':_0x4254de,'subUnitId':_0x29f035,'axis':_0x2f47eb['axis'],'start':_0x2f47eb[_0x5c0842(0x16d)],'end':_0x2f47eb[_0x5c0842(0x165)]},_0x279193=_0x5849d7['get'](P)[_0x5c0842(0xf3)](_0x4254de,_0x29f035)[_0x5c0842(0x172)](_0x42ffbe=>T(_0x42ffbe,_0x51dd1e)&&_0x42ffbe[_0x5c0842(0x16d)]>=_0x2f47eb['start']&&_0x42ffbe[_0x5c0842(0x165)]<=_0x2f47eb[_0x5c0842(0x165)]);if(_0x279193[_0x5c0842(0x123)]===0x0)return _0x5849d7[_0x5c0842(0x136)](F)[_0x5c0842(0x174)]({'reason':_0x5c0842(0x14f),'commandId':V['id'],'unitId':_0x4254de,'subUnitId':_0x29f035,'axis':_0x2f47eb[_0x5c0842(0xf7)]}),!0x1;let _0x58cd08=[{'id':B['id'],'params':{..._0x51dd1e,'removedOutlineIds':_0x279193[_0x5c0842(0x10c)](_0xdf42d=>_0xdf42d['id'])}}],_0x36cc80=_0x279193['map'](_0x4bcec1=>({'id':I['id'],'params':{'unitId':_0x4254de,'subUnitId':_0x29f035,'outline':_0x4bcec1}}));return _0x1fddcb(_0x58cd08,_0x5849d7[_0x5c0842(0x136)](_0xb641c0))[_0x5c0842(0xd6)]?(_0x5849d7[_0x5c0842(0x136)](_0x50b520)[_0x5c0842(0xd7)]({'unitID':_0x4254de,'undoMutations':_0x36cc80,'redoMutations':_0x58cd08}),!0x0):!0x1;}},ze={'id':_0x1833dd(0x138),'type':_0x5c5c9a[_0x1833dd(0xef)],'handler':(_0x22a3a2,_0xe772df)=>{const _0x49ce72=_0x1833dd;if(!_0xe772df)return!0x1;let _0x359c99=_0xe99487(_0x22a3a2[_0x49ce72(0x136)](_0x1aff8c),_0xe772df);if(!_0x359c99)return!0x1;let {unitId:_0x5840c5,subUnitId:_0x1a5502}=_0x359c99;if(!R(_0x22a3a2,_0x5840c5,_0x1a5502))return!0x1;let _0x405ce2=_0x22a3a2[_0x49ce72(0x136)](P)[_0x49ce72(0xf3)](_0x5840c5,_0x1a5502)['find'](_0x2a9509=>_0x2a9509['id']===_0xe772df[_0x49ce72(0xce)]);if(!_0x405ce2)return!0x1;let _0x3256dc=[{'id':L['id'],'params':{'unitId':_0x5840c5,'subUnitId':_0x1a5502,'outlineId':_0x405ce2['id'],'outline':_0x405ce2}}],_0x5b270f=[{'id':I['id'],'params':{'unitId':_0x5840c5,'subUnitId':_0x1a5502,'outline':_0x405ce2}}];return _0x1fddcb(_0x3256dc,_0x22a3a2[_0x49ce72(0x136)](_0xb641c0))['result']?(_0x22a3a2[_0x49ce72(0x136)](_0x50b520)[_0x49ce72(0xd7)]({'unitID':_0x5840c5,'undoMutations':_0x5b270f,'redoMutations':_0x3256dc}),!0x0):!0x1;}},H={'id':'sheet.mutation.set-dimension-outline-collapsed','type':_0x5c5c9a[_0x1833dd(0xe2)],'handler':(_0x102bf4,_0x486847)=>{const _0x4d9906=_0x1833dd;let _0x5e58bc=_0x102bf4['get'](P),_0x3aefb7=_0x5e58bc[_0x4d9906(0xf3)](_0x486847[_0x4d9906(0x161)],_0x486847[_0x4d9906(0x156)]),_0x54557e=_0x3aefb7[_0x4d9906(0xfa)](_0x7454a8=>_0x7454a8['id']===_0x486847['outlineId']);return _0x54557e&&_0x5e58bc['setOutlines'](_0x486847[_0x4d9906(0x161)],_0x486847[_0x4d9906(0x156)],_0x3aefb7[_0x4d9906(0x10c)](_0x12ca28=>_0x12ca28[_0x4d9906(0x161)]!==_0x54557e['unitId']||_0x12ca28[_0x4d9906(0x156)]!==_0x54557e[_0x4d9906(0x156)]||_0x12ca28[_0x4d9906(0xf7)]!==_0x54557e[_0x4d9906(0xf7)]||_0x12ca28[_0x4d9906(0x16d)]!==_0x54557e[_0x4d9906(0x16d)]||_0x12ca28[_0x4d9906(0x165)]!==_0x54557e['end']?_0x12ca28:{..._0x12ca28,'collapsed':_0x486847[_0x4d9906(0xd0)]})),!0x0;}};function Be(_0x237573,_0x4f3e28,_0x278362,_0x189e18){const _0x4e70e4=_0x1833dd;return _0x237573==='row'?{'startRow':_0x4f3e28,'endRow':_0x278362,'startColumn':0x0,'endColumn':_0x189e18[_0x4e70e4(0xf6)]()-0x1}:{'startRow':0x0,'endRow':_0x189e18[_0x4e70e4(0x12d)]()-0x1,'startColumn':_0x4f3e28,'endColumn':_0x278362};}function Ve(_0x1edccf){return _0x1edccf==='row'?_0x33d7d0['id']:_0x58466f['id'];}function He(_0x329786){return _0x329786==='row'?_0x39df2b['id']:_0x13e49f['id'];}function Ue(_0x4045a8,_0x323bdc,_0x4526b4,_0x565eb7){const _0x5530f7=_0x1833dd;let _0x37aa78=_0x323bdc?[Be(_0x4045a8[_0x5530f7(0xf7)],_0x4045a8['start'],_0x4045a8[_0x5530f7(0x165)],_0x4526b4)]:We(_0x4045a8,_0x565eb7,_0x4526b4),_0x1a1f4d=_0x323bdc?Ve(_0x4045a8['axis']):He(_0x4045a8['axis']);return[{'id':H['id'],'params':{'unitId':_0x4045a8[_0x5530f7(0x161)],'subUnitId':_0x4045a8[_0x5530f7(0x156)],'outlineId':_0x4045a8['id'],'outline':_0x4045a8,'collapsed':_0x323bdc}},..._0x37aa78[_0x5530f7(0x10c)](_0x55525e=>({'id':_0x1a1f4d,'params':{'unitId':_0x4045a8[_0x5530f7(0x161)],'subUnitId':_0x4045a8[_0x5530f7(0x156)],'ranges':[_0x55525e],'dimensionOutlineId':_0x4045a8['id']}}))];}function We(_0x1ebf92,_0x33e751,_0x3a5194){const _0x24b0d2=_0x1833dd;let _0x4195d2=Ce(_0x33e751['map'](_0x19ad9e=>Ge(_0x19ad9e,_0x1ebf92)?{..._0x19ad9e,'collapsed':!0x1}:_0x19ad9e),_0x1ebf92[_0x24b0d2(0x161)],_0x1ebf92[_0x24b0d2(0x156)],_0x1ebf92[_0x24b0d2(0xf7)]);return Ke({'start':_0x1ebf92[_0x24b0d2(0x16d)],'end':_0x1ebf92[_0x24b0d2(0x165)]},_0x4195d2)[_0x24b0d2(0x10c)](_0x1c278b=>Be(_0x1ebf92['axis'],_0x1c278b[_0x24b0d2(0x16d)],_0x1c278b['end'],_0x3a5194));}function Ge(_0x36ae41,_0x327f82){const _0x11df8d=_0x1833dd;return _0x36ae41['unitId']===_0x327f82['unitId']&&_0x36ae41['subUnitId']===_0x327f82[_0x11df8d(0x156)]&&_0x36ae41[_0x11df8d(0xf7)]===_0x327f82['axis']&&_0x36ae41['start']===_0x327f82[_0x11df8d(0x16d)]&&_0x36ae41[_0x11df8d(0x165)]===_0x327f82['end'];}function Ke(_0x157202,_0x7aebd5){const _0x49d1ca=_0x1833dd;let _0x12c17d=_0x157202['start'],_0x3521e1=[];for(let _0x7bc666 of _0x7aebd5)if(!(_0x7bc666['end']<_0x12c17d||_0x7bc666['start']>_0x157202[_0x49d1ca(0x165)])&&(_0x7bc666[_0x49d1ca(0x16d)]>_0x12c17d&&_0x3521e1[_0x49d1ca(0x10b)]({'start':_0x12c17d,'end':Math[_0x49d1ca(0x14c)](_0x7bc666[_0x49d1ca(0x16d)]-0x1,_0x157202[_0x49d1ca(0x165)])}),_0x12c17d=Math[_0x49d1ca(0x154)](_0x12c17d,_0x7bc666[_0x49d1ca(0x165)]+0x1),_0x12c17d>_0x157202['end']))break;return _0x12c17d<=_0x157202[_0x49d1ca(0x165)]&&_0x3521e1[_0x49d1ca(0x10b)]({'start':_0x12c17d,'end':_0x157202['end']}),_0x3521e1;}const qe={'id':_0x1833dd(0x166),'type':_0x5c5c9a[_0x1833dd(0xef)],'handler':(_0x5a8ef2,_0x71409a)=>{const _0xe7cc66=_0x1833dd;if(!_0x71409a)return!0x1;let _0x203a6c=_0xe99487(_0x5a8ef2[_0xe7cc66(0x136)](_0x1aff8c),_0x71409a);if(!_0x203a6c)return!0x1;let {unitId:_0x5da4c3,subUnitId:_0x1bee0a,worksheet:_0x382fc5}=_0x203a6c;if(!R(_0x5a8ef2,_0x5da4c3,_0x1bee0a))return!0x1;let _0x380d16=_0x5a8ef2[_0xe7cc66(0x136)](P)[_0xe7cc66(0xf3)](_0x5da4c3,_0x1bee0a),_0x58a1f2=_0x380d16['find'](_0x167d90=>_0x167d90['id']===_0x71409a[_0xe7cc66(0xce)]);if(!_0x58a1f2||_0x58a1f2['collapsed']===_0x71409a[_0xe7cc66(0xd0)])return!0x1;let _0x21dbac=Ue(_0x58a1f2,_0x71409a[_0xe7cc66(0xd0)],_0x382fc5,_0x380d16),_0x1f95e5=Ue(_0x58a1f2,!_0x71409a[_0xe7cc66(0xd0)],_0x382fc5,_0x380d16);return _0x1fddcb(_0x21dbac,_0x5a8ef2[_0xe7cc66(0x136)](_0xb641c0))['result']?(_0x5a8ef2[_0xe7cc66(0x136)](_0x50b520)[_0xe7cc66(0xd7)]({'unitID':_0x5da4c3,'undoMutations':_0x1f95e5,'redoMutations':_0x21dbac}),!0x0):!0x1;}},U={'id':_0x1833dd(0x151),'type':_0x5c5c9a[_0x1833dd(0xe2)],'handler':(_0x4c80c1,_0x48a765)=>{const _0x1072ff=_0x1833dd;let _0x43ac67=_0x4c80c1[_0x1072ff(0x136)](P),_0xdce7eb=Je(_0x43ac67['getOutlines'](_0x48a765['unitId'],_0x48a765[_0x1072ff(0x156)]),_0x48a765);return _0x43ac67['setOutlines'](_0x48a765[_0x1072ff(0x161)],_0x48a765[_0x1072ff(0x156)],_0xdce7eb),!0x0;}};function Je(_0x4b5c6c,_0x4c5683){const _0x48eab0=_0x1833dd;switch(_0x4c5683[_0x48eab0(0x14e)]){case _0x48eab0(0xd4):return _0x4c5683[_0x48eab0(0x11c)]?Ye(_0x4b5c6c,_0x4c5683):O(_0x4b5c6c,_0x4c5683);case'delete':return k(_0x4b5c6c,_0x4c5683);case _0x48eab0(0x137):return A(_0x4b5c6c,_0x4c5683);}}function Ye(_0x2986ea,_0x1907ae){const _0x1642de=_0x1833dd;return[..._0x2986ea[_0x1642de(0x172)](_0x3043c7=>_0x3043c7[_0x1642de(0x161)]!==_0x1907ae[_0x1642de(0x161)]||_0x3043c7[_0x1642de(0x156)]!==_0x1907ae['subUnitId']||_0x3043c7['axis']!==_0x1907ae[_0x1642de(0xf7)]),..._0x1907ae[_0x1642de(0x11c)]];}const W='SHEET_OUTLINE_PLUGIN';var Xe=_0x1833dd(0xea),Ze=_0x1833dd(0x15e);const Qe={};function G(_0x40a9a0,_0x389e9b){return function(_0x380f0c,_0xf6d2dd){_0x389e9b(_0x380f0c,_0xf6d2dd,_0x40a9a0);};}function K(_0x5b38cd,_0x30fd85,_0x256ee9,_0x365fd1){const _0x44a459=_0x1833dd;var _0x8c516b=arguments[_0x44a459(0x123)],_0x149387=_0x8c516b<0x3?_0x30fd85:_0x365fd1===null?_0x365fd1=Object[_0x44a459(0x118)](_0x30fd85,_0x256ee9):_0x365fd1,_0x2c34d0;if(typeof Reflect==_0x44a459(0xcd)&&typeof Reflect[_0x44a459(0x11f)]==_0x44a459(0x132))_0x149387=Reflect[_0x44a459(0x11f)](_0x5b38cd,_0x30fd85,_0x256ee9,_0x365fd1);else{for(var _0x20f72d=_0x5b38cd[_0x44a459(0x123)]-0x1;_0x20f72d>=0x0;_0x20f72d--)(_0x2c34d0=_0x5b38cd[_0x20f72d])&&(_0x149387=(_0x8c516b<0x3?_0x2c34d0(_0x149387):_0x8c516b>0x3?_0x2c34d0(_0x30fd85,_0x256ee9,_0x149387):_0x2c34d0(_0x30fd85,_0x256ee9))||_0x149387);}return _0x8c516b>0x3&&_0x149387&&Object['defineProperty'](_0x30fd85,_0x256ee9,_0x149387),_0x149387;}const q={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let J=class extends _0xe18af3{constructor(_0x4a5262,_0x51b86f,_0x292431,_0x16eb6b){const _0x10c782=_0x1833dd;super(),this[_0x10c782(0x152)]=_0x4a5262,this[_0x10c782(0x158)]=_0x51b86f,this[_0x10c782(0x167)]=_0x292431,this[_0x10c782(0x13a)]=_0x16eb6b,this[_0x10c782(0xe0)]();}['_initCommandInterceptor'](){const _0x5ed12b=_0x1833dd;this[_0x5ed12b(0x101)](this['_sheetInterceptorService'][_0x5ed12b(0x110)]({'getMutations':_0x262994=>$e(_0x262994,(_0x3ca100,_0x5d6fed)=>this['_sheetsOutlineModel'][_0x5ed12b(0xf3)](_0x3ca100,_0x5d6fed),this[_0x5ed12b(0xfc)](_0x262994[_0x5ed12b(0x164)]),_0x1db6ee=>this['_sheetsOutlineErrorService'][_0x5ed12b(0x174)](_0x1db6ee))}));}[_0x1833dd(0xfc)](_0x3e581c){const _0x4dd9a3=_0x1833dd;let _0x216666=_0x3e581c,_0x30965e=_0x216666!=null&&_0x216666[_0x4dd9a3(0x161)]?this[_0x4dd9a3(0x152)][_0x4dd9a3(0xed)](_0x216666[_0x4dd9a3(0x161)],_0x84cb88[_0x4dd9a3(0x13d)]):this[_0x4dd9a3(0x152)][_0x4dd9a3(0x120)](_0x84cb88[_0x4dd9a3(0x13d)]);if(!_0x30965e)return;let _0x33b8d6=_0x216666!=null&&_0x216666[_0x4dd9a3(0x156)]?_0x30965e[_0x4dd9a3(0x153)](_0x216666[_0x4dd9a3(0x156)]):_0x30965e[_0x4dd9a3(0xe4)]();if(_0x33b8d6)return{'unitId':_0x30965e['getUnitId'](),'subUnitId':_0x33b8d6[_0x4dd9a3(0x100)]()};}};J=K([G(0x0,_0x1aff8c),G(0x1,_0x140d65(_0x1fddbb)),G(0x2,_0x140d65(P)),G(0x3,_0x140d65(F))],J);function $e(_0x31c407,_0x2ce1b0,_0x46a92c,_0x474c61){const _0x3db9b0=_0x1833dd;let _0x481f46=tt(_0x31c407,_0x46a92c);if(!_0x481f46)return Z();let _0x4be239=_0x2ce1b0(_0x481f46[_0x3db9b0(0x161)],_0x481f46[_0x3db9b0(0x156)]);if(!_0x4be239[_0x3db9b0(0x113)](_0x59273d=>_0x59273d[_0x3db9b0(0xf7)]===_0x481f46[_0x3db9b0(0xf7)]))return Z();et(_0x4be239,_0x481f46,_0x31c407['id'],_0x474c61);let _0x5d859d=it(_0x481f46,_0x4be239);return{'redos':[{'id':U['id'],'params':_0x481f46}],'undos':[{'id':U['id'],'params':_0x5d859d}],'preRedos':[],'preUndos':[]};}function et(_0x42067d,_0x588b0d,_0x407253,_0x33cea9){const _0x3a2764=_0x1833dd;try{switch(_0x588b0d[_0x3a2764(0x14e)]){case'insert':O(_0x42067d,_0x588b0d);break;case _0x3a2764(0x15a):k(_0x42067d,_0x588b0d);break;case'move':A(_0x42067d,_0x588b0d);break;}}catch(_0x10f2c3){throw _0x33cea9==null||_0x33cea9({'reason':ve(_0x10f2c3),'commandId':_0x407253,'unitId':_0x588b0d['unitId'],'subUnitId':_0x588b0d[_0x3a2764(0x156)],'axis':_0x588b0d[_0x3a2764(0xf7)],'outlineId':ye(_0x10f2c3)}),new _0x548967(_0x10f2c3 instanceof Error?_0x10f2c3['message']:_0x3a2764(0xff));}}function tt(_0xc9a5a3,_0x48ea74){const _0x2fb183=_0x1833dd;switch(_0xc9a5a3['id']){case _0x16cb71['id']:return Y(_0xc9a5a3[_0x2fb183(0x164)],'row',_0x48ea74);case _0x45efe8['id']:return Y(_0xc9a5a3[_0x2fb183(0x164)],_0x2fb183(0x116),_0x48ea74);case _0x367b42['id']:return nt(_0xc9a5a3['params'],_0x2fb183(0x134),_0x48ea74);case _0x4c0222['id']:return nt(_0xc9a5a3['params'],'column',_0x48ea74);case _0xc01a4['id']:return rt(_0xc9a5a3[_0x2fb183(0x164)],_0x2fb183(0x134),_0x48ea74);case _0x29ddad['id']:return rt(_0xc9a5a3['params'],_0x2fb183(0x116),_0x48ea74);default:return null;}}function Y(_0x306b33,_0x2c895e,_0x10e99f){const _0x2545ff=_0x1833dd;let _0x3275ee=X(_0x306b33,_0x10e99f);if(!(_0x306b33!=null&&_0x306b33[_0x2545ff(0x16a)])||!_0x3275ee)return null;let _0x10e387=_0x2c895e===_0x2545ff(0x134)?_0x306b33[_0x2545ff(0x16a)][_0x2545ff(0x160)]:_0x306b33[_0x2545ff(0x16a)][_0x2545ff(0xe8)],_0x48cd9c=_0x2c895e===_0x2545ff(0x134)?_0x306b33[_0x2545ff(0x16a)][_0x2545ff(0x131)]:_0x306b33[_0x2545ff(0x16a)][_0x2545ff(0x141)];return{..._0x3275ee,'axis':_0x2c895e,'type':_0x2545ff(0xd4),'index':_0x10e387,'count':_0x48cd9c-_0x10e387+0x1};}function nt(_0x39e38d,_0x451c1b,_0xf26159){const _0x41702b=_0x1833dd;let _0x2414c7=X(_0x39e38d,_0xf26159);if(!(_0x39e38d!=null&&_0x39e38d[_0x41702b(0x16a)])||!_0x2414c7)return null;let _0x31de46=_0x451c1b==='row'?_0x39e38d[_0x41702b(0x16a)][_0x41702b(0x160)]:_0x39e38d[_0x41702b(0x16a)]['startColumn'],_0x1d5915=_0x451c1b===_0x41702b(0x134)?_0x39e38d[_0x41702b(0x16a)][_0x41702b(0x131)]:_0x39e38d[_0x41702b(0x16a)]['endColumn'];return{..._0x2414c7,'axis':_0x451c1b,'type':_0x41702b(0x15a),'start':_0x31de46,'end':_0x1d5915};}function rt(_0x45c6b5,_0x47fb45,_0x7fb971){const _0x22d0c6=_0x1833dd;let _0x22fec5=X(_0x45c6b5,_0x7fb971);if(!(_0x45c6b5!=null&&_0x45c6b5[_0x22d0c6(0x121)])||!_0x45c6b5[_0x22d0c6(0x133)]||!_0x22fec5)return null;let _0x4b163d=_0x47fb45===_0x22d0c6(0x134)?_0x45c6b5[_0x22d0c6(0x121)][_0x22d0c6(0x160)]:_0x45c6b5[_0x22d0c6(0x121)]['startColumn'],_0x3a6c97=_0x47fb45===_0x22d0c6(0x134)?_0x45c6b5[_0x22d0c6(0x121)][_0x22d0c6(0x131)]:_0x45c6b5[_0x22d0c6(0x121)][_0x22d0c6(0x141)],_0x5a68fb=_0x47fb45==='row'?_0x45c6b5['toRange'][_0x22d0c6(0x160)]:_0x45c6b5[_0x22d0c6(0x133)][_0x22d0c6(0xe8)];return{..._0x22fec5,'axis':_0x47fb45,'type':_0x22d0c6(0x137),'sourceStart':_0x4b163d,'sourceEnd':_0x3a6c97,'destinationIndex':_0x5a68fb};}function it(_0x2b0653,_0x3fb20c){const _0x15200b=_0x1833dd;switch(_0x2b0653['type']){case'insert':return{'unitId':_0x2b0653[_0x15200b(0x161)],'subUnitId':_0x2b0653['subUnitId'],'axis':_0x2b0653[_0x15200b(0xf7)],'type':_0x15200b(0x15a),'start':_0x2b0653[_0x15200b(0xf8)],'end':_0x2b0653[_0x15200b(0xf8)]+_0x2b0653[_0x15200b(0x109)]-0x1};case'delete':return{'unitId':_0x2b0653[_0x15200b(0x161)],'subUnitId':_0x2b0653['subUnitId'],'axis':_0x2b0653[_0x15200b(0xf7)],'type':_0x15200b(0xd4),'index':_0x2b0653[_0x15200b(0x16d)],'count':_0x2b0653[_0x15200b(0x165)]-_0x2b0653['start']+0x1,'restoreOutlines':_0x3fb20c[_0x15200b(0x172)](_0x1717c4=>_0x1717c4[_0x15200b(0x161)]===_0x2b0653[_0x15200b(0x161)]&&_0x1717c4[_0x15200b(0x156)]===_0x2b0653[_0x15200b(0x156)]&&_0x1717c4[_0x15200b(0xf7)]===_0x2b0653[_0x15200b(0xf7)])};case _0x15200b(0x137):return at(_0x2b0653);}}function at(_0x2b736e){const _0x313d25=_0x1833dd;let _0x483720=_0x2b736e[_0x313d25(0xcf)]-_0x2b736e[_0x313d25(0xd2)]+0x1;return _0x2b736e[_0x313d25(0xde)]>=_0x2b736e[_0x313d25(0xd2)]&&_0x2b736e['destinationIndex']<=_0x2b736e[_0x313d25(0xcf)]+0x1?{..._0x2b736e}:_0x2b736e[_0x313d25(0xde)]>_0x2b736e[_0x313d25(0xcf)]+0x1?{..._0x2b736e,'sourceStart':_0x2b736e[_0x313d25(0xde)]-_0x483720,'sourceEnd':_0x2b736e[_0x313d25(0xde)]-0x1,'destinationIndex':_0x2b736e[_0x313d25(0xd2)]}:{..._0x2b736e,'sourceStart':_0x2b736e[_0x313d25(0xde)],'sourceEnd':_0x2b736e[_0x313d25(0xde)]+_0x483720-0x1,'destinationIndex':_0x2b736e['sourceEnd']+0x1};}function X(_0xa54242,_0x54aef0){const _0x1bb91a=_0x1833dd;var _0x1315f8,_0x351c5f;let _0x22ba3d=(_0x1315f8=_0xa54242==null?void 0x0:_0xa54242[_0x1bb91a(0x161)])==null?_0x54aef0==null?void 0x0:_0x54aef0[_0x1bb91a(0x161)]:_0x1315f8,_0x4a4673=(_0x351c5f=_0xa54242==null?void 0x0:_0xa54242['subUnitId'])==null?_0x54aef0==null?void 0x0:_0x54aef0[_0x1bb91a(0x156)]:_0x351c5f;return _0x22ba3d&&_0x4a4673?{'unitId':_0x22ba3d,'subUnitId':_0x4a4673}:null;}function Z(){const _0x4934a3=_0x1833dd;var _0x2c1cf5,_0x367c38;return{'redos':[...q[_0x4934a3(0x13b)]],'undos':[...q[_0x4934a3(0x15f)]],'preRedos':[...(_0x2c1cf5=q[_0x4934a3(0x13f)])==null?[]:_0x2c1cf5],'preUndos':[...(_0x367c38=q[_0x4934a3(0x170)])==null?[]:_0x367c38]};}let Q=class extends _0xe18af3{constructor(_0x4a48b0,_0x3e7950){const _0x46f480=_0x1833dd;super(),this['_resourceManagerService']=_0x4a48b0,this[_0x46f480(0x167)]=_0x3e7950,this['_initResource']();}['_initResource'](){const _0x5bb432=_0x1833dd;this[_0x5bb432(0x101)](this[_0x5bb432(0x16f)][_0x5bb432(0x11d)]({'pluginName':W,'businesses':[_0x84cb88[_0x5bb432(0x13d)]],'toJson':_0x4501b9=>JSON[_0x5bb432(0xf9)](this[_0x5bb432(0x167)][_0x5bb432(0x146)](_0x4501b9)),'parseJson':_0x16ec22=>JSON[_0x5bb432(0xdd)](_0x16ec22),'onLoad':(_0x2f9549,_0x4bcc0a)=>this[_0x5bb432(0x167)][_0x5bb432(0x143)](_0x2f9549,_0x4bcc0a),'onUnLoad':_0xf5acfd=>this[_0x5bb432(0x167)][_0x5bb432(0xe1)](_0xf5acfd)}));}};Q=K([G(0x0,_0x4dc04c),G(0x1,_0x140d65(P))],Q);let $=class extends _0x26df20{constructor(_0x11b4b5=Qe,_0x3e4835,_0x2018ff,_0xa56fcd){const _0x2599e9=_0x1833dd;super(),this[_0x2599e9(0xec)]=_0x11b4b5,this[_0x2599e9(0x119)]=_0x3e4835,this[_0x2599e9(0xd5)]=_0x2018ff,this[_0x2599e9(0x103)]=_0xa56fcd;let {..._0x399150}=_0x25c148({},Qe,this[_0x2599e9(0xec)]);this[_0x2599e9(0x103)][_0x2599e9(0x147)](_0x2599e9(0xe9),_0x399150);}['onStarting'](){const _0x2c8c79=_0x1833dd;this[_0x2c8c79(0x119)]['add']([P]),this[_0x2c8c79(0x119)][_0x2c8c79(0xd8)]([F]),this[_0x2c8c79(0x119)][_0x2c8c79(0xd8)]([Q]),this[_0x2c8c79(0x119)]['add']([J]),this['_initRegisterCommand'](),this[_0x2c8c79(0x119)][_0x2c8c79(0x136)](P),this[_0x2c8c79(0x119)][_0x2c8c79(0x136)](F),this[_0x2c8c79(0x119)][_0x2c8c79(0x136)](Q),this['_injector'][_0x2c8c79(0x136)](J);}[_0x1833dd(0x16b)](){const _0x17b9df=_0x1833dd;[z,ze,qe,V][_0x17b9df(0x11a)](_0x52ad44=>{const _0x2b8d7b=_0x17b9df;this[_0x2b8d7b(0x101)](this['_commandService'][_0x2b8d7b(0x12f)](_0x52ad44));}),[I,L,H,B,U]['forEach'](_0x3b552b=>{const _0x519e5c=_0x17b9df;this[_0x519e5c(0x101)](this[_0x519e5c(0xd5)][_0x519e5c(0x12f)](_0x3b552b));});}};N($,_0x1833dd(0x115),W),N($,_0x1833dd(0x10f),Xe),N($,_0x1833dd(0x114),Ze),N($,_0x1833dd(0x14e),_0x84cb88[_0x1833dd(0x13d)]),$=K([_0x517b95(_0x332882,_0x276c49),G(0x1,_0x140d65(_0x1b6645)),G(0x2,_0xb641c0),G(0x3,_0x3f4535)],$);function _0x3a4b(_0x50024a,_0x963284){_0x50024a=_0x50024a-0xc9;const _0x59890a=_0x5989();let _0x3a4b71=_0x59890a[_0x50024a];return _0x3a4b71;}export{z as AddDimensionOutlineCommand,I as AddDimensionOutlineMutation,V as ClearDimensionOutlinesCommand,B as ClearDimensionOutlinesMutation,ge as DimensionOutlineAxis,_e 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,E as buildDimensionOutlineTree,D as canAddDimensionOutline,Ie as getDimensionOutlineViewPermission$,R as hasDimensionOutlineViewPermission,k as transformOutlinesByDelete,O as transformOutlinesByInsert,A as transformOutlinesByMove};
1
+ const _0x1703d8=_0x164c;(function(_0x56ffae,_0x5ef511){const _0x5571c1=_0x164c,_0x39ae9a=_0x56ffae();while(!![]){try{const _0x562f38=-parseInt(_0x5571c1(0x1c2))/0x1+-parseInt(_0x5571c1(0x167))/0x2+-parseInt(_0x5571c1(0x183))/0x3*(parseInt(_0x5571c1(0x198))/0x4)+parseInt(_0x5571c1(0x1e2))/0x5+parseInt(_0x5571c1(0x172))/0x6*(parseInt(_0x5571c1(0x190))/0x7)+-parseInt(_0x5571c1(0x1d9))/0x8+parseInt(_0x5571c1(0x1be))/0x9;if(_0x562f38===_0x5ef511)break;else _0x39ae9a['push'](_0x39ae9a['shift']());}catch(_0x32a4b1){_0x39ae9a['push'](_0x39ae9a['shift']());}}}(_0x1e53,0x3288a));import{CommandType as _0x329af9,CustomCommandExecutionError as _0x28ceef,DependentOn as _0x506a67,Disposable as _0x10d8df,ICommandService as _0x4c43e8,IConfigService as _0x56609c,IPermissionService as _0x2a65dc,IResourceManagerService as _0x45e88b,IUndoRedoService as _0x19aa26,IUniverInstanceService as _0x36fa51,Inject as _0x2daa03,Injector as _0x2a8c4c,Plugin as _0x49bd60,UniverInstanceType as _0x5834f8,generateRandomId as _0x51df55,merge as _0x20ab54,sequenceExecute as _0x4d330d}from'@univerjs/core';import{InsertColCommand as _0x4df60a,InsertRowCommand as _0x4e9e0e,MoveColsCommand as _0x444fb1,MoveRowsCommand as _0x62c221,RemoveColCommand as _0x3813e8,RemoveRowCommand as _0x5df4c1,SetColHiddenMutation as _0xfa707b,SetColVisibleMutation as _0x2035ec,SetRowHiddenMutation as _0x5a22ed,SetRowVisibleMutation as _0x4b3836,SheetInterceptorService as _0x463cc1,SheetPermissionCheckController as _0x828682,UniverSheetsPlugin as _0x3f8d87,WorkbookViewPermission as _0x42d5f1,WorksheetViewPermission as _0x35d90c,getSheetCommandTarget as _0x32af97}from'@univerjs/sheets';import{Subject as _0x55cac1,of as _0x79b388}from'rxjs';import{debounceTime as _0x580117,map as _0x1b12cc,startWith as _0x166b1d}from'rxjs/operators';import{UniverLicensePlugin as _0x2105d7}from'@univerjs-pro/license';let _e=function(_0xc8b290){const _0xe63563=_0x164c;return _0xc8b290[_0xe63563(0x1d7)]='row',_0xc8b290['COLUMN']='column',_0xc8b290;}({}),ve=function(_0x4ae2fc){const _0x5d54f2=_0x164c;return _0x4ae2fc[_0x5d54f2(0x165)]=_0x5d54f2(0x1e9),_0x4ae2fc[_0x5d54f2(0x1d0)]='out-of-bounds',_0x4ae2fc[_0x5d54f2(0x1c8)]=_0x5d54f2(0x16b),_0x4ae2fc[_0x5d54f2(0x160)]=_0x5d54f2(0x176),_0x4ae2fc['MOVE_SPLITS_OUTLINE']=_0x5d54f2(0x1c7),_0x4ae2fc[_0x5d54f2(0x161)]=_0x5d54f2(0x18a),_0x4ae2fc[_0x5d54f2(0x155)]=_0x5d54f2(0x1a8),_0x4ae2fc;}({});var S=class extends Error{constructor(_0x17e12c,_0x57f892,_0x18dde0){const _0x14d427=_0x164c;super(_0x57f892),this[_0x14d427(0x1b6)]=_0x17e12c,this[_0x14d427(0x19b)]=_0x18dde0,this[_0x14d427(0x19a)]=_0x14d427(0x1e7);}};function ye(_0x1a295a){const _0x51fb41=_0x164c;return _0x1a295a instanceof S?_0x1a295a[_0x51fb41(0x1b6)]:_0x1a295a instanceof Error?_0x1a295a[_0x51fb41(0x168)]['includes'](_0x51fb41(0x17b))?_0x51fb41(0x1c7):_0x1a295a[_0x51fb41(0x168)][_0x51fb41(0x17e)]('depth')?_0x51fb41(0x176):_0x1a295a[_0x51fb41(0x168)][_0x51fb41(0x17e)](_0x51fb41(0x14c))?_0x51fb41(0x16b):_0x1a295a[_0x51fb41(0x168)][_0x51fb41(0x17e)](_0x51fb41(0x1c5))?'invalid-range':_0x51fb41(0x1a8):'unknown';}function be(_0x538528){const _0x4f21f6=_0x164c;return _0x538528 instanceof S?_0x538528[_0x4f21f6(0x19b)]:void 0x0;}const C=0x2**0x35-0x1;function w(_0x5116e8,_0x1c57bd){const _0x1be9d6=_0x164c;return _0x5116e8[_0x1be9d6(0x16c)]===_0x1c57bd['unitId']&&_0x5116e8[_0x1be9d6(0x193)]===_0x1c57bd[_0x1be9d6(0x193)]&&_0x5116e8[_0x1be9d6(0x1a2)]===_0x1c57bd['axis'];}function T(_0x2b7809,_0x59d2ac={}){const _0x2995d4=_0x164c;let _0xc572b5=_0x59d2ac[_0x2995d4(0x15f)]??0x8,_0x1164fa=new Map();for(let _0x16520 of _0x2b7809){let _0x551d9a=_0x16520[_0x2995d4(0x16c)]+':'+_0x16520[_0x2995d4(0x193)]+':'+_0x16520[_0x2995d4(0x1a2)],_0x50f7af=_0x1164fa['get'](_0x551d9a);_0x50f7af?_0x50f7af[_0x2995d4(0x1e6)](_0x16520):_0x1164fa[_0x2995d4(0x171)](_0x551d9a,[_0x16520]);}let _0x7c3585=[];for(let _0x2b070b of _0x1164fa['values']()){let _0x45dd0d=[..._0x2b070b][_0x2995d4(0x188)](j),_0x4868bc=[];for(let _0x235f73 of _0x45dd0d){for(Me(_0x235f73);_0x4868bc[_0x2995d4(0x1ca)]>0x0&&_0x235f73[_0x2995d4(0x17f)]>_0x4868bc[_0x4868bc[_0x2995d4(0x1ca)]-0x1][_0x2995d4(0x1a6)];)_0x4868bc['pop']();let _0x3e3113=_0x4868bc[_0x4868bc[_0x2995d4(0x1ca)]-0x1];if(_0x3e3113&&_0x235f73['end']>_0x3e3113[_0x2995d4(0x1a6)])throw new S(_0x2995d4(0x16b),_0x2995d4(0x156),_0x235f73['id']);let _0x374339=_0x3e3113?_0x3e3113[_0x2995d4(0x1ad)]+0x1:0x1;if(_0x374339>_0xc572b5)throw new S(_0x2995d4(0x176),_0x2995d4(0x191)+_0xc572b5,_0x235f73['id']);let _0x6f74d4={..._0x235f73,'depth':_0x374339,'parentId':_0x3e3113==null?void 0x0:_0x3e3113['id'],'anchor':_0x235f73['end'],'children':[]};_0x3e3113?_0x3e3113['children'][_0x2995d4(0x1e6)](_0x6f74d4):_0x7c3585[_0x2995d4(0x1e6)](_0x6f74d4),_0x4868bc[_0x2995d4(0x1e6)](_0x6f74d4);}}return _0x7c3585;}function E(_0x5c55f9,_0x2d7e6d,_0x41aecd={}){const _0xa6b81d=_0x164c;if(_0x2d7e6d[_0xa6b81d(0x17f)]<0x0||_0x2d7e6d[_0xa6b81d(0x17f)]>_0x2d7e6d[_0xa6b81d(0x1a6)])return{'valid':!0x1,'reason':_0xa6b81d(0x1e9)};if(_0x41aecd[_0xa6b81d(0x17c)]!=null&&_0x2d7e6d[_0xa6b81d(0x1a6)]>=_0x41aecd['maxIndex'])return{'valid':!0x1,'reason':_0xa6b81d(0x1e1)};let _0x5128ac=_0x5c55f9[_0xa6b81d(0x1c1)](_0x49ab29=>w(_0x49ab29,_0x2d7e6d));for(let _0x131f86 of _0x5128ac)if(Ne(_0x131f86,_0x2d7e6d))return{'valid':!0x1,'reason':'crossing'};try{T([..._0x5c55f9,_0x2d7e6d],_0x41aecd);}catch(_0x448265){let _0x5b42a8=ye(_0x448265);return _0x5b42a8===_0xa6b81d(0x176)?{'valid':!0x1,'reason':'max-depth'}:_0x5b42a8===_0xa6b81d(0x1e9)?{'valid':!0x1,'reason':_0xa6b81d(0x1e9)}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function xe(_0x4f4136,_0x5e010e,_0x1bc5b0={}){const _0x3f1a32=_0x164c;let _0x2a892b=E(_0x4f4136,_0x5e010e,_0x1bc5b0);if(!_0x2a892b['valid'])throw Error(_0x2a892b[_0x3f1a32(0x1b6)]??'invalid-dimension-outline');return[..._0x4f4136,_0x5e010e];}function Se(_0x4d54b7,_0x13dda9){const _0x583920=_0x164c;let _0x412a60=_0x13dda9[_0x583920(0x17f)],_0x19086a=_0x13dda9[_0x583920(0x1a6)],_0x59a108=[],_0x2256fc=!0x0;for(;_0x2256fc;){_0x2256fc=!0x1;for(let _0x25ffde of _0x4d54b7)_0x59a108[_0x583920(0x17e)](_0x25ffde)||!w(_0x25ffde,_0x13dda9)||!Ae(_0x25ffde[_0x583920(0x17f)],_0x25ffde[_0x583920(0x1a6)],_0x412a60,_0x19086a)||(_0x59a108[_0x583920(0x1e6)](_0x25ffde),_0x412a60=Math[_0x583920(0x1e5)](_0x412a60,_0x25ffde[_0x583920(0x17f)]),_0x19086a=Math['max'](_0x19086a,_0x25ffde[_0x583920(0x1a6)]),_0x2256fc=!0x0);}if(_0x59a108[_0x583920(0x1ca)]===0x0)return null;let [_0xa5e57b]=[..._0x59a108][_0x583920(0x188)](j);return{'mergedOutline':{..._0xa5e57b,'start':_0x412a60,'end':_0x19086a},'mergedOutlines':_0x59a108};}function Ce(_0x596d14,_0x1a85f7){const _0x5bb40c=_0x164c;return _0x596d14[_0x5bb40c(0x1c1)](_0x1f1e6c=>!w(_0x1f1e6c,_0x1a85f7)||!(_0x1f1e6c['start']>=_0x1a85f7[_0x5bb40c(0x17f)]&&_0x1f1e6c['end']<=_0x1a85f7[_0x5bb40c(0x1a6)]));}function we(_0x1e6905,_0xa1b8af,_0x50f9a3,_0x476dcc){const _0x267437=_0x164c;return Te(_0x1e6905[_0x267437(0x1c1)](_0x53d5d5=>_0x53d5d5[_0x267437(0x16c)]===_0xa1b8af&&_0x53d5d5['subUnitId']===_0x50f9a3&&_0x53d5d5[_0x267437(0x1a2)]===_0x476dcc&&_0x53d5d5[_0x267437(0x1b4)])['map'](_0x53b07e=>({'start':_0x53b07e['start'],'end':_0x53b07e[_0x267437(0x1a6)]})));}function Te(_0xf593c6){const _0x4485e8=_0x164c;if(_0xf593c6[_0x4485e8(0x1ca)]===0x0)return[];let _0xc48ca8=[..._0xf593c6][_0x4485e8(0x188)]((_0x39c5f4,_0x3322cb)=>_0x39c5f4[_0x4485e8(0x17f)]-_0x3322cb[_0x4485e8(0x17f)]||_0x39c5f4[_0x4485e8(0x1a6)]-_0x3322cb[_0x4485e8(0x1a6)]),_0x21c529=[];for(let _0x3aa25b of _0xc48ca8){let _0x4df893=_0x21c529[_0x21c529[_0x4485e8(0x1ca)]-0x1];!_0x4df893||_0x3aa25b[_0x4485e8(0x17f)]>_0x4df893[_0x4485e8(0x1a6)]+0x1?_0x21c529[_0x4485e8(0x1e6)]({..._0x3aa25b}):_0x4df893[_0x4485e8(0x1a6)]=Math[_0x4485e8(0x162)](_0x4df893[_0x4485e8(0x1a6)],_0x3aa25b[_0x4485e8(0x1a6)]);}return _0x21c529;}function D(_0x26eb9a,_0x872f1e){const _0x8d3156=_0x164c;return _0x872f1e[_0x8d3156(0x199)]<=0x0?_0x26eb9a:A(_0x26eb9a[_0x8d3156(0x19f)](_0x2ee235=>w(_0x2ee235,_0x872f1e)?_0x872f1e['index']<=_0x2ee235['start']?{..._0x2ee235,'start':_0x2ee235[_0x8d3156(0x17f)]+_0x872f1e[_0x8d3156(0x199)],'end':_0x2ee235['end']+_0x872f1e[_0x8d3156(0x199)]}:_0x2ee235[_0x8d3156(0x17f)]<_0x872f1e['index']&&_0x872f1e['index']<=_0x2ee235[_0x8d3156(0x1a6)]?{..._0x2ee235,'end':_0x2ee235[_0x8d3156(0x1a6)]+_0x872f1e[_0x8d3156(0x199)]}:_0x2ee235:_0x2ee235));}function O(_0x22cffe,_0x4c6780){const _0x4e00e0=_0x164c;if(_0x4c6780[_0x4e00e0(0x17f)]>_0x4c6780['end'])return _0x22cffe;let _0x3d1c2b=_0x4c6780['end']-_0x4c6780['start']+0x1,_0x41a386=[];for(let _0x2aeef1 of _0x22cffe){if(!w(_0x2aeef1,_0x4c6780)){_0x41a386[_0x4e00e0(0x1e6)](_0x2aeef1);continue;}if(_0x2aeef1[_0x4e00e0(0x1a6)]<_0x4c6780[_0x4e00e0(0x17f)]){_0x41a386[_0x4e00e0(0x1e6)](_0x2aeef1);continue;}if(_0x2aeef1[_0x4e00e0(0x17f)]>_0x4c6780[_0x4e00e0(0x1a6)]){_0x41a386[_0x4e00e0(0x1e6)]({..._0x2aeef1,'start':_0x2aeef1[_0x4e00e0(0x17f)]-_0x3d1c2b,'end':_0x2aeef1[_0x4e00e0(0x1a6)]-_0x3d1c2b});continue;}let _0x3abf27=Math[_0x4e00e0(0x162)](_0x2aeef1[_0x4e00e0(0x17f)],_0x4c6780[_0x4e00e0(0x17f)]),_0x4dfd1=Math[_0x4e00e0(0x1e5)](_0x2aeef1[_0x4e00e0(0x1a6)],_0x4c6780[_0x4e00e0(0x1a6)]),_0x438843=Math[_0x4e00e0(0x162)](0x0,_0x4dfd1-_0x3abf27+0x1),_0x25b18d=_0x2aeef1['end']-_0x2aeef1[_0x4e00e0(0x17f)]+0x1-_0x438843;if(_0x25b18d<=0x0)continue;let _0x535256=_0x2aeef1[_0x4e00e0(0x17f)]<_0x4c6780[_0x4e00e0(0x17f)]?_0x2aeef1[_0x4e00e0(0x17f)]:_0x4c6780[_0x4e00e0(0x17f)];_0x41a386[_0x4e00e0(0x1e6)]({..._0x2aeef1,'start':_0x535256,'end':_0x535256+_0x25b18d-0x1});}return A(_0x41a386);}function k(_0x52ed14,_0x483ef7){const _0x3da138=_0x164c;if(_0x483ef7['sourceStart']>_0x483ef7['sourceEnd'])return _0x52ed14;let _0x2be888=[];for(let _0x286cb8 of _0x52ed14){if(!w(_0x286cb8,_0x483ef7)){_0x2be888[_0x3da138(0x1e6)](_0x286cb8);continue;}let _0x3746fc=Ee(_0x286cb8,_0x483ef7);if(_0x3746fc['type']===_0x3da138(0x1d1))throw new S(_0x3da138(0x1c7),_0x3da138(0x179)+_0x286cb8['id'],_0x286cb8['id']);_0x2be888['push'](_0x3746fc['outline']);}return A(_0x2be888);}function Ee(_0x5209de,_0x5b1169){const _0x2c706a=_0x164c;let _0x50b650=De(_0x5b1169[_0x2c706a(0x1cd)],_0x5b1169[_0x2c706a(0x16d)]+0x1,_0x5b1169[_0x2c706a(0x195)]),_0x18f67c=[],_0x2c4da4={'start':_0x5209de[_0x2c706a(0x17f)],'end':_0x5209de[_0x2c706a(0x1a6)]+0x1};for(let _0x45404c of _0x50b650){let _0xe876e6=Oe(_0x2c4da4,_0x45404c[_0x2c706a(0x1c5)]);_0xe876e6&&_0x18f67c[_0x2c706a(0x1e6)]({'start':_0xe876e6[_0x2c706a(0x17f)]+_0x45404c[_0x2c706a(0x1d6)],'end':_0xe876e6['end']+_0x45404c[_0x2c706a(0x1d6)]});}let _0x377327=ke(_0x18f67c);return _0x377327[_0x2c706a(0x1ca)]===0x1?{'type':'ok','outline':{..._0x5209de,'start':_0x377327[0x0][_0x2c706a(0x17f)],'end':_0x377327[0x0]['end']-0x1}}:{'type':_0x2c706a(0x1d1),'outline':_0x5209de,'ranges':_0x377327};}function De(_0xbdd996,_0x572efa,_0x52771d){const _0x3d7043=_0x164c;let _0x5796cc=_0x572efa-_0xbdd996;if(_0x5796cc<=0x0)throw Error(_0x3d7043(0x169));return _0x52771d>=_0xbdd996&&_0x52771d<=_0x572efa?[{'range':{'start':0x0,'end':C},'offset':0x0}]:_0x52771d<_0xbdd996?[{'range':{'start':0x0,'end':_0x52771d},'offset':0x0},{'range':{'start':_0x52771d,'end':_0xbdd996},'offset':_0x5796cc},{'range':{'start':_0xbdd996,'end':_0x572efa},'offset':_0x52771d-_0xbdd996},{'range':{'start':_0x572efa,'end':C},'offset':0x0}]:[{'range':{'start':0x0,'end':_0xbdd996},'offset':0x0},{'range':{'start':_0xbdd996,'end':_0x572efa},'offset':_0x52771d-_0x572efa},{'range':{'start':_0x572efa,'end':_0x52771d},'offset':-_0x5796cc},{'range':{'start':_0x52771d,'end':C},'offset':0x0}];}function Oe(_0x5a14e9,_0x4257ba){const _0x22e302=_0x164c;let _0xea193f=Math[_0x22e302(0x162)](_0x5a14e9[_0x22e302(0x17f)],_0x4257ba['start']),_0x56eba5=Math[_0x22e302(0x1e5)](_0x5a14e9[_0x22e302(0x1a6)],_0x4257ba[_0x22e302(0x1a6)]);return _0xea193f>=_0x56eba5?null:{'start':_0xea193f,'end':_0x56eba5};}function ke(_0x25c61f){const _0x488ede=_0x164c;if(_0x25c61f[_0x488ede(0x1ca)]===0x0)return[];let _0xb346fe=[..._0x25c61f][_0x488ede(0x188)]((_0x48d40f,_0x4358d5)=>_0x48d40f[_0x488ede(0x17f)]-_0x4358d5['start']||_0x48d40f['end']-_0x4358d5[_0x488ede(0x1a6)]),_0x4dc404=[];for(let _0x25bc40 of _0xb346fe){let _0x2c6040=_0x4dc404[_0x4dc404['length']-0x1];!_0x2c6040||_0x25bc40[_0x488ede(0x17f)]>_0x2c6040['end']?_0x4dc404[_0x488ede(0x1e6)]({..._0x25bc40}):_0x2c6040['end']=Math[_0x488ede(0x162)](_0x2c6040[_0x488ede(0x1a6)],_0x25bc40[_0x488ede(0x1a6)]);}return _0x4dc404;}function Ae(_0x5df9cb,_0x2cb8e4,_0x2963a3,_0x23d536){return _0x2cb8e4+0x1===_0x2963a3||_0x23d536+0x1===_0x5df9cb;}function A(_0x45283c){let _0x23be75=je(_0x45283c);return T(_0x23be75),_0x23be75;}function _0x1e53(){const _0x1c05bc=['_initCommandInterceptor','next','min','push','DimensionOutlineError','_commandService','invalid-range','index','insert','complete','Crossing','redos','preUndos','decorate','symbol','_injector','Invalid\x20outline\x20range','_error$','prototype','UNKNOWN','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','mergedOutline','registerCommand','deserialize','iterator','endRow','getSheetBySheetId','sheet.command.add-dimension-outline','string','maxDepth','MAX_DEPTH','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','max','_sheetInterceptorService','1.0.0-beta.0','INVALID_RANGE','registerPluginResource','254322hUaATt','message','Invalid\x20dimension\x20outline\x20move\x20source\x20range','disposeWithMe','crossing','unitId','sourceEnd','MUTATION','sheet.mutation.transform-dimension-outlines','dispose','set','318hTTPpm','result','object','serialize','max-depth','column','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Move\x20would\x20split\x20dimension\x20outline:\x20','params','split\x20dimension\x20outline','maxIndex','COMMAND','includes','start','find','entries','move','156657TXvxqu','_sheetsOutlineModel','fromRange','getColumnCount','@univerjs-pro/sheets-outline','sort','_config','clear-range-not-contain-outline','_resourceManagerService','_configService','dimension-outline-','_initRegisterCommand','UNIVER_SHEET','6748mzaIsI','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','type','subUnitId','preRedos','destinationIndex','pushUndoRedo','undos','20lNklCi','count','name','outlineId','endColumn','_sheetsOutlineErrorService','_ensureUnitOutlines','map','change$','sheet.command.set-dimension-outline-collapsed','axis','defineProperty','removeUnit','Invalid\x20dimension\x20outline\x20mutation','end','_change$','unknown','stringify','permissionCheckWithoutRange','_getCommandScope','pipe','depth','pluginName','packageName','_initResource','function','parse','restoreOutlines','collapsed','toPrimitive','reason','add','clear','_univerInstanceService','setConfig','getRowCount','forEach','toRange','7861635uWmlfV','setOutlines','has','filter','159824pyMYxA','localeCompare','_outlines','range','sheet.mutation.clear-dimension-outlines','move-splits-outline','CROSSING','emit','length','getCurrentUnitOfType','sheet.command.clear-dimension-outlines','sourceStart','startColumn','from','OUT_OF_BOUNDS','split','getUnit','row','startRow','delete','offset','ROW','get','2385120FApLZa','call','permissionPointUpdate$','asObservable','mergedOutlines','default','getOutlines','valid','out-of-bounds','642995nbjppo'];_0x1e53=function(){return _0x1c05bc;};return _0x1e53();}function je(_0x4b1181){const _0x23db25=_0x164c;let _0x18e129=new Map();for(let _0x5a1316 of _0x4b1181){let _0x31bf8e=[_0x5a1316[_0x23db25(0x16c)],_0x5a1316[_0x23db25(0x193)],_0x5a1316[_0x23db25(0x1a2)],_0x5a1316[_0x23db25(0x17f)],_0x5a1316[_0x23db25(0x1a6)]]['join'](':'),_0x554a12=_0x18e129[_0x23db25(0x1d8)](_0x31bf8e);if(!_0x554a12){_0x18e129['set'](_0x31bf8e,_0x5a1316);continue;}_0x18e129[_0x23db25(0x171)](_0x31bf8e,{..._0x554a12,'collapsed':_0x554a12[_0x23db25(0x1b4)]||_0x5a1316[_0x23db25(0x1b4)]});}return Array[_0x23db25(0x1cf)](_0x18e129['values']());}function j(_0x59727d,_0x472b2f){const _0x52ba96=_0x164c;return _0x59727d['unitId']===_0x472b2f[_0x52ba96(0x16c)]?_0x59727d['subUnitId']===_0x472b2f[_0x52ba96(0x193)]?_0x59727d[_0x52ba96(0x1a2)]===_0x472b2f['axis']?_0x59727d[_0x52ba96(0x17f)]===_0x472b2f['start']?_0x472b2f[_0x52ba96(0x1a6)]-_0x59727d[_0x52ba96(0x1a6)]:_0x59727d[_0x52ba96(0x17f)]-_0x472b2f[_0x52ba96(0x17f)]:_0x59727d['axis'][_0x52ba96(0x1c3)](_0x472b2f['axis']):_0x59727d[_0x52ba96(0x193)][_0x52ba96(0x1c3)](_0x472b2f['subUnitId']):_0x59727d[_0x52ba96(0x16c)][_0x52ba96(0x1c3)](_0x472b2f['unitId']);}function Me(_0x47516a){const _0x158076=_0x164c;if(_0x47516a[_0x158076(0x17f)]>_0x47516a['end'])throw new S(_0x158076(0x1e9),_0x158076(0x152),_0x47516a['id']);}function Ne(_0x2bafca,_0x3c5249){const _0x6c998e=_0x164c;let _0x8633d6=_0x2bafca[_0x6c998e(0x17f)]<=_0x3c5249['end']&&_0x3c5249[_0x6c998e(0x17f)]<=_0x2bafca[_0x6c998e(0x1a6)],_0x46e6dd=_0x2bafca[_0x6c998e(0x17f)]<=_0x3c5249['start']&&_0x3c5249[_0x6c998e(0x1a6)]<=_0x2bafca['end'],_0x16d719=_0x3c5249[_0x6c998e(0x17f)]<=_0x2bafca[_0x6c998e(0x17f)]&&_0x2bafca[_0x6c998e(0x1a6)]<=_0x3c5249[_0x6c998e(0x1a6)];return _0x8633d6&&!_0x46e6dd&&!_0x16d719;}function M(_0x4315c7){'@babel/helpers - typeof';const _0x3eff26=_0x164c;return M=typeof Symbol==_0x3eff26(0x1b1)&&typeof Symbol[_0x3eff26(0x15a)]==_0x3eff26(0x150)?function(_0x330f38){return typeof _0x330f38;}:function(_0x16ad30){const _0x189514=_0x3eff26;return _0x16ad30&&typeof Symbol==_0x189514(0x1b1)&&_0x16ad30['constructor']===Symbol&&_0x16ad30!==Symbol[_0x189514(0x154)]?_0x189514(0x150):typeof _0x16ad30;},M(_0x4315c7);}function Pe(_0x38750c,_0x28525d){const _0x517e1b=_0x164c;if(M(_0x38750c)!='object'||!_0x38750c)return _0x38750c;var _0x1d2926=_0x38750c[Symbol[_0x517e1b(0x1b5)]];if(_0x1d2926!==void 0x0){var _0x28be33=_0x1d2926[_0x517e1b(0x1da)](_0x38750c,_0x28525d||_0x517e1b(0x1de));if(M(_0x28be33)!=_0x517e1b(0x174))return _0x28be33;throw TypeError(_0x517e1b(0x178));}return(_0x28525d===_0x517e1b(0x15e)?String:Number)(_0x38750c);}function Fe(_0x314d46){const _0x592e21=_0x164c;var _0x1b1802=Pe(_0x314d46,_0x592e21(0x15e));return M(_0x1b1802)=='symbol'?_0x1b1802:_0x1b1802+'';}function N(_0x15cad0,_0x4f68d1,_0x368adc){const _0x349eac=_0x164c;return(_0x4f68d1=Fe(_0x4f68d1))in _0x15cad0?Object[_0x349eac(0x1a3)](_0x15cad0,_0x4f68d1,{'value':_0x368adc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x15cad0[_0x4f68d1]=_0x368adc,_0x15cad0;}var P=class extends _0x10d8df{constructor(..._0x5506a8){const _0x12149a=_0x164c;super(..._0x5506a8),N(this,'_outlines',new Map()),N(this,_0x12149a(0x1a7),new _0x55cac1()),N(this,_0x12149a(0x1a0),this[_0x12149a(0x1a7)][_0x12149a(0x1dc)]());}[_0x1703d8(0x1df)](_0x502af7,_0x1b00a3){const _0x391fc0=_0x1703d8;var _0x386d7a;return[...((_0x386d7a=this[_0x391fc0(0x1c4)][_0x391fc0(0x1d8)](_0x502af7))==null?void 0x0:_0x386d7a[_0x391fc0(0x1d8)](_0x1b00a3))??[]];}['getUnitOutlines'](_0x95fa1f){const _0x1a00ad=_0x1703d8;let _0xc56e33=this[_0x1a00ad(0x1c4)]['get'](_0x95fa1f),_0x15e96b=new Map();return _0xc56e33==null||_0xc56e33[_0x1a00ad(0x1bc)]((_0x6e8786,_0x1e130c)=>{const _0x55b3ca=_0x1a00ad;_0x15e96b[_0x55b3ca(0x171)](_0x1e130c,[..._0x6e8786]);}),_0x15e96b;}[_0x1703d8(0x1bf)](_0x4e003e,_0x5c89f1,_0x187399){const _0x55ccb2=_0x1703d8;this[_0x55ccb2(0x19e)](_0x4e003e)['set'](_0x5c89f1,[..._0x187399]),this[_0x55ccb2(0x1a7)][_0x55ccb2(0x1e4)]({'unitId':_0x4e003e,'subUnitId':_0x5c89f1});}[_0x1703d8(0x1a4)](_0x39b8aa){this['_outlines']['delete'](_0x39b8aa),this['_change$']['next']({'unitId':_0x39b8aa});}['serialize'](_0x43bdd3){const _0x46ad7e=_0x1703d8;let _0x16c431=this[_0x46ad7e(0x1c4)][_0x46ad7e(0x1d8)](_0x43bdd3),_0xeaa2e7={};return _0x16c431==null||_0x16c431[_0x46ad7e(0x1bc)]((_0x211012,_0x2ce574)=>{_0xeaa2e7[_0x2ce574]={'outlineList':[..._0x211012]};}),_0xeaa2e7;}[_0x1703d8(0x159)](_0x27ae15,_0x1c26fd){const _0x47bcf0=_0x1703d8;let _0x212c24=new Map();Object[_0x47bcf0(0x181)](_0x1c26fd)[_0x47bcf0(0x1bc)](([_0x4bc09d,_0x495035])=>{const _0xa9b552=_0x47bcf0;_0x212c24[_0xa9b552(0x171)](_0x4bc09d,[..._0x495035['outlineList']??[]]);}),this[_0x47bcf0(0x1c4)]['set'](_0x27ae15,_0x212c24),this[_0x47bcf0(0x1a7)]['next']({'unitId':_0x27ae15});}[_0x1703d8(0x170)](){const _0x5b80bb=_0x1703d8;super[_0x5b80bb(0x170)](),this['_outlines'][_0x5b80bb(0x1b8)](),this['_change$'][_0x5b80bb(0x14b)]();}[_0x1703d8(0x19e)](_0x1c4c92){const _0x4ac5bd=_0x1703d8;let _0x23284d=this[_0x4ac5bd(0x1c4)][_0x4ac5bd(0x1d8)](_0x1c4c92);return _0x23284d||(_0x23284d=new Map(),this['_outlines'][_0x4ac5bd(0x171)](_0x1c4c92,_0x23284d)),_0x23284d;}},F=class extends _0x10d8df{constructor(..._0x20c522){const _0x4288ef=_0x1703d8;super(..._0x20c522),N(this,_0x4288ef(0x153),new _0x55cac1()),N(this,'error$',this[_0x4288ef(0x153)][_0x4288ef(0x1dc)]());}['emit'](_0x5a301d){const _0x3ce451=_0x1703d8;this[_0x3ce451(0x153)][_0x3ce451(0x1e4)](_0x5a301d);}[_0x1703d8(0x170)](){const _0x31f70c=_0x1703d8;super[_0x31f70c(0x170)](),this[_0x31f70c(0x153)][_0x31f70c(0x14b)]();}};const I={'id':'sheet.mutation.add-dimension-outline','type':_0x329af9[_0x1703d8(0x16e)],'handler':(_0x4ed452,_0x1a6f7f)=>{const _0x54472b=_0x1703d8;let _0xc9238=_0x4ed452[_0x54472b(0x1d8)](P),_0x33536c=_0xc9238[_0x54472b(0x1df)](_0x1a6f7f['unitId'],_0x1a6f7f[_0x54472b(0x193)]);return _0xc9238[_0x54472b(0x1bf)](_0x1a6f7f[_0x54472b(0x16c)],_0x1a6f7f[_0x54472b(0x193)],xe(_0x33536c,_0x1a6f7f['outline'])),!0x0;}},L={'id':'sheet.mutation.remove-dimension-outline','type':_0x329af9[_0x1703d8(0x16e)],'handler':(_0x283064,_0x83b2b2)=>{const _0x5502b4=_0x1703d8;let _0x26f50e=_0x283064['get'](P),_0x147fdf=_0x26f50e['getOutlines'](_0x83b2b2[_0x5502b4(0x16c)],_0x83b2b2[_0x5502b4(0x193)]);return _0x26f50e[_0x5502b4(0x1bf)](_0x83b2b2[_0x5502b4(0x16c)],_0x83b2b2[_0x5502b4(0x193)],_0x147fdf[_0x5502b4(0x1c1)](_0x45c36d=>_0x45c36d['id']!==_0x83b2b2[_0x5502b4(0x19b)])),!0x0;}};function R(_0x3b6d4f,_0x3258e8,_0xe001cb){const _0x311758=_0x1703d8;let _0x58be25=Le(_0x3b6d4f);return!_0x58be25||_0x58be25[_0x311758(0x1aa)]({'workbookTypes':[_0x42d5f1],'worksheetTypes':[_0x35d90c]},_0x3258e8,_0xe001cb);}function Ie(_0x4565b2,_0xd09697,_0x2e8f85){const _0x4067e6=_0x1703d8;let _0x3a6c4f=Re(_0x4565b2);return((_0x3a6c4f==null?void 0x0:_0x3a6c4f[_0x4067e6(0x1db)])??_0x79b388(null))[_0x4067e6(0x1ac)](_0x580117(0x64),_0x166b1d(null),_0x1b12cc(()=>R(_0x4565b2,_0xd09697,_0x2e8f85)));}function Le(_0x832796){const _0x42805b=_0x1703d8;if(typeof _0x832796[_0x42805b(0x1c0)]==_0x42805b(0x1b1)&&!_0x832796[_0x42805b(0x1c0)](_0x828682))return null;try{return _0x832796[_0x42805b(0x1d8)](_0x828682);}catch{return null;}}function _0x164c(_0x19c4a1,_0xc0c7df){_0x19c4a1=_0x19c4a1-0x14a;const _0x1e5373=_0x1e53();let _0x164cc2=_0x1e5373[_0x19c4a1];return _0x164cc2;}function Re(_0x17951a){const _0x4281bf=_0x1703d8;if(typeof _0x17951a[_0x4281bf(0x1c0)]==_0x4281bf(0x1b1)&&!_0x17951a[_0x4281bf(0x1c0)](_0x2a65dc))return null;try{return _0x17951a[_0x4281bf(0x1d8)](_0x2a65dc);}catch{return null;}}const z={'id':_0x1703d8(0x15d),'type':_0x329af9[_0x1703d8(0x17d)],'handler':(_0x4af0ee,_0x3802ae)=>{const _0x327d4e=_0x1703d8;if(!_0x3802ae)return!0x1;let _0x403914=_0x32af97(_0x4af0ee[_0x327d4e(0x1d8)](_0x36fa51),_0x3802ae);if(!_0x403914)return!0x1;let {unitId:_0x49ad9b,subUnitId:_0x3907ee,worksheet:_0x4c5a14}=_0x403914;if(!R(_0x4af0ee,_0x49ad9b,_0x3907ee))return!0x1;let _0xf9da3b=_0x4af0ee['get'](P),_0x5c984b={'id':_0x327d4e(0x18d)+_0x51df55(0x6),'unitId':_0x49ad9b,'subUnitId':_0x3907ee,'axis':_0x3802ae['axis'],'start':_0x3802ae[_0x327d4e(0x17f)],'end':_0x3802ae['end'],'collapsed':!0x1},_0x3463a3=_0x3802ae[_0x327d4e(0x1a2)]===_0x327d4e(0x1d3)?_0x4c5a14[_0x327d4e(0x1bb)]():_0x4c5a14[_0x327d4e(0x186)](),_0x1fc540=_0xf9da3b[_0x327d4e(0x1df)](_0x49ad9b,_0x3907ee),_0x43effb=Se(_0x1fc540,_0x5c984b),_0x22da7e=(_0x43effb==null?void 0x0:_0x43effb[_0x327d4e(0x1dd)])??[],_0x463be1=(_0x43effb==null?void 0x0:_0x43effb[_0x327d4e(0x157)])??_0x5c984b,_0x5437d9=E(_0x43effb?_0x1fc540[_0x327d4e(0x1c1)](_0x22c441=>!_0x22da7e['some'](_0x62ccf1=>_0x62ccf1['id']===_0x22c441['id'])):_0x1fc540,_0x463be1,{'maxIndex':_0x3463a3});if(!_0x5437d9[_0x327d4e(0x1e0)])return _0x4af0ee[_0x327d4e(0x1d8)](F)['emit']({'reason':_0x5437d9[_0x327d4e(0x1b6)]??_0x327d4e(0x1a8),'commandId':z['id'],'unitId':_0x49ad9b,'subUnitId':_0x3907ee,'axis':_0x3802ae['axis'],'outlineId':_0x463be1['id']}),!0x1;let _0x3545d1=[..._0x22da7e[_0x327d4e(0x19f)](_0x4cecea=>({'id':L['id'],'params':{'unitId':_0x49ad9b,'subUnitId':_0x3907ee,'outlineId':_0x4cecea['id']}})),{'id':I['id'],'params':{'unitId':_0x49ad9b,'subUnitId':_0x3907ee,'outline':_0x463be1}}],_0x3bbdf4=[{'id':L['id'],'params':{'unitId':_0x49ad9b,'subUnitId':_0x3907ee,'outlineId':_0x463be1['id']}},..._0x22da7e['map'](_0xc02423=>({'id':I['id'],'params':{'unitId':_0x49ad9b,'subUnitId':_0x3907ee,'outline':_0xc02423}}))];return _0x4d330d(_0x3545d1,_0x4af0ee[_0x327d4e(0x1d8)](_0x4c43e8))['result']?(_0x4af0ee[_0x327d4e(0x1d8)](_0x19aa26)[_0x327d4e(0x196)]({'unitID':_0x49ad9b,'undoMutations':_0x3bbdf4,'redoMutations':_0x3545d1}),!0x0):!0x1;}},B={'id':_0x1703d8(0x1c6),'type':_0x329af9[_0x1703d8(0x16e)],'handler':(_0x1b88f6,_0x27a937)=>{const _0x5a4a2f=_0x1703d8;let _0x5c737b=_0x1b88f6[_0x5a4a2f(0x1d8)](P),_0x4e56f1=_0x5c737b[_0x5a4a2f(0x1df)](_0x27a937[_0x5a4a2f(0x16c)],_0x27a937[_0x5a4a2f(0x193)]);return _0x5c737b[_0x5a4a2f(0x1bf)](_0x27a937[_0x5a4a2f(0x16c)],_0x27a937[_0x5a4a2f(0x193)],Ce(_0x4e56f1,_0x27a937)),!0x0;}},V={'id':_0x1703d8(0x1cc),'type':_0x329af9['COMMAND'],'handler':(_0x549769,_0x2c515d)=>{const _0x54b620=_0x1703d8;if(!_0x2c515d)return!0x1;let _0x57c1d7=_0x32af97(_0x549769[_0x54b620(0x1d8)](_0x36fa51),_0x2c515d);if(!_0x57c1d7)return!0x1;let {unitId:_0x38fcb9,subUnitId:_0x1ffb52}=_0x57c1d7;if(!R(_0x549769,_0x38fcb9,_0x1ffb52))return!0x1;let _0x44eeee={'unitId':_0x38fcb9,'subUnitId':_0x1ffb52,'axis':_0x2c515d[_0x54b620(0x1a2)],'start':_0x2c515d[_0x54b620(0x17f)],'end':_0x2c515d[_0x54b620(0x1a6)]},_0x5e94=_0x549769[_0x54b620(0x1d8)](P)[_0x54b620(0x1df)](_0x38fcb9,_0x1ffb52)[_0x54b620(0x1c1)](_0x332833=>w(_0x332833,_0x44eeee)&&_0x332833[_0x54b620(0x17f)]>=_0x2c515d[_0x54b620(0x17f)]&&_0x332833['end']<=_0x2c515d['end']);if(_0x5e94[_0x54b620(0x1ca)]===0x0)return _0x549769[_0x54b620(0x1d8)](F)[_0x54b620(0x1c9)]({'reason':_0x54b620(0x18a),'commandId':V['id'],'unitId':_0x38fcb9,'subUnitId':_0x1ffb52,'axis':_0x2c515d[_0x54b620(0x1a2)]}),!0x1;let _0x154a33=[{'id':B['id'],'params':{..._0x44eeee,'removedOutlineIds':_0x5e94[_0x54b620(0x19f)](_0x37d94c=>_0x37d94c['id'])}}],_0x4cafd3=_0x5e94[_0x54b620(0x19f)](_0x4fc488=>({'id':I['id'],'params':{'unitId':_0x38fcb9,'subUnitId':_0x1ffb52,'outline':_0x4fc488}}));return _0x4d330d(_0x154a33,_0x549769['get'](_0x4c43e8))[_0x54b620(0x173)]?(_0x549769[_0x54b620(0x1d8)](_0x19aa26)[_0x54b620(0x196)]({'unitID':_0x38fcb9,'undoMutations':_0x4cafd3,'redoMutations':_0x154a33}),!0x0):!0x1;}},ze={'id':'sheet.command.remove-dimension-outline','type':_0x329af9['COMMAND'],'handler':(_0x38beab,_0x5469fb)=>{const _0x5a6779=_0x1703d8;if(!_0x5469fb)return!0x1;let _0x4f69b9=_0x32af97(_0x38beab[_0x5a6779(0x1d8)](_0x36fa51),_0x5469fb);if(!_0x4f69b9)return!0x1;let {unitId:_0x14bc45,subUnitId:_0x56f8fc}=_0x4f69b9;if(!R(_0x38beab,_0x14bc45,_0x56f8fc))return!0x1;let _0x595081=_0x38beab[_0x5a6779(0x1d8)](P)[_0x5a6779(0x1df)](_0x14bc45,_0x56f8fc)[_0x5a6779(0x180)](_0x2ee12b=>_0x2ee12b['id']===_0x5469fb[_0x5a6779(0x19b)]);if(!_0x595081)return!0x1;let _0x136ecf=[{'id':L['id'],'params':{'unitId':_0x14bc45,'subUnitId':_0x56f8fc,'outlineId':_0x595081['id'],'outline':_0x595081}}],_0xb21d06=[{'id':I['id'],'params':{'unitId':_0x14bc45,'subUnitId':_0x56f8fc,'outline':_0x595081}}];return _0x4d330d(_0x136ecf,_0x38beab[_0x5a6779(0x1d8)](_0x4c43e8))['result']?(_0x38beab[_0x5a6779(0x1d8)](_0x19aa26)[_0x5a6779(0x196)]({'unitID':_0x14bc45,'undoMutations':_0xb21d06,'redoMutations':_0x136ecf}),!0x0):!0x1;}},H={'id':'sheet.mutation.set-dimension-outline-collapsed','type':_0x329af9[_0x1703d8(0x16e)],'handler':(_0xd46cc5,_0x4afa5b)=>{const _0x33a18a=_0x1703d8;let _0x35bf60=_0xd46cc5['get'](P),_0x3aa0e7=_0x35bf60[_0x33a18a(0x1df)](_0x4afa5b[_0x33a18a(0x16c)],_0x4afa5b['subUnitId']),_0x54e206=_0x3aa0e7[_0x33a18a(0x180)](_0x58e1de=>_0x58e1de['id']===_0x4afa5b[_0x33a18a(0x19b)]);return _0x54e206&&_0x35bf60['setOutlines'](_0x4afa5b['unitId'],_0x4afa5b[_0x33a18a(0x193)],_0x3aa0e7[_0x33a18a(0x19f)](_0x31467a=>_0x31467a[_0x33a18a(0x16c)]!==_0x54e206[_0x33a18a(0x16c)]||_0x31467a[_0x33a18a(0x193)]!==_0x54e206['subUnitId']||_0x31467a[_0x33a18a(0x1a2)]!==_0x54e206[_0x33a18a(0x1a2)]||_0x31467a[_0x33a18a(0x17f)]!==_0x54e206[_0x33a18a(0x17f)]||_0x31467a[_0x33a18a(0x1a6)]!==_0x54e206[_0x33a18a(0x1a6)]?_0x31467a:{..._0x31467a,'collapsed':_0x4afa5b[_0x33a18a(0x1b4)]})),!0x0;}};function Be(_0x5e6185,_0x4533bb,_0x3bb3b6,_0x55aec3){const _0x1265fd=_0x1703d8;return _0x5e6185===_0x1265fd(0x1d3)?{'startRow':_0x4533bb,'endRow':_0x3bb3b6,'startColumn':0x0,'endColumn':_0x55aec3['getMaxColumns']()-0x1}:{'startRow':0x0,'endRow':_0x55aec3[_0x1265fd(0x1bb)]()-0x1,'startColumn':_0x4533bb,'endColumn':_0x3bb3b6};}function Ve(_0x1b880b){const _0x55fc61=_0x1703d8;return _0x1b880b===_0x55fc61(0x1d3)?_0x5a22ed['id']:_0xfa707b['id'];}function He(_0x422d04){const _0x2da9ec=_0x1703d8;return _0x422d04===_0x2da9ec(0x1d3)?_0x4b3836['id']:_0x2035ec['id'];}function Ue(_0x400fda,_0x4823f0,_0x694b11,_0x1d9c60){const _0x19aa32=_0x1703d8;let _0x85574c=_0x4823f0?[Be(_0x400fda[_0x19aa32(0x1a2)],_0x400fda[_0x19aa32(0x17f)],_0x400fda[_0x19aa32(0x1a6)],_0x694b11)]:We(_0x400fda,_0x1d9c60,_0x694b11),_0x4e3e0e=_0x4823f0?Ve(_0x400fda[_0x19aa32(0x1a2)]):He(_0x400fda[_0x19aa32(0x1a2)]);return[{'id':H['id'],'params':{'unitId':_0x400fda['unitId'],'subUnitId':_0x400fda['subUnitId'],'outlineId':_0x400fda['id'],'outline':_0x400fda,'collapsed':_0x4823f0}},..._0x85574c[_0x19aa32(0x19f)](_0x46c3fa=>({'id':_0x4e3e0e,'params':{'unitId':_0x400fda[_0x19aa32(0x16c)],'subUnitId':_0x400fda['subUnitId'],'ranges':[_0x46c3fa],'dimensionOutlineId':_0x400fda['id']}}))];}function We(_0x435455,_0x2d0ff4,_0x103dcc){const _0x431c7a=_0x1703d8;let _0x728888=we(_0x2d0ff4[_0x431c7a(0x19f)](_0x59a3fa=>Ge(_0x59a3fa,_0x435455)?{..._0x59a3fa,'collapsed':!0x1}:_0x59a3fa),_0x435455[_0x431c7a(0x16c)],_0x435455[_0x431c7a(0x193)],_0x435455[_0x431c7a(0x1a2)]);return Ke({'start':_0x435455[_0x431c7a(0x17f)],'end':_0x435455['end']},_0x728888)[_0x431c7a(0x19f)](_0x28de70=>Be(_0x435455[_0x431c7a(0x1a2)],_0x28de70['start'],_0x28de70[_0x431c7a(0x1a6)],_0x103dcc));}function Ge(_0x2f1d50,_0x1884d0){const _0x28ff48=_0x1703d8;return _0x2f1d50['unitId']===_0x1884d0[_0x28ff48(0x16c)]&&_0x2f1d50[_0x28ff48(0x193)]===_0x1884d0['subUnitId']&&_0x2f1d50[_0x28ff48(0x1a2)]===_0x1884d0[_0x28ff48(0x1a2)]&&_0x2f1d50[_0x28ff48(0x17f)]===_0x1884d0[_0x28ff48(0x17f)]&&_0x2f1d50[_0x28ff48(0x1a6)]===_0x1884d0[_0x28ff48(0x1a6)];}function Ke(_0x3d852a,_0x336d26){const _0x32d73b=_0x1703d8;let _0x56b131=_0x3d852a[_0x32d73b(0x17f)],_0x133950=[];for(let _0x55f025 of _0x336d26)if(!(_0x55f025[_0x32d73b(0x1a6)]<_0x56b131||_0x55f025[_0x32d73b(0x17f)]>_0x3d852a['end'])&&(_0x55f025['start']>_0x56b131&&_0x133950[_0x32d73b(0x1e6)]({'start':_0x56b131,'end':Math['min'](_0x55f025[_0x32d73b(0x17f)]-0x1,_0x3d852a[_0x32d73b(0x1a6)])}),_0x56b131=Math['max'](_0x56b131,_0x55f025[_0x32d73b(0x1a6)]+0x1),_0x56b131>_0x3d852a['end']))break;return _0x56b131<=_0x3d852a[_0x32d73b(0x1a6)]&&_0x133950[_0x32d73b(0x1e6)]({'start':_0x56b131,'end':_0x3d852a[_0x32d73b(0x1a6)]}),_0x133950;}const qe={'id':_0x1703d8(0x1a1),'type':_0x329af9[_0x1703d8(0x17d)],'handler':(_0x1c15a7,_0x5ae354)=>{const _0x4ed790=_0x1703d8;if(!_0x5ae354)return!0x1;let _0x33609b=_0x32af97(_0x1c15a7['get'](_0x36fa51),_0x5ae354);if(!_0x33609b)return!0x1;let {unitId:_0x1932fa,subUnitId:_0x5170bc,worksheet:_0x134a31}=_0x33609b;if(!R(_0x1c15a7,_0x1932fa,_0x5170bc))return!0x1;let _0x5d913f=_0x1c15a7[_0x4ed790(0x1d8)](P)[_0x4ed790(0x1df)](_0x1932fa,_0x5170bc),_0x531f13=_0x5d913f[_0x4ed790(0x180)](_0x34ef11=>_0x34ef11['id']===_0x5ae354[_0x4ed790(0x19b)]);if(!_0x531f13||_0x531f13[_0x4ed790(0x1b4)]===_0x5ae354[_0x4ed790(0x1b4)])return!0x1;let _0x21c4e3=Ue(_0x531f13,_0x5ae354['collapsed'],_0x134a31,_0x5d913f),_0x23ca3f=Ue(_0x531f13,!_0x5ae354['collapsed'],_0x134a31,_0x5d913f);return _0x4d330d(_0x21c4e3,_0x1c15a7[_0x4ed790(0x1d8)](_0x4c43e8))[_0x4ed790(0x173)]?(_0x1c15a7['get'](_0x19aa26)[_0x4ed790(0x196)]({'unitID':_0x1932fa,'undoMutations':_0x23ca3f,'redoMutations':_0x21c4e3}),!0x0):!0x1;}},U={'id':_0x1703d8(0x16f),'type':_0x329af9[_0x1703d8(0x16e)],'handler':(_0x3d9aca,_0x9c153e)=>{const _0x4825e6=_0x1703d8;let _0x37c3e1=_0x3d9aca['get'](P),_0x45ce8f=Je(_0x37c3e1[_0x4825e6(0x1df)](_0x9c153e[_0x4825e6(0x16c)],_0x9c153e['subUnitId']),_0x9c153e);return _0x37c3e1[_0x4825e6(0x1bf)](_0x9c153e[_0x4825e6(0x16c)],_0x9c153e[_0x4825e6(0x193)],_0x45ce8f),!0x0;}};function Je(_0x39e64d,_0x12a0c6){const _0x4de355=_0x1703d8;switch(_0x12a0c6[_0x4de355(0x192)]){case'insert':return _0x12a0c6[_0x4de355(0x1b3)]?Ye(_0x39e64d,_0x12a0c6):D(_0x39e64d,_0x12a0c6);case _0x4de355(0x1d5):return O(_0x39e64d,_0x12a0c6);case _0x4de355(0x182):return k(_0x39e64d,_0x12a0c6);}}function Ye(_0x4af325,_0x4173ea){const _0x3a9442=_0x1703d8;return[..._0x4af325[_0x3a9442(0x1c1)](_0x3ca488=>_0x3ca488[_0x3a9442(0x16c)]!==_0x4173ea['unitId']||_0x3ca488[_0x3a9442(0x193)]!==_0x4173ea[_0x3a9442(0x193)]||_0x3ca488['axis']!==_0x4173ea[_0x3a9442(0x1a2)]),..._0x4173ea[_0x3a9442(0x1b3)]];}const W='SHEET_OUTLINE_PLUGIN';var Xe=_0x1703d8(0x187),Ze=_0x1703d8(0x164);const Qe={};function G(_0x4e7215,_0x29519e){return function(_0x2ba0c9,_0x1499d7){_0x29519e(_0x2ba0c9,_0x1499d7,_0x4e7215);};}function K(_0x50ac50,_0x425fca,_0x3ba45c,_0xa182bb){const _0x31ab2d=_0x1703d8;var _0x11155c=arguments[_0x31ab2d(0x1ca)],_0x30b876=_0x11155c<0x3?_0x425fca:_0xa182bb===null?_0xa182bb=Object['getOwnPropertyDescriptor'](_0x425fca,_0x3ba45c):_0xa182bb,_0x3ec976;if(typeof Reflect==_0x31ab2d(0x174)&&typeof Reflect['decorate']==_0x31ab2d(0x1b1))_0x30b876=Reflect[_0x31ab2d(0x14f)](_0x50ac50,_0x425fca,_0x3ba45c,_0xa182bb);else{for(var _0x10aae7=_0x50ac50['length']-0x1;_0x10aae7>=0x0;_0x10aae7--)(_0x3ec976=_0x50ac50[_0x10aae7])&&(_0x30b876=(_0x11155c<0x3?_0x3ec976(_0x30b876):_0x11155c>0x3?_0x3ec976(_0x425fca,_0x3ba45c,_0x30b876):_0x3ec976(_0x425fca,_0x3ba45c))||_0x30b876);}return _0x11155c>0x3&&_0x30b876&&Object[_0x31ab2d(0x1a3)](_0x425fca,_0x3ba45c,_0x30b876),_0x30b876;}const q={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let J=class extends _0x10d8df{constructor(_0x317d0b,_0x39d904,_0x23c9e0,_0x1a9230){const _0x1a5ae1=_0x1703d8;super(),this[_0x1a5ae1(0x1b9)]=_0x317d0b,this[_0x1a5ae1(0x163)]=_0x39d904,this['_sheetsOutlineModel']=_0x23c9e0,this['_sheetsOutlineErrorService']=_0x1a9230,this[_0x1a5ae1(0x1e3)]();}[_0x1703d8(0x1e3)](){const _0x18297b=_0x1703d8;this[_0x18297b(0x16a)](this[_0x18297b(0x163)]['interceptCommand']({'getMutations':_0x44a8a5=>$e(_0x44a8a5,(_0x23af99,_0x305ce9)=>this[_0x18297b(0x184)][_0x18297b(0x1df)](_0x23af99,_0x305ce9),this['_getCommandScope'](_0x44a8a5['params']),_0x357e12=>this[_0x18297b(0x19d)][_0x18297b(0x1c9)](_0x357e12))}));}[_0x1703d8(0x1ab)](_0x4a02ff){const _0x55c4d6=_0x1703d8;let _0x437742=_0x4a02ff,_0xd93de4=_0x437742!=null&&_0x437742[_0x55c4d6(0x16c)]?this[_0x55c4d6(0x1b9)][_0x55c4d6(0x1d2)](_0x437742[_0x55c4d6(0x16c)],_0x5834f8[_0x55c4d6(0x18f)]):this[_0x55c4d6(0x1b9)][_0x55c4d6(0x1cb)](_0x5834f8[_0x55c4d6(0x18f)]);if(!_0xd93de4)return;let _0x4a58f2=_0x437742!=null&&_0x437742['subUnitId']?_0xd93de4[_0x55c4d6(0x15c)](_0x437742[_0x55c4d6(0x193)]):_0xd93de4['getActiveSheet']();if(_0x4a58f2)return{'unitId':_0xd93de4['getUnitId'](),'subUnitId':_0x4a58f2['getSheetId']()};}};J=K([G(0x0,_0x36fa51),G(0x1,_0x2daa03(_0x463cc1)),G(0x2,_0x2daa03(P)),G(0x3,_0x2daa03(F))],J);function $e(_0x3e222a,_0x14595f,_0x3fe9a0,_0x4b8020){const _0x3df832=_0x1703d8;let _0x1dccf3=tt(_0x3e222a,_0x3fe9a0);if(!_0x1dccf3)return Z();let _0x4f5375=_0x14595f(_0x1dccf3[_0x3df832(0x16c)],_0x1dccf3[_0x3df832(0x193)]);if(!_0x4f5375['some'](_0x3059da=>_0x3059da['axis']===_0x1dccf3['axis']))return Z();et(_0x4f5375,_0x1dccf3,_0x3e222a['id'],_0x4b8020);let _0x40d199=it(_0x1dccf3,_0x4f5375);return{'redos':[{'id':U['id'],'params':_0x1dccf3}],'undos':[{'id':U['id'],'params':_0x40d199}],'preRedos':[],'preUndos':[]};}function et(_0x269184,_0xad21fc,_0x442cbe,_0x1d88fb){const _0x137377=_0x1703d8;try{switch(_0xad21fc[_0x137377(0x192)]){case'insert':D(_0x269184,_0xad21fc);break;case'delete':O(_0x269184,_0xad21fc);break;case _0x137377(0x182):k(_0x269184,_0xad21fc);break;}}catch(_0x4e7da7){throw _0x1d88fb==null||_0x1d88fb({'reason':ye(_0x4e7da7),'commandId':_0x442cbe,'unitId':_0xad21fc[_0x137377(0x16c)],'subUnitId':_0xad21fc[_0x137377(0x193)],'axis':_0xad21fc['axis'],'outlineId':be(_0x4e7da7)}),new _0x28ceef(_0x4e7da7 instanceof Error?_0x4e7da7[_0x137377(0x168)]:_0x137377(0x1a5));}}function tt(_0x34c5da,_0x4d8fd7){const _0x4f0855=_0x1703d8;switch(_0x34c5da['id']){case _0x4e9e0e['id']:return Y(_0x34c5da[_0x4f0855(0x17a)],_0x4f0855(0x1d3),_0x4d8fd7);case _0x4df60a['id']:return Y(_0x34c5da['params'],_0x4f0855(0x177),_0x4d8fd7);case _0x5df4c1['id']:return nt(_0x34c5da[_0x4f0855(0x17a)],'row',_0x4d8fd7);case _0x3813e8['id']:return nt(_0x34c5da[_0x4f0855(0x17a)],_0x4f0855(0x177),_0x4d8fd7);case _0x62c221['id']:return rt(_0x34c5da[_0x4f0855(0x17a)],_0x4f0855(0x1d3),_0x4d8fd7);case _0x444fb1['id']:return rt(_0x34c5da[_0x4f0855(0x17a)],'column',_0x4d8fd7);default:return null;}}function Y(_0x3cb78a,_0x438474,_0x5626ff){const _0x4b20e7=_0x1703d8;let _0x4e5219=X(_0x3cb78a,_0x5626ff);if(!(_0x3cb78a!=null&&_0x3cb78a[_0x4b20e7(0x1c5)])||!_0x4e5219)return null;let _0x5cdb2f=_0x438474===_0x4b20e7(0x1d3)?_0x3cb78a[_0x4b20e7(0x1c5)]['startRow']:_0x3cb78a[_0x4b20e7(0x1c5)][_0x4b20e7(0x1ce)],_0x4b19b6=_0x438474===_0x4b20e7(0x1d3)?_0x3cb78a['range'][_0x4b20e7(0x15b)]:_0x3cb78a['range'][_0x4b20e7(0x19c)];return{..._0x4e5219,'axis':_0x438474,'type':'insert','index':_0x5cdb2f,'count':_0x4b19b6-_0x5cdb2f+0x1};}function nt(_0x5eed50,_0x4a1be2,_0x311a2b){const _0x44cf29=_0x1703d8;let _0x5440bd=X(_0x5eed50,_0x311a2b);if(!(_0x5eed50!=null&&_0x5eed50[_0x44cf29(0x1c5)])||!_0x5440bd)return null;let _0x535383=_0x4a1be2==='row'?_0x5eed50[_0x44cf29(0x1c5)][_0x44cf29(0x1d4)]:_0x5eed50['range'][_0x44cf29(0x1ce)],_0x21e5ae=_0x4a1be2==='row'?_0x5eed50[_0x44cf29(0x1c5)][_0x44cf29(0x15b)]:_0x5eed50[_0x44cf29(0x1c5)][_0x44cf29(0x19c)];return{..._0x5440bd,'axis':_0x4a1be2,'type':'delete','start':_0x535383,'end':_0x21e5ae};}function rt(_0xe8a94e,_0x12f15b,_0x3e8ba5){const _0x129d67=_0x1703d8;let _0x4615d9=X(_0xe8a94e,_0x3e8ba5);if(!(_0xe8a94e!=null&&_0xe8a94e['fromRange'])||!_0xe8a94e[_0x129d67(0x1bd)]||!_0x4615d9)return null;let _0xd5dbf=_0x12f15b===_0x129d67(0x1d3)?_0xe8a94e[_0x129d67(0x185)][_0x129d67(0x1d4)]:_0xe8a94e['fromRange'][_0x129d67(0x1ce)],_0x277a0e=_0x12f15b===_0x129d67(0x1d3)?_0xe8a94e['fromRange']['endRow']:_0xe8a94e[_0x129d67(0x185)][_0x129d67(0x19c)],_0x148826=_0x12f15b==='row'?_0xe8a94e['toRange'][_0x129d67(0x1d4)]:_0xe8a94e[_0x129d67(0x1bd)]['startColumn'];return{..._0x4615d9,'axis':_0x12f15b,'type':_0x129d67(0x182),'sourceStart':_0xd5dbf,'sourceEnd':_0x277a0e,'destinationIndex':_0x148826};}function it(_0x3f7d59,_0xe2c6c8){const _0x247905=_0x1703d8;switch(_0x3f7d59[_0x247905(0x192)]){case _0x247905(0x14a):return{'unitId':_0x3f7d59[_0x247905(0x16c)],'subUnitId':_0x3f7d59[_0x247905(0x193)],'axis':_0x3f7d59['axis'],'type':'delete','start':_0x3f7d59[_0x247905(0x1ea)],'end':_0x3f7d59[_0x247905(0x1ea)]+_0x3f7d59[_0x247905(0x199)]-0x1};case _0x247905(0x1d5):return{'unitId':_0x3f7d59[_0x247905(0x16c)],'subUnitId':_0x3f7d59['subUnitId'],'axis':_0x3f7d59[_0x247905(0x1a2)],'type':'insert','index':_0x3f7d59['start'],'count':_0x3f7d59[_0x247905(0x1a6)]-_0x3f7d59[_0x247905(0x17f)]+0x1,'restoreOutlines':_0xe2c6c8['filter'](_0x2b971a=>_0x2b971a[_0x247905(0x16c)]===_0x3f7d59[_0x247905(0x16c)]&&_0x2b971a['subUnitId']===_0x3f7d59[_0x247905(0x193)]&&_0x2b971a[_0x247905(0x1a2)]===_0x3f7d59[_0x247905(0x1a2)])};case _0x247905(0x182):return at(_0x3f7d59);}}function at(_0x45637c){const _0x2ef66a=_0x1703d8;let _0x5f1bb8=_0x45637c['sourceEnd']-_0x45637c[_0x2ef66a(0x1cd)]+0x1;return _0x45637c[_0x2ef66a(0x195)]>=_0x45637c[_0x2ef66a(0x1cd)]&&_0x45637c[_0x2ef66a(0x195)]<=_0x45637c[_0x2ef66a(0x16d)]+0x1?{..._0x45637c}:_0x45637c[_0x2ef66a(0x195)]>_0x45637c[_0x2ef66a(0x16d)]+0x1?{..._0x45637c,'sourceStart':_0x45637c['destinationIndex']-_0x5f1bb8,'sourceEnd':_0x45637c[_0x2ef66a(0x195)]-0x1,'destinationIndex':_0x45637c[_0x2ef66a(0x1cd)]}:{..._0x45637c,'sourceStart':_0x45637c['destinationIndex'],'sourceEnd':_0x45637c[_0x2ef66a(0x195)]+_0x5f1bb8-0x1,'destinationIndex':_0x45637c[_0x2ef66a(0x16d)]+0x1};}function X(_0x196746,_0x24af17){const _0x3efb65=_0x1703d8;let _0xef8cf1=(_0x196746==null?void 0x0:_0x196746[_0x3efb65(0x16c)])??(_0x24af17==null?void 0x0:_0x24af17[_0x3efb65(0x16c)]),_0x1f1da1=(_0x196746==null?void 0x0:_0x196746['subUnitId'])??(_0x24af17==null?void 0x0:_0x24af17[_0x3efb65(0x193)]);return _0xef8cf1&&_0x1f1da1?{'unitId':_0xef8cf1,'subUnitId':_0x1f1da1}:null;}function Z(){const _0x2e8f05=_0x1703d8;return{'redos':[...q[_0x2e8f05(0x14d)]],'undos':[...q[_0x2e8f05(0x197)]],'preRedos':[...q[_0x2e8f05(0x194)]??[]],'preUndos':[...q[_0x2e8f05(0x14e)]??[]]};}let Q=class extends _0x10d8df{constructor(_0x44022d,_0x5ac239){const _0x11efa9=_0x1703d8;super(),this[_0x11efa9(0x18b)]=_0x44022d,this[_0x11efa9(0x184)]=_0x5ac239,this[_0x11efa9(0x1b0)]();}[_0x1703d8(0x1b0)](){const _0x2a240d=_0x1703d8;this['disposeWithMe'](this[_0x2a240d(0x18b)][_0x2a240d(0x166)]({'pluginName':W,'businesses':[_0x5834f8['UNIVER_SHEET']],'toJson':_0x11b2fc=>JSON[_0x2a240d(0x1a9)](this['_sheetsOutlineModel'][_0x2a240d(0x175)](_0x11b2fc)),'parseJson':_0x2151ff=>JSON[_0x2a240d(0x1b2)](_0x2151ff),'onLoad':(_0xac1aae,_0x492d27)=>this[_0x2a240d(0x184)]['deserialize'](_0xac1aae,_0x492d27),'onUnLoad':_0x5b26db=>this[_0x2a240d(0x184)]['removeUnit'](_0x5b26db)}));}};Q=K([G(0x0,_0x45e88b),G(0x1,_0x2daa03(P))],Q);let $=class extends _0x49bd60{constructor(_0x2f9070=Qe,_0x2d8724,_0x5e8590,_0x59baaa){const _0x451a36=_0x1703d8;super(),this[_0x451a36(0x189)]=_0x2f9070,this[_0x451a36(0x151)]=_0x2d8724,this[_0x451a36(0x1e8)]=_0x5e8590,this[_0x451a36(0x18c)]=_0x59baaa;let {..._0x52416e}=_0x20ab54({},Qe,this[_0x451a36(0x189)]);this[_0x451a36(0x18c)][_0x451a36(0x1ba)]('sheets-outline.config',_0x52416e);}['onStarting'](){const _0x10222a=_0x1703d8;this[_0x10222a(0x151)][_0x10222a(0x1b7)]([P]),this[_0x10222a(0x151)]['add']([F]),this[_0x10222a(0x151)][_0x10222a(0x1b7)]([Q]),this[_0x10222a(0x151)]['add']([J]),this[_0x10222a(0x18e)](),this[_0x10222a(0x151)]['get'](P),this[_0x10222a(0x151)][_0x10222a(0x1d8)](F),this[_0x10222a(0x151)][_0x10222a(0x1d8)](Q),this['_injector'][_0x10222a(0x1d8)](J);}[_0x1703d8(0x18e)](){const _0x21f4b6=_0x1703d8;[z,ze,qe,V][_0x21f4b6(0x1bc)](_0x3cf726=>{const _0x31f001=_0x21f4b6;this[_0x31f001(0x16a)](this[_0x31f001(0x1e8)]['registerCommand'](_0x3cf726));}),[I,L,H,B,U][_0x21f4b6(0x1bc)](_0x3b3e8b=>{const _0x11daec=_0x21f4b6;this['disposeWithMe'](this[_0x11daec(0x1e8)][_0x11daec(0x158)](_0x3b3e8b));});}};N($,_0x1703d8(0x1ae),W),N($,_0x1703d8(0x1af),Xe),N($,'version',Ze),N($,'type',_0x5834f8[_0x1703d8(0x18f)]),$=K([_0x506a67(_0x2105d7,_0x3f8d87),G(0x1,_0x2daa03(_0x2a8c4c)),G(0x2,_0x4c43e8),G(0x3,_0x56609c)],$);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 _0x1f07e6=_0x5ccc;(function(_0x2f6e27,_0x29817d){var _0x2d2f65=_0x5ccc,_0x39a7cd=_0x2f6e27();while(!![]){try{var _0x29003e=-parseInt(_0x2d2f65(0x11f))/0x1+parseInt(_0x2d2f65(0x121))/0x2*(parseInt(_0x2d2f65(0x117))/0x3)+-parseInt(_0x2d2f65(0x11e))/0x4+parseInt(_0x2d2f65(0x10e))/0x5*(parseInt(_0x2d2f65(0x112))/0x6)+-parseInt(_0x2d2f65(0x126))/0x7*(-parseInt(_0x2d2f65(0x125))/0x8)+parseInt(_0x2d2f65(0x11b))/0x9*(-parseInt(_0x2d2f65(0x127))/0xa)+parseInt(_0x2d2f65(0x10c))/0xb*(parseInt(_0x2d2f65(0x119))/0xc);if(_0x29003e===_0x29817d)break;else _0x39a7cd['push'](_0x39a7cd['shift']());}catch(_0x331cca){_0x39a7cd['push'](_0x39a7cd['shift']());}}}(_0x1cb7,0x8501e));import{AddDimensionOutlineCommand as _0x33bbae,ClearDimensionOutlinesCommand as _0x511c5c,DimensionOutlineAxis as _0xeadc3b,DimensionOutlineErrorReason as _0x3874ba,RemoveDimensionOutlineCommand as _0x220cb2,SetDimensionOutlineCollapsedCommand as _0x1a1d35,SheetsOutlineModel as _0x41b355}from'@univerjs-pro/sheets-outline';import{FEnum as _0x3b5ff1}from'@univerjs/core/facade';import{FWorksheet as _0x26be29}from'@univerjs/sheets/facade';var l=class extends _0x3b5ff1{get[_0x1f07e6(0x122)](){return _0xeadc3b;}get[_0x1f07e6(0x10f)](){return _0x3874ba;}};_0x3b5ff1[_0x1f07e6(0x123)](l);var u=class extends _0x26be29{[_0x1f07e6(0x10d)](_0x167928,_0x4b5399){var _0xf14ce7=_0x1f07e6;return this[_0xf14ce7(0x116)](_0xeadc3b[_0xf14ce7(0x115)],_0x167928,_0x4b5399);}[_0x1f07e6(0x118)](_0x19b9ef,_0x395f50){var _0x4776ff=_0x1f07e6;return this[_0x4776ff(0x116)](_0xeadc3b[_0x4776ff(0x124)],_0x19b9ef,_0x395f50);}[_0x1f07e6(0x114)](_0x542b7f){var _0x47fb0f=_0x1f07e6;return this[_0x47fb0f(0x108)][_0x47fb0f(0x110)](_0x220cb2['id'],{'unitId':this['_workbook'][_0x47fb0f(0x11a)](),'subUnitId':this[_0x47fb0f(0x11d)][_0x47fb0f(0x10a)](),'outlineId':_0x542b7f}),this;}['setDimensionOutlineCollapsed'](_0x1aa8c5,_0x2af9c4){var _0x9662ef=_0x1f07e6;return this[_0x9662ef(0x108)][_0x9662ef(0x110)](_0x1a1d35['id'],{'unitId':this[_0x9662ef(0x120)][_0x9662ef(0x11a)](),'subUnitId':this[_0x9662ef(0x11d)][_0x9662ef(0x10a)](),'outlineId':_0x1aa8c5,'collapsed':_0x2af9c4}),this;}['clearDimensionOutlines'](_0x2132c2,_0x11d52f,_0x4a4b5c){var _0xeb23f2=_0x1f07e6;return this[_0xeb23f2(0x108)]['syncExecuteCommand'](_0x511c5c['id'],{'unitId':this['_workbook'][_0xeb23f2(0x11a)](),'subUnitId':this[_0xeb23f2(0x11d)][_0xeb23f2(0x10a)](),'axis':_0x2132c2,'start':_0x11d52f,'end':_0x4a4b5c}),this;}[_0x1f07e6(0x11c)](_0x5593c8){var _0x24f354=_0x1f07e6;let _0x2e522d=this[_0x24f354(0x10b)][_0x24f354(0x111)](_0x41b355)[_0x24f354(0x128)](this['_workbook'][_0x24f354(0x11a)](),this[_0x24f354(0x11d)][_0x24f354(0x10a)]());return _0x5593c8?_0x2e522d[_0x24f354(0x113)](_0x38d924=>_0x38d924[_0x24f354(0x109)]===_0x5593c8):_0x2e522d;}[_0x1f07e6(0x116)](_0x4b0a60,_0x1e644a,_0x387544){var _0x38bf82=_0x1f07e6;return this['_commandService'][_0x38bf82(0x110)](_0x33bbae['id'],{'unitId':this['_workbook'][_0x38bf82(0x11a)](),'subUnitId':this[_0x38bf82(0x11d)]['getSheetId'](),'axis':_0x4b0a60,'start':_0x1e644a,'end':_0x1e644a+_0x387544-0x1}),this;}};function _0x5ccc(_0x53c7a9,_0x167394){_0x53c7a9=_0x53c7a9-0x108;var _0x1cb7d3=_0x1cb7();var _0x5ccc38=_0x1cb7d3[_0x53c7a9];return _0x5ccc38;}function _0x1cb7(){var _0x2ea655=['getSheetId','_injector','33TvTgNy','addRowOutline','3310IGHkBL','DimensionOutlineErrorReason','syncExecuteCommand','get','1656AFRcOA','filter','removeDimensionOutline','ROW','_addDimensionOutline','3fzdcJl','addColumnOutline','4308156vsrryd','getUnitId','514638CIMHmY','getDimensionOutlines','_worksheet','4092112iIcdqZ','454514NfcQsO','_workbook','1994766FXrvmG','DimensionOutlineAxis','extend','COLUMN','176xEikuN','70847wZHEnr','80jQEINS','getOutlines','_commandService','axis'];_0x1cb7=function(){return _0x2ea655;};return _0x1cb7();}_0x26be29[_0x1f07e6(0x123)](u);export{};
1
+ var _0x5d81d7=_0x4c3b;(function(_0x1bbfab,_0x4f6ee6){var _0x41dcd8=_0x4c3b,_0xd2e521=_0x1bbfab();while(!![]){try{var _0x37d1bb=-parseInt(_0x41dcd8(0xf3))/0x1+-parseInt(_0x41dcd8(0xf5))/0x2+-parseInt(_0x41dcd8(0xfe))/0x3*(parseInt(_0x41dcd8(0x103))/0x4)+-parseInt(_0x41dcd8(0xfc))/0x5*(parseInt(_0x41dcd8(0xef))/0x6)+-parseInt(_0x41dcd8(0xed))/0x7+parseInt(_0x41dcd8(0xfd))/0x8+-parseInt(_0x41dcd8(0xee))/0x9*(-parseInt(_0x41dcd8(0xf0))/0xa);if(_0x37d1bb===_0x4f6ee6)break;else _0xd2e521['push'](_0xd2e521['shift']());}catch(_0x172aa1){_0xd2e521['push'](_0xd2e521['shift']());}}}(_0x1749,0x28491));import{AddDimensionOutlineCommand as _0x259005,ClearDimensionOutlinesCommand as _0x3bbff1,DimensionOutlineAxis as _0x5e0f8d,DimensionOutlineErrorReason as _0x11c631,RemoveDimensionOutlineCommand as _0x1fbe3f,SetDimensionOutlineCollapsedCommand as _0x394f92,SheetsOutlineModel as _0x59f6d6}from'@univerjs-pro/sheets-outline';import{FEnum as _0x3bd20f}from'@univerjs/core/facade';import{FWorksheet as _0x2fe98c}from'@univerjs/sheets/facade';var l=class extends _0x3bd20f{get[_0x5d81d7(0xfb)](){return _0x5e0f8d;}get[_0x5d81d7(0x105)](){return _0x11c631;}};_0x3bd20f[_0x5d81d7(0xf4)](l);function _0x4c3b(_0x5f2450,_0x3f5227){_0x5f2450=_0x5f2450-0xec;var _0x17493d=_0x1749();var _0x4c3b9f=_0x17493d[_0x5f2450];return _0x4c3b9f;}var u=class extends _0x2fe98c{[_0x5d81d7(0xf6)](_0x3e17a2,_0x5ce5b1){var _0x4a4c4e=_0x5d81d7;return this[_0x4a4c4e(0x109)](_0x5e0f8d[_0x4a4c4e(0xf8)],_0x3e17a2,_0x5ce5b1);}[_0x5d81d7(0xf1)](_0x17e392,_0x4de3d1){var _0x44851b=_0x5d81d7;return this[_0x44851b(0x109)](_0x5e0f8d[_0x44851b(0xff)],_0x17e392,_0x4de3d1);}[_0x5d81d7(0x101)](_0x5af96b){var _0x511e71=_0x5d81d7;return this[_0x511e71(0xfa)][_0x511e71(0x104)](_0x1fbe3f['id'],{'unitId':this[_0x511e71(0x107)]['getUnitId'](),'subUnitId':this[_0x511e71(0x102)][_0x511e71(0xf7)](),'outlineId':_0x5af96b}),this;}[_0x5d81d7(0xf9)](_0x51b911,_0x21a646){var _0x132db6=_0x5d81d7;return this[_0x132db6(0xfa)][_0x132db6(0x104)](_0x394f92['id'],{'unitId':this[_0x132db6(0x107)]['getUnitId'](),'subUnitId':this[_0x132db6(0x102)]['getSheetId'](),'outlineId':_0x51b911,'collapsed':_0x21a646}),this;}['clearDimensionOutlines'](_0x279edb,_0x32dd76,_0x594a5a){var _0x976350=_0x5d81d7;return this[_0x976350(0xfa)][_0x976350(0x104)](_0x3bbff1['id'],{'unitId':this[_0x976350(0x107)][_0x976350(0x106)](),'subUnitId':this[_0x976350(0x102)]['getSheetId'](),'axis':_0x279edb,'start':_0x32dd76,'end':_0x594a5a}),this;}[_0x5d81d7(0x108)](_0x12f975){var _0x2ed3a0=_0x5d81d7;let _0x392b70=this[_0x2ed3a0(0xf2)]['get'](_0x59f6d6)[_0x2ed3a0(0xec)](this[_0x2ed3a0(0x107)]['getUnitId'](),this[_0x2ed3a0(0x102)]['getSheetId']());return _0x12f975?_0x392b70['filter'](_0x45c2c2=>_0x45c2c2[_0x2ed3a0(0x100)]===_0x12f975):_0x392b70;}['_addDimensionOutline'](_0x5db2e6,_0x51434c,_0x203d9c){var _0x4a32bd=_0x5d81d7;return this[_0x4a32bd(0xfa)][_0x4a32bd(0x104)](_0x259005['id'],{'unitId':this['_workbook']['getUnitId'](),'subUnitId':this[_0x4a32bd(0x102)]['getSheetId'](),'axis':_0x5db2e6,'start':_0x51434c,'end':_0x51434c+_0x203d9c-0x1}),this;}};function _0x1749(){var _0x2d2a58=['addRowOutline','getSheetId','ROW','setDimensionOutlineCollapsed','_commandService','DimensionOutlineAxis','40vCNtsX','1124992UVINEe','626877JVLgzw','COLUMN','axis','removeDimensionOutline','_worksheet','4kluXyi','syncExecuteCommand','DimensionOutlineErrorReason','getUnitId','_workbook','getDimensionOutlines','_addDimensionOutline','getOutlines','916727SIrQUv','8631RHLdNZ','165660eIweOJ','11420iPcPbD','addColumnOutline','_injector','229812DprSaz','extend','560362DoDjHN'];_0x1749=function(){return _0x2d2a58;};return _0x1749();}_0x2fe98c[_0x5d81d7(0xf4)](u);export{};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1833dd=_0x3a4b;(function(_0x17b778,_0x40cd91){const _0x4e063b=_0x3a4b,_0x5ce106=_0x17b778();while(!![]){try{const _0x4123d5=parseInt(_0x4e063b(0x129))/0x1*(parseInt(_0x4e063b(0xf1))/0x2)+-parseInt(_0x4e063b(0xe7))/0x3+parseInt(_0x4e063b(0xda))/0x4*(-parseInt(_0x4e063b(0x122))/0x5)+-parseInt(_0x4e063b(0x15b))/0x6*(parseInt(_0x4e063b(0x159))/0x7)+parseInt(_0x4e063b(0x13e))/0x8*(-parseInt(_0x4e063b(0xeb))/0x9)+parseInt(_0x4e063b(0x128))/0xa*(parseInt(_0x4e063b(0xf5))/0xb)+parseInt(_0x4e063b(0x127))/0xc*(parseInt(_0x4e063b(0x10a))/0xd);if(_0x4123d5===_0x40cd91)break;else _0x5ce106['push'](_0x5ce106['shift']());}catch(_0x511cb8){_0x5ce106['push'](_0x5ce106['shift']());}}}(_0x5989,0xbc7ba));import{CommandType as _0x5c5c9a,CustomCommandExecutionError as _0x548967,DependentOn as _0x517b95,Disposable as _0xe18af3,ICommandService as _0xb641c0,IConfigService as _0x3f4535,IPermissionService as _0x19652f,IResourceManagerService as _0x4dc04c,IUndoRedoService as _0x50b520,IUniverInstanceService as _0x1aff8c,Inject as _0x140d65,Injector as _0x1b6645,Plugin as _0x26df20,UniverInstanceType as _0x84cb88,generateRandomId as _0x3e222e,merge as _0x25c148,sequenceExecute as _0x1fddcb}from'@univerjs/core';import{InsertColCommand as _0x45efe8,InsertRowCommand as _0x16cb71,MoveColsCommand as _0x29ddad,MoveRowsCommand as _0xc01a4,RemoveColCommand as _0x4c0222,RemoveRowCommand as _0x367b42,SetColHiddenMutation as _0x58466f,SetColVisibleMutation as _0x13e49f,SetRowHiddenMutation as _0x33d7d0,SetRowVisibleMutation as _0x39df2b,SheetInterceptorService as _0x1fddbb,SheetPermissionCheckController as _0x12b494,UniverSheetsPlugin as _0x276c49,WorkbookViewPermission as _0x9f8f44,WorksheetViewPermission as _0x1b0ba6,getSheetCommandTarget as _0xe99487}from'@univerjs/sheets';import{Subject as _0x54b96e,of as _0x401f9f}from'rxjs';import{debounceTime as _0x316122,map as _0x411084,startWith as _0x308174}from'rxjs/operators';import{UniverLicensePlugin as _0x332882}from'@univerjs-pro/license';let ge=function(_0x347c77){const _0x4ff5aa=_0x3a4b;return _0x347c77['ROW']=_0x4ff5aa(0x134),_0x347c77[_0x4ff5aa(0xfd)]='column',_0x347c77;}({}),_e=function(_0x25bb2c){const _0x47c084=_0x3a4b;return _0x25bb2c['INVALID_RANGE']=_0x47c084(0xd3),_0x25bb2c[_0x47c084(0x157)]=_0x47c084(0x149),_0x25bb2c[_0x47c084(0xf2)]=_0x47c084(0x126),_0x25bb2c[_0x47c084(0x144)]=_0x47c084(0x107),_0x25bb2c[_0x47c084(0xfb)]='move-splits-outline',_0x25bb2c[_0x47c084(0xd9)]=_0x47c084(0x14f),_0x25bb2c[_0x47c084(0x12e)]=_0x47c084(0x140),_0x25bb2c;}({});var C=class extends Error{constructor(_0x2954e7,_0x27b0aa,_0x587b45){const _0x3344df=_0x3a4b;super(_0x27b0aa),this[_0x3344df(0xe5)]=_0x2954e7,this[_0x3344df(0xce)]=_0x587b45,this[_0x3344df(0xe6)]='DimensionOutlineError';}};function ve(_0x506742){const _0xe1ebe0=_0x3a4b;return _0x506742 instanceof C?_0x506742[_0xe1ebe0(0xe5)]:_0x506742 instanceof Error?_0x506742[_0xe1ebe0(0x14a)][_0xe1ebe0(0x16c)]('split\x20dimension\x20outline')?'move-splits-outline':_0x506742[_0xe1ebe0(0x14a)][_0xe1ebe0(0x16c)]('depth')?_0xe1ebe0(0x107):_0x506742[_0xe1ebe0(0x14a)][_0xe1ebe0(0x16c)](_0xe1ebe0(0x15c))?_0xe1ebe0(0x126):_0x506742[_0xe1ebe0(0x14a)]['includes'](_0xe1ebe0(0x16a))?_0xe1ebe0(0xd3):'unknown':'unknown';}function ye(_0x47e994){const _0x1352a1=_0x3a4b;return _0x47e994 instanceof C?_0x47e994[_0x1352a1(0xce)]:void 0x0;}const w=0x2**0x35-0x1;function T(_0x494d65,_0x5e6ff7){const _0x7a7cbf=_0x3a4b;return _0x494d65['unitId']===_0x5e6ff7[_0x7a7cbf(0x161)]&&_0x494d65[_0x7a7cbf(0x156)]===_0x5e6ff7[_0x7a7cbf(0x156)]&&_0x494d65[_0x7a7cbf(0xf7)]===_0x5e6ff7[_0x7a7cbf(0xf7)];}function E(_0x44eb7b,_0x3415cb={}){const _0x4ead1c=_0x3a4b;var _0x540a6d;let _0x36a87b=(_0x540a6d=_0x3415cb[_0x4ead1c(0x12c)])==null?0x8:_0x540a6d,_0x2ca4a0=new Map();for(let _0xdeace1 of _0x44eb7b){let _0x4fce2e=_0xdeace1[_0x4ead1c(0x161)]+':'+_0xdeace1[_0x4ead1c(0x156)]+':'+_0xdeace1[_0x4ead1c(0xf7)],_0x43435a=_0x2ca4a0[_0x4ead1c(0x136)](_0x4fce2e);_0x43435a?_0x43435a[_0x4ead1c(0x10b)](_0xdeace1):_0x2ca4a0[_0x4ead1c(0x171)](_0x4fce2e,[_0xdeace1]);}let _0x3aeb93=[];for(let _0x3646f0 of _0x2ca4a0['values']()){let _0x1ba90b=[..._0x3646f0]['sort'](je),_0x995ea2=[];for(let _0x13e4e2 of _0x1ba90b){for(Me(_0x13e4e2);_0x995ea2[_0x4ead1c(0x123)]>0x0&&_0x13e4e2[_0x4ead1c(0x16d)]>_0x995ea2[_0x995ea2[_0x4ead1c(0x123)]-0x1][_0x4ead1c(0x165)];)_0x995ea2['pop']();let _0x2773fe=_0x995ea2[_0x995ea2['length']-0x1];if(_0x2773fe&&_0x13e4e2[_0x4ead1c(0x165)]>_0x2773fe[_0x4ead1c(0x165)])throw new C(_0x4ead1c(0x126),_0x4ead1c(0x11e),_0x13e4e2['id']);let _0x54e9f2=_0x2773fe?_0x2773fe['depth']+0x1:0x1;if(_0x54e9f2>_0x36a87b)throw new C(_0x4ead1c(0x107),_0x4ead1c(0x12b)+_0x36a87b,_0x13e4e2['id']);let _0x2ea53f={..._0x13e4e2,'depth':_0x54e9f2,'parentId':_0x2773fe==null?void 0x0:_0x2773fe['id'],'anchor':_0x13e4e2[_0x4ead1c(0x165)],'children':[]};_0x2773fe?_0x2773fe[_0x4ead1c(0xcc)][_0x4ead1c(0x10b)](_0x2ea53f):_0x3aeb93[_0x4ead1c(0x10b)](_0x2ea53f),_0x995ea2['push'](_0x2ea53f);}}return _0x3aeb93;}function _0x5989(){const _0x4f9643=['1422ttnIvM','Crossing','Invalid\x20outline\x20range','1.0.0-alpha.8','undos','startRow','unitId','change$','_outlines','params','end','sheet.command.set-dimension-outline-collapsed','_sheetsOutlineModel','permissionPointUpdate$','split','range','_initRegisterCommand','includes','start','asObservable','_resourceManagerService','preUndos','set','filter','sheet.command.add-dimension-outline','emit','defineProperty','outlineList','next','children','object','outlineId','sourceEnd','collapsed','sort','sourceStart','invalid-range','insert','_commandService','result','pushUndoRedo','add','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','284exExfW','sheet.mutation.add-dimension-outline','dispose','parse','destinationIndex','sheet.command.clear-dimension-outlines','_initCommandInterceptor','removeUnit','MUTATION','maxIndex','getActiveSheet','reason','name','398886gHwvfb','startColumn','sheets-outline.config','@univerjs-pro/sheets-outline','48285bgGYPG','_config','getUnit','Move\x20would\x20split\x20dimension\x20outline:\x20','COMMAND','localeCompare','2EGlZmn','CROSSING','getOutlines','sheet.mutation.clear-dimension-outlines','187JExLOM','getMaxColumns','axis','index','stringify','find','MOVE_SPLITS_OUTLINE','_getCommandScope','COLUMN','pipe','Invalid\x20dimension\x20outline\x20mutation','getSheetId','disposeWithMe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_configService','error$','move-splits-outline','valid','max-depth','_ensureUnitOutlines','count','26ujfzIq','push','map','from','clear','packageName','interceptCommand','values','outline','some','version','pluginName','column','toPrimitive','getOwnPropertyDescriptor','_injector','forEach','Invalid\x20dimension\x20outline\x20move\x20source\x20range','restoreOutlines','registerPluginResource','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','decorate','getCurrentUnitOfType','fromRange','97615GOnZRV','length','constructor','symbol','crossing','12869976QANixw','721610TIPmnT','542765JrtYxb','has','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','maxDepth','getRowCount','UNKNOWN','registerCommand','prototype','endRow','function','toRange','row','iterator','get','move','sheet.command.remove-dimension-outline','_error$','_sheetsOutlineErrorService','redos','join','UNIVER_SHEET','1528JGmrqX','preRedos','unknown','endColumn','sheet.mutation.remove-dimension-outline','deserialize','MAX_DEPTH','complete','serialize','setConfig','_change$','out-of-bounds','message','string','min','setOutlines','type','clear-range-not-contain-outline','entries','sheet.mutation.transform-dimension-outlines','_univerInstanceService','getSheetBySheetId','max','mergedOutlines','subUnitId','OUT_OF_BOUNDS','_sheetInterceptorService','17682eQCMhW','delete'];_0x5989=function(){return _0x4f9643;};return _0x5989();}function D(_0x409c0d,_0x1b2a4e,_0x4d8462={}){const _0x458112=_0x3a4b;if(_0x1b2a4e['start']<0x0||_0x1b2a4e[_0x458112(0x16d)]>_0x1b2a4e[_0x458112(0x165)])return{'valid':!0x1,'reason':_0x458112(0xd3)};if(_0x4d8462[_0x458112(0xe3)]!=null&&_0x1b2a4e[_0x458112(0x165)]>=_0x4d8462[_0x458112(0xe3)])return{'valid':!0x1,'reason':_0x458112(0x149)};let _0x45367d=_0x409c0d['filter'](_0x20660e=>T(_0x20660e,_0x1b2a4e));for(let _0x2d6dc7 of _0x45367d)if(Ne(_0x2d6dc7,_0x1b2a4e))return{'valid':!0x1,'reason':_0x458112(0x126)};try{E([..._0x409c0d,_0x1b2a4e],_0x4d8462);}catch(_0x22dffb){let _0x20cbb8=ve(_0x22dffb);return _0x20cbb8===_0x458112(0x107)?{'valid':!0x1,'reason':'max-depth'}:_0x20cbb8===_0x458112(0xd3)?{'valid':!0x1,'reason':_0x458112(0xd3)}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function be(_0x2f5240,_0x3350b8,_0x505202={}){const _0x417d4c=_0x3a4b;let _0x174360=D(_0x2f5240,_0x3350b8,_0x505202);if(!_0x174360[_0x417d4c(0x106)]){var _0x1e2122;throw Error((_0x1e2122=_0x174360[_0x417d4c(0xe5)])==null?'invalid-dimension-outline':_0x1e2122);}return[..._0x2f5240,_0x3350b8];}function xe(_0x3ba329,_0x2aba27){const _0x411ec0=_0x3a4b;let _0x563675=_0x2aba27[_0x411ec0(0x16d)],_0x1ed7b3=_0x2aba27[_0x411ec0(0x165)],_0x1df0e6=[],_0x104691=!0x0;for(;_0x104691;){_0x104691=!0x1;for(let _0x2ada90 of _0x3ba329)_0x1df0e6[_0x411ec0(0x16c)](_0x2ada90)||!T(_0x2ada90,_0x2aba27)||!ke(_0x2ada90[_0x411ec0(0x16d)],_0x2ada90[_0x411ec0(0x165)],_0x563675,_0x1ed7b3)||(_0x1df0e6[_0x411ec0(0x10b)](_0x2ada90),_0x563675=Math[_0x411ec0(0x14c)](_0x563675,_0x2ada90[_0x411ec0(0x16d)]),_0x1ed7b3=Math[_0x411ec0(0x154)](_0x1ed7b3,_0x2ada90['end']),_0x104691=!0x0);}if(_0x1df0e6[_0x411ec0(0x123)]===0x0)return null;let [_0x5790ac]=[..._0x1df0e6][_0x411ec0(0xd1)](je);return{'mergedOutline':{..._0x5790ac,'start':_0x563675,'end':_0x1ed7b3},'mergedOutlines':_0x1df0e6};}function Se(_0x2af61a,_0x2f99d6){const _0x5e0e83=_0x3a4b;return _0x2af61a[_0x5e0e83(0x172)](_0x1e83e0=>!T(_0x1e83e0,_0x2f99d6)||!(_0x1e83e0[_0x5e0e83(0x16d)]>=_0x2f99d6[_0x5e0e83(0x16d)]&&_0x1e83e0[_0x5e0e83(0x165)]<=_0x2f99d6[_0x5e0e83(0x165)]));}function Ce(_0xc8d588,_0x4becb3,_0x49e2a2,_0x1a357a){const _0x4b31fe=_0x3a4b;return we(_0xc8d588[_0x4b31fe(0x172)](_0x306948=>_0x306948[_0x4b31fe(0x161)]===_0x4becb3&&_0x306948[_0x4b31fe(0x156)]===_0x49e2a2&&_0x306948[_0x4b31fe(0xf7)]===_0x1a357a&&_0x306948[_0x4b31fe(0xd0)])[_0x4b31fe(0x10c)](_0x4cb881=>({'start':_0x4cb881[_0x4b31fe(0x16d)],'end':_0x4cb881[_0x4b31fe(0x165)]})));}function we(_0xe0fec7){const _0x3065f1=_0x3a4b;if(_0xe0fec7[_0x3065f1(0x123)]===0x0)return[];let _0x4364bb=[..._0xe0fec7][_0x3065f1(0xd1)]((_0x242e4e,_0x11ee1f)=>_0x242e4e[_0x3065f1(0x16d)]-_0x11ee1f[_0x3065f1(0x16d)]||_0x242e4e['end']-_0x11ee1f[_0x3065f1(0x165)]),_0x1ed1af=[];for(let _0x435165 of _0x4364bb){let _0x47d5ca=_0x1ed1af[_0x1ed1af[_0x3065f1(0x123)]-0x1];!_0x47d5ca||_0x435165['start']>_0x47d5ca[_0x3065f1(0x165)]+0x1?_0x1ed1af[_0x3065f1(0x10b)]({..._0x435165}):_0x47d5ca[_0x3065f1(0x165)]=Math[_0x3065f1(0x154)](_0x47d5ca[_0x3065f1(0x165)],_0x435165[_0x3065f1(0x165)]);}return _0x1ed1af;}function O(_0x5b17f2,_0x187cce){const _0x2f28db=_0x3a4b;return _0x187cce['count']<=0x0?_0x5b17f2:j(_0x5b17f2[_0x2f28db(0x10c)](_0x4dab65=>T(_0x4dab65,_0x187cce)?_0x187cce['index']<=_0x4dab65[_0x2f28db(0x16d)]?{..._0x4dab65,'start':_0x4dab65[_0x2f28db(0x16d)]+_0x187cce[_0x2f28db(0x109)],'end':_0x4dab65[_0x2f28db(0x165)]+_0x187cce[_0x2f28db(0x109)]}:_0x4dab65[_0x2f28db(0x16d)]<_0x187cce[_0x2f28db(0xf8)]&&_0x187cce[_0x2f28db(0xf8)]<=_0x4dab65[_0x2f28db(0x165)]?{..._0x4dab65,'end':_0x4dab65[_0x2f28db(0x165)]+_0x187cce[_0x2f28db(0x109)]}:_0x4dab65:_0x4dab65));}function k(_0x33126d,_0x162f5b){const _0x32bf07=_0x3a4b;if(_0x162f5b[_0x32bf07(0x16d)]>_0x162f5b[_0x32bf07(0x165)])return _0x33126d;let _0x5a27f=_0x162f5b[_0x32bf07(0x165)]-_0x162f5b[_0x32bf07(0x16d)]+0x1,_0xfe49ad=[];for(let _0x1cec0b of _0x33126d){if(!T(_0x1cec0b,_0x162f5b)){_0xfe49ad[_0x32bf07(0x10b)](_0x1cec0b);continue;}if(_0x1cec0b[_0x32bf07(0x165)]<_0x162f5b[_0x32bf07(0x16d)]){_0xfe49ad[_0x32bf07(0x10b)](_0x1cec0b);continue;}if(_0x1cec0b['start']>_0x162f5b[_0x32bf07(0x165)]){_0xfe49ad[_0x32bf07(0x10b)]({..._0x1cec0b,'start':_0x1cec0b['start']-_0x5a27f,'end':_0x1cec0b[_0x32bf07(0x165)]-_0x5a27f});continue;}let _0x50a7c3=Math['max'](_0x1cec0b[_0x32bf07(0x16d)],_0x162f5b[_0x32bf07(0x16d)]),_0x146f73=Math[_0x32bf07(0x14c)](_0x1cec0b[_0x32bf07(0x165)],_0x162f5b[_0x32bf07(0x165)]),_0x32f062=Math['max'](0x0,_0x146f73-_0x50a7c3+0x1),_0x4c0c39=_0x1cec0b[_0x32bf07(0x165)]-_0x1cec0b[_0x32bf07(0x16d)]+0x1-_0x32f062;if(_0x4c0c39<=0x0)continue;let _0x8af8b=_0x1cec0b[_0x32bf07(0x16d)]<_0x162f5b[_0x32bf07(0x16d)]?_0x1cec0b[_0x32bf07(0x16d)]:_0x162f5b['start'];_0xfe49ad[_0x32bf07(0x10b)]({..._0x1cec0b,'start':_0x8af8b,'end':_0x8af8b+_0x4c0c39-0x1});}return j(_0xfe49ad);}function A(_0x50e11d,_0x75d1ca){const _0x107048=_0x3a4b;if(_0x75d1ca[_0x107048(0xd2)]>_0x75d1ca[_0x107048(0xcf)])return _0x50e11d;let _0x76a714=[];for(let _0x460a85 of _0x50e11d){if(!T(_0x460a85,_0x75d1ca)){_0x76a714[_0x107048(0x10b)](_0x460a85);continue;}let _0x2da7b6=Te(_0x460a85,_0x75d1ca);if(_0x2da7b6[_0x107048(0x14e)]==='split')throw new C(_0x107048(0x105),_0x107048(0xee)+_0x460a85['id'],_0x460a85['id']);_0x76a714['push'](_0x2da7b6['outline']);}return j(_0x76a714);}function Te(_0x23c047,_0x317bd7){const _0x8f1b6b=_0x3a4b;let _0x1ff638=Ee(_0x317bd7[_0x8f1b6b(0xd2)],_0x317bd7['sourceEnd']+0x1,_0x317bd7[_0x8f1b6b(0xde)]),_0x149b7b=[],_0x34976b={'start':_0x23c047[_0x8f1b6b(0x16d)],'end':_0x23c047[_0x8f1b6b(0x165)]+0x1};for(let _0x3d6a17 of _0x1ff638){let _0x26b005=De(_0x34976b,_0x3d6a17['range']);_0x26b005&&_0x149b7b['push']({'start':_0x26b005[_0x8f1b6b(0x16d)]+_0x3d6a17['offset'],'end':_0x26b005[_0x8f1b6b(0x165)]+_0x3d6a17['offset']});}let _0x4e3ed5=Oe(_0x149b7b);return _0x4e3ed5[_0x8f1b6b(0x123)]===0x1?{'type':'ok','outline':{..._0x23c047,'start':_0x4e3ed5[0x0]['start'],'end':_0x4e3ed5[0x0][_0x8f1b6b(0x165)]-0x1}}:{'type':_0x8f1b6b(0x169),'outline':_0x23c047,'ranges':_0x4e3ed5};}function Ee(_0x19903d,_0x5cb359,_0x43ab4b){const _0x234ac2=_0x3a4b;let _0x333f4f=_0x5cb359-_0x19903d;if(_0x333f4f<=0x0)throw Error(_0x234ac2(0x11b));return _0x43ab4b>=_0x19903d&&_0x43ab4b<=_0x5cb359?[{'range':{'start':0x0,'end':w},'offset':0x0}]:_0x43ab4b<_0x19903d?[{'range':{'start':0x0,'end':_0x43ab4b},'offset':0x0},{'range':{'start':_0x43ab4b,'end':_0x19903d},'offset':_0x333f4f},{'range':{'start':_0x19903d,'end':_0x5cb359},'offset':_0x43ab4b-_0x19903d},{'range':{'start':_0x5cb359,'end':w},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x19903d},'offset':0x0},{'range':{'start':_0x19903d,'end':_0x5cb359},'offset':_0x43ab4b-_0x5cb359},{'range':{'start':_0x5cb359,'end':_0x43ab4b},'offset':-_0x333f4f},{'range':{'start':_0x43ab4b,'end':w},'offset':0x0}];}function De(_0x57094f,_0x1a973a){const _0x32af29=_0x3a4b;let _0x4afef2=Math[_0x32af29(0x154)](_0x57094f[_0x32af29(0x16d)],_0x1a973a[_0x32af29(0x16d)]),_0x3e0f5e=Math[_0x32af29(0x14c)](_0x57094f['end'],_0x1a973a[_0x32af29(0x165)]);return _0x4afef2>=_0x3e0f5e?null:{'start':_0x4afef2,'end':_0x3e0f5e};}function Oe(_0x543093){const _0x3efded=_0x3a4b;if(_0x543093[_0x3efded(0x123)]===0x0)return[];let _0x49806e=[..._0x543093][_0x3efded(0xd1)]((_0x3845ae,_0x193a36)=>_0x3845ae['start']-_0x193a36[_0x3efded(0x16d)]||_0x3845ae['end']-_0x193a36[_0x3efded(0x165)]),_0x4e3ddf=[];for(let _0xd0ec4c of _0x49806e){let _0x30471d=_0x4e3ddf[_0x4e3ddf['length']-0x1];!_0x30471d||_0xd0ec4c['start']>_0x30471d[_0x3efded(0x165)]?_0x4e3ddf['push']({..._0xd0ec4c}):_0x30471d[_0x3efded(0x165)]=Math[_0x3efded(0x154)](_0x30471d[_0x3efded(0x165)],_0xd0ec4c[_0x3efded(0x165)]);}return _0x4e3ddf;}function ke(_0x5bbc6d,_0x1be9bc,_0x4a0e0a,_0x3f5f3c){return _0x1be9bc+0x1===_0x4a0e0a||_0x3f5f3c+0x1===_0x5bbc6d;}function j(_0x47e03b){let _0x4213a2=Ae(_0x47e03b);return E(_0x4213a2),_0x4213a2;}function Ae(_0x5d5360){const _0x3ec201=_0x3a4b;let _0x569bfc=new Map();for(let _0x489b6c of _0x5d5360){let _0x1be399=[_0x489b6c['unitId'],_0x489b6c[_0x3ec201(0x156)],_0x489b6c[_0x3ec201(0xf7)],_0x489b6c[_0x3ec201(0x16d)],_0x489b6c['end']][_0x3ec201(0x13c)](':'),_0x1bfc9d=_0x569bfc[_0x3ec201(0x136)](_0x1be399);if(!_0x1bfc9d){_0x569bfc[_0x3ec201(0x171)](_0x1be399,_0x489b6c);continue;}_0x569bfc[_0x3ec201(0x171)](_0x1be399,{..._0x1bfc9d,'collapsed':_0x1bfc9d[_0x3ec201(0xd0)]||_0x489b6c['collapsed']});}return Array[_0x3ec201(0x10d)](_0x569bfc[_0x3ec201(0x111)]());}function je(_0x4e86c1,_0x17a96c){const _0x1a380e=_0x3a4b;return _0x4e86c1[_0x1a380e(0x161)]===_0x17a96c[_0x1a380e(0x161)]?_0x4e86c1[_0x1a380e(0x156)]===_0x17a96c['subUnitId']?_0x4e86c1['axis']===_0x17a96c['axis']?_0x4e86c1['start']===_0x17a96c[_0x1a380e(0x16d)]?_0x17a96c['end']-_0x4e86c1[_0x1a380e(0x165)]:_0x4e86c1['start']-_0x17a96c[_0x1a380e(0x16d)]:_0x4e86c1[_0x1a380e(0xf7)][_0x1a380e(0xf0)](_0x17a96c[_0x1a380e(0xf7)]):_0x4e86c1[_0x1a380e(0x156)][_0x1a380e(0xf0)](_0x17a96c[_0x1a380e(0x156)]):_0x4e86c1[_0x1a380e(0x161)][_0x1a380e(0xf0)](_0x17a96c[_0x1a380e(0x161)]);}function Me(_0xb22f7d){const _0x3fbb5c=_0x3a4b;if(_0xb22f7d[_0x3fbb5c(0x16d)]>_0xb22f7d[_0x3fbb5c(0x165)])throw new C(_0x3fbb5c(0xd3),_0x3fbb5c(0x15d),_0xb22f7d['id']);}function Ne(_0x371475,_0x2ed2e7){const _0x40980d=_0x3a4b;let _0x56978f=_0x371475[_0x40980d(0x16d)]<=_0x2ed2e7[_0x40980d(0x165)]&&_0x2ed2e7['start']<=_0x371475[_0x40980d(0x165)],_0x1bb2ec=_0x371475[_0x40980d(0x16d)]<=_0x2ed2e7[_0x40980d(0x16d)]&&_0x2ed2e7[_0x40980d(0x165)]<=_0x371475[_0x40980d(0x165)],_0x286def=_0x2ed2e7[_0x40980d(0x16d)]<=_0x371475[_0x40980d(0x16d)]&&_0x371475[_0x40980d(0x165)]<=_0x2ed2e7[_0x40980d(0x165)];return _0x56978f&&!_0x1bb2ec&&!_0x286def;}function M(_0x5c34f8){'@babel/helpers - typeof';const _0x4816e1=_0x3a4b;return M=typeof Symbol==_0x4816e1(0x132)&&typeof Symbol[_0x4816e1(0x135)]==_0x4816e1(0x125)?function(_0x2a1016){return typeof _0x2a1016;}:function(_0x573d44){const _0x343f3a=_0x4816e1;return _0x573d44&&typeof Symbol==_0x343f3a(0x132)&&_0x573d44[_0x343f3a(0x124)]===Symbol&&_0x573d44!==Symbol[_0x343f3a(0x130)]?_0x343f3a(0x125):typeof _0x573d44;},M(_0x5c34f8);}function Pe(_0x311b19,_0x46acb){const _0x4991d7=_0x3a4b;if(M(_0x311b19)!=_0x4991d7(0xcd)||!_0x311b19)return _0x311b19;var _0x267d23=_0x311b19[Symbol[_0x4991d7(0x117)]];if(_0x267d23!==void 0x0){var _0x3e28e9=_0x267d23['call'](_0x311b19,_0x46acb||'default');if(M(_0x3e28e9)!=_0x4991d7(0xcd))return _0x3e28e9;throw TypeError(_0x4991d7(0x102));}return(_0x46acb===_0x4991d7(0x14b)?String:Number)(_0x311b19);}function Fe(_0x254d1f){const _0x58a885=_0x3a4b;var _0x164444=Pe(_0x254d1f,_0x58a885(0x14b));return M(_0x164444)==_0x58a885(0x125)?_0x164444:_0x164444+'';}function N(_0x1ea92b,_0x5b6ad1,_0x4d7dde){const _0x2f0368=_0x3a4b;return(_0x5b6ad1=Fe(_0x5b6ad1))in _0x1ea92b?Object[_0x2f0368(0xc9)](_0x1ea92b,_0x5b6ad1,{'value':_0x4d7dde,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1ea92b[_0x5b6ad1]=_0x4d7dde,_0x1ea92b;}var P=class extends _0xe18af3{constructor(..._0x26a79e){const _0x478a1c=_0x3a4b;super(..._0x26a79e),N(this,_0x478a1c(0x163),new Map()),N(this,_0x478a1c(0x148),new _0x54b96e()),N(this,_0x478a1c(0x162),this[_0x478a1c(0x148)][_0x478a1c(0x16e)]());}[_0x1833dd(0xf3)](_0x44704f,_0x23f7ef){const _0x4b9cc6=_0x1833dd;var _0x4d2783,_0x3e9386;return[...(_0x4d2783=(_0x3e9386=this['_outlines'][_0x4b9cc6(0x136)](_0x44704f))==null?void 0x0:_0x3e9386[_0x4b9cc6(0x136)](_0x23f7ef))==null?[]:_0x4d2783];}['getUnitOutlines'](_0x4b03d3){const _0x4702b2=_0x1833dd;let _0x32f14d=this['_outlines'][_0x4702b2(0x136)](_0x4b03d3),_0x2b777f=new Map();return _0x32f14d==null||_0x32f14d[_0x4702b2(0x11a)]((_0x218d2f,_0x1a9c4a)=>{const _0x10d298=_0x4702b2;_0x2b777f[_0x10d298(0x171)](_0x1a9c4a,[..._0x218d2f]);}),_0x2b777f;}[_0x1833dd(0x14d)](_0x20b588,_0x2dd5ed,_0x1b5ff4){const _0x277bb5=_0x1833dd;this[_0x277bb5(0x108)](_0x20b588)[_0x277bb5(0x171)](_0x2dd5ed,[..._0x1b5ff4]),this['_change$'][_0x277bb5(0xcb)]({'unitId':_0x20b588,'subUnitId':_0x2dd5ed});}[_0x1833dd(0xe1)](_0x2d0407){const _0x5698af=_0x1833dd;this[_0x5698af(0x163)][_0x5698af(0x15a)](_0x2d0407),this['_change$'][_0x5698af(0xcb)]({'unitId':_0x2d0407});}[_0x1833dd(0x146)](_0x4df28e){const _0x3daad6=_0x1833dd;let _0x19632c=this[_0x3daad6(0x163)][_0x3daad6(0x136)](_0x4df28e),_0x590179={};return _0x19632c==null||_0x19632c['forEach']((_0x340ed5,_0x4e84e5)=>{_0x590179[_0x4e84e5]={'outlineList':[..._0x340ed5]};}),_0x590179;}[_0x1833dd(0x143)](_0x2bb53b,_0x210b6f){const _0x11dac2=_0x1833dd;let _0x461031=new Map();Object[_0x11dac2(0x150)](_0x210b6f)['forEach'](([_0x3737cf,_0x48bdb4])=>{const _0x7fd109=_0x11dac2;var _0x5a6357;_0x461031[_0x7fd109(0x171)](_0x3737cf,[...(_0x5a6357=_0x48bdb4[_0x7fd109(0xca)])==null?[]:_0x5a6357]);}),this['_outlines'][_0x11dac2(0x171)](_0x2bb53b,_0x461031),this[_0x11dac2(0x148)][_0x11dac2(0xcb)]({'unitId':_0x2bb53b});}[_0x1833dd(0xdc)](){const _0x422b41=_0x1833dd;super[_0x422b41(0xdc)](),this['_outlines'][_0x422b41(0x10e)](),this[_0x422b41(0x148)][_0x422b41(0x145)]();}[_0x1833dd(0x108)](_0x2386d5){const _0x58b171=_0x1833dd;let _0x1e22d0=this[_0x58b171(0x163)][_0x58b171(0x136)](_0x2386d5);return _0x1e22d0||(_0x1e22d0=new Map(),this['_outlines'][_0x58b171(0x171)](_0x2386d5,_0x1e22d0)),_0x1e22d0;}},F=class extends _0xe18af3{constructor(..._0x35fab9){const _0x38ead9=_0x1833dd;super(..._0x35fab9),N(this,'_error$',new _0x54b96e()),N(this,_0x38ead9(0x104),this['_error$'][_0x38ead9(0x16e)]());}[_0x1833dd(0x174)](_0x4fdeaa){const _0x429673=_0x1833dd;this[_0x429673(0x139)][_0x429673(0xcb)](_0x4fdeaa);}[_0x1833dd(0xdc)](){const _0xe9dcb7=_0x1833dd;super[_0xe9dcb7(0xdc)](),this[_0xe9dcb7(0x139)][_0xe9dcb7(0x145)]();}};const I={'id':_0x1833dd(0xdb),'type':_0x5c5c9a['MUTATION'],'handler':(_0x10f68e,_0x36eb29)=>{const _0xee29f4=_0x1833dd;let _0x3d976f=_0x10f68e[_0xee29f4(0x136)](P),_0x2caae0=_0x3d976f[_0xee29f4(0xf3)](_0x36eb29[_0xee29f4(0x161)],_0x36eb29[_0xee29f4(0x156)]);return _0x3d976f[_0xee29f4(0x14d)](_0x36eb29['unitId'],_0x36eb29[_0xee29f4(0x156)],be(_0x2caae0,_0x36eb29[_0xee29f4(0x112)])),!0x0;}},L={'id':_0x1833dd(0x142),'type':_0x5c5c9a[_0x1833dd(0xe2)],'handler':(_0x100609,_0x166a17)=>{const _0x3048c4=_0x1833dd;let _0x1f5bf9=_0x100609['get'](P),_0x1ee680=_0x1f5bf9[_0x3048c4(0xf3)](_0x166a17[_0x3048c4(0x161)],_0x166a17['subUnitId']);return _0x1f5bf9[_0x3048c4(0x14d)](_0x166a17[_0x3048c4(0x161)],_0x166a17[_0x3048c4(0x156)],_0x1ee680[_0x3048c4(0x172)](_0x188207=>_0x188207['id']!==_0x166a17[_0x3048c4(0xce)])),!0x0;}};function R(_0x2fda71,_0x349911,_0x29e7e2){let _0x281a8d=Le(_0x2fda71);return!_0x281a8d||_0x281a8d['permissionCheckWithoutRange']({'workbookTypes':[_0x9f8f44],'worksheetTypes':[_0x1b0ba6]},_0x349911,_0x29e7e2);}function Ie(_0x36e7ce,_0x4a701b,_0xc6dea1){const _0x243661=_0x1833dd;var _0x78c432;let _0x61c5ba=Re(_0x36e7ce);return((_0x78c432=_0x61c5ba==null?void 0x0:_0x61c5ba[_0x243661(0x168)])==null?_0x401f9f(null):_0x78c432)[_0x243661(0xfe)](_0x316122(0x64),_0x308174(null),_0x411084(()=>R(_0x36e7ce,_0x4a701b,_0xc6dea1)));}function Le(_0x559fec){const _0x943267=_0x1833dd;if(typeof _0x559fec['has']==_0x943267(0x132)&&!_0x559fec['has'](_0x12b494))return null;try{return _0x559fec[_0x943267(0x136)](_0x12b494);}catch{return null;}}function Re(_0x2fbdf9){const _0x3d954d=_0x1833dd;if(typeof _0x2fbdf9[_0x3d954d(0x12a)]=='function'&&!_0x2fbdf9[_0x3d954d(0x12a)](_0x19652f))return null;try{return _0x2fbdf9[_0x3d954d(0x136)](_0x19652f);}catch{return null;}}const z={'id':_0x1833dd(0x173),'type':_0x5c5c9a[_0x1833dd(0xef)],'handler':(_0x27fad4,_0x2579a9)=>{const _0x98dfba=_0x1833dd;var _0x470e2b,_0x125aff;if(!_0x2579a9)return!0x1;let _0x5bf76f=_0xe99487(_0x27fad4[_0x98dfba(0x136)](_0x1aff8c),_0x2579a9);if(!_0x5bf76f)return!0x1;let {unitId:_0x126359,subUnitId:_0x3923a7,worksheet:_0x575864}=_0x5bf76f;if(!R(_0x27fad4,_0x126359,_0x3923a7))return!0x1;let _0x59a646=_0x27fad4[_0x98dfba(0x136)](P),_0x381d8f={'id':'dimension-outline-'+_0x3e222e(0x6),'unitId':_0x126359,'subUnitId':_0x3923a7,'axis':_0x2579a9[_0x98dfba(0xf7)],'start':_0x2579a9[_0x98dfba(0x16d)],'end':_0x2579a9[_0x98dfba(0x165)],'collapsed':!0x1},_0x2ea394=_0x2579a9['axis']===_0x98dfba(0x134)?_0x575864[_0x98dfba(0x12d)]():_0x575864['getColumnCount'](),_0x167039=_0x59a646[_0x98dfba(0xf3)](_0x126359,_0x3923a7),_0x3197a4=xe(_0x167039,_0x381d8f),_0x436cfa=(_0x470e2b=_0x3197a4==null?void 0x0:_0x3197a4[_0x98dfba(0x155)])==null?[]:_0x470e2b,_0xa21696=(_0x125aff=_0x3197a4==null?void 0x0:_0x3197a4['mergedOutline'])==null?_0x381d8f:_0x125aff,_0x3e7009=D(_0x3197a4?_0x167039[_0x98dfba(0x172)](_0x1308fe=>!_0x436cfa[_0x98dfba(0x113)](_0x90a477=>_0x90a477['id']===_0x1308fe['id'])):_0x167039,_0xa21696,{'maxIndex':_0x2ea394});if(!_0x3e7009[_0x98dfba(0x106)]){var _0xdb6c7a;return _0x27fad4[_0x98dfba(0x136)](F)[_0x98dfba(0x174)]({'reason':(_0xdb6c7a=_0x3e7009[_0x98dfba(0xe5)])==null?'unknown':_0xdb6c7a,'commandId':z['id'],'unitId':_0x126359,'subUnitId':_0x3923a7,'axis':_0x2579a9[_0x98dfba(0xf7)],'outlineId':_0xa21696['id']}),!0x1;}let _0x359ac3=[..._0x436cfa[_0x98dfba(0x10c)](_0x8fedd3=>({'id':L['id'],'params':{'unitId':_0x126359,'subUnitId':_0x3923a7,'outlineId':_0x8fedd3['id']}})),{'id':I['id'],'params':{'unitId':_0x126359,'subUnitId':_0x3923a7,'outline':_0xa21696}}],_0x58f422=[{'id':L['id'],'params':{'unitId':_0x126359,'subUnitId':_0x3923a7,'outlineId':_0xa21696['id']}},..._0x436cfa['map'](_0x3e26f8=>({'id':I['id'],'params':{'unitId':_0x126359,'subUnitId':_0x3923a7,'outline':_0x3e26f8}}))];return _0x1fddcb(_0x359ac3,_0x27fad4[_0x98dfba(0x136)](_0xb641c0))[_0x98dfba(0xd6)]?(_0x27fad4['get'](_0x50b520)['pushUndoRedo']({'unitID':_0x126359,'undoMutations':_0x58f422,'redoMutations':_0x359ac3}),!0x0):!0x1;}},B={'id':_0x1833dd(0xf4),'type':_0x5c5c9a['MUTATION'],'handler':(_0x400b20,_0x40511d)=>{const _0x700662=_0x1833dd;let _0x3f7a08=_0x400b20[_0x700662(0x136)](P),_0x2e2283=_0x3f7a08[_0x700662(0xf3)](_0x40511d[_0x700662(0x161)],_0x40511d[_0x700662(0x156)]);return _0x3f7a08[_0x700662(0x14d)](_0x40511d[_0x700662(0x161)],_0x40511d[_0x700662(0x156)],Se(_0x2e2283,_0x40511d)),!0x0;}},V={'id':_0x1833dd(0xdf),'type':_0x5c5c9a[_0x1833dd(0xef)],'handler':(_0x5849d7,_0x2f47eb)=>{const _0x5c0842=_0x1833dd;if(!_0x2f47eb)return!0x1;let _0x50c54b=_0xe99487(_0x5849d7[_0x5c0842(0x136)](_0x1aff8c),_0x2f47eb);if(!_0x50c54b)return!0x1;let {unitId:_0x4254de,subUnitId:_0x29f035}=_0x50c54b;if(!R(_0x5849d7,_0x4254de,_0x29f035))return!0x1;let _0x51dd1e={'unitId':_0x4254de,'subUnitId':_0x29f035,'axis':_0x2f47eb['axis'],'start':_0x2f47eb[_0x5c0842(0x16d)],'end':_0x2f47eb[_0x5c0842(0x165)]},_0x279193=_0x5849d7['get'](P)[_0x5c0842(0xf3)](_0x4254de,_0x29f035)[_0x5c0842(0x172)](_0x42ffbe=>T(_0x42ffbe,_0x51dd1e)&&_0x42ffbe[_0x5c0842(0x16d)]>=_0x2f47eb['start']&&_0x42ffbe[_0x5c0842(0x165)]<=_0x2f47eb[_0x5c0842(0x165)]);if(_0x279193[_0x5c0842(0x123)]===0x0)return _0x5849d7[_0x5c0842(0x136)](F)[_0x5c0842(0x174)]({'reason':_0x5c0842(0x14f),'commandId':V['id'],'unitId':_0x4254de,'subUnitId':_0x29f035,'axis':_0x2f47eb[_0x5c0842(0xf7)]}),!0x1;let _0x58cd08=[{'id':B['id'],'params':{..._0x51dd1e,'removedOutlineIds':_0x279193[_0x5c0842(0x10c)](_0xdf42d=>_0xdf42d['id'])}}],_0x36cc80=_0x279193['map'](_0x4bcec1=>({'id':I['id'],'params':{'unitId':_0x4254de,'subUnitId':_0x29f035,'outline':_0x4bcec1}}));return _0x1fddcb(_0x58cd08,_0x5849d7[_0x5c0842(0x136)](_0xb641c0))[_0x5c0842(0xd6)]?(_0x5849d7[_0x5c0842(0x136)](_0x50b520)[_0x5c0842(0xd7)]({'unitID':_0x4254de,'undoMutations':_0x36cc80,'redoMutations':_0x58cd08}),!0x0):!0x1;}},ze={'id':_0x1833dd(0x138),'type':_0x5c5c9a[_0x1833dd(0xef)],'handler':(_0x22a3a2,_0xe772df)=>{const _0x49ce72=_0x1833dd;if(!_0xe772df)return!0x1;let _0x359c99=_0xe99487(_0x22a3a2[_0x49ce72(0x136)](_0x1aff8c),_0xe772df);if(!_0x359c99)return!0x1;let {unitId:_0x5840c5,subUnitId:_0x1a5502}=_0x359c99;if(!R(_0x22a3a2,_0x5840c5,_0x1a5502))return!0x1;let _0x405ce2=_0x22a3a2[_0x49ce72(0x136)](P)[_0x49ce72(0xf3)](_0x5840c5,_0x1a5502)['find'](_0x2a9509=>_0x2a9509['id']===_0xe772df[_0x49ce72(0xce)]);if(!_0x405ce2)return!0x1;let _0x3256dc=[{'id':L['id'],'params':{'unitId':_0x5840c5,'subUnitId':_0x1a5502,'outlineId':_0x405ce2['id'],'outline':_0x405ce2}}],_0x5b270f=[{'id':I['id'],'params':{'unitId':_0x5840c5,'subUnitId':_0x1a5502,'outline':_0x405ce2}}];return _0x1fddcb(_0x3256dc,_0x22a3a2[_0x49ce72(0x136)](_0xb641c0))['result']?(_0x22a3a2[_0x49ce72(0x136)](_0x50b520)[_0x49ce72(0xd7)]({'unitID':_0x5840c5,'undoMutations':_0x5b270f,'redoMutations':_0x3256dc}),!0x0):!0x1;}},H={'id':'sheet.mutation.set-dimension-outline-collapsed','type':_0x5c5c9a[_0x1833dd(0xe2)],'handler':(_0x102bf4,_0x486847)=>{const _0x4d9906=_0x1833dd;let _0x5e58bc=_0x102bf4['get'](P),_0x3aefb7=_0x5e58bc[_0x4d9906(0xf3)](_0x486847[_0x4d9906(0x161)],_0x486847[_0x4d9906(0x156)]),_0x54557e=_0x3aefb7[_0x4d9906(0xfa)](_0x7454a8=>_0x7454a8['id']===_0x486847['outlineId']);return _0x54557e&&_0x5e58bc['setOutlines'](_0x486847[_0x4d9906(0x161)],_0x486847[_0x4d9906(0x156)],_0x3aefb7[_0x4d9906(0x10c)](_0x12ca28=>_0x12ca28[_0x4d9906(0x161)]!==_0x54557e['unitId']||_0x12ca28[_0x4d9906(0x156)]!==_0x54557e[_0x4d9906(0x156)]||_0x12ca28[_0x4d9906(0xf7)]!==_0x54557e[_0x4d9906(0xf7)]||_0x12ca28[_0x4d9906(0x16d)]!==_0x54557e[_0x4d9906(0x16d)]||_0x12ca28[_0x4d9906(0x165)]!==_0x54557e['end']?_0x12ca28:{..._0x12ca28,'collapsed':_0x486847[_0x4d9906(0xd0)]})),!0x0;}};function Be(_0x237573,_0x4f3e28,_0x278362,_0x189e18){const _0x4e70e4=_0x1833dd;return _0x237573==='row'?{'startRow':_0x4f3e28,'endRow':_0x278362,'startColumn':0x0,'endColumn':_0x189e18[_0x4e70e4(0xf6)]()-0x1}:{'startRow':0x0,'endRow':_0x189e18[_0x4e70e4(0x12d)]()-0x1,'startColumn':_0x4f3e28,'endColumn':_0x278362};}function Ve(_0x1edccf){return _0x1edccf==='row'?_0x33d7d0['id']:_0x58466f['id'];}function He(_0x329786){return _0x329786==='row'?_0x39df2b['id']:_0x13e49f['id'];}function Ue(_0x4045a8,_0x323bdc,_0x4526b4,_0x565eb7){const _0x5530f7=_0x1833dd;let _0x37aa78=_0x323bdc?[Be(_0x4045a8[_0x5530f7(0xf7)],_0x4045a8['start'],_0x4045a8[_0x5530f7(0x165)],_0x4526b4)]:We(_0x4045a8,_0x565eb7,_0x4526b4),_0x1a1f4d=_0x323bdc?Ve(_0x4045a8['axis']):He(_0x4045a8['axis']);return[{'id':H['id'],'params':{'unitId':_0x4045a8[_0x5530f7(0x161)],'subUnitId':_0x4045a8[_0x5530f7(0x156)],'outlineId':_0x4045a8['id'],'outline':_0x4045a8,'collapsed':_0x323bdc}},..._0x37aa78[_0x5530f7(0x10c)](_0x55525e=>({'id':_0x1a1f4d,'params':{'unitId':_0x4045a8[_0x5530f7(0x161)],'subUnitId':_0x4045a8[_0x5530f7(0x156)],'ranges':[_0x55525e],'dimensionOutlineId':_0x4045a8['id']}}))];}function We(_0x1ebf92,_0x33e751,_0x3a5194){const _0x24b0d2=_0x1833dd;let _0x4195d2=Ce(_0x33e751['map'](_0x19ad9e=>Ge(_0x19ad9e,_0x1ebf92)?{..._0x19ad9e,'collapsed':!0x1}:_0x19ad9e),_0x1ebf92[_0x24b0d2(0x161)],_0x1ebf92[_0x24b0d2(0x156)],_0x1ebf92[_0x24b0d2(0xf7)]);return Ke({'start':_0x1ebf92[_0x24b0d2(0x16d)],'end':_0x1ebf92[_0x24b0d2(0x165)]},_0x4195d2)[_0x24b0d2(0x10c)](_0x1c278b=>Be(_0x1ebf92['axis'],_0x1c278b[_0x24b0d2(0x16d)],_0x1c278b['end'],_0x3a5194));}function Ge(_0x36ae41,_0x327f82){const _0x11df8d=_0x1833dd;return _0x36ae41['unitId']===_0x327f82['unitId']&&_0x36ae41['subUnitId']===_0x327f82[_0x11df8d(0x156)]&&_0x36ae41[_0x11df8d(0xf7)]===_0x327f82['axis']&&_0x36ae41['start']===_0x327f82[_0x11df8d(0x16d)]&&_0x36ae41[_0x11df8d(0x165)]===_0x327f82['end'];}function Ke(_0x157202,_0x7aebd5){const _0x49d1ca=_0x1833dd;let _0x12c17d=_0x157202['start'],_0x3521e1=[];for(let _0x7bc666 of _0x7aebd5)if(!(_0x7bc666['end']<_0x12c17d||_0x7bc666['start']>_0x157202[_0x49d1ca(0x165)])&&(_0x7bc666[_0x49d1ca(0x16d)]>_0x12c17d&&_0x3521e1[_0x49d1ca(0x10b)]({'start':_0x12c17d,'end':Math[_0x49d1ca(0x14c)](_0x7bc666[_0x49d1ca(0x16d)]-0x1,_0x157202[_0x49d1ca(0x165)])}),_0x12c17d=Math[_0x49d1ca(0x154)](_0x12c17d,_0x7bc666[_0x49d1ca(0x165)]+0x1),_0x12c17d>_0x157202['end']))break;return _0x12c17d<=_0x157202[_0x49d1ca(0x165)]&&_0x3521e1[_0x49d1ca(0x10b)]({'start':_0x12c17d,'end':_0x157202['end']}),_0x3521e1;}const qe={'id':_0x1833dd(0x166),'type':_0x5c5c9a[_0x1833dd(0xef)],'handler':(_0x5a8ef2,_0x71409a)=>{const _0xe7cc66=_0x1833dd;if(!_0x71409a)return!0x1;let _0x203a6c=_0xe99487(_0x5a8ef2[_0xe7cc66(0x136)](_0x1aff8c),_0x71409a);if(!_0x203a6c)return!0x1;let {unitId:_0x5da4c3,subUnitId:_0x1bee0a,worksheet:_0x382fc5}=_0x203a6c;if(!R(_0x5a8ef2,_0x5da4c3,_0x1bee0a))return!0x1;let _0x380d16=_0x5a8ef2[_0xe7cc66(0x136)](P)[_0xe7cc66(0xf3)](_0x5da4c3,_0x1bee0a),_0x58a1f2=_0x380d16['find'](_0x167d90=>_0x167d90['id']===_0x71409a[_0xe7cc66(0xce)]);if(!_0x58a1f2||_0x58a1f2['collapsed']===_0x71409a[_0xe7cc66(0xd0)])return!0x1;let _0x21dbac=Ue(_0x58a1f2,_0x71409a[_0xe7cc66(0xd0)],_0x382fc5,_0x380d16),_0x1f95e5=Ue(_0x58a1f2,!_0x71409a[_0xe7cc66(0xd0)],_0x382fc5,_0x380d16);return _0x1fddcb(_0x21dbac,_0x5a8ef2[_0xe7cc66(0x136)](_0xb641c0))['result']?(_0x5a8ef2[_0xe7cc66(0x136)](_0x50b520)[_0xe7cc66(0xd7)]({'unitID':_0x5da4c3,'undoMutations':_0x1f95e5,'redoMutations':_0x21dbac}),!0x0):!0x1;}},U={'id':_0x1833dd(0x151),'type':_0x5c5c9a[_0x1833dd(0xe2)],'handler':(_0x4c80c1,_0x48a765)=>{const _0x1072ff=_0x1833dd;let _0x43ac67=_0x4c80c1[_0x1072ff(0x136)](P),_0xdce7eb=Je(_0x43ac67['getOutlines'](_0x48a765['unitId'],_0x48a765[_0x1072ff(0x156)]),_0x48a765);return _0x43ac67['setOutlines'](_0x48a765[_0x1072ff(0x161)],_0x48a765[_0x1072ff(0x156)],_0xdce7eb),!0x0;}};function Je(_0x4b5c6c,_0x4c5683){const _0x48eab0=_0x1833dd;switch(_0x4c5683[_0x48eab0(0x14e)]){case _0x48eab0(0xd4):return _0x4c5683[_0x48eab0(0x11c)]?Ye(_0x4b5c6c,_0x4c5683):O(_0x4b5c6c,_0x4c5683);case'delete':return k(_0x4b5c6c,_0x4c5683);case _0x48eab0(0x137):return A(_0x4b5c6c,_0x4c5683);}}function Ye(_0x2986ea,_0x1907ae){const _0x1642de=_0x1833dd;return[..._0x2986ea[_0x1642de(0x172)](_0x3043c7=>_0x3043c7[_0x1642de(0x161)]!==_0x1907ae[_0x1642de(0x161)]||_0x3043c7[_0x1642de(0x156)]!==_0x1907ae['subUnitId']||_0x3043c7['axis']!==_0x1907ae[_0x1642de(0xf7)]),..._0x1907ae[_0x1642de(0x11c)]];}const W='SHEET_OUTLINE_PLUGIN';var Xe=_0x1833dd(0xea),Ze=_0x1833dd(0x15e);const Qe={};function G(_0x40a9a0,_0x389e9b){return function(_0x380f0c,_0xf6d2dd){_0x389e9b(_0x380f0c,_0xf6d2dd,_0x40a9a0);};}function K(_0x5b38cd,_0x30fd85,_0x256ee9,_0x365fd1){const _0x44a459=_0x1833dd;var _0x8c516b=arguments[_0x44a459(0x123)],_0x149387=_0x8c516b<0x3?_0x30fd85:_0x365fd1===null?_0x365fd1=Object[_0x44a459(0x118)](_0x30fd85,_0x256ee9):_0x365fd1,_0x2c34d0;if(typeof Reflect==_0x44a459(0xcd)&&typeof Reflect[_0x44a459(0x11f)]==_0x44a459(0x132))_0x149387=Reflect[_0x44a459(0x11f)](_0x5b38cd,_0x30fd85,_0x256ee9,_0x365fd1);else{for(var _0x20f72d=_0x5b38cd[_0x44a459(0x123)]-0x1;_0x20f72d>=0x0;_0x20f72d--)(_0x2c34d0=_0x5b38cd[_0x20f72d])&&(_0x149387=(_0x8c516b<0x3?_0x2c34d0(_0x149387):_0x8c516b>0x3?_0x2c34d0(_0x30fd85,_0x256ee9,_0x149387):_0x2c34d0(_0x30fd85,_0x256ee9))||_0x149387);}return _0x8c516b>0x3&&_0x149387&&Object['defineProperty'](_0x30fd85,_0x256ee9,_0x149387),_0x149387;}const q={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let J=class extends _0xe18af3{constructor(_0x4a5262,_0x51b86f,_0x292431,_0x16eb6b){const _0x10c782=_0x1833dd;super(),this[_0x10c782(0x152)]=_0x4a5262,this[_0x10c782(0x158)]=_0x51b86f,this[_0x10c782(0x167)]=_0x292431,this[_0x10c782(0x13a)]=_0x16eb6b,this[_0x10c782(0xe0)]();}['_initCommandInterceptor'](){const _0x5ed12b=_0x1833dd;this[_0x5ed12b(0x101)](this['_sheetInterceptorService'][_0x5ed12b(0x110)]({'getMutations':_0x262994=>$e(_0x262994,(_0x3ca100,_0x5d6fed)=>this['_sheetsOutlineModel'][_0x5ed12b(0xf3)](_0x3ca100,_0x5d6fed),this[_0x5ed12b(0xfc)](_0x262994[_0x5ed12b(0x164)]),_0x1db6ee=>this['_sheetsOutlineErrorService'][_0x5ed12b(0x174)](_0x1db6ee))}));}[_0x1833dd(0xfc)](_0x3e581c){const _0x4dd9a3=_0x1833dd;let _0x216666=_0x3e581c,_0x30965e=_0x216666!=null&&_0x216666[_0x4dd9a3(0x161)]?this[_0x4dd9a3(0x152)][_0x4dd9a3(0xed)](_0x216666[_0x4dd9a3(0x161)],_0x84cb88[_0x4dd9a3(0x13d)]):this[_0x4dd9a3(0x152)][_0x4dd9a3(0x120)](_0x84cb88[_0x4dd9a3(0x13d)]);if(!_0x30965e)return;let _0x33b8d6=_0x216666!=null&&_0x216666[_0x4dd9a3(0x156)]?_0x30965e[_0x4dd9a3(0x153)](_0x216666[_0x4dd9a3(0x156)]):_0x30965e[_0x4dd9a3(0xe4)]();if(_0x33b8d6)return{'unitId':_0x30965e['getUnitId'](),'subUnitId':_0x33b8d6[_0x4dd9a3(0x100)]()};}};J=K([G(0x0,_0x1aff8c),G(0x1,_0x140d65(_0x1fddbb)),G(0x2,_0x140d65(P)),G(0x3,_0x140d65(F))],J);function $e(_0x31c407,_0x2ce1b0,_0x46a92c,_0x474c61){const _0x3db9b0=_0x1833dd;let _0x481f46=tt(_0x31c407,_0x46a92c);if(!_0x481f46)return Z();let _0x4be239=_0x2ce1b0(_0x481f46[_0x3db9b0(0x161)],_0x481f46[_0x3db9b0(0x156)]);if(!_0x4be239[_0x3db9b0(0x113)](_0x59273d=>_0x59273d[_0x3db9b0(0xf7)]===_0x481f46[_0x3db9b0(0xf7)]))return Z();et(_0x4be239,_0x481f46,_0x31c407['id'],_0x474c61);let _0x5d859d=it(_0x481f46,_0x4be239);return{'redos':[{'id':U['id'],'params':_0x481f46}],'undos':[{'id':U['id'],'params':_0x5d859d}],'preRedos':[],'preUndos':[]};}function et(_0x42067d,_0x588b0d,_0x407253,_0x33cea9){const _0x3a2764=_0x1833dd;try{switch(_0x588b0d[_0x3a2764(0x14e)]){case'insert':O(_0x42067d,_0x588b0d);break;case _0x3a2764(0x15a):k(_0x42067d,_0x588b0d);break;case'move':A(_0x42067d,_0x588b0d);break;}}catch(_0x10f2c3){throw _0x33cea9==null||_0x33cea9({'reason':ve(_0x10f2c3),'commandId':_0x407253,'unitId':_0x588b0d['unitId'],'subUnitId':_0x588b0d[_0x3a2764(0x156)],'axis':_0x588b0d[_0x3a2764(0xf7)],'outlineId':ye(_0x10f2c3)}),new _0x548967(_0x10f2c3 instanceof Error?_0x10f2c3['message']:_0x3a2764(0xff));}}function tt(_0xc9a5a3,_0x48ea74){const _0x2fb183=_0x1833dd;switch(_0xc9a5a3['id']){case _0x16cb71['id']:return Y(_0xc9a5a3[_0x2fb183(0x164)],'row',_0x48ea74);case _0x45efe8['id']:return Y(_0xc9a5a3[_0x2fb183(0x164)],_0x2fb183(0x116),_0x48ea74);case _0x367b42['id']:return nt(_0xc9a5a3['params'],_0x2fb183(0x134),_0x48ea74);case _0x4c0222['id']:return nt(_0xc9a5a3['params'],'column',_0x48ea74);case _0xc01a4['id']:return rt(_0xc9a5a3[_0x2fb183(0x164)],_0x2fb183(0x134),_0x48ea74);case _0x29ddad['id']:return rt(_0xc9a5a3['params'],_0x2fb183(0x116),_0x48ea74);default:return null;}}function Y(_0x306b33,_0x2c895e,_0x10e99f){const _0x2545ff=_0x1833dd;let _0x3275ee=X(_0x306b33,_0x10e99f);if(!(_0x306b33!=null&&_0x306b33[_0x2545ff(0x16a)])||!_0x3275ee)return null;let _0x10e387=_0x2c895e===_0x2545ff(0x134)?_0x306b33[_0x2545ff(0x16a)][_0x2545ff(0x160)]:_0x306b33[_0x2545ff(0x16a)][_0x2545ff(0xe8)],_0x48cd9c=_0x2c895e===_0x2545ff(0x134)?_0x306b33[_0x2545ff(0x16a)][_0x2545ff(0x131)]:_0x306b33[_0x2545ff(0x16a)][_0x2545ff(0x141)];return{..._0x3275ee,'axis':_0x2c895e,'type':_0x2545ff(0xd4),'index':_0x10e387,'count':_0x48cd9c-_0x10e387+0x1};}function nt(_0x39e38d,_0x451c1b,_0xf26159){const _0x41702b=_0x1833dd;let _0x2414c7=X(_0x39e38d,_0xf26159);if(!(_0x39e38d!=null&&_0x39e38d[_0x41702b(0x16a)])||!_0x2414c7)return null;let _0x31de46=_0x451c1b==='row'?_0x39e38d[_0x41702b(0x16a)][_0x41702b(0x160)]:_0x39e38d[_0x41702b(0x16a)]['startColumn'],_0x1d5915=_0x451c1b===_0x41702b(0x134)?_0x39e38d[_0x41702b(0x16a)][_0x41702b(0x131)]:_0x39e38d[_0x41702b(0x16a)]['endColumn'];return{..._0x2414c7,'axis':_0x451c1b,'type':_0x41702b(0x15a),'start':_0x31de46,'end':_0x1d5915};}function rt(_0x45c6b5,_0x47fb45,_0x7fb971){const _0x22d0c6=_0x1833dd;let _0x22fec5=X(_0x45c6b5,_0x7fb971);if(!(_0x45c6b5!=null&&_0x45c6b5[_0x22d0c6(0x121)])||!_0x45c6b5[_0x22d0c6(0x133)]||!_0x22fec5)return null;let _0x4b163d=_0x47fb45===_0x22d0c6(0x134)?_0x45c6b5[_0x22d0c6(0x121)][_0x22d0c6(0x160)]:_0x45c6b5[_0x22d0c6(0x121)]['startColumn'],_0x3a6c97=_0x47fb45===_0x22d0c6(0x134)?_0x45c6b5[_0x22d0c6(0x121)][_0x22d0c6(0x131)]:_0x45c6b5[_0x22d0c6(0x121)][_0x22d0c6(0x141)],_0x5a68fb=_0x47fb45==='row'?_0x45c6b5['toRange'][_0x22d0c6(0x160)]:_0x45c6b5[_0x22d0c6(0x133)][_0x22d0c6(0xe8)];return{..._0x22fec5,'axis':_0x47fb45,'type':_0x22d0c6(0x137),'sourceStart':_0x4b163d,'sourceEnd':_0x3a6c97,'destinationIndex':_0x5a68fb};}function it(_0x2b0653,_0x3fb20c){const _0x15200b=_0x1833dd;switch(_0x2b0653['type']){case'insert':return{'unitId':_0x2b0653[_0x15200b(0x161)],'subUnitId':_0x2b0653['subUnitId'],'axis':_0x2b0653[_0x15200b(0xf7)],'type':_0x15200b(0x15a),'start':_0x2b0653[_0x15200b(0xf8)],'end':_0x2b0653[_0x15200b(0xf8)]+_0x2b0653[_0x15200b(0x109)]-0x1};case'delete':return{'unitId':_0x2b0653[_0x15200b(0x161)],'subUnitId':_0x2b0653['subUnitId'],'axis':_0x2b0653[_0x15200b(0xf7)],'type':_0x15200b(0xd4),'index':_0x2b0653[_0x15200b(0x16d)],'count':_0x2b0653[_0x15200b(0x165)]-_0x2b0653['start']+0x1,'restoreOutlines':_0x3fb20c[_0x15200b(0x172)](_0x1717c4=>_0x1717c4[_0x15200b(0x161)]===_0x2b0653[_0x15200b(0x161)]&&_0x1717c4[_0x15200b(0x156)]===_0x2b0653[_0x15200b(0x156)]&&_0x1717c4[_0x15200b(0xf7)]===_0x2b0653[_0x15200b(0xf7)])};case _0x15200b(0x137):return at(_0x2b0653);}}function at(_0x2b736e){const _0x313d25=_0x1833dd;let _0x483720=_0x2b736e[_0x313d25(0xcf)]-_0x2b736e[_0x313d25(0xd2)]+0x1;return _0x2b736e[_0x313d25(0xde)]>=_0x2b736e[_0x313d25(0xd2)]&&_0x2b736e['destinationIndex']<=_0x2b736e[_0x313d25(0xcf)]+0x1?{..._0x2b736e}:_0x2b736e[_0x313d25(0xde)]>_0x2b736e[_0x313d25(0xcf)]+0x1?{..._0x2b736e,'sourceStart':_0x2b736e[_0x313d25(0xde)]-_0x483720,'sourceEnd':_0x2b736e[_0x313d25(0xde)]-0x1,'destinationIndex':_0x2b736e[_0x313d25(0xd2)]}:{..._0x2b736e,'sourceStart':_0x2b736e[_0x313d25(0xde)],'sourceEnd':_0x2b736e[_0x313d25(0xde)]+_0x483720-0x1,'destinationIndex':_0x2b736e['sourceEnd']+0x1};}function X(_0xa54242,_0x54aef0){const _0x1bb91a=_0x1833dd;var _0x1315f8,_0x351c5f;let _0x22ba3d=(_0x1315f8=_0xa54242==null?void 0x0:_0xa54242[_0x1bb91a(0x161)])==null?_0x54aef0==null?void 0x0:_0x54aef0[_0x1bb91a(0x161)]:_0x1315f8,_0x4a4673=(_0x351c5f=_0xa54242==null?void 0x0:_0xa54242['subUnitId'])==null?_0x54aef0==null?void 0x0:_0x54aef0[_0x1bb91a(0x156)]:_0x351c5f;return _0x22ba3d&&_0x4a4673?{'unitId':_0x22ba3d,'subUnitId':_0x4a4673}:null;}function Z(){const _0x4934a3=_0x1833dd;var _0x2c1cf5,_0x367c38;return{'redos':[...q[_0x4934a3(0x13b)]],'undos':[...q[_0x4934a3(0x15f)]],'preRedos':[...(_0x2c1cf5=q[_0x4934a3(0x13f)])==null?[]:_0x2c1cf5],'preUndos':[...(_0x367c38=q[_0x4934a3(0x170)])==null?[]:_0x367c38]};}let Q=class extends _0xe18af3{constructor(_0x4a48b0,_0x3e7950){const _0x46f480=_0x1833dd;super(),this['_resourceManagerService']=_0x4a48b0,this[_0x46f480(0x167)]=_0x3e7950,this['_initResource']();}['_initResource'](){const _0x5bb432=_0x1833dd;this[_0x5bb432(0x101)](this[_0x5bb432(0x16f)][_0x5bb432(0x11d)]({'pluginName':W,'businesses':[_0x84cb88[_0x5bb432(0x13d)]],'toJson':_0x4501b9=>JSON[_0x5bb432(0xf9)](this[_0x5bb432(0x167)][_0x5bb432(0x146)](_0x4501b9)),'parseJson':_0x16ec22=>JSON[_0x5bb432(0xdd)](_0x16ec22),'onLoad':(_0x2f9549,_0x4bcc0a)=>this[_0x5bb432(0x167)][_0x5bb432(0x143)](_0x2f9549,_0x4bcc0a),'onUnLoad':_0xf5acfd=>this[_0x5bb432(0x167)][_0x5bb432(0xe1)](_0xf5acfd)}));}};Q=K([G(0x0,_0x4dc04c),G(0x1,_0x140d65(P))],Q);let $=class extends _0x26df20{constructor(_0x11b4b5=Qe,_0x3e4835,_0x2018ff,_0xa56fcd){const _0x2599e9=_0x1833dd;super(),this[_0x2599e9(0xec)]=_0x11b4b5,this[_0x2599e9(0x119)]=_0x3e4835,this[_0x2599e9(0xd5)]=_0x2018ff,this[_0x2599e9(0x103)]=_0xa56fcd;let {..._0x399150}=_0x25c148({},Qe,this[_0x2599e9(0xec)]);this[_0x2599e9(0x103)][_0x2599e9(0x147)](_0x2599e9(0xe9),_0x399150);}['onStarting'](){const _0x2c8c79=_0x1833dd;this[_0x2c8c79(0x119)]['add']([P]),this[_0x2c8c79(0x119)][_0x2c8c79(0xd8)]([F]),this[_0x2c8c79(0x119)][_0x2c8c79(0xd8)]([Q]),this[_0x2c8c79(0x119)]['add']([J]),this['_initRegisterCommand'](),this[_0x2c8c79(0x119)][_0x2c8c79(0x136)](P),this[_0x2c8c79(0x119)][_0x2c8c79(0x136)](F),this[_0x2c8c79(0x119)][_0x2c8c79(0x136)](Q),this['_injector'][_0x2c8c79(0x136)](J);}[_0x1833dd(0x16b)](){const _0x17b9df=_0x1833dd;[z,ze,qe,V][_0x17b9df(0x11a)](_0x52ad44=>{const _0x2b8d7b=_0x17b9df;this[_0x2b8d7b(0x101)](this['_commandService'][_0x2b8d7b(0x12f)](_0x52ad44));}),[I,L,H,B,U]['forEach'](_0x3b552b=>{const _0x519e5c=_0x17b9df;this[_0x519e5c(0x101)](this[_0x519e5c(0xd5)][_0x519e5c(0x12f)](_0x3b552b));});}};N($,_0x1833dd(0x115),W),N($,_0x1833dd(0x10f),Xe),N($,_0x1833dd(0x114),Ze),N($,_0x1833dd(0x14e),_0x84cb88[_0x1833dd(0x13d)]),$=K([_0x517b95(_0x332882,_0x276c49),G(0x1,_0x140d65(_0x1b6645)),G(0x2,_0xb641c0),G(0x3,_0x3f4535)],$);function _0x3a4b(_0x50024a,_0x963284){_0x50024a=_0x50024a-0xc9;const _0x59890a=_0x5989();let _0x3a4b71=_0x59890a[_0x50024a];return _0x3a4b71;}export{z as AddDimensionOutlineCommand,I as AddDimensionOutlineMutation,V as ClearDimensionOutlinesCommand,B as ClearDimensionOutlinesMutation,ge as DimensionOutlineAxis,_e 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,E as buildDimensionOutlineTree,D as canAddDimensionOutline,Ie as getDimensionOutlineViewPermission$,R as hasDimensionOutlineViewPermission,k as transformOutlinesByDelete,O as transformOutlinesByInsert,A as transformOutlinesByMove};
1
+ const _0x1703d8=_0x164c;(function(_0x56ffae,_0x5ef511){const _0x5571c1=_0x164c,_0x39ae9a=_0x56ffae();while(!![]){try{const _0x562f38=-parseInt(_0x5571c1(0x1c2))/0x1+-parseInt(_0x5571c1(0x167))/0x2+-parseInt(_0x5571c1(0x183))/0x3*(parseInt(_0x5571c1(0x198))/0x4)+parseInt(_0x5571c1(0x1e2))/0x5+parseInt(_0x5571c1(0x172))/0x6*(parseInt(_0x5571c1(0x190))/0x7)+-parseInt(_0x5571c1(0x1d9))/0x8+parseInt(_0x5571c1(0x1be))/0x9;if(_0x562f38===_0x5ef511)break;else _0x39ae9a['push'](_0x39ae9a['shift']());}catch(_0x32a4b1){_0x39ae9a['push'](_0x39ae9a['shift']());}}}(_0x1e53,0x3288a));import{CommandType as _0x329af9,CustomCommandExecutionError as _0x28ceef,DependentOn as _0x506a67,Disposable as _0x10d8df,ICommandService as _0x4c43e8,IConfigService as _0x56609c,IPermissionService as _0x2a65dc,IResourceManagerService as _0x45e88b,IUndoRedoService as _0x19aa26,IUniverInstanceService as _0x36fa51,Inject as _0x2daa03,Injector as _0x2a8c4c,Plugin as _0x49bd60,UniverInstanceType as _0x5834f8,generateRandomId as _0x51df55,merge as _0x20ab54,sequenceExecute as _0x4d330d}from'@univerjs/core';import{InsertColCommand as _0x4df60a,InsertRowCommand as _0x4e9e0e,MoveColsCommand as _0x444fb1,MoveRowsCommand as _0x62c221,RemoveColCommand as _0x3813e8,RemoveRowCommand as _0x5df4c1,SetColHiddenMutation as _0xfa707b,SetColVisibleMutation as _0x2035ec,SetRowHiddenMutation as _0x5a22ed,SetRowVisibleMutation as _0x4b3836,SheetInterceptorService as _0x463cc1,SheetPermissionCheckController as _0x828682,UniverSheetsPlugin as _0x3f8d87,WorkbookViewPermission as _0x42d5f1,WorksheetViewPermission as _0x35d90c,getSheetCommandTarget as _0x32af97}from'@univerjs/sheets';import{Subject as _0x55cac1,of as _0x79b388}from'rxjs';import{debounceTime as _0x580117,map as _0x1b12cc,startWith as _0x166b1d}from'rxjs/operators';import{UniverLicensePlugin as _0x2105d7}from'@univerjs-pro/license';let _e=function(_0xc8b290){const _0xe63563=_0x164c;return _0xc8b290[_0xe63563(0x1d7)]='row',_0xc8b290['COLUMN']='column',_0xc8b290;}({}),ve=function(_0x4ae2fc){const _0x5d54f2=_0x164c;return _0x4ae2fc[_0x5d54f2(0x165)]=_0x5d54f2(0x1e9),_0x4ae2fc[_0x5d54f2(0x1d0)]='out-of-bounds',_0x4ae2fc[_0x5d54f2(0x1c8)]=_0x5d54f2(0x16b),_0x4ae2fc[_0x5d54f2(0x160)]=_0x5d54f2(0x176),_0x4ae2fc['MOVE_SPLITS_OUTLINE']=_0x5d54f2(0x1c7),_0x4ae2fc[_0x5d54f2(0x161)]=_0x5d54f2(0x18a),_0x4ae2fc[_0x5d54f2(0x155)]=_0x5d54f2(0x1a8),_0x4ae2fc;}({});var S=class extends Error{constructor(_0x17e12c,_0x57f892,_0x18dde0){const _0x14d427=_0x164c;super(_0x57f892),this[_0x14d427(0x1b6)]=_0x17e12c,this[_0x14d427(0x19b)]=_0x18dde0,this[_0x14d427(0x19a)]=_0x14d427(0x1e7);}};function ye(_0x1a295a){const _0x51fb41=_0x164c;return _0x1a295a instanceof S?_0x1a295a[_0x51fb41(0x1b6)]:_0x1a295a instanceof Error?_0x1a295a[_0x51fb41(0x168)]['includes'](_0x51fb41(0x17b))?_0x51fb41(0x1c7):_0x1a295a[_0x51fb41(0x168)][_0x51fb41(0x17e)]('depth')?_0x51fb41(0x176):_0x1a295a[_0x51fb41(0x168)][_0x51fb41(0x17e)](_0x51fb41(0x14c))?_0x51fb41(0x16b):_0x1a295a[_0x51fb41(0x168)][_0x51fb41(0x17e)](_0x51fb41(0x1c5))?'invalid-range':_0x51fb41(0x1a8):'unknown';}function be(_0x538528){const _0x4f21f6=_0x164c;return _0x538528 instanceof S?_0x538528[_0x4f21f6(0x19b)]:void 0x0;}const C=0x2**0x35-0x1;function w(_0x5116e8,_0x1c57bd){const _0x1be9d6=_0x164c;return _0x5116e8[_0x1be9d6(0x16c)]===_0x1c57bd['unitId']&&_0x5116e8[_0x1be9d6(0x193)]===_0x1c57bd[_0x1be9d6(0x193)]&&_0x5116e8[_0x1be9d6(0x1a2)]===_0x1c57bd['axis'];}function T(_0x2b7809,_0x59d2ac={}){const _0x2995d4=_0x164c;let _0xc572b5=_0x59d2ac[_0x2995d4(0x15f)]??0x8,_0x1164fa=new Map();for(let _0x16520 of _0x2b7809){let _0x551d9a=_0x16520[_0x2995d4(0x16c)]+':'+_0x16520[_0x2995d4(0x193)]+':'+_0x16520[_0x2995d4(0x1a2)],_0x50f7af=_0x1164fa['get'](_0x551d9a);_0x50f7af?_0x50f7af[_0x2995d4(0x1e6)](_0x16520):_0x1164fa[_0x2995d4(0x171)](_0x551d9a,[_0x16520]);}let _0x7c3585=[];for(let _0x2b070b of _0x1164fa['values']()){let _0x45dd0d=[..._0x2b070b][_0x2995d4(0x188)](j),_0x4868bc=[];for(let _0x235f73 of _0x45dd0d){for(Me(_0x235f73);_0x4868bc[_0x2995d4(0x1ca)]>0x0&&_0x235f73[_0x2995d4(0x17f)]>_0x4868bc[_0x4868bc[_0x2995d4(0x1ca)]-0x1][_0x2995d4(0x1a6)];)_0x4868bc['pop']();let _0x3e3113=_0x4868bc[_0x4868bc[_0x2995d4(0x1ca)]-0x1];if(_0x3e3113&&_0x235f73['end']>_0x3e3113[_0x2995d4(0x1a6)])throw new S(_0x2995d4(0x16b),_0x2995d4(0x156),_0x235f73['id']);let _0x374339=_0x3e3113?_0x3e3113[_0x2995d4(0x1ad)]+0x1:0x1;if(_0x374339>_0xc572b5)throw new S(_0x2995d4(0x176),_0x2995d4(0x191)+_0xc572b5,_0x235f73['id']);let _0x6f74d4={..._0x235f73,'depth':_0x374339,'parentId':_0x3e3113==null?void 0x0:_0x3e3113['id'],'anchor':_0x235f73['end'],'children':[]};_0x3e3113?_0x3e3113['children'][_0x2995d4(0x1e6)](_0x6f74d4):_0x7c3585[_0x2995d4(0x1e6)](_0x6f74d4),_0x4868bc[_0x2995d4(0x1e6)](_0x6f74d4);}}return _0x7c3585;}function E(_0x5c55f9,_0x2d7e6d,_0x41aecd={}){const _0xa6b81d=_0x164c;if(_0x2d7e6d[_0xa6b81d(0x17f)]<0x0||_0x2d7e6d[_0xa6b81d(0x17f)]>_0x2d7e6d[_0xa6b81d(0x1a6)])return{'valid':!0x1,'reason':_0xa6b81d(0x1e9)};if(_0x41aecd[_0xa6b81d(0x17c)]!=null&&_0x2d7e6d[_0xa6b81d(0x1a6)]>=_0x41aecd['maxIndex'])return{'valid':!0x1,'reason':_0xa6b81d(0x1e1)};let _0x5128ac=_0x5c55f9[_0xa6b81d(0x1c1)](_0x49ab29=>w(_0x49ab29,_0x2d7e6d));for(let _0x131f86 of _0x5128ac)if(Ne(_0x131f86,_0x2d7e6d))return{'valid':!0x1,'reason':'crossing'};try{T([..._0x5c55f9,_0x2d7e6d],_0x41aecd);}catch(_0x448265){let _0x5b42a8=ye(_0x448265);return _0x5b42a8===_0xa6b81d(0x176)?{'valid':!0x1,'reason':'max-depth'}:_0x5b42a8===_0xa6b81d(0x1e9)?{'valid':!0x1,'reason':_0xa6b81d(0x1e9)}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function xe(_0x4f4136,_0x5e010e,_0x1bc5b0={}){const _0x3f1a32=_0x164c;let _0x2a892b=E(_0x4f4136,_0x5e010e,_0x1bc5b0);if(!_0x2a892b['valid'])throw Error(_0x2a892b[_0x3f1a32(0x1b6)]??'invalid-dimension-outline');return[..._0x4f4136,_0x5e010e];}function Se(_0x4d54b7,_0x13dda9){const _0x583920=_0x164c;let _0x412a60=_0x13dda9[_0x583920(0x17f)],_0x19086a=_0x13dda9[_0x583920(0x1a6)],_0x59a108=[],_0x2256fc=!0x0;for(;_0x2256fc;){_0x2256fc=!0x1;for(let _0x25ffde of _0x4d54b7)_0x59a108[_0x583920(0x17e)](_0x25ffde)||!w(_0x25ffde,_0x13dda9)||!Ae(_0x25ffde[_0x583920(0x17f)],_0x25ffde[_0x583920(0x1a6)],_0x412a60,_0x19086a)||(_0x59a108[_0x583920(0x1e6)](_0x25ffde),_0x412a60=Math[_0x583920(0x1e5)](_0x412a60,_0x25ffde[_0x583920(0x17f)]),_0x19086a=Math['max'](_0x19086a,_0x25ffde[_0x583920(0x1a6)]),_0x2256fc=!0x0);}if(_0x59a108[_0x583920(0x1ca)]===0x0)return null;let [_0xa5e57b]=[..._0x59a108][_0x583920(0x188)](j);return{'mergedOutline':{..._0xa5e57b,'start':_0x412a60,'end':_0x19086a},'mergedOutlines':_0x59a108};}function Ce(_0x596d14,_0x1a85f7){const _0x5bb40c=_0x164c;return _0x596d14[_0x5bb40c(0x1c1)](_0x1f1e6c=>!w(_0x1f1e6c,_0x1a85f7)||!(_0x1f1e6c['start']>=_0x1a85f7[_0x5bb40c(0x17f)]&&_0x1f1e6c['end']<=_0x1a85f7[_0x5bb40c(0x1a6)]));}function we(_0x1e6905,_0xa1b8af,_0x50f9a3,_0x476dcc){const _0x267437=_0x164c;return Te(_0x1e6905[_0x267437(0x1c1)](_0x53d5d5=>_0x53d5d5[_0x267437(0x16c)]===_0xa1b8af&&_0x53d5d5['subUnitId']===_0x50f9a3&&_0x53d5d5[_0x267437(0x1a2)]===_0x476dcc&&_0x53d5d5[_0x267437(0x1b4)])['map'](_0x53b07e=>({'start':_0x53b07e['start'],'end':_0x53b07e[_0x267437(0x1a6)]})));}function Te(_0xf593c6){const _0x4485e8=_0x164c;if(_0xf593c6[_0x4485e8(0x1ca)]===0x0)return[];let _0xc48ca8=[..._0xf593c6][_0x4485e8(0x188)]((_0x39c5f4,_0x3322cb)=>_0x39c5f4[_0x4485e8(0x17f)]-_0x3322cb[_0x4485e8(0x17f)]||_0x39c5f4[_0x4485e8(0x1a6)]-_0x3322cb[_0x4485e8(0x1a6)]),_0x21c529=[];for(let _0x3aa25b of _0xc48ca8){let _0x4df893=_0x21c529[_0x21c529[_0x4485e8(0x1ca)]-0x1];!_0x4df893||_0x3aa25b[_0x4485e8(0x17f)]>_0x4df893[_0x4485e8(0x1a6)]+0x1?_0x21c529[_0x4485e8(0x1e6)]({..._0x3aa25b}):_0x4df893[_0x4485e8(0x1a6)]=Math[_0x4485e8(0x162)](_0x4df893[_0x4485e8(0x1a6)],_0x3aa25b[_0x4485e8(0x1a6)]);}return _0x21c529;}function D(_0x26eb9a,_0x872f1e){const _0x8d3156=_0x164c;return _0x872f1e[_0x8d3156(0x199)]<=0x0?_0x26eb9a:A(_0x26eb9a[_0x8d3156(0x19f)](_0x2ee235=>w(_0x2ee235,_0x872f1e)?_0x872f1e['index']<=_0x2ee235['start']?{..._0x2ee235,'start':_0x2ee235[_0x8d3156(0x17f)]+_0x872f1e[_0x8d3156(0x199)],'end':_0x2ee235['end']+_0x872f1e[_0x8d3156(0x199)]}:_0x2ee235[_0x8d3156(0x17f)]<_0x872f1e['index']&&_0x872f1e['index']<=_0x2ee235[_0x8d3156(0x1a6)]?{..._0x2ee235,'end':_0x2ee235[_0x8d3156(0x1a6)]+_0x872f1e[_0x8d3156(0x199)]}:_0x2ee235:_0x2ee235));}function O(_0x22cffe,_0x4c6780){const _0x4e00e0=_0x164c;if(_0x4c6780[_0x4e00e0(0x17f)]>_0x4c6780['end'])return _0x22cffe;let _0x3d1c2b=_0x4c6780['end']-_0x4c6780['start']+0x1,_0x41a386=[];for(let _0x2aeef1 of _0x22cffe){if(!w(_0x2aeef1,_0x4c6780)){_0x41a386[_0x4e00e0(0x1e6)](_0x2aeef1);continue;}if(_0x2aeef1[_0x4e00e0(0x1a6)]<_0x4c6780[_0x4e00e0(0x17f)]){_0x41a386[_0x4e00e0(0x1e6)](_0x2aeef1);continue;}if(_0x2aeef1[_0x4e00e0(0x17f)]>_0x4c6780[_0x4e00e0(0x1a6)]){_0x41a386[_0x4e00e0(0x1e6)]({..._0x2aeef1,'start':_0x2aeef1[_0x4e00e0(0x17f)]-_0x3d1c2b,'end':_0x2aeef1[_0x4e00e0(0x1a6)]-_0x3d1c2b});continue;}let _0x3abf27=Math[_0x4e00e0(0x162)](_0x2aeef1[_0x4e00e0(0x17f)],_0x4c6780[_0x4e00e0(0x17f)]),_0x4dfd1=Math[_0x4e00e0(0x1e5)](_0x2aeef1[_0x4e00e0(0x1a6)],_0x4c6780[_0x4e00e0(0x1a6)]),_0x438843=Math[_0x4e00e0(0x162)](0x0,_0x4dfd1-_0x3abf27+0x1),_0x25b18d=_0x2aeef1['end']-_0x2aeef1[_0x4e00e0(0x17f)]+0x1-_0x438843;if(_0x25b18d<=0x0)continue;let _0x535256=_0x2aeef1[_0x4e00e0(0x17f)]<_0x4c6780[_0x4e00e0(0x17f)]?_0x2aeef1[_0x4e00e0(0x17f)]:_0x4c6780[_0x4e00e0(0x17f)];_0x41a386[_0x4e00e0(0x1e6)]({..._0x2aeef1,'start':_0x535256,'end':_0x535256+_0x25b18d-0x1});}return A(_0x41a386);}function k(_0x52ed14,_0x483ef7){const _0x3da138=_0x164c;if(_0x483ef7['sourceStart']>_0x483ef7['sourceEnd'])return _0x52ed14;let _0x2be888=[];for(let _0x286cb8 of _0x52ed14){if(!w(_0x286cb8,_0x483ef7)){_0x2be888[_0x3da138(0x1e6)](_0x286cb8);continue;}let _0x3746fc=Ee(_0x286cb8,_0x483ef7);if(_0x3746fc['type']===_0x3da138(0x1d1))throw new S(_0x3da138(0x1c7),_0x3da138(0x179)+_0x286cb8['id'],_0x286cb8['id']);_0x2be888['push'](_0x3746fc['outline']);}return A(_0x2be888);}function Ee(_0x5209de,_0x5b1169){const _0x2c706a=_0x164c;let _0x50b650=De(_0x5b1169[_0x2c706a(0x1cd)],_0x5b1169[_0x2c706a(0x16d)]+0x1,_0x5b1169[_0x2c706a(0x195)]),_0x18f67c=[],_0x2c4da4={'start':_0x5209de[_0x2c706a(0x17f)],'end':_0x5209de[_0x2c706a(0x1a6)]+0x1};for(let _0x45404c of _0x50b650){let _0xe876e6=Oe(_0x2c4da4,_0x45404c[_0x2c706a(0x1c5)]);_0xe876e6&&_0x18f67c[_0x2c706a(0x1e6)]({'start':_0xe876e6[_0x2c706a(0x17f)]+_0x45404c[_0x2c706a(0x1d6)],'end':_0xe876e6['end']+_0x45404c[_0x2c706a(0x1d6)]});}let _0x377327=ke(_0x18f67c);return _0x377327[_0x2c706a(0x1ca)]===0x1?{'type':'ok','outline':{..._0x5209de,'start':_0x377327[0x0][_0x2c706a(0x17f)],'end':_0x377327[0x0]['end']-0x1}}:{'type':_0x2c706a(0x1d1),'outline':_0x5209de,'ranges':_0x377327};}function De(_0xbdd996,_0x572efa,_0x52771d){const _0x3d7043=_0x164c;let _0x5796cc=_0x572efa-_0xbdd996;if(_0x5796cc<=0x0)throw Error(_0x3d7043(0x169));return _0x52771d>=_0xbdd996&&_0x52771d<=_0x572efa?[{'range':{'start':0x0,'end':C},'offset':0x0}]:_0x52771d<_0xbdd996?[{'range':{'start':0x0,'end':_0x52771d},'offset':0x0},{'range':{'start':_0x52771d,'end':_0xbdd996},'offset':_0x5796cc},{'range':{'start':_0xbdd996,'end':_0x572efa},'offset':_0x52771d-_0xbdd996},{'range':{'start':_0x572efa,'end':C},'offset':0x0}]:[{'range':{'start':0x0,'end':_0xbdd996},'offset':0x0},{'range':{'start':_0xbdd996,'end':_0x572efa},'offset':_0x52771d-_0x572efa},{'range':{'start':_0x572efa,'end':_0x52771d},'offset':-_0x5796cc},{'range':{'start':_0x52771d,'end':C},'offset':0x0}];}function Oe(_0x5a14e9,_0x4257ba){const _0x22e302=_0x164c;let _0xea193f=Math[_0x22e302(0x162)](_0x5a14e9[_0x22e302(0x17f)],_0x4257ba['start']),_0x56eba5=Math[_0x22e302(0x1e5)](_0x5a14e9[_0x22e302(0x1a6)],_0x4257ba[_0x22e302(0x1a6)]);return _0xea193f>=_0x56eba5?null:{'start':_0xea193f,'end':_0x56eba5};}function ke(_0x25c61f){const _0x488ede=_0x164c;if(_0x25c61f[_0x488ede(0x1ca)]===0x0)return[];let _0xb346fe=[..._0x25c61f][_0x488ede(0x188)]((_0x48d40f,_0x4358d5)=>_0x48d40f[_0x488ede(0x17f)]-_0x4358d5['start']||_0x48d40f['end']-_0x4358d5[_0x488ede(0x1a6)]),_0x4dc404=[];for(let _0x25bc40 of _0xb346fe){let _0x2c6040=_0x4dc404[_0x4dc404['length']-0x1];!_0x2c6040||_0x25bc40[_0x488ede(0x17f)]>_0x2c6040['end']?_0x4dc404[_0x488ede(0x1e6)]({..._0x25bc40}):_0x2c6040['end']=Math[_0x488ede(0x162)](_0x2c6040[_0x488ede(0x1a6)],_0x25bc40[_0x488ede(0x1a6)]);}return _0x4dc404;}function Ae(_0x5df9cb,_0x2cb8e4,_0x2963a3,_0x23d536){return _0x2cb8e4+0x1===_0x2963a3||_0x23d536+0x1===_0x5df9cb;}function A(_0x45283c){let _0x23be75=je(_0x45283c);return T(_0x23be75),_0x23be75;}function _0x1e53(){const _0x1c05bc=['_initCommandInterceptor','next','min','push','DimensionOutlineError','_commandService','invalid-range','index','insert','complete','Crossing','redos','preUndos','decorate','symbol','_injector','Invalid\x20outline\x20range','_error$','prototype','UNKNOWN','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','mergedOutline','registerCommand','deserialize','iterator','endRow','getSheetBySheetId','sheet.command.add-dimension-outline','string','maxDepth','MAX_DEPTH','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','max','_sheetInterceptorService','1.0.0-beta.0','INVALID_RANGE','registerPluginResource','254322hUaATt','message','Invalid\x20dimension\x20outline\x20move\x20source\x20range','disposeWithMe','crossing','unitId','sourceEnd','MUTATION','sheet.mutation.transform-dimension-outlines','dispose','set','318hTTPpm','result','object','serialize','max-depth','column','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Move\x20would\x20split\x20dimension\x20outline:\x20','params','split\x20dimension\x20outline','maxIndex','COMMAND','includes','start','find','entries','move','156657TXvxqu','_sheetsOutlineModel','fromRange','getColumnCount','@univerjs-pro/sheets-outline','sort','_config','clear-range-not-contain-outline','_resourceManagerService','_configService','dimension-outline-','_initRegisterCommand','UNIVER_SHEET','6748mzaIsI','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','type','subUnitId','preRedos','destinationIndex','pushUndoRedo','undos','20lNklCi','count','name','outlineId','endColumn','_sheetsOutlineErrorService','_ensureUnitOutlines','map','change$','sheet.command.set-dimension-outline-collapsed','axis','defineProperty','removeUnit','Invalid\x20dimension\x20outline\x20mutation','end','_change$','unknown','stringify','permissionCheckWithoutRange','_getCommandScope','pipe','depth','pluginName','packageName','_initResource','function','parse','restoreOutlines','collapsed','toPrimitive','reason','add','clear','_univerInstanceService','setConfig','getRowCount','forEach','toRange','7861635uWmlfV','setOutlines','has','filter','159824pyMYxA','localeCompare','_outlines','range','sheet.mutation.clear-dimension-outlines','move-splits-outline','CROSSING','emit','length','getCurrentUnitOfType','sheet.command.clear-dimension-outlines','sourceStart','startColumn','from','OUT_OF_BOUNDS','split','getUnit','row','startRow','delete','offset','ROW','get','2385120FApLZa','call','permissionPointUpdate$','asObservable','mergedOutlines','default','getOutlines','valid','out-of-bounds','642995nbjppo'];_0x1e53=function(){return _0x1c05bc;};return _0x1e53();}function je(_0x4b1181){const _0x23db25=_0x164c;let _0x18e129=new Map();for(let _0x5a1316 of _0x4b1181){let _0x31bf8e=[_0x5a1316[_0x23db25(0x16c)],_0x5a1316[_0x23db25(0x193)],_0x5a1316[_0x23db25(0x1a2)],_0x5a1316[_0x23db25(0x17f)],_0x5a1316[_0x23db25(0x1a6)]]['join'](':'),_0x554a12=_0x18e129[_0x23db25(0x1d8)](_0x31bf8e);if(!_0x554a12){_0x18e129['set'](_0x31bf8e,_0x5a1316);continue;}_0x18e129[_0x23db25(0x171)](_0x31bf8e,{..._0x554a12,'collapsed':_0x554a12[_0x23db25(0x1b4)]||_0x5a1316[_0x23db25(0x1b4)]});}return Array[_0x23db25(0x1cf)](_0x18e129['values']());}function j(_0x59727d,_0x472b2f){const _0x52ba96=_0x164c;return _0x59727d['unitId']===_0x472b2f[_0x52ba96(0x16c)]?_0x59727d['subUnitId']===_0x472b2f[_0x52ba96(0x193)]?_0x59727d[_0x52ba96(0x1a2)]===_0x472b2f['axis']?_0x59727d[_0x52ba96(0x17f)]===_0x472b2f['start']?_0x472b2f[_0x52ba96(0x1a6)]-_0x59727d[_0x52ba96(0x1a6)]:_0x59727d[_0x52ba96(0x17f)]-_0x472b2f[_0x52ba96(0x17f)]:_0x59727d['axis'][_0x52ba96(0x1c3)](_0x472b2f['axis']):_0x59727d[_0x52ba96(0x193)][_0x52ba96(0x1c3)](_0x472b2f['subUnitId']):_0x59727d[_0x52ba96(0x16c)][_0x52ba96(0x1c3)](_0x472b2f['unitId']);}function Me(_0x47516a){const _0x158076=_0x164c;if(_0x47516a[_0x158076(0x17f)]>_0x47516a['end'])throw new S(_0x158076(0x1e9),_0x158076(0x152),_0x47516a['id']);}function Ne(_0x2bafca,_0x3c5249){const _0x6c998e=_0x164c;let _0x8633d6=_0x2bafca[_0x6c998e(0x17f)]<=_0x3c5249['end']&&_0x3c5249[_0x6c998e(0x17f)]<=_0x2bafca[_0x6c998e(0x1a6)],_0x46e6dd=_0x2bafca[_0x6c998e(0x17f)]<=_0x3c5249['start']&&_0x3c5249[_0x6c998e(0x1a6)]<=_0x2bafca['end'],_0x16d719=_0x3c5249[_0x6c998e(0x17f)]<=_0x2bafca[_0x6c998e(0x17f)]&&_0x2bafca[_0x6c998e(0x1a6)]<=_0x3c5249[_0x6c998e(0x1a6)];return _0x8633d6&&!_0x46e6dd&&!_0x16d719;}function M(_0x4315c7){'@babel/helpers - typeof';const _0x3eff26=_0x164c;return M=typeof Symbol==_0x3eff26(0x1b1)&&typeof Symbol[_0x3eff26(0x15a)]==_0x3eff26(0x150)?function(_0x330f38){return typeof _0x330f38;}:function(_0x16ad30){const _0x189514=_0x3eff26;return _0x16ad30&&typeof Symbol==_0x189514(0x1b1)&&_0x16ad30['constructor']===Symbol&&_0x16ad30!==Symbol[_0x189514(0x154)]?_0x189514(0x150):typeof _0x16ad30;},M(_0x4315c7);}function Pe(_0x38750c,_0x28525d){const _0x517e1b=_0x164c;if(M(_0x38750c)!='object'||!_0x38750c)return _0x38750c;var _0x1d2926=_0x38750c[Symbol[_0x517e1b(0x1b5)]];if(_0x1d2926!==void 0x0){var _0x28be33=_0x1d2926[_0x517e1b(0x1da)](_0x38750c,_0x28525d||_0x517e1b(0x1de));if(M(_0x28be33)!=_0x517e1b(0x174))return _0x28be33;throw TypeError(_0x517e1b(0x178));}return(_0x28525d===_0x517e1b(0x15e)?String:Number)(_0x38750c);}function Fe(_0x314d46){const _0x592e21=_0x164c;var _0x1b1802=Pe(_0x314d46,_0x592e21(0x15e));return M(_0x1b1802)=='symbol'?_0x1b1802:_0x1b1802+'';}function N(_0x15cad0,_0x4f68d1,_0x368adc){const _0x349eac=_0x164c;return(_0x4f68d1=Fe(_0x4f68d1))in _0x15cad0?Object[_0x349eac(0x1a3)](_0x15cad0,_0x4f68d1,{'value':_0x368adc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x15cad0[_0x4f68d1]=_0x368adc,_0x15cad0;}var P=class extends _0x10d8df{constructor(..._0x5506a8){const _0x12149a=_0x164c;super(..._0x5506a8),N(this,'_outlines',new Map()),N(this,_0x12149a(0x1a7),new _0x55cac1()),N(this,_0x12149a(0x1a0),this[_0x12149a(0x1a7)][_0x12149a(0x1dc)]());}[_0x1703d8(0x1df)](_0x502af7,_0x1b00a3){const _0x391fc0=_0x1703d8;var _0x386d7a;return[...((_0x386d7a=this[_0x391fc0(0x1c4)][_0x391fc0(0x1d8)](_0x502af7))==null?void 0x0:_0x386d7a[_0x391fc0(0x1d8)](_0x1b00a3))??[]];}['getUnitOutlines'](_0x95fa1f){const _0x1a00ad=_0x1703d8;let _0xc56e33=this[_0x1a00ad(0x1c4)]['get'](_0x95fa1f),_0x15e96b=new Map();return _0xc56e33==null||_0xc56e33[_0x1a00ad(0x1bc)]((_0x6e8786,_0x1e130c)=>{const _0x55b3ca=_0x1a00ad;_0x15e96b[_0x55b3ca(0x171)](_0x1e130c,[..._0x6e8786]);}),_0x15e96b;}[_0x1703d8(0x1bf)](_0x4e003e,_0x5c89f1,_0x187399){const _0x55ccb2=_0x1703d8;this[_0x55ccb2(0x19e)](_0x4e003e)['set'](_0x5c89f1,[..._0x187399]),this[_0x55ccb2(0x1a7)][_0x55ccb2(0x1e4)]({'unitId':_0x4e003e,'subUnitId':_0x5c89f1});}[_0x1703d8(0x1a4)](_0x39b8aa){this['_outlines']['delete'](_0x39b8aa),this['_change$']['next']({'unitId':_0x39b8aa});}['serialize'](_0x43bdd3){const _0x46ad7e=_0x1703d8;let _0x16c431=this[_0x46ad7e(0x1c4)][_0x46ad7e(0x1d8)](_0x43bdd3),_0xeaa2e7={};return _0x16c431==null||_0x16c431[_0x46ad7e(0x1bc)]((_0x211012,_0x2ce574)=>{_0xeaa2e7[_0x2ce574]={'outlineList':[..._0x211012]};}),_0xeaa2e7;}[_0x1703d8(0x159)](_0x27ae15,_0x1c26fd){const _0x47bcf0=_0x1703d8;let _0x212c24=new Map();Object[_0x47bcf0(0x181)](_0x1c26fd)[_0x47bcf0(0x1bc)](([_0x4bc09d,_0x495035])=>{const _0xa9b552=_0x47bcf0;_0x212c24[_0xa9b552(0x171)](_0x4bc09d,[..._0x495035['outlineList']??[]]);}),this[_0x47bcf0(0x1c4)]['set'](_0x27ae15,_0x212c24),this[_0x47bcf0(0x1a7)]['next']({'unitId':_0x27ae15});}[_0x1703d8(0x170)](){const _0x5b80bb=_0x1703d8;super[_0x5b80bb(0x170)](),this['_outlines'][_0x5b80bb(0x1b8)](),this['_change$'][_0x5b80bb(0x14b)]();}[_0x1703d8(0x19e)](_0x1c4c92){const _0x4ac5bd=_0x1703d8;let _0x23284d=this[_0x4ac5bd(0x1c4)][_0x4ac5bd(0x1d8)](_0x1c4c92);return _0x23284d||(_0x23284d=new Map(),this['_outlines'][_0x4ac5bd(0x171)](_0x1c4c92,_0x23284d)),_0x23284d;}},F=class extends _0x10d8df{constructor(..._0x20c522){const _0x4288ef=_0x1703d8;super(..._0x20c522),N(this,_0x4288ef(0x153),new _0x55cac1()),N(this,'error$',this[_0x4288ef(0x153)][_0x4288ef(0x1dc)]());}['emit'](_0x5a301d){const _0x3ce451=_0x1703d8;this[_0x3ce451(0x153)][_0x3ce451(0x1e4)](_0x5a301d);}[_0x1703d8(0x170)](){const _0x31f70c=_0x1703d8;super[_0x31f70c(0x170)](),this[_0x31f70c(0x153)][_0x31f70c(0x14b)]();}};const I={'id':'sheet.mutation.add-dimension-outline','type':_0x329af9[_0x1703d8(0x16e)],'handler':(_0x4ed452,_0x1a6f7f)=>{const _0x54472b=_0x1703d8;let _0xc9238=_0x4ed452[_0x54472b(0x1d8)](P),_0x33536c=_0xc9238[_0x54472b(0x1df)](_0x1a6f7f['unitId'],_0x1a6f7f[_0x54472b(0x193)]);return _0xc9238[_0x54472b(0x1bf)](_0x1a6f7f[_0x54472b(0x16c)],_0x1a6f7f[_0x54472b(0x193)],xe(_0x33536c,_0x1a6f7f['outline'])),!0x0;}},L={'id':'sheet.mutation.remove-dimension-outline','type':_0x329af9[_0x1703d8(0x16e)],'handler':(_0x283064,_0x83b2b2)=>{const _0x5502b4=_0x1703d8;let _0x26f50e=_0x283064['get'](P),_0x147fdf=_0x26f50e['getOutlines'](_0x83b2b2[_0x5502b4(0x16c)],_0x83b2b2[_0x5502b4(0x193)]);return _0x26f50e[_0x5502b4(0x1bf)](_0x83b2b2[_0x5502b4(0x16c)],_0x83b2b2[_0x5502b4(0x193)],_0x147fdf[_0x5502b4(0x1c1)](_0x45c36d=>_0x45c36d['id']!==_0x83b2b2[_0x5502b4(0x19b)])),!0x0;}};function R(_0x3b6d4f,_0x3258e8,_0xe001cb){const _0x311758=_0x1703d8;let _0x58be25=Le(_0x3b6d4f);return!_0x58be25||_0x58be25[_0x311758(0x1aa)]({'workbookTypes':[_0x42d5f1],'worksheetTypes':[_0x35d90c]},_0x3258e8,_0xe001cb);}function Ie(_0x4565b2,_0xd09697,_0x2e8f85){const _0x4067e6=_0x1703d8;let _0x3a6c4f=Re(_0x4565b2);return((_0x3a6c4f==null?void 0x0:_0x3a6c4f[_0x4067e6(0x1db)])??_0x79b388(null))[_0x4067e6(0x1ac)](_0x580117(0x64),_0x166b1d(null),_0x1b12cc(()=>R(_0x4565b2,_0xd09697,_0x2e8f85)));}function Le(_0x832796){const _0x42805b=_0x1703d8;if(typeof _0x832796[_0x42805b(0x1c0)]==_0x42805b(0x1b1)&&!_0x832796[_0x42805b(0x1c0)](_0x828682))return null;try{return _0x832796[_0x42805b(0x1d8)](_0x828682);}catch{return null;}}function _0x164c(_0x19c4a1,_0xc0c7df){_0x19c4a1=_0x19c4a1-0x14a;const _0x1e5373=_0x1e53();let _0x164cc2=_0x1e5373[_0x19c4a1];return _0x164cc2;}function Re(_0x17951a){const _0x4281bf=_0x1703d8;if(typeof _0x17951a[_0x4281bf(0x1c0)]==_0x4281bf(0x1b1)&&!_0x17951a[_0x4281bf(0x1c0)](_0x2a65dc))return null;try{return _0x17951a[_0x4281bf(0x1d8)](_0x2a65dc);}catch{return null;}}const z={'id':_0x1703d8(0x15d),'type':_0x329af9[_0x1703d8(0x17d)],'handler':(_0x4af0ee,_0x3802ae)=>{const _0x327d4e=_0x1703d8;if(!_0x3802ae)return!0x1;let _0x403914=_0x32af97(_0x4af0ee[_0x327d4e(0x1d8)](_0x36fa51),_0x3802ae);if(!_0x403914)return!0x1;let {unitId:_0x49ad9b,subUnitId:_0x3907ee,worksheet:_0x4c5a14}=_0x403914;if(!R(_0x4af0ee,_0x49ad9b,_0x3907ee))return!0x1;let _0xf9da3b=_0x4af0ee['get'](P),_0x5c984b={'id':_0x327d4e(0x18d)+_0x51df55(0x6),'unitId':_0x49ad9b,'subUnitId':_0x3907ee,'axis':_0x3802ae['axis'],'start':_0x3802ae[_0x327d4e(0x17f)],'end':_0x3802ae['end'],'collapsed':!0x1},_0x3463a3=_0x3802ae[_0x327d4e(0x1a2)]===_0x327d4e(0x1d3)?_0x4c5a14[_0x327d4e(0x1bb)]():_0x4c5a14[_0x327d4e(0x186)](),_0x1fc540=_0xf9da3b[_0x327d4e(0x1df)](_0x49ad9b,_0x3907ee),_0x43effb=Se(_0x1fc540,_0x5c984b),_0x22da7e=(_0x43effb==null?void 0x0:_0x43effb[_0x327d4e(0x1dd)])??[],_0x463be1=(_0x43effb==null?void 0x0:_0x43effb[_0x327d4e(0x157)])??_0x5c984b,_0x5437d9=E(_0x43effb?_0x1fc540[_0x327d4e(0x1c1)](_0x22c441=>!_0x22da7e['some'](_0x62ccf1=>_0x62ccf1['id']===_0x22c441['id'])):_0x1fc540,_0x463be1,{'maxIndex':_0x3463a3});if(!_0x5437d9[_0x327d4e(0x1e0)])return _0x4af0ee[_0x327d4e(0x1d8)](F)['emit']({'reason':_0x5437d9[_0x327d4e(0x1b6)]??_0x327d4e(0x1a8),'commandId':z['id'],'unitId':_0x49ad9b,'subUnitId':_0x3907ee,'axis':_0x3802ae['axis'],'outlineId':_0x463be1['id']}),!0x1;let _0x3545d1=[..._0x22da7e[_0x327d4e(0x19f)](_0x4cecea=>({'id':L['id'],'params':{'unitId':_0x49ad9b,'subUnitId':_0x3907ee,'outlineId':_0x4cecea['id']}})),{'id':I['id'],'params':{'unitId':_0x49ad9b,'subUnitId':_0x3907ee,'outline':_0x463be1}}],_0x3bbdf4=[{'id':L['id'],'params':{'unitId':_0x49ad9b,'subUnitId':_0x3907ee,'outlineId':_0x463be1['id']}},..._0x22da7e['map'](_0xc02423=>({'id':I['id'],'params':{'unitId':_0x49ad9b,'subUnitId':_0x3907ee,'outline':_0xc02423}}))];return _0x4d330d(_0x3545d1,_0x4af0ee[_0x327d4e(0x1d8)](_0x4c43e8))['result']?(_0x4af0ee[_0x327d4e(0x1d8)](_0x19aa26)[_0x327d4e(0x196)]({'unitID':_0x49ad9b,'undoMutations':_0x3bbdf4,'redoMutations':_0x3545d1}),!0x0):!0x1;}},B={'id':_0x1703d8(0x1c6),'type':_0x329af9[_0x1703d8(0x16e)],'handler':(_0x1b88f6,_0x27a937)=>{const _0x5a4a2f=_0x1703d8;let _0x5c737b=_0x1b88f6[_0x5a4a2f(0x1d8)](P),_0x4e56f1=_0x5c737b[_0x5a4a2f(0x1df)](_0x27a937[_0x5a4a2f(0x16c)],_0x27a937[_0x5a4a2f(0x193)]);return _0x5c737b[_0x5a4a2f(0x1bf)](_0x27a937[_0x5a4a2f(0x16c)],_0x27a937[_0x5a4a2f(0x193)],Ce(_0x4e56f1,_0x27a937)),!0x0;}},V={'id':_0x1703d8(0x1cc),'type':_0x329af9['COMMAND'],'handler':(_0x549769,_0x2c515d)=>{const _0x54b620=_0x1703d8;if(!_0x2c515d)return!0x1;let _0x57c1d7=_0x32af97(_0x549769[_0x54b620(0x1d8)](_0x36fa51),_0x2c515d);if(!_0x57c1d7)return!0x1;let {unitId:_0x38fcb9,subUnitId:_0x1ffb52}=_0x57c1d7;if(!R(_0x549769,_0x38fcb9,_0x1ffb52))return!0x1;let _0x44eeee={'unitId':_0x38fcb9,'subUnitId':_0x1ffb52,'axis':_0x2c515d[_0x54b620(0x1a2)],'start':_0x2c515d[_0x54b620(0x17f)],'end':_0x2c515d[_0x54b620(0x1a6)]},_0x5e94=_0x549769[_0x54b620(0x1d8)](P)[_0x54b620(0x1df)](_0x38fcb9,_0x1ffb52)[_0x54b620(0x1c1)](_0x332833=>w(_0x332833,_0x44eeee)&&_0x332833[_0x54b620(0x17f)]>=_0x2c515d[_0x54b620(0x17f)]&&_0x332833['end']<=_0x2c515d['end']);if(_0x5e94[_0x54b620(0x1ca)]===0x0)return _0x549769[_0x54b620(0x1d8)](F)[_0x54b620(0x1c9)]({'reason':_0x54b620(0x18a),'commandId':V['id'],'unitId':_0x38fcb9,'subUnitId':_0x1ffb52,'axis':_0x2c515d[_0x54b620(0x1a2)]}),!0x1;let _0x154a33=[{'id':B['id'],'params':{..._0x44eeee,'removedOutlineIds':_0x5e94[_0x54b620(0x19f)](_0x37d94c=>_0x37d94c['id'])}}],_0x4cafd3=_0x5e94[_0x54b620(0x19f)](_0x4fc488=>({'id':I['id'],'params':{'unitId':_0x38fcb9,'subUnitId':_0x1ffb52,'outline':_0x4fc488}}));return _0x4d330d(_0x154a33,_0x549769['get'](_0x4c43e8))[_0x54b620(0x173)]?(_0x549769[_0x54b620(0x1d8)](_0x19aa26)[_0x54b620(0x196)]({'unitID':_0x38fcb9,'undoMutations':_0x4cafd3,'redoMutations':_0x154a33}),!0x0):!0x1;}},ze={'id':'sheet.command.remove-dimension-outline','type':_0x329af9['COMMAND'],'handler':(_0x38beab,_0x5469fb)=>{const _0x5a6779=_0x1703d8;if(!_0x5469fb)return!0x1;let _0x4f69b9=_0x32af97(_0x38beab[_0x5a6779(0x1d8)](_0x36fa51),_0x5469fb);if(!_0x4f69b9)return!0x1;let {unitId:_0x14bc45,subUnitId:_0x56f8fc}=_0x4f69b9;if(!R(_0x38beab,_0x14bc45,_0x56f8fc))return!0x1;let _0x595081=_0x38beab[_0x5a6779(0x1d8)](P)[_0x5a6779(0x1df)](_0x14bc45,_0x56f8fc)[_0x5a6779(0x180)](_0x2ee12b=>_0x2ee12b['id']===_0x5469fb[_0x5a6779(0x19b)]);if(!_0x595081)return!0x1;let _0x136ecf=[{'id':L['id'],'params':{'unitId':_0x14bc45,'subUnitId':_0x56f8fc,'outlineId':_0x595081['id'],'outline':_0x595081}}],_0xb21d06=[{'id':I['id'],'params':{'unitId':_0x14bc45,'subUnitId':_0x56f8fc,'outline':_0x595081}}];return _0x4d330d(_0x136ecf,_0x38beab[_0x5a6779(0x1d8)](_0x4c43e8))['result']?(_0x38beab[_0x5a6779(0x1d8)](_0x19aa26)[_0x5a6779(0x196)]({'unitID':_0x14bc45,'undoMutations':_0xb21d06,'redoMutations':_0x136ecf}),!0x0):!0x1;}},H={'id':'sheet.mutation.set-dimension-outline-collapsed','type':_0x329af9[_0x1703d8(0x16e)],'handler':(_0xd46cc5,_0x4afa5b)=>{const _0x33a18a=_0x1703d8;let _0x35bf60=_0xd46cc5['get'](P),_0x3aa0e7=_0x35bf60[_0x33a18a(0x1df)](_0x4afa5b[_0x33a18a(0x16c)],_0x4afa5b['subUnitId']),_0x54e206=_0x3aa0e7[_0x33a18a(0x180)](_0x58e1de=>_0x58e1de['id']===_0x4afa5b[_0x33a18a(0x19b)]);return _0x54e206&&_0x35bf60['setOutlines'](_0x4afa5b['unitId'],_0x4afa5b[_0x33a18a(0x193)],_0x3aa0e7[_0x33a18a(0x19f)](_0x31467a=>_0x31467a[_0x33a18a(0x16c)]!==_0x54e206[_0x33a18a(0x16c)]||_0x31467a[_0x33a18a(0x193)]!==_0x54e206['subUnitId']||_0x31467a[_0x33a18a(0x1a2)]!==_0x54e206[_0x33a18a(0x1a2)]||_0x31467a[_0x33a18a(0x17f)]!==_0x54e206[_0x33a18a(0x17f)]||_0x31467a[_0x33a18a(0x1a6)]!==_0x54e206[_0x33a18a(0x1a6)]?_0x31467a:{..._0x31467a,'collapsed':_0x4afa5b[_0x33a18a(0x1b4)]})),!0x0;}};function Be(_0x5e6185,_0x4533bb,_0x3bb3b6,_0x55aec3){const _0x1265fd=_0x1703d8;return _0x5e6185===_0x1265fd(0x1d3)?{'startRow':_0x4533bb,'endRow':_0x3bb3b6,'startColumn':0x0,'endColumn':_0x55aec3['getMaxColumns']()-0x1}:{'startRow':0x0,'endRow':_0x55aec3[_0x1265fd(0x1bb)]()-0x1,'startColumn':_0x4533bb,'endColumn':_0x3bb3b6};}function Ve(_0x1b880b){const _0x55fc61=_0x1703d8;return _0x1b880b===_0x55fc61(0x1d3)?_0x5a22ed['id']:_0xfa707b['id'];}function He(_0x422d04){const _0x2da9ec=_0x1703d8;return _0x422d04===_0x2da9ec(0x1d3)?_0x4b3836['id']:_0x2035ec['id'];}function Ue(_0x400fda,_0x4823f0,_0x694b11,_0x1d9c60){const _0x19aa32=_0x1703d8;let _0x85574c=_0x4823f0?[Be(_0x400fda[_0x19aa32(0x1a2)],_0x400fda[_0x19aa32(0x17f)],_0x400fda[_0x19aa32(0x1a6)],_0x694b11)]:We(_0x400fda,_0x1d9c60,_0x694b11),_0x4e3e0e=_0x4823f0?Ve(_0x400fda[_0x19aa32(0x1a2)]):He(_0x400fda[_0x19aa32(0x1a2)]);return[{'id':H['id'],'params':{'unitId':_0x400fda['unitId'],'subUnitId':_0x400fda['subUnitId'],'outlineId':_0x400fda['id'],'outline':_0x400fda,'collapsed':_0x4823f0}},..._0x85574c[_0x19aa32(0x19f)](_0x46c3fa=>({'id':_0x4e3e0e,'params':{'unitId':_0x400fda[_0x19aa32(0x16c)],'subUnitId':_0x400fda['subUnitId'],'ranges':[_0x46c3fa],'dimensionOutlineId':_0x400fda['id']}}))];}function We(_0x435455,_0x2d0ff4,_0x103dcc){const _0x431c7a=_0x1703d8;let _0x728888=we(_0x2d0ff4[_0x431c7a(0x19f)](_0x59a3fa=>Ge(_0x59a3fa,_0x435455)?{..._0x59a3fa,'collapsed':!0x1}:_0x59a3fa),_0x435455[_0x431c7a(0x16c)],_0x435455[_0x431c7a(0x193)],_0x435455[_0x431c7a(0x1a2)]);return Ke({'start':_0x435455[_0x431c7a(0x17f)],'end':_0x435455['end']},_0x728888)[_0x431c7a(0x19f)](_0x28de70=>Be(_0x435455[_0x431c7a(0x1a2)],_0x28de70['start'],_0x28de70[_0x431c7a(0x1a6)],_0x103dcc));}function Ge(_0x2f1d50,_0x1884d0){const _0x28ff48=_0x1703d8;return _0x2f1d50['unitId']===_0x1884d0[_0x28ff48(0x16c)]&&_0x2f1d50[_0x28ff48(0x193)]===_0x1884d0['subUnitId']&&_0x2f1d50[_0x28ff48(0x1a2)]===_0x1884d0[_0x28ff48(0x1a2)]&&_0x2f1d50[_0x28ff48(0x17f)]===_0x1884d0[_0x28ff48(0x17f)]&&_0x2f1d50[_0x28ff48(0x1a6)]===_0x1884d0[_0x28ff48(0x1a6)];}function Ke(_0x3d852a,_0x336d26){const _0x32d73b=_0x1703d8;let _0x56b131=_0x3d852a[_0x32d73b(0x17f)],_0x133950=[];for(let _0x55f025 of _0x336d26)if(!(_0x55f025[_0x32d73b(0x1a6)]<_0x56b131||_0x55f025[_0x32d73b(0x17f)]>_0x3d852a['end'])&&(_0x55f025['start']>_0x56b131&&_0x133950[_0x32d73b(0x1e6)]({'start':_0x56b131,'end':Math['min'](_0x55f025[_0x32d73b(0x17f)]-0x1,_0x3d852a[_0x32d73b(0x1a6)])}),_0x56b131=Math['max'](_0x56b131,_0x55f025[_0x32d73b(0x1a6)]+0x1),_0x56b131>_0x3d852a['end']))break;return _0x56b131<=_0x3d852a[_0x32d73b(0x1a6)]&&_0x133950[_0x32d73b(0x1e6)]({'start':_0x56b131,'end':_0x3d852a[_0x32d73b(0x1a6)]}),_0x133950;}const qe={'id':_0x1703d8(0x1a1),'type':_0x329af9[_0x1703d8(0x17d)],'handler':(_0x1c15a7,_0x5ae354)=>{const _0x4ed790=_0x1703d8;if(!_0x5ae354)return!0x1;let _0x33609b=_0x32af97(_0x1c15a7['get'](_0x36fa51),_0x5ae354);if(!_0x33609b)return!0x1;let {unitId:_0x1932fa,subUnitId:_0x5170bc,worksheet:_0x134a31}=_0x33609b;if(!R(_0x1c15a7,_0x1932fa,_0x5170bc))return!0x1;let _0x5d913f=_0x1c15a7[_0x4ed790(0x1d8)](P)[_0x4ed790(0x1df)](_0x1932fa,_0x5170bc),_0x531f13=_0x5d913f[_0x4ed790(0x180)](_0x34ef11=>_0x34ef11['id']===_0x5ae354[_0x4ed790(0x19b)]);if(!_0x531f13||_0x531f13[_0x4ed790(0x1b4)]===_0x5ae354[_0x4ed790(0x1b4)])return!0x1;let _0x21c4e3=Ue(_0x531f13,_0x5ae354['collapsed'],_0x134a31,_0x5d913f),_0x23ca3f=Ue(_0x531f13,!_0x5ae354['collapsed'],_0x134a31,_0x5d913f);return _0x4d330d(_0x21c4e3,_0x1c15a7[_0x4ed790(0x1d8)](_0x4c43e8))[_0x4ed790(0x173)]?(_0x1c15a7['get'](_0x19aa26)[_0x4ed790(0x196)]({'unitID':_0x1932fa,'undoMutations':_0x23ca3f,'redoMutations':_0x21c4e3}),!0x0):!0x1;}},U={'id':_0x1703d8(0x16f),'type':_0x329af9[_0x1703d8(0x16e)],'handler':(_0x3d9aca,_0x9c153e)=>{const _0x4825e6=_0x1703d8;let _0x37c3e1=_0x3d9aca['get'](P),_0x45ce8f=Je(_0x37c3e1[_0x4825e6(0x1df)](_0x9c153e[_0x4825e6(0x16c)],_0x9c153e['subUnitId']),_0x9c153e);return _0x37c3e1[_0x4825e6(0x1bf)](_0x9c153e[_0x4825e6(0x16c)],_0x9c153e[_0x4825e6(0x193)],_0x45ce8f),!0x0;}};function Je(_0x39e64d,_0x12a0c6){const _0x4de355=_0x1703d8;switch(_0x12a0c6[_0x4de355(0x192)]){case'insert':return _0x12a0c6[_0x4de355(0x1b3)]?Ye(_0x39e64d,_0x12a0c6):D(_0x39e64d,_0x12a0c6);case _0x4de355(0x1d5):return O(_0x39e64d,_0x12a0c6);case _0x4de355(0x182):return k(_0x39e64d,_0x12a0c6);}}function Ye(_0x4af325,_0x4173ea){const _0x3a9442=_0x1703d8;return[..._0x4af325[_0x3a9442(0x1c1)](_0x3ca488=>_0x3ca488[_0x3a9442(0x16c)]!==_0x4173ea['unitId']||_0x3ca488[_0x3a9442(0x193)]!==_0x4173ea[_0x3a9442(0x193)]||_0x3ca488['axis']!==_0x4173ea[_0x3a9442(0x1a2)]),..._0x4173ea[_0x3a9442(0x1b3)]];}const W='SHEET_OUTLINE_PLUGIN';var Xe=_0x1703d8(0x187),Ze=_0x1703d8(0x164);const Qe={};function G(_0x4e7215,_0x29519e){return function(_0x2ba0c9,_0x1499d7){_0x29519e(_0x2ba0c9,_0x1499d7,_0x4e7215);};}function K(_0x50ac50,_0x425fca,_0x3ba45c,_0xa182bb){const _0x31ab2d=_0x1703d8;var _0x11155c=arguments[_0x31ab2d(0x1ca)],_0x30b876=_0x11155c<0x3?_0x425fca:_0xa182bb===null?_0xa182bb=Object['getOwnPropertyDescriptor'](_0x425fca,_0x3ba45c):_0xa182bb,_0x3ec976;if(typeof Reflect==_0x31ab2d(0x174)&&typeof Reflect['decorate']==_0x31ab2d(0x1b1))_0x30b876=Reflect[_0x31ab2d(0x14f)](_0x50ac50,_0x425fca,_0x3ba45c,_0xa182bb);else{for(var _0x10aae7=_0x50ac50['length']-0x1;_0x10aae7>=0x0;_0x10aae7--)(_0x3ec976=_0x50ac50[_0x10aae7])&&(_0x30b876=(_0x11155c<0x3?_0x3ec976(_0x30b876):_0x11155c>0x3?_0x3ec976(_0x425fca,_0x3ba45c,_0x30b876):_0x3ec976(_0x425fca,_0x3ba45c))||_0x30b876);}return _0x11155c>0x3&&_0x30b876&&Object[_0x31ab2d(0x1a3)](_0x425fca,_0x3ba45c,_0x30b876),_0x30b876;}const q={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let J=class extends _0x10d8df{constructor(_0x317d0b,_0x39d904,_0x23c9e0,_0x1a9230){const _0x1a5ae1=_0x1703d8;super(),this[_0x1a5ae1(0x1b9)]=_0x317d0b,this[_0x1a5ae1(0x163)]=_0x39d904,this['_sheetsOutlineModel']=_0x23c9e0,this['_sheetsOutlineErrorService']=_0x1a9230,this[_0x1a5ae1(0x1e3)]();}[_0x1703d8(0x1e3)](){const _0x18297b=_0x1703d8;this[_0x18297b(0x16a)](this[_0x18297b(0x163)]['interceptCommand']({'getMutations':_0x44a8a5=>$e(_0x44a8a5,(_0x23af99,_0x305ce9)=>this[_0x18297b(0x184)][_0x18297b(0x1df)](_0x23af99,_0x305ce9),this['_getCommandScope'](_0x44a8a5['params']),_0x357e12=>this[_0x18297b(0x19d)][_0x18297b(0x1c9)](_0x357e12))}));}[_0x1703d8(0x1ab)](_0x4a02ff){const _0x55c4d6=_0x1703d8;let _0x437742=_0x4a02ff,_0xd93de4=_0x437742!=null&&_0x437742[_0x55c4d6(0x16c)]?this[_0x55c4d6(0x1b9)][_0x55c4d6(0x1d2)](_0x437742[_0x55c4d6(0x16c)],_0x5834f8[_0x55c4d6(0x18f)]):this[_0x55c4d6(0x1b9)][_0x55c4d6(0x1cb)](_0x5834f8[_0x55c4d6(0x18f)]);if(!_0xd93de4)return;let _0x4a58f2=_0x437742!=null&&_0x437742['subUnitId']?_0xd93de4[_0x55c4d6(0x15c)](_0x437742[_0x55c4d6(0x193)]):_0xd93de4['getActiveSheet']();if(_0x4a58f2)return{'unitId':_0xd93de4['getUnitId'](),'subUnitId':_0x4a58f2['getSheetId']()};}};J=K([G(0x0,_0x36fa51),G(0x1,_0x2daa03(_0x463cc1)),G(0x2,_0x2daa03(P)),G(0x3,_0x2daa03(F))],J);function $e(_0x3e222a,_0x14595f,_0x3fe9a0,_0x4b8020){const _0x3df832=_0x1703d8;let _0x1dccf3=tt(_0x3e222a,_0x3fe9a0);if(!_0x1dccf3)return Z();let _0x4f5375=_0x14595f(_0x1dccf3[_0x3df832(0x16c)],_0x1dccf3[_0x3df832(0x193)]);if(!_0x4f5375['some'](_0x3059da=>_0x3059da['axis']===_0x1dccf3['axis']))return Z();et(_0x4f5375,_0x1dccf3,_0x3e222a['id'],_0x4b8020);let _0x40d199=it(_0x1dccf3,_0x4f5375);return{'redos':[{'id':U['id'],'params':_0x1dccf3}],'undos':[{'id':U['id'],'params':_0x40d199}],'preRedos':[],'preUndos':[]};}function et(_0x269184,_0xad21fc,_0x442cbe,_0x1d88fb){const _0x137377=_0x1703d8;try{switch(_0xad21fc[_0x137377(0x192)]){case'insert':D(_0x269184,_0xad21fc);break;case'delete':O(_0x269184,_0xad21fc);break;case _0x137377(0x182):k(_0x269184,_0xad21fc);break;}}catch(_0x4e7da7){throw _0x1d88fb==null||_0x1d88fb({'reason':ye(_0x4e7da7),'commandId':_0x442cbe,'unitId':_0xad21fc[_0x137377(0x16c)],'subUnitId':_0xad21fc[_0x137377(0x193)],'axis':_0xad21fc['axis'],'outlineId':be(_0x4e7da7)}),new _0x28ceef(_0x4e7da7 instanceof Error?_0x4e7da7[_0x137377(0x168)]:_0x137377(0x1a5));}}function tt(_0x34c5da,_0x4d8fd7){const _0x4f0855=_0x1703d8;switch(_0x34c5da['id']){case _0x4e9e0e['id']:return Y(_0x34c5da[_0x4f0855(0x17a)],_0x4f0855(0x1d3),_0x4d8fd7);case _0x4df60a['id']:return Y(_0x34c5da['params'],_0x4f0855(0x177),_0x4d8fd7);case _0x5df4c1['id']:return nt(_0x34c5da[_0x4f0855(0x17a)],'row',_0x4d8fd7);case _0x3813e8['id']:return nt(_0x34c5da[_0x4f0855(0x17a)],_0x4f0855(0x177),_0x4d8fd7);case _0x62c221['id']:return rt(_0x34c5da[_0x4f0855(0x17a)],_0x4f0855(0x1d3),_0x4d8fd7);case _0x444fb1['id']:return rt(_0x34c5da[_0x4f0855(0x17a)],'column',_0x4d8fd7);default:return null;}}function Y(_0x3cb78a,_0x438474,_0x5626ff){const _0x4b20e7=_0x1703d8;let _0x4e5219=X(_0x3cb78a,_0x5626ff);if(!(_0x3cb78a!=null&&_0x3cb78a[_0x4b20e7(0x1c5)])||!_0x4e5219)return null;let _0x5cdb2f=_0x438474===_0x4b20e7(0x1d3)?_0x3cb78a[_0x4b20e7(0x1c5)]['startRow']:_0x3cb78a[_0x4b20e7(0x1c5)][_0x4b20e7(0x1ce)],_0x4b19b6=_0x438474===_0x4b20e7(0x1d3)?_0x3cb78a['range'][_0x4b20e7(0x15b)]:_0x3cb78a['range'][_0x4b20e7(0x19c)];return{..._0x4e5219,'axis':_0x438474,'type':'insert','index':_0x5cdb2f,'count':_0x4b19b6-_0x5cdb2f+0x1};}function nt(_0x5eed50,_0x4a1be2,_0x311a2b){const _0x44cf29=_0x1703d8;let _0x5440bd=X(_0x5eed50,_0x311a2b);if(!(_0x5eed50!=null&&_0x5eed50[_0x44cf29(0x1c5)])||!_0x5440bd)return null;let _0x535383=_0x4a1be2==='row'?_0x5eed50[_0x44cf29(0x1c5)][_0x44cf29(0x1d4)]:_0x5eed50['range'][_0x44cf29(0x1ce)],_0x21e5ae=_0x4a1be2==='row'?_0x5eed50[_0x44cf29(0x1c5)][_0x44cf29(0x15b)]:_0x5eed50[_0x44cf29(0x1c5)][_0x44cf29(0x19c)];return{..._0x5440bd,'axis':_0x4a1be2,'type':'delete','start':_0x535383,'end':_0x21e5ae};}function rt(_0xe8a94e,_0x12f15b,_0x3e8ba5){const _0x129d67=_0x1703d8;let _0x4615d9=X(_0xe8a94e,_0x3e8ba5);if(!(_0xe8a94e!=null&&_0xe8a94e['fromRange'])||!_0xe8a94e[_0x129d67(0x1bd)]||!_0x4615d9)return null;let _0xd5dbf=_0x12f15b===_0x129d67(0x1d3)?_0xe8a94e[_0x129d67(0x185)][_0x129d67(0x1d4)]:_0xe8a94e['fromRange'][_0x129d67(0x1ce)],_0x277a0e=_0x12f15b===_0x129d67(0x1d3)?_0xe8a94e['fromRange']['endRow']:_0xe8a94e[_0x129d67(0x185)][_0x129d67(0x19c)],_0x148826=_0x12f15b==='row'?_0xe8a94e['toRange'][_0x129d67(0x1d4)]:_0xe8a94e[_0x129d67(0x1bd)]['startColumn'];return{..._0x4615d9,'axis':_0x12f15b,'type':_0x129d67(0x182),'sourceStart':_0xd5dbf,'sourceEnd':_0x277a0e,'destinationIndex':_0x148826};}function it(_0x3f7d59,_0xe2c6c8){const _0x247905=_0x1703d8;switch(_0x3f7d59[_0x247905(0x192)]){case _0x247905(0x14a):return{'unitId':_0x3f7d59[_0x247905(0x16c)],'subUnitId':_0x3f7d59[_0x247905(0x193)],'axis':_0x3f7d59['axis'],'type':'delete','start':_0x3f7d59[_0x247905(0x1ea)],'end':_0x3f7d59[_0x247905(0x1ea)]+_0x3f7d59[_0x247905(0x199)]-0x1};case _0x247905(0x1d5):return{'unitId':_0x3f7d59[_0x247905(0x16c)],'subUnitId':_0x3f7d59['subUnitId'],'axis':_0x3f7d59[_0x247905(0x1a2)],'type':'insert','index':_0x3f7d59['start'],'count':_0x3f7d59[_0x247905(0x1a6)]-_0x3f7d59[_0x247905(0x17f)]+0x1,'restoreOutlines':_0xe2c6c8['filter'](_0x2b971a=>_0x2b971a[_0x247905(0x16c)]===_0x3f7d59[_0x247905(0x16c)]&&_0x2b971a['subUnitId']===_0x3f7d59[_0x247905(0x193)]&&_0x2b971a[_0x247905(0x1a2)]===_0x3f7d59[_0x247905(0x1a2)])};case _0x247905(0x182):return at(_0x3f7d59);}}function at(_0x45637c){const _0x2ef66a=_0x1703d8;let _0x5f1bb8=_0x45637c['sourceEnd']-_0x45637c[_0x2ef66a(0x1cd)]+0x1;return _0x45637c[_0x2ef66a(0x195)]>=_0x45637c[_0x2ef66a(0x1cd)]&&_0x45637c[_0x2ef66a(0x195)]<=_0x45637c[_0x2ef66a(0x16d)]+0x1?{..._0x45637c}:_0x45637c[_0x2ef66a(0x195)]>_0x45637c[_0x2ef66a(0x16d)]+0x1?{..._0x45637c,'sourceStart':_0x45637c['destinationIndex']-_0x5f1bb8,'sourceEnd':_0x45637c[_0x2ef66a(0x195)]-0x1,'destinationIndex':_0x45637c[_0x2ef66a(0x1cd)]}:{..._0x45637c,'sourceStart':_0x45637c['destinationIndex'],'sourceEnd':_0x45637c[_0x2ef66a(0x195)]+_0x5f1bb8-0x1,'destinationIndex':_0x45637c[_0x2ef66a(0x16d)]+0x1};}function X(_0x196746,_0x24af17){const _0x3efb65=_0x1703d8;let _0xef8cf1=(_0x196746==null?void 0x0:_0x196746[_0x3efb65(0x16c)])??(_0x24af17==null?void 0x0:_0x24af17[_0x3efb65(0x16c)]),_0x1f1da1=(_0x196746==null?void 0x0:_0x196746['subUnitId'])??(_0x24af17==null?void 0x0:_0x24af17[_0x3efb65(0x193)]);return _0xef8cf1&&_0x1f1da1?{'unitId':_0xef8cf1,'subUnitId':_0x1f1da1}:null;}function Z(){const _0x2e8f05=_0x1703d8;return{'redos':[...q[_0x2e8f05(0x14d)]],'undos':[...q[_0x2e8f05(0x197)]],'preRedos':[...q[_0x2e8f05(0x194)]??[]],'preUndos':[...q[_0x2e8f05(0x14e)]??[]]};}let Q=class extends _0x10d8df{constructor(_0x44022d,_0x5ac239){const _0x11efa9=_0x1703d8;super(),this[_0x11efa9(0x18b)]=_0x44022d,this[_0x11efa9(0x184)]=_0x5ac239,this[_0x11efa9(0x1b0)]();}[_0x1703d8(0x1b0)](){const _0x2a240d=_0x1703d8;this['disposeWithMe'](this[_0x2a240d(0x18b)][_0x2a240d(0x166)]({'pluginName':W,'businesses':[_0x5834f8['UNIVER_SHEET']],'toJson':_0x11b2fc=>JSON[_0x2a240d(0x1a9)](this['_sheetsOutlineModel'][_0x2a240d(0x175)](_0x11b2fc)),'parseJson':_0x2151ff=>JSON[_0x2a240d(0x1b2)](_0x2151ff),'onLoad':(_0xac1aae,_0x492d27)=>this[_0x2a240d(0x184)]['deserialize'](_0xac1aae,_0x492d27),'onUnLoad':_0x5b26db=>this[_0x2a240d(0x184)]['removeUnit'](_0x5b26db)}));}};Q=K([G(0x0,_0x45e88b),G(0x1,_0x2daa03(P))],Q);let $=class extends _0x49bd60{constructor(_0x2f9070=Qe,_0x2d8724,_0x5e8590,_0x59baaa){const _0x451a36=_0x1703d8;super(),this[_0x451a36(0x189)]=_0x2f9070,this[_0x451a36(0x151)]=_0x2d8724,this[_0x451a36(0x1e8)]=_0x5e8590,this[_0x451a36(0x18c)]=_0x59baaa;let {..._0x52416e}=_0x20ab54({},Qe,this[_0x451a36(0x189)]);this[_0x451a36(0x18c)][_0x451a36(0x1ba)]('sheets-outline.config',_0x52416e);}['onStarting'](){const _0x10222a=_0x1703d8;this[_0x10222a(0x151)][_0x10222a(0x1b7)]([P]),this[_0x10222a(0x151)]['add']([F]),this[_0x10222a(0x151)][_0x10222a(0x1b7)]([Q]),this[_0x10222a(0x151)]['add']([J]),this[_0x10222a(0x18e)](),this[_0x10222a(0x151)]['get'](P),this[_0x10222a(0x151)][_0x10222a(0x1d8)](F),this[_0x10222a(0x151)][_0x10222a(0x1d8)](Q),this['_injector'][_0x10222a(0x1d8)](J);}[_0x1703d8(0x18e)](){const _0x21f4b6=_0x1703d8;[z,ze,qe,V][_0x21f4b6(0x1bc)](_0x3cf726=>{const _0x31f001=_0x21f4b6;this[_0x31f001(0x16a)](this[_0x31f001(0x1e8)]['registerCommand'](_0x3cf726));}),[I,L,H,B,U][_0x21f4b6(0x1bc)](_0x3b3e8b=>{const _0x11daec=_0x21f4b6;this['disposeWithMe'](this[_0x11daec(0x1e8)][_0x11daec(0x158)](_0x3b3e8b));});}};N($,_0x1703d8(0x1ae),W),N($,_0x1703d8(0x1af),Xe),N($,'version',Ze),N($,'type',_0x5834f8[_0x1703d8(0x18f)]),$=K([_0x506a67(_0x2105d7,_0x3f8d87),G(0x1,_0x2daa03(_0x2a8c4c)),G(0x2,_0x4c43e8),G(0x3,_0x56609c)],$);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 _0x8c7a(_0x580c65,_0x23a85f){_0x580c65=_0x580c65-0x12f;var _0x4dca0c=_0x4dca();var _0x8c7a8e=_0x4dca0c[_0x580c65];return _0x8c7a8e;}function _0x4dca(){var _0x10c59d=['_worksheet','UniverProSheetsOutline','27tPLJvn','DimensionOutlineErrorReason','removeDimensionOutline','extend','function','SetDimensionOutlineCollapsedCommand','amd','6248EkAKxO','setDimensionOutlineCollapsed','DimensionOutlineAxis','getDimensionOutlines','258160BgSbkb','SheetsOutlineModel','addRowOutline','146PVakfg','syncExecuteCommand','30rUxfXx','2028334zGTQrs','2349FnZegg','clearDimensionOutlines','1511590Olpebx','addColumnOutline','_workbook','AddDimensionOutlineCommand','getOutlines','_addDimensionOutline','6196cYRGRW','_injector','_commandService','RemoveDimensionOutlineCommand','getUnitId','FEnum','25244508LxIYKJ','getSheetId','@univerjs/sheets/facade','200cLsPCt','493045SHtVxV','FWorksheet'];_0x4dca=function(){return _0x10c59d;};return _0x4dca();}(function(_0x1aa7d4,_0x3a5085){var _0x431ffd=_0x8c7a,_0x15dd96=_0x1aa7d4();while(!![]){try{var _0x42e9e0=-parseInt(_0x431ffd(0x134))/0x1*(parseInt(_0x431ffd(0x155))/0x2)+parseInt(_0x431ffd(0x138))/0x3*(parseInt(_0x431ffd(0x140))/0x4)+parseInt(_0x431ffd(0x14a))/0x5*(-parseInt(_0x431ffd(0x136))/0x6)+parseInt(_0x431ffd(0x131))/0x7*(-parseInt(_0x431ffd(0x149))/0x8)+parseInt(_0x431ffd(0x14e))/0x9*(-parseInt(_0x431ffd(0x13a))/0xa)+-parseInt(_0x431ffd(0x137))/0xb+parseInt(_0x431ffd(0x146))/0xc;if(_0x42e9e0===_0x3a5085)break;else _0x15dd96['push'](_0x15dd96['shift']());}catch(_0x5bcc7b){_0x15dd96['push'](_0x15dd96['shift']());}}}(_0x4dca,0xc5284),function(_0x2f0964,_0x26734b){var _0x3746fd=_0x8c7a;typeof exports=='object'&&typeof module<'u'?_0x26734b(require('@univerjs-pro/sheets-outline'),require('@univerjs/core/facade'),require('@univerjs/sheets/facade')):typeof define==_0x3746fd(0x152)&&define[_0x3746fd(0x154)]?define(['@univerjs-pro/sheets-outline','@univerjs/core/facade',_0x3746fd(0x148)],_0x26734b):(_0x2f0964=typeof globalThis<'u'?globalThis:_0x2f0964||self,_0x26734b(_0x2f0964[_0x3746fd(0x14d)],_0x2f0964['UniverCoreFacade'],_0x2f0964['UniverSheetsFacade']));}(this,function(_0x1d7039,_0x55fce6,_0x10a824){var _0x538e2a=_0x8c7a,_0x52ca7d=class extends _0x55fce6[_0x538e2a(0x145)]{get[_0x538e2a(0x12f)](){var _0x21bb53=_0x538e2a;return _0x1d7039[_0x21bb53(0x12f)];}get[_0x538e2a(0x14f)](){return _0x1d7039['DimensionOutlineErrorReason'];}};_0x55fce6[_0x538e2a(0x145)][_0x538e2a(0x151)](_0x52ca7d);var _0x2c529a=class extends _0x10a824[_0x538e2a(0x14b)]{[_0x538e2a(0x133)](_0x470d7d,_0x34547e){var _0x14a601=_0x538e2a;return this[_0x14a601(0x13f)](_0x1d7039[_0x14a601(0x12f)]['ROW'],_0x470d7d,_0x34547e);}[_0x538e2a(0x13b)](_0x1b589c,_0x2e44a5){var _0x4fc7fd=_0x538e2a;return this[_0x4fc7fd(0x13f)](_0x1d7039['DimensionOutlineAxis']['COLUMN'],_0x1b589c,_0x2e44a5);}[_0x538e2a(0x150)](_0x5002e9){var _0x5e3d85=_0x538e2a;return this[_0x5e3d85(0x142)][_0x5e3d85(0x135)](_0x1d7039[_0x5e3d85(0x143)]['id'],{'unitId':this[_0x5e3d85(0x13c)][_0x5e3d85(0x144)](),'subUnitId':this[_0x5e3d85(0x14c)][_0x5e3d85(0x147)](),'outlineId':_0x5002e9}),this;}[_0x538e2a(0x156)](_0x210253,_0x146780){var _0x561c91=_0x538e2a;return this[_0x561c91(0x142)][_0x561c91(0x135)](_0x1d7039[_0x561c91(0x153)]['id'],{'unitId':this[_0x561c91(0x13c)][_0x561c91(0x144)](),'subUnitId':this[_0x561c91(0x14c)][_0x561c91(0x147)](),'outlineId':_0x210253,'collapsed':_0x146780}),this;}[_0x538e2a(0x139)](_0x2de068,_0xa6b183,_0x33d715){var _0x40530f=_0x538e2a;return this[_0x40530f(0x142)][_0x40530f(0x135)](_0x1d7039['ClearDimensionOutlinesCommand']['id'],{'unitId':this[_0x40530f(0x13c)][_0x40530f(0x144)](),'subUnitId':this[_0x40530f(0x14c)]['getSheetId'](),'axis':_0x2de068,'start':_0xa6b183,'end':_0x33d715}),this;}[_0x538e2a(0x130)](_0x46085c){var _0x4bb23b=_0x538e2a;let _0x2d0c6d=this[_0x4bb23b(0x141)]['get'](_0x1d7039[_0x4bb23b(0x132)])[_0x4bb23b(0x13e)](this[_0x4bb23b(0x13c)][_0x4bb23b(0x144)](),this['_worksheet'][_0x4bb23b(0x147)]());return _0x46085c?_0x2d0c6d['filter'](_0x5396ca=>_0x5396ca['axis']===_0x46085c):_0x2d0c6d;}[_0x538e2a(0x13f)](_0x31234c,_0x340a81,_0x1e9ac6){var _0x11fdfd=_0x538e2a;return this[_0x11fdfd(0x142)][_0x11fdfd(0x135)](_0x1d7039[_0x11fdfd(0x13d)]['id'],{'unitId':this[_0x11fdfd(0x13c)][_0x11fdfd(0x144)](),'subUnitId':this[_0x11fdfd(0x14c)][_0x11fdfd(0x147)](),'axis':_0x31234c,'start':_0x340a81,'end':_0x340a81+_0x1e9ac6-0x1}),this;}};_0x10a824['FWorksheet'][_0x538e2a(0x151)](_0x2c529a);}));
1
+ function _0x1d45(_0x3e34a7,_0x50b4fb){_0x3e34a7=_0x3e34a7-0x1f2;var _0x52994e=_0x5299();var _0x1d45c6=_0x52994e[_0x3e34a7];return _0x1d45c6;}(function(_0x12998f,_0x377e13){var _0x570479=_0x1d45,_0x191943=_0x12998f();while(!![]){try{var _0xe1edd1=-parseInt(_0x570479(0x21a))/0x1*(parseInt(_0x570479(0x209))/0x2)+-parseInt(_0x570479(0x20a))/0x3*(-parseInt(_0x570479(0x206))/0x4)+parseInt(_0x570479(0x1f2))/0x5*(parseInt(_0x570479(0x211))/0x6)+parseInt(_0x570479(0x1f3))/0x7+parseInt(_0x570479(0x214))/0x8+parseInt(_0x570479(0x1f5))/0x9+-parseInt(_0x570479(0x1fe))/0xa;if(_0xe1edd1===_0x377e13)break;else _0x191943['push'](_0x191943['shift']());}catch(_0x25222a){_0x191943['push'](_0x191943['shift']());}}}(_0x5299,0x4a6e8),function(_0x13752a,_0x1de4bb){var _0x5e64f7=_0x1d45;typeof exports=='object'&&typeof module<'u'?_0x1de4bb(require('@univerjs-pro/sheets-outline'),require('@univerjs/core/facade'),require('@univerjs/sheets/facade')):typeof define==_0x5e64f7(0x20b)&&define[_0x5e64f7(0x1f4)]?define([_0x5e64f7(0x205),_0x5e64f7(0x212),'@univerjs/sheets/facade'],_0x1de4bb):(_0x13752a=typeof globalThis<'u'?globalThis:_0x13752a||self,_0x1de4bb(_0x13752a[_0x5e64f7(0x215)],_0x13752a['UniverCoreFacade'],_0x13752a[_0x5e64f7(0x1f8)]));}(this,function(_0x19de36,_0x1c65c2,_0xab0e76){var _0x343ca6=_0x1d45,_0x422181=class extends _0x1c65c2[_0x343ca6(0x20c)]{get[_0x343ca6(0x219)](){var _0xb81292=_0x343ca6;return _0x19de36[_0xb81292(0x219)];}get[_0x343ca6(0x218)](){var _0x47f822=_0x343ca6;return _0x19de36[_0x47f822(0x218)];}};_0x1c65c2[_0x343ca6(0x20c)]['extend'](_0x422181);var _0x15e814=class extends _0xab0e76[_0x343ca6(0x216)]{[_0x343ca6(0x200)](_0x49d13c,_0x13a7c7){var _0x19b2f5=_0x343ca6;return this['_addDimensionOutline'](_0x19de36[_0x19b2f5(0x219)][_0x19b2f5(0x207)],_0x49d13c,_0x13a7c7);}[_0x343ca6(0x20d)](_0x245f51,_0x2b3897){var _0x551952=_0x343ca6;return this[_0x551952(0x202)](_0x19de36['DimensionOutlineAxis'][_0x551952(0x1f6)],_0x245f51,_0x2b3897);}['removeDimensionOutline'](_0x14782d){var _0x2925ac=_0x343ca6;return this['_commandService'][_0x2925ac(0x1fd)](_0x19de36[_0x2925ac(0x217)]['id'],{'unitId':this[_0x2925ac(0x203)][_0x2925ac(0x213)](),'subUnitId':this[_0x2925ac(0x208)]['getSheetId'](),'outlineId':_0x14782d}),this;}[_0x343ca6(0x210)](_0x282cbd,_0x2f0f68){var _0x7c6f4e=_0x343ca6;return this[_0x7c6f4e(0x201)][_0x7c6f4e(0x1fd)](_0x19de36[_0x7c6f4e(0x1fb)]['id'],{'unitId':this[_0x7c6f4e(0x203)][_0x7c6f4e(0x213)](),'subUnitId':this[_0x7c6f4e(0x208)][_0x7c6f4e(0x204)](),'outlineId':_0x282cbd,'collapsed':_0x2f0f68}),this;}[_0x343ca6(0x1f9)](_0x50ecf4,_0x106c8f,_0x8122aa){var _0x11b5a5=_0x343ca6;return this[_0x11b5a5(0x201)][_0x11b5a5(0x1fd)](_0x19de36['ClearDimensionOutlinesCommand']['id'],{'unitId':this[_0x11b5a5(0x203)][_0x11b5a5(0x213)](),'subUnitId':this[_0x11b5a5(0x208)]['getSheetId'](),'axis':_0x50ecf4,'start':_0x106c8f,'end':_0x8122aa}),this;}[_0x343ca6(0x1fc)](_0x3e309c){var _0x218df4=_0x343ca6;let _0x364914=this[_0x218df4(0x20f)][_0x218df4(0x1f7)](_0x19de36['SheetsOutlineModel'])[_0x218df4(0x1fa)](this[_0x218df4(0x203)]['getUnitId'](),this[_0x218df4(0x208)]['getSheetId']());return _0x3e309c?_0x364914[_0x218df4(0x1ff)](_0x1386dd=>_0x1386dd[_0x218df4(0x20e)]===_0x3e309c):_0x364914;}[_0x343ca6(0x202)](_0x6b5ebb,_0x14c6e6,_0x4b87dd){var _0x119cfa=_0x343ca6;return this[_0x119cfa(0x201)]['syncExecuteCommand'](_0x19de36['AddDimensionOutlineCommand']['id'],{'unitId':this[_0x119cfa(0x203)][_0x119cfa(0x213)](),'subUnitId':this[_0x119cfa(0x208)][_0x119cfa(0x204)](),'axis':_0x6b5ebb,'start':_0x14c6e6,'end':_0x14c6e6+_0x4b87dd-0x1}),this;}};_0xab0e76[_0x343ca6(0x216)]['extend'](_0x15e814);}));function _0x5299(){var _0x354d5d=['331119JohpXg','COLUMN','get','UniverSheetsFacade','clearDimensionOutlines','getOutlines','SetDimensionOutlineCollapsedCommand','getDimensionOutlines','syncExecuteCommand','4603180oJqpNG','filter','addRowOutline','_commandService','_addDimensionOutline','_workbook','getSheetId','@univerjs-pro/sheets-outline','29336RPaIVX','ROW','_worksheet','2722POOXIv','111AWPsCu','function','FEnum','addColumnOutline','axis','_injector','setDimensionOutlineCollapsed','6AJlAPj','@univerjs/core/facade','getUnitId','1468416VKuOfM','UniverProSheetsOutline','FWorksheet','RemoveDimensionOutlineCommand','DimensionOutlineErrorReason','DimensionOutlineAxis','74PbsrCU','34915nWkoDY','2570540YlCRGm','amd'];_0x5299=function(){return _0x354d5d;};return _0x5299();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2132(_0x5ce3e1,_0x2d8bc4){_0x5ce3e1=_0x5ce3e1-0x18d;const _0x147e00=_0x147e();let _0x21322d=_0x147e00[_0x5ce3e1];return _0x21322d;}(function(_0x5606ff,_0x204eb2){const _0x67c2f2=_0x2132,_0x1b637c=_0x5606ff();while(!![]){try{const _0x6d6427=parseInt(_0x67c2f2(0x232))/0x1*(-parseInt(_0x67c2f2(0x214))/0x2)+-parseInt(_0x67c2f2(0x245))/0x3*(-parseInt(_0x67c2f2(0x1c3))/0x4)+parseInt(_0x67c2f2(0x248))/0x5+-parseInt(_0x67c2f2(0x1ab))/0x6+parseInt(_0x67c2f2(0x22c))/0x7*(-parseInt(_0x67c2f2(0x223))/0x8)+parseInt(_0x67c2f2(0x25d))/0x9*(-parseInt(_0x67c2f2(0x1e3))/0xa)+parseInt(_0x67c2f2(0x243))/0xb;if(_0x6d6427===_0x204eb2)break;else _0x1b637c['push'](_0x1b637c['shift']());}catch(_0x212a4d){_0x1b637c['push'](_0x1b637c['shift']());}}}(_0x147e,0x5196f),function(_0x7c990e,_0x340526){const _0x105394=_0x2132;typeof exports==_0x105394(0x1cf)&&typeof module<'u'?_0x340526(exports,require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs-pro/license')):typeof define==_0x105394(0x234)&&define[_0x105394(0x199)]?define(['exports',_0x105394(0x22e),_0x105394(0x1c0),_0x105394(0x1f8),_0x105394(0x1c5),_0x105394(0x270)],_0x340526):(_0x7c990e=typeof globalThis<'u'?globalThis:_0x7c990e||self,_0x340526(_0x7c990e[_0x105394(0x20e)]={},_0x7c990e[_0x105394(0x1e9)],_0x7c990e[_0x105394(0x1b7)],_0x7c990e[_0x105394(0x1f8)],_0x7c990e[_0x105394(0x1f8)]['operators'],_0x7c990e[_0x105394(0x19a)]));}(this,function(_0x2a4f7c,_0x347900,_0x3189f8,_0x38d9e8,_0x520540,_0x511c2a){const _0x345eb4=_0x2132;Object[_0x345eb4(0x24d)](_0x2a4f7c,Symbol['toStringTag'],{'value':_0x345eb4(0x1b2)});let _0x8feee8=function(_0x1718b8){const _0x2700cd=_0x345eb4;return _0x1718b8[_0x2700cd(0x1e1)]='row',_0x1718b8[_0x2700cd(0x271)]='column',_0x1718b8;}({}),_0x4de45e=function(_0x30cf9b){const _0x2e2bd8=_0x345eb4;return _0x30cf9b[_0x2e2bd8(0x274)]=_0x2e2bd8(0x246),_0x30cf9b[_0x2e2bd8(0x233)]='out-of-bounds',_0x30cf9b[_0x2e2bd8(0x1bb)]=_0x2e2bd8(0x1fd),_0x30cf9b['MAX_DEPTH']=_0x2e2bd8(0x21c),_0x30cf9b[_0x2e2bd8(0x1db)]=_0x2e2bd8(0x264),_0x30cf9b[_0x2e2bd8(0x1ed)]='clear-range-not-contain-outline',_0x30cf9b['UNKNOWN']=_0x2e2bd8(0x250),_0x30cf9b;}({});var _0x146b4e=class extends Error{constructor(_0x3040d1,_0xfc3c11,_0x582223){const _0x3cd9c4=_0x345eb4;super(_0xfc3c11),this[_0x3cd9c4(0x209)]=_0x3040d1,this[_0x3cd9c4(0x265)]=_0x582223,this[_0x3cd9c4(0x1f2)]=_0x3cd9c4(0x206);}};function _0x48a7da(_0x147468){const _0x39eed5=_0x345eb4;return _0x147468 instanceof _0x146b4e?_0x147468[_0x39eed5(0x209)]:_0x147468 instanceof Error?_0x147468[_0x39eed5(0x216)]['includes'](_0x39eed5(0x1da))?_0x39eed5(0x264):_0x147468[_0x39eed5(0x216)][_0x39eed5(0x1a7)](_0x39eed5(0x1af))?_0x39eed5(0x21c):_0x147468[_0x39eed5(0x216)][_0x39eed5(0x1a7)]('Crossing')?_0x39eed5(0x1fd):_0x147468[_0x39eed5(0x216)][_0x39eed5(0x1a7)]('range')?_0x39eed5(0x246):'unknown':'unknown';}function _0x4c00fc(_0x244562){const _0x406358=_0x345eb4;return _0x244562 instanceof _0x146b4e?_0x244562[_0x406358(0x265)]:void 0x0;}let _0x3d0f60=0x2**0x35-0x1;function _0x543f28(_0x502218,_0x169d5c){const _0x242089=_0x345eb4;return _0x502218['unitId']===_0x169d5c[_0x242089(0x224)]&&_0x502218[_0x242089(0x1ec)]===_0x169d5c[_0x242089(0x1ec)]&&_0x502218[_0x242089(0x205)]===_0x169d5c[_0x242089(0x205)];}function _0x563f85(_0x5f01c5,_0x5c50f5={}){const _0x33027d=_0x345eb4;var _0x27608f;let _0x9bca7d=(_0x27608f=_0x5c50f5[_0x33027d(0x197)])==null?0x8:_0x27608f,_0x2ff15a=new Map();for(let _0x43783a of _0x5f01c5){let _0x9e35ae=_0x43783a['unitId']+':'+_0x43783a[_0x33027d(0x1ec)]+':'+_0x43783a[_0x33027d(0x205)],_0x2322e3=_0x2ff15a[_0x33027d(0x1c9)](_0x9e35ae);_0x2322e3?_0x2322e3[_0x33027d(0x26f)](_0x43783a):_0x2ff15a['set'](_0x9e35ae,[_0x43783a]);}let _0x4b1a29=[];for(let _0x1d18c7 of _0x2ff15a[_0x33027d(0x19d)]()){let _0x142d08=[..._0x1d18c7][_0x33027d(0x1fe)](_0x456251),_0x1cc100=[];for(let _0x401408 of _0x142d08){for(_0x3142de(_0x401408);_0x1cc100[_0x33027d(0x1fa)]>0x0&&_0x401408['start']>_0x1cc100[_0x1cc100[_0x33027d(0x1fa)]-0x1][_0x33027d(0x244)];)_0x1cc100[_0x33027d(0x1f9)]();let _0x4cbabf=_0x1cc100[_0x1cc100[_0x33027d(0x1fa)]-0x1];if(_0x4cbabf&&_0x401408[_0x33027d(0x244)]>_0x4cbabf[_0x33027d(0x244)])throw new _0x146b4e(_0x33027d(0x1fd),'Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed',_0x401408['id']);let _0x30d778=_0x4cbabf?_0x4cbabf['depth']+0x1:0x1;if(_0x30d778>_0x9bca7d)throw new _0x146b4e('max-depth',_0x33027d(0x19c)+_0x9bca7d,_0x401408['id']);let _0x617ccd={..._0x401408,'depth':_0x30d778,'parentId':_0x4cbabf==null?void 0x0:_0x4cbabf['id'],'anchor':_0x401408[_0x33027d(0x244)],'children':[]};_0x4cbabf?_0x4cbabf[_0x33027d(0x1d9)][_0x33027d(0x26f)](_0x617ccd):_0x4b1a29['push'](_0x617ccd),_0x1cc100[_0x33027d(0x26f)](_0x617ccd);}}return _0x4b1a29;}function _0x436188(_0x19c4c0,_0x524bc1,_0x1ecace={}){const _0x2acc0b=_0x345eb4;if(_0x524bc1[_0x2acc0b(0x25c)]<0x0||_0x524bc1[_0x2acc0b(0x25c)]>_0x524bc1[_0x2acc0b(0x244)])return{'valid':!0x1,'reason':_0x2acc0b(0x246)};if(_0x1ecace['maxIndex']!=null&&_0x524bc1[_0x2acc0b(0x244)]>=_0x1ecace[_0x2acc0b(0x1a0)])return{'valid':!0x1,'reason':_0x2acc0b(0x1a9)};let _0x349466=_0x19c4c0[_0x2acc0b(0x1d4)](_0x591c91=>_0x543f28(_0x591c91,_0x524bc1));for(let _0x106593 of _0x349466)if(_0x18d3a7(_0x106593,_0x524bc1))return{'valid':!0x1,'reason':_0x2acc0b(0x1fd)};try{_0x563f85([..._0x19c4c0,_0x524bc1],_0x1ecace);}catch(_0x58f1a9){let _0x5e4f54=_0x48a7da(_0x58f1a9);return _0x5e4f54===_0x2acc0b(0x21c)?{'valid':!0x1,'reason':_0x2acc0b(0x21c)}:_0x5e4f54===_0x2acc0b(0x246)?{'valid':!0x1,'reason':_0x2acc0b(0x246)}:{'valid':!0x1,'reason':_0x2acc0b(0x1fd)};}return{'valid':!0x0};}function _0x22b3db(_0x461680,_0x1befbb,_0x10b834={}){const _0x4c3033=_0x345eb4;let _0x5420ce=_0x436188(_0x461680,_0x1befbb,_0x10b834);if(!_0x5420ce['valid']){var _0x22129d;throw Error((_0x22129d=_0x5420ce[_0x4c3033(0x209)])==null?_0x4c3033(0x242):_0x22129d);}return[..._0x461680,_0x1befbb];}function _0x424eb1(_0xc3c03,_0x3d9998){const _0x3caa5b=_0x345eb4;let _0x5c4909=_0x3d9998['start'],_0x3cce42=_0x3d9998[_0x3caa5b(0x244)],_0x58152c=[],_0x1d3f55=!0x0;for(;_0x1d3f55;){_0x1d3f55=!0x1;for(let _0x986f8f of _0xc3c03)_0x58152c[_0x3caa5b(0x1a7)](_0x986f8f)||!_0x543f28(_0x986f8f,_0x3d9998)||!_0x4acec3(_0x986f8f[_0x3caa5b(0x25c)],_0x986f8f[_0x3caa5b(0x244)],_0x5c4909,_0x3cce42)||(_0x58152c[_0x3caa5b(0x26f)](_0x986f8f),_0x5c4909=Math[_0x3caa5b(0x21a)](_0x5c4909,_0x986f8f[_0x3caa5b(0x25c)]),_0x3cce42=Math[_0x3caa5b(0x1b4)](_0x3cce42,_0x986f8f[_0x3caa5b(0x244)]),_0x1d3f55=!0x0);}if(_0x58152c['length']===0x0)return null;let [_0x27d2a4]=[..._0x58152c][_0x3caa5b(0x1fe)](_0x456251);return{'mergedOutline':{..._0x27d2a4,'start':_0x5c4909,'end':_0x3cce42},'mergedOutlines':_0x58152c};}function _0x1917a9(_0x3c2b7d,_0x598973){const _0x529848=_0x345eb4;return _0x3c2b7d[_0x529848(0x1d4)](_0x37a4ca=>!_0x543f28(_0x37a4ca,_0x598973)||!(_0x37a4ca[_0x529848(0x25c)]>=_0x598973[_0x529848(0x25c)]&&_0x37a4ca['end']<=_0x598973['end']));}function _0x43041a(_0x3cc533,_0x4e998b,_0x56f10b,_0x104467){const _0x4458f6=_0x345eb4;return _0x2539b8(_0x3cc533['filter'](_0x14f76c=>_0x14f76c[_0x4458f6(0x224)]===_0x4e998b&&_0x14f76c[_0x4458f6(0x1ec)]===_0x56f10b&&_0x14f76c[_0x4458f6(0x205)]===_0x104467&&_0x14f76c[_0x4458f6(0x22d)])['map'](_0x10a79f=>({'start':_0x10a79f[_0x4458f6(0x25c)],'end':_0x10a79f[_0x4458f6(0x244)]})));}function _0x2539b8(_0x32a0c9){const _0x2bb96a=_0x345eb4;if(_0x32a0c9['length']===0x0)return[];let _0x1c744d=[..._0x32a0c9]['sort']((_0x29fa61,_0x1b3389)=>_0x29fa61[_0x2bb96a(0x25c)]-_0x1b3389[_0x2bb96a(0x25c)]||_0x29fa61[_0x2bb96a(0x244)]-_0x1b3389[_0x2bb96a(0x244)]),_0x2d7599=[];for(let _0x3d17fb of _0x1c744d){let _0x11a261=_0x2d7599[_0x2d7599[_0x2bb96a(0x1fa)]-0x1];!_0x11a261||_0x3d17fb[_0x2bb96a(0x25c)]>_0x11a261['end']+0x1?_0x2d7599[_0x2bb96a(0x26f)]({..._0x3d17fb}):_0x11a261[_0x2bb96a(0x244)]=Math[_0x2bb96a(0x1b4)](_0x11a261[_0x2bb96a(0x244)],_0x3d17fb[_0x2bb96a(0x244)]);}return _0x2d7599;}function _0x29f065(_0x303530,_0x493781){const _0x37b60b=_0x345eb4;return _0x493781['count']<=0x0?_0x303530:_0x44b6d8(_0x303530[_0x37b60b(0x263)](_0x5b91be=>_0x543f28(_0x5b91be,_0x493781)?_0x493781[_0x37b60b(0x1c7)]<=_0x5b91be[_0x37b60b(0x25c)]?{..._0x5b91be,'start':_0x5b91be['start']+_0x493781['count'],'end':_0x5b91be['end']+_0x493781[_0x37b60b(0x230)]}:_0x5b91be[_0x37b60b(0x25c)]<_0x493781[_0x37b60b(0x1c7)]&&_0x493781[_0x37b60b(0x1c7)]<=_0x5b91be[_0x37b60b(0x244)]?{..._0x5b91be,'end':_0x5b91be[_0x37b60b(0x244)]+_0x493781[_0x37b60b(0x230)]}:_0x5b91be:_0x5b91be));}function _0x2d3ee1(_0x5f985,_0x18437d){const _0xa3aaaf=_0x345eb4;if(_0x18437d[_0xa3aaaf(0x25c)]>_0x18437d[_0xa3aaaf(0x244)])return _0x5f985;let _0x47fbeb=_0x18437d[_0xa3aaaf(0x244)]-_0x18437d[_0xa3aaaf(0x25c)]+0x1,_0x108db0=[];for(let _0x2336ff of _0x5f985){if(!_0x543f28(_0x2336ff,_0x18437d)){_0x108db0['push'](_0x2336ff);continue;}if(_0x2336ff[_0xa3aaaf(0x244)]<_0x18437d[_0xa3aaaf(0x25c)]){_0x108db0[_0xa3aaaf(0x26f)](_0x2336ff);continue;}if(_0x2336ff[_0xa3aaaf(0x25c)]>_0x18437d[_0xa3aaaf(0x244)]){_0x108db0[_0xa3aaaf(0x26f)]({..._0x2336ff,'start':_0x2336ff[_0xa3aaaf(0x25c)]-_0x47fbeb,'end':_0x2336ff['end']-_0x47fbeb});continue;}let _0x4ea1fc=Math[_0xa3aaaf(0x1b4)](_0x2336ff[_0xa3aaaf(0x25c)],_0x18437d['start']),_0x450e00=Math['min'](_0x2336ff['end'],_0x18437d[_0xa3aaaf(0x244)]),_0x44e9f6=Math[_0xa3aaaf(0x1b4)](0x0,_0x450e00-_0x4ea1fc+0x1),_0x587acf=_0x2336ff[_0xa3aaaf(0x244)]-_0x2336ff[_0xa3aaaf(0x25c)]+0x1-_0x44e9f6;if(_0x587acf<=0x0)continue;let _0x293129=_0x2336ff[_0xa3aaaf(0x25c)]<_0x18437d[_0xa3aaaf(0x25c)]?_0x2336ff[_0xa3aaaf(0x25c)]:_0x18437d['start'];_0x108db0[_0xa3aaaf(0x26f)]({..._0x2336ff,'start':_0x293129,'end':_0x293129+_0x587acf-0x1});}return _0x44b6d8(_0x108db0);}function _0x24ab97(_0x48b0c5,_0x1e0772){const _0x18fac3=_0x345eb4;if(_0x1e0772[_0x18fac3(0x1bd)]>_0x1e0772[_0x18fac3(0x1ca)])return _0x48b0c5;let _0x55c407=[];for(let _0xb6c952 of _0x48b0c5){if(!_0x543f28(_0xb6c952,_0x1e0772)){_0x55c407[_0x18fac3(0x26f)](_0xb6c952);continue;}let _0x45cce5=_0x3c0c3b(_0xb6c952,_0x1e0772);if(_0x45cce5[_0x18fac3(0x1ac)]===_0x18fac3(0x1cb))throw new _0x146b4e('move-splits-outline',_0x18fac3(0x215)+_0xb6c952['id'],_0xb6c952['id']);_0x55c407[_0x18fac3(0x26f)](_0x45cce5[_0x18fac3(0x1eb)]);}return _0x44b6d8(_0x55c407);}function _0x3c0c3b(_0x1b3a5c,_0x22f890){const _0x369a7e=_0x345eb4;let _0x214e7a=_0x4e819a(_0x22f890[_0x369a7e(0x1bd)],_0x22f890['sourceEnd']+0x1,_0x22f890[_0x369a7e(0x210)]),_0x4cdda9=[],_0x47d853={'start':_0x1b3a5c[_0x369a7e(0x25c)],'end':_0x1b3a5c[_0x369a7e(0x244)]+0x1};for(let _0x158012 of _0x214e7a){let _0x3e1ed4=_0x9737ae(_0x47d853,_0x158012[_0x369a7e(0x18d)]);_0x3e1ed4&&_0x4cdda9['push']({'start':_0x3e1ed4[_0x369a7e(0x25c)]+_0x158012[_0x369a7e(0x1e5)],'end':_0x3e1ed4[_0x369a7e(0x244)]+_0x158012[_0x369a7e(0x1e5)]});}let _0x26690f=_0x46bbc8(_0x4cdda9);return _0x26690f[_0x369a7e(0x1fa)]===0x1?{'type':'ok','outline':{..._0x1b3a5c,'start':_0x26690f[0x0][_0x369a7e(0x25c)],'end':_0x26690f[0x0][_0x369a7e(0x244)]-0x1}}:{'type':_0x369a7e(0x1cb),'outline':_0x1b3a5c,'ranges':_0x26690f};}function _0x4e819a(_0x289a42,_0x3da5e9,_0x4b609a){const _0xdad52e=_0x345eb4;let _0x11281e=_0x3da5e9-_0x289a42;if(_0x11281e<=0x0)throw Error(_0xdad52e(0x231));return _0x4b609a>=_0x289a42&&_0x4b609a<=_0x3da5e9?[{'range':{'start':0x0,'end':_0x3d0f60},'offset':0x0}]:_0x4b609a<_0x289a42?[{'range':{'start':0x0,'end':_0x4b609a},'offset':0x0},{'range':{'start':_0x4b609a,'end':_0x289a42},'offset':_0x11281e},{'range':{'start':_0x289a42,'end':_0x3da5e9},'offset':_0x4b609a-_0x289a42},{'range':{'start':_0x3da5e9,'end':_0x3d0f60},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x289a42},'offset':0x0},{'range':{'start':_0x289a42,'end':_0x3da5e9},'offset':_0x4b609a-_0x3da5e9},{'range':{'start':_0x3da5e9,'end':_0x4b609a},'offset':-_0x11281e},{'range':{'start':_0x4b609a,'end':_0x3d0f60},'offset':0x0}];}function _0x9737ae(_0x4dbc52,_0x2f613e){const _0x3902da=_0x345eb4;let _0xbb0bda=Math[_0x3902da(0x1b4)](_0x4dbc52['start'],_0x2f613e[_0x3902da(0x25c)]),_0x4fce43=Math[_0x3902da(0x21a)](_0x4dbc52[_0x3902da(0x244)],_0x2f613e['end']);return _0xbb0bda>=_0x4fce43?null:{'start':_0xbb0bda,'end':_0x4fce43};}function _0x46bbc8(_0x1ac376){const _0x52f24b=_0x345eb4;if(_0x1ac376[_0x52f24b(0x1fa)]===0x0)return[];let _0x2c70c4=[..._0x1ac376]['sort']((_0x14470e,_0x22a771)=>_0x14470e[_0x52f24b(0x25c)]-_0x22a771[_0x52f24b(0x25c)]||_0x14470e['end']-_0x22a771[_0x52f24b(0x244)]),_0x362ab6=[];for(let _0x3a59dd of _0x2c70c4){let _0x28b2f4=_0x362ab6[_0x362ab6[_0x52f24b(0x1fa)]-0x1];!_0x28b2f4||_0x3a59dd[_0x52f24b(0x25c)]>_0x28b2f4[_0x52f24b(0x244)]?_0x362ab6[_0x52f24b(0x26f)]({..._0x3a59dd}):_0x28b2f4[_0x52f24b(0x244)]=Math[_0x52f24b(0x1b4)](_0x28b2f4[_0x52f24b(0x244)],_0x3a59dd['end']);}return _0x362ab6;}function _0x4acec3(_0x38a22d,_0x34e7a1,_0x341ffa,_0x2abcf6){return _0x34e7a1+0x1===_0x341ffa||_0x2abcf6+0x1===_0x38a22d;}function _0x44b6d8(_0x5be3d3){let _0xe0d4b1=_0x24137c(_0x5be3d3);return _0x563f85(_0xe0d4b1),_0xe0d4b1;}function _0x24137c(_0x460117){const _0x15fc5b=_0x345eb4;let _0x43659c=new Map();for(let _0x5f12bf of _0x460117){let _0x5d1991=[_0x5f12bf[_0x15fc5b(0x224)],_0x5f12bf[_0x15fc5b(0x1ec)],_0x5f12bf['axis'],_0x5f12bf[_0x15fc5b(0x25c)],_0x5f12bf[_0x15fc5b(0x244)]][_0x15fc5b(0x1bc)](':'),_0x3a9167=_0x43659c[_0x15fc5b(0x1c9)](_0x5d1991);if(!_0x3a9167){_0x43659c[_0x15fc5b(0x1de)](_0x5d1991,_0x5f12bf);continue;}_0x43659c[_0x15fc5b(0x1de)](_0x5d1991,{..._0x3a9167,'collapsed':_0x3a9167[_0x15fc5b(0x22d)]||_0x5f12bf[_0x15fc5b(0x22d)]});}return Array[_0x15fc5b(0x238)](_0x43659c[_0x15fc5b(0x19d)]());}function _0x456251(_0x5e7236,_0x43383a){const _0x3b7462=_0x345eb4;return _0x5e7236[_0x3b7462(0x224)]===_0x43383a['unitId']?_0x5e7236['subUnitId']===_0x43383a['subUnitId']?_0x5e7236[_0x3b7462(0x205)]===_0x43383a['axis']?_0x5e7236['start']===_0x43383a[_0x3b7462(0x25c)]?_0x43383a[_0x3b7462(0x244)]-_0x5e7236[_0x3b7462(0x244)]:_0x5e7236['start']-_0x43383a[_0x3b7462(0x25c)]:_0x5e7236['axis'][_0x3b7462(0x217)](_0x43383a[_0x3b7462(0x205)]):_0x5e7236[_0x3b7462(0x1ec)]['localeCompare'](_0x43383a[_0x3b7462(0x1ec)]):_0x5e7236[_0x3b7462(0x224)][_0x3b7462(0x217)](_0x43383a[_0x3b7462(0x224)]);}function _0x3142de(_0x15afe9){const _0x5a1776=_0x345eb4;if(_0x15afe9['start']>_0x15afe9[_0x5a1776(0x244)])throw new _0x146b4e('invalid-range',_0x5a1776(0x22f),_0x15afe9['id']);}function _0x18d3a7(_0x21473f,_0xf2dded){const _0x35d472=_0x345eb4;let _0x2f5fc6=_0x21473f['start']<=_0xf2dded[_0x35d472(0x244)]&&_0xf2dded['start']<=_0x21473f[_0x35d472(0x244)],_0x3455e9=_0x21473f[_0x35d472(0x25c)]<=_0xf2dded['start']&&_0xf2dded[_0x35d472(0x244)]<=_0x21473f[_0x35d472(0x244)],_0x1d8e63=_0xf2dded[_0x35d472(0x25c)]<=_0x21473f[_0x35d472(0x25c)]&&_0x21473f[_0x35d472(0x244)]<=_0xf2dded['end'];return _0x2f5fc6&&!_0x3455e9&&!_0x1d8e63;}function _0x20fa60(_0x4a39c7){'@babel/helpers - typeof';const _0x5e661b=_0x345eb4;return _0x20fa60=typeof Symbol=='function'&&typeof Symbol[_0x5e661b(0x1ae)]==_0x5e661b(0x1d2)?function(_0x4d54c5){return typeof _0x4d54c5;}:function(_0x3c44bb){const _0x1b6734=_0x5e661b;return _0x3c44bb&&typeof Symbol=='function'&&_0x3c44bb[_0x1b6734(0x272)]===Symbol&&_0x3c44bb!==Symbol[_0x1b6734(0x22a)]?_0x1b6734(0x1d2):typeof _0x3c44bb;},_0x20fa60(_0x4a39c7);}function _0x19d155(_0x24f9ca,_0x9410dc){const _0x499f74=_0x345eb4;if(_0x20fa60(_0x24f9ca)!='object'||!_0x24f9ca)return _0x24f9ca;var _0x71c175=_0x24f9ca[Symbol['toPrimitive']];if(_0x71c175!==void 0x0){var _0xa4f45c=_0x71c175[_0x499f74(0x1dc)](_0x24f9ca,_0x9410dc||_0x499f74(0x26a));if(_0x20fa60(_0xa4f45c)!=_0x499f74(0x1cf))return _0xa4f45c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x9410dc===_0x499f74(0x1d0)?String:Number)(_0x24f9ca);}function _0x3b11bd(_0x34ad2f){const _0x40c573=_0x345eb4;var _0x2c4ed3=_0x19d155(_0x34ad2f,_0x40c573(0x1d0));return _0x20fa60(_0x2c4ed3)==_0x40c573(0x1d2)?_0x2c4ed3:_0x2c4ed3+'';}function _0x541894(_0x43cce0,_0x2ac6c1,_0x1ca61f){const _0x3c1846=_0x345eb4;return(_0x2ac6c1=_0x3b11bd(_0x2ac6c1))in _0x43cce0?Object[_0x3c1846(0x24d)](_0x43cce0,_0x2ac6c1,{'value':_0x1ca61f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x43cce0[_0x2ac6c1]=_0x1ca61f,_0x43cce0;}var _0x25cc1b=class extends _0x347900[_0x345eb4(0x20d)]{constructor(..._0xa97173){const _0x34193e=_0x345eb4;super(..._0xa97173),_0x541894(this,_0x34193e(0x258),new Map()),_0x541894(this,_0x34193e(0x198),new _0x38d9e8['Subject']()),_0x541894(this,_0x34193e(0x24c),this[_0x34193e(0x198)]['asObservable']());}[_0x345eb4(0x1ea)](_0x5f2c00,_0x4fce4a){const _0x46fa2b=_0x345eb4;var _0x17b207,_0x1f4aaa;return[...(_0x17b207=(_0x1f4aaa=this[_0x46fa2b(0x258)]['get'](_0x5f2c00))==null?void 0x0:_0x1f4aaa['get'](_0x4fce4a))==null?[]:_0x17b207];}['getUnitOutlines'](_0x278415){const _0xd63b66=_0x345eb4;let _0x2bad90=this[_0xd63b66(0x258)][_0xd63b66(0x1c9)](_0x278415),_0x450309=new Map();return _0x2bad90==null||_0x2bad90[_0xd63b66(0x1c4)]((_0x30bd31,_0x54c6b3)=>{_0x450309['set'](_0x54c6b3,[..._0x30bd31]);}),_0x450309;}[_0x345eb4(0x226)](_0x25c431,_0x5cc3ab,_0x3b935d){const _0x3b3829=_0x345eb4;this[_0x3b3829(0x237)](_0x25c431)[_0x3b3829(0x1de)](_0x5cc3ab,[..._0x3b935d]),this['_change$'][_0x3b3829(0x212)]({'unitId':_0x25c431,'subUnitId':_0x5cc3ab});}[_0x345eb4(0x1e4)](_0xfa0331){const _0x29b507=_0x345eb4;this[_0x29b507(0x258)][_0x29b507(0x1b8)](_0xfa0331),this[_0x29b507(0x198)][_0x29b507(0x212)]({'unitId':_0xfa0331});}['serialize'](_0x5412d4){const _0x4781cb=_0x345eb4;let _0x1bd75a=this[_0x4781cb(0x258)][_0x4781cb(0x1c9)](_0x5412d4),_0xd3e02b={};return _0x1bd75a==null||_0x1bd75a[_0x4781cb(0x1c4)]((_0x55904a,_0x2ab038)=>{_0xd3e02b[_0x2ab038]={'outlineList':[..._0x55904a]};}),_0xd3e02b;}['deserialize'](_0x8d4b74,_0x5356a1){const _0x565a3d=_0x345eb4;let _0x531e77=new Map();Object[_0x565a3d(0x252)](_0x5356a1)[_0x565a3d(0x1c4)](([_0x307b82,_0x183a28])=>{const _0x58eca1=_0x565a3d;var _0x3ebfc3;_0x531e77[_0x58eca1(0x1de)](_0x307b82,[...(_0x3ebfc3=_0x183a28[_0x58eca1(0x204)])==null?[]:_0x3ebfc3]);}),this[_0x565a3d(0x258)][_0x565a3d(0x1de)](_0x8d4b74,_0x531e77),this[_0x565a3d(0x198)][_0x565a3d(0x212)]({'unitId':_0x8d4b74});}[_0x345eb4(0x1e7)](){const _0x35a652=_0x345eb4;super[_0x35a652(0x1e7)](),this[_0x35a652(0x258)][_0x35a652(0x20b)](),this[_0x35a652(0x198)][_0x35a652(0x23e)]();}[_0x345eb4(0x237)](_0x13e9be){const _0x2c1592=_0x345eb4;let _0x4d731f=this[_0x2c1592(0x258)][_0x2c1592(0x1c9)](_0x13e9be);return _0x4d731f||(_0x4d731f=new Map(),this[_0x2c1592(0x258)][_0x2c1592(0x1de)](_0x13e9be,_0x4d731f)),_0x4d731f;}},_0xa7d4c1=class extends _0x347900[_0x345eb4(0x20d)]{constructor(..._0xb41a34){const _0x411aa4=_0x345eb4;super(..._0xb41a34),_0x541894(this,'_error$',new _0x38d9e8[(_0x411aa4(0x247))]()),_0x541894(this,'error$',this[_0x411aa4(0x235)][_0x411aa4(0x21d)]());}[_0x345eb4(0x1d8)](_0x5a7743){const _0x40d7ab=_0x345eb4;this['_error$'][_0x40d7ab(0x212)](_0x5a7743);}[_0x345eb4(0x1e7)](){const _0x5090cc=_0x345eb4;super[_0x5090cc(0x1e7)](),this['_error$'][_0x5090cc(0x23e)]();}};let _0x2ede05={'id':'sheet.mutation.add-dimension-outline','type':_0x347900[_0x345eb4(0x239)][_0x345eb4(0x1d5)],'handler':(_0x58005f,_0x2c4e5f)=>{const _0xb0b491=_0x345eb4;let _0x4cea4a=_0x58005f['get'](_0x25cc1b),_0x5c9d64=_0x4cea4a['getOutlines'](_0x2c4e5f[_0xb0b491(0x224)],_0x2c4e5f['subUnitId']);return _0x4cea4a[_0xb0b491(0x226)](_0x2c4e5f['unitId'],_0x2c4e5f[_0xb0b491(0x1ec)],_0x22b3db(_0x5c9d64,_0x2c4e5f[_0xb0b491(0x1eb)])),!0x0;}},_0x35d0d6={'id':_0x345eb4(0x193),'type':_0x347900[_0x345eb4(0x239)][_0x345eb4(0x1d5)],'handler':(_0x45b7c9,_0x71e021)=>{const _0x377455=_0x345eb4;let _0x4d22ee=_0x45b7c9[_0x377455(0x1c9)](_0x25cc1b),_0xc5fc1f=_0x4d22ee[_0x377455(0x1ea)](_0x71e021[_0x377455(0x224)],_0x71e021['subUnitId']);return _0x4d22ee[_0x377455(0x226)](_0x71e021[_0x377455(0x224)],_0x71e021[_0x377455(0x1ec)],_0xc5fc1f[_0x377455(0x1d4)](_0x24c386=>_0x24c386['id']!==_0x71e021[_0x377455(0x265)])),!0x0;}};function _0x32270c(_0x191735,_0x44d3ef,_0x498fbc){const _0x1f37e6=_0x345eb4;let _0x11d1c9=_0x4e1eb1(_0x191735);return!_0x11d1c9||_0x11d1c9[_0x1f37e6(0x1b9)]({'workbookTypes':[_0x3189f8[_0x1f37e6(0x196)]],'worksheetTypes':[_0x3189f8[_0x1f37e6(0x190)]]},_0x44d3ef,_0x498fbc);}function _0x1c38ae(_0xc56eb8,_0xe5f015,_0x559510){const _0x1e0306=_0x345eb4;var _0x2dcc2f;let _0x22d9d9=_0x1fdbfd(_0xc56eb8);return((_0x2dcc2f=_0x22d9d9==null?void 0x0:_0x22d9d9[_0x1e0306(0x227)])==null?(0x0,_0x38d9e8['of'])(null):_0x2dcc2f)[_0x1e0306(0x26c)]((0x0,_0x520540[_0x1e0306(0x21f)])(0x64),(0x0,_0x520540['startWith'])(null),(0x0,_0x520540[_0x1e0306(0x263)])(()=>_0x32270c(_0xc56eb8,_0xe5f015,_0x559510)));}function _0x4e1eb1(_0x3950bd){const _0x279b19=_0x345eb4;if(typeof _0x3950bd[_0x279b19(0x1f5)]==_0x279b19(0x234)&&!_0x3950bd[_0x279b19(0x1f5)](_0x3189f8[_0x279b19(0x25a)]))return null;try{return _0x3950bd[_0x279b19(0x1c9)](_0x3189f8['SheetPermissionCheckController']);}catch{return null;}}function _0x1fdbfd(_0xd8a2d3){const _0x4618c4=_0x345eb4;if(typeof _0xd8a2d3[_0x4618c4(0x1f5)]==_0x4618c4(0x234)&&!_0xd8a2d3[_0x4618c4(0x1f5)](_0x347900[_0x4618c4(0x256)]))return null;try{return _0xd8a2d3[_0x4618c4(0x1c9)](_0x347900[_0x4618c4(0x256)]);}catch{return null;}}let _0x49e3aa={'id':'sheet.command.add-dimension-outline','type':_0x347900[_0x345eb4(0x239)]['COMMAND'],'handler':(_0x4aee63,_0x584bdd)=>{const _0x579d5d=_0x345eb4;var _0x381e48,_0x1e39a4;if(!_0x584bdd)return!0x1;let _0x53c2ee=(0x0,_0x3189f8[_0x579d5d(0x23b)])(_0x4aee63[_0x579d5d(0x1c9)](_0x347900['IUniverInstanceService']),_0x584bdd);if(!_0x53c2ee)return!0x1;let {unitId:_0x19f17d,subUnitId:_0xcd2c56,worksheet:_0x285d07}=_0x53c2ee;if(!_0x32270c(_0x4aee63,_0x19f17d,_0xcd2c56))return!0x1;let _0x1c7834=_0x4aee63['get'](_0x25cc1b),_0x44201a={'id':_0x579d5d(0x20a)+(0x0,_0x347900['generateRandomId'])(0x6),'unitId':_0x19f17d,'subUnitId':_0xcd2c56,'axis':_0x584bdd[_0x579d5d(0x205)],'start':_0x584bdd[_0x579d5d(0x25c)],'end':_0x584bdd['end'],'collapsed':!0x1},_0x5ee93d=_0x584bdd[_0x579d5d(0x205)]===_0x579d5d(0x1df)?_0x285d07[_0x579d5d(0x1d6)]():_0x285d07['getColumnCount'](),_0x2d82b6=_0x1c7834[_0x579d5d(0x1ea)](_0x19f17d,_0xcd2c56),_0x1d191a=_0x424eb1(_0x2d82b6,_0x44201a),_0x2ceb22=(_0x381e48=_0x1d191a==null?void 0x0:_0x1d191a['mergedOutlines'])==null?[]:_0x381e48,_0x321f70=(_0x1e39a4=_0x1d191a==null?void 0x0:_0x1d191a[_0x579d5d(0x261)])==null?_0x44201a:_0x1e39a4,_0xbf121a=_0x436188(_0x1d191a?_0x2d82b6[_0x579d5d(0x1d4)](_0x148248=>!_0x2ceb22[_0x579d5d(0x257)](_0x37bbf9=>_0x37bbf9['id']===_0x148248['id'])):_0x2d82b6,_0x321f70,{'maxIndex':_0x5ee93d});if(!_0xbf121a['valid']){var _0x71ff31;return _0x4aee63['get'](_0xa7d4c1)['emit']({'reason':(_0x71ff31=_0xbf121a[_0x579d5d(0x209)])==null?'unknown':_0x71ff31,'commandId':_0x49e3aa['id'],'unitId':_0x19f17d,'subUnitId':_0xcd2c56,'axis':_0x584bdd['axis'],'outlineId':_0x321f70['id']}),!0x1;}let _0x432b62=[..._0x2ceb22[_0x579d5d(0x263)](_0x172f04=>({'id':_0x35d0d6['id'],'params':{'unitId':_0x19f17d,'subUnitId':_0xcd2c56,'outlineId':_0x172f04['id']}})),{'id':_0x2ede05['id'],'params':{'unitId':_0x19f17d,'subUnitId':_0xcd2c56,'outline':_0x321f70}}],_0x4cf65f=[{'id':_0x35d0d6['id'],'params':{'unitId':_0x19f17d,'subUnitId':_0xcd2c56,'outlineId':_0x321f70['id']}},..._0x2ceb22[_0x579d5d(0x263)](_0xaca4cc=>({'id':_0x2ede05['id'],'params':{'unitId':_0x19f17d,'subUnitId':_0xcd2c56,'outline':_0xaca4cc}}))];return(0x0,_0x347900[_0x579d5d(0x18e)])(_0x432b62,_0x4aee63['get'](_0x347900[_0x579d5d(0x21e)]))['result']?(_0x4aee63['get'](_0x347900[_0x579d5d(0x207)])['pushUndoRedo']({'unitID':_0x19f17d,'undoMutations':_0x4cf65f,'redoMutations':_0x432b62}),!0x0):!0x1;}},_0x501785={'id':_0x345eb4(0x1cd),'type':_0x347900['CommandType'][_0x345eb4(0x1d5)],'handler':(_0x344f20,_0xc9ff91)=>{const _0x19cb86=_0x345eb4;let _0x2a9916=_0x344f20[_0x19cb86(0x1c9)](_0x25cc1b),_0x41fbe8=_0x2a9916[_0x19cb86(0x1ea)](_0xc9ff91[_0x19cb86(0x224)],_0xc9ff91['subUnitId']);return _0x2a9916[_0x19cb86(0x226)](_0xc9ff91[_0x19cb86(0x224)],_0xc9ff91[_0x19cb86(0x1ec)],_0x1917a9(_0x41fbe8,_0xc9ff91)),!0x0;}},_0x22a455={'id':'sheet.command.clear-dimension-outlines','type':_0x347900[_0x345eb4(0x239)][_0x345eb4(0x1a6)],'handler':(_0x17a26,_0x5c8495)=>{const _0x1e5ec4=_0x345eb4;if(!_0x5c8495)return!0x1;let _0x3d7e7e=(0x0,_0x3189f8[_0x1e5ec4(0x23b)])(_0x17a26[_0x1e5ec4(0x1c9)](_0x347900[_0x1e5ec4(0x1f0)]),_0x5c8495);if(!_0x3d7e7e)return!0x1;let {unitId:_0x429dbe,subUnitId:_0x3a38d0}=_0x3d7e7e;if(!_0x32270c(_0x17a26,_0x429dbe,_0x3a38d0))return!0x1;let _0x342754={'unitId':_0x429dbe,'subUnitId':_0x3a38d0,'axis':_0x5c8495[_0x1e5ec4(0x205)],'start':_0x5c8495[_0x1e5ec4(0x25c)],'end':_0x5c8495[_0x1e5ec4(0x244)]},_0x158c90=_0x17a26[_0x1e5ec4(0x1c9)](_0x25cc1b)['getOutlines'](_0x429dbe,_0x3a38d0)[_0x1e5ec4(0x1d4)](_0x3d2185=>_0x543f28(_0x3d2185,_0x342754)&&_0x3d2185['start']>=_0x5c8495[_0x1e5ec4(0x25c)]&&_0x3d2185[_0x1e5ec4(0x244)]<=_0x5c8495[_0x1e5ec4(0x244)]);if(_0x158c90['length']===0x0)return _0x17a26['get'](_0xa7d4c1)[_0x1e5ec4(0x1d8)]({'reason':_0x1e5ec4(0x1c8),'commandId':_0x22a455['id'],'unitId':_0x429dbe,'subUnitId':_0x3a38d0,'axis':_0x5c8495[_0x1e5ec4(0x205)]}),!0x1;let _0x10aecf=[{'id':_0x501785['id'],'params':{..._0x342754,'removedOutlineIds':_0x158c90[_0x1e5ec4(0x263)](_0x21a5b7=>_0x21a5b7['id'])}}],_0x402016=_0x158c90[_0x1e5ec4(0x263)](_0x2f7e8f=>({'id':_0x2ede05['id'],'params':{'unitId':_0x429dbe,'subUnitId':_0x3a38d0,'outline':_0x2f7e8f}}));return(0x0,_0x347900[_0x1e5ec4(0x18e)])(_0x10aecf,_0x17a26['get'](_0x347900[_0x1e5ec4(0x21e)]))['result']?(_0x17a26[_0x1e5ec4(0x1c9)](_0x347900[_0x1e5ec4(0x207)])['pushUndoRedo']({'unitID':_0x429dbe,'undoMutations':_0x402016,'redoMutations':_0x10aecf}),!0x0):!0x1;}},_0x3c6df1={'id':_0x345eb4(0x273),'type':_0x347900[_0x345eb4(0x239)][_0x345eb4(0x1a6)],'handler':(_0x3b408b,_0x4892d8)=>{const _0x321027=_0x345eb4;if(!_0x4892d8)return!0x1;let _0xd7be7d=(0x0,_0x3189f8[_0x321027(0x23b)])(_0x3b408b['get'](_0x347900['IUniverInstanceService']),_0x4892d8);if(!_0xd7be7d)return!0x1;let {unitId:_0x48baa6,subUnitId:_0x1e8105}=_0xd7be7d;if(!_0x32270c(_0x3b408b,_0x48baa6,_0x1e8105))return!0x1;let _0x216d41=_0x3b408b['get'](_0x25cc1b)[_0x321027(0x1ea)](_0x48baa6,_0x1e8105)[_0x321027(0x266)](_0xf4d0ed=>_0xf4d0ed['id']===_0x4892d8['outlineId']);if(!_0x216d41)return!0x1;let _0x43cf74=[{'id':_0x35d0d6['id'],'params':{'unitId':_0x48baa6,'subUnitId':_0x1e8105,'outlineId':_0x216d41['id'],'outline':_0x216d41}}],_0x13cad8=[{'id':_0x2ede05['id'],'params':{'unitId':_0x48baa6,'subUnitId':_0x1e8105,'outline':_0x216d41}}];return(0x0,_0x347900[_0x321027(0x18e)])(_0x43cf74,_0x3b408b['get'](_0x347900[_0x321027(0x21e)]))[_0x321027(0x25b)]?(_0x3b408b['get'](_0x347900[_0x321027(0x207)])['pushUndoRedo']({'unitID':_0x48baa6,'undoMutations':_0x13cad8,'redoMutations':_0x43cf74}),!0x0):!0x1;}},_0xc6dc57={'id':_0x345eb4(0x1a8),'type':_0x347900[_0x345eb4(0x239)][_0x345eb4(0x1d5)],'handler':(_0x51bb98,_0x10def1)=>{const _0x317218=_0x345eb4;let _0x3e7270=_0x51bb98[_0x317218(0x1c9)](_0x25cc1b),_0xdd940=_0x3e7270[_0x317218(0x1ea)](_0x10def1[_0x317218(0x224)],_0x10def1[_0x317218(0x1ec)]),_0x493849=_0xdd940[_0x317218(0x266)](_0x2137ad=>_0x2137ad['id']===_0x10def1[_0x317218(0x265)]);return _0x493849&&_0x3e7270[_0x317218(0x226)](_0x10def1[_0x317218(0x224)],_0x10def1[_0x317218(0x1ec)],_0xdd940['map'](_0x213864=>_0x213864[_0x317218(0x224)]!==_0x493849[_0x317218(0x224)]||_0x213864[_0x317218(0x1ec)]!==_0x493849[_0x317218(0x1ec)]||_0x213864[_0x317218(0x205)]!==_0x493849[_0x317218(0x205)]||_0x213864[_0x317218(0x25c)]!==_0x493849[_0x317218(0x25c)]||_0x213864['end']!==_0x493849[_0x317218(0x244)]?_0x213864:{..._0x213864,'collapsed':_0x10def1[_0x317218(0x22d)]})),!0x0;}};function _0x433dc8(_0xee56ef,_0x291054,_0x472645,_0x267c79){const _0x4e8c59=_0x345eb4;return _0xee56ef===_0x4e8c59(0x1df)?{'startRow':_0x291054,'endRow':_0x472645,'startColumn':0x0,'endColumn':_0x267c79[_0x4e8c59(0x241)]()-0x1}:{'startRow':0x0,'endRow':_0x267c79['getRowCount']()-0x1,'startColumn':_0x291054,'endColumn':_0x472645};}function _0x27b5f2(_0x469040){const _0x2497bf=_0x345eb4;return _0x469040===_0x2497bf(0x1df)?_0x3189f8['SetRowHiddenMutation']['id']:_0x3189f8[_0x2497bf(0x1b6)]['id'];}function _0x1882d1(_0x3655e8){const _0x1b52cd=_0x345eb4;return _0x3655e8===_0x1b52cd(0x1df)?_0x3189f8[_0x1b52cd(0x259)]['id']:_0x3189f8[_0x1b52cd(0x21b)]['id'];}function _0x351a0c(_0x3be988,_0x46ecfb,_0x37718f,_0x45e019){const _0x26fc72=_0x345eb4;let _0x79b0c6=_0x46ecfb?[_0x433dc8(_0x3be988[_0x26fc72(0x205)],_0x3be988[_0x26fc72(0x25c)],_0x3be988['end'],_0x37718f)]:_0xffc416(_0x3be988,_0x45e019,_0x37718f),_0x2ad391=_0x46ecfb?_0x27b5f2(_0x3be988[_0x26fc72(0x205)]):_0x1882d1(_0x3be988[_0x26fc72(0x205)]);return[{'id':_0xc6dc57['id'],'params':{'unitId':_0x3be988[_0x26fc72(0x224)],'subUnitId':_0x3be988[_0x26fc72(0x1ec)],'outlineId':_0x3be988['id'],'outline':_0x3be988,'collapsed':_0x46ecfb}},..._0x79b0c6[_0x26fc72(0x263)](_0x1714a4=>({'id':_0x2ad391,'params':{'unitId':_0x3be988[_0x26fc72(0x224)],'subUnitId':_0x3be988[_0x26fc72(0x1ec)],'ranges':[_0x1714a4],'dimensionOutlineId':_0x3be988['id']}}))];}function _0xffc416(_0xa3f2ae,_0x4d51a9,_0xbac8a5){const _0xd63ddc=_0x345eb4;let _0x49af55=_0x43041a(_0x4d51a9[_0xd63ddc(0x263)](_0x56f095=>_0x165b1b(_0x56f095,_0xa3f2ae)?{..._0x56f095,'collapsed':!0x1}:_0x56f095),_0xa3f2ae[_0xd63ddc(0x224)],_0xa3f2ae[_0xd63ddc(0x1ec)],_0xa3f2ae[_0xd63ddc(0x205)]);return _0x28ffbc({'start':_0xa3f2ae[_0xd63ddc(0x25c)],'end':_0xa3f2ae['end']},_0x49af55)[_0xd63ddc(0x263)](_0x3bf56b=>_0x433dc8(_0xa3f2ae['axis'],_0x3bf56b[_0xd63ddc(0x25c)],_0x3bf56b[_0xd63ddc(0x244)],_0xbac8a5));}function _0x165b1b(_0x1e14ed,_0x59c965){const _0x50cb87=_0x345eb4;return _0x1e14ed['unitId']===_0x59c965[_0x50cb87(0x224)]&&_0x1e14ed['subUnitId']===_0x59c965[_0x50cb87(0x1ec)]&&_0x1e14ed[_0x50cb87(0x205)]===_0x59c965[_0x50cb87(0x205)]&&_0x1e14ed['start']===_0x59c965[_0x50cb87(0x25c)]&&_0x1e14ed[_0x50cb87(0x244)]===_0x59c965[_0x50cb87(0x244)];}function _0x28ffbc(_0x28ef61,_0x4d37b5){const _0x1a45b9=_0x345eb4;let _0x5ec63d=_0x28ef61[_0x1a45b9(0x25c)],_0x397d3b=[];for(let _0x3f481b of _0x4d37b5)if(!(_0x3f481b[_0x1a45b9(0x244)]<_0x5ec63d||_0x3f481b[_0x1a45b9(0x25c)]>_0x28ef61[_0x1a45b9(0x244)])&&(_0x3f481b[_0x1a45b9(0x25c)]>_0x5ec63d&&_0x397d3b[_0x1a45b9(0x26f)]({'start':_0x5ec63d,'end':Math[_0x1a45b9(0x21a)](_0x3f481b[_0x1a45b9(0x25c)]-0x1,_0x28ef61[_0x1a45b9(0x244)])}),_0x5ec63d=Math[_0x1a45b9(0x1b4)](_0x5ec63d,_0x3f481b[_0x1a45b9(0x244)]+0x1),_0x5ec63d>_0x28ef61['end']))break;return _0x5ec63d<=_0x28ef61[_0x1a45b9(0x244)]&&_0x397d3b[_0x1a45b9(0x26f)]({'start':_0x5ec63d,'end':_0x28ef61[_0x1a45b9(0x244)]}),_0x397d3b;}let _0x18aa75={'id':_0x345eb4(0x23c),'type':_0x347900[_0x345eb4(0x239)][_0x345eb4(0x1a6)],'handler':(_0x4ca8c9,_0x44d1d5)=>{const _0x57b8e2=_0x345eb4;if(!_0x44d1d5)return!0x1;let _0x3d21cb=(0x0,_0x3189f8[_0x57b8e2(0x23b)])(_0x4ca8c9['get'](_0x347900[_0x57b8e2(0x1f0)]),_0x44d1d5);if(!_0x3d21cb)return!0x1;let {unitId:_0x107c96,subUnitId:_0x261344,worksheet:_0x4bbd1b}=_0x3d21cb;if(!_0x32270c(_0x4ca8c9,_0x107c96,_0x261344))return!0x1;let _0x5ba387=_0x4ca8c9['get'](_0x25cc1b)[_0x57b8e2(0x1ea)](_0x107c96,_0x261344),_0x123a4f=_0x5ba387[_0x57b8e2(0x266)](_0x42b45c=>_0x42b45c['id']===_0x44d1d5[_0x57b8e2(0x265)]);if(!_0x123a4f||_0x123a4f[_0x57b8e2(0x22d)]===_0x44d1d5[_0x57b8e2(0x22d)])return!0x1;let _0x831352=_0x351a0c(_0x123a4f,_0x44d1d5['collapsed'],_0x4bbd1b,_0x5ba387),_0x2b3618=_0x351a0c(_0x123a4f,!_0x44d1d5['collapsed'],_0x4bbd1b,_0x5ba387);return(0x0,_0x347900[_0x57b8e2(0x18e)])(_0x831352,_0x4ca8c9[_0x57b8e2(0x1c9)](_0x347900[_0x57b8e2(0x21e)]))[_0x57b8e2(0x25b)]?(_0x4ca8c9[_0x57b8e2(0x1c9)](_0x347900['IUndoRedoService'])[_0x57b8e2(0x19f)]({'unitID':_0x107c96,'undoMutations':_0x2b3618,'redoMutations':_0x831352}),!0x0):!0x1;}},_0x37a6cb={'id':_0x345eb4(0x1a4),'type':_0x347900['CommandType']['MUTATION'],'handler':(_0x4a833b,_0x2a996)=>{const _0x3b1d73=_0x345eb4;let _0x350c99=_0x4a833b[_0x3b1d73(0x1c9)](_0x25cc1b),_0x1ba57=_0x163310(_0x350c99[_0x3b1d73(0x1ea)](_0x2a996[_0x3b1d73(0x224)],_0x2a996[_0x3b1d73(0x1ec)]),_0x2a996);return _0x350c99[_0x3b1d73(0x226)](_0x2a996[_0x3b1d73(0x224)],_0x2a996['subUnitId'],_0x1ba57),!0x0;}};function _0x163310(_0x39a747,_0x5107a9){const _0x44462b=_0x345eb4;switch(_0x5107a9['type']){case _0x44462b(0x24a):return _0x5107a9[_0x44462b(0x25e)]?_0x3e09e4(_0x39a747,_0x5107a9):_0x29f065(_0x39a747,_0x5107a9);case _0x44462b(0x1b8):return _0x2d3ee1(_0x39a747,_0x5107a9);case _0x44462b(0x200):return _0x24ab97(_0x39a747,_0x5107a9);}}function _0x3e09e4(_0x77f9c6,_0x162b65){const _0x2cbc76=_0x345eb4;return[..._0x77f9c6['filter'](_0x44a190=>_0x44a190['unitId']!==_0x162b65[_0x2cbc76(0x224)]||_0x44a190['subUnitId']!==_0x162b65[_0x2cbc76(0x1ec)]||_0x44a190[_0x2cbc76(0x205)]!==_0x162b65['axis']),..._0x162b65[_0x2cbc76(0x25e)]];}let _0x1069b0=_0x345eb4(0x220);var _0x2c5a7b=_0x345eb4(0x1a3),_0x3ce73e='1.0.0-alpha.8';let _0x44abc2={};function _0x2f524d(_0x16e795,_0x409263){return function(_0x5ac135,_0x369ea8){_0x409263(_0x5ac135,_0x369ea8,_0x16e795);};}function _0x2c9509(_0x15a370,_0x3e0387,_0x16ae58,_0x1c2ab3){const _0x501e20=_0x345eb4;var _0x20e96=arguments[_0x501e20(0x1fa)],_0x2eadda=_0x20e96<0x3?_0x3e0387:_0x1c2ab3===null?_0x1c2ab3=Object[_0x501e20(0x1f1)](_0x3e0387,_0x16ae58):_0x1c2ab3,_0x16dbef;if(typeof Reflect==_0x501e20(0x1cf)&&typeof Reflect[_0x501e20(0x1f7)]==_0x501e20(0x234))_0x2eadda=Reflect[_0x501e20(0x1f7)](_0x15a370,_0x3e0387,_0x16ae58,_0x1c2ab3);else{for(var _0x2de87e=_0x15a370[_0x501e20(0x1fa)]-0x1;_0x2de87e>=0x0;_0x2de87e--)(_0x16dbef=_0x15a370[_0x2de87e])&&(_0x2eadda=(_0x20e96<0x3?_0x16dbef(_0x2eadda):_0x20e96>0x3?_0x16dbef(_0x3e0387,_0x16ae58,_0x2eadda):_0x16dbef(_0x3e0387,_0x16ae58))||_0x2eadda);}return _0x20e96>0x3&&_0x2eadda&&Object[_0x501e20(0x24d)](_0x3e0387,_0x16ae58,_0x2eadda),_0x2eadda;}let _0x25ad16={'redos':[],'undos':[],'preRedos':[],'preUndos':[]},_0x3c209a=class extends _0x347900[_0x345eb4(0x20d)]{constructor(_0x2506d8,_0x2709db,_0x55d13d,_0x4271c9){const _0xdf1a1=_0x345eb4;super(),this['_univerInstanceService']=_0x2506d8,this[_0xdf1a1(0x1c1)]=_0x2709db,this[_0xdf1a1(0x194)]=_0x55d13d,this[_0xdf1a1(0x1b1)]=_0x4271c9,this[_0xdf1a1(0x213)]();}['_initCommandInterceptor'](){const _0x180492=_0x345eb4;this['disposeWithMe'](this[_0x180492(0x1c1)][_0x180492(0x249)]({'getMutations':_0x55c74e=>_0x2f4ca9(_0x55c74e,(_0x18dbd8,_0x4cad91)=>this[_0x180492(0x194)][_0x180492(0x1ea)](_0x18dbd8,_0x4cad91),this[_0x180492(0x202)](_0x55c74e['params']),_0x2c825e=>this[_0x180492(0x1b1)][_0x180492(0x1d8)](_0x2c825e))}));}[_0x345eb4(0x202)](_0x24cd0a){const _0x19268f=_0x345eb4;let _0x3f4e59=_0x24cd0a,_0x5dffc7=_0x3f4e59!=null&&_0x3f4e59[_0x19268f(0x224)]?this[_0x19268f(0x24f)][_0x19268f(0x219)](_0x3f4e59[_0x19268f(0x224)],_0x347900[_0x19268f(0x1cc)][_0x19268f(0x229)]):this['_univerInstanceService'][_0x19268f(0x1e2)](_0x347900['UniverInstanceType']['UNIVER_SHEET']);if(!_0x5dffc7)return;let _0x2f127d=_0x3f4e59!=null&&_0x3f4e59[_0x19268f(0x1ec)]?_0x5dffc7[_0x19268f(0x1f3)](_0x3f4e59[_0x19268f(0x1ec)]):_0x5dffc7[_0x19268f(0x1a5)]();if(_0x2f127d)return{'unitId':_0x5dffc7[_0x19268f(0x228)](),'subUnitId':_0x2f127d[_0x19268f(0x268)]()};}};_0x3c209a=_0x2c9509([_0x2f524d(0x0,_0x347900[_0x345eb4(0x1f0)]),_0x2f524d(0x1,(0x0,_0x347900[_0x345eb4(0x251)])(_0x3189f8[_0x345eb4(0x208)])),_0x2f524d(0x2,(0x0,_0x347900['Inject'])(_0x25cc1b)),_0x2f524d(0x3,(0x0,_0x347900[_0x345eb4(0x251)])(_0xa7d4c1))],_0x3c209a);function _0x2f4ca9(_0x16d866,_0x1342d0,_0x36f5bb,_0x165156){const _0x2cce21=_0x345eb4;let _0x22dc48=_0x2efc30(_0x16d866,_0x36f5bb);if(!_0x22dc48)return _0x1e011b();let _0x358d92=_0x1342d0(_0x22dc48[_0x2cce21(0x224)],_0x22dc48[_0x2cce21(0x1ec)]);if(!_0x358d92[_0x2cce21(0x257)](_0x54ad90=>_0x54ad90[_0x2cce21(0x205)]===_0x22dc48[_0x2cce21(0x205)]))return _0x1e011b();_0x382098(_0x358d92,_0x22dc48,_0x16d866['id'],_0x165156);let _0x34fc91=_0x18b944(_0x22dc48,_0x358d92);return{'redos':[{'id':_0x37a6cb['id'],'params':_0x22dc48}],'undos':[{'id':_0x37a6cb['id'],'params':_0x34fc91}],'preRedos':[],'preUndos':[]};}function _0x382098(_0x31f069,_0x8ef358,_0x22c987,_0xb4f84d){const _0xf46940=_0x345eb4;try{switch(_0x8ef358['type']){case _0xf46940(0x24a):_0x29f065(_0x31f069,_0x8ef358);break;case _0xf46940(0x1b8):_0x2d3ee1(_0x31f069,_0x8ef358);break;case _0xf46940(0x200):_0x24ab97(_0x31f069,_0x8ef358);break;}}catch(_0x36f872){throw _0xb4f84d==null||_0xb4f84d({'reason':_0x48a7da(_0x36f872),'commandId':_0x22c987,'unitId':_0x8ef358[_0xf46940(0x224)],'subUnitId':_0x8ef358[_0xf46940(0x1ec)],'axis':_0x8ef358[_0xf46940(0x205)],'outlineId':_0x4c00fc(_0x36f872)}),new _0x347900[(_0xf46940(0x254))](_0x36f872 instanceof Error?_0x36f872[_0xf46940(0x216)]:_0xf46940(0x1ff));}}function _0x2efc30(_0x4f160a,_0x2b4f53){const _0x7a39ca=_0x345eb4;switch(_0x4f160a['id']){case _0x3189f8[_0x7a39ca(0x19b)]['id']:return _0x57e714(_0x4f160a[_0x7a39ca(0x26d)],_0x7a39ca(0x1df),_0x2b4f53);case _0x3189f8[_0x7a39ca(0x1a1)]['id']:return _0x57e714(_0x4f160a[_0x7a39ca(0x26d)],_0x7a39ca(0x24b),_0x2b4f53);case _0x3189f8[_0x7a39ca(0x1ef)]['id']:return _0x264c25(_0x4f160a[_0x7a39ca(0x26d)],'row',_0x2b4f53);case _0x3189f8['RemoveColCommand']['id']:return _0x264c25(_0x4f160a[_0x7a39ca(0x26d)],'column',_0x2b4f53);case _0x3189f8[_0x7a39ca(0x1dd)]['id']:return _0x4a8f35(_0x4f160a['params'],_0x7a39ca(0x1df),_0x2b4f53);case _0x3189f8[_0x7a39ca(0x1e0)]['id']:return _0x4a8f35(_0x4f160a[_0x7a39ca(0x26d)],_0x7a39ca(0x24b),_0x2b4f53);default:return null;}}function _0x57e714(_0x4a09d7,_0x5cf230,_0x279432){const _0x325d2e=_0x345eb4;let _0x189eb4=_0x3ae174(_0x4a09d7,_0x279432);if(!(_0x4a09d7!=null&&_0x4a09d7[_0x325d2e(0x18d)])||!_0x189eb4)return null;let _0x1b5fe7=_0x5cf230===_0x325d2e(0x1df)?_0x4a09d7[_0x325d2e(0x18d)][_0x325d2e(0x19e)]:_0x4a09d7[_0x325d2e(0x18d)][_0x325d2e(0x225)],_0x111003=_0x5cf230===_0x325d2e(0x1df)?_0x4a09d7[_0x325d2e(0x18d)]['endRow']:_0x4a09d7['range'][_0x325d2e(0x1be)];return{..._0x189eb4,'axis':_0x5cf230,'type':_0x325d2e(0x24a),'index':_0x1b5fe7,'count':_0x111003-_0x1b5fe7+0x1};}function _0x264c25(_0x4c032c,_0x51db5a,_0x55adb8){const _0x504249=_0x345eb4;let _0x213d70=_0x3ae174(_0x4c032c,_0x55adb8);if(!(_0x4c032c!=null&&_0x4c032c[_0x504249(0x18d)])||!_0x213d70)return null;let _0x118b95=_0x51db5a===_0x504249(0x1df)?_0x4c032c[_0x504249(0x18d)][_0x504249(0x19e)]:_0x4c032c[_0x504249(0x18d)][_0x504249(0x225)],_0x5b6727=_0x51db5a===_0x504249(0x1df)?_0x4c032c['range']['endRow']:_0x4c032c[_0x504249(0x18d)][_0x504249(0x1be)];return{..._0x213d70,'axis':_0x51db5a,'type':_0x504249(0x1b8),'start':_0x118b95,'end':_0x5b6727};}function _0x4a8f35(_0x23cb32,_0x3753ca,_0x25a132){const _0x2efe52=_0x345eb4;let _0x1cf67a=_0x3ae174(_0x23cb32,_0x25a132);if(!(_0x23cb32!=null&&_0x23cb32[_0x2efe52(0x20f)])||!_0x23cb32[_0x2efe52(0x1ce)]||!_0x1cf67a)return null;let _0x75f0c6=_0x3753ca==='row'?_0x23cb32[_0x2efe52(0x20f)][_0x2efe52(0x19e)]:_0x23cb32[_0x2efe52(0x20f)][_0x2efe52(0x225)],_0x36084f=_0x3753ca===_0x2efe52(0x1df)?_0x23cb32[_0x2efe52(0x20f)][_0x2efe52(0x1fc)]:_0x23cb32['fromRange'][_0x2efe52(0x1be)],_0x41a405=_0x3753ca==='row'?_0x23cb32[_0x2efe52(0x1ce)][_0x2efe52(0x19e)]:_0x23cb32[_0x2efe52(0x1ce)][_0x2efe52(0x225)];return{..._0x1cf67a,'axis':_0x3753ca,'type':_0x2efe52(0x200),'sourceStart':_0x75f0c6,'sourceEnd':_0x36084f,'destinationIndex':_0x41a405};}function _0x18b944(_0x22ff22,_0x35544a){const _0x43671a=_0x345eb4;switch(_0x22ff22[_0x43671a(0x1ac)]){case _0x43671a(0x24a):return{'unitId':_0x22ff22[_0x43671a(0x224)],'subUnitId':_0x22ff22[_0x43671a(0x1ec)],'axis':_0x22ff22[_0x43671a(0x205)],'type':_0x43671a(0x1b8),'start':_0x22ff22[_0x43671a(0x1c7)],'end':_0x22ff22[_0x43671a(0x1c7)]+_0x22ff22[_0x43671a(0x230)]-0x1};case _0x43671a(0x1b8):return{'unitId':_0x22ff22[_0x43671a(0x224)],'subUnitId':_0x22ff22['subUnitId'],'axis':_0x22ff22[_0x43671a(0x205)],'type':_0x43671a(0x24a),'index':_0x22ff22[_0x43671a(0x25c)],'count':_0x22ff22[_0x43671a(0x244)]-_0x22ff22[_0x43671a(0x25c)]+0x1,'restoreOutlines':_0x35544a[_0x43671a(0x1d4)](_0x7b3086=>_0x7b3086['unitId']===_0x22ff22['unitId']&&_0x7b3086[_0x43671a(0x1ec)]===_0x22ff22['subUnitId']&&_0x7b3086[_0x43671a(0x205)]===_0x22ff22['axis'])};case'move':return _0x5c318a(_0x22ff22);}}function _0x5c318a(_0x149a2f){const _0x525cf2=_0x345eb4;let _0x595b12=_0x149a2f[_0x525cf2(0x1ca)]-_0x149a2f[_0x525cf2(0x1bd)]+0x1;return _0x149a2f[_0x525cf2(0x210)]>=_0x149a2f[_0x525cf2(0x1bd)]&&_0x149a2f['destinationIndex']<=_0x149a2f[_0x525cf2(0x1ca)]+0x1?{..._0x149a2f}:_0x149a2f[_0x525cf2(0x210)]>_0x149a2f[_0x525cf2(0x1ca)]+0x1?{..._0x149a2f,'sourceStart':_0x149a2f[_0x525cf2(0x210)]-_0x595b12,'sourceEnd':_0x149a2f[_0x525cf2(0x210)]-0x1,'destinationIndex':_0x149a2f['sourceStart']}:{..._0x149a2f,'sourceStart':_0x149a2f[_0x525cf2(0x210)],'sourceEnd':_0x149a2f[_0x525cf2(0x210)]+_0x595b12-0x1,'destinationIndex':_0x149a2f[_0x525cf2(0x1ca)]+0x1};}function _0x3ae174(_0x589f70,_0x5b3940){const _0x34c67=_0x345eb4;var _0x3373b6,_0x5dc4fc;let _0x227bd8=(_0x3373b6=_0x589f70==null?void 0x0:_0x589f70[_0x34c67(0x224)])==null?_0x5b3940==null?void 0x0:_0x5b3940['unitId']:_0x3373b6,_0x3a47d1=(_0x5dc4fc=_0x589f70==null?void 0x0:_0x589f70[_0x34c67(0x1ec)])==null?_0x5b3940==null?void 0x0:_0x5b3940[_0x34c67(0x1ec)]:_0x5dc4fc;return _0x227bd8&&_0x3a47d1?{'unitId':_0x227bd8,'subUnitId':_0x3a47d1}:null;}function _0x1e011b(){const _0x5cb104=_0x345eb4;var _0x495887,_0x587f4b;return{'redos':[..._0x25ad16['redos']],'undos':[..._0x25ad16[_0x5cb104(0x269)]],'preRedos':[...(_0x495887=_0x25ad16[_0x5cb104(0x218)])==null?[]:_0x495887],'preUndos':[...(_0x587f4b=_0x25ad16[_0x5cb104(0x23a)])==null?[]:_0x587f4b]};}let _0x484309=class extends _0x347900['Disposable']{constructor(_0x5a11f2,_0x375698){const _0x52beb1=_0x345eb4;super(),this[_0x52beb1(0x253)]=_0x5a11f2,this[_0x52beb1(0x194)]=_0x375698,this[_0x52beb1(0x221)]();}[_0x345eb4(0x221)](){const _0x2fad29=_0x345eb4;this[_0x2fad29(0x240)](this[_0x2fad29(0x253)]['registerPluginResource']({'pluginName':_0x1069b0,'businesses':[_0x347900[_0x2fad29(0x1cc)][_0x2fad29(0x229)]],'toJson':_0x180ea6=>JSON[_0x2fad29(0x18f)](this[_0x2fad29(0x194)][_0x2fad29(0x1a2)](_0x180ea6)),'parseJson':_0x1178e4=>JSON[_0x2fad29(0x20c)](_0x1178e4),'onLoad':(_0x352640,_0x30af15)=>this['_sheetsOutlineModel'][_0x2fad29(0x1b3)](_0x352640,_0x30af15),'onUnLoad':_0x3df650=>this[_0x2fad29(0x194)][_0x2fad29(0x1e4)](_0x3df650)}));}};_0x484309=_0x2c9509([_0x2f524d(0x0,_0x347900[_0x345eb4(0x191)]),_0x2f524d(0x1,(0x0,_0x347900[_0x345eb4(0x251)])(_0x25cc1b))],_0x484309);let _0x349c71=class extends _0x347900[_0x345eb4(0x201)]{constructor(_0x20c763=_0x44abc2,_0x5db32b,_0x1f2352,_0x20178f){const _0x3111d8=_0x345eb4;super(),this[_0x3111d8(0x1ba)]=_0x20c763,this[_0x3111d8(0x1e8)]=_0x5db32b,this[_0x3111d8(0x1c2)]=_0x1f2352,this[_0x3111d8(0x236)]=_0x20178f;let {..._0x5a01cc}=(0x0,_0x347900[_0x3111d8(0x1b5)])({},_0x44abc2,this[_0x3111d8(0x1ba)]);this[_0x3111d8(0x236)][_0x3111d8(0x255)](_0x3111d8(0x1b0),_0x5a01cc);}[_0x345eb4(0x1fb)](){const _0x3a351b=_0x345eb4;this['_injector'][_0x3a351b(0x267)]([_0x25cc1b]),this[_0x3a351b(0x1e8)]['add']([_0xa7d4c1]),this[_0x3a351b(0x1e8)][_0x3a351b(0x267)]([_0x484309]),this[_0x3a351b(0x1e8)][_0x3a351b(0x267)]([_0x3c209a]),this[_0x3a351b(0x24e)](),this[_0x3a351b(0x1e8)][_0x3a351b(0x1c9)](_0x25cc1b),this[_0x3a351b(0x1e8)]['get'](_0xa7d4c1),this[_0x3a351b(0x1e8)][_0x3a351b(0x1c9)](_0x484309),this['_injector']['get'](_0x3c209a);}['_initRegisterCommand'](){const _0x18e612=_0x345eb4;[_0x49e3aa,_0x3c6df1,_0x18aa75,_0x22a455][_0x18e612(0x1c4)](_0x549fa7=>{const _0x4b0939=_0x18e612;this[_0x4b0939(0x240)](this[_0x4b0939(0x1c2)][_0x4b0939(0x1bf)](_0x549fa7));}),[_0x2ede05,_0x35d0d6,_0xc6dc57,_0x501785,_0x37a6cb][_0x18e612(0x1c4)](_0x43aa3d=>{const _0x11a411=_0x18e612;this[_0x11a411(0x240)](this['_commandService'][_0x11a411(0x1bf)](_0x43aa3d));});}};_0x541894(_0x349c71,_0x345eb4(0x1d1),_0x1069b0),_0x541894(_0x349c71,'packageName',_0x2c5a7b),_0x541894(_0x349c71,_0x345eb4(0x23d),_0x3ce73e),_0x541894(_0x349c71,_0x345eb4(0x1ac),_0x347900['UniverInstanceType'][_0x345eb4(0x229)]),_0x349c71=_0x2c9509([(0x0,_0x347900[_0x345eb4(0x1aa)])(_0x511c2a[_0x345eb4(0x260)],_0x3189f8[_0x345eb4(0x26b)]),_0x2f524d(0x1,(0x0,_0x347900[_0x345eb4(0x251)])(_0x347900[_0x345eb4(0x222)])),_0x2f524d(0x2,_0x347900[_0x345eb4(0x21e)]),_0x2f524d(0x3,_0x347900[_0x345eb4(0x203)])],_0x349c71),_0x2a4f7c[_0x345eb4(0x25f)]=_0x49e3aa,_0x2a4f7c[_0x345eb4(0x1d7)]=_0x2ede05,_0x2a4f7c[_0x345eb4(0x22b)]=_0x22a455,_0x2a4f7c['ClearDimensionOutlinesMutation']=_0x501785,_0x2a4f7c[_0x345eb4(0x275)]=_0x8feee8,_0x2a4f7c[_0x345eb4(0x26e)]=_0x4de45e,_0x2a4f7c[_0x345eb4(0x262)]=_0x3c6df1,_0x2a4f7c[_0x345eb4(0x1ee)]=_0x35d0d6,_0x2a4f7c[_0x345eb4(0x220)]=_0x1069b0,_0x2a4f7c[_0x345eb4(0x192)]=_0x18aa75,_0x2a4f7c['SetDimensionOutlineCollapsedMutation']=_0xc6dc57,_0x2a4f7c[_0x345eb4(0x1e6)]=_0xa7d4c1,_0x2a4f7c[_0x345eb4(0x1d3)]=_0x25cc1b,_0x2a4f7c[_0x345eb4(0x211)]=_0x37a6cb,Object['defineProperty'](_0x2a4f7c,_0x345eb4(0x1f4),{'enumerable':!0x0,'get':function(){return _0x349c71;}}),_0x2a4f7c[_0x345eb4(0x1c6)]=_0x563f85,_0x2a4f7c['canAddDimensionOutline']=_0x436188,_0x2a4f7c[_0x345eb4(0x1f6)]=_0x1c38ae,_0x2a4f7c[_0x345eb4(0x195)]=_0x32270c,_0x2a4f7c['transformOutlinesByDelete']=_0x2d3ee1,_0x2a4f7c[_0x345eb4(0x23f)]=_0x29f065,_0x2a4f7c[_0x345eb4(0x1ad)]=_0x24ab97;}));function _0x147e(){const _0x2ccf6c=['sheet.mutation.transform-dimension-outlines','getActiveSheet','COMMAND','includes','sheet.mutation.set-dimension-outline-collapsed','out-of-bounds','DependentOn','1864818CcQZcf','type','transformOutlinesByMove','iterator','depth','sheets-outline.config','_sheetsOutlineErrorService','Module','deserialize','max','merge','SetColHiddenMutation','UniverSheets','delete','permissionCheckWithoutRange','_config','CROSSING','join','sourceStart','endColumn','registerCommand','@univerjs/sheets','_sheetInterceptorService','_commandService','4DuFSSd','forEach','rxjs/operators','buildDimensionOutlineTree','index','clear-range-not-contain-outline','get','sourceEnd','split','UniverInstanceType','sheet.mutation.clear-dimension-outlines','toRange','object','string','pluginName','symbol','SheetsOutlineModel','filter','MUTATION','getRowCount','AddDimensionOutlineMutation','emit','children','split\x20dimension\x20outline','MOVE_SPLITS_OUTLINE','call','MoveRowsCommand','set','row','MoveColsCommand','ROW','getCurrentUnitOfType','30xQIeYu','removeUnit','offset','SheetsOutlineErrorService','dispose','_injector','UniverCore','getOutlines','outline','subUnitId','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','RemoveDimensionOutlineMutation','RemoveRowCommand','IUniverInstanceService','getOwnPropertyDescriptor','name','getSheetBySheetId','UniverSheetsOutlinePlugin','has','getDimensionOutlineViewPermission$','decorate','rxjs','pop','length','onStarting','endRow','crossing','sort','Invalid\x20dimension\x20outline\x20mutation','move','Plugin','_getCommandScope','IConfigService','outlineList','axis','DimensionOutlineError','IUndoRedoService','SheetInterceptorService','reason','dimension-outline-','clear','parse','Disposable','UniverProSheetsOutline','fromRange','destinationIndex','TransformDimensionOutlinesMutation','next','_initCommandInterceptor','82ACzrlR','Move\x20would\x20split\x20dimension\x20outline:\x20','message','localeCompare','preRedos','getUnit','min','SetColVisibleMutation','max-depth','asObservable','ICommandService','debounceTime','SHEET_OUTLINE_PLUGIN','_initResource','Injector','4803736wGoBZj','unitId','startColumn','setOutlines','permissionPointUpdate$','getUnitId','UNIVER_SHEET','prototype','ClearDimensionOutlinesCommand','7jUUOEj','collapsed','@univerjs/core','Invalid\x20outline\x20range','count','Invalid\x20dimension\x20outline\x20move\x20source\x20range','15193GljGbZ','OUT_OF_BOUNDS','function','_error$','_configService','_ensureUnitOutlines','from','CommandType','preUndos','getSheetCommandTarget','sheet.command.set-dimension-outline-collapsed','version','complete','transformOutlinesByInsert','disposeWithMe','getMaxColumns','invalid-dimension-outline','18372805qdKoaC','end','395535OpJRst','invalid-range','Subject','3340280Likxnc','interceptCommand','insert','column','change$','defineProperty','_initRegisterCommand','_univerInstanceService','unknown','Inject','entries','_resourceManagerService','CustomCommandExecutionError','setConfig','IPermissionService','some','_outlines','SetRowVisibleMutation','SheetPermissionCheckController','result','start','1805346lzgakB','restoreOutlines','AddDimensionOutlineCommand','UniverLicensePlugin','mergedOutline','RemoveDimensionOutlineCommand','map','move-splits-outline','outlineId','find','add','getSheetId','undos','default','UniverSheetsPlugin','pipe','params','DimensionOutlineErrorReason','push','@univerjs-pro/license','COLUMN','constructor','sheet.command.remove-dimension-outline','INVALID_RANGE','DimensionOutlineAxis','range','sequenceExecute','stringify','WorksheetViewPermission','IResourceManagerService','SetDimensionOutlineCollapsedCommand','sheet.mutation.remove-dimension-outline','_sheetsOutlineModel','hasDimensionOutlineViewPermission','WorkbookViewPermission','maxDepth','_change$','amd','UniverProLicense','InsertRowCommand','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','values','startRow','pushUndoRedo','maxIndex','InsertColCommand','serialize','@univerjs-pro/sheets-outline'];_0x147e=function(){return _0x2ccf6c;};return _0x147e();}
1
+ function _0x4feb(_0x221973,_0x1df060){_0x221973=_0x221973-0x1a2;const _0x5bb477=_0x5bb4();let _0x4feb42=_0x5bb477[_0x221973];return _0x4feb42;}function _0x5bb4(){const _0x508f66=['registerPluginResource','Invalid\x20dimension\x20outline\x20move\x20source\x20range','start','startWith','startColumn','AddDimensionOutlineCommand','_injector','iterator','permissionCheckWithoutRange','IResourceManagerService','6945165jHAenk','permissionPointUpdate$','IPermissionService','emit','rxjs/operators','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','getUnit','outlineId','axis','get','string','endColumn','preRedos','join','operators','SetRowHiddenMutation','_configService','34022OuOZbT','unknown','sheet.command.add-dimension-outline','subUnitId','find','symbol','offset','12rKMAQc','_change$','filter','clear','sheet.command.clear-dimension-outlines','getColumnCount','setOutlines','sheet.mutation.transform-dimension-outlines','end','4CDbToU','delete','257730QOmhYV','exports','pop','MAX_DEPTH','toRange','call','getOutlines','entries','localeCompare','reason','COMMAND','move-splits-outline','CROSSING','canAddDimensionOutline','Module','toPrimitive','maxIndex','UNKNOWN','prototype','SheetsOutlineModel','IConfigService','dimension-outline-','dispose','count','startRow','outlineList','forEach','InsertColCommand','_sheetsOutlineErrorService','mergedOutline','toStringTag','UNIVER_SHEET','max','392cYdwmH','object','asObservable','sheet.mutation.set-dimension-outline-collapsed','WorkbookViewPermission','MUTATION','row','map','getSheetCommandTarget','deserialize','IUndoRedoService','_config','min','insert','packageName','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','INVALID_RANGE','UniverLicensePlugin','add','Subject','params','removeUnit','type','_commandService','out-of-bounds','endRow','CommandType','set','_resourceManagerService','_univerInstanceService','UniverSheetsOutlinePlugin','some','58569mmBbhY','_sheetsOutlineModel','debounceTime','sheet.command.remove-dimension-outline','amd','result','next','Inject','RemoveDimensionOutlineMutation','ClearDimensionOutlinesMutation','interceptCommand','range','DimensionOutlineError','DimensionOutlineErrorReason','ROW','_initResource','index','_getCommandScope','outline','sheet.mutation.remove-dimension-outline','262555YvIzkW','length','getSheetBySheetId','defineProperty','parse','@univerjs/sheets','setConfig','_ensureUnitOutlines','SheetInterceptorService','getMaxColumns','name','InsertRowCommand','error$','SHEET_OUTLINE_PLUGIN','getActiveSheet','move','_outlines','rxjs','sourceStart','sheet.command.set-dimension-outline-collapsed','has','@univerjs-pro/license','values','depth','getDimensionOutlineViewPermission$','Crossing','ICommandService','MoveColsCommand','pushUndoRedo','DimensionOutlineAxis','SetDimensionOutlineCollapsedCommand','column','OUT_OF_BOUNDS','Disposable','_error$','SheetPermissionCheckController','UniverProSheetsOutline','from','maxDepth','transformOutlinesByDelete','function','pipe','UniverSheets','RemoveColCommand','sourceEnd','constructor','invalid-dimension-outline','sheet.mutation.clear-dimension-outlines','@univerjs-pro/sheets-outline','getOwnPropertyDescriptor','sequenceExecute','children','1807080YAxcnD','sort','push','CustomCommandExecutionError','WorksheetViewPermission','crossing','includes','_initRegisterCommand','mergedOutlines','transformOutlinesByInsert','change$','disposeWithMe','buildDimensionOutlineTree','getRowCount','1.0.0-beta.0','887010zJkcos','decorate','_initCommandInterceptor','split\x20dimension\x20outline','generateRandomId','valid','DependentOn','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','collapsed','registerCommand','destinationIndex','UniverInstanceType','split','IUniverInstanceService','complete','message','invalid-range','undos','restoreOutlines','unitId','fromRange'];_0x5bb4=function(){return _0x508f66;};return _0x5bb4();}(function(_0xcd2090,_0x4cbb6a){const _0x3c0e67=_0x4feb,_0x4133cf=_0xcd2090();while(!![]){try{const _0x57c114=parseInt(_0x3c0e67(0x207))/0x1*(parseInt(_0x3c0e67(0x1f7))/0x2)+parseInt(_0x3c0e67(0x1c6))/0x3+parseInt(_0x3c0e67(0x1fe))/0x4*(-parseInt(_0x3c0e67(0x25e))/0x5)+parseInt(_0x3c0e67(0x209))/0x6+-parseInt(_0x3c0e67(0x24a))/0x7*(parseInt(_0x3c0e67(0x22a))/0x8)+parseInt(_0x3c0e67(0x1e6))/0x9+-parseInt(_0x3c0e67(0x1b7))/0xa;if(_0x57c114===_0x4cbb6a)break;else _0x4133cf['push'](_0x4133cf['shift']());}catch(_0x39c60c){_0x4133cf['push'](_0x4133cf['shift']());}}}(_0x5bb4,0x69032),function(_0xb0f13b,_0x526ab6){const _0x471b91=_0x4feb;typeof exports==_0x471b91(0x22b)&&typeof module<'u'?_0x526ab6(exports,require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs-pro/license')):typeof define=='function'&&define[_0x471b91(0x24e)]?define([_0x471b91(0x20a),'@univerjs/core',_0x471b91(0x263),_0x471b91(0x26f),_0x471b91(0x1ea),_0x471b91(0x273)],_0x526ab6):(_0xb0f13b=typeof globalThis<'u'?globalThis:_0xb0f13b||self,_0x526ab6(_0xb0f13b[_0x471b91(0x1a7)]={},_0xb0f13b['UniverCore'],_0xb0f13b[_0x471b91(0x1ad)],_0xb0f13b['rxjs'],_0xb0f13b['rxjs'][_0x471b91(0x1f4)],_0xb0f13b['UniverProLicense']));}(this,function(_0x4253ba,_0x46eb8d,_0x28cc3f,_0x58550f,_0x4eedb7,_0x4caeca){const _0x198471=_0x4feb;Object[_0x198471(0x261)](_0x4253ba,Symbol[_0x198471(0x227)],{'value':_0x198471(0x217)});let _0x2b17dd=function(_0x5593b0){const _0xf9a49c=_0x198471;return _0x5593b0[_0xf9a49c(0x258)]='row',_0x5593b0['COLUMN']='column',_0x5593b0;}({}),_0x9b2011=function(_0x2f8afa){const _0x4076c6=_0x198471;return _0x2f8afa[_0x4076c6(0x23a)]=_0x4076c6(0x1d7),_0x2f8afa[_0x4076c6(0x1a3)]=_0x4076c6(0x242),_0x2f8afa[_0x4076c6(0x215)]=_0x4076c6(0x1bc),_0x2f8afa[_0x4076c6(0x20c)]='max-depth',_0x2f8afa['MOVE_SPLITS_OUTLINE']='move-splits-outline',_0x2f8afa[_0x4076c6(0x1eb)]='clear-range-not-contain-outline',_0x2f8afa[_0x4076c6(0x21a)]='unknown',_0x2f8afa;}({});var _0x4d6c35=class extends Error{constructor(_0x216f0e,_0x2dc560,_0x598951){const _0x3ba442=_0x198471;super(_0x2dc560),this['reason']=_0x216f0e,this[_0x3ba442(0x1ed)]=_0x598951,this[_0x3ba442(0x268)]=_0x3ba442(0x256);}};function _0x42958f(_0x22cf83){const _0x111068=_0x198471;return _0x22cf83 instanceof _0x4d6c35?_0x22cf83[_0x111068(0x212)]:_0x22cf83 instanceof Error?_0x22cf83['message'][_0x111068(0x1bd)](_0x111068(0x1c9))?_0x111068(0x214):_0x22cf83['message']['includes']('depth')?'max-depth':_0x22cf83['message'][_0x111068(0x1bd)](_0x111068(0x277))?'crossing':_0x22cf83[_0x111068(0x1d6)][_0x111068(0x1bd)](_0x111068(0x255))?'invalid-range':'unknown':_0x111068(0x1f8);}function _0x46f972(_0xa17de6){const _0x5ee048=_0x198471;return _0xa17de6 instanceof _0x4d6c35?_0xa17de6[_0x5ee048(0x1ed)]:void 0x0;}let _0x84a005=0x2**0x35-0x1;function _0x111f86(_0x272541,_0x6f1f98){const _0x2031ea=_0x198471;return _0x272541['unitId']===_0x6f1f98['unitId']&&_0x272541['subUnitId']===_0x6f1f98[_0x2031ea(0x1fa)]&&_0x272541['axis']===_0x6f1f98[_0x2031ea(0x1ee)];}function _0x3626b9(_0x2704c9,_0x89539={}){const _0x40d37c=_0x198471;let _0x45b8c0=_0x89539[_0x40d37c(0x1a9)]??0x8,_0x544e3f=new Map();for(let _0x17fe9b of _0x2704c9){let _0x38487f=_0x17fe9b[_0x40d37c(0x1da)]+':'+_0x17fe9b[_0x40d37c(0x1fa)]+':'+_0x17fe9b['axis'],_0x1d53a9=_0x544e3f[_0x40d37c(0x1ef)](_0x38487f);_0x1d53a9?_0x1d53a9[_0x40d37c(0x1b9)](_0x17fe9b):_0x544e3f['set'](_0x38487f,[_0x17fe9b]);}let _0x25b118=[];for(let _0x5657a5 of _0x544e3f[_0x40d37c(0x274)]()){let _0x374316=[..._0x5657a5][_0x40d37c(0x1b8)](_0x2cdf6f),_0x4caea8=[];for(let _0x441511 of _0x374316){for(_0x2f8815(_0x441511);_0x4caea8['length']>0x0&&_0x441511[_0x40d37c(0x1de)]>_0x4caea8[_0x4caea8[_0x40d37c(0x25f)]-0x1]['end'];)_0x4caea8[_0x40d37c(0x20b)]();let _0x1fe012=_0x4caea8[_0x4caea8['length']-0x1];if(_0x1fe012&&_0x441511[_0x40d37c(0x206)]>_0x1fe012[_0x40d37c(0x206)])throw new _0x4d6c35('crossing',_0x40d37c(0x239),_0x441511['id']);let _0x25c184=_0x1fe012?_0x1fe012[_0x40d37c(0x275)]+0x1:0x1;if(_0x25c184>_0x45b8c0)throw new _0x4d6c35('max-depth',_0x40d37c(0x1cd)+_0x45b8c0,_0x441511['id']);let _0x3d33a0={..._0x441511,'depth':_0x25c184,'parentId':_0x1fe012==null?void 0x0:_0x1fe012['id'],'anchor':_0x441511[_0x40d37c(0x206)],'children':[]};_0x1fe012?_0x1fe012[_0x40d37c(0x1b6)]['push'](_0x3d33a0):_0x25b118[_0x40d37c(0x1b9)](_0x3d33a0),_0x4caea8[_0x40d37c(0x1b9)](_0x3d33a0);}}return _0x25b118;}function _0x2240bd(_0x160e33,_0x28772b,_0x58b8b0={}){const _0xf2391b=_0x198471;if(_0x28772b[_0xf2391b(0x1de)]<0x0||_0x28772b[_0xf2391b(0x1de)]>_0x28772b[_0xf2391b(0x206)])return{'valid':!0x1,'reason':_0xf2391b(0x1d7)};if(_0x58b8b0[_0xf2391b(0x219)]!=null&&_0x28772b[_0xf2391b(0x206)]>=_0x58b8b0[_0xf2391b(0x219)])return{'valid':!0x1,'reason':'out-of-bounds'};let _0x4997a5=_0x160e33['filter'](_0x2b1a09=>_0x111f86(_0x2b1a09,_0x28772b));for(let _0x405a26 of _0x4997a5)if(_0x458513(_0x405a26,_0x28772b))return{'valid':!0x1,'reason':_0xf2391b(0x1bc)};try{_0x3626b9([..._0x160e33,_0x28772b],_0x58b8b0);}catch(_0x42be61){let _0x99a3b9=_0x42958f(_0x42be61);return _0x99a3b9==='max-depth'?{'valid':!0x1,'reason':'max-depth'}:_0x99a3b9===_0xf2391b(0x1d7)?{'valid':!0x1,'reason':'invalid-range'}:{'valid':!0x1,'reason':_0xf2391b(0x1bc)};}return{'valid':!0x0};}function _0x2d31a3(_0x3cb350,_0x5aff91,_0x49bc7e={}){const _0x17e91f=_0x198471;let _0x455264=_0x2240bd(_0x3cb350,_0x5aff91,_0x49bc7e);if(!_0x455264[_0x17e91f(0x1cb)])throw Error(_0x455264[_0x17e91f(0x212)]??_0x17e91f(0x1b1));return[..._0x3cb350,_0x5aff91];}function _0x50bf60(_0x2d124e,_0x4acec9){const _0x156c81=_0x198471;let _0x3452c4=_0x4acec9[_0x156c81(0x1de)],_0x56c143=_0x4acec9[_0x156c81(0x206)],_0xa775ee=[],_0x23a5d4=!0x0;for(;_0x23a5d4;){_0x23a5d4=!0x1;for(let _0x2eb682 of _0x2d124e)_0xa775ee[_0x156c81(0x1bd)](_0x2eb682)||!_0x111f86(_0x2eb682,_0x4acec9)||!_0x1de528(_0x2eb682[_0x156c81(0x1de)],_0x2eb682[_0x156c81(0x206)],_0x3452c4,_0x56c143)||(_0xa775ee['push'](_0x2eb682),_0x3452c4=Math[_0x156c81(0x236)](_0x3452c4,_0x2eb682[_0x156c81(0x1de)]),_0x56c143=Math[_0x156c81(0x229)](_0x56c143,_0x2eb682[_0x156c81(0x206)]),_0x23a5d4=!0x0);}if(_0xa775ee[_0x156c81(0x25f)]===0x0)return null;let [_0x22093f]=[..._0xa775ee][_0x156c81(0x1b8)](_0x2cdf6f);return{'mergedOutline':{..._0x22093f,'start':_0x3452c4,'end':_0x56c143},'mergedOutlines':_0xa775ee};}function _0x518255(_0x4ecb14,_0x57bd9c){const _0x19983f=_0x198471;return _0x4ecb14[_0x19983f(0x200)](_0x3caa64=>!_0x111f86(_0x3caa64,_0x57bd9c)||!(_0x3caa64[_0x19983f(0x1de)]>=_0x57bd9c[_0x19983f(0x1de)]&&_0x3caa64[_0x19983f(0x206)]<=_0x57bd9c[_0x19983f(0x206)]));}function _0x4427c8(_0x7c5c67,_0x1c7bfc,_0xc07432,_0x14d20b){const _0x59e1a7=_0x198471;return _0x4cb823(_0x7c5c67[_0x59e1a7(0x200)](_0x547b48=>_0x547b48[_0x59e1a7(0x1da)]===_0x1c7bfc&&_0x547b48[_0x59e1a7(0x1fa)]===_0xc07432&&_0x547b48[_0x59e1a7(0x1ee)]===_0x14d20b&&_0x547b48[_0x59e1a7(0x1cf)])[_0x59e1a7(0x231)](_0x2aa70d=>({'start':_0x2aa70d[_0x59e1a7(0x1de)],'end':_0x2aa70d[_0x59e1a7(0x206)]})));}function _0x4cb823(_0x598b09){const _0xdb4fb7=_0x198471;if(_0x598b09['length']===0x0)return[];let _0x4daa86=[..._0x598b09][_0xdb4fb7(0x1b8)]((_0x149906,_0x25124c)=>_0x149906['start']-_0x25124c['start']||_0x149906[_0xdb4fb7(0x206)]-_0x25124c[_0xdb4fb7(0x206)]),_0x375210=[];for(let _0x4531ba of _0x4daa86){let _0x368e4f=_0x375210[_0x375210[_0xdb4fb7(0x25f)]-0x1];!_0x368e4f||_0x4531ba[_0xdb4fb7(0x1de)]>_0x368e4f['end']+0x1?_0x375210[_0xdb4fb7(0x1b9)]({..._0x4531ba}):_0x368e4f[_0xdb4fb7(0x206)]=Math[_0xdb4fb7(0x229)](_0x368e4f[_0xdb4fb7(0x206)],_0x4531ba[_0xdb4fb7(0x206)]);}return _0x375210;}function _0x3092f2(_0x4193ac,_0x39bc4c){const _0x4559bd=_0x198471;return _0x39bc4c[_0x4559bd(0x220)]<=0x0?_0x4193ac:_0xb2fb0e(_0x4193ac[_0x4559bd(0x231)](_0x24579a=>_0x111f86(_0x24579a,_0x39bc4c)?_0x39bc4c['index']<=_0x24579a['start']?{..._0x24579a,'start':_0x24579a[_0x4559bd(0x1de)]+_0x39bc4c[_0x4559bd(0x220)],'end':_0x24579a[_0x4559bd(0x206)]+_0x39bc4c[_0x4559bd(0x220)]}:_0x24579a['start']<_0x39bc4c['index']&&_0x39bc4c[_0x4559bd(0x25a)]<=_0x24579a[_0x4559bd(0x206)]?{..._0x24579a,'end':_0x24579a[_0x4559bd(0x206)]+_0x39bc4c[_0x4559bd(0x220)]}:_0x24579a:_0x24579a));}function _0x2469c5(_0x3a49f1,_0x2ebe2e){const _0xe39bc5=_0x198471;if(_0x2ebe2e[_0xe39bc5(0x1de)]>_0x2ebe2e[_0xe39bc5(0x206)])return _0x3a49f1;let _0x22b332=_0x2ebe2e[_0xe39bc5(0x206)]-_0x2ebe2e[_0xe39bc5(0x1de)]+0x1,_0x4314ed=[];for(let _0x359b8d of _0x3a49f1){if(!_0x111f86(_0x359b8d,_0x2ebe2e)){_0x4314ed[_0xe39bc5(0x1b9)](_0x359b8d);continue;}if(_0x359b8d[_0xe39bc5(0x206)]<_0x2ebe2e[_0xe39bc5(0x1de)]){_0x4314ed[_0xe39bc5(0x1b9)](_0x359b8d);continue;}if(_0x359b8d[_0xe39bc5(0x1de)]>_0x2ebe2e[_0xe39bc5(0x206)]){_0x4314ed[_0xe39bc5(0x1b9)]({..._0x359b8d,'start':_0x359b8d[_0xe39bc5(0x1de)]-_0x22b332,'end':_0x359b8d[_0xe39bc5(0x206)]-_0x22b332});continue;}let _0x180379=Math[_0xe39bc5(0x229)](_0x359b8d[_0xe39bc5(0x1de)],_0x2ebe2e[_0xe39bc5(0x1de)]),_0x4f7940=Math['min'](_0x359b8d[_0xe39bc5(0x206)],_0x2ebe2e[_0xe39bc5(0x206)]),_0x5c01d7=Math[_0xe39bc5(0x229)](0x0,_0x4f7940-_0x180379+0x1),_0x5c7942=_0x359b8d[_0xe39bc5(0x206)]-_0x359b8d['start']+0x1-_0x5c01d7;if(_0x5c7942<=0x0)continue;let _0x1534c6=_0x359b8d[_0xe39bc5(0x1de)]<_0x2ebe2e['start']?_0x359b8d['start']:_0x2ebe2e['start'];_0x4314ed[_0xe39bc5(0x1b9)]({..._0x359b8d,'start':_0x1534c6,'end':_0x1534c6+_0x5c7942-0x1});}return _0xb2fb0e(_0x4314ed);}function _0x316cdc(_0x1e13a3,_0x217ad6){const _0x4e09a6=_0x198471;if(_0x217ad6[_0x4e09a6(0x270)]>_0x217ad6['sourceEnd'])return _0x1e13a3;let _0x5ea43c=[];for(let _0xbf7cbb of _0x1e13a3){if(!_0x111f86(_0xbf7cbb,_0x217ad6)){_0x5ea43c['push'](_0xbf7cbb);continue;}let _0x124a4a=_0x551265(_0xbf7cbb,_0x217ad6);if(_0x124a4a[_0x4e09a6(0x240)]===_0x4e09a6(0x1d3))throw new _0x4d6c35(_0x4e09a6(0x214),'Move\x20would\x20split\x20dimension\x20outline:\x20'+_0xbf7cbb['id'],_0xbf7cbb['id']);_0x5ea43c[_0x4e09a6(0x1b9)](_0x124a4a[_0x4e09a6(0x25c)]);}return _0xb2fb0e(_0x5ea43c);}function _0x551265(_0x26afbc,_0x5e8da7){const _0x5a4d46=_0x198471;let _0x23d296=_0x5447ff(_0x5e8da7[_0x5a4d46(0x270)],_0x5e8da7[_0x5a4d46(0x1af)]+0x1,_0x5e8da7[_0x5a4d46(0x1d1)]),_0x4417eb=[],_0x393e5a={'start':_0x26afbc[_0x5a4d46(0x1de)],'end':_0x26afbc[_0x5a4d46(0x206)]+0x1};for(let _0x3e8e82 of _0x23d296){let _0x4ce6c5=_0x45e325(_0x393e5a,_0x3e8e82[_0x5a4d46(0x255)]);_0x4ce6c5&&_0x4417eb[_0x5a4d46(0x1b9)]({'start':_0x4ce6c5[_0x5a4d46(0x1de)]+_0x3e8e82['offset'],'end':_0x4ce6c5[_0x5a4d46(0x206)]+_0x3e8e82[_0x5a4d46(0x1fd)]});}let _0x570d09=_0x196ad3(_0x4417eb);return _0x570d09[_0x5a4d46(0x25f)]===0x1?{'type':'ok','outline':{..._0x26afbc,'start':_0x570d09[0x0][_0x5a4d46(0x1de)],'end':_0x570d09[0x0][_0x5a4d46(0x206)]-0x1}}:{'type':_0x5a4d46(0x1d3),'outline':_0x26afbc,'ranges':_0x570d09};}function _0x5447ff(_0x590833,_0x3b7440,_0x3e07d4){const _0x39b8b1=_0x198471;let _0x317955=_0x3b7440-_0x590833;if(_0x317955<=0x0)throw Error(_0x39b8b1(0x1dd));return _0x3e07d4>=_0x590833&&_0x3e07d4<=_0x3b7440?[{'range':{'start':0x0,'end':_0x84a005},'offset':0x0}]:_0x3e07d4<_0x590833?[{'range':{'start':0x0,'end':_0x3e07d4},'offset':0x0},{'range':{'start':_0x3e07d4,'end':_0x590833},'offset':_0x317955},{'range':{'start':_0x590833,'end':_0x3b7440},'offset':_0x3e07d4-_0x590833},{'range':{'start':_0x3b7440,'end':_0x84a005},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x590833},'offset':0x0},{'range':{'start':_0x590833,'end':_0x3b7440},'offset':_0x3e07d4-_0x3b7440},{'range':{'start':_0x3b7440,'end':_0x3e07d4},'offset':-_0x317955},{'range':{'start':_0x3e07d4,'end':_0x84a005},'offset':0x0}];}function _0x45e325(_0x33e819,_0x461a46){const _0x19ad2e=_0x198471;let _0x45e406=Math[_0x19ad2e(0x229)](_0x33e819[_0x19ad2e(0x1de)],_0x461a46[_0x19ad2e(0x1de)]),_0xf4166c=Math[_0x19ad2e(0x236)](_0x33e819[_0x19ad2e(0x206)],_0x461a46[_0x19ad2e(0x206)]);return _0x45e406>=_0xf4166c?null:{'start':_0x45e406,'end':_0xf4166c};}function _0x196ad3(_0x33a7f6){const _0xa10531=_0x198471;if(_0x33a7f6[_0xa10531(0x25f)]===0x0)return[];let _0x5754dd=[..._0x33a7f6]['sort']((_0x438aee,_0x450f54)=>_0x438aee[_0xa10531(0x1de)]-_0x450f54[_0xa10531(0x1de)]||_0x438aee[_0xa10531(0x206)]-_0x450f54['end']),_0x54fcfe=[];for(let _0x55eb36 of _0x5754dd){let _0x7ba27=_0x54fcfe[_0x54fcfe[_0xa10531(0x25f)]-0x1];!_0x7ba27||_0x55eb36[_0xa10531(0x1de)]>_0x7ba27[_0xa10531(0x206)]?_0x54fcfe[_0xa10531(0x1b9)]({..._0x55eb36}):_0x7ba27[_0xa10531(0x206)]=Math[_0xa10531(0x229)](_0x7ba27[_0xa10531(0x206)],_0x55eb36['end']);}return _0x54fcfe;}function _0x1de528(_0x2df93e,_0x33057e,_0x52520c,_0x2f7636){return _0x33057e+0x1===_0x52520c||_0x2f7636+0x1===_0x2df93e;}function _0xb2fb0e(_0x6f08c8){let _0x2e2287=_0xe5318a(_0x6f08c8);return _0x3626b9(_0x2e2287),_0x2e2287;}function _0xe5318a(_0xd6d4e0){const _0x1e9c9d=_0x198471;let _0x1084db=new Map();for(let _0x4c7c0d of _0xd6d4e0){let _0x1a7ef8=[_0x4c7c0d[_0x1e9c9d(0x1da)],_0x4c7c0d['subUnitId'],_0x4c7c0d[_0x1e9c9d(0x1ee)],_0x4c7c0d[_0x1e9c9d(0x1de)],_0x4c7c0d[_0x1e9c9d(0x206)]][_0x1e9c9d(0x1f3)](':'),_0x157679=_0x1084db[_0x1e9c9d(0x1ef)](_0x1a7ef8);if(!_0x157679){_0x1084db[_0x1e9c9d(0x245)](_0x1a7ef8,_0x4c7c0d);continue;}_0x1084db['set'](_0x1a7ef8,{..._0x157679,'collapsed':_0x157679['collapsed']||_0x4c7c0d['collapsed']});}return Array[_0x1e9c9d(0x1a8)](_0x1084db[_0x1e9c9d(0x274)]());}function _0x2cdf6f(_0x5f1b6e,_0x38a835){const _0x33af85=_0x198471;return _0x5f1b6e[_0x33af85(0x1da)]===_0x38a835['unitId']?_0x5f1b6e[_0x33af85(0x1fa)]===_0x38a835[_0x33af85(0x1fa)]?_0x5f1b6e[_0x33af85(0x1ee)]===_0x38a835['axis']?_0x5f1b6e[_0x33af85(0x1de)]===_0x38a835[_0x33af85(0x1de)]?_0x38a835['end']-_0x5f1b6e[_0x33af85(0x206)]:_0x5f1b6e[_0x33af85(0x1de)]-_0x38a835[_0x33af85(0x1de)]:_0x5f1b6e[_0x33af85(0x1ee)][_0x33af85(0x211)](_0x38a835['axis']):_0x5f1b6e[_0x33af85(0x1fa)][_0x33af85(0x211)](_0x38a835[_0x33af85(0x1fa)]):_0x5f1b6e[_0x33af85(0x1da)]['localeCompare'](_0x38a835[_0x33af85(0x1da)]);}function _0x2f8815(_0x4cf372){const _0x3fb4a0=_0x198471;if(_0x4cf372[_0x3fb4a0(0x1de)]>_0x4cf372[_0x3fb4a0(0x206)])throw new _0x4d6c35('invalid-range','Invalid\x20outline\x20range',_0x4cf372['id']);}function _0x458513(_0x48a2cd,_0x56a4b){const _0x5c59d4=_0x198471;let _0xaa915e=_0x48a2cd['start']<=_0x56a4b[_0x5c59d4(0x206)]&&_0x56a4b['start']<=_0x48a2cd['end'],_0x4945de=_0x48a2cd['start']<=_0x56a4b[_0x5c59d4(0x1de)]&&_0x56a4b[_0x5c59d4(0x206)]<=_0x48a2cd[_0x5c59d4(0x206)],_0x369f66=_0x56a4b[_0x5c59d4(0x1de)]<=_0x48a2cd['start']&&_0x48a2cd[_0x5c59d4(0x206)]<=_0x56a4b[_0x5c59d4(0x206)];return _0xaa915e&&!_0x4945de&&!_0x369f66;}function _0x21e96e(_0x1fe284){'@babel/helpers - typeof';const _0x5766bd=_0x198471;return _0x21e96e=typeof Symbol==_0x5766bd(0x1ab)&&typeof Symbol[_0x5766bd(0x1e3)]=='symbol'?function(_0x104541){return typeof _0x104541;}:function(_0x3fd8e9){const _0x3df622=_0x5766bd;return _0x3fd8e9&&typeof Symbol==_0x3df622(0x1ab)&&_0x3fd8e9[_0x3df622(0x1b0)]===Symbol&&_0x3fd8e9!==Symbol[_0x3df622(0x21b)]?_0x3df622(0x1fc):typeof _0x3fd8e9;},_0x21e96e(_0x1fe284);}function _0xd8421a(_0x3ed219,_0x27b9c7){const _0x5cd3a9=_0x198471;if(_0x21e96e(_0x3ed219)!=_0x5cd3a9(0x22b)||!_0x3ed219)return _0x3ed219;var _0x1ea657=_0x3ed219[Symbol[_0x5cd3a9(0x218)]];if(_0x1ea657!==void 0x0){var _0x543d4e=_0x1ea657[_0x5cd3a9(0x20e)](_0x3ed219,_0x27b9c7||'default');if(_0x21e96e(_0x543d4e)!=_0x5cd3a9(0x22b))return _0x543d4e;throw TypeError(_0x5cd3a9(0x1ce));}return(_0x27b9c7==='string'?String:Number)(_0x3ed219);}function _0x4c6a49(_0x2f1a5a){const _0x109ff1=_0x198471;var _0x310beb=_0xd8421a(_0x2f1a5a,_0x109ff1(0x1f0));return _0x21e96e(_0x310beb)==_0x109ff1(0x1fc)?_0x310beb:_0x310beb+'';}function _0x325afc(_0x1c9b61,_0x5a9583,_0x292a19){const _0x1fdbc6=_0x198471;return(_0x5a9583=_0x4c6a49(_0x5a9583))in _0x1c9b61?Object[_0x1fdbc6(0x261)](_0x1c9b61,_0x5a9583,{'value':_0x292a19,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1c9b61[_0x5a9583]=_0x292a19,_0x1c9b61;}var _0x4941a4=class extends _0x46eb8d[_0x198471(0x1a4)]{constructor(..._0x295e7a){const _0x4d8e59=_0x198471;super(..._0x295e7a),_0x325afc(this,_0x4d8e59(0x26e),new Map()),_0x325afc(this,_0x4d8e59(0x1ff),new _0x58550f[(_0x4d8e59(0x23d))]()),_0x325afc(this,_0x4d8e59(0x1c1),this['_change$'][_0x4d8e59(0x22c)]());}['getOutlines'](_0x54b233,_0x9cbc03){const _0x5b6d9f=_0x198471;var _0x34ef2a;return[...((_0x34ef2a=this[_0x5b6d9f(0x26e)][_0x5b6d9f(0x1ef)](_0x54b233))==null?void 0x0:_0x34ef2a[_0x5b6d9f(0x1ef)](_0x9cbc03))??[]];}['getUnitOutlines'](_0x50c388){const _0x396100=_0x198471;let _0x4ddfc7=this[_0x396100(0x26e)][_0x396100(0x1ef)](_0x50c388),_0x56a3ff=new Map();return _0x4ddfc7==null||_0x4ddfc7['forEach']((_0x217c69,_0x1e5502)=>{const _0xc02ae0=_0x396100;_0x56a3ff[_0xc02ae0(0x245)](_0x1e5502,[..._0x217c69]);}),_0x56a3ff;}['setOutlines'](_0x371019,_0x25f1f4,_0x2a445d){const _0xc46c79=_0x198471;this[_0xc46c79(0x265)](_0x371019)[_0xc46c79(0x245)](_0x25f1f4,[..._0x2a445d]),this[_0xc46c79(0x1ff)][_0xc46c79(0x250)]({'unitId':_0x371019,'subUnitId':_0x25f1f4});}[_0x198471(0x23f)](_0x44e71b){const _0x28823a=_0x198471;this[_0x28823a(0x26e)]['delete'](_0x44e71b),this['_change$'][_0x28823a(0x250)]({'unitId':_0x44e71b});}['serialize'](_0x37d8c3){const _0x14973a=_0x198471;let _0x37d601=this[_0x14973a(0x26e)]['get'](_0x37d8c3),_0x3e57ad={};return _0x37d601==null||_0x37d601[_0x14973a(0x223)]((_0x11f4ef,_0x212038)=>{_0x3e57ad[_0x212038]={'outlineList':[..._0x11f4ef]};}),_0x3e57ad;}[_0x198471(0x233)](_0x4669d4,_0x10787d){const _0x480752=_0x198471;let _0x20f05=new Map();Object[_0x480752(0x210)](_0x10787d)[_0x480752(0x223)](([_0x4d67d8,_0x5b11b8])=>{const _0x26818a=_0x480752;_0x20f05[_0x26818a(0x245)](_0x4d67d8,[..._0x5b11b8[_0x26818a(0x222)]??[]]);}),this[_0x480752(0x26e)][_0x480752(0x245)](_0x4669d4,_0x20f05),this[_0x480752(0x1ff)][_0x480752(0x250)]({'unitId':_0x4669d4});}[_0x198471(0x21f)](){const _0x9b6f19=_0x198471;super[_0x9b6f19(0x21f)](),this[_0x9b6f19(0x26e)][_0x9b6f19(0x201)](),this[_0x9b6f19(0x1ff)]['complete']();}[_0x198471(0x265)](_0x28feb5){const _0x483923=_0x198471;let _0x5ba16a=this[_0x483923(0x26e)]['get'](_0x28feb5);return _0x5ba16a||(_0x5ba16a=new Map(),this[_0x483923(0x26e)][_0x483923(0x245)](_0x28feb5,_0x5ba16a)),_0x5ba16a;}},_0x404460=class extends _0x46eb8d[_0x198471(0x1a4)]{constructor(..._0x433731){const _0x38c4df=_0x198471;super(..._0x433731),_0x325afc(this,_0x38c4df(0x1a5),new _0x58550f['Subject']()),_0x325afc(this,_0x38c4df(0x26a),this[_0x38c4df(0x1a5)]['asObservable']());}[_0x198471(0x1e9)](_0x36b357){const _0x1cd77f=_0x198471;this[_0x1cd77f(0x1a5)][_0x1cd77f(0x250)](_0x36b357);}['dispose'](){const _0x595c87=_0x198471;super['dispose'](),this[_0x595c87(0x1a5)][_0x595c87(0x1d5)]();}};let _0x2478ea={'id':'sheet.mutation.add-dimension-outline','type':_0x46eb8d[_0x198471(0x244)]['MUTATION'],'handler':(_0x4978be,_0x5ea8ea)=>{const _0x5f0df0=_0x198471;let _0x19d5fc=_0x4978be[_0x5f0df0(0x1ef)](_0x4941a4),_0x239db9=_0x19d5fc[_0x5f0df0(0x20f)](_0x5ea8ea[_0x5f0df0(0x1da)],_0x5ea8ea['subUnitId']);return _0x19d5fc[_0x5f0df0(0x204)](_0x5ea8ea[_0x5f0df0(0x1da)],_0x5ea8ea['subUnitId'],_0x2d31a3(_0x239db9,_0x5ea8ea['outline'])),!0x0;}},_0xa1178d={'id':_0x198471(0x25d),'type':_0x46eb8d['CommandType'][_0x198471(0x22f)],'handler':(_0x27b292,_0x4a0765)=>{const _0x100829=_0x198471;let _0x450758=_0x27b292[_0x100829(0x1ef)](_0x4941a4),_0x44c233=_0x450758[_0x100829(0x20f)](_0x4a0765[_0x100829(0x1da)],_0x4a0765[_0x100829(0x1fa)]);return _0x450758[_0x100829(0x204)](_0x4a0765[_0x100829(0x1da)],_0x4a0765['subUnitId'],_0x44c233[_0x100829(0x200)](_0x3b4eab=>_0x3b4eab['id']!==_0x4a0765['outlineId'])),!0x0;}};function _0x20d91b(_0x1ce43d,_0x16a167,_0x4e13b7){const _0x2776a3=_0x198471;let _0x301fff=_0xeadeff(_0x1ce43d);return!_0x301fff||_0x301fff[_0x2776a3(0x1e4)]({'workbookTypes':[_0x28cc3f[_0x2776a3(0x22e)]],'worksheetTypes':[_0x28cc3f[_0x2776a3(0x1bb)]]},_0x16a167,_0x4e13b7);}function _0x148ae7(_0x448e6b,_0x2e0176,_0x5cab47){const _0x1d40b1=_0x198471;let _0x4a0da0=_0x1251ff(_0x448e6b);return((_0x4a0da0==null?void 0x0:_0x4a0da0[_0x1d40b1(0x1e7)])??(0x0,_0x58550f['of'])(null))[_0x1d40b1(0x1ac)]((0x0,_0x4eedb7[_0x1d40b1(0x24c)])(0x64),(0x0,_0x4eedb7[_0x1d40b1(0x1df)])(null),(0x0,_0x4eedb7[_0x1d40b1(0x231)])(()=>_0x20d91b(_0x448e6b,_0x2e0176,_0x5cab47)));}function _0xeadeff(_0x1085a8){const _0x4b1619=_0x198471;if(typeof _0x1085a8[_0x4b1619(0x272)]=='function'&&!_0x1085a8[_0x4b1619(0x272)](_0x28cc3f[_0x4b1619(0x1a6)]))return null;try{return _0x1085a8[_0x4b1619(0x1ef)](_0x28cc3f[_0x4b1619(0x1a6)]);}catch{return null;}}function _0x1251ff(_0x358e17){const _0x577716=_0x198471;if(typeof _0x358e17[_0x577716(0x272)]==_0x577716(0x1ab)&&!_0x358e17[_0x577716(0x272)](_0x46eb8d[_0x577716(0x1e8)]))return null;try{return _0x358e17[_0x577716(0x1ef)](_0x46eb8d['IPermissionService']);}catch{return null;}}let _0x2f9c09={'id':_0x198471(0x1f9),'type':_0x46eb8d[_0x198471(0x244)][_0x198471(0x213)],'handler':(_0x1d2ffe,_0x2c99ab)=>{const _0x2b4e9e=_0x198471;if(!_0x2c99ab)return!0x1;let _0x2403bd=(0x0,_0x28cc3f['getSheetCommandTarget'])(_0x1d2ffe[_0x2b4e9e(0x1ef)](_0x46eb8d[_0x2b4e9e(0x1d4)]),_0x2c99ab);if(!_0x2403bd)return!0x1;let {unitId:_0x5945ab,subUnitId:_0x5b5792,worksheet:_0x2136a9}=_0x2403bd;if(!_0x20d91b(_0x1d2ffe,_0x5945ab,_0x5b5792))return!0x1;let _0xe3cf73=_0x1d2ffe[_0x2b4e9e(0x1ef)](_0x4941a4),_0x156914={'id':_0x2b4e9e(0x21e)+(0x0,_0x46eb8d[_0x2b4e9e(0x1ca)])(0x6),'unitId':_0x5945ab,'subUnitId':_0x5b5792,'axis':_0x2c99ab[_0x2b4e9e(0x1ee)],'start':_0x2c99ab[_0x2b4e9e(0x1de)],'end':_0x2c99ab['end'],'collapsed':!0x1},_0x48b097=_0x2c99ab[_0x2b4e9e(0x1ee)]===_0x2b4e9e(0x230)?_0x2136a9[_0x2b4e9e(0x1c4)]():_0x2136a9[_0x2b4e9e(0x203)](),_0x1e56d9=_0xe3cf73['getOutlines'](_0x5945ab,_0x5b5792),_0x1247af=_0x50bf60(_0x1e56d9,_0x156914),_0x226393=(_0x1247af==null?void 0x0:_0x1247af[_0x2b4e9e(0x1bf)])??[],_0x5af6b1=(_0x1247af==null?void 0x0:_0x1247af[_0x2b4e9e(0x226)])??_0x156914,_0x4901b0=_0x2240bd(_0x1247af?_0x1e56d9[_0x2b4e9e(0x200)](_0x3e204d=>!_0x226393[_0x2b4e9e(0x249)](_0x18e5bb=>_0x18e5bb['id']===_0x3e204d['id'])):_0x1e56d9,_0x5af6b1,{'maxIndex':_0x48b097});if(!_0x4901b0[_0x2b4e9e(0x1cb)])return _0x1d2ffe[_0x2b4e9e(0x1ef)](_0x404460)[_0x2b4e9e(0x1e9)]({'reason':_0x4901b0[_0x2b4e9e(0x212)]??'unknown','commandId':_0x2f9c09['id'],'unitId':_0x5945ab,'subUnitId':_0x5b5792,'axis':_0x2c99ab[_0x2b4e9e(0x1ee)],'outlineId':_0x5af6b1['id']}),!0x1;let _0x21e8b1=[..._0x226393[_0x2b4e9e(0x231)](_0x3a753a=>({'id':_0xa1178d['id'],'params':{'unitId':_0x5945ab,'subUnitId':_0x5b5792,'outlineId':_0x3a753a['id']}})),{'id':_0x2478ea['id'],'params':{'unitId':_0x5945ab,'subUnitId':_0x5b5792,'outline':_0x5af6b1}}],_0xad7ecc=[{'id':_0xa1178d['id'],'params':{'unitId':_0x5945ab,'subUnitId':_0x5b5792,'outlineId':_0x5af6b1['id']}},..._0x226393[_0x2b4e9e(0x231)](_0x5422ca=>({'id':_0x2478ea['id'],'params':{'unitId':_0x5945ab,'subUnitId':_0x5b5792,'outline':_0x5422ca}}))];return(0x0,_0x46eb8d[_0x2b4e9e(0x1b5)])(_0x21e8b1,_0x1d2ffe[_0x2b4e9e(0x1ef)](_0x46eb8d[_0x2b4e9e(0x278)]))[_0x2b4e9e(0x24f)]?(_0x1d2ffe[_0x2b4e9e(0x1ef)](_0x46eb8d['IUndoRedoService'])[_0x2b4e9e(0x27a)]({'unitID':_0x5945ab,'undoMutations':_0xad7ecc,'redoMutations':_0x21e8b1}),!0x0):!0x1;}},_0x5d0eea={'id':_0x198471(0x1b2),'type':_0x46eb8d['CommandType'][_0x198471(0x22f)],'handler':(_0x281aef,_0x85a0d4)=>{const _0x175a3e=_0x198471;let _0x5d04e6=_0x281aef[_0x175a3e(0x1ef)](_0x4941a4),_0x4b9b0c=_0x5d04e6[_0x175a3e(0x20f)](_0x85a0d4['unitId'],_0x85a0d4[_0x175a3e(0x1fa)]);return _0x5d04e6[_0x175a3e(0x204)](_0x85a0d4[_0x175a3e(0x1da)],_0x85a0d4[_0x175a3e(0x1fa)],_0x518255(_0x4b9b0c,_0x85a0d4)),!0x0;}},_0x4cfe39={'id':_0x198471(0x202),'type':_0x46eb8d[_0x198471(0x244)][_0x198471(0x213)],'handler':(_0x292be4,_0x2deefd)=>{const _0x354740=_0x198471;if(!_0x2deefd)return!0x1;let _0x11ad3d=(0x0,_0x28cc3f[_0x354740(0x232)])(_0x292be4['get'](_0x46eb8d[_0x354740(0x1d4)]),_0x2deefd);if(!_0x11ad3d)return!0x1;let {unitId:_0x526fa6,subUnitId:_0x4853ff}=_0x11ad3d;if(!_0x20d91b(_0x292be4,_0x526fa6,_0x4853ff))return!0x1;let _0x23170c={'unitId':_0x526fa6,'subUnitId':_0x4853ff,'axis':_0x2deefd[_0x354740(0x1ee)],'start':_0x2deefd['start'],'end':_0x2deefd[_0x354740(0x206)]},_0x23c22d=_0x292be4['get'](_0x4941a4)[_0x354740(0x20f)](_0x526fa6,_0x4853ff)['filter'](_0xc99a63=>_0x111f86(_0xc99a63,_0x23170c)&&_0xc99a63['start']>=_0x2deefd[_0x354740(0x1de)]&&_0xc99a63[_0x354740(0x206)]<=_0x2deefd[_0x354740(0x206)]);if(_0x23c22d[_0x354740(0x25f)]===0x0)return _0x292be4[_0x354740(0x1ef)](_0x404460)[_0x354740(0x1e9)]({'reason':'clear-range-not-contain-outline','commandId':_0x4cfe39['id'],'unitId':_0x526fa6,'subUnitId':_0x4853ff,'axis':_0x2deefd[_0x354740(0x1ee)]}),!0x1;let _0x245d70=[{'id':_0x5d0eea['id'],'params':{..._0x23170c,'removedOutlineIds':_0x23c22d[_0x354740(0x231)](_0x508307=>_0x508307['id'])}}],_0x42126c=_0x23c22d['map'](_0x1b454f=>({'id':_0x2478ea['id'],'params':{'unitId':_0x526fa6,'subUnitId':_0x4853ff,'outline':_0x1b454f}}));return(0x0,_0x46eb8d[_0x354740(0x1b5)])(_0x245d70,_0x292be4[_0x354740(0x1ef)](_0x46eb8d[_0x354740(0x278)]))[_0x354740(0x24f)]?(_0x292be4['get'](_0x46eb8d['IUndoRedoService'])['pushUndoRedo']({'unitID':_0x526fa6,'undoMutations':_0x42126c,'redoMutations':_0x245d70}),!0x0):!0x1;}},_0xa7059e={'id':_0x198471(0x24d),'type':_0x46eb8d[_0x198471(0x244)][_0x198471(0x213)],'handler':(_0x5edfb8,_0x2ee7a5)=>{const _0x50e01=_0x198471;if(!_0x2ee7a5)return!0x1;let _0x28c9e2=(0x0,_0x28cc3f[_0x50e01(0x232)])(_0x5edfb8['get'](_0x46eb8d[_0x50e01(0x1d4)]),_0x2ee7a5);if(!_0x28c9e2)return!0x1;let {unitId:_0x3f89ca,subUnitId:_0x4f361b}=_0x28c9e2;if(!_0x20d91b(_0x5edfb8,_0x3f89ca,_0x4f361b))return!0x1;let _0x2f6f04=_0x5edfb8['get'](_0x4941a4)['getOutlines'](_0x3f89ca,_0x4f361b)[_0x50e01(0x1fb)](_0x259889=>_0x259889['id']===_0x2ee7a5[_0x50e01(0x1ed)]);if(!_0x2f6f04)return!0x1;let _0x15c7e9=[{'id':_0xa1178d['id'],'params':{'unitId':_0x3f89ca,'subUnitId':_0x4f361b,'outlineId':_0x2f6f04['id'],'outline':_0x2f6f04}}],_0x14d55a=[{'id':_0x2478ea['id'],'params':{'unitId':_0x3f89ca,'subUnitId':_0x4f361b,'outline':_0x2f6f04}}];return(0x0,_0x46eb8d[_0x50e01(0x1b5)])(_0x15c7e9,_0x5edfb8[_0x50e01(0x1ef)](_0x46eb8d[_0x50e01(0x278)]))[_0x50e01(0x24f)]?(_0x5edfb8['get'](_0x46eb8d[_0x50e01(0x234)])[_0x50e01(0x27a)]({'unitID':_0x3f89ca,'undoMutations':_0x14d55a,'redoMutations':_0x15c7e9}),!0x0):!0x1;}},_0xbe3288={'id':_0x198471(0x22d),'type':_0x46eb8d['CommandType'][_0x198471(0x22f)],'handler':(_0x2dfb2c,_0x155854)=>{const _0x44c8d0=_0x198471;let _0x45434d=_0x2dfb2c['get'](_0x4941a4),_0x5a9b74=_0x45434d[_0x44c8d0(0x20f)](_0x155854['unitId'],_0x155854[_0x44c8d0(0x1fa)]),_0x55df19=_0x5a9b74['find'](_0x13073d=>_0x13073d['id']===_0x155854[_0x44c8d0(0x1ed)]);return _0x55df19&&_0x45434d['setOutlines'](_0x155854[_0x44c8d0(0x1da)],_0x155854[_0x44c8d0(0x1fa)],_0x5a9b74['map'](_0x3e4e6c=>_0x3e4e6c['unitId']!==_0x55df19[_0x44c8d0(0x1da)]||_0x3e4e6c['subUnitId']!==_0x55df19[_0x44c8d0(0x1fa)]||_0x3e4e6c['axis']!==_0x55df19['axis']||_0x3e4e6c[_0x44c8d0(0x1de)]!==_0x55df19[_0x44c8d0(0x1de)]||_0x3e4e6c[_0x44c8d0(0x206)]!==_0x55df19[_0x44c8d0(0x206)]?_0x3e4e6c:{..._0x3e4e6c,'collapsed':_0x155854['collapsed']})),!0x0;}};function _0x1a24d6(_0x4162f9,_0x92f1f2,_0x585c8f,_0xfe3ac2){const _0x40d668=_0x198471;return _0x4162f9===_0x40d668(0x230)?{'startRow':_0x92f1f2,'endRow':_0x585c8f,'startColumn':0x0,'endColumn':_0xfe3ac2[_0x40d668(0x267)]()-0x1}:{'startRow':0x0,'endRow':_0xfe3ac2['getRowCount']()-0x1,'startColumn':_0x92f1f2,'endColumn':_0x585c8f};}function _0x2c43d9(_0x835f1c){const _0x174de8=_0x198471;return _0x835f1c===_0x174de8(0x230)?_0x28cc3f[_0x174de8(0x1f5)]['id']:_0x28cc3f['SetColHiddenMutation']['id'];}function _0xca7ed5(_0x246539){const _0x231d19=_0x198471;return _0x246539===_0x231d19(0x230)?_0x28cc3f['SetRowVisibleMutation']['id']:_0x28cc3f['SetColVisibleMutation']['id'];}function _0x2a2b0a(_0x27a862,_0x2785d2,_0x3de1a2,_0x4fe9e1){const _0x22c7dd=_0x198471;let _0x4775cb=_0x2785d2?[_0x1a24d6(_0x27a862[_0x22c7dd(0x1ee)],_0x27a862[_0x22c7dd(0x1de)],_0x27a862['end'],_0x3de1a2)]:_0x3b86af(_0x27a862,_0x4fe9e1,_0x3de1a2),_0x262166=_0x2785d2?_0x2c43d9(_0x27a862[_0x22c7dd(0x1ee)]):_0xca7ed5(_0x27a862[_0x22c7dd(0x1ee)]);return[{'id':_0xbe3288['id'],'params':{'unitId':_0x27a862['unitId'],'subUnitId':_0x27a862[_0x22c7dd(0x1fa)],'outlineId':_0x27a862['id'],'outline':_0x27a862,'collapsed':_0x2785d2}},..._0x4775cb[_0x22c7dd(0x231)](_0x430a6e=>({'id':_0x262166,'params':{'unitId':_0x27a862[_0x22c7dd(0x1da)],'subUnitId':_0x27a862[_0x22c7dd(0x1fa)],'ranges':[_0x430a6e],'dimensionOutlineId':_0x27a862['id']}}))];}function _0x3b86af(_0x115fad,_0x4a6cbd,_0x3b4612){const _0x34db04=_0x198471;let _0x7f5e5c=_0x4427c8(_0x4a6cbd[_0x34db04(0x231)](_0x15e935=>_0x40ff72(_0x15e935,_0x115fad)?{..._0x15e935,'collapsed':!0x1}:_0x15e935),_0x115fad[_0x34db04(0x1da)],_0x115fad[_0x34db04(0x1fa)],_0x115fad['axis']);return _0xbd93d9({'start':_0x115fad[_0x34db04(0x1de)],'end':_0x115fad['end']},_0x7f5e5c)[_0x34db04(0x231)](_0x1d7f45=>_0x1a24d6(_0x115fad['axis'],_0x1d7f45[_0x34db04(0x1de)],_0x1d7f45[_0x34db04(0x206)],_0x3b4612));}function _0x40ff72(_0x747ecf,_0x18dc4f){const _0x1f8e8f=_0x198471;return _0x747ecf[_0x1f8e8f(0x1da)]===_0x18dc4f[_0x1f8e8f(0x1da)]&&_0x747ecf[_0x1f8e8f(0x1fa)]===_0x18dc4f[_0x1f8e8f(0x1fa)]&&_0x747ecf[_0x1f8e8f(0x1ee)]===_0x18dc4f['axis']&&_0x747ecf[_0x1f8e8f(0x1de)]===_0x18dc4f[_0x1f8e8f(0x1de)]&&_0x747ecf[_0x1f8e8f(0x206)]===_0x18dc4f[_0x1f8e8f(0x206)];}function _0xbd93d9(_0x1f20b2,_0x4bf74f){const _0x44fc73=_0x198471;let _0x1a3060=_0x1f20b2[_0x44fc73(0x1de)],_0x51997c=[];for(let _0x50cdc5 of _0x4bf74f)if(!(_0x50cdc5[_0x44fc73(0x206)]<_0x1a3060||_0x50cdc5[_0x44fc73(0x1de)]>_0x1f20b2[_0x44fc73(0x206)])&&(_0x50cdc5['start']>_0x1a3060&&_0x51997c[_0x44fc73(0x1b9)]({'start':_0x1a3060,'end':Math['min'](_0x50cdc5[_0x44fc73(0x1de)]-0x1,_0x1f20b2[_0x44fc73(0x206)])}),_0x1a3060=Math['max'](_0x1a3060,_0x50cdc5[_0x44fc73(0x206)]+0x1),_0x1a3060>_0x1f20b2[_0x44fc73(0x206)]))break;return _0x1a3060<=_0x1f20b2[_0x44fc73(0x206)]&&_0x51997c[_0x44fc73(0x1b9)]({'start':_0x1a3060,'end':_0x1f20b2[_0x44fc73(0x206)]}),_0x51997c;}let _0x3be80b={'id':_0x198471(0x271),'type':_0x46eb8d['CommandType']['COMMAND'],'handler':(_0x1885b0,_0x7c2da3)=>{const _0xa53fd8=_0x198471;if(!_0x7c2da3)return!0x1;let _0x2d694e=(0x0,_0x28cc3f[_0xa53fd8(0x232)])(_0x1885b0[_0xa53fd8(0x1ef)](_0x46eb8d[_0xa53fd8(0x1d4)]),_0x7c2da3);if(!_0x2d694e)return!0x1;let {unitId:_0x48b7d6,subUnitId:_0x2080a1,worksheet:_0x561e64}=_0x2d694e;if(!_0x20d91b(_0x1885b0,_0x48b7d6,_0x2080a1))return!0x1;let _0x2613da=_0x1885b0['get'](_0x4941a4)[_0xa53fd8(0x20f)](_0x48b7d6,_0x2080a1),_0x4b3b35=_0x2613da[_0xa53fd8(0x1fb)](_0x1177da=>_0x1177da['id']===_0x7c2da3[_0xa53fd8(0x1ed)]);if(!_0x4b3b35||_0x4b3b35['collapsed']===_0x7c2da3[_0xa53fd8(0x1cf)])return!0x1;let _0xa35cf7=_0x2a2b0a(_0x4b3b35,_0x7c2da3[_0xa53fd8(0x1cf)],_0x561e64,_0x2613da),_0x41ebd5=_0x2a2b0a(_0x4b3b35,!_0x7c2da3[_0xa53fd8(0x1cf)],_0x561e64,_0x2613da);return(0x0,_0x46eb8d[_0xa53fd8(0x1b5)])(_0xa35cf7,_0x1885b0[_0xa53fd8(0x1ef)](_0x46eb8d[_0xa53fd8(0x278)]))['result']?(_0x1885b0[_0xa53fd8(0x1ef)](_0x46eb8d[_0xa53fd8(0x234)])[_0xa53fd8(0x27a)]({'unitID':_0x48b7d6,'undoMutations':_0x41ebd5,'redoMutations':_0xa35cf7}),!0x0):!0x1;}},_0x3042dc={'id':_0x198471(0x205),'type':_0x46eb8d[_0x198471(0x244)][_0x198471(0x22f)],'handler':(_0x468fed,_0x37370a)=>{const _0x49e8a8=_0x198471;let _0x172886=_0x468fed[_0x49e8a8(0x1ef)](_0x4941a4),_0x2fb7ae=_0x1c236c(_0x172886[_0x49e8a8(0x20f)](_0x37370a[_0x49e8a8(0x1da)],_0x37370a['subUnitId']),_0x37370a);return _0x172886[_0x49e8a8(0x204)](_0x37370a['unitId'],_0x37370a[_0x49e8a8(0x1fa)],_0x2fb7ae),!0x0;}};function _0x1c236c(_0x1f081a,_0x425f4c){const _0x23659f=_0x198471;switch(_0x425f4c[_0x23659f(0x240)]){case _0x23659f(0x237):return _0x425f4c[_0x23659f(0x1d9)]?_0x19f800(_0x1f081a,_0x425f4c):_0x3092f2(_0x1f081a,_0x425f4c);case _0x23659f(0x208):return _0x2469c5(_0x1f081a,_0x425f4c);case _0x23659f(0x26d):return _0x316cdc(_0x1f081a,_0x425f4c);}}function _0x19f800(_0x551b91,_0x5ad7c3){const _0x291db2=_0x198471;return[..._0x551b91[_0x291db2(0x200)](_0x4ee40a=>_0x4ee40a['unitId']!==_0x5ad7c3[_0x291db2(0x1da)]||_0x4ee40a[_0x291db2(0x1fa)]!==_0x5ad7c3[_0x291db2(0x1fa)]||_0x4ee40a[_0x291db2(0x1ee)]!==_0x5ad7c3[_0x291db2(0x1ee)]),..._0x5ad7c3[_0x291db2(0x1d9)]];}let _0x4ab997=_0x198471(0x26b);var _0x36e738=_0x198471(0x1b3),_0x3df0ae=_0x198471(0x1c5);let _0x16594c={};function _0x39bd4b(_0x163bf9,_0x2362e2){return function(_0x41e9a8,_0x518119){_0x2362e2(_0x41e9a8,_0x518119,_0x163bf9);};}function _0x39af85(_0xc93700,_0x390940,_0x1c0ee4,_0x3135c5){const _0x562caf=_0x198471;var _0x5ef6da=arguments['length'],_0x186780=_0x5ef6da<0x3?_0x390940:_0x3135c5===null?_0x3135c5=Object[_0x562caf(0x1b4)](_0x390940,_0x1c0ee4):_0x3135c5,_0x330955;if(typeof Reflect==_0x562caf(0x22b)&&typeof Reflect[_0x562caf(0x1c7)]==_0x562caf(0x1ab))_0x186780=Reflect[_0x562caf(0x1c7)](_0xc93700,_0x390940,_0x1c0ee4,_0x3135c5);else{for(var _0x343a14=_0xc93700['length']-0x1;_0x343a14>=0x0;_0x343a14--)(_0x330955=_0xc93700[_0x343a14])&&(_0x186780=(_0x5ef6da<0x3?_0x330955(_0x186780):_0x5ef6da>0x3?_0x330955(_0x390940,_0x1c0ee4,_0x186780):_0x330955(_0x390940,_0x1c0ee4))||_0x186780);}return _0x5ef6da>0x3&&_0x186780&&Object[_0x562caf(0x261)](_0x390940,_0x1c0ee4,_0x186780),_0x186780;}let _0x421d2f={'redos':[],'undos':[],'preRedos':[],'preUndos':[]},_0x15e59d=class extends _0x46eb8d[_0x198471(0x1a4)]{constructor(_0x5c7930,_0x2140de,_0x2eff8d,_0x63dd31){const _0x805035=_0x198471;super(),this[_0x805035(0x247)]=_0x5c7930,this['_sheetInterceptorService']=_0x2140de,this['_sheetsOutlineModel']=_0x2eff8d,this[_0x805035(0x225)]=_0x63dd31,this['_initCommandInterceptor']();}[_0x198471(0x1c8)](){const _0x3d16c7=_0x198471;this['disposeWithMe'](this['_sheetInterceptorService'][_0x3d16c7(0x254)]({'getMutations':_0xa1e562=>_0x5482fd(_0xa1e562,(_0x4c5a50,_0x5d998)=>this[_0x3d16c7(0x24b)][_0x3d16c7(0x20f)](_0x4c5a50,_0x5d998),this[_0x3d16c7(0x25b)](_0xa1e562[_0x3d16c7(0x23e)]),_0xa03496=>this[_0x3d16c7(0x225)]['emit'](_0xa03496))}));}[_0x198471(0x25b)](_0x523335){const _0x4ad2d8=_0x198471;let _0x5cb796=_0x523335,_0x586b75=_0x5cb796!=null&&_0x5cb796[_0x4ad2d8(0x1da)]?this[_0x4ad2d8(0x247)][_0x4ad2d8(0x1ec)](_0x5cb796[_0x4ad2d8(0x1da)],_0x46eb8d[_0x4ad2d8(0x1d2)][_0x4ad2d8(0x228)]):this[_0x4ad2d8(0x247)]['getCurrentUnitOfType'](_0x46eb8d[_0x4ad2d8(0x1d2)][_0x4ad2d8(0x228)]);if(!_0x586b75)return;let _0xee83a8=_0x5cb796!=null&&_0x5cb796['subUnitId']?_0x586b75[_0x4ad2d8(0x260)](_0x5cb796[_0x4ad2d8(0x1fa)]):_0x586b75[_0x4ad2d8(0x26c)]();if(_0xee83a8)return{'unitId':_0x586b75['getUnitId'](),'subUnitId':_0xee83a8['getSheetId']()};}};_0x15e59d=_0x39af85([_0x39bd4b(0x0,_0x46eb8d['IUniverInstanceService']),_0x39bd4b(0x1,(0x0,_0x46eb8d[_0x198471(0x251)])(_0x28cc3f[_0x198471(0x266)])),_0x39bd4b(0x2,(0x0,_0x46eb8d[_0x198471(0x251)])(_0x4941a4)),_0x39bd4b(0x3,(0x0,_0x46eb8d[_0x198471(0x251)])(_0x404460))],_0x15e59d);function _0x5482fd(_0x546f32,_0x43896f,_0x37872b,_0x441309){const _0x11ff8e=_0x198471;let _0x3f2949=_0x301337(_0x546f32,_0x37872b);if(!_0x3f2949)return _0x5bac3a();let _0x47dc1f=_0x43896f(_0x3f2949[_0x11ff8e(0x1da)],_0x3f2949[_0x11ff8e(0x1fa)]);if(!_0x47dc1f[_0x11ff8e(0x249)](_0x4ec2d5=>_0x4ec2d5[_0x11ff8e(0x1ee)]===_0x3f2949['axis']))return _0x5bac3a();_0x4f82d4(_0x47dc1f,_0x3f2949,_0x546f32['id'],_0x441309);let _0x1f3485=_0x52f1f2(_0x3f2949,_0x47dc1f);return{'redos':[{'id':_0x3042dc['id'],'params':_0x3f2949}],'undos':[{'id':_0x3042dc['id'],'params':_0x1f3485}],'preRedos':[],'preUndos':[]};}function _0x4f82d4(_0x193c83,_0x30ee97,_0x355e11,_0x1cfa82){const _0x7a55a5=_0x198471;try{switch(_0x30ee97[_0x7a55a5(0x240)]){case'insert':_0x3092f2(_0x193c83,_0x30ee97);break;case'delete':_0x2469c5(_0x193c83,_0x30ee97);break;case'move':_0x316cdc(_0x193c83,_0x30ee97);break;}}catch(_0xf01e5e){throw _0x1cfa82==null||_0x1cfa82({'reason':_0x42958f(_0xf01e5e),'commandId':_0x355e11,'unitId':_0x30ee97['unitId'],'subUnitId':_0x30ee97['subUnitId'],'axis':_0x30ee97[_0x7a55a5(0x1ee)],'outlineId':_0x46f972(_0xf01e5e)}),new _0x46eb8d[(_0x7a55a5(0x1ba))](_0xf01e5e instanceof Error?_0xf01e5e[_0x7a55a5(0x1d6)]:'Invalid\x20dimension\x20outline\x20mutation');}}function _0x301337(_0x3d89f6,_0x2999ad){const _0x3e60b=_0x198471;switch(_0x3d89f6['id']){case _0x28cc3f[_0x3e60b(0x269)]['id']:return _0xfd8169(_0x3d89f6['params'],_0x3e60b(0x230),_0x2999ad);case _0x28cc3f[_0x3e60b(0x224)]['id']:return _0xfd8169(_0x3d89f6['params'],_0x3e60b(0x1a2),_0x2999ad);case _0x28cc3f['RemoveRowCommand']['id']:return _0x3daaaf(_0x3d89f6['params'],_0x3e60b(0x230),_0x2999ad);case _0x28cc3f[_0x3e60b(0x1ae)]['id']:return _0x3daaaf(_0x3d89f6[_0x3e60b(0x23e)],_0x3e60b(0x1a2),_0x2999ad);case _0x28cc3f['MoveRowsCommand']['id']:return _0x1cb89d(_0x3d89f6['params'],'row',_0x2999ad);case _0x28cc3f[_0x3e60b(0x279)]['id']:return _0x1cb89d(_0x3d89f6[_0x3e60b(0x23e)],_0x3e60b(0x1a2),_0x2999ad);default:return null;}}function _0xfd8169(_0x53b779,_0x4ff6cd,_0x4522ee){const _0x4bb311=_0x198471;let _0x12252e=_0x3f9f9d(_0x53b779,_0x4522ee);if(!(_0x53b779!=null&&_0x53b779['range'])||!_0x12252e)return null;let _0xc43c8a=_0x4ff6cd==='row'?_0x53b779[_0x4bb311(0x255)][_0x4bb311(0x221)]:_0x53b779['range']['startColumn'],_0x46ca97=_0x4ff6cd===_0x4bb311(0x230)?_0x53b779['range'][_0x4bb311(0x243)]:_0x53b779[_0x4bb311(0x255)][_0x4bb311(0x1f1)];return{..._0x12252e,'axis':_0x4ff6cd,'type':'insert','index':_0xc43c8a,'count':_0x46ca97-_0xc43c8a+0x1};}function _0x3daaaf(_0x5b327b,_0x43e952,_0x4e4dac){const _0x337181=_0x198471;let _0x4926f5=_0x3f9f9d(_0x5b327b,_0x4e4dac);if(!(_0x5b327b!=null&&_0x5b327b[_0x337181(0x255)])||!_0x4926f5)return null;let _0x14060a=_0x43e952==='row'?_0x5b327b[_0x337181(0x255)]['startRow']:_0x5b327b[_0x337181(0x255)][_0x337181(0x1e0)],_0x3dad21=_0x43e952==='row'?_0x5b327b['range'][_0x337181(0x243)]:_0x5b327b[_0x337181(0x255)][_0x337181(0x1f1)];return{..._0x4926f5,'axis':_0x43e952,'type':_0x337181(0x208),'start':_0x14060a,'end':_0x3dad21};}function _0x1cb89d(_0x1dddd2,_0xf3b240,_0x103969){const _0x562ccb=_0x198471;let _0x6f1ab1=_0x3f9f9d(_0x1dddd2,_0x103969);if(!(_0x1dddd2!=null&&_0x1dddd2[_0x562ccb(0x1db)])||!_0x1dddd2[_0x562ccb(0x20d)]||!_0x6f1ab1)return null;let _0x58e14f=_0xf3b240===_0x562ccb(0x230)?_0x1dddd2[_0x562ccb(0x1db)]['startRow']:_0x1dddd2[_0x562ccb(0x1db)][_0x562ccb(0x1e0)],_0x39ce9b=_0xf3b240==='row'?_0x1dddd2[_0x562ccb(0x1db)][_0x562ccb(0x243)]:_0x1dddd2[_0x562ccb(0x1db)][_0x562ccb(0x1f1)],_0x539633=_0xf3b240===_0x562ccb(0x230)?_0x1dddd2[_0x562ccb(0x20d)]['startRow']:_0x1dddd2[_0x562ccb(0x20d)]['startColumn'];return{..._0x6f1ab1,'axis':_0xf3b240,'type':'move','sourceStart':_0x58e14f,'sourceEnd':_0x39ce9b,'destinationIndex':_0x539633};}function _0x52f1f2(_0x3537f0,_0x56e6bf){const _0x13bdb1=_0x198471;switch(_0x3537f0[_0x13bdb1(0x240)]){case _0x13bdb1(0x237):return{'unitId':_0x3537f0[_0x13bdb1(0x1da)],'subUnitId':_0x3537f0['subUnitId'],'axis':_0x3537f0[_0x13bdb1(0x1ee)],'type':_0x13bdb1(0x208),'start':_0x3537f0[_0x13bdb1(0x25a)],'end':_0x3537f0['index']+_0x3537f0[_0x13bdb1(0x220)]-0x1};case _0x13bdb1(0x208):return{'unitId':_0x3537f0[_0x13bdb1(0x1da)],'subUnitId':_0x3537f0['subUnitId'],'axis':_0x3537f0[_0x13bdb1(0x1ee)],'type':'insert','index':_0x3537f0['start'],'count':_0x3537f0[_0x13bdb1(0x206)]-_0x3537f0['start']+0x1,'restoreOutlines':_0x56e6bf[_0x13bdb1(0x200)](_0x2a93c6=>_0x2a93c6[_0x13bdb1(0x1da)]===_0x3537f0[_0x13bdb1(0x1da)]&&_0x2a93c6['subUnitId']===_0x3537f0['subUnitId']&&_0x2a93c6['axis']===_0x3537f0[_0x13bdb1(0x1ee)])};case'move':return _0x19a06d(_0x3537f0);}}function _0x19a06d(_0xad07cf){const _0xda7aa=_0x198471;let _0x4984dd=_0xad07cf[_0xda7aa(0x1af)]-_0xad07cf['sourceStart']+0x1;return _0xad07cf[_0xda7aa(0x1d1)]>=_0xad07cf[_0xda7aa(0x270)]&&_0xad07cf['destinationIndex']<=_0xad07cf[_0xda7aa(0x1af)]+0x1?{..._0xad07cf}:_0xad07cf['destinationIndex']>_0xad07cf[_0xda7aa(0x1af)]+0x1?{..._0xad07cf,'sourceStart':_0xad07cf['destinationIndex']-_0x4984dd,'sourceEnd':_0xad07cf[_0xda7aa(0x1d1)]-0x1,'destinationIndex':_0xad07cf[_0xda7aa(0x270)]}:{..._0xad07cf,'sourceStart':_0xad07cf[_0xda7aa(0x1d1)],'sourceEnd':_0xad07cf[_0xda7aa(0x1d1)]+_0x4984dd-0x1,'destinationIndex':_0xad07cf['sourceEnd']+0x1};}function _0x3f9f9d(_0x256688,_0x4a155e){const _0x35f1d2=_0x198471;let _0x1ec892=(_0x256688==null?void 0x0:_0x256688[_0x35f1d2(0x1da)])??(_0x4a155e==null?void 0x0:_0x4a155e[_0x35f1d2(0x1da)]),_0x98335a=(_0x256688==null?void 0x0:_0x256688[_0x35f1d2(0x1fa)])??(_0x4a155e==null?void 0x0:_0x4a155e[_0x35f1d2(0x1fa)]);return _0x1ec892&&_0x98335a?{'unitId':_0x1ec892,'subUnitId':_0x98335a}:null;}function _0x5bac3a(){const _0x319676=_0x198471;return{'redos':[..._0x421d2f['redos']],'undos':[..._0x421d2f[_0x319676(0x1d8)]],'preRedos':[..._0x421d2f[_0x319676(0x1f2)]??[]],'preUndos':[..._0x421d2f['preUndos']??[]]};}let _0xda2333=class extends _0x46eb8d[_0x198471(0x1a4)]{constructor(_0x53fc42,_0x5df2c6){const _0x1c31c3=_0x198471;super(),this[_0x1c31c3(0x246)]=_0x53fc42,this[_0x1c31c3(0x24b)]=_0x5df2c6,this[_0x1c31c3(0x259)]();}[_0x198471(0x259)](){const _0x5ebec6=_0x198471;this[_0x5ebec6(0x1c2)](this[_0x5ebec6(0x246)][_0x5ebec6(0x1dc)]({'pluginName':_0x4ab997,'businesses':[_0x46eb8d[_0x5ebec6(0x1d2)][_0x5ebec6(0x228)]],'toJson':_0x405721=>JSON['stringify'](this[_0x5ebec6(0x24b)]['serialize'](_0x405721)),'parseJson':_0x23cf37=>JSON[_0x5ebec6(0x262)](_0x23cf37),'onLoad':(_0x550f54,_0x9b5232)=>this[_0x5ebec6(0x24b)][_0x5ebec6(0x233)](_0x550f54,_0x9b5232),'onUnLoad':_0x1ec496=>this[_0x5ebec6(0x24b)][_0x5ebec6(0x23f)](_0x1ec496)}));}};_0xda2333=_0x39af85([_0x39bd4b(0x0,_0x46eb8d[_0x198471(0x1e5)]),_0x39bd4b(0x1,(0x0,_0x46eb8d[_0x198471(0x251)])(_0x4941a4))],_0xda2333);let _0x2b7c24=class extends _0x46eb8d['Plugin']{constructor(_0x48335b=_0x16594c,_0x49286,_0x4942d3,_0x47ab36){const _0x118c2c=_0x198471;super(),this['_config']=_0x48335b,this[_0x118c2c(0x1e2)]=_0x49286,this[_0x118c2c(0x241)]=_0x4942d3,this[_0x118c2c(0x1f6)]=_0x47ab36;let {..._0x5cb192}=(0x0,_0x46eb8d['merge'])({},_0x16594c,this[_0x118c2c(0x235)]);this['_configService'][_0x118c2c(0x264)]('sheets-outline.config',_0x5cb192);}['onStarting'](){const _0x452f59=_0x198471;this[_0x452f59(0x1e2)][_0x452f59(0x23c)]([_0x4941a4]),this[_0x452f59(0x1e2)]['add']([_0x404460]),this[_0x452f59(0x1e2)][_0x452f59(0x23c)]([_0xda2333]),this[_0x452f59(0x1e2)][_0x452f59(0x23c)]([_0x15e59d]),this[_0x452f59(0x1be)](),this[_0x452f59(0x1e2)][_0x452f59(0x1ef)](_0x4941a4),this['_injector'][_0x452f59(0x1ef)](_0x404460),this[_0x452f59(0x1e2)][_0x452f59(0x1ef)](_0xda2333),this[_0x452f59(0x1e2)][_0x452f59(0x1ef)](_0x15e59d);}[_0x198471(0x1be)](){const _0x1b09de=_0x198471;[_0x2f9c09,_0xa7059e,_0x3be80b,_0x4cfe39]['forEach'](_0x3201f8=>{const _0x2ef196=_0x4feb;this['disposeWithMe'](this[_0x2ef196(0x241)][_0x2ef196(0x1d0)](_0x3201f8));}),[_0x2478ea,_0xa1178d,_0xbe3288,_0x5d0eea,_0x3042dc][_0x1b09de(0x223)](_0xac21e6=>{const _0x3c658f=_0x1b09de;this[_0x3c658f(0x1c2)](this[_0x3c658f(0x241)][_0x3c658f(0x1d0)](_0xac21e6));});}};_0x325afc(_0x2b7c24,'pluginName',_0x4ab997),_0x325afc(_0x2b7c24,_0x198471(0x238),_0x36e738),_0x325afc(_0x2b7c24,'version',_0x3df0ae),_0x325afc(_0x2b7c24,_0x198471(0x240),_0x46eb8d[_0x198471(0x1d2)][_0x198471(0x228)]),_0x2b7c24=_0x39af85([(0x0,_0x46eb8d[_0x198471(0x1cc)])(_0x4caeca[_0x198471(0x23b)],_0x28cc3f['UniverSheetsPlugin']),_0x39bd4b(0x1,(0x0,_0x46eb8d[_0x198471(0x251)])(_0x46eb8d['Injector'])),_0x39bd4b(0x2,_0x46eb8d[_0x198471(0x278)]),_0x39bd4b(0x3,_0x46eb8d[_0x198471(0x21d)])],_0x2b7c24),_0x4253ba[_0x198471(0x1e1)]=_0x2f9c09,_0x4253ba['AddDimensionOutlineMutation']=_0x2478ea,_0x4253ba['ClearDimensionOutlinesCommand']=_0x4cfe39,_0x4253ba[_0x198471(0x253)]=_0x5d0eea,_0x4253ba[_0x198471(0x27b)]=_0x2b17dd,_0x4253ba[_0x198471(0x257)]=_0x9b2011,_0x4253ba['RemoveDimensionOutlineCommand']=_0xa7059e,_0x4253ba[_0x198471(0x252)]=_0xa1178d,_0x4253ba['SHEET_OUTLINE_PLUGIN']=_0x4ab997,_0x4253ba[_0x198471(0x27c)]=_0x3be80b,_0x4253ba['SetDimensionOutlineCollapsedMutation']=_0xbe3288,_0x4253ba['SheetsOutlineErrorService']=_0x404460,_0x4253ba[_0x198471(0x21c)]=_0x4941a4,_0x4253ba['TransformDimensionOutlinesMutation']=_0x3042dc,Object['defineProperty'](_0x4253ba,_0x198471(0x248),{'enumerable':!0x0,'get':function(){return _0x2b7c24;}}),_0x4253ba[_0x198471(0x1c3)]=_0x3626b9,_0x4253ba[_0x198471(0x216)]=_0x2240bd,_0x4253ba[_0x198471(0x276)]=_0x148ae7,_0x4253ba['hasDimensionOutlineViewPermission']=_0x20d91b,_0x4253ba[_0x198471(0x1aa)]=_0x2469c5,_0x4253ba[_0x198471(0x1c0)]=_0x3092f2,_0x4253ba['transformOutlinesByMove']=_0x316cdc;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-outline",
3
- "version": "1.0.0-alpha.8",
3
+ "version": "1.0.0-beta.0",
4
4
  "private": false,
5
5
  "description": "Dimension outline model integration for Univer Sheets.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -61,15 +61,15 @@
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@univerjs-pro/license": "1.0.0-alpha.8",
65
- "@univerjs/core": "1.0.0-alpha.8",
66
- "@univerjs/sheets": "1.0.0-alpha.8"
64
+ "@univerjs/core": "1.0.0-beta.0",
65
+ "@univerjs/sheets": "1.0.0-beta.0",
66
+ "@univerjs-pro/license": "1.0.0-beta.0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "rxjs": "7.8.2",
70
70
  "typescript": "^6.0.3",
71
71
  "vitest": "^4.1.10",
72
- "@univerjs-infra/shared": "1.0.0-alpha.8"
72
+ "@univerjs-infra/shared": "1.0.0-beta.0"
73
73
  },
74
74
  "scripts": {
75
75
  "test": "vitest run",