@univerjs-pro/sheets-outline 1.0.0-beta.1 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x54d8(){var _0xb15904=['getUnitId','get','SheetsOutlineModel','axis','1703184kgWuzN','1482440tiOAFv','SetDimensionOutlineCollapsedCommand','clearDimensionOutlines','getSheetId','addColumnOutline','_worksheet','DimensionOutlineAxis','syncExecuteCommand','3862660bKfjtZ','removeDimensionOutline','3HFkJPT','DimensionOutlineErrorReason','AddDimensionOutlineCommand','498UtKCDa','FWorksheet','_commandService','_injector','ROW','20amsSjJ','filter','539312HLBodo','extend','47250bDhwbK','getOutlines','1683968FvMnFc','FEnum','ClearDimensionOutlinesCommand','addRowOutline','144TVeyNv','_workbook','154315QgPQvb','_addDimensionOutline','getDimensionOutlines'];_0x54d8=function(){return _0xb15904;};return _0x54d8();}var _0x18454d=_0x4488;(function(_0xbd0ba5,_0x10e91b){var _0x2a7dad=_0x4488,_0x364a3b=_0xbd0ba5();while(!![]){try{var _0x258b48=parseInt(_0x2a7dad(0xae))/0x1+-parseInt(_0x2a7dad(0xb5))/0x2+-parseInt(_0x2a7dad(0xc0))/0x3*(-parseInt(_0x2a7dad(0xb6))/0x4)+parseInt(_0x2a7dad(0xbe))/0x5+-parseInt(_0x2a7dad(0xc3))/0x6*(parseInt(_0x2a7dad(0xcc))/0x7)+-parseInt(_0x2a7dad(0xca))/0x8*(-parseInt(_0x2a7dad(0xac))/0x9)+parseInt(_0x2a7dad(0xc8))/0xa*(-parseInt(_0x2a7dad(0xce))/0xb);if(_0x258b48===_0x10e91b)break;else _0x364a3b['push'](_0x364a3b['shift']());}catch(_0x157e32){_0x364a3b['push'](_0x364a3b['shift']());}}}(_0x54d8,0xa0a8f));let e=require('@univerjs-pro/sheets-outline'),t=require('@univerjs/core/facade'),n=require('@univerjs/sheets/facade');var r=class extends t[_0x18454d(0xcf)]{get[_0x18454d(0xbc)](){var _0x3de1fb=_0x18454d;return e[_0x3de1fb(0xbc)];}get[_0x18454d(0xc1)](){var _0x2d2b03=_0x18454d;return e[_0x2d2b03(0xc1)];}};t['FEnum']['extend'](r);var i=class extends n[_0x18454d(0xc4)]{[_0x18454d(0xab)](_0x2030c1,_0x10c1ed){var _0x445f6a=_0x18454d;return this[_0x445f6a(0xaf)](e[_0x445f6a(0xbc)][_0x445f6a(0xc7)],_0x2030c1,_0x10c1ed);}[_0x18454d(0xba)](_0x3bb16b,_0x1b7712){var _0xa2560d=_0x18454d;return this[_0xa2560d(0xaf)](e[_0xa2560d(0xbc)]['COLUMN'],_0x3bb16b,_0x1b7712);}[_0x18454d(0xbf)](_0x1a3bd1){var _0x298ed9=_0x18454d;return this[_0x298ed9(0xc5)][_0x298ed9(0xbd)](e['RemoveDimensionOutlineCommand']['id'],{'unitId':this[_0x298ed9(0xad)][_0x298ed9(0xb1)](),'subUnitId':this[_0x298ed9(0xbb)]['getSheetId'](),'outlineId':_0x1a3bd1}),this;}['setDimensionOutlineCollapsed'](_0x5b2cbb,_0x90b91a){var _0x2a272a=_0x18454d;return this[_0x2a272a(0xc5)][_0x2a272a(0xbd)](e[_0x2a272a(0xb7)]['id'],{'unitId':this[_0x2a272a(0xad)][_0x2a272a(0xb1)](),'subUnitId':this[_0x2a272a(0xbb)][_0x2a272a(0xb9)](),'outlineId':_0x5b2cbb,'collapsed':_0x90b91a}),this;}[_0x18454d(0xb8)](_0xa14c90,_0x1a4821,_0xd06e46){var _0x40d2d7=_0x18454d;return this['_commandService'][_0x40d2d7(0xbd)](e[_0x40d2d7(0xd0)]['id'],{'unitId':this[_0x40d2d7(0xad)][_0x40d2d7(0xb1)](),'subUnitId':this[_0x40d2d7(0xbb)][_0x40d2d7(0xb9)](),'axis':_0xa14c90,'start':_0x1a4821,'end':_0xd06e46}),this;}[_0x18454d(0xb0)](_0x2aa4cb){var _0x3db1a6=_0x18454d;let _0x210615=this[_0x3db1a6(0xc6)][_0x3db1a6(0xb2)](e[_0x3db1a6(0xb3)])[_0x3db1a6(0xcd)](this[_0x3db1a6(0xad)][_0x3db1a6(0xb1)](),this[_0x3db1a6(0xbb)][_0x3db1a6(0xb9)]());return _0x2aa4cb?_0x210615[_0x3db1a6(0xc9)](_0x24a385=>_0x24a385[_0x3db1a6(0xb4)]===_0x2aa4cb):_0x210615;}[_0x18454d(0xaf)](_0x1cce35,_0x4f5597,_0x4db64e){var _0x11c29f=_0x18454d;return this[_0x11c29f(0xc5)]['syncExecuteCommand'](e[_0x11c29f(0xc2)]['id'],{'unitId':this[_0x11c29f(0xad)][_0x11c29f(0xb1)](),'subUnitId':this[_0x11c29f(0xbb)]['getSheetId'](),'axis':_0x1cce35,'start':_0x4f5597,'end':_0x4f5597+_0x4db64e-0x1}),this;}};function _0x4488(_0xcb7888,_0x33cb36){_0xcb7888=_0xcb7888-0xab;var _0x54d875=_0x54d8();var _0x448881=_0x54d875[_0xcb7888];return _0x448881;}n[_0x18454d(0xc4)][_0x18454d(0xcb)](i);
1
+ function _0x59b1(_0x1c881c,_0x3a1b44){_0x1c881c=_0x1c881c-0xf0;var _0x572aa9=_0x572a();var _0x59b19a=_0x572aa9[_0x1c881c];return _0x59b19a;}var _0x340e08=_0x59b1;(function(_0x42017b,_0x2ebfdc){var _0x395f9e=_0x59b1,_0x1d7fbc=_0x42017b();while(!![]){try{var _0x3b715b=parseInt(_0x395f9e(0x112))/0x1+parseInt(_0x395f9e(0xf8))/0x2*(parseInt(_0x395f9e(0xf4))/0x3)+-parseInt(_0x395f9e(0x109))/0x4+parseInt(_0x395f9e(0x110))/0x5+-parseInt(_0x395f9e(0x107))/0x6*(parseInt(_0x395f9e(0x105))/0x7)+parseInt(_0x395f9e(0xf5))/0x8*(-parseInt(_0x395f9e(0xfa))/0x9)+parseInt(_0x395f9e(0x10e))/0xa;if(_0x3b715b===_0x2ebfdc)break;else _0x1d7fbc['push'](_0x1d7fbc['shift']());}catch(_0x576f04){_0x1d7fbc['push'](_0x1d7fbc['shift']());}}}(_0x572a,0x4baf5));let e=require('@univerjs-pro/sheets-outline'),t=require('@univerjs/core/facade'),n=require('@univerjs/sheets/facade');var r=class extends t[_0x340e08(0x106)]{get[_0x340e08(0x10f)](){var _0x3abfd7=_0x340e08;return e[_0x3abfd7(0x10f)];}get[_0x340e08(0x101)](){var _0x3426d2=_0x340e08;return e[_0x3426d2(0x101)];}};function _0x572a(){var _0x49381e=['119601JophcR','FWorksheet','_commandService','SetDimensionOutlineCollapsedCommand','getUnitId','RemoveDimensionOutlineCommand','_worksheet','DimensionOutlineErrorReason','filter','syncExecuteCommand','extend','10185QNzouk','FEnum','1068HlHckR','_workbook','2367296zjIhtp','SheetsOutlineModel','addRowOutline','_addDimensionOutline','_injector','3576650TUiQaK','DimensionOutlineAxis','1789190RmspoB','AddDimensionOutlineCommand','365648PdfSSq','ROW','getDimensionOutlines','axis','getSheetId','addColumnOutline','537Hvatvb','264wxYEZs','setDimensionOutlineCollapsed','getOutlines','5790LRweBp','removeDimensionOutline'];_0x572a=function(){return _0x49381e;};return _0x572a();}t[_0x340e08(0x106)][_0x340e08(0x104)](r);var i=class extends n[_0x340e08(0xfb)]{[_0x340e08(0x10b)](_0x1ae8cc,_0x5b80e3){var _0x1f29ae=_0x340e08;return this['_addDimensionOutline'](e[_0x1f29ae(0x10f)][_0x1f29ae(0x113)],_0x1ae8cc,_0x5b80e3);}[_0x340e08(0xf3)](_0xd21878,_0x42dada){var _0x23120b=_0x340e08;return this[_0x23120b(0x10c)](e[_0x23120b(0x10f)]['COLUMN'],_0xd21878,_0x42dada);}[_0x340e08(0xf9)](_0x43b258){var _0x50f3ea=_0x340e08;return this[_0x50f3ea(0xfc)]['syncExecuteCommand'](e[_0x50f3ea(0xff)]['id'],{'unitId':this[_0x50f3ea(0x108)][_0x50f3ea(0xfe)](),'subUnitId':this[_0x50f3ea(0x100)][_0x50f3ea(0xf2)](),'outlineId':_0x43b258}),this;}[_0x340e08(0xf6)](_0x18117e,_0x2b75b5){var _0x36f669=_0x340e08;return this[_0x36f669(0xfc)][_0x36f669(0x103)](e[_0x36f669(0xfd)]['id'],{'unitId':this[_0x36f669(0x108)][_0x36f669(0xfe)](),'subUnitId':this[_0x36f669(0x100)][_0x36f669(0xf2)](),'outlineId':_0x18117e,'collapsed':_0x2b75b5}),this;}['clearDimensionOutlines'](_0x274973,_0x3ed4d5,_0x694af2){var _0x3e9c53=_0x340e08;return this['_commandService']['syncExecuteCommand'](e['ClearDimensionOutlinesCommand']['id'],{'unitId':this['_workbook'][_0x3e9c53(0xfe)](),'subUnitId':this[_0x3e9c53(0x100)][_0x3e9c53(0xf2)](),'axis':_0x274973,'start':_0x3ed4d5,'end':_0x694af2}),this;}[_0x340e08(0xf0)](_0x302df3){var _0x334d82=_0x340e08;let _0x292af6=this[_0x334d82(0x10d)]['get'](e[_0x334d82(0x10a)])[_0x334d82(0xf7)](this[_0x334d82(0x108)]['getUnitId'](),this['_worksheet']['getSheetId']());return _0x302df3?_0x292af6[_0x334d82(0x102)](_0x4420d4=>_0x4420d4[_0x334d82(0xf1)]===_0x302df3):_0x292af6;}[_0x340e08(0x10c)](_0x2763e3,_0x204e70,_0x5506fd){var _0x18c137=_0x340e08;return this[_0x18c137(0xfc)][_0x18c137(0x103)](e[_0x18c137(0x111)]['id'],{'unitId':this['_workbook'][_0x18c137(0xfe)](),'subUnitId':this[_0x18c137(0x100)]['getSheetId'](),'axis':_0x2763e3,'start':_0x204e70,'end':_0x204e70+_0x5506fd-0x1}),this;}};n[_0x340e08(0xfb)][_0x340e08(0x104)](i);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0xee3f84=_0x155a;(function(_0x3a3d35,_0x3777d7){const _0x18c5b0=_0x155a,_0xc8401=_0x3a3d35();while(!![]){try{const _0x250a90=-parseInt(_0x18c5b0(0x1a1))/0x1*(-parseInt(_0x18c5b0(0x139))/0x2)+parseInt(_0x18c5b0(0x1a3))/0x3+parseInt(_0x18c5b0(0x11c))/0x4+-parseInt(_0x18c5b0(0x185))/0x5*(parseInt(_0x18c5b0(0x116))/0x6)+-parseInt(_0x18c5b0(0x1cb))/0x7+parseInt(_0x18c5b0(0x132))/0x8*(parseInt(_0x18c5b0(0x1d3))/0x9)+parseInt(_0x18c5b0(0x137))/0xa;if(_0x250a90===_0x3777d7)break;else _0xc8401['push'](_0xc8401['shift']());}catch(_0x1f20ad){_0xc8401['push'](_0xc8401['shift']());}}}(_0x267e,0xa94b7),Object[_0xee3f84(0x1a7)](exports,Symbol[_0xee3f84(0x17f)],{'value':'Module'}));let e=require('@univerjs/core'),t=require('@univerjs/sheets'),n=require('rxjs'),r=require('rxjs/operators'),i=require('@univerjs-pro/license'),a=function(_0x17c383){const _0x7accbe=_0xee3f84;return _0x17c383[_0x7accbe(0x156)]='row',_0x17c383[_0x7accbe(0x115)]=_0x7accbe(0x1cd),_0x17c383;}({}),o=function(_0x570303){const _0x9ccfbb=_0xee3f84;return _0x570303[_0x9ccfbb(0x159)]='invalid-range',_0x570303[_0x9ccfbb(0x138)]='out-of-bounds',_0x570303[_0x9ccfbb(0x17e)]=_0x9ccfbb(0x1a4),_0x570303['MAX_DEPTH']=_0x9ccfbb(0x1a6),_0x570303[_0x9ccfbb(0x1ad)]='move-splits-outline',_0x570303['CLEAR_RANGE_NOT_CONTAIN_OUTLINE']=_0x9ccfbb(0x12a),_0x570303[_0x9ccfbb(0x106)]=_0x9ccfbb(0x189),_0x570303;}({});var s=class extends Error{constructor(_0x2baab4,_0x9f24f7,_0x781a74){const _0x8a3df4=_0xee3f84;super(_0x9f24f7),this[_0x8a3df4(0x1c3)]=_0x2baab4,this[_0x8a3df4(0x12f)]=_0x781a74,this[_0x8a3df4(0x15d)]='DimensionOutlineError';}};function c(_0x40e140){const _0x59e1a4=_0xee3f84;return _0x40e140 instanceof s?_0x40e140[_0x59e1a4(0x1c3)]:_0x40e140 instanceof Error?_0x40e140['message']['includes'](_0x59e1a4(0x1d5))?_0x59e1a4(0x1c0):_0x40e140[_0x59e1a4(0x18a)][_0x59e1a4(0x1b2)](_0x59e1a4(0x146))?_0x59e1a4(0x1a6):_0x40e140['message'][_0x59e1a4(0x1b2)]('Crossing')?_0x59e1a4(0x1a4):_0x40e140[_0x59e1a4(0x18a)][_0x59e1a4(0x1b2)]('range')?_0x59e1a4(0x19d):_0x59e1a4(0x189):_0x59e1a4(0x189);}function l(_0x20b274){const _0x47d4a9=_0xee3f84;return _0x20b274 instanceof s?_0x20b274[_0x47d4a9(0x12f)]:void 0x0;}function _0x267e(){const _0x21576b=['sheets-outline.config','hasDimensionOutlineViewPermission','permissionPointUpdate$','restoreOutlines','9686474DZGXgt','error$','column','add','registerCommand','UniverSheetsPlugin','move','axis','145449djitqM','_sheetInterceptorService','split\x20dimension\x20outline','dimension-outline-','collapsed','RemoveDimensionOutlineCommand','start','serialize','SetDimensionOutlineCollapsedCommand','sheet.mutation.clear-dimension-outlines','outlineList','Subject','UNKNOWN','_outlines','COMMAND','version','_getCommandScope','function','SheetPermissionCheckController','asObservable','DimensionOutlineAxis','filter','pipe','buildDimensionOutlineTree','type','min','destinationIndex','COLUMN','325938zKZJaO','Plugin','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','RemoveColCommand','end','InsertRowCommand','2078924pKARkx','UniverLicensePlugin','_commandService','registerPluginResource','_error$','maxIndex','SheetInterceptorService','count','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','valid','IUndoRedoService','deserialize','forEach','join','clear-range-not-contain-outline','RemoveRowCommand','SHEET_OUTLINE_PLUGIN','transformOutlinesByMove','redos','outlineId','IResourceManagerService','Move\x20would\x20split\x20dimension\x20outline:\x20','472BYDNru','out-of-bounds','maxDepth','complete','pushUndoRedo','9281970MiQDUT','OUT_OF_BOUNDS','4QaGWqr','debounceTime','fromRange','from','IUniverInstanceService','UniverSheetsOutlinePlugin','WorkbookViewPermission','_configService','SheetsOutlineErrorService','emit','object','change$','params','depth','_sheetsOutlineErrorService','sourceEnd','getSheetCommandTarget','MoveRowsCommand','clear','permissionCheckWithoutRange','preRedos','_ensureUnitOutlines','UNIVER_SHEET','setOutlines','canAddDimensionOutline','setConfig','DependentOn','generateRandomId','sort','ROW','_config','sheet.command.clear-dimension-outlines','INVALID_RANGE','_initRegisterCommand','getUnitId','Inject','name','pop','getActiveSheet','delete','DimensionOutlineErrorReason','TransformDimensionOutlinesMutation','split','IConfigService','getUnit','prototype','ICommandService','getDimensionOutlineViewPermission$','row','outline','preUndos','sheet.mutation.transform-dimension-outlines','startWith','localeCompare','SetColHiddenMutation','range','mergedOutlines','getUnitOutlines','Invalid\x20dimension\x20outline\x20mutation','sequenceExecute','toRange','getCurrentUnitOfType','max','interceptCommand','length','pluginName','result','getColumnCount','disposeWithMe','CROSSING','toStringTag','endRow','CommandType','_change$','SetRowHiddenMutation','sourceStart','50SwwFQY','getSheetBySheetId','transformOutlinesByInsert','some','unknown','message','_injector','set','Invalid\x20dimension\x20outline\x20move\x20source\x20range','find','map','AddDimensionOutlineMutation','sheet.mutation.add-dimension-outline','InsertColCommand','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','push','get','entries','undos','SheetsOutlineModel','insert','has','MoveColsCommand','sheet.command.add-dimension-outline','invalid-range','index','symbol','_sheetsOutlineModel','64093rBZnKG','SetRowVisibleMutation','272490GcVRSx','crossing','startColumn','max-depth','defineProperty','MUTATION','Disposable','string','UniverInstanceType','Injector','MOVE_SPLITS_OUTLINE','merge','unitId','_univerInstanceService','getOutlines','includes','next','startRow','dispose','endColumn','@univerjs-pro/sheets-outline','_initResource','values','removeUnit','subUnitId','ClearDimensionOutlinesMutation','getRowCount','SetColVisibleMutation','_resourceManagerService','move-splits-outline','call','IPermissionService','reason','getSheetId','sheet.mutation.set-dimension-outline-collapsed','offset'];_0x267e=function(){return _0x21576b;};return _0x267e();}const u=0x2**0x35-0x1;function d(_0x214080,_0x46760f){const _0x13efe0=_0xee3f84;return _0x214080['unitId']===_0x46760f[_0x13efe0(0x1af)]&&_0x214080[_0x13efe0(0x1bb)]===_0x46760f[_0x13efe0(0x1bb)]&&_0x214080['axis']===_0x46760f[_0x13efe0(0x1d2)];}function f(_0x1ca278,_0x54c8e4={}){const _0x555ad3=_0xee3f84;let _0x1d884d=_0x54c8e4[_0x555ad3(0x134)]??0x8,_0x4093ff=new Map();for(let _0x4fc3ed of _0x1ca278){let _0x2ae0ee=_0x4fc3ed['unitId']+':'+_0x4fc3ed[_0x555ad3(0x1bb)]+':'+_0x4fc3ed[_0x555ad3(0x1d2)],_0x276ffc=_0x4093ff[_0x555ad3(0x195)](_0x2ae0ee);_0x276ffc?_0x276ffc[_0x555ad3(0x194)](_0x4fc3ed):_0x4093ff[_0x555ad3(0x18c)](_0x2ae0ee,[_0x4fc3ed]);}let _0x42153=[];for(let _0xba70a5 of _0x4093ff['values']()){let _0x1c0771=[..._0xba70a5][_0x555ad3(0x155)](S),_0x1da94f=[];for(let _0xd740fd of _0x1c0771){for(se(_0xd740fd);_0x1da94f[_0x555ad3(0x179)]>0x0&&_0xd740fd[_0x555ad3(0x1d9)]>_0x1da94f[_0x1da94f[_0x555ad3(0x179)]-0x1][_0x555ad3(0x11a)];)_0x1da94f[_0x555ad3(0x15e)]();let _0x4c77c5=_0x1da94f[_0x1da94f[_0x555ad3(0x179)]-0x1];if(_0x4c77c5&&_0xd740fd[_0x555ad3(0x11a)]>_0x4c77c5[_0x555ad3(0x11a)])throw new s(_0x555ad3(0x1a4),_0x555ad3(0x193),_0xd740fd['id']);let _0x1027c1=_0x4c77c5?_0x4c77c5[_0x555ad3(0x146)]+0x1:0x1;if(_0x1027c1>_0x1d884d)throw new s(_0x555ad3(0x1a6),_0x555ad3(0x124)+_0x1d884d,_0xd740fd['id']);let _0x16dc17={..._0xd740fd,'depth':_0x1027c1,'parentId':_0x4c77c5==null?void 0x0:_0x4c77c5['id'],'anchor':_0xd740fd[_0x555ad3(0x11a)],'children':[]};_0x4c77c5?_0x4c77c5['children'][_0x555ad3(0x194)](_0x16dc17):_0x42153[_0x555ad3(0x194)](_0x16dc17),_0x1da94f['push'](_0x16dc17);}}return _0x42153;}function p(_0x55b131,_0x33eca2,_0x346c49={}){const _0x843886=_0xee3f84;if(_0x33eca2[_0x843886(0x1d9)]<0x0||_0x33eca2[_0x843886(0x1d9)]>_0x33eca2[_0x843886(0x11a)])return{'valid':!0x1,'reason':_0x843886(0x19d)};if(_0x346c49[_0x843886(0x121)]!=null&&_0x33eca2['end']>=_0x346c49['maxIndex'])return{'valid':!0x1,'reason':_0x843886(0x133)};let _0x4bfe0b=_0x55b131[_0x843886(0x10f)](_0x4fc7f1=>d(_0x4fc7f1,_0x33eca2));for(let _0x27a9c5 of _0x4bfe0b)if(C(_0x27a9c5,_0x33eca2))return{'valid':!0x1,'reason':'crossing'};try{f([..._0x55b131,_0x33eca2],_0x346c49);}catch(_0x164f27){let _0x5e2f6e=c(_0x164f27);return _0x5e2f6e===_0x843886(0x1a6)?{'valid':!0x1,'reason':_0x843886(0x1a6)}:_0x5e2f6e===_0x843886(0x19d)?{'valid':!0x1,'reason':_0x843886(0x19d)}:{'valid':!0x1,'reason':_0x843886(0x1a4)};}return{'valid':!0x0};}function m(_0x23443e,_0x1642f6,_0x40798f={}){const _0x16dac0=_0xee3f84;let _0xd83175=p(_0x23443e,_0x1642f6,_0x40798f);if(!_0xd83175[_0x16dac0(0x125)])throw Error(_0xd83175['reason']??'invalid-dimension-outline');return[..._0x23443e,_0x1642f6];}function ee(_0x158a5c,_0x1841d5){const _0x14fccf=_0xee3f84;let _0x51ee87=_0x1841d5[_0x14fccf(0x1d9)],_0x3ffbd2=_0x1841d5[_0x14fccf(0x11a)],_0x122b3c=[],_0x376153=!0x0;for(;_0x376153;){_0x376153=!0x1;for(let _0x35482d of _0x158a5c)_0x122b3c[_0x14fccf(0x1b2)](_0x35482d)||!d(_0x35482d,_0x1841d5)||!ae(_0x35482d[_0x14fccf(0x1d9)],_0x35482d['end'],_0x51ee87,_0x3ffbd2)||(_0x122b3c['push'](_0x35482d),_0x51ee87=Math['min'](_0x51ee87,_0x35482d[_0x14fccf(0x1d9)]),_0x3ffbd2=Math[_0x14fccf(0x177)](_0x3ffbd2,_0x35482d[_0x14fccf(0x11a)]),_0x376153=!0x0);}if(_0x122b3c[_0x14fccf(0x179)]===0x0)return null;let [_0x1bbf5a]=[..._0x122b3c][_0x14fccf(0x155)](S);return{'mergedOutline':{..._0x1bbf5a,'start':_0x51ee87,'end':_0x3ffbd2},'mergedOutlines':_0x122b3c};}function h(_0x2f25c9,_0x3008a8){const _0x1732e0=_0xee3f84;return _0x2f25c9[_0x1732e0(0x10f)](_0x516930=>!d(_0x516930,_0x3008a8)||!(_0x516930[_0x1732e0(0x1d9)]>=_0x3008a8[_0x1732e0(0x1d9)]&&_0x516930[_0x1732e0(0x11a)]<=_0x3008a8['end']));}function g(_0x356b5b,_0x47188c,_0x4cdb6c,_0x5bf6d2){const _0x441df1=_0xee3f84;return _(_0x356b5b[_0x441df1(0x10f)](_0x26731c=>_0x26731c[_0x441df1(0x1af)]===_0x47188c&&_0x26731c[_0x441df1(0x1bb)]===_0x4cdb6c&&_0x26731c['axis']===_0x5bf6d2&&_0x26731c['collapsed'])[_0x441df1(0x18f)](_0x4127f5=>({'start':_0x4127f5[_0x441df1(0x1d9)],'end':_0x4127f5[_0x441df1(0x11a)]})));}function _(_0x550f90){const _0x4e71d7=_0xee3f84;if(_0x550f90[_0x4e71d7(0x179)]===0x0)return[];let _0x58df87=[..._0x550f90][_0x4e71d7(0x155)]((_0x16081a,_0x58a9f9)=>_0x16081a[_0x4e71d7(0x1d9)]-_0x58a9f9['start']||_0x16081a[_0x4e71d7(0x11a)]-_0x58a9f9[_0x4e71d7(0x11a)]),_0x323ac1=[];for(let _0x2d2c5f of _0x58df87){let _0x4dd05c=_0x323ac1[_0x323ac1[_0x4e71d7(0x179)]-0x1];!_0x4dd05c||_0x2d2c5f['start']>_0x4dd05c[_0x4e71d7(0x11a)]+0x1?_0x323ac1['push']({..._0x2d2c5f}):_0x4dd05c[_0x4e71d7(0x11a)]=Math[_0x4e71d7(0x177)](_0x4dd05c['end'],_0x2d2c5f[_0x4e71d7(0x11a)]);}return _0x323ac1;}function v(_0x18a427,_0x207329){const _0x2f873c=_0xee3f84;return _0x207329[_0x2f873c(0x123)]<=0x0?_0x18a427:x(_0x18a427[_0x2f873c(0x18f)](_0x2e0ab1=>d(_0x2e0ab1,_0x207329)?_0x207329[_0x2f873c(0x19e)]<=_0x2e0ab1['start']?{..._0x2e0ab1,'start':_0x2e0ab1['start']+_0x207329[_0x2f873c(0x123)],'end':_0x2e0ab1[_0x2f873c(0x11a)]+_0x207329['count']}:_0x2e0ab1[_0x2f873c(0x1d9)]<_0x207329[_0x2f873c(0x19e)]&&_0x207329[_0x2f873c(0x19e)]<=_0x2e0ab1[_0x2f873c(0x11a)]?{..._0x2e0ab1,'end':_0x2e0ab1[_0x2f873c(0x11a)]+_0x207329[_0x2f873c(0x123)]}:_0x2e0ab1:_0x2e0ab1));}function y(_0x5dc791,_0x48c522){const _0x24425d=_0xee3f84;if(_0x48c522[_0x24425d(0x1d9)]>_0x48c522[_0x24425d(0x11a)])return _0x5dc791;let _0x3cf875=_0x48c522['end']-_0x48c522['start']+0x1,_0x40773d=[];for(let _0x2e3f78 of _0x5dc791){if(!d(_0x2e3f78,_0x48c522)){_0x40773d['push'](_0x2e3f78);continue;}if(_0x2e3f78[_0x24425d(0x11a)]<_0x48c522[_0x24425d(0x1d9)]){_0x40773d[_0x24425d(0x194)](_0x2e3f78);continue;}if(_0x2e3f78['start']>_0x48c522[_0x24425d(0x11a)]){_0x40773d['push']({..._0x2e3f78,'start':_0x2e3f78['start']-_0x3cf875,'end':_0x2e3f78['end']-_0x3cf875});continue;}let _0x5914db=Math['max'](_0x2e3f78[_0x24425d(0x1d9)],_0x48c522['start']),_0x1a1693=Math['min'](_0x2e3f78[_0x24425d(0x11a)],_0x48c522[_0x24425d(0x11a)]),_0x9809b5=Math[_0x24425d(0x177)](0x0,_0x1a1693-_0x5914db+0x1),_0x18b9c8=_0x2e3f78[_0x24425d(0x11a)]-_0x2e3f78['start']+0x1-_0x9809b5;if(_0x18b9c8<=0x0)continue;let _0x3c7fa7=_0x2e3f78[_0x24425d(0x1d9)]<_0x48c522['start']?_0x2e3f78[_0x24425d(0x1d9)]:_0x48c522[_0x24425d(0x1d9)];_0x40773d[_0x24425d(0x194)]({..._0x2e3f78,'start':_0x3c7fa7,'end':_0x3c7fa7+_0x18b9c8-0x1});}return x(_0x40773d);}function b(_0x1f97f9,_0x3bf684){const _0x1a94be=_0xee3f84;if(_0x3bf684['sourceStart']>_0x3bf684['sourceEnd'])return _0x1f97f9;let _0x27237c=[];for(let _0x360598 of _0x1f97f9){if(!d(_0x360598,_0x3bf684)){_0x27237c[_0x1a94be(0x194)](_0x360598);continue;}let _0x441823=te(_0x360598,_0x3bf684);if(_0x441823[_0x1a94be(0x112)]===_0x1a94be(0x163))throw new s(_0x1a94be(0x1c0),_0x1a94be(0x131)+_0x360598['id'],_0x360598['id']);_0x27237c[_0x1a94be(0x194)](_0x441823[_0x1a94be(0x16a)]);}return x(_0x27237c);}function te(_0x246ca9,_0x30418f){const _0x56c781=_0xee3f84;let _0x594816=ne(_0x30418f[_0x56c781(0x184)],_0x30418f[_0x56c781(0x148)]+0x1,_0x30418f[_0x56c781(0x114)]),_0x597e78=[],_0x2a02f7={'start':_0x246ca9[_0x56c781(0x1d9)],'end':_0x246ca9['end']+0x1};for(let _0xecffca of _0x594816){let _0x357333=re(_0x2a02f7,_0xecffca[_0x56c781(0x170)]);_0x357333&&_0x597e78[_0x56c781(0x194)]({'start':_0x357333[_0x56c781(0x1d9)]+_0xecffca[_0x56c781(0x1c6)],'end':_0x357333[_0x56c781(0x11a)]+_0xecffca[_0x56c781(0x1c6)]});}let _0x4ff6e6=ie(_0x597e78);return _0x4ff6e6[_0x56c781(0x179)]===0x1?{'type':'ok','outline':{..._0x246ca9,'start':_0x4ff6e6[0x0][_0x56c781(0x1d9)],'end':_0x4ff6e6[0x0][_0x56c781(0x11a)]-0x1}}:{'type':_0x56c781(0x163),'outline':_0x246ca9,'ranges':_0x4ff6e6};}function ne(_0x2825ba,_0x1e13bd,_0x3f90d0){const _0x37c306=_0xee3f84;let _0x38eca7=_0x1e13bd-_0x2825ba;if(_0x38eca7<=0x0)throw Error(_0x37c306(0x18d));return _0x3f90d0>=_0x2825ba&&_0x3f90d0<=_0x1e13bd?[{'range':{'start':0x0,'end':u},'offset':0x0}]:_0x3f90d0<_0x2825ba?[{'range':{'start':0x0,'end':_0x3f90d0},'offset':0x0},{'range':{'start':_0x3f90d0,'end':_0x2825ba},'offset':_0x38eca7},{'range':{'start':_0x2825ba,'end':_0x1e13bd},'offset':_0x3f90d0-_0x2825ba},{'range':{'start':_0x1e13bd,'end':u},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x2825ba},'offset':0x0},{'range':{'start':_0x2825ba,'end':_0x1e13bd},'offset':_0x3f90d0-_0x1e13bd},{'range':{'start':_0x1e13bd,'end':_0x3f90d0},'offset':-_0x38eca7},{'range':{'start':_0x3f90d0,'end':u},'offset':0x0}];}function re(_0x1f0373,_0x1fa7fd){const _0x44f497=_0xee3f84;let _0x20e9b6=Math['max'](_0x1f0373[_0x44f497(0x1d9)],_0x1fa7fd[_0x44f497(0x1d9)]),_0x4f8461=Math['min'](_0x1f0373[_0x44f497(0x11a)],_0x1fa7fd[_0x44f497(0x11a)]);return _0x20e9b6>=_0x4f8461?null:{'start':_0x20e9b6,'end':_0x4f8461};}function ie(_0x35acd9){const _0x3cc2b0=_0xee3f84;if(_0x35acd9[_0x3cc2b0(0x179)]===0x0)return[];let _0x11d2ac=[..._0x35acd9][_0x3cc2b0(0x155)]((_0x325b6f,_0x22cffb)=>_0x325b6f[_0x3cc2b0(0x1d9)]-_0x22cffb[_0x3cc2b0(0x1d9)]||_0x325b6f[_0x3cc2b0(0x11a)]-_0x22cffb[_0x3cc2b0(0x11a)]),_0xb73939=[];for(let _0x3b2cdc of _0x11d2ac){let _0x234709=_0xb73939[_0xb73939[_0x3cc2b0(0x179)]-0x1];!_0x234709||_0x3b2cdc[_0x3cc2b0(0x1d9)]>_0x234709[_0x3cc2b0(0x11a)]?_0xb73939[_0x3cc2b0(0x194)]({..._0x3b2cdc}):_0x234709[_0x3cc2b0(0x11a)]=Math['max'](_0x234709[_0x3cc2b0(0x11a)],_0x3b2cdc['end']);}return _0xb73939;}function ae(_0xfe69e2,_0x24bd98,_0x1df23d,_0x91fcca){return _0x24bd98+0x1===_0x1df23d||_0x91fcca+0x1===_0xfe69e2;}function x(_0x132b63){let _0x32c7be=oe(_0x132b63);return f(_0x32c7be),_0x32c7be;}function oe(_0x3f5fd9){const _0x3fd807=_0xee3f84;let _0x37d90e=new Map();for(let _0x10a210 of _0x3f5fd9){let _0x2ced8e=[_0x10a210[_0x3fd807(0x1af)],_0x10a210[_0x3fd807(0x1bb)],_0x10a210[_0x3fd807(0x1d2)],_0x10a210[_0x3fd807(0x1d9)],_0x10a210[_0x3fd807(0x11a)]][_0x3fd807(0x129)](':'),_0x14e056=_0x37d90e[_0x3fd807(0x195)](_0x2ced8e);if(!_0x14e056){_0x37d90e[_0x3fd807(0x18c)](_0x2ced8e,_0x10a210);continue;}_0x37d90e[_0x3fd807(0x18c)](_0x2ced8e,{..._0x14e056,'collapsed':_0x14e056[_0x3fd807(0x1d7)]||_0x10a210['collapsed']});}return Array[_0x3fd807(0x13c)](_0x37d90e[_0x3fd807(0x1b9)]());}function S(_0xd2963,_0x17581f){const _0x2b9784=_0xee3f84;return _0xd2963[_0x2b9784(0x1af)]===_0x17581f[_0x2b9784(0x1af)]?_0xd2963[_0x2b9784(0x1bb)]===_0x17581f['subUnitId']?_0xd2963[_0x2b9784(0x1d2)]===_0x17581f[_0x2b9784(0x1d2)]?_0xd2963['start']===_0x17581f[_0x2b9784(0x1d9)]?_0x17581f[_0x2b9784(0x11a)]-_0xd2963[_0x2b9784(0x11a)]:_0xd2963[_0x2b9784(0x1d9)]-_0x17581f[_0x2b9784(0x1d9)]:_0xd2963[_0x2b9784(0x1d2)]['localeCompare'](_0x17581f[_0x2b9784(0x1d2)]):_0xd2963[_0x2b9784(0x1bb)]['localeCompare'](_0x17581f['subUnitId']):_0xd2963[_0x2b9784(0x1af)][_0x2b9784(0x16e)](_0x17581f[_0x2b9784(0x1af)]);}function se(_0x246141){const _0x54991d=_0xee3f84;if(_0x246141[_0x54991d(0x1d9)]>_0x246141[_0x54991d(0x11a)])throw new s('invalid-range','Invalid\x20outline\x20range',_0x246141['id']);}function C(_0x1906c2,_0x448d92){const _0xdf5742=_0xee3f84;let _0x2b2430=_0x1906c2[_0xdf5742(0x1d9)]<=_0x448d92[_0xdf5742(0x11a)]&&_0x448d92[_0xdf5742(0x1d9)]<=_0x1906c2[_0xdf5742(0x11a)],_0x2d14e1=_0x1906c2[_0xdf5742(0x1d9)]<=_0x448d92['start']&&_0x448d92[_0xdf5742(0x11a)]<=_0x1906c2[_0xdf5742(0x11a)],_0x2f5da6=_0x448d92[_0xdf5742(0x1d9)]<=_0x1906c2[_0xdf5742(0x1d9)]&&_0x1906c2[_0xdf5742(0x11a)]<=_0x448d92[_0xdf5742(0x11a)];return _0x2b2430&&!_0x2d14e1&&!_0x2f5da6;}function w(_0x543055){'@babel/helpers - typeof';const _0x346ae7=_0xee3f84;return w=typeof Symbol==_0x346ae7(0x10b)&&typeof Symbol['iterator']==_0x346ae7(0x19f)?function(_0x113918){return typeof _0x113918;}:function(_0x260968){const _0x517463=_0x346ae7;return _0x260968&&typeof Symbol==_0x517463(0x10b)&&_0x260968['constructor']===Symbol&&_0x260968!==Symbol[_0x517463(0x166)]?'symbol':typeof _0x260968;},w(_0x543055);}function ce(_0x2926be,_0x3fdebf){const _0x554563=_0xee3f84;if(w(_0x2926be)!=_0x554563(0x143)||!_0x2926be)return _0x2926be;var _0x5db451=_0x2926be[Symbol['toPrimitive']];if(_0x5db451!==void 0x0){var _0x40aba0=_0x5db451[_0x554563(0x1c1)](_0x2926be,_0x3fdebf||'default');if(w(_0x40aba0)!=_0x554563(0x143))return _0x40aba0;throw TypeError(_0x554563(0x118));}return(_0x3fdebf===_0x554563(0x1aa)?String:Number)(_0x2926be);}function le(_0x417341){const _0x2cec1c=_0xee3f84;var _0x413f73=ce(_0x417341,_0x2cec1c(0x1aa));return w(_0x413f73)==_0x2cec1c(0x19f)?_0x413f73:_0x413f73+'';}function T(_0x549168,_0x5b8c8a,_0x296479){const _0x3d1851=_0xee3f84;return(_0x5b8c8a=le(_0x5b8c8a))in _0x549168?Object[_0x3d1851(0x1a7)](_0x549168,_0x5b8c8a,{'value':_0x296479,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x549168[_0x5b8c8a]=_0x296479,_0x549168;}var E=class extends e[_0xee3f84(0x1a9)]{constructor(..._0x21a786){const _0x287f6c=_0xee3f84;super(..._0x21a786),T(this,_0x287f6c(0x107),new Map()),T(this,_0x287f6c(0x182),new n['Subject']()),T(this,_0x287f6c(0x144),this[_0x287f6c(0x182)][_0x287f6c(0x10d)]());}['getOutlines'](_0x302f18,_0x2a6c8d){const _0x46f58a=_0xee3f84;var _0x5e9721;return[...((_0x5e9721=this[_0x46f58a(0x107)]['get'](_0x302f18))==null?void 0x0:_0x5e9721[_0x46f58a(0x195)](_0x2a6c8d))??[]];}[_0xee3f84(0x172)](_0x3b3792){const _0x362c04=_0xee3f84;let _0x3a7009=this[_0x362c04(0x107)]['get'](_0x3b3792),_0x5e2ff9=new Map();return _0x3a7009==null||_0x3a7009[_0x362c04(0x128)]((_0x4a44e4,_0x5609de)=>{const _0x458a3f=_0x362c04;_0x5e2ff9[_0x458a3f(0x18c)](_0x5609de,[..._0x4a44e4]);}),_0x5e2ff9;}[_0xee3f84(0x150)](_0x2f5c9a,_0x37ca6f,_0x429f65){const _0x2c0296=_0xee3f84;this[_0x2c0296(0x14e)](_0x2f5c9a)['set'](_0x37ca6f,[..._0x429f65]),this['_change$'][_0x2c0296(0x1b3)]({'unitId':_0x2f5c9a,'subUnitId':_0x37ca6f});}['removeUnit'](_0x34fd1d){const _0x1bcabe=_0xee3f84;this[_0x1bcabe(0x107)][_0x1bcabe(0x160)](_0x34fd1d),this['_change$'][_0x1bcabe(0x1b3)]({'unitId':_0x34fd1d});}[_0xee3f84(0x1da)](_0x368bf9){const _0x1ce070=_0xee3f84;let _0x48238f=this[_0x1ce070(0x107)][_0x1ce070(0x195)](_0x368bf9),_0x34f92b={};return _0x48238f==null||_0x48238f[_0x1ce070(0x128)]((_0x4517da,_0x4b99af)=>{_0x34f92b[_0x4b99af]={'outlineList':[..._0x4517da]};}),_0x34f92b;}[_0xee3f84(0x127)](_0x2d74c4,_0x37be77){const _0x1253b6=_0xee3f84;let _0x26335f=new Map();Object[_0x1253b6(0x196)](_0x37be77)['forEach'](([_0x491303,_0x270172])=>{const _0x5d6301=_0x1253b6;_0x26335f['set'](_0x491303,[..._0x270172[_0x5d6301(0x104)]??[]]);}),this[_0x1253b6(0x107)][_0x1253b6(0x18c)](_0x2d74c4,_0x26335f),this[_0x1253b6(0x182)]['next']({'unitId':_0x2d74c4});}[_0xee3f84(0x1b5)](){const _0x33bfa9=_0xee3f84;super[_0x33bfa9(0x1b5)](),this[_0x33bfa9(0x107)][_0x33bfa9(0x14b)](),this['_change$'][_0x33bfa9(0x135)]();}[_0xee3f84(0x14e)](_0x14a877){const _0x22d61a=_0xee3f84;let _0x4dba82=this[_0x22d61a(0x107)][_0x22d61a(0x195)](_0x14a877);return _0x4dba82||(_0x4dba82=new Map(),this['_outlines'][_0x22d61a(0x18c)](_0x14a877,_0x4dba82)),_0x4dba82;}},D=class extends e[_0xee3f84(0x1a9)]{constructor(..._0x130fb5){const _0x4ca711=_0xee3f84;super(..._0x130fb5),T(this,_0x4ca711(0x120),new n[(_0x4ca711(0x105))]()),T(this,_0x4ca711(0x1cc),this[_0x4ca711(0x120)][_0x4ca711(0x10d)]());}[_0xee3f84(0x142)](_0x110c40){const _0x3d7336=_0xee3f84;this[_0x3d7336(0x120)]['next'](_0x110c40);}[_0xee3f84(0x1b5)](){const _0x3b52c2=_0xee3f84;super[_0x3b52c2(0x1b5)](),this[_0x3b52c2(0x120)][_0x3b52c2(0x135)]();}};const O={'id':_0xee3f84(0x191),'type':e['CommandType'][_0xee3f84(0x1a8)],'handler':(_0x15cf56,_0x29bff3)=>{const _0x4c9123=_0xee3f84;let _0x40846c=_0x15cf56[_0x4c9123(0x195)](E),_0x50170=_0x40846c[_0x4c9123(0x1b1)](_0x29bff3[_0x4c9123(0x1af)],_0x29bff3[_0x4c9123(0x1bb)]);return _0x40846c[_0x4c9123(0x150)](_0x29bff3['unitId'],_0x29bff3['subUnitId'],m(_0x50170,_0x29bff3[_0x4c9123(0x16a)])),!0x0;}},k={'id':'sheet.mutation.remove-dimension-outline','type':e[_0xee3f84(0x181)]['MUTATION'],'handler':(_0x50023c,_0xdc480d)=>{const _0x25506d=_0xee3f84;let _0x181ca3=_0x50023c[_0x25506d(0x195)](E),_0x1611dd=_0x181ca3['getOutlines'](_0xdc480d[_0x25506d(0x1af)],_0xdc480d[_0x25506d(0x1bb)]);return _0x181ca3[_0x25506d(0x150)](_0xdc480d[_0x25506d(0x1af)],_0xdc480d[_0x25506d(0x1bb)],_0x1611dd['filter'](_0x1c3f17=>_0x1c3f17['id']!==_0xdc480d[_0x25506d(0x12f)])),!0x0;}};function A(_0x36af99,_0x1be34f,_0x3fb0f8){const _0x1cd575=_0xee3f84;let _0x124eb7=de(_0x36af99);return!_0x124eb7||_0x124eb7[_0x1cd575(0x14c)]({'workbookTypes':[t[_0x1cd575(0x13f)]],'worksheetTypes':[t['WorksheetViewPermission']]},_0x1be34f,_0x3fb0f8);}function ue(_0x483333,_0x18f447,_0x2b6397){const _0x4e5230=_0xee3f84;let _0x1ffb49=fe(_0x483333);return((_0x1ffb49==null?void 0x0:_0x1ffb49[_0x4e5230(0x1c9)])??(0x0,n['of'])(null))[_0x4e5230(0x110)]((0x0,r[_0x4e5230(0x13a)])(0x64),(0x0,r[_0x4e5230(0x16d)])(null),(0x0,r['map'])(()=>A(_0x483333,_0x18f447,_0x2b6397)));}function de(_0x47425a){const _0x69396d=_0xee3f84;if(typeof _0x47425a[_0x69396d(0x19a)]==_0x69396d(0x10b)&&!_0x47425a[_0x69396d(0x19a)](t[_0x69396d(0x10c)]))return null;try{return _0x47425a[_0x69396d(0x195)](t[_0x69396d(0x10c)]);}catch{return null;}}function fe(_0x468a2b){const _0x2032ca=_0xee3f84;if(typeof _0x468a2b[_0x2032ca(0x19a)]==_0x2032ca(0x10b)&&!_0x468a2b['has'](e[_0x2032ca(0x1c2)]))return null;try{return _0x468a2b[_0x2032ca(0x195)](e[_0x2032ca(0x1c2)]);}catch{return null;}}const j={'id':_0xee3f84(0x19c),'type':e[_0xee3f84(0x181)][_0xee3f84(0x108)],'handler':(_0x26dbcd,_0x4f744e)=>{const _0x2bab24=_0xee3f84;if(!_0x4f744e)return!0x1;let _0x4966ec=(0x0,t[_0x2bab24(0x149)])(_0x26dbcd[_0x2bab24(0x195)](e[_0x2bab24(0x13d)]),_0x4f744e);if(!_0x4966ec)return!0x1;let {unitId:_0x384b64,subUnitId:_0x4a3651,worksheet:_0x507d1a}=_0x4966ec;if(!A(_0x26dbcd,_0x384b64,_0x4a3651))return!0x1;let _0x883120=_0x26dbcd[_0x2bab24(0x195)](E),_0xe7f129={'id':_0x2bab24(0x1d6)+(0x0,e[_0x2bab24(0x154)])(0x6),'unitId':_0x384b64,'subUnitId':_0x4a3651,'axis':_0x4f744e[_0x2bab24(0x1d2)],'start':_0x4f744e['start'],'end':_0x4f744e[_0x2bab24(0x11a)],'collapsed':!0x1},_0x171bf8=_0x4f744e[_0x2bab24(0x1d2)]===_0x2bab24(0x169)?_0x507d1a[_0x2bab24(0x1bd)]():_0x507d1a[_0x2bab24(0x17c)](),_0x5e7544=_0x883120[_0x2bab24(0x1b1)](_0x384b64,_0x4a3651),_0x413967=ee(_0x5e7544,_0xe7f129),_0x4db0e4=(_0x413967==null?void 0x0:_0x413967[_0x2bab24(0x171)])??[],_0xa901c7=(_0x413967==null?void 0x0:_0x413967['mergedOutline'])??_0xe7f129,_0x412975=p(_0x413967?_0x5e7544[_0x2bab24(0x10f)](_0x1de4d5=>!_0x4db0e4[_0x2bab24(0x188)](_0x4f8b55=>_0x4f8b55['id']===_0x1de4d5['id'])):_0x5e7544,_0xa901c7,{'maxIndex':_0x171bf8});if(!_0x412975[_0x2bab24(0x125)])return _0x26dbcd['get'](D)[_0x2bab24(0x142)]({'reason':_0x412975['reason']??_0x2bab24(0x189),'commandId':j['id'],'unitId':_0x384b64,'subUnitId':_0x4a3651,'axis':_0x4f744e[_0x2bab24(0x1d2)],'outlineId':_0xa901c7['id']}),!0x1;let _0x9ec776=[..._0x4db0e4[_0x2bab24(0x18f)](_0xaa0f15=>({'id':k['id'],'params':{'unitId':_0x384b64,'subUnitId':_0x4a3651,'outlineId':_0xaa0f15['id']}})),{'id':O['id'],'params':{'unitId':_0x384b64,'subUnitId':_0x4a3651,'outline':_0xa901c7}}],_0x218b91=[{'id':k['id'],'params':{'unitId':_0x384b64,'subUnitId':_0x4a3651,'outlineId':_0xa901c7['id']}},..._0x4db0e4[_0x2bab24(0x18f)](_0x303e97=>({'id':O['id'],'params':{'unitId':_0x384b64,'subUnitId':_0x4a3651,'outline':_0x303e97}}))];return(0x0,e[_0x2bab24(0x174)])(_0x9ec776,_0x26dbcd['get'](e[_0x2bab24(0x167)]))[_0x2bab24(0x17b)]?(_0x26dbcd[_0x2bab24(0x195)](e[_0x2bab24(0x126)])[_0x2bab24(0x136)]({'unitID':_0x384b64,'undoMutations':_0x218b91,'redoMutations':_0x9ec776}),!0x0):!0x1;}},M={'id':_0xee3f84(0x1dc),'type':e['CommandType'][_0xee3f84(0x1a8)],'handler':(_0x2de3f0,_0x2311aa)=>{const _0x20cb45=_0xee3f84;let _0x4f81ec=_0x2de3f0[_0x20cb45(0x195)](E),_0x3a00f9=_0x4f81ec[_0x20cb45(0x1b1)](_0x2311aa[_0x20cb45(0x1af)],_0x2311aa[_0x20cb45(0x1bb)]);return _0x4f81ec[_0x20cb45(0x150)](_0x2311aa[_0x20cb45(0x1af)],_0x2311aa[_0x20cb45(0x1bb)],h(_0x3a00f9,_0x2311aa)),!0x0;}},N={'id':_0xee3f84(0x158),'type':e[_0xee3f84(0x181)][_0xee3f84(0x108)],'handler':(_0x1aae4a,_0x1a4260)=>{const _0x151cd2=_0xee3f84;if(!_0x1a4260)return!0x1;let _0x3f7861=(0x0,t['getSheetCommandTarget'])(_0x1aae4a[_0x151cd2(0x195)](e[_0x151cd2(0x13d)]),_0x1a4260);if(!_0x3f7861)return!0x1;let {unitId:_0x526f92,subUnitId:_0x6a3542}=_0x3f7861;if(!A(_0x1aae4a,_0x526f92,_0x6a3542))return!0x1;let _0x46529d={'unitId':_0x526f92,'subUnitId':_0x6a3542,'axis':_0x1a4260[_0x151cd2(0x1d2)],'start':_0x1a4260[_0x151cd2(0x1d9)],'end':_0x1a4260[_0x151cd2(0x11a)]},_0x547246=_0x1aae4a[_0x151cd2(0x195)](E)[_0x151cd2(0x1b1)](_0x526f92,_0x6a3542)[_0x151cd2(0x10f)](_0x10b0c2=>d(_0x10b0c2,_0x46529d)&&_0x10b0c2['start']>=_0x1a4260[_0x151cd2(0x1d9)]&&_0x10b0c2[_0x151cd2(0x11a)]<=_0x1a4260[_0x151cd2(0x11a)]);if(_0x547246[_0x151cd2(0x179)]===0x0)return _0x1aae4a[_0x151cd2(0x195)](D)['emit']({'reason':_0x151cd2(0x12a),'commandId':N['id'],'unitId':_0x526f92,'subUnitId':_0x6a3542,'axis':_0x1a4260[_0x151cd2(0x1d2)]}),!0x1;let _0x4408c4=[{'id':M['id'],'params':{..._0x46529d,'removedOutlineIds':_0x547246[_0x151cd2(0x18f)](_0x1b58e2=>_0x1b58e2['id'])}}],_0xb1e62c=_0x547246['map'](_0x5a87e3=>({'id':O['id'],'params':{'unitId':_0x526f92,'subUnitId':_0x6a3542,'outline':_0x5a87e3}}));return(0x0,e[_0x151cd2(0x174)])(_0x4408c4,_0x1aae4a['get'](e['ICommandService']))[_0x151cd2(0x17b)]?(_0x1aae4a[_0x151cd2(0x195)](e[_0x151cd2(0x126)])['pushUndoRedo']({'unitID':_0x526f92,'undoMutations':_0xb1e62c,'redoMutations':_0x4408c4}),!0x0):!0x1;}},P={'id':'sheet.command.remove-dimension-outline','type':e[_0xee3f84(0x181)][_0xee3f84(0x108)],'handler':(_0x13c409,_0x34b2d9)=>{const _0x33036a=_0xee3f84;if(!_0x34b2d9)return!0x1;let _0x4ea84a=(0x0,t[_0x33036a(0x149)])(_0x13c409[_0x33036a(0x195)](e['IUniverInstanceService']),_0x34b2d9);if(!_0x4ea84a)return!0x1;let {unitId:_0x23ff02,subUnitId:_0x1c03b3}=_0x4ea84a;if(!A(_0x13c409,_0x23ff02,_0x1c03b3))return!0x1;let _0x288abd=_0x13c409[_0x33036a(0x195)](E)[_0x33036a(0x1b1)](_0x23ff02,_0x1c03b3)[_0x33036a(0x18e)](_0x5bde4d=>_0x5bde4d['id']===_0x34b2d9[_0x33036a(0x12f)]);if(!_0x288abd)return!0x1;let _0x39f0d6=[{'id':k['id'],'params':{'unitId':_0x23ff02,'subUnitId':_0x1c03b3,'outlineId':_0x288abd['id'],'outline':_0x288abd}}],_0x2213fc=[{'id':O['id'],'params':{'unitId':_0x23ff02,'subUnitId':_0x1c03b3,'outline':_0x288abd}}];return(0x0,e['sequenceExecute'])(_0x39f0d6,_0x13c409[_0x33036a(0x195)](e[_0x33036a(0x167)]))['result']?(_0x13c409[_0x33036a(0x195)](e[_0x33036a(0x126)])[_0x33036a(0x136)]({'unitID':_0x23ff02,'undoMutations':_0x2213fc,'redoMutations':_0x39f0d6}),!0x0):!0x1;}},F={'id':_0xee3f84(0x1c5),'type':e['CommandType']['MUTATION'],'handler':(_0x3694e6,_0x163c91)=>{const _0x425735=_0xee3f84;let _0x367af2=_0x3694e6[_0x425735(0x195)](E),_0x43e0cb=_0x367af2[_0x425735(0x1b1)](_0x163c91[_0x425735(0x1af)],_0x163c91[_0x425735(0x1bb)]),_0x8c8af3=_0x43e0cb[_0x425735(0x18e)](_0x13f35b=>_0x13f35b['id']===_0x163c91[_0x425735(0x12f)]);return _0x8c8af3&&_0x367af2[_0x425735(0x150)](_0x163c91[_0x425735(0x1af)],_0x163c91[_0x425735(0x1bb)],_0x43e0cb[_0x425735(0x18f)](_0x99e5b9=>_0x99e5b9[_0x425735(0x1af)]!==_0x8c8af3['unitId']||_0x99e5b9['subUnitId']!==_0x8c8af3[_0x425735(0x1bb)]||_0x99e5b9['axis']!==_0x8c8af3[_0x425735(0x1d2)]||_0x99e5b9[_0x425735(0x1d9)]!==_0x8c8af3[_0x425735(0x1d9)]||_0x99e5b9[_0x425735(0x11a)]!==_0x8c8af3[_0x425735(0x11a)]?_0x99e5b9:{..._0x99e5b9,'collapsed':_0x163c91[_0x425735(0x1d7)]})),!0x0;}};function I(_0x5d8601,_0x1c4676,_0xf2b108,_0x4853e3){const _0x88aeb5=_0xee3f84;return _0x5d8601===_0x88aeb5(0x169)?{'startRow':_0x1c4676,'endRow':_0xf2b108,'startColumn':0x0,'endColumn':_0x4853e3['getMaxColumns']()-0x1}:{'startRow':0x0,'endRow':_0x4853e3[_0x88aeb5(0x1bd)]()-0x1,'startColumn':_0x1c4676,'endColumn':_0xf2b108};}function pe(_0x271787){const _0x420257=_0xee3f84;return _0x271787===_0x420257(0x169)?t[_0x420257(0x183)]['id']:t[_0x420257(0x16f)]['id'];}function me(_0x34dcab){const _0x428c3e=_0xee3f84;return _0x34dcab===_0x428c3e(0x169)?t[_0x428c3e(0x1a2)]['id']:t[_0x428c3e(0x1be)]['id'];}function L(_0xb6bb77,_0x5bb121,_0x16e674,_0x4eb063){const _0x3ce477=_0xee3f84;let _0x2cb1f2=_0x5bb121?[I(_0xb6bb77['axis'],_0xb6bb77['start'],_0xb6bb77[_0x3ce477(0x11a)],_0x16e674)]:he(_0xb6bb77,_0x4eb063,_0x16e674),_0x1cc9b0=_0x5bb121?pe(_0xb6bb77[_0x3ce477(0x1d2)]):me(_0xb6bb77['axis']);return[{'id':F['id'],'params':{'unitId':_0xb6bb77[_0x3ce477(0x1af)],'subUnitId':_0xb6bb77[_0x3ce477(0x1bb)],'outlineId':_0xb6bb77['id'],'outline':_0xb6bb77,'collapsed':_0x5bb121}},..._0x2cb1f2[_0x3ce477(0x18f)](_0x4b4c3e=>({'id':_0x1cc9b0,'params':{'unitId':_0xb6bb77[_0x3ce477(0x1af)],'subUnitId':_0xb6bb77[_0x3ce477(0x1bb)],'ranges':[_0x4b4c3e],'dimensionOutlineId':_0xb6bb77['id']}}))];}function he(_0x18f35e,_0x59b6ae,_0x265267){const _0xef79b7=_0xee3f84;let _0x55ccb2=g(_0x59b6ae['map'](_0x14494f=>R(_0x14494f,_0x18f35e)?{..._0x14494f,'collapsed':!0x1}:_0x14494f),_0x18f35e[_0xef79b7(0x1af)],_0x18f35e['subUnitId'],_0x18f35e[_0xef79b7(0x1d2)]);return ge({'start':_0x18f35e[_0xef79b7(0x1d9)],'end':_0x18f35e[_0xef79b7(0x11a)]},_0x55ccb2)[_0xef79b7(0x18f)](_0x37daf5=>I(_0x18f35e[_0xef79b7(0x1d2)],_0x37daf5['start'],_0x37daf5[_0xef79b7(0x11a)],_0x265267));}function R(_0x3b0a09,_0x4f0079){const _0x1f330a=_0xee3f84;return _0x3b0a09[_0x1f330a(0x1af)]===_0x4f0079[_0x1f330a(0x1af)]&&_0x3b0a09[_0x1f330a(0x1bb)]===_0x4f0079['subUnitId']&&_0x3b0a09[_0x1f330a(0x1d2)]===_0x4f0079[_0x1f330a(0x1d2)]&&_0x3b0a09[_0x1f330a(0x1d9)]===_0x4f0079['start']&&_0x3b0a09[_0x1f330a(0x11a)]===_0x4f0079[_0x1f330a(0x11a)];}function ge(_0x5cb86b,_0x12dbc4){const _0x5e42d0=_0xee3f84;let _0x32a874=_0x5cb86b[_0x5e42d0(0x1d9)],_0x5623e6=[];for(let _0x13001d of _0x12dbc4)if(!(_0x13001d['end']<_0x32a874||_0x13001d[_0x5e42d0(0x1d9)]>_0x5cb86b[_0x5e42d0(0x11a)])&&(_0x13001d[_0x5e42d0(0x1d9)]>_0x32a874&&_0x5623e6[_0x5e42d0(0x194)]({'start':_0x32a874,'end':Math[_0x5e42d0(0x113)](_0x13001d[_0x5e42d0(0x1d9)]-0x1,_0x5cb86b[_0x5e42d0(0x11a)])}),_0x32a874=Math[_0x5e42d0(0x177)](_0x32a874,_0x13001d[_0x5e42d0(0x11a)]+0x1),_0x32a874>_0x5cb86b[_0x5e42d0(0x11a)]))break;return _0x32a874<=_0x5cb86b['end']&&_0x5623e6[_0x5e42d0(0x194)]({'start':_0x32a874,'end':_0x5cb86b[_0x5e42d0(0x11a)]}),_0x5623e6;}const z={'id':'sheet.command.set-dimension-outline-collapsed','type':e[_0xee3f84(0x181)][_0xee3f84(0x108)],'handler':(_0x12ac10,_0x39c0fa)=>{const _0x1b0214=_0xee3f84;if(!_0x39c0fa)return!0x1;let _0x494ff6=(0x0,t['getSheetCommandTarget'])(_0x12ac10['get'](e[_0x1b0214(0x13d)]),_0x39c0fa);if(!_0x494ff6)return!0x1;let {unitId:_0xcad7cd,subUnitId:_0x1a0faf,worksheet:_0x2c8186}=_0x494ff6;if(!A(_0x12ac10,_0xcad7cd,_0x1a0faf))return!0x1;let _0x459259=_0x12ac10[_0x1b0214(0x195)](E)[_0x1b0214(0x1b1)](_0xcad7cd,_0x1a0faf),_0x158d71=_0x459259[_0x1b0214(0x18e)](_0x23905f=>_0x23905f['id']===_0x39c0fa[_0x1b0214(0x12f)]);if(!_0x158d71||_0x158d71[_0x1b0214(0x1d7)]===_0x39c0fa['collapsed'])return!0x1;let _0x3ecb18=L(_0x158d71,_0x39c0fa[_0x1b0214(0x1d7)],_0x2c8186,_0x459259),_0x4d1a12=L(_0x158d71,!_0x39c0fa[_0x1b0214(0x1d7)],_0x2c8186,_0x459259);return(0x0,e['sequenceExecute'])(_0x3ecb18,_0x12ac10[_0x1b0214(0x195)](e[_0x1b0214(0x167)]))[_0x1b0214(0x17b)]?(_0x12ac10[_0x1b0214(0x195)](e[_0x1b0214(0x126)])[_0x1b0214(0x136)]({'unitID':_0xcad7cd,'undoMutations':_0x4d1a12,'redoMutations':_0x3ecb18}),!0x0):!0x1;}},B={'id':_0xee3f84(0x16c),'type':e[_0xee3f84(0x181)][_0xee3f84(0x1a8)],'handler':(_0x34ecad,_0x32b6c6)=>{const _0x557f66=_0xee3f84;let _0x423d7c=_0x34ecad[_0x557f66(0x195)](E),_0x2ad4a8=_e(_0x423d7c['getOutlines'](_0x32b6c6['unitId'],_0x32b6c6['subUnitId']),_0x32b6c6);return _0x423d7c[_0x557f66(0x150)](_0x32b6c6[_0x557f66(0x1af)],_0x32b6c6['subUnitId'],_0x2ad4a8),!0x0;}};function _0x155a(_0x1c9344,_0x6a8f69){_0x1c9344=_0x1c9344-0x104;const _0x267ef4=_0x267e();let _0x155aaf=_0x267ef4[_0x1c9344];return _0x155aaf;}function _e(_0x2a3a97,_0x4b5633){const _0x1357f8=_0xee3f84;switch(_0x4b5633[_0x1357f8(0x112)]){case'insert':return _0x4b5633[_0x1357f8(0x1ca)]?ve(_0x2a3a97,_0x4b5633):v(_0x2a3a97,_0x4b5633);case _0x1357f8(0x160):return y(_0x2a3a97,_0x4b5633);case _0x1357f8(0x1d1):return b(_0x2a3a97,_0x4b5633);}}function ve(_0x34e40d,_0x52dc65){const _0x369e38=_0xee3f84;return[..._0x34e40d['filter'](_0x2cc494=>_0x2cc494[_0x369e38(0x1af)]!==_0x52dc65[_0x369e38(0x1af)]||_0x2cc494[_0x369e38(0x1bb)]!==_0x52dc65[_0x369e38(0x1bb)]||_0x2cc494['axis']!==_0x52dc65[_0x369e38(0x1d2)]),..._0x52dc65[_0x369e38(0x1ca)]];}const V=_0xee3f84(0x12c);var ye=_0xee3f84(0x1b7),be='1.0.0-beta.1';const H={};function U(_0xe8a117,_0x5a09d7){return function(_0x10d435,_0x2a198f){_0x5a09d7(_0x10d435,_0x2a198f,_0xe8a117);};}function W(_0x1cd384,_0x447249,_0x264a8b,_0x511920){const _0x6491d=_0xee3f84;var _0x2f0b5a=arguments[_0x6491d(0x179)],_0x571030=_0x2f0b5a<0x3?_0x447249:_0x511920===null?_0x511920=Object['getOwnPropertyDescriptor'](_0x447249,_0x264a8b):_0x511920,_0x34e8eb;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x571030=Reflect['decorate'](_0x1cd384,_0x447249,_0x264a8b,_0x511920);else{for(var _0x10530e=_0x1cd384[_0x6491d(0x179)]-0x1;_0x10530e>=0x0;_0x10530e--)(_0x34e8eb=_0x1cd384[_0x10530e])&&(_0x571030=(_0x2f0b5a<0x3?_0x34e8eb(_0x571030):_0x2f0b5a>0x3?_0x34e8eb(_0x447249,_0x264a8b,_0x571030):_0x34e8eb(_0x447249,_0x264a8b))||_0x571030);}return _0x2f0b5a>0x3&&_0x571030&&Object[_0x6491d(0x1a7)](_0x447249,_0x264a8b,_0x571030),_0x571030;}const G={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let K=class extends e[_0xee3f84(0x1a9)]{constructor(_0x5179c0,_0x3bd1a3,_0x427b5d,_0xc633fd){const _0x4352fb=_0xee3f84;super(),this['_univerInstanceService']=_0x5179c0,this[_0x4352fb(0x1d4)]=_0x3bd1a3,this[_0x4352fb(0x1a0)]=_0x427b5d,this[_0x4352fb(0x147)]=_0xc633fd,this['_initCommandInterceptor']();}['_initCommandInterceptor'](){const _0x2b9f03=_0xee3f84;this['disposeWithMe'](this['_sheetInterceptorService'][_0x2b9f03(0x178)]({'getMutations':_0x9c7372=>xe(_0x9c7372,(_0x523a5c,_0x3c4e5e)=>this[_0x2b9f03(0x1a0)]['getOutlines'](_0x523a5c,_0x3c4e5e),this[_0x2b9f03(0x10a)](_0x9c7372[_0x2b9f03(0x145)]),_0x44829f=>this[_0x2b9f03(0x147)][_0x2b9f03(0x142)](_0x44829f))}));}['_getCommandScope'](_0x19ca50){const _0x5a9bac=_0xee3f84;let _0x1a56f0=_0x19ca50,_0x339852=_0x1a56f0!=null&&_0x1a56f0['unitId']?this[_0x5a9bac(0x1b0)][_0x5a9bac(0x165)](_0x1a56f0[_0x5a9bac(0x1af)],e['UniverInstanceType'][_0x5a9bac(0x14f)]):this[_0x5a9bac(0x1b0)][_0x5a9bac(0x176)](e['UniverInstanceType']['UNIVER_SHEET']);if(!_0x339852)return;let _0x52c55e=_0x1a56f0!=null&&_0x1a56f0[_0x5a9bac(0x1bb)]?_0x339852[_0x5a9bac(0x186)](_0x1a56f0[_0x5a9bac(0x1bb)]):_0x339852[_0x5a9bac(0x15f)]();if(_0x52c55e)return{'unitId':_0x339852[_0x5a9bac(0x15b)](),'subUnitId':_0x52c55e[_0x5a9bac(0x1c4)]()};}};K=W([U(0x0,e[_0xee3f84(0x13d)]),U(0x1,(0x0,e[_0xee3f84(0x15c)])(t[_0xee3f84(0x122)])),U(0x2,(0x0,e[_0xee3f84(0x15c)])(E)),U(0x3,(0x0,e[_0xee3f84(0x15c)])(D))],K);function xe(_0x3378cc,_0x532571,_0x71f7e9,_0x30938b){const _0x4c2bd1=_0xee3f84;let _0x25f326=Ce(_0x3378cc,_0x71f7e9);if(!_0x25f326)return Z();let _0x476d70=_0x532571(_0x25f326[_0x4c2bd1(0x1af)],_0x25f326['subUnitId']);if(!_0x476d70['some'](_0x4a175e=>_0x4a175e[_0x4c2bd1(0x1d2)]===_0x25f326[_0x4c2bd1(0x1d2)]))return Z();Se(_0x476d70,_0x25f326,_0x3378cc['id'],_0x30938b);let _0x4a20f1=we(_0x25f326,_0x476d70);return{'redos':[{'id':B['id'],'params':_0x25f326}],'undos':[{'id':B['id'],'params':_0x4a20f1}],'preRedos':[],'preUndos':[]};}function Se(_0x4339a4,_0x46f644,_0x5e8162,_0x180520){const _0x3d1f95=_0xee3f84;try{switch(_0x46f644[_0x3d1f95(0x112)]){case _0x3d1f95(0x199):v(_0x4339a4,_0x46f644);break;case _0x3d1f95(0x160):y(_0x4339a4,_0x46f644);break;case _0x3d1f95(0x1d1):b(_0x4339a4,_0x46f644);break;}}catch(_0x4bbcae){throw _0x180520==null||_0x180520({'reason':c(_0x4bbcae),'commandId':_0x5e8162,'unitId':_0x46f644[_0x3d1f95(0x1af)],'subUnitId':_0x46f644[_0x3d1f95(0x1bb)],'axis':_0x46f644[_0x3d1f95(0x1d2)],'outlineId':l(_0x4bbcae)}),new e['CustomCommandExecutionError'](_0x4bbcae instanceof Error?_0x4bbcae[_0x3d1f95(0x18a)]:_0x3d1f95(0x173));}}function Ce(_0x1fd5f0,_0x4db5e0){const _0x51d2d1=_0xee3f84;switch(_0x1fd5f0['id']){case t[_0x51d2d1(0x11b)]['id']:return q(_0x1fd5f0[_0x51d2d1(0x145)],_0x51d2d1(0x169),_0x4db5e0);case t[_0x51d2d1(0x192)]['id']:return q(_0x1fd5f0[_0x51d2d1(0x145)],_0x51d2d1(0x1cd),_0x4db5e0);case t[_0x51d2d1(0x12b)]['id']:return J(_0x1fd5f0[_0x51d2d1(0x145)],_0x51d2d1(0x169),_0x4db5e0);case t[_0x51d2d1(0x119)]['id']:return J(_0x1fd5f0[_0x51d2d1(0x145)],'column',_0x4db5e0);case t[_0x51d2d1(0x14a)]['id']:return Y(_0x1fd5f0['params'],_0x51d2d1(0x169),_0x4db5e0);case t[_0x51d2d1(0x19b)]['id']:return Y(_0x1fd5f0[_0x51d2d1(0x145)],_0x51d2d1(0x1cd),_0x4db5e0);default:return null;}}function q(_0x366f09,_0x425c0c,_0x24918b){const _0x476747=_0xee3f84;let _0x3a8a65=X(_0x366f09,_0x24918b);if(!(_0x366f09!=null&&_0x366f09[_0x476747(0x170)])||!_0x3a8a65)return null;let _0xfca55=_0x425c0c===_0x476747(0x169)?_0x366f09[_0x476747(0x170)]['startRow']:_0x366f09[_0x476747(0x170)][_0x476747(0x1a5)],_0x1a176f=_0x425c0c==='row'?_0x366f09[_0x476747(0x170)][_0x476747(0x180)]:_0x366f09[_0x476747(0x170)][_0x476747(0x1b6)];return{..._0x3a8a65,'axis':_0x425c0c,'type':'insert','index':_0xfca55,'count':_0x1a176f-_0xfca55+0x1};}function J(_0x20263b,_0x48f002,_0x17be96){const _0x326862=_0xee3f84;let _0x241cbc=X(_0x20263b,_0x17be96);if(!(_0x20263b!=null&&_0x20263b[_0x326862(0x170)])||!_0x241cbc)return null;let _0x100721=_0x48f002===_0x326862(0x169)?_0x20263b[_0x326862(0x170)][_0x326862(0x1b4)]:_0x20263b[_0x326862(0x170)][_0x326862(0x1a5)],_0x3b5474=_0x48f002==='row'?_0x20263b[_0x326862(0x170)][_0x326862(0x180)]:_0x20263b[_0x326862(0x170)][_0x326862(0x1b6)];return{..._0x241cbc,'axis':_0x48f002,'type':_0x326862(0x160),'start':_0x100721,'end':_0x3b5474};}function Y(_0x2eab6b,_0x4eb77f,_0x34618a){const _0x47c445=_0xee3f84;let _0x94d038=X(_0x2eab6b,_0x34618a);if(!(_0x2eab6b!=null&&_0x2eab6b[_0x47c445(0x13b)])||!_0x2eab6b[_0x47c445(0x175)]||!_0x94d038)return null;let _0x482b34=_0x4eb77f===_0x47c445(0x169)?_0x2eab6b[_0x47c445(0x13b)]['startRow']:_0x2eab6b[_0x47c445(0x13b)][_0x47c445(0x1a5)],_0x4bc446=_0x4eb77f==='row'?_0x2eab6b['fromRange'][_0x47c445(0x180)]:_0x2eab6b[_0x47c445(0x13b)][_0x47c445(0x1b6)],_0x1d6210=_0x4eb77f===_0x47c445(0x169)?_0x2eab6b[_0x47c445(0x175)]['startRow']:_0x2eab6b['toRange']['startColumn'];return{..._0x94d038,'axis':_0x4eb77f,'type':_0x47c445(0x1d1),'sourceStart':_0x482b34,'sourceEnd':_0x4bc446,'destinationIndex':_0x1d6210};}function we(_0x2ff971,_0x1a0e33){const _0x13a05d=_0xee3f84;switch(_0x2ff971[_0x13a05d(0x112)]){case'insert':return{'unitId':_0x2ff971['unitId'],'subUnitId':_0x2ff971['subUnitId'],'axis':_0x2ff971['axis'],'type':_0x13a05d(0x160),'start':_0x2ff971['index'],'end':_0x2ff971['index']+_0x2ff971[_0x13a05d(0x123)]-0x1};case'delete':return{'unitId':_0x2ff971['unitId'],'subUnitId':_0x2ff971[_0x13a05d(0x1bb)],'axis':_0x2ff971[_0x13a05d(0x1d2)],'type':_0x13a05d(0x199),'index':_0x2ff971[_0x13a05d(0x1d9)],'count':_0x2ff971[_0x13a05d(0x11a)]-_0x2ff971[_0x13a05d(0x1d9)]+0x1,'restoreOutlines':_0x1a0e33[_0x13a05d(0x10f)](_0x272e64=>_0x272e64[_0x13a05d(0x1af)]===_0x2ff971[_0x13a05d(0x1af)]&&_0x272e64[_0x13a05d(0x1bb)]===_0x2ff971['subUnitId']&&_0x272e64[_0x13a05d(0x1d2)]===_0x2ff971[_0x13a05d(0x1d2)])};case _0x13a05d(0x1d1):return Te(_0x2ff971);}}function Te(_0xaaf63c){const _0x218af6=_0xee3f84;let _0x5b613a=_0xaaf63c[_0x218af6(0x148)]-_0xaaf63c[_0x218af6(0x184)]+0x1;return _0xaaf63c[_0x218af6(0x114)]>=_0xaaf63c['sourceStart']&&_0xaaf63c[_0x218af6(0x114)]<=_0xaaf63c[_0x218af6(0x148)]+0x1?{..._0xaaf63c}:_0xaaf63c[_0x218af6(0x114)]>_0xaaf63c[_0x218af6(0x148)]+0x1?{..._0xaaf63c,'sourceStart':_0xaaf63c[_0x218af6(0x114)]-_0x5b613a,'sourceEnd':_0xaaf63c[_0x218af6(0x114)]-0x1,'destinationIndex':_0xaaf63c[_0x218af6(0x184)]}:{..._0xaaf63c,'sourceStart':_0xaaf63c[_0x218af6(0x114)],'sourceEnd':_0xaaf63c[_0x218af6(0x114)]+_0x5b613a-0x1,'destinationIndex':_0xaaf63c[_0x218af6(0x148)]+0x1};}function X(_0x4c143f,_0x32d3b2){const _0xa5d252=_0xee3f84;let _0x27e159=(_0x4c143f==null?void 0x0:_0x4c143f[_0xa5d252(0x1af)])??(_0x32d3b2==null?void 0x0:_0x32d3b2[_0xa5d252(0x1af)]),_0x2cc3b1=(_0x4c143f==null?void 0x0:_0x4c143f['subUnitId'])??(_0x32d3b2==null?void 0x0:_0x32d3b2[_0xa5d252(0x1bb)]);return _0x27e159&&_0x2cc3b1?{'unitId':_0x27e159,'subUnitId':_0x2cc3b1}:null;}function Z(){const _0x3a0ab9=_0xee3f84;return{'redos':[...G[_0x3a0ab9(0x12e)]],'undos':[...G[_0x3a0ab9(0x197)]],'preRedos':[...G[_0x3a0ab9(0x14d)]??[]],'preUndos':[...G[_0x3a0ab9(0x16b)]??[]]};}let Q=class extends e['Disposable']{constructor(_0x241910,_0x52a572){const _0x43b6a0=_0xee3f84;super(),this[_0x43b6a0(0x1bf)]=_0x241910,this[_0x43b6a0(0x1a0)]=_0x52a572,this[_0x43b6a0(0x1b8)]();}['_initResource'](){const _0x2df243=_0xee3f84;this[_0x2df243(0x17d)](this['_resourceManagerService'][_0x2df243(0x11f)]({'pluginName':V,'businesses':[e[_0x2df243(0x1ab)][_0x2df243(0x14f)]],'toJson':_0x240f6d=>JSON['stringify'](this['_sheetsOutlineModel'][_0x2df243(0x1da)](_0x240f6d)),'parseJson':_0x3f93a1=>JSON['parse'](_0x3f93a1),'onLoad':(_0x3601c3,_0x182aa2)=>this[_0x2df243(0x1a0)]['deserialize'](_0x3601c3,_0x182aa2),'onUnLoad':_0x30ec7d=>this[_0x2df243(0x1a0)][_0x2df243(0x1ba)](_0x30ec7d)}));}};Q=W([U(0x0,e[_0xee3f84(0x130)]),U(0x1,(0x0,e[_0xee3f84(0x15c)])(E))],Q);let $=class extends e[_0xee3f84(0x117)]{constructor(_0xea1c50=H,_0x3d28a2,_0xd3911b,_0x275280){const _0x21b37c=_0xee3f84;super(),this['_config']=_0xea1c50,this['_injector']=_0x3d28a2,this[_0x21b37c(0x11e)]=_0xd3911b,this[_0x21b37c(0x140)]=_0x275280;let {..._0x282e91}=(0x0,e[_0x21b37c(0x1ae)])({},H,this[_0x21b37c(0x157)]);this[_0x21b37c(0x140)][_0x21b37c(0x152)](_0x21b37c(0x1c7),_0x282e91);}['onStarting'](){const _0x5cd32a=_0xee3f84;this[_0x5cd32a(0x18b)]['add']([E]),this[_0x5cd32a(0x18b)][_0x5cd32a(0x1ce)]([D]),this[_0x5cd32a(0x18b)]['add']([Q]),this[_0x5cd32a(0x18b)][_0x5cd32a(0x1ce)]([K]),this[_0x5cd32a(0x15a)](),this['_injector'][_0x5cd32a(0x195)](E),this[_0x5cd32a(0x18b)][_0x5cd32a(0x195)](D),this['_injector'][_0x5cd32a(0x195)](Q),this[_0x5cd32a(0x18b)][_0x5cd32a(0x195)](K);}[_0xee3f84(0x15a)](){[j,P,z,N]['forEach'](_0x368a0d=>{const _0x452107=_0x155a;this[_0x452107(0x17d)](this[_0x452107(0x11e)][_0x452107(0x1cf)](_0x368a0d));}),[O,k,F,M,B]['forEach'](_0x3aef95=>{const _0x44974e=_0x155a;this[_0x44974e(0x17d)](this[_0x44974e(0x11e)][_0x44974e(0x1cf)](_0x3aef95));});}};T($,_0xee3f84(0x17a),V),T($,'packageName',ye),T($,_0xee3f84(0x109),be),T($,_0xee3f84(0x112),e['UniverInstanceType']['UNIVER_SHEET']),$=W([(0x0,e[_0xee3f84(0x153)])(i[_0xee3f84(0x11d)],t[_0xee3f84(0x1d0)]),U(0x1,(0x0,e['Inject'])(e[_0xee3f84(0x1ac)])),U(0x2,e[_0xee3f84(0x167)]),U(0x3,e[_0xee3f84(0x164)])],$),exports['AddDimensionOutlineCommand']=j,exports[_0xee3f84(0x190)]=O,exports['ClearDimensionOutlinesCommand']=N,exports[_0xee3f84(0x1bc)]=M,exports[_0xee3f84(0x10e)]=a,exports[_0xee3f84(0x161)]=o,exports[_0xee3f84(0x1d8)]=P,exports['RemoveDimensionOutlineMutation']=k,exports['SHEET_OUTLINE_PLUGIN']=V,exports[_0xee3f84(0x1db)]=z,exports['SetDimensionOutlineCollapsedMutation']=F,exports[_0xee3f84(0x141)]=D,exports[_0xee3f84(0x198)]=E,exports[_0xee3f84(0x162)]=B,Object['defineProperty'](exports,_0xee3f84(0x13e),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0xee3f84(0x111)]=f,exports[_0xee3f84(0x151)]=p,exports[_0xee3f84(0x168)]=ue,exports[_0xee3f84(0x1c8)]=A,exports['transformOutlinesByDelete']=y,exports[_0xee3f84(0x187)]=v,exports[_0xee3f84(0x12d)]=b;
1
+ const _0x53e2b0=_0x1027;(function(_0x4d5975,_0x38c414){const _0x31020c=_0x1027,_0x493e6a=_0x4d5975();while(!![]){try{const _0x493212=parseInt(_0x31020c(0x199))/0x1+parseInt(_0x31020c(0x217))/0x2+parseInt(_0x31020c(0x234))/0x3*(parseInt(_0x31020c(0x20c))/0x4)+-parseInt(_0x31020c(0x1b5))/0x5*(parseInt(_0x31020c(0x1b9))/0x6)+parseInt(_0x31020c(0x1f4))/0x7+parseInt(_0x31020c(0x21d))/0x8*(-parseInt(_0x31020c(0x1b1))/0x9)+parseInt(_0x31020c(0x168))/0xa;if(_0x493212===_0x38c414)break;else _0x493e6a['push'](_0x493e6a['shift']());}catch(_0xfe1da7){_0x493e6a['push'](_0x493e6a['shift']());}}}(_0x8272,0x6d3a0),Object[_0x53e2b0(0x1f3)](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require('@univerjs/core'),t=require('@univerjs/sheets'),n=require('rxjs'),r=require('rxjs/operators'),i=require('@univerjs-pro/license'),a=function(_0x337c74){const _0xae4921=_0x53e2b0;return _0x337c74[_0xae4921(0x198)]='row',_0x337c74[_0xae4921(0x1f5)]=_0xae4921(0x229),_0x337c74;}({}),o=function(_0x356c6b){const _0x42cd67=_0x53e2b0;return _0x356c6b[_0x42cd67(0x204)]=_0x42cd67(0x194),_0x356c6b[_0x42cd67(0x223)]=_0x42cd67(0x183),_0x356c6b[_0x42cd67(0x1ef)]=_0x42cd67(0x1eb),_0x356c6b['MAX_DEPTH']=_0x42cd67(0x1c2),_0x356c6b[_0x42cd67(0x181)]='move-splits-outline',_0x356c6b[_0x42cd67(0x174)]=_0x42cd67(0x17e),_0x356c6b[_0x42cd67(0x213)]='unknown',_0x356c6b;}({});var s=class extends Error{constructor(_0x55a8fe,_0x11b20c,_0x2b1abb){const _0x5ccaa4=_0x53e2b0;super(_0x11b20c),this['reason']=_0x55a8fe,this[_0x5ccaa4(0x1de)]=_0x2b1abb,this[_0x5ccaa4(0x1a3)]=_0x5ccaa4(0x176);}};function c(_0x75a8e9){const _0x2c9f88=_0x53e2b0;return _0x75a8e9 instanceof s?_0x75a8e9[_0x2c9f88(0x1a9)]:_0x75a8e9 instanceof Error?_0x75a8e9[_0x2c9f88(0x1f6)][_0x2c9f88(0x231)](_0x2c9f88(0x16d))?'move-splits-outline':_0x75a8e9[_0x2c9f88(0x1f6)]['includes'](_0x2c9f88(0x1a4))?_0x2c9f88(0x1c2):_0x75a8e9[_0x2c9f88(0x1f6)]['includes'](_0x2c9f88(0x18e))?_0x2c9f88(0x1eb):_0x75a8e9[_0x2c9f88(0x1f6)]['includes'](_0x2c9f88(0x175))?_0x2c9f88(0x194):_0x2c9f88(0x1e4):_0x2c9f88(0x1e4);}function l(_0x541f74){const _0x1699d1=_0x53e2b0;return _0x541f74 instanceof s?_0x541f74[_0x1699d1(0x1de)]:void 0x0;}const u=0x2**0x35-0x1;function d(_0x157884,_0x22d256){const _0x242880=_0x53e2b0;return _0x157884['unitId']===_0x22d256['unitId']&&_0x157884['subUnitId']===_0x22d256[_0x242880(0x1d3)]&&_0x157884[_0x242880(0x23a)]===_0x22d256[_0x242880(0x23a)];}function f(_0x1d108a,_0x194278={}){const _0x2f1a58=_0x53e2b0;let _0x43549e=_0x194278['maxDepth']??0x8,_0x119684=new Map();for(let _0x507e5b of _0x1d108a){let _0x37785a=_0x507e5b['unitId']+':'+_0x507e5b['subUnitId']+':'+_0x507e5b[_0x2f1a58(0x23a)],_0x2184b3=_0x119684['get'](_0x37785a);_0x2184b3?_0x2184b3[_0x2f1a58(0x238)](_0x507e5b):_0x119684[_0x2f1a58(0x177)](_0x37785a,[_0x507e5b]);}let _0x4c162b=[];for(let _0x54130e of _0x119684[_0x2f1a58(0x171)]()){let _0x20985e=[..._0x54130e]['sort'](S),_0x287d26=[];for(let _0x54ae22 of _0x20985e){for(se(_0x54ae22);_0x287d26[_0x2f1a58(0x1f1)]>0x0&&_0x54ae22[_0x2f1a58(0x17f)]>_0x287d26[_0x287d26[_0x2f1a58(0x1f1)]-0x1][_0x2f1a58(0x239)];)_0x287d26[_0x2f1a58(0x1d0)]();let _0x38ef63=_0x287d26[_0x287d26['length']-0x1];if(_0x38ef63&&_0x54ae22[_0x2f1a58(0x239)]>_0x38ef63[_0x2f1a58(0x239)])throw new s('crossing',_0x2f1a58(0x22e),_0x54ae22['id']);let _0x38180=_0x38ef63?_0x38ef63['depth']+0x1:0x1;if(_0x38180>_0x43549e)throw new s(_0x2f1a58(0x1c2),'Dimension\x20outline\x20depth\x20cannot\x20exceed\x20'+_0x43549e,_0x54ae22['id']);let _0x585cd6={..._0x54ae22,'depth':_0x38180,'parentId':_0x38ef63==null?void 0x0:_0x38ef63['id'],'anchor':_0x54ae22['end'],'children':[]};_0x38ef63?_0x38ef63[_0x2f1a58(0x20f)][_0x2f1a58(0x238)](_0x585cd6):_0x4c162b[_0x2f1a58(0x238)](_0x585cd6),_0x287d26[_0x2f1a58(0x238)](_0x585cd6);}}return _0x4c162b;}function p(_0x9667c1,_0x391e07,_0x527fa6={}){const _0x5541c6=_0x53e2b0;if(_0x391e07[_0x5541c6(0x17f)]<0x0||_0x391e07['start']>_0x391e07['end'])return{'valid':!0x1,'reason':_0x5541c6(0x194)};if(_0x527fa6[_0x5541c6(0x1d8)]!=null&&_0x391e07['end']>=_0x527fa6['maxIndex'])return{'valid':!0x1,'reason':'out-of-bounds'};let _0x3c0e2b=_0x9667c1['filter'](_0x9bd2b2=>d(_0x9bd2b2,_0x391e07));for(let _0x2633c8 of _0x3c0e2b)if(C(_0x2633c8,_0x391e07))return{'valid':!0x1,'reason':'crossing'};try{f([..._0x9667c1,_0x391e07],_0x527fa6);}catch(_0x1a48d0){let _0x47ecae=c(_0x1a48d0);return _0x47ecae===_0x5541c6(0x1c2)?{'valid':!0x1,'reason':'max-depth'}:_0x47ecae===_0x5541c6(0x194)?{'valid':!0x1,'reason':_0x5541c6(0x194)}:{'valid':!0x1,'reason':_0x5541c6(0x1eb)};}return{'valid':!0x0};}function m(_0x4e3c9a,_0x4f198d,_0x5a6625={}){const _0x5a414a=_0x53e2b0;let _0x215d8d=p(_0x4e3c9a,_0x4f198d,_0x5a6625);if(!_0x215d8d[_0x5a414a(0x19e)])throw Error(_0x215d8d[_0x5a414a(0x1a9)]??_0x5a414a(0x185));return[..._0x4e3c9a,_0x4f198d];}function ee(_0x456dd6,_0x32fd33){const _0x59448e=_0x53e2b0;let _0x460f41=_0x32fd33['start'],_0x15b6be=_0x32fd33['end'],_0x15caa1=[],_0x4a2cb1=!0x0;for(;_0x4a2cb1;){_0x4a2cb1=!0x1;for(let _0x5f1b31 of _0x456dd6)_0x15caa1['includes'](_0x5f1b31)||!d(_0x5f1b31,_0x32fd33)||!ae(_0x5f1b31['start'],_0x5f1b31[_0x59448e(0x239)],_0x460f41,_0x15b6be)||(_0x15caa1[_0x59448e(0x238)](_0x5f1b31),_0x460f41=Math[_0x59448e(0x21e)](_0x460f41,_0x5f1b31['start']),_0x15b6be=Math['max'](_0x15b6be,_0x5f1b31[_0x59448e(0x239)]),_0x4a2cb1=!0x0);}if(_0x15caa1[_0x59448e(0x1f1)]===0x0)return null;let [_0x3b198c]=[..._0x15caa1][_0x59448e(0x1c7)](S);return{'mergedOutline':{..._0x3b198c,'start':_0x460f41,'end':_0x15b6be},'mergedOutlines':_0x15caa1};}function h(_0x353309,_0x4a3c5c){const _0x489f76=_0x53e2b0;return _0x353309[_0x489f76(0x221)](_0x30753e=>!d(_0x30753e,_0x4a3c5c)||!(_0x30753e[_0x489f76(0x17f)]>=_0x4a3c5c[_0x489f76(0x17f)]&&_0x30753e[_0x489f76(0x239)]<=_0x4a3c5c[_0x489f76(0x239)]));}function g(_0x871303,_0x9210fc,_0x532eca,_0x43cc40){const _0x3fcf49=_0x53e2b0;return _(_0x871303[_0x3fcf49(0x221)](_0xe9761c=>_0xe9761c[_0x3fcf49(0x19f)]===_0x9210fc&&_0xe9761c[_0x3fcf49(0x1d3)]===_0x532eca&&_0xe9761c[_0x3fcf49(0x23a)]===_0x43cc40&&_0xe9761c[_0x3fcf49(0x1f7)])['map'](_0x7e0196=>({'start':_0x7e0196['start'],'end':_0x7e0196[_0x3fcf49(0x239)]})));}function _(_0x4e80b8){const _0x1c175a=_0x53e2b0;if(_0x4e80b8[_0x1c175a(0x1f1)]===0x0)return[];let _0x524aed=[..._0x4e80b8][_0x1c175a(0x1c7)]((_0x366eff,_0x25f57a)=>_0x366eff[_0x1c175a(0x17f)]-_0x25f57a[_0x1c175a(0x17f)]||_0x366eff[_0x1c175a(0x239)]-_0x25f57a[_0x1c175a(0x239)]),_0x414377=[];for(let _0x5f787b of _0x524aed){let _0x56ac51=_0x414377[_0x414377[_0x1c175a(0x1f1)]-0x1];!_0x56ac51||_0x5f787b[_0x1c175a(0x17f)]>_0x56ac51[_0x1c175a(0x239)]+0x1?_0x414377[_0x1c175a(0x238)]({..._0x5f787b}):_0x56ac51[_0x1c175a(0x239)]=Math[_0x1c175a(0x1f2)](_0x56ac51[_0x1c175a(0x239)],_0x5f787b[_0x1c175a(0x239)]);}return _0x414377;}function v(_0x2c3057,_0x3e7e48){const _0x14f601=_0x53e2b0;return _0x3e7e48[_0x14f601(0x1a5)]<=0x0?_0x2c3057:x(_0x2c3057[_0x14f601(0x207)](_0x201eff=>d(_0x201eff,_0x3e7e48)?_0x3e7e48[_0x14f601(0x1e6)]<=_0x201eff[_0x14f601(0x17f)]?{..._0x201eff,'start':_0x201eff['start']+_0x3e7e48[_0x14f601(0x1a5)],'end':_0x201eff[_0x14f601(0x239)]+_0x3e7e48[_0x14f601(0x1a5)]}:_0x201eff['start']<_0x3e7e48[_0x14f601(0x1e6)]&&_0x3e7e48[_0x14f601(0x1e6)]<=_0x201eff[_0x14f601(0x239)]?{..._0x201eff,'end':_0x201eff[_0x14f601(0x239)]+_0x3e7e48['count']}:_0x201eff:_0x201eff));}function y(_0x3e6a07,_0x300d84){const _0x4cc74e=_0x53e2b0;if(_0x300d84[_0x4cc74e(0x17f)]>_0x300d84[_0x4cc74e(0x239)])return _0x3e6a07;let _0x2193c9=_0x300d84[_0x4cc74e(0x239)]-_0x300d84[_0x4cc74e(0x17f)]+0x1,_0x1bd52e=[];for(let _0x541b47 of _0x3e6a07){if(!d(_0x541b47,_0x300d84)){_0x1bd52e[_0x4cc74e(0x238)](_0x541b47);continue;}if(_0x541b47[_0x4cc74e(0x239)]<_0x300d84[_0x4cc74e(0x17f)]){_0x1bd52e[_0x4cc74e(0x238)](_0x541b47);continue;}if(_0x541b47['start']>_0x300d84['end']){_0x1bd52e[_0x4cc74e(0x238)]({..._0x541b47,'start':_0x541b47[_0x4cc74e(0x17f)]-_0x2193c9,'end':_0x541b47[_0x4cc74e(0x239)]-_0x2193c9});continue;}let _0x46616e=Math[_0x4cc74e(0x1f2)](_0x541b47[_0x4cc74e(0x17f)],_0x300d84[_0x4cc74e(0x17f)]),_0x5e8d0d=Math[_0x4cc74e(0x21e)](_0x541b47[_0x4cc74e(0x239)],_0x300d84[_0x4cc74e(0x239)]),_0x5278b2=Math[_0x4cc74e(0x1f2)](0x0,_0x5e8d0d-_0x46616e+0x1),_0x32a066=_0x541b47[_0x4cc74e(0x239)]-_0x541b47[_0x4cc74e(0x17f)]+0x1-_0x5278b2;if(_0x32a066<=0x0)continue;let _0x198b42=_0x541b47[_0x4cc74e(0x17f)]<_0x300d84[_0x4cc74e(0x17f)]?_0x541b47[_0x4cc74e(0x17f)]:_0x300d84[_0x4cc74e(0x17f)];_0x1bd52e[_0x4cc74e(0x238)]({..._0x541b47,'start':_0x198b42,'end':_0x198b42+_0x32a066-0x1});}return x(_0x1bd52e);}function b(_0x23a9d3,_0x4cc9e3){const _0x4aa5e1=_0x53e2b0;if(_0x4cc9e3[_0x4aa5e1(0x182)]>_0x4cc9e3[_0x4aa5e1(0x1bd)])return _0x23a9d3;let _0x3703a3=[];for(let _0x3752ad of _0x23a9d3){if(!d(_0x3752ad,_0x4cc9e3)){_0x3703a3[_0x4aa5e1(0x238)](_0x3752ad);continue;}let _0x3a3441=te(_0x3752ad,_0x4cc9e3);if(_0x3a3441[_0x4aa5e1(0x203)]===_0x4aa5e1(0x1ee))throw new s(_0x4aa5e1(0x211),_0x4aa5e1(0x1e2)+_0x3752ad['id'],_0x3752ad['id']);_0x3703a3[_0x4aa5e1(0x238)](_0x3a3441['outline']);}return x(_0x3703a3);}function te(_0x29c0ae,_0x16797a){const _0x140be0=_0x53e2b0;let _0x1cfb92=ne(_0x16797a[_0x140be0(0x182)],_0x16797a['sourceEnd']+0x1,_0x16797a[_0x140be0(0x1d4)]),_0x58df33=[],_0x42c489={'start':_0x29c0ae[_0x140be0(0x17f)],'end':_0x29c0ae[_0x140be0(0x239)]+0x1};for(let _0x5887f2 of _0x1cfb92){let _0x2a3a71=re(_0x42c489,_0x5887f2[_0x140be0(0x175)]);_0x2a3a71&&_0x58df33[_0x140be0(0x238)]({'start':_0x2a3a71[_0x140be0(0x17f)]+_0x5887f2[_0x140be0(0x1d9)],'end':_0x2a3a71[_0x140be0(0x239)]+_0x5887f2[_0x140be0(0x1d9)]});}let _0xb2804f=ie(_0x58df33);return _0xb2804f['length']===0x1?{'type':'ok','outline':{..._0x29c0ae,'start':_0xb2804f[0x0][_0x140be0(0x17f)],'end':_0xb2804f[0x0][_0x140be0(0x239)]-0x1}}:{'type':_0x140be0(0x1ee),'outline':_0x29c0ae,'ranges':_0xb2804f};}function ne(_0x472258,_0x315de8,_0x26bd32){const _0xe49c4e=_0x53e2b0;let _0x3b2173=_0x315de8-_0x472258;if(_0x3b2173<=0x0)throw Error(_0xe49c4e(0x1af));return _0x26bd32>=_0x472258&&_0x26bd32<=_0x315de8?[{'range':{'start':0x0,'end':u},'offset':0x0}]:_0x26bd32<_0x472258?[{'range':{'start':0x0,'end':_0x26bd32},'offset':0x0},{'range':{'start':_0x26bd32,'end':_0x472258},'offset':_0x3b2173},{'range':{'start':_0x472258,'end':_0x315de8},'offset':_0x26bd32-_0x472258},{'range':{'start':_0x315de8,'end':u},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x472258},'offset':0x0},{'range':{'start':_0x472258,'end':_0x315de8},'offset':_0x26bd32-_0x315de8},{'range':{'start':_0x315de8,'end':_0x26bd32},'offset':-_0x3b2173},{'range':{'start':_0x26bd32,'end':u},'offset':0x0}];}function re(_0x2c2a4a,_0x12a80d){const _0x53fcef=_0x53e2b0;let _0x186bcd=Math[_0x53fcef(0x1f2)](_0x2c2a4a[_0x53fcef(0x17f)],_0x12a80d[_0x53fcef(0x17f)]),_0x541c03=Math['min'](_0x2c2a4a['end'],_0x12a80d[_0x53fcef(0x239)]);return _0x186bcd>=_0x541c03?null:{'start':_0x186bcd,'end':_0x541c03};}function ie(_0x22cbab){const _0x1735ae=_0x53e2b0;if(_0x22cbab[_0x1735ae(0x1f1)]===0x0)return[];let _0x1cd7a8=[..._0x22cbab]['sort']((_0x6144a2,_0x561830)=>_0x6144a2[_0x1735ae(0x17f)]-_0x561830['start']||_0x6144a2[_0x1735ae(0x239)]-_0x561830[_0x1735ae(0x239)]),_0x45a59c=[];for(let _0x37c9e3 of _0x1cd7a8){let _0xf0677d=_0x45a59c[_0x45a59c[_0x1735ae(0x1f1)]-0x1];!_0xf0677d||_0x37c9e3[_0x1735ae(0x17f)]>_0xf0677d[_0x1735ae(0x239)]?_0x45a59c[_0x1735ae(0x238)]({..._0x37c9e3}):_0xf0677d[_0x1735ae(0x239)]=Math['max'](_0xf0677d[_0x1735ae(0x239)],_0x37c9e3[_0x1735ae(0x239)]);}return _0x45a59c;}function ae(_0x4b09e1,_0x3f880b,_0xd2c232,_0x39c407){return _0x3f880b+0x1===_0xd2c232||_0x39c407+0x1===_0x4b09e1;}function x(_0x547757){let _0x318a20=oe(_0x547757);return f(_0x318a20),_0x318a20;}function oe(_0x4b51c0){const _0x122d44=_0x53e2b0;let _0x4f01c7=new Map();for(let _0x18d0ab of _0x4b51c0){let _0x3fabaf=[_0x18d0ab[_0x122d44(0x19f)],_0x18d0ab[_0x122d44(0x1d3)],_0x18d0ab[_0x122d44(0x23a)],_0x18d0ab[_0x122d44(0x17f)],_0x18d0ab[_0x122d44(0x239)]][_0x122d44(0x1fe)](':'),_0x3cf5d3=_0x4f01c7[_0x122d44(0x17d)](_0x3fabaf);if(!_0x3cf5d3){_0x4f01c7[_0x122d44(0x177)](_0x3fabaf,_0x18d0ab);continue;}_0x4f01c7[_0x122d44(0x177)](_0x3fabaf,{..._0x3cf5d3,'collapsed':_0x3cf5d3['collapsed']||_0x18d0ab[_0x122d44(0x1f7)]});}return Array[_0x122d44(0x1ac)](_0x4f01c7['values']());}function S(_0x2972d4,_0x4fdece){const _0x36f598=_0x53e2b0;return _0x2972d4[_0x36f598(0x19f)]===_0x4fdece[_0x36f598(0x19f)]?_0x2972d4[_0x36f598(0x1d3)]===_0x4fdece[_0x36f598(0x1d3)]?_0x2972d4[_0x36f598(0x23a)]===_0x4fdece[_0x36f598(0x23a)]?_0x2972d4[_0x36f598(0x17f)]===_0x4fdece[_0x36f598(0x17f)]?_0x4fdece[_0x36f598(0x239)]-_0x2972d4[_0x36f598(0x239)]:_0x2972d4[_0x36f598(0x17f)]-_0x4fdece[_0x36f598(0x17f)]:_0x2972d4[_0x36f598(0x23a)][_0x36f598(0x1a6)](_0x4fdece[_0x36f598(0x23a)]):_0x2972d4[_0x36f598(0x1d3)]['localeCompare'](_0x4fdece[_0x36f598(0x1d3)]):_0x2972d4[_0x36f598(0x19f)][_0x36f598(0x1a6)](_0x4fdece[_0x36f598(0x19f)]);}function se(_0x4a7c0a){const _0x120a5f=_0x53e2b0;if(_0x4a7c0a[_0x120a5f(0x17f)]>_0x4a7c0a[_0x120a5f(0x239)])throw new s('invalid-range',_0x120a5f(0x1c3),_0x4a7c0a['id']);}function C(_0x5e4068,_0x2b82f4){const _0x1c919c=_0x53e2b0;let _0x34276d=_0x5e4068[_0x1c919c(0x17f)]<=_0x2b82f4[_0x1c919c(0x239)]&&_0x2b82f4[_0x1c919c(0x17f)]<=_0x5e4068[_0x1c919c(0x239)],_0x5823b0=_0x5e4068[_0x1c919c(0x17f)]<=_0x2b82f4[_0x1c919c(0x17f)]&&_0x2b82f4[_0x1c919c(0x239)]<=_0x5e4068[_0x1c919c(0x239)],_0x4d796e=_0x2b82f4[_0x1c919c(0x17f)]<=_0x5e4068[_0x1c919c(0x17f)]&&_0x5e4068['end']<=_0x2b82f4['end'];return _0x34276d&&!_0x5823b0&&!_0x4d796e;}function w(_0x3a63a2){'@babel/helpers - typeof';const _0x3e28d1=_0x53e2b0;return w=typeof Symbol==_0x3e28d1(0x19b)&&typeof Symbol[_0x3e28d1(0x1c6)]==_0x3e28d1(0x1a1)?function(_0x352654){return typeof _0x352654;}:function(_0x75e5f0){const _0x1b8b39=_0x3e28d1;return _0x75e5f0&&typeof Symbol==_0x1b8b39(0x19b)&&_0x75e5f0[_0x1b8b39(0x16a)]===Symbol&&_0x75e5f0!==Symbol[_0x1b8b39(0x20d)]?'symbol':typeof _0x75e5f0;},w(_0x3a63a2);}function ce(_0x389e83,_0x165b50){const _0x4631ad=_0x53e2b0;if(w(_0x389e83)!=_0x4631ad(0x233)||!_0x389e83)return _0x389e83;var _0x786fec=_0x389e83[Symbol[_0x4631ad(0x18d)]];if(_0x786fec!==void 0x0){var _0x5562bc=_0x786fec[_0x4631ad(0x1cb)](_0x389e83,_0x165b50||'default');if(w(_0x5562bc)!=_0x4631ad(0x233))return _0x5562bc;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x165b50===_0x4631ad(0x173)?String:Number)(_0x389e83);}function le(_0x1ee3c0){var _0x56a0c4=ce(_0x1ee3c0,'string');return w(_0x56a0c4)=='symbol'?_0x56a0c4:_0x56a0c4+'';}function T(_0xa67cf2,_0x386b05,_0x1c07ef){return(_0x386b05=le(_0x386b05))in _0xa67cf2?Object['defineProperty'](_0xa67cf2,_0x386b05,{'value':_0x1c07ef,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xa67cf2[_0x386b05]=_0x1c07ef,_0xa67cf2;}var E=class extends e[_0x53e2b0(0x187)]{constructor(..._0xeffb76){const _0x1200b4=_0x53e2b0;super(..._0xeffb76),T(this,_0x1200b4(0x206),new Map()),T(this,'_change$',new n[(_0x1200b4(0x1fb))]()),T(this,_0x1200b4(0x1ad),this[_0x1200b4(0x179)][_0x1200b4(0x1b6)]());}[_0x53e2b0(0x1fa)](_0x1434b4,_0x3b9831){const _0xea1870=_0x53e2b0;var _0x4c01df;return[...((_0x4c01df=this[_0xea1870(0x206)][_0xea1870(0x17d)](_0x1434b4))==null?void 0x0:_0x4c01df[_0xea1870(0x17d)](_0x3b9831))??[]];}[_0x53e2b0(0x1b2)](_0x357180){const _0xc4d1c9=_0x53e2b0;let _0x98980b=this[_0xc4d1c9(0x206)][_0xc4d1c9(0x17d)](_0x357180),_0xe2f105=new Map();return _0x98980b==null||_0x98980b[_0xc4d1c9(0x20e)]((_0x1e24bb,_0xed8169)=>{const _0x14cbb5=_0xc4d1c9;_0xe2f105[_0x14cbb5(0x177)](_0xed8169,[..._0x1e24bb]);}),_0xe2f105;}[_0x53e2b0(0x240)](_0x9328e6,_0x474667,_0x3d4a5e){const _0x2b99a4=_0x53e2b0;this['_ensureUnitOutlines'](_0x9328e6)[_0x2b99a4(0x177)](_0x474667,[..._0x3d4a5e]),this[_0x2b99a4(0x179)][_0x2b99a4(0x219)]({'unitId':_0x9328e6,'subUnitId':_0x474667});}[_0x53e2b0(0x16b)](_0x2a14a1){const _0xb90e58=_0x53e2b0;this[_0xb90e58(0x206)][_0xb90e58(0x18c)](_0x2a14a1),this[_0xb90e58(0x179)]['next']({'unitId':_0x2a14a1});}['serialize'](_0x4bdbc8){const _0x28beb1=_0x53e2b0;let _0x3f3036=this[_0x28beb1(0x206)][_0x28beb1(0x17d)](_0x4bdbc8),_0x487504={};return _0x3f3036==null||_0x3f3036[_0x28beb1(0x20e)]((_0x39fc0a,_0x2ac6eb)=>{_0x487504[_0x2ac6eb]={'outlineList':[..._0x39fc0a]};}),_0x487504;}[_0x53e2b0(0x23d)](_0x9c1008,_0x44a3b4){const _0x32c6a1=_0x53e2b0;let _0x133d38=new Map();Object[_0x32c6a1(0x227)](_0x44a3b4)[_0x32c6a1(0x20e)](([_0x48e753,_0x38c8dc])=>{const _0x38706b=_0x32c6a1;_0x133d38[_0x38706b(0x177)](_0x48e753,[..._0x38c8dc[_0x38706b(0x1e5)]??[]]);}),this[_0x32c6a1(0x206)]['set'](_0x9c1008,_0x133d38),this[_0x32c6a1(0x179)][_0x32c6a1(0x219)]({'unitId':_0x9c1008});}[_0x53e2b0(0x218)](){const _0x5024f7=_0x53e2b0;super[_0x5024f7(0x218)](),this[_0x5024f7(0x206)]['clear'](),this[_0x5024f7(0x179)][_0x5024f7(0x1f0)]();}[_0x53e2b0(0x1d5)](_0x2242a2){const _0x3108b1=_0x53e2b0;let _0x4351d9=this[_0x3108b1(0x206)][_0x3108b1(0x17d)](_0x2242a2);return _0x4351d9||(_0x4351d9=new Map(),this[_0x3108b1(0x206)][_0x3108b1(0x177)](_0x2242a2,_0x4351d9)),_0x4351d9;}},D=class extends e['Disposable']{constructor(..._0x2c09fd){const _0x33f83b=_0x53e2b0;super(..._0x2c09fd),T(this,'_error$',new n[(_0x33f83b(0x1fb))]()),T(this,_0x33f83b(0x212),this['_error$'][_0x33f83b(0x1b6)]());}[_0x53e2b0(0x1c5)](_0x2cd87f){const _0x863486=_0x53e2b0;this[_0x863486(0x1ed)][_0x863486(0x219)](_0x2cd87f);}['dispose'](){const _0x4c295b=_0x53e2b0;super[_0x4c295b(0x218)](),this['_error$'][_0x4c295b(0x1f0)]();}};const O={'id':_0x53e2b0(0x1bb),'type':e['CommandType']['MUTATION'],'handler':(_0x543f26,_0x31573a)=>{const _0x2da1cc=_0x53e2b0;let _0x380d73=_0x543f26[_0x2da1cc(0x17d)](E),_0x5b3849=_0x380d73[_0x2da1cc(0x1fa)](_0x31573a['unitId'],_0x31573a[_0x2da1cc(0x1d3)]);return _0x380d73[_0x2da1cc(0x240)](_0x31573a[_0x2da1cc(0x19f)],_0x31573a[_0x2da1cc(0x1d3)],m(_0x5b3849,_0x31573a['outline'])),!0x0;}},k={'id':_0x53e2b0(0x178),'type':e[_0x53e2b0(0x1b7)]['MUTATION'],'handler':(_0x4aa595,_0x28392b)=>{const _0x1dafe0=_0x53e2b0;let _0x5a1884=_0x4aa595[_0x1dafe0(0x17d)](E),_0xe62280=_0x5a1884[_0x1dafe0(0x1fa)](_0x28392b[_0x1dafe0(0x19f)],_0x28392b[_0x1dafe0(0x1d3)]);return _0x5a1884[_0x1dafe0(0x240)](_0x28392b[_0x1dafe0(0x19f)],_0x28392b[_0x1dafe0(0x1d3)],_0xe62280[_0x1dafe0(0x221)](_0x1c5ee2=>_0x1c5ee2['id']!==_0x28392b[_0x1dafe0(0x1de)])),!0x0;}};function A(_0xbe4f27,_0x40bb49,_0x5b2f93){const _0x24bcf7=_0x53e2b0;let _0x315678=de(_0xbe4f27);return!_0x315678||_0x315678[_0x24bcf7(0x197)]({'workbookTypes':[t[_0x24bcf7(0x23e)]],'worksheetTypes':[t[_0x24bcf7(0x1b0)]]},_0x40bb49,_0x5b2f93);}function ue(_0x3a0499,_0x94d2be,_0x2392b8){const _0x1a8b26=_0x53e2b0;let _0x323876=fe(_0x3a0499);return((_0x323876==null?void 0x0:_0x323876[_0x1a8b26(0x18a)])??(0x0,n['of'])(null))[_0x1a8b26(0x21a)]((0x0,r[_0x1a8b26(0x16e)])(0x64),(0x0,r[_0x1a8b26(0x186)])(null),(0x0,r[_0x1a8b26(0x207)])(()=>A(_0x3a0499,_0x94d2be,_0x2392b8)));}function de(_0x1ae979){const _0x202fc5=_0x53e2b0;if(typeof _0x1ae979[_0x202fc5(0x216)]==_0x202fc5(0x19b)&&!_0x1ae979[_0x202fc5(0x216)](t['SheetPermissionCheckController']))return null;try{return _0x1ae979[_0x202fc5(0x17d)](t[_0x202fc5(0x23b)]);}catch{return null;}}function fe(_0x2e9bd5){const _0x373eed=_0x53e2b0;if(typeof _0x2e9bd5['has']==_0x373eed(0x19b)&&!_0x2e9bd5[_0x373eed(0x216)](e[_0x373eed(0x1ea)]))return null;try{return _0x2e9bd5[_0x373eed(0x17d)](e[_0x373eed(0x1ea)]);}catch{return null;}}const j={'id':_0x53e2b0(0x16c),'type':e[_0x53e2b0(0x1b7)]['COMMAND'],'handler':(_0x30502f,_0x24d9eb)=>{const _0x12fef2=_0x53e2b0;if(!_0x24d9eb)return!0x1;let _0x5bb2b8=(0x0,t[_0x12fef2(0x18b)])(_0x30502f[_0x12fef2(0x17d)](e[_0x12fef2(0x1ae)]),_0x24d9eb);if(!_0x5bb2b8)return!0x1;let {unitId:_0x29cace,subUnitId:_0xec0d43,worksheet:_0xf4e0e4}=_0x5bb2b8;if(!A(_0x30502f,_0x29cace,_0xec0d43))return!0x1;let _0x346174=_0x30502f[_0x12fef2(0x17d)](E),_0x3ff9d3={'id':_0x12fef2(0x17b)+(0x0,e[_0x12fef2(0x1ba)])(0x6),'unitId':_0x29cace,'subUnitId':_0xec0d43,'axis':_0x24d9eb[_0x12fef2(0x23a)],'start':_0x24d9eb[_0x12fef2(0x17f)],'end':_0x24d9eb[_0x12fef2(0x239)],'collapsed':!0x1},_0x121983=_0x24d9eb['axis']==='row'?_0xf4e0e4[_0x12fef2(0x1a2)]():_0xf4e0e4[_0x12fef2(0x1bf)](),_0x2af96a=_0x346174[_0x12fef2(0x1fa)](_0x29cace,_0xec0d43),_0x2d5097=ee(_0x2af96a,_0x3ff9d3),_0x4be641=(_0x2d5097==null?void 0x0:_0x2d5097[_0x12fef2(0x192)])??[],_0x178d28=(_0x2d5097==null?void 0x0:_0x2d5097[_0x12fef2(0x1db)])??_0x3ff9d3,_0x55241e=p(_0x2d5097?_0x2af96a[_0x12fef2(0x221)](_0x1e1ccf=>!_0x4be641[_0x12fef2(0x22b)](_0x3ddd39=>_0x3ddd39['id']===_0x1e1ccf['id'])):_0x2af96a,_0x178d28,{'maxIndex':_0x121983});if(!_0x55241e['valid'])return _0x30502f[_0x12fef2(0x17d)](D)[_0x12fef2(0x1c5)]({'reason':_0x55241e[_0x12fef2(0x1a9)]??_0x12fef2(0x1e4),'commandId':j['id'],'unitId':_0x29cace,'subUnitId':_0xec0d43,'axis':_0x24d9eb[_0x12fef2(0x23a)],'outlineId':_0x178d28['id']}),!0x1;let _0x35ae95=[..._0x4be641['map'](_0x1be23d=>({'id':k['id'],'params':{'unitId':_0x29cace,'subUnitId':_0xec0d43,'outlineId':_0x1be23d['id']}})),{'id':O['id'],'params':{'unitId':_0x29cace,'subUnitId':_0xec0d43,'outline':_0x178d28}}],_0x17ca20=[{'id':k['id'],'params':{'unitId':_0x29cace,'subUnitId':_0xec0d43,'outlineId':_0x178d28['id']}},..._0x4be641[_0x12fef2(0x207)](_0x5d3519=>({'id':O['id'],'params':{'unitId':_0x29cace,'subUnitId':_0xec0d43,'outline':_0x5d3519}}))];return(0x0,e[_0x12fef2(0x209)])(_0x35ae95,_0x30502f[_0x12fef2(0x17d)](e[_0x12fef2(0x191)]))[_0x12fef2(0x1da)]?(_0x30502f[_0x12fef2(0x17d)](e[_0x12fef2(0x1e7)])[_0x12fef2(0x1cd)]({'unitID':_0x29cace,'undoMutations':_0x17ca20,'redoMutations':_0x35ae95}),!0x0):!0x1;}},M={'id':_0x53e2b0(0x195),'type':e[_0x53e2b0(0x1b7)][_0x53e2b0(0x214)],'handler':(_0x543307,_0x2e1f35)=>{const _0x2edb2f=_0x53e2b0;let _0x40edb2=_0x543307[_0x2edb2f(0x17d)](E),_0x2bbea0=_0x40edb2[_0x2edb2f(0x1fa)](_0x2e1f35['unitId'],_0x2e1f35[_0x2edb2f(0x1d3)]);return _0x40edb2['setOutlines'](_0x2e1f35[_0x2edb2f(0x19f)],_0x2e1f35[_0x2edb2f(0x1d3)],h(_0x2bbea0,_0x2e1f35)),!0x0;}},N={'id':_0x53e2b0(0x16f),'type':e[_0x53e2b0(0x1b7)][_0x53e2b0(0x1bc)],'handler':(_0x710fec,_0x208832)=>{const _0xed2481=_0x53e2b0;if(!_0x208832)return!0x1;let _0x1a446d=(0x0,t['getSheetCommandTarget'])(_0x710fec[_0xed2481(0x17d)](e[_0xed2481(0x1ae)]),_0x208832);if(!_0x1a446d)return!0x1;let {unitId:_0x3227d1,subUnitId:_0x5e2f34}=_0x1a446d;if(!A(_0x710fec,_0x3227d1,_0x5e2f34))return!0x1;let _0x26b0fe={'unitId':_0x3227d1,'subUnitId':_0x5e2f34,'axis':_0x208832[_0xed2481(0x23a)],'start':_0x208832['start'],'end':_0x208832[_0xed2481(0x239)]},_0x1dd855=_0x710fec[_0xed2481(0x17d)](E)['getOutlines'](_0x3227d1,_0x5e2f34)[_0xed2481(0x221)](_0x5c13e3=>d(_0x5c13e3,_0x26b0fe)&&_0x5c13e3[_0xed2481(0x17f)]>=_0x208832[_0xed2481(0x17f)]&&_0x5c13e3[_0xed2481(0x239)]<=_0x208832[_0xed2481(0x239)]);if(_0x1dd855[_0xed2481(0x1f1)]===0x0)return _0x710fec[_0xed2481(0x17d)](D)[_0xed2481(0x1c5)]({'reason':_0xed2481(0x17e),'commandId':N['id'],'unitId':_0x3227d1,'subUnitId':_0x5e2f34,'axis':_0x208832[_0xed2481(0x23a)]}),!0x1;let _0x1da059=[{'id':M['id'],'params':{..._0x26b0fe,'removedOutlineIds':_0x1dd855['map'](_0x560717=>_0x560717['id'])}}],_0x17b018=_0x1dd855[_0xed2481(0x207)](_0x12d386=>({'id':O['id'],'params':{'unitId':_0x3227d1,'subUnitId':_0x5e2f34,'outline':_0x12d386}}));return(0x0,e['sequenceExecute'])(_0x1da059,_0x710fec[_0xed2481(0x17d)](e[_0xed2481(0x191)]))[_0xed2481(0x1da)]?(_0x710fec[_0xed2481(0x17d)](e[_0xed2481(0x1e7)])['pushUndoRedo']({'unitID':_0x3227d1,'undoMutations':_0x17b018,'redoMutations':_0x1da059}),!0x0):!0x1;}},P={'id':'sheet.command.remove-dimension-outline','type':e['CommandType']['COMMAND'],'handler':(_0x204b4a,_0x5541d3)=>{const _0x4fd80e=_0x53e2b0;if(!_0x5541d3)return!0x1;let _0x4bbe17=(0x0,t['getSheetCommandTarget'])(_0x204b4a[_0x4fd80e(0x17d)](e[_0x4fd80e(0x1ae)]),_0x5541d3);if(!_0x4bbe17)return!0x1;let {unitId:_0x1de2dd,subUnitId:_0x1977fb}=_0x4bbe17;if(!A(_0x204b4a,_0x1de2dd,_0x1977fb))return!0x1;let _0x474821=_0x204b4a['get'](E)[_0x4fd80e(0x1fa)](_0x1de2dd,_0x1977fb)[_0x4fd80e(0x22c)](_0x2c3eb4=>_0x2c3eb4['id']===_0x5541d3[_0x4fd80e(0x1de)]);if(!_0x474821)return!0x1;let _0x5c0193=[{'id':k['id'],'params':{'unitId':_0x1de2dd,'subUnitId':_0x1977fb,'outlineId':_0x474821['id'],'outline':_0x474821}}],_0x1acacf=[{'id':O['id'],'params':{'unitId':_0x1de2dd,'subUnitId':_0x1977fb,'outline':_0x474821}}];return(0x0,e[_0x4fd80e(0x209)])(_0x5c0193,_0x204b4a[_0x4fd80e(0x17d)](e['ICommandService']))[_0x4fd80e(0x1da)]?(_0x204b4a['get'](e[_0x4fd80e(0x1e7)])[_0x4fd80e(0x1cd)]({'unitID':_0x1de2dd,'undoMutations':_0x1acacf,'redoMutations':_0x5c0193}),!0x0):!0x1;}},F={'id':_0x53e2b0(0x19a),'type':e[_0x53e2b0(0x1b7)][_0x53e2b0(0x214)],'handler':(_0x1b3d26,_0x5645e9)=>{const _0xb4974=_0x53e2b0;let _0x300418=_0x1b3d26['get'](E),_0xc6cc79=_0x300418[_0xb4974(0x1fa)](_0x5645e9[_0xb4974(0x19f)],_0x5645e9[_0xb4974(0x1d3)]),_0x5431f8=_0xc6cc79[_0xb4974(0x22c)](_0x3ee125=>_0x3ee125['id']===_0x5645e9[_0xb4974(0x1de)]);return _0x5431f8&&_0x300418[_0xb4974(0x240)](_0x5645e9['unitId'],_0x5645e9[_0xb4974(0x1d3)],_0xc6cc79[_0xb4974(0x207)](_0x155e5f=>_0x155e5f[_0xb4974(0x19f)]!==_0x5431f8[_0xb4974(0x19f)]||_0x155e5f[_0xb4974(0x1d3)]!==_0x5431f8[_0xb4974(0x1d3)]||_0x155e5f[_0xb4974(0x23a)]!==_0x5431f8[_0xb4974(0x23a)]||_0x155e5f[_0xb4974(0x17f)]!==_0x5431f8['start']||_0x155e5f['end']!==_0x5431f8[_0xb4974(0x239)]?_0x155e5f:{..._0x155e5f,'collapsed':_0x5645e9[_0xb4974(0x1f7)]})),!0x0;}};function I(_0x577a6b,_0x2ad643,_0x1f5a5f,_0x50f2f8){const _0x25885d=_0x53e2b0;return _0x577a6b===_0x25885d(0x20b)?{'startRow':_0x2ad643,'endRow':_0x1f5a5f,'startColumn':0x0,'endColumn':_0x50f2f8[_0x25885d(0x172)]()-0x1}:{'startRow':0x0,'endRow':_0x50f2f8[_0x25885d(0x1a2)]()-0x1,'startColumn':_0x2ad643,'endColumn':_0x1f5a5f};}function _0x1027(_0x13352d,_0x38fd3a){_0x13352d=_0x13352d-0x168;const _0x827206=_0x8272();let _0x10274e=_0x827206[_0x13352d];return _0x10274e;}function pe(_0x287ed8){const _0x486989=_0x53e2b0;return _0x287ed8===_0x486989(0x20b)?t[_0x486989(0x188)]['id']:t[_0x486989(0x202)]['id'];}function me(_0x1e4f6b){const _0x8514c=_0x53e2b0;return _0x1e4f6b===_0x8514c(0x20b)?t[_0x8514c(0x1ab)]['id']:t[_0x8514c(0x1d2)]['id'];}function L(_0xf97c00,_0x155584,_0x23d315,_0x4ae2dc){const _0x158bc3=_0x53e2b0;let _0x3b8ecf=_0x155584?[I(_0xf97c00[_0x158bc3(0x23a)],_0xf97c00['start'],_0xf97c00['end'],_0x23d315)]:he(_0xf97c00,_0x4ae2dc,_0x23d315),_0xa3fba6=_0x155584?pe(_0xf97c00['axis']):me(_0xf97c00[_0x158bc3(0x23a)]);return[{'id':F['id'],'params':{'unitId':_0xf97c00[_0x158bc3(0x19f)],'subUnitId':_0xf97c00[_0x158bc3(0x1d3)],'outlineId':_0xf97c00['id'],'outline':_0xf97c00,'collapsed':_0x155584}},..._0x3b8ecf[_0x158bc3(0x207)](_0x37ef40=>({'id':_0xa3fba6,'params':{'unitId':_0xf97c00[_0x158bc3(0x19f)],'subUnitId':_0xf97c00[_0x158bc3(0x1d3)],'ranges':[_0x37ef40],'dimensionOutlineId':_0xf97c00['id']}}))];}function he(_0x4c5efc,_0x1f3456,_0x480052){const _0x5d968b=_0x53e2b0;let _0xb60a1f=g(_0x1f3456['map'](_0x4be70a=>R(_0x4be70a,_0x4c5efc)?{..._0x4be70a,'collapsed':!0x1}:_0x4be70a),_0x4c5efc['unitId'],_0x4c5efc[_0x5d968b(0x1d3)],_0x4c5efc[_0x5d968b(0x23a)]);return ge({'start':_0x4c5efc[_0x5d968b(0x17f)],'end':_0x4c5efc[_0x5d968b(0x239)]},_0xb60a1f)[_0x5d968b(0x207)](_0x1ef962=>I(_0x4c5efc[_0x5d968b(0x23a)],_0x1ef962[_0x5d968b(0x17f)],_0x1ef962['end'],_0x480052));}function R(_0x521e9f,_0x1bf836){const _0x549169=_0x53e2b0;return _0x521e9f['unitId']===_0x1bf836[_0x549169(0x19f)]&&_0x521e9f[_0x549169(0x1d3)]===_0x1bf836[_0x549169(0x1d3)]&&_0x521e9f[_0x549169(0x23a)]===_0x1bf836['axis']&&_0x521e9f[_0x549169(0x17f)]===_0x1bf836[_0x549169(0x17f)]&&_0x521e9f[_0x549169(0x239)]===_0x1bf836[_0x549169(0x239)];}function ge(_0x5c34a9,_0x43455d){const _0xc22e10=_0x53e2b0;let _0x4b7220=_0x5c34a9[_0xc22e10(0x17f)],_0x1e887e=[];for(let _0x364e19 of _0x43455d)if(!(_0x364e19[_0xc22e10(0x239)]<_0x4b7220||_0x364e19[_0xc22e10(0x17f)]>_0x5c34a9[_0xc22e10(0x239)])&&(_0x364e19[_0xc22e10(0x17f)]>_0x4b7220&&_0x1e887e[_0xc22e10(0x238)]({'start':_0x4b7220,'end':Math[_0xc22e10(0x21e)](_0x364e19[_0xc22e10(0x17f)]-0x1,_0x5c34a9['end'])}),_0x4b7220=Math[_0xc22e10(0x1f2)](_0x4b7220,_0x364e19[_0xc22e10(0x239)]+0x1),_0x4b7220>_0x5c34a9[_0xc22e10(0x239)]))break;return _0x4b7220<=_0x5c34a9[_0xc22e10(0x239)]&&_0x1e887e['push']({'start':_0x4b7220,'end':_0x5c34a9[_0xc22e10(0x239)]}),_0x1e887e;}const z={'id':_0x53e2b0(0x237),'type':e[_0x53e2b0(0x1b7)][_0x53e2b0(0x1bc)],'handler':(_0x2c9b28,_0x531be4)=>{const _0x361502=_0x53e2b0;if(!_0x531be4)return!0x1;let _0x2d6122=(0x0,t[_0x361502(0x18b)])(_0x2c9b28[_0x361502(0x17d)](e[_0x361502(0x1ae)]),_0x531be4);if(!_0x2d6122)return!0x1;let {unitId:_0x34afb0,subUnitId:_0x26ed5a,worksheet:_0x262af8}=_0x2d6122;if(!A(_0x2c9b28,_0x34afb0,_0x26ed5a))return!0x1;let _0x3df264=_0x2c9b28[_0x361502(0x17d)](E)['getOutlines'](_0x34afb0,_0x26ed5a),_0x45e970=_0x3df264[_0x361502(0x22c)](_0x739222=>_0x739222['id']===_0x531be4['outlineId']);if(!_0x45e970||_0x45e970['collapsed']===_0x531be4[_0x361502(0x1f7)])return!0x1;let _0x573ba7=L(_0x45e970,_0x531be4['collapsed'],_0x262af8,_0x3df264),_0x5771b3=L(_0x45e970,!_0x531be4['collapsed'],_0x262af8,_0x3df264);return(0x0,e[_0x361502(0x209)])(_0x573ba7,_0x2c9b28[_0x361502(0x17d)](e[_0x361502(0x191)]))[_0x361502(0x1da)]?(_0x2c9b28[_0x361502(0x17d)](e[_0x361502(0x1e7)])[_0x361502(0x1cd)]({'unitID':_0x34afb0,'undoMutations':_0x5771b3,'redoMutations':_0x573ba7}),!0x0):!0x1;}},B={'id':_0x53e2b0(0x235),'type':e[_0x53e2b0(0x1b7)]['MUTATION'],'handler':(_0x4fc376,_0x5ac7db)=>{const _0x1c4f33=_0x53e2b0;let _0x4bd2d2=_0x4fc376[_0x1c4f33(0x17d)](E),_0x3e12cd=_e(_0x4bd2d2['getOutlines'](_0x5ac7db[_0x1c4f33(0x19f)],_0x5ac7db[_0x1c4f33(0x1d3)]),_0x5ac7db);return _0x4bd2d2[_0x1c4f33(0x240)](_0x5ac7db[_0x1c4f33(0x19f)],_0x5ac7db[_0x1c4f33(0x1d3)],_0x3e12cd),!0x0;}};function _e(_0x1e7481,_0x1df8a0){const _0x3de714=_0x53e2b0;switch(_0x1df8a0[_0x3de714(0x203)]){case _0x3de714(0x1fc):return _0x1df8a0[_0x3de714(0x1b3)]?ve(_0x1e7481,_0x1df8a0):v(_0x1e7481,_0x1df8a0);case'delete':return y(_0x1e7481,_0x1df8a0);case _0x3de714(0x1c4):return b(_0x1e7481,_0x1df8a0);}}function ve(_0x391ca2,_0x3dd7cf){const _0x5c99ab=_0x53e2b0;return[..._0x391ca2[_0x5c99ab(0x221)](_0x519832=>_0x519832[_0x5c99ab(0x19f)]!==_0x3dd7cf[_0x5c99ab(0x19f)]||_0x519832[_0x5c99ab(0x1d3)]!==_0x3dd7cf[_0x5c99ab(0x1d3)]||_0x519832[_0x5c99ab(0x23a)]!==_0x3dd7cf[_0x5c99ab(0x23a)]),..._0x3dd7cf[_0x5c99ab(0x1b3)]];}const V=_0x53e2b0(0x23f);var ye='@univerjs-pro/sheets-outline',be='1.0.0-beta.2';const H={};function U(_0x28629c,_0x2d1e1d){return function(_0x4a009a,_0x1adc93){_0x2d1e1d(_0x4a009a,_0x1adc93,_0x28629c);};}function W(_0x34d8f4,_0x578b52,_0x25e7f0,_0x12c730){const _0x4a6518=_0x53e2b0;var _0x3e6b8e=arguments[_0x4a6518(0x1f1)],_0x1b3588=_0x3e6b8e<0x3?_0x578b52:_0x12c730===null?_0x12c730=Object['getOwnPropertyDescriptor'](_0x578b52,_0x25e7f0):_0x12c730,_0x1a7fa1;if(typeof Reflect==_0x4a6518(0x233)&&typeof Reflect[_0x4a6518(0x1c0)]=='function')_0x1b3588=Reflect['decorate'](_0x34d8f4,_0x578b52,_0x25e7f0,_0x12c730);else{for(var _0x56f98b=_0x34d8f4['length']-0x1;_0x56f98b>=0x0;_0x56f98b--)(_0x1a7fa1=_0x34d8f4[_0x56f98b])&&(_0x1b3588=(_0x3e6b8e<0x3?_0x1a7fa1(_0x1b3588):_0x3e6b8e>0x3?_0x1a7fa1(_0x578b52,_0x25e7f0,_0x1b3588):_0x1a7fa1(_0x578b52,_0x25e7f0))||_0x1b3588);}return _0x3e6b8e>0x3&&_0x1b3588&&Object[_0x4a6518(0x1f3)](_0x578b52,_0x25e7f0,_0x1b3588),_0x1b3588;}const G={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let K=class extends e['Disposable']{constructor(_0x1d06ce,_0x137732,_0x2dfc11,_0x254324){const _0x3e8072=_0x53e2b0;super(),this['_univerInstanceService']=_0x1d06ce,this['_sheetInterceptorService']=_0x137732,this[_0x3e8072(0x22f)]=_0x2dfc11,this[_0x3e8072(0x1a7)]=_0x254324,this[_0x3e8072(0x222)]();}[_0x53e2b0(0x222)](){const _0x4d46d4=_0x53e2b0;this[_0x4d46d4(0x1e9)](this[_0x4d46d4(0x1df)][_0x4d46d4(0x1e0)]({'getMutations':_0x279526=>xe(_0x279526,(_0x985dae,_0x1281d5)=>this[_0x4d46d4(0x22f)]['getOutlines'](_0x985dae,_0x1281d5),this['_getCommandScope'](_0x279526[_0x4d46d4(0x1dc)]),_0x5e2252=>this['_sheetsOutlineErrorService'][_0x4d46d4(0x1c5)](_0x5e2252))}));}[_0x53e2b0(0x1aa)](_0x21d02f){const _0x5f35b7=_0x53e2b0;let _0x2bbc46=_0x21d02f,_0x2f4b0e=_0x2bbc46!=null&&_0x2bbc46['unitId']?this['_univerInstanceService'][_0x5f35b7(0x242)](_0x2bbc46[_0x5f35b7(0x19f)],e[_0x5f35b7(0x236)][_0x5f35b7(0x19c)]):this['_univerInstanceService']['getCurrentUnitOfType'](e[_0x5f35b7(0x236)][_0x5f35b7(0x19c)]);if(!_0x2f4b0e)return;let _0x1e230d=_0x2bbc46!=null&&_0x2bbc46[_0x5f35b7(0x1d3)]?_0x2f4b0e['getSheetBySheetId'](_0x2bbc46[_0x5f35b7(0x1d3)]):_0x2f4b0e[_0x5f35b7(0x1c8)]();if(_0x1e230d)return{'unitId':_0x2f4b0e[_0x5f35b7(0x1be)](),'subUnitId':_0x1e230d[_0x5f35b7(0x205)]()};}};K=W([U(0x0,e['IUniverInstanceService']),U(0x1,(0x0,e[_0x53e2b0(0x201)])(t[_0x53e2b0(0x196)])),U(0x2,(0x0,e[_0x53e2b0(0x201)])(E)),U(0x3,(0x0,e[_0x53e2b0(0x201)])(D))],K);function xe(_0x24f915,_0x2fdf6e,_0x5f4fdf,_0x4b201d){const _0x288a57=_0x53e2b0;let _0xc9f74d=Ce(_0x24f915,_0x5f4fdf);if(!_0xc9f74d)return Z();let _0x3d3ff9=_0x2fdf6e(_0xc9f74d[_0x288a57(0x19f)],_0xc9f74d[_0x288a57(0x1d3)]);if(!_0x3d3ff9[_0x288a57(0x22b)](_0x37442a=>_0x37442a[_0x288a57(0x23a)]===_0xc9f74d[_0x288a57(0x23a)]))return Z();Se(_0x3d3ff9,_0xc9f74d,_0x24f915['id'],_0x4b201d);let _0xa1316f=we(_0xc9f74d,_0x3d3ff9);return{'redos':[{'id':B['id'],'params':_0xc9f74d}],'undos':[{'id':B['id'],'params':_0xa1316f}],'preRedos':[],'preUndos':[]};}function Se(_0x201f8a,_0x1da857,_0x56f2e7,_0x1d9b2c){const _0x1163df=_0x53e2b0;try{switch(_0x1da857['type']){case _0x1163df(0x1fc):v(_0x201f8a,_0x1da857);break;case _0x1163df(0x18c):y(_0x201f8a,_0x1da857);break;case'move':b(_0x201f8a,_0x1da857);break;}}catch(_0x5a11a1){throw _0x1d9b2c==null||_0x1d9b2c({'reason':c(_0x5a11a1),'commandId':_0x56f2e7,'unitId':_0x1da857[_0x1163df(0x19f)],'subUnitId':_0x1da857['subUnitId'],'axis':_0x1da857[_0x1163df(0x23a)],'outlineId':l(_0x5a11a1)}),new e[(_0x1163df(0x1ce))](_0x5a11a1 instanceof Error?_0x5a11a1['message']:'Invalid\x20dimension\x20outline\x20mutation');}}function Ce(_0x479344,_0x31cf4f){const _0xe53df1=_0x53e2b0;switch(_0x479344['id']){case t[_0xe53df1(0x19d)]['id']:return q(_0x479344[_0xe53df1(0x1dc)],_0xe53df1(0x20b),_0x31cf4f);case t['InsertColCommand']['id']:return q(_0x479344[_0xe53df1(0x1dc)],_0xe53df1(0x229),_0x31cf4f);case t[_0xe53df1(0x21f)]['id']:return J(_0x479344[_0xe53df1(0x1dc)],_0xe53df1(0x20b),_0x31cf4f);case t[_0xe53df1(0x1cc)]['id']:return J(_0x479344[_0xe53df1(0x1dc)],_0xe53df1(0x229),_0x31cf4f);case t[_0xe53df1(0x228)]['id']:return Y(_0x479344[_0xe53df1(0x1dc)],_0xe53df1(0x20b),_0x31cf4f);case t[_0xe53df1(0x1f8)]['id']:return Y(_0x479344['params'],_0xe53df1(0x229),_0x31cf4f);default:return null;}}function q(_0xfdc34f,_0x4c0aee,_0x2600cf){const _0x84584=_0x53e2b0;let _0x2e9da6=X(_0xfdc34f,_0x2600cf);if(!(_0xfdc34f!=null&&_0xfdc34f[_0x84584(0x175)])||!_0x2e9da6)return null;let _0xaa8761=_0x4c0aee===_0x84584(0x20b)?_0xfdc34f[_0x84584(0x175)]['startRow']:_0xfdc34f['range']['startColumn'],_0x4aefb6=_0x4c0aee==='row'?_0xfdc34f[_0x84584(0x175)][_0x84584(0x1fd)]:_0xfdc34f[_0x84584(0x175)][_0x84584(0x220)];return{..._0x2e9da6,'axis':_0x4c0aee,'type':_0x84584(0x1fc),'index':_0xaa8761,'count':_0x4aefb6-_0xaa8761+0x1};}function J(_0x5ccb4f,_0xaac79,_0x57fc9f){const _0x19a5fd=_0x53e2b0;let _0x1accce=X(_0x5ccb4f,_0x57fc9f);if(!(_0x5ccb4f!=null&&_0x5ccb4f['range'])||!_0x1accce)return null;let _0x5996f0=_0xaac79===_0x19a5fd(0x20b)?_0x5ccb4f[_0x19a5fd(0x175)][_0x19a5fd(0x1e3)]:_0x5ccb4f['range'][_0x19a5fd(0x1d6)],_0x308943=_0xaac79==='row'?_0x5ccb4f[_0x19a5fd(0x175)]['endRow']:_0x5ccb4f[_0x19a5fd(0x175)][_0x19a5fd(0x220)];return{..._0x1accce,'axis':_0xaac79,'type':_0x19a5fd(0x18c),'start':_0x5996f0,'end':_0x308943};}function Y(_0x294e57,_0x41ee4c,_0x152ab8){const _0x3a6df9=_0x53e2b0;let _0x103a75=X(_0x294e57,_0x152ab8);if(!(_0x294e57!=null&&_0x294e57[_0x3a6df9(0x1f9)])||!_0x294e57[_0x3a6df9(0x210)]||!_0x103a75)return null;let _0x45fcb0=_0x41ee4c===_0x3a6df9(0x20b)?_0x294e57['fromRange'][_0x3a6df9(0x1e3)]:_0x294e57[_0x3a6df9(0x1f9)]['startColumn'],_0x5e4f13=_0x41ee4c==='row'?_0x294e57[_0x3a6df9(0x1f9)]['endRow']:_0x294e57['fromRange'][_0x3a6df9(0x220)],_0x3799d9=_0x41ee4c==='row'?_0x294e57[_0x3a6df9(0x210)][_0x3a6df9(0x1e3)]:_0x294e57['toRange'][_0x3a6df9(0x1d6)];return{..._0x103a75,'axis':_0x41ee4c,'type':_0x3a6df9(0x1c4),'sourceStart':_0x45fcb0,'sourceEnd':_0x5e4f13,'destinationIndex':_0x3799d9};}function we(_0x5a93ea,_0x1c78f2){const _0x3c8e9e=_0x53e2b0;switch(_0x5a93ea[_0x3c8e9e(0x203)]){case _0x3c8e9e(0x1fc):return{'unitId':_0x5a93ea[_0x3c8e9e(0x19f)],'subUnitId':_0x5a93ea[_0x3c8e9e(0x1d3)],'axis':_0x5a93ea[_0x3c8e9e(0x23a)],'type':_0x3c8e9e(0x18c),'start':_0x5a93ea[_0x3c8e9e(0x1e6)],'end':_0x5a93ea['index']+_0x5a93ea['count']-0x1};case _0x3c8e9e(0x18c):return{'unitId':_0x5a93ea['unitId'],'subUnitId':_0x5a93ea[_0x3c8e9e(0x1d3)],'axis':_0x5a93ea[_0x3c8e9e(0x23a)],'type':_0x3c8e9e(0x1fc),'index':_0x5a93ea[_0x3c8e9e(0x17f)],'count':_0x5a93ea[_0x3c8e9e(0x239)]-_0x5a93ea['start']+0x1,'restoreOutlines':_0x1c78f2[_0x3c8e9e(0x221)](_0x4df03c=>_0x4df03c[_0x3c8e9e(0x19f)]===_0x5a93ea[_0x3c8e9e(0x19f)]&&_0x4df03c[_0x3c8e9e(0x1d3)]===_0x5a93ea[_0x3c8e9e(0x1d3)]&&_0x4df03c[_0x3c8e9e(0x23a)]===_0x5a93ea[_0x3c8e9e(0x23a)])};case'move':return Te(_0x5a93ea);}}function Te(_0x53c526){const _0x2be8d5=_0x53e2b0;let _0x195e5a=_0x53c526['sourceEnd']-_0x53c526[_0x2be8d5(0x182)]+0x1;return _0x53c526[_0x2be8d5(0x1d4)]>=_0x53c526[_0x2be8d5(0x182)]&&_0x53c526['destinationIndex']<=_0x53c526[_0x2be8d5(0x1bd)]+0x1?{..._0x53c526}:_0x53c526[_0x2be8d5(0x1d4)]>_0x53c526[_0x2be8d5(0x1bd)]+0x1?{..._0x53c526,'sourceStart':_0x53c526[_0x2be8d5(0x1d4)]-_0x195e5a,'sourceEnd':_0x53c526[_0x2be8d5(0x1d4)]-0x1,'destinationIndex':_0x53c526[_0x2be8d5(0x182)]}:{..._0x53c526,'sourceStart':_0x53c526[_0x2be8d5(0x1d4)],'sourceEnd':_0x53c526['destinationIndex']+_0x195e5a-0x1,'destinationIndex':_0x53c526[_0x2be8d5(0x1bd)]+0x1};}function X(_0x124871,_0xe692de){const _0x1af451=_0x53e2b0;let _0x5be4a4=(_0x124871==null?void 0x0:_0x124871['unitId'])??(_0xe692de==null?void 0x0:_0xe692de[_0x1af451(0x19f)]),_0x471861=(_0x124871==null?void 0x0:_0x124871[_0x1af451(0x1d3)])??(_0xe692de==null?void 0x0:_0xe692de[_0x1af451(0x1d3)]);return _0x5be4a4&&_0x471861?{'unitId':_0x5be4a4,'subUnitId':_0x471861}:null;}function Z(){const _0x23929c=_0x53e2b0;return{'redos':[...G[_0x23929c(0x1ff)]],'undos':[...G[_0x23929c(0x23c)]],'preRedos':[...G[_0x23929c(0x226)]??[]],'preUndos':[...G['preUndos']??[]]};}function _0x8272(){const _0xc3c5cf=['sheet.command.set-dimension-outline-collapsed','push','end','axis','SheetPermissionCheckController','undos','deserialize','WorkbookViewPermission','SHEET_OUTLINE_PLUGIN','setOutlines','transformOutlinesByInsert','getUnit','239970UNFywN','canAddDimensionOutline','constructor','removeUnit','sheet.command.add-dimension-outline','split\x20dimension\x20outline','debounceTime','sheet.command.clear-dimension-outlines','Plugin','values','getMaxColumns','string','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','range','DimensionOutlineError','set','sheet.mutation.remove-dimension-outline','_change$','ClearDimensionOutlinesCommand','dimension-outline-','setConfig','get','clear-range-not-contain-outline','start','version','MOVE_SPLITS_OUTLINE','sourceStart','out-of-bounds','merge','invalid-dimension-outline','startWith','Disposable','SetRowHiddenMutation','packageName','permissionPointUpdate$','getSheetCommandTarget','delete','toPrimitive','Crossing','Injector','_config','ICommandService','mergedOutlines','_injector','invalid-range','sheet.mutation.clear-dimension-outlines','SheetInterceptorService','permissionCheckWithoutRange','ROW','599234BzPEnF','sheet.mutation.set-dimension-outline-collapsed','function','UNIVER_SHEET','InsertRowCommand','valid','unitId','buildDimensionOutlineTree','symbol','getRowCount','name','depth','count','localeCompare','_sheetsOutlineErrorService','ClearDimensionOutlinesMutation','reason','_getCommandScope','SetRowVisibleMutation','from','change$','IUniverInstanceService','Invalid\x20dimension\x20outline\x20move\x20source\x20range','WorksheetViewPermission','9gDKaon','getUnitOutlines','restoreOutlines','IConfigService','1969150INQoKy','asObservable','CommandType','TransformDimensionOutlinesMutation','6cSUGMu','generateRandomId','sheet.mutation.add-dimension-outline','COMMAND','sourceEnd','getUnitId','getColumnCount','decorate','parse','max-depth','Invalid\x20outline\x20range','move','emit','iterator','sort','getActiveSheet','_commandService','_initResource','call','RemoveColCommand','pushUndoRedo','CustomCommandExecutionError','_configService','pop','DimensionOutlineErrorReason','SetColVisibleMutation','subUnitId','destinationIndex','_ensureUnitOutlines','startColumn','RemoveDimensionOutlineCommand','maxIndex','offset','result','mergedOutline','params','SetDimensionOutlineCollapsedMutation','outlineId','_sheetInterceptorService','interceptCommand','DependentOn','Move\x20would\x20split\x20dimension\x20outline:\x20','startRow','unknown','outlineList','index','IUndoRedoService','_initRegisterCommand','disposeWithMe','IPermissionService','crossing','onStarting','_error$','split','CROSSING','complete','length','max','defineProperty','3312848HKUTYc','COLUMN','message','collapsed','MoveColsCommand','fromRange','getOutlines','Subject','insert','endRow','join','redos','IResourceManagerService','Inject','SetColHiddenMutation','type','INVALID_RANGE','getSheetId','_outlines','map','UniverSheetsPlugin','sequenceExecute','DimensionOutlineAxis','row','42292ojmzAM','prototype','forEach','children','toRange','move-splits-outline','error$','UNKNOWN','MUTATION','SheetsOutlineErrorService','has','567960YOcQgn','dispose','next','pipe','_resourceManagerService','add','5413616qgbLGg','min','RemoveRowCommand','endColumn','filter','_initCommandInterceptor','OUT_OF_BOUNDS','registerCommand','hasDimensionOutlineViewPermission','preRedos','entries','MoveRowsCommand','column','AddDimensionOutlineMutation','some','find','transformOutlinesByDelete','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','_sheetsOutlineModel','RemoveDimensionOutlineMutation','includes','sheets-outline.config','object','39zCnsuT','sheet.mutation.transform-dimension-outlines','UniverInstanceType'];_0x8272=function(){return _0xc3c5cf;};return _0x8272();}let Q=class extends e[_0x53e2b0(0x187)]{constructor(_0x5b00e2,_0x5cce82){const _0x102c5d=_0x53e2b0;super(),this[_0x102c5d(0x21b)]=_0x5b00e2,this['_sheetsOutlineModel']=_0x5cce82,this['_initResource']();}[_0x53e2b0(0x1ca)](){const _0x4f9072=_0x53e2b0;this['disposeWithMe'](this[_0x4f9072(0x21b)]['registerPluginResource']({'pluginName':V,'businesses':[e[_0x4f9072(0x236)]['UNIVER_SHEET']],'toJson':_0xefa3bc=>JSON['stringify'](this[_0x4f9072(0x22f)]['serialize'](_0xefa3bc)),'parseJson':_0x5669e1=>JSON[_0x4f9072(0x1c1)](_0x5669e1),'onLoad':(_0x4c216e,_0x2ae453)=>this[_0x4f9072(0x22f)][_0x4f9072(0x23d)](_0x4c216e,_0x2ae453),'onUnLoad':_0x4c0f32=>this[_0x4f9072(0x22f)][_0x4f9072(0x16b)](_0x4c0f32)}));}};Q=W([U(0x0,e[_0x53e2b0(0x200)]),U(0x1,(0x0,e['Inject'])(E))],Q);let $=class extends e[_0x53e2b0(0x170)]{constructor(_0x364715=H,_0x13d174,_0x1867d4,_0x115285){const _0x27bd68=_0x53e2b0;super(),this['_config']=_0x364715,this['_injector']=_0x13d174,this[_0x27bd68(0x1c9)]=_0x1867d4,this[_0x27bd68(0x1cf)]=_0x115285;let {..._0x4ea428}=(0x0,e[_0x27bd68(0x184)])({},H,this[_0x27bd68(0x190)]);this[_0x27bd68(0x1cf)][_0x27bd68(0x17c)](_0x27bd68(0x232),_0x4ea428);}[_0x53e2b0(0x1ec)](){const _0x5cab9f=_0x53e2b0;this[_0x5cab9f(0x193)][_0x5cab9f(0x21c)]([E]),this[_0x5cab9f(0x193)]['add']([D]),this['_injector'][_0x5cab9f(0x21c)]([Q]),this[_0x5cab9f(0x193)]['add']([K]),this[_0x5cab9f(0x1e8)](),this[_0x5cab9f(0x193)][_0x5cab9f(0x17d)](E),this['_injector']['get'](D),this[_0x5cab9f(0x193)][_0x5cab9f(0x17d)](Q),this['_injector'][_0x5cab9f(0x17d)](K);}['_initRegisterCommand'](){[j,P,z,N]['forEach'](_0x2b4639=>{const _0xded37d=_0x1027;this[_0xded37d(0x1e9)](this['_commandService']['registerCommand'](_0x2b4639));}),[O,k,F,M,B]['forEach'](_0x524fca=>{const _0x4756ad=_0x1027;this[_0x4756ad(0x1e9)](this['_commandService'][_0x4756ad(0x224)](_0x524fca));});}};T($,'pluginName',V),T($,_0x53e2b0(0x189),ye),T($,_0x53e2b0(0x180),be),T($,_0x53e2b0(0x203),e[_0x53e2b0(0x236)][_0x53e2b0(0x19c)]),$=W([(0x0,e[_0x53e2b0(0x1e1)])(i['UniverLicensePlugin'],t[_0x53e2b0(0x208)]),U(0x1,(0x0,e[_0x53e2b0(0x201)])(e[_0x53e2b0(0x18f)])),U(0x2,e[_0x53e2b0(0x191)]),U(0x3,e[_0x53e2b0(0x1b4)])],$),exports['AddDimensionOutlineCommand']=j,exports[_0x53e2b0(0x22a)]=O,exports[_0x53e2b0(0x17a)]=N,exports[_0x53e2b0(0x1a8)]=M,exports[_0x53e2b0(0x20a)]=a,exports[_0x53e2b0(0x1d1)]=o,exports[_0x53e2b0(0x1d7)]=P,exports[_0x53e2b0(0x230)]=k,exports[_0x53e2b0(0x23f)]=V,exports['SetDimensionOutlineCollapsedCommand']=z,exports[_0x53e2b0(0x1dd)]=F,exports[_0x53e2b0(0x215)]=D,exports['SheetsOutlineModel']=E,exports[_0x53e2b0(0x1b8)]=B,Object['defineProperty'](exports,'UniverSheetsOutlinePlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x53e2b0(0x1a0)]=f,exports[_0x53e2b0(0x169)]=p,exports['getDimensionOutlineViewPermission$']=ue,exports[_0x53e2b0(0x225)]=A,exports[_0x53e2b0(0x22d)]=y,exports[_0x53e2b0(0x241)]=v,exports['transformOutlinesByMove']=b;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x2ccf30=_0xafe9;(function(_0x2d2b51,_0x5bc99e){var _0x1d329f=_0xafe9,_0xbb4df6=_0x2d2b51();while(!![]){try{var _0x5ec98b=-parseInt(_0x1d329f(0x142))/0x1+parseInt(_0x1d329f(0x152))/0x2*(parseInt(_0x1d329f(0x14d))/0x3)+parseInt(_0x1d329f(0x151))/0x4*(-parseInt(_0x1d329f(0x153))/0x5)+-parseInt(_0x1d329f(0x155))/0x6+parseInt(_0x1d329f(0x14b))/0x7*(parseInt(_0x1d329f(0x14e))/0x8)+parseInt(_0x1d329f(0x14f))/0x9*(parseInt(_0x1d329f(0x156))/0xa)+parseInt(_0x1d329f(0x141))/0xb;if(_0x5ec98b===_0x5bc99e)break;else _0xbb4df6['push'](_0xbb4df6['shift']());}catch(_0x55fa71){_0xbb4df6['push'](_0xbb4df6['shift']());}}}(_0x4bdc,0x6954c));import{AddDimensionOutlineCommand as _0x258396,ClearDimensionOutlinesCommand as _0x4c6254,DimensionOutlineAxis as _0x617f4f,DimensionOutlineErrorReason as _0x7be702,RemoveDimensionOutlineCommand as _0x824678,SetDimensionOutlineCollapsedCommand as _0x19c686,SheetsOutlineModel as _0x45b0a4}from'@univerjs-pro/sheets-outline';import{FEnum as _0x16e4e6}from'@univerjs/core/facade';import{FWorksheet as _0x190a49}from'@univerjs/sheets/facade';function _0x4bdc(){var _0x572cc4=['syncExecuteCommand','extend','6865078qHMqTp','313084NFZptR','_worksheet','getOutlines','addColumnOutline','DimensionOutlineAxis','_commandService','axis','COLUMN','_addDimensionOutline','155911mCVabt','removeDimensionOutline','318537gHGKfB','88pKEoLj','2259pdYIkL','DimensionOutlineErrorReason','202468iaBelK','14PHLdow','35JkslbP','getUnitId','3431988onarwX','2330cRWeoA','setDimensionOutlineCollapsed','ROW','getSheetId','_workbook'];_0x4bdc=function(){return _0x572cc4;};return _0x4bdc();}var l=class extends _0x16e4e6{get[_0x2ccf30(0x146)](){return _0x617f4f;}get[_0x2ccf30(0x150)](){return _0x7be702;}};function _0xafe9(_0x3b7c6f,_0x2d6a0f){_0x3b7c6f=_0x3b7c6f-0x13e;var _0x4bdcd3=_0x4bdc();var _0xafe97e=_0x4bdcd3[_0x3b7c6f];return _0xafe97e;}_0x16e4e6[_0x2ccf30(0x140)](l);var u=class extends _0x190a49{['addRowOutline'](_0x3fac52,_0x187ca3){var _0x25635a=_0x2ccf30;return this[_0x25635a(0x14a)](_0x617f4f[_0x25635a(0x158)],_0x3fac52,_0x187ca3);}[_0x2ccf30(0x145)](_0xce35e7,_0x1f67f4){var _0x5c9f19=_0x2ccf30;return this[_0x5c9f19(0x14a)](_0x617f4f[_0x5c9f19(0x149)],_0xce35e7,_0x1f67f4);}[_0x2ccf30(0x14c)](_0x3082f7){var _0x2f2557=_0x2ccf30;return this[_0x2f2557(0x147)][_0x2f2557(0x13f)](_0x824678['id'],{'unitId':this['_workbook'][_0x2f2557(0x154)](),'subUnitId':this[_0x2f2557(0x143)][_0x2f2557(0x159)](),'outlineId':_0x3082f7}),this;}[_0x2ccf30(0x157)](_0x1ca36a,_0x355f1e){var _0x5f4104=_0x2ccf30;return this[_0x5f4104(0x147)][_0x5f4104(0x13f)](_0x19c686['id'],{'unitId':this['_workbook']['getUnitId'](),'subUnitId':this[_0x5f4104(0x143)]['getSheetId'](),'outlineId':_0x1ca36a,'collapsed':_0x355f1e}),this;}['clearDimensionOutlines'](_0x51d602,_0x2f53f4,_0xe0f23b){var _0x309a86=_0x2ccf30;return this[_0x309a86(0x147)]['syncExecuteCommand'](_0x4c6254['id'],{'unitId':this[_0x309a86(0x13e)][_0x309a86(0x154)](),'subUnitId':this['_worksheet'][_0x309a86(0x159)](),'axis':_0x51d602,'start':_0x2f53f4,'end':_0xe0f23b}),this;}['getDimensionOutlines'](_0x84dc06){var _0x301a9e=_0x2ccf30;let _0x376072=this['_injector']['get'](_0x45b0a4)[_0x301a9e(0x144)](this[_0x301a9e(0x13e)]['getUnitId'](),this['_worksheet']['getSheetId']());return _0x84dc06?_0x376072['filter'](_0x555ecf=>_0x555ecf[_0x301a9e(0x148)]===_0x84dc06):_0x376072;}[_0x2ccf30(0x14a)](_0x3b93ea,_0x3dbec4,_0x3e0b5d){var _0x53e58e=_0x2ccf30;return this['_commandService'][_0x53e58e(0x13f)](_0x258396['id'],{'unitId':this[_0x53e58e(0x13e)][_0x53e58e(0x154)](),'subUnitId':this[_0x53e58e(0x143)]['getSheetId'](),'axis':_0x3b93ea,'start':_0x3dbec4,'end':_0x3dbec4+_0x3e0b5d-0x1}),this;}};_0x190a49['extend'](u);export{};
1
+ var _0x5aa996=_0x7c7d;(function(_0x34c2c0,_0x54f4aa){var _0x3f7192=_0x7c7d,_0x1923cb=_0x34c2c0();while(!![]){try{var _0x210be5=-parseInt(_0x3f7192(0xa3))/0x1*(parseInt(_0x3f7192(0xb4))/0x2)+-parseInt(_0x3f7192(0xb2))/0x3+parseInt(_0x3f7192(0xae))/0x4+-parseInt(_0x3f7192(0xaf))/0x5*(parseInt(_0x3f7192(0xad))/0x6)+parseInt(_0x3f7192(0xa6))/0x7*(parseInt(_0x3f7192(0xbb))/0x8)+parseInt(_0x3f7192(0xb1))/0x9+-parseInt(_0x3f7192(0xac))/0xa*(-parseInt(_0x3f7192(0xa9))/0xb);if(_0x210be5===_0x54f4aa)break;else _0x1923cb['push'](_0x1923cb['shift']());}catch(_0x5bb590){_0x1923cb['push'](_0x1923cb['shift']());}}}(_0x1e10,0x3c729));import{AddDimensionOutlineCommand as _0x148348,ClearDimensionOutlinesCommand as _0x1f5dba,DimensionOutlineAxis as _0x125627,DimensionOutlineErrorReason as _0x486a31,RemoveDimensionOutlineCommand as _0x2593bb,SetDimensionOutlineCollapsedCommand as _0x1c4868,SheetsOutlineModel as _0xb94b8c}from'@univerjs-pro/sheets-outline';import{FEnum as _0x28707a}from'@univerjs/core/facade';import{FWorksheet as _0x200477}from'@univerjs/sheets/facade';var l=class extends _0x28707a{get[_0x5aa996(0xa4)](){return _0x125627;}get[_0x5aa996(0xbd)](){return _0x486a31;}};_0x28707a['extend'](l);function _0x7c7d(_0x73d871,_0x2f9159){_0x73d871=_0x73d871-0xa1;var _0x1e104e=_0x1e10();var _0x7c7da2=_0x1e104e[_0x73d871];return _0x7c7da2;}function _0x1e10(){var _0x846b4d=['247574IyDLMS','addColumnOutline','addRowOutline','clearDimensionOutlines','COLUMN','setDimensionOutlineCollapsed','getUnitId','3678424syeiRO','_worksheet','DimensionOutlineErrorReason','_injector','_workbook','1iYKINe','DimensionOutlineAxis','syncExecuteCommand','7iEOtUw','filter','getDimensionOutlines','19426mrPFAk','_commandService','getSheetId','1490OQNiYl','96prQiNU','367120MpRdnw','140340OehOgo','_addDimensionOutline','765999yfhKPu','238080ukKerN','get'];_0x1e10=function(){return _0x846b4d;};return _0x1e10();}var u=class extends _0x200477{[_0x5aa996(0xb6)](_0x1abeaf,_0x429e94){var _0x416f11=_0x5aa996;return this[_0x416f11(0xb0)](_0x125627['ROW'],_0x1abeaf,_0x429e94);}[_0x5aa996(0xb5)](_0x5b40e6,_0x300ba4){var _0x4c1d43=_0x5aa996;return this[_0x4c1d43(0xb0)](_0x125627[_0x4c1d43(0xb8)],_0x5b40e6,_0x300ba4);}['removeDimensionOutline'](_0x255975){var _0x210b90=_0x5aa996;return this[_0x210b90(0xaa)][_0x210b90(0xa5)](_0x2593bb['id'],{'unitId':this[_0x210b90(0xa2)][_0x210b90(0xba)](),'subUnitId':this[_0x210b90(0xbc)]['getSheetId'](),'outlineId':_0x255975}),this;}[_0x5aa996(0xb9)](_0x38f674,_0x441c0f){var _0x362c89=_0x5aa996;return this['_commandService'][_0x362c89(0xa5)](_0x1c4868['id'],{'unitId':this[_0x362c89(0xa2)][_0x362c89(0xba)](),'subUnitId':this[_0x362c89(0xbc)][_0x362c89(0xab)](),'outlineId':_0x38f674,'collapsed':_0x441c0f}),this;}[_0x5aa996(0xb7)](_0x18b388,_0x780bd2,_0x529d4d){var _0x51d36e=_0x5aa996;return this[_0x51d36e(0xaa)][_0x51d36e(0xa5)](_0x1f5dba['id'],{'unitId':this[_0x51d36e(0xa2)][_0x51d36e(0xba)](),'subUnitId':this['_worksheet']['getSheetId'](),'axis':_0x18b388,'start':_0x780bd2,'end':_0x529d4d}),this;}[_0x5aa996(0xa8)](_0x2a7ec0){var _0x11be4d=_0x5aa996;let _0x35ebcc=this[_0x11be4d(0xa1)][_0x11be4d(0xb3)](_0xb94b8c)['getOutlines'](this[_0x11be4d(0xa2)][_0x11be4d(0xba)](),this[_0x11be4d(0xbc)][_0x11be4d(0xab)]());return _0x2a7ec0?_0x35ebcc[_0x11be4d(0xa7)](_0x215ba6=>_0x215ba6['axis']===_0x2a7ec0):_0x35ebcc;}['_addDimensionOutline'](_0x1af51d,_0x447b95,_0x31983f){var _0x3cd374=_0x5aa996;return this[_0x3cd374(0xaa)][_0x3cd374(0xa5)](_0x148348['id'],{'unitId':this[_0x3cd374(0xa2)][_0x3cd374(0xba)](),'subUnitId':this[_0x3cd374(0xbc)]['getSheetId'](),'axis':_0x1af51d,'start':_0x447b95,'end':_0x447b95+_0x31983f-0x1}),this;}};_0x200477['extend'](u);export{};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1945f3=_0x340b;(function(_0x4ad7e3,_0x22bac3){const _0x2e6f87=_0x340b,_0x2614d7=_0x4ad7e3();while(!![]){try{const _0x30bc69=parseInt(_0x2e6f87(0x103))/0x1*(-parseInt(_0x2e6f87(0x15b))/0x2)+parseInt(_0x2e6f87(0xe7))/0x3*(parseInt(_0x2e6f87(0x10e))/0x4)+parseInt(_0x2e6f87(0x189))/0x5+parseInt(_0x2e6f87(0x14e))/0x6*(-parseInt(_0x2e6f87(0x177))/0x7)+parseInt(_0x2e6f87(0x175))/0x8+-parseInt(_0x2e6f87(0x12e))/0x9*(parseInt(_0x2e6f87(0x146))/0xa)+-parseInt(_0x2e6f87(0x107))/0xb*(-parseInt(_0x2e6f87(0x170))/0xc);if(_0x30bc69===_0x22bac3)break;else _0x2614d7['push'](_0x2614d7['shift']());}catch(_0xa5ba14){_0x2614d7['push'](_0x2614d7['shift']());}}}(_0x22d4,0x8cd97));import{CommandType as _0x334d72,CustomCommandExecutionError as _0x550f7f,DependentOn as _0x4d5652,Disposable as _0xe607e7,ICommandService as _0x3e4f6a,IConfigService as _0x4e9855,IPermissionService as _0x52c033,IResourceManagerService as _0x2ddefa,IUndoRedoService as _0x3ed999,IUniverInstanceService as _0xacd12c,Inject as _0x1e8506,Injector as _0x3552b1,Plugin as _0xf25005,UniverInstanceType as _0x4827d7,generateRandomId as _0x1ccc63,merge as _0x1a4160,sequenceExecute as _0x3d56de}from'@univerjs/core';import{InsertColCommand as _0x43376c,InsertRowCommand as _0x1dc395,MoveColsCommand as _0x4bbbc6,MoveRowsCommand as _0x1560e4,RemoveColCommand as _0x8bce70,RemoveRowCommand as _0x4bd3fd,SetColHiddenMutation as _0x58f5dc,SetColVisibleMutation as _0x55797a,SetRowHiddenMutation as _0x301c72,SetRowVisibleMutation as _0xfbefd0,SheetInterceptorService as _0x5fd442,SheetPermissionCheckController as _0x356244,UniverSheetsPlugin as _0x5d1375,WorkbookViewPermission as _0x4137cc,WorksheetViewPermission as _0x2efec8,getSheetCommandTarget as _0x47e27f}from'@univerjs/sheets';import{Subject as _0x2ac295,of as _0x2a5258}from'rxjs';import{debounceTime as _0x2abf5e,map as _0x34f6e0,startWith as _0xd1f6d2}from'rxjs/operators';import{UniverLicensePlugin as _0x269374}from'@univerjs-pro/license';let _e=function(_0x50831e){const _0x534bca=_0x340b;return _0x50831e[_0x534bca(0x187)]=_0x534bca(0x141),_0x50831e[_0x534bca(0x15e)]=_0x534bca(0x174),_0x50831e;}({}),ve=function(_0x588fae){const _0x1c8447=_0x340b;return _0x588fae[_0x1c8447(0x158)]=_0x1c8447(0x18b),_0x588fae[_0x1c8447(0x12f)]=_0x1c8447(0x179),_0x588fae['CROSSING']='crossing',_0x588fae[_0x1c8447(0x128)]='max-depth',_0x588fae['MOVE_SPLITS_OUTLINE']='move-splits-outline',_0x588fae[_0x1c8447(0x15a)]=_0x1c8447(0x122),_0x588fae[_0x1c8447(0x194)]=_0x1c8447(0x17d),_0x588fae;}({});var S=class extends Error{constructor(_0xb30d1,_0x413739,_0x3b88ed){const _0xaee869=_0x340b;super(_0x413739),this[_0xaee869(0x167)]=_0xb30d1,this[_0xaee869(0x116)]=_0x3b88ed,this[_0xaee869(0x144)]=_0xaee869(0x161);}};function ye(_0x3cb719){const _0x2ca437=_0x340b;return _0x3cb719 instanceof S?_0x3cb719['reason']:_0x3cb719 instanceof Error?_0x3cb719[_0x2ca437(0x18c)][_0x2ca437(0xf6)](_0x2ca437(0x18d))?_0x2ca437(0x131):_0x3cb719[_0x2ca437(0x18c)][_0x2ca437(0xf6)](_0x2ca437(0xf8))?_0x2ca437(0x17c):_0x3cb719['message'][_0x2ca437(0xf6)](_0x2ca437(0x12b))?'crossing':_0x3cb719[_0x2ca437(0x18c)][_0x2ca437(0xf6)]('range')?_0x2ca437(0x18b):_0x2ca437(0x17d):'unknown';}function be(_0x1a73bf){const _0x5876f5=_0x340b;return _0x1a73bf instanceof S?_0x1a73bf[_0x5876f5(0x116)]:void 0x0;}const C=0x2**0x35-0x1;function w(_0x249ce2,_0xe8816){const _0x496c65=_0x340b;return _0x249ce2[_0x496c65(0x109)]===_0xe8816[_0x496c65(0x109)]&&_0x249ce2[_0x496c65(0x12d)]===_0xe8816[_0x496c65(0x12d)]&&_0x249ce2[_0x496c65(0x135)]===_0xe8816[_0x496c65(0x135)];}function T(_0x5c7b76,_0x589e17={}){const _0x5d94db=_0x340b;let _0x478a37=_0x589e17[_0x5d94db(0x182)]??0x8,_0x56e4b0=new Map();for(let _0x358814 of _0x5c7b76){let _0x35da1a=_0x358814[_0x5d94db(0x109)]+':'+_0x358814[_0x5d94db(0x12d)]+':'+_0x358814['axis'],_0xe77fb=_0x56e4b0[_0x5d94db(0x140)](_0x35da1a);_0xe77fb?_0xe77fb[_0x5d94db(0x110)](_0x358814):_0x56e4b0[_0x5d94db(0x13c)](_0x35da1a,[_0x358814]);}let _0x41d13=[];for(let _0x5a303f of _0x56e4b0[_0x5d94db(0x126)]()){let _0x1f05dc=[..._0x5a303f][_0x5d94db(0x17f)](j),_0x44ff4d=[];for(let _0x147071 of _0x1f05dc){for(Me(_0x147071);_0x44ff4d[_0x5d94db(0x16c)]>0x0&&_0x147071[_0x5d94db(0xf9)]>_0x44ff4d[_0x44ff4d[_0x5d94db(0x16c)]-0x1][_0x5d94db(0x137)];)_0x44ff4d[_0x5d94db(0x118)]();let _0x20ae5e=_0x44ff4d[_0x44ff4d[_0x5d94db(0x16c)]-0x1];if(_0x20ae5e&&_0x147071[_0x5d94db(0x137)]>_0x20ae5e[_0x5d94db(0x137)])throw new S(_0x5d94db(0x151),_0x5d94db(0x14a),_0x147071['id']);let _0x1cffa5=_0x20ae5e?_0x20ae5e['depth']+0x1:0x1;if(_0x1cffa5>_0x478a37)throw new S(_0x5d94db(0x17c),_0x5d94db(0x106)+_0x478a37,_0x147071['id']);let _0x1ec0c1={..._0x147071,'depth':_0x1cffa5,'parentId':_0x20ae5e==null?void 0x0:_0x20ae5e['id'],'anchor':_0x147071[_0x5d94db(0x137)],'children':[]};_0x20ae5e?_0x20ae5e[_0x5d94db(0x168)][_0x5d94db(0x110)](_0x1ec0c1):_0x41d13[_0x5d94db(0x110)](_0x1ec0c1),_0x44ff4d[_0x5d94db(0x110)](_0x1ec0c1);}}return _0x41d13;}function E(_0x6b3da4,_0x146068,_0x36d851={}){const _0x27af95=_0x340b;if(_0x146068[_0x27af95(0xf9)]<0x0||_0x146068[_0x27af95(0xf9)]>_0x146068[_0x27af95(0x137)])return{'valid':!0x1,'reason':_0x27af95(0x18b)};if(_0x36d851[_0x27af95(0x120)]!=null&&_0x146068[_0x27af95(0x137)]>=_0x36d851[_0x27af95(0x120)])return{'valid':!0x1,'reason':'out-of-bounds'};let _0x20bf27=_0x6b3da4[_0x27af95(0x145)](_0x5431e6=>w(_0x5431e6,_0x146068));for(let _0x3c3ec3 of _0x20bf27)if(Ne(_0x3c3ec3,_0x146068))return{'valid':!0x1,'reason':_0x27af95(0x151)};try{T([..._0x6b3da4,_0x146068],_0x36d851);}catch(_0x18bfaf){let _0x34a611=ye(_0x18bfaf);return _0x34a611===_0x27af95(0x17c)?{'valid':!0x1,'reason':_0x27af95(0x17c)}:_0x34a611==='invalid-range'?{'valid':!0x1,'reason':_0x27af95(0x18b)}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function xe(_0x1e6065,_0x5971e2,_0x3774c8={}){const _0x3ab630=_0x340b;let _0x3d03c2=E(_0x1e6065,_0x5971e2,_0x3774c8);if(!_0x3d03c2[_0x3ab630(0xfa)])throw Error(_0x3d03c2[_0x3ab630(0x167)]??_0x3ab630(0x163));return[..._0x1e6065,_0x5971e2];}function Se(_0x12a4ef,_0x5d652b){const _0x15a180=_0x340b;let _0x2957e8=_0x5d652b['start'],_0x3c86f5=_0x5d652b[_0x15a180(0x137)],_0x40ad9f=[],_0x1083e4=!0x0;for(;_0x1083e4;){_0x1083e4=!0x1;for(let _0x304d44 of _0x12a4ef)_0x40ad9f[_0x15a180(0xf6)](_0x304d44)||!w(_0x304d44,_0x5d652b)||!Ae(_0x304d44['start'],_0x304d44[_0x15a180(0x137)],_0x2957e8,_0x3c86f5)||(_0x40ad9f[_0x15a180(0x110)](_0x304d44),_0x2957e8=Math[_0x15a180(0xed)](_0x2957e8,_0x304d44[_0x15a180(0xf9)]),_0x3c86f5=Math[_0x15a180(0x143)](_0x3c86f5,_0x304d44[_0x15a180(0x137)]),_0x1083e4=!0x0);}if(_0x40ad9f[_0x15a180(0x16c)]===0x0)return null;let [_0x4821e4]=[..._0x40ad9f][_0x15a180(0x17f)](j);return{'mergedOutline':{..._0x4821e4,'start':_0x2957e8,'end':_0x3c86f5},'mergedOutlines':_0x40ad9f};}function Ce(_0x129fe7,_0x2a4087){const _0x1ee537=_0x340b;return _0x129fe7[_0x1ee537(0x145)](_0x278de8=>!w(_0x278de8,_0x2a4087)||!(_0x278de8[_0x1ee537(0xf9)]>=_0x2a4087[_0x1ee537(0xf9)]&&_0x278de8['end']<=_0x2a4087[_0x1ee537(0x137)]));}function we(_0x2c8927,_0xcbb817,_0x17bb94,_0x4be2e8){const _0x47f6d7=_0x340b;return Te(_0x2c8927['filter'](_0x5c33be=>_0x5c33be[_0x47f6d7(0x109)]===_0xcbb817&&_0x5c33be['subUnitId']===_0x17bb94&&_0x5c33be['axis']===_0x4be2e8&&_0x5c33be[_0x47f6d7(0x17b)])[_0x47f6d7(0x18f)](_0x2fb8e2=>({'start':_0x2fb8e2[_0x47f6d7(0xf9)],'end':_0x2fb8e2[_0x47f6d7(0x137)]})));}function Te(_0x9c8d98){const _0x1dd2c8=_0x340b;if(_0x9c8d98[_0x1dd2c8(0x16c)]===0x0)return[];let _0x4b5377=[..._0x9c8d98]['sort']((_0x11eb14,_0x1a5daf)=>_0x11eb14['start']-_0x1a5daf[_0x1dd2c8(0xf9)]||_0x11eb14[_0x1dd2c8(0x137)]-_0x1a5daf[_0x1dd2c8(0x137)]),_0x260fac=[];for(let _0x4e7e5c of _0x4b5377){let _0x38a5d6=_0x260fac[_0x260fac[_0x1dd2c8(0x16c)]-0x1];!_0x38a5d6||_0x4e7e5c[_0x1dd2c8(0xf9)]>_0x38a5d6[_0x1dd2c8(0x137)]+0x1?_0x260fac['push']({..._0x4e7e5c}):_0x38a5d6[_0x1dd2c8(0x137)]=Math[_0x1dd2c8(0x143)](_0x38a5d6[_0x1dd2c8(0x137)],_0x4e7e5c[_0x1dd2c8(0x137)]);}return _0x260fac;}function D(_0x473212,_0x263aa1){const _0x4ff98d=_0x340b;return _0x263aa1[_0x4ff98d(0xf2)]<=0x0?_0x473212:A(_0x473212[_0x4ff98d(0x18f)](_0x37a8de=>w(_0x37a8de,_0x263aa1)?_0x263aa1[_0x4ff98d(0x10f)]<=_0x37a8de[_0x4ff98d(0xf9)]?{..._0x37a8de,'start':_0x37a8de['start']+_0x263aa1[_0x4ff98d(0xf2)],'end':_0x37a8de[_0x4ff98d(0x137)]+_0x263aa1['count']}:_0x37a8de[_0x4ff98d(0xf9)]<_0x263aa1[_0x4ff98d(0x10f)]&&_0x263aa1[_0x4ff98d(0x10f)]<=_0x37a8de[_0x4ff98d(0x137)]?{..._0x37a8de,'end':_0x37a8de['end']+_0x263aa1['count']}:_0x37a8de:_0x37a8de));}function O(_0x51de93,_0x256844){const _0x1ebd44=_0x340b;if(_0x256844['start']>_0x256844[_0x1ebd44(0x137)])return _0x51de93;let _0x5449b8=_0x256844[_0x1ebd44(0x137)]-_0x256844['start']+0x1,_0x224585=[];for(let _0x332cc7 of _0x51de93){if(!w(_0x332cc7,_0x256844)){_0x224585[_0x1ebd44(0x110)](_0x332cc7);continue;}if(_0x332cc7[_0x1ebd44(0x137)]<_0x256844[_0x1ebd44(0xf9)]){_0x224585['push'](_0x332cc7);continue;}if(_0x332cc7[_0x1ebd44(0xf9)]>_0x256844[_0x1ebd44(0x137)]){_0x224585[_0x1ebd44(0x110)]({..._0x332cc7,'start':_0x332cc7['start']-_0x5449b8,'end':_0x332cc7[_0x1ebd44(0x137)]-_0x5449b8});continue;}let _0x206688=Math[_0x1ebd44(0x143)](_0x332cc7[_0x1ebd44(0xf9)],_0x256844[_0x1ebd44(0xf9)]),_0x5a1e90=Math['min'](_0x332cc7[_0x1ebd44(0x137)],_0x256844[_0x1ebd44(0x137)]),_0x348392=Math[_0x1ebd44(0x143)](0x0,_0x5a1e90-_0x206688+0x1),_0x1711ee=_0x332cc7[_0x1ebd44(0x137)]-_0x332cc7[_0x1ebd44(0xf9)]+0x1-_0x348392;if(_0x1711ee<=0x0)continue;let _0x5e6dbf=_0x332cc7[_0x1ebd44(0xf9)]<_0x256844['start']?_0x332cc7[_0x1ebd44(0xf9)]:_0x256844[_0x1ebd44(0xf9)];_0x224585[_0x1ebd44(0x110)]({..._0x332cc7,'start':_0x5e6dbf,'end':_0x5e6dbf+_0x1711ee-0x1});}return A(_0x224585);}function k(_0xb939df,_0xb921a8){const _0x4f93e2=_0x340b;if(_0xb921a8[_0x4f93e2(0x173)]>_0xb921a8[_0x4f93e2(0x192)])return _0xb939df;let _0x560782=[];for(let _0x3e66cb of _0xb939df){if(!w(_0x3e66cb,_0xb921a8)){_0x560782[_0x4f93e2(0x110)](_0x3e66cb);continue;}let _0x34461d=Ee(_0x3e66cb,_0xb921a8);if(_0x34461d['type']===_0x4f93e2(0x105))throw new S(_0x4f93e2(0x131),_0x4f93e2(0x183)+_0x3e66cb['id'],_0x3e66cb['id']);_0x560782[_0x4f93e2(0x110)](_0x34461d[_0x4f93e2(0x121)]);}return A(_0x560782);}function Ee(_0x3a0986,_0x5aa105){const _0x955778=_0x340b;let _0xaa9ed7=De(_0x5aa105['sourceStart'],_0x5aa105[_0x955778(0x192)]+0x1,_0x5aa105[_0x955778(0xe6)]),_0x1e49ac=[],_0x584a87={'start':_0x3a0986[_0x955778(0xf9)],'end':_0x3a0986[_0x955778(0x137)]+0x1};for(let _0x16d92d of _0xaa9ed7){let _0x39bb55=Oe(_0x584a87,_0x16d92d[_0x955778(0x16e)]);_0x39bb55&&_0x1e49ac['push']({'start':_0x39bb55['start']+_0x16d92d[_0x955778(0x18a)],'end':_0x39bb55['end']+_0x16d92d['offset']});}let _0x4cff97=ke(_0x1e49ac);return _0x4cff97['length']===0x1?{'type':'ok','outline':{..._0x3a0986,'start':_0x4cff97[0x0]['start'],'end':_0x4cff97[0x0][_0x955778(0x137)]-0x1}}:{'type':'split','outline':_0x3a0986,'ranges':_0x4cff97};}function De(_0x46bd71,_0x3fc3be,_0x3fb3b2){const _0x43d74d=_0x340b;let _0x1b53c3=_0x3fc3be-_0x46bd71;if(_0x1b53c3<=0x0)throw Error(_0x43d74d(0xee));return _0x3fb3b2>=_0x46bd71&&_0x3fb3b2<=_0x3fc3be?[{'range':{'start':0x0,'end':C},'offset':0x0}]:_0x3fb3b2<_0x46bd71?[{'range':{'start':0x0,'end':_0x3fb3b2},'offset':0x0},{'range':{'start':_0x3fb3b2,'end':_0x46bd71},'offset':_0x1b53c3},{'range':{'start':_0x46bd71,'end':_0x3fc3be},'offset':_0x3fb3b2-_0x46bd71},{'range':{'start':_0x3fc3be,'end':C},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x46bd71},'offset':0x0},{'range':{'start':_0x46bd71,'end':_0x3fc3be},'offset':_0x3fb3b2-_0x3fc3be},{'range':{'start':_0x3fc3be,'end':_0x3fb3b2},'offset':-_0x1b53c3},{'range':{'start':_0x3fb3b2,'end':C},'offset':0x0}];}function Oe(_0x24035d,_0x146089){const _0x205808=_0x340b;let _0x15c226=Math[_0x205808(0x143)](_0x24035d[_0x205808(0xf9)],_0x146089[_0x205808(0xf9)]),_0x3af7aa=Math[_0x205808(0xed)](_0x24035d['end'],_0x146089[_0x205808(0x137)]);return _0x15c226>=_0x3af7aa?null:{'start':_0x15c226,'end':_0x3af7aa};}function ke(_0x51f5c0){const _0x3c3560=_0x340b;if(_0x51f5c0[_0x3c3560(0x16c)]===0x0)return[];let _0x197551=[..._0x51f5c0]['sort']((_0xadb28b,_0x11a571)=>_0xadb28b[_0x3c3560(0xf9)]-_0x11a571[_0x3c3560(0xf9)]||_0xadb28b['end']-_0x11a571[_0x3c3560(0x137)]),_0xf0a2ac=[];for(let _0x17c776 of _0x197551){let _0xe1696d=_0xf0a2ac[_0xf0a2ac[_0x3c3560(0x16c)]-0x1];!_0xe1696d||_0x17c776[_0x3c3560(0xf9)]>_0xe1696d['end']?_0xf0a2ac[_0x3c3560(0x110)]({..._0x17c776}):_0xe1696d[_0x3c3560(0x137)]=Math[_0x3c3560(0x143)](_0xe1696d[_0x3c3560(0x137)],_0x17c776[_0x3c3560(0x137)]);}return _0xf0a2ac;}function Ae(_0x5eac10,_0x935319,_0x9e7c6a,_0x567d5c){return _0x935319+0x1===_0x9e7c6a||_0x567d5c+0x1===_0x5eac10;}function A(_0x1dcdbe){let _0x5b6fd0=je(_0x1dcdbe);return T(_0x5b6fd0),_0x5b6fd0;}function je(_0x110a4f){const _0x4024a5=_0x340b;let _0x33b65d=new Map();for(let _0x29c48a of _0x110a4f){let _0x320c86=[_0x29c48a['unitId'],_0x29c48a[_0x4024a5(0x12d)],_0x29c48a['axis'],_0x29c48a['start'],_0x29c48a[_0x4024a5(0x137)]][_0x4024a5(0xe9)](':'),_0x2c771e=_0x33b65d['get'](_0x320c86);if(!_0x2c771e){_0x33b65d[_0x4024a5(0x13c)](_0x320c86,_0x29c48a);continue;}_0x33b65d[_0x4024a5(0x13c)](_0x320c86,{..._0x2c771e,'collapsed':_0x2c771e[_0x4024a5(0x17b)]||_0x29c48a[_0x4024a5(0x17b)]});}return Array['from'](_0x33b65d[_0x4024a5(0x126)]());}function j(_0x3c679a,_0x6682c5){const _0x37b87c=_0x340b;return _0x3c679a['unitId']===_0x6682c5[_0x37b87c(0x109)]?_0x3c679a['subUnitId']===_0x6682c5['subUnitId']?_0x3c679a[_0x37b87c(0x135)]===_0x6682c5[_0x37b87c(0x135)]?_0x3c679a[_0x37b87c(0xf9)]===_0x6682c5['start']?_0x6682c5[_0x37b87c(0x137)]-_0x3c679a[_0x37b87c(0x137)]:_0x3c679a[_0x37b87c(0xf9)]-_0x6682c5[_0x37b87c(0xf9)]:_0x3c679a[_0x37b87c(0x135)][_0x37b87c(0x104)](_0x6682c5[_0x37b87c(0x135)]):_0x3c679a['subUnitId'][_0x37b87c(0x104)](_0x6682c5[_0x37b87c(0x12d)]):_0x3c679a['unitId'][_0x37b87c(0x104)](_0x6682c5[_0x37b87c(0x109)]);}function Me(_0x40e335){const _0x726795=_0x340b;if(_0x40e335[_0x726795(0xf9)]>_0x40e335['end'])throw new S(_0x726795(0x18b),_0x726795(0xf7),_0x40e335['id']);}function Ne(_0x11e525,_0x2007e4){const _0x5a58dd=_0x340b;let _0x547c40=_0x11e525[_0x5a58dd(0xf9)]<=_0x2007e4['end']&&_0x2007e4['start']<=_0x11e525[_0x5a58dd(0x137)],_0x1818bf=_0x11e525['start']<=_0x2007e4[_0x5a58dd(0xf9)]&&_0x2007e4[_0x5a58dd(0x137)]<=_0x11e525[_0x5a58dd(0x137)],_0x181031=_0x2007e4[_0x5a58dd(0xf9)]<=_0x11e525['start']&&_0x11e525[_0x5a58dd(0x137)]<=_0x2007e4['end'];return _0x547c40&&!_0x1818bf&&!_0x181031;}function M(_0x152678){'@babel/helpers - typeof';const _0x5793fb=_0x340b;return M=typeof Symbol==_0x5793fb(0x108)&&typeof Symbol['iterator']==_0x5793fb(0x193)?function(_0x224a89){return typeof _0x224a89;}:function(_0x1457dd){const _0xedd4b0=_0x5793fb;return _0x1457dd&&typeof Symbol==_0xedd4b0(0x108)&&_0x1457dd[_0xedd4b0(0x147)]===Symbol&&_0x1457dd!==Symbol[_0xedd4b0(0x150)]?'symbol':typeof _0x1457dd;},M(_0x152678);}function Pe(_0x5f0666,_0x194964){const _0x2cebc6=_0x340b;if(M(_0x5f0666)!=_0x2cebc6(0x14c)||!_0x5f0666)return _0x5f0666;var _0x165b92=_0x5f0666[Symbol[_0x2cebc6(0x162)]];if(_0x165b92!==void 0x0){var _0x4caca0=_0x165b92[_0x2cebc6(0x169)](_0x5f0666,_0x194964||'default');if(M(_0x4caca0)!=_0x2cebc6(0x14c))return _0x4caca0;throw TypeError(_0x2cebc6(0x14b));}return(_0x194964==='string'?String:Number)(_0x5f0666);}function Fe(_0x2ff834){const _0x50f39d=_0x340b;var _0x3d6f6d=Pe(_0x2ff834,_0x50f39d(0x166));return M(_0x3d6f6d)==_0x50f39d(0x193)?_0x3d6f6d:_0x3d6f6d+'';}function N(_0x1ae1a0,_0x252c75,_0x1a848c){const _0x451983=_0x340b;return(_0x252c75=Fe(_0x252c75))in _0x1ae1a0?Object[_0x451983(0x157)](_0x1ae1a0,_0x252c75,{'value':_0x1a848c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1ae1a0[_0x252c75]=_0x1a848c,_0x1ae1a0;}var P=class extends _0xe607e7{constructor(..._0x52a0b6){const _0x431709=_0x340b;super(..._0x52a0b6),N(this,_0x431709(0x117),new Map()),N(this,_0x431709(0x130),new _0x2ac295()),N(this,_0x431709(0x125),this[_0x431709(0x130)][_0x431709(0x100)]());}[_0x1945f3(0x127)](_0x12c125,_0x3893b5){var _0x346553;return[...((_0x346553=this['_outlines']['get'](_0x12c125))==null?void 0x0:_0x346553['get'](_0x3893b5))??[]];}[_0x1945f3(0x16b)](_0x15e0d0){const _0x20192a=_0x1945f3;let _0xedb941=this[_0x20192a(0x117)]['get'](_0x15e0d0),_0x5eb4ab=new Map();return _0xedb941==null||_0xedb941[_0x20192a(0xfe)]((_0x24c5d0,_0x2086fc)=>{const _0x2835e0=_0x20192a;_0x5eb4ab[_0x2835e0(0x13c)](_0x2086fc,[..._0x24c5d0]);}),_0x5eb4ab;}[_0x1945f3(0x17e)](_0x4ec0d8,_0x41cd3a,_0x265dfd){const _0x544e7b=_0x1945f3;this[_0x544e7b(0xf0)](_0x4ec0d8)['set'](_0x41cd3a,[..._0x265dfd]),this[_0x544e7b(0x130)][_0x544e7b(0x153)]({'unitId':_0x4ec0d8,'subUnitId':_0x41cd3a});}[_0x1945f3(0x13a)](_0x4e353d){const _0x382995=_0x1945f3;this[_0x382995(0x117)][_0x382995(0x139)](_0x4e353d),this['_change$'][_0x382995(0x153)]({'unitId':_0x4e353d});}[_0x1945f3(0x10a)](_0x1def64){const _0x1221ec=_0x1945f3;let _0x3748a5=this['_outlines'][_0x1221ec(0x140)](_0x1def64),_0x465828={};return _0x3748a5==null||_0x3748a5[_0x1221ec(0xfe)]((_0x21f921,_0x5c576f)=>{_0x465828[_0x5c576f]={'outlineList':[..._0x21f921]};}),_0x465828;}['deserialize'](_0x41f66e,_0x5e607e){const _0x3d23dd=_0x1945f3;let _0x5cb89f=new Map();Object[_0x3d23dd(0x152)](_0x5e607e)[_0x3d23dd(0xfe)](([_0x1c9931,_0x80570b])=>{const _0x2778a0=_0x3d23dd;_0x5cb89f[_0x2778a0(0x13c)](_0x1c9931,[..._0x80570b[_0x2778a0(0xf3)]??[]]);}),this[_0x3d23dd(0x117)][_0x3d23dd(0x13c)](_0x41f66e,_0x5cb89f),this[_0x3d23dd(0x130)][_0x3d23dd(0x153)]({'unitId':_0x41f66e});}[_0x1945f3(0xec)](){const _0x523efe=_0x1945f3;super[_0x523efe(0xec)](),this[_0x523efe(0x117)]['clear'](),this['_change$'][_0x523efe(0x17a)]();}[_0x1945f3(0xf0)](_0x447d17){const _0x14bcd7=_0x1945f3;let _0x5713ed=this['_outlines']['get'](_0x447d17);return _0x5713ed||(_0x5713ed=new Map(),this[_0x14bcd7(0x117)][_0x14bcd7(0x13c)](_0x447d17,_0x5713ed)),_0x5713ed;}},F=class extends _0xe607e7{constructor(..._0x3ec915){const _0x22684f=_0x1945f3;super(..._0x3ec915),N(this,'_error$',new _0x2ac295()),N(this,_0x22684f(0x171),this[_0x22684f(0x172)][_0x22684f(0x100)]());}[_0x1945f3(0x11d)](_0x5399ee){const _0xf22a89=_0x1945f3;this[_0xf22a89(0x172)][_0xf22a89(0x153)](_0x5399ee);}[_0x1945f3(0xec)](){const _0x1a952a=_0x1945f3;super[_0x1a952a(0xec)](),this[_0x1a952a(0x172)]['complete']();}};const I={'id':_0x1945f3(0x154),'type':_0x334d72[_0x1945f3(0x136)],'handler':(_0x16d46c,_0x5a8c07)=>{const _0x32962f=_0x1945f3;let _0x146c79=_0x16d46c[_0x32962f(0x140)](P),_0x45920d=_0x146c79[_0x32962f(0x127)](_0x5a8c07[_0x32962f(0x109)],_0x5a8c07[_0x32962f(0x12d)]);return _0x146c79[_0x32962f(0x17e)](_0x5a8c07['unitId'],_0x5a8c07['subUnitId'],xe(_0x45920d,_0x5a8c07['outline'])),!0x0;}},L={'id':'sheet.mutation.remove-dimension-outline','type':_0x334d72[_0x1945f3(0x136)],'handler':(_0x49ca35,_0x19072d)=>{const _0x58bbc5=_0x1945f3;let _0x185db6=_0x49ca35[_0x58bbc5(0x140)](P),_0xbd01cf=_0x185db6[_0x58bbc5(0x127)](_0x19072d['unitId'],_0x19072d[_0x58bbc5(0x12d)]);return _0x185db6[_0x58bbc5(0x17e)](_0x19072d['unitId'],_0x19072d['subUnitId'],_0xbd01cf[_0x58bbc5(0x145)](_0x175476=>_0x175476['id']!==_0x19072d['outlineId'])),!0x0;}};function R(_0x139835,_0x23ae0e,_0x5e74fc){const _0x2f9f75=_0x1945f3;let _0x4f491c=Le(_0x139835);return!_0x4f491c||_0x4f491c[_0x2f9f75(0x190)]({'workbookTypes':[_0x4137cc],'worksheetTypes':[_0x2efec8]},_0x23ae0e,_0x5e74fc);}function Ie(_0x10aebe,_0x681105,_0xa1257d){const _0x3eef68=_0x1945f3;let _0x3559b6=Re(_0x10aebe);return((_0x3559b6==null?void 0x0:_0x3559b6[_0x3eef68(0xeb)])??_0x2a5258(null))['pipe'](_0x2abf5e(0x64),_0xd1f6d2(null),_0x34f6e0(()=>R(_0x10aebe,_0x681105,_0xa1257d)));}function Le(_0x968028){const _0x1ea8ea=_0x1945f3;if(typeof _0x968028[_0x1ea8ea(0x102)]==_0x1ea8ea(0x108)&&!_0x968028[_0x1ea8ea(0x102)](_0x356244))return null;try{return _0x968028[_0x1ea8ea(0x140)](_0x356244);}catch{return null;}}function Re(_0x4514af){const _0x23c236=_0x1945f3;if(typeof _0x4514af[_0x23c236(0x102)]==_0x23c236(0x108)&&!_0x4514af[_0x23c236(0x102)](_0x52c033))return null;try{return _0x4514af['get'](_0x52c033);}catch{return null;}}const z={'id':_0x1945f3(0xea),'type':_0x334d72['COMMAND'],'handler':(_0x100e20,_0x41999d)=>{const _0x4f9575=_0x1945f3;if(!_0x41999d)return!0x1;let _0x379ad4=_0x47e27f(_0x100e20[_0x4f9575(0x140)](_0xacd12c),_0x41999d);if(!_0x379ad4)return!0x1;let {unitId:_0x342a53,subUnitId:_0x1ba1cd,worksheet:_0x219b5d}=_0x379ad4;if(!R(_0x100e20,_0x342a53,_0x1ba1cd))return!0x1;let _0x137cd7=_0x100e20['get'](P),_0x63cbd7={'id':_0x4f9575(0x165)+_0x1ccc63(0x6),'unitId':_0x342a53,'subUnitId':_0x1ba1cd,'axis':_0x41999d[_0x4f9575(0x135)],'start':_0x41999d[_0x4f9575(0xf9)],'end':_0x41999d[_0x4f9575(0x137)],'collapsed':!0x1},_0x65ff1e=_0x41999d[_0x4f9575(0x135)]===_0x4f9575(0x141)?_0x219b5d[_0x4f9575(0x184)]():_0x219b5d[_0x4f9575(0x111)](),_0x1fefbf=_0x137cd7[_0x4f9575(0x127)](_0x342a53,_0x1ba1cd),_0x10e2bc=Se(_0x1fefbf,_0x63cbd7),_0x55ca35=(_0x10e2bc==null?void 0x0:_0x10e2bc[_0x4f9575(0x119)])??[],_0x3ecba2=(_0x10e2bc==null?void 0x0:_0x10e2bc[_0x4f9575(0x142)])??_0x63cbd7,_0x1b461c=E(_0x10e2bc?_0x1fefbf[_0x4f9575(0x145)](_0x18d9c=>!_0x55ca35['some'](_0x5ee04b=>_0x5ee04b['id']===_0x18d9c['id'])):_0x1fefbf,_0x3ecba2,{'maxIndex':_0x65ff1e});if(!_0x1b461c[_0x4f9575(0xfa)])return _0x100e20[_0x4f9575(0x140)](F)[_0x4f9575(0x11d)]({'reason':_0x1b461c[_0x4f9575(0x167)]??_0x4f9575(0x17d),'commandId':z['id'],'unitId':_0x342a53,'subUnitId':_0x1ba1cd,'axis':_0x41999d[_0x4f9575(0x135)],'outlineId':_0x3ecba2['id']}),!0x1;let _0x485276=[..._0x55ca35['map'](_0x216288=>({'id':L['id'],'params':{'unitId':_0x342a53,'subUnitId':_0x1ba1cd,'outlineId':_0x216288['id']}})),{'id':I['id'],'params':{'unitId':_0x342a53,'subUnitId':_0x1ba1cd,'outline':_0x3ecba2}}],_0xf4d0fa=[{'id':L['id'],'params':{'unitId':_0x342a53,'subUnitId':_0x1ba1cd,'outlineId':_0x3ecba2['id']}},..._0x55ca35[_0x4f9575(0x18f)](_0x5e5d18=>({'id':I['id'],'params':{'unitId':_0x342a53,'subUnitId':_0x1ba1cd,'outline':_0x5e5d18}}))];return _0x3d56de(_0x485276,_0x100e20[_0x4f9575(0x140)](_0x3e4f6a))[_0x4f9575(0x188)]?(_0x100e20['get'](_0x3ed999)[_0x4f9575(0xe8)]({'unitID':_0x342a53,'undoMutations':_0xf4d0fa,'redoMutations':_0x485276}),!0x0):!0x1;}},B={'id':_0x1945f3(0x11c),'type':_0x334d72[_0x1945f3(0x136)],'handler':(_0x231f98,_0x5054f2)=>{const _0x59cc4c=_0x1945f3;let _0x1627fa=_0x231f98['get'](P),_0x245dd6=_0x1627fa[_0x59cc4c(0x127)](_0x5054f2[_0x59cc4c(0x109)],_0x5054f2['subUnitId']);return _0x1627fa[_0x59cc4c(0x17e)](_0x5054f2[_0x59cc4c(0x109)],_0x5054f2[_0x59cc4c(0x12d)],Ce(_0x245dd6,_0x5054f2)),!0x0;}},V={'id':_0x1945f3(0xef),'type':_0x334d72[_0x1945f3(0x156)],'handler':(_0x4cf9b4,_0x357713)=>{const _0x26bcaa=_0x1945f3;if(!_0x357713)return!0x1;let _0xa3c54f=_0x47e27f(_0x4cf9b4['get'](_0xacd12c),_0x357713);if(!_0xa3c54f)return!0x1;let {unitId:_0x442aae,subUnitId:_0x15f5e2}=_0xa3c54f;if(!R(_0x4cf9b4,_0x442aae,_0x15f5e2))return!0x1;let _0x1b2d75={'unitId':_0x442aae,'subUnitId':_0x15f5e2,'axis':_0x357713[_0x26bcaa(0x135)],'start':_0x357713[_0x26bcaa(0xf9)],'end':_0x357713['end']},_0x40f65c=_0x4cf9b4[_0x26bcaa(0x140)](P)['getOutlines'](_0x442aae,_0x15f5e2)['filter'](_0x52237d=>w(_0x52237d,_0x1b2d75)&&_0x52237d[_0x26bcaa(0xf9)]>=_0x357713[_0x26bcaa(0xf9)]&&_0x52237d[_0x26bcaa(0x137)]<=_0x357713[_0x26bcaa(0x137)]);if(_0x40f65c['length']===0x0)return _0x4cf9b4[_0x26bcaa(0x140)](F)[_0x26bcaa(0x11d)]({'reason':_0x26bcaa(0x122),'commandId':V['id'],'unitId':_0x442aae,'subUnitId':_0x15f5e2,'axis':_0x357713['axis']}),!0x1;let _0x5489c5=[{'id':B['id'],'params':{..._0x1b2d75,'removedOutlineIds':_0x40f65c['map'](_0x423849=>_0x423849['id'])}}],_0x9874b6=_0x40f65c['map'](_0x5ae509=>({'id':I['id'],'params':{'unitId':_0x442aae,'subUnitId':_0x15f5e2,'outline':_0x5ae509}}));return _0x3d56de(_0x5489c5,_0x4cf9b4[_0x26bcaa(0x140)](_0x3e4f6a))[_0x26bcaa(0x188)]?(_0x4cf9b4['get'](_0x3ed999)[_0x26bcaa(0xe8)]({'unitID':_0x442aae,'undoMutations':_0x9874b6,'redoMutations':_0x5489c5}),!0x0):!0x1;}},ze={'id':'sheet.command.remove-dimension-outline','type':_0x334d72[_0x1945f3(0x156)],'handler':(_0x465c88,_0xdf33d9)=>{const _0x4c5973=_0x1945f3;if(!_0xdf33d9)return!0x1;let _0x40eeb9=_0x47e27f(_0x465c88['get'](_0xacd12c),_0xdf33d9);if(!_0x40eeb9)return!0x1;let {unitId:_0x35061b,subUnitId:_0xda066b}=_0x40eeb9;if(!R(_0x465c88,_0x35061b,_0xda066b))return!0x1;let _0xdb3d2c=_0x465c88[_0x4c5973(0x140)](P)[_0x4c5973(0x127)](_0x35061b,_0xda066b)[_0x4c5973(0x13f)](_0x3cc6fc=>_0x3cc6fc['id']===_0xdf33d9['outlineId']);if(!_0xdb3d2c)return!0x1;let _0x26816a=[{'id':L['id'],'params':{'unitId':_0x35061b,'subUnitId':_0xda066b,'outlineId':_0xdb3d2c['id'],'outline':_0xdb3d2c}}],_0xe3397a=[{'id':I['id'],'params':{'unitId':_0x35061b,'subUnitId':_0xda066b,'outline':_0xdb3d2c}}];return _0x3d56de(_0x26816a,_0x465c88[_0x4c5973(0x140)](_0x3e4f6a))[_0x4c5973(0x188)]?(_0x465c88[_0x4c5973(0x140)](_0x3ed999)[_0x4c5973(0xe8)]({'unitID':_0x35061b,'undoMutations':_0xe3397a,'redoMutations':_0x26816a}),!0x0):!0x1;}},H={'id':_0x1945f3(0x132),'type':_0x334d72[_0x1945f3(0x136)],'handler':(_0x2d9010,_0xd6b794)=>{const _0x2c2f6b=_0x1945f3;let _0x206df6=_0x2d9010[_0x2c2f6b(0x140)](P),_0x5c8613=_0x206df6[_0x2c2f6b(0x127)](_0xd6b794[_0x2c2f6b(0x109)],_0xd6b794[_0x2c2f6b(0x12d)]),_0x1555bd=_0x5c8613[_0x2c2f6b(0x13f)](_0x20c254=>_0x20c254['id']===_0xd6b794[_0x2c2f6b(0x116)]);return _0x1555bd&&_0x206df6[_0x2c2f6b(0x17e)](_0xd6b794[_0x2c2f6b(0x109)],_0xd6b794[_0x2c2f6b(0x12d)],_0x5c8613['map'](_0x45400d=>_0x45400d[_0x2c2f6b(0x109)]!==_0x1555bd[_0x2c2f6b(0x109)]||_0x45400d[_0x2c2f6b(0x12d)]!==_0x1555bd['subUnitId']||_0x45400d[_0x2c2f6b(0x135)]!==_0x1555bd[_0x2c2f6b(0x135)]||_0x45400d[_0x2c2f6b(0xf9)]!==_0x1555bd[_0x2c2f6b(0xf9)]||_0x45400d[_0x2c2f6b(0x137)]!==_0x1555bd[_0x2c2f6b(0x137)]?_0x45400d:{..._0x45400d,'collapsed':_0xd6b794[_0x2c2f6b(0x17b)]})),!0x0;}};function Be(_0x5515d3,_0x4fef88,_0x50cd41,_0x56e6cf){return _0x5515d3==='row'?{'startRow':_0x4fef88,'endRow':_0x50cd41,'startColumn':0x0,'endColumn':_0x56e6cf['getMaxColumns']()-0x1}:{'startRow':0x0,'endRow':_0x56e6cf['getRowCount']()-0x1,'startColumn':_0x4fef88,'endColumn':_0x50cd41};}function Ve(_0xd43f37){const _0x2d78a9=_0x1945f3;return _0xd43f37===_0x2d78a9(0x141)?_0x301c72['id']:_0x58f5dc['id'];}function He(_0x4abf21){const _0x55fda8=_0x1945f3;return _0x4abf21===_0x55fda8(0x141)?_0xfbefd0['id']:_0x55797a['id'];}function Ue(_0x1d810e,_0x649127,_0x40534d,_0x5aea9e){const _0x48243a=_0x1945f3;let _0x30f642=_0x649127?[Be(_0x1d810e[_0x48243a(0x135)],_0x1d810e[_0x48243a(0xf9)],_0x1d810e[_0x48243a(0x137)],_0x40534d)]:We(_0x1d810e,_0x5aea9e,_0x40534d),_0x55c813=_0x649127?Ve(_0x1d810e[_0x48243a(0x135)]):He(_0x1d810e[_0x48243a(0x135)]);return[{'id':H['id'],'params':{'unitId':_0x1d810e[_0x48243a(0x109)],'subUnitId':_0x1d810e[_0x48243a(0x12d)],'outlineId':_0x1d810e['id'],'outline':_0x1d810e,'collapsed':_0x649127}},..._0x30f642[_0x48243a(0x18f)](_0x3c5887=>({'id':_0x55c813,'params':{'unitId':_0x1d810e[_0x48243a(0x109)],'subUnitId':_0x1d810e[_0x48243a(0x12d)],'ranges':[_0x3c5887],'dimensionOutlineId':_0x1d810e['id']}}))];}function We(_0x4d9d8c,_0x1747eb,_0x32a1e2){const _0x29a031=_0x1945f3;let _0x2350bd=we(_0x1747eb[_0x29a031(0x18f)](_0x249878=>Ge(_0x249878,_0x4d9d8c)?{..._0x249878,'collapsed':!0x1}:_0x249878),_0x4d9d8c[_0x29a031(0x109)],_0x4d9d8c[_0x29a031(0x12d)],_0x4d9d8c[_0x29a031(0x135)]);return Ke({'start':_0x4d9d8c['start'],'end':_0x4d9d8c[_0x29a031(0x137)]},_0x2350bd)[_0x29a031(0x18f)](_0x5aeb2f=>Be(_0x4d9d8c[_0x29a031(0x135)],_0x5aeb2f['start'],_0x5aeb2f[_0x29a031(0x137)],_0x32a1e2));}function Ge(_0x15593c,_0x26015b){const _0x156779=_0x1945f3;return _0x15593c['unitId']===_0x26015b[_0x156779(0x109)]&&_0x15593c[_0x156779(0x12d)]===_0x26015b['subUnitId']&&_0x15593c[_0x156779(0x135)]===_0x26015b[_0x156779(0x135)]&&_0x15593c[_0x156779(0xf9)]===_0x26015b['start']&&_0x15593c[_0x156779(0x137)]===_0x26015b[_0x156779(0x137)];}function Ke(_0x16cd8c,_0x57743e){const _0x4fa4bf=_0x1945f3;let _0x63048f=_0x16cd8c[_0x4fa4bf(0xf9)],_0x1c0b3d=[];for(let _0x5e0800 of _0x57743e)if(!(_0x5e0800[_0x4fa4bf(0x137)]<_0x63048f||_0x5e0800[_0x4fa4bf(0xf9)]>_0x16cd8c[_0x4fa4bf(0x137)])&&(_0x5e0800['start']>_0x63048f&&_0x1c0b3d[_0x4fa4bf(0x110)]({'start':_0x63048f,'end':Math[_0x4fa4bf(0xed)](_0x5e0800[_0x4fa4bf(0xf9)]-0x1,_0x16cd8c[_0x4fa4bf(0x137)])}),_0x63048f=Math[_0x4fa4bf(0x143)](_0x63048f,_0x5e0800['end']+0x1),_0x63048f>_0x16cd8c['end']))break;return _0x63048f<=_0x16cd8c[_0x4fa4bf(0x137)]&&_0x1c0b3d[_0x4fa4bf(0x110)]({'start':_0x63048f,'end':_0x16cd8c[_0x4fa4bf(0x137)]}),_0x1c0b3d;}const qe={'id':_0x1945f3(0x14f),'type':_0x334d72[_0x1945f3(0x156)],'handler':(_0x4f31d8,_0xc6586f)=>{const _0x57520f=_0x1945f3;if(!_0xc6586f)return!0x1;let _0x2b917a=_0x47e27f(_0x4f31d8[_0x57520f(0x140)](_0xacd12c),_0xc6586f);if(!_0x2b917a)return!0x1;let {unitId:_0xfb333e,subUnitId:_0x9e963a,worksheet:_0x40c2fe}=_0x2b917a;if(!R(_0x4f31d8,_0xfb333e,_0x9e963a))return!0x1;let _0x199414=_0x4f31d8[_0x57520f(0x140)](P)['getOutlines'](_0xfb333e,_0x9e963a),_0x3ab415=_0x199414[_0x57520f(0x13f)](_0xd4c32e=>_0xd4c32e['id']===_0xc6586f[_0x57520f(0x116)]);if(!_0x3ab415||_0x3ab415[_0x57520f(0x17b)]===_0xc6586f[_0x57520f(0x17b)])return!0x1;let _0x50b661=Ue(_0x3ab415,_0xc6586f[_0x57520f(0x17b)],_0x40c2fe,_0x199414),_0x491380=Ue(_0x3ab415,!_0xc6586f[_0x57520f(0x17b)],_0x40c2fe,_0x199414);return _0x3d56de(_0x50b661,_0x4f31d8['get'](_0x3e4f6a))[_0x57520f(0x188)]?(_0x4f31d8[_0x57520f(0x140)](_0x3ed999)[_0x57520f(0xe8)]({'unitID':_0xfb333e,'undoMutations':_0x491380,'redoMutations':_0x50b661}),!0x0):!0x1;}},U={'id':_0x1945f3(0x176),'type':_0x334d72['MUTATION'],'handler':(_0x11cde6,_0x3b76f4)=>{const _0x362052=_0x1945f3;let _0x2612aa=_0x11cde6[_0x362052(0x140)](P),_0x5dd7dc=Je(_0x2612aa[_0x362052(0x127)](_0x3b76f4[_0x362052(0x109)],_0x3b76f4['subUnitId']),_0x3b76f4);return _0x2612aa[_0x362052(0x17e)](_0x3b76f4['unitId'],_0x3b76f4[_0x362052(0x12d)],_0x5dd7dc),!0x0;}};function Je(_0x2d8077,_0x485735){const _0x1f8f31=_0x1945f3;switch(_0x485735[_0x1f8f31(0x13e)]){case _0x1f8f31(0xfd):return _0x485735[_0x1f8f31(0x115)]?Ye(_0x2d8077,_0x485735):D(_0x2d8077,_0x485735);case _0x1f8f31(0x139):return O(_0x2d8077,_0x485735);case'move':return k(_0x2d8077,_0x485735);}}function Ye(_0x11d554,_0x488de2){const _0x6c8682=_0x1945f3;return[..._0x11d554[_0x6c8682(0x145)](_0x4cae72=>_0x4cae72[_0x6c8682(0x109)]!==_0x488de2[_0x6c8682(0x109)]||_0x4cae72[_0x6c8682(0x12d)]!==_0x488de2[_0x6c8682(0x12d)]||_0x4cae72[_0x6c8682(0x135)]!==_0x488de2['axis']),..._0x488de2['restoreOutlines']];}const W='SHEET_OUTLINE_PLUGIN';var Xe='@univerjs-pro/sheets-outline',Ze=_0x1945f3(0x11b);const Qe={};function G(_0x35e3e0,_0xf7eb70){return function(_0x5a5590,_0x4d269e){_0xf7eb70(_0x5a5590,_0x4d269e,_0x35e3e0);};}function _0x22d4(){const _0x11147d=['permissionPointUpdate$','dispose','min','Invalid\x20dimension\x20outline\x20move\x20source\x20range','sheet.command.clear-dimension-outlines','_ensureUnitOutlines','redos','count','outlineList','pluginName','_initResource','includes','Invalid\x20outline\x20range','depth','start','valid','move','registerPluginResource','insert','forEach','setConfig','asObservable','_sheetsOutlineModel','has','46HvDQDO','localeCompare','split','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','121297tQzXIk','function','unitId','serialize','preUndos','add','_resourceManagerService','36JHAoBa','index','push','getColumnCount','parse','startRow','_univerInstanceService','restoreOutlines','outlineId','_outlines','pop','mergedOutlines','getOwnPropertyDescriptor','1.0.0-beta.1','sheet.mutation.clear-dimension-outlines','emit','endColumn','getUnit','maxIndex','outline','clear-range-not-contain-outline','_commandService','getSheetBySheetId','change$','values','getOutlines','MAX_DEPTH','_injector','Invalid\x20dimension\x20outline\x20mutation','Crossing','_initCommandInterceptor','subUnitId','3033135jvOzBr','OUT_OF_BOUNDS','_change$','move-splits-outline','sheet.mutation.set-dimension-outline-collapsed','preRedos','startColumn','axis','MUTATION','end','stringify','delete','removeUnit','getCurrentUnitOfType','set','disposeWithMe','type','find','get','row','mergedOutline','max','name','filter','20hPoPQN','constructor','deserialize','_sheetsOutlineErrorService','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','object','UNIVER_SHEET','12BJUyab','sheet.command.set-dimension-outline-collapsed','prototype','crossing','entries','next','sheet.mutation.add-dimension-outline','_initRegisterCommand','COMMAND','defineProperty','INVALID_RANGE','undos','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','11344diboYC','some','fromRange','COLUMN','_config','version','DimensionOutlineError','toPrimitive','invalid-dimension-outline','_sheetInterceptorService','dimension-outline-','string','reason','children','call','params','getUnitOutlines','length','interceptCommand','range','getActiveSheet','372GirSot','error$','_error$','sourceStart','column','1528672JrfExO','sheet.mutation.transform-dimension-outlines','41083ZeZcyg','_configService','out-of-bounds','complete','collapsed','max-depth','unknown','setOutlines','sort','sheets-outline.config','endRow','maxDepth','Move\x20would\x20split\x20dimension\x20outline:\x20','getRowCount','decorate','packageName','ROW','result','930165cqNibq','offset','invalid-range','message','split\x20dimension\x20outline','_getCommandScope','map','permissionCheckWithoutRange','toRange','sourceEnd','symbol','UNKNOWN','destinationIndex','268215BmmhCP','pushUndoRedo','join','sheet.command.add-dimension-outline'];_0x22d4=function(){return _0x11147d;};return _0x22d4();}function K(_0x1e8faa,_0x313c22,_0x76cdae,_0x4e314b){const _0x25b803=_0x1945f3;var _0x1d72ef=arguments[_0x25b803(0x16c)],_0x20b061=_0x1d72ef<0x3?_0x313c22:_0x4e314b===null?_0x4e314b=Object[_0x25b803(0x11a)](_0x313c22,_0x76cdae):_0x4e314b,_0x5c5652;if(typeof Reflect==_0x25b803(0x14c)&&typeof Reflect[_0x25b803(0x185)]=='function')_0x20b061=Reflect['decorate'](_0x1e8faa,_0x313c22,_0x76cdae,_0x4e314b);else{for(var _0x8a0ecc=_0x1e8faa[_0x25b803(0x16c)]-0x1;_0x8a0ecc>=0x0;_0x8a0ecc--)(_0x5c5652=_0x1e8faa[_0x8a0ecc])&&(_0x20b061=(_0x1d72ef<0x3?_0x5c5652(_0x20b061):_0x1d72ef>0x3?_0x5c5652(_0x313c22,_0x76cdae,_0x20b061):_0x5c5652(_0x313c22,_0x76cdae))||_0x20b061);}return _0x1d72ef>0x3&&_0x20b061&&Object[_0x25b803(0x157)](_0x313c22,_0x76cdae,_0x20b061),_0x20b061;}const q={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let J=class extends _0xe607e7{constructor(_0x1bb4d2,_0x3f5d2c,_0x1400a9,_0x1f5b54){const _0x3cf330=_0x1945f3;super(),this[_0x3cf330(0x114)]=_0x1bb4d2,this[_0x3cf330(0x164)]=_0x3f5d2c,this[_0x3cf330(0x101)]=_0x1400a9,this[_0x3cf330(0x149)]=_0x1f5b54,this[_0x3cf330(0x12c)]();}[_0x1945f3(0x12c)](){const _0x2d4525=_0x1945f3;this[_0x2d4525(0x13d)](this[_0x2d4525(0x164)][_0x2d4525(0x16d)]({'getMutations':_0x543c71=>$e(_0x543c71,(_0x54ad5f,_0xd8c2cd)=>this[_0x2d4525(0x101)]['getOutlines'](_0x54ad5f,_0xd8c2cd),this['_getCommandScope'](_0x543c71[_0x2d4525(0x16a)]),_0x53d2b1=>this['_sheetsOutlineErrorService']['emit'](_0x53d2b1))}));}[_0x1945f3(0x18e)](_0x51da77){const _0x5ad517=_0x1945f3;let _0x20c193=_0x51da77,_0x147011=_0x20c193!=null&&_0x20c193[_0x5ad517(0x109)]?this['_univerInstanceService'][_0x5ad517(0x11f)](_0x20c193[_0x5ad517(0x109)],_0x4827d7[_0x5ad517(0x14d)]):this[_0x5ad517(0x114)][_0x5ad517(0x13b)](_0x4827d7[_0x5ad517(0x14d)]);if(!_0x147011)return;let _0x565cd=_0x20c193!=null&&_0x20c193[_0x5ad517(0x12d)]?_0x147011[_0x5ad517(0x124)](_0x20c193['subUnitId']):_0x147011[_0x5ad517(0x16f)]();if(_0x565cd)return{'unitId':_0x147011['getUnitId'](),'subUnitId':_0x565cd['getSheetId']()};}};function _0x340b(_0x1fd18c,_0x222fda){_0x1fd18c=_0x1fd18c-0xe6;const _0x22d49d=_0x22d4();let _0x340bbd=_0x22d49d[_0x1fd18c];return _0x340bbd;}J=K([G(0x0,_0xacd12c),G(0x1,_0x1e8506(_0x5fd442)),G(0x2,_0x1e8506(P)),G(0x3,_0x1e8506(F))],J);function $e(_0x3132c4,_0x10998d,_0x4d7f70,_0xbd61e9){const _0x6bff97=_0x1945f3;let _0x465e7b=tt(_0x3132c4,_0x4d7f70);if(!_0x465e7b)return Z();let _0x5646c1=_0x10998d(_0x465e7b[_0x6bff97(0x109)],_0x465e7b[_0x6bff97(0x12d)]);if(!_0x5646c1[_0x6bff97(0x15c)](_0x593366=>_0x593366[_0x6bff97(0x135)]===_0x465e7b[_0x6bff97(0x135)]))return Z();et(_0x5646c1,_0x465e7b,_0x3132c4['id'],_0xbd61e9);let _0x4d7056=it(_0x465e7b,_0x5646c1);return{'redos':[{'id':U['id'],'params':_0x465e7b}],'undos':[{'id':U['id'],'params':_0x4d7056}],'preRedos':[],'preUndos':[]};}function et(_0x40e7b9,_0x2ec47e,_0x5aa94a,_0x87f53e){const _0x7eb80e=_0x1945f3;try{switch(_0x2ec47e[_0x7eb80e(0x13e)]){case _0x7eb80e(0xfd):D(_0x40e7b9,_0x2ec47e);break;case _0x7eb80e(0x139):O(_0x40e7b9,_0x2ec47e);break;case _0x7eb80e(0xfb):k(_0x40e7b9,_0x2ec47e);break;}}catch(_0x30a42d){throw _0x87f53e==null||_0x87f53e({'reason':ye(_0x30a42d),'commandId':_0x5aa94a,'unitId':_0x2ec47e['unitId'],'subUnitId':_0x2ec47e['subUnitId'],'axis':_0x2ec47e[_0x7eb80e(0x135)],'outlineId':be(_0x30a42d)}),new _0x550f7f(_0x30a42d instanceof Error?_0x30a42d[_0x7eb80e(0x18c)]:_0x7eb80e(0x12a));}}function tt(_0x53badc,_0x46680b){const _0x3c4f23=_0x1945f3;switch(_0x53badc['id']){case _0x1dc395['id']:return Y(_0x53badc['params'],'row',_0x46680b);case _0x43376c['id']:return Y(_0x53badc['params'],'column',_0x46680b);case _0x4bd3fd['id']:return nt(_0x53badc[_0x3c4f23(0x16a)],'row',_0x46680b);case _0x8bce70['id']:return nt(_0x53badc[_0x3c4f23(0x16a)],_0x3c4f23(0x174),_0x46680b);case _0x1560e4['id']:return rt(_0x53badc[_0x3c4f23(0x16a)],'row',_0x46680b);case _0x4bbbc6['id']:return rt(_0x53badc[_0x3c4f23(0x16a)],_0x3c4f23(0x174),_0x46680b);default:return null;}}function Y(_0x3f7e16,_0x494821,_0xbca7d2){const _0x339106=_0x1945f3;let _0x51af8a=X(_0x3f7e16,_0xbca7d2);if(!(_0x3f7e16!=null&&_0x3f7e16[_0x339106(0x16e)])||!_0x51af8a)return null;let _0x244cb8=_0x494821===_0x339106(0x141)?_0x3f7e16[_0x339106(0x16e)][_0x339106(0x113)]:_0x3f7e16['range'][_0x339106(0x134)],_0x8f0097=_0x494821===_0x339106(0x141)?_0x3f7e16[_0x339106(0x16e)][_0x339106(0x181)]:_0x3f7e16[_0x339106(0x16e)]['endColumn'];return{..._0x51af8a,'axis':_0x494821,'type':_0x339106(0xfd),'index':_0x244cb8,'count':_0x8f0097-_0x244cb8+0x1};}function nt(_0x4e9e92,_0x3d6f2d,_0x1e8d79){const _0x27ff4a=_0x1945f3;let _0x3ddbf0=X(_0x4e9e92,_0x1e8d79);if(!(_0x4e9e92!=null&&_0x4e9e92['range'])||!_0x3ddbf0)return null;let _0x4167c5=_0x3d6f2d===_0x27ff4a(0x141)?_0x4e9e92[_0x27ff4a(0x16e)][_0x27ff4a(0x113)]:_0x4e9e92[_0x27ff4a(0x16e)]['startColumn'],_0x11bd6b=_0x3d6f2d===_0x27ff4a(0x141)?_0x4e9e92[_0x27ff4a(0x16e)][_0x27ff4a(0x181)]:_0x4e9e92[_0x27ff4a(0x16e)][_0x27ff4a(0x11e)];return{..._0x3ddbf0,'axis':_0x3d6f2d,'type':_0x27ff4a(0x139),'start':_0x4167c5,'end':_0x11bd6b};}function rt(_0x184127,_0x3e93b4,_0x3c9e74){const _0x51ba4a=_0x1945f3;let _0x404064=X(_0x184127,_0x3c9e74);if(!(_0x184127!=null&&_0x184127[_0x51ba4a(0x15d)])||!_0x184127[_0x51ba4a(0x191)]||!_0x404064)return null;let _0x36ace6=_0x3e93b4===_0x51ba4a(0x141)?_0x184127[_0x51ba4a(0x15d)][_0x51ba4a(0x113)]:_0x184127[_0x51ba4a(0x15d)][_0x51ba4a(0x134)],_0x37e8e5=_0x3e93b4===_0x51ba4a(0x141)?_0x184127['fromRange'][_0x51ba4a(0x181)]:_0x184127['fromRange'][_0x51ba4a(0x11e)],_0x3291dc=_0x3e93b4===_0x51ba4a(0x141)?_0x184127[_0x51ba4a(0x191)][_0x51ba4a(0x113)]:_0x184127[_0x51ba4a(0x191)]['startColumn'];return{..._0x404064,'axis':_0x3e93b4,'type':_0x51ba4a(0xfb),'sourceStart':_0x36ace6,'sourceEnd':_0x37e8e5,'destinationIndex':_0x3291dc};}function it(_0x165908,_0x20c95d){const _0x49a205=_0x1945f3;switch(_0x165908[_0x49a205(0x13e)]){case _0x49a205(0xfd):return{'unitId':_0x165908[_0x49a205(0x109)],'subUnitId':_0x165908[_0x49a205(0x12d)],'axis':_0x165908['axis'],'type':_0x49a205(0x139),'start':_0x165908[_0x49a205(0x10f)],'end':_0x165908[_0x49a205(0x10f)]+_0x165908[_0x49a205(0xf2)]-0x1};case _0x49a205(0x139):return{'unitId':_0x165908['unitId'],'subUnitId':_0x165908[_0x49a205(0x12d)],'axis':_0x165908[_0x49a205(0x135)],'type':'insert','index':_0x165908['start'],'count':_0x165908['end']-_0x165908[_0x49a205(0xf9)]+0x1,'restoreOutlines':_0x20c95d[_0x49a205(0x145)](_0x1e8784=>_0x1e8784[_0x49a205(0x109)]===_0x165908['unitId']&&_0x1e8784[_0x49a205(0x12d)]===_0x165908['subUnitId']&&_0x1e8784[_0x49a205(0x135)]===_0x165908[_0x49a205(0x135)])};case'move':return at(_0x165908);}}function at(_0x4907a5){const _0x3d98b6=_0x1945f3;let _0x5a9e61=_0x4907a5['sourceEnd']-_0x4907a5[_0x3d98b6(0x173)]+0x1;return _0x4907a5[_0x3d98b6(0xe6)]>=_0x4907a5[_0x3d98b6(0x173)]&&_0x4907a5['destinationIndex']<=_0x4907a5[_0x3d98b6(0x192)]+0x1?{..._0x4907a5}:_0x4907a5[_0x3d98b6(0xe6)]>_0x4907a5[_0x3d98b6(0x192)]+0x1?{..._0x4907a5,'sourceStart':_0x4907a5['destinationIndex']-_0x5a9e61,'sourceEnd':_0x4907a5['destinationIndex']-0x1,'destinationIndex':_0x4907a5[_0x3d98b6(0x173)]}:{..._0x4907a5,'sourceStart':_0x4907a5['destinationIndex'],'sourceEnd':_0x4907a5['destinationIndex']+_0x5a9e61-0x1,'destinationIndex':_0x4907a5[_0x3d98b6(0x192)]+0x1};}function X(_0x39210c,_0x45e1bf){const _0x2c96d9=_0x1945f3;let _0x417434=(_0x39210c==null?void 0x0:_0x39210c[_0x2c96d9(0x109)])??(_0x45e1bf==null?void 0x0:_0x45e1bf[_0x2c96d9(0x109)]),_0x24d6c6=(_0x39210c==null?void 0x0:_0x39210c[_0x2c96d9(0x12d)])??(_0x45e1bf==null?void 0x0:_0x45e1bf[_0x2c96d9(0x12d)]);return _0x417434&&_0x24d6c6?{'unitId':_0x417434,'subUnitId':_0x24d6c6}:null;}function Z(){const _0x191cc6=_0x1945f3;return{'redos':[...q[_0x191cc6(0xf1)]],'undos':[...q[_0x191cc6(0x159)]],'preRedos':[...q[_0x191cc6(0x133)]??[]],'preUndos':[...q[_0x191cc6(0x10b)]??[]]};}let Q=class extends _0xe607e7{constructor(_0x32730b,_0x281c2c){const _0x482a04=_0x1945f3;super(),this[_0x482a04(0x10d)]=_0x32730b,this[_0x482a04(0x101)]=_0x281c2c,this['_initResource']();}[_0x1945f3(0xf5)](){const _0xb6302a=_0x1945f3;this[_0xb6302a(0x13d)](this[_0xb6302a(0x10d)][_0xb6302a(0xfc)]({'pluginName':W,'businesses':[_0x4827d7['UNIVER_SHEET']],'toJson':_0x2f06f5=>JSON[_0xb6302a(0x138)](this[_0xb6302a(0x101)][_0xb6302a(0x10a)](_0x2f06f5)),'parseJson':_0x30e87d=>JSON[_0xb6302a(0x112)](_0x30e87d),'onLoad':(_0xf5e1a0,_0xaa8719)=>this[_0xb6302a(0x101)][_0xb6302a(0x148)](_0xf5e1a0,_0xaa8719),'onUnLoad':_0x332690=>this[_0xb6302a(0x101)][_0xb6302a(0x13a)](_0x332690)}));}};Q=K([G(0x0,_0x2ddefa),G(0x1,_0x1e8506(P))],Q);let $=class extends _0xf25005{constructor(_0x3f076f=Qe,_0x2d2947,_0x175a86,_0x57b9ad){const _0x2b485e=_0x1945f3;super(),this[_0x2b485e(0x15f)]=_0x3f076f,this[_0x2b485e(0x129)]=_0x2d2947,this[_0x2b485e(0x123)]=_0x175a86,this[_0x2b485e(0x178)]=_0x57b9ad;let {..._0x3d78d5}=_0x1a4160({},Qe,this[_0x2b485e(0x15f)]);this[_0x2b485e(0x178)][_0x2b485e(0xff)](_0x2b485e(0x180),_0x3d78d5);}['onStarting'](){const _0x408585=_0x1945f3;this[_0x408585(0x129)][_0x408585(0x10c)]([P]),this[_0x408585(0x129)]['add']([F]),this[_0x408585(0x129)]['add']([Q]),this[_0x408585(0x129)][_0x408585(0x10c)]([J]),this[_0x408585(0x155)](),this[_0x408585(0x129)]['get'](P),this[_0x408585(0x129)][_0x408585(0x140)](F),this[_0x408585(0x129)][_0x408585(0x140)](Q),this[_0x408585(0x129)][_0x408585(0x140)](J);}[_0x1945f3(0x155)](){const _0x3bcab9=_0x1945f3;[z,ze,qe,V][_0x3bcab9(0xfe)](_0x5aabed=>{const _0x2de373=_0x3bcab9;this[_0x2de373(0x13d)](this[_0x2de373(0x123)]['registerCommand'](_0x5aabed));}),[I,L,H,B,U][_0x3bcab9(0xfe)](_0xc6d4ac=>{const _0x23f119=_0x3bcab9;this[_0x23f119(0x13d)](this[_0x23f119(0x123)]['registerCommand'](_0xc6d4ac));});}};N($,_0x1945f3(0xf4),W),N($,_0x1945f3(0x186),Xe),N($,_0x1945f3(0x160),Ze),N($,_0x1945f3(0x13e),_0x4827d7[_0x1945f3(0x14d)]),$=K([_0x4d5652(_0x269374,_0x5d1375),G(0x1,_0x1e8506(_0x3552b1)),G(0x2,_0x3e4f6a),G(0x3,_0x4e9855)],$);export{z as AddDimensionOutlineCommand,I as AddDimensionOutlineMutation,V as ClearDimensionOutlinesCommand,B as ClearDimensionOutlinesMutation,_e as DimensionOutlineAxis,ve as DimensionOutlineErrorReason,ze as RemoveDimensionOutlineCommand,L as RemoveDimensionOutlineMutation,W as SHEET_OUTLINE_PLUGIN,qe as SetDimensionOutlineCollapsedCommand,H as SetDimensionOutlineCollapsedMutation,F as SheetsOutlineErrorService,P as SheetsOutlineModel,U as TransformDimensionOutlinesMutation,$ as UniverSheetsOutlinePlugin,T as buildDimensionOutlineTree,E as canAddDimensionOutline,Ie as getDimensionOutlineViewPermission$,R as hasDimensionOutlineViewPermission,O as transformOutlinesByDelete,D as transformOutlinesByInsert,k as transformOutlinesByMove};
1
+ const _0x3bf8d5=_0x159a;(function(_0x538a4f,_0x1bf4de){const _0x354e36=_0x159a,_0x16c621=_0x538a4f();while(!![]){try{const _0x304773=-parseInt(_0x354e36(0x84))/0x1*(-parseInt(_0x354e36(0xd9))/0x2)+parseInt(_0x354e36(0x9a))/0x3*(parseInt(_0x354e36(0xf3))/0x4)+-parseInt(_0x354e36(0xd3))/0x5+-parseInt(_0x354e36(0x9e))/0x6*(-parseInt(_0x354e36(0xfb))/0x7)+-parseInt(_0x354e36(0xb5))/0x8*(parseInt(_0x354e36(0x112))/0x9)+parseInt(_0x354e36(0x8a))/0xa*(-parseInt(_0x354e36(0xfc))/0xb)+-parseInt(_0x354e36(0xf7))/0xc*(-parseInt(_0x354e36(0x74))/0xd);if(_0x304773===_0x1bf4de)break;else _0x16c621['push'](_0x16c621['shift']());}catch(_0x1ffe38){_0x16c621['push'](_0x16c621['shift']());}}}(_0x3757,0x56052));import{CommandType as _0x2c52c8,CustomCommandExecutionError as _0x113370,DependentOn as _0x243a39,Disposable as _0x398395,ICommandService as _0x71ae52,IConfigService as _0x35d06a,IPermissionService as _0x557097,IResourceManagerService as _0x34f6ba,IUndoRedoService as _0x8bf480,IUniverInstanceService as _0x957178,Inject as _0x540b44,Injector as _0xde5590,Plugin as _0xd81d88,UniverInstanceType as _0x570645,generateRandomId as _0x174d5b,merge as _0x1c15e7,sequenceExecute as _0x86848}from'@univerjs/core';import{InsertColCommand as _0x19faba,InsertRowCommand as _0x378372,MoveColsCommand as _0x203553,MoveRowsCommand as _0x2e6d17,RemoveColCommand as _0x567c44,RemoveRowCommand as _0x457460,SetColHiddenMutation as _0x2f4f69,SetColVisibleMutation as _0xf79dda,SetRowHiddenMutation as _0x5c8cde,SetRowVisibleMutation as _0x4596c5,SheetInterceptorService as _0x26654b,SheetPermissionCheckController as _0x843424,UniverSheetsPlugin as _0x142600,WorkbookViewPermission as _0x520301,WorksheetViewPermission as _0x4c06fc,getSheetCommandTarget as _0x317f2a}from'@univerjs/sheets';import{Subject as _0x46fada,of as _0x3191b2}from'rxjs';import{debounceTime as _0x1116d4,map as _0x281c4e,startWith as _0xe13a2d}from'rxjs/operators';import{UniverLicensePlugin as _0x1fb203}from'@univerjs-pro/license';let _e=function(_0x43c05b){const _0x37871a=_0x159a;return _0x43c05b[_0x37871a(0x95)]='row',_0x43c05b[_0x37871a(0xf1)]=_0x37871a(0xcc),_0x43c05b;}({}),ve=function(_0x5c762f){const _0x1a855b=_0x159a;return _0x5c762f[_0x1a855b(0x9b)]=_0x1a855b(0xd8),_0x5c762f[_0x1a855b(0xaf)]=_0x1a855b(0x107),_0x5c762f[_0x1a855b(0x99)]=_0x1a855b(0xd0),_0x5c762f[_0x1a855b(0x111)]=_0x1a855b(0xdb),_0x5c762f['MOVE_SPLITS_OUTLINE']=_0x1a855b(0xd5),_0x5c762f[_0x1a855b(0xb2)]='clear-range-not-contain-outline',_0x5c762f['UNKNOWN']=_0x1a855b(0xe3),_0x5c762f;}({});var S=class extends Error{constructor(_0x3fe91c,_0x2e7d4b,_0xe1a79c){const _0x531445=_0x159a;super(_0x2e7d4b),this[_0x531445(0xb7)]=_0x3fe91c,this['outlineId']=_0xe1a79c,this[_0x531445(0xd4)]=_0x531445(0x97);}};function ye(_0xca5e95){const _0x28b7c6=_0x159a;return _0xca5e95 instanceof S?_0xca5e95[_0x28b7c6(0xb7)]:_0xca5e95 instanceof Error?_0xca5e95[_0x28b7c6(0xea)][_0x28b7c6(0xee)](_0x28b7c6(0x104))?_0x28b7c6(0xd5):_0xca5e95[_0x28b7c6(0xea)][_0x28b7c6(0xee)]('depth')?'max-depth':_0xca5e95[_0x28b7c6(0xea)][_0x28b7c6(0xee)]('Crossing')?_0x28b7c6(0xd0):_0xca5e95[_0x28b7c6(0xea)][_0x28b7c6(0xee)](_0x28b7c6(0x72))?_0x28b7c6(0xd8):'unknown':_0x28b7c6(0xe3);}function be(_0x203cc1){const _0x2b1d97=_0x159a;return _0x203cc1 instanceof S?_0x203cc1[_0x2b1d97(0xe2)]:void 0x0;}const C=0x2**0x35-0x1;function w(_0x1fec8f,_0x21d711){const _0x40aaa3=_0x159a;return _0x1fec8f['unitId']===_0x21d711[_0x40aaa3(0xaa)]&&_0x1fec8f['subUnitId']===_0x21d711[_0x40aaa3(0xc2)]&&_0x1fec8f[_0x40aaa3(0x10c)]===_0x21d711['axis'];}function T(_0x57eff6,_0x1dc0cf={}){const _0x247d9=_0x159a;let _0x301dc1=_0x1dc0cf['maxDepth']??0x8,_0x5d3f7f=new Map();for(let _0x4e09c2 of _0x57eff6){let _0x16da23=_0x4e09c2[_0x247d9(0xaa)]+':'+_0x4e09c2[_0x247d9(0xc2)]+':'+_0x4e09c2[_0x247d9(0x10c)],_0x43b08f=_0x5d3f7f[_0x247d9(0xac)](_0x16da23);_0x43b08f?_0x43b08f[_0x247d9(0xd1)](_0x4e09c2):_0x5d3f7f['set'](_0x16da23,[_0x4e09c2]);}let _0x1e73a4=[];for(let _0xbee1d2 of _0x5d3f7f[_0x247d9(0x9d)]()){let _0x5a4666=[..._0xbee1d2]['sort'](j),_0x2f8977=[];for(let _0x3a9709 of _0x5a4666){for(Me(_0x3a9709);_0x2f8977[_0x247d9(0xd7)]>0x0&&_0x3a9709[_0x247d9(0xda)]>_0x2f8977[_0x2f8977[_0x247d9(0xd7)]-0x1][_0x247d9(0xec)];)_0x2f8977[_0x247d9(0x75)]();let _0x8fb558=_0x2f8977[_0x2f8977[_0x247d9(0xd7)]-0x1];if(_0x8fb558&&_0x3a9709[_0x247d9(0xec)]>_0x8fb558['end'])throw new S(_0x247d9(0xd0),_0x247d9(0xd6),_0x3a9709['id']);let _0x53f3fc=_0x8fb558?_0x8fb558[_0x247d9(0xe6)]+0x1:0x1;if(_0x53f3fc>_0x301dc1)throw new S(_0x247d9(0xdb),_0x247d9(0xe5)+_0x301dc1,_0x3a9709['id']);let _0x48fae0={..._0x3a9709,'depth':_0x53f3fc,'parentId':_0x8fb558==null?void 0x0:_0x8fb558['id'],'anchor':_0x3a9709[_0x247d9(0xec)],'children':[]};_0x8fb558?_0x8fb558[_0x247d9(0x7e)]['push'](_0x48fae0):_0x1e73a4[_0x247d9(0xd1)](_0x48fae0),_0x2f8977[_0x247d9(0xd1)](_0x48fae0);}}return _0x1e73a4;}function E(_0x145350,_0x5e5c1a,_0x30e92a={}){const _0x30ed20=_0x159a;if(_0x5e5c1a[_0x30ed20(0xda)]<0x0||_0x5e5c1a[_0x30ed20(0xda)]>_0x5e5c1a[_0x30ed20(0xec)])return{'valid':!0x1,'reason':_0x30ed20(0xd8)};if(_0x30e92a['maxIndex']!=null&&_0x5e5c1a['end']>=_0x30e92a['maxIndex'])return{'valid':!0x1,'reason':_0x30ed20(0x107)};let _0x3138da=_0x145350[_0x30ed20(0xa4)](_0x5a999a=>w(_0x5a999a,_0x5e5c1a));for(let _0x372934 of _0x3138da)if(Ne(_0x372934,_0x5e5c1a))return{'valid':!0x1,'reason':_0x30ed20(0xd0)};try{T([..._0x145350,_0x5e5c1a],_0x30e92a);}catch(_0x192b92){let _0x11141d=ye(_0x192b92);return _0x11141d===_0x30ed20(0xdb)?{'valid':!0x1,'reason':'max-depth'}:_0x11141d===_0x30ed20(0xd8)?{'valid':!0x1,'reason':_0x30ed20(0xd8)}:{'valid':!0x1,'reason':_0x30ed20(0xd0)};}return{'valid':!0x0};}function _0x159a(_0x548779,_0x8e6125){_0x548779=_0x548779-0x6e;const _0x375729=_0x3757();let _0x159a9c=_0x375729[_0x548779];return _0x159a9c;}function xe(_0x1c595e,_0xc6f937,_0x1b411f={}){const _0xd1878f=_0x159a;let _0x852992=E(_0x1c595e,_0xc6f937,_0x1b411f);if(!_0x852992['valid'])throw Error(_0x852992[_0xd1878f(0xb7)]??_0xd1878f(0x106));return[..._0x1c595e,_0xc6f937];}function Se(_0x159e1a,_0x4ea2da){const _0x2fe910=_0x159a;let _0x258a46=_0x4ea2da[_0x2fe910(0xda)],_0x2c24fd=_0x4ea2da['end'],_0x1a791e=[],_0x3c09d6=!0x0;for(;_0x3c09d6;){_0x3c09d6=!0x1;for(let _0xbc68e5 of _0x159e1a)_0x1a791e[_0x2fe910(0xee)](_0xbc68e5)||!w(_0xbc68e5,_0x4ea2da)||!Ae(_0xbc68e5['start'],_0xbc68e5[_0x2fe910(0xec)],_0x258a46,_0x2c24fd)||(_0x1a791e[_0x2fe910(0xd1)](_0xbc68e5),_0x258a46=Math[_0x2fe910(0x108)](_0x258a46,_0xbc68e5[_0x2fe910(0xda)]),_0x2c24fd=Math[_0x2fe910(0xf0)](_0x2c24fd,_0xbc68e5[_0x2fe910(0xec)]),_0x3c09d6=!0x0);}if(_0x1a791e[_0x2fe910(0xd7)]===0x0)return null;let [_0x45cc34]=[..._0x1a791e][_0x2fe910(0x7b)](j);return{'mergedOutline':{..._0x45cc34,'start':_0x258a46,'end':_0x2c24fd},'mergedOutlines':_0x1a791e};}function Ce(_0x25e63c,_0x7d23e0){const _0x4df9c3=_0x159a;return _0x25e63c[_0x4df9c3(0xa4)](_0x124a8a=>!w(_0x124a8a,_0x7d23e0)||!(_0x124a8a['start']>=_0x7d23e0[_0x4df9c3(0xda)]&&_0x124a8a['end']<=_0x7d23e0[_0x4df9c3(0xec)]));}function we(_0x47f933,_0x4070cd,_0x230996,_0x32979e){const _0x16d99d=_0x159a;return Te(_0x47f933[_0x16d99d(0xa4)](_0x5b34a3=>_0x5b34a3[_0x16d99d(0xaa)]===_0x4070cd&&_0x5b34a3[_0x16d99d(0xc2)]===_0x230996&&_0x5b34a3[_0x16d99d(0x10c)]===_0x32979e&&_0x5b34a3[_0x16d99d(0x93)])[_0x16d99d(0x115)](_0x274049=>({'start':_0x274049[_0x16d99d(0xda)],'end':_0x274049[_0x16d99d(0xec)]})));}function Te(_0x3382ff){const _0x1af0aa=_0x159a;if(_0x3382ff[_0x1af0aa(0xd7)]===0x0)return[];let _0x1270ee=[..._0x3382ff][_0x1af0aa(0x7b)]((_0x596ad7,_0x38ed07)=>_0x596ad7['start']-_0x38ed07['start']||_0x596ad7[_0x1af0aa(0xec)]-_0x38ed07[_0x1af0aa(0xec)]),_0x7d337c=[];for(let _0xb46a51 of _0x1270ee){let _0x92c118=_0x7d337c[_0x7d337c['length']-0x1];!_0x92c118||_0xb46a51[_0x1af0aa(0xda)]>_0x92c118[_0x1af0aa(0xec)]+0x1?_0x7d337c[_0x1af0aa(0xd1)]({..._0xb46a51}):_0x92c118[_0x1af0aa(0xec)]=Math['max'](_0x92c118[_0x1af0aa(0xec)],_0xb46a51[_0x1af0aa(0xec)]);}return _0x7d337c;}function D(_0x211aa9,_0x24f6af){const _0x3bc67d=_0x159a;return _0x24f6af['count']<=0x0?_0x211aa9:A(_0x211aa9[_0x3bc67d(0x115)](_0x26e912=>w(_0x26e912,_0x24f6af)?_0x24f6af[_0x3bc67d(0xfa)]<=_0x26e912[_0x3bc67d(0xda)]?{..._0x26e912,'start':_0x26e912[_0x3bc67d(0xda)]+_0x24f6af[_0x3bc67d(0x85)],'end':_0x26e912[_0x3bc67d(0xec)]+_0x24f6af[_0x3bc67d(0x85)]}:_0x26e912[_0x3bc67d(0xda)]<_0x24f6af['index']&&_0x24f6af[_0x3bc67d(0xfa)]<=_0x26e912[_0x3bc67d(0xec)]?{..._0x26e912,'end':_0x26e912['end']+_0x24f6af[_0x3bc67d(0x85)]}:_0x26e912:_0x26e912));}function O(_0x527987,_0x42545c){const _0x1276a1=_0x159a;if(_0x42545c[_0x1276a1(0xda)]>_0x42545c[_0x1276a1(0xec)])return _0x527987;let _0x21489b=_0x42545c[_0x1276a1(0xec)]-_0x42545c['start']+0x1,_0x5ec594=[];for(let _0x4dcaaa of _0x527987){if(!w(_0x4dcaaa,_0x42545c)){_0x5ec594['push'](_0x4dcaaa);continue;}if(_0x4dcaaa['end']<_0x42545c[_0x1276a1(0xda)]){_0x5ec594[_0x1276a1(0xd1)](_0x4dcaaa);continue;}if(_0x4dcaaa[_0x1276a1(0xda)]>_0x42545c['end']){_0x5ec594[_0x1276a1(0xd1)]({..._0x4dcaaa,'start':_0x4dcaaa[_0x1276a1(0xda)]-_0x21489b,'end':_0x4dcaaa[_0x1276a1(0xec)]-_0x21489b});continue;}let _0x3aa20e=Math[_0x1276a1(0xf0)](_0x4dcaaa[_0x1276a1(0xda)],_0x42545c[_0x1276a1(0xda)]),_0x4541d6=Math['min'](_0x4dcaaa['end'],_0x42545c[_0x1276a1(0xec)]),_0x3dfae0=Math[_0x1276a1(0xf0)](0x0,_0x4541d6-_0x3aa20e+0x1),_0x3147bd=_0x4dcaaa[_0x1276a1(0xec)]-_0x4dcaaa['start']+0x1-_0x3dfae0;if(_0x3147bd<=0x0)continue;let _0x46da1e=_0x4dcaaa['start']<_0x42545c[_0x1276a1(0xda)]?_0x4dcaaa[_0x1276a1(0xda)]:_0x42545c[_0x1276a1(0xda)];_0x5ec594['push']({..._0x4dcaaa,'start':_0x46da1e,'end':_0x46da1e+_0x3147bd-0x1});}return A(_0x5ec594);}function k(_0x5a3170,_0x2d1ae9){const _0x53cf6c=_0x159a;if(_0x2d1ae9[_0x53cf6c(0xb0)]>_0x2d1ae9[_0x53cf6c(0x8c)])return _0x5a3170;let _0x50ffc1=[];for(let _0x1304e8 of _0x5a3170){if(!w(_0x1304e8,_0x2d1ae9)){_0x50ffc1['push'](_0x1304e8);continue;}let _0x3ec857=Ee(_0x1304e8,_0x2d1ae9);if(_0x3ec857[_0x53cf6c(0x86)]==='split')throw new S(_0x53cf6c(0xd5),_0x53cf6c(0xc7)+_0x1304e8['id'],_0x1304e8['id']);_0x50ffc1[_0x53cf6c(0xd1)](_0x3ec857[_0x53cf6c(0x89)]);}return A(_0x50ffc1);}function Ee(_0x216000,_0x2c192c){const _0x5de4fa=_0x159a;let _0x33b9dd=De(_0x2c192c[_0x5de4fa(0xb0)],_0x2c192c['sourceEnd']+0x1,_0x2c192c[_0x5de4fa(0x103)]),_0x5ae5ef=[],_0x1a9e5f={'start':_0x216000['start'],'end':_0x216000[_0x5de4fa(0xec)]+0x1};for(let _0x50b8b0 of _0x33b9dd){let _0x115846=Oe(_0x1a9e5f,_0x50b8b0[_0x5de4fa(0x72)]);_0x115846&&_0x5ae5ef[_0x5de4fa(0xd1)]({'start':_0x115846['start']+_0x50b8b0['offset'],'end':_0x115846[_0x5de4fa(0xec)]+_0x50b8b0[_0x5de4fa(0x10d)]});}let _0x55a4d6=ke(_0x5ae5ef);return _0x55a4d6[_0x5de4fa(0xd7)]===0x1?{'type':'ok','outline':{..._0x216000,'start':_0x55a4d6[0x0]['start'],'end':_0x55a4d6[0x0][_0x5de4fa(0xec)]-0x1}}:{'type':_0x5de4fa(0xbb),'outline':_0x216000,'ranges':_0x55a4d6};}function De(_0x380f37,_0x395b86,_0x493d0c){const _0x5bd976=_0x159a;let _0x153b09=_0x395b86-_0x380f37;if(_0x153b09<=0x0)throw Error(_0x5bd976(0x94));return _0x493d0c>=_0x380f37&&_0x493d0c<=_0x395b86?[{'range':{'start':0x0,'end':C},'offset':0x0}]:_0x493d0c<_0x380f37?[{'range':{'start':0x0,'end':_0x493d0c},'offset':0x0},{'range':{'start':_0x493d0c,'end':_0x380f37},'offset':_0x153b09},{'range':{'start':_0x380f37,'end':_0x395b86},'offset':_0x493d0c-_0x380f37},{'range':{'start':_0x395b86,'end':C},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x380f37},'offset':0x0},{'range':{'start':_0x380f37,'end':_0x395b86},'offset':_0x493d0c-_0x395b86},{'range':{'start':_0x395b86,'end':_0x493d0c},'offset':-_0x153b09},{'range':{'start':_0x493d0c,'end':C},'offset':0x0}];}function Oe(_0x5ccc92,_0x4cd213){const _0x3bd3d0=_0x159a;let _0x441d44=Math['max'](_0x5ccc92['start'],_0x4cd213[_0x3bd3d0(0xda)]),_0x33c0c7=Math[_0x3bd3d0(0x108)](_0x5ccc92[_0x3bd3d0(0xec)],_0x4cd213[_0x3bd3d0(0xec)]);return _0x441d44>=_0x33c0c7?null:{'start':_0x441d44,'end':_0x33c0c7};}function ke(_0x3ac01a){const _0x46fb64=_0x159a;if(_0x3ac01a['length']===0x0)return[];let _0x55801f=[..._0x3ac01a][_0x46fb64(0x7b)]((_0x25a1f4,_0x2b4f4e)=>_0x25a1f4[_0x46fb64(0xda)]-_0x2b4f4e[_0x46fb64(0xda)]||_0x25a1f4['end']-_0x2b4f4e[_0x46fb64(0xec)]),_0x22ee3a=[];for(let _0x4fef88 of _0x55801f){let _0x3254e2=_0x22ee3a[_0x22ee3a['length']-0x1];!_0x3254e2||_0x4fef88[_0x46fb64(0xda)]>_0x3254e2[_0x46fb64(0xec)]?_0x22ee3a[_0x46fb64(0xd1)]({..._0x4fef88}):_0x3254e2[_0x46fb64(0xec)]=Math[_0x46fb64(0xf0)](_0x3254e2[_0x46fb64(0xec)],_0x4fef88['end']);}return _0x22ee3a;}function Ae(_0x3fd7a5,_0x2b23dc,_0x52fff2,_0x6b70bb){return _0x2b23dc+0x1===_0x52fff2||_0x6b70bb+0x1===_0x3fd7a5;}function A(_0x31a2fd){let _0x3166bd=je(_0x31a2fd);return T(_0x3166bd),_0x3166bd;}function je(_0x344778){const _0x185945=_0x159a;let _0x58d8c7=new Map();for(let _0x262004 of _0x344778){let _0x4d96db=[_0x262004[_0x185945(0xaa)],_0x262004['subUnitId'],_0x262004[_0x185945(0x10c)],_0x262004[_0x185945(0xda)],_0x262004[_0x185945(0xec)]]['join'](':'),_0x49ce05=_0x58d8c7[_0x185945(0xac)](_0x4d96db);if(!_0x49ce05){_0x58d8c7[_0x185945(0x91)](_0x4d96db,_0x262004);continue;}_0x58d8c7[_0x185945(0x91)](_0x4d96db,{..._0x49ce05,'collapsed':_0x49ce05['collapsed']||_0x262004[_0x185945(0x93)]});}return Array[_0x185945(0x6f)](_0x58d8c7[_0x185945(0x9d)]());}function j(_0x15f8c7,_0x4f61c9){const _0x2cb992=_0x159a;return _0x15f8c7['unitId']===_0x4f61c9[_0x2cb992(0xaa)]?_0x15f8c7[_0x2cb992(0xc2)]===_0x4f61c9['subUnitId']?_0x15f8c7[_0x2cb992(0x10c)]===_0x4f61c9['axis']?_0x15f8c7[_0x2cb992(0xda)]===_0x4f61c9[_0x2cb992(0xda)]?_0x4f61c9['end']-_0x15f8c7[_0x2cb992(0xec)]:_0x15f8c7['start']-_0x4f61c9[_0x2cb992(0xda)]:_0x15f8c7[_0x2cb992(0x10c)]['localeCompare'](_0x4f61c9[_0x2cb992(0x10c)]):_0x15f8c7['subUnitId'][_0x2cb992(0x87)](_0x4f61c9[_0x2cb992(0xc2)]):_0x15f8c7[_0x2cb992(0xaa)][_0x2cb992(0x87)](_0x4f61c9[_0x2cb992(0xaa)]);}function Me(_0x29b0e2){const _0x73b185=_0x159a;if(_0x29b0e2['start']>_0x29b0e2[_0x73b185(0xec)])throw new S(_0x73b185(0xd8),_0x73b185(0xa0),_0x29b0e2['id']);}function Ne(_0x3df354,_0x3fc510){const _0x16d605=_0x159a;let _0x251b07=_0x3df354[_0x16d605(0xda)]<=_0x3fc510[_0x16d605(0xec)]&&_0x3fc510[_0x16d605(0xda)]<=_0x3df354[_0x16d605(0xec)],_0x2ecd5a=_0x3df354['start']<=_0x3fc510[_0x16d605(0xda)]&&_0x3fc510['end']<=_0x3df354[_0x16d605(0xec)],_0x2421d2=_0x3fc510[_0x16d605(0xda)]<=_0x3df354[_0x16d605(0xda)]&&_0x3df354[_0x16d605(0xec)]<=_0x3fc510[_0x16d605(0xec)];return _0x251b07&&!_0x2ecd5a&&!_0x2421d2;}function M(_0x45482f){'@babel/helpers - typeof';const _0x728e41=_0x159a;return M=typeof Symbol==_0x728e41(0x70)&&typeof Symbol[_0x728e41(0xdc)]=='symbol'?function(_0x558733){return typeof _0x558733;}:function(_0x2281c7){const _0x2c1d8c=_0x728e41;return _0x2281c7&&typeof Symbol==_0x2c1d8c(0x70)&&_0x2281c7['constructor']===Symbol&&_0x2281c7!==Symbol['prototype']?_0x2c1d8c(0xe9):typeof _0x2281c7;},M(_0x45482f);}function Pe(_0x200f44,_0xc5f9cd){const _0x51349e=_0x159a;if(M(_0x200f44)!='object'||!_0x200f44)return _0x200f44;var _0x3b31e7=_0x200f44[Symbol[_0x51349e(0xeb)]];if(_0x3b31e7!==void 0x0){var _0x486ac2=_0x3b31e7[_0x51349e(0xce)](_0x200f44,_0xc5f9cd||'default');if(M(_0x486ac2)!=_0x51349e(0x8f))return _0x486ac2;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xc5f9cd===_0x51349e(0xba)?String:Number)(_0x200f44);}function Fe(_0x7a47e6){const _0x58492d=_0x159a;var _0x1a152f=Pe(_0x7a47e6,_0x58492d(0xba));return M(_0x1a152f)==_0x58492d(0xe9)?_0x1a152f:_0x1a152f+'';}function N(_0x27990e,_0x1bce0d,_0x56f5be){return(_0x1bce0d=Fe(_0x1bce0d))in _0x27990e?Object['defineProperty'](_0x27990e,_0x1bce0d,{'value':_0x56f5be,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27990e[_0x1bce0d]=_0x56f5be,_0x27990e;}var P=class extends _0x398395{constructor(..._0x3a88b3){const _0x1d4d79=_0x159a;super(..._0x3a88b3),N(this,'_outlines',new Map()),N(this,_0x1d4d79(0x8d),new _0x46fada()),N(this,_0x1d4d79(0xae),this['_change$'][_0x1d4d79(0xe8)]());}[_0x3bf8d5(0x7a)](_0x44facc,_0x4a5c7d){const _0x29f9fb=_0x3bf8d5;var _0x48679f;return[...((_0x48679f=this['_outlines'][_0x29f9fb(0xac)](_0x44facc))==null?void 0x0:_0x48679f['get'](_0x4a5c7d))??[]];}['getUnitOutlines'](_0x4d6dfe){const _0x36212b=_0x3bf8d5;let _0x4dde25=this['_outlines'][_0x36212b(0xac)](_0x4d6dfe),_0x3c1b73=new Map();return _0x4dde25==null||_0x4dde25[_0x36212b(0x110)]((_0x5a1eda,_0x200400)=>{const _0x3429f1=_0x36212b;_0x3c1b73[_0x3429f1(0x91)](_0x200400,[..._0x5a1eda]);}),_0x3c1b73;}[_0x3bf8d5(0x7c)](_0x25001e,_0x539c15,_0x21dc10){const _0x2d2996=_0x3bf8d5;this[_0x2d2996(0x77)](_0x25001e)[_0x2d2996(0x91)](_0x539c15,[..._0x21dc10]),this['_change$']['next']({'unitId':_0x25001e,'subUnitId':_0x539c15});}[_0x3bf8d5(0x7f)](_0x5bff47){const _0xadec96=_0x3bf8d5;this[_0xadec96(0xdd)][_0xadec96(0xbc)](_0x5bff47),this[_0xadec96(0x8d)]['next']({'unitId':_0x5bff47});}['serialize'](_0x27900e){const _0x1e0807=_0x3bf8d5;let _0x47d9e5=this[_0x1e0807(0xdd)][_0x1e0807(0xac)](_0x27900e),_0x386a45={};return _0x47d9e5==null||_0x47d9e5[_0x1e0807(0x110)]((_0x30d81b,_0x28952a)=>{_0x386a45[_0x28952a]={'outlineList':[..._0x30d81b]};}),_0x386a45;}['deserialize'](_0x3999a4,_0x2b8b1e){const _0x29bdf6=_0x3bf8d5;let _0x5de066=new Map();Object['entries'](_0x2b8b1e)[_0x29bdf6(0x110)](([_0x5387e7,_0x14d80c])=>{const _0x12ff53=_0x29bdf6;_0x5de066[_0x12ff53(0x91)](_0x5387e7,[..._0x14d80c[_0x12ff53(0xdf)]??[]]);}),this[_0x29bdf6(0xdd)]['set'](_0x3999a4,_0x5de066),this[_0x29bdf6(0x8d)][_0x29bdf6(0x10b)]({'unitId':_0x3999a4});}[_0x3bf8d5(0xd2)](){const _0x358ac1=_0x3bf8d5;super[_0x358ac1(0xd2)](),this[_0x358ac1(0xdd)][_0x358ac1(0xff)](),this['_change$'][_0x358ac1(0x8e)]();}[_0x3bf8d5(0x77)](_0x1dad72){const _0x2af0d4=_0x3bf8d5;let _0x47c71b=this['_outlines'][_0x2af0d4(0xac)](_0x1dad72);return _0x47c71b||(_0x47c71b=new Map(),this[_0x2af0d4(0xdd)]['set'](_0x1dad72,_0x47c71b)),_0x47c71b;}},F=class extends _0x398395{constructor(..._0x27928c){const _0x4d7ecd=_0x3bf8d5;super(..._0x27928c),N(this,_0x4d7ecd(0x80),new _0x46fada()),N(this,'error$',this[_0x4d7ecd(0x80)][_0x4d7ecd(0xe8)]());}[_0x3bf8d5(0x76)](_0xa38935){const _0x47599f=_0x3bf8d5;this['_error$'][_0x47599f(0x10b)](_0xa38935);}[_0x3bf8d5(0xd2)](){const _0x126f74=_0x3bf8d5;super[_0x126f74(0xd2)](),this[_0x126f74(0x80)][_0x126f74(0x8e)]();}};const I={'id':'sheet.mutation.add-dimension-outline','type':_0x2c52c8[_0x3bf8d5(0xb8)],'handler':(_0x43e73c,_0x4aefe8)=>{const _0x48b20e=_0x3bf8d5;let _0x21c54c=_0x43e73c[_0x48b20e(0xac)](P),_0x2e94ce=_0x21c54c[_0x48b20e(0x7a)](_0x4aefe8['unitId'],_0x4aefe8[_0x48b20e(0xc2)]);return _0x21c54c['setOutlines'](_0x4aefe8[_0x48b20e(0xaa)],_0x4aefe8['subUnitId'],xe(_0x2e94ce,_0x4aefe8['outline'])),!0x0;}},L={'id':_0x3bf8d5(0xc5),'type':_0x2c52c8[_0x3bf8d5(0xb8)],'handler':(_0x1208c8,_0x19eecc)=>{const _0x35f67e=_0x3bf8d5;let _0x5427ac=_0x1208c8[_0x35f67e(0xac)](P),_0x40d694=_0x5427ac[_0x35f67e(0x7a)](_0x19eecc[_0x35f67e(0xaa)],_0x19eecc[_0x35f67e(0xc2)]);return _0x5427ac[_0x35f67e(0x7c)](_0x19eecc[_0x35f67e(0xaa)],_0x19eecc[_0x35f67e(0xc2)],_0x40d694[_0x35f67e(0xa4)](_0x2cbc4b=>_0x2cbc4b['id']!==_0x19eecc[_0x35f67e(0xe2)])),!0x0;}};function R(_0x23e267,_0x27a626,_0x353e8a){const _0x4066d7=_0x3bf8d5;let _0x1777c8=Le(_0x23e267);return!_0x1777c8||_0x1777c8[_0x4066d7(0xde)]({'workbookTypes':[_0x520301],'worksheetTypes':[_0x4c06fc]},_0x27a626,_0x353e8a);}function Ie(_0x176c64,_0x35e317,_0xb08fb5){const _0x57ec0d=_0x3bf8d5;let _0x335d0a=Re(_0x176c64);return((_0x335d0a==null?void 0x0:_0x335d0a[_0x57ec0d(0x101)])??_0x3191b2(null))['pipe'](_0x1116d4(0x64),_0xe13a2d(null),_0x281c4e(()=>R(_0x176c64,_0x35e317,_0xb08fb5)));}function Le(_0xd9f55b){const _0x4a02d0=_0x3bf8d5;if(typeof _0xd9f55b[_0x4a02d0(0xc9)]==_0x4a02d0(0x70)&&!_0xd9f55b['has'](_0x843424))return null;try{return _0xd9f55b['get'](_0x843424);}catch{return null;}}function Re(_0x35ca0c){const _0x1a0888=_0x3bf8d5;if(typeof _0x35ca0c['has']==_0x1a0888(0x70)&&!_0x35ca0c[_0x1a0888(0xc9)](_0x557097))return null;try{return _0x35ca0c[_0x1a0888(0xac)](_0x557097);}catch{return null;}}const z={'id':_0x3bf8d5(0xf5),'type':_0x2c52c8[_0x3bf8d5(0xc8)],'handler':(_0x4b2faf,_0x4d2d7e)=>{const _0x7e685b=_0x3bf8d5;if(!_0x4d2d7e)return!0x1;let _0xf4f8cc=_0x317f2a(_0x4b2faf[_0x7e685b(0xac)](_0x957178),_0x4d2d7e);if(!_0xf4f8cc)return!0x1;let {unitId:_0x46829b,subUnitId:_0x415bc0,worksheet:_0x2e2bb8}=_0xf4f8cc;if(!R(_0x4b2faf,_0x46829b,_0x415bc0))return!0x1;let _0x35520c=_0x4b2faf[_0x7e685b(0xac)](P),_0x210364={'id':_0x7e685b(0xa3)+_0x174d5b(0x6),'unitId':_0x46829b,'subUnitId':_0x415bc0,'axis':_0x4d2d7e['axis'],'start':_0x4d2d7e[_0x7e685b(0xda)],'end':_0x4d2d7e[_0x7e685b(0xec)],'collapsed':!0x1},_0x2c0813=_0x4d2d7e[_0x7e685b(0x10c)]==='row'?_0x2e2bb8[_0x7e685b(0xe0)]():_0x2e2bb8[_0x7e685b(0xa9)](),_0x13d5d3=_0x35520c[_0x7e685b(0x7a)](_0x46829b,_0x415bc0),_0x87e767=Se(_0x13d5d3,_0x210364),_0x266065=(_0x87e767==null?void 0x0:_0x87e767[_0x7e685b(0x96)])??[],_0x323635=(_0x87e767==null?void 0x0:_0x87e767[_0x7e685b(0x102)])??_0x210364,_0x636b3a=E(_0x87e767?_0x13d5d3[_0x7e685b(0xa4)](_0xc59243=>!_0x266065['some'](_0x14dc6a=>_0x14dc6a['id']===_0xc59243['id'])):_0x13d5d3,_0x323635,{'maxIndex':_0x2c0813});if(!_0x636b3a['valid'])return _0x4b2faf[_0x7e685b(0xac)](F)[_0x7e685b(0x76)]({'reason':_0x636b3a[_0x7e685b(0xb7)]??'unknown','commandId':z['id'],'unitId':_0x46829b,'subUnitId':_0x415bc0,'axis':_0x4d2d7e[_0x7e685b(0x10c)],'outlineId':_0x323635['id']}),!0x1;let _0xa4601c=[..._0x266065[_0x7e685b(0x115)](_0x35c38c=>({'id':L['id'],'params':{'unitId':_0x46829b,'subUnitId':_0x415bc0,'outlineId':_0x35c38c['id']}})),{'id':I['id'],'params':{'unitId':_0x46829b,'subUnitId':_0x415bc0,'outline':_0x323635}}],_0x29a42b=[{'id':L['id'],'params':{'unitId':_0x46829b,'subUnitId':_0x415bc0,'outlineId':_0x323635['id']}},..._0x266065[_0x7e685b(0x115)](_0x120e01=>({'id':I['id'],'params':{'unitId':_0x46829b,'subUnitId':_0x415bc0,'outline':_0x120e01}}))];return _0x86848(_0xa4601c,_0x4b2faf[_0x7e685b(0xac)](_0x71ae52))[_0x7e685b(0xbe)]?(_0x4b2faf[_0x7e685b(0xac)](_0x8bf480)[_0x7e685b(0xef)]({'unitID':_0x46829b,'undoMutations':_0x29a42b,'redoMutations':_0xa4601c}),!0x0):!0x1;}},B={'id':_0x3bf8d5(0x81),'type':_0x2c52c8['MUTATION'],'handler':(_0x280a74,_0x54a8fa)=>{const _0x2d4783=_0x3bf8d5;let _0x4e2e7f=_0x280a74['get'](P),_0x4a0086=_0x4e2e7f[_0x2d4783(0x7a)](_0x54a8fa[_0x2d4783(0xaa)],_0x54a8fa[_0x2d4783(0xc2)]);return _0x4e2e7f[_0x2d4783(0x7c)](_0x54a8fa[_0x2d4783(0xaa)],_0x54a8fa['subUnitId'],Ce(_0x4a0086,_0x54a8fa)),!0x0;}},V={'id':_0x3bf8d5(0xe7),'type':_0x2c52c8[_0x3bf8d5(0xc8)],'handler':(_0x3660c6,_0x2f5ba1)=>{const _0x103b44=_0x3bf8d5;if(!_0x2f5ba1)return!0x1;let _0x30141c=_0x317f2a(_0x3660c6['get'](_0x957178),_0x2f5ba1);if(!_0x30141c)return!0x1;let {unitId:_0x320615,subUnitId:_0x165413}=_0x30141c;if(!R(_0x3660c6,_0x320615,_0x165413))return!0x1;let _0x57f457={'unitId':_0x320615,'subUnitId':_0x165413,'axis':_0x2f5ba1[_0x103b44(0x10c)],'start':_0x2f5ba1['start'],'end':_0x2f5ba1[_0x103b44(0xec)]},_0x650ef5=_0x3660c6[_0x103b44(0xac)](P)[_0x103b44(0x7a)](_0x320615,_0x165413)[_0x103b44(0xa4)](_0x2c9426=>w(_0x2c9426,_0x57f457)&&_0x2c9426['start']>=_0x2f5ba1[_0x103b44(0xda)]&&_0x2c9426[_0x103b44(0xec)]<=_0x2f5ba1[_0x103b44(0xec)]);if(_0x650ef5[_0x103b44(0xd7)]===0x0)return _0x3660c6[_0x103b44(0xac)](F)['emit']({'reason':'clear-range-not-contain-outline','commandId':V['id'],'unitId':_0x320615,'subUnitId':_0x165413,'axis':_0x2f5ba1['axis']}),!0x1;let _0x2896f7=[{'id':B['id'],'params':{..._0x57f457,'removedOutlineIds':_0x650ef5[_0x103b44(0x115)](_0x3a4674=>_0x3a4674['id'])}}],_0x46e0f1=_0x650ef5[_0x103b44(0x115)](_0xe9dd76=>({'id':I['id'],'params':{'unitId':_0x320615,'subUnitId':_0x165413,'outline':_0xe9dd76}}));return _0x86848(_0x2896f7,_0x3660c6['get'](_0x71ae52))[_0x103b44(0xbe)]?(_0x3660c6[_0x103b44(0xac)](_0x8bf480)[_0x103b44(0xef)]({'unitID':_0x320615,'undoMutations':_0x46e0f1,'redoMutations':_0x2896f7}),!0x0):!0x1;}},ze={'id':_0x3bf8d5(0x83),'type':_0x2c52c8['COMMAND'],'handler':(_0x2761ca,_0x2ef9db)=>{const _0x513418=_0x3bf8d5;if(!_0x2ef9db)return!0x1;let _0x5def87=_0x317f2a(_0x2761ca[_0x513418(0xac)](_0x957178),_0x2ef9db);if(!_0x5def87)return!0x1;let {unitId:_0x2e9894,subUnitId:_0x43bfdd}=_0x5def87;if(!R(_0x2761ca,_0x2e9894,_0x43bfdd))return!0x1;let _0x2afd83=_0x2761ca[_0x513418(0xac)](P)[_0x513418(0x7a)](_0x2e9894,_0x43bfdd)['find'](_0x3f7e54=>_0x3f7e54['id']===_0x2ef9db['outlineId']);if(!_0x2afd83)return!0x1;let _0x2fc185=[{'id':L['id'],'params':{'unitId':_0x2e9894,'subUnitId':_0x43bfdd,'outlineId':_0x2afd83['id'],'outline':_0x2afd83}}],_0x266989=[{'id':I['id'],'params':{'unitId':_0x2e9894,'subUnitId':_0x43bfdd,'outline':_0x2afd83}}];return _0x86848(_0x2fc185,_0x2761ca[_0x513418(0xac)](_0x71ae52))[_0x513418(0xbe)]?(_0x2761ca[_0x513418(0xac)](_0x8bf480)[_0x513418(0xef)]({'unitID':_0x2e9894,'undoMutations':_0x266989,'redoMutations':_0x2fc185}),!0x0):!0x1;}},H={'id':_0x3bf8d5(0xbd),'type':_0x2c52c8['MUTATION'],'handler':(_0x44cf64,_0x13a2cb)=>{const _0xfe0d59=_0x3bf8d5;let _0x3d9e83=_0x44cf64[_0xfe0d59(0xac)](P),_0x1d5438=_0x3d9e83[_0xfe0d59(0x7a)](_0x13a2cb[_0xfe0d59(0xaa)],_0x13a2cb[_0xfe0d59(0xc2)]),_0x134190=_0x1d5438[_0xfe0d59(0x109)](_0x3541c8=>_0x3541c8['id']===_0x13a2cb[_0xfe0d59(0xe2)]);return _0x134190&&_0x3d9e83[_0xfe0d59(0x7c)](_0x13a2cb[_0xfe0d59(0xaa)],_0x13a2cb[_0xfe0d59(0xc2)],_0x1d5438[_0xfe0d59(0x115)](_0x4fcb6e=>_0x4fcb6e['unitId']!==_0x134190[_0xfe0d59(0xaa)]||_0x4fcb6e[_0xfe0d59(0xc2)]!==_0x134190['subUnitId']||_0x4fcb6e['axis']!==_0x134190[_0xfe0d59(0x10c)]||_0x4fcb6e['start']!==_0x134190['start']||_0x4fcb6e['end']!==_0x134190['end']?_0x4fcb6e:{..._0x4fcb6e,'collapsed':_0x13a2cb['collapsed']})),!0x0;}};function Be(_0xa2eb68,_0x3661bc,_0x4a06d3,_0x1198f5){const _0x4eed2a=_0x3bf8d5;return _0xa2eb68===_0x4eed2a(0xa2)?{'startRow':_0x3661bc,'endRow':_0x4a06d3,'startColumn':0x0,'endColumn':_0x1198f5[_0x4eed2a(0xe1)]()-0x1}:{'startRow':0x0,'endRow':_0x1198f5['getRowCount']()-0x1,'startColumn':_0x3661bc,'endColumn':_0x4a06d3};}function Ve(_0x187f0b){const _0x51727a=_0x3bf8d5;return _0x187f0b===_0x51727a(0xa2)?_0x5c8cde['id']:_0x2f4f69['id'];}function He(_0x1e136c){const _0x3b0364=_0x3bf8d5;return _0x1e136c===_0x3b0364(0xa2)?_0x4596c5['id']:_0xf79dda['id'];}function Ue(_0x35c1c0,_0x576b22,_0x983b5e,_0x24e49f){const _0x19726f=_0x3bf8d5;let _0x587339=_0x576b22?[Be(_0x35c1c0['axis'],_0x35c1c0[_0x19726f(0xda)],_0x35c1c0[_0x19726f(0xec)],_0x983b5e)]:We(_0x35c1c0,_0x24e49f,_0x983b5e),_0xeb2b54=_0x576b22?Ve(_0x35c1c0['axis']):He(_0x35c1c0['axis']);return[{'id':H['id'],'params':{'unitId':_0x35c1c0[_0x19726f(0xaa)],'subUnitId':_0x35c1c0['subUnitId'],'outlineId':_0x35c1c0['id'],'outline':_0x35c1c0,'collapsed':_0x576b22}},..._0x587339[_0x19726f(0x115)](_0x3f5818=>({'id':_0xeb2b54,'params':{'unitId':_0x35c1c0['unitId'],'subUnitId':_0x35c1c0[_0x19726f(0xc2)],'ranges':[_0x3f5818],'dimensionOutlineId':_0x35c1c0['id']}}))];}function We(_0x25e2c2,_0x3754d6,_0x594fd8){const _0x69b6e4=_0x3bf8d5;let _0x5a8573=we(_0x3754d6['map'](_0x345cf6=>Ge(_0x345cf6,_0x25e2c2)?{..._0x345cf6,'collapsed':!0x1}:_0x345cf6),_0x25e2c2[_0x69b6e4(0xaa)],_0x25e2c2['subUnitId'],_0x25e2c2[_0x69b6e4(0x10c)]);return Ke({'start':_0x25e2c2[_0x69b6e4(0xda)],'end':_0x25e2c2['end']},_0x5a8573)[_0x69b6e4(0x115)](_0x2c5c8e=>Be(_0x25e2c2['axis'],_0x2c5c8e['start'],_0x2c5c8e[_0x69b6e4(0xec)],_0x594fd8));}function Ge(_0x1bfdd9,_0x10de85){const _0x31a7ea=_0x3bf8d5;return _0x1bfdd9[_0x31a7ea(0xaa)]===_0x10de85['unitId']&&_0x1bfdd9['subUnitId']===_0x10de85[_0x31a7ea(0xc2)]&&_0x1bfdd9[_0x31a7ea(0x10c)]===_0x10de85[_0x31a7ea(0x10c)]&&_0x1bfdd9['start']===_0x10de85['start']&&_0x1bfdd9[_0x31a7ea(0xec)]===_0x10de85[_0x31a7ea(0xec)];}function Ke(_0x157005,_0x52e996){const _0x36bdf9=_0x3bf8d5;let _0x4f54e6=_0x157005[_0x36bdf9(0xda)],_0x3829aa=[];for(let _0x5443c7 of _0x52e996)if(!(_0x5443c7[_0x36bdf9(0xec)]<_0x4f54e6||_0x5443c7[_0x36bdf9(0xda)]>_0x157005['end'])&&(_0x5443c7[_0x36bdf9(0xda)]>_0x4f54e6&&_0x3829aa['push']({'start':_0x4f54e6,'end':Math['min'](_0x5443c7[_0x36bdf9(0xda)]-0x1,_0x157005[_0x36bdf9(0xec)])}),_0x4f54e6=Math[_0x36bdf9(0xf0)](_0x4f54e6,_0x5443c7[_0x36bdf9(0xec)]+0x1),_0x4f54e6>_0x157005[_0x36bdf9(0xec)]))break;return _0x4f54e6<=_0x157005[_0x36bdf9(0xec)]&&_0x3829aa[_0x36bdf9(0xd1)]({'start':_0x4f54e6,'end':_0x157005[_0x36bdf9(0xec)]}),_0x3829aa;}const qe={'id':_0x3bf8d5(0x90),'type':_0x2c52c8[_0x3bf8d5(0xc8)],'handler':(_0x4c1914,_0x6d0403)=>{const _0x251026=_0x3bf8d5;if(!_0x6d0403)return!0x1;let _0x1fb59d=_0x317f2a(_0x4c1914[_0x251026(0xac)](_0x957178),_0x6d0403);if(!_0x1fb59d)return!0x1;let {unitId:_0x180eb9,subUnitId:_0x306ca0,worksheet:_0x28ad2c}=_0x1fb59d;if(!R(_0x4c1914,_0x180eb9,_0x306ca0))return!0x1;let _0x29080f=_0x4c1914[_0x251026(0xac)](P)[_0x251026(0x7a)](_0x180eb9,_0x306ca0),_0x24ea66=_0x29080f[_0x251026(0x109)](_0x4c7216=>_0x4c7216['id']===_0x6d0403[_0x251026(0xe2)]);if(!_0x24ea66||_0x24ea66[_0x251026(0x93)]===_0x6d0403['collapsed'])return!0x1;let _0x5304ec=Ue(_0x24ea66,_0x6d0403['collapsed'],_0x28ad2c,_0x29080f),_0x13ba1b=Ue(_0x24ea66,!_0x6d0403[_0x251026(0x93)],_0x28ad2c,_0x29080f);return _0x86848(_0x5304ec,_0x4c1914[_0x251026(0xac)](_0x71ae52))[_0x251026(0xbe)]?(_0x4c1914[_0x251026(0xac)](_0x8bf480)[_0x251026(0xef)]({'unitID':_0x180eb9,'undoMutations':_0x13ba1b,'redoMutations':_0x5304ec}),!0x0):!0x1;}},U={'id':_0x3bf8d5(0x10a),'type':_0x2c52c8[_0x3bf8d5(0xb8)],'handler':(_0x5cedeb,_0x5f1ce2)=>{const _0x3ed4d0=_0x3bf8d5;let _0x8e3b88=_0x5cedeb[_0x3ed4d0(0xac)](P),_0x2ad403=Je(_0x8e3b88['getOutlines'](_0x5f1ce2['unitId'],_0x5f1ce2['subUnitId']),_0x5f1ce2);return _0x8e3b88['setOutlines'](_0x5f1ce2[_0x3ed4d0(0xaa)],_0x5f1ce2[_0x3ed4d0(0xc2)],_0x2ad403),!0x0;}};function Je(_0x9a8326,_0x540d1d){const _0x18479c=_0x3bf8d5;switch(_0x540d1d['type']){case _0x18479c(0xb3):return _0x540d1d['restoreOutlines']?Ye(_0x9a8326,_0x540d1d):D(_0x9a8326,_0x540d1d);case _0x18479c(0xbc):return O(_0x9a8326,_0x540d1d);case _0x18479c(0xf4):return k(_0x9a8326,_0x540d1d);}}function _0x3757(){const _0x1c5a9f=['min','find','sheet.mutation.transform-dimension-outlines','next','axis','offset','_configService','Invalid\x20dimension\x20outline\x20mutation','forEach','MAX_DEPTH','1229427PVIPkb','version','setConfig','map','getUnit','from','function','serialize','range','_sheetsOutlineErrorService','1053KXmKPb','pop','emit','_ensureUnitOutlines','params','_injector','getOutlines','sort','setOutlines','@univerjs-pro/sheets-outline','children','removeUnit','_error$','sheet.mutation.clear-dimension-outlines','_initResource','sheet.command.remove-dimension-outline','1RPdbfs','count','type','localeCompare','endRow','outline','2570IRdjvz','getCurrentUnitOfType','sourceEnd','_change$','complete','object','sheet.command.set-dimension-outline-collapsed','set','packageName','collapsed','Invalid\x20dimension\x20outline\x20move\x20source\x20range','ROW','mergedOutlines','DimensionOutlineError','fromRange','CROSSING','12423TMFzop','INVALID_RANGE','_sheetInterceptorService','values','8724IPeiYI','_config','Invalid\x20outline\x20range','_sheetsOutlineModel','row','dimension-outline-','filter','registerPluginResource','restoreOutlines','_commandService','getUnitId','getColumnCount','unitId','defineProperty','get','sheets-outline.config','change$','OUT_OF_BOUNDS','sourceStart','UNIVER_SHEET','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','insert','_initCommandInterceptor','32fGHBrE','_resourceManagerService','reason','MUTATION','parse','string','split','delete','sheet.mutation.set-dimension-outline-collapsed','result','_initRegisterCommand','decorate','getOwnPropertyDescriptor','subUnitId','stringify','onStarting','sheet.mutation.remove-dimension-outline','startRow','Move\x20would\x20split\x20dimension\x20outline:\x20','COMMAND','has','some','disposeWithMe','column','registerCommand','call','endColumn','crossing','push','dispose','1949955fKlUlX','name','move-splits-outline','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','length','invalid-range','1095426xVqufe','start','max-depth','iterator','_outlines','permissionCheckWithoutRange','outlineList','getRowCount','getMaxColumns','outlineId','unknown','_univerInstanceService','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','depth','sheet.command.clear-dimension-outlines','asObservable','symbol','message','toPrimitive','end','1.0.0-beta.2','includes','pushUndoRedo','max','COLUMN','deserialize','400RUfhru','move','sheet.command.add-dimension-outline','startColumn','50352cwcALq','_getCommandScope','getSheetBySheetId','index','2093lfsFlz','19162zOysMg','preRedos','toRange','clear','getActiveSheet','permissionPointUpdate$','mergedOutline','destinationIndex','split\x20dimension\x20outline','add','invalid-dimension-outline','out-of-bounds'];_0x3757=function(){return _0x1c5a9f;};return _0x3757();}function Ye(_0x12b836,_0x34ec4c){const _0x2cbd79=_0x3bf8d5;return[..._0x12b836[_0x2cbd79(0xa4)](_0x10884d=>_0x10884d['unitId']!==_0x34ec4c[_0x2cbd79(0xaa)]||_0x10884d[_0x2cbd79(0xc2)]!==_0x34ec4c['subUnitId']||_0x10884d[_0x2cbd79(0x10c)]!==_0x34ec4c[_0x2cbd79(0x10c)]),..._0x34ec4c[_0x2cbd79(0xa6)]];}const W='SHEET_OUTLINE_PLUGIN';var Xe=_0x3bf8d5(0x7d),Ze=_0x3bf8d5(0xed);const Qe={};function G(_0x20f0ef,_0x317afa){return function(_0x22c42b,_0x5ecb83){_0x317afa(_0x22c42b,_0x5ecb83,_0x20f0ef);};}function K(_0x37fd17,_0x1d4e42,_0x5beab6,_0x3f376c){const _0x1b4f72=_0x3bf8d5;var _0x1dfdbe=arguments[_0x1b4f72(0xd7)],_0x22a4d7=_0x1dfdbe<0x3?_0x1d4e42:_0x3f376c===null?_0x3f376c=Object[_0x1b4f72(0xc1)](_0x1d4e42,_0x5beab6):_0x3f376c,_0x5be6c3;if(typeof Reflect==_0x1b4f72(0x8f)&&typeof Reflect[_0x1b4f72(0xc0)]==_0x1b4f72(0x70))_0x22a4d7=Reflect['decorate'](_0x37fd17,_0x1d4e42,_0x5beab6,_0x3f376c);else{for(var _0x2480c5=_0x37fd17[_0x1b4f72(0xd7)]-0x1;_0x2480c5>=0x0;_0x2480c5--)(_0x5be6c3=_0x37fd17[_0x2480c5])&&(_0x22a4d7=(_0x1dfdbe<0x3?_0x5be6c3(_0x22a4d7):_0x1dfdbe>0x3?_0x5be6c3(_0x1d4e42,_0x5beab6,_0x22a4d7):_0x5be6c3(_0x1d4e42,_0x5beab6))||_0x22a4d7);}return _0x1dfdbe>0x3&&_0x22a4d7&&Object[_0x1b4f72(0xab)](_0x1d4e42,_0x5beab6,_0x22a4d7),_0x22a4d7;}const q={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let J=class extends _0x398395{constructor(_0x2ee73c,_0x4ec210,_0x37cb31,_0x1a70bb){const _0xffeb70=_0x3bf8d5;super(),this[_0xffeb70(0xe4)]=_0x2ee73c,this[_0xffeb70(0x9c)]=_0x4ec210,this[_0xffeb70(0xa1)]=_0x37cb31,this[_0xffeb70(0x73)]=_0x1a70bb,this[_0xffeb70(0xb4)]();}[_0x3bf8d5(0xb4)](){const _0xedf3a3=_0x3bf8d5;this[_0xedf3a3(0xcb)](this[_0xedf3a3(0x9c)]['interceptCommand']({'getMutations':_0x3bed59=>$e(_0x3bed59,(_0x141ca0,_0x43ecae)=>this[_0xedf3a3(0xa1)][_0xedf3a3(0x7a)](_0x141ca0,_0x43ecae),this[_0xedf3a3(0xf8)](_0x3bed59['params']),_0x2b8aa3=>this[_0xedf3a3(0x73)][_0xedf3a3(0x76)](_0x2b8aa3))}));}[_0x3bf8d5(0xf8)](_0x2034c2){const _0x49ecf5=_0x3bf8d5;let _0x2d05dd=_0x2034c2,_0x1e6889=_0x2d05dd!=null&&_0x2d05dd[_0x49ecf5(0xaa)]?this[_0x49ecf5(0xe4)][_0x49ecf5(0x6e)](_0x2d05dd['unitId'],_0x570645[_0x49ecf5(0xb1)]):this[_0x49ecf5(0xe4)][_0x49ecf5(0x8b)](_0x570645[_0x49ecf5(0xb1)]);if(!_0x1e6889)return;let _0x330ac9=_0x2d05dd!=null&&_0x2d05dd[_0x49ecf5(0xc2)]?_0x1e6889[_0x49ecf5(0xf9)](_0x2d05dd[_0x49ecf5(0xc2)]):_0x1e6889[_0x49ecf5(0x100)]();if(_0x330ac9)return{'unitId':_0x1e6889[_0x49ecf5(0xa8)](),'subUnitId':_0x330ac9['getSheetId']()};}};J=K([G(0x0,_0x957178),G(0x1,_0x540b44(_0x26654b)),G(0x2,_0x540b44(P)),G(0x3,_0x540b44(F))],J);function $e(_0x2efddd,_0x1f236e,_0x31bbb1,_0x2cc271){const _0x400d0b=_0x3bf8d5;let _0x767652=tt(_0x2efddd,_0x31bbb1);if(!_0x767652)return Z();let _0x53ede5=_0x1f236e(_0x767652[_0x400d0b(0xaa)],_0x767652[_0x400d0b(0xc2)]);if(!_0x53ede5[_0x400d0b(0xca)](_0x5266be=>_0x5266be['axis']===_0x767652[_0x400d0b(0x10c)]))return Z();et(_0x53ede5,_0x767652,_0x2efddd['id'],_0x2cc271);let _0x39f539=it(_0x767652,_0x53ede5);return{'redos':[{'id':U['id'],'params':_0x767652}],'undos':[{'id':U['id'],'params':_0x39f539}],'preRedos':[],'preUndos':[]};}function et(_0x4b6b74,_0x3b28eb,_0x5d970d,_0xe98850){const _0xbf7d51=_0x3bf8d5;try{switch(_0x3b28eb[_0xbf7d51(0x86)]){case _0xbf7d51(0xb3):D(_0x4b6b74,_0x3b28eb);break;case _0xbf7d51(0xbc):O(_0x4b6b74,_0x3b28eb);break;case'move':k(_0x4b6b74,_0x3b28eb);break;}}catch(_0x21f5c7){throw _0xe98850==null||_0xe98850({'reason':ye(_0x21f5c7),'commandId':_0x5d970d,'unitId':_0x3b28eb[_0xbf7d51(0xaa)],'subUnitId':_0x3b28eb[_0xbf7d51(0xc2)],'axis':_0x3b28eb['axis'],'outlineId':be(_0x21f5c7)}),new _0x113370(_0x21f5c7 instanceof Error?_0x21f5c7[_0xbf7d51(0xea)]:_0xbf7d51(0x10f));}}function tt(_0x4448d0,_0x1337a6){const _0x26271d=_0x3bf8d5;switch(_0x4448d0['id']){case _0x378372['id']:return Y(_0x4448d0['params'],_0x26271d(0xa2),_0x1337a6);case _0x19faba['id']:return Y(_0x4448d0[_0x26271d(0x78)],_0x26271d(0xcc),_0x1337a6);case _0x457460['id']:return nt(_0x4448d0[_0x26271d(0x78)],_0x26271d(0xa2),_0x1337a6);case _0x567c44['id']:return nt(_0x4448d0[_0x26271d(0x78)],_0x26271d(0xcc),_0x1337a6);case _0x2e6d17['id']:return rt(_0x4448d0['params'],_0x26271d(0xa2),_0x1337a6);case _0x203553['id']:return rt(_0x4448d0[_0x26271d(0x78)],_0x26271d(0xcc),_0x1337a6);default:return null;}}function Y(_0x30c344,_0x4e5899,_0x5f45ef){const _0x516e93=_0x3bf8d5;let _0x1bbc71=X(_0x30c344,_0x5f45ef);if(!(_0x30c344!=null&&_0x30c344['range'])||!_0x1bbc71)return null;let _0x331f8f=_0x4e5899===_0x516e93(0xa2)?_0x30c344['range'][_0x516e93(0xc6)]:_0x30c344['range'][_0x516e93(0xf6)],_0x212c59=_0x4e5899==='row'?_0x30c344[_0x516e93(0x72)][_0x516e93(0x88)]:_0x30c344['range'][_0x516e93(0xcf)];return{..._0x1bbc71,'axis':_0x4e5899,'type':'insert','index':_0x331f8f,'count':_0x212c59-_0x331f8f+0x1};}function nt(_0x3e70b5,_0x274afe,_0x675fe4){const _0x8a64f3=_0x3bf8d5;let _0x49fcbc=X(_0x3e70b5,_0x675fe4);if(!(_0x3e70b5!=null&&_0x3e70b5[_0x8a64f3(0x72)])||!_0x49fcbc)return null;let _0x5580b1=_0x274afe===_0x8a64f3(0xa2)?_0x3e70b5['range']['startRow']:_0x3e70b5['range'][_0x8a64f3(0xf6)],_0x159392=_0x274afe===_0x8a64f3(0xa2)?_0x3e70b5['range'][_0x8a64f3(0x88)]:_0x3e70b5[_0x8a64f3(0x72)][_0x8a64f3(0xcf)];return{..._0x49fcbc,'axis':_0x274afe,'type':_0x8a64f3(0xbc),'start':_0x5580b1,'end':_0x159392};}function rt(_0x1133b4,_0x39c05d,_0x5f15d1){const _0x500883=_0x3bf8d5;let _0x332191=X(_0x1133b4,_0x5f15d1);if(!(_0x1133b4!=null&&_0x1133b4['fromRange'])||!_0x1133b4[_0x500883(0xfe)]||!_0x332191)return null;let _0x410a6d=_0x39c05d===_0x500883(0xa2)?_0x1133b4['fromRange'][_0x500883(0xc6)]:_0x1133b4[_0x500883(0x98)][_0x500883(0xf6)],_0x15f0c3=_0x39c05d===_0x500883(0xa2)?_0x1133b4[_0x500883(0x98)][_0x500883(0x88)]:_0x1133b4[_0x500883(0x98)][_0x500883(0xcf)],_0x268972=_0x39c05d==='row'?_0x1133b4[_0x500883(0xfe)][_0x500883(0xc6)]:_0x1133b4[_0x500883(0xfe)]['startColumn'];return{..._0x332191,'axis':_0x39c05d,'type':_0x500883(0xf4),'sourceStart':_0x410a6d,'sourceEnd':_0x15f0c3,'destinationIndex':_0x268972};}function it(_0x165b05,_0x382eb5){const _0x2f64af=_0x3bf8d5;switch(_0x165b05[_0x2f64af(0x86)]){case _0x2f64af(0xb3):return{'unitId':_0x165b05['unitId'],'subUnitId':_0x165b05[_0x2f64af(0xc2)],'axis':_0x165b05[_0x2f64af(0x10c)],'type':_0x2f64af(0xbc),'start':_0x165b05[_0x2f64af(0xfa)],'end':_0x165b05[_0x2f64af(0xfa)]+_0x165b05['count']-0x1};case'delete':return{'unitId':_0x165b05[_0x2f64af(0xaa)],'subUnitId':_0x165b05['subUnitId'],'axis':_0x165b05[_0x2f64af(0x10c)],'type':'insert','index':_0x165b05[_0x2f64af(0xda)],'count':_0x165b05['end']-_0x165b05[_0x2f64af(0xda)]+0x1,'restoreOutlines':_0x382eb5[_0x2f64af(0xa4)](_0x13556f=>_0x13556f[_0x2f64af(0xaa)]===_0x165b05[_0x2f64af(0xaa)]&&_0x13556f[_0x2f64af(0xc2)]===_0x165b05['subUnitId']&&_0x13556f[_0x2f64af(0x10c)]===_0x165b05[_0x2f64af(0x10c)])};case _0x2f64af(0xf4):return at(_0x165b05);}}function at(_0x40af91){const _0x154c10=_0x3bf8d5;let _0x23b3c9=_0x40af91[_0x154c10(0x8c)]-_0x40af91[_0x154c10(0xb0)]+0x1;return _0x40af91[_0x154c10(0x103)]>=_0x40af91['sourceStart']&&_0x40af91[_0x154c10(0x103)]<=_0x40af91['sourceEnd']+0x1?{..._0x40af91}:_0x40af91['destinationIndex']>_0x40af91[_0x154c10(0x8c)]+0x1?{..._0x40af91,'sourceStart':_0x40af91[_0x154c10(0x103)]-_0x23b3c9,'sourceEnd':_0x40af91[_0x154c10(0x103)]-0x1,'destinationIndex':_0x40af91[_0x154c10(0xb0)]}:{..._0x40af91,'sourceStart':_0x40af91['destinationIndex'],'sourceEnd':_0x40af91['destinationIndex']+_0x23b3c9-0x1,'destinationIndex':_0x40af91['sourceEnd']+0x1};}function X(_0xb22008,_0x28bfe6){const _0x42f0b2=_0x3bf8d5;let _0x37ea99=(_0xb22008==null?void 0x0:_0xb22008[_0x42f0b2(0xaa)])??(_0x28bfe6==null?void 0x0:_0x28bfe6['unitId']),_0x523317=(_0xb22008==null?void 0x0:_0xb22008[_0x42f0b2(0xc2)])??(_0x28bfe6==null?void 0x0:_0x28bfe6[_0x42f0b2(0xc2)]);return _0x37ea99&&_0x523317?{'unitId':_0x37ea99,'subUnitId':_0x523317}:null;}function Z(){const _0x2120da=_0x3bf8d5;return{'redos':[...q['redos']],'undos':[...q['undos']],'preRedos':[...q[_0x2120da(0xfd)]??[]],'preUndos':[...q['preUndos']??[]]};}let Q=class extends _0x398395{constructor(_0x50fe00,_0x5c6137){const _0x82c448=_0x3bf8d5;super(),this[_0x82c448(0xb6)]=_0x50fe00,this[_0x82c448(0xa1)]=_0x5c6137,this[_0x82c448(0x82)]();}[_0x3bf8d5(0x82)](){const _0x4ddf62=_0x3bf8d5;this[_0x4ddf62(0xcb)](this[_0x4ddf62(0xb6)][_0x4ddf62(0xa5)]({'pluginName':W,'businesses':[_0x570645[_0x4ddf62(0xb1)]],'toJson':_0x4c8a15=>JSON[_0x4ddf62(0xc3)](this['_sheetsOutlineModel'][_0x4ddf62(0x71)](_0x4c8a15)),'parseJson':_0x3da4a6=>JSON[_0x4ddf62(0xb9)](_0x3da4a6),'onLoad':(_0x5f4b67,_0x13959a)=>this['_sheetsOutlineModel'][_0x4ddf62(0xf2)](_0x5f4b67,_0x13959a),'onUnLoad':_0x5b5454=>this[_0x4ddf62(0xa1)][_0x4ddf62(0x7f)](_0x5b5454)}));}};Q=K([G(0x0,_0x34f6ba),G(0x1,_0x540b44(P))],Q);let $=class extends _0xd81d88{constructor(_0x360c46=Qe,_0x1c5813,_0x3cce52,_0x2384d0){const _0x4c2430=_0x3bf8d5;super(),this[_0x4c2430(0x9f)]=_0x360c46,this['_injector']=_0x1c5813,this[_0x4c2430(0xa7)]=_0x3cce52,this['_configService']=_0x2384d0;let {..._0x18b8db}=_0x1c15e7({},Qe,this[_0x4c2430(0x9f)]);this[_0x4c2430(0x10e)][_0x4c2430(0x114)](_0x4c2430(0xad),_0x18b8db);}[_0x3bf8d5(0xc4)](){const _0x527e42=_0x3bf8d5;this[_0x527e42(0x79)]['add']([P]),this['_injector'][_0x527e42(0x105)]([F]),this[_0x527e42(0x79)][_0x527e42(0x105)]([Q]),this[_0x527e42(0x79)][_0x527e42(0x105)]([J]),this[_0x527e42(0xbf)](),this[_0x527e42(0x79)]['get'](P),this['_injector'][_0x527e42(0xac)](F),this[_0x527e42(0x79)][_0x527e42(0xac)](Q),this[_0x527e42(0x79)][_0x527e42(0xac)](J);}[_0x3bf8d5(0xbf)](){const _0x3a2e0b=_0x3bf8d5;[z,ze,qe,V][_0x3a2e0b(0x110)](_0x7f0224=>{const _0x1d121e=_0x3a2e0b;this[_0x1d121e(0xcb)](this[_0x1d121e(0xa7)][_0x1d121e(0xcd)](_0x7f0224));}),[I,L,H,B,U][_0x3a2e0b(0x110)](_0x3a5f4c=>{const _0x5d27bb=_0x3a2e0b;this[_0x5d27bb(0xcb)](this[_0x5d27bb(0xa7)][_0x5d27bb(0xcd)](_0x3a5f4c));});}};N($,'pluginName',W),N($,_0x3bf8d5(0x92),Xe),N($,_0x3bf8d5(0x113),Ze),N($,_0x3bf8d5(0x86),_0x570645['UNIVER_SHEET']),$=K([_0x243a39(_0x1fb203,_0x142600),G(0x1,_0x540b44(_0xde5590)),G(0x2,_0x71ae52),G(0x3,_0x35d06a)],$);export{z as AddDimensionOutlineCommand,I as AddDimensionOutlineMutation,V as ClearDimensionOutlinesCommand,B as ClearDimensionOutlinesMutation,_e as DimensionOutlineAxis,ve as DimensionOutlineErrorReason,ze as RemoveDimensionOutlineCommand,L as RemoveDimensionOutlineMutation,W as SHEET_OUTLINE_PLUGIN,qe as SetDimensionOutlineCollapsedCommand,H as SetDimensionOutlineCollapsedMutation,F as SheetsOutlineErrorService,P as SheetsOutlineModel,U as TransformDimensionOutlinesMutation,$ as UniverSheetsOutlinePlugin,T as buildDimensionOutlineTree,E as canAddDimensionOutline,Ie as getDimensionOutlineViewPermission$,R as hasDimensionOutlineViewPermission,O as transformOutlinesByDelete,D as transformOutlinesByInsert,k as transformOutlinesByMove};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x2ccf30=_0xafe9;(function(_0x2d2b51,_0x5bc99e){var _0x1d329f=_0xafe9,_0xbb4df6=_0x2d2b51();while(!![]){try{var _0x5ec98b=-parseInt(_0x1d329f(0x142))/0x1+parseInt(_0x1d329f(0x152))/0x2*(parseInt(_0x1d329f(0x14d))/0x3)+parseInt(_0x1d329f(0x151))/0x4*(-parseInt(_0x1d329f(0x153))/0x5)+-parseInt(_0x1d329f(0x155))/0x6+parseInt(_0x1d329f(0x14b))/0x7*(parseInt(_0x1d329f(0x14e))/0x8)+parseInt(_0x1d329f(0x14f))/0x9*(parseInt(_0x1d329f(0x156))/0xa)+parseInt(_0x1d329f(0x141))/0xb;if(_0x5ec98b===_0x5bc99e)break;else _0xbb4df6['push'](_0xbb4df6['shift']());}catch(_0x55fa71){_0xbb4df6['push'](_0xbb4df6['shift']());}}}(_0x4bdc,0x6954c));import{AddDimensionOutlineCommand as _0x258396,ClearDimensionOutlinesCommand as _0x4c6254,DimensionOutlineAxis as _0x617f4f,DimensionOutlineErrorReason as _0x7be702,RemoveDimensionOutlineCommand as _0x824678,SetDimensionOutlineCollapsedCommand as _0x19c686,SheetsOutlineModel as _0x45b0a4}from'@univerjs-pro/sheets-outline';import{FEnum as _0x16e4e6}from'@univerjs/core/facade';import{FWorksheet as _0x190a49}from'@univerjs/sheets/facade';function _0x4bdc(){var _0x572cc4=['syncExecuteCommand','extend','6865078qHMqTp','313084NFZptR','_worksheet','getOutlines','addColumnOutline','DimensionOutlineAxis','_commandService','axis','COLUMN','_addDimensionOutline','155911mCVabt','removeDimensionOutline','318537gHGKfB','88pKEoLj','2259pdYIkL','DimensionOutlineErrorReason','202468iaBelK','14PHLdow','35JkslbP','getUnitId','3431988onarwX','2330cRWeoA','setDimensionOutlineCollapsed','ROW','getSheetId','_workbook'];_0x4bdc=function(){return _0x572cc4;};return _0x4bdc();}var l=class extends _0x16e4e6{get[_0x2ccf30(0x146)](){return _0x617f4f;}get[_0x2ccf30(0x150)](){return _0x7be702;}};function _0xafe9(_0x3b7c6f,_0x2d6a0f){_0x3b7c6f=_0x3b7c6f-0x13e;var _0x4bdcd3=_0x4bdc();var _0xafe97e=_0x4bdcd3[_0x3b7c6f];return _0xafe97e;}_0x16e4e6[_0x2ccf30(0x140)](l);var u=class extends _0x190a49{['addRowOutline'](_0x3fac52,_0x187ca3){var _0x25635a=_0x2ccf30;return this[_0x25635a(0x14a)](_0x617f4f[_0x25635a(0x158)],_0x3fac52,_0x187ca3);}[_0x2ccf30(0x145)](_0xce35e7,_0x1f67f4){var _0x5c9f19=_0x2ccf30;return this[_0x5c9f19(0x14a)](_0x617f4f[_0x5c9f19(0x149)],_0xce35e7,_0x1f67f4);}[_0x2ccf30(0x14c)](_0x3082f7){var _0x2f2557=_0x2ccf30;return this[_0x2f2557(0x147)][_0x2f2557(0x13f)](_0x824678['id'],{'unitId':this['_workbook'][_0x2f2557(0x154)](),'subUnitId':this[_0x2f2557(0x143)][_0x2f2557(0x159)](),'outlineId':_0x3082f7}),this;}[_0x2ccf30(0x157)](_0x1ca36a,_0x355f1e){var _0x5f4104=_0x2ccf30;return this[_0x5f4104(0x147)][_0x5f4104(0x13f)](_0x19c686['id'],{'unitId':this['_workbook']['getUnitId'](),'subUnitId':this[_0x5f4104(0x143)]['getSheetId'](),'outlineId':_0x1ca36a,'collapsed':_0x355f1e}),this;}['clearDimensionOutlines'](_0x51d602,_0x2f53f4,_0xe0f23b){var _0x309a86=_0x2ccf30;return this[_0x309a86(0x147)]['syncExecuteCommand'](_0x4c6254['id'],{'unitId':this[_0x309a86(0x13e)][_0x309a86(0x154)](),'subUnitId':this['_worksheet'][_0x309a86(0x159)](),'axis':_0x51d602,'start':_0x2f53f4,'end':_0xe0f23b}),this;}['getDimensionOutlines'](_0x84dc06){var _0x301a9e=_0x2ccf30;let _0x376072=this['_injector']['get'](_0x45b0a4)[_0x301a9e(0x144)](this[_0x301a9e(0x13e)]['getUnitId'](),this['_worksheet']['getSheetId']());return _0x84dc06?_0x376072['filter'](_0x555ecf=>_0x555ecf[_0x301a9e(0x148)]===_0x84dc06):_0x376072;}[_0x2ccf30(0x14a)](_0x3b93ea,_0x3dbec4,_0x3e0b5d){var _0x53e58e=_0x2ccf30;return this['_commandService'][_0x53e58e(0x13f)](_0x258396['id'],{'unitId':this[_0x53e58e(0x13e)][_0x53e58e(0x154)](),'subUnitId':this[_0x53e58e(0x143)]['getSheetId'](),'axis':_0x3b93ea,'start':_0x3dbec4,'end':_0x3dbec4+_0x3e0b5d-0x1}),this;}};_0x190a49['extend'](u);export{};
1
+ var _0x5aa996=_0x7c7d;(function(_0x34c2c0,_0x54f4aa){var _0x3f7192=_0x7c7d,_0x1923cb=_0x34c2c0();while(!![]){try{var _0x210be5=-parseInt(_0x3f7192(0xa3))/0x1*(parseInt(_0x3f7192(0xb4))/0x2)+-parseInt(_0x3f7192(0xb2))/0x3+parseInt(_0x3f7192(0xae))/0x4+-parseInt(_0x3f7192(0xaf))/0x5*(parseInt(_0x3f7192(0xad))/0x6)+parseInt(_0x3f7192(0xa6))/0x7*(parseInt(_0x3f7192(0xbb))/0x8)+parseInt(_0x3f7192(0xb1))/0x9+-parseInt(_0x3f7192(0xac))/0xa*(-parseInt(_0x3f7192(0xa9))/0xb);if(_0x210be5===_0x54f4aa)break;else _0x1923cb['push'](_0x1923cb['shift']());}catch(_0x5bb590){_0x1923cb['push'](_0x1923cb['shift']());}}}(_0x1e10,0x3c729));import{AddDimensionOutlineCommand as _0x148348,ClearDimensionOutlinesCommand as _0x1f5dba,DimensionOutlineAxis as _0x125627,DimensionOutlineErrorReason as _0x486a31,RemoveDimensionOutlineCommand as _0x2593bb,SetDimensionOutlineCollapsedCommand as _0x1c4868,SheetsOutlineModel as _0xb94b8c}from'@univerjs-pro/sheets-outline';import{FEnum as _0x28707a}from'@univerjs/core/facade';import{FWorksheet as _0x200477}from'@univerjs/sheets/facade';var l=class extends _0x28707a{get[_0x5aa996(0xa4)](){return _0x125627;}get[_0x5aa996(0xbd)](){return _0x486a31;}};_0x28707a['extend'](l);function _0x7c7d(_0x73d871,_0x2f9159){_0x73d871=_0x73d871-0xa1;var _0x1e104e=_0x1e10();var _0x7c7da2=_0x1e104e[_0x73d871];return _0x7c7da2;}function _0x1e10(){var _0x846b4d=['247574IyDLMS','addColumnOutline','addRowOutline','clearDimensionOutlines','COLUMN','setDimensionOutlineCollapsed','getUnitId','3678424syeiRO','_worksheet','DimensionOutlineErrorReason','_injector','_workbook','1iYKINe','DimensionOutlineAxis','syncExecuteCommand','7iEOtUw','filter','getDimensionOutlines','19426mrPFAk','_commandService','getSheetId','1490OQNiYl','96prQiNU','367120MpRdnw','140340OehOgo','_addDimensionOutline','765999yfhKPu','238080ukKerN','get'];_0x1e10=function(){return _0x846b4d;};return _0x1e10();}var u=class extends _0x200477{[_0x5aa996(0xb6)](_0x1abeaf,_0x429e94){var _0x416f11=_0x5aa996;return this[_0x416f11(0xb0)](_0x125627['ROW'],_0x1abeaf,_0x429e94);}[_0x5aa996(0xb5)](_0x5b40e6,_0x300ba4){var _0x4c1d43=_0x5aa996;return this[_0x4c1d43(0xb0)](_0x125627[_0x4c1d43(0xb8)],_0x5b40e6,_0x300ba4);}['removeDimensionOutline'](_0x255975){var _0x210b90=_0x5aa996;return this[_0x210b90(0xaa)][_0x210b90(0xa5)](_0x2593bb['id'],{'unitId':this[_0x210b90(0xa2)][_0x210b90(0xba)](),'subUnitId':this[_0x210b90(0xbc)]['getSheetId'](),'outlineId':_0x255975}),this;}[_0x5aa996(0xb9)](_0x38f674,_0x441c0f){var _0x362c89=_0x5aa996;return this['_commandService'][_0x362c89(0xa5)](_0x1c4868['id'],{'unitId':this[_0x362c89(0xa2)][_0x362c89(0xba)](),'subUnitId':this[_0x362c89(0xbc)][_0x362c89(0xab)](),'outlineId':_0x38f674,'collapsed':_0x441c0f}),this;}[_0x5aa996(0xb7)](_0x18b388,_0x780bd2,_0x529d4d){var _0x51d36e=_0x5aa996;return this[_0x51d36e(0xaa)][_0x51d36e(0xa5)](_0x1f5dba['id'],{'unitId':this[_0x51d36e(0xa2)][_0x51d36e(0xba)](),'subUnitId':this['_worksheet']['getSheetId'](),'axis':_0x18b388,'start':_0x780bd2,'end':_0x529d4d}),this;}[_0x5aa996(0xa8)](_0x2a7ec0){var _0x11be4d=_0x5aa996;let _0x35ebcc=this[_0x11be4d(0xa1)][_0x11be4d(0xb3)](_0xb94b8c)['getOutlines'](this[_0x11be4d(0xa2)][_0x11be4d(0xba)](),this[_0x11be4d(0xbc)][_0x11be4d(0xab)]());return _0x2a7ec0?_0x35ebcc[_0x11be4d(0xa7)](_0x215ba6=>_0x215ba6['axis']===_0x2a7ec0):_0x35ebcc;}['_addDimensionOutline'](_0x1af51d,_0x447b95,_0x31983f){var _0x3cd374=_0x5aa996;return this[_0x3cd374(0xaa)][_0x3cd374(0xa5)](_0x148348['id'],{'unitId':this[_0x3cd374(0xa2)][_0x3cd374(0xba)](),'subUnitId':this[_0x3cd374(0xbc)]['getSheetId'](),'axis':_0x1af51d,'start':_0x447b95,'end':_0x447b95+_0x31983f-0x1}),this;}};_0x200477['extend'](u);export{};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1945f3=_0x340b;(function(_0x4ad7e3,_0x22bac3){const _0x2e6f87=_0x340b,_0x2614d7=_0x4ad7e3();while(!![]){try{const _0x30bc69=parseInt(_0x2e6f87(0x103))/0x1*(-parseInt(_0x2e6f87(0x15b))/0x2)+parseInt(_0x2e6f87(0xe7))/0x3*(parseInt(_0x2e6f87(0x10e))/0x4)+parseInt(_0x2e6f87(0x189))/0x5+parseInt(_0x2e6f87(0x14e))/0x6*(-parseInt(_0x2e6f87(0x177))/0x7)+parseInt(_0x2e6f87(0x175))/0x8+-parseInt(_0x2e6f87(0x12e))/0x9*(parseInt(_0x2e6f87(0x146))/0xa)+-parseInt(_0x2e6f87(0x107))/0xb*(-parseInt(_0x2e6f87(0x170))/0xc);if(_0x30bc69===_0x22bac3)break;else _0x2614d7['push'](_0x2614d7['shift']());}catch(_0xa5ba14){_0x2614d7['push'](_0x2614d7['shift']());}}}(_0x22d4,0x8cd97));import{CommandType as _0x334d72,CustomCommandExecutionError as _0x550f7f,DependentOn as _0x4d5652,Disposable as _0xe607e7,ICommandService as _0x3e4f6a,IConfigService as _0x4e9855,IPermissionService as _0x52c033,IResourceManagerService as _0x2ddefa,IUndoRedoService as _0x3ed999,IUniverInstanceService as _0xacd12c,Inject as _0x1e8506,Injector as _0x3552b1,Plugin as _0xf25005,UniverInstanceType as _0x4827d7,generateRandomId as _0x1ccc63,merge as _0x1a4160,sequenceExecute as _0x3d56de}from'@univerjs/core';import{InsertColCommand as _0x43376c,InsertRowCommand as _0x1dc395,MoveColsCommand as _0x4bbbc6,MoveRowsCommand as _0x1560e4,RemoveColCommand as _0x8bce70,RemoveRowCommand as _0x4bd3fd,SetColHiddenMutation as _0x58f5dc,SetColVisibleMutation as _0x55797a,SetRowHiddenMutation as _0x301c72,SetRowVisibleMutation as _0xfbefd0,SheetInterceptorService as _0x5fd442,SheetPermissionCheckController as _0x356244,UniverSheetsPlugin as _0x5d1375,WorkbookViewPermission as _0x4137cc,WorksheetViewPermission as _0x2efec8,getSheetCommandTarget as _0x47e27f}from'@univerjs/sheets';import{Subject as _0x2ac295,of as _0x2a5258}from'rxjs';import{debounceTime as _0x2abf5e,map as _0x34f6e0,startWith as _0xd1f6d2}from'rxjs/operators';import{UniverLicensePlugin as _0x269374}from'@univerjs-pro/license';let _e=function(_0x50831e){const _0x534bca=_0x340b;return _0x50831e[_0x534bca(0x187)]=_0x534bca(0x141),_0x50831e[_0x534bca(0x15e)]=_0x534bca(0x174),_0x50831e;}({}),ve=function(_0x588fae){const _0x1c8447=_0x340b;return _0x588fae[_0x1c8447(0x158)]=_0x1c8447(0x18b),_0x588fae[_0x1c8447(0x12f)]=_0x1c8447(0x179),_0x588fae['CROSSING']='crossing',_0x588fae[_0x1c8447(0x128)]='max-depth',_0x588fae['MOVE_SPLITS_OUTLINE']='move-splits-outline',_0x588fae[_0x1c8447(0x15a)]=_0x1c8447(0x122),_0x588fae[_0x1c8447(0x194)]=_0x1c8447(0x17d),_0x588fae;}({});var S=class extends Error{constructor(_0xb30d1,_0x413739,_0x3b88ed){const _0xaee869=_0x340b;super(_0x413739),this[_0xaee869(0x167)]=_0xb30d1,this[_0xaee869(0x116)]=_0x3b88ed,this[_0xaee869(0x144)]=_0xaee869(0x161);}};function ye(_0x3cb719){const _0x2ca437=_0x340b;return _0x3cb719 instanceof S?_0x3cb719['reason']:_0x3cb719 instanceof Error?_0x3cb719[_0x2ca437(0x18c)][_0x2ca437(0xf6)](_0x2ca437(0x18d))?_0x2ca437(0x131):_0x3cb719[_0x2ca437(0x18c)][_0x2ca437(0xf6)](_0x2ca437(0xf8))?_0x2ca437(0x17c):_0x3cb719['message'][_0x2ca437(0xf6)](_0x2ca437(0x12b))?'crossing':_0x3cb719[_0x2ca437(0x18c)][_0x2ca437(0xf6)]('range')?_0x2ca437(0x18b):_0x2ca437(0x17d):'unknown';}function be(_0x1a73bf){const _0x5876f5=_0x340b;return _0x1a73bf instanceof S?_0x1a73bf[_0x5876f5(0x116)]:void 0x0;}const C=0x2**0x35-0x1;function w(_0x249ce2,_0xe8816){const _0x496c65=_0x340b;return _0x249ce2[_0x496c65(0x109)]===_0xe8816[_0x496c65(0x109)]&&_0x249ce2[_0x496c65(0x12d)]===_0xe8816[_0x496c65(0x12d)]&&_0x249ce2[_0x496c65(0x135)]===_0xe8816[_0x496c65(0x135)];}function T(_0x5c7b76,_0x589e17={}){const _0x5d94db=_0x340b;let _0x478a37=_0x589e17[_0x5d94db(0x182)]??0x8,_0x56e4b0=new Map();for(let _0x358814 of _0x5c7b76){let _0x35da1a=_0x358814[_0x5d94db(0x109)]+':'+_0x358814[_0x5d94db(0x12d)]+':'+_0x358814['axis'],_0xe77fb=_0x56e4b0[_0x5d94db(0x140)](_0x35da1a);_0xe77fb?_0xe77fb[_0x5d94db(0x110)](_0x358814):_0x56e4b0[_0x5d94db(0x13c)](_0x35da1a,[_0x358814]);}let _0x41d13=[];for(let _0x5a303f of _0x56e4b0[_0x5d94db(0x126)]()){let _0x1f05dc=[..._0x5a303f][_0x5d94db(0x17f)](j),_0x44ff4d=[];for(let _0x147071 of _0x1f05dc){for(Me(_0x147071);_0x44ff4d[_0x5d94db(0x16c)]>0x0&&_0x147071[_0x5d94db(0xf9)]>_0x44ff4d[_0x44ff4d[_0x5d94db(0x16c)]-0x1][_0x5d94db(0x137)];)_0x44ff4d[_0x5d94db(0x118)]();let _0x20ae5e=_0x44ff4d[_0x44ff4d[_0x5d94db(0x16c)]-0x1];if(_0x20ae5e&&_0x147071[_0x5d94db(0x137)]>_0x20ae5e[_0x5d94db(0x137)])throw new S(_0x5d94db(0x151),_0x5d94db(0x14a),_0x147071['id']);let _0x1cffa5=_0x20ae5e?_0x20ae5e['depth']+0x1:0x1;if(_0x1cffa5>_0x478a37)throw new S(_0x5d94db(0x17c),_0x5d94db(0x106)+_0x478a37,_0x147071['id']);let _0x1ec0c1={..._0x147071,'depth':_0x1cffa5,'parentId':_0x20ae5e==null?void 0x0:_0x20ae5e['id'],'anchor':_0x147071[_0x5d94db(0x137)],'children':[]};_0x20ae5e?_0x20ae5e[_0x5d94db(0x168)][_0x5d94db(0x110)](_0x1ec0c1):_0x41d13[_0x5d94db(0x110)](_0x1ec0c1),_0x44ff4d[_0x5d94db(0x110)](_0x1ec0c1);}}return _0x41d13;}function E(_0x6b3da4,_0x146068,_0x36d851={}){const _0x27af95=_0x340b;if(_0x146068[_0x27af95(0xf9)]<0x0||_0x146068[_0x27af95(0xf9)]>_0x146068[_0x27af95(0x137)])return{'valid':!0x1,'reason':_0x27af95(0x18b)};if(_0x36d851[_0x27af95(0x120)]!=null&&_0x146068[_0x27af95(0x137)]>=_0x36d851[_0x27af95(0x120)])return{'valid':!0x1,'reason':'out-of-bounds'};let _0x20bf27=_0x6b3da4[_0x27af95(0x145)](_0x5431e6=>w(_0x5431e6,_0x146068));for(let _0x3c3ec3 of _0x20bf27)if(Ne(_0x3c3ec3,_0x146068))return{'valid':!0x1,'reason':_0x27af95(0x151)};try{T([..._0x6b3da4,_0x146068],_0x36d851);}catch(_0x18bfaf){let _0x34a611=ye(_0x18bfaf);return _0x34a611===_0x27af95(0x17c)?{'valid':!0x1,'reason':_0x27af95(0x17c)}:_0x34a611==='invalid-range'?{'valid':!0x1,'reason':_0x27af95(0x18b)}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function xe(_0x1e6065,_0x5971e2,_0x3774c8={}){const _0x3ab630=_0x340b;let _0x3d03c2=E(_0x1e6065,_0x5971e2,_0x3774c8);if(!_0x3d03c2[_0x3ab630(0xfa)])throw Error(_0x3d03c2[_0x3ab630(0x167)]??_0x3ab630(0x163));return[..._0x1e6065,_0x5971e2];}function Se(_0x12a4ef,_0x5d652b){const _0x15a180=_0x340b;let _0x2957e8=_0x5d652b['start'],_0x3c86f5=_0x5d652b[_0x15a180(0x137)],_0x40ad9f=[],_0x1083e4=!0x0;for(;_0x1083e4;){_0x1083e4=!0x1;for(let _0x304d44 of _0x12a4ef)_0x40ad9f[_0x15a180(0xf6)](_0x304d44)||!w(_0x304d44,_0x5d652b)||!Ae(_0x304d44['start'],_0x304d44[_0x15a180(0x137)],_0x2957e8,_0x3c86f5)||(_0x40ad9f[_0x15a180(0x110)](_0x304d44),_0x2957e8=Math[_0x15a180(0xed)](_0x2957e8,_0x304d44[_0x15a180(0xf9)]),_0x3c86f5=Math[_0x15a180(0x143)](_0x3c86f5,_0x304d44[_0x15a180(0x137)]),_0x1083e4=!0x0);}if(_0x40ad9f[_0x15a180(0x16c)]===0x0)return null;let [_0x4821e4]=[..._0x40ad9f][_0x15a180(0x17f)](j);return{'mergedOutline':{..._0x4821e4,'start':_0x2957e8,'end':_0x3c86f5},'mergedOutlines':_0x40ad9f};}function Ce(_0x129fe7,_0x2a4087){const _0x1ee537=_0x340b;return _0x129fe7[_0x1ee537(0x145)](_0x278de8=>!w(_0x278de8,_0x2a4087)||!(_0x278de8[_0x1ee537(0xf9)]>=_0x2a4087[_0x1ee537(0xf9)]&&_0x278de8['end']<=_0x2a4087[_0x1ee537(0x137)]));}function we(_0x2c8927,_0xcbb817,_0x17bb94,_0x4be2e8){const _0x47f6d7=_0x340b;return Te(_0x2c8927['filter'](_0x5c33be=>_0x5c33be[_0x47f6d7(0x109)]===_0xcbb817&&_0x5c33be['subUnitId']===_0x17bb94&&_0x5c33be['axis']===_0x4be2e8&&_0x5c33be[_0x47f6d7(0x17b)])[_0x47f6d7(0x18f)](_0x2fb8e2=>({'start':_0x2fb8e2[_0x47f6d7(0xf9)],'end':_0x2fb8e2[_0x47f6d7(0x137)]})));}function Te(_0x9c8d98){const _0x1dd2c8=_0x340b;if(_0x9c8d98[_0x1dd2c8(0x16c)]===0x0)return[];let _0x4b5377=[..._0x9c8d98]['sort']((_0x11eb14,_0x1a5daf)=>_0x11eb14['start']-_0x1a5daf[_0x1dd2c8(0xf9)]||_0x11eb14[_0x1dd2c8(0x137)]-_0x1a5daf[_0x1dd2c8(0x137)]),_0x260fac=[];for(let _0x4e7e5c of _0x4b5377){let _0x38a5d6=_0x260fac[_0x260fac[_0x1dd2c8(0x16c)]-0x1];!_0x38a5d6||_0x4e7e5c[_0x1dd2c8(0xf9)]>_0x38a5d6[_0x1dd2c8(0x137)]+0x1?_0x260fac['push']({..._0x4e7e5c}):_0x38a5d6[_0x1dd2c8(0x137)]=Math[_0x1dd2c8(0x143)](_0x38a5d6[_0x1dd2c8(0x137)],_0x4e7e5c[_0x1dd2c8(0x137)]);}return _0x260fac;}function D(_0x473212,_0x263aa1){const _0x4ff98d=_0x340b;return _0x263aa1[_0x4ff98d(0xf2)]<=0x0?_0x473212:A(_0x473212[_0x4ff98d(0x18f)](_0x37a8de=>w(_0x37a8de,_0x263aa1)?_0x263aa1[_0x4ff98d(0x10f)]<=_0x37a8de[_0x4ff98d(0xf9)]?{..._0x37a8de,'start':_0x37a8de['start']+_0x263aa1[_0x4ff98d(0xf2)],'end':_0x37a8de[_0x4ff98d(0x137)]+_0x263aa1['count']}:_0x37a8de[_0x4ff98d(0xf9)]<_0x263aa1[_0x4ff98d(0x10f)]&&_0x263aa1[_0x4ff98d(0x10f)]<=_0x37a8de[_0x4ff98d(0x137)]?{..._0x37a8de,'end':_0x37a8de['end']+_0x263aa1['count']}:_0x37a8de:_0x37a8de));}function O(_0x51de93,_0x256844){const _0x1ebd44=_0x340b;if(_0x256844['start']>_0x256844[_0x1ebd44(0x137)])return _0x51de93;let _0x5449b8=_0x256844[_0x1ebd44(0x137)]-_0x256844['start']+0x1,_0x224585=[];for(let _0x332cc7 of _0x51de93){if(!w(_0x332cc7,_0x256844)){_0x224585[_0x1ebd44(0x110)](_0x332cc7);continue;}if(_0x332cc7[_0x1ebd44(0x137)]<_0x256844[_0x1ebd44(0xf9)]){_0x224585['push'](_0x332cc7);continue;}if(_0x332cc7[_0x1ebd44(0xf9)]>_0x256844[_0x1ebd44(0x137)]){_0x224585[_0x1ebd44(0x110)]({..._0x332cc7,'start':_0x332cc7['start']-_0x5449b8,'end':_0x332cc7[_0x1ebd44(0x137)]-_0x5449b8});continue;}let _0x206688=Math[_0x1ebd44(0x143)](_0x332cc7[_0x1ebd44(0xf9)],_0x256844[_0x1ebd44(0xf9)]),_0x5a1e90=Math['min'](_0x332cc7[_0x1ebd44(0x137)],_0x256844[_0x1ebd44(0x137)]),_0x348392=Math[_0x1ebd44(0x143)](0x0,_0x5a1e90-_0x206688+0x1),_0x1711ee=_0x332cc7[_0x1ebd44(0x137)]-_0x332cc7[_0x1ebd44(0xf9)]+0x1-_0x348392;if(_0x1711ee<=0x0)continue;let _0x5e6dbf=_0x332cc7[_0x1ebd44(0xf9)]<_0x256844['start']?_0x332cc7[_0x1ebd44(0xf9)]:_0x256844[_0x1ebd44(0xf9)];_0x224585[_0x1ebd44(0x110)]({..._0x332cc7,'start':_0x5e6dbf,'end':_0x5e6dbf+_0x1711ee-0x1});}return A(_0x224585);}function k(_0xb939df,_0xb921a8){const _0x4f93e2=_0x340b;if(_0xb921a8[_0x4f93e2(0x173)]>_0xb921a8[_0x4f93e2(0x192)])return _0xb939df;let _0x560782=[];for(let _0x3e66cb of _0xb939df){if(!w(_0x3e66cb,_0xb921a8)){_0x560782[_0x4f93e2(0x110)](_0x3e66cb);continue;}let _0x34461d=Ee(_0x3e66cb,_0xb921a8);if(_0x34461d['type']===_0x4f93e2(0x105))throw new S(_0x4f93e2(0x131),_0x4f93e2(0x183)+_0x3e66cb['id'],_0x3e66cb['id']);_0x560782[_0x4f93e2(0x110)](_0x34461d[_0x4f93e2(0x121)]);}return A(_0x560782);}function Ee(_0x3a0986,_0x5aa105){const _0x955778=_0x340b;let _0xaa9ed7=De(_0x5aa105['sourceStart'],_0x5aa105[_0x955778(0x192)]+0x1,_0x5aa105[_0x955778(0xe6)]),_0x1e49ac=[],_0x584a87={'start':_0x3a0986[_0x955778(0xf9)],'end':_0x3a0986[_0x955778(0x137)]+0x1};for(let _0x16d92d of _0xaa9ed7){let _0x39bb55=Oe(_0x584a87,_0x16d92d[_0x955778(0x16e)]);_0x39bb55&&_0x1e49ac['push']({'start':_0x39bb55['start']+_0x16d92d[_0x955778(0x18a)],'end':_0x39bb55['end']+_0x16d92d['offset']});}let _0x4cff97=ke(_0x1e49ac);return _0x4cff97['length']===0x1?{'type':'ok','outline':{..._0x3a0986,'start':_0x4cff97[0x0]['start'],'end':_0x4cff97[0x0][_0x955778(0x137)]-0x1}}:{'type':'split','outline':_0x3a0986,'ranges':_0x4cff97};}function De(_0x46bd71,_0x3fc3be,_0x3fb3b2){const _0x43d74d=_0x340b;let _0x1b53c3=_0x3fc3be-_0x46bd71;if(_0x1b53c3<=0x0)throw Error(_0x43d74d(0xee));return _0x3fb3b2>=_0x46bd71&&_0x3fb3b2<=_0x3fc3be?[{'range':{'start':0x0,'end':C},'offset':0x0}]:_0x3fb3b2<_0x46bd71?[{'range':{'start':0x0,'end':_0x3fb3b2},'offset':0x0},{'range':{'start':_0x3fb3b2,'end':_0x46bd71},'offset':_0x1b53c3},{'range':{'start':_0x46bd71,'end':_0x3fc3be},'offset':_0x3fb3b2-_0x46bd71},{'range':{'start':_0x3fc3be,'end':C},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x46bd71},'offset':0x0},{'range':{'start':_0x46bd71,'end':_0x3fc3be},'offset':_0x3fb3b2-_0x3fc3be},{'range':{'start':_0x3fc3be,'end':_0x3fb3b2},'offset':-_0x1b53c3},{'range':{'start':_0x3fb3b2,'end':C},'offset':0x0}];}function Oe(_0x24035d,_0x146089){const _0x205808=_0x340b;let _0x15c226=Math[_0x205808(0x143)](_0x24035d[_0x205808(0xf9)],_0x146089[_0x205808(0xf9)]),_0x3af7aa=Math[_0x205808(0xed)](_0x24035d['end'],_0x146089[_0x205808(0x137)]);return _0x15c226>=_0x3af7aa?null:{'start':_0x15c226,'end':_0x3af7aa};}function ke(_0x51f5c0){const _0x3c3560=_0x340b;if(_0x51f5c0[_0x3c3560(0x16c)]===0x0)return[];let _0x197551=[..._0x51f5c0]['sort']((_0xadb28b,_0x11a571)=>_0xadb28b[_0x3c3560(0xf9)]-_0x11a571[_0x3c3560(0xf9)]||_0xadb28b['end']-_0x11a571[_0x3c3560(0x137)]),_0xf0a2ac=[];for(let _0x17c776 of _0x197551){let _0xe1696d=_0xf0a2ac[_0xf0a2ac[_0x3c3560(0x16c)]-0x1];!_0xe1696d||_0x17c776[_0x3c3560(0xf9)]>_0xe1696d['end']?_0xf0a2ac[_0x3c3560(0x110)]({..._0x17c776}):_0xe1696d[_0x3c3560(0x137)]=Math[_0x3c3560(0x143)](_0xe1696d[_0x3c3560(0x137)],_0x17c776[_0x3c3560(0x137)]);}return _0xf0a2ac;}function Ae(_0x5eac10,_0x935319,_0x9e7c6a,_0x567d5c){return _0x935319+0x1===_0x9e7c6a||_0x567d5c+0x1===_0x5eac10;}function A(_0x1dcdbe){let _0x5b6fd0=je(_0x1dcdbe);return T(_0x5b6fd0),_0x5b6fd0;}function je(_0x110a4f){const _0x4024a5=_0x340b;let _0x33b65d=new Map();for(let _0x29c48a of _0x110a4f){let _0x320c86=[_0x29c48a['unitId'],_0x29c48a[_0x4024a5(0x12d)],_0x29c48a['axis'],_0x29c48a['start'],_0x29c48a[_0x4024a5(0x137)]][_0x4024a5(0xe9)](':'),_0x2c771e=_0x33b65d['get'](_0x320c86);if(!_0x2c771e){_0x33b65d[_0x4024a5(0x13c)](_0x320c86,_0x29c48a);continue;}_0x33b65d[_0x4024a5(0x13c)](_0x320c86,{..._0x2c771e,'collapsed':_0x2c771e[_0x4024a5(0x17b)]||_0x29c48a[_0x4024a5(0x17b)]});}return Array['from'](_0x33b65d[_0x4024a5(0x126)]());}function j(_0x3c679a,_0x6682c5){const _0x37b87c=_0x340b;return _0x3c679a['unitId']===_0x6682c5[_0x37b87c(0x109)]?_0x3c679a['subUnitId']===_0x6682c5['subUnitId']?_0x3c679a[_0x37b87c(0x135)]===_0x6682c5[_0x37b87c(0x135)]?_0x3c679a[_0x37b87c(0xf9)]===_0x6682c5['start']?_0x6682c5[_0x37b87c(0x137)]-_0x3c679a[_0x37b87c(0x137)]:_0x3c679a[_0x37b87c(0xf9)]-_0x6682c5[_0x37b87c(0xf9)]:_0x3c679a[_0x37b87c(0x135)][_0x37b87c(0x104)](_0x6682c5[_0x37b87c(0x135)]):_0x3c679a['subUnitId'][_0x37b87c(0x104)](_0x6682c5[_0x37b87c(0x12d)]):_0x3c679a['unitId'][_0x37b87c(0x104)](_0x6682c5[_0x37b87c(0x109)]);}function Me(_0x40e335){const _0x726795=_0x340b;if(_0x40e335[_0x726795(0xf9)]>_0x40e335['end'])throw new S(_0x726795(0x18b),_0x726795(0xf7),_0x40e335['id']);}function Ne(_0x11e525,_0x2007e4){const _0x5a58dd=_0x340b;let _0x547c40=_0x11e525[_0x5a58dd(0xf9)]<=_0x2007e4['end']&&_0x2007e4['start']<=_0x11e525[_0x5a58dd(0x137)],_0x1818bf=_0x11e525['start']<=_0x2007e4[_0x5a58dd(0xf9)]&&_0x2007e4[_0x5a58dd(0x137)]<=_0x11e525[_0x5a58dd(0x137)],_0x181031=_0x2007e4[_0x5a58dd(0xf9)]<=_0x11e525['start']&&_0x11e525[_0x5a58dd(0x137)]<=_0x2007e4['end'];return _0x547c40&&!_0x1818bf&&!_0x181031;}function M(_0x152678){'@babel/helpers - typeof';const _0x5793fb=_0x340b;return M=typeof Symbol==_0x5793fb(0x108)&&typeof Symbol['iterator']==_0x5793fb(0x193)?function(_0x224a89){return typeof _0x224a89;}:function(_0x1457dd){const _0xedd4b0=_0x5793fb;return _0x1457dd&&typeof Symbol==_0xedd4b0(0x108)&&_0x1457dd[_0xedd4b0(0x147)]===Symbol&&_0x1457dd!==Symbol[_0xedd4b0(0x150)]?'symbol':typeof _0x1457dd;},M(_0x152678);}function Pe(_0x5f0666,_0x194964){const _0x2cebc6=_0x340b;if(M(_0x5f0666)!=_0x2cebc6(0x14c)||!_0x5f0666)return _0x5f0666;var _0x165b92=_0x5f0666[Symbol[_0x2cebc6(0x162)]];if(_0x165b92!==void 0x0){var _0x4caca0=_0x165b92[_0x2cebc6(0x169)](_0x5f0666,_0x194964||'default');if(M(_0x4caca0)!=_0x2cebc6(0x14c))return _0x4caca0;throw TypeError(_0x2cebc6(0x14b));}return(_0x194964==='string'?String:Number)(_0x5f0666);}function Fe(_0x2ff834){const _0x50f39d=_0x340b;var _0x3d6f6d=Pe(_0x2ff834,_0x50f39d(0x166));return M(_0x3d6f6d)==_0x50f39d(0x193)?_0x3d6f6d:_0x3d6f6d+'';}function N(_0x1ae1a0,_0x252c75,_0x1a848c){const _0x451983=_0x340b;return(_0x252c75=Fe(_0x252c75))in _0x1ae1a0?Object[_0x451983(0x157)](_0x1ae1a0,_0x252c75,{'value':_0x1a848c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1ae1a0[_0x252c75]=_0x1a848c,_0x1ae1a0;}var P=class extends _0xe607e7{constructor(..._0x52a0b6){const _0x431709=_0x340b;super(..._0x52a0b6),N(this,_0x431709(0x117),new Map()),N(this,_0x431709(0x130),new _0x2ac295()),N(this,_0x431709(0x125),this[_0x431709(0x130)][_0x431709(0x100)]());}[_0x1945f3(0x127)](_0x12c125,_0x3893b5){var _0x346553;return[...((_0x346553=this['_outlines']['get'](_0x12c125))==null?void 0x0:_0x346553['get'](_0x3893b5))??[]];}[_0x1945f3(0x16b)](_0x15e0d0){const _0x20192a=_0x1945f3;let _0xedb941=this[_0x20192a(0x117)]['get'](_0x15e0d0),_0x5eb4ab=new Map();return _0xedb941==null||_0xedb941[_0x20192a(0xfe)]((_0x24c5d0,_0x2086fc)=>{const _0x2835e0=_0x20192a;_0x5eb4ab[_0x2835e0(0x13c)](_0x2086fc,[..._0x24c5d0]);}),_0x5eb4ab;}[_0x1945f3(0x17e)](_0x4ec0d8,_0x41cd3a,_0x265dfd){const _0x544e7b=_0x1945f3;this[_0x544e7b(0xf0)](_0x4ec0d8)['set'](_0x41cd3a,[..._0x265dfd]),this[_0x544e7b(0x130)][_0x544e7b(0x153)]({'unitId':_0x4ec0d8,'subUnitId':_0x41cd3a});}[_0x1945f3(0x13a)](_0x4e353d){const _0x382995=_0x1945f3;this[_0x382995(0x117)][_0x382995(0x139)](_0x4e353d),this['_change$'][_0x382995(0x153)]({'unitId':_0x4e353d});}[_0x1945f3(0x10a)](_0x1def64){const _0x1221ec=_0x1945f3;let _0x3748a5=this['_outlines'][_0x1221ec(0x140)](_0x1def64),_0x465828={};return _0x3748a5==null||_0x3748a5[_0x1221ec(0xfe)]((_0x21f921,_0x5c576f)=>{_0x465828[_0x5c576f]={'outlineList':[..._0x21f921]};}),_0x465828;}['deserialize'](_0x41f66e,_0x5e607e){const _0x3d23dd=_0x1945f3;let _0x5cb89f=new Map();Object[_0x3d23dd(0x152)](_0x5e607e)[_0x3d23dd(0xfe)](([_0x1c9931,_0x80570b])=>{const _0x2778a0=_0x3d23dd;_0x5cb89f[_0x2778a0(0x13c)](_0x1c9931,[..._0x80570b[_0x2778a0(0xf3)]??[]]);}),this[_0x3d23dd(0x117)][_0x3d23dd(0x13c)](_0x41f66e,_0x5cb89f),this[_0x3d23dd(0x130)][_0x3d23dd(0x153)]({'unitId':_0x41f66e});}[_0x1945f3(0xec)](){const _0x523efe=_0x1945f3;super[_0x523efe(0xec)](),this[_0x523efe(0x117)]['clear'](),this['_change$'][_0x523efe(0x17a)]();}[_0x1945f3(0xf0)](_0x447d17){const _0x14bcd7=_0x1945f3;let _0x5713ed=this['_outlines']['get'](_0x447d17);return _0x5713ed||(_0x5713ed=new Map(),this[_0x14bcd7(0x117)][_0x14bcd7(0x13c)](_0x447d17,_0x5713ed)),_0x5713ed;}},F=class extends _0xe607e7{constructor(..._0x3ec915){const _0x22684f=_0x1945f3;super(..._0x3ec915),N(this,'_error$',new _0x2ac295()),N(this,_0x22684f(0x171),this[_0x22684f(0x172)][_0x22684f(0x100)]());}[_0x1945f3(0x11d)](_0x5399ee){const _0xf22a89=_0x1945f3;this[_0xf22a89(0x172)][_0xf22a89(0x153)](_0x5399ee);}[_0x1945f3(0xec)](){const _0x1a952a=_0x1945f3;super[_0x1a952a(0xec)](),this[_0x1a952a(0x172)]['complete']();}};const I={'id':_0x1945f3(0x154),'type':_0x334d72[_0x1945f3(0x136)],'handler':(_0x16d46c,_0x5a8c07)=>{const _0x32962f=_0x1945f3;let _0x146c79=_0x16d46c[_0x32962f(0x140)](P),_0x45920d=_0x146c79[_0x32962f(0x127)](_0x5a8c07[_0x32962f(0x109)],_0x5a8c07[_0x32962f(0x12d)]);return _0x146c79[_0x32962f(0x17e)](_0x5a8c07['unitId'],_0x5a8c07['subUnitId'],xe(_0x45920d,_0x5a8c07['outline'])),!0x0;}},L={'id':'sheet.mutation.remove-dimension-outline','type':_0x334d72[_0x1945f3(0x136)],'handler':(_0x49ca35,_0x19072d)=>{const _0x58bbc5=_0x1945f3;let _0x185db6=_0x49ca35[_0x58bbc5(0x140)](P),_0xbd01cf=_0x185db6[_0x58bbc5(0x127)](_0x19072d['unitId'],_0x19072d[_0x58bbc5(0x12d)]);return _0x185db6[_0x58bbc5(0x17e)](_0x19072d['unitId'],_0x19072d['subUnitId'],_0xbd01cf[_0x58bbc5(0x145)](_0x175476=>_0x175476['id']!==_0x19072d['outlineId'])),!0x0;}};function R(_0x139835,_0x23ae0e,_0x5e74fc){const _0x2f9f75=_0x1945f3;let _0x4f491c=Le(_0x139835);return!_0x4f491c||_0x4f491c[_0x2f9f75(0x190)]({'workbookTypes':[_0x4137cc],'worksheetTypes':[_0x2efec8]},_0x23ae0e,_0x5e74fc);}function Ie(_0x10aebe,_0x681105,_0xa1257d){const _0x3eef68=_0x1945f3;let _0x3559b6=Re(_0x10aebe);return((_0x3559b6==null?void 0x0:_0x3559b6[_0x3eef68(0xeb)])??_0x2a5258(null))['pipe'](_0x2abf5e(0x64),_0xd1f6d2(null),_0x34f6e0(()=>R(_0x10aebe,_0x681105,_0xa1257d)));}function Le(_0x968028){const _0x1ea8ea=_0x1945f3;if(typeof _0x968028[_0x1ea8ea(0x102)]==_0x1ea8ea(0x108)&&!_0x968028[_0x1ea8ea(0x102)](_0x356244))return null;try{return _0x968028[_0x1ea8ea(0x140)](_0x356244);}catch{return null;}}function Re(_0x4514af){const _0x23c236=_0x1945f3;if(typeof _0x4514af[_0x23c236(0x102)]==_0x23c236(0x108)&&!_0x4514af[_0x23c236(0x102)](_0x52c033))return null;try{return _0x4514af['get'](_0x52c033);}catch{return null;}}const z={'id':_0x1945f3(0xea),'type':_0x334d72['COMMAND'],'handler':(_0x100e20,_0x41999d)=>{const _0x4f9575=_0x1945f3;if(!_0x41999d)return!0x1;let _0x379ad4=_0x47e27f(_0x100e20[_0x4f9575(0x140)](_0xacd12c),_0x41999d);if(!_0x379ad4)return!0x1;let {unitId:_0x342a53,subUnitId:_0x1ba1cd,worksheet:_0x219b5d}=_0x379ad4;if(!R(_0x100e20,_0x342a53,_0x1ba1cd))return!0x1;let _0x137cd7=_0x100e20['get'](P),_0x63cbd7={'id':_0x4f9575(0x165)+_0x1ccc63(0x6),'unitId':_0x342a53,'subUnitId':_0x1ba1cd,'axis':_0x41999d[_0x4f9575(0x135)],'start':_0x41999d[_0x4f9575(0xf9)],'end':_0x41999d[_0x4f9575(0x137)],'collapsed':!0x1},_0x65ff1e=_0x41999d[_0x4f9575(0x135)]===_0x4f9575(0x141)?_0x219b5d[_0x4f9575(0x184)]():_0x219b5d[_0x4f9575(0x111)](),_0x1fefbf=_0x137cd7[_0x4f9575(0x127)](_0x342a53,_0x1ba1cd),_0x10e2bc=Se(_0x1fefbf,_0x63cbd7),_0x55ca35=(_0x10e2bc==null?void 0x0:_0x10e2bc[_0x4f9575(0x119)])??[],_0x3ecba2=(_0x10e2bc==null?void 0x0:_0x10e2bc[_0x4f9575(0x142)])??_0x63cbd7,_0x1b461c=E(_0x10e2bc?_0x1fefbf[_0x4f9575(0x145)](_0x18d9c=>!_0x55ca35['some'](_0x5ee04b=>_0x5ee04b['id']===_0x18d9c['id'])):_0x1fefbf,_0x3ecba2,{'maxIndex':_0x65ff1e});if(!_0x1b461c[_0x4f9575(0xfa)])return _0x100e20[_0x4f9575(0x140)](F)[_0x4f9575(0x11d)]({'reason':_0x1b461c[_0x4f9575(0x167)]??_0x4f9575(0x17d),'commandId':z['id'],'unitId':_0x342a53,'subUnitId':_0x1ba1cd,'axis':_0x41999d[_0x4f9575(0x135)],'outlineId':_0x3ecba2['id']}),!0x1;let _0x485276=[..._0x55ca35['map'](_0x216288=>({'id':L['id'],'params':{'unitId':_0x342a53,'subUnitId':_0x1ba1cd,'outlineId':_0x216288['id']}})),{'id':I['id'],'params':{'unitId':_0x342a53,'subUnitId':_0x1ba1cd,'outline':_0x3ecba2}}],_0xf4d0fa=[{'id':L['id'],'params':{'unitId':_0x342a53,'subUnitId':_0x1ba1cd,'outlineId':_0x3ecba2['id']}},..._0x55ca35[_0x4f9575(0x18f)](_0x5e5d18=>({'id':I['id'],'params':{'unitId':_0x342a53,'subUnitId':_0x1ba1cd,'outline':_0x5e5d18}}))];return _0x3d56de(_0x485276,_0x100e20[_0x4f9575(0x140)](_0x3e4f6a))[_0x4f9575(0x188)]?(_0x100e20['get'](_0x3ed999)[_0x4f9575(0xe8)]({'unitID':_0x342a53,'undoMutations':_0xf4d0fa,'redoMutations':_0x485276}),!0x0):!0x1;}},B={'id':_0x1945f3(0x11c),'type':_0x334d72[_0x1945f3(0x136)],'handler':(_0x231f98,_0x5054f2)=>{const _0x59cc4c=_0x1945f3;let _0x1627fa=_0x231f98['get'](P),_0x245dd6=_0x1627fa[_0x59cc4c(0x127)](_0x5054f2[_0x59cc4c(0x109)],_0x5054f2['subUnitId']);return _0x1627fa[_0x59cc4c(0x17e)](_0x5054f2[_0x59cc4c(0x109)],_0x5054f2[_0x59cc4c(0x12d)],Ce(_0x245dd6,_0x5054f2)),!0x0;}},V={'id':_0x1945f3(0xef),'type':_0x334d72[_0x1945f3(0x156)],'handler':(_0x4cf9b4,_0x357713)=>{const _0x26bcaa=_0x1945f3;if(!_0x357713)return!0x1;let _0xa3c54f=_0x47e27f(_0x4cf9b4['get'](_0xacd12c),_0x357713);if(!_0xa3c54f)return!0x1;let {unitId:_0x442aae,subUnitId:_0x15f5e2}=_0xa3c54f;if(!R(_0x4cf9b4,_0x442aae,_0x15f5e2))return!0x1;let _0x1b2d75={'unitId':_0x442aae,'subUnitId':_0x15f5e2,'axis':_0x357713[_0x26bcaa(0x135)],'start':_0x357713[_0x26bcaa(0xf9)],'end':_0x357713['end']},_0x40f65c=_0x4cf9b4[_0x26bcaa(0x140)](P)['getOutlines'](_0x442aae,_0x15f5e2)['filter'](_0x52237d=>w(_0x52237d,_0x1b2d75)&&_0x52237d[_0x26bcaa(0xf9)]>=_0x357713[_0x26bcaa(0xf9)]&&_0x52237d[_0x26bcaa(0x137)]<=_0x357713[_0x26bcaa(0x137)]);if(_0x40f65c['length']===0x0)return _0x4cf9b4[_0x26bcaa(0x140)](F)[_0x26bcaa(0x11d)]({'reason':_0x26bcaa(0x122),'commandId':V['id'],'unitId':_0x442aae,'subUnitId':_0x15f5e2,'axis':_0x357713['axis']}),!0x1;let _0x5489c5=[{'id':B['id'],'params':{..._0x1b2d75,'removedOutlineIds':_0x40f65c['map'](_0x423849=>_0x423849['id'])}}],_0x9874b6=_0x40f65c['map'](_0x5ae509=>({'id':I['id'],'params':{'unitId':_0x442aae,'subUnitId':_0x15f5e2,'outline':_0x5ae509}}));return _0x3d56de(_0x5489c5,_0x4cf9b4[_0x26bcaa(0x140)](_0x3e4f6a))[_0x26bcaa(0x188)]?(_0x4cf9b4['get'](_0x3ed999)[_0x26bcaa(0xe8)]({'unitID':_0x442aae,'undoMutations':_0x9874b6,'redoMutations':_0x5489c5}),!0x0):!0x1;}},ze={'id':'sheet.command.remove-dimension-outline','type':_0x334d72[_0x1945f3(0x156)],'handler':(_0x465c88,_0xdf33d9)=>{const _0x4c5973=_0x1945f3;if(!_0xdf33d9)return!0x1;let _0x40eeb9=_0x47e27f(_0x465c88['get'](_0xacd12c),_0xdf33d9);if(!_0x40eeb9)return!0x1;let {unitId:_0x35061b,subUnitId:_0xda066b}=_0x40eeb9;if(!R(_0x465c88,_0x35061b,_0xda066b))return!0x1;let _0xdb3d2c=_0x465c88[_0x4c5973(0x140)](P)[_0x4c5973(0x127)](_0x35061b,_0xda066b)[_0x4c5973(0x13f)](_0x3cc6fc=>_0x3cc6fc['id']===_0xdf33d9['outlineId']);if(!_0xdb3d2c)return!0x1;let _0x26816a=[{'id':L['id'],'params':{'unitId':_0x35061b,'subUnitId':_0xda066b,'outlineId':_0xdb3d2c['id'],'outline':_0xdb3d2c}}],_0xe3397a=[{'id':I['id'],'params':{'unitId':_0x35061b,'subUnitId':_0xda066b,'outline':_0xdb3d2c}}];return _0x3d56de(_0x26816a,_0x465c88[_0x4c5973(0x140)](_0x3e4f6a))[_0x4c5973(0x188)]?(_0x465c88[_0x4c5973(0x140)](_0x3ed999)[_0x4c5973(0xe8)]({'unitID':_0x35061b,'undoMutations':_0xe3397a,'redoMutations':_0x26816a}),!0x0):!0x1;}},H={'id':_0x1945f3(0x132),'type':_0x334d72[_0x1945f3(0x136)],'handler':(_0x2d9010,_0xd6b794)=>{const _0x2c2f6b=_0x1945f3;let _0x206df6=_0x2d9010[_0x2c2f6b(0x140)](P),_0x5c8613=_0x206df6[_0x2c2f6b(0x127)](_0xd6b794[_0x2c2f6b(0x109)],_0xd6b794[_0x2c2f6b(0x12d)]),_0x1555bd=_0x5c8613[_0x2c2f6b(0x13f)](_0x20c254=>_0x20c254['id']===_0xd6b794[_0x2c2f6b(0x116)]);return _0x1555bd&&_0x206df6[_0x2c2f6b(0x17e)](_0xd6b794[_0x2c2f6b(0x109)],_0xd6b794[_0x2c2f6b(0x12d)],_0x5c8613['map'](_0x45400d=>_0x45400d[_0x2c2f6b(0x109)]!==_0x1555bd[_0x2c2f6b(0x109)]||_0x45400d[_0x2c2f6b(0x12d)]!==_0x1555bd['subUnitId']||_0x45400d[_0x2c2f6b(0x135)]!==_0x1555bd[_0x2c2f6b(0x135)]||_0x45400d[_0x2c2f6b(0xf9)]!==_0x1555bd[_0x2c2f6b(0xf9)]||_0x45400d[_0x2c2f6b(0x137)]!==_0x1555bd[_0x2c2f6b(0x137)]?_0x45400d:{..._0x45400d,'collapsed':_0xd6b794[_0x2c2f6b(0x17b)]})),!0x0;}};function Be(_0x5515d3,_0x4fef88,_0x50cd41,_0x56e6cf){return _0x5515d3==='row'?{'startRow':_0x4fef88,'endRow':_0x50cd41,'startColumn':0x0,'endColumn':_0x56e6cf['getMaxColumns']()-0x1}:{'startRow':0x0,'endRow':_0x56e6cf['getRowCount']()-0x1,'startColumn':_0x4fef88,'endColumn':_0x50cd41};}function Ve(_0xd43f37){const _0x2d78a9=_0x1945f3;return _0xd43f37===_0x2d78a9(0x141)?_0x301c72['id']:_0x58f5dc['id'];}function He(_0x4abf21){const _0x55fda8=_0x1945f3;return _0x4abf21===_0x55fda8(0x141)?_0xfbefd0['id']:_0x55797a['id'];}function Ue(_0x1d810e,_0x649127,_0x40534d,_0x5aea9e){const _0x48243a=_0x1945f3;let _0x30f642=_0x649127?[Be(_0x1d810e[_0x48243a(0x135)],_0x1d810e[_0x48243a(0xf9)],_0x1d810e[_0x48243a(0x137)],_0x40534d)]:We(_0x1d810e,_0x5aea9e,_0x40534d),_0x55c813=_0x649127?Ve(_0x1d810e[_0x48243a(0x135)]):He(_0x1d810e[_0x48243a(0x135)]);return[{'id':H['id'],'params':{'unitId':_0x1d810e[_0x48243a(0x109)],'subUnitId':_0x1d810e[_0x48243a(0x12d)],'outlineId':_0x1d810e['id'],'outline':_0x1d810e,'collapsed':_0x649127}},..._0x30f642[_0x48243a(0x18f)](_0x3c5887=>({'id':_0x55c813,'params':{'unitId':_0x1d810e[_0x48243a(0x109)],'subUnitId':_0x1d810e[_0x48243a(0x12d)],'ranges':[_0x3c5887],'dimensionOutlineId':_0x1d810e['id']}}))];}function We(_0x4d9d8c,_0x1747eb,_0x32a1e2){const _0x29a031=_0x1945f3;let _0x2350bd=we(_0x1747eb[_0x29a031(0x18f)](_0x249878=>Ge(_0x249878,_0x4d9d8c)?{..._0x249878,'collapsed':!0x1}:_0x249878),_0x4d9d8c[_0x29a031(0x109)],_0x4d9d8c[_0x29a031(0x12d)],_0x4d9d8c[_0x29a031(0x135)]);return Ke({'start':_0x4d9d8c['start'],'end':_0x4d9d8c[_0x29a031(0x137)]},_0x2350bd)[_0x29a031(0x18f)](_0x5aeb2f=>Be(_0x4d9d8c[_0x29a031(0x135)],_0x5aeb2f['start'],_0x5aeb2f[_0x29a031(0x137)],_0x32a1e2));}function Ge(_0x15593c,_0x26015b){const _0x156779=_0x1945f3;return _0x15593c['unitId']===_0x26015b[_0x156779(0x109)]&&_0x15593c[_0x156779(0x12d)]===_0x26015b['subUnitId']&&_0x15593c[_0x156779(0x135)]===_0x26015b[_0x156779(0x135)]&&_0x15593c[_0x156779(0xf9)]===_0x26015b['start']&&_0x15593c[_0x156779(0x137)]===_0x26015b[_0x156779(0x137)];}function Ke(_0x16cd8c,_0x57743e){const _0x4fa4bf=_0x1945f3;let _0x63048f=_0x16cd8c[_0x4fa4bf(0xf9)],_0x1c0b3d=[];for(let _0x5e0800 of _0x57743e)if(!(_0x5e0800[_0x4fa4bf(0x137)]<_0x63048f||_0x5e0800[_0x4fa4bf(0xf9)]>_0x16cd8c[_0x4fa4bf(0x137)])&&(_0x5e0800['start']>_0x63048f&&_0x1c0b3d[_0x4fa4bf(0x110)]({'start':_0x63048f,'end':Math[_0x4fa4bf(0xed)](_0x5e0800[_0x4fa4bf(0xf9)]-0x1,_0x16cd8c[_0x4fa4bf(0x137)])}),_0x63048f=Math[_0x4fa4bf(0x143)](_0x63048f,_0x5e0800['end']+0x1),_0x63048f>_0x16cd8c['end']))break;return _0x63048f<=_0x16cd8c[_0x4fa4bf(0x137)]&&_0x1c0b3d[_0x4fa4bf(0x110)]({'start':_0x63048f,'end':_0x16cd8c[_0x4fa4bf(0x137)]}),_0x1c0b3d;}const qe={'id':_0x1945f3(0x14f),'type':_0x334d72[_0x1945f3(0x156)],'handler':(_0x4f31d8,_0xc6586f)=>{const _0x57520f=_0x1945f3;if(!_0xc6586f)return!0x1;let _0x2b917a=_0x47e27f(_0x4f31d8[_0x57520f(0x140)](_0xacd12c),_0xc6586f);if(!_0x2b917a)return!0x1;let {unitId:_0xfb333e,subUnitId:_0x9e963a,worksheet:_0x40c2fe}=_0x2b917a;if(!R(_0x4f31d8,_0xfb333e,_0x9e963a))return!0x1;let _0x199414=_0x4f31d8[_0x57520f(0x140)](P)['getOutlines'](_0xfb333e,_0x9e963a),_0x3ab415=_0x199414[_0x57520f(0x13f)](_0xd4c32e=>_0xd4c32e['id']===_0xc6586f[_0x57520f(0x116)]);if(!_0x3ab415||_0x3ab415[_0x57520f(0x17b)]===_0xc6586f[_0x57520f(0x17b)])return!0x1;let _0x50b661=Ue(_0x3ab415,_0xc6586f[_0x57520f(0x17b)],_0x40c2fe,_0x199414),_0x491380=Ue(_0x3ab415,!_0xc6586f[_0x57520f(0x17b)],_0x40c2fe,_0x199414);return _0x3d56de(_0x50b661,_0x4f31d8['get'](_0x3e4f6a))[_0x57520f(0x188)]?(_0x4f31d8[_0x57520f(0x140)](_0x3ed999)[_0x57520f(0xe8)]({'unitID':_0xfb333e,'undoMutations':_0x491380,'redoMutations':_0x50b661}),!0x0):!0x1;}},U={'id':_0x1945f3(0x176),'type':_0x334d72['MUTATION'],'handler':(_0x11cde6,_0x3b76f4)=>{const _0x362052=_0x1945f3;let _0x2612aa=_0x11cde6[_0x362052(0x140)](P),_0x5dd7dc=Je(_0x2612aa[_0x362052(0x127)](_0x3b76f4[_0x362052(0x109)],_0x3b76f4['subUnitId']),_0x3b76f4);return _0x2612aa[_0x362052(0x17e)](_0x3b76f4['unitId'],_0x3b76f4[_0x362052(0x12d)],_0x5dd7dc),!0x0;}};function Je(_0x2d8077,_0x485735){const _0x1f8f31=_0x1945f3;switch(_0x485735[_0x1f8f31(0x13e)]){case _0x1f8f31(0xfd):return _0x485735[_0x1f8f31(0x115)]?Ye(_0x2d8077,_0x485735):D(_0x2d8077,_0x485735);case _0x1f8f31(0x139):return O(_0x2d8077,_0x485735);case'move':return k(_0x2d8077,_0x485735);}}function Ye(_0x11d554,_0x488de2){const _0x6c8682=_0x1945f3;return[..._0x11d554[_0x6c8682(0x145)](_0x4cae72=>_0x4cae72[_0x6c8682(0x109)]!==_0x488de2[_0x6c8682(0x109)]||_0x4cae72[_0x6c8682(0x12d)]!==_0x488de2[_0x6c8682(0x12d)]||_0x4cae72[_0x6c8682(0x135)]!==_0x488de2['axis']),..._0x488de2['restoreOutlines']];}const W='SHEET_OUTLINE_PLUGIN';var Xe='@univerjs-pro/sheets-outline',Ze=_0x1945f3(0x11b);const Qe={};function G(_0x35e3e0,_0xf7eb70){return function(_0x5a5590,_0x4d269e){_0xf7eb70(_0x5a5590,_0x4d269e,_0x35e3e0);};}function _0x22d4(){const _0x11147d=['permissionPointUpdate$','dispose','min','Invalid\x20dimension\x20outline\x20move\x20source\x20range','sheet.command.clear-dimension-outlines','_ensureUnitOutlines','redos','count','outlineList','pluginName','_initResource','includes','Invalid\x20outline\x20range','depth','start','valid','move','registerPluginResource','insert','forEach','setConfig','asObservable','_sheetsOutlineModel','has','46HvDQDO','localeCompare','split','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','121297tQzXIk','function','unitId','serialize','preUndos','add','_resourceManagerService','36JHAoBa','index','push','getColumnCount','parse','startRow','_univerInstanceService','restoreOutlines','outlineId','_outlines','pop','mergedOutlines','getOwnPropertyDescriptor','1.0.0-beta.1','sheet.mutation.clear-dimension-outlines','emit','endColumn','getUnit','maxIndex','outline','clear-range-not-contain-outline','_commandService','getSheetBySheetId','change$','values','getOutlines','MAX_DEPTH','_injector','Invalid\x20dimension\x20outline\x20mutation','Crossing','_initCommandInterceptor','subUnitId','3033135jvOzBr','OUT_OF_BOUNDS','_change$','move-splits-outline','sheet.mutation.set-dimension-outline-collapsed','preRedos','startColumn','axis','MUTATION','end','stringify','delete','removeUnit','getCurrentUnitOfType','set','disposeWithMe','type','find','get','row','mergedOutline','max','name','filter','20hPoPQN','constructor','deserialize','_sheetsOutlineErrorService','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','object','UNIVER_SHEET','12BJUyab','sheet.command.set-dimension-outline-collapsed','prototype','crossing','entries','next','sheet.mutation.add-dimension-outline','_initRegisterCommand','COMMAND','defineProperty','INVALID_RANGE','undos','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','11344diboYC','some','fromRange','COLUMN','_config','version','DimensionOutlineError','toPrimitive','invalid-dimension-outline','_sheetInterceptorService','dimension-outline-','string','reason','children','call','params','getUnitOutlines','length','interceptCommand','range','getActiveSheet','372GirSot','error$','_error$','sourceStart','column','1528672JrfExO','sheet.mutation.transform-dimension-outlines','41083ZeZcyg','_configService','out-of-bounds','complete','collapsed','max-depth','unknown','setOutlines','sort','sheets-outline.config','endRow','maxDepth','Move\x20would\x20split\x20dimension\x20outline:\x20','getRowCount','decorate','packageName','ROW','result','930165cqNibq','offset','invalid-range','message','split\x20dimension\x20outline','_getCommandScope','map','permissionCheckWithoutRange','toRange','sourceEnd','symbol','UNKNOWN','destinationIndex','268215BmmhCP','pushUndoRedo','join','sheet.command.add-dimension-outline'];_0x22d4=function(){return _0x11147d;};return _0x22d4();}function K(_0x1e8faa,_0x313c22,_0x76cdae,_0x4e314b){const _0x25b803=_0x1945f3;var _0x1d72ef=arguments[_0x25b803(0x16c)],_0x20b061=_0x1d72ef<0x3?_0x313c22:_0x4e314b===null?_0x4e314b=Object[_0x25b803(0x11a)](_0x313c22,_0x76cdae):_0x4e314b,_0x5c5652;if(typeof Reflect==_0x25b803(0x14c)&&typeof Reflect[_0x25b803(0x185)]=='function')_0x20b061=Reflect['decorate'](_0x1e8faa,_0x313c22,_0x76cdae,_0x4e314b);else{for(var _0x8a0ecc=_0x1e8faa[_0x25b803(0x16c)]-0x1;_0x8a0ecc>=0x0;_0x8a0ecc--)(_0x5c5652=_0x1e8faa[_0x8a0ecc])&&(_0x20b061=(_0x1d72ef<0x3?_0x5c5652(_0x20b061):_0x1d72ef>0x3?_0x5c5652(_0x313c22,_0x76cdae,_0x20b061):_0x5c5652(_0x313c22,_0x76cdae))||_0x20b061);}return _0x1d72ef>0x3&&_0x20b061&&Object[_0x25b803(0x157)](_0x313c22,_0x76cdae,_0x20b061),_0x20b061;}const q={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let J=class extends _0xe607e7{constructor(_0x1bb4d2,_0x3f5d2c,_0x1400a9,_0x1f5b54){const _0x3cf330=_0x1945f3;super(),this[_0x3cf330(0x114)]=_0x1bb4d2,this[_0x3cf330(0x164)]=_0x3f5d2c,this[_0x3cf330(0x101)]=_0x1400a9,this[_0x3cf330(0x149)]=_0x1f5b54,this[_0x3cf330(0x12c)]();}[_0x1945f3(0x12c)](){const _0x2d4525=_0x1945f3;this[_0x2d4525(0x13d)](this[_0x2d4525(0x164)][_0x2d4525(0x16d)]({'getMutations':_0x543c71=>$e(_0x543c71,(_0x54ad5f,_0xd8c2cd)=>this[_0x2d4525(0x101)]['getOutlines'](_0x54ad5f,_0xd8c2cd),this['_getCommandScope'](_0x543c71[_0x2d4525(0x16a)]),_0x53d2b1=>this['_sheetsOutlineErrorService']['emit'](_0x53d2b1))}));}[_0x1945f3(0x18e)](_0x51da77){const _0x5ad517=_0x1945f3;let _0x20c193=_0x51da77,_0x147011=_0x20c193!=null&&_0x20c193[_0x5ad517(0x109)]?this['_univerInstanceService'][_0x5ad517(0x11f)](_0x20c193[_0x5ad517(0x109)],_0x4827d7[_0x5ad517(0x14d)]):this[_0x5ad517(0x114)][_0x5ad517(0x13b)](_0x4827d7[_0x5ad517(0x14d)]);if(!_0x147011)return;let _0x565cd=_0x20c193!=null&&_0x20c193[_0x5ad517(0x12d)]?_0x147011[_0x5ad517(0x124)](_0x20c193['subUnitId']):_0x147011[_0x5ad517(0x16f)]();if(_0x565cd)return{'unitId':_0x147011['getUnitId'](),'subUnitId':_0x565cd['getSheetId']()};}};function _0x340b(_0x1fd18c,_0x222fda){_0x1fd18c=_0x1fd18c-0xe6;const _0x22d49d=_0x22d4();let _0x340bbd=_0x22d49d[_0x1fd18c];return _0x340bbd;}J=K([G(0x0,_0xacd12c),G(0x1,_0x1e8506(_0x5fd442)),G(0x2,_0x1e8506(P)),G(0x3,_0x1e8506(F))],J);function $e(_0x3132c4,_0x10998d,_0x4d7f70,_0xbd61e9){const _0x6bff97=_0x1945f3;let _0x465e7b=tt(_0x3132c4,_0x4d7f70);if(!_0x465e7b)return Z();let _0x5646c1=_0x10998d(_0x465e7b[_0x6bff97(0x109)],_0x465e7b[_0x6bff97(0x12d)]);if(!_0x5646c1[_0x6bff97(0x15c)](_0x593366=>_0x593366[_0x6bff97(0x135)]===_0x465e7b[_0x6bff97(0x135)]))return Z();et(_0x5646c1,_0x465e7b,_0x3132c4['id'],_0xbd61e9);let _0x4d7056=it(_0x465e7b,_0x5646c1);return{'redos':[{'id':U['id'],'params':_0x465e7b}],'undos':[{'id':U['id'],'params':_0x4d7056}],'preRedos':[],'preUndos':[]};}function et(_0x40e7b9,_0x2ec47e,_0x5aa94a,_0x87f53e){const _0x7eb80e=_0x1945f3;try{switch(_0x2ec47e[_0x7eb80e(0x13e)]){case _0x7eb80e(0xfd):D(_0x40e7b9,_0x2ec47e);break;case _0x7eb80e(0x139):O(_0x40e7b9,_0x2ec47e);break;case _0x7eb80e(0xfb):k(_0x40e7b9,_0x2ec47e);break;}}catch(_0x30a42d){throw _0x87f53e==null||_0x87f53e({'reason':ye(_0x30a42d),'commandId':_0x5aa94a,'unitId':_0x2ec47e['unitId'],'subUnitId':_0x2ec47e['subUnitId'],'axis':_0x2ec47e[_0x7eb80e(0x135)],'outlineId':be(_0x30a42d)}),new _0x550f7f(_0x30a42d instanceof Error?_0x30a42d[_0x7eb80e(0x18c)]:_0x7eb80e(0x12a));}}function tt(_0x53badc,_0x46680b){const _0x3c4f23=_0x1945f3;switch(_0x53badc['id']){case _0x1dc395['id']:return Y(_0x53badc['params'],'row',_0x46680b);case _0x43376c['id']:return Y(_0x53badc['params'],'column',_0x46680b);case _0x4bd3fd['id']:return nt(_0x53badc[_0x3c4f23(0x16a)],'row',_0x46680b);case _0x8bce70['id']:return nt(_0x53badc[_0x3c4f23(0x16a)],_0x3c4f23(0x174),_0x46680b);case _0x1560e4['id']:return rt(_0x53badc[_0x3c4f23(0x16a)],'row',_0x46680b);case _0x4bbbc6['id']:return rt(_0x53badc[_0x3c4f23(0x16a)],_0x3c4f23(0x174),_0x46680b);default:return null;}}function Y(_0x3f7e16,_0x494821,_0xbca7d2){const _0x339106=_0x1945f3;let _0x51af8a=X(_0x3f7e16,_0xbca7d2);if(!(_0x3f7e16!=null&&_0x3f7e16[_0x339106(0x16e)])||!_0x51af8a)return null;let _0x244cb8=_0x494821===_0x339106(0x141)?_0x3f7e16[_0x339106(0x16e)][_0x339106(0x113)]:_0x3f7e16['range'][_0x339106(0x134)],_0x8f0097=_0x494821===_0x339106(0x141)?_0x3f7e16[_0x339106(0x16e)][_0x339106(0x181)]:_0x3f7e16[_0x339106(0x16e)]['endColumn'];return{..._0x51af8a,'axis':_0x494821,'type':_0x339106(0xfd),'index':_0x244cb8,'count':_0x8f0097-_0x244cb8+0x1};}function nt(_0x4e9e92,_0x3d6f2d,_0x1e8d79){const _0x27ff4a=_0x1945f3;let _0x3ddbf0=X(_0x4e9e92,_0x1e8d79);if(!(_0x4e9e92!=null&&_0x4e9e92['range'])||!_0x3ddbf0)return null;let _0x4167c5=_0x3d6f2d===_0x27ff4a(0x141)?_0x4e9e92[_0x27ff4a(0x16e)][_0x27ff4a(0x113)]:_0x4e9e92[_0x27ff4a(0x16e)]['startColumn'],_0x11bd6b=_0x3d6f2d===_0x27ff4a(0x141)?_0x4e9e92[_0x27ff4a(0x16e)][_0x27ff4a(0x181)]:_0x4e9e92[_0x27ff4a(0x16e)][_0x27ff4a(0x11e)];return{..._0x3ddbf0,'axis':_0x3d6f2d,'type':_0x27ff4a(0x139),'start':_0x4167c5,'end':_0x11bd6b};}function rt(_0x184127,_0x3e93b4,_0x3c9e74){const _0x51ba4a=_0x1945f3;let _0x404064=X(_0x184127,_0x3c9e74);if(!(_0x184127!=null&&_0x184127[_0x51ba4a(0x15d)])||!_0x184127[_0x51ba4a(0x191)]||!_0x404064)return null;let _0x36ace6=_0x3e93b4===_0x51ba4a(0x141)?_0x184127[_0x51ba4a(0x15d)][_0x51ba4a(0x113)]:_0x184127[_0x51ba4a(0x15d)][_0x51ba4a(0x134)],_0x37e8e5=_0x3e93b4===_0x51ba4a(0x141)?_0x184127['fromRange'][_0x51ba4a(0x181)]:_0x184127['fromRange'][_0x51ba4a(0x11e)],_0x3291dc=_0x3e93b4===_0x51ba4a(0x141)?_0x184127[_0x51ba4a(0x191)][_0x51ba4a(0x113)]:_0x184127[_0x51ba4a(0x191)]['startColumn'];return{..._0x404064,'axis':_0x3e93b4,'type':_0x51ba4a(0xfb),'sourceStart':_0x36ace6,'sourceEnd':_0x37e8e5,'destinationIndex':_0x3291dc};}function it(_0x165908,_0x20c95d){const _0x49a205=_0x1945f3;switch(_0x165908[_0x49a205(0x13e)]){case _0x49a205(0xfd):return{'unitId':_0x165908[_0x49a205(0x109)],'subUnitId':_0x165908[_0x49a205(0x12d)],'axis':_0x165908['axis'],'type':_0x49a205(0x139),'start':_0x165908[_0x49a205(0x10f)],'end':_0x165908[_0x49a205(0x10f)]+_0x165908[_0x49a205(0xf2)]-0x1};case _0x49a205(0x139):return{'unitId':_0x165908['unitId'],'subUnitId':_0x165908[_0x49a205(0x12d)],'axis':_0x165908[_0x49a205(0x135)],'type':'insert','index':_0x165908['start'],'count':_0x165908['end']-_0x165908[_0x49a205(0xf9)]+0x1,'restoreOutlines':_0x20c95d[_0x49a205(0x145)](_0x1e8784=>_0x1e8784[_0x49a205(0x109)]===_0x165908['unitId']&&_0x1e8784[_0x49a205(0x12d)]===_0x165908['subUnitId']&&_0x1e8784[_0x49a205(0x135)]===_0x165908[_0x49a205(0x135)])};case'move':return at(_0x165908);}}function at(_0x4907a5){const _0x3d98b6=_0x1945f3;let _0x5a9e61=_0x4907a5['sourceEnd']-_0x4907a5[_0x3d98b6(0x173)]+0x1;return _0x4907a5[_0x3d98b6(0xe6)]>=_0x4907a5[_0x3d98b6(0x173)]&&_0x4907a5['destinationIndex']<=_0x4907a5[_0x3d98b6(0x192)]+0x1?{..._0x4907a5}:_0x4907a5[_0x3d98b6(0xe6)]>_0x4907a5[_0x3d98b6(0x192)]+0x1?{..._0x4907a5,'sourceStart':_0x4907a5['destinationIndex']-_0x5a9e61,'sourceEnd':_0x4907a5['destinationIndex']-0x1,'destinationIndex':_0x4907a5[_0x3d98b6(0x173)]}:{..._0x4907a5,'sourceStart':_0x4907a5['destinationIndex'],'sourceEnd':_0x4907a5['destinationIndex']+_0x5a9e61-0x1,'destinationIndex':_0x4907a5[_0x3d98b6(0x192)]+0x1};}function X(_0x39210c,_0x45e1bf){const _0x2c96d9=_0x1945f3;let _0x417434=(_0x39210c==null?void 0x0:_0x39210c[_0x2c96d9(0x109)])??(_0x45e1bf==null?void 0x0:_0x45e1bf[_0x2c96d9(0x109)]),_0x24d6c6=(_0x39210c==null?void 0x0:_0x39210c[_0x2c96d9(0x12d)])??(_0x45e1bf==null?void 0x0:_0x45e1bf[_0x2c96d9(0x12d)]);return _0x417434&&_0x24d6c6?{'unitId':_0x417434,'subUnitId':_0x24d6c6}:null;}function Z(){const _0x191cc6=_0x1945f3;return{'redos':[...q[_0x191cc6(0xf1)]],'undos':[...q[_0x191cc6(0x159)]],'preRedos':[...q[_0x191cc6(0x133)]??[]],'preUndos':[...q[_0x191cc6(0x10b)]??[]]};}let Q=class extends _0xe607e7{constructor(_0x32730b,_0x281c2c){const _0x482a04=_0x1945f3;super(),this[_0x482a04(0x10d)]=_0x32730b,this[_0x482a04(0x101)]=_0x281c2c,this['_initResource']();}[_0x1945f3(0xf5)](){const _0xb6302a=_0x1945f3;this[_0xb6302a(0x13d)](this[_0xb6302a(0x10d)][_0xb6302a(0xfc)]({'pluginName':W,'businesses':[_0x4827d7['UNIVER_SHEET']],'toJson':_0x2f06f5=>JSON[_0xb6302a(0x138)](this[_0xb6302a(0x101)][_0xb6302a(0x10a)](_0x2f06f5)),'parseJson':_0x30e87d=>JSON[_0xb6302a(0x112)](_0x30e87d),'onLoad':(_0xf5e1a0,_0xaa8719)=>this[_0xb6302a(0x101)][_0xb6302a(0x148)](_0xf5e1a0,_0xaa8719),'onUnLoad':_0x332690=>this[_0xb6302a(0x101)][_0xb6302a(0x13a)](_0x332690)}));}};Q=K([G(0x0,_0x2ddefa),G(0x1,_0x1e8506(P))],Q);let $=class extends _0xf25005{constructor(_0x3f076f=Qe,_0x2d2947,_0x175a86,_0x57b9ad){const _0x2b485e=_0x1945f3;super(),this[_0x2b485e(0x15f)]=_0x3f076f,this[_0x2b485e(0x129)]=_0x2d2947,this[_0x2b485e(0x123)]=_0x175a86,this[_0x2b485e(0x178)]=_0x57b9ad;let {..._0x3d78d5}=_0x1a4160({},Qe,this[_0x2b485e(0x15f)]);this[_0x2b485e(0x178)][_0x2b485e(0xff)](_0x2b485e(0x180),_0x3d78d5);}['onStarting'](){const _0x408585=_0x1945f3;this[_0x408585(0x129)][_0x408585(0x10c)]([P]),this[_0x408585(0x129)]['add']([F]),this[_0x408585(0x129)]['add']([Q]),this[_0x408585(0x129)][_0x408585(0x10c)]([J]),this[_0x408585(0x155)](),this[_0x408585(0x129)]['get'](P),this[_0x408585(0x129)][_0x408585(0x140)](F),this[_0x408585(0x129)][_0x408585(0x140)](Q),this[_0x408585(0x129)][_0x408585(0x140)](J);}[_0x1945f3(0x155)](){const _0x3bcab9=_0x1945f3;[z,ze,qe,V][_0x3bcab9(0xfe)](_0x5aabed=>{const _0x2de373=_0x3bcab9;this[_0x2de373(0x13d)](this[_0x2de373(0x123)]['registerCommand'](_0x5aabed));}),[I,L,H,B,U][_0x3bcab9(0xfe)](_0xc6d4ac=>{const _0x23f119=_0x3bcab9;this[_0x23f119(0x13d)](this[_0x23f119(0x123)]['registerCommand'](_0xc6d4ac));});}};N($,_0x1945f3(0xf4),W),N($,_0x1945f3(0x186),Xe),N($,_0x1945f3(0x160),Ze),N($,_0x1945f3(0x13e),_0x4827d7[_0x1945f3(0x14d)]),$=K([_0x4d5652(_0x269374,_0x5d1375),G(0x1,_0x1e8506(_0x3552b1)),G(0x2,_0x3e4f6a),G(0x3,_0x4e9855)],$);export{z as AddDimensionOutlineCommand,I as AddDimensionOutlineMutation,V as ClearDimensionOutlinesCommand,B as ClearDimensionOutlinesMutation,_e as DimensionOutlineAxis,ve as DimensionOutlineErrorReason,ze as RemoveDimensionOutlineCommand,L as RemoveDimensionOutlineMutation,W as SHEET_OUTLINE_PLUGIN,qe as SetDimensionOutlineCollapsedCommand,H as SetDimensionOutlineCollapsedMutation,F as SheetsOutlineErrorService,P as SheetsOutlineModel,U as TransformDimensionOutlinesMutation,$ as UniverSheetsOutlinePlugin,T as buildDimensionOutlineTree,E as canAddDimensionOutline,Ie as getDimensionOutlineViewPermission$,R as hasDimensionOutlineViewPermission,O as transformOutlinesByDelete,D as transformOutlinesByInsert,k as transformOutlinesByMove};
1
+ const _0x3bf8d5=_0x159a;(function(_0x538a4f,_0x1bf4de){const _0x354e36=_0x159a,_0x16c621=_0x538a4f();while(!![]){try{const _0x304773=-parseInt(_0x354e36(0x84))/0x1*(-parseInt(_0x354e36(0xd9))/0x2)+parseInt(_0x354e36(0x9a))/0x3*(parseInt(_0x354e36(0xf3))/0x4)+-parseInt(_0x354e36(0xd3))/0x5+-parseInt(_0x354e36(0x9e))/0x6*(-parseInt(_0x354e36(0xfb))/0x7)+-parseInt(_0x354e36(0xb5))/0x8*(parseInt(_0x354e36(0x112))/0x9)+parseInt(_0x354e36(0x8a))/0xa*(-parseInt(_0x354e36(0xfc))/0xb)+-parseInt(_0x354e36(0xf7))/0xc*(-parseInt(_0x354e36(0x74))/0xd);if(_0x304773===_0x1bf4de)break;else _0x16c621['push'](_0x16c621['shift']());}catch(_0x1ffe38){_0x16c621['push'](_0x16c621['shift']());}}}(_0x3757,0x56052));import{CommandType as _0x2c52c8,CustomCommandExecutionError as _0x113370,DependentOn as _0x243a39,Disposable as _0x398395,ICommandService as _0x71ae52,IConfigService as _0x35d06a,IPermissionService as _0x557097,IResourceManagerService as _0x34f6ba,IUndoRedoService as _0x8bf480,IUniverInstanceService as _0x957178,Inject as _0x540b44,Injector as _0xde5590,Plugin as _0xd81d88,UniverInstanceType as _0x570645,generateRandomId as _0x174d5b,merge as _0x1c15e7,sequenceExecute as _0x86848}from'@univerjs/core';import{InsertColCommand as _0x19faba,InsertRowCommand as _0x378372,MoveColsCommand as _0x203553,MoveRowsCommand as _0x2e6d17,RemoveColCommand as _0x567c44,RemoveRowCommand as _0x457460,SetColHiddenMutation as _0x2f4f69,SetColVisibleMutation as _0xf79dda,SetRowHiddenMutation as _0x5c8cde,SetRowVisibleMutation as _0x4596c5,SheetInterceptorService as _0x26654b,SheetPermissionCheckController as _0x843424,UniverSheetsPlugin as _0x142600,WorkbookViewPermission as _0x520301,WorksheetViewPermission as _0x4c06fc,getSheetCommandTarget as _0x317f2a}from'@univerjs/sheets';import{Subject as _0x46fada,of as _0x3191b2}from'rxjs';import{debounceTime as _0x1116d4,map as _0x281c4e,startWith as _0xe13a2d}from'rxjs/operators';import{UniverLicensePlugin as _0x1fb203}from'@univerjs-pro/license';let _e=function(_0x43c05b){const _0x37871a=_0x159a;return _0x43c05b[_0x37871a(0x95)]='row',_0x43c05b[_0x37871a(0xf1)]=_0x37871a(0xcc),_0x43c05b;}({}),ve=function(_0x5c762f){const _0x1a855b=_0x159a;return _0x5c762f[_0x1a855b(0x9b)]=_0x1a855b(0xd8),_0x5c762f[_0x1a855b(0xaf)]=_0x1a855b(0x107),_0x5c762f[_0x1a855b(0x99)]=_0x1a855b(0xd0),_0x5c762f[_0x1a855b(0x111)]=_0x1a855b(0xdb),_0x5c762f['MOVE_SPLITS_OUTLINE']=_0x1a855b(0xd5),_0x5c762f[_0x1a855b(0xb2)]='clear-range-not-contain-outline',_0x5c762f['UNKNOWN']=_0x1a855b(0xe3),_0x5c762f;}({});var S=class extends Error{constructor(_0x3fe91c,_0x2e7d4b,_0xe1a79c){const _0x531445=_0x159a;super(_0x2e7d4b),this[_0x531445(0xb7)]=_0x3fe91c,this['outlineId']=_0xe1a79c,this[_0x531445(0xd4)]=_0x531445(0x97);}};function ye(_0xca5e95){const _0x28b7c6=_0x159a;return _0xca5e95 instanceof S?_0xca5e95[_0x28b7c6(0xb7)]:_0xca5e95 instanceof Error?_0xca5e95[_0x28b7c6(0xea)][_0x28b7c6(0xee)](_0x28b7c6(0x104))?_0x28b7c6(0xd5):_0xca5e95[_0x28b7c6(0xea)][_0x28b7c6(0xee)]('depth')?'max-depth':_0xca5e95[_0x28b7c6(0xea)][_0x28b7c6(0xee)]('Crossing')?_0x28b7c6(0xd0):_0xca5e95[_0x28b7c6(0xea)][_0x28b7c6(0xee)](_0x28b7c6(0x72))?_0x28b7c6(0xd8):'unknown':_0x28b7c6(0xe3);}function be(_0x203cc1){const _0x2b1d97=_0x159a;return _0x203cc1 instanceof S?_0x203cc1[_0x2b1d97(0xe2)]:void 0x0;}const C=0x2**0x35-0x1;function w(_0x1fec8f,_0x21d711){const _0x40aaa3=_0x159a;return _0x1fec8f['unitId']===_0x21d711[_0x40aaa3(0xaa)]&&_0x1fec8f['subUnitId']===_0x21d711[_0x40aaa3(0xc2)]&&_0x1fec8f[_0x40aaa3(0x10c)]===_0x21d711['axis'];}function T(_0x57eff6,_0x1dc0cf={}){const _0x247d9=_0x159a;let _0x301dc1=_0x1dc0cf['maxDepth']??0x8,_0x5d3f7f=new Map();for(let _0x4e09c2 of _0x57eff6){let _0x16da23=_0x4e09c2[_0x247d9(0xaa)]+':'+_0x4e09c2[_0x247d9(0xc2)]+':'+_0x4e09c2[_0x247d9(0x10c)],_0x43b08f=_0x5d3f7f[_0x247d9(0xac)](_0x16da23);_0x43b08f?_0x43b08f[_0x247d9(0xd1)](_0x4e09c2):_0x5d3f7f['set'](_0x16da23,[_0x4e09c2]);}let _0x1e73a4=[];for(let _0xbee1d2 of _0x5d3f7f[_0x247d9(0x9d)]()){let _0x5a4666=[..._0xbee1d2]['sort'](j),_0x2f8977=[];for(let _0x3a9709 of _0x5a4666){for(Me(_0x3a9709);_0x2f8977[_0x247d9(0xd7)]>0x0&&_0x3a9709[_0x247d9(0xda)]>_0x2f8977[_0x2f8977[_0x247d9(0xd7)]-0x1][_0x247d9(0xec)];)_0x2f8977[_0x247d9(0x75)]();let _0x8fb558=_0x2f8977[_0x2f8977[_0x247d9(0xd7)]-0x1];if(_0x8fb558&&_0x3a9709[_0x247d9(0xec)]>_0x8fb558['end'])throw new S(_0x247d9(0xd0),_0x247d9(0xd6),_0x3a9709['id']);let _0x53f3fc=_0x8fb558?_0x8fb558[_0x247d9(0xe6)]+0x1:0x1;if(_0x53f3fc>_0x301dc1)throw new S(_0x247d9(0xdb),_0x247d9(0xe5)+_0x301dc1,_0x3a9709['id']);let _0x48fae0={..._0x3a9709,'depth':_0x53f3fc,'parentId':_0x8fb558==null?void 0x0:_0x8fb558['id'],'anchor':_0x3a9709[_0x247d9(0xec)],'children':[]};_0x8fb558?_0x8fb558[_0x247d9(0x7e)]['push'](_0x48fae0):_0x1e73a4[_0x247d9(0xd1)](_0x48fae0),_0x2f8977[_0x247d9(0xd1)](_0x48fae0);}}return _0x1e73a4;}function E(_0x145350,_0x5e5c1a,_0x30e92a={}){const _0x30ed20=_0x159a;if(_0x5e5c1a[_0x30ed20(0xda)]<0x0||_0x5e5c1a[_0x30ed20(0xda)]>_0x5e5c1a[_0x30ed20(0xec)])return{'valid':!0x1,'reason':_0x30ed20(0xd8)};if(_0x30e92a['maxIndex']!=null&&_0x5e5c1a['end']>=_0x30e92a['maxIndex'])return{'valid':!0x1,'reason':_0x30ed20(0x107)};let _0x3138da=_0x145350[_0x30ed20(0xa4)](_0x5a999a=>w(_0x5a999a,_0x5e5c1a));for(let _0x372934 of _0x3138da)if(Ne(_0x372934,_0x5e5c1a))return{'valid':!0x1,'reason':_0x30ed20(0xd0)};try{T([..._0x145350,_0x5e5c1a],_0x30e92a);}catch(_0x192b92){let _0x11141d=ye(_0x192b92);return _0x11141d===_0x30ed20(0xdb)?{'valid':!0x1,'reason':'max-depth'}:_0x11141d===_0x30ed20(0xd8)?{'valid':!0x1,'reason':_0x30ed20(0xd8)}:{'valid':!0x1,'reason':_0x30ed20(0xd0)};}return{'valid':!0x0};}function _0x159a(_0x548779,_0x8e6125){_0x548779=_0x548779-0x6e;const _0x375729=_0x3757();let _0x159a9c=_0x375729[_0x548779];return _0x159a9c;}function xe(_0x1c595e,_0xc6f937,_0x1b411f={}){const _0xd1878f=_0x159a;let _0x852992=E(_0x1c595e,_0xc6f937,_0x1b411f);if(!_0x852992['valid'])throw Error(_0x852992[_0xd1878f(0xb7)]??_0xd1878f(0x106));return[..._0x1c595e,_0xc6f937];}function Se(_0x159e1a,_0x4ea2da){const _0x2fe910=_0x159a;let _0x258a46=_0x4ea2da[_0x2fe910(0xda)],_0x2c24fd=_0x4ea2da['end'],_0x1a791e=[],_0x3c09d6=!0x0;for(;_0x3c09d6;){_0x3c09d6=!0x1;for(let _0xbc68e5 of _0x159e1a)_0x1a791e[_0x2fe910(0xee)](_0xbc68e5)||!w(_0xbc68e5,_0x4ea2da)||!Ae(_0xbc68e5['start'],_0xbc68e5[_0x2fe910(0xec)],_0x258a46,_0x2c24fd)||(_0x1a791e[_0x2fe910(0xd1)](_0xbc68e5),_0x258a46=Math[_0x2fe910(0x108)](_0x258a46,_0xbc68e5[_0x2fe910(0xda)]),_0x2c24fd=Math[_0x2fe910(0xf0)](_0x2c24fd,_0xbc68e5[_0x2fe910(0xec)]),_0x3c09d6=!0x0);}if(_0x1a791e[_0x2fe910(0xd7)]===0x0)return null;let [_0x45cc34]=[..._0x1a791e][_0x2fe910(0x7b)](j);return{'mergedOutline':{..._0x45cc34,'start':_0x258a46,'end':_0x2c24fd},'mergedOutlines':_0x1a791e};}function Ce(_0x25e63c,_0x7d23e0){const _0x4df9c3=_0x159a;return _0x25e63c[_0x4df9c3(0xa4)](_0x124a8a=>!w(_0x124a8a,_0x7d23e0)||!(_0x124a8a['start']>=_0x7d23e0[_0x4df9c3(0xda)]&&_0x124a8a['end']<=_0x7d23e0[_0x4df9c3(0xec)]));}function we(_0x47f933,_0x4070cd,_0x230996,_0x32979e){const _0x16d99d=_0x159a;return Te(_0x47f933[_0x16d99d(0xa4)](_0x5b34a3=>_0x5b34a3[_0x16d99d(0xaa)]===_0x4070cd&&_0x5b34a3[_0x16d99d(0xc2)]===_0x230996&&_0x5b34a3[_0x16d99d(0x10c)]===_0x32979e&&_0x5b34a3[_0x16d99d(0x93)])[_0x16d99d(0x115)](_0x274049=>({'start':_0x274049[_0x16d99d(0xda)],'end':_0x274049[_0x16d99d(0xec)]})));}function Te(_0x3382ff){const _0x1af0aa=_0x159a;if(_0x3382ff[_0x1af0aa(0xd7)]===0x0)return[];let _0x1270ee=[..._0x3382ff][_0x1af0aa(0x7b)]((_0x596ad7,_0x38ed07)=>_0x596ad7['start']-_0x38ed07['start']||_0x596ad7[_0x1af0aa(0xec)]-_0x38ed07[_0x1af0aa(0xec)]),_0x7d337c=[];for(let _0xb46a51 of _0x1270ee){let _0x92c118=_0x7d337c[_0x7d337c['length']-0x1];!_0x92c118||_0xb46a51[_0x1af0aa(0xda)]>_0x92c118[_0x1af0aa(0xec)]+0x1?_0x7d337c[_0x1af0aa(0xd1)]({..._0xb46a51}):_0x92c118[_0x1af0aa(0xec)]=Math['max'](_0x92c118[_0x1af0aa(0xec)],_0xb46a51[_0x1af0aa(0xec)]);}return _0x7d337c;}function D(_0x211aa9,_0x24f6af){const _0x3bc67d=_0x159a;return _0x24f6af['count']<=0x0?_0x211aa9:A(_0x211aa9[_0x3bc67d(0x115)](_0x26e912=>w(_0x26e912,_0x24f6af)?_0x24f6af[_0x3bc67d(0xfa)]<=_0x26e912[_0x3bc67d(0xda)]?{..._0x26e912,'start':_0x26e912[_0x3bc67d(0xda)]+_0x24f6af[_0x3bc67d(0x85)],'end':_0x26e912[_0x3bc67d(0xec)]+_0x24f6af[_0x3bc67d(0x85)]}:_0x26e912[_0x3bc67d(0xda)]<_0x24f6af['index']&&_0x24f6af[_0x3bc67d(0xfa)]<=_0x26e912[_0x3bc67d(0xec)]?{..._0x26e912,'end':_0x26e912['end']+_0x24f6af[_0x3bc67d(0x85)]}:_0x26e912:_0x26e912));}function O(_0x527987,_0x42545c){const _0x1276a1=_0x159a;if(_0x42545c[_0x1276a1(0xda)]>_0x42545c[_0x1276a1(0xec)])return _0x527987;let _0x21489b=_0x42545c[_0x1276a1(0xec)]-_0x42545c['start']+0x1,_0x5ec594=[];for(let _0x4dcaaa of _0x527987){if(!w(_0x4dcaaa,_0x42545c)){_0x5ec594['push'](_0x4dcaaa);continue;}if(_0x4dcaaa['end']<_0x42545c[_0x1276a1(0xda)]){_0x5ec594[_0x1276a1(0xd1)](_0x4dcaaa);continue;}if(_0x4dcaaa[_0x1276a1(0xda)]>_0x42545c['end']){_0x5ec594[_0x1276a1(0xd1)]({..._0x4dcaaa,'start':_0x4dcaaa[_0x1276a1(0xda)]-_0x21489b,'end':_0x4dcaaa[_0x1276a1(0xec)]-_0x21489b});continue;}let _0x3aa20e=Math[_0x1276a1(0xf0)](_0x4dcaaa[_0x1276a1(0xda)],_0x42545c[_0x1276a1(0xda)]),_0x4541d6=Math['min'](_0x4dcaaa['end'],_0x42545c[_0x1276a1(0xec)]),_0x3dfae0=Math[_0x1276a1(0xf0)](0x0,_0x4541d6-_0x3aa20e+0x1),_0x3147bd=_0x4dcaaa[_0x1276a1(0xec)]-_0x4dcaaa['start']+0x1-_0x3dfae0;if(_0x3147bd<=0x0)continue;let _0x46da1e=_0x4dcaaa['start']<_0x42545c[_0x1276a1(0xda)]?_0x4dcaaa[_0x1276a1(0xda)]:_0x42545c[_0x1276a1(0xda)];_0x5ec594['push']({..._0x4dcaaa,'start':_0x46da1e,'end':_0x46da1e+_0x3147bd-0x1});}return A(_0x5ec594);}function k(_0x5a3170,_0x2d1ae9){const _0x53cf6c=_0x159a;if(_0x2d1ae9[_0x53cf6c(0xb0)]>_0x2d1ae9[_0x53cf6c(0x8c)])return _0x5a3170;let _0x50ffc1=[];for(let _0x1304e8 of _0x5a3170){if(!w(_0x1304e8,_0x2d1ae9)){_0x50ffc1['push'](_0x1304e8);continue;}let _0x3ec857=Ee(_0x1304e8,_0x2d1ae9);if(_0x3ec857[_0x53cf6c(0x86)]==='split')throw new S(_0x53cf6c(0xd5),_0x53cf6c(0xc7)+_0x1304e8['id'],_0x1304e8['id']);_0x50ffc1[_0x53cf6c(0xd1)](_0x3ec857[_0x53cf6c(0x89)]);}return A(_0x50ffc1);}function Ee(_0x216000,_0x2c192c){const _0x5de4fa=_0x159a;let _0x33b9dd=De(_0x2c192c[_0x5de4fa(0xb0)],_0x2c192c['sourceEnd']+0x1,_0x2c192c[_0x5de4fa(0x103)]),_0x5ae5ef=[],_0x1a9e5f={'start':_0x216000['start'],'end':_0x216000[_0x5de4fa(0xec)]+0x1};for(let _0x50b8b0 of _0x33b9dd){let _0x115846=Oe(_0x1a9e5f,_0x50b8b0[_0x5de4fa(0x72)]);_0x115846&&_0x5ae5ef[_0x5de4fa(0xd1)]({'start':_0x115846['start']+_0x50b8b0['offset'],'end':_0x115846[_0x5de4fa(0xec)]+_0x50b8b0[_0x5de4fa(0x10d)]});}let _0x55a4d6=ke(_0x5ae5ef);return _0x55a4d6[_0x5de4fa(0xd7)]===0x1?{'type':'ok','outline':{..._0x216000,'start':_0x55a4d6[0x0]['start'],'end':_0x55a4d6[0x0][_0x5de4fa(0xec)]-0x1}}:{'type':_0x5de4fa(0xbb),'outline':_0x216000,'ranges':_0x55a4d6};}function De(_0x380f37,_0x395b86,_0x493d0c){const _0x5bd976=_0x159a;let _0x153b09=_0x395b86-_0x380f37;if(_0x153b09<=0x0)throw Error(_0x5bd976(0x94));return _0x493d0c>=_0x380f37&&_0x493d0c<=_0x395b86?[{'range':{'start':0x0,'end':C},'offset':0x0}]:_0x493d0c<_0x380f37?[{'range':{'start':0x0,'end':_0x493d0c},'offset':0x0},{'range':{'start':_0x493d0c,'end':_0x380f37},'offset':_0x153b09},{'range':{'start':_0x380f37,'end':_0x395b86},'offset':_0x493d0c-_0x380f37},{'range':{'start':_0x395b86,'end':C},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x380f37},'offset':0x0},{'range':{'start':_0x380f37,'end':_0x395b86},'offset':_0x493d0c-_0x395b86},{'range':{'start':_0x395b86,'end':_0x493d0c},'offset':-_0x153b09},{'range':{'start':_0x493d0c,'end':C},'offset':0x0}];}function Oe(_0x5ccc92,_0x4cd213){const _0x3bd3d0=_0x159a;let _0x441d44=Math['max'](_0x5ccc92['start'],_0x4cd213[_0x3bd3d0(0xda)]),_0x33c0c7=Math[_0x3bd3d0(0x108)](_0x5ccc92[_0x3bd3d0(0xec)],_0x4cd213[_0x3bd3d0(0xec)]);return _0x441d44>=_0x33c0c7?null:{'start':_0x441d44,'end':_0x33c0c7};}function ke(_0x3ac01a){const _0x46fb64=_0x159a;if(_0x3ac01a['length']===0x0)return[];let _0x55801f=[..._0x3ac01a][_0x46fb64(0x7b)]((_0x25a1f4,_0x2b4f4e)=>_0x25a1f4[_0x46fb64(0xda)]-_0x2b4f4e[_0x46fb64(0xda)]||_0x25a1f4['end']-_0x2b4f4e[_0x46fb64(0xec)]),_0x22ee3a=[];for(let _0x4fef88 of _0x55801f){let _0x3254e2=_0x22ee3a[_0x22ee3a['length']-0x1];!_0x3254e2||_0x4fef88[_0x46fb64(0xda)]>_0x3254e2[_0x46fb64(0xec)]?_0x22ee3a[_0x46fb64(0xd1)]({..._0x4fef88}):_0x3254e2[_0x46fb64(0xec)]=Math[_0x46fb64(0xf0)](_0x3254e2[_0x46fb64(0xec)],_0x4fef88['end']);}return _0x22ee3a;}function Ae(_0x3fd7a5,_0x2b23dc,_0x52fff2,_0x6b70bb){return _0x2b23dc+0x1===_0x52fff2||_0x6b70bb+0x1===_0x3fd7a5;}function A(_0x31a2fd){let _0x3166bd=je(_0x31a2fd);return T(_0x3166bd),_0x3166bd;}function je(_0x344778){const _0x185945=_0x159a;let _0x58d8c7=new Map();for(let _0x262004 of _0x344778){let _0x4d96db=[_0x262004[_0x185945(0xaa)],_0x262004['subUnitId'],_0x262004[_0x185945(0x10c)],_0x262004[_0x185945(0xda)],_0x262004[_0x185945(0xec)]]['join'](':'),_0x49ce05=_0x58d8c7[_0x185945(0xac)](_0x4d96db);if(!_0x49ce05){_0x58d8c7[_0x185945(0x91)](_0x4d96db,_0x262004);continue;}_0x58d8c7[_0x185945(0x91)](_0x4d96db,{..._0x49ce05,'collapsed':_0x49ce05['collapsed']||_0x262004[_0x185945(0x93)]});}return Array[_0x185945(0x6f)](_0x58d8c7[_0x185945(0x9d)]());}function j(_0x15f8c7,_0x4f61c9){const _0x2cb992=_0x159a;return _0x15f8c7['unitId']===_0x4f61c9[_0x2cb992(0xaa)]?_0x15f8c7[_0x2cb992(0xc2)]===_0x4f61c9['subUnitId']?_0x15f8c7[_0x2cb992(0x10c)]===_0x4f61c9['axis']?_0x15f8c7[_0x2cb992(0xda)]===_0x4f61c9[_0x2cb992(0xda)]?_0x4f61c9['end']-_0x15f8c7[_0x2cb992(0xec)]:_0x15f8c7['start']-_0x4f61c9[_0x2cb992(0xda)]:_0x15f8c7[_0x2cb992(0x10c)]['localeCompare'](_0x4f61c9[_0x2cb992(0x10c)]):_0x15f8c7['subUnitId'][_0x2cb992(0x87)](_0x4f61c9[_0x2cb992(0xc2)]):_0x15f8c7[_0x2cb992(0xaa)][_0x2cb992(0x87)](_0x4f61c9[_0x2cb992(0xaa)]);}function Me(_0x29b0e2){const _0x73b185=_0x159a;if(_0x29b0e2['start']>_0x29b0e2[_0x73b185(0xec)])throw new S(_0x73b185(0xd8),_0x73b185(0xa0),_0x29b0e2['id']);}function Ne(_0x3df354,_0x3fc510){const _0x16d605=_0x159a;let _0x251b07=_0x3df354[_0x16d605(0xda)]<=_0x3fc510[_0x16d605(0xec)]&&_0x3fc510[_0x16d605(0xda)]<=_0x3df354[_0x16d605(0xec)],_0x2ecd5a=_0x3df354['start']<=_0x3fc510[_0x16d605(0xda)]&&_0x3fc510['end']<=_0x3df354[_0x16d605(0xec)],_0x2421d2=_0x3fc510[_0x16d605(0xda)]<=_0x3df354[_0x16d605(0xda)]&&_0x3df354[_0x16d605(0xec)]<=_0x3fc510[_0x16d605(0xec)];return _0x251b07&&!_0x2ecd5a&&!_0x2421d2;}function M(_0x45482f){'@babel/helpers - typeof';const _0x728e41=_0x159a;return M=typeof Symbol==_0x728e41(0x70)&&typeof Symbol[_0x728e41(0xdc)]=='symbol'?function(_0x558733){return typeof _0x558733;}:function(_0x2281c7){const _0x2c1d8c=_0x728e41;return _0x2281c7&&typeof Symbol==_0x2c1d8c(0x70)&&_0x2281c7['constructor']===Symbol&&_0x2281c7!==Symbol['prototype']?_0x2c1d8c(0xe9):typeof _0x2281c7;},M(_0x45482f);}function Pe(_0x200f44,_0xc5f9cd){const _0x51349e=_0x159a;if(M(_0x200f44)!='object'||!_0x200f44)return _0x200f44;var _0x3b31e7=_0x200f44[Symbol[_0x51349e(0xeb)]];if(_0x3b31e7!==void 0x0){var _0x486ac2=_0x3b31e7[_0x51349e(0xce)](_0x200f44,_0xc5f9cd||'default');if(M(_0x486ac2)!=_0x51349e(0x8f))return _0x486ac2;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xc5f9cd===_0x51349e(0xba)?String:Number)(_0x200f44);}function Fe(_0x7a47e6){const _0x58492d=_0x159a;var _0x1a152f=Pe(_0x7a47e6,_0x58492d(0xba));return M(_0x1a152f)==_0x58492d(0xe9)?_0x1a152f:_0x1a152f+'';}function N(_0x27990e,_0x1bce0d,_0x56f5be){return(_0x1bce0d=Fe(_0x1bce0d))in _0x27990e?Object['defineProperty'](_0x27990e,_0x1bce0d,{'value':_0x56f5be,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27990e[_0x1bce0d]=_0x56f5be,_0x27990e;}var P=class extends _0x398395{constructor(..._0x3a88b3){const _0x1d4d79=_0x159a;super(..._0x3a88b3),N(this,'_outlines',new Map()),N(this,_0x1d4d79(0x8d),new _0x46fada()),N(this,_0x1d4d79(0xae),this['_change$'][_0x1d4d79(0xe8)]());}[_0x3bf8d5(0x7a)](_0x44facc,_0x4a5c7d){const _0x29f9fb=_0x3bf8d5;var _0x48679f;return[...((_0x48679f=this['_outlines'][_0x29f9fb(0xac)](_0x44facc))==null?void 0x0:_0x48679f['get'](_0x4a5c7d))??[]];}['getUnitOutlines'](_0x4d6dfe){const _0x36212b=_0x3bf8d5;let _0x4dde25=this['_outlines'][_0x36212b(0xac)](_0x4d6dfe),_0x3c1b73=new Map();return _0x4dde25==null||_0x4dde25[_0x36212b(0x110)]((_0x5a1eda,_0x200400)=>{const _0x3429f1=_0x36212b;_0x3c1b73[_0x3429f1(0x91)](_0x200400,[..._0x5a1eda]);}),_0x3c1b73;}[_0x3bf8d5(0x7c)](_0x25001e,_0x539c15,_0x21dc10){const _0x2d2996=_0x3bf8d5;this[_0x2d2996(0x77)](_0x25001e)[_0x2d2996(0x91)](_0x539c15,[..._0x21dc10]),this['_change$']['next']({'unitId':_0x25001e,'subUnitId':_0x539c15});}[_0x3bf8d5(0x7f)](_0x5bff47){const _0xadec96=_0x3bf8d5;this[_0xadec96(0xdd)][_0xadec96(0xbc)](_0x5bff47),this[_0xadec96(0x8d)]['next']({'unitId':_0x5bff47});}['serialize'](_0x27900e){const _0x1e0807=_0x3bf8d5;let _0x47d9e5=this[_0x1e0807(0xdd)][_0x1e0807(0xac)](_0x27900e),_0x386a45={};return _0x47d9e5==null||_0x47d9e5[_0x1e0807(0x110)]((_0x30d81b,_0x28952a)=>{_0x386a45[_0x28952a]={'outlineList':[..._0x30d81b]};}),_0x386a45;}['deserialize'](_0x3999a4,_0x2b8b1e){const _0x29bdf6=_0x3bf8d5;let _0x5de066=new Map();Object['entries'](_0x2b8b1e)[_0x29bdf6(0x110)](([_0x5387e7,_0x14d80c])=>{const _0x12ff53=_0x29bdf6;_0x5de066[_0x12ff53(0x91)](_0x5387e7,[..._0x14d80c[_0x12ff53(0xdf)]??[]]);}),this[_0x29bdf6(0xdd)]['set'](_0x3999a4,_0x5de066),this[_0x29bdf6(0x8d)][_0x29bdf6(0x10b)]({'unitId':_0x3999a4});}[_0x3bf8d5(0xd2)](){const _0x358ac1=_0x3bf8d5;super[_0x358ac1(0xd2)](),this[_0x358ac1(0xdd)][_0x358ac1(0xff)](),this['_change$'][_0x358ac1(0x8e)]();}[_0x3bf8d5(0x77)](_0x1dad72){const _0x2af0d4=_0x3bf8d5;let _0x47c71b=this['_outlines'][_0x2af0d4(0xac)](_0x1dad72);return _0x47c71b||(_0x47c71b=new Map(),this[_0x2af0d4(0xdd)]['set'](_0x1dad72,_0x47c71b)),_0x47c71b;}},F=class extends _0x398395{constructor(..._0x27928c){const _0x4d7ecd=_0x3bf8d5;super(..._0x27928c),N(this,_0x4d7ecd(0x80),new _0x46fada()),N(this,'error$',this[_0x4d7ecd(0x80)][_0x4d7ecd(0xe8)]());}[_0x3bf8d5(0x76)](_0xa38935){const _0x47599f=_0x3bf8d5;this['_error$'][_0x47599f(0x10b)](_0xa38935);}[_0x3bf8d5(0xd2)](){const _0x126f74=_0x3bf8d5;super[_0x126f74(0xd2)](),this[_0x126f74(0x80)][_0x126f74(0x8e)]();}};const I={'id':'sheet.mutation.add-dimension-outline','type':_0x2c52c8[_0x3bf8d5(0xb8)],'handler':(_0x43e73c,_0x4aefe8)=>{const _0x48b20e=_0x3bf8d5;let _0x21c54c=_0x43e73c[_0x48b20e(0xac)](P),_0x2e94ce=_0x21c54c[_0x48b20e(0x7a)](_0x4aefe8['unitId'],_0x4aefe8[_0x48b20e(0xc2)]);return _0x21c54c['setOutlines'](_0x4aefe8[_0x48b20e(0xaa)],_0x4aefe8['subUnitId'],xe(_0x2e94ce,_0x4aefe8['outline'])),!0x0;}},L={'id':_0x3bf8d5(0xc5),'type':_0x2c52c8[_0x3bf8d5(0xb8)],'handler':(_0x1208c8,_0x19eecc)=>{const _0x35f67e=_0x3bf8d5;let _0x5427ac=_0x1208c8[_0x35f67e(0xac)](P),_0x40d694=_0x5427ac[_0x35f67e(0x7a)](_0x19eecc[_0x35f67e(0xaa)],_0x19eecc[_0x35f67e(0xc2)]);return _0x5427ac[_0x35f67e(0x7c)](_0x19eecc[_0x35f67e(0xaa)],_0x19eecc[_0x35f67e(0xc2)],_0x40d694[_0x35f67e(0xa4)](_0x2cbc4b=>_0x2cbc4b['id']!==_0x19eecc[_0x35f67e(0xe2)])),!0x0;}};function R(_0x23e267,_0x27a626,_0x353e8a){const _0x4066d7=_0x3bf8d5;let _0x1777c8=Le(_0x23e267);return!_0x1777c8||_0x1777c8[_0x4066d7(0xde)]({'workbookTypes':[_0x520301],'worksheetTypes':[_0x4c06fc]},_0x27a626,_0x353e8a);}function Ie(_0x176c64,_0x35e317,_0xb08fb5){const _0x57ec0d=_0x3bf8d5;let _0x335d0a=Re(_0x176c64);return((_0x335d0a==null?void 0x0:_0x335d0a[_0x57ec0d(0x101)])??_0x3191b2(null))['pipe'](_0x1116d4(0x64),_0xe13a2d(null),_0x281c4e(()=>R(_0x176c64,_0x35e317,_0xb08fb5)));}function Le(_0xd9f55b){const _0x4a02d0=_0x3bf8d5;if(typeof _0xd9f55b[_0x4a02d0(0xc9)]==_0x4a02d0(0x70)&&!_0xd9f55b['has'](_0x843424))return null;try{return _0xd9f55b['get'](_0x843424);}catch{return null;}}function Re(_0x35ca0c){const _0x1a0888=_0x3bf8d5;if(typeof _0x35ca0c['has']==_0x1a0888(0x70)&&!_0x35ca0c[_0x1a0888(0xc9)](_0x557097))return null;try{return _0x35ca0c[_0x1a0888(0xac)](_0x557097);}catch{return null;}}const z={'id':_0x3bf8d5(0xf5),'type':_0x2c52c8[_0x3bf8d5(0xc8)],'handler':(_0x4b2faf,_0x4d2d7e)=>{const _0x7e685b=_0x3bf8d5;if(!_0x4d2d7e)return!0x1;let _0xf4f8cc=_0x317f2a(_0x4b2faf[_0x7e685b(0xac)](_0x957178),_0x4d2d7e);if(!_0xf4f8cc)return!0x1;let {unitId:_0x46829b,subUnitId:_0x415bc0,worksheet:_0x2e2bb8}=_0xf4f8cc;if(!R(_0x4b2faf,_0x46829b,_0x415bc0))return!0x1;let _0x35520c=_0x4b2faf[_0x7e685b(0xac)](P),_0x210364={'id':_0x7e685b(0xa3)+_0x174d5b(0x6),'unitId':_0x46829b,'subUnitId':_0x415bc0,'axis':_0x4d2d7e['axis'],'start':_0x4d2d7e[_0x7e685b(0xda)],'end':_0x4d2d7e[_0x7e685b(0xec)],'collapsed':!0x1},_0x2c0813=_0x4d2d7e[_0x7e685b(0x10c)]==='row'?_0x2e2bb8[_0x7e685b(0xe0)]():_0x2e2bb8[_0x7e685b(0xa9)](),_0x13d5d3=_0x35520c[_0x7e685b(0x7a)](_0x46829b,_0x415bc0),_0x87e767=Se(_0x13d5d3,_0x210364),_0x266065=(_0x87e767==null?void 0x0:_0x87e767[_0x7e685b(0x96)])??[],_0x323635=(_0x87e767==null?void 0x0:_0x87e767[_0x7e685b(0x102)])??_0x210364,_0x636b3a=E(_0x87e767?_0x13d5d3[_0x7e685b(0xa4)](_0xc59243=>!_0x266065['some'](_0x14dc6a=>_0x14dc6a['id']===_0xc59243['id'])):_0x13d5d3,_0x323635,{'maxIndex':_0x2c0813});if(!_0x636b3a['valid'])return _0x4b2faf[_0x7e685b(0xac)](F)[_0x7e685b(0x76)]({'reason':_0x636b3a[_0x7e685b(0xb7)]??'unknown','commandId':z['id'],'unitId':_0x46829b,'subUnitId':_0x415bc0,'axis':_0x4d2d7e[_0x7e685b(0x10c)],'outlineId':_0x323635['id']}),!0x1;let _0xa4601c=[..._0x266065[_0x7e685b(0x115)](_0x35c38c=>({'id':L['id'],'params':{'unitId':_0x46829b,'subUnitId':_0x415bc0,'outlineId':_0x35c38c['id']}})),{'id':I['id'],'params':{'unitId':_0x46829b,'subUnitId':_0x415bc0,'outline':_0x323635}}],_0x29a42b=[{'id':L['id'],'params':{'unitId':_0x46829b,'subUnitId':_0x415bc0,'outlineId':_0x323635['id']}},..._0x266065[_0x7e685b(0x115)](_0x120e01=>({'id':I['id'],'params':{'unitId':_0x46829b,'subUnitId':_0x415bc0,'outline':_0x120e01}}))];return _0x86848(_0xa4601c,_0x4b2faf[_0x7e685b(0xac)](_0x71ae52))[_0x7e685b(0xbe)]?(_0x4b2faf[_0x7e685b(0xac)](_0x8bf480)[_0x7e685b(0xef)]({'unitID':_0x46829b,'undoMutations':_0x29a42b,'redoMutations':_0xa4601c}),!0x0):!0x1;}},B={'id':_0x3bf8d5(0x81),'type':_0x2c52c8['MUTATION'],'handler':(_0x280a74,_0x54a8fa)=>{const _0x2d4783=_0x3bf8d5;let _0x4e2e7f=_0x280a74['get'](P),_0x4a0086=_0x4e2e7f[_0x2d4783(0x7a)](_0x54a8fa[_0x2d4783(0xaa)],_0x54a8fa[_0x2d4783(0xc2)]);return _0x4e2e7f[_0x2d4783(0x7c)](_0x54a8fa[_0x2d4783(0xaa)],_0x54a8fa['subUnitId'],Ce(_0x4a0086,_0x54a8fa)),!0x0;}},V={'id':_0x3bf8d5(0xe7),'type':_0x2c52c8[_0x3bf8d5(0xc8)],'handler':(_0x3660c6,_0x2f5ba1)=>{const _0x103b44=_0x3bf8d5;if(!_0x2f5ba1)return!0x1;let _0x30141c=_0x317f2a(_0x3660c6['get'](_0x957178),_0x2f5ba1);if(!_0x30141c)return!0x1;let {unitId:_0x320615,subUnitId:_0x165413}=_0x30141c;if(!R(_0x3660c6,_0x320615,_0x165413))return!0x1;let _0x57f457={'unitId':_0x320615,'subUnitId':_0x165413,'axis':_0x2f5ba1[_0x103b44(0x10c)],'start':_0x2f5ba1['start'],'end':_0x2f5ba1[_0x103b44(0xec)]},_0x650ef5=_0x3660c6[_0x103b44(0xac)](P)[_0x103b44(0x7a)](_0x320615,_0x165413)[_0x103b44(0xa4)](_0x2c9426=>w(_0x2c9426,_0x57f457)&&_0x2c9426['start']>=_0x2f5ba1[_0x103b44(0xda)]&&_0x2c9426[_0x103b44(0xec)]<=_0x2f5ba1[_0x103b44(0xec)]);if(_0x650ef5[_0x103b44(0xd7)]===0x0)return _0x3660c6[_0x103b44(0xac)](F)['emit']({'reason':'clear-range-not-contain-outline','commandId':V['id'],'unitId':_0x320615,'subUnitId':_0x165413,'axis':_0x2f5ba1['axis']}),!0x1;let _0x2896f7=[{'id':B['id'],'params':{..._0x57f457,'removedOutlineIds':_0x650ef5[_0x103b44(0x115)](_0x3a4674=>_0x3a4674['id'])}}],_0x46e0f1=_0x650ef5[_0x103b44(0x115)](_0xe9dd76=>({'id':I['id'],'params':{'unitId':_0x320615,'subUnitId':_0x165413,'outline':_0xe9dd76}}));return _0x86848(_0x2896f7,_0x3660c6['get'](_0x71ae52))[_0x103b44(0xbe)]?(_0x3660c6[_0x103b44(0xac)](_0x8bf480)[_0x103b44(0xef)]({'unitID':_0x320615,'undoMutations':_0x46e0f1,'redoMutations':_0x2896f7}),!0x0):!0x1;}},ze={'id':_0x3bf8d5(0x83),'type':_0x2c52c8['COMMAND'],'handler':(_0x2761ca,_0x2ef9db)=>{const _0x513418=_0x3bf8d5;if(!_0x2ef9db)return!0x1;let _0x5def87=_0x317f2a(_0x2761ca[_0x513418(0xac)](_0x957178),_0x2ef9db);if(!_0x5def87)return!0x1;let {unitId:_0x2e9894,subUnitId:_0x43bfdd}=_0x5def87;if(!R(_0x2761ca,_0x2e9894,_0x43bfdd))return!0x1;let _0x2afd83=_0x2761ca[_0x513418(0xac)](P)[_0x513418(0x7a)](_0x2e9894,_0x43bfdd)['find'](_0x3f7e54=>_0x3f7e54['id']===_0x2ef9db['outlineId']);if(!_0x2afd83)return!0x1;let _0x2fc185=[{'id':L['id'],'params':{'unitId':_0x2e9894,'subUnitId':_0x43bfdd,'outlineId':_0x2afd83['id'],'outline':_0x2afd83}}],_0x266989=[{'id':I['id'],'params':{'unitId':_0x2e9894,'subUnitId':_0x43bfdd,'outline':_0x2afd83}}];return _0x86848(_0x2fc185,_0x2761ca[_0x513418(0xac)](_0x71ae52))[_0x513418(0xbe)]?(_0x2761ca[_0x513418(0xac)](_0x8bf480)[_0x513418(0xef)]({'unitID':_0x2e9894,'undoMutations':_0x266989,'redoMutations':_0x2fc185}),!0x0):!0x1;}},H={'id':_0x3bf8d5(0xbd),'type':_0x2c52c8['MUTATION'],'handler':(_0x44cf64,_0x13a2cb)=>{const _0xfe0d59=_0x3bf8d5;let _0x3d9e83=_0x44cf64[_0xfe0d59(0xac)](P),_0x1d5438=_0x3d9e83[_0xfe0d59(0x7a)](_0x13a2cb[_0xfe0d59(0xaa)],_0x13a2cb[_0xfe0d59(0xc2)]),_0x134190=_0x1d5438[_0xfe0d59(0x109)](_0x3541c8=>_0x3541c8['id']===_0x13a2cb[_0xfe0d59(0xe2)]);return _0x134190&&_0x3d9e83[_0xfe0d59(0x7c)](_0x13a2cb[_0xfe0d59(0xaa)],_0x13a2cb[_0xfe0d59(0xc2)],_0x1d5438[_0xfe0d59(0x115)](_0x4fcb6e=>_0x4fcb6e['unitId']!==_0x134190[_0xfe0d59(0xaa)]||_0x4fcb6e[_0xfe0d59(0xc2)]!==_0x134190['subUnitId']||_0x4fcb6e['axis']!==_0x134190[_0xfe0d59(0x10c)]||_0x4fcb6e['start']!==_0x134190['start']||_0x4fcb6e['end']!==_0x134190['end']?_0x4fcb6e:{..._0x4fcb6e,'collapsed':_0x13a2cb['collapsed']})),!0x0;}};function Be(_0xa2eb68,_0x3661bc,_0x4a06d3,_0x1198f5){const _0x4eed2a=_0x3bf8d5;return _0xa2eb68===_0x4eed2a(0xa2)?{'startRow':_0x3661bc,'endRow':_0x4a06d3,'startColumn':0x0,'endColumn':_0x1198f5[_0x4eed2a(0xe1)]()-0x1}:{'startRow':0x0,'endRow':_0x1198f5['getRowCount']()-0x1,'startColumn':_0x3661bc,'endColumn':_0x4a06d3};}function Ve(_0x187f0b){const _0x51727a=_0x3bf8d5;return _0x187f0b===_0x51727a(0xa2)?_0x5c8cde['id']:_0x2f4f69['id'];}function He(_0x1e136c){const _0x3b0364=_0x3bf8d5;return _0x1e136c===_0x3b0364(0xa2)?_0x4596c5['id']:_0xf79dda['id'];}function Ue(_0x35c1c0,_0x576b22,_0x983b5e,_0x24e49f){const _0x19726f=_0x3bf8d5;let _0x587339=_0x576b22?[Be(_0x35c1c0['axis'],_0x35c1c0[_0x19726f(0xda)],_0x35c1c0[_0x19726f(0xec)],_0x983b5e)]:We(_0x35c1c0,_0x24e49f,_0x983b5e),_0xeb2b54=_0x576b22?Ve(_0x35c1c0['axis']):He(_0x35c1c0['axis']);return[{'id':H['id'],'params':{'unitId':_0x35c1c0[_0x19726f(0xaa)],'subUnitId':_0x35c1c0['subUnitId'],'outlineId':_0x35c1c0['id'],'outline':_0x35c1c0,'collapsed':_0x576b22}},..._0x587339[_0x19726f(0x115)](_0x3f5818=>({'id':_0xeb2b54,'params':{'unitId':_0x35c1c0['unitId'],'subUnitId':_0x35c1c0[_0x19726f(0xc2)],'ranges':[_0x3f5818],'dimensionOutlineId':_0x35c1c0['id']}}))];}function We(_0x25e2c2,_0x3754d6,_0x594fd8){const _0x69b6e4=_0x3bf8d5;let _0x5a8573=we(_0x3754d6['map'](_0x345cf6=>Ge(_0x345cf6,_0x25e2c2)?{..._0x345cf6,'collapsed':!0x1}:_0x345cf6),_0x25e2c2[_0x69b6e4(0xaa)],_0x25e2c2['subUnitId'],_0x25e2c2[_0x69b6e4(0x10c)]);return Ke({'start':_0x25e2c2[_0x69b6e4(0xda)],'end':_0x25e2c2['end']},_0x5a8573)[_0x69b6e4(0x115)](_0x2c5c8e=>Be(_0x25e2c2['axis'],_0x2c5c8e['start'],_0x2c5c8e[_0x69b6e4(0xec)],_0x594fd8));}function Ge(_0x1bfdd9,_0x10de85){const _0x31a7ea=_0x3bf8d5;return _0x1bfdd9[_0x31a7ea(0xaa)]===_0x10de85['unitId']&&_0x1bfdd9['subUnitId']===_0x10de85[_0x31a7ea(0xc2)]&&_0x1bfdd9[_0x31a7ea(0x10c)]===_0x10de85[_0x31a7ea(0x10c)]&&_0x1bfdd9['start']===_0x10de85['start']&&_0x1bfdd9[_0x31a7ea(0xec)]===_0x10de85[_0x31a7ea(0xec)];}function Ke(_0x157005,_0x52e996){const _0x36bdf9=_0x3bf8d5;let _0x4f54e6=_0x157005[_0x36bdf9(0xda)],_0x3829aa=[];for(let _0x5443c7 of _0x52e996)if(!(_0x5443c7[_0x36bdf9(0xec)]<_0x4f54e6||_0x5443c7[_0x36bdf9(0xda)]>_0x157005['end'])&&(_0x5443c7[_0x36bdf9(0xda)]>_0x4f54e6&&_0x3829aa['push']({'start':_0x4f54e6,'end':Math['min'](_0x5443c7[_0x36bdf9(0xda)]-0x1,_0x157005[_0x36bdf9(0xec)])}),_0x4f54e6=Math[_0x36bdf9(0xf0)](_0x4f54e6,_0x5443c7[_0x36bdf9(0xec)]+0x1),_0x4f54e6>_0x157005[_0x36bdf9(0xec)]))break;return _0x4f54e6<=_0x157005[_0x36bdf9(0xec)]&&_0x3829aa[_0x36bdf9(0xd1)]({'start':_0x4f54e6,'end':_0x157005[_0x36bdf9(0xec)]}),_0x3829aa;}const qe={'id':_0x3bf8d5(0x90),'type':_0x2c52c8[_0x3bf8d5(0xc8)],'handler':(_0x4c1914,_0x6d0403)=>{const _0x251026=_0x3bf8d5;if(!_0x6d0403)return!0x1;let _0x1fb59d=_0x317f2a(_0x4c1914[_0x251026(0xac)](_0x957178),_0x6d0403);if(!_0x1fb59d)return!0x1;let {unitId:_0x180eb9,subUnitId:_0x306ca0,worksheet:_0x28ad2c}=_0x1fb59d;if(!R(_0x4c1914,_0x180eb9,_0x306ca0))return!0x1;let _0x29080f=_0x4c1914[_0x251026(0xac)](P)[_0x251026(0x7a)](_0x180eb9,_0x306ca0),_0x24ea66=_0x29080f[_0x251026(0x109)](_0x4c7216=>_0x4c7216['id']===_0x6d0403[_0x251026(0xe2)]);if(!_0x24ea66||_0x24ea66[_0x251026(0x93)]===_0x6d0403['collapsed'])return!0x1;let _0x5304ec=Ue(_0x24ea66,_0x6d0403['collapsed'],_0x28ad2c,_0x29080f),_0x13ba1b=Ue(_0x24ea66,!_0x6d0403[_0x251026(0x93)],_0x28ad2c,_0x29080f);return _0x86848(_0x5304ec,_0x4c1914[_0x251026(0xac)](_0x71ae52))[_0x251026(0xbe)]?(_0x4c1914[_0x251026(0xac)](_0x8bf480)[_0x251026(0xef)]({'unitID':_0x180eb9,'undoMutations':_0x13ba1b,'redoMutations':_0x5304ec}),!0x0):!0x1;}},U={'id':_0x3bf8d5(0x10a),'type':_0x2c52c8[_0x3bf8d5(0xb8)],'handler':(_0x5cedeb,_0x5f1ce2)=>{const _0x3ed4d0=_0x3bf8d5;let _0x8e3b88=_0x5cedeb[_0x3ed4d0(0xac)](P),_0x2ad403=Je(_0x8e3b88['getOutlines'](_0x5f1ce2['unitId'],_0x5f1ce2['subUnitId']),_0x5f1ce2);return _0x8e3b88['setOutlines'](_0x5f1ce2[_0x3ed4d0(0xaa)],_0x5f1ce2[_0x3ed4d0(0xc2)],_0x2ad403),!0x0;}};function Je(_0x9a8326,_0x540d1d){const _0x18479c=_0x3bf8d5;switch(_0x540d1d['type']){case _0x18479c(0xb3):return _0x540d1d['restoreOutlines']?Ye(_0x9a8326,_0x540d1d):D(_0x9a8326,_0x540d1d);case _0x18479c(0xbc):return O(_0x9a8326,_0x540d1d);case _0x18479c(0xf4):return k(_0x9a8326,_0x540d1d);}}function _0x3757(){const _0x1c5a9f=['min','find','sheet.mutation.transform-dimension-outlines','next','axis','offset','_configService','Invalid\x20dimension\x20outline\x20mutation','forEach','MAX_DEPTH','1229427PVIPkb','version','setConfig','map','getUnit','from','function','serialize','range','_sheetsOutlineErrorService','1053KXmKPb','pop','emit','_ensureUnitOutlines','params','_injector','getOutlines','sort','setOutlines','@univerjs-pro/sheets-outline','children','removeUnit','_error$','sheet.mutation.clear-dimension-outlines','_initResource','sheet.command.remove-dimension-outline','1RPdbfs','count','type','localeCompare','endRow','outline','2570IRdjvz','getCurrentUnitOfType','sourceEnd','_change$','complete','object','sheet.command.set-dimension-outline-collapsed','set','packageName','collapsed','Invalid\x20dimension\x20outline\x20move\x20source\x20range','ROW','mergedOutlines','DimensionOutlineError','fromRange','CROSSING','12423TMFzop','INVALID_RANGE','_sheetInterceptorService','values','8724IPeiYI','_config','Invalid\x20outline\x20range','_sheetsOutlineModel','row','dimension-outline-','filter','registerPluginResource','restoreOutlines','_commandService','getUnitId','getColumnCount','unitId','defineProperty','get','sheets-outline.config','change$','OUT_OF_BOUNDS','sourceStart','UNIVER_SHEET','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','insert','_initCommandInterceptor','32fGHBrE','_resourceManagerService','reason','MUTATION','parse','string','split','delete','sheet.mutation.set-dimension-outline-collapsed','result','_initRegisterCommand','decorate','getOwnPropertyDescriptor','subUnitId','stringify','onStarting','sheet.mutation.remove-dimension-outline','startRow','Move\x20would\x20split\x20dimension\x20outline:\x20','COMMAND','has','some','disposeWithMe','column','registerCommand','call','endColumn','crossing','push','dispose','1949955fKlUlX','name','move-splits-outline','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','length','invalid-range','1095426xVqufe','start','max-depth','iterator','_outlines','permissionCheckWithoutRange','outlineList','getRowCount','getMaxColumns','outlineId','unknown','_univerInstanceService','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','depth','sheet.command.clear-dimension-outlines','asObservable','symbol','message','toPrimitive','end','1.0.0-beta.2','includes','pushUndoRedo','max','COLUMN','deserialize','400RUfhru','move','sheet.command.add-dimension-outline','startColumn','50352cwcALq','_getCommandScope','getSheetBySheetId','index','2093lfsFlz','19162zOysMg','preRedos','toRange','clear','getActiveSheet','permissionPointUpdate$','mergedOutline','destinationIndex','split\x20dimension\x20outline','add','invalid-dimension-outline','out-of-bounds'];_0x3757=function(){return _0x1c5a9f;};return _0x3757();}function Ye(_0x12b836,_0x34ec4c){const _0x2cbd79=_0x3bf8d5;return[..._0x12b836[_0x2cbd79(0xa4)](_0x10884d=>_0x10884d['unitId']!==_0x34ec4c[_0x2cbd79(0xaa)]||_0x10884d[_0x2cbd79(0xc2)]!==_0x34ec4c['subUnitId']||_0x10884d[_0x2cbd79(0x10c)]!==_0x34ec4c[_0x2cbd79(0x10c)]),..._0x34ec4c[_0x2cbd79(0xa6)]];}const W='SHEET_OUTLINE_PLUGIN';var Xe=_0x3bf8d5(0x7d),Ze=_0x3bf8d5(0xed);const Qe={};function G(_0x20f0ef,_0x317afa){return function(_0x22c42b,_0x5ecb83){_0x317afa(_0x22c42b,_0x5ecb83,_0x20f0ef);};}function K(_0x37fd17,_0x1d4e42,_0x5beab6,_0x3f376c){const _0x1b4f72=_0x3bf8d5;var _0x1dfdbe=arguments[_0x1b4f72(0xd7)],_0x22a4d7=_0x1dfdbe<0x3?_0x1d4e42:_0x3f376c===null?_0x3f376c=Object[_0x1b4f72(0xc1)](_0x1d4e42,_0x5beab6):_0x3f376c,_0x5be6c3;if(typeof Reflect==_0x1b4f72(0x8f)&&typeof Reflect[_0x1b4f72(0xc0)]==_0x1b4f72(0x70))_0x22a4d7=Reflect['decorate'](_0x37fd17,_0x1d4e42,_0x5beab6,_0x3f376c);else{for(var _0x2480c5=_0x37fd17[_0x1b4f72(0xd7)]-0x1;_0x2480c5>=0x0;_0x2480c5--)(_0x5be6c3=_0x37fd17[_0x2480c5])&&(_0x22a4d7=(_0x1dfdbe<0x3?_0x5be6c3(_0x22a4d7):_0x1dfdbe>0x3?_0x5be6c3(_0x1d4e42,_0x5beab6,_0x22a4d7):_0x5be6c3(_0x1d4e42,_0x5beab6))||_0x22a4d7);}return _0x1dfdbe>0x3&&_0x22a4d7&&Object[_0x1b4f72(0xab)](_0x1d4e42,_0x5beab6,_0x22a4d7),_0x22a4d7;}const q={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let J=class extends _0x398395{constructor(_0x2ee73c,_0x4ec210,_0x37cb31,_0x1a70bb){const _0xffeb70=_0x3bf8d5;super(),this[_0xffeb70(0xe4)]=_0x2ee73c,this[_0xffeb70(0x9c)]=_0x4ec210,this[_0xffeb70(0xa1)]=_0x37cb31,this[_0xffeb70(0x73)]=_0x1a70bb,this[_0xffeb70(0xb4)]();}[_0x3bf8d5(0xb4)](){const _0xedf3a3=_0x3bf8d5;this[_0xedf3a3(0xcb)](this[_0xedf3a3(0x9c)]['interceptCommand']({'getMutations':_0x3bed59=>$e(_0x3bed59,(_0x141ca0,_0x43ecae)=>this[_0xedf3a3(0xa1)][_0xedf3a3(0x7a)](_0x141ca0,_0x43ecae),this[_0xedf3a3(0xf8)](_0x3bed59['params']),_0x2b8aa3=>this[_0xedf3a3(0x73)][_0xedf3a3(0x76)](_0x2b8aa3))}));}[_0x3bf8d5(0xf8)](_0x2034c2){const _0x49ecf5=_0x3bf8d5;let _0x2d05dd=_0x2034c2,_0x1e6889=_0x2d05dd!=null&&_0x2d05dd[_0x49ecf5(0xaa)]?this[_0x49ecf5(0xe4)][_0x49ecf5(0x6e)](_0x2d05dd['unitId'],_0x570645[_0x49ecf5(0xb1)]):this[_0x49ecf5(0xe4)][_0x49ecf5(0x8b)](_0x570645[_0x49ecf5(0xb1)]);if(!_0x1e6889)return;let _0x330ac9=_0x2d05dd!=null&&_0x2d05dd[_0x49ecf5(0xc2)]?_0x1e6889[_0x49ecf5(0xf9)](_0x2d05dd[_0x49ecf5(0xc2)]):_0x1e6889[_0x49ecf5(0x100)]();if(_0x330ac9)return{'unitId':_0x1e6889[_0x49ecf5(0xa8)](),'subUnitId':_0x330ac9['getSheetId']()};}};J=K([G(0x0,_0x957178),G(0x1,_0x540b44(_0x26654b)),G(0x2,_0x540b44(P)),G(0x3,_0x540b44(F))],J);function $e(_0x2efddd,_0x1f236e,_0x31bbb1,_0x2cc271){const _0x400d0b=_0x3bf8d5;let _0x767652=tt(_0x2efddd,_0x31bbb1);if(!_0x767652)return Z();let _0x53ede5=_0x1f236e(_0x767652[_0x400d0b(0xaa)],_0x767652[_0x400d0b(0xc2)]);if(!_0x53ede5[_0x400d0b(0xca)](_0x5266be=>_0x5266be['axis']===_0x767652[_0x400d0b(0x10c)]))return Z();et(_0x53ede5,_0x767652,_0x2efddd['id'],_0x2cc271);let _0x39f539=it(_0x767652,_0x53ede5);return{'redos':[{'id':U['id'],'params':_0x767652}],'undos':[{'id':U['id'],'params':_0x39f539}],'preRedos':[],'preUndos':[]};}function et(_0x4b6b74,_0x3b28eb,_0x5d970d,_0xe98850){const _0xbf7d51=_0x3bf8d5;try{switch(_0x3b28eb[_0xbf7d51(0x86)]){case _0xbf7d51(0xb3):D(_0x4b6b74,_0x3b28eb);break;case _0xbf7d51(0xbc):O(_0x4b6b74,_0x3b28eb);break;case'move':k(_0x4b6b74,_0x3b28eb);break;}}catch(_0x21f5c7){throw _0xe98850==null||_0xe98850({'reason':ye(_0x21f5c7),'commandId':_0x5d970d,'unitId':_0x3b28eb[_0xbf7d51(0xaa)],'subUnitId':_0x3b28eb[_0xbf7d51(0xc2)],'axis':_0x3b28eb['axis'],'outlineId':be(_0x21f5c7)}),new _0x113370(_0x21f5c7 instanceof Error?_0x21f5c7[_0xbf7d51(0xea)]:_0xbf7d51(0x10f));}}function tt(_0x4448d0,_0x1337a6){const _0x26271d=_0x3bf8d5;switch(_0x4448d0['id']){case _0x378372['id']:return Y(_0x4448d0['params'],_0x26271d(0xa2),_0x1337a6);case _0x19faba['id']:return Y(_0x4448d0[_0x26271d(0x78)],_0x26271d(0xcc),_0x1337a6);case _0x457460['id']:return nt(_0x4448d0[_0x26271d(0x78)],_0x26271d(0xa2),_0x1337a6);case _0x567c44['id']:return nt(_0x4448d0[_0x26271d(0x78)],_0x26271d(0xcc),_0x1337a6);case _0x2e6d17['id']:return rt(_0x4448d0['params'],_0x26271d(0xa2),_0x1337a6);case _0x203553['id']:return rt(_0x4448d0[_0x26271d(0x78)],_0x26271d(0xcc),_0x1337a6);default:return null;}}function Y(_0x30c344,_0x4e5899,_0x5f45ef){const _0x516e93=_0x3bf8d5;let _0x1bbc71=X(_0x30c344,_0x5f45ef);if(!(_0x30c344!=null&&_0x30c344['range'])||!_0x1bbc71)return null;let _0x331f8f=_0x4e5899===_0x516e93(0xa2)?_0x30c344['range'][_0x516e93(0xc6)]:_0x30c344['range'][_0x516e93(0xf6)],_0x212c59=_0x4e5899==='row'?_0x30c344[_0x516e93(0x72)][_0x516e93(0x88)]:_0x30c344['range'][_0x516e93(0xcf)];return{..._0x1bbc71,'axis':_0x4e5899,'type':'insert','index':_0x331f8f,'count':_0x212c59-_0x331f8f+0x1};}function nt(_0x3e70b5,_0x274afe,_0x675fe4){const _0x8a64f3=_0x3bf8d5;let _0x49fcbc=X(_0x3e70b5,_0x675fe4);if(!(_0x3e70b5!=null&&_0x3e70b5[_0x8a64f3(0x72)])||!_0x49fcbc)return null;let _0x5580b1=_0x274afe===_0x8a64f3(0xa2)?_0x3e70b5['range']['startRow']:_0x3e70b5['range'][_0x8a64f3(0xf6)],_0x159392=_0x274afe===_0x8a64f3(0xa2)?_0x3e70b5['range'][_0x8a64f3(0x88)]:_0x3e70b5[_0x8a64f3(0x72)][_0x8a64f3(0xcf)];return{..._0x49fcbc,'axis':_0x274afe,'type':_0x8a64f3(0xbc),'start':_0x5580b1,'end':_0x159392};}function rt(_0x1133b4,_0x39c05d,_0x5f15d1){const _0x500883=_0x3bf8d5;let _0x332191=X(_0x1133b4,_0x5f15d1);if(!(_0x1133b4!=null&&_0x1133b4['fromRange'])||!_0x1133b4[_0x500883(0xfe)]||!_0x332191)return null;let _0x410a6d=_0x39c05d===_0x500883(0xa2)?_0x1133b4['fromRange'][_0x500883(0xc6)]:_0x1133b4[_0x500883(0x98)][_0x500883(0xf6)],_0x15f0c3=_0x39c05d===_0x500883(0xa2)?_0x1133b4[_0x500883(0x98)][_0x500883(0x88)]:_0x1133b4[_0x500883(0x98)][_0x500883(0xcf)],_0x268972=_0x39c05d==='row'?_0x1133b4[_0x500883(0xfe)][_0x500883(0xc6)]:_0x1133b4[_0x500883(0xfe)]['startColumn'];return{..._0x332191,'axis':_0x39c05d,'type':_0x500883(0xf4),'sourceStart':_0x410a6d,'sourceEnd':_0x15f0c3,'destinationIndex':_0x268972};}function it(_0x165b05,_0x382eb5){const _0x2f64af=_0x3bf8d5;switch(_0x165b05[_0x2f64af(0x86)]){case _0x2f64af(0xb3):return{'unitId':_0x165b05['unitId'],'subUnitId':_0x165b05[_0x2f64af(0xc2)],'axis':_0x165b05[_0x2f64af(0x10c)],'type':_0x2f64af(0xbc),'start':_0x165b05[_0x2f64af(0xfa)],'end':_0x165b05[_0x2f64af(0xfa)]+_0x165b05['count']-0x1};case'delete':return{'unitId':_0x165b05[_0x2f64af(0xaa)],'subUnitId':_0x165b05['subUnitId'],'axis':_0x165b05[_0x2f64af(0x10c)],'type':'insert','index':_0x165b05[_0x2f64af(0xda)],'count':_0x165b05['end']-_0x165b05[_0x2f64af(0xda)]+0x1,'restoreOutlines':_0x382eb5[_0x2f64af(0xa4)](_0x13556f=>_0x13556f[_0x2f64af(0xaa)]===_0x165b05[_0x2f64af(0xaa)]&&_0x13556f[_0x2f64af(0xc2)]===_0x165b05['subUnitId']&&_0x13556f[_0x2f64af(0x10c)]===_0x165b05[_0x2f64af(0x10c)])};case _0x2f64af(0xf4):return at(_0x165b05);}}function at(_0x40af91){const _0x154c10=_0x3bf8d5;let _0x23b3c9=_0x40af91[_0x154c10(0x8c)]-_0x40af91[_0x154c10(0xb0)]+0x1;return _0x40af91[_0x154c10(0x103)]>=_0x40af91['sourceStart']&&_0x40af91[_0x154c10(0x103)]<=_0x40af91['sourceEnd']+0x1?{..._0x40af91}:_0x40af91['destinationIndex']>_0x40af91[_0x154c10(0x8c)]+0x1?{..._0x40af91,'sourceStart':_0x40af91[_0x154c10(0x103)]-_0x23b3c9,'sourceEnd':_0x40af91[_0x154c10(0x103)]-0x1,'destinationIndex':_0x40af91[_0x154c10(0xb0)]}:{..._0x40af91,'sourceStart':_0x40af91['destinationIndex'],'sourceEnd':_0x40af91['destinationIndex']+_0x23b3c9-0x1,'destinationIndex':_0x40af91['sourceEnd']+0x1};}function X(_0xb22008,_0x28bfe6){const _0x42f0b2=_0x3bf8d5;let _0x37ea99=(_0xb22008==null?void 0x0:_0xb22008[_0x42f0b2(0xaa)])??(_0x28bfe6==null?void 0x0:_0x28bfe6['unitId']),_0x523317=(_0xb22008==null?void 0x0:_0xb22008[_0x42f0b2(0xc2)])??(_0x28bfe6==null?void 0x0:_0x28bfe6[_0x42f0b2(0xc2)]);return _0x37ea99&&_0x523317?{'unitId':_0x37ea99,'subUnitId':_0x523317}:null;}function Z(){const _0x2120da=_0x3bf8d5;return{'redos':[...q['redos']],'undos':[...q['undos']],'preRedos':[...q[_0x2120da(0xfd)]??[]],'preUndos':[...q['preUndos']??[]]};}let Q=class extends _0x398395{constructor(_0x50fe00,_0x5c6137){const _0x82c448=_0x3bf8d5;super(),this[_0x82c448(0xb6)]=_0x50fe00,this[_0x82c448(0xa1)]=_0x5c6137,this[_0x82c448(0x82)]();}[_0x3bf8d5(0x82)](){const _0x4ddf62=_0x3bf8d5;this[_0x4ddf62(0xcb)](this[_0x4ddf62(0xb6)][_0x4ddf62(0xa5)]({'pluginName':W,'businesses':[_0x570645[_0x4ddf62(0xb1)]],'toJson':_0x4c8a15=>JSON[_0x4ddf62(0xc3)](this['_sheetsOutlineModel'][_0x4ddf62(0x71)](_0x4c8a15)),'parseJson':_0x3da4a6=>JSON[_0x4ddf62(0xb9)](_0x3da4a6),'onLoad':(_0x5f4b67,_0x13959a)=>this['_sheetsOutlineModel'][_0x4ddf62(0xf2)](_0x5f4b67,_0x13959a),'onUnLoad':_0x5b5454=>this[_0x4ddf62(0xa1)][_0x4ddf62(0x7f)](_0x5b5454)}));}};Q=K([G(0x0,_0x34f6ba),G(0x1,_0x540b44(P))],Q);let $=class extends _0xd81d88{constructor(_0x360c46=Qe,_0x1c5813,_0x3cce52,_0x2384d0){const _0x4c2430=_0x3bf8d5;super(),this[_0x4c2430(0x9f)]=_0x360c46,this['_injector']=_0x1c5813,this[_0x4c2430(0xa7)]=_0x3cce52,this['_configService']=_0x2384d0;let {..._0x18b8db}=_0x1c15e7({},Qe,this[_0x4c2430(0x9f)]);this[_0x4c2430(0x10e)][_0x4c2430(0x114)](_0x4c2430(0xad),_0x18b8db);}[_0x3bf8d5(0xc4)](){const _0x527e42=_0x3bf8d5;this[_0x527e42(0x79)]['add']([P]),this['_injector'][_0x527e42(0x105)]([F]),this[_0x527e42(0x79)][_0x527e42(0x105)]([Q]),this[_0x527e42(0x79)][_0x527e42(0x105)]([J]),this[_0x527e42(0xbf)](),this[_0x527e42(0x79)]['get'](P),this['_injector'][_0x527e42(0xac)](F),this[_0x527e42(0x79)][_0x527e42(0xac)](Q),this[_0x527e42(0x79)][_0x527e42(0xac)](J);}[_0x3bf8d5(0xbf)](){const _0x3a2e0b=_0x3bf8d5;[z,ze,qe,V][_0x3a2e0b(0x110)](_0x7f0224=>{const _0x1d121e=_0x3a2e0b;this[_0x1d121e(0xcb)](this[_0x1d121e(0xa7)][_0x1d121e(0xcd)](_0x7f0224));}),[I,L,H,B,U][_0x3a2e0b(0x110)](_0x3a5f4c=>{const _0x5d27bb=_0x3a2e0b;this[_0x5d27bb(0xcb)](this[_0x5d27bb(0xa7)][_0x5d27bb(0xcd)](_0x3a5f4c));});}};N($,'pluginName',W),N($,_0x3bf8d5(0x92),Xe),N($,_0x3bf8d5(0x113),Ze),N($,_0x3bf8d5(0x86),_0x570645['UNIVER_SHEET']),$=K([_0x243a39(_0x1fb203,_0x142600),G(0x1,_0x540b44(_0xde5590)),G(0x2,_0x71ae52),G(0x3,_0x35d06a)],$);export{z as AddDimensionOutlineCommand,I as AddDimensionOutlineMutation,V as ClearDimensionOutlinesCommand,B as ClearDimensionOutlinesMutation,_e as DimensionOutlineAxis,ve as DimensionOutlineErrorReason,ze as RemoveDimensionOutlineCommand,L as RemoveDimensionOutlineMutation,W as SHEET_OUTLINE_PLUGIN,qe as SetDimensionOutlineCollapsedCommand,H as SetDimensionOutlineCollapsedMutation,F as SheetsOutlineErrorService,P as SheetsOutlineModel,U as TransformDimensionOutlinesMutation,$ as UniverSheetsOutlinePlugin,T as buildDimensionOutlineTree,E as canAddDimensionOutline,Ie as getDimensionOutlineViewPermission$,R as hasDimensionOutlineViewPermission,O as transformOutlinesByDelete,D as transformOutlinesByInsert,k as transformOutlinesByMove};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0xb8f2d,_0x537494){var _0x1601e9=_0x223d,_0x2093fc=_0xb8f2d();while(!![]){try{var _0x27a1b5=-parseInt(_0x1601e9(0x107))/0x1*(-parseInt(_0x1601e9(0x118))/0x2)+-parseInt(_0x1601e9(0x121))/0x3*(-parseInt(_0x1601e9(0x10b))/0x4)+-parseInt(_0x1601e9(0x104))/0x5*(-parseInt(_0x1601e9(0x101))/0x6)+-parseInt(_0x1601e9(0x109))/0x7*(parseInt(_0x1601e9(0x117))/0x8)+-parseInt(_0x1601e9(0x11d))/0x9*(-parseInt(_0x1601e9(0x11b))/0xa)+-parseInt(_0x1601e9(0x113))/0xb+parseInt(_0x1601e9(0xf9))/0xc*(-parseInt(_0x1601e9(0x103))/0xd);if(_0x27a1b5===_0x537494)break;else _0x2093fc['push'](_0x2093fc['shift']());}catch(_0x1e183a){_0x2093fc['push'](_0x2093fc['shift']());}}}(_0x566e,0x87bae),function(_0x311fe2,_0x1d233e){var _0x36be17=_0x223d;typeof exports==_0x36be17(0x11f)&&typeof module<'u'?_0x1d233e(require('@univerjs-pro/sheets-outline'),require('@univerjs/core/facade'),require('@univerjs/sheets/facade')):typeof define=='function'&&define['amd']?define(['@univerjs-pro/sheets-outline',_0x36be17(0xff),'@univerjs/sheets/facade'],_0x1d233e):(_0x311fe2=typeof globalThis<'u'?globalThis:_0x311fe2||self,_0x1d233e(_0x311fe2[_0x36be17(0x10a)],_0x311fe2[_0x36be17(0x10d)],_0x311fe2[_0x36be17(0x10f)]));}(this,function(_0x464d96,_0x3b43fa,_0x5bb4d6){var _0x1b886e=_0x223d,_0x58583a=class extends _0x3b43fa[_0x1b886e(0x119)]{get[_0x1b886e(0x11c)](){var _0x39c9a1=_0x1b886e;return _0x464d96[_0x39c9a1(0x11c)];}get[_0x1b886e(0x114)](){var _0x558213=_0x1b886e;return _0x464d96[_0x558213(0x114)];}};_0x3b43fa[_0x1b886e(0x119)][_0x1b886e(0x102)](_0x58583a);var _0x514a4d=class extends _0x5bb4d6['FWorksheet']{['addRowOutline'](_0x259e8d,_0x41a9cf){var _0x21191c=_0x1b886e;return this[_0x21191c(0x116)](_0x464d96[_0x21191c(0x11c)][_0x21191c(0x100)],_0x259e8d,_0x41a9cf);}['addColumnOutline'](_0x3b3ff9,_0x387f05){var _0x3d28d5=_0x1b886e;return this[_0x3d28d5(0x116)](_0x464d96[_0x3d28d5(0x11c)][_0x3d28d5(0x10c)],_0x3b3ff9,_0x387f05);}[_0x1b886e(0x122)](_0x5b1be7){var _0x4659ed=_0x1b886e;return this[_0x4659ed(0x105)][_0x4659ed(0x106)](_0x464d96[_0x4659ed(0xfe)]['id'],{'unitId':this['_workbook'][_0x4659ed(0x111)](),'subUnitId':this['_worksheet']['getSheetId'](),'outlineId':_0x5b1be7}),this;}[_0x1b886e(0x10e)](_0x4dc149,_0x2c942d){var _0x38dea0=_0x1b886e;return this[_0x38dea0(0x105)][_0x38dea0(0x106)](_0x464d96[_0x38dea0(0x11e)]['id'],{'unitId':this[_0x38dea0(0xfd)]['getUnitId'](),'subUnitId':this[_0x38dea0(0x110)]['getSheetId'](),'outlineId':_0x4dc149,'collapsed':_0x2c942d}),this;}[_0x1b886e(0x112)](_0x47479c,_0x8da177,_0x4a6718){var _0x2c5035=_0x1b886e;return this[_0x2c5035(0x105)][_0x2c5035(0x106)](_0x464d96[_0x2c5035(0xfc)]['id'],{'unitId':this['_workbook'][_0x2c5035(0x111)](),'subUnitId':this['_worksheet']['getSheetId'](),'axis':_0x47479c,'start':_0x8da177,'end':_0x4a6718}),this;}['getDimensionOutlines'](_0x357789){var _0x11fd4b=_0x1b886e;let _0x5a13de=this[_0x11fd4b(0x120)][_0x11fd4b(0xfb)](_0x464d96['SheetsOutlineModel'])['getOutlines'](this[_0x11fd4b(0xfd)][_0x11fd4b(0x111)](),this['_worksheet'][_0x11fd4b(0x115)]());return _0x357789?_0x5a13de[_0x11fd4b(0x108)](_0x5a382f=>_0x5a382f[_0x11fd4b(0x11a)]===_0x357789):_0x5a13de;}[_0x1b886e(0x116)](_0x27747e,_0xb6e6f6,_0x2b0ce0){var _0x48a956=_0x1b886e;return this[_0x48a956(0x105)][_0x48a956(0x106)](_0x464d96[_0x48a956(0xf8)]['id'],{'unitId':this[_0x48a956(0xfd)]['getUnitId'](),'subUnitId':this['_worksheet'][_0x48a956(0x115)](),'axis':_0x27747e,'start':_0xb6e6f6,'end':_0xb6e6f6+_0x2b0ce0-0x1}),this;}};_0x5bb4d6[_0x1b886e(0xfa)][_0x1b886e(0x102)](_0x514a4d);}));function _0x223d(_0x3ed0aa,_0x3d4c79){_0x3ed0aa=_0x3ed0aa-0xf8;var _0x566e55=_0x566e();var _0x223d6b=_0x566e55[_0x3ed0aa];return _0x223d6b;}function _0x566e(){var _0x97f940=['DimensionOutlineAxis','18ynRoSH','SetDimensionOutlineCollapsedCommand','object','_injector','376149JVArPN','removeDimensionOutline','AddDimensionOutlineCommand','7792968CFrONF','FWorksheet','get','ClearDimensionOutlinesCommand','_workbook','RemoveDimensionOutlineCommand','@univerjs/core/facade','ROW','90QWXGqA','extend','13UJkgQK','115925ZTPJdr','_commandService','syncExecuteCommand','1PXOWHa','filter','1778WWJwQe','UniverProSheetsOutline','12mXycFa','COLUMN','UniverCoreFacade','setDimensionOutlineCollapsed','UniverSheetsFacade','_worksheet','getUnitId','clearDimensionOutlines','1551231vZrlhm','DimensionOutlineErrorReason','getSheetId','_addDimensionOutline','31736tQFAUk','2160714jyGAAn','FEnum','axis','2748610rWBXzB'];_0x566e=function(){return _0x97f940;};return _0x566e();}
1
+ function _0x1050(_0x349a76,_0x4f7686){_0x349a76=_0x349a76-0x150;var _0x24fd4d=_0x24fd();var _0x105081=_0x24fd4d[_0x349a76];return _0x105081;}(function(_0x4b72f0,_0x137218){var _0x1335e9=_0x1050,_0x3acd95=_0x4b72f0();while(!![]){try{var _0x574594=parseInt(_0x1335e9(0x16d))/0x1*(parseInt(_0x1335e9(0x165))/0x2)+parseInt(_0x1335e9(0x16c))/0x3+parseInt(_0x1335e9(0x156))/0x4+parseInt(_0x1335e9(0x16a))/0x5+-parseInt(_0x1335e9(0x15c))/0x6+parseInt(_0x1335e9(0x15d))/0x7+-parseInt(_0x1335e9(0x168))/0x8;if(_0x574594===_0x137218)break;else _0x3acd95['push'](_0x3acd95['shift']());}catch(_0x30fc33){_0x3acd95['push'](_0x3acd95['shift']());}}}(_0x24fd,0xf13c9),function(_0x4b1f6f,_0x4f30e7){var _0xe9f914=_0x1050;typeof exports=='object'&&typeof module<'u'?_0x4f30e7(require('@univerjs-pro/sheets-outline'),require('@univerjs/core/facade'),require('@univerjs/sheets/facade')):typeof define==_0xe9f914(0x153)&&define[_0xe9f914(0x169)]?define(['@univerjs-pro/sheets-outline','@univerjs/core/facade','@univerjs/sheets/facade'],_0x4f30e7):(_0x4b1f6f=typeof globalThis<'u'?globalThis:_0x4b1f6f||self,_0x4f30e7(_0x4b1f6f[_0xe9f914(0x16b)],_0x4b1f6f[_0xe9f914(0x151)],_0x4b1f6f[_0xe9f914(0x164)]));}(this,function(_0x443f94,_0xa32e23,_0xaa4a1e){var _0x1c1a18=_0x1050,_0x3c6d2c=class extends _0xa32e23[_0x1c1a18(0x160)]{get[_0x1c1a18(0x16e)](){return _0x443f94['DimensionOutlineAxis'];}get[_0x1c1a18(0x154)](){var _0x49c386=_0x1c1a18;return _0x443f94[_0x49c386(0x154)];}};_0xa32e23['FEnum'][_0x1c1a18(0x158)](_0x3c6d2c);var _0x13615b=class extends _0xaa4a1e[_0x1c1a18(0x152)]{[_0x1c1a18(0x172)](_0x56deaa,_0x47892a){var _0x477f0e=_0x1c1a18;return this[_0x477f0e(0x175)](_0x443f94[_0x477f0e(0x16e)][_0x477f0e(0x170)],_0x56deaa,_0x47892a);}['addColumnOutline'](_0x378583,_0x75836){var _0x4326df=_0x1c1a18;return this[_0x4326df(0x175)](_0x443f94[_0x4326df(0x16e)][_0x4326df(0x163)],_0x378583,_0x75836);}['removeDimensionOutline'](_0x5ccf89){var _0x134f52=_0x1c1a18;return this[_0x134f52(0x173)]['syncExecuteCommand'](_0x443f94['RemoveDimensionOutlineCommand']['id'],{'unitId':this[_0x134f52(0x166)][_0x134f52(0x15a)](),'subUnitId':this['_worksheet'][_0x134f52(0x16f)](),'outlineId':_0x5ccf89}),this;}[_0x1c1a18(0x171)](_0x313e96,_0x3106dd){var _0x161bf9=_0x1c1a18;return this[_0x161bf9(0x173)][_0x161bf9(0x159)](_0x443f94[_0x161bf9(0x155)]['id'],{'unitId':this[_0x161bf9(0x166)][_0x161bf9(0x15a)](),'subUnitId':this[_0x161bf9(0x150)]['getSheetId'](),'outlineId':_0x313e96,'collapsed':_0x3106dd}),this;}[_0x1c1a18(0x167)](_0x2b4f76,_0x25915d,_0x3c6f55){var _0x9ff6d2=_0x1c1a18;return this[_0x9ff6d2(0x173)]['syncExecuteCommand'](_0x443f94[_0x9ff6d2(0x157)]['id'],{'unitId':this[_0x9ff6d2(0x166)][_0x9ff6d2(0x15a)](),'subUnitId':this[_0x9ff6d2(0x150)][_0x9ff6d2(0x16f)](),'axis':_0x2b4f76,'start':_0x25915d,'end':_0x3c6f55}),this;}[_0x1c1a18(0x161)](_0x5f23d9){var _0x2835e3=_0x1c1a18;let _0x392737=this['_injector']['get'](_0x443f94[_0x2835e3(0x15b)])[_0x2835e3(0x15f)](this[_0x2835e3(0x166)][_0x2835e3(0x15a)](),this[_0x2835e3(0x150)]['getSheetId']());return _0x5f23d9?_0x392737[_0x2835e3(0x162)](_0x4fd57e=>_0x4fd57e[_0x2835e3(0x174)]===_0x5f23d9):_0x392737;}[_0x1c1a18(0x175)](_0x2a9a19,_0x265e6f,_0x433014){var _0x280615=_0x1c1a18;return this['_commandService'][_0x280615(0x159)](_0x443f94[_0x280615(0x15e)]['id'],{'unitId':this[_0x280615(0x166)][_0x280615(0x15a)](),'subUnitId':this['_worksheet'][_0x280615(0x16f)](),'axis':_0x2a9a19,'start':_0x265e6f,'end':_0x265e6f+_0x433014-0x1}),this;}};_0xaa4a1e[_0x1c1a18(0x152)][_0x1c1a18(0x158)](_0x13615b);}));function _0x24fd(){var _0x6f7052=['ROW','setDimensionOutlineCollapsed','addRowOutline','_commandService','axis','_addDimensionOutline','_worksheet','UniverCoreFacade','FWorksheet','function','DimensionOutlineErrorReason','SetDimensionOutlineCollapsedCommand','5388256uBByOB','ClearDimensionOutlinesCommand','extend','syncExecuteCommand','getUnitId','SheetsOutlineModel','4996950Dcwcut','10175501EvqaGd','AddDimensionOutlineCommand','getOutlines','FEnum','getDimensionOutlines','filter','COLUMN','UniverSheetsFacade','11226ZzEKwY','_workbook','clearDimensionOutlines','41598064CvbQYg','amd','6567300CoMulH','UniverProSheetsOutline','5772738hOfgoL','175XNQQGX','DimensionOutlineAxis','getSheetId'];_0x24fd=function(){return _0x6f7052;};return _0x24fd();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x49de(_0x49f70c,_0x25b446){_0x49f70c=_0x49f70c-0xe6;const _0xff4ee4=_0xff4e();let _0x49def6=_0xff4ee4[_0x49f70c];return _0x49def6;}function _0xff4e(){const _0x24fa06=['_initRegisterCommand','UniverInstanceType','object','WorksheetViewPermission','insert','depth','unitId','out-of-bounds','crossing','unknown','amd','@univerjs/core','_resourceManagerService','_change$','getOutlines','column','restoreOutlines','maxIndex','toStringTag','max-depth','getActiveSheet','SheetInterceptorService','ROW','get','Module','has','stringify','next','1.0.0-beta.1','values','packageName','UniverCore','toPrimitive','result','SheetPermissionCheckController','_commandService','string','add','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','SheetsOutlineErrorService','move','IUniverInstanceService','row','getUnitOutlines','sheet.mutation.add-dimension-outline','outline','localeCompare','_initCommandInterceptor','rxjs','dimension-outline-','AddDimensionOutlineMutation','set','_univerInstanceService','invalid-range','clear','sourceStart','OUT_OF_BOUNDS','510970BOYUww','sequenceExecute','sort','IResourceManagerService','sheets-outline.config','getSheetCommandTarget','RemoveDimensionOutlineMutation','type','sheet.mutation.transform-dimension-outlines','startRow','defineProperty','UNKNOWN','_sheetInterceptorService','outlineId','onStarting','min','UniverSheets','operators','generateRandomId','split','transformOutlinesByMove','offset','Subject','maxDepth','MUTATION','permissionPointUpdate$','filter','getUnitId','max','WorkbookViewPermission','axis','_config','MOVE_SPLITS_OUTLINE','TransformDimensionOutlinesMutation','startColumn','UniverProLicense','preUndos','Invalid\x20dimension\x20outline\x20move\x20source\x20range','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','AddDimensionOutlineCommand','InsertColCommand','deserialize','delete','reason','preRedos','INVALID_RANGE','params','complete','InsertRowCommand','some','find','exports','RemoveRowCommand','@univerjs-pro/sheets-outline','4298984MTfaGH','push','30EgpjnR','function','change$','UniverProSheetsOutline','sheet.command.set-dimension-outline-collapsed','4xNpVFV','setOutlines','SetColVisibleMutation','MAX_DEPTH','toRange','sheet.mutation.remove-dimension-outline','pop','ICommandService','getSheetBySheetId','count','UniverLicensePlugin','2389404NYloLt','end','join','removeUnit','index','22164RVweIu','merge','getUnit','getDimensionOutlineViewPermission$','DimensionOutlineAxis','move-splits-outline','DimensionOutlineError','SHEET_OUTLINE_PLUGIN','sheet.mutation.clear-dimension-outlines','SetDimensionOutlineCollapsedMutation','message','endColumn','default','CommandType','collapsed','registerCommand','COMMAND','_error$','Disposable','range','218180rQBpqJ','592029WzkJpB','emit','startWith','constructor','Move\x20would\x20split\x20dimension\x20outline:\x20','_initResource','UniverSheetsOutlinePlugin','_injector','sourceEnd','sheet.command.clear-dimension-outlines','setConfig','forEach','map','IUndoRedoService','call','serialize','IPermissionService','Crossing','901467kEfzqU','pluginName','CROSSING','@univerjs/sheets','buildDimensionOutlineTree','sheet.command.add-dimension-outline','_sheetsOutlineModel','_ensureUnitOutlines','Invalid\x20outline\x20range','subUnitId','hasDimensionOutlineViewPermission','UNIVER_SHEET','permissionCheckWithoutRange','Invalid\x20dimension\x20outline\x20mutation','Inject','_configService','RemoveDimensionOutlineCommand','getOwnPropertyDescriptor','start','pushUndoRedo','dispose','destinationIndex','SetRowVisibleMutation','prototype','symbol','iterator','fromRange','includes','transformOutlinesByDelete','9CGCOhj','decorate','sheet.mutation.set-dimension-outline-collapsed','getColumnCount','debounceTime','clear-range-not-contain-outline','length','Plugin','version','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','_sheetsOutlineErrorService','disposeWithMe','@univerjs-pro/license','mergedOutline','DimensionOutlineErrorReason','_getCommandScope','asObservable','_outlines','endRow','from','SheetsOutlineModel','redos'];_0xff4e=function(){return _0x24fa06;};return _0xff4e();}(function(_0x5a7fa1,_0x245e37){const _0x5cc7a8=_0x49de,_0x1e26ef=_0x5a7fa1();while(!![]){try{const _0xf0b80a=-parseInt(_0x5cc7a8(0x108))/0x1*(-parseInt(_0x5cc7a8(0xf3))/0x2)+parseInt(_0x5cc7a8(0x11d))/0x3*(parseInt(_0x5cc7a8(0xf8))/0x4)+-parseInt(_0x5cc7a8(0x11c))/0x5+parseInt(_0x5cc7a8(0x103))/0x6+-parseInt(_0x5cc7a8(0x12f))/0x7+-parseInt(_0x5cc7a8(0xf1))/0x8*(parseInt(_0x5cc7a8(0x14c))/0x9)+parseInt(_0x5cc7a8(0x19b))/0xa;if(_0xf0b80a===_0x245e37)break;else _0x1e26ef['push'](_0x1e26ef['shift']());}catch(_0x1d0a06){_0x1e26ef['push'](_0x1e26ef['shift']());}}}(_0xff4e,0x41c20),function(_0xd04c69,_0x1540fb){const _0x2d9d7f=_0x49de;typeof exports==_0x2d9d7f(0x164)&&typeof module<'u'?_0x1540fb(exports,require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs-pro/license')):typeof define=='function'&&define[_0x2d9d7f(0x16c)]?define([_0x2d9d7f(0xee),_0x2d9d7f(0x16d),_0x2d9d7f(0x132),_0x2d9d7f(0x192),'rxjs/operators',_0x2d9d7f(0x158)],_0x1540fb):(_0xd04c69=typeof globalThis<'u'?globalThis:_0xd04c69||self,_0x1540fb(_0xd04c69[_0x2d9d7f(0xf6)]={},_0xd04c69[_0x2d9d7f(0x181)],_0xd04c69[_0x2d9d7f(0x1ab)],_0xd04c69[_0x2d9d7f(0x192)],_0xd04c69[_0x2d9d7f(0x192)][_0x2d9d7f(0x1ac)],_0xd04c69[_0x2d9d7f(0x1be)]));}(this,function(_0x142619,_0x4d1876,_0x558706,_0x42aa71,_0x11a575,_0x12905f){const _0x16ae05=_0x49de;Object[_0x16ae05(0x1a5)](_0x142619,Symbol[_0x16ae05(0x174)],{'value':_0x16ae05(0x17a)});let _0x4d35e3=function(_0x31513e){const _0x94a585=_0x16ae05;return _0x31513e[_0x94a585(0x178)]=_0x94a585(0x18c),_0x31513e['COLUMN']=_0x94a585(0x171),_0x31513e;}({}),_0x49ba8e=function(_0x5d449a){const _0x1d9b7f=_0x16ae05;return _0x5d449a[_0x1d9b7f(0xe8)]=_0x1d9b7f(0x197),_0x5d449a[_0x1d9b7f(0x19a)]=_0x1d9b7f(0x169),_0x5d449a[_0x1d9b7f(0x131)]='crossing',_0x5d449a[_0x1d9b7f(0xfb)]=_0x1d9b7f(0x175),_0x5d449a[_0x1d9b7f(0x1bb)]=_0x1d9b7f(0x10d),_0x5d449a[_0x1d9b7f(0x155)]=_0x1d9b7f(0x151),_0x5d449a[_0x1d9b7f(0x1a6)]=_0x1d9b7f(0x16b),_0x5d449a;}({});var _0x46d189=class extends Error{constructor(_0x44a3eb,_0x3a3fe2,_0x405e6e){const _0x583b9d=_0x16ae05;super(_0x3a3fe2),this['reason']=_0x44a3eb,this[_0x583b9d(0x1a8)]=_0x405e6e,this['name']=_0x583b9d(0x10e);}};function _0x3f0b17(_0xc050d7){const _0x2325c8=_0x16ae05;return _0xc050d7 instanceof _0x46d189?_0xc050d7[_0x2325c8(0xe6)]:_0xc050d7 instanceof Error?_0xc050d7[_0x2325c8(0x112)][_0x2325c8(0x14a)]('split\x20dimension\x20outline')?_0x2325c8(0x10d):_0xc050d7[_0x2325c8(0x112)][_0x2325c8(0x14a)](_0x2325c8(0x167))?_0x2325c8(0x175):_0xc050d7[_0x2325c8(0x112)]['includes'](_0x2325c8(0x12e))?_0x2325c8(0x16a):_0xc050d7[_0x2325c8(0x112)][_0x2325c8(0x14a)](_0x2325c8(0x11b))?'invalid-range':_0x2325c8(0x16b):_0x2325c8(0x16b);}function _0x3dbfb3(_0x43b0de){const _0xc0949e=_0x16ae05;return _0x43b0de instanceof _0x46d189?_0x43b0de[_0xc0949e(0x1a8)]:void 0x0;}let _0x4ca5b3=0x2**0x35-0x1;function _0x202b16(_0x569520,_0x1eef83){const _0x1696c1=_0x16ae05;return _0x569520[_0x1696c1(0x168)]===_0x1eef83['unitId']&&_0x569520[_0x1696c1(0x138)]===_0x1eef83[_0x1696c1(0x138)]&&_0x569520[_0x1696c1(0x1b9)]===_0x1eef83[_0x1696c1(0x1b9)];}function _0x5ab0c7(_0x1b8c09,_0x3347de={}){const _0x447fef=_0x16ae05;let _0x1f99f7=_0x3347de[_0x447fef(0x1b2)]??0x8,_0x1baf51=new Map();for(let _0x4ed7de of _0x1b8c09){let _0x53e791=_0x4ed7de[_0x447fef(0x168)]+':'+_0x4ed7de[_0x447fef(0x138)]+':'+_0x4ed7de['axis'],_0x59321e=_0x1baf51[_0x447fef(0x179)](_0x53e791);_0x59321e?_0x59321e[_0x447fef(0xf2)](_0x4ed7de):_0x1baf51['set'](_0x53e791,[_0x4ed7de]);}let _0xae7f61=[];for(let _0x23a463 of _0x1baf51[_0x447fef(0x17f)]()){let _0x5b24fe=[..._0x23a463][_0x447fef(0x19d)](_0x4a6d9a),_0x9cc943=[];for(let _0x55f71b of _0x5b24fe){for(_0x2a54dd(_0x55f71b);_0x9cc943[_0x447fef(0x152)]>0x0&&_0x55f71b[_0x447fef(0x141)]>_0x9cc943[_0x9cc943[_0x447fef(0x152)]-0x1][_0x447fef(0x104)];)_0x9cc943[_0x447fef(0xfe)]();let _0xa2f019=_0x9cc943[_0x9cc943[_0x447fef(0x152)]-0x1];if(_0xa2f019&&_0x55f71b[_0x447fef(0x104)]>_0xa2f019[_0x447fef(0x104)])throw new _0x46d189(_0x447fef(0x16a),_0x447fef(0x1c1),_0x55f71b['id']);let _0x207927=_0xa2f019?_0xa2f019[_0x447fef(0x167)]+0x1:0x1;if(_0x207927>_0x1f99f7)throw new _0x46d189(_0x447fef(0x175),_0x447fef(0x188)+_0x1f99f7,_0x55f71b['id']);let _0x163fbd={..._0x55f71b,'depth':_0x207927,'parentId':_0xa2f019==null?void 0x0:_0xa2f019['id'],'anchor':_0x55f71b[_0x447fef(0x104)],'children':[]};_0xa2f019?_0xa2f019['children'][_0x447fef(0xf2)](_0x163fbd):_0xae7f61[_0x447fef(0xf2)](_0x163fbd),_0x9cc943[_0x447fef(0xf2)](_0x163fbd);}}return _0xae7f61;}function _0x2f5d03(_0x28210c,_0x4aedfc,_0x16d1ef={}){const _0x3ebb9d=_0x16ae05;if(_0x4aedfc['start']<0x0||_0x4aedfc[_0x3ebb9d(0x141)]>_0x4aedfc[_0x3ebb9d(0x104)])return{'valid':!0x1,'reason':_0x3ebb9d(0x197)};if(_0x16d1ef[_0x3ebb9d(0x173)]!=null&&_0x4aedfc[_0x3ebb9d(0x104)]>=_0x16d1ef[_0x3ebb9d(0x173)])return{'valid':!0x1,'reason':'out-of-bounds'};let _0x555625=_0x28210c['filter'](_0x2bc979=>_0x202b16(_0x2bc979,_0x4aedfc));for(let _0x1567a0 of _0x555625)if(_0x315a0d(_0x1567a0,_0x4aedfc))return{'valid':!0x1,'reason':_0x3ebb9d(0x16a)};try{_0x5ab0c7([..._0x28210c,_0x4aedfc],_0x16d1ef);}catch(_0xc744fe){let _0x132430=_0x3f0b17(_0xc744fe);return _0x132430===_0x3ebb9d(0x175)?{'valid':!0x1,'reason':'max-depth'}:_0x132430===_0x3ebb9d(0x197)?{'valid':!0x1,'reason':'invalid-range'}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function _0x3b188d(_0x5310db,_0x5d9002,_0x592cb8={}){const _0x4897b0=_0x16ae05;let _0x19dc1e=_0x2f5d03(_0x5310db,_0x5d9002,_0x592cb8);if(!_0x19dc1e['valid'])throw Error(_0x19dc1e[_0x4897b0(0xe6)]??'invalid-dimension-outline');return[..._0x5310db,_0x5d9002];}function _0x30c458(_0x3b4180,_0x3b901f){const _0x51b642=_0x16ae05;let _0x1654a0=_0x3b901f[_0x51b642(0x141)],_0x407125=_0x3b901f[_0x51b642(0x104)],_0x5de9db=[],_0xf0293d=!0x0;for(;_0xf0293d;){_0xf0293d=!0x1;for(let _0x40f8ad of _0x3b4180)_0x5de9db[_0x51b642(0x14a)](_0x40f8ad)||!_0x202b16(_0x40f8ad,_0x3b901f)||!_0x3b0bef(_0x40f8ad['start'],_0x40f8ad['end'],_0x1654a0,_0x407125)||(_0x5de9db[_0x51b642(0xf2)](_0x40f8ad),_0x1654a0=Math[_0x51b642(0x1aa)](_0x1654a0,_0x40f8ad[_0x51b642(0x141)]),_0x407125=Math[_0x51b642(0x1b7)](_0x407125,_0x40f8ad[_0x51b642(0x104)]),_0xf0293d=!0x0);}if(_0x5de9db[_0x51b642(0x152)]===0x0)return null;let [_0x2eddef]=[..._0x5de9db][_0x51b642(0x19d)](_0x4a6d9a);return{'mergedOutline':{..._0x2eddef,'start':_0x1654a0,'end':_0x407125},'mergedOutlines':_0x5de9db};}function _0x2f61b1(_0x43679f,_0x44ff50){const _0x573de5=_0x16ae05;return _0x43679f[_0x573de5(0x1b5)](_0xbfc774=>!_0x202b16(_0xbfc774,_0x44ff50)||!(_0xbfc774[_0x573de5(0x141)]>=_0x44ff50[_0x573de5(0x141)]&&_0xbfc774[_0x573de5(0x104)]<=_0x44ff50[_0x573de5(0x104)]));}function _0x4ee7f2(_0x27688e,_0x50b70c,_0x32e7ef,_0x1b897f){const _0x3fc0a9=_0x16ae05;return _0x5da155(_0x27688e['filter'](_0x21f6e7=>_0x21f6e7[_0x3fc0a9(0x168)]===_0x50b70c&&_0x21f6e7['subUnitId']===_0x32e7ef&&_0x21f6e7[_0x3fc0a9(0x1b9)]===_0x1b897f&&_0x21f6e7[_0x3fc0a9(0x116)])[_0x3fc0a9(0x129)](_0x2d57ef=>({'start':_0x2d57ef[_0x3fc0a9(0x141)],'end':_0x2d57ef[_0x3fc0a9(0x104)]})));}function _0x5da155(_0x26b052){const _0x3ffc6e=_0x16ae05;if(_0x26b052[_0x3ffc6e(0x152)]===0x0)return[];let _0xfb6a0f=[..._0x26b052]['sort']((_0x14a59d,_0x2bb18f)=>_0x14a59d['start']-_0x2bb18f[_0x3ffc6e(0x141)]||_0x14a59d[_0x3ffc6e(0x104)]-_0x2bb18f[_0x3ffc6e(0x104)]),_0x50642d=[];for(let _0x525ff4 of _0xfb6a0f){let _0x36fd0e=_0x50642d[_0x50642d[_0x3ffc6e(0x152)]-0x1];!_0x36fd0e||_0x525ff4[_0x3ffc6e(0x141)]>_0x36fd0e[_0x3ffc6e(0x104)]+0x1?_0x50642d[_0x3ffc6e(0xf2)]({..._0x525ff4}):_0x36fd0e[_0x3ffc6e(0x104)]=Math[_0x3ffc6e(0x1b7)](_0x36fd0e[_0x3ffc6e(0x104)],_0x525ff4[_0x3ffc6e(0x104)]);}return _0x50642d;}function _0x50dc62(_0x1ec2ef,_0x11a158){const _0xf06d22=_0x16ae05;return _0x11a158['count']<=0x0?_0x1ec2ef:_0x4a01fb(_0x1ec2ef[_0xf06d22(0x129)](_0x56dcbb=>_0x202b16(_0x56dcbb,_0x11a158)?_0x11a158[_0xf06d22(0x107)]<=_0x56dcbb[_0xf06d22(0x141)]?{..._0x56dcbb,'start':_0x56dcbb[_0xf06d22(0x141)]+_0x11a158[_0xf06d22(0x101)],'end':_0x56dcbb[_0xf06d22(0x104)]+_0x11a158[_0xf06d22(0x101)]}:_0x56dcbb[_0xf06d22(0x141)]<_0x11a158['index']&&_0x11a158['index']<=_0x56dcbb[_0xf06d22(0x104)]?{..._0x56dcbb,'end':_0x56dcbb[_0xf06d22(0x104)]+_0x11a158['count']}:_0x56dcbb:_0x56dcbb));}function _0x1b821d(_0x24e9f4,_0x1efb08){const _0x284f51=_0x16ae05;if(_0x1efb08[_0x284f51(0x141)]>_0x1efb08[_0x284f51(0x104)])return _0x24e9f4;let _0x28aaea=_0x1efb08[_0x284f51(0x104)]-_0x1efb08['start']+0x1,_0x32d39e=[];for(let _0x5dd397 of _0x24e9f4){if(!_0x202b16(_0x5dd397,_0x1efb08)){_0x32d39e[_0x284f51(0xf2)](_0x5dd397);continue;}if(_0x5dd397[_0x284f51(0x104)]<_0x1efb08['start']){_0x32d39e[_0x284f51(0xf2)](_0x5dd397);continue;}if(_0x5dd397[_0x284f51(0x141)]>_0x1efb08[_0x284f51(0x104)]){_0x32d39e['push']({..._0x5dd397,'start':_0x5dd397[_0x284f51(0x141)]-_0x28aaea,'end':_0x5dd397['end']-_0x28aaea});continue;}let _0x392a5b=Math[_0x284f51(0x1b7)](_0x5dd397['start'],_0x1efb08['start']),_0x34f7d4=Math[_0x284f51(0x1aa)](_0x5dd397['end'],_0x1efb08[_0x284f51(0x104)]),_0x367f71=Math[_0x284f51(0x1b7)](0x0,_0x34f7d4-_0x392a5b+0x1),_0x58a106=_0x5dd397[_0x284f51(0x104)]-_0x5dd397[_0x284f51(0x141)]+0x1-_0x367f71;if(_0x58a106<=0x0)continue;let _0x503f00=_0x5dd397[_0x284f51(0x141)]<_0x1efb08[_0x284f51(0x141)]?_0x5dd397[_0x284f51(0x141)]:_0x1efb08[_0x284f51(0x141)];_0x32d39e[_0x284f51(0xf2)]({..._0x5dd397,'start':_0x503f00,'end':_0x503f00+_0x58a106-0x1});}return _0x4a01fb(_0x32d39e);}function _0x1306bc(_0x2ab57a,_0x5d3a59){const _0x3ac451=_0x16ae05;if(_0x5d3a59[_0x3ac451(0x199)]>_0x5d3a59[_0x3ac451(0x125)])return _0x2ab57a;let _0x309c79=[];for(let _0x299ffb of _0x2ab57a){if(!_0x202b16(_0x299ffb,_0x5d3a59)){_0x309c79[_0x3ac451(0xf2)](_0x299ffb);continue;}let _0x48b911=_0x4812ee(_0x299ffb,_0x5d3a59);if(_0x48b911['type']==='split')throw new _0x46d189(_0x3ac451(0x10d),_0x3ac451(0x121)+_0x299ffb['id'],_0x299ffb['id']);_0x309c79[_0x3ac451(0xf2)](_0x48b911[_0x3ac451(0x18f)]);}return _0x4a01fb(_0x309c79);}function _0x4812ee(_0x40478,_0x13d288){const _0xc4cce0=_0x16ae05;let _0x9446c3=_0x4e8827(_0x13d288['sourceStart'],_0x13d288[_0xc4cce0(0x125)]+0x1,_0x13d288[_0xc4cce0(0x144)]),_0x315e7e=[],_0x580a13={'start':_0x40478[_0xc4cce0(0x141)],'end':_0x40478['end']+0x1};for(let _0x26a63b of _0x9446c3){let _0x510a7b=_0x34f800(_0x580a13,_0x26a63b[_0xc4cce0(0x11b)]);_0x510a7b&&_0x315e7e[_0xc4cce0(0xf2)]({'start':_0x510a7b['start']+_0x26a63b['offset'],'end':_0x510a7b[_0xc4cce0(0x104)]+_0x26a63b[_0xc4cce0(0x1b0)]});}let _0x4e557f=_0x51bd79(_0x315e7e);return _0x4e557f[_0xc4cce0(0x152)]===0x1?{'type':'ok','outline':{..._0x40478,'start':_0x4e557f[0x0][_0xc4cce0(0x141)],'end':_0x4e557f[0x0]['end']-0x1}}:{'type':_0xc4cce0(0x1ae),'outline':_0x40478,'ranges':_0x4e557f};}function _0x4e8827(_0x48c95f,_0x2f77cc,_0x37dcca){const _0x2ac53d=_0x16ae05;let _0x45c101=_0x2f77cc-_0x48c95f;if(_0x45c101<=0x0)throw Error(_0x2ac53d(0x1c0));return _0x37dcca>=_0x48c95f&&_0x37dcca<=_0x2f77cc?[{'range':{'start':0x0,'end':_0x4ca5b3},'offset':0x0}]:_0x37dcca<_0x48c95f?[{'range':{'start':0x0,'end':_0x37dcca},'offset':0x0},{'range':{'start':_0x37dcca,'end':_0x48c95f},'offset':_0x45c101},{'range':{'start':_0x48c95f,'end':_0x2f77cc},'offset':_0x37dcca-_0x48c95f},{'range':{'start':_0x2f77cc,'end':_0x4ca5b3},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x48c95f},'offset':0x0},{'range':{'start':_0x48c95f,'end':_0x2f77cc},'offset':_0x37dcca-_0x2f77cc},{'range':{'start':_0x2f77cc,'end':_0x37dcca},'offset':-_0x45c101},{'range':{'start':_0x37dcca,'end':_0x4ca5b3},'offset':0x0}];}function _0x34f800(_0x106597,_0x42e7c8){const _0x56e515=_0x16ae05;let _0x922dbe=Math['max'](_0x106597[_0x56e515(0x141)],_0x42e7c8[_0x56e515(0x141)]),_0x243f40=Math[_0x56e515(0x1aa)](_0x106597['end'],_0x42e7c8[_0x56e515(0x104)]);return _0x922dbe>=_0x243f40?null:{'start':_0x922dbe,'end':_0x243f40};}function _0x51bd79(_0x11e774){const _0x7ecc90=_0x16ae05;if(_0x11e774[_0x7ecc90(0x152)]===0x0)return[];let _0x2a3fd7=[..._0x11e774][_0x7ecc90(0x19d)]((_0x176a88,_0x4ec8a0)=>_0x176a88['start']-_0x4ec8a0[_0x7ecc90(0x141)]||_0x176a88['end']-_0x4ec8a0[_0x7ecc90(0x104)]),_0x184cbe=[];for(let _0x335407 of _0x2a3fd7){let _0x555d14=_0x184cbe[_0x184cbe[_0x7ecc90(0x152)]-0x1];!_0x555d14||_0x335407[_0x7ecc90(0x141)]>_0x555d14['end']?_0x184cbe[_0x7ecc90(0xf2)]({..._0x335407}):_0x555d14[_0x7ecc90(0x104)]=Math['max'](_0x555d14['end'],_0x335407[_0x7ecc90(0x104)]);}return _0x184cbe;}function _0x3b0bef(_0x31f05b,_0x7062a6,_0x1cce44,_0x2be8c7){return _0x7062a6+0x1===_0x1cce44||_0x2be8c7+0x1===_0x31f05b;}function _0x4a01fb(_0x5f30a3){let _0x1cda3a=_0x1638fe(_0x5f30a3);return _0x5ab0c7(_0x1cda3a),_0x1cda3a;}function _0x1638fe(_0x5cd22d){const _0x41da7f=_0x16ae05;let _0x4a7409=new Map();for(let _0x5853af of _0x5cd22d){let _0x16088a=[_0x5853af[_0x41da7f(0x168)],_0x5853af[_0x41da7f(0x138)],_0x5853af[_0x41da7f(0x1b9)],_0x5853af[_0x41da7f(0x141)],_0x5853af[_0x41da7f(0x104)]][_0x41da7f(0x105)](':'),_0x5d4e74=_0x4a7409[_0x41da7f(0x179)](_0x16088a);if(!_0x5d4e74){_0x4a7409[_0x41da7f(0x195)](_0x16088a,_0x5853af);continue;}_0x4a7409[_0x41da7f(0x195)](_0x16088a,{..._0x5d4e74,'collapsed':_0x5d4e74['collapsed']||_0x5853af['collapsed']});}return Array[_0x41da7f(0x15f)](_0x4a7409[_0x41da7f(0x17f)]());}function _0x4a6d9a(_0x7f39f,_0xc00eb9){const _0xd2f9a9=_0x16ae05;return _0x7f39f[_0xd2f9a9(0x168)]===_0xc00eb9[_0xd2f9a9(0x168)]?_0x7f39f['subUnitId']===_0xc00eb9[_0xd2f9a9(0x138)]?_0x7f39f[_0xd2f9a9(0x1b9)]===_0xc00eb9[_0xd2f9a9(0x1b9)]?_0x7f39f[_0xd2f9a9(0x141)]===_0xc00eb9[_0xd2f9a9(0x141)]?_0xc00eb9[_0xd2f9a9(0x104)]-_0x7f39f['end']:_0x7f39f[_0xd2f9a9(0x141)]-_0xc00eb9[_0xd2f9a9(0x141)]:_0x7f39f['axis']['localeCompare'](_0xc00eb9[_0xd2f9a9(0x1b9)]):_0x7f39f[_0xd2f9a9(0x138)][_0xd2f9a9(0x190)](_0xc00eb9[_0xd2f9a9(0x138)]):_0x7f39f[_0xd2f9a9(0x168)][_0xd2f9a9(0x190)](_0xc00eb9[_0xd2f9a9(0x168)]);}function _0x2a54dd(_0xd0ee77){const _0x458aff=_0x16ae05;if(_0xd0ee77[_0x458aff(0x141)]>_0xd0ee77[_0x458aff(0x104)])throw new _0x46d189(_0x458aff(0x197),_0x458aff(0x137),_0xd0ee77['id']);}function _0x315a0d(_0x6fe9a,_0x1a2979){const _0x4b16f7=_0x16ae05;let _0x539925=_0x6fe9a['start']<=_0x1a2979['end']&&_0x1a2979[_0x4b16f7(0x141)]<=_0x6fe9a[_0x4b16f7(0x104)],_0x580cb7=_0x6fe9a[_0x4b16f7(0x141)]<=_0x1a2979[_0x4b16f7(0x141)]&&_0x1a2979['end']<=_0x6fe9a['end'],_0x51327d=_0x1a2979[_0x4b16f7(0x141)]<=_0x6fe9a['start']&&_0x6fe9a[_0x4b16f7(0x104)]<=_0x1a2979[_0x4b16f7(0x104)];return _0x539925&&!_0x580cb7&&!_0x51327d;}function _0x17037c(_0x5943f4){'@babel/helpers - typeof';const _0x21a9c1=_0x16ae05;return _0x17037c=typeof Symbol==_0x21a9c1(0xf4)&&typeof Symbol[_0x21a9c1(0x148)]==_0x21a9c1(0x147)?function(_0x396b21){return typeof _0x396b21;}:function(_0x26ebe2){const _0x520983=_0x21a9c1;return _0x26ebe2&&typeof Symbol==_0x520983(0xf4)&&_0x26ebe2[_0x520983(0x120)]===Symbol&&_0x26ebe2!==Symbol[_0x520983(0x146)]?'symbol':typeof _0x26ebe2;},_0x17037c(_0x5943f4);}function _0x3454f7(_0x3c9d9f,_0x3b97de){const _0x55a7f6=_0x16ae05;if(_0x17037c(_0x3c9d9f)!='object'||!_0x3c9d9f)return _0x3c9d9f;var _0x2bc0bd=_0x3c9d9f[Symbol[_0x55a7f6(0x182)]];if(_0x2bc0bd!==void 0x0){var _0x50d560=_0x2bc0bd[_0x55a7f6(0x12b)](_0x3c9d9f,_0x3b97de||_0x55a7f6(0x114));if(_0x17037c(_0x50d560)!=_0x55a7f6(0x164))return _0x50d560;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3b97de==='string'?String:Number)(_0x3c9d9f);}function _0x2e7ce1(_0x583489){const _0x26b2d4=_0x16ae05;var _0x532179=_0x3454f7(_0x583489,_0x26b2d4(0x186));return _0x17037c(_0x532179)==_0x26b2d4(0x147)?_0x532179:_0x532179+'';}function _0x5e22d5(_0x18d181,_0x3da454,_0x147af4){const _0x17e948=_0x16ae05;return(_0x3da454=_0x2e7ce1(_0x3da454))in _0x18d181?Object[_0x17e948(0x1a5)](_0x18d181,_0x3da454,{'value':_0x147af4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x18d181[_0x3da454]=_0x147af4,_0x18d181;}var _0x16b117=class extends _0x4d1876[_0x16ae05(0x11a)]{constructor(..._0x2ab36b){const _0x592bbe=_0x16ae05;super(..._0x2ab36b),_0x5e22d5(this,_0x592bbe(0x15d),new Map()),_0x5e22d5(this,_0x592bbe(0x16f),new _0x42aa71[(_0x592bbe(0x1b1))]()),_0x5e22d5(this,_0x592bbe(0xf5),this[_0x592bbe(0x16f)][_0x592bbe(0x15c)]());}[_0x16ae05(0x170)](_0x5727c6,_0x379731){const _0x106d64=_0x16ae05;var _0x52d3db;return[...((_0x52d3db=this[_0x106d64(0x15d)]['get'](_0x5727c6))==null?void 0x0:_0x52d3db[_0x106d64(0x179)](_0x379731))??[]];}[_0x16ae05(0x18d)](_0x1f74be){const _0x1634dc=_0x16ae05;let _0x26a8d9=this[_0x1634dc(0x15d)]['get'](_0x1f74be),_0x149f9d=new Map();return _0x26a8d9==null||_0x26a8d9['forEach']((_0x36636a,_0x1c6dc8)=>{const _0x1d04f7=_0x1634dc;_0x149f9d[_0x1d04f7(0x195)](_0x1c6dc8,[..._0x36636a]);}),_0x149f9d;}[_0x16ae05(0xf9)](_0x320bdd,_0x12ee16,_0x3e2020){const _0x52796b=_0x16ae05;this[_0x52796b(0x136)](_0x320bdd)[_0x52796b(0x195)](_0x12ee16,[..._0x3e2020]),this[_0x52796b(0x16f)][_0x52796b(0x17d)]({'unitId':_0x320bdd,'subUnitId':_0x12ee16});}[_0x16ae05(0x106)](_0x20ba4f){const _0x2c3652=_0x16ae05;this[_0x2c3652(0x15d)][_0x2c3652(0x1c5)](_0x20ba4f),this[_0x2c3652(0x16f)][_0x2c3652(0x17d)]({'unitId':_0x20ba4f});}[_0x16ae05(0x12c)](_0x21a9cb){const _0x1bce89=_0x16ae05;let _0x2777ab=this[_0x1bce89(0x15d)][_0x1bce89(0x179)](_0x21a9cb),_0x1b80d8={};return _0x2777ab==null||_0x2777ab['forEach']((_0x3eb7b3,_0x57c000)=>{_0x1b80d8[_0x57c000]={'outlineList':[..._0x3eb7b3]};}),_0x1b80d8;}[_0x16ae05(0x1c4)](_0x5897e4,_0x43bf38){const _0x1cdb08=_0x16ae05;let _0x15592f=new Map();Object['entries'](_0x43bf38)[_0x1cdb08(0x128)](([_0x1f822e,_0x21ca88])=>{const _0x1f2ab3=_0x1cdb08;_0x15592f[_0x1f2ab3(0x195)](_0x1f822e,[..._0x21ca88['outlineList']??[]]);}),this['_outlines']['set'](_0x5897e4,_0x15592f),this['_change$']['next']({'unitId':_0x5897e4});}[_0x16ae05(0x143)](){const _0x38b17e=_0x16ae05;super[_0x38b17e(0x143)](),this[_0x38b17e(0x15d)][_0x38b17e(0x198)](),this[_0x38b17e(0x16f)]['complete']();}['_ensureUnitOutlines'](_0x314140){const _0x1f0876=_0x16ae05;let _0x41bbc5=this[_0x1f0876(0x15d)][_0x1f0876(0x179)](_0x314140);return _0x41bbc5||(_0x41bbc5=new Map(),this[_0x1f0876(0x15d)][_0x1f0876(0x195)](_0x314140,_0x41bbc5)),_0x41bbc5;}},_0x4c0b35=class extends _0x4d1876[_0x16ae05(0x11a)]{constructor(..._0x20c3c0){const _0x2c2369=_0x16ae05;super(..._0x20c3c0),_0x5e22d5(this,_0x2c2369(0x119),new _0x42aa71[(_0x2c2369(0x1b1))]()),_0x5e22d5(this,'error$',this['_error$'][_0x2c2369(0x15c)]());}[_0x16ae05(0x11e)](_0xafbf82){const _0x32558e=_0x16ae05;this[_0x32558e(0x119)][_0x32558e(0x17d)](_0xafbf82);}[_0x16ae05(0x143)](){const _0x32e516=_0x16ae05;super[_0x32e516(0x143)](),this[_0x32e516(0x119)][_0x32e516(0xea)]();}};let _0x4d3b61={'id':_0x16ae05(0x18e),'type':_0x4d1876[_0x16ae05(0x115)][_0x16ae05(0x1b3)],'handler':(_0x31b56b,_0x4d1676)=>{const _0x336a9b=_0x16ae05;let _0x4f969a=_0x31b56b['get'](_0x16b117),_0x36fd38=_0x4f969a[_0x336a9b(0x170)](_0x4d1676[_0x336a9b(0x168)],_0x4d1676[_0x336a9b(0x138)]);return _0x4f969a['setOutlines'](_0x4d1676[_0x336a9b(0x168)],_0x4d1676[_0x336a9b(0x138)],_0x3b188d(_0x36fd38,_0x4d1676[_0x336a9b(0x18f)])),!0x0;}},_0x1a47bc={'id':_0x16ae05(0xfd),'type':_0x4d1876[_0x16ae05(0x115)][_0x16ae05(0x1b3)],'handler':(_0x4f7f2d,_0x1eee70)=>{const _0xd73b41=_0x16ae05;let _0x427478=_0x4f7f2d[_0xd73b41(0x179)](_0x16b117),_0x38e978=_0x427478['getOutlines'](_0x1eee70[_0xd73b41(0x168)],_0x1eee70[_0xd73b41(0x138)]);return _0x427478[_0xd73b41(0xf9)](_0x1eee70[_0xd73b41(0x168)],_0x1eee70[_0xd73b41(0x138)],_0x38e978[_0xd73b41(0x1b5)](_0x5bf589=>_0x5bf589['id']!==_0x1eee70['outlineId'])),!0x0;}};function _0x319f8c(_0x705750,_0x26d08f,_0x250f1f){const _0x285993=_0x16ae05;let _0x4e0f84=_0x14d8aa(_0x705750);return!_0x4e0f84||_0x4e0f84[_0x285993(0x13b)]({'workbookTypes':[_0x558706[_0x285993(0x1b8)]],'worksheetTypes':[_0x558706[_0x285993(0x165)]]},_0x26d08f,_0x250f1f);}function _0x3e4bb0(_0x4ed396,_0x4f275f,_0x2981b3){const _0x50b003=_0x16ae05;let _0x4043f8=_0x476763(_0x4ed396);return((_0x4043f8==null?void 0x0:_0x4043f8[_0x50b003(0x1b4)])??(0x0,_0x42aa71['of'])(null))['pipe']((0x0,_0x11a575[_0x50b003(0x150)])(0x64),(0x0,_0x11a575[_0x50b003(0x11f)])(null),(0x0,_0x11a575['map'])(()=>_0x319f8c(_0x4ed396,_0x4f275f,_0x2981b3)));}function _0x14d8aa(_0x1e3b57){const _0x6d9785=_0x16ae05;if(typeof _0x1e3b57[_0x6d9785(0x17b)]==_0x6d9785(0xf4)&&!_0x1e3b57[_0x6d9785(0x17b)](_0x558706['SheetPermissionCheckController']))return null;try{return _0x1e3b57['get'](_0x558706[_0x6d9785(0x184)]);}catch{return null;}}function _0x476763(_0xb444f6){const _0x35b0d9=_0x16ae05;if(typeof _0xb444f6['has']=='function'&&!_0xb444f6[_0x35b0d9(0x17b)](_0x4d1876['IPermissionService']))return null;try{return _0xb444f6[_0x35b0d9(0x179)](_0x4d1876[_0x35b0d9(0x12d)]);}catch{return null;}}let _0x2def6f={'id':_0x16ae05(0x134),'type':_0x4d1876[_0x16ae05(0x115)][_0x16ae05(0x118)],'handler':(_0x510327,_0x25193e)=>{const _0x3ebbb9=_0x16ae05;if(!_0x25193e)return!0x1;let _0x3eb49a=(0x0,_0x558706[_0x3ebbb9(0x1a0)])(_0x510327[_0x3ebbb9(0x179)](_0x4d1876['IUniverInstanceService']),_0x25193e);if(!_0x3eb49a)return!0x1;let {unitId:_0x55e9f4,subUnitId:_0x3c09f6,worksheet:_0x39995b}=_0x3eb49a;if(!_0x319f8c(_0x510327,_0x55e9f4,_0x3c09f6))return!0x1;let _0x2853b7=_0x510327[_0x3ebbb9(0x179)](_0x16b117),_0xe8c60c={'id':_0x3ebbb9(0x193)+(0x0,_0x4d1876[_0x3ebbb9(0x1ad)])(0x6),'unitId':_0x55e9f4,'subUnitId':_0x3c09f6,'axis':_0x25193e[_0x3ebbb9(0x1b9)],'start':_0x25193e[_0x3ebbb9(0x141)],'end':_0x25193e[_0x3ebbb9(0x104)],'collapsed':!0x1},_0x2a7f34=_0x25193e['axis']===_0x3ebbb9(0x18c)?_0x39995b['getRowCount']():_0x39995b[_0x3ebbb9(0x14f)](),_0x581aa5=_0x2853b7[_0x3ebbb9(0x170)](_0x55e9f4,_0x3c09f6),_0x58ff43=_0x30c458(_0x581aa5,_0xe8c60c),_0x317738=(_0x58ff43==null?void 0x0:_0x58ff43['mergedOutlines'])??[],_0x4a3a50=(_0x58ff43==null?void 0x0:_0x58ff43[_0x3ebbb9(0x159)])??_0xe8c60c,_0x424db4=_0x2f5d03(_0x58ff43?_0x581aa5[_0x3ebbb9(0x1b5)](_0x38eb77=>!_0x317738[_0x3ebbb9(0xec)](_0x438dc6=>_0x438dc6['id']===_0x38eb77['id'])):_0x581aa5,_0x4a3a50,{'maxIndex':_0x2a7f34});if(!_0x424db4['valid'])return _0x510327['get'](_0x4c0b35)[_0x3ebbb9(0x11e)]({'reason':_0x424db4[_0x3ebbb9(0xe6)]??_0x3ebbb9(0x16b),'commandId':_0x2def6f['id'],'unitId':_0x55e9f4,'subUnitId':_0x3c09f6,'axis':_0x25193e[_0x3ebbb9(0x1b9)],'outlineId':_0x4a3a50['id']}),!0x1;let _0x40ff28=[..._0x317738[_0x3ebbb9(0x129)](_0x51a1a6=>({'id':_0x1a47bc['id'],'params':{'unitId':_0x55e9f4,'subUnitId':_0x3c09f6,'outlineId':_0x51a1a6['id']}})),{'id':_0x4d3b61['id'],'params':{'unitId':_0x55e9f4,'subUnitId':_0x3c09f6,'outline':_0x4a3a50}}],_0x67a5b4=[{'id':_0x1a47bc['id'],'params':{'unitId':_0x55e9f4,'subUnitId':_0x3c09f6,'outlineId':_0x4a3a50['id']}},..._0x317738[_0x3ebbb9(0x129)](_0x44c89e=>({'id':_0x4d3b61['id'],'params':{'unitId':_0x55e9f4,'subUnitId':_0x3c09f6,'outline':_0x44c89e}}))];return(0x0,_0x4d1876[_0x3ebbb9(0x19c)])(_0x40ff28,_0x510327[_0x3ebbb9(0x179)](_0x4d1876[_0x3ebbb9(0xff)]))[_0x3ebbb9(0x183)]?(_0x510327[_0x3ebbb9(0x179)](_0x4d1876[_0x3ebbb9(0x12a)])['pushUndoRedo']({'unitID':_0x55e9f4,'undoMutations':_0x67a5b4,'redoMutations':_0x40ff28}),!0x0):!0x1;}},_0x2b58ee={'id':_0x16ae05(0x110),'type':_0x4d1876[_0x16ae05(0x115)][_0x16ae05(0x1b3)],'handler':(_0x2734c4,_0x4bc6b3)=>{const _0x1935d4=_0x16ae05;let _0x3aad2d=_0x2734c4[_0x1935d4(0x179)](_0x16b117),_0x757417=_0x3aad2d['getOutlines'](_0x4bc6b3['unitId'],_0x4bc6b3['subUnitId']);return _0x3aad2d[_0x1935d4(0xf9)](_0x4bc6b3[_0x1935d4(0x168)],_0x4bc6b3[_0x1935d4(0x138)],_0x2f61b1(_0x757417,_0x4bc6b3)),!0x0;}},_0x1b9d56={'id':_0x16ae05(0x126),'type':_0x4d1876[_0x16ae05(0x115)][_0x16ae05(0x118)],'handler':(_0x4d1c54,_0x5e0bb2)=>{const _0x5167cc=_0x16ae05;if(!_0x5e0bb2)return!0x1;let _0x554f3b=(0x0,_0x558706[_0x5167cc(0x1a0)])(_0x4d1c54[_0x5167cc(0x179)](_0x4d1876[_0x5167cc(0x18b)]),_0x5e0bb2);if(!_0x554f3b)return!0x1;let {unitId:_0x1fb7f4,subUnitId:_0x2523aa}=_0x554f3b;if(!_0x319f8c(_0x4d1c54,_0x1fb7f4,_0x2523aa))return!0x1;let _0x984b4a={'unitId':_0x1fb7f4,'subUnitId':_0x2523aa,'axis':_0x5e0bb2[_0x5167cc(0x1b9)],'start':_0x5e0bb2['start'],'end':_0x5e0bb2[_0x5167cc(0x104)]},_0x33b0fb=_0x4d1c54[_0x5167cc(0x179)](_0x16b117)[_0x5167cc(0x170)](_0x1fb7f4,_0x2523aa)[_0x5167cc(0x1b5)](_0x247fdf=>_0x202b16(_0x247fdf,_0x984b4a)&&_0x247fdf['start']>=_0x5e0bb2[_0x5167cc(0x141)]&&_0x247fdf[_0x5167cc(0x104)]<=_0x5e0bb2['end']);if(_0x33b0fb['length']===0x0)return _0x4d1c54[_0x5167cc(0x179)](_0x4c0b35)[_0x5167cc(0x11e)]({'reason':'clear-range-not-contain-outline','commandId':_0x1b9d56['id'],'unitId':_0x1fb7f4,'subUnitId':_0x2523aa,'axis':_0x5e0bb2[_0x5167cc(0x1b9)]}),!0x1;let _0x2bb210=[{'id':_0x2b58ee['id'],'params':{..._0x984b4a,'removedOutlineIds':_0x33b0fb[_0x5167cc(0x129)](_0x5e7d2c=>_0x5e7d2c['id'])}}],_0x20086b=_0x33b0fb['map'](_0x3f43b3=>({'id':_0x4d3b61['id'],'params':{'unitId':_0x1fb7f4,'subUnitId':_0x2523aa,'outline':_0x3f43b3}}));return(0x0,_0x4d1876[_0x5167cc(0x19c)])(_0x2bb210,_0x4d1c54[_0x5167cc(0x179)](_0x4d1876[_0x5167cc(0xff)]))[_0x5167cc(0x183)]?(_0x4d1c54['get'](_0x4d1876[_0x5167cc(0x12a)])[_0x5167cc(0x142)]({'unitID':_0x1fb7f4,'undoMutations':_0x20086b,'redoMutations':_0x2bb210}),!0x0):!0x1;}},_0x276a1a={'id':'sheet.command.remove-dimension-outline','type':_0x4d1876[_0x16ae05(0x115)][_0x16ae05(0x118)],'handler':(_0x415749,_0x14053e)=>{const _0xaefa8b=_0x16ae05;if(!_0x14053e)return!0x1;let _0x15572e=(0x0,_0x558706[_0xaefa8b(0x1a0)])(_0x415749[_0xaefa8b(0x179)](_0x4d1876['IUniverInstanceService']),_0x14053e);if(!_0x15572e)return!0x1;let {unitId:_0x9a8c93,subUnitId:_0x3629ae}=_0x15572e;if(!_0x319f8c(_0x415749,_0x9a8c93,_0x3629ae))return!0x1;let _0x56dd0c=_0x415749[_0xaefa8b(0x179)](_0x16b117)[_0xaefa8b(0x170)](_0x9a8c93,_0x3629ae)[_0xaefa8b(0xed)](_0x5045d6=>_0x5045d6['id']===_0x14053e[_0xaefa8b(0x1a8)]);if(!_0x56dd0c)return!0x1;let _0xe5e95d=[{'id':_0x1a47bc['id'],'params':{'unitId':_0x9a8c93,'subUnitId':_0x3629ae,'outlineId':_0x56dd0c['id'],'outline':_0x56dd0c}}],_0x24c74b=[{'id':_0x4d3b61['id'],'params':{'unitId':_0x9a8c93,'subUnitId':_0x3629ae,'outline':_0x56dd0c}}];return(0x0,_0x4d1876[_0xaefa8b(0x19c)])(_0xe5e95d,_0x415749[_0xaefa8b(0x179)](_0x4d1876['ICommandService']))['result']?(_0x415749[_0xaefa8b(0x179)](_0x4d1876['IUndoRedoService'])[_0xaefa8b(0x142)]({'unitID':_0x9a8c93,'undoMutations':_0x24c74b,'redoMutations':_0xe5e95d}),!0x0):!0x1;}},_0x2495dd={'id':_0x16ae05(0x14e),'type':_0x4d1876[_0x16ae05(0x115)][_0x16ae05(0x1b3)],'handler':(_0x564455,_0x19d12d)=>{const _0x5c7a27=_0x16ae05;let _0x77d065=_0x564455[_0x5c7a27(0x179)](_0x16b117),_0x28bd27=_0x77d065['getOutlines'](_0x19d12d[_0x5c7a27(0x168)],_0x19d12d[_0x5c7a27(0x138)]),_0x16f649=_0x28bd27['find'](_0x1434a9=>_0x1434a9['id']===_0x19d12d[_0x5c7a27(0x1a8)]);return _0x16f649&&_0x77d065[_0x5c7a27(0xf9)](_0x19d12d[_0x5c7a27(0x168)],_0x19d12d[_0x5c7a27(0x138)],_0x28bd27[_0x5c7a27(0x129)](_0x35efbd=>_0x35efbd[_0x5c7a27(0x168)]!==_0x16f649[_0x5c7a27(0x168)]||_0x35efbd[_0x5c7a27(0x138)]!==_0x16f649[_0x5c7a27(0x138)]||_0x35efbd[_0x5c7a27(0x1b9)]!==_0x16f649['axis']||_0x35efbd[_0x5c7a27(0x141)]!==_0x16f649[_0x5c7a27(0x141)]||_0x35efbd[_0x5c7a27(0x104)]!==_0x16f649['end']?_0x35efbd:{..._0x35efbd,'collapsed':_0x19d12d['collapsed']})),!0x0;}};function _0x2c2722(_0x170270,_0x3c3f1a,_0x58d961,_0x437600){const _0x53e619=_0x16ae05;return _0x170270===_0x53e619(0x18c)?{'startRow':_0x3c3f1a,'endRow':_0x58d961,'startColumn':0x0,'endColumn':_0x437600['getMaxColumns']()-0x1}:{'startRow':0x0,'endRow':_0x437600['getRowCount']()-0x1,'startColumn':_0x3c3f1a,'endColumn':_0x58d961};}function _0x57a517(_0x428e4b){const _0x152bb8=_0x16ae05;return _0x428e4b===_0x152bb8(0x18c)?_0x558706['SetRowHiddenMutation']['id']:_0x558706['SetColHiddenMutation']['id'];}function _0x1db1fc(_0x27f71c){const _0x4b785c=_0x16ae05;return _0x27f71c==='row'?_0x558706[_0x4b785c(0x145)]['id']:_0x558706[_0x4b785c(0xfa)]['id'];}function _0x266a56(_0x2eaa03,_0x12b6d3,_0x1278ae,_0x61ff56){const _0x4c4419=_0x16ae05;let _0x4e7ecc=_0x12b6d3?[_0x2c2722(_0x2eaa03[_0x4c4419(0x1b9)],_0x2eaa03[_0x4c4419(0x141)],_0x2eaa03['end'],_0x1278ae)]:_0x47dcc3(_0x2eaa03,_0x61ff56,_0x1278ae),_0x3d480e=_0x12b6d3?_0x57a517(_0x2eaa03[_0x4c4419(0x1b9)]):_0x1db1fc(_0x2eaa03['axis']);return[{'id':_0x2495dd['id'],'params':{'unitId':_0x2eaa03['unitId'],'subUnitId':_0x2eaa03[_0x4c4419(0x138)],'outlineId':_0x2eaa03['id'],'outline':_0x2eaa03,'collapsed':_0x12b6d3}},..._0x4e7ecc['map'](_0x6cc044=>({'id':_0x3d480e,'params':{'unitId':_0x2eaa03[_0x4c4419(0x168)],'subUnitId':_0x2eaa03['subUnitId'],'ranges':[_0x6cc044],'dimensionOutlineId':_0x2eaa03['id']}}))];}function _0x47dcc3(_0x398c8a,_0x2f6d6b,_0x4f6e50){const _0x4a0e62=_0x16ae05;let _0x382f8e=_0x4ee7f2(_0x2f6d6b[_0x4a0e62(0x129)](_0x5632ed=>_0x1dceaf(_0x5632ed,_0x398c8a)?{..._0x5632ed,'collapsed':!0x1}:_0x5632ed),_0x398c8a['unitId'],_0x398c8a[_0x4a0e62(0x138)],_0x398c8a[_0x4a0e62(0x1b9)]);return _0x2f944({'start':_0x398c8a[_0x4a0e62(0x141)],'end':_0x398c8a[_0x4a0e62(0x104)]},_0x382f8e)[_0x4a0e62(0x129)](_0x4915a6=>_0x2c2722(_0x398c8a['axis'],_0x4915a6[_0x4a0e62(0x141)],_0x4915a6['end'],_0x4f6e50));}function _0x1dceaf(_0xecfbe9,_0x2f4f74){const _0xf0789f=_0x16ae05;return _0xecfbe9[_0xf0789f(0x168)]===_0x2f4f74['unitId']&&_0xecfbe9['subUnitId']===_0x2f4f74[_0xf0789f(0x138)]&&_0xecfbe9[_0xf0789f(0x1b9)]===_0x2f4f74[_0xf0789f(0x1b9)]&&_0xecfbe9[_0xf0789f(0x141)]===_0x2f4f74[_0xf0789f(0x141)]&&_0xecfbe9[_0xf0789f(0x104)]===_0x2f4f74[_0xf0789f(0x104)];}function _0x2f944(_0x1f5de4,_0x1260db){const _0x2f5a12=_0x16ae05;let _0x1d4abe=_0x1f5de4['start'],_0x16c2b8=[];for(let _0x2e01bf of _0x1260db)if(!(_0x2e01bf[_0x2f5a12(0x104)]<_0x1d4abe||_0x2e01bf['start']>_0x1f5de4[_0x2f5a12(0x104)])&&(_0x2e01bf[_0x2f5a12(0x141)]>_0x1d4abe&&_0x16c2b8[_0x2f5a12(0xf2)]({'start':_0x1d4abe,'end':Math[_0x2f5a12(0x1aa)](_0x2e01bf[_0x2f5a12(0x141)]-0x1,_0x1f5de4[_0x2f5a12(0x104)])}),_0x1d4abe=Math[_0x2f5a12(0x1b7)](_0x1d4abe,_0x2e01bf[_0x2f5a12(0x104)]+0x1),_0x1d4abe>_0x1f5de4[_0x2f5a12(0x104)]))break;return _0x1d4abe<=_0x1f5de4['end']&&_0x16c2b8['push']({'start':_0x1d4abe,'end':_0x1f5de4[_0x2f5a12(0x104)]}),_0x16c2b8;}let _0x235d70={'id':_0x16ae05(0xf7),'type':_0x4d1876[_0x16ae05(0x115)][_0x16ae05(0x118)],'handler':(_0x202416,_0x301896)=>{const _0x5d5e2e=_0x16ae05;if(!_0x301896)return!0x1;let _0x372730=(0x0,_0x558706[_0x5d5e2e(0x1a0)])(_0x202416[_0x5d5e2e(0x179)](_0x4d1876[_0x5d5e2e(0x18b)]),_0x301896);if(!_0x372730)return!0x1;let {unitId:_0xe3cb29,subUnitId:_0x45c77f,worksheet:_0x488da2}=_0x372730;if(!_0x319f8c(_0x202416,_0xe3cb29,_0x45c77f))return!0x1;let _0x438b48=_0x202416[_0x5d5e2e(0x179)](_0x16b117)[_0x5d5e2e(0x170)](_0xe3cb29,_0x45c77f),_0x29477e=_0x438b48[_0x5d5e2e(0xed)](_0x2518a6=>_0x2518a6['id']===_0x301896[_0x5d5e2e(0x1a8)]);if(!_0x29477e||_0x29477e['collapsed']===_0x301896[_0x5d5e2e(0x116)])return!0x1;let _0x4776d0=_0x266a56(_0x29477e,_0x301896[_0x5d5e2e(0x116)],_0x488da2,_0x438b48),_0x2a6718=_0x266a56(_0x29477e,!_0x301896[_0x5d5e2e(0x116)],_0x488da2,_0x438b48);return(0x0,_0x4d1876[_0x5d5e2e(0x19c)])(_0x4776d0,_0x202416[_0x5d5e2e(0x179)](_0x4d1876['ICommandService']))[_0x5d5e2e(0x183)]?(_0x202416[_0x5d5e2e(0x179)](_0x4d1876[_0x5d5e2e(0x12a)])[_0x5d5e2e(0x142)]({'unitID':_0xe3cb29,'undoMutations':_0x2a6718,'redoMutations':_0x4776d0}),!0x0):!0x1;}},_0x4367ca={'id':_0x16ae05(0x1a3),'type':_0x4d1876[_0x16ae05(0x115)][_0x16ae05(0x1b3)],'handler':(_0x2eacaa,_0x9f1d0a)=>{const _0x49307f=_0x16ae05;let _0x4c8907=_0x2eacaa[_0x49307f(0x179)](_0x16b117),_0x605383=_0x4fce22(_0x4c8907[_0x49307f(0x170)](_0x9f1d0a[_0x49307f(0x168)],_0x9f1d0a[_0x49307f(0x138)]),_0x9f1d0a);return _0x4c8907[_0x49307f(0xf9)](_0x9f1d0a[_0x49307f(0x168)],_0x9f1d0a[_0x49307f(0x138)],_0x605383),!0x0;}};function _0x4fce22(_0x2b989e,_0x2750c8){const _0x2cf92e=_0x16ae05;switch(_0x2750c8['type']){case _0x2cf92e(0x166):return _0x2750c8[_0x2cf92e(0x172)]?_0x5ddeb7(_0x2b989e,_0x2750c8):_0x50dc62(_0x2b989e,_0x2750c8);case _0x2cf92e(0x1c5):return _0x1b821d(_0x2b989e,_0x2750c8);case _0x2cf92e(0x18a):return _0x1306bc(_0x2b989e,_0x2750c8);}}function _0x5ddeb7(_0xb058b0,_0x46361d){const _0x23d7c4=_0x16ae05;return[..._0xb058b0[_0x23d7c4(0x1b5)](_0xfdc12b=>_0xfdc12b['unitId']!==_0x46361d[_0x23d7c4(0x168)]||_0xfdc12b[_0x23d7c4(0x138)]!==_0x46361d['subUnitId']||_0xfdc12b['axis']!==_0x46361d[_0x23d7c4(0x1b9)]),..._0x46361d['restoreOutlines']];}let _0x341b52=_0x16ae05(0x10f);var _0x8f25e7=_0x16ae05(0xf0),_0x3c250d=_0x16ae05(0x17e);let _0x39622d={};function _0x9aebc1(_0x108a72,_0x2db6a){return function(_0x1560ae,_0x3904ac){_0x2db6a(_0x1560ae,_0x3904ac,_0x108a72);};}function _0x279e74(_0x532851,_0x5ad812,_0x2f8f3c,_0x18fa08){const _0x1bc1e9=_0x16ae05;var _0xaca620=arguments['length'],_0x909d06=_0xaca620<0x3?_0x5ad812:_0x18fa08===null?_0x18fa08=Object[_0x1bc1e9(0x140)](_0x5ad812,_0x2f8f3c):_0x18fa08,_0x33afd4;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x1bc1e9(0xf4))_0x909d06=Reflect[_0x1bc1e9(0x14d)](_0x532851,_0x5ad812,_0x2f8f3c,_0x18fa08);else{for(var _0x2735dd=_0x532851[_0x1bc1e9(0x152)]-0x1;_0x2735dd>=0x0;_0x2735dd--)(_0x33afd4=_0x532851[_0x2735dd])&&(_0x909d06=(_0xaca620<0x3?_0x33afd4(_0x909d06):_0xaca620>0x3?_0x33afd4(_0x5ad812,_0x2f8f3c,_0x909d06):_0x33afd4(_0x5ad812,_0x2f8f3c))||_0x909d06);}return _0xaca620>0x3&&_0x909d06&&Object[_0x1bc1e9(0x1a5)](_0x5ad812,_0x2f8f3c,_0x909d06),_0x909d06;}let _0x15c861={'redos':[],'undos':[],'preRedos':[],'preUndos':[]},_0x516783=class extends _0x4d1876[_0x16ae05(0x11a)]{constructor(_0x1a9919,_0x44d927,_0x59460c,_0x2ea464){const _0x3987ce=_0x16ae05;super(),this['_univerInstanceService']=_0x1a9919,this[_0x3987ce(0x1a7)]=_0x44d927,this[_0x3987ce(0x135)]=_0x59460c,this[_0x3987ce(0x156)]=_0x2ea464,this[_0x3987ce(0x191)]();}[_0x16ae05(0x191)](){const _0x485f6a=_0x16ae05;this[_0x485f6a(0x157)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x35f6e9=>_0x21da4f(_0x35f6e9,(_0x18281f,_0x37d7b5)=>this[_0x485f6a(0x135)][_0x485f6a(0x170)](_0x18281f,_0x37d7b5),this[_0x485f6a(0x15b)](_0x35f6e9[_0x485f6a(0xe9)]),_0x4d467b=>this[_0x485f6a(0x156)][_0x485f6a(0x11e)](_0x4d467b))}));}[_0x16ae05(0x15b)](_0x1b2439){const _0x2e799d=_0x16ae05;let _0x5691ee=_0x1b2439,_0x805e1b=_0x5691ee!=null&&_0x5691ee[_0x2e799d(0x168)]?this[_0x2e799d(0x196)][_0x2e799d(0x10a)](_0x5691ee[_0x2e799d(0x168)],_0x4d1876[_0x2e799d(0x163)][_0x2e799d(0x13a)]):this[_0x2e799d(0x196)]['getCurrentUnitOfType'](_0x4d1876['UniverInstanceType'][_0x2e799d(0x13a)]);if(!_0x805e1b)return;let _0x1fa5ca=_0x5691ee!=null&&_0x5691ee[_0x2e799d(0x138)]?_0x805e1b[_0x2e799d(0x100)](_0x5691ee['subUnitId']):_0x805e1b[_0x2e799d(0x176)]();if(_0x1fa5ca)return{'unitId':_0x805e1b[_0x2e799d(0x1b6)](),'subUnitId':_0x1fa5ca['getSheetId']()};}};_0x516783=_0x279e74([_0x9aebc1(0x0,_0x4d1876[_0x16ae05(0x18b)]),_0x9aebc1(0x1,(0x0,_0x4d1876[_0x16ae05(0x13d)])(_0x558706[_0x16ae05(0x177)])),_0x9aebc1(0x2,(0x0,_0x4d1876[_0x16ae05(0x13d)])(_0x16b117)),_0x9aebc1(0x3,(0x0,_0x4d1876['Inject'])(_0x4c0b35))],_0x516783);function _0x21da4f(_0x58b57f,_0x21cfc1,_0x411e2e,_0xb16cb){const _0x49c863=_0x16ae05;let _0x162133=_0x1c418c(_0x58b57f,_0x411e2e);if(!_0x162133)return _0x4d6671();let _0x2134e9=_0x21cfc1(_0x162133['unitId'],_0x162133[_0x49c863(0x138)]);if(!_0x2134e9[_0x49c863(0xec)](_0xd284b7=>_0xd284b7['axis']===_0x162133[_0x49c863(0x1b9)]))return _0x4d6671();_0x35a4f7(_0x2134e9,_0x162133,_0x58b57f['id'],_0xb16cb);let _0x1b4236=_0x1dceaa(_0x162133,_0x2134e9);return{'redos':[{'id':_0x4367ca['id'],'params':_0x162133}],'undos':[{'id':_0x4367ca['id'],'params':_0x1b4236}],'preRedos':[],'preUndos':[]};}function _0x35a4f7(_0x5c26e6,_0x3e70fd,_0x30798c,_0x4c5d28){const _0x5ceeb8=_0x16ae05;try{switch(_0x3e70fd[_0x5ceeb8(0x1a2)]){case'insert':_0x50dc62(_0x5c26e6,_0x3e70fd);break;case'delete':_0x1b821d(_0x5c26e6,_0x3e70fd);break;case _0x5ceeb8(0x18a):_0x1306bc(_0x5c26e6,_0x3e70fd);break;}}catch(_0x539f7a){throw _0x4c5d28==null||_0x4c5d28({'reason':_0x3f0b17(_0x539f7a),'commandId':_0x30798c,'unitId':_0x3e70fd[_0x5ceeb8(0x168)],'subUnitId':_0x3e70fd[_0x5ceeb8(0x138)],'axis':_0x3e70fd['axis'],'outlineId':_0x3dbfb3(_0x539f7a)}),new _0x4d1876['CustomCommandExecutionError'](_0x539f7a instanceof Error?_0x539f7a[_0x5ceeb8(0x112)]:_0x5ceeb8(0x13c));}}function _0x1c418c(_0xd9bb69,_0x598ad2){const _0x308e50=_0x16ae05;switch(_0xd9bb69['id']){case _0x558706[_0x308e50(0xeb)]['id']:return _0x5c055e(_0xd9bb69[_0x308e50(0xe9)],'row',_0x598ad2);case _0x558706[_0x308e50(0x1c3)]['id']:return _0x5c055e(_0xd9bb69[_0x308e50(0xe9)],_0x308e50(0x171),_0x598ad2);case _0x558706[_0x308e50(0xef)]['id']:return _0x1a6283(_0xd9bb69[_0x308e50(0xe9)],_0x308e50(0x18c),_0x598ad2);case _0x558706['RemoveColCommand']['id']:return _0x1a6283(_0xd9bb69[_0x308e50(0xe9)],_0x308e50(0x171),_0x598ad2);case _0x558706['MoveRowsCommand']['id']:return _0x8db717(_0xd9bb69[_0x308e50(0xe9)],_0x308e50(0x18c),_0x598ad2);case _0x558706['MoveColsCommand']['id']:return _0x8db717(_0xd9bb69[_0x308e50(0xe9)],_0x308e50(0x171),_0x598ad2);default:return null;}}function _0x5c055e(_0xf19fd7,_0xc7cd95,_0x130c80){const _0x516e6a=_0x16ae05;let _0x251fa7=_0x1e5327(_0xf19fd7,_0x130c80);if(!(_0xf19fd7!=null&&_0xf19fd7[_0x516e6a(0x11b)])||!_0x251fa7)return null;let _0x26acb6=_0xc7cd95===_0x516e6a(0x18c)?_0xf19fd7['range'][_0x516e6a(0x1a4)]:_0xf19fd7[_0x516e6a(0x11b)][_0x516e6a(0x1bd)],_0x409ab2=_0xc7cd95===_0x516e6a(0x18c)?_0xf19fd7['range'][_0x516e6a(0x15e)]:_0xf19fd7[_0x516e6a(0x11b)][_0x516e6a(0x113)];return{..._0x251fa7,'axis':_0xc7cd95,'type':'insert','index':_0x26acb6,'count':_0x409ab2-_0x26acb6+0x1};}function _0x1a6283(_0x443334,_0x2745f0,_0x230ac4){const _0x311b17=_0x16ae05;let _0x2b218a=_0x1e5327(_0x443334,_0x230ac4);if(!(_0x443334!=null&&_0x443334[_0x311b17(0x11b)])||!_0x2b218a)return null;let _0x3b9596=_0x2745f0===_0x311b17(0x18c)?_0x443334[_0x311b17(0x11b)][_0x311b17(0x1a4)]:_0x443334[_0x311b17(0x11b)][_0x311b17(0x1bd)],_0x14c892=_0x2745f0==='row'?_0x443334[_0x311b17(0x11b)][_0x311b17(0x15e)]:_0x443334[_0x311b17(0x11b)][_0x311b17(0x113)];return{..._0x2b218a,'axis':_0x2745f0,'type':_0x311b17(0x1c5),'start':_0x3b9596,'end':_0x14c892};}function _0x8db717(_0x3ae999,_0x5d3f72,_0x792811){const _0x2bf7f6=_0x16ae05;let _0x2a3e61=_0x1e5327(_0x3ae999,_0x792811);if(!(_0x3ae999!=null&&_0x3ae999[_0x2bf7f6(0x149)])||!_0x3ae999[_0x2bf7f6(0xfc)]||!_0x2a3e61)return null;let _0x59e1e7=_0x5d3f72===_0x2bf7f6(0x18c)?_0x3ae999[_0x2bf7f6(0x149)][_0x2bf7f6(0x1a4)]:_0x3ae999[_0x2bf7f6(0x149)][_0x2bf7f6(0x1bd)],_0x3fb416=_0x5d3f72===_0x2bf7f6(0x18c)?_0x3ae999['fromRange'][_0x2bf7f6(0x15e)]:_0x3ae999[_0x2bf7f6(0x149)]['endColumn'],_0x405731=_0x5d3f72===_0x2bf7f6(0x18c)?_0x3ae999[_0x2bf7f6(0xfc)]['startRow']:_0x3ae999['toRange'][_0x2bf7f6(0x1bd)];return{..._0x2a3e61,'axis':_0x5d3f72,'type':_0x2bf7f6(0x18a),'sourceStart':_0x59e1e7,'sourceEnd':_0x3fb416,'destinationIndex':_0x405731};}function _0x1dceaa(_0x556141,_0x4a3118){const _0x11b539=_0x16ae05;switch(_0x556141[_0x11b539(0x1a2)]){case'insert':return{'unitId':_0x556141['unitId'],'subUnitId':_0x556141[_0x11b539(0x138)],'axis':_0x556141[_0x11b539(0x1b9)],'type':'delete','start':_0x556141[_0x11b539(0x107)],'end':_0x556141[_0x11b539(0x107)]+_0x556141[_0x11b539(0x101)]-0x1};case _0x11b539(0x1c5):return{'unitId':_0x556141['unitId'],'subUnitId':_0x556141[_0x11b539(0x138)],'axis':_0x556141['axis'],'type':'insert','index':_0x556141[_0x11b539(0x141)],'count':_0x556141['end']-_0x556141[_0x11b539(0x141)]+0x1,'restoreOutlines':_0x4a3118[_0x11b539(0x1b5)](_0x281bff=>_0x281bff['unitId']===_0x556141[_0x11b539(0x168)]&&_0x281bff[_0x11b539(0x138)]===_0x556141[_0x11b539(0x138)]&&_0x281bff[_0x11b539(0x1b9)]===_0x556141[_0x11b539(0x1b9)])};case _0x11b539(0x18a):return _0x23f0cd(_0x556141);}}function _0x23f0cd(_0x2b3b73){const _0x55e35a=_0x16ae05;let _0x372b6f=_0x2b3b73[_0x55e35a(0x125)]-_0x2b3b73[_0x55e35a(0x199)]+0x1;return _0x2b3b73['destinationIndex']>=_0x2b3b73[_0x55e35a(0x199)]&&_0x2b3b73[_0x55e35a(0x144)]<=_0x2b3b73['sourceEnd']+0x1?{..._0x2b3b73}:_0x2b3b73[_0x55e35a(0x144)]>_0x2b3b73[_0x55e35a(0x125)]+0x1?{..._0x2b3b73,'sourceStart':_0x2b3b73[_0x55e35a(0x144)]-_0x372b6f,'sourceEnd':_0x2b3b73[_0x55e35a(0x144)]-0x1,'destinationIndex':_0x2b3b73[_0x55e35a(0x199)]}:{..._0x2b3b73,'sourceStart':_0x2b3b73[_0x55e35a(0x144)],'sourceEnd':_0x2b3b73[_0x55e35a(0x144)]+_0x372b6f-0x1,'destinationIndex':_0x2b3b73[_0x55e35a(0x125)]+0x1};}function _0x1e5327(_0x2a797c,_0x4e6c4a){const _0x1396bc=_0x16ae05;let _0x570661=(_0x2a797c==null?void 0x0:_0x2a797c[_0x1396bc(0x168)])??(_0x4e6c4a==null?void 0x0:_0x4e6c4a[_0x1396bc(0x168)]),_0x35f985=(_0x2a797c==null?void 0x0:_0x2a797c[_0x1396bc(0x138)])??(_0x4e6c4a==null?void 0x0:_0x4e6c4a[_0x1396bc(0x138)]);return _0x570661&&_0x35f985?{'unitId':_0x570661,'subUnitId':_0x35f985}:null;}function _0x4d6671(){const _0x332f70=_0x16ae05;return{'redos':[..._0x15c861[_0x332f70(0x161)]],'undos':[..._0x15c861['undos']],'preRedos':[..._0x15c861[_0x332f70(0xe7)]??[]],'preUndos':[..._0x15c861[_0x332f70(0x1bf)]??[]]};}let _0x476796=class extends _0x4d1876[_0x16ae05(0x11a)]{constructor(_0x332b17,_0x3fe802){const _0x402262=_0x16ae05;super(),this['_resourceManagerService']=_0x332b17,this[_0x402262(0x135)]=_0x3fe802,this[_0x402262(0x122)]();}[_0x16ae05(0x122)](){const _0x5cacb9=_0x16ae05;this[_0x5cacb9(0x157)](this[_0x5cacb9(0x16e)]['registerPluginResource']({'pluginName':_0x341b52,'businesses':[_0x4d1876[_0x5cacb9(0x163)][_0x5cacb9(0x13a)]],'toJson':_0x2f15f1=>JSON[_0x5cacb9(0x17c)](this[_0x5cacb9(0x135)]['serialize'](_0x2f15f1)),'parseJson':_0x96552a=>JSON['parse'](_0x96552a),'onLoad':(_0x29c95b,_0x10cc2f)=>this[_0x5cacb9(0x135)][_0x5cacb9(0x1c4)](_0x29c95b,_0x10cc2f),'onUnLoad':_0x5541fc=>this[_0x5cacb9(0x135)][_0x5cacb9(0x106)](_0x5541fc)}));}};_0x476796=_0x279e74([_0x9aebc1(0x0,_0x4d1876[_0x16ae05(0x19e)]),_0x9aebc1(0x1,(0x0,_0x4d1876['Inject'])(_0x16b117))],_0x476796);let _0x5c2833=class extends _0x4d1876[_0x16ae05(0x153)]{constructor(_0x4e1540=_0x39622d,_0x188415,_0x47c026,_0x11a984){const _0x4a064b=_0x16ae05;super(),this[_0x4a064b(0x1ba)]=_0x4e1540,this[_0x4a064b(0x124)]=_0x188415,this[_0x4a064b(0x185)]=_0x47c026,this[_0x4a064b(0x13e)]=_0x11a984;let {..._0x2dd9c8}=(0x0,_0x4d1876[_0x4a064b(0x109)])({},_0x39622d,this['_config']);this[_0x4a064b(0x13e)][_0x4a064b(0x127)](_0x4a064b(0x19f),_0x2dd9c8);}[_0x16ae05(0x1a9)](){const _0x11b49d=_0x16ae05;this[_0x11b49d(0x124)][_0x11b49d(0x187)]([_0x16b117]),this[_0x11b49d(0x124)][_0x11b49d(0x187)]([_0x4c0b35]),this[_0x11b49d(0x124)][_0x11b49d(0x187)]([_0x476796]),this[_0x11b49d(0x124)][_0x11b49d(0x187)]([_0x516783]),this[_0x11b49d(0x162)](),this[_0x11b49d(0x124)][_0x11b49d(0x179)](_0x16b117),this[_0x11b49d(0x124)][_0x11b49d(0x179)](_0x4c0b35),this[_0x11b49d(0x124)][_0x11b49d(0x179)](_0x476796),this[_0x11b49d(0x124)]['get'](_0x516783);}[_0x16ae05(0x162)](){const _0x21ddee=_0x16ae05;[_0x2def6f,_0x276a1a,_0x235d70,_0x1b9d56][_0x21ddee(0x128)](_0x4d38d=>{const _0x1dfd4d=_0x21ddee;this[_0x1dfd4d(0x157)](this[_0x1dfd4d(0x185)][_0x1dfd4d(0x117)](_0x4d38d));}),[_0x4d3b61,_0x1a47bc,_0x2495dd,_0x2b58ee,_0x4367ca][_0x21ddee(0x128)](_0x27dc57=>{const _0x4af876=_0x21ddee;this[_0x4af876(0x157)](this[_0x4af876(0x185)]['registerCommand'](_0x27dc57));});}};_0x5e22d5(_0x5c2833,_0x16ae05(0x130),_0x341b52),_0x5e22d5(_0x5c2833,_0x16ae05(0x180),_0x8f25e7),_0x5e22d5(_0x5c2833,_0x16ae05(0x154),_0x3c250d),_0x5e22d5(_0x5c2833,_0x16ae05(0x1a2),_0x4d1876[_0x16ae05(0x163)][_0x16ae05(0x13a)]),_0x5c2833=_0x279e74([(0x0,_0x4d1876['DependentOn'])(_0x12905f[_0x16ae05(0x102)],_0x558706['UniverSheetsPlugin']),_0x9aebc1(0x1,(0x0,_0x4d1876[_0x16ae05(0x13d)])(_0x4d1876['Injector'])),_0x9aebc1(0x2,_0x4d1876[_0x16ae05(0xff)]),_0x9aebc1(0x3,_0x4d1876['IConfigService'])],_0x5c2833),_0x142619[_0x16ae05(0x1c2)]=_0x2def6f,_0x142619[_0x16ae05(0x194)]=_0x4d3b61,_0x142619['ClearDimensionOutlinesCommand']=_0x1b9d56,_0x142619['ClearDimensionOutlinesMutation']=_0x2b58ee,_0x142619[_0x16ae05(0x10c)]=_0x4d35e3,_0x142619[_0x16ae05(0x15a)]=_0x49ba8e,_0x142619[_0x16ae05(0x13f)]=_0x276a1a,_0x142619[_0x16ae05(0x1a1)]=_0x1a47bc,_0x142619[_0x16ae05(0x10f)]=_0x341b52,_0x142619['SetDimensionOutlineCollapsedCommand']=_0x235d70,_0x142619[_0x16ae05(0x111)]=_0x2495dd,_0x142619[_0x16ae05(0x189)]=_0x4c0b35,_0x142619[_0x16ae05(0x160)]=_0x16b117,_0x142619[_0x16ae05(0x1bc)]=_0x4367ca,Object[_0x16ae05(0x1a5)](_0x142619,_0x16ae05(0x123),{'enumerable':!0x0,'get':function(){return _0x5c2833;}}),_0x142619[_0x16ae05(0x133)]=_0x5ab0c7,_0x142619['canAddDimensionOutline']=_0x2f5d03,_0x142619[_0x16ae05(0x10b)]=_0x3e4bb0,_0x142619[_0x16ae05(0x139)]=_0x319f8c,_0x142619[_0x16ae05(0x14b)]=_0x1b821d,_0x142619['transformOutlinesByInsert']=_0x50dc62,_0x142619[_0x16ae05(0x1af)]=_0x1306bc;}));
1
+ function _0x24be(_0x472e0a,_0x5accdc){_0x472e0a=_0x472e0a-0x1d7;const _0x358196=_0x3581();let _0x24bec0=_0x358196[_0x472e0a];return _0x24bec0;}function _0x3581(){const _0x25dc0f=['1613724nEVKXm','@univerjs-pro/sheets-outline','collapsed','type','row','Module','children','invalid-range','symbol','pipe','startColumn','defineProperty','UniverCore','getSheetCommandTarget','column','length','toRange','IResourceManagerService','12OqWPiA','2885316DuUqMT','unknown','outline','valid','function','UniverProSheetsOutline','invalid-dimension-outline','next','UniverInstanceType','mergedOutlines','AddDimensionOutlineCommand','out-of-bounds','IConfigService','delete','SetRowVisibleMutation','SheetInterceptorService','preRedos','complete','_sheetsOutlineModel','default','Invalid\x20outline\x20range','SetRowHiddenMutation','_univerInstanceService','_injector','_resourceManagerService','endRow','constructor','startRow','fromRange','move','_configService','1074520eNacxu','getMaxColumns','range','544518ZHMIrY','result','getSheetBySheetId','push','CROSSING','filter','destinationIndex','MoveColsCommand','Disposable','getOutlines','SetColHiddenMutation','endColumn','restoreOutlines','emit','find','join','crossing','registerCommand','stringify','index','RemoveRowCommand','registerPluginResource','MAX_DEPTH','move-splits-outline','hasDimensionOutlineViewPermission','Inject','Subject','offset','forEach','sort','start','7105576gqjkKp','_outlines','sheet.command.remove-dimension-outline','split','params','unitId','_change$','mergedOutline','localeCompare','ClearDimensionOutlinesCommand','count','DimensionOutlineError','amd','clear-range-not-contain-outline','operators','sheet.mutation.clear-dimension-outlines','getUnitOutlines','sheet.command.clear-dimension-outlines','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','toStringTag','_initResource','SetDimensionOutlineCollapsedMutation','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','InsertRowCommand','message','MUTATION','IPermissionService','subUnitId','max','CustomCommandExecutionError','Move\x20would\x20split\x20dimension\x20outline:\x20','Invalid\x20dimension\x20outline\x20mutation','undos','map','UniverSheetsPlugin','from','sheet.mutation.remove-dimension-outline','axis','pop','getDimensionOutlineViewPermission$','RemoveDimensionOutlineMutation','entries','808088KvdwPt','IUniverInstanceService','transformOutlinesByDelete','set','_initCommandInterceptor','Crossing','Invalid\x20dimension\x20outline\x20move\x20source\x20range','split\x20dimension\x20outline','SetColVisibleMutation','COMMAND','redos','OUT_OF_BOUNDS','4906223jbiyse','_initRegisterCommand','getColumnCount','Injector','UniverSheetsOutlinePlugin','getSheetId','end','disposeWithMe','_ensureUnitOutlines','outlineList','min','rxjs','sourceEnd','ROW','sheet.mutation.add-dimension-outline','version','UniverSheets','buildDimensionOutlineTree','UniverLicensePlugin','dispose','getCurrentUnitOfType','_sheetInterceptorService','dimension-outline-','_commandService','asObservable','string','error$','insert','AddDimensionOutlineMutation','1.0.0-beta.2','SheetPermissionCheckController','canAddDimensionOutline','removeUnit','MoveRowsCommand','ClearDimensionOutlinesMutation','getUnitId','transformOutlinesByInsert','ICommandService','TransformDimensionOutlinesMutation','includes','pushUndoRedo','IUndoRedoService','startWith','outlineId','depth','MOVE_SPLITS_OUTLINE','_error$','INVALID_RANGE','merge','toPrimitive','name','sheet.mutation.set-dimension-outline-collapsed','UNKNOWN','deserialize','decorate','sourceStart','_sheetsOutlineErrorService','_config','add','@univerjs/core','maxIndex','Plugin','max-depth','setOutlines','UNIVER_SHEET','iterator','permissionCheckWithoutRange','getRowCount','reason','pluginName','object','CommandType','RemoveColCommand','sequenceExecute','has','get','change$'];_0x3581=function(){return _0x25dc0f;};return _0x3581();}(function(_0xdbeb,_0x194aa2){const _0x4bcf7d=_0x24be,_0x239073=_0xdbeb();while(!![]){try{const _0xd62f9e=-parseInt(_0x4bcf7d(0x1f3))/0x1+parseInt(_0x4bcf7d(0x281))/0x2+parseInt(_0x4bcf7d(0x25f))/0x3+parseInt(_0x4bcf7d(0x24c))/0x4+parseInt(_0x4bcf7d(0x27e))/0x5*(-parseInt(_0x4bcf7d(0x25e))/0x6)+-parseInt(_0x4bcf7d(0x1ff))/0x7+parseInt(_0x4bcf7d(0x2a0))/0x8;if(_0xd62f9e===_0x194aa2)break;else _0x239073['push'](_0x239073['shift']());}catch(_0x410dc4){_0x239073['push'](_0x239073['shift']());}}}(_0x3581,0x8f47a),function(_0x13a75f,_0x20778b){const _0x12ee15=_0x24be;typeof exports==_0x12ee15(0x245)&&typeof module<'u'?_0x20778b(exports,require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs-pro/license')):typeof define=='function'&&define[_0x12ee15(0x2ac)]?define(['exports',_0x12ee15(0x23a),'@univerjs/sheets',_0x12ee15(0x20a),'rxjs/operators','@univerjs-pro/license'],_0x20778b):(_0x13a75f=typeof globalThis<'u'?globalThis:_0x13a75f||self,_0x20778b(_0x13a75f[_0x12ee15(0x264)]={},_0x13a75f[_0x12ee15(0x258)],_0x13a75f[_0x12ee15(0x20f)],_0x13a75f[_0x12ee15(0x20a)],_0x13a75f[_0x12ee15(0x20a)][_0x12ee15(0x1d7)],_0x13a75f['UniverProLicense']));}(this,function(_0x47e37b,_0x6392c9,_0x16fc48,_0x44301b,_0x3766b1,_0x1e3a2b){const _0x59d0b1=_0x24be;Object[_0x59d0b1(0x257)](_0x47e37b,Symbol[_0x59d0b1(0x1dc)],{'value':_0x59d0b1(0x251)});let _0x1801e3=function(_0x521692){const _0x1e697c=_0x59d0b1;return _0x521692[_0x1e697c(0x20c)]=_0x1e697c(0x250),_0x521692['COLUMN']=_0x1e697c(0x25a),_0x521692;}({}),_0x57d48f=function(_0x1694e7){const _0x58ff93=_0x59d0b1;return _0x1694e7[_0x58ff93(0x22e)]='invalid-range',_0x1694e7[_0x58ff93(0x1fe)]=_0x58ff93(0x26a),_0x1694e7[_0x58ff93(0x285)]=_0x58ff93(0x291),_0x1694e7[_0x58ff93(0x297)]='max-depth',_0x1694e7[_0x58ff93(0x22c)]=_0x58ff93(0x298),_0x1694e7['CLEAR_RANGE_NOT_CONTAIN_OUTLINE']=_0x58ff93(0x2ad),_0x1694e7[_0x58ff93(0x233)]=_0x58ff93(0x260),_0x1694e7;}({});var _0x4e7363=class extends Error{constructor(_0x399085,_0x38eb64,_0x5625ef){const _0x5cddfe=_0x59d0b1;super(_0x38eb64),this[_0x5cddfe(0x243)]=_0x399085,this[_0x5cddfe(0x22a)]=_0x5625ef,this[_0x5cddfe(0x231)]=_0x5cddfe(0x2ab);}};function _0xc53463(_0x276e48){const _0x1db820=_0x59d0b1;return _0x276e48 instanceof _0x4e7363?_0x276e48['reason']:_0x276e48 instanceof Error?_0x276e48[_0x1db820(0x1e1)][_0x1db820(0x226)](_0x1db820(0x1fa))?_0x1db820(0x298):_0x276e48['message']['includes']('depth')?_0x1db820(0x23d):_0x276e48[_0x1db820(0x1e1)]['includes'](_0x1db820(0x1f8))?'crossing':_0x276e48[_0x1db820(0x1e1)][_0x1db820(0x226)](_0x1db820(0x280))?_0x1db820(0x253):'unknown':_0x1db820(0x260);}function _0x49437b(_0x381404){const _0x516fe4=_0x59d0b1;return _0x381404 instanceof _0x4e7363?_0x381404[_0x516fe4(0x22a)]:void 0x0;}let _0x46be6a=0x2**0x35-0x1;function _0x2fd3a0(_0x472e3d,_0x41dfbc){const _0x21d0b9=_0x59d0b1;return _0x472e3d[_0x21d0b9(0x2a5)]===_0x41dfbc['unitId']&&_0x472e3d[_0x21d0b9(0x1e4)]===_0x41dfbc[_0x21d0b9(0x1e4)]&&_0x472e3d['axis']===_0x41dfbc[_0x21d0b9(0x1ee)];}function _0x2c48d0(_0x5888da,_0x559b13={}){const _0x2596b0=_0x59d0b1;let _0x4c47e0=_0x559b13['maxDepth']??0x8,_0x1d532c=new Map();for(let _0x3539e1 of _0x5888da){let _0x4f5e38=_0x3539e1[_0x2596b0(0x2a5)]+':'+_0x3539e1[_0x2596b0(0x1e4)]+':'+_0x3539e1['axis'],_0x5ce029=_0x1d532c['get'](_0x4f5e38);_0x5ce029?_0x5ce029[_0x2596b0(0x284)](_0x3539e1):_0x1d532c[_0x2596b0(0x1f6)](_0x4f5e38,[_0x3539e1]);}let _0x2ff4ec=[];for(let _0x499b69 of _0x1d532c['values']()){let _0x48daf7=[..._0x499b69][_0x2596b0(0x29e)](_0x48c962),_0x3823df=[];for(let _0x393db5 of _0x48daf7){for(_0x41f0d7(_0x393db5);_0x3823df['length']>0x0&&_0x393db5['start']>_0x3823df[_0x3823df['length']-0x1][_0x2596b0(0x205)];)_0x3823df[_0x2596b0(0x1ef)]();let _0x267375=_0x3823df[_0x3823df[_0x2596b0(0x25b)]-0x1];if(_0x267375&&_0x393db5[_0x2596b0(0x205)]>_0x267375[_0x2596b0(0x205)])throw new _0x4e7363(_0x2596b0(0x291),_0x2596b0(0x1df),_0x393db5['id']);let _0x464da9=_0x267375?_0x267375[_0x2596b0(0x22b)]+0x1:0x1;if(_0x464da9>_0x4c47e0)throw new _0x4e7363('max-depth',_0x2596b0(0x1db)+_0x4c47e0,_0x393db5['id']);let _0xdc2bcc={..._0x393db5,'depth':_0x464da9,'parentId':_0x267375==null?void 0x0:_0x267375['id'],'anchor':_0x393db5[_0x2596b0(0x205)],'children':[]};_0x267375?_0x267375[_0x2596b0(0x252)][_0x2596b0(0x284)](_0xdc2bcc):_0x2ff4ec[_0x2596b0(0x284)](_0xdc2bcc),_0x3823df[_0x2596b0(0x284)](_0xdc2bcc);}}return _0x2ff4ec;}function _0x1ccc19(_0x3e3493,_0x3078e9,_0x589585={}){const _0x325329=_0x59d0b1;if(_0x3078e9['start']<0x0||_0x3078e9[_0x325329(0x29f)]>_0x3078e9[_0x325329(0x205)])return{'valid':!0x1,'reason':_0x325329(0x253)};if(_0x589585[_0x325329(0x23b)]!=null&&_0x3078e9['end']>=_0x589585[_0x325329(0x23b)])return{'valid':!0x1,'reason':'out-of-bounds'};let _0x4bd48a=_0x3e3493[_0x325329(0x286)](_0x585e67=>_0x2fd3a0(_0x585e67,_0x3078e9));for(let _0x179646 of _0x4bd48a)if(_0x406248(_0x179646,_0x3078e9))return{'valid':!0x1,'reason':_0x325329(0x291)};try{_0x2c48d0([..._0x3e3493,_0x3078e9],_0x589585);}catch(_0x17f0a0){let _0x306701=_0xc53463(_0x17f0a0);return _0x306701===_0x325329(0x23d)?{'valid':!0x1,'reason':_0x325329(0x23d)}:_0x306701===_0x325329(0x253)?{'valid':!0x1,'reason':_0x325329(0x253)}:{'valid':!0x1,'reason':_0x325329(0x291)};}return{'valid':!0x0};}function _0x1f3785(_0x435bcd,_0x1111ca,_0x5b3b71={}){const _0x4bf6c4=_0x59d0b1;let _0x2bbe58=_0x1ccc19(_0x435bcd,_0x1111ca,_0x5b3b71);if(!_0x2bbe58['valid'])throw Error(_0x2bbe58[_0x4bf6c4(0x243)]??_0x4bf6c4(0x265));return[..._0x435bcd,_0x1111ca];}function _0x3f50fe(_0x56fc6a,_0x4fecab){const _0x57b15c=_0x59d0b1;let _0x563c04=_0x4fecab['start'],_0x2e79ee=_0x4fecab[_0x57b15c(0x205)],_0x543d85=[],_0x1939e0=!0x0;for(;_0x1939e0;){_0x1939e0=!0x1;for(let _0x310cea of _0x56fc6a)_0x543d85[_0x57b15c(0x226)](_0x310cea)||!_0x2fd3a0(_0x310cea,_0x4fecab)||!_0x1a2108(_0x310cea[_0x57b15c(0x29f)],_0x310cea['end'],_0x563c04,_0x2e79ee)||(_0x543d85['push'](_0x310cea),_0x563c04=Math[_0x57b15c(0x209)](_0x563c04,_0x310cea[_0x57b15c(0x29f)]),_0x2e79ee=Math[_0x57b15c(0x1e5)](_0x2e79ee,_0x310cea[_0x57b15c(0x205)]),_0x1939e0=!0x0);}if(_0x543d85[_0x57b15c(0x25b)]===0x0)return null;let [_0x569858]=[..._0x543d85][_0x57b15c(0x29e)](_0x48c962);return{'mergedOutline':{..._0x569858,'start':_0x563c04,'end':_0x2e79ee},'mergedOutlines':_0x543d85};}function _0x48ec44(_0x53aefb,_0x95c4d9){const _0x28071e=_0x59d0b1;return _0x53aefb[_0x28071e(0x286)](_0x4a1346=>!_0x2fd3a0(_0x4a1346,_0x95c4d9)||!(_0x4a1346[_0x28071e(0x29f)]>=_0x95c4d9[_0x28071e(0x29f)]&&_0x4a1346[_0x28071e(0x205)]<=_0x95c4d9[_0x28071e(0x205)]));}function _0x670be9(_0x3c57b0,_0x4af1db,_0x269246,_0x20a340){const _0x3282ac=_0x59d0b1;return _0x249a1b(_0x3c57b0['filter'](_0x47cbc0=>_0x47cbc0[_0x3282ac(0x2a5)]===_0x4af1db&&_0x47cbc0['subUnitId']===_0x269246&&_0x47cbc0['axis']===_0x20a340&&_0x47cbc0[_0x3282ac(0x24e)])[_0x3282ac(0x1ea)](_0x8b7669=>({'start':_0x8b7669[_0x3282ac(0x29f)],'end':_0x8b7669[_0x3282ac(0x205)]})));}function _0x249a1b(_0x48b615){const _0x2338db=_0x59d0b1;if(_0x48b615['length']===0x0)return[];let _0x512ae=[..._0x48b615][_0x2338db(0x29e)]((_0xb15265,_0x4a544c)=>_0xb15265[_0x2338db(0x29f)]-_0x4a544c[_0x2338db(0x29f)]||_0xb15265['end']-_0x4a544c[_0x2338db(0x205)]),_0x4af37f=[];for(let _0x12aa8e of _0x512ae){let _0x414917=_0x4af37f[_0x4af37f[_0x2338db(0x25b)]-0x1];!_0x414917||_0x12aa8e[_0x2338db(0x29f)]>_0x414917[_0x2338db(0x205)]+0x1?_0x4af37f[_0x2338db(0x284)]({..._0x12aa8e}):_0x414917[_0x2338db(0x205)]=Math[_0x2338db(0x1e5)](_0x414917[_0x2338db(0x205)],_0x12aa8e[_0x2338db(0x205)]);}return _0x4af37f;}function _0x325e96(_0x35bb27,_0x4993fb){const _0x4f1247=_0x59d0b1;return _0x4993fb[_0x4f1247(0x2aa)]<=0x0?_0x35bb27:_0x1cb1ed(_0x35bb27[_0x4f1247(0x1ea)](_0x137762=>_0x2fd3a0(_0x137762,_0x4993fb)?_0x4993fb[_0x4f1247(0x294)]<=_0x137762['start']?{..._0x137762,'start':_0x137762[_0x4f1247(0x29f)]+_0x4993fb[_0x4f1247(0x2aa)],'end':_0x137762[_0x4f1247(0x205)]+_0x4993fb[_0x4f1247(0x2aa)]}:_0x137762['start']<_0x4993fb['index']&&_0x4993fb[_0x4f1247(0x294)]<=_0x137762[_0x4f1247(0x205)]?{..._0x137762,'end':_0x137762[_0x4f1247(0x205)]+_0x4993fb['count']}:_0x137762:_0x137762));}function _0x3a7c4c(_0x40a33c,_0x3cc813){const _0x1ba67e=_0x59d0b1;if(_0x3cc813['start']>_0x3cc813[_0x1ba67e(0x205)])return _0x40a33c;let _0x298b9b=_0x3cc813[_0x1ba67e(0x205)]-_0x3cc813[_0x1ba67e(0x29f)]+0x1,_0xb7cb1d=[];for(let _0x28d211 of _0x40a33c){if(!_0x2fd3a0(_0x28d211,_0x3cc813)){_0xb7cb1d['push'](_0x28d211);continue;}if(_0x28d211[_0x1ba67e(0x205)]<_0x3cc813['start']){_0xb7cb1d['push'](_0x28d211);continue;}if(_0x28d211[_0x1ba67e(0x29f)]>_0x3cc813[_0x1ba67e(0x205)]){_0xb7cb1d[_0x1ba67e(0x284)]({..._0x28d211,'start':_0x28d211['start']-_0x298b9b,'end':_0x28d211['end']-_0x298b9b});continue;}let _0x2a6dc4=Math[_0x1ba67e(0x1e5)](_0x28d211['start'],_0x3cc813[_0x1ba67e(0x29f)]),_0x458b4f=Math[_0x1ba67e(0x209)](_0x28d211['end'],_0x3cc813[_0x1ba67e(0x205)]),_0x435475=Math[_0x1ba67e(0x1e5)](0x0,_0x458b4f-_0x2a6dc4+0x1),_0x825c1d=_0x28d211[_0x1ba67e(0x205)]-_0x28d211[_0x1ba67e(0x29f)]+0x1-_0x435475;if(_0x825c1d<=0x0)continue;let _0x22543d=_0x28d211[_0x1ba67e(0x29f)]<_0x3cc813['start']?_0x28d211[_0x1ba67e(0x29f)]:_0x3cc813['start'];_0xb7cb1d[_0x1ba67e(0x284)]({..._0x28d211,'start':_0x22543d,'end':_0x22543d+_0x825c1d-0x1});}return _0x1cb1ed(_0xb7cb1d);}function _0x596030(_0x1113c7,_0x37cae1){const _0x3a14e0=_0x59d0b1;if(_0x37cae1[_0x3a14e0(0x236)]>_0x37cae1['sourceEnd'])return _0x1113c7;let _0x2e00c3=[];for(let _0x52c7d2 of _0x1113c7){if(!_0x2fd3a0(_0x52c7d2,_0x37cae1)){_0x2e00c3[_0x3a14e0(0x284)](_0x52c7d2);continue;}let _0x9f05b7=_0x56a726(_0x52c7d2,_0x37cae1);if(_0x9f05b7[_0x3a14e0(0x24f)]===_0x3a14e0(0x2a3))throw new _0x4e7363('move-splits-outline',_0x3a14e0(0x1e7)+_0x52c7d2['id'],_0x52c7d2['id']);_0x2e00c3['push'](_0x9f05b7[_0x3a14e0(0x261)]);}return _0x1cb1ed(_0x2e00c3);}function _0x56a726(_0x99b4,_0x2cba49){const _0x3f27a0=_0x59d0b1;let _0x2dce99=_0x78fc8c(_0x2cba49[_0x3f27a0(0x236)],_0x2cba49[_0x3f27a0(0x20b)]+0x1,_0x2cba49[_0x3f27a0(0x287)]),_0x554d49=[],_0x14735d={'start':_0x99b4[_0x3f27a0(0x29f)],'end':_0x99b4[_0x3f27a0(0x205)]+0x1};for(let _0x2811c0 of _0x2dce99){let _0x3efd25=_0x5d132a(_0x14735d,_0x2811c0[_0x3f27a0(0x280)]);_0x3efd25&&_0x554d49[_0x3f27a0(0x284)]({'start':_0x3efd25[_0x3f27a0(0x29f)]+_0x2811c0['offset'],'end':_0x3efd25[_0x3f27a0(0x205)]+_0x2811c0[_0x3f27a0(0x29c)]});}let _0x27eeb9=_0xeb40fe(_0x554d49);return _0x27eeb9[_0x3f27a0(0x25b)]===0x1?{'type':'ok','outline':{..._0x99b4,'start':_0x27eeb9[0x0][_0x3f27a0(0x29f)],'end':_0x27eeb9[0x0][_0x3f27a0(0x205)]-0x1}}:{'type':_0x3f27a0(0x2a3),'outline':_0x99b4,'ranges':_0x27eeb9};}function _0x78fc8c(_0x5f19fc,_0x2a88ba,_0x1c5112){const _0x2539c5=_0x59d0b1;let _0x431506=_0x2a88ba-_0x5f19fc;if(_0x431506<=0x0)throw Error(_0x2539c5(0x1f9));return _0x1c5112>=_0x5f19fc&&_0x1c5112<=_0x2a88ba?[{'range':{'start':0x0,'end':_0x46be6a},'offset':0x0}]:_0x1c5112<_0x5f19fc?[{'range':{'start':0x0,'end':_0x1c5112},'offset':0x0},{'range':{'start':_0x1c5112,'end':_0x5f19fc},'offset':_0x431506},{'range':{'start':_0x5f19fc,'end':_0x2a88ba},'offset':_0x1c5112-_0x5f19fc},{'range':{'start':_0x2a88ba,'end':_0x46be6a},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x5f19fc},'offset':0x0},{'range':{'start':_0x5f19fc,'end':_0x2a88ba},'offset':_0x1c5112-_0x2a88ba},{'range':{'start':_0x2a88ba,'end':_0x1c5112},'offset':-_0x431506},{'range':{'start':_0x1c5112,'end':_0x46be6a},'offset':0x0}];}function _0x5d132a(_0x2b64e6,_0x3200d7){const _0xd940c=_0x59d0b1;let _0x427dcb=Math[_0xd940c(0x1e5)](_0x2b64e6[_0xd940c(0x29f)],_0x3200d7[_0xd940c(0x29f)]),_0x41848f=Math[_0xd940c(0x209)](_0x2b64e6[_0xd940c(0x205)],_0x3200d7[_0xd940c(0x205)]);return _0x427dcb>=_0x41848f?null:{'start':_0x427dcb,'end':_0x41848f};}function _0xeb40fe(_0x210287){const _0x3de01a=_0x59d0b1;if(_0x210287['length']===0x0)return[];let _0x21d018=[..._0x210287][_0x3de01a(0x29e)]((_0x515334,_0x1cfb6a)=>_0x515334[_0x3de01a(0x29f)]-_0x1cfb6a[_0x3de01a(0x29f)]||_0x515334[_0x3de01a(0x205)]-_0x1cfb6a[_0x3de01a(0x205)]),_0x33c990=[];for(let _0x238374 of _0x21d018){let _0x3f9f64=_0x33c990[_0x33c990['length']-0x1];!_0x3f9f64||_0x238374[_0x3de01a(0x29f)]>_0x3f9f64['end']?_0x33c990[_0x3de01a(0x284)]({..._0x238374}):_0x3f9f64['end']=Math['max'](_0x3f9f64['end'],_0x238374[_0x3de01a(0x205)]);}return _0x33c990;}function _0x1a2108(_0x1da648,_0x462cb1,_0x3ffdc1,_0x5c156c){return _0x462cb1+0x1===_0x3ffdc1||_0x5c156c+0x1===_0x1da648;}function _0x1cb1ed(_0x2ab50a){let _0x197b07=_0x57b970(_0x2ab50a);return _0x2c48d0(_0x197b07),_0x197b07;}function _0x57b970(_0x450185){const _0x373b62=_0x59d0b1;let _0x463e93=new Map();for(let _0xa04296 of _0x450185){let _0x509c39=[_0xa04296['unitId'],_0xa04296[_0x373b62(0x1e4)],_0xa04296[_0x373b62(0x1ee)],_0xa04296[_0x373b62(0x29f)],_0xa04296['end']][_0x373b62(0x290)](':'),_0x5a5309=_0x463e93[_0x373b62(0x24a)](_0x509c39);if(!_0x5a5309){_0x463e93[_0x373b62(0x1f6)](_0x509c39,_0xa04296);continue;}_0x463e93['set'](_0x509c39,{..._0x5a5309,'collapsed':_0x5a5309[_0x373b62(0x24e)]||_0xa04296[_0x373b62(0x24e)]});}return Array[_0x373b62(0x1ec)](_0x463e93['values']());}function _0x48c962(_0x7f6d19,_0x18baa6){const _0x3e106a=_0x59d0b1;return _0x7f6d19[_0x3e106a(0x2a5)]===_0x18baa6[_0x3e106a(0x2a5)]?_0x7f6d19[_0x3e106a(0x1e4)]===_0x18baa6[_0x3e106a(0x1e4)]?_0x7f6d19['axis']===_0x18baa6[_0x3e106a(0x1ee)]?_0x7f6d19[_0x3e106a(0x29f)]===_0x18baa6[_0x3e106a(0x29f)]?_0x18baa6['end']-_0x7f6d19[_0x3e106a(0x205)]:_0x7f6d19[_0x3e106a(0x29f)]-_0x18baa6['start']:_0x7f6d19[_0x3e106a(0x1ee)][_0x3e106a(0x2a8)](_0x18baa6[_0x3e106a(0x1ee)]):_0x7f6d19[_0x3e106a(0x1e4)]['localeCompare'](_0x18baa6[_0x3e106a(0x1e4)]):_0x7f6d19['unitId'][_0x3e106a(0x2a8)](_0x18baa6[_0x3e106a(0x2a5)]);}function _0x41f0d7(_0x220ec3){const _0x4afdd3=_0x59d0b1;if(_0x220ec3[_0x4afdd3(0x29f)]>_0x220ec3[_0x4afdd3(0x205)])throw new _0x4e7363(_0x4afdd3(0x253),_0x4afdd3(0x273),_0x220ec3['id']);}function _0x406248(_0x584785,_0x2fe6a7){const _0x4d09c8=_0x59d0b1;let _0x311830=_0x584785[_0x4d09c8(0x29f)]<=_0x2fe6a7[_0x4d09c8(0x205)]&&_0x2fe6a7[_0x4d09c8(0x29f)]<=_0x584785[_0x4d09c8(0x205)],_0x570cdb=_0x584785['start']<=_0x2fe6a7[_0x4d09c8(0x29f)]&&_0x2fe6a7['end']<=_0x584785['end'],_0x3e9e41=_0x2fe6a7[_0x4d09c8(0x29f)]<=_0x584785['start']&&_0x584785[_0x4d09c8(0x205)]<=_0x2fe6a7[_0x4d09c8(0x205)];return _0x311830&&!_0x570cdb&&!_0x3e9e41;}function _0x14b11f(_0x3cccd1){'@babel/helpers - typeof';const _0x5be363=_0x59d0b1;return _0x14b11f=typeof Symbol==_0x5be363(0x263)&&typeof Symbol[_0x5be363(0x240)]==_0x5be363(0x254)?function(_0x30d287){return typeof _0x30d287;}:function(_0x1bcd3c){const _0x1cf062=_0x5be363;return _0x1bcd3c&&typeof Symbol==_0x1cf062(0x263)&&_0x1bcd3c[_0x1cf062(0x279)]===Symbol&&_0x1bcd3c!==Symbol['prototype']?_0x1cf062(0x254):typeof _0x1bcd3c;},_0x14b11f(_0x3cccd1);}function _0x121005(_0x161b55,_0x4335e8){const _0xa42f5c=_0x59d0b1;if(_0x14b11f(_0x161b55)!=_0xa42f5c(0x245)||!_0x161b55)return _0x161b55;var _0x208432=_0x161b55[Symbol[_0xa42f5c(0x230)]];if(_0x208432!==void 0x0){var _0x18e39d=_0x208432['call'](_0x161b55,_0x4335e8||_0xa42f5c(0x272));if(_0x14b11f(_0x18e39d)!=_0xa42f5c(0x245))return _0x18e39d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4335e8===_0xa42f5c(0x218)?String:Number)(_0x161b55);}function _0x5eb0a0(_0x5b6fc9){const _0x2ebadc=_0x59d0b1;var _0x131a27=_0x121005(_0x5b6fc9,'string');return _0x14b11f(_0x131a27)==_0x2ebadc(0x254)?_0x131a27:_0x131a27+'';}function _0x2a700f(_0x10a904,_0x115a77,_0x1d5001){const _0x27d93a=_0x59d0b1;return(_0x115a77=_0x5eb0a0(_0x115a77))in _0x10a904?Object[_0x27d93a(0x257)](_0x10a904,_0x115a77,{'value':_0x1d5001,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x10a904[_0x115a77]=_0x1d5001,_0x10a904;}var _0x2df0e2=class extends _0x6392c9[_0x59d0b1(0x289)]{constructor(..._0x104827){const _0x9dbfcd=_0x59d0b1;super(..._0x104827),_0x2a700f(this,'_outlines',new Map()),_0x2a700f(this,_0x9dbfcd(0x2a6),new _0x44301b[(_0x9dbfcd(0x29b))]()),_0x2a700f(this,_0x9dbfcd(0x24b),this['_change$'][_0x9dbfcd(0x217)]());}['getOutlines'](_0x1f3a6a,_0x625ecd){const _0x4e12a1=_0x59d0b1;var _0x2b4b7e;return[...((_0x2b4b7e=this[_0x4e12a1(0x2a1)]['get'](_0x1f3a6a))==null?void 0x0:_0x2b4b7e['get'](_0x625ecd))??[]];}[_0x59d0b1(0x1d9)](_0x17c54d){const _0x56e7f5=_0x59d0b1;let _0x371339=this[_0x56e7f5(0x2a1)][_0x56e7f5(0x24a)](_0x17c54d),_0x121ea9=new Map();return _0x371339==null||_0x371339[_0x56e7f5(0x29d)]((_0x307ff2,_0x355f76)=>{const _0x1268dd=_0x56e7f5;_0x121ea9[_0x1268dd(0x1f6)](_0x355f76,[..._0x307ff2]);}),_0x121ea9;}[_0x59d0b1(0x23e)](_0x148f54,_0x5b8e29,_0x368a85){const _0x5d4c98=_0x59d0b1;this[_0x5d4c98(0x207)](_0x148f54)['set'](_0x5b8e29,[..._0x368a85]),this[_0x5d4c98(0x2a6)][_0x5d4c98(0x266)]({'unitId':_0x148f54,'subUnitId':_0x5b8e29});}[_0x59d0b1(0x21f)](_0x444744){const _0x5b9e8f=_0x59d0b1;this[_0x5b9e8f(0x2a1)]['delete'](_0x444744),this[_0x5b9e8f(0x2a6)][_0x5b9e8f(0x266)]({'unitId':_0x444744});}['serialize'](_0x40ee89){const _0x5c46e3=_0x59d0b1;let _0x980441=this[_0x5c46e3(0x2a1)]['get'](_0x40ee89),_0x569a36={};return _0x980441==null||_0x980441['forEach']((_0x31f138,_0x58e251)=>{_0x569a36[_0x58e251]={'outlineList':[..._0x31f138]};}),_0x569a36;}[_0x59d0b1(0x234)](_0x59b92e,_0x53a404){const _0x3743c3=_0x59d0b1;let _0x2ff928=new Map();Object[_0x3743c3(0x1f2)](_0x53a404)[_0x3743c3(0x29d)](([_0x2145c5,_0x54f5e1])=>{const _0x4802ca=_0x3743c3;_0x2ff928['set'](_0x2145c5,[..._0x54f5e1[_0x4802ca(0x208)]??[]]);}),this[_0x3743c3(0x2a1)]['set'](_0x59b92e,_0x2ff928),this[_0x3743c3(0x2a6)]['next']({'unitId':_0x59b92e});}['dispose'](){const _0x5e4cf3=_0x59d0b1;super['dispose'](),this[_0x5e4cf3(0x2a1)]['clear'](),this[_0x5e4cf3(0x2a6)][_0x5e4cf3(0x270)]();}['_ensureUnitOutlines'](_0x28b38f){const _0x20d68f=_0x59d0b1;let _0x16cac3=this['_outlines'][_0x20d68f(0x24a)](_0x28b38f);return _0x16cac3||(_0x16cac3=new Map(),this['_outlines'][_0x20d68f(0x1f6)](_0x28b38f,_0x16cac3)),_0x16cac3;}},_0xaca6a4=class extends _0x6392c9[_0x59d0b1(0x289)]{constructor(..._0x265032){const _0x259ce8=_0x59d0b1;super(..._0x265032),_0x2a700f(this,'_error$',new _0x44301b[(_0x259ce8(0x29b))]()),_0x2a700f(this,_0x259ce8(0x219),this['_error$']['asObservable']());}[_0x59d0b1(0x28e)](_0x5dfa76){const _0x361fc6=_0x59d0b1;this[_0x361fc6(0x22d)]['next'](_0x5dfa76);}[_0x59d0b1(0x212)](){const _0x16caa6=_0x59d0b1;super[_0x16caa6(0x212)](),this[_0x16caa6(0x22d)][_0x16caa6(0x270)]();}};let _0x153235={'id':_0x59d0b1(0x20d),'type':_0x6392c9['CommandType'][_0x59d0b1(0x1e2)],'handler':(_0x376256,_0x75c26e)=>{const _0x404791=_0x59d0b1;let _0x3a3d9a=_0x376256['get'](_0x2df0e2),_0x4946c1=_0x3a3d9a[_0x404791(0x28a)](_0x75c26e[_0x404791(0x2a5)],_0x75c26e['subUnitId']);return _0x3a3d9a[_0x404791(0x23e)](_0x75c26e['unitId'],_0x75c26e['subUnitId'],_0x1f3785(_0x4946c1,_0x75c26e[_0x404791(0x261)])),!0x0;}},_0x275e14={'id':_0x59d0b1(0x1ed),'type':_0x6392c9['CommandType'][_0x59d0b1(0x1e2)],'handler':(_0x9adf3f,_0x2f2c8a)=>{const _0x432f6b=_0x59d0b1;let _0x55720a=_0x9adf3f[_0x432f6b(0x24a)](_0x2df0e2),_0x233499=_0x55720a[_0x432f6b(0x28a)](_0x2f2c8a[_0x432f6b(0x2a5)],_0x2f2c8a[_0x432f6b(0x1e4)]);return _0x55720a[_0x432f6b(0x23e)](_0x2f2c8a['unitId'],_0x2f2c8a['subUnitId'],_0x233499[_0x432f6b(0x286)](_0xe31c86=>_0xe31c86['id']!==_0x2f2c8a[_0x432f6b(0x22a)])),!0x0;}};function _0xc8ef79(_0x41eabc,_0x34651e,_0x4ce281){const _0x11ef80=_0x59d0b1;let _0x103604=_0x5568e2(_0x41eabc);return!_0x103604||_0x103604[_0x11ef80(0x241)]({'workbookTypes':[_0x16fc48['WorkbookViewPermission']],'worksheetTypes':[_0x16fc48['WorksheetViewPermission']]},_0x34651e,_0x4ce281);}function _0x4c8228(_0x251153,_0x4e2682,_0x5ab95e){const _0x5448a4=_0x59d0b1;let _0xddbfe1=_0x20f165(_0x251153);return((_0xddbfe1==null?void 0x0:_0xddbfe1['permissionPointUpdate$'])??(0x0,_0x44301b['of'])(null))[_0x5448a4(0x255)]((0x0,_0x3766b1['debounceTime'])(0x64),(0x0,_0x3766b1[_0x5448a4(0x229)])(null),(0x0,_0x3766b1['map'])(()=>_0xc8ef79(_0x251153,_0x4e2682,_0x5ab95e)));}function _0x5568e2(_0x3c1ee2){const _0x31d90c=_0x59d0b1;if(typeof _0x3c1ee2[_0x31d90c(0x249)]==_0x31d90c(0x263)&&!_0x3c1ee2['has'](_0x16fc48['SheetPermissionCheckController']))return null;try{return _0x3c1ee2[_0x31d90c(0x24a)](_0x16fc48[_0x31d90c(0x21d)]);}catch{return null;}}function _0x20f165(_0x1861fe){const _0x5a5f12=_0x59d0b1;if(typeof _0x1861fe['has']==_0x5a5f12(0x263)&&!_0x1861fe['has'](_0x6392c9[_0x5a5f12(0x1e3)]))return null;try{return _0x1861fe['get'](_0x6392c9[_0x5a5f12(0x1e3)]);}catch{return null;}}let _0x56b37e={'id':'sheet.command.add-dimension-outline','type':_0x6392c9['CommandType'][_0x59d0b1(0x1fc)],'handler':(_0x1ec885,_0xe1f887)=>{const _0x31138c=_0x59d0b1;if(!_0xe1f887)return!0x1;let _0x8e6c02=(0x0,_0x16fc48[_0x31138c(0x259)])(_0x1ec885[_0x31138c(0x24a)](_0x6392c9[_0x31138c(0x1f4)]),_0xe1f887);if(!_0x8e6c02)return!0x1;let {unitId:_0x32339b,subUnitId:_0x39f7a3,worksheet:_0x4bedb2}=_0x8e6c02;if(!_0xc8ef79(_0x1ec885,_0x32339b,_0x39f7a3))return!0x1;let _0x1fb381=_0x1ec885[_0x31138c(0x24a)](_0x2df0e2),_0x1fcb1e={'id':_0x31138c(0x215)+(0x0,_0x6392c9['generateRandomId'])(0x6),'unitId':_0x32339b,'subUnitId':_0x39f7a3,'axis':_0xe1f887[_0x31138c(0x1ee)],'start':_0xe1f887[_0x31138c(0x29f)],'end':_0xe1f887[_0x31138c(0x205)],'collapsed':!0x1},_0x1db8de=_0xe1f887[_0x31138c(0x1ee)]==='row'?_0x4bedb2[_0x31138c(0x242)]():_0x4bedb2[_0x31138c(0x201)](),_0x18a147=_0x1fb381['getOutlines'](_0x32339b,_0x39f7a3),_0x57f31f=_0x3f50fe(_0x18a147,_0x1fcb1e),_0x204568=(_0x57f31f==null?void 0x0:_0x57f31f[_0x31138c(0x268)])??[],_0x3af4ed=(_0x57f31f==null?void 0x0:_0x57f31f[_0x31138c(0x2a7)])??_0x1fcb1e,_0xcfa6d7=_0x1ccc19(_0x57f31f?_0x18a147[_0x31138c(0x286)](_0x2b605e=>!_0x204568['some'](_0x42cd01=>_0x42cd01['id']===_0x2b605e['id'])):_0x18a147,_0x3af4ed,{'maxIndex':_0x1db8de});if(!_0xcfa6d7[_0x31138c(0x262)])return _0x1ec885[_0x31138c(0x24a)](_0xaca6a4)[_0x31138c(0x28e)]({'reason':_0xcfa6d7[_0x31138c(0x243)]??_0x31138c(0x260),'commandId':_0x56b37e['id'],'unitId':_0x32339b,'subUnitId':_0x39f7a3,'axis':_0xe1f887[_0x31138c(0x1ee)],'outlineId':_0x3af4ed['id']}),!0x1;let _0x14ff72=[..._0x204568[_0x31138c(0x1ea)](_0x32f65b=>({'id':_0x275e14['id'],'params':{'unitId':_0x32339b,'subUnitId':_0x39f7a3,'outlineId':_0x32f65b['id']}})),{'id':_0x153235['id'],'params':{'unitId':_0x32339b,'subUnitId':_0x39f7a3,'outline':_0x3af4ed}}],_0x9ff613=[{'id':_0x275e14['id'],'params':{'unitId':_0x32339b,'subUnitId':_0x39f7a3,'outlineId':_0x3af4ed['id']}},..._0x204568[_0x31138c(0x1ea)](_0x4bfa3c=>({'id':_0x153235['id'],'params':{'unitId':_0x32339b,'subUnitId':_0x39f7a3,'outline':_0x4bfa3c}}))];return(0x0,_0x6392c9['sequenceExecute'])(_0x14ff72,_0x1ec885[_0x31138c(0x24a)](_0x6392c9[_0x31138c(0x224)]))[_0x31138c(0x282)]?(_0x1ec885['get'](_0x6392c9[_0x31138c(0x228)])['pushUndoRedo']({'unitID':_0x32339b,'undoMutations':_0x9ff613,'redoMutations':_0x14ff72}),!0x0):!0x1;}},_0x50c0ba={'id':_0x59d0b1(0x1d8),'type':_0x6392c9[_0x59d0b1(0x246)][_0x59d0b1(0x1e2)],'handler':(_0x4b1bb1,_0x31fa54)=>{const _0x15a0b3=_0x59d0b1;let _0x10aeef=_0x4b1bb1['get'](_0x2df0e2),_0xa141d7=_0x10aeef[_0x15a0b3(0x28a)](_0x31fa54['unitId'],_0x31fa54[_0x15a0b3(0x1e4)]);return _0x10aeef[_0x15a0b3(0x23e)](_0x31fa54[_0x15a0b3(0x2a5)],_0x31fa54[_0x15a0b3(0x1e4)],_0x48ec44(_0xa141d7,_0x31fa54)),!0x0;}},_0x5921e6={'id':_0x59d0b1(0x1da),'type':_0x6392c9['CommandType'][_0x59d0b1(0x1fc)],'handler':(_0x3343ee,_0x5cee68)=>{const _0x23d616=_0x59d0b1;if(!_0x5cee68)return!0x1;let _0x17ad08=(0x0,_0x16fc48['getSheetCommandTarget'])(_0x3343ee[_0x23d616(0x24a)](_0x6392c9[_0x23d616(0x1f4)]),_0x5cee68);if(!_0x17ad08)return!0x1;let {unitId:_0x460d80,subUnitId:_0xc31454}=_0x17ad08;if(!_0xc8ef79(_0x3343ee,_0x460d80,_0xc31454))return!0x1;let _0x365f37={'unitId':_0x460d80,'subUnitId':_0xc31454,'axis':_0x5cee68['axis'],'start':_0x5cee68[_0x23d616(0x29f)],'end':_0x5cee68['end']},_0x199217=_0x3343ee[_0x23d616(0x24a)](_0x2df0e2)[_0x23d616(0x28a)](_0x460d80,_0xc31454)[_0x23d616(0x286)](_0x20d7f3=>_0x2fd3a0(_0x20d7f3,_0x365f37)&&_0x20d7f3[_0x23d616(0x29f)]>=_0x5cee68[_0x23d616(0x29f)]&&_0x20d7f3['end']<=_0x5cee68[_0x23d616(0x205)]);if(_0x199217[_0x23d616(0x25b)]===0x0)return _0x3343ee[_0x23d616(0x24a)](_0xaca6a4)[_0x23d616(0x28e)]({'reason':_0x23d616(0x2ad),'commandId':_0x5921e6['id'],'unitId':_0x460d80,'subUnitId':_0xc31454,'axis':_0x5cee68[_0x23d616(0x1ee)]}),!0x1;let _0x247fc0=[{'id':_0x50c0ba['id'],'params':{..._0x365f37,'removedOutlineIds':_0x199217['map'](_0x81195b=>_0x81195b['id'])}}],_0x28195e=_0x199217[_0x23d616(0x1ea)](_0x3066cf=>({'id':_0x153235['id'],'params':{'unitId':_0x460d80,'subUnitId':_0xc31454,'outline':_0x3066cf}}));return(0x0,_0x6392c9[_0x23d616(0x248)])(_0x247fc0,_0x3343ee[_0x23d616(0x24a)](_0x6392c9[_0x23d616(0x224)]))[_0x23d616(0x282)]?(_0x3343ee[_0x23d616(0x24a)](_0x6392c9[_0x23d616(0x228)])[_0x23d616(0x227)]({'unitID':_0x460d80,'undoMutations':_0x28195e,'redoMutations':_0x247fc0}),!0x0):!0x1;}},_0x27b205={'id':_0x59d0b1(0x2a2),'type':_0x6392c9[_0x59d0b1(0x246)]['COMMAND'],'handler':(_0x109850,_0x2e6073)=>{const _0x167a24=_0x59d0b1;if(!_0x2e6073)return!0x1;let _0x6bb4a=(0x0,_0x16fc48[_0x167a24(0x259)])(_0x109850[_0x167a24(0x24a)](_0x6392c9[_0x167a24(0x1f4)]),_0x2e6073);if(!_0x6bb4a)return!0x1;let {unitId:_0x48c869,subUnitId:_0x1b633c}=_0x6bb4a;if(!_0xc8ef79(_0x109850,_0x48c869,_0x1b633c))return!0x1;let _0x2a09ac=_0x109850[_0x167a24(0x24a)](_0x2df0e2)[_0x167a24(0x28a)](_0x48c869,_0x1b633c)['find'](_0x7d2039=>_0x7d2039['id']===_0x2e6073[_0x167a24(0x22a)]);if(!_0x2a09ac)return!0x1;let _0x30fc3b=[{'id':_0x275e14['id'],'params':{'unitId':_0x48c869,'subUnitId':_0x1b633c,'outlineId':_0x2a09ac['id'],'outline':_0x2a09ac}}],_0x4a2399=[{'id':_0x153235['id'],'params':{'unitId':_0x48c869,'subUnitId':_0x1b633c,'outline':_0x2a09ac}}];return(0x0,_0x6392c9[_0x167a24(0x248)])(_0x30fc3b,_0x109850['get'](_0x6392c9['ICommandService']))[_0x167a24(0x282)]?(_0x109850[_0x167a24(0x24a)](_0x6392c9[_0x167a24(0x228)])[_0x167a24(0x227)]({'unitID':_0x48c869,'undoMutations':_0x4a2399,'redoMutations':_0x30fc3b}),!0x0):!0x1;}},_0x5dca7={'id':_0x59d0b1(0x232),'type':_0x6392c9[_0x59d0b1(0x246)][_0x59d0b1(0x1e2)],'handler':(_0x2786ad,_0x1571aa)=>{const _0x5d32e8=_0x59d0b1;let _0x321844=_0x2786ad['get'](_0x2df0e2),_0xd09b7a=_0x321844[_0x5d32e8(0x28a)](_0x1571aa[_0x5d32e8(0x2a5)],_0x1571aa[_0x5d32e8(0x1e4)]),_0x1f6ee2=_0xd09b7a[_0x5d32e8(0x28f)](_0x4e8cc3=>_0x4e8cc3['id']===_0x1571aa[_0x5d32e8(0x22a)]);return _0x1f6ee2&&_0x321844[_0x5d32e8(0x23e)](_0x1571aa['unitId'],_0x1571aa[_0x5d32e8(0x1e4)],_0xd09b7a[_0x5d32e8(0x1ea)](_0x5d1267=>_0x5d1267['unitId']!==_0x1f6ee2['unitId']||_0x5d1267[_0x5d32e8(0x1e4)]!==_0x1f6ee2[_0x5d32e8(0x1e4)]||_0x5d1267[_0x5d32e8(0x1ee)]!==_0x1f6ee2[_0x5d32e8(0x1ee)]||_0x5d1267[_0x5d32e8(0x29f)]!==_0x1f6ee2[_0x5d32e8(0x29f)]||_0x5d1267[_0x5d32e8(0x205)]!==_0x1f6ee2[_0x5d32e8(0x205)]?_0x5d1267:{..._0x5d1267,'collapsed':_0x1571aa[_0x5d32e8(0x24e)]})),!0x0;}};function _0x275c66(_0x11c33e,_0x24c739,_0x2f29ee,_0x4d72c7){const _0x5c846e=_0x59d0b1;return _0x11c33e===_0x5c846e(0x250)?{'startRow':_0x24c739,'endRow':_0x2f29ee,'startColumn':0x0,'endColumn':_0x4d72c7[_0x5c846e(0x27f)]()-0x1}:{'startRow':0x0,'endRow':_0x4d72c7[_0x5c846e(0x242)]()-0x1,'startColumn':_0x24c739,'endColumn':_0x2f29ee};}function _0x4989eb(_0x4807a8){const _0x122a88=_0x59d0b1;return _0x4807a8===_0x122a88(0x250)?_0x16fc48[_0x122a88(0x274)]['id']:_0x16fc48[_0x122a88(0x28b)]['id'];}function _0xad273f(_0x20bb4f){const _0x5d7373=_0x59d0b1;return _0x20bb4f==='row'?_0x16fc48[_0x5d7373(0x26d)]['id']:_0x16fc48[_0x5d7373(0x1fb)]['id'];}function _0x309c72(_0x2cb225,_0x1e696a,_0x147085,_0x118bb0){const _0x32e514=_0x59d0b1;let _0x149d84=_0x1e696a?[_0x275c66(_0x2cb225[_0x32e514(0x1ee)],_0x2cb225[_0x32e514(0x29f)],_0x2cb225[_0x32e514(0x205)],_0x147085)]:_0x4f0834(_0x2cb225,_0x118bb0,_0x147085),_0x3d46fe=_0x1e696a?_0x4989eb(_0x2cb225['axis']):_0xad273f(_0x2cb225[_0x32e514(0x1ee)]);return[{'id':_0x5dca7['id'],'params':{'unitId':_0x2cb225['unitId'],'subUnitId':_0x2cb225['subUnitId'],'outlineId':_0x2cb225['id'],'outline':_0x2cb225,'collapsed':_0x1e696a}},..._0x149d84[_0x32e514(0x1ea)](_0x272ed0=>({'id':_0x3d46fe,'params':{'unitId':_0x2cb225[_0x32e514(0x2a5)],'subUnitId':_0x2cb225['subUnitId'],'ranges':[_0x272ed0],'dimensionOutlineId':_0x2cb225['id']}}))];}function _0x4f0834(_0x28090d,_0x23ee97,_0x163a0d){const _0x437e88=_0x59d0b1;let _0x454fb3=_0x670be9(_0x23ee97[_0x437e88(0x1ea)](_0x56f60a=>_0x3bc693(_0x56f60a,_0x28090d)?{..._0x56f60a,'collapsed':!0x1}:_0x56f60a),_0x28090d['unitId'],_0x28090d[_0x437e88(0x1e4)],_0x28090d['axis']);return _0x3f4992({'start':_0x28090d['start'],'end':_0x28090d[_0x437e88(0x205)]},_0x454fb3)[_0x437e88(0x1ea)](_0x2044c6=>_0x275c66(_0x28090d['axis'],_0x2044c6['start'],_0x2044c6['end'],_0x163a0d));}function _0x3bc693(_0x5aa5ce,_0x373750){const _0x1861b8=_0x59d0b1;return _0x5aa5ce[_0x1861b8(0x2a5)]===_0x373750[_0x1861b8(0x2a5)]&&_0x5aa5ce[_0x1861b8(0x1e4)]===_0x373750[_0x1861b8(0x1e4)]&&_0x5aa5ce[_0x1861b8(0x1ee)]===_0x373750[_0x1861b8(0x1ee)]&&_0x5aa5ce['start']===_0x373750[_0x1861b8(0x29f)]&&_0x5aa5ce[_0x1861b8(0x205)]===_0x373750[_0x1861b8(0x205)];}function _0x3f4992(_0x1067ce,_0x32010c){const _0x5c7059=_0x59d0b1;let _0x14a38f=_0x1067ce[_0x5c7059(0x29f)],_0x214e3f=[];for(let _0x383752 of _0x32010c)if(!(_0x383752[_0x5c7059(0x205)]<_0x14a38f||_0x383752[_0x5c7059(0x29f)]>_0x1067ce['end'])&&(_0x383752[_0x5c7059(0x29f)]>_0x14a38f&&_0x214e3f['push']({'start':_0x14a38f,'end':Math[_0x5c7059(0x209)](_0x383752[_0x5c7059(0x29f)]-0x1,_0x1067ce[_0x5c7059(0x205)])}),_0x14a38f=Math[_0x5c7059(0x1e5)](_0x14a38f,_0x383752[_0x5c7059(0x205)]+0x1),_0x14a38f>_0x1067ce[_0x5c7059(0x205)]))break;return _0x14a38f<=_0x1067ce[_0x5c7059(0x205)]&&_0x214e3f[_0x5c7059(0x284)]({'start':_0x14a38f,'end':_0x1067ce[_0x5c7059(0x205)]}),_0x214e3f;}let _0x327e33={'id':'sheet.command.set-dimension-outline-collapsed','type':_0x6392c9[_0x59d0b1(0x246)][_0x59d0b1(0x1fc)],'handler':(_0x226b6d,_0x455e25)=>{const _0x2856d0=_0x59d0b1;if(!_0x455e25)return!0x1;let _0x16b96d=(0x0,_0x16fc48[_0x2856d0(0x259)])(_0x226b6d[_0x2856d0(0x24a)](_0x6392c9[_0x2856d0(0x1f4)]),_0x455e25);if(!_0x16b96d)return!0x1;let {unitId:_0x27d60f,subUnitId:_0x3b4065,worksheet:_0x2ee0a1}=_0x16b96d;if(!_0xc8ef79(_0x226b6d,_0x27d60f,_0x3b4065))return!0x1;let _0x33bbd2=_0x226b6d['get'](_0x2df0e2)[_0x2856d0(0x28a)](_0x27d60f,_0x3b4065),_0x45ffd4=_0x33bbd2[_0x2856d0(0x28f)](_0x15dfdb=>_0x15dfdb['id']===_0x455e25[_0x2856d0(0x22a)]);if(!_0x45ffd4||_0x45ffd4[_0x2856d0(0x24e)]===_0x455e25[_0x2856d0(0x24e)])return!0x1;let _0x4b0de0=_0x309c72(_0x45ffd4,_0x455e25[_0x2856d0(0x24e)],_0x2ee0a1,_0x33bbd2),_0x4bdbc3=_0x309c72(_0x45ffd4,!_0x455e25[_0x2856d0(0x24e)],_0x2ee0a1,_0x33bbd2);return(0x0,_0x6392c9[_0x2856d0(0x248)])(_0x4b0de0,_0x226b6d[_0x2856d0(0x24a)](_0x6392c9[_0x2856d0(0x224)]))[_0x2856d0(0x282)]?(_0x226b6d[_0x2856d0(0x24a)](_0x6392c9[_0x2856d0(0x228)])[_0x2856d0(0x227)]({'unitID':_0x27d60f,'undoMutations':_0x4bdbc3,'redoMutations':_0x4b0de0}),!0x0):!0x1;}},_0x1e8b4f={'id':'sheet.mutation.transform-dimension-outlines','type':_0x6392c9[_0x59d0b1(0x246)]['MUTATION'],'handler':(_0x4ef24b,_0x3a8942)=>{const _0x1a7083=_0x59d0b1;let _0x10f5b0=_0x4ef24b[_0x1a7083(0x24a)](_0x2df0e2),_0x25a63d=_0x38b8e1(_0x10f5b0[_0x1a7083(0x28a)](_0x3a8942[_0x1a7083(0x2a5)],_0x3a8942[_0x1a7083(0x1e4)]),_0x3a8942);return _0x10f5b0[_0x1a7083(0x23e)](_0x3a8942[_0x1a7083(0x2a5)],_0x3a8942[_0x1a7083(0x1e4)],_0x25a63d),!0x0;}};function _0x38b8e1(_0x15134d,_0x589454){const _0x232964=_0x59d0b1;switch(_0x589454[_0x232964(0x24f)]){case'insert':return _0x589454[_0x232964(0x28d)]?_0x44ace6(_0x15134d,_0x589454):_0x325e96(_0x15134d,_0x589454);case _0x232964(0x26c):return _0x3a7c4c(_0x15134d,_0x589454);case _0x232964(0x27c):return _0x596030(_0x15134d,_0x589454);}}function _0x44ace6(_0x1b7e39,_0x56533f){const _0x187c6f=_0x59d0b1;return[..._0x1b7e39['filter'](_0x2ac3aa=>_0x2ac3aa[_0x187c6f(0x2a5)]!==_0x56533f['unitId']||_0x2ac3aa[_0x187c6f(0x1e4)]!==_0x56533f['subUnitId']||_0x2ac3aa[_0x187c6f(0x1ee)]!==_0x56533f[_0x187c6f(0x1ee)]),..._0x56533f[_0x187c6f(0x28d)]];}let _0x1225d4='SHEET_OUTLINE_PLUGIN';var _0x4b0a8d=_0x59d0b1(0x24d),_0x1eab96=_0x59d0b1(0x21c);let _0x861d82={};function _0x2f6a0b(_0xc44743,_0x162107){return function(_0x279dc6,_0x3d9778){_0x162107(_0x279dc6,_0x3d9778,_0xc44743);};}function _0x38f202(_0x1db754,_0x34d02c,_0x38e821,_0x2b2a45){const _0x409ad5=_0x59d0b1;var _0x103354=arguments[_0x409ad5(0x25b)],_0x5d3df3=_0x103354<0x3?_0x34d02c:_0x2b2a45===null?_0x2b2a45=Object['getOwnPropertyDescriptor'](_0x34d02c,_0x38e821):_0x2b2a45,_0xd3434c;if(typeof Reflect==_0x409ad5(0x245)&&typeof Reflect[_0x409ad5(0x235)]==_0x409ad5(0x263))_0x5d3df3=Reflect[_0x409ad5(0x235)](_0x1db754,_0x34d02c,_0x38e821,_0x2b2a45);else{for(var _0x5207c9=_0x1db754[_0x409ad5(0x25b)]-0x1;_0x5207c9>=0x0;_0x5207c9--)(_0xd3434c=_0x1db754[_0x5207c9])&&(_0x5d3df3=(_0x103354<0x3?_0xd3434c(_0x5d3df3):_0x103354>0x3?_0xd3434c(_0x34d02c,_0x38e821,_0x5d3df3):_0xd3434c(_0x34d02c,_0x38e821))||_0x5d3df3);}return _0x103354>0x3&&_0x5d3df3&&Object[_0x409ad5(0x257)](_0x34d02c,_0x38e821,_0x5d3df3),_0x5d3df3;}let _0x1e762c={'redos':[],'undos':[],'preRedos':[],'preUndos':[]},_0xb68277=class extends _0x6392c9[_0x59d0b1(0x289)]{constructor(_0xf2db0,_0x2c8d1b,_0x9eaf54,_0xc926f2){const _0x33d386=_0x59d0b1;super(),this[_0x33d386(0x275)]=_0xf2db0,this[_0x33d386(0x214)]=_0x2c8d1b,this[_0x33d386(0x271)]=_0x9eaf54,this['_sheetsOutlineErrorService']=_0xc926f2,this[_0x33d386(0x1f7)]();}[_0x59d0b1(0x1f7)](){const _0x2169be=_0x59d0b1;this[_0x2169be(0x206)](this[_0x2169be(0x214)]['interceptCommand']({'getMutations':_0x5ea73d=>_0x3b66b1(_0x5ea73d,(_0x15e2be,_0x377247)=>this[_0x2169be(0x271)][_0x2169be(0x28a)](_0x15e2be,_0x377247),this['_getCommandScope'](_0x5ea73d[_0x2169be(0x2a4)]),_0x76039e=>this[_0x2169be(0x237)]['emit'](_0x76039e))}));}['_getCommandScope'](_0x5e31fd){const _0x28103d=_0x59d0b1;let _0x9f274a=_0x5e31fd,_0x3ed192=_0x9f274a!=null&&_0x9f274a[_0x28103d(0x2a5)]?this['_univerInstanceService']['getUnit'](_0x9f274a[_0x28103d(0x2a5)],_0x6392c9[_0x28103d(0x267)][_0x28103d(0x23f)]):this[_0x28103d(0x275)][_0x28103d(0x213)](_0x6392c9[_0x28103d(0x267)][_0x28103d(0x23f)]);if(!_0x3ed192)return;let _0x17cca2=_0x9f274a!=null&&_0x9f274a[_0x28103d(0x1e4)]?_0x3ed192[_0x28103d(0x283)](_0x9f274a[_0x28103d(0x1e4)]):_0x3ed192['getActiveSheet']();if(_0x17cca2)return{'unitId':_0x3ed192[_0x28103d(0x222)](),'subUnitId':_0x17cca2[_0x28103d(0x204)]()};}};_0xb68277=_0x38f202([_0x2f6a0b(0x0,_0x6392c9[_0x59d0b1(0x1f4)]),_0x2f6a0b(0x1,(0x0,_0x6392c9[_0x59d0b1(0x29a)])(_0x16fc48[_0x59d0b1(0x26e)])),_0x2f6a0b(0x2,(0x0,_0x6392c9[_0x59d0b1(0x29a)])(_0x2df0e2)),_0x2f6a0b(0x3,(0x0,_0x6392c9['Inject'])(_0xaca6a4))],_0xb68277);function _0x3b66b1(_0x364798,_0x339075,_0x52decd,_0x1fadc4){const _0x512161=_0x59d0b1;let _0x2fc249=_0x55d918(_0x364798,_0x52decd);if(!_0x2fc249)return _0x521a07();let _0x17041d=_0x339075(_0x2fc249[_0x512161(0x2a5)],_0x2fc249[_0x512161(0x1e4)]);if(!_0x17041d['some'](_0x5b286a=>_0x5b286a[_0x512161(0x1ee)]===_0x2fc249[_0x512161(0x1ee)]))return _0x521a07();_0x4307b7(_0x17041d,_0x2fc249,_0x364798['id'],_0x1fadc4);let _0x52858f=_0x28f1ca(_0x2fc249,_0x17041d);return{'redos':[{'id':_0x1e8b4f['id'],'params':_0x2fc249}],'undos':[{'id':_0x1e8b4f['id'],'params':_0x52858f}],'preRedos':[],'preUndos':[]};}function _0x4307b7(_0x330a6f,_0x2302fb,_0x163f3b,_0xf33852){const _0x435020=_0x59d0b1;try{switch(_0x2302fb[_0x435020(0x24f)]){case _0x435020(0x21a):_0x325e96(_0x330a6f,_0x2302fb);break;case _0x435020(0x26c):_0x3a7c4c(_0x330a6f,_0x2302fb);break;case'move':_0x596030(_0x330a6f,_0x2302fb);break;}}catch(_0x474926){throw _0xf33852==null||_0xf33852({'reason':_0xc53463(_0x474926),'commandId':_0x163f3b,'unitId':_0x2302fb[_0x435020(0x2a5)],'subUnitId':_0x2302fb[_0x435020(0x1e4)],'axis':_0x2302fb[_0x435020(0x1ee)],'outlineId':_0x49437b(_0x474926)}),new _0x6392c9[(_0x435020(0x1e6))](_0x474926 instanceof Error?_0x474926[_0x435020(0x1e1)]:_0x435020(0x1e8));}}function _0x55d918(_0x2ce857,_0x368e3f){const _0x449755=_0x59d0b1;switch(_0x2ce857['id']){case _0x16fc48[_0x449755(0x1e0)]['id']:return _0x84e113(_0x2ce857[_0x449755(0x2a4)],'row',_0x368e3f);case _0x16fc48['InsertColCommand']['id']:return _0x84e113(_0x2ce857[_0x449755(0x2a4)],'column',_0x368e3f);case _0x16fc48[_0x449755(0x295)]['id']:return _0x31376f(_0x2ce857[_0x449755(0x2a4)],_0x449755(0x250),_0x368e3f);case _0x16fc48[_0x449755(0x247)]['id']:return _0x31376f(_0x2ce857['params'],_0x449755(0x25a),_0x368e3f);case _0x16fc48[_0x449755(0x220)]['id']:return _0x57c628(_0x2ce857['params'],'row',_0x368e3f);case _0x16fc48[_0x449755(0x288)]['id']:return _0x57c628(_0x2ce857[_0x449755(0x2a4)],_0x449755(0x25a),_0x368e3f);default:return null;}}function _0x84e113(_0x6b78df,_0x1bc02d,_0x2e264c){const _0x3a9f25=_0x59d0b1;let _0x588b8d=_0x3599b9(_0x6b78df,_0x2e264c);if(!(_0x6b78df!=null&&_0x6b78df['range'])||!_0x588b8d)return null;let _0x42e9b0=_0x1bc02d==='row'?_0x6b78df['range'][_0x3a9f25(0x27a)]:_0x6b78df[_0x3a9f25(0x280)][_0x3a9f25(0x256)],_0x49be31=_0x1bc02d===_0x3a9f25(0x250)?_0x6b78df[_0x3a9f25(0x280)]['endRow']:_0x6b78df[_0x3a9f25(0x280)][_0x3a9f25(0x28c)];return{..._0x588b8d,'axis':_0x1bc02d,'type':'insert','index':_0x42e9b0,'count':_0x49be31-_0x42e9b0+0x1};}function _0x31376f(_0x5bdbe2,_0x2aeb76,_0x4b17f4){const _0x12fa61=_0x59d0b1;let _0x2b219a=_0x3599b9(_0x5bdbe2,_0x4b17f4);if(!(_0x5bdbe2!=null&&_0x5bdbe2[_0x12fa61(0x280)])||!_0x2b219a)return null;let _0xd59ec4=_0x2aeb76===_0x12fa61(0x250)?_0x5bdbe2['range'][_0x12fa61(0x27a)]:_0x5bdbe2['range'][_0x12fa61(0x256)],_0x2ba668=_0x2aeb76===_0x12fa61(0x250)?_0x5bdbe2[_0x12fa61(0x280)]['endRow']:_0x5bdbe2['range'][_0x12fa61(0x28c)];return{..._0x2b219a,'axis':_0x2aeb76,'type':_0x12fa61(0x26c),'start':_0xd59ec4,'end':_0x2ba668};}function _0x57c628(_0x21bfc0,_0x3de42b,_0x4f840c){const _0x414f8c=_0x59d0b1;let _0x10c27b=_0x3599b9(_0x21bfc0,_0x4f840c);if(!(_0x21bfc0!=null&&_0x21bfc0[_0x414f8c(0x27b)])||!_0x21bfc0[_0x414f8c(0x25c)]||!_0x10c27b)return null;let _0x1fe0c4=_0x3de42b===_0x414f8c(0x250)?_0x21bfc0[_0x414f8c(0x27b)]['startRow']:_0x21bfc0['fromRange'][_0x414f8c(0x256)],_0x415921=_0x3de42b===_0x414f8c(0x250)?_0x21bfc0[_0x414f8c(0x27b)][_0x414f8c(0x278)]:_0x21bfc0[_0x414f8c(0x27b)][_0x414f8c(0x28c)],_0x4aedf0=_0x3de42b===_0x414f8c(0x250)?_0x21bfc0['toRange']['startRow']:_0x21bfc0[_0x414f8c(0x25c)]['startColumn'];return{..._0x10c27b,'axis':_0x3de42b,'type':_0x414f8c(0x27c),'sourceStart':_0x1fe0c4,'sourceEnd':_0x415921,'destinationIndex':_0x4aedf0};}function _0x28f1ca(_0x139cb2,_0x6d58c4){const _0x3c38e3=_0x59d0b1;switch(_0x139cb2[_0x3c38e3(0x24f)]){case'insert':return{'unitId':_0x139cb2[_0x3c38e3(0x2a5)],'subUnitId':_0x139cb2['subUnitId'],'axis':_0x139cb2[_0x3c38e3(0x1ee)],'type':_0x3c38e3(0x26c),'start':_0x139cb2['index'],'end':_0x139cb2[_0x3c38e3(0x294)]+_0x139cb2[_0x3c38e3(0x2aa)]-0x1};case'delete':return{'unitId':_0x139cb2[_0x3c38e3(0x2a5)],'subUnitId':_0x139cb2[_0x3c38e3(0x1e4)],'axis':_0x139cb2['axis'],'type':_0x3c38e3(0x21a),'index':_0x139cb2[_0x3c38e3(0x29f)],'count':_0x139cb2['end']-_0x139cb2[_0x3c38e3(0x29f)]+0x1,'restoreOutlines':_0x6d58c4[_0x3c38e3(0x286)](_0x2d0398=>_0x2d0398['unitId']===_0x139cb2[_0x3c38e3(0x2a5)]&&_0x2d0398[_0x3c38e3(0x1e4)]===_0x139cb2[_0x3c38e3(0x1e4)]&&_0x2d0398['axis']===_0x139cb2[_0x3c38e3(0x1ee)])};case _0x3c38e3(0x27c):return _0xc3c22c(_0x139cb2);}}function _0xc3c22c(_0x40927a){const _0xef8b76=_0x59d0b1;let _0x18e98c=_0x40927a[_0xef8b76(0x20b)]-_0x40927a[_0xef8b76(0x236)]+0x1;return _0x40927a[_0xef8b76(0x287)]>=_0x40927a[_0xef8b76(0x236)]&&_0x40927a['destinationIndex']<=_0x40927a['sourceEnd']+0x1?{..._0x40927a}:_0x40927a['destinationIndex']>_0x40927a[_0xef8b76(0x20b)]+0x1?{..._0x40927a,'sourceStart':_0x40927a[_0xef8b76(0x287)]-_0x18e98c,'sourceEnd':_0x40927a[_0xef8b76(0x287)]-0x1,'destinationIndex':_0x40927a[_0xef8b76(0x236)]}:{..._0x40927a,'sourceStart':_0x40927a[_0xef8b76(0x287)],'sourceEnd':_0x40927a[_0xef8b76(0x287)]+_0x18e98c-0x1,'destinationIndex':_0x40927a['sourceEnd']+0x1};}function _0x3599b9(_0x57f167,_0x461f0c){const _0x377299=_0x59d0b1;let _0x50de8c=(_0x57f167==null?void 0x0:_0x57f167['unitId'])??(_0x461f0c==null?void 0x0:_0x461f0c[_0x377299(0x2a5)]),_0x2cebd5=(_0x57f167==null?void 0x0:_0x57f167['subUnitId'])??(_0x461f0c==null?void 0x0:_0x461f0c[_0x377299(0x1e4)]);return _0x50de8c&&_0x2cebd5?{'unitId':_0x50de8c,'subUnitId':_0x2cebd5}:null;}function _0x521a07(){const _0x1c6315=_0x59d0b1;return{'redos':[..._0x1e762c[_0x1c6315(0x1fd)]],'undos':[..._0x1e762c[_0x1c6315(0x1e9)]],'preRedos':[..._0x1e762c[_0x1c6315(0x26f)]??[]],'preUndos':[..._0x1e762c['preUndos']??[]]};}let _0x3787e7=class extends _0x6392c9[_0x59d0b1(0x289)]{constructor(_0x3e48c2,_0x1f9d02){const _0x117022=_0x59d0b1;super(),this[_0x117022(0x277)]=_0x3e48c2,this[_0x117022(0x271)]=_0x1f9d02,this[_0x117022(0x1dd)]();}[_0x59d0b1(0x1dd)](){const _0x36aed0=_0x59d0b1;this[_0x36aed0(0x206)](this[_0x36aed0(0x277)][_0x36aed0(0x296)]({'pluginName':_0x1225d4,'businesses':[_0x6392c9['UniverInstanceType']['UNIVER_SHEET']],'toJson':_0x19d2a3=>JSON[_0x36aed0(0x293)](this['_sheetsOutlineModel']['serialize'](_0x19d2a3)),'parseJson':_0x4ce570=>JSON['parse'](_0x4ce570),'onLoad':(_0x389980,_0x3370f5)=>this[_0x36aed0(0x271)][_0x36aed0(0x234)](_0x389980,_0x3370f5),'onUnLoad':_0x3e2b0c=>this[_0x36aed0(0x271)][_0x36aed0(0x21f)](_0x3e2b0c)}));}};_0x3787e7=_0x38f202([_0x2f6a0b(0x0,_0x6392c9[_0x59d0b1(0x25d)]),_0x2f6a0b(0x1,(0x0,_0x6392c9[_0x59d0b1(0x29a)])(_0x2df0e2))],_0x3787e7);let _0x3127b1=class extends _0x6392c9[_0x59d0b1(0x23c)]{constructor(_0x154fa7=_0x861d82,_0x2d6526,_0x40430a,_0x409d9f){const _0x10fc79=_0x59d0b1;super(),this[_0x10fc79(0x238)]=_0x154fa7,this[_0x10fc79(0x276)]=_0x2d6526,this[_0x10fc79(0x216)]=_0x40430a,this[_0x10fc79(0x27d)]=_0x409d9f;let {..._0x4bffe3}=(0x0,_0x6392c9[_0x10fc79(0x22f)])({},_0x861d82,this[_0x10fc79(0x238)]);this[_0x10fc79(0x27d)]['setConfig']('sheets-outline.config',_0x4bffe3);}['onStarting'](){const _0xa48599=_0x59d0b1;this[_0xa48599(0x276)][_0xa48599(0x239)]([_0x2df0e2]),this[_0xa48599(0x276)][_0xa48599(0x239)]([_0xaca6a4]),this[_0xa48599(0x276)]['add']([_0x3787e7]),this[_0xa48599(0x276)]['add']([_0xb68277]),this[_0xa48599(0x200)](),this[_0xa48599(0x276)][_0xa48599(0x24a)](_0x2df0e2),this[_0xa48599(0x276)][_0xa48599(0x24a)](_0xaca6a4),this[_0xa48599(0x276)][_0xa48599(0x24a)](_0x3787e7),this['_injector']['get'](_0xb68277);}[_0x59d0b1(0x200)](){const _0x92188d=_0x59d0b1;[_0x56b37e,_0x27b205,_0x327e33,_0x5921e6][_0x92188d(0x29d)](_0x24f721=>{const _0x5b6f66=_0x92188d;this[_0x5b6f66(0x206)](this[_0x5b6f66(0x216)]['registerCommand'](_0x24f721));}),[_0x153235,_0x275e14,_0x5dca7,_0x50c0ba,_0x1e8b4f]['forEach'](_0xa41022=>{const _0x342b1c=_0x92188d;this['disposeWithMe'](this['_commandService'][_0x342b1c(0x292)](_0xa41022));});}};_0x2a700f(_0x3127b1,_0x59d0b1(0x244),_0x1225d4),_0x2a700f(_0x3127b1,'packageName',_0x4b0a8d),_0x2a700f(_0x3127b1,_0x59d0b1(0x20e),_0x1eab96),_0x2a700f(_0x3127b1,_0x59d0b1(0x24f),_0x6392c9[_0x59d0b1(0x267)]['UNIVER_SHEET']),_0x3127b1=_0x38f202([(0x0,_0x6392c9['DependentOn'])(_0x1e3a2b[_0x59d0b1(0x211)],_0x16fc48[_0x59d0b1(0x1eb)]),_0x2f6a0b(0x1,(0x0,_0x6392c9['Inject'])(_0x6392c9[_0x59d0b1(0x202)])),_0x2f6a0b(0x2,_0x6392c9['ICommandService']),_0x2f6a0b(0x3,_0x6392c9[_0x59d0b1(0x26b)])],_0x3127b1),_0x47e37b[_0x59d0b1(0x269)]=_0x56b37e,_0x47e37b[_0x59d0b1(0x21b)]=_0x153235,_0x47e37b[_0x59d0b1(0x2a9)]=_0x5921e6,_0x47e37b[_0x59d0b1(0x221)]=_0x50c0ba,_0x47e37b['DimensionOutlineAxis']=_0x1801e3,_0x47e37b['DimensionOutlineErrorReason']=_0x57d48f,_0x47e37b['RemoveDimensionOutlineCommand']=_0x27b205,_0x47e37b[_0x59d0b1(0x1f1)]=_0x275e14,_0x47e37b['SHEET_OUTLINE_PLUGIN']=_0x1225d4,_0x47e37b['SetDimensionOutlineCollapsedCommand']=_0x327e33,_0x47e37b[_0x59d0b1(0x1de)]=_0x5dca7,_0x47e37b['SheetsOutlineErrorService']=_0xaca6a4,_0x47e37b['SheetsOutlineModel']=_0x2df0e2,_0x47e37b[_0x59d0b1(0x225)]=_0x1e8b4f,Object[_0x59d0b1(0x257)](_0x47e37b,_0x59d0b1(0x203),{'enumerable':!0x0,'get':function(){return _0x3127b1;}}),_0x47e37b[_0x59d0b1(0x210)]=_0x2c48d0,_0x47e37b[_0x59d0b1(0x21e)]=_0x1ccc19,_0x47e37b[_0x59d0b1(0x1f0)]=_0x4c8228,_0x47e37b[_0x59d0b1(0x299)]=_0xc8ef79,_0x47e37b[_0x59d0b1(0x1f5)]=_0x3a7c4c,_0x47e37b[_0x59d0b1(0x223)]=_0x325e96,_0x47e37b['transformOutlinesByMove']=_0x596030;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-outline",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.2",
4
4
  "private": false,
5
5
  "description": "Dimension outline model integration for Univer Sheets.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -11,7 +11,7 @@
11
11
  "homepage": "https://univer.ai",
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "https://github.com/dream-num/univer"
14
+ "url": "https://github.com/dream-num/univer-pro"
15
15
  },
16
16
  "bugs": {
17
17
  "url": "https://github.com/dream-num/univer/issues"
@@ -61,15 +61,15 @@
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@univerjs-pro/license": "1.0.0-beta.1",
65
- "@univerjs/core": "1.0.0-beta.1",
66
- "@univerjs/sheets": "1.0.0-beta.1"
64
+ "@univerjs/core": "1.0.0-beta.2",
65
+ "@univerjs-pro/license": "1.0.0-beta.2",
66
+ "@univerjs/sheets": "1.0.0-beta.2"
67
67
  },
68
68
  "devDependencies": {
69
69
  "rxjs": "7.8.2",
70
70
  "typescript": "^6.0.3",
71
71
  "vitest": "^4.1.10",
72
- "@univerjs-infra/shared": "1.0.0-beta.1"
72
+ "@univerjs-infra/shared": "1.0.0-beta.2"
73
73
  },
74
74
  "scripts": {
75
75
  "test": "vitest run",