@univerjs-pro/bases 1.0.3 → 1.1.0

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 (86) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/fields/field-core-plugin.d.ts +2 -2
  65. package/lib/umd/facade.js +1 -1
  66. package/lib/umd/index.js +1 -1
  67. package/lib/umd/locale/ar-SA.js +1 -1
  68. package/lib/umd/locale/ca-ES.js +1 -1
  69. package/lib/umd/locale/de-DE.js +1 -1
  70. package/lib/umd/locale/en-US.js +1 -1
  71. package/lib/umd/locale/es-ES.js +1 -1
  72. package/lib/umd/locale/fa-IR.js +1 -1
  73. package/lib/umd/locale/fr-FR.js +1 -1
  74. package/lib/umd/locale/id-ID.js +1 -1
  75. package/lib/umd/locale/it-IT.js +1 -1
  76. package/lib/umd/locale/ja-JP.js +1 -1
  77. package/lib/umd/locale/ko-KR.js +1 -1
  78. package/lib/umd/locale/pl-PL.js +1 -1
  79. package/lib/umd/locale/pt-BR.js +1 -1
  80. package/lib/umd/locale/ru-RU.js +1 -1
  81. package/lib/umd/locale/sk-SK.js +1 -1
  82. package/lib/umd/locale/vi-VN.js +1 -1
  83. package/lib/umd/locale/zh-CN.js +1 -1
  84. package/lib/umd/locale/zh-HK.js +1 -1
  85. package/lib/umd/locale/zh-TW.js +1 -1
  86. package/package.json +9 -9
