@univerjs-pro/bases 1.0.0-alpha.3 → 1.0.0-alpha.4

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.
Files changed (90) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/commands/commands/set-base-name.command.d.ts +6 -0
  65. package/lib/types/facade/f-event.d.ts +0 -15
  66. package/lib/types/index.d.ts +2 -0
  67. package/lib/types/ot/json1-op-factory.d.ts +2 -0
  68. package/lib/types/services/base-formula.service.d.ts +2 -5
  69. package/lib/umd/facade.js +1 -1
  70. package/lib/umd/index.js +1 -1
  71. package/lib/umd/locale/ar-SA.js +1 -1
  72. package/lib/umd/locale/ca-ES.js +1 -1
  73. package/lib/umd/locale/de-DE.js +1 -1
  74. package/lib/umd/locale/en-US.js +1 -1
  75. package/lib/umd/locale/es-ES.js +1 -1
  76. package/lib/umd/locale/fa-IR.js +1 -1
  77. package/lib/umd/locale/fr-FR.js +1 -1
  78. package/lib/umd/locale/id-ID.js +1 -1
  79. package/lib/umd/locale/it-IT.js +1 -1
  80. package/lib/umd/locale/ja-JP.js +1 -1
  81. package/lib/umd/locale/ko-KR.js +1 -1
  82. package/lib/umd/locale/pl-PL.js +1 -1
  83. package/lib/umd/locale/pt-BR.js +1 -1
  84. package/lib/umd/locale/ru-RU.js +1 -1
  85. package/lib/umd/locale/sk-SK.js +1 -1
  86. package/lib/umd/locale/vi-VN.js +1 -1
  87. package/lib/umd/locale/zh-CN.js +1 -1
  88. package/lib/umd/locale/zh-HK.js +1 -1
  89. package/lib/umd/locale/zh-TW.js +1 -1
  90. package/package.json +6 -6
