@univerjs-pro/bases 1.0.0-beta.1 → 1.0.0-beta.2
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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +8 -8
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2ea2b8=_0x2f6a;function _0x55fe(){const _0x1fd65a=['建立時間','更新檢視設定','欄位類型無效','建立欄位','電話號碼','電子郵件','關聯記錄','291904qRCrrS','更新人','行事曆','儲存格值無效','3JkHMgX','12fVqSqO','317268WrdWAU','欄位標題不能為空','看板需要可分組欄位','8uJWxOR','甘特圖檢視需要開始和結束日期欄位','6047sozQzo','62430JXfALc','行事曆需要日期欄位','4681710kcOxzj','刪除欄位','建立記錄','記錄\x20ID','建立人','603405mHiZgy','1381831XBZoPe','190EZjndT','甘特圖','70tRwLCV'];_0x55fe=function(){return _0x1fd65a;};return _0x55fe();}function _0x2f6a(_0x33c25a,_0x35cd7f){_0x33c25a=_0x33c25a-0x6e;const _0x55fe06=_0x55fe();let _0x2f6a30=_0x55fe06[_0x33c25a];return _0x2f6a30;}(function(_0x2d2231,_0x922bba){const _0x192aee=_0x2f6a,_0x33fbec=_0x2d2231();while(!![]){try{const _0x8c37ab=-parseInt(_0x192aee(0x6f))/0x1*(-parseInt(_0x192aee(0x8c))/0x2)+-parseInt(_0x192aee(0x87))/0x3*(parseInt(_0x192aee(0x89))/0x4)+parseInt(_0x192aee(0x79))/0x5*(parseInt(_0x192aee(0x70))/0x6)+parseInt(_0x192aee(0x7b))/0x7*(-parseInt(_0x192aee(0x83))/0x8)+-parseInt(_0x192aee(0x77))/0x9+parseInt(_0x192aee(0x72))/0xa+parseInt(_0x192aee(0x78))/0xb*(-parseInt(_0x192aee(0x88))/0xc);if(_0x8c37ab===_0x922bba)break;else _0x33fbec['push'](_0x33fbec['shift']());}catch(_0xeb5923){_0x33fbec['push'](_0x33fbec['shift']());}}}(_0x55fe,0x3d406));const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':'核取方塊','link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x2ea2b8(0x80),'email':_0x2ea2b8(0x81),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':_0x2ea2b8(0x82),'recordId':_0x2ea2b8(0x75),'createdBy':_0x2ea2b8(0x76),'updatedBy':_0x2ea2b8(0x84),'createdAt':_0x2ea2b8(0x7c),'updatedAt':'更新時間','summary':'彙總'},'fieldConfig':{'textPlaceholder':'輸入內容','linkPlaceholder':'輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。'},'viewType':{'grid':'表格','kanban':'看板','calendar':_0x2ea2b8(0x85),'gantt':_0x2ea2b8(0x7a),'gallery':'圖庫'},'error':{'fieldNameRequired':_0x2ea2b8(0x8a),'invalidFieldType':_0x2ea2b8(0x7e),'invalidCellValue':_0x2ea2b8(0x86),'invalidKanbanGroupField':_0x2ea2b8(0x8b),'invalidCalendarDateField':_0x2ea2b8(0x71),'invalidGanttDateField':_0x2ea2b8(0x6e)},'command':{'updateCell':'更新儲存格','createField':_0x2ea2b8(0x7f),'deleteField':_0x2ea2b8(0x73),'createRecord':_0x2ea2b8(0x74),'deleteRecord':'刪除記錄','updateViewConfig':_0x2ea2b8(0x7d)}}};module['exports']=e;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x46a1c2=_0x5746;(function(_0x1534c8,_0x3226ec){const _0x3b6d9c=_0x5746,_0x21ac5e=_0x1534c8();while(!![]){try{const _0x39ce8e=parseInt(_0x3b6d9c(0x256))/0x1*(parseInt(_0x3b6d9c(0x240))/0x2)+parseInt(_0x3b6d9c(0x2ef))/0x3*(parseInt(_0x3b6d9c(0x2b4))/0x4)+-parseInt(_0x3b6d9c(0x1fc))/0x5*(parseInt(_0x3b6d9c(0x243))/0x6)+parseInt(_0x3b6d9c(0x1e9))/0x7*(parseInt(_0x3b6d9c(0x315))/0x8)+parseInt(_0x3b6d9c(0x207))/0x9+parseInt(_0x3b6d9c(0x237))/0xa*(-parseInt(_0x3b6d9c(0x217))/0xb)+-parseInt(_0x3b6d9c(0x281))/0xc*(parseInt(_0x3b6d9c(0x2f6))/0xd);if(_0x39ce8e===_0x3226ec)break;else _0x21ac5e['push'](_0x21ac5e['shift']());}catch(_0x5744a3){_0x21ac5e['push'](_0x21ac5e['shift']());}}}(_0x88d1,0x61381));import{ApplyBaseJson1Mutation as _0x4dadde,BASE_TABLE_NAME_REQUIREMENTS as _0x30ff66,BaseConditionalColorRuleUpdateType as _0x25f9f8,BaseEventSource as _0x198fc0,BaseHierarchyErrorCode as _0x1a3340,BatchCreateBaseRecordsCommand as _0x280e1e,BatchDeleteBaseRecordsCommand as _0xb3d33d,ChangeBaseFieldTypeCommand as _0x3d9d79,CreateBaseChildRecordCommand as _0x168ce8,CreateBaseFieldCommand as _0x15e597,CreateBaseRecordCommand as _0x44b407,CreateBaseTableCommand as _0x132b85,CreateBaseViewCommand as _0x58c95d,DeleteBaseFieldCommand as _0x22f2c6,DeleteBaseRecordCommand as _0x44f0bf,DeleteBaseTableCommand as _0x488c1f,DeleteBaseViewCommand as _0x13f67c,DuplicateBaseRecordCommand as _0x209820,IBaseProjectionService as _0x5db0b9,MoveBaseFieldCommand as _0x1d5397,MoveBaseHierarchyRecordCommand as _0x345dff,MoveBaseViewCommand as _0x3c52e4,RenameBaseTableCommand as _0x15e70d,RenameBaseViewCommand as _0xdf6fe9,SetBaseNameCommand as _0x1535e7,SetBaseRangeValuesCommand as _0x473f48,SetBaseRecordValuesCommand as _0x294f1c,SetBaseTableHierarchyFieldCommand as _0x10d0c8,SetBaseViewFieldOrderCommand as _0x3001eb,SetBaseViewFieldVisibleCommand as _0x171450,SetBaseViewFieldWidthCommand as _0x2a4787,SetBaseViewFilterCommand as _0x182d68,SetBaseViewGroupCommand as _0x398613,SetBaseViewSortCommand as _0x164ead,UpdateBaseCellCommand as _0x13c61e,UpdateBaseFieldCommand as _0x7c54b0,UpdateBaseRecordOrderCommand as _0x319f6b,UpdateBaseViewConditionalColorRulesCommand as _0x346c53,UpdateBaseViewConfigCommand as _0x1b5df4,ValidateBaseFormulaCommand as _0x59defd,buildBaseHierarchyIndex as _0x345aca,copyBaseTableSnapshot as _0xf70964,createUniqueBaseTableName as _0x286207,ensureBaseTableCellLayout as _0x580a6d,getActiveBaseHierarchyFieldIds as _0x303b25,getBaseCellValue as _0x41f49c,getBaseFormulaTableName as _0x499083,getBaseHierarchyDeletePromotions as _0x7c08d9,getRecordLinkFieldConfig as _0x15242e,matchesBaseCondition as _0xc3c013,parseRecordLinkIds as _0x855fa7,resolveBaseHierarchyFieldId as _0x312492,resolveBaseRangeHierarchyPatches as _0x3642d1,searchBaseTable as _0x2df9ac,serializeRecordLinkIds as _0x3d1f9e,validateBaseHierarchyRecordCreations as _0x346f38,validateBaseHierarchyRecordPatches as _0x1d70cc,validateBaseTableName as _0x545bdb,validateRecordLinkValue as _0x42ad7f}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x56d8f8,BaseConditionalColorOperator as _0x1c1f9f,BaseConditionalColorTarget as _0x5702ac,BaseConditionalDateMode as _0x82456a,BaseFieldType as _0xafe9b1,BaseFilterConjunction as _0x1e5d95,BaseFilterOperator as _0xe85ca7,BaseHierarchyInvalidReason as _0x2df78f,BaseRecordLinkRole as _0x33c6e3,BaseSortDirection as _0xd1049e,BaseViewType as _0x477789,CanceledError as _0x23915c,ICommandService as _0x3ac0f5,IResourceLoaderService as _0x4f5173,ImageSourceType as _0x205617,Inject as _0xfc1d0a,Injector as _0x38a295,Tools as _0x125277,UniverInstanceType as _0x3e59a1,createDefaultBaseTableSnapshot as _0x3e2cae,generateRandomId as _0x5f0f93}from'@univerjs/core';import{FEnum as _0x2f3189,FEventName as _0x47ca81,FUniver as _0x17aaa4}from'@univerjs/core/facade';import{UpsertHostExternalReferencesCommand as _0x4e9cb6}from'@univerjs-pro/engine-formula';function R(_0xa511df,_0x247f85){return function(_0x1b6063,_0x1e4d3f){_0x247f85(_0x1b6063,_0x1e4d3f,_0xa511df);};}function z(_0x44e956,_0x57b971,_0x3515f5,_0x1a1ed5){const _0x256f83=_0x5746;var _0x14581b=arguments[_0x256f83(0x268)],_0x454122=_0x14581b<0x3?_0x57b971:_0x1a1ed5===null?_0x1a1ed5=Object[_0x256f83(0x1d7)](_0x57b971,_0x3515f5):_0x1a1ed5,_0x269e98;if(typeof Reflect=='object'&&typeof Reflect[_0x256f83(0x2be)]==_0x256f83(0x1ee))_0x454122=Reflect[_0x256f83(0x2be)](_0x44e956,_0x57b971,_0x3515f5,_0x1a1ed5);else{for(var _0x33d58c=_0x44e956[_0x256f83(0x268)]-0x1;_0x33d58c>=0x0;_0x33d58c--)(_0x269e98=_0x44e956[_0x33d58c])&&(_0x454122=(_0x14581b<0x3?_0x269e98(_0x454122):_0x14581b>0x3?_0x269e98(_0x57b971,_0x3515f5,_0x454122):_0x269e98(_0x57b971,_0x3515f5))||_0x454122);}return _0x14581b>0x3&&_0x454122&&Object[_0x256f83(0x2c1)](_0x57b971,_0x3515f5,_0x454122),_0x454122;}let B=class{constructor(_0x23e886,_0x1e043b,_0x200329,_0x439269){const _0x16d4bf=_0x5746;this[_0x16d4bf(0x1dc)]=_0x23e886,this[_0x16d4bf(0x329)]=_0x1e043b,this[_0x16d4bf(0x2c4)]=_0x200329,this['_commandService']=_0x439269;}['getId'](){const _0x507526=_0x5746;return this[_0x507526(0x2c4)];}[_0x46a1c2(0x28a)](){const _0x337013=_0x46a1c2;return this[_0x337013(0x324)]();}['getName'](){const _0x1d3138=_0x46a1c2;return this[_0x1d3138(0x324)]()['name'];}[_0x46a1c2(0x1fa)](){const _0x2e6b2e=_0x46a1c2;return this[_0x2e6b2e(0x324)]()[_0x2e6b2e(0x241)];}[_0x46a1c2(0x31d)](){const _0x3e512f=_0x46a1c2;return this['_getField']()[_0x3e512f(0x296)];}[_0x46a1c2(0x20f)](){const _0xda583a=_0x46a1c2;return this[_0xda583a(0x324)]()[_0xda583a(0x299)];}[_0x46a1c2(0x30a)](){const _0x1913af=_0x46a1c2;return this['_getField']()[_0x1913af(0x251)];}[_0x46a1c2(0x284)](){const _0x299be8=_0x46a1c2;return!!this[_0x299be8(0x324)]()['readonly'];}[_0x46a1c2(0x21f)](_0x16146a){const _0x674588=_0x46a1c2;return this[_0x674588(0x1ef)]({'name':_0x16146a});}[_0x46a1c2(0x2b0)](_0x3912bd,_0x23e7aa){const _0x276fc6=_0x46a1c2;return this[_0x276fc6(0x1ef)]({'config':_0x3912bd},_0x23e7aa);}[_0x46a1c2(0x2ea)](_0x4a6c7b){const _0xee4c7=_0x46a1c2;return this[_0xee4c7(0x1ef)]({'defaultValue':_0x4a6c7b});}[_0x46a1c2(0x1ef)](_0x1c5c56,_0x3c1b5a){const _0x181e0c=_0x46a1c2;let _0x3bf60e=this[_0x181e0c(0x324)]()[_0x181e0c(0x241)];return(_0x1c5c56[_0x181e0c(0x241)]??_0x3bf60e)===_0xafe9b1['Formula']&&(Object[_0x181e0c(0x238)][_0x181e0c(0x2f7)][_0x181e0c(0x1f8)](_0x1c5c56,'config')||_0x1c5c56[_0x181e0c(0x241)]===_0xafe9b1[_0x181e0c(0x2d4)])&&!this['_writeFormulaExternalReferences'](_0x3c1b5a)?!0x1:this[_0x181e0c(0x2e9)][_0x181e0c(0x2f2)](_0x7c54b0['id'],{'unitId':this[_0x181e0c(0x1dc)][_0x181e0c(0x28e)](),'tableId':this[_0x181e0c(0x329)][_0x181e0c(0x28e)](),'fieldId':this[_0x181e0c(0x2c4)],'patch':_0x1c5c56});}[_0x46a1c2(0x1f2)](_0x4aa05d,_0x1fd241={},_0x262e87){const _0x5f28fa=_0x46a1c2;return _0x4aa05d===_0xafe9b1[_0x5f28fa(0x2d4)]&&!this['_writeFormulaExternalReferences'](_0x262e87)?!0x1:this[_0x5f28fa(0x2e9)][_0x5f28fa(0x2f2)](_0x3d9d79['id'],{'unitId':this[_0x5f28fa(0x1dc)]['getId'](),'tableId':this[_0x5f28fa(0x329)][_0x5f28fa(0x28e)](),'fieldId':this[_0x5f28fa(0x2c4)],'input':{'type':_0x4aa05d,'config':_0x1fd241}});}[_0x46a1c2(0x229)](){const _0x5dfd41=_0x46a1c2;return this[_0x5dfd41(0x2e9)][_0x5dfd41(0x2f2)](_0x22f2c6['id'],{'unitId':this[_0x5dfd41(0x1dc)][_0x5dfd41(0x28e)](),'tableId':this[_0x5dfd41(0x329)][_0x5dfd41(0x28e)](),'fieldId':this[_0x5dfd41(0x2c4)]});}['move'](_0x5a9e2e){const _0x3665e3=_0x46a1c2;return this['_commandService'][_0x3665e3(0x2f2)](_0x1d5397['id'],{'unitId':this['_base'][_0x3665e3(0x28e)](),'tableId':this[_0x3665e3(0x329)][_0x3665e3(0x28e)](),'fieldId':this[_0x3665e3(0x2c4)],'target':_0x5a9e2e});}[_0x46a1c2(0x324)](){const _0x38f6b8=_0x46a1c2;let _0x56447d=this[_0x38f6b8(0x329)][_0x38f6b8(0x310)]()['fields'][this[_0x38f6b8(0x2c4)]];if(!_0x56447d)throw Error(_0x38f6b8(0x1e3)+this['_fieldId']+'\x22\x20does\x20not\x20exist.');return _0x56447d;}[_0x46a1c2(0x325)](_0x1b7460){const _0xce34a2=_0x46a1c2;if(!_0x1b7460||!Array[_0xce34a2(0x2db)](_0x1b7460[_0xce34a2(0x1e6)]))return console[_0xce34a2(0x23d)](_0xce34a2(0x257)),!0x1;if(_0x1b7460[_0xce34a2(0x1e6)][_0xce34a2(0x268)]===0x0)return!0x0;let _0x3f8422=this[_0xce34a2(0x2e9)][_0xce34a2(0x2f2)](_0x4e9cb6['id'],{'unitId':this[_0xce34a2(0x1dc)][_0xce34a2(0x28e)](),'references':_0x1b7460[_0xce34a2(0x1e6)]});return _0x3f8422||console[_0xce34a2(0x23d)](_0xce34a2(0x2e1)),_0x3f8422;}};B=z([R(0x3,_0x3ac0f5)],B);let Ke=function(_0x36bcb2){const _0x4b41f9=_0x46a1c2;return _0x36bcb2['Id']='id',_0x36bcb2[_0x4b41f9(0x255)]='name',_0x36bcb2[_0x4b41f9(0x2b3)]=_0x4b41f9(0x2c2),_0x36bcb2;}({});function V(_0x25d07a){const _0x5065d7=_0x46a1c2;return!!(_0x25d07a&&_0x25d07a[_0x5065d7(0x2fa)]!==!0x0&&_0x25d07a[_0x5065d7(0x241)]!==_0xafe9b1['RecordId']);}function H(_0x51fdef,_0x293246,_0x578a98='id'){const _0x341409=_0x46a1c2;if(!_0x293246)return{};let _0x134af0={};return Object[_0x341409(0x2ff)](_0x293246)[_0x341409(0x2cb)](([_0x466f0a,_0x5432f2])=>{const _0x5e1a14=_0x341409;let _0x4fb2aa=Je(_0x51fdef,_0x466f0a,_0x578a98);_0x134af0[_0x4fb2aa]=qe(_0x51fdef[_0x5e1a14(0x2b9)][_0x4fb2aa],_0x5432f2);}),_0x134af0;}function qe(_0x5e007c,_0x194c19){const _0x4269f2=_0x46a1c2;if((_0x5e007c==null?void 0x0:_0x5e007c['type'])!==_0xafe9b1[_0x4269f2(0x298)]||_0x194c19==null)return _0x194c19;if(!Array[_0x4269f2(0x2db)](_0x194c19))throw TypeError(_0x4269f2(0x227)+_0x5e007c['name']+'\x22:\x20expected\x20an\x20array.');return _0x194c19[_0x4269f2(0x232)]((_0x584aff,_0x3a661e)=>Ye(_0x5e007c,_0x584aff,_0x3a661e));}function Je(_0x1a96fd,_0x1ef60f,_0x20bc11){const _0x3bdc51=_0x46a1c2;if(_0x20bc11==='id'||_0x20bc11===_0x3bdc51(0x2c2)&&_0x1a96fd[_0x3bdc51(0x2b9)][_0x1ef60f])return _0x1ef60f;let _0x4af4cd=Object['values'](_0x1a96fd[_0x3bdc51(0x2b9)])[_0x3bdc51(0x252)](_0x485445=>_0x485445[_0x3bdc51(0x2aa)]===_0x1ef60f);if(_0x4af4cd[_0x3bdc51(0x268)]===0x1)return _0x4af4cd[0x0]['id'];throw _0x4af4cd[_0x3bdc51(0x268)]>0x1?Error(_0x3bdc51(0x239)+_0x1ef60f):Error(_0x3bdc51(0x2d1)+_0x1ef60f);}function Ye(_0x31453b,_0x1d18a8,_0x1cf8ff){const _0x23f161=_0x46a1c2;let _0x27a4df=_0x23f161(0x1db)+_0x1cf8ff+_0x23f161(0x2a8)+_0x31453b['name']+'\x22';if(!Qe(_0x1d18a8))throw TypeError(_0x27a4df+':\x20expected\x20an\x20object.');if('url'in _0x1d18a8)throw TypeError(_0x27a4df+_0x23f161(0x2fe));if('type'in _0x1d18a8)throw TypeError(_0x27a4df+_0x23f161(0x316));let _0x5ce7bf=U(_0x1d18a8['id'],_0x27a4df,'id'),_0x18cc44=U(_0x1d18a8[_0x23f161(0x2aa)],_0x27a4df,'name'),_0x13ca82=U(_0x1d18a8[_0x23f161(0x277)],_0x27a4df,_0x23f161(0x277));return{'id':_0x5ce7bf,'name':_0x18cc44,'source':_0x13ca82,'sourceType':Xe(_0x1d18a8[_0x23f161(0x20a)],_0x13ca82,_0x27a4df),...Ze(_0x1d18a8,_0x23f161(0x228),_0x27a4df),...W(_0x1d18a8,_0x23f161(0x300),_0x27a4df),...W(_0x1d18a8,'width',_0x27a4df),...W(_0x1d18a8,_0x23f161(0x1fe),_0x27a4df),...Ze(_0x1d18a8,_0x23f161(0x221),_0x27a4df)};}function Xe(_0x47f607,_0xd490cc,_0x37cf68){const _0x44b10a=_0x46a1c2;if(_0x47f607==null)return _0xd490cc['startsWith'](_0x44b10a(0x276))?_0x205617[_0x44b10a(0x2c8)]:_0x205617[_0x44b10a(0x253)];if(_0x47f607===_0x205617[_0x44b10a(0x253)]||_0x47f607===_0x205617['UUID']||_0x47f607===_0x205617['BASE64'])return _0x47f607;throw TypeError(_0x37cf68+':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.');}function U(_0x3a7c1b,_0x3ddc1e,_0x4d73a1){const _0x5cffb0=_0x46a1c2;if(typeof _0x3a7c1b!=_0x5cffb0(0x2f3)||!_0x3a7c1b[_0x5cffb0(0x2a7)]())throw TypeError(_0x3ddc1e+_0x5cffb0(0x21d)+_0x4d73a1+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');return _0x3a7c1b;}function Ze(_0x4b3a30,_0xf0520b,_0x21d8e9){const _0x4771ee=_0x46a1c2;let _0x367f11=_0x4b3a30[_0xf0520b];if(_0x367f11==null)return{};if(typeof _0x367f11!=_0x4771ee(0x2f3)||!_0x367f11[_0x4771ee(0x2a7)]())throw TypeError(_0x21d8e9+':\x20\x22'+_0xf0520b+_0x4771ee(0x288));return{[_0xf0520b]:_0x367f11};}function W(_0x37b9f2,_0x4638f4,_0x290834){const _0x2cf62a=_0x46a1c2;let _0x29a946=_0x37b9f2[_0x4638f4];if(_0x29a946==null)return{};if(typeof _0x29a946!='number'||!Number['isFinite'](_0x29a946)||_0x29a946<0x0)throw TypeError(_0x290834+_0x2cf62a(0x21d)+_0x4638f4+_0x2cf62a(0x1de));return{[_0x4638f4]:_0x29a946};}function Qe(_0x337e9d){const _0x4bd7c1=_0x46a1c2;return typeof _0x337e9d==_0x4bd7c1(0x2c9)&&!!_0x337e9d&&!Array['isArray'](_0x337e9d);}var G;let K=G=class{constructor(_0x533c79,_0x5d78ad,_0x752836,_0x53810c,_0xae2af6){const _0x521df5=_0x46a1c2;this['_base']=_0x533c79,this[_0x521df5(0x329)]=_0x5d78ad,this[_0x521df5(0x1d8)]=_0x752836,this[_0x521df5(0x2ce)]=_0x53810c,this['_commandService']=_0xae2af6,this['_assertInBounds']();}[_0x46a1c2(0x205)](){const _0x1d9582=_0x46a1c2;return this['_base'][_0x1d9582(0x28e)]();}[_0x46a1c2(0x263)](){const _0x4582bd=_0x46a1c2;return this['_table'][_0x4582bd(0x28e)]();}[_0x46a1c2(0x220)](){const _0x50c384=_0x46a1c2;return{...this[_0x50c384(0x1d8)]};}[_0x46a1c2(0x2cd)](){const _0x255af4=_0x46a1c2;return this[_0x255af4(0x1d8)][_0x255af4(0x2b6)];}[_0x46a1c2(0x25c)](){const _0x4c2abe=_0x46a1c2;return this['_range'][_0x4c2abe(0x2b1)];}[_0x46a1c2(0x23a)](){const _0x8b10c1=_0x46a1c2;return this[_0x8b10c1(0x1d8)]['endRow']-this[_0x8b10c1(0x1d8)]['startRow']+0x1;}[_0x46a1c2(0x2df)](){const _0x55029b=_0x46a1c2;return this[_0x55029b(0x1d8)]['endColumn']-this['_range'][_0x55029b(0x2b1)]+0x1;}[_0x46a1c2(0x264)](){const _0xeb3fea=_0x46a1c2;let _0x5aa3b0=this['_getTable'](),_0x350151=this[_0xeb3fea(0x2ab)](_0x5aa3b0),_0x2e9169=[];for(let _0x5ab8cc=this['_range']['startRow'];_0x5ab8cc<=this[_0xeb3fea(0x1d8)][_0xeb3fea(0x289)];_0x5ab8cc++){var _0x322482;let _0x399ae7=(_0x322482=_0x5aa3b0['rowId'])==null?void 0x0:_0x322482[_0x5ab8cc],_0x59ea2f=[];for(let _0x792cc5=this[_0xeb3fea(0x1d8)][_0xeb3fea(0x2b1)];_0x792cc5<=this[_0xeb3fea(0x1d8)]['endColumn'];_0x792cc5++){let _0x5589bd=_0x350151[_0x792cc5];_0x59ea2f[_0xeb3fea(0x2c5)](_0x399ae7&&_0x5589bd?_0x41f49c(_0x5aa3b0,_0x399ae7,_0x5589bd):null);}_0x2e9169[_0xeb3fea(0x2c5)](_0x59ea2f);}return _0x2e9169;}['getValue'](){const _0x5aebac=_0x46a1c2;var _0x4e4f58;return((_0x4e4f58=this[_0x5aebac(0x264)]()[0x0])==null?void 0x0:_0x4e4f58[0x0])??null;}[_0x46a1c2(0x200)](_0x30fd20){const _0x4a0c0d=_0x46a1c2;return this[_0x4a0c0d(0x1f4)]([[_0x30fd20]]);}[_0x46a1c2(0x1f4)](_0x55dc63){const _0x27e523=_0x46a1c2;let _0x1441ec=this[_0x27e523(0x23a)](),_0x200ecd=this[_0x27e523(0x2df)]();if(_0x55dc63[_0x27e523(0x268)]>_0x1441ec||_0x55dc63['some'](_0x2c0e79=>_0x2c0e79[_0x27e523(0x268)]>_0x200ecd)){var _0x5e2cf6;throw Error('[FBaseRange]:\x20values\x20size\x20'+_0x55dc63['length']+'x'+(((_0x5e2cf6=_0x55dc63[0x0])==null?void 0x0:_0x5e2cf6['length'])??0x0)+_0x27e523(0x1e0)+_0x1441ec+'x'+_0x200ecd+'.');}let _0x1608d1=this['_getTable'](),_0x941ea3=this[_0x27e523(0x2ab)](_0x1608d1),_0x363c31=_0x55dc63['flatMap']((_0x4e7488,_0x469281)=>_0x4e7488['map']((_0x18aa5d,_0x4b4f22)=>{const _0x204cbe=_0x27e523;var _0x552abf;let _0x5c7266=this[_0x204cbe(0x1d8)]['startRow']+_0x469281,_0x12dcc7=_0x941ea3[this['_range'][_0x204cbe(0x2b1)]+_0x4b4f22],_0x3f4780=(_0x552abf=_0x1608d1[_0x204cbe(0x21b)])==null?void 0x0:_0x552abf[_0x5c7266];if(!_0x12dcc7||!_0x3f4780)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x3f4780,'fieldId':_0x12dcc7,'value':_0x18aa5d};}));return this['_commandService'][_0x27e523(0x2f2)](_0x473f48['id'],{'unitId':this[_0x27e523(0x1dc)][_0x27e523(0x28e)](),'tableId':this[_0x27e523(0x329)][_0x27e523(0x28e)](),'patches':_0x363c31,'source':_0x198fc0[_0x27e523(0x31b)]});}[_0x46a1c2(0x27b)](){const _0x47b80b=_0x46a1c2;return this[_0x47b80b(0x1f4)](Array['from']({'length':this[_0x47b80b(0x23a)]()},()=>Array[_0x47b80b(0x29e)]({'length':this['getNumColumns']()},()=>null)));}[_0x46a1c2(0x2d6)](_0x1d937a,_0x5cffa4,_0x27c032=this['getNumRows'](),_0x513a3d=this['getNumColumns']()){const _0x47d0aa=_0x46a1c2;return this[_0x47d0aa(0x2ce)][_0x47d0aa(0x1f3)](G,this[_0x47d0aa(0x1dc)],this['_table'],{'startRow':this['_range'][_0x47d0aa(0x2b6)]+_0x1d937a,'startColumn':this[_0x47d0aa(0x1d8)][_0x47d0aa(0x2b1)]+_0x5cffa4,'endRow':this[_0x47d0aa(0x1d8)][_0x47d0aa(0x2b6)]+_0x1d937a+_0x27c032-0x1,'endColumn':this['_range'][_0x47d0aa(0x2b1)]+_0x5cffa4+_0x513a3d-0x1},this[_0x47d0aa(0x2ce)]);}[_0x46a1c2(0x2bb)](){const _0x4812f6=_0x46a1c2;let _0x4edbdc=this[_0x4812f6(0x329)][_0x4812f6(0x310)]();if(!_0x4edbdc)throw Error(_0x4812f6(0x242));return _0x580a6d(_0x4edbdc);}['_assertInBounds'](){const _0x4c04fc=_0x46a1c2;var _0x224d55;let _0x446024=this[_0x4c04fc(0x2bb)](),_0x25c5ff=((_0x224d55=_0x446024[_0x4c04fc(0x213)])==null?void 0x0:_0x224d55[_0x4c04fc(0x268)])??0x0,_0x3500df=this[_0x4c04fc(0x2ab)](_0x446024)['length'];if(this[_0x4c04fc(0x1d8)][_0x4c04fc(0x2b6)]<0x0||this[_0x4c04fc(0x1d8)][_0x4c04fc(0x2b1)]<0x0||this[_0x4c04fc(0x1d8)][_0x4c04fc(0x289)]<this[_0x4c04fc(0x1d8)][_0x4c04fc(0x2b6)]||this['_range'][_0x4c04fc(0x22b)]<this[_0x4c04fc(0x1d8)]['startColumn']||this['_range'][_0x4c04fc(0x289)]>=Math[_0x4c04fc(0x31f)](_0x25c5ff,0x1)||this[_0x4c04fc(0x1d8)]['endColumn']>=Math[_0x4c04fc(0x31f)](_0x3500df,0x1))throw Error(_0x4c04fc(0x29a)+_0x25c5ff+_0x4c04fc(0x222)+_0x3500df+_0x4c04fc(0x28f)+JSON[_0x4c04fc(0x303)](this['_range'])+'.');}[_0x46a1c2(0x2ab)](_0x5870c5){const _0x1a59a9=_0x46a1c2;return _0x5870c5[_0x1a59a9(0x249)][_0x1a59a9(0x252)](_0x358799=>V(_0x5870c5[_0x1a59a9(0x2b9)][_0x358799]));}};K=G=z([R(0x4,_0x3ac0f5)],K);var q;let J=q=class{constructor(_0x5c6460,_0x35b829,_0x4596b7,_0x3baa20,_0x2f330e){const _0x31ae15=_0x46a1c2;this[_0x31ae15(0x1dc)]=_0x5c6460,this[_0x31ae15(0x329)]=_0x35b829,this['_recordId']=_0x4596b7,this[_0x31ae15(0x2ce)]=_0x3baa20,this[_0x31ae15(0x2e9)]=_0x2f330e;}[_0x46a1c2(0x28e)](){const _0x1f1f43=_0x46a1c2;return this[_0x1f1f43(0x30e)];}[_0x46a1c2(0x202)](){const _0x37cda4=_0x46a1c2;return{...this[_0x37cda4(0x225)](),'values':this[_0x37cda4(0x264)]()};}['getValue'](_0x4631a0){const _0x1a890b=_0x46a1c2;return V(this[_0x1a890b(0x329)]['getTable']()[_0x1a890b(0x2b9)][_0x4631a0])?this[_0x1a890b(0x225)]()['values'][_0x4631a0]??null:null;}[_0x46a1c2(0x264)](){const _0x102541=_0x46a1c2;let _0x570fff=this[_0x102541(0x329)]['getTable']();return Object['fromEntries'](Object[_0x102541(0x2ff)](this[_0x102541(0x225)]()[_0x102541(0x326)])[_0x102541(0x252)](([_0x15961d])=>V(_0x570fff['fields'][_0x15961d])));}[_0x46a1c2(0x200)](_0x196b2a,_0x677c40){const _0x4b0375=_0x46a1c2;let _0x367eca=this[_0x4b0375(0x329)]['getTable']()['fields'][_0x196b2a];return this[_0x4b0375(0x2e9)][_0x4b0375(0x2f2)](_0x13c61e['id'],{'unitId':this[_0x4b0375(0x1dc)][_0x4b0375(0x28e)](),'tableId':this[_0x4b0375(0x329)][_0x4b0375(0x28e)](),'recordId':this['_recordId'],'fieldId':_0x196b2a,'value':qe(_0x367eca,_0x677c40),'source':_0x198fc0[_0x4b0375(0x31b)]});}[_0x46a1c2(0x266)](_0x6a9e83,_0xaf7bdc){const _0x1306bf=_0x46a1c2;return this[_0x1306bf(0x200)](_0x6a9e83,_0xaf7bdc[_0x1306bf(0x232)](_0x2881f4=>({..._0x2881f4})));}[_0x46a1c2(0x1f4)](_0xd4cad1,_0x1c4cc2='id'){const _0x2a39cd=_0x46a1c2;let _0x51921a=this[_0x2a39cd(0x329)][_0x2a39cd(0x310)](),_0x51e7c3=[{'recordId':this[_0x2a39cd(0x30e)],'values':H(_0x51921a,_0xd4cad1,_0x1c4cc2)}];return this[_0x2a39cd(0x2e9)][_0x2a39cd(0x2f2)](_0x294f1c['id'],{'unitId':this[_0x2a39cd(0x1dc)][_0x2a39cd(0x28e)](),'tableId':this[_0x2a39cd(0x329)][_0x2a39cd(0x28e)](),'patches':_0x51e7c3,'source':_0x198fc0[_0x2a39cd(0x31b)]});}[_0x46a1c2(0x229)](){const _0x1c4c3=_0x46a1c2;return this['_commandService'][_0x1c4c3(0x2f2)](_0x44f0bf['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table']['getId'](),'recordId':this[_0x1c4c3(0x30e)],'source':_0x198fc0[_0x1c4c3(0x31b)]});}[_0x46a1c2(0x25d)](_0xf7018b){const _0x302805=_0x46a1c2;let _0x5bf770={...this[_0x302805(0x225)](),..._0xf7018b,'id':_0x5f0f93(0x6)};_0x5bf770[_0x302805(0x326)]={..._0x5bf770[_0x302805(0x326)],..._0xf7018b==null?void 0x0:_0xf7018b['values']},Reflect[_0x302805(0x20b)](_0x5bf770[_0x302805(0x326)],_0x56d8f8);let _0xe3b655=Date[_0x302805(0x204)]();if(_0x5bf770['orderKey']||=''+_0xe3b655,_0x5bf770['createdAt']||=_0xe3b655,_0x5bf770[_0x302805(0x27a)]||=_0xe3b655,!this[_0x302805(0x2e9)][_0x302805(0x2f2)](_0x209820['id'],{'unitId':this['_base'][_0x302805(0x28e)](),'tableId':this['_table'][_0x302805(0x28e)](),'sourceRecordId':this[_0x302805(0x30e)],'record':_0x5bf770,'source':_0x198fc0['Facade']}))throw Error(_0x302805(0x2ae)+this[_0x302805(0x30e)]+'\x22.');return this[_0x302805(0x2ce)]['createInstance'](q,this[_0x302805(0x1dc)],this[_0x302805(0x329)],_0x5bf770['id'],this[_0x302805(0x2ce)]);}[_0x46a1c2(0x236)](_0x22f690){const _0x4bb0d7=_0x46a1c2;return this[_0x4bb0d7(0x2e9)][_0x4bb0d7(0x2f2)](_0x319f6b['id'],{'unitId':this[_0x4bb0d7(0x1dc)][_0x4bb0d7(0x28e)](),'tableId':this[_0x4bb0d7(0x329)]['getId'](),'recordId':this[_0x4bb0d7(0x30e)],'orderKey':_0x22f690});}[_0x46a1c2(0x2d7)](_0xcbc498){const _0x2f3d50=_0x46a1c2;let _0x6d521e=this[_0x2f3d50(0x30c)](_0xcbc498);return _0x855fa7(this[_0x2f3d50(0x27d)](_0x6d521e['id']));}[_0x46a1c2(0x1e4)](_0xed2418,_0x118267){const _0x266e7d=_0x46a1c2;let _0x4ace35=this[_0x266e7d(0x30c)](_0xed2418),_0x357c0f=_0x3d1f9e(_0x118267),_0x142e90=_0x42ad7f(this[_0x266e7d(0x1dc)][_0x266e7d(0x245)]()['getSnapshot'](),_0x4ace35,_0x357c0f);if(!_0x142e90[_0x266e7d(0x2dc)])throw Error(_0x142e90[_0x266e7d(0x273)]??'[FRecord]:\x20invalid\x20RecordLink\x20value.');return this['_commandService'][_0x266e7d(0x2f2)](_0x13c61e['id'],{'unitId':this['_base'][_0x266e7d(0x28e)](),'tableId':this[_0x266e7d(0x329)][_0x266e7d(0x28e)](),'recordId':this[_0x266e7d(0x30e)],'fieldId':_0xed2418,'value':_0x357c0f,'source':_0x198fc0[_0x266e7d(0x31b)]});}[_0x46a1c2(0x218)](_0x2e78de,_0xf8c765){const _0x58d613=_0x46a1c2;let _0x158e47=_0x15242e(this['_getRecordLinkField'](_0x2e78de));if(!_0x158e47)throw Error(_0x58d613(0x274)+_0x2e78de+'\x22\x20has\x20invalid\x20config.');let _0x846797=this[_0x58d613(0x2d7)](_0x2e78de);return _0x158e47[_0x58d613(0x22e)]&&_0x846797['includes'](_0xf8c765)?!0x0:this[_0x58d613(0x1e4)](_0x2e78de,_0x158e47[_0x58d613(0x22e)]?[..._0x846797,_0xf8c765]:[_0xf8c765]);}[_0x46a1c2(0x2e0)](_0x7adfe0,_0x2b5094){const _0x324899=_0x46a1c2;let _0x12b98d=this['getLinkedRecordIds'](_0x7adfe0);return!_0x12b98d[_0x324899(0x25a)](_0x2b5094)||this[_0x324899(0x1e4)](_0x7adfe0,_0x12b98d[_0x324899(0x252)](_0x242675=>_0x242675!==_0x2b5094));}[_0x46a1c2(0x272)](_0x286e39){const _0x16202f=_0x46a1c2;let _0x583f78=this[_0x16202f(0x24c)](_0x286e39)[_0x16202f(0x201)]['get'](this[_0x16202f(0x30e)])??null;return _0x583f78?this[_0x16202f(0x329)]['getRecordById'](_0x583f78):null;}[_0x46a1c2(0x327)](_0x1f1187){const _0x54cb77=_0x46a1c2;return(this[_0x54cb77(0x24c)](_0x1f1187)[_0x54cb77(0x291)]['get'](this[_0x54cb77(0x30e)])??[])[_0x54cb77(0x23e)](_0x26fad1=>{const _0x2d938f=_0x54cb77;let _0x3a7014=this[_0x2d938f(0x329)][_0x2d938f(0x320)](_0x26fad1);return _0x3a7014?[_0x3a7014]:[];});}[_0x46a1c2(0x24f)](_0x53bfe1){const _0x35324b=_0x46a1c2;let _0x1a1e30=this['_getHierarchyIndex'](_0x53bfe1),_0x37169e=[],_0x2ac6fa=_0x1a1e30[_0x35324b(0x201)]['get'](this[_0x35324b(0x30e)])??null;for(;_0x2ac6fa;){let _0x3bab0d=this['_table'][_0x35324b(0x320)](_0x2ac6fa);_0x3bab0d&&_0x37169e[_0x35324b(0x2c5)](_0x3bab0d),_0x2ac6fa=_0x1a1e30[_0x35324b(0x201)][_0x35324b(0x307)](_0x2ac6fa)??null;}return _0x37169e;}[_0x46a1c2(0x2fd)](_0x4ea204){const _0x4d4e7f=_0x46a1c2;let _0x5ddd96=this[_0x4d4e7f(0x24c)](_0x4ea204),_0x1a5c74=_0x5ddd96['orderedRecordIds'][_0x4d4e7f(0x1f0)](this[_0x4d4e7f(0x30e)]),_0x34698b=_0x5ddd96['subtreeHeightByRecordId'][_0x4d4e7f(0x2e6)](this['_recordId'])?this['_collectDescendantIds'](_0x5ddd96[_0x4d4e7f(0x291)],this['_recordId']):[];return _0x1a5c74<0x0?[]:_0x34698b[_0x4d4e7f(0x23e)](_0x3cdd31=>{const _0x59918f=_0x4d4e7f;let _0x2a3a15=this[_0x59918f(0x329)][_0x59918f(0x320)](_0x3cdd31);return _0x2a3a15?[_0x2a3a15]:[];});}['setParent'](_0x55a078,_0x4c68ad,_0x34b6cc){const _0x1a2e63=_0x46a1c2;return this[_0x1a2e63(0x2e9)][_0x1a2e63(0x2f2)](_0x345dff['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table']['getId'](),'fieldId':_0x55a078,'recordId':this[_0x1a2e63(0x30e)],'parentRecordId':_0x4c68ad,'orderKey':_0x34b6cc,'source':_0x198fc0[_0x1a2e63(0x31b)]});}[_0x46a1c2(0x30f)](_0x540b6c,_0xeac821,_0x7ba61d='id',_0x4b401c){const _0x198135=_0x46a1c2;let _0x2131b6=this[_0x198135(0x329)][_0x198135(0x310)](),_0x13dd06=Date[_0x198135(0x204)](),_0x4d4589={..._0x4b401c,'id':_0x5f0f93(0x6),'values':H(_0x2131b6,_0xeac821,_0x7ba61d),'orderKey':(_0x4b401c==null?void 0x0:_0x4b401c[_0x198135(0x1e8)])||''+_0x13dd06,'createdAt':(_0x4b401c==null?void 0x0:_0x4b401c['createdAt'])||_0x13dd06,'updatedAt':(_0x4b401c==null?void 0x0:_0x4b401c[_0x198135(0x27a)])||_0x13dd06};if(!this[_0x198135(0x2e9)][_0x198135(0x2f2)](_0x168ce8['id'],{'unitId':this[_0x198135(0x1dc)][_0x198135(0x28e)](),'tableId':this[_0x198135(0x329)]['getId'](),'fieldId':_0x540b6c,'parentRecordId':this[_0x198135(0x30e)],'record':_0x4d4589,'source':_0x198fc0[_0x198135(0x31b)]}))throw Error(_0x198135(0x22f)+this[_0x198135(0x30e)]+'\x22.');return this[_0x198135(0x2ce)][_0x198135(0x1f3)](q,this[_0x198135(0x1dc)],this[_0x198135(0x329)],_0x4d4589['id'],this[_0x198135(0x2ce)]);}[_0x46a1c2(0x24c)](_0x1f1d5d){return _0x345aca(this['_table']['getTable'](),_0x1f1d5d);}[_0x46a1c2(0x224)](_0x1773b7,_0x373e7f){let _0x549ee3=[],_0x3d483a=_0x1106bd=>{const _0x5e359b=_0x5746;for(let _0x12eaff of _0x1773b7[_0x5e359b(0x307)](_0x1106bd)??[])_0x549ee3[_0x5e359b(0x2c5)](_0x12eaff),_0x3d483a(_0x12eaff);};return _0x3d483a(_0x373e7f),_0x549ee3;}['_getRecord'](){const _0x18d1f4=_0x46a1c2;let _0x3db174=this[_0x18d1f4(0x329)][_0x18d1f4(0x310)]()[_0x18d1f4(0x302)][this[_0x18d1f4(0x30e)]];if(!_0x3db174)throw Error(_0x18d1f4(0x269)+this['_recordId']+_0x18d1f4(0x2c3));return _0x3db174;}[_0x46a1c2(0x30c)](_0x369a51){const _0x58d71d=_0x46a1c2;let _0x864f72=this[_0x58d71d(0x329)][_0x58d71d(0x310)]()[_0x58d71d(0x2b9)][_0x369a51];if(!_0x864f72||_0x864f72[_0x58d71d(0x241)]!==_0xafe9b1[_0x58d71d(0x2cc)])throw Error(_0x58d71d(0x2c6)+_0x369a51+_0x58d71d(0x21a));return _0x864f72;}};J=q=z([R(0x4,_0x3ac0f5)],J);let Y=class{constructor(_0x356cd1,_0x225251,_0x4ea1ef,_0x331bdd,_0x1524e6,_0xe8490e){const _0x5b49fa=_0x46a1c2;this[_0x5b49fa(0x1dc)]=_0x356cd1,this['_table']=_0x225251,this['_viewId']=_0x4ea1ef,this['_injector']=_0x331bdd,this[_0x5b49fa(0x2e9)]=_0x1524e6,this[_0x5b49fa(0x25e)]=_0xe8490e;}['getId'](){const _0x1df3b1=_0x46a1c2;return this[_0x1df3b1(0x267)];}[_0x46a1c2(0x2fc)](){const _0x4ec6e6=_0x46a1c2;return this[_0x4ec6e6(0x2a9)]();}['getName'](){const _0x17eae9=_0x46a1c2;return this[_0x17eae9(0x2a9)]()[_0x17eae9(0x2aa)];}['getType'](){const _0x51ae92=_0x46a1c2;return this[_0x51ae92(0x2a9)]()[_0x51ae92(0x241)];}['setName'](_0xb7ef3e){const _0x553ad9=_0x46a1c2;return this[_0x553ad9(0x2e9)][_0x553ad9(0x2f2)](_0xdf6fe9['id'],{'unitId':this[_0x553ad9(0x1dc)][_0x553ad9(0x28e)](),'tableId':this[_0x553ad9(0x329)]['getId'](),'viewId':this[_0x553ad9(0x267)],'name':_0xb7ef3e});}[_0x46a1c2(0x31d)](){const _0x32c855=_0x46a1c2;let _0x3e567d=this[_0x32c855(0x1fa)](),_0xb19de8=this['_getView']()[_0x32c855(0x296)];switch(_0x3e567d){case _0x477789[_0x32c855(0x1fd)]:return _0xb19de8;case _0x477789[_0x32c855(0x31a)]:return _0xb19de8;case _0x477789[_0x32c855(0x25f)]:return _0xb19de8;case _0x477789[_0x32c855(0x2de)]:return _0xb19de8;case _0x477789[_0x32c855(0x305)]:return _0xb19de8;default:return _0xb19de8;}}[_0x46a1c2(0x31e)](_0x16f9ed){const _0x5eba7c=_0x46a1c2;return this['_commandService']['syncExecuteCommand'](_0x1b5df4['id'],{'unitId':this[_0x5eba7c(0x1dc)][_0x5eba7c(0x28e)](),'tableId':this[_0x5eba7c(0x329)][_0x5eba7c(0x28e)](),'viewId':this[_0x5eba7c(0x267)],'patch':_0x16f9ed});}[_0x46a1c2(0x2ca)](){const _0x255467=_0x46a1c2;var _0x560d7c;return _0x125277[_0x255467(0x1ed)](((_0x560d7c=this[_0x255467(0x2a9)]()[_0x255467(0x296)][_0x255467(0x2ad)])==null?void 0x0:_0x560d7c[_0x255467(0x27f)])??[]);}[_0x46a1c2(0x1f5)](_0x2c8ecc){const _0x4af48f=_0x46a1c2;return this[_0x4af48f(0x2e9)][_0x4af48f(0x2f2)](_0x346c53['id'],{'unitId':this[_0x4af48f(0x1dc)][_0x4af48f(0x28e)](),'tableId':this[_0x4af48f(0x329)][_0x4af48f(0x28e)](),'viewId':this[_0x4af48f(0x267)],'type':_0x25f9f8[_0x4af48f(0x260)],'rules':_0x2c8ecc});}['addConditionalColorRule'](_0x2b1b16){const _0x1576d2=_0x46a1c2;return this[_0x1576d2(0x2e9)][_0x1576d2(0x2f2)](_0x346c53['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x1576d2(0x329)][_0x1576d2(0x28e)](),'viewId':this[_0x1576d2(0x267)],'type':_0x25f9f8[_0x1576d2(0x244)],'rule':_0x2b1b16});}['deleteConditionalColorRule'](_0x1007b4){const _0x37531e=_0x46a1c2;return this[_0x37531e(0x2e9)][_0x37531e(0x2f2)](_0x346c53['id'],{'unitId':this[_0x37531e(0x1dc)][_0x37531e(0x28e)](),'tableId':this['_table']['getId'](),'viewId':this[_0x37531e(0x267)],'type':_0x25f9f8[_0x37531e(0x301)],'ruleId':_0x1007b4});}['clearConditionalColorRules'](){const _0x592e7a=_0x46a1c2;return this['_commandService'][_0x592e7a(0x2f2)](_0x346c53['id'],{'unitId':this[_0x592e7a(0x1dc)][_0x592e7a(0x28e)](),'tableId':this[_0x592e7a(0x329)]['getId'](),'viewId':this[_0x592e7a(0x267)],'type':_0x25f9f8['Clear']});}[_0x46a1c2(0x250)](){const _0x535092=_0x46a1c2;return this['_getView']()[_0x535092(0x252)]??null;}['setFilter'](_0x3f7a7a){const _0x2762a9=_0x46a1c2;return this[_0x2762a9(0x2e9)][_0x2762a9(0x2f2)](_0x182d68['id'],{'unitId':this[_0x2762a9(0x1dc)][_0x2762a9(0x28e)](),'tableId':this[_0x2762a9(0x329)][_0x2762a9(0x28e)](),'viewId':this[_0x2762a9(0x267)],'filter':_0x3f7a7a});}['getSort'](){const _0xf62ec7=_0x46a1c2;return this[_0xf62ec7(0x2a9)]()[_0xf62ec7(0x23c)]??[];}[_0x46a1c2(0x2a2)](_0x12ef75){const _0x1f8e46=_0x46a1c2;return this[_0x1f8e46(0x2e9)][_0x1f8e46(0x2f2)](_0x164ead['id'],{'unitId':this[_0x1f8e46(0x1dc)][_0x1f8e46(0x28e)](),'tableId':this['_table'][_0x1f8e46(0x28e)](),'viewId':this['_viewId'],'sort':_0x12ef75});}[_0x46a1c2(0x1e7)](){const _0x35ac3d=_0x46a1c2;return this[_0x35ac3d(0x2a9)]()[_0x35ac3d(0x1f6)]??[];}['setGroup'](_0x313ee5){const _0x182d45=_0x46a1c2;return this[_0x182d45(0x2e9)][_0x182d45(0x2f2)](_0x398613['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0x182d45(0x28e)](),'viewId':this[_0x182d45(0x267)],'group':_0x313ee5});}[_0x46a1c2(0x2a4)](_0x5ad448){const _0x63b29f=_0x46a1c2;var _0x573843;return V(this[_0x63b29f(0x329)]['getTable']()[_0x63b29f(0x2b9)][_0x5ad448])?((_0x573843=this[_0x63b29f(0x2a9)]()['fieldSettings'])==null?void 0x0:_0x573843[_0x5ad448])??{}:{};}[_0x46a1c2(0x27c)](){const _0x3681a3=_0x46a1c2;let _0x5b541b=this[_0x3681a3(0x329)][_0x3681a3(0x310)](),_0x4df094=this[_0x3681a3(0x2a9)]();return(_0x4df094[_0x3681a3(0x249)]??_0x5b541b[_0x3681a3(0x249)])[_0x3681a3(0x252)](_0x3de25f=>{const _0x3b67d8=_0x3681a3;var _0x111f42;let _0x1d6e89=_0x5b541b[_0x3b67d8(0x2b9)][_0x3de25f];return V(_0x1d6e89)&&!((_0x111f42=_0x4df094['fieldSettings'])!=null&&(_0x111f42=_0x111f42[_0x3de25f])!=null&&_0x111f42[_0x3b67d8(0x321)]);})[_0x3681a3(0x232)](_0x14cd1b=>this[_0x3681a3(0x306)][_0x3681a3(0x1f3)](B,this[_0x3681a3(0x1dc)],this['_table'],_0x14cd1b));}['setFieldVisible'](_0x52cc3c,_0x141ee7){const _0x2ce109=_0x46a1c2;return V(this[_0x2ce109(0x329)][_0x2ce109(0x310)]()['fields'][_0x52cc3c])?this['_commandService']['syncExecuteCommand'](_0x171450['id'],{'unitId':this[_0x2ce109(0x1dc)]['getId'](),'tableId':this[_0x2ce109(0x329)]['getId'](),'viewId':this['_viewId'],'fieldId':_0x52cc3c,'visible':_0x141ee7}):!0x1;}[_0x46a1c2(0x2dd)](_0x55a484,_0x4f67bb){const _0x4fb44d=_0x46a1c2;return V(this['_table']['getTable']()[_0x4fb44d(0x2b9)][_0x55a484])?this['_commandService']['syncExecuteCommand'](_0x2a4787['id'],{'unitId':this[_0x4fb44d(0x1dc)]['getId'](),'tableId':this['_table'][_0x4fb44d(0x28e)](),'viewId':this[_0x4fb44d(0x267)],'fieldId':_0x55a484,'width':_0x4f67bb}):!0x1;}[_0x46a1c2(0x265)](_0x11cc70,_0x3318b9){const _0x1b75a1=_0x46a1c2;let _0x3bc7b0=this[_0x1b75a1(0x329)]['getTable'](),_0x16423f=_0x3318b9[_0x1b75a1(0x2a0)]??_0x3318b9[_0x1b75a1(0x2e5)];return!V(_0x3bc7b0['fields'][_0x11cc70])||!_0x16423f||!V(_0x3bc7b0[_0x1b75a1(0x2b9)][_0x16423f])?!0x1:this[_0x1b75a1(0x2e9)][_0x1b75a1(0x2f2)](_0x3001eb['id'],{'unitId':this[_0x1b75a1(0x1dc)][_0x1b75a1(0x28e)](),'tableId':this[_0x1b75a1(0x329)]['getId'](),'viewId':this[_0x1b75a1(0x267)],'fieldId':_0x11cc70,'target':_0x3318b9});}[_0x46a1c2(0x308)](_0xd112d2){const _0x3a2bcb=_0x46a1c2;return this[_0x3a2bcb(0x2e9)][_0x3a2bcb(0x2f2)](_0x3c52e4['id'],{'unitId':this[_0x3a2bcb(0x1dc)]['getId'](),'tableId':this[_0x3a2bcb(0x329)]['getId'](),'viewId':this['_viewId'],'target':_0xd112d2});}[_0x46a1c2(0x229)](){const _0x5787d4=_0x46a1c2;return this[_0x5787d4(0x2e9)][_0x5787d4(0x2f2)](_0x13f67c['id'],{'unitId':this[_0x5787d4(0x1dc)][_0x5787d4(0x28e)](),'tableId':this[_0x5787d4(0x329)][_0x5787d4(0x28e)](),'viewId':this[_0x5787d4(0x267)]});}['getProjection'](){const _0x3c5e63=_0x46a1c2;return this[_0x3c5e63(0x25e)][_0x3c5e63(0x2ac)](this['_base']['getBase']()[_0x3c5e63(0x2b7)](),this[_0x3c5e63(0x329)][_0x3c5e63(0x28e)](),this[_0x3c5e63(0x267)]);}[_0x46a1c2(0x2a9)](){const _0x8d1ace=_0x46a1c2;let _0x1ddffe=this[_0x8d1ace(0x329)]['getTable']()[_0x8d1ace(0x283)][this[_0x8d1ace(0x267)]];if(!_0x1ddffe)throw Error(_0x8d1ace(0x1d9)+this[_0x8d1ace(0x267)]+_0x8d1ace(0x2c3));return _0x1ddffe;}};Y=z([R(0x4,_0x3ac0f5),R(0x5,_0x5db0b9)],Y);let X=class{constructor(_0x4a6d48,_0x5da5c5,_0x1f1daf,_0x2f54ef,_0x1c6ecc){const _0x6f5179=_0x46a1c2;this[_0x6f5179(0x1dc)]=_0x4a6d48,this[_0x6f5179(0x248)]=_0x5da5c5,this[_0x6f5179(0x306)]=_0x1f1daf,this[_0x6f5179(0x2e9)]=_0x2f54ef,this[_0x6f5179(0x25e)]=_0x1c6ecc;}[_0x46a1c2(0x245)](){const _0x24efe0=_0x46a1c2;return this[_0x24efe0(0x1dc)][_0x24efe0(0x245)]();}['getTable'](){const _0x4593f5=_0x46a1c2;return this[_0x4593f5(0x2bb)]();}[_0x46a1c2(0x28e)](){return this['_tableId'];}['getHierarchyFieldId'](){const _0x500fbe=_0x46a1c2;return _0x312492(this[_0x500fbe(0x2bb)]());}[_0x46a1c2(0x2e8)](_0x28a580){const _0x2bc852=_0x46a1c2;return this[_0x2bc852(0x2e9)][_0x2bc852(0x2f2)](_0x10d0c8['id'],{'unitId':this[_0x2bc852(0x1dc)][_0x2bc852(0x28e)](),'tableId':this[_0x2bc852(0x248)],'fieldId':_0x28a580});}[_0x46a1c2(0x2fb)](){const _0x4fe5e4=_0x46a1c2;return this['_getTable']()[_0x4fe5e4(0x2aa)];}[_0x46a1c2(0x2ba)](){const _0x317afa=_0x46a1c2;let _0x127507=this['_base']['getBase']()[_0x317afa(0x2b7)]();return _0x499083(this[_0x317afa(0x2bb)](),_0x127507);}[_0x46a1c2(0x21f)](_0x445c77){const _0x4d9582=_0x46a1c2;let _0x348a85=_0x545bdb(this[_0x4d9582(0x1dc)][_0x4d9582(0x245)]()[_0x4d9582(0x2b7)](),_0x445c77,this[_0x4d9582(0x248)]);if(!_0x348a85[_0x4d9582(0x2dc)])throw Error(_0x4d9582(0x2d3)+_0x445c77+_0x4d9582(0x317)+_0x30ff66+'\x20'+_0x348a85[_0x4d9582(0x273)]);return this['_commandService']['syncExecuteCommand'](_0x15e70d['id'],{'unitId':this[_0x4d9582(0x1dc)][_0x4d9582(0x28e)](),'tableId':this[_0x4d9582(0x248)],'name':_0x445c77});}[_0x46a1c2(0x2d5)](_0x493c3c,_0x2f7f2b){const _0x3213ad=_0x46a1c2;let _0x7f5210=this['_base'][_0x3213ad(0x245)]()[_0x3213ad(0x2b7)](),_0x34de9f=this[_0x3213ad(0x2bb)]();if(_0x2f7f2b){let _0x55165c=this[_0x3213ad(0x25e)][_0x3213ad(0x2ac)](_0x7f5210,this[_0x3213ad(0x248)],_0x2f7f2b),_0xb263d2=_0x34de9f['views'][_0x2f7f2b],_0x4524bc=_0x493c3c[_0x3213ad(0x1df)]??ot(_0x34de9f,_0xb263d2,_0x55165c),_0x206a83=_0x3213ad(0x212)in _0x55165c&&Array[_0x3213ad(0x2db)](_0x55165c[_0x3213ad(0x212)])?_0x55165c[_0x3213ad(0x212)]:[];return _0x2df9ac({..._0x493c3c,'table':_0x34de9f,'fieldIds':_0x4524bc,'rows':_0x206a83});}let _0x4758a4=(_0x34de9f['recordOrder']?_0x34de9f['recordOrder'][_0x3213ad(0x232)](_0x12b17c=>_0x34de9f[_0x3213ad(0x302)][_0x12b17c]):Object['values'](_0x34de9f['records'])[_0x3213ad(0x23c)]((_0x53df1e,_0x2782f8)=>_0x53df1e['orderKey']['localeCompare'](_0x2782f8['orderKey'])))[_0x3213ad(0x252)](_0x3eb9d4=>_0x3eb9d4)[_0x3213ad(0x232)](_0x721232=>({'recordId':_0x721232['id'],'values':_0x721232[_0x3213ad(0x326)]})),_0x34d05e=_0x493c3c['fieldIds']??_0x34de9f[_0x3213ad(0x249)]['filter'](_0x249aaf=>V(_0x34de9f['fields'][_0x249aaf]));return _0x2df9ac({..._0x493c3c,'table':_0x34de9f,'fieldIds':_0x34d05e,'rows':_0x4758a4});}[_0x46a1c2(0x271)](){const _0x5f04b1=_0x46a1c2;return this[_0x5f04b1(0x2bb)]()['primaryFieldId'];}[_0x46a1c2(0x2ed)](){const _0x53f785=_0x46a1c2;let _0x3652f3=this[_0x53f785(0x2bb)]();return _0x3652f3[_0x53f785(0x249)][_0x53f785(0x232)](_0x39f352=>_0x3652f3[_0x53f785(0x2b9)][_0x39f352])['filter'](V)[_0x53f785(0x232)](_0x228fa1=>this['_injector'][_0x53f785(0x1f3)](B,this['_base'],this,_0x228fa1['id']));}[_0x46a1c2(0x29d)](_0x559106){const _0x17b2ac=_0x46a1c2;let _0x3e74e4=this[_0x17b2ac(0x2bb)]()[_0x17b2ac(0x2b9)][_0x559106];return V(_0x3e74e4)?this[_0x17b2ac(0x306)][_0x17b2ac(0x1f3)](B,this['_base'],this,_0x3e74e4['id']):null;}[_0x46a1c2(0x323)](_0x41808f){const _0x5d1371=_0x46a1c2;let _0x1ab854=this['_getTable']()[_0x5d1371(0x2b9)],_0xf5c4cd=Object['values'](_0x1ab854)['find'](_0x448527=>V(_0x448527)&&_0x448527[_0x5d1371(0x2aa)]===_0x41808f);return _0xf5c4cd?this[_0x5d1371(0x306)][_0x5d1371(0x1f3)](B,this[_0x5d1371(0x1dc)],this,_0xf5c4cd['id']):null;}['getPrimaryField'](){const _0x24d443=_0x46a1c2;let _0x555713=this[_0x24d443(0x2bb)]()[_0x24d443(0x24b)];return this[_0x24d443(0x306)][_0x24d443(0x1f3)](B,this[_0x24d443(0x1dc)],this,_0x555713);}[_0x46a1c2(0x2af)](_0x598122,_0x14d9cc,_0x2a53e7){const _0xcfb1b=_0x46a1c2;var _0x5aac96,_0x1e17a1;if(!Object['values'](_0xafe9b1)[_0xcfb1b(0x259)](_0x38c6e5=>_0x38c6e5===_0x14d9cc))throw Error(_0xcfb1b(0x286)+String(_0x14d9cc)+'\x22.');if(_0x14d9cc===_0xafe9b1[_0xcfb1b(0x2d4)]&&this[_0xcfb1b(0x293)](_0x598122,_0x2a53e7),_0x14d9cc===_0xafe9b1[_0xcfb1b(0x2cc)]&&(typeof(_0x2a53e7==null||(_0x5aac96=_0x2a53e7['field'])==null||(_0x5aac96=_0x5aac96['config'])==null?void 0x0:_0x5aac96[_0xcfb1b(0x285)])!='string'||typeof _0x2a53e7[_0xcfb1b(0x2c7)][_0xcfb1b(0x296)][_0xcfb1b(0x22e)]!=_0xcfb1b(0x21c)))throw Error('RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.');let _0x42daef={..._0x2a53e7==null?void 0x0:_0x2a53e7[_0xcfb1b(0x2c7)],'id':_0x5f0f93(0x6),'name':_0x598122,'type':_0x14d9cc,'config':(_0x2a53e7==null||(_0x1e17a1=_0x2a53e7['field'])==null?void 0x0:_0x1e17a1[_0xcfb1b(0x296)])??{}};if(!this['_commandService']['syncExecuteCommand'](_0x15e597['id'],{'unitId':this['_base'][_0xcfb1b(0x28e)](),'tableId':this[_0xcfb1b(0x248)],'field':_0x42daef,'index':_0x2a53e7==null?void 0x0:_0x2a53e7[_0xcfb1b(0x215)]}))throw Error(_0xcfb1b(0x26c)+_0x598122+'\x22');return this[_0xcfb1b(0x306)][_0xcfb1b(0x1f3)](B,this['_base'],this,_0x42daef['id']);}['_prepareFormulaFieldReferences'](_0x2cd4a0,_0x848205){const _0x1a924f=_0x46a1c2;var _0x2512b3;if(!_0x848205||!(_0x1a924f(0x1e6)in _0x848205)||!Array['isArray'](_0x848205[_0x1a924f(0x1e6)]))throw Error('Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.');let _0x221ace=this['_commandService'][_0x1a924f(0x2f2)](_0x59defd['id'],{'unitId':this[_0x1a924f(0x1dc)]['getId'](),'tableId':this['_tableId'],'formula':String(((_0x2512b3=_0x848205[_0x1a924f(0x2c7)])==null||(_0x2512b3=_0x2512b3[_0x1a924f(0x296)])==null?void 0x0:_0x2512b3[_0x1a924f(0x28d)])??'')});if(!_0x221ace['valid'])throw Error(_0x221ace['reason']??_0x1a924f(0x258));if(_0x848205['externalReferences']['length']>0x0&&!this['_commandService'][_0x1a924f(0x2f2)](_0x4e9cb6['id'],{'unitId':this[_0x1a924f(0x1dc)]['getId'](),'references':_0x848205[_0x1a924f(0x1e6)]}))throw Error(_0x1a924f(0x26a)+_0x2cd4a0+'\x22');}[_0x46a1c2(0x1fb)](){const _0x1313c7=_0x46a1c2;return this[_0x1313c7(0x29b)]()[_0x1313c7(0x232)](_0x2b95cf=>this[_0x1313c7(0x306)][_0x1313c7(0x1f3)](J,this[_0x1313c7(0x1dc)],this,_0x2b95cf,this[_0x1313c7(0x306)]));}[_0x46a1c2(0x320)](_0x366ab9){const _0x47a21c=_0x46a1c2;return this['_getTable']()[_0x47a21c(0x302)][_0x366ab9]?this[_0x47a21c(0x306)][_0x47a21c(0x1f3)](J,this[_0x47a21c(0x1dc)],this,_0x366ab9,this[_0x47a21c(0x306)]):null;}[_0x46a1c2(0x2ec)](_0x1f57c5={}){const _0x1a3ad3=_0x46a1c2;let _0x9ab45b=this[_0x1a3ad3(0x2bb)](),_0x1b694a=this[_0x1a3ad3(0x29b)](_0x1f57c5),_0x41767b=Math[_0x1a3ad3(0x31f)](0x0,_0x1f57c5[_0x1a3ad3(0x2d6)]??0x0),_0xb9cc32=_0x1f57c5[_0x1a3ad3(0x2a3)]==null?null:Math[_0x1a3ad3(0x31f)](0x0,_0x1f57c5['limit']),_0x1a968b=et(_0x1b694a['map'](_0x1ecee8=>_0x9ab45b[_0x1a3ad3(0x302)][_0x1ecee8])['filter'](_0x2ab359=>nt(_0x2ab359,_0x9ab45b,_0x1f57c5[_0x1a3ad3(0x252)])),_0x9ab45b,_0x1f57c5[_0x1a3ad3(0x23c)]);return{'records':$e(_0x1a968b,_0x1f57c5)['map'](_0x77700b=>this[_0x1a3ad3(0x306)][_0x1a3ad3(0x1f3)](J,this[_0x1a3ad3(0x1dc)],this,_0x77700b['id'],this[_0x1a3ad3(0x306)])),'total':_0x1a968b[_0x1a3ad3(0x268)],'offset':_0x41767b,'limit':_0xb9cc32,'hasMore':_0xb9cc32!=null&&_0x41767b+_0xb9cc32<_0x1a968b[_0x1a3ad3(0x268)]};}[_0x46a1c2(0x226)](_0x44875f,_0x40dad3='id',_0x585225){const _0x1e7be3=_0x46a1c2;let _0x16a8b0=this[_0x1e7be3(0x2bb)](),_0x51c16b=Date[_0x1e7be3(0x204)](),_0x3c362e={..._0x585225,'id':_0x5f0f93(0x6),'values':H(_0x16a8b0,_0x44875f,_0x40dad3),'orderKey':(_0x585225==null?void 0x0:_0x585225[_0x1e7be3(0x1e8)])||''+_0x51c16b,'createdAt':(_0x585225==null?void 0x0:_0x585225['createdAt'])||_0x51c16b,'updatedAt':(_0x585225==null?void 0x0:_0x585225[_0x1e7be3(0x27a)])||_0x51c16b};if(!this[_0x1e7be3(0x2e9)]['syncExecuteCommand'](_0x44b407['id'],{'unitId':this['_base'][_0x1e7be3(0x28e)](),'tableId':this['_tableId'],'record':_0x3c362e,'source':_0x198fc0[_0x1e7be3(0x31b)]}))throw Error(_0x1e7be3(0x30d)+_0x3c362e['id']+'\x22');return this[_0x1e7be3(0x306)][_0x1e7be3(0x1f3)](J,this[_0x1e7be3(0x1dc)],this,_0x3c362e['id'],this[_0x1e7be3(0x306)]);}['addRecords'](_0x228a06){const _0x56bdb7=_0x46a1c2;if(!_0x228a06[_0x56bdb7(0x268)])return[];let _0xc523a7=this['_getTable'](),_0x28a629=Date[_0x56bdb7(0x204)](),_0x28ae4d=_0x228a06[_0x56bdb7(0x232)]((_0x5a8aa6,_0x40d95d)=>{const _0x5694d3=_0x56bdb7;var _0x12d9c3,_0x171672,_0x29836b;return{..._0x5a8aa6['record'],'id':_0x5f0f93(0x6),'values':H(_0xc523a7,_0x5a8aa6[_0x5694d3(0x326)],_0x5a8aa6[_0x5694d3(0x2f5)]??'id'),'orderKey':((_0x12d9c3=_0x5a8aa6['record'])==null?void 0x0:_0x12d9c3[_0x5694d3(0x1e8)])||''+(_0x28a629+_0x40d95d),'createdAt':((_0x171672=_0x5a8aa6[_0x5694d3(0x2bc)])==null?void 0x0:_0x171672[_0x5694d3(0x206)])||_0x28a629,'updatedAt':((_0x29836b=_0x5a8aa6['record'])==null?void 0x0:_0x29836b[_0x5694d3(0x27a)])||_0x28a629};});if(!this[_0x56bdb7(0x2e9)]['syncExecuteCommand'](_0x280e1e['id'],{'unitId':this[_0x56bdb7(0x1dc)]['getId'](),'tableId':this[_0x56bdb7(0x248)],'records':_0x28ae4d,'source':_0x198fc0[_0x56bdb7(0x31b)]}))throw Error(_0x56bdb7(0x304));return _0x28ae4d[_0x56bdb7(0x232)](_0x46b067=>this['_injector'][_0x56bdb7(0x1f3)](J,this[_0x56bdb7(0x1dc)],this,_0x46b067['id'],this[_0x56bdb7(0x306)]));}['deleteRecords'](_0x37a3b2){const _0x587e7d=_0x46a1c2;return!_0x37a3b2['length']||this[_0x587e7d(0x2e9)][_0x587e7d(0x2f2)](_0xb3d33d['id'],{'unitId':this[_0x587e7d(0x1dc)]['getId'](),'tableId':this[_0x587e7d(0x248)],'recordIds':_0x37a3b2,'source':_0x198fc0['Facade']});}['getRange'](_0x34d2f5,_0x35af18,_0x648168=0x1,_0x51b7de=0x1){const _0x141fcd=_0x46a1c2;return this['_injector'][_0x141fcd(0x1f3)](K,this['_base'],this,{'startRow':_0x34d2f5,'endRow':_0x34d2f5+_0x648168-0x1,'startColumn':_0x35af18,'endColumn':_0x35af18+_0x51b7de-0x1},this[_0x141fcd(0x306)]);}[_0x46a1c2(0x210)](){const _0x2e2507=_0x46a1c2;var _0x55a9a0;let _0x5bd8e6=_0x580a6d(this[_0x2e2507(0x2bb)]()),_0xff4efa=((_0x55a9a0=_0x5bd8e6[_0x2e2507(0x213)])==null?void 0x0:_0x55a9a0[_0x2e2507(0x268)])??0x0,_0x584175=_0x5bd8e6['fieldOrder'][_0x2e2507(0x252)](_0x34d76b=>V(_0x5bd8e6[_0x2e2507(0x2b9)][_0x34d76b]))[_0x2e2507(0x268)];return this[_0x2e2507(0x220)](0x0,0x0,Math['max'](_0xff4efa,0x1),Math[_0x2e2507(0x31f)](_0x584175,0x1));}[_0x46a1c2(0x328)](){const _0xc22912=_0x46a1c2;let _0x1d40b8=this[_0xc22912(0x2bb)]();return _0x1d40b8['viewOrder'][_0xc22912(0x252)](_0x5a2ff6=>_0x1d40b8[_0xc22912(0x283)][_0x5a2ff6])[_0xc22912(0x232)](_0x2e7484=>this['_injector'][_0xc22912(0x1f3)](Y,this['_base'],this,_0x2e7484,this['_injector']));}['getViewById'](_0x876283){const _0x15e2f1=_0x46a1c2;return this[_0x15e2f1(0x2bb)]()[_0x15e2f1(0x283)][_0x876283]?this[_0x15e2f1(0x306)][_0x15e2f1(0x1f3)](Y,this['_base'],this,_0x876283,this['_injector']):null;}[_0x46a1c2(0x20d)](_0x382700){const _0x23964f=_0x46a1c2;let _0x44aa69=this[_0x23964f(0x2bb)](),_0x3cd79e=Object[_0x23964f(0x326)](_0x44aa69[_0x23964f(0x283)])[_0x23964f(0x1dd)](_0x22c79f=>_0x22c79f['name']===_0x382700);return _0x3cd79e?this[_0x23964f(0x306)][_0x23964f(0x1f3)](Y,this[_0x23964f(0x1dc)],this,_0x3cd79e['id'],this['_injector']):null;}[_0x46a1c2(0x234)](_0x371b66,_0x557f6a,_0x454eef){const _0x408023=_0x46a1c2;var _0x6dac4a,_0x1c0b03,_0xdfc3e6,_0x58c677;let _0x5ae3ff=this[_0x408023(0x2bb)](),_0x1b4745=[_0x56d8f8,...((_0x454eef==null||(_0x6dac4a=_0x454eef[_0x408023(0x247)])==null?void 0x0:_0x6dac4a[_0x408023(0x249)])??_0x5ae3ff[_0x408023(0x249)])[_0x408023(0x252)](_0x530bde=>V(_0x5ae3ff['fields'][_0x530bde]))],_0x8b263={..._0x454eef==null?void 0x0:_0x454eef['view'],'id':_0x5f0f93(0x6),'name':_0x371b66,'type':_0x557f6a,'tableId':this[_0x408023(0x248)],'config':(_0x454eef==null||(_0x1c0b03=_0x454eef[_0x408023(0x247)])==null?void 0x0:_0x1c0b03[_0x408023(0x296)])??{},'fieldOrder':_0x1b4745,'fieldSettings':{..._0x454eef==null||(_0xdfc3e6=_0x454eef[_0x408023(0x247)])==null?void 0x0:_0xdfc3e6[_0x408023(0x280)],[_0x56d8f8]:{..._0x454eef==null||(_0x58c677=_0x454eef[_0x408023(0x247)])==null||(_0x58c677=_0x58c677[_0x408023(0x280)])==null?void 0x0:_0x58c677[_0x56d8f8],'hidden':!0x0}}};if(!this['_commandService'][_0x408023(0x2f2)](_0x58c95d['id'],{'unitId':this['_base'][_0x408023(0x28e)](),'tableId':this[_0x408023(0x248)],'view':_0x8b263,'index':_0x454eef==null?void 0x0:_0x454eef[_0x408023(0x215)]}))throw Error(_0x408023(0x2ee)+_0x371b66+'\x22');return this[_0x408023(0x306)]['createInstance'](Y,this[_0x408023(0x1dc)],this,_0x8b263['id'],this[_0x408023(0x306)]);}[_0x46a1c2(0x1e2)](){const _0x347b6e=_0x46a1c2;let _0x154be9=this[_0x347b6e(0x2bb)](),_0x12dda1=_0x154be9[_0x347b6e(0x249)]['filter'](_0xe1d368=>V(_0x154be9[_0x347b6e(0x2b9)][_0xe1d368])),_0x336cdf=_0x154be9[_0x347b6e(0x26d)]['filter'](_0x327de8=>_0x154be9[_0x347b6e(0x283)][_0x327de8]);return{'id':_0x154be9['id'],'name':_0x154be9[_0x347b6e(0x2aa)],'formulaName':this[_0x347b6e(0x2ba)](),'primaryFieldId':_0x154be9[_0x347b6e(0x24b)],'fieldIds':_0x12dda1,'viewIds':_0x336cdf,'recordCount':this[_0x347b6e(0x29b)]()['length'],'fields':_0x12dda1['map'](_0x116250=>{const _0x153093=_0x347b6e;let _0x7dce87=_0x154be9[_0x153093(0x2b9)][_0x116250];return{'id':_0x7dce87['id'],'name':_0x7dce87['name'],'type':_0x7dce87[_0x153093(0x241)],'config':_0x7dce87[_0x153093(0x296)],'readonly':_0x7dce87['readonly'],'description':_0x7dce87['description']};}),'views':_0x336cdf['map'](_0x211b95=>{const _0x56196c=_0x347b6e;let _0x4d6977=_0x154be9[_0x56196c(0x283)][_0x211b95];return{'id':_0x4d6977['id'],'name':_0x4d6977['name'],'type':_0x4d6977[_0x56196c(0x241)]};})};}[_0x46a1c2(0x2bb)](){const _0x5bff85=_0x46a1c2;let _0xd8f664=this[_0x5bff85(0x1dc)][_0x5bff85(0x245)]()[_0x5bff85(0x2b7)]()['tables'][this['_tableId']];if(!_0xd8f664)throw Error(_0x5bff85(0x261)+this[_0x5bff85(0x248)]+'\x22\x20does\x20not\x20exist.');return _0xd8f664;}[_0x46a1c2(0x29b)](_0x550eb8={}){const _0x54a2e2=_0x46a1c2;let _0x46e1cf=this[_0x54a2e2(0x1dc)][_0x54a2e2(0x245)]()[_0x54a2e2(0x2b7)](),_0x4d1f1c=this[_0x54a2e2(0x2bb)]();if(_0x550eb8['viewId']){let _0x3b7bc3=this[_0x54a2e2(0x25e)][_0x54a2e2(0x2ac)](_0x46e1cf,this['_tableId'],_0x550eb8[_0x54a2e2(0x27e)]);if(_0x54a2e2(0x212)in _0x3b7bc3&&Array['isArray'](_0x3b7bc3['rows']))return _0x3b7bc3[_0x54a2e2(0x212)]['map'](_0x46a1e2=>_0x46a1e2[_0x54a2e2(0x275)]);}return(_0x4d1f1c[_0x54a2e2(0x213)]?_0x4d1f1c[_0x54a2e2(0x213)]['map'](_0x244c76=>_0x4d1f1c['records'][_0x244c76]):Object[_0x54a2e2(0x326)](_0x4d1f1c[_0x54a2e2(0x302)])[_0x54a2e2(0x23c)]((_0xa6cde1,_0xf4452d)=>_0xa6cde1['orderKey'][_0x54a2e2(0x254)](_0xf4452d['orderKey'])))[_0x54a2e2(0x252)](_0x1e8ff9=>_0x1e8ff9)[_0x54a2e2(0x232)](_0x48e756=>_0x48e756['id']);}};X=z([R(0x3,_0x3ac0f5),R(0x4,_0x5db0b9)],X);function $e(_0x2457fd,_0x523d4c){const _0x281d6c=_0x46a1c2;let _0xd7f391=Math[_0x281d6c(0x31f)](0x0,_0x523d4c[_0x281d6c(0x2d6)]??0x0);return _0x523d4c[_0x281d6c(0x2a3)]==null?_0x2457fd[_0x281d6c(0x2f8)](_0xd7f391):_0x2457fd[_0x281d6c(0x2f8)](_0xd7f391,_0xd7f391+Math['max'](0x0,_0x523d4c[_0x281d6c(0x2a3)]));}function et(_0x75d3a3,_0x203293,_0x5a5c2c=[]){const _0x31fe16=_0x46a1c2;return _0x5a5c2c[_0x31fe16(0x268)]?[..._0x75d3a3][_0x31fe16(0x23c)]((_0x882d87,_0x3f9b8b)=>{const _0x4efdca=_0x31fe16;for(let _0x3b8b96 of _0x5a5c2c){var _0x5f466e;let _0x5312bf=_0x3b8b96[_0x4efdca(0x26f)]===_0xd1049e[_0x4efdca(0x2e4)]?-0x1:0x1,_0x1b4b83=tt(_0x882d87[_0x4efdca(0x326)][_0x3b8b96[_0x4efdca(0x292)]],_0x3f9b8b[_0x4efdca(0x326)][_0x3b8b96[_0x4efdca(0x292)]],(_0x5f466e=_0x203293[_0x4efdca(0x2b9)][_0x3b8b96[_0x4efdca(0x292)]])==null?void 0x0:_0x5f466e[_0x4efdca(0x241)]);if(_0x1b4b83!==0x0)return _0x1b4b83*_0x5312bf;}return String(_0x882d87[_0x4efdca(0x1e8)]??_0x882d87['id'])[_0x4efdca(0x254)](String(_0x3f9b8b['orderKey']??_0x3f9b8b['id']));}):_0x75d3a3;}function tt(_0x1d2da1,_0x1776be,_0x522ffd){const _0x4f082f=_0x46a1c2;return _0x1d2da1==null&&_0x1776be==null?0x0:_0x1d2da1==null?-0x1:_0x1776be==null?0x1:typeof _0x1d2da1==_0x4f082f(0x287)&&typeof _0x1776be==_0x4f082f(0x287)?_0x1d2da1-_0x1776be:_0x522ffd===_0xafe9b1[_0x4f082f(0x31c)]?Number(_0x1d2da1)-Number(_0x1776be):String(_0x1d2da1)[_0x4f082f(0x254)](String(_0x1776be));}function nt(_0x483af5,_0x5b7b4e,_0x327920){const _0x4586a2=_0x46a1c2;var _0x185bd2;if(!_0x327920||!((_0x185bd2=_0x327920[_0x4586a2(0x2f0)])!=null&&_0x185bd2[_0x4586a2(0x268)]))return!0x0;let {conjunction:_0x176016=_0x1e5d95['OR'],conditions:_0x5240e4}=_0x327920;return _0x176016===_0x1e5d95[_0x4586a2(0x279)]&&_0x5240e4[_0x4586a2(0x268)]>0x1?_0x5240e4[_0x4586a2(0x1f7)](_0x1d3f9b=>rt(_0x483af5,_0x5b7b4e,_0x1d3f9b)):_0x5240e4['some'](_0x192487=>rt(_0x483af5,_0x5b7b4e,_0x192487));}function rt(_0x5588a7,_0x1ecfa2,_0x57a72b){const _0x1c91fc=_0x46a1c2;let _0x5c8645=_0x5588a7[_0x1c91fc(0x326)][_0x57a72b[_0x1c91fc(0x292)]],_0x42b290=_0x1ecfa2['fields'][_0x57a72b[_0x1c91fc(0x292)]];if(it(_0x57a72b)){let _0x328fa1=at(_0x57a72b)[_0x1c91fc(0x282)](String(_0x5c8645??''));return _0x57a72b[_0x1c91fc(0x26b)]===_0x1c91fc(0x312)?_0x328fa1:!_0x328fa1;}return!_0x42b290||_0xc3c013(_0x5c8645,_0x57a72b[_0x1c91fc(0x26b)],_0x57a72b[_0x1c91fc(0x24a)],_0x42b290);}function it(_0xb88ed6){const _0x207fa9=_0x46a1c2;return _0xb88ed6[_0x207fa9(0x26b)]==='matches'||_0xb88ed6['operator']===_0x207fa9(0x1eb);}function at(_0x2b812a){const _0x531e4c=_0x46a1c2;let _0x103eb5=String(_0x2b812a[_0x531e4c(0x24a)]??'');if(_0x103eb5[_0x531e4c(0x268)]>0x200)throw Error(_0x531e4c(0x23b));try{return new RegExp(_0x103eb5,_0x2b812a[_0x531e4c(0x1ea)]?void 0x0:'i');}catch(_0x494dff){throw Error(_0x531e4c(0x26e)+_0x103eb5+'.\x20'+(_0x494dff instanceof Error?_0x494dff['message']:String(_0x494dff)));}}function ot(_0x3a9f51,_0x1b827a,_0x1ec05b){const _0x1e22b7=_0x46a1c2;if(_0x1ec05b['type']!==_0x1e22b7(0x2a1)){var _0x3a2c12;if(_0x1ec05b[_0x1e22b7(0x241)]===_0x477789['Kanban']){var _0x3b4c26;let _0xc02192=[((_0x3b4c26=_0x1ec05b['fields'])==null||(_0x3b4c26=_0x3b4c26[0x0])==null?void 0x0:_0x3b4c26['id'])??_0x3a9f51[_0x1e22b7(0x24b)],..._0x1ec05b[_0x1e22b7(0x2cf)]??[]];return Array[_0x1e22b7(0x29e)](new Set(_0xc02192['filter'](_0x3666ed=>!!_0x3a9f51[_0x1e22b7(0x2b9)][_0x3666ed])));}if((_0x3a2c12=_0x1ec05b['fields'])!=null&&_0x3a2c12[_0x1e22b7(0x268)])return _0x1ec05b[_0x1e22b7(0x2b9)][_0x1e22b7(0x232)](_0x16e372=>_0x16e372['id'])['filter'](_0x58bfce=>{const _0x27ca63=_0x1e22b7;var _0xd55819;return!!(_0x3a9f51['fields'][_0x58bfce]&&!(_0x1b827a!=null&&(_0xd55819=_0x1b827a[_0x27ca63(0x280)])!=null&&(_0xd55819=_0xd55819[_0x58bfce])!=null&&_0xd55819[_0x27ca63(0x321)]));});}return _0x3a9f51[_0x1e22b7(0x249)]['filter'](_0x47108e=>{const _0x5d1674=_0x1e22b7;var _0x592368;return!!(_0x3a9f51['fields'][_0x47108e]&&!(_0x1b827a!=null&&(_0x592368=_0x1b827a[_0x5d1674(0x280)])!=null&&(_0x592368=_0x592368[_0x47108e])!=null&&_0x592368['hidden']));});}function _0x5746(_0x4a3995,_0x390d2b){_0x4a3995=_0x4a3995-0x1d7;const _0x88d198=_0x88d1();let _0x574644=_0x88d198[_0x4a3995];return _0x574644;}let Z=class{constructor(_0x18392d,_0x314bcd,_0x23fb9b,_0x19cd70){const _0x8b0159=_0x46a1c2;this[_0x8b0159(0x1dc)]=_0x18392d,this[_0x8b0159(0x306)]=_0x314bcd,this['_resourceLoaderService']=_0x23fb9b,this[_0x8b0159(0x2e9)]=_0x19cd70;}[_0x46a1c2(0x245)](){const _0x266229=_0x46a1c2;return this[_0x266229(0x1dc)];}['getId'](){const _0x3dfe17=_0x46a1c2;return this[_0x3dfe17(0x1dc)]['getUnitId']();}['save'](){const _0x1d3440=_0x46a1c2;return this[_0x1d3440(0x1ec)][_0x1d3440(0x262)](this[_0x1d3440(0x28e)]())??_0x125277['deepClone'](this[_0x1d3440(0x1dc)]['getSnapshot']());}['getName'](){const _0x377fd2=_0x46a1c2;return this['_base'][_0x377fd2(0x2b7)]()[_0x377fd2(0x2aa)];}['setName'](_0x155bce){const _0x39d2df=_0x46a1c2;this[_0x39d2df(0x2e9)][_0x39d2df(0x2f2)](_0x1535e7['id'],{'unitId':this['getId'](),'name':_0x155bce});}[_0x46a1c2(0x25b)](){const _0x510ccd=_0x46a1c2;let _0x333c1a=this['_base'][_0x510ccd(0x2b7)]();return _0x333c1a[_0x510ccd(0x29f)][_0x510ccd(0x232)](_0x51b247=>_0x333c1a['tables'][_0x51b247])[_0x510ccd(0x252)](_0x428813=>_0x428813)[_0x510ccd(0x232)](_0x4e3c54=>this[_0x510ccd(0x306)]['createInstance'](X,this,_0x4e3c54['id'],this[_0x510ccd(0x306)]));}[_0x46a1c2(0x30b)](_0x5cc6a9){const _0x181ea9=_0x46a1c2;let _0x6f476b=this[_0x181ea9(0x1dc)][_0x181ea9(0x2b7)]()[_0x181ea9(0x28c)][_0x5cc6a9];return _0x6f476b?this[_0x181ea9(0x306)]['createInstance'](X,this,_0x6f476b['id'],this[_0x181ea9(0x306)]):null;}[_0x46a1c2(0x313)](_0x485618){const _0x23d9aa=_0x46a1c2;let _0x2fca00=this['_base']['getSnapshot'](),_0x268893=Object[_0x23d9aa(0x326)](_0x2fca00[_0x23d9aa(0x28c)])['find'](_0x1c5bfb=>_0x1c5bfb['name']===_0x485618);return _0x268893?this[_0x23d9aa(0x306)][_0x23d9aa(0x1f3)](X,this,_0x268893['id'],this[_0x23d9aa(0x306)]):null;}[_0x46a1c2(0x219)](_0x3073eb,_0x132c7f){const _0x590c27=_0x46a1c2;let _0x4c2790=_0x3e2cae({'id':_0x5f0f93(),'name':_0x3073eb,..._0x132c7f==null?void 0x0:_0x132c7f[_0x590c27(0x216)],'primaryFieldName':_0x132c7f==null?void 0x0:_0x132c7f['primaryFieldName']}),_0x3f4be8=_0x125277['commonExtend'](_0x4c2790,(_0x132c7f==null?void 0x0:_0x132c7f[_0x590c27(0x216)])??{}),_0x5d3644=_0x545bdb(this['_base']['getSnapshot'](),_0x3f4be8['name']);if(!_0x5d3644[_0x590c27(0x2dc)])throw Error(_0x590c27(0x2a5)+_0x3f4be8[_0x590c27(0x2aa)]+_0x590c27(0x317)+_0x30ff66+'\x20'+_0x5d3644[_0x590c27(0x273)]);if(!this[_0x590c27(0x2e9)][_0x590c27(0x2f2)](_0x132b85['id'],{'unitId':this[_0x590c27(0x1dc)]['getUnitId'](),'table':_0x3f4be8,'index':_0x132c7f==null?void 0x0:_0x132c7f[_0x590c27(0x215)]}))throw Error(_0x590c27(0x1f1)+_0x3073eb+'\x22.');return this[_0x590c27(0x306)][_0x590c27(0x1f3)](X,this,_0x3f4be8['id'],this[_0x590c27(0x306)]);}['deleteTable'](_0x1fe28c){const _0xe9ab9d=_0x46a1c2;let _0x199993=typeof _0x1fe28c==_0xe9ab9d(0x2f3)?_0x1fe28c:_0x1fe28c[_0xe9ab9d(0x28e)]();if(!this[_0xe9ab9d(0x2e9)][_0xe9ab9d(0x2f2)](_0x488c1f['id'],{'unitId':this['_base'][_0xe9ab9d(0x2c0)](),'tableId':_0x199993}))throw Error(_0xe9ab9d(0x294)+_0x199993+'\x22.');return!0x0;}['duplicateTable'](_0x597d4d,_0x1e13a7){const _0x12d6d5=_0x46a1c2;let _0x17fa8a=this[_0x12d6d5(0x1dc)][_0x12d6d5(0x2b7)](),_0x580514=typeof _0x597d4d=='string'?_0x597d4d:_0x597d4d[_0x12d6d5(0x28e)](),_0x27452c=_0x17fa8a[_0x12d6d5(0x28c)][_0x580514];if(!_0x27452c)throw Error(_0x12d6d5(0x24e)+_0x580514+_0x12d6d5(0x2c3));let _0x55e885=_0x17fa8a[_0x12d6d5(0x29f)][_0x12d6d5(0x1f0)](_0x580514)+0x1,_0x9a0f=_0xf70964(_0x27452c,{'id':_0x5f0f93(),'name':_0x286207(_0x17fa8a,_0x27452c[_0x12d6d5(0x2aa)]+_0x12d6d5(0x233)),'includeRecords':(_0x1e13a7==null?void 0x0:_0x1e13a7['includeRecords'])??!0x1,'regenerateViewIds':(_0x1e13a7==null?void 0x0:_0x1e13a7[_0x12d6d5(0x208)])??!0x1});if(!this[_0x12d6d5(0x2e9)][_0x12d6d5(0x2f2)](_0x132b85['id'],{'unitId':this[_0x12d6d5(0x1dc)]['getUnitId'](),'table':_0x9a0f,'index':_0x55e885}))throw Error(_0x12d6d5(0x214)+_0x580514+'\x22.');return this[_0x12d6d5(0x306)][_0x12d6d5(0x1f3)](X,this,_0x9a0f['id'],this[_0x12d6d5(0x306)]);}[_0x46a1c2(0x1e2)](){const _0xe5d96d=_0x46a1c2;let _0x5469c3=this[_0xe5d96d(0x1dc)][_0xe5d96d(0x2b7)]();return{'id':_0x5469c3['id'],'name':_0x5469c3[_0xe5d96d(0x2aa)],'tables':this[_0xe5d96d(0x25b)]()[_0xe5d96d(0x232)](_0x33b90c=>_0x33b90c[_0xe5d96d(0x1e2)]())};}};Z=z([R(0x1,_0xfc1d0a(_0x38a295)),R(0x2,_0x4f5173),R(0x3,_0x3ac0f5)],Z);var st=class extends _0x17aaa4{['_initialize'](){const _0x513e93=_0x46a1c2;this['_initBaseBeforeEvents'](),this[_0x513e93(0x21e)]();}[_0x46a1c2(0x297)](_0x220d52={},_0x48f60a){const _0x4703be=_0x46a1c2;let _0x3d738a=this[_0x4703be(0x29c)][_0x4703be(0x2f4)](_0x3e59a1[_0x4703be(0x235)],_0x220d52,_0x48f60a);return this[_0x4703be(0x306)][_0x4703be(0x1f3)](Z,_0x3d738a);}['getActiveBase'](){const _0xc1be21=_0x46a1c2;let _0x370d10=this[_0xc1be21(0x29c)][_0xc1be21(0x209)](_0x3e59a1[_0xc1be21(0x235)]);return _0x370d10?this[_0xc1be21(0x306)][_0xc1be21(0x1f3)](Z,_0x370d10):null;}[_0x46a1c2(0x245)](_0x536c95){const _0x39f780=_0x46a1c2;let _0x9b1cf0=this[_0x39f780(0x29c)][_0x39f780(0x23f)](_0x536c95,_0x3e59a1[_0x39f780(0x235)]);return _0x9b1cf0?this[_0x39f780(0x306)][_0x39f780(0x1f3)](Z,_0x9b1cf0):null;}[_0x46a1c2(0x1e1)](){const _0x2c85bf=_0x46a1c2;return this[_0x2c85bf(0x29c)][_0x2c85bf(0x2b2)](_0x3e59a1[_0x2c85bf(0x235)])[_0x2c85bf(0x232)](_0x4034cb=>this['_injector'][_0x2c85bf(0x1f3)](Z,_0x4034cb));}[_0x46a1c2(0x21e)](){const _0x116bc4=_0x46a1c2;this[_0x116bc4(0x270)](this['registerEventHandler'](this['Event'][_0x116bc4(0x2bf)],()=>this[_0x116bc4(0x2e9)][_0x116bc4(0x2a6)]((_0x2427e8,_0xc2c1c6)=>{const _0xc87334=_0x116bc4;var _0x51deda;if(!Q(_0x2427e8,_0x4dadde))return;let _0x16b98b=_0x2427e8['params'];if(!((_0x51deda=_0x16b98b['hierarchyChanges'])!=null&&_0x51deda[_0xc87334(0x268)]))return;let _0x9c2a50=this[_0xc87334(0x245)](_0x16b98b['unitId']),_0x3d7a6c=_0x9c2a50==null?void 0x0:_0x9c2a50['getTableById'](_0x16b98b[_0xc87334(0x319)][0x0][_0xc87334(0x290)]);if(!_0x9c2a50||!_0x3d7a6c)return;let _0x71b12f={'base':_0x9c2a50,'table':_0x3d7a6c,'changes':_0x16b98b[_0xc87334(0x319)],'source':_0xc2c1c6!=null&&_0xc2c1c6['fromCollab']?_0x198fc0[_0xc87334(0x314)]:_0x16b98b['source']??_0x198fc0['UI']};this['fireEvent'](this[_0xc87334(0x278)][_0xc87334(0x2bf)],_0x71b12f);}))),this[_0x116bc4(0x270)](this[_0x116bc4(0x2eb)](this[_0x116bc4(0x278)][_0x116bc4(0x2f9)],()=>this['_commandService']['onCommandExecuted'](_0x2508fd=>{const _0x2574df=_0x116bc4;if(_0x2508fd['id']!==_0x132b85['id'])return;let {unitId:_0x5ea436,table:_0x55640c,index:_0x4d75ac}=_0x2508fd['params'],_0x55f530=this[_0x2574df(0x245)](_0x5ea436);if(!_0x55f530)return;let _0x4c1791={'base':_0x55f530,'table':_0x55640c,'index':_0x4d75ac};this['fireEvent'](this['Event'][_0x2574df(0x2f9)],_0x4c1791);}))),this['disposeWithMe'](this['registerEventHandler'](this['Event']['BaseTableFieldCreated'],()=>this[_0x116bc4(0x2e9)][_0x116bc4(0x2a6)](_0x2dcb89=>{const _0x4d063c=_0x116bc4;if(_0x2dcb89['id']!==_0x15e597['id'])return;let {unitId:_0x35f74e,tableId:_0x168394,field:_0x226fe5,index:_0x47cf79,viewIndexes:_0x36f789}=_0x2dcb89[_0x4d063c(0x1ff)],_0x42b44d=this[_0x4d063c(0x245)](_0x35f74e);if(!_0x42b44d)return;let _0x123d78=_0x42b44d[_0x4d063c(0x30b)](_0x168394);if(!_0x123d78)return;let _0x46499f={'base':_0x42b44d,'table':_0x123d78,'field':_0x226fe5,'index':_0x47cf79,'viewIndexes':_0x36f789};this[_0x4d063c(0x1da)](this[_0x4d063c(0x278)][_0x4d063c(0x22c)],_0x46499f);}))),this[_0x116bc4(0x270)](this[_0x116bc4(0x2eb)](this[_0x116bc4(0x278)]['BaseTableRecordCreated'],()=>this[_0x116bc4(0x2e9)][_0x116bc4(0x2a6)](_0x1702ea=>{const _0x39ed04=_0x116bc4;if(_0x1702ea['id']!==_0x44b407['id']&&_0x1702ea['id']!==_0x280e1e['id'])return;let _0x5d1ea4=_0x1702ea[_0x39ed04(0x1ff)],{unitId:_0x20a7e9,tableId:_0x23207c}=_0x5d1ea4,_0x49a954=_0x5d1ea4[_0x39ed04(0x302)]??[_0x5d1ea4[_0x39ed04(0x2bc)]],_0x2239cf=this['getBase'](_0x20a7e9);if(!_0x2239cf)return;let _0x354bbb=_0x2239cf[_0x39ed04(0x30b)](_0x23207c);if(!_0x354bbb)return;let _0x352c48={'base':_0x2239cf,'table':_0x354bbb,'records':_0x49a954};this[_0x39ed04(0x1da)](this[_0x39ed04(0x278)]['BaseTableRecordCreated'],_0x352c48);}))),this['disposeWithMe'](this[_0x116bc4(0x2eb)](this[_0x116bc4(0x278)][_0x116bc4(0x2d2)],()=>this[_0x116bc4(0x2e9)][_0x116bc4(0x2a6)](_0x427913=>{const _0x15d92f=_0x116bc4;if(_0x427913['id']!==_0x58c95d['id'])return;let {unitId:_0x4e9a3e,tableId:_0x376aea,view:_0xb0ba8b,index:_0x366f35}=_0x427913[_0x15d92f(0x1ff)],_0x38ae90=this[_0x15d92f(0x245)](_0x4e9a3e);if(!_0x38ae90)return;let _0x677b69=_0x38ae90[_0x15d92f(0x30b)](_0x376aea);if(!_0x677b69)return;let _0x22f923={'base':_0x38ae90,'table':_0x677b69,'view':_0xb0ba8b,'index':_0x366f35};this[_0x15d92f(0x1da)](this[_0x15d92f(0x278)][_0x15d92f(0x2d2)],_0x22f923);}))),this[_0x116bc4(0x270)](this[_0x116bc4(0x2eb)](this[_0x116bc4(0x278)]['BaseTableCellValueChanged'],()=>this[_0x116bc4(0x2e9)][_0x116bc4(0x2a6)](_0x169454=>{const _0x4d3e3b=_0x116bc4;if(_0x169454['id']!==_0x13c61e['id'])return;let {unitId:_0x48c4d8,tableId:_0x1f56bb,recordId:_0x514cad,fieldId:_0x307ea8,value:_0xf72ee9}=_0x169454['params'],_0x579f91=this[_0x4d3e3b(0x245)](_0x48c4d8);if(!_0x579f91)return;let _0x437dc9=_0x579f91['getTableById'](_0x1f56bb);if(!_0x437dc9)return;let _0x2c01f7=_0x437dc9[_0x4d3e3b(0x29d)](_0x307ea8);if(!_0x2c01f7)return;let _0x178e82=_0x437dc9['getRecordById'](_0x514cad);if(!_0x178e82)return;let _0x148311={'base':_0x579f91,'table':_0x437dc9,'field':_0x2c01f7,'record':_0x178e82,'value':_0xf72ee9};this['fireEvent'](this[_0x4d3e3b(0x278)][_0x4d3e3b(0x295)],_0x148311);})));}[_0x46a1c2(0x2b5)](){const _0x3313cc=_0x46a1c2;this[_0x3313cc(0x270)](this[_0x3313cc(0x2eb)](this[_0x3313cc(0x278)][_0x3313cc(0x231)],()=>this[_0x3313cc(0x2e9)][_0x3313cc(0x1e5)](_0xb91fc1=>{const _0x39cc5d=_0x3313cc;if(Q(_0xb91fc1,_0x294f1c)){let {unitId:_0x4c2eb9,tableId:_0x1067aa,patches:_0x327359,source:_0x1b7ca9=_0x198fc0['UI']}=_0xb91fc1[_0x39cc5d(0x1ff)],_0x442072=this[_0x39cc5d(0x22a)](_0x4c2eb9,_0x1067aa);if(!_0x442072)return;this[_0x39cc5d(0x246)](_0x442072[_0x39cc5d(0x203)],_0x442072['table'],_0x1d70cc(_0x442072[_0x39cc5d(0x216)][_0x39cc5d(0x310)](),_0x327359),_0x1b7ca9);return;}if(Q(_0xb91fc1,_0x473f48)){let {unitId:_0x3aee85,tableId:_0x5151e7,patches:_0x3cab04,source:_0x17fbec=_0x198fc0['UI']}=_0xb91fc1[_0x39cc5d(0x1ff)],_0x2ed8b0=this[_0x39cc5d(0x22a)](_0x3aee85,_0x5151e7);if(!_0x2ed8b0)return;let _0x52ed79=_0x2ed8b0[_0x39cc5d(0x216)][_0x39cc5d(0x310)]();this[_0x39cc5d(0x246)](_0x2ed8b0[_0x39cc5d(0x203)],_0x2ed8b0[_0x39cc5d(0x216)],_0x1d70cc(_0x52ed79,_0x3642d1(_0x52ed79,_0x3cab04)),_0x17fbec);return;}if(Q(_0xb91fc1,_0x44b407)){let _0x1d3827=_0xb91fc1[_0x39cc5d(0x1ff)],_0x5e418a=this[_0x39cc5d(0x22a)](_0x1d3827['unitId'],_0x1d3827[_0x39cc5d(0x290)]);if(!_0x5e418a)return;this[_0x39cc5d(0x246)](_0x5e418a[_0x39cc5d(0x203)],_0x5e418a[_0x39cc5d(0x216)],_0x346f38(_0x5e418a['table'][_0x39cc5d(0x310)](),[_0x1d3827['record']]),_0x1d3827[_0x39cc5d(0x277)]??_0x198fc0['UI']);return;}if(Q(_0xb91fc1,_0x280e1e)){let _0x28bd30=_0xb91fc1[_0x39cc5d(0x1ff)],_0x3055e1=this[_0x39cc5d(0x22a)](_0x28bd30[_0x39cc5d(0x24d)],_0x28bd30[_0x39cc5d(0x290)]);if(!_0x3055e1)return;this['_fireBeforeHierarchyChange'](_0x3055e1[_0x39cc5d(0x203)],_0x3055e1[_0x39cc5d(0x216)],_0x346f38(_0x3055e1[_0x39cc5d(0x216)]['getTable'](),_0x28bd30['records']),_0x28bd30[_0x39cc5d(0x277)]??_0x198fc0['UI']);return;}if(Q(_0xb91fc1,_0x209820)){let _0x5bab78=_0xb91fc1[_0x39cc5d(0x1ff)],_0x41b962=this[_0x39cc5d(0x22a)](_0x5bab78[_0x39cc5d(0x24d)],_0x5bab78[_0x39cc5d(0x290)]);if(!_0x41b962)return;this['_fireBeforeHierarchyChange'](_0x41b962[_0x39cc5d(0x203)],_0x41b962[_0x39cc5d(0x216)],_0x346f38(_0x41b962['table'][_0x39cc5d(0x310)](),[_0x5bab78[_0x39cc5d(0x2bc)]]),_0x5bab78[_0x39cc5d(0x277)]??_0x198fc0['UI']);return;}if(Q(_0xb91fc1,_0x345dff)){let _0x34efc7=_0xb91fc1[_0x39cc5d(0x1ff)],_0x1333f8=this['_getHierarchyEventContext'](_0x34efc7['unitId'],_0x34efc7['tableId']);if(!_0x1333f8)return;let _0x27942b=_0x1333f8[_0x39cc5d(0x216)][_0x39cc5d(0x310)](),_0xa04c41=_0x34efc7[_0x39cc5d(0x292)]??_0x312492(_0x27942b),_0x50d9e9=_0x345aca(_0x27942b,_0xa04c41)[_0x39cc5d(0x201)]['get'](_0x34efc7['recordId'])??null;this[_0x39cc5d(0x246)](_0x1333f8['base'],_0x1333f8['table'],[{'tableId':_0x34efc7['tableId'],'fieldId':_0xa04c41,'recordId':_0x34efc7[_0x39cc5d(0x275)],'oldParentRecordId':_0x50d9e9,'parentRecordId':_0x34efc7[_0x39cc5d(0x20c)]}],_0x34efc7[_0x39cc5d(0x277)]??_0x198fc0['UI']);return;}if(Q(_0xb91fc1,_0x168ce8)){let _0x4e9807=_0xb91fc1[_0x39cc5d(0x1ff)],_0x19ee15=this['_getHierarchyEventContext'](_0x4e9807[_0x39cc5d(0x24d)],_0x4e9807['tableId']);if(!_0x19ee15)return;let _0x229cbe=_0x4e9807[_0x39cc5d(0x292)]??_0x312492(_0x19ee15[_0x39cc5d(0x216)]['getTable']());this[_0x39cc5d(0x246)](_0x19ee15['base'],_0x19ee15['table'],[{'tableId':_0x4e9807['tableId'],'fieldId':_0x229cbe,'recordId':_0x4e9807[_0x39cc5d(0x2bc)]['id'],'oldParentRecordId':null,'parentRecordId':_0x4e9807[_0x39cc5d(0x20c)]}],_0x4e9807[_0x39cc5d(0x277)]??_0x198fc0['UI']);return;}if(Q(_0xb91fc1,_0x44f0bf)){let _0x5f2e6a=_0xb91fc1[_0x39cc5d(0x1ff)],_0x46c268=this[_0x39cc5d(0x22a)](_0x5f2e6a[_0x39cc5d(0x24d)],_0x5f2e6a['tableId']);if(!_0x46c268)return;this[_0x39cc5d(0x246)](_0x46c268[_0x39cc5d(0x203)],_0x46c268[_0x39cc5d(0x216)],_0x7c08d9(_0x46c268['table'][_0x39cc5d(0x310)](),[_0x5f2e6a[_0x39cc5d(0x275)]]),_0x5f2e6a[_0x39cc5d(0x277)]??_0x198fc0['UI']);return;}if(Q(_0xb91fc1,_0xb3d33d)){let _0x475a2a=_0xb91fc1[_0x39cc5d(0x1ff)],_0x1f349a=this[_0x39cc5d(0x22a)](_0x475a2a[_0x39cc5d(0x24d)],_0x475a2a[_0x39cc5d(0x290)]);if(!_0x1f349a)return;this[_0x39cc5d(0x246)](_0x1f349a[_0x39cc5d(0x203)],_0x1f349a[_0x39cc5d(0x216)],_0x7c08d9(_0x1f349a[_0x39cc5d(0x216)][_0x39cc5d(0x310)](),_0x475a2a[_0x39cc5d(0x2d9)]),_0x475a2a[_0x39cc5d(0x277)]??_0x198fc0['UI']);return;}if(!Q(_0xb91fc1,_0x13c61e))return;let _0x4be547=_0xb91fc1[_0x39cc5d(0x1ff)],_0x793a19=this[_0x39cc5d(0x22a)](_0x4be547[_0x39cc5d(0x24d)],_0x4be547[_0x39cc5d(0x290)]);if(!_0x793a19)return;let _0x12a07f=_0x793a19['table'][_0x39cc5d(0x310)]();if(!_0x303b25(_0x12a07f)[_0x39cc5d(0x25a)](_0x4be547[_0x39cc5d(0x292)]))return;let _0x53fdbd=_0x345aca(_0x12a07f,_0x4be547[_0x39cc5d(0x292)])[_0x39cc5d(0x201)][_0x39cc5d(0x307)](_0x4be547[_0x39cc5d(0x275)])??null,_0x37b85e=_0x855fa7(_0x4be547['value'])[0x0]??null;_0x53fdbd!==_0x37b85e&&this['_fireBeforeHierarchyChange'](_0x793a19[_0x39cc5d(0x203)],_0x793a19[_0x39cc5d(0x216)],[{'tableId':_0x4be547['tableId'],'fieldId':_0x4be547[_0x39cc5d(0x292)],'recordId':_0x4be547[_0x39cc5d(0x275)],'oldParentRecordId':_0x53fdbd,'parentRecordId':_0x37b85e}],_0x4be547['source']??_0x198fc0['UI']);}))),this['disposeWithMe'](this[_0x3313cc(0x2eb)](this['Event'][_0x3313cc(0x2d0)],()=>this[_0x3313cc(0x2e9)][_0x3313cc(0x1e5)](_0x3f0770=>{const _0x3c12f6=_0x3313cc;if(_0x3f0770['id']!==_0x132b85['id'])return;let {unitId:_0x3b81e0,table:_0x3994fb,index:_0xed464f}=_0x3f0770[_0x3c12f6(0x1ff)],_0x4e7f50=this[_0x3c12f6(0x245)](_0x3b81e0);if(!_0x4e7f50)return;let _0x28a21f={'base':_0x4e7f50,'table':_0x3994fb,'index':_0xed464f};if(this['fireEvent'](this[_0x3c12f6(0x278)]['BeforeBaseTableCreate'],_0x28a21f),_0x28a21f['cancel'])throw new _0x23915c();}))),this[_0x3313cc(0x270)](this[_0x3313cc(0x2eb)](this[_0x3313cc(0x278)][_0x3313cc(0x223)],()=>this['_commandService'][_0x3313cc(0x1e5)](_0x178c76=>{const _0x381fe8=_0x3313cc;if(_0x178c76['id']!==_0x15e597['id'])return;let {unitId:_0x1b76d9,tableId:_0x460c35,field:_0x54b973,index:_0x48f0bb,viewIndexes:_0x42948c}=_0x178c76[_0x381fe8(0x1ff)],_0x821efa=this[_0x381fe8(0x245)](_0x1b76d9);if(!_0x821efa)return;let _0x3a6ca1=_0x821efa[_0x381fe8(0x30b)](_0x460c35);if(!_0x3a6ca1)return;let _0x1c8f8a={'base':_0x821efa,'table':_0x3a6ca1,'field':_0x54b973,'index':_0x48f0bb,'viewIndexes':_0x42948c};if(this[_0x381fe8(0x1da)](this[_0x381fe8(0x278)][_0x381fe8(0x223)],_0x1c8f8a),_0x1c8f8a['cancel'])throw new _0x23915c();}))),this[_0x3313cc(0x270)](this['registerEventHandler'](this['Event'][_0x3313cc(0x2d8)],()=>this[_0x3313cc(0x2e9)][_0x3313cc(0x1e5)](_0x4f1e75=>{const _0x3b6aec=_0x3313cc;if(_0x4f1e75['id']!==_0x44b407['id']&&_0x4f1e75['id']!==_0x280e1e['id'])return;let _0x2030b6=_0x4f1e75[_0x3b6aec(0x1ff)],{unitId:_0x42103e,tableId:_0x52e499}=_0x2030b6,_0x2d65b4=_0x2030b6['records']??[_0x2030b6[_0x3b6aec(0x2bc)]],_0x37dc35=this['getBase'](_0x42103e);if(!_0x37dc35)return;let _0x52f1df=_0x37dc35['getTableById'](_0x52e499);if(!_0x52f1df)return;let _0x418807={'base':_0x37dc35,'table':_0x52f1df,'records':_0x2d65b4};if(this['fireEvent'](this[_0x3b6aec(0x278)][_0x3b6aec(0x2d8)],_0x418807),_0x418807[_0x3b6aec(0x2b8)])throw new _0x23915c();}))),this['disposeWithMe'](this[_0x3313cc(0x2eb)](this[_0x3313cc(0x278)][_0x3313cc(0x230)],()=>this[_0x3313cc(0x2e9)][_0x3313cc(0x1e5)](_0x51ca35=>{const _0x471322=_0x3313cc;if(_0x51ca35['id']!==_0x58c95d['id'])return;let {unitId:_0x3d6ca3,tableId:_0x5bed9c,view:_0x3c93b7,index:_0x2692dd}=_0x51ca35[_0x471322(0x1ff)],_0x2d5e6a=this[_0x471322(0x245)](_0x3d6ca3);if(!_0x2d5e6a)return;let _0x6d2bf2=_0x2d5e6a[_0x471322(0x30b)](_0x5bed9c);if(!_0x6d2bf2)return;let _0x57ae15={'base':_0x2d5e6a,'table':_0x6d2bf2,'view':_0x3c93b7,'index':_0x2692dd};if(this[_0x471322(0x1da)](this[_0x471322(0x278)][_0x471322(0x230)],_0x57ae15),_0x57ae15['cancel'])throw new _0x23915c();}))),this[_0x3313cc(0x270)](this[_0x3313cc(0x2eb)](this[_0x3313cc(0x278)][_0x3313cc(0x2bd)],()=>this[_0x3313cc(0x2e9)][_0x3313cc(0x1e5)](_0x469d03=>{const _0x2e1d00=_0x3313cc;if(_0x469d03['id']!==_0x13c61e['id'])return;let {unitId:_0x88634b,tableId:_0xf3090,recordId:_0x1928c4,fieldId:_0x589abd,value:_0x2e18b1}=_0x469d03[_0x2e1d00(0x1ff)],_0x185966=this[_0x2e1d00(0x245)](_0x88634b);if(!_0x185966)return;let _0x1d5195=_0x185966['getTableById'](_0xf3090);if(!_0x1d5195)return;let _0x52a086=_0x1d5195[_0x2e1d00(0x29d)](_0x589abd);if(!_0x52a086)return;let _0xd23963=_0x1d5195[_0x2e1d00(0x320)](_0x1928c4);if(!_0xd23963)return;let _0x366baf={'base':_0x185966,'table':_0x1d5195,'field':_0x52a086,'record':_0xd23963,'value':_0x2e18b1};if(this['fireEvent'](this['Event'][_0x2e1d00(0x2bd)],_0x366baf),_0x366baf[_0x2e1d00(0x2b8)])throw new _0x23915c();})));}[_0x46a1c2(0x22a)](_0x5e4eea,_0x277aa4){const _0x5ce846=_0x46a1c2;let _0xb68665=this[_0x5ce846(0x245)](_0x5e4eea),_0x7fbbdc=_0xb68665==null?void 0x0:_0xb68665[_0x5ce846(0x30b)](_0x277aa4);return _0xb68665&&_0x7fbbdc?{'base':_0xb68665,'table':_0x7fbbdc}:null;}[_0x46a1c2(0x246)](_0x511ff1,_0x3af0da,_0x465be1,_0x34993b){const _0x315a9e=_0x46a1c2;if(!_0x465be1[_0x315a9e(0x268)])return;let _0x35fc8b={'base':_0x511ff1,'table':_0x3af0da,'changes':_0x465be1,'source':_0x34993b};if(this[_0x315a9e(0x1da)](this[_0x315a9e(0x278)][_0x315a9e(0x231)],_0x35fc8b),_0x35fc8b[_0x315a9e(0x2b8)])throw new _0x23915c();}};function Q(_0x1cf48c,_0x299065){const _0x543cbb=_0x46a1c2;return _0x1cf48c['id']===_0x299065['id']&&_0x1cf48c[_0x543cbb(0x1ff)]!==void 0x0;}_0x17aaa4[_0x46a1c2(0x311)](st);var ct=class extends _0x2f3189{get[_0x46a1c2(0x2f1)](){return _0xafe9b1;}get[_0x46a1c2(0x2e3)](){return _0x1e5d95;}get[_0x46a1c2(0x318)](){return _0xe85ca7;}get[_0x46a1c2(0x20e)](){return Ke;}get[_0x46a1c2(0x2e2)](){return _0x477789;}get[_0x46a1c2(0x2e7)](){return _0x5702ac;}get[_0x46a1c2(0x28b)](){return _0x1c1f9f;}get[_0x46a1c2(0x322)](){return _0x82456a;}get['BaseSortDirection'](){return _0xd1049e;}get[_0x46a1c2(0x2da)](){return _0x198fc0;}get[_0x46a1c2(0x309)](){return _0x1a3340;}get[_0x46a1c2(0x211)](){return _0x2df78f;}get[_0x46a1c2(0x22d)](){return _0x33c6e3;}};_0x2f3189[_0x46a1c2(0x311)](ct);var $=class extends _0x47ca81{get[_0x46a1c2(0x2f9)](){const _0x5a9f8b=_0x46a1c2;return _0x5a9f8b(0x2f9);}get[_0x46a1c2(0x2d0)](){const _0x5751dd=_0x46a1c2;return _0x5751dd(0x2d0);}get[_0x46a1c2(0x22c)](){const _0x2a4fa4=_0x46a1c2;return _0x2a4fa4(0x22c);}get[_0x46a1c2(0x223)](){return'BeforeBaseTableFieldCreate';}get['BaseTableRecordCreated'](){const _0x778adc=_0x46a1c2;return _0x778adc(0x1f9);}get['BeforeBaseTableRecordCreate'](){const _0x490116=_0x46a1c2;return _0x490116(0x2d8);}get[_0x46a1c2(0x2d2)](){const _0x24e092=_0x46a1c2;return _0x24e092(0x2d2);}get[_0x46a1c2(0x230)](){const _0x4f8019=_0x46a1c2;return _0x4f8019(0x230);}get[_0x46a1c2(0x295)](){const _0x85d5cb=_0x46a1c2;return _0x85d5cb(0x295);}get['BeforeBaseTableCellValueChange'](){const _0x1cb770=_0x46a1c2;return _0x1cb770(0x2bd);}get[_0x46a1c2(0x2bf)](){const _0xdcc20b=_0x46a1c2;return _0xdcc20b(0x2bf);}get[_0x46a1c2(0x231)](){return'BeforeBaseHierarchyChange';}};function _0x88d1(){const _0x2a8a98=['update','indexOf','Failed\x20to\x20create\x20table\x20\x22','changeType','createInstance','setValues','setConditionalColorRules','group','every','call','BaseTableRecordCreated','getType','getRecords','20fWcFRw','Grid','height','params','setValue','parentByRecordId','getRecord','base','now','getBaseId','createdAt','1092402oxkHJQ','regenerateViewIds','getCurrentUnitOfType','sourceType','deleteProperty','parentRecordId','getViewByName','BaseFieldKeyEnum','getDefaultValue','getDataRange','BaseHierarchyInvalidReason','rows','recordOrder','Failed\x20to\x20duplicate\x20table\x20\x22','index','table','11Dnjmml','addLinkedRecord','insertTable','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','rowId','boolean',':\x20\x22','_initBaseAfterEvents','setName','getRange','thumbnail',',\x20max\x20columns:\x20','BeforeBaseTableFieldCreate','_collectDescendantIds','_getRecord','addRecord','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','mimeType','delete','_getHierarchyEventContext','endColumn','BaseTableFieldCreated','BaseRecordLinkRole','multiple','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','BeforeBaseTableViewCreate','BeforeBaseHierarchyChange','map','\x20Copy','createView','UNIVER_BASE','setOrderKey','4061040MQhSaf','prototype','Duplicate\x20Base\x20field\x20name:\x20','getNumRows','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','sort','warn','flatMap','getUnit','1044118xZgxba','type','[FBaseRange]:\x20table\x20does\x20not\x20exist.','900042HKoEkS','Add','getBase','_fireBeforeHierarchyChange','view','_tableId','fieldOrder','value','primaryFieldId','_getHierarchyIndex','unitId','[FBase]:\x20table\x20\x22','getAncestors','getFilter','description','filter','URL','localeCompare','Name','1HdCeoS','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','Invalid\x20Base\x20formula.','some','includes','getTables','getColumn','duplicate','_projectionService','Calendar','Set','[FTable]:\x20table\x20\x22','saveUnit','getTableId','getValues','moveField','setAttachments','_viewId','length','[FRecord]:\x20record\x20\x22','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','operator','Failed\x20to\x20add\x20field\x20\x22','viewOrder','Invalid\x20Base\x20regex\x20filter:\x20','direction','disposeWithMe','getPrimaryFieldId','getParent','reason','[FRecord]:\x20RecordLink\x20field\x20\x22','recordId','data:','source','Event','AND','updatedAt','clear','getVisibleFields','getValue','viewId','rules','fieldSettings','27552HPBuyZ','test','views','isReadonly','targetTableId','Unsupported\x20Base\x20field\x20type\x20\x22','number','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','endRow','getField','BaseConditionalColorOperator','tables','formula','getId',',\x20range:\x20','tableId','childrenByParentId','fieldId','_prepareFormulaFieldReferences','Failed\x20to\x20delete\x20table\x20\x22','BaseTableCellValueChanged','config','createBase','Attachment','defaultValue','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','_resolveRecordIds','_univerInstanceService','getFieldById','from','tableOrder','beforeFieldId','invalid','setSort','limit','getFieldSettings','[FBase]:\x20invalid\x20table\x20name\x20\x22','onCommandExecuted','trim','\x20for\x20field\x20\x22','_getView','name','_getFieldIds','getProjection','conditionalColoring','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','addField','setConfig','startColumn','getAllUnitsForType','Auto','7840tXfjmu','_initBaseBeforeEvents','startRow','getSnapshot','cancel','fields','getFormulaName','_getTable','record','BeforeBaseTableCellValueChange','decorate','BaseHierarchyChanged','getUnitId','defineProperty','auto','\x22\x20does\x20not\x20exist.','_fieldId','push','[FRecord]:\x20field\x20\x22','field','BASE64','object','getConditionalColorRules','forEach','RecordLink','getRow','_inject','visibleCardFieldIds','BeforeBaseTableCreate','Base\x20field\x20not\x20found:\x20','BaseTableViewCreated','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','Formula','search','offset','getLinkedRecordIds','BeforeBaseTableRecordCreate','recordIds','BaseEventSource','isArray','valid','setFieldWidth','Gantt','getNumColumns','removeLinkedRecord','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','BaseViewType','BaseFilterConjunction','DESC','afterFieldId','has','BaseConditionalColorTarget','setHierarchyField','_commandService','setDefaultValue','registerEventHandler','queryRecords','getFields','Failed\x20to\x20create\x20view\x20\x22','105FHodYV','conditions','BaseFieldType','syncExecuteCommand','string','createUnit','fieldKey','143vNDApu','hasOwnProperty','slice','BaseTableCreated','system','getName','getView','getDescendants',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','entries','size','Delete','records','stringify','Failed\x20to\x20add\x20records','Gallery','_injector','get','move','BaseHierarchyErrorCode','getDescription','getTableById','_getRecordLinkField','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','_recordId','addChild','getTable','extend','matches','getTableByName','Remote','64iMXuNj',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','\x22.\x20','BaseFilterOperator','hierarchyChanges','Kanban','Facade','Date','getConfig','updateConfig','max','getRecordById','hidden','BaseConditionalDateMode','getFieldByName','_getField','_writeFormulaExternalReferences','values','getChildren','getViews','_table','getOwnPropertyDescriptor','_range','[FView]:\x20view\x20\x22','fireEvent','Invalid\x20attachment\x20at\x20index\x20','_base','find','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','fieldIds','\x20exceeds\x20range\x20size\x20','getBases','getSchema','[FField]:\x20field\x20\x22','setLinkedRecordIds','beforeCommandExecuted','externalReferences','getGroup','orderKey','627865ewGdgL','caseSensitive','notMatches','_resourceLoaderService','deepClone','function'];_0x88d1=function(){return _0x2a8a98;};return _0x88d1();}_0x47ca81[_0x46a1c2(0x311)]($);export{Ke as BaseFieldKeyEnum,Z as FBase,X as FBaseTable,B as FBaseTableField,K as FBaseTableRange,J as FBaseTableRecord,Y as FBaseTableView,$ as FBasesEventNameMixin,Je as resolveBaseFieldKey,H as resolveBaseFieldValues};
|
|
1
|
+
const _0x2437d5=_0xe2d7;(function(_0x2ec826,_0x49ef6b){const _0x4e650f=_0xe2d7,_0x7c6431=_0x2ec826();while(!![]){try{const _0x292bd0=-parseInt(_0x4e650f(0x1ef))/0x1*(parseInt(_0x4e650f(0x30a))/0x2)+parseInt(_0x4e650f(0x20b))/0x3+parseInt(_0x4e650f(0x23b))/0x4+-parseInt(_0x4e650f(0x2dd))/0x5+parseInt(_0x4e650f(0x2a0))/0x6*(-parseInt(_0x4e650f(0x32b))/0x7)+-parseInt(_0x4e650f(0x26e))/0x8*(parseInt(_0x4e650f(0x212))/0x9)+parseInt(_0x4e650f(0x2c5))/0xa*(parseInt(_0x4e650f(0x316))/0xb);if(_0x292bd0===_0x49ef6b)break;else _0x7c6431['push'](_0x7c6431['shift']());}catch(_0x28001c){_0x7c6431['push'](_0x7c6431['shift']());}}}(_0xf2c5,0x1c989));import{ApplyBaseJson1Mutation as _0x2cd8cd,BASE_TABLE_NAME_REQUIREMENTS as _0x1ac4a5,BaseConditionalColorRuleUpdateType as _0x56cd0d,BaseEventSource as _0x314bee,BaseHierarchyErrorCode as _0x104d26,BatchCreateBaseRecordsCommand as _0x27fe40,BatchDeleteBaseRecordsCommand as _0x4b1f8d,ChangeBaseFieldTypeCommand as _0x90a7a1,CreateBaseChildRecordCommand as _0x331bff,CreateBaseFieldCommand as _0x366cc7,CreateBaseRecordCommand as _0x56c7de,CreateBaseTableCommand as _0x550a64,CreateBaseViewCommand as _0x56d066,DeleteBaseFieldCommand as _0x3c95bf,DeleteBaseRecordCommand as _0x20f420,DeleteBaseTableCommand as _0xe693ee,DeleteBaseViewCommand as _0x41a3fa,DuplicateBaseRecordCommand as _0x22ec88,IBaseProjectionService as _0xb65b4f,MoveBaseFieldCommand as _0x489c75,MoveBaseHierarchyRecordCommand as _0x5314b7,MoveBaseViewCommand as _0x256cb9,RenameBaseTableCommand as _0x1cf244,RenameBaseViewCommand as _0x3832ae,SetBaseNameCommand as _0x235f7e,SetBaseRangeValuesCommand as _0x3cc9ba,SetBaseRecordValuesCommand as _0x226aa6,SetBaseTableHierarchyFieldCommand as _0x4c3304,SetBaseViewFieldOrderCommand as _0x201662,SetBaseViewFieldVisibleCommand as _0x1144b1,SetBaseViewFieldWidthCommand as _0x216e94,SetBaseViewFilterCommand as _0x2820e7,SetBaseViewGroupCommand as _0x48e9c7,SetBaseViewSortCommand as _0x12b8da,UpdateBaseCellCommand as _0x1b302a,UpdateBaseFieldCommand as _0x36bc2a,UpdateBaseRecordOrderCommand as _0x5393fe,UpdateBaseViewConditionalColorRulesCommand as _0x422212,UpdateBaseViewConfigCommand as _0x56aaa0,ValidateBaseFormulaCommand as _0x509e7e,buildBaseHierarchyIndex as _0x5ea354,copyBaseTableSnapshot as _0x3c3ee,createUniqueBaseTableName as _0x483446,ensureBaseTableCellLayout as _0x3a2549,getActiveBaseHierarchyFieldIds as _0x23130b,getBaseCellValue as _0x25cc0c,getBaseFormulaTableName as _0x52635f,getBaseHierarchyDeletePromotions as _0x534b36,getRecordLinkFieldConfig as _0x120b63,matchesBaseCondition as _0x5572d0,parseRecordLinkIds as _0xd9ece7,resolveBaseHierarchyFieldId as _0x28b4f1,resolveBaseRangeHierarchyPatches as _0x38c8b5,searchBaseTable as _0x3c3e7f,serializeRecordLinkIds as _0x3ae929,validateBaseHierarchyRecordCreations as _0x7b8b9c,validateBaseHierarchyRecordPatches as _0x4eb78a,validateBaseTableName as _0x313fe0,validateRecordLinkValue as _0x5e8e1a}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x31490b,BaseConditionalColorOperator as _0x1b4b6a,BaseConditionalColorTarget as _0x150b55,BaseConditionalDateMode as _0x59106c,BaseFieldType as _0x4ffd63,BaseFilterConjunction as _0x32065f,BaseFilterOperator as _0x1fe8e4,BaseHierarchyInvalidReason as _0x443457,BaseRecordLinkRole as _0xb99381,BaseSortDirection as _0x109e0b,BaseViewType as _0x206a78,CanceledError as _0x48a411,ICommandService as _0x4b711b,IResourceLoaderService as _0x4f6253,ImageSourceType as _0x56167c,Inject as _0x4604ee,Injector as _0xe12cbe,Tools as _0x58a75c,UniverInstanceType as _0x5e3bb9,createDefaultBaseTableSnapshot as _0x44e8c9,generateRandomId as _0x20bc4d}from'@univerjs/core';import{FEnum as _0xa0491f,FEventName as _0x230a28,FUniver as _0x9a9f06}from'@univerjs/core/facade';import{UpsertHostExternalReferencesCommand as _0x242f30}from'@univerjs-pro/engine-formula';function R(_0x23fc47,_0x1d0c80){return function(_0x25a196,_0x565584){_0x1d0c80(_0x25a196,_0x565584,_0x23fc47);};}function z(_0x517c36,_0x5b9934,_0x28fe41,_0x1e1f66){const _0x95f8d0=_0xe2d7;var _0x24cccf=arguments[_0x95f8d0(0x220)],_0x8138fc=_0x24cccf<0x3?_0x5b9934:_0x1e1f66===null?_0x1e1f66=Object[_0x95f8d0(0x31c)](_0x5b9934,_0x28fe41):_0x1e1f66,_0xb6698f;if(typeof Reflect==_0x95f8d0(0x317)&&typeof Reflect['decorate']==_0x95f8d0(0x2b8))_0x8138fc=Reflect['decorate'](_0x517c36,_0x5b9934,_0x28fe41,_0x1e1f66);else{for(var _0x19b6f4=_0x517c36[_0x95f8d0(0x220)]-0x1;_0x19b6f4>=0x0;_0x19b6f4--)(_0xb6698f=_0x517c36[_0x19b6f4])&&(_0x8138fc=(_0x24cccf<0x3?_0xb6698f(_0x8138fc):_0x24cccf>0x3?_0xb6698f(_0x5b9934,_0x28fe41,_0x8138fc):_0xb6698f(_0x5b9934,_0x28fe41))||_0x8138fc);}return _0x24cccf>0x3&&_0x8138fc&&Object[_0x95f8d0(0x32a)](_0x5b9934,_0x28fe41,_0x8138fc),_0x8138fc;}let B=class{constructor(_0x4660f8,_0x196751,_0x52afdd,_0xa468c8){const _0x49ef73=_0xe2d7;this['_base']=_0x4660f8,this[_0x49ef73(0x284)]=_0x196751,this[_0x49ef73(0x305)]=_0x52afdd,this[_0x49ef73(0x297)]=_0xa468c8;}[_0x2437d5(0x301)](){return this['_fieldId'];}[_0x2437d5(0x240)](){const _0x3db457=_0x2437d5;return this[_0x3db457(0x236)]();}['getName'](){const _0x1b52c5=_0x2437d5;return this[_0x1b52c5(0x236)]()[_0x1b52c5(0x2f8)];}[_0x2437d5(0x31b)](){const _0x4ba08c=_0x2437d5;return this[_0x4ba08c(0x236)]()['type'];}[_0x2437d5(0x314)](){const _0x594fa6=_0x2437d5;return this[_0x594fa6(0x236)]()[_0x594fa6(0x293)];}[_0x2437d5(0x2b6)](){const _0x3bb064=_0x2437d5;return this['_getField']()[_0x3bb064(0x2db)];}[_0x2437d5(0x2fd)](){const _0x3bf1d7=_0x2437d5;return this[_0x3bf1d7(0x236)]()['description'];}[_0x2437d5(0x230)](){const _0x12533a=_0x2437d5;return!!this[_0x12533a(0x236)]()[_0x12533a(0x1eb)];}['setName'](_0x5984e5){const _0x3b2301=_0x2437d5;return this[_0x3b2301(0x270)]({'name':_0x5984e5});}['setConfig'](_0x2887c0,_0x121c67){const _0x1e0143=_0x2437d5;return this[_0x1e0143(0x270)]({'config':_0x2887c0},_0x121c67);}[_0x2437d5(0x1ff)](_0x163c8a){const _0x5ac852=_0x2437d5;return this[_0x5ac852(0x270)]({'defaultValue':_0x163c8a});}[_0x2437d5(0x270)](_0x40b9c0,_0x37fa52){const _0x2c41ee=_0x2437d5;let _0x3d3ef0=this[_0x2c41ee(0x236)]()[_0x2c41ee(0x24d)];return(_0x40b9c0[_0x2c41ee(0x24d)]??_0x3d3ef0)===_0x4ffd63[_0x2c41ee(0x214)]&&(Object[_0x2c41ee(0x2fe)][_0x2c41ee(0x296)][_0x2c41ee(0x2ca)](_0x40b9c0,_0x2c41ee(0x293))||_0x40b9c0[_0x2c41ee(0x24d)]===_0x4ffd63['Formula'])&&!this[_0x2c41ee(0x22b)](_0x37fa52)?!0x1:this[_0x2c41ee(0x297)]['syncExecuteCommand'](_0x36bc2a['id'],{'unitId':this[_0x2c41ee(0x202)][_0x2c41ee(0x301)](),'tableId':this['_table'][_0x2c41ee(0x301)](),'fieldId':this[_0x2c41ee(0x305)],'patch':_0x40b9c0});}[_0x2437d5(0x271)](_0x44d04a,_0x31abb2={},_0x338b63){const _0x413481=_0x2437d5;return _0x44d04a===_0x4ffd63[_0x413481(0x214)]&&!this[_0x413481(0x22b)](_0x338b63)?!0x1:this[_0x413481(0x297)][_0x413481(0x2e0)](_0x90a7a1['id'],{'unitId':this[_0x413481(0x202)]['getId'](),'tableId':this[_0x413481(0x284)][_0x413481(0x301)](),'fieldId':this[_0x413481(0x305)],'input':{'type':_0x44d04a,'config':_0x31abb2}});}['delete'](){const _0x696396=_0x2437d5;return this[_0x696396(0x297)]['syncExecuteCommand'](_0x3c95bf['id'],{'unitId':this['_base'][_0x696396(0x301)](),'tableId':this[_0x696396(0x284)][_0x696396(0x301)](),'fieldId':this['_fieldId']});}[_0x2437d5(0x2e5)](_0x2437ce){const _0x127ae4=_0x2437d5;return this['_commandService'][_0x127ae4(0x2e0)](_0x489c75['id'],{'unitId':this[_0x127ae4(0x202)][_0x127ae4(0x301)](),'tableId':this[_0x127ae4(0x284)][_0x127ae4(0x301)](),'fieldId':this['_fieldId'],'target':_0x2437ce});}[_0x2437d5(0x236)](){const _0x3f8ad3=_0x2437d5;let _0x5e6608=this[_0x3f8ad3(0x284)][_0x3f8ad3(0x298)]()[_0x3f8ad3(0x278)][this[_0x3f8ad3(0x305)]];if(!_0x5e6608)throw Error(_0x3f8ad3(0x225)+this[_0x3f8ad3(0x305)]+_0x3f8ad3(0x251));return _0x5e6608;}[_0x2437d5(0x22b)](_0x2f1fbc){const _0x19f3d6=_0x2437d5;if(!_0x2f1fbc||!Array[_0x19f3d6(0x26a)](_0x2f1fbc[_0x19f3d6(0x1fb)]))return console[_0x19f3d6(0x229)](_0x19f3d6(0x226)),!0x1;if(_0x2f1fbc[_0x19f3d6(0x1fb)][_0x19f3d6(0x220)]===0x0)return!0x0;let _0x447403=this['_commandService']['syncExecuteCommand'](_0x242f30['id'],{'unitId':this[_0x19f3d6(0x202)]['getId'](),'references':_0x2f1fbc[_0x19f3d6(0x1fb)]});return _0x447403||console[_0x19f3d6(0x229)](_0x19f3d6(0x324)),_0x447403;}};B=z([R(0x3,_0x4b711b)],B);let Ke=function(_0x517343){const _0x1822b0=_0x2437d5;return _0x517343['Id']='id',_0x517343[_0x1822b0(0x20e)]=_0x1822b0(0x2f8),_0x517343[_0x1822b0(0x28c)]=_0x1822b0(0x2a6),_0x517343;}({});function V(_0x322420){const _0x333a60=_0x2437d5;return!!(_0x322420&&_0x322420[_0x333a60(0x282)]!==!0x0&&_0x322420[_0x333a60(0x24d)]!==_0x4ffd63['RecordId']);}function H(_0x320e07,_0x43c680,_0x5b56a5='id'){const _0x162e26=_0x2437d5;if(!_0x43c680)return{};let _0x2c84e7={};return Object['entries'](_0x43c680)[_0x162e26(0x29f)](([_0xf845f0,_0xb7cff3])=>{const _0x32d493=_0x162e26;let _0xb48f3=Je(_0x320e07,_0xf845f0,_0x5b56a5);_0x2c84e7[_0xb48f3]=qe(_0x320e07[_0x32d493(0x278)][_0xb48f3],_0xb7cff3);}),_0x2c84e7;}function qe(_0x3b4f7e,_0x51dfd6){const _0x4a94bb=_0x2437d5;if((_0x3b4f7e==null?void 0x0:_0x3b4f7e['type'])!==_0x4ffd63['Attachment']||_0x51dfd6==null)return _0x51dfd6;if(!Array[_0x4a94bb(0x26a)](_0x51dfd6))throw TypeError(_0x4a94bb(0x279)+_0x3b4f7e[_0x4a94bb(0x2f8)]+_0x4a94bb(0x1f3));return _0x51dfd6[_0x4a94bb(0x213)]((_0x452f0f,_0xb5fb09)=>Ye(_0x3b4f7e,_0x452f0f,_0xb5fb09));}function Je(_0x3b855c,_0x430d97,_0x4de1a6){const _0x4ee69d=_0x2437d5;if(_0x4de1a6==='id'||_0x4de1a6===_0x4ee69d(0x2a6)&&_0x3b855c[_0x4ee69d(0x278)][_0x430d97])return _0x430d97;let _0x3778c7=Object[_0x4ee69d(0x231)](_0x3b855c['fields'])[_0x4ee69d(0x262)](_0x487b30=>_0x487b30['name']===_0x430d97);if(_0x3778c7['length']===0x1)return _0x3778c7[0x0]['id'];throw _0x3778c7[_0x4ee69d(0x220)]>0x1?Error('Duplicate\x20Base\x20field\x20name:\x20'+_0x430d97):Error(_0x4ee69d(0x27c)+_0x430d97);}function Ye(_0x53f784,_0x5f110d,_0x503d34){const _0x465e81=_0x2437d5;let _0x50f87b=_0x465e81(0x249)+_0x503d34+_0x465e81(0x2e2)+_0x53f784[_0x465e81(0x2f8)]+'\x22';if(!Qe(_0x5f110d))throw TypeError(_0x50f87b+':\x20expected\x20an\x20object.');if(_0x465e81(0x2d2)in _0x5f110d)throw TypeError(_0x50f87b+_0x465e81(0x27a));if(_0x465e81(0x24d)in _0x5f110d)throw TypeError(_0x50f87b+_0x465e81(0x1f2));let _0x2cc49d=U(_0x5f110d['id'],_0x50f87b,'id'),_0xd2e84b=U(_0x5f110d[_0x465e81(0x2f8)],_0x50f87b,_0x465e81(0x2f8)),_0x5e030c=U(_0x5f110d[_0x465e81(0x2ef)],_0x50f87b,_0x465e81(0x2ef));return{'id':_0x2cc49d,'name':_0xd2e84b,'source':_0x5e030c,'sourceType':Xe(_0x5f110d[_0x465e81(0x2b5)],_0x5e030c,_0x50f87b),...Ze(_0x5f110d,'mimeType',_0x50f87b),...W(_0x5f110d,_0x465e81(0x24b),_0x50f87b),...W(_0x5f110d,_0x465e81(0x32f),_0x50f87b),...W(_0x5f110d,_0x465e81(0x319),_0x50f87b),...Ze(_0x5f110d,_0x465e81(0x200),_0x50f87b)};}function Xe(_0x3b72a4,_0x10f87c,_0x45ab3d){const _0x4267dd=_0x2437d5;if(_0x3b72a4==null)return _0x10f87c['startsWith']('data:')?_0x56167c[_0x4267dd(0x2c2)]:_0x56167c['URL'];if(_0x3b72a4===_0x56167c[_0x4267dd(0x2ea)]||_0x3b72a4===_0x56167c[_0x4267dd(0x273)]||_0x3b72a4===_0x56167c[_0x4267dd(0x2c2)])return _0x3b72a4;throw TypeError(_0x45ab3d+_0x4267dd(0x1ec));}function U(_0x48ceb5,_0x4f4472,_0x174074){const _0x4b8939=_0x2437d5;if(typeof _0x48ceb5!=_0x4b8939(0x331)||!_0x48ceb5[_0x4b8939(0x2bc)]())throw TypeError(_0x4f4472+_0x4b8939(0x2d5)+_0x174074+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');return _0x48ceb5;}function Ze(_0x44160c,_0x5099ae,_0x17a3cb){const _0xbc9d24=_0x2437d5;let _0x2d035d=_0x44160c[_0x5099ae];if(_0x2d035d==null)return{};if(typeof _0x2d035d!=_0xbc9d24(0x331)||!_0x2d035d[_0xbc9d24(0x2bc)]())throw TypeError(_0x17a3cb+':\x20\x22'+_0x5099ae+_0xbc9d24(0x2ee));return{[_0x5099ae]:_0x2d035d};}function W(_0x1fbd31,_0x2ece73,_0x672398){const _0x36cecb=_0x2437d5;let _0x416424=_0x1fbd31[_0x2ece73];if(_0x416424==null)return{};if(typeof _0x416424!='number'||!Number[_0x36cecb(0x218)](_0x416424)||_0x416424<0x0)throw TypeError(_0x672398+':\x20\x22'+_0x2ece73+_0x36cecb(0x2ec));return{[_0x2ece73]:_0x416424};}function Qe(_0x52d671){const _0x3b3545=_0x2437d5;return typeof _0x52d671==_0x3b3545(0x317)&&!!_0x52d671&&!Array[_0x3b3545(0x26a)](_0x52d671);}var G;let K=G=class{constructor(_0x196f1d,_0x48bbec,_0x467d63,_0x593ddf,_0x3b6aee){const _0x2c41e0=_0x2437d5;this['_base']=_0x196f1d,this['_table']=_0x48bbec,this[_0x2c41e0(0x280)]=_0x467d63,this[_0x2c41e0(0x1fe)]=_0x593ddf,this[_0x2c41e0(0x297)]=_0x3b6aee,this[_0x2c41e0(0x211)]();}[_0x2437d5(0x1f0)](){const _0x719ae6=_0x2437d5;return this[_0x719ae6(0x202)]['getId']();}[_0x2437d5(0x2fc)](){const _0x29ee45=_0x2437d5;return this[_0x29ee45(0x284)][_0x29ee45(0x301)]();}[_0x2437d5(0x291)](){const _0x3285cc=_0x2437d5;return{...this[_0x3285cc(0x280)]};}[_0x2437d5(0x210)](){return this['_range']['startRow'];}[_0x2437d5(0x21f)](){const _0x1b8428=_0x2437d5;return this[_0x1b8428(0x280)][_0x1b8428(0x30f)];}[_0x2437d5(0x30c)](){const _0x56eaa4=_0x2437d5;return this[_0x56eaa4(0x280)][_0x56eaa4(0x286)]-this[_0x56eaa4(0x280)]['startRow']+0x1;}[_0x2437d5(0x328)](){const _0x107329=_0x2437d5;return this[_0x107329(0x280)][_0x107329(0x252)]-this[_0x107329(0x280)][_0x107329(0x30f)]+0x1;}['getValues'](){const _0x291b57=_0x2437d5;let _0x460f5a=this['_getTable'](),_0x29e0dc=this['_getFieldIds'](_0x460f5a),_0x283c1a=[];for(let _0xb1cd43=this['_range'][_0x291b57(0x2c3)];_0xb1cd43<=this[_0x291b57(0x280)][_0x291b57(0x286)];_0xb1cd43++){var _0x42ef4c;let _0x15a6c6=(_0x42ef4c=_0x460f5a[_0x291b57(0x2ad)])==null?void 0x0:_0x42ef4c[_0xb1cd43],_0x43f35f=[];for(let _0x404423=this[_0x291b57(0x280)]['startColumn'];_0x404423<=this[_0x291b57(0x280)][_0x291b57(0x252)];_0x404423++){let _0xa59077=_0x29e0dc[_0x404423];_0x43f35f[_0x291b57(0x1fd)](_0x15a6c6&&_0xa59077?_0x25cc0c(_0x460f5a,_0x15a6c6,_0xa59077):null);}_0x283c1a[_0x291b57(0x1fd)](_0x43f35f);}return _0x283c1a;}[_0x2437d5(0x277)](){const _0x5e55c8=_0x2437d5;var _0x2827e6;return((_0x2827e6=this[_0x5e55c8(0x2e9)]()[0x0])==null?void 0x0:_0x2827e6[0x0])??null;}[_0x2437d5(0x2ae)](_0x9cf09c){const _0x4ff7c2=_0x2437d5;return this[_0x4ff7c2(0x29e)]([[_0x9cf09c]]);}[_0x2437d5(0x29e)](_0x3f7713){const _0x401305=_0x2437d5;let _0xdd67ec=this[_0x401305(0x30c)](),_0x15967a=this[_0x401305(0x328)]();if(_0x3f7713[_0x401305(0x220)]>_0xdd67ec||_0x3f7713[_0x401305(0x306)](_0xf91684=>_0xf91684[_0x401305(0x220)]>_0x15967a)){var _0x19febf;throw Error(_0x401305(0x208)+_0x3f7713[_0x401305(0x220)]+'x'+(((_0x19febf=_0x3f7713[0x0])==null?void 0x0:_0x19febf[_0x401305(0x220)])??0x0)+'\x20exceeds\x20range\x20size\x20'+_0xdd67ec+'x'+_0x15967a+'.');}let _0xbe128a=this[_0x401305(0x2dc)](),_0x1e280e=this[_0x401305(0x2a2)](_0xbe128a),_0x58389b=_0x3f7713[_0x401305(0x250)]((_0x83060b,_0x3c2b75)=>_0x83060b[_0x401305(0x213)]((_0xfefb37,_0x4380ee)=>{const _0x1d5979=_0x401305;var _0x3fe930;let _0x157124=this['_range'][_0x1d5979(0x2c3)]+_0x3c2b75,_0x1aab89=_0x1e280e[this['_range'][_0x1d5979(0x30f)]+_0x4380ee],_0x37c654=(_0x3fe930=_0xbe128a[_0x1d5979(0x2ad)])==null?void 0x0:_0x3fe930[_0x157124];if(!_0x1aab89||!_0x37c654)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x37c654,'fieldId':_0x1aab89,'value':_0xfefb37};}));return this['_commandService'][_0x401305(0x2e0)](_0x3cc9ba['id'],{'unitId':this[_0x401305(0x202)][_0x401305(0x301)](),'tableId':this[_0x401305(0x284)]['getId'](),'patches':_0x58389b,'source':_0x314bee[_0x401305(0x264)]});}['clear'](){const _0x723259=_0x2437d5;return this[_0x723259(0x29e)](Array['from']({'length':this[_0x723259(0x30c)]()},()=>Array['from']({'length':this[_0x723259(0x328)]()},()=>null)));}[_0x2437d5(0x315)](_0x10c906,_0x32783f,_0x824153=this[_0x2437d5(0x30c)](),_0x301bfa=this[_0x2437d5(0x328)]()){const _0x1df060=_0x2437d5;return this[_0x1df060(0x1fe)][_0x1df060(0x233)](G,this['_base'],this[_0x1df060(0x284)],{'startRow':this[_0x1df060(0x280)]['startRow']+_0x10c906,'startColumn':this[_0x1df060(0x280)][_0x1df060(0x30f)]+_0x32783f,'endRow':this['_range'][_0x1df060(0x2c3)]+_0x10c906+_0x824153-0x1,'endColumn':this[_0x1df060(0x280)][_0x1df060(0x30f)]+_0x32783f+_0x301bfa-0x1},this[_0x1df060(0x1fe)]);}['_getTable'](){const _0x29293d=_0x2437d5;let _0x3b71e3=this[_0x29293d(0x284)][_0x29293d(0x298)]();if(!_0x3b71e3)throw Error(_0x29293d(0x224));return _0x3a2549(_0x3b71e3);}['_assertInBounds'](){const _0xb08694=_0x2437d5;var _0x2d2a0e;let _0x4f5802=this[_0xb08694(0x2dc)](),_0x554967=((_0x2d2a0e=_0x4f5802[_0xb08694(0x256)])==null?void 0x0:_0x2d2a0e[_0xb08694(0x220)])??0x0,_0x43230a=this[_0xb08694(0x2a2)](_0x4f5802)[_0xb08694(0x220)];if(this['_range'][_0xb08694(0x2c3)]<0x0||this['_range'][_0xb08694(0x30f)]<0x0||this[_0xb08694(0x280)][_0xb08694(0x286)]<this[_0xb08694(0x280)][_0xb08694(0x2c3)]||this[_0xb08694(0x280)][_0xb08694(0x252)]<this[_0xb08694(0x280)]['startColumn']||this[_0xb08694(0x280)][_0xb08694(0x286)]>=Math[_0xb08694(0x247)](_0x554967,0x1)||this[_0xb08694(0x280)][_0xb08694(0x252)]>=Math[_0xb08694(0x247)](_0x43230a,0x1))throw Error(_0xb08694(0x1f1)+_0x554967+_0xb08694(0x2b9)+_0x43230a+_0xb08694(0x24a)+JSON['stringify'](this[_0xb08694(0x280)])+'.');}[_0x2437d5(0x2a2)](_0x322cbd){const _0xdd8d05=_0x2437d5;return _0x322cbd['fieldOrder'][_0xdd8d05(0x262)](_0x100a30=>V(_0x322cbd['fields'][_0x100a30]));}};K=G=z([R(0x4,_0x4b711b)],K);var q;let J=q=class{constructor(_0x317822,_0x4f9356,_0x198632,_0x250bba,_0x3d54c6){const _0x2c3b54=_0x2437d5;this['_base']=_0x317822,this[_0x2c3b54(0x284)]=_0x4f9356,this[_0x2c3b54(0x265)]=_0x198632,this['_inject']=_0x250bba,this[_0x2c3b54(0x297)]=_0x3d54c6;}['getId'](){const _0x1da2f9=_0x2437d5;return this[_0x1da2f9(0x265)];}[_0x2437d5(0x2c7)](){const _0xb4512a=_0x2437d5;return{...this['_getRecord'](),'values':this[_0xb4512a(0x2e9)]()};}[_0x2437d5(0x277)](_0x40ea33){const _0x5cabec=_0x2437d5;return V(this[_0x5cabec(0x284)][_0x5cabec(0x298)]()[_0x5cabec(0x278)][_0x40ea33])?this[_0x5cabec(0x2c1)]()[_0x5cabec(0x231)][_0x40ea33]??null:null;}[_0x2437d5(0x2e9)](){const _0xdbf1a9=_0x2437d5;let _0x21e36d=this['_table']['getTable']();return Object['fromEntries'](Object[_0xdbf1a9(0x237)](this['_getRecord']()[_0xdbf1a9(0x231)])[_0xdbf1a9(0x262)](([_0x8bb9c7])=>V(_0x21e36d['fields'][_0x8bb9c7])));}[_0x2437d5(0x2ae)](_0x529166,_0x59510e){const _0x118b7a=_0x2437d5;let _0x44101f=this[_0x118b7a(0x284)][_0x118b7a(0x298)]()[_0x118b7a(0x278)][_0x529166];return this[_0x118b7a(0x297)][_0x118b7a(0x2e0)](_0x1b302a['id'],{'unitId':this[_0x118b7a(0x202)][_0x118b7a(0x301)](),'tableId':this[_0x118b7a(0x284)][_0x118b7a(0x301)](),'recordId':this[_0x118b7a(0x265)],'fieldId':_0x529166,'value':qe(_0x44101f,_0x59510e),'source':_0x314bee[_0x118b7a(0x264)]});}['setAttachments'](_0x204b8c,_0x39ee91){const _0x293d03=_0x2437d5;return this[_0x293d03(0x2ae)](_0x204b8c,_0x39ee91[_0x293d03(0x213)](_0x1a1a5c=>({..._0x1a1a5c})));}['setValues'](_0x28d88f,_0x49613a='id'){const _0x169f16=_0x2437d5;let _0x19c180=this['_table']['getTable'](),_0x18f7dd=[{'recordId':this['_recordId'],'values':H(_0x19c180,_0x28d88f,_0x49613a)}];return this['_commandService'][_0x169f16(0x2e0)](_0x226aa6['id'],{'unitId':this[_0x169f16(0x202)][_0x169f16(0x301)](),'tableId':this[_0x169f16(0x284)][_0x169f16(0x301)](),'patches':_0x18f7dd,'source':_0x314bee[_0x169f16(0x264)]});}[_0x2437d5(0x2cb)](){const _0x1de9f1=_0x2437d5;return this['_commandService'][_0x1de9f1(0x2e0)](_0x20f420['id'],{'unitId':this['_base'][_0x1de9f1(0x301)](),'tableId':this[_0x1de9f1(0x284)][_0x1de9f1(0x301)](),'recordId':this['_recordId'],'source':_0x314bee[_0x1de9f1(0x264)]});}[_0x2437d5(0x310)](_0x1c4a30){const _0x792380=_0x2437d5;let _0x5d2d0e={...this[_0x792380(0x2c1)](),..._0x1c4a30,'id':_0x20bc4d(0x6)};_0x5d2d0e[_0x792380(0x231)]={..._0x5d2d0e[_0x792380(0x231)],..._0x1c4a30==null?void 0x0:_0x1c4a30[_0x792380(0x231)]},Reflect[_0x792380(0x1ee)](_0x5d2d0e['values'],_0x31490b);let _0x158f49=Date[_0x792380(0x28a)]();if(_0x5d2d0e['orderKey']||=''+_0x158f49,_0x5d2d0e['createdAt']||=_0x158f49,_0x5d2d0e['updatedAt']||=_0x158f49,!this[_0x792380(0x297)][_0x792380(0x2e0)](_0x22ec88['id'],{'unitId':this[_0x792380(0x202)]['getId'](),'tableId':this[_0x792380(0x284)][_0x792380(0x301)](),'sourceRecordId':this['_recordId'],'record':_0x5d2d0e,'source':_0x314bee[_0x792380(0x264)]}))throw Error('[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22'+this[_0x792380(0x265)]+'\x22.');return this[_0x792380(0x1fe)][_0x792380(0x233)](q,this[_0x792380(0x202)],this[_0x792380(0x284)],_0x5d2d0e['id'],this[_0x792380(0x1fe)]);}[_0x2437d5(0x2b2)](_0x134d85){const _0x149d94=_0x2437d5;return this[_0x149d94(0x297)][_0x149d94(0x2e0)](_0x5393fe['id'],{'unitId':this[_0x149d94(0x202)][_0x149d94(0x301)](),'tableId':this['_table']['getId'](),'recordId':this[_0x149d94(0x265)],'orderKey':_0x134d85});}[_0x2437d5(0x2fb)](_0x1d55bb){const _0x5a9241=_0x2437d5;let _0x490584=this[_0x5a9241(0x32d)](_0x1d55bb);return _0xd9ece7(this[_0x5a9241(0x277)](_0x490584['id']));}['setLinkedRecordIds'](_0x521e39,_0x206882){const _0x54e7e9=_0x2437d5;let _0x525fa0=this[_0x54e7e9(0x32d)](_0x521e39),_0x82f575=_0x3ae929(_0x206882),_0x47f2d3=_0x5e8e1a(this[_0x54e7e9(0x202)][_0x54e7e9(0x241)]()[_0x54e7e9(0x30d)](),_0x525fa0,_0x82f575);if(!_0x47f2d3[_0x54e7e9(0x21b)])throw Error(_0x47f2d3['reason']??'[FRecord]:\x20invalid\x20RecordLink\x20value.');return this[_0x54e7e9(0x297)]['syncExecuteCommand'](_0x1b302a['id'],{'unitId':this[_0x54e7e9(0x202)][_0x54e7e9(0x301)](),'tableId':this['_table'][_0x54e7e9(0x301)](),'recordId':this[_0x54e7e9(0x265)],'fieldId':_0x521e39,'value':_0x82f575,'source':_0x314bee[_0x54e7e9(0x264)]});}['addLinkedRecord'](_0x660f8f,_0xbadff8){const _0x32e6d6=_0x2437d5;let _0x4a095a=_0x120b63(this[_0x32e6d6(0x32d)](_0x660f8f));if(!_0x4a095a)throw Error(_0x32e6d6(0x2c0)+_0x660f8f+_0x32e6d6(0x309));let _0x247d54=this[_0x32e6d6(0x2fb)](_0x660f8f);return _0x4a095a[_0x32e6d6(0x244)]&&_0x247d54[_0x32e6d6(0x2c6)](_0xbadff8)?!0x0:this[_0x32e6d6(0x2d8)](_0x660f8f,_0x4a095a[_0x32e6d6(0x244)]?[..._0x247d54,_0xbadff8]:[_0xbadff8]);}[_0x2437d5(0x292)](_0x530267,_0xdf0285){const _0x5d0511=_0x2437d5;let _0x37add6=this[_0x5d0511(0x2fb)](_0x530267);return!_0x37add6[_0x5d0511(0x2c6)](_0xdf0285)||this[_0x5d0511(0x2d8)](_0x530267,_0x37add6['filter'](_0x2005e9=>_0x2005e9!==_0xdf0285));}[_0x2437d5(0x2f5)](_0x7aec7a){const _0x27df23=_0x2437d5;let _0x3118c8=this[_0x27df23(0x235)](_0x7aec7a)[_0x27df23(0x1fc)][_0x27df23(0x2a5)](this[_0x27df23(0x265)])??null;return _0x3118c8?this[_0x27df23(0x284)][_0x27df23(0x2d3)](_0x3118c8):null;}[_0x2437d5(0x29c)](_0x8642c0){const _0x580110=_0x2437d5;return(this[_0x580110(0x235)](_0x8642c0)[_0x580110(0x239)]['get'](this['_recordId'])??[])[_0x580110(0x250)](_0x55cd4f=>{const _0x127e67=_0x580110;let _0x15be98=this['_table'][_0x127e67(0x2d3)](_0x55cd4f);return _0x15be98?[_0x15be98]:[];});}['getAncestors'](_0x3f1b30){const _0x4971f6=_0x2437d5;let _0x476941=this[_0x4971f6(0x235)](_0x3f1b30),_0x22fce1=[],_0x3afb32=_0x476941[_0x4971f6(0x1fc)][_0x4971f6(0x2a5)](this[_0x4971f6(0x265)])??null;for(;_0x3afb32;){let _0x19294a=this[_0x4971f6(0x284)][_0x4971f6(0x2d3)](_0x3afb32);_0x19294a&&_0x22fce1[_0x4971f6(0x1fd)](_0x19294a),_0x3afb32=_0x476941[_0x4971f6(0x1fc)]['get'](_0x3afb32)??null;}return _0x22fce1;}[_0x2437d5(0x205)](_0xb877b3){const _0x56ec71=_0x2437d5;let _0x2e0e8c=this[_0x56ec71(0x235)](_0xb877b3),_0x8c3fec=_0x2e0e8c['orderedRecordIds']['indexOf'](this['_recordId']),_0x1abacc=_0x2e0e8c['subtreeHeightByRecordId'][_0x56ec71(0x28b)](this[_0x56ec71(0x265)])?this[_0x56ec71(0x216)](_0x2e0e8c[_0x56ec71(0x239)],this[_0x56ec71(0x265)]):[];return _0x8c3fec<0x0?[]:_0x1abacc[_0x56ec71(0x250)](_0x2fc742=>{const _0x51a1a5=_0x56ec71;let _0x36d127=this[_0x51a1a5(0x284)][_0x51a1a5(0x2d3)](_0x2fc742);return _0x36d127?[_0x36d127]:[];});}[_0x2437d5(0x25c)](_0x3c95d7,_0x30b83a,_0x2022ea){const _0x5ee13c=_0x2437d5;return this[_0x5ee13c(0x297)][_0x5ee13c(0x2e0)](_0x5314b7['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x5ee13c(0x284)]['getId'](),'fieldId':_0x3c95d7,'recordId':this[_0x5ee13c(0x265)],'parentRecordId':_0x30b83a,'orderKey':_0x2022ea,'source':_0x314bee[_0x5ee13c(0x264)]});}[_0x2437d5(0x27e)](_0x4042a6,_0x452f73,_0x7a0616='id',_0x44a19b){const _0x75377e=_0x2437d5;let _0x5783ed=this[_0x75377e(0x284)][_0x75377e(0x298)](),_0x301139=Date[_0x75377e(0x28a)](),_0x11ca48={..._0x44a19b,'id':_0x20bc4d(0x6),'values':H(_0x5783ed,_0x452f73,_0x7a0616),'orderKey':(_0x44a19b==null?void 0x0:_0x44a19b['orderKey'])||''+_0x301139,'createdAt':(_0x44a19b==null?void 0x0:_0x44a19b[_0x75377e(0x222)])||_0x301139,'updatedAt':(_0x44a19b==null?void 0x0:_0x44a19b[_0x75377e(0x25b)])||_0x301139};if(!this[_0x75377e(0x297)]['syncExecuteCommand'](_0x331bff['id'],{'unitId':this[_0x75377e(0x202)]['getId'](),'tableId':this[_0x75377e(0x284)]['getId'](),'fieldId':_0x4042a6,'parentRecordId':this[_0x75377e(0x265)],'record':_0x11ca48,'source':_0x314bee[_0x75377e(0x264)]}))throw Error(_0x75377e(0x2f9)+this[_0x75377e(0x265)]+'\x22.');return this[_0x75377e(0x1fe)]['createInstance'](q,this[_0x75377e(0x202)],this['_table'],_0x11ca48['id'],this['_inject']);}['_getHierarchyIndex'](_0x1d9484){const _0x37fdaa=_0x2437d5;return _0x5ea354(this[_0x37fdaa(0x284)]['getTable'](),_0x1d9484);}[_0x2437d5(0x216)](_0x54a173,_0x5577f2){let _0x192f46=[],_0xc93be2=_0x322c2d=>{const _0x347066=_0xe2d7;for(let _0x1530aa of _0x54a173[_0x347066(0x2a5)](_0x322c2d)??[])_0x192f46[_0x347066(0x1fd)](_0x1530aa),_0xc93be2(_0x1530aa);};return _0xc93be2(_0x5577f2),_0x192f46;}[_0x2437d5(0x2c1)](){const _0x3090d8=_0x2437d5;let _0x40cbd7=this[_0x3090d8(0x284)][_0x3090d8(0x298)]()[_0x3090d8(0x23c)][this[_0x3090d8(0x265)]];if(!_0x40cbd7)throw Error(_0x3090d8(0x234)+this[_0x3090d8(0x265)]+_0x3090d8(0x251));return _0x40cbd7;}[_0x2437d5(0x32d)](_0x1fdbde){const _0x2fffc0=_0x2437d5;let _0x382214=this[_0x2fffc0(0x284)][_0x2fffc0(0x298)]()[_0x2fffc0(0x278)][_0x1fdbde];if(!_0x382214||_0x382214[_0x2fffc0(0x24d)]!==_0x4ffd63[_0x2fffc0(0x28d)])throw Error(_0x2fffc0(0x2ab)+_0x1fdbde+_0x2fffc0(0x285));return _0x382214;}};J=q=z([R(0x4,_0x4b711b)],J);let Y=class{constructor(_0x542307,_0x43ad49,_0x39c6e1,_0x140ceb,_0x4b9816,_0x5d0de4){const _0xdcf6c5=_0x2437d5;this['_base']=_0x542307,this['_table']=_0x43ad49,this[_0xdcf6c5(0x22f)]=_0x39c6e1,this[_0xdcf6c5(0x2ed)]=_0x140ceb,this['_commandService']=_0x4b9816,this[_0xdcf6c5(0x28e)]=_0x5d0de4;}['getId'](){const _0x34021b=_0x2437d5;return this[_0x34021b(0x22f)];}[_0x2437d5(0x263)](){const _0x41b662=_0x2437d5;return this[_0x41b662(0x26b)]();}[_0x2437d5(0x21e)](){const _0x184690=_0x2437d5;return this[_0x184690(0x26b)]()[_0x184690(0x2f8)];}[_0x2437d5(0x31b)](){const _0x66b1a0=_0x2437d5;return this[_0x66b1a0(0x26b)]()['type'];}[_0x2437d5(0x1fa)](_0x18b4d9){const _0x4ada05=_0x2437d5;return this[_0x4ada05(0x297)]['syncExecuteCommand'](_0x3832ae['id'],{'unitId':this[_0x4ada05(0x202)]['getId'](),'tableId':this[_0x4ada05(0x284)][_0x4ada05(0x301)](),'viewId':this[_0x4ada05(0x22f)],'name':_0x18b4d9});}['getConfig'](){const _0x19af5c=_0x2437d5;let _0x22563e=this[_0x19af5c(0x31b)](),_0x55181b=this['_getView']()['config'];switch(_0x22563e){case _0x206a78[_0x19af5c(0x23a)]:return _0x55181b;case _0x206a78['Kanban']:return _0x55181b;case _0x206a78[_0x19af5c(0x232)]:return _0x55181b;case _0x206a78['Gantt']:return _0x55181b;case _0x206a78[_0x19af5c(0x25a)]:return _0x55181b;default:return _0x55181b;}}[_0x2437d5(0x223)](_0x1dfd7f){const _0x332bce=_0x2437d5;return this[_0x332bce(0x297)]['syncExecuteCommand'](_0x56aaa0['id'],{'unitId':this[_0x332bce(0x202)][_0x332bce(0x301)](),'tableId':this[_0x332bce(0x284)][_0x332bce(0x301)](),'viewId':this['_viewId'],'patch':_0x1dfd7f});}['getConditionalColorRules'](){const _0x4c08be=_0x2437d5;var _0x4932b6;return _0x58a75c[_0x4c08be(0x1f5)](((_0x4932b6=this[_0x4c08be(0x26b)]()[_0x4c08be(0x293)][_0x4c08be(0x2f1)])==null?void 0x0:_0x4932b6['rules'])??[]);}[_0x2437d5(0x20a)](_0x4732a9){const _0x274faa=_0x2437d5;return this[_0x274faa(0x297)][_0x274faa(0x2e0)](_0x422212['id'],{'unitId':this[_0x274faa(0x202)][_0x274faa(0x301)](),'tableId':this[_0x274faa(0x284)][_0x274faa(0x301)](),'viewId':this[_0x274faa(0x22f)],'type':_0x56cd0d[_0x274faa(0x2d4)],'rules':_0x4732a9});}[_0x2437d5(0x320)](_0x481159){const _0x2e7ed8=_0x2437d5;return this[_0x2e7ed8(0x297)]['syncExecuteCommand'](_0x422212['id'],{'unitId':this[_0x2e7ed8(0x202)]['getId'](),'tableId':this[_0x2e7ed8(0x284)][_0x2e7ed8(0x301)](),'viewId':this['_viewId'],'type':_0x56cd0d[_0x2e7ed8(0x248)],'rule':_0x481159});}['deleteConditionalColorRule'](_0x2bebc7){const _0x5ceb29=_0x2437d5;return this[_0x5ceb29(0x297)][_0x5ceb29(0x2e0)](_0x422212['id'],{'unitId':this[_0x5ceb29(0x202)][_0x5ceb29(0x301)](),'tableId':this[_0x5ceb29(0x284)][_0x5ceb29(0x301)](),'viewId':this[_0x5ceb29(0x22f)],'type':_0x56cd0d['Delete'],'ruleId':_0x2bebc7});}[_0x2437d5(0x326)](){const _0x544a4c=_0x2437d5;return this['_commandService'][_0x544a4c(0x2e0)](_0x422212['id'],{'unitId':this[_0x544a4c(0x202)][_0x544a4c(0x301)](),'tableId':this[_0x544a4c(0x284)][_0x544a4c(0x301)](),'viewId':this['_viewId'],'type':_0x56cd0d[_0x544a4c(0x330)]});}['getFilter'](){const _0x4f59a5=_0x2437d5;return this['_getView']()[_0x4f59a5(0x262)]??null;}[_0x2437d5(0x1f9)](_0x1e2701){const _0x16d465=_0x2437d5;return this[_0x16d465(0x297)]['syncExecuteCommand'](_0x2820e7['id'],{'unitId':this[_0x16d465(0x202)][_0x16d465(0x301)](),'tableId':this[_0x16d465(0x284)]['getId'](),'viewId':this['_viewId'],'filter':_0x1e2701});}[_0x2437d5(0x2fa)](){const _0x1d41a9=_0x2437d5;return this[_0x1d41a9(0x26b)]()[_0x1d41a9(0x1f4)]??[];}['setSort'](_0x4804bd){const _0x1e8881=_0x2437d5;return this[_0x1e8881(0x297)]['syncExecuteCommand'](_0x12b8da['id'],{'unitId':this['_base'][_0x1e8881(0x301)](),'tableId':this[_0x1e8881(0x284)]['getId'](),'viewId':this[_0x1e8881(0x22f)],'sort':_0x4804bd});}['getGroup'](){const _0x44d3f6=_0x2437d5;return this[_0x44d3f6(0x26b)]()[_0x44d3f6(0x281)]??[];}[_0x2437d5(0x20c)](_0x37f124){const _0x58beda=_0x2437d5;return this[_0x58beda(0x297)]['syncExecuteCommand'](_0x48e9c7['id'],{'unitId':this[_0x58beda(0x202)]['getId'](),'tableId':this[_0x58beda(0x284)][_0x58beda(0x301)](),'viewId':this[_0x58beda(0x22f)],'group':_0x37f124});}[_0x2437d5(0x238)](_0x41edb9){const _0x2f6817=_0x2437d5;var _0x2031ca;return V(this[_0x2f6817(0x284)][_0x2f6817(0x298)]()['fields'][_0x41edb9])?((_0x2031ca=this['_getView']()[_0x2f6817(0x2af)])==null?void 0x0:_0x2031ca[_0x41edb9])??{}:{};}['getVisibleFields'](){const _0x30d218=_0x2437d5;let _0x35b9c5=this[_0x30d218(0x284)][_0x30d218(0x298)](),_0x317313=this[_0x30d218(0x26b)]();return(_0x317313[_0x30d218(0x2a4)]??_0x35b9c5[_0x30d218(0x2a4)])[_0x30d218(0x262)](_0x861ede=>{const _0x4631d7=_0x30d218;var _0x30e00f;let _0x58cb05=_0x35b9c5[_0x4631d7(0x278)][_0x861ede];return V(_0x58cb05)&&!((_0x30e00f=_0x317313[_0x4631d7(0x2af)])!=null&&(_0x30e00f=_0x30e00f[_0x861ede])!=null&&_0x30e00f[_0x4631d7(0x289)]);})[_0x30d218(0x213)](_0x33806c=>this['_injector'][_0x30d218(0x233)](B,this['_base'],this['_table'],_0x33806c));}[_0x2437d5(0x2c9)](_0x70642a,_0x1a1414){const _0xdc073e=_0x2437d5;return V(this[_0xdc073e(0x284)][_0xdc073e(0x298)]()[_0xdc073e(0x278)][_0x70642a])?this['_commandService'][_0xdc073e(0x2e0)](_0x1144b1['id'],{'unitId':this[_0xdc073e(0x202)]['getId'](),'tableId':this[_0xdc073e(0x284)][_0xdc073e(0x301)](),'viewId':this[_0xdc073e(0x22f)],'fieldId':_0x70642a,'visible':_0x1a1414}):!0x1;}[_0x2437d5(0x227)](_0x586f2e,_0x332ca8){const _0x44705d=_0x2437d5;return V(this[_0x44705d(0x284)][_0x44705d(0x298)]()[_0x44705d(0x278)][_0x586f2e])?this[_0x44705d(0x297)][_0x44705d(0x2e0)](_0x216e94['id'],{'unitId':this['_base'][_0x44705d(0x301)](),'tableId':this[_0x44705d(0x284)][_0x44705d(0x301)](),'viewId':this[_0x44705d(0x22f)],'fieldId':_0x586f2e,'width':_0x332ca8}):!0x1;}[_0x2437d5(0x206)](_0x4bf986,_0x2e62f7){const _0x2a4a6a=_0x2437d5;let _0x3be257=this[_0x2a4a6a(0x284)][_0x2a4a6a(0x298)](),_0x25e5cc=_0x2e62f7[_0x2a4a6a(0x25e)]??_0x2e62f7[_0x2a4a6a(0x323)];return!V(_0x3be257['fields'][_0x4bf986])||!_0x25e5cc||!V(_0x3be257[_0x2a4a6a(0x278)][_0x25e5cc])?!0x1:this[_0x2a4a6a(0x297)][_0x2a4a6a(0x2e0)](_0x201662['id'],{'unitId':this[_0x2a4a6a(0x202)][_0x2a4a6a(0x301)](),'tableId':this[_0x2a4a6a(0x284)]['getId'](),'viewId':this['_viewId'],'fieldId':_0x4bf986,'target':_0x2e62f7});}[_0x2437d5(0x2e5)](_0x219555){const _0x145510=_0x2437d5;return this[_0x145510(0x297)]['syncExecuteCommand'](_0x256cb9['id'],{'unitId':this[_0x145510(0x202)][_0x145510(0x301)](),'tableId':this[_0x145510(0x284)][_0x145510(0x301)](),'viewId':this['_viewId'],'target':_0x219555});}[_0x2437d5(0x2cb)](){const _0x5ced7d=_0x2437d5;return this[_0x5ced7d(0x297)][_0x5ced7d(0x2e0)](_0x41a3fa['id'],{'unitId':this[_0x5ced7d(0x202)][_0x5ced7d(0x301)](),'tableId':this[_0x5ced7d(0x284)][_0x5ced7d(0x301)](),'viewId':this['_viewId']});}[_0x2437d5(0x32c)](){const _0x2cadc4=_0x2437d5;return this[_0x2cadc4(0x28e)][_0x2cadc4(0x32c)](this[_0x2cadc4(0x202)][_0x2cadc4(0x241)]()['getSnapshot'](),this[_0x2cadc4(0x284)][_0x2cadc4(0x301)](),this[_0x2cadc4(0x22f)]);}[_0x2437d5(0x26b)](){const _0x2b4bff=_0x2437d5;let _0x30921c=this[_0x2b4bff(0x284)][_0x2b4bff(0x298)]()[_0x2b4bff(0x209)][this[_0x2b4bff(0x22f)]];if(!_0x30921c)throw Error('[FView]:\x20view\x20\x22'+this[_0x2b4bff(0x22f)]+_0x2b4bff(0x251));return _0x30921c;}};Y=z([R(0x4,_0x4b711b),R(0x5,_0xb65b4f)],Y);function _0xf2c5(){const _0x4bdea2=['length','BaseSortDirection','createdAt','updateConfig','[FBaseRange]:\x20table\x20does\x20not\x20exist.','[FField]:\x20field\x20\x22','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','setFieldWidth','index','warn','BaseEventSource','_writeFormulaExternalReferences','getViews','targetTableId','fromCollab','_viewId','isReadonly','values','Calendar','createInstance','[FRecord]:\x20record\x20\x22','_getHierarchyIndex','_getField','entries','getFieldSettings','childrenByParentId','Grid','129412vRIAxM','records','getActiveBase','every','getUnitId','getField','getBase','_initBaseAfterEvents','fieldKey','multiple','getCurrentUnitOfType','table','max','Add','Invalid\x20attachment\x20at\x20index\x20',',\x20range:\x20','size','view','type','BaseHierarchyInvalidReason','Event','flatMap','\x22\x20does\x20not\x20exist.','endColumn','Kanban','unitId','duplicateTable','recordOrder','getDataRange','regenerateViewIds','_initialize','Gallery','updatedAt','setParent','field','beforeFieldId','direction','Failed\x20to\x20add\x20field\x20\x22','_getHierarchyEventContext','filter','getView','Facade','_recordId','DESC','Failed\x20to\x20create\x20table\x20\x22','\x20Copy','limit','isArray','_getView','fireEvent','record','531064xwGjWq','BaseFieldType','update','changeType','getFormulaName','UUID','getTables','base','getHierarchyFieldId','getValue','fields','Invalid\x20attachment\x20value\x20for\x20field\x20\x22',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','orderKey','Base\x20field\x20not\x20found:\x20','hierarchyChanges','addChild','BaseTableViewCreated','_range','group','system','cancel','_table','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','endRow','BaseHierarchyChanged','BaseHierarchyErrorCode','hidden','now','has','Auto','RecordLink','_projectionService','BeforeBaseHierarchyChange','caseSensitive','getRange','removeLinkedRecord','config','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','find','hasOwnProperty','_commandService','getTable','addRecords','_univerInstanceService','_tableId','getChildren','operator','setValues','forEach','6HvnBgq','disposeWithMe','_getFieldIds','tableOrder','fieldOrder','get','auto','formula','\x22.\x20','localeCompare','_fireBeforeHierarchyChange','[FRecord]:\x20field\x20\x22','Failed\x20to\x20delete\x20table\x20\x22','rowId','setValue','fieldSettings','rows','_resourceLoaderService','setOrderKey','BaseConditionalColorTarget','deleteRecords','sourceType','getDefaultValue','BeforeBaseTableViewCreate','function',',\x20max\x20columns:\x20','reason','BaseTableCellValueChanged','trim','createView','Failed\x20to\x20add\x20records','getViewById','[FRecord]:\x20RecordLink\x20field\x20\x22','_getRecord','BASE64','startRow','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','10Zeklsg','includes','getRecord','setHierarchyField','setFieldVisible','call','delete','[FBase]:\x20table\x20\x22','params','createUnit','getFields','primaryFieldId','BeforeBaseTableFieldCreate','url','getRecordById','Set',':\x20\x22','UNIVER_BASE','save','setLinkedRecordIds','getUnit','BaseTableCreated','defaultValue','_getTable','495105FhjtMB','boolean','registerEventHandler','syncExecuteCommand','viewOrder','\x20for\x20field\x20\x22','extend','recordId','move','addRecord','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','saveUnit','getValues','URL','[FBase]:\x20invalid\x20table\x20name\x20\x22','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','_injector','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','source','parentRecordId','conditionalColoring','getPrimaryField','getAllUnitsForType','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','getParent','onCommandExecuted','tables','name','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','getSort','getLinkedRecordIds','getTableId','getDescription','prototype','BaseRecordLinkRole','includeRecords','getId','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','getPrimaryFieldId','fieldId','_fieldId','some','primaryFieldName','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','\x22\x20has\x20invalid\x20config.','213478YFBRwN','BaseConditionalColorOperator','getNumRows','getSnapshot','beforeCommandExecuted','startColumn','duplicate','addField','tableId','getFieldById','getConfig','offset','4528887VPwhTb','object','fieldIds','height','queryRecords','getType','getOwnPropertyDescriptor','getSchema','Failed\x20to\x20create\x20view\x20\x22','matches','addConditionalColorRule','BeforeBaseTableRecordCreate','viewId','afterFieldId','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','BaseTableFieldCreated','clearConditionalColorRules','Failed\x20to\x20duplicate\x20table\x20\x22','getNumColumns','BeforeBaseTableCreate','defineProperty','1419229mjprze','getProjection','_getRecordLinkField','Remote','width','Clear','string','readonly',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','BeforeBaseTableCellValueChange','deleteProperty','1fHiWQA','getBaseId','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','\x22:\x20expected\x20an\x20array.','sort','deepClone','slice','Unsupported\x20Base\x20field\x20type\x20\x22','_resolveRecordIds','setFilter','setName','externalReferences','parentByRecordId','push','_inject','setDefaultValue','thumbnail','description','_base','value','_initBaseBeforeEvents','getDescendants','moveField','getBases','[FBaseRange]:\x20values\x20size\x20','views','setConditionalColorRules','443847xefGAL','setGroup','getFieldByName','Name','BaseTableRecordCreated','getRow','_assertInBounds','9PbPJVj','map','Formula','getRecords','_collectDescendantIds','from','isFinite','_prepareFormulaFieldReferences','conditions','valid','getTableById','notMatches','getName','getColumn'];_0xf2c5=function(){return _0x4bdea2;};return _0xf2c5();}let X=class{constructor(_0x2dbd41,_0x3c4614,_0x15e472,_0x58f559,_0x32b341){const _0x5968df=_0x2437d5;this['_base']=_0x2dbd41,this['_tableId']=_0x3c4614,this[_0x5968df(0x2ed)]=_0x15e472,this[_0x5968df(0x297)]=_0x58f559,this[_0x5968df(0x28e)]=_0x32b341;}[_0x2437d5(0x241)](){const _0x5d12ed=_0x2437d5;return this[_0x5d12ed(0x202)][_0x5d12ed(0x241)]();}[_0x2437d5(0x298)](){return this['_getTable']();}['getId'](){const _0x12338a=_0x2437d5;return this[_0x12338a(0x29b)];}[_0x2437d5(0x276)](){const _0x26bd4e=_0x2437d5;return _0x28b4f1(this[_0x26bd4e(0x2dc)]());}[_0x2437d5(0x2c8)](_0x3c4990){const _0x7b7fc0=_0x2437d5;return this[_0x7b7fc0(0x297)][_0x7b7fc0(0x2e0)](_0x4c3304['id'],{'unitId':this[_0x7b7fc0(0x202)][_0x7b7fc0(0x301)](),'tableId':this['_tableId'],'fieldId':_0x3c4990});}[_0x2437d5(0x21e)](){const _0x3ccf89=_0x2437d5;return this[_0x3ccf89(0x2dc)]()['name'];}[_0x2437d5(0x272)](){const _0x176a5c=_0x2437d5;let _0x449dcc=this[_0x176a5c(0x202)]['getBase']()[_0x176a5c(0x30d)]();return _0x52635f(this['_getTable'](),_0x449dcc);}[_0x2437d5(0x1fa)](_0x765c32){const _0x1d549c=_0x2437d5;let _0xdc2313=_0x313fe0(this[_0x1d549c(0x202)][_0x1d549c(0x241)]()[_0x1d549c(0x30d)](),_0x765c32,this['_tableId']);if(!_0xdc2313[_0x1d549c(0x21b)])throw Error(_0x1d549c(0x2f4)+_0x765c32+_0x1d549c(0x2a8)+_0x1ac4a5+'\x20'+_0xdc2313['reason']);return this[_0x1d549c(0x297)][_0x1d549c(0x2e0)](_0x1cf244['id'],{'unitId':this[_0x1d549c(0x202)][_0x1d549c(0x301)](),'tableId':this[_0x1d549c(0x29b)],'name':_0x765c32});}['search'](_0x5a61f3,_0x1c8839){const _0x2b3605=_0x2437d5;let _0x36e6e=this[_0x2b3605(0x202)][_0x2b3605(0x241)]()[_0x2b3605(0x30d)](),_0x3d7603=this[_0x2b3605(0x2dc)]();if(_0x1c8839){let _0x4626aa=this[_0x2b3605(0x28e)][_0x2b3605(0x32c)](_0x36e6e,this['_tableId'],_0x1c8839),_0x3babd3=_0x3d7603[_0x2b3605(0x209)][_0x1c8839],_0x199ecf=_0x5a61f3[_0x2b3605(0x318)]??ot(_0x3d7603,_0x3babd3,_0x4626aa),_0x4fb3f5=_0x2b3605(0x2b0)in _0x4626aa&&Array[_0x2b3605(0x26a)](_0x4626aa[_0x2b3605(0x2b0)])?_0x4626aa['rows']:[];return _0x3c3e7f({..._0x5a61f3,'table':_0x3d7603,'fieldIds':_0x199ecf,'rows':_0x4fb3f5});}let _0x178755=(_0x3d7603[_0x2b3605(0x256)]?_0x3d7603[_0x2b3605(0x256)]['map'](_0xb82761=>_0x3d7603[_0x2b3605(0x23c)][_0xb82761]):Object[_0x2b3605(0x231)](_0x3d7603[_0x2b3605(0x23c)])['sort']((_0x27d2cb,_0x423166)=>_0x27d2cb[_0x2b3605(0x27b)][_0x2b3605(0x2a9)](_0x423166[_0x2b3605(0x27b)])))[_0x2b3605(0x262)](_0x425c50=>_0x425c50)[_0x2b3605(0x213)](_0x190e91=>({'recordId':_0x190e91['id'],'values':_0x190e91[_0x2b3605(0x231)]})),_0x4d19fe=_0x5a61f3[_0x2b3605(0x318)]??_0x3d7603[_0x2b3605(0x2a4)][_0x2b3605(0x262)](_0x2f8268=>V(_0x3d7603['fields'][_0x2f8268]));return _0x3c3e7f({..._0x5a61f3,'table':_0x3d7603,'fieldIds':_0x4d19fe,'rows':_0x178755});}[_0x2437d5(0x303)](){const _0x259382=_0x2437d5;return this[_0x259382(0x2dc)]()[_0x259382(0x2d0)];}[_0x2437d5(0x2cf)](){const _0x22a13f=_0x2437d5;let _0x4f0f30=this[_0x22a13f(0x2dc)]();return _0x4f0f30[_0x22a13f(0x2a4)]['map'](_0x4f5fe6=>_0x4f0f30['fields'][_0x4f5fe6])['filter'](V)[_0x22a13f(0x213)](_0x284e35=>this[_0x22a13f(0x2ed)][_0x22a13f(0x233)](B,this[_0x22a13f(0x202)],this,_0x284e35['id']));}['getFieldById'](_0x364a77){const _0x4d1778=_0x2437d5;let _0x1db0d0=this[_0x4d1778(0x2dc)]()[_0x4d1778(0x278)][_0x364a77];return V(_0x1db0d0)?this[_0x4d1778(0x2ed)][_0x4d1778(0x233)](B,this[_0x4d1778(0x202)],this,_0x1db0d0['id']):null;}[_0x2437d5(0x20d)](_0x18d8c1){const _0x1fc19f=_0x2437d5;let _0x344559=this[_0x1fc19f(0x2dc)]()[_0x1fc19f(0x278)],_0x5b1be1=Object[_0x1fc19f(0x231)](_0x344559)[_0x1fc19f(0x295)](_0xd8b1ae=>V(_0xd8b1ae)&&_0xd8b1ae['name']===_0x18d8c1);return _0x5b1be1?this[_0x1fc19f(0x2ed)][_0x1fc19f(0x233)](B,this[_0x1fc19f(0x202)],this,_0x5b1be1['id']):null;}[_0x2437d5(0x2f2)](){const _0x1023f6=_0x2437d5;let _0x1e0272=this['_getTable']()[_0x1023f6(0x2d0)];return this['_injector'][_0x1023f6(0x233)](B,this[_0x1023f6(0x202)],this,_0x1e0272);}[_0x2437d5(0x311)](_0x18614d,_0x305e6e,_0x2bd858){const _0x58d05d=_0x2437d5;var _0x57ffd5,_0x380027;if(!Object[_0x58d05d(0x231)](_0x4ffd63)[_0x58d05d(0x306)](_0x8c0d64=>_0x8c0d64===_0x305e6e))throw Error(_0x58d05d(0x1f7)+String(_0x305e6e)+'\x22.');if(_0x305e6e===_0x4ffd63[_0x58d05d(0x214)]&&this[_0x58d05d(0x219)](_0x18614d,_0x2bd858),_0x305e6e===_0x4ffd63['RecordLink']&&(typeof(_0x2bd858==null||(_0x57ffd5=_0x2bd858[_0x58d05d(0x25d)])==null||(_0x57ffd5=_0x57ffd5[_0x58d05d(0x293)])==null?void 0x0:_0x57ffd5[_0x58d05d(0x22d)])!=_0x58d05d(0x331)||typeof _0x2bd858[_0x58d05d(0x25d)]['config'][_0x58d05d(0x244)]!=_0x58d05d(0x2de)))throw Error(_0x58d05d(0x308));let _0x115e6b={..._0x2bd858==null?void 0x0:_0x2bd858[_0x58d05d(0x25d)],'id':_0x20bc4d(0x6),'name':_0x18614d,'type':_0x305e6e,'config':(_0x2bd858==null||(_0x380027=_0x2bd858[_0x58d05d(0x25d)])==null?void 0x0:_0x380027[_0x58d05d(0x293)])??{}};if(!this['_commandService'][_0x58d05d(0x2e0)](_0x366cc7['id'],{'unitId':this['_base'][_0x58d05d(0x301)](),'tableId':this[_0x58d05d(0x29b)],'field':_0x115e6b,'index':_0x2bd858==null?void 0x0:_0x2bd858[_0x58d05d(0x228)]}))throw Error(_0x58d05d(0x260)+_0x18614d+'\x22');return this['_injector'][_0x58d05d(0x233)](B,this[_0x58d05d(0x202)],this,_0x115e6b['id']);}[_0x2437d5(0x219)](_0x396e3d,_0x1e8137){const _0x31ebb1=_0x2437d5;var _0x1fb397;if(!_0x1e8137||!('externalReferences'in _0x1e8137)||!Array[_0x31ebb1(0x26a)](_0x1e8137[_0x31ebb1(0x1fb)]))throw Error(_0x31ebb1(0x302));let _0x40f182=this[_0x31ebb1(0x297)]['syncExecuteCommand'](_0x509e7e['id'],{'unitId':this['_base']['getId'](),'tableId':this['_tableId'],'formula':String(((_0x1fb397=_0x1e8137[_0x31ebb1(0x25d)])==null||(_0x1fb397=_0x1fb397[_0x31ebb1(0x293)])==null?void 0x0:_0x1fb397[_0x31ebb1(0x2a7)])??'')});if(!_0x40f182[_0x31ebb1(0x21b)])throw Error(_0x40f182[_0x31ebb1(0x2ba)]??'Invalid\x20Base\x20formula.');if(_0x1e8137[_0x31ebb1(0x1fb)][_0x31ebb1(0x220)]>0x0&&!this[_0x31ebb1(0x297)][_0x31ebb1(0x2e0)](_0x242f30['id'],{'unitId':this[_0x31ebb1(0x202)][_0x31ebb1(0x301)](),'references':_0x1e8137[_0x31ebb1(0x1fb)]}))throw Error(_0x31ebb1(0x294)+_0x396e3d+'\x22');}[_0x2437d5(0x215)](){const _0x1c7e65=_0x2437d5;return this[_0x1c7e65(0x1f8)]()[_0x1c7e65(0x213)](_0x460904=>this[_0x1c7e65(0x2ed)][_0x1c7e65(0x233)](J,this['_base'],this,_0x460904,this[_0x1c7e65(0x2ed)]));}['getRecordById'](_0x4c8132){const _0x1f952e=_0x2437d5;return this[_0x1f952e(0x2dc)]()['records'][_0x4c8132]?this['_injector'][_0x1f952e(0x233)](J,this[_0x1f952e(0x202)],this,_0x4c8132,this[_0x1f952e(0x2ed)]):null;}[_0x2437d5(0x31a)](_0x15d614={}){const _0x5b44c9=_0x2437d5;let _0x3bbb76=this[_0x5b44c9(0x2dc)](),_0x15ec87=this[_0x5b44c9(0x1f8)](_0x15d614),_0x299670=Math['max'](0x0,_0x15d614['offset']??0x0),_0x54ad8c=_0x15d614['limit']==null?null:Math[_0x5b44c9(0x247)](0x0,_0x15d614[_0x5b44c9(0x269)]),_0x476fda=et(_0x15ec87[_0x5b44c9(0x213)](_0x328f1e=>_0x3bbb76['records'][_0x328f1e])[_0x5b44c9(0x262)](_0x412a8f=>nt(_0x412a8f,_0x3bbb76,_0x15d614[_0x5b44c9(0x262)])),_0x3bbb76,_0x15d614[_0x5b44c9(0x1f4)]);return{'records':$e(_0x476fda,_0x15d614)[_0x5b44c9(0x213)](_0x2eea1f=>this['_injector'][_0x5b44c9(0x233)](J,this[_0x5b44c9(0x202)],this,_0x2eea1f['id'],this[_0x5b44c9(0x2ed)])),'total':_0x476fda['length'],'offset':_0x299670,'limit':_0x54ad8c,'hasMore':_0x54ad8c!=null&&_0x299670+_0x54ad8c<_0x476fda['length']};}[_0x2437d5(0x2e6)](_0x437ba0,_0x2980b3='id',_0x202dbb){const _0x31f60e=_0x2437d5;let _0x37067a=this[_0x31f60e(0x2dc)](),_0x530fd3=Date[_0x31f60e(0x28a)](),_0x5bb2e1={..._0x202dbb,'id':_0x20bc4d(0x6),'values':H(_0x37067a,_0x437ba0,_0x2980b3),'orderKey':(_0x202dbb==null?void 0x0:_0x202dbb[_0x31f60e(0x27b)])||''+_0x530fd3,'createdAt':(_0x202dbb==null?void 0x0:_0x202dbb[_0x31f60e(0x222)])||_0x530fd3,'updatedAt':(_0x202dbb==null?void 0x0:_0x202dbb[_0x31f60e(0x25b)])||_0x530fd3};if(!this['_commandService']['syncExecuteCommand'](_0x56c7de['id'],{'unitId':this[_0x31f60e(0x202)]['getId'](),'tableId':this[_0x31f60e(0x29b)],'record':_0x5bb2e1,'source':_0x314bee[_0x31f60e(0x264)]}))throw Error(_0x31f60e(0x2c4)+_0x5bb2e1['id']+'\x22');return this['_injector'][_0x31f60e(0x233)](J,this['_base'],this,_0x5bb2e1['id'],this[_0x31f60e(0x2ed)]);}[_0x2437d5(0x299)](_0x50d7a4){const _0x2eaddd=_0x2437d5;if(!_0x50d7a4[_0x2eaddd(0x220)])return[];let _0x210fbf=this[_0x2eaddd(0x2dc)](),_0x3bf25b=Date[_0x2eaddd(0x28a)](),_0x22a416=_0x50d7a4[_0x2eaddd(0x213)]((_0x22732e,_0x204663)=>{const _0x58923c=_0x2eaddd;var _0x759970,_0x60f46c,_0x54a81c;return{..._0x22732e['record'],'id':_0x20bc4d(0x6),'values':H(_0x210fbf,_0x22732e[_0x58923c(0x231)],_0x22732e[_0x58923c(0x243)]??'id'),'orderKey':((_0x759970=_0x22732e[_0x58923c(0x26d)])==null?void 0x0:_0x759970[_0x58923c(0x27b)])||''+(_0x3bf25b+_0x204663),'createdAt':((_0x60f46c=_0x22732e[_0x58923c(0x26d)])==null?void 0x0:_0x60f46c[_0x58923c(0x222)])||_0x3bf25b,'updatedAt':((_0x54a81c=_0x22732e[_0x58923c(0x26d)])==null?void 0x0:_0x54a81c[_0x58923c(0x25b)])||_0x3bf25b};});if(!this[_0x2eaddd(0x297)][_0x2eaddd(0x2e0)](_0x27fe40['id'],{'unitId':this[_0x2eaddd(0x202)]['getId'](),'tableId':this['_tableId'],'records':_0x22a416,'source':_0x314bee[_0x2eaddd(0x264)]}))throw Error(_0x2eaddd(0x2be));return _0x22a416[_0x2eaddd(0x213)](_0x5c7b27=>this[_0x2eaddd(0x2ed)][_0x2eaddd(0x233)](J,this[_0x2eaddd(0x202)],this,_0x5c7b27['id'],this[_0x2eaddd(0x2ed)]));}[_0x2437d5(0x2b4)](_0x49b56e){const _0x373039=_0x2437d5;return!_0x49b56e['length']||this[_0x373039(0x297)]['syncExecuteCommand'](_0x4b1f8d['id'],{'unitId':this['_base'][_0x373039(0x301)](),'tableId':this['_tableId'],'recordIds':_0x49b56e,'source':_0x314bee[_0x373039(0x264)]});}[_0x2437d5(0x291)](_0x574a82,_0x29fff5,_0x42256e=0x1,_0x279574=0x1){const _0x31af2e=_0x2437d5;return this[_0x31af2e(0x2ed)][_0x31af2e(0x233)](K,this[_0x31af2e(0x202)],this,{'startRow':_0x574a82,'endRow':_0x574a82+_0x42256e-0x1,'startColumn':_0x29fff5,'endColumn':_0x29fff5+_0x279574-0x1},this['_injector']);}[_0x2437d5(0x257)](){const _0x1d4ba3=_0x2437d5;var _0x4dc249;let _0x573424=_0x3a2549(this[_0x1d4ba3(0x2dc)]()),_0x2b986e=((_0x4dc249=_0x573424[_0x1d4ba3(0x256)])==null?void 0x0:_0x4dc249[_0x1d4ba3(0x220)])??0x0,_0x2a866f=_0x573424[_0x1d4ba3(0x2a4)][_0x1d4ba3(0x262)](_0x4448aa=>V(_0x573424[_0x1d4ba3(0x278)][_0x4448aa]))[_0x1d4ba3(0x220)];return this[_0x1d4ba3(0x291)](0x0,0x0,Math[_0x1d4ba3(0x247)](_0x2b986e,0x1),Math[_0x1d4ba3(0x247)](_0x2a866f,0x1));}[_0x2437d5(0x22c)](){const _0x3b388b=_0x2437d5;let _0x437fe5=this[_0x3b388b(0x2dc)]();return _0x437fe5[_0x3b388b(0x2e1)][_0x3b388b(0x262)](_0x4a6007=>_0x437fe5['views'][_0x4a6007])['map'](_0x26c57b=>this[_0x3b388b(0x2ed)][_0x3b388b(0x233)](Y,this[_0x3b388b(0x202)],this,_0x26c57b,this['_injector']));}[_0x2437d5(0x2bf)](_0x31efb7){const _0x19af02=_0x2437d5;return this['_getTable']()[_0x19af02(0x209)][_0x31efb7]?this[_0x19af02(0x2ed)][_0x19af02(0x233)](Y,this[_0x19af02(0x202)],this,_0x31efb7,this[_0x19af02(0x2ed)]):null;}['getViewByName'](_0x506d26){const _0x2fa9f6=_0x2437d5;let _0x5210dd=this['_getTable'](),_0x304bba=Object['values'](_0x5210dd[_0x2fa9f6(0x209)])[_0x2fa9f6(0x295)](_0x11e900=>_0x11e900['name']===_0x506d26);return _0x304bba?this[_0x2fa9f6(0x2ed)][_0x2fa9f6(0x233)](Y,this[_0x2fa9f6(0x202)],this,_0x304bba['id'],this[_0x2fa9f6(0x2ed)]):null;}[_0x2437d5(0x2bd)](_0x21f76e,_0x4b29d7,_0x728c3c){const _0x3d0f61=_0x2437d5;var _0x19d291,_0x2f3f95,_0x5bc4cc,_0x326ec4;let _0x56de42=this[_0x3d0f61(0x2dc)](),_0x515594=[_0x31490b,...((_0x728c3c==null||(_0x19d291=_0x728c3c[_0x3d0f61(0x24c)])==null?void 0x0:_0x19d291[_0x3d0f61(0x2a4)])??_0x56de42[_0x3d0f61(0x2a4)])[_0x3d0f61(0x262)](_0x12d2c2=>V(_0x56de42[_0x3d0f61(0x278)][_0x12d2c2]))],_0x220031={..._0x728c3c==null?void 0x0:_0x728c3c[_0x3d0f61(0x24c)],'id':_0x20bc4d(0x6),'name':_0x21f76e,'type':_0x4b29d7,'tableId':this['_tableId'],'config':(_0x728c3c==null||(_0x2f3f95=_0x728c3c[_0x3d0f61(0x24c)])==null?void 0x0:_0x2f3f95['config'])??{},'fieldOrder':_0x515594,'fieldSettings':{..._0x728c3c==null||(_0x5bc4cc=_0x728c3c[_0x3d0f61(0x24c)])==null?void 0x0:_0x5bc4cc[_0x3d0f61(0x2af)],[_0x31490b]:{..._0x728c3c==null||(_0x326ec4=_0x728c3c[_0x3d0f61(0x24c)])==null||(_0x326ec4=_0x326ec4[_0x3d0f61(0x2af)])==null?void 0x0:_0x326ec4[_0x31490b],'hidden':!0x0}}};if(!this[_0x3d0f61(0x297)][_0x3d0f61(0x2e0)](_0x56d066['id'],{'unitId':this['_base'][_0x3d0f61(0x301)](),'tableId':this[_0x3d0f61(0x29b)],'view':_0x220031,'index':_0x728c3c==null?void 0x0:_0x728c3c[_0x3d0f61(0x228)]}))throw Error(_0x3d0f61(0x31e)+_0x21f76e+'\x22');return this['_injector'][_0x3d0f61(0x233)](Y,this[_0x3d0f61(0x202)],this,_0x220031['id'],this['_injector']);}[_0x2437d5(0x31d)](){const _0x2a4ded=_0x2437d5;let _0x29cc31=this[_0x2a4ded(0x2dc)](),_0x5a2875=_0x29cc31[_0x2a4ded(0x2a4)]['filter'](_0x3ef5f9=>V(_0x29cc31[_0x2a4ded(0x278)][_0x3ef5f9])),_0x44a1b4=_0x29cc31['viewOrder'][_0x2a4ded(0x262)](_0x2db0d9=>_0x29cc31[_0x2a4ded(0x209)][_0x2db0d9]);return{'id':_0x29cc31['id'],'name':_0x29cc31[_0x2a4ded(0x2f8)],'formulaName':this[_0x2a4ded(0x272)](),'primaryFieldId':_0x29cc31['primaryFieldId'],'fieldIds':_0x5a2875,'viewIds':_0x44a1b4,'recordCount':this[_0x2a4ded(0x1f8)]()['length'],'fields':_0x5a2875[_0x2a4ded(0x213)](_0x4be155=>{const _0x4e5e99=_0x2a4ded;let _0x21af29=_0x29cc31[_0x4e5e99(0x278)][_0x4be155];return{'id':_0x21af29['id'],'name':_0x21af29[_0x4e5e99(0x2f8)],'type':_0x21af29[_0x4e5e99(0x24d)],'config':_0x21af29[_0x4e5e99(0x293)],'readonly':_0x21af29[_0x4e5e99(0x1eb)],'description':_0x21af29[_0x4e5e99(0x201)]};}),'views':_0x44a1b4[_0x2a4ded(0x213)](_0x4a9c50=>{const _0x3870e2=_0x2a4ded;let _0x5b7c0c=_0x29cc31[_0x3870e2(0x209)][_0x4a9c50];return{'id':_0x5b7c0c['id'],'name':_0x5b7c0c[_0x3870e2(0x2f8)],'type':_0x5b7c0c[_0x3870e2(0x24d)]};})};}[_0x2437d5(0x2dc)](){const _0x2ff6c9=_0x2437d5;let _0x4c1ea3=this[_0x2ff6c9(0x202)][_0x2ff6c9(0x241)]()[_0x2ff6c9(0x30d)]()[_0x2ff6c9(0x2f7)][this[_0x2ff6c9(0x29b)]];if(!_0x4c1ea3)throw Error('[FTable]:\x20table\x20\x22'+this[_0x2ff6c9(0x29b)]+_0x2ff6c9(0x251));return _0x4c1ea3;}[_0x2437d5(0x1f8)](_0x4688d9={}){const _0x427e15=_0x2437d5;let _0x177ce6=this[_0x427e15(0x202)][_0x427e15(0x241)]()['getSnapshot'](),_0x46d6e2=this[_0x427e15(0x2dc)]();if(_0x4688d9['viewId']){let _0x1ce117=this['_projectionService']['getProjection'](_0x177ce6,this[_0x427e15(0x29b)],_0x4688d9[_0x427e15(0x322)]);if(_0x427e15(0x2b0)in _0x1ce117&&Array[_0x427e15(0x26a)](_0x1ce117[_0x427e15(0x2b0)]))return _0x1ce117[_0x427e15(0x2b0)][_0x427e15(0x213)](_0x37625e=>_0x37625e[_0x427e15(0x2e4)]);}return(_0x46d6e2[_0x427e15(0x256)]?_0x46d6e2[_0x427e15(0x256)]['map'](_0x2647a6=>_0x46d6e2[_0x427e15(0x23c)][_0x2647a6]):Object[_0x427e15(0x231)](_0x46d6e2[_0x427e15(0x23c)])[_0x427e15(0x1f4)]((_0xa914a4,_0x880771)=>_0xa914a4[_0x427e15(0x27b)][_0x427e15(0x2a9)](_0x880771['orderKey'])))['filter'](_0x13eea5=>_0x13eea5)[_0x427e15(0x213)](_0x4a92ae=>_0x4a92ae['id']);}};X=z([R(0x3,_0x4b711b),R(0x4,_0xb65b4f)],X);function $e(_0x59abc9,_0xc132fe){const _0x3f29fc=_0x2437d5;let _0x51cd9e=Math[_0x3f29fc(0x247)](0x0,_0xc132fe[_0x3f29fc(0x315)]??0x0);return _0xc132fe[_0x3f29fc(0x269)]==null?_0x59abc9[_0x3f29fc(0x1f6)](_0x51cd9e):_0x59abc9[_0x3f29fc(0x1f6)](_0x51cd9e,_0x51cd9e+Math[_0x3f29fc(0x247)](0x0,_0xc132fe[_0x3f29fc(0x269)]));}function et(_0x36983e,_0x4a3d82,_0x358477=[]){return _0x358477['length']?[..._0x36983e]['sort']((_0x5d288c,_0x504827)=>{const _0x63cb1b=_0xe2d7;for(let _0x17ac3d of _0x358477){var _0x376436;let _0x1dc785=_0x17ac3d[_0x63cb1b(0x25f)]===_0x109e0b[_0x63cb1b(0x266)]?-0x1:0x1,_0x30602a=tt(_0x5d288c[_0x63cb1b(0x231)][_0x17ac3d[_0x63cb1b(0x304)]],_0x504827[_0x63cb1b(0x231)][_0x17ac3d['fieldId']],(_0x376436=_0x4a3d82[_0x63cb1b(0x278)][_0x17ac3d[_0x63cb1b(0x304)]])==null?void 0x0:_0x376436[_0x63cb1b(0x24d)]);if(_0x30602a!==0x0)return _0x30602a*_0x1dc785;}return String(_0x5d288c[_0x63cb1b(0x27b)]??_0x5d288c['id'])[_0x63cb1b(0x2a9)](String(_0x504827['orderKey']??_0x504827['id']));}):_0x36983e;}function _0xe2d7(_0x1357c3,_0x3cdca5){_0x1357c3=_0x1357c3-0x1eb;const _0xf2c53e=_0xf2c5();let _0xe2d75f=_0xf2c53e[_0x1357c3];return _0xe2d75f;}function tt(_0x519a84,_0x3906be,_0x4c44f7){const _0x4771b2=_0x2437d5;return _0x519a84==null&&_0x3906be==null?0x0:_0x519a84==null?-0x1:_0x3906be==null?0x1:typeof _0x519a84=='number'&&typeof _0x3906be=='number'?_0x519a84-_0x3906be:_0x4c44f7===_0x4ffd63['Date']?Number(_0x519a84)-Number(_0x3906be):String(_0x519a84)[_0x4771b2(0x2a9)](String(_0x3906be));}function nt(_0x443f71,_0x55e8df,_0xdfb064){const _0x1314f1=_0x2437d5;var _0x515642;if(!_0xdfb064||!((_0x515642=_0xdfb064[_0x1314f1(0x21a)])!=null&&_0x515642[_0x1314f1(0x220)]))return!0x0;let {conjunction:_0xa2f36c=_0x32065f['OR'],conditions:_0x2340eb}=_0xdfb064;return _0xa2f36c===_0x32065f['AND']&&_0x2340eb[_0x1314f1(0x220)]>0x1?_0x2340eb[_0x1314f1(0x23e)](_0x4d32fc=>rt(_0x443f71,_0x55e8df,_0x4d32fc)):_0x2340eb[_0x1314f1(0x306)](_0x59c667=>rt(_0x443f71,_0x55e8df,_0x59c667));}function rt(_0x40040b,_0x3224a3,_0x54b084){const _0x2641cd=_0x2437d5;let _0x2bb176=_0x40040b[_0x2641cd(0x231)][_0x54b084[_0x2641cd(0x304)]],_0x4a8d7e=_0x3224a3[_0x2641cd(0x278)][_0x54b084[_0x2641cd(0x304)]];if(it(_0x54b084)){let _0x44ec26=at(_0x54b084)['test'](String(_0x2bb176??''));return _0x54b084[_0x2641cd(0x29d)]===_0x2641cd(0x31f)?_0x44ec26:!_0x44ec26;}return!_0x4a8d7e||_0x5572d0(_0x2bb176,_0x54b084['operator'],_0x54b084[_0x2641cd(0x203)],_0x4a8d7e);}function it(_0x4cd3af){const _0x32b26e=_0x2437d5;return _0x4cd3af[_0x32b26e(0x29d)]===_0x32b26e(0x31f)||_0x4cd3af[_0x32b26e(0x29d)]===_0x32b26e(0x21d);}function at(_0x43f37f){const _0x287c7b=_0x2437d5;let _0x451462=String(_0x43f37f[_0x287c7b(0x203)]??'');if(_0x451462['length']>0x200)throw Error(_0x287c7b(0x2e7));try{return new RegExp(_0x451462,_0x43f37f[_0x287c7b(0x290)]?void 0x0:'i');}catch(_0x1fef38){throw Error('Invalid\x20Base\x20regex\x20filter:\x20'+_0x451462+'.\x20'+(_0x1fef38 instanceof Error?_0x1fef38['message']:String(_0x1fef38)));}}function ot(_0x115bdb,_0x24697a,_0x1f5ea5){const _0x4dda75=_0x2437d5;if(_0x1f5ea5[_0x4dda75(0x24d)]!=='invalid'){var _0x243d17;if(_0x1f5ea5[_0x4dda75(0x24d)]===_0x206a78[_0x4dda75(0x253)]){var _0x4ea5aa;let _0x124016=[((_0x4ea5aa=_0x1f5ea5[_0x4dda75(0x278)])==null||(_0x4ea5aa=_0x4ea5aa[0x0])==null?void 0x0:_0x4ea5aa['id'])??_0x115bdb[_0x4dda75(0x2d0)],..._0x1f5ea5['visibleCardFieldIds']??[]];return Array[_0x4dda75(0x217)](new Set(_0x124016['filter'](_0x4916d0=>!!_0x115bdb[_0x4dda75(0x278)][_0x4916d0])));}if((_0x243d17=_0x1f5ea5[_0x4dda75(0x278)])!=null&&_0x243d17['length'])return _0x1f5ea5[_0x4dda75(0x278)]['map'](_0x21b2fd=>_0x21b2fd['id'])[_0x4dda75(0x262)](_0x5d8b27=>{const _0x4f36f4=_0x4dda75;var _0x2b8887;return!!(_0x115bdb[_0x4f36f4(0x278)][_0x5d8b27]&&!(_0x24697a!=null&&(_0x2b8887=_0x24697a[_0x4f36f4(0x2af)])!=null&&(_0x2b8887=_0x2b8887[_0x5d8b27])!=null&&_0x2b8887[_0x4f36f4(0x289)]));});}return _0x115bdb['fieldOrder'][_0x4dda75(0x262)](_0x1a714d=>{const _0x419035=_0x4dda75;var _0x44f5df;return!!(_0x115bdb[_0x419035(0x278)][_0x1a714d]&&!(_0x24697a!=null&&(_0x44f5df=_0x24697a[_0x419035(0x2af)])!=null&&(_0x44f5df=_0x44f5df[_0x1a714d])!=null&&_0x44f5df[_0x419035(0x289)]));});}let Z=class{constructor(_0x5a024b,_0xfd450e,_0x59d7b1,_0x5d2fbe){const _0x55b00b=_0x2437d5;this[_0x55b00b(0x202)]=_0x5a024b,this[_0x55b00b(0x2ed)]=_0xfd450e,this[_0x55b00b(0x2b1)]=_0x59d7b1,this[_0x55b00b(0x297)]=_0x5d2fbe;}[_0x2437d5(0x241)](){const _0x4e9ce5=_0x2437d5;return this[_0x4e9ce5(0x202)];}[_0x2437d5(0x301)](){const _0x1e35fb=_0x2437d5;return this[_0x1e35fb(0x202)][_0x1e35fb(0x23f)]();}[_0x2437d5(0x2d7)](){const _0x419291=_0x2437d5;return this[_0x419291(0x2b1)][_0x419291(0x2e8)](this[_0x419291(0x301)]())??_0x58a75c[_0x419291(0x1f5)](this['_base'][_0x419291(0x30d)]());}[_0x2437d5(0x21e)](){const _0x537c8c=_0x2437d5;return this[_0x537c8c(0x202)][_0x537c8c(0x30d)]()['name'];}[_0x2437d5(0x1fa)](_0x25a051){const _0x276871=_0x2437d5;this[_0x276871(0x297)][_0x276871(0x2e0)](_0x235f7e['id'],{'unitId':this[_0x276871(0x301)](),'name':_0x25a051});}[_0x2437d5(0x274)](){const _0xd59a44=_0x2437d5;let _0x991136=this[_0xd59a44(0x202)][_0xd59a44(0x30d)]();return _0x991136[_0xd59a44(0x2a3)][_0xd59a44(0x213)](_0x299e78=>_0x991136['tables'][_0x299e78])[_0xd59a44(0x262)](_0x34979f=>_0x34979f)['map'](_0x188dd8=>this[_0xd59a44(0x2ed)][_0xd59a44(0x233)](X,this,_0x188dd8['id'],this[_0xd59a44(0x2ed)]));}[_0x2437d5(0x21c)](_0x19af67){const _0x31f9f7=_0x2437d5;let _0x1408dd=this['_base']['getSnapshot']()[_0x31f9f7(0x2f7)][_0x19af67];return _0x1408dd?this[_0x31f9f7(0x2ed)][_0x31f9f7(0x233)](X,this,_0x1408dd['id'],this[_0x31f9f7(0x2ed)]):null;}['getTableByName'](_0x13d9c1){const _0x15f210=_0x2437d5;let _0xa6d585=this['_base'][_0x15f210(0x30d)](),_0x157699=Object[_0x15f210(0x231)](_0xa6d585['tables'])[_0x15f210(0x295)](_0x330bf9=>_0x330bf9[_0x15f210(0x2f8)]===_0x13d9c1);return _0x157699?this[_0x15f210(0x2ed)][_0x15f210(0x233)](X,this,_0x157699['id'],this[_0x15f210(0x2ed)]):null;}['insertTable'](_0x1de2d4,_0x209f62){const _0x20eeb6=_0x2437d5;let _0x5695a5=_0x44e8c9({'id':_0x20bc4d(),'name':_0x1de2d4,..._0x209f62==null?void 0x0:_0x209f62[_0x20eeb6(0x246)],'primaryFieldName':_0x209f62==null?void 0x0:_0x209f62[_0x20eeb6(0x307)]}),_0x3323ea=_0x58a75c['commonExtend'](_0x5695a5,(_0x209f62==null?void 0x0:_0x209f62['table'])??{}),_0x522490=_0x313fe0(this[_0x20eeb6(0x202)][_0x20eeb6(0x30d)](),_0x3323ea[_0x20eeb6(0x2f8)]);if(!_0x522490[_0x20eeb6(0x21b)])throw Error(_0x20eeb6(0x2eb)+_0x3323ea[_0x20eeb6(0x2f8)]+_0x20eeb6(0x2a8)+_0x1ac4a5+'\x20'+_0x522490[_0x20eeb6(0x2ba)]);if(!this[_0x20eeb6(0x297)][_0x20eeb6(0x2e0)](_0x550a64['id'],{'unitId':this['_base'][_0x20eeb6(0x23f)](),'table':_0x3323ea,'index':_0x209f62==null?void 0x0:_0x209f62['index']}))throw Error(_0x20eeb6(0x267)+_0x1de2d4+'\x22.');return this[_0x20eeb6(0x2ed)][_0x20eeb6(0x233)](X,this,_0x3323ea['id'],this[_0x20eeb6(0x2ed)]);}['deleteTable'](_0x1e8a68){const _0x7e1ea9=_0x2437d5;let _0x562256=typeof _0x1e8a68==_0x7e1ea9(0x331)?_0x1e8a68:_0x1e8a68[_0x7e1ea9(0x301)]();if(!this[_0x7e1ea9(0x297)]['syncExecuteCommand'](_0xe693ee['id'],{'unitId':this['_base'][_0x7e1ea9(0x23f)](),'tableId':_0x562256}))throw Error(_0x7e1ea9(0x2ac)+_0x562256+'\x22.');return!0x0;}[_0x2437d5(0x255)](_0x5265c0,_0x122050){const _0x36cfef=_0x2437d5;let _0x1378e9=this[_0x36cfef(0x202)]['getSnapshot'](),_0x7ad190=typeof _0x5265c0==_0x36cfef(0x331)?_0x5265c0:_0x5265c0[_0x36cfef(0x301)](),_0x329c42=_0x1378e9[_0x36cfef(0x2f7)][_0x7ad190];if(!_0x329c42)throw Error(_0x36cfef(0x2cc)+_0x7ad190+_0x36cfef(0x251));let _0xc0c452=_0x1378e9['tableOrder']['indexOf'](_0x7ad190)+0x1,_0x3455a9=_0x3c3ee(_0x329c42,{'id':_0x20bc4d(),'name':_0x483446(_0x1378e9,_0x329c42[_0x36cfef(0x2f8)]+_0x36cfef(0x268)),'includeRecords':(_0x122050==null?void 0x0:_0x122050[_0x36cfef(0x300)])??!0x1,'regenerateViewIds':(_0x122050==null?void 0x0:_0x122050[_0x36cfef(0x258)])??!0x1});if(!this[_0x36cfef(0x297)][_0x36cfef(0x2e0)](_0x550a64['id'],{'unitId':this['_base'][_0x36cfef(0x23f)](),'table':_0x3455a9,'index':_0xc0c452}))throw Error(_0x36cfef(0x327)+_0x7ad190+'\x22.');return this[_0x36cfef(0x2ed)][_0x36cfef(0x233)](X,this,_0x3455a9['id'],this['_injector']);}[_0x2437d5(0x31d)](){const _0x769d18=_0x2437d5;let _0x4e48a6=this[_0x769d18(0x202)][_0x769d18(0x30d)]();return{'id':_0x4e48a6['id'],'name':_0x4e48a6['name'],'tables':this[_0x769d18(0x274)]()[_0x769d18(0x213)](_0x49db24=>_0x49db24['getSchema']())};}};Z=z([R(0x1,_0x4604ee(_0xe12cbe)),R(0x2,_0x4f6253),R(0x3,_0x4b711b)],Z);var st=class extends _0x9a9f06{[_0x2437d5(0x259)](){const _0x1f47be=_0x2437d5;this['_initBaseBeforeEvents'](),this[_0x1f47be(0x242)]();}['createBase'](_0x727fd1={},_0x1b4286){const _0x2e1372=_0x2437d5;let _0x591b44=this[_0x2e1372(0x29a)][_0x2e1372(0x2ce)](_0x5e3bb9['UNIVER_BASE'],_0x727fd1,_0x1b4286);return this['_injector']['createInstance'](Z,_0x591b44);}[_0x2437d5(0x23d)](){const _0x27469b=_0x2437d5;let _0x33f0ee=this[_0x27469b(0x29a)][_0x27469b(0x245)](_0x5e3bb9[_0x27469b(0x2d6)]);return _0x33f0ee?this[_0x27469b(0x2ed)][_0x27469b(0x233)](Z,_0x33f0ee):null;}['getBase'](_0x4cb888){const _0x3aa3eb=_0x2437d5;let _0x440e9c=this['_univerInstanceService'][_0x3aa3eb(0x2d9)](_0x4cb888,_0x5e3bb9[_0x3aa3eb(0x2d6)]);return _0x440e9c?this['_injector'][_0x3aa3eb(0x233)](Z,_0x440e9c):null;}[_0x2437d5(0x207)](){const _0x26ab38=_0x2437d5;return this[_0x26ab38(0x29a)][_0x26ab38(0x2f3)](_0x5e3bb9[_0x26ab38(0x2d6)])[_0x26ab38(0x213)](_0x13fba3=>this['_injector']['createInstance'](Z,_0x13fba3));}[_0x2437d5(0x242)](){const _0x4d56e3=_0x2437d5;this[_0x4d56e3(0x2a1)](this['registerEventHandler'](this['Event'][_0x4d56e3(0x287)],()=>this[_0x4d56e3(0x297)][_0x4d56e3(0x2f6)]((_0x1212a4,_0x232b39)=>{const _0x4e4106=_0x4d56e3;var _0x35ad93;if(!Q(_0x1212a4,_0x2cd8cd))return;let _0x51d8c1=_0x1212a4[_0x4e4106(0x2cd)];if(!((_0x35ad93=_0x51d8c1[_0x4e4106(0x27d)])!=null&&_0x35ad93[_0x4e4106(0x220)]))return;let _0x242deb=this[_0x4e4106(0x241)](_0x51d8c1[_0x4e4106(0x254)]),_0x509e9e=_0x242deb==null?void 0x0:_0x242deb[_0x4e4106(0x21c)](_0x51d8c1['hierarchyChanges'][0x0]['tableId']);if(!_0x242deb||!_0x509e9e)return;let _0x1d3a7d={'base':_0x242deb,'table':_0x509e9e,'changes':_0x51d8c1['hierarchyChanges'],'source':_0x232b39!=null&&_0x232b39[_0x4e4106(0x22e)]?_0x314bee[_0x4e4106(0x32e)]:_0x51d8c1[_0x4e4106(0x2ef)]??_0x314bee['UI']};this[_0x4e4106(0x26c)](this[_0x4e4106(0x24f)][_0x4e4106(0x287)],_0x1d3a7d);}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x4d56e3(0x24f)][_0x4d56e3(0x2da)],()=>this[_0x4d56e3(0x297)][_0x4d56e3(0x2f6)](_0x1e0fdc=>{const _0x1c51bc=_0x4d56e3;if(_0x1e0fdc['id']!==_0x550a64['id'])return;let {unitId:_0x2d28bd,table:_0x3496e9,index:_0x327bb9}=_0x1e0fdc[_0x1c51bc(0x2cd)],_0x280517=this[_0x1c51bc(0x241)](_0x2d28bd);if(!_0x280517)return;let _0x22f6e4={'base':_0x280517,'table':_0x3496e9,'index':_0x327bb9};this[_0x1c51bc(0x26c)](this['Event'][_0x1c51bc(0x2da)],_0x22f6e4);}))),this['disposeWithMe'](this['registerEventHandler'](this['Event'][_0x4d56e3(0x325)],()=>this['_commandService'][_0x4d56e3(0x2f6)](_0x1df041=>{const _0xdc8ae9=_0x4d56e3;if(_0x1df041['id']!==_0x366cc7['id'])return;let {unitId:_0x556a3d,tableId:_0x4679e0,field:_0x246b1e,index:_0x462adf,viewIndexes:_0x2c6c85}=_0x1df041['params'],_0x47b34d=this[_0xdc8ae9(0x241)](_0x556a3d);if(!_0x47b34d)return;let _0xbbeb2d=_0x47b34d[_0xdc8ae9(0x21c)](_0x4679e0);if(!_0xbbeb2d)return;let _0x4f7d70={'base':_0x47b34d,'table':_0xbbeb2d,'field':_0x246b1e,'index':_0x462adf,'viewIndexes':_0x2c6c85};this['fireEvent'](this[_0xdc8ae9(0x24f)][_0xdc8ae9(0x325)],_0x4f7d70);}))),this[_0x4d56e3(0x2a1)](this[_0x4d56e3(0x2df)](this[_0x4d56e3(0x24f)][_0x4d56e3(0x20f)],()=>this[_0x4d56e3(0x297)]['onCommandExecuted'](_0x32189e=>{const _0x326502=_0x4d56e3;if(_0x32189e['id']!==_0x56c7de['id']&&_0x32189e['id']!==_0x27fe40['id'])return;let _0x5acbfe=_0x32189e[_0x326502(0x2cd)],{unitId:_0x48d7e8,tableId:_0x173ac0}=_0x5acbfe,_0x4d2380=_0x5acbfe[_0x326502(0x23c)]??[_0x5acbfe[_0x326502(0x26d)]],_0x3a7518=this['getBase'](_0x48d7e8);if(!_0x3a7518)return;let _0x24a0bd=_0x3a7518[_0x326502(0x21c)](_0x173ac0);if(!_0x24a0bd)return;let _0x7c3ca1={'base':_0x3a7518,'table':_0x24a0bd,'records':_0x4d2380};this[_0x326502(0x26c)](this[_0x326502(0x24f)][_0x326502(0x20f)],_0x7c3ca1);}))),this['disposeWithMe'](this[_0x4d56e3(0x2df)](this[_0x4d56e3(0x24f)]['BaseTableViewCreated'],()=>this[_0x4d56e3(0x297)][_0x4d56e3(0x2f6)](_0x4c23db=>{const _0x5752f2=_0x4d56e3;if(_0x4c23db['id']!==_0x56d066['id'])return;let {unitId:_0x50fbe6,tableId:_0x45ab6b,view:_0x4706ce,index:_0x2b38ac}=_0x4c23db[_0x5752f2(0x2cd)],_0x5650c8=this[_0x5752f2(0x241)](_0x50fbe6);if(!_0x5650c8)return;let _0x294b2a=_0x5650c8[_0x5752f2(0x21c)](_0x45ab6b);if(!_0x294b2a)return;let _0x112d72={'base':_0x5650c8,'table':_0x294b2a,'view':_0x4706ce,'index':_0x2b38ac};this['fireEvent'](this[_0x5752f2(0x24f)][_0x5752f2(0x27f)],_0x112d72);}))),this[_0x4d56e3(0x2a1)](this[_0x4d56e3(0x2df)](this[_0x4d56e3(0x24f)]['BaseTableCellValueChanged'],()=>this[_0x4d56e3(0x297)][_0x4d56e3(0x2f6)](_0x39a0d1=>{const _0xa454e5=_0x4d56e3;if(_0x39a0d1['id']!==_0x1b302a['id'])return;let {unitId:_0xb9f56a,tableId:_0xd39373,recordId:_0x2f174d,fieldId:_0x2ebff4,value:_0x3f495c}=_0x39a0d1[_0xa454e5(0x2cd)],_0x37bcc1=this[_0xa454e5(0x241)](_0xb9f56a);if(!_0x37bcc1)return;let _0x2fef77=_0x37bcc1[_0xa454e5(0x21c)](_0xd39373);if(!_0x2fef77)return;let _0x54fce5=_0x2fef77[_0xa454e5(0x313)](_0x2ebff4);if(!_0x54fce5)return;let _0x110e24=_0x2fef77[_0xa454e5(0x2d3)](_0x2f174d);if(!_0x110e24)return;let _0x37442c={'base':_0x37bcc1,'table':_0x2fef77,'field':_0x54fce5,'record':_0x110e24,'value':_0x3f495c};this[_0xa454e5(0x26c)](this[_0xa454e5(0x24f)][_0xa454e5(0x2bb)],_0x37442c);})));}[_0x2437d5(0x204)](){const _0x55312e=_0x2437d5;this[_0x55312e(0x2a1)](this[_0x55312e(0x2df)](this[_0x55312e(0x24f)][_0x55312e(0x28f)],()=>this[_0x55312e(0x297)][_0x55312e(0x30e)](_0x4b9c39=>{const _0x4a3d6c=_0x55312e;if(Q(_0x4b9c39,_0x226aa6)){let {unitId:_0x166ea2,tableId:_0x2f9fc7,patches:_0x5b0ea8,source:_0x4c39b9=_0x314bee['UI']}=_0x4b9c39[_0x4a3d6c(0x2cd)],_0x4297ca=this[_0x4a3d6c(0x261)](_0x166ea2,_0x2f9fc7);if(!_0x4297ca)return;this[_0x4a3d6c(0x2aa)](_0x4297ca[_0x4a3d6c(0x275)],_0x4297ca[_0x4a3d6c(0x246)],_0x4eb78a(_0x4297ca[_0x4a3d6c(0x246)][_0x4a3d6c(0x298)](),_0x5b0ea8),_0x4c39b9);return;}if(Q(_0x4b9c39,_0x3cc9ba)){let {unitId:_0x3ca31c,tableId:_0x42e455,patches:_0x1fe1bb,source:_0xd551db=_0x314bee['UI']}=_0x4b9c39[_0x4a3d6c(0x2cd)],_0xcb07ff=this[_0x4a3d6c(0x261)](_0x3ca31c,_0x42e455);if(!_0xcb07ff)return;let _0xb72890=_0xcb07ff['table']['getTable']();this[_0x4a3d6c(0x2aa)](_0xcb07ff['base'],_0xcb07ff[_0x4a3d6c(0x246)],_0x4eb78a(_0xb72890,_0x38c8b5(_0xb72890,_0x1fe1bb)),_0xd551db);return;}if(Q(_0x4b9c39,_0x56c7de)){let _0x5dfd5f=_0x4b9c39[_0x4a3d6c(0x2cd)],_0x204098=this[_0x4a3d6c(0x261)](_0x5dfd5f[_0x4a3d6c(0x254)],_0x5dfd5f['tableId']);if(!_0x204098)return;this[_0x4a3d6c(0x2aa)](_0x204098[_0x4a3d6c(0x275)],_0x204098[_0x4a3d6c(0x246)],_0x7b8b9c(_0x204098[_0x4a3d6c(0x246)][_0x4a3d6c(0x298)](),[_0x5dfd5f[_0x4a3d6c(0x26d)]]),_0x5dfd5f[_0x4a3d6c(0x2ef)]??_0x314bee['UI']);return;}if(Q(_0x4b9c39,_0x27fe40)){let _0x27facc=_0x4b9c39[_0x4a3d6c(0x2cd)],_0x2a655d=this[_0x4a3d6c(0x261)](_0x27facc[_0x4a3d6c(0x254)],_0x27facc[_0x4a3d6c(0x312)]);if(!_0x2a655d)return;this[_0x4a3d6c(0x2aa)](_0x2a655d[_0x4a3d6c(0x275)],_0x2a655d[_0x4a3d6c(0x246)],_0x7b8b9c(_0x2a655d[_0x4a3d6c(0x246)][_0x4a3d6c(0x298)](),_0x27facc[_0x4a3d6c(0x23c)]),_0x27facc[_0x4a3d6c(0x2ef)]??_0x314bee['UI']);return;}if(Q(_0x4b9c39,_0x22ec88)){let _0x2d2554=_0x4b9c39[_0x4a3d6c(0x2cd)],_0x42faaf=this['_getHierarchyEventContext'](_0x2d2554['unitId'],_0x2d2554[_0x4a3d6c(0x312)]);if(!_0x42faaf)return;this['_fireBeforeHierarchyChange'](_0x42faaf['base'],_0x42faaf[_0x4a3d6c(0x246)],_0x7b8b9c(_0x42faaf[_0x4a3d6c(0x246)][_0x4a3d6c(0x298)](),[_0x2d2554[_0x4a3d6c(0x26d)]]),_0x2d2554[_0x4a3d6c(0x2ef)]??_0x314bee['UI']);return;}if(Q(_0x4b9c39,_0x5314b7)){let _0x55fa44=_0x4b9c39[_0x4a3d6c(0x2cd)],_0x250695=this['_getHierarchyEventContext'](_0x55fa44[_0x4a3d6c(0x254)],_0x55fa44[_0x4a3d6c(0x312)]);if(!_0x250695)return;let _0x3d43a8=_0x250695[_0x4a3d6c(0x246)][_0x4a3d6c(0x298)](),_0x10d868=_0x55fa44['fieldId']??_0x28b4f1(_0x3d43a8),_0x5b3549=_0x5ea354(_0x3d43a8,_0x10d868)[_0x4a3d6c(0x1fc)][_0x4a3d6c(0x2a5)](_0x55fa44[_0x4a3d6c(0x2e4)])??null;this['_fireBeforeHierarchyChange'](_0x250695[_0x4a3d6c(0x275)],_0x250695[_0x4a3d6c(0x246)],[{'tableId':_0x55fa44[_0x4a3d6c(0x312)],'fieldId':_0x10d868,'recordId':_0x55fa44[_0x4a3d6c(0x2e4)],'oldParentRecordId':_0x5b3549,'parentRecordId':_0x55fa44['parentRecordId']}],_0x55fa44[_0x4a3d6c(0x2ef)]??_0x314bee['UI']);return;}if(Q(_0x4b9c39,_0x331bff)){let _0x2ccf6d=_0x4b9c39['params'],_0x7f6de4=this['_getHierarchyEventContext'](_0x2ccf6d[_0x4a3d6c(0x254)],_0x2ccf6d[_0x4a3d6c(0x312)]);if(!_0x7f6de4)return;let _0x4a33b7=_0x2ccf6d['fieldId']??_0x28b4f1(_0x7f6de4[_0x4a3d6c(0x246)][_0x4a3d6c(0x298)]());this['_fireBeforeHierarchyChange'](_0x7f6de4[_0x4a3d6c(0x275)],_0x7f6de4[_0x4a3d6c(0x246)],[{'tableId':_0x2ccf6d[_0x4a3d6c(0x312)],'fieldId':_0x4a33b7,'recordId':_0x2ccf6d[_0x4a3d6c(0x26d)]['id'],'oldParentRecordId':null,'parentRecordId':_0x2ccf6d[_0x4a3d6c(0x2f0)]}],_0x2ccf6d[_0x4a3d6c(0x2ef)]??_0x314bee['UI']);return;}if(Q(_0x4b9c39,_0x20f420)){let _0x4a5b32=_0x4b9c39[_0x4a3d6c(0x2cd)],_0x51cdf8=this['_getHierarchyEventContext'](_0x4a5b32[_0x4a3d6c(0x254)],_0x4a5b32[_0x4a3d6c(0x312)]);if(!_0x51cdf8)return;this['_fireBeforeHierarchyChange'](_0x51cdf8['base'],_0x51cdf8['table'],_0x534b36(_0x51cdf8[_0x4a3d6c(0x246)][_0x4a3d6c(0x298)](),[_0x4a5b32[_0x4a3d6c(0x2e4)]]),_0x4a5b32[_0x4a3d6c(0x2ef)]??_0x314bee['UI']);return;}if(Q(_0x4b9c39,_0x4b1f8d)){let _0x3e668d=_0x4b9c39[_0x4a3d6c(0x2cd)],_0x29633a=this[_0x4a3d6c(0x261)](_0x3e668d[_0x4a3d6c(0x254)],_0x3e668d[_0x4a3d6c(0x312)]);if(!_0x29633a)return;this[_0x4a3d6c(0x2aa)](_0x29633a[_0x4a3d6c(0x275)],_0x29633a['table'],_0x534b36(_0x29633a[_0x4a3d6c(0x246)][_0x4a3d6c(0x298)](),_0x3e668d['recordIds']),_0x3e668d[_0x4a3d6c(0x2ef)]??_0x314bee['UI']);return;}if(!Q(_0x4b9c39,_0x1b302a))return;let _0x388848=_0x4b9c39[_0x4a3d6c(0x2cd)],_0x312754=this['_getHierarchyEventContext'](_0x388848[_0x4a3d6c(0x254)],_0x388848[_0x4a3d6c(0x312)]);if(!_0x312754)return;let _0x51077a=_0x312754[_0x4a3d6c(0x246)][_0x4a3d6c(0x298)]();if(!_0x23130b(_0x51077a)[_0x4a3d6c(0x2c6)](_0x388848[_0x4a3d6c(0x304)]))return;let _0x1fad46=_0x5ea354(_0x51077a,_0x388848[_0x4a3d6c(0x304)])['parentByRecordId'][_0x4a3d6c(0x2a5)](_0x388848[_0x4a3d6c(0x2e4)])??null,_0x1cdfdf=_0xd9ece7(_0x388848[_0x4a3d6c(0x203)])[0x0]??null;_0x1fad46!==_0x1cdfdf&&this[_0x4a3d6c(0x2aa)](_0x312754[_0x4a3d6c(0x275)],_0x312754[_0x4a3d6c(0x246)],[{'tableId':_0x388848[_0x4a3d6c(0x312)],'fieldId':_0x388848[_0x4a3d6c(0x304)],'recordId':_0x388848[_0x4a3d6c(0x2e4)],'oldParentRecordId':_0x1fad46,'parentRecordId':_0x1cdfdf}],_0x388848['source']??_0x314bee['UI']);}))),this['disposeWithMe'](this[_0x55312e(0x2df)](this['Event'][_0x55312e(0x329)],()=>this['_commandService'][_0x55312e(0x30e)](_0x1f9dbd=>{const _0x3698dc=_0x55312e;if(_0x1f9dbd['id']!==_0x550a64['id'])return;let {unitId:_0x4308e1,table:_0x46b0ec,index:_0x2eb293}=_0x1f9dbd[_0x3698dc(0x2cd)],_0x2c4f5c=this['getBase'](_0x4308e1);if(!_0x2c4f5c)return;let _0x4f0630={'base':_0x2c4f5c,'table':_0x46b0ec,'index':_0x2eb293};if(this['fireEvent'](this[_0x3698dc(0x24f)][_0x3698dc(0x329)],_0x4f0630),_0x4f0630[_0x3698dc(0x283)])throw new _0x48a411();}))),this['disposeWithMe'](this[_0x55312e(0x2df)](this[_0x55312e(0x24f)][_0x55312e(0x2d1)],()=>this['_commandService'][_0x55312e(0x30e)](_0x3d335b=>{const _0x1cd219=_0x55312e;if(_0x3d335b['id']!==_0x366cc7['id'])return;let {unitId:_0x56efdb,tableId:_0x11a1ae,field:_0x52e25d,index:_0x171562,viewIndexes:_0x42c731}=_0x3d335b[_0x1cd219(0x2cd)],_0x117b8e=this[_0x1cd219(0x241)](_0x56efdb);if(!_0x117b8e)return;let _0x1d09a7=_0x117b8e[_0x1cd219(0x21c)](_0x11a1ae);if(!_0x1d09a7)return;let _0x4fd22e={'base':_0x117b8e,'table':_0x1d09a7,'field':_0x52e25d,'index':_0x171562,'viewIndexes':_0x42c731};if(this[_0x1cd219(0x26c)](this[_0x1cd219(0x24f)][_0x1cd219(0x2d1)],_0x4fd22e),_0x4fd22e[_0x1cd219(0x283)])throw new _0x48a411();}))),this[_0x55312e(0x2a1)](this[_0x55312e(0x2df)](this[_0x55312e(0x24f)][_0x55312e(0x321)],()=>this['_commandService'][_0x55312e(0x30e)](_0x428b22=>{const _0x2488e8=_0x55312e;if(_0x428b22['id']!==_0x56c7de['id']&&_0x428b22['id']!==_0x27fe40['id'])return;let _0x5e3a20=_0x428b22[_0x2488e8(0x2cd)],{unitId:_0x4dc8dc,tableId:_0x49b49e}=_0x5e3a20,_0x3864b2=_0x5e3a20[_0x2488e8(0x23c)]??[_0x5e3a20[_0x2488e8(0x26d)]],_0x4cde5f=this['getBase'](_0x4dc8dc);if(!_0x4cde5f)return;let _0xa6378f=_0x4cde5f['getTableById'](_0x49b49e);if(!_0xa6378f)return;let _0x4fd1d6={'base':_0x4cde5f,'table':_0xa6378f,'records':_0x3864b2};if(this[_0x2488e8(0x26c)](this['Event'][_0x2488e8(0x321)],_0x4fd1d6),_0x4fd1d6['cancel'])throw new _0x48a411();}))),this['disposeWithMe'](this[_0x55312e(0x2df)](this[_0x55312e(0x24f)]['BeforeBaseTableViewCreate'],()=>this[_0x55312e(0x297)][_0x55312e(0x30e)](_0x2fac4c=>{const _0x1c1350=_0x55312e;if(_0x2fac4c['id']!==_0x56d066['id'])return;let {unitId:_0x13d3f3,tableId:_0x5453a4,view:_0x5eaeb3,index:_0x5a4441}=_0x2fac4c[_0x1c1350(0x2cd)],_0x3251eb=this[_0x1c1350(0x241)](_0x13d3f3);if(!_0x3251eb)return;let _0x12691b=_0x3251eb['getTableById'](_0x5453a4);if(!_0x12691b)return;let _0x175e46={'base':_0x3251eb,'table':_0x12691b,'view':_0x5eaeb3,'index':_0x5a4441};if(this['fireEvent'](this[_0x1c1350(0x24f)][_0x1c1350(0x2b7)],_0x175e46),_0x175e46[_0x1c1350(0x283)])throw new _0x48a411();}))),this['disposeWithMe'](this[_0x55312e(0x2df)](this[_0x55312e(0x24f)]['BeforeBaseTableCellValueChange'],()=>this[_0x55312e(0x297)][_0x55312e(0x30e)](_0x7960cc=>{const _0x37ba51=_0x55312e;if(_0x7960cc['id']!==_0x1b302a['id'])return;let {unitId:_0x574c60,tableId:_0x5d1096,recordId:_0x2383c8,fieldId:_0x330b31,value:_0x29e094}=_0x7960cc[_0x37ba51(0x2cd)],_0x5ba1d2=this[_0x37ba51(0x241)](_0x574c60);if(!_0x5ba1d2)return;let _0x1819fc=_0x5ba1d2[_0x37ba51(0x21c)](_0x5d1096);if(!_0x1819fc)return;let _0x51e998=_0x1819fc['getFieldById'](_0x330b31);if(!_0x51e998)return;let _0x366228=_0x1819fc[_0x37ba51(0x2d3)](_0x2383c8);if(!_0x366228)return;let _0x5dbbee={'base':_0x5ba1d2,'table':_0x1819fc,'field':_0x51e998,'record':_0x366228,'value':_0x29e094};if(this[_0x37ba51(0x26c)](this['Event'][_0x37ba51(0x1ed)],_0x5dbbee),_0x5dbbee[_0x37ba51(0x283)])throw new _0x48a411();})));}[_0x2437d5(0x261)](_0x122874,_0x3ae4b4){const _0x555535=_0x2437d5;let _0x81c51c=this['getBase'](_0x122874),_0x339f03=_0x81c51c==null?void 0x0:_0x81c51c[_0x555535(0x21c)](_0x3ae4b4);return _0x81c51c&&_0x339f03?{'base':_0x81c51c,'table':_0x339f03}:null;}['_fireBeforeHierarchyChange'](_0x1e6eed,_0xa4816b,_0x31d5d4,_0x2b6528){const _0x2739c3=_0x2437d5;if(!_0x31d5d4[_0x2739c3(0x220)])return;let _0xb27803={'base':_0x1e6eed,'table':_0xa4816b,'changes':_0x31d5d4,'source':_0x2b6528};if(this[_0x2739c3(0x26c)](this['Event'][_0x2739c3(0x28f)],_0xb27803),_0xb27803['cancel'])throw new _0x48a411();}};function Q(_0x8eac3b,_0xb3506e){const _0x284aa5=_0x2437d5;return _0x8eac3b['id']===_0xb3506e['id']&&_0x8eac3b[_0x284aa5(0x2cd)]!==void 0x0;}_0x9a9f06['extend'](st);var ct=class extends _0xa0491f{get[_0x2437d5(0x26f)](){return _0x4ffd63;}get['BaseFilterConjunction'](){return _0x32065f;}get['BaseFilterOperator'](){return _0x1fe8e4;}get['BaseFieldKeyEnum'](){return Ke;}get['BaseViewType'](){return _0x206a78;}get[_0x2437d5(0x2b3)](){return _0x150b55;}get[_0x2437d5(0x30b)](){return _0x1b4b6a;}get['BaseConditionalDateMode'](){return _0x59106c;}get[_0x2437d5(0x221)](){return _0x109e0b;}get[_0x2437d5(0x22a)](){return _0x314bee;}get[_0x2437d5(0x288)](){return _0x104d26;}get[_0x2437d5(0x24e)](){return _0x443457;}get[_0x2437d5(0x2ff)](){return _0xb99381;}};_0xa0491f[_0x2437d5(0x2e3)](ct);var $=class extends _0x230a28{get[_0x2437d5(0x2da)](){const _0x2cc5ed=_0x2437d5;return _0x2cc5ed(0x2da);}get['BeforeBaseTableCreate'](){return'BeforeBaseTableCreate';}get[_0x2437d5(0x325)](){const _0x277f16=_0x2437d5;return _0x277f16(0x325);}get[_0x2437d5(0x2d1)](){const _0x2ed2af=_0x2437d5;return _0x2ed2af(0x2d1);}get[_0x2437d5(0x20f)](){return'BaseTableRecordCreated';}get[_0x2437d5(0x321)](){const _0x345911=_0x2437d5;return _0x345911(0x321);}get[_0x2437d5(0x27f)](){const _0x12e54b=_0x2437d5;return _0x12e54b(0x27f);}get[_0x2437d5(0x2b7)](){const _0x5dfecb=_0x2437d5;return _0x5dfecb(0x2b7);}get[_0x2437d5(0x2bb)](){return'BaseTableCellValueChanged';}get[_0x2437d5(0x1ed)](){const _0x5a087c=_0x2437d5;return _0x5a087c(0x1ed);}get[_0x2437d5(0x287)](){const _0x33661e=_0x2437d5;return _0x33661e(0x287);}get[_0x2437d5(0x28f)](){const _0x4ab3d4=_0x2437d5;return _0x4ab3d4(0x28f);}};_0x230a28[_0x2437d5(0x2e3)]($);export{Ke as BaseFieldKeyEnum,Z as FBase,X as FBaseTable,B as FBaseTableField,K as FBaseTableRange,J as FBaseTableRecord,Y as FBaseTableView,$ as FBasesEventNameMixin,Je as resolveBaseFieldKey,H as resolveBaseFieldValues};
|