@@ -1 +1 @@
1
- const _0x3bd361=_0x4e51;(function(_0x4f05e1,_0x4902cb){const _0x362603=_0x4e51,_0x1f4204=_0x4f05e1();while(!![]){try{const _0x29326f=parseInt(_0x362603(0x131))/0x1+-parseInt(_0x362603(0x12c))/0x2*(parseInt(_0x362603(0x129))/0x3)+-parseInt(_0x362603(0x13e))/0x4*(parseInt(_0x362603(0x13d))/0x5)+-parseInt(_0x362603(0x133))/0x6*(-parseInt(_0x362603(0x141))/0x7)+-parseInt(_0x362603(0x140))/0x8*(-parseInt(_0x362603(0x127))/0x9)+parseInt(_0x362603(0x12b))/0xa*(parseInt(_0x362603(0x143))/0xb)+-parseInt(_0x362603(0x138))/0xc*(parseInt(_0x362603(0x137))/0xd);if(_0x29326f===_0x4902cb)break;else _0x1f4204['push'](_0x1f4204['shift']());}catch(_0x6bdac8){_0x1f4204['push'](_0x1f4204['shift']());}}}(_0x523f,0x49808));const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':'核取方塊','link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x3bd361(0x12e),'email':_0x3bd361(0x13b),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':'關聯記錄','recordId':_0x3bd361(0x12d),'createdBy':_0x3bd361(0x130),'updatedBy':'更新人','createdAt':'建立時間','updatedAt':_0x3bd361(0x12a),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x3bd361(0x134),'linkPlaceholder':'輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。'},'viewType':{'grid':'表格','kanban':'看板','calendar':'行事曆','gantt':_0x3bd361(0x142),'gallery':'圖庫'},'error':{'fieldNameRequired':_0x3bd361(0x136),'invalidFieldType':_0x3bd361(0x13c),'invalidCellValue':_0x3bd361(0x139),'invalidKanbanGroupField':_0x3bd361(0x13f),'invalidCalendarDateField':'行事曆需要日期欄位','invalidGanttDateField':_0x3bd361(0x132)},'command':{'updateCell':_0x3bd361(0x13a),'createField':_0x3bd361(0x12f),'deleteField':_0x3bd361(0x128),'createRecord':'建立記錄','deleteRecord':'刪除記錄','updateViewConfig':_0x3bd361(0x135)}}};export{e as default};function _0x4e51(_0x2f4bef,_0x5b8c9c){_0x2f4bef=_0x2f4bef-0x127;const _0x523f4a=_0x523f();let _0x4e5180=_0x523f4a[_0x2f4bef];return _0x4e5180;}function _0x523f(){const _0x26098a=['2365620oPSMRh','輸入內容','更新檢視設定','欄位標題不能為空','1352yUpFxg','86808lMHIGN','儲存格值無效','更新儲存格','電子郵件','欄位類型無效','8385WUTeLB','628qzcbPD','看板需要可分組欄位','243520kgcQPG','7LRRUeL','甘特圖','169367XRIrtJ','153eAkWoX','刪除欄位','69dMZBNT','更新時間','250diKlxW','37826rSYACL','記錄\x20ID','電話號碼','建立欄位','建立人','455013LURuJP','甘特圖檢視需要開始和結束日期欄位'];_0x523f=function(){return _0x26098a;};return _0x523f();}
1
+ const _0x2f8a4a=_0x549b;function _0x145b(){const _0x494199=['更新時間','42266egDTaN','14092jgCGVJ','更新人','183905QQrDZP','建立人','建立記錄','刪除記錄','2576788UmBEMZ','行事曆','23178265QnyfiW','欄位標題不能為空','345XEllcv','甘特圖','輸入內容','更新儲存格','電話號碼','儲存格值無效','5nOfzIw','7518248mlClix','996aqgwKs','看板需要可分組欄位','建立時間','電子郵件','8730xwpwua','3810aaCcjz','行事曆需要日期欄位','甘特圖檢視需要開始和結束日期欄位','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。'];_0x145b=function(){return _0x494199;};return _0x145b();}function _0x549b(_0x27813d,_0x428f18){_0x27813d=_0x27813d-0x16a;const _0x145b73=_0x145b();let _0x549b74=_0x145b73[_0x27813d];return _0x549b74;}(function(_0x26ed5e,_0x13bdd2){const _0x49dc78=_0x549b,_0x31b1b9=_0x26ed5e();while(!![]){try{const _0x34122f=parseInt(_0x49dc78(0x16f))/0x1+-parseInt(_0x49dc78(0x16d))/0x2*(parseInt(_0x49dc78(0x177))/0x3)+-parseInt(_0x49dc78(0x173))/0x4*(-parseInt(_0x49dc78(0x17d))/0x5)+parseInt(_0x49dc78(0x17f))/0x6*(-parseInt(_0x49dc78(0x16c))/0x7)+-parseInt(_0x49dc78(0x17e))/0x8+-parseInt(_0x49dc78(0x183))/0x9*(-parseInt(_0x49dc78(0x184))/0xa)+parseInt(_0x49dc78(0x175))/0xb;if(_0x34122f===_0x13bdd2)break;else _0x31b1b9['push'](_0x31b1b9['shift']());}catch(_0x34578f){_0x31b1b9['push'](_0x31b1b9['shift']());}}}(_0x145b,0x86dd8));const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':'核取方塊','link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x2f8a4a(0x17b),'email':_0x2f8a4a(0x182),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':'關聯記錄','recordId':'記錄\x20ID','createdBy':_0x2f8a4a(0x170),'updatedBy':_0x2f8a4a(0x16e),'createdAt':_0x2f8a4a(0x181),'updatedAt':_0x2f8a4a(0x16b),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x2f8a4a(0x179),'linkPlaceholder':_0x2f8a4a(0x16a)},'viewType':{'grid':'表格','kanban':'看板','calendar':_0x2f8a4a(0x174),'gantt':_0x2f8a4a(0x178),'gallery':'圖庫'},'error':{'fieldNameRequired':_0x2f8a4a(0x176),'invalidFieldType':'欄位類型無效','invalidCellValue':_0x2f8a4a(0x17c),'invalidKanbanGroupField':_0x2f8a4a(0x180),'invalidCalendarDateField':_0x2f8a4a(0x185),'invalidGanttDateField':_0x2f8a4a(0x186)},'command':{'updateCell':_0x2f8a4a(0x17a),'createField':'建立欄位','deleteField':'刪除欄位','createRecord':_0x2f8a4a(0x171),'deleteRecord':_0x2f8a4a(0x172),'updateViewConfig':'更新檢視設定'}}};export{e as default};
@@ -1,5 +1,5 @@
1
- import type { BaseCellValue, BaseConditionalDateMode, BaseFilterOperator, FieldConfig, IFieldCapabilities, IFieldSnapshot, IValidationResult } from '@univerjs/core';
2
- import { BaseConditionalColorOperator, BaseFieldType } from '@univerjs/core';
1
+ import type { BaseCellValue, BaseFilterOperator, FieldConfig, IFieldCapabilities, IFieldSnapshot, IValidationResult } from '@univerjs/core';
2
+ import { BaseConditionalColorOperator, BaseConditionalDateMode, BaseFieldType } from '@univerjs/core';
3
3
  export interface IFieldTypePlugin {
4
4
  type: BaseFieldType;
5
5
  enabled: boolean;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x36bd(_0x160828,_0x518372){_0x160828=_0x160828-0xa4;const _0x5d296b=_0x5d29();let _0x36bdd6=_0x5d296b[_0x160828];return _0x36bdd6;}(function(_0x2c8468,_0x4ba1d7){const _0x3c4033=_0x36bd,_0x394f7f=_0x2c8468();while(!![]){try{const _0x38da51=-parseInt(_0x3c4033(0x192))/0x1*(-parseInt(_0x3c4033(0x194))/0x2)+-parseInt(_0x3c4033(0x130))/0x3+parseInt(_0x3c4033(0x102))/0x4*(-parseInt(_0x3c4033(0x1f9))/0x5)+-parseInt(_0x3c4033(0x121))/0x6*(-parseInt(_0x3c4033(0x1db))/0x7)+parseInt(_0x3c4033(0x248))/0x8+parseInt(_0x3c4033(0xc0))/0x9*(-parseInt(_0x3c4033(0xa7))/0xa)+parseInt(_0x3c4033(0xc1))/0xb*(parseInt(_0x3c4033(0x1eb))/0xc);if(_0x38da51===_0x4ba1d7)break;else _0x394f7f['push'](_0x394f7f['shift']());}catch(_0x56a4a8){_0x394f7f['push'](_0x394f7f['shift']());}}}(_0x5d29,0x2b04a),function(_0x231c10,_0xe7974a){const _0x46aeb2=_0x36bd;typeof exports==_0x46aeb2(0x100)&&typeof module<'u'?_0xe7974a(exports,require('@univerjs-pro/bases'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/protocol'),require('@univerjs-pro/engine-formula')):typeof define==_0x46aeb2(0x117)&&define['amd']?define(['exports',_0x46aeb2(0x264),_0x46aeb2(0x16b),'@univerjs/core/facade',_0x46aeb2(0x1fd),'@univerjs-pro/engine-formula'],_0xe7974a):(_0x231c10=typeof globalThis<'u'?globalThis:_0x231c10||self,_0xe7974a(_0x231c10[_0x46aeb2(0xeb)]={},_0x231c10[_0x46aeb2(0x1f8)],_0x231c10[_0x46aeb2(0xde)],_0x231c10[_0x46aeb2(0x1ff)],_0x231c10[_0x46aeb2(0x11d)],_0x231c10[_0x46aeb2(0x167)]));}(this,function(_0x24290d,_0x5c88db,_0x460afa,_0x1813e5,_0x79a0ae,_0xd45dae){const _0x7fc612=_0x36bd;Object[_0x7fc612(0x24b)](_0x24290d,Symbol[_0x7fc612(0x1b6)],{'value':'Module'});var _0x240cde=Object[_0x7fc612(0x206)],_0x43d78c=Object[_0x7fc612(0x24b)],_0x38ed5f=Object[_0x7fc612(0x1f5)],_0x5a7093=Object[_0x7fc612(0x15e)],_0x34531b=Object[_0x7fc612(0x136)],_0x28a82d=Object[_0x7fc612(0x174)][_0x7fc612(0xf4)],_0x46f401=(_0x29b905,_0x3a7915,_0x210beb,_0x49f3c3)=>{const _0x6c26ef=_0x7fc612;if(_0x3a7915&&typeof _0x3a7915==_0x6c26ef(0x100)||typeof _0x3a7915==_0x6c26ef(0x117)){for(var _0x30b620=_0x5a7093(_0x3a7915),_0x563bf9=0x0,_0x17c9f1=_0x30b620[_0x6c26ef(0x208)],_0x40496;_0x563bf9<_0x17c9f1;_0x563bf9++)_0x40496=_0x30b620[_0x563bf9],!_0x28a82d['call'](_0x29b905,_0x40496)&&_0x40496!==_0x210beb&&_0x43d78c(_0x29b905,_0x40496,{'get':(_0x43708c=>_0x3a7915[_0x43708c])[_0x6c26ef(0x17f)](null,_0x40496),'enumerable':!(_0x49f3c3=_0x38ed5f(_0x3a7915,_0x40496))||_0x49f3c3[_0x6c26ef(0x113)]});}return _0x29b905;};_0x1813e5=((_0x19bd60,_0x58edc9,_0x4503ad)=>(_0x4503ad=_0x19bd60==null?{}:_0x240cde(_0x34531b(_0x19bd60)),_0x46f401(_0x58edc9||!_0x19bd60||!_0x19bd60[_0x7fc612(0x103)]||!_0x28a82d[_0x7fc612(0x1e7)](_0x19bd60,_0x7fc612(0x1a9))?_0x43d78c(_0x4503ad,_0x7fc612(0x1a9),{'value':_0x19bd60,'enumerable':!0x0}):_0x4503ad,_0x19bd60)))(_0x1813e5);var _0x4712ce=class{constructor(_0x5608ad,_0x635913,_0x5048d8){const _0x1767f2=_0x7fc612;this[_0x1767f2(0x127)]=_0x5608ad,this[_0x1767f2(0x1a5)]=_0x635913,this['_permissionService']=_0x5048d8;}async['setObjectPermissions'](_0x1eda47){const _0x372768=_0x7fc612;return this[_0x372768(0x1a5)][_0x372768(0xcb)](_0x5c88db[_0x372768(0x203)]['id'],{'unitId':this[_0x372768(0x127)],'changes':_0x1eda47});}async[_0x7fc612(0x24a)](_0x14dc94,_0x50b39f){const _0x1a354c=_0x7fc612;await this[_0x1a354c(0x1a5)][_0x1a354c(0xcb)](_0x5c88db[_0x1a354c(0x1f0)]['id'],{'unitId':this['_unitId'],'objectId':this[_0x1a354c(0x127)],'action':_0x14dc94,'value':_0x50b39f});}[_0x7fc612(0xa6)](_0x6b6a0f){const _0x4a7e2a=_0x7fc612;return(0x0,_0x5c88db[_0x4a7e2a(0x223)])(this['_permissionService'],this[_0x4a7e2a(0x127)],this[_0x4a7e2a(0x127)],_0x6b6a0f);}async[_0x7fc612(0x156)](_0x4eea78=!0x0){const _0x4fa3c0=_0x7fc612;await this['_commandService'][_0x4fa3c0(0xcb)](_0x5c88db[_0x4fa3c0(0x1f0)]['id'],{'unitId':this[_0x4fa3c0(0x127)],'objectId':this[_0x4fa3c0(0x127)],'action':_0x79a0ae['UnitAction']['Edit'],'value':_0x4eea78});}async['setReadOnly'](){const _0x45ba83=_0x7fc612;await this['_commandService'][_0x45ba83(0xcb)](_0x5c88db['SetBasePermissionCommand']['id'],{'unitId':this[_0x45ba83(0x127)],'objectId':this[_0x45ba83(0x127)],'action':_0x79a0ae['UnitAction'][_0x45ba83(0x125)],'value':!0x1});}[_0x7fc612(0x105)](){const _0x3adc4c=_0x7fc612;return(0x0,_0x5c88db[_0x3adc4c(0x223)])(this['_permissionService'],this[_0x3adc4c(0x127)],this[_0x3adc4c(0x127)],_0x79a0ae[_0x3adc4c(0x108)][_0x3adc4c(0x125)]);}},_0x5a8ed0=class{constructor(_0xd0c731,_0x548f7c,_0x3b4bdb,_0x3901d7,_0x5af9c9){const _0x3ac333=_0x7fc612;this[_0x3ac333(0x127)]=_0xd0c731,this['_objectId']=_0x548f7c,this[_0x3ac333(0x1ac)]=_0x3b4bdb,this[_0x3ac333(0x1a5)]=_0x3901d7,this[_0x3ac333(0x1e1)]=_0x5af9c9;}async[_0x7fc612(0x156)](_0x49aa81=!0x0){const _0x17ab44=_0x7fc612;await this[_0x17ab44(0x1a5)]['executeCommand'](_0x5c88db['SetBasePermissionCommand']['id'],{'unitId':this[_0x17ab44(0x127)],'objectId':this[_0x17ab44(0xb0)],'action':_0x79a0ae['UnitAction'][_0x17ab44(0x125)],'value':_0x49aa81});}async[_0x7fc612(0x1fb)](){const _0x422847=_0x7fc612;await this[_0x422847(0x1a5)]['executeCommand'](_0x5c88db['SetBasePermissionCommand']['id'],{'unitId':this[_0x422847(0x127)],'objectId':this[_0x422847(0xb0)],'action':_0x79a0ae[_0x422847(0x108)][_0x422847(0x125)],'value':!0x1});}[_0x7fc612(0x105)](){const _0x3c8af6=_0x7fc612;return(0x0,_0x5c88db[_0x3c8af6(0x128)])(this['_permissionService'],this[_0x3c8af6(0x127)],[...this['_parentObjectIds'],this[_0x3c8af6(0xb0)]]);}};function _0x28bfcd(_0x150bd5,_0x1ca4a7){return function(_0x17b386,_0x1d0d02){_0x1ca4a7(_0x17b386,_0x1d0d02,_0x150bd5);};}function _0x13a9ae(_0x4e3740,_0xa8a803,_0x17e405,_0x4146aa){const _0x46de04=_0x7fc612;var _0x3d730b=arguments[_0x46de04(0x208)],_0x1bb2b9=_0x3d730b<0x3?_0xa8a803:_0x4146aa===null?_0x4146aa=Object[_0x46de04(0x1f5)](_0xa8a803,_0x17e405):_0x4146aa,_0x529a95;if(typeof Reflect=='object'&&typeof Reflect[_0x46de04(0x20a)]==_0x46de04(0x117))_0x1bb2b9=Reflect[_0x46de04(0x20a)](_0x4e3740,_0xa8a803,_0x17e405,_0x4146aa);else{for(var _0x41d3c9=_0x4e3740[_0x46de04(0x208)]-0x1;_0x41d3c9>=0x0;_0x41d3c9--)(_0x529a95=_0x4e3740[_0x41d3c9])&&(_0x1bb2b9=(_0x3d730b<0x3?_0x529a95(_0x1bb2b9):_0x3d730b>0x3?_0x529a95(_0xa8a803,_0x17e405,_0x1bb2b9):_0x529a95(_0xa8a803,_0x17e405))||_0x1bb2b9);}return _0x3d730b>0x3&&_0x1bb2b9&&Object[_0x46de04(0x24b)](_0xa8a803,_0x17e405,_0x1bb2b9),_0x1bb2b9;}let _0x2003da=class{constructor(_0x20d718,_0x2d58ad,_0x5f2701,_0x182a87,_0x1b7888){const _0x44619f=_0x7fc612;this[_0x44619f(0xf8)]=_0x20d718,this[_0x44619f(0x1d1)]=_0x2d58ad,this[_0x44619f(0xdb)]=_0x5f2701,this[_0x44619f(0x1a5)]=_0x182a87,this[_0x44619f(0x1e1)]=_0x1b7888;}[_0x7fc612(0x120)](){const _0x5bd762=_0x7fc612;return this[_0x5bd762(0xdb)];}[_0x7fc612(0x177)](){const _0x20a74e=_0x7fc612;let _0x2627f5=this[_0x20a74e(0x1d1)][_0x20a74e(0x120)]();return new _0x5a8ed0(this[_0x20a74e(0xf8)]['getId'](),(0x0,_0x5c88db[_0x20a74e(0x14e)])(_0x2627f5,this[_0x20a74e(0xdb)]),[(0x0,_0x5c88db[_0x20a74e(0x16c)])(_0x2627f5)],this[_0x20a74e(0x1a5)],this[_0x20a74e(0x1e1)]);}[_0x7fc612(0x1c3)](){const _0x310732=_0x7fc612;return this[_0x310732(0x269)]();}[_0x7fc612(0x1ea)](){const _0x61d17f=_0x7fc612;return this[_0x61d17f(0x269)]()['name'];}[_0x7fc612(0xfb)](){const _0x16f363=_0x7fc612;return this[_0x16f363(0x269)]()[_0x16f363(0x193)];}[_0x7fc612(0x1e0)](){const _0x517ca2=_0x7fc612;return this['_getField']()[_0x517ca2(0x1c8)];}[_0x7fc612(0x1bc)](){const _0x476e33=_0x7fc612;return this['_getField']()[_0x476e33(0xe6)];}[_0x7fc612(0x131)](){const _0x11e4b6=_0x7fc612;return this[_0x11e4b6(0x269)]()[_0x11e4b6(0x19a)];}[_0x7fc612(0x16f)](){const _0x3b0674=_0x7fc612;return!!this['_getField']()[_0x3b0674(0x26e)];}[_0x7fc612(0x256)](_0xf8e58e){return this['update']({'name':_0xf8e58e});}[_0x7fc612(0x262)](_0x2f59b3,_0x802b73){const _0x57cd4b=_0x7fc612;return this[_0x57cd4b(0x25a)]({'config':_0x2f59b3},_0x802b73);}[_0x7fc612(0xd1)](_0x312439){const _0x319412=_0x7fc612;return this[_0x319412(0x25a)]({'defaultValue':_0x312439});}[_0x7fc612(0x25a)](_0x275194,_0x4e06c0){const _0x1967b5=_0x7fc612;let _0x2a3b6c=this[_0x1967b5(0x269)]()[_0x1967b5(0x193)];return(_0x275194[_0x1967b5(0x193)]??_0x2a3b6c)===_0x460afa['BaseFieldType'][_0x1967b5(0x1ef)]&&(Object[_0x1967b5(0x174)]['hasOwnProperty'][_0x1967b5(0x1e7)](_0x275194,_0x1967b5(0x1c8))||_0x275194[_0x1967b5(0x193)]===_0x460afa[_0x1967b5(0x15a)][_0x1967b5(0x1ef)])&&!this[_0x1967b5(0x1e8)](_0x4e06c0)?!0x1:this[_0x1967b5(0x1a5)]['syncExecuteCommand'](_0x5c88db['UpdateBaseFieldCommand']['id'],{'unitId':this[_0x1967b5(0xf8)][_0x1967b5(0x120)](),'tableId':this[_0x1967b5(0x1d1)]['getId'](),'fieldId':this[_0x1967b5(0xdb)],'patch':_0x275194});}[_0x7fc612(0x1c9)](_0x2981db,_0x55c20c={},_0x588ff8){const _0x389768=_0x7fc612;return _0x2981db===_0x460afa[_0x389768(0x15a)]['Formula']&&!this[_0x389768(0x1e8)](_0x588ff8)?!0x1:this[_0x389768(0x1a5)][_0x389768(0x116)](_0x5c88db['ChangeBaseFieldTypeCommand']['id'],{'unitId':this[_0x389768(0xf8)][_0x389768(0x120)](),'tableId':this[_0x389768(0x1d1)][_0x389768(0x120)](),'fieldId':this[_0x389768(0xdb)],'input':{'type':_0x2981db,'config':_0x55c20c}});}[_0x7fc612(0x221)](){const _0x26cf9e=_0x7fc612;return this[_0x26cf9e(0x1a5)][_0x26cf9e(0x116)](_0x5c88db[_0x26cf9e(0x152)]['id'],{'unitId':this['_base'][_0x26cf9e(0x120)](),'tableId':this[_0x26cf9e(0x1d1)][_0x26cf9e(0x120)](),'fieldId':this['_fieldId']});}[_0x7fc612(0x259)](_0x226bef){const _0x50acb2=_0x7fc612;return this[_0x50acb2(0x1a5)][_0x50acb2(0x116)](_0x5c88db['MoveBaseFieldCommand']['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x50acb2(0x1d1)][_0x50acb2(0x120)](),'fieldId':this[_0x50acb2(0xdb)],'target':_0x226bef});}[_0x7fc612(0x269)](){const _0x46849c=_0x7fc612;let _0x340ed6=this[_0x46849c(0x1d1)][_0x46849c(0x1f6)]()['fields'][this[_0x46849c(0xdb)]];if(!_0x340ed6)throw Error(_0x46849c(0x252)+this[_0x46849c(0xdb)]+_0x46849c(0x176));return _0x340ed6;}[_0x7fc612(0x1e8)](_0x3752a5){const _0x3cf057=_0x7fc612;if(!_0x3752a5||!Array[_0x3cf057(0x143)](_0x3752a5[_0x3cf057(0x21a)]))return console[_0x3cf057(0x1da)](_0x3cf057(0x1b9)),!0x1;if(_0x3752a5['externalReferences'][_0x3cf057(0x208)]===0x0)return!0x0;let _0x1c664a=this[_0x3cf057(0x1a5)]['syncExecuteCommand'](_0xd45dae[_0x3cf057(0x182)]['id'],{'unitId':this[_0x3cf057(0xf8)][_0x3cf057(0x120)](),'references':_0x3752a5[_0x3cf057(0x21a)]});return _0x1c664a||console[_0x3cf057(0x1da)]('[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.'),_0x1c664a;}};_0x2003da=_0x13a9ae([_0x28bfcd(0x3,_0x460afa[_0x7fc612(0x11e)]),_0x28bfcd(0x4,_0x460afa[_0x7fc612(0x1ec)])],_0x2003da);let _0x20ef2a=function(_0x3c0a28){const _0x2a8578=_0x7fc612;return _0x3c0a28['Id']='id',_0x3c0a28[_0x2a8578(0x19b)]=_0x2a8578(0x18a),_0x3c0a28['Auto']=_0x2a8578(0x26c),_0x3c0a28;}({});function _0x252e80(_0x2966d1){const _0x2eb0c8=_0x7fc612;return!!(_0x2966d1&&_0x2966d1[_0x2eb0c8(0x104)]!==!0x0&&_0x2966d1[_0x2eb0c8(0x193)]!==_0x460afa[_0x2eb0c8(0x15a)]['RecordId']);}function _0x442707(_0x2d5dea,_0x4c3116,_0x554860='id'){const _0x108aea=_0x7fc612;if(!_0x4c3116)return{};let _0x5beef3={};return Object[_0x108aea(0x1be)](_0x4c3116)[_0x108aea(0x1ca)](([_0x31f8ad,_0x5ee32d])=>{const _0x7a7464=_0x108aea;let _0x430af4=_0x1163c7(_0x2d5dea,_0x31f8ad,_0x554860);_0x5beef3[_0x430af4]=_0xc6743b(_0x2d5dea[_0x7a7464(0x10d)][_0x430af4],_0x5ee32d);}),_0x5beef3;}function _0xc6743b(_0x29100b,_0x2a92c7){const _0x2b4e2a=_0x7fc612;if((_0x29100b==null?void 0x0:_0x29100b[_0x2b4e2a(0x193)])!==_0x460afa[_0x2b4e2a(0x15a)]['Attachment']||_0x2a92c7==null)return _0x2a92c7;if(!Array[_0x2b4e2a(0x143)](_0x2a92c7))throw TypeError(_0x2b4e2a(0x165)+_0x29100b[_0x2b4e2a(0x18a)]+_0x2b4e2a(0xc5));return _0x2a92c7[_0x2b4e2a(0xdd)]((_0x5dbdf1,_0x5a5bc2)=>_0x428122(_0x29100b,_0x5dbdf1,_0x5a5bc2));}function _0x1163c7(_0x2003e1,_0xfff639,_0x486013){const _0x15d84a=_0x7fc612;if(_0x486013==='id'||_0x486013===_0x15d84a(0x26c)&&_0x2003e1['fields'][_0xfff639])return _0xfff639;let _0x3e2812=Object[_0x15d84a(0xda)](_0x2003e1['fields'])[_0x15d84a(0x157)](_0x510a30=>_0x510a30[_0x15d84a(0x18a)]===_0xfff639);if(_0x3e2812['length']===0x1)return _0x3e2812[0x0]['id'];throw _0x3e2812[_0x15d84a(0x208)]>0x1?Error(_0x15d84a(0x205)+_0xfff639):Error(_0x15d84a(0x16e)+_0xfff639);}function _0x428122(_0x5562ff,_0x239ac7,_0xe86263){const _0x3b9a0d=_0x7fc612;let _0x2a667b=_0x3b9a0d(0xcd)+_0xe86263+_0x3b9a0d(0x10f)+_0x5562ff['name']+'\x22';if(!_0x11ee72(_0x239ac7))throw TypeError(_0x2a667b+_0x3b9a0d(0x1c4));if(_0x3b9a0d(0x11c)in _0x239ac7)throw TypeError(_0x2a667b+':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.');if(_0x3b9a0d(0x193)in _0x239ac7)throw TypeError(_0x2a667b+_0x3b9a0d(0x196));let _0x42d8f8=_0x5707c8(_0x239ac7['id'],_0x2a667b,'id'),_0x23ef10=_0x5707c8(_0x239ac7[_0x3b9a0d(0x18a)],_0x2a667b,'name'),_0x2875a6=_0x5707c8(_0x239ac7[_0x3b9a0d(0xa5)],_0x2a667b,_0x3b9a0d(0xa5));return{'id':_0x42d8f8,'name':_0x23ef10,'source':_0x2875a6,'sourceType':_0x352df8(_0x239ac7[_0x3b9a0d(0xc6)],_0x2875a6,_0x2a667b),..._0xc80d1(_0x239ac7,_0x3b9a0d(0x13e),_0x2a667b),..._0x2d5093(_0x239ac7,_0x3b9a0d(0x258),_0x2a667b),..._0x2d5093(_0x239ac7,_0x3b9a0d(0x106),_0x2a667b),..._0x2d5093(_0x239ac7,_0x3b9a0d(0x12a),_0x2a667b),..._0xc80d1(_0x239ac7,_0x3b9a0d(0x185),_0x2a667b)};}function _0x352df8(_0x4d9829,_0x194df3,_0x3c114b){const _0x9b06a9=_0x7fc612;if(_0x4d9829==null)return _0x194df3[_0x9b06a9(0x1e2)](_0x9b06a9(0x202))?_0x460afa[_0x9b06a9(0x166)]['BASE64']:_0x460afa[_0x9b06a9(0x166)][_0x9b06a9(0x1a6)];if(_0x4d9829===_0x460afa[_0x9b06a9(0x166)]['URL']||_0x4d9829===_0x460afa[_0x9b06a9(0x166)][_0x9b06a9(0xce)]||_0x4d9829===_0x460afa[_0x9b06a9(0x166)]['BASE64'])return _0x4d9829;throw TypeError(_0x3c114b+_0x9b06a9(0x126));}function _0x5707c8(_0xecc862,_0x19a858,_0x40b693){const _0x7545de=_0x7fc612;if(typeof _0xecc862!='string'||!_0xecc862[_0x7545de(0xb4)]())throw TypeError(_0x19a858+_0x7545de(0x17d)+_0x40b693+_0x7545de(0x1f2));return _0xecc862;}function _0xc80d1(_0x8412fb,_0x221bb0,_0x3d4e33){const _0x540f39=_0x7fc612;let _0x37eb69=_0x8412fb[_0x221bb0];if(_0x37eb69==null)return{};if(typeof _0x37eb69!=_0x540f39(0x257)||!_0x37eb69[_0x540f39(0xb4)]())throw TypeError(_0x3d4e33+_0x540f39(0x17d)+_0x221bb0+'\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.');return{[_0x221bb0]:_0x37eb69};}function _0x2d5093(_0x2e2a30,_0x186459,_0x1b19c7){const _0x3c9600=_0x7fc612;let _0xb845e1=_0x2e2a30[_0x186459];if(_0xb845e1==null)return{};if(typeof _0xb845e1!=_0x3c9600(0x173)||!Number[_0x3c9600(0xd2)](_0xb845e1)||_0xb845e1<0x0)throw TypeError(_0x1b19c7+_0x3c9600(0x17d)+_0x186459+'\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.');return{[_0x186459]:_0xb845e1};}function _0x11ee72(_0x393c07){return typeof _0x393c07=='object'&&!!_0x393c07&&!Array['isArray'](_0x393c07);}var _0x29e6a3;let _0x7421c3=_0x29e6a3=class{constructor(_0x2b14b7,_0x5e112c,_0x55332c,_0x123fd6,_0x142452){const _0x1599a0=_0x7fc612;this['_base']=_0x2b14b7,this[_0x1599a0(0x1d1)]=_0x5e112c,this[_0x1599a0(0x1b5)]=_0x55332c,this[_0x1599a0(0x1a4)]=_0x123fd6,this[_0x1599a0(0x1a5)]=_0x142452,this['_assertInBounds']();}[_0x7fc612(0xd3)](){const _0x3b2c82=_0x7fc612;return this['_base'][_0x3b2c82(0x120)]();}[_0x7fc612(0x22e)](){const _0x125e0a=_0x7fc612;return this[_0x125e0a(0x1d1)][_0x125e0a(0x120)]();}[_0x7fc612(0x1cc)](){const _0x2d6243=_0x7fc612;return{...this[_0x2d6243(0x1b5)]};}[_0x7fc612(0x22d)](){const _0x5d7736=_0x7fc612;return this[_0x5d7736(0x1b5)][_0x5d7736(0x163)];}[_0x7fc612(0x18c)](){const _0x172c80=_0x7fc612;return this[_0x172c80(0x1b5)][_0x172c80(0x13c)];}[_0x7fc612(0x23c)](){const _0xc4562=_0x7fc612;return this['_range']['endRow']-this[_0xc4562(0x1b5)]['startRow']+0x1;}[_0x7fc612(0x149)](){const _0x49da50=_0x7fc612;return this[_0x49da50(0x1b5)][_0x49da50(0x129)]-this['_range'][_0x49da50(0x13c)]+0x1;}[_0x7fc612(0x21e)](){const _0xfefac0=_0x7fc612;let _0x495c93=this[_0xfefac0(0x26d)](),_0xad1aac=this[_0xfefac0(0xc4)](_0x495c93),_0x5930d0=[];for(let _0x976285=this[_0xfefac0(0x1b5)][_0xfefac0(0x163)];_0x976285<=this[_0xfefac0(0x1b5)][_0xfefac0(0xc9)];_0x976285++){var _0x2f0157;let _0x140b66=(_0x2f0157=_0x495c93[_0xfefac0(0x122)])==null?void 0x0:_0x2f0157[_0x976285],_0xd3b3ab=[];for(let _0xd0f638=this[_0xfefac0(0x1b5)][_0xfefac0(0x13c)];_0xd0f638<=this[_0xfefac0(0x1b5)][_0xfefac0(0x129)];_0xd0f638++){let _0x146d49=_0xad1aac[_0xd0f638];_0xd3b3ab[_0xfefac0(0x1ae)](_0x140b66&&_0x146d49?(0x0,_0x5c88db[_0xfefac0(0xaf)])(_0x495c93,_0x140b66,_0x146d49):null);}_0x5930d0['push'](_0xd3b3ab);}return _0x5930d0;}[_0x7fc612(0x23d)](){const _0x16f115=_0x7fc612;var _0x43b60b;return((_0x43b60b=this[_0x16f115(0x21e)]()[0x0])==null?void 0x0:_0x43b60b[0x0])??null;}[_0x7fc612(0xe4)](_0x32ccc2){const _0x2f0473=_0x7fc612;return this[_0x2f0473(0x183)]([[_0x32ccc2]]);}[_0x7fc612(0x183)](_0x2040f8){const _0x1414d5=_0x7fc612;let _0x107280=this['getNumRows'](),_0x1d2c18=this['getNumColumns']();if(_0x2040f8['length']>_0x107280||_0x2040f8[_0x1414d5(0x24e)](_0xe84f40=>_0xe84f40['length']>_0x1d2c18)){var _0x328665;throw Error('[FBaseRange]:\x20values\x20size\x20'+_0x2040f8[_0x1414d5(0x208)]+'x'+(((_0x328665=_0x2040f8[0x0])==null?void 0x0:_0x328665[_0x1414d5(0x208)])??0x0)+_0x1414d5(0x142)+_0x107280+'x'+_0x1d2c18+'.');}let _0x3d23d6=this[_0x1414d5(0x26d)](),_0x9b2e45=this[_0x1414d5(0xc4)](_0x3d23d6),_0x5e4376=_0x2040f8[_0x1414d5(0x1b0)]((_0x5e74d3,_0x319ac9)=>_0x5e74d3[_0x1414d5(0xdd)]((_0x385426,_0x4c4336)=>{const _0x4ba10c=_0x1414d5;var _0x295936;let _0x1d3feb=this[_0x4ba10c(0x1b5)][_0x4ba10c(0x163)]+_0x319ac9,_0x44f846=_0x9b2e45[this[_0x4ba10c(0x1b5)][_0x4ba10c(0x13c)]+_0x4c4336],_0x423a19=(_0x295936=_0x3d23d6[_0x4ba10c(0x122)])==null?void 0x0:_0x295936[_0x1d3feb];if(!_0x44f846||!_0x423a19)throw Error(_0x4ba10c(0x188));return{'recordId':_0x423a19,'fieldId':_0x44f846,'value':_0x385426};}));return this['_commandService'][_0x1414d5(0x116)](_0x5c88db[_0x1414d5(0xcf)]['id'],{'unitId':this[_0x1414d5(0xf8)]['getId'](),'tableId':this[_0x1414d5(0x1d1)][_0x1414d5(0x120)](),'patches':_0x5e4376,'source':_0x5c88db[_0x1414d5(0x21c)][_0x1414d5(0x137)]});}[_0x7fc612(0x1fe)](){const _0x45f4fb=_0x7fc612;return this[_0x45f4fb(0x183)](Array[_0x45f4fb(0x144)]({'length':this[_0x45f4fb(0x23c)]()},()=>Array[_0x45f4fb(0x144)]({'length':this[_0x45f4fb(0x149)]()},()=>null)));}[_0x7fc612(0xe1)](_0xbadc55,_0x558647,_0x25f62a=this[_0x7fc612(0x23c)](),_0x393ed0=this[_0x7fc612(0x149)]()){const _0x583543=_0x7fc612;return this['_inject'][_0x583543(0x254)](_0x29e6a3,this[_0x583543(0xf8)],this[_0x583543(0x1d1)],{'startRow':this[_0x583543(0x1b5)][_0x583543(0x163)]+_0xbadc55,'startColumn':this[_0x583543(0x1b5)][_0x583543(0x13c)]+_0x558647,'endRow':this[_0x583543(0x1b5)]['startRow']+_0xbadc55+_0x25f62a-0x1,'endColumn':this[_0x583543(0x1b5)][_0x583543(0x13c)]+_0x558647+_0x393ed0-0x1},this[_0x583543(0x1a4)]);}['_getTable'](){const _0x26d41e=_0x7fc612;let _0x28739f=this['_table'][_0x26d41e(0x1f6)]();if(!_0x28739f)throw Error(_0x26d41e(0x1ce));return(0x0,_0x5c88db[_0x26d41e(0x1e5)])(_0x28739f);}[_0x7fc612(0x1ab)](){const _0x4f011a=_0x7fc612;var _0x3d4c9c;let _0x443212=this[_0x4f011a(0x26d)](),_0x3d9005=((_0x3d4c9c=_0x443212[_0x4f011a(0x1b8)])==null?void 0x0:_0x3d4c9c[_0x4f011a(0x208)])??0x0,_0x3b95a1=this[_0x4f011a(0xc4)](_0x443212)[_0x4f011a(0x208)];if(this[_0x4f011a(0x1b5)][_0x4f011a(0x163)]<0x0||this[_0x4f011a(0x1b5)][_0x4f011a(0x13c)]<0x0||this[_0x4f011a(0x1b5)][_0x4f011a(0xc9)]<this[_0x4f011a(0x1b5)][_0x4f011a(0x163)]||this[_0x4f011a(0x1b5)][_0x4f011a(0x129)]<this[_0x4f011a(0x1b5)]['startColumn']||this['_range'][_0x4f011a(0xc9)]>=Math[_0x4f011a(0x17c)](_0x3d9005,0x1)||this[_0x4f011a(0x1b5)][_0x4f011a(0x129)]>=Math[_0x4f011a(0x17c)](_0x3b95a1,0x1))throw Error(_0x4f011a(0x1dd)+_0x3d9005+',\x20max\x20columns:\x20'+_0x3b95a1+',\x20range:\x20'+JSON[_0x4f011a(0xf9)](this[_0x4f011a(0x1b5)])+'.');}[_0x7fc612(0xc4)](_0x341603){const _0x20b5b7=_0x7fc612;return _0x341603[_0x20b5b7(0x266)]['filter'](_0x2c60b2=>_0x252e80(_0x341603[_0x20b5b7(0x10d)][_0x2c60b2]));}};_0x7421c3=_0x29e6a3=_0x13a9ae([_0x28bfcd(0x4,_0x460afa[_0x7fc612(0x11e)])],_0x7421c3);function _0x355bd6(_0x40d272){'@babel/helpers - typeof';const _0x217e0e=_0x7fc612;return _0x355bd6=typeof Symbol==_0x217e0e(0x117)&&typeof Symbol[_0x217e0e(0x1c1)]==_0x217e0e(0xd8)?function(_0x46eefa){return typeof _0x46eefa;}:function(_0x5a6936){const _0x3a8328=_0x217e0e;return _0x5a6936&&typeof Symbol=='function'&&_0x5a6936[_0x3a8328(0xfd)]===Symbol&&_0x5a6936!==Symbol['prototype']?_0x3a8328(0xd8):typeof _0x5a6936;},_0x355bd6(_0x40d272);}function _0x519528(_0x3e2930,_0x428fe2){const _0x58ae1a=_0x7fc612;if(_0x355bd6(_0x3e2930)!='object'||!_0x3e2930)return _0x3e2930;var _0x4af851=_0x3e2930[Symbol[_0x58ae1a(0xef)]];if(_0x4af851!==void 0x0){var _0x37637a=_0x4af851[_0x58ae1a(0x1e7)](_0x3e2930,_0x428fe2||_0x58ae1a(0x1a9));if(_0x355bd6(_0x37637a)!='object')return _0x37637a;throw TypeError(_0x58ae1a(0x18f));}return(_0x428fe2==='string'?String:Number)(_0x3e2930);}function _0x470fcf(_0x1dc220){const _0x11cbe4=_0x7fc612;var _0x50ad3f=_0x519528(_0x1dc220,_0x11cbe4(0x257));return _0x355bd6(_0x50ad3f)==_0x11cbe4(0xd8)?_0x50ad3f:_0x50ad3f+'';}function _0x4bfb41(_0x30c01e,_0x3cac1b,_0x203a85){const _0x27ecd6=_0x7fc612;return(_0x3cac1b=_0x470fcf(_0x3cac1b))in _0x30c01e?Object[_0x27ecd6(0x24b)](_0x30c01e,_0x3cac1b,{'value':_0x203a85,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x30c01e[_0x3cac1b]=_0x203a85,_0x30c01e;}var _0x58929a;let _0x54b90e=_0x58929a=class extends _0x1813e5[_0x7fc612(0xa9)]{constructor(_0x1960d3,_0x4bb3ca,_0xe43480,_0xc28f69,_0x121866,_0x255924){const _0x3aa6dc=_0x7fc612;super(_0xc28f69),this[_0x3aa6dc(0xf8)]=_0x1960d3,this[_0x3aa6dc(0x1d1)]=_0x4bb3ca,this[_0x3aa6dc(0x1d9)]=_0xe43480,this[_0x3aa6dc(0x1aa)]=_0xc28f69,this[_0x3aa6dc(0x1a5)]=_0x121866,this['_permissionService']=_0x255924,_0x4bfb41(this,_0x3aa6dc(0x17a),void 0x0),_0x4bfb41(this,_0x3aa6dc(0x195),void 0x0),this[_0x3aa6dc(0x17a)]=_0x1960d3[_0x3aa6dc(0x120)](),this[_0x3aa6dc(0x195)]=_0x4bb3ca['getId']();}['getBaseFacade'](){return this['_base'];}[_0x7fc612(0x10b)](){const _0x1d32c7=_0x7fc612;return this[_0x1d32c7(0x1d1)];}[_0x7fc612(0x120)](){const _0x5eb4fd=_0x7fc612;return this[_0x5eb4fd(0x1d9)];}[_0x7fc612(0x177)](){const _0x567249=_0x7fc612;let _0x3b1e5a=this['_table']['getId']();return new _0x5a8ed0(this[_0x567249(0xf8)][_0x567249(0x120)](),(0x0,_0x5c88db[_0x567249(0x236)])(_0x3b1e5a,this[_0x567249(0x1d9)]),[(0x0,_0x5c88db[_0x567249(0x16c)])(_0x3b1e5a)],this[_0x567249(0x1a5)],this['_permissionService']);}[_0x7fc612(0x184)](){const _0x330fbd=_0x7fc612;return{...this[_0x330fbd(0x215)](),'values':this[_0x330fbd(0x21e)]()};}[_0x7fc612(0x23d)](_0x1285f1){const _0x1c2173=_0x7fc612;return _0x252e80(this[_0x1c2173(0x1d1)][_0x1c2173(0x1f6)]()[_0x1c2173(0x10d)][_0x1285f1])?this[_0x1c2173(0x215)]()[_0x1c2173(0xda)][_0x1285f1]??null:null;}['getValues'](){const _0x2a147c=_0x7fc612;let _0x48f101=this[_0x2a147c(0x1d1)][_0x2a147c(0x1f6)]();return Object['fromEntries'](Object[_0x2a147c(0x1be)](this['_getRecord']()[_0x2a147c(0xda)])[_0x2a147c(0x157)](([_0x2a154b])=>_0x252e80(_0x48f101[_0x2a147c(0x10d)][_0x2a154b])));}[_0x7fc612(0xe4)](_0x2a5e6b,_0x87bb83){const _0x599cae=_0x7fc612;let _0x5eeecf=this[_0x599cae(0x1d1)][_0x599cae(0x1f6)]()[_0x599cae(0x10d)][_0x2a5e6b];return this[_0x599cae(0x1a5)]['syncExecuteCommand'](_0x5c88db['UpdateBaseCellCommand']['id'],{'unitId':this[_0x599cae(0xf8)][_0x599cae(0x120)](),'tableId':this[_0x599cae(0x1d1)][_0x599cae(0x120)](),'recordId':this[_0x599cae(0x1d9)],'fieldId':_0x2a5e6b,'value':_0xc6743b(_0x5eeecf,_0x87bb83),'source':_0x5c88db[_0x599cae(0x21c)][_0x599cae(0x137)]});}[_0x7fc612(0x18b)](_0x243759,_0x1f6d0d){const _0x5314a9=_0x7fc612;return this['setValue'](_0x243759,_0x1f6d0d[_0x5314a9(0xdd)](_0x1bc2a1=>({..._0x1bc2a1})));}[_0x7fc612(0x1b4)](_0x1a9014){const _0xc28d5e=_0x7fc612;this[_0xc28d5e(0x14f)](_0x1a9014);let _0x46e85c=this[_0xc28d5e(0x23d)](_0x1a9014);return Array[_0xc28d5e(0x143)](_0x46e85c)?_0x46e85c[_0xc28d5e(0xdd)]((_0x84d62b,_0x36b250)=>_0x348615(_0x84d62b,_0x1a9014,_0x36b250)):[];}['deleteAttachments'](_0x2812e2,_0x6e47ac){const _0x331a23=_0x7fc612;this[_0x331a23(0x14f)](_0x2812e2);let _0xbd676d=new Set(_0x6e47ac[_0x331a23(0xdd)](_0x4f99b1=>_0x4f99b1['id']));if(!_0xbd676d[_0x331a23(0x258)])return!0x0;let _0x56aaf9=this[_0x331a23(0x1b4)](_0x2812e2),_0x5dafe8=_0x56aaf9[_0x331a23(0x157)](_0x10c96b=>!_0xbd676d[_0x331a23(0x268)](_0x10c96b['id']));return _0x5dafe8['length']===_0x56aaf9[_0x331a23(0x208)]||this[_0x331a23(0x18b)](_0x2812e2,_0x5dafe8);}['setValues'](_0x43f11a,_0x2df142='id'){const _0x35bf38=_0x7fc612;let _0x331c2d=this[_0x35bf38(0x1d1)]['getTable'](),_0x21fb6d=[{'recordId':this[_0x35bf38(0x1d9)],'values':_0x442707(_0x331c2d,_0x43f11a,_0x2df142)}];return this[_0x35bf38(0x1a5)][_0x35bf38(0x116)](_0x5c88db[_0x35bf38(0x25c)]['id'],{'unitId':this[_0x35bf38(0xf8)][_0x35bf38(0x120)](),'tableId':this[_0x35bf38(0x1d1)]['getId'](),'patches':_0x21fb6d,'source':_0x5c88db['BaseEventSource'][_0x35bf38(0x137)]});}['delete'](){const _0x52abf8=_0x7fc612;return this[_0x52abf8(0x1a5)][_0x52abf8(0x116)](_0x5c88db['DeleteBaseRecordCommand']['id'],{'unitId':this[_0x52abf8(0xf8)]['getId'](),'tableId':this[_0x52abf8(0x1d1)][_0x52abf8(0x120)](),'recordId':this[_0x52abf8(0x1d9)],'source':_0x5c88db[_0x52abf8(0x21c)][_0x52abf8(0x137)]});}[_0x7fc612(0xfa)](_0x2fbd74){const _0x42492f=_0x7fc612;let _0x24f24a={...this[_0x42492f(0x215)](),..._0x2fbd74,'id':(0x0,_0x460afa['generateRandomId'])(0x6)};_0x24f24a[_0x42492f(0xda)]={..._0x24f24a[_0x42492f(0xda)],..._0x2fbd74==null?void 0x0:_0x2fbd74[_0x42492f(0xda)]},Reflect[_0x42492f(0x1fc)](_0x24f24a[_0x42492f(0xda)],_0x460afa[_0x42492f(0x17b)]);let _0xa23708=Date[_0x42492f(0x170)]();if(_0x24f24a[_0x42492f(0x225)]||=''+_0xa23708,_0x24f24a[_0x42492f(0x244)]||=_0xa23708,_0x24f24a[_0x42492f(0x263)]||=_0xa23708,!this[_0x42492f(0x1a5)]['syncExecuteCommand'](_0x5c88db[_0x42492f(0x21f)]['id'],{'unitId':this[_0x42492f(0xf8)][_0x42492f(0x120)](),'tableId':this[_0x42492f(0x1d1)][_0x42492f(0x120)](),'sourceRecordId':this[_0x42492f(0x1d9)],'record':_0x24f24a,'source':_0x5c88db[_0x42492f(0x21c)][_0x42492f(0x137)]}))throw Error('[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22'+this[_0x42492f(0x1d9)]+'\x22.');return this[_0x42492f(0x1aa)][_0x42492f(0x254)](_0x58929a,this[_0x42492f(0xf8)],this[_0x42492f(0x1d1)],_0x24f24a['id'],this[_0x42492f(0x1aa)]);}['setOrderKey'](_0x151bef){const _0x26f9aa=_0x7fc612;return this[_0x26f9aa(0x1a5)]['syncExecuteCommand'](_0x5c88db[_0x26f9aa(0xc2)]['id'],{'unitId':this[_0x26f9aa(0xf8)][_0x26f9aa(0x120)](),'tableId':this[_0x26f9aa(0x1d1)][_0x26f9aa(0x120)](),'recordId':this[_0x26f9aa(0x1d9)],'orderKey':_0x151bef});}[_0x7fc612(0x24d)](_0x1276bf){const _0x2da815=_0x7fc612;let _0x15a193=this[_0x2da815(0x234)](_0x1276bf),_0x5c4d68=this[_0x2da815(0x23d)](_0x15a193['id']);return(0x0,_0x5c88db['parseRecordLinkIds'])(_0x5c4d68);}[_0x7fc612(0x1a3)](_0x1c311b,_0x597095){const _0xd470a=_0x7fc612;let _0x1e0540=this[_0xd470a(0x234)](_0x1c311b),_0x3f3e3f=(0x0,_0x5c88db[_0xd470a(0x133)])(_0x597095),_0x419888=(0x0,_0x5c88db[_0xd470a(0x233)])(this[_0xd470a(0xf8)][_0xd470a(0x14d)]()[_0xd470a(0x153)](),_0x1e0540,_0x3f3e3f);if(!_0x419888[_0xd470a(0x15f)])throw Error(_0x419888[_0xd470a(0x26b)]??_0xd470a(0xad));return this[_0xd470a(0x1a5)][_0xd470a(0x116)](_0x5c88db[_0xd470a(0x21b)]['id'],{'unitId':this['_base'][_0xd470a(0x120)](),'tableId':this[_0xd470a(0x1d1)][_0xd470a(0x120)](),'recordId':this[_0xd470a(0x1d9)],'fieldId':_0x1c311b,'value':_0x3f3e3f,'source':_0x5c88db['BaseEventSource'][_0xd470a(0x137)]});}['addLinkedRecord'](_0x4abb9a,_0x28da4d){const _0xc6d78e=_0x7fc612;let _0x4fa22a=this[_0xc6d78e(0x234)](_0x4abb9a),_0x427489=(0x0,_0x5c88db['getRecordLinkFieldConfig'])(_0x4fa22a);if(!_0x427489)throw Error(_0xc6d78e(0x17e)+_0x4abb9a+'\x22\x20has\x20invalid\x20config.');let _0xdc0227=this['getLinkedRecordIds'](_0x4abb9a);return _0x427489[_0xc6d78e(0xa4)]&&_0xdc0227[_0xc6d78e(0x23b)](_0x28da4d)?!0x0:this[_0xc6d78e(0x1a3)](_0x4abb9a,_0x427489[_0xc6d78e(0xa4)]?[..._0xdc0227,_0x28da4d]:[_0x28da4d]);}[_0x7fc612(0x1f4)](_0xcea406,_0x281f3d){const _0x34ce62=_0x7fc612;let _0x158944=this[_0x34ce62(0x24d)](_0xcea406);return!_0x158944[_0x34ce62(0x23b)](_0x281f3d)||this[_0x34ce62(0x1a3)](_0xcea406,_0x158944[_0x34ce62(0x157)](_0x460eef=>_0x460eef!==_0x281f3d));}[_0x7fc612(0x249)](_0x1754aa){const _0x49ab42=_0x7fc612;let _0x1e1614=this[_0x49ab42(0xbe)](_0x1754aa)['parentByRecordId'][_0x49ab42(0xfe)](this[_0x49ab42(0x1d9)])??null;return _0x1e1614?this[_0x49ab42(0x1d1)][_0x49ab42(0x267)](_0x1e1614):null;}['getChildren'](_0x3b0334){const _0x133c01=_0x7fc612;return(this[_0x133c01(0xbe)](_0x3b0334)[_0x133c01(0x19c)][_0x133c01(0xfe)](this['_recordId'])??[])[_0x133c01(0x1b0)](_0x406ade=>{const _0x5d4338=_0x133c01;let _0x2b50be=this[_0x5d4338(0x1d1)][_0x5d4338(0x267)](_0x406ade);return _0x2b50be?[_0x2b50be]:[];});}[_0x7fc612(0x151)](_0x3a821d){const _0x13fc9c=_0x7fc612;let _0x2504b7=this[_0x13fc9c(0xbe)](_0x3a821d),_0x30175e=[],_0x3fd7d1=_0x2504b7[_0x13fc9c(0x1e3)][_0x13fc9c(0xfe)](this[_0x13fc9c(0x1d9)])??null;for(;_0x3fd7d1;){let _0x412ac7=this['_table'][_0x13fc9c(0x267)](_0x3fd7d1);_0x412ac7&&_0x30175e[_0x13fc9c(0x1ae)](_0x412ac7),_0x3fd7d1=_0x2504b7[_0x13fc9c(0x1e3)]['get'](_0x3fd7d1)??null;}return _0x30175e;}['getDescendants'](_0x3bbed0){const _0x3e6b9f=_0x7fc612;let _0x1a9f9f=this['_getHierarchyIndex'](_0x3bbed0),_0x4a3bef=_0x1a9f9f['orderedRecordIds'][_0x3e6b9f(0x164)](this['_recordId']),_0x19e6a2=_0x1a9f9f[_0x3e6b9f(0x226)][_0x3e6b9f(0x268)](this[_0x3e6b9f(0x1d9)])?this[_0x3e6b9f(0x23f)](_0x1a9f9f[_0x3e6b9f(0x19c)],this[_0x3e6b9f(0x1d9)]):[];return _0x4a3bef<0x0?[]:_0x19e6a2['flatMap'](_0x3df358=>{const _0x13e8d6=_0x3e6b9f;let _0x3a9a1c=this[_0x13e8d6(0x1d1)][_0x13e8d6(0x267)](_0x3df358);return _0x3a9a1c?[_0x3a9a1c]:[];});}['setParent'](_0x2e66dd,_0x4266c8,_0x6d703a){const _0x669f4b=_0x7fc612;return this['_commandService'][_0x669f4b(0x116)](_0x5c88db['MoveBaseHierarchyRecordCommand']['id'],{'unitId':this[_0x669f4b(0xf8)][_0x669f4b(0x120)](),'tableId':this[_0x669f4b(0x1d1)][_0x669f4b(0x120)](),'fieldId':_0x2e66dd,'recordId':this['_recordId'],'parentRecordId':_0x4266c8,'orderKey':_0x6d703a,'source':_0x5c88db[_0x669f4b(0x21c)][_0x669f4b(0x137)]});}[_0x7fc612(0xf3)](_0x144f35,_0x2a4cc7,_0x17b3ca='id',_0x46c434){const _0x48f7e2=_0x7fc612;let _0x4c1a80=this[_0x48f7e2(0x1d1)][_0x48f7e2(0x1f6)](),_0x3ce232=Date[_0x48f7e2(0x170)](),_0x159e39={..._0x46c434,'id':(0x0,_0x460afa[_0x48f7e2(0x115)])(0x6),'values':_0x442707(_0x4c1a80,_0x2a4cc7,_0x17b3ca),'orderKey':(_0x46c434==null?void 0x0:_0x46c434[_0x48f7e2(0x225)])||''+_0x3ce232,'createdAt':(_0x46c434==null?void 0x0:_0x46c434[_0x48f7e2(0x244)])||_0x3ce232,'updatedAt':(_0x46c434==null?void 0x0:_0x46c434[_0x48f7e2(0x263)])||_0x3ce232};if(!this[_0x48f7e2(0x1a5)][_0x48f7e2(0x116)](_0x5c88db[_0x48f7e2(0x112)]['id'],{'unitId':this[_0x48f7e2(0xf8)]['getId'](),'tableId':this['_table']['getId'](),'fieldId':_0x144f35,'parentRecordId':this['_recordId'],'record':_0x159e39,'source':_0x5c88db[_0x48f7e2(0x21c)]['Facade']}))throw Error('[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22'+this[_0x48f7e2(0x1d9)]+'\x22.');return this['_injector'][_0x48f7e2(0x254)](_0x58929a,this[_0x48f7e2(0xf8)],this[_0x48f7e2(0x1d1)],_0x159e39['id'],this['_injector']);}['_getHierarchyIndex'](_0x5dba52){const _0x582a55=_0x7fc612;return(0x0,_0x5c88db[_0x582a55(0x15d)])(this[_0x582a55(0x1d1)][_0x582a55(0x1f6)](),_0x5dba52);}[_0x7fc612(0x23f)](_0x2131b3,_0x2b4ad7){let _0x5b3ba7=[],_0x472514=_0x58d9ca=>{const _0xe678bd=_0x36bd;for(let _0x29c377 of _0x2131b3[_0xe678bd(0xfe)](_0x58d9ca)??[])_0x5b3ba7[_0xe678bd(0x1ae)](_0x29c377),_0x472514(_0x29c377);};return _0x472514(_0x2b4ad7),_0x5b3ba7;}['_getRecord'](){const _0x401412=_0x7fc612;let _0x476abe=this['_table']['getTable']()[_0x401412(0x211)][this['_recordId']];if(!_0x476abe)throw Error(_0x401412(0x111)+this[_0x401412(0x1d9)]+_0x401412(0x176));return _0x476abe;}['_getRecordLinkField'](_0x188b85){const _0x236690=_0x7fc612;let _0x5237c5=this['_table'][_0x236690(0x1f6)]()['fields'][_0x188b85];if(!_0x5237c5||_0x5237c5[_0x236690(0x193)]!==_0x460afa[_0x236690(0x15a)]['RecordLink'])throw Error(_0x236690(0xe0)+_0x188b85+_0x236690(0x224));return _0x5237c5;}[_0x7fc612(0x14f)](_0x28d107){const _0x4f711e=_0x7fc612;let _0x3bdcbf=this['_table'][_0x4f711e(0x1f6)]()[_0x4f711e(0x10d)][_0x28d107];if(!_0x3bdcbf||_0x3bdcbf[_0x4f711e(0x193)]!==_0x460afa['BaseFieldType']['Attachment'])throw Error(_0x4f711e(0xe0)+_0x28d107+_0x4f711e(0x11a));return _0x3bdcbf;}};_0x54b90e=_0x58929a=_0x13a9ae([_0x28bfcd(0x4,_0x460afa[_0x7fc612(0x11e)]),_0x28bfcd(0x5,_0x460afa[_0x7fc612(0x1ec)])],_0x54b90e);function _0x4f7114(_0x3c199f){const _0x2eb747=_0x7fc612;return!!(_0x3c199f&&typeof _0x3c199f==_0x2eb747(0x100)&&'id'in _0x3c199f&&typeof _0x3c199f['id']==_0x2eb747(0x257)&&'name'in _0x3c199f&&typeof _0x3c199f[_0x2eb747(0x18a)]==_0x2eb747(0x257));}function _0x348615(_0x5c8504,_0x16efbb,_0x13b3ee){const _0x397c48=_0x7fc612;if(!_0x4f7114(_0x5c8504))throw Error(_0x397c48(0x171)+_0x13b3ee+'\x20in\x20field\x20\x22'+_0x16efbb+_0x397c48(0xe8));return{..._0x5c8504};}let _0x282005=class{constructor(_0x2db3dd,_0x14bbef,_0x52e7ed,_0x38dffc,_0x4d5ccc,_0x563da2,_0x3aac7f){const _0x4706a5=_0x7fc612;this[_0x4706a5(0xf8)]=_0x2db3dd,this[_0x4706a5(0x1d1)]=_0x14bbef,this[_0x4706a5(0xe5)]=_0x52e7ed,this[_0x4706a5(0x1aa)]=_0x38dffc,this[_0x4706a5(0x1a5)]=_0x4d5ccc,this[_0x4706a5(0x1e1)]=_0x563da2,this[_0x4706a5(0x1c5)]=_0x3aac7f;}[_0x7fc612(0x120)](){const _0x5e941a=_0x7fc612;return this[_0x5e941a(0xe5)];}['getPermission'](){const _0x3ff2ec=_0x7fc612;let _0x1ab22c=this[_0x3ff2ec(0x1d1)]['getId']();return new _0x5a8ed0(this[_0x3ff2ec(0xf8)]['getId'](),(0x0,_0x5c88db[_0x3ff2ec(0xd0)])(_0x1ab22c,this[_0x3ff2ec(0xe5)]),[(0x0,_0x5c88db['getBaseTablePermissionObjectId'])(_0x1ab22c)],this[_0x3ff2ec(0x1a5)],this[_0x3ff2ec(0x1e1)]);}['getView'](){const _0x4db57b=_0x7fc612;return this[_0x4db57b(0xdc)]();}['getName'](){const _0x5eff38=_0x7fc612;return this[_0x5eff38(0xdc)]()[_0x5eff38(0x18a)];}[_0x7fc612(0xfb)](){const _0x51f7c6=_0x7fc612;return this[_0x51f7c6(0xdc)]()[_0x51f7c6(0x193)];}['setName'](_0x2d19c2){const _0x2f203d=_0x7fc612;return this[_0x2f203d(0x1a5)]['syncExecuteCommand'](_0x5c88db[_0x2f203d(0xac)]['id'],{'unitId':this['_base'][_0x2f203d(0x120)](),'tableId':this[_0x2f203d(0x1d1)][_0x2f203d(0x120)](),'viewId':this[_0x2f203d(0xe5)],'name':_0x2d19c2});}['getConfig'](){const _0x4ea6f7=_0x7fc612;let _0x53296b=this[_0x4ea6f7(0xfb)](),_0x127685=this[_0x4ea6f7(0xdc)]()[_0x4ea6f7(0x1c8)];switch(_0x53296b){case _0x460afa[_0x4ea6f7(0xb8)]['Grid']:return _0x127685;case _0x460afa[_0x4ea6f7(0xb8)][_0x4ea6f7(0xb6)]:return _0x127685;case _0x460afa[_0x4ea6f7(0xb8)][_0x4ea6f7(0x155)]:return _0x127685;case _0x460afa[_0x4ea6f7(0xb8)][_0x4ea6f7(0x1a1)]:return _0x127685;case _0x460afa[_0x4ea6f7(0xb8)][_0x4ea6f7(0xb9)]:return _0x127685;default:return _0x127685;}}[_0x7fc612(0x190)](_0x10943c){const _0x3507f8=_0x7fc612;return this[_0x3507f8(0x1a5)][_0x3507f8(0x116)](_0x5c88db[_0x3507f8(0x1e9)]['id'],{'unitId':this[_0x3507f8(0xf8)][_0x3507f8(0x120)](),'tableId':this[_0x3507f8(0x1d1)]['getId'](),'viewId':this[_0x3507f8(0xe5)],'patch':_0x10943c});}[_0x7fc612(0x160)](){const _0x41e2cf=_0x7fc612;var _0x5f9f9f;return _0x460afa['Tools'][_0x41e2cf(0x1a2)](((_0x5f9f9f=this[_0x41e2cf(0xdc)]()[_0x41e2cf(0x1c8)][_0x41e2cf(0x222)])==null?void 0x0:_0x5f9f9f[_0x41e2cf(0x139)])??[]);}[_0x7fc612(0x1d5)](_0x4a4514){const _0x3d7a04=_0x7fc612;return this[_0x3d7a04(0x1a5)]['syncExecuteCommand'](_0x5c88db[_0x3d7a04(0x213)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x3d7a04(0x1d1)][_0x3d7a04(0x120)](),'viewId':this[_0x3d7a04(0xe5)],'type':_0x5c88db[_0x3d7a04(0xae)]['Set'],'rules':_0x4a4514});}[_0x7fc612(0x261)](_0x4a2078){const _0x45eb9a=_0x7fc612;return this[_0x45eb9a(0x1a5)][_0x45eb9a(0x116)](_0x5c88db[_0x45eb9a(0x213)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x45eb9a(0x1d1)][_0x45eb9a(0x120)](),'viewId':this[_0x45eb9a(0xe5)],'type':_0x5c88db[_0x45eb9a(0xae)]['Add'],'rule':_0x4a2078});}[_0x7fc612(0x18d)](_0x1b0945){const _0x8834f0=_0x7fc612;return this[_0x8834f0(0x1a5)][_0x8834f0(0x116)](_0x5c88db[_0x8834f0(0x213)]['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table']['getId'](),'viewId':this[_0x8834f0(0xe5)],'type':_0x5c88db[_0x8834f0(0xae)][_0x8834f0(0x204)],'ruleId':_0x1b0945});}[_0x7fc612(0x12d)](){const _0x297e9e=_0x7fc612;return this['_commandService'][_0x297e9e(0x116)](_0x5c88db[_0x297e9e(0x213)]['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0x297e9e(0x120)](),'viewId':this['_viewId'],'type':_0x5c88db['BaseConditionalColorRuleUpdateType'][_0x297e9e(0xd5)]});}['getFilter'](){const _0x15baf6=_0x7fc612;return this[_0x15baf6(0xdc)]()[_0x15baf6(0x157)]??null;}[_0x7fc612(0x1f3)](_0x3b8f72){const _0x408241=_0x7fc612;return this[_0x408241(0x1a5)][_0x408241(0x116)](_0x5c88db[_0x408241(0x22c)]['id'],{'unitId':this[_0x408241(0xf8)][_0x408241(0x120)](),'tableId':this[_0x408241(0x1d1)][_0x408241(0x120)](),'viewId':this['_viewId'],'filter':_0x3b8f72});}[_0x7fc612(0x138)](){const _0x1cdbb4=_0x7fc612;return this[_0x1cdbb4(0xdc)]()['sort']??[];}[_0x7fc612(0x1e4)](_0x10ec34){const _0x1ce9fa=_0x7fc612;return this[_0x1ce9fa(0x1a5)][_0x1ce9fa(0x116)](_0x5c88db[_0x1ce9fa(0x107)]['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0x1ce9fa(0x120)](),'viewId':this[_0x1ce9fa(0xe5)],'sort':_0x10ec34});}['getGroup'](){const _0x14690a=_0x7fc612;return this[_0x14690a(0xdc)]()['group']??[];}['setGroup'](_0x55e345){const _0x55a85e=_0x7fc612;return this['_commandService']['syncExecuteCommand'](_0x5c88db[_0x55a85e(0x14b)]['id'],{'unitId':this[_0x55a85e(0xf8)][_0x55a85e(0x120)](),'tableId':this[_0x55a85e(0x1d1)][_0x55a85e(0x120)](),'viewId':this['_viewId'],'group':_0x55e345});}['getFieldSettings'](_0x4350f1){const _0x509fbc=_0x7fc612;var _0x5ace68;return _0x252e80(this['_table']['getTable']()['fields'][_0x4350f1])?((_0x5ace68=this[_0x509fbc(0xdc)]()[_0x509fbc(0x216)])==null?void 0x0:_0x5ace68[_0x4350f1])??{}:{};}[_0x7fc612(0x242)](){const _0x8a43e7=_0x7fc612;let _0x5ece99=this[_0x8a43e7(0x1d1)][_0x8a43e7(0x1f6)](),_0x5e2dab=this[_0x8a43e7(0xdc)]();return(_0x5e2dab[_0x8a43e7(0x266)]??_0x5ece99[_0x8a43e7(0x266)])[_0x8a43e7(0x157)](_0x195c69=>{const _0x245aa9=_0x8a43e7;var _0x154e1b;let _0x10b161=_0x5ece99[_0x245aa9(0x10d)][_0x195c69];return _0x252e80(_0x10b161)&&!((_0x154e1b=_0x5e2dab[_0x245aa9(0x216)])!=null&&(_0x154e1b=_0x154e1b[_0x195c69])!=null&&_0x154e1b[_0x245aa9(0xbf)]);})[_0x8a43e7(0xdd)](_0x4784d5=>this[_0x8a43e7(0x1aa)][_0x8a43e7(0x254)](_0x2003da,this[_0x8a43e7(0xf8)],this[_0x8a43e7(0x1d1)],_0x4784d5));}['setFieldVisible'](_0x346f15,_0x44281b){const _0x3bff61=_0x7fc612;return _0x252e80(this[_0x3bff61(0x1d1)]['getTable']()[_0x3bff61(0x10d)][_0x346f15])?this[_0x3bff61(0x1a5)][_0x3bff61(0x116)](_0x5c88db[_0x3bff61(0xc7)]['id'],{'unitId':this[_0x3bff61(0xf8)][_0x3bff61(0x120)](),'tableId':this[_0x3bff61(0x1d1)]['getId'](),'viewId':this[_0x3bff61(0xe5)],'fieldId':_0x346f15,'visible':_0x44281b}):!0x1;}['setFieldWidth'](_0x57e00c,_0x12e57b){const _0x514211=_0x7fc612;return _0x252e80(this[_0x514211(0x1d1)][_0x514211(0x1f6)]()[_0x514211(0x10d)][_0x57e00c])?this['_commandService']['syncExecuteCommand'](_0x5c88db[_0x514211(0x1f7)]['id'],{'unitId':this[_0x514211(0xf8)][_0x514211(0x120)](),'tableId':this[_0x514211(0x1d1)][_0x514211(0x120)](),'viewId':this[_0x514211(0xe5)],'fieldId':_0x57e00c,'width':_0x12e57b}):!0x1;}[_0x7fc612(0x10a)](_0x486891,_0x46e97e){const _0x11ef05=_0x7fc612;let _0x45870f=this[_0x11ef05(0x1d1)][_0x11ef05(0x1f6)](),_0x457261=_0x46e97e[_0x11ef05(0x1a7)]??_0x46e97e[_0x11ef05(0x150)];return!_0x252e80(_0x45870f['fields'][_0x486891])||!_0x457261||!_0x252e80(_0x45870f[_0x11ef05(0x10d)][_0x457261])?!0x1:this[_0x11ef05(0x1a5)][_0x11ef05(0x116)](_0x5c88db[_0x11ef05(0x198)]['id'],{'unitId':this['_base'][_0x11ef05(0x120)](),'tableId':this[_0x11ef05(0x1d1)][_0x11ef05(0x120)](),'viewId':this[_0x11ef05(0xe5)],'fieldId':_0x486891,'target':_0x46e97e});}[_0x7fc612(0x259)](_0x18814a){const _0x155f1c=_0x7fc612;return this[_0x155f1c(0x1a5)]['syncExecuteCommand'](_0x5c88db[_0x155f1c(0x16a)]['id'],{'unitId':this['_base'][_0x155f1c(0x120)](),'tableId':this[_0x155f1c(0x1d1)][_0x155f1c(0x120)](),'viewId':this[_0x155f1c(0xe5)],'target':_0x18814a});}['delete'](){const _0x31c2ba=_0x7fc612;return this['_commandService']['syncExecuteCommand'](_0x5c88db[_0x31c2ba(0x11b)]['id'],{'unitId':this[_0x31c2ba(0xf8)]['getId'](),'tableId':this[_0x31c2ba(0x1d1)]['getId'](),'viewId':this[_0x31c2ba(0xe5)]});}[_0x7fc612(0xfc)](){const _0x2791f3=_0x7fc612;return this[_0x2791f3(0x1c5)][_0x2791f3(0xfc)](this['_base']['getBase']()['getSnapshot'](),this[_0x2791f3(0x1d1)][_0x2791f3(0x120)](),this[_0x2791f3(0xe5)]);}[_0x7fc612(0xdc)](){const _0x25c3fe=_0x7fc612;let _0x4903e9=this[_0x25c3fe(0x1d1)][_0x25c3fe(0x1f6)]()['views'][this['_viewId']];if(!_0x4903e9)throw Error('[FView]:\x20view\x20\x22'+this[_0x25c3fe(0xe5)]+'\x22\x20does\x20not\x20exist.');return _0x4903e9;}};_0x282005=_0x13a9ae([_0x28bfcd(0x4,_0x460afa[_0x7fc612(0x11e)]),_0x28bfcd(0x5,_0x460afa['IPermissionService']),_0x28bfcd(0x6,_0x5c88db[_0x7fc612(0x132)])],_0x282005);let _0x27bce8=class{constructor(_0xfa248d,_0x3ada76,_0x30702b,_0x5fa72f,_0x5e2792,_0x5d0911){const _0x2c14a1=_0x7fc612;this[_0x2c14a1(0xf8)]=_0xfa248d,this[_0x2c14a1(0x1c7)]=_0x3ada76,this['_injector']=_0x30702b,this[_0x2c14a1(0x1a5)]=_0x5fa72f,this[_0x2c14a1(0x1e1)]=_0x5e2792,this[_0x2c14a1(0x1c5)]=_0x5d0911;}['getBase'](){const _0x3a08e9=_0x7fc612;return this[_0x3a08e9(0xf8)][_0x3a08e9(0x14d)]();}[_0x7fc612(0x1f6)](){const _0xaf2d57=_0x7fc612;return this[_0xaf2d57(0x26d)]();}[_0x7fc612(0x120)](){const _0x43faad=_0x7fc612;return this[_0x43faad(0x1c7)];}['getPermission'](){const _0x33bb55=_0x7fc612;return new _0x5a8ed0(this[_0x33bb55(0x14d)]()['getUnitId'](),(0x0,_0x5c88db[_0x33bb55(0x16c)])(this[_0x33bb55(0x1c7)]),[],this[_0x33bb55(0x1a5)],this[_0x33bb55(0x1e1)]);}[_0x7fc612(0x207)](){const _0x5eb8d7=_0x7fc612;return(0x0,_0x5c88db['resolveBaseHierarchyFieldId'])(this[_0x5eb8d7(0x26d)]());}[_0x7fc612(0x101)](_0x3c6696){const _0x458633=_0x7fc612;return this[_0x458633(0x1a5)][_0x458633(0x116)](_0x5c88db[_0x458633(0x22a)]['id'],{'unitId':this['_base'][_0x458633(0x120)](),'tableId':this[_0x458633(0x1c7)],'fieldId':_0x3c6696});}['getName'](){const _0x497db1=_0x7fc612;return this[_0x497db1(0x26d)]()[_0x497db1(0x18a)];}['getFormulaName'](){const _0x353892=_0x7fc612;let _0x4c0df1=this[_0x353892(0xf8)][_0x353892(0x14d)]()[_0x353892(0x153)]();return(0x0,_0x5c88db[_0x353892(0x158)])(this['_getTable'](),_0x4c0df1);}[_0x7fc612(0x256)](_0x32a2e6){const _0x219b6f=_0x7fc612;let _0x4ff3e1=(0x0,_0x5c88db[_0x219b6f(0x1de)])(this['_base'][_0x219b6f(0x14d)]()['getSnapshot'](),_0x32a2e6,this['_tableId']);if(!_0x4ff3e1['valid'])throw Error('[FBaseTable]:\x20invalid\x20table\x20name\x20\x22'+_0x32a2e6+'\x22.\x20'+_0x5c88db[_0x219b6f(0x141)]+'\x20'+_0x4ff3e1[_0x219b6f(0x26b)]);return this[_0x219b6f(0x1a5)]['syncExecuteCommand'](_0x5c88db[_0x219b6f(0x11f)]['id'],{'unitId':this[_0x219b6f(0xf8)][_0x219b6f(0x120)](),'tableId':this[_0x219b6f(0x1c7)],'name':_0x32a2e6});}[_0x7fc612(0xf7)](_0x5d30dd,_0x47490e){const _0x5c349e=_0x7fc612;let _0x200577=this['_base']['getBase']()[_0x5c349e(0x153)](),_0x2f00d9=this[_0x5c349e(0x26d)]();if(_0x47490e){let _0x50bdd6=this[_0x5c349e(0x1c5)][_0x5c349e(0xfc)](_0x200577,this[_0x5c349e(0x1c7)],_0x47490e),_0xdc9b3=_0x2f00d9[_0x5c349e(0x1bf)][_0x47490e],_0x25c558=_0x5d30dd['fieldIds']??_0x254de0(_0x2f00d9,_0xdc9b3,_0x50bdd6),_0x2fd7f2=_0x5c349e(0xab)in _0x50bdd6&&Array[_0x5c349e(0x143)](_0x50bdd6[_0x5c349e(0xab)])?_0x50bdd6[_0x5c349e(0xab)]:[];return(0x0,_0x5c88db[_0x5c349e(0x24c)])({..._0x5d30dd,'table':_0x2f00d9,'fieldIds':_0x25c558,'rows':_0x2fd7f2});}let _0x5b0428=(_0x2f00d9['recordOrder']?_0x2f00d9[_0x5c349e(0x1b8)][_0x5c349e(0xdd)](_0x4ca9a6=>_0x2f00d9[_0x5c349e(0x211)][_0x4ca9a6]):Object[_0x5c349e(0xda)](_0x2f00d9[_0x5c349e(0x211)])[_0x5c349e(0x109)]((_0x325de0,_0x3ac348)=>_0x325de0[_0x5c349e(0x225)][_0x5c349e(0x20b)](_0x3ac348[_0x5c349e(0x225)])))['filter'](_0x1f3501=>_0x1f3501)[_0x5c349e(0xdd)](_0xc03ca9=>({'recordId':_0xc03ca9['id'],'values':_0xc03ca9[_0x5c349e(0xda)]})),_0xde26a0=_0x5d30dd['fieldIds']??_0x2f00d9[_0x5c349e(0x266)][_0x5c349e(0x157)](_0x3248aa=>_0x252e80(_0x2f00d9[_0x5c349e(0x10d)][_0x3248aa]));return(0x0,_0x5c88db[_0x5c349e(0x24c)])({..._0x5d30dd,'table':_0x2f00d9,'fieldIds':_0xde26a0,'rows':_0x5b0428});}[_0x7fc612(0xe2)](){const _0xfd9802=_0x7fc612;return this['_getTable']()[_0xfd9802(0xd4)];}[_0x7fc612(0x235)](){const _0x10f752=_0x7fc612;let _0x2f3e4d=this[_0x10f752(0x26d)]();return _0x2f3e4d[_0x10f752(0x266)]['map'](_0x46372c=>_0x2f3e4d[_0x10f752(0x10d)][_0x46372c])[_0x10f752(0x157)](_0x252e80)[_0x10f752(0xdd)](_0x58b929=>this[_0x10f752(0x1aa)][_0x10f752(0x254)](_0x2003da,this[_0x10f752(0xf8)],this,_0x58b929['id']));}['getFieldById'](_0x2d4380){const _0x54403f=_0x7fc612;let _0x13c0d9=this[_0x54403f(0x26d)]()['fields'][_0x2d4380];return _0x252e80(_0x13c0d9)?this[_0x54403f(0x1aa)][_0x54403f(0x254)](_0x2003da,this[_0x54403f(0xf8)],this,_0x13c0d9['id']):null;}[_0x7fc612(0x13d)](_0x11a8e7){const _0x2a699a=_0x7fc612;let _0x543cf4=this[_0x2a699a(0x26d)]()['fields'],_0x206fc0=Object[_0x2a699a(0xda)](_0x543cf4)[_0x2a699a(0x12f)](_0x23aad2=>_0x252e80(_0x23aad2)&&_0x23aad2[_0x2a699a(0x18a)]===_0x11a8e7);return _0x206fc0?this[_0x2a699a(0x1aa)][_0x2a699a(0x254)](_0x2003da,this[_0x2a699a(0xf8)],this,_0x206fc0['id']):null;}[_0x7fc612(0xed)](){const _0x273e=_0x7fc612;let _0x9ba0ae=this[_0x273e(0x26d)]()[_0x273e(0xd4)];return this[_0x273e(0x1aa)][_0x273e(0x254)](_0x2003da,this[_0x273e(0xf8)],this,_0x9ba0ae);}[_0x7fc612(0xf0)](_0x52740c,_0x22883d,_0x2245eb){const _0x3f2968=_0x7fc612;var _0x5e8f79,_0x271299;if(!Object[_0x3f2968(0xda)](_0x460afa[_0x3f2968(0x15a)])['some'](_0x47fa64=>_0x47fa64===_0x22883d))throw Error(_0x3f2968(0x255)+String(_0x22883d)+'\x22.');if(_0x22883d===_0x460afa[_0x3f2968(0x15a)][_0x3f2968(0x1ef)]&&this[_0x3f2968(0x124)](_0x52740c,_0x2245eb),_0x22883d===_0x460afa[_0x3f2968(0x15a)][_0x3f2968(0xee)]&&(typeof(_0x2245eb==null||(_0x5e8f79=_0x2245eb[_0x3f2968(0x119)])==null||(_0x5e8f79=_0x5e8f79[_0x3f2968(0x1c8)])==null?void 0x0:_0x5e8f79[_0x3f2968(0x175)])!='string'||typeof _0x2245eb[_0x3f2968(0x119)][_0x3f2968(0x1c8)][_0x3f2968(0xa4)]!=_0x3f2968(0x247)))throw Error(_0x3f2968(0x227));let _0x22675f={..._0x2245eb==null?void 0x0:_0x2245eb['field'],'id':(0x0,_0x460afa[_0x3f2968(0x115)])(0x6),'name':_0x52740c,'type':_0x22883d,'config':(_0x2245eb==null||(_0x271299=_0x2245eb[_0x3f2968(0x119)])==null?void 0x0:_0x271299[_0x3f2968(0x1c8)])??{}};if(!this[_0x3f2968(0x1a5)][_0x3f2968(0x116)](_0x5c88db[_0x3f2968(0x1bb)]['id'],{'unitId':this[_0x3f2968(0xf8)][_0x3f2968(0x120)](),'tableId':this[_0x3f2968(0x1c7)],'field':_0x22675f,'index':_0x2245eb==null?void 0x0:_0x2245eb[_0x3f2968(0x1af)]}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x52740c+'\x22');return this[_0x3f2968(0x1aa)]['createInstance'](_0x2003da,this['_base'],this,_0x22675f['id']);}[_0x7fc612(0x124)](_0x258bf6,_0x1dc025){const _0x479a68=_0x7fc612;var _0x42505b;if(!_0x1dc025||!(_0x479a68(0x21a)in _0x1dc025)||!Array[_0x479a68(0x143)](_0x1dc025[_0x479a68(0x21a)]))throw Error(_0x479a68(0x168));let _0x4a7f62=this[_0x479a68(0x1a5)][_0x479a68(0x116)](_0x5c88db['ValidateBaseFormulaCommand']['id'],{'unitId':this[_0x479a68(0xf8)]['getId'](),'tableId':this[_0x479a68(0x1c7)],'formula':String(((_0x42505b=_0x1dc025['field'])==null||(_0x42505b=_0x42505b['config'])==null?void 0x0:_0x42505b[_0x479a68(0x1cb)])??'')});if(!_0x4a7f62[_0x479a68(0x15f)])throw Error(_0x4a7f62['reason']??_0x479a68(0x241));if(_0x1dc025[_0x479a68(0x21a)][_0x479a68(0x208)]>0x0&&!this[_0x479a68(0x1a5)][_0x479a68(0x116)](_0xd45dae[_0x479a68(0x182)]['id'],{'unitId':this[_0x479a68(0xf8)][_0x479a68(0x120)](),'references':_0x1dc025['externalReferences']}))throw Error(_0x479a68(0x123)+_0x258bf6+'\x22');}[_0x7fc612(0x25d)](){const _0x2c8c52=_0x7fc612;return this[_0x2c8c52(0x1d7)]()['map'](_0x392d5f=>this[_0x2c8c52(0x1aa)][_0x2c8c52(0x254)](_0x54b90e,this[_0x2c8c52(0xf8)],this,_0x392d5f,this['_injector']));}[_0x7fc612(0x267)](_0x1b1b69){const _0x950b37=_0x7fc612;return this[_0x950b37(0x26d)]()[_0x950b37(0x211)][_0x1b1b69]?this[_0x950b37(0x1aa)][_0x950b37(0x254)](_0x54b90e,this[_0x950b37(0xf8)],this,_0x1b1b69,this['_injector']):null;}[_0x7fc612(0x237)](_0x2866aa={}){const _0x3c5be1=_0x7fc612;let _0xaaa9=this['_getTable'](),_0x4f4b24=this['_resolveRecordIds'](_0x2866aa),_0xd2554c=Math[_0x3c5be1(0x17c)](0x0,_0x2866aa[_0x3c5be1(0xe1)]??0x0),_0x5c09c2=_0x2866aa[_0x3c5be1(0xf6)]==null?null:Math[_0x3c5be1(0x17c)](0x0,_0x2866aa[_0x3c5be1(0xf6)]),_0x58a567=_0x4a8175(_0x4f4b24[_0x3c5be1(0xdd)](_0x374c55=>_0xaaa9[_0x3c5be1(0x211)][_0x374c55])['filter'](_0x4286cd=>_0x2c54f2(_0x4286cd,_0xaaa9,_0x2866aa['filter'])),_0xaaa9,_0x2866aa[_0x3c5be1(0x109)]);return{'records':_0x3fa2ad(_0x58a567,_0x2866aa)[_0x3c5be1(0xdd)](_0x4eacce=>this[_0x3c5be1(0x1aa)][_0x3c5be1(0x254)](_0x54b90e,this[_0x3c5be1(0xf8)],this,_0x4eacce['id'],this[_0x3c5be1(0x1aa)])),'total':_0x58a567[_0x3c5be1(0x208)],'offset':_0xd2554c,'limit':_0x5c09c2,'hasMore':_0x5c09c2!=null&&_0xd2554c+_0x5c09c2<_0x58a567['length']};}[_0x7fc612(0x220)](_0x2e07b3,_0x5e2a8f='id',_0x27cc79){const _0x16559c=_0x7fc612;let _0x170f3d=this[_0x16559c(0x26d)](),_0x1d01ce=Date['now'](),_0x2e756d={..._0x27cc79,'id':(0x0,_0x460afa[_0x16559c(0x115)])(0x6),'values':_0x442707(_0x170f3d,_0x2e07b3,_0x5e2a8f),'orderKey':(_0x27cc79==null?void 0x0:_0x27cc79[_0x16559c(0x225)])||''+_0x1d01ce,'createdAt':(_0x27cc79==null?void 0x0:_0x27cc79[_0x16559c(0x244)])||_0x1d01ce,'updatedAt':(_0x27cc79==null?void 0x0:_0x27cc79[_0x16559c(0x263)])||_0x1d01ce};if(!this[_0x16559c(0x1a5)][_0x16559c(0x116)](_0x5c88db['CreateBaseRecordCommand']['id'],{'unitId':this['_base'][_0x16559c(0x120)](),'tableId':this[_0x16559c(0x1c7)],'record':_0x2e756d,'source':_0x5c88db['BaseEventSource'][_0x16559c(0x137)]}))throw Error(_0x16559c(0xa8)+_0x2e756d['id']+'\x22');return this['_injector'][_0x16559c(0x254)](_0x54b90e,this['_base'],this,_0x2e756d['id'],this[_0x16559c(0x1aa)]);}[_0x7fc612(0xf1)](_0xef3bce){const _0x451cdd=_0x7fc612;if(!_0xef3bce[_0x451cdd(0x208)])return[];let _0x37ea54=this[_0x451cdd(0x26d)](),_0x3ebd9a=Date[_0x451cdd(0x170)](),_0x51f178=_0xef3bce['map']((_0x1aa8ee,_0x260dd9)=>{const _0x32d42c=_0x451cdd;var _0x4e53b5,_0x38fad9,_0x467bed;return{..._0x1aa8ee[_0x32d42c(0x1c2)],'id':(0x0,_0x460afa[_0x32d42c(0x115)])(0x6),'values':_0x442707(_0x37ea54,_0x1aa8ee['values'],_0x1aa8ee[_0x32d42c(0x217)]??'id'),'orderKey':((_0x4e53b5=_0x1aa8ee[_0x32d42c(0x1c2)])==null?void 0x0:_0x4e53b5[_0x32d42c(0x225)])||''+(_0x3ebd9a+_0x260dd9),'createdAt':((_0x38fad9=_0x1aa8ee['record'])==null?void 0x0:_0x38fad9[_0x32d42c(0x244)])||_0x3ebd9a,'updatedAt':((_0x467bed=_0x1aa8ee[_0x32d42c(0x1c2)])==null?void 0x0:_0x467bed['updatedAt'])||_0x3ebd9a};});if(!this[_0x451cdd(0x1a5)]['syncExecuteCommand'](_0x5c88db['BatchCreateBaseRecordsCommand']['id'],{'unitId':this[_0x451cdd(0xf8)][_0x451cdd(0x120)](),'tableId':this['_tableId'],'records':_0x51f178,'source':_0x5c88db['BaseEventSource'][_0x451cdd(0x137)]}))throw Error(_0x451cdd(0x14c));return _0x51f178[_0x451cdd(0xdd)](_0x56562a=>this[_0x451cdd(0x1aa)][_0x451cdd(0x254)](_0x54b90e,this[_0x451cdd(0xf8)],this,_0x56562a['id'],this[_0x451cdd(0x1aa)]));}[_0x7fc612(0xc3)](_0x409d57){const _0x19ce8c=_0x7fc612;return!_0x409d57[_0x19ce8c(0x208)]||this['_commandService'][_0x19ce8c(0x116)](_0x5c88db[_0x19ce8c(0x260)]['id'],{'unitId':this['_base'][_0x19ce8c(0x120)](),'tableId':this[_0x19ce8c(0x1c7)],'recordIds':_0x409d57,'source':_0x5c88db[_0x19ce8c(0x21c)]['Facade']});}[_0x7fc612(0x1cc)](_0x28a01c,_0x1f3c54,_0x5aaf3f=0x1,_0x2fb648=0x1){const _0x512ad5=_0x7fc612;return this[_0x512ad5(0x1aa)][_0x512ad5(0x254)](_0x7421c3,this[_0x512ad5(0xf8)],this,{'startRow':_0x28a01c,'endRow':_0x28a01c+_0x5aaf3f-0x1,'startColumn':_0x1f3c54,'endColumn':_0x1f3c54+_0x2fb648-0x1},this['_injector']);}[_0x7fc612(0xbc)](){const _0x5c64d9=_0x7fc612;var _0xd6480c;let _0x2af417=(0x0,_0x5c88db[_0x5c64d9(0x1e5)])(this['_getTable']()),_0x5abf16=((_0xd6480c=_0x2af417[_0x5c64d9(0x1b8)])==null?void 0x0:_0xd6480c[_0x5c64d9(0x208)])??0x0,_0x287391=_0x2af417['fieldOrder'][_0x5c64d9(0x157)](_0x2eb36b=>_0x252e80(_0x2af417['fields'][_0x2eb36b]))[_0x5c64d9(0x208)];return this['getRange'](0x0,0x0,Math[_0x5c64d9(0x17c)](_0x5abf16,0x1),Math[_0x5c64d9(0x17c)](_0x287391,0x1));}['getViews'](){const _0x36ab49=_0x7fc612;let _0x464ff6=this[_0x36ab49(0x26d)]();return _0x464ff6[_0x36ab49(0xe9)][_0x36ab49(0x157)](_0x125d08=>_0x464ff6[_0x36ab49(0x1bf)][_0x125d08])[_0x36ab49(0xdd)](_0x3556dc=>this[_0x36ab49(0x1aa)][_0x36ab49(0x254)](_0x282005,this[_0x36ab49(0xf8)],this,_0x3556dc,this['_injector']));}[_0x7fc612(0x229)](_0x269d6e){const _0x42c1df=_0x7fc612;return this[_0x42c1df(0x26d)]()[_0x42c1df(0x1bf)][_0x269d6e]?this[_0x42c1df(0x1aa)][_0x42c1df(0x254)](_0x282005,this['_base'],this,_0x269d6e,this['_injector']):null;}['getViewByName'](_0x38f103){const _0x26e9e4=_0x7fc612;let _0x172af3=this[_0x26e9e4(0x26d)](),_0x6a1ecc=Object[_0x26e9e4(0xda)](_0x172af3[_0x26e9e4(0x1bf)])[_0x26e9e4(0x12f)](_0x3ea208=>_0x3ea208[_0x26e9e4(0x18a)]===_0x38f103);return _0x6a1ecc?this['_injector']['createInstance'](_0x282005,this['_base'],this,_0x6a1ecc['id'],this[_0x26e9e4(0x1aa)]):null;}['createView'](_0xce12c9,_0x467b25,_0x4436f0){const _0x23de7d=_0x7fc612;var _0xc95059,_0x485d40,_0x27ea41,_0x4b481c;let _0x2675fd=this[_0x23de7d(0x26d)](),_0x5b96b3=(_0x4436f0==null||(_0xc95059=_0x4436f0['view'])==null?void 0x0:_0xc95059[_0x23de7d(0x266)])??_0x2675fd[_0x23de7d(0x266)],_0xeae125=[_0x460afa['BASE_RECORD_ID_FIELD_ID'],..._0x5b96b3[_0x23de7d(0x157)](_0x27bbf9=>_0x252e80(_0x2675fd[_0x23de7d(0x10d)][_0x27bbf9]))],_0x1f1dc7={..._0x4436f0==null?void 0x0:_0x4436f0['view'],'id':(0x0,_0x460afa['generateRandomId'])(0x6),'name':_0xce12c9,'type':_0x467b25,'tableId':this[_0x23de7d(0x1c7)],'config':(_0x4436f0==null||(_0x485d40=_0x4436f0['view'])==null?void 0x0:_0x485d40[_0x23de7d(0x1c8)])??{},'fieldOrder':_0xeae125,'fieldSettings':{..._0x4436f0==null||(_0x27ea41=_0x4436f0[_0x23de7d(0x1c0)])==null?void 0x0:_0x27ea41[_0x23de7d(0x216)],[_0x460afa[_0x23de7d(0x17b)]]:{..._0x4436f0==null||(_0x4b481c=_0x4436f0['view'])==null||(_0x4b481c=_0x4b481c[_0x23de7d(0x216)])==null?void 0x0:_0x4b481c[_0x460afa[_0x23de7d(0x17b)]],'hidden':!0x0}}};if(!this[_0x23de7d(0x1a5)][_0x23de7d(0x116)](_0x5c88db[_0x23de7d(0x25b)]['id'],{'unitId':this['_base']['getId'](),'tableId':this['_tableId'],'view':_0x1f1dc7,'index':_0x4436f0==null?void 0x0:_0x4436f0['index']}))throw Error(_0x23de7d(0x212)+_0xce12c9+'\x22');return this[_0x23de7d(0x1aa)][_0x23de7d(0x254)](_0x282005,this[_0x23de7d(0xf8)],this,_0x1f1dc7['id'],this['_injector']);}[_0x7fc612(0x200)](){const _0x331e95=_0x7fc612;let _0x282be1=this[_0x331e95(0x26d)](),_0xe485b8=_0x282be1[_0x331e95(0x266)][_0x331e95(0x157)](_0x2d0d4a=>_0x252e80(_0x282be1[_0x331e95(0x10d)][_0x2d0d4a])),_0x219ada=_0x282be1[_0x331e95(0xe9)]['filter'](_0x2aaf72=>_0x282be1[_0x331e95(0x1bf)][_0x2aaf72]);return{'id':_0x282be1['id'],'name':_0x282be1['name'],'formulaName':this[_0x331e95(0x178)](),'primaryFieldId':_0x282be1[_0x331e95(0xd4)],'fieldIds':_0xe485b8,'viewIds':_0x219ada,'recordCount':this[_0x331e95(0x1d7)]()[_0x331e95(0x208)],'fields':_0xe485b8[_0x331e95(0xdd)](_0x539e78=>{const _0x2e398e=_0x331e95;let _0x57155a=_0x282be1['fields'][_0x539e78];return{'id':_0x57155a['id'],'name':_0x57155a[_0x2e398e(0x18a)],'type':_0x57155a['type'],'config':_0x57155a['config'],'readonly':_0x57155a[_0x2e398e(0x26e)],'description':_0x57155a[_0x2e398e(0x19a)]};}),'views':_0x219ada[_0x331e95(0xdd)](_0x4693b5=>{const _0x39ec10=_0x331e95;let _0x4b3fc1=_0x282be1['views'][_0x4693b5];return{'id':_0x4b3fc1['id'],'name':_0x4b3fc1['name'],'type':_0x4b3fc1[_0x39ec10(0x193)]};})};}[_0x7fc612(0x26d)](){const _0x4cb372=_0x7fc612;let _0x431603=this[_0x4cb372(0xf8)]['getBase']()[_0x4cb372(0x153)]()[_0x4cb372(0x19f)][this[_0x4cb372(0x1c7)]];if(!_0x431603)throw Error(_0x4cb372(0x13b)+this[_0x4cb372(0x1c7)]+'\x22\x20does\x20not\x20exist.');return _0x431603;}[_0x7fc612(0x1d7)](_0xf80baa={}){const _0x282e92=_0x7fc612;let _0x3e0bff=this[_0x282e92(0xf8)][_0x282e92(0x14d)]()[_0x282e92(0x153)](),_0x553409=this[_0x282e92(0x26d)]();if(_0xf80baa['viewId']){let _0x433738=this[_0x282e92(0x1c5)][_0x282e92(0xfc)](_0x3e0bff,this['_tableId'],_0xf80baa[_0x282e92(0x232)]);if(_0x282e92(0xab)in _0x433738&&Array[_0x282e92(0x143)](_0x433738[_0x282e92(0xab)]))return _0x433738['rows'][_0x282e92(0xdd)](_0x5aeadb=>_0x5aeadb[_0x282e92(0x16d)]);}return(_0x553409[_0x282e92(0x1b8)]?_0x553409[_0x282e92(0x1b8)][_0x282e92(0xdd)](_0x4f2346=>_0x553409[_0x282e92(0x211)][_0x4f2346]):Object[_0x282e92(0xda)](_0x553409[_0x282e92(0x211)])[_0x282e92(0x109)]((_0x48e525,_0x5d7cc9)=>_0x48e525[_0x282e92(0x225)][_0x282e92(0x20b)](_0x5d7cc9[_0x282e92(0x225)])))['filter'](_0x1357ea=>_0x1357ea)['map'](_0x9cdc1c=>_0x9cdc1c['id']);}};_0x27bce8=_0x13a9ae([_0x28bfcd(0x3,_0x460afa[_0x7fc612(0x11e)]),_0x28bfcd(0x4,_0x460afa[_0x7fc612(0x1ec)]),_0x28bfcd(0x5,_0x5c88db[_0x7fc612(0x132)])],_0x27bce8);function _0x3fa2ad(_0xb6fd8a,_0x5297c2){const _0x1c28d9=_0x7fc612;let _0x352c94=Math[_0x1c28d9(0x17c)](0x0,_0x5297c2[_0x1c28d9(0xe1)]??0x0);return _0x5297c2['limit']==null?_0xb6fd8a['slice'](_0x352c94):_0xb6fd8a[_0x1c28d9(0x20f)](_0x352c94,_0x352c94+Math[_0x1c28d9(0x17c)](0x0,_0x5297c2['limit']));}function _0x4a8175(_0x3f3efe,_0x4aae12,_0x25930a=[]){return _0x25930a['length']?[..._0x3f3efe]['sort']((_0x1951c0,_0x44e3c1)=>{const _0x25c371=_0x36bd;for(let _0x5bbc3b of _0x25930a){var _0x4285d0;let _0x229f4e=_0x5bbc3b[_0x25c371(0x13a)]===_0x460afa[_0x25c371(0x162)]['DESC']?-0x1:0x1,_0x1afe81=_0x2d1982(_0x1951c0['values'][_0x5bbc3b[_0x25c371(0xf5)]],_0x44e3c1[_0x25c371(0xda)][_0x5bbc3b['fieldId']],(_0x4285d0=_0x4aae12[_0x25c371(0x10d)][_0x5bbc3b['fieldId']])==null?void 0x0:_0x4285d0[_0x25c371(0x193)]);if(_0x1afe81!==0x0)return _0x1afe81*_0x229f4e;}return String(_0x1951c0[_0x25c371(0x225)]??_0x1951c0['id'])[_0x25c371(0x20b)](String(_0x44e3c1['orderKey']??_0x44e3c1['id']));}):_0x3f3efe;}function _0x2d1982(_0x175f70,_0x1f0c9d,_0x1de63f){const _0x2ae43b=_0x7fc612;return _0x175f70==null&&_0x1f0c9d==null?0x0:_0x175f70==null?-0x1:_0x1f0c9d==null?0x1:typeof _0x175f70==_0x2ae43b(0x173)&&typeof _0x1f0c9d=='number'?_0x175f70-_0x1f0c9d:_0x1de63f===_0x460afa['BaseFieldType'][_0x2ae43b(0xea)]?Number(_0x175f70)-Number(_0x1f0c9d):String(_0x175f70)[_0x2ae43b(0x20b)](String(_0x1f0c9d));}function _0x2c54f2(_0x4736bf,_0x3c0036,_0x5264b5){const _0x3886c2=_0x7fc612;var _0x101afd;if(!_0x5264b5||!((_0x101afd=_0x5264b5[_0x3886c2(0xba)])!=null&&_0x101afd['length']))return!0x0;let {conjunction:_0x277ace=_0x460afa[_0x3886c2(0x218)]['OR'],conditions:_0x3495bf}=_0x5264b5;return _0x277ace===_0x460afa[_0x3886c2(0x218)][_0x3886c2(0xca)]&&_0x3495bf['length']>0x1?_0x3495bf[_0x3886c2(0x186)](_0x4a5e7a=>_0x4e20d6(_0x4736bf,_0x3c0036,_0x4a5e7a)):_0x3495bf['some'](_0x1f3c17=>_0x4e20d6(_0x4736bf,_0x3c0036,_0x1f3c17));}function _0x4e20d6(_0x4f67b8,_0x326218,_0x217bea){const _0x4ecac4=_0x7fc612;let _0x44299c=_0x4f67b8[_0x4ecac4(0xda)][_0x217bea[_0x4ecac4(0xf5)]],_0x3e08f1=_0x326218['fields'][_0x217bea[_0x4ecac4(0xf5)]];if(_0x1d2bf9(_0x217bea)){let _0x53f222=_0x499f90(_0x217bea)['test'](String(_0x44299c??''));return _0x217bea[_0x4ecac4(0x1fa)]===_0x4ecac4(0x20d)?_0x53f222:!_0x53f222;}return!_0x3e08f1||(0x0,_0x5c88db['matchesBaseCondition'])(_0x44299c,_0x217bea[_0x4ecac4(0x1fa)],_0x217bea['value'],_0x3e08f1);}function _0x1d2bf9(_0x443437){const _0x717e5=_0x7fc612;return _0x443437[_0x717e5(0x1fa)]===_0x717e5(0x20d)||_0x443437[_0x717e5(0x1fa)]===_0x717e5(0xe3);}function _0x499f90(_0x19e2df){const _0x49ae27=_0x7fc612;let _0x312cb6=String(_0x19e2df['value']??'');if(_0x312cb6['length']>0x200)throw Error(_0x49ae27(0x26a));try{return new RegExp(_0x312cb6,_0x19e2df[_0x49ae27(0xbb)]?void 0x0:'i');}catch(_0x39d047){throw Error(_0x49ae27(0x19d)+_0x312cb6+'.\x20'+(_0x39d047 instanceof Error?_0x39d047[_0x49ae27(0x12b)]:String(_0x39d047)));}}function _0x254de0(_0x526235,_0x59cb8f,_0x2fe90e){const _0x160d7b=_0x7fc612;if(_0x2fe90e['type']!==_0x160d7b(0x134)&&_0x2fe90e[_0x160d7b(0x193)]!==_0x160d7b(0x189)){var _0x2d0a0c;if(_0x2fe90e[_0x160d7b(0x193)]===_0x460afa['BaseViewType']['Kanban']){var _0x110f09;let _0x45ec60=[((_0x110f09=_0x2fe90e[_0x160d7b(0x10d)])==null||(_0x110f09=_0x110f09[0x0])==null?void 0x0:_0x110f09['id'])??_0x526235['primaryFieldId'],..._0x2fe90e[_0x160d7b(0x20e)]??[]];return Array[_0x160d7b(0x144)](new Set(_0x45ec60['filter'](_0x49152e=>!!_0x526235[_0x160d7b(0x10d)][_0x49152e])));}if((_0x2d0a0c=_0x2fe90e[_0x160d7b(0x10d)])!=null&&_0x2d0a0c['length'])return _0x2fe90e['fields']['map'](_0x288df8=>_0x288df8['id'])[_0x160d7b(0x157)](_0x4c23ca=>{const _0x1e33a5=_0x160d7b;var _0x1e0a70;return!(!_0x526235[_0x1e33a5(0x10d)][_0x4c23ca]||_0x59cb8f!=null&&(_0x1e0a70=_0x59cb8f[_0x1e33a5(0x216)])!=null&&(_0x1e0a70=_0x1e0a70[_0x4c23ca])!=null&&_0x1e0a70[_0x1e33a5(0xbf)]);});}return _0x526235[_0x160d7b(0x266)][_0x160d7b(0x157)](_0x19c23a=>{const _0x382b00=_0x160d7b;var _0x3ab586;return!(!_0x526235[_0x382b00(0x10d)][_0x19c23a]||_0x59cb8f!=null&&(_0x3ab586=_0x59cb8f[_0x382b00(0x216)])!=null&&(_0x3ab586=_0x3ab586[_0x19c23a])!=null&&_0x3ab586[_0x382b00(0xbf)]);});}let _0x5c53a0=class extends _0x1813e5[_0x7fc612(0x20c)]{constructor(_0x298cfc,_0x11ee24,_0x25217f,_0x23045c,_0x1f1a53){const _0xe37a98=_0x7fc612;super(),this[_0xe37a98(0xf8)]=_0x298cfc,this['_injector']=_0x11ee24,this['_resourceLoaderService']=_0x25217f,this[_0xe37a98(0x1a5)]=_0x23045c,this[_0xe37a98(0x1e1)]=_0x1f1a53;}[_0x7fc612(0x14d)](){const _0x499815=_0x7fc612;return this[_0x499815(0xf8)];}[_0x7fc612(0x120)](){const _0x3eb968=_0x7fc612;return this[_0x3eb968(0xf8)][_0x3eb968(0x1cf)]();}[_0x7fc612(0x177)](){const _0x50152b=_0x7fc612;return new _0x4712ce(this['getId'](),this[_0x50152b(0x1a5)],this[_0x50152b(0x1e1)]);}[_0x7fc612(0x179)](){const _0x36f60f=_0x7fc612;return this[_0x36f60f(0xbd)][_0x36f60f(0x199)](this['getId']())??_0x460afa['Tools'][_0x36f60f(0x1a2)](this[_0x36f60f(0xf8)][_0x36f60f(0x153)]());}['getName'](){const _0x38a68d=_0x7fc612;return this[_0x38a68d(0xf8)][_0x38a68d(0x153)]()[_0x38a68d(0x18a)];}[_0x7fc612(0x256)](_0x54e172){const _0x4321dd=_0x7fc612;this[_0x4321dd(0x1a5)][_0x4321dd(0x116)](_0x5c88db[_0x4321dd(0xb3)]['id'],{'unitId':this[_0x4321dd(0x120)](),'name':_0x54e172});}[_0x7fc612(0x1e6)](){const _0x139f24=_0x7fc612;let _0x1f1bcf=this['_base']['getSnapshot']();return _0x1f1bcf[_0x139f24(0x22b)][_0x139f24(0xdd)](_0x1e511d=>_0x1f1bcf['tables'][_0x1e511d])[_0x139f24(0x157)](_0xa1a18b=>_0xa1a18b)[_0x139f24(0xdd)](_0x4a7bf9=>this['_injector']['createInstance'](_0x27bce8,this,_0x4a7bf9['id'],this[_0x139f24(0x1aa)]));}[_0x7fc612(0x240)](_0x29a1b0){const _0x5d1c60=_0x7fc612;let _0x279dfb=this[_0x5d1c60(0xf8)]['getSnapshot']()[_0x5d1c60(0x19f)][_0x29a1b0];return _0x279dfb?this['_injector'][_0x5d1c60(0x254)](_0x27bce8,this,_0x279dfb['id'],this[_0x5d1c60(0x1aa)]):null;}[_0x7fc612(0x1cd)](_0x3993b6){const _0xa54fdc=_0x7fc612;let _0x40a1cd=this[_0xa54fdc(0xf8)][_0xa54fdc(0x153)](),_0x22e040=Object[_0xa54fdc(0xda)](_0x40a1cd['tables'])['find'](_0x5d454d=>_0x5d454d[_0xa54fdc(0x18a)]===_0x3993b6);return _0x22e040?this['_injector'][_0xa54fdc(0x254)](_0x27bce8,this,_0x22e040['id'],this[_0xa54fdc(0x1aa)]):null;}[_0x7fc612(0x140)](_0x4375ea,_0x415c73){const _0x2467f8=_0x7fc612;let _0xe4b0aa=(0x0,_0x460afa[_0x2467f8(0x25e)])({'id':(0x0,_0x460afa['generateRandomId'])(),'name':_0x4375ea,..._0x415c73==null?void 0x0:_0x415c73[_0x2467f8(0x13f)],'primaryFieldName':_0x415c73==null?void 0x0:_0x415c73[_0x2467f8(0x148)]}),_0xca5c02=_0x460afa[_0x2467f8(0x14a)]['commonExtend'](_0xe4b0aa,(_0x415c73==null?void 0x0:_0x415c73[_0x2467f8(0x13f)])??{}),_0x1f78c1=(0x0,_0x5c88db[_0x2467f8(0x1de)])(this['_base'][_0x2467f8(0x153)](),_0xca5c02[_0x2467f8(0x18a)]);if(!_0x1f78c1[_0x2467f8(0x15f)])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0xca5c02[_0x2467f8(0x18a)]+_0x2467f8(0x135)+_0x5c88db[_0x2467f8(0x141)]+'\x20'+_0x1f78c1['reason']);if(!this['_commandService'][_0x2467f8(0x116)](_0x5c88db[_0x2467f8(0x23e)]['id'],{'unitId':this['_base'][_0x2467f8(0x1cf)](),'table':_0xca5c02,'index':_0x415c73==null?void 0x0:_0x415c73[_0x2467f8(0x1af)]}))throw Error('Failed\x20to\x20create\x20table\x20\x22'+_0x4375ea+'\x22.');return this[_0x2467f8(0x1aa)][_0x2467f8(0x254)](_0x27bce8,this,_0xca5c02['id'],this[_0x2467f8(0x1aa)]);}[_0x7fc612(0x1dc)](_0x1b8d6a){const _0x488fef=_0x7fc612;let _0x3e91ab=typeof _0x1b8d6a==_0x488fef(0x257)?_0x1b8d6a:_0x1b8d6a[_0x488fef(0x120)]();if(!this[_0x488fef(0x1a5)]['syncExecuteCommand'](_0x5c88db[_0x488fef(0x210)]['id'],{'unitId':this[_0x488fef(0xf8)][_0x488fef(0x1cf)](),'tableId':_0x3e91ab}))throw Error(_0x488fef(0x1d2)+_0x3e91ab+'\x22.');return!0x0;}[_0x7fc612(0x110)](_0x43efe4,_0x344bd8){const _0x303735=_0x7fc612;let _0x7e3703=this['_base']['getSnapshot'](),_0x5c755b=typeof _0x43efe4==_0x303735(0x257)?_0x43efe4:_0x43efe4[_0x303735(0x120)](),_0x212f92=_0x7e3703[_0x303735(0x19f)][_0x5c755b];if(!_0x212f92)throw Error('[FBase]:\x20table\x20\x22'+_0x5c755b+_0x303735(0x176));let _0x47921b=_0x7e3703['tableOrder'][_0x303735(0x164)](_0x5c755b)+0x1,_0xd0d1b3=(0x0,_0x460afa['generateRandomId'])(),_0x128d3c=(0x0,_0x5c88db[_0x303735(0xb2)])(_0x212f92,{'id':_0xd0d1b3,'name':(0x0,_0x5c88db[_0x303735(0x1d8)])(_0x7e3703,_0x212f92[_0x303735(0x18a)]+_0x303735(0xb1)),'includeRecords':(_0x344bd8==null?void 0x0:_0x344bd8[_0x303735(0x15c)])??!0x1,'regenerateViewIds':(_0x344bd8==null?void 0x0:_0x344bd8[_0x303735(0x253)])??!0x1});if(!this[_0x303735(0x1a5)][_0x303735(0x116)](_0x5c88db[_0x303735(0x23e)]['id'],{'unitId':this[_0x303735(0xf8)]['getUnitId'](),'table':_0x128d3c,'index':_0x47921b}))throw Error('Failed\x20to\x20duplicate\x20table\x20\x22'+_0x5c755b+'\x22.');return this[_0x303735(0x1aa)]['createInstance'](_0x27bce8,this,_0x128d3c['id'],this['_injector']);}[_0x7fc612(0x200)](){const _0x5270c7=_0x7fc612;let _0x2d1647=this[_0x5270c7(0xf8)][_0x5270c7(0x153)]();return{'id':_0x2d1647['id'],'name':_0x2d1647['name'],'tables':this[_0x5270c7(0x1e6)]()[_0x5270c7(0xdd)](_0x5150d1=>_0x5150d1[_0x5270c7(0x200)]())};}};_0x5c53a0=_0x13a9ae([_0x28bfcd(0x1,(0x0,_0x460afa[_0x7fc612(0x1b2)])(_0x460afa[_0x7fc612(0x231)])),_0x28bfcd(0x2,_0x460afa[_0x7fc612(0x1f1)]),_0x28bfcd(0x3,_0x460afa[_0x7fc612(0x11e)]),_0x28bfcd(0x4,_0x460afa['IPermissionService'])],_0x5c53a0);var _0x1989bb=class extends _0x1813e5[_0x7fc612(0xdf)]{[_0x7fc612(0xaa)](){const _0x64af80=_0x7fc612;this[_0x64af80(0x219)](),this[_0x64af80(0x1d0)]();}['createBase'](_0x294cab={},_0x1e7375){const _0xb777a8=_0x7fc612;let _0x7373e6=this[_0xb777a8(0x21d)][_0xb777a8(0x114)](_0x460afa['UniverInstanceType'][_0xb777a8(0xb7)],_0x294cab,_0x1e7375);return this[_0xb777a8(0x1aa)][_0xb777a8(0x254)](_0x5c53a0,_0x7373e6);}[_0x7fc612(0x187)](){const _0x480e16=_0x7fc612;let _0x54ce83=this[_0x480e16(0x21d)][_0x480e16(0x10e)](_0x460afa[_0x480e16(0xd9)][_0x480e16(0xb7)]);return _0x54ce83?this[_0x480e16(0x1aa)][_0x480e16(0x254)](_0x5c53a0,_0x54ce83):null;}[_0x7fc612(0x14d)](_0x5902b6){const _0x8f2c3a=_0x7fc612;let _0x46e7a3=this[_0x8f2c3a(0x21d)][_0x8f2c3a(0x1d4)](_0x5902b6,_0x460afa[_0x8f2c3a(0xd9)][_0x8f2c3a(0xb7)]);return _0x46e7a3?this['_injector'][_0x8f2c3a(0x254)](_0x5c53a0,_0x46e7a3):null;}[_0x7fc612(0x1b1)](){const _0x127bee=_0x7fc612;return this[_0x127bee(0x21d)][_0x127bee(0x180)](_0x460afa[_0x127bee(0xd9)][_0x127bee(0xb7)])[_0x127bee(0xdd)](_0x514202=>this['_injector'][_0x127bee(0x254)](_0x5c53a0,_0x514202));}[_0x7fc612(0x1d0)](){const _0x407e6f=_0x7fc612;this[_0x407e6f(0x214)](this[_0x407e6f(0x250)](this[_0x407e6f(0x265)]['BaseHierarchyChanged'],()=>this[_0x407e6f(0x1a5)]['onCommandExecuted']((_0x519702,_0x2188e2)=>{const _0x4d87d8=_0x407e6f;var _0x5d7954;if(!_0x210185(_0x519702,_0x5c88db[_0x4d87d8(0x169)]))return;let _0x4e1bce=_0x519702[_0x4d87d8(0x197)];if(!((_0x5d7954=_0x4e1bce[_0x4d87d8(0x24f)])!=null&&_0x5d7954[_0x4d87d8(0x208)]))return;let _0x1913df=this[_0x4d87d8(0x14d)](_0x4e1bce[_0x4d87d8(0x118)]),_0x9c8d09=_0x1913df==null?void 0x0:_0x1913df[_0x4d87d8(0x240)](_0x4e1bce[_0x4d87d8(0x24f)][0x0][_0x4d87d8(0x12e)]);if(!_0x1913df||!_0x9c8d09)return;let _0x1a2f8a={'base':_0x1913df,'table':_0x9c8d09,'changes':_0x4e1bce[_0x4d87d8(0x24f)],'source':_0x2188e2!=null&&_0x2188e2[_0x4d87d8(0x201)]?_0x5c88db['BaseEventSource'][_0x4d87d8(0x1bd)]:_0x4e1bce['source']??_0x5c88db[_0x4d87d8(0x21c)]['UI']};this[_0x4d87d8(0x23a)](this[_0x4d87d8(0x265)][_0x4d87d8(0x1c6)],_0x1a2f8a);}))),this[_0x407e6f(0x214)](this['registerEventHandler'](this[_0x407e6f(0x265)][_0x407e6f(0x243)],()=>this[_0x407e6f(0x1a5)][_0x407e6f(0x161)](_0x44682f=>{const _0x13a6a4=_0x407e6f;if(_0x44682f['id']!==_0x5c88db['CreateBaseTableCommand']['id'])return;let {unitId:_0x3e1a09,table:_0x2041fb,index:_0x14e785}=_0x44682f[_0x13a6a4(0x197)],_0x1b2cd8=this[_0x13a6a4(0x14d)](_0x3e1a09);if(!_0x1b2cd8)return;let _0x21dbe0={'base':_0x1b2cd8,'table':_0x2041fb,'index':_0x14e785};this[_0x13a6a4(0x23a)](this['Event']['BaseTableCreated'],_0x21dbe0);}))),this[_0x407e6f(0x214)](this[_0x407e6f(0x250)](this['Event']['BaseTableFieldCreated'],()=>this[_0x407e6f(0x1a5)][_0x407e6f(0x161)](_0x26f0ae=>{const _0x59b6c6=_0x407e6f;if(_0x26f0ae['id']!==_0x5c88db[_0x59b6c6(0x1bb)]['id'])return;let {unitId:_0x20f1db,tableId:_0x23dbe5,field:_0xd52bb0,index:_0x192b25,viewIndexes:_0x4cc6af}=_0x26f0ae[_0x59b6c6(0x197)],_0x4bb327=this[_0x59b6c6(0x14d)](_0x20f1db);if(!_0x4bb327)return;let _0x58c754=_0x4bb327[_0x59b6c6(0x240)](_0x23dbe5);if(!_0x58c754)return;let _0x8e12ed={'base':_0x4bb327,'table':_0x58c754,'field':_0xd52bb0,'index':_0x192b25,'viewIndexes':_0x4cc6af};this[_0x59b6c6(0x23a)](this['Event'][_0x59b6c6(0x159)],_0x8e12ed);}))),this[_0x407e6f(0x214)](this[_0x407e6f(0x250)](this[_0x407e6f(0x265)][_0x407e6f(0xcc)],()=>this[_0x407e6f(0x1a5)]['onCommandExecuted'](_0x18c6ca=>{const _0x3c3625=_0x407e6f;if(_0x18c6ca['id']!==_0x5c88db[_0x3c3625(0x172)]['id']&&_0x18c6ca['id']!==_0x5c88db[_0x3c3625(0x245)]['id'])return;let _0xe7fd3e=_0x18c6ca['params'],{unitId:_0x544f3f,tableId:_0x1ead5d}=_0xe7fd3e,_0x57a953=_0xe7fd3e['records']??[_0xe7fd3e[_0x3c3625(0x1c2)]],_0x3a1cc9=this['getBase'](_0x544f3f);if(!_0x3a1cc9)return;let _0x4124aa=_0x3a1cc9['getTableById'](_0x1ead5d);if(!_0x4124aa)return;let _0x3fcf0c={'base':_0x3a1cc9,'table':_0x4124aa,'records':_0x57a953};this[_0x3c3625(0x23a)](this[_0x3c3625(0x265)]['BaseTableRecordCreated'],_0x3fcf0c);}))),this[_0x407e6f(0x214)](this[_0x407e6f(0x250)](this[_0x407e6f(0x265)]['BaseTableViewCreated'],()=>this['_commandService']['onCommandExecuted'](_0x1f4258=>{const _0x5b2e7b=_0x407e6f;if(_0x1f4258['id']!==_0x5c88db[_0x5b2e7b(0x25b)]['id'])return;let {unitId:_0x586117,tableId:_0x2e536b,view:_0x40d361,index:_0x88e798}=_0x1f4258[_0x5b2e7b(0x197)],_0x481077=this[_0x5b2e7b(0x14d)](_0x586117);if(!_0x481077)return;let _0x571b66=_0x481077['getTableById'](_0x2e536b);if(!_0x571b66)return;let _0x411280={'base':_0x481077,'table':_0x571b66,'view':_0x40d361,'index':_0x88e798};this['fireEvent'](this['Event']['BaseTableViewCreated'],_0x411280);}))),this[_0x407e6f(0x214)](this[_0x407e6f(0x250)](this['Event']['BaseTableCellValueChanged'],()=>this[_0x407e6f(0x1a5)]['onCommandExecuted'](_0x354318=>{const _0x2a3be8=_0x407e6f;if(_0x354318['id']!==_0x5c88db[_0x2a3be8(0x21b)]['id'])return;let {unitId:_0x54b8ba,tableId:_0x441ab1,recordId:_0xd303b3,fieldId:_0x38338d,value:_0x3a4218}=_0x354318[_0x2a3be8(0x197)],_0x429f1f=this[_0x2a3be8(0x14d)](_0x54b8ba);if(!_0x429f1f)return;let _0x1f6e3d=_0x429f1f[_0x2a3be8(0x240)](_0x441ab1);if(!_0x1f6e3d)return;let _0x1a90a0=_0x1f6e3d[_0x2a3be8(0x147)](_0x38338d);if(!_0x1a90a0)return;let _0x18c005=_0x1f6e3d[_0x2a3be8(0x267)](_0xd303b3);if(!_0x18c005)return;let _0x2de36e={'base':_0x429f1f,'table':_0x1f6e3d,'field':_0x1a90a0,'record':_0x18c005,'value':_0x3a4218};this['fireEvent'](this['Event'][_0x2a3be8(0x1a8)],_0x2de36e);})));}['_initBaseBeforeEvents'](){const _0x51a07b=_0x7fc612;this['disposeWithMe'](this[_0x51a07b(0x250)](this['Event']['BeforeBaseHierarchyChange'],()=>this['_commandService'][_0x51a07b(0x246)](_0x29087b=>{const _0x4cb969=_0x51a07b;if(_0x210185(_0x29087b,_0x5c88db[_0x4cb969(0x25c)])){let {unitId:_0x5cc8de,tableId:_0x27e23f,patches:_0x370f03,source:_0x21a537=_0x5c88db[_0x4cb969(0x21c)]['UI']}=_0x29087b['params'],_0x3eaefc=this[_0x4cb969(0x1d6)](_0x5cc8de,_0x27e23f);if(!_0x3eaefc)return;this[_0x4cb969(0x191)](_0x3eaefc[_0x4cb969(0xb5)],_0x3eaefc[_0x4cb969(0x13f)],(0x0,_0x5c88db[_0x4cb969(0x1a0)])(_0x3eaefc[_0x4cb969(0x13f)][_0x4cb969(0x1f6)](),_0x370f03),_0x21a537);return;}if(_0x210185(_0x29087b,_0x5c88db[_0x4cb969(0xcf)])){let {unitId:_0x2b01d8,tableId:_0x1561fb,patches:_0x3afe21,source:_0x595c9e=_0x5c88db[_0x4cb969(0x21c)]['UI']}=_0x29087b[_0x4cb969(0x197)],_0x39c4dc=this[_0x4cb969(0x1d6)](_0x2b01d8,_0x1561fb);if(!_0x39c4dc)return;let _0x6cd28d=_0x39c4dc[_0x4cb969(0x13f)][_0x4cb969(0x1f6)]();this[_0x4cb969(0x191)](_0x39c4dc['base'],_0x39c4dc[_0x4cb969(0x13f)],(0x0,_0x5c88db[_0x4cb969(0x1a0)])(_0x6cd28d,(0x0,_0x5c88db[_0x4cb969(0x146)])(_0x6cd28d,_0x3afe21)),_0x595c9e);return;}if(_0x210185(_0x29087b,_0x5c88db['CreateBaseRecordCommand'])){let _0x5aa04e=_0x29087b[_0x4cb969(0x197)],_0x10f226=this[_0x4cb969(0x1d6)](_0x5aa04e[_0x4cb969(0x118)],_0x5aa04e['tableId']);if(!_0x10f226)return;this[_0x4cb969(0x191)](_0x10f226['base'],_0x10f226[_0x4cb969(0x13f)],(0x0,_0x5c88db[_0x4cb969(0xe7)])(_0x10f226[_0x4cb969(0x13f)]['getTable'](),[_0x5aa04e['record']]),_0x5aa04e[_0x4cb969(0xa5)]??_0x5c88db[_0x4cb969(0x21c)]['UI']);return;}if(_0x210185(_0x29087b,_0x5c88db[_0x4cb969(0x245)])){let _0x5f5129=_0x29087b[_0x4cb969(0x197)],_0x32e86e=this[_0x4cb969(0x1d6)](_0x5f5129[_0x4cb969(0x118)],_0x5f5129[_0x4cb969(0x12e)]);if(!_0x32e86e)return;this[_0x4cb969(0x191)](_0x32e86e[_0x4cb969(0xb5)],_0x32e86e['table'],(0x0,_0x5c88db[_0x4cb969(0xe7)])(_0x32e86e[_0x4cb969(0x13f)][_0x4cb969(0x1f6)](),_0x5f5129['records']),_0x5f5129[_0x4cb969(0xa5)]??_0x5c88db[_0x4cb969(0x21c)]['UI']);return;}if(_0x210185(_0x29087b,_0x5c88db[_0x4cb969(0x21f)])){let _0x4265a4=_0x29087b[_0x4cb969(0x197)],_0x1fc6d6=this['_getHierarchyEventContext'](_0x4265a4[_0x4cb969(0x118)],_0x4265a4[_0x4cb969(0x12e)]);if(!_0x1fc6d6)return;this[_0x4cb969(0x191)](_0x1fc6d6[_0x4cb969(0xb5)],_0x1fc6d6[_0x4cb969(0x13f)],(0x0,_0x5c88db[_0x4cb969(0xe7)])(_0x1fc6d6['table'][_0x4cb969(0x1f6)](),[_0x4265a4['record']]),_0x4265a4[_0x4cb969(0xa5)]??_0x5c88db['BaseEventSource']['UI']);return;}if(_0x210185(_0x29087b,_0x5c88db['MoveBaseHierarchyRecordCommand'])){let _0x39368f=_0x29087b[_0x4cb969(0x197)],_0x433fa6=this[_0x4cb969(0x1d6)](_0x39368f[_0x4cb969(0x118)],_0x39368f['tableId']);if(!_0x433fa6)return;let _0x5819da=_0x433fa6[_0x4cb969(0x13f)][_0x4cb969(0x1f6)](),_0x321c65=_0x39368f[_0x4cb969(0xf5)]??(0x0,_0x5c88db['resolveBaseHierarchyFieldId'])(_0x5819da),_0x427a37=(0x0,_0x5c88db['buildBaseHierarchyIndex'])(_0x5819da,_0x321c65)[_0x4cb969(0x1e3)][_0x4cb969(0xfe)](_0x39368f['recordId'])??null;this[_0x4cb969(0x191)](_0x433fa6[_0x4cb969(0xb5)],_0x433fa6[_0x4cb969(0x13f)],[{'tableId':_0x39368f[_0x4cb969(0x12e)],'fieldId':_0x321c65,'recordId':_0x39368f[_0x4cb969(0x16d)],'oldParentRecordId':_0x427a37,'parentRecordId':_0x39368f[_0x4cb969(0x12c)]}],_0x39368f[_0x4cb969(0xa5)]??_0x5c88db['BaseEventSource']['UI']);return;}if(_0x210185(_0x29087b,_0x5c88db['CreateBaseChildRecordCommand'])){let _0x4e9c3e=_0x29087b[_0x4cb969(0x197)],_0x1b936c=this['_getHierarchyEventContext'](_0x4e9c3e[_0x4cb969(0x118)],_0x4e9c3e['tableId']);if(!_0x1b936c)return;let _0x450d90=_0x4e9c3e[_0x4cb969(0xf5)]??(0x0,_0x5c88db['resolveBaseHierarchyFieldId'])(_0x1b936c[_0x4cb969(0x13f)]['getTable']());this[_0x4cb969(0x191)](_0x1b936c[_0x4cb969(0xb5)],_0x1b936c['table'],[{'tableId':_0x4e9c3e[_0x4cb969(0x12e)],'fieldId':_0x450d90,'recordId':_0x4e9c3e[_0x4cb969(0x1c2)]['id'],'oldParentRecordId':null,'parentRecordId':_0x4e9c3e['parentRecordId']}],_0x4e9c3e[_0x4cb969(0xa5)]??_0x5c88db[_0x4cb969(0x21c)]['UI']);return;}if(_0x210185(_0x29087b,_0x5c88db[_0x4cb969(0x238)])){let _0x39c04b=_0x29087b[_0x4cb969(0x197)],_0x36a6b2=this[_0x4cb969(0x1d6)](_0x39c04b['unitId'],_0x39c04b[_0x4cb969(0x12e)]);if(!_0x36a6b2)return;this['_fireBeforeHierarchyChange'](_0x36a6b2[_0x4cb969(0xb5)],_0x36a6b2['table'],(0x0,_0x5c88db['getBaseHierarchyDeletePromotions'])(_0x36a6b2[_0x4cb969(0x13f)][_0x4cb969(0x1f6)](),[_0x39c04b[_0x4cb969(0x16d)]]),_0x39c04b[_0x4cb969(0xa5)]??_0x5c88db['BaseEventSource']['UI']);return;}if(_0x210185(_0x29087b,_0x5c88db[_0x4cb969(0x260)])){let _0x393b3a=_0x29087b[_0x4cb969(0x197)],_0x403eb4=this['_getHierarchyEventContext'](_0x393b3a[_0x4cb969(0x118)],_0x393b3a[_0x4cb969(0x12e)]);if(!_0x403eb4)return;this[_0x4cb969(0x191)](_0x403eb4['base'],_0x403eb4[_0x4cb969(0x13f)],(0x0,_0x5c88db[_0x4cb969(0x25f)])(_0x403eb4[_0x4cb969(0x13f)][_0x4cb969(0x1f6)](),_0x393b3a['recordIds']),_0x393b3a[_0x4cb969(0xa5)]??_0x5c88db[_0x4cb969(0x21c)]['UI']);return;}if(!_0x210185(_0x29087b,_0x5c88db[_0x4cb969(0x21b)]))return;let _0x3c8171=_0x29087b[_0x4cb969(0x197)],_0x36cf04=this[_0x4cb969(0x1d6)](_0x3c8171[_0x4cb969(0x118)],_0x3c8171[_0x4cb969(0x12e)]);if(!_0x36cf04)return;let _0x2deeb9=_0x36cf04['table'][_0x4cb969(0x1f6)]();if(!(0x0,_0x5c88db[_0x4cb969(0x1ba)])(_0x2deeb9)[_0x4cb969(0x23b)](_0x3c8171[_0x4cb969(0xf5)]))return;let _0x2f537a=(0x0,_0x5c88db[_0x4cb969(0x15d)])(_0x2deeb9,_0x3c8171[_0x4cb969(0xf5)])[_0x4cb969(0x1e3)][_0x4cb969(0xfe)](_0x3c8171[_0x4cb969(0x16d)])??null,_0x2e31b6=(0x0,_0x5c88db[_0x4cb969(0x15b)])(_0x3c8171['value'])[0x0]??null;_0x2f537a!==_0x2e31b6&&this['_fireBeforeHierarchyChange'](_0x36cf04['base'],_0x36cf04['table'],[{'tableId':_0x3c8171['tableId'],'fieldId':_0x3c8171[_0x4cb969(0xf5)],'recordId':_0x3c8171[_0x4cb969(0x16d)],'oldParentRecordId':_0x2f537a,'parentRecordId':_0x2e31b6}],_0x3c8171[_0x4cb969(0xa5)]??_0x5c88db[_0x4cb969(0x21c)]['UI']);}))),this[_0x51a07b(0x214)](this[_0x51a07b(0x250)](this[_0x51a07b(0x265)][_0x51a07b(0x251)],()=>this[_0x51a07b(0x1a5)]['beforeCommandExecuted'](_0x28942f=>{const _0x1de92c=_0x51a07b;if(_0x28942f['id']!==_0x5c88db['CreateBaseTableCommand']['id'])return;let {unitId:_0x19ebb0,table:_0x1f585d,index:_0x46d364}=_0x28942f[_0x1de92c(0x197)],_0x3e529f=this['getBase'](_0x19ebb0);if(!_0x3e529f)return;let _0x258948={'base':_0x3e529f,'table':_0x1f585d,'index':_0x46d364};if(this[_0x1de92c(0x23a)](this[_0x1de92c(0x265)][_0x1de92c(0x251)],_0x258948),_0x258948[_0x1de92c(0x1ad)])throw new _0x460afa[(_0x1de92c(0x1b3))]();}))),this[_0x51a07b(0x214)](this['registerEventHandler'](this['Event'][_0x51a07b(0x1b7)],()=>this['_commandService'][_0x51a07b(0x246)](_0xfb0a9a=>{const _0x163b64=_0x51a07b;if(_0xfb0a9a['id']!==_0x5c88db[_0x163b64(0x1bb)]['id'])return;let {unitId:_0x3366dc,tableId:_0x300278,field:_0x125e30,index:_0x22a8a0,viewIndexes:_0x41af59}=_0xfb0a9a[_0x163b64(0x197)],_0x1e33ac=this['getBase'](_0x3366dc);if(!_0x1e33ac)return;let _0x8aa07b=_0x1e33ac['getTableById'](_0x300278);if(!_0x8aa07b)return;let _0x4617b4={'base':_0x1e33ac,'table':_0x8aa07b,'field':_0x125e30,'index':_0x22a8a0,'viewIndexes':_0x41af59};if(this[_0x163b64(0x23a)](this[_0x163b64(0x265)][_0x163b64(0x1b7)],_0x4617b4),_0x4617b4[_0x163b64(0x1ad)])throw new _0x460afa['CanceledError']();}))),this[_0x51a07b(0x214)](this[_0x51a07b(0x250)](this[_0x51a07b(0x265)][_0x51a07b(0x22f)],()=>this[_0x51a07b(0x1a5)][_0x51a07b(0x246)](_0x7d6540=>{const _0x2bb87c=_0x51a07b;if(_0x7d6540['id']!==_0x5c88db['CreateBaseRecordCommand']['id']&&_0x7d6540['id']!==_0x5c88db[_0x2bb87c(0x245)]['id'])return;let _0x18c76f=_0x7d6540[_0x2bb87c(0x197)],{unitId:_0x46d2f9,tableId:_0x36a771}=_0x18c76f,_0x30d516=_0x18c76f[_0x2bb87c(0x211)]??[_0x18c76f['record']],_0x5abdd4=this[_0x2bb87c(0x14d)](_0x46d2f9);if(!_0x5abdd4)return;let _0x38bfce=_0x5abdd4[_0x2bb87c(0x240)](_0x36a771);if(!_0x38bfce)return;let _0x22295d={'base':_0x5abdd4,'table':_0x38bfce,'records':_0x30d516};if(this[_0x2bb87c(0x23a)](this['Event'][_0x2bb87c(0x22f)],_0x22295d),_0x22295d[_0x2bb87c(0x1ad)])throw new _0x460afa[(_0x2bb87c(0x1b3))]();}))),this[_0x51a07b(0x214)](this[_0x51a07b(0x250)](this[_0x51a07b(0x265)]['BeforeBaseTableViewCreate'],()=>this['_commandService']['beforeCommandExecuted'](_0x2f2ffb=>{const _0x5a2288=_0x51a07b;if(_0x2f2ffb['id']!==_0x5c88db['CreateBaseViewCommand']['id'])return;let {unitId:_0x4ebe46,tableId:_0x3347a6,view:_0x4f4040,index:_0x311df6}=_0x2f2ffb['params'],_0x3de133=this['getBase'](_0x4ebe46);if(!_0x3de133)return;let _0x30f415=_0x3de133[_0x5a2288(0x240)](_0x3347a6);if(!_0x30f415)return;let _0x4218e6={'base':_0x3de133,'table':_0x30f415,'view':_0x4f4040,'index':_0x311df6};if(this['fireEvent'](this[_0x5a2288(0x265)][_0x5a2288(0x145)],_0x4218e6),_0x4218e6[_0x5a2288(0x1ad)])throw new _0x460afa[(_0x5a2288(0x1b3))]();}))),this[_0x51a07b(0x214)](this[_0x51a07b(0x250)](this[_0x51a07b(0x265)][_0x51a07b(0x10c)],()=>this[_0x51a07b(0x1a5)][_0x51a07b(0x246)](_0x1a4bf9=>{const _0x5ad7ed=_0x51a07b;if(_0x1a4bf9['id']!==_0x5c88db[_0x5ad7ed(0x21b)]['id'])return;let {unitId:_0x2bcffa,tableId:_0x1c0140,recordId:_0xfa90b,fieldId:_0x47fc56,value:_0x4a1333}=_0x1a4bf9[_0x5ad7ed(0x197)],_0x7d4ecc=this[_0x5ad7ed(0x14d)](_0x2bcffa);if(!_0x7d4ecc)return;let _0x117df7=_0x7d4ecc[_0x5ad7ed(0x240)](_0x1c0140);if(!_0x117df7)return;let _0x1d270c=_0x117df7[_0x5ad7ed(0x147)](_0x47fc56);if(!_0x1d270c)return;let _0x57fa7a=_0x117df7[_0x5ad7ed(0x267)](_0xfa90b);if(!_0x57fa7a)return;let _0xc0a96f={'base':_0x7d4ecc,'table':_0x117df7,'field':_0x1d270c,'record':_0x57fa7a,'value':_0x4a1333};if(this[_0x5ad7ed(0x23a)](this[_0x5ad7ed(0x265)][_0x5ad7ed(0x10c)],_0xc0a96f),_0xc0a96f[_0x5ad7ed(0x1ad)])throw new _0x460afa[(_0x5ad7ed(0x1b3))]();})));}['_getHierarchyEventContext'](_0x4fa9da,_0x1e862a){const _0x31b6c9=_0x7fc612;let _0x408e18=this['getBase'](_0x4fa9da),_0x5112ba=_0x408e18==null?void 0x0:_0x408e18[_0x31b6c9(0x240)](_0x1e862a);return _0x408e18&&_0x5112ba?{'base':_0x408e18,'table':_0x5112ba}:null;}[_0x7fc612(0x191)](_0xeb4b01,_0x1a592d,_0x4ff875,_0x2548ce){const _0x105388=_0x7fc612;if(!_0x4ff875[_0x105388(0x208)])return;let _0x3104a5={'base':_0xeb4b01,'table':_0x1a592d,'changes':_0x4ff875,'source':_0x2548ce};if(this[_0x105388(0x23a)](this['Event'][_0x105388(0x26f)],_0x3104a5),_0x3104a5[_0x105388(0x1ad)])throw new _0x460afa[(_0x105388(0x1b3))]();}};function _0x210185(_0x83500a,_0x1fc449){const _0x2b8798=_0x7fc612;return _0x83500a['id']===_0x1fc449['id']&&_0x83500a[_0x2b8798(0x197)]!==void 0x0;}_0x1813e5[_0x7fc612(0xdf)][_0x7fc612(0x1df)](_0x1989bb);var _0x498dac=class extends _0x1813e5[_0x7fc612(0x18e)]{get[_0x7fc612(0x15a)](){const _0x18e940=_0x7fc612;return _0x460afa[_0x18e940(0x15a)];}get[_0x7fc612(0x218)](){return _0x460afa['BaseFilterConjunction'];}get[_0x7fc612(0x239)](){const _0x32da39=_0x7fc612;return _0x460afa[_0x32da39(0x239)];}get[_0x7fc612(0xc8)](){return _0x20ef2a;}get[_0x7fc612(0xb8)](){const _0x4f175d=_0x7fc612;return _0x460afa[_0x4f175d(0xb8)];}get[_0x7fc612(0x1d3)](){const _0x2b3057=_0x7fc612;return _0x460afa[_0x2b3057(0x1d3)];}get[_0x7fc612(0x1ee)](){const _0x4f31c2=_0x7fc612;return _0x460afa[_0x4f31c2(0x1ee)];}get['BaseConditionalDateMode'](){const _0x58047a=_0x7fc612;return _0x460afa[_0x58047a(0xec)];}get['BaseSortDirection'](){const _0x473666=_0x7fc612;return _0x460afa[_0x473666(0x162)];}get[_0x7fc612(0x21c)](){const _0x41d614=_0x7fc612;return _0x5c88db[_0x41d614(0x21c)];}get['BaseHierarchyErrorCode'](){const _0x98a0b0=_0x7fc612;return _0x5c88db[_0x98a0b0(0xf2)];}get[_0x7fc612(0x228)](){const _0x21589b=_0x7fc612;return _0x460afa[_0x21589b(0x228)];}get[_0x7fc612(0x1ed)](){const _0x20682c=_0x7fc612;return _0x460afa[_0x20682c(0x1ed)];}};_0x1813e5['FEnum']['extend'](_0x498dac);var _0x4a9771=class extends _0x1813e5[_0x7fc612(0xff)]{get[_0x7fc612(0x243)](){const _0x32809e=_0x7fc612;return _0x32809e(0x243);}get[_0x7fc612(0x251)](){const _0x5a48ec=_0x7fc612;return _0x5a48ec(0x251);}get['BaseTableFieldCreated'](){const _0x4da07d=_0x7fc612;return _0x4da07d(0x159);}get['BeforeBaseTableFieldCreate'](){return'BeforeBaseTableFieldCreate';}get['BaseTableRecordCreated'](){const _0x3ce15c=_0x7fc612;return _0x3ce15c(0xcc);}get[_0x7fc612(0x22f)](){return'BeforeBaseTableRecordCreate';}get['BaseTableViewCreated'](){return'BaseTableViewCreated';}get[_0x7fc612(0x145)](){return'BeforeBaseTableViewCreate';}get['BaseTableCellValueChanged'](){const _0x2a270e=_0x7fc612;return _0x2a270e(0x1a8);}get[_0x7fc612(0x10c)](){const _0x16085f=_0x7fc612;return _0x16085f(0x10c);}get[_0x7fc612(0x1c6)](){const _0x404717=_0x7fc612;return _0x404717(0x1c6);}get[_0x7fc612(0x26f)](){const _0x3a4762=_0x7fc612;return _0x3a4762(0x26f);}};_0x1813e5['FEventName'][_0x7fc612(0x1df)](_0x4a9771),_0x24290d[_0x7fc612(0xc8)]=_0x20ef2a,Object[_0x7fc612(0x24b)](_0x24290d,_0x7fc612(0x20c),{'enumerable':!0x0,'get':function(){return _0x5c53a0;}}),_0x24290d[_0x7fc612(0x19e)]=_0x5a8ed0,_0x24290d[_0x7fc612(0x230)]=_0x4712ce,Object[_0x7fc612(0x24b)](_0x24290d,_0x7fc612(0xd6),{'enumerable':!0x0,'get':function(){return _0x27bce8;}}),Object[_0x7fc612(0x24b)](_0x24290d,_0x7fc612(0x209),{'enumerable':!0x0,'get':function(){return _0x2003da;}}),Object[_0x7fc612(0x24b)](_0x24290d,_0x7fc612(0x154),{'enumerable':!0x0,'get':function(){return _0x7421c3;}}),Object[_0x7fc612(0x24b)](_0x24290d,_0x7fc612(0xd7),{'enumerable':!0x0,'get':function(){return _0x54b90e;}}),Object[_0x7fc612(0x24b)](_0x24290d,_0x7fc612(0x181),{'enumerable':!0x0,'get':function(){return _0x282005;}}),_0x24290d['FBasesEventNameMixin']=_0x4a9771,_0x24290d['resolveBaseFieldKey']=_0x1163c7,_0x24290d['resolveBaseFieldValues']=_0x442707;}));function _0x5d29(){const _0x48c220=['Kanban','UNIVER_BASE','BaseViewType','Gallery','conditions','caseSensitive','getDataRange','_resourceLoaderService','_getHierarchyIndex','hidden','100881YjqFSA','7056687LRTtMs','UpdateBaseRecordOrderCommand','deleteRecords','_getFieldIds','\x22:\x20expected\x20an\x20array.','sourceType','SetBaseViewFieldVisibleCommand','BaseFieldKeyEnum','endRow','AND','executeCommand','BaseTableRecordCreated','Invalid\x20attachment\x20at\x20index\x20','UUID','SetBaseRangeValuesCommand','getBaseViewPermissionObjectId','setDefaultValue','isFinite','getBaseId','primaryFieldId','Clear','FBaseTable','FBaseTableRecord','symbol','UniverInstanceType','values','_fieldId','_getView','map','UniverCore','FUniver','[FRecord]:\x20field\x20\x22','offset','getPrimaryFieldId','notMatches','setValue','_viewId','defaultValue','validateBaseHierarchyRecordCreations','\x22\x20is\x20invalid.','viewOrder','Date','UniverProBasesFacade','BaseConditionalDateMode','getPrimaryField','RecordLink','toPrimitive','addField','addRecords','BaseHierarchyErrorCode','addChild','hasOwnProperty','fieldId','limit','search','_base','stringify','duplicate','getType','getProjection','constructor','get','FEventName','object','setHierarchyField','305484oYJkUd','__esModule','system','canEdit','width','SetBaseViewSortCommand','UnitAction','sort','moveField','getTableFacade','BeforeBaseTableCellValueChange','fields','getCurrentUnitOfType','\x20for\x20field\x20\x22','duplicateTable','[FRecord]:\x20record\x20\x22','CreateBaseChildRecordCommand','enumerable','createUnit','generateRandomId','syncExecuteCommand','function','unitId','field','\x22\x20is\x20not\x20an\x20Attachment\x20field.','DeleteBaseViewCommand','url','UniverProtocol','ICommandService','RenameBaseTableCommand','getId','61626AbrZeb','rowId','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','_prepareFormulaFieldReferences','Edit',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','_unitId','canEditBaseTargets','endColumn','height','message','parentRecordId','clearConditionalColorRules','tableId','find','990855EpzWtV','getDescription','IBaseProjectionService','serializeRecordLinkIds','invalid','\x22.\x20','getPrototypeOf','Facade','getSort','rules','direction','[FTable]:\x20table\x20\x22','startColumn','getFieldByName','mimeType','table','insertTable','BASE_TABLE_NAME_REQUIREMENTS','\x20exceeds\x20range\x20size\x20','isArray','from','BeforeBaseTableViewCreate','resolveBaseRangeHierarchyPatches','getFieldById','primaryFieldName','getNumColumns','Tools','SetBaseViewGroupCommand','Failed\x20to\x20add\x20records','getBase','getBaseFieldPermissionObjectId','_getAttachmentField','afterFieldId','getAncestors','DeleteBaseFieldCommand','getSnapshot','FBaseTableRange','Calendar','setEditable','filter','getBaseFormulaTableName','BaseTableFieldCreated','BaseFieldType','parseRecordLinkIds','includeRecords','buildBaseHierarchyIndex','getOwnPropertyNames','valid','getConditionalColorRules','onCommandExecuted','BaseSortDirection','startRow','indexOf','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','ImageSourceType','UniverProEngineFormula','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','ApplyBaseJson1Mutation','MoveBaseViewCommand','@univerjs/core','getBaseTablePermissionObjectId','recordId','Base\x20field\x20not\x20found:\x20','isReadonly','now','[FRecord]:\x20attachment\x20at\x20index\x20','CreateBaseRecordCommand','number','prototype','targetTableId','\x22\x20does\x20not\x20exist.','getPermission','getFormulaName','save','_baseUnitId','BASE_RECORD_ID_FIELD_ID','max',':\x20\x22','[FRecord]:\x20RecordLink\x20field\x20\x22','bind','getAllUnitsForType','FBaseTableView','UpsertHostExternalReferencesCommand','setValues','getRecord','thumbnail','every','getActiveBase','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','custom','name','setAttachments','getColumn','deleteConditionalColorRule','FEnum','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','updateConfig','_fireBeforeHierarchyChange','49rqnJEI','type','538ExIdbh','_baseTableId',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','params','SetBaseViewFieldOrderCommand','saveUnit','description','Name','childrenByParentId','Invalid\x20Base\x20regex\x20filter:\x20','FBaseObjectPermission','tables','validateBaseHierarchyRecordPatches','Gantt','deepClone','setLinkedRecordIds','_inject','_commandService','URL','beforeFieldId','BaseTableCellValueChanged','default','_injector','_assertInBounds','_parentObjectIds','cancel','push','index','flatMap','getBases','Inject','CanceledError','getAttachments','_range','toStringTag','BeforeBaseTableFieldCreate','recordOrder','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','getActiveBaseHierarchyFieldIds','CreateBaseFieldCommand','getDefaultValue','Remote','entries','views','view','iterator','record','getField',':\x20expected\x20an\x20object.','_projectionService','BaseHierarchyChanged','_tableId','config','changeType','forEach','formula','getRange','getTableByName','[FBaseRange]:\x20table\x20does\x20not\x20exist.','getUnitId','_initBaseAfterEvents','_table','Failed\x20to\x20delete\x20table\x20\x22','BaseConditionalColorTarget','getUnit','setConditionalColorRules','_getHierarchyEventContext','_resolveRecordIds','createUniqueBaseTableName','_recordId','warn','119iqUQWk','deleteTable','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','validateBaseTableName','extend','getConfig','_permissionService','startsWith','parentByRecordId','setSort','ensureBaseTableCellLayout','getTables','call','_writeFormulaExternalReferences','UpdateBaseViewConfigCommand','getName','12DGOqcv','IPermissionService','BaseRecordLinkRole','BaseConditionalColorOperator','Formula','SetBasePermissionCommand','IResourceLoaderService','\x22\x20must\x20be\x20a\x20non-empty\x20string.','setFilter','removeLinkedRecord','getOwnPropertyDescriptor','getTable','SetBaseViewFieldWidthCommand','UniverProBases','15VmObDI','operator','setReadOnly','deleteProperty','@univerjs/protocol','clear','UniverCoreFacade','getSchema','fromCollab','data:','SetBasePermissionsCommand','Delete','Duplicate\x20Base\x20field\x20name:\x20','create','getHierarchyFieldId','length','FBaseTableField','decorate','localeCompare','FBase','matches','visibleCardFieldIds','slice','DeleteBaseTableCommand','records','Failed\x20to\x20create\x20view\x20\x22','UpdateBaseViewConditionalColorRulesCommand','disposeWithMe','_getRecord','fieldSettings','fieldKey','BaseFilterConjunction','_initBaseBeforeEvents','externalReferences','UpdateBaseCellCommand','BaseEventSource','_univerInstanceService','getValues','DuplicateBaseRecordCommand','addRecord','delete','conditionalColoring','getBasePermissionValue','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','orderKey','subtreeHeightByRecordId','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','BaseHierarchyInvalidReason','getViewById','SetBaseTableHierarchyFieldCommand','tableOrder','SetBaseViewFilterCommand','getRow','getTableId','BeforeBaseTableRecordCreate','FBasePermission','Injector','viewId','validateRecordLinkValue','_getRecordLinkField','getFields','getBaseRecordPermissionObjectId','queryRecords','DeleteBaseRecordCommand','BaseFilterOperator','fireEvent','includes','getNumRows','getValue','CreateBaseTableCommand','_collectDescendantIds','getTableById','Invalid\x20Base\x20formula.','getVisibleFields','BaseTableCreated','createdAt','BatchCreateBaseRecordsCommand','beforeCommandExecuted','boolean','864456agSpNB','getParent','setPoint','defineProperty','searchBaseTable','getLinkedRecordIds','some','hierarchyChanges','registerEventHandler','BeforeBaseTableCreate','[FField]:\x20field\x20\x22','regenerateViewIds','createInstance','Unsupported\x20Base\x20field\x20type\x20\x22','setName','string','size','move','update','CreateBaseViewCommand','SetBaseRecordValuesCommand','getRecords','createDefaultBaseTableSnapshot','getBaseHierarchyDeletePromotions','BatchDeleteBaseRecordsCommand','addConditionalColorRule','setConfig','updatedAt','@univerjs-pro/bases','Event','fieldOrder','getRecordById','has','_getField','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','reason','auto','_getTable','readonly','BeforeBaseHierarchyChange','multiple','source','getPoint','180grSaiW','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','FBaseInitialable','_initialize','rows','RenameBaseViewCommand','[FRecord]:\x20invalid\x20RecordLink\x20value.','BaseConditionalColorRuleUpdateType','getBaseCellValue','_objectId','\x20Copy','copyBaseTableSnapshot','SetBaseNameCommand','trim','base'];_0x5d29=function(){return _0x48c220;};return _0x5d29();}
