@univerjs-pro/range-preprocess 0.22.0 → 0.22.1-insiders.20260515-225d350

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 _0x1f5b(_0x1b36ef,_0x193f45){_0x1b36ef=_0x1b36ef-0x1eb;const _0x2719c=_0x2719();let _0x1f5b03=_0x2719c[_0x1b36ef];return _0x1f5b03;}const _0x26ba90=_0x1f5b;function _0x2719(){const _0x12a08d=['3104667JDoDIL','2629Yrwahu','48KztOcM','_injector','FWorkbook','27ZbgwXQ','3709292XEMrtU','6554664AdgfrS','22060cbBATq','22942nDniKU','294596suQdbP','extend','get','RangePreprocessController','925057KvsNJh','5HrgMQX','_workbook','getAllTableJson'];_0x2719=function(){return _0x12a08d;};return _0x2719();}(function(_0x335bc0,_0x45fc1c){const _0x5ee30f=_0x1f5b,_0x28c7f6=_0x335bc0();while(!![]){try{const _0xd5b73c=-parseInt(_0x5ee30f(0x1f1))/0x1+parseInt(_0x5ee30f(0x1f0))/0x2*(-parseInt(_0x5ee30f(0x1ec))/0x3)+-parseInt(_0x5ee30f(0x1ed))/0x4*(-parseInt(_0x5ee30f(0x1f6))/0x5)+parseInt(_0x5ee30f(0x1fb))/0x6*(parseInt(_0x5ee30f(0x1f5))/0x7)+-parseInt(_0x5ee30f(0x1ee))/0x8+parseInt(_0x5ee30f(0x1f9))/0x9+parseInt(_0x5ee30f(0x1ef))/0xa*(-parseInt(_0x5ee30f(0x1fa))/0xb);if(_0xd5b73c===_0x45fc1c)break;else _0x28c7f6['push'](_0x28c7f6['shift']());}catch(_0xe09e19){_0x28c7f6['push'](_0x28c7f6['shift']());}}}(_0x2719,0x8ed84));let _univerjs_pro_range_preprocess=require('@univerjs-pro/range-preprocess'),_univerjs_sheets_facade=require('@univerjs/sheets/facade');var FWorkbookRangePreprocessMixin=class extends _univerjs_sheets_facade[_0x26ba90(0x1eb)]{['getPreprocessRanges'](_0x356008){const _0x2331d4=_0x26ba90;return this[_0x2331d4(0x1fc)][_0x2331d4(0x1f3)](_univerjs_pro_range_preprocess[_0x2331d4(0x1f4)])[_0x2331d4(0x1f8)](this[_0x2331d4(0x1f7)],_0x356008);}};_univerjs_sheets_facade[_0x26ba90(0x1eb)][_0x26ba90(0x1f2)](FWorkbookRangePreprocessMixin);
1
+ const _0x246c72=_0x187d;(function(_0x563ed4,_0x5b9715){const _0x5d2662=_0x187d,_0x219bc2=_0x563ed4();while(!![]){try{const _0x1c0dd3=parseInt(_0x5d2662(0x1c9))/0x1*(-parseInt(_0x5d2662(0x1cb))/0x2)+parseInt(_0x5d2662(0x1d0))/0x3+parseInt(_0x5d2662(0x1c7))/0x4+parseInt(_0x5d2662(0x1cf))/0x5+parseInt(_0x5d2662(0x1ce))/0x6*(-parseInt(_0x5d2662(0x1cd))/0x7)+-parseInt(_0x5d2662(0x1d6))/0x8*(-parseInt(_0x5d2662(0x1ca))/0x9)+-parseInt(_0x5d2662(0x1d1))/0xa*(parseInt(_0x5d2662(0x1d9))/0xb);if(_0x1c0dd3===_0x5b9715)break;else _0x219bc2['push'](_0x219bc2['shift']());}catch(_0x22d821){_0x219bc2['push'](_0x219bc2['shift']());}}}(_0x1e82,0x47144));let _univerjs_pro_range_preprocess=require('@univerjs-pro/range-preprocess'),_univerjs_sheets_facade=require('@univerjs/sheets/facade');function _0x1e82(){const _0x1abd41=['2090RhuvaE','2169212CnWUEP','getPreprocessRanges','8KoLyOv','98649QHSjTv','137214GoTHMI','RangePreprocessController','655459zMibAn','12tfjiIi','2255970VujPWV','1607043uNvkXD','27570QVrewO','_injector','extend','FWorkbook','get','16JuXhiv','getAllTableJson','_workbook'];_0x1e82=function(){return _0x1abd41;};return _0x1e82();}function _0x187d(_0x55a8c7,_0x151766){_0x55a8c7=_0x55a8c7-0x1c7;const _0x1e82c0=_0x1e82();let _0x187d73=_0x1e82c0[_0x55a8c7];return _0x187d73;}var FWorkbookRangePreprocessMixin=class extends _univerjs_sheets_facade['FWorkbook']{[_0x246c72(0x1c8)](_0x186ce5){const _0x2b741e=_0x246c72;return this[_0x2b741e(0x1d2)][_0x2b741e(0x1d5)](_univerjs_pro_range_preprocess[_0x2b741e(0x1cc)])[_0x2b741e(0x1d7)](this[_0x2b741e(0x1d8)],_0x186ce5);}};_univerjs_sheets_facade[_0x246c72(0x1d4)][_0x246c72(0x1d3)](FWorkbookRangePreprocessMixin);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x19a1b4=_0x5c41;(function(_0x2e391c,_0x115e5c){const _0x50937a=_0x5c41,_0x402b6a=_0x2e391c();while(!![]){try{const _0x527bd9=parseInt(_0x50937a(0xef))/0x1*(parseInt(_0x50937a(0xe0))/0x2)+-parseInt(_0x50937a(0xc8))/0x3+parseInt(_0x50937a(0xa1))/0x4+parseInt(_0x50937a(0xb9))/0x5+-parseInt(_0x50937a(0x133))/0x6*(parseInt(_0x50937a(0xcb))/0x7)+parseInt(_0x50937a(0x12a))/0x8+-parseInt(_0x50937a(0xbd))/0x9*(parseInt(_0x50937a(0x111))/0xa);if(_0x527bd9===_0x115e5c)break;else _0x402b6a['push'](_0x402b6a['shift']());}catch(_0x1a8655){_0x402b6a['push'](_0x402b6a['shift']());}}}(_0xaeb3,0xd0c0b),Object[_0x19a1b4(0xbe)](exports,Symbol['toStringTag'],{'value':'Module'}));let _univerjs_core=require('@univerjs/core');require('@univerjs/sheets-filter');let _univerjs_sheets_table=require('@univerjs/sheets-table');function _typeof(_0xad9280){'@babel/helpers - typeof';const _0x85b99e=_0x19a1b4;return _typeof='function'==typeof Symbol&&'symbol'==typeof Symbol[_0x85b99e(0x110)]?function(_0x17f2cc){return typeof _0x17f2cc;}:function(_0x42a1a8){const _0x563ebe=_0x85b99e;return _0x42a1a8&&_0x563ebe(0xde)==typeof Symbol&&_0x42a1a8[_0x563ebe(0xd1)]===Symbol&&_0x42a1a8!==Symbol[_0x563ebe(0x80)]?_0x563ebe(0x87):typeof _0x42a1a8;},_typeof(_0xad9280);}function toPrimitive(_0x3ab5a5,_0x406d9b){const _0xfc6f5=_0x19a1b4;if(_0xfc6f5(0xbc)!=_typeof(_0x3ab5a5)||!_0x3ab5a5)return _0x3ab5a5;var _0x2d02b8=_0x3ab5a5[Symbol[_0xfc6f5(0x137)]];if(void 0x0!==_0x2d02b8){var _0x5ebcc5=_0x2d02b8[_0xfc6f5(0x10f)](_0x3ab5a5,_0x406d9b||_0xfc6f5(0xa0));if('object'!=_typeof(_0x5ebcc5))return _0x5ebcc5;throw new TypeError(_0xfc6f5(0xe8));}return('string'===_0x406d9b?String:Number)(_0x3ab5a5);}function toPropertyKey(_0x2712d2){const _0x3684d1=_0x19a1b4;var _0x726c7f=toPrimitive(_0x2712d2,_0x3684d1(0xfa));return'symbol'==_typeof(_0x726c7f)?_0x726c7f:_0x726c7f+'';}function _defineProperty(_0x89cce,_0x2894fa,_0x14f8b8){const _0x99a08b=_0x19a1b4;return(_0x2894fa=toPropertyKey(_0x2894fa))in _0x89cce?Object[_0x99a08b(0xbe)](_0x89cce,_0x2894fa,{'value':_0x14f8b8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x89cce[_0x2894fa]=_0x14f8b8,_0x89cce;}function getCellValue$1(_0x16ce0d){const _0x4d336c=_0x19a1b4;if(_0x16ce0d['v']==null)return'';return String(_0x16ce0d['v'])[_0x4d336c(0xbb)]();}function isNumber$1(_0x3d53b2){const _0x317709=_0x19a1b4;return/^[-+]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[-+]?\d+)?$/i[_0x317709(0xeb)](_0x3d53b2);}const almost=0x2,possible=0x1;function parseWithLayout(_0x45cfbf,_0x5231d1){const _0x2c74af=_0x19a1b4,_0x17a14d={'2006-01-02':/^\d{4}-\d{2}-\d{2}$/,'2006-1-2':/^\d{4}-\d{1,2}-\d{1,2}$/,'2006/01/02':/^\d{4}\/\d{2}\/\d{2}$/,'2006/1/2':/^\d{4}\/\d{1,2}\/\d{1,2}$/,'2006年1月2日':/^\d{4}年\d{1,2}月\d{1,2}日$/,'02-01-2006':/^\d{1,2}-\d{1,2}-\d{4}$/,'02/01/2006':/^\d{1,2}\/\d{1,2}\/\d{4}$/,'02.01.2006':/^\d{1,2}\.\d{1,2}\.\d{4}$/,'01-02-2006':/^\d{1,2}-\d{1,2}-\d{4}$/,'01/02/2006':/^\d{1,2}\/\d{1,2}\/\d{4}$/,'2\x20January,\x202006':/^\d{1,2}\s+[A-Z]+,\s*\d{4}$/i,'2\x20January,2006':/^\d{1,2}\s+[A-Z]+,\d{4}$/i,'2\x20Jan.,\x202006':/^\d{1,2}\s+[A-Z]{3}\.,\s*\d{4}$/i,'January\x202,\x202006':/^[A-Z]+\s+\d{1,2},\s*\d{4}$/i,'January\x202,2006':/^[A-Z]+\s+\d{1,2},\d{4}$/i,'Jan.\x202,\x202006':/^[A-Z]{3}\.\s+\d{1,2},\s*\d{4}$/i,0x13217c6:/^\d{8}$/,'2006-01-02T15:04:05':/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/,'2006-01-02\x2015:04:05':/^\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2}$/}[_0x5231d1];if(!_0x17a14d)return![];if(!_0x17a14d['test'](_0x45cfbf))return![];const _0x584c61=_0x45cfbf[_0x2c74af(0xa5)](/\D+/g,'\x20')[_0x2c74af(0xbb)]()[_0x2c74af(0x114)](/\s+/)[_0x2c74af(0xdc)](Number);let _0x11e078=0x0,_0x20cabb=0x1,_0x1f246e=0x1,_0x40e2a4=0x0,_0x469900=0x0,_0x290347=0x0;switch(_0x5231d1){case _0x2c74af(0x98):case'2006-1-2':case _0x2c74af(0xdd):case'2006/1/2':[_0x11e078,_0x20cabb,_0x1f246e]=_0x584c61;break;case _0x2c74af(0x105):[_0x11e078,_0x20cabb,_0x1f246e]=_0x584c61;break;case'02-01-2006':case _0x2c74af(0xc7):case'02.01.2006':[_0x1f246e,_0x20cabb,_0x11e078]=_0x584c61;break;case _0x2c74af(0x12e):case _0x2c74af(0xf1):[_0x20cabb,_0x1f246e,_0x11e078]=_0x584c61;break;case _0x2c74af(0x12f):{const _0x52c714=_0x45cfbf;_0x11e078=+_0x52c714[_0x2c74af(0x95)](0x0,0x4),_0x20cabb=+_0x52c714[_0x2c74af(0x95)](0x4,0x6),_0x1f246e=+_0x52c714[_0x2c74af(0x95)](0x6,0x8);break;}case _0x2c74af(0xc5):case _0x2c74af(0x128):[_0x11e078,_0x20cabb,_0x1f246e,_0x40e2a4,_0x469900,_0x290347]=_0x584c61;break;default:return!![];}if(_0x20cabb<0x1||_0x20cabb>0xc)return![];if(_0x1f246e<0x1||_0x1f246e>0x1f)return![];if(_0x40e2a4<0x0||_0x40e2a4>0x17)return![];if(_0x469900<0x0||_0x469900>0x3b)return![];if(_0x290347<0x0||_0x290347>0x3b)return![];const _0x3529d7=new Date(_0x11e078,_0x20cabb-0x1,_0x1f246e,_0x40e2a4,_0x469900,_0x290347);if(_0x3529d7[_0x2c74af(0xe7)]()!==_0x11e078||_0x3529d7['getMonth']()!==_0x20cabb-0x1||_0x3529d7['getDate']()!==_0x1f246e)return![];return!![];}function looksLikeExcelSerial(_0x57e5c3){return Number['isFinite'](_0x57e5c3)&&_0x57e5c3>=0x1&&_0x57e5c3<=0x13880;}function convertDataType(_0x42ddf3){const _0x52fd80=_0x19a1b4;switch(_0x42ddf3){case 0x0:return _0x52fd80(0xfa);case 0x1:return'number';case 0x2:case 0x3:case 0x4:return _0x52fd80(0x106);case 0x5:return _0x52fd80(0x9b);default:return _0x52fd80(0x113);}}var recognizerCount=class{constructor(){const _0x15abe0=_0x19a1b4;_defineProperty(this,_0x15abe0(0x7b),0x0),_defineProperty(this,_0x15abe0(0x116),0x0),_defineProperty(this,'confidence',0x0);}},RecognizerDate=class extends recognizerCount{constructor(_0x6ffb35){const _0x384d99=_0x19a1b4;super(),_defineProperty(this,_0x384d99(0xfd),void 0x0),_defineProperty(this,'dt',void 0x0),_defineProperty(this,'layout',void 0x0),_defineProperty(this,'needConvert',void 0x0),this['dt']=_0x6ffb35['dt'],this[_0x384d99(0x7c)]=_0x6ffb35[_0x384d99(0x7c)],this[_0x384d99(0x127)]=!!_0x6ffb35[_0x384d99(0x127)];}[_0x19a1b4(0xf7)](_0x316b6d){const _0x8ad797=_0x19a1b4;if(_0x316b6d['t']===_univerjs_core[_0x8ad797(0x82)]['STRING']){const _0x37a076=getCellValue$1(_0x316b6d);if(!_0x37a076)return;if(parseWithLayout(_0x37a076,this[_0x8ad797(0x7c)]))this[_0x8ad797(0x7b)]+=almost;else this[_0x8ad797(0x116)]++;}}[_0x19a1b4(0x11f)](){const _0x566ecd=_0x19a1b4,_0x28f39a=0x64-Math[_0x566ecd(0x108)]((this[_0x566ecd(0x116)]*0xa+0x1)*0x64/(this['invalid']+this['valid']+0x1)),_0x505d12={'Charset':this['dt'],'Confidence':_0x28f39a,'debugInfo':this[_0x566ecd(0x7c)]};if(this[_0x566ecd(0x127)])_0x505d12[_0x566ecd(0x123)]=this['layout'];return _0x505d12;}},RecognizerDateNum=class extends recognizerCount{constructor(_0x33a457){const _0x2707c4=_0x19a1b4;super(),_defineProperty(this,'dateStyles',void 0x0),_defineProperty(this,'timeStampStyles',void 0x0),_defineProperty(this,'dt',void 0x0),_defineProperty(this,'layout',void 0x0),_defineProperty(this,_0x2707c4(0x127),void 0x0),this[_0x2707c4(0x121)]=_0x33a457[_0x2707c4(0x121)]||{},this['dt']=_0x33a457['dt'],this[_0x2707c4(0x7c)]=_0x33a457[_0x2707c4(0x7c)],this[_0x2707c4(0x127)]=!!_0x33a457[_0x2707c4(0x127)];}['Match'](_0x35e5a6){const _0x833a96=_0x19a1b4;if(_0x35e5a6['t']===_univerjs_core[_0x833a96(0x82)]['NUMBER']){if(_0x35e5a6['s']&&this['dateStyles'][_0x35e5a6['s']]){this[_0x833a96(0x7b)]+=almost;return;}const _0xd8b3b4=getCellValue$1(_0x35e5a6);if(!_0xd8b3b4)return;if(this['layout']===_0x833a96(0x126)){if(looksLikeExcelSerial(Number(_0xd8b3b4))){this[_0x833a96(0x7b)]+=almost;return;}}if(parseWithLayout(_0xd8b3b4,this[_0x833a96(0x7c)]))this['valid']+=almost;else this['invalid']++;}}[_0x19a1b4(0x11f)](){const _0x4be3bd=_0x19a1b4,_0x1b4472=0x64-Math[_0x4be3bd(0x108)]((this['invalid']*0xa+0x1)*0x64/(this['invalid']+this['valid']+0x1)),_0x4bd3d0={'Charset':this['dt'],'Confidence':_0x1b4472,'debugInfo':this[_0x4be3bd(0x7c)]};if(this['needConvert'])_0x4bd3d0['Layout']=this[_0x4be3bd(0x7c)];return _0x4bd3d0;}},RecognizerNumber=class extends recognizerCount{[_0x19a1b4(0xf7)](_0x46e12c){const _0xcc496f=_0x19a1b4;if(_0x46e12c['t']===_univerjs_core[_0xcc496f(0x82)][_0xcc496f(0xd4)])this[_0xcc496f(0x7b)]+=possible;else{const _0x46dd03=getCellValue$1(_0x46e12c);if(!_0x46dd03)return;if(isNumber$1(_0x46dd03))this['valid']+=possible;else this[_0xcc496f(0x116)]++;}}['Calc'](){const _0x455302=_0x19a1b4;return{'Charset':0x1,'Confidence':0x64-Math[_0x455302(0x108)]((this['invalid']*0xa+0x1)*0x64/(this[_0x455302(0x116)]+this[_0x455302(0x7b)]+0x1)),'debugInfo':_0x455302(0xee)};}},RecognizerBool=class extends recognizerCount{[_0x19a1b4(0xf7)](_0x119fdb){const _0x386583=_0x19a1b4;if(_0x119fdb['t']===_univerjs_core[_0x386583(0x82)]['BOOLEAN'])this[_0x386583(0x7b)]+=possible;else this['invalid']++;}[_0x19a1b4(0x11f)](){const _0x1b1e1d=_0x19a1b4;return{'Charset':0x5,'Confidence':0x64-Math[_0x1b1e1d(0x108)]((this[_0x1b1e1d(0x116)]*0xa+0x1)*0x64/(this[_0x1b1e1d(0x116)]+this[_0x1b1e1d(0x7b)]+0x1)),'debugInfo':_0x1b1e1d(0xee)};}},DetectImpl=class{constructor(_0x18e2e4){const _0x48ad0c=_0x19a1b4;_defineProperty(this,_0x48ad0c(0x86),void 0x0),_defineProperty(this,_0x48ad0c(0x121),void 0x0),this[_0x48ad0c(0x121)]=_0x18e2e4||{},this[_0x48ad0c(0x86)]=[new RecognizerDate({'dt':0x2,'layout':_0x48ad0c(0x98)}),new RecognizerDate({'dt':0x2,'layout':_0x48ad0c(0xf5)}),new RecognizerDate({'dt':0x2,'layout':_0x48ad0c(0xdd)}),new RecognizerDate({'dt':0x2,'layout':_0x48ad0c(0xcf)}),new RecognizerDate({'dt':0x2,'layout':_0x48ad0c(0x105),'needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':_0x48ad0c(0x97),'needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':'02/01/2006','needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':_0x48ad0c(0x8f),'needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':_0x48ad0c(0x12e),'needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':_0x48ad0c(0xf1),'needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':'2\x20January,\x202006','needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':_0x48ad0c(0x85),'needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':_0x48ad0c(0xea),'needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':_0x48ad0c(0xe4),'needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':_0x48ad0c(0xc1),'needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':_0x48ad0c(0xe1),'needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':'20060102','needConvert':!![]}),new RecognizerDateNum({'dateStyles':this[_0x48ad0c(0x121)],'dt':0x2,'layout':_0x48ad0c(0x12f),'needConvert':!![]}),new RecognizerDate({'dt':0x4,'layout':_0x48ad0c(0xc5)}),new RecognizerDate({'dt':0x4,'layout':'2006-01-02\x2015:04:05'}),new RecognizerDateNum({'dateStyles':this['dateStyles'],'dt':0x3,'layout':'excel','needConvert':!![]}),new RecognizerNumber(),new RecognizerBool()];}[_0x19a1b4(0xf7)](_0x688fb5){const _0x3ed791=_0x19a1b4;for(const _0x2467de of this[_0x3ed791(0x86)])_0x2467de[_0x3ed791(0xf7)](_0x688fb5);}[_0x19a1b4(0xaf)](){const _0x41692c=_0x19a1b4,_0x46f229=this[_0x41692c(0x86)][_0x41692c(0xdc)](_0x4dea65=>_0x4dea65['Calc']());_0x46f229[_0x41692c(0xcc)]((_0x1d36c3,_0xff13a5)=>_0xff13a5[_0x41692c(0xf9)]-_0x1d36c3['Confidence']);if(_0x46f229[_0x41692c(0xe2)]===0x0||_0x46f229[0x0][_0x41692c(0xf9)]<0x32)return['string',null];const _0x1bca0f=_0x46f229[0x0];return[convertDataType(_0x1bca0f['Charset']),_0x1bca0f];}};function generateRandomIds(_0x3738b7,_0x11925d){const _0x44ddd8=_0x19a1b4;let _0xf784a4=_0x3738b7,_0x2426f1=_0x11925d;if(_0xf784a4<=0x0)_0xf784a4=0x6;if(_0x2426f1<=0x0)_0x2426f1=0xa;_0x2426f1=_0x2426f1*0x2;const _0x308694=[];for(let _0x248cd6=0x0;_0x248cd6<_0x2426f1;_0x248cd6++)_0x308694[_0x44ddd8(0xa7)]((0x0,_univerjs_core[_0x44ddd8(0x90)])(_0xf784a4));const _0x124e6b=new Map();for(const _0xcee6f0 of _0x308694){const _0x5802a2=_0xcee6f0[_0x44ddd8(0x10e)]();if(!_0x124e6b[_0x44ddd8(0x122)](_0x5802a2))_0x124e6b[_0x44ddd8(0xc9)](_0x5802a2,_0xcee6f0);}return Array[_0x44ddd8(0x132)](_0x124e6b[_0x44ddd8(0x109)]());}var ReasoningTable=class ReasoningTable{constructor(_0x53c29d){const _0x3e4681=_0x19a1b4;var _0x531330,_0x5f2487,_0x396ed7,_0x4758d3,_0x4b02f0,_0x4be8e5,_0xb9d5a9,_0xbe1eea,_0x19b1c8,_0x37a868,_0x22140d,_0x29a022,_0x9d63e,_0x416bf1,_0x45dfb0,_0x353105,_0x33d61c,_0x22af2b,_0x3a468b;_defineProperty(this,'id',void 0x0),_defineProperty(this,_0x3e4681(0x130),void 0x0),_defineProperty(this,_0x3e4681(0xd2),void 0x0),_defineProperty(this,_0x3e4681(0x125),void 0x0),_defineProperty(this,_0x3e4681(0xf8),void 0x0),_defineProperty(this,_0x3e4681(0xce),void 0x0),_defineProperty(this,_0x3e4681(0xf3),void 0x0),_defineProperty(this,_0x3e4681(0xb2),void 0x0),_defineProperty(this,_0x3e4681(0xda),void 0x0),_defineProperty(this,_0x3e4681(0x104),void 0x0),_defineProperty(this,_0x3e4681(0xf2),void 0x0),_defineProperty(this,_0x3e4681(0x99),void 0x0),_defineProperty(this,_0x3e4681(0xd0),void 0x0),_defineProperty(this,_0x3e4681(0x119),void 0x0),_defineProperty(this,_0x3e4681(0x100),void 0x0),_defineProperty(this,_0x3e4681(0x7f),void 0x0),_defineProperty(this,_0x3e4681(0x10a),void 0x0),_defineProperty(this,_0x3e4681(0xdb),void 0x0),_defineProperty(this,_0x3e4681(0xf6),void 0x0),this['id']=(_0x531330=_0x53c29d===null||_0x53c29d===void 0x0?void 0x0:_0x53c29d['id'])!==null&&_0x531330!==void 0x0?_0x531330:'',this[_0x3e4681(0x130)]=(_0x5f2487=_0x53c29d===null||_0x53c29d===void 0x0?void 0x0:_0x53c29d['sheetId'])!==null&&_0x5f2487!==void 0x0?_0x5f2487:(0x0,_univerjs_core['generateRandomId'])(),this[_0x3e4681(0xd2)]=(_0x396ed7=_0x53c29d===null||_0x53c29d===void 0x0?void 0x0:_0x53c29d[_0x3e4681(0xd2)])!==null&&_0x396ed7!==void 0x0?_0x396ed7:{'startRow':-0x1,'endRow':-0x1,'startColumn':-0x1,'endColumn':-0x1},this[_0x3e4681(0x125)]=(_0x4758d3=_0x53c29d===null||_0x53c29d===void 0x0?void 0x0:_0x53c29d[_0x3e4681(0x125)])!==null&&_0x4758d3!==void 0x0?_0x4758d3:'',this[_0x3e4681(0xf8)]=(_0x4b02f0=_0x53c29d===null||_0x53c29d===void 0x0?void 0x0:_0x53c29d[_0x3e4681(0xf8)])!==null&&_0x4b02f0!==void 0x0?_0x4b02f0:'',this[_0x3e4681(0xce)]=(_0x4be8e5=_0x53c29d===null||_0x53c29d===void 0x0?void 0x0:_0x53c29d[_0x3e4681(0xce)])!==null&&_0x4be8e5!==void 0x0?_0x4be8e5:0x0,this[_0x3e4681(0xf3)]=(_0xb9d5a9=_0x53c29d===null||_0x53c29d===void 0x0?void 0x0:_0x53c29d[_0x3e4681(0xf3)])!==null&&_0xb9d5a9!==void 0x0?_0xb9d5a9:0x0,this[_0x3e4681(0xb2)]=(_0xbe1eea=_0x53c29d===null||_0x53c29d===void 0x0?void 0x0:_0x53c29d[_0x3e4681(0xb2)])!==null&&_0xbe1eea!==void 0x0?_0xbe1eea:0x0,this[_0x3e4681(0xda)]=(_0x19b1c8=_0x53c29d===null||_0x53c29d===void 0x0?void 0x0:_0x53c29d[_0x3e4681(0xda)])!==null&&_0x19b1c8!==void 0x0?_0x19b1c8:0x0,this['rowMergeTitleCountMap']=(_0x37a868=_0x53c29d===null||_0x53c29d===void 0x0?void 0x0:_0x53c29d[_0x3e4681(0x104)])!==null&&_0x37a868!==void 0x0?_0x37a868:new Map(),this[_0x3e4681(0xf2)]=(_0x22140d=_0x53c29d===null||_0x53c29d===void 0x0?void 0x0:_0x53c29d['rowMergeTitleState'])!==null&&_0x22140d!==void 0x0?_0x22140d:![],this[_0x3e4681(0x99)]=(_0x29a022=_0x53c29d===null||_0x53c29d===void 0x0?void 0x0:_0x53c29d[_0x3e4681(0x99)])!==null&&_0x29a022!==void 0x0?_0x29a022:![],this['columnMergeTitleCountMap']=(_0x9d63e=_0x53c29d===null||_0x53c29d===void 0x0?void 0x0:_0x53c29d[_0x3e4681(0xd0)])!==null&&_0x9d63e!==void 0x0?_0x9d63e:new Map(),this[_0x3e4681(0x119)]=(_0x416bf1=_0x53c29d===null||_0x53c29d===void 0x0?void 0x0:_0x53c29d[_0x3e4681(0x119)])!==null&&_0x416bf1!==void 0x0?_0x416bf1:![],this[_0x3e4681(0x100)]=(_0x45dfb0=_0x53c29d===null||_0x53c29d===void 0x0?void 0x0:_0x53c29d[_0x3e4681(0x100)])!==null&&_0x45dfb0!==void 0x0?_0x45dfb0:![],this['isTimeSeries']=(_0x353105=_0x53c29d===null||_0x53c29d===void 0x0?void 0x0:_0x53c29d[_0x3e4681(0x7f)])!==null&&_0x353105!==void 0x0?_0x353105:![],this[_0x3e4681(0x10a)]=(_0x33d61c=_0x53c29d===null||_0x53c29d===void 0x0?void 0x0:_0x53c29d[_0x3e4681(0x10a)])!==null&&_0x33d61c!==void 0x0?_0x33d61c:![],this[_0x3e4681(0xdb)]=(_0x22af2b=_0x53c29d===null||_0x53c29d===void 0x0?void 0x0:_0x53c29d[_0x3e4681(0xdb)])!==null&&_0x22af2b!==void 0x0?_0x22af2b:![],this['columns']=(_0x3a468b=_0x53c29d===null||_0x53c29d===void 0x0?void 0x0:_0x53c29d[_0x3e4681(0xf6)])!==null&&_0x3a468b!==void 0x0?_0x3a468b:[];}[_0x19a1b4(0x96)](_0x5f1a4b,_0x7c49a7){return _0x7c49a7-_0x5f1a4b===0x1||_0x7c49a7===_0x5f1a4b;}[_0x19a1b4(0x11d)](_0x4bfd15){const _0xb66172=_0x19a1b4,_0x44d4c8=[];for(const _0x50e388 of _0x4bfd15){if(this[_0xb66172(0xd2)][_0xb66172(0xa8)]<_0x50e388[_0xb66172(0xd2)][_0xb66172(0xd8)])continue;if(this[_0xb66172(0xd2)][_0xb66172(0xd8)]>_0x50e388[_0xb66172(0xd2)][_0xb66172(0xa8)])continue;if(!this[_0xb66172(0x96)](_0x50e388[_0xb66172(0xd2)][_0xb66172(0xb8)],this[_0xb66172(0xd2)][_0xb66172(0xd5)]))continue;_0x44d4c8[_0xb66172(0xa7)](_0x50e388);}return _0x44d4c8;}[_0x19a1b4(0x10b)](_0x539e09){const _0x61930=_0x19a1b4;if(_0x539e09[_0x61930(0xd2)][_0x61930(0xb8)]===this[_0x61930(0xd2)]['startRow']){if(this['range'][_0x61930(0xa8)]+0x1===_0x539e09[_0x61930(0xd2)][_0x61930(0xd8)])return!![];}return![];}[_0x19a1b4(0xb7)](_0x5736f6){const _0x3bf234=_0x19a1b4;if(this[_0x3bf234(0xd2)][_0x3bf234(0xd8)]===-0x1)return this;return _0x5736f6['push'](this),new ReasoningTable({'sheetId':this['sheetId'],'range':{'startRow':this[_0x3bf234(0xd2)]['startRow'],'endRow':this[_0x3bf234(0xd2)][_0x3bf234(0xb8)],'startColumn':-0x1,'endColumn':-0x1}});}[_0x19a1b4(0xb3)](_0x4e9dca,_0xa867a8,_0x31c4a8,_0x28478c){const _0x5bae26=_0x19a1b4;if(this[_0x5bae26(0xd2)]['startColumn']===-0x1)this[_0x5bae26(0xd2)][_0x5bae26(0xd8)]=_0xa867a8;this[_0x5bae26(0xd2)][_0x5bae26(0xa8)]=_0xa867a8;if(_0x28478c!=null)this[_0x5bae26(0xd2)][_0x5bae26(0xa8)]=Math['max'](_0x28478c,this[_0x5bae26(0xd2)][_0x5bae26(0xa8)]);}[_0x19a1b4(0x83)](){const _0x38f505=_0x19a1b4;this[_0x38f505(0x104)][_0x38f505(0x9d)](),this[_0x38f505(0xd0)][_0x38f505(0x9d)](),this[_0x38f505(0xf6)]=[];}};function makeId(_0x445e32,_0x12f4b6){const {startRow:_0x56e3d1,startColumn:_0x5a02b2,endRow:_0x5f29f2,endColumn:_0x3c172f}=_0x12f4b6;return _0x445e32+':'+_0x56e3d1+','+_0x5a02b2+'-'+_0x5f29f2+','+_0x3c172f;}const MergeRTreeCache=new Map();function MergeRTree(_0x3e80a8,_0x453278){const _0x2ceb5d=_0x19a1b4;var _0x239ce6;const _0x1dd159=new _univerjs_core['RTree'](![]),_0x1e33bf=_0x453278['getSheetId'](),_0x2096dc=new Map(),_0x5349c9=(_0x239ce6=_0x453278['getMergeData']())!==null&&_0x239ce6!==void 0x0?_0x239ce6:[];MergeRTreeCache[_0x2ceb5d(0x9d)]();for(const _0x1c1d08 of _0x5349c9){const _0x107542=makeId(_0x2ceb5d(0x11e),_0x1c1d08),_0x44a19b={'unitId':_0x3e80a8,'sheetId':_0x1e33bf,'range':_0x1c1d08,'id':_0x107542};_0x1dd159['insert'](_0x44a19b),_0x2096dc[_0x2ceb5d(0xc9)](_0x107542,_0x44a19b);}return MergeRTreeCache['set'](_0x453278,{'mergeRTree':_0x1dd159,'mergeRangeMap':_0x2096dc}),{'mergeRTree':_0x1dd159,'mergeRangeMap':_0x2096dc};}function ExceptRTree(_0x17d09d,_0x366995,_0x1ef3f7){const _0x4256c1=_0x19a1b4,_0x11e0d1=new _univerjs_core['RTree'](![]),_0x2a941a=_0x1ef3f7[_0x4256c1(0x88)](_univerjs_sheets_table['TableManager'])[_0x4256c1(0xa6)](_0x17d09d);if(_0x2a941a&&Array[_0x4256c1(0x120)](_0x2a941a))for(const _0x2e8226 of _0x2a941a){if(!(_0x2e8226===null||_0x2e8226===void 0x0?void 0x0:_0x2e8226[_0x4256c1(0xd2)]))continue;const _0x2f9611=_0x2e8226[_0x4256c1(0xd2)],_0x133b83={'unitId':_0x17d09d,'sheetId':_0x366995,'range':_0x2f9611,'id':makeId(_0x4256c1(0x134),_0x2f9611)};_0x11e0d1['insert'](_0x133b83);}return _0x11e0d1;}function pushColumnMerge(_0x494e11,_0x4d2a89,_0x3c9f0b){const _0x1c17bc=_0x19a1b4,_0x119a7b=_0x494e11[_0x1c17bc(0x88)](_0x4d2a89);if(_0x119a7b)_0x119a7b['push'](_0x3c9f0b);else _0x494e11[_0x1c17bc(0xc9)](_0x4d2a89,[_0x3c9f0b]);}function genTable(_0x31570c,_0xc18c85){const _0x5cd749=_0x19a1b4,_0x8dd379=_0x31570c[_0x5cd749(0x103)](),_0x1b5edb={},_0x4a04fe=_0x31570c['getUnitId']();for(const _0x4b72db of _0x8dd379){const _0x4ff488=_0x4b72db[_0x5cd749(0xab)](),_0x9319f=_0x4b72db[_0x5cd749(0xdf)](),_0xd33a65=_0x4b72db[_0x5cd749(0x89)](),{mergeRTree:_0x3a0407,mergeRangeMap:_0x39b2ac}=MergeRTree(_0x4a04fe,_0x4b72db),_0xd9b8bb=ExceptRTree(_0x4a04fe,_0x4ff488,_0xc18c85),_0x141ab4=[];let _0x377ac0=[];const _0x5e78ae=_0x4b72db['getCellMatrix']();for(let _0x22ca16=0x0;_0x22ca16<_0x9319f;_0x22ca16++){const _0x66d9ba=[];let _0x2ccffc=new ReasoningTable({'sheetId':_0x4ff488,'range':{'startRow':_0x22ca16,'endRow':_0x22ca16,'startColumn':-0x1,'endColumn':-0x1}});const _0x4a5615=new Map();if(_0x5e78ae['getRow'](_0x22ca16)==null){_0x141ab4[_0x5cd749(0xa7)](..._0x377ac0),_0x377ac0=[];continue;}for(let _0x55b710=0x0;_0x55b710<=_0xd33a65;_0x55b710++){const _0x5cc3b2=_0x4b72db[_0x5cd749(0x7a)](_0x22ca16,_0x55b710),_0x2ba113={'range':{'startRow':_0x22ca16,'startColumn':_0x55b710,'endRow':_0x22ca16,'endColumn':_0x55b710},'unitId':_0x4a04fe,'sheetId':_0x4ff488};if(_0xd9b8bb[_0x5cd749(0x131)]([_0x2ba113])[_0x5cd749(0x107)]>0x0){_0x2ccffc=_0x2ccffc[_0x5cd749(0xb7)](_0x66d9ba);continue;}const _0x39c1f2=_0x3a0407['bulkSearch']([_0x2ba113]);if(_0x39c1f2[_0x5cd749(0x107)]>0x0){const _0x3292d4=_0x2ccffc[_0x5cd749(0x11d)](_0x377ac0),_0x2d860f=_0x39c1f2[_0x5cd749(0xb1)]()[_0x5cd749(0x102)]()[_0x5cd749(0x136)],_0xe0aa5=_0x39b2ac[_0x5cd749(0x88)](_0x2d860f);if(!_0xe0aa5)continue;const _0x1f7e0d={'startRow':_0xe0aa5[_0x5cd749(0xd2)]['startRow'],'endRow':_0xe0aa5[_0x5cd749(0xd2)][_0x5cd749(0xb8)],'startColumn':_0xe0aa5[_0x5cd749(0xd2)][_0x5cd749(0xd8)],'endColumn':_0xe0aa5[_0x5cd749(0xd2)]['endColumn']},_0x3bc451=_0x4b72db[_0x5cd749(0x7a)](_0x1f7e0d[_0x5cd749(0xd5)],_0x1f7e0d['startColumn']);if(_0x3bc451&&(_0x3bc451['p']!=null||_0x3bc451['v']!=null&&String(_0x3bc451['v'])['length']>0x0)){_0x2ccffc[_0x5cd749(0xb3)](_0x22ca16,_0x55b710,_0x5cc3b2,_0x1f7e0d[_0x5cd749(0xa8)]);for(let _0x4265d8=_0x1f7e0d[_0x5cd749(0xd8)];_0x4265d8<=_0x1f7e0d[_0x5cd749(0xa8)];_0x4265d8++)_0x4a5615[_0x5cd749(0xc9)](_0x4265d8,!![]);}else _0x2ccffc=_0x2ccffc[_0x5cd749(0xb7)](_0x66d9ba);const _0xaddeff=_0x1f7e0d[_0x5cd749(0xb8)]-_0x1f7e0d[_0x5cd749(0xd5)],_0x38c776=_0x1f7e0d['endColumn']-_0x1f7e0d[_0x5cd749(0xd8)];if(_0x3292d4[_0x5cd749(0xe2)]===0x1){if(_0xaddeff>0x0)pushColumnMerge(_0x2ccffc['columnMergeTitleCountMap'],_0x55b710,_0xe0aa5);if(_0x38c776>0x0){var _0x34c551;const _0x505842=(_0x34c551=_0x2ccffc[_0x5cd749(0x104)]['get'](_0x22ca16))!==null&&_0x34c551!==void 0x0?_0x34c551:[];_0x505842[_0x5cd749(0xa7)](_0xe0aa5),_0x2ccffc[_0x5cd749(0x104)][_0x5cd749(0xc9)](_0x22ca16,_0x505842);}}else{_0xaddeff>0x0&&(_0x2ccffc[_0x5cd749(0x99)]=!![],pushColumnMerge(_0x2ccffc[_0x5cd749(0xd0)],_0x55b710,_0xe0aa5));if(_0x38c776>0x0){var _0x491d8e;_0x2ccffc[_0x5cd749(0xf2)]=!![];const _0x20de88=(_0x491d8e=_0x2ccffc[_0x5cd749(0x104)][_0x5cd749(0x88)](_0x22ca16))!==null&&_0x491d8e!==void 0x0?_0x491d8e:[];_0x20de88[_0x5cd749(0xa7)](_0xe0aa5),_0x2ccffc[_0x5cd749(0x104)][_0x5cd749(0xc9)](_0x22ca16,_0x20de88);}}continue;}if((!_0x5cc3b2||getCellValue(_0x5cc3b2)==null)&&!_0x4a5615[_0x5cd749(0x88)](_0x55b710)){_0x2ccffc=_0x2ccffc[_0x5cd749(0xb7)](_0x66d9ba);continue;}if(_0x5cc3b2&&getCellValue(_0x5cc3b2)!=null)_0x2ccffc['insertCellData'](_0x22ca16,_0x55b710,_0x5cc3b2);else _0x2ccffc[_0x5cd749(0xf2)]=![],_0x2ccffc[_0x5cd749(0x99)]=![],_0x2ccffc=_0x2ccffc[_0x5cd749(0xb7)](_0x66d9ba);}if(_0x66d9ba[_0x5cd749(0xe2)]===0x0){_0x141ab4[_0x5cd749(0xa7)](..._0x377ac0),_0x377ac0=[];continue;}if(_0x377ac0[_0x5cd749(0xe2)]===0x0){_0x377ac0[_0x5cd749(0xa7)](..._0x66d9ba);continue;}const _0x44d3ef=(_0x553046,_0x38bfe5)=>{const _0x3bfbbb=_0x5cd749;_0x553046['range'][_0x3bfbbb(0xd5)]=Math[_0x3bfbbb(0x92)](_0x553046[_0x3bfbbb(0xd2)][_0x3bfbbb(0xd5)],_0x38bfe5[_0x3bfbbb(0xd2)]['startRow']),_0x553046[_0x3bfbbb(0xd2)]['endRow']=Math[_0x3bfbbb(0xf4)](_0x553046['range']['endRow'],_0x38bfe5[_0x3bfbbb(0xd2)][_0x3bfbbb(0xb8)]),_0x553046[_0x3bfbbb(0xd2)][_0x3bfbbb(0xd8)]=Math[_0x3bfbbb(0x92)](_0x553046['range'][_0x3bfbbb(0xd8)],_0x38bfe5[_0x3bfbbb(0xd2)]['startColumn']),_0x553046['range']['endColumn']=Math[_0x3bfbbb(0xf4)](_0x553046['range']['endColumn'],_0x38bfe5[_0x3bfbbb(0xd2)][_0x3bfbbb(0xa8)]),_0x38bfe5[_0x3bfbbb(0x104)][_0x3bfbbb(0xca)]((_0x43688e,_0x1e2dae)=>{const _0x490925=_0x3bfbbb;var _0x545777;const _0x326d99=(_0x545777=_0x553046[_0x490925(0x104)][_0x490925(0x88)](_0x1e2dae))!==null&&_0x545777!==void 0x0?_0x545777:[];_0x326d99[_0x490925(0xa7)](..._0x43688e),_0x553046[_0x490925(0x104)]['set'](_0x1e2dae,_0x326d99);}),_0x38bfe5['columnMergeTitleCountMap'][_0x3bfbbb(0xca)]((_0x33bf88,_0x97d6d9)=>{const _0x413bef=_0x3bfbbb;var _0x3d259a;const _0x32629f=(_0x3d259a=_0x553046[_0x413bef(0xd0)][_0x413bef(0x88)](_0x97d6d9))!==null&&_0x3d259a!==void 0x0?_0x3d259a:[];_0x32629f[_0x413bef(0xa7)](..._0x33bf88),_0x553046[_0x413bef(0xd0)][_0x413bef(0xc9)](_0x97d6d9,_0x32629f);});};for(let _0x58318f=0x0;_0x58318f+0x1<_0x66d9ba[_0x5cd749(0xe2)];_0x58318f++){const _0x4831c2=_0x66d9ba[_0x58318f],_0x2af73e=_0x66d9ba[_0x58318f+0x1];_0x4831c2[_0x5cd749(0x10b)](_0x2af73e)&&(_0x44d3ef(_0x4831c2,_0x2af73e),_0x66d9ba['splice'](_0x58318f+0x1,0x1),_0x58318f--);}const _0x17e4a7=[];for(const _0x4c16f8 of _0x66d9ba){var _0x393f0f;const _0x39dc51=_0x4c16f8[_0x5cd749(0x11d)](_0x377ac0);if(_0x39dc51[_0x5cd749(0xe2)]===0x0){_0x17e4a7['push'](_0x4c16f8);continue;}const _0x410e6b=(_0x393f0f=_0x4c16f8['rowMergeTitleCountMap'][_0x5cd749(0x88)](_0x22ca16))!==null&&_0x393f0f!==void 0x0?_0x393f0f:[];let _0x51c323=Number[_0x5cd749(0xbf)],_0x544d68=-0x1,_0x2646a7=-0x1;for(const _0x5a7ee1 of _0x410e6b){const _0x15b0fa=_0x5a7ee1[_0x5cd749(0xd2)],_0x46250a=_0x15b0fa[_0x5cd749(0xd8)],_0x5c9584=_0x15b0fa['endColumn'];_0x51c323=Math[_0x5cd749(0x92)](_0x51c323,_0x46250a),_0x544d68=Math[_0x5cd749(0xf4)](_0x544d68,_0x5c9584);}if(_0x544d68===-0x1)_0x2646a7=_0x544d68-_0x51c323+0x1;const _0xf29e8f=_0x39dc51[0x0][_0x5cd749(0xd2)],_0x3753f8=_0xf29e8f[_0x5cd749(0xa8)]-_0xf29e8f[_0x5cd749(0xd8)]+0x1;if(_0x2646a7>=0x0&&_0x2646a7<=_0x3753f8*0x3/0x4){_0x17e4a7[_0x5cd749(0xa7)](_0x4c16f8);continue;}const _0x1cacbe=_0x39dc51[0x0];for(const _0x27b741 of _0x39dc51[_0x5cd749(0x95)](0x1)){_0x1cacbe['range'][_0x5cd749(0xd5)]=Math[_0x5cd749(0x92)](_0x1cacbe[_0x5cd749(0xd2)]['startRow'],_0x27b741[_0x5cd749(0xd2)][_0x5cd749(0xd5)]),_0x1cacbe[_0x5cd749(0xd2)][_0x5cd749(0xb8)]=Math['max'](_0x1cacbe['range'][_0x5cd749(0xb8)],_0x27b741[_0x5cd749(0xd2)][_0x5cd749(0xb8)]),_0x1cacbe['range']['startColumn']=Math[_0x5cd749(0x92)](_0x1cacbe['range']['startColumn'],_0x27b741['range'][_0x5cd749(0xd8)]),_0x1cacbe[_0x5cd749(0xd2)]['endColumn']=Math[_0x5cd749(0xf4)](_0x1cacbe[_0x5cd749(0xd2)][_0x5cd749(0xa8)],_0x27b741['range']['endColumn']);}_0x1cacbe[_0x5cd749(0xd2)][_0x5cd749(0xd5)]=Math[_0x5cd749(0x92)](_0x1cacbe['range']['startRow'],_0x4c16f8[_0x5cd749(0xd2)][_0x5cd749(0xd5)]),_0x1cacbe[_0x5cd749(0xd2)][_0x5cd749(0xb8)]=Math[_0x5cd749(0xf4)](_0x1cacbe[_0x5cd749(0xd2)]['endRow'],_0x4c16f8[_0x5cd749(0xd2)][_0x5cd749(0xb8)]),_0x1cacbe[_0x5cd749(0xd2)][_0x5cd749(0xd8)]=Math['min'](_0x1cacbe['range'][_0x5cd749(0xd8)],_0x4c16f8[_0x5cd749(0xd2)][_0x5cd749(0xd8)]),_0x1cacbe[_0x5cd749(0xd2)]['endColumn']=Math[_0x5cd749(0xf4)](_0x1cacbe['range'][_0x5cd749(0xa8)],_0x4c16f8[_0x5cd749(0xd2)][_0x5cd749(0xa8)]),_0x4c16f8[_0x5cd749(0x104)][_0x5cd749(0xca)]((_0x5a845f,_0x106431)=>{const _0x4b4dc3=_0x5cd749;var _0x18cdfe;const _0x43b503=(_0x18cdfe=_0x1cacbe[_0x4b4dc3(0x104)][_0x4b4dc3(0x88)](_0x106431))!==null&&_0x18cdfe!==void 0x0?_0x18cdfe:[];_0x43b503[_0x4b4dc3(0xa7)](..._0x5a845f),_0x1cacbe['rowMergeTitleCountMap'][_0x4b4dc3(0xc9)](_0x106431,_0x43b503);}),_0x4c16f8['columnMergeTitleCountMap']['forEach']((_0x1cc5c6,_0x342572)=>{const _0x54ab01=_0x5cd749;var _0x1dbabd;const _0x227a27=(_0x1dbabd=_0x1cacbe['columnMergeTitleCountMap'][_0x54ab01(0x88)](_0x342572))!==null&&_0x1dbabd!==void 0x0?_0x1dbabd:[];_0x227a27[_0x54ab01(0xa7)](..._0x1cc5c6),_0x1cacbe[_0x54ab01(0xd0)]['set'](_0x342572,_0x227a27);}),_0x1cacbe[_0x5cd749(0x100)]=!![];}const _0x520aaf=[];for(const _0x5d58da of _0x377ac0){if(!_0x5d58da[_0x5cd749(0x100)]&&_0x5d58da['isMatchEnd'])continue;_0x520aaf['push'](_0x5d58da),_0x5d58da[_0x5cd749(0x100)]=![],_0x5d58da[_0x5cd749(0x119)]=![];}_0x520aaf[_0x5cd749(0xa7)](..._0x17e4a7),_0x377ac0=_0x520aaf;}_0x141ab4[_0x5cd749(0xa7)](..._0x377ac0);let _0x28b7fe=0x0;for(const _0x4b574d of _0x141ab4){const _0x2a6b74=_0x4b574d[_0x5cd749(0xd2)]['endRow']-_0x4b574d[_0x5cd749(0xd2)][_0x5cd749(0xd5)]+0x1;if(_0x4b574d['range']['endColumn']-_0x4b574d[_0x5cd749(0xd2)][_0x5cd749(0xd8)]+0x1>0x0&&_0x2a6b74>0x1)_0x28b7fe++;}if(_0x28b7fe===0x0)continue;const _0x3de239=[],_0x5a0cc3=generateRandomIds(0x6,_0x141ab4[_0x5cd749(0xe2)]);let _0x171b26=0x0;for(const _0x1b4689 of _0x141ab4){const _0x139657=_0x1b4689[_0x5cd749(0xd2)][_0x5cd749(0xb8)]-_0x1b4689[_0x5cd749(0xd2)][_0x5cd749(0xd5)]+0x1,_0x5dc0c1=_0x1b4689[_0x5cd749(0xd2)][_0x5cd749(0xa8)]-_0x1b4689[_0x5cd749(0xd2)][_0x5cd749(0xd8)]+0x1;let _0x39bdf8=![];for(const _0x52396c of _0x4b72db[_0x5cd749(0x81)]())if(isSameRange(_0x1b4689[_0x5cd749(0xd2)],_0x52396c)){_0x39bdf8=!![];break;}if(_0x39bdf8)continue;let _0xcfb4ed=!![];for(const _0x23472a of _0x141ab4)if(_0x23472a!==_0x1b4689&&isFullyContained(_0x1b4689,_0x23472a)){_0xcfb4ed=![];break;}if(!_0xcfb4ed)continue;if(_0x5dc0c1<=0x0||_0x139657<=0x1)continue;_0x1b4689['id']=_0x5a0cc3[_0x171b26++],_0x3de239[_0x5cd749(0xa7)](_0x1b4689);}_0x1b5edb[_0x4ff488]=_0x3de239;}return _0x1b5edb;}function handleUniverRecognizeTableAlg(_0x2f93ed,_0x18706a,_0xd4ec32){const _0x3ccb7f=genTable(_0x2f93ed,_0x18706a);return insertSheetTableToReasoningTable(_0x3ccb7f,_0x2f93ed,_0x18706a),getSheetTables(enrichmentTable(_0x3ccb7f,_0x2f93ed),_0x2f93ed,_0x18706a,_0xd4ec32);}function isSameRange(_0x159c38,_0x12f02f){const _0x5b7769=_0x19a1b4;return _0x159c38[_0x5b7769(0xd5)]===_0x12f02f[_0x5b7769(0xd5)]&&_0x159c38[_0x5b7769(0xb8)]===_0x12f02f[_0x5b7769(0xb8)]&&_0x159c38[_0x5b7769(0xd8)]===_0x12f02f['startColumn']&&_0x159c38[_0x5b7769(0xa8)]===_0x12f02f[_0x5b7769(0xa8)];}function isFullyContained(_0x244eb9,_0x15050d){const _0x4e64ac=_0x19a1b4;return _0x244eb9[_0x4e64ac(0xd2)][_0x4e64ac(0xd5)]>=_0x15050d[_0x4e64ac(0xd2)][_0x4e64ac(0xd5)]&&_0x244eb9[_0x4e64ac(0xd2)][_0x4e64ac(0xb8)]<=_0x15050d['range']['endRow']&&_0x244eb9['range'][_0x4e64ac(0xd8)]>=_0x15050d[_0x4e64ac(0xd2)][_0x4e64ac(0xd8)]&&_0x244eb9[_0x4e64ac(0xd2)][_0x4e64ac(0xa8)]<=_0x15050d[_0x4e64ac(0xd2)][_0x4e64ac(0xa8)];}function getRangeName(_0x36c05f){const _0x33385a=_0x19a1b4;return''+ColumnNumberToName(_0x36c05f[_0x33385a(0xd8)])+(_0x36c05f[_0x33385a(0xd5)]+0x1)+':'+ColumnNumberToName(_0x36c05f['endColumn'])+(_0x36c05f[_0x33385a(0xb8)]+0x1);}function getCellValueRaw(_0x15805d){const _0x317f86=_0x19a1b4;if(_0x15805d===null)return;if(_0x15805d===null||_0x15805d===void 0x0?void 0x0:_0x15805d['p']){const _0x8e54b3=_0x15805d===null||_0x15805d===void 0x0?void 0x0:_0x15805d['p'][_0x317f86(0xaa)];if(_0x8e54b3==null)return;const _0x4e5027=_0x8e54b3['dataStream'],_0x41efaf=_univerjs_core['BuildTextUtils'][_0x317f86(0xb4)][_0x317f86(0x11a)](_0x4e5027),_0x3453e2=_0x8e54b3[_0x317f86(0x101)];if(_0x3453e2&&_0x3453e2[_0x317f86(0xe2)]>0x0){var _0x15d75b;const _0x124b8a=_0x3453e2[0x0],_0x4fb8c4=(_0x15d75b=_0x124b8a['properties'])===null||_0x15d75b===void 0x0?void 0x0:_0x15d75b[_0x317f86(0x112)];if(!_0x4fb8c4)return _0x41efaf;const _0x34776c=typeof _0x124b8a['startIndex']===_0x317f86(0xee)?_0x124b8a[_0x317f86(0x8a)]:0x0;let _0x1a33c8=typeof _0x124b8a['endIndex']===_0x317f86(0xee)?_0x124b8a[_0x317f86(0x11b)]+0x1:_0x34776c+0x1;if(_0x34776c===0x0&&_0x1a33c8===0x0)_0x1a33c8=0x1;else{if(_0x1a33c8<=_0x34776c)_0x1a33c8=_0x34776c+0x1;}return'['+_0x4e5027['slice'](_0x34776c,_0x1a33c8)+']('+_0x4fb8c4+')';}return _0x41efaf;}if((_0x15805d===null||_0x15805d===void 0x0?void 0x0:_0x15805d['v'])!=null)return _0x15805d['v'];}function getCellValue(_0xa08059){const _0x1fb29e=getCellValueRaw(_0xa08059);if(_0x1fb29e==null)return;return String(_0x1fb29e);}function getCellValueIncludeMerge(_0x281954,_0x29977f,_0x25dbe7){const _0x31ba76=_0x19a1b4,_0x800789=_0x25dbe7['getCell'](_0x281954,_0x29977f);if(_0x800789!=null){const _0x1d9b8d=getCellValue(_0x800789);if(_0x1d9b8d!=null&&_0x1d9b8d['length']>0x0)return _0x1d9b8d;}const _0x2e9a27=MergeRTreeCache[_0x31ba76(0x88)](_0x25dbe7),_0x21e172=_0x2e9a27===null||_0x2e9a27===void 0x0?void 0x0:_0x2e9a27[_0x31ba76(0xc3)],_0xed8b8d=_0x2e9a27===null||_0x2e9a27===void 0x0?void 0x0:_0x2e9a27['mergeRangeMap'],_0x34a5d8=_0x25dbe7[_0x31ba76(0x10d)](),_0x108337=_0x25dbe7['getSheetId'](),_0x5d279c={'range':{'startRow':_0x281954,'endRow':_0x281954,'startColumn':_0x29977f,'endColumn':_0x29977f},'unitId':_0x34a5d8,'sheetId':_0x108337},_0x332307=(_0x21e172===null||_0x21e172===void 0x0?void 0x0:_0x21e172[_0x31ba76(0x131)]([_0x5d279c]))||new Map();if(_0x332307['size']===0x0||!_0xed8b8d)return null;const _0x165566=_0x332307[_0x31ba76(0xb1)]()[_0x31ba76(0x102)]()['value'],_0x89876=_0xed8b8d['get'](_0x165566);if(!_0x89876)return null;const _0x4621ee=_0x25dbe7[_0x31ba76(0x7a)](_0x89876[_0x31ba76(0xd2)][_0x31ba76(0xd5)],_0x89876[_0x31ba76(0xd2)][_0x31ba76(0xd8)]);if(_0x4621ee==null)return null;return getCellValue(_0x4621ee);}function insertSheetTableToReasoningTable(_0x4458a8,_0xbf18cd,_0x1f4939){const _0x2b1394=_0x19a1b4,_0x11012e=_0xbf18cd[_0x2b1394(0x103)](),_0x23d9db=_0x1f4939[_0x2b1394(0x88)](_univerjs_sheets_table['TableManager']),_0xcd06d5=_0xbf18cd[_0x2b1394(0x10d)]();for(const _0x26c8a0 of _0x11012e){const _0x1d7b99=_0x26c8a0[_0x2b1394(0xab)](),_0x1196e9=_0x23d9db[_0x2b1394(0xcd)](_0xcd06d5,_0x1d7b99);if(!_0x1196e9)continue;const _0x2f75b8=_0x1196e9[_0x2b1394(0xdc)](_0x1f80aa=>_0x1f80aa[_0x2b1394(0xe6)]());for(const _0x57c195 of _0x2f75b8){const {startRow:_0x5ed59e,endRow:_0x4d76c2,startColumn:_0x389664,endColumn:_0x525c91}=_0x57c195[_0x2b1394(0xd2)],_0x501a70=new ReasoningTable({'id':_0x57c195['id'],'sheetId':_0x1d7b99,'range':{'startRow':_0x5ed59e,'endRow':_0x4d76c2,'startColumn':_0x389664,'endColumn':_0x525c91},'name':'','description':'','rowTitleCount':0x0,'mergeRowTitleCount':0x0,'startStatisticRowCount':0x0,'endStatisticRowCount':0x0,'rowMergeTitleCountMap':new Map(),'rowMergeTitleState':![],'columnMergeTitleState':![],'columnMergeTitleCountMap':new Map(),'isMatchEnd':![],'isMatchContinue':![],'isTimeSeries':![],'isTestTable':![],'isUpdateTable':!![],'columns':[]});if(!_0x4458a8[_0x1d7b99])_0x4458a8[_0x1d7b99]=[];_0x4458a8[_0x1d7b99]['push'](_0x501a70);}}}function enrichmentTable(_0x2b5f29,_0x26aaa6){const _0x3d011e=_0x19a1b4,_0x1990a5={};for(const [_0x238c44,_0x4facf7]of Object[_0x3d011e(0xe9)](_0x2b5f29)){var _0x2fe0d4,_0x59fa9f;const _0x561826=_0x4facf7;let _0x1b0b30=![];const _0x95dc53=_0x26aaa6[_0x3d011e(0x8e)](_0x238c44);if(!_0x95dc53)continue;for(let _0x3b5b8c=0x0;_0x3b5b8c<_0x561826['length'];_0x3b5b8c++){const _0x4c6401=_0x561826[_0x3b5b8c],{startRow:_0x2aa2fb,endRow:_0x550d87,startColumn:_0x365c97,endColumn:_0x23267d}=_0x4c6401[_0x3d011e(0xd2)],_0x564506=getTableName(_0x4c6401,_0x95dc53,_0x26aaa6),_0x4f4e55=getReasoningTableRowMergeTitleCount(_0x2aa2fb,_0x550d87,_0x4c6401);let _0x428028=0x1;const _0x3e7747=_0x2aa2fb+_0x4f4e55;let _0x46e2a5=0x0,_0x134ffd=0x0;for(let _0x7640d0=_0x365c97;_0x7640d0<=_0x23267d;_0x7640d0++){const _0x1125a7=_0x95dc53[_0x3d011e(0x7a)](_0x3e7747,_0x7640d0);if(!_0x1125a7)continue;const _0x106874=getCellValue(_0x1125a7);if(_0x106874==null)continue;if(_0x106874!=='')_0x134ffd++;if(isNumber(_0x106874))_0x46e2a5++;}if(_0x134ffd>0x0&&_0x46e2a5/Math['max'](_0x134ffd,0x1)>0.03)_0x428028=0x0;_0x4c6401['mergeRowTitleCount']=_0x4f4e55,_0x4c6401[_0x3d011e(0xce)]=_0x428028+_0x4f4e55;if(_0x4c6401['range'][_0x3d011e(0xb8)]-_0x4c6401[_0x3d011e(0xd2)][_0x3d011e(0xd5)]+0x1-_0x4c6401['rowTitleCount']<=0x1){console[_0x3d011e(0xb6)]('skip\x20small\x20table,\x20idx:'+_0x3b5b8c+',\x20rangeName:'+getRangeName(_0x4c6401['range'])),_0x561826[_0x3d011e(0x12c)](_0x3b5b8c,0x1),_0x3b5b8c--,_0x1b0b30=!![];continue;}const _0x4859ed=new Map();let _0x2b1dd3=0x0;const _0x1c90b1=generateRandomIds(0x4,_0x23267d-_0x365c97+0x1);for(let _0x370057=_0x365c97;_0x370057<=_0x23267d;_0x370057++){let _0x396610='';const _0x4a69f5=new Set();let _0xa9a678=![];const _0xdb475e=_0x2aa2fb+_0x4c6401[_0x3d011e(0xce)]-0x1;let _0x140339=_0x2aa2fb;if(_0x564506!=='')_0x140339=_0x2aa2fb+0x1;for(let _0x474412=_0x140339;_0x474412<=_0xdb475e;_0x474412++){const _0x31e6dd=getCellValueIncludeMerge(_0x474412,_0x370057,_0x95dc53);if(_0x31e6dd==null)continue;if(_0x474412===_0xdb475e)_0x396610=_0x31e6dd;_0x4a69f5[_0x3d011e(0x9c)](_0x31e6dd);}const _0x5e66b8=[..._0x4a69f5][_0x3d011e(0xb5)](','),_0x3530f5=_0x5e66b8;if(_0x4859ed['has'](_0x3530f5))_0xa9a678=!![];else _0x4859ed['set'](_0x3530f5,!![]);const _0x41d96b=_0xdb475e+0x1;let _0x388970=_0xdb475e+0x14,_0x4488af=0x0,_0x29f413=![],_0x3c081c=![];if(_0x388970>_0x550d87)_0x388970=_0x550d87;if(_0x41d96b<_0x550d87){let _0x2ab7c6='';for(let _0x48cf75=_0x41d96b;_0x48cf75<=_0x388970;_0x48cf75++){const _0x51c855=_0x95dc53['getCell'](_0x48cf75,_0x370057);if(!_0x51c855)continue;const _0x477c28=getCellValue(_0x51c855);if(_0x477c28==null)continue;if(!isNumber(_0x477c28))_0x2ab7c6+=_0x477c28;if(isHyperlink(_0x477c28))_0x4488af++;}if(_0x4488af>Math[_0x3d011e(0xba)]((_0x388970-_0x41d96b+0x1)/0x2))_0x3c081c=!![];if(GetStringLength(_0x2ab7c6)/Math[_0x3d011e(0xf4)](_0x388970-_0x41d96b+0x1,0x1)>0xf&&!_0x3c081c)_0x29f413=!![];}_0x4c6401[_0x3d011e(0xf6)][_0x3d011e(0xa7)]({'id':_0x1c90b1[_0x2b1dd3++],'Name':_0x396610,'Type':'','Description':_0x5e66b8,'isCoded':![],'isMeasure':!![],'isOpinionText':![],'isBigText':_0x29f413,'isLink':_0x3c081c,'isTitleRepeat':_0xa9a678,'isUnique':![],'links':[]});}inferColumnTypes(_0x4c6401,_0x26aaa6);}if(_0x1b0b30)_0x2b5f29[_0x238c44]=_0x561826;if(_0x561826[_0x3d011e(0xe2)]===0x0)delete _0x2b5f29[_0x238c44];_0x1990a5[_0x238c44]=(_0x2fe0d4=(_0x59fa9f=_0x2b5f29[_0x238c44])===null||_0x59fa9f===void 0x0?void 0x0:_0x59fa9f[_0x3d011e(0xe2)])!==null&&_0x2fe0d4!==void 0x0?_0x2fe0d4:0x0;}return _0x2b5f29;}function _0xaeb3(){const _0x244183=['setConfig','01/02/2006','rowMergeTitleState','mergeRowTitleCount','max','2006-1-2','columns','Match','description','Confidence','string','displayName','columnId','timeStampStyles','isUnique','sample','isMatchContinue','customRanges','next','getSheets','rowMergeTitleCountMap','2006年1月2日','date','size','trunc','values','isTestTable','intersectWithColumns','Injector','getUnitId','toLowerCase','call','iterator','10434890dypnax','url','unknown','split','UNIVER_RANGE_PREPROCESS_PLUGIN','invalid','tableId','mergeRangeMap','isMatchEnd','getPlainText','endIndex','getStyles','intersectWithPreTables','merge','Calc','isArray','dateStyles','has','Layout','isLink','name','excel','needConvert','2006-01-02\x2015:04:05','getAllTableJson','2169880PETQAR','isTitleRepeat','splice','meta','01-02-2006','20060102','sheetId','bulkSearch','from','8481012JpFEdo','table','isOpinionText','value','toPrimitive','getCell','valid','layout','links','pattern','isTimeSeries','prototype','getMergeData','CellValueType','dispose','data','2\x20January,2006','recognizers','symbol','get','getColumnCount','startIndex','log10','0.22.0','_injector','getSheetBySheetId','02.01.2006','generateRandomId','@univerjs-pro/range-preprocess','min','RangePreprocessController','isCoded','slice','_isRowContinuous','02-01-2006','2006-01-02','columnMergeTitleState','UniverRangePreprocessPlugin','boolean','add','clear','linkType','Inject','default','6232756iXDZXw','Plugin','_configService','onStarting','replace','getTableList','push','endColumn','Type','body','getSheetId','all','stringify','Description','Best','isMeasure','keys','startStatisticRowCount','insertCellData','transform','join','warn','saveTableToCache','endRow','5879435hKovlT','floor','trim','object','9udqsNg','defineProperty','MAX_SAFE_INTEGER','_config','January\x202,2006','Name','mergeRTree','packageName','2006-01-02T15:04:05','isBigText','02/01/2006','3752499oKNucu','set','forEach','7EdXLZe','sort','getTablesBySubunitId','rowTitleCount','2006/1/2','columnMergeTitleCountMap','constructor','range','getName','NUMBER','startRow','decorate','TableManager','startColumn','dataType','endStatisticRowCount','isUpdateTable','map','2006/01/02','function','getRowCount','1557564rwvdub','Jan.\x202,\x202006','length','skip\x20small\x20table','January\x202,\x202006','each','toJSON','getFullYear','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','entries','2\x20Jan.,\x202006','test','getOwnPropertyDescriptor','onReady','number','2ZUiSWz'];_0xaeb3=function(){return _0x244183;};return _0xaeb3();}function getReasoningTableRowMergeTitleCount(_0x5ce9f0,_0x2802d1,_0x35c49c){const _0x5af5fa=_0x19a1b4;function _0x20f330(_0x2c5acd){const _0x354583=_0x5c41;if(_0x2c5acd[_0x354583(0xe2)]===0x0)return 0x0;_0x2c5acd[_0x354583(0xcc)]((_0x21aaa9,_0x1e82f2)=>_0x21aaa9[0x0]-_0x1e82f2[0x0]);let _0x3c7646=0x0,_0x59cc35=_0x2c5acd[0x0][0x0],_0x570879=_0x2c5acd[0x0][0x1];for(let _0x19ead4=0x1;_0x19ead4<_0x2c5acd['length'];_0x19ead4++){const [_0x132751,_0x226c01]=_0x2c5acd[_0x19ead4];if(_0x132751<=_0x570879+0x1)_0x570879=Math[_0x354583(0xf4)](_0x570879,_0x226c01);else _0x3c7646+=_0x570879-_0x59cc35+0x1,_0x59cc35=_0x132751,_0x570879=_0x226c01;}return _0x3c7646+=_0x570879-_0x59cc35+0x1,_0x3c7646;}const _0x35ff4e=_0x35c49c[_0x5af5fa(0xd2)][_0x5af5fa(0xd8)],_0x210d77=_0x35c49c[_0x5af5fa(0xd2)][_0x5af5fa(0xa8)],_0x55c090=_0x210d77-_0x35ff4e+0x1;let _0x25a74c=_0x5ce9f0-0x1,_0x20bb74=_0x5ce9f0-0x1,_0x182a7b=![];const _0x579e3e=0x64;for(let _0x20b2f2=_0x5ce9f0;_0x20b2f2<=_0x2802d1&&_0x20b2f2-_0x5ce9f0<_0x579e3e;_0x20b2f2++){var _0x32a2f3;const _0x57b663=[],_0x316bc9=(_0x32a2f3=_0x35c49c['rowMergeTitleCountMap']['get'](_0x20b2f2))!==null&&_0x32a2f3!==void 0x0?_0x32a2f3:[];for(const _0x55de97 of _0x316bc9){const _0x3935b1=_0x55de97[_0x5af5fa(0xd2)][_0x5af5fa(0xd8)],_0x4d4ca7=_0x55de97['range'][_0x5af5fa(0xa8)],_0x521182=Math[_0x5af5fa(0xf4)](_0x3935b1,_0x35ff4e),_0x2bec8e=Math[_0x5af5fa(0x92)](_0x4d4ca7,_0x210d77);if(_0x521182<=_0x2bec8e)_0x57b663[_0x5af5fa(0xa7)]([_0x521182,_0x2bec8e]);}_0x35c49c['columnMergeTitleCountMap']['forEach'](_0x406491=>{const _0x4676d6=_0x5af5fa;for(const _0x306b04 of _0x406491){const _0x45d14d=_0x306b04[_0x4676d6(0xd2)]['startRow'],_0x4eb2f6=_0x306b04['range'][_0x4676d6(0xb8)];if(_0x45d14d<=_0x20b2f2&&_0x20b2f2<=_0x4eb2f6){const _0x16693f=_0x306b04[_0x4676d6(0xd2)]['startColumn'],_0x561ba3=_0x306b04[_0x4676d6(0xd2)][_0x4676d6(0xa8)],_0x2a465e=Math[_0x4676d6(0xf4)](_0x16693f,_0x35ff4e),_0x3dfb37=Math['min'](_0x561ba3,_0x210d77);if(_0x2a465e<=_0x3dfb37)_0x57b663['push']([_0x2a465e,_0x3dfb37]);}}});const _0x588a1a=_0x20f330(_0x57b663),_0x49ab8e=_0x588a1a/Math[_0x5af5fa(0xf4)](_0x55c090,0x1);if(_0x57b663[_0x5af5fa(0xe2)]>0x0)_0x25a74c=_0x20b2f2;if(_0x588a1a>0x0&&_0x49ab8e>=0.75&&!_0x182a7b)_0x20bb74=_0x20b2f2;else{if(_0x57b663[_0x5af5fa(0xe2)]>0x0)_0x182a7b=!![];}}if(_0x25a74c===_0x2802d1||_0x25a74c-_0x5ce9f0===_0x579e3e)return _0x20bb74-_0x5ce9f0+0x1;return _0x25a74c-_0x5ce9f0+0x1;}function getTableName(_0x2bfe55,_0x24da9d,_0x327c95){const _0xa6a15=_0x19a1b4;_0x2bfe55['description']+=_0x24da9d[_0xa6a15(0xd3)]()+',\x20'+_0x327c95[_0xa6a15(0x125)];if(_0x2bfe55['name']&&_0x2bfe55['name']!=='')return _0x2bfe55[_0xa6a15(0x125)];const _0x1d0abf=_0x2bfe55['range']['startRow'],_0x169de6=_0x2bfe55['range'][_0xa6a15(0xd8)],_0x1d3bfd=_0x2bfe55['range'][_0xa6a15(0xa8)],_0x58a1e0=0x3,_0x209594=_0x2bfe55[_0xa6a15(0x104)][_0xa6a15(0x88)](_0x1d0abf);if(_0x209594&&_0x209594[_0xa6a15(0xe2)]>0x0)for(const _0x1c6dc9 of _0x209594){const _0x43d68e=_0x1c6dc9[_0xa6a15(0xd2)],_0x237f86=_0x43d68e[_0xa6a15(0xd8)],_0x301385=_0x43d68e['endColumn'];if(_0x237f86<=_0x169de6+_0x58a1e0&&_0x301385>=_0x1d3bfd-_0x58a1e0){const _0x34e0ea=_0x24da9d[_0xa6a15(0x7a)](_0x1d0abf,_0x237f86);if(!_0x34e0ea)return'';const _0x181228=getCellValue(_0x34e0ea);if(_0x181228==null||_0x181228==='')return'';return _0x2bfe55[_0xa6a15(0x125)]=_0x181228,_0x181228;}}return'';}function inferColumnTypes(_0x213f16,_0xe0c69e){const _0x35f7fc=_0x19a1b4,_0x40721c={};_0xe0c69e[_0x35f7fc(0x11c)]()[_0x35f7fc(0xe5)](_0x214c32=>{const _0x333be2=_0x35f7fc,[_0x40f2ea,_0x48ddf3]=_0x214c32;if(!_0x40f2ea||!_0x48ddf3)return!![];if(_0x48ddf3['n']&&typeof _0x48ddf3['n'][_0x333be2(0x7e)]===_0x333be2(0xfa)&&/[YyMDd]/[_0x333be2(0xeb)](_0x48ddf3['n']['pattern']))_0x40721c[_0x40f2ea]=!![];return!![];});const _0x63cc83=_0x213f16[_0x35f7fc(0xd2)]['startRow'],_0x2bb0d7=_0x213f16[_0x35f7fc(0xd2)][_0x35f7fc(0xb8)],_0x1c1244=_0x213f16['rowTitleCount'],_0x4ecd39=_0x213f16['sheetId'],_0x3b826e=_0xe0c69e['getSheetBySheetId'](_0x4ecd39);if(!_0x3b826e)return;const _0x2b128d=_0x2bb0d7-_0x63cc83+0x1-_0x1c1244;if(_0x2b128d<=0x1){console[_0x35f7fc(0xb6)](_0x35f7fc(0xe3));return;}const _0x319c7c=[];for(let _0x1f3b00=0x0;_0x1f3b00<_0x213f16['range'][_0x35f7fc(0xa8)]-_0x213f16[_0x35f7fc(0xd2)][_0x35f7fc(0xd8)]+0x1;_0x1f3b00++)_0x319c7c[_0x35f7fc(0xa7)](new DetectImpl(_0x40721c));const _0x3a1d89=Math[_0x35f7fc(0x8b)](Math['max'](_0x2b128d,0x1));for(let _0x230345=0x0;;_0x230345++){const _0x5914c1=_0x230345,_0x2477c8=Math['floor'](_0x5914c1+0.00001*_0x5914c1**2.7*_0x3a1d89*_0x3a1d89)+_0x63cc83+_0x1c1244;if(_0x2477c8>_0x2bb0d7)break;for(let _0x508a49=_0x213f16['range']['startColumn'];_0x508a49<=_0x213f16[_0x35f7fc(0xd2)][_0x35f7fc(0xa8)];_0x508a49++){const _0x5d4cb1=_0x3b826e[_0x35f7fc(0x7a)](_0x2477c8,_0x508a49);if(!_0x5d4cb1)continue;_0x319c7c[_0x508a49-_0x213f16['range'][_0x35f7fc(0xd8)]][_0x35f7fc(0xf7)](_0x5d4cb1);}}const _0x306c97=[];for(let _0x5adc31=0x0;_0x5adc31<_0x213f16[_0x35f7fc(0xf6)][_0x35f7fc(0xe2)];_0x5adc31++){const [_0x425bc6,_0x5c9ff9]=_0x319c7c[_0x5adc31][_0x35f7fc(0xaf)]();_0x213f16[_0x35f7fc(0xf6)][_0x5adc31][_0x35f7fc(0xa9)]=_0x425bc6,_0x306c97[_0x35f7fc(0xa7)](_0x425bc6);}}function getColumnLinks(_0xd7a191){const _0x5222de=_0x19a1b4,_0x214734=[];for(const _0x53e3a8 of _0xd7a191['links'])_0x214734[_0x5222de(0xa7)]({'tableId':_0x53e3a8[_0x5222de(0x117)],'columnId':_0x53e3a8[_0x5222de(0xfc)],'linkType':_0x53e3a8[_0x5222de(0x9e)]});return _0x214734;}function showHeader(_0x441948){const _0x559517=_0x19a1b4;return _0x441948[_0x559517(0xce)]===0x1;}function insertReasoningTableToSheetTable(_0x4aa964,_0x4d0594,_0x295607,_0x33aa41,_0x1d61bf){const _0x1aa0b6=_0x19a1b4,_0xc5bfa6=_0x33aa41['get'](_univerjs_sheets_table[_0x1aa0b6(0xd7)]),_0x285558=_0x4d0594[_0x1aa0b6(0x10d)](),_0x5ba95d=_0x4aa964[_0x1aa0b6(0x130)];if(!_0xc5bfa6['getTablesBySubunitId'](_0x285558,_0x5ba95d))return;for(const _0x3c52e4 of _0x295607){if(_0x3c52e4['id']!==_0x4aa964['id'])continue;_0x3c52e4[_0x1aa0b6(0x125)]=_0x4aa964[_0x1aa0b6(0x125)],_0x3c52e4['meta']={},_0x3c52e4[_0x1aa0b6(0x12d)]['description']=_0x4aa964[_0x1aa0b6(0xf8)],_0x3c52e4[_0x1aa0b6(0x12d)][_0x1aa0b6(0xce)]=_0x4aa964[_0x1aa0b6(0xce)],_0x3c52e4[_0x1aa0b6(0x12d)][_0x1aa0b6(0xf3)]=_0x4aa964['mergeRowTitleCount'],_0x3c52e4[_0x1aa0b6(0x12d)][_0x1aa0b6(0x7f)]=_0x4aa964[_0x1aa0b6(0x7f)];for(let _0x4c9fcf=0x0;_0x4c9fcf<_0x4aa964['columns'][_0x1aa0b6(0xe2)];_0x4c9fcf++){const _0x1ebc72=_0x4aa964[_0x1aa0b6(0xf6)][_0x4c9fcf],_0x431e83=_0x3c52e4[_0x1aa0b6(0xf6)][_0x4c9fcf];_0x431e83[_0x1aa0b6(0xfb)]=_0x1ebc72[_0x1aa0b6(0xc2)],_0x431e83[_0x1aa0b6(0xd9)]=_0x1ebc72[_0x1aa0b6(0xa9)],_0x431e83[_0x1aa0b6(0x12d)]={},_0x431e83['meta'][_0x1aa0b6(0xf8)]=_0x1ebc72[_0x1aa0b6(0xae)],_0x431e83[_0x1aa0b6(0x12d)][_0x1aa0b6(0x94)]=_0x1ebc72[_0x1aa0b6(0x94)],_0x431e83[_0x1aa0b6(0x12d)]['isMeasure']=_0x1ebc72[_0x1aa0b6(0xb0)],_0x431e83[_0x1aa0b6(0x12d)][_0x1aa0b6(0x135)]=_0x1ebc72['isOpinionText'],_0x431e83[_0x1aa0b6(0x12d)][_0x1aa0b6(0xc6)]=_0x1ebc72[_0x1aa0b6(0xc6)],_0x431e83[_0x1aa0b6(0x12d)][_0x1aa0b6(0x124)]=_0x1ebc72['isLink'],_0x431e83[_0x1aa0b6(0x12d)][_0x1aa0b6(0x12b)]=_0x1ebc72[_0x1aa0b6(0x12b)],_0x431e83[_0x1aa0b6(0x12d)][_0x1aa0b6(0xfe)]=_0x1ebc72[_0x1aa0b6(0xfe)],_0x431e83[_0x1aa0b6(0x12d)]['links']=getColumnLinks(_0x1ebc72);}addDataToTableJson(_0x3c52e4,_0x5ba95d,_0x4d0594,_0x1d61bf);}MergeRTreeCache[_0x1aa0b6(0x9d)]();}function getSheetTables(_0x2ec4a5,_0x19a59d,_0x99e736,_0x149951){const _0x4af623=_0x19a1b4,_0x1907e7=_0x99e736[_0x4af623(0x88)](_univerjs_sheets_table[_0x4af623(0xd7)]),_0x28f3c=_0x19a59d[_0x4af623(0x10d)](),_0x3946c7={};for(const [_0x3d3347,_0x1fc4ce]of Object[_0x4af623(0xe9)](_0x2ec4a5)){const _0x33f25a=_0x1907e7['getTablesBySubunitId'](_0x28f3c,_0x3d3347),_0x2f13a4=(_0x33f25a===null||_0x33f25a===void 0x0?void 0x0:_0x33f25a['map'](_0x2a4c39=>_0x2a4c39[_0x4af623(0xe6)]()))||[];for(const _0x5b2e84 of _0x1fc4ce){if(_0x5b2e84[_0x4af623(0xdb)]){insertReasoningTableToSheetTable(_0x5b2e84,_0x19a59d,_0x2f13a4,_0x99e736,_0x149951);continue;}const _0x27ef94={'id':_0x5b2e84['id'],'range':{'startRow':_0x5b2e84[_0x4af623(0xd2)][_0x4af623(0xd5)]+_0x5b2e84[_0x4af623(0xf3)],'endRow':_0x5b2e84[_0x4af623(0xd2)][_0x4af623(0xb8)],'startColumn':_0x5b2e84['range'][_0x4af623(0xd8)],'endColumn':_0x5b2e84[_0x4af623(0xd2)][_0x4af623(0xa8)]},'name':_0x5b2e84[_0x4af623(0x125)],'meta':{},'options':{'showHeader':showHeader(_0x5b2e84),'showFooter':![]},'columns':[],'filters':{}};_0x27ef94['meta'][_0x4af623(0xf8)]=_0x5b2e84[_0x4af623(0xf8)],_0x27ef94['meta'][_0x4af623(0xce)]=_0x5b2e84[_0x4af623(0xce)],_0x27ef94['meta'][_0x4af623(0xf3)]=_0x5b2e84['mergeRowTitleCount'],_0x27ef94['meta'][_0x4af623(0x7f)]=_0x5b2e84[_0x4af623(0x7f)];const _0x249bcf=_0x5b2e84[_0x4af623(0xd2)]['startColumn'];for(let _0x10f35b=0x0;_0x10f35b<_0x5b2e84['columns'][_0x4af623(0xe2)];_0x10f35b++){const _0x2c2d48=_0x5b2e84[_0x4af623(0xf6)][_0x10f35b],_0x5d1919={'id':_0x2c2d48['id'],'displayName':_0x2c2d48['Name']||'column_'+ColumnNumberToName(_0x249bcf+_0x10f35b),'dataType':_0x2c2d48['Type'],'meta':{},'formula':'','style':{}};_0x5d1919[_0x4af623(0x12d)]['description']=_0x2c2d48[_0x4af623(0xae)],_0x5d1919[_0x4af623(0x12d)][_0x4af623(0x94)]=_0x2c2d48[_0x4af623(0x94)],_0x5d1919[_0x4af623(0x12d)][_0x4af623(0xb0)]=_0x2c2d48[_0x4af623(0xb0)],_0x5d1919[_0x4af623(0x12d)][_0x4af623(0x135)]=_0x2c2d48[_0x4af623(0x135)],_0x5d1919[_0x4af623(0x12d)][_0x4af623(0xc6)]=_0x2c2d48[_0x4af623(0xc6)],_0x5d1919['meta']['isLink']=_0x2c2d48[_0x4af623(0x124)],_0x5d1919[_0x4af623(0x12d)][_0x4af623(0x12b)]=_0x2c2d48[_0x4af623(0x12b)],_0x5d1919[_0x4af623(0x12d)][_0x4af623(0xfe)]=_0x2c2d48[_0x4af623(0xfe)],_0x5d1919[_0x4af623(0x12d)][_0x4af623(0x7d)]=getColumnLinks(_0x2c2d48),_0x27ef94[_0x4af623(0xf6)][_0x4af623(0xa7)](_0x5d1919);}addDataToTableJson(_0x27ef94,_0x3d3347,_0x19a59d,_0x149951),_0x2f13a4[_0x4af623(0xa7)](_0x27ef94);}_0x3946c7[_0x3d3347]=_0x2f13a4;}for(const _0x57bc21 of Object[_0x4af623(0xb1)](_0x2ec4a5))_0x2ec4a5[_0x57bc21]['forEach'](_0xd2e06f=>{_0xd2e06f['dispose']();});return _0x3946c7;}function getRowsAfterTitle(_0x4d9d64,_0x128900,_0x281218=0x5){const _0x146b61=_0x19a1b4;if(!Array[_0x146b61(0x120)](_0x4d9d64)||_0x4d9d64['length']===0x0)return[];const _0x43a373=Math[_0x146b61(0x92)](_0x128900,_0x4d9d64['length']),_0x1986e3=Math[_0x146b61(0x92)](_0x43a373+_0x281218,_0x4d9d64['length']);return _0x4d9d64['slice'](_0x43a373,_0x1986e3);}function addDataToTableJson(_0x4c5ec9,_0x46e7e7,_0x4bcd9c,_0x43bb68){const _0x455687=_0x19a1b4,_0x215216=_0x4bcd9c['getSheetBySheetId'](_0x46e7e7);if(!_0x215216)return;const _0x2048db=_0x4c5ec9[_0x455687(0xd2)],_0x5d1581=getDisplayValues(_0x215216,_0x2048db);if(_0x43bb68===_0x455687(0xff))_0x4c5ec9[_0x455687(0x84)]=JSON['stringify'](getRowsAfterTitle(_0x5d1581,0x1,0x5));else{if(_0x43bb68===_0x455687(0xac))_0x4c5ec9['data']=JSON[_0x455687(0xad)](getRowsAfterTitle(_0x5d1581,0x1,_0x5d1581[_0x455687(0xe2)]));}}function getDisplayValues(_0x1a07fd,_0x12a91e){const _0x2cff1e=_0x19a1b4,{startRow:_0x2fac0d,endRow:_0x4fbce3,startColumn:_0x111364,endColumn:_0xd0e97}=_0x12a91e,_0x426691=[],_0x28d05f=MergeRTreeCache['get'](_0x1a07fd),_0x19fe53=_0x28d05f===null||_0x28d05f===void 0x0?void 0x0:_0x28d05f['mergeRTree'],_0x11ff2b=_0x28d05f===null||_0x28d05f===void 0x0?void 0x0:_0x28d05f[_0x2cff1e(0x118)],_0x3e0424=_0x1a07fd[_0x2cff1e(0x10d)](),_0x25a6d0=_0x1a07fd[_0x2cff1e(0xab)]();for(let _0x11236b=_0x2fac0d;_0x11236b<=_0x4fbce3;_0x11236b++){const _0x3ff5ac=[];for(let _0x3acad4=_0x111364;_0x3acad4<=_0xd0e97;_0x3acad4++){var _0x301f0c;const _0x3bf6ed=_0x1a07fd[_0x2cff1e(0x7a)](_0x11236b,_0x3acad4);let _0xe1bde5=_0x3bf6ed?getCellValueRaw(_0x3bf6ed):void 0x0;if(_0xe1bde5===null||_0xe1bde5===void 0x0||_0xe1bde5===''){const _0x2b1fe1={'range':{'startRow':_0x11236b,'endRow':_0x11236b,'startColumn':_0x3acad4,'endColumn':_0x3acad4},'unitId':_0x3e0424,'sheetId':_0x25a6d0},_0x2e5252=(_0x19fe53===null||_0x19fe53===void 0x0?void 0x0:_0x19fe53[_0x2cff1e(0x131)]([_0x2b1fe1]))||new Map();if(_0x2e5252[_0x2cff1e(0x107)]>0x0&&_0x11ff2b){const _0x28f7ea=_0x2e5252[_0x2cff1e(0xb1)]()[_0x2cff1e(0x102)]()['value'],_0x4827f5=_0x11ff2b[_0x2cff1e(0x88)](_0x28f7ea);if(!_0x4827f5)continue;const _0x3442eb=_0x1a07fd[_0x2cff1e(0x7a)](_0x4827f5[_0x2cff1e(0xd2)][_0x2cff1e(0xd5)],_0x4827f5[_0x2cff1e(0xd2)][_0x2cff1e(0xd8)]);if(_0x3442eb)_0xe1bde5=getCellValueRaw(_0x3442eb);}}_0x3ff5ac[_0x2cff1e(0xa7)]((_0x301f0c=_0xe1bde5)!==null&&_0x301f0c!==void 0x0?_0x301f0c:'');}_0x426691[_0x2cff1e(0xa7)](_0x3ff5ac);}return _0x426691;}function isHyperlink(_0x171696){const _0x2ef3a2=_0x19a1b4;return/https?:\/\/|www\./i[_0x2ef3a2(0xeb)](_0x171696);}function GetStringLength(_0x5d9083){const _0x6ccfee=_0x19a1b4;return Array[_0x6ccfee(0x132)](_0x5d9083)[_0x6ccfee(0xe2)];}function isNumber(_0x4038d3){const _0x5ac74c=_0x19a1b4;if(!_0x4038d3)return![];return/^[-+]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[-+]?\d+)?$/i['test'](_0x4038d3[_0x5ac74c(0xbb)]());}function ColumnNumberToName(_0x2a24ad){const _0x2d7052=_0x19a1b4;let _0x587c1d='',_0x4084b0=_0x2a24ad+0x1;while(_0x4084b0>0x0){const _0x5289c1=(_0x4084b0-0x1)%0x1a;_0x587c1d=String['fromCharCode'](0x41+_0x5289c1)+_0x587c1d,_0x4084b0=Math[_0x2d7052(0xba)]((_0x4084b0-0x1)/0x1a);}return _0x587c1d;}function __decorateParam(_0x293c4e,_0x122a48){return function(_0x46d237,_0x6aa658){_0x122a48(_0x46d237,_0x6aa658,_0x293c4e);};}function __decorate(_0x1afbfc,_0x2fcbeb,_0x44d543,_0x233c50){const _0x416b83=_0x19a1b4;var _0x8a2d15=arguments[_0x416b83(0xe2)],_0x35f28b=_0x8a2d15<0x3?_0x2fcbeb:_0x233c50===null?_0x233c50=Object[_0x416b83(0xec)](_0x2fcbeb,_0x44d543):_0x233c50,_0x1dfb11;if(typeof Reflect===_0x416b83(0xbc)&&typeof Reflect[_0x416b83(0xd6)]===_0x416b83(0xde))_0x35f28b=Reflect[_0x416b83(0xd6)](_0x1afbfc,_0x2fcbeb,_0x44d543,_0x233c50);else{for(var _0x26695d=_0x1afbfc[_0x416b83(0xe2)]-0x1;_0x26695d>=0x0;_0x26695d--)if(_0x1dfb11=_0x1afbfc[_0x26695d])_0x35f28b=(_0x8a2d15<0x3?_0x1dfb11(_0x35f28b):_0x8a2d15>0x3?_0x1dfb11(_0x2fcbeb,_0x44d543,_0x35f28b):_0x1dfb11(_0x2fcbeb,_0x44d543))||_0x35f28b;}return _0x8a2d15>0x3&&_0x35f28b&&Object[_0x416b83(0xbe)](_0x2fcbeb,_0x44d543,_0x35f28b),_0x35f28b;}let RangePreprocessController=class RangePreprocessController extends _univerjs_core['Disposable']{constructor(_0x3a4976){const _0x32075f=_0x19a1b4;super(),this[_0x32075f(0x8d)]=_0x3a4976;}[_0x19a1b4(0x129)](_0xd8bde6,_0x4a4389){const _0x591326=_0x19a1b4;return handleUniverRecognizeTableAlg(_0xd8bde6,this[_0x591326(0x8d)],_0x4a4389);}};function _0x5c41(_0x3ee9f6,_0xb02b68){_0x3ee9f6=_0x3ee9f6-0x7a;const _0xaeb3c8=_0xaeb3();let _0x5c41bc=_0xaeb3c8[_0x3ee9f6];return _0x5c41bc;}RangePreprocessController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x19a1b4(0x9f)])(_univerjs_core['Injector']))],RangePreprocessController);var name=_0x19a1b4(0x91),version=_0x19a1b4(0x8c);const RANGE_PREPROCESS_PLUGIN_CONFIG_KEY='RANGE_PREPROCESS_PLUGIN_CONFIG_KEY';let UniverRangePreprocessPlugin=class UniverRangePreprocessPlugin extends _univerjs_core[_0x19a1b4(0xa2)]{constructor(_0x4d31f8={},_0x41edd2,_0xcfc86b){const _0xf49dfc=_0x19a1b4;super(),this[_0xf49dfc(0xc0)]=_0x4d31f8,this[_0xf49dfc(0x8d)]=_0x41edd2,this[_0xf49dfc(0xa3)]=_0xcfc86b;const {..._0xda806d}=(0x0,_univerjs_core['merge'])({},this[_0xf49dfc(0xc0)]);this[_0xf49dfc(0xa3)][_0xf49dfc(0xf0)](RANGE_PREPROCESS_PLUGIN_CONFIG_KEY,_0xda806d);}[_0x19a1b4(0xa4)](){const _0x2afa7c=_0x19a1b4,_0x3bef1b=[[RangePreprocessController]];(0x0,_univerjs_core['registerDependencies'])(this[_0x2afa7c(0x8d)],_0x3bef1b);}[_0x19a1b4(0xed)](){}};_defineProperty(UniverRangePreprocessPlugin,'pluginName',_0x19a1b4(0x115)),_defineProperty(UniverRangePreprocessPlugin,_0x19a1b4(0xc4),name),_defineProperty(UniverRangePreprocessPlugin,'version',version),UniverRangePreprocessPlugin=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x19a1b4(0x9f)])(_univerjs_core[_0x19a1b4(0x10c)])),__decorateParam(0x2,_univerjs_core['IConfigService'])],UniverRangePreprocessPlugin),Object[_0x19a1b4(0xbe)](exports,_0x19a1b4(0x93),{'enumerable':!![],'get':function(){return RangePreprocessController;}}),Object[_0x19a1b4(0xbe)](exports,_0x19a1b4(0x9a),{'enumerable':!![],'get':function(){return UniverRangePreprocessPlugin;}});
1
+ const _0x472f32=_0x329e;(function(_0x2236e3,_0x5416ea){const _0x631105=_0x329e,_0x16698a=_0x2236e3();while(!![]){try{const _0x2644e6=-parseInt(_0x631105(0x1fa))/0x1*(-parseInt(_0x631105(0x1c2))/0x2)+parseInt(_0x631105(0x1a5))/0x3*(parseInt(_0x631105(0x244))/0x4)+parseInt(_0x631105(0x1a3))/0x5*(-parseInt(_0x631105(0x202))/0x6)+parseInt(_0x631105(0x1b4))/0x7+-parseInt(_0x631105(0x1f2))/0x8+parseInt(_0x631105(0x22f))/0x9*(-parseInt(_0x631105(0x1c1))/0xa)+-parseInt(_0x631105(0x1bc))/0xb;if(_0x2644e6===_0x5416ea)break;else _0x16698a['push'](_0x16698a['shift']());}catch(_0x2efb6f){_0x16698a['push'](_0x16698a['shift']());}}}(_0x147c,0xe6d79),Object[_0x472f32(0x1b6)](exports,Symbol[_0x472f32(0x251)],{'value':_0x472f32(0x1cf)}));let _univerjs_core=require('@univerjs/core');require('@univerjs/sheets-filter');let _univerjs_sheets_table=require('@univerjs/sheets-table');function _typeof(_0x2b63d8){'@babel/helpers - typeof';const _0x2a827a=_0x472f32;return _typeof=_0x2a827a(0x246)==typeof Symbol&&_0x2a827a(0x1db)==typeof Symbol[_0x2a827a(0x1d5)]?function(_0x3e62df){return typeof _0x3e62df;}:function(_0x3ad455){const _0x3f4dde=_0x2a827a;return _0x3ad455&&'function'==typeof Symbol&&_0x3ad455[_0x3f4dde(0x200)]===Symbol&&_0x3ad455!==Symbol[_0x3f4dde(0x1fc)]?_0x3f4dde(0x1db):typeof _0x3ad455;},_typeof(_0x2b63d8);}function toPrimitive(_0x29a129,_0x1b4fb4){const _0x6d5828=_0x472f32;if(_0x6d5828(0x1e8)!=_typeof(_0x29a129)||!_0x29a129)return _0x29a129;var _0x494dce=_0x29a129[Symbol[_0x6d5828(0x209)]];if(void 0x0!==_0x494dce){var _0x29da7f=_0x494dce[_0x6d5828(0x236)](_0x29a129,_0x1b4fb4||_0x6d5828(0x1cd));if('object'!=_typeof(_0x29da7f))return _0x29da7f;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x6d5828(0x1e3)===_0x1b4fb4?String:Number)(_0x29a129);}function toPropertyKey(_0x4f4048){const _0x4677be=_0x472f32;var _0xb3bd2e=toPrimitive(_0x4f4048,_0x4677be(0x1e3));return _0x4677be(0x1db)==_typeof(_0xb3bd2e)?_0xb3bd2e:_0xb3bd2e+'';}function _defineProperty(_0x2135af,_0x5e2729,_0x4f166d){const _0x506975=_0x472f32;return(_0x5e2729=toPropertyKey(_0x5e2729))in _0x2135af?Object[_0x506975(0x1b6)](_0x2135af,_0x5e2729,{'value':_0x4f166d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2135af[_0x5e2729]=_0x4f166d,_0x2135af;}function getCellValue$1(_0x35a17c){const _0x5d7408=_0x472f32;if(_0x35a17c['v']==null)return'';return String(_0x35a17c['v'])[_0x5d7408(0x1d9)]();}function isNumber$1(_0x4499a3){const _0x4615cd=_0x472f32;return/^[-+]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[-+]?\d+)?$/i[_0x4615cd(0x231)](_0x4499a3);}const almost=0x2,possible=0x1;function parseWithLayout(_0x2e1042,_0x262a63){const _0x1f33ae=_0x472f32,_0x49abd8={'2006-01-02':/^\d{4}-\d{2}-\d{2}$/,'2006-1-2':/^\d{4}-\d{1,2}-\d{1,2}$/,'2006/01/02':/^\d{4}\/\d{2}\/\d{2}$/,'2006/1/2':/^\d{4}\/\d{1,2}\/\d{1,2}$/,'2006年1月2日':/^\d{4}年\d{1,2}月\d{1,2}日$/,'02-01-2006':/^\d{1,2}-\d{1,2}-\d{4}$/,'02/01/2006':/^\d{1,2}\/\d{1,2}\/\d{4}$/,'02.01.2006':/^\d{1,2}\.\d{1,2}\.\d{4}$/,'01-02-2006':/^\d{1,2}-\d{1,2}-\d{4}$/,'01/02/2006':/^\d{1,2}\/\d{1,2}\/\d{4}$/,'2\x20January,\x202006':/^\d{1,2}\s+[A-Z]+,\s*\d{4}$/i,'2\x20January,2006':/^\d{1,2}\s+[A-Z]+,\d{4}$/i,'2\x20Jan.,\x202006':/^\d{1,2}\s+[A-Z]{3}\.,\s*\d{4}$/i,'January\x202,\x202006':/^[A-Z]+\s+\d{1,2},\s*\d{4}$/i,'January\x202,2006':/^[A-Z]+\s+\d{1,2},\d{4}$/i,'Jan.\x202,\x202006':/^[A-Z]{3}\.\s+\d{1,2},\s*\d{4}$/i,0x13217c6:/^\d{8}$/,'2006-01-02T15:04:05':/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/,'2006-01-02\x2015:04:05':/^\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2}$/}[_0x262a63];if(!_0x49abd8)return![];if(!_0x49abd8[_0x1f33ae(0x231)](_0x2e1042))return![];const _0x36a85a=_0x2e1042[_0x1f33ae(0x1ff)](/\D+/g,'\x20')[_0x1f33ae(0x1d9)]()[_0x1f33ae(0x215)](/\s+/)[_0x1f33ae(0x1a9)](Number);let _0x498c71=0x0,_0x5180c1=0x1,_0x3e1e95=0x1,_0x35a684=0x0,_0x162211=0x0,_0x119bf4=0x0;switch(_0x262a63){case'2006-01-02':case _0x1f33ae(0x1a8):case'2006/01/02':case _0x1f33ae(0x1aa):[_0x498c71,_0x5180c1,_0x3e1e95]=_0x36a85a;break;case _0x1f33ae(0x1e4):[_0x498c71,_0x5180c1,_0x3e1e95]=_0x36a85a;break;case _0x1f33ae(0x22b):case'02/01/2006':case _0x1f33ae(0x204):[_0x3e1e95,_0x5180c1,_0x498c71]=_0x36a85a;break;case _0x1f33ae(0x1e2):case'01/02/2006':[_0x5180c1,_0x3e1e95,_0x498c71]=_0x36a85a;break;case _0x1f33ae(0x254):{const _0x27f33b=_0x2e1042;_0x498c71=+_0x27f33b[_0x1f33ae(0x256)](0x0,0x4),_0x5180c1=+_0x27f33b[_0x1f33ae(0x256)](0x4,0x6),_0x3e1e95=+_0x27f33b[_0x1f33ae(0x256)](0x6,0x8);break;}case _0x1f33ae(0x221):case'2006-01-02\x2015:04:05':[_0x498c71,_0x5180c1,_0x3e1e95,_0x35a684,_0x162211,_0x119bf4]=_0x36a85a;break;default:return!![];}if(_0x5180c1<0x1||_0x5180c1>0xc)return![];if(_0x3e1e95<0x1||_0x3e1e95>0x1f)return![];if(_0x35a684<0x0||_0x35a684>0x17)return![];if(_0x162211<0x0||_0x162211>0x3b)return![];if(_0x119bf4<0x0||_0x119bf4>0x3b)return![];const _0x229212=new Date(_0x498c71,_0x5180c1-0x1,_0x3e1e95,_0x35a684,_0x162211,_0x119bf4);if(_0x229212['getFullYear']()!==_0x498c71||_0x229212[_0x1f33ae(0x1b8)]()!==_0x5180c1-0x1||_0x229212[_0x1f33ae(0x20c)]()!==_0x3e1e95)return![];return!![];}function looksLikeExcelSerial(_0x49ffaf){return Number['isFinite'](_0x49ffaf)&&_0x49ffaf>=0x1&&_0x49ffaf<=0x13880;}function convertDataType(_0x4a2535){const _0x482e6a=_0x472f32;switch(_0x4a2535){case 0x0:return'string';case 0x1:return _0x482e6a(0x234);case 0x2:case 0x3:case 0x4:return _0x482e6a(0x1b2);case 0x5:return _0x482e6a(0x229);default:return _0x482e6a(0x24a);}}var recognizerCount=class{constructor(){const _0x610a57=_0x472f32;_defineProperty(this,_0x610a57(0x252),0x0),_defineProperty(this,_0x610a57(0x1b9),0x0),_defineProperty(this,_0x610a57(0x1f4),0x0);}},RecognizerDate=class extends recognizerCount{constructor(_0x3a963f){const _0x3e6217=_0x472f32;super(),_defineProperty(this,_0x3e6217(0x1cb),void 0x0),_defineProperty(this,'dt',void 0x0),_defineProperty(this,'layout',void 0x0),_defineProperty(this,_0x3e6217(0x21c),void 0x0),this['dt']=_0x3a963f['dt'],this[_0x3e6217(0x1b0)]=_0x3a963f[_0x3e6217(0x1b0)],this[_0x3e6217(0x21c)]=!!_0x3a963f['needConvert'];}[_0x472f32(0x1f6)](_0x2c5993){const _0x5b0527=_0x472f32;if(_0x2c5993['t']===_univerjs_core[_0x5b0527(0x237)][_0x5b0527(0x1c4)]){const _0x453d15=getCellValue$1(_0x2c5993);if(!_0x453d15)return;if(parseWithLayout(_0x453d15,this['layout']))this['valid']+=almost;else this['invalid']++;}}[_0x472f32(0x19d)](){const _0x44984c=_0x472f32,_0x5beb50=0x64-Math[_0x44984c(0x22e)]((this[_0x44984c(0x1b9)]*0xa+0x1)*0x64/(this['invalid']+this[_0x44984c(0x252)]+0x1)),_0x2bf993={'Charset':this['dt'],'Confidence':_0x5beb50,'debugInfo':this[_0x44984c(0x1b0)]};if(this[_0x44984c(0x21c)])_0x2bf993[_0x44984c(0x23d)]=this[_0x44984c(0x1b0)];return _0x2bf993;}},RecognizerDateNum=class extends recognizerCount{constructor(_0x303f87){const _0x1b5cec=_0x472f32;super(),_defineProperty(this,_0x1b5cec(0x1e0),void 0x0),_defineProperty(this,_0x1b5cec(0x1cb),void 0x0),_defineProperty(this,'dt',void 0x0),_defineProperty(this,_0x1b5cec(0x1b0),void 0x0),_defineProperty(this,_0x1b5cec(0x21c),void 0x0),this[_0x1b5cec(0x1e0)]=_0x303f87['dateStyles']||{},this['dt']=_0x303f87['dt'],this[_0x1b5cec(0x1b0)]=_0x303f87['layout'],this[_0x1b5cec(0x21c)]=!!_0x303f87['needConvert'];}[_0x472f32(0x1f6)](_0x585a0e){const _0x2269c6=_0x472f32;if(_0x585a0e['t']===_univerjs_core[_0x2269c6(0x237)]['NUMBER']){if(_0x585a0e['s']&&this[_0x2269c6(0x1e0)][_0x585a0e['s']]){this['valid']+=almost;return;}const _0x809713=getCellValue$1(_0x585a0e);if(!_0x809713)return;if(this[_0x2269c6(0x1b0)]===_0x2269c6(0x1e7)){if(looksLikeExcelSerial(Number(_0x809713))){this[_0x2269c6(0x252)]+=almost;return;}}if(parseWithLayout(_0x809713,this[_0x2269c6(0x1b0)]))this['valid']+=almost;else this['invalid']++;}}['Calc'](){const _0x44bf45=_0x472f32,_0x28884a=0x64-Math[_0x44bf45(0x22e)]((this[_0x44bf45(0x1b9)]*0xa+0x1)*0x64/(this[_0x44bf45(0x1b9)]+this[_0x44bf45(0x252)]+0x1)),_0x1db2d8={'Charset':this['dt'],'Confidence':_0x28884a,'debugInfo':this[_0x44bf45(0x1b0)]};if(this[_0x44bf45(0x21c)])_0x1db2d8[_0x44bf45(0x23d)]=this[_0x44bf45(0x1b0)];return _0x1db2d8;}},RecognizerNumber=class extends recognizerCount{[_0x472f32(0x1f6)](_0x573943){const _0x16903b=_0x472f32;if(_0x573943['t']===_univerjs_core['CellValueType']['NUMBER'])this[_0x16903b(0x252)]+=possible;else{const _0x4919a6=getCellValue$1(_0x573943);if(!_0x4919a6)return;if(isNumber$1(_0x4919a6))this['valid']+=possible;else this['invalid']++;}}[_0x472f32(0x19d)](){const _0x12cec3=_0x472f32;return{'Charset':0x1,'Confidence':0x64-Math[_0x12cec3(0x22e)]((this[_0x12cec3(0x1b9)]*0xa+0x1)*0x64/(this[_0x12cec3(0x1b9)]+this['valid']+0x1)),'debugInfo':'number'};}},RecognizerBool=class extends recognizerCount{[_0x472f32(0x1f6)](_0x360590){const _0x338795=_0x472f32;if(_0x360590['t']===_univerjs_core['CellValueType'][_0x338795(0x1f7)])this[_0x338795(0x252)]+=possible;else this['invalid']++;}[_0x472f32(0x19d)](){const _0x4c736f=_0x472f32;return{'Charset':0x5,'Confidence':0x64-Math[_0x4c736f(0x22e)]((this[_0x4c736f(0x1b9)]*0xa+0x1)*0x64/(this[_0x4c736f(0x1b9)]+this[_0x4c736f(0x252)]+0x1)),'debugInfo':_0x4c736f(0x234)};}},DetectImpl=class{constructor(_0x968800){const _0x1ca11e=_0x472f32;_defineProperty(this,_0x1ca11e(0x198),void 0x0),_defineProperty(this,_0x1ca11e(0x1e0),void 0x0),this['dateStyles']=_0x968800||{},this[_0x1ca11e(0x198)]=[new RecognizerDate({'dt':0x2,'layout':_0x1ca11e(0x225)}),new RecognizerDate({'dt':0x2,'layout':_0x1ca11e(0x1a8)}),new RecognizerDate({'dt':0x2,'layout':_0x1ca11e(0x1d7)}),new RecognizerDate({'dt':0x2,'layout':_0x1ca11e(0x1aa)}),new RecognizerDate({'dt':0x2,'layout':_0x1ca11e(0x1e4),'needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':_0x1ca11e(0x22b),'needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':'02/01/2006','needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':'02.01.2006','needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':_0x1ca11e(0x1e2),'needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':'01/02/2006','needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':_0x1ca11e(0x1ef),'needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':_0x1ca11e(0x23a),'needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':_0x1ca11e(0x257),'needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':_0x1ca11e(0x218),'needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':'January\x202,2006','needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':_0x1ca11e(0x201),'needConvert':!![]}),new RecognizerDate({'dt':0x2,'layout':'20060102','needConvert':!![]}),new RecognizerDateNum({'dateStyles':this[_0x1ca11e(0x1e0)],'dt':0x2,'layout':_0x1ca11e(0x254),'needConvert':!![]}),new RecognizerDate({'dt':0x4,'layout':'2006-01-02T15:04:05'}),new RecognizerDate({'dt':0x4,'layout':'2006-01-02\x2015:04:05'}),new RecognizerDateNum({'dateStyles':this['dateStyles'],'dt':0x3,'layout':_0x1ca11e(0x1e7),'needConvert':!![]}),new RecognizerNumber(),new RecognizerBool()];}[_0x472f32(0x1f6)](_0x359471){const _0x5b041e=_0x472f32;for(const _0x6f1880 of this[_0x5b041e(0x198)])_0x6f1880[_0x5b041e(0x1f6)](_0x359471);}[_0x472f32(0x1c3)](){const _0x23db04=_0x472f32,_0x4dc455=this[_0x23db04(0x198)]['map'](_0x22fcd6=>_0x22fcd6[_0x23db04(0x19d)]());_0x4dc455[_0x23db04(0x1d8)]((_0x1b3862,_0xeef237)=>_0xeef237[_0x23db04(0x242)]-_0x1b3862[_0x23db04(0x242)]);if(_0x4dc455[_0x23db04(0x22d)]===0x0||_0x4dc455[0x0]['Confidence']<0x32)return[_0x23db04(0x1e3),null];const _0x43a016=_0x4dc455[0x0];return[convertDataType(_0x43a016['Charset']),_0x43a016];}};function generateRandomIds(_0x5e1ce2,_0x5e388f){const _0x432013=_0x472f32;let _0x23761e=_0x5e1ce2,_0x2725a3=_0x5e388f;if(_0x23761e<=0x0)_0x23761e=0x6;if(_0x2725a3<=0x0)_0x2725a3=0xa;_0x2725a3=_0x2725a3*0x2;const _0x57f3b0=[];for(let _0x5add3f=0x0;_0x5add3f<_0x2725a3;_0x5add3f++)_0x57f3b0[_0x432013(0x1c7)]((0x0,_univerjs_core[_0x432013(0x1b1)])(_0x23761e));const _0x2f7c53=new Map();for(const _0x14aca7 of _0x57f3b0){const _0x538652=_0x14aca7['toLowerCase']();if(!_0x2f7c53[_0x432013(0x203)](_0x538652))_0x2f7c53[_0x432013(0x1dc)](_0x538652,_0x14aca7);}return Array[_0x432013(0x1cc)](_0x2f7c53[_0x432013(0x230)]());}var ReasoningTable=class ReasoningTable{constructor(_0x46d125){const _0x2cbfba=_0x472f32;var _0x397f84,_0x341c6d,_0x8e3591,_0x3aea5b,_0x3b483d,_0x5dde36,_0x58a4a0,_0x30ed75,_0x4b0d36,_0x42fdf3,_0x4ab2de,_0x186905,_0x78a258,_0x4de570,_0x11d728,_0x47533b,_0xcf6b85,_0x281651,_0x283b2d;_defineProperty(this,'id',void 0x0),_defineProperty(this,_0x2cbfba(0x1d1),void 0x0),_defineProperty(this,_0x2cbfba(0x24d),void 0x0),_defineProperty(this,_0x2cbfba(0x20b),void 0x0),_defineProperty(this,_0x2cbfba(0x235),void 0x0),_defineProperty(this,_0x2cbfba(0x1bf),void 0x0),_defineProperty(this,'mergeRowTitleCount',void 0x0),_defineProperty(this,_0x2cbfba(0x19e),void 0x0),_defineProperty(this,_0x2cbfba(0x199),void 0x0),_defineProperty(this,'rowMergeTitleCountMap',void 0x0),_defineProperty(this,'rowMergeTitleState',void 0x0),_defineProperty(this,_0x2cbfba(0x20f),void 0x0),_defineProperty(this,_0x2cbfba(0x207),void 0x0),_defineProperty(this,'isMatchEnd',void 0x0),_defineProperty(this,'isMatchContinue',void 0x0),_defineProperty(this,'isTimeSeries',void 0x0),_defineProperty(this,'isTestTable',void 0x0),_defineProperty(this,_0x2cbfba(0x24b),void 0x0),_defineProperty(this,_0x2cbfba(0x1e6),void 0x0),this['id']=(_0x397f84=_0x46d125===null||_0x46d125===void 0x0?void 0x0:_0x46d125['id'])!==null&&_0x397f84!==void 0x0?_0x397f84:'',this['sheetId']=(_0x341c6d=_0x46d125===null||_0x46d125===void 0x0?void 0x0:_0x46d125[_0x2cbfba(0x1d1)])!==null&&_0x341c6d!==void 0x0?_0x341c6d:(0x0,_univerjs_core[_0x2cbfba(0x1b1)])(),this['range']=(_0x8e3591=_0x46d125===null||_0x46d125===void 0x0?void 0x0:_0x46d125[_0x2cbfba(0x24d)])!==null&&_0x8e3591!==void 0x0?_0x8e3591:{'startRow':-0x1,'endRow':-0x1,'startColumn':-0x1,'endColumn':-0x1},this[_0x2cbfba(0x20b)]=(_0x3aea5b=_0x46d125===null||_0x46d125===void 0x0?void 0x0:_0x46d125[_0x2cbfba(0x20b)])!==null&&_0x3aea5b!==void 0x0?_0x3aea5b:'',this['description']=(_0x3b483d=_0x46d125===null||_0x46d125===void 0x0?void 0x0:_0x46d125[_0x2cbfba(0x235)])!==null&&_0x3b483d!==void 0x0?_0x3b483d:'',this[_0x2cbfba(0x1bf)]=(_0x5dde36=_0x46d125===null||_0x46d125===void 0x0?void 0x0:_0x46d125['rowTitleCount'])!==null&&_0x5dde36!==void 0x0?_0x5dde36:0x0,this[_0x2cbfba(0x1ec)]=(_0x58a4a0=_0x46d125===null||_0x46d125===void 0x0?void 0x0:_0x46d125[_0x2cbfba(0x1ec)])!==null&&_0x58a4a0!==void 0x0?_0x58a4a0:0x0,this[_0x2cbfba(0x19e)]=(_0x30ed75=_0x46d125===null||_0x46d125===void 0x0?void 0x0:_0x46d125[_0x2cbfba(0x19e)])!==null&&_0x30ed75!==void 0x0?_0x30ed75:0x0,this['endStatisticRowCount']=(_0x4b0d36=_0x46d125===null||_0x46d125===void 0x0?void 0x0:_0x46d125[_0x2cbfba(0x199)])!==null&&_0x4b0d36!==void 0x0?_0x4b0d36:0x0,this[_0x2cbfba(0x247)]=(_0x42fdf3=_0x46d125===null||_0x46d125===void 0x0?void 0x0:_0x46d125[_0x2cbfba(0x247)])!==null&&_0x42fdf3!==void 0x0?_0x42fdf3:new Map(),this[_0x2cbfba(0x217)]=(_0x4ab2de=_0x46d125===null||_0x46d125===void 0x0?void 0x0:_0x46d125[_0x2cbfba(0x217)])!==null&&_0x4ab2de!==void 0x0?_0x4ab2de:![],this[_0x2cbfba(0x20f)]=(_0x186905=_0x46d125===null||_0x46d125===void 0x0?void 0x0:_0x46d125[_0x2cbfba(0x20f)])!==null&&_0x186905!==void 0x0?_0x186905:![],this[_0x2cbfba(0x207)]=(_0x78a258=_0x46d125===null||_0x46d125===void 0x0?void 0x0:_0x46d125['columnMergeTitleCountMap'])!==null&&_0x78a258!==void 0x0?_0x78a258:new Map(),this[_0x2cbfba(0x19a)]=(_0x4de570=_0x46d125===null||_0x46d125===void 0x0?void 0x0:_0x46d125[_0x2cbfba(0x19a)])!==null&&_0x4de570!==void 0x0?_0x4de570:![],this[_0x2cbfba(0x19f)]=(_0x11d728=_0x46d125===null||_0x46d125===void 0x0?void 0x0:_0x46d125[_0x2cbfba(0x19f)])!==null&&_0x11d728!==void 0x0?_0x11d728:![],this['isTimeSeries']=(_0x47533b=_0x46d125===null||_0x46d125===void 0x0?void 0x0:_0x46d125[_0x2cbfba(0x210)])!==null&&_0x47533b!==void 0x0?_0x47533b:![],this[_0x2cbfba(0x1c5)]=(_0xcf6b85=_0x46d125===null||_0x46d125===void 0x0?void 0x0:_0x46d125[_0x2cbfba(0x1c5)])!==null&&_0xcf6b85!==void 0x0?_0xcf6b85:![],this[_0x2cbfba(0x24b)]=(_0x281651=_0x46d125===null||_0x46d125===void 0x0?void 0x0:_0x46d125['isUpdateTable'])!==null&&_0x281651!==void 0x0?_0x281651:![],this[_0x2cbfba(0x1e6)]=(_0x283b2d=_0x46d125===null||_0x46d125===void 0x0?void 0x0:_0x46d125[_0x2cbfba(0x1e6)])!==null&&_0x283b2d!==void 0x0?_0x283b2d:[];}[_0x472f32(0x224)](_0x48e365,_0x4e8033){return _0x4e8033-_0x48e365===0x1||_0x4e8033===_0x48e365;}['intersectWithPreTables'](_0x424fe2){const _0x3033ed=_0x472f32,_0x1eae94=[];for(const _0x41ab17 of _0x424fe2){if(this[_0x3033ed(0x24d)][_0x3033ed(0x1f0)]<_0x41ab17['range'][_0x3033ed(0x248)])continue;if(this[_0x3033ed(0x24d)][_0x3033ed(0x248)]>_0x41ab17[_0x3033ed(0x24d)][_0x3033ed(0x1f0)])continue;if(!this[_0x3033ed(0x224)](_0x41ab17[_0x3033ed(0x24d)]['endRow'],this['range']['startRow']))continue;_0x1eae94[_0x3033ed(0x1c7)](_0x41ab17);}return _0x1eae94;}[_0x472f32(0x208)](_0xd77d96){const _0x7d5bec=_0x472f32;if(_0xd77d96[_0x7d5bec(0x24d)][_0x7d5bec(0x241)]===this[_0x7d5bec(0x24d)][_0x7d5bec(0x1e9)]){if(this['range'][_0x7d5bec(0x1f0)]+0x1===_0xd77d96[_0x7d5bec(0x24d)][_0x7d5bec(0x248)])return!![];}return![];}['saveTableToCache'](_0x2836b9){const _0x13a6f5=_0x472f32;if(this[_0x13a6f5(0x24d)][_0x13a6f5(0x248)]===-0x1)return this;return _0x2836b9[_0x13a6f5(0x1c7)](this),new ReasoningTable({'sheetId':this[_0x13a6f5(0x1d1)],'range':{'startRow':this[_0x13a6f5(0x24d)][_0x13a6f5(0x1e9)],'endRow':this[_0x13a6f5(0x24d)][_0x13a6f5(0x241)],'startColumn':-0x1,'endColumn':-0x1}});}[_0x472f32(0x20e)](_0x3aa3d3,_0x276752,_0x5b4151,_0x352c90){const _0x84a45a=_0x472f32;if(this[_0x84a45a(0x24d)][_0x84a45a(0x248)]===-0x1)this['range'][_0x84a45a(0x248)]=_0x276752;this[_0x84a45a(0x24d)][_0x84a45a(0x1f0)]=_0x276752;if(_0x352c90!=null)this[_0x84a45a(0x24d)]['endColumn']=Math[_0x84a45a(0x1d0)](_0x352c90,this[_0x84a45a(0x24d)][_0x84a45a(0x1f0)]);}[_0x472f32(0x213)](){const _0x50d5ae=_0x472f32;this[_0x50d5ae(0x247)][_0x50d5ae(0x1dd)](),this[_0x50d5ae(0x207)]['clear'](),this[_0x50d5ae(0x1e6)]=[];}};function makeId(_0x39d947,_0x9a299b){const {startRow:_0x30f2b3,startColumn:_0x3e85d9,endRow:_0x4d54f9,endColumn:_0x24d1d3}=_0x9a299b;return _0x39d947+':'+_0x30f2b3+','+_0x3e85d9+'-'+_0x4d54f9+','+_0x24d1d3;}const MergeRTreeCache=new Map();function MergeRTree(_0x4223e1,_0x275e4f){const _0x16e012=_0x472f32;var _0x5dacf5;const _0x1263cc=new _univerjs_core['RTree'](![]),_0x50c17d=_0x275e4f[_0x16e012(0x1e1)](),_0xe20c7f=new Map(),_0x41e8b7=(_0x5dacf5=_0x275e4f[_0x16e012(0x1ab)]())!==null&&_0x5dacf5!==void 0x0?_0x5dacf5:[];MergeRTreeCache[_0x16e012(0x1dd)]();for(const _0x4457e0 of _0x41e8b7){const _0x4883a6=makeId(_0x16e012(0x23c),_0x4457e0),_0x23c939={'unitId':_0x4223e1,'sheetId':_0x50c17d,'range':_0x4457e0,'id':_0x4883a6};_0x1263cc['insert'](_0x23c939),_0xe20c7f[_0x16e012(0x1dc)](_0x4883a6,_0x23c939);}return MergeRTreeCache['set'](_0x275e4f,{'mergeRTree':_0x1263cc,'mergeRangeMap':_0xe20c7f}),{'mergeRTree':_0x1263cc,'mergeRangeMap':_0xe20c7f};}function ExceptRTree(_0x40ee4b,_0x58813e,_0x5ab382){const _0x4a5ff7=_0x472f32,_0x3b33ca=new _univerjs_core[(_0x4a5ff7(0x222))](![]),_0x362d7e=_0x5ab382[_0x4a5ff7(0x1ee)](_univerjs_sheets_table[_0x4a5ff7(0x214)])['getTableList'](_0x40ee4b);if(_0x362d7e&&Array[_0x4a5ff7(0x21b)](_0x362d7e))for(const _0x389dde of _0x362d7e){if(!(_0x389dde===null||_0x389dde===void 0x0?void 0x0:_0x389dde[_0x4a5ff7(0x24d)]))continue;const _0x5d4096=_0x389dde[_0x4a5ff7(0x24d)],_0x422f8f={'unitId':_0x40ee4b,'sheetId':_0x58813e,'range':_0x5d4096,'id':makeId('table',_0x5d4096)};_0x3b33ca[_0x4a5ff7(0x227)](_0x422f8f);}return _0x3b33ca;}function pushColumnMerge(_0x5d8917,_0x4d4f43,_0xab99e1){const _0x2c0684=_0x472f32,_0x53fb4d=_0x5d8917[_0x2c0684(0x1ee)](_0x4d4f43);if(_0x53fb4d)_0x53fb4d[_0x2c0684(0x1c7)](_0xab99e1);else _0x5d8917[_0x2c0684(0x1dc)](_0x4d4f43,[_0xab99e1]);}function _0x147c(){const _0x4771b4=['length','trunc','117765xTdmQB','values','test','Type','entries','number','description','call','CellValueType','getStyles','body','2\x20January,2006','UNIVER_RANGE_PREPROCESS_PLUGIN','merge','Layout','IConfigService','isUnique','@univerjs-pro/range-preprocess','endRow','Confidence','keys','8948ozGwXa','warn','function','rowMergeTitleCountMap','startColumn','getUnitId','unknown','isUpdateTable','Inject','range','join','MAX_SAFE_INTEGER','size','toStringTag','valid','getTablesBySubunitId','20060102','data','slice','2\x20Jan.,\x202006','forEach','recognizers','endStatisticRowCount','isMatchEnd','pluginName','intersectWithPreTables','Calc','startStatisticRowCount','isMatchContinue','getCell','0.22.1-insiders.20260515-225d350','linkType','15npMcDn','endIndex','2262KSFhaE','customRanges','fromCharCode','2006-1-2','map','2006/1/2','getMergeData','stringify','isCoded','tableId','displayName','layout','generateRandomId','date','getRowCount','9848923RAVYTS','dataType','defineProperty','mergeRTree','getMonth','invalid',',\x20rangeName:','isTitleRepeat','7618457CfhmXu','skip\x20small\x20table,\x20idx:','RANGE_PREPROCESS_PLUGIN_CONFIG_KEY','rowTitleCount','version','1310dnkntF','3476946qxWKWS','Best','STRING','isTestTable','onReady','push','isBigText','isOpinionText','pattern','timeStampStyles','from','default','getName','Module','max','sheetId','_configService','getColumnCount','toJSON','iterator','onStarting','2006/01/02','sort','trim','sample','symbol','set','clear','decorate','meta','dateStyles','getSheetId','01-02-2006','string','2006年1月2日','_injector','columns','excel','object','startRow','transform','mergeRangeMap','mergeRowTitleCount','links','get','2\x20January,\x202006','endColumn','getPlainText','4541040jJKUaf','Description','confidence','registerDependencies','Match','BOOLEAN','splice','isMeasure','1FoxSPU','getAllTableJson','prototype','next','getRow','replace','constructor','Jan.\x202,\x202006','1824558nEqNZu','has','02.01.2006','getSheetBySheetId','column_','columnMergeTitleCountMap','intersectWithColumns','toPrimitive','UniverRangePreprocessPlugin','name','getDate','url','insertCellData','columnMergeTitleState','isTimeSeries','Name','startIndex','dispose','TableManager','split','getCellMatrix','rowMergeTitleState','January\x202,\x202006','properties','floor','isArray','needConvert','min','isLink','Plugin','bulkSearch','2006-01-02T15:04:05','RTree','saveTableToCache','_isRowContinuous','2006-01-02','getSheets','insert','dataStream','boolean','value','02-01-2006','RangePreprocessController'];_0x147c=function(){return _0x4771b4;};return _0x147c();}function genTable(_0x30799d,_0x3802c4){const _0x4eb8f1=_0x472f32,_0x33c302=_0x30799d[_0x4eb8f1(0x226)](),_0x447d0a={},_0x45999a=_0x30799d[_0x4eb8f1(0x249)]();for(const _0x44556a of _0x33c302){const _0x210966=_0x44556a[_0x4eb8f1(0x1e1)](),_0x31fe09=_0x44556a[_0x4eb8f1(0x1b3)](),_0x28be63=_0x44556a[_0x4eb8f1(0x1d3)](),{mergeRTree:_0x450b50,mergeRangeMap:_0x53cfec}=MergeRTree(_0x45999a,_0x44556a),_0x5440aa=ExceptRTree(_0x45999a,_0x210966,_0x3802c4),_0x373ec3=[];let _0x15da1e=[];const _0x32486f=_0x44556a[_0x4eb8f1(0x216)]();for(let _0x4ab8c6=0x0;_0x4ab8c6<_0x31fe09;_0x4ab8c6++){const _0x371f06=[];let _0x394a8c=new ReasoningTable({'sheetId':_0x210966,'range':{'startRow':_0x4ab8c6,'endRow':_0x4ab8c6,'startColumn':-0x1,'endColumn':-0x1}});const _0x14a83c=new Map();if(_0x32486f[_0x4eb8f1(0x1fe)](_0x4ab8c6)==null){_0x373ec3[_0x4eb8f1(0x1c7)](..._0x15da1e),_0x15da1e=[];continue;}for(let _0x227778=0x0;_0x227778<=_0x28be63;_0x227778++){const _0x1e8350=_0x44556a[_0x4eb8f1(0x1a0)](_0x4ab8c6,_0x227778),_0x476479={'range':{'startRow':_0x4ab8c6,'startColumn':_0x227778,'endRow':_0x4ab8c6,'endColumn':_0x227778},'unitId':_0x45999a,'sheetId':_0x210966};if(_0x5440aa[_0x4eb8f1(0x220)]([_0x476479])['size']>0x0){_0x394a8c=_0x394a8c[_0x4eb8f1(0x223)](_0x371f06);continue;}const _0x438689=_0x450b50['bulkSearch']([_0x476479]);if(_0x438689['size']>0x0){const _0x51d3d5=_0x394a8c[_0x4eb8f1(0x19c)](_0x15da1e),_0x3323e3=_0x438689['keys']()[_0x4eb8f1(0x1fd)]()['value'],_0x51f3fa=_0x53cfec[_0x4eb8f1(0x1ee)](_0x3323e3);if(!_0x51f3fa)continue;const _0x59bc04={'startRow':_0x51f3fa[_0x4eb8f1(0x24d)][_0x4eb8f1(0x1e9)],'endRow':_0x51f3fa[_0x4eb8f1(0x24d)]['endRow'],'startColumn':_0x51f3fa[_0x4eb8f1(0x24d)]['startColumn'],'endColumn':_0x51f3fa[_0x4eb8f1(0x24d)][_0x4eb8f1(0x1f0)]},_0x502f77=_0x44556a['getCell'](_0x59bc04[_0x4eb8f1(0x1e9)],_0x59bc04['startColumn']);if(_0x502f77&&(_0x502f77['p']!=null||_0x502f77['v']!=null&&String(_0x502f77['v'])['length']>0x0)){_0x394a8c[_0x4eb8f1(0x20e)](_0x4ab8c6,_0x227778,_0x1e8350,_0x59bc04[_0x4eb8f1(0x1f0)]);for(let _0x12fd7e=_0x59bc04[_0x4eb8f1(0x248)];_0x12fd7e<=_0x59bc04[_0x4eb8f1(0x1f0)];_0x12fd7e++)_0x14a83c['set'](_0x12fd7e,!![]);}else _0x394a8c=_0x394a8c[_0x4eb8f1(0x223)](_0x371f06);const _0x4969dd=_0x59bc04[_0x4eb8f1(0x241)]-_0x59bc04[_0x4eb8f1(0x1e9)],_0x462b25=_0x59bc04[_0x4eb8f1(0x1f0)]-_0x59bc04['startColumn'];if(_0x51d3d5['length']===0x1){if(_0x4969dd>0x0)pushColumnMerge(_0x394a8c[_0x4eb8f1(0x207)],_0x227778,_0x51f3fa);if(_0x462b25>0x0){var _0x32ab68;const _0x426acd=(_0x32ab68=_0x394a8c[_0x4eb8f1(0x247)][_0x4eb8f1(0x1ee)](_0x4ab8c6))!==null&&_0x32ab68!==void 0x0?_0x32ab68:[];_0x426acd['push'](_0x51f3fa),_0x394a8c[_0x4eb8f1(0x247)][_0x4eb8f1(0x1dc)](_0x4ab8c6,_0x426acd);}}else{_0x4969dd>0x0&&(_0x394a8c[_0x4eb8f1(0x20f)]=!![],pushColumnMerge(_0x394a8c['columnMergeTitleCountMap'],_0x227778,_0x51f3fa));if(_0x462b25>0x0){var _0x1704bd;_0x394a8c[_0x4eb8f1(0x217)]=!![];const _0x27b7ca=(_0x1704bd=_0x394a8c[_0x4eb8f1(0x247)]['get'](_0x4ab8c6))!==null&&_0x1704bd!==void 0x0?_0x1704bd:[];_0x27b7ca[_0x4eb8f1(0x1c7)](_0x51f3fa),_0x394a8c['rowMergeTitleCountMap'][_0x4eb8f1(0x1dc)](_0x4ab8c6,_0x27b7ca);}}continue;}if((!_0x1e8350||getCellValue(_0x1e8350)==null)&&!_0x14a83c[_0x4eb8f1(0x1ee)](_0x227778)){_0x394a8c=_0x394a8c['saveTableToCache'](_0x371f06);continue;}if(_0x1e8350&&getCellValue(_0x1e8350)!=null)_0x394a8c[_0x4eb8f1(0x20e)](_0x4ab8c6,_0x227778,_0x1e8350);else _0x394a8c[_0x4eb8f1(0x217)]=![],_0x394a8c[_0x4eb8f1(0x20f)]=![],_0x394a8c=_0x394a8c['saveTableToCache'](_0x371f06);}if(_0x371f06[_0x4eb8f1(0x22d)]===0x0){_0x373ec3[_0x4eb8f1(0x1c7)](..._0x15da1e),_0x15da1e=[];continue;}if(_0x15da1e[_0x4eb8f1(0x22d)]===0x0){_0x15da1e[_0x4eb8f1(0x1c7)](..._0x371f06);continue;}const _0x79712e=(_0x282b1a,_0x340d01)=>{const _0x597684=_0x4eb8f1;_0x282b1a[_0x597684(0x24d)]['startRow']=Math[_0x597684(0x21d)](_0x282b1a[_0x597684(0x24d)][_0x597684(0x1e9)],_0x340d01['range'][_0x597684(0x1e9)]),_0x282b1a[_0x597684(0x24d)][_0x597684(0x241)]=Math[_0x597684(0x1d0)](_0x282b1a['range']['endRow'],_0x340d01['range'][_0x597684(0x241)]),_0x282b1a[_0x597684(0x24d)][_0x597684(0x248)]=Math[_0x597684(0x21d)](_0x282b1a[_0x597684(0x24d)][_0x597684(0x248)],_0x340d01[_0x597684(0x24d)][_0x597684(0x248)]),_0x282b1a['range']['endColumn']=Math[_0x597684(0x1d0)](_0x282b1a[_0x597684(0x24d)][_0x597684(0x1f0)],_0x340d01[_0x597684(0x24d)]['endColumn']),_0x340d01[_0x597684(0x247)]['forEach']((_0x5e09de,_0x239ba5)=>{const _0x15e1bc=_0x597684;var _0x2bedbf;const _0x1a50c9=(_0x2bedbf=_0x282b1a[_0x15e1bc(0x247)][_0x15e1bc(0x1ee)](_0x239ba5))!==null&&_0x2bedbf!==void 0x0?_0x2bedbf:[];_0x1a50c9[_0x15e1bc(0x1c7)](..._0x5e09de),_0x282b1a[_0x15e1bc(0x247)]['set'](_0x239ba5,_0x1a50c9);}),_0x340d01[_0x597684(0x207)][_0x597684(0x197)]((_0xc1b2fa,_0x139e21)=>{const _0x589074=_0x597684;var _0x34676b;const _0x2aee83=(_0x34676b=_0x282b1a[_0x589074(0x207)][_0x589074(0x1ee)](_0x139e21))!==null&&_0x34676b!==void 0x0?_0x34676b:[];_0x2aee83[_0x589074(0x1c7)](..._0xc1b2fa),_0x282b1a['columnMergeTitleCountMap'][_0x589074(0x1dc)](_0x139e21,_0x2aee83);});};for(let _0x3fddef=0x0;_0x3fddef+0x1<_0x371f06[_0x4eb8f1(0x22d)];_0x3fddef++){const _0x427de3=_0x371f06[_0x3fddef],_0x35d115=_0x371f06[_0x3fddef+0x1];_0x427de3[_0x4eb8f1(0x208)](_0x35d115)&&(_0x79712e(_0x427de3,_0x35d115),_0x371f06['splice'](_0x3fddef+0x1,0x1),_0x3fddef--);}const _0x477564=[];for(const _0x41565c of _0x371f06){var _0x1f4d2e;const _0x304406=_0x41565c[_0x4eb8f1(0x19c)](_0x15da1e);if(_0x304406[_0x4eb8f1(0x22d)]===0x0){_0x477564[_0x4eb8f1(0x1c7)](_0x41565c);continue;}const _0x40eff6=(_0x1f4d2e=_0x41565c['rowMergeTitleCountMap'][_0x4eb8f1(0x1ee)](_0x4ab8c6))!==null&&_0x1f4d2e!==void 0x0?_0x1f4d2e:[];let _0x55d80f=Number[_0x4eb8f1(0x24f)],_0x821f5b=-0x1,_0x2f0d46=-0x1;for(const _0x14f40a of _0x40eff6){const _0x3124a8=_0x14f40a[_0x4eb8f1(0x24d)],_0x5098be=_0x3124a8[_0x4eb8f1(0x248)],_0x1681a1=_0x3124a8['endColumn'];_0x55d80f=Math[_0x4eb8f1(0x21d)](_0x55d80f,_0x5098be),_0x821f5b=Math[_0x4eb8f1(0x1d0)](_0x821f5b,_0x1681a1);}if(_0x821f5b===-0x1)_0x2f0d46=_0x821f5b-_0x55d80f+0x1;const _0x2a18e4=_0x304406[0x0][_0x4eb8f1(0x24d)],_0x23e654=_0x2a18e4['endColumn']-_0x2a18e4[_0x4eb8f1(0x248)]+0x1;if(_0x2f0d46>=0x0&&_0x2f0d46<=_0x23e654*0x3/0x4){_0x477564[_0x4eb8f1(0x1c7)](_0x41565c);continue;}const _0x51fd0a=_0x304406[0x0];for(const _0x41b54a of _0x304406[_0x4eb8f1(0x256)](0x1)){_0x51fd0a[_0x4eb8f1(0x24d)][_0x4eb8f1(0x1e9)]=Math['min'](_0x51fd0a['range']['startRow'],_0x41b54a[_0x4eb8f1(0x24d)][_0x4eb8f1(0x1e9)]),_0x51fd0a['range'][_0x4eb8f1(0x241)]=Math['max'](_0x51fd0a[_0x4eb8f1(0x24d)]['endRow'],_0x41b54a[_0x4eb8f1(0x24d)]['endRow']),_0x51fd0a[_0x4eb8f1(0x24d)]['startColumn']=Math[_0x4eb8f1(0x21d)](_0x51fd0a[_0x4eb8f1(0x24d)][_0x4eb8f1(0x248)],_0x41b54a[_0x4eb8f1(0x24d)][_0x4eb8f1(0x248)]),_0x51fd0a[_0x4eb8f1(0x24d)][_0x4eb8f1(0x1f0)]=Math[_0x4eb8f1(0x1d0)](_0x51fd0a[_0x4eb8f1(0x24d)][_0x4eb8f1(0x1f0)],_0x41b54a['range'][_0x4eb8f1(0x1f0)]);}_0x51fd0a[_0x4eb8f1(0x24d)]['startRow']=Math[_0x4eb8f1(0x21d)](_0x51fd0a[_0x4eb8f1(0x24d)][_0x4eb8f1(0x1e9)],_0x41565c['range'][_0x4eb8f1(0x1e9)]),_0x51fd0a['range']['endRow']=Math[_0x4eb8f1(0x1d0)](_0x51fd0a['range']['endRow'],_0x41565c[_0x4eb8f1(0x24d)]['endRow']),_0x51fd0a[_0x4eb8f1(0x24d)][_0x4eb8f1(0x248)]=Math['min'](_0x51fd0a['range'][_0x4eb8f1(0x248)],_0x41565c[_0x4eb8f1(0x24d)][_0x4eb8f1(0x248)]),_0x51fd0a[_0x4eb8f1(0x24d)][_0x4eb8f1(0x1f0)]=Math[_0x4eb8f1(0x1d0)](_0x51fd0a[_0x4eb8f1(0x24d)]['endColumn'],_0x41565c[_0x4eb8f1(0x24d)][_0x4eb8f1(0x1f0)]),_0x41565c[_0x4eb8f1(0x247)][_0x4eb8f1(0x197)]((_0x578958,_0x54cf49)=>{const _0x290bf4=_0x4eb8f1;var _0x3a1942;const _0x23d1e8=(_0x3a1942=_0x51fd0a[_0x290bf4(0x247)]['get'](_0x54cf49))!==null&&_0x3a1942!==void 0x0?_0x3a1942:[];_0x23d1e8[_0x290bf4(0x1c7)](..._0x578958),_0x51fd0a[_0x290bf4(0x247)][_0x290bf4(0x1dc)](_0x54cf49,_0x23d1e8);}),_0x41565c[_0x4eb8f1(0x207)]['forEach']((_0x556718,_0x389121)=>{const _0x9cf6d8=_0x4eb8f1;var _0x47a72d;const _0x43c68a=(_0x47a72d=_0x51fd0a[_0x9cf6d8(0x207)][_0x9cf6d8(0x1ee)](_0x389121))!==null&&_0x47a72d!==void 0x0?_0x47a72d:[];_0x43c68a[_0x9cf6d8(0x1c7)](..._0x556718),_0x51fd0a['columnMergeTitleCountMap'][_0x9cf6d8(0x1dc)](_0x389121,_0x43c68a);}),_0x51fd0a['isMatchContinue']=!![];}const _0x5cd1f9=[];for(const _0xca2d30 of _0x15da1e){if(!_0xca2d30[_0x4eb8f1(0x19f)]&&_0xca2d30[_0x4eb8f1(0x19a)])continue;_0x5cd1f9[_0x4eb8f1(0x1c7)](_0xca2d30),_0xca2d30['isMatchContinue']=![],_0xca2d30[_0x4eb8f1(0x19a)]=![];}_0x5cd1f9[_0x4eb8f1(0x1c7)](..._0x477564),_0x15da1e=_0x5cd1f9;}_0x373ec3[_0x4eb8f1(0x1c7)](..._0x15da1e);let _0x18dbff=0x0;for(const _0x22baa4 of _0x373ec3){const _0x273da5=_0x22baa4[_0x4eb8f1(0x24d)][_0x4eb8f1(0x241)]-_0x22baa4[_0x4eb8f1(0x24d)][_0x4eb8f1(0x1e9)]+0x1;if(_0x22baa4[_0x4eb8f1(0x24d)]['endColumn']-_0x22baa4[_0x4eb8f1(0x24d)][_0x4eb8f1(0x248)]+0x1>0x0&&_0x273da5>0x1)_0x18dbff++;}if(_0x18dbff===0x0)continue;const _0x2ed93f=[],_0x14dec1=generateRandomIds(0x6,_0x373ec3[_0x4eb8f1(0x22d)]);let _0x2df0f5=0x0;for(const _0x1ed3f4 of _0x373ec3){const _0x1c036d=_0x1ed3f4[_0x4eb8f1(0x24d)][_0x4eb8f1(0x241)]-_0x1ed3f4[_0x4eb8f1(0x24d)][_0x4eb8f1(0x1e9)]+0x1,_0x35516a=_0x1ed3f4[_0x4eb8f1(0x24d)][_0x4eb8f1(0x1f0)]-_0x1ed3f4[_0x4eb8f1(0x24d)][_0x4eb8f1(0x248)]+0x1;let _0xed1213=![];for(const _0x488a8e of _0x44556a[_0x4eb8f1(0x1ab)]())if(isSameRange(_0x1ed3f4[_0x4eb8f1(0x24d)],_0x488a8e)){_0xed1213=!![];break;}if(_0xed1213)continue;let _0x57fa50=!![];for(const _0x4d38c0 of _0x373ec3)if(_0x4d38c0!==_0x1ed3f4&&isFullyContained(_0x1ed3f4,_0x4d38c0)){_0x57fa50=![];break;}if(!_0x57fa50)continue;if(_0x35516a<=0x0||_0x1c036d<=0x1)continue;_0x1ed3f4['id']=_0x14dec1[_0x2df0f5++],_0x2ed93f[_0x4eb8f1(0x1c7)](_0x1ed3f4);}_0x447d0a[_0x210966]=_0x2ed93f;}return _0x447d0a;}function handleUniverRecognizeTableAlg(_0x26a5fe,_0x4a7376,_0x284d64){const _0x2471cd=genTable(_0x26a5fe,_0x4a7376);return insertSheetTableToReasoningTable(_0x2471cd,_0x26a5fe,_0x4a7376),getSheetTables(enrichmentTable(_0x2471cd,_0x26a5fe),_0x26a5fe,_0x4a7376,_0x284d64);}function isSameRange(_0x2eb8d7,_0x48491f){const _0x3b5374=_0x472f32;return _0x2eb8d7[_0x3b5374(0x1e9)]===_0x48491f[_0x3b5374(0x1e9)]&&_0x2eb8d7[_0x3b5374(0x241)]===_0x48491f[_0x3b5374(0x241)]&&_0x2eb8d7['startColumn']===_0x48491f[_0x3b5374(0x248)]&&_0x2eb8d7['endColumn']===_0x48491f[_0x3b5374(0x1f0)];}function isFullyContained(_0x1bbe75,_0x1ea239){const _0x72c39d=_0x472f32;return _0x1bbe75[_0x72c39d(0x24d)][_0x72c39d(0x1e9)]>=_0x1ea239[_0x72c39d(0x24d)][_0x72c39d(0x1e9)]&&_0x1bbe75['range'][_0x72c39d(0x241)]<=_0x1ea239[_0x72c39d(0x24d)][_0x72c39d(0x241)]&&_0x1bbe75['range'][_0x72c39d(0x248)]>=_0x1ea239[_0x72c39d(0x24d)]['startColumn']&&_0x1bbe75[_0x72c39d(0x24d)][_0x72c39d(0x1f0)]<=_0x1ea239['range'][_0x72c39d(0x1f0)];}function getRangeName(_0x3871d1){const _0x202eb5=_0x472f32;return''+ColumnNumberToName(_0x3871d1['startColumn'])+(_0x3871d1[_0x202eb5(0x1e9)]+0x1)+':'+ColumnNumberToName(_0x3871d1[_0x202eb5(0x1f0)])+(_0x3871d1['endRow']+0x1);}function getCellValueRaw(_0x23a431){const _0x256023=_0x472f32;if(_0x23a431===null)return;if(_0x23a431===null||_0x23a431===void 0x0?void 0x0:_0x23a431['p']){const _0x513b8f=_0x23a431===null||_0x23a431===void 0x0?void 0x0:_0x23a431['p'][_0x256023(0x239)];if(_0x513b8f==null)return;const _0x4d43d0=_0x513b8f[_0x256023(0x228)],_0x15efec=_univerjs_core['BuildTextUtils'][_0x256023(0x1ea)][_0x256023(0x1f1)](_0x4d43d0),_0x575955=_0x513b8f[_0x256023(0x1a6)];if(_0x575955&&_0x575955[_0x256023(0x22d)]>0x0){var _0x2cc659;const _0xef53ce=_0x575955[0x0],_0x48df39=(_0x2cc659=_0xef53ce[_0x256023(0x219)])===null||_0x2cc659===void 0x0?void 0x0:_0x2cc659[_0x256023(0x20d)];if(!_0x48df39)return _0x15efec;const _0x4dcdf5=typeof _0xef53ce[_0x256023(0x212)]==='number'?_0xef53ce['startIndex']:0x0;let _0x428635=typeof _0xef53ce[_0x256023(0x1a4)]===_0x256023(0x234)?_0xef53ce[_0x256023(0x1a4)]+0x1:_0x4dcdf5+0x1;if(_0x4dcdf5===0x0&&_0x428635===0x0)_0x428635=0x1;else{if(_0x428635<=_0x4dcdf5)_0x428635=_0x4dcdf5+0x1;}return'['+_0x4d43d0[_0x256023(0x256)](_0x4dcdf5,_0x428635)+']('+_0x48df39+')';}return _0x15efec;}if((_0x23a431===null||_0x23a431===void 0x0?void 0x0:_0x23a431['v'])!=null)return _0x23a431['v'];}function _0x329e(_0x17f719,_0x1c0b52){_0x17f719=_0x17f719-0x197;const _0x147ce8=_0x147c();let _0x329ea2=_0x147ce8[_0x17f719];return _0x329ea2;}function getCellValue(_0x25978f){const _0x19564a=getCellValueRaw(_0x25978f);if(_0x19564a==null)return;return String(_0x19564a);}function getCellValueIncludeMerge(_0x2a5ddb,_0x182c80,_0x4179f3){const _0x1a9643=_0x472f32,_0x32d414=_0x4179f3[_0x1a9643(0x1a0)](_0x2a5ddb,_0x182c80);if(_0x32d414!=null){const _0x3678dc=getCellValue(_0x32d414);if(_0x3678dc!=null&&_0x3678dc[_0x1a9643(0x22d)]>0x0)return _0x3678dc;}const _0x32d701=MergeRTreeCache['get'](_0x4179f3),_0x5f2210=_0x32d701===null||_0x32d701===void 0x0?void 0x0:_0x32d701[_0x1a9643(0x1b7)],_0x43f74a=_0x32d701===null||_0x32d701===void 0x0?void 0x0:_0x32d701['mergeRangeMap'],_0x3f34b6=_0x4179f3[_0x1a9643(0x249)](),_0x2a8ced=_0x4179f3[_0x1a9643(0x1e1)](),_0x3ab256={'range':{'startRow':_0x2a5ddb,'endRow':_0x2a5ddb,'startColumn':_0x182c80,'endColumn':_0x182c80},'unitId':_0x3f34b6,'sheetId':_0x2a8ced},_0x1211c3=(_0x5f2210===null||_0x5f2210===void 0x0?void 0x0:_0x5f2210['bulkSearch']([_0x3ab256]))||new Map();if(_0x1211c3[_0x1a9643(0x250)]===0x0||!_0x43f74a)return null;const _0x386019=_0x1211c3[_0x1a9643(0x243)]()[_0x1a9643(0x1fd)]()['value'],_0x46f76b=_0x43f74a[_0x1a9643(0x1ee)](_0x386019);if(!_0x46f76b)return null;const _0x3b54ae=_0x4179f3[_0x1a9643(0x1a0)](_0x46f76b[_0x1a9643(0x24d)][_0x1a9643(0x1e9)],_0x46f76b[_0x1a9643(0x24d)][_0x1a9643(0x248)]);if(_0x3b54ae==null)return null;return getCellValue(_0x3b54ae);}function insertSheetTableToReasoningTable(_0x406759,_0x4c1b76,_0x4424bf){const _0x5b7a2d=_0x472f32,_0x3f67e1=_0x4c1b76[_0x5b7a2d(0x226)](),_0x598191=_0x4424bf[_0x5b7a2d(0x1ee)](_univerjs_sheets_table[_0x5b7a2d(0x214)]),_0xa76712=_0x4c1b76[_0x5b7a2d(0x249)]();for(const _0x46d26c of _0x3f67e1){const _0x562881=_0x46d26c[_0x5b7a2d(0x1e1)](),_0x4ab289=_0x598191[_0x5b7a2d(0x253)](_0xa76712,_0x562881);if(!_0x4ab289)continue;const _0x46710f=_0x4ab289[_0x5b7a2d(0x1a9)](_0x5d0f25=>_0x5d0f25[_0x5b7a2d(0x1d4)]());for(const _0x40e414 of _0x46710f){const {startRow:_0x523fdf,endRow:_0x5857f6,startColumn:_0x57164f,endColumn:_0x12f45a}=_0x40e414[_0x5b7a2d(0x24d)],_0x4ed9ce=new ReasoningTable({'id':_0x40e414['id'],'sheetId':_0x562881,'range':{'startRow':_0x523fdf,'endRow':_0x5857f6,'startColumn':_0x57164f,'endColumn':_0x12f45a},'name':'','description':'','rowTitleCount':0x0,'mergeRowTitleCount':0x0,'startStatisticRowCount':0x0,'endStatisticRowCount':0x0,'rowMergeTitleCountMap':new Map(),'rowMergeTitleState':![],'columnMergeTitleState':![],'columnMergeTitleCountMap':new Map(),'isMatchEnd':![],'isMatchContinue':![],'isTimeSeries':![],'isTestTable':![],'isUpdateTable':!![],'columns':[]});if(!_0x406759[_0x562881])_0x406759[_0x562881]=[];_0x406759[_0x562881][_0x5b7a2d(0x1c7)](_0x4ed9ce);}}}function enrichmentTable(_0x4bd3d5,_0x537d05){const _0x5b4061=_0x472f32,_0x29f33f={};for(const [_0x3f4a00,_0x266e4f]of Object[_0x5b4061(0x233)](_0x4bd3d5)){var _0x5f2933,_0x5a5ae0;const _0x7534b0=_0x266e4f;let _0x458ce8=![];const _0x1b6c44=_0x537d05[_0x5b4061(0x205)](_0x3f4a00);if(!_0x1b6c44)continue;for(let _0x5e21d5=0x0;_0x5e21d5<_0x7534b0[_0x5b4061(0x22d)];_0x5e21d5++){const _0x5746ce=_0x7534b0[_0x5e21d5],{startRow:_0x1e815d,endRow:_0x75ab70,startColumn:_0x7d1827,endColumn:_0x20b3f3}=_0x5746ce[_0x5b4061(0x24d)],_0x1e7ae8=getTableName(_0x5746ce,_0x1b6c44,_0x537d05),_0x2c23dd=getReasoningTableRowMergeTitleCount(_0x1e815d,_0x75ab70,_0x5746ce);let _0x56c571=0x1;const _0x415f4c=_0x1e815d+_0x2c23dd;let _0x2810a2=0x0,_0x1486be=0x0;for(let _0x14c217=_0x7d1827;_0x14c217<=_0x20b3f3;_0x14c217++){const _0x42acf7=_0x1b6c44[_0x5b4061(0x1a0)](_0x415f4c,_0x14c217);if(!_0x42acf7)continue;const _0x137a42=getCellValue(_0x42acf7);if(_0x137a42==null)continue;if(_0x137a42!=='')_0x1486be++;if(isNumber(_0x137a42))_0x2810a2++;}if(_0x1486be>0x0&&_0x2810a2/Math['max'](_0x1486be,0x1)>0.03)_0x56c571=0x0;_0x5746ce['mergeRowTitleCount']=_0x2c23dd,_0x5746ce['rowTitleCount']=_0x56c571+_0x2c23dd;if(_0x5746ce['range']['endRow']-_0x5746ce['range'][_0x5b4061(0x1e9)]+0x1-_0x5746ce['rowTitleCount']<=0x1){console['warn'](_0x5b4061(0x1bd)+_0x5e21d5+_0x5b4061(0x1ba)+getRangeName(_0x5746ce['range'])),_0x7534b0[_0x5b4061(0x1f8)](_0x5e21d5,0x1),_0x5e21d5--,_0x458ce8=!![];continue;}const _0x3204a5=new Map();let _0x1e47a5=0x0;const _0x1995c5=generateRandomIds(0x4,_0x20b3f3-_0x7d1827+0x1);for(let _0xf22303=_0x7d1827;_0xf22303<=_0x20b3f3;_0xf22303++){let _0x1cb6cf='';const _0x40263a=new Set();let _0x267b24=![];const _0x17414c=_0x1e815d+_0x5746ce[_0x5b4061(0x1bf)]-0x1;let _0x4ecc26=_0x1e815d;if(_0x1e7ae8!=='')_0x4ecc26=_0x1e815d+0x1;for(let _0x41f3b0=_0x4ecc26;_0x41f3b0<=_0x17414c;_0x41f3b0++){const _0xe074a4=getCellValueIncludeMerge(_0x41f3b0,_0xf22303,_0x1b6c44);if(_0xe074a4==null)continue;if(_0x41f3b0===_0x17414c)_0x1cb6cf=_0xe074a4;_0x40263a['add'](_0xe074a4);}const _0x290085=[..._0x40263a][_0x5b4061(0x24e)](','),_0x208077=_0x290085;if(_0x3204a5[_0x5b4061(0x203)](_0x208077))_0x267b24=!![];else _0x3204a5[_0x5b4061(0x1dc)](_0x208077,!![]);const _0x321975=_0x17414c+0x1;let _0x9a187b=_0x17414c+0x14,_0x23a7b1=0x0,_0x379135=![],_0xe8cadc=![];if(_0x9a187b>_0x75ab70)_0x9a187b=_0x75ab70;if(_0x321975<_0x75ab70){let _0x2193ba='';for(let _0x244bb8=_0x321975;_0x244bb8<=_0x9a187b;_0x244bb8++){const _0x18db6e=_0x1b6c44[_0x5b4061(0x1a0)](_0x244bb8,_0xf22303);if(!_0x18db6e)continue;const _0x26bbd8=getCellValue(_0x18db6e);if(_0x26bbd8==null)continue;if(!isNumber(_0x26bbd8))_0x2193ba+=_0x26bbd8;if(isHyperlink(_0x26bbd8))_0x23a7b1++;}if(_0x23a7b1>Math[_0x5b4061(0x21a)]((_0x9a187b-_0x321975+0x1)/0x2))_0xe8cadc=!![];if(GetStringLength(_0x2193ba)/Math[_0x5b4061(0x1d0)](_0x9a187b-_0x321975+0x1,0x1)>0xf&&!_0xe8cadc)_0x379135=!![];}_0x5746ce['columns']['push']({'id':_0x1995c5[_0x1e47a5++],'Name':_0x1cb6cf,'Type':'','Description':_0x290085,'isCoded':![],'isMeasure':!![],'isOpinionText':![],'isBigText':_0x379135,'isLink':_0xe8cadc,'isTitleRepeat':_0x267b24,'isUnique':![],'links':[]});}inferColumnTypes(_0x5746ce,_0x537d05);}if(_0x458ce8)_0x4bd3d5[_0x3f4a00]=_0x7534b0;if(_0x7534b0[_0x5b4061(0x22d)]===0x0)delete _0x4bd3d5[_0x3f4a00];_0x29f33f[_0x3f4a00]=(_0x5f2933=(_0x5a5ae0=_0x4bd3d5[_0x3f4a00])===null||_0x5a5ae0===void 0x0?void 0x0:_0x5a5ae0[_0x5b4061(0x22d)])!==null&&_0x5f2933!==void 0x0?_0x5f2933:0x0;}return _0x4bd3d5;}function getReasoningTableRowMergeTitleCount(_0x3a8431,_0x37ad22,_0x12d1ad){const _0x3d20b1=_0x472f32;function _0x321f93(_0x5f188d){const _0x38715b=_0x329e;if(_0x5f188d[_0x38715b(0x22d)]===0x0)return 0x0;_0x5f188d[_0x38715b(0x1d8)]((_0xf54863,_0x4b3af7)=>_0xf54863[0x0]-_0x4b3af7[0x0]);let _0x377447=0x0,_0x34a864=_0x5f188d[0x0][0x0],_0x31aa68=_0x5f188d[0x0][0x1];for(let _0x5cf1eb=0x1;_0x5cf1eb<_0x5f188d[_0x38715b(0x22d)];_0x5cf1eb++){const [_0x2a5297,_0x140a90]=_0x5f188d[_0x5cf1eb];if(_0x2a5297<=_0x31aa68+0x1)_0x31aa68=Math[_0x38715b(0x1d0)](_0x31aa68,_0x140a90);else _0x377447+=_0x31aa68-_0x34a864+0x1,_0x34a864=_0x2a5297,_0x31aa68=_0x140a90;}return _0x377447+=_0x31aa68-_0x34a864+0x1,_0x377447;}const _0x534569=_0x12d1ad[_0x3d20b1(0x24d)][_0x3d20b1(0x248)],_0x3afd70=_0x12d1ad[_0x3d20b1(0x24d)][_0x3d20b1(0x1f0)],_0x52d184=_0x3afd70-_0x534569+0x1;let _0x1a4f00=_0x3a8431-0x1,_0x683194=_0x3a8431-0x1,_0x3fda0d=![];const _0x4c5f73=0x64;for(let _0x5d585b=_0x3a8431;_0x5d585b<=_0x37ad22&&_0x5d585b-_0x3a8431<_0x4c5f73;_0x5d585b++){var _0x18cc39;const _0xf0879d=[],_0x1df00c=(_0x18cc39=_0x12d1ad[_0x3d20b1(0x247)][_0x3d20b1(0x1ee)](_0x5d585b))!==null&&_0x18cc39!==void 0x0?_0x18cc39:[];for(const _0x379b41 of _0x1df00c){const _0x508cb3=_0x379b41[_0x3d20b1(0x24d)][_0x3d20b1(0x248)],_0x3de06f=_0x379b41[_0x3d20b1(0x24d)]['endColumn'],_0x550069=Math[_0x3d20b1(0x1d0)](_0x508cb3,_0x534569),_0x398cd8=Math['min'](_0x3de06f,_0x3afd70);if(_0x550069<=_0x398cd8)_0xf0879d[_0x3d20b1(0x1c7)]([_0x550069,_0x398cd8]);}_0x12d1ad['columnMergeTitleCountMap'][_0x3d20b1(0x197)](_0xdfdfda=>{const _0x697f1a=_0x3d20b1;for(const _0x3bc977 of _0xdfdfda){const _0x2c67ff=_0x3bc977[_0x697f1a(0x24d)]['startRow'],_0x383507=_0x3bc977[_0x697f1a(0x24d)][_0x697f1a(0x241)];if(_0x2c67ff<=_0x5d585b&&_0x5d585b<=_0x383507){const _0x141f4f=_0x3bc977[_0x697f1a(0x24d)][_0x697f1a(0x248)],_0x3ebea4=_0x3bc977[_0x697f1a(0x24d)][_0x697f1a(0x1f0)],_0x50fb47=Math[_0x697f1a(0x1d0)](_0x141f4f,_0x534569),_0x514e7a=Math[_0x697f1a(0x21d)](_0x3ebea4,_0x3afd70);if(_0x50fb47<=_0x514e7a)_0xf0879d[_0x697f1a(0x1c7)]([_0x50fb47,_0x514e7a]);}}});const _0x2a1bb2=_0x321f93(_0xf0879d),_0x405a9b=_0x2a1bb2/Math[_0x3d20b1(0x1d0)](_0x52d184,0x1);if(_0xf0879d['length']>0x0)_0x1a4f00=_0x5d585b;if(_0x2a1bb2>0x0&&_0x405a9b>=0.75&&!_0x3fda0d)_0x683194=_0x5d585b;else{if(_0xf0879d[_0x3d20b1(0x22d)]>0x0)_0x3fda0d=!![];}}if(_0x1a4f00===_0x37ad22||_0x1a4f00-_0x3a8431===_0x4c5f73)return _0x683194-_0x3a8431+0x1;return _0x1a4f00-_0x3a8431+0x1;}function getTableName(_0x1b51a7,_0x475b54,_0x3cf650){const _0x25cd86=_0x472f32;_0x1b51a7['description']+=_0x475b54[_0x25cd86(0x1ce)]()+',\x20'+_0x3cf650[_0x25cd86(0x20b)];if(_0x1b51a7[_0x25cd86(0x20b)]&&_0x1b51a7[_0x25cd86(0x20b)]!=='')return _0x1b51a7[_0x25cd86(0x20b)];const _0x2c4759=_0x1b51a7[_0x25cd86(0x24d)][_0x25cd86(0x1e9)],_0x2a723b=_0x1b51a7[_0x25cd86(0x24d)][_0x25cd86(0x248)],_0x4dd424=_0x1b51a7[_0x25cd86(0x24d)][_0x25cd86(0x1f0)],_0x125b28=0x3,_0x2f824d=_0x1b51a7[_0x25cd86(0x247)][_0x25cd86(0x1ee)](_0x2c4759);if(_0x2f824d&&_0x2f824d['length']>0x0)for(const _0x32cc34 of _0x2f824d){const _0x4a318c=_0x32cc34[_0x25cd86(0x24d)],_0x536d96=_0x4a318c[_0x25cd86(0x248)],_0x1bfef8=_0x4a318c[_0x25cd86(0x1f0)];if(_0x536d96<=_0x2a723b+_0x125b28&&_0x1bfef8>=_0x4dd424-_0x125b28){const _0x322345=_0x475b54[_0x25cd86(0x1a0)](_0x2c4759,_0x536d96);if(!_0x322345)return'';const _0x4bf56c=getCellValue(_0x322345);if(_0x4bf56c==null||_0x4bf56c==='')return'';return _0x1b51a7[_0x25cd86(0x20b)]=_0x4bf56c,_0x4bf56c;}}return'';}function inferColumnTypes(_0x4aa665,_0x36ccd1){const _0xeb39f5=_0x472f32,_0x555cfd={};_0x36ccd1[_0xeb39f5(0x238)]()['each'](_0x2fa3f7=>{const _0x224638=_0xeb39f5,[_0x1d89c1,_0x105563]=_0x2fa3f7;if(!_0x1d89c1||!_0x105563)return!![];if(_0x105563['n']&&typeof _0x105563['n'][_0x224638(0x1ca)]==='string'&&/[YyMDd]/[_0x224638(0x231)](_0x105563['n']['pattern']))_0x555cfd[_0x1d89c1]=!![];return!![];});const _0x31d964=_0x4aa665[_0xeb39f5(0x24d)]['startRow'],_0x36f57b=_0x4aa665[_0xeb39f5(0x24d)][_0xeb39f5(0x241)],_0x5507e5=_0x4aa665[_0xeb39f5(0x1bf)],_0x1a7911=_0x4aa665[_0xeb39f5(0x1d1)],_0x223440=_0x36ccd1[_0xeb39f5(0x205)](_0x1a7911);if(!_0x223440)return;const _0x384e63=_0x36f57b-_0x31d964+0x1-_0x5507e5;if(_0x384e63<=0x1){console[_0xeb39f5(0x245)]('skip\x20small\x20table');return;}const _0xf0cd18=[];for(let _0x45f510=0x0;_0x45f510<_0x4aa665[_0xeb39f5(0x24d)][_0xeb39f5(0x1f0)]-_0x4aa665['range']['startColumn']+0x1;_0x45f510++)_0xf0cd18[_0xeb39f5(0x1c7)](new DetectImpl(_0x555cfd));const _0x1a2f8e=Math['log10'](Math[_0xeb39f5(0x1d0)](_0x384e63,0x1));for(let _0x14a3c3=0x0;;_0x14a3c3++){const _0x370d50=_0x14a3c3,_0x3df620=Math[_0xeb39f5(0x21a)](_0x370d50+0.00001*_0x370d50**2.7*_0x1a2f8e*_0x1a2f8e)+_0x31d964+_0x5507e5;if(_0x3df620>_0x36f57b)break;for(let _0x51b61d=_0x4aa665['range'][_0xeb39f5(0x248)];_0x51b61d<=_0x4aa665[_0xeb39f5(0x24d)][_0xeb39f5(0x1f0)];_0x51b61d++){const _0x571d3f=_0x223440[_0xeb39f5(0x1a0)](_0x3df620,_0x51b61d);if(!_0x571d3f)continue;_0xf0cd18[_0x51b61d-_0x4aa665[_0xeb39f5(0x24d)][_0xeb39f5(0x248)]][_0xeb39f5(0x1f6)](_0x571d3f);}}const _0x1bfc83=[];for(let _0x4eb09b=0x0;_0x4eb09b<_0x4aa665['columns'][_0xeb39f5(0x22d)];_0x4eb09b++){const [_0x155559,_0x33df67]=_0xf0cd18[_0x4eb09b][_0xeb39f5(0x1c3)]();_0x4aa665[_0xeb39f5(0x1e6)][_0x4eb09b][_0xeb39f5(0x232)]=_0x155559,_0x1bfc83[_0xeb39f5(0x1c7)](_0x155559);}}function getColumnLinks(_0x35e174){const _0x8960f8=_0x472f32,_0x24f429=[];for(const _0x3ee4bf of _0x35e174['links'])_0x24f429[_0x8960f8(0x1c7)]({'tableId':_0x3ee4bf[_0x8960f8(0x1ae)],'columnId':_0x3ee4bf['columnId'],'linkType':_0x3ee4bf[_0x8960f8(0x1a2)]});return _0x24f429;}function showHeader(_0x1568b6){return _0x1568b6['rowTitleCount']===0x1;}function insertReasoningTableToSheetTable(_0x567eca,_0x4c8a5b,_0x528a12,_0x4856e6,_0x51316c){const _0x49421a=_0x472f32,_0x33cf1b=_0x4856e6[_0x49421a(0x1ee)](_univerjs_sheets_table['TableManager']),_0x15f8d8=_0x4c8a5b[_0x49421a(0x249)](),_0x6f4e8c=_0x567eca[_0x49421a(0x1d1)];if(!_0x33cf1b[_0x49421a(0x253)](_0x15f8d8,_0x6f4e8c))return;for(const _0x3c39f5 of _0x528a12){if(_0x3c39f5['id']!==_0x567eca['id'])continue;_0x3c39f5[_0x49421a(0x20b)]=_0x567eca['name'],_0x3c39f5['meta']={},_0x3c39f5[_0x49421a(0x1df)][_0x49421a(0x235)]=_0x567eca[_0x49421a(0x235)],_0x3c39f5[_0x49421a(0x1df)][_0x49421a(0x1bf)]=_0x567eca[_0x49421a(0x1bf)],_0x3c39f5[_0x49421a(0x1df)][_0x49421a(0x1ec)]=_0x567eca[_0x49421a(0x1ec)],_0x3c39f5[_0x49421a(0x1df)][_0x49421a(0x210)]=_0x567eca['isTimeSeries'];for(let _0x2bacce=0x0;_0x2bacce<_0x567eca[_0x49421a(0x1e6)][_0x49421a(0x22d)];_0x2bacce++){const _0x10bfb6=_0x567eca[_0x49421a(0x1e6)][_0x2bacce],_0x43e277=_0x3c39f5[_0x49421a(0x1e6)][_0x2bacce];_0x43e277[_0x49421a(0x1af)]=_0x10bfb6[_0x49421a(0x211)],_0x43e277[_0x49421a(0x1b5)]=_0x10bfb6['Type'],_0x43e277[_0x49421a(0x1df)]={},_0x43e277[_0x49421a(0x1df)]['description']=_0x10bfb6[_0x49421a(0x1f3)],_0x43e277[_0x49421a(0x1df)][_0x49421a(0x1ad)]=_0x10bfb6[_0x49421a(0x1ad)],_0x43e277[_0x49421a(0x1df)][_0x49421a(0x1f9)]=_0x10bfb6[_0x49421a(0x1f9)],_0x43e277[_0x49421a(0x1df)][_0x49421a(0x1c9)]=_0x10bfb6[_0x49421a(0x1c9)],_0x43e277[_0x49421a(0x1df)][_0x49421a(0x1c8)]=_0x10bfb6[_0x49421a(0x1c8)],_0x43e277[_0x49421a(0x1df)][_0x49421a(0x21e)]=_0x10bfb6[_0x49421a(0x21e)],_0x43e277[_0x49421a(0x1df)][_0x49421a(0x1bb)]=_0x10bfb6[_0x49421a(0x1bb)],_0x43e277[_0x49421a(0x1df)][_0x49421a(0x23f)]=_0x10bfb6[_0x49421a(0x23f)],_0x43e277[_0x49421a(0x1df)][_0x49421a(0x1ed)]=getColumnLinks(_0x10bfb6);}addDataToTableJson(_0x3c39f5,_0x6f4e8c,_0x4c8a5b,_0x51316c);}MergeRTreeCache[_0x49421a(0x1dd)]();}function getSheetTables(_0x2e1a6f,_0x1fe63c,_0x5f3330,_0x42d5d7){const _0x2acf99=_0x472f32,_0x3a4257=_0x5f3330[_0x2acf99(0x1ee)](_univerjs_sheets_table[_0x2acf99(0x214)]),_0xcc5f76=_0x1fe63c[_0x2acf99(0x249)](),_0x422cfc={};for(const [_0x147d34,_0x340ec2]of Object[_0x2acf99(0x233)](_0x2e1a6f)){const _0x57a541=_0x3a4257[_0x2acf99(0x253)](_0xcc5f76,_0x147d34),_0x11ac50=(_0x57a541===null||_0x57a541===void 0x0?void 0x0:_0x57a541['map'](_0x21dd73=>_0x21dd73[_0x2acf99(0x1d4)]()))||[];for(const _0x263cb4 of _0x340ec2){if(_0x263cb4[_0x2acf99(0x24b)]){insertReasoningTableToSheetTable(_0x263cb4,_0x1fe63c,_0x11ac50,_0x5f3330,_0x42d5d7);continue;}const _0x30e526={'id':_0x263cb4['id'],'range':{'startRow':_0x263cb4[_0x2acf99(0x24d)][_0x2acf99(0x1e9)]+_0x263cb4[_0x2acf99(0x1ec)],'endRow':_0x263cb4[_0x2acf99(0x24d)][_0x2acf99(0x241)],'startColumn':_0x263cb4[_0x2acf99(0x24d)]['startColumn'],'endColumn':_0x263cb4['range'][_0x2acf99(0x1f0)]},'name':_0x263cb4[_0x2acf99(0x20b)],'meta':{},'options':{'showHeader':showHeader(_0x263cb4),'showFooter':![]},'columns':[],'filters':{}};_0x30e526[_0x2acf99(0x1df)]['description']=_0x263cb4[_0x2acf99(0x235)],_0x30e526[_0x2acf99(0x1df)]['rowTitleCount']=_0x263cb4['rowTitleCount'],_0x30e526[_0x2acf99(0x1df)][_0x2acf99(0x1ec)]=_0x263cb4[_0x2acf99(0x1ec)],_0x30e526[_0x2acf99(0x1df)][_0x2acf99(0x210)]=_0x263cb4['isTimeSeries'];const _0x48474e=_0x263cb4[_0x2acf99(0x24d)][_0x2acf99(0x248)];for(let _0x2ef2d1=0x0;_0x2ef2d1<_0x263cb4[_0x2acf99(0x1e6)]['length'];_0x2ef2d1++){const _0x368ec6=_0x263cb4[_0x2acf99(0x1e6)][_0x2ef2d1],_0x5c492b={'id':_0x368ec6['id'],'displayName':_0x368ec6[_0x2acf99(0x211)]||_0x2acf99(0x206)+ColumnNumberToName(_0x48474e+_0x2ef2d1),'dataType':_0x368ec6[_0x2acf99(0x232)],'meta':{},'formula':'','style':{}};_0x5c492b[_0x2acf99(0x1df)][_0x2acf99(0x235)]=_0x368ec6[_0x2acf99(0x1f3)],_0x5c492b['meta'][_0x2acf99(0x1ad)]=_0x368ec6[_0x2acf99(0x1ad)],_0x5c492b[_0x2acf99(0x1df)]['isMeasure']=_0x368ec6['isMeasure'],_0x5c492b[_0x2acf99(0x1df)][_0x2acf99(0x1c9)]=_0x368ec6[_0x2acf99(0x1c9)],_0x5c492b[_0x2acf99(0x1df)][_0x2acf99(0x1c8)]=_0x368ec6[_0x2acf99(0x1c8)],_0x5c492b[_0x2acf99(0x1df)][_0x2acf99(0x21e)]=_0x368ec6[_0x2acf99(0x21e)],_0x5c492b['meta'][_0x2acf99(0x1bb)]=_0x368ec6[_0x2acf99(0x1bb)],_0x5c492b[_0x2acf99(0x1df)][_0x2acf99(0x23f)]=_0x368ec6[_0x2acf99(0x23f)],_0x5c492b[_0x2acf99(0x1df)][_0x2acf99(0x1ed)]=getColumnLinks(_0x368ec6),_0x30e526[_0x2acf99(0x1e6)]['push'](_0x5c492b);}addDataToTableJson(_0x30e526,_0x147d34,_0x1fe63c,_0x42d5d7),_0x11ac50[_0x2acf99(0x1c7)](_0x30e526);}_0x422cfc[_0x147d34]=_0x11ac50;}for(const _0x386310 of Object[_0x2acf99(0x243)](_0x2e1a6f))_0x2e1a6f[_0x386310][_0x2acf99(0x197)](_0x1cb56b=>{const _0x5c0e69=_0x2acf99;_0x1cb56b[_0x5c0e69(0x213)]();});return _0x422cfc;}function getRowsAfterTitle(_0x9ab199,_0x23d7b7,_0x7a293e=0x5){const _0x23c3db=_0x472f32;if(!Array[_0x23c3db(0x21b)](_0x9ab199)||_0x9ab199[_0x23c3db(0x22d)]===0x0)return[];const _0x1ae0ae=Math['min'](_0x23d7b7,_0x9ab199[_0x23c3db(0x22d)]),_0x41f9ad=Math[_0x23c3db(0x21d)](_0x1ae0ae+_0x7a293e,_0x9ab199[_0x23c3db(0x22d)]);return _0x9ab199['slice'](_0x1ae0ae,_0x41f9ad);}function addDataToTableJson(_0x129620,_0x21d196,_0x455608,_0x459433){const _0x586837=_0x472f32,_0x12af1f=_0x455608[_0x586837(0x205)](_0x21d196);if(!_0x12af1f)return;const _0x4689f1=_0x129620[_0x586837(0x24d)],_0x21fa57=getDisplayValues(_0x12af1f,_0x4689f1);if(_0x459433===_0x586837(0x1da))_0x129620[_0x586837(0x255)]=JSON[_0x586837(0x1ac)](getRowsAfterTitle(_0x21fa57,0x1,0x5));else{if(_0x459433==='all')_0x129620[_0x586837(0x255)]=JSON[_0x586837(0x1ac)](getRowsAfterTitle(_0x21fa57,0x1,_0x21fa57[_0x586837(0x22d)]));}}function getDisplayValues(_0x551e40,_0x3bdd42){const _0x4f4320=_0x472f32,{startRow:_0x12345a,endRow:_0x2d2e49,startColumn:_0x5b1c05,endColumn:_0x56cfc2}=_0x3bdd42,_0x601e53=[],_0x422867=MergeRTreeCache[_0x4f4320(0x1ee)](_0x551e40),_0xe91722=_0x422867===null||_0x422867===void 0x0?void 0x0:_0x422867[_0x4f4320(0x1b7)],_0x2f9543=_0x422867===null||_0x422867===void 0x0?void 0x0:_0x422867[_0x4f4320(0x1eb)],_0x426648=_0x551e40[_0x4f4320(0x249)](),_0x1553fc=_0x551e40[_0x4f4320(0x1e1)]();for(let _0x58be44=_0x12345a;_0x58be44<=_0x2d2e49;_0x58be44++){const _0x68b255=[];for(let _0x3e53cc=_0x5b1c05;_0x3e53cc<=_0x56cfc2;_0x3e53cc++){var _0x185368;const _0x34e6f0=_0x551e40[_0x4f4320(0x1a0)](_0x58be44,_0x3e53cc);let _0x409592=_0x34e6f0?getCellValueRaw(_0x34e6f0):void 0x0;if(_0x409592===null||_0x409592===void 0x0||_0x409592===''){const _0x1a87bb={'range':{'startRow':_0x58be44,'endRow':_0x58be44,'startColumn':_0x3e53cc,'endColumn':_0x3e53cc},'unitId':_0x426648,'sheetId':_0x1553fc},_0x5ae294=(_0xe91722===null||_0xe91722===void 0x0?void 0x0:_0xe91722[_0x4f4320(0x220)]([_0x1a87bb]))||new Map();if(_0x5ae294[_0x4f4320(0x250)]>0x0&&_0x2f9543){const _0xa676f1=_0x5ae294[_0x4f4320(0x243)]()[_0x4f4320(0x1fd)]()[_0x4f4320(0x22a)],_0x47de1f=_0x2f9543[_0x4f4320(0x1ee)](_0xa676f1);if(!_0x47de1f)continue;const _0x51df55=_0x551e40[_0x4f4320(0x1a0)](_0x47de1f[_0x4f4320(0x24d)][_0x4f4320(0x1e9)],_0x47de1f['range'][_0x4f4320(0x248)]);if(_0x51df55)_0x409592=getCellValueRaw(_0x51df55);}}_0x68b255[_0x4f4320(0x1c7)]((_0x185368=_0x409592)!==null&&_0x185368!==void 0x0?_0x185368:'');}_0x601e53[_0x4f4320(0x1c7)](_0x68b255);}return _0x601e53;}function isHyperlink(_0x4b418b){const _0x56df32=_0x472f32;return/https?:\/\/|www\./i[_0x56df32(0x231)](_0x4b418b);}function GetStringLength(_0x2e3451){const _0x305990=_0x472f32;return Array[_0x305990(0x1cc)](_0x2e3451)[_0x305990(0x22d)];}function isNumber(_0x238fe9){const _0x50cf7e=_0x472f32;if(!_0x238fe9)return![];return/^[-+]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[-+]?\d+)?$/i[_0x50cf7e(0x231)](_0x238fe9[_0x50cf7e(0x1d9)]());}function ColumnNumberToName(_0x5c1d19){const _0x13246d=_0x472f32;let _0x3753f0='',_0x3affae=_0x5c1d19+0x1;while(_0x3affae>0x0){const _0x379852=(_0x3affae-0x1)%0x1a;_0x3753f0=String[_0x13246d(0x1a7)](0x41+_0x379852)+_0x3753f0,_0x3affae=Math[_0x13246d(0x21a)]((_0x3affae-0x1)/0x1a);}return _0x3753f0;}function __decorateParam(_0x243c2e,_0x1a74b5){return function(_0xfe63e1,_0x3befef){_0x1a74b5(_0xfe63e1,_0x3befef,_0x243c2e);};}function __decorate(_0x2c2dde,_0x333d6c,_0x5281ac,_0x5eff9a){const _0x3f04f0=_0x472f32;var _0x5c6346=arguments[_0x3f04f0(0x22d)],_0x3fcced=_0x5c6346<0x3?_0x333d6c:_0x5eff9a===null?_0x5eff9a=Object['getOwnPropertyDescriptor'](_0x333d6c,_0x5281ac):_0x5eff9a,_0x2fd6b4;if(typeof Reflect==='object'&&typeof Reflect[_0x3f04f0(0x1de)]===_0x3f04f0(0x246))_0x3fcced=Reflect[_0x3f04f0(0x1de)](_0x2c2dde,_0x333d6c,_0x5281ac,_0x5eff9a);else{for(var _0x573763=_0x2c2dde[_0x3f04f0(0x22d)]-0x1;_0x573763>=0x0;_0x573763--)if(_0x2fd6b4=_0x2c2dde[_0x573763])_0x3fcced=(_0x5c6346<0x3?_0x2fd6b4(_0x3fcced):_0x5c6346>0x3?_0x2fd6b4(_0x333d6c,_0x5281ac,_0x3fcced):_0x2fd6b4(_0x333d6c,_0x5281ac))||_0x3fcced;}return _0x5c6346>0x3&&_0x3fcced&&Object[_0x3f04f0(0x1b6)](_0x333d6c,_0x5281ac,_0x3fcced),_0x3fcced;}let RangePreprocessController=class RangePreprocessController extends _univerjs_core['Disposable']{constructor(_0x39589b){const _0x406884=_0x472f32;super(),this[_0x406884(0x1e5)]=_0x39589b;}[_0x472f32(0x1fb)](_0x9afb93,_0x307190){const _0xc599ee=_0x472f32;return handleUniverRecognizeTableAlg(_0x9afb93,this[_0xc599ee(0x1e5)],_0x307190);}};RangePreprocessController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x472f32(0x24c)])(_univerjs_core['Injector']))],RangePreprocessController);var name=_0x472f32(0x240),version=_0x472f32(0x1a1);const RANGE_PREPROCESS_PLUGIN_CONFIG_KEY=_0x472f32(0x1be);let UniverRangePreprocessPlugin=class UniverRangePreprocessPlugin extends _univerjs_core[_0x472f32(0x21f)]{constructor(_0x29560d={},_0x1cd4fc,_0x430ada){const _0x4a772c=_0x472f32;super(),this['_config']=_0x29560d,this[_0x4a772c(0x1e5)]=_0x1cd4fc,this[_0x4a772c(0x1d2)]=_0x430ada;const {..._0x515b33}=(0x0,_univerjs_core[_0x4a772c(0x23c)])({},this['_config']);this[_0x4a772c(0x1d2)]['setConfig'](RANGE_PREPROCESS_PLUGIN_CONFIG_KEY,_0x515b33);}[_0x472f32(0x1d6)](){const _0x1bae7a=_0x472f32,_0x45d60c=[[RangePreprocessController]];(0x0,_univerjs_core[_0x1bae7a(0x1f5)])(this[_0x1bae7a(0x1e5)],_0x45d60c);}[_0x472f32(0x1c6)](){}};_defineProperty(UniverRangePreprocessPlugin,_0x472f32(0x19b),_0x472f32(0x23b)),_defineProperty(UniverRangePreprocessPlugin,'packageName',name),_defineProperty(UniverRangePreprocessPlugin,_0x472f32(0x1c0),version),UniverRangePreprocessPlugin=__decorate([__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core[_0x472f32(0x23e)])],UniverRangePreprocessPlugin),Object[_0x472f32(0x1b6)](exports,_0x472f32(0x22c),{'enumerable':!![],'get':function(){return RangePreprocessController;}}),Object[_0x472f32(0x1b6)](exports,_0x472f32(0x20a),{'enumerable':!![],'get':function(){return UniverRangePreprocessPlugin;}});
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x439d42=_0x142a;function _0x142a(_0x6e235d,_0x12efdd){_0x6e235d=_0x6e235d-0xeb;var _0x38001e=_0x3800();var _0x142a84=_0x38001e[_0x6e235d];return _0x142a84;}(function(_0x54acfd,_0x2765cd){var _0x10524c=_0x142a,_0x4aaa23=_0x54acfd();while(!![]){try{var _0x1394de=parseInt(_0x10524c(0xf6))/0x1*(-parseInt(_0x10524c(0xf1))/0x2)+parseInt(_0x10524c(0xf4))/0x3*(parseInt(_0x10524c(0xf7))/0x4)+-parseInt(_0x10524c(0xf5))/0x5+parseInt(_0x10524c(0xef))/0x6*(-parseInt(_0x10524c(0xf3))/0x7)+parseInt(_0x10524c(0xf2))/0x8*(parseInt(_0x10524c(0xf8))/0x9)+-parseInt(_0x10524c(0xf0))/0xa+-parseInt(_0x10524c(0xec))/0xb*(-parseInt(_0x10524c(0xf9))/0xc);if(_0x1394de===_0x2765cd)break;else _0x4aaa23['push'](_0x4aaa23['shift']());}catch(_0x3e1cd2){_0x4aaa23['push'](_0x4aaa23['shift']());}}}(_0x3800,0xed8c0));import{RangePreprocessController}from'@univerjs-pro/range-preprocess';import{FWorkbook}from'@univerjs/sheets/facade';var FWorkbookRangePreprocessMixin=class extends FWorkbook{[_0x439d42(0xee)](_0xffbc1a){var _0x4e4601=_0x439d42;return this[_0x4e4601(0xfa)][_0x4e4601(0xed)](RangePreprocessController)[_0x4e4601(0xeb)](this[_0x4e4601(0xfb)],_0xffbc1a);}};function _0x3800(){var _0x198c7a=['10202250SidxMo','1942GeRKOK','9484472VmBOWj','4871356EHoVHq','819CFvIio','962770SELDQp','1202KqLaGq','5256iGWTPf','9HscmkD','7584aAnFli','_injector','_workbook','getAllTableJson','55704cjcVBe','get','getPreprocessRanges','12wLyOmP'];_0x3800=function(){return _0x198c7a;};return _0x3800();}FWorkbook['extend'](FWorkbookRangePreprocessMixin);export{};
1
+ function _0x5537(_0x286f5c,_0x5427fd){_0x286f5c=_0x286f5c-0x80;var _0x2f51f6=_0x2f51();var _0x553770=_0x2f51f6[_0x286f5c];return _0x553770;}var _0x20b20a=_0x5537;(function(_0x21a8cc,_0x25117e){var _0x417ab8=_0x5537,_0x52511c=_0x21a8cc();while(!![]){try{var _0x3c40f3=-parseInt(_0x417ab8(0x84))/0x1+-parseInt(_0x417ab8(0x86))/0x2+-parseInt(_0x417ab8(0x88))/0x3+-parseInt(_0x417ab8(0x85))/0x4+-parseInt(_0x417ab8(0x8a))/0x5+-parseInt(_0x417ab8(0x8d))/0x6+-parseInt(_0x417ab8(0x87))/0x7*(-parseInt(_0x417ab8(0x81))/0x8);if(_0x3c40f3===_0x25117e)break;else _0x52511c['push'](_0x52511c['shift']());}catch(_0x41d794){_0x52511c['push'](_0x52511c['shift']());}}}(_0x2f51,0xe7883));import{RangePreprocessController}from'@univerjs-pro/range-preprocess';import{FWorkbook}from'@univerjs/sheets/facade';var FWorkbookRangePreprocessMixin=class extends FWorkbook{[_0x20b20a(0x8b)](_0x306c04){var _0x32f247=_0x20b20a;return this[_0x32f247(0x82)][_0x32f247(0x80)](RangePreprocessController)[_0x32f247(0x83)](this[_0x32f247(0x8c)],_0x306c04);}};FWorkbook[_0x20b20a(0x89)](FWorkbookRangePreprocessMixin);export{};function _0x2f51(){var _0x24a122=['getAllTableJson','565754IFmjbi','1070792zEqgpT','2820794vQUzpL','46752377AVlSWi','1487031RsBlIh','extend','9432810KymBUi','getPreprocessRanges','_workbook','6626808RxLHKr','get','8OLAjNa','_injector'];_0x2f51=function(){return _0x24a122;};return _0x2f51();}