@univerjs-pro/bases 1.3.1 → 1.5.0
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/README.md +21 -9
- package/lib/cjs/config-CTOS-Fzg.js +1 -0
- 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/cjs/worker.js +1 -0
- package/lib/config-DDy_jw9I.js +1 -0
- package/lib/es/config-DDy_jw9I.js +1 -0
- 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/es/worker.js +1 -0
- 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/types/config/config.d.ts +1 -1
- package/lib/types/controllers/base-formula-optional-identifier.d.ts +1 -1
- package/lib/types/facade/f-range.d.ts +16 -2
- package/lib/types/facade/f-record.d.ts +14 -0
- package/lib/types/facade/f-table.d.ts +3 -0
- package/lib/types/fields/field-stat.d.ts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/plugin.d.ts +1 -13
- package/lib/types/services/base-command.service.d.ts +1 -1
- package/lib/types/services/base-field-registry.service.d.ts +2 -2
- package/lib/types/services/base-permission-point.d.ts +1 -1
- package/lib/types/services/base-permission.service.d.ts +1 -1
- package/lib/types/services/base-projection.service.d.ts +2 -2
- package/lib/types/services/base-resource.service.d.ts +1 -1
- package/lib/types/services/base-view-registry.service.d.ts +2 -2
- package/lib/types/worker.d.ts +14 -0
- 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/lib/worker.js +1 -0
- package/package.json +17 -12
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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};
|
|
1
|
+
const _0x6a5b69=_0x1896;(function(_0x2280e7,_0x4c926c){const _0x540a49=_0x1896,_0x29315f=_0x2280e7();while(!![]){try{const _0x40d40b=parseInt(_0x540a49(0x1e8))/0x1*(-parseInt(_0x540a49(0x230))/0x2)+parseInt(_0x540a49(0x2c8))/0x3*(parseInt(_0x540a49(0x23a))/0x4)+parseInt(_0x540a49(0x19c))/0x5*(-parseInt(_0x540a49(0x20f))/0x6)+-parseInt(_0x540a49(0x1de))/0x7*(parseInt(_0x540a49(0x2b5))/0x8)+-parseInt(_0x540a49(0x25f))/0x9*(-parseInt(_0x540a49(0x17e))/0xa)+parseInt(_0x540a49(0x1b6))/0xb+parseInt(_0x540a49(0x18c))/0xc*(-parseInt(_0x540a49(0x1d2))/0xd);if(_0x40d40b===_0x4c926c)break;else _0x29315f['push'](_0x29315f['shift']());}catch(_0x346ff3){_0x29315f['push'](_0x29315f['shift']());}}}(_0x37f6,0xdf3d9));import{ApplyBaseJson1Mutation as _0x4664de,BASE_TABLE_NAME_REQUIREMENTS as _0x5963f1,BaseConditionalColorRuleUpdateType as _0x21d239,BaseEventSource as _0x43f637,BaseHierarchyErrorCode as _0x53ea69,BatchCreateBaseRecordsCommand as _0x28e204,BatchDeleteBaseRecordsCommand as _0x16f69d,ChangeBaseFieldTypeCommand as _0x1af08b,CreateBaseChildRecordCommand as _0x4cd8a9,CreateBaseFieldCommand as _0x2ecef1,CreateBaseRecordCommand as _0x817aeb,CreateBaseTableCommand as _0x118e4c,CreateBaseViewCommand as _0x4efbdd,DeleteBaseFieldCommand as _0x3ceb79,DeleteBaseRecordCommand as _0x392c6f,DeleteBaseTableCommand as _0x480168,DeleteBaseViewCommand as _0x1c08cd,DuplicateBaseRecordCommand as _0x499a45,IBaseProjectionService as _0x483014,MoveBaseFieldCommand as _0x1e2afa,MoveBaseHierarchyRecordCommand as _0x448699,MoveBaseViewCommand as _0x1008cd,RenameBaseTableCommand as _0x264dca,RenameBaseViewCommand as _0x11dffb,SetBaseNameCommand as _0x280ebb,SetBasePermissionCommand as _0x59d07a,SetBasePermissionsCommand as _0x6f707f,SetBaseRangeValuesCommand as _0x50c929,SetBaseRecordValuesCommand as _0x2cebcc,SetBaseTableHierarchyFieldCommand as _0x2bda89,SetBaseViewFieldOrderCommand as _0x26a020,SetBaseViewFieldVisibleCommand as _0x5ce8b2,SetBaseViewFieldWidthCommand as _0x4154ed,SetBaseViewFilterCommand as _0x1e5f36,SetBaseViewGroupCommand as _0x545b5d,SetBaseViewSortCommand as _0x15d9fe,UpdateBaseCellCommand as _0x3a32fc,UpdateBaseFieldCommand as _0x7b3c97,UpdateBaseRecordOrderCommand as _0x43adcc,UpdateBaseViewConditionalColorRulesCommand as _0x49c748,UpdateBaseViewConfigCommand as _0x403e74,ValidateBaseFormulaCommand as _0x43f42c,buildBaseHierarchyIndex as _0x5b61b7,canEditBaseTargets as _0x10bbe0,copyBaseTableSnapshot as _0x16e20,createUniqueBaseTableName as _0x279ff1,ensureBaseTableCellLayout as _0xff35e2,getActiveBaseHierarchyFieldIds as _0x327c28,getBaseCellValue as _0x4e5b69,getBaseFieldPermissionObjectId as _0x219de7,getBaseFormulaTableName as _0x193fc0,getBaseHierarchyDeletePromotions as _0x57d1f1,getBasePermissionValue as _0x2f3e96,getBaseRecordPermissionObjectId as _0x1b9662,getBaseTablePermissionObjectId as _0x2d8a33,getBaseViewPermissionObjectId as _0x33ee0c,getRecordLinkFieldConfig as _0x3dfa8b,matchesBaseCondition as _0x17c967,parseRecordLinkIds as _0x2b8d32,resolveBaseHierarchyFieldId as _0x38a87b,resolveBaseRangeHierarchyPatches as _0x1b3dee,searchBaseTable as _0x729fff,serializeRecordLinkIds as _0xe4f0db,validateBaseHierarchyRecordCreations as _0x6f896b,validateBaseHierarchyRecordPatches as _0x22441f,validateBaseTableName as _0x4fd34e,validateRecordLinkValue as _0x46f65b}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x8c29d8,BaseConditionalColorOperator as _0x3f8d13,BaseConditionalColorTarget as _0x44652a,BaseConditionalDateMode as _0x206636,BaseFieldType as _0x1dcf64,BaseFilterConjunction as _0x4157c8,BaseFilterOperator as _0x394202,BaseHierarchyInvalidReason as _0x549f37,BaseRecordLinkRole as _0x546818,BaseSortDirection as _0x35c88d,BaseViewType as _0x144585,CanceledError as _0x35b56f,ICommandService as _0x1047ac,IPermissionService as _0x9f57f5,IResourceLoaderService as _0x595187,ImageSourceType as _0x586c40,Inject as _0x547f59,Injector as _0x3c554c,Tools as _0x2517f7,UniverInstanceType as _0x523a99,createDefaultBaseTableSnapshot as _0xe17d11,generateRandomId as _0x49e131}from'@univerjs/core';import*as _0x4e29a4 from'@univerjs/core/facade';import{FBaseInitialable as _0x2df259,FEnum as _0x21148e,FEventName as _0xf4815a,FUniver as _0x61ceef}from'@univerjs/core/facade';import{UnitAction as _0x1513c7}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x2057d2}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x22f62b,_0x4a728a,_0x31ca89){const _0x2216e7=_0x1896;this[_0x2216e7(0x23e)]=_0x22f62b,this[_0x2216e7(0x1ec)]=_0x4a728a,this[_0x2216e7(0x2a0)]=_0x31ca89;}async[_0x6a5b69(0x1b2)](_0x2a423b){const _0x57392e=_0x6a5b69;return this[_0x57392e(0x1ec)]['executeCommand'](_0x6f707f['id'],{'unitId':this[_0x57392e(0x23e)],'changes':_0x2a423b});}async[_0x6a5b69(0x2a9)](_0x5a394f,_0x115f8b){const _0x27cd7b=_0x6a5b69;await this[_0x27cd7b(0x1ec)][_0x27cd7b(0x2cc)](_0x59d07a['id'],{'unitId':this[_0x27cd7b(0x23e)],'objectId':this[_0x27cd7b(0x23e)],'action':_0x5a394f,'value':_0x115f8b});}['getPoint'](_0x26a0a9){return _0x2f3e96(this['_permissionService'],this['_unitId'],this['_unitId'],_0x26a0a9);}async['setEditable'](_0x1a9cee=!0x0){const _0x153c48=_0x6a5b69;await this[_0x153c48(0x1ec)]['executeCommand'](_0x59d07a['id'],{'unitId':this['_unitId'],'objectId':this['_unitId'],'action':_0x1513c7['Edit'],'value':_0x1a9cee});}async[_0x6a5b69(0x25b)](){const _0x53a7d9=_0x6a5b69;await this[_0x53a7d9(0x1ec)][_0x53a7d9(0x2cc)](_0x59d07a['id'],{'unitId':this[_0x53a7d9(0x23e)],'objectId':this['_unitId'],'action':_0x1513c7['Edit'],'value':!0x1});}[_0x6a5b69(0x1f6)](){const _0x94a6ea=_0x6a5b69;return _0x2f3e96(this[_0x94a6ea(0x2a0)],this[_0x94a6ea(0x23e)],this[_0x94a6ea(0x23e)],_0x1513c7[_0x94a6ea(0x1a6)]);}},L=class{constructor(_0xe27e24,_0x891c6e,_0x5ebe2c,_0x46818c,_0x2f45c6){const _0x11f554=_0x6a5b69;this['_unitId']=_0xe27e24,this[_0x11f554(0x299)]=_0x891c6e,this['_parentObjectIds']=_0x5ebe2c,this['_commandService']=_0x46818c,this[_0x11f554(0x2a0)]=_0x2f45c6;}async[_0x6a5b69(0x177)](_0x37a54d=!0x0){const _0x33257d=_0x6a5b69;await this[_0x33257d(0x1ec)][_0x33257d(0x2cc)](_0x59d07a['id'],{'unitId':this[_0x33257d(0x23e)],'objectId':this[_0x33257d(0x299)],'action':_0x1513c7['Edit'],'value':_0x37a54d});}async[_0x6a5b69(0x25b)](){const _0x5d24ca=_0x6a5b69;await this[_0x5d24ca(0x1ec)][_0x5d24ca(0x2cc)](_0x59d07a['id'],{'unitId':this[_0x5d24ca(0x23e)],'objectId':this[_0x5d24ca(0x299)],'action':_0x1513c7[_0x5d24ca(0x1a6)],'value':!0x1});}[_0x6a5b69(0x1f6)](){const _0x312bca=_0x6a5b69;return _0x10bbe0(this['_permissionService'],this['_unitId'],[...this[_0x312bca(0x259)],this['_objectId']]);}};function R(_0x525d2c,_0x98e06d){return function(_0x2ece84,_0x150306){_0x98e06d(_0x2ece84,_0x150306,_0x525d2c);};}function z(_0x9d82d1,_0x119853,_0x37d23d,_0x34e991){const _0x46e928=_0x6a5b69;var _0x21f56b=arguments[_0x46e928(0x273)],_0x1c78e8=_0x21f56b<0x3?_0x119853:_0x34e991===null?_0x34e991=Object[_0x46e928(0x171)](_0x119853,_0x37d23d):_0x34e991,_0xafbc3b;if(typeof Reflect==_0x46e928(0x1d4)&&typeof Reflect[_0x46e928(0x1cd)]==_0x46e928(0x1a4))_0x1c78e8=Reflect[_0x46e928(0x1cd)](_0x9d82d1,_0x119853,_0x37d23d,_0x34e991);else{for(var _0x57b5a1=_0x9d82d1['length']-0x1;_0x57b5a1>=0x0;_0x57b5a1--)(_0xafbc3b=_0x9d82d1[_0x57b5a1])&&(_0x1c78e8=(_0x21f56b<0x3?_0xafbc3b(_0x1c78e8):_0x21f56b>0x3?_0xafbc3b(_0x119853,_0x37d23d,_0x1c78e8):_0xafbc3b(_0x119853,_0x37d23d))||_0x1c78e8);}return _0x21f56b>0x3&&_0x1c78e8&&Object[_0x46e928(0x267)](_0x119853,_0x37d23d,_0x1c78e8),_0x1c78e8;}let B=class{constructor(_0x621103,_0x5f19f9,_0x19c8ba,_0x4f8b66,_0x2d1ba5){const _0x29240b=_0x6a5b69;this[_0x29240b(0x178)]=_0x621103,this[_0x29240b(0x257)]=_0x5f19f9,this['_fieldId']=_0x19c8ba,this[_0x29240b(0x1ec)]=_0x4f8b66,this[_0x29240b(0x2a0)]=_0x2d1ba5;}[_0x6a5b69(0x271)](){return this['_fieldId'];}[_0x6a5b69(0x167)](){const _0xdb37c5=_0x6a5b69;let _0x4c007d=this[_0xdb37c5(0x257)]['getId']();return new L(this[_0xdb37c5(0x178)][_0xdb37c5(0x271)](),_0x219de7(_0x4c007d,this['_fieldId']),[_0x2d8a33(_0x4c007d)],this[_0xdb37c5(0x1ec)],this['_permissionService']);}[_0x6a5b69(0x204)](){const _0x2ee26a=_0x6a5b69;return this[_0x2ee26a(0x233)]();}[_0x6a5b69(0x2bf)](){const _0x2325f8=_0x6a5b69;return this['_getField']()[_0x2325f8(0x258)];}[_0x6a5b69(0x287)](){const _0x52c3e6=_0x6a5b69;return this['_getField']()[_0x52c3e6(0x18d)];}[_0x6a5b69(0x262)](){const _0x4560ea=_0x6a5b69;return this[_0x4560ea(0x233)]()[_0x4560ea(0x2bb)];}[_0x6a5b69(0x202)](){const _0x14f5d4=_0x6a5b69;return this[_0x14f5d4(0x233)]()[_0x14f5d4(0x1b0)];}['getDescription'](){const _0x59deb0=_0x6a5b69;return this[_0x59deb0(0x233)]()['description'];}[_0x6a5b69(0x2a8)](){const _0x301de6=_0x6a5b69;return!!this[_0x301de6(0x233)]()[_0x301de6(0x1a5)];}[_0x6a5b69(0x16c)](_0x57e183){const _0x5cf7f5=_0x6a5b69;return this[_0x5cf7f5(0x2be)]({'name':_0x57e183});}[_0x6a5b69(0x1e1)](_0x595400,_0x4159fc){const _0x494b56=_0x6a5b69;return this[_0x494b56(0x2be)]({'config':_0x595400},_0x4159fc);}[_0x6a5b69(0x28f)](_0x5aa543){const _0x69d747=_0x6a5b69;return this[_0x69d747(0x2be)]({'defaultValue':_0x5aa543});}['update'](_0xab7651,_0x504df5){const _0x57f949=_0x6a5b69;let _0x233124=this[_0x57f949(0x233)]()[_0x57f949(0x18d)];return(_0xab7651[_0x57f949(0x18d)]??_0x233124)===_0x1dcf64['Formula']&&(Object[_0x57f949(0x174)][_0x57f949(0x280)][_0x57f949(0x20a)](_0xab7651,_0x57f949(0x2bb))||_0xab7651[_0x57f949(0x18d)]===_0x1dcf64[_0x57f949(0x269)])&&!this[_0x57f949(0x1ef)](_0x504df5)?!0x1:this['_commandService'][_0x57f949(0x1d5)](_0x7b3c97['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x57f949(0x257)][_0x57f949(0x271)](),'fieldId':this[_0x57f949(0x21b)],'patch':_0xab7651});}[_0x6a5b69(0x236)](_0x362258,_0x4b20e6={},_0x1fcc2d){const _0x413e93=_0x6a5b69;return _0x362258===_0x1dcf64[_0x413e93(0x269)]&&!this['_writeFormulaExternalReferences'](_0x1fcc2d)?!0x1:this[_0x413e93(0x1ec)]['syncExecuteCommand'](_0x1af08b['id'],{'unitId':this['_base'][_0x413e93(0x271)](),'tableId':this[_0x413e93(0x257)]['getId'](),'fieldId':this[_0x413e93(0x21b)],'input':{'type':_0x362258,'config':_0x4b20e6}});}[_0x6a5b69(0x1f2)](){const _0x2b3daa=_0x6a5b69;return this[_0x2b3daa(0x1ec)][_0x2b3daa(0x1d5)](_0x3ceb79['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x2b3daa(0x257)][_0x2b3daa(0x271)](),'fieldId':this[_0x2b3daa(0x21b)]});}['move'](_0x372a48){const _0x926c35=_0x6a5b69;return this[_0x926c35(0x1ec)]['syncExecuteCommand'](_0x1e2afa['id'],{'unitId':this[_0x926c35(0x178)][_0x926c35(0x271)](),'tableId':this['_table']['getId'](),'fieldId':this[_0x926c35(0x21b)],'target':_0x372a48});}['_getField'](){const _0x2f345a=_0x6a5b69;let _0x2b211b=this['_table'][_0x2f345a(0x28e)]()[_0x2f345a(0x243)][this[_0x2f345a(0x21b)]];if(!_0x2b211b)throw Error(_0x2f345a(0x28d)+this[_0x2f345a(0x21b)]+_0x2f345a(0x2ca));return _0x2b211b;}['_writeFormulaExternalReferences'](_0x3f8fb5){const _0x410927=_0x6a5b69;if(!_0x3f8fb5||!Array['isArray'](_0x3f8fb5[_0x410927(0x198)]))return console['warn'](_0x410927(0x1d3)),!0x1;if(_0x3f8fb5['externalReferences'][_0x410927(0x273)]===0x0)return!0x0;let _0x59a6cf=this['_commandService'][_0x410927(0x1d5)](_0x2057d2['id'],{'unitId':this[_0x410927(0x178)][_0x410927(0x271)](),'references':_0x3f8fb5['externalReferences']});return _0x59a6cf||console[_0x410927(0x1f8)](_0x410927(0x24e)),_0x59a6cf;}};B=z([R(0x3,_0x1047ac),R(0x4,_0x9f57f5)],B);let ot=function(_0xd64cf){const _0x377efe=_0x6a5b69;return _0xd64cf['Id']='id',_0xd64cf[_0x377efe(0x27a)]=_0x377efe(0x258),_0xd64cf[_0x377efe(0x263)]=_0x377efe(0x28c),_0xd64cf;}({});function V(_0x66ddd3){const _0x122c39=_0x6a5b69;return!!(_0x66ddd3&&_0x66ddd3[_0x122c39(0x209)]!==!0x0&&_0x66ddd3['type']!==_0x1dcf64[_0x122c39(0x16f)]);}function H(_0x5683ce,_0x4ec3c7,_0x129e7c='id'){const _0x205291=_0x6a5b69;if(!_0x4ec3c7)return{};let _0x21ae9a={};return Object[_0x205291(0x1ae)](_0x4ec3c7)['forEach'](([_0x217a9f,_0x21e401])=>{const _0x4b9bc0=_0x205291;let _0x353f93=ct(_0x5683ce,_0x217a9f,_0x129e7c);_0x21ae9a[_0x353f93]=st(_0x5683ce[_0x4b9bc0(0x243)][_0x353f93],_0x21e401);}),_0x21ae9a;}function st(_0x359761,_0x178423){const _0x1f332c=_0x6a5b69;if((_0x359761==null?void 0x0:_0x359761['type'])!==_0x1dcf64['Attachment']||_0x178423==null)return _0x178423;if(!Array['isArray'](_0x178423))throw TypeError(_0x1f332c(0x1be)+_0x359761[_0x1f332c(0x258)]+'\x22:\x20expected\x20an\x20array.');return _0x178423['map']((_0x44de86,_0x480eff)=>lt(_0x359761,_0x44de86,_0x480eff));}function ct(_0x2879b7,_0x59d8b9,_0x3e6b59){const _0x178b74=_0x6a5b69;if(_0x3e6b59==='id'||_0x3e6b59===_0x178b74(0x28c)&&_0x2879b7[_0x178b74(0x243)][_0x59d8b9])return _0x59d8b9;let _0x29f759=Object[_0x178b74(0x2b6)](_0x2879b7[_0x178b74(0x243)])[_0x178b74(0x253)](_0x36aa39=>_0x36aa39['name']===_0x59d8b9);if(_0x29f759[_0x178b74(0x273)]===0x1)return _0x29f759[0x0]['id'];throw _0x29f759['length']>0x1?Error(_0x178b74(0x219)+_0x59d8b9):Error(_0x178b74(0x2b9)+_0x59d8b9);}function lt(_0x519046,_0x1996b,_0x5f01f6){const _0x1c0821=_0x6a5b69;let _0x470d0b='Invalid\x20attachment\x20at\x20index\x20'+_0x5f01f6+_0x1c0821(0x16d)+_0x519046[_0x1c0821(0x258)]+'\x22';if(!ft(_0x1996b))throw TypeError(_0x470d0b+_0x1c0821(0x1c6));if(_0x1c0821(0x241)in _0x1996b)throw TypeError(_0x470d0b+_0x1c0821(0x1aa));if(_0x1c0821(0x18d)in _0x1996b)throw TypeError(_0x470d0b+':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.');let _0x96bf05=U(_0x1996b['id'],_0x470d0b,'id'),_0x2866ad=U(_0x1996b[_0x1c0821(0x258)],_0x470d0b,_0x1c0821(0x258)),_0xf2dea3=U(_0x1996b['source'],_0x470d0b,_0x1c0821(0x2bd));return{'id':_0x96bf05,'name':_0x2866ad,'source':_0xf2dea3,'sourceType':ut(_0x1996b[_0x1c0821(0x1b4)],_0xf2dea3,_0x470d0b),...dt(_0x1996b,_0x1c0821(0x24c),_0x470d0b),...W(_0x1996b,_0x1c0821(0x176),_0x470d0b),...W(_0x1996b,_0x1c0821(0x1bc),_0x470d0b),...W(_0x1996b,_0x1c0821(0x275),_0x470d0b),...dt(_0x1996b,_0x1c0821(0x29e),_0x470d0b)};}function ut(_0x484d32,_0x2b2a66,_0x1cb330){const _0x417e35=_0x6a5b69;if(_0x484d32==null)return _0x2b2a66['startsWith']('data:')?_0x586c40[_0x417e35(0x288)]:_0x586c40[_0x417e35(0x1ff)];if(_0x484d32===_0x586c40['URL']||_0x484d32===_0x586c40[_0x417e35(0x2b4)]||_0x484d32===_0x586c40[_0x417e35(0x288)])return _0x484d32;throw TypeError(_0x1cb330+_0x417e35(0x294));}function U(_0x184104,_0x57f863,_0x1c4aaf){const _0xaa9944=_0x6a5b69;if(typeof _0x184104!='string'||!_0x184104[_0xaa9944(0x193)]())throw TypeError(_0x57f863+':\x20\x22'+_0x1c4aaf+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');return _0x184104;}function dt(_0x5e2376,_0x40bfa9,_0x53ccfb){const _0x259e72=_0x6a5b69;let _0x4cf7a1=_0x5e2376[_0x40bfa9];if(_0x4cf7a1==null)return{};if(typeof _0x4cf7a1!=_0x259e72(0x295)||!_0x4cf7a1['trim']())throw TypeError(_0x53ccfb+':\x20\x22'+_0x40bfa9+'\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.');return{[_0x40bfa9]:_0x4cf7a1};}function W(_0x1dfb95,_0x620a2d,_0x2cf9d1){const _0x33765a=_0x6a5b69;let _0x36f97d=_0x1dfb95[_0x620a2d];if(_0x36f97d==null)return{};if(typeof _0x36f97d!='number'||!Number[_0x33765a(0x1c5)](_0x36f97d)||_0x36f97d<0x0)throw TypeError(_0x2cf9d1+_0x33765a(0x292)+_0x620a2d+'\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.');return{[_0x620a2d]:_0x36f97d};}function ft(_0x3b00bc){const _0x44e98d=_0x6a5b69;return typeof _0x3b00bc==_0x44e98d(0x1d4)&&!!_0x3b00bc&&!Array[_0x44e98d(0x285)](_0x3b00bc);}var G;let K=G=class{constructor(_0x84c89,_0x53cb11,_0x290eba,_0x286955,_0x128ac1){const _0x3e3b3e=_0x6a5b69;this[_0x3e3b3e(0x178)]=_0x84c89,this[_0x3e3b3e(0x257)]=_0x53cb11,this[_0x3e3b3e(0x1c2)]=_0x290eba,this[_0x3e3b3e(0x251)]=_0x286955,this[_0x3e3b3e(0x1ec)]=_0x128ac1,this[_0x3e3b3e(0x2c9)]();}[_0x6a5b69(0x289)](){const _0x456a79=_0x6a5b69;return this[_0x456a79(0x178)][_0x456a79(0x271)]();}[_0x6a5b69(0x180)](){const _0x820706=_0x6a5b69;return this[_0x820706(0x257)][_0x820706(0x271)]();}['getRange'](){const _0x5f3495=_0x6a5b69;return{...this[_0x5f3495(0x1c2)]};}[_0x6a5b69(0x266)](){const _0x501284=_0x6a5b69;return this[_0x501284(0x1c2)][_0x501284(0x22e)];}[_0x6a5b69(0x1e9)](){const _0x2ff242=_0x6a5b69;return this[_0x2ff242(0x1c2)][_0x2ff242(0x1d9)];}[_0x6a5b69(0x1b9)](){const _0x432d4b=_0x6a5b69;return this[_0x432d4b(0x1c2)][_0x432d4b(0x2c0)]-this['_range'][_0x432d4b(0x22e)]+0x1;}['getNumColumns'](){const _0x4440ff=_0x6a5b69;return this[_0x4440ff(0x1c2)][_0x4440ff(0x281)]-this['_range'][_0x4440ff(0x1d9)]+0x1;}[_0x6a5b69(0x17c)](){const _0x518532=_0x6a5b69;let _0x12fe27=this[_0x518532(0x2a4)](),_0x1eb0ae=this['_getFieldIds'](_0x12fe27),_0x2238ff=[];for(let _0x5ebeb9=this[_0x518532(0x1c2)][_0x518532(0x22e)];_0x5ebeb9<=this[_0x518532(0x1c2)]['endRow'];_0x5ebeb9++){var _0x517fa0;let _0x293e3d=(_0x517fa0=_0x12fe27[_0x518532(0x216)])==null?void 0x0:_0x517fa0[_0x5ebeb9],_0x365a5c=[];for(let _0x4012b9=this[_0x518532(0x1c2)][_0x518532(0x1d9)];_0x4012b9<=this[_0x518532(0x1c2)][_0x518532(0x281)];_0x4012b9++){let _0xe1a3c5=_0x1eb0ae[_0x4012b9];_0x365a5c[_0x518532(0x255)](_0x293e3d&&_0xe1a3c5?_0x4e5b69(_0x12fe27,_0x293e3d,_0xe1a3c5):null);}_0x2238ff[_0x518532(0x255)](_0x365a5c);}return _0x2238ff;}[_0x6a5b69(0x1bf)](){var _0x59971a;return((_0x59971a=this['getValues']()[0x0])==null?void 0x0:_0x59971a[0x0])??null;}[_0x6a5b69(0x213)](_0x559161){const _0x20a0b6=_0x6a5b69;return this[_0x20a0b6(0x20e)]([[_0x559161]]);}[_0x6a5b69(0x20e)](_0x4a21a2){const _0x56f57d=_0x6a5b69;let _0x5b0ef1=this[_0x56f57d(0x1b9)](),_0x8db5ef=this[_0x56f57d(0x26f)]();if(_0x4a21a2['length']>_0x5b0ef1||_0x4a21a2[_0x56f57d(0x274)](_0x7de2f2=>_0x7de2f2[_0x56f57d(0x273)]>_0x8db5ef)){var _0x761b26;throw Error(_0x56f57d(0x250)+_0x4a21a2[_0x56f57d(0x273)]+'x'+(((_0x761b26=_0x4a21a2[0x0])==null?void 0x0:_0x761b26[_0x56f57d(0x273)])??0x0)+_0x56f57d(0x1a3)+_0x5b0ef1+'x'+_0x8db5ef+'.');}let _0x3376ca=this[_0x56f57d(0x2a4)](),_0x292c9c=this[_0x56f57d(0x26b)](_0x3376ca),_0x5ca9e1=_0x4a21a2[_0x56f57d(0x184)]((_0x2e865a,_0x4a5fac)=>_0x2e865a[_0x56f57d(0x2ba)]((_0x2784a4,_0x1c738e)=>{const _0x1391ae=_0x56f57d;var _0x2cb9b3;let _0x5d8d5b=this[_0x1391ae(0x1c2)][_0x1391ae(0x22e)]+_0x4a5fac,_0x5e25fd=_0x292c9c[this['_range'][_0x1391ae(0x1d9)]+_0x1c738e],_0x30f453=(_0x2cb9b3=_0x3376ca['rowId'])==null?void 0x0:_0x2cb9b3[_0x5d8d5b];if(!_0x5e25fd||!_0x30f453)throw Error(_0x1391ae(0x272));return{'recordId':_0x30f453,'fieldId':_0x5e25fd,'value':_0x2784a4};}));return this[_0x56f57d(0x1ec)][_0x56f57d(0x1d5)](_0x50c929['id'],{'unitId':this[_0x56f57d(0x178)]['getId'](),'tableId':this[_0x56f57d(0x257)]['getId'](),'patches':_0x5ca9e1,'source':_0x43f637['Facade']});}[_0x6a5b69(0x2ab)](){const _0x25e5e2=_0x6a5b69;return this[_0x25e5e2(0x20e)](Array[_0x25e5e2(0x19f)]({'length':this['getNumRows']()},()=>Array[_0x25e5e2(0x19f)]({'length':this[_0x25e5e2(0x26f)]()},()=>null)));}[_0x6a5b69(0x26d)](_0x377bce,_0x52a991,_0x43ca58=this[_0x6a5b69(0x1b9)](),_0x4e2fe7=this[_0x6a5b69(0x26f)]()){const _0x479fef=_0x6a5b69;return this[_0x479fef(0x251)][_0x479fef(0x1d7)](G,this['_base'],this[_0x479fef(0x257)],{'startRow':this[_0x479fef(0x1c2)]['startRow']+_0x377bce,'startColumn':this[_0x479fef(0x1c2)]['startColumn']+_0x52a991,'endRow':this[_0x479fef(0x1c2)][_0x479fef(0x22e)]+_0x377bce+_0x43ca58-0x1,'endColumn':this[_0x479fef(0x1c2)][_0x479fef(0x1d9)]+_0x52a991+_0x4e2fe7-0x1},this[_0x479fef(0x251)]);}[_0x6a5b69(0x2a4)](){const _0x32dcb9=_0x6a5b69;let _0x40619c=this['_table'][_0x32dcb9(0x28e)]();if(!_0x40619c)throw Error(_0x32dcb9(0x2bc));return _0xff35e2(_0x40619c);}[_0x6a5b69(0x2c9)](){const _0x573bc3=_0x6a5b69;var _0x3449bc;let _0x43337c=this[_0x573bc3(0x2a4)](),_0x27abe6=((_0x3449bc=_0x43337c[_0x573bc3(0x2ae)])==null?void 0x0:_0x3449bc[_0x573bc3(0x273)])??0x0,_0xd2ca0d=this['_getFieldIds'](_0x43337c)[_0x573bc3(0x273)];if(this['_range'][_0x573bc3(0x22e)]<0x0||this[_0x573bc3(0x1c2)][_0x573bc3(0x1d9)]<0x0||this[_0x573bc3(0x1c2)][_0x573bc3(0x2c0)]<this[_0x573bc3(0x1c2)][_0x573bc3(0x22e)]||this['_range'][_0x573bc3(0x281)]<this[_0x573bc3(0x1c2)][_0x573bc3(0x1d9)]||this[_0x573bc3(0x1c2)][_0x573bc3(0x2c0)]>=Math[_0x573bc3(0x239)](_0x27abe6,0x1)||this[_0x573bc3(0x1c2)][_0x573bc3(0x281)]>=Math[_0x573bc3(0x239)](_0xd2ca0d,0x1))throw Error(_0x573bc3(0x2c1)+_0x27abe6+_0x573bc3(0x1ea)+_0xd2ca0d+_0x573bc3(0x1c0)+JSON[_0x573bc3(0x19b)](this['_range'])+'.');}[_0x6a5b69(0x26b)](_0x5bb8bf){const _0x43b55b=_0x6a5b69;return _0x5bb8bf[_0x43b55b(0x16b)][_0x43b55b(0x253)](_0x290b74=>V(_0x5bb8bf[_0x43b55b(0x243)][_0x290b74]));}};function _0x37f6(){const _0x237f64=['registerEventHandler','Calendar','addChild','multiple','BaseConditionalColorOperator','startRow','addRecords','678puZJvO','BaseConditionalDateMode','Event','_getField','duplicate','_initBaseBeforeEvents','changeType','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','custom','max','1076GYUmDR','getTableById','localeCompare','_prepareFormulaFieldReferences','_unitId','setLinkedRecordIds','getProjection','url','deleteAttachments','fields','addRecord','BeforeBaseTableFieldCreate','BaseTableRecordCreated','BeforeBaseHierarchyChange','BaseFieldKeyEnum','getBase','move','getChildren','mimeType','[FRecord]:\x20field\x20\x22','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','find','[FBaseRange]:\x20values\x20size\x20','_inject','Failed\x20to\x20duplicate\x20table\x20\x22','filter','viewOrder','push','_univerInstanceService','_table','name','_parentObjectIds','Set','setReadOnly','saveUnit','Kanban','createBase','9ZeZiHC','getPrimaryField','getActiveBase','getConfig','Auto','_getRecord','_fireBeforeHierarchyChange','getRow','defineProperty','iterator','Formula','fromCollab','_getFieldIds','now','offset','fieldId','getNumColumns','deleteProperty','getId','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','length','some','height','BeforeBaseTableRecordCreate','createdAt','setOrderKey','toPrimitive','Name','unitId','reason','fieldKey','getViews','getParent','hasOwnProperty','endColumn','Grid','BeforeBaseTableCreate','getFieldByName','isArray','_collectDescendantIds','getType','BASE64','getBaseId','BaseFieldType','removeLinkedRecord','auto','[FField]:\x20field\x20\x22','getTable','setDefaultValue','includes','afterFieldId',':\x20\x22','hierarchyChanges',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','string','record','addConditionalColorRule','_projectionService','_objectId','createUnit','Facade','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','FBase','thumbnail','tables','_permissionService','BaseTableCellValueChanged','BaseHierarchyInvalidReason','search','_getTable','Failed\x20to\x20create\x20table\x20\x22','indexOf','field','isReadonly','setPoint','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','clear','every','description','recordOrder','addField','number','getRecords','getRange','getAllUnitsForType','UUID','1576tyiPhS','values','invalid','getDescendants','Base\x20field\x20not\x20found:\x20','map','config','[FBaseRange]:\x20table\x20does\x20not\x20exist.','source','update','getName','endRow','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','visibleCardFieldIds','updatedAt','BaseTableViewCreated','params','BeforeBaseTableViewCreate','[FRecord]:\x20RecordLink\x20field\x20\x22','6186QjgGxG','_assertInBounds','\x22\x20does\x20not\x20exist.','beforeCommandExecuted','executeCommand','\x22\x20is\x20not\x20an\x20Attachment\x20field.','getUnitId','DESC','deepClone','get','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getPermission','getAncestors','slice','_getHierarchyIndex','fieldOrder','setName','\x20for\x20field\x20\x22','Remote','RecordId','_getHierarchyEventContext','getOwnPropertyDescriptor','sort','duplicateTable','prototype','_viewId','size','setEditable','_base','orderKey','Gantt','hidden','getValues','primaryFieldId','8355890waHNdT','_initBaseAfterEvents','getTableId','valid','setParent','parentByRecordId','flatMap','getRecordById','symbol','\x20Copy','value','getVisibleFields','limit','getGroup','12SElqqj','type','getTableByName','disposeWithMe','tableId','base','parentRecordId','trim','BaseHierarchyErrorCode','_initialize','getSnapshot','constructor','externalReferences','formula','setAttachments','stringify','205zDGPvm','getConditionalColorRules','_getView','from','BaseFilterConjunction','_injector','beforeFieldId','\x20exceeds\x20range\x20size\x20','function','readonly','Edit','clearConditionalColorRules','save','fieldSettings',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','views','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','[FRecord]:\x20invalid\x20RecordLink\x20value.','entries','cancel','defaultValue','targetTableId','setObjectPermissions','_baseTableId','sourceType','fromEntries','17339388WCWpLF','Failed\x20to\x20add\x20field\x20\x22','updateConfig','getNumRows','getRecord','Failed\x20to\x20delete\x20table\x20\x22','width','_resolveRecordIds','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','getValue',',\x20range:\x20','message','_range','_recordId','UNIVER_BASE','isFinite',':\x20expected\x20an\x20object.','_getRecordLinkField','records','recordId','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','regenerateViewIds','setHierarchyField','decorate','getView','getFormulaName','getPrimaryFieldId','BaseRecordLinkRole','2717702SWLpLy','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','object','syncExecuteCommand','index','createInstance','addLinkedRecord','startColumn','getTables','matches','includeRecords','caseSensitive','16884KhkFrp','tableOrder','getBaseFacade','setConfig','getSchema','_baseUnitId','fireEvent','moveField','BaseHierarchyChanged','BaseTableCreated','887aEAiiF','getColumn',',\x20max\x20columns:\x20','viewId','_commandService','getLinkedRecordIds','notMatches','_writeFormulaExternalReferences','queryRecords','_getAttachmentField','delete','commonExtend','rows','BeforeBaseTableCellValueChange','canEdit','getSort','warn','extend','view','Attachment','BaseTableFieldCreated','fieldIds','direction','URL','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','createView','getDefaultValue','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','getField','Add','primaryFieldName','_tableId','Invalid\x20Base\x20formula.','system','call','AND','default','getFieldById','setValues','156186SBSiOy','deleteRecords','getFilter','onCommandExecuted','setValue','recordIds','\x22\x20is\x20invalid.','rowId','insertTable','BaseConditionalColorTarget','Duplicate\x20Base\x20field\x20name:\x20','table','_fieldId','operator','Clear','\x22\x20has\x20invalid\x20config.','getHierarchyFieldId','_resourceLoaderService','\x20in\x20field\x20\x22','RecordLink','Failed\x20to\x20add\x20records','rules','getViewById','getTableFacade','getBases','group'];_0x37f6=function(){return _0x237f64;};return _0x37f6();}K=G=z([R(0x4,_0x1047ac)],K);function q(_0x2ed6e5){'@babel/helpers - typeof';const _0x3b29dc=_0x6a5b69;return q=typeof Symbol=='function'&&typeof Symbol[_0x3b29dc(0x268)]==_0x3b29dc(0x186)?function(_0x18af31){return typeof _0x18af31;}:function(_0x325fd4){const _0x380975=_0x3b29dc;return _0x325fd4&&typeof Symbol==_0x380975(0x1a4)&&_0x325fd4[_0x380975(0x197)]===Symbol&&_0x325fd4!==Symbol[_0x380975(0x174)]?_0x380975(0x186):typeof _0x325fd4;},q(_0x2ed6e5);}function pt(_0x763dfb,_0x405e0e){const _0x575819=_0x6a5b69;if(q(_0x763dfb)!='object'||!_0x763dfb)return _0x763dfb;var _0x28dbc5;if(typeof Symbol<'u'&&(_0x28dbc5=_0x763dfb[Symbol[_0x575819(0x279)]])!==void 0x0){var _0x4115b2=_0x28dbc5[_0x575819(0x20a)](_0x763dfb,_0x405e0e||_0x575819(0x20c));if(q(_0x4115b2)!=_0x575819(0x1d4))return _0x4115b2;throw TypeError(_0x575819(0x166));}return(_0x405e0e==='string'?String:Number)(_0x763dfb);}function mt(_0x5b98bb){const _0x3de768=_0x6a5b69;var _0x14d7c8=pt(_0x5b98bb,'string');return q(_0x14d7c8)==_0x3de768(0x186)?_0x14d7c8:_0x14d7c8+'';}function ht(_0x41d290,_0x1d1020,_0x2eed16){const _0x2de82b=_0x6a5b69;return(_0x1d1020=mt(_0x1d1020))in _0x41d290?Object[_0x2de82b(0x267)](_0x41d290,_0x1d1020,{'value':_0x2eed16,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x41d290[_0x1d1020]=_0x2eed16,_0x41d290;}var J;let Y=J=class extends _0x2df259{constructor(_0x3427b2,_0x35d967,_0x47a4ba,_0x240af6,_0x1d7041,_0x170758){const _0x4051f5=_0x6a5b69;super(_0x240af6),this['_base']=_0x3427b2,this[_0x4051f5(0x257)]=_0x35d967,this[_0x4051f5(0x1c3)]=_0x47a4ba,this[_0x4051f5(0x1a1)]=_0x240af6,this[_0x4051f5(0x1ec)]=_0x1d7041,this[_0x4051f5(0x2a0)]=_0x170758,ht(this,_0x4051f5(0x1e3),void 0x0),ht(this,_0x4051f5(0x1b3),void 0x0),this['_baseUnitId']=_0x3427b2['getId'](),this['_baseTableId']=_0x35d967['getId']();}[_0x6a5b69(0x1e0)](){const _0x561c68=_0x6a5b69;return this[_0x561c68(0x178)];}[_0x6a5b69(0x226)](){const _0x17c123=_0x6a5b69;return this[_0x17c123(0x257)];}[_0x6a5b69(0x271)](){const _0x4c4b38=_0x6a5b69;return this[_0x4c4b38(0x1c3)];}[_0x6a5b69(0x167)](){const _0x4815fa=_0x6a5b69;let _0x250fdd=this[_0x4815fa(0x257)][_0x4815fa(0x271)]();return new L(this[_0x4815fa(0x178)][_0x4815fa(0x271)](),_0x1b9662(_0x250fdd,this[_0x4815fa(0x1c3)]),[_0x2d8a33(_0x250fdd)],this[_0x4815fa(0x1ec)],this[_0x4815fa(0x2a0)]);}[_0x6a5b69(0x1ba)](){const _0x5f5dd4=_0x6a5b69;return{...this[_0x5f5dd4(0x264)](),'values':this[_0x5f5dd4(0x17c)]()};}[_0x6a5b69(0x1bf)](_0x2f548d){const _0x196cdf=_0x6a5b69;return V(this[_0x196cdf(0x257)][_0x196cdf(0x28e)]()[_0x196cdf(0x243)][_0x2f548d])?this[_0x196cdf(0x264)]()['values'][_0x2f548d]??null:null;}[_0x6a5b69(0x17c)](){const _0x601fa3=_0x6a5b69;let _0x5e6fc6=this[_0x601fa3(0x257)][_0x601fa3(0x28e)]();return Object[_0x601fa3(0x1b5)](Object[_0x601fa3(0x1ae)](this[_0x601fa3(0x264)]()[_0x601fa3(0x2b6)])[_0x601fa3(0x253)](([_0x52d052])=>V(_0x5e6fc6[_0x601fa3(0x243)][_0x52d052])));}[_0x6a5b69(0x213)](_0x20422c,_0x48cb86){const _0x3613cf=_0x6a5b69;let _0x1b128f=this[_0x3613cf(0x257)]['getTable']()['fields'][_0x20422c];return this[_0x3613cf(0x1ec)][_0x3613cf(0x1d5)](_0x3a32fc['id'],{'unitId':this[_0x3613cf(0x178)][_0x3613cf(0x271)](),'tableId':this[_0x3613cf(0x257)]['getId'](),'recordId':this[_0x3613cf(0x1c3)],'fieldId':_0x20422c,'value':st(_0x1b128f,_0x48cb86),'source':_0x43f637['Facade']});}[_0x6a5b69(0x19a)](_0x458f7a,_0x586bf3){const _0x164dd8=_0x6a5b69;return this[_0x164dd8(0x213)](_0x458f7a,_0x586bf3[_0x164dd8(0x2ba)](_0x3c9fff=>({..._0x3c9fff})));}['getAttachments'](_0x43dac3){const _0xf0e2cd=_0x6a5b69;this[_0xf0e2cd(0x1f1)](_0x43dac3);let _0x2874c5=this[_0xf0e2cd(0x1bf)](_0x43dac3);return Array[_0xf0e2cd(0x285)](_0x2874c5)?_0x2874c5[_0xf0e2cd(0x2ba)]((_0x153e8c,_0x51763c)=>_t(_0x153e8c,_0x43dac3,_0x51763c)):[];}[_0x6a5b69(0x242)](_0x3c4ab2,_0x4a6025){const _0x29eebc=_0x6a5b69;this[_0x29eebc(0x1f1)](_0x3c4ab2);let _0x41ca72=new Set(_0x4a6025[_0x29eebc(0x2ba)](_0x2c6e56=>_0x2c6e56['id']));if(!_0x41ca72['size'])return!0x0;let _0x24520c=this['getAttachments'](_0x3c4ab2),_0x278f25=_0x24520c['filter'](_0x833bb6=>!_0x41ca72['has'](_0x833bb6['id']));return _0x278f25[_0x29eebc(0x273)]===_0x24520c[_0x29eebc(0x273)]||this['setAttachments'](_0x3c4ab2,_0x278f25);}[_0x6a5b69(0x20e)](_0x449992,_0x3ddce2='id'){const _0x23f1e4=_0x6a5b69;let _0x4f85e8=this[_0x23f1e4(0x257)][_0x23f1e4(0x28e)](),_0x4d9ffa=[{'recordId':this[_0x23f1e4(0x1c3)],'values':H(_0x4f85e8,_0x449992,_0x3ddce2)}];return this['_commandService'][_0x23f1e4(0x1d5)](_0x2cebcc['id'],{'unitId':this[_0x23f1e4(0x178)][_0x23f1e4(0x271)](),'tableId':this[_0x23f1e4(0x257)]['getId'](),'patches':_0x4d9ffa,'source':_0x43f637['Facade']});}[_0x6a5b69(0x1f2)](){const _0x27b54c=_0x6a5b69;return this[_0x27b54c(0x1ec)][_0x27b54c(0x1d5)](_0x392c6f['id'],{'unitId':this[_0x27b54c(0x178)][_0x27b54c(0x271)](),'tableId':this[_0x27b54c(0x257)][_0x27b54c(0x271)](),'recordId':this[_0x27b54c(0x1c3)],'source':_0x43f637[_0x27b54c(0x29b)]});}[_0x6a5b69(0x234)](_0x387c0e){const _0x27da57=_0x6a5b69;let _0x57935c={...this['_getRecord'](),..._0x387c0e,'id':_0x49e131(0x6)};_0x57935c[_0x27da57(0x2b6)]={..._0x57935c[_0x27da57(0x2b6)],..._0x387c0e==null?void 0x0:_0x387c0e[_0x27da57(0x2b6)]},Reflect[_0x27da57(0x270)](_0x57935c[_0x27da57(0x2b6)],_0x8c29d8);let _0x137665=Date[_0x27da57(0x26c)]();if(_0x57935c[_0x27da57(0x179)]||=''+_0x137665,_0x57935c['createdAt']||=_0x137665,_0x57935c[_0x27da57(0x2c3)]||=_0x137665,!this[_0x27da57(0x1ec)]['syncExecuteCommand'](_0x499a45['id'],{'unitId':this[_0x27da57(0x178)][_0x27da57(0x271)](),'tableId':this['_table'][_0x27da57(0x271)](),'sourceRecordId':this[_0x27da57(0x1c3)],'record':_0x57935c,'source':_0x43f637[_0x27da57(0x29b)]}))throw Error(_0x27da57(0x200)+this['_recordId']+'\x22.');return this[_0x27da57(0x1a1)][_0x27da57(0x1d7)](J,this[_0x27da57(0x178)],this[_0x27da57(0x257)],_0x57935c['id'],this[_0x27da57(0x1a1)]);}[_0x6a5b69(0x278)](_0x2fd123){const _0x508e0b=_0x6a5b69;return this[_0x508e0b(0x1ec)][_0x508e0b(0x1d5)](_0x43adcc['id'],{'unitId':this[_0x508e0b(0x178)][_0x508e0b(0x271)](),'tableId':this[_0x508e0b(0x257)][_0x508e0b(0x271)](),'recordId':this['_recordId'],'orderKey':_0x2fd123});}[_0x6a5b69(0x1ed)](_0x1209a3){const _0x24dbb9=_0x6a5b69;let _0x12b5e6=this[_0x24dbb9(0x1c7)](_0x1209a3),_0xd63ecd=this[_0x24dbb9(0x1bf)](_0x12b5e6['id']);return _0x2b8d32(_0xd63ecd);}[_0x6a5b69(0x23f)](_0x264874,_0x39f6af){const _0xa72bf7=_0x6a5b69;let _0xf78d7d=this[_0xa72bf7(0x1c7)](_0x264874),_0x587b54=_0xe4f0db(_0x39f6af),_0xa528ad=_0x46f65b(this[_0xa72bf7(0x178)][_0xa72bf7(0x249)]()[_0xa72bf7(0x196)](),_0xf78d7d,_0x587b54);if(!_0xa528ad[_0xa72bf7(0x181)])throw Error(_0xa528ad['reason']??_0xa72bf7(0x1ad));return this[_0xa72bf7(0x1ec)][_0xa72bf7(0x1d5)](_0x3a32fc['id'],{'unitId':this['_base'][_0xa72bf7(0x271)](),'tableId':this[_0xa72bf7(0x257)][_0xa72bf7(0x271)](),'recordId':this[_0xa72bf7(0x1c3)],'fieldId':_0x264874,'value':_0x587b54,'source':_0x43f637[_0xa72bf7(0x29b)]});}[_0x6a5b69(0x1d8)](_0x478a36,_0x2fad54){const _0x41e89c=_0x6a5b69;let _0x45b19b=this['_getRecordLinkField'](_0x478a36),_0x427080=_0x3dfa8b(_0x45b19b);if(!_0x427080)throw Error(_0x41e89c(0x2c7)+_0x478a36+_0x41e89c(0x21e));let _0x19ef6b=this['getLinkedRecordIds'](_0x478a36);return _0x427080[_0x41e89c(0x22c)]&&_0x19ef6b['includes'](_0x2fad54)?!0x0:this[_0x41e89c(0x23f)](_0x478a36,_0x427080[_0x41e89c(0x22c)]?[..._0x19ef6b,_0x2fad54]:[_0x2fad54]);}[_0x6a5b69(0x28b)](_0x41f451,_0x17f0e5){const _0x1296b5=_0x6a5b69;let _0x5cef2a=this[_0x1296b5(0x1ed)](_0x41f451);return!_0x5cef2a[_0x1296b5(0x290)](_0x17f0e5)||this[_0x1296b5(0x23f)](_0x41f451,_0x5cef2a['filter'](_0xfe920c=>_0xfe920c!==_0x17f0e5));}[_0x6a5b69(0x27f)](_0x35b2b8){const _0x4e73d9=_0x6a5b69;let _0x51ad38=this[_0x4e73d9(0x16a)](_0x35b2b8)[_0x4e73d9(0x183)][_0x4e73d9(0x2d1)](this[_0x4e73d9(0x1c3)])??null;return _0x51ad38?this['_table'][_0x4e73d9(0x185)](_0x51ad38):null;}[_0x6a5b69(0x24b)](_0x3bfbd2){const _0x13c217=_0x6a5b69;return(this['_getHierarchyIndex'](_0x3bfbd2)['childrenByParentId'][_0x13c217(0x2d1)](this[_0x13c217(0x1c3)])??[])[_0x13c217(0x184)](_0x465441=>{const _0x4a5ce9=_0x13c217;let _0x29dac8=this[_0x4a5ce9(0x257)]['getRecordById'](_0x465441);return _0x29dac8?[_0x29dac8]:[];});}[_0x6a5b69(0x168)](_0x5ca1fd){const _0x4d5fae=_0x6a5b69;let _0x116d65=this['_getHierarchyIndex'](_0x5ca1fd),_0x5bbd76=[],_0x26d854=_0x116d65[_0x4d5fae(0x183)][_0x4d5fae(0x2d1)](this[_0x4d5fae(0x1c3)])??null;for(;_0x26d854;){let _0x103b8e=this['_table'][_0x4d5fae(0x185)](_0x26d854);_0x103b8e&&_0x5bbd76[_0x4d5fae(0x255)](_0x103b8e),_0x26d854=_0x116d65[_0x4d5fae(0x183)][_0x4d5fae(0x2d1)](_0x26d854)??null;}return _0x5bbd76;}[_0x6a5b69(0x2b8)](_0x175469){const _0x1da4d6=_0x6a5b69;let _0x469caa=this[_0x1da4d6(0x16a)](_0x175469),_0x337a70=_0x469caa['orderedRecordIds'][_0x1da4d6(0x2a6)](this[_0x1da4d6(0x1c3)]),_0x487569=_0x469caa['subtreeHeightByRecordId']['has'](this[_0x1da4d6(0x1c3)])?this[_0x1da4d6(0x286)](_0x469caa['childrenByParentId'],this[_0x1da4d6(0x1c3)]):[];return _0x337a70<0x0?[]:_0x487569[_0x1da4d6(0x184)](_0x145b1e=>{const _0x5573d7=_0x1da4d6;let _0x53095e=this[_0x5573d7(0x257)][_0x5573d7(0x185)](_0x145b1e);return _0x53095e?[_0x53095e]:[];});}[_0x6a5b69(0x182)](_0x436a53,_0x113466,_0x1c1cf8){const _0x48902d=_0x6a5b69;return this[_0x48902d(0x1ec)][_0x48902d(0x1d5)](_0x448699['id'],{'unitId':this['_base'][_0x48902d(0x271)](),'tableId':this[_0x48902d(0x257)][_0x48902d(0x271)](),'fieldId':_0x436a53,'recordId':this[_0x48902d(0x1c3)],'parentRecordId':_0x113466,'orderKey':_0x1c1cf8,'source':_0x43f637[_0x48902d(0x29b)]});}[_0x6a5b69(0x22b)](_0xe7b44d,_0x5d29ea,_0xc85a3a='id',_0x36cf32){const _0x327f87=_0x6a5b69;let _0xc2796d=this[_0x327f87(0x257)][_0x327f87(0x28e)](),_0x9b5f86=Date['now'](),_0x3b3e1b={..._0x36cf32,'id':_0x49e131(0x6),'values':H(_0xc2796d,_0x5d29ea,_0xc85a3a),'orderKey':(_0x36cf32==null?void 0x0:_0x36cf32[_0x327f87(0x179)])||''+_0x9b5f86,'createdAt':(_0x36cf32==null?void 0x0:_0x36cf32['createdAt'])||_0x9b5f86,'updatedAt':(_0x36cf32==null?void 0x0:_0x36cf32[_0x327f87(0x2c3)])||_0x9b5f86};if(!this['_commandService']['syncExecuteCommand'](_0x4cd8a9['id'],{'unitId':this[_0x327f87(0x178)][_0x327f87(0x271)](),'tableId':this[_0x327f87(0x257)]['getId'](),'fieldId':_0xe7b44d,'parentRecordId':this['_recordId'],'record':_0x3b3e1b,'source':_0x43f637[_0x327f87(0x29b)]}))throw Error(_0x327f87(0x2aa)+this[_0x327f87(0x1c3)]+'\x22.');return this['_injector'][_0x327f87(0x1d7)](J,this[_0x327f87(0x178)],this[_0x327f87(0x257)],_0x3b3e1b['id'],this[_0x327f87(0x1a1)]);}[_0x6a5b69(0x16a)](_0x602245){const _0x24ddea=_0x6a5b69;return _0x5b61b7(this[_0x24ddea(0x257)][_0x24ddea(0x28e)](),_0x602245);}['_collectDescendantIds'](_0x2cf201,_0xe4e01f){let _0xde5b5a=[],_0x213266=_0x16b3f4=>{for(let _0x50ff3b of _0x2cf201['get'](_0x16b3f4)??[])_0xde5b5a['push'](_0x50ff3b),_0x213266(_0x50ff3b);};return _0x213266(_0xe4e01f),_0xde5b5a;}['_getRecord'](){const _0x4b2edb=_0x6a5b69;let _0x565fe6=this['_table'][_0x4b2edb(0x28e)]()[_0x4b2edb(0x1c8)][this[_0x4b2edb(0x1c3)]];if(!_0x565fe6)throw Error('[FRecord]:\x20record\x20\x22'+this['_recordId']+_0x4b2edb(0x2ca));return _0x565fe6;}['_getRecordLinkField'](_0x59a3aa){const _0x46b3a0=_0x6a5b69;let _0x54fd3d=this['_table']['getTable']()[_0x46b3a0(0x243)][_0x59a3aa];if(!_0x54fd3d||_0x54fd3d[_0x46b3a0(0x18d)]!==_0x1dcf64['RecordLink'])throw Error(_0x46b3a0(0x24d)+_0x59a3aa+_0x46b3a0(0x203));return _0x54fd3d;}[_0x6a5b69(0x1f1)](_0x42b6f0){const _0x4114d3=_0x6a5b69;let _0xb7f50a=this['_table'][_0x4114d3(0x28e)]()['fields'][_0x42b6f0];if(!_0xb7f50a||_0xb7f50a[_0x4114d3(0x18d)]!==_0x1dcf64[_0x4114d3(0x1fb)])throw Error(_0x4114d3(0x24d)+_0x42b6f0+_0x4114d3(0x2cd));return _0xb7f50a;}};Y=J=z([R(0x4,_0x1047ac),R(0x5,_0x9f57f5)],Y);function gt(_0x35d22b){const _0x5375cb=_0x6a5b69;return!!(_0x35d22b&&typeof _0x35d22b==_0x5375cb(0x1d4)&&'id'in _0x35d22b&&typeof _0x35d22b['id']==_0x5375cb(0x295)&&_0x5375cb(0x258)in _0x35d22b&&typeof _0x35d22b[_0x5375cb(0x258)]==_0x5375cb(0x295));}function _t(_0x47a3e2,_0x41e968,_0x4f3b79){const _0x98826a=_0x6a5b69;if(!gt(_0x47a3e2))throw Error('[FRecord]:\x20attachment\x20at\x20index\x20'+_0x4f3b79+_0x98826a(0x221)+_0x41e968+_0x98826a(0x215));return{..._0x47a3e2};}let X=class{constructor(_0x2771c8,_0x54a339,_0x257a48,_0x554c0f,_0x3929bf,_0x83c7ad,_0x51be4b){const _0x13fe6d=_0x6a5b69;this['_base']=_0x2771c8,this['_table']=_0x54a339,this[_0x13fe6d(0x175)]=_0x257a48,this[_0x13fe6d(0x1a1)]=_0x554c0f,this[_0x13fe6d(0x1ec)]=_0x3929bf,this[_0x13fe6d(0x2a0)]=_0x83c7ad,this[_0x13fe6d(0x298)]=_0x51be4b;}[_0x6a5b69(0x271)](){const _0x39fee6=_0x6a5b69;return this[_0x39fee6(0x175)];}[_0x6a5b69(0x167)](){const _0x1f5f4d=_0x6a5b69;let _0x4191ee=this['_table'][_0x1f5f4d(0x271)]();return new L(this[_0x1f5f4d(0x178)]['getId'](),_0x33ee0c(_0x4191ee,this[_0x1f5f4d(0x175)]),[_0x2d8a33(_0x4191ee)],this[_0x1f5f4d(0x1ec)],this['_permissionService']);}[_0x6a5b69(0x1ce)](){const _0x5cf64e=_0x6a5b69;return this[_0x5cf64e(0x19e)]();}[_0x6a5b69(0x2bf)](){const _0x3dc00e=_0x6a5b69;return this[_0x3dc00e(0x19e)]()[_0x3dc00e(0x258)];}[_0x6a5b69(0x287)](){const _0x2fddb7=_0x6a5b69;return this[_0x2fddb7(0x19e)]()['type'];}[_0x6a5b69(0x16c)](_0xa71436){const _0x529181=_0x6a5b69;return this[_0x529181(0x1ec)][_0x529181(0x1d5)](_0x11dffb['id'],{'unitId':this[_0x529181(0x178)]['getId'](),'tableId':this[_0x529181(0x257)][_0x529181(0x271)](),'viewId':this['_viewId'],'name':_0xa71436});}[_0x6a5b69(0x262)](){const _0x1031b0=_0x6a5b69;let _0x3db8e0=this[_0x1031b0(0x287)](),_0x572cab=this[_0x1031b0(0x19e)]()[_0x1031b0(0x2bb)];switch(_0x3db8e0){case _0x144585[_0x1031b0(0x282)]:return _0x572cab;case _0x144585[_0x1031b0(0x25d)]:return _0x572cab;case _0x144585[_0x1031b0(0x22a)]:return _0x572cab;case _0x144585[_0x1031b0(0x17a)]:return _0x572cab;case _0x144585['Gallery']:return _0x572cab;default:return _0x572cab;}}[_0x6a5b69(0x1b8)](_0x400b2f){const _0x4bda9e=_0x6a5b69;return this[_0x4bda9e(0x1ec)]['syncExecuteCommand'](_0x403e74['id'],{'unitId':this[_0x4bda9e(0x178)]['getId'](),'tableId':this['_table']['getId'](),'viewId':this[_0x4bda9e(0x175)],'patch':_0x400b2f});}[_0x6a5b69(0x19d)](){const _0x5d1ae3=_0x6a5b69;var _0x574c90;return _0x2517f7[_0x5d1ae3(0x2d0)](((_0x574c90=this[_0x5d1ae3(0x19e)]()[_0x5d1ae3(0x2bb)]['conditionalColoring'])==null?void 0x0:_0x574c90[_0x5d1ae3(0x224)])??[]);}['setConditionalColorRules'](_0x585102){const _0x2cc9bb=_0x6a5b69;return this[_0x2cc9bb(0x1ec)][_0x2cc9bb(0x1d5)](_0x49c748['id'],{'unitId':this['_base'][_0x2cc9bb(0x271)](),'tableId':this[_0x2cc9bb(0x257)][_0x2cc9bb(0x271)](),'viewId':this[_0x2cc9bb(0x175)],'type':_0x21d239[_0x2cc9bb(0x25a)],'rules':_0x585102});}[_0x6a5b69(0x297)](_0x375f0d){const _0x40a500=_0x6a5b69;return this[_0x40a500(0x1ec)][_0x40a500(0x1d5)](_0x49c748['id'],{'unitId':this[_0x40a500(0x178)][_0x40a500(0x271)](),'tableId':this[_0x40a500(0x257)][_0x40a500(0x271)](),'viewId':this[_0x40a500(0x175)],'type':_0x21d239[_0x40a500(0x205)],'rule':_0x375f0d});}['deleteConditionalColorRule'](_0x39c2cf){const _0x35963d=_0x6a5b69;return this['_commandService'][_0x35963d(0x1d5)](_0x49c748['id'],{'unitId':this['_base'][_0x35963d(0x271)](),'tableId':this[_0x35963d(0x257)]['getId'](),'viewId':this[_0x35963d(0x175)],'type':_0x21d239['Delete'],'ruleId':_0x39c2cf});}[_0x6a5b69(0x1a7)](){const _0x51a631=_0x6a5b69;return this['_commandService'][_0x51a631(0x1d5)](_0x49c748['id'],{'unitId':this[_0x51a631(0x178)][_0x51a631(0x271)](),'tableId':this['_table'][_0x51a631(0x271)](),'viewId':this[_0x51a631(0x175)],'type':_0x21d239[_0x51a631(0x21d)]});}[_0x6a5b69(0x211)](){const _0x481262=_0x6a5b69;return this['_getView']()[_0x481262(0x253)]??null;}['setFilter'](_0x17a16a){const _0x2e392f=_0x6a5b69;return this[_0x2e392f(0x1ec)][_0x2e392f(0x1d5)](_0x1e5f36['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x2e392f(0x257)][_0x2e392f(0x271)](),'viewId':this[_0x2e392f(0x175)],'filter':_0x17a16a});}[_0x6a5b69(0x1f7)](){const _0x22922b=_0x6a5b69;return this[_0x22922b(0x19e)]()['sort']??[];}['setSort'](_0x10d711){const _0xc9e24e=_0x6a5b69;return this[_0xc9e24e(0x1ec)][_0xc9e24e(0x1d5)](_0x15d9fe['id'],{'unitId':this['_base'][_0xc9e24e(0x271)](),'tableId':this[_0xc9e24e(0x257)][_0xc9e24e(0x271)](),'viewId':this[_0xc9e24e(0x175)],'sort':_0x10d711});}[_0x6a5b69(0x18b)](){const _0x291996=_0x6a5b69;return this[_0x291996(0x19e)]()[_0x291996(0x228)]??[];}['setGroup'](_0x4ad48f){const _0x4043dc=_0x6a5b69;return this[_0x4043dc(0x1ec)]['syncExecuteCommand'](_0x545b5d['id'],{'unitId':this['_base'][_0x4043dc(0x271)](),'tableId':this[_0x4043dc(0x257)][_0x4043dc(0x271)](),'viewId':this['_viewId'],'group':_0x4ad48f});}['getFieldSettings'](_0x3acbec){const _0x269a80=_0x6a5b69;var _0x55b2ed;return V(this['_table']['getTable']()[_0x269a80(0x243)][_0x3acbec])?((_0x55b2ed=this['_getView']()['fieldSettings'])==null?void 0x0:_0x55b2ed[_0x3acbec])??{}:{};}[_0x6a5b69(0x189)](){const _0x37ea42=_0x6a5b69;let _0x77490c=this['_table'][_0x37ea42(0x28e)](),_0x496556=this[_0x37ea42(0x19e)]();return(_0x496556[_0x37ea42(0x16b)]??_0x77490c[_0x37ea42(0x16b)])[_0x37ea42(0x253)](_0x2b6f08=>{const _0x1d5143=_0x37ea42;var _0x566310;let _0x5183fb=_0x77490c['fields'][_0x2b6f08];return V(_0x5183fb)&&!((_0x566310=_0x496556[_0x1d5143(0x1a9)])!=null&&(_0x566310=_0x566310[_0x2b6f08])!=null&&_0x566310[_0x1d5143(0x17b)]);})[_0x37ea42(0x2ba)](_0x4a668=>this[_0x37ea42(0x1a1)][_0x37ea42(0x1d7)](B,this[_0x37ea42(0x178)],this[_0x37ea42(0x257)],_0x4a668));}['setFieldVisible'](_0x13bf2b,_0x3ae687){const _0x4dd281=_0x6a5b69;return V(this[_0x4dd281(0x257)]['getTable']()[_0x4dd281(0x243)][_0x13bf2b])?this[_0x4dd281(0x1ec)][_0x4dd281(0x1d5)](_0x5ce8b2['id'],{'unitId':this[_0x4dd281(0x178)][_0x4dd281(0x271)](),'tableId':this[_0x4dd281(0x257)][_0x4dd281(0x271)](),'viewId':this[_0x4dd281(0x175)],'fieldId':_0x13bf2b,'visible':_0x3ae687}):!0x1;}['setFieldWidth'](_0x4c4043,_0x7a853a){const _0x5268d2=_0x6a5b69;return V(this[_0x5268d2(0x257)][_0x5268d2(0x28e)]()['fields'][_0x4c4043])?this['_commandService']['syncExecuteCommand'](_0x4154ed['id'],{'unitId':this[_0x5268d2(0x178)][_0x5268d2(0x271)](),'tableId':this[_0x5268d2(0x257)][_0x5268d2(0x271)](),'viewId':this['_viewId'],'fieldId':_0x4c4043,'width':_0x7a853a}):!0x1;}[_0x6a5b69(0x1e5)](_0x5404e4,_0x1ec99b){const _0x22e9cf=_0x6a5b69;let _0x165143=this[_0x22e9cf(0x257)]['getTable'](),_0x5a7e9f=_0x1ec99b[_0x22e9cf(0x1a2)]??_0x1ec99b[_0x22e9cf(0x291)];return!V(_0x165143['fields'][_0x5404e4])||!_0x5a7e9f||!V(_0x165143['fields'][_0x5a7e9f])?!0x1:this[_0x22e9cf(0x1ec)][_0x22e9cf(0x1d5)](_0x26a020['id'],{'unitId':this[_0x22e9cf(0x178)][_0x22e9cf(0x271)](),'tableId':this[_0x22e9cf(0x257)]['getId'](),'viewId':this[_0x22e9cf(0x175)],'fieldId':_0x5404e4,'target':_0x1ec99b});}[_0x6a5b69(0x24a)](_0x20ed89){const _0x45daab=_0x6a5b69;return this['_commandService'][_0x45daab(0x1d5)](_0x1008cd['id'],{'unitId':this[_0x45daab(0x178)]['getId'](),'tableId':this[_0x45daab(0x257)]['getId'](),'viewId':this[_0x45daab(0x175)],'target':_0x20ed89});}['delete'](){const _0x115dac=_0x6a5b69;return this[_0x115dac(0x1ec)][_0x115dac(0x1d5)](_0x1c08cd['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x115dac(0x257)]['getId'](),'viewId':this[_0x115dac(0x175)]});}[_0x6a5b69(0x240)](){const _0x3a3e21=_0x6a5b69;return this['_projectionService'][_0x3a3e21(0x240)](this['_base']['getBase']()[_0x3a3e21(0x196)](),this['_table'][_0x3a3e21(0x271)](),this[_0x3a3e21(0x175)]);}[_0x6a5b69(0x19e)](){const _0x122e35=_0x6a5b69;let _0x20432a=this[_0x122e35(0x257)][_0x122e35(0x28e)]()[_0x122e35(0x1ab)][this[_0x122e35(0x175)]];if(!_0x20432a)throw Error('[FView]:\x20view\x20\x22'+this[_0x122e35(0x175)]+'\x22\x20does\x20not\x20exist.');return _0x20432a;}};X=z([R(0x4,_0x1047ac),R(0x5,_0x9f57f5),R(0x6,_0x483014)],X);let Z=class{constructor(_0x48c00a,_0x3c0f82,_0x1f59e0,_0x584657,_0x258a0f,_0x2d169a){const _0x4534a3=_0x6a5b69;this[_0x4534a3(0x178)]=_0x48c00a,this[_0x4534a3(0x207)]=_0x3c0f82,this[_0x4534a3(0x1a1)]=_0x1f59e0,this[_0x4534a3(0x1ec)]=_0x584657,this['_permissionService']=_0x258a0f,this[_0x4534a3(0x298)]=_0x2d169a;}[_0x6a5b69(0x249)](){const _0x5ccd85=_0x6a5b69;return this[_0x5ccd85(0x178)]['getBase']();}[_0x6a5b69(0x28e)](){const _0x370607=_0x6a5b69;return this[_0x370607(0x2a4)]();}['getId'](){const _0x5bbfb1=_0x6a5b69;return this[_0x5bbfb1(0x207)];}[_0x6a5b69(0x167)](){const _0x12d8f1=_0x6a5b69;return new L(this[_0x12d8f1(0x249)]()['getUnitId'](),_0x2d8a33(this[_0x12d8f1(0x207)]),[],this[_0x12d8f1(0x1ec)],this[_0x12d8f1(0x2a0)]);}[_0x6a5b69(0x21f)](){const _0x78898e=_0x6a5b69;return _0x38a87b(this[_0x78898e(0x2a4)]());}[_0x6a5b69(0x1cc)](_0x1c1c60){const _0x95b25d=_0x6a5b69;return this['_commandService']['syncExecuteCommand'](_0x2bda89['id'],{'unitId':this[_0x95b25d(0x178)][_0x95b25d(0x271)](),'tableId':this['_tableId'],'fieldId':_0x1c1c60});}[_0x6a5b69(0x2bf)](){const _0x1cfe13=_0x6a5b69;return this[_0x1cfe13(0x2a4)]()[_0x1cfe13(0x258)];}[_0x6a5b69(0x1cf)](){const _0xc8dab6=_0x6a5b69;let _0xf7c46f=this['_base'][_0xc8dab6(0x249)]()[_0xc8dab6(0x196)]();return _0x193fc0(this['_getTable'](),_0xf7c46f);}[_0x6a5b69(0x16c)](_0x40db57){const _0x4060a8=_0x6a5b69;let _0x4b4ec6=_0x4fd34e(this['_base'][_0x4060a8(0x249)]()['getSnapshot'](),_0x40db57,this[_0x4060a8(0x207)]);if(!_0x4b4ec6[_0x4060a8(0x181)])throw Error('[FBaseTable]:\x20invalid\x20table\x20name\x20\x22'+_0x40db57+'\x22.\x20'+_0x5963f1+'\x20'+_0x4b4ec6['reason']);return this[_0x4060a8(0x1ec)]['syncExecuteCommand'](_0x264dca['id'],{'unitId':this[_0x4060a8(0x178)][_0x4060a8(0x271)](),'tableId':this[_0x4060a8(0x207)],'name':_0x40db57});}[_0x6a5b69(0x2a3)](_0x4563a,_0x14517c){const _0x30ec75=_0x6a5b69;let _0x54be8a=this['_base'][_0x30ec75(0x249)]()[_0x30ec75(0x196)](),_0x50a328=this[_0x30ec75(0x2a4)]();if(_0x14517c){let _0x494ebb=this[_0x30ec75(0x298)][_0x30ec75(0x240)](_0x54be8a,this[_0x30ec75(0x207)],_0x14517c),_0x255ce7=_0x50a328[_0x30ec75(0x1ab)][_0x14517c],_0x562693=_0x4563a[_0x30ec75(0x1fd)]??Tt(_0x50a328,_0x255ce7,_0x494ebb),_0x5b571f=_0x30ec75(0x1f4)in _0x494ebb&&Array[_0x30ec75(0x285)](_0x494ebb[_0x30ec75(0x1f4)])?_0x494ebb['rows']:[];return _0x729fff({..._0x4563a,'table':_0x50a328,'fieldIds':_0x562693,'rows':_0x5b571f});}let _0x3dcf2f=(_0x50a328['recordOrder']?_0x50a328['recordOrder'][_0x30ec75(0x2ba)](_0x1b7dba=>_0x50a328[_0x30ec75(0x1c8)][_0x1b7dba]):Object['values'](_0x50a328['records'])['sort']((_0x4c40ef,_0x3ccbeb)=>_0x4c40ef[_0x30ec75(0x179)][_0x30ec75(0x23c)](_0x3ccbeb['orderKey'])))[_0x30ec75(0x253)](_0x172fca=>_0x172fca)['map'](_0x368495=>({'recordId':_0x368495['id'],'values':_0x368495[_0x30ec75(0x2b6)]})),_0x5258ac=_0x4563a['fieldIds']??_0x50a328[_0x30ec75(0x16b)][_0x30ec75(0x253)](_0x974228=>V(_0x50a328[_0x30ec75(0x243)][_0x974228]));return _0x729fff({..._0x4563a,'table':_0x50a328,'fieldIds':_0x5258ac,'rows':_0x3dcf2f});}[_0x6a5b69(0x1d0)](){const _0x50d9ae=_0x6a5b69;return this[_0x50d9ae(0x2a4)]()[_0x50d9ae(0x17d)];}['getFields'](){const _0x4608af=_0x6a5b69;let _0x5524ae=this[_0x4608af(0x2a4)]();return _0x5524ae[_0x4608af(0x16b)]['map'](_0x212a40=>_0x5524ae[_0x4608af(0x243)][_0x212a40])[_0x4608af(0x253)](V)[_0x4608af(0x2ba)](_0x182529=>this['_injector'][_0x4608af(0x1d7)](B,this[_0x4608af(0x178)],this,_0x182529['id']));}['getFieldById'](_0x2661ef){const _0x5b18d1=_0x6a5b69;let _0x61b9b=this[_0x5b18d1(0x2a4)]()[_0x5b18d1(0x243)][_0x2661ef];return V(_0x61b9b)?this['_injector'][_0x5b18d1(0x1d7)](B,this['_base'],this,_0x61b9b['id']):null;}[_0x6a5b69(0x284)](_0x5253cf){const _0x4aee2e=_0x6a5b69;let _0x23b73c=this[_0x4aee2e(0x2a4)]()[_0x4aee2e(0x243)],_0x364f47=Object[_0x4aee2e(0x2b6)](_0x23b73c)['find'](_0x5aea6d=>V(_0x5aea6d)&&_0x5aea6d[_0x4aee2e(0x258)]===_0x5253cf);return _0x364f47?this[_0x4aee2e(0x1a1)][_0x4aee2e(0x1d7)](B,this[_0x4aee2e(0x178)],this,_0x364f47['id']):null;}[_0x6a5b69(0x260)](){const _0xa628cf=_0x6a5b69;let _0x285d2e=this[_0xa628cf(0x2a4)]()['primaryFieldId'];return this[_0xa628cf(0x1a1)]['createInstance'](B,this[_0xa628cf(0x178)],this,_0x285d2e);}[_0x6a5b69(0x2af)](_0xb70d9e,_0x50c72c,_0x443aab){const _0x4b8e6d=_0x6a5b69;var _0x34358d,_0x1fb241;if(!Object['values'](_0x1dcf64)[_0x4b8e6d(0x274)](_0x18413d=>_0x18413d===_0x50c72c))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x50c72c)+'\x22.');if(_0x50c72c===_0x1dcf64['Formula']&&this[_0x4b8e6d(0x23d)](_0xb70d9e,_0x443aab),_0x50c72c===_0x1dcf64[_0x4b8e6d(0x222)]&&(typeof(_0x443aab==null||(_0x34358d=_0x443aab[_0x4b8e6d(0x2a7)])==null||(_0x34358d=_0x34358d['config'])==null?void 0x0:_0x34358d[_0x4b8e6d(0x1b1)])!=_0x4b8e6d(0x295)||typeof _0x443aab[_0x4b8e6d(0x2a7)]['config'][_0x4b8e6d(0x22c)]!='boolean'))throw Error(_0x4b8e6d(0x1ac));let _0x16692b={..._0x443aab==null?void 0x0:_0x443aab['field'],'id':_0x49e131(0x6),'name':_0xb70d9e,'type':_0x50c72c,'config':(_0x443aab==null||(_0x1fb241=_0x443aab['field'])==null?void 0x0:_0x1fb241[_0x4b8e6d(0x2bb)])??{}};if(!this[_0x4b8e6d(0x1ec)][_0x4b8e6d(0x1d5)](_0x2ecef1['id'],{'unitId':this[_0x4b8e6d(0x178)][_0x4b8e6d(0x271)](),'tableId':this[_0x4b8e6d(0x207)],'field':_0x16692b,'index':_0x443aab==null?void 0x0:_0x443aab[_0x4b8e6d(0x1d6)]}))throw Error(_0x4b8e6d(0x1b7)+_0xb70d9e+'\x22');return this[_0x4b8e6d(0x1a1)][_0x4b8e6d(0x1d7)](B,this[_0x4b8e6d(0x178)],this,_0x16692b['id']);}['_prepareFormulaFieldReferences'](_0x31af3a,_0x1cf677){const _0x2d9d5d=_0x6a5b69;var _0x23e74e;if(!_0x1cf677||!(_0x2d9d5d(0x198)in _0x1cf677)||!Array['isArray'](_0x1cf677[_0x2d9d5d(0x198)]))throw Error(_0x2d9d5d(0x1ca));let _0x4098d7=this[_0x2d9d5d(0x1ec)][_0x2d9d5d(0x1d5)](_0x43f42c['id'],{'unitId':this['_base'][_0x2d9d5d(0x271)](),'tableId':this[_0x2d9d5d(0x207)],'formula':String(((_0x23e74e=_0x1cf677[_0x2d9d5d(0x2a7)])==null||(_0x23e74e=_0x23e74e[_0x2d9d5d(0x2bb)])==null?void 0x0:_0x23e74e[_0x2d9d5d(0x199)])??'')});if(!_0x4098d7[_0x2d9d5d(0x181)])throw Error(_0x4098d7[_0x2d9d5d(0x27c)]??_0x2d9d5d(0x208));if(_0x1cf677['externalReferences'][_0x2d9d5d(0x273)]>0x0&&!this[_0x2d9d5d(0x1ec)]['syncExecuteCommand'](_0x2057d2['id'],{'unitId':this[_0x2d9d5d(0x178)][_0x2d9d5d(0x271)](),'references':_0x1cf677[_0x2d9d5d(0x198)]}))throw Error('Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22'+_0x31af3a+'\x22');}[_0x6a5b69(0x2b1)](){const _0x2546d9=_0x6a5b69;return this[_0x2546d9(0x1bd)]()[_0x2546d9(0x2ba)](_0x51df7c=>this[_0x2546d9(0x1a1)][_0x2546d9(0x1d7)](Y,this[_0x2546d9(0x178)],this,_0x51df7c,this[_0x2546d9(0x1a1)]));}[_0x6a5b69(0x185)](_0x1c3f0d){const _0x38d644=_0x6a5b69;return this[_0x38d644(0x2a4)]()[_0x38d644(0x1c8)][_0x1c3f0d]?this[_0x38d644(0x1a1)]['createInstance'](Y,this[_0x38d644(0x178)],this,_0x1c3f0d,this[_0x38d644(0x1a1)]):null;}[_0x6a5b69(0x1f0)](_0x450cc9={}){const _0x3731c9=_0x6a5b69;let _0x45a87e=this[_0x3731c9(0x2a4)](),_0x1f38dc=this[_0x3731c9(0x1bd)](_0x450cc9),_0x358504=Math[_0x3731c9(0x239)](0x0,_0x450cc9['offset']??0x0),_0x3f4fd1=_0x450cc9['limit']==null?null:Math[_0x3731c9(0x239)](0x0,_0x450cc9['limit']),_0x16e273=yt(_0x1f38dc['map'](_0x56e712=>_0x45a87e['records'][_0x56e712])[_0x3731c9(0x253)](_0x1f6ec7=>xt(_0x1f6ec7,_0x45a87e,_0x450cc9['filter'])),_0x45a87e,_0x450cc9['sort']);return{'records':vt(_0x16e273,_0x450cc9)[_0x3731c9(0x2ba)](_0x46b1a3=>this[_0x3731c9(0x1a1)][_0x3731c9(0x1d7)](Y,this[_0x3731c9(0x178)],this,_0x46b1a3['id'],this['_injector'])),'total':_0x16e273[_0x3731c9(0x273)],'offset':_0x358504,'limit':_0x3f4fd1,'hasMore':_0x3f4fd1!=null&&_0x358504+_0x3f4fd1<_0x16e273['length']};}[_0x6a5b69(0x244)](_0x46ef85,_0x1b8829='id',_0x420636){const _0xe08b7b=_0x6a5b69;let _0x14fc9a=this['_getTable'](),_0xeb8e38=Date[_0xe08b7b(0x26c)](),_0x59e723={..._0x420636,'id':_0x49e131(0x6),'values':H(_0x14fc9a,_0x46ef85,_0x1b8829),'orderKey':(_0x420636==null?void 0x0:_0x420636[_0xe08b7b(0x179)])||''+_0xeb8e38,'createdAt':(_0x420636==null?void 0x0:_0x420636[_0xe08b7b(0x277)])||_0xeb8e38,'updatedAt':(_0x420636==null?void 0x0:_0x420636[_0xe08b7b(0x2c3)])||_0xeb8e38};if(!this[_0xe08b7b(0x1ec)][_0xe08b7b(0x1d5)](_0x817aeb['id'],{'unitId':this['_base'][_0xe08b7b(0x271)](),'tableId':this[_0xe08b7b(0x207)],'record':_0x59e723,'source':_0x43f637['Facade']}))throw Error(_0xe08b7b(0x29c)+_0x59e723['id']+'\x22');return this[_0xe08b7b(0x1a1)]['createInstance'](Y,this[_0xe08b7b(0x178)],this,_0x59e723['id'],this[_0xe08b7b(0x1a1)]);}[_0x6a5b69(0x22f)](_0x325134){const _0xc19a73=_0x6a5b69;if(!_0x325134['length'])return[];let _0x313b63=this[_0xc19a73(0x2a4)](),_0x444929=Date[_0xc19a73(0x26c)](),_0x39948e=_0x325134['map']((_0x6c1ca0,_0x3f749f)=>{const _0xead5b3=_0xc19a73;var _0x3fdd16,_0x5475ca,_0x13439c;return{..._0x6c1ca0[_0xead5b3(0x296)],'id':_0x49e131(0x6),'values':H(_0x313b63,_0x6c1ca0[_0xead5b3(0x2b6)],_0x6c1ca0[_0xead5b3(0x27d)]??'id'),'orderKey':((_0x3fdd16=_0x6c1ca0[_0xead5b3(0x296)])==null?void 0x0:_0x3fdd16[_0xead5b3(0x179)])||''+(_0x444929+_0x3f749f),'createdAt':((_0x5475ca=_0x6c1ca0[_0xead5b3(0x296)])==null?void 0x0:_0x5475ca[_0xead5b3(0x277)])||_0x444929,'updatedAt':((_0x13439c=_0x6c1ca0[_0xead5b3(0x296)])==null?void 0x0:_0x13439c['updatedAt'])||_0x444929};});if(!this[_0xc19a73(0x1ec)][_0xc19a73(0x1d5)](_0x28e204['id'],{'unitId':this[_0xc19a73(0x178)][_0xc19a73(0x271)](),'tableId':this[_0xc19a73(0x207)],'records':_0x39948e,'source':_0x43f637[_0xc19a73(0x29b)]}))throw Error(_0xc19a73(0x223));return _0x39948e[_0xc19a73(0x2ba)](_0x1fa199=>this[_0xc19a73(0x1a1)][_0xc19a73(0x1d7)](Y,this['_base'],this,_0x1fa199['id'],this['_injector']));}[_0x6a5b69(0x210)](_0x2b268c){const _0x5b5763=_0x6a5b69;return!_0x2b268c[_0x5b5763(0x273)]||this[_0x5b5763(0x1ec)][_0x5b5763(0x1d5)](_0x16f69d['id'],{'unitId':this[_0x5b5763(0x178)]['getId'](),'tableId':this[_0x5b5763(0x207)],'recordIds':_0x2b268c,'source':_0x43f637[_0x5b5763(0x29b)]});}[_0x6a5b69(0x2b2)](_0x5c1ff2,_0x243836,_0x2f5ec7=0x1,_0xf25938=0x1){const _0x260268=_0x6a5b69;return this[_0x260268(0x1a1)][_0x260268(0x1d7)](K,this[_0x260268(0x178)],this,{'startRow':_0x5c1ff2,'endRow':_0x5c1ff2+_0x2f5ec7-0x1,'startColumn':_0x243836,'endColumn':_0x243836+_0xf25938-0x1},this['_injector']);}['getDataRange'](){const _0x28dea8=_0x6a5b69;var _0x2c8468;let _0x57d1c1=_0xff35e2(this[_0x28dea8(0x2a4)]()),_0x381e53=((_0x2c8468=_0x57d1c1[_0x28dea8(0x2ae)])==null?void 0x0:_0x2c8468[_0x28dea8(0x273)])??0x0,_0x3cc814=_0x57d1c1[_0x28dea8(0x16b)][_0x28dea8(0x253)](_0x4c15ec=>V(_0x57d1c1[_0x28dea8(0x243)][_0x4c15ec]))[_0x28dea8(0x273)];return this[_0x28dea8(0x2b2)](0x0,0x0,Math[_0x28dea8(0x239)](_0x381e53,0x1),Math[_0x28dea8(0x239)](_0x3cc814,0x1));}[_0x6a5b69(0x27e)](){const _0x45c101=_0x6a5b69;let _0x369501=this[_0x45c101(0x2a4)]();return _0x369501[_0x45c101(0x254)][_0x45c101(0x253)](_0x20110e=>_0x369501['views'][_0x20110e])[_0x45c101(0x2ba)](_0x2bd080=>this[_0x45c101(0x1a1)][_0x45c101(0x1d7)](X,this[_0x45c101(0x178)],this,_0x2bd080,this[_0x45c101(0x1a1)]));}[_0x6a5b69(0x225)](_0x80f590){const _0x813168=_0x6a5b69;return this[_0x813168(0x2a4)]()[_0x813168(0x1ab)][_0x80f590]?this[_0x813168(0x1a1)][_0x813168(0x1d7)](X,this[_0x813168(0x178)],this,_0x80f590,this[_0x813168(0x1a1)]):null;}['getViewByName'](_0x147e09){const _0x179acc=_0x6a5b69;let _0x442609=this[_0x179acc(0x2a4)](),_0x20a86c=Object[_0x179acc(0x2b6)](_0x442609['views'])[_0x179acc(0x24f)](_0x3cd39c=>_0x3cd39c[_0x179acc(0x258)]===_0x147e09);return _0x20a86c?this[_0x179acc(0x1a1)][_0x179acc(0x1d7)](X,this[_0x179acc(0x178)],this,_0x20a86c['id'],this[_0x179acc(0x1a1)]):null;}[_0x6a5b69(0x201)](_0xc28bbb,_0x257b67,_0x39f4b3){const _0x24e25c=_0x6a5b69;var _0x258eac,_0x21f82e,_0x29b98e,_0x40ea7c;let _0x51bcbf=this['_getTable'](),_0x349226=(_0x39f4b3==null||(_0x258eac=_0x39f4b3[_0x24e25c(0x1fa)])==null?void 0x0:_0x258eac[_0x24e25c(0x16b)])??_0x51bcbf['fieldOrder'],_0x5cabef=[_0x8c29d8,..._0x349226[_0x24e25c(0x253)](_0x530e40=>V(_0x51bcbf[_0x24e25c(0x243)][_0x530e40]))],_0x518238={..._0x39f4b3==null?void 0x0:_0x39f4b3[_0x24e25c(0x1fa)],'id':_0x49e131(0x6),'name':_0xc28bbb,'type':_0x257b67,'tableId':this[_0x24e25c(0x207)],'config':(_0x39f4b3==null||(_0x21f82e=_0x39f4b3['view'])==null?void 0x0:_0x21f82e['config'])??{},'fieldOrder':_0x5cabef,'fieldSettings':{..._0x39f4b3==null||(_0x29b98e=_0x39f4b3[_0x24e25c(0x1fa)])==null?void 0x0:_0x29b98e[_0x24e25c(0x1a9)],[_0x8c29d8]:{..._0x39f4b3==null||(_0x40ea7c=_0x39f4b3[_0x24e25c(0x1fa)])==null||(_0x40ea7c=_0x40ea7c['fieldSettings'])==null?void 0x0:_0x40ea7c[_0x8c29d8],'hidden':!0x0}}};if(!this[_0x24e25c(0x1ec)][_0x24e25c(0x1d5)](_0x4efbdd['id'],{'unitId':this[_0x24e25c(0x178)][_0x24e25c(0x271)](),'tableId':this[_0x24e25c(0x207)],'view':_0x518238,'index':_0x39f4b3==null?void 0x0:_0x39f4b3['index']}))throw Error('Failed\x20to\x20create\x20view\x20\x22'+_0xc28bbb+'\x22');return this[_0x24e25c(0x1a1)][_0x24e25c(0x1d7)](X,this[_0x24e25c(0x178)],this,_0x518238['id'],this[_0x24e25c(0x1a1)]);}[_0x6a5b69(0x1e2)](){const _0x5c2df4=_0x6a5b69;let _0x17986d=this['_getTable'](),_0x524d9c=_0x17986d[_0x5c2df4(0x16b)]['filter'](_0x2d1182=>V(_0x17986d['fields'][_0x2d1182])),_0x336889=_0x17986d[_0x5c2df4(0x254)][_0x5c2df4(0x253)](_0x34d4dc=>_0x17986d[_0x5c2df4(0x1ab)][_0x34d4dc]);return{'id':_0x17986d['id'],'name':_0x17986d[_0x5c2df4(0x258)],'formulaName':this['getFormulaName'](),'primaryFieldId':_0x17986d[_0x5c2df4(0x17d)],'fieldIds':_0x524d9c,'viewIds':_0x336889,'recordCount':this[_0x5c2df4(0x1bd)]()[_0x5c2df4(0x273)],'fields':_0x524d9c['map'](_0x3d0fee=>{const _0xd9f799=_0x5c2df4;let _0x48f16b=_0x17986d[_0xd9f799(0x243)][_0x3d0fee];return{'id':_0x48f16b['id'],'name':_0x48f16b[_0xd9f799(0x258)],'type':_0x48f16b[_0xd9f799(0x18d)],'config':_0x48f16b['config'],'readonly':_0x48f16b['readonly'],'description':_0x48f16b[_0xd9f799(0x2ad)]};}),'views':_0x336889['map'](_0x4889e1=>{const _0x49a2d4=_0x5c2df4;let _0x34f375=_0x17986d['views'][_0x4889e1];return{'id':_0x34f375['id'],'name':_0x34f375[_0x49a2d4(0x258)],'type':_0x34f375[_0x49a2d4(0x18d)]};})};}[_0x6a5b69(0x2a4)](){const _0x4547c8=_0x6a5b69;let _0xce9a9d=this['_base'][_0x4547c8(0x249)]()[_0x4547c8(0x196)]()[_0x4547c8(0x29f)][this['_tableId']];if(!_0xce9a9d)throw Error('[FTable]:\x20table\x20\x22'+this[_0x4547c8(0x207)]+_0x4547c8(0x2ca));return _0xce9a9d;}[_0x6a5b69(0x1bd)](_0x4d2067={}){const _0x2ef795=_0x6a5b69;let _0xfd318d=this[_0x2ef795(0x178)]['getBase']()['getSnapshot'](),_0x5c2a18=this['_getTable']();if(_0x4d2067[_0x2ef795(0x1eb)]){let _0x39ab9a=this['_projectionService']['getProjection'](_0xfd318d,this[_0x2ef795(0x207)],_0x4d2067[_0x2ef795(0x1eb)]);if(_0x2ef795(0x1f4)in _0x39ab9a&&Array[_0x2ef795(0x285)](_0x39ab9a[_0x2ef795(0x1f4)]))return _0x39ab9a[_0x2ef795(0x1f4)][_0x2ef795(0x2ba)](_0x4b34e8=>_0x4b34e8['recordId']);}return(_0x5c2a18[_0x2ef795(0x2ae)]?_0x5c2a18[_0x2ef795(0x2ae)][_0x2ef795(0x2ba)](_0x3ba9b9=>_0x5c2a18[_0x2ef795(0x1c8)][_0x3ba9b9]):Object[_0x2ef795(0x2b6)](_0x5c2a18[_0x2ef795(0x1c8)])[_0x2ef795(0x172)]((_0x8a3983,_0x1d9eec)=>_0x8a3983['orderKey']['localeCompare'](_0x1d9eec[_0x2ef795(0x179)])))[_0x2ef795(0x253)](_0x7701b1=>_0x7701b1)[_0x2ef795(0x2ba)](_0x295a5c=>_0x295a5c['id']);}};Z=z([R(0x3,_0x1047ac),R(0x4,_0x9f57f5),R(0x5,_0x483014)],Z);function vt(_0x1f799b,_0x1b737f){const _0x4fa6d1=_0x6a5b69;let _0x147693=Math['max'](0x0,_0x1b737f[_0x4fa6d1(0x26d)]??0x0);return _0x1b737f[_0x4fa6d1(0x18a)]==null?_0x1f799b[_0x4fa6d1(0x169)](_0x147693):_0x1f799b['slice'](_0x147693,_0x147693+Math[_0x4fa6d1(0x239)](0x0,_0x1b737f[_0x4fa6d1(0x18a)]));}function yt(_0x9e9385,_0x286b20,_0x3e62ff=[]){const _0x4081de=_0x6a5b69;return _0x3e62ff[_0x4081de(0x273)]?[..._0x9e9385][_0x4081de(0x172)]((_0x9820be,_0xeeeb73)=>{const _0x46edce=_0x4081de;for(let _0x31aa5a of _0x3e62ff){var _0x28f55e;let _0xcca78d=_0x31aa5a[_0x46edce(0x1fe)]===_0x35c88d[_0x46edce(0x2cf)]?-0x1:0x1,_0x36d10d=bt(_0x9820be[_0x46edce(0x2b6)][_0x31aa5a['fieldId']],_0xeeeb73[_0x46edce(0x2b6)][_0x31aa5a[_0x46edce(0x26e)]],(_0x28f55e=_0x286b20[_0x46edce(0x243)][_0x31aa5a[_0x46edce(0x26e)]])==null?void 0x0:_0x28f55e[_0x46edce(0x18d)]);if(_0x36d10d!==0x0)return _0x36d10d*_0xcca78d;}return String(_0x9820be['orderKey']??_0x9820be['id'])['localeCompare'](String(_0xeeeb73['orderKey']??_0xeeeb73['id']));}):_0x9e9385;}function bt(_0x42858d,_0x463aa6,_0x2378cf){const _0x1a971d=_0x6a5b69;return _0x42858d==null&&_0x463aa6==null?0x0:_0x42858d==null?-0x1:_0x463aa6==null?0x1:typeof _0x42858d=='number'&&typeof _0x463aa6==_0x1a971d(0x2b0)?_0x42858d-_0x463aa6:_0x2378cf===_0x1dcf64['Date']?Number(_0x42858d)-Number(_0x463aa6):String(_0x42858d)['localeCompare'](String(_0x463aa6));}function xt(_0xa4a236,_0x4ee4a6,_0x133dcd){const _0x5679a3=_0x6a5b69;var _0x34edbb;if(!_0x133dcd||!((_0x34edbb=_0x133dcd['conditions'])!=null&&_0x34edbb[_0x5679a3(0x273)]))return!0x0;let {conjunction:_0x1596e0=_0x4157c8['OR'],conditions:_0x150eb1}=_0x133dcd;return _0x1596e0===_0x4157c8[_0x5679a3(0x20b)]&&_0x150eb1['length']>0x1?_0x150eb1[_0x5679a3(0x2ac)](_0x111d25=>St(_0xa4a236,_0x4ee4a6,_0x111d25)):_0x150eb1[_0x5679a3(0x274)](_0x18a5d4=>St(_0xa4a236,_0x4ee4a6,_0x18a5d4));}function St(_0x2acc32,_0x191c74,_0x3de5a6){const _0xdd1dec=_0x6a5b69;let _0x4401f7=_0x2acc32['values'][_0x3de5a6[_0xdd1dec(0x26e)]],_0x5915d1=_0x191c74[_0xdd1dec(0x243)][_0x3de5a6[_0xdd1dec(0x26e)]];if(Ct(_0x3de5a6)){let _0x24473b=wt(_0x3de5a6)['test'](String(_0x4401f7??''));return _0x3de5a6['operator']===_0xdd1dec(0x1db)?_0x24473b:!_0x24473b;}return!_0x5915d1||_0x17c967(_0x4401f7,_0x3de5a6['operator'],_0x3de5a6[_0xdd1dec(0x188)],_0x5915d1);}function Ct(_0x3f4d5a){const _0x26c8b2=_0x6a5b69;return _0x3f4d5a[_0x26c8b2(0x21c)]===_0x26c8b2(0x1db)||_0x3f4d5a[_0x26c8b2(0x21c)]===_0x26c8b2(0x1ee);}function wt(_0x3509e2){const _0x16d5c3=_0x6a5b69;let _0x1f1091=String(_0x3509e2[_0x16d5c3(0x188)]??'');if(_0x1f1091[_0x16d5c3(0x273)]>0x200)throw Error(_0x16d5c3(0x237));try{return new RegExp(_0x1f1091,_0x3509e2[_0x16d5c3(0x1dd)]?void 0x0:'i');}catch(_0x301424){throw Error('Invalid\x20Base\x20regex\x20filter:\x20'+_0x1f1091+'.\x20'+(_0x301424 instanceof Error?_0x301424[_0x16d5c3(0x1c1)]:String(_0x301424)));}}function Tt(_0x51af85,_0x31aa8c,_0x2f33c6){const _0x5ae49a=_0x6a5b69;if(_0x2f33c6[_0x5ae49a(0x18d)]!==_0x5ae49a(0x2b7)&&_0x2f33c6[_0x5ae49a(0x18d)]!==_0x5ae49a(0x238)){var _0x56cc36;if(_0x2f33c6[_0x5ae49a(0x18d)]===_0x144585[_0x5ae49a(0x25d)]){var _0x32d503;let _0x16467e=[((_0x32d503=_0x2f33c6[_0x5ae49a(0x243)])==null||(_0x32d503=_0x32d503[0x0])==null?void 0x0:_0x32d503['id'])??_0x51af85[_0x5ae49a(0x17d)],..._0x2f33c6[_0x5ae49a(0x2c2)]??[]];return Array[_0x5ae49a(0x19f)](new Set(_0x16467e[_0x5ae49a(0x253)](_0x21bb3f=>!!_0x51af85['fields'][_0x21bb3f])));}if((_0x56cc36=_0x2f33c6[_0x5ae49a(0x243)])!=null&&_0x56cc36['length'])return _0x2f33c6['fields']['map'](_0x31e0b1=>_0x31e0b1['id'])[_0x5ae49a(0x253)](_0x8204ac=>{const _0x772b0a=_0x5ae49a;var _0x44966b;return!(!_0x51af85['fields'][_0x8204ac]||_0x31aa8c!=null&&(_0x44966b=_0x31aa8c[_0x772b0a(0x1a9)])!=null&&(_0x44966b=_0x44966b[_0x8204ac])!=null&&_0x44966b['hidden']);});}return _0x51af85[_0x5ae49a(0x16b)][_0x5ae49a(0x253)](_0x3db99d=>{const _0x40bdc8=_0x5ae49a;var _0x19952c;return!(!_0x51af85[_0x40bdc8(0x243)][_0x3db99d]||_0x31aa8c!=null&&(_0x19952c=_0x31aa8c['fieldSettings'])!=null&&(_0x19952c=_0x19952c[_0x3db99d])!=null&&_0x19952c['hidden']);});}let Q=class extends _0x4e29a4[_0x6a5b69(0x29d)]{constructor(_0x3543d1,_0xb0932d,_0x3ae81a,_0xc6574f,_0x27aef6){const _0x240b6b=_0x6a5b69;super(),this['_base']=_0x3543d1,this[_0x240b6b(0x1a1)]=_0xb0932d,this[_0x240b6b(0x220)]=_0x3ae81a,this['_commandService']=_0xc6574f,this['_permissionService']=_0x27aef6;}['getBase'](){const _0x50e60d=_0x6a5b69;return this[_0x50e60d(0x178)];}[_0x6a5b69(0x271)](){const _0xde98b6=_0x6a5b69;return this[_0xde98b6(0x178)]['getUnitId']();}['getPermission'](){const _0x344ce8=_0x6a5b69;return new at(this[_0x344ce8(0x271)](),this[_0x344ce8(0x1ec)],this[_0x344ce8(0x2a0)]);}[_0x6a5b69(0x1a8)](){const _0x1a188d=_0x6a5b69;return this[_0x1a188d(0x220)][_0x1a188d(0x25c)](this[_0x1a188d(0x271)]())??_0x2517f7[_0x1a188d(0x2d0)](this['_base'][_0x1a188d(0x196)]());}[_0x6a5b69(0x2bf)](){const _0x1861dd=_0x6a5b69;return this[_0x1861dd(0x178)][_0x1861dd(0x196)]()[_0x1861dd(0x258)];}[_0x6a5b69(0x16c)](_0x27786c){const _0x1d90a3=_0x6a5b69;this['_commandService'][_0x1d90a3(0x1d5)](_0x280ebb['id'],{'unitId':this[_0x1d90a3(0x271)](),'name':_0x27786c});}[_0x6a5b69(0x1da)](){const _0x3c63cc=_0x6a5b69;let _0x115c85=this[_0x3c63cc(0x178)][_0x3c63cc(0x196)]();return _0x115c85[_0x3c63cc(0x1df)][_0x3c63cc(0x2ba)](_0x1bf062=>_0x115c85[_0x3c63cc(0x29f)][_0x1bf062])[_0x3c63cc(0x253)](_0x90c365=>_0x90c365)[_0x3c63cc(0x2ba)](_0x9d3e10=>this[_0x3c63cc(0x1a1)]['createInstance'](Z,this,_0x9d3e10['id'],this[_0x3c63cc(0x1a1)]));}[_0x6a5b69(0x23b)](_0x2693be){const _0xd20f04=_0x6a5b69;let _0xfdfbdd=this['_base'][_0xd20f04(0x196)]()[_0xd20f04(0x29f)][_0x2693be];return _0xfdfbdd?this['_injector'][_0xd20f04(0x1d7)](Z,this,_0xfdfbdd['id'],this[_0xd20f04(0x1a1)]):null;}[_0x6a5b69(0x18e)](_0x10726d){const _0x8b147=_0x6a5b69;let _0x254ea4=this['_base'][_0x8b147(0x196)](),_0x4b7ed1=Object[_0x8b147(0x2b6)](_0x254ea4[_0x8b147(0x29f)])[_0x8b147(0x24f)](_0x3eaaff=>_0x3eaaff['name']===_0x10726d);return _0x4b7ed1?this[_0x8b147(0x1a1)]['createInstance'](Z,this,_0x4b7ed1['id'],this[_0x8b147(0x1a1)]):null;}[_0x6a5b69(0x217)](_0x31728c,_0x26cb96){const _0x3d79c1=_0x6a5b69;let _0x5b9d27=_0xe17d11({'id':_0x49e131(),'name':_0x31728c,..._0x26cb96==null?void 0x0:_0x26cb96[_0x3d79c1(0x21a)],'primaryFieldName':_0x26cb96==null?void 0x0:_0x26cb96[_0x3d79c1(0x206)]}),_0x47ae03=_0x2517f7[_0x3d79c1(0x1f3)](_0x5b9d27,(_0x26cb96==null?void 0x0:_0x26cb96[_0x3d79c1(0x21a)])??{}),_0x46b0d3=_0x4fd34e(this[_0x3d79c1(0x178)][_0x3d79c1(0x196)](),_0x47ae03[_0x3d79c1(0x258)]);if(!_0x46b0d3['valid'])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0x47ae03[_0x3d79c1(0x258)]+'\x22.\x20'+_0x5963f1+'\x20'+_0x46b0d3['reason']);if(!this[_0x3d79c1(0x1ec)][_0x3d79c1(0x1d5)](_0x118e4c['id'],{'unitId':this['_base'][_0x3d79c1(0x2ce)](),'table':_0x47ae03,'index':_0x26cb96==null?void 0x0:_0x26cb96['index']}))throw Error(_0x3d79c1(0x2a5)+_0x31728c+'\x22.');return this[_0x3d79c1(0x1a1)]['createInstance'](Z,this,_0x47ae03['id'],this[_0x3d79c1(0x1a1)]);}['deleteTable'](_0x297b76){const _0xb8aed=_0x6a5b69;let _0x4eada2=typeof _0x297b76==_0xb8aed(0x295)?_0x297b76:_0x297b76[_0xb8aed(0x271)]();if(!this[_0xb8aed(0x1ec)][_0xb8aed(0x1d5)](_0x480168['id'],{'unitId':this[_0xb8aed(0x178)][_0xb8aed(0x2ce)](),'tableId':_0x4eada2}))throw Error(_0xb8aed(0x1bb)+_0x4eada2+'\x22.');return!0x0;}[_0x6a5b69(0x173)](_0xf63470,_0x168ad1){const _0x34093d=_0x6a5b69;let _0x3f71c6=this[_0x34093d(0x178)][_0x34093d(0x196)](),_0x59ff83=typeof _0xf63470=='string'?_0xf63470:_0xf63470[_0x34093d(0x271)](),_0x295279=_0x3f71c6[_0x34093d(0x29f)][_0x59ff83];if(!_0x295279)throw Error('[FBase]:\x20table\x20\x22'+_0x59ff83+_0x34093d(0x2ca));let _0x3fa56e=_0x3f71c6[_0x34093d(0x1df)][_0x34093d(0x2a6)](_0x59ff83)+0x1,_0x2f4792=_0x49e131(),_0x3519e2=_0x16e20(_0x295279,{'id':_0x2f4792,'name':_0x279ff1(_0x3f71c6,_0x295279[_0x34093d(0x258)]+_0x34093d(0x187)),'includeRecords':(_0x168ad1==null?void 0x0:_0x168ad1[_0x34093d(0x1dc)])??!0x1,'regenerateViewIds':(_0x168ad1==null?void 0x0:_0x168ad1[_0x34093d(0x1cb)])??!0x1});if(!this[_0x34093d(0x1ec)][_0x34093d(0x1d5)](_0x118e4c['id'],{'unitId':this['_base']['getUnitId'](),'table':_0x3519e2,'index':_0x3fa56e}))throw Error(_0x34093d(0x252)+_0x59ff83+'\x22.');return this['_injector']['createInstance'](Z,this,_0x3519e2['id'],this[_0x34093d(0x1a1)]);}[_0x6a5b69(0x1e2)](){const _0x5072d4=_0x6a5b69;let _0x49f5a3=this[_0x5072d4(0x178)][_0x5072d4(0x196)]();return{'id':_0x49f5a3['id'],'name':_0x49f5a3[_0x5072d4(0x258)],'tables':this['getTables']()[_0x5072d4(0x2ba)](_0x53fdf0=>_0x53fdf0[_0x5072d4(0x1e2)]())};}};Q=z([R(0x1,_0x547f59(_0x3c554c)),R(0x2,_0x595187),R(0x3,_0x1047ac),R(0x4,_0x9f57f5)],Q);var Et=class extends _0x61ceef{[_0x6a5b69(0x195)](){const _0x5941ce=_0x6a5b69;this[_0x5941ce(0x235)](),this[_0x5941ce(0x17f)]();}[_0x6a5b69(0x25e)](_0x10d865={},_0xb53601){const _0x5480d7=_0x6a5b69;let _0x4291ec=this[_0x5480d7(0x256)][_0x5480d7(0x29a)](_0x523a99['UNIVER_BASE'],_0x10d865,_0xb53601);return this[_0x5480d7(0x1a1)][_0x5480d7(0x1d7)](Q,_0x4291ec);}[_0x6a5b69(0x261)](){const _0xfee1c9=_0x6a5b69;let _0x44fc27=this['_univerInstanceService']['getCurrentUnitOfType'](_0x523a99['UNIVER_BASE']);return _0x44fc27?this['_injector'][_0xfee1c9(0x1d7)](Q,_0x44fc27):null;}['getBase'](_0x279d64){const _0x42fb2e=_0x6a5b69;let _0x5f2e7e=this['_univerInstanceService']['getUnit'](_0x279d64,_0x523a99[_0x42fb2e(0x1c4)]);return _0x5f2e7e?this[_0x42fb2e(0x1a1)][_0x42fb2e(0x1d7)](Q,_0x5f2e7e):null;}[_0x6a5b69(0x227)](){const _0xcf611f=_0x6a5b69;return this[_0xcf611f(0x256)][_0xcf611f(0x2b3)](_0x523a99['UNIVER_BASE'])[_0xcf611f(0x2ba)](_0x19dbb1=>this[_0xcf611f(0x1a1)][_0xcf611f(0x1d7)](Q,_0x19dbb1));}['_initBaseAfterEvents'](){const _0x595f0d=_0x6a5b69;this[_0x595f0d(0x18f)](this[_0x595f0d(0x229)](this['Event'][_0x595f0d(0x1e6)],()=>this[_0x595f0d(0x1ec)]['onCommandExecuted']((_0x45077a,_0x5e6ed1)=>{const _0xccd6a5=_0x595f0d;var _0x2bd0d4;if(!$(_0x45077a,_0x4664de))return;let _0xfbdb13=_0x45077a[_0xccd6a5(0x2c5)];if(!((_0x2bd0d4=_0xfbdb13[_0xccd6a5(0x293)])!=null&&_0x2bd0d4[_0xccd6a5(0x273)]))return;let _0x2b6ecb=this[_0xccd6a5(0x249)](_0xfbdb13['unitId']),_0x311ea5=_0x2b6ecb==null?void 0x0:_0x2b6ecb[_0xccd6a5(0x23b)](_0xfbdb13[_0xccd6a5(0x293)][0x0]['tableId']);if(!_0x2b6ecb||!_0x311ea5)return;let _0x3bfb54={'base':_0x2b6ecb,'table':_0x311ea5,'changes':_0xfbdb13[_0xccd6a5(0x293)],'source':_0x5e6ed1!=null&&_0x5e6ed1[_0xccd6a5(0x26a)]?_0x43f637[_0xccd6a5(0x16e)]:_0xfbdb13['source']??_0x43f637['UI']};this['fireEvent'](this[_0xccd6a5(0x232)][_0xccd6a5(0x1e6)],_0x3bfb54);}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x595f0d(0x232)][_0x595f0d(0x1e7)],()=>this[_0x595f0d(0x1ec)][_0x595f0d(0x212)](_0x24400a=>{const _0x555026=_0x595f0d;if(_0x24400a['id']!==_0x118e4c['id'])return;let {unitId:_0x3c973b,table:_0x33745f,index:_0x1f9ec9}=_0x24400a[_0x555026(0x2c5)],_0x4a723a=this['getBase'](_0x3c973b);if(!_0x4a723a)return;let _0x1c46ea={'base':_0x4a723a,'table':_0x33745f,'index':_0x1f9ec9};this[_0x555026(0x1e4)](this[_0x555026(0x232)][_0x555026(0x1e7)],_0x1c46ea);}))),this['disposeWithMe'](this[_0x595f0d(0x229)](this[_0x595f0d(0x232)]['BaseTableFieldCreated'],()=>this['_commandService'][_0x595f0d(0x212)](_0x36c77a=>{const _0x5353d9=_0x595f0d;if(_0x36c77a['id']!==_0x2ecef1['id'])return;let {unitId:_0x199608,tableId:_0x58c2ef,field:_0x53bd08,index:_0x19e960,viewIndexes:_0x26c12c}=_0x36c77a[_0x5353d9(0x2c5)],_0x2ce16a=this[_0x5353d9(0x249)](_0x199608);if(!_0x2ce16a)return;let _0x1e3115=_0x2ce16a[_0x5353d9(0x23b)](_0x58c2ef);if(!_0x1e3115)return;let _0xee3a87={'base':_0x2ce16a,'table':_0x1e3115,'field':_0x53bd08,'index':_0x19e960,'viewIndexes':_0x26c12c};this['fireEvent'](this[_0x5353d9(0x232)]['BaseTableFieldCreated'],_0xee3a87);}))),this[_0x595f0d(0x18f)](this[_0x595f0d(0x229)](this[_0x595f0d(0x232)][_0x595f0d(0x246)],()=>this[_0x595f0d(0x1ec)][_0x595f0d(0x212)](_0x3df761=>{const _0x5adc43=_0x595f0d;if(_0x3df761['id']!==_0x817aeb['id']&&_0x3df761['id']!==_0x28e204['id'])return;let _0x393ba4=_0x3df761[_0x5adc43(0x2c5)],{unitId:_0x3c6a86,tableId:_0x5a3c43}=_0x393ba4,_0x2676b2=_0x393ba4['records']??[_0x393ba4['record']],_0x3ed4ac=this['getBase'](_0x3c6a86);if(!_0x3ed4ac)return;let _0x6d6d97=_0x3ed4ac[_0x5adc43(0x23b)](_0x5a3c43);if(!_0x6d6d97)return;let _0x388b54={'base':_0x3ed4ac,'table':_0x6d6d97,'records':_0x2676b2};this[_0x5adc43(0x1e4)](this[_0x5adc43(0x232)][_0x5adc43(0x246)],_0x388b54);}))),this[_0x595f0d(0x18f)](this[_0x595f0d(0x229)](this[_0x595f0d(0x232)][_0x595f0d(0x2c4)],()=>this[_0x595f0d(0x1ec)][_0x595f0d(0x212)](_0x26df91=>{const _0x1c2804=_0x595f0d;if(_0x26df91['id']!==_0x4efbdd['id'])return;let {unitId:_0x23cdc7,tableId:_0x276f75,view:_0x51682b,index:_0x1fc36b}=_0x26df91[_0x1c2804(0x2c5)],_0x47a67e=this['getBase'](_0x23cdc7);if(!_0x47a67e)return;let _0x2b5db7=_0x47a67e[_0x1c2804(0x23b)](_0x276f75);if(!_0x2b5db7)return;let _0x807920={'base':_0x47a67e,'table':_0x2b5db7,'view':_0x51682b,'index':_0x1fc36b};this['fireEvent'](this[_0x1c2804(0x232)][_0x1c2804(0x2c4)],_0x807920);}))),this[_0x595f0d(0x18f)](this['registerEventHandler'](this[_0x595f0d(0x232)][_0x595f0d(0x2a1)],()=>this[_0x595f0d(0x1ec)][_0x595f0d(0x212)](_0x5c6d39=>{const _0x13be0d=_0x595f0d;if(_0x5c6d39['id']!==_0x3a32fc['id'])return;let {unitId:_0x12eb8b,tableId:_0x18b6e7,recordId:_0x2c5943,fieldId:_0x55dd53,value:_0x228ff1}=_0x5c6d39[_0x13be0d(0x2c5)],_0x57d854=this['getBase'](_0x12eb8b);if(!_0x57d854)return;let _0x181de8=_0x57d854[_0x13be0d(0x23b)](_0x18b6e7);if(!_0x181de8)return;let _0x208d04=_0x181de8[_0x13be0d(0x20d)](_0x55dd53);if(!_0x208d04)return;let _0x548e14=_0x181de8[_0x13be0d(0x185)](_0x2c5943);if(!_0x548e14)return;let _0x21c647={'base':_0x57d854,'table':_0x181de8,'field':_0x208d04,'record':_0x548e14,'value':_0x228ff1};this['fireEvent'](this[_0x13be0d(0x232)][_0x13be0d(0x2a1)],_0x21c647);})));}[_0x6a5b69(0x235)](){const _0x4148ec=_0x6a5b69;this['disposeWithMe'](this['registerEventHandler'](this[_0x4148ec(0x232)][_0x4148ec(0x247)],()=>this['_commandService'][_0x4148ec(0x2cb)](_0x3aa81e=>{const _0x20ae73=_0x4148ec;if($(_0x3aa81e,_0x2cebcc)){let {unitId:_0x33f60e,tableId:_0x534d39,patches:_0x18ec4e,source:_0x28c039=_0x43f637['UI']}=_0x3aa81e[_0x20ae73(0x2c5)],_0x280a7f=this['_getHierarchyEventContext'](_0x33f60e,_0x534d39);if(!_0x280a7f)return;this[_0x20ae73(0x265)](_0x280a7f[_0x20ae73(0x191)],_0x280a7f['table'],_0x22441f(_0x280a7f[_0x20ae73(0x21a)][_0x20ae73(0x28e)](),_0x18ec4e),_0x28c039);return;}if($(_0x3aa81e,_0x50c929)){let {unitId:_0x4dc3ab,tableId:_0x10d61d,patches:_0x2f8c79,source:_0x4f3610=_0x43f637['UI']}=_0x3aa81e[_0x20ae73(0x2c5)],_0x438d81=this['_getHierarchyEventContext'](_0x4dc3ab,_0x10d61d);if(!_0x438d81)return;let _0x29a56e=_0x438d81['table']['getTable']();this['_fireBeforeHierarchyChange'](_0x438d81['base'],_0x438d81[_0x20ae73(0x21a)],_0x22441f(_0x29a56e,_0x1b3dee(_0x29a56e,_0x2f8c79)),_0x4f3610);return;}if($(_0x3aa81e,_0x817aeb)){let _0x3b152f=_0x3aa81e['params'],_0x9bde1c=this[_0x20ae73(0x170)](_0x3b152f[_0x20ae73(0x27b)],_0x3b152f['tableId']);if(!_0x9bde1c)return;this[_0x20ae73(0x265)](_0x9bde1c[_0x20ae73(0x191)],_0x9bde1c[_0x20ae73(0x21a)],_0x6f896b(_0x9bde1c['table']['getTable'](),[_0x3b152f[_0x20ae73(0x296)]]),_0x3b152f['source']??_0x43f637['UI']);return;}if($(_0x3aa81e,_0x28e204)){let _0x14b70d=_0x3aa81e[_0x20ae73(0x2c5)],_0x426c58=this[_0x20ae73(0x170)](_0x14b70d[_0x20ae73(0x27b)],_0x14b70d[_0x20ae73(0x190)]);if(!_0x426c58)return;this['_fireBeforeHierarchyChange'](_0x426c58[_0x20ae73(0x191)],_0x426c58[_0x20ae73(0x21a)],_0x6f896b(_0x426c58[_0x20ae73(0x21a)]['getTable'](),_0x14b70d[_0x20ae73(0x1c8)]),_0x14b70d[_0x20ae73(0x2bd)]??_0x43f637['UI']);return;}if($(_0x3aa81e,_0x499a45)){let _0xa97c3a=_0x3aa81e['params'],_0x4fc8af=this[_0x20ae73(0x170)](_0xa97c3a[_0x20ae73(0x27b)],_0xa97c3a[_0x20ae73(0x190)]);if(!_0x4fc8af)return;this[_0x20ae73(0x265)](_0x4fc8af['base'],_0x4fc8af[_0x20ae73(0x21a)],_0x6f896b(_0x4fc8af[_0x20ae73(0x21a)][_0x20ae73(0x28e)](),[_0xa97c3a['record']]),_0xa97c3a[_0x20ae73(0x2bd)]??_0x43f637['UI']);return;}if($(_0x3aa81e,_0x448699)){let _0x52435b=_0x3aa81e[_0x20ae73(0x2c5)],_0xe9b4d=this[_0x20ae73(0x170)](_0x52435b[_0x20ae73(0x27b)],_0x52435b['tableId']);if(!_0xe9b4d)return;let _0x4d9518=_0xe9b4d['table'][_0x20ae73(0x28e)](),_0x15b1c4=_0x52435b['fieldId']??_0x38a87b(_0x4d9518),_0x28d0a0=_0x5b61b7(_0x4d9518,_0x15b1c4)[_0x20ae73(0x183)]['get'](_0x52435b[_0x20ae73(0x1c9)])??null;this[_0x20ae73(0x265)](_0xe9b4d[_0x20ae73(0x191)],_0xe9b4d[_0x20ae73(0x21a)],[{'tableId':_0x52435b[_0x20ae73(0x190)],'fieldId':_0x15b1c4,'recordId':_0x52435b[_0x20ae73(0x1c9)],'oldParentRecordId':_0x28d0a0,'parentRecordId':_0x52435b[_0x20ae73(0x192)]}],_0x52435b[_0x20ae73(0x2bd)]??_0x43f637['UI']);return;}if($(_0x3aa81e,_0x4cd8a9)){let _0x2bbfc6=_0x3aa81e[_0x20ae73(0x2c5)],_0x57dc1a=this[_0x20ae73(0x170)](_0x2bbfc6['unitId'],_0x2bbfc6[_0x20ae73(0x190)]);if(!_0x57dc1a)return;let _0xa8d04a=_0x2bbfc6['fieldId']??_0x38a87b(_0x57dc1a[_0x20ae73(0x21a)][_0x20ae73(0x28e)]());this[_0x20ae73(0x265)](_0x57dc1a[_0x20ae73(0x191)],_0x57dc1a[_0x20ae73(0x21a)],[{'tableId':_0x2bbfc6[_0x20ae73(0x190)],'fieldId':_0xa8d04a,'recordId':_0x2bbfc6[_0x20ae73(0x296)]['id'],'oldParentRecordId':null,'parentRecordId':_0x2bbfc6['parentRecordId']}],_0x2bbfc6['source']??_0x43f637['UI']);return;}if($(_0x3aa81e,_0x392c6f)){let _0x379272=_0x3aa81e[_0x20ae73(0x2c5)],_0x4fda42=this['_getHierarchyEventContext'](_0x379272['unitId'],_0x379272[_0x20ae73(0x190)]);if(!_0x4fda42)return;this[_0x20ae73(0x265)](_0x4fda42[_0x20ae73(0x191)],_0x4fda42['table'],_0x57d1f1(_0x4fda42[_0x20ae73(0x21a)][_0x20ae73(0x28e)](),[_0x379272[_0x20ae73(0x1c9)]]),_0x379272[_0x20ae73(0x2bd)]??_0x43f637['UI']);return;}if($(_0x3aa81e,_0x16f69d)){let _0x3130f3=_0x3aa81e[_0x20ae73(0x2c5)],_0x261d66=this[_0x20ae73(0x170)](_0x3130f3[_0x20ae73(0x27b)],_0x3130f3[_0x20ae73(0x190)]);if(!_0x261d66)return;this[_0x20ae73(0x265)](_0x261d66[_0x20ae73(0x191)],_0x261d66[_0x20ae73(0x21a)],_0x57d1f1(_0x261d66[_0x20ae73(0x21a)][_0x20ae73(0x28e)](),_0x3130f3[_0x20ae73(0x214)]),_0x3130f3[_0x20ae73(0x2bd)]??_0x43f637['UI']);return;}if(!$(_0x3aa81e,_0x3a32fc))return;let _0x3955bb=_0x3aa81e[_0x20ae73(0x2c5)],_0x3bc653=this[_0x20ae73(0x170)](_0x3955bb[_0x20ae73(0x27b)],_0x3955bb['tableId']);if(!_0x3bc653)return;let _0x2e996a=_0x3bc653[_0x20ae73(0x21a)]['getTable']();if(!_0x327c28(_0x2e996a)[_0x20ae73(0x290)](_0x3955bb[_0x20ae73(0x26e)]))return;let _0x3050ff=_0x5b61b7(_0x2e996a,_0x3955bb[_0x20ae73(0x26e)])[_0x20ae73(0x183)][_0x20ae73(0x2d1)](_0x3955bb['recordId'])??null,_0x38c706=_0x2b8d32(_0x3955bb[_0x20ae73(0x188)])[0x0]??null;_0x3050ff!==_0x38c706&&this[_0x20ae73(0x265)](_0x3bc653[_0x20ae73(0x191)],_0x3bc653[_0x20ae73(0x21a)],[{'tableId':_0x3955bb['tableId'],'fieldId':_0x3955bb['fieldId'],'recordId':_0x3955bb[_0x20ae73(0x1c9)],'oldParentRecordId':_0x3050ff,'parentRecordId':_0x38c706}],_0x3955bb[_0x20ae73(0x2bd)]??_0x43f637['UI']);}))),this[_0x4148ec(0x18f)](this[_0x4148ec(0x229)](this[_0x4148ec(0x232)][_0x4148ec(0x283)],()=>this['_commandService'][_0x4148ec(0x2cb)](_0x2acf56=>{const _0xd79b92=_0x4148ec;if(_0x2acf56['id']!==_0x118e4c['id'])return;let {unitId:_0x10c270,table:_0xe7ec27,index:_0x10d909}=_0x2acf56['params'],_0x26e354=this[_0xd79b92(0x249)](_0x10c270);if(!_0x26e354)return;let _0xf448d8={'base':_0x26e354,'table':_0xe7ec27,'index':_0x10d909};if(this[_0xd79b92(0x1e4)](this[_0xd79b92(0x232)]['BeforeBaseTableCreate'],_0xf448d8),_0xf448d8[_0xd79b92(0x1af)])throw new _0x35b56f();}))),this[_0x4148ec(0x18f)](this[_0x4148ec(0x229)](this[_0x4148ec(0x232)][_0x4148ec(0x245)],()=>this['_commandService']['beforeCommandExecuted'](_0x44ba5c=>{const _0x5f18a7=_0x4148ec;if(_0x44ba5c['id']!==_0x2ecef1['id'])return;let {unitId:_0x46e66b,tableId:_0x9cbc72,field:_0x2ab4b9,index:_0x45dc84,viewIndexes:_0x1e0057}=_0x44ba5c[_0x5f18a7(0x2c5)],_0x5c92f4=this[_0x5f18a7(0x249)](_0x46e66b);if(!_0x5c92f4)return;let _0x528d17=_0x5c92f4['getTableById'](_0x9cbc72);if(!_0x528d17)return;let _0x4f70d7={'base':_0x5c92f4,'table':_0x528d17,'field':_0x2ab4b9,'index':_0x45dc84,'viewIndexes':_0x1e0057};if(this[_0x5f18a7(0x1e4)](this[_0x5f18a7(0x232)][_0x5f18a7(0x245)],_0x4f70d7),_0x4f70d7['cancel'])throw new _0x35b56f();}))),this[_0x4148ec(0x18f)](this[_0x4148ec(0x229)](this['Event'][_0x4148ec(0x276)],()=>this[_0x4148ec(0x1ec)][_0x4148ec(0x2cb)](_0xde26c=>{const _0x3cdd47=_0x4148ec;if(_0xde26c['id']!==_0x817aeb['id']&&_0xde26c['id']!==_0x28e204['id'])return;let _0x1bfe03=_0xde26c[_0x3cdd47(0x2c5)],{unitId:_0x12c8bb,tableId:_0xb945d2}=_0x1bfe03,_0x59584d=_0x1bfe03[_0x3cdd47(0x1c8)]??[_0x1bfe03[_0x3cdd47(0x296)]],_0x2d1ed1=this[_0x3cdd47(0x249)](_0x12c8bb);if(!_0x2d1ed1)return;let _0x35e88f=_0x2d1ed1[_0x3cdd47(0x23b)](_0xb945d2);if(!_0x35e88f)return;let _0x476399={'base':_0x2d1ed1,'table':_0x35e88f,'records':_0x59584d};if(this[_0x3cdd47(0x1e4)](this['Event'][_0x3cdd47(0x276)],_0x476399),_0x476399[_0x3cdd47(0x1af)])throw new _0x35b56f();}))),this['disposeWithMe'](this[_0x4148ec(0x229)](this[_0x4148ec(0x232)][_0x4148ec(0x2c6)],()=>this[_0x4148ec(0x1ec)]['beforeCommandExecuted'](_0x2e64d6=>{const _0x41afb5=_0x4148ec;if(_0x2e64d6['id']!==_0x4efbdd['id'])return;let {unitId:_0x10aae0,tableId:_0x11e419,view:_0x1b906b,index:_0x529a18}=_0x2e64d6[_0x41afb5(0x2c5)],_0x4dfcf6=this[_0x41afb5(0x249)](_0x10aae0);if(!_0x4dfcf6)return;let _0x5be43b=_0x4dfcf6[_0x41afb5(0x23b)](_0x11e419);if(!_0x5be43b)return;let _0x349b4d={'base':_0x4dfcf6,'table':_0x5be43b,'view':_0x1b906b,'index':_0x529a18};if(this[_0x41afb5(0x1e4)](this[_0x41afb5(0x232)][_0x41afb5(0x2c6)],_0x349b4d),_0x349b4d[_0x41afb5(0x1af)])throw new _0x35b56f();}))),this[_0x4148ec(0x18f)](this[_0x4148ec(0x229)](this['Event']['BeforeBaseTableCellValueChange'],()=>this[_0x4148ec(0x1ec)][_0x4148ec(0x2cb)](_0x4fd84a=>{const _0x55782a=_0x4148ec;if(_0x4fd84a['id']!==_0x3a32fc['id'])return;let {unitId:_0x1f119f,tableId:_0x222fef,recordId:_0x14aec8,fieldId:_0x328bc3,value:_0x4c6b2a}=_0x4fd84a[_0x55782a(0x2c5)],_0x1aaf40=this[_0x55782a(0x249)](_0x1f119f);if(!_0x1aaf40)return;let _0x5038fd=_0x1aaf40['getTableById'](_0x222fef);if(!_0x5038fd)return;let _0x16040e=_0x5038fd['getFieldById'](_0x328bc3);if(!_0x16040e)return;let _0x25a38b=_0x5038fd[_0x55782a(0x185)](_0x14aec8);if(!_0x25a38b)return;let _0x1d8e14={'base':_0x1aaf40,'table':_0x5038fd,'field':_0x16040e,'record':_0x25a38b,'value':_0x4c6b2a};if(this[_0x55782a(0x1e4)](this[_0x55782a(0x232)][_0x55782a(0x1f5)],_0x1d8e14),_0x1d8e14['cancel'])throw new _0x35b56f();})));}[_0x6a5b69(0x170)](_0x26290c,_0x2b7b23){const _0x23694f=_0x6a5b69;let _0x2757bb=this['getBase'](_0x26290c),_0x1e6019=_0x2757bb==null?void 0x0:_0x2757bb[_0x23694f(0x23b)](_0x2b7b23);return _0x2757bb&&_0x1e6019?{'base':_0x2757bb,'table':_0x1e6019}:null;}[_0x6a5b69(0x265)](_0x4d503f,_0x510759,_0x2725cb,_0x2469e3){const _0x24f333=_0x6a5b69;if(!_0x2725cb[_0x24f333(0x273)])return;let _0xc429b6={'base':_0x4d503f,'table':_0x510759,'changes':_0x2725cb,'source':_0x2469e3};if(this[_0x24f333(0x1e4)](this[_0x24f333(0x232)][_0x24f333(0x247)],_0xc429b6),_0xc429b6['cancel'])throw new _0x35b56f();}};function $(_0x415add,_0x539a67){const _0x93853b=_0x6a5b69;return _0x415add['id']===_0x539a67['id']&&_0x415add[_0x93853b(0x2c5)]!==void 0x0;}_0x61ceef[_0x6a5b69(0x1f9)](Et);var Dt=class extends _0x21148e{get[_0x6a5b69(0x28a)](){return _0x1dcf64;}get[_0x6a5b69(0x1a0)](){return _0x4157c8;}get['BaseFilterOperator'](){return _0x394202;}get[_0x6a5b69(0x248)](){return ot;}get['BaseViewType'](){return _0x144585;}get[_0x6a5b69(0x218)](){return _0x44652a;}get[_0x6a5b69(0x22d)](){return _0x3f8d13;}get[_0x6a5b69(0x231)](){return _0x206636;}get['BaseSortDirection'](){return _0x35c88d;}get['BaseEventSource'](){return _0x43f637;}get[_0x6a5b69(0x194)](){return _0x53ea69;}get[_0x6a5b69(0x2a2)](){return _0x549f37;}get[_0x6a5b69(0x1d1)](){return _0x546818;}};_0x21148e[_0x6a5b69(0x1f9)](Dt);var Ot=class extends _0xf4815a{get['BaseTableCreated'](){const _0x4e4800=_0x6a5b69;return _0x4e4800(0x1e7);}get[_0x6a5b69(0x283)](){const _0x3820bf=_0x6a5b69;return _0x3820bf(0x283);}get[_0x6a5b69(0x1fc)](){return'BaseTableFieldCreated';}get[_0x6a5b69(0x245)](){const _0x1acf45=_0x6a5b69;return _0x1acf45(0x245);}get[_0x6a5b69(0x246)](){const _0x175575=_0x6a5b69;return _0x175575(0x246);}get[_0x6a5b69(0x276)](){const _0x51f543=_0x6a5b69;return _0x51f543(0x276);}get[_0x6a5b69(0x2c4)](){const _0x841e19=_0x6a5b69;return _0x841e19(0x2c4);}get[_0x6a5b69(0x2c6)](){const _0x35d1c1=_0x6a5b69;return _0x35d1c1(0x2c6);}get[_0x6a5b69(0x2a1)](){const _0x4cafb6=_0x6a5b69;return _0x4cafb6(0x2a1);}get['BeforeBaseTableCellValueChange'](){const _0x3b1310=_0x6a5b69;return _0x3b1310(0x1f5);}get[_0x6a5b69(0x1e6)](){return'BaseHierarchyChanged';}get['BeforeBaseHierarchyChange'](){const _0x500a9e=_0x6a5b69;return _0x500a9e(0x247);}};_0xf4815a['extend'](Ot);function _0x1896(_0x2d5065,_0x504d52){_0x2d5065=_0x2d5065-0x166;const _0x37f6c3=_0x37f6();let _0x189625=_0x37f6c3[_0x2d5065];return _0x189625;}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};
|