1
+ function _0x287a(_0x41f08a,_0x201c4a){_0x41f08a=_0x41f08a-0x157;const _0x74079f=_0x7407();let _0x287a59=_0x74079f[_0x41f08a];return _0x287a59;}(function(_0x5c3c28,_0x2c1fad){const _0x195692=_0x287a,_0x1562f5=_0x5c3c28();while(!![]){try{const _0x255a2b=parseInt(_0x195692(0x28a))/0x1+-parseInt(_0x195692(0x27e))/0x2*(-parseInt(_0x195692(0x178))/0x3)+-parseInt(_0x195692(0x259))/0x4+-parseInt(_0x195692(0x280))/0x5*(-parseInt(_0x195692(0x226))/0x6)+parseInt(_0x195692(0x30d))/0x7*(-parseInt(_0x195692(0x2ff))/0x8)+parseInt(_0x195692(0x2ef))/0x9*(parseInt(_0x195692(0x174))/0xa)+-parseInt(_0x195692(0x1f6))/0xb;if(_0x255a2b===_0x2c1fad)break;else _0x1562f5['push'](_0x1562f5['shift']());}catch(_0xc92691){_0x1562f5['push'](_0x1562f5['shift']());}}}(_0x7407,0x8e8be),function(_0x40afe2,_0x13024a){const _0x42fe0f=_0x287a;typeof exports==_0x42fe0f(0x311)&&typeof module<'u'?_0x13024a(exports,require('@univerjs-pro/bases'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/protocol'),require('@univerjs-pro/engine-formula')):typeof define==_0x42fe0f(0x1d2)&&define['amd']?define([_0x42fe0f(0x2df),_0x42fe0f(0x201),_0x42fe0f(0x16e),_0x42fe0f(0x2bb),_0x42fe0f(0x242),'@univerjs-pro/engine-formula'],_0x13024a):(_0x40afe2=typeof globalThis<'u'?globalThis:_0x40afe2||self,_0x13024a(_0x40afe2[_0x42fe0f(0x1c8)]={},_0x40afe2[_0x42fe0f(0x227)],_0x40afe2[_0x42fe0f(0x2ed)],_0x40afe2[_0x42fe0f(0x182)],_0x40afe2[_0x42fe0f(0x265)],_0x40afe2[_0x42fe0f(0x219)]));}(this,function(_0x39aa09,_0x48619f,_0x758172,_0x53678c,_0x386cc4,_0xa1ac30){const _0x360f56=_0x287a;Object[_0x360f56(0x28c)](_0x39aa09,Symbol[_0x360f56(0x2ee)],{'value':'Module'});var _0x1cd3fd=Object['create'],_0x1b60f9=Object[_0x360f56(0x28c)],_0x13aa19=Object['getOwnPropertyDescriptor'],_0x5363cc=Object[_0x360f56(0x284)],_0x3e3bd9=Object[_0x360f56(0x28e)],_0x7f65cf=Object[_0x360f56(0x1cd)][_0x360f56(0x235)],_0x439bd1=(_0xdbe068,_0x2916db,_0x54018e,_0x3c456e)=>{const _0x5811c7=_0x360f56;if(_0x2916db&&typeof _0x2916db==_0x5811c7(0x311)||typeof _0x2916db==_0x5811c7(0x1d2)){for(var _0x587523=_0x5363cc(_0x2916db),_0x46c1b4=0x0,_0x562bef=_0x587523[_0x5811c7(0x270)],_0x5b984c;_0x46c1b4<_0x562bef;_0x46c1b4++)_0x5b984c=_0x587523[_0x46c1b4],!_0x7f65cf[_0x5811c7(0x278)](_0xdbe068,_0x5b984c)&&_0x5b984c!==_0x54018e&&_0x1b60f9(_0xdbe068,_0x5b984c,{'get':(_0x9cdefb=>_0x2916db[_0x9cdefb])[_0x5811c7(0x20f)](null,_0x5b984c),'enumerable':!(_0x3c456e=_0x13aa19(_0x2916db,_0x5b984c))||_0x3c456e['enumerable']});}return _0xdbe068;};_0x53678c=((_0x56b460,_0x4ed6b1,_0xaa594c)=>(_0xaa594c=_0x56b460==null?{}:_0x1cd3fd(_0x3e3bd9(_0x56b460)),_0x439bd1(_0x4ed6b1||!_0x56b460||!_0x56b460[_0x360f56(0x18d)]||!_0x7f65cf['call'](_0x56b460,_0x360f56(0x2ca))?_0x1b60f9(_0xaa594c,_0x360f56(0x2ca),{'value':_0x56b460,'enumerable':!0x0}):_0xaa594c,_0x56b460)))(_0x53678c);var _0x1339aa=class{constructor(_0x5320c8,_0x148a71,_0x4ed0be){const _0x366913=_0x360f56;this[_0x366913(0x1b1)]=_0x5320c8,this[_0x366913(0x1d4)]=_0x148a71,this[_0x366913(0x159)]=_0x4ed0be;}async['setObjectPermissions'](_0x5f1ffe){const _0x179d17=_0x360f56;return this[_0x179d17(0x1d4)][_0x179d17(0x163)](_0x48619f[_0x179d17(0x1a9)]['id'],{'unitId':this[_0x179d17(0x1b1)],'changes':_0x5f1ffe});}async[_0x360f56(0x220)](_0x4976f2,_0x1eb42f){const _0x584286=_0x360f56;await this['_commandService'][_0x584286(0x163)](_0x48619f[_0x584286(0x157)]['id'],{'unitId':this[_0x584286(0x1b1)],'objectId':this[_0x584286(0x1b1)],'action':_0x4976f2,'value':_0x1eb42f});}['getPoint'](_0x489d98){const _0x5d4437=_0x360f56;return(0x0,_0x48619f[_0x5d4437(0x1c7)])(this[_0x5d4437(0x159)],this['_unitId'],this['_unitId'],_0x489d98);}async[_0x360f56(0x2dd)](_0x47b02b=!0x0){const _0x358d6e=_0x360f56;await this[_0x358d6e(0x1d4)][_0x358d6e(0x163)](_0x48619f[_0x358d6e(0x157)]['id'],{'unitId':this[_0x358d6e(0x1b1)],'objectId':this[_0x358d6e(0x1b1)],'action':_0x386cc4[_0x358d6e(0x22e)]['Edit'],'value':_0x47b02b});}async[_0x360f56(0x2d2)](){const _0x38c9b2=_0x360f56;await this[_0x38c9b2(0x1d4)]['executeCommand'](_0x48619f[_0x38c9b2(0x157)]['id'],{'unitId':this[_0x38c9b2(0x1b1)],'objectId':this[_0x38c9b2(0x1b1)],'action':_0x386cc4[_0x38c9b2(0x22e)]['Edit'],'value':!0x1});}[_0x360f56(0x240)](){const _0x56c7f2=_0x360f56;return(0x0,_0x48619f[_0x56c7f2(0x1c7)])(this[_0x56c7f2(0x159)],this[_0x56c7f2(0x1b1)],this[_0x56c7f2(0x1b1)],_0x386cc4[_0x56c7f2(0x22e)][_0x56c7f2(0x1f1)]);}},_0x543a91=class{constructor(_0x4a64a4,_0xf6b12b,_0x43481c,_0x50fd13,_0x7f3b15){const _0x57d719=_0x360f56;this[_0x57d719(0x1b1)]=_0x4a64a4,this['_objectId']=_0xf6b12b,this['_parentObjectIds']=_0x43481c,this['_commandService']=_0x50fd13,this[_0x57d719(0x159)]=_0x7f3b15;}async[_0x360f56(0x2dd)](_0x428c7b=!0x0){const _0x5efa8e=_0x360f56;await this[_0x5efa8e(0x1d4)][_0x5efa8e(0x163)](_0x48619f[_0x5efa8e(0x157)]['id'],{'unitId':this[_0x5efa8e(0x1b1)],'objectId':this[_0x5efa8e(0x301)],'action':_0x386cc4[_0x5efa8e(0x22e)]['Edit'],'value':_0x428c7b});}async[_0x360f56(0x2d2)](){const _0x3ff7d5=_0x360f56;await this[_0x3ff7d5(0x1d4)][_0x3ff7d5(0x163)](_0x48619f[_0x3ff7d5(0x157)]['id'],{'unitId':this['_unitId'],'objectId':this[_0x3ff7d5(0x301)],'action':_0x386cc4[_0x3ff7d5(0x22e)][_0x3ff7d5(0x1f1)],'value':!0x1});}[_0x360f56(0x240)](){const _0x543d69=_0x360f56;return(0x0,_0x48619f[_0x543d69(0x15d)])(this[_0x543d69(0x159)],this[_0x543d69(0x1b1)],[...this['_parentObjectIds'],this[_0x543d69(0x301)]]);}};function _0x2ff177(_0x5785ae,_0x48fac7){return function(_0x145ae1,_0x26ecc4){_0x48fac7(_0x145ae1,_0x26ecc4,_0x5785ae);};}function _0x283871(_0x34c538,_0x533b29,_0x1d98dd,_0x294e55){const _0x1c03e1=_0x360f56;var _0x56366c=arguments['length'],_0x1ff6e5=_0x56366c<0x3?_0x533b29:_0x294e55===null?_0x294e55=Object['getOwnPropertyDescriptor'](_0x533b29,_0x1d98dd):_0x294e55,_0x2377c7;if(typeof Reflect==_0x1c03e1(0x311)&&typeof Reflect[_0x1c03e1(0x1c9)]=='function')_0x1ff6e5=Reflect['decorate'](_0x34c538,_0x533b29,_0x1d98dd,_0x294e55);else{for(var _0x3f82d0=_0x34c538[_0x1c03e1(0x270)]-0x1;_0x3f82d0>=0x0;_0x3f82d0--)(_0x2377c7=_0x34c538[_0x3f82d0])&&(_0x1ff6e5=(_0x56366c<0x3?_0x2377c7(_0x1ff6e5):_0x56366c>0x3?_0x2377c7(_0x533b29,_0x1d98dd,_0x1ff6e5):_0x2377c7(_0x533b29,_0x1d98dd))||_0x1ff6e5);}return _0x56366c>0x3&&_0x1ff6e5&&Object[_0x1c03e1(0x28c)](_0x533b29,_0x1d98dd,_0x1ff6e5),_0x1ff6e5;}let _0xe9c966=class{constructor(_0x2280cd,_0x5b07ae,_0x25db7c,_0x3bdfbc,_0x1a774e){const _0x2bf106=_0x360f56;this[_0x2bf106(0x24b)]=_0x2280cd,this['_table']=_0x5b07ae,this[_0x2bf106(0x1ad)]=_0x25db7c,this[_0x2bf106(0x1d4)]=_0x3bdfbc,this[_0x2bf106(0x159)]=_0x1a774e;}['getId'](){const _0x2d6f93=_0x360f56;return this[_0x2d6f93(0x1ad)];}[_0x360f56(0x234)](){const _0x3e06d4=_0x360f56;let _0x50dd6b=this[_0x3e06d4(0x22a)]['getId']();return new _0x543a91(this[_0x3e06d4(0x24b)][_0x3e06d4(0x186)](),(0x0,_0x48619f['getBaseFieldPermissionObjectId'])(_0x50dd6b,this[_0x3e06d4(0x1ad)]),[(0x0,_0x48619f[_0x3e06d4(0x28f)])(_0x50dd6b)],this[_0x3e06d4(0x1d4)],this['_permissionService']);}[_0x360f56(0x17b)](){const _0x565350=_0x360f56;return this[_0x565350(0x26d)]();}[_0x360f56(0x2e1)](){const _0x4f6ba1=_0x360f56;return this[_0x4f6ba1(0x26d)]()['name'];}[_0x360f56(0x1b5)](){const _0x2fb402=_0x360f56;return this[_0x2fb402(0x26d)]()[_0x2fb402(0x1e7)];}[_0x360f56(0x17f)](){const _0x32c7fe=_0x360f56;return this[_0x32c7fe(0x26d)]()[_0x32c7fe(0x185)];}[_0x360f56(0x2d1)](){const _0x3f7aeb=_0x360f56;return this[_0x3f7aeb(0x26d)]()[_0x3f7aeb(0x208)];}[_0x360f56(0x210)](){const _0x3f2bba=_0x360f56;return this[_0x3f2bba(0x26d)]()['description'];}[_0x360f56(0x180)](){const _0x1d4256=_0x360f56;return!!this['_getField']()[_0x1d4256(0x246)];}[_0x360f56(0x2a5)](_0x32ef5c){const _0x527a0b=_0x360f56;return this[_0x527a0b(0x2b3)]({'name':_0x32ef5c});}[_0x360f56(0x309)](_0x253cd8,_0x1805fb){const _0x2a6f92=_0x360f56;return this[_0x2a6f92(0x2b3)]({'config':_0x253cd8},_0x1805fb);}[_0x360f56(0x241)](_0xca76a4){const _0x525cd0=_0x360f56;return this[_0x525cd0(0x2b3)]({'defaultValue':_0xca76a4});}['update'](_0x1cb124,_0x262000){const _0x2cf799=_0x360f56;let _0x5d0df6=this['_getField']()[_0x2cf799(0x1e7)];return(_0x1cb124['type']??_0x5d0df6)===_0x758172[_0x2cf799(0x2bf)]['Formula']&&(Object[_0x2cf799(0x1cd)][_0x2cf799(0x235)]['call'](_0x1cb124,'config')||_0x1cb124[_0x2cf799(0x1e7)]===_0x758172['BaseFieldType'][_0x2cf799(0x2fc)])&&!this[_0x2cf799(0x2f1)](_0x262000)?!0x1:this['_commandService']['syncExecuteCommand'](_0x48619f['UpdateBaseFieldCommand']['id'],{'unitId':this[_0x2cf799(0x24b)]['getId'](),'tableId':this['_table']['getId'](),'fieldId':this['_fieldId'],'patch':_0x1cb124});}[_0x360f56(0x2b1)](_0x66f9f8,_0x5ce426={},_0x551acb){const _0xf953df=_0x360f56;return _0x66f9f8===_0x758172['BaseFieldType'][_0xf953df(0x2fc)]&&!this['_writeFormulaExternalReferences'](_0x551acb)?!0x1:this[_0xf953df(0x1d4)]['syncExecuteCommand'](_0x48619f['ChangeBaseFieldTypeCommand']['id'],{'unitId':this[_0xf953df(0x24b)][_0xf953df(0x186)](),'tableId':this['_table'][_0xf953df(0x186)](),'fieldId':this[_0xf953df(0x1ad)],'input':{'type':_0x66f9f8,'config':_0x5ce426}});}['delete'](){const _0xef920e=_0x360f56;return this[_0xef920e(0x1d4)][_0xef920e(0x207)](_0x48619f[_0xef920e(0x213)]['id'],{'unitId':this['_base'][_0xef920e(0x186)](),'tableId':this[_0xef920e(0x22a)][_0xef920e(0x186)](),'fieldId':this['_fieldId']});}['move'](_0x598f81){const _0x417fa1=_0x360f56;return this[_0x417fa1(0x1d4)][_0x417fa1(0x207)](_0x48619f[_0x417fa1(0x176)]['id'],{'unitId':this[_0x417fa1(0x24b)][_0x417fa1(0x186)](),'tableId':this[_0x417fa1(0x22a)][_0x417fa1(0x186)](),'fieldId':this[_0x417fa1(0x1ad)],'target':_0x598f81});}[_0x360f56(0x26d)](){const _0x4a5d12=_0x360f56;let _0x3eb90f=this[_0x4a5d12(0x22a)][_0x4a5d12(0x1a2)]()[_0x4a5d12(0x25d)][this[_0x4a5d12(0x1ad)]];if(!_0x3eb90f)throw Error(_0x4a5d12(0x1c4)+this[_0x4a5d12(0x1ad)]+_0x4a5d12(0x30f));return _0x3eb90f;}[_0x360f56(0x2f1)](_0x24c751){const _0x15732f=_0x360f56;if(!_0x24c751||!Array['isArray'](_0x24c751[_0x15732f(0x2cb)]))return console[_0x15732f(0x229)]('[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.'),!0x1;if(_0x24c751[_0x15732f(0x2cb)][_0x15732f(0x270)]===0x0)return!0x0;let _0x2b7f4f=this[_0x15732f(0x1d4)][_0x15732f(0x207)](_0xa1ac30[_0x15732f(0x306)]['id'],{'unitId':this[_0x15732f(0x24b)][_0x15732f(0x186)](),'references':_0x24c751[_0x15732f(0x2cb)]});return _0x2b7f4f||console[_0x15732f(0x229)](_0x15732f(0x215)),_0x2b7f4f;}};_0xe9c966=_0x283871([_0x2ff177(0x3,_0x758172[_0x360f56(0x1e2)]),_0x2ff177(0x4,_0x758172[_0x360f56(0x1ce)])],_0xe9c966);let _0x1d13e3=function(_0x2c7707){const _0x15fa69=_0x360f56;return _0x2c7707['Id']='id',_0x2c7707[_0x15fa69(0x23e)]='name',_0x2c7707['Auto']='auto',_0x2c7707;}({});function _0x4a80b3(_0x2a1bbb){const _0xe496af=_0x360f56;return!!(_0x2a1bbb&&_0x2a1bbb[_0xe496af(0x199)]!==!0x0&&_0x2a1bbb['type']!==_0x758172[_0xe496af(0x2bf)]['RecordId']);}function _0x4e634a(_0x184ab2,_0x296547,_0x4d51d0='id'){const _0x46df0e=_0x360f56;if(!_0x296547)return{};let _0x57d015={};return Object[_0x46df0e(0x1c6)](_0x296547)[_0x46df0e(0x252)](([_0x39daa8,_0x584687])=>{let _0x179762=_0x3dd948(_0x184ab2,_0x39daa8,_0x4d51d0);_0x57d015[_0x179762]=_0x33b55d(_0x184ab2['fields'][_0x179762],_0x584687);}),_0x57d015;}function _0x33b55d(_0x1f7123,_0x4f149e){const _0x5c2b52=_0x360f56;if((_0x1f7123==null?void 0x0:_0x1f7123[_0x5c2b52(0x1e7)])!==_0x758172['BaseFieldType'][_0x5c2b52(0x209)]||_0x4f149e==null)return _0x4f149e;if(!Array[_0x5c2b52(0x1b0)](_0x4f149e))throw TypeError(_0x5c2b52(0x2bc)+_0x1f7123[_0x5c2b52(0x2a9)]+_0x5c2b52(0x18c));return _0x4f149e[_0x5c2b52(0x2c8)]((_0x198ef3,_0x59e837)=>_0x4c1a62(_0x1f7123,_0x198ef3,_0x59e837));}function _0x3dd948(_0x47fba0,_0x7bd5cf,_0xaa4067){const _0x36cb66=_0x360f56;if(_0xaa4067==='id'||_0xaa4067===_0x36cb66(0x1ec)&&_0x47fba0[_0x36cb66(0x25d)][_0x7bd5cf])return _0x7bd5cf;let _0x4f7c48=Object[_0x36cb66(0x1ed)](_0x47fba0['fields'])[_0x36cb66(0x290)](_0x4b95a5=>_0x4b95a5['name']===_0x7bd5cf);if(_0x4f7c48[_0x36cb66(0x270)]===0x1)return _0x4f7c48[0x0]['id'];throw _0x4f7c48[_0x36cb66(0x270)]>0x1?Error(_0x36cb66(0x249)+_0x7bd5cf):Error(_0x36cb66(0x18e)+_0x7bd5cf);}function _0x4c1a62(_0x30493d,_0x3b2fe0,_0x473917){const _0x5522c7=_0x360f56;let _0x5820d9=_0x5522c7(0x1b7)+_0x473917+_0x5522c7(0x1d7)+_0x30493d[_0x5522c7(0x2a9)]+'\x22';if(!_0x8749b8(_0x3b2fe0))throw TypeError(_0x5820d9+_0x5522c7(0x20b));if('url'in _0x3b2fe0)throw TypeError(_0x5820d9+_0x5522c7(0x255));if('type'in _0x3b2fe0)throw TypeError(_0x5820d9+_0x5522c7(0x304));let _0x59f740=_0x172e40(_0x3b2fe0['id'],_0x5820d9,'id'),_0x27a798=_0x172e40(_0x3b2fe0[_0x5522c7(0x2a9)],_0x5820d9,_0x5522c7(0x2a9)),_0x23593e=_0x172e40(_0x3b2fe0['source'],_0x5820d9,'source');return{'id':_0x59f740,'name':_0x27a798,'source':_0x23593e,'sourceType':_0x5c2290(_0x3b2fe0['sourceType'],_0x23593e,_0x5820d9),..._0x1367fd(_0x3b2fe0,_0x5522c7(0x2e6),_0x5820d9),..._0x2d81b2(_0x3b2fe0,_0x5522c7(0x276),_0x5820d9),..._0x2d81b2(_0x3b2fe0,_0x5522c7(0x17d),_0x5820d9),..._0x2d81b2(_0x3b2fe0,_0x5522c7(0x24d),_0x5820d9),..._0x1367fd(_0x3b2fe0,_0x5522c7(0x2f5),_0x5820d9)};}function _0x5c2290(_0xc84c45,_0x37cc1e,_0x38b2d8){const _0x221820=_0x360f56;if(_0xc84c45==null)return _0x37cc1e[_0x221820(0x310)](_0x221820(0x2fa))?_0x758172['ImageSourceType'][_0x221820(0x1e5)]:_0x758172[_0x221820(0x1ab)]['URL'];if(_0xc84c45===_0x758172[_0x221820(0x1ab)]['URL']||_0xc84c45===_0x758172['ImageSourceType']['UUID']||_0xc84c45===_0x758172[_0x221820(0x1ab)][_0x221820(0x1e5)])return _0xc84c45;throw TypeError(_0x38b2d8+_0x221820(0x165));}function _0x172e40(_0x130808,_0x212433,_0x567ed4){const _0x5e7578=_0x360f56;if(typeof _0x130808!='string'||!_0x130808[_0x5e7578(0x237)]())throw TypeError(_0x212433+_0x5e7578(0x2da)+_0x567ed4+_0x5e7578(0x195));return _0x130808;}function _0x1367fd(_0x155043,_0x11ca73,_0xc65b64){const _0x50addf=_0x360f56;let _0x364295=_0x155043[_0x11ca73];if(_0x364295==null)return{};if(typeof _0x364295!=_0x50addf(0x2a6)||!_0x364295['trim']())throw TypeError(_0xc65b64+_0x50addf(0x2da)+_0x11ca73+_0x50addf(0x258));return{[_0x11ca73]:_0x364295};}function _0x2d81b2(_0x11290f,_0x255a54,_0x4033cb){const _0x296b7e=_0x360f56;let _0x16edac=_0x11290f[_0x255a54];if(_0x16edac==null)return{};if(typeof _0x16edac!=_0x296b7e(0x16f)||!Number[_0x296b7e(0x1a6)](_0x16edac)||_0x16edac<0x0)throw TypeError(_0x4033cb+_0x296b7e(0x2da)+_0x255a54+'\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.');return{[_0x255a54]:_0x16edac};}function _0x8749b8(_0x1b964e){const _0x47d156=_0x360f56;return typeof _0x1b964e==_0x47d156(0x311)&&!!_0x1b964e&&!Array['isArray'](_0x1b964e);}var _0x283c12;let _0x146f1c=_0x283c12=class{constructor(_0x44dd6c,_0x25855b,_0x34e866,_0x24a172,_0x479656){const _0x2453f2=_0x360f56;this[_0x2453f2(0x24b)]=_0x44dd6c,this[_0x2453f2(0x22a)]=_0x25855b,this['_range']=_0x34e866,this[_0x2453f2(0x1a7)]=_0x24a172,this[_0x2453f2(0x1d4)]=_0x479656,this[_0x2453f2(0x283)]();}[_0x360f56(0x18a)](){const _0x1893dc=_0x360f56;return this[_0x1893dc(0x24b)][_0x1893dc(0x186)]();}['getTableId'](){return this['_table']['getId']();}[_0x360f56(0x217)](){return{...this['_range']};}[_0x360f56(0x257)](){const _0x110a44=_0x360f56;return this[_0x110a44(0x299)][_0x110a44(0x294)];}['getColumn'](){const _0x2a2382=_0x360f56;return this['_range'][_0x2a2382(0x300)];}['getNumRows'](){const _0x19bf49=_0x360f56;return this[_0x19bf49(0x299)][_0x19bf49(0x19a)]-this['_range'][_0x19bf49(0x294)]+0x1;}[_0x360f56(0x289)](){const _0x3b13ec=_0x360f56;return this[_0x3b13ec(0x299)][_0x3b13ec(0x2d0)]-this[_0x3b13ec(0x299)][_0x3b13ec(0x300)]+0x1;}['getValues'](){const _0x436a8e=_0x360f56;let _0x113327=this[_0x436a8e(0x2fd)](),_0x20989a=this['_getFieldIds'](_0x113327),_0x26ae2d=[];for(let _0x42163f=this['_range'][_0x436a8e(0x294)];_0x42163f<=this[_0x436a8e(0x299)]['endRow'];_0x42163f++){var _0xf66148;let _0x5067aa=(_0xf66148=_0x113327['rowId'])==null?void 0x0:_0xf66148[_0x42163f],_0x15c7c7=[];for(let _0x91d51d=this['_range'][_0x436a8e(0x300)];_0x91d51d<=this[_0x436a8e(0x299)][_0x436a8e(0x2d0)];_0x91d51d++){let _0x7f455d=_0x20989a[_0x91d51d];_0x15c7c7[_0x436a8e(0x2e0)](_0x5067aa&&_0x7f455d?(0x0,_0x48619f['getBaseCellValue'])(_0x113327,_0x5067aa,_0x7f455d):null);}_0x26ae2d['push'](_0x15c7c7);}return _0x26ae2d;}['getValue'](){var _0xe7b184;return((_0xe7b184=this['getValues']()[0x0])==null?void 0x0:_0xe7b184[0x0])??null;}[_0x360f56(0x1f8)](_0x7b4162){const _0x27a8fb=_0x360f56;return this[_0x27a8fb(0x22d)]([[_0x7b4162]]);}['setValues'](_0x3aa1a0){const _0x879066=_0x360f56;let _0x5ee71f=this[_0x879066(0x1da)](),_0x575f6e=this[_0x879066(0x289)]();if(_0x3aa1a0[_0x879066(0x270)]>_0x5ee71f||_0x3aa1a0[_0x879066(0x1d8)](_0x5b6265=>_0x5b6265[_0x879066(0x270)]>_0x575f6e)){var _0x432dff;throw Error(_0x879066(0x2f2)+_0x3aa1a0[_0x879066(0x270)]+'x'+(((_0x432dff=_0x3aa1a0[0x0])==null?void 0x0:_0x432dff[_0x879066(0x270)])??0x0)+_0x879066(0x1f5)+_0x5ee71f+'x'+_0x575f6e+'.');}let _0x3fc6e0=this[_0x879066(0x2fd)](),_0x18f1fa=this[_0x879066(0x296)](_0x3fc6e0),_0x236a92=_0x3aa1a0[_0x879066(0x2d6)]((_0x12739a,_0x24fd3c)=>_0x12739a[_0x879066(0x2c8)]((_0x578097,_0x310bb5)=>{const _0x4491e5=_0x879066;var _0x38ed8c;let _0x10d45d=this[_0x4491e5(0x299)]['startRow']+_0x24fd3c,_0x2c6846=_0x18f1fa[this[_0x4491e5(0x299)]['startColumn']+_0x310bb5],_0x196ca3=(_0x38ed8c=_0x3fc6e0[_0x4491e5(0x2e5)])==null?void 0x0:_0x38ed8c[_0x10d45d];if(!_0x2c6846||!_0x196ca3)throw Error(_0x4491e5(0x1e1));return{'recordId':_0x196ca3,'fieldId':_0x2c6846,'value':_0x578097};}));return this['_commandService'][_0x879066(0x207)](_0x48619f[_0x879066(0x27c)]['id'],{'unitId':this[_0x879066(0x24b)][_0x879066(0x186)](),'tableId':this[_0x879066(0x22a)][_0x879066(0x186)](),'patches':_0x236a92,'source':_0x48619f[_0x879066(0x264)][_0x879066(0x2f0)]});}[_0x360f56(0x2c2)](){const _0x4e3f5a=_0x360f56;return this[_0x4e3f5a(0x22d)](Array[_0x4e3f5a(0x15e)]({'length':this[_0x4e3f5a(0x1da)]()},()=>Array[_0x4e3f5a(0x15e)]({'length':this[_0x4e3f5a(0x289)]()},()=>null)));}[_0x360f56(0x292)](_0x4efd11,_0x390f8f,_0x2c3fd1=this[_0x360f56(0x1da)](),_0x53c1ef=this[_0x360f56(0x289)]()){const _0x56cfea=_0x360f56;return this[_0x56cfea(0x1a7)]['createInstance'](_0x283c12,this[_0x56cfea(0x24b)],this[_0x56cfea(0x22a)],{'startRow':this[_0x56cfea(0x299)][_0x56cfea(0x294)]+_0x4efd11,'startColumn':this[_0x56cfea(0x299)]['startColumn']+_0x390f8f,'endRow':this['_range'][_0x56cfea(0x294)]+_0x4efd11+_0x2c3fd1-0x1,'endColumn':this['_range']['startColumn']+_0x390f8f+_0x53c1ef-0x1},this[_0x56cfea(0x1a7)]);}['_getTable'](){const _0x1e0f1b=_0x360f56;let _0x218576=this['_table'][_0x1e0f1b(0x1a2)]();if(!_0x218576)throw Error(_0x1e0f1b(0x2e9));return(0x0,_0x48619f[_0x1e0f1b(0x233)])(_0x218576);}['_assertInBounds'](){const _0x21b7a9=_0x360f56;var _0x295c8a;let _0x57efdc=this[_0x21b7a9(0x2fd)](),_0x37f25b=((_0x295c8a=_0x57efdc[_0x21b7a9(0x26e)])==null?void 0x0:_0x295c8a[_0x21b7a9(0x270)])??0x0,_0x17a553=this[_0x21b7a9(0x296)](_0x57efdc)[_0x21b7a9(0x270)];if(this['_range'][_0x21b7a9(0x294)]<0x0||this[_0x21b7a9(0x299)][_0x21b7a9(0x300)]<0x0||this['_range'][_0x21b7a9(0x19a)]<this[_0x21b7a9(0x299)]['startRow']||this[_0x21b7a9(0x299)]['endColumn']<this[_0x21b7a9(0x299)]['startColumn']||this[_0x21b7a9(0x299)]['endRow']>=Math[_0x21b7a9(0x25c)](_0x37f25b,0x1)||this[_0x21b7a9(0x299)][_0x21b7a9(0x2d0)]>=Math[_0x21b7a9(0x25c)](_0x17a553,0x1))throw Error('[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20'+_0x37f25b+_0x21b7a9(0x1a1)+_0x17a553+_0x21b7a9(0x193)+JSON[_0x21b7a9(0x1c0)](this[_0x21b7a9(0x299)])+'.');}[_0x360f56(0x296)](_0x1f68ea){const _0x4dd5c1=_0x360f56;return _0x1f68ea[_0x4dd5c1(0x21b)][_0x4dd5c1(0x290)](_0x193ea3=>_0x4a80b3(_0x1f68ea[_0x4dd5c1(0x25d)][_0x193ea3]));}};_0x146f1c=_0x283c12=_0x283871([_0x2ff177(0x4,_0x758172[_0x360f56(0x1e2)])],_0x146f1c);function _0x12f4dc(_0x35c7a7){'@babel/helpers - typeof';const _0x1a7efe=_0x360f56;return _0x12f4dc=typeof Symbol==_0x1a7efe(0x1d2)&&typeof Symbol[_0x1a7efe(0x1d9)]==_0x1a7efe(0x26f)?function(_0x3d11bf){return typeof _0x3d11bf;}:function(_0x540998){const _0x2b16e7=_0x1a7efe;return _0x540998&&typeof Symbol==_0x2b16e7(0x1d2)&&_0x540998[_0x2b16e7(0x1fe)]===Symbol&&_0x540998!==Symbol[_0x2b16e7(0x1cd)]?_0x2b16e7(0x26f):typeof _0x540998;},_0x12f4dc(_0x35c7a7);}function _0x268447(_0x15a895,_0x5141fa){const _0x45f5cc=_0x360f56;if(_0x12f4dc(_0x15a895)!=_0x45f5cc(0x311)||!_0x15a895)return _0x15a895;var _0x5add92=_0x15a895[Symbol[_0x45f5cc(0x247)]];if(_0x5add92!==void 0x0){var _0x15dc3c=_0x5add92[_0x45f5cc(0x278)](_0x15a895,_0x5141fa||_0x45f5cc(0x2ca));if(_0x12f4dc(_0x15dc3c)!=_0x45f5cc(0x311))return _0x15dc3c;throw TypeError(_0x45f5cc(0x200));}return(_0x5141fa==='string'?String:Number)(_0x15a895);}function _0x31d121(_0x23524a){const _0x1d6780=_0x360f56;var _0x1ff75a=_0x268447(_0x23524a,_0x1d6780(0x2a6));return _0x12f4dc(_0x1ff75a)==_0x1d6780(0x26f)?_0x1ff75a:_0x1ff75a+'';}function _0x297009(_0x334700,_0x39217d,_0x34447e){const _0x9ca8e9=_0x360f56;return(_0x39217d=_0x31d121(_0x39217d))in _0x334700?Object[_0x9ca8e9(0x28c)](_0x334700,_0x39217d,{'value':_0x34447e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x334700[_0x39217d]=_0x34447e,_0x334700;}var _0x127df7;let _0x56af14=_0x127df7=class extends _0x53678c[_0x360f56(0x1c1)]{constructor(_0x31b69e,_0x328f18,_0x1c8a11,_0x3a6f8c,_0x1d75f8,_0x58eea5){const _0x6e2d40=_0x360f56;super(_0x3a6f8c),this[_0x6e2d40(0x24b)]=_0x31b69e,this[_0x6e2d40(0x22a)]=_0x328f18,this[_0x6e2d40(0x206)]=_0x1c8a11,this[_0x6e2d40(0x2a4)]=_0x3a6f8c,this['_commandService']=_0x1d75f8,this[_0x6e2d40(0x159)]=_0x58eea5,_0x297009(this,'_baseUnitId',void 0x0),_0x297009(this,_0x6e2d40(0x2c4),void 0x0),this[_0x6e2d40(0x2e4)]=_0x31b69e[_0x6e2d40(0x186)](),this[_0x6e2d40(0x2c4)]=_0x328f18[_0x6e2d40(0x186)]();}[_0x360f56(0x268)](){const _0x88f5a4=_0x360f56;return this[_0x88f5a4(0x24b)];}['getTableFacade'](){const _0x444b52=_0x360f56;return this[_0x444b52(0x22a)];}[_0x360f56(0x186)](){return this['_recordId'];}[_0x360f56(0x234)](){const _0x4dac5e=_0x360f56;let _0x6eb307=this['_table'][_0x4dac5e(0x186)]();return new _0x543a91(this['_base'][_0x4dac5e(0x186)](),(0x0,_0x48619f['getBaseRecordPermissionObjectId'])(_0x6eb307,this[_0x4dac5e(0x206)]),[(0x0,_0x48619f['getBaseTablePermissionObjectId'])(_0x6eb307)],this['_commandService'],this[_0x4dac5e(0x159)]);}[_0x360f56(0x223)](){const _0x501c53=_0x360f56;return{...this[_0x501c53(0x244)](),'values':this['getValues']()};}[_0x360f56(0x1fc)](_0x5752db){const _0x5406da=_0x360f56;return _0x4a80b3(this[_0x5406da(0x22a)]['getTable']()['fields'][_0x5752db])?this[_0x5406da(0x244)]()[_0x5406da(0x1ed)][_0x5752db]??null:null;}[_0x360f56(0x1fd)](){const _0x9b8450=_0x360f56;let _0x18408e=this[_0x9b8450(0x22a)][_0x9b8450(0x1a2)]();return Object[_0x9b8450(0x2d9)](Object[_0x9b8450(0x1c6)](this[_0x9b8450(0x244)]()[_0x9b8450(0x1ed)])[_0x9b8450(0x290)](([_0x241c4f])=>_0x4a80b3(_0x18408e[_0x9b8450(0x25d)][_0x241c4f])));}[_0x360f56(0x1f8)](_0x26ff7a,_0x4fd44d){const _0x3f0ae6=_0x360f56;let _0x4ccd93=this[_0x3f0ae6(0x22a)][_0x3f0ae6(0x1a2)]()['fields'][_0x26ff7a];return this[_0x3f0ae6(0x1d4)]['syncExecuteCommand'](_0x48619f[_0x3f0ae6(0x2b7)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x3f0ae6(0x22a)][_0x3f0ae6(0x186)](),'recordId':this[_0x3f0ae6(0x206)],'fieldId':_0x26ff7a,'value':_0x33b55d(_0x4ccd93,_0x4fd44d),'source':_0x48619f[_0x3f0ae6(0x264)][_0x3f0ae6(0x2f0)]});}[_0x360f56(0x167)](_0x571f9c,_0x2b2e7f){const _0x428b40=_0x360f56;return this[_0x428b40(0x1f8)](_0x571f9c,_0x2b2e7f[_0x428b40(0x2c8)](_0x2ab689=>({..._0x2ab689})));}[_0x360f56(0x1d3)](_0x1f994b){const _0x110d2f=_0x360f56;this['_getAttachmentField'](_0x1f994b);let _0x14aae3=this[_0x110d2f(0x1fc)](_0x1f994b);return Array[_0x110d2f(0x1b0)](_0x14aae3)?_0x14aae3[_0x110d2f(0x2c8)]((_0xee6377,_0x3f404a)=>_0x782894(_0xee6377,_0x1f994b,_0x3f404a)):[];}['deleteAttachments'](_0x396a93,_0x44580f){const _0x3fa019=_0x360f56;this[_0x3fa019(0x1bb)](_0x396a93);let _0x2498b4=new Set(_0x44580f[_0x3fa019(0x2c8)](_0x3d0cd8=>_0x3d0cd8['id']));if(!_0x2498b4[_0x3fa019(0x276)])return!0x0;let _0xcc17a3=this[_0x3fa019(0x1d3)](_0x396a93),_0x10e3f3=_0xcc17a3['filter'](_0x2eed7b=>!_0x2498b4[_0x3fa019(0x30b)](_0x2eed7b['id']));return _0x10e3f3[_0x3fa019(0x270)]===_0xcc17a3[_0x3fa019(0x270)]||this['setAttachments'](_0x396a93,_0x10e3f3);}['setValues'](_0x94b24c,_0x102d69='id'){const _0x2b9235=_0x360f56;let _0x53e7f5=this[_0x2b9235(0x22a)][_0x2b9235(0x1a2)](),_0x3ecdc6=[{'recordId':this[_0x2b9235(0x206)],'values':_0x4e634a(_0x53e7f5,_0x94b24c,_0x102d69)}];return this[_0x2b9235(0x1d4)][_0x2b9235(0x207)](_0x48619f[_0x2b9235(0x295)]['id'],{'unitId':this[_0x2b9235(0x24b)][_0x2b9235(0x186)](),'tableId':this[_0x2b9235(0x22a)][_0x2b9235(0x186)](),'patches':_0x3ecdc6,'source':_0x48619f[_0x2b9235(0x264)][_0x2b9235(0x2f0)]});}[_0x360f56(0x1d5)](){const _0x3b1488=_0x360f56;return this[_0x3b1488(0x1d4)]['syncExecuteCommand'](_0x48619f[_0x3b1488(0x16c)]['id'],{'unitId':this[_0x3b1488(0x24b)][_0x3b1488(0x186)](),'tableId':this['_table'][_0x3b1488(0x186)](),'recordId':this[_0x3b1488(0x206)],'source':_0x48619f[_0x3b1488(0x264)]['Facade']});}[_0x360f56(0x245)](_0x348b4d){const _0x99fbaa=_0x360f56;let _0x336d2a={...this[_0x99fbaa(0x244)](),..._0x348b4d,'id':(0x0,_0x758172[_0x99fbaa(0x2c7)])(0x6)};_0x336d2a[_0x99fbaa(0x1ed)]={..._0x336d2a[_0x99fbaa(0x1ed)],..._0x348b4d==null?void 0x0:_0x348b4d[_0x99fbaa(0x1ed)]},Reflect['deleteProperty'](_0x336d2a[_0x99fbaa(0x1ed)],_0x758172[_0x99fbaa(0x1e3)]);let _0x31f7e3=Date['now']();if(_0x336d2a[_0x99fbaa(0x286)]||=''+_0x31f7e3,_0x336d2a[_0x99fbaa(0x266)]||=_0x31f7e3,_0x336d2a[_0x99fbaa(0x275)]||=_0x31f7e3,!this['_commandService']['syncExecuteCommand'](_0x48619f[_0x99fbaa(0x2b4)]['id'],{'unitId':this[_0x99fbaa(0x24b)]['getId'](),'tableId':this[_0x99fbaa(0x22a)]['getId'](),'sourceRecordId':this[_0x99fbaa(0x206)],'record':_0x336d2a,'source':_0x48619f[_0x99fbaa(0x264)][_0x99fbaa(0x2f0)]}))throw Error('[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22'+this[_0x99fbaa(0x206)]+'\x22.');return this[_0x99fbaa(0x2a4)][_0x99fbaa(0x2e7)](_0x127df7,this['_base'],this[_0x99fbaa(0x22a)],_0x336d2a['id'],this[_0x99fbaa(0x2a4)]);}['setOrderKey'](_0x43355a){const _0x3383f9=_0x360f56;return this[_0x3383f9(0x1d4)][_0x3383f9(0x207)](_0x48619f[_0x3383f9(0x1bd)]['id'],{'unitId':this[_0x3383f9(0x24b)][_0x3383f9(0x186)](),'tableId':this[_0x3383f9(0x22a)][_0x3383f9(0x186)](),'recordId':this['_recordId'],'orderKey':_0x43355a});}[_0x360f56(0x19f)](_0x45be58){const _0x4d5672=_0x360f56;let _0x107043=this['_getRecordLinkField'](_0x45be58),_0x129e8c=this[_0x4d5672(0x1fc)](_0x107043['id']);return(0x0,_0x48619f[_0x4d5672(0x1a4)])(_0x129e8c);}[_0x360f56(0x21c)](_0x18c92e,_0x55f813){const _0x9ce89=_0x360f56;let _0x333e71=this['_getRecordLinkField'](_0x18c92e),_0x48257b=(0x0,_0x48619f[_0x9ce89(0x29a)])(_0x55f813),_0x524fa9=(0x0,_0x48619f[_0x9ce89(0x172)])(this[_0x9ce89(0x24b)]['getBase']()[_0x9ce89(0x218)](),_0x333e71,_0x48257b);if(!_0x524fa9[_0x9ce89(0x21e)])throw Error(_0x524fa9[_0x9ce89(0x279)]??_0x9ce89(0x2b8));return this['_commandService'][_0x9ce89(0x207)](_0x48619f[_0x9ce89(0x2b7)]['id'],{'unitId':this[_0x9ce89(0x24b)][_0x9ce89(0x186)](),'tableId':this[_0x9ce89(0x22a)]['getId'](),'recordId':this[_0x9ce89(0x206)],'fieldId':_0x18c92e,'value':_0x48257b,'source':_0x48619f['BaseEventSource'][_0x9ce89(0x2f0)]});}['addLinkedRecord'](_0xebc141,_0x4f5ce0){const _0x1561bf=_0x360f56;let _0x2943dd=this[_0x1561bf(0x191)](_0xebc141),_0x16a4ec=(0x0,_0x48619f['getRecordLinkFieldConfig'])(_0x2943dd);if(!_0x16a4ec)throw Error(_0x1561bf(0x25b)+_0xebc141+'\x22\x20has\x20invalid\x20config.');let _0x1c16e7=this[_0x1561bf(0x19f)](_0xebc141);return _0x16a4ec['multiple']&&_0x1c16e7[_0x1561bf(0x1ae)](_0x4f5ce0)?!0x0:this[_0x1561bf(0x21c)](_0xebc141,_0x16a4ec[_0x1561bf(0x2d8)]?[..._0x1c16e7,_0x4f5ce0]:[_0x4f5ce0]);}[_0x360f56(0x211)](_0x47eadc,_0x5e9227){const _0x5ed9f5=_0x360f56;let _0x14e046=this['getLinkedRecordIds'](_0x47eadc);return!_0x14e046['includes'](_0x5e9227)||this[_0x5ed9f5(0x21c)](_0x47eadc,_0x14e046[_0x5ed9f5(0x290)](_0x31e063=>_0x31e063!==_0x5e9227));}[_0x360f56(0x161)](_0x515cc6){const _0xdd59ff=_0x360f56;let _0x1c7b33=this[_0xdd59ff(0x282)](_0x515cc6)[_0xdd59ff(0x2c5)]['get'](this['_recordId'])??null;return _0x1c7b33?this['_table'][_0xdd59ff(0x23d)](_0x1c7b33):null;}[_0x360f56(0x29e)](_0x5d12d6){const _0x46db09=_0x360f56;return(this['_getHierarchyIndex'](_0x5d12d6)[_0x46db09(0x1f4)]['get'](this[_0x46db09(0x206)])??[])[_0x46db09(0x2d6)](_0x2615cb=>{const _0x353f07=_0x46db09;let _0x18ebf8=this['_table'][_0x353f07(0x23d)](_0x2615cb);return _0x18ebf8?[_0x18ebf8]:[];});}['getAncestors'](_0x4f4a4c){const _0x49290b=_0x360f56;let _0x4a6ff1=this['_getHierarchyIndex'](_0x4f4a4c),_0x20d62e=[],_0x22cb15=_0x4a6ff1['parentByRecordId'][_0x49290b(0x1b6)](this[_0x49290b(0x206)])??null;for(;_0x22cb15;){let _0x457af2=this['_table']['getRecordById'](_0x22cb15);_0x457af2&&_0x20d62e['push'](_0x457af2),_0x22cb15=_0x4a6ff1[_0x49290b(0x2c5)][_0x49290b(0x1b6)](_0x22cb15)??null;}return _0x20d62e;}[_0x360f56(0x24f)](_0x1f54ac){const _0x39aa4d=_0x360f56;let _0x30dfc6=this[_0x39aa4d(0x282)](_0x1f54ac),_0x5f3005=_0x30dfc6[_0x39aa4d(0x15f)][_0x39aa4d(0x277)](this['_recordId']),_0x278b78=_0x30dfc6[_0x39aa4d(0x2f6)][_0x39aa4d(0x30b)](this[_0x39aa4d(0x206)])?this[_0x39aa4d(0x239)](_0x30dfc6[_0x39aa4d(0x1f4)],this[_0x39aa4d(0x206)]):[];return _0x5f3005<0x0?[]:_0x278b78[_0x39aa4d(0x2d6)](_0x30d4c9=>{const _0x2a04b0=_0x39aa4d;let _0x3bccbd=this['_table'][_0x2a04b0(0x23d)](_0x30d4c9);return _0x3bccbd?[_0x3bccbd]:[];});}[_0x360f56(0x2fb)](_0x55d867,_0x41ec76,_0x186848){const _0x4fc87a=_0x360f56;return this[_0x4fc87a(0x1d4)][_0x4fc87a(0x207)](_0x48619f['MoveBaseHierarchyRecordCommand']['id'],{'unitId':this[_0x4fc87a(0x24b)]['getId'](),'tableId':this[_0x4fc87a(0x22a)][_0x4fc87a(0x186)](),'fieldId':_0x55d867,'recordId':this[_0x4fc87a(0x206)],'parentRecordId':_0x41ec76,'orderKey':_0x186848,'source':_0x48619f[_0x4fc87a(0x264)][_0x4fc87a(0x2f0)]});}[_0x360f56(0x2b5)](_0x5eb728,_0x2e5434,_0x2b5b9b='id',_0x298db7){const _0x33e34d=_0x360f56;let _0xe44426=this['_table']['getTable'](),_0x3e3582=Date[_0x33e34d(0x243)](),_0x11c005={..._0x298db7,'id':(0x0,_0x758172[_0x33e34d(0x2c7)])(0x6),'values':_0x4e634a(_0xe44426,_0x2e5434,_0x2b5b9b),'orderKey':(_0x298db7==null?void 0x0:_0x298db7[_0x33e34d(0x286)])||''+_0x3e3582,'createdAt':(_0x298db7==null?void 0x0:_0x298db7['createdAt'])||_0x3e3582,'updatedAt':(_0x298db7==null?void 0x0:_0x298db7[_0x33e34d(0x275)])||_0x3e3582};if(!this[_0x33e34d(0x1d4)][_0x33e34d(0x207)](_0x48619f['CreateBaseChildRecordCommand']['id'],{'unitId':this['_base'][_0x33e34d(0x186)](),'tableId':this[_0x33e34d(0x22a)][_0x33e34d(0x186)](),'fieldId':_0x5eb728,'parentRecordId':this[_0x33e34d(0x206)],'record':_0x11c005,'source':_0x48619f[_0x33e34d(0x264)][_0x33e34d(0x2f0)]}))throw Error(_0x33e34d(0x1cf)+this['_recordId']+'\x22.');return this[_0x33e34d(0x2a4)][_0x33e34d(0x2e7)](_0x127df7,this[_0x33e34d(0x24b)],this[_0x33e34d(0x22a)],_0x11c005['id'],this['_injector']);}[_0x360f56(0x282)](_0x383925){const _0x468d18=_0x360f56;return(0x0,_0x48619f[_0x468d18(0x2a7)])(this[_0x468d18(0x22a)][_0x468d18(0x1a2)](),_0x383925);}[_0x360f56(0x239)](_0x160549,_0x2d8133){let _0x535f72=[],_0x44d883=_0x45310b=>{for(let _0x37e63a of _0x160549['get'](_0x45310b)??[])_0x535f72['push'](_0x37e63a),_0x44d883(_0x37e63a);};return _0x44d883(_0x2d8133),_0x535f72;}[_0x360f56(0x244)](){const _0x4efffe=_0x360f56;let _0x6d86fc=this[_0x4efffe(0x22a)][_0x4efffe(0x1a2)]()[_0x4efffe(0x2f3)][this[_0x4efffe(0x206)]];if(!_0x6d86fc)throw Error(_0x4efffe(0x1e4)+this['_recordId']+_0x4efffe(0x30f));return _0x6d86fc;}['_getRecordLinkField'](_0x4c5b2f){const _0x3e9d74=_0x360f56;let _0x2c95b5=this[_0x3e9d74(0x22a)]['getTable']()['fields'][_0x4c5b2f];if(!_0x2c95b5||_0x2c95b5[_0x3e9d74(0x1e7)]!==_0x758172[_0x3e9d74(0x2bf)][_0x3e9d74(0x236)])throw Error(_0x3e9d74(0x281)+_0x4c5b2f+_0x3e9d74(0x2de));return _0x2c95b5;}['_getAttachmentField'](_0x29f8c6){const _0x4f8eec=_0x360f56;let _0x52ca82=this[_0x4f8eec(0x22a)][_0x4f8eec(0x1a2)]()[_0x4f8eec(0x25d)][_0x29f8c6];if(!_0x52ca82||_0x52ca82['type']!==_0x758172[_0x4f8eec(0x2bf)][_0x4f8eec(0x209)])throw Error(_0x4f8eec(0x281)+_0x29f8c6+_0x4f8eec(0x27a));return _0x52ca82;}};_0x56af14=_0x127df7=_0x283871([_0x2ff177(0x4,_0x758172[_0x360f56(0x1e2)]),_0x2ff177(0x5,_0x758172[_0x360f56(0x1ce)])],_0x56af14);function _0x43e66f(_0x18fc8e){const _0x3d91a5=_0x360f56;return!!(_0x18fc8e&&typeof _0x18fc8e==_0x3d91a5(0x311)&&'id'in _0x18fc8e&&typeof _0x18fc8e['id']=='string'&&_0x3d91a5(0x2a9)in _0x18fc8e&&typeof _0x18fc8e[_0x3d91a5(0x2a9)]==_0x3d91a5(0x2a6));}function _0x782894(_0x4d13c5,_0x5b6780,_0x3d3aeb){const _0x154d94=_0x360f56;if(!_0x43e66f(_0x4d13c5))throw Error(_0x154d94(0x225)+_0x3d3aeb+_0x154d94(0x212)+_0x5b6780+_0x154d94(0x22f));return{..._0x4d13c5};}let _0x5d3c12=class{constructor(_0x250a52,_0xc0ae8b,_0x54c556,_0x2dfdf5,_0x2c275c,_0x3f889c,_0x526ea7){const _0x577dc2=_0x360f56;this['_base']=_0x250a52,this['_table']=_0xc0ae8b,this[_0x577dc2(0x175)]=_0x54c556,this[_0x577dc2(0x2a4)]=_0x2dfdf5,this[_0x577dc2(0x1d4)]=_0x2c275c,this['_permissionService']=_0x3f889c,this[_0x577dc2(0x2c9)]=_0x526ea7;}['getId'](){const _0x1494cb=_0x360f56;return this[_0x1494cb(0x175)];}['getPermission'](){const _0x4c3c12=_0x360f56;let _0x4339f3=this[_0x4c3c12(0x22a)][_0x4c3c12(0x186)]();return new _0x543a91(this[_0x4c3c12(0x24b)]['getId'](),(0x0,_0x48619f[_0x4c3c12(0x2f9)])(_0x4339f3,this[_0x4c3c12(0x175)]),[(0x0,_0x48619f[_0x4c3c12(0x28f)])(_0x4339f3)],this[_0x4c3c12(0x1d4)],this[_0x4c3c12(0x159)]);}[_0x360f56(0x1e6)](){const _0x1bb891=_0x360f56;return this[_0x1bb891(0x2e3)]();}['getName'](){const _0xd55ad0=_0x360f56;return this[_0xd55ad0(0x2e3)]()['name'];}[_0x360f56(0x1b5)](){const _0x4b6b34=_0x360f56;return this[_0x4b6b34(0x2e3)]()[_0x4b6b34(0x1e7)];}[_0x360f56(0x2a5)](_0x5607d1){const _0x3a7d50=_0x360f56;return this[_0x3a7d50(0x1d4)][_0x3a7d50(0x207)](_0x48619f['RenameBaseViewCommand']['id'],{'unitId':this[_0x3a7d50(0x24b)][_0x3a7d50(0x186)](),'tableId':this[_0x3a7d50(0x22a)][_0x3a7d50(0x186)](),'viewId':this[_0x3a7d50(0x175)],'name':_0x5607d1});}[_0x360f56(0x17f)](){const _0x201410=_0x360f56;let _0x1232c8=this[_0x201410(0x1b5)](),_0x47aa0f=this[_0x201410(0x2e3)]()[_0x201410(0x185)];switch(_0x1232c8){case _0x758172['BaseViewType'][_0x201410(0x1fb)]:return _0x47aa0f;case _0x758172[_0x201410(0x312)][_0x201410(0x250)]:return _0x47aa0f;case _0x758172[_0x201410(0x312)]['Calendar']:return _0x47aa0f;case _0x758172[_0x201410(0x312)][_0x201410(0x251)]:return _0x47aa0f;case _0x758172['BaseViewType'][_0x201410(0x16b)]:return _0x47aa0f;default:return _0x47aa0f;}}['updateConfig'](_0x426b0e){const _0x3135dc=_0x360f56;return this[_0x3135dc(0x1d4)]['syncExecuteCommand'](_0x48619f[_0x3135dc(0x2bd)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x3135dc(0x22a)][_0x3135dc(0x186)](),'viewId':this[_0x3135dc(0x175)],'patch':_0x426b0e});}[_0x360f56(0x198)](){const _0x74c1e9=_0x360f56;var _0x195f2b;return _0x758172[_0x74c1e9(0x1f0)][_0x74c1e9(0x221)](((_0x195f2b=this[_0x74c1e9(0x2e3)]()[_0x74c1e9(0x185)][_0x74c1e9(0x190)])==null?void 0x0:_0x195f2b['rules'])??[]);}['setConditionalColorRules'](_0x36b794){const _0x5ea14d=_0x360f56;return this[_0x5ea14d(0x1d4)]['syncExecuteCommand'](_0x48619f['UpdateBaseViewConditionalColorRulesCommand']['id'],{'unitId':this[_0x5ea14d(0x24b)][_0x5ea14d(0x186)](),'tableId':this[_0x5ea14d(0x22a)]['getId'](),'viewId':this[_0x5ea14d(0x175)],'type':_0x48619f[_0x5ea14d(0x25f)][_0x5ea14d(0x2db)],'rules':_0x36b794});}[_0x360f56(0x179)](_0x59792e){const _0x594fa7=_0x360f56;return this[_0x594fa7(0x1d4)]['syncExecuteCommand'](_0x48619f['UpdateBaseViewConditionalColorRulesCommand']['id'],{'unitId':this[_0x594fa7(0x24b)][_0x594fa7(0x186)](),'tableId':this[_0x594fa7(0x22a)]['getId'](),'viewId':this[_0x594fa7(0x175)],'type':_0x48619f[_0x594fa7(0x25f)][_0x594fa7(0x2b0)],'rule':_0x59792e});}[_0x360f56(0x26b)](_0xea3e5f){const _0x51151c=_0x360f56;return this[_0x51151c(0x1d4)]['syncExecuteCommand'](_0x48619f[_0x51151c(0x2e8)]['id'],{'unitId':this[_0x51151c(0x24b)][_0x51151c(0x186)](),'tableId':this['_table'][_0x51151c(0x186)](),'viewId':this[_0x51151c(0x175)],'type':_0x48619f[_0x51151c(0x25f)]['Delete'],'ruleId':_0xea3e5f});}['clearConditionalColorRules'](){const _0x23f373=_0x360f56;return this[_0x23f373(0x1d4)][_0x23f373(0x207)](_0x48619f[_0x23f373(0x2e8)]['id'],{'unitId':this[_0x23f373(0x24b)][_0x23f373(0x186)](),'tableId':this['_table'][_0x23f373(0x186)](),'viewId':this[_0x23f373(0x175)],'type':_0x48619f[_0x23f373(0x25f)]['Clear']});}[_0x360f56(0x216)](){const _0x47cdcc=_0x360f56;return this[_0x47cdcc(0x2e3)]()['filter']??null;}[_0x360f56(0x20c)](_0x4cd2aa){const _0x2a9e9c=_0x360f56;return this['_commandService'][_0x2a9e9c(0x207)](_0x48619f[_0x2a9e9c(0x2a8)]['id'],{'unitId':this[_0x2a9e9c(0x24b)][_0x2a9e9c(0x186)](),'tableId':this[_0x2a9e9c(0x22a)][_0x2a9e9c(0x186)](),'viewId':this[_0x2a9e9c(0x175)],'filter':_0x4cd2aa});}[_0x360f56(0x2b2)](){const _0x374156=_0x360f56;return this[_0x374156(0x2e3)]()[_0x374156(0x22b)]??[];}[_0x360f56(0x293)](_0x534ec3){const _0x36c974=_0x360f56;return this['_commandService'][_0x36c974(0x207)](_0x48619f[_0x36c974(0x28d)]['id'],{'unitId':this[_0x36c974(0x24b)][_0x36c974(0x186)](),'tableId':this[_0x36c974(0x22a)][_0x36c974(0x186)](),'viewId':this[_0x36c974(0x175)],'sort':_0x534ec3});}[_0x360f56(0x1dd)](){const _0x448730=_0x360f56;return this[_0x448730(0x2e3)]()['group']??[];}[_0x360f56(0x2e2)](_0x90fcdf){const _0x395432=_0x360f56;return this[_0x395432(0x1d4)][_0x395432(0x207)](_0x48619f[_0x395432(0x2aa)]['id'],{'unitId':this['_base'][_0x395432(0x186)](),'tableId':this['_table'][_0x395432(0x186)](),'viewId':this[_0x395432(0x175)],'group':_0x90fcdf});}[_0x360f56(0x222)](_0x4228b4){const _0x148254=_0x360f56;var _0x1a0312;return _0x4a80b3(this[_0x148254(0x22a)]['getTable']()[_0x148254(0x25d)][_0x4228b4])?((_0x1a0312=this['_getView']()['fieldSettings'])==null?void 0x0:_0x1a0312[_0x4228b4])??{}:{};}[_0x360f56(0x2a3)](){const _0x33ea19=_0x360f56;let _0x1473e6=this[_0x33ea19(0x22a)]['getTable'](),_0x3a91a4=this[_0x33ea19(0x2e3)]();return(_0x3a91a4[_0x33ea19(0x21b)]??_0x1473e6['fieldOrder'])['filter'](_0x722f2e=>{const _0x3fe09c=_0x33ea19;var _0x1aeeb8;let _0x2fd034=_0x1473e6[_0x3fe09c(0x25d)][_0x722f2e];return _0x4a80b3(_0x2fd034)&&!((_0x1aeeb8=_0x3a91a4[_0x3fe09c(0x1df)])!=null&&(_0x1aeeb8=_0x1aeeb8[_0x722f2e])!=null&&_0x1aeeb8[_0x3fe09c(0x2f7)]);})[_0x33ea19(0x2c8)](_0x8e5a20=>this[_0x33ea19(0x2a4)]['createInstance'](_0xe9c966,this[_0x33ea19(0x24b)],this[_0x33ea19(0x22a)],_0x8e5a20));}['setFieldVisible'](_0x919fee,_0x1b59f8){const _0x20a2fb=_0x360f56;return _0x4a80b3(this[_0x20a2fb(0x22a)][_0x20a2fb(0x1a2)]()[_0x20a2fb(0x25d)][_0x919fee])?this[_0x20a2fb(0x1d4)][_0x20a2fb(0x207)](_0x48619f['SetBaseViewFieldVisibleCommand']['id'],{'unitId':this[_0x20a2fb(0x24b)]['getId'](),'tableId':this[_0x20a2fb(0x22a)][_0x20a2fb(0x186)](),'viewId':this[_0x20a2fb(0x175)],'fieldId':_0x919fee,'visible':_0x1b59f8}):!0x1;}[_0x360f56(0x23f)](_0x339fc6,_0x272ac4){const _0x12dd95=_0x360f56;return _0x4a80b3(this['_table'][_0x12dd95(0x1a2)]()['fields'][_0x339fc6])?this[_0x12dd95(0x1d4)][_0x12dd95(0x207)](_0x48619f[_0x12dd95(0x2b9)]['id'],{'unitId':this['_base'][_0x12dd95(0x186)](),'tableId':this[_0x12dd95(0x22a)][_0x12dd95(0x186)](),'viewId':this['_viewId'],'fieldId':_0x339fc6,'width':_0x272ac4}):!0x1;}['moveField'](_0x30d9ee,_0x2298e2){const _0xf7575=_0x360f56;let _0x24c416=this[_0xf7575(0x22a)][_0xf7575(0x1a2)](),_0x43b48f=_0x2298e2[_0xf7575(0x197)]??_0x2298e2[_0xf7575(0x2ad)];return!_0x4a80b3(_0x24c416[_0xf7575(0x25d)][_0x30d9ee])||!_0x43b48f||!_0x4a80b3(_0x24c416[_0xf7575(0x25d)][_0x43b48f])?!0x1:this[_0xf7575(0x1d4)]['syncExecuteCommand'](_0x48619f[_0xf7575(0x21a)]['id'],{'unitId':this['_base'][_0xf7575(0x186)](),'tableId':this[_0xf7575(0x22a)]['getId'](),'viewId':this['_viewId'],'fieldId':_0x30d9ee,'target':_0x2298e2});}[_0x360f56(0x17c)](_0x2033a3){const _0x136367=_0x360f56;return this[_0x136367(0x1d4)][_0x136367(0x207)](_0x48619f['MoveBaseViewCommand']['id'],{'unitId':this['_base'][_0x136367(0x186)](),'tableId':this[_0x136367(0x22a)][_0x136367(0x186)](),'viewId':this[_0x136367(0x175)],'target':_0x2033a3});}[_0x360f56(0x1d5)](){const _0x55e434=_0x360f56;return this[_0x55e434(0x1d4)]['syncExecuteCommand'](_0x48619f[_0x55e434(0x1f7)]['id'],{'unitId':this[_0x55e434(0x24b)][_0x55e434(0x186)](),'tableId':this[_0x55e434(0x22a)][_0x55e434(0x186)](),'viewId':this[_0x55e434(0x175)]});}['getProjection'](){const _0x2b0a02=_0x360f56;return this['_projectionService']['getProjection'](this[_0x2b0a02(0x24b)][_0x2b0a02(0x308)]()[_0x2b0a02(0x218)](),this[_0x2b0a02(0x22a)][_0x2b0a02(0x186)](),this[_0x2b0a02(0x175)]);}[_0x360f56(0x2e3)](){const _0x4dc1e2=_0x360f56;let _0x291caa=this[_0x4dc1e2(0x22a)][_0x4dc1e2(0x1a2)]()['views'][this[_0x4dc1e2(0x175)]];if(!_0x291caa)throw Error(_0x4dc1e2(0x170)+this['_viewId']+_0x4dc1e2(0x30f));return _0x291caa;}};_0x5d3c12=_0x283871([_0x2ff177(0x4,_0x758172['ICommandService']),_0x2ff177(0x5,_0x758172[_0x360f56(0x1ce)]),_0x2ff177(0x6,_0x48619f[_0x360f56(0x202)])],_0x5d3c12);let _0x2fdc6b=class{constructor(_0x5e1bb4,_0x10fce3,_0x2eef2a,_0x266d4f,_0xba21c8,_0xa7e00){const _0x1c596a=_0x360f56;this[_0x1c596a(0x24b)]=_0x5e1bb4,this[_0x1c596a(0x2fe)]=_0x10fce3,this[_0x1c596a(0x2a4)]=_0x2eef2a,this[_0x1c596a(0x1d4)]=_0x266d4f,this[_0x1c596a(0x159)]=_0xba21c8,this[_0x1c596a(0x2c9)]=_0xa7e00;}[_0x360f56(0x308)](){const _0x139646=_0x360f56;return this[_0x139646(0x24b)][_0x139646(0x308)]();}['getTable'](){const _0x3046a8=_0x360f56;return this[_0x3046a8(0x2fd)]();}[_0x360f56(0x186)](){return this['_tableId'];}[_0x360f56(0x234)](){const _0x47c026=_0x360f56;return new _0x543a91(this['getBase']()[_0x47c026(0x2c1)](),(0x0,_0x48619f[_0x47c026(0x28f)])(this[_0x47c026(0x2fe)]),[],this[_0x47c026(0x1d4)],this['_permissionService']);}['getHierarchyFieldId'](){const _0x5a5b4b=_0x360f56;return(0x0,_0x48619f[_0x5a5b4b(0x17e)])(this[_0x5a5b4b(0x2fd)]());}[_0x360f56(0x2af)](_0x38ab7e){const _0x347b74=_0x360f56;return this[_0x347b74(0x1d4)]['syncExecuteCommand'](_0x48619f[_0x347b74(0x30e)]['id'],{'unitId':this[_0x347b74(0x24b)]['getId'](),'tableId':this[_0x347b74(0x2fe)],'fieldId':_0x38ab7e});}[_0x360f56(0x2e1)](){const _0x503e25=_0x360f56;return this[_0x503e25(0x2fd)]()['name'];}[_0x360f56(0x1f3)](){const _0x30eb29=_0x360f56;let _0x537bb8=this[_0x30eb29(0x24b)][_0x30eb29(0x308)]()[_0x30eb29(0x218)]();return(0x0,_0x48619f[_0x30eb29(0x291)])(this[_0x30eb29(0x2fd)](),_0x537bb8);}[_0x360f56(0x2a5)](_0x39cc29){const _0x1b775e=_0x360f56;let _0xb815ab=(0x0,_0x48619f[_0x1b775e(0x166)])(this[_0x1b775e(0x24b)][_0x1b775e(0x308)]()[_0x1b775e(0x218)](),_0x39cc29,this['_tableId']);if(!_0xb815ab['valid'])throw Error(_0x1b775e(0x303)+_0x39cc29+_0x1b775e(0x1b4)+_0x48619f['BASE_TABLE_NAME_REQUIREMENTS']+'\x20'+_0xb815ab[_0x1b775e(0x279)]);return this[_0x1b775e(0x1d4)][_0x1b775e(0x207)](_0x48619f[_0x1b775e(0x315)]['id'],{'unitId':this[_0x1b775e(0x24b)]['getId'](),'tableId':this[_0x1b775e(0x2fe)],'name':_0x39cc29});}['search'](_0x4e5536,_0xb95b85){const _0x19bd0c=_0x360f56;let _0x3b3539=this[_0x19bd0c(0x24b)][_0x19bd0c(0x308)]()['getSnapshot'](),_0x56cbd1=this[_0x19bd0c(0x2fd)]();if(_0xb95b85){let _0x18cdf5=this[_0x19bd0c(0x2c9)]['getProjection'](_0x3b3539,this['_tableId'],_0xb95b85),_0x4868ed=_0x56cbd1[_0x19bd0c(0x16a)][_0xb95b85],_0x5ead73=_0x4e5536['fieldIds']??_0xe3c1e7(_0x56cbd1,_0x4868ed,_0x18cdf5),_0x426c16=_0x19bd0c(0x160)in _0x18cdf5&&Array[_0x19bd0c(0x1b0)](_0x18cdf5[_0x19bd0c(0x160)])?_0x18cdf5['rows']:[];return(0x0,_0x48619f['searchBaseTable'])({..._0x4e5536,'table':_0x56cbd1,'fieldIds':_0x5ead73,'rows':_0x426c16});}let _0x2da6ff=(_0x56cbd1[_0x19bd0c(0x26e)]?_0x56cbd1[_0x19bd0c(0x26e)][_0x19bd0c(0x2c8)](_0x597d78=>_0x56cbd1[_0x19bd0c(0x2f3)][_0x597d78]):Object[_0x19bd0c(0x1ed)](_0x56cbd1['records'])['sort']((_0x457dcc,_0x340a92)=>_0x457dcc[_0x19bd0c(0x286)][_0x19bd0c(0x26a)](_0x340a92[_0x19bd0c(0x286)])))[_0x19bd0c(0x290)](_0x3138e9=>_0x3138e9)[_0x19bd0c(0x2c8)](_0x1fcbc8=>({'recordId':_0x1fcbc8['id'],'values':_0x1fcbc8[_0x19bd0c(0x1ed)]})),_0x3c0443=_0x4e5536[_0x19bd0c(0x168)]??_0x56cbd1['fieldOrder'][_0x19bd0c(0x290)](_0x346c86=>_0x4a80b3(_0x56cbd1[_0x19bd0c(0x25d)][_0x346c86]));return(0x0,_0x48619f[_0x19bd0c(0x256)])({..._0x4e5536,'table':_0x56cbd1,'fieldIds':_0x3c0443,'rows':_0x2da6ff});}['getPrimaryFieldId'](){const _0xac987e=_0x360f56;return this[_0xac987e(0x2fd)]()[_0xac987e(0x287)];}[_0x360f56(0x262)](){const _0x21eab1=_0x360f56;let _0x4b14a1=this[_0x21eab1(0x2fd)]();return _0x4b14a1[_0x21eab1(0x21b)][_0x21eab1(0x2c8)](_0x304555=>_0x4b14a1[_0x21eab1(0x25d)][_0x304555])[_0x21eab1(0x290)](_0x4a80b3)[_0x21eab1(0x2c8)](_0x45b87c=>this['_injector'][_0x21eab1(0x2e7)](_0xe9c966,this[_0x21eab1(0x24b)],this,_0x45b87c['id']));}[_0x360f56(0x231)](_0x5e27cd){const _0x1cca52=_0x360f56;let _0x4f20a5=this[_0x1cca52(0x2fd)]()[_0x1cca52(0x25d)][_0x5e27cd];return _0x4a80b3(_0x4f20a5)?this['_injector'][_0x1cca52(0x2e7)](_0xe9c966,this[_0x1cca52(0x24b)],this,_0x4f20a5['id']):null;}[_0x360f56(0x1ff)](_0x3d5ad6){const _0x44e777=_0x360f56;let _0x3bf5d0=this[_0x44e777(0x2fd)]()[_0x44e777(0x25d)],_0x24d978=Object['values'](_0x3bf5d0)[_0x44e777(0x1a5)](_0x5ee11a=>_0x4a80b3(_0x5ee11a)&&_0x5ee11a['name']===_0x3d5ad6);return _0x24d978?this[_0x44e777(0x2a4)][_0x44e777(0x2e7)](_0xe9c966,this[_0x44e777(0x24b)],this,_0x24d978['id']):null;}['getPrimaryField'](){const _0x43325d=_0x360f56;let _0x10a55a=this['_getTable']()[_0x43325d(0x287)];return this[_0x43325d(0x2a4)]['createInstance'](_0xe9c966,this[_0x43325d(0x24b)],this,_0x10a55a);}['addField'](_0x4591f8,_0x3c5889,_0x50ac28){const _0x3aaf67=_0x360f56;var _0x46395f,_0x545de7;if(!Object[_0x3aaf67(0x1ed)](_0x758172[_0x3aaf67(0x2bf)])[_0x3aaf67(0x1d8)](_0xa4c26f=>_0xa4c26f===_0x3c5889))throw Error(_0x3aaf67(0x30a)+String(_0x3c5889)+'\x22.');if(_0x3c5889===_0x758172[_0x3aaf67(0x2bf)][_0x3aaf67(0x2fc)]&&this['_prepareFormulaFieldReferences'](_0x4591f8,_0x50ac28),_0x3c5889===_0x758172[_0x3aaf67(0x2bf)]['RecordLink']&&(typeof(_0x50ac28==null||(_0x46395f=_0x50ac28[_0x3aaf67(0x2f4)])==null||(_0x46395f=_0x46395f['config'])==null?void 0x0:_0x46395f[_0x3aaf67(0x2ce)])!='string'||typeof _0x50ac28[_0x3aaf67(0x2f4)][_0x3aaf67(0x185)][_0x3aaf67(0x2d8)]!=_0x3aaf67(0x232)))throw Error(_0x3aaf67(0x1a0));let _0x28bf97={..._0x50ac28==null?void 0x0:_0x50ac28[_0x3aaf67(0x2f4)],'id':(0x0,_0x758172[_0x3aaf67(0x2c7)])(0x6),'name':_0x4591f8,'type':_0x3c5889,'config':(_0x50ac28==null||(_0x545de7=_0x50ac28[_0x3aaf67(0x2f4)])==null?void 0x0:_0x545de7[_0x3aaf67(0x185)])??{}};if(!this[_0x3aaf67(0x1d4)][_0x3aaf67(0x207)](_0x48619f[_0x3aaf67(0x183)]['id'],{'unitId':this['_base'][_0x3aaf67(0x186)](),'tableId':this[_0x3aaf67(0x2fe)],'field':_0x28bf97,'index':_0x50ac28==null?void 0x0:_0x50ac28[_0x3aaf67(0x27d)]}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x4591f8+'\x22');return this['_injector'][_0x3aaf67(0x2e7)](_0xe9c966,this[_0x3aaf67(0x24b)],this,_0x28bf97['id']);}[_0x360f56(0x1be)](_0x10fb36,_0x109a01){const _0x37a36b=_0x360f56;var _0x2ce2bd;if(!_0x109a01||!('externalReferences'in _0x109a01)||!Array['isArray'](_0x109a01[_0x37a36b(0x2cb)]))throw Error(_0x37a36b(0x1f9));let _0x45fde2=this[_0x37a36b(0x1d4)][_0x37a36b(0x207)](_0x48619f['ValidateBaseFormulaCommand']['id'],{'unitId':this['_base']['getId'](),'tableId':this['_tableId'],'formula':String(((_0x2ce2bd=_0x109a01['field'])==null||(_0x2ce2bd=_0x2ce2bd[_0x37a36b(0x185)])==null?void 0x0:_0x2ce2bd[_0x37a36b(0x1f2)])??'')});if(!_0x45fde2[_0x37a36b(0x21e)])throw Error(_0x45fde2[_0x37a36b(0x279)]??'Invalid\x20Base\x20formula.');if(_0x109a01[_0x37a36b(0x2cb)][_0x37a36b(0x270)]>0x0&&!this['_commandService'][_0x37a36b(0x207)](_0xa1ac30['UpsertHostExternalReferencesCommand']['id'],{'unitId':this['_base'][_0x37a36b(0x186)](),'references':_0x109a01[_0x37a36b(0x2cb)]}))throw Error('Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22'+_0x10fb36+'\x22');}[_0x360f56(0x2dc)](){const _0x3b9794=_0x360f56;return this['_resolveRecordIds']()[_0x3b9794(0x2c8)](_0x6581e5=>this[_0x3b9794(0x2a4)][_0x3b9794(0x2e7)](_0x56af14,this['_base'],this,_0x6581e5,this[_0x3b9794(0x2a4)]));}['getRecordById'](_0x1f7b1b){const _0x46d2d8=_0x360f56;return this[_0x46d2d8(0x2fd)]()['records'][_0x1f7b1b]?this[_0x46d2d8(0x2a4)][_0x46d2d8(0x2e7)](_0x56af14,this[_0x46d2d8(0x24b)],this,_0x1f7b1b,this[_0x46d2d8(0x2a4)]):null;}['queryRecords'](_0x3ab254={}){const _0x18f523=_0x360f56;let _0x189c80=this[_0x18f523(0x2fd)](),_0x5093c5=this[_0x18f523(0x27b)](_0x3ab254),_0x1b253d=Math[_0x18f523(0x25c)](0x0,_0x3ab254[_0x18f523(0x292)]??0x0),_0x554d19=_0x3ab254[_0x18f523(0x307)]==null?null:Math[_0x18f523(0x25c)](0x0,_0x3ab254[_0x18f523(0x307)]),_0x1766ba=_0x3f75bc(_0x5093c5[_0x18f523(0x2c8)](_0x49685f=>_0x189c80[_0x18f523(0x2f3)][_0x49685f])['filter'](_0x1b5150=>_0x69d56d(_0x1b5150,_0x189c80,_0x3ab254[_0x18f523(0x290)])),_0x189c80,_0x3ab254[_0x18f523(0x22b)]);return{'records':_0x2977ce(_0x1766ba,_0x3ab254)[_0x18f523(0x2c8)](_0x4a9911=>this[_0x18f523(0x2a4)][_0x18f523(0x2e7)](_0x56af14,this[_0x18f523(0x24b)],this,_0x4a9911['id'],this[_0x18f523(0x2a4)])),'total':_0x1766ba['length'],'offset':_0x1b253d,'limit':_0x554d19,'hasMore':_0x554d19!=null&&_0x1b253d+_0x554d19<_0x1766ba[_0x18f523(0x270)]};}[_0x360f56(0x30c)](_0x4cdbd0,_0x154a21='id',_0x5072c8){const _0x2bcd0c=_0x360f56;let _0x22cf95=this[_0x2bcd0c(0x2fd)](),_0x33b23a=Date[_0x2bcd0c(0x243)](),_0x1a0fa4={..._0x5072c8,'id':(0x0,_0x758172['generateRandomId'])(0x6),'values':_0x4e634a(_0x22cf95,_0x4cdbd0,_0x154a21),'orderKey':(_0x5072c8==null?void 0x0:_0x5072c8[_0x2bcd0c(0x286)])||''+_0x33b23a,'createdAt':(_0x5072c8==null?void 0x0:_0x5072c8[_0x2bcd0c(0x266)])||_0x33b23a,'updatedAt':(_0x5072c8==null?void 0x0:_0x5072c8['updatedAt'])||_0x33b23a};if(!this[_0x2bcd0c(0x1d4)][_0x2bcd0c(0x207)](_0x48619f[_0x2bcd0c(0x267)]['id'],{'unitId':this['_base'][_0x2bcd0c(0x186)](),'tableId':this[_0x2bcd0c(0x2fe)],'record':_0x1a0fa4,'source':_0x48619f['BaseEventSource'][_0x2bcd0c(0x2f0)]}))throw Error(_0x2bcd0c(0x1a8)+_0x1a0fa4['id']+'\x22');return this[_0x2bcd0c(0x2a4)]['createInstance'](_0x56af14,this[_0x2bcd0c(0x24b)],this,_0x1a0fa4['id'],this[_0x2bcd0c(0x2a4)]);}[_0x360f56(0x1af)](_0x3725b7){const _0x10af1f=_0x360f56;if(!_0x3725b7[_0x10af1f(0x270)])return[];let _0x31fbd7=this['_getTable'](),_0x293145=Date[_0x10af1f(0x243)](),_0xc1ae24=_0x3725b7[_0x10af1f(0x2c8)]((_0x1a5db7,_0x410a67)=>{const _0x398b3a=_0x10af1f;var _0x5be221,_0x24692a,_0x239d82;return{..._0x1a5db7[_0x398b3a(0x23a)],'id':(0x0,_0x758172[_0x398b3a(0x2c7)])(0x6),'values':_0x4e634a(_0x31fbd7,_0x1a5db7['values'],_0x1a5db7[_0x398b3a(0x273)]??'id'),'orderKey':((_0x5be221=_0x1a5db7[_0x398b3a(0x23a)])==null?void 0x0:_0x5be221[_0x398b3a(0x286)])||''+(_0x293145+_0x410a67),'createdAt':((_0x24692a=_0x1a5db7[_0x398b3a(0x23a)])==null?void 0x0:_0x24692a['createdAt'])||_0x293145,'updatedAt':((_0x239d82=_0x1a5db7['record'])==null?void 0x0:_0x239d82[_0x398b3a(0x275)])||_0x293145};});if(!this['_commandService'][_0x10af1f(0x207)](_0x48619f['BatchCreateBaseRecordsCommand']['id'],{'unitId':this[_0x10af1f(0x24b)]['getId'](),'tableId':this[_0x10af1f(0x2fe)],'records':_0xc1ae24,'source':_0x48619f[_0x10af1f(0x264)]['Facade']}))throw Error('Failed\x20to\x20add\x20records');return _0xc1ae24['map'](_0xfd376e=>this['_injector'][_0x10af1f(0x2e7)](_0x56af14,this['_base'],this,_0xfd376e['id'],this[_0x10af1f(0x2a4)]));}[_0x360f56(0x1b8)](_0x319a86){const _0x4680d0=_0x360f56;return!_0x319a86[_0x4680d0(0x270)]||this[_0x4680d0(0x1d4)][_0x4680d0(0x207)](_0x48619f[_0x4680d0(0x2d5)]['id'],{'unitId':this['_base'][_0x4680d0(0x186)](),'tableId':this[_0x4680d0(0x2fe)],'recordIds':_0x319a86,'source':_0x48619f[_0x4680d0(0x264)][_0x4680d0(0x2f0)]});}[_0x360f56(0x217)](_0xec1fc,_0x307740,_0x34c503=0x1,_0x39264b=0x1){const _0x47918a=_0x360f56;return this['_injector']['createInstance'](_0x146f1c,this[_0x47918a(0x24b)],this,{'startRow':_0xec1fc,'endRow':_0xec1fc+_0x34c503-0x1,'startColumn':_0x307740,'endColumn':_0x307740+_0x39264b-0x1},this['_injector']);}[_0x360f56(0x2a2)](){const _0x5eee64=_0x360f56;var _0xaab115;let _0x1412e7=(0x0,_0x48619f[_0x5eee64(0x233)])(this['_getTable']()),_0x516ef2=((_0xaab115=_0x1412e7[_0x5eee64(0x26e)])==null?void 0x0:_0xaab115[_0x5eee64(0x270)])??0x0,_0xe0fa8f=_0x1412e7['fieldOrder'][_0x5eee64(0x290)](_0x287428=>_0x4a80b3(_0x1412e7['fields'][_0x287428]))['length'];return this['getRange'](0x0,0x0,Math[_0x5eee64(0x25c)](_0x516ef2,0x1),Math['max'](_0xe0fa8f,0x1));}['getViews'](){const _0x1a7417=_0x360f56;let _0x1be384=this[_0x1a7417(0x2fd)]();return _0x1be384[_0x1a7417(0x1ca)][_0x1a7417(0x290)](_0x4af025=>_0x1be384[_0x1a7417(0x16a)][_0x4af025])[_0x1a7417(0x2c8)](_0x1c763b=>this[_0x1a7417(0x2a4)][_0x1a7417(0x2e7)](_0x5d3c12,this[_0x1a7417(0x24b)],this,_0x1c763b,this[_0x1a7417(0x2a4)]));}[_0x360f56(0x26c)](_0x1a1c3c){const _0x5c3ed6=_0x360f56;return this[_0x5c3ed6(0x2fd)]()[_0x5c3ed6(0x16a)][_0x1a1c3c]?this[_0x5c3ed6(0x2a4)]['createInstance'](_0x5d3c12,this[_0x5c3ed6(0x24b)],this,_0x1a1c3c,this[_0x5c3ed6(0x2a4)]):null;}[_0x360f56(0x25a)](_0x135c2f){const _0xe2c3e0=_0x360f56;let _0x14bc05=this[_0xe2c3e0(0x2fd)](),_0x21dce2=Object[_0xe2c3e0(0x1ed)](_0x14bc05['views'])['find'](_0x5b4b44=>_0x5b4b44['name']===_0x135c2f);return _0x21dce2?this[_0xe2c3e0(0x2a4)]['createInstance'](_0x5d3c12,this[_0xe2c3e0(0x24b)],this,_0x21dce2['id'],this[_0xe2c3e0(0x2a4)]):null;}[_0x360f56(0x260)](_0x1c396b,_0x633897,_0x326e08){const _0x2a4f22=_0x360f56;var _0x54d252,_0x36d313,_0x80d095,_0x3104cc;let _0x48b856=this[_0x2a4f22(0x2fd)](),_0x54e3e6=(_0x326e08==null||(_0x54d252=_0x326e08[_0x2a4f22(0x187)])==null?void 0x0:_0x54d252[_0x2a4f22(0x21b)])??_0x48b856[_0x2a4f22(0x21b)],_0x2348b2=[_0x758172[_0x2a4f22(0x1e3)],..._0x54e3e6['filter'](_0x54f97c=>_0x4a80b3(_0x48b856[_0x2a4f22(0x25d)][_0x54f97c]))],_0x42e048={..._0x326e08==null?void 0x0:_0x326e08['view'],'id':(0x0,_0x758172[_0x2a4f22(0x2c7)])(0x6),'name':_0x1c396b,'type':_0x633897,'tableId':this[_0x2a4f22(0x2fe)],'config':(_0x326e08==null||(_0x36d313=_0x326e08[_0x2a4f22(0x187)])==null?void 0x0:_0x36d313[_0x2a4f22(0x185)])??{},'fieldOrder':_0x2348b2,'fieldSettings':{..._0x326e08==null||(_0x80d095=_0x326e08[_0x2a4f22(0x187)])==null?void 0x0:_0x80d095['fieldSettings'],[_0x758172[_0x2a4f22(0x1e3)]]:{..._0x326e08==null||(_0x3104cc=_0x326e08[_0x2a4f22(0x187)])==null||(_0x3104cc=_0x3104cc[_0x2a4f22(0x1df)])==null?void 0x0:_0x3104cc[_0x758172[_0x2a4f22(0x1e3)]],'hidden':!0x0}}};if(!this[_0x2a4f22(0x1d4)][_0x2a4f22(0x207)](_0x48619f['CreateBaseViewCommand']['id'],{'unitId':this['_base'][_0x2a4f22(0x186)](),'tableId':this[_0x2a4f22(0x2fe)],'view':_0x42e048,'index':_0x326e08==null?void 0x0:_0x326e08[_0x2a4f22(0x27d)]}))throw Error(_0x2a4f22(0x17a)+_0x1c396b+'\x22');return this[_0x2a4f22(0x2a4)][_0x2a4f22(0x2e7)](_0x5d3c12,this[_0x2a4f22(0x24b)],this,_0x42e048['id'],this['_injector']);}[_0x360f56(0x19e)](){const _0x4a307c=_0x360f56;let _0x5eb7e5=this[_0x4a307c(0x2fd)](),_0x5d930b=_0x5eb7e5[_0x4a307c(0x21b)][_0x4a307c(0x290)](_0x18c56b=>_0x4a80b3(_0x5eb7e5['fields'][_0x18c56b])),_0x4ba7cd=_0x5eb7e5['viewOrder'][_0x4a307c(0x290)](_0x69e2f6=>_0x5eb7e5[_0x4a307c(0x16a)][_0x69e2f6]);return{'id':_0x5eb7e5['id'],'name':_0x5eb7e5[_0x4a307c(0x2a9)],'formulaName':this[_0x4a307c(0x1f3)](),'primaryFieldId':_0x5eb7e5['primaryFieldId'],'fieldIds':_0x5d930b,'viewIds':_0x4ba7cd,'recordCount':this['_resolveRecordIds']()[_0x4a307c(0x270)],'fields':_0x5d930b[_0x4a307c(0x2c8)](_0x5d1112=>{const _0x1fae9a=_0x4a307c;let _0x474915=_0x5eb7e5[_0x1fae9a(0x25d)][_0x5d1112];return{'id':_0x474915['id'],'name':_0x474915[_0x1fae9a(0x2a9)],'type':_0x474915['type'],'config':_0x474915[_0x1fae9a(0x185)],'readonly':_0x474915['readonly'],'description':_0x474915[_0x1fae9a(0x192)]};}),'views':_0x4ba7cd[_0x4a307c(0x2c8)](_0x55d837=>{const _0x290c0a=_0x4a307c;let _0xf97d4e=_0x5eb7e5[_0x290c0a(0x16a)][_0x55d837];return{'id':_0xf97d4e['id'],'name':_0xf97d4e[_0x290c0a(0x2a9)],'type':_0xf97d4e[_0x290c0a(0x1e7)]};})};}[_0x360f56(0x2fd)](){const _0x37a5d6=_0x360f56;let _0x48dda7=this['_base']['getBase']()['getSnapshot']()[_0x37a5d6(0x238)][this[_0x37a5d6(0x2fe)]];if(!_0x48dda7)throw Error(_0x37a5d6(0x23c)+this[_0x37a5d6(0x2fe)]+_0x37a5d6(0x30f));return _0x48dda7;}[_0x360f56(0x27b)](_0xdbb0a7={}){const _0x123851=_0x360f56;let _0x5e7e8d=this[_0x123851(0x24b)]['getBase']()[_0x123851(0x218)](),_0x1c57e2=this[_0x123851(0x2fd)]();if(_0xdbb0a7['viewId']){let _0x13a8d6=this[_0x123851(0x2c9)][_0x123851(0x1de)](_0x5e7e8d,this['_tableId'],_0xdbb0a7['viewId']);if('rows'in _0x13a8d6&&Array[_0x123851(0x1b0)](_0x13a8d6['rows']))return _0x13a8d6['rows'][_0x123851(0x2c8)](_0x32908b=>_0x32908b[_0x123851(0x248)]);}return(_0x1c57e2['recordOrder']?_0x1c57e2[_0x123851(0x26e)][_0x123851(0x2c8)](_0x59ee38=>_0x1c57e2[_0x123851(0x2f3)][_0x59ee38]):Object[_0x123851(0x1ed)](_0x1c57e2[_0x123851(0x2f3)])[_0x123851(0x22b)]((_0x3d3c3f,_0x359174)=>_0x3d3c3f[_0x123851(0x286)][_0x123851(0x26a)](_0x359174['orderKey'])))[_0x123851(0x290)](_0x2c36c1=>_0x2c36c1)[_0x123851(0x2c8)](_0x2da5a9=>_0x2da5a9['id']);}};_0x2fdc6b=_0x283871([_0x2ff177(0x3,_0x758172['ICommandService']),_0x2ff177(0x4,_0x758172['IPermissionService']),_0x2ff177(0x5,_0x48619f[_0x360f56(0x202)])],_0x2fdc6b);function _0x2977ce(_0x557ae7,_0x14c7f9){const _0x4557dd=_0x360f56;let _0x52b9ad=Math[_0x4557dd(0x25c)](0x0,_0x14c7f9[_0x4557dd(0x292)]??0x0);return _0x14c7f9['limit']==null?_0x557ae7[_0x4557dd(0x1d1)](_0x52b9ad):_0x557ae7[_0x4557dd(0x1d1)](_0x52b9ad,_0x52b9ad+Math[_0x4557dd(0x25c)](0x0,_0x14c7f9[_0x4557dd(0x307)]));}function _0x3f75bc(_0x48ef68,_0x4d1346,_0x5dbbe6=[]){const _0x753a60=_0x360f56;return _0x5dbbe6[_0x753a60(0x270)]?[..._0x48ef68][_0x753a60(0x22b)]((_0x5e48ce,_0x355f1c)=>{const _0x309ab8=_0x753a60;for(let _0x42d293 of _0x5dbbe6){var _0x5274c0;let _0x185c3e=_0x42d293['direction']===_0x758172['BaseSortDirection'][_0x309ab8(0x298)]?-0x1:0x1,_0x3dd1fb=_0x2b6ce7(_0x5e48ce[_0x309ab8(0x1ed)][_0x42d293[_0x309ab8(0x2d3)]],_0x355f1c['values'][_0x42d293[_0x309ab8(0x2d3)]],(_0x5274c0=_0x4d1346[_0x309ab8(0x25d)][_0x42d293[_0x309ab8(0x2d3)]])==null?void 0x0:_0x5274c0[_0x309ab8(0x1e7)]);if(_0x3dd1fb!==0x0)return _0x3dd1fb*_0x185c3e;}return String(_0x5e48ce[_0x309ab8(0x286)]??_0x5e48ce['id'])['localeCompare'](String(_0x355f1c[_0x309ab8(0x286)]??_0x355f1c['id']));}):_0x48ef68;}function _0x2b6ce7(_0x1fd14e,_0x119aca,_0x30b00c){const _0x4be8ec=_0x360f56;return _0x1fd14e==null&&_0x119aca==null?0x0:_0x1fd14e==null?-0x1:_0x119aca==null?0x1:typeof _0x1fd14e==_0x4be8ec(0x16f)&&typeof _0x119aca=='number'?_0x1fd14e-_0x119aca:_0x30b00c===_0x758172[_0x4be8ec(0x2bf)][_0x4be8ec(0x305)]?Number(_0x1fd14e)-Number(_0x119aca):String(_0x1fd14e)['localeCompare'](String(_0x119aca));}function _0x69d56d(_0x500873,_0x1dc0ee,_0x5ed078){const _0x144d9a=_0x360f56;var _0x2772cd;if(!_0x5ed078||!((_0x2772cd=_0x5ed078[_0x144d9a(0x1ef)])!=null&&_0x2772cd[_0x144d9a(0x270)]))return!0x0;let {conjunction:_0x4b9f02=_0x758172[_0x144d9a(0x1e9)]['OR'],conditions:_0x244b7d}=_0x5ed078;return _0x4b9f02===_0x758172[_0x144d9a(0x1e9)][_0x144d9a(0x194)]&&_0x244b7d[_0x144d9a(0x270)]>0x1?_0x244b7d[_0x144d9a(0x20e)](_0x2f7a4d=>_0x6682c7(_0x500873,_0x1dc0ee,_0x2f7a4d)):_0x244b7d['some'](_0x3f43e6=>_0x6682c7(_0x500873,_0x1dc0ee,_0x3f43e6));}function _0x6682c7(_0x1e507a,_0x20bb7a,_0x4ba846){const _0x34e78e=_0x360f56;let _0x45f626=_0x1e507a['values'][_0x4ba846[_0x34e78e(0x2d3)]],_0x2ea7aa=_0x20bb7a['fields'][_0x4ba846[_0x34e78e(0x2d3)]];if(_0x4d376e(_0x4ba846)){let _0x3ac166=_0x559136(_0x4ba846)[_0x34e78e(0x302)](String(_0x45f626??''));return _0x4ba846['operator']==='matches'?_0x3ac166:!_0x3ac166;}return!_0x2ea7aa||(0x0,_0x48619f[_0x34e78e(0x184)])(_0x45f626,_0x4ba846[_0x34e78e(0x2eb)],_0x4ba846[_0x34e78e(0x288)],_0x2ea7aa);}function _0x4d376e(_0x43e5fb){const _0x52be5e=_0x360f56;return _0x43e5fb[_0x52be5e(0x2eb)]===_0x52be5e(0x2d4)||_0x43e5fb['operator']==='notMatches';}function _0x559136(_0x3bc86a){const _0x459277=_0x360f56;let _0x3f5a0c=String(_0x3bc86a[_0x459277(0x288)]??'');if(_0x3f5a0c['length']>0x200)throw Error(_0x459277(0x20d));try{return new RegExp(_0x3f5a0c,_0x3bc86a[_0x459277(0x1b3)]?void 0x0:'i');}catch(_0xb97d0d){throw Error('Invalid\x20Base\x20regex\x20filter:\x20'+_0x3f5a0c+'.\x20'+(_0xb97d0d instanceof Error?_0xb97d0d[_0x459277(0x2c6)]:String(_0xb97d0d)));}}function _0xe3c1e7(_0x140704,_0x152261,_0x4f35f5){const _0x4fb8a7=_0x360f56;if(_0x4f35f5[_0x4fb8a7(0x1e7)]!=='invalid'&&_0x4f35f5['type']!==_0x4fb8a7(0x181)){var _0x48fa52;if(_0x4f35f5[_0x4fb8a7(0x1e7)]===_0x758172['BaseViewType'][_0x4fb8a7(0x250)]){var _0x4ee5c4;let _0x4d8aa3=[((_0x4ee5c4=_0x4f35f5[_0x4fb8a7(0x25d)])==null||(_0x4ee5c4=_0x4ee5c4[0x0])==null?void 0x0:_0x4ee5c4['id'])??_0x140704[_0x4fb8a7(0x287)],..._0x4f35f5['visibleCardFieldIds']??[]];return Array['from'](new Set(_0x4d8aa3[_0x4fb8a7(0x290)](_0x768bfe=>!!_0x140704['fields'][_0x768bfe])));}if((_0x48fa52=_0x4f35f5['fields'])!=null&&_0x48fa52[_0x4fb8a7(0x270)])return _0x4f35f5[_0x4fb8a7(0x25d)][_0x4fb8a7(0x2c8)](_0x21d8f6=>_0x21d8f6['id'])[_0x4fb8a7(0x290)](_0x53300c=>{const _0x388f54=_0x4fb8a7;var _0x540d03;return!(!_0x140704[_0x388f54(0x25d)][_0x53300c]||_0x152261!=null&&(_0x540d03=_0x152261[_0x388f54(0x1df)])!=null&&(_0x540d03=_0x540d03[_0x53300c])!=null&&_0x540d03[_0x388f54(0x2f7)]);});}return _0x140704[_0x4fb8a7(0x21b)][_0x4fb8a7(0x290)](_0xa2da47=>{const _0x35e89b=_0x4fb8a7;var _0x2f34b5;return!(!_0x140704[_0x35e89b(0x25d)][_0xa2da47]||_0x152261!=null&&(_0x2f34b5=_0x152261['fieldSettings'])!=null&&(_0x2f34b5=_0x2f34b5[_0xa2da47])!=null&&_0x2f34b5[_0x35e89b(0x2f7)]);});}let _0x516e3f=class extends _0x53678c['FBase']{constructor(_0x4722c5,_0x4772a1,_0x4bed50,_0x1a3a03,_0x4b456c){const _0x2e163a=_0x360f56;super(),this['_base']=_0x4722c5,this[_0x2e163a(0x2a4)]=_0x4772a1,this[_0x2e163a(0x196)]=_0x4bed50,this[_0x2e163a(0x1d4)]=_0x1a3a03,this[_0x2e163a(0x159)]=_0x4b456c;}['getBase'](){return this['_base'];}['getId'](){const _0x241d25=_0x360f56;return this[_0x241d25(0x24b)][_0x241d25(0x2c1)]();}[_0x360f56(0x234)](){const _0x3ab067=_0x360f56;return new _0x1339aa(this['getId'](),this[_0x3ab067(0x1d4)],this[_0x3ab067(0x159)]);}['save'](){const _0x1c1ed2=_0x360f56;return this[_0x1c1ed2(0x196)][_0x1c1ed2(0x2be)](this[_0x1c1ed2(0x186)]())??_0x758172['Tools']['deepClone'](this[_0x1c1ed2(0x24b)][_0x1c1ed2(0x218)]());}[_0x360f56(0x2e1)](){const _0x501674=_0x360f56;return this[_0x501674(0x24b)][_0x501674(0x218)]()[_0x501674(0x2a9)];}[_0x360f56(0x2a5)](_0x944959){const _0x3774b5=_0x360f56;this[_0x3774b5(0x1d4)][_0x3774b5(0x207)](_0x48619f['SetBaseNameCommand']['id'],{'unitId':this['getId'](),'name':_0x944959});}[_0x360f56(0x1ee)](){const _0x32731b=_0x360f56;let _0x1a4bd6=this[_0x32731b(0x24b)][_0x32731b(0x218)]();return _0x1a4bd6['tableOrder'][_0x32731b(0x2c8)](_0x2bb781=>_0x1a4bd6[_0x32731b(0x238)][_0x2bb781])[_0x32731b(0x290)](_0x3605ae=>_0x3605ae)['map'](_0x2cb709=>this[_0x32731b(0x2a4)][_0x32731b(0x2e7)](_0x2fdc6b,this,_0x2cb709['id'],this[_0x32731b(0x2a4)]));}['getTableById'](_0x367a01){const _0x5d9785=_0x360f56;let _0x388b3d=this[_0x5d9785(0x24b)][_0x5d9785(0x218)]()[_0x5d9785(0x238)][_0x367a01];return _0x388b3d?this[_0x5d9785(0x2a4)][_0x5d9785(0x2e7)](_0x2fdc6b,this,_0x388b3d['id'],this[_0x5d9785(0x2a4)]):null;}[_0x360f56(0x189)](_0x206215){const _0x22d58b=_0x360f56;let _0x1638ea=this[_0x22d58b(0x24b)][_0x22d58b(0x218)](),_0x492be6=Object[_0x22d58b(0x1ed)](_0x1638ea[_0x22d58b(0x238)])['find'](_0x1ede21=>_0x1ede21[_0x22d58b(0x2a9)]===_0x206215);return _0x492be6?this[_0x22d58b(0x2a4)][_0x22d58b(0x2e7)](_0x2fdc6b,this,_0x492be6['id'],this[_0x22d58b(0x2a4)]):null;}['insertTable'](_0x28b005,_0x391a82){const _0x9665a1=_0x360f56;let _0x3b504d=(0x0,_0x758172[_0x9665a1(0x1ba)])({'id':(0x0,_0x758172[_0x9665a1(0x2c7)])(),'name':_0x28b005,..._0x391a82==null?void 0x0:_0x391a82['table'],'primaryFieldName':_0x391a82==null?void 0x0:_0x391a82[_0x9665a1(0x214)]}),_0x18a4cd=_0x758172['Tools'][_0x9665a1(0x313)](_0x3b504d,(_0x391a82==null?void 0x0:_0x391a82['table'])??{}),_0x5b1911=(0x0,_0x48619f['validateBaseTableName'])(this['_base'][_0x9665a1(0x218)](),_0x18a4cd[_0x9665a1(0x2a9)]);if(!_0x5b1911['valid'])throw Error(_0x9665a1(0x19d)+_0x18a4cd[_0x9665a1(0x2a9)]+_0x9665a1(0x1b4)+_0x48619f[_0x9665a1(0x1c2)]+'\x20'+_0x5b1911[_0x9665a1(0x279)]);if(!this[_0x9665a1(0x1d4)][_0x9665a1(0x207)](_0x48619f[_0x9665a1(0x228)]['id'],{'unitId':this[_0x9665a1(0x24b)][_0x9665a1(0x2c1)](),'table':_0x18a4cd,'index':_0x391a82==null?void 0x0:_0x391a82[_0x9665a1(0x27d)]}))throw Error(_0x9665a1(0x285)+_0x28b005+'\x22.');return this['_injector'][_0x9665a1(0x2e7)](_0x2fdc6b,this,_0x18a4cd['id'],this['_injector']);}[_0x360f56(0x2ae)](_0x126b76){const _0x2647f4=_0x360f56;let _0x56c783=typeof _0x126b76=='string'?_0x126b76:_0x126b76[_0x2647f4(0x186)]();if(!this[_0x2647f4(0x1d4)][_0x2647f4(0x207)](_0x48619f[_0x2647f4(0x263)]['id'],{'unitId':this[_0x2647f4(0x24b)][_0x2647f4(0x2c1)](),'tableId':_0x56c783}))throw Error(_0x2647f4(0x1db)+_0x56c783+'\x22.');return!0x0;}['duplicateTable'](_0x282337,_0x1962f6){const _0xefc506=_0x360f56;let _0x484a39=this[_0xefc506(0x24b)][_0xefc506(0x218)](),_0x2e0b2c=typeof _0x282337==_0xefc506(0x2a6)?_0x282337:_0x282337[_0xefc506(0x186)](),_0x11b2ac=_0x484a39[_0xefc506(0x238)][_0x2e0b2c];if(!_0x11b2ac)throw Error(_0xefc506(0x314)+_0x2e0b2c+_0xefc506(0x30f));let _0x30c357=_0x484a39[_0xefc506(0x15c)][_0xefc506(0x277)](_0x2e0b2c)+0x1,_0x38725f=(0x0,_0x758172[_0xefc506(0x2c7)])(),_0x3aa442=(0x0,_0x48619f[_0xefc506(0x29f)])(_0x11b2ac,{'id':_0x38725f,'name':(0x0,_0x48619f[_0xefc506(0x29d)])(_0x484a39,_0x11b2ac[_0xefc506(0x2a9)]+_0xefc506(0x29b)),'includeRecords':(_0x1962f6==null?void 0x0:_0x1962f6['includeRecords'])??!0x1,'regenerateViewIds':(_0x1962f6==null?void 0x0:_0x1962f6[_0xefc506(0x272)])??!0x1});if(!this[_0xefc506(0x1d4)][_0xefc506(0x207)](_0x48619f['CreateBaseTableCommand']['id'],{'unitId':this[_0xefc506(0x24b)][_0xefc506(0x2c1)](),'table':_0x3aa442,'index':_0x30c357}))throw Error(_0xefc506(0x21d)+_0x2e0b2c+'\x22.');return this[_0xefc506(0x2a4)]['createInstance'](_0x2fdc6b,this,_0x3aa442['id'],this[_0xefc506(0x2a4)]);}[_0x360f56(0x19e)](){const _0x1af108=_0x360f56;let _0x3b66c9=this[_0x1af108(0x24b)][_0x1af108(0x218)]();return{'id':_0x3b66c9['id'],'name':_0x3b66c9['name'],'tables':this[_0x1af108(0x1ee)]()[_0x1af108(0x2c8)](_0x2efee1=>_0x2efee1[_0x1af108(0x19e)]())};}};_0x516e3f=_0x283871([_0x2ff177(0x1,(0x0,_0x758172[_0x360f56(0x169)])(_0x758172[_0x360f56(0x23b)])),_0x2ff177(0x2,_0x758172[_0x360f56(0x2cf)]),_0x2ff177(0x3,_0x758172[_0x360f56(0x1e2)]),_0x2ff177(0x4,_0x758172[_0x360f56(0x1ce)])],_0x516e3f);var _0x486d0e=class extends _0x53678c[_0x360f56(0x2ec)]{[_0x360f56(0x27f)](){const _0x4e5932=_0x360f56;this[_0x4e5932(0x1e0)](),this[_0x4e5932(0x158)]();}['createBase'](_0x4a1f4b={},_0x5176f7){const _0x1c3939=_0x360f56;let _0x3735fb=this[_0x1c3939(0x2cc)][_0x1c3939(0x2a1)](_0x758172[_0x1c3939(0x24e)][_0x1c3939(0x1e8)],_0x4a1f4b,_0x5176f7);return this[_0x1c3939(0x2a4)]['createInstance'](_0x516e3f,_0x3735fb);}['getActiveBase'](){const _0x679ea1=_0x360f56;let _0x53d70b=this['_univerInstanceService']['getCurrentUnitOfType'](_0x758172['UniverInstanceType'][_0x679ea1(0x1e8)]);return _0x53d70b?this['_injector']['createInstance'](_0x516e3f,_0x53d70b):null;}[_0x360f56(0x308)](_0x13d992){const _0x17477c=_0x360f56;let _0x3b6fbc=this[_0x17477c(0x2cc)]['getUnit'](_0x13d992,_0x758172['UniverInstanceType']['UNIVER_BASE']);return _0x3b6fbc?this[_0x17477c(0x2a4)][_0x17477c(0x2e7)](_0x516e3f,_0x3b6fbc):null;}[_0x360f56(0x2d7)](){const _0x2a2f97=_0x360f56;return this['_univerInstanceService'][_0x2a2f97(0x2c0)](_0x758172['UniverInstanceType']['UNIVER_BASE'])['map'](_0x1d528c=>this[_0x2a2f97(0x2a4)]['createInstance'](_0x516e3f,_0x1d528c));}[_0x360f56(0x158)](){const _0x458092=_0x360f56;this['disposeWithMe'](this[_0x458092(0x1b2)](this['Event']['BaseHierarchyChanged'],()=>this[_0x458092(0x1d4)][_0x458092(0x1ea)]((_0x3c7c01,_0x5e27d7)=>{const _0x449c97=_0x458092;var _0x3afcc2;if(!_0x1ef85d(_0x3c7c01,_0x48619f['ApplyBaseJson1Mutation']))return;let _0x467a0d=_0x3c7c01['params'];if(!((_0x3afcc2=_0x467a0d[_0x449c97(0x224)])!=null&&_0x3afcc2[_0x449c97(0x270)]))return;let _0x3d8de8=this[_0x449c97(0x308)](_0x467a0d[_0x449c97(0x1b9)]),_0x550765=_0x3d8de8==null?void 0x0:_0x3d8de8['getTableById'](_0x467a0d[_0x449c97(0x224)][0x0]['tableId']);if(!_0x3d8de8||!_0x550765)return;let _0x5d8f21={'base':_0x3d8de8,'table':_0x550765,'changes':_0x467a0d['hierarchyChanges'],'source':_0x5e27d7!=null&&_0x5e27d7[_0x449c97(0x1d0)]?_0x48619f[_0x449c97(0x264)][_0x449c97(0x22c)]:_0x467a0d[_0x449c97(0x15a)]??_0x48619f[_0x449c97(0x264)]['UI']};this[_0x449c97(0x19b)](this[_0x449c97(0x1eb)]['BaseHierarchyChanged'],_0x5d8f21);}))),this[_0x458092(0x188)](this[_0x458092(0x1b2)](this[_0x458092(0x1eb)]['BaseTableCreated'],()=>this[_0x458092(0x1d4)]['onCommandExecuted'](_0xd71bfa=>{const _0x1fe4f3=_0x458092;if(_0xd71bfa['id']!==_0x48619f['CreateBaseTableCommand']['id'])return;let {unitId:_0x13c436,table:_0x506820,index:_0x2600ff}=_0xd71bfa[_0x1fe4f3(0x1c3)],_0x2732a4=this[_0x1fe4f3(0x308)](_0x13c436);if(!_0x2732a4)return;let _0x4b5e20={'base':_0x2732a4,'table':_0x506820,'index':_0x2600ff};this['fireEvent'](this[_0x1fe4f3(0x1eb)]['BaseTableCreated'],_0x4b5e20);}))),this[_0x458092(0x188)](this[_0x458092(0x1b2)](this[_0x458092(0x1eb)][_0x458092(0x1fa)],()=>this[_0x458092(0x1d4)][_0x458092(0x1ea)](_0x286df9=>{const _0x3a83d8=_0x458092;if(_0x286df9['id']!==_0x48619f[_0x3a83d8(0x183)]['id'])return;let {unitId:_0x42e03a,tableId:_0x5e09bf,field:_0x860f41,index:_0x46ca35,viewIndexes:_0x3b4b1b}=_0x286df9[_0x3a83d8(0x1c3)],_0x2d2ed0=this[_0x3a83d8(0x308)](_0x42e03a);if(!_0x2d2ed0)return;let _0x47d14f=_0x2d2ed0['getTableById'](_0x5e09bf);if(!_0x47d14f)return;let _0x5737a3={'base':_0x2d2ed0,'table':_0x47d14f,'field':_0x860f41,'index':_0x46ca35,'viewIndexes':_0x3b4b1b};this[_0x3a83d8(0x19b)](this[_0x3a83d8(0x1eb)][_0x3a83d8(0x1fa)],_0x5737a3);}))),this['disposeWithMe'](this[_0x458092(0x1b2)](this['Event'][_0x458092(0x2c3)],()=>this[_0x458092(0x1d4)][_0x458092(0x1ea)](_0x1454b0=>{const _0x50ba35=_0x458092;if(_0x1454b0['id']!==_0x48619f[_0x50ba35(0x267)]['id']&&_0x1454b0['id']!==_0x48619f[_0x50ba35(0x1ac)]['id'])return;let _0x34c618=_0x1454b0[_0x50ba35(0x1c3)],{unitId:_0x51d555,tableId:_0x3f7278}=_0x34c618,_0x361993=_0x34c618[_0x50ba35(0x2f3)]??[_0x34c618[_0x50ba35(0x23a)]],_0xb1963a=this[_0x50ba35(0x308)](_0x51d555);if(!_0xb1963a)return;let _0x4aea43=_0xb1963a[_0x50ba35(0x1cb)](_0x3f7278);if(!_0x4aea43)return;let _0x58a75d={'base':_0xb1963a,'table':_0x4aea43,'records':_0x361993};this[_0x50ba35(0x19b)](this['Event'][_0x50ba35(0x2c3)],_0x58a75d);}))),this[_0x458092(0x188)](this[_0x458092(0x1b2)](this['Event'][_0x458092(0x19c)],()=>this[_0x458092(0x1d4)][_0x458092(0x1ea)](_0x5c38ca=>{const _0x4f094b=_0x458092;if(_0x5c38ca['id']!==_0x48619f[_0x4f094b(0x28b)]['id'])return;let {unitId:_0x433847,tableId:_0x362123,view:_0x189f70,index:_0x5c7644}=_0x5c38ca[_0x4f094b(0x1c3)],_0x44c660=this[_0x4f094b(0x308)](_0x433847);if(!_0x44c660)return;let _0x3bce24=_0x44c660['getTableById'](_0x362123);if(!_0x3bce24)return;let _0x4f0bdd={'base':_0x44c660,'table':_0x3bce24,'view':_0x189f70,'index':_0x5c7644};this[_0x4f094b(0x19b)](this[_0x4f094b(0x1eb)]['BaseTableViewCreated'],_0x4f0bdd);}))),this[_0x458092(0x188)](this[_0x458092(0x1b2)](this['Event'][_0x458092(0x1aa)],()=>this['_commandService'][_0x458092(0x1ea)](_0x5eb2e5=>{const _0x303eca=_0x458092;if(_0x5eb2e5['id']!==_0x48619f[_0x303eca(0x2b7)]['id'])return;let {unitId:_0x3955cb,tableId:_0x6888e0,recordId:_0x20a16c,fieldId:_0x5c2558,value:_0x50e01d}=_0x5eb2e5[_0x303eca(0x1c3)],_0x1938b6=this[_0x303eca(0x308)](_0x3955cb);if(!_0x1938b6)return;let _0x4bf8ef=_0x1938b6[_0x303eca(0x1cb)](_0x6888e0);if(!_0x4bf8ef)return;let _0x586078=_0x4bf8ef[_0x303eca(0x231)](_0x5c2558);if(!_0x586078)return;let _0x4a43cc=_0x4bf8ef[_0x303eca(0x23d)](_0x20a16c);if(!_0x4a43cc)return;let _0x263229={'base':_0x1938b6,'table':_0x4bf8ef,'field':_0x586078,'record':_0x4a43cc,'value':_0x50e01d};this[_0x303eca(0x19b)](this[_0x303eca(0x1eb)][_0x303eca(0x1aa)],_0x263229);})));}[_0x360f56(0x1e0)](){const _0x2fb70c=_0x360f56;this[_0x2fb70c(0x188)](this[_0x2fb70c(0x1b2)](this[_0x2fb70c(0x1eb)][_0x2fb70c(0x24c)],()=>this[_0x2fb70c(0x1d4)]['beforeCommandExecuted'](_0x585381=>{const _0x48d74b=_0x2fb70c;if(_0x1ef85d(_0x585381,_0x48619f['SetBaseRecordValuesCommand'])){let {unitId:_0x21b5c5,tableId:_0x1f35ab,patches:_0x4896f0,source:_0x2b3f55=_0x48619f[_0x48d74b(0x264)]['UI']}=_0x585381['params'],_0x5661ab=this[_0x48d74b(0x2ea)](_0x21b5c5,_0x1f35ab);if(!_0x5661ab)return;this[_0x48d74b(0x230)](_0x5661ab[_0x48d74b(0x2ac)],_0x5661ab[_0x48d74b(0x2b6)],(0x0,_0x48619f[_0x48d74b(0x21f)])(_0x5661ab[_0x48d74b(0x2b6)][_0x48d74b(0x1a2)](),_0x4896f0),_0x2b3f55);return;}if(_0x1ef85d(_0x585381,_0x48619f[_0x48d74b(0x27c)])){let {unitId:_0x3bbf61,tableId:_0x564cb5,patches:_0x20eeb2,source:_0x1ddbaf=_0x48619f[_0x48d74b(0x264)]['UI']}=_0x585381[_0x48d74b(0x1c3)],_0x39ce1d=this[_0x48d74b(0x2ea)](_0x3bbf61,_0x564cb5);if(!_0x39ce1d)return;let _0x46a68a=_0x39ce1d[_0x48d74b(0x2b6)][_0x48d74b(0x1a2)]();this[_0x48d74b(0x230)](_0x39ce1d[_0x48d74b(0x2ac)],_0x39ce1d[_0x48d74b(0x2b6)],(0x0,_0x48619f[_0x48d74b(0x21f)])(_0x46a68a,(0x0,_0x48619f['resolveBaseRangeHierarchyPatches'])(_0x46a68a,_0x20eeb2)),_0x1ddbaf);return;}if(_0x1ef85d(_0x585381,_0x48619f[_0x48d74b(0x267)])){let _0x550a36=_0x585381[_0x48d74b(0x1c3)],_0x55b3d3=this[_0x48d74b(0x2ea)](_0x550a36['unitId'],_0x550a36[_0x48d74b(0x1a3)]);if(!_0x55b3d3)return;this[_0x48d74b(0x230)](_0x55b3d3[_0x48d74b(0x2ac)],_0x55b3d3[_0x48d74b(0x2b6)],(0x0,_0x48619f[_0x48d74b(0x20a)])(_0x55b3d3[_0x48d74b(0x2b6)][_0x48d74b(0x1a2)](),[_0x550a36['record']]),_0x550a36['source']??_0x48619f[_0x48d74b(0x264)]['UI']);return;}if(_0x1ef85d(_0x585381,_0x48619f[_0x48d74b(0x1ac)])){let _0x47cb89=_0x585381[_0x48d74b(0x1c3)],_0x40dbe8=this['_getHierarchyEventContext'](_0x47cb89[_0x48d74b(0x1b9)],_0x47cb89[_0x48d74b(0x1a3)]);if(!_0x40dbe8)return;this[_0x48d74b(0x230)](_0x40dbe8[_0x48d74b(0x2ac)],_0x40dbe8[_0x48d74b(0x2b6)],(0x0,_0x48619f[_0x48d74b(0x20a)])(_0x40dbe8['table'][_0x48d74b(0x1a2)](),_0x47cb89[_0x48d74b(0x2f3)]),_0x47cb89[_0x48d74b(0x15a)]??_0x48619f[_0x48d74b(0x264)]['UI']);return;}if(_0x1ef85d(_0x585381,_0x48619f[_0x48d74b(0x2b4)])){let _0x36810f=_0x585381['params'],_0x2273d8=this[_0x48d74b(0x2ea)](_0x36810f[_0x48d74b(0x1b9)],_0x36810f['tableId']);if(!_0x2273d8)return;this['_fireBeforeHierarchyChange'](_0x2273d8[_0x48d74b(0x2ac)],_0x2273d8[_0x48d74b(0x2b6)],(0x0,_0x48619f[_0x48d74b(0x20a)])(_0x2273d8[_0x48d74b(0x2b6)]['getTable'](),[_0x36810f[_0x48d74b(0x23a)]]),_0x36810f[_0x48d74b(0x15a)]??_0x48619f[_0x48d74b(0x264)]['UI']);return;}if(_0x1ef85d(_0x585381,_0x48619f[_0x48d74b(0x2a0)])){let _0x3bb48b=_0x585381[_0x48d74b(0x1c3)],_0x2cf92e=this[_0x48d74b(0x2ea)](_0x3bb48b[_0x48d74b(0x1b9)],_0x3bb48b[_0x48d74b(0x1a3)]);if(!_0x2cf92e)return;let _0xd88a7f=_0x2cf92e[_0x48d74b(0x2b6)][_0x48d74b(0x1a2)](),_0x2e258f=_0x3bb48b['fieldId']??(0x0,_0x48619f[_0x48d74b(0x17e)])(_0xd88a7f),_0xc73cff=(0x0,_0x48619f['buildBaseHierarchyIndex'])(_0xd88a7f,_0x2e258f)[_0x48d74b(0x2c5)][_0x48d74b(0x1b6)](_0x3bb48b[_0x48d74b(0x248)])??null;this[_0x48d74b(0x230)](_0x2cf92e[_0x48d74b(0x2ac)],_0x2cf92e[_0x48d74b(0x2b6)],[{'tableId':_0x3bb48b['tableId'],'fieldId':_0x2e258f,'recordId':_0x3bb48b[_0x48d74b(0x248)],'oldParentRecordId':_0xc73cff,'parentRecordId':_0x3bb48b[_0x48d74b(0x2ba)]}],_0x3bb48b[_0x48d74b(0x15a)]??_0x48619f[_0x48d74b(0x264)]['UI']);return;}if(_0x1ef85d(_0x585381,_0x48619f[_0x48d74b(0x204)])){let _0x11de9e=_0x585381[_0x48d74b(0x1c3)],_0xb1eeba=this['_getHierarchyEventContext'](_0x11de9e[_0x48d74b(0x1b9)],_0x11de9e[_0x48d74b(0x1a3)]);if(!_0xb1eeba)return;let _0x32c90b=_0x11de9e[_0x48d74b(0x2d3)]??(0x0,_0x48619f['resolveBaseHierarchyFieldId'])(_0xb1eeba[_0x48d74b(0x2b6)]['getTable']());this[_0x48d74b(0x230)](_0xb1eeba[_0x48d74b(0x2ac)],_0xb1eeba[_0x48d74b(0x2b6)],[{'tableId':_0x11de9e['tableId'],'fieldId':_0x32c90b,'recordId':_0x11de9e[_0x48d74b(0x23a)]['id'],'oldParentRecordId':null,'parentRecordId':_0x11de9e[_0x48d74b(0x2ba)]}],_0x11de9e[_0x48d74b(0x15a)]??_0x48619f[_0x48d74b(0x264)]['UI']);return;}if(_0x1ef85d(_0x585381,_0x48619f[_0x48d74b(0x16c)])){let _0x33cad5=_0x585381[_0x48d74b(0x1c3)],_0x274e9f=this[_0x48d74b(0x2ea)](_0x33cad5[_0x48d74b(0x1b9)],_0x33cad5[_0x48d74b(0x1a3)]);if(!_0x274e9f)return;this['_fireBeforeHierarchyChange'](_0x274e9f[_0x48d74b(0x2ac)],_0x274e9f['table'],(0x0,_0x48619f[_0x48d74b(0x1d6)])(_0x274e9f[_0x48d74b(0x2b6)][_0x48d74b(0x1a2)](),[_0x33cad5['recordId']]),_0x33cad5[_0x48d74b(0x15a)]??_0x48619f[_0x48d74b(0x264)]['UI']);return;}if(_0x1ef85d(_0x585381,_0x48619f['BatchDeleteBaseRecordsCommand'])){let _0x1a0ae0=_0x585381[_0x48d74b(0x1c3)],_0x146071=this[_0x48d74b(0x2ea)](_0x1a0ae0[_0x48d74b(0x1b9)],_0x1a0ae0['tableId']);if(!_0x146071)return;this['_fireBeforeHierarchyChange'](_0x146071[_0x48d74b(0x2ac)],_0x146071[_0x48d74b(0x2b6)],(0x0,_0x48619f[_0x48d74b(0x1d6)])(_0x146071[_0x48d74b(0x2b6)][_0x48d74b(0x1a2)](),_0x1a0ae0[_0x48d74b(0x25e)]),_0x1a0ae0[_0x48d74b(0x15a)]??_0x48619f[_0x48d74b(0x264)]['UI']);return;}if(!_0x1ef85d(_0x585381,_0x48619f['UpdateBaseCellCommand']))return;let _0xff2450=_0x585381[_0x48d74b(0x1c3)],_0x11a9b1=this['_getHierarchyEventContext'](_0xff2450[_0x48d74b(0x1b9)],_0xff2450[_0x48d74b(0x1a3)]);if(!_0x11a9b1)return;let _0x4a7463=_0x11a9b1[_0x48d74b(0x2b6)][_0x48d74b(0x1a2)]();if(!(0x0,_0x48619f['getActiveBaseHierarchyFieldIds'])(_0x4a7463)[_0x48d74b(0x1ae)](_0xff2450['fieldId']))return;let _0x5cc9a5=(0x0,_0x48619f['buildBaseHierarchyIndex'])(_0x4a7463,_0xff2450[_0x48d74b(0x2d3)])[_0x48d74b(0x2c5)][_0x48d74b(0x1b6)](_0xff2450['recordId'])??null,_0x39d8b8=(0x0,_0x48619f[_0x48d74b(0x1a4)])(_0xff2450[_0x48d74b(0x288)])[0x0]??null;_0x5cc9a5!==_0x39d8b8&&this[_0x48d74b(0x230)](_0x11a9b1[_0x48d74b(0x2ac)],_0x11a9b1['table'],[{'tableId':_0xff2450[_0x48d74b(0x1a3)],'fieldId':_0xff2450[_0x48d74b(0x2d3)],'recordId':_0xff2450[_0x48d74b(0x248)],'oldParentRecordId':_0x5cc9a5,'parentRecordId':_0x39d8b8}],_0xff2450[_0x48d74b(0x15a)]??_0x48619f[_0x48d74b(0x264)]['UI']);}))),this[_0x2fb70c(0x188)](this['registerEventHandler'](this[_0x2fb70c(0x1eb)][_0x2fb70c(0x171)],()=>this[_0x2fb70c(0x1d4)][_0x2fb70c(0x18f)](_0x348594=>{const _0x24e21e=_0x2fb70c;if(_0x348594['id']!==_0x48619f[_0x24e21e(0x228)]['id'])return;let {unitId:_0xae226b,table:_0x17437b,index:_0x14dbc9}=_0x348594[_0x24e21e(0x1c3)],_0x758835=this[_0x24e21e(0x308)](_0xae226b);if(!_0x758835)return;let _0x560ccc={'base':_0x758835,'table':_0x17437b,'index':_0x14dbc9};if(this[_0x24e21e(0x19b)](this['Event'][_0x24e21e(0x171)],_0x560ccc),_0x560ccc[_0x24e21e(0x271)])throw new _0x758172['CanceledError']();}))),this[_0x2fb70c(0x188)](this[_0x2fb70c(0x1b2)](this[_0x2fb70c(0x1eb)][_0x2fb70c(0x261)],()=>this[_0x2fb70c(0x1d4)][_0x2fb70c(0x18f)](_0x7369b5=>{const _0x40d52f=_0x2fb70c;if(_0x7369b5['id']!==_0x48619f[_0x40d52f(0x183)]['id'])return;let {unitId:_0x3e730b,tableId:_0x32fd12,field:_0x16ff2e,index:_0x5d2192,viewIndexes:_0x3b8d21}=_0x7369b5[_0x40d52f(0x1c3)],_0x14370e=this[_0x40d52f(0x308)](_0x3e730b);if(!_0x14370e)return;let _0x40a543=_0x14370e[_0x40d52f(0x1cb)](_0x32fd12);if(!_0x40a543)return;let _0x5f05e6={'base':_0x14370e,'table':_0x40a543,'field':_0x16ff2e,'index':_0x5d2192,'viewIndexes':_0x3b8d21};if(this[_0x40d52f(0x19b)](this[_0x40d52f(0x1eb)][_0x40d52f(0x261)],_0x5f05e6),_0x5f05e6[_0x40d52f(0x271)])throw new _0x758172[(_0x40d52f(0x18b))]();}))),this[_0x2fb70c(0x188)](this[_0x2fb70c(0x1b2)](this['Event'][_0x2fb70c(0x297)],()=>this[_0x2fb70c(0x1d4)]['beforeCommandExecuted'](_0xa08e4d=>{const _0x2c1d73=_0x2fb70c;if(_0xa08e4d['id']!==_0x48619f[_0x2c1d73(0x267)]['id']&&_0xa08e4d['id']!==_0x48619f[_0x2c1d73(0x1ac)]['id'])return;let _0xdd212a=_0xa08e4d[_0x2c1d73(0x1c3)],{unitId:_0x206b80,tableId:_0x4e865b}=_0xdd212a,_0x3723bb=_0xdd212a[_0x2c1d73(0x2f3)]??[_0xdd212a[_0x2c1d73(0x23a)]],_0x41c1b0=this['getBase'](_0x206b80);if(!_0x41c1b0)return;let _0x8fad52=_0x41c1b0['getTableById'](_0x4e865b);if(!_0x8fad52)return;let _0xfc88a6={'base':_0x41c1b0,'table':_0x8fad52,'records':_0x3723bb};if(this[_0x2c1d73(0x19b)](this[_0x2c1d73(0x1eb)][_0x2c1d73(0x297)],_0xfc88a6),_0xfc88a6['cancel'])throw new _0x758172['CanceledError']();}))),this[_0x2fb70c(0x188)](this[_0x2fb70c(0x1b2)](this[_0x2fb70c(0x1eb)][_0x2fb70c(0x2f8)],()=>this[_0x2fb70c(0x1d4)][_0x2fb70c(0x18f)](_0x1931d7=>{const _0x3bf0fa=_0x2fb70c;if(_0x1931d7['id']!==_0x48619f[_0x3bf0fa(0x28b)]['id'])return;let {unitId:_0x29ac9b,tableId:_0x1f06fb,view:_0x4cde16,index:_0x25a2f2}=_0x1931d7[_0x3bf0fa(0x1c3)],_0x4b33a0=this[_0x3bf0fa(0x308)](_0x29ac9b);if(!_0x4b33a0)return;let _0x3fdcf7=_0x4b33a0[_0x3bf0fa(0x1cb)](_0x1f06fb);if(!_0x3fdcf7)return;let _0x364f87={'base':_0x4b33a0,'table':_0x3fdcf7,'view':_0x4cde16,'index':_0x25a2f2};if(this[_0x3bf0fa(0x19b)](this['Event']['BeforeBaseTableViewCreate'],_0x364f87),_0x364f87[_0x3bf0fa(0x271)])throw new _0x758172[(_0x3bf0fa(0x18b))]();}))),this[_0x2fb70c(0x188)](this[_0x2fb70c(0x1b2)](this['Event'][_0x2fb70c(0x253)],()=>this[_0x2fb70c(0x1d4)][_0x2fb70c(0x18f)](_0x12ae84=>{const _0x595247=_0x2fb70c;if(_0x12ae84['id']!==_0x48619f[_0x595247(0x2b7)]['id'])return;let {unitId:_0x50750c,tableId:_0x5d251f,recordId:_0x812d5c,fieldId:_0x5d22f3,value:_0x2311de}=_0x12ae84[_0x595247(0x1c3)],_0xc672a3=this['getBase'](_0x50750c);if(!_0xc672a3)return;let _0x3ecb43=_0xc672a3[_0x595247(0x1cb)](_0x5d251f);if(!_0x3ecb43)return;let _0x58db64=_0x3ecb43[_0x595247(0x231)](_0x5d22f3);if(!_0x58db64)return;let _0x7a6334=_0x3ecb43[_0x595247(0x23d)](_0x812d5c);if(!_0x7a6334)return;let _0x5383c9={'base':_0xc672a3,'table':_0x3ecb43,'field':_0x58db64,'record':_0x7a6334,'value':_0x2311de};if(this[_0x595247(0x19b)](this[_0x595247(0x1eb)][_0x595247(0x253)],_0x5383c9),_0x5383c9[_0x595247(0x271)])throw new _0x758172[(_0x595247(0x18b))]();})));}[_0x360f56(0x2ea)](_0x28c72e,_0x35471a){const _0x3e8cbb=_0x360f56;let _0x2fd9ce=this['getBase'](_0x28c72e),_0x353a32=_0x2fd9ce==null?void 0x0:_0x2fd9ce[_0x3e8cbb(0x1cb)](_0x35471a);return _0x2fd9ce&&_0x353a32?{'base':_0x2fd9ce,'table':_0x353a32}:null;}[_0x360f56(0x230)](_0x22530a,_0x36a481,_0x8a5a88,_0x3a564d){const _0x45888a=_0x360f56;if(!_0x8a5a88[_0x45888a(0x270)])return;let _0x2b339f={'base':_0x22530a,'table':_0x36a481,'changes':_0x8a5a88,'source':_0x3a564d};if(this['fireEvent'](this[_0x45888a(0x1eb)][_0x45888a(0x24c)],_0x2b339f),_0x2b339f['cancel'])throw new _0x758172[(_0x45888a(0x18b))]();}};function _0x1ef85d(_0x39145b,_0x324535){return _0x39145b['id']===_0x324535['id']&&_0x39145b['params']!==void 0x0;}_0x53678c[_0x360f56(0x2ec)][_0x360f56(0x16d)](_0x486d0e);var _0x3d7492=class extends _0x53678c[_0x360f56(0x15b)]{get['BaseFieldType'](){const _0x30a9e1=_0x360f56;return _0x758172[_0x30a9e1(0x2bf)];}get[_0x360f56(0x1e9)](){const _0xaec9d0=_0x360f56;return _0x758172[_0xaec9d0(0x1e9)];}get[_0x360f56(0x1bf)](){const _0x3bbad9=_0x360f56;return _0x758172[_0x3bbad9(0x1bf)];}get[_0x360f56(0x162)](){return _0x1d13e3;}get[_0x360f56(0x312)](){const _0xc46cc9=_0x360f56;return _0x758172[_0xc46cc9(0x312)];}get[_0x360f56(0x173)](){return _0x758172['BaseConditionalColorTarget'];}get['BaseConditionalColorOperator'](){return _0x758172['BaseConditionalColorOperator'];}get['BaseConditionalDateMode'](){const _0x41bed9=_0x360f56;return _0x758172[_0x41bed9(0x177)];}get[_0x360f56(0x205)](){const _0x40b6b9=_0x360f56;return _0x758172[_0x40b6b9(0x205)];}get[_0x360f56(0x264)](){return _0x48619f['BaseEventSource'];}get['BaseHierarchyErrorCode'](){const _0x5a4603=_0x360f56;return _0x48619f[_0x5a4603(0x24a)];}get['BaseHierarchyInvalidReason'](){const _0x5d2193=_0x360f56;return _0x758172[_0x5d2193(0x1cc)];}get[_0x360f56(0x203)](){const _0x6911de=_0x360f56;return _0x758172[_0x6911de(0x203)];}};_0x53678c[_0x360f56(0x15b)]['extend'](_0x3d7492);var _0x5712e1=class extends _0x53678c[_0x360f56(0x254)]{get[_0x360f56(0x29c)](){const _0xfe11b3=_0x360f56;return _0xfe11b3(0x29c);}get[_0x360f56(0x171)](){const _0x59c36f=_0x360f56;return _0x59c36f(0x171);}get[_0x360f56(0x1fa)](){const _0x2a0512=_0x360f56;return _0x2a0512(0x1fa);}get[_0x360f56(0x261)](){const _0x5a255b=_0x360f56;return _0x5a255b(0x261);}get[_0x360f56(0x2c3)](){return'BaseTableRecordCreated';}get[_0x360f56(0x297)](){return'BeforeBaseTableRecordCreate';}get['BaseTableViewCreated'](){const _0x4cdcf8=_0x360f56;return _0x4cdcf8(0x19c);}get[_0x360f56(0x2f8)](){return'BeforeBaseTableViewCreate';}get[_0x360f56(0x1aa)](){const _0x148fbf=_0x360f56;return _0x148fbf(0x1aa);}get[_0x360f56(0x253)](){return'BeforeBaseTableCellValueChange';}get[_0x360f56(0x1c5)](){const _0x1ffeb0=_0x360f56;return _0x1ffeb0(0x1c5);}get[_0x360f56(0x24c)](){const _0x26a95d=_0x360f56;return _0x26a95d(0x24c);}};_0x53678c['FEventName'][_0x360f56(0x16d)](_0x5712e1),_0x39aa09[_0x360f56(0x162)]=_0x1d13e3,Object[_0x360f56(0x28c)](_0x39aa09,'FBase',{'enumerable':!0x0,'get':function(){return _0x516e3f;}}),_0x39aa09[_0x360f56(0x2cd)]=_0x543a91,_0x39aa09[_0x360f56(0x1dc)]=_0x1339aa,Object[_0x360f56(0x28c)](_0x39aa09,'FBaseTable',{'enumerable':!0x0,'get':function(){return _0x2fdc6b;}}),Object[_0x360f56(0x28c)](_0x39aa09,_0x360f56(0x2ab),{'enumerable':!0x0,'get':function(){return _0xe9c966;}}),Object[_0x360f56(0x28c)](_0x39aa09,_0x360f56(0x269),{'enumerable':!0x0,'get':function(){return _0x146f1c;}}),Object[_0x360f56(0x28c)](_0x39aa09,_0x360f56(0x274),{'enumerable':!0x0,'get':function(){return _0x56af14;}}),Object['defineProperty'](_0x39aa09,_0x360f56(0x164),{'enumerable':!0x0,'get':function(){return _0x5d3c12;}}),_0x39aa09['FBasesEventNameMixin']=_0x5712e1,_0x39aa09['resolveBaseFieldKey']=_0x3dd948,_0x39aa09[_0x360f56(0x1bc)]=_0x4e634a;}));function _0x7407(){const _0x80ca25=['getParent','BaseFieldKeyEnum','executeCommand','FBaseTableView',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','validateBaseTableName','setAttachments','fieldIds','Inject','views','Gallery','DeleteBaseRecordCommand','extend','@univerjs/core','number','[FView]:\x20view\x20\x22','BeforeBaseTableCreate','validateRecordLinkValue','BaseConditionalColorTarget','296880wopmpF','_viewId','MoveBaseFieldCommand','BaseConditionalDateMode','87231wiLNOX','addConditionalColorRule','Failed\x20to\x20create\x20view\x20\x22','getField','move','width','resolveBaseHierarchyFieldId','getConfig','isReadonly','custom','UniverCoreFacade','CreateBaseFieldCommand','matchesBaseCondition','config','getId','view','disposeWithMe','getTableByName','getBaseId','CanceledError','\x22:\x20expected\x20an\x20array.','__esModule','Base\x20field\x20not\x20found:\x20','beforeCommandExecuted','conditionalColoring','_getRecordLinkField','description',',\x20range:\x20','AND','\x22\x20must\x20be\x20a\x20non-empty\x20string.','_resourceLoaderService','beforeFieldId','getConditionalColorRules','system','endRow','fireEvent','BaseTableViewCreated','[FBase]:\x20invalid\x20table\x20name\x20\x22','getSchema','getLinkedRecordIds','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.',',\x20max\x20columns:\x20','getTable','tableId','parseRecordLinkIds','find','isFinite','_inject','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','SetBasePermissionsCommand','BaseTableCellValueChanged','ImageSourceType','BatchCreateBaseRecordsCommand','_fieldId','includes','addRecords','isArray','_unitId','registerEventHandler','caseSensitive','\x22.\x20','getType','get','Invalid\x20attachment\x20at\x20index\x20','deleteRecords','unitId','createDefaultBaseTableSnapshot','_getAttachmentField','resolveBaseFieldValues','UpdateBaseRecordOrderCommand','_prepareFormulaFieldReferences','BaseFilterOperator','stringify','FBaseInitialable','BASE_TABLE_NAME_REQUIREMENTS','params','[FField]:\x20field\x20\x22','BaseHierarchyChanged','entries','getBasePermissionValue','UniverProBasesFacade','decorate','viewOrder','getTableById','BaseHierarchyInvalidReason','prototype','IPermissionService','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','fromCollab','slice','function','getAttachments','_commandService','delete','getBaseHierarchyDeletePromotions','\x20for\x20field\x20\x22','some','iterator','getNumRows','Failed\x20to\x20delete\x20table\x20\x22','FBasePermission','getGroup','getProjection','fieldSettings','_initBaseBeforeEvents','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','ICommandService','BASE_RECORD_ID_FIELD_ID','[FRecord]:\x20record\x20\x22','BASE64','getView','type','UNIVER_BASE','BaseFilterConjunction','onCommandExecuted','Event','auto','values','getTables','conditions','Tools','Edit','formula','getFormulaName','childrenByParentId','\x20exceeds\x20range\x20size\x20','2986819XHnphu','DeleteBaseViewCommand','setValue','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','BaseTableFieldCreated','Grid','getValue','getValues','constructor','getFieldByName','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs-pro/bases','IBaseProjectionService','BaseRecordLinkRole','CreateBaseChildRecordCommand','BaseSortDirection','_recordId','syncExecuteCommand','defaultValue','Attachment','validateBaseHierarchyRecordCreations',':\x20expected\x20an\x20object.','setFilter','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','every','bind','getDescription','removeLinkedRecord','\x20in\x20field\x20\x22','DeleteBaseFieldCommand','primaryFieldName','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','getFilter','getRange','getSnapshot','UniverProEngineFormula','SetBaseViewFieldOrderCommand','fieldOrder','setLinkedRecordIds','Failed\x20to\x20duplicate\x20table\x20\x22','valid','validateBaseHierarchyRecordPatches','setPoint','deepClone','getFieldSettings','getRecord','hierarchyChanges','[FRecord]:\x20attachment\x20at\x20index\x20','30qvCVOA','UniverProBases','CreateBaseTableCommand','warn','_table','sort','Remote','setValues','UnitAction','\x22\x20is\x20invalid.','_fireBeforeHierarchyChange','getFieldById','boolean','ensureBaseTableCellLayout','getPermission','hasOwnProperty','RecordLink','trim','tables','_collectDescendantIds','record','Injector','[FTable]:\x20table\x20\x22','getRecordById','Name','setFieldWidth','canEdit','setDefaultValue','@univerjs/protocol','now','_getRecord','duplicate','readonly','toPrimitive','recordId','Duplicate\x20Base\x20field\x20name:\x20','BaseHierarchyErrorCode','_base','BeforeBaseHierarchyChange','height','UniverInstanceType','getDescendants','Kanban','Gantt','forEach','BeforeBaseTableCellValueChange','FEventName',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','searchBaseTable','getRow','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','4429540NCsrSg','getViewByName','[FRecord]:\x20RecordLink\x20field\x20\x22','max','fields','recordIds','BaseConditionalColorRuleUpdateType','createView','BeforeBaseTableFieldCreate','getFields','DeleteBaseTableCommand','BaseEventSource','UniverProtocol','createdAt','CreateBaseRecordCommand','getBaseFacade','FBaseTableRange','localeCompare','deleteConditionalColorRule','getViewById','_getField','recordOrder','symbol','length','cancel','regenerateViewIds','fieldKey','FBaseTableRecord','updatedAt','size','indexOf','call','reason','\x22\x20is\x20not\x20an\x20Attachment\x20field.','_resolveRecordIds','SetBaseRangeValuesCommand','index','34bEMylY','_initialize','1138945RUGqZA','[FRecord]:\x20field\x20\x22','_getHierarchyIndex','_assertInBounds','getOwnPropertyNames','Failed\x20to\x20create\x20table\x20\x22','orderKey','primaryFieldId','value','getNumColumns','879196EEimIG','CreateBaseViewCommand','defineProperty','SetBaseViewSortCommand','getPrototypeOf','getBaseTablePermissionObjectId','filter','getBaseFormulaTableName','offset','setSort','startRow','SetBaseRecordValuesCommand','_getFieldIds','BeforeBaseTableRecordCreate','DESC','_range','serializeRecordLinkIds','\x20Copy','BaseTableCreated','createUniqueBaseTableName','getChildren','copyBaseTableSnapshot','MoveBaseHierarchyRecordCommand','createUnit','getDataRange','getVisibleFields','_injector','setName','string','buildBaseHierarchyIndex','SetBaseViewFilterCommand','name','SetBaseViewGroupCommand','FBaseTableField','base','afterFieldId','deleteTable','setHierarchyField','Add','changeType','getSort','update','DuplicateBaseRecordCommand','addChild','table','UpdateBaseCellCommand','[FRecord]:\x20invalid\x20RecordLink\x20value.','SetBaseViewFieldWidthCommand','parentRecordId','@univerjs/core/facade','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','UpdateBaseViewConfigCommand','saveUnit','BaseFieldType','getAllUnitsForType','getUnitId','clear','BaseTableRecordCreated','_baseTableId','parentByRecordId','message','generateRandomId','map','_projectionService','default','externalReferences','_univerInstanceService','FBaseObjectPermission','targetTableId','IResourceLoaderService','endColumn','getDefaultValue','setReadOnly','fieldId','matches','BatchDeleteBaseRecordsCommand','flatMap','getBases','multiple','fromEntries',':\x20\x22','Set','getRecords','setEditable','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','exports','push','getName','setGroup','_getView','_baseUnitId','rowId','mimeType','createInstance','UpdateBaseViewConditionalColorRulesCommand','[FBaseRange]:\x20table\x20does\x20not\x20exist.','_getHierarchyEventContext','operator','FUniver','UniverCore','toStringTag','36lcbCYB','Facade','_writeFormulaExternalReferences','[FBaseRange]:\x20values\x20size\x20','records','field','thumbnail','subtreeHeightByRecordId','hidden','BeforeBaseTableViewCreate','getBaseViewPermissionObjectId','data:','setParent','Formula','_getTable','_tableId','8824oRWYox','startColumn','_objectId','test','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','Date','UpsertHostExternalReferencesCommand','limit','getBase','setConfig','Unsupported\x20Base\x20field\x20type\x20\x22','has','addRecord','4242nHqXTJ','SetBaseTableHierarchyFieldCommand','\x22\x20does\x20not\x20exist.','startsWith','object','BaseViewType','commonExtend','[FBase]:\x20table\x20\x22','RenameBaseTableCommand','SetBasePermissionCommand','_initBaseAfterEvents','_permissionService','source','FEnum','tableOrder','canEditBaseTargets','from','orderedRecordIds','rows'];_0x7407=function(){return _0x80ca25;};return _0x7407();}