@univerjs-pro/bases 1.0.0-alpha.6 → 1.0.0-alpha.8

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 (106) 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/controllers/base-formula-calculation.controller.d.ts +6 -1
  65. package/lib/types/facade/f-base.d.ts +3 -2
  66. package/lib/types/facade/f-enum.d.ts +72 -5
  67. package/lib/types/facade/f-field.d.ts +37 -4
  68. package/lib/types/facade/f-record.d.ts +52 -1
  69. package/lib/types/facade/f-table.d.ts +43 -9
  70. package/lib/types/facade/index.d.ts +2 -1
  71. package/lib/types/fields/field-core-plugin.d.ts +0 -1
  72. package/lib/types/fields/number-format.d.ts +3 -3
  73. package/lib/types/index.d.ts +2 -2
  74. package/lib/types/models/default-table.d.ts +0 -1
  75. package/lib/types/ot/json1-adapter.d.ts +0 -1
  76. package/lib/types/ot/json1-op-factory.d.ts +0 -3
  77. package/lib/types/search/base-search.d.ts +0 -3
  78. package/lib/types/services/base-active-dirty.service.d.ts +0 -1
  79. package/lib/types/services/base-command.service.d.ts +0 -1
  80. package/lib/types/services/base-compression.service.d.ts +0 -5
  81. package/lib/types/services/base-formula.service.d.ts +1 -3
  82. package/lib/types/services/base-permission.service.d.ts +0 -4
  83. package/lib/types/views/view-core-plugin.d.ts +0 -2
  84. package/lib/umd/facade.js +1 -1
  85. package/lib/umd/index.js +1 -1
  86. package/lib/umd/locale/ar-SA.js +1 -1
  87. package/lib/umd/locale/ca-ES.js +1 -1
  88. package/lib/umd/locale/de-DE.js +1 -1
  89. package/lib/umd/locale/en-US.js +1 -1
  90. package/lib/umd/locale/es-ES.js +1 -1
  91. package/lib/umd/locale/fa-IR.js +1 -1
  92. package/lib/umd/locale/fr-FR.js +1 -1
  93. package/lib/umd/locale/id-ID.js +1 -1
  94. package/lib/umd/locale/it-IT.js +1 -1
  95. package/lib/umd/locale/ja-JP.js +1 -1
  96. package/lib/umd/locale/ko-KR.js +1 -1
  97. package/lib/umd/locale/pl-PL.js +1 -1
  98. package/lib/umd/locale/pt-BR.js +1 -1
  99. package/lib/umd/locale/ru-RU.js +1 -1
  100. package/lib/umd/locale/sk-SK.js +1 -1
  101. package/lib/umd/locale/vi-VN.js +1 -1
  102. package/lib/umd/locale/zh-CN.js +1 -1
  103. package/lib/umd/locale/zh-HK.js +1 -1
  104. package/lib/umd/locale/zh-TW.js +1 -1
  105. package/package.json +7 -6
  106. package/lib/types/facade/f-types.d.ts +0 -1
