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

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 (85) 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/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +6 -6
@@ -1 +1 @@
1
- const _0x376668=_0x10f5;(function(_0x930897,_0x30ffdf){const _0x14348d=_0x10f5,_0x36bbb0=_0x930897();while(!![]){try{const _0x3cfdb2=parseInt(_0x14348d(0x19d))/0x1*(-parseInt(_0x14348d(0x18d))/0x2)+-parseInt(_0x14348d(0x187))/0x3+-parseInt(_0x14348d(0x18f))/0x4+-parseInt(_0x14348d(0x18c))/0x5*(-parseInt(_0x14348d(0x196))/0x6)+parseInt(_0x14348d(0x18e))/0x7*(-parseInt(_0x14348d(0x18a))/0x8)+-parseInt(_0x14348d(0x195))/0x9*(parseInt(_0x14348d(0x184))/0xa)+parseInt(_0x14348d(0x19a))/0xb*(parseInt(_0x14348d(0x183))/0xc);if(_0x3cfdb2===_0x30ffdf)break;else _0x36bbb0['push'](_0x36bbb0['shift']());}catch(_0x383612){_0x36bbb0['push'](_0x36bbb0['shift']());}}}(_0xf1bd,0xe3fc8));function _0xf1bd(){const _0x1cdb30=['創建人','刪除字段','更新時間','記錄\x20ID','74226876OQFkoO','8780XNtFnv','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','電話號碼','5591727YByfhg','日曆需要日期字段','單元格值無效','1088jUsnaS','雙向關聯','600170DenMfK','2BtjZUr','37163lDfOIP','3446380YpvNzh','刪除記錄','複選框','字段類型無效','創建字段','輸入內容','15651ZxrjCK','42UHcObp','更新視圖設置','更新單元格','創建時間','11lAUjZG','修改人','看板需要可分組字段','1117609puNKPB'];_0xf1bd=function(){return _0x1cdb30;};return _0xf1bd();}function _0x10f5(_0xc4c147,_0x518b77){_0xc4c147=_0xc4c147-0x183;const _0xf1bdd8=_0xf1bd();let _0x10f583=_0xf1bdd8[_0xc4c147];return _0x10f583;}const e={'bases':{'fieldType':{'text':'文本','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x376668(0x191),'link':'鏈接','formula':'公式','lookup':'查找','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x376668(0x186),'email':'郵箱','location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','twoWayLink':_0x376668(0x18b),'recordId':_0x376668(0x1a1),'createdBy':_0x376668(0x19e),'updatedBy':_0x376668(0x19b),'createdAt':_0x376668(0x199),'updatedAt':_0x376668(0x1a0),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x376668(0x194),'linkPlaceholder':_0x376668(0x185)},'viewType':{'grid':'表格','kanban':'看板','calendar':'日曆','gantt':'甘特','gallery':'畫廊'},'error':{'fieldNameRequired':'字段標題不能為空','invalidFieldType':_0x376668(0x192),'invalidCellValue':_0x376668(0x189),'invalidKanbanGroupField':_0x376668(0x19c),'invalidCalendarDateField':_0x376668(0x188),'invalidGanttDateField':'甘特視圖需要開始和結束日期字段'},'command':{'updateCell':_0x376668(0x198),'createField':_0x376668(0x193),'deleteField':_0x376668(0x19f),'createRecord':'創建記錄','deleteRecord':_0x376668(0x190),'updateViewConfig':_0x376668(0x197)}}};export{e as default};
1
+ function _0x4a3c(_0x378bf7,_0x41d6f1){_0x378bf7=_0x378bf7-0x19a;const _0x4ccae1=_0x4cca();let _0x4a3c29=_0x4ccae1[_0x378bf7];return _0x4a3c29;}const _0x4ea0bc=_0x4a3c;(function(_0x4c066e,_0x4411b5){const _0x2817df=_0x4a3c,_0x2a6f49=_0x4c066e();while(!![]){try{const _0x159042=parseInt(_0x2817df(0x1a1))/0x1+-parseInt(_0x2817df(0x1aa))/0x2*(parseInt(_0x2817df(0x1ab))/0x3)+-parseInt(_0x2817df(0x19b))/0x4+-parseInt(_0x2817df(0x1ae))/0x5+parseInt(_0x2817df(0x1b0))/0x6+-parseInt(_0x2817df(0x1b2))/0x7*(parseInt(_0x2817df(0x1a2))/0x8)+-parseInt(_0x2817df(0x1b1))/0x9*(-parseInt(_0x2817df(0x19f))/0xa);if(_0x159042===_0x4411b5)break;else _0x2a6f49['push'](_0x2a6f49['shift']());}catch(_0x35a2d6){_0x2a6f49['push'](_0x2a6f49['shift']());}}}(_0x4cca,0xf0371));const e={'bases':{'fieldType':{'text':'文本','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x4ea0bc(0x1b3),'link':'鏈接','formula':'公式','lookup':'查找','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x4ea0bc(0x19d),'email':'郵箱','location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','twoWayLink':_0x4ea0bc(0x19a),'recordId':_0x4ea0bc(0x1af),'createdBy':_0x4ea0bc(0x19e),'updatedBy':_0x4ea0bc(0x1b4),'createdAt':_0x4ea0bc(0x1a6),'updatedAt':_0x4ea0bc(0x1ac),'summary':'彙總'},'fieldConfig':{'textPlaceholder':'輸入內容','linkPlaceholder':'輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。'},'viewType':{'grid':'表格','kanban':'看板','calendar':'日曆','gantt':'甘特','gallery':'畫廊'},'error':{'fieldNameRequired':'字段標題不能為空','invalidFieldType':_0x4ea0bc(0x1a5),'invalidCellValue':_0x4ea0bc(0x1a3),'invalidKanbanGroupField':_0x4ea0bc(0x19c),'invalidCalendarDateField':_0x4ea0bc(0x1a7),'invalidGanttDateField':_0x4ea0bc(0x1a4)},'command':{'updateCell':_0x4ea0bc(0x1ad),'createField':_0x4ea0bc(0x1b5),'deleteField':_0x4ea0bc(0x1a8),'createRecord':'創建記錄','deleteRecord':_0x4ea0bc(0x1a9),'updateViewConfig':_0x4ea0bc(0x1a0)}}};function _0x4cca(){const _0x37260e=['雙向關聯','7738984UCPCCj','看板需要可分組字段','電話號碼','創建人','1480JqejVU','更新視圖設置','52305keBppn','8iZPUHE','單元格值無效','甘特視圖需要開始和結束日期字段','字段類型無效','創建時間','日曆需要日期字段','刪除字段','刪除記錄','32Wozvqv','163542ZRDeWI','更新時間','更新單元格','2466535MPUExa','記錄\x20ID','10048728aCqiWf','226062IDBtJI','8122513AKAmdR','複選框','修改人','創建字段'];_0x4cca=function(){return _0x37260e;};return _0x4cca();}export{e as default};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x14e4dd=_0x557f;(function(_0x25ff30,_0xbedc8b){const _0x4498d6=_0x557f,_0x2d50fa=_0x25ff30();while(!![]){try{const _0x100b2f=-parseInt(_0x4498d6(0x193))/0x1+-parseInt(_0x4498d6(0x156))/0x2*(-parseInt(_0x4498d6(0x147))/0x3)+parseInt(_0x4498d6(0x150))/0x4*(parseInt(_0x4498d6(0x1bc))/0x5)+-parseInt(_0x4498d6(0x208))/0x6*(-parseInt(_0x4498d6(0x162))/0x7)+parseInt(_0x4498d6(0x201))/0x8+-parseInt(_0x4498d6(0x14a))/0x9+-parseInt(_0x4498d6(0x13d))/0xa;if(_0x100b2f===_0xbedc8b)break;else _0x2d50fa['push'](_0x2d50fa['shift']());}catch(_0x1524fa){_0x2d50fa['push'](_0x2d50fa['shift']());}}}(_0x147a,0x53250));import{BatchCreateBaseRecordsCommand as _0x118e37,BatchDeleteBaseRecordsCommand as _0x263dd2,ChangeBaseFieldTypeCommand as _0x5898c0,CreateBaseFieldCommand as _0x5cc92c,CreateBaseRecordCommand as _0x3b13bf,CreateBaseTableCommand as _0x986b77,CreateBaseViewCommand as _0x2d3862,DeleteBaseFieldCommand as _0x3c6308,DeleteBaseRecordCommand as _0x3f5464,DeleteBaseTableCommand as _0x30a626,DeleteBaseViewCommand as _0x58b979,DuplicateBaseRecordCommand as _0x1bc765,IBaseProjectionService as _0xe2f5a2,MoveBaseFieldCommand as _0x27481b,MoveBaseViewCommand as _0x1c145b,RenameBaseTableCommand as _0x7ce364,RenameBaseViewCommand as _0x3da8a8,SetBaseNameCommand as _0x28caa0,SetBaseRangeValuesCommand as _0x5c887f,SetBaseRecordValuesCommand as _0x2e09ab,SetBaseViewFieldOrderCommand as _0x392572,SetBaseViewFieldVisibleCommand as _0x573f12,SetBaseViewFieldWidthCommand as _0x220e87,SetBaseViewFilterCommand as _0x218fe1,SetBaseViewGroupCommand as _0x15bccc,SetBaseViewSortCommand as _0x512206,UpdateBaseCellCommand as _0x32df63,UpdateBaseFieldCommand as _0x19ccce,UpdateBaseRecordOrderCommand as _0x7d992c,UpdateBaseViewConfigCommand as _0x374a49,copyBaseTableSnapshot as _0x46ad2d,ensureBaseTableCellLayout as _0x2c8835,getBaseCellValue as _0x522d5f,matchesBaseCondition as _0x205855,searchBaseTable as _0x5b1460}from'@univerjs-pro/bases';import{BaseFieldType as _0x3329dc,BaseFilterConjunction as _0x2cba2d,BaseFilterOperator as _0x53f6ba,BaseSortDirection as _0x3c0cc3,BaseViewType as _0x1e3dd6,CanceledError as _0x4c003e,ICommandService as _0x5abfa9,IUniverInstanceService as _0x417894,Inject as _0x275d46,Injector as _0x22fd86,Tools as _0xad0c7b,UniverInstanceType as _0x28bcd4,createDefaultBaseTableSnapshot as _0x34e4df,generateRandomId as _0x369b18}from'@univerjs/core';import{FEnum as _0x4b5977,FEventName as _0x8ad1b4,FUniver as _0xce4c3f}from'@univerjs/core/facade';var U=class{constructor(_0x4b85b2,_0x5866c,_0x37ff4c,_0x499a56){const _0x321166=_0x557f;this[_0x321166(0x196)]=_0x4b85b2,this[_0x321166(0x154)]=_0x5866c,this[_0x321166(0x15b)]=_0x37ff4c,this[_0x321166(0x211)]=_0x499a56;}[_0x14e4dd(0x202)](){const _0x4e5fc7=_0x14e4dd;return this[_0x4e5fc7(0x15b)];}[_0x14e4dd(0x16c)](){return this['_getField']();}[_0x14e4dd(0x1b2)](){const _0x5b95b7=_0x14e4dd;return this[_0x5b95b7(0x200)]()['name'];}[_0x14e4dd(0x1b6)](){const _0x490ea1=_0x14e4dd;return this['_getField']()[_0x490ea1(0x1d8)];}[_0x14e4dd(0x1e6)](){const _0x5f3c63=_0x14e4dd;return this['_getField']()[_0x5f3c63(0x176)];}[_0x14e4dd(0x1e1)](){const _0x3c5f55=_0x14e4dd;return this[_0x3c5f55(0x200)]()[_0x3c5f55(0x179)];}[_0x14e4dd(0x16a)](){const _0x589ed5=_0x14e4dd;return this[_0x589ed5(0x200)]()[_0x589ed5(0x1ef)];}['isReadonly'](){const _0x264244=_0x14e4dd;return!!this[_0x264244(0x200)]()['readonly'];}['setName'](_0x92a69b){const _0x1dc034=_0x14e4dd;return this[_0x1dc034(0x15d)]({'name':_0x92a69b});}['setConfig'](_0x2c7b09){return this['update']({'config':_0x2c7b09});}[_0x14e4dd(0x1d7)](_0x1430e1){const _0x379a4e=_0x14e4dd;return this[_0x379a4e(0x15d)]({'defaultValue':_0x1430e1});}[_0x14e4dd(0x15d)](_0x45ec2b){const _0x458b92=_0x14e4dd;return this[_0x458b92(0x211)][_0x458b92(0x1bb)](_0x5abfa9)[_0x458b92(0x1f0)](_0x19ccce['id'],{'unitId':this['_base'][_0x458b92(0x202)](),'tableId':this[_0x458b92(0x154)][_0x458b92(0x202)](),'fieldId':this[_0x458b92(0x15b)],'patch':_0x45ec2b});}[_0x14e4dd(0x18f)](_0x45d464,_0xea108f={}){const _0x1061d9=_0x14e4dd;return this[_0x1061d9(0x211)][_0x1061d9(0x1bb)](_0x5abfa9)[_0x1061d9(0x1f0)](_0x5898c0['id'],{'unitId':this[_0x1061d9(0x196)][_0x1061d9(0x202)](),'tableId':this[_0x1061d9(0x154)][_0x1061d9(0x202)](),'fieldId':this[_0x1061d9(0x15b)],'input':{'type':_0x45d464,'config':_0xea108f}});}[_0x14e4dd(0x206)](){const _0x194742=_0x14e4dd;return this[_0x194742(0x211)][_0x194742(0x1bb)](_0x5abfa9)[_0x194742(0x1f0)](_0x3c6308['id'],{'unitId':this[_0x194742(0x196)]['getId'](),'tableId':this[_0x194742(0x154)][_0x194742(0x202)](),'fieldId':this[_0x194742(0x15b)]});}[_0x14e4dd(0x172)](_0x3ff3f2){const _0x4f4cf4=_0x14e4dd;return this[_0x4f4cf4(0x211)][_0x4f4cf4(0x1bb)](_0x5abfa9)[_0x4f4cf4(0x1f0)](_0x27481b['id'],{'unitId':this[_0x4f4cf4(0x196)][_0x4f4cf4(0x202)](),'tableId':this[_0x4f4cf4(0x154)][_0x4f4cf4(0x202)](),'fieldId':this['_fieldId'],'target':_0x3ff3f2});}[_0x14e4dd(0x200)](){const _0xb9722c=_0x14e4dd;let _0x47fb8b=this['_table'][_0xb9722c(0x161)]()[_0xb9722c(0x1f3)][this[_0xb9722c(0x15b)]];if(!_0x47fb8b)throw Error('[FField]:\x20field\x20\x22'+this[_0xb9722c(0x15b)]+_0xb9722c(0x205));return _0x47fb8b;}},W=class e{constructor(_0x5c73a1,_0x3a0879,_0x14ff21,_0xa21188){const _0x4227e6=_0x14e4dd;this[_0x4227e6(0x196)]=_0x5c73a1,this['_table']=_0x3a0879,this[_0x4227e6(0x155)]=_0x14ff21,this[_0x4227e6(0x211)]=_0xa21188,this['_assertInBounds']();}[_0x14e4dd(0x207)](){const _0x1875aa=_0x14e4dd;return this[_0x1875aa(0x196)]['getId']();}[_0x14e4dd(0x1b3)](){const _0x2ba607=_0x14e4dd;return this[_0x2ba607(0x154)]['getId']();}['getRange'](){const _0x49d7a3=_0x14e4dd;return{...this[_0x49d7a3(0x155)]};}['getRow'](){const _0x5d0f0a=_0x14e4dd;return this['_range'][_0x5d0f0a(0x1cf)];}[_0x14e4dd(0x1f5)](){const _0x58249d=_0x14e4dd;return this[_0x58249d(0x155)][_0x58249d(0x1d3)];}[_0x14e4dd(0x1fc)](){const _0x114b8b=_0x14e4dd;return this['_range'][_0x114b8b(0x1c7)]-this['_range'][_0x114b8b(0x1cf)]+0x1;}[_0x14e4dd(0x1c2)](){const _0x16ecf0=_0x14e4dd;return this[_0x16ecf0(0x155)][_0x16ecf0(0x1ac)]-this[_0x16ecf0(0x155)]['startColumn']+0x1;}['getValues'](){const _0x180d17=_0x14e4dd;let _0x581eaa=this['_getTable'](),_0x587e19=[];for(let _0x33e0d8=this['_range'][_0x180d17(0x1cf)];_0x33e0d8<=this['_range']['endRow'];_0x33e0d8++){var _0x37e4f1;let _0x5f2563=(_0x37e4f1=_0x581eaa[_0x180d17(0x164)])==null?void 0x0:_0x37e4f1[_0x33e0d8],_0x244bab=[];for(let _0x572bb5=this['_range'][_0x180d17(0x1d3)];_0x572bb5<=this[_0x180d17(0x155)]['endColumn'];_0x572bb5++){var _0x399942;let _0x2d5868=(_0x399942=_0x581eaa['colId'])==null?void 0x0:_0x399942[_0x572bb5];_0x244bab[_0x180d17(0x1e2)](_0x5f2563&&_0x2d5868?_0x522d5f(_0x581eaa,_0x5f2563,_0x2d5868):null);}_0x587e19[_0x180d17(0x1e2)](_0x244bab);}return _0x587e19;}[_0x14e4dd(0x1b9)](){const _0x5dd5b4=_0x14e4dd;var _0x2c44d2,_0xfb362f;return(_0x2c44d2=(_0xfb362f=this[_0x5dd5b4(0x163)]()[0x0])==null?void 0x0:_0xfb362f[0x0])==null?null:_0x2c44d2;}[_0x14e4dd(0x1bd)](_0x8afd67){const _0x1ac92c=_0x14e4dd;return this[_0x1ac92c(0x1d4)]([[_0x8afd67]]);}[_0x14e4dd(0x1d4)](_0x4682e4){const _0x6e92a0=_0x14e4dd;let _0x1535ba=this[_0x6e92a0(0x1fc)](),_0x4ebcbd=this[_0x6e92a0(0x1c2)]();if(_0x4682e4[_0x6e92a0(0x1f4)]>_0x1535ba||_0x4682e4['some'](_0x506264=>_0x506264[_0x6e92a0(0x1f4)]>_0x4ebcbd)){var _0x1d44eb,_0x46bfc4;throw Error(_0x6e92a0(0x15e)+_0x4682e4[_0x6e92a0(0x1f4)]+'x'+((_0x1d44eb=(_0x46bfc4=_0x4682e4[0x0])==null?void 0x0:_0x46bfc4['length'])==null?0x0:_0x1d44eb)+_0x6e92a0(0x16f)+_0x1535ba+'x'+_0x4ebcbd+'.');}let _0x25f2be=this['_inject'][_0x6e92a0(0x1bb)](_0x5abfa9),_0x3f0596=_0x4682e4['flatMap']((_0x509f86,_0x4b2c12)=>_0x509f86[_0x6e92a0(0x1fa)]((_0x4e1225,_0x2b560a)=>({'row':this[_0x6e92a0(0x155)][_0x6e92a0(0x1cf)]+_0x4b2c12,'col':this[_0x6e92a0(0x155)][_0x6e92a0(0x1d3)]+_0x2b560a,'value':_0x4e1225})));return _0x25f2be[_0x6e92a0(0x1f0)](_0x5c887f['id'],{'unitId':this[_0x6e92a0(0x196)][_0x6e92a0(0x202)](),'tableId':this[_0x6e92a0(0x154)][_0x6e92a0(0x202)](),'patches':_0x3f0596});}[_0x14e4dd(0x1e4)](){const _0x2425d7=_0x14e4dd;return this[_0x2425d7(0x1d4)](Array[_0x2425d7(0x149)]({'length':this[_0x2425d7(0x1fc)]()},()=>Array[_0x2425d7(0x149)]({'length':this['getNumColumns']()},()=>null)));}[_0x14e4dd(0x178)](_0x53c745,_0x418ae5,_0x27382f=this[_0x14e4dd(0x1fc)](),_0x108383=this[_0x14e4dd(0x1c2)]()){const _0x55ff99=_0x14e4dd;return this[_0x55ff99(0x211)][_0x55ff99(0x188)](e,this['_base'],this[_0x55ff99(0x154)],{'startRow':this[_0x55ff99(0x155)][_0x55ff99(0x1cf)]+_0x53c745,'startColumn':this['_range']['startColumn']+_0x418ae5,'endRow':this['_range']['startRow']+_0x53c745+_0x27382f-0x1,'endColumn':this[_0x55ff99(0x155)][_0x55ff99(0x1d3)]+_0x418ae5+_0x108383-0x1},this[_0x55ff99(0x211)]);}[_0x14e4dd(0x18b)](){const _0x197b40=_0x14e4dd;let _0x3df4aa=this[_0x197b40(0x154)][_0x197b40(0x161)]();if(!_0x3df4aa)throw Error(_0x197b40(0x168));return _0x2c8835(_0x3df4aa);}[_0x14e4dd(0x18e)](){const _0x3356dc=_0x14e4dd;var _0x3c655b,_0x1eaca3;let _0x973d0=this[_0x3356dc(0x18b)](),_0xfd14c9=(_0x3c655b=(_0x1eaca3=_0x973d0[_0x3356dc(0x180)])==null?void 0x0:_0x1eaca3[_0x3356dc(0x1f4)])==null?0x0:_0x3c655b,_0x32061a=_0x973d0[_0x3356dc(0x1e5)][_0x3356dc(0x1f4)];if(this[_0x3356dc(0x155)][_0x3356dc(0x1cf)]<0x0||this[_0x3356dc(0x155)][_0x3356dc(0x1d3)]<0x0||this['_range']['endRow']<this[_0x3356dc(0x155)][_0x3356dc(0x1cf)]||this[_0x3356dc(0x155)]['endColumn']<this[_0x3356dc(0x155)]['startColumn']||this[_0x3356dc(0x155)][_0x3356dc(0x1c7)]>=Math[_0x3356dc(0x199)](_0xfd14c9,0x1)||this[_0x3356dc(0x155)][_0x3356dc(0x1ac)]>=Math['max'](_0x32061a,0x1))throw Error(_0x3356dc(0x1ad)+_0xfd14c9+_0x3356dc(0x159)+_0x32061a+_0x3356dc(0x1d6)+JSON['stringify'](this[_0x3356dc(0x155)])+'.');}};let G=function(_0x405b0d){const _0x593697=_0x14e4dd;return _0x405b0d['Id']='id',_0x405b0d[_0x593697(0x146)]='name',_0x405b0d[_0x593697(0x20b)]='auto',_0x405b0d;}({});function K(_0xb90ba7,_0x4fe752,_0x3199eb='id'){const _0x2e7101=_0x14e4dd;if(!_0x4fe752)return{};let _0x1141d8={};return Object[_0x2e7101(0x140)](_0x4fe752)[_0x2e7101(0x19c)](([_0x54a29c,_0x578353])=>{_0x1141d8[q(_0xb90ba7,_0x54a29c,_0x3199eb)]=_0x578353;}),_0x1141d8;}function q(_0x3cf5fe,_0x39a395,_0x3d3709){const _0x397f24=_0x14e4dd;if(_0x3d3709==='id'||_0x3d3709===_0x397f24(0x1dd)&&_0x3cf5fe['fields'][_0x39a395])return _0x39a395;let _0x3833b5=Object[_0x397f24(0x15f)](_0x3cf5fe[_0x397f24(0x1f3)])[_0x397f24(0x14f)](_0x14fb7=>_0x14fb7[_0x397f24(0x16e)]===_0x39a395);if(_0x3833b5[_0x397f24(0x1f4)]===0x1)return _0x3833b5[0x0]['id'];throw _0x3833b5[_0x397f24(0x1f4)]>0x1?Error(_0x397f24(0x1ea)+_0x39a395):Error(_0x397f24(0x1f2)+_0x39a395);}var J=class e{constructor(_0x3d91f2,_0x35976c,_0x5209f3,_0x1e7498){const _0x29ba4b=_0x14e4dd;this[_0x29ba4b(0x196)]=_0x3d91f2,this[_0x29ba4b(0x154)]=_0x35976c,this[_0x29ba4b(0x1d5)]=_0x5209f3,this['_inject']=_0x1e7498;}['getId'](){const _0xd186b2=_0x14e4dd;return this[_0xd186b2(0x1d5)];}['getRecord'](){const _0x4da0a1=_0x14e4dd;return this[_0x4da0a1(0x1ce)]();}['getValue'](_0x4dba83){const _0x5878f2=_0x14e4dd;var _0xdf7f8;return(_0xdf7f8=this['_getRecord']()[_0x5878f2(0x15f)][_0x4dba83])==null?null:_0xdf7f8;}[_0x14e4dd(0x163)](){const _0x49a775=_0x14e4dd;return{...this[_0x49a775(0x1ce)]()[_0x49a775(0x15f)]};}['setValue'](_0x36b0b0,_0x562849){const _0x4b9fe9=_0x14e4dd;return this[_0x4b9fe9(0x211)][_0x4b9fe9(0x1bb)](_0x5abfa9)['syncExecuteCommand'](_0x32df63['id'],{'unitId':this[_0x4b9fe9(0x196)][_0x4b9fe9(0x202)](),'tableId':this[_0x4b9fe9(0x154)][_0x4b9fe9(0x202)](),'recordId':this['_recordId'],'fieldId':_0x36b0b0,'value':_0x562849});}['setValues'](_0x493f97,_0x2dc5f7='id'){const _0x149179=_0x14e4dd;let _0x10ed99=this[_0x149179(0x211)][_0x149179(0x1bb)](_0x5abfa9),_0x401e08=this['_table']['getTable'](),_0x28bac0=[{'recordId':this[_0x149179(0x1d5)],'values':K(_0x401e08,_0x493f97,_0x2dc5f7)}];return _0x10ed99[_0x149179(0x1f0)](_0x2e09ab['id'],{'unitId':this[_0x149179(0x196)][_0x149179(0x202)](),'tableId':this[_0x149179(0x154)][_0x149179(0x202)](),'patches':_0x28bac0});}['delete'](){const _0x30df18=_0x14e4dd;return this[_0x30df18(0x211)][_0x30df18(0x1bb)](_0x5abfa9)[_0x30df18(0x1f0)](_0x3f5464['id'],{'unitId':this[_0x30df18(0x196)]['getId'](),'tableId':this[_0x30df18(0x154)]['getId'](),'recordId':this[_0x30df18(0x1d5)]});}[_0x14e4dd(0x19f)](_0x59ebd2){const _0x3d345b=_0x14e4dd;let _0x3dd822=this[_0x3d345b(0x211)][_0x3d345b(0x1bb)](_0x5abfa9),_0x330d60={...this[_0x3d345b(0x1ce)](),..._0x59ebd2,'id':_0x369b18(0x6)};_0x59ebd2!=null&&_0x59ebd2[_0x3d345b(0x15f)]&&(_0x330d60[_0x3d345b(0x15f)]={..._0x330d60[_0x3d345b(0x15f)],..._0x59ebd2[_0x3d345b(0x15f)]});let _0x23fe04=Date['now']();if(_0x330d60[_0x3d345b(0x1e3)]||(_0x330d60[_0x3d345b(0x1e3)]=''+_0x23fe04),_0x330d60[_0x3d345b(0x1de)]||(_0x330d60[_0x3d345b(0x1de)]=_0x23fe04),_0x330d60[_0x3d345b(0x1b1)]||(_0x330d60[_0x3d345b(0x1b1)]=_0x23fe04),!_0x3dd822[_0x3d345b(0x1f0)](_0x1bc765['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x3d345b(0x154)][_0x3d345b(0x202)](),'sourceRecordId':this[_0x3d345b(0x1d5)],'record':_0x330d60}))throw Error(_0x3d345b(0x19a)+this[_0x3d345b(0x1d5)]+'\x22.');return this['_inject']['createInstance'](e,this[_0x3d345b(0x196)],this['_table'],_0x330d60['id'],this[_0x3d345b(0x211)]);}['setOrderKey'](_0x55e6ed){const _0x128570=_0x14e4dd;return this[_0x128570(0x211)][_0x128570(0x1bb)](_0x5abfa9)[_0x128570(0x1f0)](_0x7d992c['id'],{'unitId':this[_0x128570(0x196)][_0x128570(0x202)](),'tableId':this[_0x128570(0x154)][_0x128570(0x202)](),'recordId':this[_0x128570(0x1d5)],'orderKey':_0x55e6ed});}['_getRecord'](){const _0x228900=_0x14e4dd;let _0x28aaf9=this[_0x228900(0x154)][_0x228900(0x161)]()[_0x228900(0x167)][this[_0x228900(0x1d5)]];if(!_0x28aaf9)throw Error(_0x228900(0x17d)+this[_0x228900(0x1d5)]+_0x228900(0x205));return _0x28aaf9;}},Y=class{constructor(_0x4f7d9d,_0x1df3aa,_0xd891dc,_0x49f869){const _0x1f1021=_0x14e4dd;this['_base']=_0x4f7d9d,this['_table']=_0x1df3aa,this[_0x1f1021(0x17b)]=_0xd891dc,this[_0x1f1021(0x185)]=_0x49f869;}[_0x14e4dd(0x202)](){const _0x31ddb4=_0x14e4dd;return this[_0x31ddb4(0x17b)];}[_0x14e4dd(0x14c)](){const _0x11747f=_0x14e4dd;return this[_0x11747f(0x17c)]();}[_0x14e4dd(0x1b2)](){const _0x3cc974=_0x14e4dd;return this[_0x3cc974(0x17c)]()[_0x3cc974(0x16e)];}[_0x14e4dd(0x1b6)](){const _0x5f11a5=_0x14e4dd;return this['_getView']()[_0x5f11a5(0x1d8)];}[_0x14e4dd(0x158)](_0x2f7500){const _0x4ecdf8=_0x14e4dd;return this['_injector'][_0x4ecdf8(0x1bb)](_0x5abfa9)['syncExecuteCommand'](_0x3da8a8['id'],{'unitId':this[_0x4ecdf8(0x196)]['getId'](),'tableId':this[_0x4ecdf8(0x154)][_0x4ecdf8(0x202)](),'viewId':this[_0x4ecdf8(0x17b)],'name':_0x2f7500});}[_0x14e4dd(0x1e6)](){const _0x1b012d=_0x14e4dd;let _0x41d5c8=this['getType'](),_0x27e772=this[_0x1b012d(0x17c)]()[_0x1b012d(0x176)];switch(_0x41d5c8){case _0x1e3dd6[_0x1b012d(0x214)]:return _0x27e772;case _0x1e3dd6[_0x1b012d(0x1a2)]:return _0x27e772;case _0x1e3dd6[_0x1b012d(0x173)]:return _0x27e772;case _0x1e3dd6[_0x1b012d(0x1f7)]:return _0x27e772;case _0x1e3dd6[_0x1b012d(0x217)]:return _0x27e772;default:return _0x27e772;}}[_0x14e4dd(0x20d)](_0x2184f2){const _0x1cf034=_0x14e4dd;return this[_0x1cf034(0x185)][_0x1cf034(0x1bb)](_0x5abfa9)[_0x1cf034(0x1f0)](_0x374a49['id'],{'unitId':this[_0x1cf034(0x196)][_0x1cf034(0x202)](),'tableId':this[_0x1cf034(0x154)][_0x1cf034(0x202)](),'viewId':this['_viewId'],'patch':_0x2184f2});}['getFilter'](){const _0x20e5de=_0x14e4dd;var _0x503b3;return(_0x503b3=this[_0x20e5de(0x17c)]()['filter'])==null?null:_0x503b3;}[_0x14e4dd(0x189)](_0x3af008){const _0x2c8bef=_0x14e4dd;return this[_0x2c8bef(0x185)][_0x2c8bef(0x1bb)](_0x5abfa9)[_0x2c8bef(0x1f0)](_0x218fe1['id'],{'unitId':this[_0x2c8bef(0x196)][_0x2c8bef(0x202)](),'tableId':this[_0x2c8bef(0x154)][_0x2c8bef(0x202)](),'viewId':this[_0x2c8bef(0x17b)],'filter':_0x3af008});}[_0x14e4dd(0x1cb)](){const _0x30c887=_0x14e4dd;var _0x5a3175;return(_0x5a3175=this[_0x30c887(0x17c)]()[_0x30c887(0x15a)])==null?[]:_0x5a3175;}[_0x14e4dd(0x157)](_0x503cd9){const _0x288853=_0x14e4dd;return this['_injector'][_0x288853(0x1bb)](_0x5abfa9)['syncExecuteCommand'](_0x512206['id'],{'unitId':this[_0x288853(0x196)]['getId'](),'tableId':this[_0x288853(0x154)][_0x288853(0x202)](),'viewId':this[_0x288853(0x17b)],'sort':_0x503cd9});}[_0x14e4dd(0x1a1)](){const _0x4db53d=_0x14e4dd;var _0x1fbff5;return(_0x1fbff5=this[_0x4db53d(0x17c)]()[_0x4db53d(0x216)])==null?[]:_0x1fbff5;}['setGroup'](_0x178829){const _0x4a8e58=_0x14e4dd;return this[_0x4a8e58(0x185)][_0x4a8e58(0x1bb)](_0x5abfa9)[_0x4a8e58(0x1f0)](_0x15bccc['id'],{'unitId':this[_0x4a8e58(0x196)][_0x4a8e58(0x202)](),'tableId':this[_0x4a8e58(0x154)]['getId'](),'viewId':this[_0x4a8e58(0x17b)],'group':_0x178829});}[_0x14e4dd(0x169)](_0x50ee13){const _0x4da639=_0x14e4dd;var _0x3460cf,_0x3e52d4;return(_0x3460cf=(_0x3e52d4=this[_0x4da639(0x17c)]()[_0x4da639(0x1c6)])==null?void 0x0:_0x3e52d4[_0x50ee13])==null?{}:_0x3460cf;}['getVisibleFields'](){const _0x4b38d2=_0x14e4dd;var _0x43d2a8;let _0x297f4b=this[_0x4b38d2(0x154)]['getTable'](),_0x10d16c=this[_0x4b38d2(0x17c)]();return((_0x43d2a8=_0x10d16c[_0x4b38d2(0x1e5)])==null?_0x297f4b['fieldOrder']:_0x43d2a8)[_0x4b38d2(0x14f)](_0x45c3a1=>{const _0x1b1268=_0x4b38d2;var _0x5802bc;return _0x297f4b[_0x1b1268(0x1f3)][_0x45c3a1]&&!(!((_0x5802bc=_0x10d16c[_0x1b1268(0x1c6)])==null||(_0x5802bc=_0x5802bc[_0x45c3a1])==null)&&_0x5802bc[_0x1b1268(0x1ab)]);})[_0x4b38d2(0x1fa)](_0x2bcd44=>this[_0x4b38d2(0x185)][_0x4b38d2(0x188)](U,this[_0x4b38d2(0x196)],this[_0x4b38d2(0x154)],_0x2bcd44,this[_0x4b38d2(0x185)]));}[_0x14e4dd(0x213)](_0x2a54ee,_0x29ff8b){const _0x4d3f75=_0x14e4dd;return this[_0x4d3f75(0x185)][_0x4d3f75(0x1bb)](_0x5abfa9)[_0x4d3f75(0x1f0)](_0x573f12['id'],{'unitId':this[_0x4d3f75(0x196)][_0x4d3f75(0x202)](),'tableId':this['_table'][_0x4d3f75(0x202)](),'viewId':this[_0x4d3f75(0x17b)],'fieldId':_0x2a54ee,'visible':_0x29ff8b});}[_0x14e4dd(0x1ae)](_0x27cce3,_0x2ce526){const _0x23fa1d=_0x14e4dd;return this[_0x23fa1d(0x185)][_0x23fa1d(0x1bb)](_0x5abfa9)[_0x23fa1d(0x1f0)](_0x220e87['id'],{'unitId':this[_0x23fa1d(0x196)][_0x23fa1d(0x202)](),'tableId':this[_0x23fa1d(0x154)][_0x23fa1d(0x202)](),'viewId':this[_0x23fa1d(0x17b)],'fieldId':_0x27cce3,'width':_0x2ce526});}[_0x14e4dd(0x1a9)](_0x350b00,_0x3fea67){const _0x178846=_0x14e4dd;return this[_0x178846(0x185)][_0x178846(0x1bb)](_0x5abfa9)['syncExecuteCommand'](_0x392572['id'],{'unitId':this[_0x178846(0x196)]['getId'](),'tableId':this[_0x178846(0x154)]['getId'](),'viewId':this[_0x178846(0x17b)],'fieldId':_0x350b00,'target':_0x3fea67});}['move'](_0x4ad978){const _0x5b52fb=_0x14e4dd;return this[_0x5b52fb(0x185)][_0x5b52fb(0x1bb)](_0x5abfa9)[_0x5b52fb(0x1f0)](_0x1c145b['id'],{'unitId':this['_base'][_0x5b52fb(0x202)](),'tableId':this[_0x5b52fb(0x154)]['getId'](),'viewId':this['_viewId'],'target':_0x4ad978});}[_0x14e4dd(0x206)](){const _0x3fd82c=_0x14e4dd;return this[_0x3fd82c(0x185)][_0x3fd82c(0x1bb)](_0x5abfa9)[_0x3fd82c(0x1f0)](_0x58b979['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x3fd82c(0x154)][_0x3fd82c(0x202)](),'viewId':this['_viewId']});}[_0x14e4dd(0x160)](){const _0xbf3210=_0x14e4dd;return this[_0xbf3210(0x185)][_0xbf3210(0x1bb)](_0xe2f5a2)[_0xbf3210(0x160)](this['_base'][_0xbf3210(0x195)]()[_0xbf3210(0x186)](),this[_0xbf3210(0x154)][_0xbf3210(0x202)](),this[_0xbf3210(0x17b)]);}[_0x14e4dd(0x17c)](){const _0x35962c=_0x14e4dd;let _0x25c385=this[_0x35962c(0x154)][_0x35962c(0x161)]()['views'][this['_viewId']];if(!_0x25c385)throw Error('[FView]:\x20view\x20\x22'+this[_0x35962c(0x17b)]+_0x35962c(0x205));return _0x25c385;}},X=class{constructor(_0x4fcc19,_0x4b3865,_0x37d315){const _0x1f774e=_0x14e4dd;this[_0x1f774e(0x196)]=_0x4fcc19,this[_0x1f774e(0x209)]=_0x4b3865,this[_0x1f774e(0x185)]=_0x37d315;}[_0x14e4dd(0x195)](){const _0x20e4e5=_0x14e4dd;return this[_0x20e4e5(0x196)][_0x20e4e5(0x195)]();}['getTable'](){const _0x43eb45=_0x14e4dd;return this[_0x43eb45(0x18b)]();}[_0x14e4dd(0x202)](){const _0x100823=_0x14e4dd;return this[_0x100823(0x209)];}['getName'](){const _0xdd9723=_0x14e4dd;return this['_getTable']()[_0xdd9723(0x16e)];}[_0x14e4dd(0x158)](_0x5b536a){const _0x295c51=_0x14e4dd;return this['_injector']['get'](_0x5abfa9)[_0x295c51(0x1f0)](_0x7ce364['id'],{'unitId':this['_base'][_0x295c51(0x202)](),'tableId':this['_tableId'],'name':_0x5b536a});}['search'](_0x1c310f,_0x74412e){const _0x529580=_0x14e4dd;var _0x4eb947;let _0x2a227a=this[_0x529580(0x185)][_0x529580(0x1bb)](_0xe2f5a2),_0x277be1=this[_0x529580(0x196)]['getBase']()[_0x529580(0x186)](),_0x593947=this[_0x529580(0x18b)]();if(_0x74412e){var _0x17b132;let _0x4def37=_0x2a227a[_0x529580(0x160)](_0x277be1,this[_0x529580(0x209)],_0x74412e),_0x202fe7=_0x593947[_0x529580(0x17a)][_0x74412e],_0x16fad7=(_0x17b132=_0x1c310f[_0x529580(0x1db)])==null?he(_0x593947,_0x202fe7,_0x4def37):_0x17b132,_0x285aca='rows'in _0x4def37&&Array[_0x529580(0x183)](_0x4def37[_0x529580(0x1e9)])?_0x4def37[_0x529580(0x1e9)]:[];return _0x5b1460({..._0x1c310f,'table':_0x593947,'fieldIds':_0x16fad7,'rows':_0x285aca});}let _0x2718a0=(_0x593947[_0x529580(0x180)]?_0x593947[_0x529580(0x180)][_0x529580(0x1fa)](_0x4467a7=>_0x593947[_0x529580(0x167)][_0x4467a7]):Object['values'](_0x593947[_0x529580(0x167)])[_0x529580(0x15a)]((_0x424c1c,_0x259cb3)=>_0x424c1c['orderKey'][_0x529580(0x19d)](_0x259cb3['orderKey'])))[_0x529580(0x14f)](_0xfde627=>_0xfde627)[_0x529580(0x1fa)](_0x12cf83=>({'recordId':_0x12cf83['id'],'values':_0x12cf83[_0x529580(0x15f)]})),_0x532acb=(_0x4eb947=_0x1c310f[_0x529580(0x1db)])==null?_0x593947[_0x529580(0x1e5)]['filter'](_0x4a72bb=>_0x593947['fields'][_0x4a72bb]):_0x4eb947;return _0x5b1460({..._0x1c310f,'table':_0x593947,'fieldIds':_0x532acb,'rows':_0x2718a0});}['getPrimaryFieldId'](){return this['_getTable']()['primaryFieldId'];}[_0x14e4dd(0x1c8)](){const _0x128fa7=_0x14e4dd;let _0xa3723=this['_getTable']();return _0xa3723[_0x128fa7(0x1e5)]['map'](_0x5afdfb=>_0xa3723['fields'][_0x5afdfb])[_0x128fa7(0x14f)](_0x20cf34=>_0x20cf34)[_0x128fa7(0x1fa)](_0x5d492c=>this[_0x128fa7(0x185)][_0x128fa7(0x188)](U,this[_0x128fa7(0x196)],this,_0x5d492c['id'],this['_injector']));}['getFieldById'](_0x3b0fc8){const _0x442faf=_0x14e4dd;let _0x2654a9=this[_0x442faf(0x18b)]()[_0x442faf(0x1f3)][_0x3b0fc8];return _0x2654a9?this[_0x442faf(0x185)][_0x442faf(0x188)](U,this[_0x442faf(0x196)],this,_0x2654a9['id'],this[_0x442faf(0x185)]):null;}['getFieldByName'](_0x47a5e7){const _0x216b6b=_0x14e4dd;let _0x53a430=this['_getTable']()[_0x216b6b(0x1f3)],_0x5995b1=Object[_0x216b6b(0x15f)](_0x53a430)[_0x216b6b(0x1ca)](_0x3b3ea8=>_0x3b3ea8[_0x216b6b(0x16e)]===_0x47a5e7);return _0x5995b1?this[_0x216b6b(0x185)]['createInstance'](U,this['_base'],this,_0x5995b1['id'],this['_injector']):null;}[_0x14e4dd(0x1fb)](){const _0x3e4a11=_0x14e4dd;let _0x470436=this[_0x3e4a11(0x18b)]()[_0x3e4a11(0x1a4)];return this[_0x3e4a11(0x185)][_0x3e4a11(0x188)](U,this['_base'],this,_0x470436,this[_0x3e4a11(0x185)]);}[_0x14e4dd(0x1d2)](_0x2076f4,_0x49c6c9,_0x4d3df7){const _0x26a697=_0x14e4dd;var _0x32bd38;let _0x4ea51c=this[_0x26a697(0x185)][_0x26a697(0x1bb)](_0x5abfa9),_0x4ceddb=(_0x32bd38=_0x4d3df7==null?void 0x0:_0x4d3df7[_0x26a697(0x1cd)])==null?{}:_0x32bd38;if(_0x4ceddb['id']=_0x369b18(0x6),_0x4ceddb[_0x26a697(0x16e)]=_0x2076f4,_0x4ceddb[_0x26a697(0x1d8)]=_0x49c6c9,!_0x4ceddb[_0x26a697(0x1d8)])throw Error(_0x26a697(0x17f));if(_0x4ceddb[_0x26a697(0x176)]||(_0x4ceddb[_0x26a697(0x176)]={}),!_0x4ea51c[_0x26a697(0x1f0)](_0x5cc92c['id'],{'unitId':this[_0x26a697(0x196)]['getId'](),'tableId':this[_0x26a697(0x209)],'field':_0x4ceddb,'index':_0x4d3df7==null?void 0x0:_0x4d3df7['index']}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x2076f4+'\x22');return this[_0x26a697(0x185)][_0x26a697(0x188)](U,this[_0x26a697(0x196)],this,_0x4ceddb['id'],this['_injector']);}[_0x14e4dd(0x14d)](){const _0x5c73f8=_0x14e4dd;return this[_0x5c73f8(0x1fd)]()[_0x5c73f8(0x1fa)](_0x3f4256=>this[_0x5c73f8(0x185)][_0x5c73f8(0x188)](J,this[_0x5c73f8(0x196)],this,_0x3f4256,this[_0x5c73f8(0x185)]));}['getRecordById'](_0x280c2c){const _0x56b9a7=_0x14e4dd;return this['_getTable']()[_0x56b9a7(0x167)][_0x280c2c]?this[_0x56b9a7(0x185)]['createInstance'](J,this[_0x56b9a7(0x196)],this,_0x280c2c,this['_injector']):null;}[_0x14e4dd(0x215)](_0x386dd5={}){const _0x156272=_0x14e4dd;var _0x3224f4;let _0x3be364=this[_0x156272(0x18b)](),_0x2dd8f3=this[_0x156272(0x1fd)](_0x386dd5),_0x3b3f4b=Math[_0x156272(0x199)](0x0,(_0x3224f4=_0x386dd5[_0x156272(0x178)])==null?0x0:_0x3224f4),_0x1df6ba=_0x386dd5[_0x156272(0x165)]==null?null:Math['max'](0x0,_0x386dd5[_0x156272(0x165)]),_0x4eb746=ue(_0x2dd8f3[_0x156272(0x1fa)](_0x293402=>_0x3be364[_0x156272(0x167)][_0x293402])['filter'](_0xd7fb41=>fe(_0xd7fb41,_0x3be364,_0x386dd5[_0x156272(0x14f)])),_0x3be364,_0x386dd5[_0x156272(0x15a)]);return{'records':le(_0x4eb746,_0x386dd5)[_0x156272(0x1fa)](_0x37bea9=>this[_0x156272(0x185)][_0x156272(0x188)](J,this['_base'],this,_0x37bea9['id'],this[_0x156272(0x185)])),'total':_0x4eb746[_0x156272(0x1f4)],'offset':_0x3b3f4b,'limit':_0x1df6ba,'hasMore':_0x1df6ba!=null&&_0x3b3f4b+_0x1df6ba<_0x4eb746[_0x156272(0x1f4)]};}[_0x14e4dd(0x1cc)](_0x5d2ec1,_0x417013='id',_0x221662){const _0x63fba6=_0x14e4dd;let _0x171dde=this['_injector']['get'](_0x5abfa9),_0x31efc9=this['_getTable'](),_0x5c5a9e=_0x221662==null?{}:_0x221662;_0x5c5a9e['id']=_0x369b18(0x6),_0x5c5a9e[_0x63fba6(0x15f)]=K(_0x31efc9,_0x5d2ec1,_0x417013);let _0x5ec10d=Date[_0x63fba6(0x1eb)]();if(_0x5c5a9e[_0x63fba6(0x1e3)]||(_0x5c5a9e['orderKey']=''+_0x5ec10d),_0x5c5a9e['createdAt']||(_0x5c5a9e[_0x63fba6(0x1de)]=_0x5ec10d),_0x5c5a9e[_0x63fba6(0x1b1)]||(_0x5c5a9e['updatedAt']=_0x5ec10d),!_0x171dde['syncExecuteCommand'](_0x3b13bf['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x63fba6(0x209)],'record':_0x5c5a9e}))throw Error(_0x63fba6(0x1a3)+_0x5c5a9e['id']+'\x22');return this[_0x63fba6(0x185)][_0x63fba6(0x188)](J,this[_0x63fba6(0x196)],this,_0x5c5a9e['id'],this[_0x63fba6(0x185)]);}[_0x14e4dd(0x1b8)](_0x722aa2){const _0x51d1e3=_0x14e4dd;if(!_0x722aa2['length'])return[];let _0x34935d=this['_injector'][_0x51d1e3(0x1bb)](_0x5abfa9),_0x37259a=this[_0x51d1e3(0x18b)](),_0x586f1d=Date[_0x51d1e3(0x1eb)](),_0x599623=_0x722aa2[_0x51d1e3(0x1fa)]((_0xbcd8af,_0x3c066d)=>{const _0xf6b92f=_0x51d1e3;var _0x207b1a,_0x36cff7;let _0x221f22=(_0x207b1a=_0xbcd8af['record'])==null?{}:_0x207b1a;return _0x221f22['id']=_0x369b18(0x6),_0x221f22['values']=K(_0x37259a,_0xbcd8af[_0xf6b92f(0x15f)],(_0x36cff7=_0xbcd8af[_0xf6b92f(0x18d)])==null?'id':_0x36cff7),_0x221f22['orderKey']||(_0x221f22[_0xf6b92f(0x1e3)]=''+(_0x586f1d+_0x3c066d)),_0x221f22[_0xf6b92f(0x1de)]||(_0x221f22[_0xf6b92f(0x1de)]=_0x586f1d),_0x221f22['updatedAt']||(_0x221f22['updatedAt']=_0x586f1d),_0x221f22;});if(!_0x34935d[_0x51d1e3(0x1f0)](_0x118e37['id'],{'unitId':this['_base'][_0x51d1e3(0x202)](),'tableId':this[_0x51d1e3(0x209)],'records':_0x599623}))throw Error(_0x51d1e3(0x1a7));return _0x599623[_0x51d1e3(0x1fa)](_0x361a7b=>this[_0x51d1e3(0x185)]['createInstance'](J,this[_0x51d1e3(0x196)],this,_0x361a7b['id'],this[_0x51d1e3(0x185)]));}['deleteRecords'](_0x1b87df){const _0x27817e=_0x14e4dd;return _0x1b87df[_0x27817e(0x1f4)]?this[_0x27817e(0x185)]['get'](_0x5abfa9)['syncExecuteCommand'](_0x263dd2['id'],{'unitId':this[_0x27817e(0x196)][_0x27817e(0x202)](),'tableId':this['_tableId'],'recordIds':_0x1b87df}):!0x0;}[_0x14e4dd(0x14b)](_0xde9f88,_0x356b67,_0x58f33a=0x1,_0x58126f=0x1){const _0x43e6b8=_0x14e4dd;return this[_0x43e6b8(0x185)]['createInstance'](W,this[_0x43e6b8(0x196)],this,{'startRow':_0xde9f88,'endRow':_0xde9f88+_0x58f33a-0x1,'startColumn':_0x356b67,'endColumn':_0x356b67+_0x58126f-0x1},this['_injector']);}['getDataRange'](){const _0x2e10bc=_0x14e4dd;var _0x536e3b,_0x265227;let _0x446b39=_0x2c8835(this['_getTable']()),_0x48a9f3=(_0x536e3b=(_0x265227=_0x446b39[_0x2e10bc(0x180)])==null?void 0x0:_0x265227[_0x2e10bc(0x1f4)])==null?0x0:_0x536e3b,_0x5d0c93=_0x446b39[_0x2e10bc(0x1e5)][_0x2e10bc(0x1f4)];return this[_0x2e10bc(0x14b)](0x0,0x0,Math[_0x2e10bc(0x199)](_0x48a9f3,0x1),Math['max'](_0x5d0c93,0x1));}['getViews'](){const _0x32ceb0=_0x14e4dd;let _0x572a95=this[_0x32ceb0(0x18b)]();return _0x572a95[_0x32ceb0(0x1d0)][_0x32ceb0(0x14f)](_0x304ae4=>_0x572a95[_0x32ceb0(0x17a)][_0x304ae4])[_0x32ceb0(0x1fa)](_0x3728cb=>this[_0x32ceb0(0x185)][_0x32ceb0(0x188)](Y,this[_0x32ceb0(0x196)],this,_0x3728cb,this['_injector']));}[_0x14e4dd(0x1b5)](_0x15feb3){const _0x1a8286=_0x14e4dd;return this[_0x1a8286(0x18b)]()[_0x1a8286(0x17a)][_0x15feb3]?this['_injector']['createInstance'](Y,this[_0x1a8286(0x196)],this,_0x15feb3,this[_0x1a8286(0x185)]):null;}['getViewByName'](_0x183b55){const _0x37f033=_0x14e4dd;let _0x1f5fc3=this[_0x37f033(0x18b)](),_0x5abd2a=Object[_0x37f033(0x15f)](_0x1f5fc3['views'])[_0x37f033(0x1ca)](_0x45b9ea=>_0x45b9ea[_0x37f033(0x16e)]===_0x183b55);return _0x5abd2a?this['_injector'][_0x37f033(0x188)](Y,this['_base'],this,_0x5abd2a['id'],this[_0x37f033(0x185)]):null;}['createView'](_0x33fed7,_0x5974d2,_0xdffa40){const _0x2b04e0=_0x14e4dd;var _0x56bcd4;let _0x39a942=this[_0x2b04e0(0x185)][_0x2b04e0(0x1bb)](_0x5abfa9),_0x240012=this[_0x2b04e0(0x18b)](),_0x574518=(_0x56bcd4=_0xdffa40==null?void 0x0:_0xdffa40[_0x2b04e0(0x1aa)])==null?{}:_0x56bcd4;if(_0x574518['id']=_0x369b18(0x6),_0x574518[_0x2b04e0(0x16e)]=_0x33fed7,_0x574518[_0x2b04e0(0x1d8)]=_0x5974d2,_0x574518[_0x2b04e0(0x1d1)]=this[_0x2b04e0(0x209)],!_0x574518['type'])throw Error('View\x20type\x20is\x20required');if(_0x574518['config']||(_0x574518[_0x2b04e0(0x176)]={}),_0x574518[_0x2b04e0(0x1e5)]||(_0x574518[_0x2b04e0(0x1e5)]=[..._0x240012[_0x2b04e0(0x1e5)]]),!_0x39a942[_0x2b04e0(0x1f0)](_0x2d3862['id'],{'unitId':this[_0x2b04e0(0x196)][_0x2b04e0(0x202)](),'tableId':this['_tableId'],'view':_0x574518,'index':_0xdffa40==null?void 0x0:_0xdffa40['index']}))throw Error(_0x2b04e0(0x145)+_0x33fed7+'\x22');return this['_injector'][_0x2b04e0(0x188)](Y,this[_0x2b04e0(0x196)],this,_0x574518['id'],this[_0x2b04e0(0x185)]);}[_0x14e4dd(0x177)](){const _0x14e7bd=_0x14e4dd;let _0x12b5c2=this[_0x14e7bd(0x18b)](),_0x59e925=_0x12b5c2[_0x14e7bd(0x1e5)][_0x14e7bd(0x14f)](_0xed1e97=>_0x12b5c2[_0x14e7bd(0x1f3)][_0xed1e97]),_0x2027a2=_0x12b5c2[_0x14e7bd(0x1d0)][_0x14e7bd(0x14f)](_0x80cec9=>_0x12b5c2[_0x14e7bd(0x17a)][_0x80cec9]);return{'id':_0x12b5c2['id'],'name':_0x12b5c2[_0x14e7bd(0x16e)],'primaryFieldId':_0x12b5c2[_0x14e7bd(0x1a4)],'fieldIds':_0x59e925,'viewIds':_0x2027a2,'recordCount':this[_0x14e7bd(0x1fd)]()[_0x14e7bd(0x1f4)],'fields':_0x59e925[_0x14e7bd(0x1fa)](_0x17340a=>{const _0x48fe2f=_0x14e7bd;let _0x165299=_0x12b5c2[_0x48fe2f(0x1f3)][_0x17340a];return{'id':_0x165299['id'],'name':_0x165299[_0x48fe2f(0x16e)],'type':_0x165299['type'],'config':_0x165299[_0x48fe2f(0x176)],'readonly':_0x165299[_0x48fe2f(0x1b4)],'description':_0x165299['description']};}),'views':_0x2027a2[_0x14e7bd(0x1fa)](_0x341a1e=>{const _0x19d810=_0x14e7bd;let _0x60081b=_0x12b5c2[_0x19d810(0x17a)][_0x341a1e];return{'id':_0x60081b['id'],'name':_0x60081b[_0x19d810(0x16e)],'type':_0x60081b['type']};})};}[_0x14e4dd(0x18b)](){const _0x14dc0b=_0x14e4dd;let _0x54e668=this[_0x14dc0b(0x196)][_0x14dc0b(0x195)]()[_0x14dc0b(0x186)]()['tables'][this[_0x14dc0b(0x209)]];if(!_0x54e668)throw Error(_0x14dc0b(0x1af)+this[_0x14dc0b(0x209)]+_0x14dc0b(0x205));return _0x54e668;}[_0x14e4dd(0x1fd)](_0x37ae6a={}){const _0x41385e=_0x14e4dd;let _0x4ee05b=this[_0x41385e(0x185)][_0x41385e(0x1bb)](_0xe2f5a2),_0x34f625=this[_0x41385e(0x196)][_0x41385e(0x195)]()[_0x41385e(0x186)](),_0x2dfcd7=this['_getTable']();if(_0x37ae6a['viewId']){let _0x5a2072=_0x4ee05b[_0x41385e(0x160)](_0x34f625,this[_0x41385e(0x209)],_0x37ae6a[_0x41385e(0x182)]);if(_0x41385e(0x1e9)in _0x5a2072&&Array[_0x41385e(0x183)](_0x5a2072[_0x41385e(0x1e9)]))return _0x5a2072['rows'][_0x41385e(0x1fa)](_0x2990d4=>_0x2990d4['recordId']);}return(_0x2dfcd7['recordOrder']?_0x2dfcd7[_0x41385e(0x180)][_0x41385e(0x1fa)](_0x4b8db0=>_0x2dfcd7[_0x41385e(0x167)][_0x4b8db0]):Object[_0x41385e(0x15f)](_0x2dfcd7['records'])[_0x41385e(0x15a)]((_0xe19c34,_0x35851a)=>_0xe19c34[_0x41385e(0x1e3)][_0x41385e(0x19d)](_0x35851a[_0x41385e(0x1e3)])))[_0x41385e(0x14f)](_0x371126=>_0x371126)['map'](_0x4c4919=>_0x4c4919['id']);}};function le(_0x46a242,_0x34a4d4){const _0x34c6de=_0x14e4dd;var _0x3923d4;let _0x11b182=Math['max'](0x0,(_0x3923d4=_0x34a4d4[_0x34c6de(0x178)])==null?0x0:_0x3923d4);return _0x34a4d4[_0x34c6de(0x165)]==null?_0x46a242['slice'](_0x11b182):_0x46a242['slice'](_0x11b182,_0x11b182+Math['max'](0x0,_0x34a4d4[_0x34c6de(0x165)]));}function ue(_0x118505,_0x243515,_0x1b194d=[]){const _0x5748ca=_0x14e4dd;return _0x1b194d[_0x5748ca(0x1f4)]?[..._0x118505][_0x5748ca(0x15a)]((_0x3dd710,_0x503b8a)=>{const _0x109010=_0x5748ca;var _0x2c798d,_0x49d587;for(let _0x5600d0 of _0x1b194d){var _0x4b2b43;let _0x3871bb=_0x5600d0['direction']===_0x3c0cc3[_0x109010(0x166)]?-0x1:0x1,_0x4fb270=de(_0x3dd710[_0x109010(0x15f)][_0x5600d0[_0x109010(0x181)]],_0x503b8a[_0x109010(0x15f)][_0x5600d0[_0x109010(0x181)]],(_0x4b2b43=_0x243515[_0x109010(0x1f3)][_0x5600d0[_0x109010(0x181)]])==null?void 0x0:_0x4b2b43[_0x109010(0x1d8)]);if(_0x4fb270!==0x0)return _0x4fb270*_0x3871bb;}return String((_0x2c798d=_0x3dd710[_0x109010(0x1e3)])==null?_0x3dd710['id']:_0x2c798d)[_0x109010(0x19d)](String((_0x49d587=_0x503b8a[_0x109010(0x1e3)])==null?_0x503b8a['id']:_0x49d587));}):_0x118505;}function de(_0x50845e,_0x2541db,_0x3467c5){const _0x142763=_0x14e4dd;return _0x50845e==null&&_0x2541db==null?0x0:_0x50845e==null?-0x1:_0x2541db==null?0x1:typeof _0x50845e==_0x142763(0x210)&&typeof _0x2541db==_0x142763(0x210)?_0x50845e-_0x2541db:_0x3467c5===_0x3329dc['Date']?Number(_0x50845e)-Number(_0x2541db):String(_0x50845e)[_0x142763(0x19d)](String(_0x2541db));}function fe(_0x4fd521,_0x384950,_0x197d2d){const _0x3dbaee=_0x14e4dd;var _0x5c7524;if(!_0x197d2d||!((_0x5c7524=_0x197d2d[_0x3dbaee(0x1bf)])!=null&&_0x5c7524[_0x3dbaee(0x1f4)]))return!0x0;let {conjunction:_0x3c7ec0=_0x2cba2d['OR'],conditions:_0x38b762}=_0x197d2d;return _0x3c7ec0===_0x2cba2d['AND']&&_0x38b762[_0x3dbaee(0x1f4)]>0x1?_0x38b762['every'](_0xb841d9=>Z(_0x4fd521,_0x384950,_0xb841d9)):_0x38b762[_0x3dbaee(0x1d9)](_0x45556c=>Z(_0x4fd521,_0x384950,_0x45556c));}function Z(_0x4e8439,_0x35dfaf,_0x485ec7){const _0x19ddb8=_0x14e4dd;let _0x1c6a80=_0x4e8439[_0x19ddb8(0x15f)][_0x485ec7[_0x19ddb8(0x181)]],_0x328bd4=_0x35dfaf[_0x19ddb8(0x1f3)][_0x485ec7[_0x19ddb8(0x181)]];if(pe(_0x485ec7)){let _0x402a7a=me(_0x485ec7)['test'](String(_0x1c6a80==null?'':_0x1c6a80));return _0x485ec7['operator']==='matches'?_0x402a7a:!_0x402a7a;}return _0x328bd4?_0x205855(_0x1c6a80,_0x485ec7[_0x19ddb8(0x204)],_0x485ec7[_0x19ddb8(0x20a)],_0x328bd4):!0x0;}function pe(_0x33dd18){const _0x5f2fc1=_0x14e4dd;return _0x33dd18[_0x5f2fc1(0x204)]===_0x5f2fc1(0x1da)||_0x33dd18['operator']==='notMatches';}function _0x557f(_0x59b2a5,_0x11a61b){_0x59b2a5=_0x59b2a5-0x13d;const _0x147a79=_0x147a();let _0x557ffc=_0x147a79[_0x59b2a5];return _0x557ffc;}function me(_0x3e9433){const _0x833b06=_0x14e4dd;var _0x100287;let _0x30d820=String((_0x100287=_0x3e9433[_0x833b06(0x20a)])==null?'':_0x100287);if(_0x30d820[_0x833b06(0x1f4)]>0x200)throw Error(_0x833b06(0x1ed));try{return new RegExp(_0x30d820,_0x3e9433[_0x833b06(0x194)]?void 0x0:'i');}catch(_0x33cb49){throw Error(_0x833b06(0x19e)+_0x30d820+'.\x20'+(_0x33cb49 instanceof Error?_0x33cb49[_0x833b06(0x153)]:String(_0x33cb49)));}}function he(_0x15e34d,_0x51f63d,_0x2c3f00){const _0x4a2891=_0x14e4dd;if(_0x2c3f00[_0x4a2891(0x1d8)]!=='invalid'){var _0x10bcb0;if(_0x2c3f00[_0x4a2891(0x1d8)]===_0x1e3dd6[_0x4a2891(0x1a2)]){var _0x3e8f73,_0x5a5ff5,_0x389a11;let _0x5ce93b=[(_0x3e8f73=(_0x5a5ff5=_0x2c3f00[_0x4a2891(0x1f3)])==null||(_0x5a5ff5=_0x5a5ff5[0x0])==null?void 0x0:_0x5a5ff5['id'])==null?_0x15e34d[_0x4a2891(0x1a4)]:_0x3e8f73,...(_0x389a11=_0x2c3f00[_0x4a2891(0x1c3)])==null?[]:_0x389a11];return Array[_0x4a2891(0x149)](new Set(_0x5ce93b[_0x4a2891(0x14f)](_0x37c087=>!!_0x15e34d[_0x4a2891(0x1f3)][_0x37c087])));}if((_0x10bcb0=_0x2c3f00[_0x4a2891(0x1f3)])!=null&&_0x10bcb0['length'])return _0x2c3f00[_0x4a2891(0x1f3)][_0x4a2891(0x1fa)](_0x9f0016=>_0x9f0016['id'])[_0x4a2891(0x14f)](_0x247e6f=>{const _0x3fe067=_0x4a2891;var _0x5ac842;return!!(_0x15e34d[_0x3fe067(0x1f3)][_0x247e6f]&&!(!(_0x51f63d==null||(_0x5ac842=_0x51f63d[_0x3fe067(0x1c6)])==null||(_0x5ac842=_0x5ac842[_0x247e6f])==null)&&_0x5ac842[_0x3fe067(0x1ab)]));});}return _0x15e34d[_0x4a2891(0x1e5)][_0x4a2891(0x14f)](_0x400301=>{const _0x5a92e9=_0x4a2891;var _0x43d20d;return!!(_0x15e34d[_0x5a92e9(0x1f3)][_0x400301]&&!(!(_0x51f63d==null||(_0x43d20d=_0x51f63d[_0x5a92e9(0x1c6)])==null||(_0x43d20d=_0x43d20d[_0x400301])==null)&&_0x43d20d['hidden']));});}function ge(_0x5eadde,_0x364454){return function(_0x199c19,_0x303e60){_0x364454(_0x199c19,_0x303e60,_0x5eadde);};}function _e(_0x2ccba7,_0x4454ed,_0x57cf61,_0x1615b4){const _0x1322e7=_0x14e4dd;var _0x35f0a3=arguments[_0x1322e7(0x1f4)],_0x30b146=_0x35f0a3<0x3?_0x4454ed:_0x1615b4===null?_0x1615b4=Object[_0x1322e7(0x141)](_0x4454ed,_0x57cf61):_0x1615b4,_0x5a630d;if(typeof Reflect==_0x1322e7(0x170)&&typeof Reflect['decorate']==_0x1322e7(0x203))_0x30b146=Reflect['decorate'](_0x2ccba7,_0x4454ed,_0x57cf61,_0x1615b4);else{for(var _0x4ec430=_0x2ccba7[_0x1322e7(0x1f4)]-0x1;_0x4ec430>=0x0;_0x4ec430--)(_0x5a630d=_0x2ccba7[_0x4ec430])&&(_0x30b146=(_0x35f0a3<0x3?_0x5a630d(_0x30b146):_0x35f0a3>0x3?_0x5a630d(_0x4454ed,_0x57cf61,_0x30b146):_0x5a630d(_0x4454ed,_0x57cf61))||_0x30b146);}return _0x35f0a3>0x3&&_0x30b146&&Object[_0x1322e7(0x20f)](_0x4454ed,_0x57cf61,_0x30b146),_0x30b146;}let Q=class{constructor(_0x1f186d,_0x25cbe3){const _0x3495b9=_0x14e4dd;this['_base']=_0x1f186d,this[_0x3495b9(0x185)]=_0x25cbe3;}['getBase'](){const _0x4c3d62=_0x14e4dd;return this[_0x4c3d62(0x196)];}[_0x14e4dd(0x202)](){const _0x230acb=_0x14e4dd;return this[_0x230acb(0x196)][_0x230acb(0x144)]();}['save'](){const _0x95d29b=_0x14e4dd;return _0xad0c7b[_0x95d29b(0x1be)](this['_base'][_0x95d29b(0x186)]());}[_0x14e4dd(0x1b2)](){const _0x1a6d3e=_0x14e4dd;return this['_base'][_0x1a6d3e(0x186)]()[_0x1a6d3e(0x16e)];}[_0x14e4dd(0x158)](_0xd57a4){const _0x46b6ae=_0x14e4dd;this['_injector'][_0x46b6ae(0x1bb)](_0x5abfa9)['syncExecuteCommand'](_0x28caa0['id'],{'unitId':this[_0x46b6ae(0x202)](),'name':_0xd57a4});}['getTables'](){const _0x15e967=_0x14e4dd;let _0x32a597=this[_0x15e967(0x196)][_0x15e967(0x186)]();return _0x32a597['tableOrder'][_0x15e967(0x1fa)](_0x2f25ae=>_0x32a597['tables'][_0x2f25ae])[_0x15e967(0x14f)](_0x1ba8d0=>_0x1ba8d0)[_0x15e967(0x1fa)](_0x571c62=>this[_0x15e967(0x185)][_0x15e967(0x188)](X,this,_0x571c62['id'],this[_0x15e967(0x185)]));}[_0x14e4dd(0x1c1)](_0x473f43){const _0x4e97b1=_0x14e4dd;let _0x38cd55=this[_0x4e97b1(0x196)][_0x4e97b1(0x186)]()[_0x4e97b1(0x13f)][_0x473f43];return _0x38cd55?this[_0x4e97b1(0x185)]['createInstance'](X,this,_0x38cd55['id'],this[_0x4e97b1(0x185)]):null;}[_0x14e4dd(0x1dc)](_0x1b141d){const _0x38dfb9=_0x14e4dd;let _0x59ca17=this[_0x38dfb9(0x196)][_0x38dfb9(0x186)](),_0xc1fc3=Object[_0x38dfb9(0x15f)](_0x59ca17[_0x38dfb9(0x13f)])[_0x38dfb9(0x1ca)](_0x44c8aa=>_0x44c8aa[_0x38dfb9(0x16e)]===_0x1b141d);return _0xc1fc3?this[_0x38dfb9(0x185)][_0x38dfb9(0x188)](X,this,_0xc1fc3['id'],this[_0x38dfb9(0x185)]):null;}[_0x14e4dd(0x1f9)](_0x27646c,_0x590fc1){const _0xe35de1=_0x14e4dd;var _0x2f2635;let _0x10a4e9=this[_0xe35de1(0x185)][_0xe35de1(0x1bb)](_0x5abfa9),_0x26ea05=_0x34e4df({'id':_0x369b18(),'name':_0x27646c,..._0x590fc1==null?void 0x0:_0x590fc1[_0xe35de1(0x1b7)],'primaryFieldName':_0x590fc1==null?void 0x0:_0x590fc1[_0xe35de1(0x175)]}),_0x17a80e=_0xad0c7b[_0xe35de1(0x1c4)](_0x26ea05,(_0x2f2635=_0x590fc1==null?void 0x0:_0x590fc1[_0xe35de1(0x1b7)])==null?{}:_0x2f2635);if(!_0x10a4e9[_0xe35de1(0x1f0)](_0x986b77['id'],{'unitId':this[_0xe35de1(0x196)][_0xe35de1(0x144)](),'table':_0x17a80e,'index':_0x590fc1==null?void 0x0:_0x590fc1['index']}))throw Error(_0xe35de1(0x187)+_0x27646c+'\x22.');return this['_injector'][_0xe35de1(0x188)](X,this,_0x17a80e['id'],this[_0xe35de1(0x185)]);}[_0x14e4dd(0x1fe)](_0x11330a){const _0x1da21d=_0x14e4dd;let _0x1c0ad5=this[_0x1da21d(0x185)][_0x1da21d(0x1bb)](_0x5abfa9),_0x55691e=typeof _0x11330a=='string'?_0x11330a:_0x11330a['getId']();if(!_0x1c0ad5[_0x1da21d(0x1f0)](_0x30a626['id'],{'unitId':this[_0x1da21d(0x196)]['getUnitId'](),'tableId':_0x55691e}))throw Error('Failed\x20to\x20delete\x20table\x20\x22'+_0x55691e+'\x22.');return!0x0;}['duplicateTable'](_0x3da3ed,_0x2d7e88){const _0x4d23f9=_0x14e4dd;var _0x3d1116,_0x397235;let _0xe3f204=this[_0x4d23f9(0x185)]['get'](_0x5abfa9),_0x5ce6ec=this[_0x4d23f9(0x196)][_0x4d23f9(0x186)](),_0x4693e6=typeof _0x3da3ed==_0x4d23f9(0x13e)?_0x3da3ed:_0x3da3ed[_0x4d23f9(0x202)](),_0x432968=_0x5ce6ec['tables'][_0x4693e6];if(!_0x432968)throw Error(_0x4d23f9(0x14e)+_0x4693e6+_0x4d23f9(0x205));let _0x23b4ae=_0x5ce6ec[_0x4d23f9(0x1a8)][_0x4d23f9(0x151)](_0x4693e6)+0x1,_0x4298f3=_0x46ad2d(_0x432968,{'id':_0x369b18(),'name':_0x432968[_0x4d23f9(0x16e)]+_0x4d23f9(0x1df),'includeRecords':(_0x3d1116=_0x2d7e88==null?void 0x0:_0x2d7e88['includeRecords'])==null?!0x1:_0x3d1116,'regenerateViewIds':(_0x397235=_0x2d7e88==null?void 0x0:_0x2d7e88[_0x4d23f9(0x184)])==null?!0x1:_0x397235});if(!_0xe3f204[_0x4d23f9(0x1f0)](_0x986b77['id'],{'unitId':this['_base'][_0x4d23f9(0x144)](),'table':_0x4298f3,'index':_0x23b4ae}))throw Error(_0x4d23f9(0x143)+_0x4693e6+'\x22.');return this['_injector'][_0x4d23f9(0x188)](X,this,_0x4298f3['id'],this[_0x4d23f9(0x185)]);}['getSchema'](){const _0x41c7a1=_0x14e4dd;let _0x376ecf=this['_base'][_0x41c7a1(0x186)]();return{'id':_0x376ecf['id'],'name':_0x376ecf[_0x41c7a1(0x16e)],'tables':this[_0x41c7a1(0x1e8)]()['map'](_0x3e217f=>_0x3e217f[_0x41c7a1(0x177)]())};}};Q=_e([ge(0x1,_0x275d46(_0x22fd86))],Q);var ve=class extends _0xce4c3f{[_0x14e4dd(0x191)](){const _0x419e84=_0x14e4dd;this['_initBaseBeforeEvents'](),this[_0x419e84(0x1f8)]();}[_0x14e4dd(0x15c)](_0x5ec6e8={},_0x185f9b){const _0x1c1402=_0x14e4dd;let _0xd07d04=this['_injector']['get'](_0x417894)['createUnit'](_0x28bcd4['UNIVER_BASE'],_0x5ec6e8,_0x185f9b);return this[_0x1c1402(0x185)][_0x1c1402(0x188)](Q,_0xd07d04);}[_0x14e4dd(0x1a6)](){const _0x3fe94f=_0x14e4dd;let _0x3195ce=this[_0x3fe94f(0x185)][_0x3fe94f(0x1bb)](_0x417894)[_0x3fe94f(0x142)](_0x28bcd4[_0x3fe94f(0x1c9)]);return _0x3195ce?this['_injector'][_0x3fe94f(0x188)](Q,_0x3195ce):null;}[_0x14e4dd(0x195)](_0x46d8a2){const _0x34bf30=_0x14e4dd;let _0x10a050=this['_injector'][_0x34bf30(0x1bb)](_0x417894)['getUnit'](_0x46d8a2,_0x28bcd4[_0x34bf30(0x1c9)]);return _0x10a050?this[_0x34bf30(0x185)][_0x34bf30(0x188)](Q,_0x10a050):null;}[_0x14e4dd(0x1f1)](){const _0xc54d6b=_0x14e4dd;return this[_0xc54d6b(0x185)]['get'](_0x417894)[_0xc54d6b(0x1e0)](_0x28bcd4[_0xc54d6b(0x1c9)])[_0xc54d6b(0x1fa)](_0x2b5cdf=>this[_0xc54d6b(0x185)][_0xc54d6b(0x188)](Q,_0x2b5cdf));}['_initBaseAfterEvents'](){const _0x551010=_0x14e4dd;let _0x52f3a8=this[_0x551010(0x185)][_0x551010(0x1bb)](_0x5abfa9);this[_0x551010(0x1ee)](this['registerEventHandler'](this[_0x551010(0x1ff)][_0x551010(0x171)],()=>_0x52f3a8[_0x551010(0x17e)](_0x1a3ccb=>{const _0x2c307e=_0x551010;if(_0x1a3ccb['id']!==_0x986b77['id'])return;let {unitId:_0x2154f4,table:_0x470171,index:_0x41df59}=_0x1a3ccb[_0x2c307e(0x1a5)],_0x3374c8=this[_0x2c307e(0x195)](_0x2154f4);if(!_0x3374c8)return;let _0x532032={'base':_0x3374c8,'table':_0x470171,'index':_0x41df59};this[_0x2c307e(0x174)](this[_0x2c307e(0x1ff)][_0x2c307e(0x171)],_0x532032);}))),this['disposeWithMe'](this[_0x551010(0x18a)](this['Event'][_0x551010(0x148)],()=>_0x52f3a8[_0x551010(0x17e)](_0x2df174=>{const _0x123304=_0x551010;if(_0x2df174['id']!==_0x5cc92c['id'])return;let {unitId:_0x33f76c,tableId:_0x4508ea,field:_0x4c1cb9,index:_0x56cef8,viewIndexes:_0x25e31f}=_0x2df174[_0x123304(0x1a5)],_0xf7da77=this[_0x123304(0x195)](_0x33f76c);if(!_0xf7da77)return;let _0x2a6152=_0xf7da77['getTableById'](_0x4508ea);if(!_0x2a6152)return;let _0x148f76={'base':_0xf7da77,'table':_0x2a6152,'field':_0x4c1cb9,'index':_0x56cef8,'viewIndexes':_0x25e31f};this[_0x123304(0x174)](this['Event'][_0x123304(0x148)],_0x148f76);}))),this[_0x551010(0x1ee)](this['registerEventHandler'](this[_0x551010(0x1ff)][_0x551010(0x152)],()=>_0x52f3a8['onCommandExecuted'](_0x528b68=>{const _0x436fea=_0x551010;var _0x553374;if(_0x528b68['id']!==_0x3b13bf['id']&&_0x528b68['id']!==_0x118e37['id'])return;let _0x4b5b1a=_0x528b68['params'],{unitId:_0x3c3a50,tableId:_0x3fa492}=_0x4b5b1a,_0x2c357a=(_0x553374=_0x4b5b1a[_0x436fea(0x167)])==null?[_0x4b5b1a[_0x436fea(0x190)]]:_0x553374,_0x289a58=this[_0x436fea(0x195)](_0x3c3a50);if(!_0x289a58)return;let _0x112218=_0x289a58[_0x436fea(0x1c1)](_0x3fa492);if(!_0x112218)return;let _0x5ecd3f={'base':_0x289a58,'table':_0x112218,'records':_0x2c357a};this[_0x436fea(0x174)](this['Event'][_0x436fea(0x152)],_0x5ecd3f);}))),this[_0x551010(0x1ee)](this['registerEventHandler'](this[_0x551010(0x1ff)]['BaseTableViewCreated'],()=>_0x52f3a8[_0x551010(0x17e)](_0x434c68=>{const _0x1e0863=_0x551010;if(_0x434c68['id']!==_0x2d3862['id'])return;let {unitId:_0xa76a1d,tableId:_0x53d6eb,view:_0x1b648b,index:_0x357b2f}=_0x434c68[_0x1e0863(0x1a5)],_0x3a88be=this['getBase'](_0xa76a1d);if(!_0x3a88be)return;let _0x10e943=_0x3a88be[_0x1e0863(0x1c1)](_0x53d6eb);if(!_0x10e943)return;let _0x35b5e8={'base':_0x3a88be,'table':_0x10e943,'view':_0x1b648b,'index':_0x357b2f};this[_0x1e0863(0x174)](this['Event'][_0x1e0863(0x20e)],_0x35b5e8);}))),this['disposeWithMe'](this[_0x551010(0x18a)](this['Event'][_0x551010(0x20c)],()=>_0x52f3a8[_0x551010(0x17e)](_0x3a93f9=>{const _0x57a1a7=_0x551010;if(_0x3a93f9['id']!==_0x32df63['id'])return;let {unitId:_0x13b117,tableId:_0x11e06a,recordId:_0x35539d,fieldId:_0x1709c4,value:_0x24159e}=_0x3a93f9[_0x57a1a7(0x1a5)],_0x57829b=this[_0x57a1a7(0x195)](_0x13b117);if(!_0x57829b)return;let _0x225803=_0x57829b[_0x57a1a7(0x1c1)](_0x11e06a);if(!_0x225803)return;let _0x4f5cb0=_0x225803[_0x57a1a7(0x1ec)](_0x1709c4);if(!_0x4f5cb0)return;let _0x467f65=_0x225803['getRecordById'](_0x35539d);if(!_0x467f65)return;let _0x375b7d={'base':_0x57829b,'table':_0x225803,'field':_0x4f5cb0,'record':_0x467f65,'value':_0x24159e};this[_0x57a1a7(0x174)](this[_0x57a1a7(0x1ff)]['BaseTableCellValueChanged'],_0x375b7d);})));}[_0x14e4dd(0x1e7)](){const _0x25cedd=_0x14e4dd;let _0xf91a8e=this[_0x25cedd(0x185)][_0x25cedd(0x1bb)](_0x5abfa9);this[_0x25cedd(0x1ee)](this['registerEventHandler'](this['Event'][_0x25cedd(0x192)],()=>_0xf91a8e['beforeCommandExecuted'](_0x2e1001=>{const _0xaf5883=_0x25cedd;if(_0x2e1001['id']!==_0x986b77['id'])return;let {unitId:_0x5c8ce3,table:_0x1deaa3,index:_0x2716dd}=_0x2e1001['params'],_0xde1ebc=this[_0xaf5883(0x195)](_0x5c8ce3);if(!_0xde1ebc)return;let _0x50873e={'base':_0xde1ebc,'table':_0x1deaa3,'index':_0x2716dd};if(this[_0xaf5883(0x174)](this[_0xaf5883(0x1ff)][_0xaf5883(0x192)],_0x50873e),_0x50873e[_0xaf5883(0x1b0)])throw new _0x4c003e();}))),this[_0x25cedd(0x1ee)](this[_0x25cedd(0x18a)](this[_0x25cedd(0x1ff)][_0x25cedd(0x1c5)],()=>_0xf91a8e[_0x25cedd(0x16b)](_0x5156ee=>{const _0x4bc18a=_0x25cedd;if(_0x5156ee['id']!==_0x5cc92c['id'])return;let {unitId:_0x3575dc,tableId:_0x3ce1d0,field:_0x4614b9,index:_0x5512be,viewIndexes:_0x285804}=_0x5156ee[_0x4bc18a(0x1a5)],_0x4086eb=this[_0x4bc18a(0x195)](_0x3575dc);if(!_0x4086eb)return;let _0x5a42f1=_0x4086eb[_0x4bc18a(0x1c1)](_0x3ce1d0);if(!_0x5a42f1)return;let _0x1e4d70={'base':_0x4086eb,'table':_0x5a42f1,'field':_0x4614b9,'index':_0x5512be,'viewIndexes':_0x285804};if(this[_0x4bc18a(0x174)](this['Event']['BeforeBaseTableFieldCreate'],_0x1e4d70),_0x1e4d70[_0x4bc18a(0x1b0)])throw new _0x4c003e();}))),this[_0x25cedd(0x1ee)](this[_0x25cedd(0x18a)](this['Event']['BeforeBaseTableRecordCreate'],()=>_0xf91a8e[_0x25cedd(0x16b)](_0x334ed1=>{const _0x30a360=_0x25cedd;var _0x1479a5;if(_0x334ed1['id']!==_0x3b13bf['id']&&_0x334ed1['id']!==_0x118e37['id'])return;let _0x5a1a62=_0x334ed1['params'],{unitId:_0x1543f2,tableId:_0x486ff0}=_0x5a1a62,_0x58eadb=(_0x1479a5=_0x5a1a62[_0x30a360(0x167)])==null?[_0x5a1a62['record']]:_0x1479a5,_0x5ef5cd=this[_0x30a360(0x195)](_0x1543f2);if(!_0x5ef5cd)return;let _0x9f574f=_0x5ef5cd[_0x30a360(0x1c1)](_0x486ff0);if(!_0x9f574f)return;let _0x157c18={'base':_0x5ef5cd,'table':_0x9f574f,'records':_0x58eadb};if(this[_0x30a360(0x174)](this[_0x30a360(0x1ff)][_0x30a360(0x197)],_0x157c18),_0x157c18[_0x30a360(0x1b0)])throw new _0x4c003e();}))),this[_0x25cedd(0x1ee)](this[_0x25cedd(0x18a)](this[_0x25cedd(0x1ff)]['BeforeBaseTableViewCreate'],()=>_0xf91a8e[_0x25cedd(0x16b)](_0x5f03a7=>{const _0xcd99c2=_0x25cedd;if(_0x5f03a7['id']!==_0x2d3862['id'])return;let {unitId:_0x583e9b,tableId:_0x30d7d8,view:_0x180684,index:_0x226a82}=_0x5f03a7[_0xcd99c2(0x1a5)],_0x1e250e=this[_0xcd99c2(0x195)](_0x583e9b);if(!_0x1e250e)return;let _0x3df52b=_0x1e250e[_0xcd99c2(0x1c1)](_0x30d7d8);if(!_0x3df52b)return;let _0xceb1f0={'base':_0x1e250e,'table':_0x3df52b,'view':_0x180684,'index':_0x226a82};if(this['fireEvent'](this[_0xcd99c2(0x1ff)][_0xcd99c2(0x18c)],_0xceb1f0),_0xceb1f0[_0xcd99c2(0x1b0)])throw new _0x4c003e();}))),this[_0x25cedd(0x1ee)](this[_0x25cedd(0x18a)](this[_0x25cedd(0x1ff)][_0x25cedd(0x19b)],()=>_0xf91a8e[_0x25cedd(0x16b)](_0x302252=>{const _0x50fee7=_0x25cedd;if(_0x302252['id']!==_0x32df63['id'])return;let {unitId:_0x24d1a3,tableId:_0x130c4a,recordId:_0x216f91,fieldId:_0x50863f,value:_0xfedfba}=_0x302252[_0x50fee7(0x1a5)],_0x568498=this['getBase'](_0x24d1a3);if(!_0x568498)return;let _0x47fcd7=_0x568498[_0x50fee7(0x1c1)](_0x130c4a);if(!_0x47fcd7)return;let _0x268e7f=_0x47fcd7[_0x50fee7(0x1ec)](_0x50863f);if(!_0x268e7f)return;let _0xe3830c=_0x47fcd7[_0x50fee7(0x1ba)](_0x216f91);if(!_0xe3830c)return;let _0x28d0e9={'base':_0x568498,'table':_0x47fcd7,'field':_0x268e7f,'record':_0xe3830c,'value':_0xfedfba};if(this[_0x50fee7(0x174)](this[_0x50fee7(0x1ff)]['BeforeBaseTableCellValueChange'],_0x28d0e9),_0x28d0e9[_0x50fee7(0x1b0)])throw new _0x4c003e();})));}};_0xce4c3f[_0x14e4dd(0x1a0)](ve);var ye=class extends _0x4b5977{get[_0x14e4dd(0x16d)](){return _0x3329dc;}get[_0x14e4dd(0x212)](){return _0x2cba2d;}get[_0x14e4dd(0x198)](){return _0x53f6ba;}get[_0x14e4dd(0x1c0)](){return G;}get[_0x14e4dd(0x1f6)](){return _0x1e3dd6;}get['BaseSortDirection'](){return _0x3c0cc3;}};function _0x147a(){const _0x52020e=['viewOrder','tableId','addField','startColumn','setValues','_recordId',',\x20range:\x20','setDefaultValue','type','some','matches','fieldIds','getTableByName','auto','createdAt','\x20Copy','getAllUnitsForType','getDefaultValue','push','orderKey','clear','fieldOrder','getConfig','_initBaseBeforeEvents','getTables','rows','Duplicate\x20Base\x20field\x20name:\x20','now','getFieldById','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','disposeWithMe','description','syncExecuteCommand','getBases','Base\x20field\x20not\x20found:\x20','fields','length','getColumn','BaseViewType','Gantt','_initBaseAfterEvents','insertTable','map','getPrimaryField','getNumRows','_resolveRecordIds','deleteTable','Event','_getField','2582520rNSmZl','getId','function','operator','\x22\x20does\x20not\x20exist.','delete','getBaseId','48ZVqrcM','_tableId','value','Auto','BaseTableCellValueChanged','updateConfig','BaseTableViewCreated','defineProperty','number','_inject','BaseFilterConjunction','setFieldVisible','Grid','queryRecords','group','Gallery','2278540ExaRio','string','tables','entries','getOwnPropertyDescriptor','getCurrentUnitOfType','Failed\x20to\x20duplicate\x20table\x20\x22','getUnitId','Failed\x20to\x20create\x20view\x20\x22','Name','16890uCNEYf','BaseTableFieldCreated','from','3954600YBbBeh','getRange','getView','getRecords','[FBase]:\x20table\x20\x22','filter','4lHGURh','indexOf','BaseTableRecordCreated','message','_table','_range','50UziQRt','setSort','setName',',\x20max\x20columns:\x20','sort','_fieldId','createBase','update','[FBaseRange]:\x20values\x20size\x20','values','getProjection','getTable','500843SkkyRq','getValues','rowId','limit','DESC','records','[FBaseRange]:\x20table\x20does\x20not\x20exist.','getFieldSettings','getDescription','beforeCommandExecuted','getField','BaseFieldType','name','\x20exceeds\x20range\x20size\x20','object','BaseTableCreated','move','Calendar','fireEvent','primaryFieldName','config','getSchema','offset','defaultValue','views','_viewId','_getView','[FRecord]:\x20record\x20\x22','onCommandExecuted','Field\x20type\x20is\x20required','recordOrder','fieldId','viewId','isArray','regenerateViewIds','_injector','getSnapshot','Failed\x20to\x20create\x20table\x20\x22','createInstance','setFilter','registerEventHandler','_getTable','BeforeBaseTableViewCreate','fieldKey','_assertInBounds','changeType','record','_initialize','BeforeBaseTableCreate','596456MBGPwi','caseSensitive','getBase','_base','BeforeBaseTableRecordCreate','BaseFilterOperator','max','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','BeforeBaseTableCellValueChange','forEach','localeCompare','Invalid\x20Base\x20regex\x20filter:\x20','duplicate','extend','getGroup','Kanban','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','primaryFieldId','params','getActiveBase','Failed\x20to\x20add\x20records','tableOrder','moveField','view','hidden','endColumn','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','setFieldWidth','[FTable]:\x20table\x20\x22','cancel','updatedAt','getName','getTableId','readonly','getViewById','getType','table','addRecords','getValue','getRecordById','get','2841565gfNiaB','setValue','deepClone','conditions','BaseFieldKeyEnum','getTableById','getNumColumns','visibleCardFieldIds','commonExtend','BeforeBaseTableFieldCreate','fieldSettings','endRow','getFields','UNIVER_BASE','find','getSort','addRecord','field','_getRecord','startRow'];_0x147a=function(){return _0x52020e;};return _0x147a();}_0x4b5977[_0x14e4dd(0x1a0)](ye);var $=class extends _0x8ad1b4{get[_0x14e4dd(0x171)](){const _0x932969=_0x14e4dd;return _0x932969(0x171);}get[_0x14e4dd(0x192)](){const _0x2196dc=_0x14e4dd;return _0x2196dc(0x192);}get[_0x14e4dd(0x148)](){const _0x111a3c=_0x14e4dd;return _0x111a3c(0x148);}get[_0x14e4dd(0x1c5)](){const _0x3d29f1=_0x14e4dd;return _0x3d29f1(0x1c5);}get[_0x14e4dd(0x152)](){const _0x1545ea=_0x14e4dd;return _0x1545ea(0x152);}get[_0x14e4dd(0x197)](){return'BeforeBaseTableRecordCreate';}get[_0x14e4dd(0x20e)](){return'BaseTableViewCreated';}get['BeforeBaseTableViewCreate'](){return'BeforeBaseTableViewCreate';}get[_0x14e4dd(0x20c)](){const _0x5e8b36=_0x14e4dd;return _0x5e8b36(0x20c);}get['BeforeBaseTableCellValueChange'](){return'BeforeBaseTableCellValueChange';}};_0x8ad1b4[_0x14e4dd(0x1a0)]($);export{G as BaseFieldKeyEnum,Q as FBase,X as FBaseTable,U as FBaseTableField,W as FBaseTableRange,J as FBaseTableRecord,Y as FBaseTableView,$ as FBasesEventNameMixin,q as resolveBaseFieldKey,K as resolveBaseFieldValues};
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};