@univerjs-pro/bases 1.0.2 → 1.0.3

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 +8 -8
@@ -1 +1 @@
1
- const _0x45c5de=_0x1828;(function(_0x3bfd6e,_0x234608){const _0x202c63=_0x1828,_0x326274=_0x3bfd6e();while(!![]){try{const _0x4b21ac=parseInt(_0x202c63(0x1f2))/0x1+parseInt(_0x202c63(0x1e9))/0x2*(parseInt(_0x202c63(0x1e1))/0x3)+-parseInt(_0x202c63(0x1e6))/0x4*(parseInt(_0x202c63(0x1de))/0x5)+parseInt(_0x202c63(0x1d9))/0x6*(-parseInt(_0x202c63(0x1eb))/0x7)+parseInt(_0x202c63(0x1e4))/0x8*(-parseInt(_0x202c63(0x1f3))/0x9)+-parseInt(_0x202c63(0x1df))/0xa+parseInt(_0x202c63(0x1e7))/0xb;if(_0x4b21ac===_0x234608)break;else _0x326274['push'](_0x326274['shift']());}catch(_0x2c9c5d){_0x326274['push'](_0x326274['shift']());}}}(_0x145e,0x8e662));function _0x1828(_0x254efb,_0x2c2819){_0x254efb=_0x254efb-0x1d9;const _0x145e65=_0x145e();let _0x1828cc=_0x145e65[_0x254efb];return _0x1828cc;}const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x45c5de(0x1da),'link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':'電話號碼','email':_0x45c5de(0x1ed),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':_0x45c5de(0x1dc),'recordId':_0x45c5de(0x1e0),'createdBy':_0x45c5de(0x1f1),'updatedBy':'更新人','createdAt':_0x45c5de(0x1e5),'updatedAt':_0x45c5de(0x1ef),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x45c5de(0x1ec),'linkPlaceholder':_0x45c5de(0x1f0)},'viewType':{'grid':'表格','kanban':'看板','calendar':_0x45c5de(0x1e2),'gantt':'甘特圖','gallery':'圖庫'},'error':{'fieldNameRequired':'欄位標題不能為空','invalidFieldType':'欄位類型無效','invalidCellValue':_0x45c5de(0x1db),'invalidKanbanGroupField':'看板需要可分組欄位','invalidCalendarDateField':_0x45c5de(0x1ea),'invalidGanttDateField':_0x45c5de(0x1e3)},'command':{'updateCell':_0x45c5de(0x1dd),'createField':'建立欄位','deleteField':'刪除欄位','createRecord':'建立記錄','deleteRecord':_0x45c5de(0x1e8),'updateViewConfig':_0x45c5de(0x1ee)}}};function _0x145e(){const _0x39d332=['380GkPHqO','4267530bkyxBF','記錄\x20ID','366YJIUDH','行事曆','甘特圖檢視需要開始和結束日期欄位','48936fhOZTU','建立時間','7204ibIYsA','8794500DuzbLr','刪除記錄','7628ZmulhU','行事曆需要日期欄位','7QfwZMe','輸入內容','電子郵件','更新檢視設定','更新時間','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','建立人','625469YneLzR','27FFavgT','4350186awFYSC','核取方塊','儲存格值無效','關聯記錄','更新儲存格'];_0x145e=function(){return _0x39d332;};return _0x145e();}module['exports']=e;
1
+ function _0x288d(_0x4991ee,_0x2c7c3e){_0x4991ee=_0x4991ee-0x1b5;const _0xc565a0=_0xc565();let _0x288d53=_0xc565a0[_0x4991ee];return _0x288d53;}const _0x359a99=_0x288d;function _0xc565(){const _0x36d650=['儲存格值無效','更新儲存格','6220jCktUb','看板需要可分組欄位','2108wwtCqs','甘特圖檢視需要開始和結束日期欄位','12078HeaVWG','行事曆','768BLRgmz','2040450UkwsTZ','1500956sqhPaK','核取方塊','71119pAyBwV','更新時間','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','電話號碼','6088jmeTRz','7ErKhvM','刪除欄位','1687660GSUBGS','輸入內容','建立時間','關聯記錄','更新人','欄位類型無效','更新檢視設定','電子郵件'];_0xc565=function(){return _0x36d650;};return _0xc565();}(function(_0x5f368c,_0x46dbc3){const _0x5e108f=_0x288d,_0x572c8a=_0x5f368c();while(!![]){try{const _0x2ab075=-parseInt(_0x5e108f(0x1cc))/0x1+parseInt(_0x5e108f(0x1c4))/0x2*(-parseInt(_0x5e108f(0x1c8))/0x3)+parseInt(_0x5e108f(0x1ca))/0x4+-parseInt(_0x5e108f(0x1b8))/0x5+parseInt(_0x5e108f(0x1c9))/0x6*(-parseInt(_0x5e108f(0x1b6))/0x7)+parseInt(_0x5e108f(0x1b5))/0x8+parseInt(_0x5e108f(0x1c6))/0x9*(parseInt(_0x5e108f(0x1c2))/0xa);if(_0x2ab075===_0x46dbc3)break;else _0x572c8a['push'](_0x572c8a['shift']());}catch(_0x30710f){_0x572c8a['push'](_0x572c8a['shift']());}}}(_0xc565,0x2eeae));const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x359a99(0x1cb),'link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x359a99(0x1cf),'email':_0x359a99(0x1bf),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':_0x359a99(0x1bb),'recordId':'記錄\x20ID','createdBy':'建立人','updatedBy':_0x359a99(0x1bc),'createdAt':_0x359a99(0x1ba),'updatedAt':_0x359a99(0x1cd),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x359a99(0x1b9),'linkPlaceholder':_0x359a99(0x1ce)},'viewType':{'grid':'表格','kanban':'看板','calendar':_0x359a99(0x1c7),'gantt':'甘特圖','gallery':'圖庫'},'error':{'fieldNameRequired':'欄位標題不能為空','invalidFieldType':_0x359a99(0x1bd),'invalidCellValue':_0x359a99(0x1c0),'invalidKanbanGroupField':_0x359a99(0x1c3),'invalidCalendarDateField':'行事曆需要日期欄位','invalidGanttDateField':_0x359a99(0x1c5)},'command':{'updateCell':_0x359a99(0x1c1),'createField':'建立欄位','deleteField':_0x359a99(0x1b7),'createRecord':'建立記錄','deleteRecord':'刪除記錄','updateViewConfig':_0x359a99(0x1be)}}};module['exports']=e;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x3d6a72=_0x3a70;(function(_0x57196d,_0x5e421f){const _0x3a15a6=_0x3a70,_0xe5ab32=_0x57196d();while(!![]){try{const _0x28f0fe=parseInt(_0x3a15a6(0x210))/0x1*(parseInt(_0x3a15a6(0xec))/0x2)+parseInt(_0x3a15a6(0xfd))/0x3+parseInt(_0x3a15a6(0x148))/0x4*(parseInt(_0x3a15a6(0x23d))/0x5)+parseInt(_0x3a15a6(0x135))/0x6*(-parseInt(_0x3a15a6(0x127))/0x7)+parseInt(_0x3a15a6(0x114))/0x8*(-parseInt(_0x3a15a6(0x10e))/0x9)+parseInt(_0x3a15a6(0x1b1))/0xa*(-parseInt(_0x3a15a6(0x17b))/0xb)+-parseInt(_0x3a15a6(0x1b9))/0xc*(-parseInt(_0x3a15a6(0x14f))/0xd);if(_0x28f0fe===_0x5e421f)break;else _0xe5ab32['push'](_0xe5ab32['shift']());}catch(_0xa8987b){_0xe5ab32['push'](_0xe5ab32['shift']());}}}(_0x15b9,0xf1c8b));import{ApplyBaseJson1Mutation as _0x415ce8,BASE_TABLE_NAME_REQUIREMENTS as _0x3e3c4c,BaseConditionalColorRuleUpdateType as _0x53fd83,BaseEventSource as _0x163008,BaseHierarchyErrorCode as _0x4db856,BatchCreateBaseRecordsCommand as _0x5c549e,BatchDeleteBaseRecordsCommand as _0x3b6e46,ChangeBaseFieldTypeCommand as _0x182c10,CreateBaseChildRecordCommand as _0x139a37,CreateBaseFieldCommand as _0x45cbde,CreateBaseRecordCommand as _0x3d3295,CreateBaseTableCommand as _0x2cacea,CreateBaseViewCommand as _0x1a4d71,DeleteBaseFieldCommand as _0x13f6b0,DeleteBaseRecordCommand as _0x58ff18,DeleteBaseTableCommand as _0x285f4f,DeleteBaseViewCommand as _0x166b9a,DuplicateBaseRecordCommand as _0x32aeff,IBaseProjectionService as _0x2778cc,MoveBaseFieldCommand as _0xd253b2,MoveBaseHierarchyRecordCommand as _0x150f6,MoveBaseViewCommand as _0xd1d1ce,RenameBaseTableCommand as _0x57ea0d,RenameBaseViewCommand as _0x1dc8bf,SetBaseNameCommand as _0x2773d9,SetBasePermissionCommand as _0x2eb03c,SetBasePermissionsCommand as _0x1df26f,SetBaseRangeValuesCommand as _0x2081b9,SetBaseRecordValuesCommand as _0x8c2f3f,SetBaseTableHierarchyFieldCommand as _0x1010aa,SetBaseViewFieldOrderCommand as _0x213c3d,SetBaseViewFieldVisibleCommand as _0x1dcb50,SetBaseViewFieldWidthCommand as _0x390214,SetBaseViewFilterCommand as _0x23b2fa,SetBaseViewGroupCommand as _0xae323a,SetBaseViewSortCommand as _0x1ce03b,UpdateBaseCellCommand as _0x2a154d,UpdateBaseFieldCommand as _0x3b5c0b,UpdateBaseRecordOrderCommand as _0x38d68f,UpdateBaseViewConditionalColorRulesCommand as _0x3c9ed3,UpdateBaseViewConfigCommand as _0x3e814c,ValidateBaseFormulaCommand as _0x43a6fd,buildBaseHierarchyIndex as _0x54315c,canEditBaseTargets as _0x1d4d45,copyBaseTableSnapshot as _0xfc4203,createUniqueBaseTableName as _0x3c9d46,ensureBaseTableCellLayout as _0x326146,getActiveBaseHierarchyFieldIds as _0x3761d8,getBaseCellValue as _0x2ed159,getBaseFieldPermissionObjectId as _0x3ecefb,getBaseFormulaTableName as _0x20e887,getBaseHierarchyDeletePromotions as _0x3bdd64,getBasePermissionValue as _0x33c056,getBaseRecordPermissionObjectId as _0x10e5d2,getBaseTablePermissionObjectId as _0x464330,getBaseViewPermissionObjectId as _0x88646f,getRecordLinkFieldConfig as _0x47e683,matchesBaseCondition as _0x37c3b6,parseRecordLinkIds as _0x378c06,resolveBaseHierarchyFieldId as _0x4afdff,resolveBaseRangeHierarchyPatches as _0x474022,searchBaseTable as _0x575002,serializeRecordLinkIds as _0x369821,validateBaseHierarchyRecordCreations as _0x1e45f5,validateBaseHierarchyRecordPatches as _0x135494,validateBaseTableName as _0x2ec702,validateRecordLinkValue as _0x5cf89b}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x3a2092,BaseConditionalColorOperator as _0x11bed7,BaseConditionalColorTarget as _0x4d7440,BaseConditionalDateMode as _0x14002d,BaseFieldType as _0x4eacf9,BaseFilterConjunction as _0x125131,BaseFilterOperator as _0x5f3a4b,BaseHierarchyInvalidReason as _0x19551e,BaseRecordLinkRole as _0x5ca765,BaseSortDirection as _0x40554e,BaseViewType as _0x4ecc5e,CanceledError as _0x5277c5,ICommandService as _0xbdcdaa,IPermissionService as _0x2f2b52,IResourceLoaderService as _0x440b91,ImageSourceType as _0x48a7ba,Inject as _0x19109f,Injector as _0x46f364,Tools as _0x5a0797,UniverInstanceType as _0x5586fc,createDefaultBaseTableSnapshot as _0x23812b,generateRandomId as _0x36bb57}from'@univerjs/core';import*as _0x4023b6 from'@univerjs/core/facade';import{FBaseInitialable as _0x47cbe7,FEnum as _0x5354a2,FEventName as _0x553a6a,FUniver as _0x4e8405}from'@univerjs/core/facade';function _0x15b9(){const _0x406277=['Name','DESC','6939635bOWTWI','getFieldSettings','BaseFieldType','_getView','caseSensitive','_fieldId','indexOf','getViewById','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','notMatches','_getHierarchyEventContext','Grid','getChildren',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','removeLinkedRecord','deleteConditionalColorRule','BeforeBaseTableRecordCreate','view','BaseFilterConjunction','getSort','getRow','getBase','constructor','\x20exceeds\x20range\x20size\x20','setConfig','getDescription','deleteTable','offset','FBase',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','invalid','custom','705094dQnwBc','_baseTableId','getTables','getDescendants','includes','unitId','getSnapshot','getPrimaryField','BASE64','setFieldWidth','config','setLinkedRecordIds','addField','iterator','getConfig','_commandService','every','4425999rqpqVn','group','_initBaseAfterEvents','rows','size','Facade','duplicateTable','Invalid\x20Base\x20formula.','Invalid\x20attachment\x20at\x20index\x20','getNumRows','record','getLinkedRecordIds','[FRecord]:\x20field\x20\x22','setName','width','some','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','128970JOEvPo','setEditable','index','getFormulaName','tableOrder','getSchema','504VxnKrM','_getFieldIds','BeforeBaseTableCreate','fieldKey','object','setGroup','AND','\x20in\x20field\x20\x22','getConditionalColorRules','move','field','getTableId','_getRecord','source','getPermission','getValues','setValue','getDefaultValue','map','41461bYwsAQ','_getRecordLinkField','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','getGroup','\x22\x20must\x20be\x20a\x20non-empty\x20string.','Unsupported\x20Base\x20field\x20type\x20\x22','BaseTableCellValueChanged','hidden','[FBase]:\x20table\x20\x22','\x20for\x20field\x20\x22','Failed\x20to\x20add\x20records','values','Failed\x20to\x20create\x20view\x20\x22','Add','960dTbZtf',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','_table','[FView]:\x20view\x20\x22','rules','tableId','_assertInBounds','BaseTableViewCreated','\x22:\x20expected\x20an\x20array.','getTableById','localeCompare','fieldIds','sourceType','[FTable]:\x20table\x20\x22','viewOrder','BaseHierarchyErrorCode','records','formula','Edit','4SsAbrV','function','decorate','moveField','_tableId','\x22\x20has\x20invalid\x20config.','updateConfig','338hDVivN','getProjection','from','[FBaseRange]:\x20table\x20does\x20not\x20exist.','forEach','system','Date','_resourceLoaderService','orderKey','recordId','getType','operator','slice','BaseConditionalColorOperator','cancel','description','Duplicate\x20Base\x20field\x20name:\x20','getName','duplicate','getTable','defineProperty','getFieldByName','multiple','deepClone','Invalid\x20Base\x20regex\x20filter:\x20','getFieldById','isArray','_univerInstanceService','beforeCommandExecuted','_getAttachmentField','createInstance','getRange','commonExtend','BeforeBaseHierarchyChange','Failed\x20to\x20create\x20table\x20\x22','updatedAt','max','fieldOrder','clear','BaseTableFieldCreated','Formula','getRecordById','_getTable','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','1434774BwGVBF',':\x20expected\x20an\x20object.','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','rowId','get','BaseFieldKeyEnum','tables','limit','default','recordIds','call','_getField','getValue','getRecords','conditionalColoring','childrenByParentId','auto','endRow','RecordLink','getViewByName','BaseSortDirection','getTableFacade','getField','name','BaseTableRecordCreated','\x22\x20is\x20not\x20an\x20Attachment\x20field.','startRow','syncExecuteCommand','parentByRecordId','getParent','\x22\x20does\x20not\x20exist.',',\x20range:\x20','deleteRecords','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','addRecord','_getHierarchyIndex','setFieldVisible','getPrimaryFieldId','Kanban','Delete','BeforeBaseTableViewCreate','getId','\x20Copy','_inject','valid','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','BaseHierarchyChanged','flatMap','update','createBase','URL','setAttachments','_range','BaseTableCreated','140FBkicJ','fromEntries','defaultValue','setParent','viewId','BaseConditionalDateMode','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','_fireBeforeHierarchyChange','344304AlmRUN','warn','Clear','getVisibleFields','[FRecord]:\x20record\x20\x22','trim','views','endColumn','[FBaseRange]:\x20values\x20size\x20','registerEventHandler','getUnitId','type','Gantt','length','[FField]:\x20field\x20\x22','externalReferences','_recordId','getView','includeRecords','getActiveBase','conditions','fromCollab','_resolveRecordIds','symbol','_parentObjectIds','_prepareFormulaFieldReferences','readonly','fieldSettings','hasOwnProperty','getOwnPropertyDescriptor','reason','test','_permissionService','Base\x20field\x20not\x20found:\x20','Failed\x20to\x20duplicate\x20table\x20\x22','setHierarchyField','hierarchyChanges','setValues','[FBase]:\x20invalid\x20table\x20name\x20\x22','targetTableId','matches','boolean','saveUnit','startsWith','getViews','executeCommand','_initBaseBeforeEvents','_projectionService','Auto','createdAt','\x22\x20is\x20invalid.','RecordId','push','getBaseId','setSort','afterFieldId','onCommandExecuted','queryRecords','getUnit','getHierarchyFieldId','isReadonly','beforeFieldId','BaseViewType','subtreeHeightByRecordId','insertTable','getAncestors','\x22.\x20','find','getColumn','createUnit','regenerateViewIds',',\x20max\x20columns:\x20','deleteAttachments','_injector','disposeWithMe','getNumColumns','UNIVER_BASE','params','recordOrder','table','fields','value','_initialize','getFilter','BaseHierarchyInvalidReason','Attachment','parentRecordId','3EPJQPX','visibleCardFieldIds','entries','toPrimitive','addChild','string','[FRecord]:\x20RecordLink\x20field\x20\x22','extend','Remote','Gallery','filter','_viewId','now','setConditionalColorRules','_writeFormulaExternalReferences','getBaseFacade','Event','sort','_base','primaryFieldId','_baseUnitId','BaseFilterOperator','delete','prototype','getAttachments','base','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','startColumn','number','BeforeBaseTableCellValueChange','setReadOnly','_unitId','Set','UUID','getTableByName','canEdit','BeforeBaseTableFieldCreate','_objectId','getDataRange','fireEvent','fieldId','[FRecord]:\x20invalid\x20RecordLink\x20value.','message'];_0x15b9=function(){return _0x406277;};return _0x15b9();}import{UnitAction as _0x436785}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x4a1d32}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x4a0aa9,_0x3c4714,_0x1319d5){const _0x1860f6=_0x3a70;this[_0x1860f6(0x22f)]=_0x4a0aa9,this[_0x1860f6(0xfb)]=_0x3c4714,this[_0x1860f6(0x1d9)]=_0x1319d5;}async['setObjectPermissions'](_0x56e1e4){const _0x53f1dc=_0x3a70;return this['_commandService'][_0x53f1dc(0x1e6)](_0x1df26f['id'],{'unitId':this['_unitId'],'changes':_0x56e1e4});}async['setPoint'](_0x4ee319,_0x1145d3){const _0x3f83d1=_0x3a70;await this['_commandService'][_0x3f83d1(0x1e6)](_0x2eb03c['id'],{'unitId':this[_0x3f83d1(0x22f)],'objectId':this[_0x3f83d1(0x22f)],'action':_0x4ee319,'value':_0x1145d3});}['getPoint'](_0x5684ff){const _0x333c1d=_0x3a70;return _0x33c056(this[_0x333c1d(0x1d9)],this[_0x333c1d(0x22f)],this[_0x333c1d(0x22f)],_0x5684ff);}async['setEditable'](_0x1d3d55=!0x0){const _0x1922bd=_0x3a70;await this[_0x1922bd(0xfb)]['executeCommand'](_0x2eb03c['id'],{'unitId':this[_0x1922bd(0x22f)],'objectId':this[_0x1922bd(0x22f)],'action':_0x436785[_0x1922bd(0x147)],'value':_0x1d3d55});}async[_0x3d6a72(0x22e)](){const _0xcc590d=_0x3d6a72;await this['_commandService'][_0xcc590d(0x1e6)](_0x2eb03c['id'],{'unitId':this['_unitId'],'objectId':this[_0xcc590d(0x22f)],'action':_0x436785['Edit'],'value':!0x1});}[_0x3d6a72(0x233)](){const _0x455e6d=_0x3d6a72;return _0x33c056(this[_0x455e6d(0x1d9)],this[_0x455e6d(0x22f)],this[_0x455e6d(0x22f)],_0x436785['Edit']);}},L=class{constructor(_0x370b9e,_0x13f406,_0xcfa93c,_0x202272,_0x1ebcba){const _0x3e4572=_0x3d6a72;this[_0x3e4572(0x22f)]=_0x370b9e,this['_objectId']=_0x13f406,this[_0x3e4572(0x1d1)]=_0xcfa93c,this[_0x3e4572(0xfb)]=_0x202272,this[_0x3e4572(0x1d9)]=_0x1ebcba;}async[_0x3d6a72(0x10f)](_0x303097=!0x0){const _0x17755a=_0x3d6a72;await this['_commandService'][_0x17755a(0x1e6)](_0x2eb03c['id'],{'unitId':this[_0x17755a(0x22f)],'objectId':this['_objectId'],'action':_0x436785[_0x17755a(0x147)],'value':_0x303097});}async[_0x3d6a72(0x22e)](){const _0x5b0e04=_0x3d6a72;await this[_0x5b0e04(0xfb)]['executeCommand'](_0x2eb03c['id'],{'unitId':this[_0x5b0e04(0x22f)],'objectId':this[_0x5b0e04(0x235)],'action':_0x436785[_0x5b0e04(0x147)],'value':!0x1});}[_0x3d6a72(0x233)](){const _0x5a4102=_0x3d6a72;return _0x1d4d45(this[_0x5a4102(0x1d9)],this[_0x5a4102(0x22f)],[...this['_parentObjectIds'],this[_0x5a4102(0x235)]]);}};function R(_0x173658,_0xf6e517){return function(_0x50a33c,_0x3307af){_0xf6e517(_0x50a33c,_0x3307af,_0x173658);};}function z(_0x213520,_0x82932b,_0x85e1a7,_0x36ca72){const _0x397c91=_0x3d6a72;var _0x91d36d=arguments['length'],_0x3bd67d=_0x91d36d<0x3?_0x82932b:_0x36ca72===null?_0x36ca72=Object[_0x397c91(0x1d6)](_0x82932b,_0x85e1a7):_0x36ca72,_0x334502;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x397c91(0x149))_0x3bd67d=Reflect[_0x397c91(0x14a)](_0x213520,_0x82932b,_0x85e1a7,_0x36ca72);else{for(var _0x3a28b3=_0x213520['length']-0x1;_0x3a28b3>=0x0;_0x3a28b3--)(_0x334502=_0x213520[_0x3a28b3])&&(_0x3bd67d=(_0x91d36d<0x3?_0x334502(_0x3bd67d):_0x91d36d>0x3?_0x334502(_0x82932b,_0x85e1a7,_0x3bd67d):_0x334502(_0x82932b,_0x85e1a7))||_0x3bd67d);}return _0x91d36d>0x3&&_0x3bd67d&&Object[_0x397c91(0x163)](_0x82932b,_0x85e1a7,_0x3bd67d),_0x3bd67d;}let B=class{constructor(_0x5e9821,_0x439a8e,_0xf2785b,_0x440f75,_0x517f55){const _0x1a20df=_0x3d6a72;this[_0x1a20df(0x222)]=_0x5e9821,this[_0x1a20df(0x137)]=_0x439a8e,this[_0x1a20df(0x242)]=_0xf2785b,this[_0x1a20df(0xfb)]=_0x440f75,this[_0x1a20df(0x1d9)]=_0x517f55;}[_0x3d6a72(0x1a4)](){return this['_fieldId'];}['getPermission'](){const _0x262d50=_0x3d6a72;let _0x5cbafa=this[_0x262d50(0x137)][_0x262d50(0x1a4)]();return new L(this[_0x262d50(0x222)]['getId'](),_0x3ecefb(_0x5cbafa,this[_0x262d50(0x242)]),[_0x464330(_0x5cbafa)],this[_0x262d50(0xfb)],this[_0x262d50(0x1d9)]);}[_0x3d6a72(0x191)](){return this['_getField']();}[_0x3d6a72(0x160)](){const _0x102901=_0x3d6a72;return this[_0x102901(0x186)]()[_0x102901(0x192)];}[_0x3d6a72(0x159)](){const _0x195409=_0x3d6a72;return this['_getField']()[_0x195409(0x1c4)];}[_0x3d6a72(0xfa)](){const _0x59a0b2=_0x3d6a72;return this[_0x59a0b2(0x186)]()[_0x59a0b2(0xf6)];}[_0x3d6a72(0x125)](){const _0x22b2d6=_0x3d6a72;return this[_0x22b2d6(0x186)]()[_0x22b2d6(0x1b3)];}[_0x3d6a72(0xe5)](){const _0x4cc203=_0x3d6a72;return this[_0x4cc203(0x186)]()[_0x4cc203(0x15e)];}[_0x3d6a72(0x1f5)](){const _0x5020b7=_0x3d6a72;return!!this[_0x5020b7(0x186)]()[_0x5020b7(0x1d3)];}[_0x3d6a72(0x10a)](_0x8db105){return this['update']({'name':_0x8db105});}[_0x3d6a72(0xe4)](_0x20d1c0,_0x5e9ed1){return this['update']({'config':_0x20d1c0},_0x5e9ed1);}['setDefaultValue'](_0x72a88b){const _0x4a537e=_0x3d6a72;return this[_0x4a537e(0x1ab)]({'defaultValue':_0x72a88b});}[_0x3d6a72(0x1ab)](_0x1fc604,_0x4ec9dc){const _0x51131b=_0x3d6a72;let _0x169b27=this[_0x51131b(0x186)]()[_0x51131b(0x1c4)];return(_0x1fc604[_0x51131b(0x1c4)]??_0x169b27)===_0x4eacf9[_0x51131b(0x177)]&&(Object['prototype'][_0x51131b(0x1d5)][_0x51131b(0x185)](_0x1fc604,_0x51131b(0xf6))||_0x1fc604['type']===_0x4eacf9['Formula'])&&!this[_0x51131b(0x21e)](_0x4ec9dc)?!0x1:this[_0x51131b(0xfb)]['syncExecuteCommand'](_0x3b5c0b['id'],{'unitId':this[_0x51131b(0x222)][_0x51131b(0x1a4)](),'tableId':this['_table'][_0x51131b(0x1a4)](),'fieldId':this[_0x51131b(0x242)],'patch':_0x1fc604});}['changeType'](_0x41339d,_0x1702a5={},_0xd40389){const _0x7303f8=_0x3d6a72;return _0x41339d===_0x4eacf9[_0x7303f8(0x177)]&&!this['_writeFormulaExternalReferences'](_0xd40389)?!0x1:this[_0x7303f8(0xfb)][_0x7303f8(0x196)](_0x182c10['id'],{'unitId':this[_0x7303f8(0x222)][_0x7303f8(0x1a4)](),'tableId':this[_0x7303f8(0x137)][_0x7303f8(0x1a4)](),'fieldId':this[_0x7303f8(0x242)],'input':{'type':_0x41339d,'config':_0x1702a5}});}['delete'](){const _0x1d3060=_0x3d6a72;return this[_0x1d3060(0xfb)][_0x1d3060(0x196)](_0x13f6b0['id'],{'unitId':this[_0x1d3060(0x222)][_0x1d3060(0x1a4)](),'tableId':this[_0x1d3060(0x137)][_0x1d3060(0x1a4)](),'fieldId':this[_0x1d3060(0x242)]});}[_0x3d6a72(0x11d)](_0x46cc48){const _0x2a4f41=_0x3d6a72;return this['_commandService']['syncExecuteCommand'](_0xd253b2['id'],{'unitId':this[_0x2a4f41(0x222)][_0x2a4f41(0x1a4)](),'tableId':this[_0x2a4f41(0x137)][_0x2a4f41(0x1a4)](),'fieldId':this[_0x2a4f41(0x242)],'target':_0x46cc48});}[_0x3d6a72(0x186)](){const _0xb2b461=_0x3d6a72;let _0x41316c=this[_0xb2b461(0x137)]['getTable']()[_0xb2b461(0x209)][this[_0xb2b461(0x242)]];if(!_0x41316c)throw Error(_0xb2b461(0x1c7)+this['_fieldId']+_0xb2b461(0x199));return _0x41316c;}[_0x3d6a72(0x21e)](_0x1f990d){const _0x2d0774=_0x3d6a72;if(!_0x1f990d||!Array[_0x2d0774(0x169)](_0x1f990d[_0x2d0774(0x1c8)]))return console[_0x2d0774(0x1ba)]('[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.'),!0x1;if(_0x1f990d[_0x2d0774(0x1c8)][_0x2d0774(0x1c6)]===0x0)return!0x0;let _0x39dae7=this['_commandService'][_0x2d0774(0x196)](_0x4a1d32['id'],{'unitId':this[_0x2d0774(0x222)][_0x2d0774(0x1a4)](),'references':_0x1f990d[_0x2d0774(0x1c8)]});return _0x39dae7||console[_0x2d0774(0x1ba)]('[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.'),_0x39dae7;}};B=z([R(0x3,_0xbdcdaa),R(0x4,_0x2f2b52)],B);let ot=function(_0x4aca61){const _0x1570d8=_0x3d6a72;return _0x4aca61['Id']='id',_0x4aca61[_0x1570d8(0x23b)]=_0x1570d8(0x192),_0x4aca61[_0x1570d8(0x1e9)]=_0x1570d8(0x18b),_0x4aca61;}({});function V(_0x59a5ac){const _0x4a5963=_0x3d6a72;return!!(_0x59a5ac&&_0x59a5ac[_0x4a5963(0x154)]!==!0x0&&_0x59a5ac[_0x4a5963(0x1c4)]!==_0x4eacf9[_0x4a5963(0x1ec)]);}function H(_0x2effa9,_0x1496bc,_0x11983e='id'){const _0x515c14=_0x3d6a72;if(!_0x1496bc)return{};let _0x43e2ed={};return Object[_0x515c14(0x212)](_0x1496bc)[_0x515c14(0x153)](([_0x257526,_0x14ac1e])=>{let _0x19ba5d=ct(_0x2effa9,_0x257526,_0x11983e);_0x43e2ed[_0x19ba5d]=st(_0x2effa9['fields'][_0x19ba5d],_0x14ac1e);}),_0x43e2ed;}function st(_0x322368,_0x5d3516){const _0x1362a5=_0x3d6a72;if((_0x322368==null?void 0x0:_0x322368[_0x1362a5(0x1c4)])!==_0x4eacf9['Attachment']||_0x5d3516==null)return _0x5d3516;if(!Array[_0x1362a5(0x169)](_0x5d3516))throw TypeError('Invalid\x20attachment\x20value\x20for\x20field\x20\x22'+_0x322368[_0x1362a5(0x192)]+_0x1362a5(0x13d));return _0x5d3516[_0x1362a5(0x126)]((_0x79cf7,_0x2c4bfd)=>lt(_0x322368,_0x79cf7,_0x2c4bfd));}function ct(_0x5d4b70,_0x555ad3,_0x214d28){const _0x3f1052=_0x3d6a72;if(_0x214d28==='id'||_0x214d28==='auto'&&_0x5d4b70[_0x3f1052(0x209)][_0x555ad3])return _0x555ad3;let _0x3ecc14=Object['values'](_0x5d4b70[_0x3f1052(0x209)])[_0x3f1052(0x21a)](_0x1af149=>_0x1af149[_0x3f1052(0x192)]===_0x555ad3);if(_0x3ecc14['length']===0x1)return _0x3ecc14[0x0]['id'];throw _0x3ecc14['length']>0x1?Error(_0x3f1052(0x15f)+_0x555ad3):Error(_0x3f1052(0x1da)+_0x555ad3);}function lt(_0x2feb45,_0x48cf06,_0x1991e6){const _0x43b2c1=_0x3d6a72;let _0x8729fe=_0x43b2c1(0x105)+_0x1991e6+_0x43b2c1(0x130)+_0x2feb45['name']+'\x22';if(!ft(_0x48cf06))throw TypeError(_0x8729fe+_0x43b2c1(0x17c));if('url'in _0x48cf06)throw TypeError(_0x8729fe+_0x43b2c1(0x136));if(_0x43b2c1(0x1c4)in _0x48cf06)throw TypeError(_0x8729fe+_0x43b2c1(0xe9));let _0x41b18a=U(_0x48cf06['id'],_0x8729fe,'id'),_0x53a855=U(_0x48cf06[_0x43b2c1(0x192)],_0x8729fe,_0x43b2c1(0x192)),_0x2c17d4=U(_0x48cf06[_0x43b2c1(0x121)],_0x8729fe,'source');return{'id':_0x41b18a,'name':_0x53a855,'source':_0x2c17d4,'sourceType':ut(_0x48cf06[_0x43b2c1(0x141)],_0x2c17d4,_0x8729fe),...dt(_0x48cf06,'mimeType',_0x8729fe),...W(_0x48cf06,_0x43b2c1(0x101),_0x8729fe),...W(_0x48cf06,_0x43b2c1(0x10b),_0x8729fe),...W(_0x48cf06,'height',_0x8729fe),...dt(_0x48cf06,'thumbnail',_0x8729fe)};}function ut(_0x42c03d,_0x180165,_0x1e84d0){const _0x37ce67=_0x3d6a72;if(_0x42c03d==null)return _0x180165[_0x37ce67(0x1e4)]('data:')?_0x48a7ba[_0x37ce67(0xf4)]:_0x48a7ba[_0x37ce67(0x1ad)];if(_0x42c03d===_0x48a7ba[_0x37ce67(0x1ad)]||_0x42c03d===_0x48a7ba[_0x37ce67(0x231)]||_0x42c03d===_0x48a7ba[_0x37ce67(0xf4)])return _0x42c03d;throw TypeError(_0x1e84d0+_0x37ce67(0x24a));}function U(_0x112198,_0x41434f,_0x43cf97){const _0x439b7a=_0x3d6a72;if(typeof _0x112198!=_0x439b7a(0x215)||!_0x112198[_0x439b7a(0x1be)]())throw TypeError(_0x41434f+':\x20\x22'+_0x43cf97+_0x439b7a(0x12b));return _0x112198;}function dt(_0x16804f,_0x4b4467,_0x2b5131){const _0x1bd660=_0x3d6a72;let _0xed073b=_0x16804f[_0x4b4467];if(_0xed073b==null)return{};if(typeof _0xed073b!=_0x1bd660(0x215)||!_0xed073b['trim']())throw TypeError(_0x2b5131+':\x20\x22'+_0x4b4467+'\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.');return{[_0x4b4467]:_0xed073b};}function W(_0x5bf848,_0x36e210,_0x483635){const _0x1abf44=_0x3d6a72;let _0x270fb4=_0x5bf848[_0x36e210];if(_0x270fb4==null)return{};if(typeof _0x270fb4!=_0x1abf44(0x22c)||!Number['isFinite'](_0x270fb4)||_0x270fb4<0x0)throw TypeError(_0x483635+':\x20\x22'+_0x36e210+_0x1abf44(0x129));return{[_0x36e210]:_0x270fb4};}function ft(_0x3bdd83){const _0x36e9a9=_0x3d6a72;return typeof _0x3bdd83==_0x36e9a9(0x118)&&!!_0x3bdd83&&!Array[_0x36e9a9(0x169)](_0x3bdd83);}var G;let K=G=class{constructor(_0x5d8802,_0x3a8686,_0x3ff902,_0x4a95e2,_0x2d86b6){const _0x1af8fa=_0x3d6a72;this['_base']=_0x5d8802,this[_0x1af8fa(0x137)]=_0x3a8686,this[_0x1af8fa(0x1af)]=_0x3ff902,this[_0x1af8fa(0x1a6)]=_0x4a95e2,this[_0x1af8fa(0xfb)]=_0x2d86b6,this[_0x1af8fa(0x13b)]();}[_0x3d6a72(0x1ee)](){const _0x5605a4=_0x3d6a72;return this[_0x5605a4(0x222)][_0x5605a4(0x1a4)]();}[_0x3d6a72(0x11f)](){const _0x1f40bb=_0x3d6a72;return this['_table'][_0x1f40bb(0x1a4)]();}[_0x3d6a72(0x16e)](){const _0x45fc6a=_0x3d6a72;return{...this[_0x45fc6a(0x1af)]};}[_0x3d6a72(0x251)](){const _0x293770=_0x3d6a72;return this['_range'][_0x293770(0x195)];}[_0x3d6a72(0x1fd)](){const _0x440866=_0x3d6a72;return this[_0x440866(0x1af)][_0x440866(0x22b)];}['getNumRows'](){const _0x4b76a4=_0x3d6a72;return this[_0x4b76a4(0x1af)][_0x4b76a4(0x18c)]-this[_0x4b76a4(0x1af)]['startRow']+0x1;}[_0x3d6a72(0x204)](){const _0x1bb69b=_0x3d6a72;return this[_0x1bb69b(0x1af)][_0x1bb69b(0x1c0)]-this[_0x1bb69b(0x1af)][_0x1bb69b(0x22b)]+0x1;}[_0x3d6a72(0x123)](){const _0x1acab3=_0x3d6a72;let _0x782aca=this[_0x1acab3(0x179)](),_0x4764c3=this[_0x1acab3(0x115)](_0x782aca),_0x32b16d=[];for(let _0x548644=this['_range']['startRow'];_0x548644<=this['_range'][_0x1acab3(0x18c)];_0x548644++){var _0x32c066;let _0x348b61=(_0x32c066=_0x782aca['rowId'])==null?void 0x0:_0x32c066[_0x548644],_0x4d2a39=[];for(let _0x1e496e=this['_range']['startColumn'];_0x1e496e<=this[_0x1acab3(0x1af)][_0x1acab3(0x1c0)];_0x1e496e++){let _0x44993f=_0x4764c3[_0x1e496e];_0x4d2a39['push'](_0x348b61&&_0x44993f?_0x2ed159(_0x782aca,_0x348b61,_0x44993f):null);}_0x32b16d[_0x1acab3(0x1ed)](_0x4d2a39);}return _0x32b16d;}[_0x3d6a72(0x187)](){const _0x539434=_0x3d6a72;var _0xcc8431;return((_0xcc8431=this[_0x539434(0x123)]()[0x0])==null?void 0x0:_0xcc8431[0x0])??null;}[_0x3d6a72(0x124)](_0x44e58e){return this['setValues']([[_0x44e58e]]);}[_0x3d6a72(0x1de)](_0x1dcc40){const _0x155023=_0x3d6a72;let _0x1f1e4f=this[_0x155023(0x106)](),_0x1478bc=this[_0x155023(0x204)]();if(_0x1dcc40[_0x155023(0x1c6)]>_0x1f1e4f||_0x1dcc40['some'](_0xefba26=>_0xefba26[_0x155023(0x1c6)]>_0x1478bc)){var _0x728530;throw Error(_0x155023(0x1c1)+_0x1dcc40['length']+'x'+(((_0x728530=_0x1dcc40[0x0])==null?void 0x0:_0x728530[_0x155023(0x1c6)])??0x0)+_0x155023(0xe3)+_0x1f1e4f+'x'+_0x1478bc+'.');}let _0x27cbfc=this['_getTable'](),_0x2e2f61=this['_getFieldIds'](_0x27cbfc),_0x5d381a=_0x1dcc40[_0x155023(0x1aa)]((_0x36ce61,_0x10c726)=>_0x36ce61[_0x155023(0x126)]((_0x233989,_0x4c9cd5)=>{const _0x314457=_0x155023;var _0x5019c0;let _0x397103=this[_0x314457(0x1af)][_0x314457(0x195)]+_0x10c726,_0x2cf979=_0x2e2f61[this[_0x314457(0x1af)][_0x314457(0x22b)]+_0x4c9cd5],_0x350204=(_0x5019c0=_0x27cbfc[_0x314457(0x17e)])==null?void 0x0:_0x5019c0[_0x397103];if(!_0x2cf979||!_0x350204)throw Error(_0x314457(0x1a8));return{'recordId':_0x350204,'fieldId':_0x2cf979,'value':_0x233989};}));return this[_0x155023(0xfb)][_0x155023(0x196)](_0x2081b9['id'],{'unitId':this[_0x155023(0x222)][_0x155023(0x1a4)](),'tableId':this['_table'][_0x155023(0x1a4)](),'patches':_0x5d381a,'source':_0x163008['Facade']});}[_0x3d6a72(0x175)](){const _0x3d6962=_0x3d6a72;return this[_0x3d6962(0x1de)](Array['from']({'length':this[_0x3d6962(0x106)]()},()=>Array[_0x3d6962(0x151)]({'length':this[_0x3d6962(0x204)]()},()=>null)));}[_0x3d6a72(0xe7)](_0x255bc8,_0x6a02fa,_0x4a9a02=this[_0x3d6a72(0x106)](),_0x3b77ca=this[_0x3d6a72(0x204)]()){const _0x787648=_0x3d6a72;return this[_0x787648(0x1a6)][_0x787648(0x16d)](G,this['_base'],this[_0x787648(0x137)],{'startRow':this['_range'][_0x787648(0x195)]+_0x255bc8,'startColumn':this[_0x787648(0x1af)][_0x787648(0x22b)]+_0x6a02fa,'endRow':this['_range'][_0x787648(0x195)]+_0x255bc8+_0x4a9a02-0x1,'endColumn':this['_range'][_0x787648(0x22b)]+_0x6a02fa+_0x3b77ca-0x1},this[_0x787648(0x1a6)]);}[_0x3d6a72(0x179)](){const _0x67848c=_0x3d6a72;let _0x23f7c8=this[_0x67848c(0x137)]['getTable']();if(!_0x23f7c8)throw Error(_0x67848c(0x152));return _0x326146(_0x23f7c8);}[_0x3d6a72(0x13b)](){const _0x1b8b88=_0x3d6a72;var _0x18c6a8;let _0x1e9f38=this['_getTable'](),_0x2b283b=((_0x18c6a8=_0x1e9f38[_0x1b8b88(0x207)])==null?void 0x0:_0x18c6a8[_0x1b8b88(0x1c6)])??0x0,_0x21c2ff=this[_0x1b8b88(0x115)](_0x1e9f38)['length'];if(this[_0x1b8b88(0x1af)][_0x1b8b88(0x195)]<0x0||this[_0x1b8b88(0x1af)][_0x1b8b88(0x22b)]<0x0||this[_0x1b8b88(0x1af)]['endRow']<this[_0x1b8b88(0x1af)]['startRow']||this[_0x1b8b88(0x1af)][_0x1b8b88(0x1c0)]<this[_0x1b8b88(0x1af)][_0x1b8b88(0x22b)]||this[_0x1b8b88(0x1af)][_0x1b8b88(0x18c)]>=Math[_0x1b8b88(0x173)](_0x2b283b,0x1)||this[_0x1b8b88(0x1af)][_0x1b8b88(0x1c0)]>=Math[_0x1b8b88(0x173)](_0x21c2ff,0x1))throw Error(_0x1b8b88(0x245)+_0x2b283b+_0x1b8b88(0x200)+_0x21c2ff+_0x1b8b88(0x19a)+JSON['stringify'](this[_0x1b8b88(0x1af)])+'.');}['_getFieldIds'](_0x141036){const _0x538600=_0x3d6a72;return _0x141036[_0x538600(0x174)]['filter'](_0x2e8a93=>V(_0x141036[_0x538600(0x209)][_0x2e8a93]));}};K=G=z([R(0x4,_0xbdcdaa)],K);function _0x3a70(_0x4a1807,_0x1befad){_0x4a1807=_0x4a1807-0xe2;const _0x15b906=_0x15b9();let _0x3a7049=_0x15b906[_0x4a1807];return _0x3a7049;}function q(_0x15f68a){'@babel/helpers - typeof';const _0x750d9d=_0x3d6a72;return q=typeof Symbol=='function'&&typeof Symbol[_0x750d9d(0xf9)]==_0x750d9d(0x1d0)?function(_0x224e6b){return typeof _0x224e6b;}:function(_0x438a4b){const _0x5f26c9=_0x750d9d;return _0x438a4b&&typeof Symbol==_0x5f26c9(0x149)&&_0x438a4b[_0x5f26c9(0xe2)]===Symbol&&_0x438a4b!==Symbol[_0x5f26c9(0x227)]?_0x5f26c9(0x1d0):typeof _0x438a4b;},q(_0x15f68a);}function pt(_0x580e32,_0x2ceaa7){const _0x5e5007=_0x3d6a72;if(q(_0x580e32)!=_0x5e5007(0x118)||!_0x580e32)return _0x580e32;var _0x499e32=_0x580e32[Symbol[_0x5e5007(0x213)]];if(_0x499e32!==void 0x0){var _0x3a233d=_0x499e32['call'](_0x580e32,_0x2ceaa7||_0x5e5007(0x183));if(q(_0x3a233d)!=_0x5e5007(0x118))return _0x3a233d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2ceaa7===_0x5e5007(0x215)?String:Number)(_0x580e32);}function mt(_0x45c59b){const _0x439354=_0x3d6a72;var _0x42f95c=pt(_0x45c59b,_0x439354(0x215));return q(_0x42f95c)==_0x439354(0x1d0)?_0x42f95c:_0x42f95c+'';}function ht(_0x518968,_0x2b2463,_0x13f31e){const _0x4ee782=_0x3d6a72;return(_0x2b2463=mt(_0x2b2463))in _0x518968?Object[_0x4ee782(0x163)](_0x518968,_0x2b2463,{'value':_0x13f31e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x518968[_0x2b2463]=_0x13f31e,_0x518968;}var J;let Y=J=class extends _0x47cbe7{constructor(_0x2a458b,_0x50adf5,_0x37fb3f,_0xff4ac4,_0x4e0cc5,_0x32c481){const _0x57ee3d=_0x3d6a72;super(_0xff4ac4),this[_0x57ee3d(0x222)]=_0x2a458b,this[_0x57ee3d(0x137)]=_0x50adf5,this[_0x57ee3d(0x1c9)]=_0x37fb3f,this['_injector']=_0xff4ac4,this[_0x57ee3d(0xfb)]=_0x4e0cc5,this['_permissionService']=_0x32c481,ht(this,_0x57ee3d(0x224),void 0x0),ht(this,_0x57ee3d(0xed),void 0x0),this['_baseUnitId']=_0x2a458b[_0x57ee3d(0x1a4)](),this[_0x57ee3d(0xed)]=_0x50adf5[_0x57ee3d(0x1a4)]();}[_0x3d6a72(0x21f)](){const _0x52a2b0=_0x3d6a72;return this[_0x52a2b0(0x222)];}[_0x3d6a72(0x190)](){return this['_table'];}[_0x3d6a72(0x1a4)](){return this['_recordId'];}['getPermission'](){const _0x259c5d=_0x3d6a72;let _0x1f31ed=this[_0x259c5d(0x137)]['getId']();return new L(this[_0x259c5d(0x222)]['getId'](),_0x10e5d2(_0x1f31ed,this[_0x259c5d(0x1c9)]),[_0x464330(_0x1f31ed)],this[_0x259c5d(0xfb)],this[_0x259c5d(0x1d9)]);}['getRecord'](){const _0x428864=_0x3d6a72;return{...this['_getRecord'](),'values':this[_0x428864(0x123)]()};}['getValue'](_0x502c6){const _0x405206=_0x3d6a72;return V(this[_0x405206(0x137)][_0x405206(0x162)]()['fields'][_0x502c6])?this['_getRecord']()[_0x405206(0x132)][_0x502c6]??null:null;}[_0x3d6a72(0x123)](){const _0x3d3ce8=_0x3d6a72;let _0x91813d=this['_table'][_0x3d3ce8(0x162)]();return Object[_0x3d3ce8(0x1b2)](Object[_0x3d3ce8(0x212)](this['_getRecord']()[_0x3d3ce8(0x132)])['filter'](([_0x4db411])=>V(_0x91813d[_0x3d3ce8(0x209)][_0x4db411])));}[_0x3d6a72(0x124)](_0x4682ac,_0x3cd8c7){const _0x4b3ad3=_0x3d6a72;let _0x16ed1d=this['_table'][_0x4b3ad3(0x162)]()[_0x4b3ad3(0x209)][_0x4682ac];return this[_0x4b3ad3(0xfb)][_0x4b3ad3(0x196)](_0x2a154d['id'],{'unitId':this[_0x4b3ad3(0x222)][_0x4b3ad3(0x1a4)](),'tableId':this[_0x4b3ad3(0x137)][_0x4b3ad3(0x1a4)](),'recordId':this['_recordId'],'fieldId':_0x4682ac,'value':st(_0x16ed1d,_0x3cd8c7),'source':_0x163008['Facade']});}[_0x3d6a72(0x1ae)](_0x4b9014,_0x49eafd){const _0x213f39=_0x3d6a72;return this[_0x213f39(0x124)](_0x4b9014,_0x49eafd['map'](_0x162663=>({..._0x162663})));}[_0x3d6a72(0x228)](_0x278f0d){const _0x3f60a0=_0x3d6a72;this[_0x3f60a0(0x16c)](_0x278f0d);let _0xb5d1a1=this[_0x3f60a0(0x187)](_0x278f0d);return Array[_0x3f60a0(0x169)](_0xb5d1a1)?_0xb5d1a1[_0x3f60a0(0x126)]((_0x3fcb01,_0x143000)=>_t(_0x3fcb01,_0x278f0d,_0x143000)):[];}[_0x3d6a72(0x201)](_0x485149,_0x4f622c){const _0x4634fd=_0x3d6a72;this[_0x4634fd(0x16c)](_0x485149);let _0x11b8ab=new Set(_0x4f622c['map'](_0x464520=>_0x464520['id']));if(!_0x11b8ab[_0x4634fd(0x101)])return!0x0;let _0x1b6fea=this[_0x4634fd(0x228)](_0x485149),_0x2f1823=_0x1b6fea[_0x4634fd(0x21a)](_0xc7fe10=>!_0x11b8ab['has'](_0xc7fe10['id']));return _0x2f1823['length']===_0x1b6fea[_0x4634fd(0x1c6)]||this[_0x4634fd(0x1ae)](_0x485149,_0x2f1823);}[_0x3d6a72(0x1de)](_0x375bc1,_0xf21f9a='id'){const _0x4cf23d=_0x3d6a72;let _0x5c664c=this['_table']['getTable'](),_0x2f86cd=[{'recordId':this['_recordId'],'values':H(_0x5c664c,_0x375bc1,_0xf21f9a)}];return this[_0x4cf23d(0xfb)][_0x4cf23d(0x196)](_0x8c2f3f['id'],{'unitId':this['_base'][_0x4cf23d(0x1a4)](),'tableId':this[_0x4cf23d(0x137)][_0x4cf23d(0x1a4)](),'patches':_0x2f86cd,'source':_0x163008['Facade']});}[_0x3d6a72(0x226)](){const _0x182af6=_0x3d6a72;return this[_0x182af6(0xfb)][_0x182af6(0x196)](_0x58ff18['id'],{'unitId':this[_0x182af6(0x222)]['getId'](),'tableId':this[_0x182af6(0x137)][_0x182af6(0x1a4)](),'recordId':this[_0x182af6(0x1c9)],'source':_0x163008[_0x182af6(0x102)]});}[_0x3d6a72(0x161)](_0x4d56f3){const _0x4447d7=_0x3d6a72;let _0x49089d={...this[_0x4447d7(0x120)](),..._0x4d56f3,'id':_0x36bb57(0x6)};_0x49089d[_0x4447d7(0x132)]={..._0x49089d[_0x4447d7(0x132)],..._0x4d56f3==null?void 0x0:_0x4d56f3[_0x4447d7(0x132)]},Reflect['deleteProperty'](_0x49089d[_0x4447d7(0x132)],_0x3a2092);let _0x30d93d=Date[_0x4447d7(0x21c)]();if(_0x49089d['orderKey']||=''+_0x30d93d,_0x49089d['createdAt']||=_0x30d93d,_0x49089d[_0x4447d7(0x172)]||=_0x30d93d,!this[_0x4447d7(0xfb)][_0x4447d7(0x196)](_0x32aeff['id'],{'unitId':this[_0x4447d7(0x222)][_0x4447d7(0x1a4)](),'tableId':this[_0x4447d7(0x137)]['getId'](),'sourceRecordId':this[_0x4447d7(0x1c9)],'record':_0x49089d,'source':_0x163008[_0x4447d7(0x102)]}))throw Error(_0x4447d7(0x19c)+this[_0x4447d7(0x1c9)]+'\x22.');return this[_0x4447d7(0x202)][_0x4447d7(0x16d)](J,this[_0x4447d7(0x222)],this[_0x4447d7(0x137)],_0x49089d['id'],this[_0x4447d7(0x202)]);}['setOrderKey'](_0x1ffc52){const _0x43a341=_0x3d6a72;return this['_commandService'][_0x43a341(0x196)](_0x38d68f['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x43a341(0x137)]['getId'](),'recordId':this[_0x43a341(0x1c9)],'orderKey':_0x1ffc52});}[_0x3d6a72(0x108)](_0x3c6190){const _0x405fa9=_0x3d6a72;let _0x98c46d=this[_0x405fa9(0x128)](_0x3c6190),_0x339dc6=this['getValue'](_0x98c46d['id']);return _0x378c06(_0x339dc6);}[_0x3d6a72(0xf7)](_0x3d657a,_0x4493cb){const _0x3090c8=_0x3d6a72;let _0x53644c=this[_0x3090c8(0x128)](_0x3d657a),_0x3bb3e7=_0x369821(_0x4493cb),_0x16f30f=_0x5cf89b(this['_base'][_0x3090c8(0x252)]()['getSnapshot'](),_0x53644c,_0x3bb3e7);if(!_0x16f30f[_0x3090c8(0x1a7)])throw Error(_0x16f30f[_0x3090c8(0x1d7)]??_0x3090c8(0x239));return this[_0x3090c8(0xfb)][_0x3090c8(0x196)](_0x2a154d['id'],{'unitId':this['_base'][_0x3090c8(0x1a4)](),'tableId':this[_0x3090c8(0x137)]['getId'](),'recordId':this[_0x3090c8(0x1c9)],'fieldId':_0x3d657a,'value':_0x3bb3e7,'source':_0x163008[_0x3090c8(0x102)]});}['addLinkedRecord'](_0x120f2e,_0x2b74ba){const _0x5cd394=_0x3d6a72;let _0x1c86c2=this[_0x5cd394(0x128)](_0x120f2e),_0x10a96b=_0x47e683(_0x1c86c2);if(!_0x10a96b)throw Error(_0x5cd394(0x216)+_0x120f2e+_0x5cd394(0x14d));let _0x1f2da9=this[_0x5cd394(0x108)](_0x120f2e);return _0x10a96b[_0x5cd394(0x165)]&&_0x1f2da9[_0x5cd394(0xf0)](_0x2b74ba)?!0x0:this[_0x5cd394(0xf7)](_0x120f2e,_0x10a96b['multiple']?[..._0x1f2da9,_0x2b74ba]:[_0x2b74ba]);}[_0x3d6a72(0x24b)](_0x2827e6,_0xb5eadb){const _0x272e65=_0x3d6a72;let _0x5be606=this[_0x272e65(0x108)](_0x2827e6);return!_0x5be606[_0x272e65(0xf0)](_0xb5eadb)||this[_0x272e65(0xf7)](_0x2827e6,_0x5be606[_0x272e65(0x21a)](_0x398378=>_0x398378!==_0xb5eadb));}[_0x3d6a72(0x198)](_0x34db4c){const _0x4a917b=_0x3d6a72;let _0x3fb525=this[_0x4a917b(0x19e)](_0x34db4c)['parentByRecordId']['get'](this[_0x4a917b(0x1c9)])??null;return _0x3fb525?this[_0x4a917b(0x137)]['getRecordById'](_0x3fb525):null;}[_0x3d6a72(0x249)](_0x80d54b){const _0x5c3b5e=_0x3d6a72;return(this[_0x5c3b5e(0x19e)](_0x80d54b)['childrenByParentId'][_0x5c3b5e(0x17f)](this['_recordId'])??[])[_0x5c3b5e(0x1aa)](_0x33e4c1=>{const _0x4c4883=_0x5c3b5e;let _0x4bbebb=this[_0x4c4883(0x137)][_0x4c4883(0x178)](_0x33e4c1);return _0x4bbebb?[_0x4bbebb]:[];});}[_0x3d6a72(0x1fa)](_0x25ca74){const _0x4c4538=_0x3d6a72;let _0x38681b=this[_0x4c4538(0x19e)](_0x25ca74),_0x46bb85=[],_0x3b916d=_0x38681b['parentByRecordId'][_0x4c4538(0x17f)](this[_0x4c4538(0x1c9)])??null;for(;_0x3b916d;){let _0x3b92f8=this[_0x4c4538(0x137)][_0x4c4538(0x178)](_0x3b916d);_0x3b92f8&&_0x46bb85['push'](_0x3b92f8),_0x3b916d=_0x38681b[_0x4c4538(0x197)]['get'](_0x3b916d)??null;}return _0x46bb85;}[_0x3d6a72(0xef)](_0x367468){const _0x576032=_0x3d6a72;let _0x479eb9=this[_0x576032(0x19e)](_0x367468),_0x227d60=_0x479eb9['orderedRecordIds'][_0x576032(0x243)](this[_0x576032(0x1c9)]),_0x4c5685=_0x479eb9[_0x576032(0x1f8)]['has'](this[_0x576032(0x1c9)])?this['_collectDescendantIds'](_0x479eb9[_0x576032(0x18a)],this[_0x576032(0x1c9)]):[];return _0x227d60<0x0?[]:_0x4c5685[_0x576032(0x1aa)](_0x1ae3fa=>{const _0x197516=_0x576032;let _0x47c4ea=this[_0x197516(0x137)][_0x197516(0x178)](_0x1ae3fa);return _0x47c4ea?[_0x47c4ea]:[];});}[_0x3d6a72(0x1b4)](_0x3a6d1e,_0x50eb92,_0x10c2b2){const _0x117606=_0x3d6a72;return this[_0x117606(0xfb)][_0x117606(0x196)](_0x150f6['id'],{'unitId':this[_0x117606(0x222)][_0x117606(0x1a4)](),'tableId':this[_0x117606(0x137)][_0x117606(0x1a4)](),'fieldId':_0x3a6d1e,'recordId':this[_0x117606(0x1c9)],'parentRecordId':_0x50eb92,'orderKey':_0x10c2b2,'source':_0x163008[_0x117606(0x102)]});}[_0x3d6a72(0x214)](_0x18ec9d,_0x5603ec,_0x14566e='id',_0x3196e7){const _0x1bedd2=_0x3d6a72;let _0x5559c0=this[_0x1bedd2(0x137)][_0x1bedd2(0x162)](),_0x292773=Date[_0x1bedd2(0x21c)](),_0x358bba={..._0x3196e7,'id':_0x36bb57(0x6),'values':H(_0x5559c0,_0x5603ec,_0x14566e),'orderKey':(_0x3196e7==null?void 0x0:_0x3196e7[_0x1bedd2(0x157)])||''+_0x292773,'createdAt':(_0x3196e7==null?void 0x0:_0x3196e7[_0x1bedd2(0x1ea)])||_0x292773,'updatedAt':(_0x3196e7==null?void 0x0:_0x3196e7[_0x1bedd2(0x172)])||_0x292773};if(!this[_0x1bedd2(0xfb)][_0x1bedd2(0x196)](_0x139a37['id'],{'unitId':this['_base'][_0x1bedd2(0x1a4)](),'tableId':this[_0x1bedd2(0x137)][_0x1bedd2(0x1a4)](),'fieldId':_0x18ec9d,'parentRecordId':this[_0x1bedd2(0x1c9)],'record':_0x358bba,'source':_0x163008[_0x1bedd2(0x102)]}))throw Error('[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22'+this[_0x1bedd2(0x1c9)]+'\x22.');return this[_0x1bedd2(0x202)]['createInstance'](J,this['_base'],this[_0x1bedd2(0x137)],_0x358bba['id'],this[_0x1bedd2(0x202)]);}['_getHierarchyIndex'](_0x32b4e8){return _0x54315c(this['_table']['getTable'](),_0x32b4e8);}['_collectDescendantIds'](_0x42483a,_0x466879){let _0x1d991a=[],_0x13b0c6=_0x53bcdd=>{const _0x3f160c=_0x3a70;for(let _0x17da8e of _0x42483a[_0x3f160c(0x17f)](_0x53bcdd)??[])_0x1d991a['push'](_0x17da8e),_0x13b0c6(_0x17da8e);};return _0x13b0c6(_0x466879),_0x1d991a;}[_0x3d6a72(0x120)](){const _0x370d54=_0x3d6a72;let _0x444265=this[_0x370d54(0x137)][_0x370d54(0x162)]()[_0x370d54(0x145)][this['_recordId']];if(!_0x444265)throw Error(_0x370d54(0x1bd)+this[_0x370d54(0x1c9)]+_0x370d54(0x199));return _0x444265;}[_0x3d6a72(0x128)](_0x153551){const _0x4ae0d0=_0x3d6a72;let _0x2c440e=this[_0x4ae0d0(0x137)][_0x4ae0d0(0x162)]()['fields'][_0x153551];if(!_0x2c440e||_0x2c440e[_0x4ae0d0(0x1c4)]!==_0x4eacf9[_0x4ae0d0(0x18d)])throw Error('[FRecord]:\x20field\x20\x22'+_0x153551+'\x22\x20is\x20not\x20a\x20RecordLink\x20field.');return _0x2c440e;}[_0x3d6a72(0x16c)](_0xc93f35){const _0x1e6ce2=_0x3d6a72;let _0x20987b=this['_table'][_0x1e6ce2(0x162)]()[_0x1e6ce2(0x209)][_0xc93f35];if(!_0x20987b||_0x20987b[_0x1e6ce2(0x1c4)]!==_0x4eacf9[_0x1e6ce2(0x20e)])throw Error(_0x1e6ce2(0x109)+_0xc93f35+_0x1e6ce2(0x194));return _0x20987b;}};Y=J=z([R(0x4,_0xbdcdaa),R(0x5,_0x2f2b52)],Y);function gt(_0x4370ff){const _0x45eb1a=_0x3d6a72;return!!(_0x4370ff&&typeof _0x4370ff=='object'&&'id'in _0x4370ff&&typeof _0x4370ff['id']==_0x45eb1a(0x215)&&_0x45eb1a(0x192)in _0x4370ff&&typeof _0x4370ff[_0x45eb1a(0x192)]==_0x45eb1a(0x215));}function _t(_0x47a5d,_0x102562,_0x3dd4a3){const _0x4874d4=_0x3d6a72;if(!gt(_0x47a5d))throw Error('[FRecord]:\x20attachment\x20at\x20index\x20'+_0x3dd4a3+_0x4874d4(0x11b)+_0x102562+_0x4874d4(0x1eb));return{..._0x47a5d};}let X=class{constructor(_0x4dfffa,_0x5f15fa,_0x117233,_0x164bae,_0x3d367d,_0x45d17a,_0x46572d){const _0x31fb5f=_0x3d6a72;this[_0x31fb5f(0x222)]=_0x4dfffa,this[_0x31fb5f(0x137)]=_0x5f15fa,this[_0x31fb5f(0x21b)]=_0x117233,this[_0x31fb5f(0x202)]=_0x164bae,this['_commandService']=_0x3d367d,this['_permissionService']=_0x45d17a,this[_0x31fb5f(0x1e8)]=_0x46572d;}[_0x3d6a72(0x1a4)](){return this['_viewId'];}['getPermission'](){const _0x4c0843=_0x3d6a72;let _0xb1ad84=this['_table'][_0x4c0843(0x1a4)]();return new L(this[_0x4c0843(0x222)][_0x4c0843(0x1a4)](),_0x88646f(_0xb1ad84,this['_viewId']),[_0x464330(_0xb1ad84)],this['_commandService'],this['_permissionService']);}[_0x3d6a72(0x1ca)](){const _0x5bf0bd=_0x3d6a72;return this[_0x5bf0bd(0x240)]();}[_0x3d6a72(0x160)](){const _0x2f034d=_0x3d6a72;return this[_0x2f034d(0x240)]()[_0x2f034d(0x192)];}['getType'](){const _0x26f5c4=_0x3d6a72;return this[_0x26f5c4(0x240)]()[_0x26f5c4(0x1c4)];}['setName'](_0x56c351){const _0xfb2b04=_0x3d6a72;return this['_commandService']['syncExecuteCommand'](_0x1dc8bf['id'],{'unitId':this[_0xfb2b04(0x222)]['getId'](),'tableId':this[_0xfb2b04(0x137)]['getId'](),'viewId':this[_0xfb2b04(0x21b)],'name':_0x56c351});}['getConfig'](){const _0x3d7bc4=_0x3d6a72;let _0x14a7a7=this['getType'](),_0x3f4a9f=this[_0x3d7bc4(0x240)]()[_0x3d7bc4(0xf6)];switch(_0x14a7a7){case _0x4ecc5e[_0x3d7bc4(0x248)]:return _0x3f4a9f;case _0x4ecc5e[_0x3d7bc4(0x1a1)]:return _0x3f4a9f;case _0x4ecc5e['Calendar']:return _0x3f4a9f;case _0x4ecc5e[_0x3d7bc4(0x1c5)]:return _0x3f4a9f;case _0x4ecc5e[_0x3d7bc4(0x219)]:return _0x3f4a9f;default:return _0x3f4a9f;}}[_0x3d6a72(0x14e)](_0x2eb584){const _0x3bc737=_0x3d6a72;return this['_commandService'][_0x3bc737(0x196)](_0x3e814c['id'],{'unitId':this[_0x3bc737(0x222)][_0x3bc737(0x1a4)](),'tableId':this[_0x3bc737(0x137)][_0x3bc737(0x1a4)](),'viewId':this[_0x3bc737(0x21b)],'patch':_0x2eb584});}[_0x3d6a72(0x11c)](){const _0x12cc63=_0x3d6a72;var _0x548193;return _0x5a0797['deepClone'](((_0x548193=this[_0x12cc63(0x240)]()[_0x12cc63(0xf6)][_0x12cc63(0x189)])==null?void 0x0:_0x548193[_0x12cc63(0x139)])??[]);}[_0x3d6a72(0x21d)](_0x3f29e4){const _0x5db082=_0x3d6a72;return this[_0x5db082(0xfb)]['syncExecuteCommand'](_0x3c9ed3['id'],{'unitId':this[_0x5db082(0x222)]['getId'](),'tableId':this[_0x5db082(0x137)][_0x5db082(0x1a4)](),'viewId':this[_0x5db082(0x21b)],'type':_0x53fd83[_0x5db082(0x230)],'rules':_0x3f29e4});}['addConditionalColorRule'](_0x5aba69){const _0x3587f2=_0x3d6a72;return this[_0x3587f2(0xfb)][_0x3587f2(0x196)](_0x3c9ed3['id'],{'unitId':this[_0x3587f2(0x222)][_0x3587f2(0x1a4)](),'tableId':this['_table']['getId'](),'viewId':this['_viewId'],'type':_0x53fd83[_0x3587f2(0x134)],'rule':_0x5aba69});}[_0x3d6a72(0x24c)](_0x59f9e7){const _0x3a4a2f=_0x3d6a72;return this[_0x3a4a2f(0xfb)][_0x3a4a2f(0x196)](_0x3c9ed3['id'],{'unitId':this[_0x3a4a2f(0x222)][_0x3a4a2f(0x1a4)](),'tableId':this['_table']['getId'](),'viewId':this[_0x3a4a2f(0x21b)],'type':_0x53fd83[_0x3a4a2f(0x1a2)],'ruleId':_0x59f9e7});}['clearConditionalColorRules'](){const _0xc54981=_0x3d6a72;return this[_0xc54981(0xfb)][_0xc54981(0x196)](_0x3c9ed3['id'],{'unitId':this[_0xc54981(0x222)][_0xc54981(0x1a4)](),'tableId':this[_0xc54981(0x137)][_0xc54981(0x1a4)](),'viewId':this[_0xc54981(0x21b)],'type':_0x53fd83[_0xc54981(0x1bb)]});}[_0x3d6a72(0x20c)](){const _0x5e4262=_0x3d6a72;return this[_0x5e4262(0x240)]()['filter']??null;}['setFilter'](_0xcc4e71){const _0x564b54=_0x3d6a72;return this[_0x564b54(0xfb)][_0x564b54(0x196)](_0x23b2fa['id'],{'unitId':this[_0x564b54(0x222)][_0x564b54(0x1a4)](),'tableId':this['_table'][_0x564b54(0x1a4)](),'viewId':this[_0x564b54(0x21b)],'filter':_0xcc4e71});}[_0x3d6a72(0x250)](){const _0x4749b4=_0x3d6a72;return this[_0x4749b4(0x240)]()['sort']??[];}[_0x3d6a72(0x1ef)](_0x4bee58){const _0x22aa24=_0x3d6a72;return this['_commandService']['syncExecuteCommand'](_0x1ce03b['id'],{'unitId':this[_0x22aa24(0x222)][_0x22aa24(0x1a4)](),'tableId':this['_table']['getId'](),'viewId':this[_0x22aa24(0x21b)],'sort':_0x4bee58});}[_0x3d6a72(0x12a)](){const _0x1caf2e=_0x3d6a72;return this[_0x1caf2e(0x240)]()[_0x1caf2e(0xfe)]??[];}[_0x3d6a72(0x119)](_0x404cf4){const _0x385014=_0x3d6a72;return this[_0x385014(0xfb)][_0x385014(0x196)](_0xae323a['id'],{'unitId':this[_0x385014(0x222)]['getId'](),'tableId':this['_table'][_0x385014(0x1a4)](),'viewId':this[_0x385014(0x21b)],'group':_0x404cf4});}[_0x3d6a72(0x23e)](_0x26cf46){const _0x13961b=_0x3d6a72;var _0x41495b;return V(this[_0x13961b(0x137)][_0x13961b(0x162)]()[_0x13961b(0x209)][_0x26cf46])?((_0x41495b=this['_getView']()[_0x13961b(0x1d4)])==null?void 0x0:_0x41495b[_0x26cf46])??{}:{};}[_0x3d6a72(0x1bc)](){const _0x179055=_0x3d6a72;let _0xa21a36=this['_table']['getTable'](),_0x5ca842=this['_getView']();return(_0x5ca842[_0x179055(0x174)]??_0xa21a36['fieldOrder'])[_0x179055(0x21a)](_0xae15f9=>{var _0xf6cc57;let _0x2f78fb=_0xa21a36['fields'][_0xae15f9];return V(_0x2f78fb)&&!((_0xf6cc57=_0x5ca842['fieldSettings'])!=null&&(_0xf6cc57=_0xf6cc57[_0xae15f9])!=null&&_0xf6cc57['hidden']);})[_0x179055(0x126)](_0x22e512=>this['_injector'][_0x179055(0x16d)](B,this[_0x179055(0x222)],this['_table'],_0x22e512));}[_0x3d6a72(0x19f)](_0x251fed,_0x438742){const _0x3d7741=_0x3d6a72;return V(this['_table'][_0x3d7741(0x162)]()['fields'][_0x251fed])?this['_commandService']['syncExecuteCommand'](_0x1dcb50['id'],{'unitId':this[_0x3d7741(0x222)][_0x3d7741(0x1a4)](),'tableId':this[_0x3d7741(0x137)]['getId'](),'viewId':this[_0x3d7741(0x21b)],'fieldId':_0x251fed,'visible':_0x438742}):!0x1;}[_0x3d6a72(0xf5)](_0x13bbfc,_0x3d889a){const _0x309c09=_0x3d6a72;return V(this['_table'][_0x309c09(0x162)]()['fields'][_0x13bbfc])?this[_0x309c09(0xfb)]['syncExecuteCommand'](_0x390214['id'],{'unitId':this['_base'][_0x309c09(0x1a4)](),'tableId':this['_table'][_0x309c09(0x1a4)](),'viewId':this[_0x309c09(0x21b)],'fieldId':_0x13bbfc,'width':_0x3d889a}):!0x1;}[_0x3d6a72(0x14b)](_0x2873c6,_0x468d21){const _0x3ccd57=_0x3d6a72;let _0x483314=this[_0x3ccd57(0x137)]['getTable'](),_0x4ff19a=_0x468d21[_0x3ccd57(0x1f6)]??_0x468d21[_0x3ccd57(0x1f0)];return!V(_0x483314[_0x3ccd57(0x209)][_0x2873c6])||!_0x4ff19a||!V(_0x483314['fields'][_0x4ff19a])?!0x1:this['_commandService'][_0x3ccd57(0x196)](_0x213c3d['id'],{'unitId':this[_0x3ccd57(0x222)][_0x3ccd57(0x1a4)](),'tableId':this[_0x3ccd57(0x137)][_0x3ccd57(0x1a4)](),'viewId':this[_0x3ccd57(0x21b)],'fieldId':_0x2873c6,'target':_0x468d21});}[_0x3d6a72(0x11d)](_0xd8ecd4){const _0x30f40a=_0x3d6a72;return this[_0x30f40a(0xfb)][_0x30f40a(0x196)](_0xd1d1ce['id'],{'unitId':this[_0x30f40a(0x222)][_0x30f40a(0x1a4)](),'tableId':this[_0x30f40a(0x137)][_0x30f40a(0x1a4)](),'viewId':this[_0x30f40a(0x21b)],'target':_0xd8ecd4});}[_0x3d6a72(0x226)](){const _0x562122=_0x3d6a72;return this[_0x562122(0xfb)][_0x562122(0x196)](_0x166b9a['id'],{'unitId':this[_0x562122(0x222)][_0x562122(0x1a4)](),'tableId':this['_table'][_0x562122(0x1a4)](),'viewId':this[_0x562122(0x21b)]});}[_0x3d6a72(0x150)](){const _0x526b9e=_0x3d6a72;return this['_projectionService'][_0x526b9e(0x150)](this[_0x526b9e(0x222)][_0x526b9e(0x252)]()['getSnapshot'](),this[_0x526b9e(0x137)][_0x526b9e(0x1a4)](),this[_0x526b9e(0x21b)]);}[_0x3d6a72(0x240)](){const _0x4869cd=_0x3d6a72;let _0x25f455=this[_0x4869cd(0x137)][_0x4869cd(0x162)]()[_0x4869cd(0x1bf)][this['_viewId']];if(!_0x25f455)throw Error(_0x4869cd(0x138)+this[_0x4869cd(0x21b)]+_0x4869cd(0x199));return _0x25f455;}};X=z([R(0x4,_0xbdcdaa),R(0x5,_0x2f2b52),R(0x6,_0x2778cc)],X);let Z=class{constructor(_0x41f3b6,_0x4cf8f5,_0x22afb7,_0x3ba48c,_0x5acca6,_0x3bf895){const _0x17a3d6=_0x3d6a72;this['_base']=_0x41f3b6,this[_0x17a3d6(0x14c)]=_0x4cf8f5,this['_injector']=_0x22afb7,this[_0x17a3d6(0xfb)]=_0x3ba48c,this[_0x17a3d6(0x1d9)]=_0x5acca6,this['_projectionService']=_0x3bf895;}[_0x3d6a72(0x252)](){const _0x54b947=_0x3d6a72;return this[_0x54b947(0x222)]['getBase']();}[_0x3d6a72(0x162)](){const _0x5b448b=_0x3d6a72;return this[_0x5b448b(0x179)]();}[_0x3d6a72(0x1a4)](){return this['_tableId'];}['getPermission'](){const _0x143ed0=_0x3d6a72;return new L(this['getBase']()[_0x143ed0(0x1c3)](),_0x464330(this[_0x143ed0(0x14c)]),[],this['_commandService'],this[_0x143ed0(0x1d9)]);}[_0x3d6a72(0x1f4)](){const _0x50d032=_0x3d6a72;return _0x4afdff(this[_0x50d032(0x179)]());}[_0x3d6a72(0x1dc)](_0x1ebfcb){const _0xd0711=_0x3d6a72;return this['_commandService']['syncExecuteCommand'](_0x1010aa['id'],{'unitId':this[_0xd0711(0x222)][_0xd0711(0x1a4)](),'tableId':this['_tableId'],'fieldId':_0x1ebfcb});}[_0x3d6a72(0x160)](){const _0x16cdb5=_0x3d6a72;return this[_0x16cdb5(0x179)]()[_0x16cdb5(0x192)];}[_0x3d6a72(0x111)](){const _0x10a1c6=_0x3d6a72;let _0xc2cdd1=this[_0x10a1c6(0x222)]['getBase']()[_0x10a1c6(0xf2)]();return _0x20e887(this['_getTable'](),_0xc2cdd1);}[_0x3d6a72(0x10a)](_0x95e81b){const _0x37ee10=_0x3d6a72;let _0x301b5c=_0x2ec702(this[_0x37ee10(0x222)][_0x37ee10(0x252)]()[_0x37ee10(0xf2)](),_0x95e81b,this['_tableId']);if(!_0x301b5c['valid'])throw Error('[FBaseTable]:\x20invalid\x20table\x20name\x20\x22'+_0x95e81b+'\x22.\x20'+_0x3e3c4c+'\x20'+_0x301b5c[_0x37ee10(0x1d7)]);return this[_0x37ee10(0xfb)]['syncExecuteCommand'](_0x57ea0d['id'],{'unitId':this['_base'][_0x37ee10(0x1a4)](),'tableId':this['_tableId'],'name':_0x95e81b});}['search'](_0x2485f6,_0x19babd){const _0xe1afec=_0x3d6a72;let _0x183d39=this[_0xe1afec(0x222)][_0xe1afec(0x252)]()[_0xe1afec(0xf2)](),_0x23dcfe=this['_getTable']();if(_0x19babd){let _0x4c6fbd=this[_0xe1afec(0x1e8)][_0xe1afec(0x150)](_0x183d39,this[_0xe1afec(0x14c)],_0x19babd),_0x161c72=_0x23dcfe[_0xe1afec(0x1bf)][_0x19babd],_0x10b168=_0x2485f6[_0xe1afec(0x140)]??Tt(_0x23dcfe,_0x161c72,_0x4c6fbd),_0x5df829=_0xe1afec(0x100)in _0x4c6fbd&&Array[_0xe1afec(0x169)](_0x4c6fbd[_0xe1afec(0x100)])?_0x4c6fbd[_0xe1afec(0x100)]:[];return _0x575002({..._0x2485f6,'table':_0x23dcfe,'fieldIds':_0x10b168,'rows':_0x5df829});}let _0x493409=(_0x23dcfe[_0xe1afec(0x207)]?_0x23dcfe['recordOrder'][_0xe1afec(0x126)](_0x1c75cb=>_0x23dcfe[_0xe1afec(0x145)][_0x1c75cb]):Object[_0xe1afec(0x132)](_0x23dcfe[_0xe1afec(0x145)])['sort']((_0xa5296b,_0x304b24)=>_0xa5296b[_0xe1afec(0x157)][_0xe1afec(0x13f)](_0x304b24[_0xe1afec(0x157)])))[_0xe1afec(0x21a)](_0x11c9f9=>_0x11c9f9)[_0xe1afec(0x126)](_0x29c0a9=>({'recordId':_0x29c0a9['id'],'values':_0x29c0a9['values']})),_0x4ae0c6=_0x2485f6[_0xe1afec(0x140)]??_0x23dcfe[_0xe1afec(0x174)][_0xe1afec(0x21a)](_0x396078=>V(_0x23dcfe[_0xe1afec(0x209)][_0x396078]));return _0x575002({..._0x2485f6,'table':_0x23dcfe,'fieldIds':_0x4ae0c6,'rows':_0x493409});}[_0x3d6a72(0x1a0)](){return this['_getTable']()['primaryFieldId'];}['getFields'](){const _0x5cccb5=_0x3d6a72;let _0xc2030a=this[_0x5cccb5(0x179)]();return _0xc2030a[_0x5cccb5(0x174)][_0x5cccb5(0x126)](_0x2be52e=>_0xc2030a[_0x5cccb5(0x209)][_0x2be52e])[_0x5cccb5(0x21a)](V)['map'](_0x1be6bb=>this[_0x5cccb5(0x202)][_0x5cccb5(0x16d)](B,this['_base'],this,_0x1be6bb['id']));}['getFieldById'](_0x418233){const _0x541e98=_0x3d6a72;let _0x5d4807=this[_0x541e98(0x179)]()[_0x541e98(0x209)][_0x418233];return V(_0x5d4807)?this['_injector']['createInstance'](B,this['_base'],this,_0x5d4807['id']):null;}[_0x3d6a72(0x164)](_0x49372f){const _0x453f05=_0x3d6a72;let _0x18fc26=this[_0x453f05(0x179)]()[_0x453f05(0x209)],_0x973d6d=Object[_0x453f05(0x132)](_0x18fc26)[_0x453f05(0x1fc)](_0x3bd0b1=>V(_0x3bd0b1)&&_0x3bd0b1[_0x453f05(0x192)]===_0x49372f);return _0x973d6d?this['_injector'][_0x453f05(0x16d)](B,this[_0x453f05(0x222)],this,_0x973d6d['id']):null;}[_0x3d6a72(0xf3)](){const _0x213071=_0x3d6a72;let _0x52faa7=this[_0x213071(0x179)]()[_0x213071(0x223)];return this['_injector'][_0x213071(0x16d)](B,this[_0x213071(0x222)],this,_0x52faa7);}[_0x3d6a72(0xf8)](_0x1172ae,_0x3c1f03,_0xa46ca7){const _0x47ca40=_0x3d6a72;var _0x35d93c,_0x510ed8;if(!Object[_0x47ca40(0x132)](_0x4eacf9)[_0x47ca40(0x10c)](_0x2ca08a=>_0x2ca08a===_0x3c1f03))throw Error(_0x47ca40(0x12c)+String(_0x3c1f03)+'\x22.');if(_0x3c1f03===_0x4eacf9[_0x47ca40(0x177)]&&this[_0x47ca40(0x1d2)](_0x1172ae,_0xa46ca7),_0x3c1f03===_0x4eacf9[_0x47ca40(0x18d)]&&(typeof(_0xa46ca7==null||(_0x35d93c=_0xa46ca7['field'])==null||(_0x35d93c=_0x35d93c[_0x47ca40(0xf6)])==null?void 0x0:_0x35d93c[_0x47ca40(0x1e0)])!=_0x47ca40(0x215)||typeof _0xa46ca7[_0x47ca40(0x11e)]['config']['multiple']!=_0x47ca40(0x1e2)))throw Error(_0x47ca40(0x17a));let _0xe9c56={..._0xa46ca7==null?void 0x0:_0xa46ca7['field'],'id':_0x36bb57(0x6),'name':_0x1172ae,'type':_0x3c1f03,'config':(_0xa46ca7==null||(_0x510ed8=_0xa46ca7[_0x47ca40(0x11e)])==null?void 0x0:_0x510ed8[_0x47ca40(0xf6)])??{}};if(!this[_0x47ca40(0xfb)]['syncExecuteCommand'](_0x45cbde['id'],{'unitId':this['_base'][_0x47ca40(0x1a4)](),'tableId':this[_0x47ca40(0x14c)],'field':_0xe9c56,'index':_0xa46ca7==null?void 0x0:_0xa46ca7[_0x47ca40(0x110)]}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x1172ae+'\x22');return this[_0x47ca40(0x202)]['createInstance'](B,this['_base'],this,_0xe9c56['id']);}[_0x3d6a72(0x1d2)](_0x7c199c,_0x588f8e){const _0xb70ece=_0x3d6a72;var _0x4329a0;if(!_0x588f8e||!(_0xb70ece(0x1c8)in _0x588f8e)||!Array[_0xb70ece(0x169)](_0x588f8e[_0xb70ece(0x1c8)]))throw Error(_0xb70ece(0x17d));let _0x3dfc98=this[_0xb70ece(0xfb)][_0xb70ece(0x196)](_0x43a6fd['id'],{'unitId':this[_0xb70ece(0x222)][_0xb70ece(0x1a4)](),'tableId':this[_0xb70ece(0x14c)],'formula':String(((_0x4329a0=_0x588f8e[_0xb70ece(0x11e)])==null||(_0x4329a0=_0x4329a0['config'])==null?void 0x0:_0x4329a0[_0xb70ece(0x146)])??'')});if(!_0x3dfc98[_0xb70ece(0x1a7)])throw Error(_0x3dfc98[_0xb70ece(0x1d7)]??_0xb70ece(0x104));if(_0x588f8e['externalReferences'][_0xb70ece(0x1c6)]>0x0&&!this[_0xb70ece(0xfb)][_0xb70ece(0x196)](_0x4a1d32['id'],{'unitId':this[_0xb70ece(0x222)][_0xb70ece(0x1a4)](),'references':_0x588f8e[_0xb70ece(0x1c8)]}))throw Error(_0xb70ece(0x1b7)+_0x7c199c+'\x22');}[_0x3d6a72(0x188)](){const _0x51d73c=_0x3d6a72;return this[_0x51d73c(0x1cf)]()[_0x51d73c(0x126)](_0x1456de=>this[_0x51d73c(0x202)][_0x51d73c(0x16d)](Y,this['_base'],this,_0x1456de,this['_injector']));}[_0x3d6a72(0x178)](_0x5ab140){const _0xf53dab=_0x3d6a72;return this[_0xf53dab(0x179)]()['records'][_0x5ab140]?this['_injector'][_0xf53dab(0x16d)](Y,this['_base'],this,_0x5ab140,this[_0xf53dab(0x202)]):null;}[_0x3d6a72(0x1f2)](_0x510e7d={}){const _0xf7c49c=_0x3d6a72;let _0x16df50=this[_0xf7c49c(0x179)](),_0x5b45fa=this[_0xf7c49c(0x1cf)](_0x510e7d),_0x4d7640=Math[_0xf7c49c(0x173)](0x0,_0x510e7d[_0xf7c49c(0xe7)]??0x0),_0x3c5619=_0x510e7d['limit']==null?null:Math[_0xf7c49c(0x173)](0x0,_0x510e7d[_0xf7c49c(0x182)]),_0x4e2406=yt(_0x5b45fa['map'](_0x574c77=>_0x16df50[_0xf7c49c(0x145)][_0x574c77])['filter'](_0x64421b=>xt(_0x64421b,_0x16df50,_0x510e7d[_0xf7c49c(0x21a)])),_0x16df50,_0x510e7d[_0xf7c49c(0x221)]);return{'records':vt(_0x4e2406,_0x510e7d)[_0xf7c49c(0x126)](_0x3f120a=>this[_0xf7c49c(0x202)][_0xf7c49c(0x16d)](Y,this[_0xf7c49c(0x222)],this,_0x3f120a['id'],this['_injector'])),'total':_0x4e2406[_0xf7c49c(0x1c6)],'offset':_0x4d7640,'limit':_0x3c5619,'hasMore':_0x3c5619!=null&&_0x4d7640+_0x3c5619<_0x4e2406[_0xf7c49c(0x1c6)]};}[_0x3d6a72(0x19d)](_0xd77460,_0x56ac58='id',_0x499190){const _0x3c3fa2=_0x3d6a72;let _0x52a0c0=this[_0x3c3fa2(0x179)](),_0x5d429c=Date['now'](),_0x98204d={..._0x499190,'id':_0x36bb57(0x6),'values':H(_0x52a0c0,_0xd77460,_0x56ac58),'orderKey':(_0x499190==null?void 0x0:_0x499190['orderKey'])||''+_0x5d429c,'createdAt':(_0x499190==null?void 0x0:_0x499190[_0x3c3fa2(0x1ea)])||_0x5d429c,'updatedAt':(_0x499190==null?void 0x0:_0x499190[_0x3c3fa2(0x172)])||_0x5d429c};if(!this['_commandService'][_0x3c3fa2(0x196)](_0x3d3295['id'],{'unitId':this[_0x3c3fa2(0x222)][_0x3c3fa2(0x1a4)](),'tableId':this['_tableId'],'record':_0x98204d,'source':_0x163008[_0x3c3fa2(0x102)]}))throw Error(_0x3c3fa2(0x22a)+_0x98204d['id']+'\x22');return this[_0x3c3fa2(0x202)][_0x3c3fa2(0x16d)](Y,this[_0x3c3fa2(0x222)],this,_0x98204d['id'],this[_0x3c3fa2(0x202)]);}['addRecords'](_0x54f9e0){const _0x3e1b26=_0x3d6a72;if(!_0x54f9e0[_0x3e1b26(0x1c6)])return[];let _0x1e15a9=this[_0x3e1b26(0x179)](),_0x591bd8=Date[_0x3e1b26(0x21c)](),_0x474523=_0x54f9e0[_0x3e1b26(0x126)]((_0x45629f,_0x3a2a21)=>{const _0x2fb42d=_0x3e1b26;var _0x1a2023,_0x33601d,_0x4807d3;return{..._0x45629f[_0x2fb42d(0x107)],'id':_0x36bb57(0x6),'values':H(_0x1e15a9,_0x45629f[_0x2fb42d(0x132)],_0x45629f[_0x2fb42d(0x117)]??'id'),'orderKey':((_0x1a2023=_0x45629f[_0x2fb42d(0x107)])==null?void 0x0:_0x1a2023[_0x2fb42d(0x157)])||''+(_0x591bd8+_0x3a2a21),'createdAt':((_0x33601d=_0x45629f[_0x2fb42d(0x107)])==null?void 0x0:_0x33601d['createdAt'])||_0x591bd8,'updatedAt':((_0x4807d3=_0x45629f[_0x2fb42d(0x107)])==null?void 0x0:_0x4807d3[_0x2fb42d(0x172)])||_0x591bd8};});if(!this[_0x3e1b26(0xfb)][_0x3e1b26(0x196)](_0x5c549e['id'],{'unitId':this[_0x3e1b26(0x222)][_0x3e1b26(0x1a4)](),'tableId':this['_tableId'],'records':_0x474523,'source':_0x163008[_0x3e1b26(0x102)]}))throw Error(_0x3e1b26(0x131));return _0x474523[_0x3e1b26(0x126)](_0x59f241=>this[_0x3e1b26(0x202)][_0x3e1b26(0x16d)](Y,this['_base'],this,_0x59f241['id'],this[_0x3e1b26(0x202)]));}[_0x3d6a72(0x19b)](_0x21d61c){const _0x9c7676=_0x3d6a72;return!_0x21d61c[_0x9c7676(0x1c6)]||this[_0x9c7676(0xfb)][_0x9c7676(0x196)](_0x3b6e46['id'],{'unitId':this['_base'][_0x9c7676(0x1a4)](),'tableId':this[_0x9c7676(0x14c)],'recordIds':_0x21d61c,'source':_0x163008[_0x9c7676(0x102)]});}[_0x3d6a72(0x16e)](_0x292e3f,_0x1881ab,_0x5200c7=0x1,_0x8bebf4=0x1){const _0x536863=_0x3d6a72;return this['_injector'][_0x536863(0x16d)](K,this[_0x536863(0x222)],this,{'startRow':_0x292e3f,'endRow':_0x292e3f+_0x5200c7-0x1,'startColumn':_0x1881ab,'endColumn':_0x1881ab+_0x8bebf4-0x1},this[_0x536863(0x202)]);}[_0x3d6a72(0x236)](){const _0x3d09c9=_0x3d6a72;var _0x174982;let _0x54cf48=_0x326146(this[_0x3d09c9(0x179)]()),_0x2f0978=((_0x174982=_0x54cf48['recordOrder'])==null?void 0x0:_0x174982[_0x3d09c9(0x1c6)])??0x0,_0x30e0bd=_0x54cf48[_0x3d09c9(0x174)][_0x3d09c9(0x21a)](_0x15d558=>V(_0x54cf48[_0x3d09c9(0x209)][_0x15d558]))[_0x3d09c9(0x1c6)];return this[_0x3d09c9(0x16e)](0x0,0x0,Math['max'](_0x2f0978,0x1),Math['max'](_0x30e0bd,0x1));}[_0x3d6a72(0x1e5)](){const _0x1515d3=_0x3d6a72;let _0x415c39=this[_0x1515d3(0x179)]();return _0x415c39['viewOrder'][_0x1515d3(0x21a)](_0x5ac903=>_0x415c39[_0x1515d3(0x1bf)][_0x5ac903])[_0x1515d3(0x126)](_0x4430f4=>this['_injector'][_0x1515d3(0x16d)](X,this[_0x1515d3(0x222)],this,_0x4430f4,this[_0x1515d3(0x202)]));}[_0x3d6a72(0x244)](_0x2b6a0f){const _0x52e55c=_0x3d6a72;return this[_0x52e55c(0x179)]()[_0x52e55c(0x1bf)][_0x2b6a0f]?this[_0x52e55c(0x202)][_0x52e55c(0x16d)](X,this[_0x52e55c(0x222)],this,_0x2b6a0f,this[_0x52e55c(0x202)]):null;}[_0x3d6a72(0x18e)](_0x2e988a){const _0x3bd7f6=_0x3d6a72;let _0x123119=this[_0x3bd7f6(0x179)](),_0x1c9b72=Object[_0x3bd7f6(0x132)](_0x123119['views'])[_0x3bd7f6(0x1fc)](_0x10b668=>_0x10b668['name']===_0x2e988a);return _0x1c9b72?this['_injector'][_0x3bd7f6(0x16d)](X,this[_0x3bd7f6(0x222)],this,_0x1c9b72['id'],this[_0x3bd7f6(0x202)]):null;}['createView'](_0x2da099,_0x25a394,_0x15d52f){const _0x218322=_0x3d6a72;var _0x20db3b,_0x3f9209,_0x4ae067,_0x22d88b;let _0x21c578=this['_getTable'](),_0x430e27=(_0x15d52f==null||(_0x20db3b=_0x15d52f[_0x218322(0x24e)])==null?void 0x0:_0x20db3b[_0x218322(0x174)])??_0x21c578[_0x218322(0x174)],_0x360d38=[_0x3a2092,..._0x430e27[_0x218322(0x21a)](_0x5117f0=>V(_0x21c578[_0x218322(0x209)][_0x5117f0]))],_0x85726a={..._0x15d52f==null?void 0x0:_0x15d52f['view'],'id':_0x36bb57(0x6),'name':_0x2da099,'type':_0x25a394,'tableId':this[_0x218322(0x14c)],'config':(_0x15d52f==null||(_0x3f9209=_0x15d52f[_0x218322(0x24e)])==null?void 0x0:_0x3f9209[_0x218322(0xf6)])??{},'fieldOrder':_0x360d38,'fieldSettings':{..._0x15d52f==null||(_0x4ae067=_0x15d52f[_0x218322(0x24e)])==null?void 0x0:_0x4ae067[_0x218322(0x1d4)],[_0x3a2092]:{..._0x15d52f==null||(_0x22d88b=_0x15d52f[_0x218322(0x24e)])==null||(_0x22d88b=_0x22d88b[_0x218322(0x1d4)])==null?void 0x0:_0x22d88b[_0x3a2092],'hidden':!0x0}}};if(!this['_commandService'][_0x218322(0x196)](_0x1a4d71['id'],{'unitId':this[_0x218322(0x222)][_0x218322(0x1a4)](),'tableId':this[_0x218322(0x14c)],'view':_0x85726a,'index':_0x15d52f==null?void 0x0:_0x15d52f[_0x218322(0x110)]}))throw Error(_0x218322(0x133)+_0x2da099+'\x22');return this[_0x218322(0x202)][_0x218322(0x16d)](X,this[_0x218322(0x222)],this,_0x85726a['id'],this[_0x218322(0x202)]);}[_0x3d6a72(0x113)](){const _0x5cdb44=_0x3d6a72;let _0x5b1daa=this[_0x5cdb44(0x179)](),_0x1d5a56=_0x5b1daa[_0x5cdb44(0x174)][_0x5cdb44(0x21a)](_0xdf3c1d=>V(_0x5b1daa[_0x5cdb44(0x209)][_0xdf3c1d])),_0x4f2188=_0x5b1daa[_0x5cdb44(0x143)][_0x5cdb44(0x21a)](_0x33eed8=>_0x5b1daa[_0x5cdb44(0x1bf)][_0x33eed8]);return{'id':_0x5b1daa['id'],'name':_0x5b1daa['name'],'formulaName':this[_0x5cdb44(0x111)](),'primaryFieldId':_0x5b1daa[_0x5cdb44(0x223)],'fieldIds':_0x1d5a56,'viewIds':_0x4f2188,'recordCount':this[_0x5cdb44(0x1cf)]()['length'],'fields':_0x1d5a56[_0x5cdb44(0x126)](_0x17c464=>{const _0x19f1de=_0x5cdb44;let _0x13ef97=_0x5b1daa[_0x19f1de(0x209)][_0x17c464];return{'id':_0x13ef97['id'],'name':_0x13ef97[_0x19f1de(0x192)],'type':_0x13ef97[_0x19f1de(0x1c4)],'config':_0x13ef97[_0x19f1de(0xf6)],'readonly':_0x13ef97['readonly'],'description':_0x13ef97[_0x19f1de(0x15e)]};}),'views':_0x4f2188[_0x5cdb44(0x126)](_0x13835f=>{const _0x1829f2=_0x5cdb44;let _0x5986ac=_0x5b1daa[_0x1829f2(0x1bf)][_0x13835f];return{'id':_0x5986ac['id'],'name':_0x5986ac['name'],'type':_0x5986ac[_0x1829f2(0x1c4)]};})};}[_0x3d6a72(0x179)](){const _0xae5f6e=_0x3d6a72;let _0x2709f6=this[_0xae5f6e(0x222)][_0xae5f6e(0x252)]()[_0xae5f6e(0xf2)]()[_0xae5f6e(0x181)][this[_0xae5f6e(0x14c)]];if(!_0x2709f6)throw Error(_0xae5f6e(0x142)+this['_tableId']+_0xae5f6e(0x199));return _0x2709f6;}[_0x3d6a72(0x1cf)](_0x4dbbd9={}){const _0x17a017=_0x3d6a72;let _0xacf942=this[_0x17a017(0x222)]['getBase']()['getSnapshot'](),_0x19915c=this['_getTable']();if(_0x4dbbd9[_0x17a017(0x1b5)]){let _0x458aec=this[_0x17a017(0x1e8)][_0x17a017(0x150)](_0xacf942,this['_tableId'],_0x4dbbd9['viewId']);if(_0x17a017(0x100)in _0x458aec&&Array['isArray'](_0x458aec[_0x17a017(0x100)]))return _0x458aec['rows']['map'](_0x215e24=>_0x215e24[_0x17a017(0x158)]);}return(_0x19915c[_0x17a017(0x207)]?_0x19915c[_0x17a017(0x207)][_0x17a017(0x126)](_0x3ab185=>_0x19915c['records'][_0x3ab185]):Object[_0x17a017(0x132)](_0x19915c['records'])[_0x17a017(0x221)]((_0x2caa68,_0x52efe2)=>_0x2caa68[_0x17a017(0x157)][_0x17a017(0x13f)](_0x52efe2[_0x17a017(0x157)])))[_0x17a017(0x21a)](_0x9ee706=>_0x9ee706)['map'](_0x2f43a9=>_0x2f43a9['id']);}};Z=z([R(0x3,_0xbdcdaa),R(0x4,_0x2f2b52),R(0x5,_0x2778cc)],Z);function vt(_0x1b7a3c,_0xd15281){const _0x37cd73=_0x3d6a72;let _0x4473bf=Math['max'](0x0,_0xd15281['offset']??0x0);return _0xd15281[_0x37cd73(0x182)]==null?_0x1b7a3c[_0x37cd73(0x15b)](_0x4473bf):_0x1b7a3c['slice'](_0x4473bf,_0x4473bf+Math['max'](0x0,_0xd15281[_0x37cd73(0x182)]));}function yt(_0x67605e,_0x566acc,_0x321c21=[]){const _0x1712bd=_0x3d6a72;return _0x321c21[_0x1712bd(0x1c6)]?[..._0x67605e][_0x1712bd(0x221)]((_0x1241bc,_0x47ed04)=>{const _0x3d8fad=_0x1712bd;for(let _0x4a8803 of _0x321c21){var _0x1586a9;let _0x56c742=_0x4a8803['direction']===_0x40554e[_0x3d8fad(0x23c)]?-0x1:0x1,_0x53f33a=bt(_0x1241bc['values'][_0x4a8803[_0x3d8fad(0x238)]],_0x47ed04[_0x3d8fad(0x132)][_0x4a8803[_0x3d8fad(0x238)]],(_0x1586a9=_0x566acc[_0x3d8fad(0x209)][_0x4a8803[_0x3d8fad(0x238)]])==null?void 0x0:_0x1586a9['type']);if(_0x53f33a!==0x0)return _0x53f33a*_0x56c742;}return String(_0x1241bc[_0x3d8fad(0x157)]??_0x1241bc['id'])[_0x3d8fad(0x13f)](String(_0x47ed04['orderKey']??_0x47ed04['id']));}):_0x67605e;}function bt(_0x5906a4,_0x31214c,_0x1594b5){const _0x95a376=_0x3d6a72;return _0x5906a4==null&&_0x31214c==null?0x0:_0x5906a4==null?-0x1:_0x31214c==null?0x1:typeof _0x5906a4==_0x95a376(0x22c)&&typeof _0x31214c==_0x95a376(0x22c)?_0x5906a4-_0x31214c:_0x1594b5===_0x4eacf9[_0x95a376(0x155)]?Number(_0x5906a4)-Number(_0x31214c):String(_0x5906a4)[_0x95a376(0x13f)](String(_0x31214c));}function xt(_0x3b17d5,_0x344dd9,_0x2e3e80){const _0x4e5b65=_0x3d6a72;var _0xda7840;if(!_0x2e3e80||!((_0xda7840=_0x2e3e80[_0x4e5b65(0x1cd)])!=null&&_0xda7840[_0x4e5b65(0x1c6)]))return!0x0;let {conjunction:_0x46ad11=_0x125131['OR'],conditions:_0x51573b}=_0x2e3e80;return _0x46ad11===_0x125131[_0x4e5b65(0x11a)]&&_0x51573b[_0x4e5b65(0x1c6)]>0x1?_0x51573b[_0x4e5b65(0xfc)](_0x135306=>St(_0x3b17d5,_0x344dd9,_0x135306)):_0x51573b['some'](_0x3cdab3=>St(_0x3b17d5,_0x344dd9,_0x3cdab3));}function St(_0x26fad4,_0x5b3261,_0x76eb25){const _0x502ac9=_0x3d6a72;let _0x9a2006=_0x26fad4['values'][_0x76eb25['fieldId']],_0x578ff1=_0x5b3261['fields'][_0x76eb25[_0x502ac9(0x238)]];if(Ct(_0x76eb25)){let _0x29fa85=wt(_0x76eb25)[_0x502ac9(0x1d8)](String(_0x9a2006??''));return _0x76eb25[_0x502ac9(0x15a)]===_0x502ac9(0x1e1)?_0x29fa85:!_0x29fa85;}return!_0x578ff1||_0x37c3b6(_0x9a2006,_0x76eb25['operator'],_0x76eb25['value'],_0x578ff1);}function Ct(_0x5a170d){const _0x5e977a=_0x3d6a72;return _0x5a170d[_0x5e977a(0x15a)]===_0x5e977a(0x1e1)||_0x5a170d['operator']===_0x5e977a(0x246);}function wt(_0xe494bb){const _0x3862ca=_0x3d6a72;let _0x389e57=String(_0xe494bb[_0x3862ca(0x20a)]??'');if(_0x389e57[_0x3862ca(0x1c6)]>0x200)throw Error(_0x3862ca(0x10d));try{return new RegExp(_0x389e57,_0xe494bb[_0x3862ca(0x241)]?void 0x0:'i');}catch(_0x13d0d1){throw Error(_0x3862ca(0x167)+_0x389e57+'.\x20'+(_0x13d0d1 instanceof Error?_0x13d0d1[_0x3862ca(0x23a)]:String(_0x13d0d1)));}}function Tt(_0x5489a2,_0x182722,_0x67585){const _0x423a8b=_0x3d6a72;if(_0x67585['type']!==_0x423a8b(0xea)&&_0x67585[_0x423a8b(0x1c4)]!==_0x423a8b(0xeb)){var _0x2f4ba1;if(_0x67585[_0x423a8b(0x1c4)]===_0x4ecc5e[_0x423a8b(0x1a1)]){var _0x103a76;let _0x3a16dd=[((_0x103a76=_0x67585['fields'])==null||(_0x103a76=_0x103a76[0x0])==null?void 0x0:_0x103a76['id'])??_0x5489a2[_0x423a8b(0x223)],..._0x67585[_0x423a8b(0x211)]??[]];return Array[_0x423a8b(0x151)](new Set(_0x3a16dd[_0x423a8b(0x21a)](_0x5eb88f=>!!_0x5489a2[_0x423a8b(0x209)][_0x5eb88f])));}if((_0x2f4ba1=_0x67585[_0x423a8b(0x209)])!=null&&_0x2f4ba1[_0x423a8b(0x1c6)])return _0x67585[_0x423a8b(0x209)][_0x423a8b(0x126)](_0x50afa8=>_0x50afa8['id'])[_0x423a8b(0x21a)](_0x2c95c2=>{const _0x41fe97=_0x423a8b;var _0x1fd8ec;return!(!_0x5489a2[_0x41fe97(0x209)][_0x2c95c2]||_0x182722!=null&&(_0x1fd8ec=_0x182722[_0x41fe97(0x1d4)])!=null&&(_0x1fd8ec=_0x1fd8ec[_0x2c95c2])!=null&&_0x1fd8ec[_0x41fe97(0x12e)]);});}return _0x5489a2[_0x423a8b(0x174)][_0x423a8b(0x21a)](_0x52bf2a=>{const _0x17fc81=_0x423a8b;var _0x19cb7f;return!(!_0x5489a2[_0x17fc81(0x209)][_0x52bf2a]||_0x182722!=null&&(_0x19cb7f=_0x182722['fieldSettings'])!=null&&(_0x19cb7f=_0x19cb7f[_0x52bf2a])!=null&&_0x19cb7f[_0x17fc81(0x12e)]);});}let Q=class extends _0x4023b6[_0x3d6a72(0xe8)]{constructor(_0x532411,_0x5afb23,_0x4e0659,_0x16a20c,_0x20d878){const _0x251835=_0x3d6a72;super(),this['_base']=_0x532411,this[_0x251835(0x202)]=_0x5afb23,this[_0x251835(0x156)]=_0x4e0659,this[_0x251835(0xfb)]=_0x16a20c,this['_permissionService']=_0x20d878;}[_0x3d6a72(0x252)](){const _0x3bcc14=_0x3d6a72;return this[_0x3bcc14(0x222)];}[_0x3d6a72(0x1a4)](){const _0x1a78cb=_0x3d6a72;return this[_0x1a78cb(0x222)][_0x1a78cb(0x1c3)]();}[_0x3d6a72(0x122)](){const _0x18c4e8=_0x3d6a72;return new at(this['getId'](),this['_commandService'],this[_0x18c4e8(0x1d9)]);}['save'](){const _0x145c59=_0x3d6a72;return this[_0x145c59(0x156)][_0x145c59(0x1e3)](this[_0x145c59(0x1a4)]())??_0x5a0797[_0x145c59(0x166)](this['_base'][_0x145c59(0xf2)]());}[_0x3d6a72(0x160)](){const _0x109ba2=_0x3d6a72;return this[_0x109ba2(0x222)]['getSnapshot']()['name'];}[_0x3d6a72(0x10a)](_0x40ba3a){const _0x3b9cc1=_0x3d6a72;this[_0x3b9cc1(0xfb)][_0x3b9cc1(0x196)](_0x2773d9['id'],{'unitId':this[_0x3b9cc1(0x1a4)](),'name':_0x40ba3a});}['getTables'](){const _0x1614bc=_0x3d6a72;let _0x14140f=this[_0x1614bc(0x222)][_0x1614bc(0xf2)]();return _0x14140f[_0x1614bc(0x112)][_0x1614bc(0x126)](_0x84e24d=>_0x14140f['tables'][_0x84e24d])['filter'](_0x4b47b1=>_0x4b47b1)['map'](_0x323484=>this[_0x1614bc(0x202)][_0x1614bc(0x16d)](Z,this,_0x323484['id'],this[_0x1614bc(0x202)]));}[_0x3d6a72(0x13e)](_0x1dfac2){const _0x2eb4df=_0x3d6a72;let _0x482c65=this[_0x2eb4df(0x222)][_0x2eb4df(0xf2)]()[_0x2eb4df(0x181)][_0x1dfac2];return _0x482c65?this[_0x2eb4df(0x202)][_0x2eb4df(0x16d)](Z,this,_0x482c65['id'],this[_0x2eb4df(0x202)]):null;}[_0x3d6a72(0x232)](_0x200d32){const _0x4683e5=_0x3d6a72;let _0xc00357=this[_0x4683e5(0x222)][_0x4683e5(0xf2)](),_0x3e7d83=Object[_0x4683e5(0x132)](_0xc00357['tables'])[_0x4683e5(0x1fc)](_0x55863c=>_0x55863c[_0x4683e5(0x192)]===_0x200d32);return _0x3e7d83?this[_0x4683e5(0x202)][_0x4683e5(0x16d)](Z,this,_0x3e7d83['id'],this['_injector']):null;}[_0x3d6a72(0x1f9)](_0x103ac3,_0x20bd2a){const _0x5d9c6e=_0x3d6a72;let _0x2a79c9=_0x23812b({'id':_0x36bb57(),'name':_0x103ac3,..._0x20bd2a==null?void 0x0:_0x20bd2a[_0x5d9c6e(0x208)],'primaryFieldName':_0x20bd2a==null?void 0x0:_0x20bd2a['primaryFieldName']}),_0x4c43a9=_0x5a0797[_0x5d9c6e(0x16f)](_0x2a79c9,(_0x20bd2a==null?void 0x0:_0x20bd2a['table'])??{}),_0xc47a50=_0x2ec702(this[_0x5d9c6e(0x222)][_0x5d9c6e(0xf2)](),_0x4c43a9[_0x5d9c6e(0x192)]);if(!_0xc47a50[_0x5d9c6e(0x1a7)])throw Error(_0x5d9c6e(0x1df)+_0x4c43a9['name']+_0x5d9c6e(0x1fb)+_0x3e3c4c+'\x20'+_0xc47a50[_0x5d9c6e(0x1d7)]);if(!this['_commandService'][_0x5d9c6e(0x196)](_0x2cacea['id'],{'unitId':this['_base'][_0x5d9c6e(0x1c3)](),'table':_0x4c43a9,'index':_0x20bd2a==null?void 0x0:_0x20bd2a['index']}))throw Error(_0x5d9c6e(0x171)+_0x103ac3+'\x22.');return this[_0x5d9c6e(0x202)][_0x5d9c6e(0x16d)](Z,this,_0x4c43a9['id'],this[_0x5d9c6e(0x202)]);}[_0x3d6a72(0xe6)](_0x1064ad){const _0x3f3afd=_0x3d6a72;let _0x2cbd48=typeof _0x1064ad==_0x3f3afd(0x215)?_0x1064ad:_0x1064ad[_0x3f3afd(0x1a4)]();if(!this['_commandService'][_0x3f3afd(0x196)](_0x285f4f['id'],{'unitId':this[_0x3f3afd(0x222)]['getUnitId'](),'tableId':_0x2cbd48}))throw Error('Failed\x20to\x20delete\x20table\x20\x22'+_0x2cbd48+'\x22.');return!0x0;}[_0x3d6a72(0x103)](_0x451907,_0x402c3b){const _0x481c59=_0x3d6a72;let _0x436ee8=this[_0x481c59(0x222)][_0x481c59(0xf2)](),_0x3d0e83=typeof _0x451907=='string'?_0x451907:_0x451907[_0x481c59(0x1a4)](),_0x23e51a=_0x436ee8[_0x481c59(0x181)][_0x3d0e83];if(!_0x23e51a)throw Error(_0x481c59(0x12f)+_0x3d0e83+'\x22\x20does\x20not\x20exist.');let _0x87c22a=_0x436ee8[_0x481c59(0x112)][_0x481c59(0x243)](_0x3d0e83)+0x1,_0x5a6cf3=_0x36bb57(),_0x5aa792=_0xfc4203(_0x23e51a,{'id':_0x5a6cf3,'name':_0x3c9d46(_0x436ee8,_0x23e51a['name']+_0x481c59(0x1a5)),'includeRecords':(_0x402c3b==null?void 0x0:_0x402c3b[_0x481c59(0x1cb)])??!0x1,'regenerateViewIds':(_0x402c3b==null?void 0x0:_0x402c3b[_0x481c59(0x1ff)])??!0x1});if(!this['_commandService'][_0x481c59(0x196)](_0x2cacea['id'],{'unitId':this[_0x481c59(0x222)][_0x481c59(0x1c3)](),'table':_0x5aa792,'index':_0x87c22a}))throw Error(_0x481c59(0x1db)+_0x3d0e83+'\x22.');return this[_0x481c59(0x202)][_0x481c59(0x16d)](Z,this,_0x5aa792['id'],this['_injector']);}[_0x3d6a72(0x113)](){const _0x43e84b=_0x3d6a72;let _0x2237bf=this['_base']['getSnapshot']();return{'id':_0x2237bf['id'],'name':_0x2237bf[_0x43e84b(0x192)],'tables':this[_0x43e84b(0xee)]()['map'](_0x29e67b=>_0x29e67b[_0x43e84b(0x113)]())};}};Q=z([R(0x1,_0x19109f(_0x46f364)),R(0x2,_0x440b91),R(0x3,_0xbdcdaa),R(0x4,_0x2f2b52)],Q);var Et=class extends _0x4e8405{[_0x3d6a72(0x20b)](){const _0x46a430=_0x3d6a72;this['_initBaseBeforeEvents'](),this[_0x46a430(0xff)]();}[_0x3d6a72(0x1ac)](_0x2f7e9c={},_0x453fd4){const _0x496dfd=_0x3d6a72;let _0x18e18f=this[_0x496dfd(0x16a)][_0x496dfd(0x1fe)](_0x5586fc['UNIVER_BASE'],_0x2f7e9c,_0x453fd4);return this[_0x496dfd(0x202)]['createInstance'](Q,_0x18e18f);}[_0x3d6a72(0x1cc)](){const _0x572a9b=_0x3d6a72;let _0x194055=this[_0x572a9b(0x16a)]['getCurrentUnitOfType'](_0x5586fc[_0x572a9b(0x205)]);return _0x194055?this['_injector'][_0x572a9b(0x16d)](Q,_0x194055):null;}[_0x3d6a72(0x252)](_0x148e35){const _0xa57797=_0x3d6a72;let _0x514433=this['_univerInstanceService'][_0xa57797(0x1f3)](_0x148e35,_0x5586fc[_0xa57797(0x205)]);return _0x514433?this['_injector'][_0xa57797(0x16d)](Q,_0x514433):null;}['getBases'](){const _0x2efc8a=_0x3d6a72;return this[_0x2efc8a(0x16a)]['getAllUnitsForType'](_0x5586fc[_0x2efc8a(0x205)])[_0x2efc8a(0x126)](_0x1a4473=>this[_0x2efc8a(0x202)]['createInstance'](Q,_0x1a4473));}[_0x3d6a72(0xff)](){const _0x1af152=_0x3d6a72;this[_0x1af152(0x203)](this[_0x1af152(0x1c2)](this[_0x1af152(0x220)]['BaseHierarchyChanged'],()=>this['_commandService'][_0x1af152(0x1f1)]((_0x584376,_0x12c12d)=>{const _0x28d6d0=_0x1af152;var _0x216f94;if(!$(_0x584376,_0x415ce8))return;let _0x271315=_0x584376[_0x28d6d0(0x206)];if(!((_0x216f94=_0x271315[_0x28d6d0(0x1dd)])!=null&&_0x216f94[_0x28d6d0(0x1c6)]))return;let _0x1c5d6c=this['getBase'](_0x271315[_0x28d6d0(0xf1)]),_0x5bd054=_0x1c5d6c==null?void 0x0:_0x1c5d6c[_0x28d6d0(0x13e)](_0x271315[_0x28d6d0(0x1dd)][0x0][_0x28d6d0(0x13a)]);if(!_0x1c5d6c||!_0x5bd054)return;let _0x2e8881={'base':_0x1c5d6c,'table':_0x5bd054,'changes':_0x271315[_0x28d6d0(0x1dd)],'source':_0x12c12d!=null&&_0x12c12d[_0x28d6d0(0x1ce)]?_0x163008[_0x28d6d0(0x218)]:_0x271315[_0x28d6d0(0x121)]??_0x163008['UI']};this[_0x28d6d0(0x237)](this['Event'][_0x28d6d0(0x1a9)],_0x2e8881);}))),this[_0x1af152(0x203)](this['registerEventHandler'](this['Event'][_0x1af152(0x1b0)],()=>this['_commandService'][_0x1af152(0x1f1)](_0xbf7667=>{const _0x3c10b3=_0x1af152;if(_0xbf7667['id']!==_0x2cacea['id'])return;let {unitId:_0x2304d8,table:_0x159a1a,index:_0x2df87d}=_0xbf7667['params'],_0x5f12fe=this[_0x3c10b3(0x252)](_0x2304d8);if(!_0x5f12fe)return;let _0x5d6378={'base':_0x5f12fe,'table':_0x159a1a,'index':_0x2df87d};this[_0x3c10b3(0x237)](this['Event'][_0x3c10b3(0x1b0)],_0x5d6378);}))),this[_0x1af152(0x203)](this[_0x1af152(0x1c2)](this[_0x1af152(0x220)][_0x1af152(0x176)],()=>this['_commandService'][_0x1af152(0x1f1)](_0x2d32a1=>{const _0x54759c=_0x1af152;if(_0x2d32a1['id']!==_0x45cbde['id'])return;let {unitId:_0x18785e,tableId:_0x57eed8,field:_0x322e38,index:_0x490de0,viewIndexes:_0x5eafdb}=_0x2d32a1[_0x54759c(0x206)],_0x7b62e3=this[_0x54759c(0x252)](_0x18785e);if(!_0x7b62e3)return;let _0x413662=_0x7b62e3[_0x54759c(0x13e)](_0x57eed8);if(!_0x413662)return;let _0xece484={'base':_0x7b62e3,'table':_0x413662,'field':_0x322e38,'index':_0x490de0,'viewIndexes':_0x5eafdb};this['fireEvent'](this[_0x54759c(0x220)][_0x54759c(0x176)],_0xece484);}))),this[_0x1af152(0x203)](this[_0x1af152(0x1c2)](this[_0x1af152(0x220)][_0x1af152(0x193)],()=>this[_0x1af152(0xfb)]['onCommandExecuted'](_0x34f9f6=>{const _0x3e035a=_0x1af152;if(_0x34f9f6['id']!==_0x3d3295['id']&&_0x34f9f6['id']!==_0x5c549e['id'])return;let _0x12cbb0=_0x34f9f6[_0x3e035a(0x206)],{unitId:_0x3d40ba,tableId:_0x32b78e}=_0x12cbb0,_0x45cc37=_0x12cbb0[_0x3e035a(0x145)]??[_0x12cbb0[_0x3e035a(0x107)]],_0x29b643=this[_0x3e035a(0x252)](_0x3d40ba);if(!_0x29b643)return;let _0x40854c=_0x29b643[_0x3e035a(0x13e)](_0x32b78e);if(!_0x40854c)return;let _0x2b287c={'base':_0x29b643,'table':_0x40854c,'records':_0x45cc37};this[_0x3e035a(0x237)](this[_0x3e035a(0x220)][_0x3e035a(0x193)],_0x2b287c);}))),this[_0x1af152(0x203)](this[_0x1af152(0x1c2)](this[_0x1af152(0x220)][_0x1af152(0x13c)],()=>this[_0x1af152(0xfb)][_0x1af152(0x1f1)](_0x11206c=>{const _0x2cb080=_0x1af152;if(_0x11206c['id']!==_0x1a4d71['id'])return;let {unitId:_0x266748,tableId:_0x3ee79d,view:_0x594e36,index:_0x473d30}=_0x11206c[_0x2cb080(0x206)],_0x4ac66b=this['getBase'](_0x266748);if(!_0x4ac66b)return;let _0x1b2217=_0x4ac66b[_0x2cb080(0x13e)](_0x3ee79d);if(!_0x1b2217)return;let _0x5268d8={'base':_0x4ac66b,'table':_0x1b2217,'view':_0x594e36,'index':_0x473d30};this[_0x2cb080(0x237)](this[_0x2cb080(0x220)][_0x2cb080(0x13c)],_0x5268d8);}))),this['disposeWithMe'](this[_0x1af152(0x1c2)](this['Event'][_0x1af152(0x12d)],()=>this[_0x1af152(0xfb)][_0x1af152(0x1f1)](_0x5ead59=>{const _0x3b244f=_0x1af152;if(_0x5ead59['id']!==_0x2a154d['id'])return;let {unitId:_0x57af50,tableId:_0x4d693c,recordId:_0x5e5a4f,fieldId:_0x44a780,value:_0x3de6d9}=_0x5ead59[_0x3b244f(0x206)],_0x3a7d5a=this[_0x3b244f(0x252)](_0x57af50);if(!_0x3a7d5a)return;let _0x2f411e=_0x3a7d5a['getTableById'](_0x4d693c);if(!_0x2f411e)return;let _0x3339d4=_0x2f411e[_0x3b244f(0x168)](_0x44a780);if(!_0x3339d4)return;let _0x29664c=_0x2f411e['getRecordById'](_0x5e5a4f);if(!_0x29664c)return;let _0x254290={'base':_0x3a7d5a,'table':_0x2f411e,'field':_0x3339d4,'record':_0x29664c,'value':_0x3de6d9};this[_0x3b244f(0x237)](this[_0x3b244f(0x220)]['BaseTableCellValueChanged'],_0x254290);})));}[_0x3d6a72(0x1e7)](){const _0x579221=_0x3d6a72;this[_0x579221(0x203)](this[_0x579221(0x1c2)](this[_0x579221(0x220)][_0x579221(0x170)],()=>this[_0x579221(0xfb)][_0x579221(0x16b)](_0x5a424b=>{const _0x1c14f8=_0x579221;if($(_0x5a424b,_0x8c2f3f)){let {unitId:_0x11ac0b,tableId:_0x3c4f0d,patches:_0x324ea6,source:_0x1739c4=_0x163008['UI']}=_0x5a424b[_0x1c14f8(0x206)],_0x2c1b3a=this[_0x1c14f8(0x247)](_0x11ac0b,_0x3c4f0d);if(!_0x2c1b3a)return;this[_0x1c14f8(0x1b8)](_0x2c1b3a[_0x1c14f8(0x229)],_0x2c1b3a[_0x1c14f8(0x208)],_0x135494(_0x2c1b3a[_0x1c14f8(0x208)][_0x1c14f8(0x162)](),_0x324ea6),_0x1739c4);return;}if($(_0x5a424b,_0x2081b9)){let {unitId:_0x27f7f2,tableId:_0x3c003e,patches:_0x5c5b3e,source:_0x25d674=_0x163008['UI']}=_0x5a424b[_0x1c14f8(0x206)],_0x5e3f03=this[_0x1c14f8(0x247)](_0x27f7f2,_0x3c003e);if(!_0x5e3f03)return;let _0x8b112c=_0x5e3f03['table'][_0x1c14f8(0x162)]();this[_0x1c14f8(0x1b8)](_0x5e3f03[_0x1c14f8(0x229)],_0x5e3f03[_0x1c14f8(0x208)],_0x135494(_0x8b112c,_0x474022(_0x8b112c,_0x5c5b3e)),_0x25d674);return;}if($(_0x5a424b,_0x3d3295)){let _0x1f7201=_0x5a424b[_0x1c14f8(0x206)],_0x4b0bed=this[_0x1c14f8(0x247)](_0x1f7201['unitId'],_0x1f7201['tableId']);if(!_0x4b0bed)return;this['_fireBeforeHierarchyChange'](_0x4b0bed[_0x1c14f8(0x229)],_0x4b0bed['table'],_0x1e45f5(_0x4b0bed[_0x1c14f8(0x208)]['getTable'](),[_0x1f7201[_0x1c14f8(0x107)]]),_0x1f7201[_0x1c14f8(0x121)]??_0x163008['UI']);return;}if($(_0x5a424b,_0x5c549e)){let _0x175dc7=_0x5a424b['params'],_0x46e4fc=this[_0x1c14f8(0x247)](_0x175dc7[_0x1c14f8(0xf1)],_0x175dc7[_0x1c14f8(0x13a)]);if(!_0x46e4fc)return;this[_0x1c14f8(0x1b8)](_0x46e4fc[_0x1c14f8(0x229)],_0x46e4fc[_0x1c14f8(0x208)],_0x1e45f5(_0x46e4fc[_0x1c14f8(0x208)][_0x1c14f8(0x162)](),_0x175dc7[_0x1c14f8(0x145)]),_0x175dc7[_0x1c14f8(0x121)]??_0x163008['UI']);return;}if($(_0x5a424b,_0x32aeff)){let _0x3f556f=_0x5a424b[_0x1c14f8(0x206)],_0x2e30ba=this[_0x1c14f8(0x247)](_0x3f556f[_0x1c14f8(0xf1)],_0x3f556f['tableId']);if(!_0x2e30ba)return;this[_0x1c14f8(0x1b8)](_0x2e30ba[_0x1c14f8(0x229)],_0x2e30ba[_0x1c14f8(0x208)],_0x1e45f5(_0x2e30ba[_0x1c14f8(0x208)][_0x1c14f8(0x162)](),[_0x3f556f[_0x1c14f8(0x107)]]),_0x3f556f[_0x1c14f8(0x121)]??_0x163008['UI']);return;}if($(_0x5a424b,_0x150f6)){let _0x1b1de1=_0x5a424b[_0x1c14f8(0x206)],_0x40174f=this['_getHierarchyEventContext'](_0x1b1de1['unitId'],_0x1b1de1[_0x1c14f8(0x13a)]);if(!_0x40174f)return;let _0x35eee1=_0x40174f[_0x1c14f8(0x208)][_0x1c14f8(0x162)](),_0x21ade7=_0x1b1de1[_0x1c14f8(0x238)]??_0x4afdff(_0x35eee1),_0x25da79=_0x54315c(_0x35eee1,_0x21ade7)[_0x1c14f8(0x197)][_0x1c14f8(0x17f)](_0x1b1de1[_0x1c14f8(0x158)])??null;this[_0x1c14f8(0x1b8)](_0x40174f[_0x1c14f8(0x229)],_0x40174f['table'],[{'tableId':_0x1b1de1['tableId'],'fieldId':_0x21ade7,'recordId':_0x1b1de1['recordId'],'oldParentRecordId':_0x25da79,'parentRecordId':_0x1b1de1[_0x1c14f8(0x20f)]}],_0x1b1de1[_0x1c14f8(0x121)]??_0x163008['UI']);return;}if($(_0x5a424b,_0x139a37)){let _0x4882c0=_0x5a424b['params'],_0x48857d=this[_0x1c14f8(0x247)](_0x4882c0['unitId'],_0x4882c0[_0x1c14f8(0x13a)]);if(!_0x48857d)return;let _0x1281ef=_0x4882c0[_0x1c14f8(0x238)]??_0x4afdff(_0x48857d[_0x1c14f8(0x208)][_0x1c14f8(0x162)]());this['_fireBeforeHierarchyChange'](_0x48857d[_0x1c14f8(0x229)],_0x48857d[_0x1c14f8(0x208)],[{'tableId':_0x4882c0['tableId'],'fieldId':_0x1281ef,'recordId':_0x4882c0[_0x1c14f8(0x107)]['id'],'oldParentRecordId':null,'parentRecordId':_0x4882c0['parentRecordId']}],_0x4882c0['source']??_0x163008['UI']);return;}if($(_0x5a424b,_0x58ff18)){let _0x4fb309=_0x5a424b[_0x1c14f8(0x206)],_0x5eeebd=this[_0x1c14f8(0x247)](_0x4fb309[_0x1c14f8(0xf1)],_0x4fb309['tableId']);if(!_0x5eeebd)return;this[_0x1c14f8(0x1b8)](_0x5eeebd['base'],_0x5eeebd[_0x1c14f8(0x208)],_0x3bdd64(_0x5eeebd[_0x1c14f8(0x208)][_0x1c14f8(0x162)](),[_0x4fb309[_0x1c14f8(0x158)]]),_0x4fb309[_0x1c14f8(0x121)]??_0x163008['UI']);return;}if($(_0x5a424b,_0x3b6e46)){let _0x58d135=_0x5a424b[_0x1c14f8(0x206)],_0x1747d2=this[_0x1c14f8(0x247)](_0x58d135[_0x1c14f8(0xf1)],_0x58d135[_0x1c14f8(0x13a)]);if(!_0x1747d2)return;this[_0x1c14f8(0x1b8)](_0x1747d2[_0x1c14f8(0x229)],_0x1747d2[_0x1c14f8(0x208)],_0x3bdd64(_0x1747d2[_0x1c14f8(0x208)][_0x1c14f8(0x162)](),_0x58d135[_0x1c14f8(0x184)]),_0x58d135[_0x1c14f8(0x121)]??_0x163008['UI']);return;}if(!$(_0x5a424b,_0x2a154d))return;let _0x9437d5=_0x5a424b[_0x1c14f8(0x206)],_0x1225bf=this[_0x1c14f8(0x247)](_0x9437d5[_0x1c14f8(0xf1)],_0x9437d5[_0x1c14f8(0x13a)]);if(!_0x1225bf)return;let _0x50bd1e=_0x1225bf[_0x1c14f8(0x208)][_0x1c14f8(0x162)]();if(!_0x3761d8(_0x50bd1e)[_0x1c14f8(0xf0)](_0x9437d5[_0x1c14f8(0x238)]))return;let _0x4905e4=_0x54315c(_0x50bd1e,_0x9437d5['fieldId'])[_0x1c14f8(0x197)][_0x1c14f8(0x17f)](_0x9437d5[_0x1c14f8(0x158)])??null,_0x3de65a=_0x378c06(_0x9437d5['value'])[0x0]??null;_0x4905e4!==_0x3de65a&&this[_0x1c14f8(0x1b8)](_0x1225bf['base'],_0x1225bf['table'],[{'tableId':_0x9437d5[_0x1c14f8(0x13a)],'fieldId':_0x9437d5[_0x1c14f8(0x238)],'recordId':_0x9437d5['recordId'],'oldParentRecordId':_0x4905e4,'parentRecordId':_0x3de65a}],_0x9437d5[_0x1c14f8(0x121)]??_0x163008['UI']);}))),this[_0x579221(0x203)](this[_0x579221(0x1c2)](this['Event'][_0x579221(0x116)],()=>this[_0x579221(0xfb)][_0x579221(0x16b)](_0x693fe9=>{const _0x2c9619=_0x579221;if(_0x693fe9['id']!==_0x2cacea['id'])return;let {unitId:_0x3302d0,table:_0x4ff854,index:_0x479f18}=_0x693fe9[_0x2c9619(0x206)],_0x50f835=this['getBase'](_0x3302d0);if(!_0x50f835)return;let _0x1a10a0={'base':_0x50f835,'table':_0x4ff854,'index':_0x479f18};if(this['fireEvent'](this[_0x2c9619(0x220)][_0x2c9619(0x116)],_0x1a10a0),_0x1a10a0[_0x2c9619(0x15d)])throw new _0x5277c5();}))),this[_0x579221(0x203)](this[_0x579221(0x1c2)](this[_0x579221(0x220)][_0x579221(0x234)],()=>this[_0x579221(0xfb)][_0x579221(0x16b)](_0x5c625d=>{const _0x4886cf=_0x579221;if(_0x5c625d['id']!==_0x45cbde['id'])return;let {unitId:_0x1eb07e,tableId:_0x101574,field:_0x64da64,index:_0x8a6702,viewIndexes:_0x549b3c}=_0x5c625d[_0x4886cf(0x206)],_0xf2be0e=this['getBase'](_0x1eb07e);if(!_0xf2be0e)return;let _0x28a796=_0xf2be0e[_0x4886cf(0x13e)](_0x101574);if(!_0x28a796)return;let _0x418c3c={'base':_0xf2be0e,'table':_0x28a796,'field':_0x64da64,'index':_0x8a6702,'viewIndexes':_0x549b3c};if(this[_0x4886cf(0x237)](this[_0x4886cf(0x220)][_0x4886cf(0x234)],_0x418c3c),_0x418c3c[_0x4886cf(0x15d)])throw new _0x5277c5();}))),this[_0x579221(0x203)](this[_0x579221(0x1c2)](this[_0x579221(0x220)][_0x579221(0x24d)],()=>this['_commandService'][_0x579221(0x16b)](_0x5198f2=>{const _0x569da1=_0x579221;if(_0x5198f2['id']!==_0x3d3295['id']&&_0x5198f2['id']!==_0x5c549e['id'])return;let _0x1edc1b=_0x5198f2[_0x569da1(0x206)],{unitId:_0x253ebd,tableId:_0x5c3caa}=_0x1edc1b,_0x326583=_0x1edc1b[_0x569da1(0x145)]??[_0x1edc1b[_0x569da1(0x107)]],_0x3071be=this[_0x569da1(0x252)](_0x253ebd);if(!_0x3071be)return;let _0x50d774=_0x3071be[_0x569da1(0x13e)](_0x5c3caa);if(!_0x50d774)return;let _0x3443e9={'base':_0x3071be,'table':_0x50d774,'records':_0x326583};if(this['fireEvent'](this[_0x569da1(0x220)][_0x569da1(0x24d)],_0x3443e9),_0x3443e9[_0x569da1(0x15d)])throw new _0x5277c5();}))),this[_0x579221(0x203)](this[_0x579221(0x1c2)](this[_0x579221(0x220)][_0x579221(0x1a3)],()=>this['_commandService'][_0x579221(0x16b)](_0x5677d0=>{const _0x12cc99=_0x579221;if(_0x5677d0['id']!==_0x1a4d71['id'])return;let {unitId:_0x578f68,tableId:_0x198d82,view:_0x585158,index:_0x1c2ff5}=_0x5677d0[_0x12cc99(0x206)],_0x5b7dc8=this[_0x12cc99(0x252)](_0x578f68);if(!_0x5b7dc8)return;let _0x1078b8=_0x5b7dc8['getTableById'](_0x198d82);if(!_0x1078b8)return;let _0x500e1f={'base':_0x5b7dc8,'table':_0x1078b8,'view':_0x585158,'index':_0x1c2ff5};if(this['fireEvent'](this[_0x12cc99(0x220)][_0x12cc99(0x1a3)],_0x500e1f),_0x500e1f[_0x12cc99(0x15d)])throw new _0x5277c5();}))),this[_0x579221(0x203)](this[_0x579221(0x1c2)](this[_0x579221(0x220)][_0x579221(0x22d)],()=>this[_0x579221(0xfb)][_0x579221(0x16b)](_0x59cac3=>{const _0x52e8a3=_0x579221;if(_0x59cac3['id']!==_0x2a154d['id'])return;let {unitId:_0x360a5f,tableId:_0x31b738,recordId:_0x400b3f,fieldId:_0x4de97a,value:_0x396dc9}=_0x59cac3[_0x52e8a3(0x206)],_0x35170c=this[_0x52e8a3(0x252)](_0x360a5f);if(!_0x35170c)return;let _0x33f159=_0x35170c[_0x52e8a3(0x13e)](_0x31b738);if(!_0x33f159)return;let _0x134306=_0x33f159['getFieldById'](_0x4de97a);if(!_0x134306)return;let _0x3deae5=_0x33f159[_0x52e8a3(0x178)](_0x400b3f);if(!_0x3deae5)return;let _0x4bdc46={'base':_0x35170c,'table':_0x33f159,'field':_0x134306,'record':_0x3deae5,'value':_0x396dc9};if(this['fireEvent'](this['Event']['BeforeBaseTableCellValueChange'],_0x4bdc46),_0x4bdc46[_0x52e8a3(0x15d)])throw new _0x5277c5();})));}['_getHierarchyEventContext'](_0x552b80,_0x4853fe){let _0x207264=this['getBase'](_0x552b80),_0x4e6ad8=_0x207264==null?void 0x0:_0x207264['getTableById'](_0x4853fe);return _0x207264&&_0x4e6ad8?{'base':_0x207264,'table':_0x4e6ad8}:null;}[_0x3d6a72(0x1b8)](_0x45bb9d,_0xe193c1,_0x2f5367,_0x3a34d1){const _0x57806c=_0x3d6a72;if(!_0x2f5367['length'])return;let _0xc060fd={'base':_0x45bb9d,'table':_0xe193c1,'changes':_0x2f5367,'source':_0x3a34d1};if(this[_0x57806c(0x237)](this[_0x57806c(0x220)][_0x57806c(0x170)],_0xc060fd),_0xc060fd[_0x57806c(0x15d)])throw new _0x5277c5();}};function $(_0x56c937,_0x1e0d36){const _0xbf6e09=_0x3d6a72;return _0x56c937['id']===_0x1e0d36['id']&&_0x56c937[_0xbf6e09(0x206)]!==void 0x0;}_0x4e8405[_0x3d6a72(0x217)](Et);var Dt=class extends _0x5354a2{get[_0x3d6a72(0x23f)](){return _0x4eacf9;}get[_0x3d6a72(0x24f)](){return _0x125131;}get[_0x3d6a72(0x225)](){return _0x5f3a4b;}get[_0x3d6a72(0x180)](){return ot;}get[_0x3d6a72(0x1f7)](){return _0x4ecc5e;}get['BaseConditionalColorTarget'](){return _0x4d7440;}get[_0x3d6a72(0x15c)](){return _0x11bed7;}get[_0x3d6a72(0x1b6)](){return _0x14002d;}get[_0x3d6a72(0x18f)](){return _0x40554e;}get['BaseEventSource'](){return _0x163008;}get[_0x3d6a72(0x144)](){return _0x4db856;}get[_0x3d6a72(0x20d)](){return _0x19551e;}get['BaseRecordLinkRole'](){return _0x5ca765;}};_0x5354a2[_0x3d6a72(0x217)](Dt);var Ot=class extends _0x553a6a{get[_0x3d6a72(0x1b0)](){return'BaseTableCreated';}get['BeforeBaseTableCreate'](){const _0x2d987b=_0x3d6a72;return _0x2d987b(0x116);}get[_0x3d6a72(0x176)](){const _0x32058b=_0x3d6a72;return _0x32058b(0x176);}get[_0x3d6a72(0x234)](){return'BeforeBaseTableFieldCreate';}get[_0x3d6a72(0x193)](){const _0x2fa1ff=_0x3d6a72;return _0x2fa1ff(0x193);}get[_0x3d6a72(0x24d)](){return'BeforeBaseTableRecordCreate';}get[_0x3d6a72(0x13c)](){const _0x53e9ff=_0x3d6a72;return _0x53e9ff(0x13c);}get['BeforeBaseTableViewCreate'](){const _0x23aec0=_0x3d6a72;return _0x23aec0(0x1a3);}get[_0x3d6a72(0x12d)](){return'BaseTableCellValueChanged';}get['BeforeBaseTableCellValueChange'](){const _0x41b798=_0x3d6a72;return _0x41b798(0x22d);}get[_0x3d6a72(0x1a9)](){const _0x8fae2f=_0x3d6a72;return _0x8fae2f(0x1a9);}get[_0x3d6a72(0x170)](){const _0x5deefd=_0x3d6a72;return _0x5deefd(0x170);}};_0x553a6a[_0x3d6a72(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 _0x16c455=_0x459a;(function(_0x38be99,_0x2e15c4){const _0x53268b=_0x459a,_0x121190=_0x38be99();while(!![]){try{const _0x28fa2d=parseInt(_0x53268b(0xbb))/0x1*(parseInt(_0x53268b(0xe6))/0x2)+-parseInt(_0x53268b(0x1be))/0x3*(-parseInt(_0x53268b(0x201))/0x4)+parseInt(_0x53268b(0x17f))/0x5*(parseInt(_0x53268b(0x1e8))/0x6)+-parseInt(_0x53268b(0x1ca))/0x7+-parseInt(_0x53268b(0x150))/0x8+parseInt(_0x53268b(0x17c))/0x9+-parseInt(_0x53268b(0x153))/0xa*(parseInt(_0x53268b(0x143))/0xb);if(_0x28fa2d===_0x2e15c4)break;else _0x121190['push'](_0x121190['shift']());}catch(_0xbc0fd0){_0x121190['push'](_0x121190['shift']());}}}(_0x501e,0x683ed));import{ApplyBaseJson1Mutation as _0x2ad321,BASE_TABLE_NAME_REQUIREMENTS as _0x229298,BaseConditionalColorRuleUpdateType as _0x14071a,BaseEventSource as _0x55bebd,BaseHierarchyErrorCode as _0x34d13a,BatchCreateBaseRecordsCommand as _0x3ad558,BatchDeleteBaseRecordsCommand as _0x4d8eab,ChangeBaseFieldTypeCommand as _0x3da607,CreateBaseChildRecordCommand as _0x2e5ba5,CreateBaseFieldCommand as _0x3de3f5,CreateBaseRecordCommand as _0x3392fe,CreateBaseTableCommand as _0x5c901d,CreateBaseViewCommand as _0x4a240d,DeleteBaseFieldCommand as _0x5ddbec,DeleteBaseRecordCommand as _0x2a07c2,DeleteBaseTableCommand as _0x971b27,DeleteBaseViewCommand as _0x548359,DuplicateBaseRecordCommand as _0x12761d,IBaseProjectionService as _0x499ad2,MoveBaseFieldCommand as _0x1d8b98,MoveBaseHierarchyRecordCommand as _0x1c837a,MoveBaseViewCommand as _0x3abd85,RenameBaseTableCommand as _0x3dc70f,RenameBaseViewCommand as _0x43a829,SetBaseNameCommand as _0x841eca,SetBasePermissionCommand as _0x276001,SetBasePermissionsCommand as _0x246d81,SetBaseRangeValuesCommand as _0x5ac327,SetBaseRecordValuesCommand as _0xe2fa79,SetBaseTableHierarchyFieldCommand as _0x331078,SetBaseViewFieldOrderCommand as _0x1a9899,SetBaseViewFieldVisibleCommand as _0x29d7b1,SetBaseViewFieldWidthCommand as _0x10caef,SetBaseViewFilterCommand as _0x537303,SetBaseViewGroupCommand as _0x4e34d1,SetBaseViewSortCommand as _0x2d2d2c,UpdateBaseCellCommand as _0x56896a,UpdateBaseFieldCommand as _0x51b342,UpdateBaseRecordOrderCommand as _0x14f095,UpdateBaseViewConditionalColorRulesCommand as _0x445422,UpdateBaseViewConfigCommand as _0x5996eb,ValidateBaseFormulaCommand as _0x5cd29d,buildBaseHierarchyIndex as _0x1a3563,canEditBaseTargets as _0x588025,copyBaseTableSnapshot as _0x35aced,createUniqueBaseTableName as _0x9242a1,ensureBaseTableCellLayout as _0x5d9764,getActiveBaseHierarchyFieldIds as _0x33c8d6,getBaseCellValue as _0x5686ac,getBaseFieldPermissionObjectId as _0x58d304,getBaseFormulaTableName as _0x334dca,getBaseHierarchyDeletePromotions as _0xf2e815,getBasePermissionValue as _0x14f175,getBaseRecordPermissionObjectId as _0xa951c,getBaseTablePermissionObjectId as _0x178fd1,getBaseViewPermissionObjectId as _0x53e240,getRecordLinkFieldConfig as _0x15bd67,matchesBaseCondition as _0x1c8da0,parseRecordLinkIds as _0x335852,resolveBaseHierarchyFieldId as _0x4e6087,resolveBaseRangeHierarchyPatches as _0x5f2520,searchBaseTable as _0x3ed99e,serializeRecordLinkIds as _0x392c5e,validateBaseHierarchyRecordCreations as _0x21de02,validateBaseHierarchyRecordPatches as _0x25cefd,validateBaseTableName as _0x2628b6,validateRecordLinkValue as _0x2e4386}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x45a674,BaseConditionalColorOperator as _0x16f428,BaseConditionalColorTarget as _0x58b6cb,BaseConditionalDateMode as _0x1ee14c,BaseFieldType as _0x5c585e,BaseFilterConjunction as _0xf11f7f,BaseFilterOperator as _0x48d24a,BaseHierarchyInvalidReason as _0x59ccb4,BaseRecordLinkRole as _0x135176,BaseSortDirection as _0x1fbd79,BaseViewType as _0x1eb8c0,CanceledError as _0x3a850a,ICommandService as _0x18d666,IPermissionService as _0x5e35b8,IResourceLoaderService as _0x4e24c1,ImageSourceType as _0x354b72,Inject as _0x210e70,Injector as _0x291a51,Tools as _0x49e7b0,UniverInstanceType as _0x251beb,createDefaultBaseTableSnapshot as _0x440368,generateRandomId as _0x2fbf07}from'@univerjs/core';import*as _0x287fc3 from'@univerjs/core/facade';import{FBaseInitialable as _0x36d8f1,FEnum as _0x2fc644,FEventName as _0x35d271,FUniver as _0x292e04}from'@univerjs/core/facade';import{UnitAction as _0x538ba4}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x3fc287}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x3e7695,_0xa228c,_0xc1aac9){const _0x2f49a6=_0x459a;this[_0x2f49a6(0x197)]=_0x3e7695,this[_0x2f49a6(0x106)]=_0xa228c,this[_0x2f49a6(0x1a4)]=_0xc1aac9;}async[_0x16c455(0x133)](_0x4fe634){const _0x4602f9=_0x16c455;return this['_commandService'][_0x4602f9(0xf7)](_0x246d81['id'],{'unitId':this[_0x4602f9(0x197)],'changes':_0x4fe634});}async[_0x16c455(0x1fc)](_0x11fd23,_0x48d972){const _0x334a40=_0x16c455;await this[_0x334a40(0x106)]['executeCommand'](_0x276001['id'],{'unitId':this[_0x334a40(0x197)],'objectId':this[_0x334a40(0x197)],'action':_0x11fd23,'value':_0x48d972});}['getPoint'](_0x5d476b){const _0x531b1e=_0x16c455;return _0x14f175(this[_0x531b1e(0x1a4)],this[_0x531b1e(0x197)],this[_0x531b1e(0x197)],_0x5d476b);}async[_0x16c455(0x194)](_0x35a61f=!0x0){const _0x594daf=_0x16c455;await this[_0x594daf(0x106)]['executeCommand'](_0x276001['id'],{'unitId':this[_0x594daf(0x197)],'objectId':this[_0x594daf(0x197)],'action':_0x538ba4['Edit'],'value':_0x35a61f});}async[_0x16c455(0x19c)](){const _0x210bc9=_0x16c455;await this[_0x210bc9(0x106)][_0x210bc9(0xf7)](_0x276001['id'],{'unitId':this[_0x210bc9(0x197)],'objectId':this[_0x210bc9(0x197)],'action':_0x538ba4['Edit'],'value':!0x1});}['canEdit'](){const _0x34e53d=_0x16c455;return _0x14f175(this[_0x34e53d(0x1a4)],this[_0x34e53d(0x197)],this[_0x34e53d(0x197)],_0x538ba4[_0x34e53d(0xe7)]);}},L=class{constructor(_0x390513,_0x181c14,_0x29dd6e,_0x5e33ef,_0x1e3aac){const _0x316e79=_0x16c455;this['_unitId']=_0x390513,this[_0x316e79(0x1ed)]=_0x181c14,this[_0x316e79(0x151)]=_0x29dd6e,this['_commandService']=_0x5e33ef,this['_permissionService']=_0x1e3aac;}async['setEditable'](_0x3f9178=!0x0){const _0x263543=_0x16c455;await this['_commandService'][_0x263543(0xf7)](_0x276001['id'],{'unitId':this[_0x263543(0x197)],'objectId':this['_objectId'],'action':_0x538ba4[_0x263543(0xe7)],'value':_0x3f9178});}async['setReadOnly'](){const _0x227171=_0x16c455;await this[_0x227171(0x106)]['executeCommand'](_0x276001['id'],{'unitId':this['_unitId'],'objectId':this['_objectId'],'action':_0x538ba4[_0x227171(0xe7)],'value':!0x1});}[_0x16c455(0xb8)](){const _0x418ee2=_0x16c455;return _0x588025(this['_permissionService'],this[_0x418ee2(0x197)],[...this[_0x418ee2(0x151)],this[_0x418ee2(0x1ed)]]);}};function R(_0x4a0414,_0x11de5d){return function(_0xac3766,_0x49feaf){_0x11de5d(_0xac3766,_0x49feaf,_0x4a0414);};}function z(_0x33bd65,_0x531777,_0x1871aa,_0x590a7d){const _0x60ada2=_0x16c455;var _0x130c9e=arguments[_0x60ada2(0x166)],_0x1c6076=_0x130c9e<0x3?_0x531777:_0x590a7d===null?_0x590a7d=Object[_0x60ada2(0x1fa)](_0x531777,_0x1871aa):_0x590a7d,_0x518a2e;if(typeof Reflect==_0x60ada2(0xb9)&&typeof Reflect['decorate']==_0x60ada2(0x1d1))_0x1c6076=Reflect['decorate'](_0x33bd65,_0x531777,_0x1871aa,_0x590a7d);else{for(var _0x2e5228=_0x33bd65['length']-0x1;_0x2e5228>=0x0;_0x2e5228--)(_0x518a2e=_0x33bd65[_0x2e5228])&&(_0x1c6076=(_0x130c9e<0x3?_0x518a2e(_0x1c6076):_0x130c9e>0x3?_0x518a2e(_0x531777,_0x1871aa,_0x1c6076):_0x518a2e(_0x531777,_0x1871aa))||_0x1c6076);}return _0x130c9e>0x3&&_0x1c6076&&Object['defineProperty'](_0x531777,_0x1871aa,_0x1c6076),_0x1c6076;}let B=class{constructor(_0x275c79,_0x101545,_0x49e2db,_0x493969,_0x5abb76){const _0x98a9c2=_0x16c455;this[_0x98a9c2(0xf4)]=_0x275c79,this[_0x98a9c2(0x140)]=_0x101545,this[_0x98a9c2(0x149)]=_0x49e2db,this[_0x98a9c2(0x106)]=_0x493969,this[_0x98a9c2(0x1a4)]=_0x5abb76;}[_0x16c455(0x207)](){const _0x20512a=_0x16c455;return this[_0x20512a(0x149)];}[_0x16c455(0x1d9)](){const _0x26be0a=_0x16c455;let _0x3ef35e=this[_0x26be0a(0x140)]['getId']();return new L(this[_0x26be0a(0xf4)][_0x26be0a(0x207)](),_0x58d304(_0x3ef35e,this['_fieldId']),[_0x178fd1(_0x3ef35e)],this[_0x26be0a(0x106)],this[_0x26be0a(0x1a4)]);}['getField'](){const _0x597e14=_0x16c455;return this[_0x597e14(0xe5)]();}['getName'](){const _0x24a708=_0x16c455;return this['_getField']()[_0x24a708(0x103)];}['getType'](){const _0x2120a4=_0x16c455;return this['_getField']()[_0x2120a4(0x14d)];}['getConfig'](){const _0x4f4547=_0x16c455;return this[_0x4f4547(0xe5)]()[_0x4f4547(0x1f3)];}[_0x16c455(0x1cd)](){const _0x83f587=_0x16c455;return this[_0x83f587(0xe5)]()[_0x83f587(0x16a)];}[_0x16c455(0x1e9)](){const _0x342a9b=_0x16c455;return this[_0x342a9b(0xe5)]()['description'];}[_0x16c455(0xc9)](){const _0x55564a=_0x16c455;return!!this['_getField']()[_0x55564a(0xa2)];}[_0x16c455(0xf1)](_0x17d3b8){const _0x5c713b=_0x16c455;return this[_0x5c713b(0x1f0)]({'name':_0x17d3b8});}[_0x16c455(0x1a3)](_0x2a686a,_0x475d55){const _0x580841=_0x16c455;return this[_0x580841(0x1f0)]({'config':_0x2a686a},_0x475d55);}[_0x16c455(0x1a6)](_0x3e8018){const _0x5d6d24=_0x16c455;return this[_0x5d6d24(0x1f0)]({'defaultValue':_0x3e8018});}['update'](_0x248e24,_0x5e90e7){const _0x4bee29=_0x16c455;let _0x1541c7=this[_0x4bee29(0xe5)]()[_0x4bee29(0x14d)];return(_0x248e24['type']??_0x1541c7)===_0x5c585e[_0x4bee29(0x1d2)]&&(Object[_0x4bee29(0xcb)]['hasOwnProperty'][_0x4bee29(0x136)](_0x248e24,_0x4bee29(0x1f3))||_0x248e24[_0x4bee29(0x14d)]===_0x5c585e['Formula'])&&!this[_0x4bee29(0x16b)](_0x5e90e7)?!0x1:this[_0x4bee29(0x106)][_0x4bee29(0x178)](_0x51b342['id'],{'unitId':this['_base'][_0x4bee29(0x207)](),'tableId':this[_0x4bee29(0x140)][_0x4bee29(0x207)](),'fieldId':this[_0x4bee29(0x149)],'patch':_0x248e24});}[_0x16c455(0x1e2)](_0x4f4c0c,_0x42ef2a={},_0x39d81a){const _0x26b1d7=_0x16c455;return _0x4f4c0c===_0x5c585e[_0x26b1d7(0x1d2)]&&!this['_writeFormulaExternalReferences'](_0x39d81a)?!0x1:this['_commandService']['syncExecuteCommand'](_0x3da607['id'],{'unitId':this[_0x26b1d7(0xf4)][_0x26b1d7(0x207)](),'tableId':this[_0x26b1d7(0x140)][_0x26b1d7(0x207)](),'fieldId':this[_0x26b1d7(0x149)],'input':{'type':_0x4f4c0c,'config':_0x42ef2a}});}[_0x16c455(0xcd)](){const _0x3e72f7=_0x16c455;return this[_0x3e72f7(0x106)]['syncExecuteCommand'](_0x5ddbec['id'],{'unitId':this[_0x3e72f7(0xf4)][_0x3e72f7(0x207)](),'tableId':this[_0x3e72f7(0x140)][_0x3e72f7(0x207)](),'fieldId':this[_0x3e72f7(0x149)]});}[_0x16c455(0x19b)](_0x9ac885){const _0x2abcfe=_0x16c455;return this[_0x2abcfe(0x106)][_0x2abcfe(0x178)](_0x1d8b98['id'],{'unitId':this[_0x2abcfe(0xf4)][_0x2abcfe(0x207)](),'tableId':this[_0x2abcfe(0x140)][_0x2abcfe(0x207)](),'fieldId':this['_fieldId'],'target':_0x9ac885});}[_0x16c455(0xe5)](){const _0x3c9a12=_0x16c455;let _0x530b39=this[_0x3c9a12(0x140)][_0x3c9a12(0x147)]()['fields'][this[_0x3c9a12(0x149)]];if(!_0x530b39)throw Error(_0x3c9a12(0xab)+this['_fieldId']+_0x3c9a12(0x1f6));return _0x530b39;}[_0x16c455(0x16b)](_0x1b36a2){const _0x391c8a=_0x16c455;if(!_0x1b36a2||!Array[_0x391c8a(0xea)](_0x1b36a2[_0x391c8a(0x130)]))return console[_0x391c8a(0xeb)](_0x391c8a(0x156)),!0x1;if(_0x1b36a2[_0x391c8a(0x130)][_0x391c8a(0x166)]===0x0)return!0x0;let _0x80a902=this[_0x391c8a(0x106)]['syncExecuteCommand'](_0x3fc287['id'],{'unitId':this[_0x391c8a(0xf4)][_0x391c8a(0x207)](),'references':_0x1b36a2[_0x391c8a(0x130)]});return _0x80a902||console[_0x391c8a(0xeb)](_0x391c8a(0x122)),_0x80a902;}};B=z([R(0x3,_0x18d666),R(0x4,_0x5e35b8)],B);let ot=function(_0x51537b){const _0x282035=_0x16c455;return _0x51537b['Id']='id',_0x51537b[_0x282035(0xb3)]=_0x282035(0x103),_0x51537b[_0x282035(0xc5)]=_0x282035(0x1e5),_0x51537b;}({});function V(_0x32f5d3){const _0x50b549=_0x16c455;return!!(_0x32f5d3&&_0x32f5d3[_0x50b549(0x1bb)]!==!0x0&&_0x32f5d3[_0x50b549(0x14d)]!==_0x5c585e[_0x50b549(0x108)]);}function H(_0x317180,_0xc35f9,_0x292538='id'){const _0x2dc1e7=_0x16c455;if(!_0xc35f9)return{};let _0x3b1a59={};return Object[_0x2dc1e7(0x208)](_0xc35f9)[_0x2dc1e7(0xe2)](([_0x5b158d,_0x4c6255])=>{const _0x343d16=_0x2dc1e7;let _0x14c569=ct(_0x317180,_0x5b158d,_0x292538);_0x3b1a59[_0x14c569]=st(_0x317180[_0x343d16(0x155)][_0x14c569],_0x4c6255);}),_0x3b1a59;}function st(_0x47db89,_0xf0d0d4){const _0x4906aa=_0x16c455;if((_0x47db89==null?void 0x0:_0x47db89[_0x4906aa(0x14d)])!==_0x5c585e[_0x4906aa(0xf3)]||_0xf0d0d4==null)return _0xf0d0d4;if(!Array[_0x4906aa(0xea)](_0xf0d0d4))throw TypeError(_0x4906aa(0x15b)+_0x47db89[_0x4906aa(0x103)]+_0x4906aa(0x1ff));return _0xf0d0d4[_0x4906aa(0x176)]((_0x4c3eaf,_0x265fa4)=>lt(_0x47db89,_0x4c3eaf,_0x265fa4));}function ct(_0x3e2f79,_0x25c0c1,_0x5e5849){const _0x44c143=_0x16c455;if(_0x5e5849==='id'||_0x5e5849===_0x44c143(0x1e5)&&_0x3e2f79[_0x44c143(0x155)][_0x25c0c1])return _0x25c0c1;let _0x4cb1ec=Object['values'](_0x3e2f79['fields'])[_0x44c143(0x159)](_0x413b5d=>_0x413b5d[_0x44c143(0x103)]===_0x25c0c1);if(_0x4cb1ec[_0x44c143(0x166)]===0x1)return _0x4cb1ec[0x0]['id'];throw _0x4cb1ec[_0x44c143(0x166)]>0x1?Error(_0x44c143(0x1a1)+_0x25c0c1):Error(_0x44c143(0x1ef)+_0x25c0c1);}function lt(_0xde8fd8,_0x4a49db,_0x2917aa){const _0xa27884=_0x16c455;let _0x30f83e=_0xa27884(0x1c0)+_0x2917aa+_0xa27884(0xa0)+_0xde8fd8[_0xa27884(0x103)]+'\x22';if(!ft(_0x4a49db))throw TypeError(_0x30f83e+':\x20expected\x20an\x20object.');if(_0xa27884(0x1e1)in _0x4a49db)throw TypeError(_0x30f83e+_0xa27884(0x1c7));if('type'in _0x4a49db)throw TypeError(_0x30f83e+_0xa27884(0x14b));let _0x45de1b=U(_0x4a49db['id'],_0x30f83e,'id'),_0x47bafe=U(_0x4a49db[_0xa27884(0x103)],_0x30f83e,_0xa27884(0x103)),_0x5d0274=U(_0x4a49db[_0xa27884(0x191)],_0x30f83e,_0xa27884(0x191));return{'id':_0x45de1b,'name':_0x47bafe,'source':_0x5d0274,'sourceType':ut(_0x4a49db[_0xa27884(0x1a7)],_0x5d0274,_0x30f83e),...dt(_0x4a49db,_0xa27884(0x195),_0x30f83e),...W(_0x4a49db,'size',_0x30f83e),...W(_0x4a49db,_0xa27884(0x19d),_0x30f83e),...W(_0x4a49db,'height',_0x30f83e),...dt(_0x4a49db,'thumbnail',_0x30f83e)};}function ut(_0x3d28cd,_0x5421db,_0x355980){const _0x1a9147=_0x16c455;if(_0x3d28cd==null)return _0x5421db['startsWith']('data:')?_0x354b72['BASE64']:_0x354b72[_0x1a9147(0x1c8)];if(_0x3d28cd===_0x354b72[_0x1a9147(0x1c8)]||_0x3d28cd===_0x354b72[_0x1a9147(0x16c)]||_0x3d28cd===_0x354b72['BASE64'])return _0x3d28cd;throw TypeError(_0x355980+_0x1a9147(0x1f1));}function U(_0x5caa2c,_0x1f2493,_0xf61f89){const _0x4d1c4e=_0x16c455;if(typeof _0x5caa2c!=_0x4d1c4e(0x1d6)||!_0x5caa2c['trim']())throw TypeError(_0x1f2493+_0x4d1c4e(0xdb)+_0xf61f89+_0x4d1c4e(0x12a));return _0x5caa2c;}function dt(_0x514351,_0x30315f,_0xeb05d1){const _0x53c511=_0x16c455;let _0x150b96=_0x514351[_0x30315f];if(_0x150b96==null)return{};if(typeof _0x150b96!=_0x53c511(0x1d6)||!_0x150b96[_0x53c511(0x165)]())throw TypeError(_0xeb05d1+_0x53c511(0xdb)+_0x30315f+_0x53c511(0xe9));return{[_0x30315f]:_0x150b96};}function W(_0x55a343,_0x38ce3b,_0x519aef){const _0xcd879c=_0x16c455;let _0xad0a5d=_0x55a343[_0x38ce3b];if(_0xad0a5d==null)return{};if(typeof _0xad0a5d!='number'||!Number['isFinite'](_0xad0a5d)||_0xad0a5d<0x0)throw TypeError(_0x519aef+_0xcd879c(0xdb)+_0x38ce3b+_0xcd879c(0x126));return{[_0x38ce3b]:_0xad0a5d};}function ft(_0x1d782f){const _0x20eafa=_0x16c455;return typeof _0x1d782f==_0x20eafa(0xb9)&&!!_0x1d782f&&!Array[_0x20eafa(0xea)](_0x1d782f);}var G;let K=G=class{constructor(_0xdc72a,_0xac2e12,_0x1403ac,_0x3d66ed,_0x1e6d8d){const _0x548f76=_0x16c455;this[_0x548f76(0xf4)]=_0xdc72a,this['_table']=_0xac2e12,this[_0x548f76(0x1e7)]=_0x1403ac,this[_0x548f76(0x163)]=_0x3d66ed,this['_commandService']=_0x1e6d8d,this[_0x548f76(0x1f8)]();}[_0x16c455(0x171)](){const _0x8649b6=_0x16c455;return this[_0x8649b6(0xf4)][_0x8649b6(0x207)]();}['getTableId'](){const _0x427300=_0x16c455;return this[_0x427300(0x140)]['getId']();}[_0x16c455(0x15f)](){return{...this['_range']};}[_0x16c455(0x1a5)](){const _0x2bf762=_0x16c455;return this[_0x2bf762(0x1e7)][_0x2bf762(0x138)];}[_0x16c455(0x116)](){const _0x498089=_0x16c455;return this[_0x498089(0x1e7)][_0x498089(0x196)];}['getNumRows'](){const _0x176fd1=_0x16c455;return this[_0x176fd1(0x1e7)][_0x176fd1(0x1cc)]-this[_0x176fd1(0x1e7)]['startRow']+0x1;}[_0x16c455(0xee)](){const _0x3cc327=_0x16c455;return this[_0x3cc327(0x1e7)][_0x3cc327(0xff)]-this[_0x3cc327(0x1e7)]['startColumn']+0x1;}[_0x16c455(0x18e)](){const _0x4fa9ba=_0x16c455;let _0x2064cc=this[_0x4fa9ba(0x1b4)](),_0x397583=this[_0x4fa9ba(0xf5)](_0x2064cc),_0x1ced34=[];for(let _0x3a1497=this['_range']['startRow'];_0x3a1497<=this[_0x4fa9ba(0x1e7)][_0x4fa9ba(0x1cc)];_0x3a1497++){var _0x512783;let _0x5ab072=(_0x512783=_0x2064cc[_0x4fa9ba(0x146)])==null?void 0x0:_0x512783[_0x3a1497],_0x132585=[];for(let _0x53816c=this[_0x4fa9ba(0x1e7)]['startColumn'];_0x53816c<=this[_0x4fa9ba(0x1e7)][_0x4fa9ba(0xff)];_0x53816c++){let _0x4b00c3=_0x397583[_0x53816c];_0x132585[_0x4fa9ba(0xda)](_0x5ab072&&_0x4b00c3?_0x5686ac(_0x2064cc,_0x5ab072,_0x4b00c3):null);}_0x1ced34['push'](_0x132585);}return _0x1ced34;}[_0x16c455(0x175)](){var _0x140ed0;return((_0x140ed0=this['getValues']()[0x0])==null?void 0x0:_0x140ed0[0x0])??null;}[_0x16c455(0x13a)](_0x555501){const _0x22fcdc=_0x16c455;return this[_0x22fcdc(0x1ec)]([[_0x555501]]);}[_0x16c455(0x1ec)](_0x2acbcf){const _0x1cd689=_0x16c455;let _0xc46e0a=this['getNumRows'](),_0x2e2ec3=this[_0x1cd689(0xee)]();if(_0x2acbcf[_0x1cd689(0x166)]>_0xc46e0a||_0x2acbcf[_0x1cd689(0x1a8)](_0x49250b=>_0x49250b[_0x1cd689(0x166)]>_0x2e2ec3)){var _0x4792da;throw Error('[FBaseRange]:\x20values\x20size\x20'+_0x2acbcf[_0x1cd689(0x166)]+'x'+(((_0x4792da=_0x2acbcf[0x0])==null?void 0x0:_0x4792da[_0x1cd689(0x166)])??0x0)+_0x1cd689(0x16f)+_0xc46e0a+'x'+_0x2e2ec3+'.');}let _0x26af78=this[_0x1cd689(0x1b4)](),_0x5aa3b1=this['_getFieldIds'](_0x26af78),_0x115d16=_0x2acbcf[_0x1cd689(0x128)]((_0x3b0dd5,_0x3dfca0)=>_0x3b0dd5['map']((_0x5aa39d,_0x3d8eb2)=>{const _0x59d391=_0x1cd689;var _0x182a7e;let _0x1887ae=this[_0x59d391(0x1e7)][_0x59d391(0x138)]+_0x3dfca0,_0x493204=_0x5aa3b1[this[_0x59d391(0x1e7)][_0x59d391(0x196)]+_0x3d8eb2],_0x4dab0b=(_0x182a7e=_0x26af78['rowId'])==null?void 0x0:_0x182a7e[_0x1887ae];if(!_0x493204||!_0x4dab0b)throw Error(_0x59d391(0x19e));return{'recordId':_0x4dab0b,'fieldId':_0x493204,'value':_0x5aa39d};}));return this[_0x1cd689(0x106)][_0x1cd689(0x178)](_0x5ac327['id'],{'unitId':this['_base'][_0x1cd689(0x207)](),'tableId':this[_0x1cd689(0x140)][_0x1cd689(0x207)](),'patches':_0x115d16,'source':_0x55bebd[_0x1cd689(0x1ae)]});}[_0x16c455(0x172)](){const _0x50778e=_0x16c455;return this[_0x50778e(0x1ec)](Array[_0x50778e(0x1f4)]({'length':this['getNumRows']()},()=>Array[_0x50778e(0x1f4)]({'length':this[_0x50778e(0xee)]()},()=>null)));}[_0x16c455(0x190)](_0x19e44b,_0x5dcf62,_0x480bb7=this[_0x16c455(0x125)](),_0x5aa85d=this['getNumColumns']()){const _0x204859=_0x16c455;return this['_inject']['createInstance'](G,this[_0x204859(0xf4)],this['_table'],{'startRow':this[_0x204859(0x1e7)][_0x204859(0x138)]+_0x19e44b,'startColumn':this[_0x204859(0x1e7)][_0x204859(0x196)]+_0x5dcf62,'endRow':this['_range'][_0x204859(0x138)]+_0x19e44b+_0x480bb7-0x1,'endColumn':this['_range']['startColumn']+_0x5dcf62+_0x5aa85d-0x1},this[_0x204859(0x163)]);}['_getTable'](){const _0x3d27c1=_0x16c455;let _0x27428c=this['_table'][_0x3d27c1(0x147)]();if(!_0x27428c)throw Error(_0x3d27c1(0x1ea));return _0x5d9764(_0x27428c);}[_0x16c455(0x1f8)](){const _0x46610f=_0x16c455;var _0x17b6aa;let _0x338224=this[_0x46610f(0x1b4)](),_0xfa72d7=((_0x17b6aa=_0x338224[_0x46610f(0xdf)])==null?void 0x0:_0x17b6aa[_0x46610f(0x166)])??0x0,_0x196990=this[_0x46610f(0xf5)](_0x338224)[_0x46610f(0x166)];if(this['_range'][_0x46610f(0x138)]<0x0||this[_0x46610f(0x1e7)][_0x46610f(0x196)]<0x0||this['_range'][_0x46610f(0x1cc)]<this[_0x46610f(0x1e7)][_0x46610f(0x138)]||this[_0x46610f(0x1e7)]['endColumn']<this['_range'][_0x46610f(0x196)]||this[_0x46610f(0x1e7)][_0x46610f(0x1cc)]>=Math[_0x46610f(0x1b3)](_0xfa72d7,0x1)||this['_range'][_0x46610f(0xff)]>=Math[_0x46610f(0x1b3)](_0x196990,0x1))throw Error('[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20'+_0xfa72d7+',\x20max\x20columns:\x20'+_0x196990+_0x46610f(0x120)+JSON[_0x46610f(0x12d)](this[_0x46610f(0x1e7)])+'.');}[_0x16c455(0xf5)](_0x1ce6a8){const _0x20cecd=_0x16c455;return _0x1ce6a8[_0x20cecd(0xf6)][_0x20cecd(0x159)](_0x4ffb5f=>V(_0x1ce6a8[_0x20cecd(0x155)][_0x4ffb5f]));}};K=G=z([R(0x4,_0x18d666)],K);function q(_0x8261a1){'@babel/helpers - typeof';const _0x5f4780=_0x16c455;return q=typeof Symbol==_0x5f4780(0x1d1)&&typeof Symbol['iterator']==_0x5f4780(0x1c4)?function(_0x2a4a16){return typeof _0x2a4a16;}:function(_0x1f537e){const _0x552275=_0x5f4780;return _0x1f537e&&typeof Symbol==_0x552275(0x1d1)&&_0x1f537e['constructor']===Symbol&&_0x1f537e!==Symbol['prototype']?_0x552275(0x1c4):typeof _0x1f537e;},q(_0x8261a1);}function pt(_0x325de3,_0x227492){const _0x13afec=_0x16c455;if(q(_0x325de3)!=_0x13afec(0xb9)||!_0x325de3)return _0x325de3;var _0x308e0d=_0x325de3[Symbol[_0x13afec(0x1d4)]];if(_0x308e0d!==void 0x0){var _0xdfe048=_0x308e0d[_0x13afec(0x136)](_0x325de3,_0x227492||_0x13afec(0x131));if(q(_0xdfe048)!=_0x13afec(0xb9))return _0xdfe048;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x227492==='string'?String:Number)(_0x325de3);}function mt(_0x25abef){const _0x403a4b=_0x16c455;var _0x1f4e71=pt(_0x25abef,_0x403a4b(0x1d6));return q(_0x1f4e71)=='symbol'?_0x1f4e71:_0x1f4e71+'';}function ht(_0x11aebd,_0x1e619f,_0x1d5ff1){const _0x5e2b9a=_0x16c455;return(_0x1e619f=mt(_0x1e619f))in _0x11aebd?Object[_0x5e2b9a(0x1e4)](_0x11aebd,_0x1e619f,{'value':_0x1d5ff1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11aebd[_0x1e619f]=_0x1d5ff1,_0x11aebd;}var J;let Y=J=class extends _0x36d8f1{constructor(_0x40d121,_0x1929c5,_0x4843c6,_0x2edad7,_0x12d24a,_0x47a1a7){const _0x1cc9b4=_0x16c455;super(_0x2edad7),this[_0x1cc9b4(0xf4)]=_0x40d121,this[_0x1cc9b4(0x140)]=_0x1929c5,this[_0x1cc9b4(0x1c3)]=_0x4843c6,this[_0x1cc9b4(0x113)]=_0x2edad7,this['_commandService']=_0x12d24a,this[_0x1cc9b4(0x1a4)]=_0x47a1a7,ht(this,_0x1cc9b4(0x11f),void 0x0),ht(this,_0x1cc9b4(0x11d),void 0x0),this[_0x1cc9b4(0x11f)]=_0x40d121[_0x1cc9b4(0x207)](),this[_0x1cc9b4(0x11d)]=_0x1929c5[_0x1cc9b4(0x207)]();}['getBaseFacade'](){const _0x23a9a4=_0x16c455;return this[_0x23a9a4(0xf4)];}['getTableFacade'](){const _0x425012=_0x16c455;return this[_0x425012(0x140)];}[_0x16c455(0x207)](){const _0x405a56=_0x16c455;return this[_0x405a56(0x1c3)];}[_0x16c455(0x1d9)](){const _0x4bf983=_0x16c455;let _0x4950a7=this['_table'][_0x4bf983(0x207)]();return new L(this[_0x4bf983(0xf4)]['getId'](),_0xa951c(_0x4950a7,this['_recordId']),[_0x178fd1(_0x4950a7)],this[_0x4bf983(0x106)],this[_0x4bf983(0x1a4)]);}[_0x16c455(0x118)](){const _0x115372=_0x16c455;return{...this[_0x115372(0x11e)](),'values':this[_0x115372(0x18e)]()};}[_0x16c455(0x175)](_0x5b5f5b){const _0x3b169d=_0x16c455;return V(this[_0x3b169d(0x140)][_0x3b169d(0x147)]()['fields'][_0x5b5f5b])?this[_0x3b169d(0x11e)]()[_0x3b169d(0x1da)][_0x5b5f5b]??null:null;}[_0x16c455(0x18e)](){const _0x1a651c=_0x16c455;let _0x43ef4d=this[_0x1a651c(0x140)][_0x1a651c(0x147)]();return Object[_0x1a651c(0x167)](Object[_0x1a651c(0x208)](this[_0x1a651c(0x11e)]()[_0x1a651c(0x1da)])[_0x1a651c(0x159)](([_0x323334])=>V(_0x43ef4d[_0x1a651c(0x155)][_0x323334])));}[_0x16c455(0x13a)](_0x1e33af,_0x1c82b1){const _0x5cdbdd=_0x16c455;let _0x4cfd32=this[_0x5cdbdd(0x140)][_0x5cdbdd(0x147)]()[_0x5cdbdd(0x155)][_0x1e33af];return this['_commandService']['syncExecuteCommand'](_0x56896a['id'],{'unitId':this['_base'][_0x5cdbdd(0x207)](),'tableId':this['_table'][_0x5cdbdd(0x207)](),'recordId':this[_0x5cdbdd(0x1c3)],'fieldId':_0x1e33af,'value':st(_0x4cfd32,_0x1c82b1),'source':_0x55bebd[_0x5cdbdd(0x1ae)]});}[_0x16c455(0x1c6)](_0x1fbcbd,_0x35125c){const _0x566969=_0x16c455;return this['setValue'](_0x1fbcbd,_0x35125c[_0x566969(0x176)](_0x285d71=>({..._0x285d71})));}[_0x16c455(0x10d)](_0x5cfafb){const _0x4786d2=_0x16c455;this[_0x4786d2(0xbf)](_0x5cfafb);let _0xe9b0b5=this[_0x4786d2(0x175)](_0x5cfafb);return Array[_0x4786d2(0xea)](_0xe9b0b5)?_0xe9b0b5['map']((_0x4a0169,_0xd484ff)=>_t(_0x4a0169,_0x5cfafb,_0xd484ff)):[];}[_0x16c455(0x1ac)](_0x124e05,_0x2be5fe){const _0xc342bf=_0x16c455;this['_getAttachmentField'](_0x124e05);let _0x317c73=new Set(_0x2be5fe[_0xc342bf(0x176)](_0xe129c0=>_0xe129c0['id']));if(!_0x317c73[_0xc342bf(0x154)])return!0x0;let _0x4afe90=this[_0xc342bf(0x10d)](_0x124e05),_0x60d256=_0x4afe90[_0xc342bf(0x159)](_0x338e59=>!_0x317c73[_0xc342bf(0x141)](_0x338e59['id']));return _0x60d256['length']===_0x4afe90[_0xc342bf(0x166)]||this['setAttachments'](_0x124e05,_0x60d256);}['setValues'](_0x14f702,_0x420547='id'){const _0x41d07d=_0x16c455;let _0x2742e4=this['_table'][_0x41d07d(0x147)](),_0x4484f7=[{'recordId':this[_0x41d07d(0x1c3)],'values':H(_0x2742e4,_0x14f702,_0x420547)}];return this[_0x41d07d(0x106)][_0x41d07d(0x178)](_0xe2fa79['id'],{'unitId':this[_0x41d07d(0xf4)][_0x41d07d(0x207)](),'tableId':this['_table'][_0x41d07d(0x207)](),'patches':_0x4484f7,'source':_0x55bebd[_0x41d07d(0x1ae)]});}[_0x16c455(0xcd)](){const _0x5b53d9=_0x16c455;return this[_0x5b53d9(0x106)][_0x5b53d9(0x178)](_0x2a07c2['id'],{'unitId':this[_0x5b53d9(0xf4)][_0x5b53d9(0x207)](),'tableId':this[_0x5b53d9(0x140)][_0x5b53d9(0x207)](),'recordId':this[_0x5b53d9(0x1c3)],'source':_0x55bebd[_0x5b53d9(0x1ae)]});}[_0x16c455(0x169)](_0x407fc9){const _0x29c2b5=_0x16c455;let _0xa840b={...this['_getRecord'](),..._0x407fc9,'id':_0x2fbf07(0x6)};_0xa840b[_0x29c2b5(0x1da)]={..._0xa840b[_0x29c2b5(0x1da)],..._0x407fc9==null?void 0x0:_0x407fc9[_0x29c2b5(0x1da)]},Reflect['deleteProperty'](_0xa840b['values'],_0x45a674);let _0x37accc=Date[_0x29c2b5(0xe0)]();if(_0xa840b[_0x29c2b5(0xb0)]||=''+_0x37accc,_0xa840b[_0x29c2b5(0x100)]||=_0x37accc,_0xa840b[_0x29c2b5(0x1df)]||=_0x37accc,!this[_0x29c2b5(0x106)][_0x29c2b5(0x178)](_0x12761d['id'],{'unitId':this[_0x29c2b5(0xf4)]['getId'](),'tableId':this[_0x29c2b5(0x140)][_0x29c2b5(0x207)](),'sourceRecordId':this['_recordId'],'record':_0xa840b,'source':_0x55bebd[_0x29c2b5(0x1ae)]}))throw Error(_0x29c2b5(0x1d0)+this[_0x29c2b5(0x1c3)]+'\x22.');return this[_0x29c2b5(0x113)][_0x29c2b5(0x152)](J,this[_0x29c2b5(0xf4)],this[_0x29c2b5(0x140)],_0xa840b['id'],this[_0x29c2b5(0x113)]);}['setOrderKey'](_0x67497e){const _0x3714e2=_0x16c455;return this[_0x3714e2(0x106)][_0x3714e2(0x178)](_0x14f095['id'],{'unitId':this[_0x3714e2(0xf4)][_0x3714e2(0x207)](),'tableId':this[_0x3714e2(0x140)][_0x3714e2(0x207)](),'recordId':this[_0x3714e2(0x1c3)],'orderKey':_0x67497e});}[_0x16c455(0x1d5)](_0x13959c){const _0x7515c0=_0x16c455;let _0x4c3761=this[_0x7515c0(0x192)](_0x13959c),_0x4c8cae=this[_0x7515c0(0x175)](_0x4c3761['id']);return _0x335852(_0x4c8cae);}[_0x16c455(0xf2)](_0x23c183,_0x8a5f6b){const _0x3cdf82=_0x16c455;let _0x5e4a8b=this['_getRecordLinkField'](_0x23c183),_0x209e7c=_0x392c5e(_0x8a5f6b),_0x50cbbf=_0x2e4386(this['_base']['getBase']()[_0x3cdf82(0x15a)](),_0x5e4a8b,_0x209e7c);if(!_0x50cbbf['valid'])throw Error(_0x50cbbf[_0x3cdf82(0xd9)]??_0x3cdf82(0x13d));return this[_0x3cdf82(0x106)]['syncExecuteCommand'](_0x56896a['id'],{'unitId':this[_0x3cdf82(0xf4)][_0x3cdf82(0x207)](),'tableId':this[_0x3cdf82(0x140)][_0x3cdf82(0x207)](),'recordId':this[_0x3cdf82(0x1c3)],'fieldId':_0x23c183,'value':_0x209e7c,'source':_0x55bebd['Facade']});}[_0x16c455(0x1b7)](_0x297a42,_0x39790a){const _0x37c7c1=_0x16c455;let _0x4ff4db=this['_getRecordLinkField'](_0x297a42),_0x265543=_0x15bd67(_0x4ff4db);if(!_0x265543)throw Error(_0x37c7c1(0xae)+_0x297a42+_0x37c7c1(0xa6));let _0x1c9d21=this[_0x37c7c1(0x1d5)](_0x297a42);return _0x265543[_0x37c7c1(0x168)]&&_0x1c9d21['includes'](_0x39790a)?!0x0:this[_0x37c7c1(0xf2)](_0x297a42,_0x265543[_0x37c7c1(0x168)]?[..._0x1c9d21,_0x39790a]:[_0x39790a]);}[_0x16c455(0x1d3)](_0x3a6220,_0x517311){const _0x4bf7f6=_0x16c455;let _0x5067db=this[_0x4bf7f6(0x1d5)](_0x3a6220);return!_0x5067db[_0x4bf7f6(0xec)](_0x517311)||this[_0x4bf7f6(0xf2)](_0x3a6220,_0x5067db[_0x4bf7f6(0x159)](_0x2b9023=>_0x2b9023!==_0x517311));}[_0x16c455(0x12b)](_0x5f5b4d){const _0x293cb6=_0x16c455;let _0x5520c3=this[_0x293cb6(0x1c2)](_0x5f5b4d)[_0x293cb6(0x13f)][_0x293cb6(0x14f)](this[_0x293cb6(0x1c3)])??null;return _0x5520c3?this[_0x293cb6(0x140)]['getRecordById'](_0x5520c3):null;}[_0x16c455(0x157)](_0x2d97c1){const _0x62e0cc=_0x16c455;return(this[_0x62e0cc(0x1c2)](_0x2d97c1)['childrenByParentId'][_0x62e0cc(0x14f)](this[_0x62e0cc(0x1c3)])??[])[_0x62e0cc(0x128)](_0x582a40=>{const _0x31685f=_0x62e0cc;let _0x4f4da7=this[_0x31685f(0x140)]['getRecordById'](_0x582a40);return _0x4f4da7?[_0x4f4da7]:[];});}[_0x16c455(0xa5)](_0x3bd48c){const _0x5379b8=_0x16c455;let _0x906338=this[_0x5379b8(0x1c2)](_0x3bd48c),_0x2b5c1e=[],_0x5cb0b5=_0x906338['parentByRecordId'][_0x5379b8(0x14f)](this['_recordId'])??null;for(;_0x5cb0b5;){let _0x1e3d62=this[_0x5379b8(0x140)]['getRecordById'](_0x5cb0b5);_0x1e3d62&&_0x2b5c1e[_0x5379b8(0xda)](_0x1e3d62),_0x5cb0b5=_0x906338[_0x5379b8(0x13f)][_0x5379b8(0x14f)](_0x5cb0b5)??null;}return _0x2b5c1e;}['getDescendants'](_0x926d58){const _0x10f1e0=_0x16c455;let _0x1fe922=this[_0x10f1e0(0x1c2)](_0x926d58),_0x9be7b0=_0x1fe922[_0x10f1e0(0x209)][_0x10f1e0(0x107)](this[_0x10f1e0(0x1c3)]),_0x1071b1=_0x1fe922['subtreeHeightByRecordId'][_0x10f1e0(0x141)](this[_0x10f1e0(0x1c3)])?this[_0x10f1e0(0x1b2)](_0x1fe922[_0x10f1e0(0xba)],this[_0x10f1e0(0x1c3)]):[];return _0x9be7b0<0x0?[]:_0x1071b1[_0x10f1e0(0x128)](_0x3db2e6=>{const _0x5694ab=_0x10f1e0;let _0x5bf744=this[_0x5694ab(0x140)]['getRecordById'](_0x3db2e6);return _0x5bf744?[_0x5bf744]:[];});}['setParent'](_0x34af2a,_0x313837,_0x562201){const _0x6ba9a1=_0x16c455;return this[_0x6ba9a1(0x106)][_0x6ba9a1(0x178)](_0x1c837a['id'],{'unitId':this[_0x6ba9a1(0xf4)][_0x6ba9a1(0x207)](),'tableId':this[_0x6ba9a1(0x140)][_0x6ba9a1(0x207)](),'fieldId':_0x34af2a,'recordId':this[_0x6ba9a1(0x1c3)],'parentRecordId':_0x313837,'orderKey':_0x562201,'source':_0x55bebd[_0x6ba9a1(0x1ae)]});}[_0x16c455(0x199)](_0x39a4de,_0x7237c5,_0x7c485d='id',_0x19f9bc){const _0x2c99be=_0x16c455;let _0x5989c0=this['_table'][_0x2c99be(0x147)](),_0x480fa8=Date[_0x2c99be(0xe0)](),_0x394a55={..._0x19f9bc,'id':_0x2fbf07(0x6),'values':H(_0x5989c0,_0x7237c5,_0x7c485d),'orderKey':(_0x19f9bc==null?void 0x0:_0x19f9bc['orderKey'])||''+_0x480fa8,'createdAt':(_0x19f9bc==null?void 0x0:_0x19f9bc['createdAt'])||_0x480fa8,'updatedAt':(_0x19f9bc==null?void 0x0:_0x19f9bc[_0x2c99be(0x1df)])||_0x480fa8};if(!this[_0x2c99be(0x106)]['syncExecuteCommand'](_0x2e5ba5['id'],{'unitId':this[_0x2c99be(0xf4)][_0x2c99be(0x207)](),'tableId':this['_table'][_0x2c99be(0x207)](),'fieldId':_0x39a4de,'parentRecordId':this['_recordId'],'record':_0x394a55,'source':_0x55bebd[_0x2c99be(0x1ae)]}))throw Error(_0x2c99be(0x1bd)+this['_recordId']+'\x22.');return this['_injector'][_0x2c99be(0x152)](J,this[_0x2c99be(0xf4)],this[_0x2c99be(0x140)],_0x394a55['id'],this['_injector']);}['_getHierarchyIndex'](_0x2d80ae){const _0x890cff=_0x16c455;return _0x1a3563(this[_0x890cff(0x140)][_0x890cff(0x147)](),_0x2d80ae);}[_0x16c455(0x1b2)](_0x64c7d7,_0xf099a4){let _0x1e01b4=[],_0x4bfb71=_0x476acb=>{const _0x15f82d=_0x459a;for(let _0x46c163 of _0x64c7d7[_0x15f82d(0x14f)](_0x476acb)??[])_0x1e01b4[_0x15f82d(0xda)](_0x46c163),_0x4bfb71(_0x46c163);};return _0x4bfb71(_0xf099a4),_0x1e01b4;}[_0x16c455(0x11e)](){const _0x3e68f2=_0x16c455;let _0x23a668=this[_0x3e68f2(0x140)][_0x3e68f2(0x147)]()['records'][this[_0x3e68f2(0x1c3)]];if(!_0x23a668)throw Error(_0x3e68f2(0x1dc)+this[_0x3e68f2(0x1c3)]+_0x3e68f2(0x1f6));return _0x23a668;}[_0x16c455(0x192)](_0x5a1d2c){const _0x351d0a=_0x16c455;let _0x953f31=this[_0x351d0a(0x140)][_0x351d0a(0x147)]()['fields'][_0x5a1d2c];if(!_0x953f31||_0x953f31['type']!==_0x5c585e[_0x351d0a(0x18f)])throw Error(_0x351d0a(0xa1)+_0x5a1d2c+_0x351d0a(0xd4));return _0x953f31;}['_getAttachmentField'](_0x328c9a){const _0x599fba=_0x16c455;let _0x5ad6e8=this[_0x599fba(0x140)][_0x599fba(0x147)]()[_0x599fba(0x155)][_0x328c9a];if(!_0x5ad6e8||_0x5ad6e8['type']!==_0x5c585e[_0x599fba(0xf3)])throw Error('[FRecord]:\x20field\x20\x22'+_0x328c9a+_0x599fba(0xfd));return _0x5ad6e8;}};Y=J=z([R(0x4,_0x18d666),R(0x5,_0x5e35b8)],Y);function gt(_0xe3d14){const _0x2353e7=_0x16c455;return!!(_0xe3d14&&typeof _0xe3d14==_0x2353e7(0xb9)&&'id'in _0xe3d14&&typeof _0xe3d14['id']=='string'&&_0x2353e7(0x103)in _0xe3d14&&typeof _0xe3d14[_0x2353e7(0x103)]==_0x2353e7(0x1d6));}function _t(_0x428ca8,_0x38cc44,_0x116a11){const _0x3e48a3=_0x16c455;if(!gt(_0x428ca8))throw Error(_0x3e48a3(0x1fe)+_0x116a11+_0x3e48a3(0x102)+_0x38cc44+_0x3e48a3(0x10e));return{..._0x428ca8};}let X=class{constructor(_0x28fd8c,_0x55403a,_0xf330a,_0x4dd9f0,_0x230e08,_0x3b86dd,_0x4e439f){const _0x17b6d2=_0x16c455;this[_0x17b6d2(0xf4)]=_0x28fd8c,this[_0x17b6d2(0x140)]=_0x55403a,this[_0x17b6d2(0x1eb)]=_0xf330a,this['_injector']=_0x4dd9f0,this[_0x17b6d2(0x106)]=_0x230e08,this[_0x17b6d2(0x1a4)]=_0x3b86dd,this[_0x17b6d2(0xb7)]=_0x4e439f;}[_0x16c455(0x207)](){const _0x116c5d=_0x16c455;return this[_0x116c5d(0x1eb)];}['getPermission'](){const _0x570631=_0x16c455;let _0x5d8e86=this[_0x570631(0x140)][_0x570631(0x207)]();return new L(this['_base'][_0x570631(0x207)](),_0x53e240(_0x5d8e86,this[_0x570631(0x1eb)]),[_0x178fd1(_0x5d8e86)],this[_0x570631(0x106)],this[_0x570631(0x1a4)]);}['getView'](){const _0x448d79=_0x16c455;return this[_0x448d79(0x1ab)]();}['getName'](){const _0x2f6696=_0x16c455;return this[_0x2f6696(0x1ab)]()[_0x2f6696(0x103)];}[_0x16c455(0x16d)](){const _0x5b3d2f=_0x16c455;return this[_0x5b3d2f(0x1ab)]()['type'];}[_0x16c455(0xf1)](_0x31628a){const _0x1634ca=_0x16c455;return this[_0x1634ca(0x106)][_0x1634ca(0x178)](_0x43a829['id'],{'unitId':this[_0x1634ca(0xf4)][_0x1634ca(0x207)](),'tableId':this[_0x1634ca(0x140)][_0x1634ca(0x207)](),'viewId':this[_0x1634ca(0x1eb)],'name':_0x31628a});}['getConfig'](){const _0x33de95=_0x16c455;let _0x47b3b9=this['getType'](),_0x99adc5=this[_0x33de95(0x1ab)]()[_0x33de95(0x1f3)];switch(_0x47b3b9){case _0x1eb8c0[_0x33de95(0xbc)]:return _0x99adc5;case _0x1eb8c0[_0x33de95(0x1db)]:return _0x99adc5;case _0x1eb8c0[_0x33de95(0xfb)]:return _0x99adc5;case _0x1eb8c0[_0x33de95(0x1f7)]:return _0x99adc5;case _0x1eb8c0['Gallery']:return _0x99adc5;default:return _0x99adc5;}}[_0x16c455(0x1a0)](_0x2d4819){const _0x35a4e8=_0x16c455;return this[_0x35a4e8(0x106)][_0x35a4e8(0x178)](_0x5996eb['id'],{'unitId':this[_0x35a4e8(0xf4)][_0x35a4e8(0x207)](),'tableId':this['_table'][_0x35a4e8(0x207)](),'viewId':this['_viewId'],'patch':_0x2d4819});}[_0x16c455(0xaf)](){const _0x552f73=_0x16c455;var _0x2a0243;return _0x49e7b0[_0x552f73(0x14e)](((_0x2a0243=this[_0x552f73(0x1ab)]()['config'][_0x552f73(0xbd)])==null?void 0x0:_0x2a0243[_0x552f73(0x158)])??[]);}['setConditionalColorRules'](_0x231846){const _0x256e79=_0x16c455;return this[_0x256e79(0x106)][_0x256e79(0x178)](_0x445422['id'],{'unitId':this[_0x256e79(0xf4)][_0x256e79(0x207)](),'tableId':this[_0x256e79(0x140)][_0x256e79(0x207)](),'viewId':this['_viewId'],'type':_0x14071a[_0x256e79(0x174)],'rules':_0x231846});}[_0x16c455(0x184)](_0x12ef7e){const _0xca1982=_0x16c455;return this[_0xca1982(0x106)][_0xca1982(0x178)](_0x445422['id'],{'unitId':this[_0xca1982(0xf4)][_0xca1982(0x207)](),'tableId':this[_0xca1982(0x140)][_0xca1982(0x207)](),'viewId':this[_0xca1982(0x1eb)],'type':_0x14071a[_0xca1982(0x1af)],'rule':_0x12ef7e});}['deleteConditionalColorRule'](_0x6f94f9){const _0x30b3b8=_0x16c455;return this[_0x30b3b8(0x106)][_0x30b3b8(0x178)](_0x445422['id'],{'unitId':this['_base'][_0x30b3b8(0x207)](),'tableId':this['_table']['getId'](),'viewId':this[_0x30b3b8(0x1eb)],'type':_0x14071a[_0x30b3b8(0x170)],'ruleId':_0x6f94f9});}[_0x16c455(0xd2)](){const _0xa2576e=_0x16c455;return this['_commandService']['syncExecuteCommand'](_0x445422['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0xa2576e(0x207)](),'viewId':this[_0xa2576e(0x1eb)],'type':_0x14071a[_0xa2576e(0x179)]});}[_0x16c455(0x115)](){const _0x456da4=_0x16c455;return this['_getView']()[_0x456da4(0x159)]??null;}['setFilter'](_0x2bf2eb){const _0x260a59=_0x16c455;return this[_0x260a59(0x106)][_0x260a59(0x178)](_0x537303['id'],{'unitId':this[_0x260a59(0xf4)][_0x260a59(0x207)](),'tableId':this['_table'][_0x260a59(0x207)](),'viewId':this['_viewId'],'filter':_0x2bf2eb});}['getSort'](){const _0x27c986=_0x16c455;return this[_0x27c986(0x1ab)]()['sort']??[];}[_0x16c455(0x1e0)](_0x3c2b74){const _0x1a3227=_0x16c455;return this[_0x1a3227(0x106)][_0x1a3227(0x178)](_0x2d2d2c['id'],{'unitId':this[_0x1a3227(0xf4)][_0x1a3227(0x207)](),'tableId':this['_table'][_0x1a3227(0x207)](),'viewId':this['_viewId'],'sort':_0x3c2b74});}[_0x16c455(0x10b)](){const _0x2ad465=_0x16c455;return this[_0x2ad465(0x1ab)]()[_0x2ad465(0xde)]??[];}[_0x16c455(0x104)](_0x400c4c){const _0x2867eb=_0x16c455;return this[_0x2867eb(0x106)][_0x2867eb(0x178)](_0x4e34d1['id'],{'unitId':this[_0x2867eb(0xf4)]['getId'](),'tableId':this['_table'][_0x2867eb(0x207)](),'viewId':this[_0x2867eb(0x1eb)],'group':_0x400c4c});}[_0x16c455(0x198)](_0x3dc86f){const _0x5a6535=_0x16c455;var _0x47d4a9;return V(this[_0x5a6535(0x140)][_0x5a6535(0x147)]()[_0x5a6535(0x155)][_0x3dc86f])?((_0x47d4a9=this['_getView']()['fieldSettings'])==null?void 0x0:_0x47d4a9[_0x3dc86f])??{}:{};}[_0x16c455(0xc7)](){const _0x558f1c=_0x16c455;let _0x570e39=this[_0x558f1c(0x140)][_0x558f1c(0x147)](),_0x32a9ad=this[_0x558f1c(0x1ab)]();return(_0x32a9ad[_0x558f1c(0xf6)]??_0x570e39[_0x558f1c(0xf6)])[_0x558f1c(0x159)](_0x3a42b2=>{const _0x3c04b0=_0x558f1c;var _0xb49863;let _0x1c9c6d=_0x570e39[_0x3c04b0(0x155)][_0x3a42b2];return V(_0x1c9c6d)&&!((_0xb49863=_0x32a9ad[_0x3c04b0(0x1de)])!=null&&(_0xb49863=_0xb49863[_0x3a42b2])!=null&&_0xb49863['hidden']);})[_0x558f1c(0x176)](_0x3362a2=>this[_0x558f1c(0x113)][_0x558f1c(0x152)](B,this[_0x558f1c(0xf4)],this[_0x558f1c(0x140)],_0x3362a2));}[_0x16c455(0xdc)](_0x45b571,_0x269da5){const _0x41f437=_0x16c455;return V(this['_table'][_0x41f437(0x147)]()['fields'][_0x45b571])?this[_0x41f437(0x106)][_0x41f437(0x178)](_0x29d7b1['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x41f437(0x140)][_0x41f437(0x207)](),'viewId':this[_0x41f437(0x1eb)],'fieldId':_0x45b571,'visible':_0x269da5}):!0x1;}[_0x16c455(0x18c)](_0x1432e3,_0x5b475f){const _0x507e3b=_0x16c455;return V(this['_table']['getTable']()[_0x507e3b(0x155)][_0x1432e3])?this[_0x507e3b(0x106)][_0x507e3b(0x178)](_0x10caef['id'],{'unitId':this[_0x507e3b(0xf4)]['getId'](),'tableId':this[_0x507e3b(0x140)][_0x507e3b(0x207)](),'viewId':this[_0x507e3b(0x1eb)],'fieldId':_0x1432e3,'width':_0x5b475f}):!0x1;}[_0x16c455(0xd7)](_0x5bc82f,_0x452f00){const _0x17c841=_0x16c455;let _0x1c519a=this[_0x17c841(0x140)][_0x17c841(0x147)](),_0x510021=_0x452f00[_0x17c841(0xbe)]??_0x452f00[_0x17c841(0xe4)];return!V(_0x1c519a[_0x17c841(0x155)][_0x5bc82f])||!_0x510021||!V(_0x1c519a['fields'][_0x510021])?!0x1:this[_0x17c841(0x106)][_0x17c841(0x178)](_0x1a9899['id'],{'unitId':this[_0x17c841(0xf4)][_0x17c841(0x207)](),'tableId':this[_0x17c841(0x140)][_0x17c841(0x207)](),'viewId':this[_0x17c841(0x1eb)],'fieldId':_0x5bc82f,'target':_0x452f00});}[_0x16c455(0x19b)](_0x5882dc){const _0x3f1443=_0x16c455;return this[_0x3f1443(0x106)]['syncExecuteCommand'](_0x3abd85['id'],{'unitId':this[_0x3f1443(0xf4)][_0x3f1443(0x207)](),'tableId':this[_0x3f1443(0x140)]['getId'](),'viewId':this[_0x3f1443(0x1eb)],'target':_0x5882dc});}[_0x16c455(0xcd)](){const _0x1eeb97=_0x16c455;return this['_commandService']['syncExecuteCommand'](_0x548359['id'],{'unitId':this[_0x1eeb97(0xf4)][_0x1eeb97(0x207)](),'tableId':this[_0x1eeb97(0x140)][_0x1eeb97(0x207)](),'viewId':this[_0x1eeb97(0x1eb)]});}[_0x16c455(0xef)](){const _0x240d1b=_0x16c455;return this[_0x240d1b(0xb7)][_0x240d1b(0xef)](this[_0x240d1b(0xf4)][_0x240d1b(0xaa)]()[_0x240d1b(0x15a)](),this['_table'][_0x240d1b(0x207)](),this[_0x240d1b(0x1eb)]);}[_0x16c455(0x1ab)](){const _0x5725e3=_0x16c455;let _0x176e7d=this[_0x5725e3(0x140)][_0x5725e3(0x147)]()[_0x5725e3(0x162)][this['_viewId']];if(!_0x176e7d)throw Error('[FView]:\x20view\x20\x22'+this['_viewId']+_0x5725e3(0x1f6));return _0x176e7d;}};X=z([R(0x4,_0x18d666),R(0x5,_0x5e35b8),R(0x6,_0x499ad2)],X);let Z=class{constructor(_0x3ecdbe,_0x1b0810,_0x155d57,_0xb59bfe,_0x1c1bd7,_0x2979ee){const _0x2242dd=_0x16c455;this[_0x2242dd(0xf4)]=_0x3ecdbe,this[_0x2242dd(0xc0)]=_0x1b0810,this[_0x2242dd(0x113)]=_0x155d57,this[_0x2242dd(0x106)]=_0xb59bfe,this[_0x2242dd(0x1a4)]=_0x1c1bd7,this['_projectionService']=_0x2979ee;}[_0x16c455(0xaa)](){const _0x252632=_0x16c455;return this[_0x252632(0xf4)][_0x252632(0xaa)]();}['getTable'](){return this['_getTable']();}[_0x16c455(0x207)](){const _0x3c8864=_0x16c455;return this[_0x3c8864(0xc0)];}['getPermission'](){const _0x507b89=_0x16c455;return new L(this[_0x507b89(0xaa)]()[_0x507b89(0x109)](),_0x178fd1(this[_0x507b89(0xc0)]),[],this[_0x507b89(0x106)],this[_0x507b89(0x1a4)]);}[_0x16c455(0x101)](){const _0x5b3a75=_0x16c455;return _0x4e6087(this[_0x5b3a75(0x1b4)]());}[_0x16c455(0x1cf)](_0x5d28a4){const _0x4be8dd=_0x16c455;return this[_0x4be8dd(0x106)][_0x4be8dd(0x178)](_0x331078['id'],{'unitId':this[_0x4be8dd(0xf4)][_0x4be8dd(0x207)](),'tableId':this[_0x4be8dd(0xc0)],'fieldId':_0x5d28a4});}[_0x16c455(0x180)](){const _0x2efa46=_0x16c455;return this[_0x2efa46(0x1b4)]()[_0x2efa46(0x103)];}[_0x16c455(0x15c)](){const _0x228ac3=_0x16c455;let _0x23f274=this[_0x228ac3(0xf4)][_0x228ac3(0xaa)]()[_0x228ac3(0x15a)]();return _0x334dca(this[_0x228ac3(0x1b4)](),_0x23f274);}[_0x16c455(0xf1)](_0x625c45){const _0x1f4f35=_0x16c455;let _0x111869=_0x2628b6(this['_base']['getBase']()[_0x1f4f35(0x15a)](),_0x625c45,this[_0x1f4f35(0xc0)]);if(!_0x111869[_0x1f4f35(0x139)])throw Error('[FBaseTable]:\x20invalid\x20table\x20name\x20\x22'+_0x625c45+_0x1f4f35(0x1f5)+_0x229298+'\x20'+_0x111869[_0x1f4f35(0xd9)]);return this[_0x1f4f35(0x106)]['syncExecuteCommand'](_0x3dc70f['id'],{'unitId':this[_0x1f4f35(0xf4)][_0x1f4f35(0x207)](),'tableId':this[_0x1f4f35(0xc0)],'name':_0x625c45});}[_0x16c455(0x1cb)](_0xef6927,_0x27849a){const _0x4ebbf0=_0x16c455;let _0x41fb75=this[_0x4ebbf0(0xf4)]['getBase']()[_0x4ebbf0(0x15a)](),_0x515157=this[_0x4ebbf0(0x1b4)]();if(_0x27849a){let _0x139628=this[_0x4ebbf0(0xb7)]['getProjection'](_0x41fb75,this[_0x4ebbf0(0xc0)],_0x27849a),_0xa24b44=_0x515157['views'][_0x27849a],_0x8159f7=_0xef6927['fieldIds']??Tt(_0x515157,_0xa24b44,_0x139628),_0x4f7e69=_0x4ebbf0(0x137)in _0x139628&&Array['isArray'](_0x139628[_0x4ebbf0(0x137)])?_0x139628[_0x4ebbf0(0x137)]:[];return _0x3ed99e({..._0xef6927,'table':_0x515157,'fieldIds':_0x8159f7,'rows':_0x4f7e69});}let _0x3a5931=(_0x515157['recordOrder']?_0x515157[_0x4ebbf0(0xdf)][_0x4ebbf0(0x176)](_0x286e5c=>_0x515157[_0x4ebbf0(0x111)][_0x286e5c]):Object['values'](_0x515157['records'])['sort']((_0x41e0ed,_0x8f4de8)=>_0x41e0ed[_0x4ebbf0(0xb0)]['localeCompare'](_0x8f4de8[_0x4ebbf0(0xb0)])))[_0x4ebbf0(0x159)](_0x1615c0=>_0x1615c0)[_0x4ebbf0(0x176)](_0xc82e5e=>({'recordId':_0xc82e5e['id'],'values':_0xc82e5e[_0x4ebbf0(0x1da)]})),_0x87b5fa=_0xef6927[_0x4ebbf0(0x1a9)]??_0x515157[_0x4ebbf0(0xf6)]['filter'](_0x155b16=>V(_0x515157[_0x4ebbf0(0x155)][_0x155b16]));return _0x3ed99e({..._0xef6927,'table':_0x515157,'fieldIds':_0x87b5fa,'rows':_0x3a5931});}[_0x16c455(0x119)](){const _0x56bb65=_0x16c455;return this['_getTable']()[_0x56bb65(0x185)];}['getFields'](){const _0x59574a=_0x16c455;let _0x438821=this[_0x59574a(0x1b4)]();return _0x438821['fieldOrder'][_0x59574a(0x176)](_0x5dd607=>_0x438821[_0x59574a(0x155)][_0x5dd607])['filter'](V)[_0x59574a(0x176)](_0x448c67=>this[_0x59574a(0x113)][_0x59574a(0x152)](B,this['_base'],this,_0x448c67['id']));}[_0x16c455(0x181)](_0x459631){const _0x5bbcc7=_0x16c455;let _0x51f4b7=this[_0x5bbcc7(0x1b4)]()[_0x5bbcc7(0x155)][_0x459631];return V(_0x51f4b7)?this[_0x5bbcc7(0x113)][_0x5bbcc7(0x152)](B,this[_0x5bbcc7(0xf4)],this,_0x51f4b7['id']):null;}['getFieldByName'](_0x5792f6){const _0x2126fe=_0x16c455;let _0x43d290=this[_0x2126fe(0x1b4)]()['fields'],_0x4f720c=Object['values'](_0x43d290)['find'](_0x3b54bc=>V(_0x3b54bc)&&_0x3b54bc[_0x2126fe(0x103)]===_0x5792f6);return _0x4f720c?this[_0x2126fe(0x113)]['createInstance'](B,this['_base'],this,_0x4f720c['id']):null;}[_0x16c455(0x145)](){const _0x12b889=_0x16c455;let _0x29403f=this[_0x12b889(0x1b4)]()[_0x12b889(0x185)];return this[_0x12b889(0x113)][_0x12b889(0x152)](B,this[_0x12b889(0xf4)],this,_0x29403f);}[_0x16c455(0x12f)](_0x24ce34,_0x42b438,_0x1fcefd){const _0x5eb3c9=_0x16c455;var _0x299de3,_0xca3180;if(!Object[_0x5eb3c9(0x1da)](_0x5c585e)[_0x5eb3c9(0x1a8)](_0xe9e27f=>_0xe9e27f===_0x42b438))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x42b438)+'\x22.');if(_0x42b438===_0x5c585e[_0x5eb3c9(0x1d2)]&&this[_0x5eb3c9(0xf0)](_0x24ce34,_0x1fcefd),_0x42b438===_0x5c585e[_0x5eb3c9(0x18f)]&&(typeof(_0x1fcefd==null||(_0x299de3=_0x1fcefd[_0x5eb3c9(0x173)])==null||(_0x299de3=_0x299de3[_0x5eb3c9(0x1f3)])==null?void 0x0:_0x299de3[_0x5eb3c9(0xb4)])!='string'||typeof _0x1fcefd['field']['config'][_0x5eb3c9(0x168)]!=_0x5eb3c9(0xad)))throw Error(_0x5eb3c9(0x124));let _0x128157={..._0x1fcefd==null?void 0x0:_0x1fcefd[_0x5eb3c9(0x173)],'id':_0x2fbf07(0x6),'name':_0x24ce34,'type':_0x42b438,'config':(_0x1fcefd==null||(_0xca3180=_0x1fcefd[_0x5eb3c9(0x173)])==null?void 0x0:_0xca3180['config'])??{}};if(!this[_0x5eb3c9(0x106)][_0x5eb3c9(0x178)](_0x3de3f5['id'],{'unitId':this[_0x5eb3c9(0xf4)][_0x5eb3c9(0x207)](),'tableId':this['_tableId'],'field':_0x128157,'index':_0x1fcefd==null?void 0x0:_0x1fcefd[_0x5eb3c9(0x144)]}))throw Error(_0x5eb3c9(0x117)+_0x24ce34+'\x22');return this[_0x5eb3c9(0x113)][_0x5eb3c9(0x152)](B,this[_0x5eb3c9(0xf4)],this,_0x128157['id']);}[_0x16c455(0xf0)](_0x1babe5,_0x241c7f){const _0x478345=_0x16c455;var _0x1cb15b;if(!_0x241c7f||!('externalReferences'in _0x241c7f)||!Array[_0x478345(0xea)](_0x241c7f[_0x478345(0x130)]))throw Error('Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.');let _0x4a4f21=this[_0x478345(0x106)][_0x478345(0x178)](_0x5cd29d['id'],{'unitId':this[_0x478345(0xf4)]['getId'](),'tableId':this[_0x478345(0xc0)],'formula':String(((_0x1cb15b=_0x241c7f[_0x478345(0x173)])==null||(_0x1cb15b=_0x1cb15b[_0x478345(0x1f3)])==null?void 0x0:_0x1cb15b['formula'])??'')});if(!_0x4a4f21[_0x478345(0x139)])throw Error(_0x4a4f21[_0x478345(0xd9)]??'Invalid\x20Base\x20formula.');if(_0x241c7f[_0x478345(0x130)]['length']>0x0&&!this[_0x478345(0x106)][_0x478345(0x178)](_0x3fc287['id'],{'unitId':this['_base'][_0x478345(0x207)](),'references':_0x241c7f['externalReferences']}))throw Error(_0x478345(0x188)+_0x1babe5+'\x22');}[_0x16c455(0xf8)](){const _0xa67bf1=_0x16c455;return this[_0xa67bf1(0x127)]()[_0xa67bf1(0x176)](_0xb32a17=>this[_0xa67bf1(0x113)][_0xa67bf1(0x152)](Y,this['_base'],this,_0xb32a17,this[_0xa67bf1(0x113)]));}[_0x16c455(0xb6)](_0x50201d){const _0x5bbe37=_0x16c455;return this[_0x5bbe37(0x1b4)]()[_0x5bbe37(0x111)][_0x50201d]?this['_injector'][_0x5bbe37(0x152)](Y,this[_0x5bbe37(0xf4)],this,_0x50201d,this[_0x5bbe37(0x113)]):null;}[_0x16c455(0x11b)](_0x2d5226={}){const _0x4a4c6a=_0x16c455;let _0x28806d=this[_0x4a4c6a(0x1b4)](),_0x428f7a=this[_0x4a4c6a(0x127)](_0x2d5226),_0x4922e5=Math['max'](0x0,_0x2d5226[_0x4a4c6a(0x190)]??0x0),_0x4c0e84=_0x2d5226[_0x4a4c6a(0x1a2)]==null?null:Math[_0x4a4c6a(0x1b3)](0x0,_0x2d5226[_0x4a4c6a(0x1a2)]),_0x56545b=yt(_0x428f7a['map'](_0x1da5c7=>_0x28806d[_0x4a4c6a(0x111)][_0x1da5c7])[_0x4a4c6a(0x159)](_0x584e59=>xt(_0x584e59,_0x28806d,_0x2d5226[_0x4a4c6a(0x159)])),_0x28806d,_0x2d5226[_0x4a4c6a(0x1f2)]);return{'records':vt(_0x56545b,_0x2d5226)[_0x4a4c6a(0x176)](_0x80cef2=>this[_0x4a4c6a(0x113)][_0x4a4c6a(0x152)](Y,this[_0x4a4c6a(0xf4)],this,_0x80cef2['id'],this[_0x4a4c6a(0x113)])),'total':_0x56545b[_0x4a4c6a(0x166)],'offset':_0x4922e5,'limit':_0x4c0e84,'hasMore':_0x4c0e84!=null&&_0x4922e5+_0x4c0e84<_0x56545b[_0x4a4c6a(0x166)]};}[_0x16c455(0x187)](_0x3b46a2,_0x4aafa1='id',_0x438aea){const _0x540359=_0x16c455;let _0x51c9b6=this[_0x540359(0x1b4)](),_0x405a79=Date['now'](),_0x13363f={..._0x438aea,'id':_0x2fbf07(0x6),'values':H(_0x51c9b6,_0x3b46a2,_0x4aafa1),'orderKey':(_0x438aea==null?void 0x0:_0x438aea[_0x540359(0xb0)])||''+_0x405a79,'createdAt':(_0x438aea==null?void 0x0:_0x438aea[_0x540359(0x100)])||_0x405a79,'updatedAt':(_0x438aea==null?void 0x0:_0x438aea['updatedAt'])||_0x405a79};if(!this[_0x540359(0x106)][_0x540359(0x178)](_0x3392fe['id'],{'unitId':this[_0x540359(0xf4)][_0x540359(0x207)](),'tableId':this[_0x540359(0xc0)],'record':_0x13363f,'source':_0x55bebd[_0x540359(0x1ae)]}))throw Error(_0x540359(0x19a)+_0x13363f['id']+'\x22');return this[_0x540359(0x113)]['createInstance'](Y,this[_0x540359(0xf4)],this,_0x13363f['id'],this['_injector']);}[_0x16c455(0x1c5)](_0x3a61c9){const _0x14383e=_0x16c455;if(!_0x3a61c9[_0x14383e(0x166)])return[];let _0x11b9d1=this['_getTable'](),_0x4b8142=Date['now'](),_0x38d8fa=_0x3a61c9[_0x14383e(0x176)]((_0x337bf3,_0x26a816)=>{const _0x291092=_0x14383e;var _0x2edd61,_0x5221c6,_0x105db6;return{..._0x337bf3[_0x291092(0x10f)],'id':_0x2fbf07(0x6),'values':H(_0x11b9d1,_0x337bf3[_0x291092(0x1da)],_0x337bf3[_0x291092(0xa7)]??'id'),'orderKey':((_0x2edd61=_0x337bf3[_0x291092(0x10f)])==null?void 0x0:_0x2edd61[_0x291092(0xb0)])||''+(_0x4b8142+_0x26a816),'createdAt':((_0x5221c6=_0x337bf3['record'])==null?void 0x0:_0x5221c6[_0x291092(0x100)])||_0x4b8142,'updatedAt':((_0x105db6=_0x337bf3[_0x291092(0x10f)])==null?void 0x0:_0x105db6[_0x291092(0x1df)])||_0x4b8142};});if(!this[_0x14383e(0x106)][_0x14383e(0x178)](_0x3ad558['id'],{'unitId':this[_0x14383e(0xf4)][_0x14383e(0x207)](),'tableId':this[_0x14383e(0xc0)],'records':_0x38d8fa,'source':_0x55bebd[_0x14383e(0x1ae)]}))throw Error(_0x14383e(0xac));return _0x38d8fa[_0x14383e(0x176)](_0x8a93d2=>this[_0x14383e(0x113)][_0x14383e(0x152)](Y,this[_0x14383e(0xf4)],this,_0x8a93d2['id'],this[_0x14383e(0x113)]));}[_0x16c455(0xe8)](_0x5e34c2){const _0x55f1d8=_0x16c455;return!_0x5e34c2[_0x55f1d8(0x166)]||this['_commandService'][_0x55f1d8(0x178)](_0x4d8eab['id'],{'unitId':this[_0x55f1d8(0xf4)][_0x55f1d8(0x207)](),'tableId':this['_tableId'],'recordIds':_0x5e34c2,'source':_0x55bebd['Facade']});}[_0x16c455(0x15f)](_0x1a89a8,_0x414dfd,_0x362dd5=0x1,_0x5c176c=0x1){const _0x5e257c=_0x16c455;return this[_0x5e257c(0x113)][_0x5e257c(0x152)](K,this[_0x5e257c(0xf4)],this,{'startRow':_0x1a89a8,'endRow':_0x1a89a8+_0x362dd5-0x1,'startColumn':_0x414dfd,'endColumn':_0x414dfd+_0x5c176c-0x1},this[_0x5e257c(0x113)]);}[_0x16c455(0x1aa)](){const _0x3eb6dc=_0x16c455;var _0x51e194;let _0x91df51=_0x5d9764(this[_0x3eb6dc(0x1b4)]()),_0x505e78=((_0x51e194=_0x91df51[_0x3eb6dc(0xdf)])==null?void 0x0:_0x51e194[_0x3eb6dc(0x166)])??0x0,_0x3cae12=_0x91df51[_0x3eb6dc(0xf6)][_0x3eb6dc(0x159)](_0x2767c4=>V(_0x91df51[_0x3eb6dc(0x155)][_0x2767c4]))['length'];return this['getRange'](0x0,0x0,Math[_0x3eb6dc(0x1b3)](_0x505e78,0x1),Math[_0x3eb6dc(0x1b3)](_0x3cae12,0x1));}[_0x16c455(0x15d)](){const _0x4ba476=_0x16c455;let _0x4eae63=this[_0x4ba476(0x1b4)]();return _0x4eae63[_0x4ba476(0x177)][_0x4ba476(0x159)](_0x31a4de=>_0x4eae63[_0x4ba476(0x162)][_0x31a4de])[_0x4ba476(0x176)](_0x51431d=>this['_injector'][_0x4ba476(0x152)](X,this[_0x4ba476(0xf4)],this,_0x51431d,this[_0x4ba476(0x113)]));}[_0x16c455(0x203)](_0x4a2c0e){const _0x569075=_0x16c455;return this[_0x569075(0x1b4)]()['views'][_0x4a2c0e]?this[_0x569075(0x113)][_0x569075(0x152)](X,this[_0x569075(0xf4)],this,_0x4a2c0e,this[_0x569075(0x113)]):null;}[_0x16c455(0xd8)](_0x89dac3){const _0x1c6e30=_0x16c455;let _0x1f428e=this['_getTable'](),_0x33b810=Object['values'](_0x1f428e[_0x1c6e30(0x162)])[_0x1c6e30(0xb5)](_0x1f26e7=>_0x1f26e7[_0x1c6e30(0x103)]===_0x89dac3);return _0x33b810?this[_0x1c6e30(0x113)][_0x1c6e30(0x152)](X,this[_0x1c6e30(0xf4)],this,_0x33b810['id'],this[_0x1c6e30(0x113)]):null;}[_0x16c455(0xd1)](_0x3bcbf9,_0x10f229,_0xcfd2a0){const _0x14483a=_0x16c455;var _0x3fae1a,_0x35c93c,_0x207b7e,_0x1f38b2;let _0x367f8f=this[_0x14483a(0x1b4)](),_0x15da68=(_0xcfd2a0==null||(_0x3fae1a=_0xcfd2a0[_0x14483a(0x1bf)])==null?void 0x0:_0x3fae1a[_0x14483a(0xf6)])??_0x367f8f[_0x14483a(0xf6)],_0x2c0bc9=[_0x45a674,..._0x15da68[_0x14483a(0x159)](_0x228c02=>V(_0x367f8f[_0x14483a(0x155)][_0x228c02]))],_0x3dd9bc={..._0xcfd2a0==null?void 0x0:_0xcfd2a0[_0x14483a(0x1bf)],'id':_0x2fbf07(0x6),'name':_0x3bcbf9,'type':_0x10f229,'tableId':this[_0x14483a(0xc0)],'config':(_0xcfd2a0==null||(_0x35c93c=_0xcfd2a0[_0x14483a(0x1bf)])==null?void 0x0:_0x35c93c[_0x14483a(0x1f3)])??{},'fieldOrder':_0x2c0bc9,'fieldSettings':{..._0xcfd2a0==null||(_0x207b7e=_0xcfd2a0[_0x14483a(0x1bf)])==null?void 0x0:_0x207b7e[_0x14483a(0x1de)],[_0x45a674]:{..._0xcfd2a0==null||(_0x1f38b2=_0xcfd2a0['view'])==null||(_0x1f38b2=_0x1f38b2[_0x14483a(0x1de)])==null?void 0x0:_0x1f38b2[_0x45a674],'hidden':!0x0}}};if(!this[_0x14483a(0x106)][_0x14483a(0x178)](_0x4a240d['id'],{'unitId':this[_0x14483a(0xf4)][_0x14483a(0x207)](),'tableId':this[_0x14483a(0xc0)],'view':_0x3dd9bc,'index':_0xcfd2a0==null?void 0x0:_0xcfd2a0[_0x14483a(0x144)]}))throw Error(_0x14483a(0x186)+_0x3bcbf9+'\x22');return this[_0x14483a(0x113)][_0x14483a(0x152)](X,this['_base'],this,_0x3dd9bc['id'],this[_0x14483a(0x113)]);}['getSchema'](){const _0x1a7d60=_0x16c455;let _0x4b10aa=this['_getTable'](),_0x1eeaca=_0x4b10aa[_0x1a7d60(0xf6)][_0x1a7d60(0x159)](_0x2e5f25=>V(_0x4b10aa['fields'][_0x2e5f25])),_0x2e2d3d=_0x4b10aa[_0x1a7d60(0x177)]['filter'](_0x36cd44=>_0x4b10aa[_0x1a7d60(0x162)][_0x36cd44]);return{'id':_0x4b10aa['id'],'name':_0x4b10aa[_0x1a7d60(0x103)],'formulaName':this[_0x1a7d60(0x15c)](),'primaryFieldId':_0x4b10aa[_0x1a7d60(0x185)],'fieldIds':_0x1eeaca,'viewIds':_0x2e2d3d,'recordCount':this[_0x1a7d60(0x127)]()[_0x1a7d60(0x166)],'fields':_0x1eeaca['map'](_0x1e199c=>{const _0x1d9a27=_0x1a7d60;let _0x554402=_0x4b10aa[_0x1d9a27(0x155)][_0x1e199c];return{'id':_0x554402['id'],'name':_0x554402[_0x1d9a27(0x103)],'type':_0x554402[_0x1d9a27(0x14d)],'config':_0x554402[_0x1d9a27(0x1f3)],'readonly':_0x554402['readonly'],'description':_0x554402[_0x1d9a27(0x121)]};}),'views':_0x2e2d3d['map'](_0x199893=>{const _0x47cc21=_0x1a7d60;let _0x4dc2db=_0x4b10aa[_0x47cc21(0x162)][_0x199893];return{'id':_0x4dc2db['id'],'name':_0x4dc2db['name'],'type':_0x4dc2db['type']};})};}[_0x16c455(0x1b4)](){const _0x3a9a4e=_0x16c455;let _0x4a02ca=this[_0x3a9a4e(0xf4)][_0x3a9a4e(0xaa)]()[_0x3a9a4e(0x15a)]()[_0x3a9a4e(0x148)][this[_0x3a9a4e(0xc0)]];if(!_0x4a02ca)throw Error(_0x3a9a4e(0xed)+this[_0x3a9a4e(0xc0)]+_0x3a9a4e(0x1f6));return _0x4a02ca;}[_0x16c455(0x127)](_0x5d196f={}){const _0x6db704=_0x16c455;let _0x4b06be=this[_0x6db704(0xf4)][_0x6db704(0xaa)]()[_0x6db704(0x15a)](),_0x4578bb=this[_0x6db704(0x1b4)]();if(_0x5d196f[_0x6db704(0x11c)]){let _0x2da279=this['_projectionService'][_0x6db704(0xef)](_0x4b06be,this['_tableId'],_0x5d196f[_0x6db704(0x11c)]);if('rows'in _0x2da279&&Array[_0x6db704(0xea)](_0x2da279['rows']))return _0x2da279[_0x6db704(0x137)][_0x6db704(0x176)](_0x49582f=>_0x49582f[_0x6db704(0xa8)]);}return(_0x4578bb[_0x6db704(0xdf)]?_0x4578bb[_0x6db704(0xdf)]['map'](_0x187456=>_0x4578bb[_0x6db704(0x111)][_0x187456]):Object['values'](_0x4578bb[_0x6db704(0x111)])[_0x6db704(0x1f2)]((_0x3493b6,_0x310ddb)=>_0x3493b6[_0x6db704(0xb0)][_0x6db704(0x14c)](_0x310ddb[_0x6db704(0xb0)])))[_0x6db704(0x159)](_0x300223=>_0x300223)['map'](_0x5c1b84=>_0x5c1b84['id']);}};Z=z([R(0x3,_0x18d666),R(0x4,_0x5e35b8),R(0x5,_0x499ad2)],Z);function vt(_0x54f84b,_0x4b2a36){const _0x62559e=_0x16c455;let _0x2414eb=Math[_0x62559e(0x1b3)](0x0,_0x4b2a36[_0x62559e(0x190)]??0x0);return _0x4b2a36['limit']==null?_0x54f84b['slice'](_0x2414eb):_0x54f84b[_0x62559e(0xfe)](_0x2414eb,_0x2414eb+Math['max'](0x0,_0x4b2a36[_0x62559e(0x1a2)]));}function yt(_0x1109b4,_0x47e426,_0x5c9f4d=[]){return _0x5c9f4d['length']?[..._0x1109b4]['sort']((_0x177546,_0x4c2923)=>{const _0x1e6b40=_0x459a;for(let _0x38a012 of _0x5c9f4d){var _0x361dee;let _0x3d8981=_0x38a012[_0x1e6b40(0x189)]===_0x1fbd79[_0x1e6b40(0xb1)]?-0x1:0x1,_0x5847af=bt(_0x177546[_0x1e6b40(0x1da)][_0x38a012['fieldId']],_0x4c2923[_0x1e6b40(0x1da)][_0x38a012[_0x1e6b40(0x206)]],(_0x361dee=_0x47e426['fields'][_0x38a012[_0x1e6b40(0x206)]])==null?void 0x0:_0x361dee[_0x1e6b40(0x14d)]);if(_0x5847af!==0x0)return _0x5847af*_0x3d8981;}return String(_0x177546[_0x1e6b40(0xb0)]??_0x177546['id'])['localeCompare'](String(_0x4c2923[_0x1e6b40(0xb0)]??_0x4c2923['id']));}):_0x1109b4;}function bt(_0x5a68cc,_0x178dbe,_0x31a9f8){const _0x18c044=_0x16c455;return _0x5a68cc==null&&_0x178dbe==null?0x0:_0x5a68cc==null?-0x1:_0x178dbe==null?0x1:typeof _0x5a68cc==_0x18c044(0xd3)&&typeof _0x178dbe==_0x18c044(0xd3)?_0x5a68cc-_0x178dbe:_0x31a9f8===_0x5c585e[_0x18c044(0x142)]?Number(_0x5a68cc)-Number(_0x178dbe):String(_0x5a68cc)[_0x18c044(0x14c)](String(_0x178dbe));}function xt(_0x5506fc,_0x2a069b,_0x4a2d96){const _0x414ce4=_0x16c455;var _0x37c178;if(!_0x4a2d96||!((_0x37c178=_0x4a2d96['conditions'])!=null&&_0x37c178['length']))return!0x0;let {conjunction:_0x3c6d79=_0xf11f7f['OR'],conditions:_0x12c877}=_0x4a2d96;return _0x3c6d79===_0xf11f7f['AND']&&_0x12c877[_0x414ce4(0x166)]>0x1?_0x12c877[_0x414ce4(0x17a)](_0x48acb0=>St(_0x5506fc,_0x2a069b,_0x48acb0)):_0x12c877[_0x414ce4(0x1a8)](_0x87fb17=>St(_0x5506fc,_0x2a069b,_0x87fb17));}function St(_0x556020,_0x2f858c,_0x1d0d7a){const _0xb633ec=_0x16c455;let _0x3db4be=_0x556020['values'][_0x1d0d7a[_0xb633ec(0x206)]],_0x1f0563=_0x2f858c['fields'][_0x1d0d7a[_0xb633ec(0x206)]];if(Ct(_0x1d0d7a)){let _0x5242c8=wt(_0x1d0d7a)['test'](String(_0x3db4be??''));return _0x1d0d7a[_0xb633ec(0x10c)]==='matches'?_0x5242c8:!_0x5242c8;}return!_0x1f0563||_0x1c8da0(_0x3db4be,_0x1d0d7a[_0xb633ec(0x10c)],_0x1d0d7a['value'],_0x1f0563);}function Ct(_0xfcd20e){const _0xdef729=_0x16c455;return _0xfcd20e[_0xdef729(0x10c)]===_0xdef729(0xa9)||_0xfcd20e['operator']===_0xdef729(0x1b6);}function wt(_0x3c8cd7){const _0x41efad=_0x16c455;let _0x440705=String(_0x3c8cd7['value']??'');if(_0x440705[_0x41efad(0x166)]>0x200)throw Error(_0x41efad(0x1ad));try{return new RegExp(_0x440705,_0x3c8cd7['caseSensitive']?void 0x0:'i');}catch(_0x3288fa){throw Error(_0x41efad(0xa3)+_0x440705+'.\x20'+(_0x3288fa instanceof Error?_0x3288fa[_0x41efad(0x200)]:String(_0x3288fa)));}}function Tt(_0xe96adb,_0x48eb71,_0x1d62b5){const _0xf01a3c=_0x16c455;if(_0x1d62b5[_0xf01a3c(0x14d)]!=='invalid'&&_0x1d62b5[_0xf01a3c(0x14d)]!==_0xf01a3c(0x18a)){var _0x18c1e2;if(_0x1d62b5[_0xf01a3c(0x14d)]===_0x1eb8c0[_0xf01a3c(0x1db)]){var _0x4e5b53;let _0x38fb76=[((_0x4e5b53=_0x1d62b5[_0xf01a3c(0x155)])==null||(_0x4e5b53=_0x4e5b53[0x0])==null?void 0x0:_0x4e5b53['id'])??_0xe96adb[_0xf01a3c(0x185)],..._0x1d62b5[_0xf01a3c(0xd6)]??[]];return Array['from'](new Set(_0x38fb76['filter'](_0x489728=>!!_0xe96adb[_0xf01a3c(0x155)][_0x489728])));}if((_0x18c1e2=_0x1d62b5[_0xf01a3c(0x155)])!=null&&_0x18c1e2[_0xf01a3c(0x166)])return _0x1d62b5['fields'][_0xf01a3c(0x176)](_0x2b05cc=>_0x2b05cc['id'])[_0xf01a3c(0x159)](_0x4455b8=>{const _0xca399b=_0xf01a3c;var _0x44c602;return!(!_0xe96adb[_0xca399b(0x155)][_0x4455b8]||_0x48eb71!=null&&(_0x44c602=_0x48eb71[_0xca399b(0x1de)])!=null&&(_0x44c602=_0x44c602[_0x4455b8])!=null&&_0x44c602['hidden']);});}return _0xe96adb[_0xf01a3c(0xf6)][_0xf01a3c(0x159)](_0x5abcd3=>{const _0x30d26e=_0xf01a3c;var _0x3e9be1;return!(!_0xe96adb[_0x30d26e(0x155)][_0x5abcd3]||_0x48eb71!=null&&(_0x3e9be1=_0x48eb71[_0x30d26e(0x1de)])!=null&&(_0x3e9be1=_0x3e9be1[_0x5abcd3])!=null&&_0x3e9be1[_0x30d26e(0x1ce)]);});}let Q=class extends _0x287fc3[_0x16c455(0x202)]{constructor(_0x22eceb,_0x398b77,_0xbde0b9,_0x1743ae,_0x480d89){const _0x3969a1=_0x16c455;super(),this[_0x3969a1(0xf4)]=_0x22eceb,this[_0x3969a1(0x113)]=_0x398b77,this[_0x3969a1(0x16e)]=_0xbde0b9,this['_commandService']=_0x1743ae,this[_0x3969a1(0x1a4)]=_0x480d89;}['getBase'](){const _0x529cd3=_0x16c455;return this[_0x529cd3(0xf4)];}[_0x16c455(0x207)](){const _0x3c201c=_0x16c455;return this['_base'][_0x3c201c(0x109)]();}['getPermission'](){const _0x2624db=_0x16c455;return new at(this[_0x2624db(0x207)](),this[_0x2624db(0x106)],this['_permissionService']);}[_0x16c455(0xc4)](){const _0x5d51ae=_0x16c455;return this[_0x5d51ae(0x16e)][_0x5d51ae(0x1b0)](this[_0x5d51ae(0x207)]())??_0x49e7b0['deepClone'](this[_0x5d51ae(0xf4)][_0x5d51ae(0x15a)]());}[_0x16c455(0x180)](){const _0x3b6b8a=_0x16c455;return this[_0x3b6b8a(0xf4)][_0x3b6b8a(0x15a)]()[_0x3b6b8a(0x103)];}[_0x16c455(0xf1)](_0xd36e28){const _0x1d6bff=_0x16c455;this['_commandService'][_0x1d6bff(0x178)](_0x841eca['id'],{'unitId':this['getId'](),'name':_0xd36e28});}[_0x16c455(0xc3)](){const _0x4d55d6=_0x16c455;let _0x23fc8b=this['_base']['getSnapshot']();return _0x23fc8b[_0x4d55d6(0xca)][_0x4d55d6(0x176)](_0x20a963=>_0x23fc8b[_0x4d55d6(0x148)][_0x20a963])[_0x4d55d6(0x159)](_0x1f523c=>_0x1f523c)[_0x4d55d6(0x176)](_0x4bf6a5=>this[_0x4d55d6(0x113)][_0x4d55d6(0x152)](Z,this,_0x4bf6a5['id'],this['_injector']));}[_0x16c455(0x15e)](_0x222c5e){const _0x23552e=_0x16c455;let _0x2fbffd=this['_base'][_0x23552e(0x15a)]()[_0x23552e(0x148)][_0x222c5e];return _0x2fbffd?this[_0x23552e(0x113)][_0x23552e(0x152)](Z,this,_0x2fbffd['id'],this[_0x23552e(0x113)]):null;}[_0x16c455(0x1fd)](_0x5b0f31){const _0x5c7fdf=_0x16c455;let _0x44bf13=this['_base'][_0x5c7fdf(0x15a)](),_0x4ffd5d=Object[_0x5c7fdf(0x1da)](_0x44bf13[_0x5c7fdf(0x148)])['find'](_0x14ab3f=>_0x14ab3f[_0x5c7fdf(0x103)]===_0x5b0f31);return _0x4ffd5d?this[_0x5c7fdf(0x113)][_0x5c7fdf(0x152)](Z,this,_0x4ffd5d['id'],this['_injector']):null;}[_0x16c455(0x135)](_0xc54d79,_0x4e8dc2){const _0x296cc1=_0x16c455;let _0x4ef377=_0x440368({'id':_0x2fbf07(),'name':_0xc54d79,..._0x4e8dc2==null?void 0x0:_0x4e8dc2[_0x296cc1(0x1e6)],'primaryFieldName':_0x4e8dc2==null?void 0x0:_0x4e8dc2[_0x296cc1(0x1dd)]}),_0x2fc284=_0x49e7b0[_0x296cc1(0xc1)](_0x4ef377,(_0x4e8dc2==null?void 0x0:_0x4e8dc2[_0x296cc1(0x1e6)])??{}),_0x11de6a=_0x2628b6(this[_0x296cc1(0xf4)][_0x296cc1(0x15a)](),_0x2fc284[_0x296cc1(0x103)]);if(!_0x11de6a[_0x296cc1(0x139)])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0x2fc284['name']+_0x296cc1(0x1f5)+_0x229298+'\x20'+_0x11de6a[_0x296cc1(0xd9)]);if(!this[_0x296cc1(0x106)]['syncExecuteCommand'](_0x5c901d['id'],{'unitId':this['_base'][_0x296cc1(0x109)](),'table':_0x2fc284,'index':_0x4e8dc2==null?void 0x0:_0x4e8dc2[_0x296cc1(0x144)]}))throw Error(_0x296cc1(0x17d)+_0xc54d79+'\x22.');return this[_0x296cc1(0x113)]['createInstance'](Z,this,_0x2fc284['id'],this['_injector']);}[_0x16c455(0x1c1)](_0x5878da){const _0x1236aa=_0x16c455;let _0x19561f=typeof _0x5878da==_0x1236aa(0x1d6)?_0x5878da:_0x5878da['getId']();if(!this['_commandService'][_0x1236aa(0x178)](_0x971b27['id'],{'unitId':this[_0x1236aa(0xf4)][_0x1236aa(0x109)](),'tableId':_0x19561f}))throw Error(_0x1236aa(0x1e3)+_0x19561f+'\x22.');return!0x0;}[_0x16c455(0x13e)](_0x5d5e24,_0x2e34a5){const _0x7586c9=_0x16c455;let _0x4434e3=this[_0x7586c9(0xf4)][_0x7586c9(0x15a)](),_0x473a2f=typeof _0x5d5e24==_0x7586c9(0x1d6)?_0x5d5e24:_0x5d5e24[_0x7586c9(0x207)](),_0xbfeece=_0x4434e3[_0x7586c9(0x148)][_0x473a2f];if(!_0xbfeece)throw Error(_0x7586c9(0x1b5)+_0x473a2f+_0x7586c9(0x1f6));let _0x1d685e=_0x4434e3[_0x7586c9(0xca)][_0x7586c9(0x107)](_0x473a2f)+0x1,_0x2646f6=_0x2fbf07(),_0xf618e7=_0x35aced(_0xbfeece,{'id':_0x2646f6,'name':_0x9242a1(_0x4434e3,_0xbfeece[_0x7586c9(0x103)]+_0x7586c9(0x182)),'includeRecords':(_0x2e34a5==null?void 0x0:_0x2e34a5['includeRecords'])??!0x1,'regenerateViewIds':(_0x2e34a5==null?void 0x0:_0x2e34a5[_0x7586c9(0xb2)])??!0x1});if(!this[_0x7586c9(0x106)]['syncExecuteCommand'](_0x5c901d['id'],{'unitId':this[_0x7586c9(0xf4)]['getUnitId'](),'table':_0xf618e7,'index':_0x1d685e}))throw Error(_0x7586c9(0x204)+_0x473a2f+'\x22.');return this[_0x7586c9(0x113)][_0x7586c9(0x152)](Z,this,_0xf618e7['id'],this[_0x7586c9(0x113)]);}[_0x16c455(0xf9)](){const _0x50a277=_0x16c455;let _0x372646=this[_0x50a277(0xf4)]['getSnapshot']();return{'id':_0x372646['id'],'name':_0x372646[_0x50a277(0x103)],'tables':this['getTables']()[_0x50a277(0x176)](_0x3d1289=>_0x3d1289[_0x50a277(0xf9)]())};}};Q=z([R(0x1,_0x210e70(_0x291a51)),R(0x2,_0x4e24c1),R(0x3,_0x18d666),R(0x4,_0x5e35b8)],Q);var Et=class extends _0x292e04{['_initialize'](){const _0x2d7486=_0x16c455;this[_0x2d7486(0x1f9)](),this[_0x2d7486(0xfc)]();}[_0x16c455(0x14a)](_0x381232={},_0x1d123f){const _0x4814ac=_0x16c455;let _0x19f500=this['_univerInstanceService'][_0x4814ac(0x193)](_0x251beb[_0x4814ac(0xe1)],_0x381232,_0x1d123f);return this[_0x4814ac(0x113)][_0x4814ac(0x152)](Q,_0x19f500);}[_0x16c455(0x12e)](){const _0x29659b=_0x16c455;let _0x2f79f5=this[_0x29659b(0xd5)][_0x29659b(0x18d)](_0x251beb[_0x29659b(0xe1)]);return _0x2f79f5?this[_0x29659b(0x113)][_0x29659b(0x152)](Q,_0x2f79f5):null;}['getBase'](_0x7296fd){const _0x26fc7e=_0x16c455;let _0x3f4623=this[_0x26fc7e(0xd5)]['getUnit'](_0x7296fd,_0x251beb[_0x26fc7e(0xe1)]);return _0x3f4623?this[_0x26fc7e(0x113)][_0x26fc7e(0x152)](Q,_0x3f4623):null;}['getBases'](){const _0x1ee196=_0x16c455;return this['_univerInstanceService'][_0x1ee196(0x1b1)](_0x251beb[_0x1ee196(0xe1)])[_0x1ee196(0x176)](_0x144a7a=>this[_0x1ee196(0x113)][_0x1ee196(0x152)](Q,_0x144a7a));}[_0x16c455(0xfc)](){const _0x13dd80=_0x16c455;this[_0x13dd80(0x160)](this[_0x13dd80(0x1b9)](this[_0x13dd80(0x112)]['BaseHierarchyChanged'],()=>this[_0x13dd80(0x106)][_0x13dd80(0xa4)]((_0x34289d,_0x3be2a9)=>{const _0x57c24b=_0x13dd80;var _0x4f77f6;if(!$(_0x34289d,_0x2ad321))return;let _0x2e1d5b=_0x34289d[_0x57c24b(0xdd)];if(!((_0x4f77f6=_0x2e1d5b['hierarchyChanges'])!=null&&_0x4f77f6[_0x57c24b(0x166)]))return;let _0x5a9d84=this[_0x57c24b(0xaa)](_0x2e1d5b[_0x57c24b(0x183)]),_0x2657cb=_0x5a9d84==null?void 0x0:_0x5a9d84[_0x57c24b(0x15e)](_0x2e1d5b['hierarchyChanges'][0x0][_0x57c24b(0x164)]);if(!_0x5a9d84||!_0x2657cb)return;let _0x39c841={'base':_0x5a9d84,'table':_0x2657cb,'changes':_0x2e1d5b[_0x57c24b(0x105)],'source':_0x3be2a9!=null&&_0x3be2a9[_0x57c24b(0xc8)]?_0x55bebd[_0x57c24b(0x1ee)]:_0x2e1d5b['source']??_0x55bebd['UI']};this[_0x57c24b(0xe3)](this[_0x57c24b(0x112)][_0x57c24b(0x18b)],_0x39c841);}))),this['disposeWithMe'](this[_0x13dd80(0x1b9)](this[_0x13dd80(0x112)][_0x13dd80(0xfa)],()=>this[_0x13dd80(0x106)][_0x13dd80(0xa4)](_0x2182a4=>{const _0x46df6e=_0x13dd80;if(_0x2182a4['id']!==_0x5c901d['id'])return;let {unitId:_0x4cd35d,table:_0x4dd934,index:_0x44fbf6}=_0x2182a4['params'],_0x3db65d=this['getBase'](_0x4cd35d);if(!_0x3db65d)return;let _0x4ba1c8={'base':_0x3db65d,'table':_0x4dd934,'index':_0x44fbf6};this[_0x46df6e(0xe3)](this[_0x46df6e(0x112)][_0x46df6e(0xfa)],_0x4ba1c8);}))),this[_0x13dd80(0x160)](this[_0x13dd80(0x1b9)](this['Event']['BaseTableFieldCreated'],()=>this[_0x13dd80(0x106)][_0x13dd80(0xa4)](_0x38fac1=>{const _0x2140fe=_0x13dd80;if(_0x38fac1['id']!==_0x3de3f5['id'])return;let {unitId:_0x447011,tableId:_0x27519e,field:_0x5becc5,index:_0x526854,viewIndexes:_0x28d968}=_0x38fac1['params'],_0x243b91=this[_0x2140fe(0xaa)](_0x447011);if(!_0x243b91)return;let _0x1454c2=_0x243b91[_0x2140fe(0x15e)](_0x27519e);if(!_0x1454c2)return;let _0x4cac68={'base':_0x243b91,'table':_0x1454c2,'field':_0x5becc5,'index':_0x526854,'viewIndexes':_0x28d968};this[_0x2140fe(0xe3)](this[_0x2140fe(0x112)][_0x2140fe(0x1c9)],_0x4cac68);}))),this[_0x13dd80(0x160)](this[_0x13dd80(0x1b9)](this[_0x13dd80(0x112)][_0x13dd80(0x12c)],()=>this['_commandService'][_0x13dd80(0xa4)](_0x12e433=>{const _0xe094=_0x13dd80;if(_0x12e433['id']!==_0x3392fe['id']&&_0x12e433['id']!==_0x3ad558['id'])return;let _0xf19533=_0x12e433['params'],{unitId:_0x3380f6,tableId:_0x1b9516}=_0xf19533,_0x261cb3=_0xf19533[_0xe094(0x111)]??[_0xf19533['record']],_0xba8729=this[_0xe094(0xaa)](_0x3380f6);if(!_0xba8729)return;let _0x2511c9=_0xba8729[_0xe094(0x15e)](_0x1b9516);if(!_0x2511c9)return;let _0x2eb0d3={'base':_0xba8729,'table':_0x2511c9,'records':_0x261cb3};this[_0xe094(0xe3)](this['Event'][_0xe094(0x12c)],_0x2eb0d3);}))),this[_0x13dd80(0x160)](this[_0x13dd80(0x1b9)](this[_0x13dd80(0x112)][_0x13dd80(0x114)],()=>this[_0x13dd80(0x106)][_0x13dd80(0xa4)](_0x174cbc=>{const _0x394339=_0x13dd80;if(_0x174cbc['id']!==_0x4a240d['id'])return;let {unitId:_0x3aa0d6,tableId:_0x4bd35e,view:_0x1d2fcf,index:_0x29d62c}=_0x174cbc[_0x394339(0xdd)],_0x50cc60=this['getBase'](_0x3aa0d6);if(!_0x50cc60)return;let _0x3c8286=_0x50cc60[_0x394339(0x15e)](_0x4bd35e);if(!_0x3c8286)return;let _0x5360ce={'base':_0x50cc60,'table':_0x3c8286,'view':_0x1d2fcf,'index':_0x29d62c};this[_0x394339(0xe3)](this[_0x394339(0x112)][_0x394339(0x114)],_0x5360ce);}))),this['disposeWithMe'](this[_0x13dd80(0x1b9)](this[_0x13dd80(0x112)]['BaseTableCellValueChanged'],()=>this['_commandService']['onCommandExecuted'](_0x229c77=>{const _0xf0c1a2=_0x13dd80;if(_0x229c77['id']!==_0x56896a['id'])return;let {unitId:_0x3011e0,tableId:_0x285105,recordId:_0x46e609,fieldId:_0x5a73a2,value:_0x4ef8f3}=_0x229c77[_0xf0c1a2(0xdd)],_0x186e38=this[_0xf0c1a2(0xaa)](_0x3011e0);if(!_0x186e38)return;let _0x2c83fc=_0x186e38[_0xf0c1a2(0x15e)](_0x285105);if(!_0x2c83fc)return;let _0x52fd74=_0x2c83fc[_0xf0c1a2(0x181)](_0x5a73a2);if(!_0x52fd74)return;let _0x9045c7=_0x2c83fc[_0xf0c1a2(0xb6)](_0x46e609);if(!_0x9045c7)return;let _0x1e983d={'base':_0x186e38,'table':_0x2c83fc,'field':_0x52fd74,'record':_0x9045c7,'value':_0x4ef8f3};this['fireEvent'](this['Event'][_0xf0c1a2(0x1d8)],_0x1e983d);})));}[_0x16c455(0x1f9)](){const _0x5ad95a=_0x16c455;this[_0x5ad95a(0x160)](this[_0x5ad95a(0x1b9)](this[_0x5ad95a(0x112)][_0x5ad95a(0x161)],()=>this[_0x5ad95a(0x106)][_0x5ad95a(0x1ba)](_0x3ba350=>{const _0x43bf2b=_0x5ad95a;if($(_0x3ba350,_0xe2fa79)){let {unitId:_0x284a17,tableId:_0x6dd0ce,patches:_0x203072,source:_0x262eeb=_0x55bebd['UI']}=_0x3ba350[_0x43bf2b(0xdd)],_0x536e13=this[_0x43bf2b(0x1d7)](_0x284a17,_0x6dd0ce);if(!_0x536e13)return;this[_0x43bf2b(0x17b)](_0x536e13[_0x43bf2b(0xc2)],_0x536e13[_0x43bf2b(0x1e6)],_0x25cefd(_0x536e13[_0x43bf2b(0x1e6)]['getTable'](),_0x203072),_0x262eeb);return;}if($(_0x3ba350,_0x5ac327)){let {unitId:_0x482b74,tableId:_0x151cca,patches:_0x11fd8a,source:_0x360105=_0x55bebd['UI']}=_0x3ba350['params'],_0x5c4d5e=this[_0x43bf2b(0x1d7)](_0x482b74,_0x151cca);if(!_0x5c4d5e)return;let _0x186549=_0x5c4d5e[_0x43bf2b(0x1e6)][_0x43bf2b(0x147)]();this[_0x43bf2b(0x17b)](_0x5c4d5e[_0x43bf2b(0xc2)],_0x5c4d5e[_0x43bf2b(0x1e6)],_0x25cefd(_0x186549,_0x5f2520(_0x186549,_0x11fd8a)),_0x360105);return;}if($(_0x3ba350,_0x3392fe)){let _0x442afd=_0x3ba350['params'],_0x38eee0=this[_0x43bf2b(0x1d7)](_0x442afd[_0x43bf2b(0x183)],_0x442afd['tableId']);if(!_0x38eee0)return;this[_0x43bf2b(0x17b)](_0x38eee0[_0x43bf2b(0xc2)],_0x38eee0[_0x43bf2b(0x1e6)],_0x21de02(_0x38eee0[_0x43bf2b(0x1e6)][_0x43bf2b(0x147)](),[_0x442afd[_0x43bf2b(0x10f)]]),_0x442afd['source']??_0x55bebd['UI']);return;}if($(_0x3ba350,_0x3ad558)){let _0x12a10c=_0x3ba350[_0x43bf2b(0xdd)],_0x35fd5d=this[_0x43bf2b(0x1d7)](_0x12a10c[_0x43bf2b(0x183)],_0x12a10c[_0x43bf2b(0x164)]);if(!_0x35fd5d)return;this[_0x43bf2b(0x17b)](_0x35fd5d[_0x43bf2b(0xc2)],_0x35fd5d[_0x43bf2b(0x1e6)],_0x21de02(_0x35fd5d[_0x43bf2b(0x1e6)]['getTable'](),_0x12a10c['records']),_0x12a10c[_0x43bf2b(0x191)]??_0x55bebd['UI']);return;}if($(_0x3ba350,_0x12761d)){let _0x3b4732=_0x3ba350[_0x43bf2b(0xdd)],_0x3121cc=this[_0x43bf2b(0x1d7)](_0x3b4732[_0x43bf2b(0x183)],_0x3b4732[_0x43bf2b(0x164)]);if(!_0x3121cc)return;this['_fireBeforeHierarchyChange'](_0x3121cc[_0x43bf2b(0xc2)],_0x3121cc[_0x43bf2b(0x1e6)],_0x21de02(_0x3121cc['table'][_0x43bf2b(0x147)](),[_0x3b4732[_0x43bf2b(0x10f)]]),_0x3b4732['source']??_0x55bebd['UI']);return;}if($(_0x3ba350,_0x1c837a)){let _0x185c71=_0x3ba350[_0x43bf2b(0xdd)],_0x32b190=this[_0x43bf2b(0x1d7)](_0x185c71[_0x43bf2b(0x183)],_0x185c71[_0x43bf2b(0x164)]);if(!_0x32b190)return;let _0x1bb568=_0x32b190[_0x43bf2b(0x1e6)][_0x43bf2b(0x147)](),_0x234435=_0x185c71[_0x43bf2b(0x206)]??_0x4e6087(_0x1bb568),_0x4e3dea=_0x1a3563(_0x1bb568,_0x234435)['parentByRecordId'][_0x43bf2b(0x14f)](_0x185c71[_0x43bf2b(0xa8)])??null;this[_0x43bf2b(0x17b)](_0x32b190['base'],_0x32b190[_0x43bf2b(0x1e6)],[{'tableId':_0x185c71[_0x43bf2b(0x164)],'fieldId':_0x234435,'recordId':_0x185c71[_0x43bf2b(0xa8)],'oldParentRecordId':_0x4e3dea,'parentRecordId':_0x185c71[_0x43bf2b(0xd0)]}],_0x185c71[_0x43bf2b(0x191)]??_0x55bebd['UI']);return;}if($(_0x3ba350,_0x2e5ba5)){let _0x11226e=_0x3ba350[_0x43bf2b(0xdd)],_0x296904=this[_0x43bf2b(0x1d7)](_0x11226e[_0x43bf2b(0x183)],_0x11226e[_0x43bf2b(0x164)]);if(!_0x296904)return;let _0xe9c929=_0x11226e[_0x43bf2b(0x206)]??_0x4e6087(_0x296904[_0x43bf2b(0x1e6)][_0x43bf2b(0x147)]());this[_0x43bf2b(0x17b)](_0x296904['base'],_0x296904['table'],[{'tableId':_0x11226e[_0x43bf2b(0x164)],'fieldId':_0xe9c929,'recordId':_0x11226e[_0x43bf2b(0x10f)]['id'],'oldParentRecordId':null,'parentRecordId':_0x11226e['parentRecordId']}],_0x11226e[_0x43bf2b(0x191)]??_0x55bebd['UI']);return;}if($(_0x3ba350,_0x2a07c2)){let _0x3b5c4c=_0x3ba350[_0x43bf2b(0xdd)],_0x57929a=this['_getHierarchyEventContext'](_0x3b5c4c['unitId'],_0x3b5c4c[_0x43bf2b(0x164)]);if(!_0x57929a)return;this['_fireBeforeHierarchyChange'](_0x57929a[_0x43bf2b(0xc2)],_0x57929a[_0x43bf2b(0x1e6)],_0xf2e815(_0x57929a['table'][_0x43bf2b(0x147)](),[_0x3b5c4c[_0x43bf2b(0xa8)]]),_0x3b5c4c[_0x43bf2b(0x191)]??_0x55bebd['UI']);return;}if($(_0x3ba350,_0x4d8eab)){let _0x6617d5=_0x3ba350['params'],_0x3ab774=this[_0x43bf2b(0x1d7)](_0x6617d5['unitId'],_0x6617d5[_0x43bf2b(0x164)]);if(!_0x3ab774)return;this[_0x43bf2b(0x17b)](_0x3ab774['base'],_0x3ab774[_0x43bf2b(0x1e6)],_0xf2e815(_0x3ab774[_0x43bf2b(0x1e6)]['getTable'](),_0x6617d5[_0x43bf2b(0x1fb)]),_0x6617d5[_0x43bf2b(0x191)]??_0x55bebd['UI']);return;}if(!$(_0x3ba350,_0x56896a))return;let _0x57269e=_0x3ba350[_0x43bf2b(0xdd)],_0x5af5a4=this['_getHierarchyEventContext'](_0x57269e[_0x43bf2b(0x183)],_0x57269e[_0x43bf2b(0x164)]);if(!_0x5af5a4)return;let _0x24ccc5=_0x5af5a4['table'][_0x43bf2b(0x147)]();if(!_0x33c8d6(_0x24ccc5)['includes'](_0x57269e[_0x43bf2b(0x206)]))return;let _0x14ee33=_0x1a3563(_0x24ccc5,_0x57269e[_0x43bf2b(0x206)])[_0x43bf2b(0x13f)]['get'](_0x57269e[_0x43bf2b(0xa8)])??null,_0xd57aac=_0x335852(_0x57269e[_0x43bf2b(0xc6)])[0x0]??null;_0x14ee33!==_0xd57aac&&this[_0x43bf2b(0x17b)](_0x5af5a4[_0x43bf2b(0xc2)],_0x5af5a4[_0x43bf2b(0x1e6)],[{'tableId':_0x57269e[_0x43bf2b(0x164)],'fieldId':_0x57269e[_0x43bf2b(0x206)],'recordId':_0x57269e[_0x43bf2b(0xa8)],'oldParentRecordId':_0x14ee33,'parentRecordId':_0xd57aac}],_0x57269e[_0x43bf2b(0x191)]??_0x55bebd['UI']);}))),this[_0x5ad95a(0x160)](this['registerEventHandler'](this[_0x5ad95a(0x112)][_0x5ad95a(0x13b)],()=>this[_0x5ad95a(0x106)][_0x5ad95a(0x1ba)](_0x2ae937=>{const _0x120a15=_0x5ad95a;if(_0x2ae937['id']!==_0x5c901d['id'])return;let {unitId:_0xa486b9,table:_0x29624e,index:_0x30b20c}=_0x2ae937['params'],_0x11e683=this[_0x120a15(0xaa)](_0xa486b9);if(!_0x11e683)return;let _0x5971a8={'base':_0x11e683,'table':_0x29624e,'index':_0x30b20c};if(this[_0x120a15(0xe3)](this[_0x120a15(0x112)]['BeforeBaseTableCreate'],_0x5971a8),_0x5971a8[_0x120a15(0x123)])throw new _0x3a850a();}))),this[_0x5ad95a(0x160)](this[_0x5ad95a(0x1b9)](this[_0x5ad95a(0x112)][_0x5ad95a(0x110)],()=>this[_0x5ad95a(0x106)][_0x5ad95a(0x1ba)](_0x1e68c6=>{const _0x595366=_0x5ad95a;if(_0x1e68c6['id']!==_0x3de3f5['id'])return;let {unitId:_0x4366f2,tableId:_0x230956,field:_0xb1a10a,index:_0x51981f,viewIndexes:_0x2043f0}=_0x1e68c6[_0x595366(0xdd)],_0x3d3c42=this['getBase'](_0x4366f2);if(!_0x3d3c42)return;let _0x1086d2=_0x3d3c42[_0x595366(0x15e)](_0x230956);if(!_0x1086d2)return;let _0x560296={'base':_0x3d3c42,'table':_0x1086d2,'field':_0xb1a10a,'index':_0x51981f,'viewIndexes':_0x2043f0};if(this[_0x595366(0xe3)](this[_0x595366(0x112)]['BeforeBaseTableFieldCreate'],_0x560296),_0x560296[_0x595366(0x123)])throw new _0x3a850a();}))),this['disposeWithMe'](this[_0x5ad95a(0x1b9)](this[_0x5ad95a(0x112)]['BeforeBaseTableRecordCreate'],()=>this[_0x5ad95a(0x106)]['beforeCommandExecuted'](_0x4e841b=>{const _0x321e99=_0x5ad95a;if(_0x4e841b['id']!==_0x3392fe['id']&&_0x4e841b['id']!==_0x3ad558['id'])return;let _0x330637=_0x4e841b['params'],{unitId:_0x468703,tableId:_0x317710}=_0x330637,_0x58e3b8=_0x330637[_0x321e99(0x111)]??[_0x330637['record']],_0x251188=this['getBase'](_0x468703);if(!_0x251188)return;let _0x39c5c2=_0x251188[_0x321e99(0x15e)](_0x317710);if(!_0x39c5c2)return;let _0x119b05={'base':_0x251188,'table':_0x39c5c2,'records':_0x58e3b8};if(this[_0x321e99(0xe3)](this[_0x321e99(0x112)][_0x321e99(0x129)],_0x119b05),_0x119b05['cancel'])throw new _0x3a850a();}))),this[_0x5ad95a(0x160)](this['registerEventHandler'](this[_0x5ad95a(0x112)][_0x5ad95a(0x17e)],()=>this[_0x5ad95a(0x106)][_0x5ad95a(0x1ba)](_0x3c1863=>{const _0x21f6a8=_0x5ad95a;if(_0x3c1863['id']!==_0x4a240d['id'])return;let {unitId:_0x254123,tableId:_0x36b74c,view:_0x3f7bb6,index:_0x2a6040}=_0x3c1863[_0x21f6a8(0xdd)],_0x7af6b2=this[_0x21f6a8(0xaa)](_0x254123);if(!_0x7af6b2)return;let _0x195282=_0x7af6b2[_0x21f6a8(0x15e)](_0x36b74c);if(!_0x195282)return;let _0x23c5eb={'base':_0x7af6b2,'table':_0x195282,'view':_0x3f7bb6,'index':_0x2a6040};if(this[_0x21f6a8(0xe3)](this[_0x21f6a8(0x112)]['BeforeBaseTableViewCreate'],_0x23c5eb),_0x23c5eb['cancel'])throw new _0x3a850a();}))),this[_0x5ad95a(0x160)](this[_0x5ad95a(0x1b9)](this[_0x5ad95a(0x112)][_0x5ad95a(0x13c)],()=>this[_0x5ad95a(0x106)][_0x5ad95a(0x1ba)](_0x307d26=>{const _0x1c664c=_0x5ad95a;if(_0x307d26['id']!==_0x56896a['id'])return;let {unitId:_0x5263e4,tableId:_0x1951d0,recordId:_0xf4622e,fieldId:_0x1c7abc,value:_0x546397}=_0x307d26[_0x1c664c(0xdd)],_0x94571e=this[_0x1c664c(0xaa)](_0x5263e4);if(!_0x94571e)return;let _0x4dedd6=_0x94571e['getTableById'](_0x1951d0);if(!_0x4dedd6)return;let _0xfdb175=_0x4dedd6[_0x1c664c(0x181)](_0x1c7abc);if(!_0xfdb175)return;let _0x339b34=_0x4dedd6['getRecordById'](_0xf4622e);if(!_0x339b34)return;let _0x2aacf4={'base':_0x94571e,'table':_0x4dedd6,'field':_0xfdb175,'record':_0x339b34,'value':_0x546397};if(this['fireEvent'](this[_0x1c664c(0x112)][_0x1c664c(0x13c)],_0x2aacf4),_0x2aacf4[_0x1c664c(0x123)])throw new _0x3a850a();})));}[_0x16c455(0x1d7)](_0x4f3907,_0x5d1748){const _0x4d1994=_0x16c455;let _0x50d4dd=this[_0x4d1994(0xaa)](_0x4f3907),_0x10771e=_0x50d4dd==null?void 0x0:_0x50d4dd[_0x4d1994(0x15e)](_0x5d1748);return _0x50d4dd&&_0x10771e?{'base':_0x50d4dd,'table':_0x10771e}:null;}['_fireBeforeHierarchyChange'](_0x1a0b32,_0x50830a,_0x48f79a,_0x557b85){const _0x3e2a1=_0x16c455;if(!_0x48f79a[_0x3e2a1(0x166)])return;let _0x132c13={'base':_0x1a0b32,'table':_0x50830a,'changes':_0x48f79a,'source':_0x557b85};if(this['fireEvent'](this['Event']['BeforeBaseHierarchyChange'],_0x132c13),_0x132c13[_0x3e2a1(0x123)])throw new _0x3a850a();}};function $(_0x220d56,_0x5e6132){const _0x3ca300=_0x16c455;return _0x220d56['id']===_0x5e6132['id']&&_0x220d56[_0x3ca300(0xdd)]!==void 0x0;}function _0x459a(_0x176eb7,_0x1816cd){_0x176eb7=_0x176eb7-0xa0;const _0x501ed9=_0x501e();let _0x459ac4=_0x501ed9[_0x176eb7];return _0x459ac4;}_0x292e04[_0x16c455(0xcc)](Et);var Dt=class extends _0x2fc644{get[_0x16c455(0x134)](){return _0x5c585e;}get['BaseFilterConjunction'](){return _0xf11f7f;}get[_0x16c455(0x10a)](){return _0x48d24a;}get[_0x16c455(0x11a)](){return ot;}get[_0x16c455(0xce)](){return _0x1eb8c0;}get[_0x16c455(0x1bc)](){return _0x58b6cb;}get[_0x16c455(0x1b8)](){return _0x16f428;}get['BaseConditionalDateMode'](){return _0x1ee14c;}get['BaseSortDirection'](){return _0x1fbd79;}get[_0x16c455(0x205)](){return _0x55bebd;}get[_0x16c455(0x19f)](){return _0x34d13a;}get[_0x16c455(0x132)](){return _0x59ccb4;}get[_0x16c455(0xcf)](){return _0x135176;}};function _0x501e(){const _0x35696c=['getId','entries','orderedRecordIds','\x20for\x20field\x20\x22','[FRecord]:\x20field\x20\x22','readonly','Invalid\x20Base\x20regex\x20filter:\x20','onCommandExecuted','getAncestors','\x22\x20has\x20invalid\x20config.','fieldKey','recordId','matches','getBase','[FField]:\x20field\x20\x22','Failed\x20to\x20add\x20records','boolean','[FRecord]:\x20RecordLink\x20field\x20\x22','getConditionalColorRules','orderKey','DESC','regenerateViewIds','Name','targetTableId','find','getRecordById','_projectionService','canEdit','object','childrenByParentId','2SrRnSt','Grid','conditionalColoring','beforeFieldId','_getAttachmentField','_tableId','commonExtend','base','getTables','save','Auto','value','getVisibleFields','fromCollab','isReadonly','tableOrder','prototype','extend','delete','BaseViewType','BaseRecordLinkRole','parentRecordId','createView','clearConditionalColorRules','number','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','_univerInstanceService','visibleCardFieldIds','moveField','getViewByName','reason','push',':\x20\x22','setFieldVisible','params','group','recordOrder','now','UNIVER_BASE','forEach','fireEvent','afterFieldId','_getField','156790DBiThi','Edit','deleteRecords','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','isArray','warn','includes','[FTable]:\x20table\x20\x22','getNumColumns','getProjection','_prepareFormulaFieldReferences','setName','setLinkedRecordIds','Attachment','_base','_getFieldIds','fieldOrder','executeCommand','getRecords','getSchema','BaseTableCreated','Calendar','_initBaseAfterEvents','\x22\x20is\x20not\x20an\x20Attachment\x20field.','slice','endColumn','createdAt','getHierarchyFieldId','\x20in\x20field\x20\x22','name','setGroup','hierarchyChanges','_commandService','indexOf','RecordId','getUnitId','BaseFilterOperator','getGroup','operator','getAttachments','\x22\x20is\x20invalid.','record','BeforeBaseTableFieldCreate','records','Event','_injector','BaseTableViewCreated','getFilter','getColumn','Failed\x20to\x20add\x20field\x20\x22','getRecord','getPrimaryFieldId','BaseFieldKeyEnum','queryRecords','viewId','_baseTableId','_getRecord','_baseUnitId',',\x20range:\x20','description','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','cancel','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','getNumRows','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','_resolveRecordIds','flatMap','BeforeBaseTableRecordCreate','\x22\x20must\x20be\x20a\x20non-empty\x20string.','getParent','BaseTableRecordCreated','stringify','getActiveBase','addField','externalReferences','default','BaseHierarchyInvalidReason','setObjectPermissions','BaseFieldType','insertTable','call','rows','startRow','valid','setValue','BeforeBaseTableCreate','BeforeBaseTableCellValueChange','[FRecord]:\x20invalid\x20RecordLink\x20value.','duplicateTable','parentByRecordId','_table','has','Date','22253Lmhgfh','index','getPrimaryField','rowId','getTable','tables','_fieldId','createBase',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','localeCompare','type','deepClone','get','3771984TFMLJI','_parentObjectIds','createInstance','1940iExhOJ','size','fields','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','getChildren','rules','filter','getSnapshot','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','getFormulaName','getViews','getTableById','getRange','disposeWithMe','BeforeBaseHierarchyChange','views','_inject','tableId','trim','length','fromEntries','multiple','duplicate','defaultValue','_writeFormulaExternalReferences','UUID','getType','_resourceLoaderService','\x20exceeds\x20range\x20size\x20','Delete','getBaseId','clear','field','Set','getValue','map','viewOrder','syncExecuteCommand','Clear','every','_fireBeforeHierarchyChange','1873566lYEhDy','Failed\x20to\x20create\x20table\x20\x22','BeforeBaseTableViewCreate','300140bILzGM','getName','getFieldById','\x20Copy','unitId','addConditionalColorRule','primaryFieldId','Failed\x20to\x20create\x20view\x20\x22','addRecord','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','direction','custom','BaseHierarchyChanged','setFieldWidth','getCurrentUnitOfType','getValues','RecordLink','offset','source','_getRecordLinkField','createUnit','setEditable','mimeType','startColumn','_unitId','getFieldSettings','addChild','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','move','setReadOnly','width','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','BaseHierarchyErrorCode','updateConfig','Duplicate\x20Base\x20field\x20name:\x20','limit','setConfig','_permissionService','getRow','setDefaultValue','sourceType','some','fieldIds','getDataRange','_getView','deleteAttachments','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','Facade','Add','saveUnit','getAllUnitsForType','_collectDescendantIds','max','_getTable','[FBase]:\x20table\x20\x22','notMatches','addLinkedRecord','BaseConditionalColorOperator','registerEventHandler','beforeCommandExecuted','system','BaseConditionalColorTarget','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','3mbEgwR','view','Invalid\x20attachment\x20at\x20index\x20','deleteTable','_getHierarchyIndex','_recordId','symbol','addRecords','setAttachments',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','URL','BaseTableFieldCreated','900284QrtWsg','search','endRow','getDefaultValue','hidden','setHierarchyField','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','function','Formula','removeLinkedRecord','toPrimitive','getLinkedRecordIds','string','_getHierarchyEventContext','BaseTableCellValueChanged','getPermission','values','Kanban','[FRecord]:\x20record\x20\x22','primaryFieldName','fieldSettings','updatedAt','setSort','url','changeType','Failed\x20to\x20delete\x20table\x20\x22','defineProperty','auto','table','_range','36RWjCbi','getDescription','[FBaseRange]:\x20table\x20does\x20not\x20exist.','_viewId','setValues','_objectId','Remote','Base\x20field\x20not\x20found:\x20','update',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','sort','config','from','\x22.\x20','\x22\x20does\x20not\x20exist.','Gantt','_assertInBounds','_initBaseBeforeEvents','getOwnPropertyDescriptor','recordIds','setPoint','getTableByName','[FRecord]:\x20attachment\x20at\x20index\x20','\x22:\x20expected\x20an\x20array.','message','2777716speMFm','FBase','getViewById','Failed\x20to\x20duplicate\x20table\x20\x22','BaseEventSource','fieldId'];_0x501e=function(){return _0x35696c;};return _0x501e();}_0x2fc644[_0x16c455(0xcc)](Dt);var Ot=class extends _0x35d271{get[_0x16c455(0xfa)](){const _0x590052=_0x16c455;return _0x590052(0xfa);}get[_0x16c455(0x13b)](){const _0x453a62=_0x16c455;return _0x453a62(0x13b);}get[_0x16c455(0x1c9)](){return'BaseTableFieldCreated';}get[_0x16c455(0x110)](){const _0x3d8257=_0x16c455;return _0x3d8257(0x110);}get[_0x16c455(0x12c)](){const _0x4db644=_0x16c455;return _0x4db644(0x12c);}get[_0x16c455(0x129)](){return'BeforeBaseTableRecordCreate';}get['BaseTableViewCreated'](){const _0x12921f=_0x16c455;return _0x12921f(0x114);}get[_0x16c455(0x17e)](){const _0x53d7e8=_0x16c455;return _0x53d7e8(0x17e);}get[_0x16c455(0x1d8)](){return'BaseTableCellValueChanged';}get[_0x16c455(0x13c)](){return'BeforeBaseTableCellValueChange';}get[_0x16c455(0x18b)](){const _0x35b863=_0x16c455;return _0x35b863(0x18b);}get['BeforeBaseHierarchyChange'](){const _0x1510de=_0x16c455;return _0x1510de(0x161);}};_0x35d271[_0x16c455(0xcc)](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};