@univerjs-pro/bases 1.0.3 → 1.0.4
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
|
-
|
|
1
|
+
const _0x15e14e=_0x2d81;(function(_0x1788e7,_0x584fe8){const _0x43395e=_0x2d81,_0x225502=_0x1788e7();while(!![]){try{const _0x3e5618=-parseInt(_0x43395e(0x10b))/0x1+-parseInt(_0x43395e(0x115))/0x2*(-parseInt(_0x43395e(0x114))/0x3)+parseInt(_0x43395e(0x11e))/0x4+-parseInt(_0x43395e(0x117))/0x5+parseInt(_0x43395e(0x102))/0x6+-parseInt(_0x43395e(0x10e))/0x7*(-parseInt(_0x43395e(0x118))/0x8)+parseInt(_0x43395e(0x10f))/0x9*(-parseInt(_0x43395e(0x10a))/0xa);if(_0x3e5618===_0x584fe8)break;else _0x225502['push'](_0x225502['shift']());}catch(_0x41231a){_0x225502['push'](_0x225502['shift']());}}}(_0xc109,0x53130));function _0x2d81(_0x49465e,_0x25d2bd){_0x49465e=_0x49465e-0x102;const _0xc109c6=_0xc109();let _0x2d8103=_0xc109c6[_0x49465e];return _0x2d8103;}function _0xc109(){const _0x1ff9a4=['建立人','更新儲存格','建立記錄','欄位類型無效','更新人','1786516oIZguO','3829716gTYNBf','電子郵件','關聯記錄','行事曆需要日期欄位','刪除欄位','甘特圖','電話號碼','輸入內容','65470JMqIUI','376811KzMDSA','看板需要可分組欄位','記錄\x20ID','155813fhRbOR','459nhcnSX','儲存格值無效','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','欄位標題不能為空','刪除記錄','4107YEtGEQ','426XJDkua','exports','1738955HNpPKa','8aVbIyU'];_0xc109=function(){return _0x1ff9a4;};return _0xc109();}const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':'核取方塊','link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x15e14e(0x108),'email':_0x15e14e(0x103),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':_0x15e14e(0x104),'recordId':_0x15e14e(0x10d),'createdBy':_0x15e14e(0x119),'updatedBy':_0x15e14e(0x11d),'createdAt':'建立時間','updatedAt':'更新時間','summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x15e14e(0x109),'linkPlaceholder':_0x15e14e(0x111)},'viewType':{'grid':'表格','kanban':'看板','calendar':'行事曆','gantt':_0x15e14e(0x107),'gallery':'圖庫'},'error':{'fieldNameRequired':_0x15e14e(0x112),'invalidFieldType':_0x15e14e(0x11c),'invalidCellValue':_0x15e14e(0x110),'invalidKanbanGroupField':_0x15e14e(0x10c),'invalidCalendarDateField':_0x15e14e(0x105),'invalidGanttDateField':'甘特圖檢視需要開始和結束日期欄位'},'command':{'updateCell':_0x15e14e(0x11a),'createField':'建立欄位','deleteField':_0x15e14e(0x106),'createRecord':_0x15e14e(0x11b),'deleteRecord':_0x15e14e(0x113),'updateViewConfig':'更新檢視設定'}}};module[_0x15e14e(0x116)]=e;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x16c455=_0x459a;(function(_0x38be99,_0x2e15c4){const _0x53268b=_0x459a,_0x121190=_0x38be99();while(!![]){try{const _0x28fa2d=parseInt(_0x53268b(0xbb))/0x1*(parseInt(_0x53268b(0xe6))/0x2)+-parseInt(_0x53268b(0x1be))/0x3*(-parseInt(_0x53268b(0x201))/0x4)+parseInt(_0x53268b(0x17f))/0x5*(parseInt(_0x53268b(0x1e8))/0x6)+-parseInt(_0x53268b(0x1ca))/0x7+-parseInt(_0x53268b(0x150))/0x8+parseInt(_0x53268b(0x17c))/0x9+-parseInt(_0x53268b(0x153))/0xa*(parseInt(_0x53268b(0x143))/0xb);if(_0x28fa2d===_0x2e15c4)break;else _0x121190['push'](_0x121190['shift']());}catch(_0xbc0fd0){_0x121190['push'](_0x121190['shift']());}}}(_0x501e,0x683ed));import{ApplyBaseJson1Mutation as _0x2ad321,BASE_TABLE_NAME_REQUIREMENTS as _0x229298,BaseConditionalColorRuleUpdateType as _0x14071a,BaseEventSource as _0x55bebd,BaseHierarchyErrorCode as _0x34d13a,BatchCreateBaseRecordsCommand as _0x3ad558,BatchDeleteBaseRecordsCommand as _0x4d8eab,ChangeBaseFieldTypeCommand as _0x3da607,CreateBaseChildRecordCommand as _0x2e5ba5,CreateBaseFieldCommand as _0x3de3f5,CreateBaseRecordCommand as _0x3392fe,CreateBaseTableCommand as _0x5c901d,CreateBaseViewCommand as _0x4a240d,DeleteBaseFieldCommand as _0x5ddbec,DeleteBaseRecordCommand as _0x2a07c2,DeleteBaseTableCommand as _0x971b27,DeleteBaseViewCommand as _0x548359,DuplicateBaseRecordCommand as _0x12761d,IBaseProjectionService as _0x499ad2,MoveBaseFieldCommand as _0x1d8b98,MoveBaseHierarchyRecordCommand as _0x1c837a,MoveBaseViewCommand as _0x3abd85,RenameBaseTableCommand as _0x3dc70f,RenameBaseViewCommand as _0x43a829,SetBaseNameCommand as _0x841eca,SetBasePermissionCommand as _0x276001,SetBasePermissionsCommand as _0x246d81,SetBaseRangeValuesCommand as _0x5ac327,SetBaseRecordValuesCommand as _0xe2fa79,SetBaseTableHierarchyFieldCommand as _0x331078,SetBaseViewFieldOrderCommand as _0x1a9899,SetBaseViewFieldVisibleCommand as _0x29d7b1,SetBaseViewFieldWidthCommand as _0x10caef,SetBaseViewFilterCommand as _0x537303,SetBaseViewGroupCommand as _0x4e34d1,SetBaseViewSortCommand as _0x2d2d2c,UpdateBaseCellCommand as _0x56896a,UpdateBaseFieldCommand as _0x51b342,UpdateBaseRecordOrderCommand as _0x14f095,UpdateBaseViewConditionalColorRulesCommand as _0x445422,UpdateBaseViewConfigCommand as _0x5996eb,ValidateBaseFormulaCommand as _0x5cd29d,buildBaseHierarchyIndex as _0x1a3563,canEditBaseTargets as _0x588025,copyBaseTableSnapshot as _0x35aced,createUniqueBaseTableName as _0x9242a1,ensureBaseTableCellLayout as _0x5d9764,getActiveBaseHierarchyFieldIds as _0x33c8d6,getBaseCellValue as _0x5686ac,getBaseFieldPermissionObjectId as _0x58d304,getBaseFormulaTableName as _0x334dca,getBaseHierarchyDeletePromotions as _0xf2e815,getBasePermissionValue as _0x14f175,getBaseRecordPermissionObjectId as _0xa951c,getBaseTablePermissionObjectId as _0x178fd1,getBaseViewPermissionObjectId as _0x53e240,getRecordLinkFieldConfig as _0x15bd67,matchesBaseCondition as _0x1c8da0,parseRecordLinkIds as _0x335852,resolveBaseHierarchyFieldId as _0x4e6087,resolveBaseRangeHierarchyPatches as _0x5f2520,searchBaseTable as _0x3ed99e,serializeRecordLinkIds as _0x392c5e,validateBaseHierarchyRecordCreations as _0x21de02,validateBaseHierarchyRecordPatches as _0x25cefd,validateBaseTableName as _0x2628b6,validateRecordLinkValue as _0x2e4386}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x45a674,BaseConditionalColorOperator as _0x16f428,BaseConditionalColorTarget as _0x58b6cb,BaseConditionalDateMode as _0x1ee14c,BaseFieldType as _0x5c585e,BaseFilterConjunction as _0xf11f7f,BaseFilterOperator as _0x48d24a,BaseHierarchyInvalidReason as _0x59ccb4,BaseRecordLinkRole as _0x135176,BaseSortDirection as _0x1fbd79,BaseViewType as _0x1eb8c0,CanceledError as _0x3a850a,ICommandService as _0x18d666,IPermissionService as _0x5e35b8,IResourceLoaderService as _0x4e24c1,ImageSourceType as _0x354b72,Inject as _0x210e70,Injector as _0x291a51,Tools as _0x49e7b0,UniverInstanceType as _0x251beb,createDefaultBaseTableSnapshot as _0x440368,generateRandomId as _0x2fbf07}from'@univerjs/core';import*as _0x287fc3 from'@univerjs/core/facade';import{FBaseInitialable as _0x36d8f1,FEnum as _0x2fc644,FEventName as _0x35d271,FUniver as _0x292e04}from'@univerjs/core/facade';import{UnitAction as _0x538ba4}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x3fc287}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x3e7695,_0xa228c,_0xc1aac9){const _0x2f49a6=_0x459a;this[_0x2f49a6(0x197)]=_0x3e7695,this[_0x2f49a6(0x106)]=_0xa228c,this[_0x2f49a6(0x1a4)]=_0xc1aac9;}async[_0x16c455(0x133)](_0x4fe634){const _0x4602f9=_0x16c455;return this['_commandService'][_0x4602f9(0xf7)](_0x246d81['id'],{'unitId':this[_0x4602f9(0x197)],'changes':_0x4fe634});}async[_0x16c455(0x1fc)](_0x11fd23,_0x48d972){const _0x334a40=_0x16c455;await this[_0x334a40(0x106)]['executeCommand'](_0x276001['id'],{'unitId':this[_0x334a40(0x197)],'objectId':this[_0x334a40(0x197)],'action':_0x11fd23,'value':_0x48d972});}['getPoint'](_0x5d476b){const _0x531b1e=_0x16c455;return _0x14f175(this[_0x531b1e(0x1a4)],this[_0x531b1e(0x197)],this[_0x531b1e(0x197)],_0x5d476b);}async[_0x16c455(0x194)](_0x35a61f=!0x0){const _0x594daf=_0x16c455;await this[_0x594daf(0x106)]['executeCommand'](_0x276001['id'],{'unitId':this[_0x594daf(0x197)],'objectId':this[_0x594daf(0x197)],'action':_0x538ba4['Edit'],'value':_0x35a61f});}async[_0x16c455(0x19c)](){const _0x210bc9=_0x16c455;await this[_0x210bc9(0x106)][_0x210bc9(0xf7)](_0x276001['id'],{'unitId':this[_0x210bc9(0x197)],'objectId':this[_0x210bc9(0x197)],'action':_0x538ba4['Edit'],'value':!0x1});}['canEdit'](){const _0x34e53d=_0x16c455;return _0x14f175(this[_0x34e53d(0x1a4)],this[_0x34e53d(0x197)],this[_0x34e53d(0x197)],_0x538ba4[_0x34e53d(0xe7)]);}},L=class{constructor(_0x390513,_0x181c14,_0x29dd6e,_0x5e33ef,_0x1e3aac){const _0x316e79=_0x16c455;this['_unitId']=_0x390513,this[_0x316e79(0x1ed)]=_0x181c14,this[_0x316e79(0x151)]=_0x29dd6e,this['_commandService']=_0x5e33ef,this['_permissionService']=_0x1e3aac;}async['setEditable'](_0x3f9178=!0x0){const _0x263543=_0x16c455;await this['_commandService'][_0x263543(0xf7)](_0x276001['id'],{'unitId':this[_0x263543(0x197)],'objectId':this['_objectId'],'action':_0x538ba4[_0x263543(0xe7)],'value':_0x3f9178});}async['setReadOnly'](){const _0x227171=_0x16c455;await this[_0x227171(0x106)]['executeCommand'](_0x276001['id'],{'unitId':this['_unitId'],'objectId':this['_objectId'],'action':_0x538ba4[_0x227171(0xe7)],'value':!0x1});}[_0x16c455(0xb8)](){const _0x418ee2=_0x16c455;return _0x588025(this['_permissionService'],this[_0x418ee2(0x197)],[...this[_0x418ee2(0x151)],this[_0x418ee2(0x1ed)]]);}};function R(_0x4a0414,_0x11de5d){return function(_0xac3766,_0x49feaf){_0x11de5d(_0xac3766,_0x49feaf,_0x4a0414);};}function z(_0x33bd65,_0x531777,_0x1871aa,_0x590a7d){const _0x60ada2=_0x16c455;var _0x130c9e=arguments[_0x60ada2(0x166)],_0x1c6076=_0x130c9e<0x3?_0x531777:_0x590a7d===null?_0x590a7d=Object[_0x60ada2(0x1fa)](_0x531777,_0x1871aa):_0x590a7d,_0x518a2e;if(typeof Reflect==_0x60ada2(0xb9)&&typeof Reflect['decorate']==_0x60ada2(0x1d1))_0x1c6076=Reflect['decorate'](_0x33bd65,_0x531777,_0x1871aa,_0x590a7d);else{for(var _0x2e5228=_0x33bd65['length']-0x1;_0x2e5228>=0x0;_0x2e5228--)(_0x518a2e=_0x33bd65[_0x2e5228])&&(_0x1c6076=(_0x130c9e<0x3?_0x518a2e(_0x1c6076):_0x130c9e>0x3?_0x518a2e(_0x531777,_0x1871aa,_0x1c6076):_0x518a2e(_0x531777,_0x1871aa))||_0x1c6076);}return _0x130c9e>0x3&&_0x1c6076&&Object['defineProperty'](_0x531777,_0x1871aa,_0x1c6076),_0x1c6076;}let B=class{constructor(_0x275c79,_0x101545,_0x49e2db,_0x493969,_0x5abb76){const _0x98a9c2=_0x16c455;this[_0x98a9c2(0xf4)]=_0x275c79,this[_0x98a9c2(0x140)]=_0x101545,this[_0x98a9c2(0x149)]=_0x49e2db,this[_0x98a9c2(0x106)]=_0x493969,this[_0x98a9c2(0x1a4)]=_0x5abb76;}[_0x16c455(0x207)](){const _0x20512a=_0x16c455;return this[_0x20512a(0x149)];}[_0x16c455(0x1d9)](){const _0x26be0a=_0x16c455;let _0x3ef35e=this[_0x26be0a(0x140)]['getId']();return new L(this[_0x26be0a(0xf4)][_0x26be0a(0x207)](),_0x58d304(_0x3ef35e,this['_fieldId']),[_0x178fd1(_0x3ef35e)],this[_0x26be0a(0x106)],this[_0x26be0a(0x1a4)]);}['getField'](){const _0x597e14=_0x16c455;return this[_0x597e14(0xe5)]();}['getName'](){const _0x24a708=_0x16c455;return this['_getField']()[_0x24a708(0x103)];}['getType'](){const _0x2120a4=_0x16c455;return this['_getField']()[_0x2120a4(0x14d)];}['getConfig'](){const _0x4f4547=_0x16c455;return this[_0x4f4547(0xe5)]()[_0x4f4547(0x1f3)];}[_0x16c455(0x1cd)](){const _0x83f587=_0x16c455;return this[_0x83f587(0xe5)]()[_0x83f587(0x16a)];}[_0x16c455(0x1e9)](){const _0x342a9b=_0x16c455;return this[_0x342a9b(0xe5)]()['description'];}[_0x16c455(0xc9)](){const _0x55564a=_0x16c455;return!!this['_getField']()[_0x55564a(0xa2)];}[_0x16c455(0xf1)](_0x17d3b8){const _0x5c713b=_0x16c455;return this[_0x5c713b(0x1f0)]({'name':_0x17d3b8});}[_0x16c455(0x1a3)](_0x2a686a,_0x475d55){const _0x580841=_0x16c455;return this[_0x580841(0x1f0)]({'config':_0x2a686a},_0x475d55);}[_0x16c455(0x1a6)](_0x3e8018){const _0x5d6d24=_0x16c455;return this[_0x5d6d24(0x1f0)]({'defaultValue':_0x3e8018});}['update'](_0x248e24,_0x5e90e7){const _0x4bee29=_0x16c455;let _0x1541c7=this[_0x4bee29(0xe5)]()[_0x4bee29(0x14d)];return(_0x248e24['type']??_0x1541c7)===_0x5c585e[_0x4bee29(0x1d2)]&&(Object[_0x4bee29(0xcb)]['hasOwnProperty'][_0x4bee29(0x136)](_0x248e24,_0x4bee29(0x1f3))||_0x248e24[_0x4bee29(0x14d)]===_0x5c585e['Formula'])&&!this[_0x4bee29(0x16b)](_0x5e90e7)?!0x1:this[_0x4bee29(0x106)][_0x4bee29(0x178)](_0x51b342['id'],{'unitId':this['_base'][_0x4bee29(0x207)](),'tableId':this[_0x4bee29(0x140)][_0x4bee29(0x207)](),'fieldId':this[_0x4bee29(0x149)],'patch':_0x248e24});}[_0x16c455(0x1e2)](_0x4f4c0c,_0x42ef2a={},_0x39d81a){const _0x26b1d7=_0x16c455;return _0x4f4c0c===_0x5c585e[_0x26b1d7(0x1d2)]&&!this['_writeFormulaExternalReferences'](_0x39d81a)?!0x1:this['_commandService']['syncExecuteCommand'](_0x3da607['id'],{'unitId':this[_0x26b1d7(0xf4)][_0x26b1d7(0x207)](),'tableId':this[_0x26b1d7(0x140)][_0x26b1d7(0x207)](),'fieldId':this[_0x26b1d7(0x149)],'input':{'type':_0x4f4c0c,'config':_0x42ef2a}});}[_0x16c455(0xcd)](){const _0x3e72f7=_0x16c455;return this[_0x3e72f7(0x106)]['syncExecuteCommand'](_0x5ddbec['id'],{'unitId':this[_0x3e72f7(0xf4)][_0x3e72f7(0x207)](),'tableId':this[_0x3e72f7(0x140)][_0x3e72f7(0x207)](),'fieldId':this[_0x3e72f7(0x149)]});}[_0x16c455(0x19b)](_0x9ac885){const _0x2abcfe=_0x16c455;return this[_0x2abcfe(0x106)][_0x2abcfe(0x178)](_0x1d8b98['id'],{'unitId':this[_0x2abcfe(0xf4)][_0x2abcfe(0x207)](),'tableId':this[_0x2abcfe(0x140)][_0x2abcfe(0x207)](),'fieldId':this['_fieldId'],'target':_0x9ac885});}[_0x16c455(0xe5)](){const _0x3c9a12=_0x16c455;let _0x530b39=this[_0x3c9a12(0x140)][_0x3c9a12(0x147)]()['fields'][this[_0x3c9a12(0x149)]];if(!_0x530b39)throw Error(_0x3c9a12(0xab)+this['_fieldId']+_0x3c9a12(0x1f6));return _0x530b39;}[_0x16c455(0x16b)](_0x1b36a2){const _0x391c8a=_0x16c455;if(!_0x1b36a2||!Array[_0x391c8a(0xea)](_0x1b36a2[_0x391c8a(0x130)]))return console[_0x391c8a(0xeb)](_0x391c8a(0x156)),!0x1;if(_0x1b36a2[_0x391c8a(0x130)][_0x391c8a(0x166)]===0x0)return!0x0;let _0x80a902=this[_0x391c8a(0x106)]['syncExecuteCommand'](_0x3fc287['id'],{'unitId':this[_0x391c8a(0xf4)][_0x391c8a(0x207)](),'references':_0x1b36a2[_0x391c8a(0x130)]});return _0x80a902||console[_0x391c8a(0xeb)](_0x391c8a(0x122)),_0x80a902;}};B=z([R(0x3,_0x18d666),R(0x4,_0x5e35b8)],B);let ot=function(_0x51537b){const _0x282035=_0x16c455;return _0x51537b['Id']='id',_0x51537b[_0x282035(0xb3)]=_0x282035(0x103),_0x51537b[_0x282035(0xc5)]=_0x282035(0x1e5),_0x51537b;}({});function V(_0x32f5d3){const _0x50b549=_0x16c455;return!!(_0x32f5d3&&_0x32f5d3[_0x50b549(0x1bb)]!==!0x0&&_0x32f5d3[_0x50b549(0x14d)]!==_0x5c585e[_0x50b549(0x108)]);}function H(_0x317180,_0xc35f9,_0x292538='id'){const _0x2dc1e7=_0x16c455;if(!_0xc35f9)return{};let _0x3b1a59={};return Object[_0x2dc1e7(0x208)](_0xc35f9)[_0x2dc1e7(0xe2)](([_0x5b158d,_0x4c6255])=>{const _0x343d16=_0x2dc1e7;let _0x14c569=ct(_0x317180,_0x5b158d,_0x292538);_0x3b1a59[_0x14c569]=st(_0x317180[_0x343d16(0x155)][_0x14c569],_0x4c6255);}),_0x3b1a59;}function st(_0x47db89,_0xf0d0d4){const _0x4906aa=_0x16c455;if((_0x47db89==null?void 0x0:_0x47db89[_0x4906aa(0x14d)])!==_0x5c585e[_0x4906aa(0xf3)]||_0xf0d0d4==null)return _0xf0d0d4;if(!Array[_0x4906aa(0xea)](_0xf0d0d4))throw TypeError(_0x4906aa(0x15b)+_0x47db89[_0x4906aa(0x103)]+_0x4906aa(0x1ff));return _0xf0d0d4[_0x4906aa(0x176)]((_0x4c3eaf,_0x265fa4)=>lt(_0x47db89,_0x4c3eaf,_0x265fa4));}function ct(_0x3e2f79,_0x25c0c1,_0x5e5849){const _0x44c143=_0x16c455;if(_0x5e5849==='id'||_0x5e5849===_0x44c143(0x1e5)&&_0x3e2f79[_0x44c143(0x155)][_0x25c0c1])return _0x25c0c1;let _0x4cb1ec=Object['values'](_0x3e2f79['fields'])[_0x44c143(0x159)](_0x413b5d=>_0x413b5d[_0x44c143(0x103)]===_0x25c0c1);if(_0x4cb1ec[_0x44c143(0x166)]===0x1)return _0x4cb1ec[0x0]['id'];throw _0x4cb1ec[_0x44c143(0x166)]>0x1?Error(_0x44c143(0x1a1)+_0x25c0c1):Error(_0x44c143(0x1ef)+_0x25c0c1);}function lt(_0xde8fd8,_0x4a49db,_0x2917aa){const _0xa27884=_0x16c455;let _0x30f83e=_0xa27884(0x1c0)+_0x2917aa+_0xa27884(0xa0)+_0xde8fd8[_0xa27884(0x103)]+'\x22';if(!ft(_0x4a49db))throw TypeError(_0x30f83e+':\x20expected\x20an\x20object.');if(_0xa27884(0x1e1)in _0x4a49db)throw TypeError(_0x30f83e+_0xa27884(0x1c7));if('type'in _0x4a49db)throw TypeError(_0x30f83e+_0xa27884(0x14b));let _0x45de1b=U(_0x4a49db['id'],_0x30f83e,'id'),_0x47bafe=U(_0x4a49db[_0xa27884(0x103)],_0x30f83e,_0xa27884(0x103)),_0x5d0274=U(_0x4a49db[_0xa27884(0x191)],_0x30f83e,_0xa27884(0x191));return{'id':_0x45de1b,'name':_0x47bafe,'source':_0x5d0274,'sourceType':ut(_0x4a49db[_0xa27884(0x1a7)],_0x5d0274,_0x30f83e),...dt(_0x4a49db,_0xa27884(0x195),_0x30f83e),...W(_0x4a49db,'size',_0x30f83e),...W(_0x4a49db,_0xa27884(0x19d),_0x30f83e),...W(_0x4a49db,'height',_0x30f83e),...dt(_0x4a49db,'thumbnail',_0x30f83e)};}function ut(_0x3d28cd,_0x5421db,_0x355980){const _0x1a9147=_0x16c455;if(_0x3d28cd==null)return _0x5421db['startsWith']('data:')?_0x354b72['BASE64']:_0x354b72[_0x1a9147(0x1c8)];if(_0x3d28cd===_0x354b72[_0x1a9147(0x1c8)]||_0x3d28cd===_0x354b72[_0x1a9147(0x16c)]||_0x3d28cd===_0x354b72['BASE64'])return _0x3d28cd;throw TypeError(_0x355980+_0x1a9147(0x1f1));}function U(_0x5caa2c,_0x1f2493,_0xf61f89){const _0x4d1c4e=_0x16c455;if(typeof _0x5caa2c!=_0x4d1c4e(0x1d6)||!_0x5caa2c['trim']())throw TypeError(_0x1f2493+_0x4d1c4e(0xdb)+_0xf61f89+_0x4d1c4e(0x12a));return _0x5caa2c;}function dt(_0x514351,_0x30315f,_0xeb05d1){const _0x53c511=_0x16c455;let _0x150b96=_0x514351[_0x30315f];if(_0x150b96==null)return{};if(typeof _0x150b96!=_0x53c511(0x1d6)||!_0x150b96[_0x53c511(0x165)]())throw TypeError(_0xeb05d1+_0x53c511(0xdb)+_0x30315f+_0x53c511(0xe9));return{[_0x30315f]:_0x150b96};}function W(_0x55a343,_0x38ce3b,_0x519aef){const _0xcd879c=_0x16c455;let _0xad0a5d=_0x55a343[_0x38ce3b];if(_0xad0a5d==null)return{};if(typeof _0xad0a5d!='number'||!Number['isFinite'](_0xad0a5d)||_0xad0a5d<0x0)throw TypeError(_0x519aef+_0xcd879c(0xdb)+_0x38ce3b+_0xcd879c(0x126));return{[_0x38ce3b]:_0xad0a5d};}function ft(_0x1d782f){const _0x20eafa=_0x16c455;return typeof _0x1d782f==_0x20eafa(0xb9)&&!!_0x1d782f&&!Array[_0x20eafa(0xea)](_0x1d782f);}var G;let K=G=class{constructor(_0xdc72a,_0xac2e12,_0x1403ac,_0x3d66ed,_0x1e6d8d){const _0x548f76=_0x16c455;this[_0x548f76(0xf4)]=_0xdc72a,this['_table']=_0xac2e12,this[_0x548f76(0x1e7)]=_0x1403ac,this[_0x548f76(0x163)]=_0x3d66ed,this['_commandService']=_0x1e6d8d,this[_0x548f76(0x1f8)]();}[_0x16c455(0x171)](){const _0x8649b6=_0x16c455;return this[_0x8649b6(0xf4)][_0x8649b6(0x207)]();}['getTableId'](){const _0x427300=_0x16c455;return this[_0x427300(0x140)]['getId']();}[_0x16c455(0x15f)](){return{...this['_range']};}[_0x16c455(0x1a5)](){const _0x2bf762=_0x16c455;return this[_0x2bf762(0x1e7)][_0x2bf762(0x138)];}[_0x16c455(0x116)](){const _0x498089=_0x16c455;return this[_0x498089(0x1e7)][_0x498089(0x196)];}['getNumRows'](){const _0x176fd1=_0x16c455;return this[_0x176fd1(0x1e7)][_0x176fd1(0x1cc)]-this[_0x176fd1(0x1e7)]['startRow']+0x1;}[_0x16c455(0xee)](){const _0x3cc327=_0x16c455;return this[_0x3cc327(0x1e7)][_0x3cc327(0xff)]-this[_0x3cc327(0x1e7)]['startColumn']+0x1;}[_0x16c455(0x18e)](){const _0x4fa9ba=_0x16c455;let _0x2064cc=this[_0x4fa9ba(0x1b4)](),_0x397583=this[_0x4fa9ba(0xf5)](_0x2064cc),_0x1ced34=[];for(let _0x3a1497=this['_range']['startRow'];_0x3a1497<=this[_0x4fa9ba(0x1e7)][_0x4fa9ba(0x1cc)];_0x3a1497++){var _0x512783;let _0x5ab072=(_0x512783=_0x2064cc[_0x4fa9ba(0x146)])==null?void 0x0:_0x512783[_0x3a1497],_0x132585=[];for(let _0x53816c=this[_0x4fa9ba(0x1e7)]['startColumn'];_0x53816c<=this[_0x4fa9ba(0x1e7)][_0x4fa9ba(0xff)];_0x53816c++){let _0x4b00c3=_0x397583[_0x53816c];_0x132585[_0x4fa9ba(0xda)](_0x5ab072&&_0x4b00c3?_0x5686ac(_0x2064cc,_0x5ab072,_0x4b00c3):null);}_0x1ced34['push'](_0x132585);}return _0x1ced34;}[_0x16c455(0x175)](){var _0x140ed0;return((_0x140ed0=this['getValues']()[0x0])==null?void 0x0:_0x140ed0[0x0])??null;}[_0x16c455(0x13a)](_0x555501){const _0x22fcdc=_0x16c455;return this[_0x22fcdc(0x1ec)]([[_0x555501]]);}[_0x16c455(0x1ec)](_0x2acbcf){const _0x1cd689=_0x16c455;let _0xc46e0a=this['getNumRows'](),_0x2e2ec3=this[_0x1cd689(0xee)]();if(_0x2acbcf[_0x1cd689(0x166)]>_0xc46e0a||_0x2acbcf[_0x1cd689(0x1a8)](_0x49250b=>_0x49250b[_0x1cd689(0x166)]>_0x2e2ec3)){var _0x4792da;throw Error('[FBaseRange]:\x20values\x20size\x20'+_0x2acbcf[_0x1cd689(0x166)]+'x'+(((_0x4792da=_0x2acbcf[0x0])==null?void 0x0:_0x4792da[_0x1cd689(0x166)])??0x0)+_0x1cd689(0x16f)+_0xc46e0a+'x'+_0x2e2ec3+'.');}let _0x26af78=this[_0x1cd689(0x1b4)](),_0x5aa3b1=this['_getFieldIds'](_0x26af78),_0x115d16=_0x2acbcf[_0x1cd689(0x128)]((_0x3b0dd5,_0x3dfca0)=>_0x3b0dd5['map']((_0x5aa39d,_0x3d8eb2)=>{const _0x59d391=_0x1cd689;var _0x182a7e;let _0x1887ae=this[_0x59d391(0x1e7)][_0x59d391(0x138)]+_0x3dfca0,_0x493204=_0x5aa3b1[this[_0x59d391(0x1e7)][_0x59d391(0x196)]+_0x3d8eb2],_0x4dab0b=(_0x182a7e=_0x26af78['rowId'])==null?void 0x0:_0x182a7e[_0x1887ae];if(!_0x493204||!_0x4dab0b)throw Error(_0x59d391(0x19e));return{'recordId':_0x4dab0b,'fieldId':_0x493204,'value':_0x5aa39d};}));return this[_0x1cd689(0x106)][_0x1cd689(0x178)](_0x5ac327['id'],{'unitId':this['_base'][_0x1cd689(0x207)](),'tableId':this[_0x1cd689(0x140)][_0x1cd689(0x207)](),'patches':_0x115d16,'source':_0x55bebd[_0x1cd689(0x1ae)]});}[_0x16c455(0x172)](){const _0x50778e=_0x16c455;return this[_0x50778e(0x1ec)](Array[_0x50778e(0x1f4)]({'length':this['getNumRows']()},()=>Array[_0x50778e(0x1f4)]({'length':this[_0x50778e(0xee)]()},()=>null)));}[_0x16c455(0x190)](_0x19e44b,_0x5dcf62,_0x480bb7=this[_0x16c455(0x125)](),_0x5aa85d=this['getNumColumns']()){const _0x204859=_0x16c455;return this['_inject']['createInstance'](G,this[_0x204859(0xf4)],this['_table'],{'startRow':this[_0x204859(0x1e7)][_0x204859(0x138)]+_0x19e44b,'startColumn':this[_0x204859(0x1e7)][_0x204859(0x196)]+_0x5dcf62,'endRow':this['_range'][_0x204859(0x138)]+_0x19e44b+_0x480bb7-0x1,'endColumn':this['_range']['startColumn']+_0x5dcf62+_0x5aa85d-0x1},this[_0x204859(0x163)]);}['_getTable'](){const _0x3d27c1=_0x16c455;let _0x27428c=this['_table'][_0x3d27c1(0x147)]();if(!_0x27428c)throw Error(_0x3d27c1(0x1ea));return _0x5d9764(_0x27428c);}[_0x16c455(0x1f8)](){const _0x46610f=_0x16c455;var _0x17b6aa;let _0x338224=this[_0x46610f(0x1b4)](),_0xfa72d7=((_0x17b6aa=_0x338224[_0x46610f(0xdf)])==null?void 0x0:_0x17b6aa[_0x46610f(0x166)])??0x0,_0x196990=this[_0x46610f(0xf5)](_0x338224)[_0x46610f(0x166)];if(this['_range'][_0x46610f(0x138)]<0x0||this[_0x46610f(0x1e7)][_0x46610f(0x196)]<0x0||this['_range'][_0x46610f(0x1cc)]<this[_0x46610f(0x1e7)][_0x46610f(0x138)]||this[_0x46610f(0x1e7)]['endColumn']<this['_range'][_0x46610f(0x196)]||this[_0x46610f(0x1e7)][_0x46610f(0x1cc)]>=Math[_0x46610f(0x1b3)](_0xfa72d7,0x1)||this['_range'][_0x46610f(0xff)]>=Math[_0x46610f(0x1b3)](_0x196990,0x1))throw Error('[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20'+_0xfa72d7+',\x20max\x20columns:\x20'+_0x196990+_0x46610f(0x120)+JSON[_0x46610f(0x12d)](this[_0x46610f(0x1e7)])+'.');}[_0x16c455(0xf5)](_0x1ce6a8){const _0x20cecd=_0x16c455;return _0x1ce6a8[_0x20cecd(0xf6)][_0x20cecd(0x159)](_0x4ffb5f=>V(_0x1ce6a8[_0x20cecd(0x155)][_0x4ffb5f]));}};K=G=z([R(0x4,_0x18d666)],K);function q(_0x8261a1){'@babel/helpers - typeof';const _0x5f4780=_0x16c455;return q=typeof Symbol==_0x5f4780(0x1d1)&&typeof Symbol['iterator']==_0x5f4780(0x1c4)?function(_0x2a4a16){return typeof _0x2a4a16;}:function(_0x1f537e){const _0x552275=_0x5f4780;return _0x1f537e&&typeof Symbol==_0x552275(0x1d1)&&_0x1f537e['constructor']===Symbol&&_0x1f537e!==Symbol['prototype']?_0x552275(0x1c4):typeof _0x1f537e;},q(_0x8261a1);}function pt(_0x325de3,_0x227492){const _0x13afec=_0x16c455;if(q(_0x325de3)!=_0x13afec(0xb9)||!_0x325de3)return _0x325de3;var _0x308e0d=_0x325de3[Symbol[_0x13afec(0x1d4)]];if(_0x308e0d!==void 0x0){var _0xdfe048=_0x308e0d[_0x13afec(0x136)](_0x325de3,_0x227492||_0x13afec(0x131));if(q(_0xdfe048)!=_0x13afec(0xb9))return _0xdfe048;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x227492==='string'?String:Number)(_0x325de3);}function mt(_0x25abef){const _0x403a4b=_0x16c455;var _0x1f4e71=pt(_0x25abef,_0x403a4b(0x1d6));return q(_0x1f4e71)=='symbol'?_0x1f4e71:_0x1f4e71+'';}function ht(_0x11aebd,_0x1e619f,_0x1d5ff1){const _0x5e2b9a=_0x16c455;return(_0x1e619f=mt(_0x1e619f))in _0x11aebd?Object[_0x5e2b9a(0x1e4)](_0x11aebd,_0x1e619f,{'value':_0x1d5ff1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11aebd[_0x1e619f]=_0x1d5ff1,_0x11aebd;}var J;let Y=J=class extends _0x36d8f1{constructor(_0x40d121,_0x1929c5,_0x4843c6,_0x2edad7,_0x12d24a,_0x47a1a7){const _0x1cc9b4=_0x16c455;super(_0x2edad7),this[_0x1cc9b4(0xf4)]=_0x40d121,this[_0x1cc9b4(0x140)]=_0x1929c5,this[_0x1cc9b4(0x1c3)]=_0x4843c6,this[_0x1cc9b4(0x113)]=_0x2edad7,this['_commandService']=_0x12d24a,this[_0x1cc9b4(0x1a4)]=_0x47a1a7,ht(this,_0x1cc9b4(0x11f),void 0x0),ht(this,_0x1cc9b4(0x11d),void 0x0),this[_0x1cc9b4(0x11f)]=_0x40d121[_0x1cc9b4(0x207)](),this[_0x1cc9b4(0x11d)]=_0x1929c5[_0x1cc9b4(0x207)]();}['getBaseFacade'](){const _0x23a9a4=_0x16c455;return this[_0x23a9a4(0xf4)];}['getTableFacade'](){const _0x425012=_0x16c455;return this[_0x425012(0x140)];}[_0x16c455(0x207)](){const _0x405a56=_0x16c455;return this[_0x405a56(0x1c3)];}[_0x16c455(0x1d9)](){const _0x4bf983=_0x16c455;let _0x4950a7=this['_table'][_0x4bf983(0x207)]();return new L(this[_0x4bf983(0xf4)]['getId'](),_0xa951c(_0x4950a7,this['_recordId']),[_0x178fd1(_0x4950a7)],this[_0x4bf983(0x106)],this[_0x4bf983(0x1a4)]);}[_0x16c455(0x118)](){const _0x115372=_0x16c455;return{...this[_0x115372(0x11e)](),'values':this[_0x115372(0x18e)]()};}[_0x16c455(0x175)](_0x5b5f5b){const _0x3b169d=_0x16c455;return V(this[_0x3b169d(0x140)][_0x3b169d(0x147)]()['fields'][_0x5b5f5b])?this[_0x3b169d(0x11e)]()[_0x3b169d(0x1da)][_0x5b5f5b]??null:null;}[_0x16c455(0x18e)](){const _0x1a651c=_0x16c455;let _0x43ef4d=this[_0x1a651c(0x140)][_0x1a651c(0x147)]();return Object[_0x1a651c(0x167)](Object[_0x1a651c(0x208)](this[_0x1a651c(0x11e)]()[_0x1a651c(0x1da)])[_0x1a651c(0x159)](([_0x323334])=>V(_0x43ef4d[_0x1a651c(0x155)][_0x323334])));}[_0x16c455(0x13a)](_0x1e33af,_0x1c82b1){const _0x5cdbdd=_0x16c455;let _0x4cfd32=this[_0x5cdbdd(0x140)][_0x5cdbdd(0x147)]()[_0x5cdbdd(0x155)][_0x1e33af];return this['_commandService']['syncExecuteCommand'](_0x56896a['id'],{'unitId':this['_base'][_0x5cdbdd(0x207)](),'tableId':this['_table'][_0x5cdbdd(0x207)](),'recordId':this[_0x5cdbdd(0x1c3)],'fieldId':_0x1e33af,'value':st(_0x4cfd32,_0x1c82b1),'source':_0x55bebd[_0x5cdbdd(0x1ae)]});}[_0x16c455(0x1c6)](_0x1fbcbd,_0x35125c){const _0x566969=_0x16c455;return this['setValue'](_0x1fbcbd,_0x35125c[_0x566969(0x176)](_0x285d71=>({..._0x285d71})));}[_0x16c455(0x10d)](_0x5cfafb){const _0x4786d2=_0x16c455;this[_0x4786d2(0xbf)](_0x5cfafb);let _0xe9b0b5=this[_0x4786d2(0x175)](_0x5cfafb);return Array[_0x4786d2(0xea)](_0xe9b0b5)?_0xe9b0b5['map']((_0x4a0169,_0xd484ff)=>_t(_0x4a0169,_0x5cfafb,_0xd484ff)):[];}[_0x16c455(0x1ac)](_0x124e05,_0x2be5fe){const _0xc342bf=_0x16c455;this['_getAttachmentField'](_0x124e05);let _0x317c73=new Set(_0x2be5fe[_0xc342bf(0x176)](_0xe129c0=>_0xe129c0['id']));if(!_0x317c73[_0xc342bf(0x154)])return!0x0;let _0x4afe90=this[_0xc342bf(0x10d)](_0x124e05),_0x60d256=_0x4afe90[_0xc342bf(0x159)](_0x338e59=>!_0x317c73[_0xc342bf(0x141)](_0x338e59['id']));return _0x60d256['length']===_0x4afe90[_0xc342bf(0x166)]||this['setAttachments'](_0x124e05,_0x60d256);}['setValues'](_0x14f702,_0x420547='id'){const _0x41d07d=_0x16c455;let _0x2742e4=this['_table'][_0x41d07d(0x147)](),_0x4484f7=[{'recordId':this[_0x41d07d(0x1c3)],'values':H(_0x2742e4,_0x14f702,_0x420547)}];return this[_0x41d07d(0x106)][_0x41d07d(0x178)](_0xe2fa79['id'],{'unitId':this[_0x41d07d(0xf4)][_0x41d07d(0x207)](),'tableId':this['_table'][_0x41d07d(0x207)](),'patches':_0x4484f7,'source':_0x55bebd[_0x41d07d(0x1ae)]});}[_0x16c455(0xcd)](){const _0x5b53d9=_0x16c455;return this[_0x5b53d9(0x106)][_0x5b53d9(0x178)](_0x2a07c2['id'],{'unitId':this[_0x5b53d9(0xf4)][_0x5b53d9(0x207)](),'tableId':this[_0x5b53d9(0x140)][_0x5b53d9(0x207)](),'recordId':this[_0x5b53d9(0x1c3)],'source':_0x55bebd[_0x5b53d9(0x1ae)]});}[_0x16c455(0x169)](_0x407fc9){const _0x29c2b5=_0x16c455;let _0xa840b={...this['_getRecord'](),..._0x407fc9,'id':_0x2fbf07(0x6)};_0xa840b[_0x29c2b5(0x1da)]={..._0xa840b[_0x29c2b5(0x1da)],..._0x407fc9==null?void 0x0:_0x407fc9[_0x29c2b5(0x1da)]},Reflect['deleteProperty'](_0xa840b['values'],_0x45a674);let _0x37accc=Date[_0x29c2b5(0xe0)]();if(_0xa840b[_0x29c2b5(0xb0)]||=''+_0x37accc,_0xa840b[_0x29c2b5(0x100)]||=_0x37accc,_0xa840b[_0x29c2b5(0x1df)]||=_0x37accc,!this[_0x29c2b5(0x106)][_0x29c2b5(0x178)](_0x12761d['id'],{'unitId':this[_0x29c2b5(0xf4)]['getId'](),'tableId':this[_0x29c2b5(0x140)][_0x29c2b5(0x207)](),'sourceRecordId':this['_recordId'],'record':_0xa840b,'source':_0x55bebd[_0x29c2b5(0x1ae)]}))throw Error(_0x29c2b5(0x1d0)+this[_0x29c2b5(0x1c3)]+'\x22.');return this[_0x29c2b5(0x113)][_0x29c2b5(0x152)](J,this[_0x29c2b5(0xf4)],this[_0x29c2b5(0x140)],_0xa840b['id'],this[_0x29c2b5(0x113)]);}['setOrderKey'](_0x67497e){const _0x3714e2=_0x16c455;return this[_0x3714e2(0x106)][_0x3714e2(0x178)](_0x14f095['id'],{'unitId':this[_0x3714e2(0xf4)][_0x3714e2(0x207)](),'tableId':this[_0x3714e2(0x140)][_0x3714e2(0x207)](),'recordId':this[_0x3714e2(0x1c3)],'orderKey':_0x67497e});}[_0x16c455(0x1d5)](_0x13959c){const _0x7515c0=_0x16c455;let _0x4c3761=this[_0x7515c0(0x192)](_0x13959c),_0x4c8cae=this[_0x7515c0(0x175)](_0x4c3761['id']);return _0x335852(_0x4c8cae);}[_0x16c455(0xf2)](_0x23c183,_0x8a5f6b){const _0x3cdf82=_0x16c455;let _0x5e4a8b=this['_getRecordLinkField'](_0x23c183),_0x209e7c=_0x392c5e(_0x8a5f6b),_0x50cbbf=_0x2e4386(this['_base']['getBase']()[_0x3cdf82(0x15a)](),_0x5e4a8b,_0x209e7c);if(!_0x50cbbf['valid'])throw Error(_0x50cbbf[_0x3cdf82(0xd9)]??_0x3cdf82(0x13d));return this[_0x3cdf82(0x106)]['syncExecuteCommand'](_0x56896a['id'],{'unitId':this[_0x3cdf82(0xf4)][_0x3cdf82(0x207)](),'tableId':this[_0x3cdf82(0x140)][_0x3cdf82(0x207)](),'recordId':this[_0x3cdf82(0x1c3)],'fieldId':_0x23c183,'value':_0x209e7c,'source':_0x55bebd['Facade']});}[_0x16c455(0x1b7)](_0x297a42,_0x39790a){const _0x37c7c1=_0x16c455;let _0x4ff4db=this['_getRecordLinkField'](_0x297a42),_0x265543=_0x15bd67(_0x4ff4db);if(!_0x265543)throw Error(_0x37c7c1(0xae)+_0x297a42+_0x37c7c1(0xa6));let _0x1c9d21=this[_0x37c7c1(0x1d5)](_0x297a42);return _0x265543[_0x37c7c1(0x168)]&&_0x1c9d21['includes'](_0x39790a)?!0x0:this[_0x37c7c1(0xf2)](_0x297a42,_0x265543[_0x37c7c1(0x168)]?[..._0x1c9d21,_0x39790a]:[_0x39790a]);}[_0x16c455(0x1d3)](_0x3a6220,_0x517311){const _0x4bf7f6=_0x16c455;let _0x5067db=this[_0x4bf7f6(0x1d5)](_0x3a6220);return!_0x5067db[_0x4bf7f6(0xec)](_0x517311)||this[_0x4bf7f6(0xf2)](_0x3a6220,_0x5067db[_0x4bf7f6(0x159)](_0x2b9023=>_0x2b9023!==_0x517311));}[_0x16c455(0x12b)](_0x5f5b4d){const _0x293cb6=_0x16c455;let _0x5520c3=this[_0x293cb6(0x1c2)](_0x5f5b4d)[_0x293cb6(0x13f)][_0x293cb6(0x14f)](this[_0x293cb6(0x1c3)])??null;return _0x5520c3?this[_0x293cb6(0x140)]['getRecordById'](_0x5520c3):null;}[_0x16c455(0x157)](_0x2d97c1){const _0x62e0cc=_0x16c455;return(this[_0x62e0cc(0x1c2)](_0x2d97c1)['childrenByParentId'][_0x62e0cc(0x14f)](this[_0x62e0cc(0x1c3)])??[])[_0x62e0cc(0x128)](_0x582a40=>{const _0x31685f=_0x62e0cc;let _0x4f4da7=this[_0x31685f(0x140)]['getRecordById'](_0x582a40);return _0x4f4da7?[_0x4f4da7]:[];});}[_0x16c455(0xa5)](_0x3bd48c){const _0x5379b8=_0x16c455;let _0x906338=this[_0x5379b8(0x1c2)](_0x3bd48c),_0x2b5c1e=[],_0x5cb0b5=_0x906338['parentByRecordId'][_0x5379b8(0x14f)](this['_recordId'])??null;for(;_0x5cb0b5;){let _0x1e3d62=this[_0x5379b8(0x140)]['getRecordById'](_0x5cb0b5);_0x1e3d62&&_0x2b5c1e[_0x5379b8(0xda)](_0x1e3d62),_0x5cb0b5=_0x906338[_0x5379b8(0x13f)][_0x5379b8(0x14f)](_0x5cb0b5)??null;}return _0x2b5c1e;}['getDescendants'](_0x926d58){const _0x10f1e0=_0x16c455;let _0x1fe922=this[_0x10f1e0(0x1c2)](_0x926d58),_0x9be7b0=_0x1fe922[_0x10f1e0(0x209)][_0x10f1e0(0x107)](this[_0x10f1e0(0x1c3)]),_0x1071b1=_0x1fe922['subtreeHeightByRecordId'][_0x10f1e0(0x141)](this[_0x10f1e0(0x1c3)])?this[_0x10f1e0(0x1b2)](_0x1fe922[_0x10f1e0(0xba)],this[_0x10f1e0(0x1c3)]):[];return _0x9be7b0<0x0?[]:_0x1071b1[_0x10f1e0(0x128)](_0x3db2e6=>{const _0x5694ab=_0x10f1e0;let _0x5bf744=this[_0x5694ab(0x140)]['getRecordById'](_0x3db2e6);return _0x5bf744?[_0x5bf744]:[];});}['setParent'](_0x34af2a,_0x313837,_0x562201){const _0x6ba9a1=_0x16c455;return this[_0x6ba9a1(0x106)][_0x6ba9a1(0x178)](_0x1c837a['id'],{'unitId':this[_0x6ba9a1(0xf4)][_0x6ba9a1(0x207)](),'tableId':this[_0x6ba9a1(0x140)][_0x6ba9a1(0x207)](),'fieldId':_0x34af2a,'recordId':this[_0x6ba9a1(0x1c3)],'parentRecordId':_0x313837,'orderKey':_0x562201,'source':_0x55bebd[_0x6ba9a1(0x1ae)]});}[_0x16c455(0x199)](_0x39a4de,_0x7237c5,_0x7c485d='id',_0x19f9bc){const _0x2c99be=_0x16c455;let _0x5989c0=this['_table'][_0x2c99be(0x147)](),_0x480fa8=Date[_0x2c99be(0xe0)](),_0x394a55={..._0x19f9bc,'id':_0x2fbf07(0x6),'values':H(_0x5989c0,_0x7237c5,_0x7c485d),'orderKey':(_0x19f9bc==null?void 0x0:_0x19f9bc['orderKey'])||''+_0x480fa8,'createdAt':(_0x19f9bc==null?void 0x0:_0x19f9bc['createdAt'])||_0x480fa8,'updatedAt':(_0x19f9bc==null?void 0x0:_0x19f9bc[_0x2c99be(0x1df)])||_0x480fa8};if(!this[_0x2c99be(0x106)]['syncExecuteCommand'](_0x2e5ba5['id'],{'unitId':this[_0x2c99be(0xf4)][_0x2c99be(0x207)](),'tableId':this['_table'][_0x2c99be(0x207)](),'fieldId':_0x39a4de,'parentRecordId':this['_recordId'],'record':_0x394a55,'source':_0x55bebd[_0x2c99be(0x1ae)]}))throw Error(_0x2c99be(0x1bd)+this['_recordId']+'\x22.');return this['_injector'][_0x2c99be(0x152)](J,this[_0x2c99be(0xf4)],this[_0x2c99be(0x140)],_0x394a55['id'],this['_injector']);}['_getHierarchyIndex'](_0x2d80ae){const _0x890cff=_0x16c455;return _0x1a3563(this[_0x890cff(0x140)][_0x890cff(0x147)](),_0x2d80ae);}[_0x16c455(0x1b2)](_0x64c7d7,_0xf099a4){let _0x1e01b4=[],_0x4bfb71=_0x476acb=>{const _0x15f82d=_0x459a;for(let _0x46c163 of _0x64c7d7[_0x15f82d(0x14f)](_0x476acb)??[])_0x1e01b4[_0x15f82d(0xda)](_0x46c163),_0x4bfb71(_0x46c163);};return _0x4bfb71(_0xf099a4),_0x1e01b4;}[_0x16c455(0x11e)](){const _0x3e68f2=_0x16c455;let _0x23a668=this[_0x3e68f2(0x140)][_0x3e68f2(0x147)]()['records'][this[_0x3e68f2(0x1c3)]];if(!_0x23a668)throw Error(_0x3e68f2(0x1dc)+this[_0x3e68f2(0x1c3)]+_0x3e68f2(0x1f6));return _0x23a668;}[_0x16c455(0x192)](_0x5a1d2c){const _0x351d0a=_0x16c455;let _0x953f31=this[_0x351d0a(0x140)][_0x351d0a(0x147)]()['fields'][_0x5a1d2c];if(!_0x953f31||_0x953f31['type']!==_0x5c585e[_0x351d0a(0x18f)])throw Error(_0x351d0a(0xa1)+_0x5a1d2c+_0x351d0a(0xd4));return _0x953f31;}['_getAttachmentField'](_0x328c9a){const _0x599fba=_0x16c455;let _0x5ad6e8=this[_0x599fba(0x140)][_0x599fba(0x147)]()[_0x599fba(0x155)][_0x328c9a];if(!_0x5ad6e8||_0x5ad6e8['type']!==_0x5c585e[_0x599fba(0xf3)])throw Error('[FRecord]:\x20field\x20\x22'+_0x328c9a+_0x599fba(0xfd));return _0x5ad6e8;}};Y=J=z([R(0x4,_0x18d666),R(0x5,_0x5e35b8)],Y);function gt(_0xe3d14){const _0x2353e7=_0x16c455;return!!(_0xe3d14&&typeof _0xe3d14==_0x2353e7(0xb9)&&'id'in _0xe3d14&&typeof _0xe3d14['id']=='string'&&_0x2353e7(0x103)in _0xe3d14&&typeof _0xe3d14[_0x2353e7(0x103)]==_0x2353e7(0x1d6));}function _t(_0x428ca8,_0x38cc44,_0x116a11){const _0x3e48a3=_0x16c455;if(!gt(_0x428ca8))throw Error(_0x3e48a3(0x1fe)+_0x116a11+_0x3e48a3(0x102)+_0x38cc44+_0x3e48a3(0x10e));return{..._0x428ca8};}let X=class{constructor(_0x28fd8c,_0x55403a,_0xf330a,_0x4dd9f0,_0x230e08,_0x3b86dd,_0x4e439f){const _0x17b6d2=_0x16c455;this[_0x17b6d2(0xf4)]=_0x28fd8c,this[_0x17b6d2(0x140)]=_0x55403a,this[_0x17b6d2(0x1eb)]=_0xf330a,this['_injector']=_0x4dd9f0,this[_0x17b6d2(0x106)]=_0x230e08,this[_0x17b6d2(0x1a4)]=_0x3b86dd,this[_0x17b6d2(0xb7)]=_0x4e439f;}[_0x16c455(0x207)](){const _0x116c5d=_0x16c455;return this[_0x116c5d(0x1eb)];}['getPermission'](){const _0x570631=_0x16c455;let _0x5d8e86=this[_0x570631(0x140)][_0x570631(0x207)]();return new L(this['_base'][_0x570631(0x207)](),_0x53e240(_0x5d8e86,this[_0x570631(0x1eb)]),[_0x178fd1(_0x5d8e86)],this[_0x570631(0x106)],this[_0x570631(0x1a4)]);}['getView'](){const _0x448d79=_0x16c455;return this[_0x448d79(0x1ab)]();}['getName'](){const _0x2f6696=_0x16c455;return this[_0x2f6696(0x1ab)]()[_0x2f6696(0x103)];}[_0x16c455(0x16d)](){const _0x5b3d2f=_0x16c455;return this[_0x5b3d2f(0x1ab)]()['type'];}[_0x16c455(0xf1)](_0x31628a){const _0x1634ca=_0x16c455;return this[_0x1634ca(0x106)][_0x1634ca(0x178)](_0x43a829['id'],{'unitId':this[_0x1634ca(0xf4)][_0x1634ca(0x207)](),'tableId':this[_0x1634ca(0x140)][_0x1634ca(0x207)](),'viewId':this[_0x1634ca(0x1eb)],'name':_0x31628a});}['getConfig'](){const _0x33de95=_0x16c455;let _0x47b3b9=this['getType'](),_0x99adc5=this[_0x33de95(0x1ab)]()[_0x33de95(0x1f3)];switch(_0x47b3b9){case _0x1eb8c0[_0x33de95(0xbc)]:return _0x99adc5;case _0x1eb8c0[_0x33de95(0x1db)]:return _0x99adc5;case _0x1eb8c0[_0x33de95(0xfb)]:return _0x99adc5;case _0x1eb8c0[_0x33de95(0x1f7)]:return _0x99adc5;case _0x1eb8c0['Gallery']:return _0x99adc5;default:return _0x99adc5;}}[_0x16c455(0x1a0)](_0x2d4819){const _0x35a4e8=_0x16c455;return this[_0x35a4e8(0x106)][_0x35a4e8(0x178)](_0x5996eb['id'],{'unitId':this[_0x35a4e8(0xf4)][_0x35a4e8(0x207)](),'tableId':this['_table'][_0x35a4e8(0x207)](),'viewId':this['_viewId'],'patch':_0x2d4819});}[_0x16c455(0xaf)](){const _0x552f73=_0x16c455;var _0x2a0243;return _0x49e7b0[_0x552f73(0x14e)](((_0x2a0243=this[_0x552f73(0x1ab)]()['config'][_0x552f73(0xbd)])==null?void 0x0:_0x2a0243[_0x552f73(0x158)])??[]);}['setConditionalColorRules'](_0x231846){const _0x256e79=_0x16c455;return this[_0x256e79(0x106)][_0x256e79(0x178)](_0x445422['id'],{'unitId':this[_0x256e79(0xf4)][_0x256e79(0x207)](),'tableId':this[_0x256e79(0x140)][_0x256e79(0x207)](),'viewId':this['_viewId'],'type':_0x14071a[_0x256e79(0x174)],'rules':_0x231846});}[_0x16c455(0x184)](_0x12ef7e){const _0xca1982=_0x16c455;return this[_0xca1982(0x106)][_0xca1982(0x178)](_0x445422['id'],{'unitId':this[_0xca1982(0xf4)][_0xca1982(0x207)](),'tableId':this[_0xca1982(0x140)][_0xca1982(0x207)](),'viewId':this[_0xca1982(0x1eb)],'type':_0x14071a[_0xca1982(0x1af)],'rule':_0x12ef7e});}['deleteConditionalColorRule'](_0x6f94f9){const _0x30b3b8=_0x16c455;return this[_0x30b3b8(0x106)][_0x30b3b8(0x178)](_0x445422['id'],{'unitId':this['_base'][_0x30b3b8(0x207)](),'tableId':this['_table']['getId'](),'viewId':this[_0x30b3b8(0x1eb)],'type':_0x14071a[_0x30b3b8(0x170)],'ruleId':_0x6f94f9});}[_0x16c455(0xd2)](){const _0xa2576e=_0x16c455;return this['_commandService']['syncExecuteCommand'](_0x445422['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0xa2576e(0x207)](),'viewId':this[_0xa2576e(0x1eb)],'type':_0x14071a[_0xa2576e(0x179)]});}[_0x16c455(0x115)](){const _0x456da4=_0x16c455;return this['_getView']()[_0x456da4(0x159)]??null;}['setFilter'](_0x2bf2eb){const _0x260a59=_0x16c455;return this[_0x260a59(0x106)][_0x260a59(0x178)](_0x537303['id'],{'unitId':this[_0x260a59(0xf4)][_0x260a59(0x207)](),'tableId':this['_table'][_0x260a59(0x207)](),'viewId':this['_viewId'],'filter':_0x2bf2eb});}['getSort'](){const _0x27c986=_0x16c455;return this[_0x27c986(0x1ab)]()['sort']??[];}[_0x16c455(0x1e0)](_0x3c2b74){const _0x1a3227=_0x16c455;return this[_0x1a3227(0x106)][_0x1a3227(0x178)](_0x2d2d2c['id'],{'unitId':this[_0x1a3227(0xf4)][_0x1a3227(0x207)](),'tableId':this['_table'][_0x1a3227(0x207)](),'viewId':this['_viewId'],'sort':_0x3c2b74});}[_0x16c455(0x10b)](){const _0x2ad465=_0x16c455;return this[_0x2ad465(0x1ab)]()[_0x2ad465(0xde)]??[];}[_0x16c455(0x104)](_0x400c4c){const _0x2867eb=_0x16c455;return this[_0x2867eb(0x106)][_0x2867eb(0x178)](_0x4e34d1['id'],{'unitId':this[_0x2867eb(0xf4)]['getId'](),'tableId':this['_table'][_0x2867eb(0x207)](),'viewId':this[_0x2867eb(0x1eb)],'group':_0x400c4c});}[_0x16c455(0x198)](_0x3dc86f){const _0x5a6535=_0x16c455;var _0x47d4a9;return V(this[_0x5a6535(0x140)][_0x5a6535(0x147)]()[_0x5a6535(0x155)][_0x3dc86f])?((_0x47d4a9=this['_getView']()['fieldSettings'])==null?void 0x0:_0x47d4a9[_0x3dc86f])??{}:{};}[_0x16c455(0xc7)](){const _0x558f1c=_0x16c455;let _0x570e39=this[_0x558f1c(0x140)][_0x558f1c(0x147)](),_0x32a9ad=this[_0x558f1c(0x1ab)]();return(_0x32a9ad[_0x558f1c(0xf6)]??_0x570e39[_0x558f1c(0xf6)])[_0x558f1c(0x159)](_0x3a42b2=>{const _0x3c04b0=_0x558f1c;var _0xb49863;let _0x1c9c6d=_0x570e39[_0x3c04b0(0x155)][_0x3a42b2];return V(_0x1c9c6d)&&!((_0xb49863=_0x32a9ad[_0x3c04b0(0x1de)])!=null&&(_0xb49863=_0xb49863[_0x3a42b2])!=null&&_0xb49863['hidden']);})[_0x558f1c(0x176)](_0x3362a2=>this[_0x558f1c(0x113)][_0x558f1c(0x152)](B,this[_0x558f1c(0xf4)],this[_0x558f1c(0x140)],_0x3362a2));}[_0x16c455(0xdc)](_0x45b571,_0x269da5){const _0x41f437=_0x16c455;return V(this['_table'][_0x41f437(0x147)]()['fields'][_0x45b571])?this[_0x41f437(0x106)][_0x41f437(0x178)](_0x29d7b1['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x41f437(0x140)][_0x41f437(0x207)](),'viewId':this[_0x41f437(0x1eb)],'fieldId':_0x45b571,'visible':_0x269da5}):!0x1;}[_0x16c455(0x18c)](_0x1432e3,_0x5b475f){const _0x507e3b=_0x16c455;return V(this['_table']['getTable']()[_0x507e3b(0x155)][_0x1432e3])?this[_0x507e3b(0x106)][_0x507e3b(0x178)](_0x10caef['id'],{'unitId':this[_0x507e3b(0xf4)]['getId'](),'tableId':this[_0x507e3b(0x140)][_0x507e3b(0x207)](),'viewId':this[_0x507e3b(0x1eb)],'fieldId':_0x1432e3,'width':_0x5b475f}):!0x1;}[_0x16c455(0xd7)](_0x5bc82f,_0x452f00){const _0x17c841=_0x16c455;let _0x1c519a=this[_0x17c841(0x140)][_0x17c841(0x147)](),_0x510021=_0x452f00[_0x17c841(0xbe)]??_0x452f00[_0x17c841(0xe4)];return!V(_0x1c519a[_0x17c841(0x155)][_0x5bc82f])||!_0x510021||!V(_0x1c519a['fields'][_0x510021])?!0x1:this[_0x17c841(0x106)][_0x17c841(0x178)](_0x1a9899['id'],{'unitId':this[_0x17c841(0xf4)][_0x17c841(0x207)](),'tableId':this[_0x17c841(0x140)][_0x17c841(0x207)](),'viewId':this[_0x17c841(0x1eb)],'fieldId':_0x5bc82f,'target':_0x452f00});}[_0x16c455(0x19b)](_0x5882dc){const _0x3f1443=_0x16c455;return this[_0x3f1443(0x106)]['syncExecuteCommand'](_0x3abd85['id'],{'unitId':this[_0x3f1443(0xf4)][_0x3f1443(0x207)](),'tableId':this[_0x3f1443(0x140)]['getId'](),'viewId':this[_0x3f1443(0x1eb)],'target':_0x5882dc});}[_0x16c455(0xcd)](){const _0x1eeb97=_0x16c455;return this['_commandService']['syncExecuteCommand'](_0x548359['id'],{'unitId':this[_0x1eeb97(0xf4)][_0x1eeb97(0x207)](),'tableId':this[_0x1eeb97(0x140)][_0x1eeb97(0x207)](),'viewId':this[_0x1eeb97(0x1eb)]});}[_0x16c455(0xef)](){const _0x240d1b=_0x16c455;return this[_0x240d1b(0xb7)][_0x240d1b(0xef)](this[_0x240d1b(0xf4)][_0x240d1b(0xaa)]()[_0x240d1b(0x15a)](),this['_table'][_0x240d1b(0x207)](),this[_0x240d1b(0x1eb)]);}[_0x16c455(0x1ab)](){const _0x5725e3=_0x16c455;let _0x176e7d=this[_0x5725e3(0x140)][_0x5725e3(0x147)]()[_0x5725e3(0x162)][this['_viewId']];if(!_0x176e7d)throw Error('[FView]:\x20view\x20\x22'+this['_viewId']+_0x5725e3(0x1f6));return _0x176e7d;}};X=z([R(0x4,_0x18d666),R(0x5,_0x5e35b8),R(0x6,_0x499ad2)],X);let Z=class{constructor(_0x3ecdbe,_0x1b0810,_0x155d57,_0xb59bfe,_0x1c1bd7,_0x2979ee){const _0x2242dd=_0x16c455;this[_0x2242dd(0xf4)]=_0x3ecdbe,this[_0x2242dd(0xc0)]=_0x1b0810,this[_0x2242dd(0x113)]=_0x155d57,this[_0x2242dd(0x106)]=_0xb59bfe,this[_0x2242dd(0x1a4)]=_0x1c1bd7,this['_projectionService']=_0x2979ee;}[_0x16c455(0xaa)](){const _0x252632=_0x16c455;return this[_0x252632(0xf4)][_0x252632(0xaa)]();}['getTable'](){return this['_getTable']();}[_0x16c455(0x207)](){const _0x3c8864=_0x16c455;return this[_0x3c8864(0xc0)];}['getPermission'](){const _0x507b89=_0x16c455;return new L(this[_0x507b89(0xaa)]()[_0x507b89(0x109)](),_0x178fd1(this[_0x507b89(0xc0)]),[],this[_0x507b89(0x106)],this[_0x507b89(0x1a4)]);}[_0x16c455(0x101)](){const _0x5b3a75=_0x16c455;return _0x4e6087(this[_0x5b3a75(0x1b4)]());}[_0x16c455(0x1cf)](_0x5d28a4){const _0x4be8dd=_0x16c455;return this[_0x4be8dd(0x106)][_0x4be8dd(0x178)](_0x331078['id'],{'unitId':this[_0x4be8dd(0xf4)][_0x4be8dd(0x207)](),'tableId':this[_0x4be8dd(0xc0)],'fieldId':_0x5d28a4});}[_0x16c455(0x180)](){const _0x2efa46=_0x16c455;return this[_0x2efa46(0x1b4)]()[_0x2efa46(0x103)];}[_0x16c455(0x15c)](){const _0x228ac3=_0x16c455;let _0x23f274=this[_0x228ac3(0xf4)][_0x228ac3(0xaa)]()[_0x228ac3(0x15a)]();return _0x334dca(this[_0x228ac3(0x1b4)](),_0x23f274);}[_0x16c455(0xf1)](_0x625c45){const _0x1f4f35=_0x16c455;let _0x111869=_0x2628b6(this['_base']['getBase']()[_0x1f4f35(0x15a)](),_0x625c45,this[_0x1f4f35(0xc0)]);if(!_0x111869[_0x1f4f35(0x139)])throw Error('[FBaseTable]:\x20invalid\x20table\x20name\x20\x22'+_0x625c45+_0x1f4f35(0x1f5)+_0x229298+'\x20'+_0x111869[_0x1f4f35(0xd9)]);return this[_0x1f4f35(0x106)]['syncExecuteCommand'](_0x3dc70f['id'],{'unitId':this[_0x1f4f35(0xf4)][_0x1f4f35(0x207)](),'tableId':this[_0x1f4f35(0xc0)],'name':_0x625c45});}[_0x16c455(0x1cb)](_0xef6927,_0x27849a){const _0x4ebbf0=_0x16c455;let _0x41fb75=this[_0x4ebbf0(0xf4)]['getBase']()[_0x4ebbf0(0x15a)](),_0x515157=this[_0x4ebbf0(0x1b4)]();if(_0x27849a){let _0x139628=this[_0x4ebbf0(0xb7)]['getProjection'](_0x41fb75,this[_0x4ebbf0(0xc0)],_0x27849a),_0xa24b44=_0x515157['views'][_0x27849a],_0x8159f7=_0xef6927['fieldIds']??Tt(_0x515157,_0xa24b44,_0x139628),_0x4f7e69=_0x4ebbf0(0x137)in _0x139628&&Array['isArray'](_0x139628[_0x4ebbf0(0x137)])?_0x139628[_0x4ebbf0(0x137)]:[];return _0x3ed99e({..._0xef6927,'table':_0x515157,'fieldIds':_0x8159f7,'rows':_0x4f7e69});}let _0x3a5931=(_0x515157['recordOrder']?_0x515157[_0x4ebbf0(0xdf)][_0x4ebbf0(0x176)](_0x286e5c=>_0x515157[_0x4ebbf0(0x111)][_0x286e5c]):Object['values'](_0x515157['records'])['sort']((_0x41e0ed,_0x8f4de8)=>_0x41e0ed[_0x4ebbf0(0xb0)]['localeCompare'](_0x8f4de8[_0x4ebbf0(0xb0)])))[_0x4ebbf0(0x159)](_0x1615c0=>_0x1615c0)[_0x4ebbf0(0x176)](_0xc82e5e=>({'recordId':_0xc82e5e['id'],'values':_0xc82e5e[_0x4ebbf0(0x1da)]})),_0x87b5fa=_0xef6927[_0x4ebbf0(0x1a9)]??_0x515157[_0x4ebbf0(0xf6)]['filter'](_0x155b16=>V(_0x515157[_0x4ebbf0(0x155)][_0x155b16]));return _0x3ed99e({..._0xef6927,'table':_0x515157,'fieldIds':_0x87b5fa,'rows':_0x3a5931});}[_0x16c455(0x119)](){const _0x56bb65=_0x16c455;return this['_getTable']()[_0x56bb65(0x185)];}['getFields'](){const _0x59574a=_0x16c455;let _0x438821=this[_0x59574a(0x1b4)]();return _0x438821['fieldOrder'][_0x59574a(0x176)](_0x5dd607=>_0x438821[_0x59574a(0x155)][_0x5dd607])['filter'](V)[_0x59574a(0x176)](_0x448c67=>this[_0x59574a(0x113)][_0x59574a(0x152)](B,this['_base'],this,_0x448c67['id']));}[_0x16c455(0x181)](_0x459631){const _0x5bbcc7=_0x16c455;let _0x51f4b7=this[_0x5bbcc7(0x1b4)]()[_0x5bbcc7(0x155)][_0x459631];return V(_0x51f4b7)?this[_0x5bbcc7(0x113)][_0x5bbcc7(0x152)](B,this[_0x5bbcc7(0xf4)],this,_0x51f4b7['id']):null;}['getFieldByName'](_0x5792f6){const _0x2126fe=_0x16c455;let _0x43d290=this[_0x2126fe(0x1b4)]()['fields'],_0x4f720c=Object['values'](_0x43d290)['find'](_0x3b54bc=>V(_0x3b54bc)&&_0x3b54bc[_0x2126fe(0x103)]===_0x5792f6);return _0x4f720c?this[_0x2126fe(0x113)]['createInstance'](B,this['_base'],this,_0x4f720c['id']):null;}[_0x16c455(0x145)](){const _0x12b889=_0x16c455;let _0x29403f=this[_0x12b889(0x1b4)]()[_0x12b889(0x185)];return this[_0x12b889(0x113)][_0x12b889(0x152)](B,this[_0x12b889(0xf4)],this,_0x29403f);}[_0x16c455(0x12f)](_0x24ce34,_0x42b438,_0x1fcefd){const _0x5eb3c9=_0x16c455;var _0x299de3,_0xca3180;if(!Object[_0x5eb3c9(0x1da)](_0x5c585e)[_0x5eb3c9(0x1a8)](_0xe9e27f=>_0xe9e27f===_0x42b438))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x42b438)+'\x22.');if(_0x42b438===_0x5c585e[_0x5eb3c9(0x1d2)]&&this[_0x5eb3c9(0xf0)](_0x24ce34,_0x1fcefd),_0x42b438===_0x5c585e[_0x5eb3c9(0x18f)]&&(typeof(_0x1fcefd==null||(_0x299de3=_0x1fcefd[_0x5eb3c9(0x173)])==null||(_0x299de3=_0x299de3[_0x5eb3c9(0x1f3)])==null?void 0x0:_0x299de3[_0x5eb3c9(0xb4)])!='string'||typeof _0x1fcefd['field']['config'][_0x5eb3c9(0x168)]!=_0x5eb3c9(0xad)))throw Error(_0x5eb3c9(0x124));let _0x128157={..._0x1fcefd==null?void 0x0:_0x1fcefd[_0x5eb3c9(0x173)],'id':_0x2fbf07(0x6),'name':_0x24ce34,'type':_0x42b438,'config':(_0x1fcefd==null||(_0xca3180=_0x1fcefd[_0x5eb3c9(0x173)])==null?void 0x0:_0xca3180['config'])??{}};if(!this[_0x5eb3c9(0x106)][_0x5eb3c9(0x178)](_0x3de3f5['id'],{'unitId':this[_0x5eb3c9(0xf4)][_0x5eb3c9(0x207)](),'tableId':this['_tableId'],'field':_0x128157,'index':_0x1fcefd==null?void 0x0:_0x1fcefd[_0x5eb3c9(0x144)]}))throw Error(_0x5eb3c9(0x117)+_0x24ce34+'\x22');return this[_0x5eb3c9(0x113)][_0x5eb3c9(0x152)](B,this[_0x5eb3c9(0xf4)],this,_0x128157['id']);}[_0x16c455(0xf0)](_0x1babe5,_0x241c7f){const _0x478345=_0x16c455;var _0x1cb15b;if(!_0x241c7f||!('externalReferences'in _0x241c7f)||!Array[_0x478345(0xea)](_0x241c7f[_0x478345(0x130)]))throw Error('Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.');let _0x4a4f21=this[_0x478345(0x106)][_0x478345(0x178)](_0x5cd29d['id'],{'unitId':this[_0x478345(0xf4)]['getId'](),'tableId':this[_0x478345(0xc0)],'formula':String(((_0x1cb15b=_0x241c7f[_0x478345(0x173)])==null||(_0x1cb15b=_0x1cb15b[_0x478345(0x1f3)])==null?void 0x0:_0x1cb15b['formula'])??'')});if(!_0x4a4f21[_0x478345(0x139)])throw Error(_0x4a4f21[_0x478345(0xd9)]??'Invalid\x20Base\x20formula.');if(_0x241c7f[_0x478345(0x130)]['length']>0x0&&!this[_0x478345(0x106)][_0x478345(0x178)](_0x3fc287['id'],{'unitId':this['_base'][_0x478345(0x207)](),'references':_0x241c7f['externalReferences']}))throw Error(_0x478345(0x188)+_0x1babe5+'\x22');}[_0x16c455(0xf8)](){const _0xa67bf1=_0x16c455;return this[_0xa67bf1(0x127)]()[_0xa67bf1(0x176)](_0xb32a17=>this[_0xa67bf1(0x113)][_0xa67bf1(0x152)](Y,this['_base'],this,_0xb32a17,this[_0xa67bf1(0x113)]));}[_0x16c455(0xb6)](_0x50201d){const _0x5bbe37=_0x16c455;return this[_0x5bbe37(0x1b4)]()[_0x5bbe37(0x111)][_0x50201d]?this['_injector'][_0x5bbe37(0x152)](Y,this[_0x5bbe37(0xf4)],this,_0x50201d,this[_0x5bbe37(0x113)]):null;}[_0x16c455(0x11b)](_0x2d5226={}){const _0x4a4c6a=_0x16c455;let _0x28806d=this[_0x4a4c6a(0x1b4)](),_0x428f7a=this[_0x4a4c6a(0x127)](_0x2d5226),_0x4922e5=Math['max'](0x0,_0x2d5226[_0x4a4c6a(0x190)]??0x0),_0x4c0e84=_0x2d5226[_0x4a4c6a(0x1a2)]==null?null:Math[_0x4a4c6a(0x1b3)](0x0,_0x2d5226[_0x4a4c6a(0x1a2)]),_0x56545b=yt(_0x428f7a['map'](_0x1da5c7=>_0x28806d[_0x4a4c6a(0x111)][_0x1da5c7])[_0x4a4c6a(0x159)](_0x584e59=>xt(_0x584e59,_0x28806d,_0x2d5226[_0x4a4c6a(0x159)])),_0x28806d,_0x2d5226[_0x4a4c6a(0x1f2)]);return{'records':vt(_0x56545b,_0x2d5226)[_0x4a4c6a(0x176)](_0x80cef2=>this[_0x4a4c6a(0x113)][_0x4a4c6a(0x152)](Y,this[_0x4a4c6a(0xf4)],this,_0x80cef2['id'],this[_0x4a4c6a(0x113)])),'total':_0x56545b[_0x4a4c6a(0x166)],'offset':_0x4922e5,'limit':_0x4c0e84,'hasMore':_0x4c0e84!=null&&_0x4922e5+_0x4c0e84<_0x56545b[_0x4a4c6a(0x166)]};}[_0x16c455(0x187)](_0x3b46a2,_0x4aafa1='id',_0x438aea){const _0x540359=_0x16c455;let _0x51c9b6=this[_0x540359(0x1b4)](),_0x405a79=Date['now'](),_0x13363f={..._0x438aea,'id':_0x2fbf07(0x6),'values':H(_0x51c9b6,_0x3b46a2,_0x4aafa1),'orderKey':(_0x438aea==null?void 0x0:_0x438aea[_0x540359(0xb0)])||''+_0x405a79,'createdAt':(_0x438aea==null?void 0x0:_0x438aea[_0x540359(0x100)])||_0x405a79,'updatedAt':(_0x438aea==null?void 0x0:_0x438aea['updatedAt'])||_0x405a79};if(!this[_0x540359(0x106)][_0x540359(0x178)](_0x3392fe['id'],{'unitId':this[_0x540359(0xf4)][_0x540359(0x207)](),'tableId':this[_0x540359(0xc0)],'record':_0x13363f,'source':_0x55bebd[_0x540359(0x1ae)]}))throw Error(_0x540359(0x19a)+_0x13363f['id']+'\x22');return this[_0x540359(0x113)]['createInstance'](Y,this[_0x540359(0xf4)],this,_0x13363f['id'],this['_injector']);}[_0x16c455(0x1c5)](_0x3a61c9){const _0x14383e=_0x16c455;if(!_0x3a61c9[_0x14383e(0x166)])return[];let _0x11b9d1=this['_getTable'](),_0x4b8142=Date['now'](),_0x38d8fa=_0x3a61c9[_0x14383e(0x176)]((_0x337bf3,_0x26a816)=>{const _0x291092=_0x14383e;var _0x2edd61,_0x5221c6,_0x105db6;return{..._0x337bf3[_0x291092(0x10f)],'id':_0x2fbf07(0x6),'values':H(_0x11b9d1,_0x337bf3[_0x291092(0x1da)],_0x337bf3[_0x291092(0xa7)]??'id'),'orderKey':((_0x2edd61=_0x337bf3[_0x291092(0x10f)])==null?void 0x0:_0x2edd61[_0x291092(0xb0)])||''+(_0x4b8142+_0x26a816),'createdAt':((_0x5221c6=_0x337bf3['record'])==null?void 0x0:_0x5221c6[_0x291092(0x100)])||_0x4b8142,'updatedAt':((_0x105db6=_0x337bf3[_0x291092(0x10f)])==null?void 0x0:_0x105db6[_0x291092(0x1df)])||_0x4b8142};});if(!this[_0x14383e(0x106)][_0x14383e(0x178)](_0x3ad558['id'],{'unitId':this[_0x14383e(0xf4)][_0x14383e(0x207)](),'tableId':this[_0x14383e(0xc0)],'records':_0x38d8fa,'source':_0x55bebd[_0x14383e(0x1ae)]}))throw Error(_0x14383e(0xac));return _0x38d8fa[_0x14383e(0x176)](_0x8a93d2=>this[_0x14383e(0x113)][_0x14383e(0x152)](Y,this[_0x14383e(0xf4)],this,_0x8a93d2['id'],this[_0x14383e(0x113)]));}[_0x16c455(0xe8)](_0x5e34c2){const _0x55f1d8=_0x16c455;return!_0x5e34c2[_0x55f1d8(0x166)]||this['_commandService'][_0x55f1d8(0x178)](_0x4d8eab['id'],{'unitId':this[_0x55f1d8(0xf4)][_0x55f1d8(0x207)](),'tableId':this['_tableId'],'recordIds':_0x5e34c2,'source':_0x55bebd['Facade']});}[_0x16c455(0x15f)](_0x1a89a8,_0x414dfd,_0x362dd5=0x1,_0x5c176c=0x1){const _0x5e257c=_0x16c455;return this[_0x5e257c(0x113)][_0x5e257c(0x152)](K,this[_0x5e257c(0xf4)],this,{'startRow':_0x1a89a8,'endRow':_0x1a89a8+_0x362dd5-0x1,'startColumn':_0x414dfd,'endColumn':_0x414dfd+_0x5c176c-0x1},this[_0x5e257c(0x113)]);}[_0x16c455(0x1aa)](){const _0x3eb6dc=_0x16c455;var _0x51e194;let _0x91df51=_0x5d9764(this[_0x3eb6dc(0x1b4)]()),_0x505e78=((_0x51e194=_0x91df51[_0x3eb6dc(0xdf)])==null?void 0x0:_0x51e194[_0x3eb6dc(0x166)])??0x0,_0x3cae12=_0x91df51[_0x3eb6dc(0xf6)][_0x3eb6dc(0x159)](_0x2767c4=>V(_0x91df51[_0x3eb6dc(0x155)][_0x2767c4]))['length'];return this['getRange'](0x0,0x0,Math[_0x3eb6dc(0x1b3)](_0x505e78,0x1),Math[_0x3eb6dc(0x1b3)](_0x3cae12,0x1));}[_0x16c455(0x15d)](){const _0x4ba476=_0x16c455;let _0x4eae63=this[_0x4ba476(0x1b4)]();return _0x4eae63[_0x4ba476(0x177)][_0x4ba476(0x159)](_0x31a4de=>_0x4eae63[_0x4ba476(0x162)][_0x31a4de])[_0x4ba476(0x176)](_0x51431d=>this['_injector'][_0x4ba476(0x152)](X,this[_0x4ba476(0xf4)],this,_0x51431d,this[_0x4ba476(0x113)]));}[_0x16c455(0x203)](_0x4a2c0e){const _0x569075=_0x16c455;return this[_0x569075(0x1b4)]()['views'][_0x4a2c0e]?this[_0x569075(0x113)][_0x569075(0x152)](X,this[_0x569075(0xf4)],this,_0x4a2c0e,this[_0x569075(0x113)]):null;}[_0x16c455(0xd8)](_0x89dac3){const _0x1c6e30=_0x16c455;let _0x1f428e=this['_getTable'](),_0x33b810=Object['values'](_0x1f428e[_0x1c6e30(0x162)])[_0x1c6e30(0xb5)](_0x1f26e7=>_0x1f26e7[_0x1c6e30(0x103)]===_0x89dac3);return _0x33b810?this[_0x1c6e30(0x113)][_0x1c6e30(0x152)](X,this[_0x1c6e30(0xf4)],this,_0x33b810['id'],this[_0x1c6e30(0x113)]):null;}[_0x16c455(0xd1)](_0x3bcbf9,_0x10f229,_0xcfd2a0){const _0x14483a=_0x16c455;var _0x3fae1a,_0x35c93c,_0x207b7e,_0x1f38b2;let _0x367f8f=this[_0x14483a(0x1b4)](),_0x15da68=(_0xcfd2a0==null||(_0x3fae1a=_0xcfd2a0[_0x14483a(0x1bf)])==null?void 0x0:_0x3fae1a[_0x14483a(0xf6)])??_0x367f8f[_0x14483a(0xf6)],_0x2c0bc9=[_0x45a674,..._0x15da68[_0x14483a(0x159)](_0x228c02=>V(_0x367f8f[_0x14483a(0x155)][_0x228c02]))],_0x3dd9bc={..._0xcfd2a0==null?void 0x0:_0xcfd2a0[_0x14483a(0x1bf)],'id':_0x2fbf07(0x6),'name':_0x3bcbf9,'type':_0x10f229,'tableId':this[_0x14483a(0xc0)],'config':(_0xcfd2a0==null||(_0x35c93c=_0xcfd2a0[_0x14483a(0x1bf)])==null?void 0x0:_0x35c93c[_0x14483a(0x1f3)])??{},'fieldOrder':_0x2c0bc9,'fieldSettings':{..._0xcfd2a0==null||(_0x207b7e=_0xcfd2a0[_0x14483a(0x1bf)])==null?void 0x0:_0x207b7e[_0x14483a(0x1de)],[_0x45a674]:{..._0xcfd2a0==null||(_0x1f38b2=_0xcfd2a0['view'])==null||(_0x1f38b2=_0x1f38b2[_0x14483a(0x1de)])==null?void 0x0:_0x1f38b2[_0x45a674],'hidden':!0x0}}};if(!this[_0x14483a(0x106)][_0x14483a(0x178)](_0x4a240d['id'],{'unitId':this[_0x14483a(0xf4)][_0x14483a(0x207)](),'tableId':this[_0x14483a(0xc0)],'view':_0x3dd9bc,'index':_0xcfd2a0==null?void 0x0:_0xcfd2a0[_0x14483a(0x144)]}))throw Error(_0x14483a(0x186)+_0x3bcbf9+'\x22');return this[_0x14483a(0x113)][_0x14483a(0x152)](X,this['_base'],this,_0x3dd9bc['id'],this[_0x14483a(0x113)]);}['getSchema'](){const _0x1a7d60=_0x16c455;let _0x4b10aa=this['_getTable'](),_0x1eeaca=_0x4b10aa[_0x1a7d60(0xf6)][_0x1a7d60(0x159)](_0x2e5f25=>V(_0x4b10aa['fields'][_0x2e5f25])),_0x2e2d3d=_0x4b10aa[_0x1a7d60(0x177)]['filter'](_0x36cd44=>_0x4b10aa[_0x1a7d60(0x162)][_0x36cd44]);return{'id':_0x4b10aa['id'],'name':_0x4b10aa[_0x1a7d60(0x103)],'formulaName':this[_0x1a7d60(0x15c)](),'primaryFieldId':_0x4b10aa[_0x1a7d60(0x185)],'fieldIds':_0x1eeaca,'viewIds':_0x2e2d3d,'recordCount':this[_0x1a7d60(0x127)]()[_0x1a7d60(0x166)],'fields':_0x1eeaca['map'](_0x1e199c=>{const _0x1d9a27=_0x1a7d60;let _0x554402=_0x4b10aa[_0x1d9a27(0x155)][_0x1e199c];return{'id':_0x554402['id'],'name':_0x554402[_0x1d9a27(0x103)],'type':_0x554402[_0x1d9a27(0x14d)],'config':_0x554402[_0x1d9a27(0x1f3)],'readonly':_0x554402['readonly'],'description':_0x554402[_0x1d9a27(0x121)]};}),'views':_0x2e2d3d['map'](_0x199893=>{const _0x47cc21=_0x1a7d60;let _0x4dc2db=_0x4b10aa[_0x47cc21(0x162)][_0x199893];return{'id':_0x4dc2db['id'],'name':_0x4dc2db['name'],'type':_0x4dc2db['type']};})};}[_0x16c455(0x1b4)](){const _0x3a9a4e=_0x16c455;let _0x4a02ca=this[_0x3a9a4e(0xf4)][_0x3a9a4e(0xaa)]()[_0x3a9a4e(0x15a)]()[_0x3a9a4e(0x148)][this[_0x3a9a4e(0xc0)]];if(!_0x4a02ca)throw Error(_0x3a9a4e(0xed)+this[_0x3a9a4e(0xc0)]+_0x3a9a4e(0x1f6));return _0x4a02ca;}[_0x16c455(0x127)](_0x5d196f={}){const _0x6db704=_0x16c455;let _0x4b06be=this[_0x6db704(0xf4)][_0x6db704(0xaa)]()[_0x6db704(0x15a)](),_0x4578bb=this[_0x6db704(0x1b4)]();if(_0x5d196f[_0x6db704(0x11c)]){let _0x2da279=this['_projectionService'][_0x6db704(0xef)](_0x4b06be,this['_tableId'],_0x5d196f[_0x6db704(0x11c)]);if('rows'in _0x2da279&&Array[_0x6db704(0xea)](_0x2da279['rows']))return _0x2da279[_0x6db704(0x137)][_0x6db704(0x176)](_0x49582f=>_0x49582f[_0x6db704(0xa8)]);}return(_0x4578bb[_0x6db704(0xdf)]?_0x4578bb[_0x6db704(0xdf)]['map'](_0x187456=>_0x4578bb[_0x6db704(0x111)][_0x187456]):Object['values'](_0x4578bb[_0x6db704(0x111)])[_0x6db704(0x1f2)]((_0x3493b6,_0x310ddb)=>_0x3493b6[_0x6db704(0xb0)][_0x6db704(0x14c)](_0x310ddb[_0x6db704(0xb0)])))[_0x6db704(0x159)](_0x300223=>_0x300223)['map'](_0x5c1b84=>_0x5c1b84['id']);}};Z=z([R(0x3,_0x18d666),R(0x4,_0x5e35b8),R(0x5,_0x499ad2)],Z);function vt(_0x54f84b,_0x4b2a36){const _0x62559e=_0x16c455;let _0x2414eb=Math[_0x62559e(0x1b3)](0x0,_0x4b2a36[_0x62559e(0x190)]??0x0);return _0x4b2a36['limit']==null?_0x54f84b['slice'](_0x2414eb):_0x54f84b[_0x62559e(0xfe)](_0x2414eb,_0x2414eb+Math['max'](0x0,_0x4b2a36[_0x62559e(0x1a2)]));}function yt(_0x1109b4,_0x47e426,_0x5c9f4d=[]){return _0x5c9f4d['length']?[..._0x1109b4]['sort']((_0x177546,_0x4c2923)=>{const _0x1e6b40=_0x459a;for(let _0x38a012 of _0x5c9f4d){var _0x361dee;let _0x3d8981=_0x38a012[_0x1e6b40(0x189)]===_0x1fbd79[_0x1e6b40(0xb1)]?-0x1:0x1,_0x5847af=bt(_0x177546[_0x1e6b40(0x1da)][_0x38a012['fieldId']],_0x4c2923[_0x1e6b40(0x1da)][_0x38a012[_0x1e6b40(0x206)]],(_0x361dee=_0x47e426['fields'][_0x38a012[_0x1e6b40(0x206)]])==null?void 0x0:_0x361dee[_0x1e6b40(0x14d)]);if(_0x5847af!==0x0)return _0x5847af*_0x3d8981;}return String(_0x177546[_0x1e6b40(0xb0)]??_0x177546['id'])['localeCompare'](String(_0x4c2923[_0x1e6b40(0xb0)]??_0x4c2923['id']));}):_0x1109b4;}function bt(_0x5a68cc,_0x178dbe,_0x31a9f8){const _0x18c044=_0x16c455;return _0x5a68cc==null&&_0x178dbe==null?0x0:_0x5a68cc==null?-0x1:_0x178dbe==null?0x1:typeof _0x5a68cc==_0x18c044(0xd3)&&typeof _0x178dbe==_0x18c044(0xd3)?_0x5a68cc-_0x178dbe:_0x31a9f8===_0x5c585e[_0x18c044(0x142)]?Number(_0x5a68cc)-Number(_0x178dbe):String(_0x5a68cc)[_0x18c044(0x14c)](String(_0x178dbe));}function xt(_0x5506fc,_0x2a069b,_0x4a2d96){const _0x414ce4=_0x16c455;var _0x37c178;if(!_0x4a2d96||!((_0x37c178=_0x4a2d96['conditions'])!=null&&_0x37c178['length']))return!0x0;let {conjunction:_0x3c6d79=_0xf11f7f['OR'],conditions:_0x12c877}=_0x4a2d96;return _0x3c6d79===_0xf11f7f['AND']&&_0x12c877[_0x414ce4(0x166)]>0x1?_0x12c877[_0x414ce4(0x17a)](_0x48acb0=>St(_0x5506fc,_0x2a069b,_0x48acb0)):_0x12c877[_0x414ce4(0x1a8)](_0x87fb17=>St(_0x5506fc,_0x2a069b,_0x87fb17));}function St(_0x556020,_0x2f858c,_0x1d0d7a){const _0xb633ec=_0x16c455;let _0x3db4be=_0x556020['values'][_0x1d0d7a[_0xb633ec(0x206)]],_0x1f0563=_0x2f858c['fields'][_0x1d0d7a[_0xb633ec(0x206)]];if(Ct(_0x1d0d7a)){let _0x5242c8=wt(_0x1d0d7a)['test'](String(_0x3db4be??''));return _0x1d0d7a[_0xb633ec(0x10c)]==='matches'?_0x5242c8:!_0x5242c8;}return!_0x1f0563||_0x1c8da0(_0x3db4be,_0x1d0d7a[_0xb633ec(0x10c)],_0x1d0d7a['value'],_0x1f0563);}function Ct(_0xfcd20e){const _0xdef729=_0x16c455;return _0xfcd20e[_0xdef729(0x10c)]===_0xdef729(0xa9)||_0xfcd20e['operator']===_0xdef729(0x1b6);}function wt(_0x3c8cd7){const _0x41efad=_0x16c455;let _0x440705=String(_0x3c8cd7['value']??'');if(_0x440705[_0x41efad(0x166)]>0x200)throw Error(_0x41efad(0x1ad));try{return new RegExp(_0x440705,_0x3c8cd7['caseSensitive']?void 0x0:'i');}catch(_0x3288fa){throw Error(_0x41efad(0xa3)+_0x440705+'.\x20'+(_0x3288fa instanceof Error?_0x3288fa[_0x41efad(0x200)]:String(_0x3288fa)));}}function Tt(_0xe96adb,_0x48eb71,_0x1d62b5){const _0xf01a3c=_0x16c455;if(_0x1d62b5[_0xf01a3c(0x14d)]!=='invalid'&&_0x1d62b5[_0xf01a3c(0x14d)]!==_0xf01a3c(0x18a)){var _0x18c1e2;if(_0x1d62b5[_0xf01a3c(0x14d)]===_0x1eb8c0[_0xf01a3c(0x1db)]){var _0x4e5b53;let _0x38fb76=[((_0x4e5b53=_0x1d62b5[_0xf01a3c(0x155)])==null||(_0x4e5b53=_0x4e5b53[0x0])==null?void 0x0:_0x4e5b53['id'])??_0xe96adb[_0xf01a3c(0x185)],..._0x1d62b5[_0xf01a3c(0xd6)]??[]];return Array['from'](new Set(_0x38fb76['filter'](_0x489728=>!!_0xe96adb[_0xf01a3c(0x155)][_0x489728])));}if((_0x18c1e2=_0x1d62b5[_0xf01a3c(0x155)])!=null&&_0x18c1e2[_0xf01a3c(0x166)])return _0x1d62b5['fields'][_0xf01a3c(0x176)](_0x2b05cc=>_0x2b05cc['id'])[_0xf01a3c(0x159)](_0x4455b8=>{const _0xca399b=_0xf01a3c;var _0x44c602;return!(!_0xe96adb[_0xca399b(0x155)][_0x4455b8]||_0x48eb71!=null&&(_0x44c602=_0x48eb71[_0xca399b(0x1de)])!=null&&(_0x44c602=_0x44c602[_0x4455b8])!=null&&_0x44c602['hidden']);});}return _0xe96adb[_0xf01a3c(0xf6)][_0xf01a3c(0x159)](_0x5abcd3=>{const _0x30d26e=_0xf01a3c;var _0x3e9be1;return!(!_0xe96adb[_0x30d26e(0x155)][_0x5abcd3]||_0x48eb71!=null&&(_0x3e9be1=_0x48eb71[_0x30d26e(0x1de)])!=null&&(_0x3e9be1=_0x3e9be1[_0x5abcd3])!=null&&_0x3e9be1[_0x30d26e(0x1ce)]);});}let Q=class extends _0x287fc3[_0x16c455(0x202)]{constructor(_0x22eceb,_0x398b77,_0xbde0b9,_0x1743ae,_0x480d89){const _0x3969a1=_0x16c455;super(),this[_0x3969a1(0xf4)]=_0x22eceb,this[_0x3969a1(0x113)]=_0x398b77,this[_0x3969a1(0x16e)]=_0xbde0b9,this['_commandService']=_0x1743ae,this[_0x3969a1(0x1a4)]=_0x480d89;}['getBase'](){const _0x529cd3=_0x16c455;return this[_0x529cd3(0xf4)];}[_0x16c455(0x207)](){const _0x3c201c=_0x16c455;return this['_base'][_0x3c201c(0x109)]();}['getPermission'](){const _0x2624db=_0x16c455;return new at(this[_0x2624db(0x207)](),this[_0x2624db(0x106)],this['_permissionService']);}[_0x16c455(0xc4)](){const _0x5d51ae=_0x16c455;return this[_0x5d51ae(0x16e)][_0x5d51ae(0x1b0)](this[_0x5d51ae(0x207)]())??_0x49e7b0['deepClone'](this[_0x5d51ae(0xf4)][_0x5d51ae(0x15a)]());}[_0x16c455(0x180)](){const _0x3b6b8a=_0x16c455;return this[_0x3b6b8a(0xf4)][_0x3b6b8a(0x15a)]()[_0x3b6b8a(0x103)];}[_0x16c455(0xf1)](_0xd36e28){const _0x1d6bff=_0x16c455;this['_commandService'][_0x1d6bff(0x178)](_0x841eca['id'],{'unitId':this['getId'](),'name':_0xd36e28});}[_0x16c455(0xc3)](){const _0x4d55d6=_0x16c455;let _0x23fc8b=this['_base']['getSnapshot']();return _0x23fc8b[_0x4d55d6(0xca)][_0x4d55d6(0x176)](_0x20a963=>_0x23fc8b[_0x4d55d6(0x148)][_0x20a963])[_0x4d55d6(0x159)](_0x1f523c=>_0x1f523c)[_0x4d55d6(0x176)](_0x4bf6a5=>this[_0x4d55d6(0x113)][_0x4d55d6(0x152)](Z,this,_0x4bf6a5['id'],this['_injector']));}[_0x16c455(0x15e)](_0x222c5e){const _0x23552e=_0x16c455;let _0x2fbffd=this['_base'][_0x23552e(0x15a)]()[_0x23552e(0x148)][_0x222c5e];return _0x2fbffd?this[_0x23552e(0x113)][_0x23552e(0x152)](Z,this,_0x2fbffd['id'],this[_0x23552e(0x113)]):null;}[_0x16c455(0x1fd)](_0x5b0f31){const _0x5c7fdf=_0x16c455;let _0x44bf13=this['_base'][_0x5c7fdf(0x15a)](),_0x4ffd5d=Object[_0x5c7fdf(0x1da)](_0x44bf13[_0x5c7fdf(0x148)])['find'](_0x14ab3f=>_0x14ab3f[_0x5c7fdf(0x103)]===_0x5b0f31);return _0x4ffd5d?this[_0x5c7fdf(0x113)][_0x5c7fdf(0x152)](Z,this,_0x4ffd5d['id'],this['_injector']):null;}[_0x16c455(0x135)](_0xc54d79,_0x4e8dc2){const _0x296cc1=_0x16c455;let _0x4ef377=_0x440368({'id':_0x2fbf07(),'name':_0xc54d79,..._0x4e8dc2==null?void 0x0:_0x4e8dc2[_0x296cc1(0x1e6)],'primaryFieldName':_0x4e8dc2==null?void 0x0:_0x4e8dc2[_0x296cc1(0x1dd)]}),_0x2fc284=_0x49e7b0[_0x296cc1(0xc1)](_0x4ef377,(_0x4e8dc2==null?void 0x0:_0x4e8dc2[_0x296cc1(0x1e6)])??{}),_0x11de6a=_0x2628b6(this[_0x296cc1(0xf4)][_0x296cc1(0x15a)](),_0x2fc284[_0x296cc1(0x103)]);if(!_0x11de6a[_0x296cc1(0x139)])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0x2fc284['name']+_0x296cc1(0x1f5)+_0x229298+'\x20'+_0x11de6a[_0x296cc1(0xd9)]);if(!this[_0x296cc1(0x106)]['syncExecuteCommand'](_0x5c901d['id'],{'unitId':this['_base'][_0x296cc1(0x109)](),'table':_0x2fc284,'index':_0x4e8dc2==null?void 0x0:_0x4e8dc2[_0x296cc1(0x144)]}))throw Error(_0x296cc1(0x17d)+_0xc54d79+'\x22.');return this[_0x296cc1(0x113)]['createInstance'](Z,this,_0x2fc284['id'],this['_injector']);}[_0x16c455(0x1c1)](_0x5878da){const _0x1236aa=_0x16c455;let _0x19561f=typeof _0x5878da==_0x1236aa(0x1d6)?_0x5878da:_0x5878da['getId']();if(!this['_commandService'][_0x1236aa(0x178)](_0x971b27['id'],{'unitId':this[_0x1236aa(0xf4)][_0x1236aa(0x109)](),'tableId':_0x19561f}))throw Error(_0x1236aa(0x1e3)+_0x19561f+'\x22.');return!0x0;}[_0x16c455(0x13e)](_0x5d5e24,_0x2e34a5){const _0x7586c9=_0x16c455;let _0x4434e3=this[_0x7586c9(0xf4)][_0x7586c9(0x15a)](),_0x473a2f=typeof _0x5d5e24==_0x7586c9(0x1d6)?_0x5d5e24:_0x5d5e24[_0x7586c9(0x207)](),_0xbfeece=_0x4434e3[_0x7586c9(0x148)][_0x473a2f];if(!_0xbfeece)throw Error(_0x7586c9(0x1b5)+_0x473a2f+_0x7586c9(0x1f6));let _0x1d685e=_0x4434e3[_0x7586c9(0xca)][_0x7586c9(0x107)](_0x473a2f)+0x1,_0x2646f6=_0x2fbf07(),_0xf618e7=_0x35aced(_0xbfeece,{'id':_0x2646f6,'name':_0x9242a1(_0x4434e3,_0xbfeece[_0x7586c9(0x103)]+_0x7586c9(0x182)),'includeRecords':(_0x2e34a5==null?void 0x0:_0x2e34a5['includeRecords'])??!0x1,'regenerateViewIds':(_0x2e34a5==null?void 0x0:_0x2e34a5[_0x7586c9(0xb2)])??!0x1});if(!this[_0x7586c9(0x106)]['syncExecuteCommand'](_0x5c901d['id'],{'unitId':this[_0x7586c9(0xf4)]['getUnitId'](),'table':_0xf618e7,'index':_0x1d685e}))throw Error(_0x7586c9(0x204)+_0x473a2f+'\x22.');return this[_0x7586c9(0x113)][_0x7586c9(0x152)](Z,this,_0xf618e7['id'],this[_0x7586c9(0x113)]);}[_0x16c455(0xf9)](){const _0x50a277=_0x16c455;let _0x372646=this[_0x50a277(0xf4)]['getSnapshot']();return{'id':_0x372646['id'],'name':_0x372646[_0x50a277(0x103)],'tables':this['getTables']()[_0x50a277(0x176)](_0x3d1289=>_0x3d1289[_0x50a277(0xf9)]())};}};Q=z([R(0x1,_0x210e70(_0x291a51)),R(0x2,_0x4e24c1),R(0x3,_0x18d666),R(0x4,_0x5e35b8)],Q);var Et=class extends _0x292e04{['_initialize'](){const _0x2d7486=_0x16c455;this[_0x2d7486(0x1f9)](),this[_0x2d7486(0xfc)]();}[_0x16c455(0x14a)](_0x381232={},_0x1d123f){const _0x4814ac=_0x16c455;let _0x19f500=this['_univerInstanceService'][_0x4814ac(0x193)](_0x251beb[_0x4814ac(0xe1)],_0x381232,_0x1d123f);return this[_0x4814ac(0x113)][_0x4814ac(0x152)](Q,_0x19f500);}[_0x16c455(0x12e)](){const _0x29659b=_0x16c455;let _0x2f79f5=this[_0x29659b(0xd5)][_0x29659b(0x18d)](_0x251beb[_0x29659b(0xe1)]);return _0x2f79f5?this[_0x29659b(0x113)][_0x29659b(0x152)](Q,_0x2f79f5):null;}['getBase'](_0x7296fd){const _0x26fc7e=_0x16c455;let _0x3f4623=this[_0x26fc7e(0xd5)]['getUnit'](_0x7296fd,_0x251beb[_0x26fc7e(0xe1)]);return _0x3f4623?this[_0x26fc7e(0x113)][_0x26fc7e(0x152)](Q,_0x3f4623):null;}['getBases'](){const _0x1ee196=_0x16c455;return this['_univerInstanceService'][_0x1ee196(0x1b1)](_0x251beb[_0x1ee196(0xe1)])[_0x1ee196(0x176)](_0x144a7a=>this[_0x1ee196(0x113)][_0x1ee196(0x152)](Q,_0x144a7a));}[_0x16c455(0xfc)](){const _0x13dd80=_0x16c455;this[_0x13dd80(0x160)](this[_0x13dd80(0x1b9)](this[_0x13dd80(0x112)]['BaseHierarchyChanged'],()=>this[_0x13dd80(0x106)][_0x13dd80(0xa4)]((_0x34289d,_0x3be2a9)=>{const _0x57c24b=_0x13dd80;var _0x4f77f6;if(!$(_0x34289d,_0x2ad321))return;let _0x2e1d5b=_0x34289d[_0x57c24b(0xdd)];if(!((_0x4f77f6=_0x2e1d5b['hierarchyChanges'])!=null&&_0x4f77f6[_0x57c24b(0x166)]))return;let _0x5a9d84=this[_0x57c24b(0xaa)](_0x2e1d5b[_0x57c24b(0x183)]),_0x2657cb=_0x5a9d84==null?void 0x0:_0x5a9d84[_0x57c24b(0x15e)](_0x2e1d5b['hierarchyChanges'][0x0][_0x57c24b(0x164)]);if(!_0x5a9d84||!_0x2657cb)return;let _0x39c841={'base':_0x5a9d84,'table':_0x2657cb,'changes':_0x2e1d5b[_0x57c24b(0x105)],'source':_0x3be2a9!=null&&_0x3be2a9[_0x57c24b(0xc8)]?_0x55bebd[_0x57c24b(0x1ee)]:_0x2e1d5b['source']??_0x55bebd['UI']};this[_0x57c24b(0xe3)](this[_0x57c24b(0x112)][_0x57c24b(0x18b)],_0x39c841);}))),this['disposeWithMe'](this[_0x13dd80(0x1b9)](this[_0x13dd80(0x112)][_0x13dd80(0xfa)],()=>this[_0x13dd80(0x106)][_0x13dd80(0xa4)](_0x2182a4=>{const _0x46df6e=_0x13dd80;if(_0x2182a4['id']!==_0x5c901d['id'])return;let {unitId:_0x4cd35d,table:_0x4dd934,index:_0x44fbf6}=_0x2182a4['params'],_0x3db65d=this['getBase'](_0x4cd35d);if(!_0x3db65d)return;let _0x4ba1c8={'base':_0x3db65d,'table':_0x4dd934,'index':_0x44fbf6};this[_0x46df6e(0xe3)](this[_0x46df6e(0x112)][_0x46df6e(0xfa)],_0x4ba1c8);}))),this[_0x13dd80(0x160)](this[_0x13dd80(0x1b9)](this['Event']['BaseTableFieldCreated'],()=>this[_0x13dd80(0x106)][_0x13dd80(0xa4)](_0x38fac1=>{const _0x2140fe=_0x13dd80;if(_0x38fac1['id']!==_0x3de3f5['id'])return;let {unitId:_0x447011,tableId:_0x27519e,field:_0x5becc5,index:_0x526854,viewIndexes:_0x28d968}=_0x38fac1['params'],_0x243b91=this[_0x2140fe(0xaa)](_0x447011);if(!_0x243b91)return;let _0x1454c2=_0x243b91[_0x2140fe(0x15e)](_0x27519e);if(!_0x1454c2)return;let _0x4cac68={'base':_0x243b91,'table':_0x1454c2,'field':_0x5becc5,'index':_0x526854,'viewIndexes':_0x28d968};this[_0x2140fe(0xe3)](this[_0x2140fe(0x112)][_0x2140fe(0x1c9)],_0x4cac68);}))),this[_0x13dd80(0x160)](this[_0x13dd80(0x1b9)](this[_0x13dd80(0x112)][_0x13dd80(0x12c)],()=>this['_commandService'][_0x13dd80(0xa4)](_0x12e433=>{const _0xe094=_0x13dd80;if(_0x12e433['id']!==_0x3392fe['id']&&_0x12e433['id']!==_0x3ad558['id'])return;let _0xf19533=_0x12e433['params'],{unitId:_0x3380f6,tableId:_0x1b9516}=_0xf19533,_0x261cb3=_0xf19533[_0xe094(0x111)]??[_0xf19533['record']],_0xba8729=this[_0xe094(0xaa)](_0x3380f6);if(!_0xba8729)return;let _0x2511c9=_0xba8729[_0xe094(0x15e)](_0x1b9516);if(!_0x2511c9)return;let _0x2eb0d3={'base':_0xba8729,'table':_0x2511c9,'records':_0x261cb3};this[_0xe094(0xe3)](this['Event'][_0xe094(0x12c)],_0x2eb0d3);}))),this[_0x13dd80(0x160)](this[_0x13dd80(0x1b9)](this[_0x13dd80(0x112)][_0x13dd80(0x114)],()=>this[_0x13dd80(0x106)][_0x13dd80(0xa4)](_0x174cbc=>{const _0x394339=_0x13dd80;if(_0x174cbc['id']!==_0x4a240d['id'])return;let {unitId:_0x3aa0d6,tableId:_0x4bd35e,view:_0x1d2fcf,index:_0x29d62c}=_0x174cbc[_0x394339(0xdd)],_0x50cc60=this['getBase'](_0x3aa0d6);if(!_0x50cc60)return;let _0x3c8286=_0x50cc60[_0x394339(0x15e)](_0x4bd35e);if(!_0x3c8286)return;let _0x5360ce={'base':_0x50cc60,'table':_0x3c8286,'view':_0x1d2fcf,'index':_0x29d62c};this[_0x394339(0xe3)](this[_0x394339(0x112)][_0x394339(0x114)],_0x5360ce);}))),this['disposeWithMe'](this[_0x13dd80(0x1b9)](this[_0x13dd80(0x112)]['BaseTableCellValueChanged'],()=>this['_commandService']['onCommandExecuted'](_0x229c77=>{const _0xf0c1a2=_0x13dd80;if(_0x229c77['id']!==_0x56896a['id'])return;let {unitId:_0x3011e0,tableId:_0x285105,recordId:_0x46e609,fieldId:_0x5a73a2,value:_0x4ef8f3}=_0x229c77[_0xf0c1a2(0xdd)],_0x186e38=this[_0xf0c1a2(0xaa)](_0x3011e0);if(!_0x186e38)return;let _0x2c83fc=_0x186e38[_0xf0c1a2(0x15e)](_0x285105);if(!_0x2c83fc)return;let _0x52fd74=_0x2c83fc[_0xf0c1a2(0x181)](_0x5a73a2);if(!_0x52fd74)return;let _0x9045c7=_0x2c83fc[_0xf0c1a2(0xb6)](_0x46e609);if(!_0x9045c7)return;let _0x1e983d={'base':_0x186e38,'table':_0x2c83fc,'field':_0x52fd74,'record':_0x9045c7,'value':_0x4ef8f3};this['fireEvent'](this['Event'][_0xf0c1a2(0x1d8)],_0x1e983d);})));}[_0x16c455(0x1f9)](){const _0x5ad95a=_0x16c455;this[_0x5ad95a(0x160)](this[_0x5ad95a(0x1b9)](this[_0x5ad95a(0x112)][_0x5ad95a(0x161)],()=>this[_0x5ad95a(0x106)][_0x5ad95a(0x1ba)](_0x3ba350=>{const _0x43bf2b=_0x5ad95a;if($(_0x3ba350,_0xe2fa79)){let {unitId:_0x284a17,tableId:_0x6dd0ce,patches:_0x203072,source:_0x262eeb=_0x55bebd['UI']}=_0x3ba350[_0x43bf2b(0xdd)],_0x536e13=this[_0x43bf2b(0x1d7)](_0x284a17,_0x6dd0ce);if(!_0x536e13)return;this[_0x43bf2b(0x17b)](_0x536e13[_0x43bf2b(0xc2)],_0x536e13[_0x43bf2b(0x1e6)],_0x25cefd(_0x536e13[_0x43bf2b(0x1e6)]['getTable'](),_0x203072),_0x262eeb);return;}if($(_0x3ba350,_0x5ac327)){let {unitId:_0x482b74,tableId:_0x151cca,patches:_0x11fd8a,source:_0x360105=_0x55bebd['UI']}=_0x3ba350['params'],_0x5c4d5e=this[_0x43bf2b(0x1d7)](_0x482b74,_0x151cca);if(!_0x5c4d5e)return;let _0x186549=_0x5c4d5e[_0x43bf2b(0x1e6)][_0x43bf2b(0x147)]();this[_0x43bf2b(0x17b)](_0x5c4d5e[_0x43bf2b(0xc2)],_0x5c4d5e[_0x43bf2b(0x1e6)],_0x25cefd(_0x186549,_0x5f2520(_0x186549,_0x11fd8a)),_0x360105);return;}if($(_0x3ba350,_0x3392fe)){let _0x442afd=_0x3ba350['params'],_0x38eee0=this[_0x43bf2b(0x1d7)](_0x442afd[_0x43bf2b(0x183)],_0x442afd['tableId']);if(!_0x38eee0)return;this[_0x43bf2b(0x17b)](_0x38eee0[_0x43bf2b(0xc2)],_0x38eee0[_0x43bf2b(0x1e6)],_0x21de02(_0x38eee0[_0x43bf2b(0x1e6)][_0x43bf2b(0x147)](),[_0x442afd[_0x43bf2b(0x10f)]]),_0x442afd['source']??_0x55bebd['UI']);return;}if($(_0x3ba350,_0x3ad558)){let _0x12a10c=_0x3ba350[_0x43bf2b(0xdd)],_0x35fd5d=this[_0x43bf2b(0x1d7)](_0x12a10c[_0x43bf2b(0x183)],_0x12a10c[_0x43bf2b(0x164)]);if(!_0x35fd5d)return;this[_0x43bf2b(0x17b)](_0x35fd5d[_0x43bf2b(0xc2)],_0x35fd5d[_0x43bf2b(0x1e6)],_0x21de02(_0x35fd5d[_0x43bf2b(0x1e6)]['getTable'](),_0x12a10c['records']),_0x12a10c[_0x43bf2b(0x191)]??_0x55bebd['UI']);return;}if($(_0x3ba350,_0x12761d)){let _0x3b4732=_0x3ba350[_0x43bf2b(0xdd)],_0x3121cc=this[_0x43bf2b(0x1d7)](_0x3b4732[_0x43bf2b(0x183)],_0x3b4732[_0x43bf2b(0x164)]);if(!_0x3121cc)return;this['_fireBeforeHierarchyChange'](_0x3121cc[_0x43bf2b(0xc2)],_0x3121cc[_0x43bf2b(0x1e6)],_0x21de02(_0x3121cc['table'][_0x43bf2b(0x147)](),[_0x3b4732[_0x43bf2b(0x10f)]]),_0x3b4732['source']??_0x55bebd['UI']);return;}if($(_0x3ba350,_0x1c837a)){let _0x185c71=_0x3ba350[_0x43bf2b(0xdd)],_0x32b190=this[_0x43bf2b(0x1d7)](_0x185c71[_0x43bf2b(0x183)],_0x185c71[_0x43bf2b(0x164)]);if(!_0x32b190)return;let _0x1bb568=_0x32b190[_0x43bf2b(0x1e6)][_0x43bf2b(0x147)](),_0x234435=_0x185c71[_0x43bf2b(0x206)]??_0x4e6087(_0x1bb568),_0x4e3dea=_0x1a3563(_0x1bb568,_0x234435)['parentByRecordId'][_0x43bf2b(0x14f)](_0x185c71[_0x43bf2b(0xa8)])??null;this[_0x43bf2b(0x17b)](_0x32b190['base'],_0x32b190[_0x43bf2b(0x1e6)],[{'tableId':_0x185c71[_0x43bf2b(0x164)],'fieldId':_0x234435,'recordId':_0x185c71[_0x43bf2b(0xa8)],'oldParentRecordId':_0x4e3dea,'parentRecordId':_0x185c71[_0x43bf2b(0xd0)]}],_0x185c71[_0x43bf2b(0x191)]??_0x55bebd['UI']);return;}if($(_0x3ba350,_0x2e5ba5)){let _0x11226e=_0x3ba350[_0x43bf2b(0xdd)],_0x296904=this[_0x43bf2b(0x1d7)](_0x11226e[_0x43bf2b(0x183)],_0x11226e[_0x43bf2b(0x164)]);if(!_0x296904)return;let _0xe9c929=_0x11226e[_0x43bf2b(0x206)]??_0x4e6087(_0x296904[_0x43bf2b(0x1e6)][_0x43bf2b(0x147)]());this[_0x43bf2b(0x17b)](_0x296904['base'],_0x296904['table'],[{'tableId':_0x11226e[_0x43bf2b(0x164)],'fieldId':_0xe9c929,'recordId':_0x11226e[_0x43bf2b(0x10f)]['id'],'oldParentRecordId':null,'parentRecordId':_0x11226e['parentRecordId']}],_0x11226e[_0x43bf2b(0x191)]??_0x55bebd['UI']);return;}if($(_0x3ba350,_0x2a07c2)){let _0x3b5c4c=_0x3ba350[_0x43bf2b(0xdd)],_0x57929a=this['_getHierarchyEventContext'](_0x3b5c4c['unitId'],_0x3b5c4c[_0x43bf2b(0x164)]);if(!_0x57929a)return;this['_fireBeforeHierarchyChange'](_0x57929a[_0x43bf2b(0xc2)],_0x57929a[_0x43bf2b(0x1e6)],_0xf2e815(_0x57929a['table'][_0x43bf2b(0x147)](),[_0x3b5c4c[_0x43bf2b(0xa8)]]),_0x3b5c4c[_0x43bf2b(0x191)]??_0x55bebd['UI']);return;}if($(_0x3ba350,_0x4d8eab)){let _0x6617d5=_0x3ba350['params'],_0x3ab774=this[_0x43bf2b(0x1d7)](_0x6617d5['unitId'],_0x6617d5[_0x43bf2b(0x164)]);if(!_0x3ab774)return;this[_0x43bf2b(0x17b)](_0x3ab774['base'],_0x3ab774[_0x43bf2b(0x1e6)],_0xf2e815(_0x3ab774[_0x43bf2b(0x1e6)]['getTable'](),_0x6617d5[_0x43bf2b(0x1fb)]),_0x6617d5[_0x43bf2b(0x191)]??_0x55bebd['UI']);return;}if(!$(_0x3ba350,_0x56896a))return;let _0x57269e=_0x3ba350[_0x43bf2b(0xdd)],_0x5af5a4=this['_getHierarchyEventContext'](_0x57269e[_0x43bf2b(0x183)],_0x57269e[_0x43bf2b(0x164)]);if(!_0x5af5a4)return;let _0x24ccc5=_0x5af5a4['table'][_0x43bf2b(0x147)]();if(!_0x33c8d6(_0x24ccc5)['includes'](_0x57269e[_0x43bf2b(0x206)]))return;let _0x14ee33=_0x1a3563(_0x24ccc5,_0x57269e[_0x43bf2b(0x206)])[_0x43bf2b(0x13f)]['get'](_0x57269e[_0x43bf2b(0xa8)])??null,_0xd57aac=_0x335852(_0x57269e[_0x43bf2b(0xc6)])[0x0]??null;_0x14ee33!==_0xd57aac&&this[_0x43bf2b(0x17b)](_0x5af5a4[_0x43bf2b(0xc2)],_0x5af5a4[_0x43bf2b(0x1e6)],[{'tableId':_0x57269e[_0x43bf2b(0x164)],'fieldId':_0x57269e[_0x43bf2b(0x206)],'recordId':_0x57269e[_0x43bf2b(0xa8)],'oldParentRecordId':_0x14ee33,'parentRecordId':_0xd57aac}],_0x57269e[_0x43bf2b(0x191)]??_0x55bebd['UI']);}))),this[_0x5ad95a(0x160)](this['registerEventHandler'](this[_0x5ad95a(0x112)][_0x5ad95a(0x13b)],()=>this[_0x5ad95a(0x106)][_0x5ad95a(0x1ba)](_0x2ae937=>{const _0x120a15=_0x5ad95a;if(_0x2ae937['id']!==_0x5c901d['id'])return;let {unitId:_0xa486b9,table:_0x29624e,index:_0x30b20c}=_0x2ae937['params'],_0x11e683=this[_0x120a15(0xaa)](_0xa486b9);if(!_0x11e683)return;let _0x5971a8={'base':_0x11e683,'table':_0x29624e,'index':_0x30b20c};if(this[_0x120a15(0xe3)](this[_0x120a15(0x112)]['BeforeBaseTableCreate'],_0x5971a8),_0x5971a8[_0x120a15(0x123)])throw new _0x3a850a();}))),this[_0x5ad95a(0x160)](this[_0x5ad95a(0x1b9)](this[_0x5ad95a(0x112)][_0x5ad95a(0x110)],()=>this[_0x5ad95a(0x106)][_0x5ad95a(0x1ba)](_0x1e68c6=>{const _0x595366=_0x5ad95a;if(_0x1e68c6['id']!==_0x3de3f5['id'])return;let {unitId:_0x4366f2,tableId:_0x230956,field:_0xb1a10a,index:_0x51981f,viewIndexes:_0x2043f0}=_0x1e68c6[_0x595366(0xdd)],_0x3d3c42=this['getBase'](_0x4366f2);if(!_0x3d3c42)return;let _0x1086d2=_0x3d3c42[_0x595366(0x15e)](_0x230956);if(!_0x1086d2)return;let _0x560296={'base':_0x3d3c42,'table':_0x1086d2,'field':_0xb1a10a,'index':_0x51981f,'viewIndexes':_0x2043f0};if(this[_0x595366(0xe3)](this[_0x595366(0x112)]['BeforeBaseTableFieldCreate'],_0x560296),_0x560296[_0x595366(0x123)])throw new _0x3a850a();}))),this['disposeWithMe'](this[_0x5ad95a(0x1b9)](this[_0x5ad95a(0x112)]['BeforeBaseTableRecordCreate'],()=>this[_0x5ad95a(0x106)]['beforeCommandExecuted'](_0x4e841b=>{const _0x321e99=_0x5ad95a;if(_0x4e841b['id']!==_0x3392fe['id']&&_0x4e841b['id']!==_0x3ad558['id'])return;let _0x330637=_0x4e841b['params'],{unitId:_0x468703,tableId:_0x317710}=_0x330637,_0x58e3b8=_0x330637[_0x321e99(0x111)]??[_0x330637['record']],_0x251188=this['getBase'](_0x468703);if(!_0x251188)return;let _0x39c5c2=_0x251188[_0x321e99(0x15e)](_0x317710);if(!_0x39c5c2)return;let _0x119b05={'base':_0x251188,'table':_0x39c5c2,'records':_0x58e3b8};if(this[_0x321e99(0xe3)](this[_0x321e99(0x112)][_0x321e99(0x129)],_0x119b05),_0x119b05['cancel'])throw new _0x3a850a();}))),this[_0x5ad95a(0x160)](this['registerEventHandler'](this[_0x5ad95a(0x112)][_0x5ad95a(0x17e)],()=>this[_0x5ad95a(0x106)][_0x5ad95a(0x1ba)](_0x3c1863=>{const _0x21f6a8=_0x5ad95a;if(_0x3c1863['id']!==_0x4a240d['id'])return;let {unitId:_0x254123,tableId:_0x36b74c,view:_0x3f7bb6,index:_0x2a6040}=_0x3c1863[_0x21f6a8(0xdd)],_0x7af6b2=this[_0x21f6a8(0xaa)](_0x254123);if(!_0x7af6b2)return;let _0x195282=_0x7af6b2[_0x21f6a8(0x15e)](_0x36b74c);if(!_0x195282)return;let _0x23c5eb={'base':_0x7af6b2,'table':_0x195282,'view':_0x3f7bb6,'index':_0x2a6040};if(this[_0x21f6a8(0xe3)](this[_0x21f6a8(0x112)]['BeforeBaseTableViewCreate'],_0x23c5eb),_0x23c5eb['cancel'])throw new _0x3a850a();}))),this[_0x5ad95a(0x160)](this[_0x5ad95a(0x1b9)](this[_0x5ad95a(0x112)][_0x5ad95a(0x13c)],()=>this[_0x5ad95a(0x106)][_0x5ad95a(0x1ba)](_0x307d26=>{const _0x1c664c=_0x5ad95a;if(_0x307d26['id']!==_0x56896a['id'])return;let {unitId:_0x5263e4,tableId:_0x1951d0,recordId:_0xf4622e,fieldId:_0x1c7abc,value:_0x546397}=_0x307d26[_0x1c664c(0xdd)],_0x94571e=this[_0x1c664c(0xaa)](_0x5263e4);if(!_0x94571e)return;let _0x4dedd6=_0x94571e['getTableById'](_0x1951d0);if(!_0x4dedd6)return;let _0xfdb175=_0x4dedd6[_0x1c664c(0x181)](_0x1c7abc);if(!_0xfdb175)return;let _0x339b34=_0x4dedd6['getRecordById'](_0xf4622e);if(!_0x339b34)return;let _0x2aacf4={'base':_0x94571e,'table':_0x4dedd6,'field':_0xfdb175,'record':_0x339b34,'value':_0x546397};if(this['fireEvent'](this[_0x1c664c(0x112)][_0x1c664c(0x13c)],_0x2aacf4),_0x2aacf4[_0x1c664c(0x123)])throw new _0x3a850a();})));}[_0x16c455(0x1d7)](_0x4f3907,_0x5d1748){const _0x4d1994=_0x16c455;let _0x50d4dd=this[_0x4d1994(0xaa)](_0x4f3907),_0x10771e=_0x50d4dd==null?void 0x0:_0x50d4dd[_0x4d1994(0x15e)](_0x5d1748);return _0x50d4dd&&_0x10771e?{'base':_0x50d4dd,'table':_0x10771e}:null;}['_fireBeforeHierarchyChange'](_0x1a0b32,_0x50830a,_0x48f79a,_0x557b85){const _0x3e2a1=_0x16c455;if(!_0x48f79a[_0x3e2a1(0x166)])return;let _0x132c13={'base':_0x1a0b32,'table':_0x50830a,'changes':_0x48f79a,'source':_0x557b85};if(this['fireEvent'](this['Event']['BeforeBaseHierarchyChange'],_0x132c13),_0x132c13[_0x3e2a1(0x123)])throw new _0x3a850a();}};function $(_0x220d56,_0x5e6132){const _0x3ca300=_0x16c455;return _0x220d56['id']===_0x5e6132['id']&&_0x220d56[_0x3ca300(0xdd)]!==void 0x0;}function _0x459a(_0x176eb7,_0x1816cd){_0x176eb7=_0x176eb7-0xa0;const _0x501ed9=_0x501e();let _0x459ac4=_0x501ed9[_0x176eb7];return _0x459ac4;}_0x292e04[_0x16c455(0xcc)](Et);var Dt=class extends _0x2fc644{get[_0x16c455(0x134)](){return _0x5c585e;}get['BaseFilterConjunction'](){return _0xf11f7f;}get[_0x16c455(0x10a)](){return _0x48d24a;}get[_0x16c455(0x11a)](){return ot;}get[_0x16c455(0xce)](){return _0x1eb8c0;}get[_0x16c455(0x1bc)](){return _0x58b6cb;}get[_0x16c455(0x1b8)](){return _0x16f428;}get['BaseConditionalDateMode'](){return _0x1ee14c;}get['BaseSortDirection'](){return _0x1fbd79;}get[_0x16c455(0x205)](){return _0x55bebd;}get[_0x16c455(0x19f)](){return _0x34d13a;}get[_0x16c455(0x132)](){return _0x59ccb4;}get[_0x16c455(0xcf)](){return _0x135176;}};function _0x501e(){const _0x35696c=['getId','entries','orderedRecordIds','\x20for\x20field\x20\x22','[FRecord]:\x20field\x20\x22','readonly','Invalid\x20Base\x20regex\x20filter:\x20','onCommandExecuted','getAncestors','\x22\x20has\x20invalid\x20config.','fieldKey','recordId','matches','getBase','[FField]:\x20field\x20\x22','Failed\x20to\x20add\x20records','boolean','[FRecord]:\x20RecordLink\x20field\x20\x22','getConditionalColorRules','orderKey','DESC','regenerateViewIds','Name','targetTableId','find','getRecordById','_projectionService','canEdit','object','childrenByParentId','2SrRnSt','Grid','conditionalColoring','beforeFieldId','_getAttachmentField','_tableId','commonExtend','base','getTables','save','Auto','value','getVisibleFields','fromCollab','isReadonly','tableOrder','prototype','extend','delete','BaseViewType','BaseRecordLinkRole','parentRecordId','createView','clearConditionalColorRules','number','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','_univerInstanceService','visibleCardFieldIds','moveField','getViewByName','reason','push',':\x20\x22','setFieldVisible','params','group','recordOrder','now','UNIVER_BASE','forEach','fireEvent','afterFieldId','_getField','156790DBiThi','Edit','deleteRecords','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','isArray','warn','includes','[FTable]:\x20table\x20\x22','getNumColumns','getProjection','_prepareFormulaFieldReferences','setName','setLinkedRecordIds','Attachment','_base','_getFieldIds','fieldOrder','executeCommand','getRecords','getSchema','BaseTableCreated','Calendar','_initBaseAfterEvents','\x22\x20is\x20not\x20an\x20Attachment\x20field.','slice','endColumn','createdAt','getHierarchyFieldId','\x20in\x20field\x20\x22','name','setGroup','hierarchyChanges','_commandService','indexOf','RecordId','getUnitId','BaseFilterOperator','getGroup','operator','getAttachments','\x22\x20is\x20invalid.','record','BeforeBaseTableFieldCreate','records','Event','_injector','BaseTableViewCreated','getFilter','getColumn','Failed\x20to\x20add\x20field\x20\x22','getRecord','getPrimaryFieldId','BaseFieldKeyEnum','queryRecords','viewId','_baseTableId','_getRecord','_baseUnitId',',\x20range:\x20','description','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','cancel','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','getNumRows','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','_resolveRecordIds','flatMap','BeforeBaseTableRecordCreate','\x22\x20must\x20be\x20a\x20non-empty\x20string.','getParent','BaseTableRecordCreated','stringify','getActiveBase','addField','externalReferences','default','BaseHierarchyInvalidReason','setObjectPermissions','BaseFieldType','insertTable','call','rows','startRow','valid','setValue','BeforeBaseTableCreate','BeforeBaseTableCellValueChange','[FRecord]:\x20invalid\x20RecordLink\x20value.','duplicateTable','parentByRecordId','_table','has','Date','22253Lmhgfh','index','getPrimaryField','rowId','getTable','tables','_fieldId','createBase',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','localeCompare','type','deepClone','get','3771984TFMLJI','_parentObjectIds','createInstance','1940iExhOJ','size','fields','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','getChildren','rules','filter','getSnapshot','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','getFormulaName','getViews','getTableById','getRange','disposeWithMe','BeforeBaseHierarchyChange','views','_inject','tableId','trim','length','fromEntries','multiple','duplicate','defaultValue','_writeFormulaExternalReferences','UUID','getType','_resourceLoaderService','\x20exceeds\x20range\x20size\x20','Delete','getBaseId','clear','field','Set','getValue','map','viewOrder','syncExecuteCommand','Clear','every','_fireBeforeHierarchyChange','1873566lYEhDy','Failed\x20to\x20create\x20table\x20\x22','BeforeBaseTableViewCreate','300140bILzGM','getName','getFieldById','\x20Copy','unitId','addConditionalColorRule','primaryFieldId','Failed\x20to\x20create\x20view\x20\x22','addRecord','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','direction','custom','BaseHierarchyChanged','setFieldWidth','getCurrentUnitOfType','getValues','RecordLink','offset','source','_getRecordLinkField','createUnit','setEditable','mimeType','startColumn','_unitId','getFieldSettings','addChild','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','move','setReadOnly','width','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','BaseHierarchyErrorCode','updateConfig','Duplicate\x20Base\x20field\x20name:\x20','limit','setConfig','_permissionService','getRow','setDefaultValue','sourceType','some','fieldIds','getDataRange','_getView','deleteAttachments','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','Facade','Add','saveUnit','getAllUnitsForType','_collectDescendantIds','max','_getTable','[FBase]:\x20table\x20\x22','notMatches','addLinkedRecord','BaseConditionalColorOperator','registerEventHandler','beforeCommandExecuted','system','BaseConditionalColorTarget','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','3mbEgwR','view','Invalid\x20attachment\x20at\x20index\x20','deleteTable','_getHierarchyIndex','_recordId','symbol','addRecords','setAttachments',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','URL','BaseTableFieldCreated','900284QrtWsg','search','endRow','getDefaultValue','hidden','setHierarchyField','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','function','Formula','removeLinkedRecord','toPrimitive','getLinkedRecordIds','string','_getHierarchyEventContext','BaseTableCellValueChanged','getPermission','values','Kanban','[FRecord]:\x20record\x20\x22','primaryFieldName','fieldSettings','updatedAt','setSort','url','changeType','Failed\x20to\x20delete\x20table\x20\x22','defineProperty','auto','table','_range','36RWjCbi','getDescription','[FBaseRange]:\x20table\x20does\x20not\x20exist.','_viewId','setValues','_objectId','Remote','Base\x20field\x20not\x20found:\x20','update',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','sort','config','from','\x22.\x20','\x22\x20does\x20not\x20exist.','Gantt','_assertInBounds','_initBaseBeforeEvents','getOwnPropertyDescriptor','recordIds','setPoint','getTableByName','[FRecord]:\x20attachment\x20at\x20index\x20','\x22:\x20expected\x20an\x20array.','message','2777716speMFm','FBase','getViewById','Failed\x20to\x20duplicate\x20table\x20\x22','BaseEventSource','fieldId'];_0x501e=function(){return _0x35696c;};return _0x501e();}_0x2fc644[_0x16c455(0xcc)](Dt);var Ot=class extends _0x35d271{get[_0x16c455(0xfa)](){const _0x590052=_0x16c455;return _0x590052(0xfa);}get[_0x16c455(0x13b)](){const _0x453a62=_0x16c455;return _0x453a62(0x13b);}get[_0x16c455(0x1c9)](){return'BaseTableFieldCreated';}get[_0x16c455(0x110)](){const _0x3d8257=_0x16c455;return _0x3d8257(0x110);}get[_0x16c455(0x12c)](){const _0x4db644=_0x16c455;return _0x4db644(0x12c);}get[_0x16c455(0x129)](){return'BeforeBaseTableRecordCreate';}get['BaseTableViewCreated'](){const _0x12921f=_0x16c455;return _0x12921f(0x114);}get[_0x16c455(0x17e)](){const _0x53d7e8=_0x16c455;return _0x53d7e8(0x17e);}get[_0x16c455(0x1d8)](){return'BaseTableCellValueChanged';}get[_0x16c455(0x13c)](){return'BeforeBaseTableCellValueChange';}get[_0x16c455(0x18b)](){const _0x35b863=_0x16c455;return _0x35b863(0x18b);}get['BeforeBaseHierarchyChange'](){const _0x1510de=_0x16c455;return _0x1510de(0x161);}};_0x35d271[_0x16c455(0xcc)](Ot);export{ot as BaseFieldKeyEnum,Q as FBase,L as FBaseObjectPermission,at as FBasePermission,Z as FBaseTable,B as FBaseTableField,K as FBaseTableRange,Y as FBaseTableRecord,X as FBaseTableView,Ot as FBasesEventNameMixin,ct as resolveBaseFieldKey,H as resolveBaseFieldValues};
|
|
1
|
+
const _0x5d6143=_0xcda4;function _0x368d(){const _0x59d3f1=['name','_commandService','_fieldId','getName','matches','save','getNumRows','BaseHierarchyChanged','createView','getVisibleFields','getAllUnitsForType','filter','_unitId','3ApOQrc','auto','prototype','10fiwWBz','some','_range','_tableId','UUID','Date','getAttachments','max','BaseTableRecordCreated',':\x20\x22','1421612cJPgof','Kanban','defaultValue','registerEventHandler','BeforeBaseHierarchyChange','_collectDescendantIds','getPrimaryField','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','duplicateTable','entries','BaseHierarchyErrorCode','getDescendants','afterFieldId','records','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','setEditable','_getHierarchyIndex','getBase','getColumn','_resourceLoaderService','values','startsWith','BeforeBaseTableCreate','fireEvent','getProjection','type','736451gnsvli','BeforeBaseTableFieldCreate','Event','warn','_objectId','deleteRecords','Failed\x20to\x20add\x20records','unitId','BeforeBaseTableRecordCreate','getGroup','indexOf','_baseUnitId','from','isFinite','decorate','getFields','conditions','_prepareFormulaFieldReferences','getPermission','toPrimitive','_fireBeforeHierarchyChange','map','35znPsWW','\x22\x20is\x20invalid.','saveUnit','primaryFieldId','getRecords','getDescription','\x22\x20must\x20be\x20a\x20non-empty\x20string.','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','setHierarchyField','Formula','getHierarchyFieldId','Calendar','[FBaseRange]:\x20values\x20size\x20','getValues',',\x20max\x20columns:\x20','extend','createdAt','beforeCommandExecuted','[FRecord]:\x20RecordLink\x20field\x20\x22','URL','Gantt','multiple','operator','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','params','reason','cancel','\x22\x20has\x20invalid\x20config.','_getTable','push','BaseFilterConjunction','commonExtend','mimeType','getLinkedRecordIds','_writeFormulaExternalReferences','BaseEventSource','onCommandExecuted','[FBase]:\x20table\x20\x22','_projectionService','length','every','getFilter','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','_getFieldIds','hidden','recordIds','custom','setLinkedRecordIds','size','fieldOrder','getBaseId','_initBaseAfterEvents','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','source','BaseFilterOperator','_getRecord','index','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','config','_parentObjectIds','setReadOnly','move','Facade','base','hierarchyChanges','visibleCardFieldIds','_univerInstanceService','primaryFieldName','fields','viewOrder','[FRecord]:\x20record\x20\x22','_getHierarchyEventContext','_table','getTables','description',',\x20range:\x20','getTable','defineProperty','setDefaultValue','_initialize','_baseTableId','getActiveBase','canEdit','1039520YMAxjO','sourceType','getTableById','tables','setValue','update','BaseTableFieldCreated','\x22\x20does\x20not\x20exist.','includes','now','insertTable','getTableByName','createInstance','Failed\x20to\x20add\x20field\x20\x22','externalReferences','parentByRecordId','_assertInBounds','BaseConditionalDateMode','_permissionService','viewId','executeCommand','call','message','\x20exceeds\x20range\x20size\x20','[FTable]:\x20table\x20\x22','setFieldWidth','BaseFieldKeyEnum','rows','flatMap','_base','setOrderKey','\x20for\x20field\x20\x22','getCurrentUnitOfType','UNIVER_BASE','find','_resolveRecordIds','setParent','getValue','getOwnPropertyDescriptor','slice','thumbnail','getParent','fieldIds','getSchema','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','BaseHierarchyInvalidReason','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','BaseTableViewCreated','getViewById','Failed\x20to\x20delete\x20table\x20\x22','object','Failed\x20to\x20create\x20view\x20\x22','startRow','search','Edit','disposeWithMe',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','getType','getRecord','addRecord','Duplicate\x20Base\x20field\x20name:\x20','Add','clearConditionalColorRules','queryRecords','deleteProperty','getSort','limit','parentRecordId','string','orderKey','getId','getSnapshot','\x22\x20is\x20not\x20an\x20Attachment\x20field.','sort','changeType','view','RecordLink','Gallery','6177861wQLZUz','fieldId','Grid','isArray','valid','conditionalColoring','get','tableOrder','views','setAttachments','BeforeBaseTableViewCreate','getFormulaName','rowId','createUnit','data:','_getRecordLinkField','\x22.\x20','setSort','getFieldById','isReadonly','setObjectPermissions','delete','FBase','setConfig','Failed\x20to\x20create\x20table\x20\x22','updatedAt','addLinkedRecord','1277382FfcosL','addChild','setValues','_recordId','[FRecord]:\x20field\x20\x22','startColumn','Invalid\x20attachment\x20at\x20index\x20','tableId','offset','createBase','updateConfig','BaseViewType','getBases','Attachment','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','getRow','_injector','getAncestors','Clear','deleteTable','BeforeBaseTableCellValueChange','endRow','readonly','Set','Invalid\x20Base\x20regex\x20filter:\x20','fieldKey','localeCompare','getUnitId','5597878nyPKoR','Delete','Invalid\x20Base\x20formula.','getRange','deepClone','fieldSettings','iterator','BaseRecordLinkRole','direction','subtreeHeightByRecordId','setName','group','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','getPrimaryFieldId','field','[FRecord]:\x20attachment\x20at\x20index\x20','getRecordById','recordOrder','Name','function','default','notMatches','symbol','_initBaseBeforeEvents','_inject','endColumn','getViews','Auto','regenerateViewIds','syncExecuteCommand','getView','record','getChildren','childrenByParentId','recordId','[FField]:\x20field\x20\x22','setFieldVisible','_viewId','_getView','\x20in\x20field\x20\x22','BaseTableCreated','getField','getFieldByName','table','value','addRecords','DESC','test','BaseTableCellValueChanged','deleteConditionalColorRule','moveField','_getAttachmentField','getConditionalColorRules','BASE64','Failed\x20to\x20duplicate\x20table\x20\x22','_getField','getNumColumns','boolean','caseSensitive','has','612065YFeokk','18HOeKnp'];_0x368d=function(){return _0x59d3f1;};return _0x368d();}(function(_0x4686ab,_0x163ae0){const _0x2255f9=_0xcda4,_0x24e944=_0x4686ab();while(!![]){try{const _0xbe193b=-parseInt(_0x2255f9(0x1a8))/0x1+parseInt(_0x2255f9(0x27a))/0x2*(parseInt(_0x2255f9(0x181))/0x3)+-parseInt(_0x2255f9(0x18e))/0x4+-parseInt(_0x2255f9(0x172))/0x5*(-parseInt(_0x2255f9(0x173))/0x6)+-parseInt(_0x2255f9(0x1be))/0x7*(-parseInt(_0x2255f9(0x211))/0x8)+parseInt(_0x2255f9(0x25f))/0x9*(-parseInt(_0x2255f9(0x184))/0xa)+parseInt(_0x2255f9(0x136))/0xb;if(_0xbe193b===_0x163ae0)break;else _0x24e944['push'](_0x24e944['shift']());}catch(_0x250ee4){_0x24e944['push'](_0x24e944['shift']());}}}(_0x368d,0x5e4c5));import{ApplyBaseJson1Mutation as _0x7828b1,BASE_TABLE_NAME_REQUIREMENTS as _0x42fde6,BaseConditionalColorRuleUpdateType as _0x18e9de,BaseEventSource as _0x3929cb,BaseHierarchyErrorCode as _0x420b2f,BatchCreateBaseRecordsCommand as _0x15e471,BatchDeleteBaseRecordsCommand as _0x3343b8,ChangeBaseFieldTypeCommand as _0x4bf4fe,CreateBaseChildRecordCommand as _0x550a38,CreateBaseFieldCommand as _0x27aa7f,CreateBaseRecordCommand as _0x1b1cbb,CreateBaseTableCommand as _0x5af821,CreateBaseViewCommand as _0x391a8f,DeleteBaseFieldCommand as _0x339bc9,DeleteBaseRecordCommand as _0x2f0c33,DeleteBaseTableCommand as _0x4d1ca0,DeleteBaseViewCommand as _0x23ad3a,DuplicateBaseRecordCommand as _0x5a3030,IBaseProjectionService as _0x8d78f1,MoveBaseFieldCommand as _0x20773f,MoveBaseHierarchyRecordCommand as _0x1aea4c,MoveBaseViewCommand as _0x2c00c8,RenameBaseTableCommand as _0x2f9fb9,RenameBaseViewCommand as _0x5835d9,SetBaseNameCommand as _0xbea6e0,SetBasePermissionCommand as _0x1543dd,SetBasePermissionsCommand as _0x9f09be,SetBaseRangeValuesCommand as _0x2ebbdb,SetBaseRecordValuesCommand as _0x3c4e8d,SetBaseTableHierarchyFieldCommand as _0x2b74e0,SetBaseViewFieldOrderCommand as _0x354098,SetBaseViewFieldVisibleCommand as _0x41519f,SetBaseViewFieldWidthCommand as _0x249729,SetBaseViewFilterCommand as _0x50d350,SetBaseViewGroupCommand as _0x439ee7,SetBaseViewSortCommand as _0x217a2c,UpdateBaseCellCommand as _0xd989ce,UpdateBaseFieldCommand as _0x3752f1,UpdateBaseRecordOrderCommand as _0x5c34e7,UpdateBaseViewConditionalColorRulesCommand as _0x112745,UpdateBaseViewConfigCommand as _0x5010e8,ValidateBaseFormulaCommand as _0x496639,buildBaseHierarchyIndex as _0xbf13b7,canEditBaseTargets as _0xd3b39e,copyBaseTableSnapshot as _0x5832b3,createUniqueBaseTableName as _0x33e5ed,ensureBaseTableCellLayout as _0x50c331,getActiveBaseHierarchyFieldIds as _0x31a9b4,getBaseCellValue as _0x3e649c,getBaseFieldPermissionObjectId as _0x4bb07b,getBaseFormulaTableName as _0x30d832,getBaseHierarchyDeletePromotions as _0x4276db,getBasePermissionValue as _0x58d23c,getBaseRecordPermissionObjectId as _0x5aa11b,getBaseTablePermissionObjectId as _0x15e072,getBaseViewPermissionObjectId as _0x1d4c7d,getRecordLinkFieldConfig as _0x1220e3,matchesBaseCondition as _0x232aed,parseRecordLinkIds as _0x15a8ab,resolveBaseHierarchyFieldId as _0x254f03,resolveBaseRangeHierarchyPatches as _0x4e2d04,searchBaseTable as _0x260bc4,serializeRecordLinkIds as _0x1808ed,validateBaseHierarchyRecordCreations as _0x1936b7,validateBaseHierarchyRecordPatches as _0x500011,validateBaseTableName as _0x1252cc,validateRecordLinkValue as _0x529f3e}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0xe50529,BaseConditionalColorOperator as _0x1ab338,BaseConditionalColorTarget as _0x51d23e,BaseConditionalDateMode as _0x461f6e,BaseFieldType as _0xe1377b,BaseFilterConjunction as _0x1e088d,BaseFilterOperator as _0x30a51d,BaseHierarchyInvalidReason as _0x2d4aea,BaseRecordLinkRole as _0x5428fb,BaseSortDirection as _0x504096,BaseViewType as _0x1753fc,CanceledError as _0x2d90a2,ICommandService as _0x4d60b9,IPermissionService as _0x4ad80a,IResourceLoaderService as _0x28546b,ImageSourceType as _0x4d9d8d,Inject as _0x122311,Injector as _0x5e0f48,Tools as _0x59ca43,UniverInstanceType as _0x31af45,createDefaultBaseTableSnapshot as _0x8020d,generateRandomId as _0x563d6}from'@univerjs/core';import*as _0x188c13 from'@univerjs/core/facade';import{FBaseInitialable as _0x5e2686,FEnum as _0x30c860,FEventName as _0x22e20b,FUniver as _0x342f23}from'@univerjs/core/facade';import{UnitAction as _0x360a49}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x5da99d}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x18b343,_0x5642c1,_0x2e221a){const _0xca0d2e=_0xcda4;this[_0xca0d2e(0x180)]=_0x18b343,this[_0xca0d2e(0x175)]=_0x5642c1,this[_0xca0d2e(0x223)]=_0x2e221a;}async[_0x5d6143(0x273)](_0x3a38ad){const _0x129ddc=_0x5d6143;return this[_0x129ddc(0x175)][_0x129ddc(0x225)](_0x9f09be['id'],{'unitId':this[_0x129ddc(0x180)],'changes':_0x3a38ad});}async['setPoint'](_0x27d54a,_0x37058d){const _0x350851=_0x5d6143;await this['_commandService'][_0x350851(0x225)](_0x1543dd['id'],{'unitId':this[_0x350851(0x180)],'objectId':this[_0x350851(0x180)],'action':_0x27d54a,'value':_0x37058d});}['getPoint'](_0x16c248){const _0x2c499a=_0x5d6143;return _0x58d23c(this[_0x2c499a(0x223)],this['_unitId'],this['_unitId'],_0x16c248);}async[_0x5d6143(0x19d)](_0x448eb8=!0x0){const _0xcf86c5=_0x5d6143;await this[_0xcf86c5(0x175)]['executeCommand'](_0x1543dd['id'],{'unitId':this[_0xcf86c5(0x180)],'objectId':this[_0xcf86c5(0x180)],'action':_0x360a49['Edit'],'value':_0x448eb8});}async[_0x5d6143(0x1fa)](){const _0x10253f=_0x5d6143;await this['_commandService'][_0x10253f(0x225)](_0x1543dd['id'],{'unitId':this[_0x10253f(0x180)],'objectId':this[_0x10253f(0x180)],'action':_0x360a49[_0x10253f(0x247)],'value':!0x1});}[_0x5d6143(0x210)](){const _0x37070c=_0x5d6143;return _0x58d23c(this[_0x37070c(0x223)],this[_0x37070c(0x180)],this['_unitId'],_0x360a49[_0x37070c(0x247)]);}},L=class{constructor(_0x27a64d,_0x345a16,_0x8ee691,_0x5e1ae2,_0x95057d){const _0x15320c=_0x5d6143;this[_0x15320c(0x180)]=_0x27a64d,this['_objectId']=_0x345a16,this[_0x15320c(0x1f9)]=_0x8ee691,this[_0x15320c(0x175)]=_0x5e1ae2,this['_permissionService']=_0x95057d;}async[_0x5d6143(0x19d)](_0x4d04e1=!0x0){const _0x49dc96=_0x5d6143;await this[_0x49dc96(0x175)][_0x49dc96(0x225)](_0x1543dd['id'],{'unitId':this['_unitId'],'objectId':this[_0x49dc96(0x1ac)],'action':_0x360a49[_0x49dc96(0x247)],'value':_0x4d04e1});}async[_0x5d6143(0x1fa)](){const _0x2e399c=_0x5d6143;await this['_commandService'][_0x2e399c(0x225)](_0x1543dd['id'],{'unitId':this[_0x2e399c(0x180)],'objectId':this[_0x2e399c(0x1ac)],'action':_0x360a49['Edit'],'value':!0x1});}['canEdit'](){const _0x2672b0=_0x5d6143;return _0xd3b39e(this[_0x2672b0(0x223)],this[_0x2672b0(0x180)],[...this[_0x2672b0(0x1f9)],this[_0x2672b0(0x1ac)]]);}};function R(_0xe2d3c4,_0x484c80){return function(_0x5ef9de,_0x5553fc){_0x484c80(_0x5ef9de,_0x5553fc,_0xe2d3c4);};}function z(_0x52edff,_0x57dd55,_0x5ce1ab,_0x11f332){const _0x3e02f3=_0x5d6143;var _0x323054=arguments[_0x3e02f3(0x1e5)],_0x116f22=_0x323054<0x3?_0x57dd55:_0x11f332===null?_0x11f332=Object[_0x3e02f3(0x237)](_0x57dd55,_0x5ce1ab):_0x11f332,_0x39776a;if(typeof Reflect==_0x3e02f3(0x243)&&typeof Reflect[_0x3e02f3(0x1b6)]==_0x3e02f3(0x149))_0x116f22=Reflect[_0x3e02f3(0x1b6)](_0x52edff,_0x57dd55,_0x5ce1ab,_0x11f332);else{for(var _0x3ebe65=_0x52edff[_0x3e02f3(0x1e5)]-0x1;_0x3ebe65>=0x0;_0x3ebe65--)(_0x39776a=_0x52edff[_0x3ebe65])&&(_0x116f22=(_0x323054<0x3?_0x39776a(_0x116f22):_0x323054>0x3?_0x39776a(_0x57dd55,_0x5ce1ab,_0x116f22):_0x39776a(_0x57dd55,_0x5ce1ab))||_0x116f22);}return _0x323054>0x3&&_0x116f22&&Object['defineProperty'](_0x57dd55,_0x5ce1ab,_0x116f22),_0x116f22;}let B=class{constructor(_0x469327,_0x2f995d,_0xc1907d,_0x92109b,_0x538d53){const _0x50e1b9=_0x5d6143;this['_base']=_0x469327,this[_0x50e1b9(0x206)]=_0x2f995d,this[_0x50e1b9(0x176)]=_0xc1907d,this['_commandService']=_0x92109b,this[_0x50e1b9(0x223)]=_0x538d53;}[_0x5d6143(0x257)](){const _0x260367=_0x5d6143;return this[_0x260367(0x176)];}[_0x5d6143(0x1ba)](){const _0x340de6=_0x5d6143;let _0x303b0a=this[_0x340de6(0x206)][_0x340de6(0x257)]();return new L(this[_0x340de6(0x22e)][_0x340de6(0x257)](),_0x4bb07b(_0x303b0a,this['_fieldId']),[_0x15e072(_0x303b0a)],this[_0x340de6(0x175)],this[_0x340de6(0x223)]);}[_0x5d6143(0x15f)](){const _0x408cf8=_0x5d6143;return this[_0x408cf8(0x16d)]();}['getName'](){const _0x14e265=_0x5d6143;return this['_getField']()[_0x14e265(0x174)];}[_0x5d6143(0x24a)](){const _0x56ab81=_0x5d6143;return this['_getField']()[_0x56ab81(0x1a7)];}['getConfig'](){const _0x4e6fbb=_0x5d6143;return this[_0x4e6fbb(0x16d)]()[_0x4e6fbb(0x1f8)];}['getDefaultValue'](){const _0xb0c46e=_0x5d6143;return this['_getField']()[_0xb0c46e(0x190)];}[_0x5d6143(0x1c3)](){const _0x4bb177=_0x5d6143;return this[_0x4bb177(0x16d)]()['description'];}[_0x5d6143(0x272)](){const _0x3be153=_0x5d6143;return!!this[_0x3be153(0x16d)]()['readonly'];}[_0x5d6143(0x140)](_0x36879f){return this['update']({'name':_0x36879f});}[_0x5d6143(0x276)](_0x322ab5,_0xfd2b69){const _0x5d7c56=_0x5d6143;return this[_0x5d7c56(0x216)]({'config':_0x322ab5},_0xfd2b69);}[_0x5d6143(0x20c)](_0x2f1c3c){return this['update']({'defaultValue':_0x2f1c3c});}['update'](_0x35be5b,_0x4f6662){const _0x5a8fa0=_0x5d6143;let _0x281e46=this[_0x5a8fa0(0x16d)]()['type'];return(_0x35be5b[_0x5a8fa0(0x1a7)]??_0x281e46)===_0xe1377b[_0x5a8fa0(0x1c7)]&&(Object[_0x5a8fa0(0x183)]['hasOwnProperty'][_0x5a8fa0(0x226)](_0x35be5b,_0x5a8fa0(0x1f8))||_0x35be5b[_0x5a8fa0(0x1a7)]===_0xe1377b[_0x5a8fa0(0x1c7)])&&!this[_0x5a8fa0(0x1e0)](_0x4f6662)?!0x1:this[_0x5a8fa0(0x175)][_0x5a8fa0(0x153)](_0x3752f1['id'],{'unitId':this[_0x5a8fa0(0x22e)]['getId'](),'tableId':this['_table'][_0x5a8fa0(0x257)](),'fieldId':this[_0x5a8fa0(0x176)],'patch':_0x35be5b});}[_0x5d6143(0x25b)](_0x37d00a,_0x4b4025={},_0x58d037){const _0x442e49=_0x5d6143;return _0x37d00a===_0xe1377b[_0x442e49(0x1c7)]&&!this[_0x442e49(0x1e0)](_0x58d037)?!0x1:this[_0x442e49(0x175)][_0x442e49(0x153)](_0x4bf4fe['id'],{'unitId':this[_0x442e49(0x22e)][_0x442e49(0x257)](),'tableId':this['_table'][_0x442e49(0x257)](),'fieldId':this[_0x442e49(0x176)],'input':{'type':_0x37d00a,'config':_0x4b4025}});}[_0x5d6143(0x274)](){const _0x123d5b=_0x5d6143;return this['_commandService'][_0x123d5b(0x153)](_0x339bc9['id'],{'unitId':this[_0x123d5b(0x22e)][_0x123d5b(0x257)](),'tableId':this[_0x123d5b(0x206)][_0x123d5b(0x257)](),'fieldId':this[_0x123d5b(0x176)]});}['move'](_0x5559a6){const _0x338d96=_0x5d6143;return this['_commandService'][_0x338d96(0x153)](_0x20773f['id'],{'unitId':this[_0x338d96(0x22e)][_0x338d96(0x257)](),'tableId':this[_0x338d96(0x206)][_0x338d96(0x257)](),'fieldId':this[_0x338d96(0x176)],'target':_0x5559a6});}[_0x5d6143(0x16d)](){const _0x4b4aba=_0x5d6143;let _0x441362=this[_0x4b4aba(0x206)][_0x4b4aba(0x20a)]()['fields'][this[_0x4b4aba(0x176)]];if(!_0x441362)throw Error(_0x4b4aba(0x159)+this[_0x4b4aba(0x176)]+'\x22\x20does\x20not\x20exist.');return _0x441362;}[_0x5d6143(0x1e0)](_0xd63bbf){const _0x1efab2=_0x5d6143;if(!_0xd63bbf||!Array[_0x1efab2(0x262)](_0xd63bbf[_0x1efab2(0x21f)]))return console[_0x1efab2(0x1ab)]('[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.'),!0x1;if(_0xd63bbf['externalReferences']['length']===0x0)return!0x0;let _0x27acd5=this['_commandService'][_0x1efab2(0x153)](_0x5da99d['id'],{'unitId':this['_base']['getId'](),'references':_0xd63bbf[_0x1efab2(0x21f)]});return _0x27acd5||console[_0x1efab2(0x1ab)](_0x1efab2(0x1f2)),_0x27acd5;}};B=z([R(0x3,_0x4d60b9),R(0x4,_0x4ad80a)],B);let ot=function(_0x28bec6){const _0x635469=_0x5d6143;return _0x28bec6['Id']='id',_0x28bec6[_0x635469(0x148)]=_0x635469(0x174),_0x28bec6[_0x635469(0x151)]=_0x635469(0x182),_0x28bec6;}({});function V(_0x4e2b0c){const _0x46031c=_0x5d6143;return!!(_0x4e2b0c&&_0x4e2b0c['system']!==!0x0&&_0x4e2b0c[_0x46031c(0x1a7)]!==_0xe1377b['RecordId']);}function H(_0xf8cef7,_0xd8aaea,_0x312408='id'){const _0x2db0e4=_0x5d6143;if(!_0xd8aaea)return{};let _0x21fb3f={};return Object[_0x2db0e4(0x197)](_0xd8aaea)['forEach'](([_0x57db0f,_0x598ac8])=>{const _0x2b46a1=_0x2db0e4;let _0x4dd9d3=ct(_0xf8cef7,_0x57db0f,_0x312408);_0x21fb3f[_0x4dd9d3]=st(_0xf8cef7[_0x2b46a1(0x202)][_0x4dd9d3],_0x598ac8);}),_0x21fb3f;}function st(_0x31e62e,_0x8c9186){const _0xe73c22=_0x5d6143;if((_0x31e62e==null?void 0x0:_0x31e62e[_0xe73c22(0x1a7)])!==_0xe1377b[_0xe73c22(0x127)]||_0x8c9186==null)return _0x8c9186;if(!Array[_0xe73c22(0x262)](_0x8c9186))throw TypeError('Invalid\x20attachment\x20value\x20for\x20field\x20\x22'+_0x31e62e[_0xe73c22(0x174)]+'\x22:\x20expected\x20an\x20array.');return _0x8c9186[_0xe73c22(0x1bd)]((_0x111afe,_0x4917f1)=>lt(_0x31e62e,_0x111afe,_0x4917f1));}function ct(_0x590d50,_0x4052e5,_0x5c68e7){const _0x401bf3=_0x5d6143;if(_0x5c68e7==='id'||_0x5c68e7===_0x401bf3(0x182)&&_0x590d50[_0x401bf3(0x202)][_0x4052e5])return _0x4052e5;let _0x4cf7ab=Object[_0x401bf3(0x1a2)](_0x590d50[_0x401bf3(0x202)])[_0x401bf3(0x17f)](_0x1c0e81=>_0x1c0e81[_0x401bf3(0x174)]===_0x4052e5);if(_0x4cf7ab['length']===0x1)return _0x4cf7ab[0x0]['id'];throw _0x4cf7ab[_0x401bf3(0x1e5)]>0x1?Error(_0x401bf3(0x24d)+_0x4052e5):Error('Base\x20field\x20not\x20found:\x20'+_0x4052e5);}function lt(_0x1cebf2,_0xa49cad,_0x2ca560){const _0x5f05fc=_0x5d6143;let _0x585b1b=_0x5f05fc(0x280)+_0x2ca560+_0x5f05fc(0x230)+_0x1cebf2['name']+'\x22';if(!ft(_0xa49cad))throw TypeError(_0x585b1b+':\x20expected\x20an\x20object.');if('url'in _0xa49cad)throw TypeError(_0x585b1b+':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.');if(_0x5f05fc(0x1a7)in _0xa49cad)throw TypeError(_0x585b1b+':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.');let _0x3e1e01=U(_0xa49cad['id'],_0x585b1b,'id'),_0x3355c=U(_0xa49cad['name'],_0x585b1b,'name'),_0x20286e=U(_0xa49cad[_0x5f05fc(0x1f3)],_0x585b1b,'source');return{'id':_0x3e1e01,'name':_0x3355c,'source':_0x20286e,'sourceType':ut(_0xa49cad[_0x5f05fc(0x212)],_0x20286e,_0x585b1b),...dt(_0xa49cad,_0x5f05fc(0x1de),_0x585b1b),...W(_0xa49cad,_0x5f05fc(0x1ee),_0x585b1b),...W(_0xa49cad,'width',_0x585b1b),...W(_0xa49cad,'height',_0x585b1b),...dt(_0xa49cad,_0x5f05fc(0x239),_0x585b1b)};}function ut(_0x2732d0,_0x1aa7f2,_0x45cdff){const _0x1e5bca=_0x5d6143;if(_0x2732d0==null)return _0x1aa7f2[_0x1e5bca(0x1a3)](_0x1e5bca(0x26d))?_0x4d9d8d['BASE64']:_0x4d9d8d[_0x1e5bca(0x1d1)];if(_0x2732d0===_0x4d9d8d[_0x1e5bca(0x1d1)]||_0x2732d0===_0x4d9d8d[_0x1e5bca(0x188)]||_0x2732d0===_0x4d9d8d[_0x1e5bca(0x16b)])return _0x2732d0;throw TypeError(_0x45cdff+_0x1e5bca(0x249));}function U(_0x1647f5,_0x158bbe,_0x1283ae){const _0x4b6230=_0x5d6143;if(typeof _0x1647f5!=_0x4b6230(0x255)||!_0x1647f5['trim']())throw TypeError(_0x158bbe+_0x4b6230(0x18d)+_0x1283ae+_0x4b6230(0x1c4));return _0x1647f5;}function dt(_0x296434,_0x456c3b,_0x4e7e29){let _0x4066f1=_0x296434[_0x456c3b];if(_0x4066f1==null)return{};if(typeof _0x4066f1!='string'||!_0x4066f1['trim']())throw TypeError(_0x4e7e29+':\x20\x22'+_0x456c3b+'\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.');return{[_0x456c3b]:_0x4066f1};}function W(_0x44203a,_0x46a867,_0x42daf7){const _0x152db8=_0x5d6143;let _0x9bea25=_0x44203a[_0x46a867];if(_0x9bea25==null)return{};if(typeof _0x9bea25!='number'||!Number[_0x152db8(0x1b5)](_0x9bea25)||_0x9bea25<0x0)throw TypeError(_0x42daf7+_0x152db8(0x18d)+_0x46a867+_0x152db8(0x1d5));return{[_0x46a867]:_0x9bea25};}function ft(_0x108d13){const _0x5a6a51=_0x5d6143;return typeof _0x108d13==_0x5a6a51(0x243)&&!!_0x108d13&&!Array[_0x5a6a51(0x262)](_0x108d13);}var G;let K=G=class{constructor(_0x3a203a,_0x5c03db,_0x1ae844,_0x4e4e09,_0x5aee43){const _0x2fc97d=_0x5d6143;this[_0x2fc97d(0x22e)]=_0x3a203a,this[_0x2fc97d(0x206)]=_0x5c03db,this[_0x2fc97d(0x186)]=_0x1ae844,this['_inject']=_0x4e4e09,this[_0x2fc97d(0x175)]=_0x5aee43,this[_0x2fc97d(0x221)]();}[_0x5d6143(0x1f0)](){const _0x47896e=_0x5d6143;return this[_0x47896e(0x22e)][_0x47896e(0x257)]();}['getTableId'](){const _0x34063d=_0x5d6143;return this[_0x34063d(0x206)][_0x34063d(0x257)]();}[_0x5d6143(0x139)](){const _0x547f4f=_0x5d6143;return{...this[_0x547f4f(0x186)]};}[_0x5d6143(0x129)](){const _0x307b57=_0x5d6143;return this[_0x307b57(0x186)][_0x307b57(0x245)];}[_0x5d6143(0x1a0)](){const _0x7e6e54=_0x5d6143;return this[_0x7e6e54(0x186)][_0x7e6e54(0x27f)];}['getNumRows'](){const _0x556209=_0x5d6143;return this[_0x556209(0x186)]['endRow']-this[_0x556209(0x186)]['startRow']+0x1;}[_0x5d6143(0x16e)](){const _0xbf7d39=_0x5d6143;return this[_0xbf7d39(0x186)][_0xbf7d39(0x14f)]-this[_0xbf7d39(0x186)][_0xbf7d39(0x27f)]+0x1;}[_0x5d6143(0x1cb)](){const _0x2c1fd8=_0x5d6143;let _0x256aa2=this[_0x2c1fd8(0x1da)](),_0x2c80b7=this[_0x2c1fd8(0x1e9)](_0x256aa2),_0x13284b=[];for(let _0x29d1ac=this[_0x2c1fd8(0x186)][_0x2c1fd8(0x245)];_0x29d1ac<=this[_0x2c1fd8(0x186)][_0x2c1fd8(0x12f)];_0x29d1ac++){var _0x374b98;let _0x1fa684=(_0x374b98=_0x256aa2[_0x2c1fd8(0x26b)])==null?void 0x0:_0x374b98[_0x29d1ac],_0x15e595=[];for(let _0x4f7be5=this[_0x2c1fd8(0x186)][_0x2c1fd8(0x27f)];_0x4f7be5<=this[_0x2c1fd8(0x186)][_0x2c1fd8(0x14f)];_0x4f7be5++){let _0x5a277a=_0x2c80b7[_0x4f7be5];_0x15e595[_0x2c1fd8(0x1db)](_0x1fa684&&_0x5a277a?_0x3e649c(_0x256aa2,_0x1fa684,_0x5a277a):null);}_0x13284b[_0x2c1fd8(0x1db)](_0x15e595);}return _0x13284b;}[_0x5d6143(0x236)](){const _0x534f0b=_0x5d6143;var _0x38f3fd;return((_0x38f3fd=this[_0x534f0b(0x1cb)]()[0x0])==null?void 0x0:_0x38f3fd[0x0])??null;}[_0x5d6143(0x215)](_0x25f10e){const _0x5da3ad=_0x5d6143;return this[_0x5da3ad(0x27c)]([[_0x25f10e]]);}[_0x5d6143(0x27c)](_0x49fd2b){const _0x53f70a=_0x5d6143;let _0x230f9b=this['getNumRows'](),_0x462ae8=this[_0x53f70a(0x16e)]();if(_0x49fd2b[_0x53f70a(0x1e5)]>_0x230f9b||_0x49fd2b[_0x53f70a(0x185)](_0x60a482=>_0x60a482[_0x53f70a(0x1e5)]>_0x462ae8)){var _0x2411ac;throw Error(_0x53f70a(0x1ca)+_0x49fd2b[_0x53f70a(0x1e5)]+'x'+(((_0x2411ac=_0x49fd2b[0x0])==null?void 0x0:_0x2411ac[_0x53f70a(0x1e5)])??0x0)+_0x53f70a(0x228)+_0x230f9b+'x'+_0x462ae8+'.');}let _0x22e4b6=this[_0x53f70a(0x1da)](),_0x23262e=this['_getFieldIds'](_0x22e4b6),_0x50c81d=_0x49fd2b[_0x53f70a(0x22d)]((_0x4d2bd2,_0x574c20)=>_0x4d2bd2[_0x53f70a(0x1bd)]((_0x497f87,_0x4c0dfb)=>{const _0x24bf90=_0x53f70a;var _0xc69660;let _0x110b55=this[_0x24bf90(0x186)][_0x24bf90(0x245)]+_0x574c20,_0x5a422a=_0x23262e[this[_0x24bf90(0x186)][_0x24bf90(0x27f)]+_0x4c0dfb],_0x22a80c=(_0xc69660=_0x22e4b6[_0x24bf90(0x26b)])==null?void 0x0:_0xc69660[_0x110b55];if(!_0x5a422a||!_0x22a80c)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x22a80c,'fieldId':_0x5a422a,'value':_0x497f87};}));return this[_0x53f70a(0x175)][_0x53f70a(0x153)](_0x2ebbdb['id'],{'unitId':this[_0x53f70a(0x22e)][_0x53f70a(0x257)](),'tableId':this[_0x53f70a(0x206)][_0x53f70a(0x257)](),'patches':_0x50c81d,'source':_0x3929cb[_0x53f70a(0x1fc)]});}['clear'](){const _0x441bf7=_0x5d6143;return this[_0x441bf7(0x27c)](Array['from']({'length':this['getNumRows']()},()=>Array[_0x441bf7(0x1b4)]({'length':this['getNumColumns']()},()=>null)));}[_0x5d6143(0x282)](_0x3eb7df,_0x4f7f09,_0xa2a45b=this[_0x5d6143(0x17a)](),_0x3e7f58=this[_0x5d6143(0x16e)]()){const _0x550010=_0x5d6143;return this[_0x550010(0x14e)]['createInstance'](G,this[_0x550010(0x22e)],this[_0x550010(0x206)],{'startRow':this[_0x550010(0x186)][_0x550010(0x245)]+_0x3eb7df,'startColumn':this[_0x550010(0x186)][_0x550010(0x27f)]+_0x4f7f09,'endRow':this[_0x550010(0x186)]['startRow']+_0x3eb7df+_0xa2a45b-0x1,'endColumn':this[_0x550010(0x186)][_0x550010(0x27f)]+_0x4f7f09+_0x3e7f58-0x1},this[_0x550010(0x14e)]);}[_0x5d6143(0x1da)](){const _0x507c24=_0x5d6143;let _0x7851cc=this[_0x507c24(0x206)]['getTable']();if(!_0x7851cc)throw Error('[FBaseRange]:\x20table\x20does\x20not\x20exist.');return _0x50c331(_0x7851cc);}['_assertInBounds'](){const _0x4d4e4a=_0x5d6143;var _0x1e1e93;let _0x5a2f99=this[_0x4d4e4a(0x1da)](),_0x1d0c74=((_0x1e1e93=_0x5a2f99[_0x4d4e4a(0x147)])==null?void 0x0:_0x1e1e93['length'])??0x0,_0x599a2e=this[_0x4d4e4a(0x1e9)](_0x5a2f99)[_0x4d4e4a(0x1e5)];if(this[_0x4d4e4a(0x186)][_0x4d4e4a(0x245)]<0x0||this[_0x4d4e4a(0x186)][_0x4d4e4a(0x27f)]<0x0||this[_0x4d4e4a(0x186)][_0x4d4e4a(0x12f)]<this[_0x4d4e4a(0x186)][_0x4d4e4a(0x245)]||this[_0x4d4e4a(0x186)][_0x4d4e4a(0x14f)]<this['_range']['startColumn']||this['_range'][_0x4d4e4a(0x12f)]>=Math['max'](_0x1d0c74,0x1)||this['_range'][_0x4d4e4a(0x14f)]>=Math[_0x4d4e4a(0x18b)](_0x599a2e,0x1))throw Error(_0x4d4e4a(0x19c)+_0x1d0c74+_0x4d4e4a(0x1cc)+_0x599a2e+_0x4d4e4a(0x209)+JSON['stringify'](this['_range'])+'.');}['_getFieldIds'](_0x58f244){const _0x244611=_0x5d6143;return _0x58f244[_0x244611(0x1ef)][_0x244611(0x17f)](_0x2d2f97=>V(_0x58f244['fields'][_0x2d2f97]));}};K=G=z([R(0x4,_0x4d60b9)],K);function q(_0x17003a){'@babel/helpers - typeof';const _0x4ef503=_0x5d6143;return q=typeof Symbol==_0x4ef503(0x149)&&typeof Symbol[_0x4ef503(0x13c)]==_0x4ef503(0x14c)?function(_0x30acf2){return typeof _0x30acf2;}:function(_0x2e706e){const _0x6ca989=_0x4ef503;return _0x2e706e&&typeof Symbol==_0x6ca989(0x149)&&_0x2e706e['constructor']===Symbol&&_0x2e706e!==Symbol[_0x6ca989(0x183)]?_0x6ca989(0x14c):typeof _0x2e706e;},q(_0x17003a);}function pt(_0x179f86,_0x46fede){const _0x1e4683=_0x5d6143;if(q(_0x179f86)!='object'||!_0x179f86)return _0x179f86;var _0x2841ef=_0x179f86[Symbol[_0x1e4683(0x1bb)]];if(_0x2841ef!==void 0x0){var _0xfbb312=_0x2841ef['call'](_0x179f86,_0x46fede||_0x1e4683(0x14a));if(q(_0xfbb312)!=_0x1e4683(0x243))return _0xfbb312;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x46fede===_0x1e4683(0x255)?String:Number)(_0x179f86);}function mt(_0x40f3c6){const _0x2207a5=_0x5d6143;var _0x97d21f=pt(_0x40f3c6,_0x2207a5(0x255));return q(_0x97d21f)==_0x2207a5(0x14c)?_0x97d21f:_0x97d21f+'';}function ht(_0x5f2cc6,_0x3e24c4,_0x5439a2){const _0x16ff81=_0x5d6143;return(_0x3e24c4=mt(_0x3e24c4))in _0x5f2cc6?Object[_0x16ff81(0x20b)](_0x5f2cc6,_0x3e24c4,{'value':_0x5439a2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5f2cc6[_0x3e24c4]=_0x5439a2,_0x5f2cc6;}var J;let Y=J=class extends _0x5e2686{constructor(_0x4f1564,_0x1523a8,_0x29f8db,_0x2654d7,_0x43f036,_0x57d896){const _0x162877=_0x5d6143;super(_0x2654d7),this[_0x162877(0x22e)]=_0x4f1564,this[_0x162877(0x206)]=_0x1523a8,this['_recordId']=_0x29f8db,this[_0x162877(0x12a)]=_0x2654d7,this[_0x162877(0x175)]=_0x43f036,this['_permissionService']=_0x57d896,ht(this,_0x162877(0x1b3),void 0x0),ht(this,_0x162877(0x20e),void 0x0),this[_0x162877(0x1b3)]=_0x4f1564['getId'](),this[_0x162877(0x20e)]=_0x1523a8[_0x162877(0x257)]();}['getBaseFacade'](){const _0x36a6c2=_0x5d6143;return this[_0x36a6c2(0x22e)];}['getTableFacade'](){const _0x3266c4=_0x5d6143;return this[_0x3266c4(0x206)];}[_0x5d6143(0x257)](){const _0x48457c=_0x5d6143;return this[_0x48457c(0x27d)];}[_0x5d6143(0x1ba)](){const _0x2aff8c=_0x5d6143;let _0x591407=this[_0x2aff8c(0x206)][_0x2aff8c(0x257)]();return new L(this['_base']['getId'](),_0x5aa11b(_0x591407,this[_0x2aff8c(0x27d)]),[_0x15e072(_0x591407)],this[_0x2aff8c(0x175)],this[_0x2aff8c(0x223)]);}[_0x5d6143(0x24b)](){const _0x5b2045=_0x5d6143;return{...this[_0x5b2045(0x1f5)](),'values':this['getValues']()};}[_0x5d6143(0x236)](_0x3fdb20){const _0x481b41=_0x5d6143;return V(this[_0x481b41(0x206)][_0x481b41(0x20a)]()[_0x481b41(0x202)][_0x3fdb20])?this[_0x481b41(0x1f5)]()['values'][_0x3fdb20]??null:null;}['getValues'](){const _0x256588=_0x5d6143;let _0x3feedf=this[_0x256588(0x206)][_0x256588(0x20a)]();return Object['fromEntries'](Object[_0x256588(0x197)](this[_0x256588(0x1f5)]()[_0x256588(0x1a2)])[_0x256588(0x17f)](([_0x2755b2])=>V(_0x3feedf[_0x256588(0x202)][_0x2755b2])));}[_0x5d6143(0x215)](_0x6db52f,_0x3a4667){const _0x42e0ef=_0x5d6143;let _0x41f5d1=this[_0x42e0ef(0x206)][_0x42e0ef(0x20a)]()[_0x42e0ef(0x202)][_0x6db52f];return this[_0x42e0ef(0x175)][_0x42e0ef(0x153)](_0xd989ce['id'],{'unitId':this[_0x42e0ef(0x22e)]['getId'](),'tableId':this[_0x42e0ef(0x206)][_0x42e0ef(0x257)](),'recordId':this[_0x42e0ef(0x27d)],'fieldId':_0x6db52f,'value':st(_0x41f5d1,_0x3a4667),'source':_0x3929cb['Facade']});}[_0x5d6143(0x268)](_0x49f411,_0x3615ac){const _0x36c185=_0x5d6143;return this['setValue'](_0x49f411,_0x3615ac[_0x36c185(0x1bd)](_0x3f4338=>({..._0x3f4338})));}[_0x5d6143(0x18a)](_0x98a893){const _0x40c123=_0x5d6143;this[_0x40c123(0x169)](_0x98a893);let _0x1658c0=this[_0x40c123(0x236)](_0x98a893);return Array[_0x40c123(0x262)](_0x1658c0)?_0x1658c0[_0x40c123(0x1bd)]((_0x5c018d,_0x5a1bf2)=>_t(_0x5c018d,_0x98a893,_0x5a1bf2)):[];}['deleteAttachments'](_0x4b56d9,_0x2d6ab5){const _0x426aa2=_0x5d6143;this[_0x426aa2(0x169)](_0x4b56d9);let _0x29a00b=new Set(_0x2d6ab5[_0x426aa2(0x1bd)](_0x16fbb7=>_0x16fbb7['id']));if(!_0x29a00b[_0x426aa2(0x1ee)])return!0x0;let _0x2cee2c=this[_0x426aa2(0x18a)](_0x4b56d9),_0x473cd5=_0x2cee2c[_0x426aa2(0x17f)](_0x1f893a=>!_0x29a00b[_0x426aa2(0x171)](_0x1f893a['id']));return _0x473cd5[_0x426aa2(0x1e5)]===_0x2cee2c[_0x426aa2(0x1e5)]||this[_0x426aa2(0x268)](_0x4b56d9,_0x473cd5);}['setValues'](_0x2cb7e9,_0xe86f36='id'){const _0x1d7a9f=_0x5d6143;let _0x37040d=this['_table']['getTable'](),_0x5a3995=[{'recordId':this[_0x1d7a9f(0x27d)],'values':H(_0x37040d,_0x2cb7e9,_0xe86f36)}];return this[_0x1d7a9f(0x175)][_0x1d7a9f(0x153)](_0x3c4e8d['id'],{'unitId':this[_0x1d7a9f(0x22e)][_0x1d7a9f(0x257)](),'tableId':this[_0x1d7a9f(0x206)]['getId'](),'patches':_0x5a3995,'source':_0x3929cb[_0x1d7a9f(0x1fc)]});}[_0x5d6143(0x274)](){const _0x270542=_0x5d6143;return this[_0x270542(0x175)][_0x270542(0x153)](_0x2f0c33['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x270542(0x206)][_0x270542(0x257)](),'recordId':this[_0x270542(0x27d)],'source':_0x3929cb[_0x270542(0x1fc)]});}['duplicate'](_0x3375c2){const _0x11bca4=_0x5d6143;let _0x19c570={...this[_0x11bca4(0x1f5)](),..._0x3375c2,'id':_0x563d6(0x6)};_0x19c570[_0x11bca4(0x1a2)]={..._0x19c570[_0x11bca4(0x1a2)],..._0x3375c2==null?void 0x0:_0x3375c2[_0x11bca4(0x1a2)]},Reflect[_0x11bca4(0x251)](_0x19c570['values'],_0xe50529);let _0x491f77=Date[_0x11bca4(0x21a)]();if(_0x19c570['orderKey']||=''+_0x491f77,_0x19c570[_0x11bca4(0x1ce)]||=_0x491f77,_0x19c570[_0x11bca4(0x278)]||=_0x491f77,!this[_0x11bca4(0x175)][_0x11bca4(0x153)](_0x5a3030['id'],{'unitId':this[_0x11bca4(0x22e)][_0x11bca4(0x257)](),'tableId':this['_table']['getId'](),'sourceRecordId':this['_recordId'],'record':_0x19c570,'source':_0x3929cb[_0x11bca4(0x1fc)]}))throw Error(_0x11bca4(0x195)+this[_0x11bca4(0x27d)]+'\x22.');return this[_0x11bca4(0x12a)][_0x11bca4(0x21d)](J,this[_0x11bca4(0x22e)],this['_table'],_0x19c570['id'],this[_0x11bca4(0x12a)]);}[_0x5d6143(0x22f)](_0x2c80b6){const _0x5f1150=_0x5d6143;return this[_0x5f1150(0x175)][_0x5f1150(0x153)](_0x5c34e7['id'],{'unitId':this[_0x5f1150(0x22e)]['getId'](),'tableId':this[_0x5f1150(0x206)][_0x5f1150(0x257)](),'recordId':this['_recordId'],'orderKey':_0x2c80b6});}['getLinkedRecordIds'](_0x4303c8){let _0x1c693=this['_getRecordLinkField'](_0x4303c8),_0x11fca8=this['getValue'](_0x1c693['id']);return _0x15a8ab(_0x11fca8);}['setLinkedRecordIds'](_0x4e998c,_0x55dca9){const _0x1aa167=_0x5d6143;let _0x34cd8c=this[_0x1aa167(0x26e)](_0x4e998c),_0x2dcb4a=_0x1808ed(_0x55dca9),_0x199eba=_0x529f3e(this[_0x1aa167(0x22e)][_0x1aa167(0x19f)]()[_0x1aa167(0x258)](),_0x34cd8c,_0x2dcb4a);if(!_0x199eba[_0x1aa167(0x263)])throw Error(_0x199eba['reason']??'[FRecord]:\x20invalid\x20RecordLink\x20value.');return this['_commandService'][_0x1aa167(0x153)](_0xd989ce['id'],{'unitId':this[_0x1aa167(0x22e)][_0x1aa167(0x257)](),'tableId':this[_0x1aa167(0x206)][_0x1aa167(0x257)](),'recordId':this[_0x1aa167(0x27d)],'fieldId':_0x4e998c,'value':_0x2dcb4a,'source':_0x3929cb[_0x1aa167(0x1fc)]});}[_0x5d6143(0x279)](_0x2a89f9,_0x163df8){const _0x3915f1=_0x5d6143;let _0x58cfe2=this[_0x3915f1(0x26e)](_0x2a89f9),_0x35cc18=_0x1220e3(_0x58cfe2);if(!_0x35cc18)throw Error(_0x3915f1(0x1d0)+_0x2a89f9+_0x3915f1(0x1d9));let _0x5abd29=this[_0x3915f1(0x1df)](_0x2a89f9);return _0x35cc18['multiple']&&_0x5abd29[_0x3915f1(0x219)](_0x163df8)?!0x0:this[_0x3915f1(0x1ed)](_0x2a89f9,_0x35cc18['multiple']?[..._0x5abd29,_0x163df8]:[_0x163df8]);}['removeLinkedRecord'](_0x545815,_0x45fc2a){const _0x34f332=_0x5d6143;let _0x2ce061=this['getLinkedRecordIds'](_0x545815);return!_0x2ce061[_0x34f332(0x219)](_0x45fc2a)||this['setLinkedRecordIds'](_0x545815,_0x2ce061['filter'](_0x1bc6e1=>_0x1bc6e1!==_0x45fc2a));}[_0x5d6143(0x23a)](_0x3e00d0){const _0x48812e=_0x5d6143;let _0x5452ed=this[_0x48812e(0x19e)](_0x3e00d0)[_0x48812e(0x220)][_0x48812e(0x265)](this[_0x48812e(0x27d)])??null;return _0x5452ed?this[_0x48812e(0x206)][_0x48812e(0x146)](_0x5452ed):null;}[_0x5d6143(0x156)](_0x228faa){const _0xcea233=_0x5d6143;return(this['_getHierarchyIndex'](_0x228faa)[_0xcea233(0x157)][_0xcea233(0x265)](this['_recordId'])??[])[_0xcea233(0x22d)](_0x5a004f=>{const _0x591e5a=_0xcea233;let _0x3110d2=this[_0x591e5a(0x206)][_0x591e5a(0x146)](_0x5a004f);return _0x3110d2?[_0x3110d2]:[];});}[_0x5d6143(0x12b)](_0x9abed6){const _0x48410a=_0x5d6143;let _0x4f5151=this[_0x48410a(0x19e)](_0x9abed6),_0x990f4e=[],_0x1b4e2e=_0x4f5151[_0x48410a(0x220)][_0x48410a(0x265)](this[_0x48410a(0x27d)])??null;for(;_0x1b4e2e;){let _0xbd0b82=this[_0x48410a(0x206)][_0x48410a(0x146)](_0x1b4e2e);_0xbd0b82&&_0x990f4e[_0x48410a(0x1db)](_0xbd0b82),_0x1b4e2e=_0x4f5151[_0x48410a(0x220)]['get'](_0x1b4e2e)??null;}return _0x990f4e;}[_0x5d6143(0x199)](_0x271c74){const _0x156406=_0x5d6143;let _0x57ab54=this[_0x156406(0x19e)](_0x271c74),_0x2f8afd=_0x57ab54['orderedRecordIds'][_0x156406(0x1b2)](this[_0x156406(0x27d)]),_0x28d57e=_0x57ab54[_0x156406(0x13f)][_0x156406(0x171)](this[_0x156406(0x27d)])?this[_0x156406(0x193)](_0x57ab54['childrenByParentId'],this['_recordId']):[];return _0x2f8afd<0x0?[]:_0x28d57e['flatMap'](_0x3dd05d=>{const _0x1b3a7c=_0x156406;let _0x48fbbc=this[_0x1b3a7c(0x206)][_0x1b3a7c(0x146)](_0x3dd05d);return _0x48fbbc?[_0x48fbbc]:[];});}[_0x5d6143(0x235)](_0x1d9d6a,_0xa97dd3,_0x5413ef){const _0x12eb30=_0x5d6143;return this[_0x12eb30(0x175)][_0x12eb30(0x153)](_0x1aea4c['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x12eb30(0x206)][_0x12eb30(0x257)](),'fieldId':_0x1d9d6a,'recordId':this[_0x12eb30(0x27d)],'parentRecordId':_0xa97dd3,'orderKey':_0x5413ef,'source':_0x3929cb[_0x12eb30(0x1fc)]});}[_0x5d6143(0x27b)](_0x55a6c5,_0x3f833c,_0x2d98b9='id',_0x11229b){const _0x4daf28=_0x5d6143;let _0x3c4cac=this[_0x4daf28(0x206)]['getTable'](),_0x1ad9da=Date[_0x4daf28(0x21a)](),_0x399dc1={..._0x11229b,'id':_0x563d6(0x6),'values':H(_0x3c4cac,_0x3f833c,_0x2d98b9),'orderKey':(_0x11229b==null?void 0x0:_0x11229b[_0x4daf28(0x256)])||''+_0x1ad9da,'createdAt':(_0x11229b==null?void 0x0:_0x11229b['createdAt'])||_0x1ad9da,'updatedAt':(_0x11229b==null?void 0x0:_0x11229b[_0x4daf28(0x278)])||_0x1ad9da};if(!this[_0x4daf28(0x175)][_0x4daf28(0x153)](_0x550a38['id'],{'unitId':this[_0x4daf28(0x22e)]['getId'](),'tableId':this[_0x4daf28(0x206)][_0x4daf28(0x257)](),'fieldId':_0x55a6c5,'parentRecordId':this['_recordId'],'record':_0x399dc1,'source':_0x3929cb[_0x4daf28(0x1fc)]}))throw Error(_0x4daf28(0x23d)+this[_0x4daf28(0x27d)]+'\x22.');return this['_injector']['createInstance'](J,this[_0x4daf28(0x22e)],this[_0x4daf28(0x206)],_0x399dc1['id'],this['_injector']);}[_0x5d6143(0x19e)](_0x335021){const _0x16c1fc=_0x5d6143;return _0xbf13b7(this[_0x16c1fc(0x206)][_0x16c1fc(0x20a)](),_0x335021);}[_0x5d6143(0x193)](_0xb923bd,_0xd0722e){let _0x40c73c=[],_0x14c02a=_0x5aa5fc=>{const _0x3ab4d5=_0xcda4;for(let _0x434c98 of _0xb923bd[_0x3ab4d5(0x265)](_0x5aa5fc)??[])_0x40c73c['push'](_0x434c98),_0x14c02a(_0x434c98);};return _0x14c02a(_0xd0722e),_0x40c73c;}[_0x5d6143(0x1f5)](){const _0x3c74af=_0x5d6143;let _0x5b7b0e=this[_0x3c74af(0x206)][_0x3c74af(0x20a)]()[_0x3c74af(0x19b)][this['_recordId']];if(!_0x5b7b0e)throw Error(_0x3c74af(0x204)+this[_0x3c74af(0x27d)]+_0x3c74af(0x218));return _0x5b7b0e;}[_0x5d6143(0x26e)](_0x5da9f1){const _0x500ba1=_0x5d6143;let _0x27d474=this[_0x500ba1(0x206)][_0x500ba1(0x20a)]()[_0x500ba1(0x202)][_0x5da9f1];if(!_0x27d474||_0x27d474[_0x500ba1(0x1a7)]!==_0xe1377b[_0x500ba1(0x25d)])throw Error(_0x500ba1(0x27e)+_0x5da9f1+_0x500ba1(0x128));return _0x27d474;}[_0x5d6143(0x169)](_0x3e33e7){const _0x4de600=_0x5d6143;let _0x20e38a=this[_0x4de600(0x206)][_0x4de600(0x20a)]()[_0x4de600(0x202)][_0x3e33e7];if(!_0x20e38a||_0x20e38a[_0x4de600(0x1a7)]!==_0xe1377b[_0x4de600(0x127)])throw Error('[FRecord]:\x20field\x20\x22'+_0x3e33e7+_0x4de600(0x259));return _0x20e38a;}};Y=J=z([R(0x4,_0x4d60b9),R(0x5,_0x4ad80a)],Y);function gt(_0x432fe5){const _0x3a1bad=_0x5d6143;return!!(_0x432fe5&&typeof _0x432fe5==_0x3a1bad(0x243)&&'id'in _0x432fe5&&typeof _0x432fe5['id']=='string'&&_0x3a1bad(0x174)in _0x432fe5&&typeof _0x432fe5[_0x3a1bad(0x174)]==_0x3a1bad(0x255));}function _t(_0x5b7086,_0x2bf81d,_0x53a8b5){const _0x428858=_0x5d6143;if(!gt(_0x5b7086))throw Error(_0x428858(0x145)+_0x53a8b5+_0x428858(0x15d)+_0x2bf81d+_0x428858(0x1bf));return{..._0x5b7086};}let X=class{constructor(_0x660691,_0x16b1b6,_0x1b616b,_0x25d554,_0x10a7ad,_0x121d5f,_0x8f5551){const _0x2f45ec=_0x5d6143;this[_0x2f45ec(0x22e)]=_0x660691,this[_0x2f45ec(0x206)]=_0x16b1b6,this[_0x2f45ec(0x15b)]=_0x1b616b,this[_0x2f45ec(0x12a)]=_0x25d554,this['_commandService']=_0x10a7ad,this['_permissionService']=_0x121d5f,this[_0x2f45ec(0x1e4)]=_0x8f5551;}[_0x5d6143(0x257)](){const _0x302e55=_0x5d6143;return this[_0x302e55(0x15b)];}['getPermission'](){const _0xe67627=_0x5d6143;let _0x54c239=this[_0xe67627(0x206)]['getId']();return new L(this[_0xe67627(0x22e)][_0xe67627(0x257)](),_0x1d4c7d(_0x54c239,this[_0xe67627(0x15b)]),[_0x15e072(_0x54c239)],this[_0xe67627(0x175)],this[_0xe67627(0x223)]);}[_0x5d6143(0x154)](){const _0x55c401=_0x5d6143;return this[_0x55c401(0x15c)]();}[_0x5d6143(0x177)](){const _0x26d7a6=_0x5d6143;return this[_0x26d7a6(0x15c)]()[_0x26d7a6(0x174)];}['getType'](){const _0x3d0eb0=_0x5d6143;return this[_0x3d0eb0(0x15c)]()[_0x3d0eb0(0x1a7)];}[_0x5d6143(0x140)](_0x7c2a2a){const _0x2d3e32=_0x5d6143;return this[_0x2d3e32(0x175)][_0x2d3e32(0x153)](_0x5835d9['id'],{'unitId':this[_0x2d3e32(0x22e)][_0x2d3e32(0x257)](),'tableId':this[_0x2d3e32(0x206)][_0x2d3e32(0x257)](),'viewId':this[_0x2d3e32(0x15b)],'name':_0x7c2a2a});}['getConfig'](){const _0x517950=_0x5d6143;let _0x3f7f7c=this[_0x517950(0x24a)](),_0x1239a0=this['_getView']()['config'];switch(_0x3f7f7c){case _0x1753fc[_0x517950(0x261)]:return _0x1239a0;case _0x1753fc[_0x517950(0x18f)]:return _0x1239a0;case _0x1753fc[_0x517950(0x1c9)]:return _0x1239a0;case _0x1753fc[_0x517950(0x1d2)]:return _0x1239a0;case _0x1753fc[_0x517950(0x25e)]:return _0x1239a0;default:return _0x1239a0;}}[_0x5d6143(0x284)](_0x459b2f){const _0x32ed7c=_0x5d6143;return this[_0x32ed7c(0x175)]['syncExecuteCommand'](_0x5010e8['id'],{'unitId':this[_0x32ed7c(0x22e)]['getId'](),'tableId':this[_0x32ed7c(0x206)][_0x32ed7c(0x257)](),'viewId':this[_0x32ed7c(0x15b)],'patch':_0x459b2f});}[_0x5d6143(0x16a)](){const _0x8d16ef=_0x5d6143;var _0x2da1cb;return _0x59ca43[_0x8d16ef(0x13a)](((_0x2da1cb=this[_0x8d16ef(0x15c)]()['config'][_0x8d16ef(0x264)])==null?void 0x0:_0x2da1cb['rules'])??[]);}['setConditionalColorRules'](_0xe9d108){const _0x4679a2=_0x5d6143;return this[_0x4679a2(0x175)]['syncExecuteCommand'](_0x112745['id'],{'unitId':this['_base'][_0x4679a2(0x257)](),'tableId':this[_0x4679a2(0x206)][_0x4679a2(0x257)](),'viewId':this[_0x4679a2(0x15b)],'type':_0x18e9de[_0x4679a2(0x131)],'rules':_0xe9d108});}['addConditionalColorRule'](_0x5ac5e6){const _0x4d6e90=_0x5d6143;return this[_0x4d6e90(0x175)][_0x4d6e90(0x153)](_0x112745['id'],{'unitId':this[_0x4d6e90(0x22e)][_0x4d6e90(0x257)](),'tableId':this['_table']['getId'](),'viewId':this[_0x4d6e90(0x15b)],'type':_0x18e9de[_0x4d6e90(0x24e)],'rule':_0x5ac5e6});}[_0x5d6143(0x167)](_0x384fcc){const _0x4313f1=_0x5d6143;return this[_0x4313f1(0x175)]['syncExecuteCommand'](_0x112745['id'],{'unitId':this[_0x4313f1(0x22e)]['getId'](),'tableId':this['_table']['getId'](),'viewId':this[_0x4313f1(0x15b)],'type':_0x18e9de[_0x4313f1(0x137)],'ruleId':_0x384fcc});}[_0x5d6143(0x24f)](){const _0x30b59c=_0x5d6143;return this['_commandService']['syncExecuteCommand'](_0x112745['id'],{'unitId':this[_0x30b59c(0x22e)]['getId'](),'tableId':this[_0x30b59c(0x206)][_0x30b59c(0x257)](),'viewId':this[_0x30b59c(0x15b)],'type':_0x18e9de[_0x30b59c(0x12c)]});}[_0x5d6143(0x1e7)](){const _0x11e656=_0x5d6143;return this[_0x11e656(0x15c)]()[_0x11e656(0x17f)]??null;}['setFilter'](_0x50b358){const _0x4fbd7e=_0x5d6143;return this[_0x4fbd7e(0x175)][_0x4fbd7e(0x153)](_0x50d350['id'],{'unitId':this[_0x4fbd7e(0x22e)]['getId'](),'tableId':this[_0x4fbd7e(0x206)][_0x4fbd7e(0x257)](),'viewId':this[_0x4fbd7e(0x15b)],'filter':_0x50b358});}[_0x5d6143(0x252)](){const _0xb365de=_0x5d6143;return this[_0xb365de(0x15c)]()[_0xb365de(0x25a)]??[];}[_0x5d6143(0x270)](_0x869bd3){const _0x3d545f=_0x5d6143;return this['_commandService'][_0x3d545f(0x153)](_0x217a2c['id'],{'unitId':this[_0x3d545f(0x22e)][_0x3d545f(0x257)](),'tableId':this[_0x3d545f(0x206)][_0x3d545f(0x257)](),'viewId':this['_viewId'],'sort':_0x869bd3});}[_0x5d6143(0x1b1)](){const _0x4507fa=_0x5d6143;return this[_0x4507fa(0x15c)]()[_0x4507fa(0x141)]??[];}['setGroup'](_0x4a782c){const _0x1af6c9=_0x5d6143;return this[_0x1af6c9(0x175)][_0x1af6c9(0x153)](_0x439ee7['id'],{'unitId':this[_0x1af6c9(0x22e)][_0x1af6c9(0x257)](),'tableId':this['_table'][_0x1af6c9(0x257)](),'viewId':this[_0x1af6c9(0x15b)],'group':_0x4a782c});}['getFieldSettings'](_0x56058b){const _0xc8a452=_0x5d6143;var _0x3c475a;return V(this['_table'][_0xc8a452(0x20a)]()[_0xc8a452(0x202)][_0x56058b])?((_0x3c475a=this[_0xc8a452(0x15c)]()[_0xc8a452(0x13b)])==null?void 0x0:_0x3c475a[_0x56058b])??{}:{};}[_0x5d6143(0x17d)](){const _0x31499a=_0x5d6143;let _0x3112f4=this[_0x31499a(0x206)]['getTable'](),_0x2cc031=this['_getView']();return(_0x2cc031[_0x31499a(0x1ef)]??_0x3112f4[_0x31499a(0x1ef)])[_0x31499a(0x17f)](_0x2b8457=>{const _0x2c3678=_0x31499a;var _0xd837ee;let _0x56fbfa=_0x3112f4[_0x2c3678(0x202)][_0x2b8457];return V(_0x56fbfa)&&!((_0xd837ee=_0x2cc031[_0x2c3678(0x13b)])!=null&&(_0xd837ee=_0xd837ee[_0x2b8457])!=null&&_0xd837ee['hidden']);})['map'](_0x2ffbfe=>this[_0x31499a(0x12a)]['createInstance'](B,this[_0x31499a(0x22e)],this[_0x31499a(0x206)],_0x2ffbfe));}[_0x5d6143(0x15a)](_0x1acab2,_0x2aa292){const _0x4380bc=_0x5d6143;return V(this[_0x4380bc(0x206)]['getTable']()[_0x4380bc(0x202)][_0x1acab2])?this['_commandService'][_0x4380bc(0x153)](_0x41519f['id'],{'unitId':this[_0x4380bc(0x22e)][_0x4380bc(0x257)](),'tableId':this[_0x4380bc(0x206)]['getId'](),'viewId':this[_0x4380bc(0x15b)],'fieldId':_0x1acab2,'visible':_0x2aa292}):!0x1;}[_0x5d6143(0x22a)](_0x42d49e,_0x4c666b){const _0x257984=_0x5d6143;return V(this[_0x257984(0x206)][_0x257984(0x20a)]()['fields'][_0x42d49e])?this['_commandService'][_0x257984(0x153)](_0x249729['id'],{'unitId':this['_base'][_0x257984(0x257)](),'tableId':this[_0x257984(0x206)][_0x257984(0x257)](),'viewId':this[_0x257984(0x15b)],'fieldId':_0x42d49e,'width':_0x4c666b}):!0x1;}[_0x5d6143(0x168)](_0x13046b,_0x30a5ff){const _0x3a9164=_0x5d6143;let _0x1d3116=this[_0x3a9164(0x206)][_0x3a9164(0x20a)](),_0x22ef60=_0x30a5ff['beforeFieldId']??_0x30a5ff[_0x3a9164(0x19a)];return!V(_0x1d3116['fields'][_0x13046b])||!_0x22ef60||!V(_0x1d3116[_0x3a9164(0x202)][_0x22ef60])?!0x1:this[_0x3a9164(0x175)][_0x3a9164(0x153)](_0x354098['id'],{'unitId':this[_0x3a9164(0x22e)]['getId'](),'tableId':this[_0x3a9164(0x206)][_0x3a9164(0x257)](),'viewId':this[_0x3a9164(0x15b)],'fieldId':_0x13046b,'target':_0x30a5ff});}[_0x5d6143(0x1fb)](_0x240d80){const _0x580553=_0x5d6143;return this[_0x580553(0x175)][_0x580553(0x153)](_0x2c00c8['id'],{'unitId':this[_0x580553(0x22e)][_0x580553(0x257)](),'tableId':this[_0x580553(0x206)][_0x580553(0x257)](),'viewId':this['_viewId'],'target':_0x240d80});}[_0x5d6143(0x274)](){const _0x3f40be=_0x5d6143;return this[_0x3f40be(0x175)][_0x3f40be(0x153)](_0x23ad3a['id'],{'unitId':this[_0x3f40be(0x22e)]['getId'](),'tableId':this['_table'][_0x3f40be(0x257)](),'viewId':this[_0x3f40be(0x15b)]});}[_0x5d6143(0x1a6)](){const _0x3bbd9b=_0x5d6143;return this[_0x3bbd9b(0x1e4)][_0x3bbd9b(0x1a6)](this['_base'][_0x3bbd9b(0x19f)]()[_0x3bbd9b(0x258)](),this['_table'][_0x3bbd9b(0x257)](),this[_0x3bbd9b(0x15b)]);}['_getView'](){const _0x1edabf=_0x5d6143;let _0x5e9f59=this[_0x1edabf(0x206)][_0x1edabf(0x20a)]()['views'][this[_0x1edabf(0x15b)]];if(!_0x5e9f59)throw Error('[FView]:\x20view\x20\x22'+this[_0x1edabf(0x15b)]+_0x1edabf(0x218));return _0x5e9f59;}};X=z([R(0x4,_0x4d60b9),R(0x5,_0x4ad80a),R(0x6,_0x8d78f1)],X);let Z=class{constructor(_0x38181c,_0x256c88,_0x10848b,_0x44395a,_0x51ae3d,_0x33ce30){const _0x1f8e3c=_0x5d6143;this[_0x1f8e3c(0x22e)]=_0x38181c,this[_0x1f8e3c(0x187)]=_0x256c88,this[_0x1f8e3c(0x12a)]=_0x10848b,this[_0x1f8e3c(0x175)]=_0x44395a,this['_permissionService']=_0x51ae3d,this[_0x1f8e3c(0x1e4)]=_0x33ce30;}[_0x5d6143(0x19f)](){const _0xdfa2b4=_0x5d6143;return this['_base'][_0xdfa2b4(0x19f)]();}['getTable'](){return this['_getTable']();}[_0x5d6143(0x257)](){return this['_tableId'];}[_0x5d6143(0x1ba)](){const _0x541614=_0x5d6143;return new L(this[_0x541614(0x19f)]()[_0x541614(0x135)](),_0x15e072(this['_tableId']),[],this[_0x541614(0x175)],this[_0x541614(0x223)]);}[_0x5d6143(0x1c8)](){const _0xaca4e=_0x5d6143;return _0x254f03(this[_0xaca4e(0x1da)]());}[_0x5d6143(0x1c6)](_0x538270){const _0x586b11=_0x5d6143;return this[_0x586b11(0x175)][_0x586b11(0x153)](_0x2b74e0['id'],{'unitId':this[_0x586b11(0x22e)][_0x586b11(0x257)](),'tableId':this[_0x586b11(0x187)],'fieldId':_0x538270});}['getName'](){const _0x11dd08=_0x5d6143;return this['_getTable']()[_0x11dd08(0x174)];}[_0x5d6143(0x26a)](){const _0x47471e=_0x5d6143;let _0x11768c=this[_0x47471e(0x22e)]['getBase']()[_0x47471e(0x258)]();return _0x30d832(this[_0x47471e(0x1da)](),_0x11768c);}['setName'](_0x26c054){const _0x4f5e50=_0x5d6143;let _0xd8f393=_0x1252cc(this[_0x4f5e50(0x22e)][_0x4f5e50(0x19f)]()[_0x4f5e50(0x258)](),_0x26c054,this[_0x4f5e50(0x187)]);if(!_0xd8f393[_0x4f5e50(0x263)])throw Error(_0x4f5e50(0x142)+_0x26c054+_0x4f5e50(0x26f)+_0x42fde6+'\x20'+_0xd8f393[_0x4f5e50(0x1d7)]);return this[_0x4f5e50(0x175)][_0x4f5e50(0x153)](_0x2f9fb9['id'],{'unitId':this[_0x4f5e50(0x22e)]['getId'](),'tableId':this[_0x4f5e50(0x187)],'name':_0x26c054});}[_0x5d6143(0x246)](_0x516826,_0x3fbce9){const _0x4fb981=_0x5d6143;let _0x120e93=this[_0x4fb981(0x22e)][_0x4fb981(0x19f)]()[_0x4fb981(0x258)](),_0x3c0aac=this[_0x4fb981(0x1da)]();if(_0x3fbce9){let _0x2ff58a=this[_0x4fb981(0x1e4)]['getProjection'](_0x120e93,this[_0x4fb981(0x187)],_0x3fbce9),_0x1d411c=_0x3c0aac[_0x4fb981(0x267)][_0x3fbce9],_0x3f2aa5=_0x516826[_0x4fb981(0x23b)]??Tt(_0x3c0aac,_0x1d411c,_0x2ff58a),_0x2ca55a='rows'in _0x2ff58a&&Array['isArray'](_0x2ff58a[_0x4fb981(0x22c)])?_0x2ff58a[_0x4fb981(0x22c)]:[];return _0x260bc4({..._0x516826,'table':_0x3c0aac,'fieldIds':_0x3f2aa5,'rows':_0x2ca55a});}let _0x387940=(_0x3c0aac['recordOrder']?_0x3c0aac['recordOrder'][_0x4fb981(0x1bd)](_0x251dfa=>_0x3c0aac[_0x4fb981(0x19b)][_0x251dfa]):Object[_0x4fb981(0x1a2)](_0x3c0aac[_0x4fb981(0x19b)])[_0x4fb981(0x25a)]((_0x1e2950,_0x4fd50d)=>_0x1e2950['orderKey'][_0x4fb981(0x134)](_0x4fd50d[_0x4fb981(0x256)])))[_0x4fb981(0x17f)](_0x3a9cf9=>_0x3a9cf9)[_0x4fb981(0x1bd)](_0x49303d=>({'recordId':_0x49303d['id'],'values':_0x49303d['values']})),_0x404398=_0x516826[_0x4fb981(0x23b)]??_0x3c0aac[_0x4fb981(0x1ef)][_0x4fb981(0x17f)](_0x20267e=>V(_0x3c0aac[_0x4fb981(0x202)][_0x20267e]));return _0x260bc4({..._0x516826,'table':_0x3c0aac,'fieldIds':_0x404398,'rows':_0x387940});}[_0x5d6143(0x143)](){const _0x3cbec9=_0x5d6143;return this['_getTable']()[_0x3cbec9(0x1c1)];}[_0x5d6143(0x1b7)](){const _0x45c76a=_0x5d6143;let _0x593b4d=this['_getTable']();return _0x593b4d['fieldOrder'][_0x45c76a(0x1bd)](_0x2598ae=>_0x593b4d[_0x45c76a(0x202)][_0x2598ae])['filter'](V)[_0x45c76a(0x1bd)](_0x426dd1=>this[_0x45c76a(0x12a)][_0x45c76a(0x21d)](B,this[_0x45c76a(0x22e)],this,_0x426dd1['id']));}[_0x5d6143(0x271)](_0x149a53){const _0x127807=_0x5d6143;let _0x1bf895=this['_getTable']()[_0x127807(0x202)][_0x149a53];return V(_0x1bf895)?this[_0x127807(0x12a)]['createInstance'](B,this[_0x127807(0x22e)],this,_0x1bf895['id']):null;}[_0x5d6143(0x160)](_0x39c61b){const _0x11b923=_0x5d6143;let _0x3c0b21=this[_0x11b923(0x1da)]()[_0x11b923(0x202)],_0x319873=Object['values'](_0x3c0b21)[_0x11b923(0x233)](_0x48b23b=>V(_0x48b23b)&&_0x48b23b[_0x11b923(0x174)]===_0x39c61b);return _0x319873?this['_injector']['createInstance'](B,this[_0x11b923(0x22e)],this,_0x319873['id']):null;}[_0x5d6143(0x194)](){const _0x3f7dcb=_0x5d6143;let _0x22eeb0=this[_0x3f7dcb(0x1da)]()['primaryFieldId'];return this[_0x3f7dcb(0x12a)][_0x3f7dcb(0x21d)](B,this['_base'],this,_0x22eeb0);}['addField'](_0x20d1b0,_0x4dc07b,_0x35aaf5){const _0x44b5de=_0x5d6143;var _0x1ec305,_0x50e818;if(!Object[_0x44b5de(0x1a2)](_0xe1377b)['some'](_0x17c292=>_0x17c292===_0x4dc07b))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x4dc07b)+'\x22.');if(_0x4dc07b===_0xe1377b[_0x44b5de(0x1c7)]&&this[_0x44b5de(0x1b9)](_0x20d1b0,_0x35aaf5),_0x4dc07b===_0xe1377b[_0x44b5de(0x25d)]&&(typeof(_0x35aaf5==null||(_0x1ec305=_0x35aaf5[_0x44b5de(0x144)])==null||(_0x1ec305=_0x1ec305['config'])==null?void 0x0:_0x1ec305['targetTableId'])!=_0x44b5de(0x255)||typeof _0x35aaf5['field'][_0x44b5de(0x1f8)][_0x44b5de(0x1d3)]!=_0x44b5de(0x16f)))throw Error(_0x44b5de(0x1e8));let _0x5cb6e0={..._0x35aaf5==null?void 0x0:_0x35aaf5[_0x44b5de(0x144)],'id':_0x563d6(0x6),'name':_0x20d1b0,'type':_0x4dc07b,'config':(_0x35aaf5==null||(_0x50e818=_0x35aaf5[_0x44b5de(0x144)])==null?void 0x0:_0x50e818['config'])??{}};if(!this[_0x44b5de(0x175)]['syncExecuteCommand'](_0x27aa7f['id'],{'unitId':this[_0x44b5de(0x22e)][_0x44b5de(0x257)](),'tableId':this[_0x44b5de(0x187)],'field':_0x5cb6e0,'index':_0x35aaf5==null?void 0x0:_0x35aaf5[_0x44b5de(0x1f6)]}))throw Error(_0x44b5de(0x21e)+_0x20d1b0+'\x22');return this[_0x44b5de(0x12a)][_0x44b5de(0x21d)](B,this[_0x44b5de(0x22e)],this,_0x5cb6e0['id']);}[_0x5d6143(0x1b9)](_0x2d45ef,_0x1634dc){const _0x2cf338=_0x5d6143;var _0x3a5c06;if(!_0x1634dc||!(_0x2cf338(0x21f)in _0x1634dc)||!Array[_0x2cf338(0x262)](_0x1634dc[_0x2cf338(0x21f)]))throw Error('Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.');let _0x53480a=this[_0x2cf338(0x175)]['syncExecuteCommand'](_0x496639['id'],{'unitId':this[_0x2cf338(0x22e)][_0x2cf338(0x257)](),'tableId':this[_0x2cf338(0x187)],'formula':String(((_0x3a5c06=_0x1634dc[_0x2cf338(0x144)])==null||(_0x3a5c06=_0x3a5c06['config'])==null?void 0x0:_0x3a5c06['formula'])??'')});if(!_0x53480a[_0x2cf338(0x263)])throw Error(_0x53480a[_0x2cf338(0x1d7)]??_0x2cf338(0x138));if(_0x1634dc['externalReferences'][_0x2cf338(0x1e5)]>0x0&&!this[_0x2cf338(0x175)][_0x2cf338(0x153)](_0x5da99d['id'],{'unitId':this[_0x2cf338(0x22e)][_0x2cf338(0x257)](),'references':_0x1634dc[_0x2cf338(0x21f)]}))throw Error(_0x2cf338(0x23f)+_0x2d45ef+'\x22');}[_0x5d6143(0x1c2)](){const _0x902090=_0x5d6143;return this['_resolveRecordIds']()[_0x902090(0x1bd)](_0x50c1cc=>this[_0x902090(0x12a)][_0x902090(0x21d)](Y,this['_base'],this,_0x50c1cc,this[_0x902090(0x12a)]));}[_0x5d6143(0x146)](_0x24ade2){const _0x5c4f11=_0x5d6143;return this[_0x5c4f11(0x1da)]()[_0x5c4f11(0x19b)][_0x24ade2]?this['_injector'][_0x5c4f11(0x21d)](Y,this[_0x5c4f11(0x22e)],this,_0x24ade2,this[_0x5c4f11(0x12a)]):null;}[_0x5d6143(0x250)](_0x3ef09c={}){const _0x265490=_0x5d6143;let _0x201762=this[_0x265490(0x1da)](),_0x544d31=this[_0x265490(0x234)](_0x3ef09c),_0x2c5719=Math['max'](0x0,_0x3ef09c['offset']??0x0),_0x525062=_0x3ef09c[_0x265490(0x253)]==null?null:Math[_0x265490(0x18b)](0x0,_0x3ef09c['limit']),_0x5aa4b2=yt(_0x544d31[_0x265490(0x1bd)](_0x592b0e=>_0x201762[_0x265490(0x19b)][_0x592b0e])[_0x265490(0x17f)](_0xa1861f=>xt(_0xa1861f,_0x201762,_0x3ef09c[_0x265490(0x17f)])),_0x201762,_0x3ef09c[_0x265490(0x25a)]);return{'records':vt(_0x5aa4b2,_0x3ef09c)[_0x265490(0x1bd)](_0x12cbff=>this[_0x265490(0x12a)]['createInstance'](Y,this[_0x265490(0x22e)],this,_0x12cbff['id'],this['_injector'])),'total':_0x5aa4b2[_0x265490(0x1e5)],'offset':_0x2c5719,'limit':_0x525062,'hasMore':_0x525062!=null&&_0x2c5719+_0x525062<_0x5aa4b2[_0x265490(0x1e5)]};}[_0x5d6143(0x24c)](_0x4072c1,_0x38efa0='id',_0x251bdd){const _0x169a90=_0x5d6143;let _0x1451b5=this['_getTable'](),_0x4d021b=Date[_0x169a90(0x21a)](),_0x35eb0e={..._0x251bdd,'id':_0x563d6(0x6),'values':H(_0x1451b5,_0x4072c1,_0x38efa0),'orderKey':(_0x251bdd==null?void 0x0:_0x251bdd[_0x169a90(0x256)])||''+_0x4d021b,'createdAt':(_0x251bdd==null?void 0x0:_0x251bdd[_0x169a90(0x1ce)])||_0x4d021b,'updatedAt':(_0x251bdd==null?void 0x0:_0x251bdd[_0x169a90(0x278)])||_0x4d021b};if(!this[_0x169a90(0x175)][_0x169a90(0x153)](_0x1b1cbb['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x169a90(0x187)],'record':_0x35eb0e,'source':_0x3929cb[_0x169a90(0x1fc)]}))throw Error(_0x169a90(0x1f7)+_0x35eb0e['id']+'\x22');return this[_0x169a90(0x12a)][_0x169a90(0x21d)](Y,this[_0x169a90(0x22e)],this,_0x35eb0e['id'],this[_0x169a90(0x12a)]);}[_0x5d6143(0x163)](_0x590e2b){const _0x490d60=_0x5d6143;if(!_0x590e2b[_0x490d60(0x1e5)])return[];let _0x3f30aa=this['_getTable'](),_0x599aca=Date[_0x490d60(0x21a)](),_0x4961ce=_0x590e2b[_0x490d60(0x1bd)]((_0x474bbb,_0x1020d6)=>{const _0x652086=_0x490d60;var _0x6b94dc,_0xbae8ed,_0x35a420;return{..._0x474bbb[_0x652086(0x155)],'id':_0x563d6(0x6),'values':H(_0x3f30aa,_0x474bbb[_0x652086(0x1a2)],_0x474bbb[_0x652086(0x133)]??'id'),'orderKey':((_0x6b94dc=_0x474bbb['record'])==null?void 0x0:_0x6b94dc['orderKey'])||''+(_0x599aca+_0x1020d6),'createdAt':((_0xbae8ed=_0x474bbb[_0x652086(0x155)])==null?void 0x0:_0xbae8ed[_0x652086(0x1ce)])||_0x599aca,'updatedAt':((_0x35a420=_0x474bbb[_0x652086(0x155)])==null?void 0x0:_0x35a420[_0x652086(0x278)])||_0x599aca};});if(!this[_0x490d60(0x175)]['syncExecuteCommand'](_0x15e471['id'],{'unitId':this[_0x490d60(0x22e)][_0x490d60(0x257)](),'tableId':this[_0x490d60(0x187)],'records':_0x4961ce,'source':_0x3929cb['Facade']}))throw Error(_0x490d60(0x1ae));return _0x4961ce[_0x490d60(0x1bd)](_0x5cae47=>this[_0x490d60(0x12a)][_0x490d60(0x21d)](Y,this[_0x490d60(0x22e)],this,_0x5cae47['id'],this['_injector']));}[_0x5d6143(0x1ad)](_0x23a164){const _0x45d1fb=_0x5d6143;return!_0x23a164['length']||this['_commandService']['syncExecuteCommand'](_0x3343b8['id'],{'unitId':this[_0x45d1fb(0x22e)][_0x45d1fb(0x257)](),'tableId':this[_0x45d1fb(0x187)],'recordIds':_0x23a164,'source':_0x3929cb[_0x45d1fb(0x1fc)]});}[_0x5d6143(0x139)](_0x3f8af1,_0x57be8e,_0x2335a4=0x1,_0x563794=0x1){const _0x43186f=_0x5d6143;return this['_injector'][_0x43186f(0x21d)](K,this[_0x43186f(0x22e)],this,{'startRow':_0x3f8af1,'endRow':_0x3f8af1+_0x2335a4-0x1,'startColumn':_0x57be8e,'endColumn':_0x57be8e+_0x563794-0x1},this[_0x43186f(0x12a)]);}['getDataRange'](){const _0x57d9d7=_0x5d6143;var _0xd5a7c4;let _0x2491be=_0x50c331(this[_0x57d9d7(0x1da)]()),_0x580e9f=((_0xd5a7c4=_0x2491be['recordOrder'])==null?void 0x0:_0xd5a7c4[_0x57d9d7(0x1e5)])??0x0,_0x3711f2=_0x2491be['fieldOrder'][_0x57d9d7(0x17f)](_0x499559=>V(_0x2491be[_0x57d9d7(0x202)][_0x499559]))[_0x57d9d7(0x1e5)];return this[_0x57d9d7(0x139)](0x0,0x0,Math['max'](_0x580e9f,0x1),Math[_0x57d9d7(0x18b)](_0x3711f2,0x1));}[_0x5d6143(0x150)](){const _0x295160=_0x5d6143;let _0x30b953=this[_0x295160(0x1da)]();return _0x30b953[_0x295160(0x203)][_0x295160(0x17f)](_0x552716=>_0x30b953[_0x295160(0x267)][_0x552716])[_0x295160(0x1bd)](_0x3d1f64=>this[_0x295160(0x12a)]['createInstance'](X,this[_0x295160(0x22e)],this,_0x3d1f64,this[_0x295160(0x12a)]));}[_0x5d6143(0x241)](_0x5a18e9){const _0x454f91=_0x5d6143;return this[_0x454f91(0x1da)]()[_0x454f91(0x267)][_0x5a18e9]?this[_0x454f91(0x12a)][_0x454f91(0x21d)](X,this['_base'],this,_0x5a18e9,this['_injector']):null;}['getViewByName'](_0x91eb8a){const _0x4197d5=_0x5d6143;let _0x1845b7=this[_0x4197d5(0x1da)](),_0x266950=Object[_0x4197d5(0x1a2)](_0x1845b7[_0x4197d5(0x267)])[_0x4197d5(0x233)](_0x32e46b=>_0x32e46b[_0x4197d5(0x174)]===_0x91eb8a);return _0x266950?this['_injector'][_0x4197d5(0x21d)](X,this[_0x4197d5(0x22e)],this,_0x266950['id'],this[_0x4197d5(0x12a)]):null;}[_0x5d6143(0x17c)](_0x210518,_0x11a2ec,_0x2d266a){const _0x215b9e=_0x5d6143;var _0x8380b3,_0x19204e,_0x158607,_0x3ec733;let _0x32a929=this[_0x215b9e(0x1da)](),_0x5c4043=(_0x2d266a==null||(_0x8380b3=_0x2d266a['view'])==null?void 0x0:_0x8380b3[_0x215b9e(0x1ef)])??_0x32a929['fieldOrder'],_0x5f32c7=[_0xe50529,..._0x5c4043[_0x215b9e(0x17f)](_0x3bd62e=>V(_0x32a929[_0x215b9e(0x202)][_0x3bd62e]))],_0x1a3ad5={..._0x2d266a==null?void 0x0:_0x2d266a[_0x215b9e(0x25c)],'id':_0x563d6(0x6),'name':_0x210518,'type':_0x11a2ec,'tableId':this[_0x215b9e(0x187)],'config':(_0x2d266a==null||(_0x19204e=_0x2d266a[_0x215b9e(0x25c)])==null?void 0x0:_0x19204e[_0x215b9e(0x1f8)])??{},'fieldOrder':_0x5f32c7,'fieldSettings':{..._0x2d266a==null||(_0x158607=_0x2d266a[_0x215b9e(0x25c)])==null?void 0x0:_0x158607[_0x215b9e(0x13b)],[_0xe50529]:{..._0x2d266a==null||(_0x3ec733=_0x2d266a['view'])==null||(_0x3ec733=_0x3ec733[_0x215b9e(0x13b)])==null?void 0x0:_0x3ec733[_0xe50529],'hidden':!0x0}}};if(!this[_0x215b9e(0x175)][_0x215b9e(0x153)](_0x391a8f['id'],{'unitId':this['_base'][_0x215b9e(0x257)](),'tableId':this[_0x215b9e(0x187)],'view':_0x1a3ad5,'index':_0x2d266a==null?void 0x0:_0x2d266a[_0x215b9e(0x1f6)]}))throw Error(_0x215b9e(0x244)+_0x210518+'\x22');return this[_0x215b9e(0x12a)][_0x215b9e(0x21d)](X,this[_0x215b9e(0x22e)],this,_0x1a3ad5['id'],this[_0x215b9e(0x12a)]);}[_0x5d6143(0x23c)](){const _0x58e034=_0x5d6143;let _0x30e88d=this[_0x58e034(0x1da)](),_0x5f73ed=_0x30e88d['fieldOrder'][_0x58e034(0x17f)](_0x2a4df8=>V(_0x30e88d[_0x58e034(0x202)][_0x2a4df8])),_0x44c54c=_0x30e88d[_0x58e034(0x203)]['filter'](_0x163fcd=>_0x30e88d[_0x58e034(0x267)][_0x163fcd]);return{'id':_0x30e88d['id'],'name':_0x30e88d[_0x58e034(0x174)],'formulaName':this[_0x58e034(0x26a)](),'primaryFieldId':_0x30e88d['primaryFieldId'],'fieldIds':_0x5f73ed,'viewIds':_0x44c54c,'recordCount':this[_0x58e034(0x234)]()[_0x58e034(0x1e5)],'fields':_0x5f73ed['map'](_0x3c4a10=>{const _0x1828dd=_0x58e034;let _0x111663=_0x30e88d[_0x1828dd(0x202)][_0x3c4a10];return{'id':_0x111663['id'],'name':_0x111663['name'],'type':_0x111663['type'],'config':_0x111663['config'],'readonly':_0x111663[_0x1828dd(0x130)],'description':_0x111663[_0x1828dd(0x208)]};}),'views':_0x44c54c[_0x58e034(0x1bd)](_0x192c95=>{const _0x183771=_0x58e034;let _0x31b6ea=_0x30e88d[_0x183771(0x267)][_0x192c95];return{'id':_0x31b6ea['id'],'name':_0x31b6ea[_0x183771(0x174)],'type':_0x31b6ea['type']};})};}[_0x5d6143(0x1da)](){const _0x434010=_0x5d6143;let _0x37ab15=this[_0x434010(0x22e)][_0x434010(0x19f)]()[_0x434010(0x258)]()[_0x434010(0x214)][this[_0x434010(0x187)]];if(!_0x37ab15)throw Error(_0x434010(0x229)+this['_tableId']+_0x434010(0x218));return _0x37ab15;}[_0x5d6143(0x234)](_0x5cad7f={}){const _0x49ecee=_0x5d6143;let _0x943441=this[_0x49ecee(0x22e)][_0x49ecee(0x19f)]()[_0x49ecee(0x258)](),_0xbf2dbb=this[_0x49ecee(0x1da)]();if(_0x5cad7f[_0x49ecee(0x224)]){let _0x447811=this[_0x49ecee(0x1e4)][_0x49ecee(0x1a6)](_0x943441,this[_0x49ecee(0x187)],_0x5cad7f['viewId']);if(_0x49ecee(0x22c)in _0x447811&&Array[_0x49ecee(0x262)](_0x447811['rows']))return _0x447811[_0x49ecee(0x22c)][_0x49ecee(0x1bd)](_0x21320c=>_0x21320c[_0x49ecee(0x158)]);}return(_0xbf2dbb[_0x49ecee(0x147)]?_0xbf2dbb['recordOrder'][_0x49ecee(0x1bd)](_0xd8490b=>_0xbf2dbb[_0x49ecee(0x19b)][_0xd8490b]):Object['values'](_0xbf2dbb[_0x49ecee(0x19b)])[_0x49ecee(0x25a)]((_0xcadac9,_0x72ae0a)=>_0xcadac9['orderKey'][_0x49ecee(0x134)](_0x72ae0a[_0x49ecee(0x256)])))[_0x49ecee(0x17f)](_0x32f2e0=>_0x32f2e0)[_0x49ecee(0x1bd)](_0x5e94fb=>_0x5e94fb['id']);}};Z=z([R(0x3,_0x4d60b9),R(0x4,_0x4ad80a),R(0x5,_0x8d78f1)],Z);function vt(_0x5dae69,_0x7b563d){const _0x187def=_0x5d6143;let _0x1ad5e0=Math['max'](0x0,_0x7b563d[_0x187def(0x282)]??0x0);return _0x7b563d[_0x187def(0x253)]==null?_0x5dae69[_0x187def(0x238)](_0x1ad5e0):_0x5dae69[_0x187def(0x238)](_0x1ad5e0,_0x1ad5e0+Math['max'](0x0,_0x7b563d['limit']));}function yt(_0x48a4b0,_0x54a1a7,_0x28f7c5=[]){const _0x3b7113=_0x5d6143;return _0x28f7c5[_0x3b7113(0x1e5)]?[..._0x48a4b0][_0x3b7113(0x25a)]((_0x4877b2,_0x54f499)=>{const _0x16b81c=_0x3b7113;for(let _0xe698f6 of _0x28f7c5){var _0x44ff3a;let _0x58b3ce=_0xe698f6[_0x16b81c(0x13e)]===_0x504096[_0x16b81c(0x164)]?-0x1:0x1,_0x533088=bt(_0x4877b2[_0x16b81c(0x1a2)][_0xe698f6['fieldId']],_0x54f499['values'][_0xe698f6[_0x16b81c(0x260)]],(_0x44ff3a=_0x54a1a7[_0x16b81c(0x202)][_0xe698f6[_0x16b81c(0x260)]])==null?void 0x0:_0x44ff3a[_0x16b81c(0x1a7)]);if(_0x533088!==0x0)return _0x533088*_0x58b3ce;}return String(_0x4877b2[_0x16b81c(0x256)]??_0x4877b2['id'])[_0x16b81c(0x134)](String(_0x54f499[_0x16b81c(0x256)]??_0x54f499['id']));}):_0x48a4b0;}function bt(_0x3e3e9c,_0x56e1c4,_0x176c3b){const _0x1562a7=_0x5d6143;return _0x3e3e9c==null&&_0x56e1c4==null?0x0:_0x3e3e9c==null?-0x1:_0x56e1c4==null?0x1:typeof _0x3e3e9c=='number'&&typeof _0x56e1c4=='number'?_0x3e3e9c-_0x56e1c4:_0x176c3b===_0xe1377b[_0x1562a7(0x189)]?Number(_0x3e3e9c)-Number(_0x56e1c4):String(_0x3e3e9c)[_0x1562a7(0x134)](String(_0x56e1c4));}function xt(_0x7a6d29,_0x1ecfd5,_0x391196){const _0x3a6ac4=_0x5d6143;var _0x28f465;if(!_0x391196||!((_0x28f465=_0x391196[_0x3a6ac4(0x1b8)])!=null&&_0x28f465['length']))return!0x0;let {conjunction:_0x334c40=_0x1e088d['OR'],conditions:_0x562f2d}=_0x391196;return _0x334c40===_0x1e088d['AND']&&_0x562f2d[_0x3a6ac4(0x1e5)]>0x1?_0x562f2d[_0x3a6ac4(0x1e6)](_0x270a98=>St(_0x7a6d29,_0x1ecfd5,_0x270a98)):_0x562f2d['some'](_0x497537=>St(_0x7a6d29,_0x1ecfd5,_0x497537));}function St(_0x4062f1,_0x489b17,_0x28fae0){const _0x406938=_0x5d6143;let _0x48e094=_0x4062f1[_0x406938(0x1a2)][_0x28fae0[_0x406938(0x260)]],_0x2df881=_0x489b17[_0x406938(0x202)][_0x28fae0[_0x406938(0x260)]];if(Ct(_0x28fae0)){let _0x418f70=wt(_0x28fae0)[_0x406938(0x165)](String(_0x48e094??''));return _0x28fae0[_0x406938(0x1d4)]===_0x406938(0x178)?_0x418f70:!_0x418f70;}return!_0x2df881||_0x232aed(_0x48e094,_0x28fae0['operator'],_0x28fae0['value'],_0x2df881);}function Ct(_0x371a68){const _0x1e8aa4=_0x5d6143;return _0x371a68[_0x1e8aa4(0x1d4)]===_0x1e8aa4(0x178)||_0x371a68[_0x1e8aa4(0x1d4)]===_0x1e8aa4(0x14b);}function wt(_0x345e14){const _0x568028=_0x5d6143;let _0x3631ed=String(_0x345e14[_0x568028(0x162)]??'');if(_0x3631ed[_0x568028(0x1e5)]>0x200)throw Error(_0x568028(0x1c5));try{return new RegExp(_0x3631ed,_0x345e14[_0x568028(0x170)]?void 0x0:'i');}catch(_0x3f7b49){throw Error(_0x568028(0x132)+_0x3631ed+'.\x20'+(_0x3f7b49 instanceof Error?_0x3f7b49[_0x568028(0x227)]:String(_0x3f7b49)));}}function Tt(_0x19bd0a,_0x172773,_0x387e09){const _0x2c16d4=_0x5d6143;if(_0x387e09[_0x2c16d4(0x1a7)]!=='invalid'&&_0x387e09[_0x2c16d4(0x1a7)]!==_0x2c16d4(0x1ec)){var _0xb9b206;if(_0x387e09[_0x2c16d4(0x1a7)]===_0x1753fc[_0x2c16d4(0x18f)]){var _0x8303ae;let _0x1ae6ee=[((_0x8303ae=_0x387e09[_0x2c16d4(0x202)])==null||(_0x8303ae=_0x8303ae[0x0])==null?void 0x0:_0x8303ae['id'])??_0x19bd0a[_0x2c16d4(0x1c1)],..._0x387e09[_0x2c16d4(0x1ff)]??[]];return Array[_0x2c16d4(0x1b4)](new Set(_0x1ae6ee['filter'](_0xcc4b8e=>!!_0x19bd0a[_0x2c16d4(0x202)][_0xcc4b8e])));}if((_0xb9b206=_0x387e09[_0x2c16d4(0x202)])!=null&&_0xb9b206[_0x2c16d4(0x1e5)])return _0x387e09['fields'][_0x2c16d4(0x1bd)](_0x5e3111=>_0x5e3111['id'])[_0x2c16d4(0x17f)](_0xa71e8d=>{const _0x56ace2=_0x2c16d4;var _0x444eb7;return!(!_0x19bd0a['fields'][_0xa71e8d]||_0x172773!=null&&(_0x444eb7=_0x172773['fieldSettings'])!=null&&(_0x444eb7=_0x444eb7[_0xa71e8d])!=null&&_0x444eb7[_0x56ace2(0x1ea)]);});}return _0x19bd0a['fieldOrder'][_0x2c16d4(0x17f)](_0x295958=>{const _0x14ef63=_0x2c16d4;var _0x33384f;return!(!_0x19bd0a[_0x14ef63(0x202)][_0x295958]||_0x172773!=null&&(_0x33384f=_0x172773[_0x14ef63(0x13b)])!=null&&(_0x33384f=_0x33384f[_0x295958])!=null&&_0x33384f[_0x14ef63(0x1ea)]);});}let Q=class extends _0x188c13[_0x5d6143(0x275)]{constructor(_0x5d4ca6,_0x5e497d,_0x3f050f,_0x12707d,_0x22ed09){const _0x237b40=_0x5d6143;super(),this[_0x237b40(0x22e)]=_0x5d4ca6,this[_0x237b40(0x12a)]=_0x5e497d,this['_resourceLoaderService']=_0x3f050f,this[_0x237b40(0x175)]=_0x12707d,this[_0x237b40(0x223)]=_0x22ed09;}[_0x5d6143(0x19f)](){const _0x1b2635=_0x5d6143;return this[_0x1b2635(0x22e)];}[_0x5d6143(0x257)](){const _0x69f64d=_0x5d6143;return this[_0x69f64d(0x22e)][_0x69f64d(0x135)]();}[_0x5d6143(0x1ba)](){const _0x9f8c46=_0x5d6143;return new at(this['getId'](),this[_0x9f8c46(0x175)],this[_0x9f8c46(0x223)]);}[_0x5d6143(0x179)](){const _0x5eaa83=_0x5d6143;return this[_0x5eaa83(0x1a1)][_0x5eaa83(0x1c0)](this['getId']())??_0x59ca43[_0x5eaa83(0x13a)](this[_0x5eaa83(0x22e)][_0x5eaa83(0x258)]());}['getName'](){const _0x3c230d=_0x5d6143;return this[_0x3c230d(0x22e)][_0x3c230d(0x258)]()['name'];}[_0x5d6143(0x140)](_0x1fa3f9){const _0x1b9c64=_0x5d6143;this[_0x1b9c64(0x175)][_0x1b9c64(0x153)](_0xbea6e0['id'],{'unitId':this[_0x1b9c64(0x257)](),'name':_0x1fa3f9});}[_0x5d6143(0x207)](){const _0x121292=_0x5d6143;let _0x1f3ef7=this[_0x121292(0x22e)][_0x121292(0x258)]();return _0x1f3ef7[_0x121292(0x266)][_0x121292(0x1bd)](_0x49af7f=>_0x1f3ef7[_0x121292(0x214)][_0x49af7f])[_0x121292(0x17f)](_0x329172=>_0x329172)['map'](_0x111dd6=>this[_0x121292(0x12a)][_0x121292(0x21d)](Z,this,_0x111dd6['id'],this[_0x121292(0x12a)]));}[_0x5d6143(0x213)](_0xe19307){const _0x30dca4=_0x5d6143;let _0x13579f=this['_base'][_0x30dca4(0x258)]()[_0x30dca4(0x214)][_0xe19307];return _0x13579f?this['_injector'][_0x30dca4(0x21d)](Z,this,_0x13579f['id'],this[_0x30dca4(0x12a)]):null;}[_0x5d6143(0x21c)](_0x43d013){const _0x2eb834=_0x5d6143;let _0x46f3ef=this['_base'][_0x2eb834(0x258)](),_0x5e058f=Object[_0x2eb834(0x1a2)](_0x46f3ef[_0x2eb834(0x214)])['find'](_0x4c22e3=>_0x4c22e3[_0x2eb834(0x174)]===_0x43d013);return _0x5e058f?this[_0x2eb834(0x12a)]['createInstance'](Z,this,_0x5e058f['id'],this[_0x2eb834(0x12a)]):null;}[_0x5d6143(0x21b)](_0x27e58e,_0x4a3f45){const _0x155f87=_0x5d6143;let _0x14436d=_0x8020d({'id':_0x563d6(),'name':_0x27e58e,..._0x4a3f45==null?void 0x0:_0x4a3f45[_0x155f87(0x161)],'primaryFieldName':_0x4a3f45==null?void 0x0:_0x4a3f45[_0x155f87(0x201)]}),_0x5f3694=_0x59ca43[_0x155f87(0x1dd)](_0x14436d,(_0x4a3f45==null?void 0x0:_0x4a3f45['table'])??{}),_0x3789a7=_0x1252cc(this[_0x155f87(0x22e)]['getSnapshot'](),_0x5f3694[_0x155f87(0x174)]);if(!_0x3789a7['valid'])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0x5f3694[_0x155f87(0x174)]+_0x155f87(0x26f)+_0x42fde6+'\x20'+_0x3789a7['reason']);if(!this[_0x155f87(0x175)][_0x155f87(0x153)](_0x5af821['id'],{'unitId':this['_base'][_0x155f87(0x135)](),'table':_0x5f3694,'index':_0x4a3f45==null?void 0x0:_0x4a3f45['index']}))throw Error(_0x155f87(0x277)+_0x27e58e+'\x22.');return this['_injector'][_0x155f87(0x21d)](Z,this,_0x5f3694['id'],this[_0x155f87(0x12a)]);}[_0x5d6143(0x12d)](_0x54c1e3){const _0x11872d=_0x5d6143;let _0x50f3ec=typeof _0x54c1e3==_0x11872d(0x255)?_0x54c1e3:_0x54c1e3[_0x11872d(0x257)]();if(!this['_commandService'][_0x11872d(0x153)](_0x4d1ca0['id'],{'unitId':this[_0x11872d(0x22e)]['getUnitId'](),'tableId':_0x50f3ec}))throw Error(_0x11872d(0x242)+_0x50f3ec+'\x22.');return!0x0;}[_0x5d6143(0x196)](_0x7c8bdc,_0xc46933){const _0xe164b8=_0x5d6143;let _0x4105a0=this[_0xe164b8(0x22e)][_0xe164b8(0x258)](),_0xe453de=typeof _0x7c8bdc=='string'?_0x7c8bdc:_0x7c8bdc['getId'](),_0x201884=_0x4105a0['tables'][_0xe453de];if(!_0x201884)throw Error(_0xe164b8(0x1e3)+_0xe453de+_0xe164b8(0x218));let _0x420fcb=_0x4105a0['tableOrder'][_0xe164b8(0x1b2)](_0xe453de)+0x1,_0x5e3e45=_0x563d6(),_0x21f1de=_0x5832b3(_0x201884,{'id':_0x5e3e45,'name':_0x33e5ed(_0x4105a0,_0x201884[_0xe164b8(0x174)]+'\x20Copy'),'includeRecords':(_0xc46933==null?void 0x0:_0xc46933['includeRecords'])??!0x1,'regenerateViewIds':(_0xc46933==null?void 0x0:_0xc46933[_0xe164b8(0x152)])??!0x1});if(!this[_0xe164b8(0x175)][_0xe164b8(0x153)](_0x5af821['id'],{'unitId':this[_0xe164b8(0x22e)][_0xe164b8(0x135)](),'table':_0x21f1de,'index':_0x420fcb}))throw Error(_0xe164b8(0x16c)+_0xe453de+'\x22.');return this['_injector'][_0xe164b8(0x21d)](Z,this,_0x21f1de['id'],this[_0xe164b8(0x12a)]);}['getSchema'](){const _0x4d1764=_0x5d6143;let _0xf40316=this[_0x4d1764(0x22e)][_0x4d1764(0x258)]();return{'id':_0xf40316['id'],'name':_0xf40316[_0x4d1764(0x174)],'tables':this[_0x4d1764(0x207)]()[_0x4d1764(0x1bd)](_0x2174be=>_0x2174be[_0x4d1764(0x23c)]())};}};Q=z([R(0x1,_0x122311(_0x5e0f48)),R(0x2,_0x28546b),R(0x3,_0x4d60b9),R(0x4,_0x4ad80a)],Q);var Et=class extends _0x342f23{[_0x5d6143(0x20d)](){const _0x902cff=_0x5d6143;this[_0x902cff(0x14d)](),this[_0x902cff(0x1f1)]();}[_0x5d6143(0x283)](_0xb947f2={},_0x4bca60){const _0x1d76cf=_0x5d6143;let _0x473cad=this[_0x1d76cf(0x200)][_0x1d76cf(0x26c)](_0x31af45['UNIVER_BASE'],_0xb947f2,_0x4bca60);return this[_0x1d76cf(0x12a)][_0x1d76cf(0x21d)](Q,_0x473cad);}[_0x5d6143(0x20f)](){const _0x47aba9=_0x5d6143;let _0x42c7ae=this[_0x47aba9(0x200)][_0x47aba9(0x231)](_0x31af45[_0x47aba9(0x232)]);return _0x42c7ae?this[_0x47aba9(0x12a)][_0x47aba9(0x21d)](Q,_0x42c7ae):null;}[_0x5d6143(0x19f)](_0x4c448d){const _0x6077af=_0x5d6143;let _0x272ae7=this['_univerInstanceService']['getUnit'](_0x4c448d,_0x31af45[_0x6077af(0x232)]);return _0x272ae7?this[_0x6077af(0x12a)][_0x6077af(0x21d)](Q,_0x272ae7):null;}[_0x5d6143(0x126)](){const _0x131fdc=_0x5d6143;return this['_univerInstanceService'][_0x131fdc(0x17e)](_0x31af45[_0x131fdc(0x232)])[_0x131fdc(0x1bd)](_0x1a26d4=>this['_injector'][_0x131fdc(0x21d)](Q,_0x1a26d4));}[_0x5d6143(0x1f1)](){const _0x4cb5c6=_0x5d6143;this['disposeWithMe'](this[_0x4cb5c6(0x191)](this[_0x4cb5c6(0x1aa)][_0x4cb5c6(0x17b)],()=>this['_commandService'][_0x4cb5c6(0x1e2)]((_0x4debdf,_0x1ff083)=>{const _0x2f9729=_0x4cb5c6;var _0xd9b1c0;if(!$(_0x4debdf,_0x7828b1))return;let _0x5c96cf=_0x4debdf['params'];if(!((_0xd9b1c0=_0x5c96cf[_0x2f9729(0x1fe)])!=null&&_0xd9b1c0['length']))return;let _0x5f11da=this[_0x2f9729(0x19f)](_0x5c96cf[_0x2f9729(0x1af)]),_0x1aeccd=_0x5f11da==null?void 0x0:_0x5f11da[_0x2f9729(0x213)](_0x5c96cf[_0x2f9729(0x1fe)][0x0][_0x2f9729(0x281)]);if(!_0x5f11da||!_0x1aeccd)return;let _0x1672d2={'base':_0x5f11da,'table':_0x1aeccd,'changes':_0x5c96cf[_0x2f9729(0x1fe)],'source':_0x1ff083!=null&&_0x1ff083['fromCollab']?_0x3929cb['Remote']:_0x5c96cf[_0x2f9729(0x1f3)]??_0x3929cb['UI']};this[_0x2f9729(0x1a5)](this[_0x2f9729(0x1aa)][_0x2f9729(0x17b)],_0x1672d2);}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x4cb5c6(0x1aa)][_0x4cb5c6(0x15e)],()=>this[_0x4cb5c6(0x175)][_0x4cb5c6(0x1e2)](_0x1409c9=>{const _0x43e648=_0x4cb5c6;if(_0x1409c9['id']!==_0x5af821['id'])return;let {unitId:_0x49477e,table:_0x193ca1,index:_0x19b513}=_0x1409c9[_0x43e648(0x1d6)],_0x57e364=this[_0x43e648(0x19f)](_0x49477e);if(!_0x57e364)return;let _0x2a4016={'base':_0x57e364,'table':_0x193ca1,'index':_0x19b513};this[_0x43e648(0x1a5)](this[_0x43e648(0x1aa)][_0x43e648(0x15e)],_0x2a4016);}))),this[_0x4cb5c6(0x248)](this[_0x4cb5c6(0x191)](this[_0x4cb5c6(0x1aa)][_0x4cb5c6(0x217)],()=>this[_0x4cb5c6(0x175)][_0x4cb5c6(0x1e2)](_0xdb2f5e=>{const _0x3feb23=_0x4cb5c6;if(_0xdb2f5e['id']!==_0x27aa7f['id'])return;let {unitId:_0x4b3e35,tableId:_0x553f26,field:_0x5294b6,index:_0x2ad41b,viewIndexes:_0xd96c50}=_0xdb2f5e[_0x3feb23(0x1d6)],_0x287e14=this[_0x3feb23(0x19f)](_0x4b3e35);if(!_0x287e14)return;let _0x2acbc9=_0x287e14[_0x3feb23(0x213)](_0x553f26);if(!_0x2acbc9)return;let _0x37e1a2={'base':_0x287e14,'table':_0x2acbc9,'field':_0x5294b6,'index':_0x2ad41b,'viewIndexes':_0xd96c50};this[_0x3feb23(0x1a5)](this[_0x3feb23(0x1aa)][_0x3feb23(0x217)],_0x37e1a2);}))),this['disposeWithMe'](this[_0x4cb5c6(0x191)](this[_0x4cb5c6(0x1aa)][_0x4cb5c6(0x18c)],()=>this[_0x4cb5c6(0x175)][_0x4cb5c6(0x1e2)](_0x444b78=>{const _0x4d8987=_0x4cb5c6;if(_0x444b78['id']!==_0x1b1cbb['id']&&_0x444b78['id']!==_0x15e471['id'])return;let _0x50c87a=_0x444b78['params'],{unitId:_0x3caf1e,tableId:_0x3f2dca}=_0x50c87a,_0x4febec=_0x50c87a[_0x4d8987(0x19b)]??[_0x50c87a[_0x4d8987(0x155)]],_0x5d0a4e=this[_0x4d8987(0x19f)](_0x3caf1e);if(!_0x5d0a4e)return;let _0x4a8834=_0x5d0a4e[_0x4d8987(0x213)](_0x3f2dca);if(!_0x4a8834)return;let _0x56a5a1={'base':_0x5d0a4e,'table':_0x4a8834,'records':_0x4febec};this[_0x4d8987(0x1a5)](this[_0x4d8987(0x1aa)][_0x4d8987(0x18c)],_0x56a5a1);}))),this['disposeWithMe'](this[_0x4cb5c6(0x191)](this['Event'][_0x4cb5c6(0x240)],()=>this[_0x4cb5c6(0x175)]['onCommandExecuted'](_0x2809ab=>{const _0x347d3d=_0x4cb5c6;if(_0x2809ab['id']!==_0x391a8f['id'])return;let {unitId:_0x364dfb,tableId:_0x3a568f,view:_0x1ea1d9,index:_0xb4774e}=_0x2809ab['params'],_0x21b954=this[_0x347d3d(0x19f)](_0x364dfb);if(!_0x21b954)return;let _0x235b7f=_0x21b954[_0x347d3d(0x213)](_0x3a568f);if(!_0x235b7f)return;let _0x3aebdb={'base':_0x21b954,'table':_0x235b7f,'view':_0x1ea1d9,'index':_0xb4774e};this[_0x347d3d(0x1a5)](this['Event'][_0x347d3d(0x240)],_0x3aebdb);}))),this['disposeWithMe'](this[_0x4cb5c6(0x191)](this[_0x4cb5c6(0x1aa)][_0x4cb5c6(0x166)],()=>this['_commandService']['onCommandExecuted'](_0x4f6a00=>{const _0x2f0d64=_0x4cb5c6;if(_0x4f6a00['id']!==_0xd989ce['id'])return;let {unitId:_0xdaeaf2,tableId:_0x17e315,recordId:_0x5bdc26,fieldId:_0x4c5248,value:_0x696528}=_0x4f6a00['params'],_0x4a8c6b=this[_0x2f0d64(0x19f)](_0xdaeaf2);if(!_0x4a8c6b)return;let _0x5a6d3e=_0x4a8c6b['getTableById'](_0x17e315);if(!_0x5a6d3e)return;let _0x42bb9b=_0x5a6d3e[_0x2f0d64(0x271)](_0x4c5248);if(!_0x42bb9b)return;let _0x619dae=_0x5a6d3e[_0x2f0d64(0x146)](_0x5bdc26);if(!_0x619dae)return;let _0x1070d5={'base':_0x4a8c6b,'table':_0x5a6d3e,'field':_0x42bb9b,'record':_0x619dae,'value':_0x696528};this[_0x2f0d64(0x1a5)](this['Event'][_0x2f0d64(0x166)],_0x1070d5);})));}[_0x5d6143(0x14d)](){const _0x23b2a8=_0x5d6143;this[_0x23b2a8(0x248)](this[_0x23b2a8(0x191)](this[_0x23b2a8(0x1aa)][_0x23b2a8(0x192)],()=>this[_0x23b2a8(0x175)]['beforeCommandExecuted'](_0x257cba=>{const _0x5bc772=_0x23b2a8;if($(_0x257cba,_0x3c4e8d)){let {unitId:_0x3b4e43,tableId:_0x2c89de,patches:_0x293a21,source:_0x10a1d4=_0x3929cb['UI']}=_0x257cba['params'],_0x1fd653=this[_0x5bc772(0x205)](_0x3b4e43,_0x2c89de);if(!_0x1fd653)return;this[_0x5bc772(0x1bc)](_0x1fd653[_0x5bc772(0x1fd)],_0x1fd653['table'],_0x500011(_0x1fd653[_0x5bc772(0x161)][_0x5bc772(0x20a)](),_0x293a21),_0x10a1d4);return;}if($(_0x257cba,_0x2ebbdb)){let {unitId:_0x4445b0,tableId:_0x36222c,patches:_0x1c36be,source:_0x3ca4c0=_0x3929cb['UI']}=_0x257cba[_0x5bc772(0x1d6)],_0x5bcaa9=this[_0x5bc772(0x205)](_0x4445b0,_0x36222c);if(!_0x5bcaa9)return;let _0x45bfc2=_0x5bcaa9[_0x5bc772(0x161)][_0x5bc772(0x20a)]();this[_0x5bc772(0x1bc)](_0x5bcaa9[_0x5bc772(0x1fd)],_0x5bcaa9[_0x5bc772(0x161)],_0x500011(_0x45bfc2,_0x4e2d04(_0x45bfc2,_0x1c36be)),_0x3ca4c0);return;}if($(_0x257cba,_0x1b1cbb)){let _0x337add=_0x257cba[_0x5bc772(0x1d6)],_0xb3be53=this['_getHierarchyEventContext'](_0x337add[_0x5bc772(0x1af)],_0x337add[_0x5bc772(0x281)]);if(!_0xb3be53)return;this[_0x5bc772(0x1bc)](_0xb3be53[_0x5bc772(0x1fd)],_0xb3be53['table'],_0x1936b7(_0xb3be53['table'][_0x5bc772(0x20a)](),[_0x337add['record']]),_0x337add['source']??_0x3929cb['UI']);return;}if($(_0x257cba,_0x15e471)){let _0x19148b=_0x257cba[_0x5bc772(0x1d6)],_0x52a971=this[_0x5bc772(0x205)](_0x19148b[_0x5bc772(0x1af)],_0x19148b[_0x5bc772(0x281)]);if(!_0x52a971)return;this[_0x5bc772(0x1bc)](_0x52a971[_0x5bc772(0x1fd)],_0x52a971[_0x5bc772(0x161)],_0x1936b7(_0x52a971['table']['getTable'](),_0x19148b[_0x5bc772(0x19b)]),_0x19148b[_0x5bc772(0x1f3)]??_0x3929cb['UI']);return;}if($(_0x257cba,_0x5a3030)){let _0x15c133=_0x257cba[_0x5bc772(0x1d6)],_0x396a4b=this['_getHierarchyEventContext'](_0x15c133['unitId'],_0x15c133[_0x5bc772(0x281)]);if(!_0x396a4b)return;this[_0x5bc772(0x1bc)](_0x396a4b[_0x5bc772(0x1fd)],_0x396a4b[_0x5bc772(0x161)],_0x1936b7(_0x396a4b[_0x5bc772(0x161)][_0x5bc772(0x20a)](),[_0x15c133['record']]),_0x15c133[_0x5bc772(0x1f3)]??_0x3929cb['UI']);return;}if($(_0x257cba,_0x1aea4c)){let _0x3a7d92=_0x257cba[_0x5bc772(0x1d6)],_0x56f21a=this[_0x5bc772(0x205)](_0x3a7d92[_0x5bc772(0x1af)],_0x3a7d92[_0x5bc772(0x281)]);if(!_0x56f21a)return;let _0x1f28f4=_0x56f21a[_0x5bc772(0x161)][_0x5bc772(0x20a)](),_0xa57ea5=_0x3a7d92[_0x5bc772(0x260)]??_0x254f03(_0x1f28f4),_0x379afa=_0xbf13b7(_0x1f28f4,_0xa57ea5)[_0x5bc772(0x220)][_0x5bc772(0x265)](_0x3a7d92['recordId'])??null;this[_0x5bc772(0x1bc)](_0x56f21a['base'],_0x56f21a[_0x5bc772(0x161)],[{'tableId':_0x3a7d92['tableId'],'fieldId':_0xa57ea5,'recordId':_0x3a7d92[_0x5bc772(0x158)],'oldParentRecordId':_0x379afa,'parentRecordId':_0x3a7d92[_0x5bc772(0x254)]}],_0x3a7d92[_0x5bc772(0x1f3)]??_0x3929cb['UI']);return;}if($(_0x257cba,_0x550a38)){let _0xd42043=_0x257cba[_0x5bc772(0x1d6)],_0x31dba3=this['_getHierarchyEventContext'](_0xd42043[_0x5bc772(0x1af)],_0xd42043['tableId']);if(!_0x31dba3)return;let _0x5df343=_0xd42043['fieldId']??_0x254f03(_0x31dba3[_0x5bc772(0x161)]['getTable']());this[_0x5bc772(0x1bc)](_0x31dba3[_0x5bc772(0x1fd)],_0x31dba3[_0x5bc772(0x161)],[{'tableId':_0xd42043[_0x5bc772(0x281)],'fieldId':_0x5df343,'recordId':_0xd42043[_0x5bc772(0x155)]['id'],'oldParentRecordId':null,'parentRecordId':_0xd42043[_0x5bc772(0x254)]}],_0xd42043[_0x5bc772(0x1f3)]??_0x3929cb['UI']);return;}if($(_0x257cba,_0x2f0c33)){let _0x328941=_0x257cba[_0x5bc772(0x1d6)],_0x31a512=this[_0x5bc772(0x205)](_0x328941['unitId'],_0x328941[_0x5bc772(0x281)]);if(!_0x31a512)return;this['_fireBeforeHierarchyChange'](_0x31a512[_0x5bc772(0x1fd)],_0x31a512['table'],_0x4276db(_0x31a512[_0x5bc772(0x161)][_0x5bc772(0x20a)](),[_0x328941[_0x5bc772(0x158)]]),_0x328941[_0x5bc772(0x1f3)]??_0x3929cb['UI']);return;}if($(_0x257cba,_0x3343b8)){let _0x3914aa=_0x257cba[_0x5bc772(0x1d6)],_0xff488b=this['_getHierarchyEventContext'](_0x3914aa[_0x5bc772(0x1af)],_0x3914aa[_0x5bc772(0x281)]);if(!_0xff488b)return;this[_0x5bc772(0x1bc)](_0xff488b[_0x5bc772(0x1fd)],_0xff488b[_0x5bc772(0x161)],_0x4276db(_0xff488b['table'][_0x5bc772(0x20a)](),_0x3914aa[_0x5bc772(0x1eb)]),_0x3914aa[_0x5bc772(0x1f3)]??_0x3929cb['UI']);return;}if(!$(_0x257cba,_0xd989ce))return;let _0x5d8dbe=_0x257cba['params'],_0x389f22=this[_0x5bc772(0x205)](_0x5d8dbe['unitId'],_0x5d8dbe['tableId']);if(!_0x389f22)return;let _0xb0e0c8=_0x389f22[_0x5bc772(0x161)]['getTable']();if(!_0x31a9b4(_0xb0e0c8)[_0x5bc772(0x219)](_0x5d8dbe[_0x5bc772(0x260)]))return;let _0x5d2c8d=_0xbf13b7(_0xb0e0c8,_0x5d8dbe[_0x5bc772(0x260)])[_0x5bc772(0x220)][_0x5bc772(0x265)](_0x5d8dbe[_0x5bc772(0x158)])??null,_0x33ca00=_0x15a8ab(_0x5d8dbe['value'])[0x0]??null;_0x5d2c8d!==_0x33ca00&&this['_fireBeforeHierarchyChange'](_0x389f22['base'],_0x389f22['table'],[{'tableId':_0x5d8dbe['tableId'],'fieldId':_0x5d8dbe['fieldId'],'recordId':_0x5d8dbe[_0x5bc772(0x158)],'oldParentRecordId':_0x5d2c8d,'parentRecordId':_0x33ca00}],_0x5d8dbe[_0x5bc772(0x1f3)]??_0x3929cb['UI']);}))),this[_0x23b2a8(0x248)](this[_0x23b2a8(0x191)](this[_0x23b2a8(0x1aa)][_0x23b2a8(0x1a4)],()=>this['_commandService'][_0x23b2a8(0x1cf)](_0x21a029=>{const _0x45abc9=_0x23b2a8;if(_0x21a029['id']!==_0x5af821['id'])return;let {unitId:_0x5dd788,table:_0x3092cd,index:_0x1bd9cc}=_0x21a029[_0x45abc9(0x1d6)],_0x379035=this[_0x45abc9(0x19f)](_0x5dd788);if(!_0x379035)return;let _0x1c6ad5={'base':_0x379035,'table':_0x3092cd,'index':_0x1bd9cc};if(this[_0x45abc9(0x1a5)](this['Event'][_0x45abc9(0x1a4)],_0x1c6ad5),_0x1c6ad5[_0x45abc9(0x1d8)])throw new _0x2d90a2();}))),this[_0x23b2a8(0x248)](this['registerEventHandler'](this[_0x23b2a8(0x1aa)][_0x23b2a8(0x1a9)],()=>this[_0x23b2a8(0x175)][_0x23b2a8(0x1cf)](_0x118df6=>{const _0x45447f=_0x23b2a8;if(_0x118df6['id']!==_0x27aa7f['id'])return;let {unitId:_0xf397d4,tableId:_0x1a61fc,field:_0x502ce0,index:_0x4c854d,viewIndexes:_0x8076fa}=_0x118df6['params'],_0x1a1592=this[_0x45447f(0x19f)](_0xf397d4);if(!_0x1a1592)return;let _0x29d5ba=_0x1a1592['getTableById'](_0x1a61fc);if(!_0x29d5ba)return;let _0x544c7f={'base':_0x1a1592,'table':_0x29d5ba,'field':_0x502ce0,'index':_0x4c854d,'viewIndexes':_0x8076fa};if(this[_0x45447f(0x1a5)](this[_0x45447f(0x1aa)][_0x45447f(0x1a9)],_0x544c7f),_0x544c7f[_0x45447f(0x1d8)])throw new _0x2d90a2();}))),this['disposeWithMe'](this[_0x23b2a8(0x191)](this[_0x23b2a8(0x1aa)]['BeforeBaseTableRecordCreate'],()=>this[_0x23b2a8(0x175)]['beforeCommandExecuted'](_0x12eb47=>{const _0x31af72=_0x23b2a8;if(_0x12eb47['id']!==_0x1b1cbb['id']&&_0x12eb47['id']!==_0x15e471['id'])return;let _0x3fd018=_0x12eb47[_0x31af72(0x1d6)],{unitId:_0x21553d,tableId:_0x136250}=_0x3fd018,_0x328e71=_0x3fd018[_0x31af72(0x19b)]??[_0x3fd018[_0x31af72(0x155)]],_0x3e9b0a=this['getBase'](_0x21553d);if(!_0x3e9b0a)return;let _0x186b2f=_0x3e9b0a[_0x31af72(0x213)](_0x136250);if(!_0x186b2f)return;let _0x23ed3f={'base':_0x3e9b0a,'table':_0x186b2f,'records':_0x328e71};if(this[_0x31af72(0x1a5)](this[_0x31af72(0x1aa)][_0x31af72(0x1b0)],_0x23ed3f),_0x23ed3f[_0x31af72(0x1d8)])throw new _0x2d90a2();}))),this['disposeWithMe'](this[_0x23b2a8(0x191)](this[_0x23b2a8(0x1aa)]['BeforeBaseTableViewCreate'],()=>this[_0x23b2a8(0x175)][_0x23b2a8(0x1cf)](_0x4d1f6c=>{const _0x54dbf3=_0x23b2a8;if(_0x4d1f6c['id']!==_0x391a8f['id'])return;let {unitId:_0x4689e0,tableId:_0xd01bdd,view:_0x1eb3b8,index:_0xfb1b49}=_0x4d1f6c[_0x54dbf3(0x1d6)],_0x234e0f=this[_0x54dbf3(0x19f)](_0x4689e0);if(!_0x234e0f)return;let _0x545a33=_0x234e0f[_0x54dbf3(0x213)](_0xd01bdd);if(!_0x545a33)return;let _0x3d9249={'base':_0x234e0f,'table':_0x545a33,'view':_0x1eb3b8,'index':_0xfb1b49};if(this[_0x54dbf3(0x1a5)](this[_0x54dbf3(0x1aa)][_0x54dbf3(0x269)],_0x3d9249),_0x3d9249[_0x54dbf3(0x1d8)])throw new _0x2d90a2();}))),this[_0x23b2a8(0x248)](this['registerEventHandler'](this[_0x23b2a8(0x1aa)]['BeforeBaseTableCellValueChange'],()=>this[_0x23b2a8(0x175)][_0x23b2a8(0x1cf)](_0x1dae40=>{const _0x5b492d=_0x23b2a8;if(_0x1dae40['id']!==_0xd989ce['id'])return;let {unitId:_0x5e0d8e,tableId:_0x4be0ad,recordId:_0x1fed4c,fieldId:_0x56b577,value:_0x522321}=_0x1dae40[_0x5b492d(0x1d6)],_0x25e60c=this[_0x5b492d(0x19f)](_0x5e0d8e);if(!_0x25e60c)return;let _0x4a191f=_0x25e60c[_0x5b492d(0x213)](_0x4be0ad);if(!_0x4a191f)return;let _0x5858a9=_0x4a191f[_0x5b492d(0x271)](_0x56b577);if(!_0x5858a9)return;let _0x34c64b=_0x4a191f[_0x5b492d(0x146)](_0x1fed4c);if(!_0x34c64b)return;let _0x5db587={'base':_0x25e60c,'table':_0x4a191f,'field':_0x5858a9,'record':_0x34c64b,'value':_0x522321};if(this[_0x5b492d(0x1a5)](this['Event'][_0x5b492d(0x12e)],_0x5db587),_0x5db587['cancel'])throw new _0x2d90a2();})));}['_getHierarchyEventContext'](_0x59d9c5,_0x2e0093){const _0x2f7775=_0x5d6143;let _0x399d32=this[_0x2f7775(0x19f)](_0x59d9c5),_0x231cb4=_0x399d32==null?void 0x0:_0x399d32[_0x2f7775(0x213)](_0x2e0093);return _0x399d32&&_0x231cb4?{'base':_0x399d32,'table':_0x231cb4}:null;}[_0x5d6143(0x1bc)](_0x56747f,_0x70bafe,_0x44609e,_0x2374a6){const _0x257cb9=_0x5d6143;if(!_0x44609e['length'])return;let _0x213fc8={'base':_0x56747f,'table':_0x70bafe,'changes':_0x44609e,'source':_0x2374a6};if(this['fireEvent'](this[_0x257cb9(0x1aa)][_0x257cb9(0x192)],_0x213fc8),_0x213fc8['cancel'])throw new _0x2d90a2();}};function $(_0x2a4ec8,_0x20015c){const _0x4c3e74=_0x5d6143;return _0x2a4ec8['id']===_0x20015c['id']&&_0x2a4ec8[_0x4c3e74(0x1d6)]!==void 0x0;}_0x342f23[_0x5d6143(0x1cd)](Et);var Dt=class extends _0x30c860{get['BaseFieldType'](){return _0xe1377b;}get[_0x5d6143(0x1dc)](){return _0x1e088d;}get[_0x5d6143(0x1f4)](){return _0x30a51d;}get[_0x5d6143(0x22b)](){return ot;}get[_0x5d6143(0x285)](){return _0x1753fc;}get['BaseConditionalColorTarget'](){return _0x51d23e;}get['BaseConditionalColorOperator'](){return _0x1ab338;}get[_0x5d6143(0x222)](){return _0x461f6e;}get['BaseSortDirection'](){return _0x504096;}get[_0x5d6143(0x1e1)](){return _0x3929cb;}get[_0x5d6143(0x198)](){return _0x420b2f;}get[_0x5d6143(0x23e)](){return _0x2d4aea;}get[_0x5d6143(0x13d)](){return _0x5428fb;}};_0x30c860['extend'](Dt);var Ot=class extends _0x22e20b{get['BaseTableCreated'](){return'BaseTableCreated';}get[_0x5d6143(0x1a4)](){const _0x438000=_0x5d6143;return _0x438000(0x1a4);}get[_0x5d6143(0x217)](){const _0x46a7c9=_0x5d6143;return _0x46a7c9(0x217);}get[_0x5d6143(0x1a9)](){return'BeforeBaseTableFieldCreate';}get[_0x5d6143(0x18c)](){return'BaseTableRecordCreated';}get[_0x5d6143(0x1b0)](){const _0x4678e3=_0x5d6143;return _0x4678e3(0x1b0);}get[_0x5d6143(0x240)](){const _0x45d0d4=_0x5d6143;return _0x45d0d4(0x240);}get[_0x5d6143(0x269)](){return'BeforeBaseTableViewCreate';}get['BaseTableCellValueChanged'](){const _0x441a80=_0x5d6143;return _0x441a80(0x166);}get['BeforeBaseTableCellValueChange'](){const _0x859c52=_0x5d6143;return _0x859c52(0x12e);}get[_0x5d6143(0x17b)](){const _0x2da2cb=_0x5d6143;return _0x2da2cb(0x17b);}get['BeforeBaseHierarchyChange'](){const _0x48d423=_0x5d6143;return _0x48d423(0x192);}};function _0xcda4(_0x33960e,_0x1f2759){_0x33960e=_0x33960e-0x126;const _0x368dc0=_0x368d();let _0xcda424=_0x368dc0[_0x33960e];return _0xcda424;}_0x22e20b[_0x5d6143(0x1cd)](Ot);export{ot as BaseFieldKeyEnum,Q as FBase,L as FBaseObjectPermission,at as FBasePermission,Z as FBaseTable,B as FBaseTableField,K as FBaseTableRange,Y as FBaseTableRecord,X as FBaseTableView,Ot as FBasesEventNameMixin,ct as resolveBaseFieldKey,H as resolveBaseFieldValues};
|