@univerjs-pro/sheets-outline 0.25.1 → 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/index.d.ts +2 -2
- package/lib/types/plugin.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +6 -6
- /package/lib/types/{controllers/config.schema.d.ts → config/config.d.ts} +0 -0
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x2afeeb=_0x19f7;(function(_0x11dbd4,_0x4bc28e){var _0x1e2c18=_0x19f7,_0xcfc018=_0x11dbd4();while(!![]){try{var _0x505aa2=parseInt(_0x1e2c18(0x133))/0x1*(parseInt(_0x1e2c18(0x149))/0x2)+-parseInt(_0x1e2c18(0x145))/0x3+parseInt(_0x1e2c18(0x137))/0x4*(parseInt(_0x1e2c18(0x147))/0x5)+-parseInt(_0x1e2c18(0x148))/0x6+parseInt(_0x1e2c18(0x144))/0x7*(-parseInt(_0x1e2c18(0x13e))/0x8)+-parseInt(_0x1e2c18(0x132))/0x9+-parseInt(_0x1e2c18(0x139))/0xa*(-parseInt(_0x1e2c18(0x140))/0xb);if(_0x505aa2===_0x4bc28e)break;else _0xcfc018['push'](_0xcfc018['shift']());}catch(_0x52a742){_0xcfc018['push'](_0xcfc018['shift']());}}}(_0x4826,0x35fdb));import{AddDimensionOutlineCommand as _0xa5ccc6,ClearDimensionOutlinesCommand as _0x3b488c,DimensionOutlineAxis as _0x594eb5,DimensionOutlineErrorReason as _0x336eb7,RemoveDimensionOutlineCommand as _0x590d6f,SetDimensionOutlineCollapsedCommand as _0xbb1c08,SheetsOutlineModel as _0x25b16c}from'@univerjs-pro/sheets-outline';import{FEnum as _0x3dafc5}from'@univerjs/core/facade';function _0x19f7(_0x3d5646,_0x5bda23){_0x3d5646=_0x3d5646-0x130;var _0x4826a4=_0x4826();var _0x19f72c=_0x4826a4[_0x3d5646];return _0x19f72c;}function _0x4826(){var _0x15755e=['get','clearDimensionOutlines','495927RmNOpK','65854ljHvUb','filter','setDimensionOutlineCollapsed','addRowOutline','140236qCeMBT','getSheetId','15490mSZSQi','getOutlines','extend','getUnitId','syncExecuteCommand','638328FrFYoe','_addDimensionOutline','8437hjBGoU','getDimensionOutlines','_workbook','COLUMN','21iyKljY','1122996NuHyFW','_commandService','5GpEzvt','2394246TQVGuG','2qgZnEy','_injector','_worksheet','DimensionOutlineAxis','axis'];_0x4826=function(){return _0x15755e;};return _0x4826();}import{FWorksheet as _0x367de4}from'@univerjs/sheets/facade';var l=class extends _0x3dafc5{get[_0x2afeeb(0x14c)](){return _0x594eb5;}get['DimensionOutlineErrorReason'](){return _0x336eb7;}};_0x3dafc5[_0x2afeeb(0x13b)](l);var u=class extends _0x367de4{[_0x2afeeb(0x136)](_0x33d4e6,_0x4c8cbc){var _0x46c655=_0x2afeeb;return this[_0x46c655(0x13f)](_0x594eb5['ROW'],_0x33d4e6,_0x4c8cbc);}['addColumnOutline'](_0x3fac14,_0x1af8b4){var _0x4913a8=_0x2afeeb;return this[_0x4913a8(0x13f)](_0x594eb5[_0x4913a8(0x143)],_0x3fac14,_0x1af8b4);}['removeDimensionOutline'](_0x2f4e2b){var _0x2a263c=_0x2afeeb;return this[_0x2a263c(0x146)]['syncExecuteCommand'](_0x590d6f['id'],{'unitId':this[_0x2a263c(0x142)][_0x2a263c(0x13c)](),'subUnitId':this[_0x2a263c(0x14b)][_0x2a263c(0x138)](),'outlineId':_0x2f4e2b}),this;}[_0x2afeeb(0x135)](_0x144e62,_0x5499c2){var _0x8de7d8=_0x2afeeb;return this[_0x8de7d8(0x146)][_0x8de7d8(0x13d)](_0xbb1c08['id'],{'unitId':this[_0x8de7d8(0x142)][_0x8de7d8(0x13c)](),'subUnitId':this['_worksheet'][_0x8de7d8(0x138)](),'outlineId':_0x144e62,'collapsed':_0x5499c2}),this;}[_0x2afeeb(0x131)](_0xbb9a43,_0x3d17f6,_0x2967b9){var _0x2d100b=_0x2afeeb;return this['_commandService'][_0x2d100b(0x13d)](_0x3b488c['id'],{'unitId':this[_0x2d100b(0x142)][_0x2d100b(0x13c)](),'subUnitId':this[_0x2d100b(0x14b)]['getSheetId'](),'axis':_0xbb9a43,'start':_0x3d17f6,'end':_0x2967b9}),this;}[_0x2afeeb(0x141)](_0xc0f629){var _0x6a82ad=_0x2afeeb;let _0x376d75=this[_0x6a82ad(0x14a)][_0x6a82ad(0x130)](_0x25b16c)[_0x6a82ad(0x13a)](this[_0x6a82ad(0x142)][_0x6a82ad(0x13c)](),this[_0x6a82ad(0x14b)]['getSheetId']());return _0xc0f629?_0x376d75[_0x6a82ad(0x134)](_0x359a63=>_0x359a63[_0x6a82ad(0x14d)]===_0xc0f629):_0x376d75;}[_0x2afeeb(0x13f)](_0x40654e,_0x14ef33,_0x401daa){var _0x23c7b0=_0x2afeeb;return this['_commandService']['syncExecuteCommand'](_0xa5ccc6['id'],{'unitId':this[_0x23c7b0(0x142)][_0x23c7b0(0x13c)](),'subUnitId':this['_worksheet']['getSheetId'](),'axis':_0x40654e,'start':_0x14ef33,'end':_0x14ef33+_0x401daa-0x1}),this;}};_0x367de4[_0x2afeeb(0x13b)](u);export{};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x108f55=_0x17ca;(function(_0x2c27db,_0x149548){const _0x581d05=_0x17ca,_0x52ce5e=_0x2c27db();while(!![]){try{const _0x25bd53=-parseInt(_0x581d05(0x206))/0x1+-parseInt(_0x581d05(0x23c))/0x2*(-parseInt(_0x581d05(0x236))/0x3)+-parseInt(_0x581d05(0x204))/0x4*(-parseInt(_0x581d05(0x234))/0x5)+parseInt(_0x581d05(0x203))/0x6+parseInt(_0x581d05(0x1dd))/0x7*(-parseInt(_0x581d05(0x1fa))/0x8)+-parseInt(_0x581d05(0x215))/0x9*(-parseInt(_0x581d05(0x23a))/0xa)+-parseInt(_0x581d05(0x20f))/0xb*(parseInt(_0x581d05(0x1dc))/0xc);if(_0x25bd53===_0x149548)break;else _0x52ce5e['push'](_0x52ce5e['shift']());}catch(_0x153350){_0x52ce5e['push'](_0x52ce5e['shift']());}}}(_0x56d8,0xc9bd4));import{CommandType as _0xdcbb1d,CustomCommandExecutionError as _0x42fed8,DependentOn as _0x31051b,Disposable as _0xd030e8,ICommandService as _0x32dfc8,IPermissionService as _0x53c96d,IResourceManagerService as _0x1e061f,IUndoRedoService as _0xb0d3ff,IUniverInstanceService as _0x4c1df7,Inject as _0x11d2c5,Injector as _0x13aba9,Plugin as _0x5974fe,UniverInstanceType as _0x2a5c6b,generateRandomId as _0x125a7c,sequenceExecute as _0x22c2d6}from'@univerjs/core';import{InsertColCommand as _0x4cbe63,InsertRowCommand as _0x1c347d,MoveColsCommand as _0x24849c,MoveRowsCommand as _0x582979,RemoveColCommand as _0x1206a2,RemoveRowCommand as _0x4cd4c1,SetColHiddenMutation as _0x5f2c28,SetColVisibleMutation as _0x17897e,SetRowHiddenMutation as _0x514f67,SetRowVisibleMutation as _0x221262,SheetInterceptorService as _0x26fe96,SheetPermissionCheckController as _0x265923,WorkbookViewPermission as _0x5c06b3,WorksheetViewPermission as _0x485a5b,getSheetCommandTarget as _0x541521}from'@univerjs/sheets';import{Subject as _0xca74d5,of as _0x4a090c}from'rxjs';import{debounceTime as _0x103d42,map as _0x1bee2f,startWith as _0x48adad}from'rxjs/operators';import{UniverLicensePlugin as _0x3f88b2}from'@univerjs-pro/license';let fe=function(_0x581a1b){const _0x3a8a17=_0x17ca;return _0x581a1b[_0x3a8a17(0x1ff)]=_0x3a8a17(0x20e),_0x581a1b[_0x3a8a17(0x1c2)]=_0x3a8a17(0x1f8),_0x581a1b;}({}),pe=function(_0x1b0bc1){const _0x1273b4=_0x17ca;return _0x1b0bc1[_0x1273b4(0x1f7)]='invalid-range',_0x1b0bc1['OUT_OF_BOUNDS']='out-of-bounds',_0x1b0bc1[_0x1273b4(0x24f)]=_0x1273b4(0x250),_0x1b0bc1[_0x1273b4(0x207)]=_0x1273b4(0x20a),_0x1b0bc1[_0x1273b4(0x1da)]=_0x1273b4(0x1f5),_0x1b0bc1[_0x1273b4(0x1e9)]='clear-range-not-contain-outline',_0x1b0bc1[_0x1273b4(0x1af)]=_0x1273b4(0x1c9),_0x1b0bc1;}({});var w=class extends Error{constructor(_0x3ef9ff,_0x1d38f9,_0x2b27ec){const _0x54307c=_0x17ca;super(_0x1d38f9),this['reason']=_0x3ef9ff,this[_0x54307c(0x24d)]=_0x2b27ec,this[_0x54307c(0x224)]=_0x54307c(0x201);}};function T(_0x3631d8){const _0x400469=_0x17ca;return _0x3631d8 instanceof w?_0x3631d8[_0x400469(0x24c)]:_0x3631d8 instanceof Error?_0x3631d8[_0x400469(0x1b3)][_0x400469(0x22f)](_0x400469(0x222))?_0x400469(0x1f5):_0x3631d8[_0x400469(0x1b3)]['includes']('depth')?_0x400469(0x20a):_0x3631d8[_0x400469(0x1b3)]['includes']('Crossing')?_0x400469(0x250):_0x3631d8[_0x400469(0x1b3)][_0x400469(0x22f)](_0x400469(0x21b))?'invalid-range':_0x400469(0x1c9):_0x400469(0x1c9);}function me(_0x143d50){const _0x4d877c=_0x17ca;return _0x143d50 instanceof w?_0x143d50[_0x4d877c(0x24d)]:void 0x0;}const E=0x2**0x35-0x1;function D(_0x4daa5e,_0x5ab365){const _0x2a375b=_0x17ca;return _0x4daa5e[_0x2a375b(0x259)]===_0x5ab365[_0x2a375b(0x259)]&&_0x4daa5e[_0x2a375b(0x22d)]===_0x5ab365[_0x2a375b(0x22d)]&&_0x4daa5e['axis']===_0x5ab365[_0x2a375b(0x21d)];}function O(_0x184e29,_0x16edab={}){const _0x26176c=_0x17ca;var _0x2c9643;let _0x41a71b=(_0x2c9643=_0x16edab[_0x26176c(0x218)])==null?0x8:_0x2c9643,_0x1394ef=new Map();for(let _0x4b4a70 of _0x184e29){let _0x3756a9=_0x4b4a70[_0x26176c(0x259)]+':'+_0x4b4a70[_0x26176c(0x22d)]+':'+_0x4b4a70['axis'],_0x4a7e4d=_0x1394ef[_0x26176c(0x1c1)](_0x3756a9);_0x4a7e4d?_0x4a7e4d[_0x26176c(0x237)](_0x4b4a70):_0x1394ef[_0x26176c(0x246)](_0x3756a9,[_0x4b4a70]);}let _0x1af4da=[];for(let _0x2a7a5e of _0x1394ef[_0x26176c(0x1e8)]()){let _0x1c0b85=[..._0x2a7a5e][_0x26176c(0x252)](Ee),_0x345490=[];for(let _0x9d8d79 of _0x1c0b85){for(De(_0x9d8d79);_0x345490[_0x26176c(0x214)]>0x0&&_0x9d8d79['start']>_0x345490[_0x345490['length']-0x1][_0x26176c(0x233)];)_0x345490['pop']();let _0x36d869=_0x345490[_0x345490[_0x26176c(0x214)]-0x1];if(_0x36d869&&_0x9d8d79[_0x26176c(0x233)]>_0x36d869[_0x26176c(0x233)])throw new w(_0x26176c(0x250),_0x26176c(0x1ec),_0x9d8d79['id']);let _0x283607=_0x36d869?_0x36d869[_0x26176c(0x200)]+0x1:0x1;if(_0x283607>_0x41a71b)throw new w('max-depth',_0x26176c(0x1b8)+_0x41a71b,_0x9d8d79['id']);let _0x1d3b7e={..._0x9d8d79,'depth':_0x283607,'parentId':_0x36d869==null?void 0x0:_0x36d869['id'],'anchor':_0x9d8d79[_0x26176c(0x233)],'children':[]};_0x36d869?_0x36d869[_0x26176c(0x210)][_0x26176c(0x237)](_0x1d3b7e):_0x1af4da['push'](_0x1d3b7e),_0x345490[_0x26176c(0x237)](_0x1d3b7e);}}return _0x1af4da;}function k(_0x54c83d,_0x618cee,_0x2289d1={}){const _0x4c6646=_0x17ca;if(_0x618cee[_0x4c6646(0x24a)]<0x0||_0x618cee[_0x4c6646(0x24a)]>_0x618cee[_0x4c6646(0x233)])return{'valid':!0x1,'reason':_0x4c6646(0x23e)};if(_0x2289d1[_0x4c6646(0x253)]!=null&&_0x618cee[_0x4c6646(0x233)]>=_0x2289d1['maxIndex'])return{'valid':!0x1,'reason':_0x4c6646(0x1fe)};let _0x4e161d=_0x54c83d[_0x4c6646(0x1bd)](_0x3e41de=>D(_0x3e41de,_0x618cee));for(let _0x210532 of _0x4e161d)if(Oe(_0x210532,_0x618cee))return{'valid':!0x1,'reason':_0x4c6646(0x250)};try{O([..._0x54c83d,_0x618cee],_0x2289d1);}catch(_0x56ae5b){let _0x3e54be=T(_0x56ae5b);return _0x3e54be===_0x4c6646(0x20a)?{'valid':!0x1,'reason':_0x4c6646(0x20a)}:_0x3e54be===_0x4c6646(0x23e)?{'valid':!0x1,'reason':'invalid-range'}:{'valid':!0x1,'reason':_0x4c6646(0x250)};}return{'valid':!0x0};}function he(_0x5120ae,_0x1bd43f,_0x3066cf={}){const _0x230a79=_0x17ca;let _0x437395=k(_0x5120ae,_0x1bd43f,_0x3066cf);if(!_0x437395[_0x230a79(0x227)]){var _0x355a3c;throw Error((_0x355a3c=_0x437395[_0x230a79(0x24c)])==null?_0x230a79(0x1fd):_0x355a3c);}return[..._0x5120ae,_0x1bd43f];}function ge(_0x371271,_0x1e3863){const _0x4d4dc9=_0x17ca;let _0x16f424=_0x1e3863[_0x4d4dc9(0x24a)],_0x1c445b=_0x1e3863[_0x4d4dc9(0x233)],_0x2925c5=[],_0x1f73ba=!0x0;for(;_0x1f73ba;){_0x1f73ba=!0x1;for(let _0x4328b1 of _0x371271)_0x2925c5[_0x4d4dc9(0x22f)](_0x4328b1)||!D(_0x4328b1,_0x1e3863)||!we(_0x4328b1[_0x4d4dc9(0x24a)],_0x4328b1[_0x4d4dc9(0x233)],_0x16f424,_0x1c445b)||(_0x2925c5[_0x4d4dc9(0x237)](_0x4328b1),_0x16f424=Math[_0x4d4dc9(0x1d6)](_0x16f424,_0x4328b1['start']),_0x1c445b=Math[_0x4d4dc9(0x1fb)](_0x1c445b,_0x4328b1[_0x4d4dc9(0x233)]),_0x1f73ba=!0x0);}if(_0x2925c5['length']===0x0)return null;let [_0x302c61]=[..._0x2925c5][_0x4d4dc9(0x252)](Ee);return{'mergedOutline':{..._0x302c61,'start':_0x16f424,'end':_0x1c445b},'mergedOutlines':_0x2925c5};}function _e(_0x52eeaa,_0x2a974c){const _0x5aa1a1=_0x17ca;return _0x52eeaa[_0x5aa1a1(0x1bd)](_0x45766e=>D(_0x45766e,_0x2a974c)?!(_0x45766e[_0x5aa1a1(0x24a)]>=_0x2a974c[_0x5aa1a1(0x24a)]&&_0x45766e['end']<=_0x2a974c[_0x5aa1a1(0x233)]):!0x0);}function ve(_0x5713c6,_0x337ab1,_0x518aba,_0x45fccc){const _0x21ca01=_0x17ca;return ye(_0x5713c6['filter'](_0xc28b7a=>_0xc28b7a[_0x21ca01(0x259)]===_0x337ab1&&_0xc28b7a['subUnitId']===_0x518aba&&_0xc28b7a[_0x21ca01(0x21d)]===_0x45fccc&&_0xc28b7a['collapsed'])['map'](_0x1ebebc=>({'start':_0x1ebebc[_0x21ca01(0x24a)],'end':_0x1ebebc[_0x21ca01(0x233)]})));}function ye(_0x549e2c){const _0x17fdf4=_0x17ca;if(_0x549e2c['length']===0x0)return[];let _0x58f660=[..._0x549e2c][_0x17fdf4(0x252)]((_0x5815d2,_0x32af50)=>_0x5815d2[_0x17fdf4(0x24a)]-_0x32af50['start']||_0x5815d2[_0x17fdf4(0x233)]-_0x32af50['end']),_0x39dbc8=[];for(let _0x12d65f of _0x58f660){let _0x1f32f5=_0x39dbc8[_0x39dbc8['length']-0x1];!_0x1f32f5||_0x12d65f[_0x17fdf4(0x24a)]>_0x1f32f5['end']+0x1?_0x39dbc8[_0x17fdf4(0x237)]({..._0x12d65f}):_0x1f32f5[_0x17fdf4(0x233)]=Math[_0x17fdf4(0x1fb)](_0x1f32f5[_0x17fdf4(0x233)],_0x12d65f[_0x17fdf4(0x233)]);}return _0x39dbc8;}function A(_0x310397,_0x437f54){const _0x1ad073=_0x17ca;return _0x437f54[_0x1ad073(0x248)]<=0x0?_0x310397:N(_0x310397[_0x1ad073(0x20d)](_0x42c4ef=>D(_0x42c4ef,_0x437f54)?_0x437f54[_0x1ad073(0x231)]<=_0x42c4ef['start']?{..._0x42c4ef,'start':_0x42c4ef['start']+_0x437f54['count'],'end':_0x42c4ef['end']+_0x437f54[_0x1ad073(0x248)]}:_0x42c4ef[_0x1ad073(0x24a)]<_0x437f54[_0x1ad073(0x231)]&&_0x437f54['index']<=_0x42c4ef[_0x1ad073(0x233)]?{..._0x42c4ef,'end':_0x42c4ef[_0x1ad073(0x233)]+_0x437f54['count']}:_0x42c4ef:_0x42c4ef));}function j(_0x5a716e,_0x366f4c){const _0x10e462=_0x17ca;if(_0x366f4c[_0x10e462(0x24a)]>_0x366f4c[_0x10e462(0x233)])return _0x5a716e;let _0x5bc262=_0x366f4c[_0x10e462(0x233)]-_0x366f4c[_0x10e462(0x24a)]+0x1,_0x586912=[];for(let _0x10974e of _0x5a716e){if(!D(_0x10974e,_0x366f4c)){_0x586912[_0x10e462(0x237)](_0x10974e);continue;}if(_0x10974e[_0x10e462(0x233)]<_0x366f4c[_0x10e462(0x24a)]){_0x586912['push'](_0x10974e);continue;}if(_0x10974e['start']>_0x366f4c['end']){_0x586912[_0x10e462(0x237)]({..._0x10974e,'start':_0x10974e[_0x10e462(0x24a)]-_0x5bc262,'end':_0x10974e['end']-_0x5bc262});continue;}let _0x32523d=Math[_0x10e462(0x1fb)](_0x10974e[_0x10e462(0x24a)],_0x366f4c['start']),_0x11cae2=Math[_0x10e462(0x1d6)](_0x10974e[_0x10e462(0x233)],_0x366f4c[_0x10e462(0x233)]),_0x3d0e63=Math[_0x10e462(0x1fb)](0x0,_0x11cae2-_0x32523d+0x1),_0x52590e=_0x10974e[_0x10e462(0x233)]-_0x10974e['start']+0x1-_0x3d0e63;if(_0x52590e<=0x0)continue;let _0x4e67b5=_0x10974e[_0x10e462(0x24a)]<_0x366f4c[_0x10e462(0x24a)]?_0x10974e['start']:_0x366f4c[_0x10e462(0x24a)];_0x586912['push']({..._0x10974e,'start':_0x4e67b5,'end':_0x4e67b5+_0x52590e-0x1});}return N(_0x586912);}function M(_0x1a7d20,_0x370b81){const _0x30da5c=_0x17ca;if(_0x370b81[_0x30da5c(0x23b)]>_0x370b81[_0x30da5c(0x244)])return _0x1a7d20;let _0x2b4f2f=[];for(let _0x6fb1a4 of _0x1a7d20){if(!D(_0x6fb1a4,_0x370b81)){_0x2b4f2f[_0x30da5c(0x237)](_0x6fb1a4);continue;}let _0x3719fd=be(_0x6fb1a4,_0x370b81);if(_0x3719fd[_0x30da5c(0x1b7)]===_0x30da5c(0x1b4))throw new w('move-splits-outline',_0x30da5c(0x1b2)+_0x6fb1a4['id'],_0x6fb1a4['id']);_0x2b4f2f[_0x30da5c(0x237)](_0x3719fd[_0x30da5c(0x1b1)]);}return N(_0x2b4f2f);}function be(_0x26b65f,_0x54075d){const _0x56abf2=_0x17ca;let _0x36b236=xe(_0x54075d[_0x56abf2(0x23b)],_0x54075d[_0x56abf2(0x244)]+0x1,_0x54075d[_0x56abf2(0x202)]),_0x12577c=[],_0x1e79d5={'start':_0x26b65f['start'],'end':_0x26b65f[_0x56abf2(0x233)]+0x1};for(let _0xc209f1 of _0x36b236){let _0x3462a9=Se(_0x1e79d5,_0xc209f1[_0x56abf2(0x21b)]);_0x3462a9&&_0x12577c[_0x56abf2(0x237)]({'start':_0x3462a9['start']+_0xc209f1[_0x56abf2(0x229)],'end':_0x3462a9[_0x56abf2(0x233)]+_0xc209f1[_0x56abf2(0x229)]});}let _0x400791=Ce(_0x12577c);return _0x400791['length']===0x1?{'type':'ok','outline':{..._0x26b65f,'start':_0x400791[0x0][_0x56abf2(0x24a)],'end':_0x400791[0x0]['end']-0x1}}:{'type':_0x56abf2(0x1b4),'outline':_0x26b65f,'ranges':_0x400791};}function xe(_0x482f39,_0x207d6b,_0xe2f15d){const _0x349c74=_0x17ca;let _0x5b4495=_0x207d6b-_0x482f39;if(_0x5b4495<=0x0)throw Error(_0x349c74(0x257));return _0xe2f15d>=_0x482f39&&_0xe2f15d<=_0x207d6b?[{'range':{'start':0x0,'end':E},'offset':0x0}]:_0xe2f15d<_0x482f39?[{'range':{'start':0x0,'end':_0xe2f15d},'offset':0x0},{'range':{'start':_0xe2f15d,'end':_0x482f39},'offset':_0x5b4495},{'range':{'start':_0x482f39,'end':_0x207d6b},'offset':_0xe2f15d-_0x482f39},{'range':{'start':_0x207d6b,'end':E},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x482f39},'offset':0x0},{'range':{'start':_0x482f39,'end':_0x207d6b},'offset':_0xe2f15d-_0x207d6b},{'range':{'start':_0x207d6b,'end':_0xe2f15d},'offset':-_0x5b4495},{'range':{'start':_0xe2f15d,'end':E},'offset':0x0}];}function Se(_0x11eb0f,_0x40042b){const _0x24e630=_0x17ca;let _0x2ce65d=Math['max'](_0x11eb0f['start'],_0x40042b[_0x24e630(0x24a)]),_0x491162=Math[_0x24e630(0x1d6)](_0x11eb0f['end'],_0x40042b[_0x24e630(0x233)]);return _0x2ce65d>=_0x491162?null:{'start':_0x2ce65d,'end':_0x491162};}function Ce(_0x16f474){const _0x47f981=_0x17ca;if(_0x16f474['length']===0x0)return[];let _0x60ff3d=[..._0x16f474][_0x47f981(0x252)]((_0x1336fe,_0x489ac4)=>_0x1336fe['start']-_0x489ac4[_0x47f981(0x24a)]||_0x1336fe[_0x47f981(0x233)]-_0x489ac4[_0x47f981(0x233)]),_0x110c33=[];for(let _0x2ca82d of _0x60ff3d){let _0xb7ae74=_0x110c33[_0x110c33[_0x47f981(0x214)]-0x1];!_0xb7ae74||_0x2ca82d[_0x47f981(0x24a)]>_0xb7ae74[_0x47f981(0x233)]?_0x110c33[_0x47f981(0x237)]({..._0x2ca82d}):_0xb7ae74['end']=Math[_0x47f981(0x1fb)](_0xb7ae74[_0x47f981(0x233)],_0x2ca82d[_0x47f981(0x233)]);}return _0x110c33;}function we(_0x37a22c,_0x105efd,_0x144508,_0x179a35){return _0x105efd+0x1===_0x144508||_0x179a35+0x1===_0x37a22c;}function N(_0x225999){let _0x4490c5=Te(_0x225999);return O(_0x4490c5),_0x4490c5;}function Te(_0xc4008b){const _0x38aea8=_0x17ca;let _0x32478e=new Map();for(let _0x5dbc73 of _0xc4008b){let _0x134d21=[_0x5dbc73[_0x38aea8(0x259)],_0x5dbc73[_0x38aea8(0x22d)],_0x5dbc73[_0x38aea8(0x21d)],_0x5dbc73[_0x38aea8(0x24a)],_0x5dbc73['end']]['join'](':'),_0x3e99eb=_0x32478e[_0x38aea8(0x1c1)](_0x134d21);if(!_0x3e99eb){_0x32478e[_0x38aea8(0x246)](_0x134d21,_0x5dbc73);continue;}_0x32478e[_0x38aea8(0x246)](_0x134d21,{..._0x3e99eb,'collapsed':_0x3e99eb[_0x38aea8(0x1e7)]||_0x5dbc73[_0x38aea8(0x1e7)]});}return Array[_0x38aea8(0x216)](_0x32478e[_0x38aea8(0x1e8)]());}function Ee(_0x10ad7b,_0x2c27c6){const _0x9a0dea=_0x17ca;return _0x10ad7b[_0x9a0dea(0x259)]===_0x2c27c6[_0x9a0dea(0x259)]?_0x10ad7b[_0x9a0dea(0x22d)]===_0x2c27c6[_0x9a0dea(0x22d)]?_0x10ad7b['axis']===_0x2c27c6[_0x9a0dea(0x21d)]?_0x10ad7b[_0x9a0dea(0x24a)]===_0x2c27c6[_0x9a0dea(0x24a)]?_0x2c27c6[_0x9a0dea(0x233)]-_0x10ad7b[_0x9a0dea(0x233)]:_0x10ad7b[_0x9a0dea(0x24a)]-_0x2c27c6['start']:_0x10ad7b[_0x9a0dea(0x21d)][_0x9a0dea(0x1c5)](_0x2c27c6[_0x9a0dea(0x21d)]):_0x10ad7b['subUnitId'][_0x9a0dea(0x1c5)](_0x2c27c6[_0x9a0dea(0x22d)]):_0x10ad7b['unitId'][_0x9a0dea(0x1c5)](_0x2c27c6[_0x9a0dea(0x259)]);}function De(_0x541e13){const _0x2ec483=_0x17ca;if(_0x541e13[_0x2ec483(0x24a)]>_0x541e13[_0x2ec483(0x233)])throw new w('invalid-range',_0x2ec483(0x1f1),_0x541e13['id']);}function Oe(_0x4f08d9,_0x494eb3){const _0x3c6c54=_0x17ca;let _0x5d22d5=_0x4f08d9[_0x3c6c54(0x24a)]<=_0x494eb3[_0x3c6c54(0x233)]&&_0x494eb3[_0x3c6c54(0x24a)]<=_0x4f08d9[_0x3c6c54(0x233)],_0x3dcd1d=_0x4f08d9[_0x3c6c54(0x24a)]<=_0x494eb3['start']&&_0x494eb3[_0x3c6c54(0x233)]<=_0x4f08d9['end'],_0x5e4e8e=_0x494eb3[_0x3c6c54(0x24a)]<=_0x4f08d9[_0x3c6c54(0x24a)]&&_0x4f08d9[_0x3c6c54(0x233)]<=_0x494eb3[_0x3c6c54(0x233)];return _0x5d22d5&&!_0x3dcd1d&&!_0x5e4e8e;}function P(_0x1228e7){'@babel/helpers - typeof';const _0x5a9879=_0x17ca;return P=typeof Symbol=='function'&&typeof Symbol[_0x5a9879(0x1eb)]==_0x5a9879(0x1ef)?function(_0x380109){return typeof _0x380109;}:function(_0x10b283){const _0x4420e1=_0x5a9879;return _0x10b283&&typeof Symbol==_0x4420e1(0x1f2)&&_0x10b283[_0x4420e1(0x1ce)]===Symbol&&_0x10b283!==Symbol[_0x4420e1(0x232)]?'symbol':typeof _0x10b283;},P(_0x1228e7);}function ke(_0x2987ba,_0x49ee7e){const _0x3662df=_0x17ca;if(P(_0x2987ba)!='object'||!_0x2987ba)return _0x2987ba;var _0x45f46d=_0x2987ba[Symbol[_0x3662df(0x243)]];if(_0x45f46d!==void 0x0){var _0x48ad44=_0x45f46d[_0x3662df(0x220)](_0x2987ba,_0x49ee7e||_0x3662df(0x21c));if(P(_0x48ad44)!=_0x3662df(0x242))return _0x48ad44;throw TypeError(_0x3662df(0x258));}return(_0x49ee7e===_0x3662df(0x1d4)?String:Number)(_0x2987ba);}function Ae(_0x543a92){const _0x14b321=_0x17ca;var _0x37f144=ke(_0x543a92,_0x14b321(0x1d4));return P(_0x37f144)==_0x14b321(0x1ef)?_0x37f144:_0x37f144+'';}function F(_0x35675a,_0x1046a9,_0x3caf22){return(_0x1046a9=Ae(_0x1046a9))in _0x35675a?Object['defineProperty'](_0x35675a,_0x1046a9,{'value':_0x3caf22,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x35675a[_0x1046a9]=_0x3caf22,_0x35675a;}var I=class extends _0xd030e8{constructor(..._0x29b9aa){const _0x3105b6=_0x17ca;super(..._0x29b9aa),F(this,_0x3105b6(0x21f),new Map()),F(this,'_change$',new _0xca74d5()),F(this,_0x3105b6(0x1c4),this[_0x3105b6(0x1cc)][_0x3105b6(0x205)]());}[_0x108f55(0x1e3)](_0x3cca01,_0x257581){const _0x5ab15f=_0x108f55;var _0x21f75b,_0x37f1a4;return[...(_0x21f75b=(_0x37f1a4=this[_0x5ab15f(0x21f)][_0x5ab15f(0x1c1)](_0x3cca01))==null?void 0x0:_0x37f1a4['get'](_0x257581))==null?[]:_0x21f75b];}[_0x108f55(0x1d2)](_0x374de4){const _0x77bf9f=_0x108f55;let _0x23fd60=this[_0x77bf9f(0x21f)][_0x77bf9f(0x1c1)](_0x374de4),_0x208251=new Map();return _0x23fd60==null||_0x23fd60['forEach']((_0x4329ef,_0x4c903d)=>{const _0x15edbf=_0x77bf9f;_0x208251[_0x15edbf(0x246)](_0x4c903d,[..._0x4329ef]);}),_0x208251;}['setOutlines'](_0x5dbd90,_0x2e2b27,_0x1ba545){const _0x4a02cc=_0x108f55;this[_0x4a02cc(0x238)](_0x5dbd90)[_0x4a02cc(0x246)](_0x2e2b27,[..._0x1ba545]),this[_0x4a02cc(0x1cc)][_0x4a02cc(0x1cb)]({'unitId':_0x5dbd90,'subUnitId':_0x2e2b27});}[_0x108f55(0x209)](_0x2cae98){const _0xd4a453=_0x108f55;this['_outlines'][_0xd4a453(0x1b0)](_0x2cae98),this[_0xd4a453(0x1cc)][_0xd4a453(0x1cb)]({'unitId':_0x2cae98});}[_0x108f55(0x223)](_0x26f0da){const _0x2573ee=_0x108f55;let _0x32bca4=this[_0x2573ee(0x21f)]['get'](_0x26f0da),_0x198dc3={};return _0x32bca4==null||_0x32bca4[_0x2573ee(0x1ee)]((_0x33eb3c,_0x3ee9e1)=>{_0x198dc3[_0x3ee9e1]={'outlineList':[..._0x33eb3c]};}),_0x198dc3;}[_0x108f55(0x1f4)](_0x52ab1c,_0x455224){const _0x493a83=_0x108f55;let _0x2f471c=new Map();Object[_0x493a83(0x228)](_0x455224)[_0x493a83(0x1ee)](([_0x31fb35,_0x38cb8e])=>{const _0x68a899=_0x493a83;var _0x3d9235;_0x2f471c[_0x68a899(0x246)](_0x31fb35,[...(_0x3d9235=_0x38cb8e[_0x68a899(0x1c3)])==null?[]:_0x3d9235]);}),this[_0x493a83(0x21f)]['set'](_0x52ab1c,_0x2f471c),this[_0x493a83(0x1cc)][_0x493a83(0x1cb)]({'unitId':_0x52ab1c});}[_0x108f55(0x1e0)](){const _0x29d7c2=_0x108f55;super[_0x29d7c2(0x1e0)](),this[_0x29d7c2(0x21f)][_0x29d7c2(0x249)](),this['_change$'][_0x29d7c2(0x1ab)]();}[_0x108f55(0x238)](_0x576ae7){const _0x3d608b=_0x108f55;let _0x3c0bf2=this[_0x3d608b(0x21f)][_0x3d608b(0x1c1)](_0x576ae7);return _0x3c0bf2||(_0x3c0bf2=new Map(),this[_0x3d608b(0x21f)][_0x3d608b(0x246)](_0x576ae7,_0x3c0bf2)),_0x3c0bf2;}},L=class extends _0xd030e8{constructor(..._0x24b0df){const _0x1ae9ba=_0x108f55;super(..._0x24b0df),F(this,_0x1ae9ba(0x213),new _0xca74d5()),F(this,_0x1ae9ba(0x1fc),this['_error$'][_0x1ae9ba(0x205)]());}[_0x108f55(0x1b6)](_0x3c2f7d){const _0x16db63=_0x108f55;this['_error$'][_0x16db63(0x1cb)](_0x3c2f7d);}[_0x108f55(0x1e0)](){const _0x1bfec1=_0x108f55;super[_0x1bfec1(0x1e0)](),this['_error$'][_0x1bfec1(0x1ab)]();}};const R={'id':_0x108f55(0x1bb),'type':_0xdcbb1d['MUTATION'],'handler':(_0x1815c0,_0x36d9b7)=>{const _0x48c3e4=_0x108f55;let _0x2b7e79=_0x1815c0[_0x48c3e4(0x1c1)](I),_0x354aad=_0x2b7e79[_0x48c3e4(0x1e3)](_0x36d9b7[_0x48c3e4(0x259)],_0x36d9b7[_0x48c3e4(0x22d)]);return _0x2b7e79[_0x48c3e4(0x211)](_0x36d9b7[_0x48c3e4(0x259)],_0x36d9b7[_0x48c3e4(0x22d)],he(_0x354aad,_0x36d9b7[_0x48c3e4(0x1b1)])),!0x0;}},z={'id':_0x108f55(0x1ea),'type':_0xdcbb1d[_0x108f55(0x1d9)],'handler':(_0x4cee26,_0x2f8a0a)=>{const _0x5ef3e3=_0x108f55;let _0x3ab718=_0x4cee26[_0x5ef3e3(0x1c1)](I),_0x2ef923=_0x3ab718[_0x5ef3e3(0x1e3)](_0x2f8a0a[_0x5ef3e3(0x259)],_0x2f8a0a[_0x5ef3e3(0x22d)]);return _0x3ab718['setOutlines'](_0x2f8a0a['unitId'],_0x2f8a0a[_0x5ef3e3(0x22d)],_0x2ef923[_0x5ef3e3(0x1bd)](_0x2f3de5=>_0x2f3de5['id']!==_0x2f8a0a[_0x5ef3e3(0x24d)])),!0x0;}};function B(_0x4755b7,_0x525540,_0x5e08c4){const _0xb4ac60=_0x108f55;let _0xbd1fca=Me(_0x4755b7);return _0xbd1fca?_0xbd1fca[_0xb4ac60(0x217)]({'workbookTypes':[_0x5c06b3],'worksheetTypes':[_0x485a5b]},_0x525540,_0x5e08c4):!0x0;}function je(_0xe97159,_0x19babf,_0x51473d){const _0x3d5af0=_0x108f55;var _0x11f9cc;let _0x5b0ed1=Ne(_0xe97159);return((_0x11f9cc=_0x5b0ed1==null?void 0x0:_0x5b0ed1['permissionPointUpdate$'])==null?_0x4a090c(null):_0x11f9cc)[_0x3d5af0(0x23d)](_0x103d42(0x64),_0x48adad(null),_0x1bee2f(()=>B(_0xe97159,_0x19babf,_0x51473d)));}function Me(_0x272427){const _0x4fe8cf=_0x108f55;if(typeof _0x272427[_0x4fe8cf(0x1d7)]==_0x4fe8cf(0x1f2)&&!_0x272427[_0x4fe8cf(0x1d7)](_0x265923))return null;try{return _0x272427[_0x4fe8cf(0x1c1)](_0x265923);}catch{return null;}}function Ne(_0x5038e5){const _0x398568=_0x108f55;if(typeof _0x5038e5['has']==_0x398568(0x1f2)&&!_0x5038e5[_0x398568(0x1d7)](_0x53c96d))return null;try{return _0x5038e5[_0x398568(0x1c1)](_0x53c96d);}catch{return null;}}function _0x56d8(){const _0x17897d=['startRow','getCurrentUnitOfType','sheet.mutation.add-dimension-outline','getSheetId','filter','_injector','Invalid\x20dimension\x20outline\x20mutation','getSheetBySheetId','get','COLUMN','outlineList','change$','localeCompare','version','_config','_getCommandScope','unknown','sheet.mutation.clear-dimension-outlines','next','_change$','sheet.mutation.set-dimension-outline-collapsed','constructor','parse','find','sheet.command.remove-dimension-outline','getUnitOutlines','getActiveSheet','string','getUniverSheetInstance','min','has','stringify','MUTATION','MOVE_SPLITS_OUTLINE','_sheetInterceptorService','24blLIgD','595441EuEyYP','decorate','_commandService','dispose','insert','sheet.command.clear-dimension-outlines','getOutlines','getUnitId','_sheetsOutlineModel','SHEET_OUTLINE_PLUGIN','collapsed','values','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','sheet.mutation.remove-dimension-outline','iterator','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','clear-range-not-contain-outline','forEach','symbol','registerCommand','Invalid\x20outline\x20range','function','@univerjs-pro/sheets-outline','deserialize','move-splits-outline','_resourceManagerService','INVALID_RANGE','column','mergedOutlines','56aTQayi','max','error$','invalid-dimension-outline','out-of-bounds','ROW','depth','DimensionOutlineError','destinationIndex','2562090wodnrb','2510044UBBRvZ','asObservable','875576zTrFTi','MAX_DEPTH','restoreOutlines','removeUnit','max-depth','_initCommandInterceptor','some','map','row','5593511cPBnVs','children','setOutlines','params','_error$','length','9CtpqBy','from','permissionCheckWithoutRange','maxDepth','result','_sheetsOutlineErrorService','range','default','axis','getMaxColumns','_outlines','call','disposeWithMe','split\x20dimension\x20outline','serialize','name','_initRegisterCommand','registerPluginResource','valid','entries','offset','getOwnPropertyDescriptor','preUndos','UNIVER_SHEET','subUnitId','COMMAND','includes','fromRange','index','prototype','end','10nZxpHU','getRowCount','57wrnsvL','push','_ensureUnitOutlines','_initResource','8925790vMszjz','sourceStart','77866jXytDa','pipe','invalid-range','redos','endRow','_univerInstanceService','object','toPrimitive','sourceEnd','sheets-outline.config','set','endColumn','count','clear','start','dimension-outline-','reason','outlineId','pluginName','CROSSING','crossing','onStarting','sort','maxIndex','sheet.command.add-dimension-outline','startColumn','0.25.1','Invalid\x20dimension\x20outline\x20move\x20source\x20range','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','unitId','add','complete','pushUndoRedo','undos','toRange','UNKNOWN','delete','outline','Move\x20would\x20split\x20dimension\x20outline:\x20','message','split','move','emit','type','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20'];_0x56d8=function(){return _0x17897d;};return _0x56d8();}const V={'id':_0x108f55(0x254),'type':_0xdcbb1d[_0x108f55(0x22e)],'handler':(_0x3c226c,_0x24543b)=>{const _0x140b9a=_0x108f55;var _0x3ed0e5,_0x2c9af0;if(!_0x24543b)return!0x1;let _0x487c19=_0x541521(_0x3c226c[_0x140b9a(0x1c1)](_0x4c1df7),_0x24543b);if(!_0x487c19)return!0x1;let {unitId:_0x189695,subUnitId:_0x104cb0,worksheet:_0x2bea48}=_0x487c19;if(!B(_0x3c226c,_0x189695,_0x104cb0))return!0x1;let _0x5bc572=_0x3c226c[_0x140b9a(0x1c1)](I),_0x408bab={'id':_0x140b9a(0x24b)+_0x125a7c(0x6),'unitId':_0x189695,'subUnitId':_0x104cb0,'axis':_0x24543b['axis'],'start':_0x24543b[_0x140b9a(0x24a)],'end':_0x24543b[_0x140b9a(0x233)],'collapsed':!0x1},_0x514f85=_0x24543b['axis']===_0x140b9a(0x20e)?_0x2bea48[_0x140b9a(0x235)]():_0x2bea48['getColumnCount'](),_0x261f38=_0x5bc572['getOutlines'](_0x189695,_0x104cb0),_0x12a6a0=ge(_0x261f38,_0x408bab),_0x234e74=(_0x3ed0e5=_0x12a6a0==null?void 0x0:_0x12a6a0[_0x140b9a(0x1f9)])==null?[]:_0x3ed0e5,_0x4dcd48=(_0x2c9af0=_0x12a6a0==null?void 0x0:_0x12a6a0['mergedOutline'])==null?_0x408bab:_0x2c9af0,_0x36bdb3=k(_0x12a6a0?_0x261f38[_0x140b9a(0x1bd)](_0x5ac992=>!_0x234e74[_0x140b9a(0x20c)](_0xe7ed5d=>_0xe7ed5d['id']===_0x5ac992['id'])):_0x261f38,_0x4dcd48,{'maxIndex':_0x514f85});if(!_0x36bdb3[_0x140b9a(0x227)]){var _0x48019a;return _0x3c226c['get'](L)['emit']({'reason':(_0x48019a=_0x36bdb3[_0x140b9a(0x24c)])==null?'unknown':_0x48019a,'commandId':V['id'],'unitId':_0x189695,'subUnitId':_0x104cb0,'axis':_0x24543b[_0x140b9a(0x21d)],'outlineId':_0x4dcd48['id']}),!0x1;}let _0x334b59=[..._0x234e74[_0x140b9a(0x20d)](_0x10ed04=>({'id':z['id'],'params':{'unitId':_0x189695,'subUnitId':_0x104cb0,'outlineId':_0x10ed04['id']}})),{'id':R['id'],'params':{'unitId':_0x189695,'subUnitId':_0x104cb0,'outline':_0x4dcd48}}],_0x4e07a2=[{'id':z['id'],'params':{'unitId':_0x189695,'subUnitId':_0x104cb0,'outlineId':_0x4dcd48['id']}},..._0x234e74['map'](_0x4b9631=>({'id':R['id'],'params':{'unitId':_0x189695,'subUnitId':_0x104cb0,'outline':_0x4b9631}}))];return _0x22c2d6(_0x334b59,_0x3c226c['get'](_0x32dfc8))[_0x140b9a(0x219)]?(_0x3c226c['get'](_0xb0d3ff)['pushUndoRedo']({'unitID':_0x189695,'undoMutations':_0x4e07a2,'redoMutations':_0x334b59}),!0x0):!0x1;}},H={'id':_0x108f55(0x1ca),'type':_0xdcbb1d[_0x108f55(0x1d9)],'handler':(_0x4df6a2,_0x19b146)=>{const _0x35247a=_0x108f55;let _0x458311=_0x4df6a2[_0x35247a(0x1c1)](I),_0x88ee7d=_0x458311['getOutlines'](_0x19b146[_0x35247a(0x259)],_0x19b146[_0x35247a(0x22d)]);return _0x458311[_0x35247a(0x211)](_0x19b146['unitId'],_0x19b146['subUnitId'],_e(_0x88ee7d,_0x19b146)),!0x0;}},U={'id':_0x108f55(0x1e2),'type':_0xdcbb1d[_0x108f55(0x22e)],'handler':(_0x2fe362,_0x3cf00b)=>{const _0x3fb7ba=_0x108f55;if(!_0x3cf00b)return!0x1;let _0x1869db=_0x541521(_0x2fe362[_0x3fb7ba(0x1c1)](_0x4c1df7),_0x3cf00b);if(!_0x1869db)return!0x1;let {unitId:_0x5712ca,subUnitId:_0x111d0a}=_0x1869db;if(!B(_0x2fe362,_0x5712ca,_0x111d0a))return!0x1;let _0x573664={'unitId':_0x5712ca,'subUnitId':_0x111d0a,'axis':_0x3cf00b[_0x3fb7ba(0x21d)],'start':_0x3cf00b[_0x3fb7ba(0x24a)],'end':_0x3cf00b[_0x3fb7ba(0x233)]},_0x59f427=_0x2fe362[_0x3fb7ba(0x1c1)](I)[_0x3fb7ba(0x1e3)](_0x5712ca,_0x111d0a)[_0x3fb7ba(0x1bd)](_0x30f0db=>D(_0x30f0db,_0x573664)&&_0x30f0db[_0x3fb7ba(0x24a)]>=_0x3cf00b[_0x3fb7ba(0x24a)]&&_0x30f0db[_0x3fb7ba(0x233)]<=_0x3cf00b[_0x3fb7ba(0x233)]);if(_0x59f427['length']===0x0)return _0x2fe362[_0x3fb7ba(0x1c1)](L)[_0x3fb7ba(0x1b6)]({'reason':_0x3fb7ba(0x1ed),'commandId':U['id'],'unitId':_0x5712ca,'subUnitId':_0x111d0a,'axis':_0x3cf00b[_0x3fb7ba(0x21d)]}),!0x1;let _0x1a7fbe=[{'id':H['id'],'params':{..._0x573664,'removedOutlineIds':_0x59f427[_0x3fb7ba(0x20d)](_0x91c03=>_0x91c03['id'])}}],_0x1360c0=_0x59f427[_0x3fb7ba(0x20d)](_0x65cc9b=>({'id':R['id'],'params':{'unitId':_0x5712ca,'subUnitId':_0x111d0a,'outline':_0x65cc9b}}));return _0x22c2d6(_0x1a7fbe,_0x2fe362[_0x3fb7ba(0x1c1)](_0x32dfc8))[_0x3fb7ba(0x219)]?(_0x2fe362['get'](_0xb0d3ff)[_0x3fb7ba(0x1ac)]({'unitID':_0x5712ca,'undoMutations':_0x1360c0,'redoMutations':_0x1a7fbe}),!0x0):!0x1;}},Pe={'id':_0x108f55(0x1d1),'type':_0xdcbb1d['COMMAND'],'handler':(_0x27dd45,_0x32a2bc)=>{const _0x43a4e4=_0x108f55;if(!_0x32a2bc)return!0x1;let _0x1a3641=_0x541521(_0x27dd45[_0x43a4e4(0x1c1)](_0x4c1df7),_0x32a2bc);if(!_0x1a3641)return!0x1;let {unitId:_0x2bf763,subUnitId:_0x5c11c4}=_0x1a3641;if(!B(_0x27dd45,_0x2bf763,_0x5c11c4))return!0x1;let _0x2846cd=_0x27dd45[_0x43a4e4(0x1c1)](I)[_0x43a4e4(0x1e3)](_0x2bf763,_0x5c11c4)[_0x43a4e4(0x1d0)](_0x4f5b76=>_0x4f5b76['id']===_0x32a2bc[_0x43a4e4(0x24d)]);if(!_0x2846cd)return!0x1;let _0x46f7f4=[{'id':z['id'],'params':{'unitId':_0x2bf763,'subUnitId':_0x5c11c4,'outlineId':_0x2846cd['id'],'outline':_0x2846cd}}],_0x29d2cc=[{'id':R['id'],'params':{'unitId':_0x2bf763,'subUnitId':_0x5c11c4,'outline':_0x2846cd}}];return _0x22c2d6(_0x46f7f4,_0x27dd45['get'](_0x32dfc8))[_0x43a4e4(0x219)]?(_0x27dd45['get'](_0xb0d3ff)['pushUndoRedo']({'unitID':_0x2bf763,'undoMutations':_0x29d2cc,'redoMutations':_0x46f7f4}),!0x0):!0x1;}},W={'id':_0x108f55(0x1cd),'type':_0xdcbb1d[_0x108f55(0x1d9)],'handler':(_0x12ab3e,_0x5bb16b)=>{const _0x246b0e=_0x108f55;let _0x3209dd=_0x12ab3e[_0x246b0e(0x1c1)](I),_0x2cefd4=_0x3209dd[_0x246b0e(0x1e3)](_0x5bb16b[_0x246b0e(0x259)],_0x5bb16b[_0x246b0e(0x22d)]),_0x111623=_0x2cefd4['find'](_0x5a6b70=>_0x5a6b70['id']===_0x5bb16b[_0x246b0e(0x24d)]);return _0x111623&&_0x3209dd[_0x246b0e(0x211)](_0x5bb16b['unitId'],_0x5bb16b[_0x246b0e(0x22d)],_0x2cefd4['map'](_0x215bee=>_0x215bee['unitId']!==_0x111623[_0x246b0e(0x259)]||_0x215bee[_0x246b0e(0x22d)]!==_0x111623['subUnitId']||_0x215bee[_0x246b0e(0x21d)]!==_0x111623[_0x246b0e(0x21d)]||_0x215bee[_0x246b0e(0x24a)]!==_0x111623[_0x246b0e(0x24a)]||_0x215bee['end']!==_0x111623['end']?_0x215bee:{..._0x215bee,'collapsed':_0x5bb16b[_0x246b0e(0x1e7)]})),!0x0;}};function Fe(_0x37a7d3,_0x13ce9b,_0x5ead41,_0x3e0d5c){const _0x454cf2=_0x108f55;return _0x37a7d3===_0x454cf2(0x20e)?{'startRow':_0x13ce9b,'endRow':_0x5ead41,'startColumn':0x0,'endColumn':_0x3e0d5c[_0x454cf2(0x21e)]()-0x1}:{'startRow':0x0,'endRow':_0x3e0d5c[_0x454cf2(0x235)]()-0x1,'startColumn':_0x13ce9b,'endColumn':_0x5ead41};}function Ie(_0x2276da){return _0x2276da==='row'?_0x514f67['id']:_0x5f2c28['id'];}function Le(_0x4f78bc){const _0x21e73f=_0x108f55;return _0x4f78bc===_0x21e73f(0x20e)?_0x221262['id']:_0x17897e['id'];}function Re(_0x482b88,_0x1ac139,_0x30f727,_0x16d0b2){const _0x134471=_0x108f55;let _0x343ea4=_0x1ac139?[Fe(_0x482b88[_0x134471(0x21d)],_0x482b88[_0x134471(0x24a)],_0x482b88[_0x134471(0x233)],_0x30f727)]:ze(_0x482b88,_0x16d0b2,_0x30f727),_0x427e65=_0x1ac139?Ie(_0x482b88[_0x134471(0x21d)]):Le(_0x482b88[_0x134471(0x21d)]);return[{'id':W['id'],'params':{'unitId':_0x482b88[_0x134471(0x259)],'subUnitId':_0x482b88[_0x134471(0x22d)],'outlineId':_0x482b88['id'],'outline':_0x482b88,'collapsed':_0x1ac139}},..._0x343ea4[_0x134471(0x20d)](_0x42cdbf=>({'id':_0x427e65,'params':{'unitId':_0x482b88[_0x134471(0x259)],'subUnitId':_0x482b88[_0x134471(0x22d)],'ranges':[_0x42cdbf],'dimensionOutlineId':_0x482b88['id']}}))];}function ze(_0x20b747,_0x3f4b59,_0x3f040a){const _0x1c092f=_0x108f55;let _0x3f6660=ve(_0x3f4b59[_0x1c092f(0x20d)](_0x1e11c1=>Be(_0x1e11c1,_0x20b747)?{..._0x1e11c1,'collapsed':!0x1}:_0x1e11c1),_0x20b747['unitId'],_0x20b747[_0x1c092f(0x22d)],_0x20b747['axis']);return Ve({'start':_0x20b747[_0x1c092f(0x24a)],'end':_0x20b747['end']},_0x3f6660)[_0x1c092f(0x20d)](_0x1c3407=>Fe(_0x20b747[_0x1c092f(0x21d)],_0x1c3407[_0x1c092f(0x24a)],_0x1c3407[_0x1c092f(0x233)],_0x3f040a));}function Be(_0x30839f,_0x5a4947){const _0x34d36a=_0x108f55;return _0x30839f[_0x34d36a(0x259)]===_0x5a4947[_0x34d36a(0x259)]&&_0x30839f[_0x34d36a(0x22d)]===_0x5a4947['subUnitId']&&_0x30839f[_0x34d36a(0x21d)]===_0x5a4947[_0x34d36a(0x21d)]&&_0x30839f[_0x34d36a(0x24a)]===_0x5a4947[_0x34d36a(0x24a)]&&_0x30839f['end']===_0x5a4947[_0x34d36a(0x233)];}function Ve(_0x2d6bc5,_0x21c5a4){const _0x5479b4=_0x108f55;let _0x4a97a9=_0x2d6bc5[_0x5479b4(0x24a)],_0x5da40d=[];for(let _0x4258dc of _0x21c5a4)if(!(_0x4258dc[_0x5479b4(0x233)]<_0x4a97a9||_0x4258dc[_0x5479b4(0x24a)]>_0x2d6bc5[_0x5479b4(0x233)])&&(_0x4258dc[_0x5479b4(0x24a)]>_0x4a97a9&&_0x5da40d['push']({'start':_0x4a97a9,'end':Math[_0x5479b4(0x1d6)](_0x4258dc[_0x5479b4(0x24a)]-0x1,_0x2d6bc5[_0x5479b4(0x233)])}),_0x4a97a9=Math['max'](_0x4a97a9,_0x4258dc[_0x5479b4(0x233)]+0x1),_0x4a97a9>_0x2d6bc5[_0x5479b4(0x233)]))break;return _0x4a97a9<=_0x2d6bc5[_0x5479b4(0x233)]&&_0x5da40d[_0x5479b4(0x237)]({'start':_0x4a97a9,'end':_0x2d6bc5['end']}),_0x5da40d;}const He={'id':'sheet.command.set-dimension-outline-collapsed','type':_0xdcbb1d[_0x108f55(0x22e)],'handler':(_0xf56a88,_0x3b501c)=>{const _0x43d60d=_0x108f55;if(!_0x3b501c)return!0x1;let _0x300bf2=_0x541521(_0xf56a88['get'](_0x4c1df7),_0x3b501c);if(!_0x300bf2)return!0x1;let {unitId:_0x4d78bc,subUnitId:_0x5af871,worksheet:_0x563d51}=_0x300bf2;if(!B(_0xf56a88,_0x4d78bc,_0x5af871))return!0x1;let _0x1289a8=_0xf56a88[_0x43d60d(0x1c1)](I)['getOutlines'](_0x4d78bc,_0x5af871),_0x48e7be=_0x1289a8['find'](_0x9e1d2a=>_0x9e1d2a['id']===_0x3b501c[_0x43d60d(0x24d)]);if(!_0x48e7be||_0x48e7be[_0x43d60d(0x1e7)]===_0x3b501c['collapsed'])return!0x1;let _0x4bb7ad=Re(_0x48e7be,_0x3b501c['collapsed'],_0x563d51,_0x1289a8),_0x437b9a=Re(_0x48e7be,!_0x3b501c[_0x43d60d(0x1e7)],_0x563d51,_0x1289a8);return _0x22c2d6(_0x4bb7ad,_0xf56a88[_0x43d60d(0x1c1)](_0x32dfc8))[_0x43d60d(0x219)]?(_0xf56a88['get'](_0xb0d3ff)[_0x43d60d(0x1ac)]({'unitID':_0x4d78bc,'undoMutations':_0x437b9a,'redoMutations':_0x4bb7ad}),!0x0):!0x1;}},G={'id':'sheet.mutation.transform-dimension-outlines','type':_0xdcbb1d['MUTATION'],'handler':(_0x5a6f99,_0x28377b)=>{const _0x3eb865=_0x108f55;let _0x58d048=_0x5a6f99[_0x3eb865(0x1c1)](I),_0x17f1cc=Ue(_0x58d048[_0x3eb865(0x1e3)](_0x28377b['unitId'],_0x28377b[_0x3eb865(0x22d)]),_0x28377b);return _0x58d048[_0x3eb865(0x211)](_0x28377b[_0x3eb865(0x259)],_0x28377b[_0x3eb865(0x22d)],_0x17f1cc),!0x0;}};function Ue(_0x2bd8d4,_0x24f78c){const _0x3722f7=_0x108f55;switch(_0x24f78c[_0x3722f7(0x1b7)]){case _0x3722f7(0x1e1):return _0x24f78c[_0x3722f7(0x208)]?We(_0x2bd8d4,_0x24f78c):A(_0x2bd8d4,_0x24f78c);case _0x3722f7(0x1b0):return j(_0x2bd8d4,_0x24f78c);case'move':return M(_0x2bd8d4,_0x24f78c);}}function We(_0x41cac8,_0x796c45){const _0x52d45e=_0x108f55;return[..._0x41cac8['filter'](_0x496d52=>_0x496d52[_0x52d45e(0x259)]!==_0x796c45[_0x52d45e(0x259)]||_0x496d52['subUnitId']!==_0x796c45[_0x52d45e(0x22d)]||_0x496d52['axis']!==_0x796c45['axis']),..._0x796c45[_0x52d45e(0x208)]];}const K=_0x108f55(0x1e6),Ge=_0x108f55(0x245);var Ke=_0x108f55(0x1f3),qe=_0x108f55(0x256);function q(_0x39a3e7,_0x54670c){return function(_0x2a5960,_0x28fce9){_0x54670c(_0x2a5960,_0x28fce9,_0x39a3e7);};}function J(_0xc8fa0a,_0x20c3db,_0x301a3c,_0x2e3fe1){const _0x125e96=_0x108f55;var _0x543d78=arguments[_0x125e96(0x214)],_0x5c558c=_0x543d78<0x3?_0x20c3db:_0x2e3fe1===null?_0x2e3fe1=Object[_0x125e96(0x22a)](_0x20c3db,_0x301a3c):_0x2e3fe1,_0x3b4339;if(typeof Reflect==_0x125e96(0x242)&&typeof Reflect['decorate']==_0x125e96(0x1f2))_0x5c558c=Reflect[_0x125e96(0x1de)](_0xc8fa0a,_0x20c3db,_0x301a3c,_0x2e3fe1);else{for(var _0x39d3dd=_0xc8fa0a[_0x125e96(0x214)]-0x1;_0x39d3dd>=0x0;_0x39d3dd--)(_0x3b4339=_0xc8fa0a[_0x39d3dd])&&(_0x5c558c=(_0x543d78<0x3?_0x3b4339(_0x5c558c):_0x543d78>0x3?_0x3b4339(_0x20c3db,_0x301a3c,_0x5c558c):_0x3b4339(_0x20c3db,_0x301a3c))||_0x5c558c);}return _0x543d78>0x3&&_0x5c558c&&Object['defineProperty'](_0x20c3db,_0x301a3c,_0x5c558c),_0x5c558c;}const Y={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let X=class extends _0xd030e8{constructor(_0x432064,_0x13e56a,_0x109397,_0xc5cd8d){const _0x12373e=_0x108f55;super(),this['_univerInstanceService']=_0x432064,this['_sheetInterceptorService']=_0x13e56a,this[_0x12373e(0x1e5)]=_0x109397,this[_0x12373e(0x21a)]=_0xc5cd8d,this[_0x12373e(0x20b)]();}[_0x108f55(0x20b)](){const _0x14090f=_0x108f55;this['disposeWithMe'](this[_0x14090f(0x1db)]['interceptCommand']({'getMutations':_0x57783f=>Je(_0x57783f,(_0x251f1f,_0x326934)=>this[_0x14090f(0x1e5)][_0x14090f(0x1e3)](_0x251f1f,_0x326934),this['_getCommandScope'](_0x57783f['params']),_0x13853a=>this['_sheetsOutlineErrorService'][_0x14090f(0x1b6)](_0x13853a))}));}[_0x108f55(0x1c8)](_0x3cebfc){const _0x3ef42d=_0x108f55;let _0x1430d3=_0x3cebfc,_0x43fa1c=_0x1430d3!=null&&_0x1430d3['unitId']?this[_0x3ef42d(0x241)][_0x3ef42d(0x1d5)](_0x1430d3['unitId']):this[_0x3ef42d(0x241)][_0x3ef42d(0x1ba)](_0x2a5c6b[_0x3ef42d(0x22c)]);if(!_0x43fa1c)return;let _0x556744=_0x1430d3!=null&&_0x1430d3[_0x3ef42d(0x22d)]?_0x43fa1c[_0x3ef42d(0x1c0)](_0x1430d3[_0x3ef42d(0x22d)]):_0x43fa1c[_0x3ef42d(0x1d3)]();if(_0x556744)return{'unitId':_0x43fa1c[_0x3ef42d(0x1e4)](),'subUnitId':_0x556744[_0x3ef42d(0x1bc)]()};}};X=J([q(0x0,_0x4c1df7),q(0x1,_0x11d2c5(_0x26fe96)),q(0x2,_0x11d2c5(I)),q(0x3,_0x11d2c5(L))],X);function Je(_0x30dc2e,_0xe88a9a,_0x2822b2,_0x399914){const _0x10d117=_0x108f55;let _0x4dc6a7=Xe(_0x30dc2e,_0x2822b2);if(!_0x4dc6a7)return nt();let _0x40514d=_0xe88a9a(_0x4dc6a7[_0x10d117(0x259)],_0x4dc6a7[_0x10d117(0x22d)]);if(!_0x40514d['some'](_0x53a89e=>_0x53a89e[_0x10d117(0x21d)]===_0x4dc6a7[_0x10d117(0x21d)]))return nt();Ye(_0x40514d,_0x4dc6a7,_0x30dc2e['id'],_0x399914);let _0x11472a=et(_0x4dc6a7,_0x40514d);return{'redos':[{'id':G['id'],'params':_0x4dc6a7}],'undos':[{'id':G['id'],'params':_0x11472a}],'preRedos':[],'preUndos':[]};}function Ye(_0x22936a,_0x55f9e4,_0x2432a0,_0x288908){const _0x15fc14=_0x108f55;try{switch(_0x55f9e4[_0x15fc14(0x1b7)]){case _0x15fc14(0x1e1):A(_0x22936a,_0x55f9e4);break;case _0x15fc14(0x1b0):j(_0x22936a,_0x55f9e4);break;case _0x15fc14(0x1b5):M(_0x22936a,_0x55f9e4);break;}}catch(_0x692112){throw _0x288908==null||_0x288908({'reason':T(_0x692112),'commandId':_0x2432a0,'unitId':_0x55f9e4[_0x15fc14(0x259)],'subUnitId':_0x55f9e4[_0x15fc14(0x22d)],'axis':_0x55f9e4[_0x15fc14(0x21d)],'outlineId':me(_0x692112)}),new _0x42fed8(_0x692112 instanceof Error?_0x692112['message']:_0x15fc14(0x1bf));}}function Xe(_0x5a41bf,_0x488fa9){const _0x4b0e5e=_0x108f55;switch(_0x5a41bf['id']){case _0x1c347d['id']:return Ze(_0x5a41bf[_0x4b0e5e(0x212)],_0x4b0e5e(0x20e),_0x488fa9);case _0x4cbe63['id']:return Ze(_0x5a41bf['params'],_0x4b0e5e(0x1f8),_0x488fa9);case _0x4cd4c1['id']:return Qe(_0x5a41bf['params'],_0x4b0e5e(0x20e),_0x488fa9);case _0x1206a2['id']:return Qe(_0x5a41bf['params'],_0x4b0e5e(0x1f8),_0x488fa9);case _0x582979['id']:return $e(_0x5a41bf[_0x4b0e5e(0x212)],_0x4b0e5e(0x20e),_0x488fa9);case _0x24849c['id']:return $e(_0x5a41bf['params'],_0x4b0e5e(0x1f8),_0x488fa9);default:return null;}}function Ze(_0x13ad61,_0xcc79c7,_0x621272){const _0x334f59=_0x108f55;let _0x42a25b=Z(_0x13ad61,_0x621272);if(!(_0x13ad61!=null&&_0x13ad61[_0x334f59(0x21b)])||!_0x42a25b)return null;let _0x3db733=_0xcc79c7==='row'?_0x13ad61['range'][_0x334f59(0x1b9)]:_0x13ad61[_0x334f59(0x21b)]['startColumn'],_0x549945=_0xcc79c7==='row'?_0x13ad61[_0x334f59(0x21b)][_0x334f59(0x240)]:_0x13ad61['range'][_0x334f59(0x247)];return{..._0x42a25b,'axis':_0xcc79c7,'type':_0x334f59(0x1e1),'index':_0x3db733,'count':_0x549945-_0x3db733+0x1};}function Qe(_0x2edd8c,_0x1feb29,_0x5a0638){const _0x12e30a=_0x108f55;let _0x3ad0a5=Z(_0x2edd8c,_0x5a0638);if(!(_0x2edd8c!=null&&_0x2edd8c[_0x12e30a(0x21b)])||!_0x3ad0a5)return null;let _0x177e5b=_0x1feb29===_0x12e30a(0x20e)?_0x2edd8c[_0x12e30a(0x21b)][_0x12e30a(0x1b9)]:_0x2edd8c[_0x12e30a(0x21b)][_0x12e30a(0x255)],_0x2b6aa1=_0x1feb29===_0x12e30a(0x20e)?_0x2edd8c['range'][_0x12e30a(0x240)]:_0x2edd8c['range']['endColumn'];return{..._0x3ad0a5,'axis':_0x1feb29,'type':'delete','start':_0x177e5b,'end':_0x2b6aa1};}function $e(_0x4765d7,_0x41349d,_0x37af4d){const _0x4ceda3=_0x108f55;let _0x542caa=Z(_0x4765d7,_0x37af4d);if(!(_0x4765d7!=null&&_0x4765d7[_0x4ceda3(0x230)])||!_0x4765d7[_0x4ceda3(0x1ae)]||!_0x542caa)return null;let _0x432acf=_0x41349d==='row'?_0x4765d7[_0x4ceda3(0x230)][_0x4ceda3(0x1b9)]:_0x4765d7['fromRange'][_0x4ceda3(0x255)],_0x57ec3c=_0x41349d===_0x4ceda3(0x20e)?_0x4765d7[_0x4ceda3(0x230)][_0x4ceda3(0x240)]:_0x4765d7['fromRange']['endColumn'],_0x1fb38c=_0x41349d==='row'?_0x4765d7['toRange']['startRow']:_0x4765d7[_0x4ceda3(0x1ae)]['startColumn'];return{..._0x542caa,'axis':_0x41349d,'type':_0x4ceda3(0x1b5),'sourceStart':_0x432acf,'sourceEnd':_0x57ec3c,'destinationIndex':_0x1fb38c};}function et(_0x2adf7c,_0x5c1d3b){const _0x589eda=_0x108f55;switch(_0x2adf7c[_0x589eda(0x1b7)]){case _0x589eda(0x1e1):return{'unitId':_0x2adf7c[_0x589eda(0x259)],'subUnitId':_0x2adf7c['subUnitId'],'axis':_0x2adf7c[_0x589eda(0x21d)],'type':_0x589eda(0x1b0),'start':_0x2adf7c[_0x589eda(0x231)],'end':_0x2adf7c[_0x589eda(0x231)]+_0x2adf7c[_0x589eda(0x248)]-0x1};case'delete':return{'unitId':_0x2adf7c[_0x589eda(0x259)],'subUnitId':_0x2adf7c[_0x589eda(0x22d)],'axis':_0x2adf7c[_0x589eda(0x21d)],'type':_0x589eda(0x1e1),'index':_0x2adf7c[_0x589eda(0x24a)],'count':_0x2adf7c['end']-_0x2adf7c['start']+0x1,'restoreOutlines':_0x5c1d3b['filter'](_0x39a901=>_0x39a901[_0x589eda(0x259)]===_0x2adf7c[_0x589eda(0x259)]&&_0x39a901[_0x589eda(0x22d)]===_0x2adf7c['subUnitId']&&_0x39a901['axis']===_0x2adf7c['axis'])};case _0x589eda(0x1b5):return tt(_0x2adf7c);}}function tt(_0x3d65c1){const _0x118d4e=_0x108f55;let _0x3aa1e7=_0x3d65c1[_0x118d4e(0x244)]-_0x3d65c1['sourceStart']+0x1;return _0x3d65c1[_0x118d4e(0x202)]>=_0x3d65c1[_0x118d4e(0x23b)]&&_0x3d65c1[_0x118d4e(0x202)]<=_0x3d65c1['sourceEnd']+0x1?{..._0x3d65c1}:_0x3d65c1['destinationIndex']>_0x3d65c1[_0x118d4e(0x244)]+0x1?{..._0x3d65c1,'sourceStart':_0x3d65c1[_0x118d4e(0x202)]-_0x3aa1e7,'sourceEnd':_0x3d65c1[_0x118d4e(0x202)]-0x1,'destinationIndex':_0x3d65c1[_0x118d4e(0x23b)]}:{..._0x3d65c1,'sourceStart':_0x3d65c1[_0x118d4e(0x202)],'sourceEnd':_0x3d65c1[_0x118d4e(0x202)]+_0x3aa1e7-0x1,'destinationIndex':_0x3d65c1[_0x118d4e(0x244)]+0x1};}function Z(_0x1b727,_0x2ac35b){const _0x43f97e=_0x108f55;var _0x3cefeb,_0x2d7abe;let _0x236486=(_0x3cefeb=_0x1b727==null?void 0x0:_0x1b727[_0x43f97e(0x259)])==null?_0x2ac35b==null?void 0x0:_0x2ac35b[_0x43f97e(0x259)]:_0x3cefeb,_0x19e415=(_0x2d7abe=_0x1b727==null?void 0x0:_0x1b727[_0x43f97e(0x22d)])==null?_0x2ac35b==null?void 0x0:_0x2ac35b[_0x43f97e(0x22d)]:_0x2d7abe;return _0x236486&&_0x19e415?{'unitId':_0x236486,'subUnitId':_0x19e415}:null;}function _0x17ca(_0x200061,_0xfef63a){_0x200061=_0x200061-0x1ab;const _0x56d8b5=_0x56d8();let _0x17ca84=_0x56d8b5[_0x200061];return _0x17ca84;}function nt(){const _0x33c127=_0x108f55;var _0x1bc2ef,_0x1eab43;return{'redos':[...Y[_0x33c127(0x23f)]],'undos':[...Y[_0x33c127(0x1ad)]],'preRedos':[...(_0x1bc2ef=Y['preRedos'])==null?[]:_0x1bc2ef],'preUndos':[...(_0x1eab43=Y[_0x33c127(0x22b)])==null?[]:_0x1eab43]};}let Q=class extends _0xd030e8{constructor(_0x21583b,_0x1e54f8){const _0x53588b=_0x108f55;super(),this[_0x53588b(0x1f6)]=_0x21583b,this[_0x53588b(0x1e5)]=_0x1e54f8,this[_0x53588b(0x239)]();}[_0x108f55(0x239)](){const _0x179afa=_0x108f55;this[_0x179afa(0x221)](this[_0x179afa(0x1f6)][_0x179afa(0x226)]({'pluginName':K,'businesses':[_0x2a5c6b[_0x179afa(0x22c)]],'toJson':_0x5e0dc0=>JSON[_0x179afa(0x1d8)](this[_0x179afa(0x1e5)][_0x179afa(0x223)](_0x5e0dc0)),'parseJson':_0x4ea0d4=>JSON[_0x179afa(0x1cf)](_0x4ea0d4),'onLoad':(_0x1a3e40,_0xf17caa)=>this[_0x179afa(0x1e5)][_0x179afa(0x1f4)](_0x1a3e40,_0xf17caa),'onUnLoad':_0x328017=>this['_sheetsOutlineModel']['removeUnit'](_0x328017)}));}};Q=J([q(0x0,_0x1e061f),q(0x1,_0x11d2c5(I))],Q);let $=class extends _0x5974fe{constructor(_0x1ecbde,_0x50b1ea,_0x38821b){const _0x3f9d58=_0x108f55;super(),this[_0x3f9d58(0x1c7)]=_0x1ecbde,this[_0x3f9d58(0x1be)]=_0x50b1ea,this[_0x3f9d58(0x1df)]=_0x38821b;}[_0x108f55(0x251)](){const _0x219ac2=_0x108f55;this[_0x219ac2(0x1be)]['add']([I]),this[_0x219ac2(0x1be)][_0x219ac2(0x25a)]([L]),this['_injector'][_0x219ac2(0x25a)]([Q]),this[_0x219ac2(0x1be)]['add']([X]),this[_0x219ac2(0x225)](),this['_injector'][_0x219ac2(0x1c1)](I),this[_0x219ac2(0x1be)]['get'](L),this[_0x219ac2(0x1be)][_0x219ac2(0x1c1)](Q),this[_0x219ac2(0x1be)][_0x219ac2(0x1c1)](X);}['_initRegisterCommand'](){const _0x8050c3=_0x108f55;[V,Pe,He,U][_0x8050c3(0x1ee)](_0x491f14=>{const _0x4decce=_0x8050c3;this[_0x4decce(0x221)](this[_0x4decce(0x1df)][_0x4decce(0x1f0)](_0x491f14));}),[R,z,W,H,G][_0x8050c3(0x1ee)](_0x9e436a=>{const _0x40e20f=_0x8050c3;this[_0x40e20f(0x221)](this[_0x40e20f(0x1df)][_0x40e20f(0x1f0)](_0x9e436a));});}};F($,_0x108f55(0x24e),K),F($,'packageName',Ke),F($,_0x108f55(0x1c6),qe),F($,'type',_0x2a5c6b[_0x108f55(0x22c)]),$=J([_0x31051b(_0x3f88b2),q(0x1,_0x11d2c5(_0x13aba9)),q(0x2,_0x32dfc8)],$);export{V as AddDimensionOutlineCommand,R as AddDimensionOutlineMutation,U as ClearDimensionOutlinesCommand,H as ClearDimensionOutlinesMutation,fe as DimensionOutlineAxis,w as DimensionOutlineError,pe as DimensionOutlineErrorReason,Pe as RemoveDimensionOutlineCommand,z as RemoveDimensionOutlineMutation,Ge as SHEETS_OUTLINE_PLUGIN_CONFIG_KEY,K as SHEET_OUTLINE_PLUGIN,He as SetDimensionOutlineCollapsedCommand,W as SetDimensionOutlineCollapsedMutation,L as SheetsOutlineErrorService,I as SheetsOutlineModel,G as TransformDimensionOutlinesMutation,$ as UniverSheetsOutlinePlugin,he as addDimensionOutlineToList,O as buildDimensionOutlineTree,ve as buildHiddenRanges,k as canAddDimensionOutline,_e as clearDimensionOutlinesInRange,me as getDimensionOutlineErrorOutlineId,T as getDimensionOutlineErrorReason,je as getDimensionOutlineViewPermission$,B as hasDimensionOutlineViewPermission,ye as mergeRanges,j as transformOutlinesByDelete,A as transformOutlinesByInsert,M as transformOutlinesByMove};
|
|
1
|
+
function _0x41a2(){const _0x110380=['message','_outlines','pushUndoRedo','asObservable','error$','_resourceManagerService','4770144Izidps','sourceStart','getUnitOutlines','valid','sheet.command.add-dimension-outline','2GYEnti','sheet.command.remove-dimension-outline','serialize','OUT_OF_BOUNDS','_injector','row','mergedOutline','length','start','call','sheet.mutation.add-dimension-outline','_config','complete','getSheetBySheetId','interceptCommand','_initCommandInterceptor','invalid-dimension-outline','end','clear','offset','string','preUndos','outline','COMMAND','_initResource','insert','packageName','getOwnPropertyDescriptor','_change$','getCurrentUnitOfType','type','getUnitId','_sheetsOutlineModel','136115Sjbsro','Crossing','maxDepth','_commandService','iterator','version','registerPluginResource','defineProperty','symbol','move','unknown','range','destinationIndex','sourceEnd','localeCompare','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','function','MAX_DEPTH','disposeWithMe','has','SHEET_OUTLINE_PLUGIN','sheet.mutation.transform-dimension-outlines','delete','min','endColumn','getUniverSheetInstance','124tZffdu','name','includes','toRange','count','next','_univerInstanceService','collapsed','INVALID_RANGE','find','Invalid\x20outline\x20range','subUnitId','undos','clear-range-not-contain-outline','_sheetsOutlineErrorService','maxIndex','params','object','reason','getColumnCount','1.0.0-alpha.1','7381059iUNrAb','dimension-outline-','axis','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','forEach','from','set','join','getOutlines','sheet.mutation.set-dimension-outline-collapsed','split','MOVE_SPLITS_OUTLINE','endRow','get','ROW','Invalid\x20dimension\x20outline\x20move\x20source\x20range','permissionPointUpdate$','change$','invalid-range','_sheetInterceptorService','dispose','default','removeUnit','sheet.command.set-dimension-outline-collapsed','crossing','permissionCheckWithoutRange','add','outlineId','max-depth','values','stringify','index','Invalid\x20dimension\x20outline\x20mutation','onStarting','UNIVER_SHEET','registerCommand','parse','72222cNvFYr','_getCommandScope','restoreOutlines','setOutlines','unitId','decorate','_error$','sort','toPrimitive','deserialize','depth','_initRegisterCommand','redos','2173224CxIJxA','some','getActiveSheet','MUTATION','_ensureUnitOutlines','result','map','move-splits-outline','startColumn','pipe','entries','fromRange','constructor','max','UNKNOWN','getSheetId','Move\x20would\x20split\x20dimension\x20outline:\x20','getMaxColumns','3281121IEqTZc','startRow','prototype','emit','column','getRowCount','push','filter','sheets-outline.config','144819AyZrrA'];_0x41a2=function(){return _0x110380;};return _0x41a2();}const _0x470647=_0x2960;(function(_0x13f8ac,_0x4d9a24){const _0x29721d=_0x2960,_0x58249d=_0x13f8ac();while(!![]){try{const _0x3c4287=parseInt(_0x29721d(0x93))/0x1*(parseInt(_0x29721d(0x9f))/0x2)+-parseInt(_0x29721d(0x114))/0x3*(-parseInt(_0x29721d(0xda))/0x4)+parseInt(_0x29721d(0xc0))/0x5+parseInt(_0x29721d(0x9a))/0x6+-parseInt(_0x29721d(0xef))/0x7+parseInt(_0x29721d(0x121))/0x8+-parseInt(_0x29721d(0x8a))/0x9;if(_0x3c4287===_0x4d9a24)break;else _0x58249d['push'](_0x58249d['shift']());}catch(_0x39cf72){_0x58249d['push'](_0x58249d['shift']());}}}(_0x41a2,0x8a2f7));import{CommandType as _0x3d3122,CustomCommandExecutionError as _0x2f895c,DependentOn as _0x49c6f9,Disposable as _0x50f73a,ICommandService as _0x3a2206,IPermissionService as _0x269e8d,IResourceManagerService as _0x3dcf5e,IUndoRedoService as _0x5dd5fa,IUniverInstanceService as _0x39f6dc,Inject as _0x1378e5,Injector as _0x2d072b,Plugin as _0xabb3e0,UniverInstanceType as _0x1fac57,generateRandomId as _0x526a6f,sequenceExecute as _0x3c1ea5}from'@univerjs/core';import{InsertColCommand as _0x24d8c4,InsertRowCommand as _0x568b88,MoveColsCommand as _0x54b479,MoveRowsCommand as _0xf13d0f,RemoveColCommand as _0x59cc03,RemoveRowCommand as _0x2f7813,SetColHiddenMutation as _0x36bde2,SetColVisibleMutation as _0x309749,SetRowHiddenMutation as _0x5271ce,SetRowVisibleMutation as _0x33c0ec,SheetInterceptorService as _0x2f2fa3,SheetPermissionCheckController as _0x18cb26,WorkbookViewPermission as _0xe38788,WorksheetViewPermission as _0x3cc6c7,getSheetCommandTarget as _0x7bcf04}from'@univerjs/sheets';import{Subject as _0xa40a72,of as _0x21afba}from'rxjs';import{debounceTime as _0x1e4436,map as _0x2c3473,startWith as _0x534ba3}from'rxjs/operators';import{UniverLicensePlugin as _0x5b20c6}from'@univerjs-pro/license';let fe=function(_0x567397){const _0x3ecb8c=_0x2960;return _0x567397[_0x3ecb8c(0xfd)]=_0x3ecb8c(0xa4),_0x567397['COLUMN']=_0x3ecb8c(0x8e),_0x567397;}({}),pe=function(_0xdeec91){const _0x21f2e4=_0x2960;return _0xdeec91[_0x21f2e4(0xe2)]=_0x21f2e4(0x101),_0xdeec91[_0x21f2e4(0xa2)]='out-of-bounds',_0xdeec91['CROSSING']=_0x21f2e4(0x107),_0xdeec91[_0x21f2e4(0xd1)]=_0x21f2e4(0x10b),_0xdeec91[_0x21f2e4(0xfa)]=_0x21f2e4(0x128),_0xdeec91['CLEAR_RANGE_NOT_CONTAIN_OUTLINE']=_0x21f2e4(0xe7),_0xdeec91[_0x21f2e4(0x86)]=_0x21f2e4(0xca),_0xdeec91;}({});var w=class extends Error{constructor(_0x238164,_0x3d3fe7,_0x55525a){const _0x279c0d=_0x2960;super(_0x3d3fe7),this[_0x279c0d(0xec)]=_0x238164,this['outlineId']=_0x55525a,this[_0x279c0d(0xdb)]='DimensionOutlineError';}};function T(_0x443df0){const _0x8332e1=_0x2960;return _0x443df0 instanceof w?_0x443df0[_0x8332e1(0xec)]:_0x443df0 instanceof Error?_0x443df0[_0x8332e1(0x94)][_0x8332e1(0xdc)]('split\x20dimension\x20outline')?_0x8332e1(0x128):_0x443df0[_0x8332e1(0x94)][_0x8332e1(0xdc)](_0x8332e1(0x11e))?_0x8332e1(0x10b):_0x443df0[_0x8332e1(0x94)][_0x8332e1(0xdc)](_0x8332e1(0xc1))?'crossing':_0x443df0[_0x8332e1(0x94)][_0x8332e1(0xdc)](_0x8332e1(0xcb))?_0x8332e1(0x101):_0x8332e1(0xca):'unknown';}function me(_0x2b2a38){const _0x48024b=_0x2960;return _0x2b2a38 instanceof w?_0x2b2a38[_0x48024b(0x10a)]:void 0x0;}const E=0x2**0x35-0x1;function D(_0x5a2036,_0x3aa867){const _0x3dddd9=_0x2960;return _0x5a2036['unitId']===_0x3aa867['unitId']&&_0x5a2036[_0x3dddd9(0xe5)]===_0x3aa867[_0x3dddd9(0xe5)]&&_0x5a2036[_0x3dddd9(0xf1)]===_0x3aa867[_0x3dddd9(0xf1)];}function O(_0x3f08d1,_0x1a47d0={}){const _0x27ee3c=_0x2960;var _0x53aaab;let _0x1b33f4=(_0x53aaab=_0x1a47d0[_0x27ee3c(0xc2)])==null?0x8:_0x53aaab,_0x16dfe5=new Map();for(let _0x4334da of _0x3f08d1){let _0x3cd7ab=_0x4334da[_0x27ee3c(0x118)]+':'+_0x4334da[_0x27ee3c(0xe5)]+':'+_0x4334da[_0x27ee3c(0xf1)],_0x4933bb=_0x16dfe5[_0x27ee3c(0xfc)](_0x3cd7ab);_0x4933bb?_0x4933bb['push'](_0x4334da):_0x16dfe5[_0x27ee3c(0xf5)](_0x3cd7ab,[_0x4334da]);}let _0x10e532=[];for(let _0x458ff2 of _0x16dfe5[_0x27ee3c(0x10c)]()){let _0x109a8d=[..._0x458ff2][_0x27ee3c(0x11b)](Ee),_0x1d1acf=[];for(let _0x4f47d6 of _0x109a8d){for(De(_0x4f47d6);_0x1d1acf[_0x27ee3c(0xa6)]>0x0&&_0x4f47d6[_0x27ee3c(0xa7)]>_0x1d1acf[_0x1d1acf[_0x27ee3c(0xa6)]-0x1]['end'];)_0x1d1acf['pop']();let _0x35bfb1=_0x1d1acf[_0x1d1acf[_0x27ee3c(0xa6)]-0x1];if(_0x35bfb1&&_0x4f47d6[_0x27ee3c(0xb0)]>_0x35bfb1['end'])throw new w('crossing',_0x27ee3c(0xf2),_0x4f47d6['id']);let _0x31431f=_0x35bfb1?_0x35bfb1[_0x27ee3c(0x11e)]+0x1:0x1;if(_0x31431f>_0x1b33f4)throw new w(_0x27ee3c(0x10b),_0x27ee3c(0xcf)+_0x1b33f4,_0x4f47d6['id']);let _0x156c8b={..._0x4f47d6,'depth':_0x31431f,'parentId':_0x35bfb1==null?void 0x0:_0x35bfb1['id'],'anchor':_0x4f47d6[_0x27ee3c(0xb0)],'children':[]};_0x35bfb1?_0x35bfb1['children'][_0x27ee3c(0x90)](_0x156c8b):_0x10e532['push'](_0x156c8b),_0x1d1acf[_0x27ee3c(0x90)](_0x156c8b);}}return _0x10e532;}function k(_0x1efa05,_0x2076e6,_0x6fcb27={}){const _0x492aa3=_0x2960;if(_0x2076e6[_0x492aa3(0xa7)]<0x0||_0x2076e6[_0x492aa3(0xa7)]>_0x2076e6[_0x492aa3(0xb0)])return{'valid':!0x1,'reason':_0x492aa3(0x101)};if(_0x6fcb27[_0x492aa3(0xe9)]!=null&&_0x2076e6[_0x492aa3(0xb0)]>=_0x6fcb27[_0x492aa3(0xe9)])return{'valid':!0x1,'reason':'out-of-bounds'};let _0xe2c5b1=_0x1efa05[_0x492aa3(0x91)](_0x4cc892=>D(_0x4cc892,_0x2076e6));for(let _0x34f8ab of _0xe2c5b1)if(Oe(_0x34f8ab,_0x2076e6))return{'valid':!0x1,'reason':_0x492aa3(0x107)};try{O([..._0x1efa05,_0x2076e6],_0x6fcb27);}catch(_0x247f29){let _0x4b9d87=T(_0x247f29);return _0x4b9d87===_0x492aa3(0x10b)?{'valid':!0x1,'reason':_0x492aa3(0x10b)}:_0x4b9d87==='invalid-range'?{'valid':!0x1,'reason':_0x492aa3(0x101)}:{'valid':!0x1,'reason':_0x492aa3(0x107)};}return{'valid':!0x0};}function he(_0x7f306e,_0x38df9c,_0x204a39={}){const _0x52e5d8=_0x2960;let _0x414f8b=k(_0x7f306e,_0x38df9c,_0x204a39);if(!_0x414f8b[_0x52e5d8(0x9d)]){var _0x5b4fe6;throw Error((_0x5b4fe6=_0x414f8b[_0x52e5d8(0xec)])==null?_0x52e5d8(0xaf):_0x5b4fe6);}return[..._0x7f306e,_0x38df9c];}function ge(_0xf9eac4,_0x3ccccf){const _0x439fce=_0x2960;let _0xcc335=_0x3ccccf[_0x439fce(0xa7)],_0x1c0f78=_0x3ccccf[_0x439fce(0xb0)],_0x1d25e1=[],_0x5ce2b1=!0x0;for(;_0x5ce2b1;){_0x5ce2b1=!0x1;for(let _0x1fcbd9 of _0xf9eac4)_0x1d25e1['includes'](_0x1fcbd9)||!D(_0x1fcbd9,_0x3ccccf)||!we(_0x1fcbd9[_0x439fce(0xa7)],_0x1fcbd9[_0x439fce(0xb0)],_0xcc335,_0x1c0f78)||(_0x1d25e1[_0x439fce(0x90)](_0x1fcbd9),_0xcc335=Math[_0x439fce(0xd7)](_0xcc335,_0x1fcbd9[_0x439fce(0xa7)]),_0x1c0f78=Math['max'](_0x1c0f78,_0x1fcbd9[_0x439fce(0xb0)]),_0x5ce2b1=!0x0);}if(_0x1d25e1['length']===0x0)return null;let [_0x15f746]=[..._0x1d25e1][_0x439fce(0x11b)](Ee);return{'mergedOutline':{..._0x15f746,'start':_0xcc335,'end':_0x1c0f78},'mergedOutlines':_0x1d25e1};}function _e(_0xd09061,_0x689127){const _0x34fd18=_0x2960;return _0xd09061[_0x34fd18(0x91)](_0x59c2b6=>D(_0x59c2b6,_0x689127)?!(_0x59c2b6[_0x34fd18(0xa7)]>=_0x689127[_0x34fd18(0xa7)]&&_0x59c2b6[_0x34fd18(0xb0)]<=_0x689127[_0x34fd18(0xb0)]):!0x0);}function ve(_0x1fa69c,_0x2dfb30,_0x20d66b,_0x3df750){const _0x1aae1e=_0x2960;return ye(_0x1fa69c['filter'](_0x2d71fa=>_0x2d71fa[_0x1aae1e(0x118)]===_0x2dfb30&&_0x2d71fa['subUnitId']===_0x20d66b&&_0x2d71fa[_0x1aae1e(0xf1)]===_0x3df750&&_0x2d71fa[_0x1aae1e(0xe1)])[_0x1aae1e(0x127)](_0xae6c74=>({'start':_0xae6c74[_0x1aae1e(0xa7)],'end':_0xae6c74['end']})));}function ye(_0x5f578e){const _0x5f2446=_0x2960;if(_0x5f578e[_0x5f2446(0xa6)]===0x0)return[];let _0x40bfcf=[..._0x5f578e][_0x5f2446(0x11b)]((_0x3824c4,_0x3a6a52)=>_0x3824c4[_0x5f2446(0xa7)]-_0x3a6a52[_0x5f2446(0xa7)]||_0x3824c4[_0x5f2446(0xb0)]-_0x3a6a52[_0x5f2446(0xb0)]),_0x3216ef=[];for(let _0x2da96b of _0x40bfcf){let _0x1f8123=_0x3216ef[_0x3216ef['length']-0x1];!_0x1f8123||_0x2da96b[_0x5f2446(0xa7)]>_0x1f8123['end']+0x1?_0x3216ef[_0x5f2446(0x90)]({..._0x2da96b}):_0x1f8123[_0x5f2446(0xb0)]=Math[_0x5f2446(0x85)](_0x1f8123['end'],_0x2da96b[_0x5f2446(0xb0)]);}return _0x3216ef;}function A(_0x3643bd,_0x2c016b){const _0x1cd44f=_0x2960;return _0x2c016b[_0x1cd44f(0xde)]<=0x0?_0x3643bd:N(_0x3643bd[_0x1cd44f(0x127)](_0x22f566=>D(_0x22f566,_0x2c016b)?_0x2c016b[_0x1cd44f(0x10e)]<=_0x22f566[_0x1cd44f(0xa7)]?{..._0x22f566,'start':_0x22f566[_0x1cd44f(0xa7)]+_0x2c016b[_0x1cd44f(0xde)],'end':_0x22f566['end']+_0x2c016b[_0x1cd44f(0xde)]}:_0x22f566[_0x1cd44f(0xa7)]<_0x2c016b[_0x1cd44f(0x10e)]&&_0x2c016b[_0x1cd44f(0x10e)]<=_0x22f566['end']?{..._0x22f566,'end':_0x22f566[_0x1cd44f(0xb0)]+_0x2c016b['count']}:_0x22f566:_0x22f566));}function j(_0x58854c,_0x497607){const _0xa986de=_0x2960;if(_0x497607[_0xa986de(0xa7)]>_0x497607[_0xa986de(0xb0)])return _0x58854c;let _0x1833a1=_0x497607[_0xa986de(0xb0)]-_0x497607['start']+0x1,_0x30973c=[];for(let _0xc5b970 of _0x58854c){if(!D(_0xc5b970,_0x497607)){_0x30973c[_0xa986de(0x90)](_0xc5b970);continue;}if(_0xc5b970[_0xa986de(0xb0)]<_0x497607[_0xa986de(0xa7)]){_0x30973c['push'](_0xc5b970);continue;}if(_0xc5b970[_0xa986de(0xa7)]>_0x497607[_0xa986de(0xb0)]){_0x30973c[_0xa986de(0x90)]({..._0xc5b970,'start':_0xc5b970[_0xa986de(0xa7)]-_0x1833a1,'end':_0xc5b970[_0xa986de(0xb0)]-_0x1833a1});continue;}let _0x52edc2=Math[_0xa986de(0x85)](_0xc5b970['start'],_0x497607['start']),_0x4256c6=Math['min'](_0xc5b970[_0xa986de(0xb0)],_0x497607[_0xa986de(0xb0)]),_0x1b486b=Math['max'](0x0,_0x4256c6-_0x52edc2+0x1),_0x5cb79a=_0xc5b970[_0xa986de(0xb0)]-_0xc5b970[_0xa986de(0xa7)]+0x1-_0x1b486b;if(_0x5cb79a<=0x0)continue;let _0x240a9c=_0xc5b970['start']<_0x497607[_0xa986de(0xa7)]?_0xc5b970['start']:_0x497607[_0xa986de(0xa7)];_0x30973c[_0xa986de(0x90)]({..._0xc5b970,'start':_0x240a9c,'end':_0x240a9c+_0x5cb79a-0x1});}return N(_0x30973c);}function M(_0x5405a1,_0x466e09){const _0x126ff2=_0x2960;if(_0x466e09[_0x126ff2(0x9b)]>_0x466e09[_0x126ff2(0xcd)])return _0x5405a1;let _0x460e6f=[];for(let _0x5941d0 of _0x5405a1){if(!D(_0x5941d0,_0x466e09)){_0x460e6f[_0x126ff2(0x90)](_0x5941d0);continue;}let _0x3a321a=be(_0x5941d0,_0x466e09);if(_0x3a321a[_0x126ff2(0xbd)]===_0x126ff2(0xf9))throw new w('move-splits-outline',_0x126ff2(0x88)+_0x5941d0['id'],_0x5941d0['id']);_0x460e6f[_0x126ff2(0x90)](_0x3a321a[_0x126ff2(0xb5)]);}return N(_0x460e6f);}function be(_0x4fcf85,_0x54a84c){const _0x4ed83d=_0x2960;let _0x424782=xe(_0x54a84c[_0x4ed83d(0x9b)],_0x54a84c[_0x4ed83d(0xcd)]+0x1,_0x54a84c[_0x4ed83d(0xcc)]),_0x103bba=[],_0x31b741={'start':_0x4fcf85[_0x4ed83d(0xa7)],'end':_0x4fcf85[_0x4ed83d(0xb0)]+0x1};for(let _0x4eb72b of _0x424782){let _0x582b6a=Se(_0x31b741,_0x4eb72b[_0x4ed83d(0xcb)]);_0x582b6a&&_0x103bba['push']({'start':_0x582b6a['start']+_0x4eb72b[_0x4ed83d(0xb2)],'end':_0x582b6a[_0x4ed83d(0xb0)]+_0x4eb72b[_0x4ed83d(0xb2)]});}let _0x132c92=Ce(_0x103bba);return _0x132c92[_0x4ed83d(0xa6)]===0x1?{'type':'ok','outline':{..._0x4fcf85,'start':_0x132c92[0x0][_0x4ed83d(0xa7)],'end':_0x132c92[0x0][_0x4ed83d(0xb0)]-0x1}}:{'type':_0x4ed83d(0xf9),'outline':_0x4fcf85,'ranges':_0x132c92};}function xe(_0x334092,_0x3ede23,_0x49f75a){const _0x4791a9=_0x2960;let _0x38ab2e=_0x3ede23-_0x334092;if(_0x38ab2e<=0x0)throw Error(_0x4791a9(0xfe));return _0x49f75a>=_0x334092&&_0x49f75a<=_0x3ede23?[{'range':{'start':0x0,'end':E},'offset':0x0}]:_0x49f75a<_0x334092?[{'range':{'start':0x0,'end':_0x49f75a},'offset':0x0},{'range':{'start':_0x49f75a,'end':_0x334092},'offset':_0x38ab2e},{'range':{'start':_0x334092,'end':_0x3ede23},'offset':_0x49f75a-_0x334092},{'range':{'start':_0x3ede23,'end':E},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x334092},'offset':0x0},{'range':{'start':_0x334092,'end':_0x3ede23},'offset':_0x49f75a-_0x3ede23},{'range':{'start':_0x3ede23,'end':_0x49f75a},'offset':-_0x38ab2e},{'range':{'start':_0x49f75a,'end':E},'offset':0x0}];}function Se(_0x21f42b,_0x1b6c8a){const _0x3dbd92=_0x2960;let _0x4ef79a=Math[_0x3dbd92(0x85)](_0x21f42b['start'],_0x1b6c8a[_0x3dbd92(0xa7)]),_0x6e7caa=Math[_0x3dbd92(0xd7)](_0x21f42b[_0x3dbd92(0xb0)],_0x1b6c8a['end']);return _0x4ef79a>=_0x6e7caa?null:{'start':_0x4ef79a,'end':_0x6e7caa};}function Ce(_0x999a38){const _0x3477d0=_0x2960;if(_0x999a38[_0x3477d0(0xa6)]===0x0)return[];let _0x35b701=[..._0x999a38][_0x3477d0(0x11b)]((_0x495bc5,_0x51d2f0)=>_0x495bc5['start']-_0x51d2f0[_0x3477d0(0xa7)]||_0x495bc5[_0x3477d0(0xb0)]-_0x51d2f0['end']),_0x129ed0=[];for(let _0x4ab196 of _0x35b701){let _0x50ec2b=_0x129ed0[_0x129ed0[_0x3477d0(0xa6)]-0x1];!_0x50ec2b||_0x4ab196['start']>_0x50ec2b['end']?_0x129ed0[_0x3477d0(0x90)]({..._0x4ab196}):_0x50ec2b[_0x3477d0(0xb0)]=Math[_0x3477d0(0x85)](_0x50ec2b[_0x3477d0(0xb0)],_0x4ab196[_0x3477d0(0xb0)]);}return _0x129ed0;}function we(_0x57fef7,_0x3a93eb,_0x140658,_0x407be3){return _0x3a93eb+0x1===_0x140658||_0x407be3+0x1===_0x57fef7;}function N(_0x5f5a28){let _0x27f327=Te(_0x5f5a28);return O(_0x27f327),_0x27f327;}function Te(_0x28b8a2){const _0x32a0ec=_0x2960;let _0x4bf133=new Map();for(let _0x5e32e8 of _0x28b8a2){let _0x8e9243=[_0x5e32e8[_0x32a0ec(0x118)],_0x5e32e8[_0x32a0ec(0xe5)],_0x5e32e8['axis'],_0x5e32e8[_0x32a0ec(0xa7)],_0x5e32e8[_0x32a0ec(0xb0)]][_0x32a0ec(0xf6)](':'),_0x2ea68e=_0x4bf133[_0x32a0ec(0xfc)](_0x8e9243);if(!_0x2ea68e){_0x4bf133[_0x32a0ec(0xf5)](_0x8e9243,_0x5e32e8);continue;}_0x4bf133[_0x32a0ec(0xf5)](_0x8e9243,{..._0x2ea68e,'collapsed':_0x2ea68e[_0x32a0ec(0xe1)]||_0x5e32e8[_0x32a0ec(0xe1)]});}return Array[_0x32a0ec(0xf4)](_0x4bf133[_0x32a0ec(0x10c)]());}function Ee(_0x37562e,_0x34db34){const _0x3c73e4=_0x2960;return _0x37562e['unitId']===_0x34db34[_0x3c73e4(0x118)]?_0x37562e['subUnitId']===_0x34db34['subUnitId']?_0x37562e[_0x3c73e4(0xf1)]===_0x34db34[_0x3c73e4(0xf1)]?_0x37562e[_0x3c73e4(0xa7)]===_0x34db34['start']?_0x34db34[_0x3c73e4(0xb0)]-_0x37562e['end']:_0x37562e[_0x3c73e4(0xa7)]-_0x34db34[_0x3c73e4(0xa7)]:_0x37562e[_0x3c73e4(0xf1)][_0x3c73e4(0xce)](_0x34db34['axis']):_0x37562e[_0x3c73e4(0xe5)]['localeCompare'](_0x34db34['subUnitId']):_0x37562e[_0x3c73e4(0x118)][_0x3c73e4(0xce)](_0x34db34[_0x3c73e4(0x118)]);}function De(_0x4e85c6){const _0xad368c=_0x2960;if(_0x4e85c6[_0xad368c(0xa7)]>_0x4e85c6[_0xad368c(0xb0)])throw new w(_0xad368c(0x101),_0xad368c(0xe4),_0x4e85c6['id']);}function Oe(_0x2f257f,_0x52851f){const _0x4ad8d2=_0x2960;let _0x330d86=_0x2f257f['start']<=_0x52851f[_0x4ad8d2(0xb0)]&&_0x52851f[_0x4ad8d2(0xa7)]<=_0x2f257f[_0x4ad8d2(0xb0)],_0x1f1ac8=_0x2f257f[_0x4ad8d2(0xa7)]<=_0x52851f[_0x4ad8d2(0xa7)]&&_0x52851f['end']<=_0x2f257f[_0x4ad8d2(0xb0)],_0x2a6e0b=_0x52851f[_0x4ad8d2(0xa7)]<=_0x2f257f[_0x4ad8d2(0xa7)]&&_0x2f257f[_0x4ad8d2(0xb0)]<=_0x52851f['end'];return _0x330d86&&!_0x1f1ac8&&!_0x2a6e0b;}function P(_0x1e3ff1){'@babel/helpers - typeof';const _0x157de2=_0x2960;return P=typeof Symbol==_0x157de2(0xd0)&&typeof Symbol[_0x157de2(0xc4)]=='symbol'?function(_0x37e618){return typeof _0x37e618;}:function(_0x5030df){const _0xeb67f4=_0x157de2;return _0x5030df&&typeof Symbol==_0xeb67f4(0xd0)&&_0x5030df[_0xeb67f4(0x84)]===Symbol&&_0x5030df!==Symbol[_0xeb67f4(0x8c)]?_0xeb67f4(0xc8):typeof _0x5030df;},P(_0x1e3ff1);}function ke(_0x474a13,_0x246fe9){const _0x10caa5=_0x2960;if(P(_0x474a13)!=_0x10caa5(0xeb)||!_0x474a13)return _0x474a13;var _0x573a5a=_0x474a13[Symbol[_0x10caa5(0x11c)]];if(_0x573a5a!==void 0x0){var _0x2d7276=_0x573a5a[_0x10caa5(0xa8)](_0x474a13,_0x246fe9||_0x10caa5(0x104));if(P(_0x2d7276)!=_0x10caa5(0xeb))return _0x2d7276;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x246fe9===_0x10caa5(0xb3)?String:Number)(_0x474a13);}function Ae(_0x19237b){const _0xbd81d9=_0x2960;var _0x3add3a=ke(_0x19237b,'string');return P(_0x3add3a)==_0xbd81d9(0xc8)?_0x3add3a:_0x3add3a+'';}function F(_0x4f9e51,_0xfeb903,_0x1a22e4){const _0x26fff6=_0x2960;return(_0xfeb903=Ae(_0xfeb903))in _0x4f9e51?Object[_0x26fff6(0xc7)](_0x4f9e51,_0xfeb903,{'value':_0x1a22e4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f9e51[_0xfeb903]=_0x1a22e4,_0x4f9e51;}var I=class extends _0x50f73a{constructor(..._0xace6d9){const _0x48de69=_0x2960;super(..._0xace6d9),F(this,_0x48de69(0x95),new Map()),F(this,'_change$',new _0xa40a72()),F(this,_0x48de69(0x100),this[_0x48de69(0xbb)][_0x48de69(0x97)]());}[_0x470647(0xf7)](_0x39f4f8,_0x3e83bd){const _0x250072=_0x470647;var _0x4847cb,_0x36d977;return[...(_0x4847cb=(_0x36d977=this[_0x250072(0x95)][_0x250072(0xfc)](_0x39f4f8))==null?void 0x0:_0x36d977['get'](_0x3e83bd))==null?[]:_0x4847cb];}[_0x470647(0x9c)](_0x4a476b){const _0x2bd8c5=_0x470647;let _0x5a174f=this[_0x2bd8c5(0x95)]['get'](_0x4a476b),_0x46e32d=new Map();return _0x5a174f==null||_0x5a174f[_0x2bd8c5(0xf3)]((_0x3e7e3f,_0x4622a9)=>{_0x46e32d['set'](_0x4622a9,[..._0x3e7e3f]);}),_0x46e32d;}[_0x470647(0x117)](_0x1bc70e,_0x2a3e7a,_0x29bfaf){const _0x19adc9=_0x470647;this[_0x19adc9(0x125)](_0x1bc70e)['set'](_0x2a3e7a,[..._0x29bfaf]),this[_0x19adc9(0xbb)][_0x19adc9(0xdf)]({'unitId':_0x1bc70e,'subUnitId':_0x2a3e7a});}['removeUnit'](_0x506650){const _0x49d905=_0x470647;this['_outlines']['delete'](_0x506650),this[_0x49d905(0xbb)][_0x49d905(0xdf)]({'unitId':_0x506650});}[_0x470647(0xa1)](_0x2a0364){const _0x1a29bd=_0x470647;let _0x1d0298=this[_0x1a29bd(0x95)][_0x1a29bd(0xfc)](_0x2a0364),_0x199077={};return _0x1d0298==null||_0x1d0298[_0x1a29bd(0xf3)]((_0x4d848e,_0x3057b4)=>{_0x199077[_0x3057b4]={'outlineList':[..._0x4d848e]};}),_0x199077;}['deserialize'](_0x3e4aa3,_0x2c2843){const _0x55a4e=_0x470647;let _0x25a5aa=new Map();Object[_0x55a4e(0x82)](_0x2c2843)[_0x55a4e(0xf3)](([_0x39031f,_0xae8e2d])=>{var _0xf11ad4;_0x25a5aa['set'](_0x39031f,[...(_0xf11ad4=_0xae8e2d['outlineList'])==null?[]:_0xf11ad4]);}),this['_outlines'][_0x55a4e(0xf5)](_0x3e4aa3,_0x25a5aa),this[_0x55a4e(0xbb)][_0x55a4e(0xdf)]({'unitId':_0x3e4aa3});}[_0x470647(0x103)](){const _0x20583d=_0x470647;super[_0x20583d(0x103)](),this[_0x20583d(0x95)][_0x20583d(0xb1)](),this[_0x20583d(0xbb)][_0x20583d(0xab)]();}[_0x470647(0x125)](_0x3d7300){const _0x21cbed=_0x470647;let _0xed1d9=this[_0x21cbed(0x95)]['get'](_0x3d7300);return _0xed1d9||(_0xed1d9=new Map(),this['_outlines'][_0x21cbed(0xf5)](_0x3d7300,_0xed1d9)),_0xed1d9;}},L=class extends _0x50f73a{constructor(..._0x2f8df1){const _0x5c4e59=_0x470647;super(..._0x2f8df1),F(this,_0x5c4e59(0x11a),new _0xa40a72()),F(this,_0x5c4e59(0x98),this[_0x5c4e59(0x11a)][_0x5c4e59(0x97)]());}['emit'](_0x36a832){const _0x16ce9d=_0x470647;this[_0x16ce9d(0x11a)]['next'](_0x36a832);}[_0x470647(0x103)](){const _0x47cca9=_0x470647;super[_0x47cca9(0x103)](),this[_0x47cca9(0x11a)][_0x47cca9(0xab)]();}};const R={'id':_0x470647(0xa9),'type':_0x3d3122[_0x470647(0x124)],'handler':(_0x1c4c9f,_0x466bf9)=>{const _0x487b62=_0x470647;let _0xf975f8=_0x1c4c9f[_0x487b62(0xfc)](I),_0x3209f8=_0xf975f8['getOutlines'](_0x466bf9['unitId'],_0x466bf9[_0x487b62(0xe5)]);return _0xf975f8[_0x487b62(0x117)](_0x466bf9[_0x487b62(0x118)],_0x466bf9[_0x487b62(0xe5)],he(_0x3209f8,_0x466bf9['outline'])),!0x0;}},z={'id':'sheet.mutation.remove-dimension-outline','type':_0x3d3122['MUTATION'],'handler':(_0x4b562d,_0x2225c9)=>{const _0x5b7051=_0x470647;let _0x21e79b=_0x4b562d[_0x5b7051(0xfc)](I),_0x1a28b5=_0x21e79b['getOutlines'](_0x2225c9['unitId'],_0x2225c9[_0x5b7051(0xe5)]);return _0x21e79b[_0x5b7051(0x117)](_0x2225c9['unitId'],_0x2225c9[_0x5b7051(0xe5)],_0x1a28b5[_0x5b7051(0x91)](_0x45b54f=>_0x45b54f['id']!==_0x2225c9[_0x5b7051(0x10a)])),!0x0;}};function B(_0x712d7e,_0x180e41,_0x2293f0){const _0xaf16c=_0x470647;let _0x1ec3de=Me(_0x712d7e);return _0x1ec3de?_0x1ec3de[_0xaf16c(0x108)]({'workbookTypes':[_0xe38788],'worksheetTypes':[_0x3cc6c7]},_0x180e41,_0x2293f0):!0x0;}function je(_0x1f36f,_0x3a1864,_0x25aca6){const _0x23e1c1=_0x470647;var _0x247135;let _0x4f9418=Ne(_0x1f36f);return((_0x247135=_0x4f9418==null?void 0x0:_0x4f9418[_0x23e1c1(0xff)])==null?_0x21afba(null):_0x247135)[_0x23e1c1(0x81)](_0x1e4436(0x64),_0x534ba3(null),_0x2c3473(()=>B(_0x1f36f,_0x3a1864,_0x25aca6)));}function Me(_0x10a630){const _0x279d0e=_0x470647;if(typeof _0x10a630[_0x279d0e(0xd3)]==_0x279d0e(0xd0)&&!_0x10a630[_0x279d0e(0xd3)](_0x18cb26))return null;try{return _0x10a630[_0x279d0e(0xfc)](_0x18cb26);}catch{return null;}}function Ne(_0x37b722){const _0x3d3376=_0x470647;if(typeof _0x37b722[_0x3d3376(0xd3)]==_0x3d3376(0xd0)&&!_0x37b722['has'](_0x269e8d))return null;try{return _0x37b722['get'](_0x269e8d);}catch{return null;}}const V={'id':_0x470647(0x9e),'type':_0x3d3122[_0x470647(0xb6)],'handler':(_0x561ee9,_0x263308)=>{const _0x542948=_0x470647;var _0x29e181,_0x186f99;if(!_0x263308)return!0x1;let _0x342296=_0x7bcf04(_0x561ee9[_0x542948(0xfc)](_0x39f6dc),_0x263308);if(!_0x342296)return!0x1;let {unitId:_0x1f27b2,subUnitId:_0x19aa8c,worksheet:_0x566c92}=_0x342296;if(!B(_0x561ee9,_0x1f27b2,_0x19aa8c))return!0x1;let _0x358007=_0x561ee9['get'](I),_0x28bb57={'id':_0x542948(0xf0)+_0x526a6f(0x6),'unitId':_0x1f27b2,'subUnitId':_0x19aa8c,'axis':_0x263308[_0x542948(0xf1)],'start':_0x263308[_0x542948(0xa7)],'end':_0x263308[_0x542948(0xb0)],'collapsed':!0x1},_0x30745c=_0x263308[_0x542948(0xf1)]==='row'?_0x566c92[_0x542948(0x8f)]():_0x566c92[_0x542948(0xed)](),_0xb468f6=_0x358007[_0x542948(0xf7)](_0x1f27b2,_0x19aa8c),_0xd7793c=ge(_0xb468f6,_0x28bb57),_0x493418=(_0x29e181=_0xd7793c==null?void 0x0:_0xd7793c['mergedOutlines'])==null?[]:_0x29e181,_0x5bf990=(_0x186f99=_0xd7793c==null?void 0x0:_0xd7793c[_0x542948(0xa5)])==null?_0x28bb57:_0x186f99,_0x20bd06=k(_0xd7793c?_0xb468f6[_0x542948(0x91)](_0x58b9fc=>!_0x493418[_0x542948(0x122)](_0x3ab715=>_0x3ab715['id']===_0x58b9fc['id'])):_0xb468f6,_0x5bf990,{'maxIndex':_0x30745c});if(!_0x20bd06[_0x542948(0x9d)]){var _0x285efc;return _0x561ee9['get'](L)[_0x542948(0x8d)]({'reason':(_0x285efc=_0x20bd06[_0x542948(0xec)])==null?'unknown':_0x285efc,'commandId':V['id'],'unitId':_0x1f27b2,'subUnitId':_0x19aa8c,'axis':_0x263308[_0x542948(0xf1)],'outlineId':_0x5bf990['id']}),!0x1;}let _0x5673d0=[..._0x493418['map'](_0x102ad7=>({'id':z['id'],'params':{'unitId':_0x1f27b2,'subUnitId':_0x19aa8c,'outlineId':_0x102ad7['id']}})),{'id':R['id'],'params':{'unitId':_0x1f27b2,'subUnitId':_0x19aa8c,'outline':_0x5bf990}}],_0x132a06=[{'id':z['id'],'params':{'unitId':_0x1f27b2,'subUnitId':_0x19aa8c,'outlineId':_0x5bf990['id']}},..._0x493418['map'](_0x4500b1=>({'id':R['id'],'params':{'unitId':_0x1f27b2,'subUnitId':_0x19aa8c,'outline':_0x4500b1}}))];return _0x3c1ea5(_0x5673d0,_0x561ee9['get'](_0x3a2206))['result']?(_0x561ee9[_0x542948(0xfc)](_0x5dd5fa)[_0x542948(0x96)]({'unitID':_0x1f27b2,'undoMutations':_0x132a06,'redoMutations':_0x5673d0}),!0x0):!0x1;}},H={'id':'sheet.mutation.clear-dimension-outlines','type':_0x3d3122[_0x470647(0x124)],'handler':(_0xe2415c,_0x5cd57b)=>{const _0x250b0f=_0x470647;let _0x329149=_0xe2415c['get'](I),_0x29ef10=_0x329149[_0x250b0f(0xf7)](_0x5cd57b['unitId'],_0x5cd57b['subUnitId']);return _0x329149['setOutlines'](_0x5cd57b[_0x250b0f(0x118)],_0x5cd57b[_0x250b0f(0xe5)],_e(_0x29ef10,_0x5cd57b)),!0x0;}},U={'id':'sheet.command.clear-dimension-outlines','type':_0x3d3122['COMMAND'],'handler':(_0x686c6e,_0x362e11)=>{const _0x424318=_0x470647;if(!_0x362e11)return!0x1;let _0x22eb22=_0x7bcf04(_0x686c6e[_0x424318(0xfc)](_0x39f6dc),_0x362e11);if(!_0x22eb22)return!0x1;let {unitId:_0x25f3d3,subUnitId:_0x58639d}=_0x22eb22;if(!B(_0x686c6e,_0x25f3d3,_0x58639d))return!0x1;let _0x83458b={'unitId':_0x25f3d3,'subUnitId':_0x58639d,'axis':_0x362e11[_0x424318(0xf1)],'start':_0x362e11[_0x424318(0xa7)],'end':_0x362e11['end']},_0x99cae1=_0x686c6e['get'](I)[_0x424318(0xf7)](_0x25f3d3,_0x58639d)[_0x424318(0x91)](_0x391376=>D(_0x391376,_0x83458b)&&_0x391376[_0x424318(0xa7)]>=_0x362e11[_0x424318(0xa7)]&&_0x391376[_0x424318(0xb0)]<=_0x362e11[_0x424318(0xb0)]);if(_0x99cae1[_0x424318(0xa6)]===0x0)return _0x686c6e[_0x424318(0xfc)](L)[_0x424318(0x8d)]({'reason':_0x424318(0xe7),'commandId':U['id'],'unitId':_0x25f3d3,'subUnitId':_0x58639d,'axis':_0x362e11['axis']}),!0x1;let _0x16c14b=[{'id':H['id'],'params':{..._0x83458b,'removedOutlineIds':_0x99cae1['map'](_0x3c86a3=>_0x3c86a3['id'])}}],_0x1640de=_0x99cae1[_0x424318(0x127)](_0x22c2ac=>({'id':R['id'],'params':{'unitId':_0x25f3d3,'subUnitId':_0x58639d,'outline':_0x22c2ac}}));return _0x3c1ea5(_0x16c14b,_0x686c6e['get'](_0x3a2206))[_0x424318(0x126)]?(_0x686c6e['get'](_0x5dd5fa)[_0x424318(0x96)]({'unitID':_0x25f3d3,'undoMutations':_0x1640de,'redoMutations':_0x16c14b}),!0x0):!0x1;}},Pe={'id':_0x470647(0xa0),'type':_0x3d3122[_0x470647(0xb6)],'handler':(_0x45fbec,_0x981aa6)=>{const _0xee65d2=_0x470647;if(!_0x981aa6)return!0x1;let _0x44cf72=_0x7bcf04(_0x45fbec[_0xee65d2(0xfc)](_0x39f6dc),_0x981aa6);if(!_0x44cf72)return!0x1;let {unitId:_0x2e3083,subUnitId:_0x48fee1}=_0x44cf72;if(!B(_0x45fbec,_0x2e3083,_0x48fee1))return!0x1;let _0x4bebc3=_0x45fbec['get'](I)[_0xee65d2(0xf7)](_0x2e3083,_0x48fee1)[_0xee65d2(0xe3)](_0x139c6c=>_0x139c6c['id']===_0x981aa6['outlineId']);if(!_0x4bebc3)return!0x1;let _0x55b350=[{'id':z['id'],'params':{'unitId':_0x2e3083,'subUnitId':_0x48fee1,'outlineId':_0x4bebc3['id'],'outline':_0x4bebc3}}],_0x1d6ed6=[{'id':R['id'],'params':{'unitId':_0x2e3083,'subUnitId':_0x48fee1,'outline':_0x4bebc3}}];return _0x3c1ea5(_0x55b350,_0x45fbec[_0xee65d2(0xfc)](_0x3a2206))['result']?(_0x45fbec[_0xee65d2(0xfc)](_0x5dd5fa)[_0xee65d2(0x96)]({'unitID':_0x2e3083,'undoMutations':_0x1d6ed6,'redoMutations':_0x55b350}),!0x0):!0x1;}},W={'id':_0x470647(0xf8),'type':_0x3d3122[_0x470647(0x124)],'handler':(_0x45a4b5,_0xf71373)=>{const _0x47ae8d=_0x470647;let _0x5c40c9=_0x45a4b5['get'](I),_0x41c0db=_0x5c40c9[_0x47ae8d(0xf7)](_0xf71373[_0x47ae8d(0x118)],_0xf71373[_0x47ae8d(0xe5)]),_0x528869=_0x41c0db['find'](_0x15f6f4=>_0x15f6f4['id']===_0xf71373[_0x47ae8d(0x10a)]);return _0x528869&&_0x5c40c9['setOutlines'](_0xf71373[_0x47ae8d(0x118)],_0xf71373[_0x47ae8d(0xe5)],_0x41c0db[_0x47ae8d(0x127)](_0x1a6042=>_0x1a6042[_0x47ae8d(0x118)]!==_0x528869[_0x47ae8d(0x118)]||_0x1a6042[_0x47ae8d(0xe5)]!==_0x528869[_0x47ae8d(0xe5)]||_0x1a6042[_0x47ae8d(0xf1)]!==_0x528869[_0x47ae8d(0xf1)]||_0x1a6042[_0x47ae8d(0xa7)]!==_0x528869[_0x47ae8d(0xa7)]||_0x1a6042['end']!==_0x528869['end']?_0x1a6042:{..._0x1a6042,'collapsed':_0xf71373[_0x47ae8d(0xe1)]})),!0x0;}};function Fe(_0xfc829d,_0xbac102,_0x132c80,_0x30b37d){const _0x5121c6=_0x470647;return _0xfc829d===_0x5121c6(0xa4)?{'startRow':_0xbac102,'endRow':_0x132c80,'startColumn':0x0,'endColumn':_0x30b37d[_0x5121c6(0x89)]()-0x1}:{'startRow':0x0,'endRow':_0x30b37d['getRowCount']()-0x1,'startColumn':_0xbac102,'endColumn':_0x132c80};}function Ie(_0x3ad191){return _0x3ad191==='row'?_0x5271ce['id']:_0x36bde2['id'];}function Le(_0x4782a9){const _0xfce9a1=_0x470647;return _0x4782a9===_0xfce9a1(0xa4)?_0x33c0ec['id']:_0x309749['id'];}function Re(_0x13c698,_0xe20df3,_0x9a41d9,_0x2f5603){const _0x21afd2=_0x470647;let _0x1e0aec=_0xe20df3?[Fe(_0x13c698[_0x21afd2(0xf1)],_0x13c698[_0x21afd2(0xa7)],_0x13c698['end'],_0x9a41d9)]:ze(_0x13c698,_0x2f5603,_0x9a41d9),_0x1c1624=_0xe20df3?Ie(_0x13c698['axis']):Le(_0x13c698['axis']);return[{'id':W['id'],'params':{'unitId':_0x13c698[_0x21afd2(0x118)],'subUnitId':_0x13c698[_0x21afd2(0xe5)],'outlineId':_0x13c698['id'],'outline':_0x13c698,'collapsed':_0xe20df3}},..._0x1e0aec[_0x21afd2(0x127)](_0x4aed51=>({'id':_0x1c1624,'params':{'unitId':_0x13c698['unitId'],'subUnitId':_0x13c698[_0x21afd2(0xe5)],'ranges':[_0x4aed51],'dimensionOutlineId':_0x13c698['id']}}))];}function ze(_0x270266,_0x27f5a1,_0x3474ac){const _0x5b789b=_0x470647;let _0x8a358f=ve(_0x27f5a1[_0x5b789b(0x127)](_0x2fef40=>Be(_0x2fef40,_0x270266)?{..._0x2fef40,'collapsed':!0x1}:_0x2fef40),_0x270266[_0x5b789b(0x118)],_0x270266[_0x5b789b(0xe5)],_0x270266[_0x5b789b(0xf1)]);return Ve({'start':_0x270266[_0x5b789b(0xa7)],'end':_0x270266[_0x5b789b(0xb0)]},_0x8a358f)[_0x5b789b(0x127)](_0xef94=>Fe(_0x270266[_0x5b789b(0xf1)],_0xef94[_0x5b789b(0xa7)],_0xef94['end'],_0x3474ac));}function Be(_0x49a984,_0x35bd7b){const _0x38c6a4=_0x470647;return _0x49a984[_0x38c6a4(0x118)]===_0x35bd7b['unitId']&&_0x49a984['subUnitId']===_0x35bd7b[_0x38c6a4(0xe5)]&&_0x49a984[_0x38c6a4(0xf1)]===_0x35bd7b[_0x38c6a4(0xf1)]&&_0x49a984[_0x38c6a4(0xa7)]===_0x35bd7b[_0x38c6a4(0xa7)]&&_0x49a984[_0x38c6a4(0xb0)]===_0x35bd7b[_0x38c6a4(0xb0)];}function Ve(_0x181600,_0x59d332){const _0x3ad030=_0x470647;let _0x22c3a5=_0x181600[_0x3ad030(0xa7)],_0x1afaf0=[];for(let _0x5d8f84 of _0x59d332)if(!(_0x5d8f84['end']<_0x22c3a5||_0x5d8f84[_0x3ad030(0xa7)]>_0x181600[_0x3ad030(0xb0)])&&(_0x5d8f84[_0x3ad030(0xa7)]>_0x22c3a5&&_0x1afaf0[_0x3ad030(0x90)]({'start':_0x22c3a5,'end':Math[_0x3ad030(0xd7)](_0x5d8f84[_0x3ad030(0xa7)]-0x1,_0x181600[_0x3ad030(0xb0)])}),_0x22c3a5=Math[_0x3ad030(0x85)](_0x22c3a5,_0x5d8f84['end']+0x1),_0x22c3a5>_0x181600[_0x3ad030(0xb0)]))break;return _0x22c3a5<=_0x181600['end']&&_0x1afaf0['push']({'start':_0x22c3a5,'end':_0x181600[_0x3ad030(0xb0)]}),_0x1afaf0;}const He={'id':_0x470647(0x106),'type':_0x3d3122[_0x470647(0xb6)],'handler':(_0x2b05a8,_0x1bb54a)=>{const _0x56a0ef=_0x470647;if(!_0x1bb54a)return!0x1;let _0x3a871a=_0x7bcf04(_0x2b05a8['get'](_0x39f6dc),_0x1bb54a);if(!_0x3a871a)return!0x1;let {unitId:_0x1a2120,subUnitId:_0xe8da78,worksheet:_0x3b25f2}=_0x3a871a;if(!B(_0x2b05a8,_0x1a2120,_0xe8da78))return!0x1;let _0x60a530=_0x2b05a8[_0x56a0ef(0xfc)](I)[_0x56a0ef(0xf7)](_0x1a2120,_0xe8da78),_0x4953c1=_0x60a530[_0x56a0ef(0xe3)](_0xd222df=>_0xd222df['id']===_0x1bb54a[_0x56a0ef(0x10a)]);if(!_0x4953c1||_0x4953c1[_0x56a0ef(0xe1)]===_0x1bb54a[_0x56a0ef(0xe1)])return!0x1;let _0x1e895a=Re(_0x4953c1,_0x1bb54a[_0x56a0ef(0xe1)],_0x3b25f2,_0x60a530),_0x56a0c2=Re(_0x4953c1,!_0x1bb54a['collapsed'],_0x3b25f2,_0x60a530);return _0x3c1ea5(_0x1e895a,_0x2b05a8[_0x56a0ef(0xfc)](_0x3a2206))['result']?(_0x2b05a8[_0x56a0ef(0xfc)](_0x5dd5fa)[_0x56a0ef(0x96)]({'unitID':_0x1a2120,'undoMutations':_0x56a0c2,'redoMutations':_0x1e895a}),!0x0):!0x1;}},G={'id':_0x470647(0xd5),'type':_0x3d3122[_0x470647(0x124)],'handler':(_0xa0fabe,_0x149531)=>{const _0x20b08a=_0x470647;let _0x354818=_0xa0fabe[_0x20b08a(0xfc)](I),_0x683b40=Ue(_0x354818[_0x20b08a(0xf7)](_0x149531[_0x20b08a(0x118)],_0x149531[_0x20b08a(0xe5)]),_0x149531);return _0x354818[_0x20b08a(0x117)](_0x149531[_0x20b08a(0x118)],_0x149531[_0x20b08a(0xe5)],_0x683b40),!0x0;}};function _0x2960(_0x4ce437,_0x4c13fb){_0x4ce437=_0x4ce437-0x80;const _0x41a232=_0x41a2();let _0x29606d=_0x41a232[_0x4ce437];return _0x29606d;}function Ue(_0x578236,_0x4e5712){const _0x2c749c=_0x470647;switch(_0x4e5712['type']){case _0x2c749c(0xb8):return _0x4e5712[_0x2c749c(0x116)]?We(_0x578236,_0x4e5712):A(_0x578236,_0x4e5712);case _0x2c749c(0xd6):return j(_0x578236,_0x4e5712);case _0x2c749c(0xc9):return M(_0x578236,_0x4e5712);}}function We(_0x117ab3,_0x1ccd9e){const _0x1a58ec=_0x470647;return[..._0x117ab3[_0x1a58ec(0x91)](_0x5b86f0=>_0x5b86f0[_0x1a58ec(0x118)]!==_0x1ccd9e['unitId']||_0x5b86f0[_0x1a58ec(0xe5)]!==_0x1ccd9e[_0x1a58ec(0xe5)]||_0x5b86f0[_0x1a58ec(0xf1)]!==_0x1ccd9e['axis']),..._0x1ccd9e[_0x1a58ec(0x116)]];}const K=_0x470647(0xd4),Ge=_0x470647(0x92);var Ke='@univerjs-pro/sheets-outline',qe=_0x470647(0xee);function q(_0x4f3407,_0x23abaa){return function(_0x4f3b9f,_0x505478){_0x23abaa(_0x4f3b9f,_0x505478,_0x4f3407);};}function J(_0x266c48,_0x5bf6ba,_0x2c1c19,_0x3357f9){const _0x461fc0=_0x470647;var _0x2a0d1b=arguments['length'],_0x3ad998=_0x2a0d1b<0x3?_0x5bf6ba:_0x3357f9===null?_0x3357f9=Object[_0x461fc0(0xba)](_0x5bf6ba,_0x2c1c19):_0x3357f9,_0x465c5f;if(typeof Reflect==_0x461fc0(0xeb)&&typeof Reflect['decorate']=='function')_0x3ad998=Reflect[_0x461fc0(0x119)](_0x266c48,_0x5bf6ba,_0x2c1c19,_0x3357f9);else{for(var _0x4fbab9=_0x266c48['length']-0x1;_0x4fbab9>=0x0;_0x4fbab9--)(_0x465c5f=_0x266c48[_0x4fbab9])&&(_0x3ad998=(_0x2a0d1b<0x3?_0x465c5f(_0x3ad998):_0x2a0d1b>0x3?_0x465c5f(_0x5bf6ba,_0x2c1c19,_0x3ad998):_0x465c5f(_0x5bf6ba,_0x2c1c19))||_0x3ad998);}return _0x2a0d1b>0x3&&_0x3ad998&&Object[_0x461fc0(0xc7)](_0x5bf6ba,_0x2c1c19,_0x3ad998),_0x3ad998;}const Y={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let X=class extends _0x50f73a{constructor(_0x3265b4,_0x5e377a,_0x4c3a1d,_0x1091f0){const _0x2f1ce6=_0x470647;super(),this[_0x2f1ce6(0xe0)]=_0x3265b4,this[_0x2f1ce6(0x102)]=_0x5e377a,this[_0x2f1ce6(0xbf)]=_0x4c3a1d,this[_0x2f1ce6(0xe8)]=_0x1091f0,this[_0x2f1ce6(0xae)]();}[_0x470647(0xae)](){const _0x4b7127=_0x470647;this[_0x4b7127(0xd2)](this[_0x4b7127(0x102)][_0x4b7127(0xad)]({'getMutations':_0x143e12=>Je(_0x143e12,(_0x31bd9e,_0x5847c7)=>this[_0x4b7127(0xbf)][_0x4b7127(0xf7)](_0x31bd9e,_0x5847c7),this[_0x4b7127(0x115)](_0x143e12[_0x4b7127(0xea)]),_0x38f42c=>this[_0x4b7127(0xe8)][_0x4b7127(0x8d)](_0x38f42c))}));}[_0x470647(0x115)](_0x53f16b){const _0x32b970=_0x470647;let _0x2426b2=_0x53f16b,_0x4e57cd=_0x2426b2!=null&&_0x2426b2['unitId']?this[_0x32b970(0xe0)][_0x32b970(0xd9)](_0x2426b2[_0x32b970(0x118)]):this[_0x32b970(0xe0)][_0x32b970(0xbc)](_0x1fac57[_0x32b970(0x111)]);if(!_0x4e57cd)return;let _0x326c88=_0x2426b2!=null&&_0x2426b2[_0x32b970(0xe5)]?_0x4e57cd[_0x32b970(0xac)](_0x2426b2[_0x32b970(0xe5)]):_0x4e57cd[_0x32b970(0x123)]();if(_0x326c88)return{'unitId':_0x4e57cd[_0x32b970(0xbe)](),'subUnitId':_0x326c88[_0x32b970(0x87)]()};}};X=J([q(0x0,_0x39f6dc),q(0x1,_0x1378e5(_0x2f2fa3)),q(0x2,_0x1378e5(I)),q(0x3,_0x1378e5(L))],X);function Je(_0x30f806,_0xb2ddd6,_0x2f5ccd,_0x5c7e14){const _0x23b968=_0x470647;let _0x3a9be8=Xe(_0x30f806,_0x2f5ccd);if(!_0x3a9be8)return nt();let _0x2d3f97=_0xb2ddd6(_0x3a9be8[_0x23b968(0x118)],_0x3a9be8[_0x23b968(0xe5)]);if(!_0x2d3f97[_0x23b968(0x122)](_0x58d494=>_0x58d494[_0x23b968(0xf1)]===_0x3a9be8[_0x23b968(0xf1)]))return nt();Ye(_0x2d3f97,_0x3a9be8,_0x30f806['id'],_0x5c7e14);let _0x24bb36=et(_0x3a9be8,_0x2d3f97);return{'redos':[{'id':G['id'],'params':_0x3a9be8}],'undos':[{'id':G['id'],'params':_0x24bb36}],'preRedos':[],'preUndos':[]};}function Ye(_0x398c31,_0x9d9fb6,_0x1fcd94,_0x1838b6){const _0x105baf=_0x470647;try{switch(_0x9d9fb6[_0x105baf(0xbd)]){case _0x105baf(0xb8):A(_0x398c31,_0x9d9fb6);break;case _0x105baf(0xd6):j(_0x398c31,_0x9d9fb6);break;case'move':M(_0x398c31,_0x9d9fb6);break;}}catch(_0x214b1a){throw _0x1838b6==null||_0x1838b6({'reason':T(_0x214b1a),'commandId':_0x1fcd94,'unitId':_0x9d9fb6[_0x105baf(0x118)],'subUnitId':_0x9d9fb6[_0x105baf(0xe5)],'axis':_0x9d9fb6['axis'],'outlineId':me(_0x214b1a)}),new _0x2f895c(_0x214b1a instanceof Error?_0x214b1a['message']:_0x105baf(0x10f));}}function Xe(_0xea927c,_0x257cf8){const _0xef2649=_0x470647;switch(_0xea927c['id']){case _0x568b88['id']:return Ze(_0xea927c[_0xef2649(0xea)],_0xef2649(0xa4),_0x257cf8);case _0x24d8c4['id']:return Ze(_0xea927c['params'],_0xef2649(0x8e),_0x257cf8);case _0x2f7813['id']:return Qe(_0xea927c[_0xef2649(0xea)],'row',_0x257cf8);case _0x59cc03['id']:return Qe(_0xea927c[_0xef2649(0xea)],'column',_0x257cf8);case _0xf13d0f['id']:return $e(_0xea927c['params'],_0xef2649(0xa4),_0x257cf8);case _0x54b479['id']:return $e(_0xea927c['params'],'column',_0x257cf8);default:return null;}}function Ze(_0x36da8a,_0x2bce1e,_0x35c798){const _0x2e5ef5=_0x470647;let _0x44a7e4=Z(_0x36da8a,_0x35c798);if(!(_0x36da8a!=null&&_0x36da8a[_0x2e5ef5(0xcb)])||!_0x44a7e4)return null;let _0x4addd7=_0x2bce1e===_0x2e5ef5(0xa4)?_0x36da8a[_0x2e5ef5(0xcb)][_0x2e5ef5(0x8b)]:_0x36da8a['range'][_0x2e5ef5(0x80)],_0x4797ff=_0x2bce1e===_0x2e5ef5(0xa4)?_0x36da8a['range'][_0x2e5ef5(0xfb)]:_0x36da8a[_0x2e5ef5(0xcb)][_0x2e5ef5(0xd8)];return{..._0x44a7e4,'axis':_0x2bce1e,'type':'insert','index':_0x4addd7,'count':_0x4797ff-_0x4addd7+0x1};}function Qe(_0x405131,_0xc26f,_0x4a22d0){const _0x8baf17=_0x470647;let _0x29fad5=Z(_0x405131,_0x4a22d0);if(!(_0x405131!=null&&_0x405131[_0x8baf17(0xcb)])||!_0x29fad5)return null;let _0x37ab61=_0xc26f===_0x8baf17(0xa4)?_0x405131[_0x8baf17(0xcb)][_0x8baf17(0x8b)]:_0x405131['range']['startColumn'],_0x2ddb59=_0xc26f==='row'?_0x405131['range'][_0x8baf17(0xfb)]:_0x405131[_0x8baf17(0xcb)]['endColumn'];return{..._0x29fad5,'axis':_0xc26f,'type':_0x8baf17(0xd6),'start':_0x37ab61,'end':_0x2ddb59};}function $e(_0x599e4b,_0x275445,_0xde2c29){const _0x3347d2=_0x470647;let _0x411bc3=Z(_0x599e4b,_0xde2c29);if(!(_0x599e4b!=null&&_0x599e4b[_0x3347d2(0x83)])||!_0x599e4b['toRange']||!_0x411bc3)return null;let _0x3a3559=_0x275445==='row'?_0x599e4b[_0x3347d2(0x83)]['startRow']:_0x599e4b['fromRange'][_0x3347d2(0x80)],_0x4dd497=_0x275445===_0x3347d2(0xa4)?_0x599e4b['fromRange'][_0x3347d2(0xfb)]:_0x599e4b['fromRange']['endColumn'],_0x527970=_0x275445==='row'?_0x599e4b[_0x3347d2(0xdd)][_0x3347d2(0x8b)]:_0x599e4b[_0x3347d2(0xdd)][_0x3347d2(0x80)];return{..._0x411bc3,'axis':_0x275445,'type':_0x3347d2(0xc9),'sourceStart':_0x3a3559,'sourceEnd':_0x4dd497,'destinationIndex':_0x527970};}function et(_0x127708,_0xd98cfb){const _0x40503d=_0x470647;switch(_0x127708[_0x40503d(0xbd)]){case _0x40503d(0xb8):return{'unitId':_0x127708['unitId'],'subUnitId':_0x127708[_0x40503d(0xe5)],'axis':_0x127708[_0x40503d(0xf1)],'type':_0x40503d(0xd6),'start':_0x127708[_0x40503d(0x10e)],'end':_0x127708[_0x40503d(0x10e)]+_0x127708['count']-0x1};case _0x40503d(0xd6):return{'unitId':_0x127708[_0x40503d(0x118)],'subUnitId':_0x127708[_0x40503d(0xe5)],'axis':_0x127708['axis'],'type':'insert','index':_0x127708[_0x40503d(0xa7)],'count':_0x127708[_0x40503d(0xb0)]-_0x127708[_0x40503d(0xa7)]+0x1,'restoreOutlines':_0xd98cfb[_0x40503d(0x91)](_0x5aa40e=>_0x5aa40e[_0x40503d(0x118)]===_0x127708['unitId']&&_0x5aa40e[_0x40503d(0xe5)]===_0x127708[_0x40503d(0xe5)]&&_0x5aa40e[_0x40503d(0xf1)]===_0x127708[_0x40503d(0xf1)])};case _0x40503d(0xc9):return tt(_0x127708);}}function tt(_0x16a1b9){const _0x5ade6f=_0x470647;let _0x4c09a0=_0x16a1b9[_0x5ade6f(0xcd)]-_0x16a1b9[_0x5ade6f(0x9b)]+0x1;return _0x16a1b9[_0x5ade6f(0xcc)]>=_0x16a1b9['sourceStart']&&_0x16a1b9[_0x5ade6f(0xcc)]<=_0x16a1b9[_0x5ade6f(0xcd)]+0x1?{..._0x16a1b9}:_0x16a1b9[_0x5ade6f(0xcc)]>_0x16a1b9['sourceEnd']+0x1?{..._0x16a1b9,'sourceStart':_0x16a1b9[_0x5ade6f(0xcc)]-_0x4c09a0,'sourceEnd':_0x16a1b9[_0x5ade6f(0xcc)]-0x1,'destinationIndex':_0x16a1b9[_0x5ade6f(0x9b)]}:{..._0x16a1b9,'sourceStart':_0x16a1b9[_0x5ade6f(0xcc)],'sourceEnd':_0x16a1b9[_0x5ade6f(0xcc)]+_0x4c09a0-0x1,'destinationIndex':_0x16a1b9['sourceEnd']+0x1};}function Z(_0x3df710,_0x3147f8){const _0x5c8205=_0x470647;var _0x438eca,_0x5465cd;let _0x4dd701=(_0x438eca=_0x3df710==null?void 0x0:_0x3df710[_0x5c8205(0x118)])==null?_0x3147f8==null?void 0x0:_0x3147f8[_0x5c8205(0x118)]:_0x438eca,_0x27d61b=(_0x5465cd=_0x3df710==null?void 0x0:_0x3df710[_0x5c8205(0xe5)])==null?_0x3147f8==null?void 0x0:_0x3147f8['subUnitId']:_0x5465cd;return _0x4dd701&&_0x27d61b?{'unitId':_0x4dd701,'subUnitId':_0x27d61b}:null;}function nt(){const _0x370668=_0x470647;var _0x331537,_0x5a5710;return{'redos':[...Y[_0x370668(0x120)]],'undos':[...Y[_0x370668(0xe6)]],'preRedos':[...(_0x331537=Y['preRedos'])==null?[]:_0x331537],'preUndos':[...(_0x5a5710=Y[_0x370668(0xb4)])==null?[]:_0x5a5710]};}let Q=class extends _0x50f73a{constructor(_0x392f1c,_0x4aa52f){const _0x14078f=_0x470647;super(),this[_0x14078f(0x99)]=_0x392f1c,this[_0x14078f(0xbf)]=_0x4aa52f,this[_0x14078f(0xb7)]();}[_0x470647(0xb7)](){const _0x3d462c=_0x470647;this['disposeWithMe'](this[_0x3d462c(0x99)][_0x3d462c(0xc6)]({'pluginName':K,'businesses':[_0x1fac57['UNIVER_SHEET']],'toJson':_0x530a93=>JSON[_0x3d462c(0x10d)](this[_0x3d462c(0xbf)][_0x3d462c(0xa1)](_0x530a93)),'parseJson':_0x18d933=>JSON[_0x3d462c(0x113)](_0x18d933),'onLoad':(_0x1e1d7f,_0x2e9405)=>this[_0x3d462c(0xbf)][_0x3d462c(0x11d)](_0x1e1d7f,_0x2e9405),'onUnLoad':_0x2b2af3=>this[_0x3d462c(0xbf)][_0x3d462c(0x105)](_0x2b2af3)}));}};Q=J([q(0x0,_0x3dcf5e),q(0x1,_0x1378e5(I))],Q);let $=class extends _0xabb3e0{constructor(_0xe9068,_0x39fd0a,_0xb5f24b){const _0x1ccaf8=_0x470647;super(),this[_0x1ccaf8(0xaa)]=_0xe9068,this[_0x1ccaf8(0xa3)]=_0x39fd0a,this['_commandService']=_0xb5f24b;}[_0x470647(0x110)](){const _0x2a680d=_0x470647;this[_0x2a680d(0xa3)]['add']([I]),this['_injector'][_0x2a680d(0x109)]([L]),this[_0x2a680d(0xa3)][_0x2a680d(0x109)]([Q]),this[_0x2a680d(0xa3)][_0x2a680d(0x109)]([X]),this[_0x2a680d(0x11f)](),this[_0x2a680d(0xa3)]['get'](I),this[_0x2a680d(0xa3)][_0x2a680d(0xfc)](L),this[_0x2a680d(0xa3)][_0x2a680d(0xfc)](Q),this[_0x2a680d(0xa3)]['get'](X);}['_initRegisterCommand'](){const _0x595ee5=_0x470647;[V,Pe,He,U][_0x595ee5(0xf3)](_0x13dc59=>{const _0x5a1abd=_0x595ee5;this[_0x5a1abd(0xd2)](this['_commandService']['registerCommand'](_0x13dc59));}),[R,z,W,H,G][_0x595ee5(0xf3)](_0xec1aa2=>{const _0x18e8a1=_0x595ee5;this[_0x18e8a1(0xd2)](this[_0x18e8a1(0xc3)][_0x18e8a1(0x112)](_0xec1aa2));});}};F($,'pluginName',K),F($,_0x470647(0xb9),Ke),F($,_0x470647(0xc5),qe),F($,'type',_0x1fac57[_0x470647(0x111)]),$=J([_0x49c6f9(_0x5b20c6),q(0x1,_0x1378e5(_0x2d072b)),q(0x2,_0x3a2206)],$);export{V as AddDimensionOutlineCommand,R as AddDimensionOutlineMutation,U as ClearDimensionOutlinesCommand,H as ClearDimensionOutlinesMutation,fe as DimensionOutlineAxis,w as DimensionOutlineError,pe as DimensionOutlineErrorReason,Pe as RemoveDimensionOutlineCommand,z as RemoveDimensionOutlineMutation,Ge as SHEETS_OUTLINE_PLUGIN_CONFIG_KEY,K as SHEET_OUTLINE_PLUGIN,He as SetDimensionOutlineCollapsedCommand,W as SetDimensionOutlineCollapsedMutation,L as SheetsOutlineErrorService,I as SheetsOutlineModel,G as TransformDimensionOutlinesMutation,$ as UniverSheetsOutlinePlugin,he as addDimensionOutlineToList,O as buildDimensionOutlineTree,ve as buildHiddenRanges,k as canAddDimensionOutline,_e as clearDimensionOutlinesInRange,me as getDimensionOutlineErrorOutlineId,T as getDimensionOutlineErrorReason,je as getDimensionOutlineViewPermission$,B as hasDimensionOutlineViewPermission,ye as mergeRanges,j as transformOutlinesByDelete,A as transformOutlinesByInsert,M as transformOutlinesByMove};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -22,8 +22,8 @@ export { SHEET_OUTLINE_PLUGIN } from './common/const';
|
|
|
22
22
|
export { DimensionOutlineError, getDimensionOutlineErrorOutlineId, getDimensionOutlineErrorReason } from './common/error';
|
|
23
23
|
export { DimensionOutlineAxis, DimensionOutlineErrorReason } from './common/type';
|
|
24
24
|
export type { ICanAddDimensionOutlineResult, IDimensionOutline, IDimensionOutlineInsertRange, IDimensionOutlineMoveRange, IDimensionOutlineRange, IDimensionOutlineViewModel, IHiddenRange, IOutlineMutationError, ISheetDimensionOutlineResource, ISheetsOutlineResource, } from './common/type';
|
|
25
|
-
export { SHEETS_OUTLINE_PLUGIN_CONFIG_KEY } from './
|
|
26
|
-
export type { IUniverSheetsOutlineConfig } from './
|
|
25
|
+
export { SHEETS_OUTLINE_PLUGIN_CONFIG_KEY } from './config/config';
|
|
26
|
+
export type { IUniverSheetsOutlineConfig } from './config/config';
|
|
27
27
|
export { SheetsOutlineModel } from './models/sheets-outline-model';
|
|
28
28
|
export { UniverSheetsOutlinePlugin } from './plugin';
|
|
29
29
|
export { SheetsOutlineErrorService } from './services/sheets-outline-error.service';
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IUniverSheetsOutlineConfig } from './
|
|
1
|
+
import type { IUniverSheetsOutlineConfig } from './config/config';
|
|
2
2
|
import { ICommandService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
3
|
export declare class UniverSheetsOutlinePlugin extends Plugin {
|
|
4
4
|
private readonly _config;
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x113c(_0x105382,_0x45d080){_0x105382=_0x105382-0x81;var _0x59ad23=_0x59ad();var _0x113c69=_0x59ad23[_0x105382];return _0x113c69;}(function(_0xbfc62,_0xbaa693){var _0x1d6112=_0x113c,_0x5a7c81=_0xbfc62();while(!![]){try{var _0x5a09a2=-parseInt(_0x1d6112(0x9b))/0x1*(-parseInt(_0x1d6112(0x9c))/0x2)+parseInt(_0x1d6112(0x95))/0x3*(-parseInt(_0x1d6112(0x8a))/0x4)+-parseInt(_0x1d6112(0xa1))/0x5+-parseInt(_0x1d6112(0x98))/0x6+parseInt(_0x1d6112(0x93))/0x7+parseInt(_0x1d6112(0xa4))/0x8+parseInt(_0x1d6112(0x8b))/0x9*(parseInt(_0x1d6112(0x94))/0xa);if(_0x5a09a2===_0xbaa693)break;else _0x5a7c81['push'](_0x5a7c81['shift']());}catch(_0x396986){_0x5a7c81['push'](_0x5a7c81['shift']());}}}(_0x59ad,0x73370),function(_0x1faf09,_0x2d65ea){var _0xde883=_0x113c;typeof exports=='object'&&typeof module<'u'?_0x2d65ea(require('@univerjs-pro/sheets-outline'),require('@univerjs/core/facade'),require('@univerjs/sheets/facade')):typeof define==_0xde883(0xa3)&&define['amd']?define([_0xde883(0x87),_0xde883(0x83),_0xde883(0x8e)],_0x2d65ea):(_0x1faf09=typeof globalThis<'u'?globalThis:_0x1faf09||self,_0x2d65ea(_0x1faf09['UniverProSheetsOutline'],_0x1faf09[_0xde883(0x84)],_0x1faf09[_0xde883(0x99)]));}(this,function(_0x448a50,_0x2bdb9f,_0x5685b9){var _0x5b31b4=_0x113c,_0x4fad9c=class extends _0x2bdb9f[_0x5b31b4(0x9f)]{get['DimensionOutlineAxis'](){var _0x205c33=_0x5b31b4;return _0x448a50[_0x205c33(0xa6)];}get['DimensionOutlineErrorReason'](){var _0x610cfc=_0x5b31b4;return _0x448a50[_0x610cfc(0x96)];}};_0x2bdb9f[_0x5b31b4(0x9f)][_0x5b31b4(0x81)](_0x4fad9c);var _0x5c3f6d=class extends _0x5685b9['FWorksheet']{[_0x5b31b4(0xa5)](_0x575454,_0x20cc1d){var _0x3fba60=_0x5b31b4;return this['_addDimensionOutline'](_0x448a50[_0x3fba60(0xa6)]['ROW'],_0x575454,_0x20cc1d);}[_0x5b31b4(0x9a)](_0x32ffdd,_0x598316){var _0x53b15a=_0x5b31b4;return this[_0x53b15a(0x85)](_0x448a50[_0x53b15a(0xa6)]['COLUMN'],_0x32ffdd,_0x598316);}[_0x5b31b4(0x9d)](_0x36b6b8){var _0x3d68cb=_0x5b31b4;return this[_0x3d68cb(0x97)]['syncExecuteCommand'](_0x448a50['RemoveDimensionOutlineCommand']['id'],{'unitId':this[_0x3d68cb(0xa7)][_0x3d68cb(0x86)](),'subUnitId':this[_0x3d68cb(0x92)][_0x3d68cb(0x91)](),'outlineId':_0x36b6b8}),this;}['setDimensionOutlineCollapsed'](_0xa6972d,_0x518a30){var _0x2379a7=_0x5b31b4;return this[_0x2379a7(0x97)]['syncExecuteCommand'](_0x448a50[_0x2379a7(0x8f)]['id'],{'unitId':this[_0x2379a7(0xa7)][_0x2379a7(0x86)](),'subUnitId':this[_0x2379a7(0x92)][_0x2379a7(0x91)](),'outlineId':_0xa6972d,'collapsed':_0x518a30}),this;}[_0x5b31b4(0x89)](_0x30d8b5,_0x44677e,_0xdbfc7e){var _0x4bee91=_0x5b31b4;return this['_commandService']['syncExecuteCommand'](_0x448a50[_0x4bee91(0xa2)]['id'],{'unitId':this[_0x4bee91(0xa7)]['getUnitId'](),'subUnitId':this[_0x4bee91(0x92)]['getSheetId'](),'axis':_0x30d8b5,'start':_0x44677e,'end':_0xdbfc7e}),this;}[_0x5b31b4(0x82)](_0x2c785c){var _0x2940bd=_0x5b31b4;let _0x5e3e06=this[_0x2940bd(0x8d)]['get'](_0x448a50['SheetsOutlineModel'])[_0x2940bd(0x88)](this[_0x2940bd(0xa7)][_0x2940bd(0x86)](),this[_0x2940bd(0x92)]['getSheetId']());return _0x2c785c?_0x5e3e06['filter'](_0x10b7b4=>_0x10b7b4[_0x2940bd(0x8c)]===_0x2c785c):_0x5e3e06;}[_0x5b31b4(0x85)](_0x5c72c1,_0x34fe7b,_0x420685){var _0x3c2f6b=_0x5b31b4;return this[_0x3c2f6b(0x97)][_0x3c2f6b(0xa0)](_0x448a50[_0x3c2f6b(0x90)]['id'],{'unitId':this[_0x3c2f6b(0xa7)]['getUnitId'](),'subUnitId':this[_0x3c2f6b(0x92)][_0x3c2f6b(0x91)](),'axis':_0x5c72c1,'start':_0x34fe7b,'end':_0x34fe7b+_0x420685-0x1}),this;}};_0x5685b9[_0x5b31b4(0x9e)]['extend'](_0x5c3f6d);}));function _0x59ad(){var _0x4f5aa8=['SetDimensionOutlineCollapsedCommand','AddDimensionOutlineCommand','getSheetId','_worksheet','215649yCwUUY','130HKFNid','3CemWvW','DimensionOutlineErrorReason','_commandService','4587402AUdhao','UniverSheetsFacade','addColumnOutline','18VHtZZv','77540mTzzzr','removeDimensionOutline','FWorksheet','FEnum','syncExecuteCommand','2122180RqulFk','ClearDimensionOutlinesCommand','function','4502048YXkOVP','addRowOutline','DimensionOutlineAxis','_workbook','extend','getDimensionOutlines','@univerjs/core/facade','UniverCoreFacade','_addDimensionOutline','getUnitId','@univerjs-pro/sheets-outline','getOutlines','clearDimensionOutlines','182204DsEvjd','287343fzHspm','axis','_injector','@univerjs/sheets/facade'];_0x59ad=function(){return _0x4f5aa8;};return _0x59ad();}
|