@@ -1 +1 @@
1
- function _0x1961(){const _0x5cd956=['字段標題不能為空','雙向關聯','創建時間','更新時間','84nLWHdG','1200735dCQgDP','2327SBaWFc','更新視圖設置','10cLnlrL','1073721SjqsXY','exports','複選框','輸入內容','日曆需要日期字段','創建人','字段類型無效','記錄\x20ID','19707RYdIiq','單元格值無效','11079KfKlfV','328WGOjsI','436610rKnGtZ','看板需要可分組字段','甘特視圖需要開始和結束日期字段','創建字段','2933sLWJwC','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','6hpnFWf','24fjcWbl','更新單元格','刪除記錄','12TpGLon'];_0x1961=function(){return _0x5cd956;};return _0x1961();}const _0x4643ed=_0x486d;(function(_0x95105b,_0x265e1a){const _0x249d5e=_0x486d,_0x3b8979=_0x95105b();while(!![]){try{const _0x201114=parseInt(_0x249d5e(0x10a))/0x1*(-parseInt(_0x249d5e(0xf4))/0x2)+-parseInt(_0x249d5e(0x10c))/0x3*(-parseInt(_0x249d5e(0xf5))/0x4)+parseInt(_0x249d5e(0x10e))/0x5*(parseInt(_0x249d5e(0xf8))/0x6)+-parseInt(_0x249d5e(0xf2))/0x7*(parseInt(_0x249d5e(0x10d))/0x8)+parseInt(_0x249d5e(0xfe))/0x9+parseInt(_0x249d5e(0x101))/0xa*(-parseInt(_0x249d5e(0x102))/0xb)+parseInt(_0x249d5e(0xfd))/0xc*(-parseInt(_0x249d5e(0xff))/0xd);if(_0x201114===_0x265e1a)break;else _0x3b8979['push'](_0x3b8979['shift']());}catch(_0x5dc9f0){_0x3b8979['push'](_0x3b8979['shift']());}}}(_0x1961,0x25dad));function _0x486d(_0xfdf4cc,_0x245c29){_0xfdf4cc=_0xfdf4cc-0xf0;const _0x1961cf=_0x1961();let _0x486d4a=_0x1961cf[_0xfdf4cc];return _0x486d4a;}const e={'bases':{'fieldType':{'text':'文本','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x4643ed(0x104),'link':'鏈接','formula':'公式','lookup':'查找','flow':'流程','button':'按鈕','numbering':'編號','phone':'電話號碼','email':'郵箱','location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','twoWayLink':_0x4643ed(0xfa),'recordId':_0x4643ed(0x109),'createdBy':_0x4643ed(0x107),'updatedBy':'修改人','createdAt':_0x4643ed(0xfb),'updatedAt':_0x4643ed(0xfc),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x4643ed(0x105),'linkPlaceholder':_0x4643ed(0xf3)},'viewType':{'grid':'表格','kanban':'看板','calendar':'日曆','gantt':'甘特','gallery':'畫廊'},'error':{'fieldNameRequired':_0x4643ed(0xf9),'invalidFieldType':_0x4643ed(0x108),'invalidCellValue':_0x4643ed(0x10b),'invalidKanbanGroupField':_0x4643ed(0x10f),'invalidCalendarDateField':_0x4643ed(0x106),'invalidGanttDateField':_0x4643ed(0xf0)},'command':{'updateCell':_0x4643ed(0xf6),'createField':_0x4643ed(0xf1),'deleteField':'刪除字段','createRecord':'創建記錄','deleteRecord':_0x4643ed(0xf7),'updateViewConfig':_0x4643ed(0x100)}}};module[_0x4643ed(0x103)]=e;
1
+ const _0x51b290=_0x1b6b;(function(_0x4e8448,_0x5f37c5){const _0x4d1e7d=_0x1b6b,_0x483ef1=_0x4e8448();while(!![]){try{const _0x5ec491=-parseInt(_0x4d1e7d(0xad))/0x1*(-parseInt(_0x4d1e7d(0xb5))/0x2)+parseInt(_0x4d1e7d(0xab))/0x3*(parseInt(_0x4d1e7d(0xa5))/0x4)+-parseInt(_0x4d1e7d(0xa1))/0x5+-parseInt(_0x4d1e7d(0xa3))/0x6+-parseInt(_0x4d1e7d(0xa4))/0x7*(-parseInt(_0x4d1e7d(0xb0))/0x8)+-parseInt(_0x4d1e7d(0xaf))/0x9+-parseInt(_0x4d1e7d(0xb7))/0xa;if(_0x5ec491===_0x5f37c5)break;else _0x483ef1['push'](_0x483ef1['shift']());}catch(_0x32a20e){_0x483ef1['push'](_0x483ef1['shift']());}}}(_0x35cc,0xc673a));function _0x1b6b(_0x4b083f,_0x261447){_0x4b083f=_0x4b083f-0x9c;const _0x35ccd5=_0x35cc();let _0x1b6b1b=_0x35ccd5[_0x4b083f];return _0x1b6b1b;}const e={'bases':{'fieldType':{'text':'文本','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x51b290(0xaa),'link':'鏈接','formula':'公式','lookup':'查找','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x51b290(0xa9),'email':'郵箱','location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','twoWayLink':_0x51b290(0xa6),'recordId':_0x51b290(0x9d),'createdBy':_0x51b290(0xb6),'updatedBy':'修改人','createdAt':_0x51b290(0xa7),'updatedAt':_0x51b290(0xa0),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x51b290(0xa2),'linkPlaceholder':_0x51b290(0x9e)},'viewType':{'grid':'表格','kanban':'看板','calendar':'日曆','gantt':'甘特','gallery':'畫廊'},'error':{'fieldNameRequired':_0x51b290(0xb8),'invalidFieldType':_0x51b290(0xb2),'invalidCellValue':'單元格值無效','invalidKanbanGroupField':_0x51b290(0xae),'invalidCalendarDateField':_0x51b290(0xac),'invalidGanttDateField':_0x51b290(0xa8)},'command':{'updateCell':'更新單元格','createField':'創建字段','deleteField':_0x51b290(0xb4),'createRecord':_0x51b290(0xb1),'deleteRecord':_0x51b290(0x9f),'updateViewConfig':_0x51b290(0x9c)}}};function _0x35cc(){const _0x3d6aa9=['輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','刪除記錄','更新時間','631505oNcLnh','輸入內容','4843008oKvgAU','14DesKHe','3650588OeWfiM','雙向關聯','創建時間','甘特視圖需要開始和結束日期字段','電話號碼','複選框','3dknleL','日曆需要日期字段','971vJWVJk','看板需要可分組字段','5811660XXYKXP','4406568AwnOvf','創建記錄','字段類型無效','exports','刪除字段','958RpguRd','創建人','873310ugOetz','字段標題不能為空','更新視圖設置','記錄\x20ID'];_0x35cc=function(){return _0x3d6aa9;};return _0x35cc();}module[_0x51b290(0xb3)]=e;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x4880b5=_0x1094;(function(_0x186581,_0x11b63e){const _0x26f172=_0x1094,_0x196bfe=_0x186581();while(!![]){try{const _0x53c2ac=-parseInt(_0x26f172(0x19d))/0x1*(-parseInt(_0x26f172(0x1d4))/0x2)+parseInt(_0x26f172(0x20d))/0x3*(parseInt(_0x26f172(0x16b))/0x4)+-parseInt(_0x26f172(0x209))/0x5+parseInt(_0x26f172(0x1b0))/0x6+parseInt(_0x26f172(0x1cc))/0x7*(-parseInt(_0x26f172(0x1e3))/0x8)+parseInt(_0x26f172(0x224))/0x9*(-parseInt(_0x26f172(0x22c))/0xa)+-parseInt(_0x26f172(0x1a3))/0xb;if(_0x53c2ac===_0x11b63e)break;else _0x196bfe['push'](_0x196bfe['shift']());}catch(_0x138742){_0x196bfe['push'](_0x196bfe['shift']());}}}(_0x31fe,0x1cb5c));import{BatchCreateBaseRecordsCommand as _0x206ff2,BatchDeleteBaseRecordsCommand as _0x4be44b,ChangeBaseFieldTypeCommand as _0x5d764d,CreateBaseFieldCommand as _0x18bff2,CreateBaseRecordCommand as _0x5f048d,CreateBaseTableCommand as _0x166dce,CreateBaseViewCommand as _0x173da2,DeleteBaseFieldCommand as _0x32860f,DeleteBaseRecordCommand as _0x4f0bad,DeleteBaseTableCommand as _0xa40344,DeleteBaseViewCommand as _0x3ac7a3,DuplicateBaseRecordCommand as _0x1c5ce2,IBaseProjectionService as _0x6f5dd1,MoveBaseFieldCommand as _0x232d67,MoveBaseViewCommand as _0x15da2b,RenameBaseTableCommand as _0x316742,RenameBaseViewCommand as _0x43365d,SetBaseRangeValuesCommand as _0x2a50af,SetBaseRecordValuesCommand as _0x49a6a6,SetBaseViewFieldOrderCommand as _0xa8fa44,SetBaseViewFieldVisibleCommand as _0x67783c,SetBaseViewFieldWidthCommand as _0x23747c,SetBaseViewFilterCommand as _0xca5e88,SetBaseViewGroupCommand as _0x5b59fd,SetBaseViewSortCommand as _0x4b8242,UpdateBaseCellCommand as _0x4fa3a3,UpdateBaseFieldCommand as _0xbdf655,UpdateBaseRecordOrderCommand as _0x167a7d,UpdateBaseViewConfigCommand as _0x184a07,copyBaseTableSnapshot as _0x4e4ee7,ensureBaseTableCellLayout as _0x5d5f51,getBaseCellValue as _0x5bb8a1,matchesBaseCondition as _0x10e272,searchBaseTable as _0x793a48}from'@univerjs-pro/bases';import{BaseFieldType as _0x45bfa4,BaseFilterConjunction as _0x94dabb,BaseFilterOperator as _0x1235cb,BaseSortDirection as _0x4870c5,BaseViewType as _0x105453,CanceledError as _0x36d201,ICommandService as _0x2ee341,IUniverInstanceService as _0x1f8459,Inject as _0x552905,Injector as _0x53fa63,Tools as _0x4e5b1f,UniverInstanceType as _0x20b885,createDefaultBaseTableSnapshot as _0x109479,generateRandomId as _0x304f14}from'@univerjs/core';import{FEnum as _0x17b569,FEventName as _0x24dfd4,FUniver as _0x25600f}from'@univerjs/core/facade';var H=class{constructor(_0x14a731,_0x1d438b,_0x57f155,_0xbb093d){const _0x36605c=_0x1094;this[_0x36605c(0x176)]=_0x14a731,this['_table']=_0x1d438b,this[_0x36605c(0x1a0)]=_0x57f155,this[_0x36605c(0x172)]=_0xbb093d;}[_0x4880b5(0x227)](){const _0xf52d06=_0x4880b5;return this[_0xf52d06(0x1a0)];}[_0x4880b5(0x162)](){return this['_getField']();}[_0x4880b5(0x208)](){const _0x31dc07=_0x4880b5;return this['_getField']()[_0x31dc07(0x183)];}['getType'](){const _0x5d6c9c=_0x4880b5;return this[_0x5d6c9c(0x1a5)]()[_0x5d6c9c(0x1ca)];}['getConfig'](){const _0x480563=_0x4880b5;return this['_getField']()[_0x480563(0x1f2)];}[_0x4880b5(0x180)](){const _0x2cfcd6=_0x4880b5;return this[_0x2cfcd6(0x1a5)]()[_0x2cfcd6(0x19c)];}['getDescription'](){const _0x552c5e=_0x4880b5;return this[_0x552c5e(0x1a5)]()[_0x552c5e(0x1d0)];}[_0x4880b5(0x215)](){const _0x5e7990=_0x4880b5;return!!this['_getField']()[_0x5e7990(0x182)];}[_0x4880b5(0x1f9)](_0x366faa){const _0x1db0ac=_0x4880b5;return this[_0x1db0ac(0x1f8)]({'name':_0x366faa});}['setConfig'](_0x4bec62){const _0x4faaad=_0x4880b5;return this[_0x4faaad(0x1f8)]({'config':_0x4bec62});}[_0x4880b5(0x1c8)](_0x7cbafd){return this['update']({'defaultValue':_0x7cbafd});}[_0x4880b5(0x1f8)](_0x2881bb){const _0x29ce0a=_0x4880b5;return this[_0x29ce0a(0x172)][_0x29ce0a(0x1e1)](_0x2ee341)[_0x29ce0a(0x219)](_0xbdf655['id'],{'unitId':this[_0x29ce0a(0x176)]['getId'](),'tableId':this[_0x29ce0a(0x231)][_0x29ce0a(0x227)](),'fieldId':this[_0x29ce0a(0x1a0)],'patch':_0x2881bb});}[_0x4880b5(0x1fa)](_0xbd1b0f,_0x4f615d={}){const _0x5d1fd6=_0x4880b5;return this[_0x5d1fd6(0x172)][_0x5d1fd6(0x1e1)](_0x2ee341)[_0x5d1fd6(0x219)](_0x5d764d['id'],{'unitId':this[_0x5d1fd6(0x176)][_0x5d1fd6(0x227)](),'tableId':this['_table'][_0x5d1fd6(0x227)](),'fieldId':this[_0x5d1fd6(0x1a0)],'input':{'type':_0xbd1b0f,'config':_0x4f615d}});}[_0x4880b5(0x186)](){const _0x1fc9b8=_0x4880b5;return this['_inject']['get'](_0x2ee341)[_0x1fc9b8(0x219)](_0x32860f['id'],{'unitId':this[_0x1fc9b8(0x176)][_0x1fc9b8(0x227)](),'tableId':this['_table']['getId'](),'fieldId':this['_fieldId']});}['move'](_0x3e2c14){const _0x2fb9a9=_0x4880b5;return this['_inject'][_0x2fb9a9(0x1e1)](_0x2ee341)[_0x2fb9a9(0x219)](_0x232d67['id'],{'unitId':this[_0x2fb9a9(0x176)]['getId'](),'tableId':this[_0x2fb9a9(0x231)][_0x2fb9a9(0x227)](),'fieldId':this[_0x2fb9a9(0x1a0)],'target':_0x3e2c14});}[_0x4880b5(0x1a5)](){const _0x5f5865=_0x4880b5;let _0x3fef57=this[_0x5f5865(0x231)]['getTable']()['fields'][this[_0x5f5865(0x1a0)]];if(!_0x3fef57)throw Error(_0x5f5865(0x1f1)+this[_0x5f5865(0x1a0)]+_0x5f5865(0x195));return _0x3fef57;}},U=class e{constructor(_0x4ee2aa,_0x3135ad,_0x20232f,_0x4a57cd){const _0x27ba17=_0x4880b5;this[_0x27ba17(0x176)]=_0x4ee2aa,this[_0x27ba17(0x231)]=_0x3135ad,this[_0x27ba17(0x165)]=_0x20232f,this[_0x27ba17(0x172)]=_0x4a57cd,this[_0x27ba17(0x171)]();}[_0x4880b5(0x20e)](){const _0x17e74b=_0x4880b5;return this['_base'][_0x17e74b(0x227)]();}['getTableId'](){const _0x3fe5d7=_0x4880b5;return this[_0x3fe5d7(0x231)][_0x3fe5d7(0x227)]();}['getRange'](){const _0x2e5b09=_0x4880b5;return{...this[_0x2e5b09(0x165)]};}['getRow'](){const _0x3541be=_0x4880b5;return this[_0x3541be(0x165)][_0x3541be(0x1c6)];}['getColumn'](){const _0x493cfc=_0x4880b5;return this[_0x493cfc(0x165)][_0x493cfc(0x1c5)];}[_0x4880b5(0x207)](){const _0x3decf2=_0x4880b5;return this[_0x3decf2(0x165)][_0x3decf2(0x16c)]-this[_0x3decf2(0x165)]['startRow']+0x1;}[_0x4880b5(0x1e4)](){const _0x788c95=_0x4880b5;return this[_0x788c95(0x165)][_0x788c95(0x1b6)]-this[_0x788c95(0x165)][_0x788c95(0x1c5)]+0x1;}[_0x4880b5(0x202)](){const _0x42dba8=_0x4880b5;let _0x3cee4b=this['_getTable'](),_0x324f83=[];for(let _0x154ce4=this['_range'][_0x42dba8(0x1c6)];_0x154ce4<=this[_0x42dba8(0x165)][_0x42dba8(0x16c)];_0x154ce4++){var _0x5beb21;let _0x493cc7=(_0x5beb21=_0x3cee4b[_0x42dba8(0x1d7)])==null?void 0x0:_0x5beb21[_0x154ce4],_0x357dbb=[];for(let _0x38ae24=this[_0x42dba8(0x165)][_0x42dba8(0x1c5)];_0x38ae24<=this[_0x42dba8(0x165)][_0x42dba8(0x1b6)];_0x38ae24++){var _0xd4d4f3;let _0x4a50f3=(_0xd4d4f3=_0x3cee4b[_0x42dba8(0x1b1)])==null?void 0x0:_0xd4d4f3[_0x38ae24];_0x357dbb[_0x42dba8(0x235)](_0x493cc7&&_0x4a50f3?_0x5bb8a1(_0x3cee4b,_0x493cc7,_0x4a50f3):null);}_0x324f83[_0x42dba8(0x235)](_0x357dbb);}return _0x324f83;}[_0x4880b5(0x221)](){const _0x2de631=_0x4880b5;var _0x485793,_0xbd7569;return(_0x485793=(_0xbd7569=this[_0x2de631(0x202)]()[0x0])==null?void 0x0:_0xbd7569[0x0])==null?null:_0x485793;}[_0x4880b5(0x237)](_0x26c524){const _0x37ccea=_0x4880b5;return this[_0x37ccea(0x1af)]([[_0x26c524]]);}[_0x4880b5(0x1af)](_0x388bde){const _0x130aba=_0x4880b5;let _0x5472a8=this[_0x130aba(0x207)](),_0x3a189b=this[_0x130aba(0x1e4)]();if(_0x388bde[_0x130aba(0x234)]>_0x5472a8||_0x388bde[_0x130aba(0x1aa)](_0x39dab6=>_0x39dab6['length']>_0x3a189b)){var _0x4bf9e1,_0xb250a0;throw Error(_0x130aba(0x1c9)+_0x388bde[_0x130aba(0x234)]+'x'+((_0x4bf9e1=(_0xb250a0=_0x388bde[0x0])==null?void 0x0:_0xb250a0['length'])==null?0x0:_0x4bf9e1)+_0x130aba(0x206)+_0x5472a8+'x'+_0x3a189b+'.');}let _0x41ca37=this[_0x130aba(0x172)][_0x130aba(0x1e1)](_0x2ee341),_0xf4e023=_0x388bde[_0x130aba(0x21c)]((_0x20b71f,_0x27eedd)=>_0x20b71f[_0x130aba(0x17c)]((_0x23073b,_0xaff211)=>({'row':this[_0x130aba(0x165)]['startRow']+_0x27eedd,'col':this['_range']['startColumn']+_0xaff211,'value':_0x23073b})));return _0x41ca37[_0x130aba(0x219)](_0x2a50af['id'],{'unitId':this[_0x130aba(0x176)]['getId'](),'tableId':this['_table'][_0x130aba(0x227)](),'patches':_0xf4e023});}[_0x4880b5(0x1eb)](){const _0x470dfd=_0x4880b5;return this[_0x470dfd(0x1af)](Array[_0x470dfd(0x1ba)]({'length':this[_0x470dfd(0x207)]()},()=>Array['from']({'length':this[_0x470dfd(0x1e4)]()},()=>null)));}[_0x4880b5(0x223)](_0x12e5c1,_0x359826,_0x32d6fe=this[_0x4880b5(0x207)](),_0x7abdd9=this['getNumColumns']()){const _0x3a4ffe=_0x4880b5;return this[_0x3a4ffe(0x172)]['createInstance'](e,this[_0x3a4ffe(0x176)],this['_table'],{'startRow':this[_0x3a4ffe(0x165)][_0x3a4ffe(0x1c6)]+_0x12e5c1,'startColumn':this[_0x3a4ffe(0x165)]['startColumn']+_0x359826,'endRow':this[_0x3a4ffe(0x165)]['startRow']+_0x12e5c1+_0x32d6fe-0x1,'endColumn':this['_range'][_0x3a4ffe(0x1c5)]+_0x359826+_0x7abdd9-0x1},this['_inject']);}[_0x4880b5(0x1f0)](){const _0xd810f9=_0x4880b5;let _0x3be385=this[_0xd810f9(0x231)][_0xd810f9(0x1ae)]();if(!_0x3be385)throw Error(_0xd810f9(0x1a9));return _0x5d5f51(_0x3be385);}[_0x4880b5(0x171)](){const _0x2b6dca=_0x4880b5;var _0x5245e1,_0x390225;let _0x417f03=this[_0x2b6dca(0x1f0)](),_0x27a190=(_0x5245e1=(_0x390225=_0x417f03[_0x2b6dca(0x178)])==null?void 0x0:_0x390225[_0x2b6dca(0x234)])==null?0x0:_0x5245e1,_0x1e8f51=_0x417f03[_0x2b6dca(0x225)]['length'];if(this[_0x2b6dca(0x165)]['startRow']<0x0||this['_range'][_0x2b6dca(0x1c5)]<0x0||this[_0x2b6dca(0x165)][_0x2b6dca(0x16c)]<this[_0x2b6dca(0x165)][_0x2b6dca(0x1c6)]||this['_range']['endColumn']<this['_range']['startColumn']||this[_0x2b6dca(0x165)]['endRow']>=Math[_0x2b6dca(0x15e)](_0x27a190,0x1)||this[_0x2b6dca(0x165)][_0x2b6dca(0x1b6)]>=Math['max'](_0x1e8f51,0x1))throw Error(_0x2b6dca(0x222)+_0x27a190+',\x20max\x20columns:\x20'+_0x1e8f51+_0x2b6dca(0x188)+JSON[_0x2b6dca(0x1ea)](this[_0x2b6dca(0x165)])+'.');}};let W=function(_0x1a9697){const _0x331d5c=_0x4880b5;return _0x1a9697['Id']='id',_0x1a9697[_0x331d5c(0x210)]=_0x331d5c(0x183),_0x1a9697['Auto']=_0x331d5c(0x22f),_0x1a9697;}({});function G(_0x10e170,_0x1f7e8b,_0x980ca5='id'){const _0x4f4dd7=_0x4880b5;if(!_0x1f7e8b)return{};let _0x3ef814={};return Object[_0x4f4dd7(0x236)](_0x1f7e8b)[_0x4f4dd7(0x192)](([_0x43d9e8,_0x51e93f])=>{_0x3ef814[K(_0x10e170,_0x43d9e8,_0x980ca5)]=_0x51e93f;}),_0x3ef814;}function K(_0xffd8a0,_0x2eb330,_0x29b882){const _0x14f149=_0x4880b5;if(_0x29b882==='id'||_0x29b882===_0x14f149(0x22f)&&_0xffd8a0[_0x14f149(0x1f3)][_0x2eb330])return _0x2eb330;let _0x9ee421=Object[_0x14f149(0x1ec)](_0xffd8a0[_0x14f149(0x1f3)])[_0x14f149(0x1e2)](_0x446a4b=>_0x446a4b[_0x14f149(0x183)]===_0x2eb330);if(_0x9ee421['length']===0x1)return _0x9ee421[0x0]['id'];throw _0x9ee421[_0x14f149(0x234)]>0x1?Error('Duplicate\x20Base\x20field\x20name:\x20'+_0x2eb330):Error(_0x14f149(0x1d9)+_0x2eb330);}var q=class e{constructor(_0x136511,_0x34d10a,_0x315ca2,_0x47ad22){const _0x481431=_0x4880b5;this[_0x481431(0x176)]=_0x136511,this[_0x481431(0x231)]=_0x34d10a,this[_0x481431(0x1d1)]=_0x315ca2,this['_inject']=_0x47ad22;}[_0x4880b5(0x227)](){const _0x115fb2=_0x4880b5;return this[_0x115fb2(0x1d1)];}[_0x4880b5(0x1d8)](){const _0x55d637=_0x4880b5;return this[_0x55d637(0x1b8)]();}['getValue'](_0xb1857f){const _0x5762b4=_0x4880b5;var _0x2a27ab;return(_0x2a27ab=this[_0x5762b4(0x1b8)]()[_0x5762b4(0x1ec)][_0xb1857f])==null?null:_0x2a27ab;}[_0x4880b5(0x202)](){const _0x369e45=_0x4880b5;return{...this[_0x369e45(0x1b8)]()['values']};}[_0x4880b5(0x237)](_0x326652,_0x3a4d35){const _0x4f7eeb=_0x4880b5;return this[_0x4f7eeb(0x172)][_0x4f7eeb(0x1e1)](_0x2ee341)[_0x4f7eeb(0x219)](_0x4fa3a3['id'],{'unitId':this[_0x4f7eeb(0x176)][_0x4f7eeb(0x227)](),'tableId':this[_0x4f7eeb(0x231)][_0x4f7eeb(0x227)](),'recordId':this[_0x4f7eeb(0x1d1)],'fieldId':_0x326652,'value':_0x3a4d35});}[_0x4880b5(0x1af)](_0x57cf74,_0xeacc45='id'){const _0x3c692f=_0x4880b5;let _0x3e343e=this[_0x3c692f(0x172)][_0x3c692f(0x1e1)](_0x2ee341),_0x4b42d6=this[_0x3c692f(0x231)][_0x3c692f(0x1ae)](),_0x5300f6=[{'recordId':this['_recordId'],'values':G(_0x4b42d6,_0x57cf74,_0xeacc45)}];return _0x3e343e[_0x3c692f(0x219)](_0x49a6a6['id'],{'unitId':this[_0x3c692f(0x176)]['getId'](),'tableId':this[_0x3c692f(0x231)][_0x3c692f(0x227)](),'patches':_0x5300f6});}[_0x4880b5(0x186)](){const _0x3252f4=_0x4880b5;return this[_0x3252f4(0x172)]['get'](_0x2ee341)[_0x3252f4(0x219)](_0x4f0bad['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table']['getId'](),'recordId':this[_0x3252f4(0x1d1)]});}['duplicate'](_0xce7bd0){const _0x46acc7=_0x4880b5;let _0x434944=this[_0x46acc7(0x172)]['get'](_0x2ee341),_0x1a8e3c={...this[_0x46acc7(0x1b8)](),..._0xce7bd0,'id':_0x304f14(0x6)};_0xce7bd0!=null&&_0xce7bd0['values']&&(_0x1a8e3c[_0x46acc7(0x1ec)]={..._0x1a8e3c[_0x46acc7(0x1ec)],..._0xce7bd0['values']});let _0x568d0d=Date[_0x46acc7(0x1fb)]();if(_0x1a8e3c['orderKey']||(_0x1a8e3c[_0x46acc7(0x1ad)]=''+_0x568d0d),_0x1a8e3c[_0x46acc7(0x232)]||(_0x1a8e3c[_0x46acc7(0x232)]=_0x568d0d),_0x1a8e3c[_0x46acc7(0x23c)]||(_0x1a8e3c[_0x46acc7(0x23c)]=_0x568d0d),!_0x434944[_0x46acc7(0x219)](_0x1c5ce2['id'],{'unitId':this['_base'][_0x46acc7(0x227)](),'tableId':this[_0x46acc7(0x231)]['getId'](),'sourceRecordId':this[_0x46acc7(0x1d1)],'record':_0x1a8e3c}))throw Error(_0x46acc7(0x1f5)+this[_0x46acc7(0x1d1)]+'\x22.');return this['_inject'][_0x46acc7(0x22d)](e,this[_0x46acc7(0x176)],this['_table'],_0x1a8e3c['id'],this[_0x46acc7(0x172)]);}[_0x4880b5(0x15a)](_0x29a8da){const _0x4424a9=_0x4880b5;return this[_0x4424a9(0x172)][_0x4424a9(0x1e1)](_0x2ee341)['syncExecuteCommand'](_0x167a7d['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x4424a9(0x231)][_0x4424a9(0x227)](),'recordId':this[_0x4424a9(0x1d1)],'orderKey':_0x29a8da});}[_0x4880b5(0x1b8)](){const _0x52e6e3=_0x4880b5;let _0x3e6ff8=this['_table'][_0x52e6e3(0x1ae)]()[_0x52e6e3(0x1b7)][this['_recordId']];if(!_0x3e6ff8)throw Error(_0x52e6e3(0x1cd)+this['_recordId']+_0x52e6e3(0x195));return _0x3e6ff8;}},J=class{constructor(_0x4267e6,_0x2b5431,_0x3195fe,_0x332d9d){const _0x2fb57c=_0x4880b5;this['_base']=_0x4267e6,this['_table']=_0x2b5431,this[_0x2fb57c(0x200)]=_0x3195fe,this['_injector']=_0x332d9d;}[_0x4880b5(0x227)](){const _0x83c315=_0x4880b5;return this[_0x83c315(0x200)];}[_0x4880b5(0x229)](){return this['_getView']();}['getName'](){const _0x1c6a09=_0x4880b5;return this[_0x1c6a09(0x1e7)]()[_0x1c6a09(0x183)];}[_0x4880b5(0x214)](){const _0x2999da=_0x4880b5;return this[_0x2999da(0x1e7)]()[_0x2999da(0x1ca)];}['setName'](_0x2ec9fd){const _0xa7a450=_0x4880b5;return this[_0xa7a450(0x1de)][_0xa7a450(0x1e1)](_0x2ee341)['syncExecuteCommand'](_0x43365d['id'],{'unitId':this[_0xa7a450(0x176)][_0xa7a450(0x227)](),'tableId':this[_0xa7a450(0x231)][_0xa7a450(0x227)](),'viewId':this[_0xa7a450(0x200)],'name':_0x2ec9fd});}[_0x4880b5(0x23d)](){const _0x5dfa65=_0x4880b5;let _0x170358=this['getType'](),_0x3a53aa=this[_0x5dfa65(0x1e7)]()[_0x5dfa65(0x1f2)];switch(_0x170358){case _0x105453[_0x5dfa65(0x18c)]:return _0x3a53aa;case _0x105453[_0x5dfa65(0x179)]:return _0x3a53aa;case _0x105453[_0x5dfa65(0x1f4)]:return _0x3a53aa;case _0x105453['Gantt']:return _0x3a53aa;case _0x105453['Gallery']:return _0x3a53aa;default:return _0x3a53aa;}}['updateConfig'](_0x3287cf){const _0xc2e8b=_0x4880b5;return this['_injector'][_0xc2e8b(0x1e1)](_0x2ee341)[_0xc2e8b(0x219)](_0x184a07['id'],{'unitId':this[_0xc2e8b(0x176)]['getId'](),'tableId':this[_0xc2e8b(0x231)]['getId'](),'viewId':this['_viewId'],'patch':_0x3287cf});}[_0x4880b5(0x1dd)](){const _0xcd94a4=_0x4880b5;var _0x538fe1;return(_0x538fe1=this[_0xcd94a4(0x1e7)]()['filter'])==null?null:_0x538fe1;}[_0x4880b5(0x1bb)](_0x13b4d8){const _0x40dd5c=_0x4880b5;return this[_0x40dd5c(0x1de)][_0x40dd5c(0x1e1)](_0x2ee341)[_0x40dd5c(0x219)](_0xca5e88['id'],{'unitId':this[_0x40dd5c(0x176)][_0x40dd5c(0x227)](),'tableId':this[_0x40dd5c(0x231)]['getId'](),'viewId':this['_viewId'],'filter':_0x13b4d8});}[_0x4880b5(0x216)](){const _0x1c64f8=_0x4880b5;var _0x2a7822;return(_0x2a7822=this[_0x1c64f8(0x1e7)]()[_0x1c64f8(0x1bc)])==null?[]:_0x2a7822;}[_0x4880b5(0x19e)](_0x23e4aa){const _0x23dcee=_0x4880b5;return this[_0x23dcee(0x1de)][_0x23dcee(0x1e1)](_0x2ee341)[_0x23dcee(0x219)](_0x4b8242['id'],{'unitId':this[_0x23dcee(0x176)]['getId'](),'tableId':this[_0x23dcee(0x231)][_0x23dcee(0x227)](),'viewId':this[_0x23dcee(0x200)],'sort':_0x23e4aa});}[_0x4880b5(0x1ee)](){const _0x5dc8be=_0x4880b5;var _0x14bb4a;return(_0x14bb4a=this[_0x5dc8be(0x1e7)]()[_0x5dc8be(0x233)])==null?[]:_0x14bb4a;}[_0x4880b5(0x1f7)](_0x4af4c9){const _0x3d2f60=_0x4880b5;return this[_0x3d2f60(0x1de)][_0x3d2f60(0x1e1)](_0x2ee341)[_0x3d2f60(0x219)](_0x5b59fd['id'],{'unitId':this['_base'][_0x3d2f60(0x227)](),'tableId':this[_0x3d2f60(0x231)][_0x3d2f60(0x227)](),'viewId':this[_0x3d2f60(0x200)],'group':_0x4af4c9});}[_0x4880b5(0x16e)](_0xa82e5c){const _0x55f2e4=_0x4880b5;var _0x44b750,_0x2cc1f1;return(_0x44b750=(_0x2cc1f1=this[_0x55f2e4(0x1e7)]()[_0x55f2e4(0x163)])==null?void 0x0:_0x2cc1f1[_0xa82e5c])==null?{}:_0x44b750;}[_0x4880b5(0x17a)](){const _0x5c732e=_0x4880b5;var _0x2a88e9;let _0x28c5d5=this[_0x5c732e(0x231)][_0x5c732e(0x1ae)](),_0x4e6185=this[_0x5c732e(0x1e7)]();return((_0x2a88e9=_0x4e6185[_0x5c732e(0x225)])==null?_0x28c5d5[_0x5c732e(0x225)]:_0x2a88e9)[_0x5c732e(0x1e2)](_0x5cf600=>{const _0x274b23=_0x5c732e;var _0x1e784a;return _0x28c5d5[_0x274b23(0x1f3)][_0x5cf600]&&!(!((_0x1e784a=_0x4e6185['fieldSettings'])==null||(_0x1e784a=_0x1e784a[_0x5cf600])==null)&&_0x1e784a[_0x274b23(0x15d)]);})['map'](_0x34bfff=>this[_0x5c732e(0x1de)][_0x5c732e(0x22d)](H,this[_0x5c732e(0x176)],this[_0x5c732e(0x231)],_0x34bfff,this[_0x5c732e(0x1de)]));}[_0x4880b5(0x16a)](_0x377007,_0x4335bd){const _0x11513b=_0x4880b5;return this['_injector'][_0x11513b(0x1e1)](_0x2ee341)[_0x11513b(0x219)](_0x67783c['id'],{'unitId':this['_base'][_0x11513b(0x227)](),'tableId':this[_0x11513b(0x231)][_0x11513b(0x227)](),'viewId':this[_0x11513b(0x200)],'fieldId':_0x377007,'visible':_0x4335bd});}[_0x4880b5(0x1a6)](_0x49ceaf,_0x289710){const _0x3e2bd3=_0x4880b5;return this[_0x3e2bd3(0x1de)][_0x3e2bd3(0x1e1)](_0x2ee341)[_0x3e2bd3(0x219)](_0x23747c['id'],{'unitId':this[_0x3e2bd3(0x176)]['getId'](),'tableId':this[_0x3e2bd3(0x231)][_0x3e2bd3(0x227)](),'viewId':this[_0x3e2bd3(0x200)],'fieldId':_0x49ceaf,'width':_0x289710});}[_0x4880b5(0x1b5)](_0x1b7e94,_0x52505e){const _0x319a87=_0x4880b5;return this['_injector']['get'](_0x2ee341)[_0x319a87(0x219)](_0xa8fa44['id'],{'unitId':this[_0x319a87(0x176)]['getId'](),'tableId':this['_table'][_0x319a87(0x227)](),'viewId':this[_0x319a87(0x200)],'fieldId':_0x1b7e94,'target':_0x52505e});}['move'](_0x303e9b){const _0x224f54=_0x4880b5;return this[_0x224f54(0x1de)]['get'](_0x2ee341)[_0x224f54(0x219)](_0x15da2b['id'],{'unitId':this[_0x224f54(0x176)][_0x224f54(0x227)](),'tableId':this[_0x224f54(0x231)][_0x224f54(0x227)](),'viewId':this['_viewId'],'target':_0x303e9b});}[_0x4880b5(0x186)](){const _0x295daf=_0x4880b5;return this['_injector'][_0x295daf(0x1e1)](_0x2ee341)[_0x295daf(0x219)](_0x3ac7a3['id'],{'unitId':this[_0x295daf(0x176)][_0x295daf(0x227)](),'tableId':this['_table'][_0x295daf(0x227)](),'viewId':this[_0x295daf(0x200)]});}[_0x4880b5(0x21b)](){const _0x4389fa=_0x4880b5;return this[_0x4389fa(0x1de)]['get'](_0x6f5dd1)[_0x4389fa(0x21b)](this[_0x4389fa(0x176)][_0x4389fa(0x21d)]()[_0x4389fa(0x157)](),this[_0x4389fa(0x231)][_0x4389fa(0x227)](),this[_0x4389fa(0x200)]);}[_0x4880b5(0x1e7)](){const _0x146277=_0x4880b5;let _0xf4515a=this['_table'][_0x146277(0x1ae)]()[_0x146277(0x1b4)][this[_0x146277(0x200)]];if(!_0xf4515a)throw Error(_0x146277(0x239)+this[_0x146277(0x200)]+_0x146277(0x195));return _0xf4515a;}},Y=class{constructor(_0x370e3b,_0x24f3a4,_0x553d99){const _0x356f2b=_0x4880b5;this[_0x356f2b(0x176)]=_0x370e3b,this['_tableId']=_0x24f3a4,this[_0x356f2b(0x1de)]=_0x553d99;}[_0x4880b5(0x21d)](){const _0x4aa67f=_0x4880b5;return this[_0x4aa67f(0x176)][_0x4aa67f(0x21d)]();}['getTable'](){const _0x5e35df=_0x4880b5;return this[_0x5e35df(0x1f0)]();}[_0x4880b5(0x227)](){const _0x44b558=_0x4880b5;return this[_0x44b558(0x18b)];}[_0x4880b5(0x208)](){const _0x5ef0ff=_0x4880b5;return this[_0x5ef0ff(0x1f0)]()['name'];}[_0x4880b5(0x1f9)](_0xb5c6fa){const _0x238f3e=_0x4880b5;return this[_0x238f3e(0x1de)][_0x238f3e(0x1e1)](_0x2ee341)[_0x238f3e(0x219)](_0x316742['id'],{'unitId':this[_0x238f3e(0x176)]['getId'](),'tableId':this[_0x238f3e(0x18b)],'name':_0xb5c6fa});}['search'](_0x3381cd,_0x390fdb){const _0x4413fc=_0x4880b5;var _0x18316a;let _0x377105=this[_0x4413fc(0x1de)][_0x4413fc(0x1e1)](_0x6f5dd1),_0x420391=this[_0x4413fc(0x176)][_0x4413fc(0x21d)]()[_0x4413fc(0x157)](),_0x499f4f=this[_0x4413fc(0x1f0)]();if(_0x390fdb){var _0x12fa31;let _0x19ed38=_0x377105[_0x4413fc(0x21b)](_0x420391,this[_0x4413fc(0x18b)],_0x390fdb),_0x19bd1d=_0x499f4f[_0x4413fc(0x1b4)][_0x390fdb],_0x549914=(_0x12fa31=_0x3381cd[_0x4413fc(0x1d5)])==null?he(_0x499f4f,_0x19bd1d,_0x19ed38):_0x12fa31,_0x5096b9='rows'in _0x19ed38&&Array[_0x4413fc(0x175)](_0x19ed38[_0x4413fc(0x158)])?_0x19ed38[_0x4413fc(0x158)]:[];return _0x793a48({..._0x3381cd,'table':_0x499f4f,'fieldIds':_0x549914,'rows':_0x5096b9});}let _0xedc8b8=(_0x499f4f[_0x4413fc(0x178)]?_0x499f4f['recordOrder'][_0x4413fc(0x17c)](_0x124dbb=>_0x499f4f[_0x4413fc(0x1b7)][_0x124dbb]):Object[_0x4413fc(0x1ec)](_0x499f4f[_0x4413fc(0x1b7)])[_0x4413fc(0x1bc)]((_0x10f4b8,_0x28f2ea)=>_0x10f4b8['orderKey'][_0x4413fc(0x1c1)](_0x28f2ea[_0x4413fc(0x1ad)])))['filter'](_0x6e4f4a=>_0x6e4f4a)[_0x4413fc(0x17c)](_0x938d45=>({'recordId':_0x938d45['id'],'values':_0x938d45[_0x4413fc(0x1ec)]})),_0x2cc0f6=(_0x18316a=_0x3381cd[_0x4413fc(0x1d5)])==null?_0x499f4f['fieldOrder']['filter'](_0x3a18a5=>_0x499f4f[_0x4413fc(0x1f3)][_0x3a18a5]):_0x18316a;return _0x793a48({..._0x3381cd,'table':_0x499f4f,'fieldIds':_0x2cc0f6,'rows':_0xedc8b8});}[_0x4880b5(0x1a2)](){const _0x255f2a=_0x4880b5;return this[_0x255f2a(0x1f0)]()[_0x255f2a(0x1db)];}['getFields'](){const _0x3b4bbf=_0x4880b5;let _0x5abfe4=this[_0x3b4bbf(0x1f0)]();return _0x5abfe4[_0x3b4bbf(0x225)][_0x3b4bbf(0x17c)](_0x2a62f9=>_0x5abfe4['fields'][_0x2a62f9])[_0x3b4bbf(0x1e2)](_0x2e3b7c=>_0x2e3b7c)[_0x3b4bbf(0x17c)](_0x3f9fe1=>this[_0x3b4bbf(0x1de)][_0x3b4bbf(0x22d)](H,this[_0x3b4bbf(0x176)],this,_0x3f9fe1['id'],this[_0x3b4bbf(0x1de)]));}[_0x4880b5(0x17b)](_0x4eb8c7){const _0x114570=_0x4880b5;let _0x224f65=this[_0x114570(0x1f0)]()[_0x114570(0x1f3)][_0x4eb8c7];return _0x224f65?this['_injector'][_0x114570(0x22d)](H,this['_base'],this,_0x224f65['id'],this[_0x114570(0x1de)]):null;}[_0x4880b5(0x1bf)](_0x27caa7){const _0x51928d=_0x4880b5;let _0xa83521=this[_0x51928d(0x1f0)]()[_0x51928d(0x1f3)],_0x154c2d=Object[_0x51928d(0x1ec)](_0xa83521)[_0x51928d(0x1c3)](_0x47182e=>_0x47182e['name']===_0x27caa7);return _0x154c2d?this['_injector'][_0x51928d(0x22d)](H,this[_0x51928d(0x176)],this,_0x154c2d['id'],this[_0x51928d(0x1de)]):null;}[_0x4880b5(0x1fd)](){const _0x5166ec=_0x4880b5;let _0x4efccd=this[_0x5166ec(0x1f0)]()[_0x5166ec(0x1db)];return this['_injector'][_0x5166ec(0x22d)](H,this[_0x5166ec(0x176)],this,_0x4efccd,this[_0x5166ec(0x1de)]);}[_0x4880b5(0x167)](_0x44c395,_0x5a71cc,_0x33fad0){const _0x389013=_0x4880b5;var _0x503124;let _0x8e6881=this[_0x389013(0x1de)][_0x389013(0x1e1)](_0x2ee341),_0x1cd0f6=(_0x503124=_0x33fad0==null?void 0x0:_0x33fad0[_0x389013(0x1e5)])==null?{}:_0x503124;if(_0x1cd0f6['id']=_0x304f14(0x6),_0x1cd0f6[_0x389013(0x183)]=_0x44c395,_0x1cd0f6[_0x389013(0x1ca)]=_0x5a71cc,!_0x1cd0f6[_0x389013(0x1ca)])throw Error('Field\x20type\x20is\x20required');if(_0x1cd0f6[_0x389013(0x1f2)]||(_0x1cd0f6[_0x389013(0x1f2)]={}),!_0x8e6881[_0x389013(0x219)](_0x18bff2['id'],{'unitId':this[_0x389013(0x176)][_0x389013(0x227)](),'tableId':this[_0x389013(0x18b)],'field':_0x1cd0f6,'index':_0x33fad0==null?void 0x0:_0x33fad0[_0x389013(0x15b)]}))throw Error(_0x389013(0x16d)+_0x44c395+'\x22');return this['_injector'][_0x389013(0x22d)](H,this['_base'],this,_0x1cd0f6['id'],this[_0x389013(0x1de)]);}[_0x4880b5(0x190)](){const _0x6c57ff=_0x4880b5;return this['_resolveRecordIds']()['map'](_0x2c096d=>this[_0x6c57ff(0x1de)][_0x6c57ff(0x22d)](q,this[_0x6c57ff(0x176)],this,_0x2c096d,this[_0x6c57ff(0x1de)]));}[_0x4880b5(0x199)](_0x3128ff){const _0x169e6e=_0x4880b5;return this[_0x169e6e(0x1f0)]()[_0x169e6e(0x1b7)][_0x3128ff]?this[_0x169e6e(0x1de)][_0x169e6e(0x22d)](q,this[_0x169e6e(0x176)],this,_0x3128ff,this[_0x169e6e(0x1de)]):null;}[_0x4880b5(0x1cf)](_0x37d4fe={}){const _0x12b563=_0x4880b5;var _0x44ed7b;let _0x26b4db=this[_0x12b563(0x1f0)](),_0x3a8002=this[_0x12b563(0x23a)](_0x37d4fe),_0x5384d0=Math[_0x12b563(0x15e)](0x0,(_0x44ed7b=_0x37d4fe[_0x12b563(0x223)])==null?0x0:_0x44ed7b),_0x6044ea=_0x37d4fe[_0x12b563(0x173)]==null?null:Math[_0x12b563(0x15e)](0x0,_0x37d4fe['limit']),_0x2b458c=ue(_0x3a8002[_0x12b563(0x17c)](_0x5a1409=>_0x26b4db[_0x12b563(0x1b7)][_0x5a1409])[_0x12b563(0x1e2)](_0x44ddf8=>fe(_0x44ddf8,_0x26b4db,_0x37d4fe[_0x12b563(0x1e2)])),_0x26b4db,_0x37d4fe[_0x12b563(0x1bc)]);return{'records':le(_0x2b458c,_0x37d4fe)[_0x12b563(0x17c)](_0x52a31b=>this[_0x12b563(0x1de)]['createInstance'](q,this[_0x12b563(0x176)],this,_0x52a31b['id'],this[_0x12b563(0x1de)])),'total':_0x2b458c[_0x12b563(0x234)],'offset':_0x5384d0,'limit':_0x6044ea,'hasMore':_0x6044ea!=null&&_0x5384d0+_0x6044ea<_0x2b458c['length']};}[_0x4880b5(0x17d)](_0xe1272,_0x5804ce='id',_0x545701){const _0x12a720=_0x4880b5;let _0x5b14de=this[_0x12a720(0x1de)]['get'](_0x2ee341),_0x1d530a=this[_0x12a720(0x1f0)](),_0x37e261=_0x545701==null?{}:_0x545701;_0x37e261['id']=_0x304f14(0x6),_0x37e261[_0x12a720(0x1ec)]=G(_0x1d530a,_0xe1272,_0x5804ce);let _0x176abd=Date[_0x12a720(0x1fb)]();if(_0x37e261[_0x12a720(0x1ad)]||(_0x37e261[_0x12a720(0x1ad)]=''+_0x176abd),_0x37e261[_0x12a720(0x232)]||(_0x37e261['createdAt']=_0x176abd),_0x37e261[_0x12a720(0x23c)]||(_0x37e261[_0x12a720(0x23c)]=_0x176abd),!_0x5b14de[_0x12a720(0x219)](_0x5f048d['id'],{'unitId':this['_base'][_0x12a720(0x227)](),'tableId':this[_0x12a720(0x18b)],'record':_0x37e261}))throw Error('Failed\x20to\x20add\x20record\x20with\x20id\x20\x22'+_0x37e261['id']+'\x22');return this[_0x12a720(0x1de)][_0x12a720(0x22d)](q,this[_0x12a720(0x176)],this,_0x37e261['id'],this['_injector']);}[_0x4880b5(0x181)](_0x1fa416){const _0x26a11a=_0x4880b5;if(!_0x1fa416[_0x26a11a(0x234)])return[];let _0x2d43f5=this[_0x26a11a(0x1de)]['get'](_0x2ee341),_0x5f9da8=this[_0x26a11a(0x1f0)](),_0x3777ea=Date[_0x26a11a(0x1fb)](),_0x34789a=_0x1fa416[_0x26a11a(0x17c)]((_0x2b56cc,_0x1510f4)=>{const _0x46cba8=_0x26a11a;var _0x20bd0f,_0x2188d0;let _0x136c69=(_0x20bd0f=_0x2b56cc[_0x46cba8(0x21e)])==null?{}:_0x20bd0f;return _0x136c69['id']=_0x304f14(0x6),_0x136c69[_0x46cba8(0x1ec)]=G(_0x5f9da8,_0x2b56cc[_0x46cba8(0x1ec)],(_0x2188d0=_0x2b56cc[_0x46cba8(0x20a)])==null?'id':_0x2188d0),_0x136c69[_0x46cba8(0x1ad)]||(_0x136c69[_0x46cba8(0x1ad)]=''+(_0x3777ea+_0x1510f4)),_0x136c69[_0x46cba8(0x232)]||(_0x136c69[_0x46cba8(0x232)]=_0x3777ea),_0x136c69['updatedAt']||(_0x136c69[_0x46cba8(0x23c)]=_0x3777ea),_0x136c69;});if(!_0x2d43f5[_0x26a11a(0x219)](_0x206ff2['id'],{'unitId':this[_0x26a11a(0x176)][_0x26a11a(0x227)](),'tableId':this['_tableId'],'records':_0x34789a}))throw Error(_0x26a11a(0x1ce));return _0x34789a[_0x26a11a(0x17c)](_0x521d45=>this[_0x26a11a(0x1de)]['createInstance'](q,this[_0x26a11a(0x176)],this,_0x521d45['id'],this[_0x26a11a(0x1de)]));}[_0x4880b5(0x1b3)](_0x30a1b8){const _0x318f61=_0x4880b5;return _0x30a1b8[_0x318f61(0x234)]?this[_0x318f61(0x1de)]['get'](_0x2ee341)[_0x318f61(0x219)](_0x4be44b['id'],{'unitId':this[_0x318f61(0x176)]['getId'](),'tableId':this[_0x318f61(0x18b)],'recordIds':_0x30a1b8}):!0x0;}[_0x4880b5(0x17f)](_0x6f567f,_0x115a9b,_0x47cfd9=0x1,_0x518420=0x1){const _0x31ed76=_0x4880b5;return this[_0x31ed76(0x1de)][_0x31ed76(0x22d)](U,this[_0x31ed76(0x176)],this,{'startRow':_0x6f567f,'endRow':_0x6f567f+_0x47cfd9-0x1,'startColumn':_0x115a9b,'endColumn':_0x115a9b+_0x518420-0x1},this[_0x31ed76(0x1de)]);}[_0x4880b5(0x213)](){const _0x1475cd=_0x4880b5;var _0x42832e,_0xd9e947;let _0x87baca=_0x5d5f51(this['_getTable']()),_0x222876=(_0x42832e=(_0xd9e947=_0x87baca[_0x1475cd(0x178)])==null?void 0x0:_0xd9e947['length'])==null?0x0:_0x42832e,_0x247fba=_0x87baca[_0x1475cd(0x225)]['length'];return this[_0x1475cd(0x17f)](0x0,0x0,Math['max'](_0x222876,0x1),Math[_0x1475cd(0x15e)](_0x247fba,0x1));}[_0x4880b5(0x160)](){const _0x46f4c6=_0x4880b5;let _0x2060fc=this[_0x46f4c6(0x1f0)]();return _0x2060fc[_0x46f4c6(0x1c2)]['filter'](_0x223d99=>_0x2060fc[_0x46f4c6(0x1b4)][_0x223d99])['map'](_0xef7859=>this[_0x46f4c6(0x1de)][_0x46f4c6(0x22d)](J,this[_0x46f4c6(0x176)],this,_0xef7859,this['_injector']));}[_0x4880b5(0x1bd)](_0x3acbb6){const _0x65718b=_0x4880b5;return this[_0x65718b(0x1f0)]()[_0x65718b(0x1b4)][_0x3acbb6]?this[_0x65718b(0x1de)]['createInstance'](J,this[_0x65718b(0x176)],this,_0x3acbb6,this[_0x65718b(0x1de)]):null;}[_0x4880b5(0x170)](_0x34edb1){const _0x3fdba6=_0x4880b5;let _0x4168c9=this[_0x3fdba6(0x1f0)](),_0x1e35f8=Object[_0x3fdba6(0x1ec)](_0x4168c9['views'])[_0x3fdba6(0x1c3)](_0x9abc45=>_0x9abc45[_0x3fdba6(0x183)]===_0x34edb1);return _0x1e35f8?this[_0x3fdba6(0x1de)]['createInstance'](J,this[_0x3fdba6(0x176)],this,_0x1e35f8['id'],this[_0x3fdba6(0x1de)]):null;}[_0x4880b5(0x205)](_0xc2f631,_0x19c09f,_0x5658df){const _0x3629af=_0x4880b5;var _0x1555aa;let _0x4f126a=this[_0x3629af(0x1de)][_0x3629af(0x1e1)](_0x2ee341),_0x2adb26=this[_0x3629af(0x1f0)](),_0x419eab=(_0x1555aa=_0x5658df==null?void 0x0:_0x5658df[_0x3629af(0x19b)])==null?{}:_0x1555aa;if(_0x419eab['id']=_0x304f14(0x6),_0x419eab['name']=_0xc2f631,_0x419eab['type']=_0x19c09f,_0x419eab['tableId']=this[_0x3629af(0x18b)],!_0x419eab[_0x3629af(0x1ca)])throw Error(_0x3629af(0x230));if(_0x419eab[_0x3629af(0x1f2)]||(_0x419eab['config']={}),_0x419eab[_0x3629af(0x225)]||(_0x419eab[_0x3629af(0x225)]=[..._0x2adb26[_0x3629af(0x225)]]),!_0x4f126a[_0x3629af(0x219)](_0x173da2['id'],{'unitId':this[_0x3629af(0x176)][_0x3629af(0x227)](),'tableId':this[_0x3629af(0x18b)],'view':_0x419eab,'index':_0x5658df==null?void 0x0:_0x5658df[_0x3629af(0x15b)]}))throw Error(_0x3629af(0x20f)+_0xc2f631+'\x22');return this['_injector'][_0x3629af(0x22d)](J,this[_0x3629af(0x176)],this,_0x419eab['id'],this[_0x3629af(0x1de)]);}[_0x4880b5(0x18d)](){const _0x2f305e=_0x4880b5;let _0xe9201c=this['_getTable'](),_0x30364f=_0xe9201c['fieldOrder'][_0x2f305e(0x1e2)](_0x10cc85=>_0xe9201c[_0x2f305e(0x1f3)][_0x10cc85]),_0x32ef70=_0xe9201c[_0x2f305e(0x1c2)]['filter'](_0x38bb72=>_0xe9201c[_0x2f305e(0x1b4)][_0x38bb72]);return{'id':_0xe9201c['id'],'name':_0xe9201c[_0x2f305e(0x183)],'primaryFieldId':_0xe9201c['primaryFieldId'],'fieldIds':_0x30364f,'viewIds':_0x32ef70,'recordCount':this[_0x2f305e(0x23a)]()[_0x2f305e(0x234)],'fields':_0x30364f[_0x2f305e(0x17c)](_0x3e6f6e=>{const _0x46a172=_0x2f305e;let _0xc5cb76=_0xe9201c[_0x46a172(0x1f3)][_0x3e6f6e];return{'id':_0xc5cb76['id'],'name':_0xc5cb76[_0x46a172(0x183)],'type':_0xc5cb76[_0x46a172(0x1ca)],'config':_0xc5cb76[_0x46a172(0x1f2)],'readonly':_0xc5cb76[_0x46a172(0x182)],'description':_0xc5cb76[_0x46a172(0x1d0)]};}),'views':_0x32ef70['map'](_0x2c0ac5=>{const _0x5482b8=_0x2f305e;let _0xa98136=_0xe9201c[_0x5482b8(0x1b4)][_0x2c0ac5];return{'id':_0xa98136['id'],'name':_0xa98136[_0x5482b8(0x183)],'type':_0xa98136['type']};})};}[_0x4880b5(0x1f0)](){const _0x48aedf=_0x4880b5;let _0x37ee8e=this[_0x48aedf(0x176)][_0x48aedf(0x21d)]()[_0x48aedf(0x157)]()['tables'][this['_tableId']];if(!_0x37ee8e)throw Error('[FTable]:\x20table\x20\x22'+this[_0x48aedf(0x18b)]+_0x48aedf(0x195));return _0x37ee8e;}['_resolveRecordIds'](_0x3ca4d4={}){const _0x4b6c9f=_0x4880b5;let _0x2c7a28=this[_0x4b6c9f(0x1de)][_0x4b6c9f(0x1e1)](_0x6f5dd1),_0x2e13d0=this[_0x4b6c9f(0x176)]['getBase']()[_0x4b6c9f(0x157)](),_0x5aaa3b=this[_0x4b6c9f(0x1f0)]();if(_0x3ca4d4[_0x4b6c9f(0x1a7)]){let _0x481ac3=_0x2c7a28[_0x4b6c9f(0x21b)](_0x2e13d0,this[_0x4b6c9f(0x18b)],_0x3ca4d4[_0x4b6c9f(0x1a7)]);if(_0x4b6c9f(0x158)in _0x481ac3&&Array[_0x4b6c9f(0x175)](_0x481ac3['rows']))return _0x481ac3[_0x4b6c9f(0x158)]['map'](_0x5ef32e=>_0x5ef32e[_0x4b6c9f(0x1c4)]);}return(_0x5aaa3b[_0x4b6c9f(0x178)]?_0x5aaa3b[_0x4b6c9f(0x178)][_0x4b6c9f(0x17c)](_0x198a1f=>_0x5aaa3b['records'][_0x198a1f]):Object[_0x4b6c9f(0x1ec)](_0x5aaa3b[_0x4b6c9f(0x1b7)])[_0x4b6c9f(0x1bc)]((_0x597737,_0x19fbf1)=>_0x597737[_0x4b6c9f(0x1ad)][_0x4b6c9f(0x1c1)](_0x19fbf1[_0x4b6c9f(0x1ad)])))['filter'](_0x44a4a4=>_0x44a4a4)[_0x4b6c9f(0x17c)](_0x4d2c6b=>_0x4d2c6b['id']);}};function le(_0x11598a,_0x28b019){const _0x567982=_0x4880b5;var _0x51a7b4;let _0x595e4d=Math[_0x567982(0x15e)](0x0,(_0x51a7b4=_0x28b019[_0x567982(0x223)])==null?0x0:_0x51a7b4);return _0x28b019[_0x567982(0x173)]==null?_0x11598a['slice'](_0x595e4d):_0x11598a['slice'](_0x595e4d,_0x595e4d+Math[_0x567982(0x15e)](0x0,_0x28b019[_0x567982(0x173)]));}function ue(_0x4be0cc,_0x255a8e,_0x46258f=[]){const _0x4cce1f=_0x4880b5;return _0x46258f['length']?[..._0x4be0cc][_0x4cce1f(0x1bc)]((_0x4bb0a8,_0xe5f1eb)=>{const _0xf28a3d=_0x4cce1f;var _0x339042,_0x41dc59;for(let _0x51cb29 of _0x46258f){var _0x33388b;let _0x4b4d7c=_0x51cb29[_0xf28a3d(0x19f)]===_0x4870c5[_0xf28a3d(0x1df)]?-0x1:0x1,_0x35b428=de(_0x4bb0a8[_0xf28a3d(0x1ec)][_0x51cb29['fieldId']],_0xe5f1eb[_0xf28a3d(0x1ec)][_0x51cb29[_0xf28a3d(0x1a8)]],(_0x33388b=_0x255a8e[_0xf28a3d(0x1f3)][_0x51cb29['fieldId']])==null?void 0x0:_0x33388b['type']);if(_0x35b428!==0x0)return _0x35b428*_0x4b4d7c;}return String((_0x339042=_0x4bb0a8[_0xf28a3d(0x1ad)])==null?_0x4bb0a8['id']:_0x339042)[_0xf28a3d(0x1c1)](String((_0x41dc59=_0xe5f1eb[_0xf28a3d(0x1ad)])==null?_0xe5f1eb['id']:_0x41dc59));}):_0x4be0cc;}function de(_0xc6eb07,_0x1577e0,_0x52e326){const _0x59c5bd=_0x4880b5;return _0xc6eb07==null&&_0x1577e0==null?0x0:_0xc6eb07==null?-0x1:_0x1577e0==null?0x1:typeof _0xc6eb07==_0x59c5bd(0x1ff)&&typeof _0x1577e0==_0x59c5bd(0x1ff)?_0xc6eb07-_0x1577e0:_0x52e326===_0x45bfa4['Date']?Number(_0xc6eb07)-Number(_0x1577e0):String(_0xc6eb07)[_0x59c5bd(0x1c1)](String(_0x1577e0));}function fe(_0xad47c,_0x324b70,_0x467153){const _0x1859ef=_0x4880b5;var _0x2ab56a;if(!_0x467153||!((_0x2ab56a=_0x467153[_0x1859ef(0x189)])!=null&&_0x2ab56a[_0x1859ef(0x234)]))return!0x0;let {conjunction:_0x29729d=_0x94dabb['OR'],conditions:_0x4b27a5}=_0x467153;return _0x29729d===_0x94dabb[_0x1859ef(0x1d3)]&&_0x4b27a5[_0x1859ef(0x234)]>0x1?_0x4b27a5[_0x1859ef(0x174)](_0x4fdf7b=>X(_0xad47c,_0x324b70,_0x4fdf7b)):_0x4b27a5[_0x1859ef(0x1aa)](_0x3d001a=>X(_0xad47c,_0x324b70,_0x3d001a));}function X(_0x22d864,_0x3178ad,_0x1e2507){const _0x498aed=_0x4880b5;let _0x513c46=_0x22d864[_0x498aed(0x1ec)][_0x1e2507[_0x498aed(0x1a8)]],_0xa306b8=_0x3178ad[_0x498aed(0x1f3)][_0x1e2507[_0x498aed(0x1a8)]];if(pe(_0x1e2507)){let _0x27cf94=me(_0x1e2507)[_0x498aed(0x1b2)](String(_0x513c46==null?'':_0x513c46));return _0x1e2507[_0x498aed(0x1e8)]===_0x498aed(0x1a1)?_0x27cf94:!_0x27cf94;}return _0xa306b8?_0x10e272(_0x513c46,_0x1e2507[_0x498aed(0x1e8)],_0x1e2507[_0x498aed(0x161)],_0xa306b8):!0x0;}function pe(_0x187f3d){const _0x37a22c=_0x4880b5;return _0x187f3d[_0x37a22c(0x1e8)]===_0x37a22c(0x1a1)||_0x187f3d[_0x37a22c(0x1e8)]===_0x37a22c(0x228);}function me(_0x5881a0){const _0x228fc2=_0x4880b5;var _0x319129;let _0x4a2344=String((_0x319129=_0x5881a0[_0x228fc2(0x161)])==null?'':_0x319129);if(_0x4a2344[_0x228fc2(0x234)]>0x200)throw Error(_0x228fc2(0x15f));try{return new RegExp(_0x4a2344,_0x5881a0[_0x228fc2(0x19a)]?void 0x0:'i');}catch(_0x5cb116){throw Error(_0x228fc2(0x187)+_0x4a2344+'.\x20'+(_0x5cb116 instanceof Error?_0x5cb116[_0x228fc2(0x21f)]:String(_0x5cb116)));}}function he(_0x433e82,_0x59530d,_0x21bbc6){const _0x48f204=_0x4880b5;if(_0x21bbc6[_0x48f204(0x1ca)]!==_0x48f204(0x22e)){var _0xd173d9;if(_0x21bbc6[_0x48f204(0x1ca)]===_0x105453['Kanban']){var _0x44f7a1,_0x21ff8b,_0x285940;let _0x4ee916=[(_0x44f7a1=(_0x21ff8b=_0x21bbc6[_0x48f204(0x1f3)])==null||(_0x21ff8b=_0x21ff8b[0x0])==null?void 0x0:_0x21ff8b['id'])==null?_0x433e82[_0x48f204(0x1db)]:_0x44f7a1,...(_0x285940=_0x21bbc6[_0x48f204(0x1da)])==null?[]:_0x285940];return Array['from'](new Set(_0x4ee916['filter'](_0x10f644=>!!_0x433e82[_0x48f204(0x1f3)][_0x10f644])));}if((_0xd173d9=_0x21bbc6[_0x48f204(0x1f3)])!=null&&_0xd173d9[_0x48f204(0x234)])return _0x21bbc6['fields']['map'](_0xea646f=>_0xea646f['id'])[_0x48f204(0x1e2)](_0x5949c7=>{const _0x270e31=_0x48f204;var _0x534ed5;return!!(_0x433e82[_0x270e31(0x1f3)][_0x5949c7]&&!(!(_0x59530d==null||(_0x534ed5=_0x59530d['fieldSettings'])==null||(_0x534ed5=_0x534ed5[_0x5949c7])==null)&&_0x534ed5[_0x270e31(0x15d)]));});}return _0x433e82[_0x48f204(0x225)][_0x48f204(0x1e2)](_0x14132c=>{const _0x3038ab=_0x48f204;var _0x384a04;return!!(_0x433e82['fields'][_0x14132c]&&!(!(_0x59530d==null||(_0x384a04=_0x59530d[_0x3038ab(0x163)])==null||(_0x384a04=_0x384a04[_0x14132c])==null)&&_0x384a04[_0x3038ab(0x15d)]));});}function ge(_0x4db505,_0x13ed90){return function(_0x4cb013,_0x19a451){_0x13ed90(_0x4cb013,_0x19a451,_0x4db505);};}function _e(_0x18f5b4,_0x20c058,_0x5a9d8d,_0x2a77ba){const _0x55ba84=_0x4880b5;var _0x1f4b1f=arguments[_0x55ba84(0x234)],_0x523bbf=_0x1f4b1f<0x3?_0x20c058:_0x2a77ba===null?_0x2a77ba=Object[_0x55ba84(0x204)](_0x20c058,_0x5a9d8d):_0x2a77ba,_0x317d47;if(typeof Reflect==_0x55ba84(0x1f6)&&typeof Reflect['decorate']==_0x55ba84(0x1e6))_0x523bbf=Reflect[_0x55ba84(0x166)](_0x18f5b4,_0x20c058,_0x5a9d8d,_0x2a77ba);else{for(var _0x446980=_0x18f5b4['length']-0x1;_0x446980>=0x0;_0x446980--)(_0x317d47=_0x18f5b4[_0x446980])&&(_0x523bbf=(_0x1f4b1f<0x3?_0x317d47(_0x523bbf):_0x1f4b1f>0x3?_0x317d47(_0x20c058,_0x5a9d8d,_0x523bbf):_0x317d47(_0x20c058,_0x5a9d8d))||_0x523bbf);}return _0x1f4b1f>0x3&&_0x523bbf&&Object[_0x55ba84(0x193)](_0x20c058,_0x5a9d8d,_0x523bbf),_0x523bbf;}let Z=class{constructor(_0x17291e,_0x458987){const _0xe28fe3=_0x4880b5;this[_0xe28fe3(0x176)]=_0x17291e,this[_0xe28fe3(0x1de)]=_0x458987;}[_0x4880b5(0x21d)](){return this['_base'];}[_0x4880b5(0x227)](){const _0x259afa=_0x4880b5;return this[_0x259afa(0x176)][_0x259afa(0x220)]();}[_0x4880b5(0x1dc)](){const _0x1043d6=_0x4880b5;return _0x4e5b1f[_0x1043d6(0x20c)](this[_0x1043d6(0x176)][_0x1043d6(0x157)]());}['getName'](){const _0x4cb717=_0x4880b5;return this['_base'][_0x4cb717(0x157)]()[_0x4cb717(0x183)];}[_0x4880b5(0x1f9)](_0x4afba9){const _0x5e85de=_0x4880b5;this[_0x5e85de(0x176)]['setName'](_0x4afba9);}[_0x4880b5(0x20b)](){const _0x3fe015=_0x4880b5;let _0x1f32a3=this[_0x3fe015(0x176)][_0x3fe015(0x157)]();return _0x1f32a3[_0x3fe015(0x203)][_0x3fe015(0x17c)](_0x584c95=>_0x1f32a3[_0x3fe015(0x17e)][_0x584c95])['filter'](_0x4eea21=>_0x4eea21)['map'](_0x23a550=>this['_injector'][_0x3fe015(0x22d)](Y,this,_0x23a550['id'],this[_0x3fe015(0x1de)]));}[_0x4880b5(0x23b)](_0x362acf){const _0x2e7eb6=_0x4880b5;let _0x5249bb=this['_base']['getSnapshot']()[_0x2e7eb6(0x17e)][_0x362acf];return _0x5249bb?this[_0x2e7eb6(0x1de)][_0x2e7eb6(0x22d)](Y,this,_0x5249bb['id'],this[_0x2e7eb6(0x1de)]):null;}[_0x4880b5(0x15c)](_0x16d940){const _0x48f1f4=_0x4880b5;let _0x2d74fa=this[_0x48f1f4(0x176)]['getSnapshot'](),_0x5d1ff3=Object[_0x48f1f4(0x1ec)](_0x2d74fa['tables'])[_0x48f1f4(0x1c3)](_0x1f72b3=>_0x1f72b3[_0x48f1f4(0x183)]===_0x16d940);return _0x5d1ff3?this[_0x48f1f4(0x1de)]['createInstance'](Y,this,_0x5d1ff3['id'],this['_injector']):null;}[_0x4880b5(0x197)](_0x1b5f2c,_0x107dea){const _0xe744be=_0x4880b5;var _0x669907;let _0x1546b0=this[_0xe744be(0x1de)][_0xe744be(0x1e1)](_0x2ee341),_0x11940b=_0x109479({'id':_0x304f14(),'name':_0x1b5f2c,..._0x107dea==null?void 0x0:_0x107dea[_0xe744be(0x18a)],'primaryFieldName':_0x107dea==null?void 0x0:_0x107dea[_0xe744be(0x1c0)]}),_0x5c7f69=_0x4e5b1f[_0xe744be(0x211)](_0x11940b,(_0x669907=_0x107dea==null?void 0x0:_0x107dea[_0xe744be(0x18a)])==null?{}:_0x669907);if(!_0x1546b0[_0xe744be(0x219)](_0x166dce['id'],{'unitId':this[_0xe744be(0x176)]['getUnitId'](),'table':_0x5c7f69,'index':_0x107dea==null?void 0x0:_0x107dea[_0xe744be(0x15b)]}))throw Error('Failed\x20to\x20create\x20table\x20\x22'+_0x1b5f2c+'\x22.');return this[_0xe744be(0x1de)]['createInstance'](Y,this,_0x5c7f69['id'],this[_0xe744be(0x1de)]);}[_0x4880b5(0x212)](_0x157abb){const _0x471576=_0x4880b5;let _0x3ecf5a=this[_0x471576(0x1de)][_0x471576(0x1e1)](_0x2ee341),_0x1ab4a3=typeof _0x157abb==_0x471576(0x1a4)?_0x157abb:_0x157abb[_0x471576(0x227)]();if(!_0x3ecf5a[_0x471576(0x219)](_0xa40344['id'],{'unitId':this[_0x471576(0x176)][_0x471576(0x220)](),'tableId':_0x1ab4a3}))throw Error(_0x471576(0x22b)+_0x1ab4a3+'\x22.');return!0x0;}['duplicateTable'](_0x294760,_0x300771){const _0x3fbe6a=_0x4880b5;var _0x517d73,_0x217262;let _0x488b7c=this['_injector'][_0x3fbe6a(0x1e1)](_0x2ee341),_0x69b9d0=this[_0x3fbe6a(0x176)]['getSnapshot'](),_0x21fa87=typeof _0x294760==_0x3fbe6a(0x1a4)?_0x294760:_0x294760[_0x3fbe6a(0x227)](),_0x510422=_0x69b9d0[_0x3fbe6a(0x17e)][_0x21fa87];if(!_0x510422)throw Error(_0x3fbe6a(0x1d6)+_0x21fa87+'\x22\x20does\x20not\x20exist.');let _0x49f66c=_0x69b9d0['tableOrder']['indexOf'](_0x21fa87)+0x1,_0x34e839=_0x4e4ee7(_0x510422,{'id':_0x304f14(),'name':_0x510422[_0x3fbe6a(0x183)]+_0x3fbe6a(0x1fe),'includeRecords':(_0x517d73=_0x300771==null?void 0x0:_0x300771[_0x3fbe6a(0x177)])==null?!0x1:_0x517d73,'regenerateViewIds':(_0x217262=_0x300771==null?void 0x0:_0x300771[_0x3fbe6a(0x198)])==null?!0x1:_0x217262});if(!_0x488b7c[_0x3fbe6a(0x219)](_0x166dce['id'],{'unitId':this[_0x3fbe6a(0x176)][_0x3fbe6a(0x220)](),'table':_0x34e839,'index':_0x49f66c}))throw Error(_0x3fbe6a(0x164)+_0x21fa87+'\x22.');return this['_injector'][_0x3fbe6a(0x22d)](Y,this,_0x34e839['id'],this[_0x3fbe6a(0x1de)]);}[_0x4880b5(0x18d)](){const _0x4ed02c=_0x4880b5;let _0x1ff551=this['_base'][_0x4ed02c(0x157)]();return{'id':_0x1ff551['id'],'name':_0x1ff551[_0x4ed02c(0x183)],'tables':this[_0x4ed02c(0x20b)]()['map'](_0x5b70fd=>_0x5b70fd[_0x4ed02c(0x18d)]())};}};Z=_e([ge(0x1,_0x552905(_0x53fa63))],Z);function _0x31fe(){const _0x1c4a41=['\x20exceeds\x20range\x20size\x20','getNumRows','getName','880690asxOlF','fieldKey','getTables','deepClone','6QpFsco','getBaseId','Failed\x20to\x20create\x20view\x20\x22','Name','commonExtend','deleteTable','getDataRange','getType','isReadonly','getSort','BaseTableCreated','createBase','syncExecuteCommand','params','getProjection','flatMap','getBase','record','message','getUnitId','getValue','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','offset','2214UqRehg','fieldOrder','BaseTableFieldCreated','getId','notMatches','getView','onCommandExecuted','Failed\x20to\x20delete\x20table\x20\x22','850DwvOGe','createInstance','invalid','auto','View\x20type\x20is\x20required','_table','createdAt','group','length','push','entries','setValue','createUnit','[FView]:\x20view\x20\x22','_resolveRecordIds','getTableById','updatedAt','getConfig','getSnapshot','rows','getCurrentUnitOfType','setOrderKey','index','getTableByName','hidden','max','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','getViews','value','getField','fieldSettings','Failed\x20to\x20duplicate\x20table\x20\x22','_range','decorate','addField','Event','BeforeBaseTableCreate','setFieldVisible','435224iKkheT','endRow','Failed\x20to\x20add\x20field\x20\x22','getFieldSettings','BaseFilterOperator','getViewByName','_assertInBounds','_inject','limit','every','isArray','_base','includeRecords','recordOrder','Kanban','getVisibleFields','getFieldById','map','addRecord','tables','getRange','getDefaultValue','addRecords','readonly','name','disposeWithMe','beforeCommandExecuted','delete','Invalid\x20Base\x20regex\x20filter:\x20',',\x20range:\x20','conditions','table','_tableId','Grid','getSchema','BaseFilterConjunction','registerEventHandler','getRecords','_initBaseAfterEvents','forEach','defineProperty','BeforeBaseTableRecordCreate','\x22\x20does\x20not\x20exist.','BaseTableRecordCreated','insertTable','regenerateViewIds','getRecordById','caseSensitive','view','defaultValue','1kpVuFX','setSort','direction','_fieldId','matches','getPrimaryFieldId','1141327uaBuSY','string','_getField','setFieldWidth','viewId','fieldId','[FBaseRange]:\x20table\x20does\x20not\x20exist.','some','BaseTableCellValueChanged','BaseTableViewCreated','orderKey','getTable','setValues','425268UbzWjb','colId','test','deleteRecords','views','moveField','endColumn','records','_getRecord','UNIVER_BASE','from','setFilter','sort','getViewById','BeforeBaseTableCellValueChange','getFieldByName','primaryFieldName','localeCompare','viewOrder','find','recordId','startColumn','startRow','getUnit','setDefaultValue','[FBaseRange]:\x20values\x20size\x20','type','BaseFieldKeyEnum','7rqZhEw','[FRecord]:\x20record\x20\x22','Failed\x20to\x20add\x20records','queryRecords','description','_recordId','BeforeBaseTableViewCreate','AND','395138kkttrh','fieldIds','[FBase]:\x20table\x20\x22','rowId','getRecord','Base\x20field\x20not\x20found:\x20','visibleCardFieldIds','primaryFieldId','save','getFilter','_injector','DESC','BeforeBaseTableFieldCreate','get','filter','541264sMWush','getNumColumns','field','function','_getView','operator','fireEvent','stringify','clear','values','extend','getGroup','cancel','_getTable','[FField]:\x20field\x20\x22','config','fields','Calendar','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','object','setGroup','update','setName','changeType','now','getBases','getPrimaryField','\x20Copy','number','_viewId','BaseViewType','getValues','tableOrder','getOwnPropertyDescriptor','createView'];_0x31fe=function(){return _0x1c4a41;};return _0x31fe();}var Q=class extends _0x25600f{['_initialize'](){this['_initBaseBeforeEvents'](),this['_initBaseAfterEvents']();}[_0x4880b5(0x218)](_0x37c5e0={},_0x45216d){const _0x3de49c=_0x4880b5;let _0x7aaee7=this[_0x3de49c(0x1de)][_0x3de49c(0x1e1)](_0x1f8459)[_0x3de49c(0x238)](_0x20b885[_0x3de49c(0x1b9)],_0x37c5e0,_0x45216d);return this[_0x3de49c(0x1de)]['createInstance'](Z,_0x7aaee7);}['getActiveBase'](){const _0x508ed2=_0x4880b5;let _0x292045=this[_0x508ed2(0x1de)]['get'](_0x1f8459)[_0x508ed2(0x159)](_0x20b885[_0x508ed2(0x1b9)]);return _0x292045?this[_0x508ed2(0x1de)][_0x508ed2(0x22d)](Z,_0x292045):null;}['getBase'](_0x45b05c){const _0x409356=_0x4880b5;let _0x48b726=this['_injector']['get'](_0x1f8459)[_0x409356(0x1c7)](_0x45b05c,_0x20b885['UNIVER_BASE']);return _0x48b726?this[_0x409356(0x1de)][_0x409356(0x22d)](Z,_0x48b726):null;}[_0x4880b5(0x1fc)](){const _0x5925db=_0x4880b5;return this[_0x5925db(0x1de)]['get'](_0x1f8459)['getAllUnitsForType'](_0x20b885[_0x5925db(0x1b9)])[_0x5925db(0x17c)](_0x5c0a86=>this[_0x5925db(0x1de)]['createInstance'](Z,_0x5c0a86));}[_0x4880b5(0x191)](){const _0x15b352=_0x4880b5;let _0xfb13f9=this[_0x15b352(0x1de)][_0x15b352(0x1e1)](_0x2ee341);this[_0x15b352(0x184)](this[_0x15b352(0x18f)](this['Event'][_0x15b352(0x217)],()=>_0xfb13f9['onCommandExecuted'](_0xeb71d1=>{const _0x3b348a=_0x15b352;if(_0xeb71d1['id']!==_0x166dce['id'])return;let {unitId:_0x4a9a26,table:_0x17a044,index:_0x10215a}=_0xeb71d1[_0x3b348a(0x21a)],_0x35f29e=this[_0x3b348a(0x21d)](_0x4a9a26);if(!_0x35f29e)return;let _0x770bc3={'base':_0x35f29e,'table':_0x17a044,'index':_0x10215a};this[_0x3b348a(0x1e9)](this[_0x3b348a(0x168)]['BaseTableCreated'],_0x770bc3);}))),this[_0x15b352(0x184)](this[_0x15b352(0x18f)](this['Event']['BaseTableFieldCreated'],()=>_0xfb13f9[_0x15b352(0x22a)](_0x15000f=>{const _0x3d6c3c=_0x15b352;if(_0x15000f['id']!==_0x18bff2['id'])return;let {unitId:_0x57c8df,tableId:_0x5a3160,field:_0x255c79,index:_0x1febbe,viewIndexes:_0x238cb6}=_0x15000f[_0x3d6c3c(0x21a)],_0xe7bad9=this['getBase'](_0x57c8df);if(!_0xe7bad9)return;let _0x56567b=_0xe7bad9['getTableById'](_0x5a3160);if(!_0x56567b)return;let _0x4d7312={'base':_0xe7bad9,'table':_0x56567b,'field':_0x255c79,'index':_0x1febbe,'viewIndexes':_0x238cb6};this['fireEvent'](this[_0x3d6c3c(0x168)]['BaseTableFieldCreated'],_0x4d7312);}))),this[_0x15b352(0x184)](this[_0x15b352(0x18f)](this['Event'][_0x15b352(0x196)],()=>_0xfb13f9[_0x15b352(0x22a)](_0x32dc9f=>{const _0x54ae9c=_0x15b352;var _0x4ca21a;if(_0x32dc9f['id']!==_0x5f048d['id']&&_0x32dc9f['id']!==_0x206ff2['id'])return;let _0x44368a=_0x32dc9f[_0x54ae9c(0x21a)],{unitId:_0x5df63d,tableId:_0xdcc4cd}=_0x44368a,_0x461b29=(_0x4ca21a=_0x44368a['records'])==null?[_0x44368a[_0x54ae9c(0x21e)]]:_0x4ca21a,_0x116c84=this[_0x54ae9c(0x21d)](_0x5df63d);if(!_0x116c84)return;let _0xe316f6=_0x116c84[_0x54ae9c(0x23b)](_0xdcc4cd);if(!_0xe316f6)return;let _0x5edf16={'base':_0x116c84,'table':_0xe316f6,'records':_0x461b29};this[_0x54ae9c(0x1e9)](this[_0x54ae9c(0x168)][_0x54ae9c(0x196)],_0x5edf16);}))),this[_0x15b352(0x184)](this[_0x15b352(0x18f)](this[_0x15b352(0x168)][_0x15b352(0x1ac)],()=>_0xfb13f9[_0x15b352(0x22a)](_0x436314=>{const _0x2b6d9a=_0x15b352;if(_0x436314['id']!==_0x173da2['id'])return;let {unitId:_0x1e2f82,tableId:_0x2a98da,view:_0x4a2827,index:_0x4a75c4}=_0x436314['params'],_0x2a0aa4=this[_0x2b6d9a(0x21d)](_0x1e2f82);if(!_0x2a0aa4)return;let _0x38d31b=_0x2a0aa4[_0x2b6d9a(0x23b)](_0x2a98da);if(!_0x38d31b)return;let _0x5ada49={'base':_0x2a0aa4,'table':_0x38d31b,'view':_0x4a2827,'index':_0x4a75c4};this['fireEvent'](this[_0x2b6d9a(0x168)][_0x2b6d9a(0x1ac)],_0x5ada49);}))),this['disposeWithMe'](this[_0x15b352(0x18f)](this[_0x15b352(0x168)]['BaseTableCellValueChanged'],()=>_0xfb13f9[_0x15b352(0x22a)](_0x1e0a4c=>{const _0x2fc379=_0x15b352;if(_0x1e0a4c['id']!==_0x4fa3a3['id'])return;let {unitId:_0x34151b,tableId:_0x2b2273,recordId:_0x5bc80e,fieldId:_0x5b1bb9,value:_0x426702}=_0x1e0a4c[_0x2fc379(0x21a)],_0x14628b=this[_0x2fc379(0x21d)](_0x34151b);if(!_0x14628b)return;let _0x30bc10=_0x14628b[_0x2fc379(0x23b)](_0x2b2273);if(!_0x30bc10)return;let _0xc267d5=_0x30bc10[_0x2fc379(0x17b)](_0x5b1bb9);if(!_0xc267d5)return;let _0x2f5843=_0x30bc10['getRecordById'](_0x5bc80e);if(!_0x2f5843)return;let _0x3733a8={'base':_0x14628b,'table':_0x30bc10,'field':_0xc267d5,'record':_0x2f5843,'value':_0x426702};this['fireEvent'](this[_0x2fc379(0x168)][_0x2fc379(0x1ab)],_0x3733a8);})));}['_initBaseBeforeEvents'](){const _0x20ac04=_0x4880b5;let _0x3b66e8=this[_0x20ac04(0x1de)][_0x20ac04(0x1e1)](_0x2ee341);this['disposeWithMe'](this[_0x20ac04(0x18f)](this[_0x20ac04(0x168)][_0x20ac04(0x169)],()=>_0x3b66e8[_0x20ac04(0x185)](_0x526b86=>{const _0x1b5aa1=_0x20ac04;if(_0x526b86['id']!==_0x166dce['id'])return;let {unitId:_0x2fc77a,table:_0x50c3bb,index:_0x2c3929}=_0x526b86[_0x1b5aa1(0x21a)],_0x6eb2e=this[_0x1b5aa1(0x21d)](_0x2fc77a);if(!_0x6eb2e)return;let _0x22bac1={'base':_0x6eb2e,'table':_0x50c3bb,'index':_0x2c3929};if(this[_0x1b5aa1(0x1e9)](this[_0x1b5aa1(0x168)][_0x1b5aa1(0x169)],_0x22bac1),_0x22bac1[_0x1b5aa1(0x1ef)])throw new _0x36d201();}))),this[_0x20ac04(0x184)](this[_0x20ac04(0x18f)](this[_0x20ac04(0x168)][_0x20ac04(0x1e0)],()=>_0x3b66e8[_0x20ac04(0x185)](_0x452949=>{const _0x335d34=_0x20ac04;if(_0x452949['id']!==_0x18bff2['id'])return;let {unitId:_0x2c993a,tableId:_0x5e167a,field:_0x204865,index:_0x423d14,viewIndexes:_0x1f7628}=_0x452949[_0x335d34(0x21a)],_0x8e4ab8=this[_0x335d34(0x21d)](_0x2c993a);if(!_0x8e4ab8)return;let _0x258302=_0x8e4ab8[_0x335d34(0x23b)](_0x5e167a);if(!_0x258302)return;let _0x317c32={'base':_0x8e4ab8,'table':_0x258302,'field':_0x204865,'index':_0x423d14,'viewIndexes':_0x1f7628};if(this[_0x335d34(0x1e9)](this[_0x335d34(0x168)][_0x335d34(0x1e0)],_0x317c32),_0x317c32[_0x335d34(0x1ef)])throw new _0x36d201();}))),this[_0x20ac04(0x184)](this[_0x20ac04(0x18f)](this['Event'][_0x20ac04(0x194)],()=>_0x3b66e8[_0x20ac04(0x185)](_0x342eb6=>{const _0xd9e509=_0x20ac04;var _0x39d7ba;if(_0x342eb6['id']!==_0x5f048d['id']&&_0x342eb6['id']!==_0x206ff2['id'])return;let _0x5b5c11=_0x342eb6[_0xd9e509(0x21a)],{unitId:_0x3a690c,tableId:_0x4e3147}=_0x5b5c11,_0x44a61c=(_0x39d7ba=_0x5b5c11[_0xd9e509(0x1b7)])==null?[_0x5b5c11[_0xd9e509(0x21e)]]:_0x39d7ba,_0x218e8b=this['getBase'](_0x3a690c);if(!_0x218e8b)return;let _0x11fa0=_0x218e8b[_0xd9e509(0x23b)](_0x4e3147);if(!_0x11fa0)return;let _0x12f7d2={'base':_0x218e8b,'table':_0x11fa0,'records':_0x44a61c};if(this[_0xd9e509(0x1e9)](this['Event'][_0xd9e509(0x194)],_0x12f7d2),_0x12f7d2[_0xd9e509(0x1ef)])throw new _0x36d201();}))),this[_0x20ac04(0x184)](this['registerEventHandler'](this[_0x20ac04(0x168)][_0x20ac04(0x1d2)],()=>_0x3b66e8[_0x20ac04(0x185)](_0x258b71=>{const _0x9a5909=_0x20ac04;if(_0x258b71['id']!==_0x173da2['id'])return;let {unitId:_0x353493,tableId:_0x46574a,view:_0x24b3ac,index:_0x4fb66b}=_0x258b71[_0x9a5909(0x21a)],_0x1161df=this[_0x9a5909(0x21d)](_0x353493);if(!_0x1161df)return;let _0x50b614=_0x1161df['getTableById'](_0x46574a);if(!_0x50b614)return;let _0x43f82f={'base':_0x1161df,'table':_0x50b614,'view':_0x24b3ac,'index':_0x4fb66b};if(this['fireEvent'](this[_0x9a5909(0x168)][_0x9a5909(0x1d2)],_0x43f82f),_0x43f82f[_0x9a5909(0x1ef)])throw new _0x36d201();}))),this[_0x20ac04(0x184)](this[_0x20ac04(0x18f)](this['Event']['BeforeBaseTableCellValueChange'],()=>_0x3b66e8[_0x20ac04(0x185)](_0x34fea7=>{const _0x51321b=_0x20ac04;if(_0x34fea7['id']!==_0x4fa3a3['id'])return;let {unitId:_0x35a156,tableId:_0x2e0186,recordId:_0x528bb9,fieldId:_0x581d13,value:_0x2dc9eb}=_0x34fea7[_0x51321b(0x21a)],_0x3ab210=this[_0x51321b(0x21d)](_0x35a156);if(!_0x3ab210)return;let _0x1601f9=_0x3ab210[_0x51321b(0x23b)](_0x2e0186);if(!_0x1601f9)return;let _0x266457=_0x1601f9[_0x51321b(0x17b)](_0x581d13);if(!_0x266457)return;let _0x4cef09=_0x1601f9[_0x51321b(0x199)](_0x528bb9);if(!_0x4cef09)return;let _0x428309={'base':_0x3ab210,'table':_0x1601f9,'field':_0x266457,'record':_0x4cef09,'value':_0x2dc9eb};if(this[_0x51321b(0x1e9)](this[_0x51321b(0x168)][_0x51321b(0x1be)],_0x428309),_0x428309[_0x51321b(0x1ef)])throw new _0x36d201();})));}};_0x25600f[_0x4880b5(0x1ed)](Q);var ve=class extends _0x17b569{get['BaseFieldType'](){return _0x45bfa4;}get[_0x4880b5(0x18e)](){return _0x94dabb;}get[_0x4880b5(0x16f)](){return _0x1235cb;}get[_0x4880b5(0x1cb)](){return W;}get[_0x4880b5(0x201)](){return _0x105453;}get['BaseSortDirection'](){return _0x4870c5;}};_0x17b569[_0x4880b5(0x1ed)](ve);var $=class extends _0x24dfd4{get['BaseTableCreated'](){const _0x9e40ef=_0x4880b5;return _0x9e40ef(0x217);}get[_0x4880b5(0x169)](){const _0x14b703=_0x4880b5;return _0x14b703(0x169);}get[_0x4880b5(0x226)](){const _0x2e6da6=_0x4880b5;return _0x2e6da6(0x226);}get['BeforeBaseTableFieldCreate'](){const _0x2e32b9=_0x4880b5;return _0x2e32b9(0x1e0);}get[_0x4880b5(0x196)](){const _0x25d236=_0x4880b5;return _0x25d236(0x196);}get[_0x4880b5(0x194)](){const _0x3a1979=_0x4880b5;return _0x3a1979(0x194);}get['BaseTableViewCreated'](){return'BaseTableViewCreated';}get[_0x4880b5(0x1d2)](){return'BeforeBaseTableViewCreate';}get['BaseTableCellValueChanged'](){const _0xc536d5=_0x4880b5;return _0xc536d5(0x1ab);}get['BeforeBaseTableCellValueChange'](){const _0xfcf989=_0x4880b5;return _0xfcf989(0x1be);}};function _0x1094(_0x1c49ae,_0x15f2b4){_0x1c49ae=_0x1c49ae-0x157;const _0x31fe0d=_0x31fe();let _0x10942b=_0x31fe0d[_0x1c49ae];return _0x10942b;}_0x24dfd4[_0x4880b5(0x1ed)]($);export{W as BaseFieldKeyEnum,Z as FBase,Y as FBaseTable,H as FBaseTableField,U as FBaseTableRange,q as FBaseTableRecord,J as FBaseTableView,$ as FBasesEventNameMixin,K as resolveBaseFieldKey,G as resolveBaseFieldValues};
1
+ const _0x14e4dd=_0x557f;(function(_0x25ff30,_0xbedc8b){const _0x4498d6=_0x557f,_0x2d50fa=_0x25ff30();while(!![]){try{const _0x100b2f=-parseInt(_0x4498d6(0x193))/0x1+-parseInt(_0x4498d6(0x156))/0x2*(-parseInt(_0x4498d6(0x147))/0x3)+parseInt(_0x4498d6(0x150))/0x4*(parseInt(_0x4498d6(0x1bc))/0x5)+-parseInt(_0x4498d6(0x208))/0x6*(-parseInt(_0x4498d6(0x162))/0x7)+parseInt(_0x4498d6(0x201))/0x8+-parseInt(_0x4498d6(0x14a))/0x9+-parseInt(_0x4498d6(0x13d))/0xa;if(_0x100b2f===_0xbedc8b)break;else _0x2d50fa['push'](_0x2d50fa['shift']());}catch(_0x1524fa){_0x2d50fa['push'](_0x2d50fa['shift']());}}}(_0x147a,0x53250));import{BatchCreateBaseRecordsCommand as _0x118e37,BatchDeleteBaseRecordsCommand as _0x263dd2,ChangeBaseFieldTypeCommand as _0x5898c0,CreateBaseFieldCommand as _0x5cc92c,CreateBaseRecordCommand as _0x3b13bf,CreateBaseTableCommand as _0x986b77,CreateBaseViewCommand as _0x2d3862,DeleteBaseFieldCommand as _0x3c6308,DeleteBaseRecordCommand as _0x3f5464,DeleteBaseTableCommand as _0x30a626,DeleteBaseViewCommand as _0x58b979,DuplicateBaseRecordCommand as _0x1bc765,IBaseProjectionService as _0xe2f5a2,MoveBaseFieldCommand as _0x27481b,MoveBaseViewCommand as _0x1c145b,RenameBaseTableCommand as _0x7ce364,RenameBaseViewCommand as _0x3da8a8,SetBaseNameCommand as _0x28caa0,SetBaseRangeValuesCommand as _0x5c887f,SetBaseRecordValuesCommand as _0x2e09ab,SetBaseViewFieldOrderCommand as _0x392572,SetBaseViewFieldVisibleCommand as _0x573f12,SetBaseViewFieldWidthCommand as _0x220e87,SetBaseViewFilterCommand as _0x218fe1,SetBaseViewGroupCommand as _0x15bccc,SetBaseViewSortCommand as _0x512206,UpdateBaseCellCommand as _0x32df63,UpdateBaseFieldCommand as _0x19ccce,UpdateBaseRecordOrderCommand as _0x7d992c,UpdateBaseViewConfigCommand as _0x374a49,copyBaseTableSnapshot as _0x46ad2d,ensureBaseTableCellLayout as _0x2c8835,getBaseCellValue as _0x522d5f,matchesBaseCondition as _0x205855,searchBaseTable as _0x5b1460}from'@univerjs-pro/bases';import{BaseFieldType as _0x3329dc,BaseFilterConjunction as _0x2cba2d,BaseFilterOperator as _0x53f6ba,BaseSortDirection as _0x3c0cc3,BaseViewType as _0x1e3dd6,CanceledError as _0x4c003e,ICommandService as _0x5abfa9,IUniverInstanceService as _0x417894,Inject as _0x275d46,Injector as _0x22fd86,Tools as _0xad0c7b,UniverInstanceType as _0x28bcd4,createDefaultBaseTableSnapshot as _0x34e4df,generateRandomId as _0x369b18}from'@univerjs/core';import{FEnum as _0x4b5977,FEventName as _0x8ad1b4,FUniver as _0xce4c3f}from'@univerjs/core/facade';var U=class{constructor(_0x4b85b2,_0x5866c,_0x37ff4c,_0x499a56){const _0x321166=_0x557f;this[_0x321166(0x196)]=_0x4b85b2,this[_0x321166(0x154)]=_0x5866c,this[_0x321166(0x15b)]=_0x37ff4c,this[_0x321166(0x211)]=_0x499a56;}[_0x14e4dd(0x202)](){const _0x4e5fc7=_0x14e4dd;return this[_0x4e5fc7(0x15b)];}[_0x14e4dd(0x16c)](){return this['_getField']();}[_0x14e4dd(0x1b2)](){const _0x5b95b7=_0x14e4dd;return this[_0x5b95b7(0x200)]()['name'];}[_0x14e4dd(0x1b6)](){const _0x490ea1=_0x14e4dd;return this['_getField']()[_0x490ea1(0x1d8)];}[_0x14e4dd(0x1e6)](){const _0x5f3c63=_0x14e4dd;return this['_getField']()[_0x5f3c63(0x176)];}[_0x14e4dd(0x1e1)](){const _0x3c5f55=_0x14e4dd;return this[_0x3c5f55(0x200)]()[_0x3c5f55(0x179)];}[_0x14e4dd(0x16a)](){const _0x589ed5=_0x14e4dd;return this[_0x589ed5(0x200)]()[_0x589ed5(0x1ef)];}['isReadonly'](){const _0x264244=_0x14e4dd;return!!this[_0x264244(0x200)]()['readonly'];}['setName'](_0x92a69b){const _0x1dc034=_0x14e4dd;return this[_0x1dc034(0x15d)]({'name':_0x92a69b});}['setConfig'](_0x2c7b09){return this['update']({'config':_0x2c7b09});}[_0x14e4dd(0x1d7)](_0x1430e1){const _0x379a4e=_0x14e4dd;return this[_0x379a4e(0x15d)]({'defaultValue':_0x1430e1});}[_0x14e4dd(0x15d)](_0x45ec2b){const _0x458b92=_0x14e4dd;return this[_0x458b92(0x211)][_0x458b92(0x1bb)](_0x5abfa9)[_0x458b92(0x1f0)](_0x19ccce['id'],{'unitId':this['_base'][_0x458b92(0x202)](),'tableId':this[_0x458b92(0x154)][_0x458b92(0x202)](),'fieldId':this[_0x458b92(0x15b)],'patch':_0x45ec2b});}[_0x14e4dd(0x18f)](_0x45d464,_0xea108f={}){const _0x1061d9=_0x14e4dd;return this[_0x1061d9(0x211)][_0x1061d9(0x1bb)](_0x5abfa9)[_0x1061d9(0x1f0)](_0x5898c0['id'],{'unitId':this[_0x1061d9(0x196)][_0x1061d9(0x202)](),'tableId':this[_0x1061d9(0x154)][_0x1061d9(0x202)](),'fieldId':this[_0x1061d9(0x15b)],'input':{'type':_0x45d464,'config':_0xea108f}});}[_0x14e4dd(0x206)](){const _0x194742=_0x14e4dd;return this[_0x194742(0x211)][_0x194742(0x1bb)](_0x5abfa9)[_0x194742(0x1f0)](_0x3c6308['id'],{'unitId':this[_0x194742(0x196)]['getId'](),'tableId':this[_0x194742(0x154)][_0x194742(0x202)](),'fieldId':this[_0x194742(0x15b)]});}[_0x14e4dd(0x172)](_0x3ff3f2){const _0x4f4cf4=_0x14e4dd;return this[_0x4f4cf4(0x211)][_0x4f4cf4(0x1bb)](_0x5abfa9)[_0x4f4cf4(0x1f0)](_0x27481b['id'],{'unitId':this[_0x4f4cf4(0x196)][_0x4f4cf4(0x202)](),'tableId':this[_0x4f4cf4(0x154)][_0x4f4cf4(0x202)](),'fieldId':this['_fieldId'],'target':_0x3ff3f2});}[_0x14e4dd(0x200)](){const _0xb9722c=_0x14e4dd;let _0x47fb8b=this['_table'][_0xb9722c(0x161)]()[_0xb9722c(0x1f3)][this[_0xb9722c(0x15b)]];if(!_0x47fb8b)throw Error('[FField]:\x20field\x20\x22'+this[_0xb9722c(0x15b)]+_0xb9722c(0x205));return _0x47fb8b;}},W=class e{constructor(_0x5c73a1,_0x3a0879,_0x14ff21,_0xa21188){const _0x4227e6=_0x14e4dd;this[_0x4227e6(0x196)]=_0x5c73a1,this['_table']=_0x3a0879,this[_0x4227e6(0x155)]=_0x14ff21,this[_0x4227e6(0x211)]=_0xa21188,this['_assertInBounds']();}[_0x14e4dd(0x207)](){const _0x1875aa=_0x14e4dd;return this[_0x1875aa(0x196)]['getId']();}[_0x14e4dd(0x1b3)](){const _0x2ba607=_0x14e4dd;return this[_0x2ba607(0x154)]['getId']();}['getRange'](){const _0x49d7a3=_0x14e4dd;return{...this[_0x49d7a3(0x155)]};}['getRow'](){const _0x5d0f0a=_0x14e4dd;return this['_range'][_0x5d0f0a(0x1cf)];}[_0x14e4dd(0x1f5)](){const _0x58249d=_0x14e4dd;return this[_0x58249d(0x155)][_0x58249d(0x1d3)];}[_0x14e4dd(0x1fc)](){const _0x114b8b=_0x14e4dd;return this['_range'][_0x114b8b(0x1c7)]-this['_range'][_0x114b8b(0x1cf)]+0x1;}[_0x14e4dd(0x1c2)](){const _0x16ecf0=_0x14e4dd;return this[_0x16ecf0(0x155)][_0x16ecf0(0x1ac)]-this[_0x16ecf0(0x155)]['startColumn']+0x1;}['getValues'](){const _0x180d17=_0x14e4dd;let _0x581eaa=this['_getTable'](),_0x587e19=[];for(let _0x33e0d8=this['_range'][_0x180d17(0x1cf)];_0x33e0d8<=this['_range']['endRow'];_0x33e0d8++){var _0x37e4f1;let _0x5f2563=(_0x37e4f1=_0x581eaa[_0x180d17(0x164)])==null?void 0x0:_0x37e4f1[_0x33e0d8],_0x244bab=[];for(let _0x572bb5=this['_range'][_0x180d17(0x1d3)];_0x572bb5<=this[_0x180d17(0x155)]['endColumn'];_0x572bb5++){var _0x399942;let _0x2d5868=(_0x399942=_0x581eaa['colId'])==null?void 0x0:_0x399942[_0x572bb5];_0x244bab[_0x180d17(0x1e2)](_0x5f2563&&_0x2d5868?_0x522d5f(_0x581eaa,_0x5f2563,_0x2d5868):null);}_0x587e19[_0x180d17(0x1e2)](_0x244bab);}return _0x587e19;}[_0x14e4dd(0x1b9)](){const _0x5dd5b4=_0x14e4dd;var _0x2c44d2,_0xfb362f;return(_0x2c44d2=(_0xfb362f=this[_0x5dd5b4(0x163)]()[0x0])==null?void 0x0:_0xfb362f[0x0])==null?null:_0x2c44d2;}[_0x14e4dd(0x1bd)](_0x8afd67){const _0x1ac92c=_0x14e4dd;return this[_0x1ac92c(0x1d4)]([[_0x8afd67]]);}[_0x14e4dd(0x1d4)](_0x4682e4){const _0x6e92a0=_0x14e4dd;let _0x1535ba=this[_0x6e92a0(0x1fc)](),_0x4ebcbd=this[_0x6e92a0(0x1c2)]();if(_0x4682e4[_0x6e92a0(0x1f4)]>_0x1535ba||_0x4682e4['some'](_0x506264=>_0x506264[_0x6e92a0(0x1f4)]>_0x4ebcbd)){var _0x1d44eb,_0x46bfc4;throw Error(_0x6e92a0(0x15e)+_0x4682e4[_0x6e92a0(0x1f4)]+'x'+((_0x1d44eb=(_0x46bfc4=_0x4682e4[0x0])==null?void 0x0:_0x46bfc4['length'])==null?0x0:_0x1d44eb)+_0x6e92a0(0x16f)+_0x1535ba+'x'+_0x4ebcbd+'.');}let _0x25f2be=this['_inject'][_0x6e92a0(0x1bb)](_0x5abfa9),_0x3f0596=_0x4682e4['flatMap']((_0x509f86,_0x4b2c12)=>_0x509f86[_0x6e92a0(0x1fa)]((_0x4e1225,_0x2b560a)=>({'row':this[_0x6e92a0(0x155)][_0x6e92a0(0x1cf)]+_0x4b2c12,'col':this[_0x6e92a0(0x155)][_0x6e92a0(0x1d3)]+_0x2b560a,'value':_0x4e1225})));return _0x25f2be[_0x6e92a0(0x1f0)](_0x5c887f['id'],{'unitId':this[_0x6e92a0(0x196)][_0x6e92a0(0x202)](),'tableId':this[_0x6e92a0(0x154)][_0x6e92a0(0x202)](),'patches':_0x3f0596});}[_0x14e4dd(0x1e4)](){const _0x2425d7=_0x14e4dd;return this[_0x2425d7(0x1d4)](Array[_0x2425d7(0x149)]({'length':this[_0x2425d7(0x1fc)]()},()=>Array[_0x2425d7(0x149)]({'length':this['getNumColumns']()},()=>null)));}[_0x14e4dd(0x178)](_0x53c745,_0x418ae5,_0x27382f=this[_0x14e4dd(0x1fc)](),_0x108383=this[_0x14e4dd(0x1c2)]()){const _0x55ff99=_0x14e4dd;return this[_0x55ff99(0x211)][_0x55ff99(0x188)](e,this['_base'],this[_0x55ff99(0x154)],{'startRow':this[_0x55ff99(0x155)][_0x55ff99(0x1cf)]+_0x53c745,'startColumn':this['_range']['startColumn']+_0x418ae5,'endRow':this['_range']['startRow']+_0x53c745+_0x27382f-0x1,'endColumn':this[_0x55ff99(0x155)][_0x55ff99(0x1d3)]+_0x418ae5+_0x108383-0x1},this[_0x55ff99(0x211)]);}[_0x14e4dd(0x18b)](){const _0x197b40=_0x14e4dd;let _0x3df4aa=this[_0x197b40(0x154)][_0x197b40(0x161)]();if(!_0x3df4aa)throw Error(_0x197b40(0x168));return _0x2c8835(_0x3df4aa);}[_0x14e4dd(0x18e)](){const _0x3356dc=_0x14e4dd;var _0x3c655b,_0x1eaca3;let _0x973d0=this[_0x3356dc(0x18b)](),_0xfd14c9=(_0x3c655b=(_0x1eaca3=_0x973d0[_0x3356dc(0x180)])==null?void 0x0:_0x1eaca3[_0x3356dc(0x1f4)])==null?0x0:_0x3c655b,_0x32061a=_0x973d0[_0x3356dc(0x1e5)][_0x3356dc(0x1f4)];if(this[_0x3356dc(0x155)][_0x3356dc(0x1cf)]<0x0||this[_0x3356dc(0x155)][_0x3356dc(0x1d3)]<0x0||this['_range']['endRow']<this[_0x3356dc(0x155)][_0x3356dc(0x1cf)]||this[_0x3356dc(0x155)]['endColumn']<this[_0x3356dc(0x155)]['startColumn']||this[_0x3356dc(0x155)][_0x3356dc(0x1c7)]>=Math[_0x3356dc(0x199)](_0xfd14c9,0x1)||this[_0x3356dc(0x155)][_0x3356dc(0x1ac)]>=Math['max'](_0x32061a,0x1))throw Error(_0x3356dc(0x1ad)+_0xfd14c9+_0x3356dc(0x159)+_0x32061a+_0x3356dc(0x1d6)+JSON['stringify'](this[_0x3356dc(0x155)])+'.');}};let G=function(_0x405b0d){const _0x593697=_0x14e4dd;return _0x405b0d['Id']='id',_0x405b0d[_0x593697(0x146)]='name',_0x405b0d[_0x593697(0x20b)]='auto',_0x405b0d;}({});function K(_0xb90ba7,_0x4fe752,_0x3199eb='id'){const _0x2e7101=_0x14e4dd;if(!_0x4fe752)return{};let _0x1141d8={};return Object[_0x2e7101(0x140)](_0x4fe752)[_0x2e7101(0x19c)](([_0x54a29c,_0x578353])=>{_0x1141d8[q(_0xb90ba7,_0x54a29c,_0x3199eb)]=_0x578353;}),_0x1141d8;}function q(_0x3cf5fe,_0x39a395,_0x3d3709){const _0x397f24=_0x14e4dd;if(_0x3d3709==='id'||_0x3d3709===_0x397f24(0x1dd)&&_0x3cf5fe['fields'][_0x39a395])return _0x39a395;let _0x3833b5=Object[_0x397f24(0x15f)](_0x3cf5fe[_0x397f24(0x1f3)])[_0x397f24(0x14f)](_0x14fb7=>_0x14fb7[_0x397f24(0x16e)]===_0x39a395);if(_0x3833b5[_0x397f24(0x1f4)]===0x1)return _0x3833b5[0x0]['id'];throw _0x3833b5[_0x397f24(0x1f4)]>0x1?Error(_0x397f24(0x1ea)+_0x39a395):Error(_0x397f24(0x1f2)+_0x39a395);}var J=class e{constructor(_0x3d91f2,_0x35976c,_0x5209f3,_0x1e7498){const _0x29ba4b=_0x14e4dd;this[_0x29ba4b(0x196)]=_0x3d91f2,this[_0x29ba4b(0x154)]=_0x35976c,this[_0x29ba4b(0x1d5)]=_0x5209f3,this['_inject']=_0x1e7498;}['getId'](){const _0xd186b2=_0x14e4dd;return this[_0xd186b2(0x1d5)];}['getRecord'](){const _0x4da0a1=_0x14e4dd;return this[_0x4da0a1(0x1ce)]();}['getValue'](_0x4dba83){const _0x5878f2=_0x14e4dd;var _0xdf7f8;return(_0xdf7f8=this['_getRecord']()[_0x5878f2(0x15f)][_0x4dba83])==null?null:_0xdf7f8;}[_0x14e4dd(0x163)](){const _0x49a775=_0x14e4dd;return{...this[_0x49a775(0x1ce)]()[_0x49a775(0x15f)]};}['setValue'](_0x36b0b0,_0x562849){const _0x4b9fe9=_0x14e4dd;return this[_0x4b9fe9(0x211)][_0x4b9fe9(0x1bb)](_0x5abfa9)['syncExecuteCommand'](_0x32df63['id'],{'unitId':this[_0x4b9fe9(0x196)][_0x4b9fe9(0x202)](),'tableId':this[_0x4b9fe9(0x154)][_0x4b9fe9(0x202)](),'recordId':this['_recordId'],'fieldId':_0x36b0b0,'value':_0x562849});}['setValues'](_0x493f97,_0x2dc5f7='id'){const _0x149179=_0x14e4dd;let _0x10ed99=this[_0x149179(0x211)][_0x149179(0x1bb)](_0x5abfa9),_0x401e08=this['_table']['getTable'](),_0x28bac0=[{'recordId':this[_0x149179(0x1d5)],'values':K(_0x401e08,_0x493f97,_0x2dc5f7)}];return _0x10ed99[_0x149179(0x1f0)](_0x2e09ab['id'],{'unitId':this[_0x149179(0x196)][_0x149179(0x202)](),'tableId':this[_0x149179(0x154)][_0x149179(0x202)](),'patches':_0x28bac0});}['delete'](){const _0x30df18=_0x14e4dd;return this[_0x30df18(0x211)][_0x30df18(0x1bb)](_0x5abfa9)[_0x30df18(0x1f0)](_0x3f5464['id'],{'unitId':this[_0x30df18(0x196)]['getId'](),'tableId':this[_0x30df18(0x154)]['getId'](),'recordId':this[_0x30df18(0x1d5)]});}[_0x14e4dd(0x19f)](_0x59ebd2){const _0x3d345b=_0x14e4dd;let _0x3dd822=this[_0x3d345b(0x211)][_0x3d345b(0x1bb)](_0x5abfa9),_0x330d60={...this[_0x3d345b(0x1ce)](),..._0x59ebd2,'id':_0x369b18(0x6)};_0x59ebd2!=null&&_0x59ebd2[_0x3d345b(0x15f)]&&(_0x330d60[_0x3d345b(0x15f)]={..._0x330d60[_0x3d345b(0x15f)],..._0x59ebd2[_0x3d345b(0x15f)]});let _0x23fe04=Date['now']();if(_0x330d60[_0x3d345b(0x1e3)]||(_0x330d60[_0x3d345b(0x1e3)]=''+_0x23fe04),_0x330d60[_0x3d345b(0x1de)]||(_0x330d60[_0x3d345b(0x1de)]=_0x23fe04),_0x330d60[_0x3d345b(0x1b1)]||(_0x330d60[_0x3d345b(0x1b1)]=_0x23fe04),!_0x3dd822[_0x3d345b(0x1f0)](_0x1bc765['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x3d345b(0x154)][_0x3d345b(0x202)](),'sourceRecordId':this[_0x3d345b(0x1d5)],'record':_0x330d60}))throw Error(_0x3d345b(0x19a)+this[_0x3d345b(0x1d5)]+'\x22.');return this['_inject']['createInstance'](e,this[_0x3d345b(0x196)],this['_table'],_0x330d60['id'],this[_0x3d345b(0x211)]);}['setOrderKey'](_0x55e6ed){const _0x128570=_0x14e4dd;return this[_0x128570(0x211)][_0x128570(0x1bb)](_0x5abfa9)[_0x128570(0x1f0)](_0x7d992c['id'],{'unitId':this[_0x128570(0x196)][_0x128570(0x202)](),'tableId':this[_0x128570(0x154)][_0x128570(0x202)](),'recordId':this[_0x128570(0x1d5)],'orderKey':_0x55e6ed});}['_getRecord'](){const _0x228900=_0x14e4dd;let _0x28aaf9=this[_0x228900(0x154)][_0x228900(0x161)]()[_0x228900(0x167)][this[_0x228900(0x1d5)]];if(!_0x28aaf9)throw Error(_0x228900(0x17d)+this[_0x228900(0x1d5)]+_0x228900(0x205));return _0x28aaf9;}},Y=class{constructor(_0x4f7d9d,_0x1df3aa,_0xd891dc,_0x49f869){const _0x1f1021=_0x14e4dd;this['_base']=_0x4f7d9d,this['_table']=_0x1df3aa,this[_0x1f1021(0x17b)]=_0xd891dc,this[_0x1f1021(0x185)]=_0x49f869;}[_0x14e4dd(0x202)](){const _0x31ddb4=_0x14e4dd;return this[_0x31ddb4(0x17b)];}[_0x14e4dd(0x14c)](){const _0x11747f=_0x14e4dd;return this[_0x11747f(0x17c)]();}[_0x14e4dd(0x1b2)](){const _0x3cc974=_0x14e4dd;return this[_0x3cc974(0x17c)]()[_0x3cc974(0x16e)];}[_0x14e4dd(0x1b6)](){const _0x5f11a5=_0x14e4dd;return this['_getView']()[_0x5f11a5(0x1d8)];}[_0x14e4dd(0x158)](_0x2f7500){const _0x4ecdf8=_0x14e4dd;return this['_injector'][_0x4ecdf8(0x1bb)](_0x5abfa9)['syncExecuteCommand'](_0x3da8a8['id'],{'unitId':this[_0x4ecdf8(0x196)]['getId'](),'tableId':this[_0x4ecdf8(0x154)][_0x4ecdf8(0x202)](),'viewId':this[_0x4ecdf8(0x17b)],'name':_0x2f7500});}[_0x14e4dd(0x1e6)](){const _0x1b012d=_0x14e4dd;let _0x41d5c8=this['getType'](),_0x27e772=this[_0x1b012d(0x17c)]()[_0x1b012d(0x176)];switch(_0x41d5c8){case _0x1e3dd6[_0x1b012d(0x214)]:return _0x27e772;case _0x1e3dd6[_0x1b012d(0x1a2)]:return _0x27e772;case _0x1e3dd6[_0x1b012d(0x173)]:return _0x27e772;case _0x1e3dd6[_0x1b012d(0x1f7)]:return _0x27e772;case _0x1e3dd6[_0x1b012d(0x217)]:return _0x27e772;default:return _0x27e772;}}[_0x14e4dd(0x20d)](_0x2184f2){const _0x1cf034=_0x14e4dd;return this[_0x1cf034(0x185)][_0x1cf034(0x1bb)](_0x5abfa9)[_0x1cf034(0x1f0)](_0x374a49['id'],{'unitId':this[_0x1cf034(0x196)][_0x1cf034(0x202)](),'tableId':this[_0x1cf034(0x154)][_0x1cf034(0x202)](),'viewId':this['_viewId'],'patch':_0x2184f2});}['getFilter'](){const _0x20e5de=_0x14e4dd;var _0x503b3;return(_0x503b3=this[_0x20e5de(0x17c)]()['filter'])==null?null:_0x503b3;}[_0x14e4dd(0x189)](_0x3af008){const _0x2c8bef=_0x14e4dd;return this[_0x2c8bef(0x185)][_0x2c8bef(0x1bb)](_0x5abfa9)[_0x2c8bef(0x1f0)](_0x218fe1['id'],{'unitId':this[_0x2c8bef(0x196)][_0x2c8bef(0x202)](),'tableId':this[_0x2c8bef(0x154)][_0x2c8bef(0x202)](),'viewId':this[_0x2c8bef(0x17b)],'filter':_0x3af008});}[_0x14e4dd(0x1cb)](){const _0x30c887=_0x14e4dd;var _0x5a3175;return(_0x5a3175=this[_0x30c887(0x17c)]()[_0x30c887(0x15a)])==null?[]:_0x5a3175;}[_0x14e4dd(0x157)](_0x503cd9){const _0x288853=_0x14e4dd;return this['_injector'][_0x288853(0x1bb)](_0x5abfa9)['syncExecuteCommand'](_0x512206['id'],{'unitId':this[_0x288853(0x196)]['getId'](),'tableId':this[_0x288853(0x154)][_0x288853(0x202)](),'viewId':this[_0x288853(0x17b)],'sort':_0x503cd9});}[_0x14e4dd(0x1a1)](){const _0x4db53d=_0x14e4dd;var _0x1fbff5;return(_0x1fbff5=this[_0x4db53d(0x17c)]()[_0x4db53d(0x216)])==null?[]:_0x1fbff5;}['setGroup'](_0x178829){const _0x4a8e58=_0x14e4dd;return this[_0x4a8e58(0x185)][_0x4a8e58(0x1bb)](_0x5abfa9)[_0x4a8e58(0x1f0)](_0x15bccc['id'],{'unitId':this[_0x4a8e58(0x196)][_0x4a8e58(0x202)](),'tableId':this[_0x4a8e58(0x154)]['getId'](),'viewId':this[_0x4a8e58(0x17b)],'group':_0x178829});}[_0x14e4dd(0x169)](_0x50ee13){const _0x4da639=_0x14e4dd;var _0x3460cf,_0x3e52d4;return(_0x3460cf=(_0x3e52d4=this[_0x4da639(0x17c)]()[_0x4da639(0x1c6)])==null?void 0x0:_0x3e52d4[_0x50ee13])==null?{}:_0x3460cf;}['getVisibleFields'](){const _0x4b38d2=_0x14e4dd;var _0x43d2a8;let _0x297f4b=this[_0x4b38d2(0x154)]['getTable'](),_0x10d16c=this[_0x4b38d2(0x17c)]();return((_0x43d2a8=_0x10d16c[_0x4b38d2(0x1e5)])==null?_0x297f4b['fieldOrder']:_0x43d2a8)[_0x4b38d2(0x14f)](_0x45c3a1=>{const _0x1b1268=_0x4b38d2;var _0x5802bc;return _0x297f4b[_0x1b1268(0x1f3)][_0x45c3a1]&&!(!((_0x5802bc=_0x10d16c[_0x1b1268(0x1c6)])==null||(_0x5802bc=_0x5802bc[_0x45c3a1])==null)&&_0x5802bc[_0x1b1268(0x1ab)]);})[_0x4b38d2(0x1fa)](_0x2bcd44=>this[_0x4b38d2(0x185)][_0x4b38d2(0x188)](U,this[_0x4b38d2(0x196)],this[_0x4b38d2(0x154)],_0x2bcd44,this[_0x4b38d2(0x185)]));}[_0x14e4dd(0x213)](_0x2a54ee,_0x29ff8b){const _0x4d3f75=_0x14e4dd;return this[_0x4d3f75(0x185)][_0x4d3f75(0x1bb)](_0x5abfa9)[_0x4d3f75(0x1f0)](_0x573f12['id'],{'unitId':this[_0x4d3f75(0x196)][_0x4d3f75(0x202)](),'tableId':this['_table'][_0x4d3f75(0x202)](),'viewId':this[_0x4d3f75(0x17b)],'fieldId':_0x2a54ee,'visible':_0x29ff8b});}[_0x14e4dd(0x1ae)](_0x27cce3,_0x2ce526){const _0x23fa1d=_0x14e4dd;return this[_0x23fa1d(0x185)][_0x23fa1d(0x1bb)](_0x5abfa9)[_0x23fa1d(0x1f0)](_0x220e87['id'],{'unitId':this[_0x23fa1d(0x196)][_0x23fa1d(0x202)](),'tableId':this[_0x23fa1d(0x154)][_0x23fa1d(0x202)](),'viewId':this[_0x23fa1d(0x17b)],'fieldId':_0x27cce3,'width':_0x2ce526});}[_0x14e4dd(0x1a9)](_0x350b00,_0x3fea67){const _0x178846=_0x14e4dd;return this[_0x178846(0x185)][_0x178846(0x1bb)](_0x5abfa9)['syncExecuteCommand'](_0x392572['id'],{'unitId':this[_0x178846(0x196)]['getId'](),'tableId':this[_0x178846(0x154)]['getId'](),'viewId':this[_0x178846(0x17b)],'fieldId':_0x350b00,'target':_0x3fea67});}['move'](_0x4ad978){const _0x5b52fb=_0x14e4dd;return this[_0x5b52fb(0x185)][_0x5b52fb(0x1bb)](_0x5abfa9)[_0x5b52fb(0x1f0)](_0x1c145b['id'],{'unitId':this['_base'][_0x5b52fb(0x202)](),'tableId':this[_0x5b52fb(0x154)]['getId'](),'viewId':this['_viewId'],'target':_0x4ad978});}[_0x14e4dd(0x206)](){const _0x3fd82c=_0x14e4dd;return this[_0x3fd82c(0x185)][_0x3fd82c(0x1bb)](_0x5abfa9)[_0x3fd82c(0x1f0)](_0x58b979['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x3fd82c(0x154)][_0x3fd82c(0x202)](),'viewId':this['_viewId']});}[_0x14e4dd(0x160)](){const _0xbf3210=_0x14e4dd;return this[_0xbf3210(0x185)][_0xbf3210(0x1bb)](_0xe2f5a2)[_0xbf3210(0x160)](this['_base'][_0xbf3210(0x195)]()[_0xbf3210(0x186)](),this[_0xbf3210(0x154)][_0xbf3210(0x202)](),this[_0xbf3210(0x17b)]);}[_0x14e4dd(0x17c)](){const _0x35962c=_0x14e4dd;let _0x25c385=this[_0x35962c(0x154)][_0x35962c(0x161)]()['views'][this['_viewId']];if(!_0x25c385)throw Error('[FView]:\x20view\x20\x22'+this[_0x35962c(0x17b)]+_0x35962c(0x205));return _0x25c385;}},X=class{constructor(_0x4fcc19,_0x4b3865,_0x37d315){const _0x1f774e=_0x14e4dd;this[_0x1f774e(0x196)]=_0x4fcc19,this[_0x1f774e(0x209)]=_0x4b3865,this[_0x1f774e(0x185)]=_0x37d315;}[_0x14e4dd(0x195)](){const _0x20e4e5=_0x14e4dd;return this[_0x20e4e5(0x196)][_0x20e4e5(0x195)]();}['getTable'](){const _0x43eb45=_0x14e4dd;return this[_0x43eb45(0x18b)]();}[_0x14e4dd(0x202)](){const _0x100823=_0x14e4dd;return this[_0x100823(0x209)];}['getName'](){const _0xdd9723=_0x14e4dd;return this['_getTable']()[_0xdd9723(0x16e)];}[_0x14e4dd(0x158)](_0x5b536a){const _0x295c51=_0x14e4dd;return this['_injector']['get'](_0x5abfa9)[_0x295c51(0x1f0)](_0x7ce364['id'],{'unitId':this['_base'][_0x295c51(0x202)](),'tableId':this['_tableId'],'name':_0x5b536a});}['search'](_0x1c310f,_0x74412e){const _0x529580=_0x14e4dd;var _0x4eb947;let _0x2a227a=this[_0x529580(0x185)][_0x529580(0x1bb)](_0xe2f5a2),_0x277be1=this[_0x529580(0x196)]['getBase']()[_0x529580(0x186)](),_0x593947=this[_0x529580(0x18b)]();if(_0x74412e){var _0x17b132;let _0x4def37=_0x2a227a[_0x529580(0x160)](_0x277be1,this[_0x529580(0x209)],_0x74412e),_0x202fe7=_0x593947[_0x529580(0x17a)][_0x74412e],_0x16fad7=(_0x17b132=_0x1c310f[_0x529580(0x1db)])==null?he(_0x593947,_0x202fe7,_0x4def37):_0x17b132,_0x285aca='rows'in _0x4def37&&Array[_0x529580(0x183)](_0x4def37[_0x529580(0x1e9)])?_0x4def37[_0x529580(0x1e9)]:[];return _0x5b1460({..._0x1c310f,'table':_0x593947,'fieldIds':_0x16fad7,'rows':_0x285aca});}let _0x2718a0=(_0x593947[_0x529580(0x180)]?_0x593947[_0x529580(0x180)][_0x529580(0x1fa)](_0x4467a7=>_0x593947[_0x529580(0x167)][_0x4467a7]):Object['values'](_0x593947[_0x529580(0x167)])[_0x529580(0x15a)]((_0x424c1c,_0x259cb3)=>_0x424c1c['orderKey'][_0x529580(0x19d)](_0x259cb3['orderKey'])))[_0x529580(0x14f)](_0xfde627=>_0xfde627)[_0x529580(0x1fa)](_0x12cf83=>({'recordId':_0x12cf83['id'],'values':_0x12cf83[_0x529580(0x15f)]})),_0x532acb=(_0x4eb947=_0x1c310f[_0x529580(0x1db)])==null?_0x593947[_0x529580(0x1e5)]['filter'](_0x4a72bb=>_0x593947['fields'][_0x4a72bb]):_0x4eb947;return _0x5b1460({..._0x1c310f,'table':_0x593947,'fieldIds':_0x532acb,'rows':_0x2718a0});}['getPrimaryFieldId'](){return this['_getTable']()['primaryFieldId'];}[_0x14e4dd(0x1c8)](){const _0x128fa7=_0x14e4dd;let _0xa3723=this['_getTable']();return _0xa3723[_0x128fa7(0x1e5)]['map'](_0x5afdfb=>_0xa3723['fields'][_0x5afdfb])[_0x128fa7(0x14f)](_0x20cf34=>_0x20cf34)[_0x128fa7(0x1fa)](_0x5d492c=>this[_0x128fa7(0x185)][_0x128fa7(0x188)](U,this[_0x128fa7(0x196)],this,_0x5d492c['id'],this['_injector']));}['getFieldById'](_0x3b0fc8){const _0x442faf=_0x14e4dd;let _0x2654a9=this[_0x442faf(0x18b)]()[_0x442faf(0x1f3)][_0x3b0fc8];return _0x2654a9?this[_0x442faf(0x185)][_0x442faf(0x188)](U,this[_0x442faf(0x196)],this,_0x2654a9['id'],this[_0x442faf(0x185)]):null;}['getFieldByName'](_0x47a5e7){const _0x216b6b=_0x14e4dd;let _0x53a430=this['_getTable']()[_0x216b6b(0x1f3)],_0x5995b1=Object[_0x216b6b(0x15f)](_0x53a430)[_0x216b6b(0x1ca)](_0x3b3ea8=>_0x3b3ea8[_0x216b6b(0x16e)]===_0x47a5e7);return _0x5995b1?this[_0x216b6b(0x185)]['createInstance'](U,this['_base'],this,_0x5995b1['id'],this['_injector']):null;}[_0x14e4dd(0x1fb)](){const _0x3e4a11=_0x14e4dd;let _0x470436=this[_0x3e4a11(0x18b)]()[_0x3e4a11(0x1a4)];return this[_0x3e4a11(0x185)][_0x3e4a11(0x188)](U,this['_base'],this,_0x470436,this[_0x3e4a11(0x185)]);}[_0x14e4dd(0x1d2)](_0x2076f4,_0x49c6c9,_0x4d3df7){const _0x26a697=_0x14e4dd;var _0x32bd38;let _0x4ea51c=this[_0x26a697(0x185)][_0x26a697(0x1bb)](_0x5abfa9),_0x4ceddb=(_0x32bd38=_0x4d3df7==null?void 0x0:_0x4d3df7[_0x26a697(0x1cd)])==null?{}:_0x32bd38;if(_0x4ceddb['id']=_0x369b18(0x6),_0x4ceddb[_0x26a697(0x16e)]=_0x2076f4,_0x4ceddb[_0x26a697(0x1d8)]=_0x49c6c9,!_0x4ceddb[_0x26a697(0x1d8)])throw Error(_0x26a697(0x17f));if(_0x4ceddb[_0x26a697(0x176)]||(_0x4ceddb[_0x26a697(0x176)]={}),!_0x4ea51c[_0x26a697(0x1f0)](_0x5cc92c['id'],{'unitId':this[_0x26a697(0x196)]['getId'](),'tableId':this[_0x26a697(0x209)],'field':_0x4ceddb,'index':_0x4d3df7==null?void 0x0:_0x4d3df7['index']}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x2076f4+'\x22');return this[_0x26a697(0x185)][_0x26a697(0x188)](U,this[_0x26a697(0x196)],this,_0x4ceddb['id'],this['_injector']);}[_0x14e4dd(0x14d)](){const _0x5c73f8=_0x14e4dd;return this[_0x5c73f8(0x1fd)]()[_0x5c73f8(0x1fa)](_0x3f4256=>this[_0x5c73f8(0x185)][_0x5c73f8(0x188)](J,this[_0x5c73f8(0x196)],this,_0x3f4256,this[_0x5c73f8(0x185)]));}['getRecordById'](_0x280c2c){const _0x56b9a7=_0x14e4dd;return this['_getTable']()[_0x56b9a7(0x167)][_0x280c2c]?this[_0x56b9a7(0x185)]['createInstance'](J,this[_0x56b9a7(0x196)],this,_0x280c2c,this['_injector']):null;}[_0x14e4dd(0x215)](_0x386dd5={}){const _0x156272=_0x14e4dd;var _0x3224f4;let _0x3be364=this[_0x156272(0x18b)](),_0x2dd8f3=this[_0x156272(0x1fd)](_0x386dd5),_0x3b3f4b=Math[_0x156272(0x199)](0x0,(_0x3224f4=_0x386dd5[_0x156272(0x178)])==null?0x0:_0x3224f4),_0x1df6ba=_0x386dd5[_0x156272(0x165)]==null?null:Math['max'](0x0,_0x386dd5[_0x156272(0x165)]),_0x4eb746=ue(_0x2dd8f3[_0x156272(0x1fa)](_0x293402=>_0x3be364[_0x156272(0x167)][_0x293402])['filter'](_0xd7fb41=>fe(_0xd7fb41,_0x3be364,_0x386dd5[_0x156272(0x14f)])),_0x3be364,_0x386dd5[_0x156272(0x15a)]);return{'records':le(_0x4eb746,_0x386dd5)[_0x156272(0x1fa)](_0x37bea9=>this[_0x156272(0x185)][_0x156272(0x188)](J,this['_base'],this,_0x37bea9['id'],this[_0x156272(0x185)])),'total':_0x4eb746[_0x156272(0x1f4)],'offset':_0x3b3f4b,'limit':_0x1df6ba,'hasMore':_0x1df6ba!=null&&_0x3b3f4b+_0x1df6ba<_0x4eb746[_0x156272(0x1f4)]};}[_0x14e4dd(0x1cc)](_0x5d2ec1,_0x417013='id',_0x221662){const _0x63fba6=_0x14e4dd;let _0x171dde=this['_injector']['get'](_0x5abfa9),_0x31efc9=this['_getTable'](),_0x5c5a9e=_0x221662==null?{}:_0x221662;_0x5c5a9e['id']=_0x369b18(0x6),_0x5c5a9e[_0x63fba6(0x15f)]=K(_0x31efc9,_0x5d2ec1,_0x417013);let _0x5ec10d=Date[_0x63fba6(0x1eb)]();if(_0x5c5a9e[_0x63fba6(0x1e3)]||(_0x5c5a9e['orderKey']=''+_0x5ec10d),_0x5c5a9e['createdAt']||(_0x5c5a9e[_0x63fba6(0x1de)]=_0x5ec10d),_0x5c5a9e[_0x63fba6(0x1b1)]||(_0x5c5a9e['updatedAt']=_0x5ec10d),!_0x171dde['syncExecuteCommand'](_0x3b13bf['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x63fba6(0x209)],'record':_0x5c5a9e}))throw Error(_0x63fba6(0x1a3)+_0x5c5a9e['id']+'\x22');return this[_0x63fba6(0x185)][_0x63fba6(0x188)](J,this[_0x63fba6(0x196)],this,_0x5c5a9e['id'],this[_0x63fba6(0x185)]);}[_0x14e4dd(0x1b8)](_0x722aa2){const _0x51d1e3=_0x14e4dd;if(!_0x722aa2['length'])return[];let _0x34935d=this['_injector'][_0x51d1e3(0x1bb)](_0x5abfa9),_0x37259a=this[_0x51d1e3(0x18b)](),_0x586f1d=Date[_0x51d1e3(0x1eb)](),_0x599623=_0x722aa2[_0x51d1e3(0x1fa)]((_0xbcd8af,_0x3c066d)=>{const _0xf6b92f=_0x51d1e3;var _0x207b1a,_0x36cff7;let _0x221f22=(_0x207b1a=_0xbcd8af['record'])==null?{}:_0x207b1a;return _0x221f22['id']=_0x369b18(0x6),_0x221f22['values']=K(_0x37259a,_0xbcd8af[_0xf6b92f(0x15f)],(_0x36cff7=_0xbcd8af[_0xf6b92f(0x18d)])==null?'id':_0x36cff7),_0x221f22['orderKey']||(_0x221f22[_0xf6b92f(0x1e3)]=''+(_0x586f1d+_0x3c066d)),_0x221f22[_0xf6b92f(0x1de)]||(_0x221f22[_0xf6b92f(0x1de)]=_0x586f1d),_0x221f22['updatedAt']||(_0x221f22['updatedAt']=_0x586f1d),_0x221f22;});if(!_0x34935d[_0x51d1e3(0x1f0)](_0x118e37['id'],{'unitId':this['_base'][_0x51d1e3(0x202)](),'tableId':this[_0x51d1e3(0x209)],'records':_0x599623}))throw Error(_0x51d1e3(0x1a7));return _0x599623[_0x51d1e3(0x1fa)](_0x361a7b=>this[_0x51d1e3(0x185)]['createInstance'](J,this[_0x51d1e3(0x196)],this,_0x361a7b['id'],this[_0x51d1e3(0x185)]));}['deleteRecords'](_0x1b87df){const _0x27817e=_0x14e4dd;return _0x1b87df[_0x27817e(0x1f4)]?this[_0x27817e(0x185)]['get'](_0x5abfa9)['syncExecuteCommand'](_0x263dd2['id'],{'unitId':this[_0x27817e(0x196)][_0x27817e(0x202)](),'tableId':this['_tableId'],'recordIds':_0x1b87df}):!0x0;}[_0x14e4dd(0x14b)](_0xde9f88,_0x356b67,_0x58f33a=0x1,_0x58126f=0x1){const _0x43e6b8=_0x14e4dd;return this[_0x43e6b8(0x185)]['createInstance'](W,this[_0x43e6b8(0x196)],this,{'startRow':_0xde9f88,'endRow':_0xde9f88+_0x58f33a-0x1,'startColumn':_0x356b67,'endColumn':_0x356b67+_0x58126f-0x1},this['_injector']);}['getDataRange'](){const _0x2e10bc=_0x14e4dd;var _0x536e3b,_0x265227;let _0x446b39=_0x2c8835(this['_getTable']()),_0x48a9f3=(_0x536e3b=(_0x265227=_0x446b39[_0x2e10bc(0x180)])==null?void 0x0:_0x265227[_0x2e10bc(0x1f4)])==null?0x0:_0x536e3b,_0x5d0c93=_0x446b39[_0x2e10bc(0x1e5)][_0x2e10bc(0x1f4)];return this[_0x2e10bc(0x14b)](0x0,0x0,Math[_0x2e10bc(0x199)](_0x48a9f3,0x1),Math['max'](_0x5d0c93,0x1));}['getViews'](){const _0x32ceb0=_0x14e4dd;let _0x572a95=this[_0x32ceb0(0x18b)]();return _0x572a95[_0x32ceb0(0x1d0)][_0x32ceb0(0x14f)](_0x304ae4=>_0x572a95[_0x32ceb0(0x17a)][_0x304ae4])[_0x32ceb0(0x1fa)](_0x3728cb=>this[_0x32ceb0(0x185)][_0x32ceb0(0x188)](Y,this[_0x32ceb0(0x196)],this,_0x3728cb,this['_injector']));}[_0x14e4dd(0x1b5)](_0x15feb3){const _0x1a8286=_0x14e4dd;return this[_0x1a8286(0x18b)]()[_0x1a8286(0x17a)][_0x15feb3]?this['_injector']['createInstance'](Y,this[_0x1a8286(0x196)],this,_0x15feb3,this[_0x1a8286(0x185)]):null;}['getViewByName'](_0x183b55){const _0x37f033=_0x14e4dd;let _0x1f5fc3=this[_0x37f033(0x18b)](),_0x5abd2a=Object[_0x37f033(0x15f)](_0x1f5fc3['views'])[_0x37f033(0x1ca)](_0x45b9ea=>_0x45b9ea[_0x37f033(0x16e)]===_0x183b55);return _0x5abd2a?this['_injector'][_0x37f033(0x188)](Y,this['_base'],this,_0x5abd2a['id'],this[_0x37f033(0x185)]):null;}['createView'](_0x33fed7,_0x5974d2,_0xdffa40){const _0x2b04e0=_0x14e4dd;var _0x56bcd4;let _0x39a942=this[_0x2b04e0(0x185)][_0x2b04e0(0x1bb)](_0x5abfa9),_0x240012=this[_0x2b04e0(0x18b)](),_0x574518=(_0x56bcd4=_0xdffa40==null?void 0x0:_0xdffa40[_0x2b04e0(0x1aa)])==null?{}:_0x56bcd4;if(_0x574518['id']=_0x369b18(0x6),_0x574518[_0x2b04e0(0x16e)]=_0x33fed7,_0x574518[_0x2b04e0(0x1d8)]=_0x5974d2,_0x574518[_0x2b04e0(0x1d1)]=this[_0x2b04e0(0x209)],!_0x574518['type'])throw Error('View\x20type\x20is\x20required');if(_0x574518['config']||(_0x574518[_0x2b04e0(0x176)]={}),_0x574518[_0x2b04e0(0x1e5)]||(_0x574518[_0x2b04e0(0x1e5)]=[..._0x240012[_0x2b04e0(0x1e5)]]),!_0x39a942[_0x2b04e0(0x1f0)](_0x2d3862['id'],{'unitId':this[_0x2b04e0(0x196)][_0x2b04e0(0x202)](),'tableId':this['_tableId'],'view':_0x574518,'index':_0xdffa40==null?void 0x0:_0xdffa40['index']}))throw Error(_0x2b04e0(0x145)+_0x33fed7+'\x22');return this['_injector'][_0x2b04e0(0x188)](Y,this[_0x2b04e0(0x196)],this,_0x574518['id'],this[_0x2b04e0(0x185)]);}[_0x14e4dd(0x177)](){const _0x14e7bd=_0x14e4dd;let _0x12b5c2=this[_0x14e7bd(0x18b)](),_0x59e925=_0x12b5c2[_0x14e7bd(0x1e5)][_0x14e7bd(0x14f)](_0xed1e97=>_0x12b5c2[_0x14e7bd(0x1f3)][_0xed1e97]),_0x2027a2=_0x12b5c2[_0x14e7bd(0x1d0)][_0x14e7bd(0x14f)](_0x80cec9=>_0x12b5c2[_0x14e7bd(0x17a)][_0x80cec9]);return{'id':_0x12b5c2['id'],'name':_0x12b5c2[_0x14e7bd(0x16e)],'primaryFieldId':_0x12b5c2[_0x14e7bd(0x1a4)],'fieldIds':_0x59e925,'viewIds':_0x2027a2,'recordCount':this[_0x14e7bd(0x1fd)]()[_0x14e7bd(0x1f4)],'fields':_0x59e925[_0x14e7bd(0x1fa)](_0x17340a=>{const _0x48fe2f=_0x14e7bd;let _0x165299=_0x12b5c2[_0x48fe2f(0x1f3)][_0x17340a];return{'id':_0x165299['id'],'name':_0x165299[_0x48fe2f(0x16e)],'type':_0x165299['type'],'config':_0x165299[_0x48fe2f(0x176)],'readonly':_0x165299[_0x48fe2f(0x1b4)],'description':_0x165299['description']};}),'views':_0x2027a2[_0x14e7bd(0x1fa)](_0x341a1e=>{const _0x19d810=_0x14e7bd;let _0x60081b=_0x12b5c2[_0x19d810(0x17a)][_0x341a1e];return{'id':_0x60081b['id'],'name':_0x60081b[_0x19d810(0x16e)],'type':_0x60081b['type']};})};}[_0x14e4dd(0x18b)](){const _0x14dc0b=_0x14e4dd;let _0x54e668=this[_0x14dc0b(0x196)][_0x14dc0b(0x195)]()[_0x14dc0b(0x186)]()['tables'][this[_0x14dc0b(0x209)]];if(!_0x54e668)throw Error(_0x14dc0b(0x1af)+this[_0x14dc0b(0x209)]+_0x14dc0b(0x205));return _0x54e668;}[_0x14e4dd(0x1fd)](_0x37ae6a={}){const _0x41385e=_0x14e4dd;let _0x4ee05b=this[_0x41385e(0x185)][_0x41385e(0x1bb)](_0xe2f5a2),_0x34f625=this[_0x41385e(0x196)][_0x41385e(0x195)]()[_0x41385e(0x186)](),_0x2dfcd7=this['_getTable']();if(_0x37ae6a['viewId']){let _0x5a2072=_0x4ee05b[_0x41385e(0x160)](_0x34f625,this[_0x41385e(0x209)],_0x37ae6a[_0x41385e(0x182)]);if(_0x41385e(0x1e9)in _0x5a2072&&Array[_0x41385e(0x183)](_0x5a2072[_0x41385e(0x1e9)]))return _0x5a2072['rows'][_0x41385e(0x1fa)](_0x2990d4=>_0x2990d4['recordId']);}return(_0x2dfcd7['recordOrder']?_0x2dfcd7[_0x41385e(0x180)][_0x41385e(0x1fa)](_0x4b8db0=>_0x2dfcd7[_0x41385e(0x167)][_0x4b8db0]):Object[_0x41385e(0x15f)](_0x2dfcd7['records'])[_0x41385e(0x15a)]((_0xe19c34,_0x35851a)=>_0xe19c34[_0x41385e(0x1e3)][_0x41385e(0x19d)](_0x35851a[_0x41385e(0x1e3)])))[_0x41385e(0x14f)](_0x371126=>_0x371126)['map'](_0x4c4919=>_0x4c4919['id']);}};function le(_0x46a242,_0x34a4d4){const _0x34c6de=_0x14e4dd;var _0x3923d4;let _0x11b182=Math['max'](0x0,(_0x3923d4=_0x34a4d4[_0x34c6de(0x178)])==null?0x0:_0x3923d4);return _0x34a4d4[_0x34c6de(0x165)]==null?_0x46a242['slice'](_0x11b182):_0x46a242['slice'](_0x11b182,_0x11b182+Math['max'](0x0,_0x34a4d4[_0x34c6de(0x165)]));}function ue(_0x118505,_0x243515,_0x1b194d=[]){const _0x5748ca=_0x14e4dd;return _0x1b194d[_0x5748ca(0x1f4)]?[..._0x118505][_0x5748ca(0x15a)]((_0x3dd710,_0x503b8a)=>{const _0x109010=_0x5748ca;var _0x2c798d,_0x49d587;for(let _0x5600d0 of _0x1b194d){var _0x4b2b43;let _0x3871bb=_0x5600d0['direction']===_0x3c0cc3[_0x109010(0x166)]?-0x1:0x1,_0x4fb270=de(_0x3dd710[_0x109010(0x15f)][_0x5600d0[_0x109010(0x181)]],_0x503b8a[_0x109010(0x15f)][_0x5600d0[_0x109010(0x181)]],(_0x4b2b43=_0x243515[_0x109010(0x1f3)][_0x5600d0[_0x109010(0x181)]])==null?void 0x0:_0x4b2b43[_0x109010(0x1d8)]);if(_0x4fb270!==0x0)return _0x4fb270*_0x3871bb;}return String((_0x2c798d=_0x3dd710[_0x109010(0x1e3)])==null?_0x3dd710['id']:_0x2c798d)[_0x109010(0x19d)](String((_0x49d587=_0x503b8a[_0x109010(0x1e3)])==null?_0x503b8a['id']:_0x49d587));}):_0x118505;}function de(_0x50845e,_0x2541db,_0x3467c5){const _0x142763=_0x14e4dd;return _0x50845e==null&&_0x2541db==null?0x0:_0x50845e==null?-0x1:_0x2541db==null?0x1:typeof _0x50845e==_0x142763(0x210)&&typeof _0x2541db==_0x142763(0x210)?_0x50845e-_0x2541db:_0x3467c5===_0x3329dc['Date']?Number(_0x50845e)-Number(_0x2541db):String(_0x50845e)[_0x142763(0x19d)](String(_0x2541db));}function fe(_0x4fd521,_0x384950,_0x197d2d){const _0x3dbaee=_0x14e4dd;var _0x5c7524;if(!_0x197d2d||!((_0x5c7524=_0x197d2d[_0x3dbaee(0x1bf)])!=null&&_0x5c7524[_0x3dbaee(0x1f4)]))return!0x0;let {conjunction:_0x3c7ec0=_0x2cba2d['OR'],conditions:_0x38b762}=_0x197d2d;return _0x3c7ec0===_0x2cba2d['AND']&&_0x38b762[_0x3dbaee(0x1f4)]>0x1?_0x38b762['every'](_0xb841d9=>Z(_0x4fd521,_0x384950,_0xb841d9)):_0x38b762[_0x3dbaee(0x1d9)](_0x45556c=>Z(_0x4fd521,_0x384950,_0x45556c));}function Z(_0x4e8439,_0x35dfaf,_0x485ec7){const _0x19ddb8=_0x14e4dd;let _0x1c6a80=_0x4e8439[_0x19ddb8(0x15f)][_0x485ec7[_0x19ddb8(0x181)]],_0x328bd4=_0x35dfaf[_0x19ddb8(0x1f3)][_0x485ec7[_0x19ddb8(0x181)]];if(pe(_0x485ec7)){let _0x402a7a=me(_0x485ec7)['test'](String(_0x1c6a80==null?'':_0x1c6a80));return _0x485ec7['operator']==='matches'?_0x402a7a:!_0x402a7a;}return _0x328bd4?_0x205855(_0x1c6a80,_0x485ec7[_0x19ddb8(0x204)],_0x485ec7[_0x19ddb8(0x20a)],_0x328bd4):!0x0;}function pe(_0x33dd18){const _0x5f2fc1=_0x14e4dd;return _0x33dd18[_0x5f2fc1(0x204)]===_0x5f2fc1(0x1da)||_0x33dd18['operator']==='notMatches';}function _0x557f(_0x59b2a5,_0x11a61b){_0x59b2a5=_0x59b2a5-0x13d;const _0x147a79=_0x147a();let _0x557ffc=_0x147a79[_0x59b2a5];return _0x557ffc;}function me(_0x3e9433){const _0x833b06=_0x14e4dd;var _0x100287;let _0x30d820=String((_0x100287=_0x3e9433[_0x833b06(0x20a)])==null?'':_0x100287);if(_0x30d820[_0x833b06(0x1f4)]>0x200)throw Error(_0x833b06(0x1ed));try{return new RegExp(_0x30d820,_0x3e9433[_0x833b06(0x194)]?void 0x0:'i');}catch(_0x33cb49){throw Error(_0x833b06(0x19e)+_0x30d820+'.\x20'+(_0x33cb49 instanceof Error?_0x33cb49[_0x833b06(0x153)]:String(_0x33cb49)));}}function he(_0x15e34d,_0x51f63d,_0x2c3f00){const _0x4a2891=_0x14e4dd;if(_0x2c3f00[_0x4a2891(0x1d8)]!=='invalid'){var _0x10bcb0;if(_0x2c3f00[_0x4a2891(0x1d8)]===_0x1e3dd6[_0x4a2891(0x1a2)]){var _0x3e8f73,_0x5a5ff5,_0x389a11;let _0x5ce93b=[(_0x3e8f73=(_0x5a5ff5=_0x2c3f00[_0x4a2891(0x1f3)])==null||(_0x5a5ff5=_0x5a5ff5[0x0])==null?void 0x0:_0x5a5ff5['id'])==null?_0x15e34d[_0x4a2891(0x1a4)]:_0x3e8f73,...(_0x389a11=_0x2c3f00[_0x4a2891(0x1c3)])==null?[]:_0x389a11];return Array[_0x4a2891(0x149)](new Set(_0x5ce93b[_0x4a2891(0x14f)](_0x37c087=>!!_0x15e34d[_0x4a2891(0x1f3)][_0x37c087])));}if((_0x10bcb0=_0x2c3f00[_0x4a2891(0x1f3)])!=null&&_0x10bcb0['length'])return _0x2c3f00[_0x4a2891(0x1f3)][_0x4a2891(0x1fa)](_0x9f0016=>_0x9f0016['id'])[_0x4a2891(0x14f)](_0x247e6f=>{const _0x3fe067=_0x4a2891;var _0x5ac842;return!!(_0x15e34d[_0x3fe067(0x1f3)][_0x247e6f]&&!(!(_0x51f63d==null||(_0x5ac842=_0x51f63d[_0x3fe067(0x1c6)])==null||(_0x5ac842=_0x5ac842[_0x247e6f])==null)&&_0x5ac842[_0x3fe067(0x1ab)]));});}return _0x15e34d[_0x4a2891(0x1e5)][_0x4a2891(0x14f)](_0x400301=>{const _0x5a92e9=_0x4a2891;var _0x43d20d;return!!(_0x15e34d[_0x5a92e9(0x1f3)][_0x400301]&&!(!(_0x51f63d==null||(_0x43d20d=_0x51f63d[_0x5a92e9(0x1c6)])==null||(_0x43d20d=_0x43d20d[_0x400301])==null)&&_0x43d20d['hidden']));});}function ge(_0x5eadde,_0x364454){return function(_0x199c19,_0x303e60){_0x364454(_0x199c19,_0x303e60,_0x5eadde);};}function _e(_0x2ccba7,_0x4454ed,_0x57cf61,_0x1615b4){const _0x1322e7=_0x14e4dd;var _0x35f0a3=arguments[_0x1322e7(0x1f4)],_0x30b146=_0x35f0a3<0x3?_0x4454ed:_0x1615b4===null?_0x1615b4=Object[_0x1322e7(0x141)](_0x4454ed,_0x57cf61):_0x1615b4,_0x5a630d;if(typeof Reflect==_0x1322e7(0x170)&&typeof Reflect['decorate']==_0x1322e7(0x203))_0x30b146=Reflect['decorate'](_0x2ccba7,_0x4454ed,_0x57cf61,_0x1615b4);else{for(var _0x4ec430=_0x2ccba7[_0x1322e7(0x1f4)]-0x1;_0x4ec430>=0x0;_0x4ec430--)(_0x5a630d=_0x2ccba7[_0x4ec430])&&(_0x30b146=(_0x35f0a3<0x3?_0x5a630d(_0x30b146):_0x35f0a3>0x3?_0x5a630d(_0x4454ed,_0x57cf61,_0x30b146):_0x5a630d(_0x4454ed,_0x57cf61))||_0x30b146);}return _0x35f0a3>0x3&&_0x30b146&&Object[_0x1322e7(0x20f)](_0x4454ed,_0x57cf61,_0x30b146),_0x30b146;}let Q=class{constructor(_0x1f186d,_0x25cbe3){const _0x3495b9=_0x14e4dd;this['_base']=_0x1f186d,this[_0x3495b9(0x185)]=_0x25cbe3;}['getBase'](){const _0x4c3d62=_0x14e4dd;return this[_0x4c3d62(0x196)];}[_0x14e4dd(0x202)](){const _0x230acb=_0x14e4dd;return this[_0x230acb(0x196)][_0x230acb(0x144)]();}['save'](){const _0x95d29b=_0x14e4dd;return _0xad0c7b[_0x95d29b(0x1be)](this['_base'][_0x95d29b(0x186)]());}[_0x14e4dd(0x1b2)](){const _0x1a6d3e=_0x14e4dd;return this['_base'][_0x1a6d3e(0x186)]()[_0x1a6d3e(0x16e)];}[_0x14e4dd(0x158)](_0xd57a4){const _0x46b6ae=_0x14e4dd;this['_injector'][_0x46b6ae(0x1bb)](_0x5abfa9)['syncExecuteCommand'](_0x28caa0['id'],{'unitId':this[_0x46b6ae(0x202)](),'name':_0xd57a4});}['getTables'](){const _0x15e967=_0x14e4dd;let _0x32a597=this[_0x15e967(0x196)][_0x15e967(0x186)]();return _0x32a597['tableOrder'][_0x15e967(0x1fa)](_0x2f25ae=>_0x32a597['tables'][_0x2f25ae])[_0x15e967(0x14f)](_0x1ba8d0=>_0x1ba8d0)[_0x15e967(0x1fa)](_0x571c62=>this[_0x15e967(0x185)][_0x15e967(0x188)](X,this,_0x571c62['id'],this[_0x15e967(0x185)]));}[_0x14e4dd(0x1c1)](_0x473f43){const _0x4e97b1=_0x14e4dd;let _0x38cd55=this[_0x4e97b1(0x196)][_0x4e97b1(0x186)]()[_0x4e97b1(0x13f)][_0x473f43];return _0x38cd55?this[_0x4e97b1(0x185)]['createInstance'](X,this,_0x38cd55['id'],this[_0x4e97b1(0x185)]):null;}[_0x14e4dd(0x1dc)](_0x1b141d){const _0x38dfb9=_0x14e4dd;let _0x59ca17=this[_0x38dfb9(0x196)][_0x38dfb9(0x186)](),_0xc1fc3=Object[_0x38dfb9(0x15f)](_0x59ca17[_0x38dfb9(0x13f)])[_0x38dfb9(0x1ca)](_0x44c8aa=>_0x44c8aa[_0x38dfb9(0x16e)]===_0x1b141d);return _0xc1fc3?this[_0x38dfb9(0x185)][_0x38dfb9(0x188)](X,this,_0xc1fc3['id'],this[_0x38dfb9(0x185)]):null;}[_0x14e4dd(0x1f9)](_0x27646c,_0x590fc1){const _0xe35de1=_0x14e4dd;var _0x2f2635;let _0x10a4e9=this[_0xe35de1(0x185)][_0xe35de1(0x1bb)](_0x5abfa9),_0x26ea05=_0x34e4df({'id':_0x369b18(),'name':_0x27646c,..._0x590fc1==null?void 0x0:_0x590fc1[_0xe35de1(0x1b7)],'primaryFieldName':_0x590fc1==null?void 0x0:_0x590fc1[_0xe35de1(0x175)]}),_0x17a80e=_0xad0c7b[_0xe35de1(0x1c4)](_0x26ea05,(_0x2f2635=_0x590fc1==null?void 0x0:_0x590fc1[_0xe35de1(0x1b7)])==null?{}:_0x2f2635);if(!_0x10a4e9[_0xe35de1(0x1f0)](_0x986b77['id'],{'unitId':this[_0xe35de1(0x196)][_0xe35de1(0x144)](),'table':_0x17a80e,'index':_0x590fc1==null?void 0x0:_0x590fc1['index']}))throw Error(_0xe35de1(0x187)+_0x27646c+'\x22.');return this['_injector'][_0xe35de1(0x188)](X,this,_0x17a80e['id'],this[_0xe35de1(0x185)]);}[_0x14e4dd(0x1fe)](_0x11330a){const _0x1da21d=_0x14e4dd;let _0x1c0ad5=this[_0x1da21d(0x185)][_0x1da21d(0x1bb)](_0x5abfa9),_0x55691e=typeof _0x11330a=='string'?_0x11330a:_0x11330a['getId']();if(!_0x1c0ad5[_0x1da21d(0x1f0)](_0x30a626['id'],{'unitId':this[_0x1da21d(0x196)]['getUnitId'](),'tableId':_0x55691e}))throw Error('Failed\x20to\x20delete\x20table\x20\x22'+_0x55691e+'\x22.');return!0x0;}['duplicateTable'](_0x3da3ed,_0x2d7e88){const _0x4d23f9=_0x14e4dd;var _0x3d1116,_0x397235;let _0xe3f204=this[_0x4d23f9(0x185)]['get'](_0x5abfa9),_0x5ce6ec=this[_0x4d23f9(0x196)][_0x4d23f9(0x186)](),_0x4693e6=typeof _0x3da3ed==_0x4d23f9(0x13e)?_0x3da3ed:_0x3da3ed[_0x4d23f9(0x202)](),_0x432968=_0x5ce6ec['tables'][_0x4693e6];if(!_0x432968)throw Error(_0x4d23f9(0x14e)+_0x4693e6+_0x4d23f9(0x205));let _0x23b4ae=_0x5ce6ec[_0x4d23f9(0x1a8)][_0x4d23f9(0x151)](_0x4693e6)+0x1,_0x4298f3=_0x46ad2d(_0x432968,{'id':_0x369b18(),'name':_0x432968[_0x4d23f9(0x16e)]+_0x4d23f9(0x1df),'includeRecords':(_0x3d1116=_0x2d7e88==null?void 0x0:_0x2d7e88['includeRecords'])==null?!0x1:_0x3d1116,'regenerateViewIds':(_0x397235=_0x2d7e88==null?void 0x0:_0x2d7e88[_0x4d23f9(0x184)])==null?!0x1:_0x397235});if(!_0xe3f204[_0x4d23f9(0x1f0)](_0x986b77['id'],{'unitId':this['_base'][_0x4d23f9(0x144)](),'table':_0x4298f3,'index':_0x23b4ae}))throw Error(_0x4d23f9(0x143)+_0x4693e6+'\x22.');return this['_injector'][_0x4d23f9(0x188)](X,this,_0x4298f3['id'],this[_0x4d23f9(0x185)]);}['getSchema'](){const _0x41c7a1=_0x14e4dd;let _0x376ecf=this['_base'][_0x41c7a1(0x186)]();return{'id':_0x376ecf['id'],'name':_0x376ecf[_0x41c7a1(0x16e)],'tables':this[_0x41c7a1(0x1e8)]()['map'](_0x3e217f=>_0x3e217f[_0x41c7a1(0x177)]())};}};Q=_e([ge(0x1,_0x275d46(_0x22fd86))],Q);var ve=class extends _0xce4c3f{[_0x14e4dd(0x191)](){const _0x419e84=_0x14e4dd;this['_initBaseBeforeEvents'](),this[_0x419e84(0x1f8)]();}[_0x14e4dd(0x15c)](_0x5ec6e8={},_0x185f9b){const _0x1c1402=_0x14e4dd;let _0xd07d04=this['_injector']['get'](_0x417894)['createUnit'](_0x28bcd4['UNIVER_BASE'],_0x5ec6e8,_0x185f9b);return this[_0x1c1402(0x185)][_0x1c1402(0x188)](Q,_0xd07d04);}[_0x14e4dd(0x1a6)](){const _0x3fe94f=_0x14e4dd;let _0x3195ce=this[_0x3fe94f(0x185)][_0x3fe94f(0x1bb)](_0x417894)[_0x3fe94f(0x142)](_0x28bcd4[_0x3fe94f(0x1c9)]);return _0x3195ce?this['_injector'][_0x3fe94f(0x188)](Q,_0x3195ce):null;}[_0x14e4dd(0x195)](_0x46d8a2){const _0x34bf30=_0x14e4dd;let _0x10a050=this['_injector'][_0x34bf30(0x1bb)](_0x417894)['getUnit'](_0x46d8a2,_0x28bcd4[_0x34bf30(0x1c9)]);return _0x10a050?this[_0x34bf30(0x185)][_0x34bf30(0x188)](Q,_0x10a050):null;}[_0x14e4dd(0x1f1)](){const _0xc54d6b=_0x14e4dd;return this[_0xc54d6b(0x185)]['get'](_0x417894)[_0xc54d6b(0x1e0)](_0x28bcd4[_0xc54d6b(0x1c9)])[_0xc54d6b(0x1fa)](_0x2b5cdf=>this[_0xc54d6b(0x185)][_0xc54d6b(0x188)](Q,_0x2b5cdf));}['_initBaseAfterEvents'](){const _0x551010=_0x14e4dd;let _0x52f3a8=this[_0x551010(0x185)][_0x551010(0x1bb)](_0x5abfa9);this[_0x551010(0x1ee)](this['registerEventHandler'](this[_0x551010(0x1ff)][_0x551010(0x171)],()=>_0x52f3a8[_0x551010(0x17e)](_0x1a3ccb=>{const _0x2c307e=_0x551010;if(_0x1a3ccb['id']!==_0x986b77['id'])return;let {unitId:_0x2154f4,table:_0x470171,index:_0x41df59}=_0x1a3ccb[_0x2c307e(0x1a5)],_0x3374c8=this[_0x2c307e(0x195)](_0x2154f4);if(!_0x3374c8)return;let _0x532032={'base':_0x3374c8,'table':_0x470171,'index':_0x41df59};this[_0x2c307e(0x174)](this[_0x2c307e(0x1ff)][_0x2c307e(0x171)],_0x532032);}))),this['disposeWithMe'](this[_0x551010(0x18a)](this['Event'][_0x551010(0x148)],()=>_0x52f3a8[_0x551010(0x17e)](_0x2df174=>{const _0x123304=_0x551010;if(_0x2df174['id']!==_0x5cc92c['id'])return;let {unitId:_0x33f76c,tableId:_0x4508ea,field:_0x4c1cb9,index:_0x56cef8,viewIndexes:_0x25e31f}=_0x2df174[_0x123304(0x1a5)],_0xf7da77=this[_0x123304(0x195)](_0x33f76c);if(!_0xf7da77)return;let _0x2a6152=_0xf7da77['getTableById'](_0x4508ea);if(!_0x2a6152)return;let _0x148f76={'base':_0xf7da77,'table':_0x2a6152,'field':_0x4c1cb9,'index':_0x56cef8,'viewIndexes':_0x25e31f};this[_0x123304(0x174)](this['Event'][_0x123304(0x148)],_0x148f76);}))),this[_0x551010(0x1ee)](this['registerEventHandler'](this[_0x551010(0x1ff)][_0x551010(0x152)],()=>_0x52f3a8['onCommandExecuted'](_0x528b68=>{const _0x436fea=_0x551010;var _0x553374;if(_0x528b68['id']!==_0x3b13bf['id']&&_0x528b68['id']!==_0x118e37['id'])return;let _0x4b5b1a=_0x528b68['params'],{unitId:_0x3c3a50,tableId:_0x3fa492}=_0x4b5b1a,_0x2c357a=(_0x553374=_0x4b5b1a[_0x436fea(0x167)])==null?[_0x4b5b1a[_0x436fea(0x190)]]:_0x553374,_0x289a58=this[_0x436fea(0x195)](_0x3c3a50);if(!_0x289a58)return;let _0x112218=_0x289a58[_0x436fea(0x1c1)](_0x3fa492);if(!_0x112218)return;let _0x5ecd3f={'base':_0x289a58,'table':_0x112218,'records':_0x2c357a};this[_0x436fea(0x174)](this['Event'][_0x436fea(0x152)],_0x5ecd3f);}))),this[_0x551010(0x1ee)](this['registerEventHandler'](this[_0x551010(0x1ff)]['BaseTableViewCreated'],()=>_0x52f3a8[_0x551010(0x17e)](_0x434c68=>{const _0x1e0863=_0x551010;if(_0x434c68['id']!==_0x2d3862['id'])return;let {unitId:_0xa76a1d,tableId:_0x53d6eb,view:_0x1b648b,index:_0x357b2f}=_0x434c68[_0x1e0863(0x1a5)],_0x3a88be=this['getBase'](_0xa76a1d);if(!_0x3a88be)return;let _0x10e943=_0x3a88be[_0x1e0863(0x1c1)](_0x53d6eb);if(!_0x10e943)return;let _0x35b5e8={'base':_0x3a88be,'table':_0x10e943,'view':_0x1b648b,'index':_0x357b2f};this[_0x1e0863(0x174)](this['Event'][_0x1e0863(0x20e)],_0x35b5e8);}))),this['disposeWithMe'](this[_0x551010(0x18a)](this['Event'][_0x551010(0x20c)],()=>_0x52f3a8[_0x551010(0x17e)](_0x3a93f9=>{const _0x57a1a7=_0x551010;if(_0x3a93f9['id']!==_0x32df63['id'])return;let {unitId:_0x13b117,tableId:_0x11e06a,recordId:_0x35539d,fieldId:_0x1709c4,value:_0x24159e}=_0x3a93f9[_0x57a1a7(0x1a5)],_0x57829b=this[_0x57a1a7(0x195)](_0x13b117);if(!_0x57829b)return;let _0x225803=_0x57829b[_0x57a1a7(0x1c1)](_0x11e06a);if(!_0x225803)return;let _0x4f5cb0=_0x225803[_0x57a1a7(0x1ec)](_0x1709c4);if(!_0x4f5cb0)return;let _0x467f65=_0x225803['getRecordById'](_0x35539d);if(!_0x467f65)return;let _0x375b7d={'base':_0x57829b,'table':_0x225803,'field':_0x4f5cb0,'record':_0x467f65,'value':_0x24159e};this[_0x57a1a7(0x174)](this[_0x57a1a7(0x1ff)]['BaseTableCellValueChanged'],_0x375b7d);})));}[_0x14e4dd(0x1e7)](){const _0x25cedd=_0x14e4dd;let _0xf91a8e=this[_0x25cedd(0x185)][_0x25cedd(0x1bb)](_0x5abfa9);this[_0x25cedd(0x1ee)](this['registerEventHandler'](this['Event'][_0x25cedd(0x192)],()=>_0xf91a8e['beforeCommandExecuted'](_0x2e1001=>{const _0xaf5883=_0x25cedd;if(_0x2e1001['id']!==_0x986b77['id'])return;let {unitId:_0x5c8ce3,table:_0x1deaa3,index:_0x2716dd}=_0x2e1001['params'],_0xde1ebc=this[_0xaf5883(0x195)](_0x5c8ce3);if(!_0xde1ebc)return;let _0x50873e={'base':_0xde1ebc,'table':_0x1deaa3,'index':_0x2716dd};if(this[_0xaf5883(0x174)](this[_0xaf5883(0x1ff)][_0xaf5883(0x192)],_0x50873e),_0x50873e[_0xaf5883(0x1b0)])throw new _0x4c003e();}))),this[_0x25cedd(0x1ee)](this[_0x25cedd(0x18a)](this[_0x25cedd(0x1ff)][_0x25cedd(0x1c5)],()=>_0xf91a8e[_0x25cedd(0x16b)](_0x5156ee=>{const _0x4bc18a=_0x25cedd;if(_0x5156ee['id']!==_0x5cc92c['id'])return;let {unitId:_0x3575dc,tableId:_0x3ce1d0,field:_0x4614b9,index:_0x5512be,viewIndexes:_0x285804}=_0x5156ee[_0x4bc18a(0x1a5)],_0x4086eb=this[_0x4bc18a(0x195)](_0x3575dc);if(!_0x4086eb)return;let _0x5a42f1=_0x4086eb[_0x4bc18a(0x1c1)](_0x3ce1d0);if(!_0x5a42f1)return;let _0x1e4d70={'base':_0x4086eb,'table':_0x5a42f1,'field':_0x4614b9,'index':_0x5512be,'viewIndexes':_0x285804};if(this[_0x4bc18a(0x174)](this['Event']['BeforeBaseTableFieldCreate'],_0x1e4d70),_0x1e4d70[_0x4bc18a(0x1b0)])throw new _0x4c003e();}))),this[_0x25cedd(0x1ee)](this[_0x25cedd(0x18a)](this['Event']['BeforeBaseTableRecordCreate'],()=>_0xf91a8e[_0x25cedd(0x16b)](_0x334ed1=>{const _0x30a360=_0x25cedd;var _0x1479a5;if(_0x334ed1['id']!==_0x3b13bf['id']&&_0x334ed1['id']!==_0x118e37['id'])return;let _0x5a1a62=_0x334ed1['params'],{unitId:_0x1543f2,tableId:_0x486ff0}=_0x5a1a62,_0x58eadb=(_0x1479a5=_0x5a1a62[_0x30a360(0x167)])==null?[_0x5a1a62['record']]:_0x1479a5,_0x5ef5cd=this[_0x30a360(0x195)](_0x1543f2);if(!_0x5ef5cd)return;let _0x9f574f=_0x5ef5cd[_0x30a360(0x1c1)](_0x486ff0);if(!_0x9f574f)return;let _0x157c18={'base':_0x5ef5cd,'table':_0x9f574f,'records':_0x58eadb};if(this[_0x30a360(0x174)](this[_0x30a360(0x1ff)][_0x30a360(0x197)],_0x157c18),_0x157c18[_0x30a360(0x1b0)])throw new _0x4c003e();}))),this[_0x25cedd(0x1ee)](this[_0x25cedd(0x18a)](this[_0x25cedd(0x1ff)]['BeforeBaseTableViewCreate'],()=>_0xf91a8e[_0x25cedd(0x16b)](_0x5f03a7=>{const _0xcd99c2=_0x25cedd;if(_0x5f03a7['id']!==_0x2d3862['id'])return;let {unitId:_0x583e9b,tableId:_0x30d7d8,view:_0x180684,index:_0x226a82}=_0x5f03a7[_0xcd99c2(0x1a5)],_0x1e250e=this[_0xcd99c2(0x195)](_0x583e9b);if(!_0x1e250e)return;let _0x3df52b=_0x1e250e[_0xcd99c2(0x1c1)](_0x30d7d8);if(!_0x3df52b)return;let _0xceb1f0={'base':_0x1e250e,'table':_0x3df52b,'view':_0x180684,'index':_0x226a82};if(this['fireEvent'](this[_0xcd99c2(0x1ff)][_0xcd99c2(0x18c)],_0xceb1f0),_0xceb1f0[_0xcd99c2(0x1b0)])throw new _0x4c003e();}))),this[_0x25cedd(0x1ee)](this[_0x25cedd(0x18a)](this[_0x25cedd(0x1ff)][_0x25cedd(0x19b)],()=>_0xf91a8e[_0x25cedd(0x16b)](_0x302252=>{const _0x50fee7=_0x25cedd;if(_0x302252['id']!==_0x32df63['id'])return;let {unitId:_0x24d1a3,tableId:_0x130c4a,recordId:_0x216f91,fieldId:_0x50863f,value:_0xfedfba}=_0x302252[_0x50fee7(0x1a5)],_0x568498=this['getBase'](_0x24d1a3);if(!_0x568498)return;let _0x47fcd7=_0x568498[_0x50fee7(0x1c1)](_0x130c4a);if(!_0x47fcd7)return;let _0x268e7f=_0x47fcd7[_0x50fee7(0x1ec)](_0x50863f);if(!_0x268e7f)return;let _0xe3830c=_0x47fcd7[_0x50fee7(0x1ba)](_0x216f91);if(!_0xe3830c)return;let _0x28d0e9={'base':_0x568498,'table':_0x47fcd7,'field':_0x268e7f,'record':_0xe3830c,'value':_0xfedfba};if(this[_0x50fee7(0x174)](this[_0x50fee7(0x1ff)]['BeforeBaseTableCellValueChange'],_0x28d0e9),_0x28d0e9[_0x50fee7(0x1b0)])throw new _0x4c003e();})));}};_0xce4c3f[_0x14e4dd(0x1a0)](ve);var ye=class extends _0x4b5977{get[_0x14e4dd(0x16d)](){return _0x3329dc;}get[_0x14e4dd(0x212)](){return _0x2cba2d;}get[_0x14e4dd(0x198)](){return _0x53f6ba;}get[_0x14e4dd(0x1c0)](){return G;}get[_0x14e4dd(0x1f6)](){return _0x1e3dd6;}get['BaseSortDirection'](){return _0x3c0cc3;}};function _0x147a(){const _0x52020e=['viewOrder','tableId','addField','startColumn','setValues','_recordId',',\x20range:\x20','setDefaultValue','type','some','matches','fieldIds','getTableByName','auto','createdAt','\x20Copy','getAllUnitsForType','getDefaultValue','push','orderKey','clear','fieldOrder','getConfig','_initBaseBeforeEvents','getTables','rows','Duplicate\x20Base\x20field\x20name:\x20','now','getFieldById','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','disposeWithMe','description','syncExecuteCommand','getBases','Base\x20field\x20not\x20found:\x20','fields','length','getColumn','BaseViewType','Gantt','_initBaseAfterEvents','insertTable','map','getPrimaryField','getNumRows','_resolveRecordIds','deleteTable','Event','_getField','2582520rNSmZl','getId','function','operator','\x22\x20does\x20not\x20exist.','delete','getBaseId','48ZVqrcM','_tableId','value','Auto','BaseTableCellValueChanged','updateConfig','BaseTableViewCreated','defineProperty','number','_inject','BaseFilterConjunction','setFieldVisible','Grid','queryRecords','group','Gallery','2278540ExaRio','string','tables','entries','getOwnPropertyDescriptor','getCurrentUnitOfType','Failed\x20to\x20duplicate\x20table\x20\x22','getUnitId','Failed\x20to\x20create\x20view\x20\x22','Name','16890uCNEYf','BaseTableFieldCreated','from','3954600YBbBeh','getRange','getView','getRecords','[FBase]:\x20table\x20\x22','filter','4lHGURh','indexOf','BaseTableRecordCreated','message','_table','_range','50UziQRt','setSort','setName',',\x20max\x20columns:\x20','sort','_fieldId','createBase','update','[FBaseRange]:\x20values\x20size\x20','values','getProjection','getTable','500843SkkyRq','getValues','rowId','limit','DESC','records','[FBaseRange]:\x20table\x20does\x20not\x20exist.','getFieldSettings','getDescription','beforeCommandExecuted','getField','BaseFieldType','name','\x20exceeds\x20range\x20size\x20','object','BaseTableCreated','move','Calendar','fireEvent','primaryFieldName','config','getSchema','offset','defaultValue','views','_viewId','_getView','[FRecord]:\x20record\x20\x22','onCommandExecuted','Field\x20type\x20is\x20required','recordOrder','fieldId','viewId','isArray','regenerateViewIds','_injector','getSnapshot','Failed\x20to\x20create\x20table\x20\x22','createInstance','setFilter','registerEventHandler','_getTable','BeforeBaseTableViewCreate','fieldKey','_assertInBounds','changeType','record','_initialize','BeforeBaseTableCreate','596456MBGPwi','caseSensitive','getBase','_base','BeforeBaseTableRecordCreate','BaseFilterOperator','max','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','BeforeBaseTableCellValueChange','forEach','localeCompare','Invalid\x20Base\x20regex\x20filter:\x20','duplicate','extend','getGroup','Kanban','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','primaryFieldId','params','getActiveBase','Failed\x20to\x20add\x20records','tableOrder','moveField','view','hidden','endColumn','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','setFieldWidth','[FTable]:\x20table\x20\x22','cancel','updatedAt','getName','getTableId','readonly','getViewById','getType','table','addRecords','getValue','getRecordById','get','2841565gfNiaB','setValue','deepClone','conditions','BaseFieldKeyEnum','getTableById','getNumColumns','visibleCardFieldIds','commonExtend','BeforeBaseTableFieldCreate','fieldSettings','endRow','getFields','UNIVER_BASE','find','getSort','addRecord','field','_getRecord','startRow'];_0x147a=function(){return _0x52020e;};return _0x147a();}_0x4b5977[_0x14e4dd(0x1a0)](ye);var $=class extends _0x8ad1b4{get[_0x14e4dd(0x171)](){const _0x932969=_0x14e4dd;return _0x932969(0x171);}get[_0x14e4dd(0x192)](){const _0x2196dc=_0x14e4dd;return _0x2196dc(0x192);}get[_0x14e4dd(0x148)](){const _0x111a3c=_0x14e4dd;return _0x111a3c(0x148);}get[_0x14e4dd(0x1c5)](){const _0x3d29f1=_0x14e4dd;return _0x3d29f1(0x1c5);}get[_0x14e4dd(0x152)](){const _0x1545ea=_0x14e4dd;return _0x1545ea(0x152);}get[_0x14e4dd(0x197)](){return'BeforeBaseTableRecordCreate';}get[_0x14e4dd(0x20e)](){return'BaseTableViewCreated';}get['BeforeBaseTableViewCreate'](){return'BeforeBaseTableViewCreate';}get[_0x14e4dd(0x20c)](){const _0x5e8b36=_0x14e4dd;return _0x5e8b36(0x20c);}get['BeforeBaseTableCellValueChange'](){return'BeforeBaseTableCellValueChange';}};_0x8ad1b4[_0x14e4dd(0x1a0)]($);export{G as BaseFieldKeyEnum,Q as FBase,X as FBaseTable,U as FBaseTableField,W as FBaseTableRange,J as FBaseTableRecord,Y as FBaseTableView,$ as FBasesEventNameMixin,q as resolveBaseFieldKey,K as resolveBaseFieldValues};