@@ -1 +1 @@
1
- function _0x2801(){const _0x304bb3=['看板需要可分組字段','字段標題不能為空','更新視圖設置','2946510RopkMB','1411079mMHsml','記錄\x20ID','5503235QTnjPd','12570kJfmfF','刪除字段','創建記錄','創建時間','甘特視圖需要開始和結束日期字段','exports','日曆需要日期字段','複選框','電話號碼','單元格值無效','27387ctFsUi','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','4019638FSxSLU','輸入內容','452958qXEuRY','修改人','創建人','刪除記錄','更新單元格','6173428bJtKKq','雙向關聯','16ARCxyw','6TKAmSh'];_0x2801=function(){return _0x304bb3;};return _0x2801();}const _0x2165c8=_0x306a;(function(_0x8f3ffb,_0x34e88a){const _0x26458f=_0x306a,_0x2047cd=_0x8f3ffb();while(!![]){try{const _0x2d75c0=parseInt(_0x26458f(0xb2))/0x1+parseInt(_0x26458f(0xb1))/0x2+parseInt(_0x26458f(0xa5))/0x3+parseInt(_0x26458f(0xaa))/0x4+parseInt(_0x26458f(0xb4))/0x5*(-parseInt(_0x26458f(0xad))/0x6)+-parseInt(_0x26458f(0xa3))/0x7*(-parseInt(_0x26458f(0xac))/0x8)+parseInt(_0x26458f(0xa1))/0x9*(-parseInt(_0x26458f(0xb5))/0xa);if(_0x2d75c0===_0x34e88a)break;else _0x2047cd['push'](_0x2047cd['shift']());}catch(_0x146feb){_0x2047cd['push'](_0x2047cd['shift']());}}}(_0x2801,0xc3aa7));const e={'bases':{'fieldType':{'text':'文本','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x2165c8(0x9e),'link':'鏈接','formula':'公式','lookup':'查找','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x2165c8(0x9f),'email':'郵箱','location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','twoWayLink':_0x2165c8(0xab),'recordId':_0x2165c8(0xb3),'createdBy':_0x2165c8(0xa7),'updatedBy':_0x2165c8(0xa6),'createdAt':_0x2165c8(0xb8),'updatedAt':'更新時間','summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x2165c8(0xa4),'linkPlaceholder':_0x2165c8(0xa2)},'viewType':{'grid':'表格','kanban':'看板','calendar':'日曆','gantt':'甘特','gallery':'畫廊'},'error':{'fieldNameRequired':_0x2165c8(0xaf),'invalidFieldType':'字段類型無效','invalidCellValue':_0x2165c8(0xa0),'invalidKanbanGroupField':_0x2165c8(0xae),'invalidCalendarDateField':_0x2165c8(0x9d),'invalidGanttDateField':_0x2165c8(0xb9)},'command':{'updateCell':_0x2165c8(0xa9),'createField':'創建字段','deleteField':_0x2165c8(0xb6),'createRecord':_0x2165c8(0xb7),'deleteRecord':_0x2165c8(0xa8),'updateViewConfig':_0x2165c8(0xb0)}}};function _0x306a(_0xee70a7,_0x4cef3c){_0xee70a7=_0xee70a7-0x9c;const _0x280190=_0x2801();let _0x306a70=_0x280190[_0xee70a7];return _0x306a70;}module[_0x2165c8(0x9c)]=e;
1
+ const _0x48c172=_0x2d32;function _0x2d32(_0x1c6ff1,_0x5f5bec){_0x1c6ff1=_0x1c6ff1-0xc7;const _0x1f233a=_0x1f23();let _0x2d3256=_0x1f233a[_0x1c6ff1];return _0x2d3256;}function _0x1f23(){const _0x4cae1e=['雙向關聯','複選框','3278oEiOjP','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','字段類型無效','3053272DNrhPK','881699MKMLGc','478WjnFPx','電話號碼','更新視圖設置','刪除記錄','修改人','10BySwlv','輸入內容','1638896KQyydn','更新單元格','18920vQRrAz','日曆需要日期字段','單元格值無效','甘特視圖需要開始和結束日期字段','7323ZASvIz','335361ucHRjN','18TPfUQc','495315lQiMpB','刪除字段'];_0x1f23=function(){return _0x4cae1e;};return _0x1f23();}(function(_0x56602d,_0x7cebbb){const _0x111bcf=_0x2d32,_0x3f0507=_0x56602d();while(!![]){try{const _0x31618c=-parseInt(_0x111bcf(0xd7))/0x1+-parseInt(_0x111bcf(0xc9))/0x2*(parseInt(_0x111bcf(0xd6))/0x3)+-parseInt(_0x111bcf(0xd0))/0x4*(-parseInt(_0x111bcf(0xce))/0x5)+parseInt(_0x111bcf(0xd8))/0x6*(-parseInt(_0x111bcf(0xc8))/0x7)+parseInt(_0x111bcf(0xc7))/0x8+-parseInt(_0x111bcf(0xd9))/0x9+-parseInt(_0x111bcf(0xd2))/0xa*(-parseInt(_0x111bcf(0xdd))/0xb);if(_0x31618c===_0x7cebbb)break;else _0x3f0507['push'](_0x3f0507['shift']());}catch(_0x4b7ff6){_0x3f0507['push'](_0x3f0507['shift']());}}}(_0x1f23,0x64e49));const e={'bases':{'fieldType':{'text':'文本','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x48c172(0xdc),'link':'鏈接','formula':'公式','lookup':'查找','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x48c172(0xca),'email':'郵箱','location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','twoWayLink':_0x48c172(0xdb),'recordId':'記錄\x20ID','createdBy':'創建人','updatedBy':_0x48c172(0xcd),'createdAt':'創建時間','updatedAt':'更新時間','summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x48c172(0xcf),'linkPlaceholder':_0x48c172(0xde)},'viewType':{'grid':'表格','kanban':'看板','calendar':'日曆','gantt':'甘特','gallery':'畫廊'},'error':{'fieldNameRequired':'字段標題不能為空','invalidFieldType':_0x48c172(0xdf),'invalidCellValue':_0x48c172(0xd4),'invalidKanbanGroupField':'看板需要可分組字段','invalidCalendarDateField':_0x48c172(0xd3),'invalidGanttDateField':_0x48c172(0xd5)},'command':{'updateCell':_0x48c172(0xd1),'createField':'創建字段','deleteField':_0x48c172(0xda),'createRecord':'創建記錄','deleteRecord':_0x48c172(0xcc),'updateViewConfig':_0x48c172(0xcb)}}};module['exports']=e;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x5bd08b=_0x538a;function _0x538a(_0x4cbbb0,_0x4e74d6){_0x4cbbb0=_0x4cbbb0-0x18e;const _0x2bcb19=_0x2bcb();let _0x538a6a=_0x2bcb19[_0x4cbbb0];return _0x538a6a;}(function(_0x30be14,_0x43c10a){const _0x3f50fa=_0x538a,_0x65b7bc=_0x30be14();while(!![]){try{const _0x55bdc1=-parseInt(_0x3f50fa(0x1a5))/0x1*(-parseInt(_0x3f50fa(0x1cf))/0x2)+-parseInt(_0x3f50fa(0x253))/0x3*(-parseInt(_0x3f50fa(0x1a8))/0x4)+parseInt(_0x3f50fa(0x268))/0x5+parseInt(_0x3f50fa(0x1b5))/0x6*(-parseInt(_0x3f50fa(0x254))/0x7)+-parseInt(_0x3f50fa(0x1ac))/0x8+-parseInt(_0x3f50fa(0x246))/0x9*(-parseInt(_0x3f50fa(0x1e7))/0xa)+-parseInt(_0x3f50fa(0x1f4))/0xb*(parseInt(_0x3f50fa(0x24b))/0xc);if(_0x55bdc1===_0x43c10a)break;else _0x65b7bc['push'](_0x65b7bc['shift']());}catch(_0x1d2765){_0x65b7bc['push'](_0x65b7bc['shift']());}}}(_0x2bcb,0x90cba));import{BatchCreateBaseRecordsCommand as _0x448856,BatchDeleteBaseRecordsCommand as _0x23c648,ChangeBaseFieldTypeCommand as _0x2ee811,CreateBaseFieldCommand as _0x184d99,CreateBaseRecordCommand as _0x121d2e,CreateBaseTableCommand as _0x55a28e,CreateBaseViewCommand as _0x54aea6,DeleteBaseFieldCommand as _0x35c0c6,DeleteBaseRecordCommand as _0x3628a2,DeleteBaseTableCommand as _0x1ec17e,DeleteBaseViewCommand as _0x3a28cc,DuplicateBaseRecordCommand as _0x59fe1e,IBaseProjectionService as _0x1551fd,MoveBaseFieldCommand as _0x206643,MoveBaseViewCommand as _0x23539e,RenameBaseTableCommand as _0x1341d2,RenameBaseViewCommand as _0x2360c0,SetBaseNameCommand as _0x4e3765,SetBaseRangeValuesCommand as _0x39da31,SetBaseRecordValuesCommand as _0x1529c6,SetBaseViewFieldOrderCommand as _0x3c1eeb,SetBaseViewFieldVisibleCommand as _0x358890,SetBaseViewFieldWidthCommand as _0x41a27a,SetBaseViewFilterCommand as _0x3566b4,SetBaseViewGroupCommand as _0x42ee07,SetBaseViewSortCommand as _0x225d57,UpdateBaseCellCommand as _0x2380c6,UpdateBaseFieldCommand as _0x1db162,UpdateBaseRecordOrderCommand as _0x3304cb,UpdateBaseViewConfigCommand as _0x317ea0,copyBaseTableSnapshot as _0x98e38b,ensureBaseTableCellLayout as _0x5b5260,getBaseCellValue as _0x27e16a,matchesBaseCondition as _0x518c09,searchBaseTable as _0x8a5c71}from'@univerjs-pro/bases';import{BaseFieldType as _0x4bca3c,BaseFilterConjunction as _0x468dce,BaseFilterOperator as _0x3db560,BaseSortDirection as _0x1d10d0,BaseViewType as _0x55bec4,CanceledError as _0x42772d,ICommandService as _0x3aa743,IUniverInstanceService as _0x3b88a8,Inject as _0x4fb1ca,Injector as _0x50a63c,Tools as _0x2cdab0,UniverInstanceType as _0x3e71d6,createDefaultBaseTableSnapshot as _0x47faff,generateRandomId as _0x301c12}from'@univerjs/core';import{FEnum as _0x20d9fe,FEventName as _0x1330b7,FUniver as _0x30e147}from'@univerjs/core/facade';var U=class{constructor(_0x4c129d,_0x3dd29e,_0x5b98a1,_0xfe6fae){const _0x4ba44a=_0x538a;this[_0x4ba44a(0x233)]=_0x4c129d,this[_0x4ba44a(0x1ff)]=_0x3dd29e,this[_0x4ba44a(0x21b)]=_0x5b98a1,this[_0x4ba44a(0x1c2)]=_0xfe6fae;}['getId'](){const _0x1486be=_0x538a;return this[_0x1486be(0x21b)];}[_0x5bd08b(0x261)](){const _0x16c725=_0x5bd08b;return this[_0x16c725(0x1a3)]();}[_0x5bd08b(0x1a4)](){const _0x1e0e10=_0x5bd08b;return this[_0x1e0e10(0x1a3)]()['name'];}[_0x5bd08b(0x24e)](){const _0x4bd927=_0x5bd08b;return this['_getField']()[_0x4bd927(0x25f)];}['getConfig'](){const _0x42cf52=_0x5bd08b;return this[_0x42cf52(0x1a3)]()['config'];}[_0x5bd08b(0x238)](){const _0xd253e6=_0x5bd08b;return this[_0xd253e6(0x1a3)]()['defaultValue'];}['getDescription'](){const _0x47be6e=_0x5bd08b;return this[_0x47be6e(0x1a3)]()[_0x47be6e(0x1ef)];}['isReadonly'](){const _0x455a89=_0x5bd08b;return!!this[_0x455a89(0x1a3)]()[_0x455a89(0x204)];}[_0x5bd08b(0x1f3)](_0xb7d4f2){const _0x429210=_0x5bd08b;return this[_0x429210(0x1e1)]({'name':_0xb7d4f2});}[_0x5bd08b(0x1cd)](_0x26a8be){return this['update']({'config':_0x26a8be});}['setDefaultValue'](_0x15a5a9){return this['update']({'defaultValue':_0x15a5a9});}[_0x5bd08b(0x1e1)](_0x875fb9){const _0xbffbb8=_0x5bd08b;return this['_inject'][_0xbffbb8(0x19d)](_0x3aa743)[_0xbffbb8(0x21a)](_0x1db162['id'],{'unitId':this[_0xbffbb8(0x233)][_0xbffbb8(0x1f2)](),'tableId':this[_0xbffbb8(0x1ff)][_0xbffbb8(0x1f2)](),'fieldId':this[_0xbffbb8(0x21b)],'patch':_0x875fb9});}[_0x5bd08b(0x1aa)](_0x3f72b1,_0x5695d9={}){const _0x301855=_0x5bd08b;return this[_0x301855(0x1c2)][_0x301855(0x19d)](_0x3aa743)[_0x301855(0x21a)](_0x2ee811['id'],{'unitId':this[_0x301855(0x233)][_0x301855(0x1f2)](),'tableId':this[_0x301855(0x1ff)][_0x301855(0x1f2)](),'fieldId':this[_0x301855(0x21b)],'input':{'type':_0x3f72b1,'config':_0x5695d9}});}[_0x5bd08b(0x22c)](){const _0x4c3355=_0x5bd08b;return this[_0x4c3355(0x1c2)][_0x4c3355(0x19d)](_0x3aa743)[_0x4c3355(0x21a)](_0x35c0c6['id'],{'unitId':this[_0x4c3355(0x233)][_0x4c3355(0x1f2)](),'tableId':this[_0x4c3355(0x1ff)][_0x4c3355(0x1f2)](),'fieldId':this[_0x4c3355(0x21b)]});}[_0x5bd08b(0x227)](_0x572221){const _0x30b709=_0x5bd08b;return this[_0x30b709(0x1c2)][_0x30b709(0x19d)](_0x3aa743)[_0x30b709(0x21a)](_0x206643['id'],{'unitId':this['_base'][_0x30b709(0x1f2)](),'tableId':this['_table']['getId'](),'fieldId':this[_0x30b709(0x21b)],'target':_0x572221});}[_0x5bd08b(0x1a3)](){const _0x362978=_0x5bd08b;let _0x385f5a=this[_0x362978(0x1ff)]['getTable']()[_0x362978(0x24a)][this['_fieldId']];if(!_0x385f5a)throw Error('[FField]:\x20field\x20\x22'+this[_0x362978(0x21b)]+'\x22\x20does\x20not\x20exist.');return _0x385f5a;}},W=class e{constructor(_0x5ae9ee,_0x18a7fe,_0x3dc54f,_0x45a18d){const _0x4f52c4=_0x5bd08b;this['_base']=_0x5ae9ee,this[_0x4f52c4(0x1ff)]=_0x18a7fe,this[_0x4f52c4(0x1fa)]=_0x3dc54f,this['_inject']=_0x45a18d,this['_assertInBounds']();}[_0x5bd08b(0x1f5)](){const _0x26a9df=_0x5bd08b;return this[_0x26a9df(0x233)][_0x26a9df(0x1f2)]();}[_0x5bd08b(0x195)](){const _0x56d7b3=_0x5bd08b;return this['_table'][_0x56d7b3(0x1f2)]();}[_0x5bd08b(0x202)](){const _0x33a76b=_0x5bd08b;return{...this[_0x33a76b(0x1fa)]};}[_0x5bd08b(0x20c)](){const _0x42d5a0=_0x5bd08b;return this['_range'][_0x42d5a0(0x1db)];}[_0x5bd08b(0x1b2)](){const _0x34b2b4=_0x5bd08b;return this[_0x34b2b4(0x1fa)][_0x34b2b4(0x242)];}[_0x5bd08b(0x224)](){const _0x5c7006=_0x5bd08b;return this['_range'][_0x5c7006(0x1a1)]-this['_range']['startRow']+0x1;}[_0x5bd08b(0x220)](){const _0x4d2f86=_0x5bd08b;return this['_range'][_0x4d2f86(0x1e2)]-this['_range'][_0x4d2f86(0x242)]+0x1;}['getValues'](){const _0x4f6e28=_0x5bd08b;let _0x284a66=this['_getTable'](),_0x438f26=[];for(let _0x4e45f0=this[_0x4f6e28(0x1fa)][_0x4f6e28(0x1db)];_0x4e45f0<=this['_range']['endRow'];_0x4e45f0++){var _0x5524f1;let _0x517914=(_0x5524f1=_0x284a66[_0x4f6e28(0x1fb)])==null?void 0x0:_0x5524f1[_0x4e45f0],_0x81c1a4=[];for(let _0x51576f=this['_range'][_0x4f6e28(0x242)];_0x51576f<=this[_0x4f6e28(0x1fa)][_0x4f6e28(0x1e2)];_0x51576f++){var _0x27b4d7;let _0x32ed7e=(_0x27b4d7=_0x284a66[_0x4f6e28(0x267)])==null?void 0x0:_0x27b4d7[_0x51576f];_0x81c1a4['push'](_0x517914&&_0x32ed7e?_0x27e16a(_0x284a66,_0x517914,_0x32ed7e):null);}_0x438f26[_0x4f6e28(0x21f)](_0x81c1a4);}return _0x438f26;}[_0x5bd08b(0x229)](){var _0x56cc45,_0x1c1fb2;return(_0x56cc45=(_0x1c1fb2=this['getValues']()[0x0])==null?void 0x0:_0x1c1fb2[0x0])==null?null:_0x56cc45;}[_0x5bd08b(0x225)](_0x5c48c8){const _0x8260de=_0x5bd08b;return this[_0x8260de(0x215)]([[_0x5c48c8]]);}[_0x5bd08b(0x215)](_0x54d913){const _0x58dc1c=_0x5bd08b;let _0x224501=this['getNumRows'](),_0x251e3c=this['getNumColumns']();if(_0x54d913[_0x58dc1c(0x25d)]>_0x224501||_0x54d913[_0x58dc1c(0x249)](_0x5b6bc6=>_0x5b6bc6['length']>_0x251e3c)){var _0x355493,_0x14919a;throw Error(_0x58dc1c(0x1c6)+_0x54d913['length']+'x'+((_0x355493=(_0x14919a=_0x54d913[0x0])==null?void 0x0:_0x14919a[_0x58dc1c(0x25d)])==null?0x0:_0x355493)+_0x58dc1c(0x223)+_0x224501+'x'+_0x251e3c+'.');}let _0x2c734c=this[_0x58dc1c(0x1c2)][_0x58dc1c(0x19d)](_0x3aa743),_0x4a9319=_0x54d913[_0x58dc1c(0x1df)]((_0x53089e,_0x178ed4)=>_0x53089e[_0x58dc1c(0x22e)]((_0x4b72b0,_0x3e3427)=>({'row':this[_0x58dc1c(0x1fa)][_0x58dc1c(0x1db)]+_0x178ed4,'col':this['_range'][_0x58dc1c(0x242)]+_0x3e3427,'value':_0x4b72b0})));return _0x2c734c[_0x58dc1c(0x21a)](_0x39da31['id'],{'unitId':this['_base'][_0x58dc1c(0x1f2)](),'tableId':this[_0x58dc1c(0x1ff)][_0x58dc1c(0x1f2)](),'patches':_0x4a9319});}[_0x5bd08b(0x1b3)](){const _0x57d1b0=_0x5bd08b;return this[_0x57d1b0(0x215)](Array[_0x57d1b0(0x24f)]({'length':this[_0x57d1b0(0x224)]()},()=>Array[_0x57d1b0(0x24f)]({'length':this[_0x57d1b0(0x220)]()},()=>null)));}[_0x5bd08b(0x1eb)](_0x6c7d6c,_0x4e2637,_0x5ea97f=this['getNumRows'](),_0x2bfc6b=this['getNumColumns']()){const _0x49e2c1=_0x5bd08b;return this['_inject']['createInstance'](e,this['_base'],this['_table'],{'startRow':this[_0x49e2c1(0x1fa)][_0x49e2c1(0x1db)]+_0x6c7d6c,'startColumn':this['_range'][_0x49e2c1(0x242)]+_0x4e2637,'endRow':this[_0x49e2c1(0x1fa)][_0x49e2c1(0x1db)]+_0x6c7d6c+_0x5ea97f-0x1,'endColumn':this[_0x49e2c1(0x1fa)][_0x49e2c1(0x242)]+_0x4e2637+_0x2bfc6b-0x1},this['_inject']);}[_0x5bd08b(0x247)](){const _0x4bd28f=_0x5bd08b;let _0x2b1022=this[_0x4bd28f(0x1ff)]['getTable']();if(!_0x2b1022)throw Error(_0x4bd28f(0x218));return _0x5b5260(_0x2b1022);}[_0x5bd08b(0x203)](){const _0x4dc940=_0x5bd08b;var _0x36b4fa,_0x5e9de4;let _0x1ab6ca=this[_0x4dc940(0x247)](),_0x55cdb2=(_0x36b4fa=(_0x5e9de4=_0x1ab6ca[_0x4dc940(0x1d4)])==null?void 0x0:_0x5e9de4[_0x4dc940(0x25d)])==null?0x0:_0x36b4fa,_0x3b8c88=_0x1ab6ca['fieldOrder'][_0x4dc940(0x25d)];if(this['_range']['startRow']<0x0||this['_range'][_0x4dc940(0x242)]<0x0||this['_range'][_0x4dc940(0x1a1)]<this[_0x4dc940(0x1fa)]['startRow']||this[_0x4dc940(0x1fa)]['endColumn']<this[_0x4dc940(0x1fa)][_0x4dc940(0x242)]||this['_range'][_0x4dc940(0x1a1)]>=Math[_0x4dc940(0x1f0)](_0x55cdb2,0x1)||this['_range'][_0x4dc940(0x1e2)]>=Math[_0x4dc940(0x1f0)](_0x3b8c88,0x1))throw Error(_0x4dc940(0x21d)+_0x55cdb2+_0x4dc940(0x1dc)+_0x3b8c88+_0x4dc940(0x257)+JSON[_0x4dc940(0x197)](this[_0x4dc940(0x1fa)])+'.');}};let G=function(_0x1e4607){const _0x50ae68=_0x5bd08b;return _0x1e4607['Id']='id',_0x1e4607[_0x50ae68(0x1f7)]=_0x50ae68(0x236),_0x1e4607['Auto']=_0x50ae68(0x1c3),_0x1e4607;}({});function K(_0x40080f,_0x489261,_0xc90f5d='id'){const _0x250115=_0x5bd08b;if(!_0x489261)return{};let _0x3f47ca={};return Object[_0x250115(0x212)](_0x489261)[_0x250115(0x18f)](([_0x1a6793,_0x126d71])=>{_0x3f47ca[q(_0x40080f,_0x1a6793,_0xc90f5d)]=_0x126d71;}),_0x3f47ca;}function q(_0x930b2a,_0x46d980,_0x16376){const _0x51dee3=_0x5bd08b;if(_0x16376==='id'||_0x16376==='auto'&&_0x930b2a['fields'][_0x46d980])return _0x46d980;let _0x31ff7c=Object[_0x51dee3(0x19c)](_0x930b2a[_0x51dee3(0x24a)])['filter'](_0x32b17b=>_0x32b17b[_0x51dee3(0x236)]===_0x46d980);if(_0x31ff7c[_0x51dee3(0x25d)]===0x1)return _0x31ff7c[0x0]['id'];throw _0x31ff7c[_0x51dee3(0x25d)]>0x1?Error(_0x51dee3(0x1a7)+_0x46d980):Error(_0x51dee3(0x1d6)+_0x46d980);}var J=class e{constructor(_0x4c923c,_0x256001,_0x9c1cbc,_0x15ebdb){const _0x3b87e4=_0x5bd08b;this['_base']=_0x4c923c,this[_0x3b87e4(0x1ff)]=_0x256001,this[_0x3b87e4(0x1f1)]=_0x9c1cbc,this[_0x3b87e4(0x1c2)]=_0x15ebdb;}['getId'](){const _0x55d99f=_0x5bd08b;return this[_0x55d99f(0x1f1)];}[_0x5bd08b(0x1f8)](){return this['_getRecord']();}[_0x5bd08b(0x229)](_0x58c151){const _0x4a087f=_0x5bd08b;var _0x289c6f;return(_0x289c6f=this[_0x4a087f(0x1cc)]()[_0x4a087f(0x19c)][_0x58c151])==null?null:_0x289c6f;}[_0x5bd08b(0x264)](){return{...this['_getRecord']()['values']};}[_0x5bd08b(0x225)](_0x301add,_0x1110df){const _0x12c9fd=_0x5bd08b;return this['_inject'][_0x12c9fd(0x19d)](_0x3aa743)[_0x12c9fd(0x21a)](_0x2380c6['id'],{'unitId':this[_0x12c9fd(0x233)][_0x12c9fd(0x1f2)](),'tableId':this['_table'][_0x12c9fd(0x1f2)](),'recordId':this[_0x12c9fd(0x1f1)],'fieldId':_0x301add,'value':_0x1110df});}['setValues'](_0x4906d3,_0x25a2ea='id'){const _0x32f83b=_0x5bd08b;let _0x2a2ae6=this[_0x32f83b(0x1c2)][_0x32f83b(0x19d)](_0x3aa743),_0x167cb9=this[_0x32f83b(0x1ff)]['getTable'](),_0xdab1f=[{'recordId':this['_recordId'],'values':K(_0x167cb9,_0x4906d3,_0x25a2ea)}];return _0x2a2ae6[_0x32f83b(0x21a)](_0x1529c6['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x32f83b(0x1ff)][_0x32f83b(0x1f2)](),'patches':_0xdab1f});}['delete'](){const _0x1cda8b=_0x5bd08b;return this[_0x1cda8b(0x1c2)]['get'](_0x3aa743)[_0x1cda8b(0x21a)](_0x3628a2['id'],{'unitId':this['_base'][_0x1cda8b(0x1f2)](),'tableId':this[_0x1cda8b(0x1ff)]['getId'](),'recordId':this['_recordId']});}[_0x5bd08b(0x1be)](_0x4d8656){const _0x47c439=_0x5bd08b;let _0x11d223=this['_inject'][_0x47c439(0x19d)](_0x3aa743),_0x270d78={...this[_0x47c439(0x1cc)](),..._0x4d8656,'id':_0x301c12(0x6)};_0x4d8656!=null&&_0x4d8656[_0x47c439(0x19c)]&&(_0x270d78[_0x47c439(0x19c)]={..._0x270d78[_0x47c439(0x19c)],..._0x4d8656[_0x47c439(0x19c)]});let _0x3aaf50=Date[_0x47c439(0x239)]();if(_0x270d78[_0x47c439(0x1a9)]||(_0x270d78[_0x47c439(0x1a9)]=''+_0x3aaf50),_0x270d78[_0x47c439(0x1e3)]||(_0x270d78[_0x47c439(0x1e3)]=_0x3aaf50),_0x270d78[_0x47c439(0x22a)]||(_0x270d78[_0x47c439(0x22a)]=_0x3aaf50),!_0x11d223[_0x47c439(0x21a)](_0x59fe1e['id'],{'unitId':this['_base'][_0x47c439(0x1f2)](),'tableId':this['_table'][_0x47c439(0x1f2)](),'sourceRecordId':this['_recordId'],'record':_0x270d78}))throw Error(_0x47c439(0x19f)+this[_0x47c439(0x1f1)]+'\x22.');return this['_inject'][_0x47c439(0x1d8)](e,this[_0x47c439(0x233)],this[_0x47c439(0x1ff)],_0x270d78['id'],this[_0x47c439(0x1c2)]);}[_0x5bd08b(0x1ab)](_0x17e1e6){const _0x524228=_0x5bd08b;return this['_inject']['get'](_0x3aa743)[_0x524228(0x21a)](_0x3304cb['id'],{'unitId':this[_0x524228(0x233)][_0x524228(0x1f2)](),'tableId':this['_table']['getId'](),'recordId':this['_recordId'],'orderKey':_0x17e1e6});}[_0x5bd08b(0x1cc)](){const _0x5ebd39=_0x5bd08b;let _0x44b1e9=this[_0x5ebd39(0x1ff)]['getTable']()[_0x5ebd39(0x1f9)][this[_0x5ebd39(0x1f1)]];if(!_0x44b1e9)throw Error('[FRecord]:\x20record\x20\x22'+this[_0x5ebd39(0x1f1)]+_0x5ebd39(0x259));return _0x44b1e9;}},Y=class{constructor(_0x1e6fb9,_0x1d10fd,_0x65dfa8,_0x2369d3){const _0x2c4cb4=_0x5bd08b;this[_0x2c4cb4(0x233)]=_0x1e6fb9,this[_0x2c4cb4(0x1ff)]=_0x1d10fd,this[_0x2c4cb4(0x1fd)]=_0x65dfa8,this['_injector']=_0x2369d3;}['getId'](){const _0x427313=_0x5bd08b;return this[_0x427313(0x1fd)];}[_0x5bd08b(0x23f)](){return this['_getView']();}[_0x5bd08b(0x1a4)](){const _0x49a6ac=_0x5bd08b;return this[_0x49a6ac(0x235)]()[_0x49a6ac(0x236)];}['getType'](){const _0x23278f=_0x5bd08b;return this[_0x23278f(0x235)]()[_0x23278f(0x25f)];}['setName'](_0x314212){const _0x10df61=_0x5bd08b;return this[_0x10df61(0x1d1)][_0x10df61(0x19d)](_0x3aa743)['syncExecuteCommand'](_0x2360c0['id'],{'unitId':this['_base'][_0x10df61(0x1f2)](),'tableId':this[_0x10df61(0x1ff)][_0x10df61(0x1f2)](),'viewId':this[_0x10df61(0x1fd)],'name':_0x314212});}[_0x5bd08b(0x213)](){const _0x108192=_0x5bd08b;let _0x360e6b=this[_0x108192(0x24e)](),_0x213a3d=this[_0x108192(0x235)]()[_0x108192(0x199)];switch(_0x360e6b){case _0x55bec4[_0x108192(0x1b4)]:return _0x213a3d;case _0x55bec4[_0x108192(0x23e)]:return _0x213a3d;case _0x55bec4[_0x108192(0x221)]:return _0x213a3d;case _0x55bec4[_0x108192(0x258)]:return _0x213a3d;case _0x55bec4['Gallery']:return _0x213a3d;default:return _0x213a3d;}}['updateConfig'](_0x4fb9cd){const _0x364189=_0x5bd08b;return this[_0x364189(0x1d1)][_0x364189(0x19d)](_0x3aa743)[_0x364189(0x21a)](_0x317ea0['id'],{'unitId':this[_0x364189(0x233)][_0x364189(0x1f2)](),'tableId':this[_0x364189(0x1ff)][_0x364189(0x1f2)](),'viewId':this[_0x364189(0x1fd)],'patch':_0x4fb9cd});}['getFilter'](){var _0x4c5d4a;return(_0x4c5d4a=this['_getView']()['filter'])==null?null:_0x4c5d4a;}[_0x5bd08b(0x192)](_0x14ccf8){const _0x31c0f3=_0x5bd08b;return this[_0x31c0f3(0x1d1)][_0x31c0f3(0x19d)](_0x3aa743)['syncExecuteCommand'](_0x3566b4['id'],{'unitId':this[_0x31c0f3(0x233)][_0x31c0f3(0x1f2)](),'tableId':this[_0x31c0f3(0x1ff)][_0x31c0f3(0x1f2)](),'viewId':this[_0x31c0f3(0x1fd)],'filter':_0x14ccf8});}[_0x5bd08b(0x20b)](){const _0x2a6208=_0x5bd08b;var _0x1b33c4;return(_0x1b33c4=this[_0x2a6208(0x235)]()['sort'])==null?[]:_0x1b33c4;}['setSort'](_0x637be5){const _0x99f623=_0x5bd08b;return this[_0x99f623(0x1d1)][_0x99f623(0x19d)](_0x3aa743)['syncExecuteCommand'](_0x225d57['id'],{'unitId':this[_0x99f623(0x233)][_0x99f623(0x1f2)](),'tableId':this[_0x99f623(0x1ff)][_0x99f623(0x1f2)](),'viewId':this[_0x99f623(0x1fd)],'sort':_0x637be5});}['getGroup'](){const _0x38b2fb=_0x5bd08b;var _0x5bc508;return(_0x5bc508=this[_0x38b2fb(0x235)]()['group'])==null?[]:_0x5bc508;}[_0x5bd08b(0x237)](_0x1d4d77){const _0xdba1e=_0x5bd08b;return this[_0xdba1e(0x1d1)][_0xdba1e(0x19d)](_0x3aa743)[_0xdba1e(0x21a)](_0x42ee07['id'],{'unitId':this[_0xdba1e(0x233)][_0xdba1e(0x1f2)](),'tableId':this['_table'][_0xdba1e(0x1f2)](),'viewId':this[_0xdba1e(0x1fd)],'group':_0x1d4d77});}[_0x5bd08b(0x252)](_0x1360d0){const _0x3633bc=_0x5bd08b;var _0x3349f9,_0xc63c79;return(_0x3349f9=(_0xc63c79=this[_0x3633bc(0x235)]()['fieldSettings'])==null?void 0x0:_0xc63c79[_0x1360d0])==null?{}:_0x3349f9;}[_0x5bd08b(0x209)](){const _0x52599b=_0x5bd08b;var _0x2a3e19;let _0x84264a=this[_0x52599b(0x1ff)][_0x52599b(0x1bd)](),_0x4a3944=this[_0x52599b(0x235)]();return((_0x2a3e19=_0x4a3944[_0x52599b(0x1b7)])==null?_0x84264a[_0x52599b(0x1b7)]:_0x2a3e19)[_0x52599b(0x23d)](_0x419327=>{const _0x218134=_0x52599b;var _0x40df53;return _0x84264a[_0x218134(0x24a)][_0x419327]&&!(!((_0x40df53=_0x4a3944['fieldSettings'])==null||(_0x40df53=_0x40df53[_0x419327])==null)&&_0x40df53[_0x218134(0x219)]);})[_0x52599b(0x22e)](_0x300272=>this[_0x52599b(0x1d1)]['createInstance'](U,this[_0x52599b(0x233)],this[_0x52599b(0x1ff)],_0x300272,this[_0x52599b(0x1d1)]));}[_0x5bd08b(0x1de)](_0x2be4b6,_0x2f8121){const _0x162d89=_0x5bd08b;return this[_0x162d89(0x1d1)][_0x162d89(0x19d)](_0x3aa743)['syncExecuteCommand'](_0x358890['id'],{'unitId':this[_0x162d89(0x233)][_0x162d89(0x1f2)](),'tableId':this['_table']['getId'](),'viewId':this[_0x162d89(0x1fd)],'fieldId':_0x2be4b6,'visible':_0x2f8121});}[_0x5bd08b(0x20e)](_0x41eb7b,_0x280634){const _0x560161=_0x5bd08b;return this[_0x560161(0x1d1)][_0x560161(0x19d)](_0x3aa743)[_0x560161(0x21a)](_0x41a27a['id'],{'unitId':this[_0x560161(0x233)][_0x560161(0x1f2)](),'tableId':this[_0x560161(0x1ff)][_0x560161(0x1f2)](),'viewId':this[_0x560161(0x1fd)],'fieldId':_0x41eb7b,'width':_0x280634});}[_0x5bd08b(0x241)](_0x15c87a,_0x3aee89){const _0x4aeedf=_0x5bd08b;return this[_0x4aeedf(0x1d1)][_0x4aeedf(0x19d)](_0x3aa743)['syncExecuteCommand'](_0x3c1eeb['id'],{'unitId':this[_0x4aeedf(0x233)][_0x4aeedf(0x1f2)](),'tableId':this[_0x4aeedf(0x1ff)][_0x4aeedf(0x1f2)](),'viewId':this[_0x4aeedf(0x1fd)],'fieldId':_0x15c87a,'target':_0x3aee89});}[_0x5bd08b(0x227)](_0xde7f0){const _0x336a1f=_0x5bd08b;return this[_0x336a1f(0x1d1)]['get'](_0x3aa743)['syncExecuteCommand'](_0x23539e['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x336a1f(0x1ff)]['getId'](),'viewId':this['_viewId'],'target':_0xde7f0});}[_0x5bd08b(0x22c)](){const _0x1500ee=_0x5bd08b;return this['_injector'][_0x1500ee(0x19d)](_0x3aa743)[_0x1500ee(0x21a)](_0x3a28cc['id'],{'unitId':this[_0x1500ee(0x233)][_0x1500ee(0x1f2)](),'tableId':this['_table'][_0x1500ee(0x1f2)](),'viewId':this['_viewId']});}[_0x5bd08b(0x1d7)](){const _0x17d419=_0x5bd08b;return this[_0x17d419(0x1d1)][_0x17d419(0x19d)](_0x1551fd)[_0x17d419(0x1d7)](this[_0x17d419(0x233)]['getBase']()[_0x17d419(0x190)](),this[_0x17d419(0x1ff)][_0x17d419(0x1f2)](),this[_0x17d419(0x1fd)]);}[_0x5bd08b(0x235)](){const _0x3f8381=_0x5bd08b;let _0x555fbe=this[_0x3f8381(0x1ff)]['getTable']()[_0x3f8381(0x19a)][this[_0x3f8381(0x1fd)]];if(!_0x555fbe)throw Error(_0x3f8381(0x1ea)+this[_0x3f8381(0x1fd)]+_0x3f8381(0x259));return _0x555fbe;}},X=class{constructor(_0x49b45a,_0x4edd1b,_0x561687){const _0x716279=_0x5bd08b;this['_base']=_0x49b45a,this['_tableId']=_0x4edd1b,this[_0x716279(0x1d1)]=_0x561687;}['getBase'](){const _0x3f7664=_0x5bd08b;return this[_0x3f7664(0x233)][_0x3f7664(0x207)]();}[_0x5bd08b(0x1bd)](){const _0x436597=_0x5bd08b;return this[_0x436597(0x247)]();}[_0x5bd08b(0x1f2)](){const _0x1fd296=_0x5bd08b;return this[_0x1fd296(0x240)];}[_0x5bd08b(0x1a4)](){const _0xdd3a51=_0x5bd08b;return this[_0xdd3a51(0x247)]()[_0xdd3a51(0x236)];}[_0x5bd08b(0x1f3)](_0x34ebcf){const _0x26cf2c=_0x5bd08b;return this[_0x26cf2c(0x1d1)][_0x26cf2c(0x19d)](_0x3aa743)[_0x26cf2c(0x21a)](_0x1341d2['id'],{'unitId':this[_0x26cf2c(0x233)][_0x26cf2c(0x1f2)](),'tableId':this[_0x26cf2c(0x240)],'name':_0x34ebcf});}['search'](_0x2c8c66,_0x223f1e){const _0x1b5b02=_0x5bd08b;var _0x43aa36;let _0x2daffe=this[_0x1b5b02(0x1d1)][_0x1b5b02(0x19d)](_0x1551fd),_0x2da2b0=this[_0x1b5b02(0x233)][_0x1b5b02(0x207)]()[_0x1b5b02(0x190)](),_0x4642fd=this[_0x1b5b02(0x247)]();if(_0x223f1e){var _0x17e539;let _0x444327=_0x2daffe['getProjection'](_0x2da2b0,this[_0x1b5b02(0x240)],_0x223f1e),_0x254c18=_0x4642fd[_0x1b5b02(0x19a)][_0x223f1e],_0x4253c7=(_0x17e539=_0x2c8c66[_0x1b5b02(0x1bc)])==null?he(_0x4642fd,_0x254c18,_0x444327):_0x17e539,_0x4eeba3=_0x1b5b02(0x230)in _0x444327&&Array[_0x1b5b02(0x1d3)](_0x444327[_0x1b5b02(0x230)])?_0x444327['rows']:[];return _0x8a5c71({..._0x2c8c66,'table':_0x4642fd,'fieldIds':_0x4253c7,'rows':_0x4eeba3});}let _0x11aff0=(_0x4642fd[_0x1b5b02(0x1d4)]?_0x4642fd[_0x1b5b02(0x1d4)][_0x1b5b02(0x22e)](_0x197289=>_0x4642fd[_0x1b5b02(0x1f9)][_0x197289]):Object[_0x1b5b02(0x19c)](_0x4642fd[_0x1b5b02(0x1f9)])['sort']((_0x20c2b9,_0x43871d)=>_0x20c2b9[_0x1b5b02(0x1a9)][_0x1b5b02(0x211)](_0x43871d['orderKey'])))['filter'](_0xce35f6=>_0xce35f6)[_0x1b5b02(0x22e)](_0x41d959=>({'recordId':_0x41d959['id'],'values':_0x41d959[_0x1b5b02(0x19c)]})),_0x3e30e7=(_0x43aa36=_0x2c8c66[_0x1b5b02(0x1bc)])==null?_0x4642fd[_0x1b5b02(0x1b7)][_0x1b5b02(0x23d)](_0x3c1023=>_0x4642fd['fields'][_0x3c1023]):_0x43aa36;return _0x8a5c71({..._0x2c8c66,'table':_0x4642fd,'fieldIds':_0x3e30e7,'rows':_0x11aff0});}[_0x5bd08b(0x21c)](){const _0x5b31a6=_0x5bd08b;return this['_getTable']()[_0x5b31a6(0x269)];}[_0x5bd08b(0x1c4)](){const _0x4ebaa3=_0x5bd08b;let _0x234c02=this[_0x4ebaa3(0x247)]();return _0x234c02[_0x4ebaa3(0x1b7)][_0x4ebaa3(0x22e)](_0x120fa7=>_0x234c02[_0x4ebaa3(0x24a)][_0x120fa7])['filter'](_0x40308c=>_0x40308c)[_0x4ebaa3(0x22e)](_0x2bf5bf=>this[_0x4ebaa3(0x1d1)][_0x4ebaa3(0x1d8)](U,this[_0x4ebaa3(0x233)],this,_0x2bf5bf['id'],this[_0x4ebaa3(0x1d1)]));}[_0x5bd08b(0x222)](_0x466536){const _0x3f3122=_0x5bd08b;let _0x2e6f8b=this[_0x3f3122(0x247)]()['fields'][_0x466536];return _0x2e6f8b?this[_0x3f3122(0x1d1)]['createInstance'](U,this[_0x3f3122(0x233)],this,_0x2e6f8b['id'],this[_0x3f3122(0x1d1)]):null;}[_0x5bd08b(0x25e)](_0x158d4b){const _0x3ff851=_0x5bd08b;let _0x3bb4d7=this[_0x3ff851(0x247)]()[_0x3ff851(0x24a)],_0x3990ea=Object[_0x3ff851(0x19c)](_0x3bb4d7)['find'](_0x4fc068=>_0x4fc068[_0x3ff851(0x236)]===_0x158d4b);return _0x3990ea?this['_injector'][_0x3ff851(0x1d8)](U,this[_0x3ff851(0x233)],this,_0x3990ea['id'],this[_0x3ff851(0x1d1)]):null;}[_0x5bd08b(0x1cb)](){const _0x58a4f3=_0x5bd08b;let _0x4cd6ac=this[_0x58a4f3(0x247)]()[_0x58a4f3(0x269)];return this[_0x58a4f3(0x1d1)][_0x58a4f3(0x1d8)](U,this[_0x58a4f3(0x233)],this,_0x4cd6ac,this[_0x58a4f3(0x1d1)]);}[_0x5bd08b(0x1b0)](_0x2e06d3,_0x514e5a,_0x197dda){const _0x2772c3=_0x5bd08b;var _0x2a579f;let _0x1a1b4f=this[_0x2772c3(0x1d1)][_0x2772c3(0x19d)](_0x3aa743),_0x4af1a9=(_0x2a579f=_0x197dda==null?void 0x0:_0x197dda[_0x2772c3(0x250)])==null?{}:_0x2a579f;if(_0x4af1a9['id']=_0x301c12(0x6),_0x4af1a9[_0x2772c3(0x236)]=_0x2e06d3,_0x4af1a9[_0x2772c3(0x25f)]=_0x514e5a,!_0x4af1a9[_0x2772c3(0x25f)])throw Error(_0x2772c3(0x1e8));if(_0x4af1a9[_0x2772c3(0x199)]||(_0x4af1a9[_0x2772c3(0x199)]={}),!_0x1a1b4f[_0x2772c3(0x21a)](_0x184d99['id'],{'unitId':this[_0x2772c3(0x233)][_0x2772c3(0x1f2)](),'tableId':this[_0x2772c3(0x240)],'field':_0x4af1a9,'index':_0x197dda==null?void 0x0:_0x197dda[_0x2772c3(0x266)]}))throw Error(_0x2772c3(0x1b9)+_0x2e06d3+'\x22');return this['_injector'][_0x2772c3(0x1d8)](U,this[_0x2772c3(0x233)],this,_0x4af1a9['id'],this[_0x2772c3(0x1d1)]);}[_0x5bd08b(0x25a)](){const _0x1c0e01=_0x5bd08b;return this[_0x1c0e01(0x23a)]()[_0x1c0e01(0x22e)](_0x175a74=>this[_0x1c0e01(0x1d1)][_0x1c0e01(0x1d8)](J,this[_0x1c0e01(0x233)],this,_0x175a74,this['_injector']));}[_0x5bd08b(0x22b)](_0x519602){const _0x94e664=_0x5bd08b;return this[_0x94e664(0x247)]()[_0x94e664(0x1f9)][_0x519602]?this[_0x94e664(0x1d1)][_0x94e664(0x1d8)](J,this[_0x94e664(0x233)],this,_0x519602,this[_0x94e664(0x1d1)]):null;}[_0x5bd08b(0x1bf)](_0x31087d={}){const _0x1e9078=_0x5bd08b;var _0x7d81f5;let _0x1afb03=this[_0x1e9078(0x247)](),_0x393e9b=this[_0x1e9078(0x23a)](_0x31087d),_0x4cdf41=Math[_0x1e9078(0x1f0)](0x0,(_0x7d81f5=_0x31087d['offset'])==null?0x0:_0x7d81f5),_0x5ad1ed=_0x31087d[_0x1e9078(0x1ed)]==null?null:Math[_0x1e9078(0x1f0)](0x0,_0x31087d[_0x1e9078(0x1ed)]),_0x920fde=ue(_0x393e9b[_0x1e9078(0x22e)](_0x31673e=>_0x1afb03[_0x1e9078(0x1f9)][_0x31673e])[_0x1e9078(0x23d)](_0x225776=>fe(_0x225776,_0x1afb03,_0x31087d[_0x1e9078(0x23d)])),_0x1afb03,_0x31087d[_0x1e9078(0x23c)]);return{'records':le(_0x920fde,_0x31087d)[_0x1e9078(0x22e)](_0xa43c40=>this['_injector'][_0x1e9078(0x1d8)](J,this[_0x1e9078(0x233)],this,_0xa43c40['id'],this[_0x1e9078(0x1d1)])),'total':_0x920fde[_0x1e9078(0x25d)],'offset':_0x4cdf41,'limit':_0x5ad1ed,'hasMore':_0x5ad1ed!=null&&_0x4cdf41+_0x5ad1ed<_0x920fde['length']};}[_0x5bd08b(0x1ce)](_0x5a4cff,_0x30c339='id',_0xa5f1a8){const _0x329ab7=_0x5bd08b;let _0x4451f6=this['_injector']['get'](_0x3aa743),_0x57524c=this[_0x329ab7(0x247)](),_0x420a4f=_0xa5f1a8==null?{}:_0xa5f1a8;_0x420a4f['id']=_0x301c12(0x6),_0x420a4f['values']=K(_0x57524c,_0x5a4cff,_0x30c339);let _0x5e3a10=Date[_0x329ab7(0x239)]();if(_0x420a4f['orderKey']||(_0x420a4f[_0x329ab7(0x1a9)]=''+_0x5e3a10),_0x420a4f['createdAt']||(_0x420a4f[_0x329ab7(0x1e3)]=_0x5e3a10),_0x420a4f['updatedAt']||(_0x420a4f['updatedAt']=_0x5e3a10),!_0x4451f6[_0x329ab7(0x21a)](_0x121d2e['id'],{'unitId':this['_base']['getId'](),'tableId':this['_tableId'],'record':_0x420a4f}))throw Error('Failed\x20to\x20add\x20record\x20with\x20id\x20\x22'+_0x420a4f['id']+'\x22');return this['_injector'][_0x329ab7(0x1d8)](J,this[_0x329ab7(0x233)],this,_0x420a4f['id'],this['_injector']);}[_0x5bd08b(0x22f)](_0x9b5bc0){const _0x869238=_0x5bd08b;if(!_0x9b5bc0[_0x869238(0x25d)])return[];let _0x1566f5=this[_0x869238(0x1d1)]['get'](_0x3aa743),_0x310cfc=this[_0x869238(0x247)](),_0x46bb61=Date[_0x869238(0x239)](),_0x3d3636=_0x9b5bc0[_0x869238(0x22e)]((_0x57483f,_0x5b36d6)=>{const _0x4fe33d=_0x869238;var _0x56548a,_0x23429a;let _0x48eda8=(_0x56548a=_0x57483f[_0x4fe33d(0x1d2)])==null?{}:_0x56548a;return _0x48eda8['id']=_0x301c12(0x6),_0x48eda8[_0x4fe33d(0x19c)]=K(_0x310cfc,_0x57483f[_0x4fe33d(0x19c)],(_0x23429a=_0x57483f[_0x4fe33d(0x1dd)])==null?'id':_0x23429a),_0x48eda8[_0x4fe33d(0x1a9)]||(_0x48eda8['orderKey']=''+(_0x46bb61+_0x5b36d6)),_0x48eda8['createdAt']||(_0x48eda8['createdAt']=_0x46bb61),_0x48eda8[_0x4fe33d(0x22a)]||(_0x48eda8[_0x4fe33d(0x22a)]=_0x46bb61),_0x48eda8;});if(!_0x1566f5[_0x869238(0x21a)](_0x448856['id'],{'unitId':this['_base'][_0x869238(0x1f2)](),'tableId':this[_0x869238(0x240)],'records':_0x3d3636}))throw Error(_0x869238(0x1e9));return _0x3d3636[_0x869238(0x22e)](_0x5320f9=>this[_0x869238(0x1d1)][_0x869238(0x1d8)](J,this['_base'],this,_0x5320f9['id'],this[_0x869238(0x1d1)]));}['deleteRecords'](_0x25674a){const _0x123bf5=_0x5bd08b;return _0x25674a[_0x123bf5(0x25d)]?this[_0x123bf5(0x1d1)][_0x123bf5(0x19d)](_0x3aa743)['syncExecuteCommand'](_0x23c648['id'],{'unitId':this[_0x123bf5(0x233)][_0x123bf5(0x1f2)](),'tableId':this[_0x123bf5(0x240)],'recordIds':_0x25674a}):!0x0;}[_0x5bd08b(0x202)](_0x4db416,_0x5e6b2d,_0x4722a8=0x1,_0x46ba27=0x1){const _0x10e06f=_0x5bd08b;return this[_0x10e06f(0x1d1)][_0x10e06f(0x1d8)](W,this['_base'],this,{'startRow':_0x4db416,'endRow':_0x4db416+_0x4722a8-0x1,'startColumn':_0x5e6b2d,'endColumn':_0x5e6b2d+_0x46ba27-0x1},this[_0x10e06f(0x1d1)]);}[_0x5bd08b(0x1c8)](){const _0x540dc0=_0x5bd08b;var _0x4dcade,_0x3d3658;let _0x31587e=_0x5b5260(this[_0x540dc0(0x247)]()),_0x3b1c9d=(_0x4dcade=(_0x3d3658=_0x31587e[_0x540dc0(0x1d4)])==null?void 0x0:_0x3d3658[_0x540dc0(0x25d)])==null?0x0:_0x4dcade,_0x4c0ef2=_0x31587e[_0x540dc0(0x1b7)][_0x540dc0(0x25d)];return this[_0x540dc0(0x202)](0x0,0x0,Math[_0x540dc0(0x1f0)](_0x3b1c9d,0x1),Math[_0x540dc0(0x1f0)](_0x4c0ef2,0x1));}['getViews'](){const _0x3e7821=_0x5bd08b;let _0x3321ba=this[_0x3e7821(0x247)]();return _0x3321ba['viewOrder'][_0x3e7821(0x23d)](_0x4b6526=>_0x3321ba[_0x3e7821(0x19a)][_0x4b6526])['map'](_0x287d78=>this['_injector']['createInstance'](Y,this[_0x3e7821(0x233)],this,_0x287d78,this[_0x3e7821(0x1d1)]));}['getViewById'](_0x273c73){const _0x38e76c=_0x5bd08b;return this[_0x38e76c(0x247)]()[_0x38e76c(0x19a)][_0x273c73]?this['_injector']['createInstance'](Y,this['_base'],this,_0x273c73,this['_injector']):null;}['getViewByName'](_0xcc3c14){const _0x29f6a9=_0x5bd08b;let _0x279f36=this[_0x29f6a9(0x247)](),_0x662adf=Object['values'](_0x279f36['views'])[_0x29f6a9(0x1d9)](_0x4893f0=>_0x4893f0[_0x29f6a9(0x236)]===_0xcc3c14);return _0x662adf?this[_0x29f6a9(0x1d1)][_0x29f6a9(0x1d8)](Y,this['_base'],this,_0x662adf['id'],this[_0x29f6a9(0x1d1)]):null;}[_0x5bd08b(0x208)](_0x273fa2,_0x295a5f,_0x3bdf44){const _0x21b462=_0x5bd08b;var _0xa8758b;let _0x21e7ef=this[_0x21b462(0x1d1)][_0x21b462(0x19d)](_0x3aa743),_0x5ed549=this[_0x21b462(0x247)](),_0x4a5edd=(_0xa8758b=_0x3bdf44==null?void 0x0:_0x3bdf44[_0x21b462(0x245)])==null?{}:_0xa8758b;if(_0x4a5edd['id']=_0x301c12(0x6),_0x4a5edd[_0x21b462(0x236)]=_0x273fa2,_0x4a5edd['type']=_0x295a5f,_0x4a5edd[_0x21b462(0x23b)]=this['_tableId'],!_0x4a5edd['type'])throw Error(_0x21b462(0x260));if(_0x4a5edd[_0x21b462(0x199)]||(_0x4a5edd['config']={}),_0x4a5edd[_0x21b462(0x1b7)]||(_0x4a5edd['fieldOrder']=[..._0x5ed549[_0x21b462(0x1b7)]]),!_0x21e7ef['syncExecuteCommand'](_0x54aea6['id'],{'unitId':this[_0x21b462(0x233)]['getId'](),'tableId':this[_0x21b462(0x240)],'view':_0x4a5edd,'index':_0x3bdf44==null?void 0x0:_0x3bdf44[_0x21b462(0x266)]}))throw Error(_0x21b462(0x262)+_0x273fa2+'\x22');return this['_injector'][_0x21b462(0x1d8)](Y,this[_0x21b462(0x233)],this,_0x4a5edd['id'],this[_0x21b462(0x1d1)]);}[_0x5bd08b(0x228)](){const _0x2f2b0a=_0x5bd08b;let _0x3c56e9=this[_0x2f2b0a(0x247)](),_0x26ec6b=_0x3c56e9[_0x2f2b0a(0x1b7)]['filter'](_0x13c747=>_0x3c56e9['fields'][_0x13c747]),_0x1ff778=_0x3c56e9['viewOrder'][_0x2f2b0a(0x23d)](_0x24937c=>_0x3c56e9[_0x2f2b0a(0x19a)][_0x24937c]);return{'id':_0x3c56e9['id'],'name':_0x3c56e9['name'],'primaryFieldId':_0x3c56e9[_0x2f2b0a(0x269)],'fieldIds':_0x26ec6b,'viewIds':_0x1ff778,'recordCount':this[_0x2f2b0a(0x23a)]()[_0x2f2b0a(0x25d)],'fields':_0x26ec6b[_0x2f2b0a(0x22e)](_0x1c82e1=>{const _0x453f35=_0x2f2b0a;let _0x141e23=_0x3c56e9[_0x453f35(0x24a)][_0x1c82e1];return{'id':_0x141e23['id'],'name':_0x141e23[_0x453f35(0x236)],'type':_0x141e23[_0x453f35(0x25f)],'config':_0x141e23[_0x453f35(0x199)],'readonly':_0x141e23[_0x453f35(0x204)],'description':_0x141e23['description']};}),'views':_0x1ff778[_0x2f2b0a(0x22e)](_0x48eccd=>{const _0x2c7b01=_0x2f2b0a;let _0x4be212=_0x3c56e9[_0x2c7b01(0x19a)][_0x48eccd];return{'id':_0x4be212['id'],'name':_0x4be212['name'],'type':_0x4be212[_0x2c7b01(0x25f)]};})};}[_0x5bd08b(0x247)](){const _0x40b107=_0x5bd08b;let _0x528493=this['_base'][_0x40b107(0x207)]()[_0x40b107(0x190)]()['tables'][this[_0x40b107(0x240)]];if(!_0x528493)throw Error('[FTable]:\x20table\x20\x22'+this[_0x40b107(0x240)]+_0x40b107(0x259));return _0x528493;}['_resolveRecordIds'](_0x4296d5={}){const _0x161de7=_0x5bd08b;let _0x481b69=this['_injector'][_0x161de7(0x19d)](_0x1551fd),_0x157c9a=this[_0x161de7(0x233)][_0x161de7(0x207)]()[_0x161de7(0x190)](),_0x1476f3=this[_0x161de7(0x247)]();if(_0x4296d5[_0x161de7(0x1da)]){let _0x19aa74=_0x481b69['getProjection'](_0x157c9a,this[_0x161de7(0x240)],_0x4296d5[_0x161de7(0x1da)]);if(_0x161de7(0x230)in _0x19aa74&&Array[_0x161de7(0x1d3)](_0x19aa74[_0x161de7(0x230)]))return _0x19aa74[_0x161de7(0x230)]['map'](_0x4cc46a=>_0x4cc46a[_0x161de7(0x1d5)]);}return(_0x1476f3[_0x161de7(0x1d4)]?_0x1476f3[_0x161de7(0x1d4)][_0x161de7(0x22e)](_0x395c3f=>_0x1476f3[_0x161de7(0x1f9)][_0x395c3f]):Object['values'](_0x1476f3[_0x161de7(0x1f9)])[_0x161de7(0x23c)]((_0x73fbb7,_0x4c3b45)=>_0x73fbb7['orderKey'][_0x161de7(0x211)](_0x4c3b45[_0x161de7(0x1a9)])))['filter'](_0x433e37=>_0x433e37)[_0x161de7(0x22e)](_0x3fede7=>_0x3fede7['id']);}};function le(_0x3f328f,_0x14e6d9){const _0xb53184=_0x5bd08b;var _0x4540c5;let _0x3c40a8=Math[_0xb53184(0x1f0)](0x0,(_0x4540c5=_0x14e6d9[_0xb53184(0x1eb)])==null?0x0:_0x4540c5);return _0x14e6d9[_0xb53184(0x1ed)]==null?_0x3f328f[_0xb53184(0x1ec)](_0x3c40a8):_0x3f328f[_0xb53184(0x1ec)](_0x3c40a8,_0x3c40a8+Math[_0xb53184(0x1f0)](0x0,_0x14e6d9['limit']));}function ue(_0x2ec663,_0x48560e,_0x2ae8b1=[]){const _0x4a75dd=_0x5bd08b;return _0x2ae8b1[_0x4a75dd(0x25d)]?[..._0x2ec663][_0x4a75dd(0x23c)]((_0x3464bf,_0x5e73e8)=>{const _0xed9507=_0x4a75dd;var _0x2d6c1d,_0x1b6d86;for(let _0x284cd4 of _0x2ae8b1){var _0x48a1df;let _0x5ca705=_0x284cd4[_0xed9507(0x234)]===_0x1d10d0['DESC']?-0x1:0x1,_0x1f4566=de(_0x3464bf[_0xed9507(0x19c)][_0x284cd4[_0xed9507(0x1b8)]],_0x5e73e8[_0xed9507(0x19c)][_0x284cd4['fieldId']],(_0x48a1df=_0x48560e[_0xed9507(0x24a)][_0x284cd4[_0xed9507(0x1b8)]])==null?void 0x0:_0x48a1df[_0xed9507(0x25f)]);if(_0x1f4566!==0x0)return _0x1f4566*_0x5ca705;}return String((_0x2d6c1d=_0x3464bf[_0xed9507(0x1a9)])==null?_0x3464bf['id']:_0x2d6c1d)[_0xed9507(0x211)](String((_0x1b6d86=_0x5e73e8['orderKey'])==null?_0x5e73e8['id']:_0x1b6d86));}):_0x2ec663;}function de(_0x59b07d,_0x290dfc,_0x537b89){const _0x43a01e=_0x5bd08b;return _0x59b07d==null&&_0x290dfc==null?0x0:_0x59b07d==null?-0x1:_0x290dfc==null?0x1:typeof _0x59b07d==_0x43a01e(0x20d)&&typeof _0x290dfc=='number'?_0x59b07d-_0x290dfc:_0x537b89===_0x4bca3c[_0x43a01e(0x19b)]?Number(_0x59b07d)-Number(_0x290dfc):String(_0x59b07d)[_0x43a01e(0x211)](String(_0x290dfc));}function fe(_0x47f12c,_0x577d8b,_0x5cd22c){const _0x3822a3=_0x5bd08b;var _0x342963;if(!_0x5cd22c||!((_0x342963=_0x5cd22c[_0x3822a3(0x196)])!=null&&_0x342963[_0x3822a3(0x25d)]))return!0x0;let {conjunction:_0x5d052b=_0x468dce['OR'],conditions:_0x1f1164}=_0x5cd22c;return _0x5d052b===_0x468dce['AND']&&_0x1f1164[_0x3822a3(0x25d)]>0x1?_0x1f1164['every'](_0x2bde8d=>Z(_0x47f12c,_0x577d8b,_0x2bde8d)):_0x1f1164[_0x3822a3(0x249)](_0x495788=>Z(_0x47f12c,_0x577d8b,_0x495788));}function Z(_0xc5474d,_0xd24c30,_0x2b156e){const _0x33d9e7=_0x5bd08b;let _0x16db57=_0xc5474d[_0x33d9e7(0x19c)][_0x2b156e[_0x33d9e7(0x1b8)]],_0x3a00ab=_0xd24c30['fields'][_0x2b156e['fieldId']];if(pe(_0x2b156e)){let _0x3ba655=me(_0x2b156e)[_0x33d9e7(0x26a)](String(_0x16db57==null?'':_0x16db57));return _0x2b156e[_0x33d9e7(0x1c7)]===_0x33d9e7(0x256)?_0x3ba655:!_0x3ba655;}return _0x3a00ab?_0x518c09(_0x16db57,_0x2b156e[_0x33d9e7(0x1c7)],_0x2b156e[_0x33d9e7(0x20f)],_0x3a00ab):!0x0;}function pe(_0x1d3517){const _0x5c689c=_0x5bd08b;return _0x1d3517[_0x5c689c(0x1c7)]==='matches'||_0x1d3517[_0x5c689c(0x1c7)]===_0x5c689c(0x198);}function me(_0x58b4f1){const _0x1be2c1=_0x5bd08b;var _0x4b6484;let _0x552f78=String((_0x4b6484=_0x58b4f1[_0x1be2c1(0x20f)])==null?'':_0x4b6484);if(_0x552f78[_0x1be2c1(0x25d)]>0x200)throw Error(_0x1be2c1(0x1b6));try{return new RegExp(_0x552f78,_0x58b4f1[_0x1be2c1(0x1e4)]?void 0x0:'i');}catch(_0x3d3b2f){throw Error(_0x1be2c1(0x210)+_0x552f78+'.\x20'+(_0x3d3b2f instanceof Error?_0x3d3b2f['message']:String(_0x3d3b2f)));}}function he(_0x460dad,_0x52aa81,_0x1d572d){const _0xb34125=_0x5bd08b;if(_0x1d572d[_0xb34125(0x25f)]!=='invalid'){var _0x3a0e58;if(_0x1d572d[_0xb34125(0x25f)]===_0x55bec4[_0xb34125(0x23e)]){var _0x5d29e3,_0x38402e,_0x2a2c8f;let _0x35b1a7=[(_0x5d29e3=(_0x38402e=_0x1d572d[_0xb34125(0x24a)])==null||(_0x38402e=_0x38402e[0x0])==null?void 0x0:_0x38402e['id'])==null?_0x460dad[_0xb34125(0x269)]:_0x5d29e3,...(_0x2a2c8f=_0x1d572d['visibleCardFieldIds'])==null?[]:_0x2a2c8f];return Array[_0xb34125(0x24f)](new Set(_0x35b1a7['filter'](_0x1f75d1=>!!_0x460dad[_0xb34125(0x24a)][_0x1f75d1])));}if((_0x3a0e58=_0x1d572d[_0xb34125(0x24a)])!=null&&_0x3a0e58[_0xb34125(0x25d)])return _0x1d572d[_0xb34125(0x24a)][_0xb34125(0x22e)](_0x1c43d1=>_0x1c43d1['id'])['filter'](_0x4dfdbd=>{const _0x2b85c8=_0xb34125;var _0xf5d7fd;return!!(_0x460dad[_0x2b85c8(0x24a)][_0x4dfdbd]&&!(!(_0x52aa81==null||(_0xf5d7fd=_0x52aa81[_0x2b85c8(0x1a6)])==null||(_0xf5d7fd=_0xf5d7fd[_0x4dfdbd])==null)&&_0xf5d7fd['hidden']));});}return _0x460dad[_0xb34125(0x1b7)][_0xb34125(0x23d)](_0x15b4ab=>{const _0x80eebf=_0xb34125;var _0x2f8771;return!!(_0x460dad['fields'][_0x15b4ab]&&!(!(_0x52aa81==null||(_0x2f8771=_0x52aa81[_0x80eebf(0x1a6)])==null||(_0x2f8771=_0x2f8771[_0x15b4ab])==null)&&_0x2f8771[_0x80eebf(0x219)]));});}function _0x2bcb(){const _0x131f7a=['moveField','startColumn','[FBase]:\x20table\x20\x22','includeRecords','view','17064ebjEhS','_getTable','createUnit','some','fields','9578292JdsKCF','BaseTableCreated','table','getType','from','field','BeforeBaseTableFieldCreate','getFieldSettings','45liNnpx','38353RyNeVP','beforeCommandExecuted','matches',',\x20range:\x20','Gantt','\x22\x20does\x20not\x20exist.','getRecords','decorate','_initBaseBeforeEvents','length','getFieldByName','type','View\x20type\x20is\x20required','getField','Failed\x20to\x20create\x20view\x20\x22','deleteTable','getValues','getTableByName','index','colId','4562085AppXLJ','primaryFieldId','test','disposeWithMe','BaseSortDirection','forEach','getSnapshot','BaseFieldType','setFilter','BaseTableFieldCreated','BaseTableRecordCreated','getTableId','conditions','stringify','notMatches','config','views','Date','values','get','UNIVER_BASE','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','cancel','endRow','getUnitId','_getField','getName','161039OiaRCO','fieldSettings','Duplicate\x20Base\x20field\x20name:\x20','168076riTPAV','orderKey','changeType','setOrderKey','1528696jJOFHF','BeforeBaseTableRecordCreate','BaseTableCellValueChanged','getOwnPropertyDescriptor','addField','string','getColumn','clear','Grid','546QDklcL','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','fieldOrder','fieldId','Failed\x20to\x20add\x20field\x20\x22','getUnit','getCurrentUnitOfType','fieldIds','getTable','duplicate','queryRecords','\x20Copy','deepClone','_inject','auto','getFields','BaseFieldKeyEnum','[FBaseRange]:\x20values\x20size\x20','operator','getDataRange','BeforeBaseTableCellValueChange','extend','getPrimaryField','_getRecord','setConfig','addRecord','4MReGHP','getTableById','_injector','record','isArray','recordOrder','recordId','Base\x20field\x20not\x20found:\x20','getProjection','createInstance','find','viewId','startRow',',\x20max\x20columns:\x20','fieldKey','setFieldVisible','flatMap','Event','update','endColumn','createdAt','caseSensitive','BeforeBaseTableCreate','duplicateTable','5350cgbonF','Field\x20type\x20is\x20required','Failed\x20to\x20add\x20records','[FView]:\x20view\x20\x22','offset','slice','limit','indexOf','description','max','_recordId','getId','setName','22QETMKA','getBaseId','BeforeBaseTableViewCreate','Name','getRecord','records','_range','rowId','getActiveBase','_viewId','tables','_table','defineProperty','object','getRange','_assertInBounds','readonly','getBases','BaseTableViewCreated','getBase','createView','getVisibleFields','Failed\x20to\x20duplicate\x20table\x20\x22','getSort','getRow','number','setFieldWidth','value','Invalid\x20Base\x20regex\x20filter:\x20','localeCompare','entries','getConfig','params','setValues','commonExtend','Failed\x20to\x20delete\x20table\x20\x22','[FBaseRange]:\x20table\x20does\x20not\x20exist.','hidden','syncExecuteCommand','_fieldId','getPrimaryFieldId','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','registerEventHandler','push','getNumColumns','Calendar','getFieldById','\x20exceeds\x20range\x20size\x20','getNumRows','setValue','fireEvent','move','getSchema','getValue','updatedAt','getRecordById','delete','BaseFilterOperator','map','addRecords','rows','onCommandExecuted','BaseViewType','_base','direction','_getView','name','setGroup','getDefaultValue','now','_resolveRecordIds','tableId','sort','filter','Kanban','getView','_tableId'];_0x2bcb=function(){return _0x131f7a;};return _0x2bcb();}function ge(_0x532fbb,_0x1b29df){return function(_0x4c977e,_0x5c0a4b){_0x1b29df(_0x4c977e,_0x5c0a4b,_0x532fbb);};}function _e(_0x11dc8f,_0x3c4bcc,_0x2909c3,_0x4dc4e0){const _0x2d1fe1=_0x5bd08b;var _0x17958b=arguments[_0x2d1fe1(0x25d)],_0x5cae69=_0x17958b<0x3?_0x3c4bcc:_0x4dc4e0===null?_0x4dc4e0=Object[_0x2d1fe1(0x1af)](_0x3c4bcc,_0x2909c3):_0x4dc4e0,_0x49a8e9;if(typeof Reflect==_0x2d1fe1(0x201)&&typeof Reflect[_0x2d1fe1(0x25b)]=='function')_0x5cae69=Reflect[_0x2d1fe1(0x25b)](_0x11dc8f,_0x3c4bcc,_0x2909c3,_0x4dc4e0);else{for(var _0x112437=_0x11dc8f[_0x2d1fe1(0x25d)]-0x1;_0x112437>=0x0;_0x112437--)(_0x49a8e9=_0x11dc8f[_0x112437])&&(_0x5cae69=(_0x17958b<0x3?_0x49a8e9(_0x5cae69):_0x17958b>0x3?_0x49a8e9(_0x3c4bcc,_0x2909c3,_0x5cae69):_0x49a8e9(_0x3c4bcc,_0x2909c3))||_0x5cae69);}return _0x17958b>0x3&&_0x5cae69&&Object[_0x2d1fe1(0x200)](_0x3c4bcc,_0x2909c3,_0x5cae69),_0x5cae69;}let Q=class{constructor(_0x6e022b,_0x46af1a){const _0x11182f=_0x5bd08b;this[_0x11182f(0x233)]=_0x6e022b,this[_0x11182f(0x1d1)]=_0x46af1a;}['getBase'](){return this['_base'];}[_0x5bd08b(0x1f2)](){const _0x25f831=_0x5bd08b;return this[_0x25f831(0x233)]['getUnitId']();}['save'](){const _0x12f11a=_0x5bd08b;return _0x2cdab0[_0x12f11a(0x1c1)](this[_0x12f11a(0x233)][_0x12f11a(0x190)]());}[_0x5bd08b(0x1a4)](){const _0xad37ec=_0x5bd08b;return this[_0xad37ec(0x233)][_0xad37ec(0x190)]()['name'];}[_0x5bd08b(0x1f3)](_0x2c3985){const _0xf465ef=_0x5bd08b;this[_0xf465ef(0x1d1)][_0xf465ef(0x19d)](_0x3aa743)[_0xf465ef(0x21a)](_0x4e3765['id'],{'unitId':this[_0xf465ef(0x1f2)](),'name':_0x2c3985});}['getTables'](){const _0x3a29a4=_0x5bd08b;let _0x140024=this[_0x3a29a4(0x233)]['getSnapshot']();return _0x140024['tableOrder'][_0x3a29a4(0x22e)](_0x4cc125=>_0x140024['tables'][_0x4cc125])[_0x3a29a4(0x23d)](_0xe75f44=>_0xe75f44)['map'](_0x4f8369=>this[_0x3a29a4(0x1d1)]['createInstance'](X,this,_0x4f8369['id'],this[_0x3a29a4(0x1d1)]));}[_0x5bd08b(0x1d0)](_0x4a4d57){const _0x4e1b79=_0x5bd08b;let _0xbc3b1=this[_0x4e1b79(0x233)][_0x4e1b79(0x190)]()['tables'][_0x4a4d57];return _0xbc3b1?this[_0x4e1b79(0x1d1)][_0x4e1b79(0x1d8)](X,this,_0xbc3b1['id'],this['_injector']):null;}[_0x5bd08b(0x265)](_0x12332d){const _0x5764f0=_0x5bd08b;let _0x4b5df6=this[_0x5764f0(0x233)][_0x5764f0(0x190)](),_0x16b5b4=Object[_0x5764f0(0x19c)](_0x4b5df6['tables'])['find'](_0x5a705a=>_0x5a705a['name']===_0x12332d);return _0x16b5b4?this['_injector'][_0x5764f0(0x1d8)](X,this,_0x16b5b4['id'],this['_injector']):null;}['insertTable'](_0x15c59d,_0x520f40){const _0x414cc6=_0x5bd08b;var _0x2e6fd0;let _0x61a424=this[_0x414cc6(0x1d1)][_0x414cc6(0x19d)](_0x3aa743),_0x1ac17e=_0x47faff({'id':_0x301c12(),'name':_0x15c59d,..._0x520f40==null?void 0x0:_0x520f40[_0x414cc6(0x24d)],'primaryFieldName':_0x520f40==null?void 0x0:_0x520f40['primaryFieldName']}),_0x4c176d=_0x2cdab0[_0x414cc6(0x216)](_0x1ac17e,(_0x2e6fd0=_0x520f40==null?void 0x0:_0x520f40[_0x414cc6(0x24d)])==null?{}:_0x2e6fd0);if(!_0x61a424[_0x414cc6(0x21a)](_0x55a28e['id'],{'unitId':this[_0x414cc6(0x233)][_0x414cc6(0x1a2)](),'table':_0x4c176d,'index':_0x520f40==null?void 0x0:_0x520f40[_0x414cc6(0x266)]}))throw Error('Failed\x20to\x20create\x20table\x20\x22'+_0x15c59d+'\x22.');return this[_0x414cc6(0x1d1)][_0x414cc6(0x1d8)](X,this,_0x4c176d['id'],this[_0x414cc6(0x1d1)]);}[_0x5bd08b(0x263)](_0x534172){const _0x15e76b=_0x5bd08b;let _0x5a6fd9=this['_injector'][_0x15e76b(0x19d)](_0x3aa743),_0x4802b8=typeof _0x534172==_0x15e76b(0x1b1)?_0x534172:_0x534172[_0x15e76b(0x1f2)]();if(!_0x5a6fd9['syncExecuteCommand'](_0x1ec17e['id'],{'unitId':this[_0x15e76b(0x233)][_0x15e76b(0x1a2)](),'tableId':_0x4802b8}))throw Error(_0x15e76b(0x217)+_0x4802b8+'\x22.');return!0x0;}[_0x5bd08b(0x1e6)](_0x461ad0,_0x3ab91f){const _0x39f3b0=_0x5bd08b;var _0x2e27a3,_0x1bb02b;let _0x32dac4=this[_0x39f3b0(0x1d1)]['get'](_0x3aa743),_0x1d157a=this[_0x39f3b0(0x233)][_0x39f3b0(0x190)](),_0x7ff6e5=typeof _0x461ad0==_0x39f3b0(0x1b1)?_0x461ad0:_0x461ad0[_0x39f3b0(0x1f2)](),_0x360d8d=_0x1d157a[_0x39f3b0(0x1fe)][_0x7ff6e5];if(!_0x360d8d)throw Error(_0x39f3b0(0x243)+_0x7ff6e5+_0x39f3b0(0x259));let _0xadb684=_0x1d157a['tableOrder'][_0x39f3b0(0x1ee)](_0x7ff6e5)+0x1,_0x2df362=_0x98e38b(_0x360d8d,{'id':_0x301c12(),'name':_0x360d8d['name']+_0x39f3b0(0x1c0),'includeRecords':(_0x2e27a3=_0x3ab91f==null?void 0x0:_0x3ab91f[_0x39f3b0(0x244)])==null?!0x1:_0x2e27a3,'regenerateViewIds':(_0x1bb02b=_0x3ab91f==null?void 0x0:_0x3ab91f['regenerateViewIds'])==null?!0x1:_0x1bb02b});if(!_0x32dac4[_0x39f3b0(0x21a)](_0x55a28e['id'],{'unitId':this[_0x39f3b0(0x233)][_0x39f3b0(0x1a2)](),'table':_0x2df362,'index':_0xadb684}))throw Error(_0x39f3b0(0x20a)+_0x7ff6e5+'\x22.');return this[_0x39f3b0(0x1d1)][_0x39f3b0(0x1d8)](X,this,_0x2df362['id'],this[_0x39f3b0(0x1d1)]);}[_0x5bd08b(0x228)](){const _0x95f980=_0x5bd08b;let _0x111e01=this[_0x95f980(0x233)][_0x95f980(0x190)]();return{'id':_0x111e01['id'],'name':_0x111e01['name'],'tables':this['getTables']()[_0x95f980(0x22e)](_0x5d24ae=>_0x5d24ae[_0x95f980(0x228)]())};}};Q=_e([ge(0x1,_0x4fb1ca(_0x50a63c))],Q);var ve=class extends _0x30e147{['_initialize'](){this['_initBaseBeforeEvents'](),this['_initBaseAfterEvents']();}['createBase'](_0x1ed837={},_0x3e5ecb){const _0x2d092e=_0x5bd08b;let _0x573537=this[_0x2d092e(0x1d1)][_0x2d092e(0x19d)](_0x3b88a8)[_0x2d092e(0x248)](_0x3e71d6[_0x2d092e(0x19e)],_0x1ed837,_0x3e5ecb);return this[_0x2d092e(0x1d1)][_0x2d092e(0x1d8)](Q,_0x573537);}[_0x5bd08b(0x1fc)](){const _0x18e673=_0x5bd08b;let _0x1f3a09=this[_0x18e673(0x1d1)][_0x18e673(0x19d)](_0x3b88a8)[_0x18e673(0x1bb)](_0x3e71d6[_0x18e673(0x19e)]);return _0x1f3a09?this[_0x18e673(0x1d1)][_0x18e673(0x1d8)](Q,_0x1f3a09):null;}[_0x5bd08b(0x207)](_0x4240ed){const _0x4975fc=_0x5bd08b;let _0x23bd2e=this[_0x4975fc(0x1d1)]['get'](_0x3b88a8)[_0x4975fc(0x1ba)](_0x4240ed,_0x3e71d6['UNIVER_BASE']);return _0x23bd2e?this['_injector'][_0x4975fc(0x1d8)](Q,_0x23bd2e):null;}[_0x5bd08b(0x205)](){const _0x347b2d=_0x5bd08b;return this[_0x347b2d(0x1d1)][_0x347b2d(0x19d)](_0x3b88a8)['getAllUnitsForType'](_0x3e71d6['UNIVER_BASE'])[_0x347b2d(0x22e)](_0x4fbe4e=>this[_0x347b2d(0x1d1)][_0x347b2d(0x1d8)](Q,_0x4fbe4e));}['_initBaseAfterEvents'](){const _0x25b6be=_0x5bd08b;let _0x750674=this['_injector'][_0x25b6be(0x19d)](_0x3aa743);this[_0x25b6be(0x26b)](this[_0x25b6be(0x21e)](this[_0x25b6be(0x1e0)][_0x25b6be(0x24c)],()=>_0x750674[_0x25b6be(0x231)](_0xb5684f=>{const _0x73bf58=_0x25b6be;if(_0xb5684f['id']!==_0x55a28e['id'])return;let {unitId:_0x4ad1f8,table:_0x35e494,index:_0x44b100}=_0xb5684f['params'],_0x58fba8=this['getBase'](_0x4ad1f8);if(!_0x58fba8)return;let _0xefbf6f={'base':_0x58fba8,'table':_0x35e494,'index':_0x44b100};this[_0x73bf58(0x226)](this[_0x73bf58(0x1e0)][_0x73bf58(0x24c)],_0xefbf6f);}))),this[_0x25b6be(0x26b)](this[_0x25b6be(0x21e)](this['Event'][_0x25b6be(0x193)],()=>_0x750674[_0x25b6be(0x231)](_0x4bfc38=>{const _0x10bfe6=_0x25b6be;if(_0x4bfc38['id']!==_0x184d99['id'])return;let {unitId:_0x2e28b6,tableId:_0x2056da,field:_0x5b691,index:_0x38ffdb,viewIndexes:_0x4ce962}=_0x4bfc38['params'],_0x33e6f=this[_0x10bfe6(0x207)](_0x2e28b6);if(!_0x33e6f)return;let _0x5f5dd1=_0x33e6f['getTableById'](_0x2056da);if(!_0x5f5dd1)return;let _0x3fbcaa={'base':_0x33e6f,'table':_0x5f5dd1,'field':_0x5b691,'index':_0x38ffdb,'viewIndexes':_0x4ce962};this['fireEvent'](this[_0x10bfe6(0x1e0)]['BaseTableFieldCreated'],_0x3fbcaa);}))),this[_0x25b6be(0x26b)](this[_0x25b6be(0x21e)](this[_0x25b6be(0x1e0)][_0x25b6be(0x194)],()=>_0x750674[_0x25b6be(0x231)](_0x3ed4c4=>{const _0x5931e1=_0x25b6be;var _0x354c27;if(_0x3ed4c4['id']!==_0x121d2e['id']&&_0x3ed4c4['id']!==_0x448856['id'])return;let _0x3e94d8=_0x3ed4c4[_0x5931e1(0x214)],{unitId:_0x31a4a5,tableId:_0x504488}=_0x3e94d8,_0x3b496d=(_0x354c27=_0x3e94d8[_0x5931e1(0x1f9)])==null?[_0x3e94d8['record']]:_0x354c27,_0x354d2e=this['getBase'](_0x31a4a5);if(!_0x354d2e)return;let _0x52f62d=_0x354d2e[_0x5931e1(0x1d0)](_0x504488);if(!_0x52f62d)return;let _0x551b63={'base':_0x354d2e,'table':_0x52f62d,'records':_0x3b496d};this[_0x5931e1(0x226)](this['Event']['BaseTableRecordCreated'],_0x551b63);}))),this['disposeWithMe'](this[_0x25b6be(0x21e)](this[_0x25b6be(0x1e0)]['BaseTableViewCreated'],()=>_0x750674['onCommandExecuted'](_0x19b716=>{const _0x34ede8=_0x25b6be;if(_0x19b716['id']!==_0x54aea6['id'])return;let {unitId:_0x2ae701,tableId:_0x4062c8,view:_0x4d8fb2,index:_0x3a0b5c}=_0x19b716['params'],_0x2d2db0=this['getBase'](_0x2ae701);if(!_0x2d2db0)return;let _0x5b4e28=_0x2d2db0[_0x34ede8(0x1d0)](_0x4062c8);if(!_0x5b4e28)return;let _0x329516={'base':_0x2d2db0,'table':_0x5b4e28,'view':_0x4d8fb2,'index':_0x3a0b5c};this['fireEvent'](this[_0x34ede8(0x1e0)][_0x34ede8(0x206)],_0x329516);}))),this[_0x25b6be(0x26b)](this[_0x25b6be(0x21e)](this[_0x25b6be(0x1e0)][_0x25b6be(0x1ae)],()=>_0x750674[_0x25b6be(0x231)](_0x1f603c=>{const _0x4140df=_0x25b6be;if(_0x1f603c['id']!==_0x2380c6['id'])return;let {unitId:_0x2e3ed6,tableId:_0x30186c,recordId:_0x54a420,fieldId:_0x3396bb,value:_0x911b9f}=_0x1f603c[_0x4140df(0x214)],_0x4db787=this['getBase'](_0x2e3ed6);if(!_0x4db787)return;let _0x391882=_0x4db787[_0x4140df(0x1d0)](_0x30186c);if(!_0x391882)return;let _0x4164a4=_0x391882[_0x4140df(0x222)](_0x3396bb);if(!_0x4164a4)return;let _0x11a102=_0x391882[_0x4140df(0x22b)](_0x54a420);if(!_0x11a102)return;let _0x1a8537={'base':_0x4db787,'table':_0x391882,'field':_0x4164a4,'record':_0x11a102,'value':_0x911b9f};this[_0x4140df(0x226)](this[_0x4140df(0x1e0)][_0x4140df(0x1ae)],_0x1a8537);})));}[_0x5bd08b(0x25c)](){const _0x3a5bab=_0x5bd08b;let _0x56bcd3=this[_0x3a5bab(0x1d1)][_0x3a5bab(0x19d)](_0x3aa743);this['disposeWithMe'](this[_0x3a5bab(0x21e)](this['Event'][_0x3a5bab(0x1e5)],()=>_0x56bcd3[_0x3a5bab(0x255)](_0x35b63f=>{const _0x26d4de=_0x3a5bab;if(_0x35b63f['id']!==_0x55a28e['id'])return;let {unitId:_0xdb48fe,table:_0x37bf9b,index:_0x1c4e52}=_0x35b63f['params'],_0x4282ad=this[_0x26d4de(0x207)](_0xdb48fe);if(!_0x4282ad)return;let _0x49f62d={'base':_0x4282ad,'table':_0x37bf9b,'index':_0x1c4e52};if(this[_0x26d4de(0x226)](this[_0x26d4de(0x1e0)]['BeforeBaseTableCreate'],_0x49f62d),_0x49f62d[_0x26d4de(0x1a0)])throw new _0x42772d();}))),this[_0x3a5bab(0x26b)](this[_0x3a5bab(0x21e)](this[_0x3a5bab(0x1e0)][_0x3a5bab(0x251)],()=>_0x56bcd3['beforeCommandExecuted'](_0x400e65=>{const _0x48ff1c=_0x3a5bab;if(_0x400e65['id']!==_0x184d99['id'])return;let {unitId:_0x1d20d6,tableId:_0x510a7b,field:_0x51c530,index:_0x21c326,viewIndexes:_0xcacc36}=_0x400e65[_0x48ff1c(0x214)],_0x4dfdd0=this[_0x48ff1c(0x207)](_0x1d20d6);if(!_0x4dfdd0)return;let _0x14a2dd=_0x4dfdd0[_0x48ff1c(0x1d0)](_0x510a7b);if(!_0x14a2dd)return;let _0x22f95e={'base':_0x4dfdd0,'table':_0x14a2dd,'field':_0x51c530,'index':_0x21c326,'viewIndexes':_0xcacc36};if(this[_0x48ff1c(0x226)](this[_0x48ff1c(0x1e0)][_0x48ff1c(0x251)],_0x22f95e),_0x22f95e['cancel'])throw new _0x42772d();}))),this[_0x3a5bab(0x26b)](this['registerEventHandler'](this['Event'][_0x3a5bab(0x1ad)],()=>_0x56bcd3[_0x3a5bab(0x255)](_0x4399bb=>{const _0x36f867=_0x3a5bab;var _0x45303e;if(_0x4399bb['id']!==_0x121d2e['id']&&_0x4399bb['id']!==_0x448856['id'])return;let _0x56727e=_0x4399bb[_0x36f867(0x214)],{unitId:_0x2b5223,tableId:_0x161857}=_0x56727e,_0x30774a=(_0x45303e=_0x56727e[_0x36f867(0x1f9)])==null?[_0x56727e['record']]:_0x45303e,_0x3ca704=this['getBase'](_0x2b5223);if(!_0x3ca704)return;let _0x45821f=_0x3ca704[_0x36f867(0x1d0)](_0x161857);if(!_0x45821f)return;let _0x1004f4={'base':_0x3ca704,'table':_0x45821f,'records':_0x30774a};if(this[_0x36f867(0x226)](this[_0x36f867(0x1e0)][_0x36f867(0x1ad)],_0x1004f4),_0x1004f4[_0x36f867(0x1a0)])throw new _0x42772d();}))),this[_0x3a5bab(0x26b)](this['registerEventHandler'](this[_0x3a5bab(0x1e0)][_0x3a5bab(0x1f6)],()=>_0x56bcd3['beforeCommandExecuted'](_0x38f8be=>{const _0x4accab=_0x3a5bab;if(_0x38f8be['id']!==_0x54aea6['id'])return;let {unitId:_0x497c02,tableId:_0x3c41d8,view:_0x544a0b,index:_0x54b76d}=_0x38f8be[_0x4accab(0x214)],_0x3009c3=this[_0x4accab(0x207)](_0x497c02);if(!_0x3009c3)return;let _0x294fb6=_0x3009c3[_0x4accab(0x1d0)](_0x3c41d8);if(!_0x294fb6)return;let _0x4fef2a={'base':_0x3009c3,'table':_0x294fb6,'view':_0x544a0b,'index':_0x54b76d};if(this[_0x4accab(0x226)](this['Event'][_0x4accab(0x1f6)],_0x4fef2a),_0x4fef2a['cancel'])throw new _0x42772d();}))),this['disposeWithMe'](this[_0x3a5bab(0x21e)](this[_0x3a5bab(0x1e0)][_0x3a5bab(0x1c9)],()=>_0x56bcd3[_0x3a5bab(0x255)](_0x143b91=>{const _0x221a77=_0x3a5bab;if(_0x143b91['id']!==_0x2380c6['id'])return;let {unitId:_0x4e2442,tableId:_0x1afaee,recordId:_0x34807b,fieldId:_0x2994e,value:_0xd4f6a6}=_0x143b91[_0x221a77(0x214)],_0x590908=this[_0x221a77(0x207)](_0x4e2442);if(!_0x590908)return;let _0x1a8e8d=_0x590908[_0x221a77(0x1d0)](_0x1afaee);if(!_0x1a8e8d)return;let _0x27e061=_0x1a8e8d['getFieldById'](_0x2994e);if(!_0x27e061)return;let _0x417f36=_0x1a8e8d[_0x221a77(0x22b)](_0x34807b);if(!_0x417f36)return;let _0x5379f9={'base':_0x590908,'table':_0x1a8e8d,'field':_0x27e061,'record':_0x417f36,'value':_0xd4f6a6};if(this['fireEvent'](this['Event']['BeforeBaseTableCellValueChange'],_0x5379f9),_0x5379f9[_0x221a77(0x1a0)])throw new _0x42772d();})));}};_0x30e147[_0x5bd08b(0x1ca)](ve);var ye=class extends _0x20d9fe{get[_0x5bd08b(0x191)](){return _0x4bca3c;}get['BaseFilterConjunction'](){return _0x468dce;}get[_0x5bd08b(0x22d)](){return _0x3db560;}get[_0x5bd08b(0x1c5)](){return G;}get[_0x5bd08b(0x232)](){return _0x55bec4;}get[_0x5bd08b(0x18e)](){return _0x1d10d0;}};_0x20d9fe['extend'](ye);var $=class extends _0x1330b7{get[_0x5bd08b(0x24c)](){return'BaseTableCreated';}get[_0x5bd08b(0x1e5)](){return'BeforeBaseTableCreate';}get['BaseTableFieldCreated'](){return'BaseTableFieldCreated';}get['BeforeBaseTableFieldCreate'](){const _0x2f953a=_0x5bd08b;return _0x2f953a(0x251);}get['BaseTableRecordCreated'](){const _0x3337ea=_0x5bd08b;return _0x3337ea(0x194);}get[_0x5bd08b(0x1ad)](){const _0x72856a=_0x5bd08b;return _0x72856a(0x1ad);}get[_0x5bd08b(0x206)](){const _0x1a5af6=_0x5bd08b;return _0x1a5af6(0x206);}get[_0x5bd08b(0x1f6)](){const _0x56e2d9=_0x5bd08b;return _0x56e2d9(0x1f6);}get[_0x5bd08b(0x1ae)](){const _0xfc47ed=_0x5bd08b;return _0xfc47ed(0x1ae);}get[_0x5bd08b(0x1c9)](){return'BeforeBaseTableCellValueChange';}};_0x1330b7[_0x5bd08b(0x1ca)]($);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};
1
+ const _0x166382=_0x4e8a;(function(_0x4bfff4,_0xf0b901){const _0x547739=_0x4e8a,_0x5c6810=_0x4bfff4();while(!![]){try{const _0xc4920e=-parseInt(_0x547739(0x1b7))/0x1+-parseInt(_0x547739(0x147))/0x2+-parseInt(_0x547739(0x13b))/0x3*(-parseInt(_0x547739(0x14d))/0x4)+parseInt(_0x547739(0x166))/0x5+-parseInt(_0x547739(0x13e))/0x6*(-parseInt(_0x547739(0x1f4))/0x7)+parseInt(_0x547739(0x20a))/0x8+parseInt(_0x547739(0x159))/0x9*(-parseInt(_0x547739(0x210))/0xa);if(_0xc4920e===_0xf0b901)break;else _0x5c6810['push'](_0x5c6810['shift']());}catch(_0x9736cb){_0x5c6810['push'](_0x5c6810['shift']());}}}(_0x3df4,0x23ef9));import{BatchCreateBaseRecordsCommand as _0x328b9a,BatchDeleteBaseRecordsCommand as _0x41c146,ChangeBaseFieldTypeCommand as _0x4603a8,CreateBaseFieldCommand as _0x12c685,CreateBaseRecordCommand as _0x5d2235,CreateBaseTableCommand as _0x4ae76d,CreateBaseViewCommand as _0x44a3b0,DeleteBaseFieldCommand as _0x98926c,DeleteBaseRecordCommand as _0x3fffa7,DeleteBaseTableCommand as _0x365fcc,DeleteBaseViewCommand as _0x858461,DuplicateBaseRecordCommand as _0x5560d7,IBaseProjectionService as _0x5c28f7,MoveBaseFieldCommand as _0x152d60,MoveBaseViewCommand as _0x168688,RenameBaseTableCommand as _0x4affdf,RenameBaseViewCommand as _0x12da68,SetBaseNameCommand as _0x1e5b21,SetBaseRangeValuesCommand as _0x54e1c4,SetBaseRecordValuesCommand as _0x56e812,SetBaseViewFieldOrderCommand as _0x1d7382,SetBaseViewFieldVisibleCommand as _0x5a97a9,SetBaseViewFieldWidthCommand as _0x179732,SetBaseViewFilterCommand as _0x570bf5,SetBaseViewGroupCommand as _0xf94296,SetBaseViewSortCommand as _0x5d8b7e,UpdateBaseCellCommand as _0x5946f1,UpdateBaseFieldCommand as _0x2e7f1a,UpdateBaseRecordOrderCommand as _0xe2810f,UpdateBaseViewConfigCommand as _0x1e6de5,copyBaseTableSnapshot as _0x457395,ensureBaseTableCellLayout as _0x31afe7,getBaseCellValue as _0x35cd93,matchesBaseCondition as _0x40c801,searchBaseTable as _0x5fa93c}from'@univerjs-pro/bases';import{BaseFieldType as _0x7a8503,BaseFilterConjunction as _0x3015f0,BaseFilterOperator as _0x279e7b,BaseSortDirection as _0x46203c,BaseViewType as _0x4f3b2f,CanceledError as _0x1dc41b,ICommandService as _0x1f43ec,IResourceLoaderService as _0x10705f,IUniverInstanceService as _0x2d4867,Inject as _0x165bb0,Injector as _0x5a7aee,Tools as _0x1b13df,UniverInstanceType as _0x7905cc,createDefaultBaseTableSnapshot as _0x3f58f9,generateRandomId as _0x2decce}from'@univerjs/core';import{FEnum as _0x21fd9b,FEventName as _0x1edd02,FUniver as _0x91489c}from'@univerjs/core/facade';import{UpsertHostExternalReferencesCommand as _0x34373b}from'@univerjs-pro/engine-formula';var V=class{constructor(_0x2c93de,_0x5e6e63,_0xaf600e,_0x239953){const _0x2be2fe=_0x4e8a;this[_0x2be2fe(0x15b)]=_0x2c93de,this[_0x2be2fe(0x1ce)]=_0x5e6e63,this[_0x2be2fe(0x19f)]=_0xaf600e,this[_0x2be2fe(0x1d4)]=_0x239953;}[_0x166382(0x1e9)](){return this['_fieldId'];}[_0x166382(0x214)](){const _0xbb7f0b=_0x166382;return this[_0xbb7f0b(0x215)]();}[_0x166382(0x152)](){const _0x5bcc18=_0x166382;return this[_0x5bcc18(0x215)]()[_0x5bcc18(0x1d7)];}[_0x166382(0x13f)](){const _0x23e868=_0x166382;return this[_0x23e868(0x215)]()[_0x23e868(0x1bd)];}['getConfig'](){return this['_getField']()['config'];}[_0x166382(0x174)](){const _0x1d65b1=_0x166382;return this[_0x1d65b1(0x215)]()[_0x1d65b1(0x1f9)];}[_0x166382(0x15a)](){const _0x421fb7=_0x166382;return this['_getField']()[_0x421fb7(0x209)];}[_0x166382(0x20f)](){const _0xd944=_0x166382;return!!this[_0xd944(0x215)]()[_0xd944(0x1e7)];}['setName'](_0x239978){const _0x2d1cd8=_0x166382;return this[_0x2d1cd8(0x1bb)]({'name':_0x239978});}['setConfig'](_0x3a52ee,_0x1faea1){const _0x4bff3d=_0x166382;return this[_0x4bff3d(0x1bb)]({'config':_0x3a52ee},_0x1faea1);}[_0x166382(0x1eb)](_0x190f97){return this['update']({'defaultValue':_0x190f97});}[_0x166382(0x1bb)](_0x5680f2,_0x37fb09){const _0x5183a8=_0x166382;var _0x3493cc;let _0x162b88=this[_0x5183a8(0x1d4)][_0x5183a8(0x1c6)](_0x1f43ec),_0x261d2a=this['_getField']()[_0x5183a8(0x1bd)];return((_0x3493cc=_0x5680f2[_0x5183a8(0x1bd)])==null?_0x261d2a:_0x3493cc)===_0x7a8503[_0x5183a8(0x142)]&&(Object[_0x5183a8(0x1b0)][_0x5183a8(0x1a8)]['call'](_0x5680f2,_0x5183a8(0x1fb))||_0x5680f2[_0x5183a8(0x1bd)]===_0x7a8503[_0x5183a8(0x142)])&&!this[_0x5183a8(0x16a)](_0x162b88,_0x37fb09)?!0x1:_0x162b88[_0x5183a8(0x182)](_0x2e7f1a['id'],{'unitId':this[_0x5183a8(0x15b)]['getId'](),'tableId':this[_0x5183a8(0x1ce)][_0x5183a8(0x1e9)](),'fieldId':this[_0x5183a8(0x19f)],'patch':_0x5680f2});}[_0x166382(0x207)](_0xd59f4f,_0x1039de={},_0x358597){const _0x1594bb=_0x166382;let _0x3f98dc=this['_inject'][_0x1594bb(0x1c6)](_0x1f43ec);return _0xd59f4f===_0x7a8503[_0x1594bb(0x142)]&&!this[_0x1594bb(0x16a)](_0x3f98dc,_0x358597)?!0x1:_0x3f98dc[_0x1594bb(0x182)](_0x4603a8['id'],{'unitId':this['_base'][_0x1594bb(0x1e9)](),'tableId':this[_0x1594bb(0x1ce)][_0x1594bb(0x1e9)](),'fieldId':this[_0x1594bb(0x19f)],'input':{'type':_0xd59f4f,'config':_0x1039de}});}[_0x166382(0x228)](){const _0x46370e=_0x166382;return this[_0x46370e(0x1d4)][_0x46370e(0x1c6)](_0x1f43ec)['syncExecuteCommand'](_0x98926c['id'],{'unitId':this[_0x46370e(0x15b)][_0x46370e(0x1e9)](),'tableId':this[_0x46370e(0x1ce)][_0x46370e(0x1e9)](),'fieldId':this[_0x46370e(0x19f)]});}[_0x166382(0x220)](_0x37625a){const _0x10b9e0=_0x166382;return this[_0x10b9e0(0x1d4)][_0x10b9e0(0x1c6)](_0x1f43ec)[_0x10b9e0(0x182)](_0x152d60['id'],{'unitId':this[_0x10b9e0(0x15b)][_0x10b9e0(0x1e9)](),'tableId':this[_0x10b9e0(0x1ce)][_0x10b9e0(0x1e9)](),'fieldId':this[_0x10b9e0(0x19f)],'target':_0x37625a});}[_0x166382(0x215)](){const _0xdd5fca=_0x166382;let _0x3d037d=this[_0xdd5fca(0x1ce)][_0xdd5fca(0x17d)]()[_0xdd5fca(0x15f)][this[_0xdd5fca(0x19f)]];if(!_0x3d037d)throw Error(_0xdd5fca(0x213)+this['_fieldId']+_0xdd5fca(0x1c2));return _0x3d037d;}[_0x166382(0x16a)](_0x3c5c66,_0x5df7ec){const _0x40cd9e=_0x166382;if(!_0x5df7ec||!Array[_0x40cd9e(0x185)](_0x5df7ec['externalReferences']))return console[_0x40cd9e(0x223)](_0x40cd9e(0x143)),!0x1;if(_0x5df7ec[_0x40cd9e(0x1e2)]['length']===0x0)return!0x0;let _0x14a1cf=_0x3c5c66[_0x40cd9e(0x182)](_0x34373b['id'],{'unitId':this[_0x40cd9e(0x15b)][_0x40cd9e(0x1e9)](),'references':_0x5df7ec['externalReferences']});return _0x14a1cf||console[_0x40cd9e(0x223)](_0x40cd9e(0x222)),_0x14a1cf;}},H=class e{constructor(_0x38c12a,_0x35ad28,_0x40570e,_0x5768e2){const _0x1bf006=_0x166382;this[_0x1bf006(0x15b)]=_0x38c12a,this[_0x1bf006(0x1ce)]=_0x35ad28,this[_0x1bf006(0x177)]=_0x40570e,this['_inject']=_0x5768e2,this[_0x1bf006(0x21c)]();}[_0x166382(0x148)](){const _0x399c38=_0x166382;return this[_0x399c38(0x15b)][_0x399c38(0x1e9)]();}['getTableId'](){return this['_table']['getId']();}[_0x166382(0x1e0)](){const _0x251a84=_0x166382;return{...this[_0x251a84(0x177)]};}[_0x166382(0x1f1)](){const _0x4b72c4=_0x166382;return this[_0x4b72c4(0x177)]['startRow'];}[_0x166382(0x1c9)](){return this['_range']['startColumn'];}[_0x166382(0x1b5)](){const _0x3c426b=_0x166382;return this[_0x3c426b(0x177)][_0x3c426b(0x18d)]-this[_0x3c426b(0x177)][_0x3c426b(0x1a7)]+0x1;}[_0x166382(0x1ac)](){const _0x352b61=_0x166382;return this['_range']['endColumn']-this[_0x352b61(0x177)][_0x352b61(0x1f2)]+0x1;}[_0x166382(0x20e)](){const _0x37877a=_0x166382;let _0x354098=this['_getTable'](),_0x6ad0f7=[];for(let _0x38d623=this[_0x37877a(0x177)][_0x37877a(0x1a7)];_0x38d623<=this[_0x37877a(0x177)]['endRow'];_0x38d623++){var _0x4650bc;let _0x497f9f=(_0x4650bc=_0x354098[_0x37877a(0x20c)])==null?void 0x0:_0x4650bc[_0x38d623],_0x2415d1=[];for(let _0x312050=this[_0x37877a(0x177)][_0x37877a(0x1f2)];_0x312050<=this[_0x37877a(0x177)][_0x37877a(0x1cf)];_0x312050++){var _0x4dcf12;let _0x4f7d0c=(_0x4dcf12=_0x354098['colId'])==null?void 0x0:_0x4dcf12[_0x312050];_0x2415d1[_0x37877a(0x1ed)](_0x497f9f&&_0x4f7d0c?_0x35cd93(_0x354098,_0x497f9f,_0x4f7d0c):null);}_0x6ad0f7['push'](_0x2415d1);}return _0x6ad0f7;}[_0x166382(0x1e8)](){const _0x10bb69=_0x166382;var _0xb05234,_0x38f3f9;return(_0xb05234=(_0x38f3f9=this[_0x10bb69(0x20e)]()[0x0])==null?void 0x0:_0x38f3f9[0x0])==null?null:_0xb05234;}[_0x166382(0x19c)](_0x28b0ae){const _0x36b871=_0x166382;return this[_0x36b871(0x176)]([[_0x28b0ae]]);}[_0x166382(0x176)](_0x46c4b7){const _0x2a18af=_0x166382;let _0x1cbd39=this['getNumRows'](),_0x4d21a3=this['getNumColumns']();if(_0x46c4b7[_0x2a18af(0x179)]>_0x1cbd39||_0x46c4b7['some'](_0x1e5143=>_0x1e5143[_0x2a18af(0x179)]>_0x4d21a3)){var _0x5ad26b,_0xcdab72;throw Error(_0x2a18af(0x1b9)+_0x46c4b7['length']+'x'+((_0x5ad26b=(_0xcdab72=_0x46c4b7[0x0])==null?void 0x0:_0xcdab72[_0x2a18af(0x179)])==null?0x0:_0x5ad26b)+_0x2a18af(0x1d1)+_0x1cbd39+'x'+_0x4d21a3+'.');}let _0x55d293=this[_0x2a18af(0x1d4)][_0x2a18af(0x1c6)](_0x1f43ec),_0x263c5f=_0x46c4b7[_0x2a18af(0x192)]((_0x368d00,_0x58383e)=>_0x368d00[_0x2a18af(0x172)]((_0x31cf1f,_0x1f1ddd)=>({'row':this[_0x2a18af(0x177)][_0x2a18af(0x1a7)]+_0x58383e,'col':this[_0x2a18af(0x177)][_0x2a18af(0x1f2)]+_0x1f1ddd,'value':_0x31cf1f})));return _0x55d293[_0x2a18af(0x182)](_0x54e1c4['id'],{'unitId':this[_0x2a18af(0x15b)]['getId'](),'tableId':this[_0x2a18af(0x1ce)][_0x2a18af(0x1e9)](),'patches':_0x263c5f});}[_0x166382(0x141)](){const _0x3314c9=_0x166382;return this['setValues'](Array[_0x3314c9(0x14c)]({'length':this[_0x3314c9(0x1b5)]()},()=>Array[_0x3314c9(0x14c)]({'length':this['getNumColumns']()},()=>null)));}[_0x166382(0x1de)](_0x33fbcc,_0x210174,_0x4acf84=this['getNumRows'](),_0x53f74d=this[_0x166382(0x1ac)]()){const _0x2bf110=_0x166382;return this[_0x2bf110(0x1d4)][_0x2bf110(0x1f6)](e,this[_0x2bf110(0x15b)],this['_table'],{'startRow':this[_0x2bf110(0x177)][_0x2bf110(0x1a7)]+_0x33fbcc,'startColumn':this[_0x2bf110(0x177)][_0x2bf110(0x1f2)]+_0x210174,'endRow':this[_0x2bf110(0x177)][_0x2bf110(0x1a7)]+_0x33fbcc+_0x4acf84-0x1,'endColumn':this[_0x2bf110(0x177)]['startColumn']+_0x210174+_0x53f74d-0x1},this[_0x2bf110(0x1d4)]);}[_0x166382(0x162)](){const _0x619e24=_0x166382;let _0x422716=this['_table'][_0x619e24(0x17d)]();if(!_0x422716)throw Error(_0x619e24(0x20b));return _0x31afe7(_0x422716);}[_0x166382(0x21c)](){const _0xeac529=_0x166382;var _0x35cf76,_0x4f31a8;let _0xcb47de=this['_getTable'](),_0x17c479=(_0x35cf76=(_0x4f31a8=_0xcb47de[_0xeac529(0x1fc)])==null?void 0x0:_0x4f31a8[_0xeac529(0x179)])==null?0x0:_0x35cf76,_0x3b6989=_0xcb47de['fieldOrder']['length'];if(this['_range'][_0xeac529(0x1a7)]<0x0||this[_0xeac529(0x177)][_0xeac529(0x1f2)]<0x0||this['_range'][_0xeac529(0x18d)]<this[_0xeac529(0x177)][_0xeac529(0x1a7)]||this[_0xeac529(0x177)][_0xeac529(0x1cf)]<this[_0xeac529(0x177)][_0xeac529(0x1f2)]||this[_0xeac529(0x177)][_0xeac529(0x18d)]>=Math['max'](_0x17c479,0x1)||this[_0xeac529(0x177)]['endColumn']>=Math[_0xeac529(0x1ae)](_0x3b6989,0x1))throw Error(_0xeac529(0x14e)+_0x17c479+_0xeac529(0x1d2)+_0x3b6989+_0xeac529(0x1f0)+JSON[_0xeac529(0x1ea)](this[_0xeac529(0x177)])+'.');}};let U=function(_0x3da82c){const _0x3b14e6=_0x166382;return _0x3da82c['Id']='id',_0x3da82c[_0x3b14e6(0x181)]=_0x3b14e6(0x1d7),_0x3da82c[_0x3b14e6(0x180)]=_0x3b14e6(0x18f),_0x3da82c;}({});function W(_0x4e54ae,_0x145ad7,_0x1db5ba='id'){const _0x172c2b=_0x166382;if(!_0x145ad7)return{};let _0x4e0179={};return Object[_0x172c2b(0x1a6)](_0x145ad7)[_0x172c2b(0x1c5)](([_0x27bc67,_0x3810c5])=>{_0x4e0179[G(_0x4e54ae,_0x27bc67,_0x1db5ba)]=_0x3810c5;}),_0x4e0179;}function G(_0x5cb942,_0x3a2d9e,_0x17eb24){const _0x591834=_0x166382;if(_0x17eb24==='id'||_0x17eb24===_0x591834(0x18f)&&_0x5cb942[_0x591834(0x15f)][_0x3a2d9e])return _0x3a2d9e;let _0x5f2027=Object[_0x591834(0x168)](_0x5cb942[_0x591834(0x15f)])[_0x591834(0x1be)](_0x1cb5ce=>_0x1cb5ce[_0x591834(0x1d7)]===_0x3a2d9e);if(_0x5f2027[_0x591834(0x179)]===0x1)return _0x5f2027[0x0]['id'];throw _0x5f2027[_0x591834(0x179)]>0x1?Error(_0x591834(0x1ad)+_0x3a2d9e):Error(_0x591834(0x204)+_0x3a2d9e);}var K=class e{constructor(_0x507947,_0x5916d8,_0x27869f,_0x375a09){const _0x33d97a=_0x166382;this['_base']=_0x507947,this[_0x33d97a(0x1ce)]=_0x5916d8,this[_0x33d97a(0x211)]=_0x27869f,this[_0x33d97a(0x1d4)]=_0x375a09;}['getId'](){const _0x42171d=_0x166382;return this[_0x42171d(0x211)];}[_0x166382(0x1f8)](){const _0x2e73ac=_0x166382;return this[_0x2e73ac(0x212)]();}[_0x166382(0x1e8)](_0x17461d){const _0x1de1ae=_0x166382;var _0x3e003d;return(_0x3e003d=this[_0x1de1ae(0x212)]()['values'][_0x17461d])==null?null:_0x3e003d;}['getValues'](){const _0x14af20=_0x166382;return{...this[_0x14af20(0x212)]()[_0x14af20(0x168)]};}[_0x166382(0x19c)](_0x2ab97b,_0x47317f){const _0x3c82f0=_0x166382;return this['_inject'][_0x3c82f0(0x1c6)](_0x1f43ec)['syncExecuteCommand'](_0x5946f1['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x3c82f0(0x1ce)]['getId'](),'recordId':this[_0x3c82f0(0x211)],'fieldId':_0x2ab97b,'value':_0x47317f});}[_0x166382(0x17f)](_0xd851c3,_0x20a335){const _0x2b5e01=_0x166382;return this['setValue'](_0xd851c3,_0x20a335[_0x2b5e01(0x172)](_0x2e76a1=>({..._0x2e76a1})));}['setValues'](_0xa56617,_0x38e7a8='id'){const _0x2fcf4d=_0x166382;let _0x3d4584=this[_0x2fcf4d(0x1d4)][_0x2fcf4d(0x1c6)](_0x1f43ec),_0x376b7f=this['_table'][_0x2fcf4d(0x17d)](),_0x4d30c5=[{'recordId':this[_0x2fcf4d(0x211)],'values':W(_0x376b7f,_0xa56617,_0x38e7a8)}];return _0x3d4584[_0x2fcf4d(0x182)](_0x56e812['id'],{'unitId':this[_0x2fcf4d(0x15b)]['getId'](),'tableId':this[_0x2fcf4d(0x1ce)][_0x2fcf4d(0x1e9)](),'patches':_0x4d30c5});}[_0x166382(0x228)](){const _0x1b6862=_0x166382;return this[_0x1b6862(0x1d4)][_0x1b6862(0x1c6)](_0x1f43ec)[_0x1b6862(0x182)](_0x3fffa7['id'],{'unitId':this[_0x1b6862(0x15b)][_0x1b6862(0x1e9)](),'tableId':this[_0x1b6862(0x1ce)][_0x1b6862(0x1e9)](),'recordId':this[_0x1b6862(0x211)]});}[_0x166382(0x202)](_0x5973ec){const _0x5818c2=_0x166382;let _0x20bd6f=this[_0x5818c2(0x1d4)][_0x5818c2(0x1c6)](_0x1f43ec),_0x42adfe={...this[_0x5818c2(0x212)](),..._0x5973ec,'id':_0x2decce(0x6)};_0x5973ec!=null&&_0x5973ec[_0x5818c2(0x168)]&&(_0x42adfe['values']={..._0x42adfe[_0x5818c2(0x168)],..._0x5973ec[_0x5818c2(0x168)]});let _0xddf84b=Date[_0x5818c2(0x14a)]();if(_0x42adfe['orderKey']||(_0x42adfe[_0x5818c2(0x1f5)]=''+_0xddf84b),_0x42adfe[_0x5818c2(0x21e)]||(_0x42adfe[_0x5818c2(0x21e)]=_0xddf84b),_0x42adfe['updatedAt']||(_0x42adfe[_0x5818c2(0x154)]=_0xddf84b),!_0x20bd6f[_0x5818c2(0x182)](_0x5560d7['id'],{'unitId':this[_0x5818c2(0x15b)][_0x5818c2(0x1e9)](),'tableId':this['_table'][_0x5818c2(0x1e9)](),'sourceRecordId':this[_0x5818c2(0x211)],'record':_0x42adfe}))throw Error('[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22'+this[_0x5818c2(0x211)]+'\x22.');return this[_0x5818c2(0x1d4)]['createInstance'](e,this['_base'],this['_table'],_0x42adfe['id'],this[_0x5818c2(0x1d4)]);}[_0x166382(0x1c4)](_0x37f79f){const _0x1c2fae=_0x166382;return this[_0x1c2fae(0x1d4)][_0x1c2fae(0x1c6)](_0x1f43ec)['syncExecuteCommand'](_0xe2810f['id'],{'unitId':this[_0x1c2fae(0x15b)]['getId'](),'tableId':this[_0x1c2fae(0x1ce)]['getId'](),'recordId':this[_0x1c2fae(0x211)],'orderKey':_0x37f79f});}[_0x166382(0x212)](){const _0x5b1d0b=_0x166382;let _0x361dab=this[_0x5b1d0b(0x1ce)][_0x5b1d0b(0x17d)]()[_0x5b1d0b(0x1dc)][this[_0x5b1d0b(0x211)]];if(!_0x361dab)throw Error(_0x5b1d0b(0x144)+this[_0x5b1d0b(0x211)]+_0x5b1d0b(0x1c2));return _0x361dab;}},q=class{constructor(_0x2ff015,_0x5c0876,_0x53b78e,_0x293b8f){const _0x54c4be=_0x166382;this['_base']=_0x2ff015,this[_0x54c4be(0x1ce)]=_0x5c0876,this[_0x54c4be(0x17e)]=_0x53b78e,this['_injector']=_0x293b8f;}[_0x166382(0x1e9)](){const _0x4a54e3=_0x166382;return this[_0x4a54e3(0x17e)];}[_0x166382(0x197)](){const _0x469191=_0x166382;return this[_0x469191(0x1d0)]();}['getName'](){const _0x5d9647=_0x166382;return this[_0x5d9647(0x1d0)]()[_0x5d9647(0x1d7)];}[_0x166382(0x13f)](){const _0x223738=_0x166382;return this['_getView']()[_0x223738(0x1bd)];}[_0x166382(0x151)](_0x3de1a8){const _0x538707=_0x166382;return this[_0x538707(0x17a)][_0x538707(0x1c6)](_0x1f43ec)['syncExecuteCommand'](_0x12da68['id'],{'unitId':this[_0x538707(0x15b)][_0x538707(0x1e9)](),'tableId':this[_0x538707(0x1ce)][_0x538707(0x1e9)](),'viewId':this[_0x538707(0x17e)],'name':_0x3de1a8});}[_0x166382(0x165)](){const _0x2220fb=_0x166382;let _0x2ef2bd=this[_0x2220fb(0x13f)](),_0x2b9314=this['_getView']()[_0x2220fb(0x1fb)];switch(_0x2ef2bd){case _0x4f3b2f['Grid']:return _0x2b9314;case _0x4f3b2f[_0x2220fb(0x16d)]:return _0x2b9314;case _0x4f3b2f[_0x2220fb(0x186)]:return _0x2b9314;case _0x4f3b2f[_0x2220fb(0x1a4)]:return _0x2b9314;case _0x4f3b2f[_0x2220fb(0x1b4)]:return _0x2b9314;default:return _0x2b9314;}}[_0x166382(0x1e3)](_0x49fb73){const _0x49ad6d=_0x166382;return this[_0x49ad6d(0x17a)]['get'](_0x1f43ec)[_0x49ad6d(0x182)](_0x1e6de5['id'],{'unitId':this[_0x49ad6d(0x15b)]['getId'](),'tableId':this[_0x49ad6d(0x1ce)][_0x49ad6d(0x1e9)](),'viewId':this[_0x49ad6d(0x17e)],'patch':_0x49fb73});}[_0x166382(0x225)](){const _0x48254e=_0x166382;var _0x1dbda8;return(_0x1dbda8=this[_0x48254e(0x1d0)]()[_0x48254e(0x1be)])==null?null:_0x1dbda8;}[_0x166382(0x156)](_0x264922){const _0x2cfc44=_0x166382;return this[_0x2cfc44(0x17a)][_0x2cfc44(0x1c6)](_0x1f43ec)[_0x2cfc44(0x182)](_0x570bf5['id'],{'unitId':this['_base'][_0x2cfc44(0x1e9)](),'tableId':this[_0x2cfc44(0x1ce)]['getId'](),'viewId':this['_viewId'],'filter':_0x264922});}[_0x166382(0x1fa)](){const _0x65423c=_0x166382;var _0x5be5ca;return(_0x5be5ca=this[_0x65423c(0x1d0)]()[_0x65423c(0x218)])==null?[]:_0x5be5ca;}[_0x166382(0x1ef)](_0x2d6325){const _0x15fc7f=_0x166382;return this[_0x15fc7f(0x17a)][_0x15fc7f(0x1c6)](_0x1f43ec)['syncExecuteCommand'](_0x5d8b7e['id'],{'unitId':this['_base'][_0x15fc7f(0x1e9)](),'tableId':this['_table'][_0x15fc7f(0x1e9)](),'viewId':this[_0x15fc7f(0x17e)],'sort':_0x2d6325});}[_0x166382(0x19a)](){const _0x27f2d5=_0x166382;var _0x1d1615;return(_0x1d1615=this[_0x27f2d5(0x1d0)]()[_0x27f2d5(0x18b)])==null?[]:_0x1d1615;}[_0x166382(0x217)](_0x889ce9){const _0x7083cc=_0x166382;return this[_0x7083cc(0x17a)][_0x7083cc(0x1c6)](_0x1f43ec)[_0x7083cc(0x182)](_0xf94296['id'],{'unitId':this[_0x7083cc(0x15b)][_0x7083cc(0x1e9)](),'tableId':this['_table'][_0x7083cc(0x1e9)](),'viewId':this[_0x7083cc(0x17e)],'group':_0x889ce9});}[_0x166382(0x1e4)](_0x591c00){const _0x359814=_0x166382;var _0x236eda,_0x4adc1b;return(_0x236eda=(_0x4adc1b=this[_0x359814(0x1d0)]()[_0x359814(0x22f)])==null?void 0x0:_0x4adc1b[_0x591c00])==null?{}:_0x236eda;}['getVisibleFields'](){const _0x42156a=_0x166382;var _0xf14430;let _0x56bb72=this['_table'][_0x42156a(0x17d)](),_0x4f8ee2=this[_0x42156a(0x1d0)]();return((_0xf14430=_0x4f8ee2['fieldOrder'])==null?_0x56bb72[_0x42156a(0x1b8)]:_0xf14430)[_0x42156a(0x1be)](_0xee27a1=>{const _0x265f86=_0x42156a;var _0x1cc853;return _0x56bb72[_0x265f86(0x15f)][_0xee27a1]&&!((_0x1cc853=_0x4f8ee2[_0x265f86(0x22f)])!=null&&(_0x1cc853=_0x1cc853[_0xee27a1])!=null&&_0x1cc853['hidden']);})['map'](_0x1e5baa=>this[_0x42156a(0x17a)][_0x42156a(0x1f6)](V,this[_0x42156a(0x15b)],this[_0x42156a(0x1ce)],_0x1e5baa,this[_0x42156a(0x17a)]));}[_0x166382(0x1ee)](_0x1226a1,_0x3c467c){const _0xb1df09=_0x166382;return this[_0xb1df09(0x17a)][_0xb1df09(0x1c6)](_0x1f43ec)[_0xb1df09(0x182)](_0x5a97a9['id'],{'unitId':this[_0xb1df09(0x15b)]['getId'](),'tableId':this[_0xb1df09(0x1ce)][_0xb1df09(0x1e9)](),'viewId':this[_0xb1df09(0x17e)],'fieldId':_0x1226a1,'visible':_0x3c467c});}[_0x166382(0x169)](_0x2ef19f,_0x3b7b9c){const _0x47b24f=_0x166382;return this[_0x47b24f(0x17a)][_0x47b24f(0x1c6)](_0x1f43ec)[_0x47b24f(0x182)](_0x179732['id'],{'unitId':this[_0x47b24f(0x15b)][_0x47b24f(0x1e9)](),'tableId':this[_0x47b24f(0x1ce)][_0x47b24f(0x1e9)](),'viewId':this[_0x47b24f(0x17e)],'fieldId':_0x2ef19f,'width':_0x3b7b9c});}['moveField'](_0x3b0863,_0x74c33b){const _0x392d8d=_0x166382;return this['_injector'][_0x392d8d(0x1c6)](_0x1f43ec)['syncExecuteCommand'](_0x1d7382['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0x392d8d(0x1e9)](),'viewId':this['_viewId'],'fieldId':_0x3b0863,'target':_0x74c33b});}['move'](_0x44ec23){const _0x49a0bd=_0x166382;return this['_injector']['get'](_0x1f43ec)['syncExecuteCommand'](_0x168688['id'],{'unitId':this[_0x49a0bd(0x15b)][_0x49a0bd(0x1e9)](),'tableId':this[_0x49a0bd(0x1ce)][_0x49a0bd(0x1e9)](),'viewId':this['_viewId'],'target':_0x44ec23});}[_0x166382(0x228)](){const _0x2900fc=_0x166382;return this[_0x2900fc(0x17a)][_0x2900fc(0x1c6)](_0x1f43ec)[_0x2900fc(0x182)](_0x858461['id'],{'unitId':this['_base'][_0x2900fc(0x1e9)](),'tableId':this[_0x2900fc(0x1ce)]['getId'](),'viewId':this['_viewId']});}[_0x166382(0x205)](){const _0x791126=_0x166382;return this[_0x791126(0x17a)][_0x791126(0x1c6)](_0x5c28f7)[_0x791126(0x205)](this[_0x791126(0x15b)][_0x791126(0x16b)]()[_0x791126(0x1e1)](),this[_0x791126(0x1ce)][_0x791126(0x1e9)](),this[_0x791126(0x17e)]);}[_0x166382(0x1d0)](){const _0x43461c=_0x166382;let _0x365617=this[_0x43461c(0x1ce)]['getTable']()[_0x43461c(0x1a0)][this['_viewId']];if(!_0x365617)throw Error(_0x43461c(0x1af)+this['_viewId']+_0x43461c(0x1c2));return _0x365617;}},J=class{constructor(_0x27e0fe,_0x24aecd,_0xf67b28){const _0x25f81c=_0x166382;this['_base']=_0x27e0fe,this[_0x25f81c(0x187)]=_0x24aecd,this[_0x25f81c(0x17a)]=_0xf67b28;}[_0x166382(0x16b)](){const _0x1ba907=_0x166382;return this[_0x1ba907(0x15b)][_0x1ba907(0x16b)]();}['getTable'](){const _0x59dcae=_0x166382;return this[_0x59dcae(0x162)]();}[_0x166382(0x1e9)](){const _0x2628ba=_0x166382;return this[_0x2628ba(0x187)];}[_0x166382(0x152)](){const _0x16976d=_0x166382;return this[_0x16976d(0x162)]()['name'];}['setName'](_0x1e7b71){const _0x40b37c=_0x166382;return this['_injector'][_0x40b37c(0x1c6)](_0x1f43ec)[_0x40b37c(0x182)](_0x4affdf['id'],{'unitId':this[_0x40b37c(0x15b)][_0x40b37c(0x1e9)](),'tableId':this[_0x40b37c(0x187)],'name':_0x1e7b71});}['search'](_0xf3d1dd,_0x4d8c3b){const _0x5cf07f=_0x166382;var _0x553040;let _0xf7b26c=this['_injector']['get'](_0x5c28f7),_0x573667=this[_0x5cf07f(0x15b)][_0x5cf07f(0x16b)]()[_0x5cf07f(0x1e1)](),_0x4345be=this[_0x5cf07f(0x162)]();if(_0x4d8c3b){var _0x1345f9;let _0x2452e3=_0xf7b26c[_0x5cf07f(0x205)](_0x573667,this[_0x5cf07f(0x187)],_0x4d8c3b),_0x3ba712=_0x4345be[_0x5cf07f(0x1a0)][_0x4d8c3b],_0x317fc0=(_0x1345f9=_0xf3d1dd[_0x5cf07f(0x14b)])==null?ve(_0x4345be,_0x3ba712,_0x2452e3):_0x1345f9,_0x1ec88d=_0x5cf07f(0x22c)in _0x2452e3&&Array[_0x5cf07f(0x185)](_0x2452e3[_0x5cf07f(0x22c)])?_0x2452e3[_0x5cf07f(0x22c)]:[];return _0x5fa93c({..._0xf3d1dd,'table':_0x4345be,'fieldIds':_0x317fc0,'rows':_0x1ec88d});}let _0xa6ee1b=(_0x4345be[_0x5cf07f(0x1fc)]?_0x4345be[_0x5cf07f(0x1fc)]['map'](_0x42ccd3=>_0x4345be[_0x5cf07f(0x1dc)][_0x42ccd3]):Object[_0x5cf07f(0x168)](_0x4345be[_0x5cf07f(0x1dc)])[_0x5cf07f(0x218)]((_0x301771,_0x25ce7b)=>_0x301771['orderKey']['localeCompare'](_0x25ce7b['orderKey'])))['filter'](_0x246e28=>_0x246e28)[_0x5cf07f(0x172)](_0x1b3cb3=>({'recordId':_0x1b3cb3['id'],'values':_0x1b3cb3[_0x5cf07f(0x168)]})),_0x3cb337=(_0x553040=_0xf3d1dd['fieldIds'])==null?_0x4345be['fieldOrder']['filter'](_0x215616=>_0x4345be['fields'][_0x215616]):_0x553040;return _0x5fa93c({..._0xf3d1dd,'table':_0x4345be,'fieldIds':_0x3cb337,'rows':_0xa6ee1b});}[_0x166382(0x191)](){const _0x46a323=_0x166382;return this['_getTable']()[_0x46a323(0x1c7)];}[_0x166382(0x16f)](){const _0x506971=_0x166382;let _0x3680fb=this['_getTable']();return _0x3680fb[_0x506971(0x1b8)][_0x506971(0x172)](_0x370ad7=>_0x3680fb[_0x506971(0x15f)][_0x370ad7])['filter'](_0x271e56=>_0x271e56)[_0x506971(0x172)](_0x422b84=>this[_0x506971(0x17a)][_0x506971(0x1f6)](V,this['_base'],this,_0x422b84['id'],this[_0x506971(0x17a)]));}[_0x166382(0x1e6)](_0x2ae4df){const _0x4a2d14=_0x166382;let _0x2bdc56=this[_0x4a2d14(0x162)]()[_0x4a2d14(0x15f)][_0x2ae4df];return _0x2bdc56?this['_injector'][_0x4a2d14(0x1f6)](V,this['_base'],this,_0x2bdc56['id'],this[_0x4a2d14(0x17a)]):null;}[_0x166382(0x1a3)](_0x37db7c){const _0x4d7978=_0x166382;let _0x1e18cb=this[_0x4d7978(0x162)]()[_0x4d7978(0x15f)],_0x186a79=Object[_0x4d7978(0x168)](_0x1e18cb)[_0x4d7978(0x161)](_0x2138d7=>_0x2138d7[_0x4d7978(0x1d7)]===_0x37db7c);return _0x186a79?this[_0x4d7978(0x17a)]['createInstance'](V,this[_0x4d7978(0x15b)],this,_0x186a79['id'],this[_0x4d7978(0x17a)]):null;}[_0x166382(0x178)](){const _0x54511d=_0x166382;let _0x573c9d=this[_0x54511d(0x162)]()[_0x54511d(0x1c7)];return this[_0x54511d(0x17a)][_0x54511d(0x1f6)](V,this['_base'],this,_0x573c9d,this[_0x54511d(0x17a)]);}[_0x166382(0x1b1)](_0x425c5d,_0x5ac013,_0x3101fb){const _0x339d4a=_0x166382;var _0x5eb436,_0x4e8c9c;let _0x29b6d4=this[_0x339d4a(0x17a)][_0x339d4a(0x1c6)](_0x1f43ec);if(_0x5ac013===_0x7a8503[_0x339d4a(0x142)]){if(!_0x3101fb||!('externalReferences'in _0x3101fb)||!Array[_0x339d4a(0x185)](_0x3101fb['externalReferences']))throw Error('Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.');if(_0x3101fb[_0x339d4a(0x1e2)]['length']>0x0&&!_0x29b6d4[_0x339d4a(0x182)](_0x34373b['id'],{'unitId':this[_0x339d4a(0x15b)][_0x339d4a(0x1e9)](),'references':_0x3101fb[_0x339d4a(0x1e2)]}))throw Error(_0x339d4a(0x167)+_0x425c5d+'\x22');}let _0x46c149={..._0x3101fb==null?void 0x0:_0x3101fb[_0x339d4a(0x145)],'id':_0x2decce(0x6),'name':_0x425c5d,'type':_0x5ac013,'config':(_0x5eb436=_0x3101fb==null||(_0x4e8c9c=_0x3101fb['field'])==null?void 0x0:_0x4e8c9c[_0x339d4a(0x1fb)])==null?{}:_0x5eb436};if(!_0x29b6d4[_0x339d4a(0x182)](_0x12c685['id'],{'unitId':this[_0x339d4a(0x15b)]['getId'](),'tableId':this[_0x339d4a(0x187)],'field':_0x46c149,'index':_0x3101fb==null?void 0x0:_0x3101fb[_0x339d4a(0x21f)]}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x425c5d+'\x22');return this[_0x339d4a(0x17a)]['createInstance'](V,this[_0x339d4a(0x15b)],this,_0x46c149['id'],this['_injector']);}[_0x166382(0x190)](){const _0x574639=_0x166382;return this['_resolveRecordIds']()[_0x574639(0x172)](_0x4d13db=>this[_0x574639(0x17a)]['createInstance'](K,this[_0x574639(0x15b)],this,_0x4d13db,this[_0x574639(0x17a)]));}[_0x166382(0x1dd)](_0x4030f8){const _0x45c6df=_0x166382;return this[_0x45c6df(0x162)]()['records'][_0x4030f8]?this[_0x45c6df(0x17a)][_0x45c6df(0x1f6)](K,this['_base'],this,_0x4030f8,this[_0x45c6df(0x17a)]):null;}[_0x166382(0x200)](_0x30712e={}){const _0x403b1a=_0x166382;var _0x1d45ce;let _0x422aa2=this['_getTable'](),_0x59e7d4=this[_0x403b1a(0x1fe)](_0x30712e),_0x5b0e6e=Math[_0x403b1a(0x1ae)](0x0,(_0x1d45ce=_0x30712e[_0x403b1a(0x1de)])==null?0x0:_0x1d45ce),_0x21b685=_0x30712e[_0x403b1a(0x14f)]==null?null:Math[_0x403b1a(0x1ae)](0x0,_0x30712e['limit']),_0x1490c8=me(_0x59e7d4['map'](_0x5444d1=>_0x422aa2[_0x403b1a(0x1dc)][_0x5444d1])[_0x403b1a(0x1be)](_0x26e060=>he(_0x26e060,_0x422aa2,_0x30712e[_0x403b1a(0x1be)])),_0x422aa2,_0x30712e[_0x403b1a(0x218)]);return{'records':pe(_0x1490c8,_0x30712e)[_0x403b1a(0x172)](_0x59107d=>this[_0x403b1a(0x17a)][_0x403b1a(0x1f6)](K,this[_0x403b1a(0x15b)],this,_0x59107d['id'],this[_0x403b1a(0x17a)])),'total':_0x1490c8[_0x403b1a(0x179)],'offset':_0x5b0e6e,'limit':_0x21b685,'hasMore':_0x21b685!=null&&_0x5b0e6e+_0x21b685<_0x1490c8[_0x403b1a(0x179)]};}[_0x166382(0x1a2)](_0x55856d,_0x363684='id',_0x4af4be){const _0x17e5a8=_0x166382;let _0x270c51=this[_0x17e5a8(0x17a)][_0x17e5a8(0x1c6)](_0x1f43ec),_0x336635=this[_0x17e5a8(0x162)](),_0x1b5240=_0x4af4be==null?{}:_0x4af4be;_0x1b5240['id']=_0x2decce(0x6),_0x1b5240[_0x17e5a8(0x168)]=W(_0x336635,_0x55856d,_0x363684);let _0x95864=Date[_0x17e5a8(0x14a)]();if(_0x1b5240[_0x17e5a8(0x1f5)]||(_0x1b5240[_0x17e5a8(0x1f5)]=''+_0x95864),_0x1b5240[_0x17e5a8(0x21e)]||(_0x1b5240['createdAt']=_0x95864),_0x1b5240[_0x17e5a8(0x154)]||(_0x1b5240[_0x17e5a8(0x154)]=_0x95864),!_0x270c51[_0x17e5a8(0x182)](_0x5d2235['id'],{'unitId':this['_base'][_0x17e5a8(0x1e9)](),'tableId':this['_tableId'],'record':_0x1b5240}))throw Error(_0x17e5a8(0x19d)+_0x1b5240['id']+'\x22');return this['_injector'][_0x17e5a8(0x1f6)](K,this[_0x17e5a8(0x15b)],this,_0x1b5240['id'],this[_0x17e5a8(0x17a)]);}[_0x166382(0x224)](_0x1ca853){const _0x327e00=_0x166382;if(!_0x1ca853[_0x327e00(0x179)])return[];let _0x282e6e=this[_0x327e00(0x17a)][_0x327e00(0x1c6)](_0x1f43ec),_0x25fc2b=this['_getTable'](),_0x28a955=Date[_0x327e00(0x14a)](),_0x487c7b=_0x1ca853[_0x327e00(0x172)]((_0x3a913f,_0x5162b6)=>{const _0x3acef8=_0x327e00;var _0x397d45,_0x3efef1;let _0xd16b8b=(_0x397d45=_0x3a913f[_0x3acef8(0x20d)])==null?{}:_0x397d45;return _0xd16b8b['id']=_0x2decce(0x6),_0xd16b8b[_0x3acef8(0x168)]=W(_0x25fc2b,_0x3a913f[_0x3acef8(0x168)],(_0x3efef1=_0x3a913f['fieldKey'])==null?'id':_0x3efef1),_0xd16b8b[_0x3acef8(0x1f5)]||(_0xd16b8b[_0x3acef8(0x1f5)]=''+(_0x28a955+_0x5162b6)),_0xd16b8b[_0x3acef8(0x21e)]||(_0xd16b8b['createdAt']=_0x28a955),_0xd16b8b[_0x3acef8(0x154)]||(_0xd16b8b['updatedAt']=_0x28a955),_0xd16b8b;});if(!_0x282e6e[_0x327e00(0x182)](_0x328b9a['id'],{'unitId':this[_0x327e00(0x15b)][_0x327e00(0x1e9)](),'tableId':this[_0x327e00(0x187)],'records':_0x487c7b}))throw Error('Failed\x20to\x20add\x20records');return _0x487c7b['map'](_0x2d1d80=>this[_0x327e00(0x17a)][_0x327e00(0x1f6)](K,this[_0x327e00(0x15b)],this,_0x2d1d80['id'],this[_0x327e00(0x17a)]));}['deleteRecords'](_0x13417d){const _0x4006e8=_0x166382;return!_0x13417d[_0x4006e8(0x179)]||this['_injector'][_0x4006e8(0x1c6)](_0x1f43ec)[_0x4006e8(0x182)](_0x41c146['id'],{'unitId':this[_0x4006e8(0x15b)][_0x4006e8(0x1e9)](),'tableId':this['_tableId'],'recordIds':_0x13417d});}[_0x166382(0x1e0)](_0x5841ce,_0x2cfd7e,_0x18a9e0=0x1,_0x4d0bc9=0x1){const _0x3b2e29=_0x166382;return this[_0x3b2e29(0x17a)][_0x3b2e29(0x1f6)](H,this[_0x3b2e29(0x15b)],this,{'startRow':_0x5841ce,'endRow':_0x5841ce+_0x18a9e0-0x1,'startColumn':_0x2cfd7e,'endColumn':_0x2cfd7e+_0x4d0bc9-0x1},this[_0x3b2e29(0x17a)]);}['getDataRange'](){const _0x28dbcc=_0x166382;var _0xdfb445,_0x534d36;let _0x441b2b=_0x31afe7(this[_0x28dbcc(0x162)]()),_0xfa1a24=(_0xdfb445=(_0x534d36=_0x441b2b[_0x28dbcc(0x1fc)])==null?void 0x0:_0x534d36[_0x28dbcc(0x179)])==null?0x0:_0xdfb445,_0x4ff7a3=_0x441b2b[_0x28dbcc(0x1b8)][_0x28dbcc(0x179)];return this[_0x28dbcc(0x1e0)](0x0,0x0,Math[_0x28dbcc(0x1ae)](_0xfa1a24,0x1),Math[_0x28dbcc(0x1ae)](_0x4ff7a3,0x1));}[_0x166382(0x1f3)](){const _0x2585a7=_0x166382;let _0x3fab6b=this['_getTable']();return _0x3fab6b['viewOrder'][_0x2585a7(0x1be)](_0x911631=>_0x3fab6b[_0x2585a7(0x1a0)][_0x911631])[_0x2585a7(0x172)](_0x20048a=>this[_0x2585a7(0x17a)]['createInstance'](q,this[_0x2585a7(0x15b)],this,_0x20048a,this[_0x2585a7(0x17a)]));}[_0x166382(0x1db)](_0x19db15){const _0x450fec=_0x166382;return this['_getTable']()[_0x450fec(0x1a0)][_0x19db15]?this['_injector'][_0x450fec(0x1f6)](q,this['_base'],this,_0x19db15,this[_0x450fec(0x17a)]):null;}[_0x166382(0x206)](_0x11a9bc){const _0x28b2f1=_0x166382;let _0xcb53ca=this[_0x28b2f1(0x162)](),_0x589c0d=Object[_0x28b2f1(0x168)](_0xcb53ca[_0x28b2f1(0x1a0)])[_0x28b2f1(0x161)](_0x444aff=>_0x444aff[_0x28b2f1(0x1d7)]===_0x11a9bc);return _0x589c0d?this[_0x28b2f1(0x17a)][_0x28b2f1(0x1f6)](q,this[_0x28b2f1(0x15b)],this,_0x589c0d['id'],this[_0x28b2f1(0x17a)]):null;}[_0x166382(0x1ff)](_0x2034c1,_0xb96e5c,_0x688080){const _0x5ed320=_0x166382;var _0x410e7e;let _0x2bd7e1=this[_0x5ed320(0x17a)][_0x5ed320(0x1c6)](_0x1f43ec),_0x453d5a=this['_getTable'](),_0xc34387=(_0x410e7e=_0x688080==null?void 0x0:_0x688080[_0x5ed320(0x201)])==null?{}:_0x410e7e;if(_0xc34387['id']=_0x2decce(0x6),_0xc34387[_0x5ed320(0x1d7)]=_0x2034c1,_0xc34387[_0x5ed320(0x1bd)]=_0xb96e5c,_0xc34387['tableId']=this['_tableId'],!_0xc34387[_0x5ed320(0x1bd)])throw Error(_0x5ed320(0x17b));if(_0xc34387[_0x5ed320(0x1fb)]||(_0xc34387[_0x5ed320(0x1fb)]={}),_0xc34387['fieldOrder']||(_0xc34387[_0x5ed320(0x1b8)]=[..._0x453d5a[_0x5ed320(0x1b8)]]),!_0x2bd7e1[_0x5ed320(0x182)](_0x44a3b0['id'],{'unitId':this[_0x5ed320(0x15b)][_0x5ed320(0x1e9)](),'tableId':this[_0x5ed320(0x187)],'view':_0xc34387,'index':_0x688080==null?void 0x0:_0x688080[_0x5ed320(0x21f)]}))throw Error('Failed\x20to\x20create\x20view\x20\x22'+_0x2034c1+'\x22');return this['_injector'][_0x5ed320(0x1f6)](q,this[_0x5ed320(0x15b)],this,_0xc34387['id'],this[_0x5ed320(0x17a)]);}[_0x166382(0x171)](){const _0x388f84=_0x166382;let _0x567ca5=this[_0x388f84(0x162)](),_0x746adb=_0x567ca5[_0x388f84(0x1b8)]['filter'](_0x539c06=>_0x567ca5[_0x388f84(0x15f)][_0x539c06]),_0x18fad8=_0x567ca5[_0x388f84(0x170)][_0x388f84(0x1be)](_0x19d36f=>_0x567ca5[_0x388f84(0x1a0)][_0x19d36f]);return{'id':_0x567ca5['id'],'name':_0x567ca5[_0x388f84(0x1d7)],'primaryFieldId':_0x567ca5[_0x388f84(0x1c7)],'fieldIds':_0x746adb,'viewIds':_0x18fad8,'recordCount':this[_0x388f84(0x1fe)]()[_0x388f84(0x179)],'fields':_0x746adb[_0x388f84(0x172)](_0x23ff04=>{const _0x2f38d6=_0x388f84;let _0x1ecf0e=_0x567ca5[_0x2f38d6(0x15f)][_0x23ff04];return{'id':_0x1ecf0e['id'],'name':_0x1ecf0e['name'],'type':_0x1ecf0e[_0x2f38d6(0x1bd)],'config':_0x1ecf0e[_0x2f38d6(0x1fb)],'readonly':_0x1ecf0e[_0x2f38d6(0x1e7)],'description':_0x1ecf0e[_0x2f38d6(0x209)]};}),'views':_0x18fad8[_0x388f84(0x172)](_0x3fd948=>{const _0x523726=_0x388f84;let _0x1e91f6=_0x567ca5[_0x523726(0x1a0)][_0x3fd948];return{'id':_0x1e91f6['id'],'name':_0x1e91f6[_0x523726(0x1d7)],'type':_0x1e91f6['type']};})};}[_0x166382(0x162)](){const _0x229514=_0x166382;let _0xbac212=this[_0x229514(0x15b)][_0x229514(0x16b)]()[_0x229514(0x1e1)]()[_0x229514(0x1aa)][this['_tableId']];if(!_0xbac212)throw Error('[FTable]:\x20table\x20\x22'+this[_0x229514(0x187)]+_0x229514(0x1c2));return _0xbac212;}[_0x166382(0x1fe)](_0x3f7173={}){const _0x3069a9=_0x166382;let _0x2014cb=this[_0x3069a9(0x17a)][_0x3069a9(0x1c6)](_0x5c28f7),_0xf3fbce=this['_base'][_0x3069a9(0x16b)]()[_0x3069a9(0x1e1)](),_0x326f57=this[_0x3069a9(0x162)]();if(_0x3f7173[_0x3069a9(0x1da)]){let _0x17b640=_0x2014cb[_0x3069a9(0x205)](_0xf3fbce,this[_0x3069a9(0x187)],_0x3f7173[_0x3069a9(0x1da)]);if(_0x3069a9(0x22c)in _0x17b640&&Array['isArray'](_0x17b640['rows']))return _0x17b640[_0x3069a9(0x22c)][_0x3069a9(0x172)](_0x1dc57c=>_0x1dc57c['recordId']);}return(_0x326f57[_0x3069a9(0x1fc)]?_0x326f57['recordOrder'][_0x3069a9(0x172)](_0x3824ad=>_0x326f57[_0x3069a9(0x1dc)][_0x3824ad]):Object[_0x3069a9(0x168)](_0x326f57[_0x3069a9(0x1dc)])['sort']((_0x154a63,_0x38afa5)=>_0x154a63[_0x3069a9(0x1f5)][_0x3069a9(0x183)](_0x38afa5[_0x3069a9(0x1f5)])))['filter'](_0x3f6f7c=>_0x3f6f7c)[_0x3069a9(0x172)](_0x2d696f=>_0x2d696f['id']);}};function pe(_0x4466c6,_0x879a29){const _0x2608ef=_0x166382;var _0x48bca7;let _0x1eac94=Math[_0x2608ef(0x1ae)](0x0,(_0x48bca7=_0x879a29['offset'])==null?0x0:_0x48bca7);return _0x879a29[_0x2608ef(0x14f)]==null?_0x4466c6[_0x2608ef(0x163)](_0x1eac94):_0x4466c6[_0x2608ef(0x163)](_0x1eac94,_0x1eac94+Math[_0x2608ef(0x1ae)](0x0,_0x879a29[_0x2608ef(0x14f)]));}function me(_0x5078b8,_0x1ffcfa,_0x221b3a=[]){const _0x7ca828=_0x166382;return _0x221b3a[_0x7ca828(0x179)]?[..._0x5078b8][_0x7ca828(0x218)]((_0x30e8d1,_0x225189)=>{const _0x148055=_0x7ca828;var _0x2f7e60,_0x4a211f;for(let _0x58fecc of _0x221b3a){var _0x5c6a04;let _0x4c4835=_0x58fecc[_0x148055(0x1ca)]===_0x46203c[_0x148055(0x21d)]?-0x1:0x1,_0x29fac4=Y(_0x30e8d1[_0x148055(0x168)][_0x58fecc['fieldId']],_0x225189[_0x148055(0x168)][_0x58fecc[_0x148055(0x22d)]],(_0x5c6a04=_0x1ffcfa[_0x148055(0x15f)][_0x58fecc['fieldId']])==null?void 0x0:_0x5c6a04[_0x148055(0x1bd)]);if(_0x29fac4!==0x0)return _0x29fac4*_0x4c4835;}return String((_0x2f7e60=_0x30e8d1[_0x148055(0x1f5)])==null?_0x30e8d1['id']:_0x2f7e60)[_0x148055(0x183)](String((_0x4a211f=_0x225189[_0x148055(0x1f5)])==null?_0x225189['id']:_0x4a211f));}):_0x5078b8;}function Y(_0x3073b9,_0x28bbc3,_0x4ce9e3){const _0x3cb209=_0x166382;return _0x3073b9==null&&_0x28bbc3==null?0x0:_0x3073b9==null?-0x1:_0x28bbc3==null?0x1:typeof _0x3073b9=='number'&&typeof _0x28bbc3==_0x3cb209(0x1c1)?_0x3073b9-_0x28bbc3:_0x4ce9e3===_0x7a8503[_0x3cb209(0x160)]?Number(_0x3073b9)-Number(_0x28bbc3):String(_0x3073b9)['localeCompare'](String(_0x28bbc3));}function _0x3df4(){const _0x43487a=['[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','warn','addRecords','getFilter','conditions','BaseFieldKeyEnum','delete','_initialize','deepClone','table','rows','fieldId','BeforeBaseTableCellValueChange','fieldSettings','29265AzdvEn','fireEvent','hidden','6RzTIen','getType','params','clear','Formula','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','[FRecord]:\x20record\x20\x22','field','decorate','46226xSXKVb','getBaseId','_resourceLoaderService','now','fieldIds','from','56jftNWW','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','limit','indexOf','setName','getName','createBase','updatedAt','operator','setFilter','BaseTableFieldCreated','BeforeBaseTableRecordCreate','9aiVRMB','getDescription','_base','notMatches','BaseFilterOperator','BeforeBaseTableViewCreate','fields','Date','find','_getTable','slice','message','getConfig','191625pnTCLQ','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','values','setFieldWidth','_writeFormulaExternalReferences','getBase','visibleCardFieldIds','Kanban','BaseTableCellValueChanged','getFields','viewOrder','getSchema','map','cancel','getDefaultValue','string','setValues','_range','getPrimaryField','length','_injector','View\x20type\x20is\x20required','tableOrder','getTable','_viewId','setAttachments','Auto','Name','syncExecuteCommand','localeCompare','insertTable','isArray','Calendar','_tableId','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','getUnitId','BaseSortDirection','group','extend','endRow','\x20Copy','auto','getRecords','getPrimaryFieldId','flatMap','Failed\x20to\x20duplicate\x20table\x20\x22','value','saveUnit','getTables','getView','_initBaseAfterEvents','BaseFilterConjunction','getGroup','getCurrentUnitOfType','setValue','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','BaseTableRecordCreated','_fieldId','views','getTableByName','addRecord','getFieldByName','Gantt','BaseTableCreated','entries','startRow','hasOwnProperty','disposeWithMe','tables','duplicateTable','getNumColumns','Duplicate\x20Base\x20field\x20name:\x20','max','[FView]:\x20view\x20\x22','prototype','addField','invalid','Event','Gallery','getNumRows','regenerateViewIds','10081nUJelE','fieldOrder','[FBaseRange]:\x20values\x20size\x20','deleteTable','update','some','type','filter','getAllUnitsForType','UNIVER_BASE','number','\x22\x20does\x20not\x20exist.','caseSensitive','setOrderKey','forEach','get','primaryFieldId','every','getColumn','direction','registerEventHandler','getUnit','Failed\x20to\x20delete\x20table\x20\x22','_table','endColumn','_getView','\x20exceeds\x20range\x20size\x20',',\x20max\x20columns:\x20','BaseTableViewCreated','_inject','primaryFieldName','object','name','BeforeBaseTableCreate','getActiveBase','viewId','getViewById','records','getRecordById','offset','includeRecords','getRange','getSnapshot','externalReferences','updateConfig','getFieldSettings','beforeCommandExecuted','getFieldById','readonly','getValue','getId','stringify','setDefaultValue','AND','push','setFieldVisible','setSort',',\x20range:\x20','getRow','startColumn','getViews','1148035CGWcab','orderKey','createInstance','getTableById','getRecord','defaultValue','getSort','config','recordOrder','BeforeBaseTableFieldCreate','_resolveRecordIds','createView','queryRecords','view','duplicate','Failed\x20to\x20create\x20table\x20\x22','Base\x20field\x20not\x20found:\x20','getProjection','getViewByName','changeType','_initBaseBeforeEvents','description','813792lezUXN','[FBaseRange]:\x20table\x20does\x20not\x20exist.','rowId','record','getValues','isReadonly','2602370HSOKwB','_recordId','_getRecord','[FField]:\x20field\x20\x22','getField','_getField','BaseViewType','setGroup','sort','matches','getBases','onCommandExecuted','_assertInBounds','DESC','createdAt','index','move','BaseFieldType'];_0x3df4=function(){return _0x43487a;};return _0x3df4();}function he(_0x54c31c,_0xf4a236,_0x2c117){const _0x44490f=_0x166382;var _0x5c5d0a;if(!_0x2c117||!((_0x5c5d0a=_0x2c117[_0x44490f(0x226)])!=null&&_0x5c5d0a[_0x44490f(0x179)]))return!0x0;let {conjunction:_0x15c44e=_0x3015f0['OR'],conditions:_0x25ef8f}=_0x2c117;return _0x15c44e===_0x3015f0[_0x44490f(0x1ec)]&&_0x25ef8f[_0x44490f(0x179)]>0x1?_0x25ef8f[_0x44490f(0x1c8)](_0x4ba7ea=>X(_0x54c31c,_0xf4a236,_0x4ba7ea)):_0x25ef8f[_0x44490f(0x1bc)](_0xd1b8b9=>X(_0x54c31c,_0xf4a236,_0xd1b8b9));}function X(_0x547ad6,_0xb07039,_0x1678a2){const _0x58a660=_0x166382;let _0x813e63=_0x547ad6[_0x58a660(0x168)][_0x1678a2[_0x58a660(0x22d)]],_0xd53fab=_0xb07039['fields'][_0x1678a2[_0x58a660(0x22d)]];if(ge(_0x1678a2)){let _0x802e01=_e(_0x1678a2)['test'](String(_0x813e63==null?'':_0x813e63));return _0x1678a2[_0x58a660(0x155)]===_0x58a660(0x219)?_0x802e01:!_0x802e01;}return!_0xd53fab||_0x40c801(_0x813e63,_0x1678a2['operator'],_0x1678a2[_0x58a660(0x194)],_0xd53fab);}function _0x4e8a(_0x4b1937,_0xef00ff){_0x4b1937=_0x4b1937-0x13b;const _0x3df467=_0x3df4();let _0x4e8a03=_0x3df467[_0x4b1937];return _0x4e8a03;}function ge(_0x309812){const _0x1db9ac=_0x166382;return _0x309812[_0x1db9ac(0x155)]===_0x1db9ac(0x219)||_0x309812[_0x1db9ac(0x155)]===_0x1db9ac(0x15c);}function _e(_0x786e2b){const _0x2e3f81=_0x166382;var _0x126598;let _0x2d8b36=String((_0x126598=_0x786e2b[_0x2e3f81(0x194)])==null?'':_0x126598);if(_0x2d8b36[_0x2e3f81(0x179)]>0x200)throw Error(_0x2e3f81(0x188));try{return new RegExp(_0x2d8b36,_0x786e2b[_0x2e3f81(0x1c3)]?void 0x0:'i');}catch(_0x515e2c){throw Error('Invalid\x20Base\x20regex\x20filter:\x20'+_0x2d8b36+'.\x20'+(_0x515e2c instanceof Error?_0x515e2c[_0x2e3f81(0x164)]:String(_0x515e2c)));}}function ve(_0x3e1932,_0x218e68,_0x557620){const _0x237b1f=_0x166382;if(_0x557620['type']!==_0x237b1f(0x1b2)){var _0x1ccefc;if(_0x557620[_0x237b1f(0x1bd)]===_0x4f3b2f[_0x237b1f(0x16d)]){var _0x1c8d9d,_0x39db6c,_0x173476;let _0x374615=[(_0x1c8d9d=(_0x39db6c=_0x557620[_0x237b1f(0x15f)])==null||(_0x39db6c=_0x39db6c[0x0])==null?void 0x0:_0x39db6c['id'])==null?_0x3e1932[_0x237b1f(0x1c7)]:_0x1c8d9d,...(_0x173476=_0x557620[_0x237b1f(0x16c)])==null?[]:_0x173476];return Array[_0x237b1f(0x14c)](new Set(_0x374615[_0x237b1f(0x1be)](_0x124a2e=>!!_0x3e1932[_0x237b1f(0x15f)][_0x124a2e])));}if((_0x1ccefc=_0x557620['fields'])!=null&&_0x1ccefc[_0x237b1f(0x179)])return _0x557620[_0x237b1f(0x15f)][_0x237b1f(0x172)](_0x2f72a8=>_0x2f72a8['id'])[_0x237b1f(0x1be)](_0x5df5e0=>{const _0x1851b8=_0x237b1f;var _0x45644c;return!!(_0x3e1932[_0x1851b8(0x15f)][_0x5df5e0]&&!(_0x218e68!=null&&(_0x45644c=_0x218e68[_0x1851b8(0x22f)])!=null&&(_0x45644c=_0x45644c[_0x5df5e0])!=null&&_0x45644c[_0x1851b8(0x13d)]));});}return _0x3e1932[_0x237b1f(0x1b8)][_0x237b1f(0x1be)](_0x149b80=>{const _0x31a693=_0x237b1f;var _0x22daf0;return!!(_0x3e1932[_0x31a693(0x15f)][_0x149b80]&&!(_0x218e68!=null&&(_0x22daf0=_0x218e68['fieldSettings'])!=null&&(_0x22daf0=_0x22daf0[_0x149b80])!=null&&_0x22daf0['hidden']));});}function Z(_0x409e95,_0x138f6e){return function(_0x424f66,_0x2a5483){_0x138f6e(_0x424f66,_0x2a5483,_0x409e95);};}function ye(_0x664505,_0x1e07f2,_0x5ab0e0,_0x9ad739){const _0x394e27=_0x166382;var _0x425185=arguments[_0x394e27(0x179)],_0x38265e=_0x425185<0x3?_0x1e07f2:_0x9ad739===null?_0x9ad739=Object['getOwnPropertyDescriptor'](_0x1e07f2,_0x5ab0e0):_0x9ad739,_0x10eb3a;if(typeof Reflect==_0x394e27(0x1d6)&&typeof Reflect[_0x394e27(0x146)]=='function')_0x38265e=Reflect['decorate'](_0x664505,_0x1e07f2,_0x5ab0e0,_0x9ad739);else{for(var _0x12af86=_0x664505[_0x394e27(0x179)]-0x1;_0x12af86>=0x0;_0x12af86--)(_0x10eb3a=_0x664505[_0x12af86])&&(_0x38265e=(_0x425185<0x3?_0x10eb3a(_0x38265e):_0x425185>0x3?_0x10eb3a(_0x1e07f2,_0x5ab0e0,_0x38265e):_0x10eb3a(_0x1e07f2,_0x5ab0e0))||_0x38265e);}return _0x425185>0x3&&_0x38265e&&Object['defineProperty'](_0x1e07f2,_0x5ab0e0,_0x38265e),_0x38265e;}let Q=class{constructor(_0x374bdb,_0x4a5c32,_0x24d0d0){const _0x18f709=_0x166382;this[_0x18f709(0x15b)]=_0x374bdb,this[_0x18f709(0x17a)]=_0x4a5c32,this[_0x18f709(0x149)]=_0x24d0d0;}[_0x166382(0x16b)](){const _0x24cbdc=_0x166382;return this[_0x24cbdc(0x15b)];}['getId'](){const _0x26dd20=_0x166382;return this['_base'][_0x26dd20(0x189)]();}['save'](){const _0x4bed67=_0x166382;var _0x165c93;return(_0x165c93=this[_0x4bed67(0x149)][_0x4bed67(0x195)](this[_0x4bed67(0x1e9)]()))==null?_0x1b13df[_0x4bed67(0x22a)](this['_base'][_0x4bed67(0x1e1)]()):_0x165c93;}['getName'](){const _0x904193=_0x166382;return this['_base'][_0x904193(0x1e1)]()[_0x904193(0x1d7)];}[_0x166382(0x151)](_0x464569){const _0x379668=_0x166382;this[_0x379668(0x17a)][_0x379668(0x1c6)](_0x1f43ec)[_0x379668(0x182)](_0x1e5b21['id'],{'unitId':this['getId'](),'name':_0x464569});}[_0x166382(0x196)](){const _0x2fdc0a=_0x166382;let _0x1c4cc7=this[_0x2fdc0a(0x15b)][_0x2fdc0a(0x1e1)]();return _0x1c4cc7['tableOrder'][_0x2fdc0a(0x172)](_0x556131=>_0x1c4cc7[_0x2fdc0a(0x1aa)][_0x556131])[_0x2fdc0a(0x1be)](_0x2ae733=>_0x2ae733)[_0x2fdc0a(0x172)](_0x1471ba=>this[_0x2fdc0a(0x17a)][_0x2fdc0a(0x1f6)](J,this,_0x1471ba['id'],this[_0x2fdc0a(0x17a)]));}[_0x166382(0x1f7)](_0x2608a0){const _0x1db959=_0x166382;let _0xfc159d=this[_0x1db959(0x15b)][_0x1db959(0x1e1)]()[_0x1db959(0x1aa)][_0x2608a0];return _0xfc159d?this[_0x1db959(0x17a)][_0x1db959(0x1f6)](J,this,_0xfc159d['id'],this[_0x1db959(0x17a)]):null;}[_0x166382(0x1a1)](_0x1cb5da){const _0xe40ebe=_0x166382;let _0x32366a=this[_0xe40ebe(0x15b)][_0xe40ebe(0x1e1)](),_0xb20125=Object[_0xe40ebe(0x168)](_0x32366a['tables'])[_0xe40ebe(0x161)](_0xd528d4=>_0xd528d4[_0xe40ebe(0x1d7)]===_0x1cb5da);return _0xb20125?this['_injector'][_0xe40ebe(0x1f6)](J,this,_0xb20125['id'],this[_0xe40ebe(0x17a)]):null;}[_0x166382(0x184)](_0x47fb68,_0x5539b3){const _0x2ba103=_0x166382;var _0x840a22;let _0x2956f4=this['_injector'][_0x2ba103(0x1c6)](_0x1f43ec),_0x58f883=_0x3f58f9({'id':_0x2decce(),'name':_0x47fb68,..._0x5539b3==null?void 0x0:_0x5539b3[_0x2ba103(0x22b)],'primaryFieldName':_0x5539b3==null?void 0x0:_0x5539b3[_0x2ba103(0x1d5)]}),_0xc20b4a=_0x1b13df['commonExtend'](_0x58f883,(_0x840a22=_0x5539b3==null?void 0x0:_0x5539b3[_0x2ba103(0x22b)])==null?{}:_0x840a22);if(!_0x2956f4['syncExecuteCommand'](_0x4ae76d['id'],{'unitId':this['_base'][_0x2ba103(0x189)](),'table':_0xc20b4a,'index':_0x5539b3==null?void 0x0:_0x5539b3[_0x2ba103(0x21f)]}))throw Error(_0x2ba103(0x203)+_0x47fb68+'\x22.');return this[_0x2ba103(0x17a)]['createInstance'](J,this,_0xc20b4a['id'],this[_0x2ba103(0x17a)]);}[_0x166382(0x1ba)](_0x29aaa3){const _0xbbd388=_0x166382;let _0x5829ae=this[_0xbbd388(0x17a)][_0xbbd388(0x1c6)](_0x1f43ec),_0x9724c7=typeof _0x29aaa3==_0xbbd388(0x175)?_0x29aaa3:_0x29aaa3[_0xbbd388(0x1e9)]();if(!_0x5829ae['syncExecuteCommand'](_0x365fcc['id'],{'unitId':this['_base'][_0xbbd388(0x189)](),'tableId':_0x9724c7}))throw Error(_0xbbd388(0x1cd)+_0x9724c7+'\x22.');return!0x0;}[_0x166382(0x1ab)](_0x2d7008,_0x4410be){const _0x3eeb70=_0x166382;var _0x4ad657,_0x2586fb;let _0x573abe=this[_0x3eeb70(0x17a)]['get'](_0x1f43ec),_0x2b6174=this[_0x3eeb70(0x15b)][_0x3eeb70(0x1e1)](),_0xe27439=typeof _0x2d7008==_0x3eeb70(0x175)?_0x2d7008:_0x2d7008[_0x3eeb70(0x1e9)](),_0x1e8bda=_0x2b6174[_0x3eeb70(0x1aa)][_0xe27439];if(!_0x1e8bda)throw Error('[FBase]:\x20table\x20\x22'+_0xe27439+_0x3eeb70(0x1c2));let _0x27feff=_0x2b6174[_0x3eeb70(0x17c)][_0x3eeb70(0x150)](_0xe27439)+0x1,_0x11111a=_0x457395(_0x1e8bda,{'id':_0x2decce(),'name':_0x1e8bda['name']+_0x3eeb70(0x18e),'includeRecords':(_0x4ad657=_0x4410be==null?void 0x0:_0x4410be[_0x3eeb70(0x1df)])!=null&&_0x4ad657,'regenerateViewIds':(_0x2586fb=_0x4410be==null?void 0x0:_0x4410be[_0x3eeb70(0x1b6)])!=null&&_0x2586fb});if(!_0x573abe[_0x3eeb70(0x182)](_0x4ae76d['id'],{'unitId':this['_base']['getUnitId'](),'table':_0x11111a,'index':_0x27feff}))throw Error(_0x3eeb70(0x193)+_0xe27439+'\x22.');return this[_0x3eeb70(0x17a)][_0x3eeb70(0x1f6)](J,this,_0x11111a['id'],this[_0x3eeb70(0x17a)]);}[_0x166382(0x171)](){const _0x2943e6=_0x166382;let _0x1f7602=this['_base'][_0x2943e6(0x1e1)]();return{'id':_0x1f7602['id'],'name':_0x1f7602[_0x2943e6(0x1d7)],'tables':this[_0x2943e6(0x196)]()['map'](_0x36f466=>_0x36f466[_0x2943e6(0x171)]())};}};Q=ye([Z(0x1,_0x165bb0(_0x5a7aee)),Z(0x2,_0x10705f)],Q);var be=class extends _0x91489c{[_0x166382(0x229)](){const _0x2a1394=_0x166382;this[_0x2a1394(0x208)](),this[_0x2a1394(0x198)]();}[_0x166382(0x153)](_0x696291={},_0xad997a){const _0x80736c=_0x166382;let _0xad92a=this[_0x80736c(0x17a)][_0x80736c(0x1c6)](_0x2d4867)['createUnit'](_0x7905cc[_0x80736c(0x1c0)],_0x696291,_0xad997a);return this['_injector'][_0x80736c(0x1f6)](Q,_0xad92a);}[_0x166382(0x1d9)](){const _0x16d2e1=_0x166382;let _0x23cb5b=this['_injector'][_0x16d2e1(0x1c6)](_0x2d4867)[_0x16d2e1(0x19b)](_0x7905cc['UNIVER_BASE']);return _0x23cb5b?this[_0x16d2e1(0x17a)][_0x16d2e1(0x1f6)](Q,_0x23cb5b):null;}[_0x166382(0x16b)](_0x2e4a9e){const _0x50e40f=_0x166382;let _0xb9c24e=this[_0x50e40f(0x17a)]['get'](_0x2d4867)[_0x50e40f(0x1cc)](_0x2e4a9e,_0x7905cc[_0x50e40f(0x1c0)]);return _0xb9c24e?this['_injector'][_0x50e40f(0x1f6)](Q,_0xb9c24e):null;}[_0x166382(0x21a)](){const _0x2ef7e6=_0x166382;return this[_0x2ef7e6(0x17a)][_0x2ef7e6(0x1c6)](_0x2d4867)[_0x2ef7e6(0x1bf)](_0x7905cc['UNIVER_BASE'])[_0x2ef7e6(0x172)](_0x52bee8=>this[_0x2ef7e6(0x17a)][_0x2ef7e6(0x1f6)](Q,_0x52bee8));}[_0x166382(0x198)](){const _0x2d2171=_0x166382;let _0x20c6f3=this[_0x2d2171(0x17a)][_0x2d2171(0x1c6)](_0x1f43ec);this['disposeWithMe'](this['registerEventHandler'](this[_0x2d2171(0x1b3)][_0x2d2171(0x1a5)],()=>_0x20c6f3[_0x2d2171(0x21b)](_0x556d98=>{const _0x114dc1=_0x2d2171;if(_0x556d98['id']!==_0x4ae76d['id'])return;let {unitId:_0x1ea8e6,table:_0x411b5c,index:_0x509d89}=_0x556d98[_0x114dc1(0x140)],_0x19e5fd=this[_0x114dc1(0x16b)](_0x1ea8e6);if(!_0x19e5fd)return;let _0x29efd8={'base':_0x19e5fd,'table':_0x411b5c,'index':_0x509d89};this[_0x114dc1(0x13c)](this['Event']['BaseTableCreated'],_0x29efd8);}))),this[_0x2d2171(0x1a9)](this['registerEventHandler'](this[_0x2d2171(0x1b3)][_0x2d2171(0x157)],()=>_0x20c6f3[_0x2d2171(0x21b)](_0x1babf4=>{const _0x39b0c8=_0x2d2171;if(_0x1babf4['id']!==_0x12c685['id'])return;let {unitId:_0x241cf7,tableId:_0x26f2fc,field:_0x3d5f4d,index:_0x3f71cd,viewIndexes:_0x247391}=_0x1babf4[_0x39b0c8(0x140)],_0x558b17=this[_0x39b0c8(0x16b)](_0x241cf7);if(!_0x558b17)return;let _0x2f2805=_0x558b17['getTableById'](_0x26f2fc);if(!_0x2f2805)return;let _0x2b5d84={'base':_0x558b17,'table':_0x2f2805,'field':_0x3d5f4d,'index':_0x3f71cd,'viewIndexes':_0x247391};this[_0x39b0c8(0x13c)](this[_0x39b0c8(0x1b3)][_0x39b0c8(0x157)],_0x2b5d84);}))),this[_0x2d2171(0x1a9)](this['registerEventHandler'](this[_0x2d2171(0x1b3)]['BaseTableRecordCreated'],()=>_0x20c6f3[_0x2d2171(0x21b)](_0x2aa9d9=>{const _0x57b880=_0x2d2171;var _0x2a0f6a;if(_0x2aa9d9['id']!==_0x5d2235['id']&&_0x2aa9d9['id']!==_0x328b9a['id'])return;let _0x2c3596=_0x2aa9d9[_0x57b880(0x140)],{unitId:_0x21bf74,tableId:_0x5b4c6d}=_0x2c3596,_0x539142=(_0x2a0f6a=_0x2c3596[_0x57b880(0x1dc)])==null?[_0x2c3596[_0x57b880(0x20d)]]:_0x2a0f6a,_0x3d2c58=this[_0x57b880(0x16b)](_0x21bf74);if(!_0x3d2c58)return;let _0x40ff74=_0x3d2c58[_0x57b880(0x1f7)](_0x5b4c6d);if(!_0x40ff74)return;let _0x52fc1e={'base':_0x3d2c58,'table':_0x40ff74,'records':_0x539142};this[_0x57b880(0x13c)](this[_0x57b880(0x1b3)][_0x57b880(0x19e)],_0x52fc1e);}))),this[_0x2d2171(0x1a9)](this[_0x2d2171(0x1cb)](this[_0x2d2171(0x1b3)][_0x2d2171(0x1d3)],()=>_0x20c6f3['onCommandExecuted'](_0x2fd9dc=>{const _0x27ecf7=_0x2d2171;if(_0x2fd9dc['id']!==_0x44a3b0['id'])return;let {unitId:_0x3a2ca5,tableId:_0x395dac,view:_0x4a1c00,index:_0x3f46d3}=_0x2fd9dc[_0x27ecf7(0x140)],_0x5cc447=this[_0x27ecf7(0x16b)](_0x3a2ca5);if(!_0x5cc447)return;let _0x1f0d0e=_0x5cc447[_0x27ecf7(0x1f7)](_0x395dac);if(!_0x1f0d0e)return;let _0x808c4b={'base':_0x5cc447,'table':_0x1f0d0e,'view':_0x4a1c00,'index':_0x3f46d3};this['fireEvent'](this[_0x27ecf7(0x1b3)][_0x27ecf7(0x1d3)],_0x808c4b);}))),this[_0x2d2171(0x1a9)](this['registerEventHandler'](this[_0x2d2171(0x1b3)][_0x2d2171(0x16e)],()=>_0x20c6f3[_0x2d2171(0x21b)](_0x26ad6e=>{const _0x518fdc=_0x2d2171;if(_0x26ad6e['id']!==_0x5946f1['id'])return;let {unitId:_0x5acad8,tableId:_0x51ad84,recordId:_0x59f6b2,fieldId:_0x579914,value:_0x839738}=_0x26ad6e[_0x518fdc(0x140)],_0x558e70=this[_0x518fdc(0x16b)](_0x5acad8);if(!_0x558e70)return;let _0x4368e1=_0x558e70[_0x518fdc(0x1f7)](_0x51ad84);if(!_0x4368e1)return;let _0x39ad40=_0x4368e1[_0x518fdc(0x1e6)](_0x579914);if(!_0x39ad40)return;let _0x5b3ee8=_0x4368e1['getRecordById'](_0x59f6b2);if(!_0x5b3ee8)return;let _0x34b702={'base':_0x558e70,'table':_0x4368e1,'field':_0x39ad40,'record':_0x5b3ee8,'value':_0x839738};this['fireEvent'](this['Event']['BaseTableCellValueChanged'],_0x34b702);})));}[_0x166382(0x208)](){const _0x3a94c3=_0x166382;let _0x18c452=this[_0x3a94c3(0x17a)][_0x3a94c3(0x1c6)](_0x1f43ec);this[_0x3a94c3(0x1a9)](this[_0x3a94c3(0x1cb)](this[_0x3a94c3(0x1b3)][_0x3a94c3(0x1d8)],()=>_0x18c452['beforeCommandExecuted'](_0x246b9b=>{const _0x48c169=_0x3a94c3;if(_0x246b9b['id']!==_0x4ae76d['id'])return;let {unitId:_0x45cb46,table:_0x3d1b4c,index:_0x22d45e}=_0x246b9b['params'],_0x26fd81=this[_0x48c169(0x16b)](_0x45cb46);if(!_0x26fd81)return;let _0x7a4619={'base':_0x26fd81,'table':_0x3d1b4c,'index':_0x22d45e};if(this['fireEvent'](this['Event']['BeforeBaseTableCreate'],_0x7a4619),_0x7a4619[_0x48c169(0x173)])throw new _0x1dc41b();}))),this['disposeWithMe'](this[_0x3a94c3(0x1cb)](this[_0x3a94c3(0x1b3)][_0x3a94c3(0x1fd)],()=>_0x18c452[_0x3a94c3(0x1e5)](_0x10a0c5=>{const _0x809d9=_0x3a94c3;if(_0x10a0c5['id']!==_0x12c685['id'])return;let {unitId:_0x151b01,tableId:_0xcd21f8,field:_0x3a6dc0,index:_0x5bbed1,viewIndexes:_0x2ea2d0}=_0x10a0c5['params'],_0xb1f38f=this[_0x809d9(0x16b)](_0x151b01);if(!_0xb1f38f)return;let _0x12a1bc=_0xb1f38f[_0x809d9(0x1f7)](_0xcd21f8);if(!_0x12a1bc)return;let _0x326e79={'base':_0xb1f38f,'table':_0x12a1bc,'field':_0x3a6dc0,'index':_0x5bbed1,'viewIndexes':_0x2ea2d0};if(this[_0x809d9(0x13c)](this[_0x809d9(0x1b3)][_0x809d9(0x1fd)],_0x326e79),_0x326e79[_0x809d9(0x173)])throw new _0x1dc41b();}))),this[_0x3a94c3(0x1a9)](this['registerEventHandler'](this[_0x3a94c3(0x1b3)][_0x3a94c3(0x158)],()=>_0x18c452[_0x3a94c3(0x1e5)](_0x4765c3=>{const _0x5aab2f=_0x3a94c3;var _0x16bf0a;if(_0x4765c3['id']!==_0x5d2235['id']&&_0x4765c3['id']!==_0x328b9a['id'])return;let _0x18eca6=_0x4765c3[_0x5aab2f(0x140)],{unitId:_0x750c8,tableId:_0x18066d}=_0x18eca6,_0x33af1b=(_0x16bf0a=_0x18eca6['records'])==null?[_0x18eca6[_0x5aab2f(0x20d)]]:_0x16bf0a,_0x2baa59=this[_0x5aab2f(0x16b)](_0x750c8);if(!_0x2baa59)return;let _0x205cf6=_0x2baa59[_0x5aab2f(0x1f7)](_0x18066d);if(!_0x205cf6)return;let _0x1c7d7c={'base':_0x2baa59,'table':_0x205cf6,'records':_0x33af1b};if(this[_0x5aab2f(0x13c)](this['Event'][_0x5aab2f(0x158)],_0x1c7d7c),_0x1c7d7c[_0x5aab2f(0x173)])throw new _0x1dc41b();}))),this[_0x3a94c3(0x1a9)](this[_0x3a94c3(0x1cb)](this[_0x3a94c3(0x1b3)][_0x3a94c3(0x15e)],()=>_0x18c452[_0x3a94c3(0x1e5)](_0x1921ba=>{const _0x56ba52=_0x3a94c3;if(_0x1921ba['id']!==_0x44a3b0['id'])return;let {unitId:_0x318948,tableId:_0x352d6a,view:_0xcdcbe0,index:_0x493627}=_0x1921ba[_0x56ba52(0x140)],_0x53856e=this[_0x56ba52(0x16b)](_0x318948);if(!_0x53856e)return;let _0x5114f2=_0x53856e[_0x56ba52(0x1f7)](_0x352d6a);if(!_0x5114f2)return;let _0x1caea3={'base':_0x53856e,'table':_0x5114f2,'view':_0xcdcbe0,'index':_0x493627};if(this[_0x56ba52(0x13c)](this[_0x56ba52(0x1b3)][_0x56ba52(0x15e)],_0x1caea3),_0x1caea3['cancel'])throw new _0x1dc41b();}))),this[_0x3a94c3(0x1a9)](this[_0x3a94c3(0x1cb)](this[_0x3a94c3(0x1b3)][_0x3a94c3(0x22e)],()=>_0x18c452[_0x3a94c3(0x1e5)](_0x1022b1=>{const _0x39fcf1=_0x3a94c3;if(_0x1022b1['id']!==_0x5946f1['id'])return;let {unitId:_0x184897,tableId:_0x2ab433,recordId:_0xe45cc0,fieldId:_0x5dc223,value:_0x1f9515}=_0x1022b1[_0x39fcf1(0x140)],_0x61a3df=this['getBase'](_0x184897);if(!_0x61a3df)return;let _0x40ffc9=_0x61a3df[_0x39fcf1(0x1f7)](_0x2ab433);if(!_0x40ffc9)return;let _0x4f1367=_0x40ffc9[_0x39fcf1(0x1e6)](_0x5dc223);if(!_0x4f1367)return;let _0x596585=_0x40ffc9['getRecordById'](_0xe45cc0);if(!_0x596585)return;let _0x418f7d={'base':_0x61a3df,'table':_0x40ffc9,'field':_0x4f1367,'record':_0x596585,'value':_0x1f9515};if(this['fireEvent'](this[_0x39fcf1(0x1b3)][_0x39fcf1(0x22e)],_0x418f7d),_0x418f7d['cancel'])throw new _0x1dc41b();})));}};_0x91489c['extend'](be);var xe=class extends _0x21fd9b{get[_0x166382(0x221)](){return _0x7a8503;}get[_0x166382(0x199)](){return _0x3015f0;}get[_0x166382(0x15d)](){return _0x279e7b;}get[_0x166382(0x227)](){return U;}get[_0x166382(0x216)](){return _0x4f3b2f;}get[_0x166382(0x18a)](){return _0x46203c;}};_0x21fd9b[_0x166382(0x18c)](xe);var $=class extends _0x1edd02{get[_0x166382(0x1a5)](){const _0x218ab8=_0x166382;return _0x218ab8(0x1a5);}get['BeforeBaseTableCreate'](){const _0xb2973b=_0x166382;return _0xb2973b(0x1d8);}get[_0x166382(0x157)](){const _0x1e5ce2=_0x166382;return _0x1e5ce2(0x157);}get[_0x166382(0x1fd)](){const _0x1e482c=_0x166382;return _0x1e482c(0x1fd);}get[_0x166382(0x19e)](){const _0x2060d3=_0x166382;return _0x2060d3(0x19e);}get[_0x166382(0x158)](){const _0x55988b=_0x166382;return _0x55988b(0x158);}get[_0x166382(0x1d3)](){const _0x7c4dd3=_0x166382;return _0x7c4dd3(0x1d3);}get[_0x166382(0x15e)](){const _0x337d1b=_0x166382;return _0x337d1b(0x15e);}get['BaseTableCellValueChanged'](){return'BaseTableCellValueChanged';}get[_0x166382(0x22e)](){return'BeforeBaseTableCellValueChange';}};_0x1edd02['extend']($);export{U as BaseFieldKeyEnum,Q as FBase,J as FBaseTable,V as FBaseTableField,H as FBaseTableRange,K as FBaseTableRecord,q as FBaseTableView,$ as FBasesEventNameMixin,G as resolveBaseFieldKey,W as resolveBaseFieldValues};