@univerjs-pro/bases 1.0.0-rc.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +9 -9
@@ -1 +1 @@
1
- const _0x27938b=_0x16e3;(function(_0x4d7e1d,_0xc4b02b){const _0x435c72=_0x16e3,_0x3f2cb2=_0x4d7e1d();while(!![]){try{const _0x56e710=-parseInt(_0x435c72(0x184))/0x1+-parseInt(_0x435c72(0x182))/0x2*(-parseInt(_0x435c72(0x187))/0x3)+parseInt(_0x435c72(0x193))/0x4*(-parseInt(_0x435c72(0x19b))/0x5)+parseInt(_0x435c72(0x18d))/0x6*(-parseInt(_0x435c72(0x199))/0x7)+-parseInt(_0x435c72(0x188))/0x8*(-parseInt(_0x435c72(0x194))/0x9)+parseInt(_0x435c72(0x189))/0xa+parseInt(_0x435c72(0x198))/0xb;if(_0x56e710===_0xc4b02b)break;else _0x3f2cb2['push'](_0x3f2cb2['shift']());}catch(_0x49fffc){_0x3f2cb2['push'](_0x3f2cb2['shift']());}}}(_0x491c,0xda6a3));function _0x16e3(_0xbd9e47,_0x55e733){_0xbd9e47=_0xbd9e47-0x182;const _0x491c6c=_0x491c();let _0x16e35c=_0x491c6c[_0xbd9e47];return _0x16e35c;}function _0x491c(){const _0xb2350e=['欄位類型無效','行事曆需要日期欄位','行事曆','電話號碼','643052aTUKHj','54qJWjsu','建立人','刪除記錄','欄位標題不能為空','7321644sZcgxi','5286799MqnDMn','建立記錄','5NuMonD','儲存格值無效','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','exports','看板需要可分組欄位','49058AXSmwe','甘特圖','948998MhnMHe','建立時間','電子郵件','51cYVbRg','1220824NfZEVa','15166870qaAfDi','記錄\x20ID','更新人','輸入內容','12DNARyY','刪除欄位'];_0x491c=function(){return _0xb2350e;};return _0x491c();}const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':'核取方塊','link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x27938b(0x192),'email':_0x27938b(0x186),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':'關聯記錄','recordId':_0x27938b(0x18a),'createdBy':_0x27938b(0x195),'updatedBy':_0x27938b(0x18b),'createdAt':_0x27938b(0x185),'updatedAt':'更新時間','summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x27938b(0x18c),'linkPlaceholder':_0x27938b(0x19d)},'viewType':{'grid':'表格','kanban':'看板','calendar':_0x27938b(0x191),'gantt':_0x27938b(0x183),'gallery':'圖庫'},'error':{'fieldNameRequired':_0x27938b(0x197),'invalidFieldType':_0x27938b(0x18f),'invalidCellValue':_0x27938b(0x19c),'invalidKanbanGroupField':_0x27938b(0x19f),'invalidCalendarDateField':_0x27938b(0x190),'invalidGanttDateField':'甘特圖檢視需要開始和結束日期欄位'},'command':{'updateCell':'更新儲存格','createField':'建立欄位','deleteField':_0x27938b(0x18e),'createRecord':_0x27938b(0x19a),'deleteRecord':_0x27938b(0x196),'updateViewConfig':'更新檢視設定'}}};module[_0x27938b(0x19e)]=e;
1
+ const _0x4cb596=_0x1163;(function(_0x6a792c,_0x564045){const _0x258d98=_0x1163,_0x3a4f06=_0x6a792c();while(!![]){try{const _0xacb34=-parseInt(_0x258d98(0x16f))/0x1*(-parseInt(_0x258d98(0x16b))/0x2)+-parseInt(_0x258d98(0x176))/0x3+-parseInt(_0x258d98(0x16e))/0x4*(parseInt(_0x258d98(0x17d))/0x5)+parseInt(_0x258d98(0x177))/0x6+-parseInt(_0x258d98(0x17f))/0x7*(-parseInt(_0x258d98(0x179))/0x8)+-parseInt(_0x258d98(0x180))/0x9*(-parseInt(_0x258d98(0x17c))/0xa)+-parseInt(_0x258d98(0x17b))/0xb*(parseInt(_0x258d98(0x169))/0xc);if(_0xacb34===_0x564045)break;else _0x3a4f06['push'](_0x3a4f06['shift']());}catch(_0x2e19da){_0x3a4f06['push'](_0x3a4f06['shift']());}}}(_0x1979,0x69171));function _0x1163(_0x4f0b64,_0x2bb41d){_0x4f0b64=_0x4f0b64-0x164;const _0x1979fc=_0x1979();let _0x11636f=_0x1979fc[_0x4f0b64];return _0x11636f;}const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x4cb596(0x170),'link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x4cb596(0x175),'email':'電子郵件','location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':'關聯記錄','recordId':_0x4cb596(0x173),'createdBy':_0x4cb596(0x183),'updatedBy':_0x4cb596(0x181),'createdAt':_0x4cb596(0x182),'updatedAt':_0x4cb596(0x168),'summary':'彙總'},'fieldConfig':{'textPlaceholder':'輸入內容','linkPlaceholder':'輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。'},'viewType':{'grid':'表格','kanban':'看板','calendar':_0x4cb596(0x164),'gantt':'甘特圖','gallery':'圖庫'},'error':{'fieldNameRequired':_0x4cb596(0x171),'invalidFieldType':_0x4cb596(0x165),'invalidCellValue':'儲存格值無效','invalidKanbanGroupField':_0x4cb596(0x16a),'invalidCalendarDateField':_0x4cb596(0x16d),'invalidGanttDateField':_0x4cb596(0x16c)},'command':{'updateCell':_0x4cb596(0x166),'createField':_0x4cb596(0x174),'deleteField':_0x4cb596(0x17e),'createRecord':_0x4cb596(0x17a),'deleteRecord':_0x4cb596(0x178),'updateViewConfig':_0x4cb596(0x167)}}};function _0x1979(){const _0x4bc25d=['欄位類型無效','更新儲存格','更新檢視設定','更新時間','828CyvqOK','看板需要可分組欄位','4HrDzWy','甘特圖檢視需要開始和結束日期欄位','行事曆需要日期欄位','40WKDfQW','79379LkUnjG','核取方塊','欄位標題不能為空','exports','記錄\x20ID','建立欄位','電話號碼','99567ADnbwz','3951174UTeGPf','刪除記錄','8TOBmnK','建立記錄','121286RiOiwb','166030LyRoTK','266540SZWARM','刪除欄位','2165177rsHzki','342YgRCWG','更新人','建立時間','建立人','行事曆'];_0x1979=function(){return _0x4bc25d;};return _0x1979();}module[_0x4cb596(0x172)]=e;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x255b9c=_0x384c;(function(_0x24d788,_0x227042){const _0x57de52=_0x384c,_0xd4304=_0x24d788();while(!![]){try{const _0x2fbefc=parseInt(_0x57de52(0x210))/0x1+parseInt(_0x57de52(0x1e5))/0x2*(parseInt(_0x57de52(0x1b2))/0x3)+-parseInt(_0x57de52(0x1d3))/0x4*(-parseInt(_0x57de52(0x1de))/0x5)+parseInt(_0x57de52(0x205))/0x6*(-parseInt(_0x57de52(0x174))/0x7)+-parseInt(_0x57de52(0x1d9))/0x8*(-parseInt(_0x57de52(0x231))/0x9)+-parseInt(_0x57de52(0x1df))/0xa*(-parseInt(_0x57de52(0x290))/0xb)+parseInt(_0x57de52(0x183))/0xc*(-parseInt(_0x57de52(0x296))/0xd);if(_0x2fbefc===_0x227042)break;else _0xd4304['push'](_0xd4304['shift']());}catch(_0x38cecc){_0xd4304['push'](_0xd4304['shift']());}}}(_0xee45,0xcebfe));import{ApplyBaseJson1Mutation as _0x86ab8d,BASE_TABLE_NAME_REQUIREMENTS as _0x164704,BaseConditionalColorRuleUpdateType as _0x57952c,BaseEventSource as _0x26a1b1,BaseHierarchyErrorCode as _0x37304e,BatchCreateBaseRecordsCommand as _0x26ecd4,BatchDeleteBaseRecordsCommand as _0x5d33b2,ChangeBaseFieldTypeCommand as _0x34d48d,CreateBaseChildRecordCommand as _0x1c1a12,CreateBaseFieldCommand as _0x212bc2,CreateBaseRecordCommand as _0x3c1568,CreateBaseTableCommand as _0x3f138a,CreateBaseViewCommand as _0x5defbd,DeleteBaseFieldCommand as _0x1c7e2e,DeleteBaseRecordCommand as _0x228881,DeleteBaseTableCommand as _0x101f60,DeleteBaseViewCommand as _0xffc95,DuplicateBaseRecordCommand as _0x4bb998,IBaseProjectionService as _0x5dc870,MoveBaseFieldCommand as _0x53f67f,MoveBaseHierarchyRecordCommand as _0xe38a8d,MoveBaseViewCommand as _0x1ccae0,RenameBaseTableCommand as _0x2b2433,RenameBaseViewCommand as _0xfc555,SetBaseNameCommand as _0x2ece12,SetBasePermissionCommand as _0x46f872,SetBasePermissionsCommand as _0x59adc8,SetBaseRangeValuesCommand as _0x5c54c3,SetBaseRecordValuesCommand as _0x37fd97,SetBaseTableHierarchyFieldCommand as _0x30b9b4,SetBaseViewFieldOrderCommand as _0xf5cb3a,SetBaseViewFieldVisibleCommand as _0x3694b6,SetBaseViewFieldWidthCommand as _0x5b7d3b,SetBaseViewFilterCommand as _0x1d75bf,SetBaseViewGroupCommand as _0xf7e0a2,SetBaseViewSortCommand as _0x168547,UpdateBaseCellCommand as _0x1a4fa7,UpdateBaseFieldCommand as _0x2843a7,UpdateBaseRecordOrderCommand as _0x534997,UpdateBaseViewConditionalColorRulesCommand as _0x362371,UpdateBaseViewConfigCommand as _0x570962,ValidateBaseFormulaCommand as _0x19f367,buildBaseHierarchyIndex as _0x5b28b2,canEditBaseTargets as _0x735ac1,copyBaseTableSnapshot as _0x5f5da3,createUniqueBaseTableName as _0x5365a5,ensureBaseTableCellLayout as _0x52efd3,getActiveBaseHierarchyFieldIds as _0x3e3c9d,getBaseCellValue as _0x532795,getBaseFieldPermissionObjectId as _0x49a363,getBaseFormulaTableName as _0x11b5f5,getBaseHierarchyDeletePromotions as _0x3da22b,getBasePermissionValue as _0x5be4a4,getBaseRecordPermissionObjectId as _0x568f09,getBaseTablePermissionObjectId as _0x4150ce,getBaseViewPermissionObjectId as _0x3fcf5b,getRecordLinkFieldConfig as _0x49477e,matchesBaseCondition as _0x2a0730,parseRecordLinkIds as _0x18c9cf,resolveBaseHierarchyFieldId as _0x5443ab,resolveBaseRangeHierarchyPatches as _0x49c0c5,searchBaseTable as _0x2fa43c,serializeRecordLinkIds as _0x5926c7,validateBaseHierarchyRecordCreations as _0x11e3d0,validateBaseHierarchyRecordPatches as _0x689faf,validateBaseTableName as _0x37a53e,validateRecordLinkValue as _0x4c5cb3}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x340451,BaseConditionalColorOperator as _0x5488f0,BaseConditionalColorTarget as _0x6efe87,BaseConditionalDateMode as _0x1cd109,BaseFieldType as _0x5a9f84,BaseFilterConjunction as _0x18bd2e,BaseFilterOperator as _0x500e5d,BaseHierarchyInvalidReason as _0x404163,BaseRecordLinkRole as _0x374dc7,BaseSortDirection as _0x4805ed,BaseViewType as _0x51da59,CanceledError as _0xb5ea74,ICommandService as _0x48b079,IPermissionService as _0x598bd4,IResourceLoaderService as _0xa2062d,ImageSourceType as _0x3a9442,Inject as _0x58f356,Injector as _0xe1256a,Tools as _0x111647,UniverInstanceType as _0x5da463,createDefaultBaseTableSnapshot as _0x2efaf6,generateRandomId as _0x3c434b}from'@univerjs/core';import*as _0x49a774 from'@univerjs/core/facade';import{FBaseInitialable as _0x477435,FEnum as _0x4ea1b3,FEventName as _0x2eb763,FUniver as _0x522601}from'@univerjs/core/facade';import{UnitAction as _0x599ce4}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x4384ca}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x1454ac,_0x1fbfde,_0x11c39e){const _0x3ff597=_0x384c;this['_unitId']=_0x1454ac,this[_0x3ff597(0x173)]=_0x1fbfde,this[_0x3ff597(0x16d)]=_0x11c39e;}async[_0x255b9c(0x245)](_0x165f41){const _0x1e1197=_0x255b9c;return this[_0x1e1197(0x173)]['executeCommand'](_0x59adc8['id'],{'unitId':this[_0x1e1197(0x1e1)],'changes':_0x165f41});}async['setPoint'](_0x1be743,_0x158e1f){const _0x4d6e17=_0x255b9c;await this[_0x4d6e17(0x173)][_0x4d6e17(0x1fd)](_0x46f872['id'],{'unitId':this[_0x4d6e17(0x1e1)],'objectId':this[_0x4d6e17(0x1e1)],'action':_0x1be743,'value':_0x158e1f});}['getPoint'](_0x50659a){const _0x4d23e2=_0x255b9c;return _0x5be4a4(this[_0x4d23e2(0x16d)],this['_unitId'],this[_0x4d23e2(0x1e1)],_0x50659a);}async[_0x255b9c(0x236)](_0x52fd87=!0x0){const _0x640b6b=_0x255b9c;await this['_commandService']['executeCommand'](_0x46f872['id'],{'unitId':this[_0x640b6b(0x1e1)],'objectId':this['_unitId'],'action':_0x599ce4[_0x640b6b(0x14a)],'value':_0x52fd87});}async['setReadOnly'](){const _0x1add19=_0x255b9c;await this[_0x1add19(0x173)]['executeCommand'](_0x46f872['id'],{'unitId':this[_0x1add19(0x1e1)],'objectId':this[_0x1add19(0x1e1)],'action':_0x599ce4['Edit'],'value':!0x1});}['canEdit'](){const _0xe21a96=_0x255b9c;return _0x5be4a4(this[_0xe21a96(0x16d)],this[_0xe21a96(0x1e1)],this[_0xe21a96(0x1e1)],_0x599ce4[_0xe21a96(0x14a)]);}},L=class{constructor(_0x46ba87,_0x14055b,_0x362594,_0x398c1f,_0x554abd){const _0x4b2e62=_0x255b9c;this['_unitId']=_0x46ba87,this[_0x4b2e62(0x240)]=_0x14055b,this[_0x4b2e62(0x259)]=_0x362594,this[_0x4b2e62(0x173)]=_0x398c1f,this[_0x4b2e62(0x16d)]=_0x554abd;}async[_0x255b9c(0x236)](_0x5c51c3=!0x0){const _0x136940=_0x255b9c;await this[_0x136940(0x173)][_0x136940(0x1fd)](_0x46f872['id'],{'unitId':this['_unitId'],'objectId':this[_0x136940(0x240)],'action':_0x599ce4[_0x136940(0x14a)],'value':_0x5c51c3});}async[_0x255b9c(0x1f7)](){const _0x4a15ef=_0x255b9c;await this[_0x4a15ef(0x173)][_0x4a15ef(0x1fd)](_0x46f872['id'],{'unitId':this[_0x4a15ef(0x1e1)],'objectId':this[_0x4a15ef(0x240)],'action':_0x599ce4['Edit'],'value':!0x1});}[_0x255b9c(0x212)](){const _0x22a3ef=_0x255b9c;return _0x735ac1(this[_0x22a3ef(0x16d)],this['_unitId'],[...this[_0x22a3ef(0x259)],this['_objectId']]);}};function R(_0x3f541e,_0x1a7f3e){return function(_0x4ae01c,_0x20f283){_0x1a7f3e(_0x4ae01c,_0x20f283,_0x3f541e);};}function z(_0x5be295,_0x595314,_0x4d3790,_0x6e258c){const _0x1db8c4=_0x255b9c;var _0x2869c4=arguments[_0x1db8c4(0x244)],_0x998039=_0x2869c4<0x3?_0x595314:_0x6e258c===null?_0x6e258c=Object['getOwnPropertyDescriptor'](_0x595314,_0x4d3790):_0x6e258c,_0x483719;if(typeof Reflect==_0x1db8c4(0x193)&&typeof Reflect['decorate']=='function')_0x998039=Reflect[_0x1db8c4(0x24d)](_0x5be295,_0x595314,_0x4d3790,_0x6e258c);else{for(var _0x130185=_0x5be295[_0x1db8c4(0x244)]-0x1;_0x130185>=0x0;_0x130185--)(_0x483719=_0x5be295[_0x130185])&&(_0x998039=(_0x2869c4<0x3?_0x483719(_0x998039):_0x2869c4>0x3?_0x483719(_0x595314,_0x4d3790,_0x998039):_0x483719(_0x595314,_0x4d3790))||_0x998039);}return _0x2869c4>0x3&&_0x998039&&Object[_0x1db8c4(0x1f9)](_0x595314,_0x4d3790,_0x998039),_0x998039;}let B=class{constructor(_0x55d1b8,_0x2a1f35,_0x304003,_0x159259,_0x2a6e3a){const _0xfd648a=_0x255b9c;this[_0xfd648a(0x21c)]=_0x55d1b8,this[_0xfd648a(0x269)]=_0x2a1f35,this[_0xfd648a(0x274)]=_0x304003,this[_0xfd648a(0x173)]=_0x159259,this['_permissionService']=_0x2a6e3a;}[_0x255b9c(0x1d5)](){const _0x475aac=_0x255b9c;return this[_0x475aac(0x274)];}[_0x255b9c(0x14b)](){const _0xc4fcb4=_0x255b9c;let _0x225268=this[_0xc4fcb4(0x269)][_0xc4fcb4(0x1d5)]();return new L(this['_base']['getId'](),_0x49a363(_0x225268,this[_0xc4fcb4(0x274)]),[_0x4150ce(_0x225268)],this['_commandService'],this[_0xc4fcb4(0x16d)]);}[_0x255b9c(0x254)](){return this['_getField']();}[_0x255b9c(0x255)](){const _0x398176=_0x255b9c;return this[_0x398176(0x155)]()[_0x398176(0x167)];}[_0x255b9c(0x27a)](){const _0xe3d76a=_0x255b9c;return this[_0xe3d76a(0x155)]()[_0xe3d76a(0x1b1)];}['getConfig'](){return this['_getField']()['config'];}[_0x255b9c(0x266)](){const _0x3d1214=_0x255b9c;return this[_0x3d1214(0x155)]()[_0x3d1214(0x172)];}[_0x255b9c(0x18d)](){const _0x56e5b7=_0x255b9c;return this['_getField']()[_0x56e5b7(0x181)];}[_0x255b9c(0x22b)](){const _0x135db9=_0x255b9c;return!!this[_0x135db9(0x155)]()['readonly'];}[_0x255b9c(0x243)](_0xc0058f){const _0x41de16=_0x255b9c;return this[_0x41de16(0x28d)]({'name':_0xc0058f});}[_0x255b9c(0x20d)](_0x249ed1,_0x151227){const _0x52a8f8=_0x255b9c;return this[_0x52a8f8(0x28d)]({'config':_0x249ed1},_0x151227);}['setDefaultValue'](_0x24dfb5){const _0x1c0f45=_0x255b9c;return this[_0x1c0f45(0x28d)]({'defaultValue':_0x24dfb5});}['update'](_0x2409e3,_0x9810bf){const _0x391ffe=_0x255b9c;let _0x4cb9a3=this[_0x391ffe(0x155)]()['type'];return(_0x2409e3[_0x391ffe(0x1b1)]??_0x4cb9a3)===_0x5a9f84[_0x391ffe(0x293)]&&(Object['prototype'][_0x391ffe(0x211)][_0x391ffe(0x219)](_0x2409e3,_0x391ffe(0x1c8))||_0x2409e3[_0x391ffe(0x1b1)]===_0x5a9f84[_0x391ffe(0x293)])&&!this[_0x391ffe(0x26a)](_0x9810bf)?!0x1:this[_0x391ffe(0x173)][_0x391ffe(0x289)](_0x2843a7['id'],{'unitId':this[_0x391ffe(0x21c)][_0x391ffe(0x1d5)](),'tableId':this['_table'][_0x391ffe(0x1d5)](),'fieldId':this[_0x391ffe(0x274)],'patch':_0x2409e3});}[_0x255b9c(0x1fc)](_0x1668c9,_0x141e35={},_0x7a1191){const _0x363714=_0x255b9c;return _0x1668c9===_0x5a9f84[_0x363714(0x293)]&&!this['_writeFormulaExternalReferences'](_0x7a1191)?!0x1:this[_0x363714(0x173)][_0x363714(0x289)](_0x34d48d['id'],{'unitId':this[_0x363714(0x21c)][_0x363714(0x1d5)](),'tableId':this['_table'][_0x363714(0x1d5)](),'fieldId':this[_0x363714(0x274)],'input':{'type':_0x1668c9,'config':_0x141e35}});}[_0x255b9c(0x22d)](){const _0x42e503=_0x255b9c;return this[_0x42e503(0x173)][_0x42e503(0x289)](_0x1c7e2e['id'],{'unitId':this['_base'][_0x42e503(0x1d5)](),'tableId':this[_0x42e503(0x269)][_0x42e503(0x1d5)](),'fieldId':this[_0x42e503(0x274)]});}[_0x255b9c(0x166)](_0x15b923){const _0x33e397=_0x255b9c;return this['_commandService']['syncExecuteCommand'](_0x53f67f['id'],{'unitId':this[_0x33e397(0x21c)][_0x33e397(0x1d5)](),'tableId':this[_0x33e397(0x269)][_0x33e397(0x1d5)](),'fieldId':this[_0x33e397(0x274)],'target':_0x15b923});}['_getField'](){const _0x1a96db=_0x255b9c;let _0x3660d1=this[_0x1a96db(0x269)][_0x1a96db(0x147)]()[_0x1a96db(0x1f6)][this[_0x1a96db(0x274)]];if(!_0x3660d1)throw Error(_0x1a96db(0x19e)+this[_0x1a96db(0x274)]+_0x1a96db(0x280));return _0x3660d1;}[_0x255b9c(0x26a)](_0x33a634){const _0x423422=_0x255b9c;if(!_0x33a634||!Array['isArray'](_0x33a634[_0x423422(0x249)]))return console[_0x423422(0x148)](_0x423422(0x287)),!0x1;if(_0x33a634[_0x423422(0x249)][_0x423422(0x244)]===0x0)return!0x0;let _0x2696c6=this[_0x423422(0x173)][_0x423422(0x289)](_0x4384ca['id'],{'unitId':this[_0x423422(0x21c)][_0x423422(0x1d5)](),'references':_0x33a634[_0x423422(0x249)]});return _0x2696c6||console['warn'](_0x423422(0x139)),_0x2696c6;}};B=z([R(0x3,_0x48b079),R(0x4,_0x598bd4)],B);let ot=function(_0x22ef89){const _0x7be634=_0x255b9c;return _0x22ef89['Id']='id',_0x22ef89[_0x7be634(0x26c)]='name',_0x22ef89[_0x7be634(0x15b)]='auto',_0x22ef89;}({});function V(_0x22985a){const _0x5254a1=_0x255b9c;return!!(_0x22985a&&_0x22985a[_0x5254a1(0x1c9)]!==!0x0&&_0x22985a[_0x5254a1(0x1b1)]!==_0x5a9f84[_0x5254a1(0x1a7)]);}function H(_0x89d8d0,_0x32eaa0,_0x21e29e='id'){const _0x254508=_0x255b9c;if(!_0x32eaa0)return{};let _0x64772b={};return Object[_0x254508(0x1b5)](_0x32eaa0)[_0x254508(0x1b7)](([_0x249212,_0x19e2bd])=>{const _0x1b15d1=_0x254508;let _0x9a2590=ct(_0x89d8d0,_0x249212,_0x21e29e);_0x64772b[_0x9a2590]=st(_0x89d8d0[_0x1b15d1(0x1f6)][_0x9a2590],_0x19e2bd);}),_0x64772b;}function st(_0x14c2bb,_0x5554c7){const _0x1da525=_0x255b9c;if((_0x14c2bb==null?void 0x0:_0x14c2bb[_0x1da525(0x1b1)])!==_0x5a9f84[_0x1da525(0x265)]||_0x5554c7==null)return _0x5554c7;if(!Array['isArray'](_0x5554c7))throw TypeError(_0x1da525(0x18a)+_0x14c2bb[_0x1da525(0x167)]+'\x22:\x20expected\x20an\x20array.');return _0x5554c7[_0x1da525(0x258)]((_0x38d520,_0x2d9222)=>lt(_0x14c2bb,_0x38d520,_0x2d9222));}function ct(_0xded26b,_0x126f2a,_0x4abab3){const _0x2cdcae=_0x255b9c;if(_0x4abab3==='id'||_0x4abab3===_0x2cdcae(0x1b3)&&_0xded26b[_0x2cdcae(0x1f6)][_0x126f2a])return _0x126f2a;let _0x13506d=Object[_0x2cdcae(0x220)](_0xded26b[_0x2cdcae(0x1f6)])[_0x2cdcae(0x177)](_0x11ea08=>_0x11ea08[_0x2cdcae(0x167)]===_0x126f2a);if(_0x13506d[_0x2cdcae(0x244)]===0x1)return _0x13506d[0x0]['id'];throw _0x13506d[_0x2cdcae(0x244)]>0x1?Error(_0x2cdcae(0x1fa)+_0x126f2a):Error(_0x2cdcae(0x184)+_0x126f2a);}function lt(_0x5448f2,_0x4e5b6f,_0x461170){const _0x37858d=_0x255b9c;let _0x2e5176='Invalid\x20attachment\x20at\x20index\x20'+_0x461170+_0x37858d(0x19a)+_0x5448f2['name']+'\x22';if(!ft(_0x4e5b6f))throw TypeError(_0x2e5176+_0x37858d(0x15f));if(_0x37858d(0x27f)in _0x4e5b6f)throw TypeError(_0x2e5176+_0x37858d(0x1d4));if(_0x37858d(0x1b1)in _0x4e5b6f)throw TypeError(_0x2e5176+':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.');let _0xc2a2d3=U(_0x4e5b6f['id'],_0x2e5176,'id'),_0x2b70db=U(_0x4e5b6f['name'],_0x2e5176,_0x37858d(0x167)),_0x64c10b=U(_0x4e5b6f['source'],_0x2e5176,_0x37858d(0x17d));return{'id':_0xc2a2d3,'name':_0x2b70db,'source':_0x64c10b,'sourceType':ut(_0x4e5b6f[_0x37858d(0x288)],_0x64c10b,_0x2e5176),...dt(_0x4e5b6f,_0x37858d(0x160),_0x2e5176),...W(_0x4e5b6f,_0x37858d(0x25b),_0x2e5176),...W(_0x4e5b6f,_0x37858d(0x20b),_0x2e5176),...W(_0x4e5b6f,_0x37858d(0x273),_0x2e5176),...dt(_0x4e5b6f,'thumbnail',_0x2e5176)};}function ut(_0x504de7,_0x46bebf,_0x1f2da3){const _0x130c03=_0x255b9c;if(_0x504de7==null)return _0x46bebf['startsWith'](_0x130c03(0x15e))?_0x3a9442[_0x130c03(0x277)]:_0x3a9442[_0x130c03(0x1ff)];if(_0x504de7===_0x3a9442[_0x130c03(0x1ff)]||_0x504de7===_0x3a9442[_0x130c03(0x134)]||_0x504de7===_0x3a9442[_0x130c03(0x277)])return _0x504de7;throw TypeError(_0x1f2da3+':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.');}function U(_0x18506d,_0x2dd489,_0x306460){const _0x182ec8=_0x255b9c;if(typeof _0x18506d!=_0x182ec8(0x1e2)||!_0x18506d[_0x182ec8(0x13f)]())throw TypeError(_0x2dd489+_0x182ec8(0x294)+_0x306460+_0x182ec8(0x1c7));return _0x18506d;}function _0x384c(_0x1a80c6,_0xfdffc3){_0x1a80c6=_0x1a80c6-0x130;const _0xee452=_0xee45();let _0x384cfb=_0xee452[_0x1a80c6];return _0x384cfb;}function dt(_0x4e1afa,_0x1bca01,_0x187dfa){const _0x99bfed=_0x255b9c;let _0x47416d=_0x4e1afa[_0x1bca01];if(_0x47416d==null)return{};if(typeof _0x47416d!='string'||!_0x47416d[_0x99bfed(0x13f)]())throw TypeError(_0x187dfa+_0x99bfed(0x294)+_0x1bca01+'\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.');return{[_0x1bca01]:_0x47416d};}function W(_0x38bf92,_0x5a60b2,_0x34463a){const _0x32c34a=_0x255b9c;let _0x11f29e=_0x38bf92[_0x5a60b2];if(_0x11f29e==null)return{};if(typeof _0x11f29e!=_0x32c34a(0x1a4)||!Number[_0x32c34a(0x222)](_0x11f29e)||_0x11f29e<0x0)throw TypeError(_0x34463a+_0x32c34a(0x294)+_0x5a60b2+_0x32c34a(0x297));return{[_0x5a60b2]:_0x11f29e};}function _0xee45(){const _0x4ec429=['includeRecords','Formula',':\x20\x22','tables','2262SlNSqL','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','slice','getTables','getPrimaryFieldId','multiple','fromCollab','UUID','createInstance','createView','[FRecord]:\x20record\x20\x22','Invalid\x20Base\x20formula.','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','rules','duplicate','indexOf','limit','BaseHierarchyChanged','trim','BaseConditionalColorTarget','_getRecordLinkField','rows','clear','getConditionalColorRules','beforeFieldId','BaseFilterOperator','getTable','warn','[FTable]:\x20table\x20\x22','Edit','getPermission','Kanban','addChild','setFilter','targetTableId','from','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','invalid','endRow','symbol','_getField','addRecord','BaseTableFieldCreated','updateConfig','[FRecord]:\x20attachment\x20at\x20index\x20','isArray','Auto','_inject','BeforeBaseTableCreate','data:',':\x20expected\x20an\x20object.','mimeType','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','getFields','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','localeCompare','deleteRecords','move','name','visibleCardFieldIds','hierarchyChanges','endColumn','formula','setValue','_permissionService','unitId','conditionalColoring','Failed\x20to\x20add\x20records','addLinkedRecord','defaultValue','_commandService','7RWGyIt','find','now','filter','BeforeBaseTableViewCreate','\x22\x20is\x20not\x20an\x20Attachment\x20field.','Grid','getBase','[FRecord]:\x20RecordLink\x20field\x20\x22','source','[FBase]:\x20table\x20\x22','BaseConditionalDateMode','tableOrder','description','orderedRecordIds','204468atEUea','Base\x20field\x20not\x20found:\x20','startColumn','recordIds','get','BaseConditionalColorOperator','Facade','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','matches','fieldIds','getDescription','getAllUnitsForType','table','BaseTableCreated','reason','AND','object','getAttachments','_getView','includes','has','fieldSettings','direction','\x20for\x20field\x20\x22','getActiveBase','[FView]:\x20view\x20\x22','index','[FField]:\x20field\x20\x22','duplicateTable','Clear','sort','_getHierarchyEventContext','[FBaseRange]:\x20table\x20does\x20not\x20exist.','number','_getHierarchyIndex','conditions','RecordId','getSnapshot','recordId','getViews','primaryFieldName','parentRecordId','BeforeBaseTableCellValueChange','commonExtend','getFieldSettings','updatedAt','type','9qhmoDY','auto','toPrimitive','entries','afterFieldId','forEach','_prepareFormulaFieldReferences','_getTable','setOrderKey','setConditionalColorRules','deepClone','getUnitId','getView','_getRecord','params','Failed\x20to\x20duplicate\x20table\x20\x22','insertTable','Calendar','function','disposeWithMe','getValue','\x22\x20must\x20be\x20a\x20non-empty\x20string.','config','system','recordOrder','getUnit','fireEvent','test','_initialize','getNumColumns','getSchema','setAttachments','getFieldById','5002172JCIeAh',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','getId','iterator','Failed\x20to\x20add\x20field\x20\x22','DESC','99272oetODC','setSort','viewOrder','deleteProperty','prototype','5oxxcbS','1630NBenwX','_getAttachmentField','_unitId','string','_baseUnitId','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','954124HtJPpI','_univerInstanceService','Invalid\x20Base\x20regex\x20filter:\x20','viewId','_projectionService','Event','addRecords','getBaseId','view','primaryFieldId','valid','field','registerEventHandler','Add','parentByRecordId','_baseTableId','getSort','fields','setReadOnly','Gallery','defineProperty','Duplicate\x20Base\x20field\x20name:\x20','deleteConditionalColorRule','changeType','executeCommand','addField','URL','startRow','_range','RecordLink','message','_collectDescendantIds','9895278CbMtCN','_recordId','getBaseFacade','getGroup','getRow','views','width','BaseViewType','setConfig','regenerateViewIds','[FRecord]:\x20invalid\x20RecordLink\x20value.','1340210JLkiaK','hasOwnProperty','canEdit','caseSensitive','readonly','setParent','setLinkedRecordIds','extend','removeLinkedRecord','call','getTableId','operator','_base','Delete','[FRecord]:\x20field\x20\x22','base','values','childrenByParentId','isFinite','setHierarchyField','_getFieldIds','default','Remote','setValues','_injector','onCommandExecuted','push','isReadonly','deleteAttachments','delete','Failed\x20to\x20create\x20table\x20\x22','getFormulaName','getProjection','45KMuQcj','getHierarchyFieldId','getValues','moveField','UNIVER_BASE','setEditable','getTableById','BeforeBaseHierarchyChange','_assertInBounds','cancel','BaseTableRecordCreated','\x22\x20is\x20invalid.','getTableFacade','deleteTable','fieldOrder','_objectId','_resourceLoaderService','boolean','setName','length','setObjectPermissions','\x20Copy','getCurrentUnitOfType','fieldId','externalReferences','offset','createBase','BaseRecordLinkRole','decorate','fromEntries','BaseFilterConjunction','_tableId','saveUnit','tableId','clearConditionalColorRules','getField','getName','FBase','BeforeBaseTableRecordCreate','map','_parentObjectIds','getLinkedRecordIds','size','BeforeBaseTableFieldCreate','Date','rowId','some','getRange','getRecordById','getColumn','\x20in\x20field\x20\x22','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','Attachment','getDefaultValue','BaseTableCellValueChanged','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','_table','_writeFormulaExternalReferences','max','Name','_initBaseAfterEvents','setFieldVisible','BaseFieldType','record','hidden',',\x20range:\x20','height','_fieldId','getParent','_initBaseBeforeEvents','BASE64','getTableByName','_resolveRecordIds','getType','value','beforeCommandExecuted','orderKey','getRecord','url','\x22\x20does\x20not\x20exist.','\x22\x20has\x20invalid\x20config.','createdAt',',\x20max\x20columns:\x20','BaseTableViewCreated','records','_fireBeforeHierarchyChange','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','sourceType','syncExecuteCommand','flatMap','getNumRows','setFieldWidth','update','getBases','_viewId','92917cvsrDN','subtreeHeightByRecordId'];_0xee45=function(){return _0x4ec429;};return _0xee45();}function ft(_0x50923b){return typeof _0x50923b=='object'&&!!_0x50923b&&!Array['isArray'](_0x50923b);}var G;let K=G=class{constructor(_0x31fd25,_0x3da3b1,_0x3d5391,_0xda2a78,_0x5dfe76){const _0x314693=_0x255b9c;this['_base']=_0x31fd25,this[_0x314693(0x269)]=_0x3da3b1,this[_0x314693(0x201)]=_0x3d5391,this[_0x314693(0x15c)]=_0xda2a78,this[_0x314693(0x173)]=_0x5dfe76,this['_assertInBounds']();}[_0x255b9c(0x1ec)](){return this['_base']['getId']();}[_0x255b9c(0x21a)](){const _0x1a35ee=_0x255b9c;return this[_0x1a35ee(0x269)][_0x1a35ee(0x1d5)]();}[_0x255b9c(0x260)](){return{...this['_range']};}[_0x255b9c(0x209)](){const _0x2957cf=_0x255b9c;return this[_0x2957cf(0x201)][_0x2957cf(0x200)];}[_0x255b9c(0x262)](){const _0x15ee91=_0x255b9c;return this['_range'][_0x15ee91(0x185)];}[_0x255b9c(0x28b)](){const _0xfbd212=_0x255b9c;return this[_0xfbd212(0x201)][_0xfbd212(0x153)]-this[_0xfbd212(0x201)][_0xfbd212(0x200)]+0x1;}['getNumColumns'](){const _0x404758=_0x255b9c;return this[_0x404758(0x201)][_0x404758(0x16a)]-this[_0x404758(0x201)]['startColumn']+0x1;}[_0x255b9c(0x233)](){const _0x53bee2=_0x255b9c;let _0x4630ff=this['_getTable'](),_0x2222ad=this[_0x53bee2(0x224)](_0x4630ff),_0x191ef4=[];for(let _0x241974=this['_range']['startRow'];_0x241974<=this[_0x53bee2(0x201)][_0x53bee2(0x153)];_0x241974++){var _0x24b6f0;let _0x2d74ac=(_0x24b6f0=_0x4630ff['rowId'])==null?void 0x0:_0x24b6f0[_0x241974],_0x1cb9bc=[];for(let _0x26da01=this[_0x53bee2(0x201)][_0x53bee2(0x185)];_0x26da01<=this[_0x53bee2(0x201)][_0x53bee2(0x16a)];_0x26da01++){let _0x191936=_0x2222ad[_0x26da01];_0x1cb9bc[_0x53bee2(0x22a)](_0x2d74ac&&_0x191936?_0x532795(_0x4630ff,_0x2d74ac,_0x191936):null);}_0x191ef4[_0x53bee2(0x22a)](_0x1cb9bc);}return _0x191ef4;}[_0x255b9c(0x1c6)](){const _0x2de085=_0x255b9c;var _0x3657ce;return((_0x3657ce=this[_0x2de085(0x233)]()[0x0])==null?void 0x0:_0x3657ce[0x0])??null;}['setValue'](_0x185537){const _0x176b6d=_0x255b9c;return this[_0x176b6d(0x227)]([[_0x185537]]);}[_0x255b9c(0x227)](_0x1d1b72){const _0x7072b8=_0x255b9c;let _0x3765c9=this[_0x7072b8(0x28b)](),_0xc2cfa3=this[_0x7072b8(0x1cf)]();if(_0x1d1b72[_0x7072b8(0x244)]>_0x3765c9||_0x1d1b72[_0x7072b8(0x25f)](_0x4d60ec=>_0x4d60ec[_0x7072b8(0x244)]>_0xc2cfa3)){var _0x56126a;throw Error('[FBaseRange]:\x20values\x20size\x20'+_0x1d1b72[_0x7072b8(0x244)]+'x'+(((_0x56126a=_0x1d1b72[0x0])==null?void 0x0:_0x56126a[_0x7072b8(0x244)])??0x0)+'\x20exceeds\x20range\x20size\x20'+_0x3765c9+'x'+_0xc2cfa3+'.');}let _0x2c2292=this[_0x7072b8(0x1b9)](),_0x2fffa8=this['_getFieldIds'](_0x2c2292),_0x4dadbb=_0x1d1b72[_0x7072b8(0x28a)]((_0x1535a6,_0x134dff)=>_0x1535a6[_0x7072b8(0x258)]((_0x145ae5,_0x1ae30d)=>{const _0x27d74a=_0x7072b8;var _0x3750da;let _0x3d1b4e=this[_0x27d74a(0x201)][_0x27d74a(0x200)]+_0x134dff,_0x5b5f00=_0x2fffa8[this[_0x27d74a(0x201)][_0x27d74a(0x185)]+_0x1ae30d],_0x215d36=(_0x3750da=_0x2c2292[_0x27d74a(0x25e)])==null?void 0x0:_0x3750da[_0x3d1b4e];if(!_0x5b5f00||!_0x215d36)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x215d36,'fieldId':_0x5b5f00,'value':_0x145ae5};}));return this[_0x7072b8(0x173)]['syncExecuteCommand'](_0x5c54c3['id'],{'unitId':this[_0x7072b8(0x21c)][_0x7072b8(0x1d5)](),'tableId':this[_0x7072b8(0x269)]['getId'](),'patches':_0x4dadbb,'source':_0x26a1b1[_0x7072b8(0x189)]});}[_0x255b9c(0x143)](){const _0x254d9b=_0x255b9c;return this['setValues'](Array[_0x254d9b(0x150)]({'length':this[_0x254d9b(0x28b)]()},()=>Array['from']({'length':this[_0x254d9b(0x1cf)]()},()=>null)));}[_0x255b9c(0x24a)](_0x51e380,_0x5f3a03,_0x446084=this[_0x255b9c(0x28b)](),_0x3dabcb=this['getNumColumns']()){const _0x1066f2=_0x255b9c;return this[_0x1066f2(0x15c)][_0x1066f2(0x135)](G,this['_base'],this[_0x1066f2(0x269)],{'startRow':this['_range'][_0x1066f2(0x200)]+_0x51e380,'startColumn':this[_0x1066f2(0x201)][_0x1066f2(0x185)]+_0x5f3a03,'endRow':this[_0x1066f2(0x201)][_0x1066f2(0x200)]+_0x51e380+_0x446084-0x1,'endColumn':this[_0x1066f2(0x201)][_0x1066f2(0x185)]+_0x5f3a03+_0x3dabcb-0x1},this[_0x1066f2(0x15c)]);}['_getTable'](){const _0x568329=_0x255b9c;let _0x77832e=this['_table'][_0x568329(0x147)]();if(!_0x77832e)throw Error(_0x568329(0x1a3));return _0x52efd3(_0x77832e);}[_0x255b9c(0x239)](){const _0x167c25=_0x255b9c;var _0x44c66c;let _0x1c403c=this['_getTable'](),_0x3c7aa8=((_0x44c66c=_0x1c403c['recordOrder'])==null?void 0x0:_0x44c66c['length'])??0x0,_0x37dab1=this[_0x167c25(0x224)](_0x1c403c)[_0x167c25(0x244)];if(this[_0x167c25(0x201)][_0x167c25(0x200)]<0x0||this[_0x167c25(0x201)][_0x167c25(0x185)]<0x0||this[_0x167c25(0x201)][_0x167c25(0x153)]<this['_range'][_0x167c25(0x200)]||this['_range'][_0x167c25(0x16a)]<this[_0x167c25(0x201)]['startColumn']||this['_range'][_0x167c25(0x153)]>=Math[_0x167c25(0x26b)](_0x3c7aa8,0x1)||this['_range'][_0x167c25(0x16a)]>=Math[_0x167c25(0x26b)](_0x37dab1,0x1))throw Error(_0x167c25(0x1e4)+_0x3c7aa8+_0x167c25(0x283)+_0x37dab1+_0x167c25(0x272)+JSON['stringify'](this['_range'])+'.');}[_0x255b9c(0x224)](_0x1792a6){const _0x321572=_0x255b9c;return _0x1792a6[_0x321572(0x23f)][_0x321572(0x177)](_0x1fd34d=>V(_0x1792a6['fields'][_0x1fd34d]));}};K=G=z([R(0x4,_0x48b079)],K);function q(_0x52371c){'@babel/helpers - typeof';const _0x57af9f=_0x255b9c;return q=typeof Symbol=='function'&&typeof Symbol[_0x57af9f(0x1d6)]==_0x57af9f(0x154)?function(_0x4c1b1b){return typeof _0x4c1b1b;}:function(_0x1ca085){const _0x8f13e1=_0x57af9f;return _0x1ca085&&typeof Symbol==_0x8f13e1(0x1c4)&&_0x1ca085['constructor']===Symbol&&_0x1ca085!==Symbol[_0x8f13e1(0x1dd)]?_0x8f13e1(0x154):typeof _0x1ca085;},q(_0x52371c);}function pt(_0x346c1c,_0xe09835){const _0x437ca8=_0x255b9c;if(q(_0x346c1c)!='object'||!_0x346c1c)return _0x346c1c;var _0x1bc023=_0x346c1c[Symbol[_0x437ca8(0x1b4)]];if(_0x1bc023!==void 0x0){var _0x5a46cf=_0x1bc023[_0x437ca8(0x219)](_0x346c1c,_0xe09835||_0x437ca8(0x225));if(q(_0x5a46cf)!=_0x437ca8(0x193))return _0x5a46cf;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xe09835===_0x437ca8(0x1e2)?String:Number)(_0x346c1c);}function mt(_0x308b60){const _0x263ba9=_0x255b9c;var _0x3b4077=pt(_0x308b60,_0x263ba9(0x1e2));return q(_0x3b4077)==_0x263ba9(0x154)?_0x3b4077:_0x3b4077+'';}function ht(_0x4b5786,_0x334e6b,_0x5336e2){return(_0x334e6b=mt(_0x334e6b))in _0x4b5786?Object['defineProperty'](_0x4b5786,_0x334e6b,{'value':_0x5336e2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4b5786[_0x334e6b]=_0x5336e2,_0x4b5786;}var J;let Y=J=class extends _0x477435{constructor(_0x3aeea2,_0x130cf0,_0x4af20c,_0x28a7ab,_0x4ae92f,_0x43b410){const _0x374ca4=_0x255b9c;super(_0x28a7ab),this['_base']=_0x3aeea2,this[_0x374ca4(0x269)]=_0x130cf0,this[_0x374ca4(0x206)]=_0x4af20c,this[_0x374ca4(0x228)]=_0x28a7ab,this[_0x374ca4(0x173)]=_0x4ae92f,this['_permissionService']=_0x43b410,ht(this,_0x374ca4(0x1e3),void 0x0),ht(this,_0x374ca4(0x1f4),void 0x0),this[_0x374ca4(0x1e3)]=_0x3aeea2[_0x374ca4(0x1d5)](),this[_0x374ca4(0x1f4)]=_0x130cf0[_0x374ca4(0x1d5)]();}[_0x255b9c(0x207)](){const _0x4eb426=_0x255b9c;return this[_0x4eb426(0x21c)];}[_0x255b9c(0x23d)](){const _0xd69b01=_0x255b9c;return this[_0xd69b01(0x269)];}[_0x255b9c(0x1d5)](){const _0x4399e9=_0x255b9c;return this[_0x4399e9(0x206)];}[_0x255b9c(0x14b)](){const _0x3af1dc=_0x255b9c;let _0x14aea6=this[_0x3af1dc(0x269)]['getId']();return new L(this[_0x3af1dc(0x21c)][_0x3af1dc(0x1d5)](),_0x568f09(_0x14aea6,this[_0x3af1dc(0x206)]),[_0x4150ce(_0x14aea6)],this[_0x3af1dc(0x173)],this[_0x3af1dc(0x16d)]);}[_0x255b9c(0x27e)](){const _0x249223=_0x255b9c;return{...this[_0x249223(0x1bf)](),'values':this[_0x249223(0x233)]()};}[_0x255b9c(0x1c6)](_0xa1ff5b){const _0x2cb0d1=_0x255b9c;return V(this['_table'][_0x2cb0d1(0x147)]()['fields'][_0xa1ff5b])?this[_0x2cb0d1(0x1bf)]()[_0x2cb0d1(0x220)][_0xa1ff5b]??null:null;}[_0x255b9c(0x233)](){const _0x3224b3=_0x255b9c;let _0x33e362=this[_0x3224b3(0x269)][_0x3224b3(0x147)]();return Object[_0x3224b3(0x24e)](Object[_0x3224b3(0x1b5)](this[_0x3224b3(0x1bf)]()[_0x3224b3(0x220)])[_0x3224b3(0x177)](([_0x4afa74])=>V(_0x33e362[_0x3224b3(0x1f6)][_0x4afa74])));}[_0x255b9c(0x16c)](_0x5791e8,_0x4d6cbe){const _0x2a7de6=_0x255b9c;let _0x5c9d98=this['_table']['getTable']()[_0x2a7de6(0x1f6)][_0x5791e8];return this[_0x2a7de6(0x173)]['syncExecuteCommand'](_0x1a4fa7['id'],{'unitId':this[_0x2a7de6(0x21c)][_0x2a7de6(0x1d5)](),'tableId':this['_table'][_0x2a7de6(0x1d5)](),'recordId':this[_0x2a7de6(0x206)],'fieldId':_0x5791e8,'value':st(_0x5c9d98,_0x4d6cbe),'source':_0x26a1b1[_0x2a7de6(0x189)]});}[_0x255b9c(0x1d1)](_0x3c780b,_0x222cec){const _0x57f30c=_0x255b9c;return this[_0x57f30c(0x16c)](_0x3c780b,_0x222cec[_0x57f30c(0x258)](_0x100da4=>({..._0x100da4})));}[_0x255b9c(0x194)](_0x2988ac){const _0x277ddc=_0x255b9c;this['_getAttachmentField'](_0x2988ac);let _0x33cd63=this['getValue'](_0x2988ac);return Array[_0x277ddc(0x15a)](_0x33cd63)?_0x33cd63['map']((_0x3c0658,_0x477e91)=>_t(_0x3c0658,_0x2988ac,_0x477e91)):[];}[_0x255b9c(0x22c)](_0x3b2bb0,_0x3e4388){const _0x18d0fe=_0x255b9c;this[_0x18d0fe(0x1e0)](_0x3b2bb0);let _0x56ebeb=new Set(_0x3e4388[_0x18d0fe(0x258)](_0x375b1b=>_0x375b1b['id']));if(!_0x56ebeb[_0x18d0fe(0x25b)])return!0x0;let _0x53784d=this[_0x18d0fe(0x194)](_0x3b2bb0),_0x29f5cd=_0x53784d[_0x18d0fe(0x177)](_0x5679de=>!_0x56ebeb['has'](_0x5679de['id']));return _0x29f5cd[_0x18d0fe(0x244)]===_0x53784d[_0x18d0fe(0x244)]||this[_0x18d0fe(0x1d1)](_0x3b2bb0,_0x29f5cd);}[_0x255b9c(0x227)](_0x52b87e,_0x2d9e61='id'){const _0x40ee67=_0x255b9c;let _0x2ceac6=this[_0x40ee67(0x269)][_0x40ee67(0x147)](),_0x5c7cab=[{'recordId':this['_recordId'],'values':H(_0x2ceac6,_0x52b87e,_0x2d9e61)}];return this['_commandService'][_0x40ee67(0x289)](_0x37fd97['id'],{'unitId':this[_0x40ee67(0x21c)][_0x40ee67(0x1d5)](),'tableId':this[_0x40ee67(0x269)]['getId'](),'patches':_0x5c7cab,'source':_0x26a1b1[_0x40ee67(0x189)]});}[_0x255b9c(0x22d)](){const _0x3deddf=_0x255b9c;return this[_0x3deddf(0x173)][_0x3deddf(0x289)](_0x228881['id'],{'unitId':this[_0x3deddf(0x21c)][_0x3deddf(0x1d5)](),'tableId':this[_0x3deddf(0x269)][_0x3deddf(0x1d5)](),'recordId':this['_recordId'],'source':_0x26a1b1[_0x3deddf(0x189)]});}[_0x255b9c(0x13b)](_0x573944){const _0x552283=_0x255b9c;let _0x780a5c={...this[_0x552283(0x1bf)](),..._0x573944,'id':_0x3c434b(0x6)};_0x780a5c['values']={..._0x780a5c[_0x552283(0x220)],..._0x573944==null?void 0x0:_0x573944[_0x552283(0x220)]},Reflect[_0x552283(0x1dc)](_0x780a5c['values'],_0x340451);let _0x2acfe1=Date[_0x552283(0x176)]();if(_0x780a5c[_0x552283(0x27d)]||=''+_0x2acfe1,_0x780a5c[_0x552283(0x282)]||=_0x2acfe1,_0x780a5c[_0x552283(0x1b0)]||=_0x2acfe1,!this[_0x552283(0x173)]['syncExecuteCommand'](_0x4bb998['id'],{'unitId':this['_base'][_0x552283(0x1d5)](),'tableId':this[_0x552283(0x269)]['getId'](),'sourceRecordId':this[_0x552283(0x206)],'record':_0x780a5c,'source':_0x26a1b1[_0x552283(0x189)]}))throw Error(_0x552283(0x268)+this[_0x552283(0x206)]+'\x22.');return this[_0x552283(0x228)]['createInstance'](J,this[_0x552283(0x21c)],this[_0x552283(0x269)],_0x780a5c['id'],this[_0x552283(0x228)]);}[_0x255b9c(0x1ba)](_0x31505d){const _0x1e2e04=_0x255b9c;return this[_0x1e2e04(0x173)][_0x1e2e04(0x289)](_0x534997['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x1e2e04(0x269)][_0x1e2e04(0x1d5)](),'recordId':this['_recordId'],'orderKey':_0x31505d});}[_0x255b9c(0x25a)](_0x7b1f7d){let _0x12ea59=this['_getRecordLinkField'](_0x7b1f7d);return _0x18c9cf(this['getValue'](_0x12ea59['id']));}[_0x255b9c(0x216)](_0x455796,_0x5214fd){const _0x3b9150=_0x255b9c;let _0x50e022=this[_0x3b9150(0x141)](_0x455796),_0x4fc2db=_0x5926c7(_0x5214fd),_0x200089=_0x4c5cb3(this[_0x3b9150(0x21c)][_0x3b9150(0x17b)]()[_0x3b9150(0x1a8)](),_0x50e022,_0x4fc2db);if(!_0x200089['valid'])throw Error(_0x200089[_0x3b9150(0x191)]??_0x3b9150(0x20f));return this['_commandService'][_0x3b9150(0x289)](_0x1a4fa7['id'],{'unitId':this[_0x3b9150(0x21c)]['getId'](),'tableId':this[_0x3b9150(0x269)][_0x3b9150(0x1d5)](),'recordId':this[_0x3b9150(0x206)],'fieldId':_0x455796,'value':_0x4fc2db,'source':_0x26a1b1[_0x3b9150(0x189)]});}[_0x255b9c(0x171)](_0x3e80b2,_0x1ba8be){const _0x37b073=_0x255b9c;let _0x641b58=_0x49477e(this[_0x37b073(0x141)](_0x3e80b2));if(!_0x641b58)throw Error(_0x37b073(0x17c)+_0x3e80b2+_0x37b073(0x281));let _0x172afa=this[_0x37b073(0x25a)](_0x3e80b2);return _0x641b58[_0x37b073(0x132)]&&_0x172afa[_0x37b073(0x196)](_0x1ba8be)?!0x0:this['setLinkedRecordIds'](_0x3e80b2,_0x641b58[_0x37b073(0x132)]?[..._0x172afa,_0x1ba8be]:[_0x1ba8be]);}[_0x255b9c(0x218)](_0x58a323,_0x5f216e){const _0x3dd662=_0x255b9c;let _0x28697d=this[_0x3dd662(0x25a)](_0x58a323);return!_0x28697d[_0x3dd662(0x196)](_0x5f216e)||this[_0x3dd662(0x216)](_0x58a323,_0x28697d[_0x3dd662(0x177)](_0x390061=>_0x390061!==_0x5f216e));}[_0x255b9c(0x275)](_0x528326){const _0x450609=_0x255b9c;let _0x464df7=this[_0x450609(0x1a5)](_0x528326)[_0x450609(0x1f3)][_0x450609(0x187)](this[_0x450609(0x206)])??null;return _0x464df7?this[_0x450609(0x269)][_0x450609(0x261)](_0x464df7):null;}['getChildren'](_0x5bcc6){const _0x2ab738=_0x255b9c;return(this[_0x2ab738(0x1a5)](_0x5bcc6)['childrenByParentId'][_0x2ab738(0x187)](this[_0x2ab738(0x206)])??[])[_0x2ab738(0x28a)](_0x492afb=>{const _0x550baa=_0x2ab738;let _0x1dc6ea=this[_0x550baa(0x269)][_0x550baa(0x261)](_0x492afb);return _0x1dc6ea?[_0x1dc6ea]:[];});}['getAncestors'](_0x2199b7){const _0x4626d7=_0x255b9c;let _0x2d74f8=this[_0x4626d7(0x1a5)](_0x2199b7),_0x411ec4=[],_0x218836=_0x2d74f8['parentByRecordId'][_0x4626d7(0x187)](this[_0x4626d7(0x206)])??null;for(;_0x218836;){let _0x129fea=this[_0x4626d7(0x269)][_0x4626d7(0x261)](_0x218836);_0x129fea&&_0x411ec4[_0x4626d7(0x22a)](_0x129fea),_0x218836=_0x2d74f8[_0x4626d7(0x1f3)][_0x4626d7(0x187)](_0x218836)??null;}return _0x411ec4;}['getDescendants'](_0x12e864){const _0x3b2749=_0x255b9c;let _0x46747e=this[_0x3b2749(0x1a5)](_0x12e864),_0x2ef0e8=_0x46747e[_0x3b2749(0x182)]['indexOf'](this[_0x3b2749(0x206)]),_0x384fb8=_0x46747e[_0x3b2749(0x291)][_0x3b2749(0x197)](this[_0x3b2749(0x206)])?this[_0x3b2749(0x204)](_0x46747e[_0x3b2749(0x221)],this['_recordId']):[];return _0x2ef0e8<0x0?[]:_0x384fb8[_0x3b2749(0x28a)](_0x305c9a=>{const _0x2cfdae=_0x3b2749;let _0x49662e=this['_table'][_0x2cfdae(0x261)](_0x305c9a);return _0x49662e?[_0x49662e]:[];});}[_0x255b9c(0x215)](_0xca7258,_0x48daa8,_0x4e483c){const _0x46bbf8=_0x255b9c;return this['_commandService'][_0x46bbf8(0x289)](_0xe38a8d['id'],{'unitId':this['_base'][_0x46bbf8(0x1d5)](),'tableId':this[_0x46bbf8(0x269)][_0x46bbf8(0x1d5)](),'fieldId':_0xca7258,'recordId':this['_recordId'],'parentRecordId':_0x48daa8,'orderKey':_0x4e483c,'source':_0x26a1b1[_0x46bbf8(0x189)]});}[_0x255b9c(0x14d)](_0x59f4f2,_0xa15a2c,_0x56b4bb='id',_0x5409f6){const _0x2d9a97=_0x255b9c;let _0x5ea9a4=this[_0x2d9a97(0x269)][_0x2d9a97(0x147)](),_0x3890b1=Date[_0x2d9a97(0x176)](),_0x1a9241={..._0x5409f6,'id':_0x3c434b(0x6),'values':H(_0x5ea9a4,_0xa15a2c,_0x56b4bb),'orderKey':(_0x5409f6==null?void 0x0:_0x5409f6['orderKey'])||''+_0x3890b1,'createdAt':(_0x5409f6==null?void 0x0:_0x5409f6[_0x2d9a97(0x282)])||_0x3890b1,'updatedAt':(_0x5409f6==null?void 0x0:_0x5409f6[_0x2d9a97(0x1b0)])||_0x3890b1};if(!this[_0x2d9a97(0x173)][_0x2d9a97(0x289)](_0x1c1a12['id'],{'unitId':this[_0x2d9a97(0x21c)]['getId'](),'tableId':this['_table'][_0x2d9a97(0x1d5)](),'fieldId':_0x59f4f2,'parentRecordId':this['_recordId'],'record':_0x1a9241,'source':_0x26a1b1[_0x2d9a97(0x189)]}))throw Error(_0x2d9a97(0x163)+this[_0x2d9a97(0x206)]+'\x22.');return this[_0x2d9a97(0x228)][_0x2d9a97(0x135)](J,this[_0x2d9a97(0x21c)],this['_table'],_0x1a9241['id'],this[_0x2d9a97(0x228)]);}[_0x255b9c(0x1a5)](_0x5cf36f){const _0xaafac7=_0x255b9c;return _0x5b28b2(this[_0xaafac7(0x269)][_0xaafac7(0x147)](),_0x5cf36f);}['_collectDescendantIds'](_0x4b28a8,_0x399c62){let _0x41ffef=[],_0x12f425=_0x27aaa2=>{const _0x384499=_0x384c;for(let _0x5dd873 of _0x4b28a8['get'](_0x27aaa2)??[])_0x41ffef[_0x384499(0x22a)](_0x5dd873),_0x12f425(_0x5dd873);};return _0x12f425(_0x399c62),_0x41ffef;}[_0x255b9c(0x1bf)](){const _0x20beff=_0x255b9c;let _0x23958b=this[_0x20beff(0x269)][_0x20beff(0x147)]()['records'][this['_recordId']];if(!_0x23958b)throw Error(_0x20beff(0x137)+this['_recordId']+_0x20beff(0x280));return _0x23958b;}['_getRecordLinkField'](_0x3edaab){const _0x3f05fa=_0x255b9c;let _0x1e7e93=this[_0x3f05fa(0x269)][_0x3f05fa(0x147)]()[_0x3f05fa(0x1f6)][_0x3edaab];if(!_0x1e7e93||_0x1e7e93[_0x3f05fa(0x1b1)]!==_0x5a9f84[_0x3f05fa(0x202)])throw Error(_0x3f05fa(0x21e)+_0x3edaab+_0x3f05fa(0x161));return _0x1e7e93;}['_getAttachmentField'](_0x1c9689){const _0x4ac21e=_0x255b9c;let _0x2971b6=this['_table'][_0x4ac21e(0x147)]()[_0x4ac21e(0x1f6)][_0x1c9689];if(!_0x2971b6||_0x2971b6[_0x4ac21e(0x1b1)]!==_0x5a9f84[_0x4ac21e(0x265)])throw Error(_0x4ac21e(0x21e)+_0x1c9689+_0x4ac21e(0x179));return _0x2971b6;}};Y=J=z([R(0x4,_0x48b079),R(0x5,_0x598bd4)],Y);function gt(_0x56912c){const _0x26fce1=_0x255b9c;return!!(_0x56912c&&typeof _0x56912c==_0x26fce1(0x193)&&'id'in _0x56912c&&typeof _0x56912c['id']==_0x26fce1(0x1e2)&&'name'in _0x56912c&&typeof _0x56912c[_0x26fce1(0x167)]==_0x26fce1(0x1e2));}function _t(_0x2a977e,_0x24dbfe,_0x2600aa){const _0x3131bf=_0x255b9c;if(!gt(_0x2a977e))throw Error(_0x3131bf(0x159)+_0x2600aa+_0x3131bf(0x263)+_0x24dbfe+_0x3131bf(0x23c));return{..._0x2a977e};}let X=class{constructor(_0x39149f,_0x38b647,_0x5dfdb9,_0x2941b7,_0x5566e8,_0x171c40,_0x4146a8){const _0x275a3e=_0x255b9c;this[_0x275a3e(0x21c)]=_0x39149f,this[_0x275a3e(0x269)]=_0x38b647,this[_0x275a3e(0x28f)]=_0x5dfdb9,this[_0x275a3e(0x228)]=_0x2941b7,this[_0x275a3e(0x173)]=_0x5566e8,this[_0x275a3e(0x16d)]=_0x171c40,this[_0x275a3e(0x1e9)]=_0x4146a8;}['getId'](){return this['_viewId'];}[_0x255b9c(0x14b)](){const _0x2f3007=_0x255b9c;let _0x3357e5=this[_0x2f3007(0x269)]['getId']();return new L(this[_0x2f3007(0x21c)][_0x2f3007(0x1d5)](),_0x3fcf5b(_0x3357e5,this['_viewId']),[_0x4150ce(_0x3357e5)],this[_0x2f3007(0x173)],this['_permissionService']);}[_0x255b9c(0x1be)](){return this['_getView']();}[_0x255b9c(0x255)](){const _0x19ad99=_0x255b9c;return this[_0x19ad99(0x195)]()[_0x19ad99(0x167)];}[_0x255b9c(0x27a)](){const _0x5a6ea1=_0x255b9c;return this[_0x5a6ea1(0x195)]()[_0x5a6ea1(0x1b1)];}[_0x255b9c(0x243)](_0xf691f0){const _0x487d51=_0x255b9c;return this[_0x487d51(0x173)][_0x487d51(0x289)](_0xfc555['id'],{'unitId':this['_base'][_0x487d51(0x1d5)](),'tableId':this[_0x487d51(0x269)][_0x487d51(0x1d5)](),'viewId':this[_0x487d51(0x28f)],'name':_0xf691f0});}['getConfig'](){const _0x84beff=_0x255b9c;let _0x39af40=this[_0x84beff(0x27a)](),_0x39e95d=this['_getView']()[_0x84beff(0x1c8)];switch(_0x39af40){case _0x51da59[_0x84beff(0x17a)]:return _0x39e95d;case _0x51da59[_0x84beff(0x14c)]:return _0x39e95d;case _0x51da59[_0x84beff(0x1c3)]:return _0x39e95d;case _0x51da59['Gantt']:return _0x39e95d;case _0x51da59[_0x84beff(0x1f8)]:return _0x39e95d;default:return _0x39e95d;}}[_0x255b9c(0x158)](_0x20ebc1){const _0x538a12=_0x255b9c;return this[_0x538a12(0x173)][_0x538a12(0x289)](_0x570962['id'],{'unitId':this[_0x538a12(0x21c)][_0x538a12(0x1d5)](),'tableId':this['_table']['getId'](),'viewId':this[_0x538a12(0x28f)],'patch':_0x20ebc1});}[_0x255b9c(0x144)](){const _0x20d5e0=_0x255b9c;var _0x3ee871;return _0x111647[_0x20d5e0(0x1bc)](((_0x3ee871=this[_0x20d5e0(0x195)]()[_0x20d5e0(0x1c8)][_0x20d5e0(0x16f)])==null?void 0x0:_0x3ee871[_0x20d5e0(0x13a)])??[]);}[_0x255b9c(0x1bb)](_0x2f74dc){const _0x20f9ad=_0x255b9c;return this['_commandService'][_0x20f9ad(0x289)](_0x362371['id'],{'unitId':this[_0x20f9ad(0x21c)][_0x20f9ad(0x1d5)](),'tableId':this[_0x20f9ad(0x269)]['getId'](),'viewId':this[_0x20f9ad(0x28f)],'type':_0x57952c['Set'],'rules':_0x2f74dc});}['addConditionalColorRule'](_0x3ee006){const _0x3a22e2=_0x255b9c;return this['_commandService'][_0x3a22e2(0x289)](_0x362371['id'],{'unitId':this['_base'][_0x3a22e2(0x1d5)](),'tableId':this[_0x3a22e2(0x269)]['getId'](),'viewId':this[_0x3a22e2(0x28f)],'type':_0x57952c[_0x3a22e2(0x1f2)],'rule':_0x3ee006});}[_0x255b9c(0x1fb)](_0x2eb3e3){const _0x4d216a=_0x255b9c;return this[_0x4d216a(0x173)][_0x4d216a(0x289)](_0x362371['id'],{'unitId':this[_0x4d216a(0x21c)]['getId'](),'tableId':this[_0x4d216a(0x269)][_0x4d216a(0x1d5)](),'viewId':this[_0x4d216a(0x28f)],'type':_0x57952c[_0x4d216a(0x21d)],'ruleId':_0x2eb3e3});}[_0x255b9c(0x253)](){const _0x5b0669=_0x255b9c;return this[_0x5b0669(0x173)][_0x5b0669(0x289)](_0x362371['id'],{'unitId':this[_0x5b0669(0x21c)][_0x5b0669(0x1d5)](),'tableId':this[_0x5b0669(0x269)]['getId'](),'viewId':this[_0x5b0669(0x28f)],'type':_0x57952c[_0x5b0669(0x1a0)]});}['getFilter'](){const _0xf87b4=_0x255b9c;return this['_getView']()[_0xf87b4(0x177)]??null;}[_0x255b9c(0x14e)](_0x2de9c7){const _0x4de259=_0x255b9c;return this[_0x4de259(0x173)]['syncExecuteCommand'](_0x1d75bf['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x4de259(0x269)]['getId'](),'viewId':this[_0x4de259(0x28f)],'filter':_0x2de9c7});}[_0x255b9c(0x1f5)](){const _0x2b7db3=_0x255b9c;return this[_0x2b7db3(0x195)]()[_0x2b7db3(0x1a1)]??[];}[_0x255b9c(0x1da)](_0x5a4249){const _0x86fa31=_0x255b9c;return this['_commandService'][_0x86fa31(0x289)](_0x168547['id'],{'unitId':this[_0x86fa31(0x21c)]['getId'](),'tableId':this[_0x86fa31(0x269)][_0x86fa31(0x1d5)](),'viewId':this[_0x86fa31(0x28f)],'sort':_0x5a4249});}[_0x255b9c(0x208)](){const _0x327530=_0x255b9c;return this[_0x327530(0x195)]()['group']??[];}['setGroup'](_0x544ced){const _0x32a777=_0x255b9c;return this[_0x32a777(0x173)][_0x32a777(0x289)](_0xf7e0a2['id'],{'unitId':this['_base'][_0x32a777(0x1d5)](),'tableId':this['_table'][_0x32a777(0x1d5)](),'viewId':this[_0x32a777(0x28f)],'group':_0x544ced});}[_0x255b9c(0x1af)](_0x201c16){const _0x5d2f9d=_0x255b9c;var _0x5aefcf;return V(this[_0x5d2f9d(0x269)][_0x5d2f9d(0x147)]()[_0x5d2f9d(0x1f6)][_0x201c16])?((_0x5aefcf=this[_0x5d2f9d(0x195)]()['fieldSettings'])==null?void 0x0:_0x5aefcf[_0x201c16])??{}:{};}['getVisibleFields'](){const _0x5e1313=_0x255b9c;let _0x33e7d2=this[_0x5e1313(0x269)][_0x5e1313(0x147)](),_0x3e98c1=this[_0x5e1313(0x195)]();return(_0x3e98c1[_0x5e1313(0x23f)]??_0x33e7d2[_0x5e1313(0x23f)])[_0x5e1313(0x177)](_0x544971=>{const _0x4879b3=_0x5e1313;var _0x217272;let _0x20b423=_0x33e7d2[_0x4879b3(0x1f6)][_0x544971];return V(_0x20b423)&&!((_0x217272=_0x3e98c1[_0x4879b3(0x198)])!=null&&(_0x217272=_0x217272[_0x544971])!=null&&_0x217272[_0x4879b3(0x271)]);})['map'](_0x2da462=>this[_0x5e1313(0x228)][_0x5e1313(0x135)](B,this[_0x5e1313(0x21c)],this[_0x5e1313(0x269)],_0x2da462));}[_0x255b9c(0x26e)](_0x298f0c,_0x4d7229){const _0x4db700=_0x255b9c;return V(this['_table'][_0x4db700(0x147)]()[_0x4db700(0x1f6)][_0x298f0c])?this[_0x4db700(0x173)][_0x4db700(0x289)](_0x3694b6['id'],{'unitId':this[_0x4db700(0x21c)][_0x4db700(0x1d5)](),'tableId':this[_0x4db700(0x269)][_0x4db700(0x1d5)](),'viewId':this[_0x4db700(0x28f)],'fieldId':_0x298f0c,'visible':_0x4d7229}):!0x1;}[_0x255b9c(0x28c)](_0xf3133f,_0x5a98cd){const _0x4b117a=_0x255b9c;return V(this[_0x4b117a(0x269)][_0x4b117a(0x147)]()[_0x4b117a(0x1f6)][_0xf3133f])?this['_commandService'][_0x4b117a(0x289)](_0x5b7d3b['id'],{'unitId':this[_0x4b117a(0x21c)][_0x4b117a(0x1d5)](),'tableId':this[_0x4b117a(0x269)][_0x4b117a(0x1d5)](),'viewId':this['_viewId'],'fieldId':_0xf3133f,'width':_0x5a98cd}):!0x1;}[_0x255b9c(0x234)](_0x4cc881,_0x423754){const _0x16024d=_0x255b9c;let _0x3ac2f9=this[_0x16024d(0x269)][_0x16024d(0x147)](),_0x3df908=_0x423754[_0x16024d(0x145)]??_0x423754[_0x16024d(0x1b6)];return!V(_0x3ac2f9[_0x16024d(0x1f6)][_0x4cc881])||!_0x3df908||!V(_0x3ac2f9[_0x16024d(0x1f6)][_0x3df908])?!0x1:this[_0x16024d(0x173)][_0x16024d(0x289)](_0xf5cb3a['id'],{'unitId':this[_0x16024d(0x21c)]['getId'](),'tableId':this[_0x16024d(0x269)][_0x16024d(0x1d5)](),'viewId':this[_0x16024d(0x28f)],'fieldId':_0x4cc881,'target':_0x423754});}[_0x255b9c(0x166)](_0x170eda){const _0xf59b1=_0x255b9c;return this[_0xf59b1(0x173)][_0xf59b1(0x289)](_0x1ccae0['id'],{'unitId':this[_0xf59b1(0x21c)][_0xf59b1(0x1d5)](),'tableId':this[_0xf59b1(0x269)][_0xf59b1(0x1d5)](),'viewId':this['_viewId'],'target':_0x170eda});}['delete'](){const _0x4fb43b=_0x255b9c;return this[_0x4fb43b(0x173)][_0x4fb43b(0x289)](_0xffc95['id'],{'unitId':this[_0x4fb43b(0x21c)]['getId'](),'tableId':this[_0x4fb43b(0x269)][_0x4fb43b(0x1d5)](),'viewId':this[_0x4fb43b(0x28f)]});}[_0x255b9c(0x230)](){const _0xca4572=_0x255b9c;return this[_0xca4572(0x1e9)][_0xca4572(0x230)](this[_0xca4572(0x21c)]['getBase']()[_0xca4572(0x1a8)](),this[_0xca4572(0x269)][_0xca4572(0x1d5)](),this[_0xca4572(0x28f)]);}[_0x255b9c(0x195)](){const _0x4124c8=_0x255b9c;let _0x3e0810=this['_table'][_0x4124c8(0x147)]()['views'][this[_0x4124c8(0x28f)]];if(!_0x3e0810)throw Error(_0x4124c8(0x19c)+this[_0x4124c8(0x28f)]+_0x4124c8(0x280));return _0x3e0810;}};X=z([R(0x4,_0x48b079),R(0x5,_0x598bd4),R(0x6,_0x5dc870)],X);let Z=class{constructor(_0x129c37,_0x38be5c,_0x260e3b,_0x531493,_0x1283a3,_0x535752){const _0x48b7e8=_0x255b9c;this['_base']=_0x129c37,this['_tableId']=_0x38be5c,this[_0x48b7e8(0x228)]=_0x260e3b,this[_0x48b7e8(0x173)]=_0x531493,this[_0x48b7e8(0x16d)]=_0x1283a3,this[_0x48b7e8(0x1e9)]=_0x535752;}['getBase'](){return this['_base']['getBase']();}[_0x255b9c(0x147)](){const _0x3c1aaf=_0x255b9c;return this[_0x3c1aaf(0x1b9)]();}[_0x255b9c(0x1d5)](){return this['_tableId'];}[_0x255b9c(0x14b)](){const _0xa6804c=_0x255b9c;return new L(this[_0xa6804c(0x17b)]()[_0xa6804c(0x1bd)](),_0x4150ce(this[_0xa6804c(0x250)]),[],this[_0xa6804c(0x173)],this[_0xa6804c(0x16d)]);}[_0x255b9c(0x232)](){const _0x44439f=_0x255b9c;return _0x5443ab(this[_0x44439f(0x1b9)]());}[_0x255b9c(0x223)](_0x3fe47b){const _0x560185=_0x255b9c;return this[_0x560185(0x173)][_0x560185(0x289)](_0x30b9b4['id'],{'unitId':this[_0x560185(0x21c)]['getId'](),'tableId':this[_0x560185(0x250)],'fieldId':_0x3fe47b});}[_0x255b9c(0x255)](){const _0x2d6969=_0x255b9c;return this[_0x2d6969(0x1b9)]()[_0x2d6969(0x167)];}[_0x255b9c(0x22f)](){const _0xd2e490=_0x255b9c;let _0xe48839=this['_base'][_0xd2e490(0x17b)]()[_0xd2e490(0x1a8)]();return _0x11b5f5(this[_0xd2e490(0x1b9)](),_0xe48839);}[_0x255b9c(0x243)](_0x28f34f){const _0xb65a0a=_0x255b9c;let _0xfca378=_0x37a53e(this[_0xb65a0a(0x21c)]['getBase']()[_0xb65a0a(0x1a8)](),_0x28f34f,this[_0xb65a0a(0x250)]);if(!_0xfca378[_0xb65a0a(0x1ef)])throw Error('[FBaseTable]:\x20invalid\x20table\x20name\x20\x22'+_0x28f34f+'\x22.\x20'+_0x164704+'\x20'+_0xfca378['reason']);return this[_0xb65a0a(0x173)][_0xb65a0a(0x289)](_0x2b2433['id'],{'unitId':this[_0xb65a0a(0x21c)]['getId'](),'tableId':this[_0xb65a0a(0x250)],'name':_0x28f34f});}['search'](_0x2755e8,_0x52dc61){const _0x55f598=_0x255b9c;let _0x2e4346=this['_base'][_0x55f598(0x17b)]()[_0x55f598(0x1a8)](),_0x72821c=this[_0x55f598(0x1b9)]();if(_0x52dc61){let _0x320105=this[_0x55f598(0x1e9)]['getProjection'](_0x2e4346,this['_tableId'],_0x52dc61),_0x6bbd31=_0x72821c[_0x55f598(0x20a)][_0x52dc61],_0x514b5a=_0x2755e8['fieldIds']??Tt(_0x72821c,_0x6bbd31,_0x320105),_0x241353=_0x55f598(0x142)in _0x320105&&Array[_0x55f598(0x15a)](_0x320105['rows'])?_0x320105[_0x55f598(0x142)]:[];return _0x2fa43c({..._0x2755e8,'table':_0x72821c,'fieldIds':_0x514b5a,'rows':_0x241353});}let _0x4d4af8=(_0x72821c[_0x55f598(0x1ca)]?_0x72821c[_0x55f598(0x1ca)][_0x55f598(0x258)](_0x87dbea=>_0x72821c[_0x55f598(0x285)][_0x87dbea]):Object['values'](_0x72821c[_0x55f598(0x285)])[_0x55f598(0x1a1)]((_0x1df8d0,_0x3b8926)=>_0x1df8d0[_0x55f598(0x27d)]['localeCompare'](_0x3b8926[_0x55f598(0x27d)])))[_0x55f598(0x177)](_0x40c5dd=>_0x40c5dd)[_0x55f598(0x258)](_0x4244cd=>({'recordId':_0x4244cd['id'],'values':_0x4244cd[_0x55f598(0x220)]})),_0x2937c3=_0x2755e8[_0x55f598(0x18c)]??_0x72821c['fieldOrder'][_0x55f598(0x177)](_0x41d722=>V(_0x72821c[_0x55f598(0x1f6)][_0x41d722]));return _0x2fa43c({..._0x2755e8,'table':_0x72821c,'fieldIds':_0x2937c3,'rows':_0x4d4af8});}[_0x255b9c(0x131)](){const _0xfd7078=_0x255b9c;return this['_getTable']()[_0xfd7078(0x1ee)];}[_0x255b9c(0x162)](){const _0x485f35=_0x255b9c;let _0x841139=this['_getTable']();return _0x841139[_0x485f35(0x23f)]['map'](_0x19da25=>_0x841139[_0x485f35(0x1f6)][_0x19da25])[_0x485f35(0x177)](V)[_0x485f35(0x258)](_0x5853b8=>this[_0x485f35(0x228)][_0x485f35(0x135)](B,this[_0x485f35(0x21c)],this,_0x5853b8['id']));}[_0x255b9c(0x1d2)](_0x24725c){const _0x239f6a=_0x255b9c;let _0x27caa7=this[_0x239f6a(0x1b9)]()['fields'][_0x24725c];return V(_0x27caa7)?this[_0x239f6a(0x228)][_0x239f6a(0x135)](B,this[_0x239f6a(0x21c)],this,_0x27caa7['id']):null;}['getFieldByName'](_0x397b62){const _0x348662=_0x255b9c;let _0x1130f5=this[_0x348662(0x1b9)]()[_0x348662(0x1f6)],_0x16bb61=Object[_0x348662(0x220)](_0x1130f5)[_0x348662(0x175)](_0xcc18a5=>V(_0xcc18a5)&&_0xcc18a5[_0x348662(0x167)]===_0x397b62);return _0x16bb61?this[_0x348662(0x228)][_0x348662(0x135)](B,this[_0x348662(0x21c)],this,_0x16bb61['id']):null;}['getPrimaryField'](){const _0x46fa9c=_0x255b9c;let _0x4f7375=this[_0x46fa9c(0x1b9)]()['primaryFieldId'];return this['_injector'][_0x46fa9c(0x135)](B,this[_0x46fa9c(0x21c)],this,_0x4f7375);}[_0x255b9c(0x1fe)](_0x2aba54,_0x552e6c,_0x35dfaa){const _0x5a9eb7=_0x255b9c;var _0x3b033f,_0x29c8ea;if(!Object[_0x5a9eb7(0x220)](_0x5a9f84)['some'](_0x44cd35=>_0x44cd35===_0x552e6c))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x552e6c)+'\x22.');if(_0x552e6c===_0x5a9f84[_0x5a9eb7(0x293)]&&this[_0x5a9eb7(0x1b8)](_0x2aba54,_0x35dfaa),_0x552e6c===_0x5a9f84['RecordLink']&&(typeof(_0x35dfaa==null||(_0x3b033f=_0x35dfaa[_0x5a9eb7(0x1f0)])==null||(_0x3b033f=_0x3b033f[_0x5a9eb7(0x1c8)])==null?void 0x0:_0x3b033f[_0x5a9eb7(0x14f)])!=_0x5a9eb7(0x1e2)||typeof _0x35dfaa[_0x5a9eb7(0x1f0)][_0x5a9eb7(0x1c8)][_0x5a9eb7(0x132)]!=_0x5a9eb7(0x242)))throw Error(_0x5a9eb7(0x264));let _0x15d9de={..._0x35dfaa==null?void 0x0:_0x35dfaa['field'],'id':_0x3c434b(0x6),'name':_0x2aba54,'type':_0x552e6c,'config':(_0x35dfaa==null||(_0x29c8ea=_0x35dfaa['field'])==null?void 0x0:_0x29c8ea[_0x5a9eb7(0x1c8)])??{}};if(!this[_0x5a9eb7(0x173)][_0x5a9eb7(0x289)](_0x212bc2['id'],{'unitId':this[_0x5a9eb7(0x21c)][_0x5a9eb7(0x1d5)](),'tableId':this['_tableId'],'field':_0x15d9de,'index':_0x35dfaa==null?void 0x0:_0x35dfaa[_0x5a9eb7(0x19d)]}))throw Error(_0x5a9eb7(0x1d7)+_0x2aba54+'\x22');return this[_0x5a9eb7(0x228)][_0x5a9eb7(0x135)](B,this[_0x5a9eb7(0x21c)],this,_0x15d9de['id']);}[_0x255b9c(0x1b8)](_0x525680,_0xeaab03){const _0x23cf9e=_0x255b9c;var _0x2e3b8c;if(!_0xeaab03||!(_0x23cf9e(0x249)in _0xeaab03)||!Array[_0x23cf9e(0x15a)](_0xeaab03[_0x23cf9e(0x249)]))throw Error('Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.');let _0x3a87ef=this[_0x23cf9e(0x173)][_0x23cf9e(0x289)](_0x19f367['id'],{'unitId':this[_0x23cf9e(0x21c)][_0x23cf9e(0x1d5)](),'tableId':this[_0x23cf9e(0x250)],'formula':String(((_0x2e3b8c=_0xeaab03[_0x23cf9e(0x1f0)])==null||(_0x2e3b8c=_0x2e3b8c[_0x23cf9e(0x1c8)])==null?void 0x0:_0x2e3b8c[_0x23cf9e(0x16b)])??'')});if(!_0x3a87ef[_0x23cf9e(0x1ef)])throw Error(_0x3a87ef[_0x23cf9e(0x191)]??_0x23cf9e(0x138));if(_0xeaab03[_0x23cf9e(0x249)][_0x23cf9e(0x244)]>0x0&&!this['_commandService']['syncExecuteCommand'](_0x4384ca['id'],{'unitId':this[_0x23cf9e(0x21c)][_0x23cf9e(0x1d5)](),'references':_0xeaab03[_0x23cf9e(0x249)]}))throw Error('Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22'+_0x525680+'\x22');}['getRecords'](){const _0x3a1501=_0x255b9c;return this[_0x3a1501(0x279)]()[_0x3a1501(0x258)](_0x527218=>this[_0x3a1501(0x228)][_0x3a1501(0x135)](Y,this[_0x3a1501(0x21c)],this,_0x527218,this[_0x3a1501(0x228)]));}[_0x255b9c(0x261)](_0x55bee7){const _0x287361=_0x255b9c;return this['_getTable']()[_0x287361(0x285)][_0x55bee7]?this[_0x287361(0x228)]['createInstance'](Y,this['_base'],this,_0x55bee7,this[_0x287361(0x228)]):null;}['queryRecords'](_0x3ab230={}){const _0x75c053=_0x255b9c;let _0x4296a6=this[_0x75c053(0x1b9)](),_0x13ce8a=this[_0x75c053(0x279)](_0x3ab230),_0x3128f=Math[_0x75c053(0x26b)](0x0,_0x3ab230[_0x75c053(0x24a)]??0x0),_0x4d195e=_0x3ab230[_0x75c053(0x13d)]==null?null:Math[_0x75c053(0x26b)](0x0,_0x3ab230[_0x75c053(0x13d)]),_0x1db263=yt(_0x13ce8a[_0x75c053(0x258)](_0x4406a7=>_0x4296a6[_0x75c053(0x285)][_0x4406a7])['filter'](_0x147a12=>xt(_0x147a12,_0x4296a6,_0x3ab230[_0x75c053(0x177)])),_0x4296a6,_0x3ab230['sort']);return{'records':vt(_0x1db263,_0x3ab230)[_0x75c053(0x258)](_0xa7acc0=>this['_injector'][_0x75c053(0x135)](Y,this[_0x75c053(0x21c)],this,_0xa7acc0['id'],this[_0x75c053(0x228)])),'total':_0x1db263[_0x75c053(0x244)],'offset':_0x3128f,'limit':_0x4d195e,'hasMore':_0x4d195e!=null&&_0x3128f+_0x4d195e<_0x1db263[_0x75c053(0x244)]};}[_0x255b9c(0x156)](_0x56cc9f,_0x221ed8='id',_0x461aba){const _0x5d7bf8=_0x255b9c;let _0x334df9=this[_0x5d7bf8(0x1b9)](),_0x37fd39=Date['now'](),_0x213bf7={..._0x461aba,'id':_0x3c434b(0x6),'values':H(_0x334df9,_0x56cc9f,_0x221ed8),'orderKey':(_0x461aba==null?void 0x0:_0x461aba['orderKey'])||''+_0x37fd39,'createdAt':(_0x461aba==null?void 0x0:_0x461aba[_0x5d7bf8(0x282)])||_0x37fd39,'updatedAt':(_0x461aba==null?void 0x0:_0x461aba[_0x5d7bf8(0x1b0)])||_0x37fd39};if(!this['_commandService'][_0x5d7bf8(0x289)](_0x3c1568['id'],{'unitId':this[_0x5d7bf8(0x21c)][_0x5d7bf8(0x1d5)](),'tableId':this['_tableId'],'record':_0x213bf7,'source':_0x26a1b1[_0x5d7bf8(0x189)]}))throw Error(_0x5d7bf8(0x151)+_0x213bf7['id']+'\x22');return this[_0x5d7bf8(0x228)][_0x5d7bf8(0x135)](Y,this[_0x5d7bf8(0x21c)],this,_0x213bf7['id'],this[_0x5d7bf8(0x228)]);}[_0x255b9c(0x1eb)](_0x5c9ac9){const _0x4bb2b0=_0x255b9c;if(!_0x5c9ac9['length'])return[];let _0x67c289=this[_0x4bb2b0(0x1b9)](),_0x450060=Date[_0x4bb2b0(0x176)](),_0x192650=_0x5c9ac9[_0x4bb2b0(0x258)]((_0x5df508,_0x34a560)=>{const _0x5745f3=_0x4bb2b0;var _0x2ce25a,_0x2bf892,_0x31925c;return{..._0x5df508['record'],'id':_0x3c434b(0x6),'values':H(_0x67c289,_0x5df508['values'],_0x5df508['fieldKey']??'id'),'orderKey':((_0x2ce25a=_0x5df508['record'])==null?void 0x0:_0x2ce25a[_0x5745f3(0x27d)])||''+(_0x450060+_0x34a560),'createdAt':((_0x2bf892=_0x5df508[_0x5745f3(0x270)])==null?void 0x0:_0x2bf892[_0x5745f3(0x282)])||_0x450060,'updatedAt':((_0x31925c=_0x5df508[_0x5745f3(0x270)])==null?void 0x0:_0x31925c['updatedAt'])||_0x450060};});if(!this['_commandService'][_0x4bb2b0(0x289)](_0x26ecd4['id'],{'unitId':this[_0x4bb2b0(0x21c)][_0x4bb2b0(0x1d5)](),'tableId':this['_tableId'],'records':_0x192650,'source':_0x26a1b1[_0x4bb2b0(0x189)]}))throw Error(_0x4bb2b0(0x170));return _0x192650[_0x4bb2b0(0x258)](_0x362975=>this[_0x4bb2b0(0x228)][_0x4bb2b0(0x135)](Y,this[_0x4bb2b0(0x21c)],this,_0x362975['id'],this[_0x4bb2b0(0x228)]));}[_0x255b9c(0x165)](_0x4736c6){const _0x204a64=_0x255b9c;return!_0x4736c6[_0x204a64(0x244)]||this['_commandService']['syncExecuteCommand'](_0x5d33b2['id'],{'unitId':this[_0x204a64(0x21c)][_0x204a64(0x1d5)](),'tableId':this[_0x204a64(0x250)],'recordIds':_0x4736c6,'source':_0x26a1b1['Facade']});}[_0x255b9c(0x260)](_0x93d091,_0x5d4352,_0x287616=0x1,_0x102f70=0x1){const _0x5190c3=_0x255b9c;return this[_0x5190c3(0x228)][_0x5190c3(0x135)](K,this['_base'],this,{'startRow':_0x93d091,'endRow':_0x93d091+_0x287616-0x1,'startColumn':_0x5d4352,'endColumn':_0x5d4352+_0x102f70-0x1},this[_0x5190c3(0x228)]);}['getDataRange'](){const _0x4b6831=_0x255b9c;var _0x232ea9;let _0x77b32=_0x52efd3(this['_getTable']()),_0x414915=((_0x232ea9=_0x77b32[_0x4b6831(0x1ca)])==null?void 0x0:_0x232ea9[_0x4b6831(0x244)])??0x0,_0x3ef637=_0x77b32[_0x4b6831(0x23f)]['filter'](_0x23b303=>V(_0x77b32[_0x4b6831(0x1f6)][_0x23b303]))[_0x4b6831(0x244)];return this[_0x4b6831(0x260)](0x0,0x0,Math[_0x4b6831(0x26b)](_0x414915,0x1),Math[_0x4b6831(0x26b)](_0x3ef637,0x1));}[_0x255b9c(0x1aa)](){const _0x2197c6=_0x255b9c;let _0x33622c=this[_0x2197c6(0x1b9)]();return _0x33622c[_0x2197c6(0x1db)][_0x2197c6(0x177)](_0x3f7ff8=>_0x33622c['views'][_0x3f7ff8])[_0x2197c6(0x258)](_0x3e779a=>this[_0x2197c6(0x228)][_0x2197c6(0x135)](X,this[_0x2197c6(0x21c)],this,_0x3e779a,this[_0x2197c6(0x228)]));}['getViewById'](_0x39c295){const _0x3a74b1=_0x255b9c;return this[_0x3a74b1(0x1b9)]()[_0x3a74b1(0x20a)][_0x39c295]?this['_injector'][_0x3a74b1(0x135)](X,this[_0x3a74b1(0x21c)],this,_0x39c295,this[_0x3a74b1(0x228)]):null;}['getViewByName'](_0x17d37c){const _0x152b6f=_0x255b9c;let _0x178f54=this[_0x152b6f(0x1b9)](),_0x3bb1da=Object[_0x152b6f(0x220)](_0x178f54[_0x152b6f(0x20a)])[_0x152b6f(0x175)](_0x1cce83=>_0x1cce83[_0x152b6f(0x167)]===_0x17d37c);return _0x3bb1da?this[_0x152b6f(0x228)][_0x152b6f(0x135)](X,this[_0x152b6f(0x21c)],this,_0x3bb1da['id'],this[_0x152b6f(0x228)]):null;}[_0x255b9c(0x136)](_0xff489f,_0x33d708,_0x4b36be){const _0x3697fa=_0x255b9c;var _0x18a26e,_0xb6fc1e,_0x1203e3,_0x385041;let _0x141b01=this[_0x3697fa(0x1b9)](),_0x53a0fb=[_0x340451,...((_0x4b36be==null||(_0x18a26e=_0x4b36be[_0x3697fa(0x1ed)])==null?void 0x0:_0x18a26e[_0x3697fa(0x23f)])??_0x141b01[_0x3697fa(0x23f)])[_0x3697fa(0x177)](_0x1b5175=>V(_0x141b01[_0x3697fa(0x1f6)][_0x1b5175]))],_0x58df80={..._0x4b36be==null?void 0x0:_0x4b36be[_0x3697fa(0x1ed)],'id':_0x3c434b(0x6),'name':_0xff489f,'type':_0x33d708,'tableId':this['_tableId'],'config':(_0x4b36be==null||(_0xb6fc1e=_0x4b36be['view'])==null?void 0x0:_0xb6fc1e['config'])??{},'fieldOrder':_0x53a0fb,'fieldSettings':{..._0x4b36be==null||(_0x1203e3=_0x4b36be['view'])==null?void 0x0:_0x1203e3[_0x3697fa(0x198)],[_0x340451]:{..._0x4b36be==null||(_0x385041=_0x4b36be[_0x3697fa(0x1ed)])==null||(_0x385041=_0x385041['fieldSettings'])==null?void 0x0:_0x385041[_0x340451],'hidden':!0x0}}};if(!this[_0x3697fa(0x173)][_0x3697fa(0x289)](_0x5defbd['id'],{'unitId':this[_0x3697fa(0x21c)]['getId'](),'tableId':this[_0x3697fa(0x250)],'view':_0x58df80,'index':_0x4b36be==null?void 0x0:_0x4b36be[_0x3697fa(0x19d)]}))throw Error('Failed\x20to\x20create\x20view\x20\x22'+_0xff489f+'\x22');return this[_0x3697fa(0x228)][_0x3697fa(0x135)](X,this[_0x3697fa(0x21c)],this,_0x58df80['id'],this['_injector']);}[_0x255b9c(0x1d0)](){const _0x11f039=_0x255b9c;let _0x216bcc=this['_getTable'](),_0x98ad30=_0x216bcc[_0x11f039(0x23f)][_0x11f039(0x177)](_0x2007f2=>V(_0x216bcc['fields'][_0x2007f2])),_0x2aa4a1=_0x216bcc[_0x11f039(0x1db)]['filter'](_0x4c88c6=>_0x216bcc['views'][_0x4c88c6]);return{'id':_0x216bcc['id'],'name':_0x216bcc[_0x11f039(0x167)],'formulaName':this[_0x11f039(0x22f)](),'primaryFieldId':_0x216bcc[_0x11f039(0x1ee)],'fieldIds':_0x98ad30,'viewIds':_0x2aa4a1,'recordCount':this[_0x11f039(0x279)]()[_0x11f039(0x244)],'fields':_0x98ad30[_0x11f039(0x258)](_0x3ebccb=>{const _0x588729=_0x11f039;let _0x2b84c8=_0x216bcc[_0x588729(0x1f6)][_0x3ebccb];return{'id':_0x2b84c8['id'],'name':_0x2b84c8['name'],'type':_0x2b84c8[_0x588729(0x1b1)],'config':_0x2b84c8[_0x588729(0x1c8)],'readonly':_0x2b84c8[_0x588729(0x214)],'description':_0x2b84c8[_0x588729(0x181)]};}),'views':_0x2aa4a1[_0x11f039(0x258)](_0x10d01a=>{const _0x54e6e1=_0x11f039;let _0x192bfa=_0x216bcc[_0x54e6e1(0x20a)][_0x10d01a];return{'id':_0x192bfa['id'],'name':_0x192bfa[_0x54e6e1(0x167)],'type':_0x192bfa[_0x54e6e1(0x1b1)]};})};}[_0x255b9c(0x1b9)](){const _0x4aa030=_0x255b9c;let _0x4fc9c0=this[_0x4aa030(0x21c)][_0x4aa030(0x17b)]()['getSnapshot']()[_0x4aa030(0x295)][this[_0x4aa030(0x250)]];if(!_0x4fc9c0)throw Error(_0x4aa030(0x149)+this[_0x4aa030(0x250)]+_0x4aa030(0x280));return _0x4fc9c0;}[_0x255b9c(0x279)](_0x1bfe49={}){const _0x80b7e2=_0x255b9c;let _0x5bf3f1=this[_0x80b7e2(0x21c)][_0x80b7e2(0x17b)]()[_0x80b7e2(0x1a8)](),_0x51ceca=this[_0x80b7e2(0x1b9)]();if(_0x1bfe49[_0x80b7e2(0x1e8)]){let _0x4716a8=this[_0x80b7e2(0x1e9)]['getProjection'](_0x5bf3f1,this[_0x80b7e2(0x250)],_0x1bfe49[_0x80b7e2(0x1e8)]);if('rows'in _0x4716a8&&Array['isArray'](_0x4716a8[_0x80b7e2(0x142)]))return _0x4716a8[_0x80b7e2(0x142)][_0x80b7e2(0x258)](_0x3ab68d=>_0x3ab68d['recordId']);}return(_0x51ceca[_0x80b7e2(0x1ca)]?_0x51ceca['recordOrder'][_0x80b7e2(0x258)](_0x599049=>_0x51ceca[_0x80b7e2(0x285)][_0x599049]):Object['values'](_0x51ceca[_0x80b7e2(0x285)])[_0x80b7e2(0x1a1)]((_0x5daa43,_0x45da21)=>_0x5daa43[_0x80b7e2(0x27d)][_0x80b7e2(0x164)](_0x45da21[_0x80b7e2(0x27d)])))[_0x80b7e2(0x177)](_0xbd6263=>_0xbd6263)[_0x80b7e2(0x258)](_0x390ac6=>_0x390ac6['id']);}};Z=z([R(0x3,_0x48b079),R(0x4,_0x598bd4),R(0x5,_0x5dc870)],Z);function vt(_0x141544,_0x1691bb){const _0x551655=_0x255b9c;let _0x3cb4c4=Math[_0x551655(0x26b)](0x0,_0x1691bb[_0x551655(0x24a)]??0x0);return _0x1691bb['limit']==null?_0x141544[_0x551655(0x298)](_0x3cb4c4):_0x141544[_0x551655(0x298)](_0x3cb4c4,_0x3cb4c4+Math[_0x551655(0x26b)](0x0,_0x1691bb[_0x551655(0x13d)]));}function yt(_0x59f79d,_0x2bf039,_0x1171f0=[]){const _0x12c029=_0x255b9c;return _0x1171f0[_0x12c029(0x244)]?[..._0x59f79d][_0x12c029(0x1a1)]((_0x549575,_0x8e2bf3)=>{const _0x54c764=_0x12c029;for(let _0x35f88c of _0x1171f0){var _0x183b24;let _0x141748=_0x35f88c[_0x54c764(0x199)]===_0x4805ed[_0x54c764(0x1d8)]?-0x1:0x1,_0x4ce539=bt(_0x549575[_0x54c764(0x220)][_0x35f88c['fieldId']],_0x8e2bf3[_0x54c764(0x220)][_0x35f88c[_0x54c764(0x248)]],(_0x183b24=_0x2bf039[_0x54c764(0x1f6)][_0x35f88c[_0x54c764(0x248)]])==null?void 0x0:_0x183b24[_0x54c764(0x1b1)]);if(_0x4ce539!==0x0)return _0x4ce539*_0x141748;}return String(_0x549575['orderKey']??_0x549575['id'])[_0x54c764(0x164)](String(_0x8e2bf3[_0x54c764(0x27d)]??_0x8e2bf3['id']));}):_0x59f79d;}function bt(_0xbcfb56,_0x2e17e2,_0x288b80){const _0x5eeca5=_0x255b9c;return _0xbcfb56==null&&_0x2e17e2==null?0x0:_0xbcfb56==null?-0x1:_0x2e17e2==null?0x1:typeof _0xbcfb56==_0x5eeca5(0x1a4)&&typeof _0x2e17e2=='number'?_0xbcfb56-_0x2e17e2:_0x288b80===_0x5a9f84[_0x5eeca5(0x25d)]?Number(_0xbcfb56)-Number(_0x2e17e2):String(_0xbcfb56)['localeCompare'](String(_0x2e17e2));}function xt(_0x29e805,_0x329870,_0x709d20){const _0x2b8c38=_0x255b9c;var _0x559585;if(!_0x709d20||!((_0x559585=_0x709d20[_0x2b8c38(0x1a6)])!=null&&_0x559585['length']))return!0x0;let {conjunction:_0x4b3890=_0x18bd2e['OR'],conditions:_0x4e6bbd}=_0x709d20;return _0x4b3890===_0x18bd2e[_0x2b8c38(0x192)]&&_0x4e6bbd[_0x2b8c38(0x244)]>0x1?_0x4e6bbd['every'](_0x316c1c=>St(_0x29e805,_0x329870,_0x316c1c)):_0x4e6bbd[_0x2b8c38(0x25f)](_0x5a7b0d=>St(_0x29e805,_0x329870,_0x5a7b0d));}function St(_0x3b8200,_0x58afe9,_0x1b8721){const _0xcb3b07=_0x255b9c;let _0x58fc6a=_0x3b8200[_0xcb3b07(0x220)][_0x1b8721[_0xcb3b07(0x248)]],_0x4bb73a=_0x58afe9['fields'][_0x1b8721['fieldId']];if(Ct(_0x1b8721)){let _0x36a46b=wt(_0x1b8721)[_0xcb3b07(0x1cd)](String(_0x58fc6a??''));return _0x1b8721['operator']===_0xcb3b07(0x18b)?_0x36a46b:!_0x36a46b;}return!_0x4bb73a||_0x2a0730(_0x58fc6a,_0x1b8721[_0xcb3b07(0x21b)],_0x1b8721[_0xcb3b07(0x27b)],_0x4bb73a);}function Ct(_0x33e7aa){const _0x4c44ec=_0x255b9c;return _0x33e7aa[_0x4c44ec(0x21b)]===_0x4c44ec(0x18b)||_0x33e7aa['operator']==='notMatches';}function wt(_0x3772f7){const _0x57f129=_0x255b9c;let _0x125702=String(_0x3772f7[_0x57f129(0x27b)]??'');if(_0x125702[_0x57f129(0x244)]>0x200)throw Error('Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.');try{return new RegExp(_0x125702,_0x3772f7[_0x57f129(0x213)]?void 0x0:'i');}catch(_0x5b88d7){throw Error(_0x57f129(0x1e7)+_0x125702+'.\x20'+(_0x5b88d7 instanceof Error?_0x5b88d7[_0x57f129(0x203)]:String(_0x5b88d7)));}}function Tt(_0x43d2d7,_0xcb793a,_0x4323f6){const _0x33872d=_0x255b9c;if(_0x4323f6[_0x33872d(0x1b1)]!==_0x33872d(0x152)&&_0x4323f6[_0x33872d(0x1b1)]!=='custom'){var _0x2c3e8c;if(_0x4323f6[_0x33872d(0x1b1)]===_0x51da59['Kanban']){var _0xce217d;let _0x408610=[((_0xce217d=_0x4323f6[_0x33872d(0x1f6)])==null||(_0xce217d=_0xce217d[0x0])==null?void 0x0:_0xce217d['id'])??_0x43d2d7[_0x33872d(0x1ee)],..._0x4323f6[_0x33872d(0x168)]??[]];return Array['from'](new Set(_0x408610['filter'](_0x2a853d=>!!_0x43d2d7[_0x33872d(0x1f6)][_0x2a853d])));}if((_0x2c3e8c=_0x4323f6[_0x33872d(0x1f6)])!=null&&_0x2c3e8c[_0x33872d(0x244)])return _0x4323f6[_0x33872d(0x1f6)]['map'](_0x5d2607=>_0x5d2607['id'])['filter'](_0x1f162c=>{const _0x44d6be=_0x33872d;var _0x17d2f0;return!!(_0x43d2d7[_0x44d6be(0x1f6)][_0x1f162c]&&!(_0xcb793a!=null&&(_0x17d2f0=_0xcb793a[_0x44d6be(0x198)])!=null&&(_0x17d2f0=_0x17d2f0[_0x1f162c])!=null&&_0x17d2f0['hidden']));});}return _0x43d2d7[_0x33872d(0x23f)][_0x33872d(0x177)](_0x57f6d1=>{const _0x237481=_0x33872d;var _0x2e412b;return!!(_0x43d2d7['fields'][_0x57f6d1]&&!(_0xcb793a!=null&&(_0x2e412b=_0xcb793a[_0x237481(0x198)])!=null&&(_0x2e412b=_0x2e412b[_0x57f6d1])!=null&&_0x2e412b['hidden']));});}let Q=class extends _0x49a774[_0x255b9c(0x256)]{constructor(_0x485275,_0x2238cf,_0x2bc898,_0x377067,_0x106bc3){const _0x1f22bd=_0x255b9c;super(),this['_base']=_0x485275,this[_0x1f22bd(0x228)]=_0x2238cf,this[_0x1f22bd(0x241)]=_0x2bc898,this['_commandService']=_0x377067,this[_0x1f22bd(0x16d)]=_0x106bc3;}['getBase'](){const _0x3568a2=_0x255b9c;return this[_0x3568a2(0x21c)];}[_0x255b9c(0x1d5)](){const _0x159c29=_0x255b9c;return this[_0x159c29(0x21c)]['getUnitId']();}[_0x255b9c(0x14b)](){const _0x5d0ee6=_0x255b9c;return new at(this[_0x5d0ee6(0x1d5)](),this[_0x5d0ee6(0x173)],this[_0x5d0ee6(0x16d)]);}['save'](){const _0x169fac=_0x255b9c;return this[_0x169fac(0x241)][_0x169fac(0x251)](this[_0x169fac(0x1d5)]())??_0x111647[_0x169fac(0x1bc)](this[_0x169fac(0x21c)]['getSnapshot']());}['getName'](){const _0x5b3db9=_0x255b9c;return this[_0x5b3db9(0x21c)]['getSnapshot']()['name'];}[_0x255b9c(0x243)](_0x1a8f73){const _0x2a45a0=_0x255b9c;this[_0x2a45a0(0x173)]['syncExecuteCommand'](_0x2ece12['id'],{'unitId':this[_0x2a45a0(0x1d5)](),'name':_0x1a8f73});}[_0x255b9c(0x130)](){const _0x28dadc=_0x255b9c;let _0x2e4acd=this[_0x28dadc(0x21c)][_0x28dadc(0x1a8)]();return _0x2e4acd[_0x28dadc(0x180)][_0x28dadc(0x258)](_0x4e8af6=>_0x2e4acd[_0x28dadc(0x295)][_0x4e8af6])[_0x28dadc(0x177)](_0x57755d=>_0x57755d)[_0x28dadc(0x258)](_0x33a1dd=>this[_0x28dadc(0x228)][_0x28dadc(0x135)](Z,this,_0x33a1dd['id'],this['_injector']));}['getTableById'](_0x16f30f){const _0x2f2190=_0x255b9c;let _0x3f24c7=this[_0x2f2190(0x21c)]['getSnapshot']()['tables'][_0x16f30f];return _0x3f24c7?this[_0x2f2190(0x228)][_0x2f2190(0x135)](Z,this,_0x3f24c7['id'],this[_0x2f2190(0x228)]):null;}[_0x255b9c(0x278)](_0xf0401a){const _0x45f863=_0x255b9c;let _0x2bd755=this['_base'][_0x45f863(0x1a8)](),_0x575f8c=Object[_0x45f863(0x220)](_0x2bd755[_0x45f863(0x295)])[_0x45f863(0x175)](_0x5b2ec5=>_0x5b2ec5[_0x45f863(0x167)]===_0xf0401a);return _0x575f8c?this[_0x45f863(0x228)][_0x45f863(0x135)](Z,this,_0x575f8c['id'],this[_0x45f863(0x228)]):null;}[_0x255b9c(0x1c2)](_0x9cbf1b,_0x7b28cd){const _0x3bd121=_0x255b9c;let _0x40abf4=_0x2efaf6({'id':_0x3c434b(),'name':_0x9cbf1b,..._0x7b28cd==null?void 0x0:_0x7b28cd[_0x3bd121(0x18f)],'primaryFieldName':_0x7b28cd==null?void 0x0:_0x7b28cd[_0x3bd121(0x1ab)]}),_0x597936=_0x111647[_0x3bd121(0x1ae)](_0x40abf4,(_0x7b28cd==null?void 0x0:_0x7b28cd[_0x3bd121(0x18f)])??{}),_0x8bc19d=_0x37a53e(this['_base']['getSnapshot'](),_0x597936[_0x3bd121(0x167)]);if(!_0x8bc19d[_0x3bd121(0x1ef)])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0x597936['name']+'\x22.\x20'+_0x164704+'\x20'+_0x8bc19d['reason']);if(!this[_0x3bd121(0x173)]['syncExecuteCommand'](_0x3f138a['id'],{'unitId':this['_base']['getUnitId'](),'table':_0x597936,'index':_0x7b28cd==null?void 0x0:_0x7b28cd[_0x3bd121(0x19d)]}))throw Error(_0x3bd121(0x22e)+_0x9cbf1b+'\x22.');return this[_0x3bd121(0x228)]['createInstance'](Z,this,_0x597936['id'],this[_0x3bd121(0x228)]);}[_0x255b9c(0x23e)](_0x3ea44e){const _0x2d8f9a=_0x255b9c;let _0x36c007=typeof _0x3ea44e=='string'?_0x3ea44e:_0x3ea44e[_0x2d8f9a(0x1d5)]();if(!this[_0x2d8f9a(0x173)]['syncExecuteCommand'](_0x101f60['id'],{'unitId':this[_0x2d8f9a(0x21c)]['getUnitId'](),'tableId':_0x36c007}))throw Error('Failed\x20to\x20delete\x20table\x20\x22'+_0x36c007+'\x22.');return!0x0;}[_0x255b9c(0x19f)](_0x8d9d4a,_0x4eff60){const _0x2c42a0=_0x255b9c;let _0x3af7c4=this[_0x2c42a0(0x21c)][_0x2c42a0(0x1a8)](),_0x1a231b=typeof _0x8d9d4a=='string'?_0x8d9d4a:_0x8d9d4a[_0x2c42a0(0x1d5)](),_0x4eb92e=_0x3af7c4[_0x2c42a0(0x295)][_0x1a231b];if(!_0x4eb92e)throw Error(_0x2c42a0(0x17e)+_0x1a231b+'\x22\x20does\x20not\x20exist.');let _0x395a7e=_0x3af7c4[_0x2c42a0(0x180)][_0x2c42a0(0x13c)](_0x1a231b)+0x1,_0x217ec8=_0x5f5da3(_0x4eb92e,{'id':_0x3c434b(),'name':_0x5365a5(_0x3af7c4,_0x4eb92e[_0x2c42a0(0x167)]+_0x2c42a0(0x246)),'includeRecords':(_0x4eff60==null?void 0x0:_0x4eff60[_0x2c42a0(0x292)])??!0x1,'regenerateViewIds':(_0x4eff60==null?void 0x0:_0x4eff60[_0x2c42a0(0x20e)])??!0x1});if(!this[_0x2c42a0(0x173)][_0x2c42a0(0x289)](_0x3f138a['id'],{'unitId':this['_base']['getUnitId'](),'table':_0x217ec8,'index':_0x395a7e}))throw Error(_0x2c42a0(0x1c1)+_0x1a231b+'\x22.');return this[_0x2c42a0(0x228)][_0x2c42a0(0x135)](Z,this,_0x217ec8['id'],this[_0x2c42a0(0x228)]);}['getSchema'](){const _0x1fc48c=_0x255b9c;let _0x42a8c0=this['_base'][_0x1fc48c(0x1a8)]();return{'id':_0x42a8c0['id'],'name':_0x42a8c0[_0x1fc48c(0x167)],'tables':this[_0x1fc48c(0x130)]()[_0x1fc48c(0x258)](_0x22d168=>_0x22d168[_0x1fc48c(0x1d0)]())};}};Q=z([R(0x1,_0x58f356(_0xe1256a)),R(0x2,_0xa2062d),R(0x3,_0x48b079),R(0x4,_0x598bd4)],Q);var Et=class extends _0x522601{[_0x255b9c(0x1ce)](){const _0x484208=_0x255b9c;this['_initBaseBeforeEvents'](),this[_0x484208(0x26d)]();}[_0x255b9c(0x24b)](_0x293655={},_0x5577ce){const _0x2c4fa9=_0x255b9c;let _0x43e800=this[_0x2c4fa9(0x1e6)]['createUnit'](_0x5da463[_0x2c4fa9(0x235)],_0x293655,_0x5577ce);return this[_0x2c4fa9(0x228)][_0x2c4fa9(0x135)](Q,_0x43e800);}[_0x255b9c(0x19b)](){const _0xc56890=_0x255b9c;let _0x2a785e=this['_univerInstanceService'][_0xc56890(0x247)](_0x5da463[_0xc56890(0x235)]);return _0x2a785e?this[_0xc56890(0x228)][_0xc56890(0x135)](Q,_0x2a785e):null;}[_0x255b9c(0x17b)](_0x3a3f76){const _0x2738ba=_0x255b9c;let _0x325198=this[_0x2738ba(0x1e6)][_0x2738ba(0x1cb)](_0x3a3f76,_0x5da463[_0x2738ba(0x235)]);return _0x325198?this['_injector'][_0x2738ba(0x135)](Q,_0x325198):null;}[_0x255b9c(0x28e)](){const _0x7c53cc=_0x255b9c;return this[_0x7c53cc(0x1e6)][_0x7c53cc(0x18e)](_0x5da463['UNIVER_BASE'])[_0x7c53cc(0x258)](_0x85ea9a=>this[_0x7c53cc(0x228)]['createInstance'](Q,_0x85ea9a));}[_0x255b9c(0x26d)](){const _0x63b00f=_0x255b9c;this[_0x63b00f(0x1c5)](this[_0x63b00f(0x1f1)](this[_0x63b00f(0x1ea)][_0x63b00f(0x13e)],()=>this[_0x63b00f(0x173)]['onCommandExecuted']((_0x2f61ff,_0x27b3a4)=>{const _0x487179=_0x63b00f;var _0x1a7126;if(!$(_0x2f61ff,_0x86ab8d))return;let _0x289fb4=_0x2f61ff['params'];if(!((_0x1a7126=_0x289fb4[_0x487179(0x169)])!=null&&_0x1a7126[_0x487179(0x244)]))return;let _0x162969=this['getBase'](_0x289fb4[_0x487179(0x16e)]),_0x38ec38=_0x162969==null?void 0x0:_0x162969[_0x487179(0x237)](_0x289fb4['hierarchyChanges'][0x0][_0x487179(0x252)]);if(!_0x162969||!_0x38ec38)return;let _0x5d365b={'base':_0x162969,'table':_0x38ec38,'changes':_0x289fb4[_0x487179(0x169)],'source':_0x27b3a4!=null&&_0x27b3a4[_0x487179(0x133)]?_0x26a1b1[_0x487179(0x226)]:_0x289fb4[_0x487179(0x17d)]??_0x26a1b1['UI']};this['fireEvent'](this[_0x487179(0x1ea)][_0x487179(0x13e)],_0x5d365b);}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x63b00f(0x1ea)][_0x63b00f(0x190)],()=>this[_0x63b00f(0x173)][_0x63b00f(0x229)](_0x4a89f0=>{const _0x95ae16=_0x63b00f;if(_0x4a89f0['id']!==_0x3f138a['id'])return;let {unitId:_0x13a4a9,table:_0x39bfe4,index:_0x2745ac}=_0x4a89f0['params'],_0x1ecc23=this['getBase'](_0x13a4a9);if(!_0x1ecc23)return;let _0x5dd216={'base':_0x1ecc23,'table':_0x39bfe4,'index':_0x2745ac};this[_0x95ae16(0x1cc)](this[_0x95ae16(0x1ea)][_0x95ae16(0x190)],_0x5dd216);}))),this[_0x63b00f(0x1c5)](this[_0x63b00f(0x1f1)](this[_0x63b00f(0x1ea)][_0x63b00f(0x157)],()=>this['_commandService'][_0x63b00f(0x229)](_0xd65082=>{const _0x54d68a=_0x63b00f;if(_0xd65082['id']!==_0x212bc2['id'])return;let {unitId:_0x2cf361,tableId:_0x54e457,field:_0x45c2e4,index:_0x1fb97d,viewIndexes:_0x54f1f5}=_0xd65082[_0x54d68a(0x1c0)],_0x5762db=this[_0x54d68a(0x17b)](_0x2cf361);if(!_0x5762db)return;let _0x48766e=_0x5762db[_0x54d68a(0x237)](_0x54e457);if(!_0x48766e)return;let _0x45c504={'base':_0x5762db,'table':_0x48766e,'field':_0x45c2e4,'index':_0x1fb97d,'viewIndexes':_0x54f1f5};this[_0x54d68a(0x1cc)](this['Event']['BaseTableFieldCreated'],_0x45c504);}))),this[_0x63b00f(0x1c5)](this[_0x63b00f(0x1f1)](this[_0x63b00f(0x1ea)][_0x63b00f(0x23b)],()=>this[_0x63b00f(0x173)][_0x63b00f(0x229)](_0x1fe255=>{const _0x4a994b=_0x63b00f;if(_0x1fe255['id']!==_0x3c1568['id']&&_0x1fe255['id']!==_0x26ecd4['id'])return;let _0xe5702=_0x1fe255[_0x4a994b(0x1c0)],{unitId:_0xe96137,tableId:_0x418de8}=_0xe5702,_0x5d0dda=_0xe5702[_0x4a994b(0x285)]??[_0xe5702['record']],_0x263664=this[_0x4a994b(0x17b)](_0xe96137);if(!_0x263664)return;let _0xe3cee5=_0x263664[_0x4a994b(0x237)](_0x418de8);if(!_0xe3cee5)return;let _0xe6bb99={'base':_0x263664,'table':_0xe3cee5,'records':_0x5d0dda};this[_0x4a994b(0x1cc)](this[_0x4a994b(0x1ea)][_0x4a994b(0x23b)],_0xe6bb99);}))),this[_0x63b00f(0x1c5)](this[_0x63b00f(0x1f1)](this[_0x63b00f(0x1ea)]['BaseTableViewCreated'],()=>this['_commandService'][_0x63b00f(0x229)](_0x5e9734=>{const _0x3609db=_0x63b00f;if(_0x5e9734['id']!==_0x5defbd['id'])return;let {unitId:_0x5d6625,tableId:_0x334d1e,view:_0x59f964,index:_0x29f810}=_0x5e9734[_0x3609db(0x1c0)],_0x579153=this[_0x3609db(0x17b)](_0x5d6625);if(!_0x579153)return;let _0x329c36=_0x579153[_0x3609db(0x237)](_0x334d1e);if(!_0x329c36)return;let _0x25a14a={'base':_0x579153,'table':_0x329c36,'view':_0x59f964,'index':_0x29f810};this[_0x3609db(0x1cc)](this[_0x3609db(0x1ea)][_0x3609db(0x284)],_0x25a14a);}))),this[_0x63b00f(0x1c5)](this[_0x63b00f(0x1f1)](this[_0x63b00f(0x1ea)][_0x63b00f(0x267)],()=>this['_commandService'][_0x63b00f(0x229)](_0x277ae3=>{const _0x1c5174=_0x63b00f;if(_0x277ae3['id']!==_0x1a4fa7['id'])return;let {unitId:_0x2ef969,tableId:_0x33940b,recordId:_0x4f9ba0,fieldId:_0x4677f7,value:_0x2f36c9}=_0x277ae3['params'],_0x16f6f7=this[_0x1c5174(0x17b)](_0x2ef969);if(!_0x16f6f7)return;let _0x99aba5=_0x16f6f7[_0x1c5174(0x237)](_0x33940b);if(!_0x99aba5)return;let _0x1ef8f5=_0x99aba5[_0x1c5174(0x1d2)](_0x4677f7);if(!_0x1ef8f5)return;let _0x4be248=_0x99aba5[_0x1c5174(0x261)](_0x4f9ba0);if(!_0x4be248)return;let _0x228b6e={'base':_0x16f6f7,'table':_0x99aba5,'field':_0x1ef8f5,'record':_0x4be248,'value':_0x2f36c9};this[_0x1c5174(0x1cc)](this['Event'][_0x1c5174(0x267)],_0x228b6e);})));}[_0x255b9c(0x276)](){const _0x170641=_0x255b9c;this['disposeWithMe'](this[_0x170641(0x1f1)](this[_0x170641(0x1ea)][_0x170641(0x238)],()=>this[_0x170641(0x173)][_0x170641(0x27c)](_0x504e12=>{const _0x5e8632=_0x170641;if($(_0x504e12,_0x37fd97)){let {unitId:_0x5950eb,tableId:_0x50a611,patches:_0x934648,source:_0x27141c=_0x26a1b1['UI']}=_0x504e12[_0x5e8632(0x1c0)],_0x25cf41=this[_0x5e8632(0x1a2)](_0x5950eb,_0x50a611);if(!_0x25cf41)return;this[_0x5e8632(0x286)](_0x25cf41[_0x5e8632(0x21f)],_0x25cf41['table'],_0x689faf(_0x25cf41[_0x5e8632(0x18f)]['getTable'](),_0x934648),_0x27141c);return;}if($(_0x504e12,_0x5c54c3)){let {unitId:_0x3b6b24,tableId:_0x24f52e,patches:_0x159794,source:_0x2bebb8=_0x26a1b1['UI']}=_0x504e12[_0x5e8632(0x1c0)],_0x287f94=this[_0x5e8632(0x1a2)](_0x3b6b24,_0x24f52e);if(!_0x287f94)return;let _0x437373=_0x287f94['table'][_0x5e8632(0x147)]();this[_0x5e8632(0x286)](_0x287f94[_0x5e8632(0x21f)],_0x287f94[_0x5e8632(0x18f)],_0x689faf(_0x437373,_0x49c0c5(_0x437373,_0x159794)),_0x2bebb8);return;}if($(_0x504e12,_0x3c1568)){let _0xd57049=_0x504e12[_0x5e8632(0x1c0)],_0x43e864=this[_0x5e8632(0x1a2)](_0xd57049['unitId'],_0xd57049['tableId']);if(!_0x43e864)return;this[_0x5e8632(0x286)](_0x43e864['base'],_0x43e864['table'],_0x11e3d0(_0x43e864[_0x5e8632(0x18f)][_0x5e8632(0x147)](),[_0xd57049[_0x5e8632(0x270)]]),_0xd57049[_0x5e8632(0x17d)]??_0x26a1b1['UI']);return;}if($(_0x504e12,_0x26ecd4)){let _0x4da862=_0x504e12['params'],_0x3beec6=this[_0x5e8632(0x1a2)](_0x4da862[_0x5e8632(0x16e)],_0x4da862[_0x5e8632(0x252)]);if(!_0x3beec6)return;this[_0x5e8632(0x286)](_0x3beec6[_0x5e8632(0x21f)],_0x3beec6[_0x5e8632(0x18f)],_0x11e3d0(_0x3beec6[_0x5e8632(0x18f)][_0x5e8632(0x147)](),_0x4da862[_0x5e8632(0x285)]),_0x4da862['source']??_0x26a1b1['UI']);return;}if($(_0x504e12,_0x4bb998)){let _0x29f93b=_0x504e12[_0x5e8632(0x1c0)],_0x247f73=this[_0x5e8632(0x1a2)](_0x29f93b[_0x5e8632(0x16e)],_0x29f93b[_0x5e8632(0x252)]);if(!_0x247f73)return;this[_0x5e8632(0x286)](_0x247f73['base'],_0x247f73[_0x5e8632(0x18f)],_0x11e3d0(_0x247f73[_0x5e8632(0x18f)][_0x5e8632(0x147)](),[_0x29f93b[_0x5e8632(0x270)]]),_0x29f93b[_0x5e8632(0x17d)]??_0x26a1b1['UI']);return;}if($(_0x504e12,_0xe38a8d)){let _0x140b2e=_0x504e12[_0x5e8632(0x1c0)],_0x305de8=this[_0x5e8632(0x1a2)](_0x140b2e[_0x5e8632(0x16e)],_0x140b2e[_0x5e8632(0x252)]);if(!_0x305de8)return;let _0x11fa4a=_0x305de8[_0x5e8632(0x18f)][_0x5e8632(0x147)](),_0x3a1df8=_0x140b2e[_0x5e8632(0x248)]??_0x5443ab(_0x11fa4a),_0x1729f8=_0x5b28b2(_0x11fa4a,_0x3a1df8)[_0x5e8632(0x1f3)][_0x5e8632(0x187)](_0x140b2e[_0x5e8632(0x1a9)])??null;this[_0x5e8632(0x286)](_0x305de8['base'],_0x305de8['table'],[{'tableId':_0x140b2e[_0x5e8632(0x252)],'fieldId':_0x3a1df8,'recordId':_0x140b2e[_0x5e8632(0x1a9)],'oldParentRecordId':_0x1729f8,'parentRecordId':_0x140b2e[_0x5e8632(0x1ac)]}],_0x140b2e[_0x5e8632(0x17d)]??_0x26a1b1['UI']);return;}if($(_0x504e12,_0x1c1a12)){let _0x5bfd92=_0x504e12[_0x5e8632(0x1c0)],_0x30e10d=this[_0x5e8632(0x1a2)](_0x5bfd92[_0x5e8632(0x16e)],_0x5bfd92['tableId']);if(!_0x30e10d)return;let _0x2d0c94=_0x5bfd92['fieldId']??_0x5443ab(_0x30e10d['table'][_0x5e8632(0x147)]());this[_0x5e8632(0x286)](_0x30e10d[_0x5e8632(0x21f)],_0x30e10d[_0x5e8632(0x18f)],[{'tableId':_0x5bfd92[_0x5e8632(0x252)],'fieldId':_0x2d0c94,'recordId':_0x5bfd92[_0x5e8632(0x270)]['id'],'oldParentRecordId':null,'parentRecordId':_0x5bfd92[_0x5e8632(0x1ac)]}],_0x5bfd92[_0x5e8632(0x17d)]??_0x26a1b1['UI']);return;}if($(_0x504e12,_0x228881)){let _0x26d8eb=_0x504e12[_0x5e8632(0x1c0)],_0x4b9b6b=this[_0x5e8632(0x1a2)](_0x26d8eb[_0x5e8632(0x16e)],_0x26d8eb[_0x5e8632(0x252)]);if(!_0x4b9b6b)return;this[_0x5e8632(0x286)](_0x4b9b6b['base'],_0x4b9b6b[_0x5e8632(0x18f)],_0x3da22b(_0x4b9b6b[_0x5e8632(0x18f)][_0x5e8632(0x147)](),[_0x26d8eb[_0x5e8632(0x1a9)]]),_0x26d8eb[_0x5e8632(0x17d)]??_0x26a1b1['UI']);return;}if($(_0x504e12,_0x5d33b2)){let _0xdaa87d=_0x504e12['params'],_0x20ad6c=this[_0x5e8632(0x1a2)](_0xdaa87d['unitId'],_0xdaa87d['tableId']);if(!_0x20ad6c)return;this[_0x5e8632(0x286)](_0x20ad6c['base'],_0x20ad6c[_0x5e8632(0x18f)],_0x3da22b(_0x20ad6c['table'][_0x5e8632(0x147)](),_0xdaa87d[_0x5e8632(0x186)]),_0xdaa87d['source']??_0x26a1b1['UI']);return;}if(!$(_0x504e12,_0x1a4fa7))return;let _0x285c61=_0x504e12[_0x5e8632(0x1c0)],_0x184406=this['_getHierarchyEventContext'](_0x285c61[_0x5e8632(0x16e)],_0x285c61[_0x5e8632(0x252)]);if(!_0x184406)return;let _0x55c18f=_0x184406['table'][_0x5e8632(0x147)]();if(!_0x3e3c9d(_0x55c18f)[_0x5e8632(0x196)](_0x285c61[_0x5e8632(0x248)]))return;let _0x4e3a1c=_0x5b28b2(_0x55c18f,_0x285c61[_0x5e8632(0x248)])[_0x5e8632(0x1f3)][_0x5e8632(0x187)](_0x285c61['recordId'])??null,_0x5c68c1=_0x18c9cf(_0x285c61[_0x5e8632(0x27b)])[0x0]??null;_0x4e3a1c!==_0x5c68c1&&this[_0x5e8632(0x286)](_0x184406[_0x5e8632(0x21f)],_0x184406['table'],[{'tableId':_0x285c61[_0x5e8632(0x252)],'fieldId':_0x285c61[_0x5e8632(0x248)],'recordId':_0x285c61[_0x5e8632(0x1a9)],'oldParentRecordId':_0x4e3a1c,'parentRecordId':_0x5c68c1}],_0x285c61[_0x5e8632(0x17d)]??_0x26a1b1['UI']);}))),this[_0x170641(0x1c5)](this[_0x170641(0x1f1)](this[_0x170641(0x1ea)][_0x170641(0x15d)],()=>this['_commandService'][_0x170641(0x27c)](_0x324a7e=>{const _0x82ebb2=_0x170641;if(_0x324a7e['id']!==_0x3f138a['id'])return;let {unitId:_0x21ba26,table:_0xef1fb9,index:_0x46647a}=_0x324a7e[_0x82ebb2(0x1c0)],_0x4ab289=this[_0x82ebb2(0x17b)](_0x21ba26);if(!_0x4ab289)return;let _0x383b44={'base':_0x4ab289,'table':_0xef1fb9,'index':_0x46647a};if(this[_0x82ebb2(0x1cc)](this[_0x82ebb2(0x1ea)][_0x82ebb2(0x15d)],_0x383b44),_0x383b44['cancel'])throw new _0xb5ea74();}))),this[_0x170641(0x1c5)](this[_0x170641(0x1f1)](this[_0x170641(0x1ea)][_0x170641(0x25c)],()=>this[_0x170641(0x173)][_0x170641(0x27c)](_0x5e6576=>{const _0x28aa6b=_0x170641;if(_0x5e6576['id']!==_0x212bc2['id'])return;let {unitId:_0x269aab,tableId:_0x1bc19e,field:_0x1a7916,index:_0x159afa,viewIndexes:_0x2676ae}=_0x5e6576[_0x28aa6b(0x1c0)],_0x2f70cc=this[_0x28aa6b(0x17b)](_0x269aab);if(!_0x2f70cc)return;let _0x4045aa=_0x2f70cc['getTableById'](_0x1bc19e);if(!_0x4045aa)return;let _0x342641={'base':_0x2f70cc,'table':_0x4045aa,'field':_0x1a7916,'index':_0x159afa,'viewIndexes':_0x2676ae};if(this['fireEvent'](this[_0x28aa6b(0x1ea)]['BeforeBaseTableFieldCreate'],_0x342641),_0x342641[_0x28aa6b(0x23a)])throw new _0xb5ea74();}))),this[_0x170641(0x1c5)](this[_0x170641(0x1f1)](this[_0x170641(0x1ea)]['BeforeBaseTableRecordCreate'],()=>this[_0x170641(0x173)][_0x170641(0x27c)](_0x499941=>{const _0x557bd5=_0x170641;if(_0x499941['id']!==_0x3c1568['id']&&_0x499941['id']!==_0x26ecd4['id'])return;let _0x1b6fae=_0x499941[_0x557bd5(0x1c0)],{unitId:_0x3b7367,tableId:_0xd5c726}=_0x1b6fae,_0x3ed81f=_0x1b6fae[_0x557bd5(0x285)]??[_0x1b6fae['record']],_0x392964=this[_0x557bd5(0x17b)](_0x3b7367);if(!_0x392964)return;let _0x2e2977=_0x392964[_0x557bd5(0x237)](_0xd5c726);if(!_0x2e2977)return;let _0x2ac414={'base':_0x392964,'table':_0x2e2977,'records':_0x3ed81f};if(this['fireEvent'](this[_0x557bd5(0x1ea)][_0x557bd5(0x257)],_0x2ac414),_0x2ac414[_0x557bd5(0x23a)])throw new _0xb5ea74();}))),this[_0x170641(0x1c5)](this[_0x170641(0x1f1)](this[_0x170641(0x1ea)][_0x170641(0x178)],()=>this[_0x170641(0x173)][_0x170641(0x27c)](_0x3f3212=>{const _0x20af12=_0x170641;if(_0x3f3212['id']!==_0x5defbd['id'])return;let {unitId:_0x70322d,tableId:_0x3eebe3,view:_0x1fd8a9,index:_0x40f0b7}=_0x3f3212['params'],_0xdcebac=this[_0x20af12(0x17b)](_0x70322d);if(!_0xdcebac)return;let _0x975913=_0xdcebac[_0x20af12(0x237)](_0x3eebe3);if(!_0x975913)return;let _0x245e3b={'base':_0xdcebac,'table':_0x975913,'view':_0x1fd8a9,'index':_0x40f0b7};if(this[_0x20af12(0x1cc)](this[_0x20af12(0x1ea)][_0x20af12(0x178)],_0x245e3b),_0x245e3b['cancel'])throw new _0xb5ea74();}))),this['disposeWithMe'](this[_0x170641(0x1f1)](this[_0x170641(0x1ea)]['BeforeBaseTableCellValueChange'],()=>this[_0x170641(0x173)][_0x170641(0x27c)](_0x2f2047=>{const _0x1a1590=_0x170641;if(_0x2f2047['id']!==_0x1a4fa7['id'])return;let {unitId:_0x69b915,tableId:_0x40d42e,recordId:_0x4fd0d1,fieldId:_0x2ad3a7,value:_0x22757f}=_0x2f2047[_0x1a1590(0x1c0)],_0x48358c=this['getBase'](_0x69b915);if(!_0x48358c)return;let _0xf0a6dc=_0x48358c[_0x1a1590(0x237)](_0x40d42e);if(!_0xf0a6dc)return;let _0x23fae0=_0xf0a6dc[_0x1a1590(0x1d2)](_0x2ad3a7);if(!_0x23fae0)return;let _0x48d8cb=_0xf0a6dc['getRecordById'](_0x4fd0d1);if(!_0x48d8cb)return;let _0x5d829d={'base':_0x48358c,'table':_0xf0a6dc,'field':_0x23fae0,'record':_0x48d8cb,'value':_0x22757f};if(this[_0x1a1590(0x1cc)](this['Event'][_0x1a1590(0x1ad)],_0x5d829d),_0x5d829d['cancel'])throw new _0xb5ea74();})));}[_0x255b9c(0x1a2)](_0x1b68e0,_0x192b6f){const _0x1bb248=_0x255b9c;let _0x5600b8=this[_0x1bb248(0x17b)](_0x1b68e0),_0x5bced1=_0x5600b8==null?void 0x0:_0x5600b8[_0x1bb248(0x237)](_0x192b6f);return _0x5600b8&&_0x5bced1?{'base':_0x5600b8,'table':_0x5bced1}:null;}[_0x255b9c(0x286)](_0x30a731,_0x26005b,_0x303549,_0x4aa078){const _0x58ae0e=_0x255b9c;if(!_0x303549[_0x58ae0e(0x244)])return;let _0x13082c={'base':_0x30a731,'table':_0x26005b,'changes':_0x303549,'source':_0x4aa078};if(this[_0x58ae0e(0x1cc)](this['Event'][_0x58ae0e(0x238)],_0x13082c),_0x13082c[_0x58ae0e(0x23a)])throw new _0xb5ea74();}};function $(_0x42cc80,_0x528604){const _0x2f8f08=_0x255b9c;return _0x42cc80['id']===_0x528604['id']&&_0x42cc80[_0x2f8f08(0x1c0)]!==void 0x0;}_0x522601[_0x255b9c(0x217)](Et);var Dt=class extends _0x4ea1b3{get[_0x255b9c(0x26f)](){return _0x5a9f84;}get[_0x255b9c(0x24f)](){return _0x18bd2e;}get[_0x255b9c(0x146)](){return _0x500e5d;}get['BaseFieldKeyEnum'](){return ot;}get[_0x255b9c(0x20c)](){return _0x51da59;}get[_0x255b9c(0x140)](){return _0x6efe87;}get[_0x255b9c(0x188)](){return _0x5488f0;}get[_0x255b9c(0x17f)](){return _0x1cd109;}get['BaseSortDirection'](){return _0x4805ed;}get['BaseEventSource'](){return _0x26a1b1;}get['BaseHierarchyErrorCode'](){return _0x37304e;}get['BaseHierarchyInvalidReason'](){return _0x404163;}get[_0x255b9c(0x24c)](){return _0x374dc7;}};_0x4ea1b3['extend'](Dt);var Ot=class extends _0x2eb763{get[_0x255b9c(0x190)](){const _0x59ce0e=_0x255b9c;return _0x59ce0e(0x190);}get[_0x255b9c(0x15d)](){return'BeforeBaseTableCreate';}get[_0x255b9c(0x157)](){return'BaseTableFieldCreated';}get['BeforeBaseTableFieldCreate'](){const _0x3374e0=_0x255b9c;return _0x3374e0(0x25c);}get[_0x255b9c(0x23b)](){const _0x4527ec=_0x255b9c;return _0x4527ec(0x23b);}get['BeforeBaseTableRecordCreate'](){return'BeforeBaseTableRecordCreate';}get['BaseTableViewCreated'](){const _0x525355=_0x255b9c;return _0x525355(0x284);}get[_0x255b9c(0x178)](){return'BeforeBaseTableViewCreate';}get[_0x255b9c(0x267)](){const _0x4fb016=_0x255b9c;return _0x4fb016(0x267);}get[_0x255b9c(0x1ad)](){return'BeforeBaseTableCellValueChange';}get[_0x255b9c(0x13e)](){const _0x9973e5=_0x255b9c;return _0x9973e5(0x13e);}get[_0x255b9c(0x238)](){return'BeforeBaseHierarchyChange';}};_0x2eb763[_0x255b9c(0x217)](Ot);export{ot as BaseFieldKeyEnum,Q as FBase,L as FBaseObjectPermission,at as FBasePermission,Z as FBaseTable,B as FBaseTableField,K as FBaseTableRange,Y as FBaseTableRecord,X as FBaseTableView,Ot as FBasesEventNameMixin,ct as resolveBaseFieldKey,H as resolveBaseFieldValues};
1
+ const _0x52461d=_0x1e0f;function _0x48fc(){const _0x55819c=['setFieldVisible','_prepareFormulaFieldReferences','conditionalColoring','Attachment','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','addField','getPrimaryFieldId','BeforeBaseTableViewCreate','call','clear','getId','syncExecuteCommand','setName','recordIds','Event','fieldId','FBase','\x20in\x20field\x20\x22','getRange',',\x20max\x20columns:\x20','duplicate','hidden','Invalid\x20Base\x20regex\x20filter:\x20','getParent','endColumn','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','Failed\x20to\x20duplicate\x20table\x20\x22','_initBaseBeforeEvents','_projectionService','length','_tableId','iterator','views','_univerInstanceService','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','getDescription','orderedRecordIds','Gallery','DESC','getTable','_unitId','getProjection','conditions','deleteTable','has','offset','getFieldByName','433038zusgNE','Set','getAttachments','getViews','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','\x20for\x20field\x20\x22','mimeType','348kmXBRn','index','getPoint','BaseHierarchyChanged','_table','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','viewOrder','prototype','tableOrder','system','AND','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','base','BeforeBaseTableCellValueChange','BaseTableCreated','delete','valid','map','[FField]:\x20field\x20\x22','setGroup','toPrimitive','getRow','getRecords','move','_getRecordLinkField','Kanban','setLinkedRecordIds','getRecordById','width','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','getViewById','setReadOnly','getLinkedRecordIds','BaseEventSource','matches','update','[FBaseRange]:\x20table\x20does\x20not\x20exist.','_commandService','getOwnPropertyDescriptor',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','Failed\x20to\x20create\x20table\x20\x22','saveUnit','getTableFacade','string','[FBase]:\x20table\x20\x22','primaryFieldId','decorate','operator','trim',':\x20expected\x20an\x20object.','queryRecords','BaseConditionalDateMode','3114zIgiHK','getFieldById','getGroup','BeforeBaseTableFieldCreate','BaseTableRecordCreated','_base','getType','rules','clearConditionalColorRules','find','setValues','changeType','message','BaseTableCellValueChanged','localeCompare','name','getPermission','getViewByName','getSnapshot','1360RcDnmQ','BaseSortDirection','disposeWithMe','deepClone','getBases','isFinite','_collectDescendantIds','Failed\x20to\x20add\x20records','from','UUID','recordId',',\x20range:\x20','fieldSettings','executeCommand','\x22\x20must\x20be\x20a\x20non-empty\x20string.','getFormulaName','addRecord','getPrimaryField','getTableId','size','slice','commonExtend','Formula','regenerateViewIds','fromEntries','Date','_getHierarchyEventContext','orderKey','fields','startsWith','multiple','getDataRange','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','getActiveBase','max','_initialize','flatMap','value','getField','setPoint','\x22:\x20expected\x20an\x20array.','custom','\x22.\x20','Grid','_initBaseAfterEvents','getUnitId','Facade','test','Remote','sourceType','BaseTableViewCreated','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','\x20exceeds\x20range\x20size\x20','getNumRows','tables','_baseTableId','_getFieldIds','_objectId','_recordId','entries','2CmCGwZ','RecordId','get','\x22\x20has\x20invalid\x20config.','addConditionalColorRule','addLinkedRecord','params','warn','RecordLink','Failed\x20to\x20create\x20view\x20\x22',':\x20\x22','Edit','parentRecordId','includeRecords','_resourceLoaderService','search','stringify','_assertInBounds','getBaseFacade','43547irCBdx','targetTableId','_getRecord','hasOwnProperty','getConfig','deleteAttachments','field','[FBase]:\x20invalid\x20table\x20name\x20\x22','_injector','_baseUnitId','fromCollab','startColumn','height','_getTable','_parentObjectIds','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','createView','cancel','createdAt','BaseViewType','boolean','source','constructor','[FRecord]:\x20invalid\x20RecordLink\x20value.','BaseHierarchyErrorCode','some','getBaseId','getTableByName','invalid','setOrderKey','setParent','externalReferences','_getView','_getAttachmentField','_fireBeforeHierarchyChange','now','setSort','insertTable','every','BeforeBaseTableRecordCreate','getFilter','setHierarchyField','52016MrNaLE','beforeCommandExecuted','save','Delete','limit','_getHierarchyIndex','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','values','UNIVER_BASE','primaryFieldName','fireEvent','_viewId','push','\x22\x20is\x20invalid.','forEach','getRecord','_writeFormulaExternalReferences','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','defineProperty','fieldOrder','recordOrder','Gantt','\x22\x20does\x20not\x20exist.','isReadonly','BaseRecordLinkRole','getView','record','startRow','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','setEditable','getTableById','unitId','object','[FRecord]:\x20field\x20\x22','_getField','createInstance','3816YtOvZV','auto','defaultValue',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','indexOf','readonly','BASE64','BaseFieldKeyEnum','1744888LvHwhS','hierarchyChanges','getChildren','[FView]:\x20view\x20\x22','isArray','_range','_inject','BaseTableFieldCreated','reason','setAttachments','getValues','createUnit','filter','setFilter','description','rows','canEdit','view','getName','createBase','viewId','tableId','[FRecord]:\x20record\x20\x22','number','symbol','addChild','getFieldSettings','direction','_resolveRecordIds','caseSensitive','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','getTables','updatedAt','parentByRecordId','_permissionService','getValue','sort','getFields','getBase','22aaWonn','setConfig','extend','function','BeforeBaseHierarchyChange','table','registerEventHandler','getSchema','Clear','onCommandExecuted','getSort','notMatches','records','getNumColumns','thumbnail','_fieldId','config','1262172KiXrnD','endRow','includes','95hyXMrx','setConditionalColorRules','[FBaseRange]:\x20values\x20size\x20','beforeFieldId','getAllUnitsForType','updateConfig','type','BeforeBaseTableCreate','deleteProperty'];_0x48fc=function(){return _0x55819c;};return _0x48fc();}(function(_0x304f8f,_0x51c89f){const _0x2bb2ad=_0x1e0f,_0x3de77d=_0x304f8f();while(!![]){try{const _0x5c2c78=-parseInt(_0x2bb2ad(0x1d5))/0x1+parseInt(_0x2bb2ad(0xf9))/0x2*(parseInt(_0x2bb2ad(0x210))/0x3)+parseInt(_0x2bb2ad(0x136))/0x4*(parseInt(_0x2bb2ad(0x19d))/0x5)+parseInt(_0x2bb2ad(0x1dc))/0x6*(parseInt(_0x2bb2ad(0x10c))/0x7)+parseInt(_0x2bb2ad(0x162))/0x8+-parseInt(_0x2bb2ad(0x15a))/0x9*(-parseInt(_0x2bb2ad(0xbc))/0xa)+-parseInt(_0x2bb2ad(0x189))/0xb*(parseInt(_0x2bb2ad(0x19a))/0xc);if(_0x5c2c78===_0x51c89f)break;else _0x3de77d['push'](_0x3de77d['shift']());}catch(_0x4809eb){_0x3de77d['push'](_0x3de77d['shift']());}}}(_0x48fc,0x3ae9b));import{ApplyBaseJson1Mutation as _0x426009,BASE_TABLE_NAME_REQUIREMENTS as _0x37427f,BaseConditionalColorRuleUpdateType as _0x45aea4,BaseEventSource as _0x31e93c,BaseHierarchyErrorCode as _0x4efce9,BatchCreateBaseRecordsCommand as _0x2bc192,BatchDeleteBaseRecordsCommand as _0x34e6c2,ChangeBaseFieldTypeCommand as _0x14620a,CreateBaseChildRecordCommand as _0x5e51db,CreateBaseFieldCommand as _0x5649ae,CreateBaseRecordCommand as _0x2efdd1,CreateBaseTableCommand as _0x27d2e3,CreateBaseViewCommand as _0x5d854f,DeleteBaseFieldCommand as _0x3f28e6,DeleteBaseRecordCommand as _0x257b51,DeleteBaseTableCommand as _0x22fd29,DeleteBaseViewCommand as _0x4bd2e5,DuplicateBaseRecordCommand as _0x9bba9,IBaseProjectionService as _0x1ddcb6,MoveBaseFieldCommand as _0x7441ec,MoveBaseHierarchyRecordCommand as _0x5267a7,MoveBaseViewCommand as _0x4fbbd5,RenameBaseTableCommand as _0x2adfc6,RenameBaseViewCommand as _0x17bbd8,SetBaseNameCommand as _0x3776d7,SetBasePermissionCommand as _0x23684a,SetBasePermissionsCommand as _0x5883db,SetBaseRangeValuesCommand as _0x5bacf4,SetBaseRecordValuesCommand as _0x21ff8a,SetBaseTableHierarchyFieldCommand as _0x3111e0,SetBaseViewFieldOrderCommand as _0x3711a9,SetBaseViewFieldVisibleCommand as _0x558a88,SetBaseViewFieldWidthCommand as _0x3cccae,SetBaseViewFilterCommand as _0x34acd0,SetBaseViewGroupCommand as _0x3b44c4,SetBaseViewSortCommand as _0xfa97a2,UpdateBaseCellCommand as _0x20c761,UpdateBaseFieldCommand as _0x1ff958,UpdateBaseRecordOrderCommand as _0x1a08ea,UpdateBaseViewConditionalColorRulesCommand as _0x4a0521,UpdateBaseViewConfigCommand as _0x2be8c4,ValidateBaseFormulaCommand as _0x2d3f1c,buildBaseHierarchyIndex as _0x48b6a3,canEditBaseTargets as _0x6d4134,copyBaseTableSnapshot as _0x43532b,createUniqueBaseTableName as _0x51629a,ensureBaseTableCellLayout as _0x2c2e60,getActiveBaseHierarchyFieldIds as _0x145e7a,getBaseCellValue as _0x5582dc,getBaseFieldPermissionObjectId as _0x38b98c,getBaseFormulaTableName as _0x2e5aa4,getBaseHierarchyDeletePromotions as _0x169dd5,getBasePermissionValue as _0x576754,getBaseRecordPermissionObjectId as _0x533a74,getBaseTablePermissionObjectId as _0x2ffd70,getBaseViewPermissionObjectId as _0xfa3792,getRecordLinkFieldConfig as _0x737712,matchesBaseCondition as _0x2fce11,parseRecordLinkIds as _0x549917,resolveBaseHierarchyFieldId as _0x39d8f6,resolveBaseRangeHierarchyPatches as _0x631028,searchBaseTable as _0x4f1a66,serializeRecordLinkIds as _0x1e71bc,validateBaseHierarchyRecordCreations as _0x2e9f6f,validateBaseHierarchyRecordPatches as _0x2ff636,validateBaseTableName as _0x597076,validateRecordLinkValue as _0x2de149}from'@univerjs-pro/bases';function _0x1e0f(_0x41b13b,_0x5351c5){_0x41b13b=_0x41b13b-0xb5;const _0x48fc72=_0x48fc();let _0x1e0f94=_0x48fc72[_0x41b13b];return _0x1e0f94;}import{BASE_RECORD_ID_FIELD_ID as _0x23b461,BaseConditionalColorOperator as _0xe57c1a,BaseConditionalColorTarget as _0xfc34,BaseConditionalDateMode as _0x24aac6,BaseFieldType as _0x4db00c,BaseFilterConjunction as _0x964119,BaseFilterOperator as _0x5e5e09,BaseHierarchyInvalidReason as _0x449c78,BaseRecordLinkRole as _0x171d5a,BaseSortDirection as _0x114bbf,BaseViewType as _0x46c53d,CanceledError as _0x220bd1,ICommandService as _0xd6c9e9,IPermissionService as _0x24a74f,IResourceLoaderService as _0x138537,ImageSourceType as _0xc747b0,Inject as _0x398e71,Injector as _0x14fd65,Tools as _0x5ddc99,UniverInstanceType as _0x216daf,createDefaultBaseTableSnapshot as _0x256046,generateRandomId as _0x416ff3}from'@univerjs/core';import*as _0x1c1ab5 from'@univerjs/core/facade';import{FBaseInitialable as _0x4601f0,FEnum as _0x371b31,FEventName as _0x24d5c8,FUniver as _0x517ece}from'@univerjs/core/facade';import{UnitAction as _0x4d265f}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x1301ac}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x504616,_0x5f1bc9,_0x26feab){const _0x2d49be=_0x1e0f;this[_0x2d49be(0x1ce)]=_0x504616,this['_commandService']=_0x5f1bc9,this[_0x2d49be(0x184)]=_0x26feab;}async['setObjectPermissions'](_0x4c1f6c){const _0x285647=_0x1e0f;return this['_commandService'][_0x285647(0xc9)](_0x5883db['id'],{'unitId':this[_0x285647(0x1ce)],'changes':_0x4c1f6c});}async[_0x52461d(0xe3)](_0x46bd42,_0x44651e){const _0x400050=_0x52461d;await this['_commandService'][_0x400050(0xc9)](_0x23684a['id'],{'unitId':this[_0x400050(0x1ce)],'objectId':this['_unitId'],'action':_0x46bd42,'value':_0x44651e});}[_0x52461d(0x1de)](_0x5bc051){const _0x1ca949=_0x52461d;return _0x576754(this[_0x1ca949(0x184)],this[_0x1ca949(0x1ce)],this['_unitId'],_0x5bc051);}async[_0x52461d(0x153)](_0x20bfad=!0x0){const _0x323929=_0x52461d;await this[_0x323929(0x201)][_0x323929(0xc9)](_0x23684a['id'],{'unitId':this[_0x323929(0x1ce)],'objectId':this['_unitId'],'action':_0x4d265f[_0x323929(0x104)],'value':_0x20bfad});}async['setReadOnly'](){const _0x10bdce=_0x52461d;await this[_0x10bdce(0x201)][_0x10bdce(0xc9)](_0x23684a['id'],{'unitId':this[_0x10bdce(0x1ce)],'objectId':this[_0x10bdce(0x1ce)],'action':_0x4d265f['Edit'],'value':!0x1});}[_0x52461d(0x172)](){const _0x42bee5=_0x52461d;return _0x576754(this[_0x42bee5(0x184)],this[_0x42bee5(0x1ce)],this[_0x42bee5(0x1ce)],_0x4d265f[_0x42bee5(0x104)]);}},L=class{constructor(_0x4229fd,_0x436b60,_0x47e55b,_0xa56a1f,_0x4dd745){const _0x1687fd=_0x52461d;this[_0x1687fd(0x1ce)]=_0x4229fd,this[_0x1687fd(0xf6)]=_0x436b60,this[_0x1687fd(0x11a)]=_0x47e55b,this['_commandService']=_0xa56a1f,this[_0x1687fd(0x184)]=_0x4dd745;}async[_0x52461d(0x153)](_0x360848=!0x0){const _0x1aeabc=_0x52461d;await this['_commandService'][_0x1aeabc(0xc9)](_0x23684a['id'],{'unitId':this[_0x1aeabc(0x1ce)],'objectId':this[_0x1aeabc(0xf6)],'action':_0x4d265f[_0x1aeabc(0x104)],'value':_0x360848});}async[_0x52461d(0x1fb)](){const _0x231235=_0x52461d;await this[_0x231235(0x201)][_0x231235(0xc9)](_0x23684a['id'],{'unitId':this['_unitId'],'objectId':this['_objectId'],'action':_0x4d265f[_0x231235(0x104)],'value':!0x1});}[_0x52461d(0x172)](){const _0x1ae2e1=_0x52461d;return _0x6d4134(this[_0x1ae2e1(0x184)],this['_unitId'],[...this[_0x1ae2e1(0x11a)],this[_0x1ae2e1(0xf6)]]);}};function R(_0x583d25,_0x584a7f){return function(_0x3de27d,_0x4f8ed2){_0x584a7f(_0x3de27d,_0x4f8ed2,_0x583d25);};}function z(_0x276e74,_0x2a7d18,_0x596d38,_0x385098){const _0x32d3c0=_0x52461d;var _0x4f63c2=arguments[_0x32d3c0(0x1c3)],_0x2a10c3=_0x4f63c2<0x3?_0x2a7d18:_0x385098===null?_0x385098=Object[_0x32d3c0(0x202)](_0x2a7d18,_0x596d38):_0x385098,_0x49faa6;if(typeof Reflect==_0x32d3c0(0x156)&&typeof Reflect[_0x32d3c0(0x20a)]=='function')_0x2a10c3=Reflect[_0x32d3c0(0x20a)](_0x276e74,_0x2a7d18,_0x596d38,_0x385098);else{for(var _0x258d21=_0x276e74['length']-0x1;_0x258d21>=0x0;_0x258d21--)(_0x49faa6=_0x276e74[_0x258d21])&&(_0x2a10c3=(_0x4f63c2<0x3?_0x49faa6(_0x2a10c3):_0x4f63c2>0x3?_0x49faa6(_0x2a7d18,_0x596d38,_0x2a10c3):_0x49faa6(_0x2a7d18,_0x596d38))||_0x2a10c3);}return _0x4f63c2>0x3&&_0x2a10c3&&Object[_0x32d3c0(0x148)](_0x2a7d18,_0x596d38,_0x2a10c3),_0x2a10c3;}let B=class{constructor(_0x502258,_0x17e3fd,_0x5cbeb8,_0x5bbb55,_0x2bf76e){const _0x1c3f11=_0x52461d;this[_0x1c3f11(0x215)]=_0x502258,this[_0x1c3f11(0x1e0)]=_0x17e3fd,this[_0x1c3f11(0x198)]=_0x5cbeb8,this['_commandService']=_0x5bbb55,this[_0x1c3f11(0x184)]=_0x2bf76e;}[_0x52461d(0x1b0)](){return this['_fieldId'];}[_0x52461d(0xb9)](){const _0x23e9a5=_0x52461d;let _0x5ce707=this[_0x23e9a5(0x1e0)][_0x23e9a5(0x1b0)]();return new L(this[_0x23e9a5(0x215)][_0x23e9a5(0x1b0)](),_0x38b98c(_0x5ce707,this[_0x23e9a5(0x198)]),[_0x2ffd70(_0x5ce707)],this[_0x23e9a5(0x201)],this['_permissionService']);}[_0x52461d(0xe2)](){return this['_getField']();}[_0x52461d(0x174)](){const _0x34243b=_0x52461d;return this[_0x34243b(0x158)]()['name'];}[_0x52461d(0x216)](){const _0x3ae5d2=_0x52461d;return this[_0x3ae5d2(0x158)]()['type'];}[_0x52461d(0x110)](){const _0xef495e=_0x52461d;return this['_getField']()[_0xef495e(0x199)];}['getDefaultValue'](){const _0x125212=_0x52461d;return this[_0x125212(0x158)]()[_0x125212(0x15c)];}[_0x52461d(0x1c9)](){const _0x52b5af=_0x52461d;return this['_getField']()[_0x52b5af(0x170)];}[_0x52461d(0x14d)](){const _0x11dc1c=_0x52461d;return!!this[_0x11dc1c(0x158)]()[_0x11dc1c(0x15f)];}[_0x52461d(0x1b2)](_0x21d5fd){const _0x2a7fef=_0x52461d;return this[_0x2a7fef(0x1ff)]({'name':_0x21d5fd});}[_0x52461d(0x18a)](_0x525d3c,_0x5e5222){const _0x584313=_0x52461d;return this[_0x584313(0x1ff)]({'config':_0x525d3c},_0x5e5222);}['setDefaultValue'](_0x430dfd){return this['update']({'defaultValue':_0x430dfd});}[_0x52461d(0x1ff)](_0x5e00b7,_0xad6280){const _0x589c0f=_0x52461d;let _0x264b88=this['_getField']()[_0x589c0f(0x1a3)];return(_0x5e00b7[_0x589c0f(0x1a3)]??_0x264b88)===_0x4db00c[_0x589c0f(0xd2)]&&(Object[_0x589c0f(0x1e3)][_0x589c0f(0x10f)][_0x589c0f(0x1ae)](_0x5e00b7,_0x589c0f(0x199))||_0x5e00b7[_0x589c0f(0x1a3)]===_0x4db00c[_0x589c0f(0xd2)])&&!this[_0x589c0f(0x146)](_0xad6280)?!0x1:this[_0x589c0f(0x201)][_0x589c0f(0x1b1)](_0x1ff958['id'],{'unitId':this[_0x589c0f(0x215)][_0x589c0f(0x1b0)](),'tableId':this[_0x589c0f(0x1e0)][_0x589c0f(0x1b0)](),'fieldId':this[_0x589c0f(0x198)],'patch':_0x5e00b7});}[_0x52461d(0x21b)](_0x67b307,_0x1325ca={},_0x1d5b29){const _0x48a492=_0x52461d;return _0x67b307===_0x4db00c[_0x48a492(0xd2)]&&!this[_0x48a492(0x146)](_0x1d5b29)?!0x1:this[_0x48a492(0x201)]['syncExecuteCommand'](_0x14620a['id'],{'unitId':this['_base'][_0x48a492(0x1b0)](),'tableId':this[_0x48a492(0x1e0)][_0x48a492(0x1b0)](),'fieldId':this[_0x48a492(0x198)],'input':{'type':_0x67b307,'config':_0x1325ca}});}[_0x52461d(0x1eb)](){const _0x27f13b=_0x52461d;return this[_0x27f13b(0x201)]['syncExecuteCommand'](_0x3f28e6['id'],{'unitId':this[_0x27f13b(0x215)][_0x27f13b(0x1b0)](),'tableId':this[_0x27f13b(0x1e0)][_0x27f13b(0x1b0)](),'fieldId':this[_0x27f13b(0x198)]});}[_0x52461d(0x1f3)](_0x5aadb0){const _0x2190cf=_0x52461d;return this[_0x2190cf(0x201)]['syncExecuteCommand'](_0x7441ec['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x2190cf(0x1e0)][_0x2190cf(0x1b0)](),'fieldId':this[_0x2190cf(0x198)],'target':_0x5aadb0});}[_0x52461d(0x158)](){const _0x42063e=_0x52461d;let _0x3d1bf0=this[_0x42063e(0x1e0)][_0x42063e(0x1cd)]()[_0x42063e(0xd8)][this[_0x42063e(0x198)]];if(!_0x3d1bf0)throw Error(_0x42063e(0x1ee)+this['_fieldId']+_0x42063e(0x14c));return _0x3d1bf0;}[_0x52461d(0x146)](_0x26909c){const _0x1dc6cc=_0x52461d;if(!_0x26909c||!Array[_0x1dc6cc(0x166)](_0x26909c['externalReferences']))return console[_0x1dc6cc(0x100)](_0x1dc6cc(0xdc)),!0x1;if(_0x26909c['externalReferences']['length']===0x0)return!0x0;let _0x3805cf=this[_0x1dc6cc(0x201)][_0x1dc6cc(0x1b1)](_0x1301ac['id'],{'unitId':this['_base'][_0x1dc6cc(0x1b0)](),'references':_0x26909c['externalReferences']});return _0x3805cf||console[_0x1dc6cc(0x100)](_0x1dc6cc(0x1f9)),_0x3805cf;}};B=z([R(0x3,_0xd6c9e9),R(0x4,_0x24a74f)],B);let ot=function(_0x3320da){const _0x482ad4=_0x52461d;return _0x3320da['Id']='id',_0x3320da['Name']=_0x482ad4(0xb8),_0x3320da['Auto']=_0x482ad4(0x15b),_0x3320da;}({});function V(_0x105fd7){const _0x314a60=_0x52461d;return!!(_0x105fd7&&_0x105fd7[_0x314a60(0x1e5)]!==!0x0&&_0x105fd7[_0x314a60(0x1a3)]!==_0x4db00c[_0x314a60(0xfa)]);}function H(_0x34d595,_0x3f988c,_0x435683='id'){const _0x4ff4fa=_0x52461d;if(!_0x3f988c)return{};let _0x21f69b={};return Object[_0x4ff4fa(0xf8)](_0x3f988c)[_0x4ff4fa(0x144)](([_0x4ea809,_0x1641c4])=>{let _0x1f3a76=ct(_0x34d595,_0x4ea809,_0x435683);_0x21f69b[_0x1f3a76]=st(_0x34d595['fields'][_0x1f3a76],_0x1641c4);}),_0x21f69b;}function st(_0xd11e2b,_0x43efb4){const _0x2220ee=_0x52461d;if((_0xd11e2b==null?void 0x0:_0xd11e2b[_0x2220ee(0x1a3)])!==_0x4db00c[_0x2220ee(0x1a9)]||_0x43efb4==null)return _0x43efb4;if(!Array['isArray'](_0x43efb4))throw TypeError(_0x2220ee(0x1d9)+_0xd11e2b[_0x2220ee(0xb8)]+_0x2220ee(0xe4));return _0x43efb4[_0x2220ee(0x1ed)]((_0x5b0018,_0x204030)=>lt(_0xd11e2b,_0x5b0018,_0x204030));}function ct(_0x1df888,_0x44da49,_0x22fdff){const _0x365c7e=_0x52461d;if(_0x22fdff==='id'||_0x22fdff==='auto'&&_0x1df888['fields'][_0x44da49])return _0x44da49;let _0x20adbc=Object[_0x365c7e(0x13d)](_0x1df888[_0x365c7e(0xd8)])['filter'](_0x3d4d38=>_0x3d4d38[_0x365c7e(0xb8)]===_0x44da49);if(_0x20adbc[_0x365c7e(0x1c3)]===0x1)return _0x20adbc[0x0]['id'];throw _0x20adbc[_0x365c7e(0x1c3)]>0x1?Error('Duplicate\x20Base\x20field\x20name:\x20'+_0x44da49):Error('Base\x20field\x20not\x20found:\x20'+_0x44da49);}function lt(_0x4aac25,_0x11082c,_0x49e7be){const _0x283255=_0x52461d;let _0x5dc5c9='Invalid\x20attachment\x20at\x20index\x20'+_0x49e7be+_0x283255(0x1da)+_0x4aac25['name']+'\x22';if(!ft(_0x11082c))throw TypeError(_0x5dc5c9+_0x283255(0x20d));if('url'in _0x11082c)throw TypeError(_0x5dc5c9+':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.');if(_0x283255(0x1a3)in _0x11082c)throw TypeError(_0x5dc5c9+_0x283255(0x203));let _0x4168c8=U(_0x11082c['id'],_0x5dc5c9,'id'),_0x473456=U(_0x11082c[_0x283255(0xb8)],_0x5dc5c9,'name'),_0x56ebc1=U(_0x11082c['source'],_0x5dc5c9,_0x283255(0x121));return{'id':_0x4168c8,'name':_0x473456,'source':_0x56ebc1,'sourceType':ut(_0x11082c[_0x283255(0xed)],_0x56ebc1,_0x5dc5c9),...dt(_0x11082c,_0x283255(0x1db),_0x5dc5c9),...W(_0x11082c,_0x283255(0xcf),_0x5dc5c9),...W(_0x11082c,_0x283255(0x1f8),_0x5dc5c9),...W(_0x11082c,_0x283255(0x118),_0x5dc5c9),...dt(_0x11082c,_0x283255(0x197),_0x5dc5c9)};}function ut(_0x2aeb96,_0x4ba43e,_0x422f1b){const _0x55fe47=_0x52461d;if(_0x2aeb96==null)return _0x4ba43e[_0x55fe47(0xd9)]('data:')?_0xc747b0['BASE64']:_0xc747b0['URL'];if(_0x2aeb96===_0xc747b0['URL']||_0x2aeb96===_0xc747b0[_0x55fe47(0xc5)]||_0x2aeb96===_0xc747b0[_0x55fe47(0x160)])return _0x2aeb96;throw TypeError(_0x422f1b+_0x55fe47(0x15d));}function U(_0x3a1bde,_0xebda0f,_0x3eeacb){const _0x57f20a=_0x52461d;if(typeof _0x3a1bde!=_0x57f20a(0x207)||!_0x3a1bde[_0x57f20a(0x20c)]())throw TypeError(_0xebda0f+':\x20\x22'+_0x3eeacb+_0x57f20a(0xca));return _0x3a1bde;}function dt(_0x483b8f,_0x59a051,_0x25c3da){const _0x350cd4=_0x52461d;let _0x5b7d02=_0x483b8f[_0x59a051];if(_0x5b7d02==null)return{};if(typeof _0x5b7d02!=_0x350cd4(0x207)||!_0x5b7d02['trim']())throw TypeError(_0x25c3da+_0x350cd4(0x103)+_0x59a051+_0x350cd4(0x180));return{[_0x59a051]:_0x5b7d02};}function W(_0x165f8a,_0x5b4f53,_0x587c26){const _0x1cb6d4=_0x52461d;let _0x18e566=_0x165f8a[_0x5b4f53];if(_0x18e566==null)return{};if(typeof _0x18e566!=_0x1cb6d4(0x179)||!Number[_0x1cb6d4(0xc1)](_0x18e566)||_0x18e566<0x0)throw TypeError(_0x587c26+_0x1cb6d4(0x103)+_0x5b4f53+_0x1cb6d4(0x11b));return{[_0x5b4f53]:_0x18e566};}function ft(_0x11103a){const _0x5dbffd=_0x52461d;return typeof _0x11103a=='object'&&!!_0x11103a&&!Array[_0x5dbffd(0x166)](_0x11103a);}var G;let K=G=class{constructor(_0x1b5f94,_0xcadaa6,_0xd1262b,_0x510292,_0x19b221){const _0xcba279=_0x52461d;this['_base']=_0x1b5f94,this[_0xcba279(0x1e0)]=_0xcadaa6,this[_0xcba279(0x167)]=_0xd1262b,this['_inject']=_0x510292,this[_0xcba279(0x201)]=_0x19b221,this['_assertInBounds']();}[_0x52461d(0x126)](){const _0x4ae6e4=_0x52461d;return this[_0x4ae6e4(0x215)][_0x4ae6e4(0x1b0)]();}[_0x52461d(0xce)](){const _0x195485=_0x52461d;return this['_table'][_0x195485(0x1b0)]();}['getRange'](){const _0x59d848=_0x52461d;return{...this[_0x59d848(0x167)]};}[_0x52461d(0x1f1)](){const _0x2fdc5c=_0x52461d;return this[_0x2fdc5c(0x167)][_0x2fdc5c(0x151)];}['getColumn'](){const _0x4d0a9e=_0x52461d;return this['_range'][_0x4d0a9e(0x117)];}['getNumRows'](){const _0x7603c0=_0x52461d;return this[_0x7603c0(0x167)]['endRow']-this[_0x7603c0(0x167)][_0x7603c0(0x151)]+0x1;}['getNumColumns'](){const _0x2a406f=_0x52461d;return this[_0x2a406f(0x167)][_0x2a406f(0x1be)]-this['_range'][_0x2a406f(0x117)]+0x1;}[_0x52461d(0x16c)](){const _0x11b3d8=_0x52461d;let _0x30a8c7=this['_getTable'](),_0x170085=this[_0x11b3d8(0xf5)](_0x30a8c7),_0x4184b4=[];for(let _0x5850ec=this[_0x11b3d8(0x167)][_0x11b3d8(0x151)];_0x5850ec<=this[_0x11b3d8(0x167)]['endRow'];_0x5850ec++){var _0xe142e4;let _0x5418ea=(_0xe142e4=_0x30a8c7['rowId'])==null?void 0x0:_0xe142e4[_0x5850ec],_0x551d76=[];for(let _0x1447bb=this['_range'][_0x11b3d8(0x117)];_0x1447bb<=this['_range']['endColumn'];_0x1447bb++){let _0x4641ce=_0x170085[_0x1447bb];_0x551d76[_0x11b3d8(0x142)](_0x5418ea&&_0x4641ce?_0x5582dc(_0x30a8c7,_0x5418ea,_0x4641ce):null);}_0x4184b4[_0x11b3d8(0x142)](_0x551d76);}return _0x4184b4;}[_0x52461d(0x185)](){const _0x5c4262=_0x52461d;var _0x148cdc;return((_0x148cdc=this[_0x5c4262(0x16c)]()[0x0])==null?void 0x0:_0x148cdc[0x0])??null;}['setValue'](_0x2125eb){return this['setValues']([[_0x2125eb]]);}[_0x52461d(0x21a)](_0x2ee5b1){const _0x27d636=_0x52461d;let _0x525c11=this['getNumRows'](),_0x164d47=this[_0x27d636(0x196)]();if(_0x2ee5b1[_0x27d636(0x1c3)]>_0x525c11||_0x2ee5b1[_0x27d636(0x125)](_0x984465=>_0x984465[_0x27d636(0x1c3)]>_0x164d47)){var _0x5ee96b;throw Error(_0x27d636(0x19f)+_0x2ee5b1['length']+'x'+(((_0x5ee96b=_0x2ee5b1[0x0])==null?void 0x0:_0x5ee96b['length'])??0x0)+_0x27d636(0xf1)+_0x525c11+'x'+_0x164d47+'.');}let _0x3591ac=this['_getTable'](),_0x5d7607=this[_0x27d636(0xf5)](_0x3591ac),_0x499bea=_0x2ee5b1[_0x27d636(0xe0)]((_0x1b3f5e,_0x2cebd8)=>_0x1b3f5e['map']((_0x4f04f7,_0x27e069)=>{const _0x494bf9=_0x27d636;var _0x2f085f;let _0x237d69=this[_0x494bf9(0x167)]['startRow']+_0x2cebd8,_0x43bfc2=_0x5d7607[this['_range'][_0x494bf9(0x117)]+_0x27e069],_0xcd2d01=(_0x2f085f=_0x3591ac['rowId'])==null?void 0x0:_0x2f085f[_0x237d69];if(!_0x43bfc2||!_0xcd2d01)throw Error(_0x494bf9(0x1c8));return{'recordId':_0xcd2d01,'fieldId':_0x43bfc2,'value':_0x4f04f7};}));return this[_0x27d636(0x201)][_0x27d636(0x1b1)](_0x5bacf4['id'],{'unitId':this[_0x27d636(0x215)][_0x27d636(0x1b0)](),'tableId':this[_0x27d636(0x1e0)][_0x27d636(0x1b0)](),'patches':_0x499bea,'source':_0x31e93c[_0x27d636(0xea)]});}[_0x52461d(0x1af)](){const _0x25901a=_0x52461d;return this[_0x25901a(0x21a)](Array[_0x25901a(0xc4)]({'length':this[_0x25901a(0xf2)]()},()=>Array[_0x25901a(0xc4)]({'length':this['getNumColumns']()},()=>null)));}[_0x52461d(0x1d3)](_0x3d6cbe,_0x2c380a,_0x16199c=this[_0x52461d(0xf2)](),_0x23ca3e=this['getNumColumns']()){const _0x5c2bdb=_0x52461d;return this['_inject']['createInstance'](G,this['_base'],this[_0x5c2bdb(0x1e0)],{'startRow':this[_0x5c2bdb(0x167)][_0x5c2bdb(0x151)]+_0x3d6cbe,'startColumn':this[_0x5c2bdb(0x167)][_0x5c2bdb(0x117)]+_0x2c380a,'endRow':this[_0x5c2bdb(0x167)][_0x5c2bdb(0x151)]+_0x3d6cbe+_0x16199c-0x1,'endColumn':this['_range']['startColumn']+_0x2c380a+_0x23ca3e-0x1},this[_0x5c2bdb(0x168)]);}[_0x52461d(0x119)](){const _0x472263=_0x52461d;let _0x3fbd14=this[_0x472263(0x1e0)]['getTable']();if(!_0x3fbd14)throw Error(_0x472263(0x200));return _0x2c2e60(_0x3fbd14);}[_0x52461d(0x10a)](){const _0x49ceeb=_0x52461d;var _0x580fb7;let _0x3d796c=this[_0x49ceeb(0x119)](),_0x171a2e=((_0x580fb7=_0x3d796c[_0x49ceeb(0x14a)])==null?void 0x0:_0x580fb7[_0x49ceeb(0x1c3)])??0x0,_0x3b5d2c=this[_0x49ceeb(0xf5)](_0x3d796c)[_0x49ceeb(0x1c3)];if(this[_0x49ceeb(0x167)]['startRow']<0x0||this['_range'][_0x49ceeb(0x117)]<0x0||this[_0x49ceeb(0x167)][_0x49ceeb(0x19b)]<this['_range'][_0x49ceeb(0x151)]||this['_range'][_0x49ceeb(0x1be)]<this[_0x49ceeb(0x167)][_0x49ceeb(0x117)]||this[_0x49ceeb(0x167)][_0x49ceeb(0x19b)]>=Math[_0x49ceeb(0xde)](_0x171a2e,0x1)||this[_0x49ceeb(0x167)][_0x49ceeb(0x1be)]>=Math[_0x49ceeb(0xde)](_0x3b5d2c,0x1))throw Error(_0x49ceeb(0x147)+_0x171a2e+_0x49ceeb(0x1b9)+_0x3b5d2c+_0x49ceeb(0xc7)+JSON[_0x49ceeb(0x109)](this[_0x49ceeb(0x167)])+'.');}[_0x52461d(0xf5)](_0x5e86e2){const _0x5ec012=_0x52461d;return _0x5e86e2['fieldOrder'][_0x5ec012(0x16e)](_0x4f4eab=>V(_0x5e86e2[_0x5ec012(0xd8)][_0x4f4eab]));}};K=G=z([R(0x4,_0xd6c9e9)],K);function q(_0x36da05){'@babel/helpers - typeof';const _0x410da0=_0x52461d;return q=typeof Symbol==_0x410da0(0x18c)&&typeof Symbol[_0x410da0(0x1c5)]=='symbol'?function(_0x23d891){return typeof _0x23d891;}:function(_0x3f74d0){const _0x54b047=_0x410da0;return _0x3f74d0&&typeof Symbol==_0x54b047(0x18c)&&_0x3f74d0[_0x54b047(0x122)]===Symbol&&_0x3f74d0!==Symbol['prototype']?_0x54b047(0x17a):typeof _0x3f74d0;},q(_0x36da05);}function pt(_0x11b7f4,_0x2e2c39){const _0x136f7d=_0x52461d;if(q(_0x11b7f4)!=_0x136f7d(0x156)||!_0x11b7f4)return _0x11b7f4;var _0x10d231=_0x11b7f4[Symbol[_0x136f7d(0x1f0)]];if(_0x10d231!==void 0x0){var _0x206610=_0x10d231[_0x136f7d(0x1ae)](_0x11b7f4,_0x2e2c39||'default');if(q(_0x206610)!=_0x136f7d(0x156))return _0x206610;throw TypeError(_0x136f7d(0x1aa));}return(_0x2e2c39==='string'?String:Number)(_0x11b7f4);}function mt(_0x38861b){const _0x5c70a3=_0x52461d;var _0x25f192=pt(_0x38861b,_0x5c70a3(0x207));return q(_0x25f192)==_0x5c70a3(0x17a)?_0x25f192:_0x25f192+'';}function ht(_0x3e9bbc,_0x55b906,_0x5c7d47){const _0x3db402=_0x52461d;return(_0x55b906=mt(_0x55b906))in _0x3e9bbc?Object[_0x3db402(0x148)](_0x3e9bbc,_0x55b906,{'value':_0x5c7d47,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3e9bbc[_0x55b906]=_0x5c7d47,_0x3e9bbc;}var J;let Y=J=class extends _0x4601f0{constructor(_0x4adb14,_0x4c0ae8,_0x108d64,_0x51ea28,_0x3b2015,_0x7353fd){const _0x157a6e=_0x52461d;super(_0x51ea28),this[_0x157a6e(0x215)]=_0x4adb14,this['_table']=_0x4c0ae8,this[_0x157a6e(0xf7)]=_0x108d64,this['_injector']=_0x51ea28,this['_commandService']=_0x3b2015,this[_0x157a6e(0x184)]=_0x7353fd,ht(this,_0x157a6e(0x115),void 0x0),ht(this,'_baseTableId',void 0x0),this['_baseUnitId']=_0x4adb14[_0x157a6e(0x1b0)](),this[_0x157a6e(0xf4)]=_0x4c0ae8[_0x157a6e(0x1b0)]();}[_0x52461d(0x10b)](){return this['_base'];}[_0x52461d(0x206)](){const _0x3aa4a8=_0x52461d;return this[_0x3aa4a8(0x1e0)];}[_0x52461d(0x1b0)](){const _0x2ce190=_0x52461d;return this[_0x2ce190(0xf7)];}['getPermission'](){const _0x474e1c=_0x52461d;let _0x1000ef=this[_0x474e1c(0x1e0)][_0x474e1c(0x1b0)]();return new L(this[_0x474e1c(0x215)][_0x474e1c(0x1b0)](),_0x533a74(_0x1000ef,this['_recordId']),[_0x2ffd70(_0x1000ef)],this[_0x474e1c(0x201)],this[_0x474e1c(0x184)]);}[_0x52461d(0x145)](){const _0x5ef863=_0x52461d;return{...this[_0x5ef863(0x10e)](),'values':this[_0x5ef863(0x16c)]()};}[_0x52461d(0x185)](_0x994a38){const _0x38fce5=_0x52461d;return V(this['_table'][_0x38fce5(0x1cd)]()[_0x38fce5(0xd8)][_0x994a38])?this[_0x38fce5(0x10e)]()[_0x38fce5(0x13d)][_0x994a38]??null:null;}['getValues'](){const _0x2489a4=_0x52461d;let _0x5e1662=this[_0x2489a4(0x1e0)][_0x2489a4(0x1cd)]();return Object[_0x2489a4(0xd4)](Object['entries'](this[_0x2489a4(0x10e)]()[_0x2489a4(0x13d)])['filter'](([_0x1f97fc])=>V(_0x5e1662[_0x2489a4(0xd8)][_0x1f97fc])));}['setValue'](_0x190926,_0x53bfce){const _0x3c7517=_0x52461d;let _0x2cd3b2=this[_0x3c7517(0x1e0)][_0x3c7517(0x1cd)]()[_0x3c7517(0xd8)][_0x190926];return this['_commandService'][_0x3c7517(0x1b1)](_0x20c761['id'],{'unitId':this['_base'][_0x3c7517(0x1b0)](),'tableId':this[_0x3c7517(0x1e0)]['getId'](),'recordId':this[_0x3c7517(0xf7)],'fieldId':_0x190926,'value':st(_0x2cd3b2,_0x53bfce),'source':_0x31e93c[_0x3c7517(0xea)]});}[_0x52461d(0x16b)](_0x132aed,_0x58f8e1){const _0x4f62e8=_0x52461d;return this['setValue'](_0x132aed,_0x58f8e1[_0x4f62e8(0x1ed)](_0x5c92a5=>({..._0x5c92a5})));}['getAttachments'](_0x5172ec){const _0x45fbdb=_0x52461d;this['_getAttachmentField'](_0x5172ec);let _0x5b8f7d=this['getValue'](_0x5172ec);return Array[_0x45fbdb(0x166)](_0x5b8f7d)?_0x5b8f7d[_0x45fbdb(0x1ed)]((_0x2271bd,_0x1f393c)=>_t(_0x2271bd,_0x5172ec,_0x1f393c)):[];}[_0x52461d(0x111)](_0x1cdc28,_0x4958dc){const _0x5b0cdd=_0x52461d;this[_0x5b0cdd(0x12d)](_0x1cdc28);let _0x59d418=new Set(_0x4958dc[_0x5b0cdd(0x1ed)](_0x23b836=>_0x23b836['id']));if(!_0x59d418[_0x5b0cdd(0xcf)])return!0x0;let _0x5d510d=this[_0x5b0cdd(0x1d7)](_0x1cdc28),_0x178168=_0x5d510d[_0x5b0cdd(0x16e)](_0x333a36=>!_0x59d418[_0x5b0cdd(0x1d2)](_0x333a36['id']));return _0x178168[_0x5b0cdd(0x1c3)]===_0x5d510d['length']||this[_0x5b0cdd(0x16b)](_0x1cdc28,_0x178168);}[_0x52461d(0x21a)](_0x50400c,_0x4d317a='id'){const _0x163604=_0x52461d;let _0x18c556=this['_table'][_0x163604(0x1cd)](),_0x212379=[{'recordId':this[_0x163604(0xf7)],'values':H(_0x18c556,_0x50400c,_0x4d317a)}];return this[_0x163604(0x201)][_0x163604(0x1b1)](_0x21ff8a['id'],{'unitId':this[_0x163604(0x215)][_0x163604(0x1b0)](),'tableId':this['_table'][_0x163604(0x1b0)](),'patches':_0x212379,'source':_0x31e93c['Facade']});}[_0x52461d(0x1eb)](){const _0x3e47c7=_0x52461d;return this['_commandService'][_0x3e47c7(0x1b1)](_0x257b51['id'],{'unitId':this['_base'][_0x3e47c7(0x1b0)](),'tableId':this[_0x3e47c7(0x1e0)]['getId'](),'recordId':this[_0x3e47c7(0xf7)],'source':_0x31e93c[_0x3e47c7(0xea)]});}[_0x52461d(0x1ba)](_0x56bb89){const _0x12d31b=_0x52461d;let _0x135c4d={...this[_0x12d31b(0x10e)](),..._0x56bb89,'id':_0x416ff3(0x6)};_0x135c4d[_0x12d31b(0x13d)]={..._0x135c4d[_0x12d31b(0x13d)],..._0x56bb89==null?void 0x0:_0x56bb89[_0x12d31b(0x13d)]},Reflect[_0x12d31b(0x1a5)](_0x135c4d[_0x12d31b(0x13d)],_0x23b461);let _0x1cf79a=Date['now']();if(_0x135c4d[_0x12d31b(0xd7)]||=''+_0x1cf79a,_0x135c4d[_0x12d31b(0x11e)]||=_0x1cf79a,_0x135c4d[_0x12d31b(0x182)]||=_0x1cf79a,!this['_commandService'][_0x12d31b(0x1b1)](_0x9bba9['id'],{'unitId':this['_base'][_0x12d31b(0x1b0)](),'tableId':this[_0x12d31b(0x1e0)][_0x12d31b(0x1b0)](),'sourceRecordId':this[_0x12d31b(0xf7)],'record':_0x135c4d,'source':_0x31e93c[_0x12d31b(0xea)]}))throw Error(_0x12d31b(0x1bf)+this[_0x12d31b(0xf7)]+'\x22.');return this[_0x12d31b(0x114)]['createInstance'](J,this[_0x12d31b(0x215)],this[_0x12d31b(0x1e0)],_0x135c4d['id'],this[_0x12d31b(0x114)]);}[_0x52461d(0x129)](_0x172524){const _0x1af02a=_0x52461d;return this[_0x1af02a(0x201)][_0x1af02a(0x1b1)](_0x1a08ea['id'],{'unitId':this[_0x1af02a(0x215)][_0x1af02a(0x1b0)](),'tableId':this[_0x1af02a(0x1e0)][_0x1af02a(0x1b0)](),'recordId':this[_0x1af02a(0xf7)],'orderKey':_0x172524});}[_0x52461d(0x1fc)](_0x1aa665){const _0x5d3bcd=_0x52461d;let _0x3b1c28=this[_0x5d3bcd(0x1f4)](_0x1aa665),_0x5f7546=this[_0x5d3bcd(0x185)](_0x3b1c28['id']);return _0x549917(_0x5f7546);}[_0x52461d(0x1f6)](_0x5bec47,_0x2716a8){const _0x10755f=_0x52461d;let _0x4812fd=this[_0x10755f(0x1f4)](_0x5bec47),_0x43fc43=_0x1e71bc(_0x2716a8),_0x114b16=_0x2de149(this[_0x10755f(0x215)][_0x10755f(0x188)]()[_0x10755f(0xbb)](),_0x4812fd,_0x43fc43);if(!_0x114b16['valid'])throw Error(_0x114b16[_0x10755f(0x16a)]??_0x10755f(0x123));return this[_0x10755f(0x201)][_0x10755f(0x1b1)](_0x20c761['id'],{'unitId':this[_0x10755f(0x215)]['getId'](),'tableId':this[_0x10755f(0x1e0)]['getId'](),'recordId':this[_0x10755f(0xf7)],'fieldId':_0x5bec47,'value':_0x43fc43,'source':_0x31e93c[_0x10755f(0xea)]});}[_0x52461d(0xfe)](_0x254332,_0x2a7347){const _0x8cab45=_0x52461d;let _0x4a6969=this['_getRecordLinkField'](_0x254332),_0xec570f=_0x737712(_0x4a6969);if(!_0xec570f)throw Error('[FRecord]:\x20RecordLink\x20field\x20\x22'+_0x254332+_0x8cab45(0xfc));let _0x4470fb=this['getLinkedRecordIds'](_0x254332);return _0xec570f[_0x8cab45(0xda)]&&_0x4470fb[_0x8cab45(0x19c)](_0x2a7347)?!0x0:this[_0x8cab45(0x1f6)](_0x254332,_0xec570f['multiple']?[..._0x4470fb,_0x2a7347]:[_0x2a7347]);}['removeLinkedRecord'](_0x543d2c,_0x30777c){const _0x5ed32e=_0x52461d;let _0x2c3e7e=this[_0x5ed32e(0x1fc)](_0x543d2c);return!_0x2c3e7e[_0x5ed32e(0x19c)](_0x30777c)||this[_0x5ed32e(0x1f6)](_0x543d2c,_0x2c3e7e[_0x5ed32e(0x16e)](_0x3aa7bd=>_0x3aa7bd!==_0x30777c));}[_0x52461d(0x1bd)](_0x2d47e3){const _0x2afbff=_0x52461d;let _0x18dee0=this['_getHierarchyIndex'](_0x2d47e3)[_0x2afbff(0x183)][_0x2afbff(0xfb)](this[_0x2afbff(0xf7)])??null;return _0x18dee0?this[_0x2afbff(0x1e0)][_0x2afbff(0x1f7)](_0x18dee0):null;}[_0x52461d(0x164)](_0x589be3){const _0x2f6708=_0x52461d;return(this[_0x2f6708(0x13b)](_0x589be3)['childrenByParentId'][_0x2f6708(0xfb)](this[_0x2f6708(0xf7)])??[])[_0x2f6708(0xe0)](_0x428e91=>{const _0x3f11bb=_0x2f6708;let _0x158706=this[_0x3f11bb(0x1e0)][_0x3f11bb(0x1f7)](_0x428e91);return _0x158706?[_0x158706]:[];});}['getAncestors'](_0x3fb2d4){const _0x13bf6e=_0x52461d;let _0x578e50=this[_0x13bf6e(0x13b)](_0x3fb2d4),_0x3589fc=[],_0x2d5158=_0x578e50[_0x13bf6e(0x183)][_0x13bf6e(0xfb)](this[_0x13bf6e(0xf7)])??null;for(;_0x2d5158;){let _0x42d294=this[_0x13bf6e(0x1e0)][_0x13bf6e(0x1f7)](_0x2d5158);_0x42d294&&_0x3589fc[_0x13bf6e(0x142)](_0x42d294),_0x2d5158=_0x578e50[_0x13bf6e(0x183)][_0x13bf6e(0xfb)](_0x2d5158)??null;}return _0x3589fc;}['getDescendants'](_0x16fd9b){const _0x141e7b=_0x52461d;let _0x84c071=this[_0x141e7b(0x13b)](_0x16fd9b),_0x33c22b=_0x84c071[_0x141e7b(0x1ca)][_0x141e7b(0x15e)](this[_0x141e7b(0xf7)]),_0x10d470=_0x84c071['subtreeHeightByRecordId'][_0x141e7b(0x1d2)](this['_recordId'])?this[_0x141e7b(0xc2)](_0x84c071['childrenByParentId'],this[_0x141e7b(0xf7)]):[];return _0x33c22b<0x0?[]:_0x10d470[_0x141e7b(0xe0)](_0x4a53e0=>{const _0x395596=_0x141e7b;let _0xa63f39=this[_0x395596(0x1e0)]['getRecordById'](_0x4a53e0);return _0xa63f39?[_0xa63f39]:[];});}[_0x52461d(0x12a)](_0x46120c,_0x5c7ad4,_0x2c54e2){const _0x59adb4=_0x52461d;return this['_commandService']['syncExecuteCommand'](_0x5267a7['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x59adb4(0x1e0)][_0x59adb4(0x1b0)](),'fieldId':_0x46120c,'recordId':this[_0x59adb4(0xf7)],'parentRecordId':_0x5c7ad4,'orderKey':_0x2c54e2,'source':_0x31e93c[_0x59adb4(0xea)]});}[_0x52461d(0x17b)](_0xcff611,_0xdd3016,_0x5c4787='id',_0x4d170a){const _0x2146fa=_0x52461d;let _0x27af95=this[_0x2146fa(0x1e0)][_0x2146fa(0x1cd)](),_0x138875=Date[_0x2146fa(0x12f)](),_0x5e3867={..._0x4d170a,'id':_0x416ff3(0x6),'values':H(_0x27af95,_0xdd3016,_0x5c4787),'orderKey':(_0x4d170a==null?void 0x0:_0x4d170a[_0x2146fa(0xd7)])||''+_0x138875,'createdAt':(_0x4d170a==null?void 0x0:_0x4d170a[_0x2146fa(0x11e)])||_0x138875,'updatedAt':(_0x4d170a==null?void 0x0:_0x4d170a[_0x2146fa(0x182)])||_0x138875};if(!this[_0x2146fa(0x201)][_0x2146fa(0x1b1)](_0x5e51db['id'],{'unitId':this[_0x2146fa(0x215)][_0x2146fa(0x1b0)](),'tableId':this['_table'][_0x2146fa(0x1b0)](),'fieldId':_0xcff611,'parentRecordId':this[_0x2146fa(0xf7)],'record':_0x5e3867,'source':_0x31e93c[_0x2146fa(0xea)]}))throw Error('[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22'+this['_recordId']+'\x22.');return this[_0x2146fa(0x114)][_0x2146fa(0x159)](J,this[_0x2146fa(0x215)],this[_0x2146fa(0x1e0)],_0x5e3867['id'],this['_injector']);}[_0x52461d(0x13b)](_0x2eb966){const _0x441fff=_0x52461d;return _0x48b6a3(this[_0x441fff(0x1e0)][_0x441fff(0x1cd)](),_0x2eb966);}[_0x52461d(0xc2)](_0x56f873,_0x261a61){let _0xd95cf3=[],_0x46549f=_0x1a110e=>{const _0x4a0171=_0x1e0f;for(let _0x22feca of _0x56f873[_0x4a0171(0xfb)](_0x1a110e)??[])_0xd95cf3[_0x4a0171(0x142)](_0x22feca),_0x46549f(_0x22feca);};return _0x46549f(_0x261a61),_0xd95cf3;}[_0x52461d(0x10e)](){const _0x3aa075=_0x52461d;let _0x285336=this[_0x3aa075(0x1e0)][_0x3aa075(0x1cd)]()[_0x3aa075(0x195)][this[_0x3aa075(0xf7)]];if(!_0x285336)throw Error(_0x3aa075(0x178)+this[_0x3aa075(0xf7)]+_0x3aa075(0x14c));return _0x285336;}[_0x52461d(0x1f4)](_0x1dfc76){const _0x179d44=_0x52461d;let _0x2a9875=this[_0x179d44(0x1e0)]['getTable']()[_0x179d44(0xd8)][_0x1dfc76];if(!_0x2a9875||_0x2a9875[_0x179d44(0x1a3)]!==_0x4db00c['RecordLink'])throw Error(_0x179d44(0x157)+_0x1dfc76+_0x179d44(0xf0));return _0x2a9875;}['_getAttachmentField'](_0x4de119){const _0x3f4a9b=_0x52461d;let _0x2ad502=this['_table'][_0x3f4a9b(0x1cd)]()[_0x3f4a9b(0xd8)][_0x4de119];if(!_0x2ad502||_0x2ad502[_0x3f4a9b(0x1a3)]!==_0x4db00c['Attachment'])throw Error(_0x3f4a9b(0x157)+_0x4de119+'\x22\x20is\x20not\x20an\x20Attachment\x20field.');return _0x2ad502;}};Y=J=z([R(0x4,_0xd6c9e9),R(0x5,_0x24a74f)],Y);function gt(_0xae2f62){const _0xee5d6=_0x52461d;return!!(_0xae2f62&&typeof _0xae2f62==_0xee5d6(0x156)&&'id'in _0xae2f62&&typeof _0xae2f62['id']=='string'&&_0xee5d6(0xb8)in _0xae2f62&&typeof _0xae2f62[_0xee5d6(0xb8)]==_0xee5d6(0x207));}function _t(_0x1f7008,_0x1520db,_0x1cdbf0){const _0x1f6085=_0x52461d;if(!gt(_0x1f7008))throw Error('[FRecord]:\x20attachment\x20at\x20index\x20'+_0x1cdbf0+_0x1f6085(0x1b7)+_0x1520db+_0x1f6085(0x143));return{..._0x1f7008};}let X=class{constructor(_0x22ff1b,_0xdc1a38,_0x5f0d11,_0x49213b,_0x9d592d,_0x3934cf,_0x18eada){const _0x4e55dd=_0x52461d;this[_0x4e55dd(0x215)]=_0x22ff1b,this['_table']=_0xdc1a38,this[_0x4e55dd(0x141)]=_0x5f0d11,this['_injector']=_0x49213b,this[_0x4e55dd(0x201)]=_0x9d592d,this[_0x4e55dd(0x184)]=_0x3934cf,this[_0x4e55dd(0x1c2)]=_0x18eada;}[_0x52461d(0x1b0)](){const _0x28f178=_0x52461d;return this[_0x28f178(0x141)];}[_0x52461d(0xb9)](){const _0x4018c6=_0x52461d;let _0xab6bbf=this[_0x4018c6(0x1e0)][_0x4018c6(0x1b0)]();return new L(this['_base'][_0x4018c6(0x1b0)](),_0xfa3792(_0xab6bbf,this[_0x4018c6(0x141)]),[_0x2ffd70(_0xab6bbf)],this[_0x4018c6(0x201)],this[_0x4018c6(0x184)]);}[_0x52461d(0x14f)](){const _0x427aea=_0x52461d;return this[_0x427aea(0x12c)]();}['getName'](){const _0x2975c7=_0x52461d;return this[_0x2975c7(0x12c)]()['name'];}[_0x52461d(0x216)](){const _0x391ba1=_0x52461d;return this[_0x391ba1(0x12c)]()[_0x391ba1(0x1a3)];}[_0x52461d(0x1b2)](_0x579ee2){const _0x500721=_0x52461d;return this[_0x500721(0x201)]['syncExecuteCommand'](_0x17bbd8['id'],{'unitId':this['_base'][_0x500721(0x1b0)](),'tableId':this[_0x500721(0x1e0)][_0x500721(0x1b0)](),'viewId':this[_0x500721(0x141)],'name':_0x579ee2});}[_0x52461d(0x110)](){const _0x451d75=_0x52461d;let _0x9c76ba=this[_0x451d75(0x216)](),_0x758665=this['_getView']()[_0x451d75(0x199)];switch(_0x9c76ba){case _0x46c53d[_0x451d75(0xe7)]:return _0x758665;case _0x46c53d[_0x451d75(0x1f5)]:return _0x758665;case _0x46c53d['Calendar']:return _0x758665;case _0x46c53d[_0x451d75(0x14b)]:return _0x758665;case _0x46c53d[_0x451d75(0x1cb)]:return _0x758665;default:return _0x758665;}}[_0x52461d(0x1a2)](_0x363a02){const _0x45dcf5=_0x52461d;return this[_0x45dcf5(0x201)][_0x45dcf5(0x1b1)](_0x2be8c4['id'],{'unitId':this[_0x45dcf5(0x215)][_0x45dcf5(0x1b0)](),'tableId':this[_0x45dcf5(0x1e0)][_0x45dcf5(0x1b0)](),'viewId':this[_0x45dcf5(0x141)],'patch':_0x363a02});}['getConditionalColorRules'](){const _0x4108c0=_0x52461d;var _0x49b598;return _0x5ddc99['deepClone'](((_0x49b598=this[_0x4108c0(0x12c)]()[_0x4108c0(0x199)][_0x4108c0(0x1a8)])==null?void 0x0:_0x49b598[_0x4108c0(0x217)])??[]);}[_0x52461d(0x19e)](_0x3e098b){const _0x3a7a1d=_0x52461d;return this[_0x3a7a1d(0x201)]['syncExecuteCommand'](_0x4a0521['id'],{'unitId':this[_0x3a7a1d(0x215)][_0x3a7a1d(0x1b0)](),'tableId':this[_0x3a7a1d(0x1e0)][_0x3a7a1d(0x1b0)](),'viewId':this[_0x3a7a1d(0x141)],'type':_0x45aea4[_0x3a7a1d(0x1d6)],'rules':_0x3e098b});}[_0x52461d(0xfd)](_0x1f81a2){const _0x39ec93=_0x52461d;return this[_0x39ec93(0x201)][_0x39ec93(0x1b1)](_0x4a0521['id'],{'unitId':this[_0x39ec93(0x215)][_0x39ec93(0x1b0)](),'tableId':this['_table']['getId'](),'viewId':this[_0x39ec93(0x141)],'type':_0x45aea4['Add'],'rule':_0x1f81a2});}['deleteConditionalColorRule'](_0x14bc33){const _0x13f312=_0x52461d;return this[_0x13f312(0x201)][_0x13f312(0x1b1)](_0x4a0521['id'],{'unitId':this[_0x13f312(0x215)][_0x13f312(0x1b0)](),'tableId':this[_0x13f312(0x1e0)][_0x13f312(0x1b0)](),'viewId':this[_0x13f312(0x141)],'type':_0x45aea4[_0x13f312(0x139)],'ruleId':_0x14bc33});}[_0x52461d(0x218)](){const _0xd19903=_0x52461d;return this[_0xd19903(0x201)][_0xd19903(0x1b1)](_0x4a0521['id'],{'unitId':this[_0xd19903(0x215)][_0xd19903(0x1b0)](),'tableId':this['_table']['getId'](),'viewId':this[_0xd19903(0x141)],'type':_0x45aea4[_0xd19903(0x191)]});}[_0x52461d(0x134)](){const _0x2f9c4f=_0x52461d;return this['_getView']()[_0x2f9c4f(0x16e)]??null;}[_0x52461d(0x16f)](_0xcdf6e2){const _0x4beff8=_0x52461d;return this[_0x4beff8(0x201)][_0x4beff8(0x1b1)](_0x34acd0['id'],{'unitId':this[_0x4beff8(0x215)][_0x4beff8(0x1b0)](),'tableId':this[_0x4beff8(0x1e0)][_0x4beff8(0x1b0)](),'viewId':this[_0x4beff8(0x141)],'filter':_0xcdf6e2});}[_0x52461d(0x193)](){const _0xad5323=_0x52461d;return this[_0xad5323(0x12c)]()['sort']??[];}[_0x52461d(0x130)](_0x1e66f7){const _0x5df6df=_0x52461d;return this['_commandService']['syncExecuteCommand'](_0xfa97a2['id'],{'unitId':this[_0x5df6df(0x215)][_0x5df6df(0x1b0)](),'tableId':this['_table']['getId'](),'viewId':this[_0x5df6df(0x141)],'sort':_0x1e66f7});}[_0x52461d(0x212)](){const _0x36f3fc=_0x52461d;return this[_0x36f3fc(0x12c)]()['group']??[];}[_0x52461d(0x1ef)](_0x539613){const _0x7ba496=_0x52461d;return this['_commandService']['syncExecuteCommand'](_0x3b44c4['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0x7ba496(0x1b0)](),'viewId':this[_0x7ba496(0x141)],'group':_0x539613});}[_0x52461d(0x17c)](_0x3f1995){const _0x1d1fae=_0x52461d;var _0x442c79;return V(this[_0x1d1fae(0x1e0)][_0x1d1fae(0x1cd)]()[_0x1d1fae(0xd8)][_0x3f1995])?((_0x442c79=this[_0x1d1fae(0x12c)]()['fieldSettings'])==null?void 0x0:_0x442c79[_0x3f1995])??{}:{};}['getVisibleFields'](){const _0x23404e=_0x52461d;let _0x3d7df8=this[_0x23404e(0x1e0)][_0x23404e(0x1cd)](),_0x1e9c94=this[_0x23404e(0x12c)]();return(_0x1e9c94[_0x23404e(0x149)]??_0x3d7df8[_0x23404e(0x149)])[_0x23404e(0x16e)](_0x1dcecf=>{const _0x15b4fb=_0x23404e;var _0x270ffe;let _0x4b07d8=_0x3d7df8[_0x15b4fb(0xd8)][_0x1dcecf];return V(_0x4b07d8)&&!((_0x270ffe=_0x1e9c94['fieldSettings'])!=null&&(_0x270ffe=_0x270ffe[_0x1dcecf])!=null&&_0x270ffe['hidden']);})[_0x23404e(0x1ed)](_0x34d779=>this[_0x23404e(0x114)][_0x23404e(0x159)](B,this[_0x23404e(0x215)],this[_0x23404e(0x1e0)],_0x34d779));}[_0x52461d(0x1a6)](_0x5aa94c,_0x46a3c1){const _0x7c362f=_0x52461d;return V(this[_0x7c362f(0x1e0)][_0x7c362f(0x1cd)]()[_0x7c362f(0xd8)][_0x5aa94c])?this['_commandService'][_0x7c362f(0x1b1)](_0x558a88['id'],{'unitId':this['_base'][_0x7c362f(0x1b0)](),'tableId':this['_table'][_0x7c362f(0x1b0)](),'viewId':this[_0x7c362f(0x141)],'fieldId':_0x5aa94c,'visible':_0x46a3c1}):!0x1;}['setFieldWidth'](_0x277662,_0x46ff05){const _0x250a8d=_0x52461d;return V(this[_0x250a8d(0x1e0)][_0x250a8d(0x1cd)]()['fields'][_0x277662])?this[_0x250a8d(0x201)][_0x250a8d(0x1b1)](_0x3cccae['id'],{'unitId':this['_base'][_0x250a8d(0x1b0)](),'tableId':this[_0x250a8d(0x1e0)][_0x250a8d(0x1b0)](),'viewId':this[_0x250a8d(0x141)],'fieldId':_0x277662,'width':_0x46ff05}):!0x1;}['moveField'](_0x422d80,_0x58628a){const _0x372a1c=_0x52461d;let _0x599e8a=this[_0x372a1c(0x1e0)][_0x372a1c(0x1cd)](),_0x5e2ac6=_0x58628a[_0x372a1c(0x1a0)]??_0x58628a['afterFieldId'];return!V(_0x599e8a['fields'][_0x422d80])||!_0x5e2ac6||!V(_0x599e8a['fields'][_0x5e2ac6])?!0x1:this[_0x372a1c(0x201)]['syncExecuteCommand'](_0x3711a9['id'],{'unitId':this[_0x372a1c(0x215)][_0x372a1c(0x1b0)](),'tableId':this[_0x372a1c(0x1e0)][_0x372a1c(0x1b0)](),'viewId':this[_0x372a1c(0x141)],'fieldId':_0x422d80,'target':_0x58628a});}[_0x52461d(0x1f3)](_0x2c7484){const _0x1ead1a=_0x52461d;return this[_0x1ead1a(0x201)][_0x1ead1a(0x1b1)](_0x4fbbd5['id'],{'unitId':this[_0x1ead1a(0x215)][_0x1ead1a(0x1b0)](),'tableId':this[_0x1ead1a(0x1e0)][_0x1ead1a(0x1b0)](),'viewId':this['_viewId'],'target':_0x2c7484});}[_0x52461d(0x1eb)](){const _0x66598d=_0x52461d;return this[_0x66598d(0x201)][_0x66598d(0x1b1)](_0x4bd2e5['id'],{'unitId':this['_base'][_0x66598d(0x1b0)](),'tableId':this['_table']['getId'](),'viewId':this['_viewId']});}[_0x52461d(0x1cf)](){const _0xe4463c=_0x52461d;return this[_0xe4463c(0x1c2)]['getProjection'](this['_base'][_0xe4463c(0x188)]()[_0xe4463c(0xbb)](),this[_0xe4463c(0x1e0)][_0xe4463c(0x1b0)](),this[_0xe4463c(0x141)]);}[_0x52461d(0x12c)](){const _0x1fd121=_0x52461d;let _0x3b8c43=this[_0x1fd121(0x1e0)][_0x1fd121(0x1cd)]()[_0x1fd121(0x1c6)][this[_0x1fd121(0x141)]];if(!_0x3b8c43)throw Error(_0x1fd121(0x165)+this['_viewId']+_0x1fd121(0x14c));return _0x3b8c43;}};X=z([R(0x4,_0xd6c9e9),R(0x5,_0x24a74f),R(0x6,_0x1ddcb6)],X);let Z=class{constructor(_0x5706c9,_0x322402,_0x6d0768,_0x293bad,_0x5d2f72,_0x441abe){const _0x42888c=_0x52461d;this['_base']=_0x5706c9,this[_0x42888c(0x1c4)]=_0x322402,this[_0x42888c(0x114)]=_0x6d0768,this['_commandService']=_0x293bad,this[_0x42888c(0x184)]=_0x5d2f72,this[_0x42888c(0x1c2)]=_0x441abe;}['getBase'](){const _0x175f2a=_0x52461d;return this['_base'][_0x175f2a(0x188)]();}['getTable'](){const _0x3401b9=_0x52461d;return this[_0x3401b9(0x119)]();}[_0x52461d(0x1b0)](){const _0x360904=_0x52461d;return this[_0x360904(0x1c4)];}[_0x52461d(0xb9)](){const _0x362bdc=_0x52461d;return new L(this[_0x362bdc(0x188)]()[_0x362bdc(0xe9)](),_0x2ffd70(this[_0x362bdc(0x1c4)]),[],this[_0x362bdc(0x201)],this[_0x362bdc(0x184)]);}['getHierarchyFieldId'](){const _0x2631e4=_0x52461d;return _0x39d8f6(this[_0x2631e4(0x119)]());}[_0x52461d(0x135)](_0x196870){const _0x4fb38a=_0x52461d;return this[_0x4fb38a(0x201)][_0x4fb38a(0x1b1)](_0x3111e0['id'],{'unitId':this[_0x4fb38a(0x215)]['getId'](),'tableId':this[_0x4fb38a(0x1c4)],'fieldId':_0x196870});}['getName'](){const _0x3fc1d6=_0x52461d;return this['_getTable']()[_0x3fc1d6(0xb8)];}[_0x52461d(0xcb)](){const _0x1bbaea=_0x52461d;let _0xc83ecb=this[_0x1bbaea(0x215)][_0x1bbaea(0x188)]()[_0x1bbaea(0xbb)]();return _0x2e5aa4(this[_0x1bbaea(0x119)](),_0xc83ecb);}['setName'](_0x358d44){const _0x4b22f4=_0x52461d;let _0x5af1ea=_0x597076(this[_0x4b22f4(0x215)]['getBase']()[_0x4b22f4(0xbb)](),_0x358d44,this['_tableId']);if(!_0x5af1ea[_0x4b22f4(0x1ec)])throw Error(_0x4b22f4(0xef)+_0x358d44+_0x4b22f4(0xe6)+_0x37427f+'\x20'+_0x5af1ea[_0x4b22f4(0x16a)]);return this[_0x4b22f4(0x201)][_0x4b22f4(0x1b1)](_0x2adfc6['id'],{'unitId':this[_0x4b22f4(0x215)]['getId'](),'tableId':this[_0x4b22f4(0x1c4)],'name':_0x358d44});}[_0x52461d(0x108)](_0x56e44e,_0xf8a4c7){const _0x1137fa=_0x52461d;let _0x3e1baf=this[_0x1137fa(0x215)][_0x1137fa(0x188)]()[_0x1137fa(0xbb)](),_0x199bbe=this[_0x1137fa(0x119)]();if(_0xf8a4c7){let _0x7b9e83=this[_0x1137fa(0x1c2)][_0x1137fa(0x1cf)](_0x3e1baf,this[_0x1137fa(0x1c4)],_0xf8a4c7),_0x5657cd=_0x199bbe[_0x1137fa(0x1c6)][_0xf8a4c7],_0x3df8dc=_0x56e44e['fieldIds']??Tt(_0x199bbe,_0x5657cd,_0x7b9e83),_0x57f7ba=_0x1137fa(0x171)in _0x7b9e83&&Array['isArray'](_0x7b9e83[_0x1137fa(0x171)])?_0x7b9e83[_0x1137fa(0x171)]:[];return _0x4f1a66({..._0x56e44e,'table':_0x199bbe,'fieldIds':_0x3df8dc,'rows':_0x57f7ba});}let _0x5441c9=(_0x199bbe[_0x1137fa(0x14a)]?_0x199bbe[_0x1137fa(0x14a)][_0x1137fa(0x1ed)](_0x460f21=>_0x199bbe[_0x1137fa(0x195)][_0x460f21]):Object['values'](_0x199bbe[_0x1137fa(0x195)])[_0x1137fa(0x186)]((_0x2cdf47,_0x4649b5)=>_0x2cdf47[_0x1137fa(0xd7)][_0x1137fa(0xb7)](_0x4649b5[_0x1137fa(0xd7)])))[_0x1137fa(0x16e)](_0x36083a=>_0x36083a)[_0x1137fa(0x1ed)](_0x591d74=>({'recordId':_0x591d74['id'],'values':_0x591d74['values']})),_0x5f855f=_0x56e44e['fieldIds']??_0x199bbe[_0x1137fa(0x149)][_0x1137fa(0x16e)](_0x18c484=>V(_0x199bbe['fields'][_0x18c484]));return _0x4f1a66({..._0x56e44e,'table':_0x199bbe,'fieldIds':_0x5f855f,'rows':_0x5441c9});}[_0x52461d(0x1ac)](){const _0x3a555f=_0x52461d;return this[_0x3a555f(0x119)]()[_0x3a555f(0x209)];}[_0x52461d(0x187)](){const _0x4eb98c=_0x52461d;let _0xe5c125=this[_0x4eb98c(0x119)]();return _0xe5c125[_0x4eb98c(0x149)][_0x4eb98c(0x1ed)](_0x122ff4=>_0xe5c125['fields'][_0x122ff4])[_0x4eb98c(0x16e)](V)['map'](_0x4ddc39=>this[_0x4eb98c(0x114)][_0x4eb98c(0x159)](B,this['_base'],this,_0x4ddc39['id']));}['getFieldById'](_0x32bd48){const _0x136090=_0x52461d;let _0x578c22=this[_0x136090(0x119)]()[_0x136090(0xd8)][_0x32bd48];return V(_0x578c22)?this['_injector'][_0x136090(0x159)](B,this[_0x136090(0x215)],this,_0x578c22['id']):null;}[_0x52461d(0x1d4)](_0x4983b6){const _0x13c727=_0x52461d;let _0x3d3e91=this[_0x13c727(0x119)]()[_0x13c727(0xd8)],_0x18ee87=Object[_0x13c727(0x13d)](_0x3d3e91)['find'](_0xaf419b=>V(_0xaf419b)&&_0xaf419b[_0x13c727(0xb8)]===_0x4983b6);return _0x18ee87?this['_injector'][_0x13c727(0x159)](B,this['_base'],this,_0x18ee87['id']):null;}[_0x52461d(0xcd)](){const _0x362795=_0x52461d;let _0x2a2fc0=this[_0x362795(0x119)]()[_0x362795(0x209)];return this['_injector'][_0x362795(0x159)](B,this[_0x362795(0x215)],this,_0x2a2fc0);}[_0x52461d(0x1ab)](_0x25d7b9,_0x109cd7,_0x2a3577){const _0x1d1944=_0x52461d;var _0x2d8c43,_0xc2994e;if(!Object['values'](_0x4db00c)['some'](_0x3b3218=>_0x3b3218===_0x109cd7))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x109cd7)+'\x22.');if(_0x109cd7===_0x4db00c[_0x1d1944(0xd2)]&&this[_0x1d1944(0x1a7)](_0x25d7b9,_0x2a3577),_0x109cd7===_0x4db00c[_0x1d1944(0x101)]&&(typeof(_0x2a3577==null||(_0x2d8c43=_0x2a3577[_0x1d1944(0x112)])==null||(_0x2d8c43=_0x2d8c43[_0x1d1944(0x199)])==null?void 0x0:_0x2d8c43[_0x1d1944(0x10d)])!=_0x1d1944(0x207)||typeof _0x2a3577[_0x1d1944(0x112)][_0x1d1944(0x199)][_0x1d1944(0xda)]!=_0x1d1944(0x120)))throw Error(_0x1d1944(0x13c));let _0x1eefb9={..._0x2a3577==null?void 0x0:_0x2a3577[_0x1d1944(0x112)],'id':_0x416ff3(0x6),'name':_0x25d7b9,'type':_0x109cd7,'config':(_0x2a3577==null||(_0xc2994e=_0x2a3577[_0x1d1944(0x112)])==null?void 0x0:_0xc2994e['config'])??{}};if(!this[_0x1d1944(0x201)]['syncExecuteCommand'](_0x5649ae['id'],{'unitId':this[_0x1d1944(0x215)][_0x1d1944(0x1b0)](),'tableId':this[_0x1d1944(0x1c4)],'field':_0x1eefb9,'index':_0x2a3577==null?void 0x0:_0x2a3577[_0x1d1944(0x1dd)]}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x25d7b9+'\x22');return this['_injector']['createInstance'](B,this[_0x1d1944(0x215)],this,_0x1eefb9['id']);}[_0x52461d(0x1a7)](_0x5e6b31,_0x5cce23){const _0x52b8ba=_0x52461d;var _0xaac404;if(!_0x5cce23||!(_0x52b8ba(0x12b)in _0x5cce23)||!Array[_0x52b8ba(0x166)](_0x5cce23[_0x52b8ba(0x12b)]))throw Error(_0x52b8ba(0x1e7));let _0x2e20c2=this[_0x52b8ba(0x201)][_0x52b8ba(0x1b1)](_0x2d3f1c['id'],{'unitId':this[_0x52b8ba(0x215)]['getId'](),'tableId':this[_0x52b8ba(0x1c4)],'formula':String(((_0xaac404=_0x5cce23[_0x52b8ba(0x112)])==null||(_0xaac404=_0xaac404[_0x52b8ba(0x199)])==null?void 0x0:_0xaac404['formula'])??'')});if(!_0x2e20c2[_0x52b8ba(0x1ec)])throw Error(_0x2e20c2[_0x52b8ba(0x16a)]??'Invalid\x20Base\x20formula.');if(_0x5cce23[_0x52b8ba(0x12b)][_0x52b8ba(0x1c3)]>0x0&&!this[_0x52b8ba(0x201)][_0x52b8ba(0x1b1)](_0x1301ac['id'],{'unitId':this[_0x52b8ba(0x215)]['getId'](),'references':_0x5cce23[_0x52b8ba(0x12b)]}))throw Error('Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22'+_0x5e6b31+'\x22');}[_0x52461d(0x1f2)](){const _0x48c5ad=_0x52461d;return this['_resolveRecordIds']()[_0x48c5ad(0x1ed)](_0x33439b=>this['_injector']['createInstance'](Y,this['_base'],this,_0x33439b,this[_0x48c5ad(0x114)]));}[_0x52461d(0x1f7)](_0x2d2d79){const _0x4e3ed5=_0x52461d;return this[_0x4e3ed5(0x119)]()[_0x4e3ed5(0x195)][_0x2d2d79]?this[_0x4e3ed5(0x114)][_0x4e3ed5(0x159)](Y,this[_0x4e3ed5(0x215)],this,_0x2d2d79,this[_0x4e3ed5(0x114)]):null;}[_0x52461d(0x20e)](_0x24e46e={}){const _0x5ddc09=_0x52461d;let _0x4a0013=this[_0x5ddc09(0x119)](),_0x2b45de=this['_resolveRecordIds'](_0x24e46e),_0x26ff7a=Math['max'](0x0,_0x24e46e[_0x5ddc09(0x1d3)]??0x0),_0x1cb921=_0x24e46e[_0x5ddc09(0x13a)]==null?null:Math[_0x5ddc09(0xde)](0x0,_0x24e46e[_0x5ddc09(0x13a)]),_0x3c9143=yt(_0x2b45de[_0x5ddc09(0x1ed)](_0x5c073d=>_0x4a0013[_0x5ddc09(0x195)][_0x5c073d])['filter'](_0x4c61f3=>xt(_0x4c61f3,_0x4a0013,_0x24e46e[_0x5ddc09(0x16e)])),_0x4a0013,_0x24e46e['sort']);return{'records':vt(_0x3c9143,_0x24e46e)[_0x5ddc09(0x1ed)](_0x3af312=>this['_injector'][_0x5ddc09(0x159)](Y,this[_0x5ddc09(0x215)],this,_0x3af312['id'],this[_0x5ddc09(0x114)])),'total':_0x3c9143[_0x5ddc09(0x1c3)],'offset':_0x26ff7a,'limit':_0x1cb921,'hasMore':_0x1cb921!=null&&_0x26ff7a+_0x1cb921<_0x3c9143['length']};}[_0x52461d(0xcc)](_0x21dd4f,_0x3779d6='id',_0x571f78){const _0x5e58fc=_0x52461d;let _0x15a3fe=this[_0x5e58fc(0x119)](),_0x485341=Date[_0x5e58fc(0x12f)](),_0x55f59a={..._0x571f78,'id':_0x416ff3(0x6),'values':H(_0x15a3fe,_0x21dd4f,_0x3779d6),'orderKey':(_0x571f78==null?void 0x0:_0x571f78[_0x5e58fc(0xd7)])||''+_0x485341,'createdAt':(_0x571f78==null?void 0x0:_0x571f78[_0x5e58fc(0x11e)])||_0x485341,'updatedAt':(_0x571f78==null?void 0x0:_0x571f78[_0x5e58fc(0x182)])||_0x485341};if(!this[_0x5e58fc(0x201)][_0x5e58fc(0x1b1)](_0x2efdd1['id'],{'unitId':this[_0x5e58fc(0x215)][_0x5e58fc(0x1b0)](),'tableId':this['_tableId'],'record':_0x55f59a,'source':_0x31e93c['Facade']}))throw Error(_0x5e58fc(0x1e1)+_0x55f59a['id']+'\x22');return this['_injector'][_0x5e58fc(0x159)](Y,this[_0x5e58fc(0x215)],this,_0x55f59a['id'],this[_0x5e58fc(0x114)]);}['addRecords'](_0x226274){const _0x1dd5d8=_0x52461d;if(!_0x226274[_0x1dd5d8(0x1c3)])return[];let _0x426338=this[_0x1dd5d8(0x119)](),_0x203c8f=Date[_0x1dd5d8(0x12f)](),_0x29c844=_0x226274['map']((_0x19a3de,_0x98aaa1)=>{const _0x4801e4=_0x1dd5d8;var _0x589e9b,_0x5b5d5d,_0x33ac8a;return{..._0x19a3de['record'],'id':_0x416ff3(0x6),'values':H(_0x426338,_0x19a3de[_0x4801e4(0x13d)],_0x19a3de['fieldKey']??'id'),'orderKey':((_0x589e9b=_0x19a3de['record'])==null?void 0x0:_0x589e9b[_0x4801e4(0xd7)])||''+(_0x203c8f+_0x98aaa1),'createdAt':((_0x5b5d5d=_0x19a3de[_0x4801e4(0x150)])==null?void 0x0:_0x5b5d5d[_0x4801e4(0x11e)])||_0x203c8f,'updatedAt':((_0x33ac8a=_0x19a3de[_0x4801e4(0x150)])==null?void 0x0:_0x33ac8a[_0x4801e4(0x182)])||_0x203c8f};});if(!this[_0x1dd5d8(0x201)]['syncExecuteCommand'](_0x2bc192['id'],{'unitId':this[_0x1dd5d8(0x215)]['getId'](),'tableId':this[_0x1dd5d8(0x1c4)],'records':_0x29c844,'source':_0x31e93c[_0x1dd5d8(0xea)]}))throw Error(_0x1dd5d8(0xc3));return _0x29c844[_0x1dd5d8(0x1ed)](_0x140f41=>this[_0x1dd5d8(0x114)][_0x1dd5d8(0x159)](Y,this[_0x1dd5d8(0x215)],this,_0x140f41['id'],this[_0x1dd5d8(0x114)]));}['deleteRecords'](_0x52b735){const _0x47ebe1=_0x52461d;return!_0x52b735[_0x47ebe1(0x1c3)]||this[_0x47ebe1(0x201)][_0x47ebe1(0x1b1)](_0x34e6c2['id'],{'unitId':this['_base']['getId'](),'tableId':this['_tableId'],'recordIds':_0x52b735,'source':_0x31e93c[_0x47ebe1(0xea)]});}['getRange'](_0x236058,_0x1c4f27,_0x1c7b15=0x1,_0x56550c=0x1){const _0x294bf3=_0x52461d;return this[_0x294bf3(0x114)][_0x294bf3(0x159)](K,this[_0x294bf3(0x215)],this,{'startRow':_0x236058,'endRow':_0x236058+_0x1c7b15-0x1,'startColumn':_0x1c4f27,'endColumn':_0x1c4f27+_0x56550c-0x1},this['_injector']);}[_0x52461d(0xdb)](){const _0x46d405=_0x52461d;var _0x2b1fdf;let _0x347179=_0x2c2e60(this[_0x46d405(0x119)]()),_0x37dce3=((_0x2b1fdf=_0x347179[_0x46d405(0x14a)])==null?void 0x0:_0x2b1fdf[_0x46d405(0x1c3)])??0x0,_0x4b76bd=_0x347179[_0x46d405(0x149)]['filter'](_0x4fdef0=>V(_0x347179['fields'][_0x4fdef0]))['length'];return this[_0x46d405(0x1b8)](0x0,0x0,Math[_0x46d405(0xde)](_0x37dce3,0x1),Math['max'](_0x4b76bd,0x1));}[_0x52461d(0x1d8)](){const _0x596bba=_0x52461d;let _0xc9fdab=this[_0x596bba(0x119)]();return _0xc9fdab[_0x596bba(0x1e2)][_0x596bba(0x16e)](_0x1dad33=>_0xc9fdab[_0x596bba(0x1c6)][_0x1dad33])[_0x596bba(0x1ed)](_0x2af3b0=>this['_injector'][_0x596bba(0x159)](X,this[_0x596bba(0x215)],this,_0x2af3b0,this[_0x596bba(0x114)]));}[_0x52461d(0x1fa)](_0x295c97){const _0x59a80a=_0x52461d;return this[_0x59a80a(0x119)]()[_0x59a80a(0x1c6)][_0x295c97]?this['_injector'][_0x59a80a(0x159)](X,this[_0x59a80a(0x215)],this,_0x295c97,this[_0x59a80a(0x114)]):null;}[_0x52461d(0xba)](_0x54e877){const _0x38ff77=_0x52461d;let _0x1ca6ce=this['_getTable'](),_0x416c5d=Object[_0x38ff77(0x13d)](_0x1ca6ce['views'])[_0x38ff77(0x219)](_0x3dbe0d=>_0x3dbe0d['name']===_0x54e877);return _0x416c5d?this['_injector'][_0x38ff77(0x159)](X,this[_0x38ff77(0x215)],this,_0x416c5d['id'],this['_injector']):null;}[_0x52461d(0x11c)](_0x11bab5,_0x21c5ec,_0x567bc3){const _0x205c3c=_0x52461d;var _0x31d010,_0x3dea38,_0x460544,_0x3a51e4;let _0x3d764d=this['_getTable'](),_0x2bb073=(_0x567bc3==null||(_0x31d010=_0x567bc3[_0x205c3c(0x173)])==null?void 0x0:_0x31d010[_0x205c3c(0x149)])??_0x3d764d['fieldOrder'],_0x14df70=[_0x23b461,..._0x2bb073[_0x205c3c(0x16e)](_0xe55427=>V(_0x3d764d[_0x205c3c(0xd8)][_0xe55427]))],_0x2ade66={..._0x567bc3==null?void 0x0:_0x567bc3[_0x205c3c(0x173)],'id':_0x416ff3(0x6),'name':_0x11bab5,'type':_0x21c5ec,'tableId':this[_0x205c3c(0x1c4)],'config':(_0x567bc3==null||(_0x3dea38=_0x567bc3[_0x205c3c(0x173)])==null?void 0x0:_0x3dea38[_0x205c3c(0x199)])??{},'fieldOrder':_0x14df70,'fieldSettings':{..._0x567bc3==null||(_0x460544=_0x567bc3[_0x205c3c(0x173)])==null?void 0x0:_0x460544['fieldSettings'],[_0x23b461]:{..._0x567bc3==null||(_0x3a51e4=_0x567bc3[_0x205c3c(0x173)])==null||(_0x3a51e4=_0x3a51e4[_0x205c3c(0xc8)])==null?void 0x0:_0x3a51e4[_0x23b461],'hidden':!0x0}}};if(!this['_commandService']['syncExecuteCommand'](_0x5d854f['id'],{'unitId':this[_0x205c3c(0x215)][_0x205c3c(0x1b0)](),'tableId':this['_tableId'],'view':_0x2ade66,'index':_0x567bc3==null?void 0x0:_0x567bc3['index']}))throw Error(_0x205c3c(0x102)+_0x11bab5+'\x22');return this[_0x205c3c(0x114)][_0x205c3c(0x159)](X,this[_0x205c3c(0x215)],this,_0x2ade66['id'],this[_0x205c3c(0x114)]);}['getSchema'](){const _0x1eb01d=_0x52461d;let _0x4135a3=this[_0x1eb01d(0x119)](),_0x346062=_0x4135a3[_0x1eb01d(0x149)][_0x1eb01d(0x16e)](_0x3e1f03=>V(_0x4135a3[_0x1eb01d(0xd8)][_0x3e1f03])),_0x207964=_0x4135a3[_0x1eb01d(0x1e2)][_0x1eb01d(0x16e)](_0xf8bc4b=>_0x4135a3[_0x1eb01d(0x1c6)][_0xf8bc4b]);return{'id':_0x4135a3['id'],'name':_0x4135a3[_0x1eb01d(0xb8)],'formulaName':this['getFormulaName'](),'primaryFieldId':_0x4135a3['primaryFieldId'],'fieldIds':_0x346062,'viewIds':_0x207964,'recordCount':this[_0x1eb01d(0x17e)]()[_0x1eb01d(0x1c3)],'fields':_0x346062[_0x1eb01d(0x1ed)](_0x2a0c50=>{const _0x3f2d39=_0x1eb01d;let _0x1d4148=_0x4135a3[_0x3f2d39(0xd8)][_0x2a0c50];return{'id':_0x1d4148['id'],'name':_0x1d4148[_0x3f2d39(0xb8)],'type':_0x1d4148[_0x3f2d39(0x1a3)],'config':_0x1d4148[_0x3f2d39(0x199)],'readonly':_0x1d4148['readonly'],'description':_0x1d4148[_0x3f2d39(0x170)]};}),'views':_0x207964[_0x1eb01d(0x1ed)](_0x2105fd=>{const _0x2fa62a=_0x1eb01d;let _0x556194=_0x4135a3[_0x2fa62a(0x1c6)][_0x2105fd];return{'id':_0x556194['id'],'name':_0x556194[_0x2fa62a(0xb8)],'type':_0x556194[_0x2fa62a(0x1a3)]};})};}[_0x52461d(0x119)](){const _0x2b11db=_0x52461d;let _0x5b53e9=this[_0x2b11db(0x215)][_0x2b11db(0x188)]()[_0x2b11db(0xbb)]()[_0x2b11db(0xf3)][this[_0x2b11db(0x1c4)]];if(!_0x5b53e9)throw Error('[FTable]:\x20table\x20\x22'+this[_0x2b11db(0x1c4)]+_0x2b11db(0x14c));return _0x5b53e9;}[_0x52461d(0x17e)](_0x55c37e={}){const _0x523b8d=_0x52461d;let _0x348406=this[_0x523b8d(0x215)][_0x523b8d(0x188)]()[_0x523b8d(0xbb)](),_0x20010d=this[_0x523b8d(0x119)]();if(_0x55c37e[_0x523b8d(0x176)]){let _0x5f3805=this[_0x523b8d(0x1c2)]['getProjection'](_0x348406,this[_0x523b8d(0x1c4)],_0x55c37e[_0x523b8d(0x176)]);if(_0x523b8d(0x171)in _0x5f3805&&Array[_0x523b8d(0x166)](_0x5f3805[_0x523b8d(0x171)]))return _0x5f3805['rows'][_0x523b8d(0x1ed)](_0x5c1315=>_0x5c1315[_0x523b8d(0xc6)]);}return(_0x20010d[_0x523b8d(0x14a)]?_0x20010d[_0x523b8d(0x14a)]['map'](_0x2d5fc7=>_0x20010d[_0x523b8d(0x195)][_0x2d5fc7]):Object['values'](_0x20010d[_0x523b8d(0x195)])[_0x523b8d(0x186)]((_0x1ef976,_0x4cc051)=>_0x1ef976[_0x523b8d(0xd7)][_0x523b8d(0xb7)](_0x4cc051[_0x523b8d(0xd7)])))['filter'](_0xa8f95f=>_0xa8f95f)['map'](_0x591d67=>_0x591d67['id']);}};Z=z([R(0x3,_0xd6c9e9),R(0x4,_0x24a74f),R(0x5,_0x1ddcb6)],Z);function vt(_0x431532,_0x161824){const _0x2d21bb=_0x52461d;let _0x309931=Math['max'](0x0,_0x161824[_0x2d21bb(0x1d3)]??0x0);return _0x161824[_0x2d21bb(0x13a)]==null?_0x431532['slice'](_0x309931):_0x431532[_0x2d21bb(0xd0)](_0x309931,_0x309931+Math[_0x2d21bb(0xde)](0x0,_0x161824[_0x2d21bb(0x13a)]));}function yt(_0x453aba,_0xfa4365,_0x3f0170=[]){const _0x558f27=_0x52461d;return _0x3f0170[_0x558f27(0x1c3)]?[..._0x453aba][_0x558f27(0x186)]((_0x6ac1ec,_0x320a43)=>{const _0x403204=_0x558f27;for(let _0x928711 of _0x3f0170){var _0x3c62a7;let _0x1595d7=_0x928711[_0x403204(0x17d)]===_0x114bbf[_0x403204(0x1cc)]?-0x1:0x1,_0xed4bc5=bt(_0x6ac1ec[_0x403204(0x13d)][_0x928711[_0x403204(0x1b5)]],_0x320a43['values'][_0x928711[_0x403204(0x1b5)]],(_0x3c62a7=_0xfa4365[_0x403204(0xd8)][_0x928711[_0x403204(0x1b5)]])==null?void 0x0:_0x3c62a7['type']);if(_0xed4bc5!==0x0)return _0xed4bc5*_0x1595d7;}return String(_0x6ac1ec[_0x403204(0xd7)]??_0x6ac1ec['id'])[_0x403204(0xb7)](String(_0x320a43[_0x403204(0xd7)]??_0x320a43['id']));}):_0x453aba;}function bt(_0x46d38b,_0x13cfdc,_0x5f4432){const _0x561656=_0x52461d;return _0x46d38b==null&&_0x13cfdc==null?0x0:_0x46d38b==null?-0x1:_0x13cfdc==null?0x1:typeof _0x46d38b==_0x561656(0x179)&&typeof _0x13cfdc=='number'?_0x46d38b-_0x13cfdc:_0x5f4432===_0x4db00c[_0x561656(0xd5)]?Number(_0x46d38b)-Number(_0x13cfdc):String(_0x46d38b)['localeCompare'](String(_0x13cfdc));}function xt(_0x580a61,_0x446389,_0x1561ba){const _0xc20ddb=_0x52461d;var _0x16efb1;if(!_0x1561ba||!((_0x16efb1=_0x1561ba[_0xc20ddb(0x1d0)])!=null&&_0x16efb1[_0xc20ddb(0x1c3)]))return!0x0;let {conjunction:_0x426688=_0x964119['OR'],conditions:_0x5edfac}=_0x1561ba;return _0x426688===_0x964119[_0xc20ddb(0x1e6)]&&_0x5edfac[_0xc20ddb(0x1c3)]>0x1?_0x5edfac[_0xc20ddb(0x132)](_0x4dcce4=>St(_0x580a61,_0x446389,_0x4dcce4)):_0x5edfac[_0xc20ddb(0x125)](_0x11cfdb=>St(_0x580a61,_0x446389,_0x11cfdb));}function St(_0x33e170,_0x3534a6,_0x40cfef){const _0x2bb0b8=_0x52461d;let _0x5ff081=_0x33e170[_0x2bb0b8(0x13d)][_0x40cfef[_0x2bb0b8(0x1b5)]],_0x11187a=_0x3534a6['fields'][_0x40cfef[_0x2bb0b8(0x1b5)]];if(Ct(_0x40cfef)){let _0x3ceeef=wt(_0x40cfef)[_0x2bb0b8(0xeb)](String(_0x5ff081??''));return _0x40cfef[_0x2bb0b8(0x20b)]===_0x2bb0b8(0x1fe)?_0x3ceeef:!_0x3ceeef;}return!_0x11187a||_0x2fce11(_0x5ff081,_0x40cfef['operator'],_0x40cfef[_0x2bb0b8(0xe1)],_0x11187a);}function Ct(_0x401e5a){const _0x3961db=_0x52461d;return _0x401e5a[_0x3961db(0x20b)]===_0x3961db(0x1fe)||_0x401e5a[_0x3961db(0x20b)]===_0x3961db(0x194);}function wt(_0x38242c){const _0x5ed535=_0x52461d;let _0x5d3618=String(_0x38242c['value']??'');if(_0x5d3618[_0x5ed535(0x1c3)]>0x200)throw Error(_0x5ed535(0x152));try{return new RegExp(_0x5d3618,_0x38242c[_0x5ed535(0x17f)]?void 0x0:'i');}catch(_0x3b6d52){throw Error(_0x5ed535(0x1bc)+_0x5d3618+'.\x20'+(_0x3b6d52 instanceof Error?_0x3b6d52[_0x5ed535(0xb5)]:String(_0x3b6d52)));}}function Tt(_0x4f57ad,_0x27a288,_0x33cb2f){const _0x36769f=_0x52461d;if(_0x33cb2f[_0x36769f(0x1a3)]!==_0x36769f(0x128)&&_0x33cb2f[_0x36769f(0x1a3)]!==_0x36769f(0xe5)){var _0x250a78;if(_0x33cb2f['type']===_0x46c53d[_0x36769f(0x1f5)]){var _0x491188;let _0x5e4b5b=[((_0x491188=_0x33cb2f[_0x36769f(0xd8)])==null||(_0x491188=_0x491188[0x0])==null?void 0x0:_0x491188['id'])??_0x4f57ad[_0x36769f(0x209)],..._0x33cb2f['visibleCardFieldIds']??[]];return Array[_0x36769f(0xc4)](new Set(_0x5e4b5b[_0x36769f(0x16e)](_0xf7e971=>!!_0x4f57ad[_0x36769f(0xd8)][_0xf7e971])));}if((_0x250a78=_0x33cb2f[_0x36769f(0xd8)])!=null&&_0x250a78[_0x36769f(0x1c3)])return _0x33cb2f['fields'][_0x36769f(0x1ed)](_0x57514a=>_0x57514a['id'])[_0x36769f(0x16e)](_0x21f76a=>{const _0x22a32e=_0x36769f;var _0x449c8b;return!(!_0x4f57ad[_0x22a32e(0xd8)][_0x21f76a]||_0x27a288!=null&&(_0x449c8b=_0x27a288[_0x22a32e(0xc8)])!=null&&(_0x449c8b=_0x449c8b[_0x21f76a])!=null&&_0x449c8b[_0x22a32e(0x1bb)]);});}return _0x4f57ad[_0x36769f(0x149)][_0x36769f(0x16e)](_0xa5ad9e=>{const _0xe2f728=_0x36769f;var _0x3c3d67;return!(!_0x4f57ad[_0xe2f728(0xd8)][_0xa5ad9e]||_0x27a288!=null&&(_0x3c3d67=_0x27a288['fieldSettings'])!=null&&(_0x3c3d67=_0x3c3d67[_0xa5ad9e])!=null&&_0x3c3d67[_0xe2f728(0x1bb)]);});}let Q=class extends _0x1c1ab5[_0x52461d(0x1b6)]{constructor(_0x4dd997,_0x194a98,_0x44b248,_0x4ce5ce,_0x10b202){const _0x59ba20=_0x52461d;super(),this[_0x59ba20(0x215)]=_0x4dd997,this[_0x59ba20(0x114)]=_0x194a98,this[_0x59ba20(0x107)]=_0x44b248,this[_0x59ba20(0x201)]=_0x4ce5ce,this[_0x59ba20(0x184)]=_0x10b202;}['getBase'](){const _0x7a600a=_0x52461d;return this[_0x7a600a(0x215)];}[_0x52461d(0x1b0)](){const _0x2399a1=_0x52461d;return this['_base'][_0x2399a1(0xe9)]();}[_0x52461d(0xb9)](){const _0x146c40=_0x52461d;return new at(this[_0x146c40(0x1b0)](),this[_0x146c40(0x201)],this[_0x146c40(0x184)]);}[_0x52461d(0x138)](){const _0x34786d=_0x52461d;return this[_0x34786d(0x107)][_0x34786d(0x205)](this['getId']())??_0x5ddc99[_0x34786d(0xbf)](this[_0x34786d(0x215)]['getSnapshot']());}[_0x52461d(0x174)](){const _0x221ecb=_0x52461d;return this[_0x221ecb(0x215)][_0x221ecb(0xbb)]()[_0x221ecb(0xb8)];}[_0x52461d(0x1b2)](_0x2cdd54){const _0x1734c2=_0x52461d;this[_0x1734c2(0x201)][_0x1734c2(0x1b1)](_0x3776d7['id'],{'unitId':this['getId'](),'name':_0x2cdd54});}[_0x52461d(0x181)](){const _0x254455=_0x52461d;let _0x275c02=this[_0x254455(0x215)]['getSnapshot']();return _0x275c02[_0x254455(0x1e4)][_0x254455(0x1ed)](_0x3651dc=>_0x275c02['tables'][_0x3651dc])[_0x254455(0x16e)](_0x33555e=>_0x33555e)['map'](_0x4cd665=>this[_0x254455(0x114)][_0x254455(0x159)](Z,this,_0x4cd665['id'],this['_injector']));}[_0x52461d(0x154)](_0x2d45ff){const _0x1e6f84=_0x52461d;let _0x52335d=this[_0x1e6f84(0x215)]['getSnapshot']()[_0x1e6f84(0xf3)][_0x2d45ff];return _0x52335d?this[_0x1e6f84(0x114)][_0x1e6f84(0x159)](Z,this,_0x52335d['id'],this[_0x1e6f84(0x114)]):null;}[_0x52461d(0x127)](_0x673928){const _0x2449bc=_0x52461d;let _0x31179b=this[_0x2449bc(0x215)][_0x2449bc(0xbb)](),_0x262bde=Object[_0x2449bc(0x13d)](_0x31179b[_0x2449bc(0xf3)])[_0x2449bc(0x219)](_0x295c63=>_0x295c63[_0x2449bc(0xb8)]===_0x673928);return _0x262bde?this['_injector']['createInstance'](Z,this,_0x262bde['id'],this[_0x2449bc(0x114)]):null;}[_0x52461d(0x131)](_0x572e90,_0x4df49e){const _0x1036a6=_0x52461d;let _0x39a53d=_0x256046({'id':_0x416ff3(),'name':_0x572e90,..._0x4df49e==null?void 0x0:_0x4df49e[_0x1036a6(0x18e)],'primaryFieldName':_0x4df49e==null?void 0x0:_0x4df49e[_0x1036a6(0x13f)]}),_0x476760=_0x5ddc99[_0x1036a6(0xd1)](_0x39a53d,(_0x4df49e==null?void 0x0:_0x4df49e[_0x1036a6(0x18e)])??{}),_0x389010=_0x597076(this[_0x1036a6(0x215)][_0x1036a6(0xbb)](),_0x476760[_0x1036a6(0xb8)]);if(!_0x389010['valid'])throw Error(_0x1036a6(0x113)+_0x476760[_0x1036a6(0xb8)]+_0x1036a6(0xe6)+_0x37427f+'\x20'+_0x389010[_0x1036a6(0x16a)]);if(!this['_commandService']['syncExecuteCommand'](_0x27d2e3['id'],{'unitId':this[_0x1036a6(0x215)]['getUnitId'](),'table':_0x476760,'index':_0x4df49e==null?void 0x0:_0x4df49e[_0x1036a6(0x1dd)]}))throw Error(_0x1036a6(0x204)+_0x572e90+'\x22.');return this[_0x1036a6(0x114)][_0x1036a6(0x159)](Z,this,_0x476760['id'],this[_0x1036a6(0x114)]);}[_0x52461d(0x1d1)](_0x3a5441){const _0x2dfb50=_0x52461d;let _0x57c867=typeof _0x3a5441=='string'?_0x3a5441:_0x3a5441[_0x2dfb50(0x1b0)]();if(!this[_0x2dfb50(0x201)]['syncExecuteCommand'](_0x22fd29['id'],{'unitId':this[_0x2dfb50(0x215)][_0x2dfb50(0xe9)](),'tableId':_0x57c867}))throw Error('Failed\x20to\x20delete\x20table\x20\x22'+_0x57c867+'\x22.');return!0x0;}['duplicateTable'](_0x387799,_0x2ef37a){const _0x25df22=_0x52461d;let _0x2f79e1=this[_0x25df22(0x215)][_0x25df22(0xbb)](),_0x1c3cea=typeof _0x387799=='string'?_0x387799:_0x387799[_0x25df22(0x1b0)](),_0x27cbb7=_0x2f79e1[_0x25df22(0xf3)][_0x1c3cea];if(!_0x27cbb7)throw Error(_0x25df22(0x208)+_0x1c3cea+_0x25df22(0x14c));let _0x3f8bc1=_0x2f79e1[_0x25df22(0x1e4)]['indexOf'](_0x1c3cea)+0x1,_0x417dd9=_0x416ff3(),_0x424880=_0x43532b(_0x27cbb7,{'id':_0x417dd9,'name':_0x51629a(_0x2f79e1,_0x27cbb7[_0x25df22(0xb8)]+'\x20Copy'),'includeRecords':(_0x2ef37a==null?void 0x0:_0x2ef37a[_0x25df22(0x106)])??!0x1,'regenerateViewIds':(_0x2ef37a==null?void 0x0:_0x2ef37a[_0x25df22(0xd3)])??!0x1});if(!this[_0x25df22(0x201)]['syncExecuteCommand'](_0x27d2e3['id'],{'unitId':this[_0x25df22(0x215)][_0x25df22(0xe9)](),'table':_0x424880,'index':_0x3f8bc1}))throw Error(_0x25df22(0x1c0)+_0x1c3cea+'\x22.');return this[_0x25df22(0x114)][_0x25df22(0x159)](Z,this,_0x424880['id'],this[_0x25df22(0x114)]);}[_0x52461d(0x190)](){const _0x3d0b29=_0x52461d;let _0x535ee5=this[_0x3d0b29(0x215)][_0x3d0b29(0xbb)]();return{'id':_0x535ee5['id'],'name':_0x535ee5[_0x3d0b29(0xb8)],'tables':this[_0x3d0b29(0x181)]()[_0x3d0b29(0x1ed)](_0x23a15a=>_0x23a15a[_0x3d0b29(0x190)]())};}};Q=z([R(0x1,_0x398e71(_0x14fd65)),R(0x2,_0x138537),R(0x3,_0xd6c9e9),R(0x4,_0x24a74f)],Q);var Et=class extends _0x517ece{[_0x52461d(0xdf)](){const _0xd498ea=_0x52461d;this[_0xd498ea(0x1c1)](),this['_initBaseAfterEvents']();}[_0x52461d(0x175)](_0x2db2f1={},_0x1e9f39){const _0x5e58eb=_0x52461d;let _0x676020=this[_0x5e58eb(0x1c7)][_0x5e58eb(0x16d)](_0x216daf[_0x5e58eb(0x13e)],_0x2db2f1,_0x1e9f39);return this[_0x5e58eb(0x114)][_0x5e58eb(0x159)](Q,_0x676020);}[_0x52461d(0xdd)](){const _0x3705fd=_0x52461d;let _0x36cde9=this[_0x3705fd(0x1c7)]['getCurrentUnitOfType'](_0x216daf[_0x3705fd(0x13e)]);return _0x36cde9?this[_0x3705fd(0x114)][_0x3705fd(0x159)](Q,_0x36cde9):null;}[_0x52461d(0x188)](_0x467a35){const _0x1fcb06=_0x52461d;let _0x4a9923=this[_0x1fcb06(0x1c7)]['getUnit'](_0x467a35,_0x216daf[_0x1fcb06(0x13e)]);return _0x4a9923?this[_0x1fcb06(0x114)]['createInstance'](Q,_0x4a9923):null;}[_0x52461d(0xc0)](){const _0x3b4713=_0x52461d;return this[_0x3b4713(0x1c7)][_0x3b4713(0x1a1)](_0x216daf[_0x3b4713(0x13e)])[_0x3b4713(0x1ed)](_0x10d1c2=>this[_0x3b4713(0x114)]['createInstance'](Q,_0x10d1c2));}[_0x52461d(0xe8)](){const _0x509ee2=_0x52461d;this[_0x509ee2(0xbe)](this[_0x509ee2(0x18f)](this[_0x509ee2(0x1b4)][_0x509ee2(0x1df)],()=>this[_0x509ee2(0x201)]['onCommandExecuted']((_0x33ab46,_0x449d85)=>{const _0x3661c1=_0x509ee2;var _0x474df6;if(!$(_0x33ab46,_0x426009))return;let _0x5f56c8=_0x33ab46[_0x3661c1(0xff)];if(!((_0x474df6=_0x5f56c8[_0x3661c1(0x163)])!=null&&_0x474df6[_0x3661c1(0x1c3)]))return;let _0x482779=this[_0x3661c1(0x188)](_0x5f56c8[_0x3661c1(0x155)]),_0x145c26=_0x482779==null?void 0x0:_0x482779[_0x3661c1(0x154)](_0x5f56c8[_0x3661c1(0x163)][0x0]['tableId']);if(!_0x482779||!_0x145c26)return;let _0x2eae55={'base':_0x482779,'table':_0x145c26,'changes':_0x5f56c8[_0x3661c1(0x163)],'source':_0x449d85!=null&&_0x449d85[_0x3661c1(0x116)]?_0x31e93c[_0x3661c1(0xec)]:_0x5f56c8[_0x3661c1(0x121)]??_0x31e93c['UI']};this['fireEvent'](this['Event'][_0x3661c1(0x1df)],_0x2eae55);}))),this[_0x509ee2(0xbe)](this[_0x509ee2(0x18f)](this[_0x509ee2(0x1b4)][_0x509ee2(0x1ea)],()=>this[_0x509ee2(0x201)]['onCommandExecuted'](_0x2dbf3d=>{const _0x941c12=_0x509ee2;if(_0x2dbf3d['id']!==_0x27d2e3['id'])return;let {unitId:_0x4aa8a7,table:_0x4bd3b3,index:_0x154bb5}=_0x2dbf3d[_0x941c12(0xff)],_0x514135=this[_0x941c12(0x188)](_0x4aa8a7);if(!_0x514135)return;let _0x49f46b={'base':_0x514135,'table':_0x4bd3b3,'index':_0x154bb5};this[_0x941c12(0x140)](this['Event'][_0x941c12(0x1ea)],_0x49f46b);}))),this['disposeWithMe'](this[_0x509ee2(0x18f)](this[_0x509ee2(0x1b4)]['BaseTableFieldCreated'],()=>this[_0x509ee2(0x201)][_0x509ee2(0x192)](_0x595deb=>{const _0x532944=_0x509ee2;if(_0x595deb['id']!==_0x5649ae['id'])return;let {unitId:_0x2f1b20,tableId:_0x31104f,field:_0x5bd65c,index:_0x5dc9b7,viewIndexes:_0xb5295c}=_0x595deb[_0x532944(0xff)],_0x36609b=this['getBase'](_0x2f1b20);if(!_0x36609b)return;let _0x366dba=_0x36609b[_0x532944(0x154)](_0x31104f);if(!_0x366dba)return;let _0x5ac454={'base':_0x36609b,'table':_0x366dba,'field':_0x5bd65c,'index':_0x5dc9b7,'viewIndexes':_0xb5295c};this[_0x532944(0x140)](this[_0x532944(0x1b4)]['BaseTableFieldCreated'],_0x5ac454);}))),this[_0x509ee2(0xbe)](this[_0x509ee2(0x18f)](this[_0x509ee2(0x1b4)][_0x509ee2(0x214)],()=>this['_commandService'][_0x509ee2(0x192)](_0x559212=>{const _0xf6149f=_0x509ee2;if(_0x559212['id']!==_0x2efdd1['id']&&_0x559212['id']!==_0x2bc192['id'])return;let _0x62a317=_0x559212[_0xf6149f(0xff)],{unitId:_0x384b96,tableId:_0x149b32}=_0x62a317,_0x2c7c69=_0x62a317[_0xf6149f(0x195)]??[_0x62a317[_0xf6149f(0x150)]],_0x28fafe=this[_0xf6149f(0x188)](_0x384b96);if(!_0x28fafe)return;let _0x535ef5=_0x28fafe[_0xf6149f(0x154)](_0x149b32);if(!_0x535ef5)return;let _0x2fede4={'base':_0x28fafe,'table':_0x535ef5,'records':_0x2c7c69};this[_0xf6149f(0x140)](this[_0xf6149f(0x1b4)][_0xf6149f(0x214)],_0x2fede4);}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x509ee2(0x1b4)][_0x509ee2(0xee)],()=>this['_commandService'][_0x509ee2(0x192)](_0x5b6eb2=>{const _0x4fd70e=_0x509ee2;if(_0x5b6eb2['id']!==_0x5d854f['id'])return;let {unitId:_0x38db9e,tableId:_0x532bf5,view:_0x55511c,index:_0xfa62d2}=_0x5b6eb2[_0x4fd70e(0xff)],_0x5eed82=this[_0x4fd70e(0x188)](_0x38db9e);if(!_0x5eed82)return;let _0x16a9fa=_0x5eed82[_0x4fd70e(0x154)](_0x532bf5);if(!_0x16a9fa)return;let _0x37814d={'base':_0x5eed82,'table':_0x16a9fa,'view':_0x55511c,'index':_0xfa62d2};this[_0x4fd70e(0x140)](this['Event'][_0x4fd70e(0xee)],_0x37814d);}))),this[_0x509ee2(0xbe)](this[_0x509ee2(0x18f)](this[_0x509ee2(0x1b4)][_0x509ee2(0xb6)],()=>this[_0x509ee2(0x201)][_0x509ee2(0x192)](_0x256a63=>{const _0x581094=_0x509ee2;if(_0x256a63['id']!==_0x20c761['id'])return;let {unitId:_0x20f868,tableId:_0x335a3b,recordId:_0x57071e,fieldId:_0x993463,value:_0x5c2e85}=_0x256a63[_0x581094(0xff)],_0x48573f=this[_0x581094(0x188)](_0x20f868);if(!_0x48573f)return;let _0x2ede64=_0x48573f['getTableById'](_0x335a3b);if(!_0x2ede64)return;let _0x523d1c=_0x2ede64[_0x581094(0x211)](_0x993463);if(!_0x523d1c)return;let _0x1283a2=_0x2ede64[_0x581094(0x1f7)](_0x57071e);if(!_0x1283a2)return;let _0x48297f={'base':_0x48573f,'table':_0x2ede64,'field':_0x523d1c,'record':_0x1283a2,'value':_0x5c2e85};this[_0x581094(0x140)](this[_0x581094(0x1b4)][_0x581094(0xb6)],_0x48297f);})));}['_initBaseBeforeEvents'](){const _0x343ef2=_0x52461d;this[_0x343ef2(0xbe)](this[_0x343ef2(0x18f)](this['Event']['BeforeBaseHierarchyChange'],()=>this[_0x343ef2(0x201)]['beforeCommandExecuted'](_0x561a47=>{const _0x35af2e=_0x343ef2;if($(_0x561a47,_0x21ff8a)){let {unitId:_0x4ea7ee,tableId:_0x487939,patches:_0x278acd,source:_0x4f1281=_0x31e93c['UI']}=_0x561a47[_0x35af2e(0xff)],_0x3649c4=this[_0x35af2e(0xd6)](_0x4ea7ee,_0x487939);if(!_0x3649c4)return;this[_0x35af2e(0x12e)](_0x3649c4[_0x35af2e(0x1e8)],_0x3649c4[_0x35af2e(0x18e)],_0x2ff636(_0x3649c4['table'][_0x35af2e(0x1cd)](),_0x278acd),_0x4f1281);return;}if($(_0x561a47,_0x5bacf4)){let {unitId:_0x2fa5bc,tableId:_0x183ce8,patches:_0x15b5bf,source:_0x2ba49b=_0x31e93c['UI']}=_0x561a47[_0x35af2e(0xff)],_0x50ac91=this['_getHierarchyEventContext'](_0x2fa5bc,_0x183ce8);if(!_0x50ac91)return;let _0x3d286c=_0x50ac91[_0x35af2e(0x18e)][_0x35af2e(0x1cd)]();this['_fireBeforeHierarchyChange'](_0x50ac91['base'],_0x50ac91[_0x35af2e(0x18e)],_0x2ff636(_0x3d286c,_0x631028(_0x3d286c,_0x15b5bf)),_0x2ba49b);return;}if($(_0x561a47,_0x2efdd1)){let _0x10217a=_0x561a47['params'],_0xe81d37=this[_0x35af2e(0xd6)](_0x10217a[_0x35af2e(0x155)],_0x10217a['tableId']);if(!_0xe81d37)return;this[_0x35af2e(0x12e)](_0xe81d37[_0x35af2e(0x1e8)],_0xe81d37[_0x35af2e(0x18e)],_0x2e9f6f(_0xe81d37[_0x35af2e(0x18e)][_0x35af2e(0x1cd)](),[_0x10217a['record']]),_0x10217a[_0x35af2e(0x121)]??_0x31e93c['UI']);return;}if($(_0x561a47,_0x2bc192)){let _0x36f5ef=_0x561a47[_0x35af2e(0xff)],_0x21afe6=this[_0x35af2e(0xd6)](_0x36f5ef[_0x35af2e(0x155)],_0x36f5ef['tableId']);if(!_0x21afe6)return;this[_0x35af2e(0x12e)](_0x21afe6['base'],_0x21afe6['table'],_0x2e9f6f(_0x21afe6[_0x35af2e(0x18e)]['getTable'](),_0x36f5ef[_0x35af2e(0x195)]),_0x36f5ef[_0x35af2e(0x121)]??_0x31e93c['UI']);return;}if($(_0x561a47,_0x9bba9)){let _0x3f0d9c=_0x561a47[_0x35af2e(0xff)],_0xb2e0f2=this['_getHierarchyEventContext'](_0x3f0d9c['unitId'],_0x3f0d9c[_0x35af2e(0x177)]);if(!_0xb2e0f2)return;this[_0x35af2e(0x12e)](_0xb2e0f2[_0x35af2e(0x1e8)],_0xb2e0f2[_0x35af2e(0x18e)],_0x2e9f6f(_0xb2e0f2['table']['getTable'](),[_0x3f0d9c[_0x35af2e(0x150)]]),_0x3f0d9c[_0x35af2e(0x121)]??_0x31e93c['UI']);return;}if($(_0x561a47,_0x5267a7)){let _0x416077=_0x561a47[_0x35af2e(0xff)],_0xeeddf3=this[_0x35af2e(0xd6)](_0x416077[_0x35af2e(0x155)],_0x416077[_0x35af2e(0x177)]);if(!_0xeeddf3)return;let _0x20da96=_0xeeddf3[_0x35af2e(0x18e)][_0x35af2e(0x1cd)](),_0x31ee91=_0x416077[_0x35af2e(0x1b5)]??_0x39d8f6(_0x20da96),_0x3d2054=_0x48b6a3(_0x20da96,_0x31ee91)[_0x35af2e(0x183)][_0x35af2e(0xfb)](_0x416077['recordId'])??null;this[_0x35af2e(0x12e)](_0xeeddf3[_0x35af2e(0x1e8)],_0xeeddf3['table'],[{'tableId':_0x416077[_0x35af2e(0x177)],'fieldId':_0x31ee91,'recordId':_0x416077['recordId'],'oldParentRecordId':_0x3d2054,'parentRecordId':_0x416077[_0x35af2e(0x105)]}],_0x416077[_0x35af2e(0x121)]??_0x31e93c['UI']);return;}if($(_0x561a47,_0x5e51db)){let _0x36bcb6=_0x561a47[_0x35af2e(0xff)],_0x2c7a94=this[_0x35af2e(0xd6)](_0x36bcb6[_0x35af2e(0x155)],_0x36bcb6[_0x35af2e(0x177)]);if(!_0x2c7a94)return;let _0x562281=_0x36bcb6[_0x35af2e(0x1b5)]??_0x39d8f6(_0x2c7a94['table']['getTable']());this[_0x35af2e(0x12e)](_0x2c7a94[_0x35af2e(0x1e8)],_0x2c7a94[_0x35af2e(0x18e)],[{'tableId':_0x36bcb6[_0x35af2e(0x177)],'fieldId':_0x562281,'recordId':_0x36bcb6[_0x35af2e(0x150)]['id'],'oldParentRecordId':null,'parentRecordId':_0x36bcb6[_0x35af2e(0x105)]}],_0x36bcb6['source']??_0x31e93c['UI']);return;}if($(_0x561a47,_0x257b51)){let _0x3c7c9c=_0x561a47[_0x35af2e(0xff)],_0x27e839=this[_0x35af2e(0xd6)](_0x3c7c9c[_0x35af2e(0x155)],_0x3c7c9c['tableId']);if(!_0x27e839)return;this['_fireBeforeHierarchyChange'](_0x27e839[_0x35af2e(0x1e8)],_0x27e839[_0x35af2e(0x18e)],_0x169dd5(_0x27e839[_0x35af2e(0x18e)][_0x35af2e(0x1cd)](),[_0x3c7c9c[_0x35af2e(0xc6)]]),_0x3c7c9c[_0x35af2e(0x121)]??_0x31e93c['UI']);return;}if($(_0x561a47,_0x34e6c2)){let _0x338731=_0x561a47['params'],_0x5464dc=this[_0x35af2e(0xd6)](_0x338731[_0x35af2e(0x155)],_0x338731[_0x35af2e(0x177)]);if(!_0x5464dc)return;this[_0x35af2e(0x12e)](_0x5464dc['base'],_0x5464dc[_0x35af2e(0x18e)],_0x169dd5(_0x5464dc['table']['getTable'](),_0x338731[_0x35af2e(0x1b3)]),_0x338731['source']??_0x31e93c['UI']);return;}if(!$(_0x561a47,_0x20c761))return;let _0x1fb09f=_0x561a47['params'],_0x46f0d8=this[_0x35af2e(0xd6)](_0x1fb09f['unitId'],_0x1fb09f[_0x35af2e(0x177)]);if(!_0x46f0d8)return;let _0x5a9778=_0x46f0d8[_0x35af2e(0x18e)]['getTable']();if(!_0x145e7a(_0x5a9778)[_0x35af2e(0x19c)](_0x1fb09f[_0x35af2e(0x1b5)]))return;let _0x325e76=_0x48b6a3(_0x5a9778,_0x1fb09f['fieldId'])['parentByRecordId'][_0x35af2e(0xfb)](_0x1fb09f[_0x35af2e(0xc6)])??null,_0x3a49ea=_0x549917(_0x1fb09f[_0x35af2e(0xe1)])[0x0]??null;_0x325e76!==_0x3a49ea&&this[_0x35af2e(0x12e)](_0x46f0d8[_0x35af2e(0x1e8)],_0x46f0d8[_0x35af2e(0x18e)],[{'tableId':_0x1fb09f[_0x35af2e(0x177)],'fieldId':_0x1fb09f[_0x35af2e(0x1b5)],'recordId':_0x1fb09f['recordId'],'oldParentRecordId':_0x325e76,'parentRecordId':_0x3a49ea}],_0x1fb09f[_0x35af2e(0x121)]??_0x31e93c['UI']);}))),this[_0x343ef2(0xbe)](this['registerEventHandler'](this[_0x343ef2(0x1b4)]['BeforeBaseTableCreate'],()=>this[_0x343ef2(0x201)][_0x343ef2(0x137)](_0x370d14=>{const _0x2c9582=_0x343ef2;if(_0x370d14['id']!==_0x27d2e3['id'])return;let {unitId:_0x4159e6,table:_0x5c857f,index:_0xd97a43}=_0x370d14['params'],_0x311b19=this[_0x2c9582(0x188)](_0x4159e6);if(!_0x311b19)return;let _0x2db90c={'base':_0x311b19,'table':_0x5c857f,'index':_0xd97a43};if(this[_0x2c9582(0x140)](this[_0x2c9582(0x1b4)]['BeforeBaseTableCreate'],_0x2db90c),_0x2db90c[_0x2c9582(0x11d)])throw new _0x220bd1();}))),this[_0x343ef2(0xbe)](this['registerEventHandler'](this[_0x343ef2(0x1b4)][_0x343ef2(0x213)],()=>this[_0x343ef2(0x201)][_0x343ef2(0x137)](_0x5d162d=>{const _0x5fcae0=_0x343ef2;if(_0x5d162d['id']!==_0x5649ae['id'])return;let {unitId:_0x193a86,tableId:_0xfdc3f5,field:_0x7577c,index:_0x327324,viewIndexes:_0x4a1031}=_0x5d162d['params'],_0x3195ff=this[_0x5fcae0(0x188)](_0x193a86);if(!_0x3195ff)return;let _0xde8b61=_0x3195ff[_0x5fcae0(0x154)](_0xfdc3f5);if(!_0xde8b61)return;let _0x92eb93={'base':_0x3195ff,'table':_0xde8b61,'field':_0x7577c,'index':_0x327324,'viewIndexes':_0x4a1031};if(this[_0x5fcae0(0x140)](this[_0x5fcae0(0x1b4)][_0x5fcae0(0x213)],_0x92eb93),_0x92eb93[_0x5fcae0(0x11d)])throw new _0x220bd1();}))),this[_0x343ef2(0xbe)](this[_0x343ef2(0x18f)](this[_0x343ef2(0x1b4)]['BeforeBaseTableRecordCreate'],()=>this[_0x343ef2(0x201)][_0x343ef2(0x137)](_0x3bfd73=>{const _0x3c648e=_0x343ef2;if(_0x3bfd73['id']!==_0x2efdd1['id']&&_0x3bfd73['id']!==_0x2bc192['id'])return;let _0x47a4b1=_0x3bfd73[_0x3c648e(0xff)],{unitId:_0x1fc7c2,tableId:_0x3bf33b}=_0x47a4b1,_0x450fb5=_0x47a4b1[_0x3c648e(0x195)]??[_0x47a4b1[_0x3c648e(0x150)]],_0xbec340=this[_0x3c648e(0x188)](_0x1fc7c2);if(!_0xbec340)return;let _0x509abc=_0xbec340[_0x3c648e(0x154)](_0x3bf33b);if(!_0x509abc)return;let _0x550752={'base':_0xbec340,'table':_0x509abc,'records':_0x450fb5};if(this[_0x3c648e(0x140)](this[_0x3c648e(0x1b4)]['BeforeBaseTableRecordCreate'],_0x550752),_0x550752[_0x3c648e(0x11d)])throw new _0x220bd1();}))),this[_0x343ef2(0xbe)](this[_0x343ef2(0x18f)](this[_0x343ef2(0x1b4)][_0x343ef2(0x1ad)],()=>this[_0x343ef2(0x201)][_0x343ef2(0x137)](_0x4933dd=>{const _0x330034=_0x343ef2;if(_0x4933dd['id']!==_0x5d854f['id'])return;let {unitId:_0xe962ef,tableId:_0x17722f,view:_0x3631ec,index:_0x512360}=_0x4933dd[_0x330034(0xff)],_0x5bc678=this[_0x330034(0x188)](_0xe962ef);if(!_0x5bc678)return;let _0x4cd899=_0x5bc678[_0x330034(0x154)](_0x17722f);if(!_0x4cd899)return;let _0x4e2e56={'base':_0x5bc678,'table':_0x4cd899,'view':_0x3631ec,'index':_0x512360};if(this[_0x330034(0x140)](this[_0x330034(0x1b4)]['BeforeBaseTableViewCreate'],_0x4e2e56),_0x4e2e56[_0x330034(0x11d)])throw new _0x220bd1();}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x343ef2(0x1b4)]['BeforeBaseTableCellValueChange'],()=>this[_0x343ef2(0x201)][_0x343ef2(0x137)](_0x453cf7=>{const _0x114d3b=_0x343ef2;if(_0x453cf7['id']!==_0x20c761['id'])return;let {unitId:_0x578c7c,tableId:_0x1d3fab,recordId:_0x1bcfb9,fieldId:_0x195542,value:_0x4736f1}=_0x453cf7['params'],_0x406862=this[_0x114d3b(0x188)](_0x578c7c);if(!_0x406862)return;let _0x5a4c33=_0x406862[_0x114d3b(0x154)](_0x1d3fab);if(!_0x5a4c33)return;let _0x6bf5d9=_0x5a4c33[_0x114d3b(0x211)](_0x195542);if(!_0x6bf5d9)return;let _0x3cbfb2=_0x5a4c33[_0x114d3b(0x1f7)](_0x1bcfb9);if(!_0x3cbfb2)return;let _0x2566f4={'base':_0x406862,'table':_0x5a4c33,'field':_0x6bf5d9,'record':_0x3cbfb2,'value':_0x4736f1};if(this[_0x114d3b(0x140)](this[_0x114d3b(0x1b4)][_0x114d3b(0x1e9)],_0x2566f4),_0x2566f4[_0x114d3b(0x11d)])throw new _0x220bd1();})));}['_getHierarchyEventContext'](_0x5034bd,_0x384700){const _0x52a6fa=_0x52461d;let _0x238ceb=this['getBase'](_0x5034bd),_0x31de89=_0x238ceb==null?void 0x0:_0x238ceb[_0x52a6fa(0x154)](_0x384700);return _0x238ceb&&_0x31de89?{'base':_0x238ceb,'table':_0x31de89}:null;}[_0x52461d(0x12e)](_0x50bc90,_0x4e8323,_0x1581a5,_0x3287f9){const _0x191bfa=_0x52461d;if(!_0x1581a5[_0x191bfa(0x1c3)])return;let _0x45d4a2={'base':_0x50bc90,'table':_0x4e8323,'changes':_0x1581a5,'source':_0x3287f9};if(this[_0x191bfa(0x140)](this[_0x191bfa(0x1b4)][_0x191bfa(0x18d)],_0x45d4a2),_0x45d4a2[_0x191bfa(0x11d)])throw new _0x220bd1();}};function $(_0x3c1d51,_0x349261){const _0x51ec27=_0x52461d;return _0x3c1d51['id']===_0x349261['id']&&_0x3c1d51[_0x51ec27(0xff)]!==void 0x0;}_0x517ece[_0x52461d(0x18b)](Et);var Dt=class extends _0x371b31{get['BaseFieldType'](){return _0x4db00c;}get['BaseFilterConjunction'](){return _0x964119;}get['BaseFilterOperator'](){return _0x5e5e09;}get[_0x52461d(0x161)](){return ot;}get[_0x52461d(0x11f)](){return _0x46c53d;}get['BaseConditionalColorTarget'](){return _0xfc34;}get['BaseConditionalColorOperator'](){return _0xe57c1a;}get[_0x52461d(0x20f)](){return _0x24aac6;}get[_0x52461d(0xbd)](){return _0x114bbf;}get[_0x52461d(0x1fd)](){return _0x31e93c;}get[_0x52461d(0x124)](){return _0x4efce9;}get['BaseHierarchyInvalidReason'](){return _0x449c78;}get[_0x52461d(0x14e)](){return _0x171d5a;}};_0x371b31[_0x52461d(0x18b)](Dt);var Ot=class extends _0x24d5c8{get[_0x52461d(0x1ea)](){const _0x4d109a=_0x52461d;return _0x4d109a(0x1ea);}get[_0x52461d(0x1a4)](){const _0x2e9a89=_0x52461d;return _0x2e9a89(0x1a4);}get[_0x52461d(0x169)](){return'BaseTableFieldCreated';}get[_0x52461d(0x213)](){const _0x3ecaa1=_0x52461d;return _0x3ecaa1(0x213);}get[_0x52461d(0x214)](){const _0x1f3f36=_0x52461d;return _0x1f3f36(0x214);}get[_0x52461d(0x133)](){return'BeforeBaseTableRecordCreate';}get['BaseTableViewCreated'](){const _0x574075=_0x52461d;return _0x574075(0xee);}get['BeforeBaseTableViewCreate'](){return'BeforeBaseTableViewCreate';}get[_0x52461d(0xb6)](){const _0xaa38dd=_0x52461d;return _0xaa38dd(0xb6);}get[_0x52461d(0x1e9)](){const _0x5afacc=_0x52461d;return _0x5afacc(0x1e9);}get[_0x52461d(0x1df)](){const _0x4cd396=_0x52461d;return _0x4cd396(0x1df);}get[_0x52461d(0x18d)](){const _0x406fcc=_0x52461d;return _0x406fcc(0x18d);}};_0x24d5c8[_0x52461d(0x18b)](Ot);export{ot as BaseFieldKeyEnum,Q as FBase,L as FBaseObjectPermission,at as FBasePermission,Z as FBaseTable,B as FBaseTableField,K as FBaseTableRange,Y as FBaseTableRecord,X as FBaseTableView,Ot as FBasesEventNameMixin,ct as resolveBaseFieldKey,H as resolveBaseFieldValues};