@univerjs-pro/bases 1.2.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
-
function
|
|
1
|
+
function _0x5d27(_0x58636f,_0x76f655){_0x58636f=_0x58636f-0x8a;const _0x336b13=_0x336b();let _0x5d27a7=_0x336b13[_0x58636f];return _0x5d27a7;}const _0x37fca4=_0x5d27;(function(_0x5df22c,_0x104fad){const _0x26e287=_0x5d27,_0x4c0240=_0x5df22c();while(!![]){try{const _0x140ad4=-parseInt(_0x26e287(0xaa))/0x1+-parseInt(_0x26e287(0x98))/0x2+parseInt(_0x26e287(0x94))/0x3+parseInt(_0x26e287(0xa2))/0x4*(-parseInt(_0x26e287(0x9b))/0x5)+parseInt(_0x26e287(0x8b))/0x6+parseInt(_0x26e287(0x8c))/0x7+-parseInt(_0x26e287(0xa7))/0x8*(-parseInt(_0x26e287(0x96))/0x9);if(_0x140ad4===_0x104fad)break;else _0x4c0240['push'](_0x4c0240['shift']());}catch(_0x31ef43){_0x4c0240['push'](_0x4c0240['shift']());}}}(_0x336b,0x98ae7));const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x37fca4(0x9c),'link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x37fca4(0x9f),'email':_0x37fca4(0x95),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':_0x37fca4(0xa0),'recordId':_0x37fca4(0x8a),'createdBy':_0x37fca4(0x9a),'updatedBy':_0x37fca4(0xa9),'createdAt':_0x37fca4(0xa1),'updatedAt':_0x37fca4(0x99),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x37fca4(0x91),'linkPlaceholder':_0x37fca4(0x9d)},'viewType':{'grid':'表格','kanban':'看板','calendar':'行事曆','gantt':_0x37fca4(0x93),'gallery':'圖庫'},'error':{'fieldNameRequired':_0x37fca4(0xa5),'invalidFieldType':_0x37fca4(0x8e),'invalidCellValue':_0x37fca4(0x8f),'invalidKanbanGroupField':_0x37fca4(0x8d),'invalidCalendarDateField':_0x37fca4(0xa6),'invalidGanttDateField':'甘特圖檢視需要開始和結束日期欄位'},'command':{'updateCell':_0x37fca4(0xa3),'createField':_0x37fca4(0x9e),'deleteField':_0x37fca4(0x97),'createRecord':_0x37fca4(0x92),'deleteRecord':_0x37fca4(0x90),'updateViewConfig':_0x37fca4(0xa4)}}};function _0x336b(){const _0x1d9263=['574875ODwcCg','核取方塊','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','建立欄位','電話號碼','關聯記錄','建立時間','24yJXhAt','更新儲存格','更新檢視設定','欄位標題不能為空','行事曆需要日期欄位','1992Bkjsiw','exports','更新人','1028395SEKJVl','記錄\x20ID','2638542fljHTv','918939wklWvQ','看板需要可分組欄位','欄位類型無效','儲存格值無效','刪除記錄','輸入內容','建立記錄','甘特圖','3026148ndYwrT','電子郵件','43533nZhYGZ','刪除欄位','881070YEBwtB','更新時間','建立人'];_0x336b=function(){return _0x1d9263;};return _0x336b();}module[_0x37fca4(0xa8)]=e;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x324e98=_0x2f23;(function(_0xa3e1ba,_0x5e864f){const _0x4b12c8=_0x2f23,_0x3e3dcc=_0xa3e1ba();while(!![]){try{const _0x3144c1=parseInt(_0x4b12c8(0x1d3))/0x1+-parseInt(_0x4b12c8(0xaa))/0x2*(-parseInt(_0x4b12c8(0x1b5))/0x3)+-parseInt(_0x4b12c8(0xc5))/0x4+parseInt(_0x4b12c8(0x11c))/0x5+parseInt(_0x4b12c8(0xe4))/0x6*(parseInt(_0x4b12c8(0x1b6))/0x7)+parseInt(_0x4b12c8(0x8b))/0x8*(parseInt(_0x4b12c8(0x1b0))/0x9)+-parseInt(_0x4b12c8(0x15f))/0xa*(parseInt(_0x4b12c8(0x160))/0xb);if(_0x3144c1===_0x5e864f)break;else _0x3e3dcc['push'](_0x3e3dcc['shift']());}catch(_0x23db5a){_0x3e3dcc['push'](_0x3e3dcc['shift']());}}}(_0x5b98,0x1e879));import{ApplyBaseJson1Mutation as _0x2d4f2e,BASE_TABLE_NAME_REQUIREMENTS as _0x430650,BaseConditionalColorRuleUpdateType as _0x190b78,BaseEventSource as _0x13d834,BaseHierarchyErrorCode as _0x1dd837,BatchCreateBaseRecordsCommand as _0x82de00,BatchDeleteBaseRecordsCommand as _0x2e9597,ChangeBaseFieldTypeCommand as _0x479782,CreateBaseChildRecordCommand as _0x5c4ac9,CreateBaseFieldCommand as _0x53f941,CreateBaseRecordCommand as _0x17b54e,CreateBaseTableCommand as _0x38665f,CreateBaseViewCommand as _0x1886e9,DeleteBaseFieldCommand as _0x4f0873,DeleteBaseRecordCommand as _0x12a807,DeleteBaseTableCommand as _0x5d9ba2,DeleteBaseViewCommand as _0x232aed,DuplicateBaseRecordCommand as _0x1336ed,IBaseProjectionService as _0x21a278,MoveBaseFieldCommand as _0x4a5242,MoveBaseHierarchyRecordCommand as _0x362d9f,MoveBaseViewCommand as _0xe2cd91,RenameBaseTableCommand as _0x134550,RenameBaseViewCommand as _0x58f226,SetBaseNameCommand as _0x133e43,SetBasePermissionCommand as _0x54b504,SetBasePermissionsCommand as _0x3996cd,SetBaseRangeValuesCommand as _0x5307f6,SetBaseRecordValuesCommand as _0x3afdde,SetBaseTableHierarchyFieldCommand as _0x56d16a,SetBaseViewFieldOrderCommand as _0x2a027b,SetBaseViewFieldVisibleCommand as _0x4cf9f8,SetBaseViewFieldWidthCommand as _0x23450e,SetBaseViewFilterCommand as _0x435ef0,SetBaseViewGroupCommand as _0x4ad688,SetBaseViewSortCommand as _0x2daf8a,UpdateBaseCellCommand as _0x5a2ebc,UpdateBaseFieldCommand as _0x1e6940,UpdateBaseRecordOrderCommand as _0x2f3e1d,UpdateBaseViewConditionalColorRulesCommand as _0x467430,UpdateBaseViewConfigCommand as _0x54fb7b,ValidateBaseFormulaCommand as _0x231bfc,buildBaseHierarchyIndex as _0x477d67,canEditBaseTargets as _0x3061d5,copyBaseTableSnapshot as _0x2f455c,createUniqueBaseTableName as _0x2630ce,ensureBaseTableCellLayout as _0x74af36,getActiveBaseHierarchyFieldIds as _0x5bb53c,getBaseCellValue as _0x3dcf51,getBaseFieldPermissionObjectId as _0x49ee52,getBaseFormulaTableName as _0xad8303,getBaseHierarchyDeletePromotions as _0x5c4df9,getBasePermissionValue as _0x2b51b4,getBaseRecordPermissionObjectId as _0x3ed35b,getBaseTablePermissionObjectId as _0x2d9071,getBaseViewPermissionObjectId as _0x38bc3d,getRecordLinkFieldConfig as _0x228ee7,matchesBaseCondition as _0x57a641,parseRecordLinkIds as _0x4a1603,resolveBaseHierarchyFieldId as _0x1e14c8,resolveBaseRangeHierarchyPatches as _0x577e33,searchBaseTable as _0x42e541,serializeRecordLinkIds as _0x5277b9,validateBaseHierarchyRecordCreations as _0x4e95ce,validateBaseHierarchyRecordPatches as _0x53fd42,validateBaseTableName as _0x31a4b0,validateRecordLinkValue as _0x9341a}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x3032a4,BaseConditionalColorOperator as _0x1f248,BaseConditionalColorTarget as _0x549108,BaseConditionalDateMode as _0x1c8b6a,BaseFieldType as _0x1a1896,BaseFilterConjunction as _0x5e1240,BaseFilterOperator as _0x2f7802,BaseHierarchyInvalidReason as _0xd0b783,BaseRecordLinkRole as _0x71b6be,BaseSortDirection as _0x55dadd,BaseViewType as _0x4a8d70,CanceledError as _0x1d35d3,ICommandService as _0x59e8d4,IPermissionService as _0x2a433e,IResourceLoaderService as _0x5ec6b8,ImageSourceType as _0x68727a,Inject as _0x1dbb04,Injector as _0x43084c,Tools as _0x315048,UniverInstanceType as _0x90d380,createDefaultBaseTableSnapshot as _0xc0ffa4,generateRandomId as _0x108320}from'@univerjs/core';import*as _0x258106 from'@univerjs/core/facade';import{FBaseInitialable as _0x418147,FEnum as _0x117940,FEventName as _0x51ec57,FUniver as _0x2fe489}from'@univerjs/core/facade';import{UnitAction as _0x56c390}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x285e34}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x549b98,_0x2f667a,_0x4081fe){const _0x3c6dbe=_0x2f23;this['_unitId']=_0x549b98,this[_0x3c6dbe(0xa5)]=_0x2f667a,this['_permissionService']=_0x4081fe;}async[_0x324e98(0x162)](_0x4d11bc){const _0x10db0d=_0x324e98;return this[_0x10db0d(0xa5)][_0x10db0d(0x121)](_0x3996cd['id'],{'unitId':this[_0x10db0d(0x91)],'changes':_0x4d11bc});}async[_0x324e98(0xf9)](_0x154fa0,_0x4e1a00){const _0x485a39=_0x324e98;await this[_0x485a39(0xa5)][_0x485a39(0x121)](_0x54b504['id'],{'unitId':this['_unitId'],'objectId':this[_0x485a39(0x91)],'action':_0x154fa0,'value':_0x4e1a00});}[_0x324e98(0x17a)](_0x19ff2f){const _0x2c98b1=_0x324e98;return _0x2b51b4(this[_0x2c98b1(0xbb)],this['_unitId'],this[_0x2c98b1(0x91)],_0x19ff2f);}async[_0x324e98(0x82)](_0x39a1cd=!0x0){const _0x570355=_0x324e98;await this[_0x570355(0xa5)][_0x570355(0x121)](_0x54b504['id'],{'unitId':this[_0x570355(0x91)],'objectId':this['_unitId'],'action':_0x56c390['Edit'],'value':_0x39a1cd});}async[_0x324e98(0xd0)](){const _0xfa25b4=_0x324e98;await this['_commandService'][_0xfa25b4(0x121)](_0x54b504['id'],{'unitId':this[_0xfa25b4(0x91)],'objectId':this['_unitId'],'action':_0x56c390[_0xfa25b4(0x137)],'value':!0x1});}[_0x324e98(0x165)](){const _0x579fe4=_0x324e98;return _0x2b51b4(this[_0x579fe4(0xbb)],this[_0x579fe4(0x91)],this['_unitId'],_0x56c390[_0x579fe4(0x137)]);}},L=class{constructor(_0x4da6b0,_0x4357ff,_0x3c232e,_0x3961f3,_0x32f973){const _0x2958f7=_0x324e98;this[_0x2958f7(0x91)]=_0x4da6b0,this[_0x2958f7(0x183)]=_0x4357ff,this[_0x2958f7(0x1a4)]=_0x3c232e,this[_0x2958f7(0xa5)]=_0x3961f3,this[_0x2958f7(0xbb)]=_0x32f973;}async[_0x324e98(0x82)](_0x4737ee=!0x0){const _0x42715d=_0x324e98;await this[_0x42715d(0xa5)][_0x42715d(0x121)](_0x54b504['id'],{'unitId':this[_0x42715d(0x91)],'objectId':this[_0x42715d(0x183)],'action':_0x56c390[_0x42715d(0x137)],'value':_0x4737ee});}async[_0x324e98(0xd0)](){const _0x40a5fd=_0x324e98;await this['_commandService'][_0x40a5fd(0x121)](_0x54b504['id'],{'unitId':this[_0x40a5fd(0x91)],'objectId':this[_0x40a5fd(0x183)],'action':_0x56c390[_0x40a5fd(0x137)],'value':!0x1});}[_0x324e98(0x165)](){const _0x1d029e=_0x324e98;return _0x3061d5(this[_0x1d029e(0xbb)],this['_unitId'],[...this[_0x1d029e(0x1a4)],this[_0x1d029e(0x183)]]);}};function R(_0x2cb87d,_0x31a104){return function(_0x258601,_0x52d274){_0x31a104(_0x258601,_0x52d274,_0x2cb87d);};}function z(_0x2ad681,_0x2f6d7f,_0x46d201,_0x4213e7){const _0x28abd9=_0x324e98;var _0x1e48f1=arguments['length'],_0x4f39ac=_0x1e48f1<0x3?_0x2f6d7f:_0x4213e7===null?_0x4213e7=Object[_0x28abd9(0x1a9)](_0x2f6d7f,_0x46d201):_0x4213e7,_0x1e932c;if(typeof Reflect==_0x28abd9(0x19f)&&typeof Reflect[_0x28abd9(0xd9)]==_0x28abd9(0xe2))_0x4f39ac=Reflect[_0x28abd9(0xd9)](_0x2ad681,_0x2f6d7f,_0x46d201,_0x4213e7);else{for(var _0x356a1e=_0x2ad681[_0x28abd9(0x171)]-0x1;_0x356a1e>=0x0;_0x356a1e--)(_0x1e932c=_0x2ad681[_0x356a1e])&&(_0x4f39ac=(_0x1e48f1<0x3?_0x1e932c(_0x4f39ac):_0x1e48f1>0x3?_0x1e932c(_0x2f6d7f,_0x46d201,_0x4f39ac):_0x1e932c(_0x2f6d7f,_0x46d201))||_0x4f39ac);}return _0x1e48f1>0x3&&_0x4f39ac&&Object[_0x28abd9(0x7c)](_0x2f6d7f,_0x46d201,_0x4f39ac),_0x4f39ac;}let B=class{constructor(_0x2de2f6,_0x49e8b6,_0x73a37a,_0x3fc4e3,_0x3ceb68){const _0x7c117f=_0x324e98;this[_0x7c117f(0xfa)]=_0x2de2f6,this[_0x7c117f(0x123)]=_0x49e8b6,this[_0x7c117f(0x97)]=_0x73a37a,this[_0x7c117f(0xa5)]=_0x3fc4e3,this[_0x7c117f(0xbb)]=_0x3ceb68;}[_0x324e98(0x1b2)](){const _0x1d7c18=_0x324e98;return this[_0x1d7c18(0x97)];}['getPermission'](){const _0x1d59cd=_0x324e98;let _0x23b9e8=this[_0x1d59cd(0x123)][_0x1d59cd(0x1b2)]();return new L(this[_0x1d59cd(0xfa)][_0x1d59cd(0x1b2)](),_0x49ee52(_0x23b9e8,this[_0x1d59cd(0x97)]),[_0x2d9071(_0x23b9e8)],this[_0x1d59cd(0xa5)],this[_0x1d59cd(0xbb)]);}[_0x324e98(0x194)](){return this['_getField']();}[_0x324e98(0x176)](){const _0x4f21c4=_0x324e98;return this[_0x4f21c4(0x7f)]()[_0x4f21c4(0x1a1)];}[_0x324e98(0x1c7)](){const _0x4a2d7a=_0x324e98;return this[_0x4a2d7a(0x7f)]()['type'];}[_0x324e98(0xce)](){const _0x2ba744=_0x324e98;return this[_0x2ba744(0x7f)]()[_0x2ba744(0x1bd)];}[_0x324e98(0x18d)](){return this['_getField']()['defaultValue'];}[_0x324e98(0x146)](){const _0x135c82=_0x324e98;return this[_0x135c82(0x7f)]()[_0x135c82(0x199)];}['isReadonly'](){const _0x5dedd1=_0x324e98;return!!this[_0x5dedd1(0x7f)]()[_0x5dedd1(0xc2)];}[_0x324e98(0x182)](_0x51bc0b){const _0x401730=_0x324e98;return this[_0x401730(0x120)]({'name':_0x51bc0b});}[_0x324e98(0xe3)](_0x5dd259,_0x32ab90){return this['update']({'config':_0x5dd259},_0x32ab90);}[_0x324e98(0x103)](_0x4bb4e1){const _0x4d5a81=_0x324e98;return this[_0x4d5a81(0x120)]({'defaultValue':_0x4bb4e1});}[_0x324e98(0x120)](_0x3e98f2,_0x1bfe59){const _0x107090=_0x324e98;let _0x19d4d7=this['_getField']()[_0x107090(0x11a)];return(_0x3e98f2[_0x107090(0x11a)]??_0x19d4d7)===_0x1a1896[_0x107090(0x81)]&&(Object[_0x107090(0x17b)][_0x107090(0x14b)][_0x107090(0x13a)](_0x3e98f2,_0x107090(0x1bd))||_0x3e98f2['type']===_0x1a1896[_0x107090(0x81)])&&!this[_0x107090(0x175)](_0x1bfe59)?!0x1:this[_0x107090(0xa5)][_0x107090(0x1cb)](_0x1e6940['id'],{'unitId':this['_base'][_0x107090(0x1b2)](),'tableId':this[_0x107090(0x123)][_0x107090(0x1b2)](),'fieldId':this[_0x107090(0x97)],'patch':_0x3e98f2});}[_0x324e98(0x1bb)](_0x6fe56f,_0x29bce2={},_0xc73dd4){const _0x5057a2=_0x324e98;return _0x6fe56f===_0x1a1896['Formula']&&!this['_writeFormulaExternalReferences'](_0xc73dd4)?!0x1:this[_0x5057a2(0xa5)][_0x5057a2(0x1cb)](_0x479782['id'],{'unitId':this['_base'][_0x5057a2(0x1b2)](),'tableId':this[_0x5057a2(0x123)][_0x5057a2(0x1b2)](),'fieldId':this[_0x5057a2(0x97)],'input':{'type':_0x6fe56f,'config':_0x29bce2}});}[_0x324e98(0x15c)](){const _0x3c979f=_0x324e98;return this[_0x3c979f(0xa5)][_0x3c979f(0x1cb)](_0x4f0873['id'],{'unitId':this[_0x3c979f(0xfa)][_0x3c979f(0x1b2)](),'tableId':this[_0x3c979f(0x123)]['getId'](),'fieldId':this[_0x3c979f(0x97)]});}[_0x324e98(0x12d)](_0x11ebde){const _0x2fcbcb=_0x324e98;return this[_0x2fcbcb(0xa5)]['syncExecuteCommand'](_0x4a5242['id'],{'unitId':this[_0x2fcbcb(0xfa)][_0x2fcbcb(0x1b2)](),'tableId':this[_0x2fcbcb(0x123)][_0x2fcbcb(0x1b2)](),'fieldId':this[_0x2fcbcb(0x97)],'target':_0x11ebde});}[_0x324e98(0x7f)](){const _0x42bb2d=_0x324e98;let _0x228d91=this[_0x42bb2d(0x123)][_0x42bb2d(0x12a)]()['fields'][this[_0x42bb2d(0x97)]];if(!_0x228d91)throw Error(_0x42bb2d(0x16a)+this['_fieldId']+'\x22\x20does\x20not\x20exist.');return _0x228d91;}['_writeFormulaExternalReferences'](_0x157640){const _0x167bc3=_0x324e98;if(!_0x157640||!Array[_0x167bc3(0x195)](_0x157640[_0x167bc3(0x19a)]))return console[_0x167bc3(0x156)](_0x167bc3(0xed)),!0x1;if(_0x157640['externalReferences'][_0x167bc3(0x171)]===0x0)return!0x0;let _0x2c5956=this[_0x167bc3(0xa5)][_0x167bc3(0x1cb)](_0x285e34['id'],{'unitId':this[_0x167bc3(0xfa)][_0x167bc3(0x1b2)](),'references':_0x157640[_0x167bc3(0x19a)]});return _0x2c5956||console[_0x167bc3(0x156)](_0x167bc3(0x155)),_0x2c5956;}};B=z([R(0x3,_0x59e8d4),R(0x4,_0x2a433e)],B);function _0x5b98(){const _0x2bb307=['onCommandExecuted','getField','isArray','includeRecords','setOrderKey','startRow','description','externalReferences','offset','fromCollab','BaseHierarchyInvalidReason','BaseConditionalDateMode','object','fieldSettings','name','_univerInstanceService','commonExtend','_parentObjectIds','getPermission','string','message','[FTable]:\x20table\x20\x22','getOwnPropertyDescriptor','getNumColumns','afterFieldId','beforeFieldId','thumbnail','views','\x22\x20is\x20not\x20an\x20Attachment\x20field.','9tINMPU','beforeCommandExecuted','getId','valid','getProjection','179913NJUBvd','28133MlOitY','createView','source','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','Event','changeType','map','config','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','getDataRange','AND','updateConfig','BaseTableRecordCreated','registerEventHandler','flatMap','endColumn','viewOrder','getType','matches','Unsupported\x20Base\x20field\x20type\x20\x22','Gantt','syncExecuteCommand','reason','_getTable',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','Grid','Date','BaseEventSource','getPrimaryFieldId','116557rPnnxJ','RecordLink','defineProperty','mimeType','Calendar','_getField','field','Formula','setEditable','getNumRows','Delete','getBaseId','BeforeBaseHierarchyChange','updatedAt','duplicateTable','getBase','disposeWithMe','1948296ppnQFX','size','getFilter','_getView','_range','startColumn','_unitId','RecordId','BaseFilterOperator','deleteProperty',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','params','_fieldId','getLinkedRecordIds','getTableById','UNIVER_BASE','BeforeBaseTableCreate','Facade','view','[FRecord]:\x20attachment\x20at\x20index\x20','[FRecord]:\x20field\x20\x22','parentByRecordId','filter','setParent','BaseFilterConjunction','getFields','_commandService','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','BASE64','getFieldByName','value','8qVJZgR','Set','_viewId','_initialize','createUnit','record','extend','_prepareFormulaFieldReferences','conditions','BaseConditionalColorOperator','includes','_recordId','\x20exceeds\x20range\x20size\x20','_getHierarchyIndex','BaseFieldType','Kanban',',\x20range:\x20','_permissionService','entries','Auto','setFieldVisible','Name','URL','getViewByName','readonly','slice','BaseHierarchyChanged','806304lnHvth','getRecordById','getViewById','formula','getBases','BaseTableCellValueChanged','getGroup','deleteRecords','_resourceLoaderService','getConfig','primaryFieldId','setReadOnly',',\x20max\x20columns:\x20','some','orderKey','_inject','from','_initBaseAfterEvents','table','cancel','decorate','default','Failed\x20to\x20create\x20table\x20\x22','getActiveBase','limit','tables','Invalid\x20Base\x20formula.','moveField','parentRecordId','function','setConfig','258NmKTVq','getValue',':\x20expected\x20an\x20object.','values','test','_projectionService','_resolveRecordIds','height','BaseRecordLinkRole','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','tableOrder','_collectDescendantIds','getHierarchyFieldId','getFieldSettings','trim','Base\x20field\x20not\x20found:\x20','caseSensitive','setGroup','_fireBeforeHierarchyChange','getSnapshot','getAllUnitsForType','setPoint','_base','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','fieldId','FBase','records','getBaseFacade','_baseUnitId','getAncestors','index','setDefaultValue','createBase','_getRecordLinkField','max','auto','Add','queryRecords','system','clear','_initBaseBeforeEvents','\x22.\x20','sort',':\x20\x22','deleteConditionalColorRule','now','push','addConditionalColorRule','fields','getUnit','setSort','Invalid\x20Base\x20regex\x20filter:\x20','\x20in\x20field\x20\x22','getColumn','type','\x22\x20has\x20invalid\x20config.','942435ErjJIq','number','targetTableId','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','update','executeCommand','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','_table','recordId','setLinkedRecordIds','invalid','BeforeBaseTableCellValueChange','setValues','setValue','getTable','operator','BeforeBaseTableFieldCreate','move','_injector','getFormulaName','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','getTableByName','\x22\x20does\x20not\x20exist.','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','get','viewId','getFieldById','Edit','orderedRecordIds','addChild','call','addLinkedRecord','tableId','Failed\x20to\x20delete\x20table\x20\x22','getView','Clear','conditionalColoring','getRecord','rowId','hidden','\x22:\x20expected\x20an\x20array.','getTableFacade','getDescription','createdAt','_tableId','multiple','getRange','hasOwnProperty','getAttachments','BeforeBaseTableRecordCreate','Duplicate\x20Base\x20field\x20name:\x20','endRow','Failed\x20to\x20add\x20field\x20\x22','base','_getFieldIds','localeCompare','toPrimitive','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','warn','has','startsWith','iterator','\x22\x20must\x20be\x20a\x20non-empty\x20string.','recordOrder','delete','BaseFieldKeyEnum','data:','10HtUwmS','6981227QHADco','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','setObjectPermissions','addField','BeforeBaseTableViewCreate','canEdit','setAttachments','setFieldWidth','forEach','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','[FField]:\x20field\x20\x22','hierarchyChanges','rules','getChildren','find','getSort','BaseTableCreated','length','primaryFieldName','_assertInBounds','\x22\x20is\x20invalid.','_writeFormulaExternalReferences','getName','getValues','BaseTableFieldCreated','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','getPoint','prototype','getSchema','unitId','BaseTableViewCreated','_baseTableId','getRow','indexOf','setName','_objectId','rows','symbol','getUnitId','fieldIds','addRecords','fireEvent','createInstance','_getHierarchyEventContext','Attachment','getDefaultValue','[FBase]:\x20invalid\x20table\x20name\x20\x22','boolean','getDescendants','_getRecord','fieldOrder'];_0x5b98=function(){return _0x2bb307;};return _0x5b98();}let ot=function(_0x54d5d9){const _0x18cad2=_0x324e98;return _0x54d5d9['Id']='id',_0x54d5d9[_0x18cad2(0xbf)]=_0x18cad2(0x1a1),_0x54d5d9[_0x18cad2(0xbd)]=_0x18cad2(0x107),_0x54d5d9;}({});function V(_0x5b5bfb){const _0x4430bb=_0x324e98;return!!(_0x5b5bfb&&_0x5b5bfb[_0x4430bb(0x10a)]!==!0x0&&_0x5b5bfb[_0x4430bb(0x11a)]!==_0x1a1896[_0x4430bb(0x92)]);}function H(_0x16dcdc,_0x4b3b3e,_0x18b8b9='id'){const _0x2ce5a4=_0x324e98;if(!_0x4b3b3e)return{};let _0x228922={};return Object[_0x2ce5a4(0xbc)](_0x4b3b3e)[_0x2ce5a4(0x168)](([_0x28a422,_0x1e9945])=>{const _0x48fccb=_0x2ce5a4;let _0x5d2e22=ct(_0x16dcdc,_0x28a422,_0x18b8b9);_0x228922[_0x5d2e22]=st(_0x16dcdc[_0x48fccb(0x114)][_0x5d2e22],_0x1e9945);}),_0x228922;}function st(_0x352c9e,_0x5b538c){const _0x45cebd=_0x324e98;if((_0x352c9e==null?void 0x0:_0x352c9e[_0x45cebd(0x11a)])!==_0x1a1896[_0x45cebd(0x18c)]||_0x5b538c==null)return _0x5b538c;if(!Array[_0x45cebd(0x195)](_0x5b538c))throw TypeError(_0x45cebd(0x1be)+_0x352c9e[_0x45cebd(0x1a1)]+_0x45cebd(0x144));return _0x5b538c[_0x45cebd(0x1bc)]((_0x25b6c2,_0x2edf46)=>lt(_0x352c9e,_0x25b6c2,_0x2edf46));}function ct(_0x3ea506,_0x48b6a5,_0x4c1b8f){const _0xc755a3=_0x324e98;if(_0x4c1b8f==='id'||_0x4c1b8f===_0xc755a3(0x107)&&_0x3ea506[_0xc755a3(0x114)][_0x48b6a5])return _0x48b6a5;let _0x16fed0=Object[_0xc755a3(0xe7)](_0x3ea506['fields'])['filter'](_0x4ec659=>_0x4ec659[_0xc755a3(0x1a1)]===_0x48b6a5);if(_0x16fed0[_0xc755a3(0x171)]===0x1)return _0x16fed0[0x0]['id'];throw _0x16fed0[_0xc755a3(0x171)]>0x1?Error(_0xc755a3(0x14e)+_0x48b6a5):Error(_0xc755a3(0xf3)+_0x48b6a5);}function lt(_0x5908e1,_0x20782e,_0x3a3bfb){const _0x5e7f3b=_0x324e98;let _0x4ed54b='Invalid\x20attachment\x20at\x20index\x20'+_0x3a3bfb+'\x20for\x20field\x20\x22'+_0x5908e1[_0x5e7f3b(0x1a1)]+'\x22';if(!ft(_0x20782e))throw TypeError(_0x4ed54b+_0x5e7f3b(0xe6));if('url'in _0x20782e)throw TypeError(_0x4ed54b+_0x5e7f3b(0x95));if('type'in _0x20782e)throw TypeError(_0x4ed54b+_0x5e7f3b(0x1ce));let _0x35885f=U(_0x20782e['id'],_0x4ed54b,'id'),_0x20d648=U(_0x20782e[_0x5e7f3b(0x1a1)],_0x4ed54b,_0x5e7f3b(0x1a1)),_0x609e2a=U(_0x20782e[_0x5e7f3b(0x1b8)],_0x4ed54b,_0x5e7f3b(0x1b8));return{'id':_0x35885f,'name':_0x20d648,'source':_0x609e2a,'sourceType':ut(_0x20782e['sourceType'],_0x609e2a,_0x4ed54b),...dt(_0x20782e,_0x5e7f3b(0x7d),_0x4ed54b),...W(_0x20782e,_0x5e7f3b(0x8c),_0x4ed54b),...W(_0x20782e,'width',_0x4ed54b),...W(_0x20782e,_0x5e7f3b(0xeb),_0x4ed54b),...dt(_0x20782e,_0x5e7f3b(0x1ad),_0x4ed54b)};}function ut(_0x138d5a,_0x4fb031,_0x8b9b3b){const _0x1ad4ce=_0x324e98;if(_0x138d5a==null)return _0x4fb031[_0x1ad4ce(0x158)](_0x1ad4ce(0x15e))?_0x68727a[_0x1ad4ce(0xa7)]:_0x68727a[_0x1ad4ce(0xc0)];if(_0x138d5a===_0x68727a['URL']||_0x138d5a===_0x68727a['UUID']||_0x138d5a===_0x68727a[_0x1ad4ce(0xa7)])return _0x138d5a;throw TypeError(_0x8b9b3b+':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.');}function U(_0x38b62d,_0x37e653,_0x255752){const _0x4a7ba2=_0x324e98;if(typeof _0x38b62d!=_0x4a7ba2(0x1a6)||!_0x38b62d['trim']())throw TypeError(_0x37e653+_0x4a7ba2(0x10f)+_0x255752+_0x4a7ba2(0x15a));return _0x38b62d;}function dt(_0x444c45,_0x54c09a,_0x594795){const _0x4a8e28=_0x324e98;let _0x4d5a59=_0x444c45[_0x54c09a];if(_0x4d5a59==null)return{};if(typeof _0x4d5a59!=_0x4a8e28(0x1a6)||!_0x4d5a59[_0x4a8e28(0xf2)]())throw TypeError(_0x594795+':\x20\x22'+_0x54c09a+_0x4a8e28(0x169));return{[_0x54c09a]:_0x4d5a59};}function W(_0x455789,_0x320cfb,_0x2550cd){const _0x26524d=_0x324e98;let _0x28e05e=_0x455789[_0x320cfb];if(_0x28e05e==null)return{};if(typeof _0x28e05e!=_0x26524d(0x11d)||!Number['isFinite'](_0x28e05e)||_0x28e05e<0x0)throw TypeError(_0x2550cd+':\x20\x22'+_0x320cfb+_0x26524d(0x179));return{[_0x320cfb]:_0x28e05e};}function ft(_0x54f6a5){const _0x429918=_0x324e98;return typeof _0x54f6a5=='object'&&!!_0x54f6a5&&!Array[_0x429918(0x195)](_0x54f6a5);}var G;let K=G=class{constructor(_0x3e9d87,_0xd4090f,_0x294c9e,_0x5ed5ee,_0x169423){const _0x1a39bc=_0x324e98;this[_0x1a39bc(0xfa)]=_0x3e9d87,this['_table']=_0xd4090f,this[_0x1a39bc(0x8f)]=_0x294c9e,this[_0x1a39bc(0xd4)]=_0x5ed5ee,this[_0x1a39bc(0xa5)]=_0x169423,this[_0x1a39bc(0x173)]();}[_0x324e98(0x85)](){const _0x51becc=_0x324e98;return this[_0x51becc(0xfa)][_0x51becc(0x1b2)]();}['getTableId'](){const _0x297975=_0x324e98;return this[_0x297975(0x123)][_0x297975(0x1b2)]();}[_0x324e98(0x14a)](){const _0x2a7b0a=_0x324e98;return{...this[_0x2a7b0a(0x8f)]};}[_0x324e98(0x180)](){const _0x19cb46=_0x324e98;return this['_range'][_0x19cb46(0x198)];}[_0x324e98(0x119)](){const _0x5ad1f5=_0x324e98;return this[_0x5ad1f5(0x8f)][_0x5ad1f5(0x90)];}['getNumRows'](){const _0xe79a36=_0x324e98;return this[_0xe79a36(0x8f)][_0xe79a36(0x14f)]-this['_range'][_0xe79a36(0x198)]+0x1;}['getNumColumns'](){const _0x24ffe9=_0x324e98;return this[_0x24ffe9(0x8f)]['endColumn']-this[_0x24ffe9(0x8f)][_0x24ffe9(0x90)]+0x1;}[_0x324e98(0x177)](){const _0x391e12=_0x324e98;let _0x44666c=this[_0x391e12(0x1cd)](),_0x12949f=this[_0x391e12(0x152)](_0x44666c),_0x222314=[];for(let _0x427d02=this[_0x391e12(0x8f)][_0x391e12(0x198)];_0x427d02<=this['_range'][_0x391e12(0x14f)];_0x427d02++){var _0xb949c7;let _0x2e2924=(_0xb949c7=_0x44666c[_0x391e12(0x142)])==null?void 0x0:_0xb949c7[_0x427d02],_0xfc8412=[];for(let _0x91ad98=this[_0x391e12(0x8f)][_0x391e12(0x90)];_0x91ad98<=this['_range'][_0x391e12(0x1c5)];_0x91ad98++){let _0x522f47=_0x12949f[_0x91ad98];_0xfc8412[_0x391e12(0x112)](_0x2e2924&&_0x522f47?_0x3dcf51(_0x44666c,_0x2e2924,_0x522f47):null);}_0x222314['push'](_0xfc8412);}return _0x222314;}['getValue'](){const _0x42e21c=_0x324e98;var _0x685a7b;return((_0x685a7b=this[_0x42e21c(0x177)]()[0x0])==null?void 0x0:_0x685a7b[0x0])??null;}[_0x324e98(0x129)](_0x584aa8){return this['setValues']([[_0x584aa8]]);}[_0x324e98(0x128)](_0xc7be3f){const _0x14b4fa=_0x324e98;let _0x229a40=this[_0x14b4fa(0x83)](),_0x3b701d=this[_0x14b4fa(0x1aa)]();if(_0xc7be3f[_0x14b4fa(0x171)]>_0x229a40||_0xc7be3f['some'](_0x37f945=>_0x37f945['length']>_0x3b701d)){var _0x5f0c4b;throw Error('[FBaseRange]:\x20values\x20size\x20'+_0xc7be3f[_0x14b4fa(0x171)]+'x'+(((_0x5f0c4b=_0xc7be3f[0x0])==null?void 0x0:_0x5f0c4b['length'])??0x0)+_0x14b4fa(0xb6)+_0x229a40+'x'+_0x3b701d+'.');}let _0x7bc4c4=this[_0x14b4fa(0x1cd)](),_0x1587f5=this[_0x14b4fa(0x152)](_0x7bc4c4),_0x20c47d=_0xc7be3f[_0x14b4fa(0x1c4)]((_0x49e85a,_0x17050e)=>_0x49e85a[_0x14b4fa(0x1bc)]((_0x440228,_0x2f517e)=>{const _0x2d49e9=_0x14b4fa;var _0x3096f8;let _0x2ffbb0=this[_0x2d49e9(0x8f)][_0x2d49e9(0x198)]+_0x17050e,_0x4b6bf3=_0x1587f5[this[_0x2d49e9(0x8f)][_0x2d49e9(0x90)]+_0x2f517e],_0x3397e0=(_0x3096f8=_0x7bc4c4[_0x2d49e9(0x142)])==null?void 0x0:_0x3096f8[_0x2ffbb0];if(!_0x4b6bf3||!_0x3397e0)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x3397e0,'fieldId':_0x4b6bf3,'value':_0x440228};}));return this[_0x14b4fa(0xa5)][_0x14b4fa(0x1cb)](_0x5307f6['id'],{'unitId':this['_base'][_0x14b4fa(0x1b2)](),'tableId':this['_table'][_0x14b4fa(0x1b2)](),'patches':_0x20c47d,'source':_0x13d834[_0x14b4fa(0x9c)]});}[_0x324e98(0x10b)](){const _0x2c3803=_0x324e98;return this[_0x2c3803(0x128)](Array['from']({'length':this[_0x2c3803(0x83)]()},()=>Array[_0x2c3803(0xd5)]({'length':this['getNumColumns']()},()=>null)));}[_0x324e98(0x19b)](_0x374f26,_0xf9b795,_0x4a6f78=this[_0x324e98(0x83)](),_0x5f2398=this['getNumColumns']()){const _0x1b4d2d=_0x324e98;return this[_0x1b4d2d(0xd4)][_0x1b4d2d(0x18a)](G,this[_0x1b4d2d(0xfa)],this[_0x1b4d2d(0x123)],{'startRow':this[_0x1b4d2d(0x8f)][_0x1b4d2d(0x198)]+_0x374f26,'startColumn':this[_0x1b4d2d(0x8f)][_0x1b4d2d(0x90)]+_0xf9b795,'endRow':this[_0x1b4d2d(0x8f)][_0x1b4d2d(0x198)]+_0x374f26+_0x4a6f78-0x1,'endColumn':this['_range'][_0x1b4d2d(0x90)]+_0xf9b795+_0x5f2398-0x1},this['_inject']);}[_0x324e98(0x1cd)](){const _0x3a9a31=_0x324e98;let _0x5e5efb=this['_table'][_0x3a9a31(0x12a)]();if(!_0x5e5efb)throw Error('[FBaseRange]:\x20table\x20does\x20not\x20exist.');return _0x74af36(_0x5e5efb);}[_0x324e98(0x173)](){const _0xf8852f=_0x324e98;var _0x22e274;let _0x15888c=this[_0xf8852f(0x1cd)](),_0x8632e7=((_0x22e274=_0x15888c[_0xf8852f(0x15b)])==null?void 0x0:_0x22e274[_0xf8852f(0x171)])??0x0,_0x166abb=this['_getFieldIds'](_0x15888c)[_0xf8852f(0x171)];if(this[_0xf8852f(0x8f)][_0xf8852f(0x198)]<0x0||this[_0xf8852f(0x8f)][_0xf8852f(0x90)]<0x0||this['_range']['endRow']<this[_0xf8852f(0x8f)][_0xf8852f(0x198)]||this[_0xf8852f(0x8f)][_0xf8852f(0x1c5)]<this['_range']['startColumn']||this[_0xf8852f(0x8f)][_0xf8852f(0x14f)]>=Math[_0xf8852f(0x106)](_0x8632e7,0x1)||this['_range'][_0xf8852f(0x1c5)]>=Math[_0xf8852f(0x106)](_0x166abb,0x1))throw Error(_0xf8852f(0x11f)+_0x8632e7+_0xf8852f(0xd1)+_0x166abb+_0xf8852f(0xba)+JSON['stringify'](this[_0xf8852f(0x8f)])+'.');}[_0x324e98(0x152)](_0x1dd6ae){const _0x1f1507=_0x324e98;return _0x1dd6ae['fieldOrder'][_0x1f1507(0xa1)](_0x34d15b=>V(_0x1dd6ae[_0x1f1507(0x114)][_0x34d15b]));}};K=G=z([R(0x4,_0x59e8d4)],K);function q(_0x845e8e){'@babel/helpers - typeof';const _0x5d7a8f=_0x324e98;return q=typeof Symbol=='function'&&typeof Symbol[_0x5d7a8f(0x159)]=='symbol'?function(_0x274f0a){return typeof _0x274f0a;}:function(_0x5f39a4){const _0x4e76b9=_0x5d7a8f;return _0x5f39a4&&typeof Symbol==_0x4e76b9(0xe2)&&_0x5f39a4['constructor']===Symbol&&_0x5f39a4!==Symbol[_0x4e76b9(0x17b)]?_0x4e76b9(0x185):typeof _0x5f39a4;},q(_0x845e8e);}function pt(_0x553f2d,_0xa13668){const _0x5513dd=_0x324e98;if(q(_0x553f2d)!=_0x5513dd(0x19f)||!_0x553f2d)return _0x553f2d;var _0x5e51c7=_0x553f2d[Symbol[_0x5513dd(0x154)]];if(_0x5e51c7!==void 0x0){var _0x2c71d5=_0x5e51c7[_0x5513dd(0x13a)](_0x553f2d,_0xa13668||_0x5513dd(0xda));if(q(_0x2c71d5)!=_0x5513dd(0x19f))return _0x2c71d5;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xa13668===_0x5513dd(0x1a6)?String:Number)(_0x553f2d);}function mt(_0x2f2741){const _0x221cf0=_0x324e98;var _0x5c9d31=pt(_0x2f2741,_0x221cf0(0x1a6));return q(_0x5c9d31)==_0x221cf0(0x185)?_0x5c9d31:_0x5c9d31+'';}function ht(_0x10b2e0,_0x65db1b,_0x102edf){return(_0x65db1b=mt(_0x65db1b))in _0x10b2e0?Object['defineProperty'](_0x10b2e0,_0x65db1b,{'value':_0x102edf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x10b2e0[_0x65db1b]=_0x102edf,_0x10b2e0;}var J;let Y=J=class extends _0x418147{constructor(_0x416b89,_0x36d704,_0x558bb2,_0x2ed913,_0x2486a1,_0x56f468){const _0x2a2198=_0x324e98;super(_0x2ed913),this['_base']=_0x416b89,this['_table']=_0x36d704,this[_0x2a2198(0xb5)]=_0x558bb2,this[_0x2a2198(0x12e)]=_0x2ed913,this[_0x2a2198(0xa5)]=_0x2486a1,this[_0x2a2198(0xbb)]=_0x56f468,ht(this,_0x2a2198(0x100),void 0x0),ht(this,_0x2a2198(0x17f),void 0x0),this[_0x2a2198(0x100)]=_0x416b89[_0x2a2198(0x1b2)](),this[_0x2a2198(0x17f)]=_0x36d704[_0x2a2198(0x1b2)]();}[_0x324e98(0xff)](){const _0x5f561e=_0x324e98;return this[_0x5f561e(0xfa)];}[_0x324e98(0x145)](){const _0x22c9dc=_0x324e98;return this[_0x22c9dc(0x123)];}['getId'](){return this['_recordId'];}[_0x324e98(0x1a5)](){const _0x1aa6f1=_0x324e98;let _0x18a104=this[_0x1aa6f1(0x123)]['getId']();return new L(this['_base'][_0x1aa6f1(0x1b2)](),_0x3ed35b(_0x18a104,this['_recordId']),[_0x2d9071(_0x18a104)],this['_commandService'],this[_0x1aa6f1(0xbb)]);}[_0x324e98(0x141)](){const _0x2504a9=_0x324e98;return{...this[_0x2504a9(0x191)](),'values':this[_0x2504a9(0x177)]()};}[_0x324e98(0xe5)](_0x1d52bc){const _0x1ab65e=_0x324e98;return V(this[_0x1ab65e(0x123)][_0x1ab65e(0x12a)]()[_0x1ab65e(0x114)][_0x1d52bc])?this[_0x1ab65e(0x191)]()['values'][_0x1d52bc]??null:null;}[_0x324e98(0x177)](){const _0x2b52be=_0x324e98;let _0x525d81=this['_table'][_0x2b52be(0x12a)]();return Object['fromEntries'](Object['entries'](this[_0x2b52be(0x191)]()[_0x2b52be(0xe7)])['filter'](([_0x2f8eb0])=>V(_0x525d81[_0x2b52be(0x114)][_0x2f8eb0])));}[_0x324e98(0x129)](_0x22784d,_0x5c9c6e){const _0x6938fd=_0x324e98;let _0x24dd6f=this[_0x6938fd(0x123)][_0x6938fd(0x12a)]()['fields'][_0x22784d];return this[_0x6938fd(0xa5)][_0x6938fd(0x1cb)](_0x5a2ebc['id'],{'unitId':this[_0x6938fd(0xfa)][_0x6938fd(0x1b2)](),'tableId':this[_0x6938fd(0x123)][_0x6938fd(0x1b2)](),'recordId':this[_0x6938fd(0xb5)],'fieldId':_0x22784d,'value':st(_0x24dd6f,_0x5c9c6e),'source':_0x13d834[_0x6938fd(0x9c)]});}[_0x324e98(0x166)](_0x2d6571,_0x19f9d6){const _0x3dfa99=_0x324e98;return this[_0x3dfa99(0x129)](_0x2d6571,_0x19f9d6['map'](_0x157197=>({..._0x157197})));}[_0x324e98(0x14c)](_0x165f41){const _0x5dd68e=_0x324e98;this['_getAttachmentField'](_0x165f41);let _0x32a0fa=this[_0x5dd68e(0xe5)](_0x165f41);return Array[_0x5dd68e(0x195)](_0x32a0fa)?_0x32a0fa['map']((_0x480633,_0x4aa726)=>_t(_0x480633,_0x165f41,_0x4aa726)):[];}['deleteAttachments'](_0x20cebd,_0x3ad05e){const _0x5f3943=_0x324e98;this['_getAttachmentField'](_0x20cebd);let _0x23a0d9=new Set(_0x3ad05e['map'](_0xd0f3e5=>_0xd0f3e5['id']));if(!_0x23a0d9[_0x5f3943(0x8c)])return!0x0;let _0x4d6dac=this['getAttachments'](_0x20cebd),_0x42e15a=_0x4d6dac['filter'](_0x58ed23=>!_0x23a0d9[_0x5f3943(0x157)](_0x58ed23['id']));return _0x42e15a['length']===_0x4d6dac[_0x5f3943(0x171)]||this[_0x5f3943(0x166)](_0x20cebd,_0x42e15a);}[_0x324e98(0x128)](_0x3e2a46,_0x265953='id'){const _0xdc9a94=_0x324e98;let _0x454a05=this[_0xdc9a94(0x123)]['getTable'](),_0x44db5d=[{'recordId':this['_recordId'],'values':H(_0x454a05,_0x3e2a46,_0x265953)}];return this[_0xdc9a94(0xa5)][_0xdc9a94(0x1cb)](_0x3afdde['id'],{'unitId':this[_0xdc9a94(0xfa)][_0xdc9a94(0x1b2)](),'tableId':this[_0xdc9a94(0x123)][_0xdc9a94(0x1b2)](),'patches':_0x44db5d,'source':_0x13d834[_0xdc9a94(0x9c)]});}['delete'](){const _0x57a821=_0x324e98;return this[_0x57a821(0xa5)]['syncExecuteCommand'](_0x12a807['id'],{'unitId':this[_0x57a821(0xfa)]['getId'](),'tableId':this[_0x57a821(0x123)][_0x57a821(0x1b2)](),'recordId':this[_0x57a821(0xb5)],'source':_0x13d834[_0x57a821(0x9c)]});}['duplicate'](_0x240218){const _0x2878b7=_0x324e98;let _0x528f5c={...this['_getRecord'](),..._0x240218,'id':_0x108320(0x6)};_0x528f5c[_0x2878b7(0xe7)]={..._0x528f5c[_0x2878b7(0xe7)],..._0x240218==null?void 0x0:_0x240218[_0x2878b7(0xe7)]},Reflect[_0x2878b7(0x94)](_0x528f5c['values'],_0x3032a4);let _0x1cc2da=Date[_0x2878b7(0x111)]();if(_0x528f5c['orderKey']||=''+_0x1cc2da,_0x528f5c[_0x2878b7(0x147)]||=_0x1cc2da,_0x528f5c[_0x2878b7(0x87)]||=_0x1cc2da,!this[_0x2878b7(0xa5)]['syncExecuteCommand'](_0x1336ed['id'],{'unitId':this[_0x2878b7(0xfa)][_0x2878b7(0x1b2)](),'tableId':this[_0x2878b7(0x123)][_0x2878b7(0x1b2)](),'sourceRecordId':this['_recordId'],'record':_0x528f5c,'source':_0x13d834[_0x2878b7(0x9c)]}))throw Error(_0x2878b7(0xa6)+this[_0x2878b7(0xb5)]+'\x22.');return this['_injector'][_0x2878b7(0x18a)](J,this[_0x2878b7(0xfa)],this[_0x2878b7(0x123)],_0x528f5c['id'],this['_injector']);}[_0x324e98(0x197)](_0x137d4e){const _0x54660c=_0x324e98;return this['_commandService'][_0x54660c(0x1cb)](_0x2f3e1d['id'],{'unitId':this['_base'][_0x54660c(0x1b2)](),'tableId':this['_table'][_0x54660c(0x1b2)](),'recordId':this[_0x54660c(0xb5)],'orderKey':_0x137d4e});}[_0x324e98(0x98)](_0xb50a8b){let _0x45918f=this['_getRecordLinkField'](_0xb50a8b),_0x471ca8=this['getValue'](_0x45918f['id']);return _0x4a1603(_0x471ca8);}[_0x324e98(0x125)](_0x3747fb,_0x36a21f){const _0x2689d3=_0x324e98;let _0x4fa7b9=this['_getRecordLinkField'](_0x3747fb),_0x40b2bb=_0x5277b9(_0x36a21f),_0x44135d=_0x9341a(this[_0x2689d3(0xfa)]['getBase']()[_0x2689d3(0xf7)](),_0x4fa7b9,_0x40b2bb);if(!_0x44135d[_0x2689d3(0x1b3)])throw Error(_0x44135d[_0x2689d3(0x1cc)]??'[FRecord]:\x20invalid\x20RecordLink\x20value.');return this['_commandService']['syncExecuteCommand'](_0x5a2ebc['id'],{'unitId':this[_0x2689d3(0xfa)]['getId'](),'tableId':this['_table'][_0x2689d3(0x1b2)](),'recordId':this[_0x2689d3(0xb5)],'fieldId':_0x3747fb,'value':_0x40b2bb,'source':_0x13d834[_0x2689d3(0x9c)]});}[_0x324e98(0x13b)](_0x335420,_0x1beee0){const _0x554755=_0x324e98;let _0x489918=this[_0x554755(0x105)](_0x335420),_0x1deaa8=_0x228ee7(_0x489918);if(!_0x1deaa8)throw Error('[FRecord]:\x20RecordLink\x20field\x20\x22'+_0x335420+_0x554755(0x11b));let _0x3ed893=this[_0x554755(0x98)](_0x335420);return _0x1deaa8[_0x554755(0x149)]&&_0x3ed893[_0x554755(0xb4)](_0x1beee0)?!0x0:this['setLinkedRecordIds'](_0x335420,_0x1deaa8['multiple']?[..._0x3ed893,_0x1beee0]:[_0x1beee0]);}['removeLinkedRecord'](_0x2a9451,_0x2a56f4){const _0x421f20=_0x324e98;let _0xc89e95=this['getLinkedRecordIds'](_0x2a9451);return!_0xc89e95[_0x421f20(0xb4)](_0x2a56f4)||this[_0x421f20(0x125)](_0x2a9451,_0xc89e95[_0x421f20(0xa1)](_0x85a29c=>_0x85a29c!==_0x2a56f4));}['getParent'](_0x80faf7){const _0x223230=_0x324e98;let _0x182e73=this[_0x223230(0xb7)](_0x80faf7)[_0x223230(0xa0)][_0x223230(0x134)](this['_recordId'])??null;return _0x182e73?this[_0x223230(0x123)]['getRecordById'](_0x182e73):null;}[_0x324e98(0x16d)](_0x2f416f){const _0x5d4d32=_0x324e98;return(this[_0x5d4d32(0xb7)](_0x2f416f)['childrenByParentId'][_0x5d4d32(0x134)](this[_0x5d4d32(0xb5)])??[])['flatMap'](_0x373ea8=>{const _0x413989=_0x5d4d32;let _0xebd45a=this[_0x413989(0x123)][_0x413989(0xc6)](_0x373ea8);return _0xebd45a?[_0xebd45a]:[];});}[_0x324e98(0x101)](_0x506177){const _0x3abf6c=_0x324e98;let _0x151ca3=this[_0x3abf6c(0xb7)](_0x506177),_0xcc9f5d=[],_0x4305cf=_0x151ca3['parentByRecordId'][_0x3abf6c(0x134)](this[_0x3abf6c(0xb5)])??null;for(;_0x4305cf;){let _0x480793=this['_table'][_0x3abf6c(0xc6)](_0x4305cf);_0x480793&&_0xcc9f5d[_0x3abf6c(0x112)](_0x480793),_0x4305cf=_0x151ca3[_0x3abf6c(0xa0)][_0x3abf6c(0x134)](_0x4305cf)??null;}return _0xcc9f5d;}[_0x324e98(0x190)](_0x1a8f86){const _0x44f147=_0x324e98;let _0x27fbb8=this[_0x44f147(0xb7)](_0x1a8f86),_0x3db65e=_0x27fbb8[_0x44f147(0x138)]['indexOf'](this[_0x44f147(0xb5)]),_0x2f2553=_0x27fbb8['subtreeHeightByRecordId'][_0x44f147(0x157)](this[_0x44f147(0xb5)])?this['_collectDescendantIds'](_0x27fbb8['childrenByParentId'],this[_0x44f147(0xb5)]):[];return _0x3db65e<0x0?[]:_0x2f2553[_0x44f147(0x1c4)](_0x10ef7d=>{const _0x6f5613=_0x44f147;let _0x52a225=this[_0x6f5613(0x123)][_0x6f5613(0xc6)](_0x10ef7d);return _0x52a225?[_0x52a225]:[];});}[_0x324e98(0xa2)](_0x447793,_0x12d6b2,_0x2c977a){const _0x31413a=_0x324e98;return this[_0x31413a(0xa5)][_0x31413a(0x1cb)](_0x362d9f['id'],{'unitId':this[_0x31413a(0xfa)][_0x31413a(0x1b2)](),'tableId':this['_table'][_0x31413a(0x1b2)](),'fieldId':_0x447793,'recordId':this[_0x31413a(0xb5)],'parentRecordId':_0x12d6b2,'orderKey':_0x2c977a,'source':_0x13d834[_0x31413a(0x9c)]});}[_0x324e98(0x139)](_0x315a14,_0x40a5d3,_0x102740='id',_0x1da39b){const _0xee97fa=_0x324e98;let _0x4b5c20=this['_table']['getTable'](),_0x1cb66a=Date[_0xee97fa(0x111)](),_0x3a6972={..._0x1da39b,'id':_0x108320(0x6),'values':H(_0x4b5c20,_0x40a5d3,_0x102740),'orderKey':(_0x1da39b==null?void 0x0:_0x1da39b[_0xee97fa(0xd3)])||''+_0x1cb66a,'createdAt':(_0x1da39b==null?void 0x0:_0x1da39b['createdAt'])||_0x1cb66a,'updatedAt':(_0x1da39b==null?void 0x0:_0x1da39b[_0xee97fa(0x87)])||_0x1cb66a};if(!this[_0xee97fa(0xa5)][_0xee97fa(0x1cb)](_0x5c4ac9['id'],{'unitId':this[_0xee97fa(0xfa)][_0xee97fa(0x1b2)](),'tableId':this['_table'][_0xee97fa(0x1b2)](),'fieldId':_0x315a14,'parentRecordId':this[_0xee97fa(0xb5)],'record':_0x3a6972,'source':_0x13d834[_0xee97fa(0x9c)]}))throw Error(_0xee97fa(0xfb)+this[_0xee97fa(0xb5)]+'\x22.');return this[_0xee97fa(0x12e)][_0xee97fa(0x18a)](J,this[_0xee97fa(0xfa)],this[_0xee97fa(0x123)],_0x3a6972['id'],this['_injector']);}[_0x324e98(0xb7)](_0x1493ce){const _0x3abc06=_0x324e98;return _0x477d67(this[_0x3abc06(0x123)][_0x3abc06(0x12a)](),_0x1493ce);}[_0x324e98(0xef)](_0x202549,_0x65c598){let _0x4c4008=[],_0x43a47d=_0x1f4eeb=>{const _0x589541=_0x2f23;for(let _0x5932ac of _0x202549[_0x589541(0x134)](_0x1f4eeb)??[])_0x4c4008['push'](_0x5932ac),_0x43a47d(_0x5932ac);};return _0x43a47d(_0x65c598),_0x4c4008;}[_0x324e98(0x191)](){const _0x35fe83=_0x324e98;let _0x4bf953=this['_table'][_0x35fe83(0x12a)]()[_0x35fe83(0xfe)][this['_recordId']];if(!_0x4bf953)throw Error('[FRecord]:\x20record\x20\x22'+this['_recordId']+_0x35fe83(0x132));return _0x4bf953;}[_0x324e98(0x105)](_0x3364db){const _0x4e5443=_0x324e98;let _0x1d8e62=this[_0x4e5443(0x123)][_0x4e5443(0x12a)]()[_0x4e5443(0x114)][_0x3364db];if(!_0x1d8e62||_0x1d8e62[_0x4e5443(0x11a)]!==_0x1a1896['RecordLink'])throw Error(_0x4e5443(0x9f)+_0x3364db+'\x22\x20is\x20not\x20a\x20RecordLink\x20field.');return _0x1d8e62;}['_getAttachmentField'](_0x531047){const _0x42dde5=_0x324e98;let _0x3f4cd5=this[_0x42dde5(0x123)][_0x42dde5(0x12a)]()[_0x42dde5(0x114)][_0x531047];if(!_0x3f4cd5||_0x3f4cd5[_0x42dde5(0x11a)]!==_0x1a1896['Attachment'])throw Error(_0x42dde5(0x9f)+_0x531047+_0x42dde5(0x1af));return _0x3f4cd5;}};Y=J=z([R(0x4,_0x59e8d4),R(0x5,_0x2a433e)],Y);function gt(_0x33e6c1){const _0x46c08=_0x324e98;return!!(_0x33e6c1&&typeof _0x33e6c1=='object'&&'id'in _0x33e6c1&&typeof _0x33e6c1['id']==_0x46c08(0x1a6)&&_0x46c08(0x1a1)in _0x33e6c1&&typeof _0x33e6c1[_0x46c08(0x1a1)]=='string');}function _t(_0x55f233,_0x120ffa,_0x5d18fd){const _0x34c197=_0x324e98;if(!gt(_0x55f233))throw Error(_0x34c197(0x9e)+_0x5d18fd+_0x34c197(0x118)+_0x120ffa+_0x34c197(0x174));return{..._0x55f233};}let X=class{constructor(_0x3862f3,_0x27628b,_0x11d3e6,_0x2095a2,_0x23d61d,_0x590f44,_0x9c2928){const _0x37945f=_0x324e98;this[_0x37945f(0xfa)]=_0x3862f3,this['_table']=_0x27628b,this['_viewId']=_0x11d3e6,this[_0x37945f(0x12e)]=_0x2095a2,this[_0x37945f(0xa5)]=_0x23d61d,this[_0x37945f(0xbb)]=_0x590f44,this[_0x37945f(0xe9)]=_0x9c2928;}['getId'](){const _0xcb34e7=_0x324e98;return this[_0xcb34e7(0xac)];}[_0x324e98(0x1a5)](){const _0x1ec195=_0x324e98;let _0x1b6d3c=this['_table'][_0x1ec195(0x1b2)]();return new L(this['_base']['getId'](),_0x38bc3d(_0x1b6d3c,this[_0x1ec195(0xac)]),[_0x2d9071(_0x1b6d3c)],this[_0x1ec195(0xa5)],this[_0x1ec195(0xbb)]);}[_0x324e98(0x13e)](){const _0x4ce865=_0x324e98;return this[_0x4ce865(0x8e)]();}[_0x324e98(0x176)](){const _0x221f80=_0x324e98;return this[_0x221f80(0x8e)]()[_0x221f80(0x1a1)];}[_0x324e98(0x1c7)](){const _0x2274be=_0x324e98;return this['_getView']()[_0x2274be(0x11a)];}['setName'](_0x26a786){const _0x2c2b68=_0x324e98;return this[_0x2c2b68(0xa5)]['syncExecuteCommand'](_0x58f226['id'],{'unitId':this[_0x2c2b68(0xfa)][_0x2c2b68(0x1b2)](),'tableId':this[_0x2c2b68(0x123)]['getId'](),'viewId':this[_0x2c2b68(0xac)],'name':_0x26a786});}[_0x324e98(0xce)](){const _0x43c8ff=_0x324e98;let _0x5bbb1e=this[_0x43c8ff(0x1c7)](),_0x153b21=this[_0x43c8ff(0x8e)]()[_0x43c8ff(0x1bd)];switch(_0x5bbb1e){case _0x4a8d70[_0x43c8ff(0x1cf)]:return _0x153b21;case _0x4a8d70[_0x43c8ff(0xb9)]:return _0x153b21;case _0x4a8d70[_0x43c8ff(0x7e)]:return _0x153b21;case _0x4a8d70[_0x43c8ff(0x1ca)]:return _0x153b21;case _0x4a8d70['Gallery']:return _0x153b21;default:return _0x153b21;}}[_0x324e98(0x1c1)](_0x437aa4){const _0x8a6ad4=_0x324e98;return this[_0x8a6ad4(0xa5)]['syncExecuteCommand'](_0x54fb7b['id'],{'unitId':this[_0x8a6ad4(0xfa)][_0x8a6ad4(0x1b2)](),'tableId':this[_0x8a6ad4(0x123)][_0x8a6ad4(0x1b2)](),'viewId':this[_0x8a6ad4(0xac)],'patch':_0x437aa4});}['getConditionalColorRules'](){const _0x5a1c52=_0x324e98;var _0x5f5b20;return _0x315048['deepClone'](((_0x5f5b20=this[_0x5a1c52(0x8e)]()[_0x5a1c52(0x1bd)][_0x5a1c52(0x140)])==null?void 0x0:_0x5f5b20[_0x5a1c52(0x16c)])??[]);}['setConditionalColorRules'](_0x424c7b){const _0x5cf3ac=_0x324e98;return this['_commandService'][_0x5cf3ac(0x1cb)](_0x467430['id'],{'unitId':this[_0x5cf3ac(0xfa)][_0x5cf3ac(0x1b2)](),'tableId':this[_0x5cf3ac(0x123)][_0x5cf3ac(0x1b2)](),'viewId':this['_viewId'],'type':_0x190b78[_0x5cf3ac(0xab)],'rules':_0x424c7b});}[_0x324e98(0x113)](_0x48e16d){const _0xfdd842=_0x324e98;return this[_0xfdd842(0xa5)][_0xfdd842(0x1cb)](_0x467430['id'],{'unitId':this[_0xfdd842(0xfa)][_0xfdd842(0x1b2)](),'tableId':this[_0xfdd842(0x123)][_0xfdd842(0x1b2)](),'viewId':this[_0xfdd842(0xac)],'type':_0x190b78[_0xfdd842(0x108)],'rule':_0x48e16d});}[_0x324e98(0x110)](_0x17ead3){const _0x30034f=_0x324e98;return this['_commandService'][_0x30034f(0x1cb)](_0x467430['id'],{'unitId':this['_base'][_0x30034f(0x1b2)](),'tableId':this[_0x30034f(0x123)]['getId'](),'viewId':this[_0x30034f(0xac)],'type':_0x190b78[_0x30034f(0x84)],'ruleId':_0x17ead3});}['clearConditionalColorRules'](){const _0x5c6df3=_0x324e98;return this[_0x5c6df3(0xa5)][_0x5c6df3(0x1cb)](_0x467430['id'],{'unitId':this[_0x5c6df3(0xfa)]['getId'](),'tableId':this[_0x5c6df3(0x123)]['getId'](),'viewId':this[_0x5c6df3(0xac)],'type':_0x190b78[_0x5c6df3(0x13f)]});}[_0x324e98(0x8d)](){const _0x1176d3=_0x324e98;return this['_getView']()[_0x1176d3(0xa1)]??null;}['setFilter'](_0x243522){const _0x1a0675=_0x324e98;return this[_0x1a0675(0xa5)]['syncExecuteCommand'](_0x435ef0['id'],{'unitId':this[_0x1a0675(0xfa)][_0x1a0675(0x1b2)](),'tableId':this[_0x1a0675(0x123)][_0x1a0675(0x1b2)](),'viewId':this[_0x1a0675(0xac)],'filter':_0x243522});}[_0x324e98(0x16f)](){const _0x46e328=_0x324e98;return this[_0x46e328(0x8e)]()[_0x46e328(0x10e)]??[];}[_0x324e98(0x116)](_0x238081){const _0x12856b=_0x324e98;return this['_commandService'][_0x12856b(0x1cb)](_0x2daf8a['id'],{'unitId':this['_base'][_0x12856b(0x1b2)](),'tableId':this['_table'][_0x12856b(0x1b2)](),'viewId':this[_0x12856b(0xac)],'sort':_0x238081});}[_0x324e98(0xcb)](){const _0x31f709=_0x324e98;return this[_0x31f709(0x8e)]()['group']??[];}[_0x324e98(0xf5)](_0x519bc0){const _0x45d4fb=_0x324e98;return this[_0x45d4fb(0xa5)][_0x45d4fb(0x1cb)](_0x4ad688['id'],{'unitId':this[_0x45d4fb(0xfa)][_0x45d4fb(0x1b2)](),'tableId':this[_0x45d4fb(0x123)][_0x45d4fb(0x1b2)](),'viewId':this[_0x45d4fb(0xac)],'group':_0x519bc0});}[_0x324e98(0xf1)](_0x42d394){const _0x4a2417=_0x324e98;var _0x5086de;return V(this[_0x4a2417(0x123)][_0x4a2417(0x12a)]()[_0x4a2417(0x114)][_0x42d394])?((_0x5086de=this['_getView']()[_0x4a2417(0x1a0)])==null?void 0x0:_0x5086de[_0x42d394])??{}:{};}['getVisibleFields'](){const _0x3d114c=_0x324e98;let _0x37a478=this['_table'][_0x3d114c(0x12a)](),_0x266f04=this[_0x3d114c(0x8e)]();return(_0x266f04[_0x3d114c(0x192)]??_0x37a478['fieldOrder'])[_0x3d114c(0xa1)](_0x47b701=>{const _0x5eeae7=_0x3d114c;var _0x2b0b81;let _0x24a6d4=_0x37a478[_0x5eeae7(0x114)][_0x47b701];return V(_0x24a6d4)&&!((_0x2b0b81=_0x266f04[_0x5eeae7(0x1a0)])!=null&&(_0x2b0b81=_0x2b0b81[_0x47b701])!=null&&_0x2b0b81[_0x5eeae7(0x143)]);})[_0x3d114c(0x1bc)](_0x497c4f=>this['_injector'][_0x3d114c(0x18a)](B,this[_0x3d114c(0xfa)],this[_0x3d114c(0x123)],_0x497c4f));}[_0x324e98(0xbe)](_0x3c582b,_0x3d3b28){const _0x22de48=_0x324e98;return V(this['_table']['getTable']()[_0x22de48(0x114)][_0x3c582b])?this[_0x22de48(0xa5)][_0x22de48(0x1cb)](_0x4cf9f8['id'],{'unitId':this[_0x22de48(0xfa)]['getId'](),'tableId':this[_0x22de48(0x123)][_0x22de48(0x1b2)](),'viewId':this[_0x22de48(0xac)],'fieldId':_0x3c582b,'visible':_0x3d3b28}):!0x1;}[_0x324e98(0x167)](_0x5588e2,_0x5b40f3){const _0x7c973f=_0x324e98;return V(this[_0x7c973f(0x123)][_0x7c973f(0x12a)]()[_0x7c973f(0x114)][_0x5588e2])?this['_commandService']['syncExecuteCommand'](_0x23450e['id'],{'unitId':this[_0x7c973f(0xfa)][_0x7c973f(0x1b2)](),'tableId':this[_0x7c973f(0x123)]['getId'](),'viewId':this[_0x7c973f(0xac)],'fieldId':_0x5588e2,'width':_0x5b40f3}):!0x1;}[_0x324e98(0xe0)](_0x2a1b8b,_0x1c925a){const _0x4ff47d=_0x324e98;let _0x498726=this[_0x4ff47d(0x123)][_0x4ff47d(0x12a)](),_0x568430=_0x1c925a[_0x4ff47d(0x1ac)]??_0x1c925a[_0x4ff47d(0x1ab)];return!V(_0x498726[_0x4ff47d(0x114)][_0x2a1b8b])||!_0x568430||!V(_0x498726[_0x4ff47d(0x114)][_0x568430])?!0x1:this['_commandService']['syncExecuteCommand'](_0x2a027b['id'],{'unitId':this[_0x4ff47d(0xfa)][_0x4ff47d(0x1b2)](),'tableId':this['_table'][_0x4ff47d(0x1b2)](),'viewId':this[_0x4ff47d(0xac)],'fieldId':_0x2a1b8b,'target':_0x1c925a});}[_0x324e98(0x12d)](_0x47aca5){const _0x5601b4=_0x324e98;return this['_commandService'][_0x5601b4(0x1cb)](_0xe2cd91['id'],{'unitId':this[_0x5601b4(0xfa)][_0x5601b4(0x1b2)](),'tableId':this['_table'][_0x5601b4(0x1b2)](),'viewId':this['_viewId'],'target':_0x47aca5});}[_0x324e98(0x15c)](){const _0x14cbbc=_0x324e98;return this[_0x14cbbc(0xa5)][_0x14cbbc(0x1cb)](_0x232aed['id'],{'unitId':this[_0x14cbbc(0xfa)][_0x14cbbc(0x1b2)](),'tableId':this['_table'][_0x14cbbc(0x1b2)](),'viewId':this[_0x14cbbc(0xac)]});}[_0x324e98(0x1b4)](){const _0x1631da=_0x324e98;return this[_0x1631da(0xe9)][_0x1631da(0x1b4)](this[_0x1631da(0xfa)]['getBase']()[_0x1631da(0xf7)](),this['_table']['getId'](),this[_0x1631da(0xac)]);}[_0x324e98(0x8e)](){const _0x255bf0=_0x324e98;let _0x3517f6=this[_0x255bf0(0x123)]['getTable']()[_0x255bf0(0x1ae)][this[_0x255bf0(0xac)]];if(!_0x3517f6)throw Error('[FView]:\x20view\x20\x22'+this[_0x255bf0(0xac)]+_0x255bf0(0x132));return _0x3517f6;}};X=z([R(0x4,_0x59e8d4),R(0x5,_0x2a433e),R(0x6,_0x21a278)],X);let Z=class{constructor(_0x5ab759,_0x1e5bc3,_0x13b779,_0x431568,_0x41e878,_0x5a7381){const _0x3ee5db=_0x324e98;this[_0x3ee5db(0xfa)]=_0x5ab759,this[_0x3ee5db(0x148)]=_0x1e5bc3,this[_0x3ee5db(0x12e)]=_0x13b779,this['_commandService']=_0x431568,this[_0x3ee5db(0xbb)]=_0x41e878,this[_0x3ee5db(0xe9)]=_0x5a7381;}[_0x324e98(0x89)](){const _0x4d080e=_0x324e98;return this[_0x4d080e(0xfa)][_0x4d080e(0x89)]();}[_0x324e98(0x12a)](){const _0x3d9412=_0x324e98;return this[_0x3d9412(0x1cd)]();}[_0x324e98(0x1b2)](){return this['_tableId'];}[_0x324e98(0x1a5)](){const _0x138d12=_0x324e98;return new L(this[_0x138d12(0x89)]()[_0x138d12(0x186)](),_0x2d9071(this[_0x138d12(0x148)]),[],this['_commandService'],this['_permissionService']);}[_0x324e98(0xf0)](){return _0x1e14c8(this['_getTable']());}['setHierarchyField'](_0x29aeeb){const _0x36e9fb=_0x324e98;return this[_0x36e9fb(0xa5)]['syncExecuteCommand'](_0x56d16a['id'],{'unitId':this['_base'][_0x36e9fb(0x1b2)](),'tableId':this[_0x36e9fb(0x148)],'fieldId':_0x29aeeb});}[_0x324e98(0x176)](){const _0x25269e=_0x324e98;return this['_getTable']()[_0x25269e(0x1a1)];}[_0x324e98(0x12f)](){const _0x45590d=_0x324e98;let _0x1d1073=this[_0x45590d(0xfa)][_0x45590d(0x89)]()['getSnapshot']();return _0xad8303(this['_getTable'](),_0x1d1073);}[_0x324e98(0x182)](_0x4f9257){const _0x5b2720=_0x324e98;let _0x430814=_0x31a4b0(this[_0x5b2720(0xfa)][_0x5b2720(0x89)]()['getSnapshot'](),_0x4f9257,this[_0x5b2720(0x148)]);if(!_0x430814[_0x5b2720(0x1b3)])throw Error(_0x5b2720(0x133)+_0x4f9257+_0x5b2720(0x10d)+_0x430650+'\x20'+_0x430814['reason']);return this[_0x5b2720(0xa5)][_0x5b2720(0x1cb)](_0x134550['id'],{'unitId':this[_0x5b2720(0xfa)]['getId'](),'tableId':this[_0x5b2720(0x148)],'name':_0x4f9257});}['search'](_0x2ca0d6,_0xe0fe82){const _0x1a786a=_0x324e98;let _0x8fd349=this[_0x1a786a(0xfa)][_0x1a786a(0x89)]()[_0x1a786a(0xf7)](),_0x265f7e=this[_0x1a786a(0x1cd)]();if(_0xe0fe82){let _0x941aa=this[_0x1a786a(0xe9)][_0x1a786a(0x1b4)](_0x8fd349,this[_0x1a786a(0x148)],_0xe0fe82),_0x5e27d9=_0x265f7e[_0x1a786a(0x1ae)][_0xe0fe82],_0x34fa17=_0x2ca0d6[_0x1a786a(0x187)]??Tt(_0x265f7e,_0x5e27d9,_0x941aa),_0x897508=_0x1a786a(0x184)in _0x941aa&&Array[_0x1a786a(0x195)](_0x941aa[_0x1a786a(0x184)])?_0x941aa[_0x1a786a(0x184)]:[];return _0x42e541({..._0x2ca0d6,'table':_0x265f7e,'fieldIds':_0x34fa17,'rows':_0x897508});}let _0x3e5e95=(_0x265f7e[_0x1a786a(0x15b)]?_0x265f7e[_0x1a786a(0x15b)][_0x1a786a(0x1bc)](_0x278af6=>_0x265f7e[_0x1a786a(0xfe)][_0x278af6]):Object[_0x1a786a(0xe7)](_0x265f7e[_0x1a786a(0xfe)])[_0x1a786a(0x10e)]((_0x5d36d7,_0x5b6557)=>_0x5d36d7['orderKey'][_0x1a786a(0x153)](_0x5b6557['orderKey'])))[_0x1a786a(0xa1)](_0x1c6069=>_0x1c6069)[_0x1a786a(0x1bc)](_0x3fded5=>({'recordId':_0x3fded5['id'],'values':_0x3fded5[_0x1a786a(0xe7)]})),_0x3ee429=_0x2ca0d6[_0x1a786a(0x187)]??_0x265f7e[_0x1a786a(0x192)]['filter'](_0x385262=>V(_0x265f7e[_0x1a786a(0x114)][_0x385262]));return _0x42e541({..._0x2ca0d6,'table':_0x265f7e,'fieldIds':_0x3ee429,'rows':_0x3e5e95});}[_0x324e98(0x1d2)](){const _0x2ad7fd=_0x324e98;return this[_0x2ad7fd(0x1cd)]()[_0x2ad7fd(0xcf)];}[_0x324e98(0xa4)](){const _0x56a482=_0x324e98;let _0x1ecb7a=this[_0x56a482(0x1cd)]();return _0x1ecb7a[_0x56a482(0x192)][_0x56a482(0x1bc)](_0x170366=>_0x1ecb7a[_0x56a482(0x114)][_0x170366])[_0x56a482(0xa1)](V)[_0x56a482(0x1bc)](_0x552f5b=>this[_0x56a482(0x12e)][_0x56a482(0x18a)](B,this[_0x56a482(0xfa)],this,_0x552f5b['id']));}[_0x324e98(0x136)](_0x1e157d){const _0x1820f4=_0x324e98;let _0x39e607=this[_0x1820f4(0x1cd)]()[_0x1820f4(0x114)][_0x1e157d];return V(_0x39e607)?this[_0x1820f4(0x12e)][_0x1820f4(0x18a)](B,this['_base'],this,_0x39e607['id']):null;}[_0x324e98(0xa8)](_0xbdd91){const _0x3ffa0c=_0x324e98;let _0x1a815d=this[_0x3ffa0c(0x1cd)]()[_0x3ffa0c(0x114)],_0x1270ca=Object['values'](_0x1a815d)[_0x3ffa0c(0x16e)](_0x384569=>V(_0x384569)&&_0x384569[_0x3ffa0c(0x1a1)]===_0xbdd91);return _0x1270ca?this['_injector'][_0x3ffa0c(0x18a)](B,this[_0x3ffa0c(0xfa)],this,_0x1270ca['id']):null;}['getPrimaryField'](){const _0xa110f1=_0x324e98;let _0x1022a3=this['_getTable']()['primaryFieldId'];return this['_injector'][_0xa110f1(0x18a)](B,this['_base'],this,_0x1022a3);}[_0x324e98(0x163)](_0x469371,_0x19f611,_0x5c7d2e){const _0x17d323=_0x324e98;var _0x37d1d2,_0x23ee27;if(!Object[_0x17d323(0xe7)](_0x1a1896)[_0x17d323(0xd2)](_0x454cfb=>_0x454cfb===_0x19f611))throw Error(_0x17d323(0x1c9)+String(_0x19f611)+'\x22.');if(_0x19f611===_0x1a1896[_0x17d323(0x81)]&&this['_prepareFormulaFieldReferences'](_0x469371,_0x5c7d2e),_0x19f611===_0x1a1896[_0x17d323(0x1d4)]&&(typeof(_0x5c7d2e==null||(_0x37d1d2=_0x5c7d2e[_0x17d323(0x80)])==null||(_0x37d1d2=_0x37d1d2['config'])==null?void 0x0:_0x37d1d2[_0x17d323(0x11e)])!=_0x17d323(0x1a6)||typeof _0x5c7d2e[_0x17d323(0x80)][_0x17d323(0x1bd)][_0x17d323(0x149)]!=_0x17d323(0x18f)))throw Error(_0x17d323(0x161));let _0x1708f4={..._0x5c7d2e==null?void 0x0:_0x5c7d2e[_0x17d323(0x80)],'id':_0x108320(0x6),'name':_0x469371,'type':_0x19f611,'config':(_0x5c7d2e==null||(_0x23ee27=_0x5c7d2e[_0x17d323(0x80)])==null?void 0x0:_0x23ee27[_0x17d323(0x1bd)])??{}};if(!this[_0x17d323(0xa5)][_0x17d323(0x1cb)](_0x53f941['id'],{'unitId':this[_0x17d323(0xfa)][_0x17d323(0x1b2)](),'tableId':this[_0x17d323(0x148)],'field':_0x1708f4,'index':_0x5c7d2e==null?void 0x0:_0x5c7d2e[_0x17d323(0x102)]}))throw Error(_0x17d323(0x150)+_0x469371+'\x22');return this[_0x17d323(0x12e)][_0x17d323(0x18a)](B,this[_0x17d323(0xfa)],this,_0x1708f4['id']);}[_0x324e98(0xb1)](_0x353384,_0x528f3b){const _0x239bd9=_0x324e98;var _0x2b90ca;if(!_0x528f3b||!(_0x239bd9(0x19a)in _0x528f3b)||!Array[_0x239bd9(0x195)](_0x528f3b[_0x239bd9(0x19a)]))throw Error(_0x239bd9(0x1b9));let _0x2ceaf7=this[_0x239bd9(0xa5)]['syncExecuteCommand'](_0x231bfc['id'],{'unitId':this[_0x239bd9(0xfa)]['getId'](),'tableId':this[_0x239bd9(0x148)],'formula':String(((_0x2b90ca=_0x528f3b['field'])==null||(_0x2b90ca=_0x2b90ca[_0x239bd9(0x1bd)])==null?void 0x0:_0x2b90ca[_0x239bd9(0xc8)])??'')});if(!_0x2ceaf7[_0x239bd9(0x1b3)])throw Error(_0x2ceaf7[_0x239bd9(0x1cc)]??_0x239bd9(0xdf));if(_0x528f3b[_0x239bd9(0x19a)][_0x239bd9(0x171)]>0x0&&!this[_0x239bd9(0xa5)]['syncExecuteCommand'](_0x285e34['id'],{'unitId':this[_0x239bd9(0xfa)]['getId'](),'references':_0x528f3b[_0x239bd9(0x19a)]}))throw Error('Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22'+_0x353384+'\x22');}['getRecords'](){const _0x54ad56=_0x324e98;return this[_0x54ad56(0xea)]()[_0x54ad56(0x1bc)](_0x14a86d=>this[_0x54ad56(0x12e)][_0x54ad56(0x18a)](Y,this[_0x54ad56(0xfa)],this,_0x14a86d,this[_0x54ad56(0x12e)]));}['getRecordById'](_0x45a445){const _0x250455=_0x324e98;return this['_getTable']()['records'][_0x45a445]?this[_0x250455(0x12e)][_0x250455(0x18a)](Y,this[_0x250455(0xfa)],this,_0x45a445,this['_injector']):null;}[_0x324e98(0x109)](_0x236d60={}){const _0x4ff899=_0x324e98;let _0x3f4901=this[_0x4ff899(0x1cd)](),_0x3f9013=this[_0x4ff899(0xea)](_0x236d60),_0x1b3308=Math[_0x4ff899(0x106)](0x0,_0x236d60['offset']??0x0),_0x16d28e=_0x236d60[_0x4ff899(0xdd)]==null?null:Math[_0x4ff899(0x106)](0x0,_0x236d60[_0x4ff899(0xdd)]),_0x21fc0b=yt(_0x3f9013[_0x4ff899(0x1bc)](_0x2a4375=>_0x3f4901['records'][_0x2a4375])[_0x4ff899(0xa1)](_0x265233=>xt(_0x265233,_0x3f4901,_0x236d60['filter'])),_0x3f4901,_0x236d60[_0x4ff899(0x10e)]);return{'records':vt(_0x21fc0b,_0x236d60)[_0x4ff899(0x1bc)](_0x39a332=>this[_0x4ff899(0x12e)][_0x4ff899(0x18a)](Y,this['_base'],this,_0x39a332['id'],this[_0x4ff899(0x12e)])),'total':_0x21fc0b[_0x4ff899(0x171)],'offset':_0x1b3308,'limit':_0x16d28e,'hasMore':_0x16d28e!=null&&_0x1b3308+_0x16d28e<_0x21fc0b['length']};}['addRecord'](_0x5b0d84,_0x11c21c='id',_0x210cc4){const _0x1a7dc1=_0x324e98;let _0x3f92af=this['_getTable'](),_0x529928=Date[_0x1a7dc1(0x111)](),_0x3ceec4={..._0x210cc4,'id':_0x108320(0x6),'values':H(_0x3f92af,_0x5b0d84,_0x11c21c),'orderKey':(_0x210cc4==null?void 0x0:_0x210cc4['orderKey'])||''+_0x529928,'createdAt':(_0x210cc4==null?void 0x0:_0x210cc4[_0x1a7dc1(0x147)])||_0x529928,'updatedAt':(_0x210cc4==null?void 0x0:_0x210cc4[_0x1a7dc1(0x87)])||_0x529928};if(!this[_0x1a7dc1(0xa5)]['syncExecuteCommand'](_0x17b54e['id'],{'unitId':this[_0x1a7dc1(0xfa)][_0x1a7dc1(0x1b2)](),'tableId':this[_0x1a7dc1(0x148)],'record':_0x3ceec4,'source':_0x13d834[_0x1a7dc1(0x9c)]}))throw Error(_0x1a7dc1(0x130)+_0x3ceec4['id']+'\x22');return this[_0x1a7dc1(0x12e)][_0x1a7dc1(0x18a)](Y,this['_base'],this,_0x3ceec4['id'],this[_0x1a7dc1(0x12e)]);}[_0x324e98(0x188)](_0x13fb3c){const _0x4042e2=_0x324e98;if(!_0x13fb3c[_0x4042e2(0x171)])return[];let _0x6df568=this[_0x4042e2(0x1cd)](),_0x43fae5=Date[_0x4042e2(0x111)](),_0x4150d7=_0x13fb3c[_0x4042e2(0x1bc)]((_0x5cf3d4,_0x5085b3)=>{const _0x32f39d=_0x4042e2;var _0x1e061c,_0x5c1a3e,_0x2468fe;return{..._0x5cf3d4[_0x32f39d(0xaf)],'id':_0x108320(0x6),'values':H(_0x6df568,_0x5cf3d4[_0x32f39d(0xe7)],_0x5cf3d4['fieldKey']??'id'),'orderKey':((_0x1e061c=_0x5cf3d4[_0x32f39d(0xaf)])==null?void 0x0:_0x1e061c['orderKey'])||''+(_0x43fae5+_0x5085b3),'createdAt':((_0x5c1a3e=_0x5cf3d4[_0x32f39d(0xaf)])==null?void 0x0:_0x5c1a3e['createdAt'])||_0x43fae5,'updatedAt':((_0x2468fe=_0x5cf3d4[_0x32f39d(0xaf)])==null?void 0x0:_0x2468fe[_0x32f39d(0x87)])||_0x43fae5};});if(!this[_0x4042e2(0xa5)]['syncExecuteCommand'](_0x82de00['id'],{'unitId':this[_0x4042e2(0xfa)][_0x4042e2(0x1b2)](),'tableId':this[_0x4042e2(0x148)],'records':_0x4150d7,'source':_0x13d834[_0x4042e2(0x9c)]}))throw Error('Failed\x20to\x20add\x20records');return _0x4150d7[_0x4042e2(0x1bc)](_0x290a57=>this[_0x4042e2(0x12e)][_0x4042e2(0x18a)](Y,this[_0x4042e2(0xfa)],this,_0x290a57['id'],this['_injector']));}[_0x324e98(0xcc)](_0x2d359c){const _0x2f7e97=_0x324e98;return!_0x2d359c['length']||this[_0x2f7e97(0xa5)][_0x2f7e97(0x1cb)](_0x2e9597['id'],{'unitId':this['_base'][_0x2f7e97(0x1b2)](),'tableId':this['_tableId'],'recordIds':_0x2d359c,'source':_0x13d834[_0x2f7e97(0x9c)]});}[_0x324e98(0x14a)](_0x49067c,_0xbdbf72,_0x19c93a=0x1,_0x4cbb54=0x1){const _0x4d6082=_0x324e98;return this[_0x4d6082(0x12e)][_0x4d6082(0x18a)](K,this[_0x4d6082(0xfa)],this,{'startRow':_0x49067c,'endRow':_0x49067c+_0x19c93a-0x1,'startColumn':_0xbdbf72,'endColumn':_0xbdbf72+_0x4cbb54-0x1},this['_injector']);}[_0x324e98(0x1bf)](){const _0x35624a=_0x324e98;var _0x1677ea;let _0x31421b=_0x74af36(this[_0x35624a(0x1cd)]()),_0x210037=((_0x1677ea=_0x31421b[_0x35624a(0x15b)])==null?void 0x0:_0x1677ea[_0x35624a(0x171)])??0x0,_0xfe24e=_0x31421b[_0x35624a(0x192)][_0x35624a(0xa1)](_0x513f24=>V(_0x31421b[_0x35624a(0x114)][_0x513f24]))[_0x35624a(0x171)];return this['getRange'](0x0,0x0,Math[_0x35624a(0x106)](_0x210037,0x1),Math['max'](_0xfe24e,0x1));}['getViews'](){const _0x5ad006=_0x324e98;let _0x20a614=this['_getTable']();return _0x20a614[_0x5ad006(0x1c6)][_0x5ad006(0xa1)](_0x3ad645=>_0x20a614['views'][_0x3ad645])[_0x5ad006(0x1bc)](_0x232359=>this[_0x5ad006(0x12e)]['createInstance'](X,this[_0x5ad006(0xfa)],this,_0x232359,this['_injector']));}[_0x324e98(0xc7)](_0x2f2eb0){const _0x559373=_0x324e98;return this['_getTable']()[_0x559373(0x1ae)][_0x2f2eb0]?this[_0x559373(0x12e)][_0x559373(0x18a)](X,this[_0x559373(0xfa)],this,_0x2f2eb0,this['_injector']):null;}[_0x324e98(0xc1)](_0x4f98cc){const _0x342bac=_0x324e98;let _0x2acb21=this['_getTable'](),_0x9b7923=Object[_0x342bac(0xe7)](_0x2acb21[_0x342bac(0x1ae)])[_0x342bac(0x16e)](_0x557585=>_0x557585[_0x342bac(0x1a1)]===_0x4f98cc);return _0x9b7923?this[_0x342bac(0x12e)][_0x342bac(0x18a)](X,this[_0x342bac(0xfa)],this,_0x9b7923['id'],this[_0x342bac(0x12e)]):null;}[_0x324e98(0x1b7)](_0x422953,_0xe417eb,_0x3dee51){const _0x30de92=_0x324e98;var _0x414fd3,_0x11f782,_0x58a45f,_0x26ad13;let _0x1460ac=this['_getTable'](),_0x27f31c=(_0x3dee51==null||(_0x414fd3=_0x3dee51['view'])==null?void 0x0:_0x414fd3[_0x30de92(0x192)])??_0x1460ac[_0x30de92(0x192)],_0x5a0337=[_0x3032a4,..._0x27f31c[_0x30de92(0xa1)](_0xfc9ac3=>V(_0x1460ac[_0x30de92(0x114)][_0xfc9ac3]))],_0x57464c={..._0x3dee51==null?void 0x0:_0x3dee51[_0x30de92(0x9d)],'id':_0x108320(0x6),'name':_0x422953,'type':_0xe417eb,'tableId':this[_0x30de92(0x148)],'config':(_0x3dee51==null||(_0x11f782=_0x3dee51['view'])==null?void 0x0:_0x11f782[_0x30de92(0x1bd)])??{},'fieldOrder':_0x5a0337,'fieldSettings':{..._0x3dee51==null||(_0x58a45f=_0x3dee51['view'])==null?void 0x0:_0x58a45f[_0x30de92(0x1a0)],[_0x3032a4]:{..._0x3dee51==null||(_0x26ad13=_0x3dee51[_0x30de92(0x9d)])==null||(_0x26ad13=_0x26ad13['fieldSettings'])==null?void 0x0:_0x26ad13[_0x3032a4],'hidden':!0x0}}};if(!this[_0x30de92(0xa5)][_0x30de92(0x1cb)](_0x1886e9['id'],{'unitId':this[_0x30de92(0xfa)]['getId'](),'tableId':this[_0x30de92(0x148)],'view':_0x57464c,'index':_0x3dee51==null?void 0x0:_0x3dee51[_0x30de92(0x102)]}))throw Error('Failed\x20to\x20create\x20view\x20\x22'+_0x422953+'\x22');return this[_0x30de92(0x12e)][_0x30de92(0x18a)](X,this[_0x30de92(0xfa)],this,_0x57464c['id'],this[_0x30de92(0x12e)]);}['getSchema'](){const _0x26771c=_0x324e98;let _0x2c6332=this[_0x26771c(0x1cd)](),_0x30fed6=_0x2c6332[_0x26771c(0x192)][_0x26771c(0xa1)](_0x4fadfb=>V(_0x2c6332['fields'][_0x4fadfb])),_0x3b0782=_0x2c6332['viewOrder'][_0x26771c(0xa1)](_0x3f0794=>_0x2c6332['views'][_0x3f0794]);return{'id':_0x2c6332['id'],'name':_0x2c6332[_0x26771c(0x1a1)],'formulaName':this['getFormulaName'](),'primaryFieldId':_0x2c6332[_0x26771c(0xcf)],'fieldIds':_0x30fed6,'viewIds':_0x3b0782,'recordCount':this[_0x26771c(0xea)]()[_0x26771c(0x171)],'fields':_0x30fed6['map'](_0x24037a=>{const _0x2a5b45=_0x26771c;let _0x51c2ce=_0x2c6332[_0x2a5b45(0x114)][_0x24037a];return{'id':_0x51c2ce['id'],'name':_0x51c2ce[_0x2a5b45(0x1a1)],'type':_0x51c2ce[_0x2a5b45(0x11a)],'config':_0x51c2ce[_0x2a5b45(0x1bd)],'readonly':_0x51c2ce[_0x2a5b45(0xc2)],'description':_0x51c2ce['description']};}),'views':_0x3b0782[_0x26771c(0x1bc)](_0x1cffe7=>{const _0x2d88d4=_0x26771c;let _0x83f87f=_0x2c6332[_0x2d88d4(0x1ae)][_0x1cffe7];return{'id':_0x83f87f['id'],'name':_0x83f87f['name'],'type':_0x83f87f[_0x2d88d4(0x11a)]};})};}[_0x324e98(0x1cd)](){const _0x78f858=_0x324e98;let _0x402f7c=this[_0x78f858(0xfa)][_0x78f858(0x89)]()[_0x78f858(0xf7)]()[_0x78f858(0xde)][this[_0x78f858(0x148)]];if(!_0x402f7c)throw Error(_0x78f858(0x1a8)+this[_0x78f858(0x148)]+_0x78f858(0x132));return _0x402f7c;}[_0x324e98(0xea)](_0x499670={}){const _0x599321=_0x324e98;let _0x1c7e40=this[_0x599321(0xfa)][_0x599321(0x89)]()[_0x599321(0xf7)](),_0x2a3d06=this[_0x599321(0x1cd)]();if(_0x499670['viewId']){let _0x11776c=this['_projectionService'][_0x599321(0x1b4)](_0x1c7e40,this['_tableId'],_0x499670[_0x599321(0x135)]);if(_0x599321(0x184)in _0x11776c&&Array[_0x599321(0x195)](_0x11776c[_0x599321(0x184)]))return _0x11776c[_0x599321(0x184)][_0x599321(0x1bc)](_0x32f076=>_0x32f076[_0x599321(0x124)]);}return(_0x2a3d06[_0x599321(0x15b)]?_0x2a3d06[_0x599321(0x15b)][_0x599321(0x1bc)](_0x5a37ce=>_0x2a3d06[_0x599321(0xfe)][_0x5a37ce]):Object['values'](_0x2a3d06[_0x599321(0xfe)])[_0x599321(0x10e)]((_0x14893a,_0x5a7dbc)=>_0x14893a['orderKey'][_0x599321(0x153)](_0x5a7dbc['orderKey'])))[_0x599321(0xa1)](_0x57af46=>_0x57af46)['map'](_0x208499=>_0x208499['id']);}};Z=z([R(0x3,_0x59e8d4),R(0x4,_0x2a433e),R(0x5,_0x21a278)],Z);function vt(_0x58b6da,_0x4f5844){const _0x6b72b9=_0x324e98;let _0x2e6c98=Math[_0x6b72b9(0x106)](0x0,_0x4f5844['offset']??0x0);return _0x4f5844['limit']==null?_0x58b6da[_0x6b72b9(0xc3)](_0x2e6c98):_0x58b6da[_0x6b72b9(0xc3)](_0x2e6c98,_0x2e6c98+Math[_0x6b72b9(0x106)](0x0,_0x4f5844[_0x6b72b9(0xdd)]));}function yt(_0x524a3b,_0x3e3bcf,_0x47965f=[]){const _0x55f2c5=_0x324e98;return _0x47965f[_0x55f2c5(0x171)]?[..._0x524a3b]['sort']((_0x4e0488,_0x500ef7)=>{const _0x497385=_0x55f2c5;for(let _0x4babd0 of _0x47965f){var _0x3fc365;let _0x3349f8=_0x4babd0['direction']===_0x55dadd['DESC']?-0x1:0x1,_0x23e633=bt(_0x4e0488[_0x497385(0xe7)][_0x4babd0[_0x497385(0xfc)]],_0x500ef7[_0x497385(0xe7)][_0x4babd0['fieldId']],(_0x3fc365=_0x3e3bcf[_0x497385(0x114)][_0x4babd0[_0x497385(0xfc)]])==null?void 0x0:_0x3fc365[_0x497385(0x11a)]);if(_0x23e633!==0x0)return _0x23e633*_0x3349f8;}return String(_0x4e0488['orderKey']??_0x4e0488['id'])[_0x497385(0x153)](String(_0x500ef7[_0x497385(0xd3)]??_0x500ef7['id']));}):_0x524a3b;}function bt(_0x3b9579,_0x632d14,_0x4840dc){const _0x112ad9=_0x324e98;return _0x3b9579==null&&_0x632d14==null?0x0:_0x3b9579==null?-0x1:_0x632d14==null?0x1:typeof _0x3b9579==_0x112ad9(0x11d)&&typeof _0x632d14==_0x112ad9(0x11d)?_0x3b9579-_0x632d14:_0x4840dc===_0x1a1896[_0x112ad9(0x1d0)]?Number(_0x3b9579)-Number(_0x632d14):String(_0x3b9579)['localeCompare'](String(_0x632d14));}function xt(_0x4e4087,_0x77b357,_0x28689d){const _0x4c4f6b=_0x324e98;var _0x15272d;if(!_0x28689d||!((_0x15272d=_0x28689d[_0x4c4f6b(0xb2)])!=null&&_0x15272d['length']))return!0x0;let {conjunction:_0x1399b1=_0x5e1240['OR'],conditions:_0x5f4c63}=_0x28689d;return _0x1399b1===_0x5e1240[_0x4c4f6b(0x1c0)]&&_0x5f4c63[_0x4c4f6b(0x171)]>0x1?_0x5f4c63['every'](_0x478732=>St(_0x4e4087,_0x77b357,_0x478732)):_0x5f4c63[_0x4c4f6b(0xd2)](_0x4f2921=>St(_0x4e4087,_0x77b357,_0x4f2921));}function St(_0x418c93,_0x17bb73,_0x43c2e3){const _0x4d15c7=_0x324e98;let _0x3f9386=_0x418c93['values'][_0x43c2e3['fieldId']],_0x5dcd55=_0x17bb73[_0x4d15c7(0x114)][_0x43c2e3[_0x4d15c7(0xfc)]];if(Ct(_0x43c2e3)){let _0x397f03=wt(_0x43c2e3)[_0x4d15c7(0xe8)](String(_0x3f9386??''));return _0x43c2e3[_0x4d15c7(0x12b)]===_0x4d15c7(0x1c8)?_0x397f03:!_0x397f03;}return!_0x5dcd55||_0x57a641(_0x3f9386,_0x43c2e3[_0x4d15c7(0x12b)],_0x43c2e3[_0x4d15c7(0xa9)],_0x5dcd55);}function Ct(_0x223a44){const _0x14df76=_0x324e98;return _0x223a44[_0x14df76(0x12b)]==='matches'||_0x223a44[_0x14df76(0x12b)]==='notMatches';}function wt(_0x1c43b6){const _0x573cc4=_0x324e98;let _0x4c12f0=String(_0x1c43b6['value']??'');if(_0x4c12f0[_0x573cc4(0x171)]>0x200)throw Error(_0x573cc4(0x122));try{return new RegExp(_0x4c12f0,_0x1c43b6[_0x573cc4(0xf4)]?void 0x0:'i');}catch(_0x2f5fce){throw Error(_0x573cc4(0x117)+_0x4c12f0+'.\x20'+(_0x2f5fce instanceof Error?_0x2f5fce[_0x573cc4(0x1a7)]:String(_0x2f5fce)));}}function Tt(_0x555b38,_0x524bfe,_0x166a33){const _0x4f178e=_0x324e98;if(_0x166a33[_0x4f178e(0x11a)]!==_0x4f178e(0x126)&&_0x166a33[_0x4f178e(0x11a)]!=='custom'){var _0x4d2e7f;if(_0x166a33[_0x4f178e(0x11a)]===_0x4a8d70[_0x4f178e(0xb9)]){var _0x1c9e9e;let _0xec3541=[((_0x1c9e9e=_0x166a33[_0x4f178e(0x114)])==null||(_0x1c9e9e=_0x1c9e9e[0x0])==null?void 0x0:_0x1c9e9e['id'])??_0x555b38[_0x4f178e(0xcf)],..._0x166a33['visibleCardFieldIds']??[]];return Array['from'](new Set(_0xec3541[_0x4f178e(0xa1)](_0x5a034b=>!!_0x555b38[_0x4f178e(0x114)][_0x5a034b])));}if((_0x4d2e7f=_0x166a33[_0x4f178e(0x114)])!=null&&_0x4d2e7f['length'])return _0x166a33[_0x4f178e(0x114)]['map'](_0x42109a=>_0x42109a['id'])[_0x4f178e(0xa1)](_0x5b26fd=>{const _0x3e85b8=_0x4f178e;var _0x2dca29;return!(!_0x555b38[_0x3e85b8(0x114)][_0x5b26fd]||_0x524bfe!=null&&(_0x2dca29=_0x524bfe[_0x3e85b8(0x1a0)])!=null&&(_0x2dca29=_0x2dca29[_0x5b26fd])!=null&&_0x2dca29[_0x3e85b8(0x143)]);});}return _0x555b38[_0x4f178e(0x192)]['filter'](_0x258bab=>{const _0x3a6376=_0x4f178e;var _0x3e90fd;return!(!_0x555b38['fields'][_0x258bab]||_0x524bfe!=null&&(_0x3e90fd=_0x524bfe[_0x3a6376(0x1a0)])!=null&&(_0x3e90fd=_0x3e90fd[_0x258bab])!=null&&_0x3e90fd[_0x3a6376(0x143)]);});}let Q=class extends _0x258106[_0x324e98(0xfd)]{constructor(_0x5746bb,_0x2aa202,_0x345e2f,_0x18abb5,_0x3788c4){const _0xb56a1e=_0x324e98;super(),this[_0xb56a1e(0xfa)]=_0x5746bb,this[_0xb56a1e(0x12e)]=_0x2aa202,this[_0xb56a1e(0xcd)]=_0x345e2f,this['_commandService']=_0x18abb5,this[_0xb56a1e(0xbb)]=_0x3788c4;}[_0x324e98(0x89)](){const _0x4e3efb=_0x324e98;return this[_0x4e3efb(0xfa)];}[_0x324e98(0x1b2)](){const _0x5d475d=_0x324e98;return this[_0x5d475d(0xfa)]['getUnitId']();}[_0x324e98(0x1a5)](){const _0x50ee42=_0x324e98;return new at(this[_0x50ee42(0x1b2)](),this[_0x50ee42(0xa5)],this[_0x50ee42(0xbb)]);}['save'](){const _0x119e29=_0x324e98;return this[_0x119e29(0xcd)]['saveUnit'](this[_0x119e29(0x1b2)]())??_0x315048['deepClone'](this['_base']['getSnapshot']());}['getName'](){const _0x99c60f=_0x324e98;return this[_0x99c60f(0xfa)][_0x99c60f(0xf7)]()[_0x99c60f(0x1a1)];}[_0x324e98(0x182)](_0x1ad6f0){const _0x55e4e4=_0x324e98;this[_0x55e4e4(0xa5)][_0x55e4e4(0x1cb)](_0x133e43['id'],{'unitId':this['getId'](),'name':_0x1ad6f0});}['getTables'](){const _0x341b52=_0x324e98;let _0x49f9c9=this[_0x341b52(0xfa)][_0x341b52(0xf7)]();return _0x49f9c9[_0x341b52(0xee)]['map'](_0xf7016=>_0x49f9c9[_0x341b52(0xde)][_0xf7016])['filter'](_0xc909b6=>_0xc909b6)[_0x341b52(0x1bc)](_0x4db082=>this[_0x341b52(0x12e)][_0x341b52(0x18a)](Z,this,_0x4db082['id'],this['_injector']));}['getTableById'](_0x5c7d54){const _0x7dc830=_0x324e98;let _0x57429f=this['_base']['getSnapshot']()[_0x7dc830(0xde)][_0x5c7d54];return _0x57429f?this[_0x7dc830(0x12e)][_0x7dc830(0x18a)](Z,this,_0x57429f['id'],this['_injector']):null;}[_0x324e98(0x131)](_0x392272){const _0x549521=_0x324e98;let _0x48de5d=this[_0x549521(0xfa)]['getSnapshot'](),_0x1ae93f=Object[_0x549521(0xe7)](_0x48de5d[_0x549521(0xde)])[_0x549521(0x16e)](_0x29432d=>_0x29432d[_0x549521(0x1a1)]===_0x392272);return _0x1ae93f?this['_injector'][_0x549521(0x18a)](Z,this,_0x1ae93f['id'],this[_0x549521(0x12e)]):null;}['insertTable'](_0x443d53,_0x253c49){const _0x11b6c7=_0x324e98;let _0x55f91d=_0xc0ffa4({'id':_0x108320(),'name':_0x443d53,..._0x253c49==null?void 0x0:_0x253c49[_0x11b6c7(0xd7)],'primaryFieldName':_0x253c49==null?void 0x0:_0x253c49[_0x11b6c7(0x172)]}),_0x1a979a=_0x315048[_0x11b6c7(0x1a3)](_0x55f91d,(_0x253c49==null?void 0x0:_0x253c49['table'])??{}),_0x4b1ae9=_0x31a4b0(this[_0x11b6c7(0xfa)]['getSnapshot'](),_0x1a979a[_0x11b6c7(0x1a1)]);if(!_0x4b1ae9[_0x11b6c7(0x1b3)])throw Error(_0x11b6c7(0x18e)+_0x1a979a[_0x11b6c7(0x1a1)]+_0x11b6c7(0x10d)+_0x430650+'\x20'+_0x4b1ae9[_0x11b6c7(0x1cc)]);if(!this['_commandService'][_0x11b6c7(0x1cb)](_0x38665f['id'],{'unitId':this[_0x11b6c7(0xfa)][_0x11b6c7(0x186)](),'table':_0x1a979a,'index':_0x253c49==null?void 0x0:_0x253c49['index']}))throw Error(_0x11b6c7(0xdb)+_0x443d53+'\x22.');return this[_0x11b6c7(0x12e)][_0x11b6c7(0x18a)](Z,this,_0x1a979a['id'],this[_0x11b6c7(0x12e)]);}['deleteTable'](_0x11739a){const _0x22ccd4=_0x324e98;let _0x4f1b60=typeof _0x11739a=='string'?_0x11739a:_0x11739a[_0x22ccd4(0x1b2)]();if(!this['_commandService'][_0x22ccd4(0x1cb)](_0x5d9ba2['id'],{'unitId':this['_base'][_0x22ccd4(0x186)](),'tableId':_0x4f1b60}))throw Error(_0x22ccd4(0x13d)+_0x4f1b60+'\x22.');return!0x0;}[_0x324e98(0x88)](_0x36a91e,_0x461b25){const _0x19a71e=_0x324e98;let _0x4ee960=this['_base'][_0x19a71e(0xf7)](),_0x21a8ed=typeof _0x36a91e==_0x19a71e(0x1a6)?_0x36a91e:_0x36a91e[_0x19a71e(0x1b2)](),_0x23a5d9=_0x4ee960[_0x19a71e(0xde)][_0x21a8ed];if(!_0x23a5d9)throw Error('[FBase]:\x20table\x20\x22'+_0x21a8ed+'\x22\x20does\x20not\x20exist.');let _0x8cc425=_0x4ee960[_0x19a71e(0xee)][_0x19a71e(0x181)](_0x21a8ed)+0x1,_0x3f3ba3=_0x108320(),_0x28e399=_0x2f455c(_0x23a5d9,{'id':_0x3f3ba3,'name':_0x2630ce(_0x4ee960,_0x23a5d9[_0x19a71e(0x1a1)]+'\x20Copy'),'includeRecords':(_0x461b25==null?void 0x0:_0x461b25[_0x19a71e(0x196)])??!0x1,'regenerateViewIds':(_0x461b25==null?void 0x0:_0x461b25['regenerateViewIds'])??!0x1});if(!this['_commandService'][_0x19a71e(0x1cb)](_0x38665f['id'],{'unitId':this['_base'][_0x19a71e(0x186)](),'table':_0x28e399,'index':_0x8cc425}))throw Error('Failed\x20to\x20duplicate\x20table\x20\x22'+_0x21a8ed+'\x22.');return this[_0x19a71e(0x12e)][_0x19a71e(0x18a)](Z,this,_0x28e399['id'],this['_injector']);}['getSchema'](){const _0x132d35=_0x324e98;let _0x589036=this[_0x132d35(0xfa)][_0x132d35(0xf7)]();return{'id':_0x589036['id'],'name':_0x589036[_0x132d35(0x1a1)],'tables':this['getTables']()['map'](_0x5739be=>_0x5739be[_0x132d35(0x17c)]())};}};Q=z([R(0x1,_0x1dbb04(_0x43084c)),R(0x2,_0x5ec6b8),R(0x3,_0x59e8d4),R(0x4,_0x2a433e)],Q);var Et=class extends _0x2fe489{[_0x324e98(0xad)](){const _0x2e5aec=_0x324e98;this[_0x2e5aec(0x10c)](),this[_0x2e5aec(0xd6)]();}[_0x324e98(0x104)](_0x331b90={},_0x106fa2){const _0x1d965c=_0x324e98;let _0x2d2554=this['_univerInstanceService'][_0x1d965c(0xae)](_0x90d380[_0x1d965c(0x9a)],_0x331b90,_0x106fa2);return this[_0x1d965c(0x12e)][_0x1d965c(0x18a)](Q,_0x2d2554);}[_0x324e98(0xdc)](){const _0x42c50d=_0x324e98;let _0x16e22a=this[_0x42c50d(0x1a2)]['getCurrentUnitOfType'](_0x90d380[_0x42c50d(0x9a)]);return _0x16e22a?this['_injector'][_0x42c50d(0x18a)](Q,_0x16e22a):null;}['getBase'](_0x6d49d8){const _0x46a74e=_0x324e98;let _0x350fae=this[_0x46a74e(0x1a2)][_0x46a74e(0x115)](_0x6d49d8,_0x90d380[_0x46a74e(0x9a)]);return _0x350fae?this['_injector'][_0x46a74e(0x18a)](Q,_0x350fae):null;}[_0x324e98(0xc9)](){const _0x33ef7e=_0x324e98;return this[_0x33ef7e(0x1a2)][_0x33ef7e(0xf8)](_0x90d380[_0x33ef7e(0x9a)])[_0x33ef7e(0x1bc)](_0x5293fe=>this[_0x33ef7e(0x12e)]['createInstance'](Q,_0x5293fe));}['_initBaseAfterEvents'](){const _0x4cda4c=_0x324e98;this[_0x4cda4c(0x8a)](this[_0x4cda4c(0x1c3)](this[_0x4cda4c(0x1ba)][_0x4cda4c(0xc4)],()=>this['_commandService'][_0x4cda4c(0x193)]((_0x5580dc,_0x43ffdf)=>{const _0x2d5545=_0x4cda4c;var _0x94646;if(!$(_0x5580dc,_0x2d4f2e))return;let _0x30593f=_0x5580dc['params'];if(!((_0x94646=_0x30593f['hierarchyChanges'])!=null&&_0x94646['length']))return;let _0x19852e=this[_0x2d5545(0x89)](_0x30593f[_0x2d5545(0x17d)]),_0x10d147=_0x19852e==null?void 0x0:_0x19852e[_0x2d5545(0x99)](_0x30593f[_0x2d5545(0x16b)][0x0]['tableId']);if(!_0x19852e||!_0x10d147)return;let _0x72404e={'base':_0x19852e,'table':_0x10d147,'changes':_0x30593f['hierarchyChanges'],'source':_0x43ffdf!=null&&_0x43ffdf[_0x2d5545(0x19c)]?_0x13d834['Remote']:_0x30593f[_0x2d5545(0x1b8)]??_0x13d834['UI']};this[_0x2d5545(0x189)](this['Event'][_0x2d5545(0xc4)],_0x72404e);}))),this[_0x4cda4c(0x8a)](this['registerEventHandler'](this[_0x4cda4c(0x1ba)][_0x4cda4c(0x170)],()=>this[_0x4cda4c(0xa5)][_0x4cda4c(0x193)](_0xb1fec5=>{const _0x36b328=_0x4cda4c;if(_0xb1fec5['id']!==_0x38665f['id'])return;let {unitId:_0x54ff0a,table:_0xbda6c8,index:_0x5bf98c}=_0xb1fec5[_0x36b328(0x96)],_0x49923e=this[_0x36b328(0x89)](_0x54ff0a);if(!_0x49923e)return;let _0x248555={'base':_0x49923e,'table':_0xbda6c8,'index':_0x5bf98c};this[_0x36b328(0x189)](this['Event'][_0x36b328(0x170)],_0x248555);}))),this[_0x4cda4c(0x8a)](this[_0x4cda4c(0x1c3)](this[_0x4cda4c(0x1ba)][_0x4cda4c(0x178)],()=>this[_0x4cda4c(0xa5)][_0x4cda4c(0x193)](_0x4ef5be=>{const _0x6d6af2=_0x4cda4c;if(_0x4ef5be['id']!==_0x53f941['id'])return;let {unitId:_0x3ccebf,tableId:_0x4ec210,field:_0x5f5316,index:_0x47bcd0,viewIndexes:_0x5e2838}=_0x4ef5be[_0x6d6af2(0x96)],_0x4c1405=this[_0x6d6af2(0x89)](_0x3ccebf);if(!_0x4c1405)return;let _0x4811d2=_0x4c1405['getTableById'](_0x4ec210);if(!_0x4811d2)return;let _0x343d43={'base':_0x4c1405,'table':_0x4811d2,'field':_0x5f5316,'index':_0x47bcd0,'viewIndexes':_0x5e2838};this[_0x6d6af2(0x189)](this['Event'][_0x6d6af2(0x178)],_0x343d43);}))),this[_0x4cda4c(0x8a)](this[_0x4cda4c(0x1c3)](this[_0x4cda4c(0x1ba)]['BaseTableRecordCreated'],()=>this[_0x4cda4c(0xa5)][_0x4cda4c(0x193)](_0x385889=>{const _0x520c0b=_0x4cda4c;if(_0x385889['id']!==_0x17b54e['id']&&_0x385889['id']!==_0x82de00['id'])return;let _0x3e2577=_0x385889[_0x520c0b(0x96)],{unitId:_0x20e3be,tableId:_0x381e17}=_0x3e2577,_0x15bbf2=_0x3e2577['records']??[_0x3e2577[_0x520c0b(0xaf)]],_0xc3464=this['getBase'](_0x20e3be);if(!_0xc3464)return;let _0x42e6a0=_0xc3464[_0x520c0b(0x99)](_0x381e17);if(!_0x42e6a0)return;let _0x3edec1={'base':_0xc3464,'table':_0x42e6a0,'records':_0x15bbf2};this[_0x520c0b(0x189)](this[_0x520c0b(0x1ba)][_0x520c0b(0x1c2)],_0x3edec1);}))),this[_0x4cda4c(0x8a)](this['registerEventHandler'](this[_0x4cda4c(0x1ba)][_0x4cda4c(0x17e)],()=>this['_commandService'][_0x4cda4c(0x193)](_0x37ac93=>{const _0x5d5af0=_0x4cda4c;if(_0x37ac93['id']!==_0x1886e9['id'])return;let {unitId:_0x2c711a,tableId:_0x4e0a24,view:_0x348af8,index:_0x2ad355}=_0x37ac93['params'],_0x5a492d=this['getBase'](_0x2c711a);if(!_0x5a492d)return;let _0x55be20=_0x5a492d[_0x5d5af0(0x99)](_0x4e0a24);if(!_0x55be20)return;let _0x5b5f1d={'base':_0x5a492d,'table':_0x55be20,'view':_0x348af8,'index':_0x2ad355};this[_0x5d5af0(0x189)](this[_0x5d5af0(0x1ba)][_0x5d5af0(0x17e)],_0x5b5f1d);}))),this['disposeWithMe'](this[_0x4cda4c(0x1c3)](this[_0x4cda4c(0x1ba)][_0x4cda4c(0xca)],()=>this[_0x4cda4c(0xa5)][_0x4cda4c(0x193)](_0x16af97=>{const _0x5a45be=_0x4cda4c;if(_0x16af97['id']!==_0x5a2ebc['id'])return;let {unitId:_0x3acdd2,tableId:_0xc41c2e,recordId:_0x441d66,fieldId:_0x8b2b6,value:_0x245d96}=_0x16af97[_0x5a45be(0x96)],_0x4456eb=this[_0x5a45be(0x89)](_0x3acdd2);if(!_0x4456eb)return;let _0x127e09=_0x4456eb[_0x5a45be(0x99)](_0xc41c2e);if(!_0x127e09)return;let _0x122e91=_0x127e09[_0x5a45be(0x136)](_0x8b2b6);if(!_0x122e91)return;let _0x46ad6b=_0x127e09['getRecordById'](_0x441d66);if(!_0x46ad6b)return;let _0x51385d={'base':_0x4456eb,'table':_0x127e09,'field':_0x122e91,'record':_0x46ad6b,'value':_0x245d96};this[_0x5a45be(0x189)](this[_0x5a45be(0x1ba)][_0x5a45be(0xca)],_0x51385d);})));}['_initBaseBeforeEvents'](){const _0x4e3aff=_0x324e98;this[_0x4e3aff(0x8a)](this[_0x4e3aff(0x1c3)](this['Event']['BeforeBaseHierarchyChange'],()=>this[_0x4e3aff(0xa5)][_0x4e3aff(0x1b1)](_0x272df7=>{const _0x5939fb=_0x4e3aff;if($(_0x272df7,_0x3afdde)){let {unitId:_0x159b41,tableId:_0x3f9595,patches:_0x51dfd3,source:_0x2e1eed=_0x13d834['UI']}=_0x272df7[_0x5939fb(0x96)],_0x340d1e=this[_0x5939fb(0x18b)](_0x159b41,_0x3f9595);if(!_0x340d1e)return;this[_0x5939fb(0xf6)](_0x340d1e['base'],_0x340d1e[_0x5939fb(0xd7)],_0x53fd42(_0x340d1e[_0x5939fb(0xd7)]['getTable'](),_0x51dfd3),_0x2e1eed);return;}if($(_0x272df7,_0x5307f6)){let {unitId:_0x2d4019,tableId:_0x85ed01,patches:_0x2ed6de,source:_0x1e68a2=_0x13d834['UI']}=_0x272df7['params'],_0x136565=this['_getHierarchyEventContext'](_0x2d4019,_0x85ed01);if(!_0x136565)return;let _0x1d0989=_0x136565[_0x5939fb(0xd7)][_0x5939fb(0x12a)]();this[_0x5939fb(0xf6)](_0x136565[_0x5939fb(0x151)],_0x136565[_0x5939fb(0xd7)],_0x53fd42(_0x1d0989,_0x577e33(_0x1d0989,_0x2ed6de)),_0x1e68a2);return;}if($(_0x272df7,_0x17b54e)){let _0x4e5657=_0x272df7[_0x5939fb(0x96)],_0xecbfdb=this[_0x5939fb(0x18b)](_0x4e5657[_0x5939fb(0x17d)],_0x4e5657[_0x5939fb(0x13c)]);if(!_0xecbfdb)return;this[_0x5939fb(0xf6)](_0xecbfdb[_0x5939fb(0x151)],_0xecbfdb[_0x5939fb(0xd7)],_0x4e95ce(_0xecbfdb[_0x5939fb(0xd7)][_0x5939fb(0x12a)](),[_0x4e5657[_0x5939fb(0xaf)]]),_0x4e5657[_0x5939fb(0x1b8)]??_0x13d834['UI']);return;}if($(_0x272df7,_0x82de00)){let _0x36aee3=_0x272df7[_0x5939fb(0x96)],_0x4c9e23=this['_getHierarchyEventContext'](_0x36aee3['unitId'],_0x36aee3[_0x5939fb(0x13c)]);if(!_0x4c9e23)return;this[_0x5939fb(0xf6)](_0x4c9e23[_0x5939fb(0x151)],_0x4c9e23[_0x5939fb(0xd7)],_0x4e95ce(_0x4c9e23['table'][_0x5939fb(0x12a)](),_0x36aee3[_0x5939fb(0xfe)]),_0x36aee3[_0x5939fb(0x1b8)]??_0x13d834['UI']);return;}if($(_0x272df7,_0x1336ed)){let _0x45b9ad=_0x272df7[_0x5939fb(0x96)],_0x4b3199=this['_getHierarchyEventContext'](_0x45b9ad[_0x5939fb(0x17d)],_0x45b9ad[_0x5939fb(0x13c)]);if(!_0x4b3199)return;this[_0x5939fb(0xf6)](_0x4b3199[_0x5939fb(0x151)],_0x4b3199[_0x5939fb(0xd7)],_0x4e95ce(_0x4b3199['table'][_0x5939fb(0x12a)](),[_0x45b9ad[_0x5939fb(0xaf)]]),_0x45b9ad[_0x5939fb(0x1b8)]??_0x13d834['UI']);return;}if($(_0x272df7,_0x362d9f)){let _0x521110=_0x272df7[_0x5939fb(0x96)],_0xb84c3f=this[_0x5939fb(0x18b)](_0x521110[_0x5939fb(0x17d)],_0x521110[_0x5939fb(0x13c)]);if(!_0xb84c3f)return;let _0x1bfdfb=_0xb84c3f[_0x5939fb(0xd7)][_0x5939fb(0x12a)](),_0x23df76=_0x521110[_0x5939fb(0xfc)]??_0x1e14c8(_0x1bfdfb),_0x663259=_0x477d67(_0x1bfdfb,_0x23df76)[_0x5939fb(0xa0)][_0x5939fb(0x134)](_0x521110[_0x5939fb(0x124)])??null;this[_0x5939fb(0xf6)](_0xb84c3f[_0x5939fb(0x151)],_0xb84c3f['table'],[{'tableId':_0x521110[_0x5939fb(0x13c)],'fieldId':_0x23df76,'recordId':_0x521110['recordId'],'oldParentRecordId':_0x663259,'parentRecordId':_0x521110[_0x5939fb(0xe1)]}],_0x521110[_0x5939fb(0x1b8)]??_0x13d834['UI']);return;}if($(_0x272df7,_0x5c4ac9)){let _0xbabe2a=_0x272df7[_0x5939fb(0x96)],_0x2b51d1=this['_getHierarchyEventContext'](_0xbabe2a[_0x5939fb(0x17d)],_0xbabe2a[_0x5939fb(0x13c)]);if(!_0x2b51d1)return;let _0x1d63ec=_0xbabe2a[_0x5939fb(0xfc)]??_0x1e14c8(_0x2b51d1[_0x5939fb(0xd7)][_0x5939fb(0x12a)]());this['_fireBeforeHierarchyChange'](_0x2b51d1['base'],_0x2b51d1[_0x5939fb(0xd7)],[{'tableId':_0xbabe2a['tableId'],'fieldId':_0x1d63ec,'recordId':_0xbabe2a[_0x5939fb(0xaf)]['id'],'oldParentRecordId':null,'parentRecordId':_0xbabe2a[_0x5939fb(0xe1)]}],_0xbabe2a[_0x5939fb(0x1b8)]??_0x13d834['UI']);return;}if($(_0x272df7,_0x12a807)){let _0x3c96f3=_0x272df7[_0x5939fb(0x96)],_0x523de7=this['_getHierarchyEventContext'](_0x3c96f3[_0x5939fb(0x17d)],_0x3c96f3[_0x5939fb(0x13c)]);if(!_0x523de7)return;this['_fireBeforeHierarchyChange'](_0x523de7[_0x5939fb(0x151)],_0x523de7[_0x5939fb(0xd7)],_0x5c4df9(_0x523de7[_0x5939fb(0xd7)][_0x5939fb(0x12a)](),[_0x3c96f3[_0x5939fb(0x124)]]),_0x3c96f3['source']??_0x13d834['UI']);return;}if($(_0x272df7,_0x2e9597)){let _0x5b1a42=_0x272df7['params'],_0x547bff=this['_getHierarchyEventContext'](_0x5b1a42[_0x5939fb(0x17d)],_0x5b1a42[_0x5939fb(0x13c)]);if(!_0x547bff)return;this[_0x5939fb(0xf6)](_0x547bff['base'],_0x547bff[_0x5939fb(0xd7)],_0x5c4df9(_0x547bff['table'][_0x5939fb(0x12a)](),_0x5b1a42['recordIds']),_0x5b1a42[_0x5939fb(0x1b8)]??_0x13d834['UI']);return;}if(!$(_0x272df7,_0x5a2ebc))return;let _0x53f0cd=_0x272df7['params'],_0x1ba813=this[_0x5939fb(0x18b)](_0x53f0cd[_0x5939fb(0x17d)],_0x53f0cd['tableId']);if(!_0x1ba813)return;let _0x1e0d0e=_0x1ba813[_0x5939fb(0xd7)]['getTable']();if(!_0x5bb53c(_0x1e0d0e)[_0x5939fb(0xb4)](_0x53f0cd[_0x5939fb(0xfc)]))return;let _0x24b3eb=_0x477d67(_0x1e0d0e,_0x53f0cd[_0x5939fb(0xfc)])['parentByRecordId'][_0x5939fb(0x134)](_0x53f0cd[_0x5939fb(0x124)])??null,_0x3a51b0=_0x4a1603(_0x53f0cd[_0x5939fb(0xa9)])[0x0]??null;_0x24b3eb!==_0x3a51b0&&this[_0x5939fb(0xf6)](_0x1ba813['base'],_0x1ba813[_0x5939fb(0xd7)],[{'tableId':_0x53f0cd[_0x5939fb(0x13c)],'fieldId':_0x53f0cd[_0x5939fb(0xfc)],'recordId':_0x53f0cd[_0x5939fb(0x124)],'oldParentRecordId':_0x24b3eb,'parentRecordId':_0x3a51b0}],_0x53f0cd[_0x5939fb(0x1b8)]??_0x13d834['UI']);}))),this[_0x4e3aff(0x8a)](this[_0x4e3aff(0x1c3)](this[_0x4e3aff(0x1ba)][_0x4e3aff(0x9b)],()=>this[_0x4e3aff(0xa5)][_0x4e3aff(0x1b1)](_0x887bd0=>{const _0x53edf0=_0x4e3aff;if(_0x887bd0['id']!==_0x38665f['id'])return;let {unitId:_0x41dad3,table:_0x43d709,index:_0x1dd562}=_0x887bd0[_0x53edf0(0x96)],_0x4ed556=this['getBase'](_0x41dad3);if(!_0x4ed556)return;let _0x1eaaa5={'base':_0x4ed556,'table':_0x43d709,'index':_0x1dd562};if(this[_0x53edf0(0x189)](this[_0x53edf0(0x1ba)][_0x53edf0(0x9b)],_0x1eaaa5),_0x1eaaa5[_0x53edf0(0xd8)])throw new _0x1d35d3();}))),this[_0x4e3aff(0x8a)](this[_0x4e3aff(0x1c3)](this['Event'][_0x4e3aff(0x12c)],()=>this[_0x4e3aff(0xa5)][_0x4e3aff(0x1b1)](_0x320dcb=>{const _0x2c8195=_0x4e3aff;if(_0x320dcb['id']!==_0x53f941['id'])return;let {unitId:_0x5d1c4b,tableId:_0x5c0ed2,field:_0x1bfefe,index:_0x219f1a,viewIndexes:_0x3afbf4}=_0x320dcb['params'],_0x415a8a=this[_0x2c8195(0x89)](_0x5d1c4b);if(!_0x415a8a)return;let _0x2d811e=_0x415a8a[_0x2c8195(0x99)](_0x5c0ed2);if(!_0x2d811e)return;let _0x1586d6={'base':_0x415a8a,'table':_0x2d811e,'field':_0x1bfefe,'index':_0x219f1a,'viewIndexes':_0x3afbf4};if(this[_0x2c8195(0x189)](this[_0x2c8195(0x1ba)][_0x2c8195(0x12c)],_0x1586d6),_0x1586d6[_0x2c8195(0xd8)])throw new _0x1d35d3();}))),this[_0x4e3aff(0x8a)](this[_0x4e3aff(0x1c3)](this[_0x4e3aff(0x1ba)][_0x4e3aff(0x14d)],()=>this['_commandService'][_0x4e3aff(0x1b1)](_0x682678=>{const _0x5e165c=_0x4e3aff;if(_0x682678['id']!==_0x17b54e['id']&&_0x682678['id']!==_0x82de00['id'])return;let _0x333fb1=_0x682678[_0x5e165c(0x96)],{unitId:_0xd663f6,tableId:_0x308f77}=_0x333fb1,_0x301e6d=_0x333fb1['records']??[_0x333fb1[_0x5e165c(0xaf)]],_0x5d3254=this[_0x5e165c(0x89)](_0xd663f6);if(!_0x5d3254)return;let _0x516240=_0x5d3254[_0x5e165c(0x99)](_0x308f77);if(!_0x516240)return;let _0x53d846={'base':_0x5d3254,'table':_0x516240,'records':_0x301e6d};if(this[_0x5e165c(0x189)](this['Event'][_0x5e165c(0x14d)],_0x53d846),_0x53d846[_0x5e165c(0xd8)])throw new _0x1d35d3();}))),this[_0x4e3aff(0x8a)](this[_0x4e3aff(0x1c3)](this[_0x4e3aff(0x1ba)][_0x4e3aff(0x164)],()=>this[_0x4e3aff(0xa5)][_0x4e3aff(0x1b1)](_0x3c0ce1=>{const _0x53f622=_0x4e3aff;if(_0x3c0ce1['id']!==_0x1886e9['id'])return;let {unitId:_0x140df1,tableId:_0x3e1973,view:_0x15c8a2,index:_0xf04d9c}=_0x3c0ce1[_0x53f622(0x96)],_0x49dec8=this[_0x53f622(0x89)](_0x140df1);if(!_0x49dec8)return;let _0x2714c4=_0x49dec8[_0x53f622(0x99)](_0x3e1973);if(!_0x2714c4)return;let _0x34ef4c={'base':_0x49dec8,'table':_0x2714c4,'view':_0x15c8a2,'index':_0xf04d9c};if(this[_0x53f622(0x189)](this[_0x53f622(0x1ba)][_0x53f622(0x164)],_0x34ef4c),_0x34ef4c['cancel'])throw new _0x1d35d3();}))),this['disposeWithMe'](this[_0x4e3aff(0x1c3)](this[_0x4e3aff(0x1ba)][_0x4e3aff(0x127)],()=>this['_commandService'][_0x4e3aff(0x1b1)](_0x37ad77=>{const _0x4dcd7d=_0x4e3aff;if(_0x37ad77['id']!==_0x5a2ebc['id'])return;let {unitId:_0x41e02b,tableId:_0xeecc5c,recordId:_0x3a4ecd,fieldId:_0x35e561,value:_0x327be4}=_0x37ad77[_0x4dcd7d(0x96)],_0x3bd3a7=this[_0x4dcd7d(0x89)](_0x41e02b);if(!_0x3bd3a7)return;let _0x4b6eda=_0x3bd3a7[_0x4dcd7d(0x99)](_0xeecc5c);if(!_0x4b6eda)return;let _0x34da1a=_0x4b6eda['getFieldById'](_0x35e561);if(!_0x34da1a)return;let _0x2a0b21=_0x4b6eda['getRecordById'](_0x3a4ecd);if(!_0x2a0b21)return;let _0x3417b4={'base':_0x3bd3a7,'table':_0x4b6eda,'field':_0x34da1a,'record':_0x2a0b21,'value':_0x327be4};if(this['fireEvent'](this[_0x4dcd7d(0x1ba)][_0x4dcd7d(0x127)],_0x3417b4),_0x3417b4[_0x4dcd7d(0xd8)])throw new _0x1d35d3();})));}[_0x324e98(0x18b)](_0x287b4d,_0x1d761d){const _0xd078ea=_0x324e98;let _0x3b8c42=this[_0xd078ea(0x89)](_0x287b4d),_0x12404e=_0x3b8c42==null?void 0x0:_0x3b8c42['getTableById'](_0x1d761d);return _0x3b8c42&&_0x12404e?{'base':_0x3b8c42,'table':_0x12404e}:null;}[_0x324e98(0xf6)](_0x44292c,_0x4e2743,_0x4ecef5,_0x1a5a6f){const _0x2899a6=_0x324e98;if(!_0x4ecef5[_0x2899a6(0x171)])return;let _0x5a9e76={'base':_0x44292c,'table':_0x4e2743,'changes':_0x4ecef5,'source':_0x1a5a6f};if(this[_0x2899a6(0x189)](this[_0x2899a6(0x1ba)][_0x2899a6(0x86)],_0x5a9e76),_0x5a9e76[_0x2899a6(0xd8)])throw new _0x1d35d3();}};function $(_0x48f3be,_0x4a724a){const _0x51f2fb=_0x324e98;return _0x48f3be['id']===_0x4a724a['id']&&_0x48f3be[_0x51f2fb(0x96)]!==void 0x0;}function _0x2f23(_0x33e89b,_0x2560f0){_0x33e89b=_0x33e89b-0x7c;const _0x5b9852=_0x5b98();let _0x2f23b9=_0x5b9852[_0x33e89b];return _0x2f23b9;}_0x2fe489[_0x324e98(0xb0)](Et);var Dt=class extends _0x117940{get[_0x324e98(0xb8)](){return _0x1a1896;}get[_0x324e98(0xa3)](){return _0x5e1240;}get[_0x324e98(0x93)](){return _0x2f7802;}get[_0x324e98(0x15d)](){return ot;}get['BaseViewType'](){return _0x4a8d70;}get['BaseConditionalColorTarget'](){return _0x549108;}get[_0x324e98(0xb3)](){return _0x1f248;}get[_0x324e98(0x19e)](){return _0x1c8b6a;}get['BaseSortDirection'](){return _0x55dadd;}get[_0x324e98(0x1d1)](){return _0x13d834;}get['BaseHierarchyErrorCode'](){return _0x1dd837;}get[_0x324e98(0x19d)](){return _0xd0b783;}get[_0x324e98(0xec)](){return _0x71b6be;}};_0x117940[_0x324e98(0xb0)](Dt);var Ot=class extends _0x51ec57{get[_0x324e98(0x170)](){const _0x17507f=_0x324e98;return _0x17507f(0x170);}get[_0x324e98(0x9b)](){const _0x18e5b5=_0x324e98;return _0x18e5b5(0x9b);}get[_0x324e98(0x178)](){const _0x388c69=_0x324e98;return _0x388c69(0x178);}get[_0x324e98(0x12c)](){return'BeforeBaseTableFieldCreate';}get['BaseTableRecordCreated'](){const _0x398e90=_0x324e98;return _0x398e90(0x1c2);}get['BeforeBaseTableRecordCreate'](){const _0x14897b=_0x324e98;return _0x14897b(0x14d);}get['BaseTableViewCreated'](){const _0x343a0d=_0x324e98;return _0x343a0d(0x17e);}get[_0x324e98(0x164)](){const _0x5f4549=_0x324e98;return _0x5f4549(0x164);}get[_0x324e98(0xca)](){const _0x1bda65=_0x324e98;return _0x1bda65(0xca);}get[_0x324e98(0x127)](){const _0xfe7d57=_0x324e98;return _0xfe7d57(0x127);}get[_0x324e98(0xc4)](){const _0x495eaa=_0x324e98;return _0x495eaa(0xc4);}get['BeforeBaseHierarchyChange'](){const _0x538eb2=_0x324e98;return _0x538eb2(0x86);}};_0x51ec57[_0x324e98(0xb0)](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 _0x3b2f37=_0x194d;(function(_0x2fe4d6,_0x575547){const _0x309140=_0x194d,_0x2fb67d=_0x2fe4d6();while(!![]){try{const _0x3bbe22=-parseInt(_0x309140(0x15a))/0x1+parseInt(_0x309140(0xdf))/0x2+parseInt(_0x309140(0xd7))/0x3+parseInt(_0x309140(0xe5))/0x4*(-parseInt(_0x309140(0x155))/0x5)+-parseInt(_0x309140(0xbf))/0x6+-parseInt(_0x309140(0x1b2))/0x7*(-parseInt(_0x309140(0x111))/0x8)+-parseInt(_0x309140(0x1b9))/0x9*(parseInt(_0x309140(0x127))/0xa);if(_0x3bbe22===_0x575547)break;else _0x2fb67d['push'](_0x2fb67d['shift']());}catch(_0x24fc0b){_0x2fb67d['push'](_0x2fb67d['shift']());}}}(_0x4d76,0x5a86e));import{ApplyBaseJson1Mutation as _0x34855e,BASE_TABLE_NAME_REQUIREMENTS as _0x2d6c44,BaseConditionalColorRuleUpdateType as _0x510c3e,BaseEventSource as _0x4d5524,BaseHierarchyErrorCode as _0x115291,BatchCreateBaseRecordsCommand as _0xcf9f8c,BatchDeleteBaseRecordsCommand as _0x5a7920,ChangeBaseFieldTypeCommand as _0x15b0fc,CreateBaseChildRecordCommand as _0x2a209d,CreateBaseFieldCommand as _0x174ba5,CreateBaseRecordCommand as _0x1193c8,CreateBaseTableCommand as _0x36d876,CreateBaseViewCommand as _0x1adb6d,DeleteBaseFieldCommand as _0x2fc3c0,DeleteBaseRecordCommand as _0x6344c7,DeleteBaseTableCommand as _0x337224,DeleteBaseViewCommand as _0x18125d,DuplicateBaseRecordCommand as _0x292c95,IBaseProjectionService as _0x1cb7d5,MoveBaseFieldCommand as _0x15b278,MoveBaseHierarchyRecordCommand as _0xd3c5c2,MoveBaseViewCommand as _0x37de2f,RenameBaseTableCommand as _0x1e32c6,RenameBaseViewCommand as _0xaefd70,SetBaseNameCommand as _0x8afdd0,SetBasePermissionCommand as _0x21f2d1,SetBasePermissionsCommand as _0x37c8de,SetBaseRangeValuesCommand as _0xa0c8e2,SetBaseRecordValuesCommand as _0x46d1e8,SetBaseTableHierarchyFieldCommand as _0x273e9f,SetBaseViewFieldOrderCommand as _0x42af3c,SetBaseViewFieldVisibleCommand as _0x1b428a,SetBaseViewFieldWidthCommand as _0x3596a1,SetBaseViewFilterCommand as _0x3943da,SetBaseViewGroupCommand as _0x4a854f,SetBaseViewSortCommand as _0x388049,UpdateBaseCellCommand as _0x1b0f5c,UpdateBaseFieldCommand as _0x53217d,UpdateBaseRecordOrderCommand as _0x5da32a,UpdateBaseViewConditionalColorRulesCommand as _0x4b486e,UpdateBaseViewConfigCommand as _0x45a334,ValidateBaseFormulaCommand as _0x25826c,buildBaseHierarchyIndex as _0xfa6b82,canEditBaseTargets as _0x29c269,copyBaseTableSnapshot as _0x1343fb,createUniqueBaseTableName as _0x3b265e,ensureBaseTableCellLayout as _0x81619,getActiveBaseHierarchyFieldIds as _0xdc3ff5,getBaseCellValue as _0x284376,getBaseFieldPermissionObjectId as _0x2ed12f,getBaseFormulaTableName as _0x31d1af,getBaseHierarchyDeletePromotions as _0xb2debb,getBasePermissionValue as _0xb13101,getBaseRecordPermissionObjectId as _0x262d9e,getBaseTablePermissionObjectId as _0x1a5f5e,getBaseViewPermissionObjectId as _0x7102f,getRecordLinkFieldConfig as _0x2305fd,matchesBaseCondition as _0x5ec685,parseRecordLinkIds as _0xea2e53,resolveBaseHierarchyFieldId as _0x3bde75,resolveBaseRangeHierarchyPatches as _0x55a4b7,searchBaseTable as _0x5b0210,serializeRecordLinkIds as _0x44d49b,validateBaseHierarchyRecordCreations as _0x377fbc,validateBaseHierarchyRecordPatches as _0x50df42,validateBaseTableName as _0x4a1245,validateRecordLinkValue as _0x57c749}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x3cb4f6,BaseConditionalColorOperator as _0x5f5c3b,BaseConditionalColorTarget as _0x2e83f1,BaseConditionalDateMode as _0x256a0d,BaseFieldType as _0x268b7f,BaseFilterConjunction as _0x29b07b,BaseFilterOperator as _0x547adc,BaseHierarchyInvalidReason as _0x970749,BaseRecordLinkRole as _0x116087,BaseSortDirection as _0x23c723,BaseViewType as _0x5b008e,CanceledError as _0x543b75,ICommandService as _0x3fc5b1,IPermissionService as _0x376f49,IResourceLoaderService as _0x183c06,ImageSourceType as _0x3e541f,Inject as _0x5abbd7,Injector as _0x4b43b6,Tools as _0x36fd3d,UniverInstanceType as _0xbc8b5a,createDefaultBaseTableSnapshot as _0x5bad1c,generateRandomId as _0x2ea005}from'@univerjs/core';import*as _0x30c594 from'@univerjs/core/facade';import{FBaseInitialable as _0x31080f,FEnum as _0x544088,FEventName as _0x529663,FUniver as _0x4602a3}from'@univerjs/core/facade';import{UnitAction as _0x2536af}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x5d1890}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x1a9d85,_0x11536c,_0x37bd6d){const _0x4a6d30=_0x194d;this[_0x4a6d30(0x1e1)]=_0x1a9d85,this['_commandService']=_0x11536c,this[_0x4a6d30(0x199)]=_0x37bd6d;}async[_0x3b2f37(0x138)](_0x301cc3){const _0x89f5ca=_0x3b2f37;return this[_0x89f5ca(0x121)][_0x89f5ca(0xaf)](_0x37c8de['id'],{'unitId':this[_0x89f5ca(0x1e1)],'changes':_0x301cc3});}async[_0x3b2f37(0x194)](_0x2131b4,_0x3a5001){await this['_commandService']['executeCommand'](_0x21f2d1['id'],{'unitId':this['_unitId'],'objectId':this['_unitId'],'action':_0x2131b4,'value':_0x3a5001});}[_0x3b2f37(0xbc)](_0x56d1b0){const _0x2eabf6=_0x3b2f37;return _0xb13101(this['_permissionService'],this[_0x2eabf6(0x1e1)],this[_0x2eabf6(0x1e1)],_0x56d1b0);}async[_0x3b2f37(0x135)](_0x47e6d8=!0x0){const _0xc12176=_0x3b2f37;await this['_commandService'][_0xc12176(0xaf)](_0x21f2d1['id'],{'unitId':this[_0xc12176(0x1e1)],'objectId':this['_unitId'],'action':_0x2536af[_0xc12176(0x156)],'value':_0x47e6d8});}async['setReadOnly'](){const _0x2aaa5b=_0x3b2f37;await this['_commandService'][_0x2aaa5b(0xaf)](_0x21f2d1['id'],{'unitId':this[_0x2aaa5b(0x1e1)],'objectId':this[_0x2aaa5b(0x1e1)],'action':_0x2536af[_0x2aaa5b(0x156)],'value':!0x1});}[_0x3b2f37(0xcb)](){const _0x39b412=_0x3b2f37;return _0xb13101(this['_permissionService'],this[_0x39b412(0x1e1)],this['_unitId'],_0x2536af[_0x39b412(0x156)]);}},L=class{constructor(_0x4627a9,_0x43f967,_0x24c4f0,_0x49e6db,_0x17a061){const _0x2683eb=_0x3b2f37;this['_unitId']=_0x4627a9,this[_0x2683eb(0x1bd)]=_0x43f967,this['_parentObjectIds']=_0x24c4f0,this['_commandService']=_0x49e6db,this[_0x2683eb(0x199)]=_0x17a061;}async[_0x3b2f37(0x135)](_0x8c980c=!0x0){const _0x33a57f=_0x3b2f37;await this[_0x33a57f(0x121)]['executeCommand'](_0x21f2d1['id'],{'unitId':this[_0x33a57f(0x1e1)],'objectId':this[_0x33a57f(0x1bd)],'action':_0x2536af[_0x33a57f(0x156)],'value':_0x8c980c});}async[_0x3b2f37(0x146)](){const _0x40ed54=_0x3b2f37;await this[_0x40ed54(0x121)][_0x40ed54(0xaf)](_0x21f2d1['id'],{'unitId':this[_0x40ed54(0x1e1)],'objectId':this[_0x40ed54(0x1bd)],'action':_0x2536af[_0x40ed54(0x156)],'value':!0x1});}['canEdit'](){const _0x47bb22=_0x3b2f37;return _0x29c269(this['_permissionService'],this[_0x47bb22(0x1e1)],[...this['_parentObjectIds'],this[_0x47bb22(0x1bd)]]);}};function R(_0x1863ed,_0x5dbd83){return function(_0x516a40,_0x4102bf){_0x5dbd83(_0x516a40,_0x4102bf,_0x1863ed);};}function _0x4d76(){const _0xdfc72=['recordId','_getField','sort','getRecords','getViewByName','deleteAttachments','getId','_getFieldIds','BeforeBaseTableViewCreate','_resolveRecordIds','sourceType','primaryFieldId','getAllUnitsForType','getFieldSettings','disposeWithMe','recordOrder','Failed\x20to\x20add\x20records','fromCollab','BaseFilterConjunction','height','record','getBaseFacade','startsWith','invalid','onCommandExecuted','\x22\x20must\x20be\x20a\x20non-empty\x20string.','extend','type','getField','getDataRange','hidden','getActiveBase','entries','BeforeBaseHierarchyChange','BaseHierarchyErrorCode','addLinkedRecord','number','getNumColumns','isReadonly','Formula','executeCommand','Gallery','getSort','getColumn','_assertInBounds','fields','getSnapshot','_fireBeforeHierarchyChange','move','tableOrder','[FRecord]:\x20field\x20\x22','matches','\x20for\x20field\x20\x22','getPoint','getVisibleFields','constructor','103620GsoYcc','_baseTableId','RecordLink','getTable','Duplicate\x20Base\x20field\x20name:\x20','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','[FTable]:\x20table\x20\x22','delete','custom','deepClone','max','BaseTableCreated','canEdit','getFormulaName','orderKey','Facade','BaseRecordLinkRole','afterFieldId','deleteTable','description','views',':\x20\x22','BaseTableViewCreated','UNIVER_BASE','1640094SRpDfP','Failed\x20to\x20duplicate\x20table\x20\x22','Delete','_initBaseAfterEvents','createInstance','hasOwnProperty','unitId','recordIds','758032yZXoqy','getProjection','operator','_tableId','parentRecordId','push','210556xBPqKL','fieldIds','reason','_table','getViews','slice','addConditionalColorRule','registerEventHandler','getSchema','AND','createdAt','_getTable','[FRecord]:\x20attachment\x20at\x20index\x20','getFilter','getValues','Invalid\x20attachment\x20at\x20index\x20','default','addChild','beforeFieldId','_prepareFormulaFieldReferences','getBaseId','commonExtend','view','fieldOrder','BaseHierarchyInvalidReason','endColumn','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','primaryFieldName','function','\x22\x20does\x20not\x20exist.','addRecords','\x22:\x20expected\x20an\x20array.','setGroup','setOrderKey','setFieldWidth','size','updateConfig','getBase','group','startColumn','_base','BaseSortDirection','fieldKey','setName','1714312baJKSR','getAttachments','valid','duplicate','_initBaseBeforeEvents','orderedRecordIds','includes','\x22.\x20','_getAttachmentField','decorate','auto','\x22\x20is\x20invalid.','Date','viewId','viewOrder','filter','_commandService','BeforeBaseTableCellValueChange','update','_resourceLoaderService','fieldId','BASE64','60fCGiKu','url','_getRecord','insertTable','cancel','string','getRecord','Invalid\x20Base\x20formula.','getAncestors','notMatches','BaseTableRecordCreated','getUnitId','moveField','prototype','setEditable','_initialize','_fieldId','setObjectPermissions','createBase',':\x20expected\x20an\x20object.','some','getUnit','getRange','flatMap','[FBase]:\x20table\x20\x22','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','createView','iterator','Add','BaseFilterOperator','getChildren','setReadOnly','readonly','has','targetTableId','UUID','getConfig','setValue','\x20exceeds\x20range\x20size\x20','Failed\x20to\x20add\x20field\x20\x22','fireEvent','BaseConditionalDateMode','getTableById','_projectionService','setDefaultValue','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','30HXiSWw','Edit','tableId','defaultValue','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','288001QpHiGJ','parentByRecordId','BaseHierarchyChanged','getTableByName','rules','getPrimaryField','data:','Calendar','\x22\x20has\x20invalid\x20config.','Unsupported\x20Base\x20field\x20type\x20\x22','every','limit','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','get','Name','getTableId','offset','externalReferences','getParent','getTableFacade','BaseFieldKeyEnum','saveUnit','endRow','multiple','index','BeforeBaseTableRecordCreate','BaseFieldType','_getHierarchyIndex','Failed\x20to\x20create\x20table\x20\x22','Remote','getLinkedRecordIds','find','now','length','table','visibleCardFieldIds','syncExecuteCommand','_collectDescendantIds','[FBaseRange]:\x20values\x20size\x20','getCurrentUnitOfType',',\x20range:\x20','addField','rows','setFieldVisible','_baseUnitId','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','setParent','getRecordById','RecordId','getGroup','base','deleteRecords','Kanban','queryRecords','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','defineProperty','params','records','setPoint','fromEntries','getFieldById','Invalid\x20Base\x20regex\x20filter:\x20','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','_permissionService','getName','hierarchyChanges','field','stringify','Failed\x20to\x20delete\x20table\x20\x22','getView','clear','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','BeforeBaseTableFieldCreate','setHierarchyField','DESC','beforeCommandExecuted','_injector','changeType','setFilter','setValues','BeforeBaseTableCreate','warn','getValue','[FBase]:\x20invalid\x20table\x20name\x20\x22','isArray',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','caseSensitive','getPermission','21eZmbEm','_recordId','_writeFormulaExternalReferences','getDefaultValue','removeLinkedRecord','fieldSettings','getOwnPropertyDescriptor','865017GxeQsN','Event','[FRecord]:\x20RecordLink\x20field\x20\x22','values','_objectId','_getView','getTables','tables','startRow','name','BaseViewType','clearConditionalColorRules','_inject','map','source','_getHierarchyEventContext','getPrimaryFieldId','setConditionalColorRules','Set','BaseEventSource','setConfig','BaseTableFieldCreated','boolean','direction','getConditionalColorRules','Attachment','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','conditionalColoring','_univerInstanceService','BaseConditionalColorOperator','config','_viewId','rowId','URL','setLinkedRecordIds','getNumRows','object','deleteConditionalColorRule','BaseTableCellValueChanged','from','_unitId','_getRecordLinkField','[FView]:\x20view\x20\x22','localeCompare','BaseConditionalColorTarget','trim','value','setAttachments','updatedAt','indexOf','_range','getFieldByName','symbol'];_0x4d76=function(){return _0xdfc72;};return _0x4d76();}function z(_0x291546,_0x5e1ab0,_0x1d6142,_0xacee64){const _0x2b3323=_0x3b2f37;var _0x831c65=arguments['length'],_0x2d6439=_0x831c65<0x3?_0x5e1ab0:_0xacee64===null?_0xacee64=Object[_0x2b3323(0x1b8)](_0x5e1ab0,_0x1d6142):_0xacee64,_0x573071;if(typeof Reflect==_0x2b3323(0x1dd)&&typeof Reflect[_0x2b3323(0x11a)]==_0x2b3323(0x101))_0x2d6439=Reflect[_0x2b3323(0x11a)](_0x291546,_0x5e1ab0,_0x1d6142,_0xacee64);else{for(var _0x3a2b7e=_0x291546[_0x2b3323(0x17b)]-0x1;_0x3a2b7e>=0x0;_0x3a2b7e--)(_0x573071=_0x291546[_0x3a2b7e])&&(_0x2d6439=(_0x831c65<0x3?_0x573071(_0x2d6439):_0x831c65>0x3?_0x573071(_0x5e1ab0,_0x1d6142,_0x2d6439):_0x573071(_0x5e1ab0,_0x1d6142))||_0x2d6439);}return _0x831c65>0x3&&_0x2d6439&&Object[_0x2b3323(0x191)](_0x5e1ab0,_0x1d6142,_0x2d6439),_0x2d6439;}let B=class{constructor(_0x3c9dcd,_0x498aca,_0x57300a,_0x2025fb,_0x235653){const _0x1df0ab=_0x3b2f37;this[_0x1df0ab(0x10d)]=_0x3c9dcd,this[_0x1df0ab(0xe8)]=_0x498aca,this[_0x1df0ab(0x137)]=_0x57300a,this[_0x1df0ab(0x121)]=_0x2025fb,this[_0x1df0ab(0x199)]=_0x235653;}[_0x3b2f37(0x8d)](){const _0x254540=_0x3b2f37;return this[_0x254540(0x137)];}['getPermission'](){const _0x5a5364=_0x3b2f37;let _0x10873a=this[_0x5a5364(0xe8)]['getId']();return new L(this[_0x5a5364(0x10d)][_0x5a5364(0x8d)](),_0x2ed12f(_0x10873a,this[_0x5a5364(0x137)]),[_0x1a5f5e(_0x10873a)],this[_0x5a5364(0x121)],this['_permissionService']);}[_0x3b2f37(0xa3)](){const _0x1538eb=_0x3b2f37;return this[_0x1538eb(0x88)]();}['getName'](){const _0x59b4f=_0x3b2f37;return this[_0x59b4f(0x88)]()[_0x59b4f(0x1c2)];}['getType'](){const _0x1d2285=_0x3b2f37;return this['_getField']()[_0x1d2285(0xa2)];}['getConfig'](){const _0x3af3c6=_0x3b2f37;return this[_0x3af3c6(0x88)]()[_0x3af3c6(0x1d7)];}[_0x3b2f37(0x1b5)](){const _0x5bde2a=_0x3b2f37;return this[_0x5bde2a(0x88)]()[_0x5bde2a(0x158)];}['getDescription'](){const _0x57b011=_0x3b2f37;return this[_0x57b011(0x88)]()['description'];}[_0x3b2f37(0xad)](){const _0x13b8d6=_0x3b2f37;return!!this[_0x13b8d6(0x88)]()[_0x13b8d6(0x147)];}[_0x3b2f37(0x110)](_0x28077c){return this['update']({'name':_0x28077c});}[_0x3b2f37(0x1cd)](_0x1abd3e,_0x1c2635){return this['update']({'config':_0x1abd3e},_0x1c2635);}[_0x3b2f37(0x153)](_0x76b611){return this['update']({'defaultValue':_0x76b611});}[_0x3b2f37(0x123)](_0x1e8021,_0x53769d){const _0x8e2e7e=_0x3b2f37;let _0x305220=this[_0x8e2e7e(0x88)]()['type'];return(_0x1e8021[_0x8e2e7e(0xa2)]??_0x305220)===_0x268b7f['Formula']&&(Object[_0x8e2e7e(0x134)][_0x8e2e7e(0xdc)]['call'](_0x1e8021,_0x8e2e7e(0x1d7))||_0x1e8021['type']===_0x268b7f[_0x8e2e7e(0xae)])&&!this[_0x8e2e7e(0x1b4)](_0x53769d)?!0x1:this[_0x8e2e7e(0x121)][_0x8e2e7e(0x17e)](_0x53217d['id'],{'unitId':this[_0x8e2e7e(0x10d)][_0x8e2e7e(0x8d)](),'tableId':this[_0x8e2e7e(0xe8)][_0x8e2e7e(0x8d)](),'fieldId':this[_0x8e2e7e(0x137)],'patch':_0x1e8021});}[_0x3b2f37(0x1a7)](_0x1fda9d,_0x2a6322={},_0x4547a0){const _0x2e7512=_0x3b2f37;return _0x1fda9d===_0x268b7f['Formula']&&!this['_writeFormulaExternalReferences'](_0x4547a0)?!0x1:this[_0x2e7512(0x121)]['syncExecuteCommand'](_0x15b0fc['id'],{'unitId':this[_0x2e7512(0x10d)][_0x2e7512(0x8d)](),'tableId':this[_0x2e7512(0xe8)]['getId'](),'fieldId':this[_0x2e7512(0x137)],'input':{'type':_0x1fda9d,'config':_0x2a6322}});}[_0x3b2f37(0xc6)](){const _0x545497=_0x3b2f37;return this['_commandService'][_0x545497(0x17e)](_0x2fc3c0['id'],{'unitId':this[_0x545497(0x10d)][_0x545497(0x8d)](),'tableId':this[_0x545497(0xe8)][_0x545497(0x8d)](),'fieldId':this[_0x545497(0x137)]});}[_0x3b2f37(0xb7)](_0x414325){const _0x5dee30=_0x3b2f37;return this['_commandService'][_0x5dee30(0x17e)](_0x15b278['id'],{'unitId':this[_0x5dee30(0x10d)][_0x5dee30(0x8d)](),'tableId':this[_0x5dee30(0xe8)][_0x5dee30(0x8d)](),'fieldId':this[_0x5dee30(0x137)],'target':_0x414325});}[_0x3b2f37(0x88)](){const _0x2ba0fd=_0x3b2f37;let _0x52d45f=this[_0x2ba0fd(0xe8)][_0x2ba0fd(0xc2)]()[_0x2ba0fd(0xb4)][this[_0x2ba0fd(0x137)]];if(!_0x52d45f)throw Error('[FField]:\x20field\x20\x22'+this[_0x2ba0fd(0x137)]+_0x2ba0fd(0x102));return _0x52d45f;}[_0x3b2f37(0x1b4)](_0x5848ad){const _0x88010e=_0x3b2f37;if(!_0x5848ad||!Array[_0x88010e(0x1ae)](_0x5848ad['externalReferences']))return console[_0x88010e(0x1ab)]('[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.'),!0x1;if(_0x5848ad[_0x88010e(0x16b)]['length']===0x0)return!0x0;let _0x348f4a=this[_0x88010e(0x121)]['syncExecuteCommand'](_0x5d1890['id'],{'unitId':this[_0x88010e(0x10d)]['getId'](),'references':_0x5848ad['externalReferences']});return _0x348f4a||console[_0x88010e(0x1ab)]('[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.'),_0x348f4a;}};B=z([R(0x3,_0x3fc5b1),R(0x4,_0x376f49)],B);let ot=function(_0x4539bb){const _0x23bead=_0x3b2f37;return _0x4539bb['Id']='id',_0x4539bb[_0x23bead(0x168)]=_0x23bead(0x1c2),_0x4539bb['Auto']=_0x23bead(0x11b),_0x4539bb;}({});function V(_0x562c13){const _0x1b911e=_0x3b2f37;return!!(_0x562c13&&_0x562c13['system']!==!0x0&&_0x562c13[_0x1b911e(0xa2)]!==_0x268b7f[_0x1b911e(0x18a)]);}function H(_0x321bd5,_0x2b1de6,_0x66197a='id'){const _0x531d12=_0x3b2f37;if(!_0x2b1de6)return{};let _0x40e910={};return Object[_0x531d12(0xa7)](_0x2b1de6)['forEach'](([_0x14ed14,_0x472700])=>{let _0x43a84e=ct(_0x321bd5,_0x14ed14,_0x66197a);_0x40e910[_0x43a84e]=st(_0x321bd5['fields'][_0x43a84e],_0x472700);}),_0x40e910;}function st(_0x4d5f3b,_0x3cb18b){const _0x329f2f=_0x3b2f37;if((_0x4d5f3b==null?void 0x0:_0x4d5f3b[_0x329f2f(0xa2)])!==_0x268b7f[_0x329f2f(0x1d2)]||_0x3cb18b==null)return _0x3cb18b;if(!Array['isArray'](_0x3cb18b))throw TypeError(_0x329f2f(0x187)+_0x4d5f3b[_0x329f2f(0x1c2)]+_0x329f2f(0x104));return _0x3cb18b[_0x329f2f(0x1c6)]((_0x42f16e,_0x2c8e4b)=>lt(_0x4d5f3b,_0x42f16e,_0x2c8e4b));}function ct(_0x2661c2,_0x1ab916,_0x3d94d5){const _0x438399=_0x3b2f37;if(_0x3d94d5==='id'||_0x3d94d5===_0x438399(0x11b)&&_0x2661c2[_0x438399(0xb4)][_0x1ab916])return _0x1ab916;let _0x137d69=Object[_0x438399(0x1bc)](_0x2661c2[_0x438399(0xb4)])[_0x438399(0x120)](_0x18e26c=>_0x18e26c[_0x438399(0x1c2)]===_0x1ab916);if(_0x137d69[_0x438399(0x17b)]===0x1)return _0x137d69[0x0]['id'];throw _0x137d69[_0x438399(0x17b)]>0x1?Error(_0x438399(0xc3)+_0x1ab916):Error('Base\x20field\x20not\x20found:\x20'+_0x1ab916);}function lt(_0x197ae7,_0x3b8719,_0xe94dbb){const _0x331e53=_0x3b2f37;let _0x4e36d8=_0x331e53(0xf4)+_0xe94dbb+_0x331e53(0xbb)+_0x197ae7[_0x331e53(0x1c2)]+'\x22';if(!ft(_0x3b8719))throw TypeError(_0x4e36d8+_0x331e53(0x13a));if(_0x331e53(0x128)in _0x3b8719)throw TypeError(_0x4e36d8+':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.');if(_0x331e53(0xa2)in _0x3b8719)throw TypeError(_0x4e36d8+_0x331e53(0x1af));let _0x2a2506=U(_0x3b8719['id'],_0x4e36d8,'id'),_0x17d987=U(_0x3b8719[_0x331e53(0x1c2)],_0x4e36d8,'name'),_0xf198ad=U(_0x3b8719['source'],_0x4e36d8,'source');return{'id':_0x2a2506,'name':_0x17d987,'source':_0xf198ad,'sourceType':ut(_0x3b8719[_0x331e53(0x91)],_0xf198ad,_0x4e36d8),...dt(_0x3b8719,'mimeType',_0x4e36d8),...W(_0x3b8719,'size',_0x4e36d8),...W(_0x3b8719,'width',_0x4e36d8),...W(_0x3b8719,_0x331e53(0x9a),_0x4e36d8),...dt(_0x3b8719,'thumbnail',_0x4e36d8)};}function ut(_0x381100,_0x420284,_0xfb8681){const _0x40abaf=_0x3b2f37;if(_0x381100==null)return _0x420284[_0x40abaf(0x9d)](_0x40abaf(0x160))?_0x3e541f['BASE64']:_0x3e541f[_0x40abaf(0x1da)];if(_0x381100===_0x3e541f[_0x40abaf(0x1da)]||_0x381100===_0x3e541f[_0x40abaf(0x14a)]||_0x381100===_0x3e541f[_0x40abaf(0x126)])return _0x381100;throw TypeError(_0xfb8681+':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.');}function U(_0xc7e7b2,_0x1902ba,_0x9a6e78){const _0x3c036d=_0x3b2f37;if(typeof _0xc7e7b2!=_0x3c036d(0x12c)||!_0xc7e7b2['trim']())throw TypeError(_0x1902ba+_0x3c036d(0xd4)+_0x9a6e78+_0x3c036d(0xa0));return _0xc7e7b2;}function dt(_0x5d77d8,_0x3f23f4,_0x21031f){const _0x327e8b=_0x3b2f37;let _0x2513d0=_0x5d77d8[_0x3f23f4];if(_0x2513d0==null)return{};if(typeof _0x2513d0!='string'||!_0x2513d0[_0x327e8b(0x1e6)]())throw TypeError(_0x21031f+_0x327e8b(0xd4)+_0x3f23f4+_0x327e8b(0x1a1));return{[_0x3f23f4]:_0x2513d0};}function W(_0x1c314a,_0xc2d52c,_0x45e483){const _0x229f9d=_0x3b2f37;let _0x19d536=_0x1c314a[_0xc2d52c];if(_0x19d536==null)return{};if(typeof _0x19d536!=_0x229f9d(0xab)||!Number['isFinite'](_0x19d536)||_0x19d536<0x0)throw TypeError(_0x45e483+':\x20\x22'+_0xc2d52c+_0x229f9d(0x198));return{[_0xc2d52c]:_0x19d536};}function ft(_0x3e9009){const _0x6f8f67=_0x3b2f37;return typeof _0x3e9009==_0x6f8f67(0x1dd)&&!!_0x3e9009&&!Array['isArray'](_0x3e9009);}var G;let K=G=class{constructor(_0x5d48ff,_0x7a0d62,_0xdfa55,_0x300267,_0x55b1c2){const _0xe0ce90=_0x3b2f37;this[_0xe0ce90(0x10d)]=_0x5d48ff,this[_0xe0ce90(0xe8)]=_0x7a0d62,this[_0xe0ce90(0x84)]=_0xdfa55,this['_inject']=_0x300267,this[_0xe0ce90(0x121)]=_0x55b1c2,this['_assertInBounds']();}[_0x3b2f37(0xf9)](){const _0x3cfd61=_0x3b2f37;return this[_0x3cfd61(0x10d)]['getId']();}[_0x3b2f37(0x169)](){const _0x3a8548=_0x3b2f37;return this[_0x3a8548(0xe8)][_0x3a8548(0x8d)]();}['getRange'](){const _0x2c5877=_0x3b2f37;return{...this[_0x2c5877(0x84)]};}['getRow'](){const _0x240ab6=_0x3b2f37;return this[_0x240ab6(0x84)]['startRow'];}[_0x3b2f37(0xb2)](){const _0x1d898e=_0x3b2f37;return this[_0x1d898e(0x84)][_0x1d898e(0x10c)];}['getNumRows'](){const _0x40caa5=_0x3b2f37;return this[_0x40caa5(0x84)][_0x40caa5(0x170)]-this[_0x40caa5(0x84)]['startRow']+0x1;}[_0x3b2f37(0xac)](){const _0x328669=_0x3b2f37;return this[_0x328669(0x84)]['endColumn']-this[_0x328669(0x84)][_0x328669(0x10c)]+0x1;}[_0x3b2f37(0xf3)](){const _0x12ffff=_0x3b2f37;let _0x5c6429=this[_0x12ffff(0xf0)](),_0x270de9=this['_getFieldIds'](_0x5c6429),_0x216939=[];for(let _0x479d33=this[_0x12ffff(0x84)][_0x12ffff(0x1c1)];_0x479d33<=this[_0x12ffff(0x84)][_0x12ffff(0x170)];_0x479d33++){var _0x2e1550;let _0x5efb22=(_0x2e1550=_0x5c6429['rowId'])==null?void 0x0:_0x2e1550[_0x479d33],_0x1db53d=[];for(let _0x343761=this[_0x12ffff(0x84)][_0x12ffff(0x10c)];_0x343761<=this['_range']['endColumn'];_0x343761++){let _0x224ef0=_0x270de9[_0x343761];_0x1db53d['push'](_0x5efb22&&_0x224ef0?_0x284376(_0x5c6429,_0x5efb22,_0x224ef0):null);}_0x216939[_0x12ffff(0xe4)](_0x1db53d);}return _0x216939;}[_0x3b2f37(0x1ac)](){const _0x12d34f=_0x3b2f37;var _0x336c66;return((_0x336c66=this[_0x12d34f(0xf3)]()[0x0])==null?void 0x0:_0x336c66[0x0])??null;}[_0x3b2f37(0x14c)](_0x4673ae){const _0x8ab928=_0x3b2f37;return this[_0x8ab928(0x1a9)]([[_0x4673ae]]);}['setValues'](_0x24fbbe){const _0x31d156=_0x3b2f37;let _0x148d97=this[_0x31d156(0x1dc)](),_0x1d107e=this['getNumColumns']();if(_0x24fbbe['length']>_0x148d97||_0x24fbbe[_0x31d156(0x13b)](_0x4b1821=>_0x4b1821[_0x31d156(0x17b)]>_0x1d107e)){var _0x35cc59;throw Error(_0x31d156(0x180)+_0x24fbbe[_0x31d156(0x17b)]+'x'+(((_0x35cc59=_0x24fbbe[0x0])==null?void 0x0:_0x35cc59[_0x31d156(0x17b)])??0x0)+_0x31d156(0x14d)+_0x148d97+'x'+_0x1d107e+'.');}let _0x3b69d6=this[_0x31d156(0xf0)](),_0x446fed=this[_0x31d156(0x8e)](_0x3b69d6),_0x28bf58=_0x24fbbe[_0x31d156(0x13e)]((_0x36e34c,_0x34be3c)=>_0x36e34c['map']((_0xdacb24,_0x23e883)=>{const _0x4ef47b=_0x31d156;var _0x19edf8;let _0x287a07=this[_0x4ef47b(0x84)][_0x4ef47b(0x1c1)]+_0x34be3c,_0xe4247d=_0x446fed[this['_range']['startColumn']+_0x23e883],_0x4ed073=(_0x19edf8=_0x3b69d6[_0x4ef47b(0x1d9)])==null?void 0x0:_0x19edf8[_0x287a07];if(!_0xe4247d||!_0x4ed073)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x4ed073,'fieldId':_0xe4247d,'value':_0xdacb24};}));return this[_0x31d156(0x121)]['syncExecuteCommand'](_0xa0c8e2['id'],{'unitId':this[_0x31d156(0x10d)][_0x31d156(0x8d)](),'tableId':this[_0x31d156(0xe8)][_0x31d156(0x8d)](),'patches':_0x28bf58,'source':_0x4d5524['Facade']});}[_0x3b2f37(0x1a0)](){const _0x15a6dd=_0x3b2f37;return this[_0x15a6dd(0x1a9)](Array[_0x15a6dd(0x1e0)]({'length':this[_0x15a6dd(0x1dc)]()},()=>Array[_0x15a6dd(0x1e0)]({'length':this[_0x15a6dd(0xac)]()},()=>null)));}[_0x3b2f37(0x16a)](_0x50a7e5,_0x47938f,_0x59360a=this[_0x3b2f37(0x1dc)](),_0x2ff7c2=this['getNumColumns']()){const _0x5a6e80=_0x3b2f37;return this['_inject'][_0x5a6e80(0xdb)](G,this[_0x5a6e80(0x10d)],this[_0x5a6e80(0xe8)],{'startRow':this[_0x5a6e80(0x84)][_0x5a6e80(0x1c1)]+_0x50a7e5,'startColumn':this[_0x5a6e80(0x84)]['startColumn']+_0x47938f,'endRow':this['_range']['startRow']+_0x50a7e5+_0x59360a-0x1,'endColumn':this['_range'][_0x5a6e80(0x10c)]+_0x47938f+_0x2ff7c2-0x1},this[_0x5a6e80(0x1c5)]);}[_0x3b2f37(0xf0)](){const _0xd71b88=_0x3b2f37;let _0x4b88f3=this['_table'][_0xd71b88(0xc2)]();if(!_0x4b88f3)throw Error('[FBaseRange]:\x20table\x20does\x20not\x20exist.');return _0x81619(_0x4b88f3);}[_0x3b2f37(0xb3)](){const _0x14de8c=_0x3b2f37;var _0x2f3ea9;let _0x13f6e5=this[_0x14de8c(0xf0)](),_0x50505a=((_0x2f3ea9=_0x13f6e5['recordOrder'])==null?void 0x0:_0x2f3ea9['length'])??0x0,_0x16f13d=this['_getFieldIds'](_0x13f6e5)[_0x14de8c(0x17b)];if(this[_0x14de8c(0x84)][_0x14de8c(0x1c1)]<0x0||this[_0x14de8c(0x84)][_0x14de8c(0x10c)]<0x0||this[_0x14de8c(0x84)][_0x14de8c(0x170)]<this[_0x14de8c(0x84)][_0x14de8c(0x1c1)]||this[_0x14de8c(0x84)][_0x14de8c(0xfe)]<this[_0x14de8c(0x84)][_0x14de8c(0x10c)]||this['_range'][_0x14de8c(0x170)]>=Math[_0x14de8c(0xc9)](_0x50505a,0x1)||this[_0x14de8c(0x84)][_0x14de8c(0xfe)]>=Math[_0x14de8c(0xc9)](_0x16f13d,0x1))throw Error(_0x14de8c(0x154)+_0x50505a+',\x20max\x20columns:\x20'+_0x16f13d+_0x14de8c(0x182)+JSON[_0x14de8c(0x19d)](this[_0x14de8c(0x84)])+'.');}[_0x3b2f37(0x8e)](_0x52b09c){const _0x5a52d1=_0x3b2f37;return _0x52b09c['fieldOrder']['filter'](_0x4afa1d=>V(_0x52b09c[_0x5a52d1(0xb4)][_0x4afa1d]));}};K=G=z([R(0x4,_0x3fc5b1)],K);function q(_0x2b8520){'@babel/helpers - typeof';const _0x2623ad=_0x3b2f37;return q=typeof Symbol==_0x2623ad(0x101)&&typeof Symbol[_0x2623ad(0x142)]==_0x2623ad(0x86)?function(_0x5aa728){return typeof _0x5aa728;}:function(_0x28a085){const _0x4801f0=_0x2623ad;return _0x28a085&&typeof Symbol==_0x4801f0(0x101)&&_0x28a085[_0x4801f0(0xbe)]===Symbol&&_0x28a085!==Symbol['prototype']?'symbol':typeof _0x28a085;},q(_0x2b8520);}function _0x194d(_0x5786d4,_0x3a158a){_0x5786d4=_0x5786d4-0x80;const _0x4d762e=_0x4d76();let _0x194d99=_0x4d762e[_0x5786d4];return _0x194d99;}function pt(_0x2f3fb3,_0x29a112){const _0x25322e=_0x3b2f37;if(q(_0x2f3fb3)!=_0x25322e(0x1dd)||!_0x2f3fb3)return _0x2f3fb3;var _0x5f4ed7=_0x2f3fb3[Symbol['toPrimitive']];if(_0x5f4ed7!==void 0x0){var _0x17274e=_0x5f4ed7['call'](_0x2f3fb3,_0x29a112||_0x25322e(0xf5));if(q(_0x17274e)!=_0x25322e(0x1dd))return _0x17274e;throw TypeError(_0x25322e(0x166));}return(_0x29a112===_0x25322e(0x12c)?String:Number)(_0x2f3fb3);}function mt(_0x1cd76c){const _0x30760a=_0x3b2f37;var _0x33c2ec=pt(_0x1cd76c,_0x30760a(0x12c));return q(_0x33c2ec)==_0x30760a(0x86)?_0x33c2ec:_0x33c2ec+'';}function ht(_0x27fc03,_0x1d65a9,_0x4239e9){const _0x578c62=_0x3b2f37;return(_0x1d65a9=mt(_0x1d65a9))in _0x27fc03?Object[_0x578c62(0x191)](_0x27fc03,_0x1d65a9,{'value':_0x4239e9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27fc03[_0x1d65a9]=_0x4239e9,_0x27fc03;}var J;let Y=J=class extends _0x31080f{constructor(_0x4fac5a,_0x52fd92,_0x1bcb47,_0x53346d,_0x29c643,_0x5a507e){const _0x522a14=_0x3b2f37;super(_0x53346d),this[_0x522a14(0x10d)]=_0x4fac5a,this[_0x522a14(0xe8)]=_0x52fd92,this[_0x522a14(0x1b3)]=_0x1bcb47,this[_0x522a14(0x1a6)]=_0x53346d,this[_0x522a14(0x121)]=_0x29c643,this[_0x522a14(0x199)]=_0x5a507e,ht(this,_0x522a14(0x186),void 0x0),ht(this,_0x522a14(0xc0),void 0x0),this['_baseUnitId']=_0x4fac5a[_0x522a14(0x8d)](),this['_baseTableId']=_0x52fd92[_0x522a14(0x8d)]();}[_0x3b2f37(0x9c)](){return this['_base'];}[_0x3b2f37(0x16d)](){return this['_table'];}[_0x3b2f37(0x8d)](){const _0x15baf4=_0x3b2f37;return this[_0x15baf4(0x1b3)];}['getPermission'](){const _0xca0ec8=_0x3b2f37;let _0x5869ec=this['_table'][_0xca0ec8(0x8d)]();return new L(this[_0xca0ec8(0x10d)][_0xca0ec8(0x8d)](),_0x262d9e(_0x5869ec,this[_0xca0ec8(0x1b3)]),[_0x1a5f5e(_0x5869ec)],this['_commandService'],this['_permissionService']);}[_0x3b2f37(0x12d)](){const _0x39a49b=_0x3b2f37;return{...this[_0x39a49b(0x129)](),'values':this['getValues']()};}[_0x3b2f37(0x1ac)](_0x4222f7){const _0x1d6a5c=_0x3b2f37;return V(this[_0x1d6a5c(0xe8)][_0x1d6a5c(0xc2)]()[_0x1d6a5c(0xb4)][_0x4222f7])?this[_0x1d6a5c(0x129)]()['values'][_0x4222f7]??null:null;}[_0x3b2f37(0xf3)](){const _0x58acff=_0x3b2f37;let _0x1fb4a6=this[_0x58acff(0xe8)]['getTable']();return Object[_0x58acff(0x195)](Object[_0x58acff(0xa7)](this[_0x58acff(0x129)]()['values'])[_0x58acff(0x120)](([_0x11ef6c])=>V(_0x1fb4a6['fields'][_0x11ef6c])));}[_0x3b2f37(0x14c)](_0x326899,_0x5df511){const _0x12a46b=_0x3b2f37;let _0x26da88=this[_0x12a46b(0xe8)]['getTable']()[_0x12a46b(0xb4)][_0x326899];return this['_commandService'][_0x12a46b(0x17e)](_0x1b0f5c['id'],{'unitId':this[_0x12a46b(0x10d)][_0x12a46b(0x8d)](),'tableId':this[_0x12a46b(0xe8)][_0x12a46b(0x8d)](),'recordId':this['_recordId'],'fieldId':_0x326899,'value':st(_0x26da88,_0x5df511),'source':_0x4d5524[_0x12a46b(0xce)]});}[_0x3b2f37(0x81)](_0x1098cd,_0x5a0b1e){const _0x26dceb=_0x3b2f37;return this[_0x26dceb(0x14c)](_0x1098cd,_0x5a0b1e['map'](_0x1cb433=>({..._0x1cb433})));}['getAttachments'](_0x16dc9b){const _0x1d450b=_0x3b2f37;this[_0x1d450b(0x119)](_0x16dc9b);let _0x536b6a=this[_0x1d450b(0x1ac)](_0x16dc9b);return Array['isArray'](_0x536b6a)?_0x536b6a[_0x1d450b(0x1c6)]((_0x51aac7,_0x5c0df2)=>_t(_0x51aac7,_0x16dc9b,_0x5c0df2)):[];}[_0x3b2f37(0x8c)](_0x2f1d46,_0x122fba){const _0x2d303d=_0x3b2f37;this[_0x2d303d(0x119)](_0x2f1d46);let _0x3329b8=new Set(_0x122fba['map'](_0x3ff757=>_0x3ff757['id']));if(!_0x3329b8[_0x2d303d(0x108)])return!0x0;let _0x1e8c66=this[_0x2d303d(0x112)](_0x2f1d46),_0x2ef6d1=_0x1e8c66[_0x2d303d(0x120)](_0x5e8a8b=>!_0x3329b8[_0x2d303d(0x148)](_0x5e8a8b['id']));return _0x2ef6d1[_0x2d303d(0x17b)]===_0x1e8c66[_0x2d303d(0x17b)]||this[_0x2d303d(0x81)](_0x2f1d46,_0x2ef6d1);}['setValues'](_0x450341,_0x1ada52='id'){const _0x76e078=_0x3b2f37;let _0x123c2d=this[_0x76e078(0xe8)][_0x76e078(0xc2)](),_0x26682f=[{'recordId':this['_recordId'],'values':H(_0x123c2d,_0x450341,_0x1ada52)}];return this[_0x76e078(0x121)][_0x76e078(0x17e)](_0x46d1e8['id'],{'unitId':this[_0x76e078(0x10d)][_0x76e078(0x8d)](),'tableId':this['_table'][_0x76e078(0x8d)](),'patches':_0x26682f,'source':_0x4d5524[_0x76e078(0xce)]});}[_0x3b2f37(0xc6)](){const _0x2aac8c=_0x3b2f37;return this['_commandService'][_0x2aac8c(0x17e)](_0x6344c7['id'],{'unitId':this[_0x2aac8c(0x10d)][_0x2aac8c(0x8d)](),'tableId':this['_table']['getId'](),'recordId':this[_0x2aac8c(0x1b3)],'source':_0x4d5524['Facade']});}[_0x3b2f37(0x114)](_0x5b0283){const _0x2d2811=_0x3b2f37;let _0x20fb41={...this[_0x2d2811(0x129)](),..._0x5b0283,'id':_0x2ea005(0x6)};_0x20fb41[_0x2d2811(0x1bc)]={..._0x20fb41[_0x2d2811(0x1bc)],..._0x5b0283==null?void 0x0:_0x5b0283[_0x2d2811(0x1bc)]},Reflect['deleteProperty'](_0x20fb41[_0x2d2811(0x1bc)],_0x3cb4f6);let _0x52d787=Date[_0x2d2811(0x17a)]();if(_0x20fb41[_0x2d2811(0xcd)]||=''+_0x52d787,_0x20fb41[_0x2d2811(0xef)]||=_0x52d787,_0x20fb41['updatedAt']||=_0x52d787,!this[_0x2d2811(0x121)][_0x2d2811(0x17e)](_0x292c95['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0x2d2811(0x8d)](),'sourceRecordId':this[_0x2d2811(0x1b3)],'record':_0x20fb41,'source':_0x4d5524[_0x2d2811(0xce)]}))throw Error(_0x2d2811(0x1d3)+this[_0x2d2811(0x1b3)]+'\x22.');return this[_0x2d2811(0x1a6)][_0x2d2811(0xdb)](J,this[_0x2d2811(0x10d)],this[_0x2d2811(0xe8)],_0x20fb41['id'],this['_injector']);}[_0x3b2f37(0x106)](_0x4944d8){const _0x4db303=_0x3b2f37;return this[_0x4db303(0x121)][_0x4db303(0x17e)](_0x5da32a['id'],{'unitId':this[_0x4db303(0x10d)][_0x4db303(0x8d)](),'tableId':this['_table'][_0x4db303(0x8d)](),'recordId':this['_recordId'],'orderKey':_0x4944d8});}[_0x3b2f37(0x178)](_0x591fba){const _0x12e4a5=_0x3b2f37;let _0x38ef48=this[_0x12e4a5(0x1e2)](_0x591fba),_0x5a30f7=this['getValue'](_0x38ef48['id']);return _0xea2e53(_0x5a30f7);}['setLinkedRecordIds'](_0x2058ad,_0x12a689){const _0x51eca2=_0x3b2f37;let _0x34137e=this[_0x51eca2(0x1e2)](_0x2058ad),_0x754e8a=_0x44d49b(_0x12a689),_0x1adb1b=_0x57c749(this[_0x51eca2(0x10d)][_0x51eca2(0x10a)]()['getSnapshot'](),_0x34137e,_0x754e8a);if(!_0x1adb1b[_0x51eca2(0x113)])throw Error(_0x1adb1b['reason']??'[FRecord]:\x20invalid\x20RecordLink\x20value.');return this[_0x51eca2(0x121)][_0x51eca2(0x17e)](_0x1b0f5c['id'],{'unitId':this[_0x51eca2(0x10d)]['getId'](),'tableId':this[_0x51eca2(0xe8)][_0x51eca2(0x8d)](),'recordId':this['_recordId'],'fieldId':_0x2058ad,'value':_0x754e8a,'source':_0x4d5524[_0x51eca2(0xce)]});}[_0x3b2f37(0xaa)](_0x19d0fd,_0x48fc1c){const _0x5cedfa=_0x3b2f37;let _0x1d3a5f=this['_getRecordLinkField'](_0x19d0fd),_0x316542=_0x2305fd(_0x1d3a5f);if(!_0x316542)throw Error(_0x5cedfa(0x1bb)+_0x19d0fd+_0x5cedfa(0x162));let _0x3984cc=this[_0x5cedfa(0x178)](_0x19d0fd);return _0x316542[_0x5cedfa(0x171)]&&_0x3984cc[_0x5cedfa(0x117)](_0x48fc1c)?!0x0:this[_0x5cedfa(0x1db)](_0x19d0fd,_0x316542[_0x5cedfa(0x171)]?[..._0x3984cc,_0x48fc1c]:[_0x48fc1c]);}[_0x3b2f37(0x1b6)](_0x3e42df,_0x2f07f4){const _0x54b057=_0x3b2f37;let _0x3a89b1=this[_0x54b057(0x178)](_0x3e42df);return!_0x3a89b1['includes'](_0x2f07f4)||this[_0x54b057(0x1db)](_0x3e42df,_0x3a89b1['filter'](_0x518f54=>_0x518f54!==_0x2f07f4));}[_0x3b2f37(0x16c)](_0x2403e5){const _0x3d22a6=_0x3b2f37;let _0x4103b0=this[_0x3d22a6(0x175)](_0x2403e5)[_0x3d22a6(0x15b)][_0x3d22a6(0x167)](this[_0x3d22a6(0x1b3)])??null;return _0x4103b0?this[_0x3d22a6(0xe8)][_0x3d22a6(0x189)](_0x4103b0):null;}[_0x3b2f37(0x145)](_0x5c163a){const _0x2971bf=_0x3b2f37;return(this['_getHierarchyIndex'](_0x5c163a)['childrenByParentId']['get'](this[_0x2971bf(0x1b3)])??[])[_0x2971bf(0x13e)](_0x2ace87=>{const _0x559125=_0x2971bf;let _0x54b666=this[_0x559125(0xe8)][_0x559125(0x189)](_0x2ace87);return _0x54b666?[_0x54b666]:[];});}[_0x3b2f37(0x12f)](_0xc4b12c){const _0x26a395=_0x3b2f37;let _0x2fad49=this[_0x26a395(0x175)](_0xc4b12c),_0xee1dd2=[],_0x1ac411=_0x2fad49[_0x26a395(0x15b)][_0x26a395(0x167)](this[_0x26a395(0x1b3)])??null;for(;_0x1ac411;){let _0x1d98af=this[_0x26a395(0xe8)][_0x26a395(0x189)](_0x1ac411);_0x1d98af&&_0xee1dd2['push'](_0x1d98af),_0x1ac411=_0x2fad49[_0x26a395(0x15b)]['get'](_0x1ac411)??null;}return _0xee1dd2;}['getDescendants'](_0x3c95c4){const _0x31ceb5=_0x3b2f37;let _0x4c3f73=this[_0x31ceb5(0x175)](_0x3c95c4),_0x2cc948=_0x4c3f73[_0x31ceb5(0x116)][_0x31ceb5(0x83)](this[_0x31ceb5(0x1b3)]),_0xbcbe4b=_0x4c3f73['subtreeHeightByRecordId']['has'](this[_0x31ceb5(0x1b3)])?this[_0x31ceb5(0x17f)](_0x4c3f73['childrenByParentId'],this[_0x31ceb5(0x1b3)]):[];return _0x2cc948<0x0?[]:_0xbcbe4b[_0x31ceb5(0x13e)](_0xfb2a06=>{const _0x345138=_0x31ceb5;let _0x5c7fe1=this[_0x345138(0xe8)][_0x345138(0x189)](_0xfb2a06);return _0x5c7fe1?[_0x5c7fe1]:[];});}[_0x3b2f37(0x188)](_0x4081c0,_0x914a1f,_0x14049e){const _0x9836=_0x3b2f37;return this[_0x9836(0x121)][_0x9836(0x17e)](_0xd3c5c2['id'],{'unitId':this[_0x9836(0x10d)]['getId'](),'tableId':this[_0x9836(0xe8)][_0x9836(0x8d)](),'fieldId':_0x4081c0,'recordId':this['_recordId'],'parentRecordId':_0x914a1f,'orderKey':_0x14049e,'source':_0x4d5524['Facade']});}[_0x3b2f37(0xf6)](_0x3a013a,_0x103123,_0x83cd22='id',_0x3c73db){const _0x231076=_0x3b2f37;let _0x1e27be=this[_0x231076(0xe8)]['getTable'](),_0x3d756c=Date[_0x231076(0x17a)](),_0x22aec7={..._0x3c73db,'id':_0x2ea005(0x6),'values':H(_0x1e27be,_0x103123,_0x83cd22),'orderKey':(_0x3c73db==null?void 0x0:_0x3c73db[_0x231076(0xcd)])||''+_0x3d756c,'createdAt':(_0x3c73db==null?void 0x0:_0x3c73db[_0x231076(0xef)])||_0x3d756c,'updatedAt':(_0x3c73db==null?void 0x0:_0x3c73db[_0x231076(0x82)])||_0x3d756c};if(!this[_0x231076(0x121)][_0x231076(0x17e)](_0x2a209d['id'],{'unitId':this[_0x231076(0x10d)]['getId'](),'tableId':this['_table'][_0x231076(0x8d)](),'fieldId':_0x3a013a,'parentRecordId':this['_recordId'],'record':_0x22aec7,'source':_0x4d5524[_0x231076(0xce)]}))throw Error(_0x231076(0xc4)+this[_0x231076(0x1b3)]+'\x22.');return this['_injector'][_0x231076(0xdb)](J,this['_base'],this['_table'],_0x22aec7['id'],this[_0x231076(0x1a6)]);}[_0x3b2f37(0x175)](_0x47a5a9){const _0xd9f527=_0x3b2f37;return _0xfa6b82(this[_0xd9f527(0xe8)]['getTable'](),_0x47a5a9);}['_collectDescendantIds'](_0x4fdb25,_0x39b851){let _0x38545c=[],_0x428158=_0x51eb19=>{const _0x468189=_0x194d;for(let _0x2119df of _0x4fdb25[_0x468189(0x167)](_0x51eb19)??[])_0x38545c[_0x468189(0xe4)](_0x2119df),_0x428158(_0x2119df);};return _0x428158(_0x39b851),_0x38545c;}['_getRecord'](){const _0x311da9=_0x3b2f37;let _0x17908a=this[_0x311da9(0xe8)][_0x311da9(0xc2)]()[_0x311da9(0x193)][this['_recordId']];if(!_0x17908a)throw Error('[FRecord]:\x20record\x20\x22'+this[_0x311da9(0x1b3)]+_0x311da9(0x102));return _0x17908a;}[_0x3b2f37(0x1e2)](_0x16a625){const _0x47b484=_0x3b2f37;let _0x182b8f=this[_0x47b484(0xe8)]['getTable']()[_0x47b484(0xb4)][_0x16a625];if(!_0x182b8f||_0x182b8f[_0x47b484(0xa2)]!==_0x268b7f['RecordLink'])throw Error(_0x47b484(0xb9)+_0x16a625+'\x22\x20is\x20not\x20a\x20RecordLink\x20field.');return _0x182b8f;}['_getAttachmentField'](_0x3da0ef){const _0x453f34=_0x3b2f37;let _0x16f380=this[_0x453f34(0xe8)][_0x453f34(0xc2)]()[_0x453f34(0xb4)][_0x3da0ef];if(!_0x16f380||_0x16f380[_0x453f34(0xa2)]!==_0x268b7f[_0x453f34(0x1d2)])throw Error(_0x453f34(0xb9)+_0x3da0ef+'\x22\x20is\x20not\x20an\x20Attachment\x20field.');return _0x16f380;}};Y=J=z([R(0x4,_0x3fc5b1),R(0x5,_0x376f49)],Y);function gt(_0xdd1114){const _0x362fd8=_0x3b2f37;return!!(_0xdd1114&&typeof _0xdd1114=='object'&&'id'in _0xdd1114&&typeof _0xdd1114['id']==_0x362fd8(0x12c)&&'name'in _0xdd1114&&typeof _0xdd1114[_0x362fd8(0x1c2)]==_0x362fd8(0x12c));}function _t(_0x355790,_0x13c1ac,_0x439623){const _0x853e03=_0x3b2f37;if(!gt(_0x355790))throw Error(_0x853e03(0xf1)+_0x439623+'\x20in\x20field\x20\x22'+_0x13c1ac+_0x853e03(0x11c));return{..._0x355790};}let X=class{constructor(_0x586c39,_0x137759,_0x510005,_0x3469ce,_0x43a171,_0x5b1692,_0x4d37fc){const _0x1bf4c4=_0x3b2f37;this[_0x1bf4c4(0x10d)]=_0x586c39,this[_0x1bf4c4(0xe8)]=_0x137759,this[_0x1bf4c4(0x1d8)]=_0x510005,this[_0x1bf4c4(0x1a6)]=_0x3469ce,this[_0x1bf4c4(0x121)]=_0x43a171,this['_permissionService']=_0x5b1692,this['_projectionService']=_0x4d37fc;}[_0x3b2f37(0x8d)](){const _0x5369a=_0x3b2f37;return this[_0x5369a(0x1d8)];}[_0x3b2f37(0x1b1)](){const _0xe8cd22=_0x3b2f37;let _0x93c607=this[_0xe8cd22(0xe8)]['getId']();return new L(this[_0xe8cd22(0x10d)][_0xe8cd22(0x8d)](),_0x7102f(_0x93c607,this[_0xe8cd22(0x1d8)]),[_0x1a5f5e(_0x93c607)],this[_0xe8cd22(0x121)],this[_0xe8cd22(0x199)]);}[_0x3b2f37(0x19f)](){const _0x57ac0e=_0x3b2f37;return this[_0x57ac0e(0x1be)]();}['getName'](){const _0x54308a=_0x3b2f37;return this[_0x54308a(0x1be)]()[_0x54308a(0x1c2)];}['getType'](){return this['_getView']()['type'];}[_0x3b2f37(0x110)](_0x1ab4f9){const _0x9c7f89=_0x3b2f37;return this[_0x9c7f89(0x121)][_0x9c7f89(0x17e)](_0xaefd70['id'],{'unitId':this[_0x9c7f89(0x10d)][_0x9c7f89(0x8d)](),'tableId':this[_0x9c7f89(0xe8)][_0x9c7f89(0x8d)](),'viewId':this['_viewId'],'name':_0x1ab4f9});}[_0x3b2f37(0x14b)](){const _0xd37658=_0x3b2f37;let _0x22e03f=this['getType'](),_0x29856c=this[_0xd37658(0x1be)]()[_0xd37658(0x1d7)];switch(_0x22e03f){case _0x5b008e['Grid']:return _0x29856c;case _0x5b008e[_0xd37658(0x18e)]:return _0x29856c;case _0x5b008e[_0xd37658(0x161)]:return _0x29856c;case _0x5b008e['Gantt']:return _0x29856c;case _0x5b008e[_0xd37658(0xb0)]:return _0x29856c;default:return _0x29856c;}}[_0x3b2f37(0x109)](_0x25ee68){const _0x32c56a=_0x3b2f37;return this[_0x32c56a(0x121)]['syncExecuteCommand'](_0x45a334['id'],{'unitId':this[_0x32c56a(0x10d)]['getId'](),'tableId':this['_table'][_0x32c56a(0x8d)](),'viewId':this[_0x32c56a(0x1d8)],'patch':_0x25ee68});}[_0x3b2f37(0x1d1)](){const _0x1aa1a8=_0x3b2f37;var _0x534d93;return _0x36fd3d[_0x1aa1a8(0xc8)](((_0x534d93=this[_0x1aa1a8(0x1be)]()['config'][_0x1aa1a8(0x1d4)])==null?void 0x0:_0x534d93[_0x1aa1a8(0x15e)])??[]);}[_0x3b2f37(0x1ca)](_0x3e65a9){const _0x6ed120=_0x3b2f37;return this[_0x6ed120(0x121)][_0x6ed120(0x17e)](_0x4b486e['id'],{'unitId':this[_0x6ed120(0x10d)][_0x6ed120(0x8d)](),'tableId':this[_0x6ed120(0xe8)][_0x6ed120(0x8d)](),'viewId':this[_0x6ed120(0x1d8)],'type':_0x510c3e[_0x6ed120(0x1cb)],'rules':_0x3e65a9});}[_0x3b2f37(0xeb)](_0x567a92){const _0x2d7600=_0x3b2f37;return this['_commandService'][_0x2d7600(0x17e)](_0x4b486e['id'],{'unitId':this[_0x2d7600(0x10d)][_0x2d7600(0x8d)](),'tableId':this[_0x2d7600(0xe8)][_0x2d7600(0x8d)](),'viewId':this[_0x2d7600(0x1d8)],'type':_0x510c3e[_0x2d7600(0x143)],'rule':_0x567a92});}[_0x3b2f37(0x1de)](_0x531b30){const _0x5539b3=_0x3b2f37;return this[_0x5539b3(0x121)]['syncExecuteCommand'](_0x4b486e['id'],{'unitId':this[_0x5539b3(0x10d)][_0x5539b3(0x8d)](),'tableId':this[_0x5539b3(0xe8)]['getId'](),'viewId':this[_0x5539b3(0x1d8)],'type':_0x510c3e[_0x5539b3(0xd9)],'ruleId':_0x531b30});}[_0x3b2f37(0x1c4)](){const _0x757880=_0x3b2f37;return this[_0x757880(0x121)][_0x757880(0x17e)](_0x4b486e['id'],{'unitId':this[_0x757880(0x10d)]['getId'](),'tableId':this[_0x757880(0xe8)][_0x757880(0x8d)](),'viewId':this['_viewId'],'type':_0x510c3e['Clear']});}[_0x3b2f37(0xf2)](){return this['_getView']()['filter']??null;}[_0x3b2f37(0x1a8)](_0xaf2a33){const _0x20f956=_0x3b2f37;return this[_0x20f956(0x121)][_0x20f956(0x17e)](_0x3943da['id'],{'unitId':this[_0x20f956(0x10d)][_0x20f956(0x8d)](),'tableId':this[_0x20f956(0xe8)]['getId'](),'viewId':this[_0x20f956(0x1d8)],'filter':_0xaf2a33});}[_0x3b2f37(0xb1)](){const _0x262149=_0x3b2f37;return this[_0x262149(0x1be)]()[_0x262149(0x89)]??[];}['setSort'](_0x5e9e2d){const _0x25e7ce=_0x3b2f37;return this[_0x25e7ce(0x121)][_0x25e7ce(0x17e)](_0x388049['id'],{'unitId':this['_base'][_0x25e7ce(0x8d)](),'tableId':this[_0x25e7ce(0xe8)][_0x25e7ce(0x8d)](),'viewId':this['_viewId'],'sort':_0x5e9e2d});}[_0x3b2f37(0x18b)](){const _0x58a5bd=_0x3b2f37;return this[_0x58a5bd(0x1be)]()[_0x58a5bd(0x10b)]??[];}[_0x3b2f37(0x105)](_0x1583b9){const _0x5031ca=_0x3b2f37;return this[_0x5031ca(0x121)][_0x5031ca(0x17e)](_0x4a854f['id'],{'unitId':this[_0x5031ca(0x10d)]['getId'](),'tableId':this[_0x5031ca(0xe8)][_0x5031ca(0x8d)](),'viewId':this[_0x5031ca(0x1d8)],'group':_0x1583b9});}[_0x3b2f37(0x94)](_0x4ae7f8){const _0x549459=_0x3b2f37;var _0x497b86;return V(this['_table']['getTable']()['fields'][_0x4ae7f8])?((_0x497b86=this[_0x549459(0x1be)]()[_0x549459(0x1b7)])==null?void 0x0:_0x497b86[_0x4ae7f8])??{}:{};}[_0x3b2f37(0xbd)](){const _0x3d629a=_0x3b2f37;let _0x246d12=this[_0x3d629a(0xe8)][_0x3d629a(0xc2)](),_0xe9617=this[_0x3d629a(0x1be)]();return(_0xe9617[_0x3d629a(0xfc)]??_0x246d12[_0x3d629a(0xfc)])[_0x3d629a(0x120)](_0x5b2219=>{const _0xa4cfd4=_0x3d629a;var _0x57a0a6;let _0x8ce5a7=_0x246d12[_0xa4cfd4(0xb4)][_0x5b2219];return V(_0x8ce5a7)&&!((_0x57a0a6=_0xe9617['fieldSettings'])!=null&&(_0x57a0a6=_0x57a0a6[_0x5b2219])!=null&&_0x57a0a6[_0xa4cfd4(0xa5)]);})[_0x3d629a(0x1c6)](_0x68606=>this[_0x3d629a(0x1a6)][_0x3d629a(0xdb)](B,this['_base'],this[_0x3d629a(0xe8)],_0x68606));}[_0x3b2f37(0x185)](_0x5b7c02,_0x5d06d1){const _0x2448f9=_0x3b2f37;return V(this[_0x2448f9(0xe8)][_0x2448f9(0xc2)]()['fields'][_0x5b7c02])?this[_0x2448f9(0x121)][_0x2448f9(0x17e)](_0x1b428a['id'],{'unitId':this[_0x2448f9(0x10d)][_0x2448f9(0x8d)](),'tableId':this[_0x2448f9(0xe8)]['getId'](),'viewId':this[_0x2448f9(0x1d8)],'fieldId':_0x5b7c02,'visible':_0x5d06d1}):!0x1;}[_0x3b2f37(0x107)](_0x449af1,_0x4d80dd){const _0x5d801a=_0x3b2f37;return V(this[_0x5d801a(0xe8)]['getTable']()['fields'][_0x449af1])?this[_0x5d801a(0x121)][_0x5d801a(0x17e)](_0x3596a1['id'],{'unitId':this['_base'][_0x5d801a(0x8d)](),'tableId':this[_0x5d801a(0xe8)][_0x5d801a(0x8d)](),'viewId':this['_viewId'],'fieldId':_0x449af1,'width':_0x4d80dd}):!0x1;}[_0x3b2f37(0x133)](_0x251c7f,_0x57c1b1){const _0x47500f=_0x3b2f37;let _0x4e9f86=this['_table'][_0x47500f(0xc2)](),_0x76285f=_0x57c1b1[_0x47500f(0xf7)]??_0x57c1b1[_0x47500f(0xd0)];return!V(_0x4e9f86[_0x47500f(0xb4)][_0x251c7f])||!_0x76285f||!V(_0x4e9f86[_0x47500f(0xb4)][_0x76285f])?!0x1:this['_commandService'][_0x47500f(0x17e)](_0x42af3c['id'],{'unitId':this[_0x47500f(0x10d)][_0x47500f(0x8d)](),'tableId':this['_table'][_0x47500f(0x8d)](),'viewId':this['_viewId'],'fieldId':_0x251c7f,'target':_0x57c1b1});}['move'](_0x2485af){const _0x294858=_0x3b2f37;return this[_0x294858(0x121)][_0x294858(0x17e)](_0x37de2f['id'],{'unitId':this[_0x294858(0x10d)]['getId'](),'tableId':this['_table'][_0x294858(0x8d)](),'viewId':this[_0x294858(0x1d8)],'target':_0x2485af});}[_0x3b2f37(0xc6)](){const _0x5b071b=_0x3b2f37;return this[_0x5b071b(0x121)][_0x5b071b(0x17e)](_0x18125d['id'],{'unitId':this[_0x5b071b(0x10d)]['getId'](),'tableId':this[_0x5b071b(0xe8)][_0x5b071b(0x8d)](),'viewId':this['_viewId']});}['getProjection'](){const _0x3eba86=_0x3b2f37;return this['_projectionService'][_0x3eba86(0xe0)](this[_0x3eba86(0x10d)][_0x3eba86(0x10a)]()['getSnapshot'](),this[_0x3eba86(0xe8)][_0x3eba86(0x8d)](),this[_0x3eba86(0x1d8)]);}[_0x3b2f37(0x1be)](){const _0x545b22=_0x3b2f37;let _0x201139=this[_0x545b22(0xe8)][_0x545b22(0xc2)]()[_0x545b22(0xd3)][this[_0x545b22(0x1d8)]];if(!_0x201139)throw Error(_0x545b22(0x1e3)+this[_0x545b22(0x1d8)]+_0x545b22(0x102));return _0x201139;}};X=z([R(0x4,_0x3fc5b1),R(0x5,_0x376f49),R(0x6,_0x1cb7d5)],X);let Z=class{constructor(_0x1b941a,_0x1ef31e,_0x355cd2,_0x4cbc24,_0x41d188,_0x4844b5){const _0x2d467a=_0x3b2f37;this[_0x2d467a(0x10d)]=_0x1b941a,this[_0x2d467a(0xe2)]=_0x1ef31e,this[_0x2d467a(0x1a6)]=_0x355cd2,this[_0x2d467a(0x121)]=_0x4cbc24,this[_0x2d467a(0x199)]=_0x41d188,this['_projectionService']=_0x4844b5;}['getBase'](){const _0x2ad641=_0x3b2f37;return this['_base'][_0x2ad641(0x10a)]();}[_0x3b2f37(0xc2)](){return this['_getTable']();}['getId'](){return this['_tableId'];}[_0x3b2f37(0x1b1)](){const _0xd75365=_0x3b2f37;return new L(this[_0xd75365(0x10a)]()['getUnitId'](),_0x1a5f5e(this[_0xd75365(0xe2)]),[],this['_commandService'],this[_0xd75365(0x199)]);}['getHierarchyFieldId'](){const _0x17614c=_0x3b2f37;return _0x3bde75(this[_0x17614c(0xf0)]());}[_0x3b2f37(0x1a3)](_0x1fba12){const _0x49c692=_0x3b2f37;return this['_commandService'][_0x49c692(0x17e)](_0x273e9f['id'],{'unitId':this[_0x49c692(0x10d)]['getId'](),'tableId':this['_tableId'],'fieldId':_0x1fba12});}['getName'](){const _0x1b9db2=_0x3b2f37;return this[_0x1b9db2(0xf0)]()['name'];}[_0x3b2f37(0xcc)](){const _0x3e4ed5=_0x3b2f37;let _0x56b81c=this['_base']['getBase']()[_0x3e4ed5(0xb5)]();return _0x31d1af(this[_0x3e4ed5(0xf0)](),_0x56b81c);}['setName'](_0x264d91){const _0x55dbed=_0x3b2f37;let _0x2b24f3=_0x4a1245(this[_0x55dbed(0x10d)]['getBase']()[_0x55dbed(0xb5)](),_0x264d91,this[_0x55dbed(0xe2)]);if(!_0x2b24f3[_0x55dbed(0x113)])throw Error(_0x55dbed(0x190)+_0x264d91+_0x55dbed(0x118)+_0x2d6c44+'\x20'+_0x2b24f3[_0x55dbed(0xe7)]);return this[_0x55dbed(0x121)][_0x55dbed(0x17e)](_0x1e32c6['id'],{'unitId':this['_base'][_0x55dbed(0x8d)](),'tableId':this[_0x55dbed(0xe2)],'name':_0x264d91});}['search'](_0x1668b6,_0x165a91){const _0x3708cf=_0x3b2f37;let _0xc52ed=this[_0x3708cf(0x10d)][_0x3708cf(0x10a)]()[_0x3708cf(0xb5)](),_0x1d150d=this[_0x3708cf(0xf0)]();if(_0x165a91){let _0x3dfb92=this[_0x3708cf(0x152)][_0x3708cf(0xe0)](_0xc52ed,this[_0x3708cf(0xe2)],_0x165a91),_0x3e3894=_0x1d150d[_0x3708cf(0xd3)][_0x165a91],_0x5cc989=_0x1668b6[_0x3708cf(0xe6)]??Tt(_0x1d150d,_0x3e3894,_0x3dfb92),_0x8a6a7f=_0x3708cf(0x184)in _0x3dfb92&&Array['isArray'](_0x3dfb92[_0x3708cf(0x184)])?_0x3dfb92[_0x3708cf(0x184)]:[];return _0x5b0210({..._0x1668b6,'table':_0x1d150d,'fieldIds':_0x5cc989,'rows':_0x8a6a7f});}let _0x8a1e86=(_0x1d150d['recordOrder']?_0x1d150d[_0x3708cf(0x96)]['map'](_0x2a165d=>_0x1d150d['records'][_0x2a165d]):Object['values'](_0x1d150d[_0x3708cf(0x193)])[_0x3708cf(0x89)]((_0x2a1fc1,_0x3677d6)=>_0x2a1fc1['orderKey'][_0x3708cf(0x1e4)](_0x3677d6[_0x3708cf(0xcd)])))[_0x3708cf(0x120)](_0x4facf7=>_0x4facf7)[_0x3708cf(0x1c6)](_0x12c71d=>({'recordId':_0x12c71d['id'],'values':_0x12c71d[_0x3708cf(0x1bc)]})),_0x422478=_0x1668b6[_0x3708cf(0xe6)]??_0x1d150d[_0x3708cf(0xfc)]['filter'](_0x197e63=>V(_0x1d150d[_0x3708cf(0xb4)][_0x197e63]));return _0x5b0210({..._0x1668b6,'table':_0x1d150d,'fieldIds':_0x422478,'rows':_0x8a1e86});}[_0x3b2f37(0x1c9)](){const _0x9f5570=_0x3b2f37;return this[_0x9f5570(0xf0)]()[_0x9f5570(0x92)];}['getFields'](){const _0x2fc0fb=_0x3b2f37;let _0x1385e6=this[_0x2fc0fb(0xf0)]();return _0x1385e6[_0x2fc0fb(0xfc)][_0x2fc0fb(0x1c6)](_0x5e699a=>_0x1385e6[_0x2fc0fb(0xb4)][_0x5e699a])[_0x2fc0fb(0x120)](V)['map'](_0x2a33b1=>this[_0x2fc0fb(0x1a6)][_0x2fc0fb(0xdb)](B,this[_0x2fc0fb(0x10d)],this,_0x2a33b1['id']));}[_0x3b2f37(0x196)](_0x1289ca){const _0x4282a1=_0x3b2f37;let _0x4f18f6=this['_getTable']()['fields'][_0x1289ca];return V(_0x4f18f6)?this['_injector'][_0x4282a1(0xdb)](B,this[_0x4282a1(0x10d)],this,_0x4f18f6['id']):null;}[_0x3b2f37(0x85)](_0x88fa7d){const _0x472886=_0x3b2f37;let _0x4542e5=this[_0x472886(0xf0)]()[_0x472886(0xb4)],_0x377564=Object[_0x472886(0x1bc)](_0x4542e5)[_0x472886(0x179)](_0x20583c=>V(_0x20583c)&&_0x20583c['name']===_0x88fa7d);return _0x377564?this[_0x472886(0x1a6)]['createInstance'](B,this[_0x472886(0x10d)],this,_0x377564['id']):null;}[_0x3b2f37(0x15f)](){const _0x2a5bd5=_0x3b2f37;let _0x128a06=this[_0x2a5bd5(0xf0)]()[_0x2a5bd5(0x92)];return this[_0x2a5bd5(0x1a6)][_0x2a5bd5(0xdb)](B,this[_0x2a5bd5(0x10d)],this,_0x128a06);}[_0x3b2f37(0x183)](_0x264df1,_0x584909,_0x1dc3bc){const _0x689baa=_0x3b2f37;var _0x1871b7,_0x20f3e2;if(!Object['values'](_0x268b7f)[_0x689baa(0x13b)](_0xdabea1=>_0xdabea1===_0x584909))throw Error(_0x689baa(0x163)+String(_0x584909)+'\x22.');if(_0x584909===_0x268b7f[_0x689baa(0xae)]&&this['_prepareFormulaFieldReferences'](_0x264df1,_0x1dc3bc),_0x584909===_0x268b7f[_0x689baa(0xc1)]&&(typeof(_0x1dc3bc==null||(_0x1871b7=_0x1dc3bc[_0x689baa(0x19c)])==null||(_0x1871b7=_0x1871b7['config'])==null?void 0x0:_0x1871b7[_0x689baa(0x149)])!=_0x689baa(0x12c)||typeof _0x1dc3bc[_0x689baa(0x19c)][_0x689baa(0x1d7)][_0x689baa(0x171)]!=_0x689baa(0x1cf)))throw Error('RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.');let _0x22e964={..._0x1dc3bc==null?void 0x0:_0x1dc3bc[_0x689baa(0x19c)],'id':_0x2ea005(0x6),'name':_0x264df1,'type':_0x584909,'config':(_0x1dc3bc==null||(_0x20f3e2=_0x1dc3bc['field'])==null?void 0x0:_0x20f3e2[_0x689baa(0x1d7)])??{}};if(!this[_0x689baa(0x121)][_0x689baa(0x17e)](_0x174ba5['id'],{'unitId':this[_0x689baa(0x10d)][_0x689baa(0x8d)](),'tableId':this[_0x689baa(0xe2)],'field':_0x22e964,'index':_0x1dc3bc==null?void 0x0:_0x1dc3bc[_0x689baa(0x172)]}))throw Error(_0x689baa(0x14e)+_0x264df1+'\x22');return this[_0x689baa(0x1a6)][_0x689baa(0xdb)](B,this[_0x689baa(0x10d)],this,_0x22e964['id']);}[_0x3b2f37(0xf8)](_0x694acf,_0x1ffd98){const _0x4fc1e4=_0x3b2f37;var _0x83fd86;if(!_0x1ffd98||!(_0x4fc1e4(0x16b)in _0x1ffd98)||!Array['isArray'](_0x1ffd98[_0x4fc1e4(0x16b)]))throw Error(_0x4fc1e4(0x140));let _0x444b66=this[_0x4fc1e4(0x121)][_0x4fc1e4(0x17e)](_0x25826c['id'],{'unitId':this[_0x4fc1e4(0x10d)][_0x4fc1e4(0x8d)](),'tableId':this['_tableId'],'formula':String(((_0x83fd86=_0x1ffd98[_0x4fc1e4(0x19c)])==null||(_0x83fd86=_0x83fd86[_0x4fc1e4(0x1d7)])==null?void 0x0:_0x83fd86['formula'])??'')});if(!_0x444b66['valid'])throw Error(_0x444b66[_0x4fc1e4(0xe7)]??_0x4fc1e4(0x12e));if(_0x1ffd98[_0x4fc1e4(0x16b)]['length']>0x0&&!this[_0x4fc1e4(0x121)]['syncExecuteCommand'](_0x5d1890['id'],{'unitId':this[_0x4fc1e4(0x10d)][_0x4fc1e4(0x8d)](),'references':_0x1ffd98[_0x4fc1e4(0x16b)]}))throw Error(_0x4fc1e4(0xff)+_0x694acf+'\x22');}[_0x3b2f37(0x8a)](){const _0x4c8ae1=_0x3b2f37;return this[_0x4c8ae1(0x90)]()[_0x4c8ae1(0x1c6)](_0x5e685e=>this[_0x4c8ae1(0x1a6)]['createInstance'](Y,this[_0x4c8ae1(0x10d)],this,_0x5e685e,this['_injector']));}[_0x3b2f37(0x189)](_0x453365){const _0x2fb2aa=_0x3b2f37;return this[_0x2fb2aa(0xf0)]()[_0x2fb2aa(0x193)][_0x453365]?this[_0x2fb2aa(0x1a6)][_0x2fb2aa(0xdb)](Y,this[_0x2fb2aa(0x10d)],this,_0x453365,this[_0x2fb2aa(0x1a6)]):null;}[_0x3b2f37(0x18f)](_0xe36e80={}){const _0x51e277=_0x3b2f37;let _0x9102bc=this['_getTable'](),_0x324015=this[_0x51e277(0x90)](_0xe36e80),_0x3ae0b6=Math[_0x51e277(0xc9)](0x0,_0xe36e80[_0x51e277(0x16a)]??0x0),_0x488ad0=_0xe36e80[_0x51e277(0x165)]==null?null:Math[_0x51e277(0xc9)](0x0,_0xe36e80[_0x51e277(0x165)]),_0x5198bd=yt(_0x324015['map'](_0x2a4ae9=>_0x9102bc[_0x51e277(0x193)][_0x2a4ae9])[_0x51e277(0x120)](_0x296dec=>xt(_0x296dec,_0x9102bc,_0xe36e80[_0x51e277(0x120)])),_0x9102bc,_0xe36e80['sort']);return{'records':vt(_0x5198bd,_0xe36e80)['map'](_0x1c6552=>this[_0x51e277(0x1a6)][_0x51e277(0xdb)](Y,this[_0x51e277(0x10d)],this,_0x1c6552['id'],this[_0x51e277(0x1a6)])),'total':_0x5198bd['length'],'offset':_0x3ae0b6,'limit':_0x488ad0,'hasMore':_0x488ad0!=null&&_0x3ae0b6+_0x488ad0<_0x5198bd['length']};}['addRecord'](_0x19bab,_0x2637dd='id',_0x524616){const _0x27565e=_0x3b2f37;let _0x3ba4f7=this[_0x27565e(0xf0)](),_0x5d2ab4=Date['now'](),_0x478eb6={..._0x524616,'id':_0x2ea005(0x6),'values':H(_0x3ba4f7,_0x19bab,_0x2637dd),'orderKey':(_0x524616==null?void 0x0:_0x524616[_0x27565e(0xcd)])||''+_0x5d2ab4,'createdAt':(_0x524616==null?void 0x0:_0x524616[_0x27565e(0xef)])||_0x5d2ab4,'updatedAt':(_0x524616==null?void 0x0:_0x524616[_0x27565e(0x82)])||_0x5d2ab4};if(!this[_0x27565e(0x121)][_0x27565e(0x17e)](_0x1193c8['id'],{'unitId':this[_0x27565e(0x10d)][_0x27565e(0x8d)](),'tableId':this[_0x27565e(0xe2)],'record':_0x478eb6,'source':_0x4d5524['Facade']}))throw Error(_0x27565e(0x159)+_0x478eb6['id']+'\x22');return this[_0x27565e(0x1a6)][_0x27565e(0xdb)](Y,this[_0x27565e(0x10d)],this,_0x478eb6['id'],this[_0x27565e(0x1a6)]);}[_0x3b2f37(0x103)](_0x2722f2){const _0x37ce7d=_0x3b2f37;if(!_0x2722f2[_0x37ce7d(0x17b)])return[];let _0x2c5f93=this[_0x37ce7d(0xf0)](),_0x47d7f8=Date[_0x37ce7d(0x17a)](),_0x1e3bc2=_0x2722f2['map']((_0xa4f8c7,_0x12f69d)=>{const _0x3e2cc5=_0x37ce7d;var _0x26f5c4,_0x3bc2c1,_0x127232;return{..._0xa4f8c7[_0x3e2cc5(0x9b)],'id':_0x2ea005(0x6),'values':H(_0x2c5f93,_0xa4f8c7[_0x3e2cc5(0x1bc)],_0xa4f8c7[_0x3e2cc5(0x10f)]??'id'),'orderKey':((_0x26f5c4=_0xa4f8c7[_0x3e2cc5(0x9b)])==null?void 0x0:_0x26f5c4[_0x3e2cc5(0xcd)])||''+(_0x47d7f8+_0x12f69d),'createdAt':((_0x3bc2c1=_0xa4f8c7[_0x3e2cc5(0x9b)])==null?void 0x0:_0x3bc2c1[_0x3e2cc5(0xef)])||_0x47d7f8,'updatedAt':((_0x127232=_0xa4f8c7[_0x3e2cc5(0x9b)])==null?void 0x0:_0x127232[_0x3e2cc5(0x82)])||_0x47d7f8};});if(!this[_0x37ce7d(0x121)][_0x37ce7d(0x17e)](_0xcf9f8c['id'],{'unitId':this[_0x37ce7d(0x10d)][_0x37ce7d(0x8d)](),'tableId':this['_tableId'],'records':_0x1e3bc2,'source':_0x4d5524[_0x37ce7d(0xce)]}))throw Error(_0x37ce7d(0x97));return _0x1e3bc2[_0x37ce7d(0x1c6)](_0xbb0a43=>this[_0x37ce7d(0x1a6)][_0x37ce7d(0xdb)](Y,this[_0x37ce7d(0x10d)],this,_0xbb0a43['id'],this[_0x37ce7d(0x1a6)]));}[_0x3b2f37(0x18d)](_0x4668b7){const _0x42ed34=_0x3b2f37;return!_0x4668b7[_0x42ed34(0x17b)]||this['_commandService']['syncExecuteCommand'](_0x5a7920['id'],{'unitId':this[_0x42ed34(0x10d)][_0x42ed34(0x8d)](),'tableId':this[_0x42ed34(0xe2)],'recordIds':_0x4668b7,'source':_0x4d5524[_0x42ed34(0xce)]});}[_0x3b2f37(0x13d)](_0x2c3dbd,_0x25d4de,_0x5944e3=0x1,_0x316243=0x1){const _0x1d1289=_0x3b2f37;return this[_0x1d1289(0x1a6)]['createInstance'](K,this[_0x1d1289(0x10d)],this,{'startRow':_0x2c3dbd,'endRow':_0x2c3dbd+_0x5944e3-0x1,'startColumn':_0x25d4de,'endColumn':_0x25d4de+_0x316243-0x1},this[_0x1d1289(0x1a6)]);}[_0x3b2f37(0xa4)](){const _0x135c64=_0x3b2f37;var _0x45a8fe;let _0x1735a6=_0x81619(this[_0x135c64(0xf0)]()),_0x397185=((_0x45a8fe=_0x1735a6[_0x135c64(0x96)])==null?void 0x0:_0x45a8fe[_0x135c64(0x17b)])??0x0,_0x5ba8f0=_0x1735a6[_0x135c64(0xfc)][_0x135c64(0x120)](_0x14893e=>V(_0x1735a6[_0x135c64(0xb4)][_0x14893e]))[_0x135c64(0x17b)];return this[_0x135c64(0x13d)](0x0,0x0,Math[_0x135c64(0xc9)](_0x397185,0x1),Math[_0x135c64(0xc9)](_0x5ba8f0,0x1));}[_0x3b2f37(0xe9)](){const _0x37d0f7=_0x3b2f37;let _0x33847a=this[_0x37d0f7(0xf0)]();return _0x33847a[_0x37d0f7(0x11f)][_0x37d0f7(0x120)](_0x4a1cb6=>_0x33847a[_0x37d0f7(0xd3)][_0x4a1cb6])[_0x37d0f7(0x1c6)](_0x38e745=>this[_0x37d0f7(0x1a6)][_0x37d0f7(0xdb)](X,this[_0x37d0f7(0x10d)],this,_0x38e745,this[_0x37d0f7(0x1a6)]));}['getViewById'](_0x21b22e){const _0x124f1b=_0x3b2f37;return this['_getTable']()[_0x124f1b(0xd3)][_0x21b22e]?this[_0x124f1b(0x1a6)][_0x124f1b(0xdb)](X,this[_0x124f1b(0x10d)],this,_0x21b22e,this[_0x124f1b(0x1a6)]):null;}[_0x3b2f37(0x8b)](_0x269882){const _0x535037=_0x3b2f37;let _0xa84429=this[_0x535037(0xf0)](),_0x2e325a=Object[_0x535037(0x1bc)](_0xa84429[_0x535037(0xd3)])[_0x535037(0x179)](_0x2a3c3c=>_0x2a3c3c[_0x535037(0x1c2)]===_0x269882);return _0x2e325a?this[_0x535037(0x1a6)]['createInstance'](X,this[_0x535037(0x10d)],this,_0x2e325a['id'],this[_0x535037(0x1a6)]):null;}[_0x3b2f37(0x141)](_0x379997,_0x4255b6,_0x412d05){const _0xc54d8f=_0x3b2f37;var _0x55dba3,_0x372e00,_0x39b823,_0x5cd4cd;let _0x5a371a=this[_0xc54d8f(0xf0)](),_0x49a8c7=(_0x412d05==null||(_0x55dba3=_0x412d05[_0xc54d8f(0xfb)])==null?void 0x0:_0x55dba3['fieldOrder'])??_0x5a371a[_0xc54d8f(0xfc)],_0x4e01c9=[_0x3cb4f6,..._0x49a8c7['filter'](_0x3cd3ab=>V(_0x5a371a[_0xc54d8f(0xb4)][_0x3cd3ab]))],_0x4741f6={..._0x412d05==null?void 0x0:_0x412d05[_0xc54d8f(0xfb)],'id':_0x2ea005(0x6),'name':_0x379997,'type':_0x4255b6,'tableId':this[_0xc54d8f(0xe2)],'config':(_0x412d05==null||(_0x372e00=_0x412d05['view'])==null?void 0x0:_0x372e00[_0xc54d8f(0x1d7)])??{},'fieldOrder':_0x4e01c9,'fieldSettings':{..._0x412d05==null||(_0x39b823=_0x412d05[_0xc54d8f(0xfb)])==null?void 0x0:_0x39b823['fieldSettings'],[_0x3cb4f6]:{..._0x412d05==null||(_0x5cd4cd=_0x412d05['view'])==null||(_0x5cd4cd=_0x5cd4cd['fieldSettings'])==null?void 0x0:_0x5cd4cd[_0x3cb4f6],'hidden':!0x0}}};if(!this['_commandService'][_0xc54d8f(0x17e)](_0x1adb6d['id'],{'unitId':this[_0xc54d8f(0x10d)]['getId'](),'tableId':this[_0xc54d8f(0xe2)],'view':_0x4741f6,'index':_0x412d05==null?void 0x0:_0x412d05[_0xc54d8f(0x172)]}))throw Error('Failed\x20to\x20create\x20view\x20\x22'+_0x379997+'\x22');return this[_0xc54d8f(0x1a6)][_0xc54d8f(0xdb)](X,this['_base'],this,_0x4741f6['id'],this[_0xc54d8f(0x1a6)]);}[_0x3b2f37(0xed)](){const _0x546204=_0x3b2f37;let _0xb042b6=this[_0x546204(0xf0)](),_0x305e83=_0xb042b6[_0x546204(0xfc)][_0x546204(0x120)](_0x5eb66b=>V(_0xb042b6[_0x546204(0xb4)][_0x5eb66b])),_0x35fe98=_0xb042b6[_0x546204(0x11f)][_0x546204(0x120)](_0x50f46b=>_0xb042b6[_0x546204(0xd3)][_0x50f46b]);return{'id':_0xb042b6['id'],'name':_0xb042b6[_0x546204(0x1c2)],'formulaName':this[_0x546204(0xcc)](),'primaryFieldId':_0xb042b6[_0x546204(0x92)],'fieldIds':_0x305e83,'viewIds':_0x35fe98,'recordCount':this['_resolveRecordIds']()['length'],'fields':_0x305e83[_0x546204(0x1c6)](_0x2bc53e=>{const _0x403ffe=_0x546204;let _0x21cba2=_0xb042b6[_0x403ffe(0xb4)][_0x2bc53e];return{'id':_0x21cba2['id'],'name':_0x21cba2[_0x403ffe(0x1c2)],'type':_0x21cba2[_0x403ffe(0xa2)],'config':_0x21cba2[_0x403ffe(0x1d7)],'readonly':_0x21cba2[_0x403ffe(0x147)],'description':_0x21cba2[_0x403ffe(0xd2)]};}),'views':_0x35fe98[_0x546204(0x1c6)](_0x2bd7d8=>{const _0x42b3b0=_0x546204;let _0x4f700a=_0xb042b6['views'][_0x2bd7d8];return{'id':_0x4f700a['id'],'name':_0x4f700a[_0x42b3b0(0x1c2)],'type':_0x4f700a[_0x42b3b0(0xa2)]};})};}[_0x3b2f37(0xf0)](){const _0xf35cb=_0x3b2f37;let _0x511aa5=this['_base'][_0xf35cb(0x10a)]()[_0xf35cb(0xb5)]()[_0xf35cb(0x1c0)][this[_0xf35cb(0xe2)]];if(!_0x511aa5)throw Error(_0xf35cb(0xc5)+this[_0xf35cb(0xe2)]+_0xf35cb(0x102));return _0x511aa5;}[_0x3b2f37(0x90)](_0x25bd5b={}){const _0x2261e7=_0x3b2f37;let _0x1bfa88=this[_0x2261e7(0x10d)]['getBase']()['getSnapshot'](),_0x1f81a2=this[_0x2261e7(0xf0)]();if(_0x25bd5b['viewId']){let _0x2b3e1a=this[_0x2261e7(0x152)][_0x2261e7(0xe0)](_0x1bfa88,this[_0x2261e7(0xe2)],_0x25bd5b[_0x2261e7(0x11e)]);if(_0x2261e7(0x184)in _0x2b3e1a&&Array[_0x2261e7(0x1ae)](_0x2b3e1a[_0x2261e7(0x184)]))return _0x2b3e1a[_0x2261e7(0x184)][_0x2261e7(0x1c6)](_0x2f766a=>_0x2f766a[_0x2261e7(0x87)]);}return(_0x1f81a2[_0x2261e7(0x96)]?_0x1f81a2['recordOrder'][_0x2261e7(0x1c6)](_0x586135=>_0x1f81a2[_0x2261e7(0x193)][_0x586135]):Object[_0x2261e7(0x1bc)](_0x1f81a2['records'])[_0x2261e7(0x89)]((_0xc7b44d,_0x22eceb)=>_0xc7b44d[_0x2261e7(0xcd)]['localeCompare'](_0x22eceb['orderKey'])))[_0x2261e7(0x120)](_0x5e4380=>_0x5e4380)[_0x2261e7(0x1c6)](_0x3b85a4=>_0x3b85a4['id']);}};Z=z([R(0x3,_0x3fc5b1),R(0x4,_0x376f49),R(0x5,_0x1cb7d5)],Z);function vt(_0x23b60f,_0x1a87ea){const _0xb3cb48=_0x3b2f37;let _0x4132ef=Math[_0xb3cb48(0xc9)](0x0,_0x1a87ea[_0xb3cb48(0x16a)]??0x0);return _0x1a87ea[_0xb3cb48(0x165)]==null?_0x23b60f[_0xb3cb48(0xea)](_0x4132ef):_0x23b60f[_0xb3cb48(0xea)](_0x4132ef,_0x4132ef+Math[_0xb3cb48(0xc9)](0x0,_0x1a87ea[_0xb3cb48(0x165)]));}function yt(_0x54b207,_0x247fe8,_0x382ab9=[]){const _0x43efdd=_0x3b2f37;return _0x382ab9[_0x43efdd(0x17b)]?[..._0x54b207][_0x43efdd(0x89)]((_0x12fbb1,_0x271ff8)=>{const _0x406a20=_0x43efdd;for(let _0x5c6f08 of _0x382ab9){var _0x2f3bb2;let _0x370ddc=_0x5c6f08[_0x406a20(0x1d0)]===_0x23c723[_0x406a20(0x1a4)]?-0x1:0x1,_0x58571f=bt(_0x12fbb1[_0x406a20(0x1bc)][_0x5c6f08[_0x406a20(0x125)]],_0x271ff8[_0x406a20(0x1bc)][_0x5c6f08['fieldId']],(_0x2f3bb2=_0x247fe8[_0x406a20(0xb4)][_0x5c6f08[_0x406a20(0x125)]])==null?void 0x0:_0x2f3bb2[_0x406a20(0xa2)]);if(_0x58571f!==0x0)return _0x58571f*_0x370ddc;}return String(_0x12fbb1[_0x406a20(0xcd)]??_0x12fbb1['id'])[_0x406a20(0x1e4)](String(_0x271ff8['orderKey']??_0x271ff8['id']));}):_0x54b207;}function bt(_0x2ba1d9,_0xfd2fac,_0x36aa1c){const _0x14022e=_0x3b2f37;return _0x2ba1d9==null&&_0xfd2fac==null?0x0:_0x2ba1d9==null?-0x1:_0xfd2fac==null?0x1:typeof _0x2ba1d9=='number'&&typeof _0xfd2fac==_0x14022e(0xab)?_0x2ba1d9-_0xfd2fac:_0x36aa1c===_0x268b7f[_0x14022e(0x11d)]?Number(_0x2ba1d9)-Number(_0xfd2fac):String(_0x2ba1d9)[_0x14022e(0x1e4)](String(_0xfd2fac));}function xt(_0x19f2aa,_0x30c131,_0x4988a4){const _0x13229f=_0x3b2f37;var _0xcd61b3;if(!_0x4988a4||!((_0xcd61b3=_0x4988a4['conditions'])!=null&&_0xcd61b3[_0x13229f(0x17b)]))return!0x0;let {conjunction:_0x34397b=_0x29b07b['OR'],conditions:_0x5b096b}=_0x4988a4;return _0x34397b===_0x29b07b[_0x13229f(0xee)]&&_0x5b096b[_0x13229f(0x17b)]>0x1?_0x5b096b[_0x13229f(0x164)](_0x565573=>St(_0x19f2aa,_0x30c131,_0x565573)):_0x5b096b['some'](_0x2991c3=>St(_0x19f2aa,_0x30c131,_0x2991c3));}function St(_0x5848eb,_0x2d072e,_0x5a762d){const _0x2fc6b2=_0x3b2f37;let _0x3ed4=_0x5848eb['values'][_0x5a762d[_0x2fc6b2(0x125)]],_0x2ff59c=_0x2d072e[_0x2fc6b2(0xb4)][_0x5a762d[_0x2fc6b2(0x125)]];if(Ct(_0x5a762d)){let _0x19a6a8=wt(_0x5a762d)['test'](String(_0x3ed4??''));return _0x5a762d['operator']===_0x2fc6b2(0xba)?_0x19a6a8:!_0x19a6a8;}return!_0x2ff59c||_0x5ec685(_0x3ed4,_0x5a762d[_0x2fc6b2(0xe1)],_0x5a762d[_0x2fc6b2(0x80)],_0x2ff59c);}function Ct(_0x16dac4){const _0x19d762=_0x3b2f37;return _0x16dac4[_0x19d762(0xe1)]===_0x19d762(0xba)||_0x16dac4['operator']===_0x19d762(0x130);}function wt(_0x1b0d81){const _0x2bdba0=_0x3b2f37;let _0x3f95c=String(_0x1b0d81['value']??'');if(_0x3f95c[_0x2bdba0(0x17b)]>0x200)throw Error('Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.');try{return new RegExp(_0x3f95c,_0x1b0d81[_0x2bdba0(0x1b0)]?void 0x0:'i');}catch(_0x49d2af){throw Error(_0x2bdba0(0x197)+_0x3f95c+'.\x20'+(_0x49d2af instanceof Error?_0x49d2af['message']:String(_0x49d2af)));}}function Tt(_0x1b1b85,_0x39ce55,_0x42617f){const _0x3b5006=_0x3b2f37;if(_0x42617f[_0x3b5006(0xa2)]!==_0x3b5006(0x9e)&&_0x42617f[_0x3b5006(0xa2)]!==_0x3b5006(0xc7)){var _0x88d1a4;if(_0x42617f[_0x3b5006(0xa2)]===_0x5b008e[_0x3b5006(0x18e)]){var _0x435637;let _0x1dcb1b=[((_0x435637=_0x42617f[_0x3b5006(0xb4)])==null||(_0x435637=_0x435637[0x0])==null?void 0x0:_0x435637['id'])??_0x1b1b85['primaryFieldId'],..._0x42617f[_0x3b5006(0x17d)]??[]];return Array[_0x3b5006(0x1e0)](new Set(_0x1dcb1b[_0x3b5006(0x120)](_0x464f33=>!!_0x1b1b85[_0x3b5006(0xb4)][_0x464f33])));}if((_0x88d1a4=_0x42617f[_0x3b5006(0xb4)])!=null&&_0x88d1a4['length'])return _0x42617f['fields'][_0x3b5006(0x1c6)](_0x20c921=>_0x20c921['id'])[_0x3b5006(0x120)](_0x48a91f=>{const _0x54e19b=_0x3b5006;var _0x45b187;return!(!_0x1b1b85[_0x54e19b(0xb4)][_0x48a91f]||_0x39ce55!=null&&(_0x45b187=_0x39ce55[_0x54e19b(0x1b7)])!=null&&(_0x45b187=_0x45b187[_0x48a91f])!=null&&_0x45b187['hidden']);});}return _0x1b1b85['fieldOrder'][_0x3b5006(0x120)](_0x3e8e1f=>{const _0x2eebf3=_0x3b5006;var _0x2c0f89;return!(!_0x1b1b85['fields'][_0x3e8e1f]||_0x39ce55!=null&&(_0x2c0f89=_0x39ce55[_0x2eebf3(0x1b7)])!=null&&(_0x2c0f89=_0x2c0f89[_0x3e8e1f])!=null&&_0x2c0f89[_0x2eebf3(0xa5)]);});}let Q=class extends _0x30c594['FBase']{constructor(_0x59a945,_0x4b8ca6,_0x47528c,_0x32ddc5,_0x3a1130){const _0x509475=_0x3b2f37;super(),this['_base']=_0x59a945,this[_0x509475(0x1a6)]=_0x4b8ca6,this['_resourceLoaderService']=_0x47528c,this[_0x509475(0x121)]=_0x32ddc5,this[_0x509475(0x199)]=_0x3a1130;}[_0x3b2f37(0x10a)](){const _0x26b40c=_0x3b2f37;return this[_0x26b40c(0x10d)];}[_0x3b2f37(0x8d)](){const _0x564acd=_0x3b2f37;return this[_0x564acd(0x10d)]['getUnitId']();}[_0x3b2f37(0x1b1)](){const _0x6ade66=_0x3b2f37;return new at(this[_0x6ade66(0x8d)](),this['_commandService'],this[_0x6ade66(0x199)]);}['save'](){const _0x1570b7=_0x3b2f37;return this[_0x1570b7(0x124)][_0x1570b7(0x16f)](this[_0x1570b7(0x8d)]())??_0x36fd3d[_0x1570b7(0xc8)](this[_0x1570b7(0x10d)][_0x1570b7(0xb5)]());}[_0x3b2f37(0x19a)](){const _0x1b385b=_0x3b2f37;return this[_0x1b385b(0x10d)][_0x1b385b(0xb5)]()[_0x1b385b(0x1c2)];}['setName'](_0x8a8951){const _0x5c94cd=_0x3b2f37;this[_0x5c94cd(0x121)]['syncExecuteCommand'](_0x8afdd0['id'],{'unitId':this[_0x5c94cd(0x8d)](),'name':_0x8a8951});}[_0x3b2f37(0x1bf)](){const _0x1bd2bc=_0x3b2f37;let _0x151417=this['_base'][_0x1bd2bc(0xb5)]();return _0x151417[_0x1bd2bc(0xb8)][_0x1bd2bc(0x1c6)](_0x398709=>_0x151417[_0x1bd2bc(0x1c0)][_0x398709])[_0x1bd2bc(0x120)](_0x4816b1=>_0x4816b1)[_0x1bd2bc(0x1c6)](_0x3b0bfe=>this[_0x1bd2bc(0x1a6)]['createInstance'](Z,this,_0x3b0bfe['id'],this[_0x1bd2bc(0x1a6)]));}['getTableById'](_0xa69c92){const _0x38f37e=_0x3b2f37;let _0x27563e=this['_base'][_0x38f37e(0xb5)]()[_0x38f37e(0x1c0)][_0xa69c92];return _0x27563e?this[_0x38f37e(0x1a6)]['createInstance'](Z,this,_0x27563e['id'],this['_injector']):null;}[_0x3b2f37(0x15d)](_0x4e3166){const _0x451f90=_0x3b2f37;let _0x4ef96b=this[_0x451f90(0x10d)][_0x451f90(0xb5)](),_0x494bee=Object[_0x451f90(0x1bc)](_0x4ef96b[_0x451f90(0x1c0)])[_0x451f90(0x179)](_0x5a1043=>_0x5a1043[_0x451f90(0x1c2)]===_0x4e3166);return _0x494bee?this['_injector'][_0x451f90(0xdb)](Z,this,_0x494bee['id'],this[_0x451f90(0x1a6)]):null;}[_0x3b2f37(0x12a)](_0x40e9ad,_0x38aa9a){const _0x472df2=_0x3b2f37;let _0xcb710d=_0x5bad1c({'id':_0x2ea005(),'name':_0x40e9ad,..._0x38aa9a==null?void 0x0:_0x38aa9a[_0x472df2(0x17c)],'primaryFieldName':_0x38aa9a==null?void 0x0:_0x38aa9a[_0x472df2(0x100)]}),_0x40af2a=_0x36fd3d[_0x472df2(0xfa)](_0xcb710d,(_0x38aa9a==null?void 0x0:_0x38aa9a[_0x472df2(0x17c)])??{}),_0x2105b3=_0x4a1245(this['_base'][_0x472df2(0xb5)](),_0x40af2a[_0x472df2(0x1c2)]);if(!_0x2105b3['valid'])throw Error(_0x472df2(0x1ad)+_0x40af2a[_0x472df2(0x1c2)]+_0x472df2(0x118)+_0x2d6c44+'\x20'+_0x2105b3[_0x472df2(0xe7)]);if(!this['_commandService'][_0x472df2(0x17e)](_0x36d876['id'],{'unitId':this['_base'][_0x472df2(0x132)](),'table':_0x40af2a,'index':_0x38aa9a==null?void 0x0:_0x38aa9a[_0x472df2(0x172)]}))throw Error(_0x472df2(0x176)+_0x40e9ad+'\x22.');return this[_0x472df2(0x1a6)]['createInstance'](Z,this,_0x40af2a['id'],this[_0x472df2(0x1a6)]);}[_0x3b2f37(0xd1)](_0x34e392){const _0x675c42=_0x3b2f37;let _0x4492c0=typeof _0x34e392==_0x675c42(0x12c)?_0x34e392:_0x34e392[_0x675c42(0x8d)]();if(!this['_commandService'][_0x675c42(0x17e)](_0x337224['id'],{'unitId':this['_base'][_0x675c42(0x132)](),'tableId':_0x4492c0}))throw Error(_0x675c42(0x19e)+_0x4492c0+'\x22.');return!0x0;}['duplicateTable'](_0xd42648,_0x2ed176){const _0x10989d=_0x3b2f37;let _0x1fc9a0=this[_0x10989d(0x10d)][_0x10989d(0xb5)](),_0xf5dd0a=typeof _0xd42648==_0x10989d(0x12c)?_0xd42648:_0xd42648[_0x10989d(0x8d)](),_0xe59fc9=_0x1fc9a0[_0x10989d(0x1c0)][_0xf5dd0a];if(!_0xe59fc9)throw Error(_0x10989d(0x13f)+_0xf5dd0a+_0x10989d(0x102));let _0x4ced53=_0x1fc9a0[_0x10989d(0xb8)][_0x10989d(0x83)](_0xf5dd0a)+0x1,_0x170ea2=_0x2ea005(),_0x273389=_0x1343fb(_0xe59fc9,{'id':_0x170ea2,'name':_0x3b265e(_0x1fc9a0,_0xe59fc9[_0x10989d(0x1c2)]+'\x20Copy'),'includeRecords':(_0x2ed176==null?void 0x0:_0x2ed176['includeRecords'])??!0x1,'regenerateViewIds':(_0x2ed176==null?void 0x0:_0x2ed176['regenerateViewIds'])??!0x1});if(!this[_0x10989d(0x121)][_0x10989d(0x17e)](_0x36d876['id'],{'unitId':this[_0x10989d(0x10d)][_0x10989d(0x132)](),'table':_0x273389,'index':_0x4ced53}))throw Error(_0x10989d(0xd8)+_0xf5dd0a+'\x22.');return this[_0x10989d(0x1a6)][_0x10989d(0xdb)](Z,this,_0x273389['id'],this['_injector']);}[_0x3b2f37(0xed)](){const _0x1366cd=_0x3b2f37;let _0x172f6b=this[_0x1366cd(0x10d)][_0x1366cd(0xb5)]();return{'id':_0x172f6b['id'],'name':_0x172f6b[_0x1366cd(0x1c2)],'tables':this[_0x1366cd(0x1bf)]()[_0x1366cd(0x1c6)](_0x52b2cf=>_0x52b2cf[_0x1366cd(0xed)]())};}};Q=z([R(0x1,_0x5abbd7(_0x4b43b6)),R(0x2,_0x183c06),R(0x3,_0x3fc5b1),R(0x4,_0x376f49)],Q);var Et=class extends _0x4602a3{[_0x3b2f37(0x136)](){const _0x1abc2c=_0x3b2f37;this['_initBaseBeforeEvents'](),this[_0x1abc2c(0xda)]();}[_0x3b2f37(0x139)](_0x209a45={},_0x59616f){const _0x3557da=_0x3b2f37;let _0x2159c5=this[_0x3557da(0x1d5)]['createUnit'](_0xbc8b5a[_0x3557da(0xd6)],_0x209a45,_0x59616f);return this[_0x3557da(0x1a6)]['createInstance'](Q,_0x2159c5);}[_0x3b2f37(0xa6)](){const _0x4350c4=_0x3b2f37;let _0x3fe7d0=this[_0x4350c4(0x1d5)][_0x4350c4(0x181)](_0xbc8b5a['UNIVER_BASE']);return _0x3fe7d0?this[_0x4350c4(0x1a6)][_0x4350c4(0xdb)](Q,_0x3fe7d0):null;}[_0x3b2f37(0x10a)](_0x375001){const _0x45bf18=_0x3b2f37;let _0x3e278a=this[_0x45bf18(0x1d5)][_0x45bf18(0x13c)](_0x375001,_0xbc8b5a[_0x45bf18(0xd6)]);return _0x3e278a?this[_0x45bf18(0x1a6)][_0x45bf18(0xdb)](Q,_0x3e278a):null;}['getBases'](){const _0x28dd88=_0x3b2f37;return this[_0x28dd88(0x1d5)][_0x28dd88(0x93)](_0xbc8b5a[_0x28dd88(0xd6)])[_0x28dd88(0x1c6)](_0xfe1657=>this['_injector'][_0x28dd88(0xdb)](Q,_0xfe1657));}[_0x3b2f37(0xda)](){const _0x38fe1a=_0x3b2f37;this[_0x38fe1a(0x95)](this[_0x38fe1a(0xec)](this[_0x38fe1a(0x1ba)][_0x38fe1a(0x15c)],()=>this[_0x38fe1a(0x121)][_0x38fe1a(0x9f)]((_0x54cc05,_0x1fc798)=>{const _0x128e6e=_0x38fe1a;var _0x2520ca;if(!$(_0x54cc05,_0x34855e))return;let _0x44f430=_0x54cc05['params'];if(!((_0x2520ca=_0x44f430[_0x128e6e(0x19b)])!=null&&_0x2520ca[_0x128e6e(0x17b)]))return;let _0x3a3662=this['getBase'](_0x44f430[_0x128e6e(0xdd)]),_0x3432fe=_0x3a3662==null?void 0x0:_0x3a3662['getTableById'](_0x44f430['hierarchyChanges'][0x0][_0x128e6e(0x157)]);if(!_0x3a3662||!_0x3432fe)return;let _0x319af1={'base':_0x3a3662,'table':_0x3432fe,'changes':_0x44f430[_0x128e6e(0x19b)],'source':_0x1fc798!=null&&_0x1fc798[_0x128e6e(0x98)]?_0x4d5524[_0x128e6e(0x177)]:_0x44f430[_0x128e6e(0x1c7)]??_0x4d5524['UI']};this[_0x128e6e(0x14f)](this[_0x128e6e(0x1ba)][_0x128e6e(0x15c)],_0x319af1);}))),this[_0x38fe1a(0x95)](this[_0x38fe1a(0xec)](this[_0x38fe1a(0x1ba)][_0x38fe1a(0xca)],()=>this[_0x38fe1a(0x121)][_0x38fe1a(0x9f)](_0x1e0567=>{const _0x125688=_0x38fe1a;if(_0x1e0567['id']!==_0x36d876['id'])return;let {unitId:_0x4f251f,table:_0x5497c6,index:_0x403e1e}=_0x1e0567['params'],_0x56b3ac=this['getBase'](_0x4f251f);if(!_0x56b3ac)return;let _0x4c5079={'base':_0x56b3ac,'table':_0x5497c6,'index':_0x403e1e};this[_0x125688(0x14f)](this[_0x125688(0x1ba)]['BaseTableCreated'],_0x4c5079);}))),this[_0x38fe1a(0x95)](this[_0x38fe1a(0xec)](this[_0x38fe1a(0x1ba)][_0x38fe1a(0x1ce)],()=>this[_0x38fe1a(0x121)][_0x38fe1a(0x9f)](_0x38e548=>{const _0x5f0925=_0x38fe1a;if(_0x38e548['id']!==_0x174ba5['id'])return;let {unitId:_0x44bb22,tableId:_0x54b026,field:_0x21c44c,index:_0xc46240,viewIndexes:_0xb07430}=_0x38e548[_0x5f0925(0x192)],_0x8c246=this[_0x5f0925(0x10a)](_0x44bb22);if(!_0x8c246)return;let _0x197aa5=_0x8c246['getTableById'](_0x54b026);if(!_0x197aa5)return;let _0x20de7e={'base':_0x8c246,'table':_0x197aa5,'field':_0x21c44c,'index':_0xc46240,'viewIndexes':_0xb07430};this['fireEvent'](this[_0x5f0925(0x1ba)][_0x5f0925(0x1ce)],_0x20de7e);}))),this[_0x38fe1a(0x95)](this[_0x38fe1a(0xec)](this[_0x38fe1a(0x1ba)][_0x38fe1a(0x131)],()=>this[_0x38fe1a(0x121)][_0x38fe1a(0x9f)](_0xc66bf9=>{const _0x409034=_0x38fe1a;if(_0xc66bf9['id']!==_0x1193c8['id']&&_0xc66bf9['id']!==_0xcf9f8c['id'])return;let _0x17755f=_0xc66bf9[_0x409034(0x192)],{unitId:_0x3c43ed,tableId:_0x10353d}=_0x17755f,_0x39d0b3=_0x17755f[_0x409034(0x193)]??[_0x17755f[_0x409034(0x9b)]],_0xc2b42=this['getBase'](_0x3c43ed);if(!_0xc2b42)return;let _0x38f1ba=_0xc2b42[_0x409034(0x151)](_0x10353d);if(!_0x38f1ba)return;let _0x4893f6={'base':_0xc2b42,'table':_0x38f1ba,'records':_0x39d0b3};this[_0x409034(0x14f)](this[_0x409034(0x1ba)][_0x409034(0x131)],_0x4893f6);}))),this[_0x38fe1a(0x95)](this[_0x38fe1a(0xec)](this[_0x38fe1a(0x1ba)]['BaseTableViewCreated'],()=>this['_commandService'][_0x38fe1a(0x9f)](_0x400a12=>{const _0x43e8df=_0x38fe1a;if(_0x400a12['id']!==_0x1adb6d['id'])return;let {unitId:_0x37d3bc,tableId:_0x54196d,view:_0x5d976d,index:_0x185f6b}=_0x400a12[_0x43e8df(0x192)],_0x11e2e2=this[_0x43e8df(0x10a)](_0x37d3bc);if(!_0x11e2e2)return;let _0x58eccd=_0x11e2e2[_0x43e8df(0x151)](_0x54196d);if(!_0x58eccd)return;let _0x1e1bb1={'base':_0x11e2e2,'table':_0x58eccd,'view':_0x5d976d,'index':_0x185f6b};this['fireEvent'](this['Event'][_0x43e8df(0xd5)],_0x1e1bb1);}))),this[_0x38fe1a(0x95)](this[_0x38fe1a(0xec)](this[_0x38fe1a(0x1ba)][_0x38fe1a(0x1df)],()=>this[_0x38fe1a(0x121)]['onCommandExecuted'](_0x24981d=>{const _0x4cc7bb=_0x38fe1a;if(_0x24981d['id']!==_0x1b0f5c['id'])return;let {unitId:_0x39cd8b,tableId:_0x17dde4,recordId:_0x3375cd,fieldId:_0x5934c4,value:_0x3b7c5f}=_0x24981d[_0x4cc7bb(0x192)],_0x72d78b=this[_0x4cc7bb(0x10a)](_0x39cd8b);if(!_0x72d78b)return;let _0x2f2dbf=_0x72d78b[_0x4cc7bb(0x151)](_0x17dde4);if(!_0x2f2dbf)return;let _0x3adeac=_0x2f2dbf[_0x4cc7bb(0x196)](_0x5934c4);if(!_0x3adeac)return;let _0x477dcf=_0x2f2dbf[_0x4cc7bb(0x189)](_0x3375cd);if(!_0x477dcf)return;let _0x5dcada={'base':_0x72d78b,'table':_0x2f2dbf,'field':_0x3adeac,'record':_0x477dcf,'value':_0x3b7c5f};this['fireEvent'](this['Event'][_0x4cc7bb(0x1df)],_0x5dcada);})));}[_0x3b2f37(0x115)](){const _0x4a5bd9=_0x3b2f37;this[_0x4a5bd9(0x95)](this[_0x4a5bd9(0xec)](this['Event'][_0x4a5bd9(0xa8)],()=>this[_0x4a5bd9(0x121)][_0x4a5bd9(0x1a5)](_0x1b25ea=>{const _0x35133a=_0x4a5bd9;if($(_0x1b25ea,_0x46d1e8)){let {unitId:_0x5ad8f4,tableId:_0x3e8606,patches:_0x468361,source:_0x5661f1=_0x4d5524['UI']}=_0x1b25ea[_0x35133a(0x192)],_0x5c2983=this['_getHierarchyEventContext'](_0x5ad8f4,_0x3e8606);if(!_0x5c2983)return;this['_fireBeforeHierarchyChange'](_0x5c2983['base'],_0x5c2983[_0x35133a(0x17c)],_0x50df42(_0x5c2983[_0x35133a(0x17c)][_0x35133a(0xc2)](),_0x468361),_0x5661f1);return;}if($(_0x1b25ea,_0xa0c8e2)){let {unitId:_0x2a234d,tableId:_0x270dda,patches:_0x5eb168,source:_0x19c6ab=_0x4d5524['UI']}=_0x1b25ea['params'],_0x53dc3f=this[_0x35133a(0x1c8)](_0x2a234d,_0x270dda);if(!_0x53dc3f)return;let _0x267754=_0x53dc3f[_0x35133a(0x17c)]['getTable']();this[_0x35133a(0xb6)](_0x53dc3f[_0x35133a(0x18c)],_0x53dc3f[_0x35133a(0x17c)],_0x50df42(_0x267754,_0x55a4b7(_0x267754,_0x5eb168)),_0x19c6ab);return;}if($(_0x1b25ea,_0x1193c8)){let _0x574efc=_0x1b25ea['params'],_0x41f2ea=this[_0x35133a(0x1c8)](_0x574efc[_0x35133a(0xdd)],_0x574efc[_0x35133a(0x157)]);if(!_0x41f2ea)return;this[_0x35133a(0xb6)](_0x41f2ea[_0x35133a(0x18c)],_0x41f2ea['table'],_0x377fbc(_0x41f2ea[_0x35133a(0x17c)][_0x35133a(0xc2)](),[_0x574efc['record']]),_0x574efc[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if($(_0x1b25ea,_0xcf9f8c)){let _0x1d5499=_0x1b25ea[_0x35133a(0x192)],_0x5fc66c=this['_getHierarchyEventContext'](_0x1d5499['unitId'],_0x1d5499['tableId']);if(!_0x5fc66c)return;this['_fireBeforeHierarchyChange'](_0x5fc66c[_0x35133a(0x18c)],_0x5fc66c[_0x35133a(0x17c)],_0x377fbc(_0x5fc66c[_0x35133a(0x17c)][_0x35133a(0xc2)](),_0x1d5499['records']),_0x1d5499[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if($(_0x1b25ea,_0x292c95)){let _0x3ee38=_0x1b25ea[_0x35133a(0x192)],_0x489678=this[_0x35133a(0x1c8)](_0x3ee38['unitId'],_0x3ee38[_0x35133a(0x157)]);if(!_0x489678)return;this[_0x35133a(0xb6)](_0x489678[_0x35133a(0x18c)],_0x489678[_0x35133a(0x17c)],_0x377fbc(_0x489678[_0x35133a(0x17c)][_0x35133a(0xc2)](),[_0x3ee38[_0x35133a(0x9b)]]),_0x3ee38[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if($(_0x1b25ea,_0xd3c5c2)){let _0x5dad46=_0x1b25ea['params'],_0x3a1fc8=this[_0x35133a(0x1c8)](_0x5dad46['unitId'],_0x5dad46[_0x35133a(0x157)]);if(!_0x3a1fc8)return;let _0x1c1709=_0x3a1fc8[_0x35133a(0x17c)][_0x35133a(0xc2)](),_0x48c29f=_0x5dad46['fieldId']??_0x3bde75(_0x1c1709),_0x3c28ae=_0xfa6b82(_0x1c1709,_0x48c29f)['parentByRecordId'][_0x35133a(0x167)](_0x5dad46['recordId'])??null;this['_fireBeforeHierarchyChange'](_0x3a1fc8[_0x35133a(0x18c)],_0x3a1fc8['table'],[{'tableId':_0x5dad46[_0x35133a(0x157)],'fieldId':_0x48c29f,'recordId':_0x5dad46['recordId'],'oldParentRecordId':_0x3c28ae,'parentRecordId':_0x5dad46[_0x35133a(0xe3)]}],_0x5dad46[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if($(_0x1b25ea,_0x2a209d)){let _0x308922=_0x1b25ea[_0x35133a(0x192)],_0x85aa12=this[_0x35133a(0x1c8)](_0x308922[_0x35133a(0xdd)],_0x308922[_0x35133a(0x157)]);if(!_0x85aa12)return;let _0x5ced3a=_0x308922[_0x35133a(0x125)]??_0x3bde75(_0x85aa12[_0x35133a(0x17c)][_0x35133a(0xc2)]());this[_0x35133a(0xb6)](_0x85aa12[_0x35133a(0x18c)],_0x85aa12[_0x35133a(0x17c)],[{'tableId':_0x308922[_0x35133a(0x157)],'fieldId':_0x5ced3a,'recordId':_0x308922['record']['id'],'oldParentRecordId':null,'parentRecordId':_0x308922['parentRecordId']}],_0x308922[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if($(_0x1b25ea,_0x6344c7)){let _0x17e6ab=_0x1b25ea['params'],_0x7a92ba=this[_0x35133a(0x1c8)](_0x17e6ab['unitId'],_0x17e6ab[_0x35133a(0x157)]);if(!_0x7a92ba)return;this[_0x35133a(0xb6)](_0x7a92ba[_0x35133a(0x18c)],_0x7a92ba['table'],_0xb2debb(_0x7a92ba['table'][_0x35133a(0xc2)](),[_0x17e6ab['recordId']]),_0x17e6ab[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if($(_0x1b25ea,_0x5a7920)){let _0x7fb82d=_0x1b25ea[_0x35133a(0x192)],_0x4d4d67=this[_0x35133a(0x1c8)](_0x7fb82d[_0x35133a(0xdd)],_0x7fb82d[_0x35133a(0x157)]);if(!_0x4d4d67)return;this[_0x35133a(0xb6)](_0x4d4d67[_0x35133a(0x18c)],_0x4d4d67[_0x35133a(0x17c)],_0xb2debb(_0x4d4d67[_0x35133a(0x17c)][_0x35133a(0xc2)](),_0x7fb82d[_0x35133a(0xde)]),_0x7fb82d[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if(!$(_0x1b25ea,_0x1b0f5c))return;let _0x5b905c=_0x1b25ea[_0x35133a(0x192)],_0x33e033=this[_0x35133a(0x1c8)](_0x5b905c[_0x35133a(0xdd)],_0x5b905c['tableId']);if(!_0x33e033)return;let _0x1db71a=_0x33e033[_0x35133a(0x17c)][_0x35133a(0xc2)]();if(!_0xdc3ff5(_0x1db71a)[_0x35133a(0x117)](_0x5b905c[_0x35133a(0x125)]))return;let _0x11f554=_0xfa6b82(_0x1db71a,_0x5b905c[_0x35133a(0x125)])['parentByRecordId'][_0x35133a(0x167)](_0x5b905c[_0x35133a(0x87)])??null,_0xe859be=_0xea2e53(_0x5b905c['value'])[0x0]??null;_0x11f554!==_0xe859be&&this[_0x35133a(0xb6)](_0x33e033['base'],_0x33e033['table'],[{'tableId':_0x5b905c['tableId'],'fieldId':_0x5b905c['fieldId'],'recordId':_0x5b905c[_0x35133a(0x87)],'oldParentRecordId':_0x11f554,'parentRecordId':_0xe859be}],_0x5b905c['source']??_0x4d5524['UI']);}))),this[_0x4a5bd9(0x95)](this[_0x4a5bd9(0xec)](this[_0x4a5bd9(0x1ba)][_0x4a5bd9(0x1aa)],()=>this[_0x4a5bd9(0x121)][_0x4a5bd9(0x1a5)](_0x1bb4a1=>{const _0x3033e0=_0x4a5bd9;if(_0x1bb4a1['id']!==_0x36d876['id'])return;let {unitId:_0x1760a9,table:_0x1d8ab0,index:_0x3b374c}=_0x1bb4a1['params'],_0x14dfd0=this['getBase'](_0x1760a9);if(!_0x14dfd0)return;let _0x5bc906={'base':_0x14dfd0,'table':_0x1d8ab0,'index':_0x3b374c};if(this[_0x3033e0(0x14f)](this['Event']['BeforeBaseTableCreate'],_0x5bc906),_0x5bc906[_0x3033e0(0x12b)])throw new _0x543b75();}))),this[_0x4a5bd9(0x95)](this[_0x4a5bd9(0xec)](this[_0x4a5bd9(0x1ba)][_0x4a5bd9(0x1a2)],()=>this[_0x4a5bd9(0x121)][_0x4a5bd9(0x1a5)](_0x478830=>{const _0x2a6fee=_0x4a5bd9;if(_0x478830['id']!==_0x174ba5['id'])return;let {unitId:_0x18c7dd,tableId:_0x1f73ff,field:_0x448742,index:_0x2bdf5b,viewIndexes:_0x484848}=_0x478830[_0x2a6fee(0x192)],_0x24583d=this['getBase'](_0x18c7dd);if(!_0x24583d)return;let _0x432b30=_0x24583d[_0x2a6fee(0x151)](_0x1f73ff);if(!_0x432b30)return;let _0x5b2a4a={'base':_0x24583d,'table':_0x432b30,'field':_0x448742,'index':_0x2bdf5b,'viewIndexes':_0x484848};if(this[_0x2a6fee(0x14f)](this['Event'][_0x2a6fee(0x1a2)],_0x5b2a4a),_0x5b2a4a[_0x2a6fee(0x12b)])throw new _0x543b75();}))),this[_0x4a5bd9(0x95)](this[_0x4a5bd9(0xec)](this[_0x4a5bd9(0x1ba)][_0x4a5bd9(0x173)],()=>this['_commandService']['beforeCommandExecuted'](_0x1e3ace=>{const _0x263e97=_0x4a5bd9;if(_0x1e3ace['id']!==_0x1193c8['id']&&_0x1e3ace['id']!==_0xcf9f8c['id'])return;let _0x37017a=_0x1e3ace[_0x263e97(0x192)],{unitId:_0x121a1a,tableId:_0x54c2af}=_0x37017a,_0x4ad32d=_0x37017a['records']??[_0x37017a[_0x263e97(0x9b)]],_0xd13b92=this['getBase'](_0x121a1a);if(!_0xd13b92)return;let _0x58e8d7=_0xd13b92[_0x263e97(0x151)](_0x54c2af);if(!_0x58e8d7)return;let _0x18e700={'base':_0xd13b92,'table':_0x58e8d7,'records':_0x4ad32d};if(this[_0x263e97(0x14f)](this[_0x263e97(0x1ba)][_0x263e97(0x173)],_0x18e700),_0x18e700['cancel'])throw new _0x543b75();}))),this[_0x4a5bd9(0x95)](this[_0x4a5bd9(0xec)](this['Event'][_0x4a5bd9(0x8f)],()=>this[_0x4a5bd9(0x121)][_0x4a5bd9(0x1a5)](_0x2605f6=>{const _0x105f43=_0x4a5bd9;if(_0x2605f6['id']!==_0x1adb6d['id'])return;let {unitId:_0xe2fc9,tableId:_0x2ac037,view:_0x53983e,index:_0x40b506}=_0x2605f6[_0x105f43(0x192)],_0x220170=this[_0x105f43(0x10a)](_0xe2fc9);if(!_0x220170)return;let _0x3319c8=_0x220170[_0x105f43(0x151)](_0x2ac037);if(!_0x3319c8)return;let _0x4c3cef={'base':_0x220170,'table':_0x3319c8,'view':_0x53983e,'index':_0x40b506};if(this['fireEvent'](this[_0x105f43(0x1ba)]['BeforeBaseTableViewCreate'],_0x4c3cef),_0x4c3cef['cancel'])throw new _0x543b75();}))),this[_0x4a5bd9(0x95)](this[_0x4a5bd9(0xec)](this[_0x4a5bd9(0x1ba)][_0x4a5bd9(0x122)],()=>this[_0x4a5bd9(0x121)][_0x4a5bd9(0x1a5)](_0x2fb154=>{const _0x3742a9=_0x4a5bd9;if(_0x2fb154['id']!==_0x1b0f5c['id'])return;let {unitId:_0x51e91d,tableId:_0x4ca908,recordId:_0x5d9470,fieldId:_0x46ed6b,value:_0x370adb}=_0x2fb154[_0x3742a9(0x192)],_0x3f3d7a=this[_0x3742a9(0x10a)](_0x51e91d);if(!_0x3f3d7a)return;let _0x9923ae=_0x3f3d7a[_0x3742a9(0x151)](_0x4ca908);if(!_0x9923ae)return;let _0x25dd0a=_0x9923ae[_0x3742a9(0x196)](_0x46ed6b);if(!_0x25dd0a)return;let _0x28cb8a=_0x9923ae[_0x3742a9(0x189)](_0x5d9470);if(!_0x28cb8a)return;let _0x2b8e6c={'base':_0x3f3d7a,'table':_0x9923ae,'field':_0x25dd0a,'record':_0x28cb8a,'value':_0x370adb};if(this[_0x3742a9(0x14f)](this[_0x3742a9(0x1ba)]['BeforeBaseTableCellValueChange'],_0x2b8e6c),_0x2b8e6c[_0x3742a9(0x12b)])throw new _0x543b75();})));}[_0x3b2f37(0x1c8)](_0x1d9d16,_0x107dfd){const _0x44d604=_0x3b2f37;let _0x4d39dd=this[_0x44d604(0x10a)](_0x1d9d16),_0x50ce63=_0x4d39dd==null?void 0x0:_0x4d39dd[_0x44d604(0x151)](_0x107dfd);return _0x4d39dd&&_0x50ce63?{'base':_0x4d39dd,'table':_0x50ce63}:null;}[_0x3b2f37(0xb6)](_0x343fb4,_0x12df91,_0x341938,_0x371236){const _0xd6f883=_0x3b2f37;if(!_0x341938[_0xd6f883(0x17b)])return;let _0x4e5211={'base':_0x343fb4,'table':_0x12df91,'changes':_0x341938,'source':_0x371236};if(this[_0xd6f883(0x14f)](this[_0xd6f883(0x1ba)][_0xd6f883(0xa8)],_0x4e5211),_0x4e5211[_0xd6f883(0x12b)])throw new _0x543b75();}};function $(_0x3487d9,_0x3553b2){const _0x22f18e=_0x3b2f37;return _0x3487d9['id']===_0x3553b2['id']&&_0x3487d9[_0x22f18e(0x192)]!==void 0x0;}_0x4602a3[_0x3b2f37(0xa1)](Et);var Dt=class extends _0x544088{get[_0x3b2f37(0x174)](){return _0x268b7f;}get[_0x3b2f37(0x99)](){return _0x29b07b;}get[_0x3b2f37(0x144)](){return _0x547adc;}get[_0x3b2f37(0x16e)](){return ot;}get[_0x3b2f37(0x1c3)](){return _0x5b008e;}get[_0x3b2f37(0x1e5)](){return _0x2e83f1;}get[_0x3b2f37(0x1d6)](){return _0x5f5c3b;}get[_0x3b2f37(0x150)](){return _0x256a0d;}get[_0x3b2f37(0x10e)](){return _0x23c723;}get[_0x3b2f37(0x1cc)](){return _0x4d5524;}get[_0x3b2f37(0xa9)](){return _0x115291;}get[_0x3b2f37(0xfd)](){return _0x970749;}get[_0x3b2f37(0xcf)](){return _0x116087;}};_0x544088[_0x3b2f37(0xa1)](Dt);var Ot=class extends _0x529663{get['BaseTableCreated'](){const _0x1149f7=_0x3b2f37;return _0x1149f7(0xca);}get['BeforeBaseTableCreate'](){const _0x4a6f1a=_0x3b2f37;return _0x4a6f1a(0x1aa);}get[_0x3b2f37(0x1ce)](){return'BaseTableFieldCreated';}get[_0x3b2f37(0x1a2)](){const _0x5c7190=_0x3b2f37;return _0x5c7190(0x1a2);}get['BaseTableRecordCreated'](){const _0x3019c0=_0x3b2f37;return _0x3019c0(0x131);}get[_0x3b2f37(0x173)](){const _0x480aac=_0x3b2f37;return _0x480aac(0x173);}get['BaseTableViewCreated'](){const _0x188024=_0x3b2f37;return _0x188024(0xd5);}get[_0x3b2f37(0x8f)](){const _0x3d3b01=_0x3b2f37;return _0x3d3b01(0x8f);}get[_0x3b2f37(0x1df)](){return'BaseTableCellValueChanged';}get['BeforeBaseTableCellValueChange'](){const _0xa37d9f=_0x3b2f37;return _0xa37d9f(0x122);}get[_0x3b2f37(0x15c)](){const _0x1cc9ea=_0x3b2f37;return _0x1cc9ea(0x15c);}get['BeforeBaseHierarchyChange'](){return'BeforeBaseHierarchyChange';}};_0x529663[_0x3b2f37(0xa1)](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};
|